f436191dd428c4d86cb50776d6566c2dcb791689
[motion.git] / server / config / ami / action.js
1 var _0xf155=["\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"];_0xf155[0];var moment=require(_0xf155[1]);var util=require(_0xf155[2]);var Promise=require(_0xf155[3]);var Agent=require(_0xf155[5])[_0xf155[4]];var _Action=require(_0xf155[5])[_0xf155[6]];var Sequelize=require(_0xf155[5])[_0xf155[7]];var VoiceQueue=require(_0xf155[5])[_0xf155[8]];var ReportMember=require(_0xf155[5])[_0xf155[9]];var UserHasVoiceQueue=require(_0xf155[5])[_0xf155[10]];var UserHasChatQueue=require(_0xf155[5])[_0xf155[11]];var UserHasMailQueue=require(_0xf155[5])[_0xf155[12]];var UserHasFaxQueue=require(_0xf155[5])[_0xf155[13]];var UserHasSmsQueue=require(_0xf155[5])[_0xf155[14]];var UserHasOpenchannelQueue=require(_0xf155[5])[_0xf155[15]];function Action(_0xc6ccx10){console[_0xf155[17]](_0xf155[16]);var _0xc6ccx11=[_0xf155[18],_0xf155[19],_0xf155[20],_0xf155[21],_0xf155[22],_0xf155[23]];_Action[_0xf155[24]](function(_0xc6ccx12,_0xc6ccx13){return _0xc6ccx32(_0xc6ccx12,_0xc6ccx13,_0xc6ccx10)});ReportMember[_0xf155[37]](function(_0xc6ccx12,_0xc6ccx13){return ReportMember[_0xf155[36]]({where:{channel:_0xc6ccx12[_0xf155[32]],membername:_0xc6ccx12[_0xf155[33]],interface:_0xc6ccx12[_0xf155[34]],type:_0xc6ccx12[_0xf155[35]],exitAt:null}})[_0xf155[31]](function(_0xc6ccx14){var _0xc6ccx15=[];_0xc6ccx14[_0xf155[29]](function(_0xc6ccx16){_0xc6ccx15[_0xf155[28]](_0xc6ccx16[_0xf155[27]]({exitAt:moment()[_0xf155[26]](_0xf155[25])}))});return Promise[_0xf155[30]](_0xc6ccx15)})});function _0xc6ccx17(_0xc6ccx13,_0xc6ccx18){return function(_0xc6ccx19){return Promise[_0xf155[53]](_0xc6ccx10[_0xf155[52]])({action:_0xf155[51],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),paused:true,reason:_0xc6ccx13[_0xf155[42]][_0xf155[35]]|| _0xc6ccx18[_0xf155[43]]})[_0xf155[31]](function(_0xc6ccx1c){return _0xc6ccx19[_0xf155[27]]({voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0xc6ccx13[_0xf155[42]][_0xf155[35]]|| _0xc6ccx18[_0xf155[43]],lastPauseAt:moment()[_0xf155[26]](_0xf155[25])},{transaction:_0xc6ccx13[_0xf155[49]]|| null})})[_0xf155[31]](function(_0xc6ccx19){var _0xc6ccx1a=[];_0xc6ccx11[_0xf155[29]](function(_0xc6ccx1b){_0xc6ccx1a[_0xf155[28]]({channel:_0xc6ccx1b,membername:_0xc6ccx19[_0xf155[38]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),type:_0xf155[41],enterAt:moment()[_0xf155[26]](_0xf155[25]),data1:_0xc6ccx13[_0xf155[42]][_0xf155[35]]|| _0xc6ccx18[_0xf155[43]],data2:_0xc6ccx18[_0xf155[44]],data3:_0xc6ccx18[_0xf155[45]],data4:_0xc6ccx18[_0xf155[46]],role:_0xc6ccx19[_0xf155[47]],internal:_0xc6ccx19[_0xf155[48]]})});return ReportMember[_0xf155[50]](_0xc6ccx1a,{individualHooks:true,transaction:_0xc6ccx13[_0xf155[49]]|| null})})}}function _0xc6ccx1d(_0xc6ccx13,_0xc6ccx18){return function(_0xc6ccx19){if(_0xc6ccx19[_0xf155[54]]&& !_0xc6ccx19[_0xf155[55]]){return Promise[_0xf155[53]](_0xc6ccx10[_0xf155[52]])({action:_0xf155[51],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),paused:true,reason:_0xf155[56]})[_0xf155[31]](function(_0xc6ccx1c){return _0xc6ccx19[_0xf155[27]]({voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0xf155[56],lastPauseAt:moment()[_0xf155[26]](_0xf155[25])},{transaction:_0xc6ccx13[_0xf155[49]]|| null})})[_0xf155[31]](function(_0xc6ccx19){var _0xc6ccx1a=[];_0xc6ccx11[_0xf155[29]](function(_0xc6ccx1b){_0xc6ccx1a[_0xf155[28]]({channel:_0xc6ccx1b,membername:_0xc6ccx19[_0xf155[38]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),type:_0xf155[41],enterAt:moment()[_0xf155[26]](_0xf155[25]),data1:_0xf155[56],data2:_0xc6ccx18[_0xf155[44]],data3:_0xc6ccx18[_0xf155[45]],data4:_0xf155[56],role:_0xc6ccx19[_0xf155[47]],internal:_0xc6ccx19[_0xf155[48]]})});return ReportMember[_0xf155[50]](_0xc6ccx1a,{individualHooks:true,transaction:_0xc6ccx13[_0xf155[49]]|| null})})}}}function _0xc6ccx1e(_0xc6ccx13,_0xc6ccx18){return function(_0xc6ccx19){if(!_0xc6ccx13[_0xf155[42]]){_0xc6ccx13[_0xf155[42]]= {}};switch(_0xc6ccx13[_0xf155[42]][_0xf155[32]]){case _0xf155[18]:return Promise[_0xf155[53]](_0xc6ccx10[_0xf155[52]])({action:_0xf155[51],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),paused:false,reason:_0xc6ccx13[_0xf155[42]][_0xf155[35]]})[_0xf155[31]](function(){return _0xc6ccx19[_0xf155[27]]({voicePause:false},{transaction:_0xc6ccx13[_0xf155[49]]|| null})})[_0xf155[31]](function(_0xc6ccx19){return ReportMember[_0xf155[58]]({where:{channel:_0xc6ccx13[_0xf155[42]][_0xf155[32]],membername:_0xc6ccx19[_0xf155[38]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),type:_0xf155[41],exitAt:null}})})[_0xf155[31]](_0xc6ccx2f({message:_0xf155[57]}))[_0xf155[31]](function(_0xc6ccx1f){return _0xc6ccx1f[_0xf155[27]]({exitAt:moment()[_0xf155[26]](_0xf155[25])},{individualHooks:true,transaction:_0xc6ccx13[_0xf155[49]]|| null})})[_0xf155[31]](function(){return _0xc6ccx19});case _0xf155[19]:;case _0xf155[20]:;case _0xf155[21]:;case _0xf155[22]:;case _0xf155[23]:var _0xc6ccx20={};_0xc6ccx20[util[_0xf155[26]](_0xf155[59],_0xc6ccx13[_0xf155[42]][_0xf155[32]],_0xf155[60])]= false;return _0xc6ccx19[_0xf155[27]](_0xc6ccx20,{transaction:_0xc6ccx13[_0xf155[49]]|| null})[_0xf155[31]](function(_0xc6ccx19){return ReportMember[_0xf155[58]]({where:{channel:_0xc6ccx13[_0xf155[42]][_0xf155[32]],membername:_0xc6ccx19[_0xf155[38]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),type:_0xf155[41],exitAt:null}})})[_0xf155[31]](_0xc6ccx2f({message:_0xf155[57]}))[_0xf155[31]](function(_0xc6ccx1f){return _0xc6ccx1f[_0xf155[27]]({exitAt:moment()[_0xf155[26]](_0xf155[25])},{individualHooks:true,transaction:_0xc6ccx13[_0xf155[49]]|| null})})[_0xf155[31]](function(){return _0xc6ccx19});default:var _0xc6ccx18=Promise[_0xf155[53]](_0xc6ccx10[_0xf155[52]]);return _0xc6ccx18({action:_0xf155[51],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),paused:false})[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[61]](_0xc6ccx24)})[_0xf155[31]](function(){return _0xc6ccx19[_0xf155[27]]({voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false},{transaction:_0xc6ccx13[_0xf155[49]]|| null})})[_0xf155[31]](function(_0xc6ccx19){return ReportMember[_0xf155[36]]({where:{membername:_0xc6ccx19[_0xf155[38]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),type:_0xf155[41],exitAt:null}})})[_0xf155[31]](function(_0xc6ccx21){var _0xc6ccx22=[];_0xc6ccx21[_0xf155[29]](function(_0xc6ccx23){_0xc6ccx22[_0xf155[28]](_0xc6ccx23[_0xf155[27]]({exitAt:moment()[_0xf155[26]](_0xf155[25])}))});return Promise[_0xf155[30]](_0xc6ccx22)})[_0xf155[31]](function(){return _0xc6ccx19})}}}function _0xc6ccx25(_0xc6ccx13,_0xc6ccx18){return function(_0xc6ccx19){if(!_0xc6ccx19[_0xf155[55]]){return _0xc6ccx19[_0xf155[65]]()[_0xf155[31]](function(_0xc6ccx26){var _0xc6ccx27=[];_0xc6ccx26[_0xf155[29]](function(_0xc6ccx28){_0xc6ccx27[_0xf155[28]](_0xc6ccx10[_0xf155[52]]({action:_0xf155[64],queue:_0xc6ccx28[_0xf155[38]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),membername:_0xc6ccx19[_0xf155[38]]}))});return Promise[_0xf155[30]](_0xc6ccx27)})[_0xf155[31]](function(_0xc6ccx1c){var _0xc6ccx1a=[];_0xc6ccx11[_0xf155[29]](function(_0xc6ccx1b){_0xc6ccx1a[_0xf155[28]]({channel:_0xc6ccx1b,membername:_0xc6ccx19[_0xf155[38]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),type:_0xf155[63],enterAt:moment()[_0xf155[26]](_0xf155[25]),role:_0xc6ccx19[_0xf155[47]],internal:_0xc6ccx19[_0xf155[48]]})});return ReportMember[_0xf155[50]](_0xc6ccx1a,{individualHooks:true})})}}}function _0xc6ccx29(_0xc6ccx13,_0xc6ccx18){return function(_0xc6ccx19){return VoiceQueue[_0xf155[36]]()[_0xf155[31]](function(_0xc6ccx26){var _0xc6ccx27=[];_0xc6ccx26[_0xf155[29]](function(_0xc6ccx28){_0xc6ccx27[_0xf155[28]](_0xc6ccx10[_0xf155[52]]({action:_0xf155[66],queue:_0xc6ccx28[_0xf155[38]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]])}))});return Promise[_0xf155[30]](_0xc6ccx27)[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[61]](_0xc6ccx24)})})[_0xf155[31]](function(_0xc6ccx1c){return ReportMember[_0xf155[36]]({where:{membername:_0xc6ccx19[_0xf155[38]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),type:_0xf155[63],exitAt:null}})})[_0xf155[31]](function(_0xc6ccx21){var _0xc6ccx22=[];_0xc6ccx21[_0xf155[29]](function(_0xc6ccx23){_0xc6ccx22[_0xf155[28]](_0xc6ccx23[_0xf155[27]]({exitAt:moment()[_0xf155[26]](_0xf155[25])}))});return Promise[_0xf155[30]](_0xc6ccx22)})}}function _0xc6ccx2a(_0xc6ccx13,_0xc6ccx18){return function(_0xc6ccx19){var _0xc6ccx2b=[];switch(_0xc6ccx13[_0xf155[42]][_0xf155[32]]){case _0xf155[18]:_0xc6ccx13[_0xf155[42]][_0xf155[70]][_0xf155[29]](function(_0xc6ccx2c){_0xc6ccx2b[_0xf155[28]](UserHasVoiceQueue[_0xf155[69]]({where:{UserId:_0xc6ccx19[_0xf155[67]],queue:_0xc6ccx2c},defaults:{queue:_0xc6ccx2c,location:util[_0xf155[26]](_0xf155[68],_0xc6ccx19[_0xf155[38]]),membername:_0xc6ccx19[_0xf155[38]],UserId:_0xc6ccx19[_0xf155[67]]},transaction:_0xc6ccx13[_0xf155[49]]|| null}))});return Promise[_0xf155[30]](_0xc6ccx2b)[_0xf155[31]](function(){var _0xc6ccx27=[];_0xc6ccx13[_0xf155[42]][_0xf155[70]][_0xf155[29]](function(_0xc6ccx2c){_0xc6ccx27[_0xf155[28]](_0xc6ccx10[_0xf155[52]]({action:_0xf155[64],queue:_0xc6ccx2c,interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]]),membername:_0xc6ccx19[_0xf155[38]]}))});return Promise[_0xf155[30]](_0xc6ccx27)})[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[61]](_0xc6ccx24)});case _0xf155[19]:_0xc6ccx13[_0xf155[42]][_0xf155[70]][_0xf155[29]](function(_0xc6ccx2c){_0xc6ccx2b[_0xf155[28]](UserHasChatQueue[_0xf155[69]]({where:{UserId:_0xc6ccx19[_0xf155[67]],ChatQueueId:_0xc6ccx2c[_0xf155[67]]},defaults:{ChatQueueId:_0xc6ccx2c[_0xf155[67]],queue:_0xc6ccx2c[_0xf155[38]],UserId:_0xc6ccx19[_0xf155[67]]},transaction:_0xc6ccx13[_0xf155[49]]|| null}))});return Promise[_0xf155[30]](_0xc6ccx2b)[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[17]](_0xc6ccx24)});case _0xf155[20]:_0xc6ccx13[_0xf155[42]][_0xf155[70]][_0xf155[29]](function(_0xc6ccx2c){_0xc6ccx2b[_0xf155[28]](UserHasMailQueue[_0xf155[69]]({where:{UserId:_0xc6ccx19[_0xf155[67]],MailQueueId:_0xc6ccx2c[_0xf155[67]]},defaults:{MailQueueId:_0xc6ccx2c[_0xf155[67]],queue:_0xc6ccx2c[_0xf155[38]],UserId:_0xc6ccx19[_0xf155[67]]},transaction:_0xc6ccx13[_0xf155[49]]|| null}))});return Promise[_0xf155[30]](_0xc6ccx2b)[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[17]](_0xc6ccx24)});case _0xf155[22]:_0xc6ccx13[_0xf155[42]][_0xf155[70]][_0xf155[29]](function(_0xc6ccx2c){_0xc6ccx2b[_0xf155[28]](UserHasSmsQueue[_0xf155[69]]({where:{UserId:_0xc6ccx19[_0xf155[67]],SmsQueueId:_0xc6ccx2c[_0xf155[67]]},defaults:{SmsQueueId:_0xc6ccx2c[_0xf155[67]],queue:_0xc6ccx2c[_0xf155[38]],UserId:_0xc6ccx19[_0xf155[67]]},transaction:_0xc6ccx13[_0xf155[49]]|| null}))});return Promise[_0xf155[30]](_0xc6ccx2b)[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[17]](_0xc6ccx24)});case _0xf155[23]:_0xc6ccx13[_0xf155[42]][_0xf155[70]][_0xf155[29]](function(_0xc6ccx2c){_0xc6ccx2b[_0xf155[28]](UserHasOpenchannelQueue[_0xf155[69]]({where:{UserId:_0xc6ccx19[_0xf155[67]],OpenchannelQueueId:_0xc6ccx2c[_0xf155[67]]},defaults:{OpenchannelQueueId:_0xc6ccx2c[_0xf155[67]],queue:_0xc6ccx2c[_0xf155[38]],UserId:_0xc6ccx19[_0xf155[67]]},transaction:_0xc6ccx13[_0xf155[49]]|| null}))});return Promise[_0xf155[30]](_0xc6ccx2b)[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[17]](_0xc6ccx24)});case _0xf155[21]:_0xc6ccx13[_0xf155[42]][_0xf155[70]][_0xf155[29]](function(_0xc6ccx2c){_0xc6ccx2b[_0xf155[28]](UserHasFaxQueue[_0xf155[69]]({where:{UserId:_0xc6ccx19[_0xf155[67]],FaxQueueId:_0xc6ccx2c[_0xf155[67]]},defaults:{faxQueueId:_0xc6ccx2c[_0xf155[67]],queue:_0xc6ccx2c[_0xf155[38]],UserId:_0xc6ccx19[_0xf155[67]]},transaction:_0xc6ccx13[_0xf155[49]]|| null}))});return Promise[_0xf155[30]](_0xc6ccx2b)[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[17]](_0xc6ccx24)});default:}}}function _0xc6ccx2d(_0xc6ccx13,_0xc6ccx18){return function(_0xc6ccx19){switch(_0xc6ccx13[_0xf155[42]][_0xf155[32]]){case _0xf155[18]:return UserHasVoiceQueue[_0xf155[73]]({where:{UserId:_0xc6ccx19[_0xf155[67]],queue:_0xc6ccx13[_0xf155[42]][_0xf155[72]]},transaction:_0xc6ccx13[_0xf155[49]]|| null,individualHooks:true})[_0xf155[31]](function(){var _0xc6ccx2e=Promise[_0xf155[53]](_0xc6ccx10[_0xf155[52]]);return _0xc6ccx2e({action:_0xf155[66],queue:_0xc6ccx13[_0xf155[42]][_0xf155[72]],interface:util[_0xf155[26]](_0xf155[39],_0xf155[40],_0xc6ccx19[_0xf155[38]])})})[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[61]](_0xf155[71],_0xc6ccx24)});case _0xf155[19]:return UserHasChatQueue[_0xf155[73]]({where:{UserId:_0xc6ccx19[_0xf155[67]],ChatQueueId:_0xc6ccx13[_0xf155[42]][_0xf155[74]]},transaction:_0xc6ccx13[_0xf155[49]]|| null,individualHooks:true})[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[61]](_0xf155[71],_0xc6ccx24)});case _0xf155[20]:return UserHasMailQueue[_0xf155[73]]({where:{UserId:_0xc6ccx19[_0xf155[67]],MailQueueId:_0xc6ccx13[_0xf155[42]][_0xf155[74]]},transaction:_0xc6ccx13[_0xf155[49]]|| null,individualHooks:true})[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[61]](_0xf155[71],_0xc6ccx24)});case _0xf155[22]:return UserHasSmsQueue[_0xf155[73]]({where:{UserId:_0xc6ccx19[_0xf155[67]],SmsQueueId:_0xc6ccx13[_0xf155[42]][_0xf155[74]]},transaction:_0xc6ccx13[_0xf155[49]]|| null,individualHooks:true})[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[61]](_0xf155[71],_0xc6ccx24)});case _0xf155[23]:return UserHasOpenchannelQueue[_0xf155[73]]({where:{UserId:_0xc6ccx19[_0xf155[67]],OpenchannelQueueId:_0xc6ccx13[_0xf155[42]][_0xf155[74]]},transaction:_0xc6ccx13[_0xf155[49]]|| null,individualHooks:true})[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[61]](_0xf155[71],_0xc6ccx24)});case _0xf155[21]:return UserHasFaxQueue[_0xf155[73]]({where:{UserId:_0xc6ccx19[_0xf155[67]],FaxQueueId:_0xc6ccx13[_0xf155[42]][_0xf155[74]]},transaction:_0xc6ccx13[_0xf155[49]]|| null,individualHooks:true})[_0xf155[62]](function(_0xc6ccx24){console[_0xf155[61]](_0xf155[71],_0xc6ccx24)});default:}}}function _0xc6ccx2f(_0xc6ccx30){return function(_0xc6ccx31){if(!_0xc6ccx31){throw _0xc6ccx30};return _0xc6ccx31}}function _0xc6ccx32(_0xc6ccx18,_0xc6ccx13,_0xc6ccx10){switch(_0xc6ccx18[_0xf155[38]]){case _0xf155[78]:return Agent[_0xf155[77]](_0xc6ccx13[_0xf155[42]][_0xf155[76]])[_0xf155[31]](_0xc6ccx2f({message:_0xf155[75]}))[_0xf155[31]](_0xc6ccx17(_0xc6ccx13,_0xc6ccx18));case _0xf155[79]:return Agent[_0xf155[77]](_0xc6ccx13[_0xf155[42]][_0xf155[76]])[_0xf155[31]](_0xc6ccx2f({message:_0xf155[75]}))[_0xf155[31]](_0xc6ccx1e(_0xc6ccx13,_0xc6ccx18));case _0xf155[80]:return Agent[_0xf155[77]](_0xc6ccx18[_0xf155[43]])[_0xf155[31]](_0xc6ccx2f({message:_0xf155[75]}))[_0xf155[31]](_0xc6ccx25(_0xc6ccx13,_0xc6ccx18))[_0xf155[31]](function(){return Agent[_0xf155[77]](_0xc6ccx18[_0xf155[43]])})[_0xf155[31]](_0xc6ccx1d(_0xc6ccx13,_0xc6ccx18));case _0xf155[81]:return Agent[_0xf155[77]](_0xc6ccx18[_0xf155[43]])[_0xf155[31]](_0xc6ccx2f({message:_0xf155[75]}))[_0xf155[31]](_0xc6ccx1e(_0xc6ccx13,_0xc6ccx18))[_0xf155[31]](_0xc6ccx29(_0xc6ccx13,_0xc6ccx18));case _0xf155[64]:return Agent[_0xf155[77]](_0xc6ccx13[_0xf155[42]][_0xf155[76]])[_0xf155[31]](_0xc6ccx2f({message:_0xf155[75]}))[_0xf155[31]](_0xc6ccx2a(_0xc6ccx13,_0xc6ccx18));case _0xf155[66]:return Agent[_0xf155[77]](_0xc6ccx13[_0xf155[42]][_0xf155[76]])[_0xf155[31]](_0xc6ccx2f({message:_0xf155[75]}))[_0xf155[31]](_0xc6ccx2d(_0xc6ccx13,_0xc6ccx18));default:throw {message:_0xf155[82]}}}return {}}module[_0xf155[83]]= Action