Built motion from commit 36b8e3b.|0.0.111
[motion.git] / server / api / voice_queue / voice_queue.controller.js
index 81a4e6a..c91553e 100644 (file)
@@ -1 +1 @@
-var _0xccea=["\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","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\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\x73","\x6E\x6F\x20\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x66\x6F\x75\x6E\x64","\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","\x70\x6C\x75\x63\x6B"];_0xccea[0];var _=require(_0xccea[1]);var util=require(_0xccea[2]);var User=require(_0xccea[4])[_0xccea[3]];var VoiceQueue=require(_0xccea[4])[_0xccea[5]];var UserHasVoiceQueue=require(_0xccea[4])[_0xccea[6]];var VoiceExtension=require(_0xccea[4])[_0xccea[7]];exports[_0xccea[8]]=function(_0xc7f5x7,_0xc7f5x8){var _0xc7f5x9=[_0xccea[9],_0xccea[10],_0xccea[11],_0xccea[12]];var _0xc7f5xa=_0xc7f5x7[_0xccea[14]][_0xccea[13]]?parseInt(_0xc7f5x7[_0xccea[14]][_0xccea[13]],10):100;var _0xc7f5xb=_0xc7f5x7[_0xccea[14]][_0xccea[15]]?parseInt(_0xc7f5x7[_0xccea[14]][_0xccea[15]],10):0;var _0xc7f5xc={where:{},limit:_0xc7f5xa,offset:_0xc7f5xb*_0xc7f5xa};_[_0xccea[29]](_0xc7f5x7[_0xccea[14]],function(_0xc7f5xd,_0xc7f5xe){switch(_0xc7f5xe){case _0xccea[13]:;case _0xccea[15]:break ;;case _0xccea[18]:_0xc7f5xc[_0xccea[16]]=util[_0xccea[21]](_0xccea[17],_0xc7f5x7[_0xccea[14]][_0xccea[18]],_0xc7f5x7[_0xccea[14]][_0xccea[19]]||_0xccea[20])||null;break ;;case _0xccea[19]:break ;;case _0xccea[27]:_0xc7f5xc[_0xccea[23]][_0xccea[22]]=[];_0xc7f5x9[_0xccea[26]](function(_0xc7f5xf){var _0xc7f5x10={};_0xc7f5x10[_0xc7f5xf]={$like:_0xccea[24]+_0xc7f5xd+_0xccea[24]};_0xc7f5xc[_0xccea[23]][_0xccea[22]][_0xccea[25]](_0xc7f5x10);});break ;;default:_0xc7f5xc[_0xccea[23]][_0xc7f5xe]={$like:{}};_0xc7f5xc[_0xccea[23]][_0xc7f5xe][_0xccea[28]]=_0xccea[24]+_0xc7f5xd+_0xccea[24];;}});VoiceQueue[_0xccea[44]](_0xc7f5xc)[_0xccea[43]](function(_0xc7f5x12){console[_0xccea[32]](_0xc7f5x12[_0xccea[31]]);var _0xc7f5x13=Math[_0xccea[33]](_0xc7f5x12[_0xccea[31]]/_0xc7f5xa);console[_0xccea[32]](_0xc7f5x13);var _0xc7f5x14=_0xc7f5x13>(_0xc7f5xc[_0xccea[34]]+1)?util[_0xccea[21]](_0xccea[35],_0xc7f5x7[_0xccea[36]],_0xc7f5x7[_0xccea[38]][_0xccea[37]],_0xc7f5x7[_0xccea[39]],_0xc7f5xb+1):null;var _0xc7f5x15=_0xc7f5xb>0?util[_0xccea[21]](_0xccea[35],_0xc7f5x7[_0xccea[36]],_0xc7f5x7[_0xccea[38]][_0xccea[37]],_0xc7f5x7[_0xccea[39]],_0xc7f5xb-1):null;_0xc7f5x8[_0xccea[42]](200)[_0xccea[41]]({count:_0xc7f5x12[_0xccea[31]],rows:_0xc7f5x12[_0xccea[40]],next_page:_0xc7f5x14,previous_page:_0xc7f5x15,total_pages:_0xc7f5x13});})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)});};exports[_0xccea[45]]=function(_0xc7f5x7,_0xc7f5x8){VoiceQueue[_0xccea[49]](_0xc7f5x7[_0xccea[48]][_0xccea[47]])[_0xccea[43]](function(_0xc7f5x16){if(!_0xc7f5x16){return _0xc7f5x8[_0xccea[46]](404)};return _0xc7f5x8[_0xccea[41]](_0xc7f5x16);})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)})};exports[_0xccea[50]]=function(_0xc7f5x7,_0xc7f5x8){console[_0xccea[32]](_0xc7f5x7[_0xccea[51]]);VoiceQueue[_0xccea[52]]({where:{name:_0xc7f5x7[_0xccea[51]][_0xccea[9]]}})[_0xccea[43]](function(_0xc7f5x16){if(!_0xc7f5x16){return _0xc7f5x8[_0xccea[46]](404)};return _0xc7f5x8[_0xccea[41]](_0xc7f5x16);})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)});};exports[_0xccea[53]]=function(_0xc7f5x7,_0xc7f5x8){VoiceQueue[_0xccea[52]]({where:{name:_0xc7f5x7[_0xccea[51]][_0xccea[9]]}})[_0xccea[43]](function(_0xc7f5x17){console[_0xccea[32]](_0xc7f5x17);console[_0xccea[32]](_0xccea[54]);if(!_0xc7f5x17){return _0xc7f5x8[_0xccea[46]](404)};if(_0xc7f5x17[_0xccea[55]]>0){return _0xc7f5x8[_0xccea[42]](500)[_0xccea[41]]({message:_0xccea[56]})};VoiceQueue[_0xccea[53]](_0xc7f5x7[_0xccea[51]])[_0xccea[43]](function(_0xc7f5x16){return _0xc7f5x8[_0xccea[42]](201)[_0xccea[41]](_0xc7f5x16)})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)});})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)})};exports[_0xccea[57]]=function(_0xc7f5x7,_0xc7f5x8){VoiceQueue[_0xccea[60]]({where:{name:_0xc7f5x7[_0xccea[48]][_0xccea[47]]}})[_0xccea[43]](function(_0xc7f5x18){if(!_0xc7f5x18){return _0xc7f5x8[_0xccea[46]](404)};if(_0xc7f5x7[_0xccea[51]][_0xccea[47]]){delete _0xc7f5x7[_0xccea[51]][_0xccea[47]]};var _0xc7f5x19=_[_0xccea[58]](_0xc7f5x18,_0xc7f5x7[_0xccea[51]]);_0xc7f5x19[_0xccea[59]]()[_0xccea[43]](function(){return _0xc7f5x8[_0xccea[42]](200)[_0xccea[41]](_0xc7f5x18)})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)});})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)})};exports[_0xccea[61]]=function(_0xc7f5x7,_0xc7f5x8,_0xc7f5x1a){console[_0xccea[32]](_0xccea[61]);console[_0xccea[32]](_0xc7f5x7[_0xccea[48]]);console[_0xccea[32]](_0xc7f5x7[_0xccea[51]]);User[_0xccea[52]]({where:{id:{$in:_0xc7f5x7[_0xccea[51]][_0xccea[65]]}}})[_0xccea[43]](function(_0xc7f5x1b){var _0xc7f5x1c=_[_0xccea[63]](_0xc7f5x1b,function(_0xc7f5x1d){return {queue:_0xc7f5x7[_0xccea[48]][_0xccea[47]],location:util[_0xccea[21]](_0xccea[62],_0xc7f5x1d[_0xccea[9]]),membername:_0xc7f5x1d[_0xccea[9]],VoiceQueueName:_0xc7f5x7[_0xccea[48]][_0xccea[47]],UserId:_0xc7f5x1d[_0xccea[47]]}});UserHasVoiceQueue[_0xccea[64]](_0xc7f5x1c,{individualHooks:true})[_0xccea[43]](function(){return _0xc7f5x8[_0xccea[46]](200)})[_0xccea[30]](function(_0xc7f5x11){return _0xc7f5x1a(_0xc7f5x11)});})[_0xccea[30]](function(_0xc7f5x11){return _0xc7f5x1a(_0xc7f5x11)});};exports[_0xccea[66]]=function(_0xc7f5x7,_0xc7f5x8,_0xc7f5x1a){VoiceQueue[_0xccea[60]]({where:{name:_0xc7f5x7[_0xccea[48]][_0xccea[47]]}})[_0xccea[43]](function(_0xc7f5x18){if(_0xc7f5x18){_0xc7f5x18[_0xccea[67]](_0xc7f5x7[_0xccea[51]][_0xccea[65]],{individualHooks:true})[_0xccea[43]](function(){return _0xc7f5x8[_0xccea[46]](200)})[_0xccea[30]](function(_0xc7f5x11){return _0xc7f5x1a(_0xc7f5x11)})}else {return _0xc7f5x1a( new Error(_0xccea[68]))}})[_0xccea[30]](function(_0xc7f5x11){return _0xc7f5x1a(_0xc7f5x11)})};exports[_0xccea[69]]=function(_0xc7f5x7,_0xc7f5x8){VoiceQueue[_0xccea[60]]({where:{name:_0xc7f5x7[_0xccea[48]][_0xccea[9]]}})[_0xccea[43]](function(_0xc7f5x16){if(!_0xc7f5x16){return _0xc7f5x8[_0xccea[46]](404)};VoiceExtension[_0xccea[52]]({where:{queue:_0xc7f5x16[_0xccea[9]]}})[_0xccea[43]](function(_0xc7f5x1e){if(_0xc7f5x1e[_0xccea[55]]>0){return _0xc7f5x8[_0xccea[42]](500)[_0xccea[41]]({message:_0xccea[70]})};_0xc7f5x16[_0xccea[69]]()[_0xccea[43]](function(){return _0xc7f5x8[_0xccea[46]](204)})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)});})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)});})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)})};exports[_0xccea[71]]=function(_0xc7f5x7,_0xc7f5x8){VoiceQueue[_0xccea[52]]({where:{name:_0xc7f5x7[_0xccea[14]][_0xccea[9]]}})[_0xccea[43]](function(_0xc7f5x1f){if(!_0xc7f5x1f){return _0xc7f5x8[_0xccea[46]](404)};var _0xc7f5x20=_[_0xccea[73]](_[_0xccea[73]](_0xc7f5x1f,_0xccea[72]),_0xccea[9]);console[_0xccea[32]](_0xc7f5x20);VoiceExtension[_0xccea[52]]({where:{queue:_0xc7f5x20}})[_0xccea[43]](function(_0xc7f5x1e){if(_0xc7f5x1e[_0xccea[55]]>0){return _0xc7f5x8[_0xccea[42]](500)[_0xccea[41]]({message:_0xccea[70]})};VoiceQueue[_0xccea[69]]({where:{name:_0xc7f5x7[_0xccea[14]][_0xccea[9]]},individualHooks:true})[_0xccea[43]](function(){return _0xc7f5x8[_0xccea[46]](204)})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)});})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)});})[_0xccea[30]](function(_0xc7f5x11){return handleError(_0xc7f5x8,_0xc7f5x11)})};function handleError(_0xc7f5x8,_0xc7f5x11){return _0xc7f5x8[_0xccea[42]](500)[_0xccea[41]](_0xc7f5x11)}
\ No newline at end of file
+var _0xc2d9=["\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"];_0xc2d9[0];var _=require(_0xc2d9[1]);var util=require(_0xc2d9[2]);var Util=require(_0xc2d9[3]);var sequelize=require(_0xc2d9[5])[_0xc2d9[4]];var User=require(_0xc2d9[5])[_0xc2d9[6]];var VoiceQueue=require(_0xc2d9[5])[_0xc2d9[7]];var UserHasVoiceQueue=require(_0xc2d9[5])[_0xc2d9[8]];var VoiceExtension=require(_0xc2d9[5])[_0xc2d9[9]];exports[_0xc2d9[10]]=function(_0x9210x9,_0x9210xa){switch(_0x9210x9[_0xc2d9[18]][_0xc2d9[22]]){case _0xc2d9[18]:return User[_0xc2d9[19]](_0x9210x9[_0xc2d9[18]][_0xc2d9[17]],{attributes:[_0xc2d9[17]]})[_0xc2d9[14]](Util[_0xc2d9[16]](_0x9210x9[_0xc2d9[15]]))[_0xc2d9[14]](function(_0x9210xc){_0x9210xa[_0xc2d9[13]](200)[_0xc2d9[12]](_0x9210xc)})[_0xc2d9[11]](function(_0x9210xb){return handleError(_0x9210xa,_0x9210xb)});default:return VoiceQueue[_0xc2d9[21]](Util[_0xc2d9[20]](_0x9210x9[_0xc2d9[15]]))[_0xc2d9[14]](function(_0x9210xc){_0x9210xa[_0xc2d9[13]](200)[_0xc2d9[12]](_0x9210xc)})[_0xc2d9[11]](function(_0x9210xb){return handleError(_0x9210xa,_0x9210xb)})}};exports[_0xc2d9[23]]=function(_0x9210x9,_0x9210xa){return VoiceQueue[_0xc2d9[19]](_0x9210x9[_0xc2d9[26]][_0xc2d9[25]])[_0xc2d9[14]](function(_0x9210xd){if(!_0x9210xd){return _0x9210xa[_0xc2d9[24]](404)};return _0x9210xa[_0xc2d9[12]](_0x9210xd)})[_0xc2d9[11]](function(_0x9210xb){return handleError(_0x9210xa,_0x9210xb)})};exports[_0xc2d9[27]]=function(_0x9210x9,_0x9210xa){return VoiceQueue[_0xc2d9[19]](_0x9210x9[_0xc2d9[26]][_0xc2d9[25]])[_0xc2d9[14]](function(_0x9210xf){if(!_0x9210xf){return _0x9210xa[_0xc2d9[24]](404)};return _0x9210xf[_0xc2d9[32]]({where:{role:_0xc2d9[29]},attributes:[_0xc2d9[17],_0xc2d9[25],_0xc2d9[30],_0xc2d9[31]]})})[_0xc2d9[14]](function(_0x9210xe){return _0x9210xa[_0xc2d9[13]](200)[_0xc2d9[12]]({rows:_0x9210xe,count:_0x9210xe[_0xc2d9[28]]})})[_0xc2d9[11]](function(_0x9210xb){return handleError(_0x9210xa,_0x9210xb)})};exports[_0xc2d9[33]]=function(_0x9210x9,_0x9210xa){return VoiceQueue[_0xc2d9[33]](_0x9210x9[_0xc2d9[44]])[_0xc2d9[14]](function(_0x9210xd){return _0x9210xa[_0xc2d9[13]](201)[_0xc2d9[12]](_0x9210xd)})[_0xc2d9[11]](sequelize.UniqueConstraintError,function(_0x9210xb){var _0x9210x10=[];_0x9210xb[_0xc2d9[38]][_0xc2d9[37]](function(_0x9210x11){switch(_0x9210x11[_0xc2d9[36]]){case _0xc2d9[35]:_0x9210x10[_0xc2d9[34]](_0xc2d9[25]);break;default:_0x9210x10[_0xc2d9[34]](_0x9210x11[_0xc2d9[36]])}});_0x9210x10[_0xc2d9[34]](_0xc2d9[39]);_0x9210xb[_0xc2d9[40]]=_0x9210x10[_0xc2d9[41]]();_0x9210xb[_0xc2d9[42]]=_0xc2d9[43];return _0x9210xa[_0xc2d9[13]](500)[_0xc2d9[12]](_0x9210xb)})[_0xc2d9[11]](function(_0x9210xb){return handleError(_0x9210xa,_0x9210xb)})};exports[_0xc2d9[45]]=function(_0x9210x9,_0x9210xa){if(_0x9210x9[_0xc2d9[44]][_0xc2d9[25]]){delete _0x9210x9[_0xc2d9[44]][_0xc2d9[25]]};return VoiceQueue[_0xc2d9[19]](_0x9210x9[_0xc2d9[26]][_0xc2d9[25]])[_0xc2d9[14]](function(_0x9210xd){if(!_0x9210xd){return _0x9210xa[_0xc2d9[24]](404)};var _0x9210x12=_[_0xc2d9[47]](_0x9210xd,_0x9210x9[_0xc2d9[44]]);return _0x9210x12[_0xc2d9[48]]()})[_0xc2d9[14]](function(_0x9210xd){return _0x9210xa[_0xc2d9[13]](200)[_0xc2d9[12]](_0x9210xd)})[_0xc2d9[11]](function(_0x9210xb){console[_0xc2d9[46]](_0x9210xb);return handleError(_0x9210xa,_0x9210xb)})};exports[_0xc2d9[49]]=function(_0x9210x9,_0x9210xa,_0x9210x13){return User[_0xc2d9[56]]({where:{id:{$in:_0x9210x9[_0xc2d9[44]][_0xc2d9[55]]}}})[_0xc2d9[14]](function(_0x9210x14){var _0x9210x15=_[_0xc2d9[53]](_0x9210x14,function(_0x9210x16){return {queue:_0x9210x9[_0xc2d9[26]][_0xc2d9[25]],location:util[_0xc2d9[51]](_0xc2d9[50],_0x9210x16[_0xc2d9[25]]),membername:_0x9210x16[_0xc2d9[25]],UserId:_0x9210x16[_0xc2d9[17]],penalty:_0x9210x9[_0xc2d9[44]][_0xc2d9[52]]}});return UserHasVoiceQueue[_0xc2d9[54]](_0x9210x15,{individualHooks:true})})[_0xc2d9[14]](function(){return _0x9210xa[_0xc2d9[24]](200)})[_0xc2d9[11]](function(_0x9210xb){console[_0xc2d9[46]](_0x9210xb);return _0x9210x13(_0x9210xb)})};exports[_0xc2d9[57]]=function(_0x9210x9,_0x9210xa,_0x9210x13){return UserHasVoiceQueue[_0xc2d9[58]]({where:{UserId:_0x9210x9[_0xc2d9[15]][_0xc2d9[55]],queue:_0x9210x9[_0xc2d9[26]][_0xc2d9[25]]},individualHooks:true})[_0xc2d9[14]](function(){return _0x9210xa[_0xc2d9[24]](202)})[_0xc2d9[11]](function(_0x9210xb){return _0x9210x13(_0x9210xb)})};exports[_0xc2d9[58]]=function(_0x9210x9,_0x9210xa){return VoiceQueue[_0xc2d9[58]]({where:{name:_0x9210x9[_0xc2d9[26]][_0xc2d9[25]]},individualHooks:true})[_0xc2d9[14]](function(){return _0x9210xa[_0xc2d9[24]](204)})[_0xc2d9[11]](function(_0x9210xb){return handleError(_0x9210xa,_0x9210xb)})};exports[_0xc2d9[59]]=function(_0x9210x9,_0x9210xa){return VoiceQueue[_0xc2d9[58]]({where:{name:_0x9210x9[_0xc2d9[15]][_0xc2d9[60]]},individualHooks:true})[_0xc2d9[14]](function(){return _0x9210xa[_0xc2d9[24]](204)})[_0xc2d9[11]](function(_0x9210xb){return handleError(_0x9210xa,_0x9210xb)})};function handleError(_0x9210xa,_0x9210xb){return _0x9210xa[_0xc2d9[13]](500)[_0xc2d9[12]](_0x9210xb)}
\ No newline at end of file