OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / identity / identity-profile.saga.js

1 lines · javascript ref:
(function(_0x132244,_0x13e76b){const _0xa31e16={_0x51bbfe:0x320,_0x59f781:0x314,_0x170e0d:0x101,_0x281800:0xfb,_0x34277f:0x31f,_0x4477f1:0x30b,_0x52fd5c:0x319,_0x1f76be:0xee,_0x53a8b7:0xec,_0x5d5fdb:0xfa,_0x860cb0:0x107,_0x1c8cb3:0xf6,_0x3e5150:0xfe,_0x22fb99:0x113,_0xf05ee2:0x111,_0x316d1d:0x11d,_0x3870f6:0x106,_0x20d231:0x114,_0x5c6714:0x112,_0x1737c8:0x311,_0x376fc4:0x30f,_0xbc5918:0x31c,_0xb80746:0x31d,_0x14a9d2:0x31c,_0x7e3846:0x31a,_0xa12984:0x313,_0x11428f:0x30a},_0x49dd94={_0x2dcbea:0x25e},_0x101c77={_0x28de90:0x1bd},_0x4686ef=_0x132244();function _0x38e807(_0x1f50b4,_0x2e6a48,_0xe9f7cf,_0x3b5d8d){return _0x446b(_0x1f50b4-_0x101c77._0x28de90,_0xe9f7cf);}function _0x2f8557(_0x5469cf,_0x47eedc,_0x582d1e,_0x5c900e){return _0x446b(_0x582d1e- -_0x49dd94._0x2dcbea,_0x5c900e);}while(!![]){try{const _0x48caab=-parseInt(_0x38e807(_0xa31e16._0x51bbfe,_0xa31e16._0x59f781,0x315,0x312))/(-0xb47*-0x2+-0xd3*-0x3+-0xc83*0x2)+-parseInt(_0x2f8557(-_0xa31e16._0x170e0d,-0x10a,-0x104,-_0xa31e16._0x281800))/(-0x13c7+0x1*0x16c1+0x4*-0xbe)*(parseInt(_0x38e807(0x312,_0xa31e16._0x34277f,_0xa31e16._0x4477f1,_0xa31e16._0x52fd5c))/(-0x236c+-0x93+0x2402))+-parseInt(_0x2f8557(-_0xa31e16._0x1f76be,-_0xa31e16._0x53a8b7,-_0xa31e16._0x5d5fdb,-_0xa31e16._0x860cb0))/(0x1d7+-0x1739+0x391*0x6)+parseInt(_0x2f8557(-0x107,-_0xa31e16._0x1c8cb3,-_0xa31e16._0x3e5150,-_0xa31e16._0x3e5150))/(0xa5*0xf+0xe5*0x1+-0xa8b)*(parseInt(_0x2f8557(-0x111,-_0xa31e16._0x22fb99,-_0xa31e16._0xf05ee2,-_0xa31e16._0x316d1d))/(0xe3*0x29+-0x5*0x167+-0x1*0x1d52))+-parseInt(_0x2f8557(-0x116,-_0xa31e16._0x3870f6,-_0xa31e16._0x20d231,-_0xa31e16._0x5c6714))/(-0x22ae+-0x8c5+0x2b7a)*(parseInt(_0x38e807(_0xa31e16._0x1737c8,_0xa31e16._0x376fc4,0x31a,_0xa31e16._0x1737c8))/(-0xa3*0x29+0x7*0xe8+0x1*0x13cb))+parseInt(_0x38e807(_0xa31e16._0xbc5918,_0xa31e16._0xb80746,_0xa31e16._0x14a9d2,_0xa31e16._0x7e3846))/(-0x1d98+0x1656+0x74b*0x1)+parseInt(_0x38e807(_0xa31e16._0xa12984,0x30c,_0xa31e16._0x11428f,0x31a))/(-0x111c+-0x76f*-0x1+0x9b7);if(_0x48caab===_0x13e76b)break;else _0x4686ef['push'](_0x4686ef['shift']());}catch(_0x5d427d){_0x4686ef['push'](_0x4686ef['shift']());}}}(_0x12dd,-0x1*-0x21d3f+0x105b63*-0x1+0x1bd787));const _0x3c9660=(function(){const _0x537f4b={_0x452232:0x8c,_0x2e7dfe:0x80,_0x31be55:0x80};let _0x12e147=!![];return function(_0x2d83cf,_0x457720){const _0x39032b=_0x12e147?function(){function _0xffc93b(_0x6ba2e2,_0x4ee683,_0x43a90e,_0x48ea41){return _0x446b(_0x6ba2e2- -0xbd,_0x48ea41);}if(_0x457720){const _0x28321f=_0x457720[_0xffc93b(_0x537f4b._0x452232,_0x537f4b._0x2e7dfe,_0x537f4b._0x31be55,0x8d)](_0x2d83cf,arguments);return _0x457720=null,_0x28321f;}}:function(){};return _0x12e147=![],_0x39032b;};}()),_0x42843b=_0x3c9660(this,function(){const _0x4a9341={_0x3ad76a:0x339,_0x4d5396:0x336,_0x158455:0x393,_0x4eb737:0x381,_0x1a862a:0x390,_0x2303d1:0x3a0,_0x151420:0x325,_0x4c82b3:0x33c,_0x4fe07d:0x339,_0x56cbe3:0x332,_0x4717a8:0x328,_0x12d9e2:0x330,_0x44e4ba:0x34a},_0x12f14d={_0x74286c:0x1e4},_0x3ea7ab={_0x2b9095:0x244};function _0x3856c5(_0x4ae136,_0x656f5d,_0xe5eb09,_0x40457e){return _0x446b(_0x40457e-_0x3ea7ab._0x2b9095,_0x656f5d);}function _0x40cbfc(_0x3a6380,_0x3f3cc1,_0x3641db,_0x42ab83){return _0x446b(_0x42ab83-_0x12f14d._0x74286c,_0x3f3cc1);}return _0x42843b[_0x40cbfc(0x346,_0x4a9341._0x3ad76a,_0x4a9341._0x4d5396,0x341)]()[_0x3856c5(_0x4a9341._0x158455,_0x4a9341._0x158455,_0x4a9341._0x4eb737,_0x4a9341._0x1a862a)]('(((.+)+)+)'+'+$')[_0x3856c5(_0x4a9341._0x2303d1,0x39c,0x3a6,0x3a1)]()[_0x40cbfc(_0x4a9341._0x151420,_0x4a9341._0x4c82b3,_0x4a9341._0x4fe07d,_0x4a9341._0x56cbe3)+'r'](_0x42843b)[_0x40cbfc(_0x4a9341._0x4717a8,_0x4a9341._0x151420,_0x4a9341._0x12d9e2,_0x4a9341._0x12d9e2)](_0x40cbfc(_0x4a9341._0x44e4ba,0x350,0x349,0x345)+'+$');});_0x42843b();import{takeLatest,select}from'redux-saga/effects';import{getCoreBackend}from'../../backend';import{apiCall}from'../../api/core';import{taskErrorSaga}from'../error';import{getIdentityProfile,setIdentityProfile}from'./identity.reducer';function _0x446b(_0x4de92b,_0x56dff2){const _0x2b70ac=_0x12dd();return _0x446b=function(_0x2c9876,_0x1d39d2){_0x2c9876=_0x2c9876-(0x3*-0x99b+-0x8f*-0x37+-0x1*0x9f);let _0x12e147=_0x2b70ac[_0x2c9876];return _0x12e147;},_0x446b(_0x4de92b,_0x56dff2);}import{hasVisibleChars}from'../lib/string';const handleAvatarData=_0x38235a=>{const {base64:_0x465c1c,metadata:_0x47dae3}=_0x38235a||{};return _0x465c1c&&_0x47dae3?{'pointer':{'inlined':_0x465c1c},'metadata':_0x47dae3}:null;},handleDisplayName=_0x1882ec=>(_0x1882ec||'')[_0x5f1bb4(0x28,0x32,0x35,0x3c)]();export function*identityUserProfileUpdate({payload:_0x3a39df}){const _0x43f56a={_0x182c8c:0x4cf,_0x55194c:0x4de,_0x2923bc:0x4e0,_0x3a3dd4:0x4e9,_0x55a681:0x4f0,_0x8035e9:0x4e5,_0x3767b7:0x4e7,_0x577852:0x4db,_0x484404:0x4d2,_0x50950c:0x1be,_0x41bc1b:0x1af,_0x133282:0x1b0,_0x5f267c:0x4cd,_0x4ccfcf:0x4d6,_0x528b5a:0x1b2,_0x2d621a:0x1b2,_0x1e0e7a:0x1b1,_0x38b0af:0x1af,_0x36ac57:0x1c3,_0x5dcee1:0x4e6,_0x4fae19:0x4dc,_0x36b442:0x4c9,_0x2faa32:0x4d8,_0x1f085f:0x1a6,_0x56f142:0x19d,_0x1e9af0:0x19f,_0x231435:0x4cc,_0x2a2883:0x4d7,_0x469a32:0x4d6,_0x3e6388:0x1a7,_0x29c4ed:0x1c3,_0x9bc50b:0x1b4,_0x312f71:0x1a9,_0x5bb35b:0x4d4,_0x33aa9b:0x4df,_0x1f48b4:0x4da,_0x4c7c0c:0x4d6,_0x2fa785:0x4e5,_0x2f086a:0x4e1,_0x536b01:0x4e8},_0x5dc29c={_0x20bdce:0xb4,_0x2f2b4a:0x49f,_0x298d1e:0x187},_0x13b15f={_0x45b190:0x0,_0x49c794:0x54};function _0x11f4c3(_0x1c8875,_0x959a8f,_0xb02f7a,_0x2c4bfb){return _0x5f1bb4(_0x1c8875-_0x13b15f._0x45b190,_0x1c8875,_0xb02f7a- -0x1e8,_0x2c4bfb-_0x13b15f._0x49c794);}function _0xb5b7e0(_0x17341e,_0x9e36d2,_0x516700,_0x10baac){return _0x5f1bb4(_0x17341e-_0x5dc29c._0x20bdce,_0x17341e,_0x9e36d2-_0x5dc29c._0x2f2b4a,_0x10baac-_0x5dc29c._0x298d1e);}try{const _0x24a35a=yield select(getIdentityProfile),_0x32c6b=handleDisplayName(_0x3a39df['name'])||_0x24a35a[_0xb5b7e0(0x4d6,0x4da,_0x43f56a._0x182c8c,0x4cf)+'e'];if(!hasVisibleChars(_0x3a39df[_0xb5b7e0(0x4e6,_0x43f56a._0x55194c,_0x43f56a._0x2923bc,_0x43f56a._0x3a3dd4)]))throw new Error(_0xb5b7e0(_0x43f56a._0x55a681,_0x43f56a._0x8035e9,0x4f2,_0x43f56a._0x3767b7)+'me\x20must\x20co'+_0xb5b7e0(0x4e1,_0x43f56a._0x577852,_0x43f56a._0x484404,_0x43f56a._0x8035e9)+_0x11f4c3(-_0x43f56a._0x50950c,-_0x43f56a._0x41bc1b,-0x1b9,-_0x43f56a._0x133282)+_0xb5b7e0(_0x43f56a._0x5f267c,_0x43f56a._0x4ccfcf,0x4cd,0x4de)+_0x11f4c3(-_0x43f56a._0x528b5a,-0x1ab,-_0x43f56a._0x2d621a,-_0x43f56a._0x1e0e7a));const _0x11aa8e=handleAvatarData(_0x3a39df[_0x11f4c3(-0x1ae,-_0x43f56a._0x38b0af,-0x1b5,-_0x43f56a._0x36ac57)]?.[_0xb5b7e0(_0x43f56a._0x5dcee1,0x4dc,_0x43f56a._0x4fae19,0x4d5)]),_0x2716d2=handleAvatarData(_0x3a39df[_0xb5b7e0(_0x43f56a._0x36b442,_0x43f56a._0x484404,0x4d2,_0x43f56a._0x2faa32)]?.[_0x11f4c3(-_0x43f56a._0x1f085f,-_0x43f56a._0x56f142,-_0x43f56a._0x1e9af0,-0x19f)]),_0x5ed10f=_0x11aa8e||_0x2716d2?{'small':_0x11aa8e,'medium':_0x2716d2}:_0x24a35a[_0xb5b7e0(_0x43f56a._0x231435,_0x43f56a._0x484404,_0x43f56a._0x2a2883,_0x43f56a._0x469a32)],_0x58ea9a=getCoreBackend();yield apiCall(_0x58ea9a['updateIden'+_0x11f4c3(-_0x43f56a._0x3e6388,-_0x43f56a._0x29c4ed,-_0x43f56a._0x9bc50b,-_0x43f56a._0x312f71)+'e'],{'displayName':_0x32c6b,'avatar':_0x5ed10f});}catch(_0x1f9d11){yield taskErrorSaga('userProfil'+_0xb5b7e0(_0x43f56a._0x5bb35b,_0x43f56a._0x33aa9b,_0x43f56a._0x1f48b4,_0x43f56a._0x4c7c0c)+_0xb5b7e0(_0x43f56a._0x2fa785,_0x43f56a._0x2f086a,_0x43f56a._0x536b01,_0x43f56a._0x2a2883),_0x1f9d11);}}function _0x5f1bb4(_0x46684d,_0x7bfa2a,_0x323e5c,_0x310355){const _0x507ff3={_0x3791f7:0x11c};return _0x446b(_0x323e5c- -_0x507ff3._0x3791f7,_0x7bfa2a);}export function*identityUserProfileSaga(){yield takeLatest(setIdentityProfile,identityUserProfileUpdate);}function _0x12dd(){const _0x3fab45=['avatar','tityProfil','trim','racter','isible\x20cha','1409288BvesdM','196017zLvbKC','33473420pMDMXI','displayNam','ntain\x20at\x20l','small','44WgTIQJ','name','eIdentityU','toString','pdate','5163408tVxmBA','4940mTkaxq','(((.+)+)+)','Display\x20na','208071oXTDfq','6323196RUDhMx','medium','apply','49RkSEUe','east\x20one\x20v','search','8682EiHwIe','constructo'];_0x12dd=function(){return _0x3fab45;};return _0x12dd();}