ab5230a49336e7257af03dd826e511517a2cc254
[motion.git] / server / api / report_agent / report_agent.socket.js
1 var _0xcdc5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x2E\x65\x76\x65\x6E\x74\x73","\x73\x61\x76\x65","\x75\x70\x64\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x6E\x61\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x65\x6D\x69\x74","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72"];_0xcdc5[0];const ReportAgentEvents=require(_0xcdc5[1]);var events=[_0xcdc5[2],_0xcdc5[3],_0xcdc5[4]];exports[_0xcdc5[5]]= function(_0x9f71x3){for(var _0x9f71x4=0,_0x9f71x5=events[_0xcdc5[6]];_0x9f71x4< _0x9f71x5;_0x9f71x4++){var _0x9f71x6=events[_0x9f71x4];var _0x9f71x7=createListener(_0xcdc5[7]+ _0x9f71x6,_0x9f71x3);ReportAgentEvents[_0xcdc5[8]](_0x9f71x6,_0x9f71x7);_0x9f71x3[_0xcdc5[8]](_0xcdc5[9],removeListener(_0x9f71x6,_0x9f71x7))}};function createListener(_0x9f71x6,_0x9f71x3){return function(_0x9f71x9){if(_0x9f71x3[_0xcdc5[10]]=== _0x9f71x9[_0xcdc5[11]]|| _0x9f71x3[_0xcdc5[12]]=== _0xcdc5[13]){_0x9f71x3[_0xcdc5[14]](_0x9f71x6,_0x9f71x9)}}}function removeListener(_0x9f71x6,_0x9f71x7){return function(){ReportAgentEvents[_0xcdc5[15]](_0x9f71x6,_0x9f71x7)}}