Built motion from commit df6735d59.|1.0.26
[motion.git] / server / api / report_queue / report_queue.socket.js
1 var _0xe87f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x2E\x65\x76\x65\x6E\x74\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\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\x71\x75\x65\x75\x65\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x45\x72\x72\x6F\x72\x20\x66\x69\x6C\x74\x65\x72\x69\x6E\x67\x20\x71\x75\x65\x75\x65\x73\x20\x61\x66\x74\x65\x72\x20\x71\x75\x65\x75\x65\x20\x73\x61\x76\x65","\x6C\x6F\x67","\x63\x61\x74\x63\x68","\x71\x75\x65\x75\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x65\x6D\x69\x74","\x74\x68\x65\x6E","\x61\x6C\x6C","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x75\x70\x64\x61\x74\x65","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72","\x72\x6F\x77\x73","\x6E\x61\x6D\x65","\x6D\x61\x70","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x75\x73\x65\x72\x49\x64","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x73\x63\x6F\x70\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x72\x6F\x6C\x65"];_0xe87f[0];const ReportQueueEvents=require(_0xe87f[1]);const VoiceQueue=require(_0xe87f[3])[_0xe87f[2]];const User=require(_0xe87f[3])[_0xe87f[4]];const Util=require(_0xe87f[5]);const _=require(_0xe87f[6]);const Promise=require(_0xe87f[7]);var events=[_0xe87f[8],_0xe87f[9],_0xe87f[10]];exports[_0xe87f[11]]= function(_0x8b6ax8){for(var _0x8b6ax9=0,_0x8b6axa=events[_0xe87f[12]];_0x8b6ax9< _0x8b6axa;_0x8b6ax9++){var _0x8b6axb=events[_0x8b6ax9];var _0x8b6axc=createListener(_0xe87f[13]+ _0x8b6axb,_0x8b6ax8);ReportQueueEvents[_0xe87f[14]](_0x8b6axb,_0x8b6axc);_0x8b6ax8[_0xe87f[14]](_0xe87f[15],removeListener(_0x8b6axb,_0x8b6axc))}};function createListener(_0x8b6axb,_0x8b6ax8){return function(_0x8b6axe){switch(_0x8b6axb){case _0xe87f[16]:;case _0xe87f[25]:return Promise[_0xe87f[24]]([])[_0xe87f[23]](getVoiceQueues(_0x8b6ax8))[_0xe87f[23]](function(_0x8b6ax10){if(_[_0xe87f[21]](_0x8b6ax10,_0x8b6axe[_0xe87f[20]])){_0x8b6ax8[_0xe87f[22]](_0x8b6axb,_0x8b6axe)}})[_0xe87f[19]](function(_0x8b6axf){console[_0xe87f[18]](_0xe87f[17],_0x8b6axf)});case _0xe87f[26]:_0x8b6ax8[_0xe87f[22]](_0x8b6axb,_0x8b6axe);break;default:}}}function removeListener(_0x8b6axb,_0x8b6axc){return function(){ReportQueueEvents[_0xe87f[27]](_0x8b6axb,_0x8b6axc)}}function getVoiceQueues(_0x8b6ax13){return function(){switch(_0x8b6ax13[_0xe87f[40]]){case _0xe87f[35]:return User[_0xe87f[34]](_0x8b6ax13[_0xe87f[32]],{attributes:[_0xe87f[33]]})[_0xe87f[23]](Util[_0xe87f[31]]())[_0xe87f[23]](function(_0x8b6ax10){return _[_0xe87f[30]](_0x8b6ax10[_0xe87f[28]],_0xe87f[29])});case _0xe87f[37]:return User[_0xe87f[38]](_0xe87f[37])[_0xe87f[34]](_0x8b6ax13[_0xe87f[32]])[_0xe87f[23]](function(_0x8b6ax15){return _0x8b6ax15[_0xe87f[36]]({attributes:[_0xe87f[29]]})})[_0xe87f[23]](function(_0x8b6ax14){return _[_0xe87f[30]](_0x8b6ax14,_0xe87f[29])});default:return VoiceQueue[_0xe87f[39]]()[_0xe87f[23]](function(_0x8b6ax10){return _[_0xe87f[30]](_0x8b6ax10,_0xe87f[29])})}}}