336460e33388b28d908030cec5768754213cec9b
[motion.git] / server / api / report_integration / report_integration.socket.js
1 var _0x21e3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x2E\x65\x76\x65\x6E\x74\x73","\x75\x74\x69\x6C","\x73\x61\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\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\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x25\x73","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x66\x6F\x72\x6D\x61\x74","\x65\x6D\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72"];_0x21e3[0];const ReportIntegrationEvents=require(_0x21e3[1]);const util=require(_0x21e3[2]);var events=[_0x21e3[3]];exports[_0x21e3[4]]= function(_0xd4bex4){for(var _0xd4bex5=0,_0xd4bex6=events[_0x21e3[5]];_0xd4bex5< _0xd4bex6;_0xd4bex5++){var _0xd4bex7=events[_0xd4bex5];var _0xd4bex8=createListener(_0x21e3[6]+ _0xd4bex7,_0xd4bex4);ReportIntegrationEvents[_0x21e3[7]](_0xd4bex7,_0xd4bex8);_0xd4bex4[_0x21e3[7]](_0x21e3[8],removeListener(_0xd4bex7,_0xd4bex8))}};function createListener(_0xd4bex7,_0xd4bex4){return function(_0xd4bexa){switch(_0xd4bex7){case _0x21e3[15]:if(_0xd4bex4[_0x21e3[9]]=== _0xd4bexa[_0x21e3[10]]){_0xd4bex4[_0x21e3[14]](util[_0x21e3[13]](_0x21e3[11],_0xd4bexa[_0x21e3[12]]),_0xd4bexa)};break;default:}}}function removeListener(_0xd4bex7,_0xd4bex8){return function(){ReportIntegrationEvents[_0x21e3[16]](_0xd4bex7,_0xd4bex8)}}