OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / stats / flow / chat-sendMesage.js

1 lines · javascript ref:
function _0x541c(){const _0x4ca8b3=['849872OWFzPf','24695YCgKrE','running','payload','next\x20seq=','action','match','apply','toString','next\x20messa','10KbyuCh','constructo','354221aSexAe','lockRunnin','bottom','now','info','search','1858572EddroG','ing','chatMessag','bottomId','name','rendered','9UyzkgT','51oBtgHQ','232UScMKk','geId=','1709884TBuVkX','35138oQdTms','send\x20messa','196966jOvJxT','18EDicik','unlockRunn'];_0x541c=function(){return _0x4ca8b3;};return _0x541c();}(function(_0x28b367,_0xfef520){const _0x3f322f={_0x3d0f34:0x20e,_0x20936e:0x208,_0x2022e8:0x20e,_0x111924:0x20a,_0x490feb:0x20f,_0x1a366b:0x214,_0x4c6380:0x201,_0x56e899:0x20e,_0x5ed426:0x219,_0xbc84f2:0x1fd,_0x1241f0:0x440,_0x590736:0x450,_0x105d98:0x43f,_0x28bde7:0x456,_0x998a97:0x447,_0x20bd13:0x20d,_0x202419:0x201,_0x827bb4:0x217,_0x233d0a:0x21b,_0xd90fda:0x45e,_0x247049:0x461,_0x43bcfb:0x21f,_0xa194ae:0x20f,_0x527f3f:0x206,_0x34e3a4:0x206,_0x21d9b7:0x218,_0x4cb4fe:0x21d,_0xdac763:0x21c,_0x1e1f4f:0x45d,_0x5c077d:0x44f,_0x3b0917:0x456,_0x4b098e:0x44b,_0x54c620:0x210,_0x73acdd:0x215,_0x2bfb02:0x219,_0x498f4e:0x212},_0xc44ea7={_0x1505d7:0x2c8},_0x24fb65={_0x8d6a4e:0x392};function _0x2ee2de(_0xbbedcb,_0x4c2d69,_0x1fcf7a,_0x4a9204){return _0xfd14(_0x4c2d69-_0x24fb65._0x8d6a4e,_0x4a9204);}const _0x2a32ce=_0x28b367();function _0x4eb002(_0x60af9f,_0x479d6d,_0x2b2931,_0x4f0201){return _0xfd14(_0x479d6d- -_0xc44ea7._0x1505d7,_0x2b2931);}while(!![]){try{const _0x66e17d=parseInt(_0x4eb002(-_0x3f322f._0x3d0f34,-_0x3f322f._0x20936e,-_0x3f322f._0x2022e8,-0x1ff))/(-0x26d7+-0x6*-0x3cf+0x17*0xb2)+-parseInt(_0x4eb002(-0x219,-_0x3f322f._0x111924,-_0x3f322f._0x490feb,-_0x3f322f._0x1a366b))/(0x2*0xa4a+0xcb5+-0x4c1*0x7)*(-parseInt(_0x4eb002(-_0x3f322f._0x4c6380,-_0x3f322f._0x56e899,-_0x3f322f._0x5ed426,-_0x3f322f._0xbc84f2))/(-0x10a7+0x1874+0x1*-0x7ca))+-parseInt(_0x2ee2de(_0x3f322f._0x1241f0,0x44d,_0x3f322f._0x590736,_0x3f322f._0x105d98))/(-0x17bf+-0x116d+0x2*0x1498)*(parseInt(_0x2ee2de(0x456,_0x3f322f._0x28bde7,_0x3f322f._0x998a97,_0x3f322f._0x590736))/(-0xfdd+0x1db0+0x1f*-0x72))+-parseInt(_0x4eb002(-0x207,-0x207,-_0x3f322f._0x20bd13,-_0x3f322f._0x202419))/(0x31f+0x10c8+-0x13e1)*(-parseInt(_0x4eb002(-_0x3f322f._0x827bb4,-_0x3f322f._0x233d0a,-0x20c,-_0x3f322f._0x233d0a))/(0x2*0xe59+-0x1f06+0x25b))+parseInt(_0x2ee2de(_0x3f322f._0xd90fda,0x455,_0x3f322f._0x247049,0x455))/(0x1*-0x5dd+0x86e+-0x289)*(parseInt(_0x4eb002(-_0x3f322f._0x43bcfb,-_0x3f322f._0xa194ae,-_0x3f322f._0x527f3f,-_0x3f322f._0x34e3a4))/(-0x1fc9+0x323*-0x5+0x2f81))+parseInt(_0x4eb002(-_0x3f322f._0x21d9b7,-_0x3f322f._0x4cb4fe,-_0x3f322f._0xdac763,-0x226))/(-0x125*-0x5+0x25b5+0x15b2*-0x2)*(-parseInt(_0x2ee2de(_0x3f322f._0x1e1f4f,_0x3f322f._0x5c077d,_0x3f322f._0x3b0917,_0x3f322f._0x4b098e))/(-0xfff+-0x2261+-0x1*-0x326b))+-parseInt(_0x4eb002(-_0x3f322f._0x54c620,-_0x3f322f._0x73acdd,-_0x3f322f._0x2bfb02,-_0x3f322f._0x498f4e))/(0x162f+0x1ad2+0x1*-0x30f5);if(_0x66e17d===_0xfef520)break;else _0x2a32ce['push'](_0x2a32ce['shift']());}catch(_0x210ba1){_0x2a32ce['push'](_0x2a32ce['shift']());}}}(_0x541c,-0x3b960+0x531*0x73+0x3c93c));const _0x169957=(function(){let _0x4a1d54=!![];return function(_0x2e5bcc,_0x48d0f9){const _0x5b2adf={_0x386a92:0x26c,_0x54b42e:0x26d,_0x45ffe5:0x261,_0x12f913:0x266},_0x3b37f3=_0x4a1d54?function(){const _0x29859e={_0x539ac2:0x1a3};function _0x1b70fa(_0x608f5f,_0x379065,_0x56bebb,_0x1c0a3b){return _0xfd14(_0x379065-_0x29859e._0x539ac2,_0x608f5f);}if(_0x48d0f9){const _0xe5e2c4=_0x48d0f9[_0x1b70fa(_0x5b2adf._0x386a92,_0x5b2adf._0x54b42e,_0x5b2adf._0x45ffe5,_0x5b2adf._0x12f913)](_0x2e5bcc,arguments);return _0x48d0f9=null,_0xe5e2c4;}}:function(){};return _0x4a1d54=![],_0x3b37f3;};}()),_0x183742=_0x169957(this,function(){const _0x5b9db8={_0x5062b7:0x10c,_0x5ae8c6:0x109,_0x1e6f08:0xfe,_0x2be43f:0x125,_0x33fa9b:0x10a,_0x5c82ef:0x11,_0x3e985d:0x19,_0x362459:0xe,_0x350290:0x11f},_0x4b30c3={_0x195f6b:0xba},_0x3eea39={_0x58f166:0x1c9};function _0x73d56b(_0x36e992,_0x37315d,_0x2b049c,_0x27d6aa){return _0xfd14(_0x27d6aa- -_0x3eea39._0x58f166,_0x2b049c);}function _0x2ffd4b(_0x81ed52,_0x550aba,_0x1eff46,_0xb68f56){return _0xfd14(_0x550aba- -_0x4b30c3._0x195f6b,_0xb68f56);}return _0x183742[_0x73d56b(-_0x5b9db8._0x5062b7,-_0x5b9db8._0x5ae8c6,-0x10f,-_0x5b9db8._0x1e6f08)]()[_0x73d56b(-_0x5b9db8._0x2be43f,-_0x5b9db8._0x33fa9b,-0x112,-0x117)]('(((.+)+)+)'+'+$')[_0x2ffd4b(0x5,_0x5b9db8._0x5c82ef,0x19,0x16)]()[_0x2ffd4b(-_0x5b9db8._0x3e985d,-_0x5b9db8._0x362459,0x2,-0x1c)+'r'](_0x183742)[_0x73d56b(-_0x5b9db8._0x2be43f,-_0x5b9db8._0x350290,-0x127,-0x117)]('(((.+)+)+)'+'+$');});_0x183742();import{takeLatest,setContext,getContext,put,cancelled}from'redux-saga/effects';import{ENV_CONTEXT_KEY}from'../../constants';import{setTimeStatsSendMsg,clearTimeStatsSendMsg}from'../stats.reducer';import{chatReset,getChatMessageId,sendChatMessageSubmit,sendChatMessageSuccess,setChatMessageCount,setChatMessagesInView}from'../../chat';function _0xfd14(_0x86d1a0,_0x4d11a2){const _0x1e2938=_0x541c();return _0xfd14=function(_0x5320fe,_0x32f735){_0x5320fe=_0x5320fe-(-0x6*0x8b+0x11b0+-0x6e2*0x2);let _0x10e938=_0x1e2938[_0x5320fe];return _0x10e938;},_0xfd14(_0x86d1a0,_0x4d11a2);}function _0x20f9c8(_0x49e9d4,_0x420444,_0x1775d6,_0x55ceab){return _0xfd14(_0x55ceab- -0x1df,_0x49e9d4);}import{TIME_CONTEXT_KEY,takeStep,sequence,printFlow,createTimeContext}from'./flow.model';import{sharedCoreMessagesUpdate}from'../../api/data.action';const isUpdateChatMessages=_0x582dfc=>_0x4fe0aa=>sharedCoreMessagesUpdate[_0x5a3140(-0x263,-0x25d,-0x25c,-0x25d)](_0x4fe0aa)&&_0x4fe0aa[_0x5a3140(-0x25e,-0x254,-0x260,-0x260)]['chatMessag'+'es'][-0x2fb+-0x16f6+0x19f1]?.['seq']===_0x582dfc,isSetChatMessageInView=(_0x441975,_0x5a56ed)=>_0x4fd6db=>setChatMessagesInView['match'](_0x4fd6db)&&(_0x4fd6db[_0x20f9c8(-0x115,-0x10f,-0x118,-0x119)][_0x20f9c8(-0x128,-0x120,-0x126,-0x130)]===_0x441975||_0x4fd6db[_0x20f9c8(-0x118,-0x111,-0x126,-0x119)][_0x5a3140(-0x279,-0x261,-0x277,-0x270)]===_0x5a56ed);function _0x5a3140(_0x1a811f,_0x440ed5,_0x401ec1,_0x5c0fee){const _0x5900b3={_0x4e3208:0x326};return _0xfd14(_0x5c0fee- -_0x5900b3._0x4e3208,_0x1a811f);}export function*statsSendMessageSaga(_0x15b64e){const _0x5860af={_0x4ef5bd:0x8,_0xf7c51b:0x14,_0x5ebd41:0x1d4,_0x24977e:0x1e9,_0x18bc60:0x1e1,_0x54f7f6:0x1d0,_0x5ad8df:0x1cc,_0x38a8b8:0x13,_0x23b65e:0x30,_0x107bd5:0x16,_0x2794ee:0x1f,_0x1b713f:0x23,_0x5d0203:0xf,_0x1edf90:0x1c,_0x819c7e:0x20,_0x2dd9ae:0x26,_0x50a6e7:0x1b,_0x153625:0x11,_0x32d0c2:0x1e,_0x3bb089:0x1dd,_0x34935a:0x1d0,_0x10c4ef:0x1da,_0x5b4a2a:0x1da,_0x563960:0x1d3,_0x25d51d:0x1d0,_0x29cebb:0x1c8,_0x531457:0x1c5,_0x5099e4:0x1de,_0x1f017d:0x1d7,_0x41ff33:0xd,_0x4a8e74:0x9,_0x109bfc:0x1c9,_0x2e7e8d:0x1e0,_0x329502:0x1d3,_0x4d076a:0x1d9,_0x42c91c:0x1c6,_0xcbaf1e:0x1d6,_0x21279b:0x1d2},_0xf01f8b={_0x5bcd36:0xa4,_0x437121:0xf8,_0x294813:0x27e},_0x3347bc={_0xbcf0f0:0x197,_0x29c79c:0x441};yield setContext({[TIME_CONTEXT_KEY]:createTimeContext(Date[_0x56a3e9(-_0x5860af._0x4ef5bd,_0x5860af._0xf7c51b,0x11,_0x5860af._0x4ef5bd)]())});function _0x2458e4(_0x553c4b,_0x3ff006,_0xa10e9e,_0x1d1ffe){return _0x5a3140(_0x3ff006,_0x3ff006-0x31,_0xa10e9e-_0x3347bc._0xbcf0f0,_0x1d1ffe-_0x3347bc._0x29c79c);}const _0x369bea=yield takeStep(sendChatMessageSuccess),_0x2dba7c=yield takeStep(setChatMessageCount),_0x3f82b7=_0x2dba7c['action'][_0x2458e4(_0x5860af._0x5ebd41,_0x5860af._0x24977e,0x1d3,_0x5860af._0x18bc60)]-(0x93e+-0x213b+-0x2*-0xbff);_0x2dba7c[_0x2458e4(0x1d0,0x1bb,_0x5860af._0x54f7f6,_0x5860af._0x5ad8df)]=_0x56a3e9(_0x5860af._0x38a8b8,_0x5860af._0x23b65e,_0x5860af._0x107bd5,_0x5860af._0x2794ee)+_0x3f82b7;const _0x3a8705=yield takeStep(isUpdateChatMessages(_0x3f82b7)),_0x12847e=getChatMessageId(_0x3a8705[_0x56a3e9(_0x5860af._0x1b713f,_0x5860af._0x5d0203,_0x5860af._0x1edf90,_0x5860af._0x819c7e)][_0x56a3e9(_0x5860af._0x2dd9ae,_0x5860af._0x50a6e7,_0x5860af._0x153625,_0x5860af._0x32d0c2)][_0x2458e4(_0x5860af._0x18bc60,_0x5860af._0x3bb089,0x1db,_0x5860af._0x34935a)+'es'][0x2133*0x1+0x2348+-0x1*0x447b]);function _0x56a3e9(_0x317039,_0x455cac,_0x2019af,_0x53f5eb){return _0x5a3140(_0x455cac,_0x455cac-_0xf01f8b._0x5bcd36,_0x2019af-_0xf01f8b._0x437121,_0x53f5eb-_0xf01f8b._0x294813);}_0x3a8705[_0x2458e4(_0x5860af._0x10c4ef,_0x5860af._0x5b4a2a,_0x5860af._0x563960,_0x5860af._0x5ad8df)]=_0x2458e4(_0x5860af._0x25d51d,_0x5860af._0x29cebb,0x1cc,_0x5860af._0x531457)+_0x2458e4(_0x5860af._0x5099e4,_0x5860af._0x5ad8df,_0x5860af._0x563960,_0x5860af._0x1f017d)+_0x12847e;const _0x26146f=yield takeStep(isSetChatMessageInView(_0x3f82b7,_0x12847e));return _0x26146f[_0x56a3e9(0x11,0xf,_0x5860af._0x41ff33,_0x5860af._0x4a8e74)]=_0x2458e4(_0x5860af._0x109bfc,0x1e3,_0x5860af._0x2e7e8d,_0x5860af._0x329502),sequence(_0x15b64e[_0x2458e4(_0x5860af._0x4d076a,_0x5860af._0x42c91c,_0x5860af._0xcbaf1e,_0x5860af._0x21279b)],[_0x369bea,_0x2dba7c,_0x3a8705,_0x26146f]);}export function*statsSendMessage(_0x380d28){const _0x9f2dd8={_0x180512:0x259,_0x1dc919:0x24b,_0x5173d0:0x261},_0x4fbb8a={_0x260fa3:0x16,_0x405590:0x5,_0x26a9b4:0x21,_0xb2a214:0x15,_0x2bc1a1:0x24,_0x419629:0x25,_0x400020:0x19,_0x1efec4:0x13,_0x1c6751:0x389,_0x2cfd92:0x390,_0x381d75:0x388,_0x1d0928:0x2a,_0xa4c1d5:0x3b,_0x58f3e1:0x1e,_0x2c2402:0x2c,_0x29c375:0x24,_0x2b6631:0x21,_0x4490bf:0x26,_0x263d82:0x24,_0x5eff42:0x18,_0x4822d4:0x27,_0xd9850c:0x23},_0x27fc0c={_0x3da3f6:0x155,_0x5bf337:0x18a},_0x1c7690={_0x24ac2f:0x2b,_0x3cc892:0x5d2,_0x5819b8:0x133},_0x57bc16={_0x5a3358:0xb8,_0x523070:0xa0,_0x489d78:0x17};function _0x34564f(_0x4b2757,_0x1993ad,_0x42a1db,_0x470a54){return _0x5a3140(_0x470a54,_0x1993ad-_0x57bc16._0x5a3358,_0x42a1db-_0x57bc16._0x523070,_0x1993ad-_0x57bc16._0x489d78);}const {timeStats:_0x50ab7d}=yield getContext(ENV_CONTEXT_KEY),{log:_0x260a70}=_0x50ab7d||{},_0x38431e=_0x34564f(-_0x9f2dd8._0x180512,-0x250,-_0x9f2dd8._0x1dc919,-_0x9f2dd8._0x5173d0)+'ge';_0x260a70(_0x38431e),yield takeLatest([sendChatMessageSubmit,chatReset],function*_0x33dde3(_0x564471){function _0x3b1733(_0xa6fbcd,_0x40628e,_0x5032e7,_0x1f1e0a){return _0x34564f(_0xa6fbcd-_0x1c7690._0x24ac2f,_0x1f1e0a-_0x1c7690._0x3cc892,_0x5032e7-_0x1c7690._0x5819b8,_0xa6fbcd);}function _0x3a35af(_0x20fa00,_0x5674f4,_0x4bb4d1,_0x6b6891){return _0x34564f(_0x20fa00-_0x27fc0c._0x3da3f6,_0x20fa00-0x237,_0x4bb4d1-_0x27fc0c._0x5bf337,_0x5674f4);}try{if(chatReset['match'](_0x564471)){yield put(clearTimeStatsSendMsg()),_0x380d28[_0x3a35af(-_0x4fbb8a._0x260fa3,-_0x4fbb8a._0x405590,-_0x4fbb8a._0x26a9b4,-_0x4fbb8a._0xb2a214)+_0x3a35af(-_0x4fbb8a._0x2bc1a1,-_0x4fbb8a._0x419629,-_0x4fbb8a._0x400020,-_0x4fbb8a._0x1efec4)]();return;}if(_0x380d28[_0x3b1733(_0x4fbb8a._0x1c6751,_0x4fbb8a._0x2cfd92,0x37b,_0x4fbb8a._0x381d75)])return;_0x380d28[_0x3a35af(-_0x4fbb8a._0x1d0928,-_0x4fbb8a._0xa4c1d5,-_0x4fbb8a._0x58f3e1,-_0x4fbb8a._0x2c2402)+'g']();const _0x2fbd23=yield statsSendMessageSaga({'name':_0x38431e}),_0x40cfa0=yield printFlow(_0x2fbd23);_0x380d28['unlockRunn'+_0x3a35af(-_0x4fbb8a._0x29c375,-_0x4fbb8a._0x2b6631,-_0x4fbb8a._0x4490bf,-0x15)](),yield put(setTimeStatsSendMsg(_0x40cfa0));}finally{(yield cancelled())&&_0x380d28['unlockRunn'+_0x3a35af(-_0x4fbb8a._0x263d82,-_0x4fbb8a._0x5eff42,-_0x4fbb8a._0x4822d4,-_0x4fbb8a._0xd9850c)]();}});}