Built motion from commit ec3309576.|1.0.33
[motion.git] / server / config / forked_routing / mail / queue.js
index 054e6ce..0e46d39 100644 (file)
@@ -1 +1 @@
-var _0x390c=["\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"];_0x390c[0];var _=require(_0x390c[1]);var util=require(_0x390c[2]);var moment=require(_0x390c[3]);var logger=require(_0x390c[5])(_0x390c[4]);module[_0x390c[6]]= function(_0xc24ex5,_0xc24ex6,_0xc24ex7,_0xc24ex8,_0xc24ex9,_0xc24exa){var _0xc24exb=[];var _0xc24exc;var _0xc24exd;var _0xc24exe;var _0xc24exf=0;process[_0x390c[24]](_0x390c[7],function(_0xc24ex7){switch(_0xc24ex7[_0x390c[23]]){case _0x390c[22]:logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[16],_0xc24ex7[_0x390c[17]],_0x390c[18]);_0xc24exb[_0x390c[21]]({id:_0xc24ex7[_0x390c[20]]});break;default:}});function _0xc24ex10(_0xc24ex11){var _0xc24ex12=_[_0x390c[25]](_0xc24exb,{id:_0xc24ex11[_0x390c[20]]});return _0xc24ex12?true:false}function _0xc24ex13(){var _0xc24ex14=((_0xc24ex5[_0x390c[26]]- _0xc24exf)> _0xc24exe[_0x390c[26]])?_0xc24exe[_0x390c[26]]:(_0xc24ex5[_0x390c[26]]- _0xc24exf);if(_0xc24ex14> 0){if(_0xc24exd[_0x390c[27]]){var _0xc24ex15={where:{id:{$in:_[_0x390c[28]](_0xc24exd,_0x390c[20])},online:true,mailPause:false},include:[{model:_0x390c[29],attributes:[_0x390c[20]],raw:true}],attributes:[_0x390c[20],_0x390c[11],_0x390c[30],_0x390c[31],_0x390c[32]],order:[[{raw:util[_0x390c[35]](_0x390c[33],_[_0x390c[28]](_0xc24exd,_0x390c[20])[_0x390c[34]]())}]]};return _0xc24ex9[_0x390c[54]](_0x390c[56],[_0x390c[57],_0xc24ex15])[_0x390c[39]](function(_0xc24ex18){if(_0xc24ex18[_0x390c[27]]){var _0xc24ex19;for(var _0xc24ex1a=0;_0xc24ex1a< _0xc24ex18[_0x390c[27]];_0xc24ex1a++){var _0xc24ex11=_0xc24ex18[_0xc24ex1a];if(!_0xc24ex10(_0xc24ex11)){_0xc24ex19= _0xc24ex11;break}};if(_0xc24ex19){logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[45],_0xc24ex19[_0x390c[20]],_0xc24ex19[_0x390c[11]]);var _0xc24ex1b=_[_0x390c[46]](_0xc24exd,{"\x69\x64":_0xc24ex19[_0x390c[20]]});if(_0xc24ex1b>= 0){var _0xc24ex1c=_0xc24exd[_0x390c[47]](_0xc24ex1b,1);if(_0xc24ex1c&& _0xc24ex1c[_0x390c[27]]){_0xc24exd[_0x390c[21]](_[_0x390c[48]](_0xc24ex1c))}};return _0xc24ex9[_0x390c[54]](_0x390c[49],[_0x390c[50],_[_0x390c[53]](_0xc24ex6,{timeslot:_0xc24ex14,application:_0x390c[51],membername:_0xc24ex19[_0x390c[11]],memberid:_0xc24ex19[_0x390c[20]],queue:_0xc24exe[_0x390c[20]],queuename:_0xc24exe[_0x390c[11]],calledAt:moment()[_0x390c[35]](_0x390c[52])})])};logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[55]);return}else {logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[55]);return}})[_0x390c[39]](function(_0xc24ex17){if(_0xc24ex17){_0xc24ex8[_0x390c[44]](util[_0x390c[35]](_0x390c[42],_0xc24ex17[_0x390c[43]]))[_0x390c[41]](_0x390c[40],_0xc24ex17)}})[_0x390c[39]](function(){_0xc24exc= setTimeout(function(){_0xc24exf+= _0xc24exe[_0x390c[26]];_0xc24ex13()},_0xc24ex14* 1000)})[_0x390c[38]](function(_0xc24ex16){logger[_0x390c[37]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[36]);_0xc24exa(_0xc24ex16)})}else {logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[55]);_0xc24exc= setTimeout(function(){_0xc24exf+= _0xc24exe[_0x390c[26]];_0xc24ex13()},_0xc24ex14* 1000)}}else {return _0xc24ex9[_0x390c[54]](_0x390c[62],[_0x390c[63],{leaveAt:moment()[_0x390c[35]](_0x390c[52]),timeout:true},{where:{uniqueid:_0xc24ex6[_0x390c[15]],leaveAt:null},individualHooks:true}])[_0x390c[39]](function(_0xc24ex1d){if(_0xc24ex1d){_0xc24ex8[_0x390c[44]](_0x390c[59])[_0x390c[41]](_0x390c[58],_0xc24ex1d);_0xc24ex8[_0x390c[44]](_0x390c[60])[_0x390c[41]](_0x390c[58],_0xc24ex1d)};logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[61]);clearTimeout(_0xc24exc);_0xc24exa()})[_0x390c[38]](function(_0xc24ex16){logger[_0x390c[37]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[36]);_0xc24exa(_0xc24ex16)})}}function _0xc24ex1e(){var _0xc24ex14=((_0xc24ex5[_0x390c[26]]- _0xc24exf)> _0xc24exe[_0x390c[26]])?_0xc24exe[_0x390c[26]]:(_0xc24ex5[_0x390c[26]]- _0xc24exf);if(_0xc24ex14> 0){return _0xc24ex9[_0x390c[54]](_0x390c[70],[_0x390c[71],{where:{id:_0xc24ex5[_0x390c[72]]},attributes:[_0x390c[20],_0x390c[11],_0x390c[26],_0x390c[13],_0x390c[73]],include:[{model:_0x390c[57],where:{online:true,mailPause:false},attributes:[_0x390c[20],_0x390c[11],_0x390c[30],_0x390c[31],_0x390c[32]],raw:true}]}])[_0x390c[39]](function(_0xc24ex20){if(_0xc24ex20){var _0xc24ex18=_[_0x390c[66]](_[_0x390c[65]](_0xc24ex20.Users,_0x390c[64]));if(_0xc24ex18&& _0xc24ex18[_0x390c[27]]){var _0xc24ex21;for(var _0xc24ex1a=0;_0xc24ex1a< _0xc24ex18[_0x390c[27]];_0xc24ex1a++){_[_0x390c[67]](_0xc24ex18[_0xc24ex1a],function(_0xc24ex11){return _0xc24ex10(_0xc24ex11)});if(_0xc24ex18[_0xc24ex1a][_0x390c[27]]){_0xc24ex21= _0xc24ex18[_0xc24ex1a];break}};if(_0xc24ex21&& _0xc24ex21[_0x390c[27]]){var _0xc24ex22=_[_0x390c[28]](_0xc24ex21,function(_0xc24ex11){return _[_0x390c[68]](_[_0x390c[53]](_0xc24ex6,{timeslot:_0xc24ex14,application:_0x390c[51],membername:_0xc24ex11[_0x390c[11]],memberid:_0xc24ex11[_0x390c[20]],queue:_0xc24exe[_0x390c[20]],queuename:_0xc24exe[_0x390c[11]],calledAt:moment()[_0x390c[35]](_0x390c[52])}))});return _0xc24ex9[_0x390c[54]](_0x390c[69],[_0x390c[50],_0xc24ex22,{individualHooks:true}])}else {logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[55])}}else {logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[55])}}else {logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[55])}})[_0x390c[39]](function(_0xc24ex1f){if(_0xc24ex1f&& _0xc24ex1f[_0x390c[27]]){for(var _0xc24ex1a=0;_0xc24ex1a< _0xc24ex1f[_0x390c[27]];_0xc24ex1a++){var _0xc24ex17=_0xc24ex1f[_0xc24ex1a];_0xc24ex8[_0x390c[44]](util[_0x390c[35]](_0x390c[42],_0xc24ex17[_0x390c[43]]))[_0x390c[41]](_0x390c[40],_0xc24ex17)}};_0xc24exc= setTimeout(function(){_0xc24exf+= _0xc24exe[_0x390c[26]];_0xc24ex1e()},_0xc24ex14* 1000)})[_0x390c[38]](function(_0xc24ex16){logger[_0x390c[37]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[36]);_0xc24exa(_0xc24ex16)})}else {return _0xc24ex9[_0x390c[54]](_0x390c[62],[_0x390c[63],{leaveAt:moment()[_0x390c[35]](_0x390c[52]),timeout:true},{where:{uniqueid:_0xc24ex6[_0x390c[15]],leaveAt:null},individualHooks:true}])[_0x390c[39]](function(_0xc24ex1d){if(_0xc24ex1d){_0xc24ex8[_0x390c[44]](_0x390c[59])[_0x390c[41]](_0x390c[58],_0xc24ex1d);_0xc24ex8[_0x390c[44]](_0x390c[60])[_0x390c[41]](_0x390c[58],_0xc24ex1d)};logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[61]);clearTimeout(_0xc24exc);_0xc24exa()})[_0x390c[38]](function(_0xc24ex16){logger[_0x390c[37]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[36]);_0xc24exa(_0xc24ex16)})}}return _0xc24ex9[_0x390c[54]](_0x390c[70],[_0x390c[71],{where:{id:_0xc24ex5[_0x390c[72]]},attributes:[_0x390c[20],_0x390c[11],_0x390c[26],_0x390c[13],_0x390c[73]],include:[{model:_0x390c[57],attributes:[_0x390c[20]]}]}])[_0x390c[39]](function(_0xc24ex20){_0xc24exe= _0xc24ex20;logger[_0x390c[19]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[83],_0xc24ex5[_0x390c[26]],_0x390c[84]);return _0xc24ex9[_0x390c[54]](_0x390c[49],[_0x390c[63],_[_0x390c[53]](_0xc24ex6,{timeslot:_0xc24ex5[_0x390c[26]],application:_0x390c[51],queue:_0xc24ex20[_0x390c[20]],queuename:_0xc24ex20[_0x390c[11]],calledAt:moment()[_0x390c[35]](_0x390c[52]),joinAt:moment()[_0x390c[35]](_0x390c[52]),membername:null,memberid:null})])})[_0x390c[39]](function(_0xc24ex1d){_0xc24ex8[_0x390c[44]](_0x390c[59])[_0x390c[41]](_0x390c[58],_0xc24ex1d);_0xc24ex8[_0x390c[44]](_0x390c[60])[_0x390c[41]](_0x390c[58],_0xc24ex1d);return _0xc24ex9[_0x390c[54]](_0x390c[62],[_0x390c[29],{waiting:true},{id:_0xc24ex6[_0x390c[82]]}])})[_0x390c[39]](function(_0xc24ex23){if(_0xc24ex23){_0xc24ex8[_0x390c[41]](_0x390c[81],_0xc24ex23)}})[_0x390c[39]](function(_0xc24ex23){switch(_0xc24exe[_0x390c[13]]){case _0x390c[74]:_0xc24ex1e();break;case _0x390c[78]:_0xc24exd= _[_0x390c[77]](_0xc24exe.Users,[function(_0xc24ex24){return _0xc24ex24[_0x390c[76]][_0x390c[75]]|| 0}]);_0xc24ex13();break;case _0x390c[79]:_0xc24exd= _[_0x390c[77]](_0xc24exe.Users,[function(_0xc24ex24){return _0xc24ex24[_0x390c[76]][_0x390c[75]]|| 0}]);_0xc24ex13();break;default:};return Promise[_0x390c[80]]()})[_0x390c[38]](function(_0xc24ex16){logger[_0x390c[37]](_0xc24ex6[_0x390c[9]][_0x390c[8]](),_0x390c[10],_0xc24exe[_0x390c[11]][_0x390c[8]](),_0x390c[12],_0xc24exe[_0x390c[13]],_0x390c[14],_0xc24ex6[_0x390c[15]],_0x390c[36]);logger[_0x390c[37]](_0xc24ex16);_0xc24exa(_0xc24ex16)})}
\ No newline at end of file
+var _0xfc69=["\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"];_0xfc69[0];var _=require(_0xfc69[1]);var util=require(_0xfc69[2]);var moment=require(_0xfc69[3]);var logger=require(_0xfc69[5])(_0xfc69[4]);module[_0xfc69[6]]= function(_0xa628x5,_0xa628x6,_0xa628x7,_0xa628x8,_0xa628x9,_0xa628xa){var _0xa628xb=[];var _0xa628xc;var _0xa628xd;var _0xa628xe;var _0xa628xf=0;process[_0xfc69[24]](_0xfc69[7],function(_0xa628x7){switch(_0xa628x7[_0xfc69[23]]){case _0xfc69[22]:logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[16],_0xa628x7[_0xfc69[17]],_0xfc69[18]);_0xa628xb[_0xfc69[21]]({id:_0xa628x7[_0xfc69[20]]});break;default:}});function _0xa628x10(_0xa628x11){var _0xa628x12=_[_0xfc69[25]](_0xa628xb,{id:_0xa628x11[_0xfc69[20]]});return _0xa628x12?true:false}function _0xa628x13(){var _0xa628x14=((_0xa628x5[_0xfc69[26]]- _0xa628xf)> _0xa628xe[_0xfc69[26]])?_0xa628xe[_0xfc69[26]]:(_0xa628x5[_0xfc69[26]]- _0xa628xf);if(_0xa628x14> 0){if(_0xa628xd[_0xfc69[27]]){var _0xa628x15={where:{id:{$in:_[_0xfc69[28]](_0xa628xd,_0xfc69[20])},online:true,mailPause:false},include:[{model:_0xfc69[29],attributes:[_0xfc69[20]],raw:true}],attributes:[_0xfc69[20],_0xfc69[11],_0xfc69[30],_0xfc69[31],_0xfc69[32]],order:[[{raw:util[_0xfc69[35]](_0xfc69[33],_[_0xfc69[28]](_0xa628xd,_0xfc69[20])[_0xfc69[34]]())}]]};return _0xa628x9[_0xfc69[54]](_0xfc69[56],[_0xfc69[57],_0xa628x15])[_0xfc69[39]](function(_0xa628x18){if(_0xa628x18[_0xfc69[27]]){var _0xa628x19;for(var _0xa628x1a=0;_0xa628x1a< _0xa628x18[_0xfc69[27]];_0xa628x1a++){var _0xa628x11=_0xa628x18[_0xa628x1a];if(!_0xa628x10(_0xa628x11)){_0xa628x19= _0xa628x11;break}};if(_0xa628x19){logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[45],_0xa628x19[_0xfc69[20]],_0xa628x19[_0xfc69[11]]);var _0xa628x1b=_[_0xfc69[46]](_0xa628xd,{"\x69\x64":_0xa628x19[_0xfc69[20]]});if(_0xa628x1b>= 0){var _0xa628x1c=_0xa628xd[_0xfc69[47]](_0xa628x1b,1);if(_0xa628x1c&& _0xa628x1c[_0xfc69[27]]){_0xa628xd[_0xfc69[21]](_[_0xfc69[48]](_0xa628x1c))}};return _0xa628x9[_0xfc69[54]](_0xfc69[49],[_0xfc69[50],_[_0xfc69[53]](_0xa628x6,{timeslot:_0xa628x14,application:_0xfc69[51],membername:_0xa628x19[_0xfc69[11]],memberid:_0xa628x19[_0xfc69[20]],queue:_0xa628xe[_0xfc69[20]],queuename:_0xa628xe[_0xfc69[11]],calledAt:moment()[_0xfc69[35]](_0xfc69[52])})])};logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[55]);return}else {logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[55]);return}})[_0xfc69[39]](function(_0xa628x17){if(_0xa628x17){_0xa628x8[_0xfc69[44]](util[_0xfc69[35]](_0xfc69[42],_0xa628x17[_0xfc69[43]]))[_0xfc69[41]](_0xfc69[40],_0xa628x17)}})[_0xfc69[39]](function(){_0xa628xc= setTimeout(function(){_0xa628xf+= _0xa628xe[_0xfc69[26]];_0xa628x13()},_0xa628x14* 1000)})[_0xfc69[38]](function(_0xa628x16){logger[_0xfc69[37]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[36]);_0xa628xa(_0xa628x16)})}else {logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[55]);_0xa628xc= setTimeout(function(){_0xa628xf+= _0xa628xe[_0xfc69[26]];_0xa628x13()},_0xa628x14* 1000)}}else {return _0xa628x9[_0xfc69[54]](_0xfc69[62],[_0xfc69[63],{leaveAt:moment()[_0xfc69[35]](_0xfc69[52]),timeout:true},{where:{uniqueid:_0xa628x6[_0xfc69[15]],leaveAt:null},individualHooks:true}])[_0xfc69[39]](function(_0xa628x1d){if(_0xa628x1d){_0xa628x8[_0xfc69[44]](_0xfc69[59])[_0xfc69[41]](_0xfc69[58],_0xa628x1d);_0xa628x8[_0xfc69[44]](_0xfc69[60])[_0xfc69[41]](_0xfc69[58],_0xa628x1d)};logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[61]);clearTimeout(_0xa628xc);_0xa628xa()})[_0xfc69[38]](function(_0xa628x16){logger[_0xfc69[37]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[36]);_0xa628xa(_0xa628x16)})}}function _0xa628x1e(){var _0xa628x14=((_0xa628x5[_0xfc69[26]]- _0xa628xf)> _0xa628xe[_0xfc69[26]])?_0xa628xe[_0xfc69[26]]:(_0xa628x5[_0xfc69[26]]- _0xa628xf);if(_0xa628x14> 0){return _0xa628x9[_0xfc69[54]](_0xfc69[70],[_0xfc69[71],{where:{id:_0xa628x5[_0xfc69[72]]},attributes:[_0xfc69[20],_0xfc69[11],_0xfc69[26],_0xfc69[13],_0xfc69[73]],include:[{model:_0xfc69[57],where:{online:true,mailPause:false},attributes:[_0xfc69[20],_0xfc69[11],_0xfc69[30],_0xfc69[31],_0xfc69[32]],raw:true}]}])[_0xfc69[39]](function(_0xa628x20){if(_0xa628x20){var _0xa628x18=_[_0xfc69[66]](_[_0xfc69[65]](_0xa628x20.Users,_0xfc69[64]));if(_0xa628x18&& _0xa628x18[_0xfc69[27]]){var _0xa628x21;for(var _0xa628x1a=0;_0xa628x1a< _0xa628x18[_0xfc69[27]];_0xa628x1a++){_[_0xfc69[67]](_0xa628x18[_0xa628x1a],function(_0xa628x11){return _0xa628x10(_0xa628x11)});if(_0xa628x18[_0xa628x1a][_0xfc69[27]]){_0xa628x21= _0xa628x18[_0xa628x1a];break}};if(_0xa628x21&& _0xa628x21[_0xfc69[27]]){var _0xa628x22=_[_0xfc69[28]](_0xa628x21,function(_0xa628x11){return _[_0xfc69[68]](_[_0xfc69[53]](_0xa628x6,{timeslot:_0xa628x14,application:_0xfc69[51],membername:_0xa628x11[_0xfc69[11]],memberid:_0xa628x11[_0xfc69[20]],queue:_0xa628xe[_0xfc69[20]],queuename:_0xa628xe[_0xfc69[11]],calledAt:moment()[_0xfc69[35]](_0xfc69[52])}))});return _0xa628x9[_0xfc69[54]](_0xfc69[69],[_0xfc69[50],_0xa628x22,{individualHooks:true}])}else {logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[55])}}else {logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[55])}}else {logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[55])}})[_0xfc69[39]](function(_0xa628x1f){if(_0xa628x1f&& _0xa628x1f[_0xfc69[27]]){for(var _0xa628x1a=0;_0xa628x1a< _0xa628x1f[_0xfc69[27]];_0xa628x1a++){var _0xa628x17=_0xa628x1f[_0xa628x1a];_0xa628x8[_0xfc69[44]](util[_0xfc69[35]](_0xfc69[42],_0xa628x17[_0xfc69[43]]))[_0xfc69[41]](_0xfc69[40],_0xa628x17)}};_0xa628xc= setTimeout(function(){_0xa628xf+= _0xa628xe[_0xfc69[26]];_0xa628x1e()},_0xa628x14* 1000)})[_0xfc69[38]](function(_0xa628x16){logger[_0xfc69[37]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[36]);_0xa628xa(_0xa628x16)})}else {return _0xa628x9[_0xfc69[54]](_0xfc69[62],[_0xfc69[63],{leaveAt:moment()[_0xfc69[35]](_0xfc69[52]),timeout:true},{where:{uniqueid:_0xa628x6[_0xfc69[15]],leaveAt:null},individualHooks:true}])[_0xfc69[39]](function(_0xa628x1d){if(_0xa628x1d){_0xa628x8[_0xfc69[44]](_0xfc69[59])[_0xfc69[41]](_0xfc69[58],_0xa628x1d);_0xa628x8[_0xfc69[44]](_0xfc69[60])[_0xfc69[41]](_0xfc69[58],_0xa628x1d)};logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[61]);clearTimeout(_0xa628xc);_0xa628xa()})[_0xfc69[38]](function(_0xa628x16){logger[_0xfc69[37]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[36]);_0xa628xa(_0xa628x16)})}}return _0xa628x9[_0xfc69[54]](_0xfc69[70],[_0xfc69[71],{where:{id:_0xa628x5[_0xfc69[72]]},attributes:[_0xfc69[20],_0xfc69[11],_0xfc69[26],_0xfc69[13],_0xfc69[73]],include:[{model:_0xfc69[57],attributes:[_0xfc69[20]]}]}])[_0xfc69[39]](function(_0xa628x20){_0xa628xe= _0xa628x20;logger[_0xfc69[19]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[83],_0xa628x5[_0xfc69[26]],_0xfc69[84]);return _0xa628x9[_0xfc69[54]](_0xfc69[49],[_0xfc69[63],_[_0xfc69[53]](_0xa628x6,{timeslot:_0xa628x5[_0xfc69[26]],application:_0xfc69[51],queue:_0xa628x20[_0xfc69[20]],queuename:_0xa628x20[_0xfc69[11]],calledAt:moment()[_0xfc69[35]](_0xfc69[52]),joinAt:moment()[_0xfc69[35]](_0xfc69[52]),membername:null,memberid:null})])})[_0xfc69[39]](function(_0xa628x1d){_0xa628x8[_0xfc69[44]](_0xfc69[59])[_0xfc69[41]](_0xfc69[58],_0xa628x1d);_0xa628x8[_0xfc69[44]](_0xfc69[60])[_0xfc69[41]](_0xfc69[58],_0xa628x1d);return _0xa628x9[_0xfc69[54]](_0xfc69[62],[_0xfc69[29],{waiting:true},{id:_0xa628x6[_0xfc69[82]]}])})[_0xfc69[39]](function(_0xa628x23){if(_0xa628x23){_0xa628x8[_0xfc69[41]](_0xfc69[81],_0xa628x23)}})[_0xfc69[39]](function(_0xa628x23){switch(_0xa628xe[_0xfc69[13]]){case _0xfc69[74]:_0xa628x1e();break;case _0xfc69[78]:_0xa628xd= _[_0xfc69[77]](_0xa628xe.Users,[function(_0xa628x24){return _0xa628x24[_0xfc69[76]][_0xfc69[75]]|| 0}]);_0xa628x13();break;case _0xfc69[79]:_0xa628xd= _[_0xfc69[77]](_0xa628xe.Users,[function(_0xa628x24){return _0xa628x24[_0xfc69[76]][_0xfc69[75]]|| 0}]);_0xa628x13();break;default:};return Promise[_0xfc69[80]]()})[_0xfc69[38]](function(_0xa628x16){logger[_0xfc69[37]](_0xa628x6[_0xfc69[9]][_0xfc69[8]](),_0xfc69[10],_0xa628xe[_0xfc69[11]][_0xfc69[8]](),_0xfc69[12],_0xa628xe[_0xfc69[13]],_0xfc69[14],_0xa628x6[_0xfc69[15]],_0xfc69[36]);logger[_0xfc69[37]](_0xa628x16);_0xa628xa(_0xa628x16)})}
\ No newline at end of file