Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / api / voice_queue / voice_queue.socket.js
index 2fee23c..79dec50 100644 (file)
@@ -1 +1 @@
-var _0xcd29=["\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"];_0xcd29[0];const VoiceQueueEvents=require(_0xcd29[1]);const VoiceQueue=require(_0xcd29[3])[_0xcd29[2]];const User=require(_0xcd29[3])[_0xcd29[4]];const Util=require(_0xcd29[5]);const _=require(_0xcd29[6]);const Promise=require(_0xcd29[7]);var events=[_0xcd29[8],_0xcd29[9]];exports[_0xcd29[10]]= function(_0x5a40x8){for(var _0x5a40x9=0,_0x5a40xa=events[_0xcd29[11]];_0x5a40x9< _0x5a40xa;_0x5a40x9++){var _0x5a40xb=events[_0x5a40x9];var _0x5a40xc=createListener(_0xcd29[12]+ _0x5a40xb,_0x5a40x8);VoiceQueueEvents[_0xcd29[13]](_0x5a40xb,_0x5a40xc);_0x5a40x8[_0xcd29[13]](_0xcd29[14],removeListener(_0x5a40xb,_0x5a40xc))}};function createListener(_0x5a40xb,_0x5a40x8){return function(_0x5a40xe){switch(_0x5a40xb){case _0xcd29[23]:return Promise[_0xcd29[22]]([])[_0xcd29[21]](getVoiceQueues(_0x5a40x8))[_0xcd29[21]](function(_0x5a40x10){if(_[_0xcd29[19]](_0x5a40x10,_0x5a40xe[_0xcd29[18]])){_0x5a40x8[_0xcd29[20]](_0x5a40xb,_0x5a40xe)}})[_0xcd29[17]](function(_0x5a40xf){console[_0xcd29[16]](_0xcd29[15],_0x5a40xf)});break;case _0xcd29[24]:_0x5a40x8[_0xcd29[20]](_0x5a40xb,_0x5a40xe);break;default:}}}function removeListener(_0x5a40xb,_0x5a40xc){return function(){VoiceQueueEvents[_0xcd29[25]](_0x5a40xb,_0x5a40xc)}}function getVoiceQueues(_0x5a40x13){return function(){switch(_0x5a40x13[_0xcd29[35]]){case _0xcd29[32]:return User[_0xcd29[31]](_0x5a40x13[_0xcd29[29]],{attributes:[_0xcd29[30]]})[_0xcd29[21]](Util[_0xcd29[28]]())[_0xcd29[21]](function(_0x5a40x10){return _[_0xcd29[27]](_0x5a40x10[_0xcd29[26]],_0xcd29[18])});case _0xcd29[34]:return VoiceQueue[_0xcd29[33]]()[_0xcd29[21]](function(_0x5a40x14){return {rows:_0x5a40x14}})[_0xcd29[21]](function(_0x5a40x10){return _[_0xcd29[27]](_0x5a40x10[_0xcd29[26]],_0xcd29[18])});default:return []}}}
\ No newline at end of file
+var _0xebaf=["\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"];_0xebaf[0];const VoiceQueueEvents=require(_0xebaf[1]);const VoiceQueue=require(_0xebaf[3])[_0xebaf[2]];const User=require(_0xebaf[3])[_0xebaf[4]];const Util=require(_0xebaf[5]);const _=require(_0xebaf[6]);const Promise=require(_0xebaf[7]);var events=[_0xebaf[8],_0xebaf[9]];exports[_0xebaf[10]]= function(_0xe101x8){for(var _0xe101x9=0,_0xe101xa=events[_0xebaf[11]];_0xe101x9< _0xe101xa;_0xe101x9++){var _0xe101xb=events[_0xe101x9];var _0xe101xc=createListener(_0xebaf[12]+ _0xe101xb,_0xe101x8);VoiceQueueEvents[_0xebaf[13]](_0xe101xb,_0xe101xc);_0xe101x8[_0xebaf[13]](_0xebaf[14],removeListener(_0xe101xb,_0xe101xc))}};function createListener(_0xe101xb,_0xe101x8){return function(_0xe101xe){switch(_0xe101xb){case _0xebaf[23]:return Promise[_0xebaf[22]]([])[_0xebaf[21]](getVoiceQueues(_0xe101x8))[_0xebaf[21]](function(_0xe101x10){if(_[_0xebaf[19]](_0xe101x10,_0xe101xe[_0xebaf[18]])){_0xe101x8[_0xebaf[20]](_0xe101xb,_0xe101xe)}})[_0xebaf[17]](function(_0xe101xf){console[_0xebaf[16]](_0xebaf[15],_0xe101xf)});break;case _0xebaf[24]:_0xe101x8[_0xebaf[20]](_0xe101xb,_0xe101xe);break;default:}}}function removeListener(_0xe101xb,_0xe101xc){return function(){VoiceQueueEvents[_0xebaf[25]](_0xe101xb,_0xe101xc)}}function getVoiceQueues(_0xe101x13){return function(){switch(_0xe101x13[_0xebaf[35]]){case _0xebaf[32]:return User[_0xebaf[31]](_0xe101x13[_0xebaf[29]],{attributes:[_0xebaf[30]]})[_0xebaf[21]](Util[_0xebaf[28]]())[_0xebaf[21]](function(_0xe101x10){return _[_0xebaf[27]](_0xe101x10[_0xebaf[26]],_0xebaf[18])});case _0xebaf[34]:return VoiceQueue[_0xebaf[33]]()[_0xebaf[21]](function(_0xe101x14){return {rows:_0xe101x14}})[_0xebaf[21]](function(_0xe101x10){return _[_0xebaf[27]](_0xe101x10[_0xebaf[26]],_0xebaf[18])});default:return []}}}
\ No newline at end of file