Built motion from commit d13e3c905.|1.0.24
[motion.git] / server / api / agent / agent.socket.js
1 var _0x41fa=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x61\x67\x65\x6E\x74\x2E\x65\x76\x65\x6E\x74\x73","\x6C\x6F\x64\x61\x73\x68","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x65\x6E\x74\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x72\x6F\x6C\x65","\x61\x67\x65\x6E\x74","\x75\x73\x65\x72\x49\x64","\x69\x64","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x6C\x6F\x6E\x65","\x73\x74\x61\x74\x75\x73","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x5F\x63\x68\x61\x6E\x67\x65\x64","\x71\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x3A\x73\x61\x76\x65","\x61\x67\x65\x6E\x74\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72"];_0x41fa[0];const AgentEvents=require(_0x41fa[1]);const _=require(_0x41fa[2]);var events=[_0x41fa[3],_0x41fa[4]];exports[_0x41fa[5]]= function(_0xf4f8x4){for(var _0xf4f8x5=0,_0xf4f8x6=events[_0x41fa[6]];_0xf4f8x5< _0xf4f8x6;_0xf4f8x5++){var _0xf4f8x7=events[_0xf4f8x5];var _0xf4f8x8=createListener(_0x41fa[7]+ _0xf4f8x7,_0xf4f8x4);AgentEvents[_0x41fa[8]](_0xf4f8x7,_0xf4f8x8);_0xf4f8x4[_0x41fa[8]](_0x41fa[9],removeListener(_0xf4f8x7,_0xf4f8x8))}};function createListener(_0xf4f8x7,_0xf4f8x4){return function(_0xf4f8xa){switch(_0xf4f8x7){case _0x41fa[21]:if(_0xf4f8xa[_0x41fa[10]]=== _0x41fa[11]&& (_0xf4f8x4[_0x41fa[10]]!== _0x41fa[11]|| _0xf4f8x4[_0x41fa[12]]== _0xf4f8xa[_0x41fa[13]])){var _0xf4f8xb=_[_0x41fa[15]](_0xf4f8xa[_0x41fa[14]]);if(_0xf4f8xa[_0x41fa[18]][_0x41fa[17]](_0x41fa[16])){_0xf4f8xb[_0x41fa[19]]= undefined}else {if(_0xf4f8xa[_0x41fa[18]][_0x41fa[17]](_0x41fa[19])){_0xf4f8xb[_0x41fa[16]]= undefined}};_0xf4f8x4[_0x41fa[20]](_0xf4f8x7,_0xf4f8xb)};break;case _0x41fa[22]:_0xf4f8x4[_0x41fa[20]](_0xf4f8x7,_0xf4f8xa);break;default:}}}function removeListener(_0xf4f8x7,_0xf4f8x8){return function(){AgentEvents[_0x41fa[23]](_0xf4f8x7,_0xf4f8x8)}}