Built motion from commit 02c0abe.|0.0.118
[motion.git] / server / config / ami / action.js
index b91c022..40e2707 100644 (file)
@@ -1 +1 @@
-var _0x7344=["\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","\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","\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","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x6C\x6C","\x65\x6E\x74\x65\x72\x41\x74","\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","\x73\x65\x63\x6F\x6E\x64\x73","\x64\x69\x66\x66","\x75\x70\x64\x61\x74\x65","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\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","\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","\x74\x79\x70\x65","\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"];_0x7344[0];var moment=require(_0x7344[1]);var util=require(_0x7344[2]);var Promise=require(_0x7344[3]);var Sequelize=require(_0x7344[5])[_0x7344[4]];var ReportMember=require(_0x7344[5])[_0x7344[6]];var _Action=require(_0x7344[5])[_0x7344[7]];var Agent=require(_0x7344[5])[_0x7344[8]];var UserHasVoiceQueue=require(_0x7344[5])[_0x7344[9]];var UserHasChatQueue=require(_0x7344[5])[_0x7344[10]];var UserHasMailQueue=require(_0x7344[5])[_0x7344[11]];var UserHasFaxQueue=require(_0x7344[5])[_0x7344[12]];function Action(_0xdab2xd){console[_0x7344[14]](_0x7344[13]);var _0xdab2xe=[_0x7344[15],_0x7344[16],_0x7344[17],_0x7344[18]];_Action[_0x7344[19]](function(_0xdab2xf,_0xdab2x10){return _0xdab2x2d(_0xdab2xf,_0xdab2x10,_0xdab2xd)});ReportMember[_0x7344[34]](function(_0xdab2xf,_0xdab2x10){return ReportMember[_0x7344[33]]({where:{channel:_0xdab2xf[_0x7344[30]],membername:_0xdab2xf[_0x7344[31]],interface:_0xdab2xf[_0x7344[32]],exitAt:null}})[_0x7344[29]](function(_0xdab2x11){var _0xdab2x12=[];var _0xdab2x13=moment();_0xdab2x11[_0x7344[28]](function(_0xdab2x14){var _0xdab2x15=moment(_0xdab2x14[_0x7344[21]]);_0xdab2x12[_0x7344[27]](_0xdab2x14[_0x7344[26]]({exitAt:_0xdab2x13[_0x7344[23]](_0x7344[22]),duration:_0xdab2x13[_0x7344[25]](_0xdab2x15,_0x7344[24])}))});return _0xdab2x12})[_0x7344[20]]()});function _0xdab2x16(_0xdab2x10,_0xdab2x17){return function(_0xdab2x18){return Promise[_0x7344[48]](_0xdab2xd[_0x7344[47]])({action:_0x7344[46],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),paused:true,reason:_0xdab2x10[_0x7344[39]][_0x7344[38]]})[_0x7344[29]](function(_0xdab2x1b){return _0xdab2x18[_0x7344[26]]({voicePause:true,chatPause:true,mailPause:true,faxPause:true,pauseType:_0xdab2x10[_0x7344[39]][_0x7344[38]],lastPauseAt:moment()[_0x7344[23]](_0x7344[22])},{transaction:_0xdab2x10[_0x7344[44]]||null})})[_0x7344[29]](function(_0xdab2x18){var _0xdab2x19=[];_0xdab2xe[_0x7344[28]](function(_0xdab2x1a){_0xdab2x19[_0x7344[27]]({channel:_0xdab2x1a,membername:_0xdab2x18[_0x7344[35]],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),type:_0xdab2x10[_0x7344[39]][_0x7344[38]],enterAt:moment()[_0x7344[23]](_0x7344[22]),data1:_0xdab2x17[_0x7344[40]],data2:_0xdab2x17[_0x7344[41]],data3:_0xdab2x17[_0x7344[42]],data4:_0xdab2x17[_0x7344[43]]})});return ReportMember[_0x7344[45]](_0xdab2x19,{individualHooks:true,transaction:_0xdab2x10[_0x7344[44]]||null})})}}function _0xdab2x1c(_0xdab2x10,_0xdab2x17){return function(_0xdab2x18){if(!_0xdab2x10[_0x7344[39]]){_0xdab2x10[_0x7344[39]]={}};switch(_0xdab2x10[_0x7344[39]][_0x7344[30]]){case _0x7344[15]:return Promise[_0x7344[48]](_0xdab2xd[_0x7344[47]])({action:_0x7344[46],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),paused:false,reason:_0xdab2x10[_0x7344[39]][_0x7344[38]]})[_0x7344[29]](function(){return _0xdab2x18[_0x7344[26]]({voicePause:false},{transaction:_0xdab2x10[_0x7344[44]]||null})})[_0x7344[29]](function(_0xdab2x18){var _0xdab2x13=moment();return ReportMember[_0x7344[50]]({where:{channel:_0xdab2x10[_0x7344[39]][_0x7344[30]],membername:_0xdab2x18[_0x7344[35]],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),exitAt:null}})})[_0x7344[29]](_0xdab2x2a({message:_0x7344[49]}))[_0x7344[29]](function(_0xdab2x1d){var _0xdab2x13=moment();var _0xdab2x15=moment(_0xdab2x1d[_0x7344[21]]);return _0xdab2x1d[_0x7344[26]]({exitAt:_0xdab2x13[_0x7344[23]](_0x7344[22]),duration:_0xdab2x13[_0x7344[25]](_0xdab2x15,_0x7344[24])},{individualHooks:true,transaction:_0xdab2x10[_0x7344[44]]||null})})[_0x7344[29]](function(){return _0xdab2x18});case _0x7344[16]:;case _0x7344[17]:;case _0x7344[18]:var _0xdab2x1e={};_0xdab2x1e[util[_0x7344[23]](_0x7344[51],_0xdab2x10[_0x7344[39]][_0x7344[30]],_0x7344[52])]=false;return _0xdab2x18[_0x7344[26]](_0xdab2x1e,{transaction:_0xdab2x10[_0x7344[44]]})[_0x7344[29]](function(_0xdab2x18){var _0xdab2x13=moment();return ReportMember[_0x7344[50]]({where:{channel:_0xdab2x10[_0x7344[39]][_0x7344[30]],membername:_0xdab2x18[_0x7344[35]],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),exitAt:null}})})[_0x7344[29]](_0xdab2x2a({message:_0x7344[49]}))[_0x7344[29]](function(_0xdab2x1d){var _0xdab2x13=moment();var _0xdab2x15=moment(_0xdab2x1d[_0x7344[21]]);return _0xdab2x1d[_0x7344[26]]({exitAt:_0xdab2x13[_0x7344[23]](_0x7344[22]),duration:_0xdab2x13[_0x7344[25]](_0xdab2x15,_0x7344[24])},{individualHooks:true,transaction:_0xdab2x10[_0x7344[44]]})})[_0x7344[29]](function(){return _0xdab2x18});default:var _0xdab2x17=Promise[_0x7344[48]](_0xdab2xd[_0x7344[47]]);return _0xdab2x17({action:_0x7344[46],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),paused:false})[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[53]](_0xdab2x1f)})[_0x7344[29]](function(){return _0xdab2x18[_0x7344[26]]({voicePause:false,mailPause:false,chatPause:false,faxPause:false},{transaction:_0xdab2x10[_0x7344[44]]})})[_0x7344[29]](function(_0xdab2x18){var _0xdab2x13=moment();return ReportMember[_0x7344[26]]({exitAt:_0xdab2x13},{where:{membername:_0xdab2x18[_0x7344[35]],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),exitAt:null},transaction:_0xdab2x10[_0x7344[44]]})})[_0x7344[29]](function(){return _0xdab2x18})}}}function _0xdab2x20(_0xdab2x10,_0xdab2x17){return function(_0xdab2x18){return _0xdab2x18[_0x7344[57]]()[_0x7344[29]](function(_0xdab2x21){var _0xdab2x22=[];_0xdab2x21[_0x7344[28]](function(_0xdab2x23){_0xdab2x22[_0x7344[27]](_0xdab2xd[_0x7344[47]]({action:_0x7344[56],queue:_0xdab2x23[_0x7344[35]],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),membername:_0xdab2x18[_0x7344[35]]}))});return Promise[_0x7344[20]](_0xdab2x22)})[_0x7344[29]](function(_0xdab2x1b){var _0xdab2x19=[];_0xdab2xe[_0x7344[28]](function(_0xdab2x1a){_0xdab2x19[_0x7344[27]]({channel:_0xdab2x1a,membername:_0xdab2x18[_0x7344[35]],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),type:_0x7344[55],enterAt:moment()[_0x7344[23]](_0x7344[22])})});return ReportMember[_0x7344[45]](_0xdab2x19,{individualHooks:true})})}}function _0xdab2x24(_0xdab2x10,_0xdab2x17){return function(_0xdab2x18){return _0xdab2x18[_0x7344[57]]()[_0x7344[29]](function(_0xdab2x21){var _0xdab2x22=[];_0xdab2x21[_0x7344[28]](function(_0xdab2x23){_0xdab2x22[_0x7344[27]](_0xdab2xd[_0x7344[47]]({action:_0x7344[58],queue:_0xdab2x23[_0x7344[35]],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]])}))});return Promise[_0x7344[20]](_0xdab2x22)[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[53]](_0xdab2x1f)})})[_0x7344[29]](function(_0xdab2x1b){return ReportMember[_0x7344[26]]({exitAt:moment()[_0x7344[23]](_0x7344[22])},{where:{membername:_0xdab2x18[_0x7344[35]],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),type:_0x7344[55],exitAt:null},individualHooks:true,transaction:_0xdab2x10[_0x7344[44]]})})}}function _0xdab2x25(_0xdab2x10,_0xdab2x17){return function(_0xdab2x18){var _0xdab2x26=[];switch(_0xdab2x10[_0x7344[39]][_0x7344[30]]){case _0x7344[15]:_0xdab2x10[_0x7344[39]][_0x7344[62]][_0x7344[28]](function(_0xdab2x27){_0xdab2x26[_0x7344[27]](UserHasVoiceQueue[_0x7344[61]]({where:{UserId:_0xdab2x18[_0x7344[59]],queue:_0xdab2x27},defaults:{queue:_0xdab2x27,location:util[_0x7344[23]](_0x7344[60],_0xdab2x18[_0x7344[35]]),membername:_0xdab2x18[_0x7344[35]],UserId:_0xdab2x18[_0x7344[59]]},transaction:_0xdab2x10[_0x7344[44]]}))});return Promise[_0x7344[20]](_0xdab2x26)[_0x7344[29]](function(){var _0xdab2x22=[];_0xdab2x10[_0x7344[39]][_0x7344[62]][_0x7344[28]](function(_0xdab2x27){_0xdab2x22[_0x7344[27]](_0xdab2xd[_0x7344[47]]({action:_0x7344[56],queue:_0xdab2x27,interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]]),membername:_0xdab2x18[_0x7344[35]]}))});return Promise[_0x7344[20]](_0xdab2x22)})[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[53]](_0xdab2x1f)});case _0x7344[16]:_0xdab2x10[_0x7344[39]][_0x7344[62]][_0x7344[28]](function(_0xdab2x27){_0xdab2x26[_0x7344[27]](UserHasChatQueue[_0x7344[61]]({where:{UserId:_0xdab2x18[_0x7344[59]],ChatQueueId:_0xdab2x27[_0x7344[59]]},defaults:{ChatQueueId:_0xdab2x27[_0x7344[59]],queue:_0xdab2x27[_0x7344[35]],UserId:_0xdab2x18[_0x7344[59]]},transaction:_0xdab2x10[_0x7344[44]]}))});return Promise[_0x7344[20]](_0xdab2x26)[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[14]](_0xdab2x1f)});case _0x7344[17]:_0xdab2x10[_0x7344[39]][_0x7344[62]][_0x7344[28]](function(_0xdab2x27){_0xdab2x26[_0x7344[27]](UserHasMailQueue[_0x7344[61]]({where:{UserId:_0xdab2x18[_0x7344[59]],MailQueueId:_0xdab2x27[_0x7344[59]]},defaults:{MailQueueId:_0xdab2x27[_0x7344[59]],queue:_0xdab2x27[_0x7344[35]],UserId:_0xdab2x18[_0x7344[59]]},transaction:_0xdab2x10[_0x7344[44]]}))});return Promise[_0x7344[20]](_0xdab2x26)[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[14]](_0xdab2x1f)});case _0x7344[18]:_0xdab2x10[_0x7344[39]][_0x7344[62]][_0x7344[28]](function(_0xdab2x27){_0xdab2x26[_0x7344[27]](UserHasFaxQueue[_0x7344[61]]({where:{UserId:_0xdab2x18[_0x7344[59]],FaxQueueId:_0xdab2x27[_0x7344[59]]},defaults:{faxQueueId:_0xdab2x27[_0x7344[59]],queue:_0xdab2x27[_0x7344[35]],UserId:_0xdab2x18[_0x7344[59]]},transaction:_0xdab2x10[_0x7344[44]]}))});return Promise[_0x7344[20]](_0xdab2x26)[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[14]](_0xdab2x1f)});default:}}}function _0xdab2x28(_0xdab2x10,_0xdab2x17){return function(_0xdab2x18){switch(_0xdab2x10[_0x7344[39]][_0x7344[30]]){case _0x7344[15]:return UserHasVoiceQueue[_0x7344[65]]({where:{UserId:_0xdab2x18[_0x7344[59]],queue:_0xdab2x10[_0x7344[39]][_0x7344[64]]},transaction:_0xdab2x10[_0x7344[44]],individualHooks:true})[_0x7344[29]](function(){var _0xdab2x29=Promise[_0x7344[48]](_0xdab2xd[_0x7344[47]]);return _0xdab2x29({action:_0x7344[58],queue:_0xdab2x10[_0x7344[39]][_0x7344[64]],interface:util[_0x7344[23]](_0x7344[36],_0x7344[37],_0xdab2x18[_0x7344[35]])})})[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[53]](_0x7344[63],_0xdab2x1f)});case _0x7344[16]:return UserHasChatQueue[_0x7344[65]]({where:{UserId:_0xdab2x18[_0x7344[59]],ChatQueueId:_0xdab2x10[_0x7344[39]][_0x7344[66]]},transaction:_0xdab2x10[_0x7344[44]],individualHooks:true})[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[53]](_0x7344[63],_0xdab2x1f)});case _0x7344[17]:return UserHasMailQueue[_0x7344[65]]({where:{UserId:_0xdab2x18[_0x7344[59]],MailQueueId:_0xdab2x10[_0x7344[39]][_0x7344[66]]},transaction:_0xdab2x10[_0x7344[44]],individualHooks:true})[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[53]](_0x7344[63],_0xdab2x1f)});case _0x7344[18]:return UserHasFaxQueue[_0x7344[65]]({where:{UserId:_0xdab2x18[_0x7344[59]],FaxQueueId:_0xdab2x10[_0x7344[39]][_0x7344[66]]},transaction:_0xdab2x10[_0x7344[44]],individualHooks:true})[_0x7344[54]](function(_0xdab2x1f){console[_0x7344[53]](_0x7344[63],_0xdab2x1f)});default:}}}function _0xdab2x2a(_0xdab2x2b){return function(_0xdab2x2c){if(!_0xdab2x2c){throw _0xdab2x2b};return _0xdab2x2c}}function _0xdab2x2d(_0xdab2x17,_0xdab2x10,_0xdab2xd){switch(_0xdab2x17[_0x7344[35]]){case _0x7344[70]:return Agent[_0x7344[69]](_0xdab2x10[_0x7344[39]][_0x7344[68]])[_0x7344[29]](_0xdab2x2a({message:_0x7344[67]}))[_0x7344[29]](_0xdab2x16(_0xdab2x10,_0xdab2x17));case _0x7344[71]:return Agent[_0x7344[69]](_0xdab2x10[_0x7344[39]][_0x7344[68]])[_0x7344[29]](_0xdab2x2a({message:_0x7344[67]}))[_0x7344[29]](_0xdab2x1c(_0xdab2x10,_0xdab2x17));case _0x7344[72]:return Agent[_0x7344[69]](_0xdab2x17[_0x7344[40]])[_0x7344[29]](_0xdab2x2a({message:_0x7344[67]}))[_0x7344[29]](_0xdab2x20(_0xdab2x10,_0xdab2x17));case _0x7344[73]:return Agent[_0x7344[69]](_0xdab2x17[_0x7344[40]])[_0x7344[29]](_0xdab2x2a({message:_0x7344[67]}))[_0x7344[29]](_0xdab2x1c(_0xdab2x10,_0xdab2x17))[_0x7344[29]](_0xdab2x24(_0xdab2x10,_0xdab2x17));case _0x7344[56]:return Agent[_0x7344[69]](_0xdab2x10[_0x7344[39]][_0x7344[68]])[_0x7344[29]](_0xdab2x2a({message:_0x7344[67]}))[_0x7344[29]](_0xdab2x25(_0xdab2x10,_0xdab2x17));case _0x7344[58]:return Agent[_0x7344[69]](_0xdab2x10[_0x7344[39]][_0x7344[68]])[_0x7344[29]](_0xdab2x2a({message:_0x7344[67]}))[_0x7344[29]](_0xdab2x28(_0xdab2x10,_0xdab2x17));default:throw {message:_0x7344[74]}}}return {}}module[_0x7344[75]]=Action
\ No newline at end of file
+var _0x7530=["\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","\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","\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"];_0x7530[0];var moment=require(_0x7530[1]);var util=require(_0x7530[2]);var Promise=require(_0x7530[3]);var Sequelize=require(_0x7530[5])[_0x7530[4]];var ReportMember=require(_0x7530[5])[_0x7530[6]];var _Action=require(_0x7530[5])[_0x7530[7]];var Agent=require(_0x7530[5])[_0x7530[8]];var VoiceQueue=require(_0x7530[5])[_0x7530[9]];var UserHasVoiceQueue=require(_0x7530[5])[_0x7530[10]];var UserHasChatQueue=require(_0x7530[5])[_0x7530[11]];var UserHasMailQueue=require(_0x7530[5])[_0x7530[12]];var UserHasFaxQueue=require(_0x7530[5])[_0x7530[13]];var UserHasSmsQueue=require(_0x7530[5])[_0x7530[14]];function Action(_0x93aexf){console[_0x7530[16]](_0x7530[15]);var _0x93aex10=[_0x7530[17],_0x7530[18],_0x7530[19],_0x7530[20],_0x7530[21]];_Action[_0x7530[22]](function(_0x93aex11,_0x93aex12){return _0x93aex30(_0x93aex11,_0x93aex12,_0x93aexf)});ReportMember[_0x7530[35]](function(_0x93aex11,_0x93aex12){return ReportMember[_0x7530[34]]({where:{channel:_0x93aex11[_0x7530[30]],membername:_0x93aex11[_0x7530[31]],interface:_0x93aex11[_0x7530[32]],type:_0x93aex11[_0x7530[33]],exitAt:null}})[_0x7530[29]](function(_0x93aex13){var _0x93aex14=[];_0x93aex13[_0x7530[27]](function(_0x93aex15){_0x93aex14[_0x7530[26]](_0x93aex15[_0x7530[25]]({exitAt:moment()[_0x7530[24]](_0x7530[23])}))});return Promise[_0x7530[28]](_0x93aex14)})});function _0x93aex16(_0x93aex12,_0x93aex17){return function(_0x93aex18){return Promise[_0x7530[51]](_0x93aexf[_0x7530[50]])({action:_0x7530[49],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),paused:true,reason:_0x93aex12[_0x7530[40]][_0x7530[33]]|| _0x93aex17[_0x7530[41]]})[_0x7530[29]](function(_0x93aex1b){return _0x93aex18[_0x7530[25]]({voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,pauseType:_0x93aex12[_0x7530[40]][_0x7530[33]]|| _0x93aex17[_0x7530[41]],lastPauseAt:moment()[_0x7530[24]](_0x7530[23])},{transaction:_0x93aex12[_0x7530[47]]|| null})})[_0x7530[29]](function(_0x93aex18){var _0x93aex19=[];_0x93aex10[_0x7530[27]](function(_0x93aex1a){_0x93aex19[_0x7530[26]]({channel:_0x93aex1a,membername:_0x93aex18[_0x7530[36]],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),type:_0x7530[39],enterAt:moment()[_0x7530[24]](_0x7530[23]),data1:_0x93aex12[_0x7530[40]][_0x7530[33]]|| _0x93aex17[_0x7530[41]],data2:_0x93aex17[_0x7530[42]],data3:_0x93aex17[_0x7530[43]],data4:_0x93aex17[_0x7530[44]],role:_0x93aex18[_0x7530[45]],internal:_0x93aex18[_0x7530[46]]})});return ReportMember[_0x7530[48]](_0x93aex19,{individualHooks:true,transaction:_0x93aex12[_0x7530[47]]|| null})})}}function _0x93aex1c(_0x93aex12,_0x93aex17){return function(_0x93aex18){if(!_0x93aex12[_0x7530[40]]){_0x93aex12[_0x7530[40]]= {}};switch(_0x93aex12[_0x7530[40]][_0x7530[30]]){case _0x7530[17]:return Promise[_0x7530[51]](_0x93aexf[_0x7530[50]])({action:_0x7530[49],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),paused:false,reason:_0x93aex12[_0x7530[40]][_0x7530[33]]})[_0x7530[29]](function(){return _0x93aex18[_0x7530[25]]({voicePause:false},{transaction:_0x93aex12[_0x7530[47]]|| null})})[_0x7530[29]](function(_0x93aex18){return ReportMember[_0x7530[53]]({where:{channel:_0x93aex12[_0x7530[40]][_0x7530[30]],membername:_0x93aex18[_0x7530[36]],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),type:_0x7530[39],exitAt:null}})})[_0x7530[29]](_0x93aex2d({message:_0x7530[52]}))[_0x7530[29]](function(_0x93aex1d){return _0x93aex1d[_0x7530[25]]({exitAt:moment()[_0x7530[24]](_0x7530[23])},{individualHooks:true,transaction:_0x93aex12[_0x7530[47]]|| null})})[_0x7530[29]](function(){return _0x93aex18});case _0x7530[18]:;case _0x7530[19]:;case _0x7530[20]:;case _0x7530[21]:var _0x93aex1e={};_0x93aex1e[util[_0x7530[24]](_0x7530[54],_0x93aex12[_0x7530[40]][_0x7530[30]],_0x7530[55])]= false;return _0x93aex18[_0x7530[25]](_0x93aex1e,{transaction:_0x93aex12[_0x7530[47]]|| null})[_0x7530[29]](function(_0x93aex18){return ReportMember[_0x7530[53]]({where:{channel:_0x93aex12[_0x7530[40]][_0x7530[30]],membername:_0x93aex18[_0x7530[36]],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),type:_0x7530[39],exitAt:null}})})[_0x7530[29]](_0x93aex2d({message:_0x7530[52]}))[_0x7530[29]](function(_0x93aex1d){return _0x93aex1d[_0x7530[25]]({exitAt:moment()[_0x7530[24]](_0x7530[23])},{individualHooks:true,transaction:_0x93aex12[_0x7530[47]]|| null})})[_0x7530[29]](function(){return _0x93aex18});default:var _0x93aex17=Promise[_0x7530[51]](_0x93aexf[_0x7530[50]]);return _0x93aex17({action:_0x7530[49],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),paused:false})[_0x7530[57]](function(_0x93aex22){console[_0x7530[56]](_0x93aex22)})[_0x7530[29]](function(){return _0x93aex18[_0x7530[25]]({voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false},{transaction:_0x93aex12[_0x7530[47]]|| null})})[_0x7530[29]](function(_0x93aex18){return ReportMember[_0x7530[34]]({where:{membername:_0x93aex18[_0x7530[36]],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),type:_0x7530[39],exitAt:null}})})[_0x7530[29]](function(_0x93aex1f){var _0x93aex20=[];_0x93aex1f[_0x7530[27]](function(_0x93aex21){_0x93aex20[_0x7530[26]](_0x93aex21[_0x7530[25]]({exitAt:moment()[_0x7530[24]](_0x7530[23])}))});return Promise[_0x7530[28]](_0x93aex20)})[_0x7530[29]](function(){return _0x93aex18})}}}function _0x93aex23(_0x93aex12,_0x93aex17){return function(_0x93aex18){return _0x93aex18[_0x7530[60]]()[_0x7530[29]](function(_0x93aex24){var _0x93aex25=[];_0x93aex24[_0x7530[27]](function(_0x93aex26){_0x93aex25[_0x7530[26]](_0x93aexf[_0x7530[50]]({action:_0x7530[59],queue:_0x93aex26[_0x7530[36]],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),membername:_0x93aex18[_0x7530[36]]}))});return Promise[_0x7530[28]](_0x93aex25)})[_0x7530[29]](function(_0x93aex1b){var _0x93aex19=[];_0x93aex10[_0x7530[27]](function(_0x93aex1a){_0x93aex19[_0x7530[26]]({channel:_0x93aex1a,membername:_0x93aex18[_0x7530[36]],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),type:_0x7530[58],enterAt:moment()[_0x7530[24]](_0x7530[23]),role:_0x93aex18[_0x7530[45]],internal:_0x93aex18[_0x7530[46]]})});return ReportMember[_0x7530[48]](_0x93aex19,{individualHooks:true})})}}function _0x93aex27(_0x93aex12,_0x93aex17){return function(_0x93aex18){return VoiceQueue[_0x7530[34]]()[_0x7530[29]](function(_0x93aex24){var _0x93aex25=[];_0x93aex24[_0x7530[27]](function(_0x93aex26){_0x93aex25[_0x7530[26]](_0x93aexf[_0x7530[50]]({action:_0x7530[61],queue:_0x93aex26[_0x7530[36]],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]])}))});return Promise[_0x7530[28]](_0x93aex25)[_0x7530[57]](function(_0x93aex22){console[_0x7530[56]](_0x93aex22)})})[_0x7530[29]](function(_0x93aex1b){return ReportMember[_0x7530[34]]({where:{membername:_0x93aex18[_0x7530[36]],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),type:_0x7530[58],exitAt:null}})})[_0x7530[29]](function(_0x93aex1f){var _0x93aex20=[];_0x93aex1f[_0x7530[27]](function(_0x93aex21){_0x93aex20[_0x7530[26]](_0x93aex21[_0x7530[25]]({exitAt:moment()[_0x7530[24]](_0x7530[23])}))});return Promise[_0x7530[28]](_0x93aex20)})}}function _0x93aex28(_0x93aex12,_0x93aex17){return function(_0x93aex18){var _0x93aex29=[];switch(_0x93aex12[_0x7530[40]][_0x7530[30]]){case _0x7530[17]:_0x93aex12[_0x7530[40]][_0x7530[65]][_0x7530[27]](function(_0x93aex2a){_0x93aex29[_0x7530[26]](UserHasVoiceQueue[_0x7530[64]]({where:{UserId:_0x93aex18[_0x7530[62]],queue:_0x93aex2a},defaults:{queue:_0x93aex2a,location:util[_0x7530[24]](_0x7530[63],_0x93aex18[_0x7530[36]]),membername:_0x93aex18[_0x7530[36]],UserId:_0x93aex18[_0x7530[62]]},transaction:_0x93aex12[_0x7530[47]]|| null}))});return Promise[_0x7530[28]](_0x93aex29)[_0x7530[29]](function(){var _0x93aex25=[];_0x93aex12[_0x7530[40]][_0x7530[65]][_0x7530[27]](function(_0x93aex2a){_0x93aex25[_0x7530[26]](_0x93aexf[_0x7530[50]]({action:_0x7530[59],queue:_0x93aex2a,interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]]),membername:_0x93aex18[_0x7530[36]]}))});return Promise[_0x7530[28]](_0x93aex25)})[_0x7530[57]](function(_0x93aex22){console[_0x7530[56]](_0x93aex22)});case _0x7530[18]:_0x93aex12[_0x7530[40]][_0x7530[65]][_0x7530[27]](function(_0x93aex2a){_0x93aex29[_0x7530[26]](UserHasChatQueue[_0x7530[64]]({where:{UserId:_0x93aex18[_0x7530[62]],ChatQueueId:_0x93aex2a[_0x7530[62]]},defaults:{ChatQueueId:_0x93aex2a[_0x7530[62]],queue:_0x93aex2a[_0x7530[36]],UserId:_0x93aex18[_0x7530[62]]},transaction:_0x93aex12[_0x7530[47]]|| null}))});return Promise[_0x7530[28]](_0x93aex29)[_0x7530[57]](function(_0x93aex22){console[_0x7530[16]](_0x93aex22)});case _0x7530[19]:_0x93aex12[_0x7530[40]][_0x7530[65]][_0x7530[27]](function(_0x93aex2a){_0x93aex29[_0x7530[26]](UserHasMailQueue[_0x7530[64]]({where:{UserId:_0x93aex18[_0x7530[62]],MailQueueId:_0x93aex2a[_0x7530[62]]},defaults:{MailQueueId:_0x93aex2a[_0x7530[62]],queue:_0x93aex2a[_0x7530[36]],UserId:_0x93aex18[_0x7530[62]]},transaction:_0x93aex12[_0x7530[47]]|| null}))});return Promise[_0x7530[28]](_0x93aex29)[_0x7530[57]](function(_0x93aex22){console[_0x7530[16]](_0x93aex22)});case _0x7530[21]:_0x93aex12[_0x7530[40]][_0x7530[65]][_0x7530[27]](function(_0x93aex2a){_0x93aex29[_0x7530[26]](UserHasSmsQueue[_0x7530[64]]({where:{UserId:_0x93aex18[_0x7530[62]],SmsQueueId:_0x93aex2a[_0x7530[62]]},defaults:{SmsQueueId:_0x93aex2a[_0x7530[62]],queue:_0x93aex2a[_0x7530[36]],UserId:_0x93aex18[_0x7530[62]]},transaction:_0x93aex12[_0x7530[47]]|| null}))});return Promise[_0x7530[28]](_0x93aex29)[_0x7530[57]](function(_0x93aex22){console[_0x7530[16]](_0x93aex22)});case _0x7530[20]:_0x93aex12[_0x7530[40]][_0x7530[65]][_0x7530[27]](function(_0x93aex2a){_0x93aex29[_0x7530[26]](UserHasFaxQueue[_0x7530[64]]({where:{UserId:_0x93aex18[_0x7530[62]],FaxQueueId:_0x93aex2a[_0x7530[62]]},defaults:{faxQueueId:_0x93aex2a[_0x7530[62]],queue:_0x93aex2a[_0x7530[36]],UserId:_0x93aex18[_0x7530[62]]},transaction:_0x93aex12[_0x7530[47]]|| null}))});return Promise[_0x7530[28]](_0x93aex29)[_0x7530[57]](function(_0x93aex22){console[_0x7530[16]](_0x93aex22)});default:}}}function _0x93aex2b(_0x93aex12,_0x93aex17){return function(_0x93aex18){switch(_0x93aex12[_0x7530[40]][_0x7530[30]]){case _0x7530[17]:return UserHasVoiceQueue[_0x7530[68]]({where:{UserId:_0x93aex18[_0x7530[62]],queue:_0x93aex12[_0x7530[40]][_0x7530[67]]},transaction:_0x93aex12[_0x7530[47]]|| null,individualHooks:true})[_0x7530[29]](function(){var _0x93aex2c=Promise[_0x7530[51]](_0x93aexf[_0x7530[50]]);return _0x93aex2c({action:_0x7530[61],queue:_0x93aex12[_0x7530[40]][_0x7530[67]],interface:util[_0x7530[24]](_0x7530[37],_0x7530[38],_0x93aex18[_0x7530[36]])})})[_0x7530[57]](function(_0x93aex22){console[_0x7530[56]](_0x7530[66],_0x93aex22)});case _0x7530[18]:return UserHasChatQueue[_0x7530[68]]({where:{UserId:_0x93aex18[_0x7530[62]],ChatQueueId:_0x93aex12[_0x7530[40]][_0x7530[69]]},transaction:_0x93aex12[_0x7530[47]]|| null,individualHooks:true})[_0x7530[57]](function(_0x93aex22){console[_0x7530[56]](_0x7530[66],_0x93aex22)});case _0x7530[19]:return UserHasMailQueue[_0x7530[68]]({where:{UserId:_0x93aex18[_0x7530[62]],MailQueueId:_0x93aex12[_0x7530[40]][_0x7530[69]]},transaction:_0x93aex12[_0x7530[47]]|| null,individualHooks:true})[_0x7530[57]](function(_0x93aex22){console[_0x7530[56]](_0x7530[66],_0x93aex22)});case _0x7530[21]:return UserHasSmsQueue[_0x7530[68]]({where:{UserId:_0x93aex18[_0x7530[62]],SmsQueueId:_0x93aex12[_0x7530[40]][_0x7530[69]]},transaction:_0x93aex12[_0x7530[47]]|| null,individualHooks:true})[_0x7530[57]](function(_0x93aex22){console[_0x7530[56]](_0x7530[66],_0x93aex22)});case _0x7530[20]:return UserHasFaxQueue[_0x7530[68]]({where:{UserId:_0x93aex18[_0x7530[62]],FaxQueueId:_0x93aex12[_0x7530[40]][_0x7530[69]]},transaction:_0x93aex12[_0x7530[47]]|| null,individualHooks:true})[_0x7530[57]](function(_0x93aex22){console[_0x7530[56]](_0x7530[66],_0x93aex22)});default:}}}function _0x93aex2d(_0x93aex2e){return function(_0x93aex2f){if(!_0x93aex2f){throw _0x93aex2e};return _0x93aex2f}}function _0x93aex30(_0x93aex17,_0x93aex12,_0x93aexf){switch(_0x93aex17[_0x7530[36]]){case _0x7530[73]:return Agent[_0x7530[72]](_0x93aex12[_0x7530[40]][_0x7530[71]])[_0x7530[29]](_0x93aex2d({message:_0x7530[70]}))[_0x7530[29]](_0x93aex16(_0x93aex12,_0x93aex17));case _0x7530[74]:return Agent[_0x7530[72]](_0x93aex12[_0x7530[40]][_0x7530[71]])[_0x7530[29]](_0x93aex2d({message:_0x7530[70]}))[_0x7530[29]](_0x93aex1c(_0x93aex12,_0x93aex17));case _0x7530[75]:return Agent[_0x7530[72]](_0x93aex17[_0x7530[41]])[_0x7530[29]](_0x93aex2d({message:_0x7530[70]}))[_0x7530[29]](_0x93aex23(_0x93aex12,_0x93aex17));case _0x7530[76]:return Agent[_0x7530[72]](_0x93aex17[_0x7530[41]])[_0x7530[29]](_0x93aex2d({message:_0x7530[70]}))[_0x7530[29]](_0x93aex1c(_0x93aex12,_0x93aex17))[_0x7530[29]](_0x93aex27(_0x93aex12,_0x93aex17));case _0x7530[59]:return Agent[_0x7530[72]](_0x93aex12[_0x7530[40]][_0x7530[71]])[_0x7530[29]](_0x93aex2d({message:_0x7530[70]}))[_0x7530[29]](_0x93aex28(_0x93aex12,_0x93aex17));case _0x7530[61]:return Agent[_0x7530[72]](_0x93aex12[_0x7530[40]][_0x7530[71]])[_0x7530[29]](_0x93aex2d({message:_0x7530[70]}))[_0x7530[29]](_0x93aex2b(_0x93aex12,_0x93aex17));default:throw {message:_0x7530[77]}}}return {}}module[_0x7530[78]]= Action
\ No newline at end of file