(function(_0x2b978f,_0x81fbf8){const _0x45a911={_0x2595b5:0x280,_0x370f29:0x26c,_0x501d88:0x284,_0x4222e1:0x27f,_0x1968dd:0x27d,_0x4eb232:0x286,_0x3c94ec:0x25a,_0x4de65c:0x24f,_0x1f7470:0x25e,_0x3ddc9f:0x256,_0x2f7563:0x263,_0x111550:0x254,_0x1f109c:0x26e,_0x3425e1:0x278,_0x9a7164:0x261,_0x295769:0x263,_0x2c928d:0x26f,_0x42ab01:0x271,_0x37a054:0x272,_0x4163e0:0x26a,_0x42680a:0x262,_0x480319:0x268,_0x3490a4:0x273,_0x421216:0x280,_0xad5311:0x284,_0x3bd58e:0x25d,_0x7b6bd2:0x278,_0x5d57ff:0x264,_0x358ff6:0x25f,_0x5ec755:0x268,_0x1a40ac:0x279},_0x713a75={_0x5e8e51:0x115},_0x575ccb={_0x102a27:0x3c3};function _0x3a575b(_0x268e1a,_0x53670e,_0x35f6e0,_0x1d062c){return _0x4f29(_0x268e1a- -_0x575ccb._0x102a27,_0x1d062c);}function _0x25f4de(_0x32d306,_0x58b934,_0x794ace,_0x18c44e){return _0x4f29(_0x58b934-_0x713a75._0x5e8e51,_0x794ace);}const _0x166b85=_0x2b978f();while(!![]){try{const _0x380e70=parseInt(_0x25f4de(_0x45a911._0x2595b5,0x273,_0x45a911._0x370f29,0x26e))/(0x331*0x3+-0x179*0x13+0x3*0x623)+parseInt(_0x25f4de(_0x45a911._0x501d88,_0x45a911._0x4222e1,_0x45a911._0x1968dd,_0x45a911._0x4eb232))/(0x1c81+0xcca*-0x1+-0xfb5*0x1)+parseInt(_0x3a575b(-_0x45a911._0x3c94ec,-_0x45a911._0x4de65c,-_0x45a911._0x1f7470,-_0x45a911._0x3ddc9f))/(-0x1*-0x418+0x73*0x1+-0x5*0xe8)*(-parseInt(_0x3a575b(-_0x45a911._0x2f7563,-_0x45a911._0x111550,-0x26f,-_0x45a911._0x1f109c))/(-0x278*-0xb+0x921+-0x2445*0x1))+parseInt(_0x25f4de(_0x45a911._0x3425e1,_0x45a911._0x370f29,_0x45a911._0x9a7164,_0x45a911._0x295769))/(0xd49*0x1+-0x131e+0x5da)*(parseInt(_0x3a575b(-0x266,-_0x45a911._0x2c928d,-_0x45a911._0x42ab01,-_0x45a911._0x37a054))/(-0x284*-0x1+-0x5*-0x607+-0x20a1))+parseInt(_0x3a575b(-_0x45a911._0x4163e0,-_0x45a911._0x42680a,-_0x45a911._0x3425e1,-_0x45a911._0x480319))/(0x21d*-0x10+0x66*0x25+0x1319*0x1)*(-parseInt(_0x25f4de(_0x45a911._0x3490a4,_0x45a911._0x421216,_0x45a911._0xad5311,_0x45a911._0x42ab01))/(0xd72+-0x8c2+-0x1*0x4a8))+parseInt(_0x3a575b(-0x26b,-_0x45a911._0x3bd58e,-0x266,-_0x45a911._0x7b6bd2))/(-0x1*0xd29+0x48b*-0x5+0x23e9)*(parseInt(_0x3a575b(-_0x45a911._0x5d57ff,-_0x45a911._0x358ff6,-_0x45a911._0x3490a4,-_0x45a911._0x5ec755))/(0x1538+0x6c*-0x9+0x37a*-0x5))+parseInt(_0x3a575b(-_0x45a911._0x1f109c,-0x272,-_0x45a911._0x1a40ac,-0x261))/(0x257e+-0x1*-0x55b+-0x2ace)*(-parseInt(_0x25f4de(_0x45a911._0x1f109c,0x278,0x278,_0x45a911._0x1968dd))/(-0x3*-0xb9c+-0x1*0x2164+0x1*-0x164));if(_0x380e70===_0x81fbf8)break;else _0x166b85['push'](_0x166b85['shift']());}catch(_0x2c28ef){_0x166b85['push'](_0x166b85['shift']());}}}(_0x24e4,-0x29ed9+-0x192e1+0x908c8));function _0x4f29(_0x254bfd,_0x1eafe9){const _0x22c44e=_0x24e4();return _0x4f29=function(_0x3f1349,_0x405bf2){_0x3f1349=_0x3f1349-(0x1a0*0x4+-0x2*0xc14+0x5*0x3cb);let _0x41594f=_0x22c44e[_0x3f1349];return _0x41594f;},_0x4f29(_0x254bfd,_0x1eafe9);}const _0x39819e=(function(){let _0x4126a5=!![];return function(_0x7ed09f,_0x1f9187){const _0x56a262={_0x1f1433:0x269,_0x1aaf6b:0x272,_0x3a9dce:0x26e},_0x3156de=_0x4126a5?function(){function _0x1bd3da(_0x388929,_0x38e1b4,_0x536e59,_0x5ad39e){return _0x4f29(_0x536e59-0x11b,_0x388929);}if(_0x1f9187){const _0x3e6930=_0x1f9187[_0x1bd3da(_0x56a262._0x1f1433,_0x56a262._0x1aaf6b,_0x56a262._0x3a9dce,0x273)](_0x7ed09f,arguments);return _0x1f9187=null,_0x3e6930;}}:function(){};return _0x4126a5=![],_0x3156de;};}()),_0x56ae80=_0x39819e(this,function(){const _0x795a0d={_0x258348:0x13b,_0x446a91:0x138,_0x2f97f3:0x132,_0x48b1d6:0x12f,_0x3d9124:0x52f,_0xf104ec:0x52e,_0x19e41a:0x52c,_0x23fd88:0x525,_0x27a7eb:0x51e,_0x16cee9:0x519,_0x4f9f5f:0x153,_0x46d7e1:0x150,_0xc1d930:0x147,_0x2d796a:0x148,_0xb0bac6:0x524,_0x54d0a7:0x146,_0x2dd7d1:0x150,_0x211b99:0x142},_0x18dbab={_0x44c3bf:0x15},_0x215520={_0x2247a1:0x3d4};function _0x3ee4cf(_0x55e40a,_0x8893bd,_0x347ab1,_0x2d9100){return _0x4f29(_0x55e40a-_0x215520._0x2247a1,_0x2d9100);}function _0x12412d(_0x4e0e1d,_0x440c23,_0x49309a,_0x289030){return _0x4f29(_0x4e0e1d- -_0x18dbab._0x44c3bf,_0x49309a);}return _0x56ae80['toString']()[_0x12412d(_0x795a0d._0x258348,_0x795a0d._0x446a91,_0x795a0d._0x2f97f3,_0x795a0d._0x48b1d6)](_0x3ee4cf(_0x795a0d._0x3d9124,_0x795a0d._0xf104ec,0x53b,_0x795a0d._0x19e41a)+'+$')[_0x3ee4cf(_0x795a0d._0x23fd88,_0x795a0d._0x27a7eb,0x528,_0x795a0d._0x16cee9)]()[_0x12412d(_0x795a0d._0x4f9f5f,_0x795a0d._0x46d7e1,_0x795a0d._0xc1d930,_0x795a0d._0x2d796a)+'r'](_0x56ae80)[_0x3ee4cf(_0x795a0d._0xb0bac6,0x532,0x52a,0x51b)](_0x12412d(_0x795a0d._0x54d0a7,_0x795a0d._0x2dd7d1,_0x795a0d._0x446a91,_0x795a0d._0x211b99)+'+$');});function _0x24e4(){const _0x3e6e47=['toString','addChatMes','apply','No\x20room\x20se','27148FeOAIh','sage','45OYZRhf','9UahnDn','32781Faecap','Add\x20Messag','(((.+)+)+)','slice','154926gEkFZc','42537XYKbxt','4595980BPdXKz','1420552AXUxrO','round','LONG','636rkFTWq','Room\x20','length','createRoom','Message\x20','constructo','3fzKeFy','671094FlSfZS','456fzSMeP','INDEX','search'];_0x24e4=function(){return _0x3e6e47;};return _0x24e4();}_0x56ae80();function _0x4ecd62(_0x23895c,_0x143308,_0x3c7e35,_0x14a867){return _0x4f29(_0x143308-0x1b6,_0x23895c);}import{put,select,takeLatest,delay}from'redux-saga/effects';import{getCoreBackend}from'../../backend';import{apiCall}from'../../api/core';import{getAppCurrentRoomId}from'../app';import{createRoomInitialConfig,switchRoomSubmit}from'../room';import{userWarnNotification}from'../notification';import{autoCreateRooms,autoAddMessages}from'./ui-automation.reducer';import{AUTO_ADD_MESSAGE_TYPE,LONG_TEXT}from'./ui-automation.constants';export function*autoCreateRoomsSaga({payload:{numRooms:numRooms=0xe78+-0x22d5+0x145e,index:index=-0x1*-0xc9d+-0xc22*-0x2+-0x24e0,openLast:openLast=![]}}){const _0x58902f={_0x4140cd:0x23c,_0x4f42ed:0x245,_0x307037:0x234,_0x3899a2:0x23f,_0xd5e2ab:0x40b,_0x288e43:0x40a,_0x4e09b3:0x418,_0x5e592b:0x40f},_0x4fff31={_0x26fb41:0x2a9},_0x34945a={_0x4434bb:0x3a0},_0x3a1637=getCoreBackend();let _0x437005;function _0x47e0fe(_0x488213,_0xda9636,_0x5a8167,_0x164d4b){return _0x4f29(_0x488213- -_0x34945a._0x4434bb,_0x5a8167);}for(let _0x36c643=index;_0x36c643<index+numRooms;_0x36c643+=-0x7b*0x3e+0x23be+-0x5f3){const _0x19affe=createRoomInitialConfig(_0x47e0fe(-_0x58902f._0x4140cd,-_0x58902f._0x4f42ed,-_0x58902f._0x307037,-_0x58902f._0x3899a2)+_0x36c643);_0x437005=yield apiCall(_0x3a1637[_0x572014(_0x58902f._0xd5e2ab,_0x58902f._0x288e43,_0x58902f._0x4e09b3,_0x58902f._0x5e592b)],{'config':_0x19affe}),yield delay(0x13c6+-0x7bc+0xb10*-0x1);}function _0x572014(_0x10cd6b,_0x5d4685,_0x2ffe67,_0x465175){return _0x4f29(_0x465175-_0x4fff31._0x26fb41,_0x10cd6b);}openLast&&(yield put(switchRoomSubmit({'roomId':_0x437005})));}export function*autoAddMessagesSaga({payload:{numMessages:numMessages=0x14f7+-0x1d66+0x870,type:type=AUTO_ADD_MESSAGE_TYPE[_0x4ecd62(0x313,0x305,0x304,0x300)]}}){const _0x3b477c={_0x9f552c:0x541,_0x4bf92c:0x530,_0x2b61f6:0x53c,_0x5044cd:0x531,_0x579535:0x536,_0x5a7cab:0x54e,_0x4052a8:0x547,_0x5418dd:0x54a,_0x53f814:0x549,_0x149272:0x1d0,_0x4270ee:0x550,_0xabb47:0x548,_0x381991:0x1ca,_0x1b1354:0x1d7,_0x47c9dc:0x1cd,_0x130111:0x1db,_0x293d61:0x1c8,_0x28204e:0x1d1,_0x20bb13:0x1e0,_0x47e8a1:0x1d2},_0x188e6b={_0x1aa8aa:0x22c,_0x362eae:0x87},_0x4916f6={_0x28e681:0x13b,_0x482101:0xf5,_0x5b5c87:0x61},_0x2e95f0=getCoreBackend(),_0x37c6d7=()=>Math[_0x51e610(0x1d4,0x1dc,0x1d0,0x1d8)](Math['random']()*LONG_TEXT[_0x124bcb(0x53d,0x53c,0x54c,0x547)]-(0x993+-0x27*0xef+0x1*0x1ad7)),_0x259d35=yield select(getAppCurrentRoomId);if(!_0x259d35){yield put(userWarnNotification({'title':_0x124bcb(_0x3b477c._0x9f552c,_0x3b477c._0x4bf92c,0x535,_0x3b477c._0x2b61f6)+'es','message':_0x124bcb(0x53f,_0x3b477c._0x5044cd,0x536,_0x3b477c._0x579535)+'lected'}));return;}function _0x51e610(_0x50488e,_0x331342,_0x32db1d,_0x382db1){return _0x4ecd62(_0x32db1d,_0x331342- -_0x4916f6._0x28e681,_0x32db1d-_0x4916f6._0x482101,_0x382db1-_0x4916f6._0x5b5c87);}function _0x124bcb(_0x393ba9,_0x1cd83d,_0x41f01f,_0x10c718){return _0x4ecd62(_0x1cd83d,_0x10c718-_0x188e6b._0x1aa8aa,_0x41f01f-0x132,_0x10c718-_0x188e6b._0x362eae);}for(let _0xf5c011=0x7*0x551+-0x2654+0xf*0x13;_0xf5c011<numMessages;_0xf5c011+=-0xc5c+-0x1122+0x347*0x9){let _0x47b7a9;switch(type){case AUTO_ADD_MESSAGE_TYPE['INDEX']:_0x47b7a9=_0x124bcb(_0x3b477c._0x5a7cab,_0x3b477c._0x4052a8,_0x3b477c._0x5418dd,_0x3b477c._0x53f814)+(_0xf5c011+(-0x1*-0x5ad+0x20b*0x11+-0x2867));break;case AUTO_ADD_MESSAGE_TYPE['SHORT']:{const _0x337a65=_0x37c6d7(),_0x47b69b=_0x337a65+(-0x2f*-0xa+-0x21*-0xb5+-0x3*0x853);_0x47b7a9=LONG_TEXT[_0x51e610(0x1e2,0x1d7,_0x3b477c._0x149272,0x1d2)](_0x337a65,_0x47b69b);break;}case AUTO_ADD_MESSAGE_TYPE[_0x124bcb(_0x3b477c._0x4270ee,_0x3b477c._0xabb47,_0x3b477c._0x2b61f6,0x544)]:_0x47b7a9=LONG_TEXT[_0x51e610(_0x3b477c._0x381991,_0x3b477c._0x1b1354,0x1cf,0x1c9)](_0x37c6d7());break;default:break;}yield apiCall(_0x2e95f0[_0x51e610(0x1c6,_0x3b477c._0x47c9dc,_0x3b477c._0x130111,_0x3b477c._0x293d61)+_0x51e610(0x1c5,_0x3b477c._0x28204e,_0x3b477c._0x20bb13,_0x3b477c._0x47e8a1)],_0x259d35,_0x47b7a9),yield delay(0x329*0x9+-0x101c+-0xb5b);}}export function*uiAutomationSaga(){yield takeLatest(autoCreateRooms,autoCreateRoomsSaga),yield takeLatest(autoAddMessages,autoAddMessagesSaga);}