(function(_0x330a3a,_0x51b552){const _0x137383={_0x5185f4:0x465,_0x1620a2:0x459,_0x14ae5a:0x44d,_0x3efc96:0x458,_0x4fd1af:0x43e,_0x257848:0x43c,_0x41f989:0x449,_0x34d714:0x435,_0x573bd6:0x44d,_0x245b15:0x44f,_0x15ac59:0x453,_0x44ec5b:0x46d,_0x1f0a7b:0x480,_0xf06ada:0x474,_0x1b05e8:0x47a,_0x398c43:0x452,_0x402cf6:0x446,_0x54b909:0x450,_0x5dbc54:0x477,_0x2f325b:0x481,_0x91cf2:0x478,_0x1ed716:0x486,_0xb99782:0x43a,_0x2a561d:0x459,_0x429ece:0x438,_0x316780:0x440,_0x5e661a:0x44e,_0xf1e057:0x447,_0x4bb5ac:0x442,_0x4a2468:0x432,_0x47c576:0x43f},_0x37f8ce={_0x5f1782:0x2bd},_0x233912={_0x56d0fc:0x2ef};function _0x582b7a(_0x3878b8,_0x141918,_0x379b25,_0x52b389){return _0x75f5(_0x52b389-_0x233912._0x56d0fc,_0x379b25);}function _0x2113cc(_0x28511e,_0xa75128,_0xcdb504,_0x2fba70){return _0x75f5(_0x2fba70-_0x37f8ce._0x5f1782,_0x28511e);}const _0x458b4d=_0x330a3a();while(!![]){try{const _0x6f3686=parseInt(_0x2113cc(_0x137383._0x5185f4,_0x137383._0x1620a2,_0x137383._0x14ae5a,_0x137383._0x3efc96))/(-0x1*0xbd3+0x149*-0x15+0x26d1*0x1)+-parseInt(_0x2113cc(0x434,_0x137383._0x4fd1af,0x440,_0x137383._0x257848))/(0x16f5+0x83*0x25+-0x29e2)*(parseInt(_0x2113cc(_0x137383._0x41f989,_0x137383._0x34d714,_0x137383._0x34d714,0x43d))/(-0x1578+0x11e6+0x395))+-parseInt(_0x2113cc(_0x137383._0x573bd6,_0x137383._0x245b15,_0x137383._0x15ac59,_0x137383._0x14ae5a))/(-0x3*-0x369+-0x224e+0x1817)*(parseInt(_0x582b7a(_0x137383._0x44ec5b,_0x137383._0x1f0a7b,_0x137383._0xf06ada,_0x137383._0x1b05e8))/(0x2689+0x16f5+0x1*-0x3d79))+parseInt(_0x2113cc(_0x137383._0x398c43,0x458,_0x137383._0x402cf6,_0x137383._0x54b909))/(-0x130e+-0x2674+0x41c*0xe)*(parseInt(_0x582b7a(_0x137383._0x5dbc54,_0x137383._0x2f325b,_0x137383._0x91cf2,_0x137383._0x1ed716))/(0x7*-0x3f3+-0x66a+0x2216))+parseInt(_0x2113cc(_0x137383._0xb99782,0x43a,_0x137383._0x2a561d,_0x137383._0x41f989))/(0x2*-0xac2+0x63a+0xf52)+parseInt(_0x2113cc(_0x137383._0x429ece,_0x137383._0x316780,_0x137383._0x5e661a,_0x137383._0xf1e057))/(-0x5af*-0x1+0x307+0x8ad*-0x1)+-parseInt(_0x2113cc(_0x137383._0x14ae5a,0x449,_0x137383._0x34d714,_0x137383._0x4bb5ac))/(-0xe77+0x4*-0x7ea+0x1*0x2e29)*(parseInt(_0x2113cc(_0x137383._0x4a2468,0x448,_0x137383._0x47c576,_0x137383._0x4fd1af))/(0x1a77+0x833+-0x229f));if(_0x6f3686===_0x51b552)break;else _0x458b4d['push'](_0x458b4d['shift']());}catch(_0x1997b0){_0x458b4d['push'](_0x458b4d['shift']());}}}(_0x8d19,0x2fd1d+0x5ab11+0x2a0ba*-0x1));const _0x3cdc7b=(function(){let _0x487950=!![];return function(_0xde1b70,_0x1ab999){const _0x3cc8c2={_0xd9dfc1:0x418,_0x4b6635:0x422,_0xd9ad1:0x423,_0x5f4d04:0x40a},_0x29f28a={_0x14a4f5:0x28b},_0x16752f=_0x487950?function(){function _0x2f853b(_0x3b5c5a,_0x45d88e,_0x11f816,_0xe5fdd4){return _0x75f5(_0x3b5c5a-_0x29f28a._0x14a4f5,_0xe5fdd4);}if(_0x1ab999){const _0x375b73=_0x1ab999[_0x2f853b(_0x3cc8c2._0xd9dfc1,_0x3cc8c2._0x4b6635,_0x3cc8c2._0xd9ad1,_0x3cc8c2._0x5f4d04)](_0xde1b70,arguments);return _0x1ab999=null,_0x375b73;}}:function(){};return _0x487950=![],_0x16752f;};}()),_0x37842e=_0x3cdc7b(this,function(){const _0x39089b={_0x30cf86:0x369,_0x275887:0x365,_0x4a4661:0x350,_0x4b317d:0x303,_0x2c2910:0x300,_0x559c64:0x361,_0x273e36:0x354,_0x10b393:0x34b,_0x5cf2da:0x364},_0x4ad73f={_0x42f421:0x1c3},_0x40d349={_0x133771:0x173};function _0x37c86b(_0x1f27d8,_0x5addc7,_0x1710f3,_0x5a0831){return _0x75f5(_0x5addc7-_0x40d349._0x133771,_0x5a0831);}function _0x27e819(_0x19417c,_0x49a3d3,_0x3400eb,_0x13ec91){return _0x75f5(_0x49a3d3-_0x4ad73f._0x42f421,_0x19417c);}return _0x37842e[_0x27e819(_0x39089b._0x30cf86,0x35d,_0x39089b._0x275887,_0x39089b._0x4a4661)]()[_0x37c86b(_0x39089b._0x4b317d,0x301,0x2fc,_0x39089b._0x2c2910)](_0x27e819(_0x39089b._0x559c64,_0x39089b._0x273e36,_0x39089b._0x10b393,_0x39089b._0x5cf2da)+'+$')['toString']()['constructo'+'r'](_0x37842e)['search']('(((.+)+)+)'+'+$');});_0x37842e();import{all,select,put,fork,call}from'redux-saga/effects';function _0x75f5(_0x358c87,_0x529766){const _0x2637c8=_0x8d19();return _0x75f5=function(_0x26617f,_0x27e8fc){_0x26617f=_0x26617f-(-0x478*0x3+-0x1c03*-0x1+-0xd1c);let _0x49f74d=_0x2637c8[_0x26617f];return _0x49f74d;},_0x75f5(_0x358c87,_0x529766);}import{apiTakeEvery}from'../../lib';import{frequencyCalculator}from'../../lib/frequency-calculator';import{getCoreBackend}from'../../../backend';import{apiCall}from'../../../api/core';import{taskErrorSaga}from'../../error';import{getNotificationFrequenceResetInterval,NOTIFICATION_CODE,NOTIFICATION_MAX_FREQUENCY,userCustomNotification}from'../../notification';function _0x8d19(){const _0x31c214=['sage','getBlocked','subscribeU','memberId','897930NsUjky','5YAOdEE','4563344WBDUEs','apply','search','ROOM_ACTIV','2693808cmhjEJ','(((.+)+)+)','tyHandler','23106uWUZtH','ity','displayNam','getChatMes','924qVXPds','chat','isInteger','toString','478988KAVkfb','uency','ITY','updateFreq','6eYLbqe','99531wWdQfl','121TGZDeH','config','type','event','444910jgBrdw'];_0x8d19=function(){return _0x31c214;};return _0x8d19();}import{roomNewActivity,parseRoomConfigResponse,ROOM_TYPE,getRoomNotificationById}from'../../room';import{parseMessage,chatGetMessageRender}from'../../chat';import{getAppCurrentRoomId,getLastToastNotificationSeen}from'../app.reducer';import{getMyMemberId}from'../../identity';import{notifyCallStartEndSaga}from'./desktop-room-notifications.saga';function*roomActivityHandler({roomId:_0x76369f,message:_0x4239c2}){const _0x64381e={_0xbe8349:0x89,_0xfeee9c:0x90,_0x2b4618:0x85,_0x29525e:0x9e,_0x18c07c:0x8b,_0x596b9d:0x92,_0x58719c:0x9f,_0x4ed571:0xcf,_0x1208b8:0xbc,_0x70d7bf:0xc6,_0x976c6c:0xcb,_0x2b8199:0x92,_0x3b3be1:0x8a,_0x5a024c:0x8f,_0x13c368:0x83,_0x5d3e5e:0x7c,_0x3243f8:0x8c,_0x299928:0x88,_0x4e7bcf:0x8b,_0xacc4f1:0x81,_0x3f5673:0x7a,_0x385c6c:0x8e,_0x4a5baa:0x7b,_0x19bde1:0x74},_0xac2e4b={_0x5e1a5c:0xbc},_0x5b689c={_0x3c3f8f:0x219};function _0x1bf188(_0x2b0d19,_0x2d7c83,_0x239fb8,_0x1e9fb9){return _0x75f5(_0x2d7c83- -_0x5b689c._0x3c3f8f,_0x239fb8);}const _0x5c5dc6=getCoreBackend();function _0x54406f(_0x1773a6,_0x45ecfe,_0x592949,_0x3244e5){return _0x75f5(_0x592949- -_0xac2e4b._0x5e1a5c,_0x1773a6);}const [_0x36ebe2,_0x89064c,_0x38bcae]=yield all([apiCall(_0x5c5dc6['getRoomInf'+'o'],_0x76369f),apiCall(_0x5c5dc6['getMember'],_0x76369f,_0x4239c2[_0x1bf188(-_0x64381e._0xbe8349,-_0x64381e._0xfeee9c,-_0x64381e._0x2b4618,-_0x64381e._0x29525e)]),apiCall(_0x5c5dc6[_0x1bf188(-_0x64381e._0x18c07c,-_0x64381e._0x596b9d,-_0x64381e._0x58719c,-0x96)+'Members'])]),{title:_0x1e6d40,roomType:_0x35aef1}=parseRoomConfigResponse(_0x36ebe2?.[_0x54406f(_0x64381e._0x4ed571,_0x64381e._0x1208b8,_0x64381e._0x70d7bf,_0x64381e._0x976c6c)]),_0x4b36fc=_0x35aef1===ROOM_TYPE['DM'],{member:_0x5dd11a,messageText:_0x6c0c5f,isBlocked:_0x1fd141,messageDisplay:_0x4d8b89}=yield chatGetMessageRender({'roomId':_0x76369f,'message':_0x4239c2,'memberData':_0x89064c,'blockedMembers':_0x38bcae,'disabledCapabilities':_0x4b36fc});if(_0x1fd141)return;yield put(userCustomNotification({'code':NOTIFICATION_CODE[_0x1bf188(-_0x64381e._0x2b8199,-_0x64381e._0x3b3be1,-_0x64381e._0x3b3be1,-_0x64381e._0x5a024c)+_0x1bf188(-_0x64381e._0x13c368,-_0x64381e._0x5d3e5e,-_0x64381e._0x3243f8,-_0x64381e._0x299928)],'roomId':_0x76369f,'roomTitle':_0x4b36fc?_0x5dd11a['displayNam'+'e']:_0x1e6d40,'roomType':_0x35aef1,'roomMessage':{..._0x4239c2,'display':_0x4d8b89,'chat':_0x6c0c5f?{..._0x4239c2[_0x1bf188(-_0x64381e._0x4e7bcf,-_0x64381e._0xacc4f1,-_0x64381e._0x3f5673,-_0x64381e._0x385c6c)],'text':_0x6c0c5f}:_0x4239c2['chat'],'blocked':_0x1fd141},'member':{'isLocal':![],'displayName':_0x5dd11a?.[_0x1bf188(-_0x64381e._0x4a5baa,-0x84,-_0x64381e._0x19bde1,-0x80)+'e'],'blocked':_0x1fd141}}));}function*handleRoomActivityHandler(_0x4414ce,{roomId:_0xeca4d5,index:_0x514f52}){const _0x2f0ea3={_0xde63dc:0xba,_0x45d0aa:0xb6,_0x17d5db:0xc2,_0x52c347:0x22c,_0x3cf54a:0x228,_0x1af86a:0x233,_0x3e502d:0x232,_0x48da90:0x22d,_0x750b92:0x23a,_0x2c431b:0x233,_0x170f5d:0x22a,_0x1601fd:0xa5,_0x47b5d4:0xa9,_0x1eb5c0:0x9d,_0x590e61:0x98,_0x2d0f49:0x211,_0x58a0c7:0x20d,_0x1a1674:0x205,_0x15383e:0x215,_0x1609d2:0xbd,_0x4d2a2e:0xae,_0x4d51ea:0xb3,_0x503a54:0xa3,_0x34b068:0xbf,_0x468d12:0xb4},_0x90bf77={_0x9ffb43:0xdf};function _0x5896d4(_0x10dd68,_0x225eb2,_0x3390d0,_0x4f08c9){return _0x75f5(_0x4f08c9- -0x3b3,_0x3390d0);}function _0x4313b1(_0x54afe1,_0x11df0b,_0x5824de,_0x4910cc){return _0x75f5(_0x54afe1- -_0x90bf77._0x9ffb43,_0x11df0b);}try{if(!_0xeca4d5||!Number[_0x4313b1(_0x2f0ea3._0xde63dc,_0x2f0ea3._0x45d0aa,0xc3,_0x2f0ea3._0x17d5db)](_0x514f52))return;yield put(roomNewActivity(_0xeca4d5));const [_0x5a6bba,_0x1c5e2a,_0x132508,_0x17a13e]=yield all([select(getMyMemberId),select(getRoomNotificationById(_0xeca4d5)),select(getAppCurrentRoomId),select(getLastToastNotificationSeen)]);if(!_0x1c5e2a||_0x132508===_0xeca4d5)return;const _0x55b7c2=getCoreBackend(),_0x5b082b=_0x514f52,_0xcd9ce3=yield apiCall(_0x55b7c2[_0x5896d4(-0x210,-_0x2f0ea3._0x52c347,-0x221,-0x21d)+_0x5896d4(-_0x2f0ea3._0x3cf54a,-_0x2f0ea3._0x1af86a,-_0x2f0ea3._0x3e502d,-_0x2f0ea3._0x48da90)],_0xeca4d5,_0x5b082b),{message:_0x3fa3b7}=parseMessage(_0xcd9ce3);if(_0x17a13e&&_0x3fa3b7['timestamp']<_0x17a13e)return;if(_0x3fa3b7[_0x5896d4(-_0x2f0ea3._0x750b92,-0x239,-_0x2f0ea3._0x2c431b,-_0x2f0ea3._0x170f5d)]===_0x5a6bba)return;if(_0x3fa3b7[_0x4313b1(_0x2f0ea3._0x1601fd,0xa9,0xa2,_0x2f0ea3._0x47b5d4)]?.[_0x4313b1(0xa4,_0x2f0ea3._0x1eb5c0,_0x2f0ea3._0x590e61,0xae)]){yield call(notifyCallStartEndSaga,_0x3fa3b7,_0xeca4d5);return;}const _0x338c2d=_0x4414ce[_0x5896d4(-_0x2f0ea3._0x2d0f49,-_0x2f0ea3._0x58a0c7,-_0x2f0ea3._0x1a1674,-_0x2f0ea3._0x15383e)+_0x4313b1(_0x2f0ea3._0x1609d2,0xba,_0x2f0ea3._0x4d2a2e,0xc3)]();_0x338c2d<=NOTIFICATION_MAX_FREQUENCY&&(yield fork(roomActivityHandler,{'roomId':_0xeca4d5,'message':_0x3fa3b7}));}catch(_0x429875){yield taskErrorSaga('roomActivi'+_0x4313b1(_0x2f0ea3._0x4d51ea,_0x2f0ea3._0x503a54,_0x2f0ea3._0x34b068,_0x2f0ea3._0x468d12),_0x429875);}}export function*mobileRoomNotificationsSaga(){const _0x6722f5={_0x2b23df:0x161,_0x228fd2:0x16f,_0x4009d0:0x165,_0x5c5c20:0x34e,_0xec6b2b:0x342,_0x100372:0x34c},_0x2caad6={_0x31eac1:0x2f7},_0xf7c2cc={_0x5be50d:0x1ba},_0x4ef278=yield select(getNotificationFrequenceResetInterval);function _0x416627(_0x2a574e,_0x36493b,_0x3ea484,_0x56ba04){return _0x75f5(_0x2a574e-_0xf7c2cc._0x5be50d,_0x3ea484);}const _0x4cd047=frequencyCalculator(_0x4ef278);function _0x1a584e(_0x103f74,_0x1b94b3,_0x46c712,_0x93d38b){return _0x75f5(_0x46c712- -_0x2caad6._0x31eac1,_0x93d38b);}yield apiTakeEvery([getCoreBackend()[_0x1a584e(-0x16f,-_0x6722f5._0x2b23df,-_0x6722f5._0x228fd2,-_0x6722f5._0x4009d0)+'nreadActiv'+_0x416627(_0x6722f5._0x5c5c20,0x344,_0x6722f5._0xec6b2b,_0x6722f5._0x100372)],{'all':!![],'includeIndex':!![]}],_0x291d5e=>fork(handleRoomActivityHandler,_0x4cd047,_0x291d5e));}