Built motion from commit 1038d87.|0.0.141
[motion.git] / server / api / report_queue / report_queue.socket.js
index b2eb419..516ab11 100644 (file)
@@ -1 +1 @@
-var _0xa41a=["\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"];_0xa41a[0];const ReportQueueEvents=require(_0xa41a[1]);const VoiceQueue=require(_0xa41a[3])[_0xa41a[2]];const User=require(_0xa41a[3])[_0xa41a[4]];const Util=require(_0xa41a[5]);const _=require(_0xa41a[6]);const Promise=require(_0xa41a[7]);var events=[_0xa41a[8],_0xa41a[9],_0xa41a[10]];exports[_0xa41a[11]]= function(_0x9ffex8){for(var _0x9ffex9=0,_0x9ffexa=events[_0xa41a[12]];_0x9ffex9< _0x9ffexa;_0x9ffex9++){var _0x9ffexb=events[_0x9ffex9];var _0x9ffexc=createListener(_0xa41a[13]+ _0x9ffexb,_0x9ffex8);ReportQueueEvents[_0xa41a[14]](_0x9ffexb,_0x9ffexc);_0x9ffex8[_0xa41a[14]](_0xa41a[15],removeListener(_0x9ffexb,_0x9ffexc))}};function createListener(_0x9ffexb,_0x9ffex8){return function(_0x9ffexe){switch(_0x9ffexb){case _0xa41a[16]:;case _0xa41a[25]:return Promise[_0xa41a[24]]([])[_0xa41a[23]](getVoiceQueues(_0x9ffex8))[_0xa41a[23]](function(_0x9ffex10){if(_[_0xa41a[21]](_0x9ffex10,_0x9ffexe[_0xa41a[20]])){_0x9ffex8[_0xa41a[22]](_0x9ffexb,_0x9ffexe)}})[_0xa41a[19]](function(_0x9ffexf){console[_0xa41a[18]](_0xa41a[17],_0x9ffexf)});case _0xa41a[26]:_0x9ffex8[_0xa41a[22]](_0x9ffexb,_0x9ffexe);break;default:}}}function removeListener(_0x9ffexb,_0x9ffexc){return function(){ReportQueueEvents[_0xa41a[27]](_0x9ffexb,_0x9ffexc)}}function getVoiceQueues(_0x9ffex13){return function(){switch(_0x9ffex13[_0xa41a[40]]){case _0xa41a[35]:return User[_0xa41a[34]](_0x9ffex13[_0xa41a[32]],{attributes:[_0xa41a[33]]})[_0xa41a[23]](Util[_0xa41a[31]]())[_0xa41a[23]](function(_0x9ffex10){return _[_0xa41a[30]](_0x9ffex10[_0xa41a[28]],_0xa41a[29])});case _0xa41a[37]:return User[_0xa41a[38]](_0xa41a[37])[_0xa41a[34]](_0x9ffex13[_0xa41a[32]])[_0xa41a[23]](function(_0x9ffex15){return _0x9ffex15[_0xa41a[36]]({attributes:[_0xa41a[29]]})})[_0xa41a[23]](function(_0x9ffex14){return _[_0xa41a[30]](_0x9ffex14,_0xa41a[29])});default:return VoiceQueue[_0xa41a[39]]()[_0xa41a[23]](function(_0x9ffex10){return _[_0xa41a[30]](_0x9ffex10,_0xa41a[29])})}}}
\ No newline at end of file
+var _0x7050=["\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"];_0x7050[0];const ReportQueueEvents=require(_0x7050[1]);const VoiceQueue=require(_0x7050[3])[_0x7050[2]];const User=require(_0x7050[3])[_0x7050[4]];const Util=require(_0x7050[5]);const _=require(_0x7050[6]);const Promise=require(_0x7050[7]);var events=[_0x7050[8],_0x7050[9],_0x7050[10]];exports[_0x7050[11]]= function(_0x6f5dx8){for(var _0x6f5dx9=0,_0x6f5dxa=events[_0x7050[12]];_0x6f5dx9< _0x6f5dxa;_0x6f5dx9++){var _0x6f5dxb=events[_0x6f5dx9];var _0x6f5dxc=createListener(_0x7050[13]+ _0x6f5dxb,_0x6f5dx8);ReportQueueEvents[_0x7050[14]](_0x6f5dxb,_0x6f5dxc);_0x6f5dx8[_0x7050[14]](_0x7050[15],removeListener(_0x6f5dxb,_0x6f5dxc))}};function createListener(_0x6f5dxb,_0x6f5dx8){return function(_0x6f5dxe){switch(_0x6f5dxb){case _0x7050[16]:;case _0x7050[25]:return Promise[_0x7050[24]]([])[_0x7050[23]](getVoiceQueues(_0x6f5dx8))[_0x7050[23]](function(_0x6f5dx10){if(_[_0x7050[21]](_0x6f5dx10,_0x6f5dxe[_0x7050[20]])){_0x6f5dx8[_0x7050[22]](_0x6f5dxb,_0x6f5dxe)}})[_0x7050[19]](function(_0x6f5dxf){console[_0x7050[18]](_0x7050[17],_0x6f5dxf)});case _0x7050[26]:_0x6f5dx8[_0x7050[22]](_0x6f5dxb,_0x6f5dxe);break;default:}}}function removeListener(_0x6f5dxb,_0x6f5dxc){return function(){ReportQueueEvents[_0x7050[27]](_0x6f5dxb,_0x6f5dxc)}}function getVoiceQueues(_0x6f5dx13){return function(){switch(_0x6f5dx13[_0x7050[40]]){case _0x7050[35]:return User[_0x7050[34]](_0x6f5dx13[_0x7050[32]],{attributes:[_0x7050[33]]})[_0x7050[23]](Util[_0x7050[31]]())[_0x7050[23]](function(_0x6f5dx10){return _[_0x7050[30]](_0x6f5dx10[_0x7050[28]],_0x7050[29])});case _0x7050[37]:return User[_0x7050[38]](_0x7050[37])[_0x7050[34]](_0x6f5dx13[_0x7050[32]])[_0x7050[23]](function(_0x6f5dx15){return _0x6f5dx15[_0x7050[36]]({attributes:[_0x7050[29]]})})[_0x7050[23]](function(_0x6f5dx14){return _[_0x7050[30]](_0x6f5dx14,_0x7050[29])});default:return VoiceQueue[_0x7050[39]]()[_0x7050[23]](function(_0x6f5dx10){return _[_0x7050[30]](_0x6f5dx10,_0x7050[29])})}}}
\ No newline at end of file