Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / api / agent / agent.controller.js
index f78bd64..8cd64f0 100644 (file)
@@ -1 +1 @@
-var _0x744c=["\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","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\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","\x76\x61\x6C\x75\x65\x73","\x62\x6F\x64\x79","\x53\x49\x50\x2F\x25\x73","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x70\x65\x6E\x61\x6C\x74\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","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x744c[0];var _=require(_0x744c[1]);var sequelize=require(_0x744c[3])[_0x744c[2]];var BPromise=require(_0x744c[4]);var util=require(_0x744c[5]);var Util=require(_0x744c[6]);var userTools=require(_0x744c[7]);var logger=require(_0x744c[9])(_0x744c[8]);var OpenchannelQueue=require(_0x744c[3])[_0x744c[10]];var VoiceQueue=require(_0x744c[3])[_0x744c[11]];var ChatQueue=require(_0x744c[3])[_0x744c[12]];var MailQueue=require(_0x744c[3])[_0x744c[13]];var FaxQueue=require(_0x744c[3])[_0x744c[14]];var SmsQueue=require(_0x744c[3])[_0x744c[15]];var MailRoom=require(_0x744c[3])[_0x744c[16]];var Setting=require(_0x744c[3])[_0x744c[17]];var Agent=require(_0x744c[3])[_0x744c[18]];var User=require(_0x744c[3])[_0x744c[18]];var Team=require(_0x744c[3])[_0x744c[19]];var List=require(_0x744c[3])[_0x744c[20]];exports[_0x744c[21]]= function(_0x475bx14,_0x475bx15,_0x475bx16){switch(_0x475bx14[_0x744c[29]][_0x744c[35]]){case _0x744c[29]:return User[_0x744c[30]](_0x475bx14[_0x744c[29]][_0x744c[28]],{attributes:[_0x744c[28]]})[_0x744c[25]](Util[_0x744c[27]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)});default:return Agent[_0x744c[34]](_0x744c[33])[_0x744c[32]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})}};exports[_0x744c[36]]= function(_0x475bx14,_0x475bx15,_0x475bx16){return Agent[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]],{attributes:[_0x744c[28],_0x744c[41]]})[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](401)};switch(_0x475bx14[_0x744c[61]][_0x744c[60]]){case _0x744c[45]:return _0x475bx1a[_0x744c[44]](_0x475bx14[_0x744c[39]][_0x744c[38]],{interface:util[_0x744c[42]](_0x744c[40],_0x475bx1a[_0x744c[41]]),stateinterface:util[_0x744c[42]](_0x744c[40],_0x475bx1a[_0x744c[41]]),membername:_0x475bx1a[_0x744c[41]],UserId:_0x475bx1a[_0x744c[28]],penalty:_0x475bx14[_0x744c[39]][_0x744c[43]]});case _0x744c[51]:return ChatQueue[_0x744c[50]]({where:{id:_0x475bx14[_0x744c[39]][_0x744c[38]]},attributes:[_0x744c[28],_0x744c[41]],raw:true})[_0x744c[25]](function(_0x475bx19){if(_0x475bx19){var _0x475bx1b=[];_[_0x744c[48]](_0x475bx19,function(_0x475bx1c){_0x475bx1b[_0x744c[47]](_0x475bx1a[_0x744c[46]](_0x475bx1c[_0x744c[28]],{queue:_0x475bx1c[_0x744c[41]],penalty:_0x475bx14[_0x744c[39]][_0x744c[43]]}))});return BPromise[_0x744c[49]](_0x475bx1b)}});case _0x744c[53]:return MailQueue[_0x744c[50]]({where:{id:_0x475bx14[_0x744c[39]][_0x744c[38]]},attributes:[_0x744c[28],_0x744c[41]],raw:true})[_0x744c[25]](function(_0x475bx19){if(_0x475bx19){var _0x475bx1b=[];_[_0x744c[48]](_0x475bx19,function(_0x475bx1c){_0x475bx1b[_0x744c[47]](_0x475bx1a[_0x744c[52]](_0x475bx1c[_0x744c[28]],{queue:_0x475bx1c[_0x744c[41]],penalty:_0x475bx14[_0x744c[39]][_0x744c[43]]}))});return BPromise[_0x744c[49]](_0x475bx1b)}});case _0x744c[55]:return FaxQueue[_0x744c[50]]({where:{id:_0x475bx14[_0x744c[39]][_0x744c[38]]},attributes:[_0x744c[28],_0x744c[41]],raw:true})[_0x744c[25]](function(_0x475bx19){if(_0x475bx19){var _0x475bx1b=[];_[_0x744c[48]](_0x475bx19,function(_0x475bx1c){_0x475bx1b[_0x744c[47]](_0x475bx1a[_0x744c[54]](_0x475bx1c[_0x744c[28]],{queue:_0x475bx1c[_0x744c[41]],penalty:_0x475bx14[_0x744c[39]][_0x744c[43]]}))});return BPromise[_0x744c[49]](_0x475bx1b)}});case _0x744c[57]:return SmsQueue[_0x744c[50]]({where:{id:_0x475bx14[_0x744c[39]][_0x744c[38]]},attributes:[_0x744c[28],_0x744c[41]],raw:true})[_0x744c[25]](function(_0x475bx19){if(_0x475bx19){var _0x475bx1b=[];_[_0x744c[48]](_0x475bx19,function(_0x475bx1c){_0x475bx1b[_0x744c[47]](_0x475bx1a[_0x744c[56]](_0x475bx1c[_0x744c[28]],{queue:_0x475bx1c[_0x744c[41]],penalty:_0x475bx14[_0x744c[39]][_0x744c[43]]}))});return BPromise[_0x744c[49]](_0x475bx1b)}});case _0x744c[59]:return OpenchannelQueue[_0x744c[50]]({where:{id:_0x475bx14[_0x744c[39]][_0x744c[38]]},attributes:[_0x744c[28],_0x744c[41]],raw:true})[_0x744c[25]](function(_0x475bx19){if(_0x475bx19){var _0x475bx1b=[];_[_0x744c[48]](_0x475bx19,function(_0x475bx1c){_0x475bx1b[_0x744c[47]](_0x475bx1a[_0x744c[58]](_0x475bx1c[_0x744c[28]],{queue:_0x475bx1c[_0x744c[41]],penalty:_0x475bx14[_0x744c[39]][_0x744c[43]]}))});return BPromise[_0x744c[49]](_0x475bx1b)}});default:return null}})[_0x744c[25]](function(_0x475bx19){return _0x475bx15[_0x744c[37]](_0x475bx19?200:401)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[62]]= function(_0x475bx14,_0x475bx15,_0x475bx16){return Agent[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]],{attributes:[_0x744c[28]]})[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](401)};switch(_0x475bx14[_0x744c[61]][_0x744c[60]]){case _0x744c[45]:return _0x475bx1a[_0x744c[64]](_0x475bx14[_0x744c[26]][_0x744c[63]]);case _0x744c[51]:return _0x475bx1a[_0x744c[65]](_0x475bx14[_0x744c[26]][_0x744c[63]]);case _0x744c[53]:return _0x475bx1a[_0x744c[66]](_0x475bx14[_0x744c[26]][_0x744c[63]]);case _0x744c[57]:return _0x475bx1a[_0x744c[67]](_0x475bx14[_0x744c[26]][_0x744c[63]]);case _0x744c[55]:return _0x475bx1a[_0x744c[68]](_0x475bx14[_0x744c[26]][_0x744c[63]]);case _0x744c[59]:return _0x475bx1a[_0x744c[69]](_0x475bx14[_0x744c[26]][_0x744c[63]]);default:return null}})[_0x744c[25]](function(_0x475bx19){return _0x475bx15[_0x744c[37]](_0x475bx19?200:401)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[70]]= function(_0x475bx14,_0x475bx15,_0x475bx16){switch(_0x475bx14[_0x744c[29]][_0x744c[35]]){case _0x744c[29]:return User[_0x744c[30]](_0x475bx14[_0x744c[29]][_0x744c[28]],{attributes:[_0x744c[28]]})[_0x744c[25]](Util[_0x744c[27]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)});default:return Agent[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]})[_0x744c[32]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})}};exports[_0x744c[75]]= function(_0x475bx14,_0x475bx15,_0x475bx16){switch(_0x475bx14[_0x744c[29]][_0x744c[35]]){case _0x744c[29]:var _0x475bx1d=[];return User[_0x744c[30]](_0x475bx14[_0x744c[29]][_0x744c[28]],{attributes:[_0x744c[28]]})[_0x744c[25]](Util[_0x744c[80]]({},{attributes:[_0x744c[41]],include:[{raw:true,model:User,attributes:[_0x744c[28]]}]}))[_0x744c[25]](function(_0x475bx19){var _0x475bx1e=_[_0x744c[77]](_0x475bx19[_0x744c[76]],_0x744c[41]);_0x475bx19[_0x744c[76]][_0x744c[48]](function(_0x475bx1c){_0x475bx1d= _[_0x744c[78]](_0x475bx1d,_[_0x744c[77]](_0x475bx1c.Users,_0x744c[28]))});return User[_0x744c[34]](_0x744c[33],{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]})[_0x744c[32]](_[_0x744c[79]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]],{id:{$in:_0x475bx1d}}),{include:[{model:VoiceQueue,where:{name:{$in:_0x475bx1e}},required:false}]}))})[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)});default:return Agent[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]})[_0x744c[32]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})}};exports[_0x744c[81]]= function(_0x475bx14,_0x475bx15,_0x475bx16){switch(_0x475bx14[_0x744c[29]][_0x744c[35]]){case _0x744c[29]:var _0x475bx1d=[];return User[_0x744c[30]](_0x475bx14[_0x744c[29]][_0x744c[28]],{attributes:[_0x744c[28]]})[_0x744c[25]](Util[_0x744c[82]]({},{attributes:[_0x744c[28]],include:[{raw:true,model:User,attributes:[_0x744c[28]]}]}))[_0x744c[25]](function(_0x475bx19){var _0x475bx1f=_[_0x744c[77]](_0x475bx19[_0x744c[76]],_0x744c[28]);_0x475bx19[_0x744c[76]][_0x744c[48]](function(_0x475bx1c){_0x475bx1d= _[_0x744c[78]](_0x475bx1d,_[_0x744c[77]](_0x475bx1c.Users,_0x744c[28]))});return User[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]})[_0x744c[32]](_[_0x744c[79]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]],{id:{$in:_0x475bx1d}}),{include:[{model:ChatQueue,where:{id:{$in:_0x475bx1f}},required:false}]}))})[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)});default:return Agent[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]},_0x744c[83])[_0x744c[32]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})}};exports[_0x744c[84]]= function(_0x475bx14,_0x475bx15,_0x475bx16){switch(_0x475bx14[_0x744c[29]][_0x744c[35]]){case _0x744c[29]:var _0x475bx1d=[];return User[_0x744c[30]](_0x475bx14[_0x744c[29]][_0x744c[28]],{attributes:[_0x744c[28]]})[_0x744c[25]](Util[_0x744c[85]]({},{attributes:[_0x744c[28]],include:[{raw:true,model:User,attributes:[_0x744c[28]]}]}))[_0x744c[25]](function(_0x475bx19){var _0x475bx20=_[_0x744c[77]](_0x475bx19[_0x744c[76]],_0x744c[28]);_0x475bx19[_0x744c[76]][_0x744c[48]](function(_0x475bx1c){_0x475bx1d= _[_0x744c[78]](_0x475bx1d,_[_0x744c[77]](_0x475bx1c.Users,_0x744c[28]))});return User[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]})[_0x744c[32]](_[_0x744c[79]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]],{id:{$in:_0x475bx1d}}),{include:[{model:MailQueue,where:{id:{$in:_0x475bx20}},required:false}]}))})[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)});default:return Agent[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]},_0x744c[83])[_0x744c[32]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})}};exports[_0x744c[86]]= function(_0x475bx14,_0x475bx15,_0x475bx16){switch(_0x475bx14[_0x744c[29]][_0x744c[35]]){case _0x744c[29]:var _0x475bx1d=[];return User[_0x744c[30]](_0x475bx14[_0x744c[29]][_0x744c[28]],{attributes:[_0x744c[28]]})[_0x744c[25]](Util[_0x744c[87]]({},{attributes:[_0x744c[28]],include:[{raw:true,model:User,attributes:[_0x744c[28]]}]}))[_0x744c[25]](function(_0x475bx19){var _0x475bx21=_[_0x744c[77]](_0x475bx19[_0x744c[76]],_0x744c[28]);_0x475bx19[_0x744c[76]][_0x744c[48]](function(_0x475bx1c){_0x475bx1d= _[_0x744c[78]](_0x475bx1d,_[_0x744c[77]](_0x475bx1c.Users,_0x744c[28]))});return User[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]})[_0x744c[32]](_[_0x744c[79]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]],{id:{$in:_0x475bx1d}}),{include:[{model:FaxQueue,where:{id:{$in:_0x475bx21}},required:false}]}))})[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)});default:return Agent[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]},_0x744c[83])[_0x744c[32]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})}};exports[_0x744c[88]]= function(_0x475bx14,_0x475bx15,_0x475bx16){switch(_0x475bx14[_0x744c[29]][_0x744c[35]]){case _0x744c[29]:var _0x475bx1d=[];return User[_0x744c[30]](_0x475bx14[_0x744c[29]][_0x744c[28]],{attributes:[_0x744c[28]]})[_0x744c[25]](Util[_0x744c[89]]({},{attributes:[_0x744c[28]],include:[{raw:true,model:User,attributes:[_0x744c[28]]}]}))[_0x744c[25]](function(_0x475bx19){var _0x475bx22=_[_0x744c[77]](_0x475bx19[_0x744c[76]],_0x744c[28]);_0x475bx19[_0x744c[76]][_0x744c[48]](function(_0x475bx1c){_0x475bx1d= _[_0x744c[78]](_0x475bx1d,_[_0x744c[77]](_0x475bx1c.Users,_0x744c[28]))});return User[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]})[_0x744c[32]](_[_0x744c[79]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]],{id:{$in:_0x475bx1d}}),{include:[{model:SmsQueue,where:{id:{$in:_0x475bx22}},required:false}]}))})[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)});default:return Agent[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]},_0x744c[83])[_0x744c[32]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})}};exports[_0x744c[90]]= function(_0x475bx14,_0x475bx15,_0x475bx16){switch(_0x475bx14[_0x744c[29]][_0x744c[35]]){case _0x744c[29]:var _0x475bx1d=[];return User[_0x744c[30]](_0x475bx14[_0x744c[29]][_0x744c[28]],{attributes:[_0x744c[28]]})[_0x744c[25]](Util[_0x744c[91]]({},{attributes:[_0x744c[28]],include:[{raw:true,model:User,attributes:[_0x744c[28]]}]}))[_0x744c[25]](function(_0x475bx19){var _0x475bx23=_[_0x744c[77]](_0x475bx19[_0x744c[76]],_0x744c[28]);_0x475bx19[_0x744c[76]][_0x744c[48]](function(_0x475bx1c){_0x475bx1d= _[_0x744c[78]](_0x475bx1d,_[_0x744c[77]](_0x475bx1c.Users,_0x744c[28]))});return User[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]})[_0x744c[32]](_[_0x744c[79]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]],{id:{$in:_0x475bx1d}}),{include:[{model:OpenchannelQueue,where:{id:{$in:_0x475bx23}},required:false}]}))})[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)});default:return Agent[_0x744c[34]](_0x744c[33],{method:[_0x744c[71],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[72],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[73],_0x475bx14[_0x744c[26]]]},{method:[_0x744c[74],_0x475bx14[_0x744c[26]]]},_0x744c[83])[_0x744c[32]](Util[_0x744c[31]](_0x475bx14[_0x744c[26]]))[_0x744c[25]](function(_0x475bx18){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx18)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})}};exports[_0x744c[92]]= function(_0x475bx14,_0x475bx15){return Agent[_0x744c[34]](_0x744c[33])[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]])[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](404)};return _0x475bx15[_0x744c[23]](_0x475bx1a)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[93]]= function(_0x475bx14,_0x475bx15){return Agent[_0x744c[34]](_0x744c[33])[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]])[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](404)};return _0x475bx1a[_0x744c[95]]({attributes:[_0x744c[41]]})})[_0x744c[25]](function(_0x475bx1e){return _0x475bx15[_0x744c[23]]({count:_0x475bx1e[_0x744c[94]],rows:_0x475bx1e})})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[96]]= function(_0x475bx14,_0x475bx15){return Agent[_0x744c[34]](_0x744c[33])[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]])[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](404)};return _0x475bx1a[_0x744c[97]]({attributes:[_0x744c[28]]})})[_0x744c[25]](function(_0x475bx1f){return _0x475bx15[_0x744c[23]]({count:_0x475bx1f[_0x744c[94]],rows:_0x475bx1f})})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[98]]= function(_0x475bx14,_0x475bx15){return Agent[_0x744c[34]](_0x744c[33])[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]])[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](404)};return _0x475bx1a[_0x744c[99]]({attributes:[_0x744c[28]]})})[_0x744c[25]](function(_0x475bx20){return _0x475bx15[_0x744c[23]]({count:_0x475bx20[_0x744c[94]],rows:_0x475bx20})})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[100]]= function(_0x475bx14,_0x475bx15){return Agent[_0x744c[34]](_0x744c[33])[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]])[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](404)};return _0x475bx1a[_0x744c[101]]({attributes:[_0x744c[28]]})})[_0x744c[25]](function(_0x475bx21){return _0x475bx15[_0x744c[23]]({count:_0x475bx21[_0x744c[94]],rows:_0x475bx21})})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[102]]= function(_0x475bx14,_0x475bx15){return Agent[_0x744c[34]](_0x744c[33])[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]])[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](404)};return _0x475bx1a[_0x744c[103]]({attributes:[_0x744c[28]]})})[_0x744c[25]](function(_0x475bx22){return _0x475bx15[_0x744c[23]]({count:_0x475bx22[_0x744c[94]],rows:_0x475bx22})})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[104]]= function(_0x475bx14,_0x475bx15){return Agent[_0x744c[34]](_0x744c[33])[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]])[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](404)};return _0x475bx1a[_0x744c[105]]({attributes:[_0x744c[28]]})})[_0x744c[25]](function(_0x475bx24){return _0x475bx15[_0x744c[23]]({count:_0x475bx24[_0x744c[94]],rows:_0x475bx24})})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[106]]= function(_0x475bx14,_0x475bx15){var _0x475bx25;_0x475bx14[_0x744c[39]][_0x744c[35]]= _0x744c[33];return sequelize[_0x744c[116]](function(_0x475bx26){return Setting[_0x744c[30]](1)[_0x744c[25]](function(_0x475bx28){var _0x475bx29=String(_0x475bx14[_0x744c[39]][_0x744c[112]]);var _0x475bx2a=_0x475bx28[_0x744c[113]]?/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/:/^.{6,}$/;if(!_0x475bx2a[_0x744c[114]](_0x475bx29)){throw  new Error(_0x744c[115])};return Agent[_0x744c[34]](_0x744c[33])[_0x744c[106]](_0x475bx14[_0x744c[39]],{transaction:_0x475bx26})})[_0x744c[25]](userTools[_0x744c[111]]({transaction:_0x475bx26}))[_0x744c[25]](function(_0x475bx1a){_0x475bx25= _0x475bx1a;return Team[_0x744c[110]]({where:{defaultEntry:true}})})[_0x744c[25]](function(_0x475bx27){return _0x475bx27[_0x744c[109]](_0x475bx25[_0x744c[28]],{transaction:_0x475bx26})})})[_0x744c[25]](function(){return _0x475bx15[_0x744c[24]](201)[_0x744c[23]](_0x475bx25)})[_0x744c[22]](sequelize.UniqueConstraintError,function(_0x475bx17){return Util[_0x744c[108]][_0x744c[107]](_0x475bx15,_0x475bx17)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[117]]= function(_0x475bx14,_0x475bx15){var _0x475bx2b;var _0x475bx2c;var _0x475bx2d=[];var _0x475bx29=String(_0x475bx14[_0x744c[39]][_0x744c[112]]);return sequelize[_0x744c[116]](function(_0x475bx26){return Setting[_0x744c[30]](1)[_0x744c[25]](function(_0x475bx28){_0x475bx2c= _0x475bx28;var _0x475bx2a=_0x475bx2c[_0x744c[113]]?/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/:/^[a-zA-Z0-9]{6,}$/;if(!_0x475bx2a[_0x744c[114]](_0x475bx29)){throw  new Error(_0x744c[119])};var _0x475bx2e=0;if(_0x475bx14[_0x744c[39]][_0x744c[121]](_0x744c[120])&& _[_0x744c[122]](_0x475bx14[_0x744c[39]][_0x744c[120]])&& _0x475bx14[_0x744c[39]][_0x744c[120]]>= 0){_0x475bx2e= _0x475bx14[_0x744c[39]][_0x744c[120]];delete _0x475bx14[_0x744c[39]][_0x744c[120]]};var _0x475bx2f=_0x475bx14[_0x744c[39]][_0x744c[123]];delete _0x475bx14[_0x744c[39]][_0x744c[123]];if(_0x475bx14[_0x744c[39]][_0x744c[124]]){_0x475bx14[_0x744c[39]][_0x744c[35]]= _0x744c[33];for(var _0x475bx30=_0x475bx2e;_0x475bx30< _0x475bx14[_0x744c[39]][_0x744c[124]]+ _0x475bx2e;_0x475bx30++,_0x475bx2f++){var _0x475bx31=_[_0x744c[125]](_0x475bx14[_0x744c[39]]);_0x475bx31[_0x744c[126]]= _0x475bx2f;_0x475bx31[_0x744c[41]]= _0x475bx31[_0x744c[41]]+ _0x475bx30;_0x475bx31[_0x744c[127]]= _0x475bx31[_0x744c[127]]+ _0x475bx30;_0x475bx31[_0x744c[128]]= _0x475bx31[_0x744c[128]][_0x744c[130]](_0x744c[129])[0]+ _0x475bx30+ _0x744c[129]+ _0x475bx31[_0x744c[128]][_0x744c[130]](_0x744c[129])[1];_0x475bx2d[_0x744c[47]](_0x475bx31)}}else {throw  new Error(_0x744c[131])};return Agent[_0x744c[117]](_0x475bx2d,{transaction:_0x475bx26,individualHooks:true})})[_0x744c[25]](function(_0x475bx1d){_0x475bx2b= _0x475bx1d;return Team[_0x744c[110]]({where:{defaultEntry:true}})})[_0x744c[25]](function(_0x475bx27){return _0x475bx27[_0x744c[118]](_[_0x744c[77]](_0x475bx2b,_0x744c[28]),{transaction:_0x475bx26})})})[_0x744c[25]](function(){return _0x475bx15[_0x744c[37]](201)})[_0x744c[22]](sequelize.UniqueConstraintError,function(_0x475bx17){return Util[_0x744c[108]][_0x744c[107]](_0x475bx15,_0x475bx17)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[132]]= function(_0x475bx14,_0x475bx15){if(_0x475bx14[_0x744c[39]][_0x744c[28]]){delete _0x475bx14[_0x744c[39]][_0x744c[28]]};delete _0x475bx14[_0x744c[39]][_0x744c[126]];delete _0x475bx14[_0x744c[39]][_0x744c[35]];delete _0x475bx14[_0x744c[39]][_0x744c[41]];delete _0x475bx14[_0x744c[39]][_0x744c[112]];var _0x475bx25;return sequelize[_0x744c[116]](function(_0x475bx26){return Agent[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]])[_0x744c[25]](function(_0x475bx1a){if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](404)};var _0x475bx32=_[_0x744c[79]](_0x475bx1a,_0x475bx14[_0x744c[39]]);return _0x475bx32[_0x744c[134]]({transaction:_0x475bx26})})[_0x744c[25]](function(_0x475bx1a){_0x475bx25= _0x475bx1a;return _0x475bx1a})[_0x744c[25]](userTools[_0x744c[133]]({transaction:_0x475bx26}))[_0x744c[25]](function(){return _0x475bx15[_0x744c[24]](200)[_0x744c[23]](_0x475bx25)})})[_0x744c[22]](sequelize.UniqueConstraintError,function(_0x475bx17){return Util[_0x744c[108]][_0x744c[107]](_0x475bx15,_0x475bx17)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[135]]= function(_0x475bx14,_0x475bx15){var _0x475bx25;return Agent[_0x744c[30]](_0x475bx14[_0x744c[61]][_0x744c[28]])[_0x744c[25]](function(_0x475bx1a){_0x475bx25= _0x475bx1a;if(!_0x475bx1a){return _0x475bx15[_0x744c[37]](404)};return _0x475bx1a[_0x744c[135]]()})[_0x744c[25]](function(){return _0x475bx15[_0x744c[37]](204)})[_0x744c[22]](sequelize.ForeignKeyConstraintError,function(_0x475bx17){return Util[_0x744c[108]][_0x744c[136]](_0x475bx15,_0x744c[33],_0x475bx25[_0x744c[41]],_0x475bx17)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};exports[_0x744c[137]]= function(_0x475bx14,_0x475bx15){return Agent[_0x744c[135]]({where:{id:_0x475bx14[_0x744c[26]][_0x744c[63]]},individualHooks:true})[_0x744c[25]](function(){return _0x475bx15[_0x744c[37]](204)})[_0x744c[22]](function(_0x475bx17){return handleError(_0x475bx15,_0x475bx17)})};function handleError(_0x475bx15,_0x475bx17){logger[_0x744c[139]](_0x475bx17[_0x744c[138]]);return _0x475bx15[_0x744c[24]](500)[_0x744c[23]](_0x475bx17)}
\ No newline at end of file
+var _0x9023=["\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","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\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","\x76\x61\x6C\x75\x65\x73","\x62\x6F\x64\x79","\x53\x49\x50\x2F\x25\x73","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x70\x65\x6E\x61\x6C\x74\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","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x9023[0];var _=require(_0x9023[1]);var sequelize=require(_0x9023[3])[_0x9023[2]];var BPromise=require(_0x9023[4]);var util=require(_0x9023[5]);var Util=require(_0x9023[6]);var userTools=require(_0x9023[7]);var logger=require(_0x9023[9])(_0x9023[8]);var OpenchannelQueue=require(_0x9023[3])[_0x9023[10]];var VoiceQueue=require(_0x9023[3])[_0x9023[11]];var ChatQueue=require(_0x9023[3])[_0x9023[12]];var MailQueue=require(_0x9023[3])[_0x9023[13]];var FaxQueue=require(_0x9023[3])[_0x9023[14]];var SmsQueue=require(_0x9023[3])[_0x9023[15]];var MailRoom=require(_0x9023[3])[_0x9023[16]];var Setting=require(_0x9023[3])[_0x9023[17]];var Agent=require(_0x9023[3])[_0x9023[18]];var User=require(_0x9023[3])[_0x9023[18]];var Team=require(_0x9023[3])[_0x9023[19]];var List=require(_0x9023[3])[_0x9023[20]];exports[_0x9023[21]]= function(_0x1011x14,_0x1011x15,_0x1011x16){switch(_0x1011x14[_0x9023[29]][_0x9023[35]]){case _0x9023[29]:return User[_0x9023[30]](_0x1011x14[_0x9023[29]][_0x9023[28]],{attributes:[_0x9023[28]]})[_0x9023[25]](Util[_0x9023[27]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)});default:return Agent[_0x9023[34]](_0x9023[33])[_0x9023[32]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})}};exports[_0x9023[36]]= function(_0x1011x14,_0x1011x15,_0x1011x16){return Agent[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]],{attributes:[_0x9023[28],_0x9023[41]]})[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](401)};switch(_0x1011x14[_0x9023[61]][_0x9023[60]]){case _0x9023[45]:return _0x1011x1a[_0x9023[44]](_0x1011x14[_0x9023[39]][_0x9023[38]],{interface:util[_0x9023[42]](_0x9023[40],_0x1011x1a[_0x9023[41]]),stateinterface:util[_0x9023[42]](_0x9023[40],_0x1011x1a[_0x9023[41]]),membername:_0x1011x1a[_0x9023[41]],UserId:_0x1011x1a[_0x9023[28]],penalty:_0x1011x14[_0x9023[39]][_0x9023[43]]});case _0x9023[51]:return ChatQueue[_0x9023[50]]({where:{id:_0x1011x14[_0x9023[39]][_0x9023[38]]},attributes:[_0x9023[28],_0x9023[41]],raw:true})[_0x9023[25]](function(_0x1011x19){if(_0x1011x19){var _0x1011x1b=[];_[_0x9023[48]](_0x1011x19,function(_0x1011x1c){_0x1011x1b[_0x9023[47]](_0x1011x1a[_0x9023[46]](_0x1011x1c[_0x9023[28]],{queue:_0x1011x1c[_0x9023[41]],penalty:_0x1011x14[_0x9023[39]][_0x9023[43]]}))});return BPromise[_0x9023[49]](_0x1011x1b)}});case _0x9023[53]:return MailQueue[_0x9023[50]]({where:{id:_0x1011x14[_0x9023[39]][_0x9023[38]]},attributes:[_0x9023[28],_0x9023[41]],raw:true})[_0x9023[25]](function(_0x1011x19){if(_0x1011x19){var _0x1011x1b=[];_[_0x9023[48]](_0x1011x19,function(_0x1011x1c){_0x1011x1b[_0x9023[47]](_0x1011x1a[_0x9023[52]](_0x1011x1c[_0x9023[28]],{queue:_0x1011x1c[_0x9023[41]],penalty:_0x1011x14[_0x9023[39]][_0x9023[43]]}))});return BPromise[_0x9023[49]](_0x1011x1b)}});case _0x9023[55]:return FaxQueue[_0x9023[50]]({where:{id:_0x1011x14[_0x9023[39]][_0x9023[38]]},attributes:[_0x9023[28],_0x9023[41]],raw:true})[_0x9023[25]](function(_0x1011x19){if(_0x1011x19){var _0x1011x1b=[];_[_0x9023[48]](_0x1011x19,function(_0x1011x1c){_0x1011x1b[_0x9023[47]](_0x1011x1a[_0x9023[54]](_0x1011x1c[_0x9023[28]],{queue:_0x1011x1c[_0x9023[41]],penalty:_0x1011x14[_0x9023[39]][_0x9023[43]]}))});return BPromise[_0x9023[49]](_0x1011x1b)}});case _0x9023[57]:return SmsQueue[_0x9023[50]]({where:{id:_0x1011x14[_0x9023[39]][_0x9023[38]]},attributes:[_0x9023[28],_0x9023[41]],raw:true})[_0x9023[25]](function(_0x1011x19){if(_0x1011x19){var _0x1011x1b=[];_[_0x9023[48]](_0x1011x19,function(_0x1011x1c){_0x1011x1b[_0x9023[47]](_0x1011x1a[_0x9023[56]](_0x1011x1c[_0x9023[28]],{queue:_0x1011x1c[_0x9023[41]],penalty:_0x1011x14[_0x9023[39]][_0x9023[43]]}))});return BPromise[_0x9023[49]](_0x1011x1b)}});case _0x9023[59]:return OpenchannelQueue[_0x9023[50]]({where:{id:_0x1011x14[_0x9023[39]][_0x9023[38]]},attributes:[_0x9023[28],_0x9023[41]],raw:true})[_0x9023[25]](function(_0x1011x19){if(_0x1011x19){var _0x1011x1b=[];_[_0x9023[48]](_0x1011x19,function(_0x1011x1c){_0x1011x1b[_0x9023[47]](_0x1011x1a[_0x9023[58]](_0x1011x1c[_0x9023[28]],{queue:_0x1011x1c[_0x9023[41]],penalty:_0x1011x14[_0x9023[39]][_0x9023[43]]}))});return BPromise[_0x9023[49]](_0x1011x1b)}});default:return null}})[_0x9023[25]](function(_0x1011x19){return _0x1011x15[_0x9023[37]](_0x1011x19?200:401)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[62]]= function(_0x1011x14,_0x1011x15,_0x1011x16){return Agent[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]],{attributes:[_0x9023[28]]})[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](401)};switch(_0x1011x14[_0x9023[61]][_0x9023[60]]){case _0x9023[45]:return _0x1011x1a[_0x9023[64]](_0x1011x14[_0x9023[26]][_0x9023[63]]);case _0x9023[51]:return _0x1011x1a[_0x9023[65]](_0x1011x14[_0x9023[26]][_0x9023[63]]);case _0x9023[53]:return _0x1011x1a[_0x9023[66]](_0x1011x14[_0x9023[26]][_0x9023[63]]);case _0x9023[57]:return _0x1011x1a[_0x9023[67]](_0x1011x14[_0x9023[26]][_0x9023[63]]);case _0x9023[55]:return _0x1011x1a[_0x9023[68]](_0x1011x14[_0x9023[26]][_0x9023[63]]);case _0x9023[59]:return _0x1011x1a[_0x9023[69]](_0x1011x14[_0x9023[26]][_0x9023[63]]);default:return null}})[_0x9023[25]](function(_0x1011x19){return _0x1011x15[_0x9023[37]](_0x1011x19?200:401)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[70]]= function(_0x1011x14,_0x1011x15,_0x1011x16){switch(_0x1011x14[_0x9023[29]][_0x9023[35]]){case _0x9023[29]:return User[_0x9023[30]](_0x1011x14[_0x9023[29]][_0x9023[28]],{attributes:[_0x9023[28]]})[_0x9023[25]](Util[_0x9023[27]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)});default:return Agent[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]})[_0x9023[32]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})}};exports[_0x9023[75]]= function(_0x1011x14,_0x1011x15,_0x1011x16){switch(_0x1011x14[_0x9023[29]][_0x9023[35]]){case _0x9023[29]:var _0x1011x1d=[];return User[_0x9023[30]](_0x1011x14[_0x9023[29]][_0x9023[28]],{attributes:[_0x9023[28]]})[_0x9023[25]](Util[_0x9023[80]]({},{attributes:[_0x9023[41]],include:[{raw:true,model:User,attributes:[_0x9023[28]]}]}))[_0x9023[25]](function(_0x1011x19){var _0x1011x1e=_[_0x9023[77]](_0x1011x19[_0x9023[76]],_0x9023[41]);_0x1011x19[_0x9023[76]][_0x9023[48]](function(_0x1011x1c){_0x1011x1d= _[_0x9023[78]](_0x1011x1d,_[_0x9023[77]](_0x1011x1c.Users,_0x9023[28]))});return User[_0x9023[34]](_0x9023[33],{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]})[_0x9023[32]](_[_0x9023[79]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]],{id:{$in:_0x1011x1d}}),{include:[{model:VoiceQueue,where:{name:{$in:_0x1011x1e}},required:false}]}))})[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)});default:return Agent[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]})[_0x9023[32]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})}};exports[_0x9023[81]]= function(_0x1011x14,_0x1011x15,_0x1011x16){switch(_0x1011x14[_0x9023[29]][_0x9023[35]]){case _0x9023[29]:var _0x1011x1d=[];return User[_0x9023[30]](_0x1011x14[_0x9023[29]][_0x9023[28]],{attributes:[_0x9023[28]]})[_0x9023[25]](Util[_0x9023[82]]({},{attributes:[_0x9023[28]],include:[{raw:true,model:User,attributes:[_0x9023[28]]}]}))[_0x9023[25]](function(_0x1011x19){var _0x1011x1f=_[_0x9023[77]](_0x1011x19[_0x9023[76]],_0x9023[28]);_0x1011x19[_0x9023[76]][_0x9023[48]](function(_0x1011x1c){_0x1011x1d= _[_0x9023[78]](_0x1011x1d,_[_0x9023[77]](_0x1011x1c.Users,_0x9023[28]))});return User[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]})[_0x9023[32]](_[_0x9023[79]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]],{id:{$in:_0x1011x1d}}),{include:[{model:ChatQueue,where:{id:{$in:_0x1011x1f}},required:false}]}))})[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)});default:return Agent[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]},_0x9023[83])[_0x9023[32]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})}};exports[_0x9023[84]]= function(_0x1011x14,_0x1011x15,_0x1011x16){switch(_0x1011x14[_0x9023[29]][_0x9023[35]]){case _0x9023[29]:var _0x1011x1d=[];return User[_0x9023[30]](_0x1011x14[_0x9023[29]][_0x9023[28]],{attributes:[_0x9023[28]]})[_0x9023[25]](Util[_0x9023[85]]({},{attributes:[_0x9023[28]],include:[{raw:true,model:User,attributes:[_0x9023[28]]}]}))[_0x9023[25]](function(_0x1011x19){var _0x1011x20=_[_0x9023[77]](_0x1011x19[_0x9023[76]],_0x9023[28]);_0x1011x19[_0x9023[76]][_0x9023[48]](function(_0x1011x1c){_0x1011x1d= _[_0x9023[78]](_0x1011x1d,_[_0x9023[77]](_0x1011x1c.Users,_0x9023[28]))});return User[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]})[_0x9023[32]](_[_0x9023[79]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]],{id:{$in:_0x1011x1d}}),{include:[{model:MailQueue,where:{id:{$in:_0x1011x20}},required:false}]}))})[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)});default:return Agent[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]},_0x9023[83])[_0x9023[32]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})}};exports[_0x9023[86]]= function(_0x1011x14,_0x1011x15,_0x1011x16){switch(_0x1011x14[_0x9023[29]][_0x9023[35]]){case _0x9023[29]:var _0x1011x1d=[];return User[_0x9023[30]](_0x1011x14[_0x9023[29]][_0x9023[28]],{attributes:[_0x9023[28]]})[_0x9023[25]](Util[_0x9023[87]]({},{attributes:[_0x9023[28]],include:[{raw:true,model:User,attributes:[_0x9023[28]]}]}))[_0x9023[25]](function(_0x1011x19){var _0x1011x21=_[_0x9023[77]](_0x1011x19[_0x9023[76]],_0x9023[28]);_0x1011x19[_0x9023[76]][_0x9023[48]](function(_0x1011x1c){_0x1011x1d= _[_0x9023[78]](_0x1011x1d,_[_0x9023[77]](_0x1011x1c.Users,_0x9023[28]))});return User[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]})[_0x9023[32]](_[_0x9023[79]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]],{id:{$in:_0x1011x1d}}),{include:[{model:FaxQueue,where:{id:{$in:_0x1011x21}},required:false}]}))})[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)});default:return Agent[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]},_0x9023[83])[_0x9023[32]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})}};exports[_0x9023[88]]= function(_0x1011x14,_0x1011x15,_0x1011x16){switch(_0x1011x14[_0x9023[29]][_0x9023[35]]){case _0x9023[29]:var _0x1011x1d=[];return User[_0x9023[30]](_0x1011x14[_0x9023[29]][_0x9023[28]],{attributes:[_0x9023[28]]})[_0x9023[25]](Util[_0x9023[89]]({},{attributes:[_0x9023[28]],include:[{raw:true,model:User,attributes:[_0x9023[28]]}]}))[_0x9023[25]](function(_0x1011x19){var _0x1011x22=_[_0x9023[77]](_0x1011x19[_0x9023[76]],_0x9023[28]);_0x1011x19[_0x9023[76]][_0x9023[48]](function(_0x1011x1c){_0x1011x1d= _[_0x9023[78]](_0x1011x1d,_[_0x9023[77]](_0x1011x1c.Users,_0x9023[28]))});return User[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]})[_0x9023[32]](_[_0x9023[79]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]],{id:{$in:_0x1011x1d}}),{include:[{model:SmsQueue,where:{id:{$in:_0x1011x22}},required:false}]}))})[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)});default:return Agent[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]},_0x9023[83])[_0x9023[32]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})}};exports[_0x9023[90]]= function(_0x1011x14,_0x1011x15,_0x1011x16){switch(_0x1011x14[_0x9023[29]][_0x9023[35]]){case _0x9023[29]:var _0x1011x1d=[];return User[_0x9023[30]](_0x1011x14[_0x9023[29]][_0x9023[28]],{attributes:[_0x9023[28]]})[_0x9023[25]](Util[_0x9023[91]]({},{attributes:[_0x9023[28]],include:[{raw:true,model:User,attributes:[_0x9023[28]]}]}))[_0x9023[25]](function(_0x1011x19){var _0x1011x23=_[_0x9023[77]](_0x1011x19[_0x9023[76]],_0x9023[28]);_0x1011x19[_0x9023[76]][_0x9023[48]](function(_0x1011x1c){_0x1011x1d= _[_0x9023[78]](_0x1011x1d,_[_0x9023[77]](_0x1011x1c.Users,_0x9023[28]))});return User[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]})[_0x9023[32]](_[_0x9023[79]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]],{id:{$in:_0x1011x1d}}),{include:[{model:OpenchannelQueue,where:{id:{$in:_0x1011x23}},required:false}]}))})[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)});default:return Agent[_0x9023[34]](_0x9023[33],{method:[_0x9023[71],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[72],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[73],_0x1011x14[_0x9023[26]]]},{method:[_0x9023[74],_0x1011x14[_0x9023[26]]]},_0x9023[83])[_0x9023[32]](Util[_0x9023[31]](_0x1011x14[_0x9023[26]]))[_0x9023[25]](function(_0x1011x18){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x18)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})}};exports[_0x9023[92]]= function(_0x1011x14,_0x1011x15){return Agent[_0x9023[34]](_0x9023[33])[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]])[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](404)};return _0x1011x15[_0x9023[23]](_0x1011x1a)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[93]]= function(_0x1011x14,_0x1011x15){return Agent[_0x9023[34]](_0x9023[33])[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]])[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](404)};return _0x1011x1a[_0x9023[95]]({attributes:[_0x9023[41]]})})[_0x9023[25]](function(_0x1011x1e){return _0x1011x15[_0x9023[23]]({count:_0x1011x1e[_0x9023[94]],rows:_0x1011x1e})})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[96]]= function(_0x1011x14,_0x1011x15){return Agent[_0x9023[34]](_0x9023[33])[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]])[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](404)};return _0x1011x1a[_0x9023[97]]({attributes:[_0x9023[28]]})})[_0x9023[25]](function(_0x1011x1f){return _0x1011x15[_0x9023[23]]({count:_0x1011x1f[_0x9023[94]],rows:_0x1011x1f})})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[98]]= function(_0x1011x14,_0x1011x15){return Agent[_0x9023[34]](_0x9023[33])[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]])[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](404)};return _0x1011x1a[_0x9023[99]]({attributes:[_0x9023[28]]})})[_0x9023[25]](function(_0x1011x20){return _0x1011x15[_0x9023[23]]({count:_0x1011x20[_0x9023[94]],rows:_0x1011x20})})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[100]]= function(_0x1011x14,_0x1011x15){return Agent[_0x9023[34]](_0x9023[33])[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]])[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](404)};return _0x1011x1a[_0x9023[101]]({attributes:[_0x9023[28]]})})[_0x9023[25]](function(_0x1011x21){return _0x1011x15[_0x9023[23]]({count:_0x1011x21[_0x9023[94]],rows:_0x1011x21})})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[102]]= function(_0x1011x14,_0x1011x15){return Agent[_0x9023[34]](_0x9023[33])[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]])[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](404)};return _0x1011x1a[_0x9023[103]]({attributes:[_0x9023[28]]})})[_0x9023[25]](function(_0x1011x22){return _0x1011x15[_0x9023[23]]({count:_0x1011x22[_0x9023[94]],rows:_0x1011x22})})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[104]]= function(_0x1011x14,_0x1011x15){return Agent[_0x9023[34]](_0x9023[33])[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]])[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](404)};return _0x1011x1a[_0x9023[105]]({attributes:[_0x9023[28]]})})[_0x9023[25]](function(_0x1011x24){return _0x1011x15[_0x9023[23]]({count:_0x1011x24[_0x9023[94]],rows:_0x1011x24})})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[106]]= function(_0x1011x14,_0x1011x15){var _0x1011x25;_0x1011x14[_0x9023[39]][_0x9023[35]]= _0x9023[33];return sequelize[_0x9023[116]](function(_0x1011x26){return Setting[_0x9023[30]](1)[_0x9023[25]](function(_0x1011x28){var _0x1011x29=String(_0x1011x14[_0x9023[39]][_0x9023[112]]);var _0x1011x2a=_0x1011x28[_0x9023[113]]?/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/:/^.{6,}$/;if(!_0x1011x2a[_0x9023[114]](_0x1011x29)){throw  new Error(_0x9023[115])};return Agent[_0x9023[34]](_0x9023[33])[_0x9023[106]](_0x1011x14[_0x9023[39]],{transaction:_0x1011x26})})[_0x9023[25]](userTools[_0x9023[111]]({transaction:_0x1011x26}))[_0x9023[25]](function(_0x1011x1a){_0x1011x25= _0x1011x1a;return Team[_0x9023[110]]({where:{defaultEntry:true}})})[_0x9023[25]](function(_0x1011x27){return _0x1011x27[_0x9023[109]](_0x1011x25[_0x9023[28]],{transaction:_0x1011x26})})})[_0x9023[25]](function(){return _0x1011x15[_0x9023[24]](201)[_0x9023[23]](_0x1011x25)})[_0x9023[22]](sequelize.UniqueConstraintError,function(_0x1011x17){return Util[_0x9023[108]][_0x9023[107]](_0x1011x15,_0x1011x17)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[117]]= function(_0x1011x14,_0x1011x15){var _0x1011x2b;var _0x1011x2c;var _0x1011x2d=[];var _0x1011x29=String(_0x1011x14[_0x9023[39]][_0x9023[112]]);return sequelize[_0x9023[116]](function(_0x1011x26){return Setting[_0x9023[30]](1)[_0x9023[25]](function(_0x1011x28){_0x1011x2c= _0x1011x28;var _0x1011x2a=_0x1011x2c[_0x9023[113]]?/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/:/^[a-zA-Z0-9]{6,}$/;if(!_0x1011x2a[_0x9023[114]](_0x1011x29)){throw  new Error(_0x9023[119])};var _0x1011x2e=0;if(_0x1011x14[_0x9023[39]][_0x9023[121]](_0x9023[120])&& _[_0x9023[122]](_0x1011x14[_0x9023[39]][_0x9023[120]])&& _0x1011x14[_0x9023[39]][_0x9023[120]]>= 0){_0x1011x2e= _0x1011x14[_0x9023[39]][_0x9023[120]];delete _0x1011x14[_0x9023[39]][_0x9023[120]]};var _0x1011x2f=_0x1011x14[_0x9023[39]][_0x9023[123]];delete _0x1011x14[_0x9023[39]][_0x9023[123]];if(_0x1011x14[_0x9023[39]][_0x9023[124]]){_0x1011x14[_0x9023[39]][_0x9023[35]]= _0x9023[33];for(var _0x1011x30=_0x1011x2e;_0x1011x30< _0x1011x14[_0x9023[39]][_0x9023[124]]+ _0x1011x2e;_0x1011x30++,_0x1011x2f++){var _0x1011x31=_[_0x9023[125]](_0x1011x14[_0x9023[39]]);_0x1011x31[_0x9023[126]]= _0x1011x2f;_0x1011x31[_0x9023[41]]= _0x1011x31[_0x9023[41]]+ _0x1011x30;_0x1011x31[_0x9023[127]]= _0x1011x31[_0x9023[127]]+ _0x1011x30;_0x1011x31[_0x9023[128]]= _0x1011x31[_0x9023[128]][_0x9023[130]](_0x9023[129])[0]+ _0x1011x30+ _0x9023[129]+ _0x1011x31[_0x9023[128]][_0x9023[130]](_0x9023[129])[1];_0x1011x2d[_0x9023[47]](_0x1011x31)}}else {throw  new Error(_0x9023[131])};return Agent[_0x9023[117]](_0x1011x2d,{transaction:_0x1011x26,individualHooks:true})})[_0x9023[25]](function(_0x1011x1d){_0x1011x2b= _0x1011x1d;return Team[_0x9023[110]]({where:{defaultEntry:true}})})[_0x9023[25]](function(_0x1011x27){return _0x1011x27[_0x9023[118]](_[_0x9023[77]](_0x1011x2b,_0x9023[28]),{transaction:_0x1011x26})})})[_0x9023[25]](function(){return _0x1011x15[_0x9023[37]](201)})[_0x9023[22]](sequelize.UniqueConstraintError,function(_0x1011x17){return Util[_0x9023[108]][_0x9023[107]](_0x1011x15,_0x1011x17)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[132]]= function(_0x1011x14,_0x1011x15){if(_0x1011x14[_0x9023[39]][_0x9023[28]]){delete _0x1011x14[_0x9023[39]][_0x9023[28]]};delete _0x1011x14[_0x9023[39]][_0x9023[126]];delete _0x1011x14[_0x9023[39]][_0x9023[35]];delete _0x1011x14[_0x9023[39]][_0x9023[41]];delete _0x1011x14[_0x9023[39]][_0x9023[112]];var _0x1011x25;return sequelize[_0x9023[116]](function(_0x1011x26){return Agent[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]])[_0x9023[25]](function(_0x1011x1a){if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](404)};var _0x1011x32=_[_0x9023[79]](_0x1011x1a,_0x1011x14[_0x9023[39]]);return _0x1011x32[_0x9023[134]]({transaction:_0x1011x26})})[_0x9023[25]](function(_0x1011x1a){_0x1011x25= _0x1011x1a;return _0x1011x1a})[_0x9023[25]](userTools[_0x9023[133]]({transaction:_0x1011x26}))[_0x9023[25]](function(){return _0x1011x15[_0x9023[24]](200)[_0x9023[23]](_0x1011x25)})})[_0x9023[22]](sequelize.UniqueConstraintError,function(_0x1011x17){return Util[_0x9023[108]][_0x9023[107]](_0x1011x15,_0x1011x17)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[135]]= function(_0x1011x14,_0x1011x15){var _0x1011x25;return Agent[_0x9023[30]](_0x1011x14[_0x9023[61]][_0x9023[28]])[_0x9023[25]](function(_0x1011x1a){_0x1011x25= _0x1011x1a;if(!_0x1011x1a){return _0x1011x15[_0x9023[37]](404)};return _0x1011x1a[_0x9023[135]]()})[_0x9023[25]](function(){return _0x1011x15[_0x9023[37]](204)})[_0x9023[22]](sequelize.ForeignKeyConstraintError,function(_0x1011x17){return Util[_0x9023[108]][_0x9023[136]](_0x1011x15,_0x9023[33],_0x1011x25[_0x9023[41]],_0x1011x17)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};exports[_0x9023[137]]= function(_0x1011x14,_0x1011x15){return Agent[_0x9023[135]]({where:{id:_0x1011x14[_0x9023[26]][_0x9023[63]]},individualHooks:true})[_0x9023[25]](function(){return _0x1011x15[_0x9023[37]](204)})[_0x9023[22]](function(_0x1011x17){return handleError(_0x1011x15,_0x1011x17)})};function handleError(_0x1011x15,_0x1011x17){logger[_0x9023[139]](_0x1011x17[_0x9023[138]]);return _0x1011x15[_0x9023[24]](500)[_0x9023[23]](_0x1011x17)}
\ No newline at end of file