Built motion from commit eeb7beacd.|1.0.21
[motion.git] / server / api / voice_queue / voice_queue.socket.js
index 90b426e..18b5e10 100644 (file)
@@ -1 +1 @@
-var _0xcec0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x76\x6F\x69\x63\x65\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","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\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","\x6E\x61\x6D\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x65\x6D\x69\x74","\x74\x68\x65\x6E","\x61\x6C\x6C","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x73\x61\x76\x65","\x76\x6F\x69\x63\x65\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","\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","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x64\x6D\x69\x6E","\x72\x6F\x6C\x65"];_0xcec0[0];const VoiceQueueEvents=require(_0xcec0[1]);const VoiceQueue=require(_0xcec0[3])[_0xcec0[2]];const User=require(_0xcec0[3])[_0xcec0[4]];const Util=require(_0xcec0[5]);const _=require(_0xcec0[6]);const Promise=require(_0xcec0[7]);var events=[_0xcec0[8],_0xcec0[9]];exports[_0xcec0[10]]= function(_0x8869x8){for(var _0x8869x9=0,_0x8869xa=events[_0xcec0[11]];_0x8869x9< _0x8869xa;_0x8869x9++){var _0x8869xb=events[_0x8869x9];var _0x8869xc=createListener(_0xcec0[12]+ _0x8869xb,_0x8869x8);VoiceQueueEvents[_0xcec0[13]](_0x8869xb,_0x8869xc);_0x8869x8[_0xcec0[13]](_0xcec0[14],removeListener(_0x8869xb,_0x8869xc))}};function createListener(_0x8869xb,_0x8869x8){return function(_0x8869xe){switch(_0x8869xb){case _0xcec0[23]:return Promise[_0xcec0[22]]([])[_0xcec0[21]](getVoiceQueues(_0x8869x8))[_0xcec0[21]](function(_0x8869x10){if(_[_0xcec0[19]](_0x8869x10,_0x8869xe[_0xcec0[18]])){_0x8869x8[_0xcec0[20]](_0x8869xb,_0x8869xe)}})[_0xcec0[17]](function(_0x8869xf){console[_0xcec0[16]](_0xcec0[15],_0x8869xf)});break;case _0xcec0[24]:_0x8869x8[_0xcec0[20]](_0x8869xb,_0x8869xe);break;default:}}}function removeListener(_0x8869xb,_0x8869xc){return function(){VoiceQueueEvents[_0xcec0[25]](_0x8869xb,_0x8869xc)}}function getVoiceQueues(_0x8869x13){return function(){switch(_0x8869x13[_0xcec0[35]]){case _0xcec0[32]:return User[_0xcec0[31]](_0x8869x13[_0xcec0[29]],{attributes:[_0xcec0[30]]})[_0xcec0[21]](Util[_0xcec0[28]]())[_0xcec0[21]](function(_0x8869x10){return _[_0xcec0[27]](_0x8869x10[_0xcec0[26]],_0xcec0[18])});case _0xcec0[34]:return VoiceQueue[_0xcec0[33]]()[_0xcec0[21]](function(_0x8869x14){return {rows:_0x8869x14}})[_0xcec0[21]](function(_0x8869x10){return _[_0xcec0[27]](_0x8869x10[_0xcec0[26]],_0xcec0[18])});default:return []}}}
\ No newline at end of file
+var _0x2724=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x76\x6F\x69\x63\x65\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","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x72\x6F\x6C\x65","\x61\x64\x6D\x69\x6E","\x6E\x61\x6D\x65","\x6A\x6F\x69\x6E","\x65\x6D\x69\x74","\x76\x6F\x69\x63\x65\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","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x74\x68\x65\x6E","\x72\x65\x73\x6F\x6C\x76\x65","\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x3A\x75\x70\x64\x61\x74\x65","\x6C\x65\x61\x76\x65","\x76\x6F\x69\x63\x65\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","\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","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x2724[0];var VoiceQueueEvents=require(_0x2724[1]);var VoiceQueue=require(_0x2724[3])[_0x2724[2]];var User=require(_0x2724[3])[_0x2724[4]];var Util=require(_0x2724[5]);var _=require(_0x2724[6]);var Promise=require(_0x2724[7]);var events=[_0x2724[8],_0x2724[9]];exports[_0x2724[10]]= function(_0x608bx8){for(var _0x608bx9=0,_0x608bxa=events[_0x2724[11]];_0x608bx9< _0x608bxa;_0x608bx9++){var _0x608bxb=events[_0x608bx9];var _0x608bxc=createListener(_0x2724[12]+ _0x608bxb,_0x608bx8);VoiceQueueEvents[_0x2724[13]](_0x608bxb,_0x608bxc);_0x608bx8[_0x2724[13]](_0x2724[14],removeListener(_0x608bxb,_0x608bxc))}};function createListener(_0x608bxb,_0x608bx8){return function(_0x608bxe){switch(_0x608bxb){case _0x2724[20]:if(_0x608bx8[_0x2724[15]]=== _0x2724[16]){_0x608bx8[_0x2724[18]](_0x608bxe[_0x2724[17]]);_0x608bx8[_0x2724[19]](_0x608bxb,_0x608bxe)};break;case _0x2724[27]:return Promise[_0x2724[26]]()[_0x2724[25]](getVoiceQueues(_0x608bx8))[_0x2724[25]](function(_0x608bx10){if(_[_0x2724[24]](_0x608bx10,_0x608bxe[_0x2724[17]])){_0x608bx8[_0x2724[19]](_0x608bxb,_0x608bxe)}})[_0x2724[23]](function(_0x608bxf){console[_0x2724[22]](_0x2724[21],_0x608bxf)});break;case _0x2724[29]:_0x608bx8[_0x2724[28]](_0x608bxe[_0x2724[17]]);_0x608bx8[_0x2724[19]](_0x608bxb,_0x608bxe);break;default:}}}function removeListener(_0x608bxb,_0x608bxc){return function(){VoiceQueueEvents[_0x2724[30]](_0x608bxb,_0x608bxc)}}function getVoiceQueues(_0x608bx13){return function(){switch(_0x608bx13[_0x2724[15]]){case _0x2724[37]:return User[_0x2724[36]](_0x608bx13[_0x2724[34]],{attributes:[_0x2724[35]]})[_0x2724[25]](Util[_0x2724[33]]())[_0x2724[25]](function(_0x608bx10){return _[_0x2724[32]](_0x608bx10[_0x2724[31]],_0x2724[17])});case _0x2724[16]:return VoiceQueue[_0x2724[38]]()[_0x2724[25]](function(_0x608bx14){return {rows:_0x608bx14}})[_0x2724[25]](function(_0x608bx10){return _[_0x2724[32]](_0x608bx10[_0x2724[31]],_0x2724[17])});default:return []}}}
\ No newline at end of file