Built motion from commit d3d6ca497.|1.0.32
[motion.git] / server / config / forked_routing / mail / queue.js
index bcba2d7..3c61754 100644 (file)
@@ -1 +1 @@
-var _0x23a2=["\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"];_0x23a2[0];var _=require(_0x23a2[1]);var util=require(_0x23a2[2]);var moment=require(_0x23a2[3]);var logger=require(_0x23a2[5])(_0x23a2[4]);module[_0x23a2[6]]= function(_0x2cd7x5,_0x2cd7x6,_0x2cd7x7,_0x2cd7x8,_0x2cd7x9,_0x2cd7xa){var _0x2cd7xb=[];var _0x2cd7xc;var _0x2cd7xd;var _0x2cd7xe;var _0x2cd7xf=0;process[_0x23a2[24]](_0x23a2[7],function(_0x2cd7x7){switch(_0x2cd7x7[_0x23a2[23]]){case _0x23a2[22]:logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[16],_0x2cd7x7[_0x23a2[17]],_0x23a2[18]);_0x2cd7xb[_0x23a2[21]]({id:_0x2cd7x7[_0x23a2[20]]});break;default:}});function _0x2cd7x10(_0x2cd7x11){var _0x2cd7x12=_[_0x23a2[25]](_0x2cd7xb,{id:_0x2cd7x11[_0x23a2[20]]});return _0x2cd7x12?true:false}function _0x2cd7x13(){var _0x2cd7x14=((_0x2cd7x5[_0x23a2[26]]- _0x2cd7xf)> _0x2cd7xe[_0x23a2[26]])?_0x2cd7xe[_0x23a2[26]]:(_0x2cd7x5[_0x23a2[26]]- _0x2cd7xf);if(_0x2cd7x14> 0){if(_0x2cd7xd[_0x23a2[27]]){var _0x2cd7x15={where:{id:{$in:_[_0x23a2[28]](_0x2cd7xd,_0x23a2[20])},online:true,mailPause:false},include:[{model:_0x23a2[29],attributes:[_0x23a2[20]],raw:true}],attributes:[_0x23a2[20],_0x23a2[11],_0x23a2[30],_0x23a2[31],_0x23a2[32]],order:[[{raw:util[_0x23a2[35]](_0x23a2[33],_[_0x23a2[28]](_0x2cd7xd,_0x23a2[20])[_0x23a2[34]]())}]]};return _0x2cd7x9[_0x23a2[54]](_0x23a2[56],[_0x23a2[57],_0x2cd7x15])[_0x23a2[39]](function(_0x2cd7x18){if(_0x2cd7x18[_0x23a2[27]]){var _0x2cd7x19;for(var _0x2cd7x1a=0;_0x2cd7x1a< _0x2cd7x18[_0x23a2[27]];_0x2cd7x1a++){var _0x2cd7x11=_0x2cd7x18[_0x2cd7x1a];if(!_0x2cd7x10(_0x2cd7x11)){_0x2cd7x19= _0x2cd7x11;break}};if(_0x2cd7x19){logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[45],_0x2cd7x19[_0x23a2[20]],_0x2cd7x19[_0x23a2[11]]);var _0x2cd7x1b=_[_0x23a2[46]](_0x2cd7xd,{"\x69\x64":_0x2cd7x19[_0x23a2[20]]});if(_0x2cd7x1b>= 0){var _0x2cd7x1c=_0x2cd7xd[_0x23a2[47]](_0x2cd7x1b,1);if(_0x2cd7x1c&& _0x2cd7x1c[_0x23a2[27]]){_0x2cd7xd[_0x23a2[21]](_[_0x23a2[48]](_0x2cd7x1c))}};return _0x2cd7x9[_0x23a2[54]](_0x23a2[49],[_0x23a2[50],_[_0x23a2[53]](_0x2cd7x6,{timeslot:_0x2cd7x14,application:_0x23a2[51],membername:_0x2cd7x19[_0x23a2[11]],memberid:_0x2cd7x19[_0x23a2[20]],queue:_0x2cd7xe[_0x23a2[20]],queuename:_0x2cd7xe[_0x23a2[11]],calledAt:moment()[_0x23a2[35]](_0x23a2[52])})])};logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[55]);return}else {logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[55]);return}})[_0x23a2[39]](function(_0x2cd7x17){if(_0x2cd7x17){_0x2cd7x8[_0x23a2[44]](util[_0x23a2[35]](_0x23a2[42],_0x2cd7x17[_0x23a2[43]]))[_0x23a2[41]](_0x23a2[40],_0x2cd7x17)}})[_0x23a2[39]](function(){_0x2cd7xc= setTimeout(function(){_0x2cd7xf+= _0x2cd7xe[_0x23a2[26]];_0x2cd7x13()},_0x2cd7x14* 1000)})[_0x23a2[38]](function(_0x2cd7x16){logger[_0x23a2[37]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[36]);_0x2cd7xa(_0x2cd7x16)})}else {logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[55]);_0x2cd7xc= setTimeout(function(){_0x2cd7xf+= _0x2cd7xe[_0x23a2[26]];_0x2cd7x13()},_0x2cd7x14* 1000)}}else {return _0x2cd7x9[_0x23a2[54]](_0x23a2[62],[_0x23a2[63],{leaveAt:moment()[_0x23a2[35]](_0x23a2[52]),timeout:true},{where:{uniqueid:_0x2cd7x6[_0x23a2[15]],leaveAt:null},individualHooks:true}])[_0x23a2[39]](function(_0x2cd7x1d){if(_0x2cd7x1d){_0x2cd7x8[_0x23a2[44]](_0x23a2[59])[_0x23a2[41]](_0x23a2[58],_0x2cd7x1d);_0x2cd7x8[_0x23a2[44]](_0x23a2[60])[_0x23a2[41]](_0x23a2[58],_0x2cd7x1d)};logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[61]);clearTimeout(_0x2cd7xc);_0x2cd7xa()})[_0x23a2[38]](function(_0x2cd7x16){logger[_0x23a2[37]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[36]);_0x2cd7xa(_0x2cd7x16)})}}function _0x2cd7x1e(){var _0x2cd7x14=((_0x2cd7x5[_0x23a2[26]]- _0x2cd7xf)> _0x2cd7xe[_0x23a2[26]])?_0x2cd7xe[_0x23a2[26]]:(_0x2cd7x5[_0x23a2[26]]- _0x2cd7xf);if(_0x2cd7x14> 0){return _0x2cd7x9[_0x23a2[54]](_0x23a2[70],[_0x23a2[71],{where:{id:_0x2cd7x5[_0x23a2[72]]},attributes:[_0x23a2[20],_0x23a2[11],_0x23a2[26],_0x23a2[13],_0x23a2[73]],include:[{model:_0x23a2[57],where:{online:true,mailPause:false},attributes:[_0x23a2[20],_0x23a2[11],_0x23a2[30],_0x23a2[31],_0x23a2[32]],raw:true}]}])[_0x23a2[39]](function(_0x2cd7x20){if(_0x2cd7x20){var _0x2cd7x18=_[_0x23a2[66]](_[_0x23a2[65]](_0x2cd7x20.Users,_0x23a2[64]));if(_0x2cd7x18&& _0x2cd7x18[_0x23a2[27]]){var _0x2cd7x21;for(var _0x2cd7x1a=0;_0x2cd7x1a< _0x2cd7x18[_0x23a2[27]];_0x2cd7x1a++){_[_0x23a2[67]](_0x2cd7x18[_0x2cd7x1a],function(_0x2cd7x11){return _0x2cd7x10(_0x2cd7x11)});if(_0x2cd7x18[_0x2cd7x1a][_0x23a2[27]]){_0x2cd7x21= _0x2cd7x18[_0x2cd7x1a];break}};if(_0x2cd7x21&& _0x2cd7x21[_0x23a2[27]]){var _0x2cd7x22=_[_0x23a2[28]](_0x2cd7x21,function(_0x2cd7x11){return _[_0x23a2[68]](_[_0x23a2[53]](_0x2cd7x6,{timeslot:_0x2cd7x14,application:_0x23a2[51],membername:_0x2cd7x11[_0x23a2[11]],memberid:_0x2cd7x11[_0x23a2[20]],queue:_0x2cd7xe[_0x23a2[20]],queuename:_0x2cd7xe[_0x23a2[11]],calledAt:moment()[_0x23a2[35]](_0x23a2[52])}))});return _0x2cd7x9[_0x23a2[54]](_0x23a2[69],[_0x23a2[50],_0x2cd7x22,{individualHooks:true}])}else {logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[55])}}else {logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[55])}}else {logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[55])}})[_0x23a2[39]](function(_0x2cd7x1f){if(_0x2cd7x1f&& _0x2cd7x1f[_0x23a2[27]]){for(var _0x2cd7x1a=0;_0x2cd7x1a< _0x2cd7x1f[_0x23a2[27]];_0x2cd7x1a++){var _0x2cd7x17=_0x2cd7x1f[_0x2cd7x1a];_0x2cd7x8[_0x23a2[44]](util[_0x23a2[35]](_0x23a2[42],_0x2cd7x17[_0x23a2[43]]))[_0x23a2[41]](_0x23a2[40],_0x2cd7x17)}};_0x2cd7xc= setTimeout(function(){_0x2cd7xf+= _0x2cd7xe[_0x23a2[26]];_0x2cd7x1e()},_0x2cd7x14* 1000)})[_0x23a2[38]](function(_0x2cd7x16){logger[_0x23a2[37]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[36]);_0x2cd7xa(_0x2cd7x16)})}else {return _0x2cd7x9[_0x23a2[54]](_0x23a2[62],[_0x23a2[63],{leaveAt:moment()[_0x23a2[35]](_0x23a2[52]),timeout:true},{where:{uniqueid:_0x2cd7x6[_0x23a2[15]],leaveAt:null},individualHooks:true}])[_0x23a2[39]](function(_0x2cd7x1d){if(_0x2cd7x1d){_0x2cd7x8[_0x23a2[44]](_0x23a2[59])[_0x23a2[41]](_0x23a2[58],_0x2cd7x1d);_0x2cd7x8[_0x23a2[44]](_0x23a2[60])[_0x23a2[41]](_0x23a2[58],_0x2cd7x1d)};logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[61]);clearTimeout(_0x2cd7xc);_0x2cd7xa()})[_0x23a2[38]](function(_0x2cd7x16){logger[_0x23a2[37]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[36]);_0x2cd7xa(_0x2cd7x16)})}}return _0x2cd7x9[_0x23a2[54]](_0x23a2[70],[_0x23a2[71],{where:{id:_0x2cd7x5[_0x23a2[72]]},attributes:[_0x23a2[20],_0x23a2[11],_0x23a2[26],_0x23a2[13],_0x23a2[73]],include:[{model:_0x23a2[57],attributes:[_0x23a2[20]]}]}])[_0x23a2[39]](function(_0x2cd7x20){_0x2cd7xe= _0x2cd7x20;logger[_0x23a2[19]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[83],_0x2cd7x5[_0x23a2[26]],_0x23a2[84]);return _0x2cd7x9[_0x23a2[54]](_0x23a2[49],[_0x23a2[63],_[_0x23a2[53]](_0x2cd7x6,{timeslot:_0x2cd7x5[_0x23a2[26]],application:_0x23a2[51],queue:_0x2cd7x20[_0x23a2[20]],queuename:_0x2cd7x20[_0x23a2[11]],calledAt:moment()[_0x23a2[35]](_0x23a2[52]),joinAt:moment()[_0x23a2[35]](_0x23a2[52]),membername:null,memberid:null})])})[_0x23a2[39]](function(_0x2cd7x1d){_0x2cd7x8[_0x23a2[44]](_0x23a2[59])[_0x23a2[41]](_0x23a2[58],_0x2cd7x1d);_0x2cd7x8[_0x23a2[44]](_0x23a2[60])[_0x23a2[41]](_0x23a2[58],_0x2cd7x1d);return _0x2cd7x9[_0x23a2[54]](_0x23a2[62],[_0x23a2[29],{waiting:true},{id:_0x2cd7x6[_0x23a2[82]]}])})[_0x23a2[39]](function(_0x2cd7x23){if(_0x2cd7x23){_0x2cd7x8[_0x23a2[41]](_0x23a2[81],_0x2cd7x23)}})[_0x23a2[39]](function(_0x2cd7x23){switch(_0x2cd7xe[_0x23a2[13]]){case _0x23a2[74]:_0x2cd7x1e();break;case _0x23a2[78]:_0x2cd7xd= _[_0x23a2[77]](_0x2cd7xe.Users,[function(_0x2cd7x24){return _0x2cd7x24[_0x23a2[76]][_0x23a2[75]]|| 0}]);_0x2cd7x13();break;case _0x23a2[79]:_0x2cd7xd= _[_0x23a2[77]](_0x2cd7xe.Users,[function(_0x2cd7x24){return _0x2cd7x24[_0x23a2[76]][_0x23a2[75]]|| 0}]);_0x2cd7x13();break;default:};return Promise[_0x23a2[80]]()})[_0x23a2[38]](function(_0x2cd7x16){logger[_0x23a2[37]](_0x2cd7x6[_0x23a2[9]][_0x23a2[8]](),_0x23a2[10],_0x2cd7xe[_0x23a2[11]][_0x23a2[8]](),_0x23a2[12],_0x2cd7xe[_0x23a2[13]],_0x23a2[14],_0x2cd7x6[_0x23a2[15]],_0x23a2[36]);logger[_0x23a2[37]](_0x2cd7x16);_0x2cd7xa(_0x2cd7x16)})}
\ No newline at end of file
+var _0xdc93=["\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"];_0xdc93[0];var _=require(_0xdc93[1]);var util=require(_0xdc93[2]);var moment=require(_0xdc93[3]);var logger=require(_0xdc93[5])(_0xdc93[4]);module[_0xdc93[6]]= function(_0x5ad6x5,_0x5ad6x6,_0x5ad6x7,_0x5ad6x8,_0x5ad6x9,_0x5ad6xa){var _0x5ad6xb=[];var _0x5ad6xc;var _0x5ad6xd;var _0x5ad6xe;var _0x5ad6xf=0;process[_0xdc93[24]](_0xdc93[7],function(_0x5ad6x7){switch(_0x5ad6x7[_0xdc93[23]]){case _0xdc93[22]:logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[16],_0x5ad6x7[_0xdc93[17]],_0xdc93[18]);_0x5ad6xb[_0xdc93[21]]({id:_0x5ad6x7[_0xdc93[20]]});break;default:}});function _0x5ad6x10(_0x5ad6x11){var _0x5ad6x12=_[_0xdc93[25]](_0x5ad6xb,{id:_0x5ad6x11[_0xdc93[20]]});return _0x5ad6x12?true:false}function _0x5ad6x13(){var _0x5ad6x14=((_0x5ad6x5[_0xdc93[26]]- _0x5ad6xf)> _0x5ad6xe[_0xdc93[26]])?_0x5ad6xe[_0xdc93[26]]:(_0x5ad6x5[_0xdc93[26]]- _0x5ad6xf);if(_0x5ad6x14> 0){if(_0x5ad6xd[_0xdc93[27]]){var _0x5ad6x15={where:{id:{$in:_[_0xdc93[28]](_0x5ad6xd,_0xdc93[20])},online:true,mailPause:false},include:[{model:_0xdc93[29],attributes:[_0xdc93[20]],raw:true}],attributes:[_0xdc93[20],_0xdc93[11],_0xdc93[30],_0xdc93[31],_0xdc93[32]],order:[[{raw:util[_0xdc93[35]](_0xdc93[33],_[_0xdc93[28]](_0x5ad6xd,_0xdc93[20])[_0xdc93[34]]())}]]};return _0x5ad6x9[_0xdc93[54]](_0xdc93[56],[_0xdc93[57],_0x5ad6x15])[_0xdc93[39]](function(_0x5ad6x18){if(_0x5ad6x18[_0xdc93[27]]){var _0x5ad6x19;for(var _0x5ad6x1a=0;_0x5ad6x1a< _0x5ad6x18[_0xdc93[27]];_0x5ad6x1a++){var _0x5ad6x11=_0x5ad6x18[_0x5ad6x1a];if(!_0x5ad6x10(_0x5ad6x11)){_0x5ad6x19= _0x5ad6x11;break}};if(_0x5ad6x19){logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[45],_0x5ad6x19[_0xdc93[20]],_0x5ad6x19[_0xdc93[11]]);var _0x5ad6x1b=_[_0xdc93[46]](_0x5ad6xd,{"\x69\x64":_0x5ad6x19[_0xdc93[20]]});if(_0x5ad6x1b>= 0){var _0x5ad6x1c=_0x5ad6xd[_0xdc93[47]](_0x5ad6x1b,1);if(_0x5ad6x1c&& _0x5ad6x1c[_0xdc93[27]]){_0x5ad6xd[_0xdc93[21]](_[_0xdc93[48]](_0x5ad6x1c))}};return _0x5ad6x9[_0xdc93[54]](_0xdc93[49],[_0xdc93[50],_[_0xdc93[53]](_0x5ad6x6,{timeslot:_0x5ad6x14,application:_0xdc93[51],membername:_0x5ad6x19[_0xdc93[11]],memberid:_0x5ad6x19[_0xdc93[20]],queue:_0x5ad6xe[_0xdc93[20]],queuename:_0x5ad6xe[_0xdc93[11]],calledAt:moment()[_0xdc93[35]](_0xdc93[52])})])};logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[55]);return}else {logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[55]);return}})[_0xdc93[39]](function(_0x5ad6x17){if(_0x5ad6x17){_0x5ad6x8[_0xdc93[44]](util[_0xdc93[35]](_0xdc93[42],_0x5ad6x17[_0xdc93[43]]))[_0xdc93[41]](_0xdc93[40],_0x5ad6x17)}})[_0xdc93[39]](function(){_0x5ad6xc= setTimeout(function(){_0x5ad6xf+= _0x5ad6xe[_0xdc93[26]];_0x5ad6x13()},_0x5ad6x14* 1000)})[_0xdc93[38]](function(_0x5ad6x16){logger[_0xdc93[37]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[36]);_0x5ad6xa(_0x5ad6x16)})}else {logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[55]);_0x5ad6xc= setTimeout(function(){_0x5ad6xf+= _0x5ad6xe[_0xdc93[26]];_0x5ad6x13()},_0x5ad6x14* 1000)}}else {return _0x5ad6x9[_0xdc93[54]](_0xdc93[62],[_0xdc93[63],{leaveAt:moment()[_0xdc93[35]](_0xdc93[52]),timeout:true},{where:{uniqueid:_0x5ad6x6[_0xdc93[15]],leaveAt:null},individualHooks:true}])[_0xdc93[39]](function(_0x5ad6x1d){if(_0x5ad6x1d){_0x5ad6x8[_0xdc93[44]](_0xdc93[59])[_0xdc93[41]](_0xdc93[58],_0x5ad6x1d);_0x5ad6x8[_0xdc93[44]](_0xdc93[60])[_0xdc93[41]](_0xdc93[58],_0x5ad6x1d)};logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[61]);clearTimeout(_0x5ad6xc);_0x5ad6xa()})[_0xdc93[38]](function(_0x5ad6x16){logger[_0xdc93[37]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[36]);_0x5ad6xa(_0x5ad6x16)})}}function _0x5ad6x1e(){var _0x5ad6x14=((_0x5ad6x5[_0xdc93[26]]- _0x5ad6xf)> _0x5ad6xe[_0xdc93[26]])?_0x5ad6xe[_0xdc93[26]]:(_0x5ad6x5[_0xdc93[26]]- _0x5ad6xf);if(_0x5ad6x14> 0){return _0x5ad6x9[_0xdc93[54]](_0xdc93[70],[_0xdc93[71],{where:{id:_0x5ad6x5[_0xdc93[72]]},attributes:[_0xdc93[20],_0xdc93[11],_0xdc93[26],_0xdc93[13],_0xdc93[73]],include:[{model:_0xdc93[57],where:{online:true,mailPause:false},attributes:[_0xdc93[20],_0xdc93[11],_0xdc93[30],_0xdc93[31],_0xdc93[32]],raw:true}]}])[_0xdc93[39]](function(_0x5ad6x20){if(_0x5ad6x20){var _0x5ad6x18=_[_0xdc93[66]](_[_0xdc93[65]](_0x5ad6x20.Users,_0xdc93[64]));if(_0x5ad6x18&& _0x5ad6x18[_0xdc93[27]]){var _0x5ad6x21;for(var _0x5ad6x1a=0;_0x5ad6x1a< _0x5ad6x18[_0xdc93[27]];_0x5ad6x1a++){_[_0xdc93[67]](_0x5ad6x18[_0x5ad6x1a],function(_0x5ad6x11){return _0x5ad6x10(_0x5ad6x11)});if(_0x5ad6x18[_0x5ad6x1a][_0xdc93[27]]){_0x5ad6x21= _0x5ad6x18[_0x5ad6x1a];break}};if(_0x5ad6x21&& _0x5ad6x21[_0xdc93[27]]){var _0x5ad6x22=_[_0xdc93[28]](_0x5ad6x21,function(_0x5ad6x11){return _[_0xdc93[68]](_[_0xdc93[53]](_0x5ad6x6,{timeslot:_0x5ad6x14,application:_0xdc93[51],membername:_0x5ad6x11[_0xdc93[11]],memberid:_0x5ad6x11[_0xdc93[20]],queue:_0x5ad6xe[_0xdc93[20]],queuename:_0x5ad6xe[_0xdc93[11]],calledAt:moment()[_0xdc93[35]](_0xdc93[52])}))});return _0x5ad6x9[_0xdc93[54]](_0xdc93[69],[_0xdc93[50],_0x5ad6x22,{individualHooks:true}])}else {logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[55])}}else {logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[55])}}else {logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[55])}})[_0xdc93[39]](function(_0x5ad6x1f){if(_0x5ad6x1f&& _0x5ad6x1f[_0xdc93[27]]){for(var _0x5ad6x1a=0;_0x5ad6x1a< _0x5ad6x1f[_0xdc93[27]];_0x5ad6x1a++){var _0x5ad6x17=_0x5ad6x1f[_0x5ad6x1a];_0x5ad6x8[_0xdc93[44]](util[_0xdc93[35]](_0xdc93[42],_0x5ad6x17[_0xdc93[43]]))[_0xdc93[41]](_0xdc93[40],_0x5ad6x17)}};_0x5ad6xc= setTimeout(function(){_0x5ad6xf+= _0x5ad6xe[_0xdc93[26]];_0x5ad6x1e()},_0x5ad6x14* 1000)})[_0xdc93[38]](function(_0x5ad6x16){logger[_0xdc93[37]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[36]);_0x5ad6xa(_0x5ad6x16)})}else {return _0x5ad6x9[_0xdc93[54]](_0xdc93[62],[_0xdc93[63],{leaveAt:moment()[_0xdc93[35]](_0xdc93[52]),timeout:true},{where:{uniqueid:_0x5ad6x6[_0xdc93[15]],leaveAt:null},individualHooks:true}])[_0xdc93[39]](function(_0x5ad6x1d){if(_0x5ad6x1d){_0x5ad6x8[_0xdc93[44]](_0xdc93[59])[_0xdc93[41]](_0xdc93[58],_0x5ad6x1d);_0x5ad6x8[_0xdc93[44]](_0xdc93[60])[_0xdc93[41]](_0xdc93[58],_0x5ad6x1d)};logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[61]);clearTimeout(_0x5ad6xc);_0x5ad6xa()})[_0xdc93[38]](function(_0x5ad6x16){logger[_0xdc93[37]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[36]);_0x5ad6xa(_0x5ad6x16)})}}return _0x5ad6x9[_0xdc93[54]](_0xdc93[70],[_0xdc93[71],{where:{id:_0x5ad6x5[_0xdc93[72]]},attributes:[_0xdc93[20],_0xdc93[11],_0xdc93[26],_0xdc93[13],_0xdc93[73]],include:[{model:_0xdc93[57],attributes:[_0xdc93[20]]}]}])[_0xdc93[39]](function(_0x5ad6x20){_0x5ad6xe= _0x5ad6x20;logger[_0xdc93[19]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[83],_0x5ad6x5[_0xdc93[26]],_0xdc93[84]);return _0x5ad6x9[_0xdc93[54]](_0xdc93[49],[_0xdc93[63],_[_0xdc93[53]](_0x5ad6x6,{timeslot:_0x5ad6x5[_0xdc93[26]],application:_0xdc93[51],queue:_0x5ad6x20[_0xdc93[20]],queuename:_0x5ad6x20[_0xdc93[11]],calledAt:moment()[_0xdc93[35]](_0xdc93[52]),joinAt:moment()[_0xdc93[35]](_0xdc93[52]),membername:null,memberid:null})])})[_0xdc93[39]](function(_0x5ad6x1d){_0x5ad6x8[_0xdc93[44]](_0xdc93[59])[_0xdc93[41]](_0xdc93[58],_0x5ad6x1d);_0x5ad6x8[_0xdc93[44]](_0xdc93[60])[_0xdc93[41]](_0xdc93[58],_0x5ad6x1d);return _0x5ad6x9[_0xdc93[54]](_0xdc93[62],[_0xdc93[29],{waiting:true},{id:_0x5ad6x6[_0xdc93[82]]}])})[_0xdc93[39]](function(_0x5ad6x23){if(_0x5ad6x23){_0x5ad6x8[_0xdc93[41]](_0xdc93[81],_0x5ad6x23)}})[_0xdc93[39]](function(_0x5ad6x23){switch(_0x5ad6xe[_0xdc93[13]]){case _0xdc93[74]:_0x5ad6x1e();break;case _0xdc93[78]:_0x5ad6xd= _[_0xdc93[77]](_0x5ad6xe.Users,[function(_0x5ad6x24){return _0x5ad6x24[_0xdc93[76]][_0xdc93[75]]|| 0}]);_0x5ad6x13();break;case _0xdc93[79]:_0x5ad6xd= _[_0xdc93[77]](_0x5ad6xe.Users,[function(_0x5ad6x24){return _0x5ad6x24[_0xdc93[76]][_0xdc93[75]]|| 0}]);_0x5ad6x13();break;default:};return Promise[_0xdc93[80]]()})[_0xdc93[38]](function(_0x5ad6x16){logger[_0xdc93[37]](_0x5ad6x6[_0xdc93[9]][_0xdc93[8]](),_0xdc93[10],_0x5ad6xe[_0xdc93[11]][_0xdc93[8]](),_0xdc93[12],_0x5ad6xe[_0xdc93[13]],_0xdc93[14],_0x5ad6x6[_0xdc93[15]],_0xdc93[36]);logger[_0xdc93[37]](_0x5ad6x16);_0x5ad6xa(_0x5ad6x16)})}
\ No newline at end of file