Built motion from commit 3594e56.|0.0.120
[motion.git] / server / api / voice_queue / voice_queue.controller.js
index c2a60fd..9a5125e 100644 (file)
@@ -1 +1 @@
-var _0x26a1=["\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"];_0x26a1[0];var _=require(_0x26a1[1]);var util=require(_0x26a1[2]);var User=require(_0x26a1[4])[_0x26a1[3]];var VoiceQueue=require(_0x26a1[4])[_0x26a1[5]];var UserHasVoiceQueue=require(_0x26a1[4])[_0x26a1[6]];var VoiceExtension=require(_0x26a1[4])[_0x26a1[7]];exports[_0x26a1[8]]=function(_0x5bf9x7,_0x5bf9x8){var _0x5bf9x9=[_0x26a1[9],_0x26a1[10],_0x26a1[11],_0x26a1[12]];var _0x5bf9xa=_0x5bf9x7[_0x26a1[14]][_0x26a1[13]]?parseInt(_0x5bf9x7[_0x26a1[14]][_0x26a1[13]],10):100;var _0x5bf9xb=_0x5bf9x7[_0x26a1[14]][_0x26a1[15]]?parseInt(_0x5bf9x7[_0x26a1[14]][_0x26a1[15]],10):0;var _0x5bf9xc={where:{},limit:_0x5bf9xa,offset:_0x5bf9xb*_0x5bf9xa};_[_0x26a1[29]](_0x5bf9x7[_0x26a1[14]],function(_0x5bf9xd,_0x5bf9xe){switch(_0x5bf9xe){case _0x26a1[13]:;case _0x26a1[15]:break ;;case _0x26a1[18]:_0x5bf9xc[_0x26a1[16]]=util[_0x26a1[21]](_0x26a1[17],_0x5bf9x7[_0x26a1[14]][_0x26a1[18]],_0x5bf9x7[_0x26a1[14]][_0x26a1[19]]||_0x26a1[20])||null;break ;;case _0x26a1[19]:break ;;case _0x26a1[27]:_0x5bf9xc[_0x26a1[23]][_0x26a1[22]]=[];_0x5bf9x9[_0x26a1[26]](function(_0x5bf9xf){var _0x5bf9x10={};_0x5bf9x10[_0x5bf9xf]={$like:_0x26a1[24]+_0x5bf9xd+_0x26a1[24]};_0x5bf9xc[_0x26a1[23]][_0x26a1[22]][_0x26a1[25]](_0x5bf9x10);});break ;;default:_0x5bf9xc[_0x26a1[23]][_0x5bf9xe]={$like:{}};_0x5bf9xc[_0x26a1[23]][_0x5bf9xe][_0x26a1[28]]=_0x26a1[24]+_0x5bf9xd+_0x26a1[24];;}});VoiceQueue[_0x26a1[44]](_0x5bf9xc)[_0x26a1[43]](function(_0x5bf9x12){console[_0x26a1[32]](_0x5bf9x12[_0x26a1[31]]);var _0x5bf9x13=Math[_0x26a1[33]](_0x5bf9x12[_0x26a1[31]]/_0x5bf9xa);console[_0x26a1[32]](_0x5bf9x13);var _0x5bf9x14=_0x5bf9x13>(_0x5bf9xc[_0x26a1[34]]+1)?util[_0x26a1[21]](_0x26a1[35],_0x5bf9x7[_0x26a1[36]],_0x5bf9x7[_0x26a1[38]][_0x26a1[37]],_0x5bf9x7[_0x26a1[39]],_0x5bf9xb+1):null;var _0x5bf9x15=_0x5bf9xb>0?util[_0x26a1[21]](_0x26a1[35],_0x5bf9x7[_0x26a1[36]],_0x5bf9x7[_0x26a1[38]][_0x26a1[37]],_0x5bf9x7[_0x26a1[39]],_0x5bf9xb-1):null;_0x5bf9x8[_0x26a1[42]](200)[_0x26a1[41]]({count:_0x5bf9x12[_0x26a1[31]],rows:_0x5bf9x12[_0x26a1[40]],next_page:_0x5bf9x14,previous_page:_0x5bf9x15,total_pages:_0x5bf9x13});})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)});};exports[_0x26a1[45]]=function(_0x5bf9x7,_0x5bf9x8){VoiceQueue[_0x26a1[49]](_0x5bf9x7[_0x26a1[48]][_0x26a1[47]])[_0x26a1[43]](function(_0x5bf9x16){if(!_0x5bf9x16){return _0x5bf9x8[_0x26a1[46]](404)};return _0x5bf9x8[_0x26a1[41]](_0x5bf9x16);})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)})};exports[_0x26a1[50]]=function(_0x5bf9x7,_0x5bf9x8){console[_0x26a1[32]](_0x5bf9x7[_0x26a1[51]]);VoiceQueue[_0x26a1[52]]({where:{name:_0x5bf9x7[_0x26a1[51]][_0x26a1[9]]}})[_0x26a1[43]](function(_0x5bf9x16){if(!_0x5bf9x16){return _0x5bf9x8[_0x26a1[46]](404)};return _0x5bf9x8[_0x26a1[41]](_0x5bf9x16);})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)});};exports[_0x26a1[53]]=function(_0x5bf9x7,_0x5bf9x8){VoiceQueue[_0x26a1[52]]({where:{name:_0x5bf9x7[_0x26a1[51]][_0x26a1[9]]}})[_0x26a1[43]](function(_0x5bf9x17){console[_0x26a1[32]](_0x5bf9x17);console[_0x26a1[32]](_0x26a1[54]);if(!_0x5bf9x17){return _0x5bf9x8[_0x26a1[46]](404)};if(_0x5bf9x17[_0x26a1[55]]>0){return _0x5bf9x8[_0x26a1[42]](500)[_0x26a1[41]]({message:_0x26a1[56]})};VoiceQueue[_0x26a1[53]](_0x5bf9x7[_0x26a1[51]])[_0x26a1[43]](function(_0x5bf9x16){return _0x5bf9x8[_0x26a1[42]](201)[_0x26a1[41]](_0x5bf9x16)})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)});})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)})};exports[_0x26a1[57]]=function(_0x5bf9x7,_0x5bf9x8){VoiceQueue[_0x26a1[60]]({where:{name:_0x5bf9x7[_0x26a1[48]][_0x26a1[47]]}})[_0x26a1[43]](function(_0x5bf9x18){if(!_0x5bf9x18){return _0x5bf9x8[_0x26a1[46]](404)};if(_0x5bf9x7[_0x26a1[51]][_0x26a1[47]]){delete _0x5bf9x7[_0x26a1[51]][_0x26a1[47]]};var _0x5bf9x19=_[_0x26a1[58]](_0x5bf9x18,_0x5bf9x7[_0x26a1[51]]);_0x5bf9x19[_0x26a1[59]]()[_0x26a1[43]](function(){return _0x5bf9x8[_0x26a1[42]](200)[_0x26a1[41]](_0x5bf9x18)})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)});})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)})};exports[_0x26a1[61]]=function(_0x5bf9x7,_0x5bf9x8,_0x5bf9x1a){console[_0x26a1[32]](_0x26a1[61]);console[_0x26a1[32]](_0x5bf9x7[_0x26a1[48]]);console[_0x26a1[32]](_0x5bf9x7[_0x26a1[51]]);User[_0x26a1[52]]({where:{id:{$in:_0x5bf9x7[_0x26a1[51]][_0x26a1[65]]}}})[_0x26a1[43]](function(_0x5bf9x1b){var _0x5bf9x1c=_[_0x26a1[63]](_0x5bf9x1b,function(_0x5bf9x1d){return {queue:_0x5bf9x7[_0x26a1[48]][_0x26a1[47]],location:util[_0x26a1[21]](_0x26a1[62],_0x5bf9x1d[_0x26a1[9]]),membername:_0x5bf9x1d[_0x26a1[9]],VoiceQueueName:_0x5bf9x7[_0x26a1[48]][_0x26a1[47]],UserId:_0x5bf9x1d[_0x26a1[47]]}});UserHasVoiceQueue[_0x26a1[64]](_0x5bf9x1c,{individualHooks:true})[_0x26a1[43]](function(){return _0x5bf9x8[_0x26a1[46]](200)})[_0x26a1[30]](function(_0x5bf9x11){return _0x5bf9x1a(_0x5bf9x11)});})[_0x26a1[30]](function(_0x5bf9x11){return _0x5bf9x1a(_0x5bf9x11)});};exports[_0x26a1[66]]=function(_0x5bf9x7,_0x5bf9x8,_0x5bf9x1a){VoiceQueue[_0x26a1[60]]({where:{name:_0x5bf9x7[_0x26a1[48]][_0x26a1[47]]}})[_0x26a1[43]](function(_0x5bf9x18){if(_0x5bf9x18){_0x5bf9x18[_0x26a1[67]](_0x5bf9x7[_0x26a1[51]][_0x26a1[65]],{individualHooks:true})[_0x26a1[43]](function(){return _0x5bf9x8[_0x26a1[46]](200)})[_0x26a1[30]](function(_0x5bf9x11){return _0x5bf9x1a(_0x5bf9x11)})}else {return _0x5bf9x1a( new Error(_0x26a1[68]))}})[_0x26a1[30]](function(_0x5bf9x11){return _0x5bf9x1a(_0x5bf9x11)})};exports[_0x26a1[69]]=function(_0x5bf9x7,_0x5bf9x8){VoiceQueue[_0x26a1[60]]({where:{name:_0x5bf9x7[_0x26a1[48]][_0x26a1[9]]}})[_0x26a1[43]](function(_0x5bf9x16){if(!_0x5bf9x16){return _0x5bf9x8[_0x26a1[46]](404)};VoiceExtension[_0x26a1[52]]({where:{queue:_0x5bf9x16[_0x26a1[9]]}})[_0x26a1[43]](function(_0x5bf9x1e){if(_0x5bf9x1e[_0x26a1[55]]>0){return _0x5bf9x8[_0x26a1[42]](500)[_0x26a1[41]]({message:_0x26a1[70]})};_0x5bf9x16[_0x26a1[69]]()[_0x26a1[43]](function(){return _0x5bf9x8[_0x26a1[46]](204)})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)});})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)});})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)})};exports[_0x26a1[71]]=function(_0x5bf9x7,_0x5bf9x8){VoiceQueue[_0x26a1[52]]({where:{name:_0x5bf9x7[_0x26a1[14]][_0x26a1[9]]}})[_0x26a1[43]](function(_0x5bf9x1f){if(!_0x5bf9x1f){return _0x5bf9x8[_0x26a1[46]](404)};var _0x5bf9x20=_[_0x26a1[73]](_[_0x26a1[73]](_0x5bf9x1f,_0x26a1[72]),_0x26a1[9]);console[_0x26a1[32]](_0x5bf9x20);VoiceExtension[_0x26a1[52]]({where:{queue:_0x5bf9x20}})[_0x26a1[43]](function(_0x5bf9x1e){if(_0x5bf9x1e[_0x26a1[55]]>0){return _0x5bf9x8[_0x26a1[42]](500)[_0x26a1[41]]({message:_0x26a1[70]})};VoiceQueue[_0x26a1[69]]({where:{name:_0x5bf9x7[_0x26a1[14]][_0x26a1[9]]},individualHooks:true})[_0x26a1[43]](function(){return _0x5bf9x8[_0x26a1[46]](204)})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)});})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)});})[_0x26a1[30]](function(_0x5bf9x11){return handleError(_0x5bf9x8,_0x5bf9x11)})};function handleError(_0x5bf9x8,_0x5bf9x11){return _0x5bf9x8[_0x26a1[42]](500)[_0x26a1[41]](_0x5bf9x11)}
\ No newline at end of file
+var _0x7161=["\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"];_0x7161[0];var _=require(_0x7161[1]);var util=require(_0x7161[2]);var Util=require(_0x7161[3]);var sequelize=require(_0x7161[5])[_0x7161[4]];var User=require(_0x7161[5])[_0x7161[6]];var VoiceQueue=require(_0x7161[5])[_0x7161[7]];var UserHasVoiceQueue=require(_0x7161[5])[_0x7161[8]];var VoiceExtension=require(_0x7161[5])[_0x7161[9]];exports[_0x7161[10]]= function(_0x4095x9,_0x4095xa){switch(_0x4095x9[_0x7161[18]][_0x7161[22]]){case _0x7161[18]:return User[_0x7161[19]](_0x4095x9[_0x7161[18]][_0x7161[17]],{attributes:[_0x7161[17]]})[_0x7161[14]](Util[_0x7161[16]](_0x4095x9[_0x7161[15]]))[_0x7161[14]](function(_0x4095xc){_0x4095xa[_0x7161[13]](200)[_0x7161[12]](_0x4095xc)})[_0x7161[11]](function(_0x4095xb){return handleError(_0x4095xa,_0x4095xb)});default:return VoiceQueue[_0x7161[21]](Util[_0x7161[20]](_0x4095x9[_0x7161[15]]))[_0x7161[14]](function(_0x4095xc){_0x4095xa[_0x7161[13]](200)[_0x7161[12]](_0x4095xc)})[_0x7161[11]](function(_0x4095xb){return handleError(_0x4095xa,_0x4095xb)})}};exports[_0x7161[23]]= function(_0x4095x9,_0x4095xa){return VoiceQueue[_0x7161[19]](_0x4095x9[_0x7161[26]][_0x7161[25]])[_0x7161[14]](function(_0x4095xd){if(!_0x4095xd){return _0x4095xa[_0x7161[24]](404)};return _0x4095xa[_0x7161[12]](_0x4095xd)})[_0x7161[11]](function(_0x4095xb){return handleError(_0x4095xa,_0x4095xb)})};exports[_0x7161[27]]= function(_0x4095x9,_0x4095xa){return VoiceQueue[_0x7161[19]](_0x4095x9[_0x7161[26]][_0x7161[25]])[_0x7161[14]](function(_0x4095xf){if(!_0x4095xf){return _0x4095xa[_0x7161[24]](404)};return _0x4095xf[_0x7161[32]]({where:{role:_0x7161[29]},attributes:[_0x7161[17],_0x7161[25],_0x7161[30],_0x7161[31]]})})[_0x7161[14]](function(_0x4095xe){return _0x4095xa[_0x7161[13]](200)[_0x7161[12]]({rows:_0x4095xe,count:_0x4095xe[_0x7161[28]]})})[_0x7161[11]](function(_0x4095xb){return handleError(_0x4095xa,_0x4095xb)})};exports[_0x7161[33]]= function(_0x4095x9,_0x4095xa){return VoiceQueue[_0x7161[33]](_0x4095x9[_0x7161[44]])[_0x7161[14]](function(_0x4095xd){return _0x4095xa[_0x7161[13]](201)[_0x7161[12]](_0x4095xd)})[_0x7161[11]](sequelize.UniqueConstraintError,function(_0x4095xb){var _0x4095x10=[];_0x4095xb[_0x7161[38]][_0x7161[37]](function(_0x4095x11){switch(_0x4095x11[_0x7161[36]]){case _0x7161[35]:_0x4095x10[_0x7161[34]](_0x7161[25]);break;default:_0x4095x10[_0x7161[34]](_0x4095x11[_0x7161[36]])}});_0x4095x10[_0x7161[34]](_0x7161[39]);_0x4095xb[_0x7161[40]]= _0x4095x10[_0x7161[41]]();_0x4095xb[_0x7161[42]]= _0x7161[43];return _0x4095xa[_0x7161[13]](500)[_0x7161[12]](_0x4095xb)})[_0x7161[11]](function(_0x4095xb){return handleError(_0x4095xa,_0x4095xb)})};exports[_0x7161[45]]= function(_0x4095x9,_0x4095xa){if(_0x4095x9[_0x7161[44]][_0x7161[25]]){delete _0x4095x9[_0x7161[44]][_0x7161[25]]};return VoiceQueue[_0x7161[19]](_0x4095x9[_0x7161[26]][_0x7161[25]])[_0x7161[14]](function(_0x4095xd){if(!_0x4095xd){return _0x4095xa[_0x7161[24]](404)};var _0x4095x12=_[_0x7161[47]](_0x4095xd,_0x4095x9[_0x7161[44]]);return _0x4095x12[_0x7161[48]]()})[_0x7161[14]](function(_0x4095xd){return _0x4095xa[_0x7161[13]](200)[_0x7161[12]](_0x4095xd)})[_0x7161[11]](function(_0x4095xb){console[_0x7161[46]](_0x4095xb);return handleError(_0x4095xa,_0x4095xb)})};exports[_0x7161[49]]= function(_0x4095x9,_0x4095xa,_0x4095x13){return User[_0x7161[56]]({where:{id:{$in:_0x4095x9[_0x7161[44]][_0x7161[55]]}}})[_0x7161[14]](function(_0x4095x14){var _0x4095x15=_[_0x7161[53]](_0x4095x14,function(_0x4095x16){return {queue:_0x4095x9[_0x7161[26]][_0x7161[25]],location:util[_0x7161[51]](_0x7161[50],_0x4095x16[_0x7161[25]]),membername:_0x4095x16[_0x7161[25]],UserId:_0x4095x16[_0x7161[17]],penalty:_0x4095x9[_0x7161[44]][_0x7161[52]]}});return UserHasVoiceQueue[_0x7161[54]](_0x4095x15,{individualHooks:true})})[_0x7161[14]](function(){return _0x4095xa[_0x7161[24]](200)})[_0x7161[11]](function(_0x4095xb){console[_0x7161[46]](_0x4095xb);return _0x4095x13(_0x4095xb)})};exports[_0x7161[57]]= function(_0x4095x9,_0x4095xa,_0x4095x13){return UserHasVoiceQueue[_0x7161[58]]({where:{UserId:_0x4095x9[_0x7161[15]][_0x7161[55]],queue:_0x4095x9[_0x7161[26]][_0x7161[25]]},individualHooks:true})[_0x7161[14]](function(){return _0x4095xa[_0x7161[24]](202)})[_0x7161[11]](function(_0x4095xb){return _0x4095x13(_0x4095xb)})};exports[_0x7161[58]]= function(_0x4095x9,_0x4095xa){return VoiceQueue[_0x7161[58]]({where:{name:_0x4095x9[_0x7161[26]][_0x7161[25]]},individualHooks:true})[_0x7161[14]](function(){return _0x4095xa[_0x7161[24]](204)})[_0x7161[11]](function(_0x4095xb){return handleError(_0x4095xa,_0x4095xb)})};exports[_0x7161[59]]= function(_0x4095x9,_0x4095xa){return VoiceQueue[_0x7161[58]]({where:{name:_0x4095x9[_0x7161[15]][_0x7161[60]]},individualHooks:true})[_0x7161[14]](function(){return _0x4095xa[_0x7161[24]](204)})[_0x7161[11]](function(_0x4095xb){return handleError(_0x4095xa,_0x4095xb)})};function handleError(_0x4095xa,_0x4095xb){return _0x4095xa[_0x7161[13]](500)[_0x7161[12]](_0x4095xb)}
\ No newline at end of file