OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / identity / saga / secret-phrase-saga.js

1 lines · javascript ref:
(function(_0x56e10e,_0x5f095c){const _0x158b45={_0x1885a9:0x57,_0x50af97:0x61,_0x48135:0x69,_0x291cfa:0x41c,_0x897a44:0x416,_0x1b5eec:0x41f,_0x464f3c:0x410,_0x6df792:0x419,_0x5f067e:0x41a,_0x30cf92:0x421,_0xdf629d:0x422,_0x1d2124:0x5f,_0x5b55fd:0x5f,_0x2603f2:0x60,_0x3786a0:0x6a,_0x5334fd:0x68,_0x5285cc:0x65,_0x4bfce5:0x60,_0x15d36e:0x5d,_0x1db169:0x5c,_0x213c71:0x55,_0x105a80:0x412,_0x3b8d53:0x41b,_0x2c61fe:0x6b,_0x58c6be:0x63,_0x390cd8:0x63,_0x1d3c62:0x55,_0x59226f:0x4f,_0x5bba12:0x52,_0xbc3e8f:0x429,_0x45b6e0:0x415,_0x42ac01:0x428},_0x321523={_0x2542cc:0x23d},_0x5eaeef={_0x143a49:0x234};function _0x53921d(_0x2bdced,_0x3e3a6b,_0x1a7627,_0x263dcb){return _0x8c75(_0x3e3a6b-_0x5eaeef._0x143a49,_0x1a7627);}function _0x23cfaf(_0x4359f,_0x4020b2,_0x16e1b7,_0x28cf14){return _0x8c75(_0x16e1b7- -_0x321523._0x2542cc,_0x4359f);}const _0x4bb254=_0x56e10e();while(!![]){try{const _0x2f5a2e=parseInt(_0x23cfaf(-_0x158b45._0x1885a9,-_0x158b45._0x50af97,-0x5f,-_0x158b45._0x48135))/(0x1fe4+-0x256c+0x589*0x1)+parseInt(_0x53921d(_0x158b45._0x291cfa,_0x158b45._0x897a44,_0x158b45._0x1b5eec,_0x158b45._0x464f3c))/(0x1bfa+0x105*0x17+-0x1*0x336b)+parseInt(_0x53921d(_0x158b45._0x6df792,_0x158b45._0x5f067e,_0x158b45._0x30cf92,_0x158b45._0xdf629d))/(-0x119a+-0x4*0xe3+-0x1529*-0x1)*(-parseInt(_0x23cfaf(-_0x158b45._0x1d2124,-_0x158b45._0x5b55fd,-_0x158b45._0x2603f2,-_0x158b45._0x3786a0))/(-0x24f4+-0xeba+-0x33b2*-0x1))+parseInt(_0x23cfaf(-_0x158b45._0x5334fd,-_0x158b45._0x50af97,-_0x158b45._0x5285cc,-_0x158b45._0x2603f2))/(-0x10be+0x17*0x19a+0x23b*-0x9)+parseInt(_0x23cfaf(-_0x158b45._0x4bfce5,-_0x158b45._0x15d36e,-_0x158b45._0x1db169,-_0x158b45._0x213c71))/(-0x8fb+-0x3c+0x93d)*(-parseInt(_0x53921d(_0x158b45._0x105a80,_0x158b45._0x3b8d53,_0x158b45._0x6df792,_0x158b45._0x1b5eec))/(-0x89*0x1d+-0x295*0xb+0x2bf3))+parseInt(_0x23cfaf(-_0x158b45._0x2c61fe,-0x6d,-_0x158b45._0x58c6be,-_0x158b45._0x390cd8))/(-0x1921+-0x1a0+-0x1*-0x1ac9)*(-parseInt(_0x23cfaf(-_0x158b45._0x1d3c62,-_0x158b45._0x59226f,-0x51,-_0x158b45._0x5bba12))/(0x11ab+-0x1226+-0x3*-0x2c))+-parseInt(_0x53921d(_0x158b45._0xbc3e8f,_0x158b45._0x1b5eec,_0x158b45._0x45b6e0,_0x158b45._0x42ac01))/(0x2313+-0xc5c+0x16ad*-0x1)*(parseInt(_0x23cfaf(-0x5f,-0x5e,-_0x158b45._0x50af97,-0x61))/(-0x3b*-0xb+0x1*-0x20fc+-0x6*-0x515));if(_0x2f5a2e===_0x5f095c)break;else _0x4bb254['push'](_0x4bb254['shift']());}catch(_0x33877b){_0x4bb254['push'](_0x4bb254['shift']());}}}(_0x16fe,0x49625*0x1+-0x2e2d6+0x24617));const _0x3496b8=(function(){const _0x3ddb77={_0x27f060:0x343,_0x58ac11:0x33c,_0x4392fc:0x347};let _0xfd53bc=!![];return function(_0x5742a3,_0x5c6fed){const _0x2ac785={_0x3192b6:0x163},_0x4ec068=_0xfd53bc?function(){function _0x205f14(_0x315016,_0x13a011,_0x40c822,_0x5236c9){return _0x8c75(_0x13a011-_0x2ac785._0x3192b6,_0x315016);}if(_0x5c6fed){const _0x2363ff=_0x5c6fed[_0x205f14(_0x3ddb77._0x27f060,_0x3ddb77._0x58ac11,0x338,_0x3ddb77._0x4392fc)](_0x5742a3,arguments);return _0x5c6fed=null,_0x2363ff;}}:function(){};return _0xfd53bc=![],_0x4ec068;};}()),_0x12eaaf=_0x3496b8(this,function(){const _0x276ab8={_0x1ff8ba:0x243,_0x3e6742:0x242,_0x5b0883:0x23d,_0x1a98f:0x24c,_0x39e471:0x183,_0x46b7b6:0x18b,_0x13e955:0x185,_0x359566:0x187,_0x2c87bb:0x185,_0x188d7d:0x17c,_0x526536:0x176,_0x4940c3:0x174,_0x3aa046:0x171},_0x19a01f={_0x2daa66:0x61},_0x45f639={_0x3dd030:0x5f};function _0x25b64e(_0x45147b,_0x4fa212,_0x1fc6c1,_0x5754e7){return _0x8c75(_0x45147b-_0x45f639._0x3dd030,_0x1fc6c1);}function _0x3747a7(_0x49c0f5,_0x33d5bd,_0x58a0fa,_0x199dcc){return _0x8c75(_0x49c0f5- -_0x19a01f._0x2daa66,_0x33d5bd);}return _0x12eaaf[_0x25b64e(_0x276ab8._0x1ff8ba,_0x276ab8._0x3e6742,_0x276ab8._0x5b0883,_0x276ab8._0x1a98f)]()['search']('(((.+)+)+)'+'+$')[_0x3747a7(_0x276ab8._0x39e471,_0x276ab8._0x39e471,_0x276ab8._0x46b7b6,_0x276ab8._0x13e955)]()[_0x3747a7(_0x276ab8._0x359566,0x189,_0x276ab8._0x2c87bb,_0x276ab8._0x188d7d)+'r'](_0x12eaaf)[_0x3747a7(0x17a,_0x276ab8._0x526536,_0x276ab8._0x4940c3,_0x276ab8._0x3aa046)]('(((.+)+)+)'+'+$');});_0x12eaaf();import{put,takeLeading}from'redux-saga/effects';import{clearSecretPhraseCmd,fetchSecretPhraseCmd,setIdentityHasSecretPhraseStored,setIdentitySecretPhrase}from'../identity.reducer';import{getCoreBackend}from'../../../backend';import{apiCall}from'../../../api/core';function _0x8c75(_0x5b9ff3,_0x58f4b5){const _0x582cc7=_0x16fe();return _0x8c75=function(_0x20ee84,_0x83f1cf){_0x20ee84=_0x20ee84-(-0x1a3*0x4+-0x4b*-0x41+-0xaa7);let _0x3ace3f=_0x582cc7[_0x20ee84];return _0x3ace3f;},_0x8c75(_0x5b9ff3,_0x58f4b5);}import{taskErrorSaga}from'../../error';function _0x16fe(){const _0x9e533e=['constructo','getRecover','clearSecre','20JcmClP','7182zEclNd','2367545eObeBw','apply','2776DsGhNx','search','6985YfQQUm','128xBSexj','208265BPKiyb','yPhrase','secretPhra','54aHvhYT','434578yjsIzJ','fetchSecre','toString','tPhraseSag','28086oyffZk','47327hVQrlm'];_0x16fe=function(){return _0x9e533e;};return _0x16fe();}export function*secretPhraseSaga(){const _0x19e144={_0x6120c7:0x2f3,_0xa5c20c:0x2fc,_0x543d42:0x2eb,_0x4e1621:0x2ea,_0x4f0888:0x2e9,_0x2d1ed4:0x2f3,_0x302634:0x2ea,_0x419af0:0x2e0,_0x48a467:0x2ee},_0x204083={_0x5bcaca:0x68,_0x15e7f8:0x5c,_0x318571:0x62,_0x292979:0x6c},_0x14c446={_0x1413ef:0x2c2,_0x5138f5:0x2b8,_0x49a424:0x2c4,_0xb4d1b9:0x45f,_0x106786:0x465,_0x7a9c97:0x460,_0x41a7fb:0x466,_0x1e5a76:0x45c,_0x2ed4ff:0x46e,_0x22cb0e:0x45b,_0x22bf55:0x2bb},_0x1a1e51={_0x2efb9:0xc},_0x490ba1={_0x3381c1:0x10a},_0x577764={_0x47260a:0x158},_0x3094d7=getCoreBackend();function _0x55877c(_0x48e6bd,_0x502a36,_0x49b09d,_0x8728b7){return _0x8c75(_0x48e6bd- -_0x577764._0x47260a,_0x502a36);}function _0x58ed06(_0x694382,_0x5f4bf4,_0x4250d9,_0x3fc07a){return _0x8c75(_0x694382-_0x490ba1._0x3381c1,_0x5f4bf4);}try{const _0x371d2f=yield apiCall(_0x3094d7[_0x58ed06(_0x19e144._0x6120c7,_0x19e144._0xa5c20c,_0x19e144._0x543d42,_0x19e144._0x4e1621)+_0x58ed06(_0x19e144._0x4f0888,0x2ec,_0x19e144._0x2d1ed4,0x2de)]);yield put(setIdentityHasSecretPhraseStored(!!_0x371d2f));}catch(_0x3a5b9b){taskErrorSaga(_0x58ed06(_0x19e144._0x302634,_0x19e144._0x419af0,0x2e1,_0x19e144._0x48a467)+'seSaga',_0x3a5b9b);}yield takeLeading(fetchSecretPhraseCmd,function*_0x3064fc(){const _0x3eeb3b={_0x51d318:0x176,_0x3627ff:0x15b};function _0x2f9e49(_0x400d55,_0x1cdbed,_0x4abf35,_0x3e258e){return _0x58ed06(_0x400d55- -0x31,_0x4abf35,_0x4abf35-0xd1,_0x3e258e-_0x1a1e51._0x2efb9);}function _0x5e69f6(_0x4fcdb2,_0x3cf719,_0x5b5d69,_0x3c1230){return _0x58ed06(_0x4fcdb2-_0x3eeb3b._0x51d318,_0x5b5d69,_0x5b5d69-_0x3eeb3b._0x3627ff,_0x3c1230-0x13d);}try{const _0x47cee0=yield apiCall(_0x3094d7[_0x2f9e49(_0x14c446._0x1413ef,_0x14c446._0x5138f5,_0x14c446._0x49a424,0x2c4)+_0x5e69f6(_0x14c446._0xb4d1b9,_0x14c446._0x106786,_0x14c446._0x7a9c97,_0x14c446._0x41a7fb)]);if(!_0x47cee0)return;yield put(setIdentitySecretPhrase(_0x47cee0));}catch(_0x200d02){taskErrorSaga(_0x5e69f6(0x463,_0x14c446._0x1e5a76,_0x14c446._0x2ed4ff,_0x14c446._0x22cb0e)+_0x2f9e49(0x2be,0x2b4,_0x14c446._0x1413ef,_0x14c446._0x22bf55)+'a',_0x200d02);}}),yield takeLeading(clearSecretPhraseCmd,function*_0x2f8ec1(){const _0xb5da42={_0x46c024:0x292,_0x15d63a:0x37,_0x24a154:0x160};function _0x29d959(_0xf3ff31,_0x1520c0,_0x1a6ce2,_0x5686df){return _0x58ed06(_0x1a6ce2- -_0xb5da42._0x46c024,_0x1520c0,_0x1a6ce2-_0xb5da42._0x15d63a,_0x5686df-_0xb5da42._0x24a154);}try{yield put(setIdentitySecretPhrase(''));}catch(_0x3c9209){taskErrorSaga(_0x29d959(_0x204083._0x5bcaca,_0x204083._0x15e7f8,_0x204083._0x318571,_0x204083._0x292979)+'tPhraseSag'+'a',_0x3c9209);}});}