Built motion from commit c2984ba.|0.0.114
[motion.git] / server / api / voice_queue / voice_queue.controller.js
index c897016..a68f0fe 100644 (file)
@@ -1 +1 @@
-var _0x2075=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x69\x6E\x64\x65\x78","\x6E\x61\x6D\x65","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x73\x74\x72\x61\x74\x65\x67\x79","\x63\x6F\x6E\x74\x65\x78\x74","\x70\x65\x72\x5F\x70\x61\x67\x65","\x71\x75\x65\x72\x79","\x70\x61\x67\x65","\x6F\x72\x64\x65\x72","\x25\x73\x20\x25\x73","\x73\x6F\x72\x74\x5F\x62\x79","\x73\x6F\x72\x74\x5F\x6F\x72\x64\x65\x72","\x41\x53\x43","\x66\x6F\x72\x6D\x61\x74","\x24\x6F\x72","\x77\x68\x65\x72\x65","\x25","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x24","\x24\x6C\x69\x6B\x65","\x66\x6F\x72\x49\x6E","\x63\x61\x74\x63\x68","\x63\x6F\x75\x6E\x74","\x6C\x6F\x67","\x63\x65\x69\x6C","\x6F\x66\x66\x73\x65\x74","\x25\x73\x3A\x2F\x2F\x25\x73\x25\x73\x3F\x70\x61\x67\x65\x3D\x25\x64","\x70\x72\x6F\x74\x6F\x63\x6F\x6C","\x68\x6F\x73\x74","\x68\x65\x61\x64\x65\x72\x73","\x62\x61\x73\x65\x55\x72\x6C","\x72\x6F\x77\x73","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x61\x67\x65\x6E\x74","\x69\x64","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x71\x75\x65\x75\x65\x56\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E","\x62\x6F\x64\x79","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x46\x69\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x20\x72\x6F\x77\x2E\x2E\x2E\x2E\x2E","\x6C\x65\x6E\x67\x74\x68","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x51\x55\x45\x55\x45","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x53\x49\x50\x2F\x25\x73","\x6D\x61\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72","\x64\x65\x73\x74\x72\x6F\x79","\x4D\x45\x53\x53\x41\x47\x45\x5F\x51\x55\x45\x55\x45\x5F\x52\x4F\x55\x54\x45\x5F\x41\x53\x53\x4F\x43\x49\x41\x54\x45\x44","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73"];_0x2075[0];var _=require(_0x2075[1]);var util=require(_0x2075[2]);var User=require(_0x2075[4])[_0x2075[3]];var VoiceQueue=require(_0x2075[4])[_0x2075[5]];var UserHasVoiceQueue=require(_0x2075[4])[_0x2075[6]];var VoiceExtension=require(_0x2075[4])[_0x2075[7]];exports[_0x2075[8]]=function(_0xb211x7,_0xb211x8){var _0xb211x9=[_0x2075[9],_0x2075[10],_0x2075[11],_0x2075[12]];var _0xb211xa=_0xb211x7[_0x2075[14]][_0x2075[13]]?parseInt(_0xb211x7[_0x2075[14]][_0x2075[13]],10):100;var _0xb211xb=_0xb211x7[_0x2075[14]][_0x2075[15]]?parseInt(_0xb211x7[_0x2075[14]][_0x2075[15]],10):0;var _0xb211xc={where:{},limit:_0xb211xa,offset:_0xb211xb*_0xb211xa};_[_0x2075[29]](_0xb211x7[_0x2075[14]],function(_0xb211xd,_0xb211xe){switch(_0xb211xe){case _0x2075[13]:;case _0x2075[15]:break ;;case _0x2075[18]:_0xb211xc[_0x2075[16]]=util[_0x2075[21]](_0x2075[17],_0xb211x7[_0x2075[14]][_0x2075[18]],_0xb211x7[_0x2075[14]][_0x2075[19]]||_0x2075[20])||null;break ;;case _0x2075[19]:break ;;case _0x2075[27]:_0xb211xc[_0x2075[23]][_0x2075[22]]=[];_0xb211x9[_0x2075[26]](function(_0xb211xf){var _0xb211x10={};_0xb211x10[_0xb211xf]={$like:_0x2075[24]+_0xb211xd+_0x2075[24]};_0xb211xc[_0x2075[23]][_0x2075[22]][_0x2075[25]](_0xb211x10);});break ;;default:_0xb211xc[_0x2075[23]][_0xb211xe]={$like:{}};_0xb211xc[_0x2075[23]][_0xb211xe][_0x2075[28]]=_0x2075[24]+_0xb211xd+_0x2075[24];;}});VoiceQueue[_0x2075[44]](_0xb211xc)[_0x2075[43]](function(_0xb211x12){console[_0x2075[32]](_0xb211x12[_0x2075[31]]);var _0xb211x13=Math[_0x2075[33]](_0xb211x12[_0x2075[31]]/_0xb211xa);console[_0x2075[32]](_0xb211x13);var _0xb211x14=_0xb211x13>(_0xb211xc[_0x2075[34]]+1)?util[_0x2075[21]](_0x2075[35],_0xb211x7[_0x2075[36]],_0xb211x7[_0x2075[38]][_0x2075[37]],_0xb211x7[_0x2075[39]],_0xb211xb+1):null;var _0xb211x15=_0xb211xb>0?util[_0x2075[21]](_0x2075[35],_0xb211x7[_0x2075[36]],_0xb211x7[_0x2075[38]][_0x2075[37]],_0xb211x7[_0x2075[39]],_0xb211xb-1):null;_0xb211x8[_0x2075[42]](200)[_0x2075[41]]({count:_0xb211x12[_0x2075[31]],rows:_0xb211x12[_0x2075[40]],next_page:_0xb211x14,previous_page:_0xb211x15,total_pages:_0xb211x13});})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)});};exports[_0x2075[45]]=function(_0xb211x7,_0xb211x8){VoiceQueue[_0x2075[48]](_0xb211x7[_0x2075[47]][_0x2075[9]])[_0x2075[43]](function(_0xb211x16){if(!_0xb211x16){return _0xb211x8[_0x2075[46]](404)};return _0xb211x8[_0x2075[41]](_0xb211x16);})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)})};exports[_0x2075[49]]=function(_0xb211x7,_0xb211x8){return VoiceQueue[_0x2075[48]](_0xb211x7[_0x2075[47]][_0x2075[9]])[_0x2075[43]](function(_0xb211x18){if(!_0xb211x18){return _0xb211x8[_0x2075[46]](404)};return _0xb211x18[_0x2075[54]]({where:{role:_0x2075[50]},attributes:[_0x2075[51],_0x2075[9],_0x2075[52],_0x2075[53]]});})[_0x2075[43]](function(_0xb211x17){return _0xb211x8[_0x2075[42]](200)[_0x2075[41]](_0xb211x17)})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)})};exports[_0x2075[55]]=function(_0xb211x7,_0xb211x8){console[_0x2075[32]](_0xb211x7[_0x2075[56]]);VoiceQueue[_0x2075[57]]({where:{name:_0xb211x7[_0x2075[56]][_0x2075[9]]}})[_0x2075[43]](function(_0xb211x16){if(!_0xb211x16){return _0xb211x8[_0x2075[46]](404)};return _0xb211x8[_0x2075[41]](_0xb211x16);})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)});};exports[_0x2075[58]]=function(_0xb211x7,_0xb211x8){VoiceQueue[_0x2075[57]]({where:{name:_0xb211x7[_0x2075[56]][_0x2075[9]]}})[_0x2075[43]](function(_0xb211x19){console[_0x2075[32]](_0xb211x19);console[_0x2075[32]](_0x2075[59]);if(!_0xb211x19){return _0xb211x8[_0x2075[46]](404)};if(_0xb211x19[_0x2075[60]]>0){return _0xb211x8[_0x2075[42]](500)[_0x2075[41]]({message:_0x2075[61]})};VoiceQueue[_0x2075[58]](_0xb211x7[_0x2075[56]])[_0x2075[43]](function(_0xb211x16){return _0xb211x8[_0x2075[42]](201)[_0x2075[41]](_0xb211x16)})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)});})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)})};exports[_0x2075[62]]=function(_0xb211x7,_0xb211x8){VoiceQueue[_0x2075[65]]({where:{name:_0xb211x7[_0x2075[47]][_0x2075[9]]}})[_0x2075[43]](function(_0xb211x1a){if(!_0xb211x1a){return _0xb211x8[_0x2075[46]](404)};if(_0xb211x7[_0x2075[56]][_0x2075[51]]){delete _0xb211x7[_0x2075[56]][_0x2075[51]]};var _0xb211x1b=_[_0x2075[63]](_0xb211x1a,_0xb211x7[_0x2075[56]]);_0xb211x1b[_0x2075[64]]()[_0x2075[43]](function(){return _0xb211x8[_0x2075[42]](200)[_0x2075[41]](_0xb211x1a)})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)});})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)})};exports[_0x2075[66]]=function(_0xb211x7,_0xb211x8,_0xb211x1c){console[_0x2075[32]](_0x2075[66]);console[_0x2075[32]](_0xb211x7[_0x2075[47]]);console[_0x2075[32]](_0xb211x7[_0x2075[56]]);User[_0x2075[57]]({where:{id:{$in:_0xb211x7[_0x2075[56]][_0x2075[70]]}}})[_0x2075[43]](function(_0xb211x1d){var _0xb211x1e=_[_0x2075[68]](_0xb211x1d,function(_0xb211x1f){return {queue:_0xb211x7[_0x2075[47]][_0x2075[9]],location:util[_0x2075[21]](_0x2075[67],_0xb211x1f[_0x2075[9]]),membername:_0xb211x1f[_0x2075[9]],VoiceQueueName:_0xb211x7[_0x2075[47]][_0x2075[9]],UserId:_0xb211x1f[_0x2075[51]]}});UserHasVoiceQueue[_0x2075[69]](_0xb211x1e,{individualHooks:true})[_0x2075[43]](function(){return _0xb211x8[_0x2075[46]](200)})[_0x2075[30]](function(_0xb211x11){return _0xb211x1c(_0xb211x11)});})[_0x2075[30]](function(_0xb211x11){return _0xb211x1c(_0xb211x11)});};exports[_0x2075[71]]=function(_0xb211x7,_0xb211x8,_0xb211x1c){return VoiceQueue[_0x2075[48]](_0xb211x7[_0x2075[47]][_0x2075[9]])[_0x2075[43]](function(_0xb211x18){if(!_0xb211x18){return _0xb211x8[_0x2075[46]](404)};return _0xb211x18[_0x2075[72]](_0xb211x7[_0x2075[14]][_0x2075[70]]);})[_0x2075[43]](function(){return _0xb211x8[_0x2075[46]](202)})[_0x2075[30]](function(_0xb211x11){return _0xb211x1c(_0xb211x11)})};exports[_0x2075[73]]=function(_0xb211x7,_0xb211x8){VoiceQueue[_0x2075[65]]({where:{name:_0xb211x7[_0x2075[47]][_0x2075[9]]}})[_0x2075[43]](function(_0xb211x16){if(!_0xb211x16){return _0xb211x8[_0x2075[46]](404)};VoiceExtension[_0x2075[57]]({where:{queue:_0xb211x16[_0x2075[9]]}})[_0x2075[43]](function(_0xb211x20){if(_0xb211x20[_0x2075[60]]>0){return _0xb211x8[_0x2075[42]](500)[_0x2075[41]]({message:_0x2075[74]})};_0xb211x16[_0x2075[73]]()[_0x2075[43]](function(){return _0xb211x8[_0x2075[46]](204)})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)});})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)});})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)})};exports[_0x2075[75]]=function(_0xb211x7,_0xb211x8){VoiceQueue[_0x2075[57]]({where:{name:_0xb211x7[_0x2075[14]][_0x2075[9]]}})[_0x2075[43]](function(_0xb211x21){if(!_0xb211x21){return _0xb211x8[_0x2075[46]](404)};var _0xb211x22=_[_0x2075[68]](_[_0x2075[68]](_0xb211x21,_0x2075[76]),_0x2075[9]);console[_0x2075[32]](_0xb211x22);VoiceExtension[_0x2075[57]]({where:{queue:_0xb211x22}})[_0x2075[43]](function(_0xb211x20){if(_0xb211x20[_0x2075[60]]>0){return _0xb211x8[_0x2075[42]](500)[_0x2075[41]]({message:_0x2075[74]})};VoiceQueue[_0x2075[73]]({where:{name:_0xb211x7[_0x2075[14]][_0x2075[9]]},individualHooks:true})[_0x2075[43]](function(){return _0xb211x8[_0x2075[46]](204)})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)});})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)});})[_0x2075[30]](function(_0xb211x11){return handleError(_0xb211x8,_0xb211x11)})};function handleError(_0xb211x8,_0xb211x11){return _0xb211x8[_0x2075[42]](500)[_0x2075[41]](_0xb211x11)}
\ No newline at end of file
+var _0xd78c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x69\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6E\x61\x6D\x65","\x70\x61\x72\x61\x6D\x73","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x65\x6E\x74","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x63\x72\x65\x61\x74\x65","\x70\x75\x73\x68","\x50\x52\x49\x4D\x41\x52\x59","\x70\x61\x74\x68","\x66\x6F\x72\x45\x61\x63\x68","\x65\x72\x72\x6F\x72\x73","\x20\x6D\x75\x73\x74\x20\x62\x65\x20\x75\x6E\x69\x71\x75\x65","\x6D\x65\x73\x73\x61\x67\x65","\x6A\x6F\x69\x6E","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x64\x4D\x65\x73\x73\x61\x67\x65","\x4D\x45\x53\x53\x41\x47\x45\x5F\x45\x58\x49\x53\x54\x5F\x51\x55\x45\x55\x45","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6C\x6F\x67","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x53\x49\x50\x2F\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x70\x65\x6E\x61\x6C\x74\x79","\x6D\x61\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x67\x65\x6E\x74\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x64\x65\x73\x74\x72\x6F\x79","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0xd78c[0];var _=require(_0xd78c[1]);var util=require(_0xd78c[2]);var Util=require(_0xd78c[3]);var sequelize=require(_0xd78c[5])[_0xd78c[4]];var User=require(_0xd78c[5])[_0xd78c[6]];var VoiceQueue=require(_0xd78c[5])[_0xd78c[7]];var UserHasVoiceQueue=require(_0xd78c[5])[_0xd78c[8]];var VoiceExtension=require(_0xd78c[5])[_0xd78c[9]];exports[_0xd78c[10]]= function(_0x932ax9,_0x932axa){switch(_0x932ax9[_0xd78c[18]][_0xd78c[22]]){case _0xd78c[18]:return User[_0xd78c[19]](_0x932ax9[_0xd78c[18]][_0xd78c[17]],{attributes:[_0xd78c[17]]})[_0xd78c[14]](Util[_0xd78c[16]](_0x932ax9[_0xd78c[15]]))[_0xd78c[14]](function(_0x932axc){_0x932axa[_0xd78c[13]](200)[_0xd78c[12]](_0x932axc)})[_0xd78c[11]](function(_0x932axb){return handleError(_0x932axa,_0x932axb)});default:return VoiceQueue[_0xd78c[21]](Util[_0xd78c[20]](_0x932ax9[_0xd78c[15]]))[_0xd78c[14]](function(_0x932axc){_0x932axa[_0xd78c[13]](200)[_0xd78c[12]](_0x932axc)})[_0xd78c[11]](function(_0x932axb){return handleError(_0x932axa,_0x932axb)})}};exports[_0xd78c[23]]= function(_0x932ax9,_0x932axa){return VoiceQueue[_0xd78c[19]](_0x932ax9[_0xd78c[26]][_0xd78c[25]])[_0xd78c[14]](function(_0x932axd){if(!_0x932axd){return _0x932axa[_0xd78c[24]](404)};return _0x932axa[_0xd78c[12]](_0x932axd)})[_0xd78c[11]](function(_0x932axb){return handleError(_0x932axa,_0x932axb)})};exports[_0xd78c[27]]= function(_0x932ax9,_0x932axa){return VoiceQueue[_0xd78c[19]](_0x932ax9[_0xd78c[26]][_0xd78c[25]])[_0xd78c[14]](function(_0x932axf){if(!_0x932axf){return _0x932axa[_0xd78c[24]](404)};return _0x932axf[_0xd78c[32]]({where:{role:_0xd78c[29]},attributes:[_0xd78c[17],_0xd78c[25],_0xd78c[30],_0xd78c[31]]})})[_0xd78c[14]](function(_0x932axe){return _0x932axa[_0xd78c[13]](200)[_0xd78c[12]]({rows:_0x932axe,count:_0x932axe[_0xd78c[28]]})})[_0xd78c[11]](function(_0x932axb){return handleError(_0x932axa,_0x932axb)})};exports[_0xd78c[33]]= function(_0x932ax9,_0x932axa){return VoiceQueue[_0xd78c[33]](_0x932ax9[_0xd78c[44]])[_0xd78c[14]](function(_0x932axd){return _0x932axa[_0xd78c[13]](201)[_0xd78c[12]](_0x932axd)})[_0xd78c[11]](sequelize.UniqueConstraintError,function(_0x932axb){var _0x932ax10=[];_0x932axb[_0xd78c[38]][_0xd78c[37]](function(_0x932ax11){switch(_0x932ax11[_0xd78c[36]]){case _0xd78c[35]:_0x932ax10[_0xd78c[34]](_0xd78c[25]);break;default:_0x932ax10[_0xd78c[34]](_0x932ax11[_0xd78c[36]])}});_0x932ax10[_0xd78c[34]](_0xd78c[39]);_0x932axb[_0xd78c[40]]= _0x932ax10[_0xd78c[41]]();_0x932axb[_0xd78c[42]]= _0xd78c[43];return _0x932axa[_0xd78c[13]](500)[_0xd78c[12]](_0x932axb)})[_0xd78c[11]](function(_0x932axb){return handleError(_0x932axa,_0x932axb)})};exports[_0xd78c[45]]= function(_0x932ax9,_0x932axa){if(_0x932ax9[_0xd78c[44]][_0xd78c[25]]){delete _0x932ax9[_0xd78c[44]][_0xd78c[25]]};return VoiceQueue[_0xd78c[19]](_0x932ax9[_0xd78c[26]][_0xd78c[25]])[_0xd78c[14]](function(_0x932axd){if(!_0x932axd){return _0x932axa[_0xd78c[24]](404)};var _0x932ax12=_[_0xd78c[47]](_0x932axd,_0x932ax9[_0xd78c[44]]);return _0x932ax12[_0xd78c[48]]()})[_0xd78c[14]](function(_0x932axd){return _0x932axa[_0xd78c[13]](200)[_0xd78c[12]](_0x932axd)})[_0xd78c[11]](function(_0x932axb){console[_0xd78c[46]](_0x932axb);return handleError(_0x932axa,_0x932axb)})};exports[_0xd78c[49]]= function(_0x932ax9,_0x932axa,_0x932ax13){return User[_0xd78c[56]]({where:{id:{$in:_0x932ax9[_0xd78c[44]][_0xd78c[55]]}}})[_0xd78c[14]](function(_0x932ax14){var _0x932ax15=_[_0xd78c[53]](_0x932ax14,function(_0x932ax16){return {queue:_0x932ax9[_0xd78c[26]][_0xd78c[25]],location:util[_0xd78c[51]](_0xd78c[50],_0x932ax16[_0xd78c[25]]),membername:_0x932ax16[_0xd78c[25]],UserId:_0x932ax16[_0xd78c[17]],penalty:_0x932ax9[_0xd78c[44]][_0xd78c[52]]}});return UserHasVoiceQueue[_0xd78c[54]](_0x932ax15,{individualHooks:true})})[_0xd78c[14]](function(){return _0x932axa[_0xd78c[24]](200)})[_0xd78c[11]](function(_0x932axb){console[_0xd78c[46]](_0x932axb);return _0x932ax13(_0x932axb)})};exports[_0xd78c[57]]= function(_0x932ax9,_0x932axa,_0x932ax13){return UserHasVoiceQueue[_0xd78c[58]]({where:{UserId:_0x932ax9[_0xd78c[15]][_0xd78c[55]],queue:_0x932ax9[_0xd78c[26]][_0xd78c[25]]},individualHooks:true})[_0xd78c[14]](function(){return _0x932axa[_0xd78c[24]](202)})[_0xd78c[11]](function(_0x932axb){return _0x932ax13(_0x932axb)})};exports[_0xd78c[58]]= function(_0x932ax9,_0x932axa){return VoiceQueue[_0xd78c[58]]({where:{name:_0x932ax9[_0xd78c[26]][_0xd78c[25]]},individualHooks:true})[_0xd78c[14]](function(){return _0x932axa[_0xd78c[24]](204)})[_0xd78c[11]](function(_0x932axb){return handleError(_0x932axa,_0x932axb)})};exports[_0xd78c[59]]= function(_0x932ax9,_0x932axa){return VoiceQueue[_0xd78c[58]]({where:{name:_0x932ax9[_0xd78c[15]][_0xd78c[60]]},individualHooks:true})[_0xd78c[14]](function(){return _0x932axa[_0xd78c[24]](204)})[_0xd78c[11]](function(_0x932axb){return handleError(_0x932axa,_0x932axb)})};function handleError(_0x932axa,_0x932axb){return _0x932axa[_0xd78c[13]](500)[_0xd78c[12]](_0x932axb)}
\ No newline at end of file