Built motion from commit 8d1370ff4.|1.0.34
[motion.git] / server / api / report_queue / report_queue.socket.js
index fd22d79..ede0cac 100644 (file)
@@ -1 +1 @@
-var _0x4481=["\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"];_0x4481[0];const ReportQueueEvents=require(_0x4481[1]);const VoiceQueue=require(_0x4481[3])[_0x4481[2]];const User=require(_0x4481[3])[_0x4481[4]];const Util=require(_0x4481[5]);const _=require(_0x4481[6]);const Promise=require(_0x4481[7]);var events=[_0x4481[8],_0x4481[9],_0x4481[10]];exports[_0x4481[11]]= function(_0xd60ex8){for(var _0xd60ex9=0,_0xd60exa=events[_0x4481[12]];_0xd60ex9< _0xd60exa;_0xd60ex9++){var _0xd60exb=events[_0xd60ex9];var _0xd60exc=createListener(_0x4481[13]+ _0xd60exb,_0xd60ex8);ReportQueueEvents[_0x4481[14]](_0xd60exb,_0xd60exc);_0xd60ex8[_0x4481[14]](_0x4481[15],removeListener(_0xd60exb,_0xd60exc))}};function createListener(_0xd60exb,_0xd60ex8){return function(_0xd60exe){switch(_0xd60exb){case _0x4481[16]:;case _0x4481[25]:return Promise[_0x4481[24]]([])[_0x4481[23]](getVoiceQueues(_0xd60ex8))[_0x4481[23]](function(_0xd60ex10){if(_[_0x4481[21]](_0xd60ex10,_0xd60exe[_0x4481[20]])){_0xd60ex8[_0x4481[22]](_0xd60exb,_0xd60exe)}})[_0x4481[19]](function(_0xd60exf){console[_0x4481[18]](_0x4481[17],_0xd60exf)});case _0x4481[26]:_0xd60ex8[_0x4481[22]](_0xd60exb,_0xd60exe);break;default:}}}function removeListener(_0xd60exb,_0xd60exc){return function(){ReportQueueEvents[_0x4481[27]](_0xd60exb,_0xd60exc)}}function getVoiceQueues(_0xd60ex13){return function(){switch(_0xd60ex13[_0x4481[40]]){case _0x4481[35]:return User[_0x4481[34]](_0xd60ex13[_0x4481[32]],{attributes:[_0x4481[33]]})[_0x4481[23]](Util[_0x4481[31]]())[_0x4481[23]](function(_0xd60ex10){return _[_0x4481[30]](_0xd60ex10[_0x4481[28]],_0x4481[29])});case _0x4481[37]:return User[_0x4481[38]](_0x4481[37])[_0x4481[34]](_0xd60ex13[_0x4481[32]])[_0x4481[23]](function(_0xd60ex15){return _0xd60ex15[_0x4481[36]]({attributes:[_0x4481[29]]})})[_0x4481[23]](function(_0xd60ex14){return _[_0x4481[30]](_0xd60ex14,_0x4481[29])});default:return VoiceQueue[_0x4481[39]]()[_0x4481[23]](function(_0xd60ex10){return _[_0x4481[30]](_0xd60ex10,_0x4481[29])})}}}
\ No newline at end of file
+var _0xfc8b=["\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"];_0xfc8b[0];const ReportQueueEvents=require(_0xfc8b[1]);const VoiceQueue=require(_0xfc8b[3])[_0xfc8b[2]];const User=require(_0xfc8b[3])[_0xfc8b[4]];const Util=require(_0xfc8b[5]);const _=require(_0xfc8b[6]);const Promise=require(_0xfc8b[7]);var events=[_0xfc8b[8],_0xfc8b[9],_0xfc8b[10]];exports[_0xfc8b[11]]= function(_0xebc5x8){for(var _0xebc5x9=0,_0xebc5xa=events[_0xfc8b[12]];_0xebc5x9< _0xebc5xa;_0xebc5x9++){var _0xebc5xb=events[_0xebc5x9];var _0xebc5xc=createListener(_0xfc8b[13]+ _0xebc5xb,_0xebc5x8);ReportQueueEvents[_0xfc8b[14]](_0xebc5xb,_0xebc5xc);_0xebc5x8[_0xfc8b[14]](_0xfc8b[15],removeListener(_0xebc5xb,_0xebc5xc))}};function createListener(_0xebc5xb,_0xebc5x8){return function(_0xebc5xe){switch(_0xebc5xb){case _0xfc8b[16]:;case _0xfc8b[25]:return Promise[_0xfc8b[24]]([])[_0xfc8b[23]](getVoiceQueues(_0xebc5x8))[_0xfc8b[23]](function(_0xebc5x10){if(_[_0xfc8b[21]](_0xebc5x10,_0xebc5xe[_0xfc8b[20]])){_0xebc5x8[_0xfc8b[22]](_0xebc5xb,_0xebc5xe)}})[_0xfc8b[19]](function(_0xebc5xf){console[_0xfc8b[18]](_0xfc8b[17],_0xebc5xf)});case _0xfc8b[26]:_0xebc5x8[_0xfc8b[22]](_0xebc5xb,_0xebc5xe);break;default:}}}function removeListener(_0xebc5xb,_0xebc5xc){return function(){ReportQueueEvents[_0xfc8b[27]](_0xebc5xb,_0xebc5xc)}}function getVoiceQueues(_0xebc5x13){return function(){switch(_0xebc5x13[_0xfc8b[40]]){case _0xfc8b[35]:return User[_0xfc8b[34]](_0xebc5x13[_0xfc8b[32]],{attributes:[_0xfc8b[33]]})[_0xfc8b[23]](Util[_0xfc8b[31]]())[_0xfc8b[23]](function(_0xebc5x10){return _[_0xfc8b[30]](_0xebc5x10[_0xfc8b[28]],_0xfc8b[29])});case _0xfc8b[37]:return User[_0xfc8b[38]](_0xfc8b[37])[_0xfc8b[34]](_0xebc5x13[_0xfc8b[32]])[_0xfc8b[23]](function(_0xebc5x15){return _0xebc5x15[_0xfc8b[36]]({attributes:[_0xfc8b[29]]})})[_0xfc8b[23]](function(_0xebc5x14){return _[_0xfc8b[30]](_0xebc5x14,_0xfc8b[29])});default:return VoiceQueue[_0xfc8b[39]]()[_0xfc8b[23]](function(_0xebc5x10){return _[_0xfc8b[30]](_0xebc5x10,_0xfc8b[29])})}}}
\ No newline at end of file