Built motion from commit b6cf875.|1.0.15
[motion.git] / server / api / voice_queue / voice_queue.controller.js
index 05d8db4..096ffd5 100644 (file)
@@ -1 +1 @@
-var _0xae9f=["\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","\x6C\x6F\x67","\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","\x67\x65\x74\x52\x65\x61\x6C\x74\x69\x6D\x65\x51\x75\x65\x75\x65\x73","\x72\x6F\x77\x73","\x6E\x61\x6D\x65","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x6D\x65\x72\x67\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\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","\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","\x73\x61\x76\x65","\x53\x49\x50\x2F\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x70\x65\x6E\x61\x6C\x74\x79","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x67\x65\x6E\x74\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\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"];_0xae9f[0];var _=require(_0xae9f[1]);var util=require(_0xae9f[2]);var Util=require(_0xae9f[3]);var sequelize=require(_0xae9f[5])[_0xae9f[4]];var User=require(_0xae9f[5])[_0xae9f[6]];var VoiceQueue=require(_0xae9f[5])[_0xae9f[7]];var UserHasVoiceQueue=require(_0xae9f[5])[_0xae9f[8]];var VoiceExtension=require(_0xae9f[5])[_0xae9f[9]];exports[_0xae9f[10]]= function(_0x8c27x9,_0x8c27xa){switch(_0x8c27x9[_0xae9f[18]][_0xae9f[23]]){case _0xae9f[18]:return User[_0xae9f[19]](_0x8c27x9[_0xae9f[18]][_0xae9f[17]],{attributes:[_0xae9f[17]]})[_0xae9f[14]](Util[_0xae9f[16]](_0x8c27x9[_0xae9f[15]]))[_0xae9f[14]](function(_0x8c27xc){_0x8c27xa[_0xae9f[13]](200)[_0xae9f[12]](_0x8c27xc)})[_0xae9f[11]](function(_0x8c27xb){return handleError(_0x8c27xa,_0x8c27xb)});default:return VoiceQueue[_0xae9f[22]](Util[_0xae9f[21]](_0x8c27x9[_0xae9f[15]]))[_0xae9f[14]](function(_0x8c27xc){_0x8c27xa[_0xae9f[13]](200)[_0xae9f[12]](_0x8c27xc)})[_0xae9f[11]](function(_0x8c27xb){console[_0xae9f[20]](_0x8c27xb);return handleError(_0x8c27xa,_0x8c27xb)})}};exports[_0xae9f[24]]= function(_0x8c27x9,_0x8c27xa,_0x8c27xd){switch(_0x8c27x9[_0xae9f[18]][_0xae9f[23]]){case _0xae9f[18]:var _0x8c27xe=[];return User[_0xae9f[19]](_0x8c27x9[_0xae9f[18]][_0xae9f[17]],{attributes:[_0xae9f[17]]})[_0xae9f[14]](Util[_0xae9f[16]]({},{attributes:[_0xae9f[26]],include:[{raw:true,model:User,attributes:[_0xae9f[17]]}]}))[_0xae9f[14]](function(_0x8c27xf){var _0x8c27x10=_[_0xae9f[27]](_0x8c27xf[_0xae9f[25]],_0xae9f[26]);_0x8c27xf[_0xae9f[25]][_0xae9f[29]](function(_0x8c27x11){_0x8c27xe= _[_0xae9f[28]](_0x8c27xe,_[_0xae9f[27]](_0x8c27x11.Users,_0xae9f[17]))});return VoiceQueue[_0xae9f[22]](_[_0xae9f[30]](Util[_0xae9f[21]](_0x8c27x9[_0xae9f[15]],{name:_0x8c27x10}),{include:[{model:User,where:{id:_0x8c27xe},required:false}]}))})[_0xae9f[14]](function(_0x8c27xc){return _0x8c27xa[_0xae9f[13]](200)[_0xae9f[12]](_0x8c27xc)})[_0xae9f[11]](function(_0x8c27xb){console[_0xae9f[20]](_0x8c27xb);return handleError(_0x8c27xa,_0x8c27xb)});default:return VoiceQueue[_0xae9f[22]](_[_0xae9f[30]](Util[_0xae9f[21]](_0x8c27x9[_0xae9f[15]]),{include:[{model:User,required:false}]}))[_0xae9f[14]](function(_0x8c27xc){return _0x8c27xa[_0xae9f[13]](200)[_0xae9f[12]](_0x8c27xc)})[_0xae9f[11]](function(_0x8c27xb){console[_0xae9f[20]](_0x8c27xb);return handleError(_0x8c27xa,_0x8c27xb)})}};exports[_0xae9f[31]]= function(_0x8c27x9,_0x8c27xa){return VoiceQueue[_0xae9f[19]](_0x8c27x9[_0xae9f[33]][_0xae9f[26]])[_0xae9f[14]](function(_0x8c27x12){if(!_0x8c27x12){return _0x8c27xa[_0xae9f[32]](404)};return _0x8c27xa[_0xae9f[12]](_0x8c27x12)})[_0xae9f[11]](function(_0x8c27xb){return handleError(_0x8c27xa,_0x8c27xb)})};exports[_0xae9f[34]]= function(_0x8c27x9,_0x8c27xa){return VoiceQueue[_0xae9f[19]](_0x8c27x9[_0xae9f[33]][_0xae9f[26]])[_0xae9f[14]](function(_0x8c27x11){if(!_0x8c27x11){return _0x8c27xa[_0xae9f[32]](404)};return _0x8c27x11[_0xae9f[39]]({where:{role:_0xae9f[36]},attributes:[_0xae9f[17],_0xae9f[26],_0xae9f[37],_0xae9f[38]]})})[_0xae9f[14]](function(_0x8c27xe){return _0x8c27xa[_0xae9f[13]](200)[_0xae9f[12]]({rows:_0x8c27xe,count:_0x8c27xe[_0xae9f[35]]})})[_0xae9f[11]](function(_0x8c27xb){return handleError(_0x8c27xa,_0x8c27xb)})};exports[_0xae9f[40]]= function(_0x8c27x9,_0x8c27xa){var _0x8c27x13;return VoiceQueue[_0xae9f[40]](_0x8c27x9[_0xae9f[50]])[_0xae9f[14]](function(_0x8c27x12){_0x8c27x13= _0x8c27x12})[_0xae9f[14]](addAgents(_0x8c27x9,_0x8c27x9[_0xae9f[50]][_0xae9f[26]]))[_0xae9f[14]](function(){return _0x8c27xa[_0xae9f[13]](201)[_0xae9f[12]](_0x8c27x13)})[_0xae9f[11]](sequelize.UniqueConstraintError,function(_0x8c27xb){var _0x8c27x14=[];_0x8c27xb[_0xae9f[44]][_0xae9f[29]](function(_0x8c27x15){switch(_0x8c27x15[_0xae9f[43]]){case _0xae9f[42]:_0x8c27x14[_0xae9f[41]](_0xae9f[26]);break;default:_0x8c27x14[_0xae9f[41]](_0x8c27x15[_0xae9f[43]])}});_0x8c27x14[_0xae9f[41]](_0xae9f[45]);_0x8c27xb[_0xae9f[46]]= _0x8c27x14[_0xae9f[47]]();_0x8c27xb[_0xae9f[48]]= _0xae9f[49];return _0x8c27xa[_0xae9f[13]](500)[_0xae9f[12]](_0x8c27xb)})[_0xae9f[11]](function(_0x8c27xb){return handleError(_0x8c27xa,_0x8c27xb)})};exports[_0xae9f[51]]= function(_0x8c27x9,_0x8c27xa){if(_0x8c27x9[_0xae9f[50]][_0xae9f[26]]){delete _0x8c27x9[_0xae9f[50]][_0xae9f[26]]};return VoiceQueue[_0xae9f[19]](_0x8c27x9[_0xae9f[33]][_0xae9f[26]])[_0xae9f[14]](function(_0x8c27x12){if(!_0x8c27x12){return _0x8c27xa[_0xae9f[32]](404)};var _0x8c27x16=_[_0xae9f[30]](_0x8c27x12,_0x8c27x9[_0xae9f[50]]);return _0x8c27x16[_0xae9f[52]]()})[_0xae9f[14]](function(_0x8c27x12){return _0x8c27xa[_0xae9f[13]](200)[_0xae9f[12]](_0x8c27x12)})[_0xae9f[11]](function(_0x8c27xb){console[_0xae9f[20]](_0x8c27xb);return handleError(_0x8c27xa,_0x8c27xb)})};function addAgents(_0x8c27x9,_0x8c27x11){return function(){return User[_0xae9f[58]]({where:{id:_0x8c27x9[_0xae9f[50]][_0xae9f[57]]},raw:true})[_0xae9f[14]](function(_0x8c27x18){var _0x8c27x19=_[_0xae9f[27]](_0x8c27x18,function(_0x8c27x1a){return {queue:_0x8c27x11,interface:util[_0xae9f[54]](_0xae9f[53],_0x8c27x1a[_0xae9f[26]]),stateinterface:util[_0xae9f[54]](_0xae9f[53],_0x8c27x1a[_0xae9f[26]]),membername:_0x8c27x1a[_0xae9f[26]],UserId:_0x8c27x1a[_0xae9f[17]],penalty:_0x8c27x9[_0xae9f[50]][_0xae9f[55]]}});return UserHasVoiceQueue[_0xae9f[56]](_0x8c27x19,{individualHooks:true})})}}exports[_0xae9f[59]]= function(_0x8c27x9,_0x8c27xa,_0x8c27xd){return Promise[_0xae9f[60]]([])[_0xae9f[14]](addAgents(_0x8c27x9,_0x8c27x9[_0xae9f[33]][_0xae9f[26]]))[_0xae9f[14]](function(){return _0x8c27xa[_0xae9f[32]](200)})[_0xae9f[11]](function(_0x8c27xb){console[_0xae9f[20]](_0x8c27xb);return _0x8c27xd(_0x8c27xb)})};exports[_0xae9f[61]]= function(_0x8c27x9,_0x8c27xa,_0x8c27xd){return UserHasVoiceQueue[_0xae9f[62]]({where:{UserId:_0x8c27x9[_0xae9f[15]][_0xae9f[57]],queue:_0x8c27x9[_0xae9f[33]][_0xae9f[26]]},individualHooks:true})[_0xae9f[14]](function(){return _0x8c27xa[_0xae9f[32]](202)})[_0xae9f[11]](function(_0x8c27xb){return _0x8c27xd(_0x8c27xb)})};exports[_0xae9f[62]]= function(_0x8c27x9,_0x8c27xa){return VoiceQueue[_0xae9f[62]]({where:{name:_0x8c27x9[_0xae9f[33]][_0xae9f[26]]},individualHooks:true})[_0xae9f[14]](function(){return _0x8c27xa[_0xae9f[32]](204)})[_0xae9f[11]](function(_0x8c27xb){return handleError(_0x8c27xa,_0x8c27xb)})};exports[_0xae9f[63]]= function(_0x8c27x9,_0x8c27xa){return VoiceQueue[_0xae9f[62]]({where:{name:_0x8c27x9[_0xae9f[15]][_0xae9f[64]]},individualHooks:true})[_0xae9f[14]](function(){return _0x8c27xa[_0xae9f[32]](204)})[_0xae9f[11]](function(_0x8c27xb){return handleError(_0x8c27xa,_0x8c27xb)})};function handleError(_0x8c27xa,_0x8c27xb){return _0x8c27xa[_0xae9f[13]](500)[_0xae9f[12]](_0x8c27xb)}
\ No newline at end of file
+var _0x15f5=["\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","\x6C\x6F\x67","\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","\x67\x65\x74\x52\x65\x61\x6C\x74\x69\x6D\x65\x51\x75\x65\x75\x65\x73","\x72\x65\x61\x6C\x74\x69\x6D\x65\x51\x75\x65\x75\x65\x4D\x65\x6D\x62\x65\x72\x73","\x61\x6D\x69","\x6C\x6F\x63\x61\x6C\x73","\x61\x70\x70","\x72\x6F\x77\x73","\x6E\x61\x6D\x65","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x6D\x65\x72\x67\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\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","\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","\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","\x73\x61\x76\x65","\x53\x49\x50\x2F\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x70\x65\x6E\x61\x6C\x74\x79","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x67\x65\x6E\x74\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x61\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"];_0x15f5[0];var _=require(_0x15f5[1]);var util=require(_0x15f5[2]);var Util=require(_0x15f5[3]);var sequelize=require(_0x15f5[5])[_0x15f5[4]];var User=require(_0x15f5[5])[_0x15f5[6]];var VoiceQueue=require(_0x15f5[5])[_0x15f5[7]];var UserHasVoiceQueue=require(_0x15f5[5])[_0x15f5[8]];var VoiceExtension=require(_0x15f5[5])[_0x15f5[9]];exports[_0x15f5[10]]= function(_0x47edx9,_0x47edxa){switch(_0x47edx9[_0x15f5[18]][_0x15f5[23]]){case _0x15f5[18]:return User[_0x15f5[19]](_0x47edx9[_0x15f5[18]][_0x15f5[17]],{attributes:[_0x15f5[17]]})[_0x15f5[14]](Util[_0x15f5[16]](_0x47edx9[_0x15f5[15]]))[_0x15f5[14]](function(_0x47edxc){_0x47edxa[_0x15f5[13]](200)[_0x15f5[12]](_0x47edxc)})[_0x15f5[11]](function(_0x47edxb){return handleError(_0x47edxa,_0x47edxb)});default:return VoiceQueue[_0x15f5[22]](Util[_0x15f5[21]](_0x47edx9[_0x15f5[15]]))[_0x15f5[14]](function(_0x47edxc){_0x47edxa[_0x15f5[13]](200)[_0x15f5[12]](_0x47edxc)})[_0x15f5[11]](function(_0x47edxb){console[_0x15f5[20]](_0x47edxb);return handleError(_0x47edxa,_0x47edxb)})}};exports[_0x15f5[24]]= function(_0x47edx9,_0x47edxa,_0x47edxd){var _0x47edxe;switch(_0x47edx9[_0x15f5[18]][_0x15f5[23]]){case _0x15f5[18]:var _0x47edxf=[];return User[_0x15f5[19]](_0x47edx9[_0x15f5[18]][_0x15f5[17]],{attributes:[_0x15f5[17]]})[_0x15f5[14]](Util[_0x15f5[16]]({},{attributes:[_0x15f5[30]],include:[{raw:true,model:User,attributes:[_0x15f5[17]]}]}))[_0x15f5[14]](function(_0x47edx10){_0x47edxe= _[_0x15f5[31]](_0x47edx10[_0x15f5[29]],_0x15f5[30]);_0x47edx10[_0x15f5[29]][_0x15f5[33]](function(_0x47edx11){_0x47edxf= _[_0x15f5[32]](_0x47edxf,_[_0x15f5[31]](_0x47edx11.Users,_0x15f5[17]))});return VoiceQueue[_0x15f5[22]](_[_0x15f5[34]](Util[_0x15f5[21]](_0x47edx9[_0x15f5[15]],{name:_0x47edxe}),{include:[{model:User,where:{id:_0x47edxf},required:false}]}))})[_0x15f5[14]](function(_0x47edxc){_0x47edx9[_0x15f5[28]][_0x15f5[27]][_0x15f5[26]][_0x15f5[12]]({message:_0x15f5[25],queues:_0x47edxe});return _0x47edxa[_0x15f5[13]](200)[_0x15f5[12]](_0x47edxc)})[_0x15f5[11]](function(_0x47edxb){console[_0x15f5[20]](_0x47edxb);return handleError(_0x47edxa,_0x47edxb)});default:return VoiceQueue[_0x15f5[22]](_[_0x15f5[34]](Util[_0x15f5[21]](_0x47edx9[_0x15f5[15]]),{include:[{model:User,required:false}]}))[_0x15f5[14]](function(_0x47edxc){_0x47edxe= _[_0x15f5[31]](_0x47edxc[_0x15f5[29]],_0x15f5[30]);_0x47edx9[_0x15f5[28]][_0x15f5[27]][_0x15f5[26]][_0x15f5[12]]({message:_0x15f5[25],queues:_0x47edxe});return _0x47edxa[_0x15f5[13]](200)[_0x15f5[12]](_0x47edxc)})[_0x15f5[11]](function(_0x47edxb){console[_0x15f5[20]](_0x47edxb);return handleError(_0x47edxa,_0x47edxb)})}};exports[_0x15f5[35]]= function(_0x47edx9,_0x47edxa){return VoiceQueue[_0x15f5[19]](_0x47edx9[_0x15f5[37]][_0x15f5[30]])[_0x15f5[14]](function(_0x47edx12){if(!_0x47edx12){return _0x47edxa[_0x15f5[36]](404)};return _0x47edxa[_0x15f5[12]](_0x47edx12)})[_0x15f5[11]](function(_0x47edxb){return handleError(_0x47edxa,_0x47edxb)})};exports[_0x15f5[38]]= function(_0x47edx9,_0x47edxa){return VoiceQueue[_0x15f5[19]](_0x47edx9[_0x15f5[37]][_0x15f5[30]])[_0x15f5[14]](function(_0x47edx11){if(!_0x47edx11){return _0x47edxa[_0x15f5[36]](404)};return _0x47edx11[_0x15f5[41]]({where:{role:_0x15f5[40]}})})[_0x15f5[14]](function(_0x47edxf){return _0x47edxa[_0x15f5[13]](200)[_0x15f5[12]]({rows:_0x47edxf,count:_0x47edxf[_0x15f5[39]]})})[_0x15f5[11]](function(_0x47edxb){return handleError(_0x47edxa,_0x47edxb)})};exports[_0x15f5[42]]= function(_0x47edx9,_0x47edxa){var _0x47edx13;return VoiceQueue[_0x15f5[42]](_0x47edx9[_0x15f5[52]])[_0x15f5[14]](function(_0x47edx12){_0x47edx13= _0x47edx12})[_0x15f5[14]](addAgents(_0x47edx9,_0x47edx9[_0x15f5[52]][_0x15f5[30]]))[_0x15f5[14]](function(){return _0x47edxa[_0x15f5[13]](201)[_0x15f5[12]](_0x47edx13)})[_0x15f5[11]](sequelize.UniqueConstraintError,function(_0x47edxb){var _0x47edx14=[];_0x47edxb[_0x15f5[46]][_0x15f5[33]](function(_0x47edx15){switch(_0x47edx15[_0x15f5[45]]){case _0x15f5[44]:_0x47edx14[_0x15f5[43]](_0x15f5[30]);break;default:_0x47edx14[_0x15f5[43]](_0x47edx15[_0x15f5[45]])}});_0x47edx14[_0x15f5[43]](_0x15f5[47]);_0x47edxb[_0x15f5[48]]= _0x47edx14[_0x15f5[49]]();_0x47edxb[_0x15f5[50]]= _0x15f5[51];return _0x47edxa[_0x15f5[13]](500)[_0x15f5[12]](_0x47edxb)})[_0x15f5[11]](function(_0x47edxb){return handleError(_0x47edxa,_0x47edxb)})};exports[_0x15f5[53]]= function(_0x47edx9,_0x47edxa){if(_0x47edx9[_0x15f5[52]][_0x15f5[30]]){delete _0x47edx9[_0x15f5[52]][_0x15f5[30]]};return VoiceQueue[_0x15f5[19]](_0x47edx9[_0x15f5[37]][_0x15f5[30]])[_0x15f5[14]](function(_0x47edx12){if(!_0x47edx12){return _0x47edxa[_0x15f5[36]](404)};var _0x47edx16=_[_0x15f5[34]](_0x47edx12,_0x47edx9[_0x15f5[52]]);return _0x47edx16[_0x15f5[54]]()})[_0x15f5[14]](function(_0x47edx12){return _0x47edxa[_0x15f5[13]](200)[_0x15f5[12]](_0x47edx12)})[_0x15f5[11]](function(_0x47edxb){console[_0x15f5[20]](_0x47edxb);return handleError(_0x47edxa,_0x47edxb)})};function addAgents(_0x47edx9,_0x47edx11){return function(){return User[_0x15f5[60]]({where:{id:_0x47edx9[_0x15f5[52]][_0x15f5[59]]},raw:true})[_0x15f5[14]](function(_0x47edx18){var _0x47edx19=_[_0x15f5[31]](_0x47edx18,function(_0x47edx1a){return {queue:_0x47edx11,interface:util[_0x15f5[56]](_0x15f5[55],_0x47edx1a[_0x15f5[30]]),stateinterface:util[_0x15f5[56]](_0x15f5[55],_0x47edx1a[_0x15f5[30]]),membername:_0x47edx1a[_0x15f5[30]],UserId:_0x47edx1a[_0x15f5[17]],penalty:_0x47edx9[_0x15f5[52]][_0x15f5[57]]}});return UserHasVoiceQueue[_0x15f5[58]](_0x47edx19,{individualHooks:true})})}}exports[_0x15f5[61]]= function(_0x47edx9,_0x47edxa,_0x47edxd){return Promise[_0x15f5[62]]([])[_0x15f5[14]](addAgents(_0x47edx9,_0x47edx9[_0x15f5[37]][_0x15f5[30]]))[_0x15f5[14]](function(){return _0x47edxa[_0x15f5[36]](200)})[_0x15f5[11]](function(_0x47edxb){console[_0x15f5[20]](_0x47edxb);return _0x47edxd(_0x47edxb)})};exports[_0x15f5[63]]= function(_0x47edx9,_0x47edxa,_0x47edxd){return UserHasVoiceQueue[_0x15f5[64]]({where:{UserId:_0x47edx9[_0x15f5[15]][_0x15f5[59]],queue:_0x47edx9[_0x15f5[37]][_0x15f5[30]]},individualHooks:true})[_0x15f5[14]](function(){return _0x47edxa[_0x15f5[36]](202)})[_0x15f5[11]](function(_0x47edxb){return _0x47edxd(_0x47edxb)})};exports[_0x15f5[64]]= function(_0x47edx9,_0x47edxa){return VoiceQueue[_0x15f5[64]]({where:{name:_0x47edx9[_0x15f5[37]][_0x15f5[30]]},individualHooks:true})[_0x15f5[14]](function(){return _0x47edxa[_0x15f5[36]](204)})[_0x15f5[11]](function(_0x47edxb){return handleError(_0x47edxa,_0x47edxb)})};exports[_0x15f5[65]]= function(_0x47edx9,_0x47edxa){return VoiceQueue[_0x15f5[64]]({where:{name:_0x47edx9[_0x15f5[15]][_0x15f5[66]]},individualHooks:true})[_0x15f5[14]](function(){return _0x47edxa[_0x15f5[36]](204)})[_0x15f5[11]](function(_0x47edxb){return handleError(_0x47edxa,_0x47edxb)})};function handleError(_0x47edxa,_0x47edxb){return _0x47edxa[_0x15f5[13]](500)[_0x15f5[12]](_0x47edxb)}
\ No newline at end of file