Build 586984stable
Module 201718
908 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>c,P:()=>u});var i=n(17928),r=n(562465),a=n(228366),s=n(38405),l=n(339580),o=n(652215);let d={async fetchUserApplicationIdentitiesWithProfiles(e,t){a.h.dispatch({type:"USER_APPLICATION_IDENTITY_FETCH_USER_START",userId:e});try{let n=await r.Bo.get({url:o.Rsh.USER_APPLICATION_IDENTITIES(e),query:{with_profiles:!0},rejectWithError:!0,signal:t});a.h.dispatch({type:"USER_APPLICATION_IDENTITY_FETCH_USER_SUCCESS",userId:e,identities:n.body.identities})}catch(t){throw a.h.dispatch({type:"USER_APPLICATION_IDENTITY_FETCH_USER_FAILURE",userId:e}),s.A.captureException(t),t}},async updateApplicationIdentityConfig(e,t,n){await r.Bo.patch({url:o.Rsh.SELF_APPLICATION_IDENTITY_CONFIG(e,t),body:n,rejectWithError:!0})}},c=d,u=(0,i.UT)(l.A,{getQueryId:o.fic.USER_APPLICATION_IDENTITIES,get:e=>l.A.getUserIdentities(e),load:e=>d.fetchUserApplicationIdentitiesWithProfiles(e)})}