1 var _0xb63c=["\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"];_0xb63c[0];var _=require(_0xb63c[1]);var util=require(_0xb63c[2]);var Util=require(_0xb63c[3]);var sequelize=require(_0xb63c[5])[_0xb63c[4]];var User=require(_0xb63c[5])[_0xb63c[6]];var VoiceQueue=require(_0xb63c[5])[_0xb63c[7]];var UserHasVoiceQueue=require(_0xb63c[5])[_0xb63c[8]];var VoiceExtension=require(_0xb63c[5])[_0xb63c[9]];exports[_0xb63c[10]]=function(_0xccf8x9,_0xccf8xa){switch(_0xccf8x9[_0xb63c[18]][_0xb63c[22]]){case _0xb63c[18]:return User[_0xb63c[19]](_0xccf8x9[_0xb63c[18]][_0xb63c[17]],{attributes:[_0xb63c[17]]})[_0xb63c[14]](Util[_0xb63c[16]](_0xccf8x9[_0xb63c[15]]))[_0xb63c[14]](function(_0xccf8xc){_0xccf8xa[_0xb63c[13]](200)[_0xb63c[12]](_0xccf8xc)})[_0xb63c[11]](function(_0xccf8xb){return handleError(_0xccf8xa,_0xccf8xb)});default:return VoiceQueue[_0xb63c[21]](Util[_0xb63c[20]](_0xccf8x9[_0xb63c[15]]))[_0xb63c[14]](function(_0xccf8xc){_0xccf8xa[_0xb63c[13]](200)[_0xb63c[12]](_0xccf8xc)})[_0xb63c[11]](function(_0xccf8xb){return handleError(_0xccf8xa,_0xccf8xb)})}};exports[_0xb63c[23]]=function(_0xccf8x9,_0xccf8xa){return VoiceQueue[_0xb63c[19]](_0xccf8x9[_0xb63c[26]][_0xb63c[25]])[_0xb63c[14]](function(_0xccf8xd){if(!_0xccf8xd){return _0xccf8xa[_0xb63c[24]](404)};return _0xccf8xa[_0xb63c[12]](_0xccf8xd)})[_0xb63c[11]](function(_0xccf8xb){return handleError(_0xccf8xa,_0xccf8xb)})};exports[_0xb63c[27]]=function(_0xccf8x9,_0xccf8xa){return VoiceQueue[_0xb63c[19]](_0xccf8x9[_0xb63c[26]][_0xb63c[25]])[_0xb63c[14]](function(_0xccf8xf){if(!_0xccf8xf){return _0xccf8xa[_0xb63c[24]](404)};return _0xccf8xf[_0xb63c[32]]({where:{role:_0xb63c[29]},attributes:[_0xb63c[17],_0xb63c[25],_0xb63c[30],_0xb63c[31]]})})[_0xb63c[14]](function(_0xccf8xe){return _0xccf8xa[_0xb63c[13]](200)[_0xb63c[12]]({rows:_0xccf8xe,count:_0xccf8xe[_0xb63c[28]]})})[_0xb63c[11]](function(_0xccf8xb){return handleError(_0xccf8xa,_0xccf8xb)})};exports[_0xb63c[33]]=function(_0xccf8x9,_0xccf8xa){return VoiceQueue[_0xb63c[33]](_0xccf8x9[_0xb63c[44]])[_0xb63c[14]](function(_0xccf8xd){return _0xccf8xa[_0xb63c[13]](201)[_0xb63c[12]](_0xccf8xd)})[_0xb63c[11]](sequelize.UniqueConstraintError,function(_0xccf8xb){var _0xccf8x10=[];_0xccf8xb[_0xb63c[38]][_0xb63c[37]](function(_0xccf8x11){switch(_0xccf8x11[_0xb63c[36]]){case _0xb63c[35]:_0xccf8x10[_0xb63c[34]](_0xb63c[25]);break;default:_0xccf8x10[_0xb63c[34]](_0xccf8x11[_0xb63c[36]])}});_0xccf8x10[_0xb63c[34]](_0xb63c[39]);_0xccf8xb[_0xb63c[40]]=_0xccf8x10[_0xb63c[41]]();_0xccf8xb[_0xb63c[42]]=_0xb63c[43];return _0xccf8xa[_0xb63c[13]](500)[_0xb63c[12]](_0xccf8xb)})[_0xb63c[11]](function(_0xccf8xb){return handleError(_0xccf8xa,_0xccf8xb)})};exports[_0xb63c[45]]=function(_0xccf8x9,_0xccf8xa){if(_0xccf8x9[_0xb63c[44]][_0xb63c[25]]){delete _0xccf8x9[_0xb63c[44]][_0xb63c[25]]};return VoiceQueue[_0xb63c[19]](_0xccf8x9[_0xb63c[26]][_0xb63c[25]])[_0xb63c[14]](function(_0xccf8xd){if(!_0xccf8xd){return _0xccf8xa[_0xb63c[24]](404)};var _0xccf8x12=_[_0xb63c[47]](_0xccf8xd,_0xccf8x9[_0xb63c[44]]);return _0xccf8x12[_0xb63c[48]]()})[_0xb63c[14]](function(_0xccf8xd){return _0xccf8xa[_0xb63c[13]](200)[_0xb63c[12]](_0xccf8xd)})[_0xb63c[11]](function(_0xccf8xb){console[_0xb63c[46]](_0xccf8xb);return handleError(_0xccf8xa,_0xccf8xb)})};exports[_0xb63c[49]]=function(_0xccf8x9,_0xccf8xa,_0xccf8x13){return User[_0xb63c[56]]({where:{id:{$in:_0xccf8x9[_0xb63c[44]][_0xb63c[55]]}}})[_0xb63c[14]](function(_0xccf8x14){var _0xccf8x15=_[_0xb63c[53]](_0xccf8x14,function(_0xccf8x16){return {queue:_0xccf8x9[_0xb63c[26]][_0xb63c[25]],location:util[_0xb63c[51]](_0xb63c[50],_0xccf8x16[_0xb63c[25]]),membername:_0xccf8x16[_0xb63c[25]],UserId:_0xccf8x16[_0xb63c[17]],penalty:_0xccf8x9[_0xb63c[44]][_0xb63c[52]]}});return UserHasVoiceQueue[_0xb63c[54]](_0xccf8x15,{individualHooks:true})})[_0xb63c[14]](function(){return _0xccf8xa[_0xb63c[24]](200)})[_0xb63c[11]](function(_0xccf8xb){console[_0xb63c[46]](_0xccf8xb);return _0xccf8x13(_0xccf8xb)})};exports[_0xb63c[57]]=function(_0xccf8x9,_0xccf8xa,_0xccf8x13){return UserHasVoiceQueue[_0xb63c[58]]({where:{UserId:_0xccf8x9[_0xb63c[15]][_0xb63c[55]],queue:_0xccf8x9[_0xb63c[26]][_0xb63c[25]]},individualHooks:true})[_0xb63c[14]](function(){return _0xccf8xa[_0xb63c[24]](202)})[_0xb63c[11]](function(_0xccf8xb){return _0xccf8x13(_0xccf8xb)})};exports[_0xb63c[58]]=function(_0xccf8x9,_0xccf8xa){return VoiceQueue[_0xb63c[58]]({where:{name:_0xccf8x9[_0xb63c[26]][_0xb63c[25]]},individualHooks:true})[_0xb63c[14]](function(){return _0xccf8xa[_0xb63c[24]](204)})[_0xb63c[11]](function(_0xccf8xb){return handleError(_0xccf8xa,_0xccf8xb)})};exports[_0xb63c[59]]=function(_0xccf8x9,_0xccf8xa){return VoiceQueue[_0xb63c[58]]({where:{name:_0xccf8x9[_0xb63c[15]][_0xb63c[60]]},individualHooks:true})[_0xb63c[14]](function(){return _0xccf8xa[_0xb63c[24]](204)})[_0xb63c[11]](function(_0xccf8xb){return handleError(_0xccf8xa,_0xccf8xb)})};function handleError(_0xccf8xa,_0xccf8xb){return _0xccf8xa[_0xb63c[13]](500)[_0xb63c[12]](_0xccf8xb)}