Built motion from commit 4cb7c5ded.|1.0.24
[motion.git] / server / config / forked_routing / mail / queue.js
index 924ce86..a28bec6 100644 (file)
@@ -1 +1 @@
-var _0xc885=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x6D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x65\x78\x70\x6F\x72\x74\x73","\x6D\x65\x73\x73\x61\x67\x65","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x50\x50\x20\x51\x55\x45\x55\x45\x2C\x20\x51\x55\x45\x55\x45\x3A","\x6E\x61\x6D\x65","\x53\x54\x52\x41\x54\x45\x47\x59\x3A","\x73\x74\x72\x61\x74\x65\x67\x79","\x49\x4E\x54\x45\x52\x41\x43\x54\x49\x4F\x4E\x3A","\x75\x6E\x69\x71\x75\x65\x69\x64","\x41\x47\x45\x4E\x54","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x52\x45\x4A\x45\x43\x54\x45\x44","\x69\x6E\x66\x6F","\x69\x64","\x70\x75\x73\x68","\x72\x65\x6A\x65\x63\x74","\x74\x79\x70\x65","\x6F\x6E","\x66\x69\x6E\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x6C\x65\x6E\x67\x74\x68","\x6D\x61\x70","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6F\x6E\x6C\x69\x6E\x65","\x6D\x61\x69\x6C\x50\x61\x75\x73\x65","\x46\x49\x45\x4C\x44\x28\x55\x73\x65\x72\x2E\x69\x64\x2C\x25\x73\x29","\x6A\x6F\x69\x6E","\x66\x6F\x72\x6D\x61\x74","\x45\x52\x52\x4F\x52","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x3A\x25\x64","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x74\x6F","\x41\x47\x45\x4E\x54\x20\x53\x45\x4C\x45\x43\x54\x45\x44\x3A","\x66\x69\x6E\x64\x49\x6E\x64\x65\x78","\x73\x70\x6C\x69\x63\x65","\x68\x65\x61\x64","\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x71\x75\x65\x75\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x6D\x65\x72\x67\x65","\x72\x65\x71\x75\x65\x73\x74","\x4E\x4F\x20\x41\x56\x41\x49\x4C\x41\x42\x4C\x45\x20\x41\x47\x45\x4E\x54\x53","\x69\x6E\x64\x65\x78","\x55\x73\x65\x72","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x61\x64\x6D\x69\x6E\x73","\x75\x73\x65\x72\x73","\x45\x4E\x44\x20\x28\x4E\x4F\x20\x41\x4E\x53\x57\x45\x52\x20\x42\x59\x20\x41\x47\x45\x4E\x54\x53\x29","\x75\x70\x64\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x2E\x70\x65\x6E\x61\x6C\x74\x79","\x67\x72\x6F\x75\x70\x42\x79","\x76\x61\x6C\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65","\x63\x6C\x6F\x6E\x65","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x73\x68\x6F\x77","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x49\x64","\x6C\x61\x73\x74\x41\x67\x65\x6E\x74","\x62\x65\x65\x70\x61\x6C\x6C","\x70\x65\x6E\x61\x6C\x74\x79","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x73\x6F\x72\x74\x42\x79","\x72\x6F\x75\x6E\x64\x72\x6F\x62\x69\x6E","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x72\x65\x73\x6F\x6C\x76\x65","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x72\x6F\x6F\x6D\x69\x64","\x54\x49\x4D\x45\x4F\x55\x54","\x53\x45\x43"];_0xc885[0];var _=require(_0xc885[1]);var util=require(_0xc885[2]);var moment=require(_0xc885[3]);var logger=require(_0xc885[5])(_0xc885[4]);module[_0xc885[6]]= function(_0xa843x5,_0xa843x6,_0xa843x7,_0xa843x8,_0xa843x9,_0xa843xa){var _0xa843xb=[];var _0xa843xc;var _0xa843xd;var _0xa843xe;var _0xa843xf=0;process[_0xc885[24]](_0xc885[7],function(_0xa843x7){switch(_0xa843x7[_0xc885[23]]){case _0xc885[22]:logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[16],_0xa843x7[_0xc885[17]],_0xc885[18]);_0xa843xb[_0xc885[21]]({id:_0xa843x7[_0xc885[20]]});break;default:}});function _0xa843x10(_0xa843x11){var _0xa843x12=_[_0xc885[25]](_0xa843xb,{id:_0xa843x11[_0xc885[20]]});return _0xa843x12?true:false}function _0xa843x13(){var _0xa843x14=((_0xa843x5[_0xc885[26]]- _0xa843xf)> _0xa843xe[_0xc885[26]])?_0xa843xe[_0xc885[26]]:(_0xa843x5[_0xc885[26]]- _0xa843xf);if(_0xa843x14> 0){if(_0xa843xd[_0xc885[27]]){var _0xa843x15={where:{id:{$in:_[_0xc885[28]](_0xa843xd,_0xc885[20])},online:true,mailPause:false},include:[{model:_0xc885[29],attributes:[_0xc885[20]],raw:true}],attributes:[_0xc885[20],_0xc885[11],_0xc885[30],_0xc885[31],_0xc885[32]],order:[[{raw:util[_0xc885[35]](_0xc885[33],_[_0xc885[28]](_0xa843xd,_0xc885[20])[_0xc885[34]]())}]]};return _0xa843x9[_0xc885[54]](_0xc885[56],[_0xc885[57],_0xa843x15])[_0xc885[39]](function(_0xa843x18){if(_0xa843x18[_0xc885[27]]){var _0xa843x19;for(var _0xa843x1a=0;_0xa843x1a< _0xa843x18[_0xc885[27]];_0xa843x1a++){var _0xa843x11=_0xa843x18[_0xa843x1a];if(!_0xa843x10(_0xa843x11)){_0xa843x19= _0xa843x11;break}};if(_0xa843x19){logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[45],_0xa843x19[_0xc885[20]],_0xa843x19[_0xc885[11]]);var _0xa843x1b=_[_0xc885[46]](_0xa843xd,{"\x69\x64":_0xa843x19[_0xc885[20]]});if(_0xa843x1b>= 0){var _0xa843x1c=_0xa843xd[_0xc885[47]](_0xa843x1b,1);if(_0xa843x1c&& _0xa843x1c[_0xc885[27]]){_0xa843xd[_0xc885[21]](_[_0xc885[48]](_0xa843x1c))}};return _0xa843x9[_0xc885[54]](_0xc885[49],[_0xc885[50],_[_0xc885[53]](_0xa843x6,{timeslot:_0xa843x14,application:_0xc885[51],membername:_0xa843x19[_0xc885[11]],memberid:_0xa843x19[_0xc885[20]],queue:_0xa843xe[_0xc885[20]],queuename:_0xa843xe[_0xc885[11]],calledAt:moment()[_0xc885[35]](_0xc885[52])})])};logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[55]);return}else {logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[55]);return}})[_0xc885[39]](function(_0xa843x17){if(_0xa843x17){_0xa843x8[_0xc885[44]](util[_0xc885[35]](_0xc885[42],_0xa843x17[_0xc885[43]]))[_0xc885[41]](_0xc885[40],_0xa843x17)}})[_0xc885[39]](function(){_0xa843xc= setTimeout(function(){_0xa843xf+= _0xa843xe[_0xc885[26]];_0xa843x13()},_0xa843x14* 1000)})[_0xc885[38]](function(_0xa843x16){logger[_0xc885[37]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[36]);_0xa843xa(_0xa843x16)})}else {logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[55]);_0xa843xc= setTimeout(function(){_0xa843xf+= _0xa843xe[_0xc885[26]];_0xa843x13()},_0xa843x14* 1000)}}else {return _0xa843x9[_0xc885[54]](_0xc885[62],[_0xc885[63],{leaveAt:moment()[_0xc885[35]](_0xc885[52]),timeout:true},{where:{uniqueid:_0xa843x6[_0xc885[15]],leaveAt:null},individualHooks:true}])[_0xc885[39]](function(_0xa843x1d){if(_0xa843x1d){_0xa843x8[_0xc885[44]](_0xc885[59])[_0xc885[41]](_0xc885[58],_0xa843x1d);_0xa843x8[_0xc885[44]](_0xc885[60])[_0xc885[41]](_0xc885[58],_0xa843x1d)};logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[61]);clearTimeout(_0xa843xc);_0xa843xa()})[_0xc885[38]](function(_0xa843x16){logger[_0xc885[37]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[36]);_0xa843xa(_0xa843x16)})}}function _0xa843x1e(){var _0xa843x14=((_0xa843x5[_0xc885[26]]- _0xa843xf)> _0xa843xe[_0xc885[26]])?_0xa843xe[_0xc885[26]]:(_0xa843x5[_0xc885[26]]- _0xa843xf);if(_0xa843x14> 0){return _0xa843x9[_0xc885[54]](_0xc885[70],[_0xc885[71],{where:{id:_0xa843x5[_0xc885[72]]},attributes:[_0xc885[20],_0xc885[11],_0xc885[26],_0xc885[13],_0xc885[73]],include:[{model:_0xc885[57],where:{online:true,mailPause:false},attributes:[_0xc885[20],_0xc885[11],_0xc885[30],_0xc885[31],_0xc885[32]],raw:true}]}])[_0xc885[39]](function(_0xa843x20){if(_0xa843x20){var _0xa843x18=_[_0xc885[66]](_[_0xc885[65]](_0xa843x20.Users,_0xc885[64]));if(_0xa843x18&& _0xa843x18[_0xc885[27]]){var _0xa843x21;for(var _0xa843x1a=0;_0xa843x1a< _0xa843x18[_0xc885[27]];_0xa843x1a++){_[_0xc885[67]](_0xa843x18[_0xa843x1a],function(_0xa843x11){return _0xa843x10(_0xa843x11)});if(_0xa843x18[_0xa843x1a][_0xc885[27]]){_0xa843x21= _0xa843x18[_0xa843x1a];break}};if(_0xa843x21&& _0xa843x21[_0xc885[27]]){var _0xa843x22=_[_0xc885[28]](_0xa843x21,function(_0xa843x11){return _[_0xc885[68]](_[_0xc885[53]](_0xa843x6,{timeslot:_0xa843x14,application:_0xc885[51],membername:_0xa843x11[_0xc885[11]],memberid:_0xa843x11[_0xc885[20]],queue:_0xa843xe[_0xc885[20]],queuename:_0xa843xe[_0xc885[11]],calledAt:moment()[_0xc885[35]](_0xc885[52])}))});return _0xa843x9[_0xc885[54]](_0xc885[69],[_0xc885[50],_0xa843x22,{individualHooks:true}])}else {logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[55])}}else {logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[55])}}else {logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[55])}})[_0xc885[39]](function(_0xa843x1f){if(_0xa843x1f&& _0xa843x1f[_0xc885[27]]){for(var _0xa843x1a=0;_0xa843x1a< _0xa843x1f[_0xc885[27]];_0xa843x1a++){var _0xa843x17=_0xa843x1f[_0xa843x1a];_0xa843x8[_0xc885[44]](util[_0xc885[35]](_0xc885[42],_0xa843x17[_0xc885[43]]))[_0xc885[41]](_0xc885[40],_0xa843x17)}};_0xa843xc= setTimeout(function(){_0xa843xf+= _0xa843xe[_0xc885[26]];_0xa843x1e()},_0xa843x14* 1000)})[_0xc885[38]](function(_0xa843x16){logger[_0xc885[37]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[36]);_0xa843xa(_0xa843x16)})}else {return _0xa843x9[_0xc885[54]](_0xc885[62],[_0xc885[63],{leaveAt:moment()[_0xc885[35]](_0xc885[52]),timeout:true},{where:{uniqueid:_0xa843x6[_0xc885[15]],leaveAt:null},individualHooks:true}])[_0xc885[39]](function(_0xa843x1d){if(_0xa843x1d){_0xa843x8[_0xc885[44]](_0xc885[59])[_0xc885[41]](_0xc885[58],_0xa843x1d);_0xa843x8[_0xc885[44]](_0xc885[60])[_0xc885[41]](_0xc885[58],_0xa843x1d)};logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[61]);clearTimeout(_0xa843xc);_0xa843xa()})[_0xc885[38]](function(_0xa843x16){logger[_0xc885[37]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[36]);_0xa843xa(_0xa843x16)})}}return _0xa843x9[_0xc885[54]](_0xc885[70],[_0xc885[71],{where:{id:_0xa843x5[_0xc885[72]]},attributes:[_0xc885[20],_0xc885[11],_0xc885[26],_0xc885[13],_0xc885[73]],include:[{model:_0xc885[57],attributes:[_0xc885[20]]}]}])[_0xc885[39]](function(_0xa843x20){_0xa843xe= _0xa843x20;logger[_0xc885[19]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[83],_0xa843x5[_0xc885[26]],_0xc885[84]);return _0xa843x9[_0xc885[54]](_0xc885[49],[_0xc885[63],_[_0xc885[53]](_0xa843x6,{timeslot:_0xa843x5[_0xc885[26]],application:_0xc885[51],queue:_0xa843x20[_0xc885[20]],queuename:_0xa843x20[_0xc885[11]],calledAt:moment()[_0xc885[35]](_0xc885[52]),joinAt:moment()[_0xc885[35]](_0xc885[52]),membername:null,memberid:null})])})[_0xc885[39]](function(_0xa843x1d){_0xa843x8[_0xc885[44]](_0xc885[59])[_0xc885[41]](_0xc885[58],_0xa843x1d);_0xa843x8[_0xc885[44]](_0xc885[60])[_0xc885[41]](_0xc885[58],_0xa843x1d);return _0xa843x9[_0xc885[54]](_0xc885[62],[_0xc885[29],{waiting:true},{id:_0xa843x6[_0xc885[82]]}])})[_0xc885[39]](function(_0xa843x23){if(_0xa843x23){_0xa843x8[_0xc885[41]](_0xc885[81],_0xa843x23)}})[_0xc885[39]](function(_0xa843x23){switch(_0xa843xe[_0xc885[13]]){case _0xc885[74]:_0xa843x1e();break;case _0xc885[78]:_0xa843xd= _[_0xc885[77]](_0xa843xe.Users,[function(_0xa843x24){return _0xa843x24[_0xc885[76]][_0xc885[75]]|| 0}]);_0xa843x13();break;case _0xc885[79]:_0xa843xd= _[_0xc885[77]](_0xa843xe.Users,[function(_0xa843x24){return _0xa843x24[_0xc885[76]][_0xc885[75]]|| 0}]);_0xa843x13();break;default:};return Promise[_0xc885[80]]()})[_0xc885[38]](function(_0xa843x16){logger[_0xc885[37]](_0xa843x6[_0xc885[9]][_0xc885[8]](),_0xc885[10],_0xa843xe[_0xc885[11]][_0xc885[8]](),_0xc885[12],_0xa843xe[_0xc885[13]],_0xc885[14],_0xa843x6[_0xc885[15]],_0xc885[36]);logger[_0xc885[37]](_0xa843x16);_0xa843xa(_0xa843x16)})}
\ No newline at end of file
+var _0x82a6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x6D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x65\x78\x70\x6F\x72\x74\x73","\x6D\x65\x73\x73\x61\x67\x65","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x50\x50\x20\x51\x55\x45\x55\x45\x2C\x20\x51\x55\x45\x55\x45\x3A","\x6E\x61\x6D\x65","\x53\x54\x52\x41\x54\x45\x47\x59\x3A","\x73\x74\x72\x61\x74\x65\x67\x79","\x49\x4E\x54\x45\x52\x41\x43\x54\x49\x4F\x4E\x3A","\x75\x6E\x69\x71\x75\x65\x69\x64","\x41\x47\x45\x4E\x54","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x52\x45\x4A\x45\x43\x54\x45\x44","\x69\x6E\x66\x6F","\x69\x64","\x70\x75\x73\x68","\x72\x65\x6A\x65\x63\x74","\x74\x79\x70\x65","\x6F\x6E","\x66\x69\x6E\x64","\x74\x69\x6D\x65\x6F\x75\x74","\x6C\x65\x6E\x67\x74\x68","\x6D\x61\x70","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6F\x6E\x6C\x69\x6E\x65","\x6D\x61\x69\x6C\x50\x61\x75\x73\x65","\x46\x49\x45\x4C\x44\x28\x55\x73\x65\x72\x2E\x69\x64\x2C\x25\x73\x29","\x6A\x6F\x69\x6E","\x66\x6F\x72\x6D\x61\x74","\x45\x52\x52\x4F\x52","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x3A\x25\x64","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x74\x6F","\x41\x47\x45\x4E\x54\x20\x53\x45\x4C\x45\x43\x54\x45\x44\x3A","\x66\x69\x6E\x64\x49\x6E\x64\x65\x78","\x73\x70\x6C\x69\x63\x65","\x68\x65\x61\x64","\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x71\x75\x65\x75\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x6D\x65\x72\x67\x65","\x72\x65\x71\x75\x65\x73\x74","\x4E\x4F\x20\x41\x56\x41\x49\x4C\x41\x42\x4C\x45\x20\x41\x47\x45\x4E\x54\x53","\x69\x6E\x64\x65\x78","\x55\x73\x65\x72","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x61\x64\x6D\x69\x6E\x73","\x75\x73\x65\x72\x73","\x45\x4E\x44\x20\x28\x4E\x4F\x20\x41\x4E\x53\x57\x45\x52\x20\x42\x59\x20\x41\x47\x45\x4E\x54\x53\x29","\x75\x70\x64\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x2E\x70\x65\x6E\x61\x6C\x74\x79","\x67\x72\x6F\x75\x70\x42\x79","\x76\x61\x6C\x75\x65\x73","\x72\x65\x6D\x6F\x76\x65","\x63\x6C\x6F\x6E\x65","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x73\x68\x6F\x77","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x49\x64","\x6C\x61\x73\x74\x41\x67\x65\x6E\x74","\x62\x65\x65\x70\x61\x6C\x6C","\x70\x65\x6E\x61\x6C\x74\x79","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x73\x6F\x72\x74\x42\x79","\x72\x6F\x75\x6E\x64\x72\x6F\x62\x69\x6E","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x72\x65\x73\x6F\x6C\x76\x65","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x3A\x73\x61\x76\x65","\x72\x6F\x6F\x6D\x69\x64","\x54\x49\x4D\x45\x4F\x55\x54","\x53\x45\x43"];_0x82a6[0];var _=require(_0x82a6[1]);var util=require(_0x82a6[2]);var moment=require(_0x82a6[3]);var logger=require(_0x82a6[5])(_0x82a6[4]);module[_0x82a6[6]]= function(_0x7637x5,_0x7637x6,_0x7637x7,_0x7637x8,_0x7637x9,_0x7637xa){var _0x7637xb=[];var _0x7637xc;var _0x7637xd;var _0x7637xe;var _0x7637xf=0;process[_0x82a6[24]](_0x82a6[7],function(_0x7637x7){switch(_0x7637x7[_0x82a6[23]]){case _0x82a6[22]:logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[16],_0x7637x7[_0x82a6[17]],_0x82a6[18]);_0x7637xb[_0x82a6[21]]({id:_0x7637x7[_0x82a6[20]]});break;default:}});function _0x7637x10(_0x7637x11){var _0x7637x12=_[_0x82a6[25]](_0x7637xb,{id:_0x7637x11[_0x82a6[20]]});return _0x7637x12?true:false}function _0x7637x13(){var _0x7637x14=((_0x7637x5[_0x82a6[26]]- _0x7637xf)> _0x7637xe[_0x82a6[26]])?_0x7637xe[_0x82a6[26]]:(_0x7637x5[_0x82a6[26]]- _0x7637xf);if(_0x7637x14> 0){if(_0x7637xd[_0x82a6[27]]){var _0x7637x15={where:{id:{$in:_[_0x82a6[28]](_0x7637xd,_0x82a6[20])},online:true,mailPause:false},include:[{model:_0x82a6[29],attributes:[_0x82a6[20]],raw:true}],attributes:[_0x82a6[20],_0x82a6[11],_0x82a6[30],_0x82a6[31],_0x82a6[32]],order:[[{raw:util[_0x82a6[35]](_0x82a6[33],_[_0x82a6[28]](_0x7637xd,_0x82a6[20])[_0x82a6[34]]())}]]};return _0x7637x9[_0x82a6[54]](_0x82a6[56],[_0x82a6[57],_0x7637x15])[_0x82a6[39]](function(_0x7637x18){if(_0x7637x18[_0x82a6[27]]){var _0x7637x19;for(var _0x7637x1a=0;_0x7637x1a< _0x7637x18[_0x82a6[27]];_0x7637x1a++){var _0x7637x11=_0x7637x18[_0x7637x1a];if(!_0x7637x10(_0x7637x11)){_0x7637x19= _0x7637x11;break}};if(_0x7637x19){logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[45],_0x7637x19[_0x82a6[20]],_0x7637x19[_0x82a6[11]]);var _0x7637x1b=_[_0x82a6[46]](_0x7637xd,{"\x69\x64":_0x7637x19[_0x82a6[20]]});if(_0x7637x1b>= 0){var _0x7637x1c=_0x7637xd[_0x82a6[47]](_0x7637x1b,1);if(_0x7637x1c&& _0x7637x1c[_0x82a6[27]]){_0x7637xd[_0x82a6[21]](_[_0x82a6[48]](_0x7637x1c))}};return _0x7637x9[_0x82a6[54]](_0x82a6[49],[_0x82a6[50],_[_0x82a6[53]](_0x7637x6,{timeslot:_0x7637x14,application:_0x82a6[51],membername:_0x7637x19[_0x82a6[11]],memberid:_0x7637x19[_0x82a6[20]],queue:_0x7637xe[_0x82a6[20]],queuename:_0x7637xe[_0x82a6[11]],calledAt:moment()[_0x82a6[35]](_0x82a6[52])})])};logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[55]);return}else {logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[55]);return}})[_0x82a6[39]](function(_0x7637x17){if(_0x7637x17){_0x7637x8[_0x82a6[44]](util[_0x82a6[35]](_0x82a6[42],_0x7637x17[_0x82a6[43]]))[_0x82a6[41]](_0x82a6[40],_0x7637x17)}})[_0x82a6[39]](function(){_0x7637xc= setTimeout(function(){_0x7637xf+= _0x7637xe[_0x82a6[26]];_0x7637x13()},_0x7637x14* 1000)})[_0x82a6[38]](function(_0x7637x16){logger[_0x82a6[37]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[36]);_0x7637xa(_0x7637x16)})}else {logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[55]);_0x7637xc= setTimeout(function(){_0x7637xf+= _0x7637xe[_0x82a6[26]];_0x7637x13()},_0x7637x14* 1000)}}else {return _0x7637x9[_0x82a6[54]](_0x82a6[62],[_0x82a6[63],{leaveAt:moment()[_0x82a6[35]](_0x82a6[52]),timeout:true},{where:{uniqueid:_0x7637x6[_0x82a6[15]],leaveAt:null},individualHooks:true}])[_0x82a6[39]](function(_0x7637x1d){if(_0x7637x1d){_0x7637x8[_0x82a6[44]](_0x82a6[59])[_0x82a6[41]](_0x82a6[58],_0x7637x1d);_0x7637x8[_0x82a6[44]](_0x82a6[60])[_0x82a6[41]](_0x82a6[58],_0x7637x1d)};logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[61]);clearTimeout(_0x7637xc);_0x7637xa()})[_0x82a6[38]](function(_0x7637x16){logger[_0x82a6[37]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[36]);_0x7637xa(_0x7637x16)})}}function _0x7637x1e(){var _0x7637x14=((_0x7637x5[_0x82a6[26]]- _0x7637xf)> _0x7637xe[_0x82a6[26]])?_0x7637xe[_0x82a6[26]]:(_0x7637x5[_0x82a6[26]]- _0x7637xf);if(_0x7637x14> 0){return _0x7637x9[_0x82a6[54]](_0x82a6[70],[_0x82a6[71],{where:{id:_0x7637x5[_0x82a6[72]]},attributes:[_0x82a6[20],_0x82a6[11],_0x82a6[26],_0x82a6[13],_0x82a6[73]],include:[{model:_0x82a6[57],where:{online:true,mailPause:false},attributes:[_0x82a6[20],_0x82a6[11],_0x82a6[30],_0x82a6[31],_0x82a6[32]],raw:true}]}])[_0x82a6[39]](function(_0x7637x20){if(_0x7637x20){var _0x7637x18=_[_0x82a6[66]](_[_0x82a6[65]](_0x7637x20.Users,_0x82a6[64]));if(_0x7637x18&& _0x7637x18[_0x82a6[27]]){var _0x7637x21;for(var _0x7637x1a=0;_0x7637x1a< _0x7637x18[_0x82a6[27]];_0x7637x1a++){_[_0x82a6[67]](_0x7637x18[_0x7637x1a],function(_0x7637x11){return _0x7637x10(_0x7637x11)});if(_0x7637x18[_0x7637x1a][_0x82a6[27]]){_0x7637x21= _0x7637x18[_0x7637x1a];break}};if(_0x7637x21&& _0x7637x21[_0x82a6[27]]){var _0x7637x22=_[_0x82a6[28]](_0x7637x21,function(_0x7637x11){return _[_0x82a6[68]](_[_0x82a6[53]](_0x7637x6,{timeslot:_0x7637x14,application:_0x82a6[51],membername:_0x7637x11[_0x82a6[11]],memberid:_0x7637x11[_0x82a6[20]],queue:_0x7637xe[_0x82a6[20]],queuename:_0x7637xe[_0x82a6[11]],calledAt:moment()[_0x82a6[35]](_0x82a6[52])}))});return _0x7637x9[_0x82a6[54]](_0x82a6[69],[_0x82a6[50],_0x7637x22,{individualHooks:true}])}else {logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[55])}}else {logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[55])}}else {logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[55])}})[_0x82a6[39]](function(_0x7637x1f){if(_0x7637x1f&& _0x7637x1f[_0x82a6[27]]){for(var _0x7637x1a=0;_0x7637x1a< _0x7637x1f[_0x82a6[27]];_0x7637x1a++){var _0x7637x17=_0x7637x1f[_0x7637x1a];_0x7637x8[_0x82a6[44]](util[_0x82a6[35]](_0x82a6[42],_0x7637x17[_0x82a6[43]]))[_0x82a6[41]](_0x82a6[40],_0x7637x17)}};_0x7637xc= setTimeout(function(){_0x7637xf+= _0x7637xe[_0x82a6[26]];_0x7637x1e()},_0x7637x14* 1000)})[_0x82a6[38]](function(_0x7637x16){logger[_0x82a6[37]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[36]);_0x7637xa(_0x7637x16)})}else {return _0x7637x9[_0x82a6[54]](_0x82a6[62],[_0x82a6[63],{leaveAt:moment()[_0x82a6[35]](_0x82a6[52]),timeout:true},{where:{uniqueid:_0x7637x6[_0x82a6[15]],leaveAt:null},individualHooks:true}])[_0x82a6[39]](function(_0x7637x1d){if(_0x7637x1d){_0x7637x8[_0x82a6[44]](_0x82a6[59])[_0x82a6[41]](_0x82a6[58],_0x7637x1d);_0x7637x8[_0x82a6[44]](_0x82a6[60])[_0x82a6[41]](_0x82a6[58],_0x7637x1d)};logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[61]);clearTimeout(_0x7637xc);_0x7637xa()})[_0x82a6[38]](function(_0x7637x16){logger[_0x82a6[37]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[36]);_0x7637xa(_0x7637x16)})}}return _0x7637x9[_0x82a6[54]](_0x82a6[70],[_0x82a6[71],{where:{id:_0x7637x5[_0x82a6[72]]},attributes:[_0x82a6[20],_0x82a6[11],_0x82a6[26],_0x82a6[13],_0x82a6[73]],include:[{model:_0x82a6[57],attributes:[_0x82a6[20]]}]}])[_0x82a6[39]](function(_0x7637x20){_0x7637xe= _0x7637x20;logger[_0x82a6[19]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[83],_0x7637x5[_0x82a6[26]],_0x82a6[84]);return _0x7637x9[_0x82a6[54]](_0x82a6[49],[_0x82a6[63],_[_0x82a6[53]](_0x7637x6,{timeslot:_0x7637x5[_0x82a6[26]],application:_0x82a6[51],queue:_0x7637x20[_0x82a6[20]],queuename:_0x7637x20[_0x82a6[11]],calledAt:moment()[_0x82a6[35]](_0x82a6[52]),joinAt:moment()[_0x82a6[35]](_0x82a6[52]),membername:null,memberid:null})])})[_0x82a6[39]](function(_0x7637x1d){_0x7637x8[_0x82a6[44]](_0x82a6[59])[_0x82a6[41]](_0x82a6[58],_0x7637x1d);_0x7637x8[_0x82a6[44]](_0x82a6[60])[_0x82a6[41]](_0x82a6[58],_0x7637x1d);return _0x7637x9[_0x82a6[54]](_0x82a6[62],[_0x82a6[29],{waiting:true},{id:_0x7637x6[_0x82a6[82]]}])})[_0x82a6[39]](function(_0x7637x23){if(_0x7637x23){_0x7637x8[_0x82a6[41]](_0x82a6[81],_0x7637x23)}})[_0x82a6[39]](function(_0x7637x23){switch(_0x7637xe[_0x82a6[13]]){case _0x82a6[74]:_0x7637x1e();break;case _0x82a6[78]:_0x7637xd= _[_0x82a6[77]](_0x7637xe.Users,[function(_0x7637x24){return _0x7637x24[_0x82a6[76]][_0x82a6[75]]|| 0}]);_0x7637x13();break;case _0x82a6[79]:_0x7637xd= _[_0x82a6[77]](_0x7637xe.Users,[function(_0x7637x24){return _0x7637x24[_0x82a6[76]][_0x82a6[75]]|| 0}]);_0x7637x13();break;default:};return Promise[_0x82a6[80]]()})[_0x82a6[38]](function(_0x7637x16){logger[_0x82a6[37]](_0x7637x6[_0x82a6[9]][_0x82a6[8]](),_0x82a6[10],_0x7637xe[_0x82a6[11]][_0x82a6[8]](),_0x82a6[12],_0x7637xe[_0x82a6[13]],_0x82a6[14],_0x7637x6[_0x82a6[15]],_0x82a6[36]);logger[_0x82a6[37]](_0x7637x16);_0x7637xa(_0x7637x16)})}
\ No newline at end of file