801f84de7165d40c3c9c058b499de7ddeafc92d3
[motion.git] / server / api / report_agent / report_agent.socket.js
1 var _0x452b=["\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","\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"];_0x452b[0];const ReportAgentEvents=require(_0x452b[1]);var events=[_0x452b[2],_0x452b[3]];exports[_0x452b[4]]= function(_0x3fdex3){for(var _0x3fdex4=0,_0x3fdex5=events[_0x452b[5]];_0x3fdex4< _0x3fdex5;_0x3fdex4++){var _0x3fdex6=events[_0x3fdex4];var _0x3fdex7=createListener(_0x452b[6]+ _0x3fdex6,_0x3fdex3);ReportAgentEvents[_0x452b[7]](_0x3fdex6,_0x3fdex7);_0x3fdex3[_0x452b[7]](_0x452b[8],removeListener(_0x3fdex6,_0x3fdex7))}};function createListener(_0x3fdex6,_0x3fdex3){return function(_0x3fdex9){if(_0x3fdex3[_0x452b[9]]=== _0x3fdex9[_0x452b[10]]|| _0x3fdex3[_0x452b[11]]=== _0x452b[12]){_0x3fdex3[_0x452b[13]](_0x3fdex6,_0x3fdex9)}}}function removeListener(_0x3fdex6,_0x3fdex7){return function(){ReportAgentEvents[_0x452b[14]](_0x3fdex6,_0x3fdex7)}}