OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / room / room.saga.js

1 lines · javascript ref:
function _0x72da(){const _0x1b313c=['createRoom','title','apply','g\x20match','number','disableMem','ilure:\x20no\x20','4672339svGMJI','10432386xXwvlt','oomVersion','ctivateRoo','subscribeA','enableMemb','15510kFDRAk','create\x20roo','ROOM','getRoomSta','Saga:\x20subs','appVersion','myMemberId','8gCBLON','72669201oQpkwK','fetchRoomS','subscribeC','Preference','unable\x20to\x20','bershipEve','2258VRtKUq','ershipEven','IS_FULLY_M','active\x20roo','backend\x20fa','repair','toString','messageId','constructo','search','80307Jtjbcr','1202buuJCy','9184065Gslilp','ingSaga','UTED','activeRoom','2889GCRqDq','(((.+)+)+)','onfig','ler','nts','room\x20creat','cribeConfi','276Enaeeo','version','roomVersio','roomToggle','tatsSaga','m\x20without\x20','roomType','string','ersion\x20mat'];_0x72da=function(){return _0x1b313c;};return _0x72da();}(function(_0x4a62a8,_0x2a552f){const _0x375b50={_0xff6199:0x2,_0x34c2e6:0x15,_0x9e93fd:0x2d,_0x30fb75:0x33,_0x367692:0x230,_0x598ce4:0x236,_0x3c5f82:0x24b,_0x13258c:0x239,_0x28033c:0x235,_0x4d29ed:0x228,_0x5343cc:0x24a,_0x22ffa6:0x250,_0x20c0f6:0x21,_0x24b4c1:0xa,_0x45a6f0:0x9,_0x89cdae:0x1f,_0x3a2ea5:0x2,_0x44a47d:0x18,_0x3cff9f:0x1d,_0x525a81:0x217,_0x3b6f3a:0x224,_0xca5788:0x1fc,_0xb043fe:0x15,_0x1090aa:0xe,_0x238662:0xd,_0x1629d5:0x6,_0x376608:0x16,_0x2123d3:0x25,_0x1866c4:0x21d,_0x165946:0x226,_0x194ac3:0x223,_0x4ce533:0xf,_0x24bc26:0x5},_0x55eb74={_0x1c3645:0x184},_0x495ee6={_0x29c661:0x92};function _0x3bdf53(_0x5479e4,_0x743ef5,_0x5bcd86,_0x7d1a0b){return _0xf23a(_0x743ef5- -_0x495ee6._0x29c661,_0x5bcd86);}const _0x2e1729=_0x4a62a8();function _0x51b930(_0x48153c,_0x4ea650,_0x47b8e2,_0x419ae4){return _0xf23a(_0x4ea650-_0x55eb74._0x1c3645,_0x47b8e2);}while(!![]){try{const _0x315978=-parseInt(_0x3bdf53(_0x375b50._0xff6199,_0x375b50._0x34c2e6,_0x375b50._0x9e93fd,_0x375b50._0x30fb75))/(0x17*-0x167+-0x920+0x2*0x14b1)*(parseInt(_0x51b930(_0x375b50._0x367692,_0x375b50._0x598ce4,_0x375b50._0x3c5f82,0x237))/(0x89*-0x47+0x683*-0x3+0x3d6*0xf))+-parseInt(_0x51b930(_0x375b50._0x13258c,_0x375b50._0x28033c,_0x375b50._0x4d29ed,_0x375b50._0x598ce4))/(-0x6c*0x42+0x80b+0x13d0)*(parseInt(_0x51b930(_0x375b50._0x5343cc,0x242,_0x375b50._0x3c5f82,_0x375b50._0x22ffa6))/(0x1a1a*0x1+-0xb79+0xe9d*-0x1))+-parseInt(_0x3bdf53(_0x375b50._0x9e93fd,_0x375b50._0x20c0f6,_0x375b50._0x24b4c1,_0x375b50._0x45a6f0))/(-0x1a26+-0x1*-0x1c6c+-0x1*0x241)+-parseInt(_0x3bdf53(_0x375b50._0x89cdae,_0x375b50._0x3a2ea5,-_0x375b50._0x44a47d,_0x375b50._0x3cff9f))/(0x6d9*0x1+0x17a7+-0x1e7a)+-parseInt(_0x51b930(0x22e,_0x375b50._0x525a81,_0x375b50._0x3b6f3a,_0x375b50._0xca5788))/(0x1*0x1562+-0xcde+-0x87d)*(-parseInt(_0x3bdf53(_0x375b50._0xb043fe,_0x375b50._0x1090aa,-_0x375b50._0x238662,-_0x375b50._0x1629d5))/(0xa84+0x17ef*0x1+-0x226b))+parseInt(_0x3bdf53(_0x375b50._0x376608,_0x375b50._0x2123d3,0x2a,0xd))/(-0x19*-0x9a+-0x109*-0x12+-0x4f*0x6d)*(parseInt(_0x51b930(0x21d,_0x375b50._0x1866c4,_0x375b50._0x165946,_0x375b50._0x194ac3))/(-0x1ef4+0x263b+-0x73d))+parseInt(_0x3bdf53(0x22,_0x375b50._0x4ce533,_0x375b50._0x24bc26,_0x375b50._0xb043fe))/(-0x17c6+0x674+-0x1*-0x115d);if(_0x315978===_0x2a552f)break;else _0x2e1729['push'](_0x2e1729['shift']());}catch(_0x5ada0b){_0x2e1729['push'](_0x2e1729['shift']());}}}(_0x72da,0x1f52b+0x1a8256+-0xd5499));const _0x8818ad=(function(){let _0x1d781a=!![];return function(_0x59433d,_0x593aae){const _0x275039={_0x52b297:0x2b0,_0x230432:0x2a8,_0x4307bd:0x2ba,_0x5cece4:0x2a9},_0x407cb1={_0x225cc5:0x1f1},_0x177984=_0x1d781a?function(){function _0x5c349b(_0xaf6120,_0x4dffbb,_0x57bd0c,_0x121a6b){return _0xf23a(_0x57bd0c-_0x407cb1._0x225cc5,_0xaf6120);}if(_0x593aae){const _0xd2450f=_0x593aae[_0x5c349b(_0x275039._0x52b297,_0x275039._0x230432,_0x275039._0x4307bd,_0x275039._0x5cece4)](_0x59433d,arguments);return _0x593aae=null,_0xd2450f;}}:function(){};return _0x1d781a=![],_0x177984;};}()),_0x272cba=_0x8818ad(this,function(){const _0x57698a={_0xd40f6e:0x1ca,_0x457fa4:0x1d4,_0x448694:0x2c7,_0x3b75fa:0x2c1,_0x574f75:0x1c9,_0x3454bd:0x1c7,_0x59e89a:0x1bc,_0x110723:0x2ce,_0x47e76f:0x2be,_0x1d1d77:0x2c0,_0x2c367c:0x2ad,_0x1ee7e3:0x1e7,_0x4cb33e:0x1ca,_0x2d8c60:0x1dc,_0x37484b:0x1c7},_0x8351c4={_0x1aa626:0x20f},_0x1918e3={_0x2b25f2:0x11a};function _0xc88f26(_0x111852,_0x34ce34,_0xe08c94,_0x447fe8){return _0xf23a(_0x34ce34-_0x1918e3._0x2b25f2,_0x447fe8);}function _0x51da83(_0x3c1d04,_0x3f9984,_0x399226,_0x502c7f){return _0xf23a(_0x3f9984-_0x8351c4._0x1aa626,_0x3c1d04);}return _0x272cba['toString']()[_0xc88f26(0x1bb,_0x57698a._0xd40f6e,_0x57698a._0x457fa4,0x1d9)](_0x51da83(0x2e0,_0x57698a._0x448694,0x2b9,_0x57698a._0x3b75fa)+'+$')[_0xc88f26(_0x57698a._0x574f75,_0x57698a._0x3454bd,_0x57698a._0x59e89a,0x1c6)]()[_0x51da83(_0x57698a._0x110723,_0x57698a._0x47e76f,_0x57698a._0x1d1d77,_0x57698a._0x2c367c)+'r'](_0x272cba)[_0xc88f26(_0x57698a._0x1ee7e3,_0x57698a._0x4cb33e,_0x57698a._0x2d8c60,0x1dc)](_0xc88f26(0x1be,0x1d2,0x1cd,_0x57698a._0x37484b)+'+$');});_0x272cba();import{all,call,select,put,fork,takeEvery,takeLeading,takeLatest}from'redux-saga/effects';import{channel}from'redux-saga';import{PREFERENCES}from'@holepunchto/keet-core-api';import{isFeatureSupported,FEATURES}from'@holepunchto/keet-schemas/versions';function _0xf23a(_0xf23a6d,_0x42f2cd){const _0xd314a3=_0x72da();return _0xf23a=function(_0x195478,_0x1a949e){_0x195478=_0x195478-(-0x1*-0x1073+-0x927+-0x6bb);let _0x22d306=_0xd314a3[_0x195478];return _0x22d306;},_0xf23a(_0xf23a6d,_0x42f2cd);}import{getCoreBackend}from'../../backend';import{apiCall}from'../../api/core';import{block,apiTakeMatch,apiTakeEvery}from'../lib';import{resetFileEntries}from'../media/file/file.action';import{getMyMember}from'../member';import{taskErrorSaga}from'../error';import{roomPairCancel,roomPairingSaga,roomPairingCancelSaga,roomsPairingDataSaga}from'./joint';import{roomDmPairingSaga}from'./dm';import{setRoomNotSupported,updateRoomAvatarSaga,commonRoomSaga,dmRoomSaga}from'./main';import{switchRoomSubmit,setMainRoom,closeRoomSubmit,setNotifications,toggleRoomNotifications,setCreatedRoomMeta,repairRoom,roomSetRepairingStatus,toggleRoomMembershipEvents,fetchRoomStats,setRoomStats}from'./room.action';import{getRoomIsMembershipEventsDisabled,getRoomItemById,getRoomNotificationById}from'./room.selector';import{createRoomInitialConfig,sanitizeRoomOpts}from'./room.model';import{ROOM_TYPE}from'./room.constant';import{getMyMemberId}from'../identity';export function*roomToggleNotificationsHandler({payload:{roomId:_0x3fbe9a}}){const _0x4f6b83={_0x152472:0x45c,_0x13b365:0x47b,_0x591dd6:0x46a,_0x4bfb43:0x47f,_0x2f45b0:0x156,_0xf62bf7:0x152,_0x15f499:0x157,_0x230040:0x14e,_0x18f5fd:0x14a,_0x37e1d0:0x15b,_0x5dbbdd:0x165,_0x3ae99:0x160},_0xf61352={_0x389e48:0x1ff},_0x18f091={_0x457925:0x3c6};if(!_0x3fbe9a)return;function _0x2502ec(_0x4b0904,_0x5c8d25,_0x4b69a0,_0x4521b2){return _0xf23a(_0x4b69a0-_0x18f091._0x457925,_0x5c8d25);}const _0xacd379=yield select(getRoomNotificationById(_0x3fbe9a)),_0x2002b8=!_0xacd379;function _0x3a994a(_0x3992a6,_0x353ca4,_0x5bc0da,_0x1ddbaa){return _0xf23a(_0x3992a6- -_0xf61352._0x389e48,_0x5bc0da);}const _0x4e7b85=getCoreBackend();yield apiCall(_0x4e7b85['updateRoom'+_0x2502ec(_0x4f6b83._0x152472,_0x4f6b83._0x13b365,_0x4f6b83._0x591dd6,_0x4f6b83._0x4bfb43)+'s'],_0x3fbe9a,PREFERENCES[_0x3a994a(-_0x4f6b83._0x2f45b0,-_0x4f6b83._0xf62bf7,-_0x4f6b83._0x15f499,-_0x4f6b83._0x230040)+_0x3a994a(-_0x4f6b83._0x18f5fd,-_0x4f6b83._0x37e1d0,-_0x4f6b83._0x5dbbdd,-_0x4f6b83._0x3ae99)],!_0x2002b8),yield put(setNotifications({[_0x3fbe9a]:{'notifications':_0x2002b8}}));}export function*roomToggleMembershipEventsHandler({payload:_0x4670ab}){const _0x41bf96={_0x5e5544:0x47a,_0x4d1bba:0x470,_0x574f3f:0x48d,_0x3d5578:0x45c,_0x447a0d:0x227,_0x23a8a2:0x202,_0x2283ca:0x220,_0x45c6f6:0x46a,_0x17a3d6:0x469,_0x575ad5:0x454,_0x494ce4:0x486,_0x2df0d3:0x235,_0x138a56:0x215,_0x5a4163:0x222,_0x471b78:0x226,_0x33faa2:0x20d,_0x36d046:0x219,_0x4c0c0d:0x4a8,_0xf5d5b9:0x499,_0x3e6bc3:0x49c,_0x2aa790:0x492,_0xe66b48:0x492,_0x5a9c54:0x47a},_0x1dff49={_0x1bdf24:0x2c8};function _0x28842f(_0x5ee1dc,_0x2c209e,_0xa48491,_0xf6189a){return _0xf23a(_0xa48491- -_0x1dff49._0x1bdf24,_0x5ee1dc);}function _0x39f8f8(_0x7fef8e,_0xd11984,_0x45df10,_0x12e9d2){return _0xf23a(_0xd11984-0x3d8,_0x12e9d2);}try{const _0xdc4966=yield select(getRoomIsMembershipEventsDisabled(_0x4670ab)),_0x5f5ade=getCoreBackend();_0xdc4966?yield apiCall(_0x5f5ade[_0x39f8f8(_0x41bf96._0x5e5544,_0x41bf96._0x4d1bba,_0x41bf96._0x574f3f,_0x41bf96._0x3d5578)+_0x28842f(-_0x41bf96._0x447a0d,-_0x41bf96._0x23a8a2,-_0x41bf96._0x2283ca,-0x219)+'ts'],_0x4670ab):yield apiCall(_0x5f5ade[_0x39f8f8(_0x41bf96._0x45c6f6,_0x41bf96._0x17a3d6,_0x41bf96._0x575ad5,_0x41bf96._0x494ce4)+_0x28842f(-_0x41bf96._0x2df0d3,-_0x41bf96._0x138a56,-_0x41bf96._0x5a4163,-0x21f)+_0x28842f(-_0x41bf96._0x5a4163,-_0x41bf96._0x471b78,-_0x41bf96._0x33faa2,-_0x41bf96._0x36d046)],_0x4670ab);}catch(_0x404b8c){yield taskErrorSaga(_0x39f8f8(_0x41bf96._0x4c0c0d,_0x41bf96._0xf5d5b9,_0x41bf96._0x3e6bc3,_0x41bf96._0x2aa790)+'Membership'+'EventsHand'+_0x39f8f8(0x49c,_0x41bf96._0xe66b48,_0x41bf96._0x5a9c54,0x4a9),_0x404b8c);}}export function*roomCreateHandler(_0x2e056a){const _0xe58c0f={_0x3b4df2:0x21f,_0x3bd63b:0x212,_0x80cfc7:0x203,_0x2cefdb:0x209,_0xe75d9e:0x1fd,_0x2c0f90:0x1ec,_0x4c5035:0x1d8,_0x265942:0x1e1,_0x33297e:0x1fe,_0x4c61fd:0xa4,_0x2689a6:0xa4,_0x48116e:0x8d,_0x218824:0x9e,_0x2bd305:0x9f,_0x127600:0xbc,_0x30fdeb:0x206,_0x2a5824:0x210,_0x32c6ad:0x20e,_0xaf14fc:0xab,_0x34bf0c:0xc6,_0x4fbf45:0xc1,_0x11feb9:0x20e,_0x2d446b:0x1ec,_0xd81fd2:0x1f2,_0x9f7993:0x1d2,_0x354e6e:0x1d7,_0xe4e78b:0x1cd,_0x53f32c:0x213,_0xbfeecb:0x219},_0x569cf4={_0x34354f:0x147},_0x5d7bc2={_0x4b5eff:0x167};function _0x40363c(_0x12c6e6,_0x56e2cf,_0x122800,_0x282c7b){return _0xf23a(_0x12c6e6- -_0x5d7bc2._0x4b5eff,_0x56e2cf);}function _0x2ac0f3(_0x57325e,_0x94a7b4,_0x33d215,_0x5bae64){return _0xf23a(_0x33d215-_0x569cf4._0x34354f,_0x5bae64);}try{const {payload:{title:_0xd7e25f,opts:_0x74536d}}=_0x2e056a;if(!_0xd7e25f){yield taskErrorSaga(_0x2ac0f3(_0xe58c0f._0x3b4df2,_0xe58c0f._0x3bd63b,_0xe58c0f._0x80cfc7,_0xe58c0f._0x2cefdb)+'e',_0x2ac0f3(_0xe58c0f._0x80cfc7,_0xe58c0f._0xe75d9e,_0xe58c0f._0x2c0f90,_0xe58c0f._0x4c5035)+_0x2ac0f3(_0xe58c0f._0x265942,_0xe58c0f._0x33297e,_0xe58c0f._0x265942,0x1f5)+_0x40363c(-_0xe58c0f._0x4c61fd,-_0xe58c0f._0x2689a6,-_0xe58c0f._0x48116e,-_0xe58c0f._0x218824)+_0x40363c(-_0xe58c0f._0x2bd305,-0x8f,-0xb2,-_0xe58c0f._0x127600));return;}const _0x8a1383=createRoomInitialConfig(_0xd7e25f,sanitizeRoomOpts(_0x74536d)),_0x302712=getCoreBackend(),_0x4657e4=yield apiCall(_0x302712[_0x2ac0f3(_0xe58c0f._0x30fdeb,_0xe58c0f._0x2a5824,_0xe58c0f._0x32c6ad,0x214)],{'config':_0x8a1383});if(!_0x4657e4){yield taskErrorSaga(_0x40363c(-_0xe58c0f._0xaf14fc,-0x8d,-_0xe58c0f._0x34bf0c,-_0xe58c0f._0x4fbf45)+'e',_0x2ac0f3(_0xe58c0f._0x11feb9,_0xe58c0f._0x2d446b,_0xe58c0f._0xd81fd2,0x1eb)+_0x2ac0f3(_0xe58c0f._0x9f7993,_0xe58c0f._0x354e6e,0x1d9,_0xe58c0f._0xe4e78b)+_0x2ac0f3(_0xe58c0f._0x53f32c,_0xe58c0f._0x33297e,_0xe58c0f._0x80cfc7,_0xe58c0f._0xbfeecb)+'ed');return;}yield put(setCreatedRoomMeta({'roomId':_0x4657e4,'title':_0xd7e25f})),yield fork(updateRoomAvatarSaga,{'roomId':_0x4657e4}),yield put(switchRoomSubmit({'roomId':_0x4657e4}));}catch(_0x2cd414){yield taskErrorSaga('roomCreate'+'Handler',_0x2cd414);}}export function*roomGetStartStateData(_0x609ba1){const _0x4650b9={_0x2b9862:0x452,_0x4bb9d1:0x46b,_0x781986:0x471,_0x3fb481:0x457,_0x548015:0x44e,_0x8dd455:0x451},_0x358ddf={_0x2120ca:0x38f};function _0x1836bf(_0x32b91c,_0x270783,_0x58f90b,_0xe5ec71){return _0xf23a(_0x270783-_0x358ddf._0x2120ca,_0xe5ec71);}const [_0x41193d,_0x49ec8d]=yield all([select(getMyMember(_0x609ba1)),select(getRoomItemById(_0x609ba1))]),_0x54f526=_0x41193d&&_0x49ec8d&&_0x49ec8d[_0x1836bf(_0x4650b9._0x2b9862,0x453,_0x4650b9._0x4bb9d1,_0x4650b9._0x781986)]&&Number['isInteger'](_0x49ec8d[_0x1836bf(_0x4650b9._0x3fb481,_0x4650b9._0x548015,0x449,_0x4650b9._0x8dd455)]);if(!_0x54f526)return[{'roomId':_0x609ba1},![]];function _0x501812(_0x570b2c,_0x5235e1,_0x21e654,_0x43f498){return _0xf23a(_0x43f498-0x164,_0x5235e1);}return[{'roomId':_0x609ba1,'roomType':_0x49ec8d['roomType'],'roomVersion':_0x49ec8d['version']},!![]];}export function*activeRoomSaga({roomId:_0x1d91d2,messageId:_0xac6594,appVersion:_0x2f6268}){const _0x27b4ce={_0x2300cb:0x379,_0x1facf9:0x359,_0x23192f:0x37d,_0x39fa9b:0x38b,_0x39b967:0x38a,_0x567b11:0x377,_0x563a1e:0x13a,_0x1a10a8:0x157,_0x17b3dc:0x36d,_0x5361d9:0x35b,_0x3e8df1:0x3af,_0x16d6c6:0x3a0,_0x5979b4:0x398,_0x59d994:0x3a1,_0x142a3c:0x398,_0x37120b:0x141,_0x4174b9:0x129,_0x4b3333:0x151,_0x3cb36d:0x140,_0x655e42:0x153,_0x2126bb:0x143,_0x5f257b:0x15d,_0x329542:0x394,_0x2d8d09:0x386,_0x1cd196:0x382,_0x4e4001:0x370,_0x2fc07f:0x368,_0x427a87:0x384,_0x36a178:0x373,_0x170d01:0x12a,_0xdf25a0:0x120,_0x12bdbb:0x399,_0x5553c8:0x384,_0x287f0a:0x39c,_0x33eced:0x141,_0x314d7c:0x125,_0x3f2bff:0x14c,_0x51ac88:0x382,_0x1775f3:0x36f,_0x4f93ea:0x12b,_0x41845a:0x13f},_0x6e42fe={_0x5a3d48:0x2d4},_0x581a25={_0x49cbe2:0x81},_0x56bd0b=getCoreBackend();function _0x8bfa7d(_0x2eef28,_0x509a2d,_0x2a4076,_0x277ab3){return _0xf23a(_0x2eef28-_0x581a25._0x49cbe2,_0x509a2d);}function _0x11fe75(_0x3838d3,_0x14d692,_0x19284d,_0x291959){return _0xf23a(_0x291959-_0x6e42fe._0x5a3d48,_0x3838d3);}try{yield put(setMainRoom({'roomId':_0x1d91d2}));if(!_0x1d91d2)return;yield apiTakeEvery([_0x56bd0b['subscribeA'+_0x11fe75(_0x27b4ce._0x2300cb,_0x27b4ce._0x1facf9,_0x27b4ce._0x23192f,0x36a)+'m'],_0x1d91d2],()=>{},{'onError':_0x270559=>taskErrorSaga(_0x8bfa7d(0x118,0x118,0x11f,0xfb)+'ctivateRoo'+'m',_0x270559),'onCleanup':({apiClose:_0x2e2326})=>{if(!_0x2e2326)return undefined;return put(closeRoomSubmit({'openNextRoom':!![]}));}});const [_0xc2aadf,_0xe1fc6d]=yield roomGetStartStateData(_0x1d91d2),_0x1f2063=yield select(getMyMemberId);if(!_0xe1fc6d){const _0x3715ff=yield apiTakeMatch([_0x56bd0b[_0x11fe75(_0x27b4ce._0x39fa9b,_0x27b4ce._0x39b967,0x372,_0x27b4ce._0x567b11)+_0x8bfa7d(_0x27b4ce._0x563a1e,0x130,0x14d,_0x27b4ce._0x1a10a8)],_0x1d91d2],{'matchFn':_0x5b0e6d=>typeof _0x5b0e6d?.[_0x8bfa7d(0x145,0x159,0x153,0x135)]===_0x11fe75(0x39b,0x3b3,0x39a,0x399),'onError':_0xbef1c1=>taskErrorSaga('activeRoom'+'Saga:\x20subs'+_0x11fe75(0x39d,0x3a1,0x37e,0x391)+_0x8bfa7d(0x14b,0x157,0x144,0x162),_0xbef1c1)}),_0x23c388=yield apiTakeMatch([_0x56bd0b['subscribeR'+_0x11fe75(0x35c,_0x27b4ce._0x17b3dc,_0x27b4ce._0x5361d9,0x369)],_0x1d91d2],{'matchFn':_0x3001ec=>typeof _0x3001ec?.[_0x11fe75(0x3ac,0x3a1,0x3ab,0x393)]===_0x11fe75(0x392,0x3ab,0x3b2,0x39f),'onError':_0x4ec524=>taskErrorSaga(_0x11fe75(0x3a7,0x39b,0x370,0x38a)+_0x8bfa7d(0x11e,0x12b,0x113,0x113)+'cribeRoomV'+_0x11fe75(0x391,0x39d,0x3a0,0x39a)+'ch',_0x4ec524)});_0xc2aadf[_0x11fe75(_0x27b4ce._0x3e8df1,_0x27b4ce._0x16d6c6,_0x27b4ce._0x16d6c6,_0x27b4ce._0x5979b4)]=_0x3715ff[_0x11fe75(0x3af,_0x27b4ce._0x59d994,0x3b1,_0x27b4ce._0x142a3c)],_0xc2aadf[_0x8bfa7d(_0x27b4ce._0x37120b,0x133,_0x27b4ce._0x4174b9,_0x27b4ce._0x4b3333)+'n']=_0x23c388[_0x8bfa7d(_0x27b4ce._0x3cb36d,_0x27b4ce._0x655e42,_0x27b4ce._0x2126bb,_0x27b4ce._0x5f257b)];}_0xc2aadf[_0x11fe75(0x389,_0x27b4ce._0x329542,_0x27b4ce._0x2d8d09,_0x27b4ce._0x1cd196)]=_0xac6594,_0xc2aadf[_0x11fe75(_0x27b4ce._0x4e4001,_0x27b4ce._0x2fc07f,_0x27b4ce._0x427a87,_0x27b4ce._0x36a178)]=_0x1f2063,_0xc2aadf[_0x8bfa7d(0x11f,_0x27b4ce._0x170d01,0x135,_0x27b4ce._0xdf25a0)]=_0x2f6268;switch(_0xc2aadf[_0x11fe75(_0x27b4ce._0x12bdbb,_0x27b4ce._0x5553c8,_0x27b4ce._0x287f0a,0x398)]){case ROOM_TYPE['DM']:{isFeatureSupported(_0xc2aadf[_0x8bfa7d(_0x27b4ce._0x33eced,_0x27b4ce._0x314d7c,_0x27b4ce._0x3f2bff,0x132)+'n'],FEATURES['DMS'])?yield fork(dmRoomSaga,_0xc2aadf):yield put(setRoomNotSupported());break;}case ROOM_TYPE['BROADCAST']:case ROOM_TYPE[_0x11fe75(_0x27b4ce._0x567b11,_0x27b4ce._0x51ac88,0x36f,_0x27b4ce._0x1775f3)]:{yield fork(commonRoomSaga,_0xc2aadf);break;}case undefined:{yield fork(commonRoomSaga,_0xc2aadf);break;}default:{yield put(setRoomNotSupported());}}yield block();}catch(_0x4e343a){yield taskErrorSaga(_0x8bfa7d(_0x27b4ce._0x4f93ea,_0x27b4ce._0x41845a,0x12b,_0x27b4ce._0xdf25a0)+'m',_0x4e343a);}finally{yield put(resetFileEntries());}}function*roomRepairingSaga({payload:{roomId:_0x5c9b3e}}){const _0x2f2bfe={_0x4fc641:0x26e,_0x237c92:0x27f,_0x39f0bd:0x279,_0x32232c:0x261,_0x203100:0x271,_0x4d8a58:0x27a},_0x24145a={_0x2d8789:0x325},_0x2e79bd={_0x13255b:0x30d};function _0xe0def(_0x237359,_0x1464b2,_0x143cab,_0x3debd0){return _0xf23a(_0x1464b2-_0x2e79bd._0x13255b,_0x143cab);}function _0x58b36a(_0x1eee96,_0x21725f,_0x1d3124,_0x1957b1){return _0xf23a(_0x1d3124- -_0x24145a._0x2d8789,_0x1eee96);}try{const _0x7494c6=getCoreBackend();yield put(roomSetRepairingStatus({'roomId':_0x5c9b3e,'status':!![]})),yield apiCall(_0x7494c6[_0x58b36a(-_0x2f2bfe._0x4fc641,-_0x2f2bfe._0x237c92,-_0x2f2bfe._0x39f0bd,-_0x2f2bfe._0x32232c)],_0x5c9b3e);}catch(_0x5203c0){yield taskErrorSaga('roomRepair'+_0x58b36a(-0x257,-0x258,-_0x2f2bfe._0x203100,-_0x2f2bfe._0x4d8a58),_0x5203c0);}finally{yield put(roomSetRepairingStatus({'roomId':_0x5c9b3e,'status':![]}));}}function*fetchRoomStatsSaga({payload:{roomId:_0x5148ee}}){const _0xe8e86={_0x19e3b1:0x411,_0x50f5aa:0x417,_0x3dccf6:0x3fb,_0x28e08e:0x411,_0x3b4c27:0x423,_0x3cfe62:0x434,_0x525a92:0x420,_0x476616:0x42c,_0x35c7ec:0x44b,_0x218961:0x437},_0x169fd4={_0x215876:0x329};function _0x2c1812(_0x3033c8,_0x287c6f,_0x1d45e0,_0x2a8f13){return _0xf23a(_0x287c6f-_0x169fd4._0x215876,_0x1d45e0);}function _0x124a96(_0x3192e6,_0x1db0b8,_0x52f96b,_0x44788e){return _0xf23a(_0x44788e-0x375,_0x52f96b);}try{const _0x1faa83=getCoreBackend(),_0x4cb95c=yield apiCall(_0x1faa83[_0x124a96(_0xe8e86._0x19e3b1,_0xe8e86._0x50f5aa,_0xe8e86._0x3dccf6,_0xe8e86._0x28e08e)+'ts'],_0x5148ee);yield put(setRoomStats({'roomId':_0x5148ee,'stats':_0x4cb95c}));}catch(_0x2b0e77){yield taskErrorSaga(_0x124a96(_0xe8e86._0x3b4c27,0x404,_0xe8e86._0x3cfe62,_0xe8e86._0x50f5aa)+_0x124a96(_0xe8e86._0x525a92,_0xe8e86._0x476616,_0xe8e86._0x35c7ec,_0xe8e86._0x218961),_0x2b0e77);}}export function*roomSaga({appVersion:_0x2f57a0}){const _0x40ed5a=yield call(channel);yield fork(roomsPairingDataSaga,{'pendingRoomChannel':_0x40ed5a}),yield fork(roomPairingSaga,{'pendingRoomChannel':_0x40ed5a}),yield fork(roomDmPairingSaga,{'appVersion':_0x2f57a0}),yield takeEvery(roomPairCancel,roomPairingCancelSaga),yield takeLeading(toggleRoomNotifications,roomToggleNotificationsHandler),yield takeLatest(toggleRoomMembershipEvents,roomToggleMembershipEventsHandler),yield takeEvery(repairRoom,roomRepairingSaga),yield takeEvery(fetchRoomStats,fetchRoomStatsSaga);}