Built motion from commit 27e0a5d.|1.0.8
[motion.git] / server / api / agent / agent.controller.js
index baf1171..a3bb847 100644 (file)
@@ -1 +1 @@
-var _0xa959=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x55\x73\x65\x72","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x46\x61\x78\x51\x75\x65\x75\x65","\x53\x6D\x73\x51\x75\x65\x75\x65","\x54\x65\x61\x6D","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4C\x69\x73\x74","\x69\x6E\x64\x65\x78","\x65\x72\x72\x6F\x72","\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\x41\x67\x65\x6E\x74\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","\x61\x67\x65\x6E\x74","\x73\x63\x6F\x70\x65","\x72\x6F\x6C\x65","\x61\x64\x64\x51\x75\x65\x75\x65\x73","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x62\x6F\x64\x79","\x61\x64\x64\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x76\x6F\x69\x63\x65","\x61\x64\x64\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x63\x68\x61\x74","\x61\x64\x64\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x6D\x61\x69\x6C","\x61\x64\x64\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x66\x61\x78","\x61\x64\x64\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x73\x6D\x73","\x61\x64\x64\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x63\x68\x61\x6E\x6E\x65\x6C","\x70\x61\x72\x61\x6D\x73","\x72\x65\x6D\x6F\x76\x65\x51\x75\x65\x75\x65\x73","\x69\x64\x73","\x72\x65\x6D\x6F\x76\x65\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73","\x72\x65\x61\x6C\x74\x69\x6D\x65\x49\x6E\x64\x65\x78","\x6C\x6F\x67","\x63\x68\x65\x63\x6B\x50\x61\x75\x73\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x51\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x4F\x6E\x6C\x69\x6E\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x53\x69\x70\x53\x74\x61\x74\x75\x73","\x71\x75\x65\x75\x65\x73","\x72\x65\x61\x6C\x74\x69\x6D\x65\x56\x6F\x69\x63\x65\x49\x6E\x64\x65\x78","\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","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x72\x65\x61\x6C\x74\x69\x6D\x65\x43\x68\x61\x74\x49\x6E\x64\x65\x78","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x72\x65\x61\x6C\x74\x69\x6D\x65\x4D\x61\x69\x6C\x49\x6E\x64\x65\x78","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x72\x65\x61\x6C\x74\x69\x6D\x65\x46\x61\x78\x49\x6E\x64\x65\x78","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x72\x65\x61\x6C\x74\x69\x6D\x65\x53\x6D\x73\x49\x6E\x64\x65\x78","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x72\x65\x61\x6C\x74\x69\x6D\x65\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x49\x6E\x64\x65\x78","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x73\x68\x6F\x77","\x73\x68\x6F\x77\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73","\x63\x72\x65\x61\x74\x65","\x68\x61\x6E\x64\x6C\x65\x55\x6E\x69\x71\x75\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x4D\x61\x6E\x61\x67\x65\x72","\x61\x64\x64\x55\x73\x65\x72","\x66\x69\x6E\x64\x4F\x6E\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x64\x64\x55\x73\x65\x72\x73","\x75\x70\x64\x61\x74\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x68\x61\x6E\x64\x6C\x65\x46\x6F\x72\x65\x69\x67\x6E\x4B\x65\x79\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x6E\x67\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x6F\x6C\x64\x50\x61\x73\x73\x77\x6F\x72\x64","\x6E\x65\x77\x50\x61\x73\x73\x77\x6F\x72\x64","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64"];_0xa959[0];var _=require(_0xa959[1]);var sequelize=require(_0xa959[3])[_0xa959[2]];var Util=require(_0xa959[4]);var Agent=require(_0xa959[3])[_0xa959[5]];var VoiceQueue=require(_0xa959[3])[_0xa959[6]];var ChatQueue=require(_0xa959[3])[_0xa959[7]];var MailQueue=require(_0xa959[3])[_0xa959[8]];var FaxQueue=require(_0xa959[3])[_0xa959[9]];var SmsQueue=require(_0xa959[3])[_0xa959[10]];var User=require(_0xa959[3])[_0xa959[5]];var Team=require(_0xa959[3])[_0xa959[11]];var MailRoom=require(_0xa959[3])[_0xa959[12]];var List=require(_0xa959[3])[_0xa959[13]];exports[_0xa959[14]]= function(_0x7228xe,_0x7228xf,_0x7228x10){switch(_0x7228xe[_0xa959[23]][_0xa959[29]]){case _0xa959[23]:return User[_0xa959[24]](_0x7228xe[_0xa959[23]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](Util[_0xa959[21]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[15]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)});default:return Agent[_0xa959[28]](_0xa959[27])[_0xa959[26]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})}};exports[_0xa959[30]]= function(_0x7228xe,_0x7228xf,_0x7228x10){return Agent[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](401)};switch(_0x7228xe[_0xa959[46]][_0xa959[45]]){case _0xa959[34]:return _0x7228x14[_0xa959[33]](_0x7228xe[_0xa959[32]]);case _0xa959[36]:return _0x7228x14[_0xa959[35]](_0x7228xe[_0xa959[32]]);case _0xa959[38]:return _0x7228x14[_0xa959[37]](_0x7228xe[_0xa959[32]]);case _0xa959[40]:return _0x7228x14[_0xa959[39]](_0x7228xe[_0xa959[32]]);case _0xa959[42]:return _0x7228x14[_0xa959[41]](_0x7228xe[_0xa959[32]]);case _0xa959[44]:return _0x7228x14[_0xa959[43]](_0x7228xe[_0xa959[32]]);default:return null}})[_0xa959[19]](function(_0x7228x13){return _0x7228xf[_0xa959[31]](_0x7228x13?200:401)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[15]](_0x7228x11)})};exports[_0xa959[47]]= function(_0x7228xe,_0x7228xf,_0x7228x10){return Agent[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](401)};switch(_0x7228xe[_0xa959[46]][_0xa959[45]]){case _0xa959[34]:return _0x7228x14[_0xa959[49]](_0x7228xe[_0xa959[20]][_0xa959[48]]);case _0xa959[36]:return _0x7228x14[_0xa959[50]](_0x7228xe[_0xa959[20]][_0xa959[48]]);case _0xa959[38]:return _0x7228x14[_0xa959[51]](_0x7228xe[_0xa959[20]][_0xa959[48]]);case _0xa959[42]:return _0x7228x14[_0xa959[52]](_0x7228xe[_0xa959[20]][_0xa959[48]]);case _0xa959[40]:return _0x7228x14[_0xa959[53]](_0x7228xe[_0xa959[20]][_0xa959[48]]);case _0xa959[44]:return _0x7228x14[_0xa959[54]](_0x7228xe[_0xa959[20]][_0xa959[48]]);default:return null}})[_0xa959[19]](function(_0x7228x13){return _0x7228xf[_0xa959[31]](_0x7228x13?200:401)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[15]](_0x7228x11)})};exports[_0xa959[55]]= function(_0x7228xe,_0x7228xf,_0x7228x10){switch(_0x7228xe[_0xa959[23]][_0xa959[29]]){case _0xa959[23]:return User[_0xa959[24]](_0x7228xe[_0xa959[23]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](Util[_0xa959[21]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)});default:return Agent[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]},_0xa959[61])[_0xa959[26]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})}};exports[_0xa959[62]]= function(_0x7228xe,_0x7228xf,_0x7228x10){switch(_0x7228xe[_0xa959[23]][_0xa959[29]]){case _0xa959[23]:var _0x7228x15=[];return User[_0xa959[24]](_0x7228xe[_0xa959[23]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](Util[_0xa959[69]]({},{attributes:[_0xa959[64]],include:[{raw:true,model:User,attributes:[_0xa959[22]]}]}))[_0xa959[19]](function(_0x7228x13){var _0x7228x16=_[_0xa959[65]](_0x7228x13[_0xa959[63]],_0xa959[64]);_0x7228x13[_0xa959[63]][_0xa959[67]](function(_0x7228x17){_0x7228x15= _[_0xa959[66]](_0x7228x15,_[_0xa959[65]](_0x7228x17.Users,_0xa959[22]))});return User[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]})[_0xa959[26]](_[_0xa959[68]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]],{id:{$in:_0x7228x15}}),{include:[{model:VoiceQueue,where:{name:{$in:_0x7228x16}},required:false}]}))})[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)});default:return Agent[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]},_0xa959[61])[_0xa959[26]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})}};exports[_0xa959[70]]= function(_0x7228xe,_0x7228xf,_0x7228x10){switch(_0x7228xe[_0xa959[23]][_0xa959[29]]){case _0xa959[23]:var _0x7228x15=[];return User[_0xa959[24]](_0x7228xe[_0xa959[23]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](Util[_0xa959[71]]({},{attributes:[_0xa959[22]],include:[{raw:true,model:User,attributes:[_0xa959[22]]}]}))[_0xa959[19]](function(_0x7228x13){var _0x7228x18=_[_0xa959[65]](_0x7228x13[_0xa959[63]],_0xa959[22]);_0x7228x13[_0xa959[63]][_0xa959[67]](function(_0x7228x17){_0x7228x15= _[_0xa959[66]](_0x7228x15,_[_0xa959[65]](_0x7228x17.Users,_0xa959[22]))});return User[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]})[_0xa959[26]](_[_0xa959[68]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]],{id:{$in:_0x7228x15}}),{include:[{model:ChatQueue,where:{id:{$in:_0x7228x18}},required:false}]}))})[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)});default:return Agent[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]},_0xa959[61])[_0xa959[26]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})}};exports[_0xa959[72]]= function(_0x7228xe,_0x7228xf,_0x7228x10){switch(_0x7228xe[_0xa959[23]][_0xa959[29]]){case _0xa959[23]:var _0x7228x15=[];return User[_0xa959[24]](_0x7228xe[_0xa959[23]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](Util[_0xa959[73]]({},{attributes:[_0xa959[22]],include:[{raw:true,model:User,attributes:[_0xa959[22]]}]}))[_0xa959[19]](function(_0x7228x13){var _0x7228x19=_[_0xa959[65]](_0x7228x13[_0xa959[63]],_0xa959[22]);_0x7228x13[_0xa959[63]][_0xa959[67]](function(_0x7228x17){_0x7228x15= _[_0xa959[66]](_0x7228x15,_[_0xa959[65]](_0x7228x17.Users,_0xa959[22]))});return User[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]})[_0xa959[26]](_[_0xa959[68]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]],{id:{$in:_0x7228x15}}),{include:[{model:MailQueue,where:{id:{$in:_0x7228x19}},required:false}]}))})[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)});default:return Agent[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]},_0xa959[61])[_0xa959[26]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})}};exports[_0xa959[74]]= function(_0x7228xe,_0x7228xf,_0x7228x10){switch(_0x7228xe[_0xa959[23]][_0xa959[29]]){case _0xa959[23]:var _0x7228x15=[];return User[_0xa959[24]](_0x7228xe[_0xa959[23]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](Util[_0xa959[75]]({},{attributes:[_0xa959[22]],include:[{raw:true,model:User,attributes:[_0xa959[22]]}]}))[_0xa959[19]](function(_0x7228x13){var _0x7228x1a=_[_0xa959[65]](_0x7228x13[_0xa959[63]],_0xa959[22]);_0x7228x13[_0xa959[63]][_0xa959[67]](function(_0x7228x17){_0x7228x15= _[_0xa959[66]](_0x7228x15,_[_0xa959[65]](_0x7228x17.Users,_0xa959[22]))});return User[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]})[_0xa959[26]](_[_0xa959[68]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]],{id:{$in:_0x7228x15}}),{include:[{model:FaxQueue,where:{id:{$in:_0x7228x1a}},required:false}]}))})[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)});default:return Agent[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]},_0xa959[61])[_0xa959[26]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})}};exports[_0xa959[76]]= function(_0x7228xe,_0x7228xf,_0x7228x10){switch(_0x7228xe[_0xa959[23]][_0xa959[29]]){case _0xa959[23]:var _0x7228x15=[];return User[_0xa959[24]](_0x7228xe[_0xa959[23]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](Util[_0xa959[77]]({},{attributes:[_0xa959[22]],include:[{raw:true,model:User,attributes:[_0xa959[22]]}]}))[_0xa959[19]](function(_0x7228x13){var _0x7228x1b=_[_0xa959[65]](_0x7228x13[_0xa959[63]],_0xa959[22]);_0x7228x13[_0xa959[63]][_0xa959[67]](function(_0x7228x17){_0x7228x15= _[_0xa959[66]](_0x7228x15,_[_0xa959[65]](_0x7228x17.Users,_0xa959[22]))});return User[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]})[_0xa959[26]](_[_0xa959[68]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]],{id:{$in:_0x7228x15}}),{include:[{model:SmsQueue,where:{id:{$in:_0x7228x1b}},required:false}]}))})[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)});default:return Agent[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]},_0xa959[61])[_0xa959[26]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})}};exports[_0xa959[78]]= function(_0x7228xe,_0x7228xf,_0x7228x10){switch(_0x7228xe[_0xa959[23]][_0xa959[29]]){case _0xa959[23]:var _0x7228x15=[];return User[_0xa959[24]](_0x7228xe[_0xa959[23]][_0xa959[22]],{attributes:[_0xa959[22]]})[_0xa959[19]](Util[_0xa959[79]]({},{attributes:[_0xa959[22]],include:[{raw:true,model:User,attributes:[_0xa959[22]]}]}))[_0xa959[19]](function(_0x7228x13){var _0x7228x1c=_[_0xa959[65]](_0x7228x13[_0xa959[63]],_0xa959[22]);_0x7228x13[_0xa959[63]][_0xa959[67]](function(_0x7228x17){_0x7228x15= _[_0xa959[66]](_0x7228x15,_[_0xa959[65]](_0x7228x17.Users,_0xa959[22]))});return User[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]})[_0xa959[26]](_[_0xa959[68]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]],{id:{$in:_0x7228x15}}),{include:[{model:OpenchannelQueue,where:{id:{$in:_0x7228x1c}},required:false}]}))})[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)});default:return Agent[_0xa959[28]](_0xa959[27],{method:[_0xa959[57],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[58],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[59],_0x7228xe[_0xa959[20]]]},{method:[_0xa959[60],_0x7228xe[_0xa959[20]]]},_0xa959[61])[_0xa959[26]](Util[_0xa959[25]](_0x7228xe[_0xa959[20]]))[_0xa959[19]](function(_0x7228x12){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x12)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})}};exports[_0xa959[80]]= function(_0x7228xe,_0x7228xf){return Agent[_0xa959[28]](_0xa959[27])[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]])[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](404)};return _0x7228xf[_0xa959[17]](_0x7228x14)})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[81]]= function(_0x7228xe,_0x7228xf){return Agent[_0xa959[28]](_0xa959[27])[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]])[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](404)};return _0x7228x14[_0xa959[83]]({attributes:[_0xa959[64]]})})[_0xa959[19]](function(_0x7228x16){return _0x7228xf[_0xa959[17]]({count:_0x7228x16[_0xa959[82]],rows:_0x7228x16})})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[84]]= function(_0x7228xe,_0x7228xf){return Agent[_0xa959[28]](_0xa959[27])[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]])[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](404)};return _0x7228x14[_0xa959[85]]({attributes:[_0xa959[22]]})})[_0xa959[19]](function(_0x7228x18){return _0x7228xf[_0xa959[17]]({count:_0x7228x18[_0xa959[82]],rows:_0x7228x18})})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[86]]= function(_0x7228xe,_0x7228xf){return Agent[_0xa959[28]](_0xa959[27])[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]])[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](404)};return _0x7228x14[_0xa959[87]]({attributes:[_0xa959[22]]})})[_0xa959[19]](function(_0x7228x19){return _0x7228xf[_0xa959[17]]({count:_0x7228x19[_0xa959[82]],rows:_0x7228x19})})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[88]]= function(_0x7228xe,_0x7228xf){return Agent[_0xa959[28]](_0xa959[27])[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]])[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](404)};return _0x7228x14[_0xa959[89]]({attributes:[_0xa959[22]]})})[_0xa959[19]](function(_0x7228x1a){return _0x7228xf[_0xa959[17]]({count:_0x7228x1a[_0xa959[82]],rows:_0x7228x1a})})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[90]]= function(_0x7228xe,_0x7228xf){return Agent[_0xa959[28]](_0xa959[27])[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]])[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](404)};return _0x7228x14[_0xa959[91]]({attributes:[_0xa959[22]]})})[_0xa959[19]](function(_0x7228x1b){return _0x7228xf[_0xa959[17]]({count:_0x7228x1b[_0xa959[82]],rows:_0x7228x1b})})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[92]]= function(_0x7228xe,_0x7228xf){return Agent[_0xa959[28]](_0xa959[27])[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]])[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](404)};return _0x7228x14[_0xa959[93]]({attributes:[_0xa959[22]]})})[_0xa959[19]](function(_0x7228x1d){return _0x7228xf[_0xa959[17]]({count:_0x7228x1d[_0xa959[82]],rows:_0x7228x1d})})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[94]]= function(_0x7228xe,_0x7228xf){var _0x7228x1e;_0x7228xe[_0xa959[32]][_0xa959[29]]= _0xa959[27];return sequelize[_0xa959[99]](function(_0x7228x1f){return Agent[_0xa959[28]](_0xa959[27])[_0xa959[94]](_0x7228xe[_0xa959[32]],{transaction:_0x7228x1f})[_0xa959[19]](function(_0x7228x14){_0x7228x1e= _0x7228x14;return Team[_0xa959[98]]({where:{defaultEntry:true}})})[_0xa959[19]](function(_0x7228x21){return _0x7228x21[_0xa959[97]](_0x7228x1e[_0xa959[22]],{transaction:_0x7228x1f})})[_0xa959[19]](function(){return List[_0xa959[98]]({where:{defaultEntry:true}})})[_0xa959[19]](function(_0x7228x20){return _0x7228x20[_0xa959[97]](_0x7228x1e[_0xa959[22]],{transaction:_0x7228x1f})})})[_0xa959[19]](function(){return _0x7228xf[_0xa959[18]](201)[_0xa959[17]](_0x7228x1e)})[_0xa959[16]](sequelize.UniqueConstraintError,function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return Util[_0xa959[96]][_0xa959[95]](_0x7228xf,_0x7228x11)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[100]]= function(_0x7228xe,_0x7228xf){var _0x7228x22;if(_0x7228xe[_0xa959[32]]&& _0x7228xe[_0xa959[32]][_0xa959[82]]){_0x7228xe[_0xa959[32]][_0xa959[67]](function(_0x7228x14){_0x7228x14[_0xa959[29]]= _0xa959[27]})};return sequelize[_0xa959[99]](function(_0x7228x1f){return Agent[_0xa959[100]](_0x7228xe[_0xa959[32]],{transaction:_0x7228x1f,individualHooks:true})[_0xa959[19]](function(_0x7228x15){_0x7228x22= _0x7228x15;return Team[_0xa959[98]]({where:{defaultEntry:true}})})[_0xa959[19]](function(_0x7228x21){return _0x7228x21[_0xa959[101]](_[_0xa959[65]](_0x7228x22,_0xa959[22]),{transaction:_0x7228x1f})})})[_0xa959[19]](function(){return _0x7228xf[_0xa959[31]](201)})[_0xa959[16]](sequelize.UniqueConstraintError,function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return Util[_0xa959[96]][_0xa959[95]](_0x7228xf,_0x7228x11)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[102]]= function(_0x7228xe,_0x7228xf){if(_0x7228xe[_0xa959[32]][_0xa959[22]]){delete _0x7228xe[_0xa959[32]][_0xa959[22]];delete _0x7228xe[_0xa959[32]][_0xa959[29]]};return sequelize[_0xa959[99]](function(_0x7228x1f){return Agent[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]])[_0xa959[19]](function(_0x7228x14){if(!_0x7228x14){return _0x7228xf[_0xa959[31]](404)};var _0x7228x23=_[_0xa959[68]](_0x7228x14,_0x7228xe[_0xa959[32]]);return _0x7228x23[_0xa959[103]]({transaction:_0x7228x1f})})[_0xa959[19]](function(_0x7228x14){return _0x7228xf[_0xa959[18]](200)[_0xa959[17]](_0x7228x14)})})[_0xa959[16]](sequelize.UniqueConstraintError,function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return Util[_0xa959[96]][_0xa959[95]](_0x7228xf,_0x7228x11)})[_0xa959[16]](function(_0x7228x11){console[_0xa959[56]](_0x7228x11);return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[104]]= function(_0x7228xe,_0x7228xf){var _0x7228x1e;return Agent[_0xa959[24]](_0x7228xe[_0xa959[46]][_0xa959[22]])[_0xa959[19]](function(_0x7228x14){_0x7228x1e= _0x7228x14;if(!_0x7228x14){return _0x7228xf[_0xa959[31]](404)};return _0x7228x14[_0xa959[104]]()})[_0xa959[19]](function(){return _0x7228xf[_0xa959[31]](204)})[_0xa959[16]](sequelize.ForeignKeyConstraintError,function(_0x7228x11){return Util[_0xa959[96]][_0xa959[105]](_0x7228xf,_0xa959[27],_0x7228x1e[_0xa959[64]],_0x7228x11)})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[106]]= function(_0x7228xe,_0x7228xf){return Agent[_0xa959[104]]({where:{id:_0x7228xe[_0xa959[20]][_0xa959[48]]},individualHooks:true})[_0xa959[19]](function(){return _0x7228xf[_0xa959[31]](204)})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};exports[_0xa959[107]]= function(_0x7228xe,_0x7228xf,_0x7228x10){var _0x7228x24=_0x7228xe[_0xa959[23]][_0xa959[22]];var _0x7228x25=String(_0x7228xe[_0xa959[32]][_0xa959[108]]);var _0x7228x26=String(_0x7228xe[_0xa959[32]][_0xa959[109]]);return Agent[_0xa959[24]](_0x7228x24)[_0xa959[19]](function(_0x7228x27){if(_0x7228x27[_0xa959[110]](_0x7228x25)){_0x7228x27[_0xa959[111]]= _0x7228x26;_0x7228x27[_0xa959[103]]()[_0xa959[19]](function(){return _0x7228xf[_0xa959[31]](200)})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})}else {return _0x7228xf[_0xa959[31]](403)}})};exports[_0xa959[112]]= function(_0x7228xe,_0x7228xf,_0x7228x10){var _0x7228x24=_0x7228xe[_0xa959[46]][_0xa959[22]];var _0x7228x26=String(_0x7228xe[_0xa959[32]][_0xa959[109]]);return Agent[_0xa959[24]](_0x7228x24)[_0xa959[19]](function(_0x7228x27){_0x7228x27[_0xa959[111]]= _0x7228x26;return _0x7228x27[_0xa959[103]]()})[_0xa959[19]](function(){return _0x7228xf[_0xa959[31]](200)})[_0xa959[16]](function(_0x7228x11){return handleError(_0x7228xf,_0x7228x11)})};function handleError(_0x7228xf,_0x7228x11){return _0x7228xf[_0xa959[18]](500)[_0xa959[17]](_0x7228x11)}
\ No newline at end of file
+var _0xa92c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x62\x6C\x75\x65\x62\x69\x72\x64","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x74\x6F\x6F\x6C\x73\x2F\x75\x73\x65\x72","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x46\x61\x78\x51\x75\x65\x75\x65","\x53\x6D\x73\x51\x75\x65\x75\x65","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x53\x65\x74\x74\x69\x6E\x67","\x55\x73\x65\x72","\x54\x65\x61\x6D","\x4C\x69\x73\x74","\x69\x6E\x64\x65\x78","\x65\x72\x72\x6F\x72","\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\x41\x67\x65\x6E\x74\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","\x61\x67\x65\x6E\x74","\x73\x63\x6F\x70\x65","\x72\x6F\x6C\x65","\x61\x64\x64\x51\x75\x65\x75\x65\x73","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x62\x6F\x64\x79","\x53\x49\x50\x2F\x25\x73","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x61\x64\x64\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x76\x6F\x69\x63\x65","\x61\x64\x64\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x68\x61\x74","\x61\x64\x64\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x6D\x61\x69\x6C","\x61\x64\x64\x46\x61\x78\x51\x75\x65\x75\x65","\x66\x61\x78","\x61\x64\x64\x53\x6D\x73\x51\x75\x65\x75\x65","\x73\x6D\x73","\x61\x64\x64\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x63\x68\x61\x6E\x6E\x65\x6C","\x70\x61\x72\x61\x6D\x73","\x72\x65\x6D\x6F\x76\x65\x51\x75\x65\x75\x65\x73","\x69\x64\x73","\x72\x65\x6D\x6F\x76\x65\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73","\x72\x65\x61\x6C\x74\x69\x6D\x65\x49\x6E\x64\x65\x78","\x63\x68\x65\x63\x6B\x50\x61\x75\x73\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x51\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x4F\x6E\x6C\x69\x6E\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x53\x69\x70\x53\x74\x61\x74\x75\x73","\x72\x65\x61\x6C\x74\x69\x6D\x65\x56\x6F\x69\x63\x65\x49\x6E\x64\x65\x78","\x72\x6F\x77\x73","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x6D\x65\x72\x67\x65","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x72\x65\x61\x6C\x74\x69\x6D\x65\x43\x68\x61\x74\x49\x6E\x64\x65\x78","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x71\x75\x65\x75\x65\x73","\x72\x65\x61\x6C\x74\x69\x6D\x65\x4D\x61\x69\x6C\x49\x6E\x64\x65\x78","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x72\x65\x61\x6C\x74\x69\x6D\x65\x46\x61\x78\x49\x6E\x64\x65\x78","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x72\x65\x61\x6C\x74\x69\x6D\x65\x53\x6D\x73\x49\x6E\x64\x65\x78","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x72\x65\x61\x6C\x74\x69\x6D\x65\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x49\x6E\x64\x65\x78","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x73\x68\x6F\x77","\x73\x68\x6F\x77\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x73\x68\x6F\x77\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73","\x63\x72\x65\x61\x74\x65","\x68\x61\x6E\x64\x6C\x65\x55\x6E\x69\x71\x75\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x4D\x61\x6E\x61\x67\x65\x72","\x61\x64\x64\x55\x73\x65\x72","\x66\x69\x6E\x64\x4F\x6E\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x73\x65\x63\x75\x72\x65\x50\x61\x73\x73\x77\x6F\x72\x64","\x74\x65\x73\x74","\x57\x72\x6F\x6E\x67\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x66\x6F\x72\x6D\x61\x74\x21","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x61\x64\x64\x55\x73\x65\x72\x73","\x49\x6E\x76\x61\x6C\x69\x64\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x70\x61\x74\x74\x65\x72\x6E","\x73\x74\x61\x72\x74\x49\x6E\x64\x65\x78","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x69\x73\x4E\x75\x6D\x62\x65\x72","\x6D\x69\x6E\x49\x6E\x74\x65\x72\x6E\x61\x6C","\x61\x6D\x6F\x75\x6E\x74","\x63\x6C\x6F\x6E\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x40","\x73\x70\x6C\x69\x74","\x4E\x6F\x20\x61\x67\x65\x6E\x74\x73\x20\x61\x6D\x6F\x75\x6E\x74\x20\x73\x70\x65\x63\x69\x66\x69\x65\x64\x21","\x75\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x68\x61\x6E\x64\x6C\x65\x46\x6F\x72\x65\x69\x67\x6E\x4B\x65\x79\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79"];_0xa92c[0];var _=require(_0xa92c[1]);var sequelize=require(_0xa92c[3])[_0xa92c[2]];var BPromise=require(_0xa92c[4]);var util=require(_0xa92c[5]);var Util=require(_0xa92c[6]);var userTools=require(_0xa92c[7]);var OpenchannelQueue=require(_0xa92c[3])[_0xa92c[8]];var VoiceQueue=require(_0xa92c[3])[_0xa92c[9]];var ChatQueue=require(_0xa92c[3])[_0xa92c[10]];var MailQueue=require(_0xa92c[3])[_0xa92c[11]];var FaxQueue=require(_0xa92c[3])[_0xa92c[12]];var SmsQueue=require(_0xa92c[3])[_0xa92c[13]];var MailRoom=require(_0xa92c[3])[_0xa92c[14]];var Setting=require(_0xa92c[3])[_0xa92c[15]];var Agent=require(_0xa92c[3])[_0xa92c[16]];var User=require(_0xa92c[3])[_0xa92c[16]];var Team=require(_0xa92c[3])[_0xa92c[17]];var List=require(_0xa92c[3])[_0xa92c[18]];exports[_0xa92c[19]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){switch(_0xc92fx13[_0xa92c[28]][_0xa92c[34]]){case _0xa92c[28]:return User[_0xa92c[29]](_0xc92fx13[_0xa92c[28]][_0xa92c[27]],{attributes:[_0xa92c[27]]})[_0xa92c[24]](Util[_0xa92c[26]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)});default:return Agent[_0xa92c[33]](_0xa92c[32])[_0xa92c[31]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})}};exports[_0xa92c[35]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){return Agent[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]],{attributes:[_0xa92c[27],_0xa92c[39]]})[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](401)};switch(_0xc92fx13[_0xa92c[58]][_0xa92c[57]]){case _0xa92c[42]:return _0xc92fx19[_0xa92c[41]](_0xc92fx13[_0xa92c[37]],{interface:util[_0xa92c[40]](_0xa92c[38],_0xc92fx19[_0xa92c[39]]),stateinterface:util[_0xa92c[40]](_0xa92c[38],_0xc92fx19[_0xa92c[39]]),membername:_0xc92fx19[_0xa92c[39]],UserId:_0xc92fx19[_0xa92c[27]]});case _0xa92c[48]:return ChatQueue[_0xa92c[47]]({where:{id:_0xc92fx13[_0xa92c[37]]},attributes:[_0xa92c[27],_0xa92c[39]],raw:true})[_0xa92c[24]](function(_0xc92fx18){if(_0xc92fx18){var _0xc92fx1a=[];_[_0xa92c[45]](_0xc92fx18,function(_0xc92fx1b){_0xc92fx1a[_0xa92c[44]](_0xc92fx19[_0xa92c[43]](_0xc92fx1b[_0xa92c[27]],{queue:_0xc92fx1b[_0xa92c[39]]}))});return BPromise[_0xa92c[46]](_0xc92fx1a)}});case _0xa92c[50]:return MailQueue[_0xa92c[47]]({where:{id:_0xc92fx13[_0xa92c[37]]},attributes:[_0xa92c[27],_0xa92c[39]],raw:true})[_0xa92c[24]](function(_0xc92fx18){if(_0xc92fx18){var _0xc92fx1a=[];_[_0xa92c[45]](_0xc92fx18,function(_0xc92fx1b){_0xc92fx1a[_0xa92c[44]](_0xc92fx19[_0xa92c[49]](_0xc92fx1b[_0xa92c[27]],{queue:_0xc92fx1b[_0xa92c[39]]}))});return BPromise[_0xa92c[46]](_0xc92fx1a)}});case _0xa92c[52]:return FaxQueue[_0xa92c[47]]({where:{id:_0xc92fx13[_0xa92c[37]]},attributes:[_0xa92c[27],_0xa92c[39]],raw:true})[_0xa92c[24]](function(_0xc92fx18){if(_0xc92fx18){var _0xc92fx1a=[];_[_0xa92c[45]](_0xc92fx18,function(_0xc92fx1b){_0xc92fx1a[_0xa92c[44]](_0xc92fx19[_0xa92c[51]](_0xc92fx1b[_0xa92c[27]],{queue:_0xc92fx1b[_0xa92c[39]]}))});return BPromise[_0xa92c[46]](_0xc92fx1a)}});case _0xa92c[54]:return SmsQueue[_0xa92c[47]]({where:{id:_0xc92fx13[_0xa92c[37]]},attributes:[_0xa92c[27],_0xa92c[39]],raw:true})[_0xa92c[24]](function(_0xc92fx18){if(_0xc92fx18){var _0xc92fx1a=[];_[_0xa92c[45]](_0xc92fx18,function(_0xc92fx1b){_0xc92fx1a[_0xa92c[44]](_0xc92fx19[_0xa92c[53]](_0xc92fx1b[_0xa92c[27]],{queue:_0xc92fx1b[_0xa92c[39]]}))});return BPromise[_0xa92c[46]](_0xc92fx1a)}});case _0xa92c[56]:return OpenchannelQueue[_0xa92c[47]]({where:{id:_0xc92fx13[_0xa92c[37]]},attributes:[_0xa92c[27],_0xa92c[39]],raw:true})[_0xa92c[24]](function(_0xc92fx18){if(_0xc92fx18){var _0xc92fx1a=[];_[_0xa92c[45]](_0xc92fx18,function(_0xc92fx1b){_0xc92fx1a[_0xa92c[44]](_0xc92fx19[_0xa92c[55]](_0xc92fx1b[_0xa92c[27]],{queue:_0xc92fx1b[_0xa92c[39]]}))});return BPromise[_0xa92c[46]](_0xc92fx1a)}});default:return null}})[_0xa92c[24]](function(_0xc92fx18){return _0xc92fx14[_0xa92c[36]](_0xc92fx18?200:401)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16)})};exports[_0xa92c[59]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){return Agent[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]],{attributes:[_0xa92c[27]]})[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](401)};switch(_0xc92fx13[_0xa92c[58]][_0xa92c[57]]){case _0xa92c[42]:return _0xc92fx19[_0xa92c[61]](_0xc92fx13[_0xa92c[25]][_0xa92c[60]]);case _0xa92c[48]:return _0xc92fx19[_0xa92c[62]](_0xc92fx13[_0xa92c[25]][_0xa92c[60]]);case _0xa92c[50]:return _0xc92fx19[_0xa92c[63]](_0xc92fx13[_0xa92c[25]][_0xa92c[60]]);case _0xa92c[54]:return _0xc92fx19[_0xa92c[64]](_0xc92fx13[_0xa92c[25]][_0xa92c[60]]);case _0xa92c[52]:return _0xc92fx19[_0xa92c[65]](_0xc92fx13[_0xa92c[25]][_0xa92c[60]]);case _0xa92c[56]:return _0xc92fx19[_0xa92c[66]](_0xc92fx13[_0xa92c[25]][_0xa92c[60]]);default:return null}})[_0xa92c[24]](function(_0xc92fx18){return _0xc92fx14[_0xa92c[36]](_0xc92fx18?200:401)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16)})};exports[_0xa92c[67]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){switch(_0xc92fx13[_0xa92c[28]][_0xa92c[34]]){case _0xa92c[28]:return User[_0xa92c[29]](_0xc92fx13[_0xa92c[28]][_0xa92c[27]],{attributes:[_0xa92c[27]]})[_0xa92c[24]](Util[_0xa92c[26]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)});default:return Agent[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]})[_0xa92c[31]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})}};exports[_0xa92c[72]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){switch(_0xc92fx13[_0xa92c[28]][_0xa92c[34]]){case _0xa92c[28]:var _0xc92fx1c=[];return User[_0xa92c[29]](_0xc92fx13[_0xa92c[28]][_0xa92c[27]],{attributes:[_0xa92c[27]]})[_0xa92c[24]](Util[_0xa92c[77]]({},{attributes:[_0xa92c[39]],include:[{raw:true,model:User,attributes:[_0xa92c[27]]}]}))[_0xa92c[24]](function(_0xc92fx18){var _0xc92fx1d=_[_0xa92c[74]](_0xc92fx18[_0xa92c[73]],_0xa92c[39]);_0xc92fx18[_0xa92c[73]][_0xa92c[45]](function(_0xc92fx1b){_0xc92fx1c= _[_0xa92c[75]](_0xc92fx1c,_[_0xa92c[74]](_0xc92fx1b.Users,_0xa92c[27]))});return User[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]})[_0xa92c[31]](_[_0xa92c[76]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]],{id:{$in:_0xc92fx1c}}),{include:[{model:VoiceQueue,where:{name:{$in:_0xc92fx1d}},required:false}]}))})[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)});default:return Agent[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]})[_0xa92c[31]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})}};exports[_0xa92c[78]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){switch(_0xc92fx13[_0xa92c[28]][_0xa92c[34]]){case _0xa92c[28]:var _0xc92fx1c=[];return User[_0xa92c[29]](_0xc92fx13[_0xa92c[28]][_0xa92c[27]],{attributes:[_0xa92c[27]]})[_0xa92c[24]](Util[_0xa92c[79]]({},{attributes:[_0xa92c[27]],include:[{raw:true,model:User,attributes:[_0xa92c[27]]}]}))[_0xa92c[24]](function(_0xc92fx18){var _0xc92fx1e=_[_0xa92c[74]](_0xc92fx18[_0xa92c[73]],_0xa92c[27]);_0xc92fx18[_0xa92c[73]][_0xa92c[45]](function(_0xc92fx1b){_0xc92fx1c= _[_0xa92c[75]](_0xc92fx1c,_[_0xa92c[74]](_0xc92fx1b.Users,_0xa92c[27]))});return User[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]})[_0xa92c[31]](_[_0xa92c[76]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]],{id:{$in:_0xc92fx1c}}),{include:[{model:ChatQueue,where:{id:{$in:_0xc92fx1e}},required:false}]}))})[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)});default:return Agent[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]},_0xa92c[80])[_0xa92c[31]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})}};exports[_0xa92c[81]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){switch(_0xc92fx13[_0xa92c[28]][_0xa92c[34]]){case _0xa92c[28]:var _0xc92fx1c=[];return User[_0xa92c[29]](_0xc92fx13[_0xa92c[28]][_0xa92c[27]],{attributes:[_0xa92c[27]]})[_0xa92c[24]](Util[_0xa92c[82]]({},{attributes:[_0xa92c[27]],include:[{raw:true,model:User,attributes:[_0xa92c[27]]}]}))[_0xa92c[24]](function(_0xc92fx18){var _0xc92fx1f=_[_0xa92c[74]](_0xc92fx18[_0xa92c[73]],_0xa92c[27]);_0xc92fx18[_0xa92c[73]][_0xa92c[45]](function(_0xc92fx1b){_0xc92fx1c= _[_0xa92c[75]](_0xc92fx1c,_[_0xa92c[74]](_0xc92fx1b.Users,_0xa92c[27]))});return User[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]})[_0xa92c[31]](_[_0xa92c[76]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]],{id:{$in:_0xc92fx1c}}),{include:[{model:MailQueue,where:{id:{$in:_0xc92fx1f}},required:false}]}))})[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)});default:return Agent[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]},_0xa92c[80])[_0xa92c[31]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})}};exports[_0xa92c[83]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){switch(_0xc92fx13[_0xa92c[28]][_0xa92c[34]]){case _0xa92c[28]:var _0xc92fx1c=[];return User[_0xa92c[29]](_0xc92fx13[_0xa92c[28]][_0xa92c[27]],{attributes:[_0xa92c[27]]})[_0xa92c[24]](Util[_0xa92c[84]]({},{attributes:[_0xa92c[27]],include:[{raw:true,model:User,attributes:[_0xa92c[27]]}]}))[_0xa92c[24]](function(_0xc92fx18){var _0xc92fx20=_[_0xa92c[74]](_0xc92fx18[_0xa92c[73]],_0xa92c[27]);_0xc92fx18[_0xa92c[73]][_0xa92c[45]](function(_0xc92fx1b){_0xc92fx1c= _[_0xa92c[75]](_0xc92fx1c,_[_0xa92c[74]](_0xc92fx1b.Users,_0xa92c[27]))});return User[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]})[_0xa92c[31]](_[_0xa92c[76]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]],{id:{$in:_0xc92fx1c}}),{include:[{model:FaxQueue,where:{id:{$in:_0xc92fx20}},required:false}]}))})[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)});default:return Agent[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]},_0xa92c[80])[_0xa92c[31]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})}};exports[_0xa92c[85]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){switch(_0xc92fx13[_0xa92c[28]][_0xa92c[34]]){case _0xa92c[28]:var _0xc92fx1c=[];return User[_0xa92c[29]](_0xc92fx13[_0xa92c[28]][_0xa92c[27]],{attributes:[_0xa92c[27]]})[_0xa92c[24]](Util[_0xa92c[86]]({},{attributes:[_0xa92c[27]],include:[{raw:true,model:User,attributes:[_0xa92c[27]]}]}))[_0xa92c[24]](function(_0xc92fx18){var _0xc92fx21=_[_0xa92c[74]](_0xc92fx18[_0xa92c[73]],_0xa92c[27]);_0xc92fx18[_0xa92c[73]][_0xa92c[45]](function(_0xc92fx1b){_0xc92fx1c= _[_0xa92c[75]](_0xc92fx1c,_[_0xa92c[74]](_0xc92fx1b.Users,_0xa92c[27]))});return User[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]})[_0xa92c[31]](_[_0xa92c[76]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]],{id:{$in:_0xc92fx1c}}),{include:[{model:SmsQueue,where:{id:{$in:_0xc92fx21}},required:false}]}))})[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)});default:return Agent[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]},_0xa92c[80])[_0xa92c[31]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})}};exports[_0xa92c[87]]= function(_0xc92fx13,_0xc92fx14,_0xc92fx15){switch(_0xc92fx13[_0xa92c[28]][_0xa92c[34]]){case _0xa92c[28]:var _0xc92fx1c=[];return User[_0xa92c[29]](_0xc92fx13[_0xa92c[28]][_0xa92c[27]],{attributes:[_0xa92c[27]]})[_0xa92c[24]](Util[_0xa92c[88]]({},{attributes:[_0xa92c[27]],include:[{raw:true,model:User,attributes:[_0xa92c[27]]}]}))[_0xa92c[24]](function(_0xc92fx18){var _0xc92fx22=_[_0xa92c[74]](_0xc92fx18[_0xa92c[73]],_0xa92c[27]);_0xc92fx18[_0xa92c[73]][_0xa92c[45]](function(_0xc92fx1b){_0xc92fx1c= _[_0xa92c[75]](_0xc92fx1c,_[_0xa92c[74]](_0xc92fx1b.Users,_0xa92c[27]))});return User[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]})[_0xa92c[31]](_[_0xa92c[76]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]],{id:{$in:_0xc92fx1c}}),{include:[{model:OpenchannelQueue,where:{id:{$in:_0xc92fx22}},required:false}]}))})[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)});default:return Agent[_0xa92c[33]](_0xa92c[32],{method:[_0xa92c[68],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[69],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[70],_0xc92fx13[_0xa92c[25]]]},{method:[_0xa92c[71],_0xc92fx13[_0xa92c[25]]]},_0xa92c[80])[_0xa92c[31]](Util[_0xa92c[30]](_0xc92fx13[_0xa92c[25]]))[_0xa92c[24]](function(_0xc92fx17){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx17)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})}};exports[_0xa92c[89]]= function(_0xc92fx13,_0xc92fx14){return Agent[_0xa92c[33]](_0xa92c[32])[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]])[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](404)};return _0xc92fx14[_0xa92c[22]](_0xc92fx19)})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[90]]= function(_0xc92fx13,_0xc92fx14){return Agent[_0xa92c[33]](_0xa92c[32])[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]])[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](404)};return _0xc92fx19[_0xa92c[92]]({attributes:[_0xa92c[39]]})})[_0xa92c[24]](function(_0xc92fx1d){return _0xc92fx14[_0xa92c[22]]({count:_0xc92fx1d[_0xa92c[91]],rows:_0xc92fx1d})})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[93]]= function(_0xc92fx13,_0xc92fx14){return Agent[_0xa92c[33]](_0xa92c[32])[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]])[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](404)};return _0xc92fx19[_0xa92c[94]]({attributes:[_0xa92c[27]]})})[_0xa92c[24]](function(_0xc92fx1e){return _0xc92fx14[_0xa92c[22]]({count:_0xc92fx1e[_0xa92c[91]],rows:_0xc92fx1e})})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[95]]= function(_0xc92fx13,_0xc92fx14){return Agent[_0xa92c[33]](_0xa92c[32])[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]])[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](404)};return _0xc92fx19[_0xa92c[96]]({attributes:[_0xa92c[27]]})})[_0xa92c[24]](function(_0xc92fx1f){return _0xc92fx14[_0xa92c[22]]({count:_0xc92fx1f[_0xa92c[91]],rows:_0xc92fx1f})})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[97]]= function(_0xc92fx13,_0xc92fx14){return Agent[_0xa92c[33]](_0xa92c[32])[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]])[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](404)};return _0xc92fx19[_0xa92c[98]]({attributes:[_0xa92c[27]]})})[_0xa92c[24]](function(_0xc92fx20){return _0xc92fx14[_0xa92c[22]]({count:_0xc92fx20[_0xa92c[91]],rows:_0xc92fx20})})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[99]]= function(_0xc92fx13,_0xc92fx14){return Agent[_0xa92c[33]](_0xa92c[32])[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]])[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](404)};return _0xc92fx19[_0xa92c[100]]({attributes:[_0xa92c[27]]})})[_0xa92c[24]](function(_0xc92fx21){return _0xc92fx14[_0xa92c[22]]({count:_0xc92fx21[_0xa92c[91]],rows:_0xc92fx21})})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[101]]= function(_0xc92fx13,_0xc92fx14){return Agent[_0xa92c[33]](_0xa92c[32])[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]])[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](404)};return _0xc92fx19[_0xa92c[102]]({attributes:[_0xa92c[27]]})})[_0xa92c[24]](function(_0xc92fx23){return _0xc92fx14[_0xa92c[22]]({count:_0xc92fx23[_0xa92c[91]],rows:_0xc92fx23})})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[103]]= function(_0xc92fx13,_0xc92fx14){var _0xc92fx24;_0xc92fx13[_0xa92c[37]][_0xa92c[34]]= _0xa92c[32];return sequelize[_0xa92c[113]](function(_0xc92fx25){return Setting[_0xa92c[29]](1)[_0xa92c[24]](function(_0xc92fx28){var _0xc92fx29=String(_0xc92fx13[_0xa92c[37]][_0xa92c[109]]);var _0xc92fx2a=_0xc92fx28[_0xa92c[110]]?/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/:/^[a-zA-Z0-9~!@#$%^&\-_=+\[\{\]\}.]{6,}$/;if(!_0xc92fx2a[_0xa92c[111]](_0xc92fx29)){throw  new Error(_0xa92c[112])};return Agent[_0xa92c[33]](_0xa92c[32])[_0xa92c[103]](_0xc92fx13[_0xa92c[37]],{transaction:_0xc92fx25})})[_0xa92c[24]](userTools[_0xa92c[108]]({transaction:_0xc92fx25}))[_0xa92c[24]](function(_0xc92fx19){_0xc92fx24= _0xc92fx19;return Team[_0xa92c[107]]({where:{defaultEntry:true}})})[_0xa92c[24]](function(_0xc92fx27){return _0xc92fx27[_0xa92c[106]](_0xc92fx24[_0xa92c[27]],{transaction:_0xc92fx25})})[_0xa92c[24]](function(){return List[_0xa92c[107]]({where:{defaultEntry:true}})})[_0xa92c[24]](function(_0xc92fx26){return _0xc92fx26[_0xa92c[106]](_0xc92fx24[_0xa92c[27]],{transaction:_0xc92fx25})})})[_0xa92c[24]](function(){return _0xc92fx14[_0xa92c[23]](201)[_0xa92c[22]](_0xc92fx24)})[_0xa92c[21]](sequelize.UniqueConstraintError,function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return Util[_0xa92c[105]][_0xa92c[104]](_0xc92fx14,_0xc92fx16)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[114]]= function(_0xc92fx13,_0xc92fx14){var _0xc92fx2b;var _0xc92fx2c;var _0xc92fx2d=[];var _0xc92fx29=String(_0xc92fx13[_0xa92c[37]][_0xa92c[109]]);return sequelize[_0xa92c[113]](function(_0xc92fx25){return Setting[_0xa92c[29]](1)[_0xa92c[24]](function(_0xc92fx28){_0xc92fx2c= _0xc92fx28;var _0xc92fx2a=_0xc92fx2c[_0xa92c[110]]?/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/:/^[a-zA-Z0-9]{6,}$/;if(!_0xc92fx2a[_0xa92c[111]](_0xc92fx29)){throw  new Error(_0xa92c[116])};var _0xc92fx2e=0;if(_0xc92fx13[_0xa92c[37]][_0xa92c[118]](_0xa92c[117])&& _[_0xa92c[119]](_0xc92fx13[_0xa92c[37]][_0xa92c[117]])&& _0xc92fx13[_0xa92c[37]][_0xa92c[117]]>= 0){_0xc92fx2e= _0xc92fx13[_0xa92c[37]][_0xa92c[117]];delete _0xc92fx13[_0xa92c[37]][_0xa92c[117]]};var _0xc92fx2f=_0xc92fx13[_0xa92c[37]][_0xa92c[120]];delete _0xc92fx13[_0xa92c[37]][_0xa92c[120]];if(_0xc92fx13[_0xa92c[37]][_0xa92c[121]]){_0xc92fx13[_0xa92c[37]][_0xa92c[34]]= _0xa92c[32];for(var _0xc92fx30=_0xc92fx2e;_0xc92fx30< _0xc92fx13[_0xa92c[37]][_0xa92c[121]]+ _0xc92fx2e;_0xc92fx30++,_0xc92fx2f++){var _0xc92fx31=_[_0xa92c[122]](_0xc92fx13[_0xa92c[37]]);_0xc92fx31[_0xa92c[123]]= _0xc92fx2f;_0xc92fx31[_0xa92c[39]]= _0xc92fx31[_0xa92c[39]]+ _0xc92fx30;_0xc92fx31[_0xa92c[124]]= _0xc92fx31[_0xa92c[124]]+ _0xc92fx30;_0xc92fx31[_0xa92c[125]]= _0xc92fx31[_0xa92c[125]][_0xa92c[127]](_0xa92c[126])[0]+ _0xc92fx30+ _0xa92c[126]+ _0xc92fx31[_0xa92c[125]][_0xa92c[127]](_0xa92c[126])[1];_0xc92fx2d[_0xa92c[44]](_0xc92fx31)}}else {throw  new Error(_0xa92c[128])};return Agent[_0xa92c[114]](_0xc92fx2d,{transaction:_0xc92fx25,individualHooks:true})})[_0xa92c[24]](function(_0xc92fx1c){_0xc92fx2b= _0xc92fx1c;return Team[_0xa92c[107]]({where:{defaultEntry:true}})})[_0xa92c[24]](function(_0xc92fx27){return _0xc92fx27[_0xa92c[115]](_[_0xa92c[74]](_0xc92fx2b,_0xa92c[27]),{transaction:_0xc92fx25})})})[_0xa92c[24]](function(){return _0xc92fx14[_0xa92c[36]](201)})[_0xa92c[21]](sequelize.UniqueConstraintError,function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return Util[_0xa92c[105]][_0xa92c[104]](_0xc92fx14,_0xc92fx16)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[129]]= function(_0xc92fx13,_0xc92fx14){if(_0xc92fx13[_0xa92c[37]][_0xa92c[27]]){delete _0xc92fx13[_0xa92c[37]][_0xa92c[27]]};delete _0xc92fx13[_0xa92c[37]][_0xa92c[123]];delete _0xc92fx13[_0xa92c[37]][_0xa92c[34]];delete _0xc92fx13[_0xa92c[37]][_0xa92c[39]];delete _0xc92fx13[_0xa92c[37]][_0xa92c[109]];var _0xc92fx24;return sequelize[_0xa92c[113]](function(_0xc92fx25){return Agent[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]])[_0xa92c[24]](function(_0xc92fx19){if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](404)};var _0xc92fx32=_[_0xa92c[76]](_0xc92fx19,_0xc92fx13[_0xa92c[37]]);return _0xc92fx32[_0xa92c[131]]({transaction:_0xc92fx25})})[_0xa92c[24]](function(_0xc92fx19){_0xc92fx24= _0xc92fx19;return _0xc92fx19})[_0xa92c[24]](userTools[_0xa92c[130]]({transaction:_0xc92fx25}))[_0xa92c[24]](function(){return _0xc92fx14[_0xa92c[23]](200)[_0xa92c[22]](_0xc92fx24)})})[_0xa92c[21]](sequelize.UniqueConstraintError,function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return Util[_0xa92c[105]][_0xa92c[104]](_0xc92fx14,_0xc92fx16)})[_0xa92c[21]](function(_0xc92fx16){console[_0xa92c[20]](_0xc92fx16);return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[132]]= function(_0xc92fx13,_0xc92fx14){var _0xc92fx24;return Agent[_0xa92c[29]](_0xc92fx13[_0xa92c[58]][_0xa92c[27]])[_0xa92c[24]](function(_0xc92fx19){_0xc92fx24= _0xc92fx19;if(!_0xc92fx19){return _0xc92fx14[_0xa92c[36]](404)};return _0xc92fx19[_0xa92c[132]]()})[_0xa92c[24]](function(){return _0xc92fx14[_0xa92c[36]](204)})[_0xa92c[21]](sequelize.ForeignKeyConstraintError,function(_0xc92fx16){return Util[_0xa92c[105]][_0xa92c[133]](_0xc92fx14,_0xa92c[32],_0xc92fx24[_0xa92c[39]],_0xc92fx16)})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})};exports[_0xa92c[134]]= function(_0xc92fx13,_0xc92fx14){return Agent[_0xa92c[132]]({where:{id:_0xc92fx13[_0xa92c[25]][_0xa92c[60]]},individualHooks:true})[_0xa92c[24]](function(){return _0xc92fx14[_0xa92c[36]](204)})[_0xa92c[21]](function(_0xc92fx16){return handleError(_0xc92fx14,_0xc92fx16)})};function handleError(_0xc92fx14,_0xc92fx16){return _0xc92fx14[_0xa92c[23]](500)[_0xa92c[22]](_0xc92fx16)}
\ No newline at end of file