(function(_0x3012ab,_0x45f08c){const _0x4ce19e={_0x5a23dd:0xac,_0x662d87:0xb3,_0x673272:0xca,_0x4e2e88:0x371,_0x41e5d4:0x3a2,_0x43a932:0x383,_0x3a34c4:0x38a,_0x48cf8c:0x361,_0x3600ce:0x36b,_0x45cfe4:0x364,_0x2cbe35:0x351,_0x1ca342:0x3ad,_0x3f3d39:0x387,_0x2e45c4:0x38c,_0x4a2df1:0x38b,_0x17c0fd:0x35b,_0x5bf590:0x375,_0x2048b7:0x97,_0x108ee0:0xb5,_0x4580f0:0xab,_0x4c1521:0x37c,_0x4a036b:0x388,_0x54c00c:0x366,_0x5854bf:0x386,_0xda3614:0x389,_0x8bca1b:0x376,_0x40937d:0xcb,_0x128603:0x94,_0x49a117:0x3b0,_0x7a42e1:0x3a0,_0x3f21ec:0x3aa,_0x1adc02:0x3b9,_0x15bd22:0x399,_0x376d45:0x36f,_0x1acc0c:0x38d,_0xc96bb:0x393,_0x586dc0:0x366,_0x7e4efe:0x361,_0x67f1a5:0x367,_0x3f9884:0x349,_0x3629b5:0x3a8,_0x5f3b23:0x3aa,_0x9812b8:0x398},_0x58b42c={_0x40bd5a:0xd4},_0x4f06c2={_0x4125d9:0x1e9};function _0x5d2b54(_0x2911bb,_0x8e7961,_0x382a5f,_0x3ea07){return _0x2272(_0x382a5f-_0x4f06c2._0x4125d9,_0x8e7961);}const _0x12b2a9=_0x3012ab();function _0x596925(_0x438bb9,_0x33ae65,_0x2de942,_0x38133f){return _0x2272(_0x2de942- -_0x58b42c._0x40bd5a,_0x33ae65);}while(!![]){try{const _0x23480f=-parseInt(_0x596925(_0x4ce19e._0x5a23dd,0xb4,_0x4ce19e._0x662d87,_0x4ce19e._0x673272))/(-0x1*0x2141+0x35d+-0x1*-0x1de5)*(parseInt(_0x5d2b54(_0x4ce19e._0x4e2e88,_0x4ce19e._0x41e5d4,_0x4ce19e._0x43a932,_0x4ce19e._0x3a34c4))/(-0x6fe*0x3+-0xe7c+-0x8*-0x46f))+parseInt(_0x5d2b54(_0x4ce19e._0x48cf8c,_0x4ce19e._0x3600ce,_0x4ce19e._0x45cfe4,_0x4ce19e._0x2cbe35))/(-0x1*-0x1beb+0x1*0x89b+0x2cf*-0xd)*(-parseInt(_0x5d2b54(_0x4ce19e._0x1ca342,_0x4ce19e._0x3f3d39,_0x4ce19e._0x2e45c4,0x386))/(-0x2238+-0x5*0x22b+-0xb*-0x419))+-parseInt(_0x5d2b54(_0x4ce19e._0x4a2df1,_0x4ce19e._0x17c0fd,_0x4ce19e._0x5bf590,_0x4ce19e._0x3600ce))/(-0x901*0x3+-0x1d8+0x1ce0)*(-parseInt(_0x596925(_0x4ce19e._0x2048b7,_0x4ce19e._0x108ee0,_0x4ce19e._0x4580f0,0xae))/(0x2542+0x2515+-0x4a51))+-parseInt(_0x5d2b54(_0x4ce19e._0x4c1521,_0x4ce19e._0x4a036b,_0x4ce19e._0x54c00c,0x373))/(0x1*0x67f+-0xba0+0x528)*(parseInt(_0x5d2b54(_0x4ce19e._0x5854bf,_0x4ce19e._0xda3614,_0x4ce19e._0x8bca1b,0x368))/(-0x1e73+-0x249a+-0x4315*-0x1))+-parseInt(_0x596925(0x92,_0x4ce19e._0x40937d,_0x4ce19e._0x5a23dd,_0x4ce19e._0x128603))/(0x7bf*0x2+0x12f4+0x17*-0x17f)*(parseInt(_0x5d2b54(0x3bb,_0x4ce19e._0x49a117,0x3a6,_0x4ce19e._0x7a42e1))/(0xce8+-0x6d6+0x304*-0x2))+parseInt(_0x5d2b54(_0x4ce19e._0x3f21ec,_0x4ce19e._0x1adc02,_0x4ce19e._0x15bd22,0x39f))/(0x19b2+-0x7a1+0x2*-0x903)*(-parseInt(_0x5d2b54(0x3a2,_0x4ce19e._0x376d45,_0x4ce19e._0x1acc0c,_0x4ce19e._0xc96bb))/(0x1*0x250d+0x955+0xf72*-0x3))+parseInt(_0x5d2b54(_0x4ce19e._0x586dc0,_0x4ce19e._0x7e4efe,_0x4ce19e._0x67f1a5,_0x4ce19e._0x3f9884))/(0xa36*-0x3+-0x3*0xf1+0x2182)*(parseInt(_0x5d2b54(_0x4ce19e._0x3629b5,_0x4ce19e._0x5f3b23,0x388,_0x4ce19e._0x9812b8))/(0x65*0x31+-0xf95+-0x56*0xb));if(_0x23480f===_0x45f08c)break;else _0x12b2a9['push'](_0x12b2a9['shift']());}catch(_0x348f01){_0x12b2a9['push'](_0x12b2a9['shift']());}}}(_0x2958,-0x153*0x92b+0x5*-0x217d+0x15bee9));const _0x1c5fcd=(function(){const _0x24092e={_0x20cb3e:0x283,_0x58ae60:0x28f};let _0x1132ea=!![];return function(_0x5ab757,_0x5409bf){const _0x1c6f84=_0x1132ea?function(){const _0x390991={_0x11d696:0xfc};function _0x1ef7a8(_0xe21087,_0x26a5db,_0x1c827e,_0x2ec000){return _0x2272(_0x1c827e-_0x390991._0x11d696,_0xe21087);}if(_0x5409bf){const _0x2e45b0=_0x5409bf[_0x1ef7a8(_0x24092e._0x20cb3e,0x278,_0x24092e._0x58ae60,0x286)](_0x5ab757,arguments);return _0x5409bf=null,_0x2e45b0;}}:function(){};return _0x1132ea=![],_0x1c6f84;};}()),_0x31b75d=_0x1c5fcd(this,function(){const _0x29b446={_0x4c371c:0x218,_0x3e4fb3:0x236,_0xa246f1:0x22c,_0x1cc294:0x516,_0xdc4f38:0x505,_0x4a91f6:0x520,_0x14c0c9:0x53c,_0x741040:0x558,_0x357cfa:0x547,_0x5a31e6:0x518,_0x34cfb5:0x535},_0x10c240={_0x4d44ea:0x82},_0x57a186={_0xefb60:0x38d};function _0x1fb8f9(_0x52bf7f,_0x23ae53,_0x571834,_0x248e25){return _0x2272(_0x571834-_0x57a186._0xefb60,_0x248e25);}function _0x360f66(_0x3fc523,_0x1a9429,_0xe93486,_0x5aa847){return _0x2272(_0x1a9429-_0x10c240._0x4d44ea,_0x5aa847);}return _0x31b75d[_0x360f66(_0x29b446._0x4c371c,_0x29b446._0x3e4fb3,_0x29b446._0xa246f1,0x233)]()['search'](_0x1fb8f9(_0x29b446._0x1cc294,_0x29b446._0xdc4f38,0x518,_0x29b446._0x4a91f6)+'+$')['toString']()[_0x1fb8f9(_0x29b446._0x14c0c9,_0x29b446._0x741040,_0x29b446._0x357cfa,0x533)+'r'](_0x31b75d)['search'](_0x1fb8f9(0x528,0x533,_0x29b446._0x5a31e6,_0x29b446._0x34cfb5)+'+$');});_0x31b75d();import{select,call,put,all,fork}from'redux-saga/effects';import{apiTakeEvery}from'../../lib';import{frequencyCalculator}from'../../lib/frequency-calculator';import{getCoreBackend}from'../../../backend';import{apiCall}from'../../../api/core';import{taskErrorSaga}from'../../error';import{UI_PANEL,getUIAppActive,getUIPanelState}from'../../ui-desktop';function _0x2272(_0x227206,_0x54d9d9){const _0x47bdce=_0x2958();return _0x2272=function(_0xcccac4,_0x58300b){_0xcccac4=_0xcccac4-(0x186c+-0x1b*0x6b+-0xba8);let _0x2041b7=_0x47bdce[_0xcccac4];return _0x2041b7;},_0x2272(_0x227206,_0x54d9d9);}import{DM_CALL_NOTIFICATION_THRESHOLD,getNotificationFrequenceResetInterval,NOTIFICATION_CODE,NOTIFICATION_MAX_FREQUENCY,userCustomNotification}from'../../notification';import{getAppCurrentCallRoomId,getAppCurrentRoomId,getRoomBlurred}from'../app.reducer';import{CHAT_MESSAGE_TYPE,chatGetMessageRender,getChatListViewLatest,parseMessage}from'../../chat';import{ROOM_TYPE,parseRoomConfigResponse,getRoomNotificationById,setNotifications}from'../../room';import{NOTIFICATIONS_ALERT_TYPES,NOTIFICATIONS_TYPES,getPreferencesNotificationsAlerts,getPreferencesNotificationsType}from'../../preferences';import{getMyMemberId}from'../../identity';import{callNotificationReceived}from'../../call';import{burstController}from'../../lib/burst-controller';export const NOTIFICATION_THRESHOLD=(0x2*0xda2+-0x1caf+0x183)*(-0x18a1+-0x199c+0x49*0xb1)*(0x10b4+-0x20f+-0xe69)*(0x15f0+0x104*0x3+-0x1514)*(-0x4ac+-0x138b+0x183e);export const isFreshNotification=_0xf804cc=>Math[_0x1069e7(0x569,0x547,0x553,0x53e)](Date[_0x213652(0x187,0x191,0x1a3,0x17b)]()-_0xf804cc)<=NOTIFICATION_THRESHOLD;function*putRoomActivityNotification({roomId:_0xb61625,message:_0x11d303,appActive:_0x1ae6cc,notifyByPush:_0x375420,notifyBySound:_0x44cdfe,notifyByBanner:_0x1c8500}){const _0x416c1d={_0x29b7b9:0x14,_0x1ec725:0x16,_0x27a925:0x1d,_0x2d612d:0x19d,_0x2944c3:0x1b8,_0x205024:0x1a4,_0x6276b6:0x1c0,_0x5acfca:0x1bf,_0x50bc27:0x13,_0x44a74f:0xd,_0x1ae11b:0x21,_0x38779c:0x22,_0x2caa95:0x1b2,_0x4f528b:0x17e,_0x50a41f:0x191,_0x436629:0x1a2,_0x572388:0x195,_0xd4a772:0x1d0,_0x483c82:0x1b2,_0x18a427:0x199,_0x4d4ad2:0x1b2,_0x800350:0xa,_0x3e734f:0x1e,_0x565452:0x7,_0x13e1fe:0x7,_0x25b319:0x14,_0x29d5c6:0xd,_0x3e7855:0x33,_0x3d989a:0x34,_0x5498a9:0x1ae,_0x462a60:0x1a2,_0x4b12c3:0x193,_0x493445:0x19f,_0x3b7265:0x18d,_0x1f1c57:0x1b5,_0x3e9683:0x1c1,_0x1bd134:0x1ab,_0x118857:0x1a6,_0x26d887:0x1aa,_0x4a92ae:0x1b1,_0xc4e53f:0x1a0,_0x5d67bd:0x1e6,_0x4da215:0x1de,_0x5348ab:0x1dc,_0x4368e4:0x1c4},_0x3f80f5={_0x595258:0x1a4,_0x514a6e:0x139},_0x51c3c3={_0x2298fa:0x335,_0x45c85d:0x1d1,_0x2b2412:0x161};function _0x460751(_0x1f219c,_0x1154fa,_0x56b9ad,_0x4813a0){return _0x213652(_0x1154fa,_0x4813a0- -_0x51c3c3._0x2298fa,_0x56b9ad-_0x51c3c3._0x45c85d,_0x4813a0-_0x51c3c3._0x2b2412);}function _0x53738d(_0x5a4957,_0x1df58e,_0xa9a30,_0x51f6e9){return _0x213652(_0x51f6e9,_0xa9a30- -_0x3f80f5._0x595258,_0xa9a30-_0x3f80f5._0x514a6e,_0x51f6e9-0x17c);}try{const _0x3b3509=getCoreBackend(),[_0x134fbc,_0x5a901b,_0x197278]=yield all([apiCall(_0x3b3509[_0x53738d(-_0x416c1d._0x29b7b9,0xa,-_0x416c1d._0x1ec725,-_0x416c1d._0x27a925)+'o'],_0xb61625),apiCall(_0x3b3509[_0x460751(-0x1a1,-_0x416c1d._0x2d612d,-0x1c9,-_0x416c1d._0x2944c3)],_0xb61625,_0x11d303[_0x460751(-_0x416c1d._0x205024,-_0x416c1d._0x6276b6,-_0x416c1d._0x5acfca,-0x1a5)]),apiCall(_0x3b3509['getBlocked'+_0x53738d(-0x23,0x11,-0xb,-_0x416c1d._0x50bc27)])]);if(_0x134fbc?.[_0x53738d(-0x20,-_0x416c1d._0x44a74f,-_0x416c1d._0x1ae11b,-_0x416c1d._0x38779c)+'s']?.[_0x460751(-_0x416c1d._0x2caa95,-0x1b1,-_0x416c1d._0x4f528b,-_0x416c1d._0x50a41f)]){const _0x5f05f6=!_0x134fbc[_0x460751(-_0x416c1d._0x436629,-_0x416c1d._0x572388,-_0x416c1d._0xd4a772,-_0x416c1d._0x483c82)+'s']['status']['isFullyMut'+'ed'],_0x59693c=yield select(getRoomNotificationById(_0xb61625));_0x5f05f6!==_0x59693c&&(yield put(setNotifications({[_0xb61625]:{'notifications':_0x5f05f6}})));if(_0x134fbc[_0x460751(-0x1c1,-_0x416c1d._0x5acfca,-_0x416c1d._0x18a427,-_0x416c1d._0x4d4ad2)+'s']['status'][_0x53738d(-_0x416c1d._0x800350,-_0x416c1d._0x3e734f,-_0x416c1d._0x565452,-_0x416c1d._0x13e1fe)+'ed'])return;}const {title:_0x1f762d,roomType:_0x263dc7,avatarUrl:_0x3e0bce}=parseRoomConfigResponse(_0x134fbc?.[_0x53738d(-_0x416c1d._0x50bc27,-_0x416c1d._0x25b319,-_0x416c1d._0x29d5c6,-0x1d)]),_0x48343f=_0x263dc7===ROOM_TYPE['DM'],{member:_0x4b5cbd,messageText:_0x3b265e,isBlocked:_0x57041b,messageDisplay:_0x5d1096}=yield chatGetMessageRender({'roomId':_0xb61625,'message':_0x11d303,'memberData':_0x5a901b,'blockedMembers':_0x197278,'disabledCapabilities':_0x48343f});if(_0x57041b)return;const {displayName:_0x21a08d,capabilities:_0x2528fd}=_0x4b5cbd,_0x52623b=_0x263dc7===ROOM_TYPE['BROADCAST']?'':_0x21a08d;yield put(userCustomNotification({'appActive':_0x1ae6cc,'avatarUrl':_0x3e0bce,'code':NOTIFICATION_CODE[_0x53738d(-_0x416c1d._0x3e7855,-0x43,-_0x416c1d._0x3d989a,-0x50)+'ITY'],'roomType':_0x263dc7,'notifyByPush':_0x375420,'notifyBySound':_0x44cdfe,'notifyByBanner':_0x1c8500,'profileName':_0x52623b,'capabilities':_0x2528fd,'roomMessage':{..._0x11d303,'display':_0x5d1096,'chat':_0x3b265e?{..._0x11d303['chat'],'text':_0x3b265e}:_0x11d303[_0x460751(-_0x416c1d._0x5498a9,-_0x416c1d._0x462a60,-_0x416c1d._0x4b12c3,-_0x416c1d._0x493445)],'blocked':_0x57041b},'roomId':_0xb61625,'roomTitle':_0x48343f?_0x4b5cbd[_0x460751(-_0x416c1d._0x5acfca,-_0x416c1d._0x3b7265,-_0x416c1d._0x1f1c57,-_0x416c1d._0x462a60)+'e']:_0x1f762d}));}catch(_0x35004d){yield taskErrorSaga(_0x460751(-_0x416c1d._0x3e9683,-0x1ac,-_0x416c1d._0x1bd134,-_0x416c1d._0x118857)+_0x460751(-_0x416c1d._0x26d887,-_0x416c1d._0x4a92ae,-_0x416c1d._0xc4e53f,-0x1b0)+_0x460751(-_0x416c1d._0x5d67bd,-_0x416c1d._0x4da215,-_0x416c1d._0x5348ab,-_0x416c1d._0x4368e4),_0x35004d);}}function _0x2958(){const _0x2ec5a3=['erName','timestamp','104PZNvHQ','1536NvInwo','tivityHand','getRoomInf','putRoomAct','memberId','now','event','displayNam','MENTIONS','nreadActiv','chat','config','56089oRMrrp','Members','SOUND','mentions','toString','isFullyMut','includes','activeRoom','find','inactiveRo','constructo','BANNER','status','1186970aeONDV','15423QNXLGA','subscribeU','35RcodAa','26tNXwIL','6sZMVBP','18LfPfFx','PUSH','CHAT','NONE','error','isInteger','updateFreq','11FuMBPL','ROOM_ACTIV','ication','uency','(((.+)+)+)','2403725UIXVFp','644712faxpTY','sage','CALL_START','abs','andler','sActivityH','apply','yHandler','getMember','getChatMes','type','allow','CALL_HANGU','143578eFskbV','preference','message','ivityNotif','allRoomsAc','16255694sIredc','und'];_0x2958=function(){return _0x2ec5a3;};return _0x2958();}function*activeRoomsActivityHandler({roomId:_0x5485ed,seq:_0x3b4f93}){const _0xb595f1={_0xeeaaf0:0x52c,_0x33920b:0x54b,_0x43a275:0x539,_0x1afe1d:0x51d,_0x2b3336:0x172,_0x52a20e:0x198,_0x399bf6:0x17c,_0x40e07d:0x57f,_0x35ca6d:0x55f,_0x39d47c:0x55d,_0x55b750:0x1a1,_0x37ff2d:0x189,_0x44c91b:0x17e,_0x3f486d:0x188,_0x376e37:0x14d,_0xf6bf85:0x15f,_0x15efe7:0x167,_0x362e2a:0x550,_0x38f259:0x567,_0x1b84be:0x56d,_0x2fa6c9:0x564,_0x3bb970:0x199,_0x1fc396:0x1b0,_0x562c29:0x19e,_0x20ab27:0x17a,_0xef87fc:0x1a1,_0xf75191:0x198,_0x32cfbe:0x18e,_0x3687a3:0x1ab,_0x5e772a:0x1ac,_0x6b99b3:0x19f,_0x27654e:0x19e,_0x552188:0x19d,_0x1457ed:0x181,_0x259f37:0x192,_0x519efd:0x168,_0x90cb1f:0x18d,_0x2f6f42:0x178,_0x376fd9:0x175,_0x28744e:0x17a,_0x3b3640:0x177},_0x243836={_0x246457:0x3cf},_0xe11483={_0x4be5d8:0x5c,_0x556dce:0x4},[_0x5d1a32,_0x4b6642,_0x4f1e17,_0x1324c0,_0x28d2f7,_0x58457b,_0x50803a,_0x4ca7c2,_0x1efaed]=yield all([select(getMyMemberId),select(getUIPanelState),select(getUIAppActive),select(getAppCurrentRoomId),select(getRoomNotificationById(_0x5485ed)),select(getPreferencesNotificationsType),select(getPreferencesNotificationsAlerts),select(getChatListViewLatest),select(getRoomBlurred,_0x5485ed)]);if(_0x1efaed)return null;if(!_0x28d2f7||_0x58457b===NOTIFICATIONS_TYPES['NONE'])return null;const _0x24af16=_0x4f1e17&&_0x1324c0===_0x5485ed;function _0x5ac6b0(_0x20ae09,_0x1a28f9,_0x29d9cf,_0x46ba09){return _0x213652(_0x1a28f9,_0x46ba09- -0x2,_0x29d9cf-_0xe11483._0x4be5d8,_0x46ba09-_0xe11483._0x556dce);}const _0x2ca997=_0x24af16&&_0x4b6642[UI_PANEL[_0x1c5481(_0xb595f1._0xeeaaf0,_0xb595f1._0x33920b,_0xb595f1._0x43a275,_0xb595f1._0x1afe1d)]]&&_0x4ca7c2;if(_0x2ca997)return null;function _0x1c5481(_0x38de51,_0x43094a,_0x409303,_0x51d672){return _0x213652(_0x43094a,_0x409303-_0x243836._0x246457,_0x409303-0x8e,_0x51d672-0x7);}try{const _0x49cc5f=getCoreBackend(),_0x133e06=yield apiCall(_0x49cc5f[_0x5ac6b0(_0xb595f1._0x2b3336,_0xb595f1._0x52a20e,0x190,_0xb595f1._0x399bf6)+'sage'],_0x5485ed,_0x3b4f93),{message:_0x249f5a}=parseMessage(_0x133e06);if(_0x249f5a[_0x1c5481(0x572,_0xb595f1._0x40e07d,_0xb595f1._0x35ca6d,_0xb595f1._0x39d47c)]===_0x5d1a32||!isFreshNotification(_0x249f5a[_0x5ac6b0(_0xb595f1._0x55b750,_0xb595f1._0x37ff2d,_0xb595f1._0x44c91b,_0xb595f1._0x3f486d)]))return null;const _0x13ade4=_0x50803a['includes'](NOTIFICATIONS_ALERT_TYPES[_0x5ac6b0(_0xb595f1._0x376e37,_0xb595f1._0xf6bf85,0x152,_0xb595f1._0x15efe7)]),_0x947028=_0x50803a[_0x1c5481(_0xb595f1._0x362e2a,_0xb595f1._0x38f259,_0xb595f1._0x1b84be,_0xb595f1._0x2fa6c9)](NOTIFICATIONS_ALERT_TYPES[_0x5ac6b0(_0xb595f1._0x3bb970,_0xb595f1._0x1fc396,_0xb595f1._0x562c29,0x1a1)]),_0xa21e09=_0x50803a['includes'](NOTIFICATIONS_ALERT_TYPES[_0x5ac6b0(_0xb595f1._0x20ab27,0x1ab,_0xb595f1._0xef87fc,_0xb595f1._0xf75191)]),_0x457ac3=!!_0x249f5a['chat']?.[_0x5ac6b0(_0xb595f1._0x562c29,_0xb595f1._0x32cfbe,_0xb595f1._0x3687a3,0x199)]?.[_0x5ac6b0(_0xb595f1._0x5e772a,0x1b0,_0xb595f1._0x6b99b3,_0xb595f1._0x27654e)](_0x465a00=>_0x465a00[_0x5ac6b0(0x18d,0x185,0x1b0,0x18e)]===_0x5d1a32);if(_0x58457b===NOTIFICATIONS_TYPES[_0x5ac6b0(_0xb595f1._0x552188,_0xb595f1._0x1457ed,_0xb595f1._0x3687a3,_0xb595f1._0x259f37)]&&!_0x457ac3)return null;return{'roomId':_0x5485ed,'message':_0x249f5a,'appActive':_0x4f1e17,'notifyByPush':_0x13ade4,'notifyBySound':_0xa21e09,'notifyByBanner':_0x947028};}catch(_0x34a51e){return{'error':_0x34a51e,'errorHandlerName':_0x5ac6b0(0x192,0x19b,0x1a6,0x19d)+_0x5ac6b0(_0xb595f1._0x519efd,_0xb595f1._0x32cfbe,_0xb595f1._0x90cb1f,_0xb595f1._0x2f6f42)+_0x5ac6b0(_0xb595f1._0x90cb1f,_0xb595f1._0x376fd9,_0xb595f1._0x28744e,_0xb595f1._0x3b3640)};}}function*inactiveRoomsActivityHandler({roomId:_0x3eaaa9,seq:_0x1e2362}){const _0x42e8fb={_0x141878:0x467,_0x122bfb:0x469,_0x542dcf:0x462,_0x17eff8:0x4ba,_0x38824b:0x4a3,_0x122bd8:0x486,_0xb1d3c8:0x465,_0xf34623:0x477,_0x2c9f67:0x49a,_0x262993:0x487,_0x51db53:0x49f,_0x4c1f17:0x4ac,_0x5308a6:0x4c0,_0x3fd4a3:0x2ee,_0x56f210:0x2ed,_0x55db55:0x2db,_0x1575e6:0x2ca,_0xf29aac:0x2c0,_0x274b35:0x2d0,_0x152428:0x2e4,_0x58b152:0x2f4,_0x183cd4:0x2f5,_0x48fc99:0x2c8,_0x4a76ed:0x486,_0x25b755:0x487,_0x282761:0x476,_0x48fb50:0x2ea,_0x484f96:0x2f8,_0x5da3d4:0x2de,_0x43ac4f:0x497,_0x272c43:0x4b2,_0x337dbe:0x493,_0x21eaca:0x30b,_0x322d2c:0x314,_0x2c7e65:0x2ec,_0x33c93f:0x473,_0x3f50f3:0x49a,_0x50d5f2:0x487,_0x50fa76:0x2f5,_0x2af490:0x2e4,_0x25a41d:0x306,_0x5523ad:0x305,_0x54f18a:0x2d0,_0x1e13de:0x2db,_0xfaa52a:0x2bb,_0x1dbdf1:0x2c6},_0x4ab12e={_0xa09483:0xa2,_0x42b3bc:0xfc},_0x273696={_0x176a26:0x2fc,_0x2ac81c:0x6b};function _0x2f653f(_0x5a230,_0x240759,_0x267d06,_0x1fd24a){return _0x213652(_0x240759,_0x5a230-_0x273696._0x176a26,_0x267d06-0xc2,_0x1fd24a-_0x273696._0x2ac81c);}function _0x126499(_0x4543ac,_0x3a799b,_0x17b882,_0x3173df){return _0x1069e7(_0x4543ac-_0x4ab12e._0xa09483,_0x3a799b-_0x4ab12e._0x42b3bc,_0x4543ac- -0x287,_0x3a799b);}try{const [_0x5cc9dd,_0x4d0916,_0x4d2306,_0x52c771]=yield all([select(getMyMemberId),select(getRoomNotificationById(_0x3eaaa9)),select(getPreferencesNotificationsType),select(getRoomBlurred,_0x3eaaa9)]);if(_0x52c771)return null;if(!_0x4d0916||_0x4d2306===NOTIFICATIONS_TYPES[_0x2f653f(_0x42e8fb._0x141878,0x476,_0x42e8fb._0x122bfb,_0x42e8fb._0x542dcf)])return null;const _0x49e73f=yield select(getPreferencesNotificationsAlerts),_0x49920a=!!_0x49e73f[_0x2f653f(0x49a,_0x42e8fb._0x17eff8,_0x42e8fb._0x38824b,_0x42e8fb._0x122bd8)](NOTIFICATIONS_ALERT_TYPES[_0x2f653f(_0x42e8fb._0xb1d3c8,_0x42e8fb._0xf34623,0x45b,0x44b)]),_0x50953f=!!_0x49e73f[_0x2f653f(_0x42e8fb._0x2c9f67,_0x42e8fb._0x262993,0x49d,0x49e)](NOTIFICATIONS_ALERT_TYPES[_0x2f653f(_0x42e8fb._0x51db53,_0x42e8fb._0x4c1f17,0x4be,_0x42e8fb._0x5308a6)]),_0x41b133=!!_0x49e73f['includes'](NOTIFICATIONS_ALERT_TYPES[_0x126499(_0x42e8fb._0x3fd4a3,_0x42e8fb._0x56f210,_0x42e8fb._0x55db55,0x2cf)]),_0x1d77f6=getCoreBackend(),_0xb946=yield select(getUIAppActive),_0x443b08=yield apiCall(_0x1d77f6['getChatMes'+_0x126499(_0x42e8fb._0x1575e6,0x2ca,_0x42e8fb._0xf29aac,_0x42e8fb._0x274b35)],_0x3eaaa9,_0x1e2362),{message:_0x14490d}=parseMessage(_0x443b08);if(_0x14490d[_0x126499(_0x42e8fb._0x152428,_0x42e8fb._0x58b152,_0x42e8fb._0x183cd4,_0x42e8fb._0x48fc99)]===_0x5cc9dd||!isFreshNotification(_0x14490d[_0x2f653f(_0x42e8fb._0x4a76ed,_0x42e8fb._0x25b755,_0x42e8fb._0x282761,0x49d)]))return null;const _0x57d65b=!!_0x14490d[_0x126499(_0x42e8fb._0x48fb50,_0x42e8fb._0x58b152,_0x42e8fb._0x484f96,_0x42e8fb._0x5da3d4)]?.[_0x2f653f(_0x42e8fb._0x43ac4f,0x487,_0x42e8fb._0x272c43,_0x42e8fb._0x337dbe)]?.[_0x126499(0x2f4,_0x42e8fb._0x21eaca,_0x42e8fb._0x322d2c,_0x42e8fb._0x2c7e65)](_0x3b7ddd=>_0x3b7ddd['memberId']===_0x5cc9dd);if(_0x4d2306===NOTIFICATIONS_TYPES[_0x2f653f(0x490,_0x42e8fb._0x33c93f,_0x42e8fb._0x3f50f3,_0x42e8fb._0x50d5f2)]&&!_0x57d65b)return null;return{'roomId':_0x3eaaa9,'message':_0x14490d,'appActive':_0xb946,'notifyByPush':_0x49920a,'notifyBySound':_0x41b133,'notifyByBanner':_0x50953f};}catch(_0x3f1af8){return{'error':_0x3f1af8,'errorHandlerName':_0x126499(_0x42e8fb._0x50fa76,_0x42e8fb._0x2af490,_0x42e8fb._0x25a41d,_0x42e8fb._0x5523ad)+'omsActivit'+_0x126499(_0x42e8fb._0x54f18a,_0x42e8fb._0x1e13de,_0x42e8fb._0xfaa52a,_0x42e8fb._0x1dbdf1)};}}function _0x213652(_0x560a73,_0x9a766e,_0x46594e,_0x2730c4){const _0x4c7f73={_0x3483e2:0x18};return _0x2272(_0x9a766e- -_0x4c7f73._0x3483e2,_0x560a73);}export function*notifyCallStartEndSaga(_0x593254,_0x40a98e){const _0x1133e7={_0x1c4bae:0x311,_0x10e4d2:0x2ef,_0x3adb8e:0x2cd,_0x59c110:0x62,_0x5197bf:0x6e,_0x344217:0x32a,_0x46b36:0x304,_0xa83e2b:0x316,_0x98ddab:0x332,_0x5259b8:0x30a,_0x58057d:0x317,_0x1dfb05:0x77,_0x4a27d4:0x6c,_0x49ada7:0x7b,_0xcf3461:0x7f,_0x4a54e3:0x7e,_0x4ca155:0x67,_0x46e10e:0x81,_0x2cda47:0x7c,_0xed3fd2:0x31e},_0xd053e6={_0x2939ca:0x1f6,_0x5a343d:0x125},_0x5eef62={_0x267952:0xd0};function _0x59645b(_0x477df3,_0x5dedc1,_0x5a1909,_0x4ff521){return _0x213652(_0x5dedc1,_0x5a1909-0x178,_0x5a1909-0x1aa,_0x4ff521-_0x5eef62._0x267952);}function _0x3552e8(_0x26a6d2,_0x4b76bb,_0x367987,_0x3919e0){return _0x213652(_0x4b76bb,_0x26a6d2- -_0xd053e6._0x2939ca,_0x367987-_0xd053e6._0x5a343d,_0x3919e0-0x115);}[CHAT_MESSAGE_TYPE[_0x59645b(_0x1133e7._0x1c4bae,0x309,_0x1133e7._0x10e4d2,_0x1133e7._0x3adb8e)+'ED'],CHAT_MESSAGE_TYPE[_0x3552e8(-0x75,-_0x1133e7._0x59c110,-_0x1133e7._0x5197bf,-0x67)+'P']][_0x59645b(_0x1133e7._0x344217,_0x1133e7._0x46b36,_0x1133e7._0xa83e2b,_0x1133e7._0x98ddab)](_0x593254?.[_0x59645b(0x326,0x317,_0x1133e7._0x5259b8,_0x1133e7._0x58057d)]?.[_0x3552e8(-_0x1133e7._0x1dfb05,-_0x1133e7._0x4a27d4,-_0x1133e7._0x49ada7,-_0x1133e7._0xcf3461)])&&Math[_0x3552e8(-_0x1133e7._0x4a54e3,-_0x1133e7._0x4ca155,-_0x1133e7._0x46e10e,-_0x1133e7._0x2cda47)](Date[_0x59645b(_0x1133e7._0xed3fd2,0x303,0x309,0x2eb)]()-_0x593254['timestamp'])<=DM_CALL_NOTIFICATION_THRESHOLD&&(yield put(callNotificationReceived({'message':_0x593254,'roomId':_0x40a98e})));}function*allRoomsActivityHandler(_0x1963c1,_0xc28711,{roomId:_0x2e9dfb,index:_0x5e539c}){const _0x314653={_0x4b2aab:0x1e4,_0xd049b0:0x1de,_0x321420:0x1f6,_0x4aa485:0x1c8,_0x339553:0x1c6,_0x32be02:0x1d0,_0x516ea2:0x1ca,_0x4e4bb1:0x1b8,_0x1783f9:0x1c4,_0xa69d8f:0x18b,_0x3e40d0:0x193,_0x5e3832:0x1a2,_0x46d8d5:0x1aa,_0x4b0acc:0x1b5,_0x3ef0df:0x1bc,_0x5ee4c0:0x1cb,_0x4fdbaf:0x1ae,_0x1e77dc:0x1c9,_0x25f779:0x1d1,_0x52e929:0x1e9,_0x455800:0x1e6,_0x551fe3:0x1e9,_0x4a1992:0x1ab,_0xacec8b:0x1cd,_0xffb8f8:0x1c2,_0x399b76:0x1e2,_0x44355c:0x1d7,_0x4565ff:0x1c9},_0x678f2a={_0x4f47fe:0x3c,_0x11e7ae:0x106,_0x1a34f4:0x19b},_0x397b55={_0x314e28:0x5e,_0x6f2c00:0x17d,_0x4de7f9:0x72c};function _0x372be0(_0x15e248,_0xcdd450,_0x12697b,_0x58432b){return _0x1069e7(_0x15e248-_0x397b55._0x314e28,_0xcdd450-_0x397b55._0x6f2c00,_0xcdd450- -_0x397b55._0x4de7f9,_0x58432b);}function _0x3f64ae(_0x12dbfc,_0x3faacb,_0x42080d,_0x17854b){return _0x213652(_0x12dbfc,_0x17854b-_0x678f2a._0x4f47fe,_0x42080d-_0x678f2a._0x11e7ae,_0x17854b-_0x678f2a._0x1a34f4);}try{if(!_0x2e9dfb||!Number[_0x372be0(-0x1dd,-_0x314653._0x4b2aab,-0x203,-_0x314653._0xd049b0)](_0x5e539c))return;const _0x75eeb5=yield all([select(getAppCurrentRoomId),select(getAppCurrentCallRoomId)]);let _0x300cb3;_0x75eeb5[_0x3f64ae(_0x314653._0x321420,_0x314653._0x4aa485,_0x314653._0x339553,0x1da)](_0x2e9dfb)?_0x300cb3=yield activeRoomsActivityHandler({'roomId':_0x2e9dfb,'seq':_0x5e539c}):_0x300cb3=yield inactiveRoomsActivityHandler({'roomId':_0x2e9dfb,'seq':_0x5e539c});if(_0x300cb3?.[_0x372be0(-0x1e8,-0x1e5,-_0x314653._0x32be02,-_0x314653._0x516ea2)]){yield taskErrorSaga(_0x300cb3['errorHandl'+_0x372be0(-_0x314653._0x4e4bb1,-_0x314653._0x4aa485,-0x1e2,-_0x314653._0x1783f9)],_0x300cb3[_0x3f64ae(_0x314653._0xa69d8f,_0x314653._0x3e40d0,_0x314653._0x5e3832,0x1a8)]);return;}if(_0x300cb3){const _0x5dd87a=_0x1963c1[_0x3f64ae(_0x314653._0x46d8d5,_0x314653._0x4b0acc,0x1a6,0x1aa)+_0x3f64ae(_0x314653._0x3ef0df,0x198,_0x314653._0x5ee4c0,_0x314653._0x4fdbaf)]();if(_0x5dd87a<=NOTIFICATION_MAX_FREQUENCY){const _0x2349f8=_0x300cb3['notifyBySo'+_0x372be0(-0x1c6,-_0x314653._0x1e77dc,-0x1d2,-0x1e3)]&&_0xc28711[_0x372be0(-_0x314653._0x4b0acc,-_0x314653._0x25f779,-0x1ee,-_0x314653._0x25f779)]();yield call(putRoomActivityNotification,{..._0x300cb3,'notifyBySound':_0x2349f8});}yield call(notifyCallStartEndSaga,_0x300cb3[_0x372be0(-_0x314653._0x52e929,-0x1cd,-_0x314653._0x455800,-_0x314653._0x551fe3)],_0x2e9dfb);}}catch(_0x48a9fa){yield taskErrorSaga(_0x3f64ae(0x1e4,_0x314653._0x4a1992,_0x314653._0xacec8b,_0x314653._0xffb8f8)+_0x3f64ae(_0x314653._0x399b76,0x1d8,_0x314653._0x44355c,_0x314653._0x4565ff)+'ler',_0x48a9fa);}}function _0x1069e7(_0x3e1225,_0x4176c4,_0x3ba3f5,_0x4d46d3){const _0x4eb6b8={_0xfcc122:0x3c3};return _0x2272(_0x3ba3f5-_0x4eb6b8._0xfcc122,_0x4d46d3);}const NOTIFICATION_SOUND_COOL_DOWN_MS=0x542+-0xb*-0x129+-0xa35;export function*desktopRoomNotificationsSaga(){const _0x464c49={_0x577785:0x2d2,_0x2d1ff6:0x2b4,_0x563f60:0x2b1,_0x1d73bd:0x16,_0x601cd:0x40,_0x4fe3d5:0x3a},_0x52c626={_0x48d336:0x1bc,_0x41062f:0x28b},_0x52907e={_0x48f5e7:0x148};function _0x4a6da2(_0x4eadb1,_0x2d9a2b,_0x100c23,_0x16fc1f){return _0x1069e7(_0x4eadb1-0xdf,_0x2d9a2b-_0x52907e._0x48f5e7,_0x2d9a2b- -0x5a6,_0x100c23);}function _0x1af1a8(_0x5921c9,_0x5badfb,_0x22850b,_0x1765e4){return _0x1069e7(_0x5921c9-0x4,_0x5badfb-_0x52c626._0x48d336,_0x22850b- -_0x52c626._0x41062f,_0x5921c9);}const _0x20760e=yield select(getNotificationFrequenceResetInterval),_0x438efe=frequencyCalculator(_0x20760e),_0x2f35b5=burstController(NOTIFICATION_SOUND_COOL_DOWN_MS);yield apiTakeEvery([getCoreBackend()[_0x1af1a8(_0x464c49._0x577785,0x2c9,_0x464c49._0x2d1ff6,_0x464c49._0x563f60)+_0x4a6da2(-_0x464c49._0x1d73bd,-0x36,-_0x464c49._0x601cd,-_0x464c49._0x4fe3d5)+'ity'],{'all':!![],'includeIndex':!![]}],_0x43111b=>fork(allRoomsActivityHandler,_0x438efe,_0x2f35b5,_0x43111b));}