Built motion from commit a5685af.|0.0.128
[motion.git] / server / config / ami / action.js
index 2650d8f..9536854 100644 (file)
@@ -1 +1 @@
-var _0xc717=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6D\x6F\x6D\x65\x6E\x74","\x75\x74\x69\x6C","\x62\x6C\x75\x65\x62\x69\x72\x64","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x41\x63\x74\x69\x6F\x6E","\x55\x73\x65\x72","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x53\x6D\x73\x51\x75\x65\x75\x65","\x41\x63\x74\x69\x6F\x6E\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x76\x6F\x69\x63\x65","\x63\x68\x61\x74","\x6D\x61\x69\x6C","\x66\x61\x78","\x73\x6D\x73","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C","\x74\x68\x65\x6E","\x63\x68\x61\x6E\x6E\x65\x6C","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x74\x79\x70\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x62\x65\x66\x6F\x72\x65\x43\x72\x65\x61\x74\x65","\x6E\x61\x6D\x65","\x25\x73\x2F\x25\x73","\x53\x49\x50","\x50\x41\x55\x53\x45","\x62\x6F\x64\x79","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x64\x61\x74\x61\x34","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x61\x63\x74\x69\x6F\x6E","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x41\x6C\x72\x65\x61\x64\x79\x20\x50\x61\x75\x73\x65\x20\x4F\x66\x66","\x66\x69\x6E\x64\x4F\x6E\x65","\x25\x73\x25\x73","\x50\x61\x75\x73\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x4C\x4F\x47\x49\x4E","\x51\x75\x65\x75\x65\x41\x64\x64","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x51\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65","\x69\x64","\x53\x49\x50\x2F\x25\x73","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x71\x75\x65\x75\x65\x73","\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x71\x75\x65\x75\x65","\x64\x65\x73\x74\x72\x6F\x79","\x71\x75\x65\x75\x65\x49\x64","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x67\x65\x6E\x74","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x42\x79\x49\x64","\x70\x61\x75\x73\x65","\x75\x6E\x70\x61\x75\x73\x65","\x6C\x6F\x67\x69\x6E","\x6C\x6F\x67\x6F\x75\x74","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x63\x74\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0xc717[0];var moment=require(_0xc717[1]);var util=require(_0xc717[2]);var Promise=require(_0xc717[3]);var Sequelize=require(_0xc717[5])[_0xc717[4]];var ReportMember=require(_0xc717[5])[_0xc717[6]];var _Action=require(_0xc717[5])[_0xc717[7]];var Agent=require(_0xc717[5])[_0xc717[8]];var VoiceQueue=require(_0xc717[5])[_0xc717[9]];var UserHasVoiceQueue=require(_0xc717[5])[_0xc717[10]];var UserHasChatQueue=require(_0xc717[5])[_0xc717[11]];var UserHasMailQueue=require(_0xc717[5])[_0xc717[12]];var UserHasFaxQueue=require(_0xc717[5])[_0xc717[13]];var UserHasSmsQueue=require(_0xc717[5])[_0xc717[14]];function Action(_0x910fxf){console[_0xc717[16]](_0xc717[15]);var _0x910fx10=[_0xc717[17],_0xc717[18],_0xc717[19],_0xc717[20],_0xc717[21]];_Action[_0xc717[22]](function(_0x910fx11,_0x910fx12){return _0x910fx30(_0x910fx11,_0x910fx12,_0x910fxf)});ReportMember[_0xc717[35]](function(_0x910fx11,_0x910fx12){return ReportMember[_0xc717[34]]({where:{channel:_0x910fx11[_0xc717[30]],membername:_0x910fx11[_0xc717[31]],interface:_0x910fx11[_0xc717[32]],type:_0x910fx11[_0xc717[33]],exitAt:null}})[_0xc717[29]](function(_0x910fx13){var _0x910fx14=[];_0x910fx13[_0xc717[27]](function(_0x910fx15){_0x910fx14[_0xc717[26]](_0x910fx15[_0xc717[25]]({exitAt:moment()[_0xc717[24]](_0xc717[23])}))});return Promise[_0xc717[28]](_0x910fx14)})});function _0x910fx16(_0x910fx12,_0x910fx17){return function(_0x910fx18){return Promise[_0xc717[49]](_0x910fxf[_0xc717[48]])({action:_0xc717[47],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),paused:true,reason:_0x910fx12[_0xc717[40]][_0xc717[33]]||_0x910fx17[_0xc717[41]]})[_0xc717[29]](function(_0x910fx1b){return _0x910fx18[_0xc717[25]]({voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,pauseType:_0x910fx12[_0xc717[40]][_0xc717[33]]||_0x910fx17[_0xc717[41]],lastPauseAt:moment()[_0xc717[24]](_0xc717[23])},{transaction:_0x910fx12[_0xc717[45]]||null})})[_0xc717[29]](function(_0x910fx18){var _0x910fx19=[];_0x910fx10[_0xc717[27]](function(_0x910fx1a){_0x910fx19[_0xc717[26]]({channel:_0x910fx1a,membername:_0x910fx18[_0xc717[36]],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),type:_0xc717[39],enterAt:moment()[_0xc717[24]](_0xc717[23]),data1:_0x910fx12[_0xc717[40]][_0xc717[33]]||_0x910fx17[_0xc717[41]],data2:_0x910fx17[_0xc717[42]],data3:_0x910fx17[_0xc717[43]],data4:_0x910fx17[_0xc717[44]]})});return ReportMember[_0xc717[46]](_0x910fx19,{individualHooks:true,transaction:_0x910fx12[_0xc717[45]]||null})})}}function _0x910fx1c(_0x910fx12,_0x910fx17){return function(_0x910fx18){if(!_0x910fx12[_0xc717[40]]){_0x910fx12[_0xc717[40]]={}};switch(_0x910fx12[_0xc717[40]][_0xc717[30]]){case _0xc717[17]:return Promise[_0xc717[49]](_0x910fxf[_0xc717[48]])({action:_0xc717[47],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),paused:false,reason:_0x910fx12[_0xc717[40]][_0xc717[33]]})[_0xc717[29]](function(){return _0x910fx18[_0xc717[25]]({voicePause:false},{transaction:_0x910fx12[_0xc717[45]]||null})})[_0xc717[29]](function(_0x910fx18){return ReportMember[_0xc717[51]]({where:{channel:_0x910fx12[_0xc717[40]][_0xc717[30]],membername:_0x910fx18[_0xc717[36]],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),type:_0xc717[39],exitAt:null}})})[_0xc717[29]](_0x910fx2d({message:_0xc717[50]}))[_0xc717[29]](function(_0x910fx1d){return _0x910fx1d[_0xc717[25]]({exitAt:moment()[_0xc717[24]](_0xc717[23])},{individualHooks:true,transaction:_0x910fx12[_0xc717[45]]||null})})[_0xc717[29]](function(){return _0x910fx18});case _0xc717[18]:;case _0xc717[19]:;case _0xc717[20]:;case _0xc717[21]:var _0x910fx1e={};_0x910fx1e[util[_0xc717[24]](_0xc717[52],_0x910fx12[_0xc717[40]][_0xc717[30]],_0xc717[53])]=false;return _0x910fx18[_0xc717[25]](_0x910fx1e,{transaction:_0x910fx12[_0xc717[45]]||null})[_0xc717[29]](function(_0x910fx18){return ReportMember[_0xc717[51]]({where:{channel:_0x910fx12[_0xc717[40]][_0xc717[30]],membername:_0x910fx18[_0xc717[36]],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),type:_0xc717[39],exitAt:null}})})[_0xc717[29]](_0x910fx2d({message:_0xc717[50]}))[_0xc717[29]](function(_0x910fx1d){return _0x910fx1d[_0xc717[25]]({exitAt:moment()[_0xc717[24]](_0xc717[23])},{individualHooks:true,transaction:_0x910fx12[_0xc717[45]]||null})})[_0xc717[29]](function(){return _0x910fx18});default:var _0x910fx17=Promise[_0xc717[49]](_0x910fxf[_0xc717[48]]);return _0x910fx17({action:_0xc717[47],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),paused:false})[_0xc717[55]](function(_0x910fx22){console[_0xc717[54]](_0x910fx22)})[_0xc717[29]](function(){return _0x910fx18[_0xc717[25]]({voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false},{transaction:_0x910fx12[_0xc717[45]]||null})})[_0xc717[29]](function(_0x910fx18){return ReportMember[_0xc717[34]]({where:{membername:_0x910fx18[_0xc717[36]],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),type:_0xc717[39],exitAt:null}})})[_0xc717[29]](function(_0x910fx1f){var _0x910fx20=[];_0x910fx1f[_0xc717[27]](function(_0x910fx21){_0x910fx20[_0xc717[26]](_0x910fx21[_0xc717[25]]({exitAt:moment()[_0xc717[24]](_0xc717[23])}))});return Promise[_0xc717[28]](_0x910fx20)})[_0xc717[29]](function(){return _0x910fx18})}}}function _0x910fx23(_0x910fx12,_0x910fx17){return function(_0x910fx18){return _0x910fx18[_0xc717[58]]()[_0xc717[29]](function(_0x910fx24){var _0x910fx25=[];_0x910fx24[_0xc717[27]](function(_0x910fx26){_0x910fx25[_0xc717[26]](_0x910fxf[_0xc717[48]]({action:_0xc717[57],queue:_0x910fx26[_0xc717[36]],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),membername:_0x910fx18[_0xc717[36]]}))});return Promise[_0xc717[28]](_0x910fx25)})[_0xc717[29]](function(_0x910fx1b){var _0x910fx19=[];_0x910fx10[_0xc717[27]](function(_0x910fx1a){_0x910fx19[_0xc717[26]]({channel:_0x910fx1a,membername:_0x910fx18[_0xc717[36]],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),type:_0xc717[56],enterAt:moment()[_0xc717[24]](_0xc717[23])})});return ReportMember[_0xc717[46]](_0x910fx19,{individualHooks:true})})}}function _0x910fx27(_0x910fx12,_0x910fx17){return function(_0x910fx18){return VoiceQueue[_0xc717[34]]()[_0xc717[29]](function(_0x910fx24){var _0x910fx25=[];_0x910fx24[_0xc717[27]](function(_0x910fx26){_0x910fx25[_0xc717[26]](_0x910fxf[_0xc717[48]]({action:_0xc717[59],queue:_0x910fx26[_0xc717[36]],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]])}))});return Promise[_0xc717[28]](_0x910fx25)[_0xc717[55]](function(_0x910fx22){console[_0xc717[54]](_0x910fx22)})})[_0xc717[29]](function(_0x910fx1b){return ReportMember[_0xc717[34]]({where:{membername:_0x910fx18[_0xc717[36]],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),type:_0xc717[56],exitAt:null}})})[_0xc717[29]](function(_0x910fx1f){var _0x910fx20=[];_0x910fx1f[_0xc717[27]](function(_0x910fx21){_0x910fx20[_0xc717[26]](_0x910fx21[_0xc717[25]]({exitAt:moment()[_0xc717[24]](_0xc717[23])}))});return Promise[_0xc717[28]](_0x910fx20)})}}function _0x910fx28(_0x910fx12,_0x910fx17){return function(_0x910fx18){var _0x910fx29=[];switch(_0x910fx12[_0xc717[40]][_0xc717[30]]){case _0xc717[17]:_0x910fx12[_0xc717[40]][_0xc717[63]][_0xc717[27]](function(_0x910fx2a){_0x910fx29[_0xc717[26]](UserHasVoiceQueue[_0xc717[62]]({where:{UserId:_0x910fx18[_0xc717[60]],queue:_0x910fx2a},defaults:{queue:_0x910fx2a,location:util[_0xc717[24]](_0xc717[61],_0x910fx18[_0xc717[36]]),membername:_0x910fx18[_0xc717[36]],UserId:_0x910fx18[_0xc717[60]]},transaction:_0x910fx12[_0xc717[45]]||null}))});return Promise[_0xc717[28]](_0x910fx29)[_0xc717[29]](function(){var _0x910fx25=[];_0x910fx12[_0xc717[40]][_0xc717[63]][_0xc717[27]](function(_0x910fx2a){_0x910fx25[_0xc717[26]](_0x910fxf[_0xc717[48]]({action:_0xc717[57],queue:_0x910fx2a,interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]]),membername:_0x910fx18[_0xc717[36]]}))});return Promise[_0xc717[28]](_0x910fx25)})[_0xc717[55]](function(_0x910fx22){console[_0xc717[54]](_0x910fx22)});case _0xc717[18]:_0x910fx12[_0xc717[40]][_0xc717[63]][_0xc717[27]](function(_0x910fx2a){_0x910fx29[_0xc717[26]](UserHasChatQueue[_0xc717[62]]({where:{UserId:_0x910fx18[_0xc717[60]],ChatQueueId:_0x910fx2a[_0xc717[60]]},defaults:{ChatQueueId:_0x910fx2a[_0xc717[60]],queue:_0x910fx2a[_0xc717[36]],UserId:_0x910fx18[_0xc717[60]]},transaction:_0x910fx12[_0xc717[45]]||null}))});return Promise[_0xc717[28]](_0x910fx29)[_0xc717[55]](function(_0x910fx22){console[_0xc717[16]](_0x910fx22)});case _0xc717[19]:_0x910fx12[_0xc717[40]][_0xc717[63]][_0xc717[27]](function(_0x910fx2a){_0x910fx29[_0xc717[26]](UserHasMailQueue[_0xc717[62]]({where:{UserId:_0x910fx18[_0xc717[60]],MailQueueId:_0x910fx2a[_0xc717[60]]},defaults:{MailQueueId:_0x910fx2a[_0xc717[60]],queue:_0x910fx2a[_0xc717[36]],UserId:_0x910fx18[_0xc717[60]]},transaction:_0x910fx12[_0xc717[45]]||null}))});return Promise[_0xc717[28]](_0x910fx29)[_0xc717[55]](function(_0x910fx22){console[_0xc717[16]](_0x910fx22)});case _0xc717[21]:_0x910fx12[_0xc717[40]][_0xc717[63]][_0xc717[27]](function(_0x910fx2a){_0x910fx29[_0xc717[26]](UserHasSmsQueue[_0xc717[62]]({where:{UserId:_0x910fx18[_0xc717[60]],SmsQueueId:_0x910fx2a[_0xc717[60]]},defaults:{SmsQueueId:_0x910fx2a[_0xc717[60]],queue:_0x910fx2a[_0xc717[36]],UserId:_0x910fx18[_0xc717[60]]},transaction:_0x910fx12[_0xc717[45]]||null}))});return Promise[_0xc717[28]](_0x910fx29)[_0xc717[55]](function(_0x910fx22){console[_0xc717[16]](_0x910fx22)});case _0xc717[20]:_0x910fx12[_0xc717[40]][_0xc717[63]][_0xc717[27]](function(_0x910fx2a){_0x910fx29[_0xc717[26]](UserHasFaxQueue[_0xc717[62]]({where:{UserId:_0x910fx18[_0xc717[60]],FaxQueueId:_0x910fx2a[_0xc717[60]]},defaults:{faxQueueId:_0x910fx2a[_0xc717[60]],queue:_0x910fx2a[_0xc717[36]],UserId:_0x910fx18[_0xc717[60]]},transaction:_0x910fx12[_0xc717[45]]||null}))});return Promise[_0xc717[28]](_0x910fx29)[_0xc717[55]](function(_0x910fx22){console[_0xc717[16]](_0x910fx22)});default:}}}function _0x910fx2b(_0x910fx12,_0x910fx17){return function(_0x910fx18){switch(_0x910fx12[_0xc717[40]][_0xc717[30]]){case _0xc717[17]:return UserHasVoiceQueue[_0xc717[66]]({where:{UserId:_0x910fx18[_0xc717[60]],queue:_0x910fx12[_0xc717[40]][_0xc717[65]]},transaction:_0x910fx12[_0xc717[45]]||null,individualHooks:true})[_0xc717[29]](function(){var _0x910fx2c=Promise[_0xc717[49]](_0x910fxf[_0xc717[48]]);return _0x910fx2c({action:_0xc717[59],queue:_0x910fx12[_0xc717[40]][_0xc717[65]],interface:util[_0xc717[24]](_0xc717[37],_0xc717[38],_0x910fx18[_0xc717[36]])})})[_0xc717[55]](function(_0x910fx22){console[_0xc717[54]](_0xc717[64],_0x910fx22)});case _0xc717[18]:return UserHasChatQueue[_0xc717[66]]({where:{UserId:_0x910fx18[_0xc717[60]],ChatQueueId:_0x910fx12[_0xc717[40]][_0xc717[67]]},transaction:_0x910fx12[_0xc717[45]]||null,individualHooks:true})[_0xc717[55]](function(_0x910fx22){console[_0xc717[54]](_0xc717[64],_0x910fx22)});case _0xc717[19]:return UserHasMailQueue[_0xc717[66]]({where:{UserId:_0x910fx18[_0xc717[60]],MailQueueId:_0x910fx12[_0xc717[40]][_0xc717[67]]},transaction:_0x910fx12[_0xc717[45]]||null,individualHooks:true})[_0xc717[55]](function(_0x910fx22){console[_0xc717[54]](_0xc717[64],_0x910fx22)});case _0xc717[21]:return UserHasSmsQueue[_0xc717[66]]({where:{UserId:_0x910fx18[_0xc717[60]],SmsQueueId:_0x910fx12[_0xc717[40]][_0xc717[67]]},transaction:_0x910fx12[_0xc717[45]]||null,individualHooks:true})[_0xc717[55]](function(_0x910fx22){console[_0xc717[54]](_0xc717[64],_0x910fx22)});case _0xc717[20]:return UserHasFaxQueue[_0xc717[66]]({where:{UserId:_0x910fx18[_0xc717[60]],FaxQueueId:_0x910fx12[_0xc717[40]][_0xc717[67]]},transaction:_0x910fx12[_0xc717[45]]||null,individualHooks:true})[_0xc717[55]](function(_0x910fx22){console[_0xc717[54]](_0xc717[64],_0x910fx22)});default:}}}function _0x910fx2d(_0x910fx2e){return function(_0x910fx2f){if(!_0x910fx2f){throw _0x910fx2e};return _0x910fx2f}}function _0x910fx30(_0x910fx17,_0x910fx12,_0x910fxf){switch(_0x910fx17[_0xc717[36]]){case _0xc717[71]:return Agent[_0xc717[70]](_0x910fx12[_0xc717[40]][_0xc717[69]])[_0xc717[29]](_0x910fx2d({message:_0xc717[68]}))[_0xc717[29]](_0x910fx16(_0x910fx12,_0x910fx17));case _0xc717[72]:return Agent[_0xc717[70]](_0x910fx12[_0xc717[40]][_0xc717[69]])[_0xc717[29]](_0x910fx2d({message:_0xc717[68]}))[_0xc717[29]](_0x910fx1c(_0x910fx12,_0x910fx17));case _0xc717[73]:return Agent[_0xc717[70]](_0x910fx17[_0xc717[41]])[_0xc717[29]](_0x910fx2d({message:_0xc717[68]}))[_0xc717[29]](_0x910fx23(_0x910fx12,_0x910fx17));case _0xc717[74]:return Agent[_0xc717[70]](_0x910fx17[_0xc717[41]])[_0xc717[29]](_0x910fx2d({message:_0xc717[68]}))[_0xc717[29]](_0x910fx1c(_0x910fx12,_0x910fx17))[_0xc717[29]](_0x910fx27(_0x910fx12,_0x910fx17));case _0xc717[57]:return Agent[_0xc717[70]](_0x910fx12[_0xc717[40]][_0xc717[69]])[_0xc717[29]](_0x910fx2d({message:_0xc717[68]}))[_0xc717[29]](_0x910fx28(_0x910fx12,_0x910fx17));case _0xc717[59]:return Agent[_0xc717[70]](_0x910fx12[_0xc717[40]][_0xc717[69]])[_0xc717[29]](_0x910fx2d({message:_0xc717[68]}))[_0xc717[29]](_0x910fx2b(_0x910fx12,_0x910fx17));default:throw {message:_0xc717[75]}}}return {}}module[_0xc717[76]]=Action
\ No newline at end of file
+var _0x93f9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6D\x6F\x6D\x65\x6E\x74","\x75\x74\x69\x6C","\x62\x6C\x75\x65\x62\x69\x72\x64","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x63\x74\x69\x6F\x6E","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x53\x6D\x73\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65","\x41\x63\x74\x69\x6F\x6E\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x76\x6F\x69\x63\x65","\x63\x68\x61\x74","\x6D\x61\x69\x6C","\x66\x61\x78","\x73\x6D\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x75\x70\x64\x61\x74\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C","\x74\x68\x65\x6E","\x63\x68\x61\x6E\x6E\x65\x6C","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x69\x6E\x74\x65\x72\x66\x61\x63\x65","\x74\x79\x70\x65","\x66\x69\x6E\x64\x41\x6C\x6C","\x62\x65\x66\x6F\x72\x65\x43\x72\x65\x61\x74\x65","\x6E\x61\x6D\x65","\x25\x73\x2F\x25\x73","\x53\x49\x50","\x50\x41\x55\x53\x45","\x62\x6F\x64\x79","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x64\x61\x74\x61\x34","\x72\x6F\x6C\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x61\x63\x74\x69\x6F\x6E","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x6C\x6F\x67\x69\x6E\x49\x6E\x50\x61\x75\x73\x65","\x6F\x6E\x6C\x69\x6E\x65","\x44\x45\x46\x41\x55\x4C\x54\x20\x50\x41\x55\x53\x45","\x41\x6C\x72\x65\x61\x64\x79\x20\x50\x61\x75\x73\x65\x20\x4F\x66\x66","\x66\x69\x6E\x64\x4F\x6E\x65","\x25\x73\x25\x73","\x50\x61\x75\x73\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x4C\x4F\x47\x49\x4E","\x51\x75\x65\x75\x65\x41\x64\x64","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x51\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65","\x69\x64","\x53\x49\x50\x2F\x25\x73","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x71\x75\x65\x75\x65\x73","\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x71\x75\x65\x75\x65","\x64\x65\x73\x74\x72\x6F\x79","\x71\x75\x65\x75\x65\x49\x64","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x67\x65\x6E\x74","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x42\x79\x49\x64","\x70\x61\x75\x73\x65","\x75\x6E\x70\x61\x75\x73\x65","\x6C\x6F\x67\x69\x6E","\x6C\x6F\x67\x6F\x75\x74","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x63\x74\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0x93f9[0];var moment=require(_0x93f9[1]);var util=require(_0x93f9[2]);var Promise=require(_0x93f9[3]);var Agent=require(_0x93f9[5])[_0x93f9[4]];var _Action=require(_0x93f9[5])[_0x93f9[6]];var Sequelize=require(_0x93f9[5])[_0x93f9[7]];var VoiceQueue=require(_0x93f9[5])[_0x93f9[8]];var ReportMember=require(_0x93f9[5])[_0x93f9[9]];var UserHasVoiceQueue=require(_0x93f9[5])[_0x93f9[10]];var UserHasChatQueue=require(_0x93f9[5])[_0x93f9[11]];var UserHasMailQueue=require(_0x93f9[5])[_0x93f9[12]];var UserHasFaxQueue=require(_0x93f9[5])[_0x93f9[13]];var UserHasSmsQueue=require(_0x93f9[5])[_0x93f9[14]];var UserHasOpenchannelQueue=require(_0x93f9[5])[_0x93f9[15]];function Action(_0x84bfx10){console[_0x93f9[17]](_0x93f9[16]);var _0x84bfx11=[_0x93f9[18],_0x93f9[19],_0x93f9[20],_0x93f9[21],_0x93f9[22],_0x93f9[23]];_Action[_0x93f9[24]](function(_0x84bfx12,_0x84bfx13){return _0x84bfx32(_0x84bfx12,_0x84bfx13,_0x84bfx10)});ReportMember[_0x93f9[37]](function(_0x84bfx12,_0x84bfx13){return ReportMember[_0x93f9[36]]({where:{channel:_0x84bfx12[_0x93f9[32]],membername:_0x84bfx12[_0x93f9[33]],interface:_0x84bfx12[_0x93f9[34]],type:_0x84bfx12[_0x93f9[35]],exitAt:null}})[_0x93f9[31]](function(_0x84bfx14){var _0x84bfx15=[];_0x84bfx14[_0x93f9[29]](function(_0x84bfx16){_0x84bfx15[_0x93f9[28]](_0x84bfx16[_0x93f9[27]]({exitAt:moment()[_0x93f9[26]](_0x93f9[25])}))});return Promise[_0x93f9[30]](_0x84bfx15)})});function _0x84bfx17(_0x84bfx13,_0x84bfx18){return function(_0x84bfx19){return Promise[_0x93f9[53]](_0x84bfx10[_0x93f9[52]])({action:_0x93f9[51],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),paused:true,reason:_0x84bfx13[_0x93f9[42]][_0x93f9[35]]|| _0x84bfx18[_0x93f9[43]]})[_0x93f9[31]](function(_0x84bfx1c){return _0x84bfx19[_0x93f9[27]]({voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0x84bfx13[_0x93f9[42]][_0x93f9[35]]|| _0x84bfx18[_0x93f9[43]],lastPauseAt:moment()[_0x93f9[26]](_0x93f9[25])},{transaction:_0x84bfx13[_0x93f9[49]]|| null})})[_0x93f9[31]](function(_0x84bfx19){var _0x84bfx1a=[];_0x84bfx11[_0x93f9[29]](function(_0x84bfx1b){_0x84bfx1a[_0x93f9[28]]({channel:_0x84bfx1b,membername:_0x84bfx19[_0x93f9[38]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),type:_0x93f9[41],enterAt:moment()[_0x93f9[26]](_0x93f9[25]),data1:_0x84bfx13[_0x93f9[42]][_0x93f9[35]]|| _0x84bfx18[_0x93f9[43]],data2:_0x84bfx18[_0x93f9[44]],data3:_0x84bfx18[_0x93f9[45]],data4:_0x84bfx18[_0x93f9[46]],role:_0x84bfx19[_0x93f9[47]],internal:_0x84bfx19[_0x93f9[48]]})});return ReportMember[_0x93f9[50]](_0x84bfx1a,{individualHooks:true,transaction:_0x84bfx13[_0x93f9[49]]|| null})})}}function _0x84bfx1d(_0x84bfx13,_0x84bfx18){return function(_0x84bfx19){if(_0x84bfx19[_0x93f9[54]]&& !_0x84bfx19[_0x93f9[55]]){return Promise[_0x93f9[53]](_0x84bfx10[_0x93f9[52]])({action:_0x93f9[51],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),paused:true,reason:_0x93f9[56]})[_0x93f9[31]](function(_0x84bfx1c){return _0x84bfx19[_0x93f9[27]]({voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0x93f9[56],lastPauseAt:moment()[_0x93f9[26]](_0x93f9[25])},{transaction:_0x84bfx13[_0x93f9[49]]|| null})})[_0x93f9[31]](function(_0x84bfx19){var _0x84bfx1a=[];_0x84bfx11[_0x93f9[29]](function(_0x84bfx1b){_0x84bfx1a[_0x93f9[28]]({channel:_0x84bfx1b,membername:_0x84bfx19[_0x93f9[38]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),type:_0x93f9[41],enterAt:moment()[_0x93f9[26]](_0x93f9[25]),data1:_0x93f9[56],data2:_0x84bfx18[_0x93f9[44]],data3:_0x84bfx18[_0x93f9[45]],data4:_0x93f9[56],role:_0x84bfx19[_0x93f9[47]],internal:_0x84bfx19[_0x93f9[48]]})});return ReportMember[_0x93f9[50]](_0x84bfx1a,{individualHooks:true,transaction:_0x84bfx13[_0x93f9[49]]|| null})})}}}function _0x84bfx1e(_0x84bfx13,_0x84bfx18){return function(_0x84bfx19){if(!_0x84bfx13[_0x93f9[42]]){_0x84bfx13[_0x93f9[42]]= {}};switch(_0x84bfx13[_0x93f9[42]][_0x93f9[32]]){case _0x93f9[18]:return Promise[_0x93f9[53]](_0x84bfx10[_0x93f9[52]])({action:_0x93f9[51],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),paused:false,reason:_0x84bfx13[_0x93f9[42]][_0x93f9[35]]})[_0x93f9[31]](function(){return _0x84bfx19[_0x93f9[27]]({voicePause:false},{transaction:_0x84bfx13[_0x93f9[49]]|| null})})[_0x93f9[31]](function(_0x84bfx19){return ReportMember[_0x93f9[58]]({where:{channel:_0x84bfx13[_0x93f9[42]][_0x93f9[32]],membername:_0x84bfx19[_0x93f9[38]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),type:_0x93f9[41],exitAt:null}})})[_0x93f9[31]](_0x84bfx2f({message:_0x93f9[57]}))[_0x93f9[31]](function(_0x84bfx1f){return _0x84bfx1f[_0x93f9[27]]({exitAt:moment()[_0x93f9[26]](_0x93f9[25])},{individualHooks:true,transaction:_0x84bfx13[_0x93f9[49]]|| null})})[_0x93f9[31]](function(){return _0x84bfx19});case _0x93f9[19]:;case _0x93f9[20]:;case _0x93f9[21]:;case _0x93f9[22]:;case _0x93f9[23]:var _0x84bfx20={};_0x84bfx20[util[_0x93f9[26]](_0x93f9[59],_0x84bfx13[_0x93f9[42]][_0x93f9[32]],_0x93f9[60])]= false;return _0x84bfx19[_0x93f9[27]](_0x84bfx20,{transaction:_0x84bfx13[_0x93f9[49]]|| null})[_0x93f9[31]](function(_0x84bfx19){return ReportMember[_0x93f9[58]]({where:{channel:_0x84bfx13[_0x93f9[42]][_0x93f9[32]],membername:_0x84bfx19[_0x93f9[38]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),type:_0x93f9[41],exitAt:null}})})[_0x93f9[31]](_0x84bfx2f({message:_0x93f9[57]}))[_0x93f9[31]](function(_0x84bfx1f){return _0x84bfx1f[_0x93f9[27]]({exitAt:moment()[_0x93f9[26]](_0x93f9[25])},{individualHooks:true,transaction:_0x84bfx13[_0x93f9[49]]|| null})})[_0x93f9[31]](function(){return _0x84bfx19});default:var _0x84bfx18=Promise[_0x93f9[53]](_0x84bfx10[_0x93f9[52]]);return _0x84bfx18({action:_0x93f9[51],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),paused:false})[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[61]](_0x84bfx24)})[_0x93f9[31]](function(){return _0x84bfx19[_0x93f9[27]]({voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false},{transaction:_0x84bfx13[_0x93f9[49]]|| null})})[_0x93f9[31]](function(_0x84bfx19){return ReportMember[_0x93f9[36]]({where:{membername:_0x84bfx19[_0x93f9[38]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),type:_0x93f9[41],exitAt:null}})})[_0x93f9[31]](function(_0x84bfx21){var _0x84bfx22=[];_0x84bfx21[_0x93f9[29]](function(_0x84bfx23){_0x84bfx22[_0x93f9[28]](_0x84bfx23[_0x93f9[27]]({exitAt:moment()[_0x93f9[26]](_0x93f9[25])}))});return Promise[_0x93f9[30]](_0x84bfx22)})[_0x93f9[31]](function(){return _0x84bfx19})}}}function _0x84bfx25(_0x84bfx13,_0x84bfx18){return function(_0x84bfx19){if(!_0x84bfx19[_0x93f9[55]]){return _0x84bfx19[_0x93f9[65]]()[_0x93f9[31]](function(_0x84bfx26){var _0x84bfx27=[];_0x84bfx26[_0x93f9[29]](function(_0x84bfx28){_0x84bfx27[_0x93f9[28]](_0x84bfx10[_0x93f9[52]]({action:_0x93f9[64],queue:_0x84bfx28[_0x93f9[38]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),membername:_0x84bfx19[_0x93f9[38]]}))});return Promise[_0x93f9[30]](_0x84bfx27)})[_0x93f9[31]](function(_0x84bfx1c){var _0x84bfx1a=[];_0x84bfx11[_0x93f9[29]](function(_0x84bfx1b){_0x84bfx1a[_0x93f9[28]]({channel:_0x84bfx1b,membername:_0x84bfx19[_0x93f9[38]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),type:_0x93f9[63],enterAt:moment()[_0x93f9[26]](_0x93f9[25]),role:_0x84bfx19[_0x93f9[47]],internal:_0x84bfx19[_0x93f9[48]]})});return ReportMember[_0x93f9[50]](_0x84bfx1a,{individualHooks:true})})}}}function _0x84bfx29(_0x84bfx13,_0x84bfx18){return function(_0x84bfx19){return VoiceQueue[_0x93f9[36]]()[_0x93f9[31]](function(_0x84bfx26){var _0x84bfx27=[];_0x84bfx26[_0x93f9[29]](function(_0x84bfx28){_0x84bfx27[_0x93f9[28]](_0x84bfx10[_0x93f9[52]]({action:_0x93f9[66],queue:_0x84bfx28[_0x93f9[38]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]])}))});return Promise[_0x93f9[30]](_0x84bfx27)[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[61]](_0x84bfx24)})})[_0x93f9[31]](function(_0x84bfx1c){return ReportMember[_0x93f9[36]]({where:{membername:_0x84bfx19[_0x93f9[38]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),type:_0x93f9[63],exitAt:null}})})[_0x93f9[31]](function(_0x84bfx21){var _0x84bfx22=[];_0x84bfx21[_0x93f9[29]](function(_0x84bfx23){_0x84bfx22[_0x93f9[28]](_0x84bfx23[_0x93f9[27]]({exitAt:moment()[_0x93f9[26]](_0x93f9[25])}))});return Promise[_0x93f9[30]](_0x84bfx22)})}}function _0x84bfx2a(_0x84bfx13,_0x84bfx18){return function(_0x84bfx19){var _0x84bfx2b=[];switch(_0x84bfx13[_0x93f9[42]][_0x93f9[32]]){case _0x93f9[18]:_0x84bfx13[_0x93f9[42]][_0x93f9[70]][_0x93f9[29]](function(_0x84bfx2c){_0x84bfx2b[_0x93f9[28]](UserHasVoiceQueue[_0x93f9[69]]({where:{UserId:_0x84bfx19[_0x93f9[67]],queue:_0x84bfx2c},defaults:{queue:_0x84bfx2c,location:util[_0x93f9[26]](_0x93f9[68],_0x84bfx19[_0x93f9[38]]),membername:_0x84bfx19[_0x93f9[38]],UserId:_0x84bfx19[_0x93f9[67]]},transaction:_0x84bfx13[_0x93f9[49]]|| null}))});return Promise[_0x93f9[30]](_0x84bfx2b)[_0x93f9[31]](function(){var _0x84bfx27=[];_0x84bfx13[_0x93f9[42]][_0x93f9[70]][_0x93f9[29]](function(_0x84bfx2c){_0x84bfx27[_0x93f9[28]](_0x84bfx10[_0x93f9[52]]({action:_0x93f9[64],queue:_0x84bfx2c,interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]]),membername:_0x84bfx19[_0x93f9[38]]}))});return Promise[_0x93f9[30]](_0x84bfx27)})[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[61]](_0x84bfx24)});case _0x93f9[19]:_0x84bfx13[_0x93f9[42]][_0x93f9[70]][_0x93f9[29]](function(_0x84bfx2c){_0x84bfx2b[_0x93f9[28]](UserHasChatQueue[_0x93f9[69]]({where:{UserId:_0x84bfx19[_0x93f9[67]],ChatQueueId:_0x84bfx2c[_0x93f9[67]]},defaults:{ChatQueueId:_0x84bfx2c[_0x93f9[67]],queue:_0x84bfx2c[_0x93f9[38]],UserId:_0x84bfx19[_0x93f9[67]]},transaction:_0x84bfx13[_0x93f9[49]]|| null}))});return Promise[_0x93f9[30]](_0x84bfx2b)[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[17]](_0x84bfx24)});case _0x93f9[20]:_0x84bfx13[_0x93f9[42]][_0x93f9[70]][_0x93f9[29]](function(_0x84bfx2c){_0x84bfx2b[_0x93f9[28]](UserHasMailQueue[_0x93f9[69]]({where:{UserId:_0x84bfx19[_0x93f9[67]],MailQueueId:_0x84bfx2c[_0x93f9[67]]},defaults:{MailQueueId:_0x84bfx2c[_0x93f9[67]],queue:_0x84bfx2c[_0x93f9[38]],UserId:_0x84bfx19[_0x93f9[67]]},transaction:_0x84bfx13[_0x93f9[49]]|| null}))});return Promise[_0x93f9[30]](_0x84bfx2b)[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[17]](_0x84bfx24)});case _0x93f9[22]:_0x84bfx13[_0x93f9[42]][_0x93f9[70]][_0x93f9[29]](function(_0x84bfx2c){_0x84bfx2b[_0x93f9[28]](UserHasSmsQueue[_0x93f9[69]]({where:{UserId:_0x84bfx19[_0x93f9[67]],SmsQueueId:_0x84bfx2c[_0x93f9[67]]},defaults:{SmsQueueId:_0x84bfx2c[_0x93f9[67]],queue:_0x84bfx2c[_0x93f9[38]],UserId:_0x84bfx19[_0x93f9[67]]},transaction:_0x84bfx13[_0x93f9[49]]|| null}))});return Promise[_0x93f9[30]](_0x84bfx2b)[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[17]](_0x84bfx24)});case _0x93f9[23]:_0x84bfx13[_0x93f9[42]][_0x93f9[70]][_0x93f9[29]](function(_0x84bfx2c){_0x84bfx2b[_0x93f9[28]](UserHasOpenchannelQueue[_0x93f9[69]]({where:{UserId:_0x84bfx19[_0x93f9[67]],OpenchannelQueueId:_0x84bfx2c[_0x93f9[67]]},defaults:{OpenchannelQueueId:_0x84bfx2c[_0x93f9[67]],queue:_0x84bfx2c[_0x93f9[38]],UserId:_0x84bfx19[_0x93f9[67]]},transaction:_0x84bfx13[_0x93f9[49]]|| null}))});return Promise[_0x93f9[30]](_0x84bfx2b)[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[17]](_0x84bfx24)});case _0x93f9[21]:_0x84bfx13[_0x93f9[42]][_0x93f9[70]][_0x93f9[29]](function(_0x84bfx2c){_0x84bfx2b[_0x93f9[28]](UserHasFaxQueue[_0x93f9[69]]({where:{UserId:_0x84bfx19[_0x93f9[67]],FaxQueueId:_0x84bfx2c[_0x93f9[67]]},defaults:{faxQueueId:_0x84bfx2c[_0x93f9[67]],queue:_0x84bfx2c[_0x93f9[38]],UserId:_0x84bfx19[_0x93f9[67]]},transaction:_0x84bfx13[_0x93f9[49]]|| null}))});return Promise[_0x93f9[30]](_0x84bfx2b)[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[17]](_0x84bfx24)});default:}}}function _0x84bfx2d(_0x84bfx13,_0x84bfx18){return function(_0x84bfx19){switch(_0x84bfx13[_0x93f9[42]][_0x93f9[32]]){case _0x93f9[18]:return UserHasVoiceQueue[_0x93f9[73]]({where:{UserId:_0x84bfx19[_0x93f9[67]],queue:_0x84bfx13[_0x93f9[42]][_0x93f9[72]]},transaction:_0x84bfx13[_0x93f9[49]]|| null,individualHooks:true})[_0x93f9[31]](function(){var _0x84bfx2e=Promise[_0x93f9[53]](_0x84bfx10[_0x93f9[52]]);return _0x84bfx2e({action:_0x93f9[66],queue:_0x84bfx13[_0x93f9[42]][_0x93f9[72]],interface:util[_0x93f9[26]](_0x93f9[39],_0x93f9[40],_0x84bfx19[_0x93f9[38]])})})[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[61]](_0x93f9[71],_0x84bfx24)});case _0x93f9[19]:return UserHasChatQueue[_0x93f9[73]]({where:{UserId:_0x84bfx19[_0x93f9[67]],ChatQueueId:_0x84bfx13[_0x93f9[42]][_0x93f9[74]]},transaction:_0x84bfx13[_0x93f9[49]]|| null,individualHooks:true})[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[61]](_0x93f9[71],_0x84bfx24)});case _0x93f9[20]:return UserHasMailQueue[_0x93f9[73]]({where:{UserId:_0x84bfx19[_0x93f9[67]],MailQueueId:_0x84bfx13[_0x93f9[42]][_0x93f9[74]]},transaction:_0x84bfx13[_0x93f9[49]]|| null,individualHooks:true})[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[61]](_0x93f9[71],_0x84bfx24)});case _0x93f9[22]:return UserHasSmsQueue[_0x93f9[73]]({where:{UserId:_0x84bfx19[_0x93f9[67]],SmsQueueId:_0x84bfx13[_0x93f9[42]][_0x93f9[74]]},transaction:_0x84bfx13[_0x93f9[49]]|| null,individualHooks:true})[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[61]](_0x93f9[71],_0x84bfx24)});case _0x93f9[23]:return UserHasOpenchannelQueue[_0x93f9[73]]({where:{UserId:_0x84bfx19[_0x93f9[67]],OpenchannelQueueId:_0x84bfx13[_0x93f9[42]][_0x93f9[74]]},transaction:_0x84bfx13[_0x93f9[49]]|| null,individualHooks:true})[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[61]](_0x93f9[71],_0x84bfx24)});case _0x93f9[21]:return UserHasFaxQueue[_0x93f9[73]]({where:{UserId:_0x84bfx19[_0x93f9[67]],FaxQueueId:_0x84bfx13[_0x93f9[42]][_0x93f9[74]]},transaction:_0x84bfx13[_0x93f9[49]]|| null,individualHooks:true})[_0x93f9[62]](function(_0x84bfx24){console[_0x93f9[61]](_0x93f9[71],_0x84bfx24)});default:}}}function _0x84bfx2f(_0x84bfx30){return function(_0x84bfx31){if(!_0x84bfx31){throw _0x84bfx30};return _0x84bfx31}}function _0x84bfx32(_0x84bfx18,_0x84bfx13,_0x84bfx10){switch(_0x84bfx18[_0x93f9[38]]){case _0x93f9[78]:return Agent[_0x93f9[77]](_0x84bfx13[_0x93f9[42]][_0x93f9[76]])[_0x93f9[31]](_0x84bfx2f({message:_0x93f9[75]}))[_0x93f9[31]](_0x84bfx17(_0x84bfx13,_0x84bfx18));case _0x93f9[79]:return Agent[_0x93f9[77]](_0x84bfx13[_0x93f9[42]][_0x93f9[76]])[_0x93f9[31]](_0x84bfx2f({message:_0x93f9[75]}))[_0x93f9[31]](_0x84bfx1e(_0x84bfx13,_0x84bfx18));case _0x93f9[80]:return Agent[_0x93f9[77]](_0x84bfx18[_0x93f9[43]])[_0x93f9[31]](_0x84bfx2f({message:_0x93f9[75]}))[_0x93f9[31]](_0x84bfx25(_0x84bfx13,_0x84bfx18))[_0x93f9[31]](function(){return Agent[_0x93f9[77]](_0x84bfx18[_0x93f9[43]])})[_0x93f9[31]](_0x84bfx1d(_0x84bfx13,_0x84bfx18));case _0x93f9[81]:return Agent[_0x93f9[77]](_0x84bfx18[_0x93f9[43]])[_0x93f9[31]](_0x84bfx2f({message:_0x93f9[75]}))[_0x93f9[31]](_0x84bfx1e(_0x84bfx13,_0x84bfx18))[_0x93f9[31]](_0x84bfx29(_0x84bfx13,_0x84bfx18));case _0x93f9[64]:return Agent[_0x93f9[77]](_0x84bfx13[_0x93f9[42]][_0x93f9[76]])[_0x93f9[31]](_0x84bfx2f({message:_0x93f9[75]}))[_0x93f9[31]](_0x84bfx2a(_0x84bfx13,_0x84bfx18));case _0x93f9[66]:return Agent[_0x93f9[77]](_0x84bfx13[_0x93f9[42]][_0x93f9[76]])[_0x93f9[31]](_0x84bfx2f({message:_0x93f9[75]}))[_0x93f9[31]](_0x84bfx2d(_0x84bfx13,_0x84bfx18));default:throw {message:_0x93f9[82]}}}return {}}module[_0x93f9[83]]= Action
\ No newline at end of file