Build 533169stable
Module 905911
973 characters · in 30a277b9d32d70b1.jsDependencies
Source Raw
function(e,t,n){n.d(t,{A:()=>s});var i=n(562465),l=n(954571),a=n(613057),r=n(652215);let s={[r.e$_.GET_NETWORKING_CONFIG]:{scope:a.hj,handler:()=>Promise.all([i.Bo.get({url:location.protocol+window.GLOBAL_ENV.NETWORKING_ENDPOINT,retries:3,rejectWithError:!1}).then(e=>{let{body:{address:t}}=e;return t}),i.Bo.post({url:r.Rsh.NETWORKING_TOKEN,retries:3,oldFormErrors:!0,rejectWithError:!1}).then(e=>{let{body:{token:t}}=e;return t})]).then(e=>{let[t,n]=e;return{address:t,token:n}})},[r.e$_.NETWORKING_SYSTEM_METRICS]:{scope:a.hj,handler(e){let{socket:t,args:n}=e;n.application_id=t.application.id,l.default.track(r.HAw.NETWORKING_SYSTEM_METRICS,n)}},[r.e$_.NETWORKING_PEER_METRICS]:{scope:a.hj,handler(e){let{socket:t,args:n}=e;n.application_id=t.application.id,l.default.track(r.HAw.NETWORKING_PEER_METRICS,n)}},[r.e$_.NETWORKING_CREATE_TOKEN]:{scope:a.hj,handler:()=>i.Bo.post({url:r.Rsh.NETWORKING_TOKEN,retries:1,oldFormErrors:!0,rejectWithError:!1}).then(e=>e.body)}}}