Built motion from commit 02c0abe.|0.0.118
[motion.git] / server / config / util / index.js
index dedae4e..984ea82 100644 (file)
@@ -1 +1 @@
-var _0xf43f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x46\x61\x78\x51\x75\x65\x75\x65","\x53\x6D\x73\x51\x75\x65\x75\x65","\x41\x63\x74\x69\x6F\x6E","\x73\x75\x6E","\x6D\x6F\x6E","\x74\x75\x65","\x77\x65\x64","\x74\x68\x75","\x66\x72\x69","\x73\x61\x74","\x6A\x61\x6E","\x66\x65\x62","\x6D\x61\x72","\x61\x70\x72","\x6D\x61\x79","\x6A\x75\x6E","\x6A\x75\x6C","\x61\x75\x67","\x73\x65\x70","\x6F\x63\x74","\x6E\x6F\x76","\x64\x65\x63","\x2C","\x73\x70\x6C\x69\x74","\x2A","\x48\x48\x3A\x6D\x6D","\x66\x6F\x72\x6D\x61\x74","\x2D","\x54\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x6C\x6F\x67","\x64\x61\x79","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x68\x69\x66\x74","\x70\x75\x73\x68","\x73\x6C\x69\x63\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x44\x57\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x74\x65","\x44\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x6D\x6F\x6E\x74\x68","\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x49\x4E\x54\x45\x52\x56\x41\x4C\x20\x4F\x4B","\x69\x73\x4F\x62\x6A\x65\x63\x74","\x6C\x65\x6E\x67\x74\x68","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D","\x69\x73\x56\x61\x6C\x69\x64","\x73\x74\x61\x72\x74\x4F\x66","\x64\x61\x79\x53\x74\x61\x72\x74","\x65\x6E\x64\x4F\x66","\x64\x61\x79\x45\x6E\x64","\x5F\x75\x69\x46\x72\x6F\x6D","","\x72\x65\x70\x6C\x61\x63\x65","\x5F\x75\x69\x54\x6F","\x24\x61\x6E\x64","\x77\x68\x65\x72\x65","\x6F\x66\x66\x73\x65\x74","\x6C\x69\x6D\x69\x74","\x6F\x72\x64\x65\x72","\x74\x79\x70\x65","\x70\x61\x72\x65\x6E\x74","\x25","\x66\x6F\x72\x45\x61\x63\x68","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x74\x68\x65\x6E","\x6E\x61\x6D\x65","\x6D\x61\x70","\x67\x65\x74\x50\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x64\x65\x66\x61\x75\x6C\x74","\x73\x63\x6F\x70\x65","\x69\x64","\x67\x65\x74\x50\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x50\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x50\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x50\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x63\x68\x65\x63\x6B\x50\x61\x75\x73\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x51\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x4F\x6E\x6C\x69\x6E\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x53\x69\x70\x53\x74\x61\x74\x75\x73","\x75\x6E\x69\x6F\x6E","\x73\x75\x62\x73\x74\x72","\x2F","\x47\x45\x54","\x50\x4F\x53\x54","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x4D\x65\x74\x68\x6F\x64","\x41\x63\x74\x69\x6F\x6E\x20\x46\x61\x69\x6C\x65\x64","\x63\x61\x74\x63\x68","\x41\x63\x74\x69\x6F\x6E\x20\x53\x75\x63\x63\x65\x73\x73\x66\x75\x6C","\x61\x63\x74\x69\x6F\x6E","\x44\x45\x46\x41\x55\x4C\x54\x20\x50\x41\x55\x53\x45","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x63\x72\x65\x61\x74\x65","\x70\x61\x75\x73\x65","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x63\x74\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x2E\x2F\x65\x72\x72\x6F\x72"];_0xf43f[0];var _=require(_0xf43f[1]);var moment=require(_0xf43f[2]);var request=require(_0xf43f[3]);var User=require(_0xf43f[5])[_0xf43f[4]];var VoiceQueue=require(_0xf43f[5])[_0xf43f[6]];var ChatQueue=require(_0xf43f[5])[_0xf43f[7]];var MailQueue=require(_0xf43f[5])[_0xf43f[8]];var FaxQueue=require(_0xf43f[5])[_0xf43f[9]];var SmsQueue=require(_0xf43f[5])[_0xf43f[10]];var Action=require(_0xf43f[5])[_0xf43f[11]];var checkInterval=function(_0x6710xc){var _0x6710xd=[_0xf43f[12],_0xf43f[13],_0xf43f[14],_0xf43f[15],_0xf43f[16],_0xf43f[17],_0xf43f[18]];var _0x6710xe=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];var _0x6710xf=[_0xf43f[19],_0xf43f[20],_0xf43f[21],_0xf43f[22],_0xf43f[23],_0xf43f[24],_0xf43f[25],_0xf43f[26],_0xf43f[27],_0xf43f[28],_0xf43f[29],_0xf43f[30]];var _0x6710x10,_0x6710x11;var _0x6710x12=_0x6710xc[_0xf43f[32]](_0xf43f[31])[0];var _0x6710x13=_0x6710xc[_0xf43f[32]](_0xf43f[31])[1];var _0x6710x14=_0x6710xc[_0xf43f[32]](_0xf43f[31])[2];var _0x6710x15=_0x6710xc[_0xf43f[32]](_0xf43f[31])[3];if(_0x6710x12!== _0xf43f[33]){var _0x6710x16=moment()[_0xf43f[35]](_0xf43f[34]);var _0x6710x17=_0x6710x12[_0xf43f[32]](_0xf43f[36])[0];var _0x6710x18=_0x6710x12[_0xf43f[32]](_0xf43f[36])[1];if((_0x6710x16< _0x6710x17)|| (_0x6710x16> _0x6710x18)){console[_0xf43f[38]](_0xf43f[37]);return false}};if(_0x6710x13!== _0xf43f[33]){var _0x6710x19=_0x6710xd[moment()[_0xf43f[39]]()];var _0x6710x1a=_[_0xf43f[40]](_0x6710xd,_0x6710x13[_0xf43f[32]](_0xf43f[36])[0]);var _0x6710x1b=_[_0xf43f[40]](_0x6710xd,_0x6710x13[_0xf43f[32]](_0xf43f[36])[1]);for(_0x6710x10= 0;_0x6710x10< _0x6710x1a;_0x6710x10++){_0x6710x11= _0x6710xd[_0xf43f[41]]();_0x6710xd[_0xf43f[42]](_0x6710x11)};_0x6710x1a= _[_0xf43f[40]](_0x6710xd,_0x6710x13[_0xf43f[32]](_0xf43f[36])[0]);_0x6710x1b= _[_0xf43f[40]](_0x6710xd,_0x6710x13[_0xf43f[32]](_0xf43f[36])[1])+ 1;_0x6710xd= _0x6710xd[_0xf43f[43]](_0x6710x1a,_0x6710x1b);if(!_[_0xf43f[44]](_0x6710xd,_0x6710x19)){console[_0xf43f[38]](_0xf43f[45]);return false}};if(_0x6710x14!== _0xf43f[33]){var _0x6710x1c=moment()[_0xf43f[46]]();var _0x6710x1d=_[_0xf43f[40]](_0x6710xe,parseInt(_0x6710x14[_0xf43f[32]](_0xf43f[36])[0],10));var _0x6710x1e=_[_0xf43f[40]](_0x6710xe,parseInt(_0x6710x14[_0xf43f[32]](_0xf43f[36])[1]));for(_0x6710x10= 0;_0x6710x10< _0x6710x1d;_0x6710x10++){_0x6710x11= _0x6710xe[_0xf43f[41]]();_0x6710xe[_0xf43f[42]](_0x6710x11)};_0x6710x1d= _[_0xf43f[40]](_0x6710xe,parseInt(_0x6710x14[_0xf43f[32]](_0xf43f[36])[0],10));_0x6710x1e= _[_0xf43f[40]](_0x6710xe,parseInt(_0x6710x14[_0xf43f[32]](_0xf43f[36])[1]),10)+ 1;_0x6710xe= _0x6710xe[_0xf43f[43]](_0x6710x1d,_0x6710x1e);if(!_[_0xf43f[44]](_0x6710xe,_0x6710x1c)){console[_0xf43f[38]](_0xf43f[47]);return false}};if(_0x6710x15!== _0xf43f[33]){var _0x6710x1f=_0x6710xf[moment()[_0xf43f[48]]()];var _0x6710x20=_[_0xf43f[40]](_0x6710xf,_0x6710x15[_0xf43f[32]](_0xf43f[36])[0]);var _0x6710x21=_[_0xf43f[40]](_0x6710xf,_0x6710x15[_0xf43f[32]](_0xf43f[36])[1]);for(_0x6710x10= 0;_0x6710x10< _0x6710x20;_0x6710x10++){_0x6710x11= _0x6710xf[_0xf43f[41]]();_0x6710xf[_0xf43f[42]](_0x6710x11)};_0x6710x20= _[_0xf43f[40]](_0x6710xf,_0x6710x15[_0xf43f[32]](_0xf43f[36])[0]);_0x6710x21= _[_0xf43f[40]](_0x6710xf,_0x6710x15[_0xf43f[32]](_0xf43f[36])[1])+ 1;_0x6710xf= _0x6710xf[_0xf43f[43]](_0x6710x20,_0x6710x21);if(!_[_0xf43f[44]](_0x6710xf,_0x6710x1f)){console[_0xf43f[38]](_0xf43f[49]);return false}};console[_0xf43f[38]](_0xf43f[50]);return true};var isValidInterval=function(_0x6710xc){if(_[_0xf43f[51]](_0x6710xc)){for(var _0x6710x10=0;_0x6710x10< _0x6710xc[_0xf43f[53]][_0xf43f[52]];_0x6710x10++){if(!checkInterval(_0x6710xc[_0xf43f[53]][_0x6710x10][_0xf43f[54]])){return false}};return true}else {return checkInterval(_0x6710xc)}};var getDate=function(_0x6710x24,_0x6710x25){var _0x6710x26=_0xf43f[55];if(moment(_0x6710x24,_0x6710x26,true)[_0xf43f[56]]()){return moment(_0x6710x24)}else {switch(_0x6710x25){case _0xf43f[58]:return moment(_0x6710x24)[_0xf43f[57]](_0xf43f[39]);case _0xf43f[60]:return moment(_0x6710x24)[_0xf43f[59]](_0xf43f[39]);default:return moment(_0x6710x24)}}};var getQuery=function(_0x6710x28,_0x6710x29){var _0x6710x2a={where:{}};if(_0x6710x28){var _0x6710x2b,_0x6710x2c={};for(var _0x6710x2d in _0x6710x28){if(_[_0xf43f[44]](_0x6710x2d,_0xf43f[61])){_0x6710x2b= _0x6710x2d[_0xf43f[63]](_0xf43f[61],_0xf43f[62]);if(_0x6710x28[_0x6710x2b+ _0xf43f[64]]){_0x6710x2a[_0xf43f[66]][_0xf43f[65]]= _0x6710x2a[_0xf43f[66]][_0xf43f[65]]|| [];_0x6710x2c= {};_0x6710x2c[_0x6710x2b]= {$gte:getDate(_0x6710x28[_0x6710x2d],_0xf43f[58])};_0x6710x2a[_0xf43f[66]][_0xf43f[65]][_0xf43f[42]](_0x6710x2c);_0x6710x2c= {};_0x6710x2c[_0x6710x2b]= {$lte:getDate(_0x6710x28[_0x6710x2b+ _0xf43f[64]],_0xf43f[60])};_0x6710x2a[_0xf43f[66]][_0xf43f[65]][_0xf43f[42]](_0x6710x2c);delete _0x6710x28[_0x6710x2b+ _0xf43f[64]]}else {_0x6710x2a[_0xf43f[66]][_0x6710x2d[_0xf43f[63]](_0xf43f[61],_0xf43f[62])]= {$gte:getDate(_0x6710x28[_0x6710x2d],_0xf43f[58])}};delete _0x6710x28[_0x6710x2d]}else {if(_[_0xf43f[44]](_0x6710x2d,_0xf43f[64])){_0x6710x2b= _0x6710x2d[_0xf43f[63]](_0xf43f[64],_0xf43f[62]);if(_0x6710x28[_0x6710x2b+ _0xf43f[61]]){_0x6710x2a[_0xf43f[66]][_0xf43f[65]]= _0x6710x2a[_0xf43f[66]][_0xf43f[65]]|| [];_0x6710x2c= {};_0x6710x2c[_0x6710x2b]= {$lte:getDate(_0x6710x28[_0x6710x2d],_0xf43f[60])};_0x6710x2a[_0xf43f[66]][_0xf43f[65]][_0xf43f[42]](_0x6710x2c);_0x6710x2c[_0x6710x2b]= {$gte:getDate(_0x6710x28[_0x6710x2b+ _0xf43f[61]],_0xf43f[58])};_0x6710x2a[_0xf43f[66]][_0xf43f[65]][_0xf43f[42]](_0x6710x2c);delete _0x6710x28[_0x6710x2b+ _0xf43f[61]]}else {_0x6710x2a[_0xf43f[66]][_0x6710x2d[_0xf43f[63]](_0xf43f[64],_0xf43f[62])]= {$lte:getDate(_0x6710x28[_0x6710x2d],_0xf43f[60])}};delete _0x6710x28[_0x6710x2d]}}};_[_0xf43f[73]](_0x6710x28,function(_0x6710x2e,_0x6710x2d){switch(_0x6710x2d){case _0xf43f[67]:;case _0xf43f[68]:_0x6710x2a[_0x6710x2d]= Number(_0x6710x2e);break;case _0xf43f[69]:_0x6710x2a[_0x6710x2d]= _0x6710x2e;break;case _0xf43f[70]:;case _0xf43f[71]:_0x6710x2a[_0xf43f[66]][_0x6710x2d]= _0x6710x2e;break;default:_0x6710x2a[_0xf43f[66]][_0x6710x2d]= {$like:_0xf43f[72]+ _0x6710x2e+ _0xf43f[72]}}})};if(_0x6710x29){_[_0xf43f[74]](_0x6710x2a[_0xf43f[66]],_0x6710x29)};return _0x6710x2a};var getVoiceQueuesIdByUser=function(_0x6710x28,_0x6710x30){return function(_0x6710x31){var _0x6710x32=[];var _0x6710x33=_0x6710x31;var _0x6710x2a=_0x6710x28|| {};var _0x6710x34=_0x6710x30|| {};return _0x6710x33[_0xf43f[79]]({attributes:[_0xf43f[77]]})[_0xf43f[76]](function(_0x6710x35){_0x6710x32= _[_0xf43f[78]](_0x6710x35,_0xf43f[77])})[_0xf43f[76]](function(){return VoiceQueue[_0xf43f[75]](_[_0xf43f[74]](getQuery(_0x6710x28,{name:{$in:_0x6710x32}}),_0x6710x34))})}};var getChatQueuesIdByUser=function(_0x6710x28,_0x6710x30){return function(_0x6710x31){var _0x6710x32=[];var _0x6710x33=_0x6710x31;var _0x6710x2a=_0x6710x28|| {};var _0x6710x34=_0x6710x30|| {};return _0x6710x33[_0xf43f[83]]({attributes:[_0xf43f[82]]})[_0xf43f[76]](function(_0x6710x35){_0x6710x32= _[_0xf43f[78]](_0x6710x35,_0xf43f[82])})[_0xf43f[76]](function(){return ChatQueue[_0xf43f[81]](_0xf43f[80])[_0xf43f[75]](_[_0xf43f[74]](getQuery(_0x6710x2a,{id:{$in:_0x6710x32}}),_0x6710x34))})}};var getMailQueuesIdByUser=function(_0x6710x28,_0x6710x30){return function(_0x6710x31){var _0x6710x32=[];var _0x6710x33=_0x6710x31;var _0x6710x2a=_0x6710x28|| {};var _0x6710x34=_0x6710x30|| {};return _0x6710x33[_0xf43f[84]]({attributes:[_0xf43f[82]]})[_0xf43f[76]](function(_0x6710x35){_0x6710x32= _[_0xf43f[78]](_0x6710x35,_0xf43f[82])})[_0xf43f[76]](function(){return MailQueue[_0xf43f[75]](_[_0xf43f[74]](getQuery(_0x6710x2a,{id:{$in:_0x6710x32}}),_0x6710x34))})}};var getSmsQueuesIdByUser=function(_0x6710x28,_0x6710x30){return function(_0x6710x31){var _0x6710x32=[];var _0x6710x33=_0x6710x31;var _0x6710x2a=_0x6710x28|| {};var _0x6710x34=_0x6710x30|| {};return _0x6710x33[_0xf43f[85]]({attributes:[_0xf43f[82]]})[_0xf43f[76]](function(_0x6710x35){_0x6710x32= _[_0xf43f[78]](_0x6710x35,_0xf43f[82])})[_0xf43f[76]](function(){return SmsQueue[_0xf43f[75]](_[_0xf43f[74]](getQuery(_0x6710x2a,{id:{$in:_0x6710x32}}),_0x6710x34))})}};var getFaxQueuesIdByUser=function(_0x6710x28,_0x6710x30){return function(_0x6710x31){var _0x6710x32=[];var _0x6710x33=_0x6710x31;var _0x6710x2a=_0x6710x28|| {};var _0x6710x34=_0x6710x30|| {};return _0x6710x33[_0xf43f[86]]({attributes:[_0xf43f[82]]})[_0xf43f[76]](function(_0x6710x35){_0x6710x32= _[_0xf43f[78]](_0x6710x35,_0xf43f[82])})[_0xf43f[76]](function(){return FaxQueue[_0xf43f[75]](_[_0xf43f[74]](getQuery(_0x6710x2a,{id:{$in:_0x6710x32}}),_0x6710x34))})}};var getAgentsIdByUser=function(_0x6710x28){return function(_0x6710x31){var _0x6710x3b=[];var _0x6710x33=_0x6710x31;var _0x6710x2a=_0x6710x28|| {};var _0x6710x3c=[],_0x6710x3d=[],_0x6710x3e=[],_0x6710x3f=[],_0x6710x40=[];return _0x6710x33[_0xf43f[79]]({attributes:[_0xf43f[77]],include:[{raw:true,model:User,attributes:[_0xf43f[82]]}]})[_0xf43f[76]](function(_0x6710x35){_0x6710x3c= _[_0xf43f[78]](_0x6710x35,_0xf43f[77]);_0x6710x35[_0xf43f[73]](function(_0x6710x41){_0x6710x3b= _[_0xf43f[92]](_0x6710x3b,_[_0xf43f[78]](_0x6710x41.Users,_0xf43f[82]))})})[_0xf43f[76]](function(){return _0x6710x33[_0xf43f[83]]({attributes:[_0xf43f[82]],include:[{raw:true,model:User,attributes:[_0xf43f[82]]}]})})[_0xf43f[76]](function(_0x6710x35){_0x6710x3d= _[_0xf43f[78]](_0x6710x35,_0xf43f[82]);_0x6710x35[_0xf43f[73]](function(_0x6710x41){_0x6710x3b= _[_0xf43f[92]](_0x6710x3b,_[_0xf43f[78]](_0x6710x41.Users,_0xf43f[82]))})})[_0xf43f[76]](function(){return _0x6710x33[_0xf43f[84]]({attributes:[_0xf43f[82]],include:[{raw:true,model:User,attributes:[_0xf43f[82]]}]})})[_0xf43f[76]](function(_0x6710x35){_0x6710x3e= _[_0xf43f[78]](_0x6710x35,_0xf43f[82]);_0x6710x35[_0xf43f[73]](function(_0x6710x41){_0x6710x3b= _[_0xf43f[92]](_0x6710x3b,_[_0xf43f[78]](_0x6710x41.Users,_0xf43f[82]))})})[_0xf43f[76]](function(){return _0x6710x33[_0xf43f[86]]({attributes:[_0xf43f[82]],include:[{raw:true,model:User,attributes:[_0xf43f[82]]}]})})[_0xf43f[76]](function(_0x6710x35){_0x6710x3f= _[_0xf43f[78]](_0x6710x35,_0xf43f[82]);_0x6710x35[_0xf43f[73]](function(_0x6710x41){_0x6710x3b= _[_0xf43f[92]](_0x6710x3b,_[_0xf43f[78]](_0x6710x41.Users,_0xf43f[82]))})})[_0xf43f[76]](function(){return _0x6710x33[_0xf43f[85]]({attributes:[_0xf43f[82]],include:[{raw:true,model:User,attributes:[_0xf43f[82]]}]})})[_0xf43f[76]](function(_0x6710x35){_0x6710x40= _[_0xf43f[78]](_0x6710x35,_0xf43f[82]);_0x6710x35[_0xf43f[73]](function(_0x6710x41){_0x6710x3b= _[_0xf43f[92]](_0x6710x3b,_[_0xf43f[78]](_0x6710x41.Users,_0xf43f[82]))})})[_0xf43f[76]](function(){return User[_0xf43f[81]](_0xf43f[87],{method:[_0xf43f[88],_0x6710x2a]},{method:[_0xf43f[89],_0x6710x2a]},{method:[_0xf43f[90],_0x6710x2a]},{method:[_0xf43f[91],_0x6710x2a]})[_0xf43f[75]](_[_0xf43f[74]](getQuery(_0x6710x2a,{id:{$in:_0x6710x3b}}),{include:[{model:VoiceQueue,where:{name:{$in:_0x6710x3c}},required:false},{model:ChatQueue,where:{id:{$in:_0x6710x3d}},required:false},{model:MailQueue,where:{id:{$in:_0x6710x3e}},required:false},{model:FaxQueue,where:{id:{$in:_0x6710x3f}},required:false},{model:SmsQueue,where:{id:{$in:_0x6710x40}},required:false}]}))})}};var stripTrailingSlash=function(_0x6710x43){if(_0x6710x43[_0xf43f[93]](-1) === _0xf43f[94]){return _0x6710x43[_0xf43f[93]](0,_0x6710x43[_0xf43f[52]]- 1)};return _0x6710x43};var sendRequest=function(_0x6710x45,_0x6710x46,_0x6710x47){if(_0x6710x46== _0xf43f[95]|| _0x6710x46== _0xf43f[96]){var _0x6710x48={method:_0x6710x46,uri:_0x6710x47,body:_0x6710x45,json:true};return request(_0x6710x48)}else {console[_0xf43f[38]](_0xf43f[97])}};var execAction=function(_0x6710x4a,_0x6710x45){switch(_0x6710x4a[_0xf43f[101]]){case _0xf43f[105]:Action[_0xf43f[104]]({name:_0x6710x4a[_0xf43f[101]],data4:_0x6710x4a[_0xf43f[70]]|| _0xf43f[102]},{body:{name:_0x6710x4a[_0xf43f[101]],agent:_0x6710x45[_0xf43f[103]],type:_0x6710x4a[_0xf43f[70]]|| _0xf43f[102]}})[_0xf43f[76]](function(){console[_0xf43f[38]](_0xf43f[100])})[_0xf43f[99]](function(_0x6710x4b){console[_0xf43f[38]](_0xf43f[98],_0x6710x4b)});break;default:console[_0xf43f[38]](_0xf43f[106])}};module[_0xf43f[107]]= {getQuery:getQuery,getVoiceQueuesIdByUser:getVoiceQueuesIdByUser,getChatQueuesIdByUser:getChatQueuesIdByUser,getMailQueuesIdByUser:getMailQueuesIdByUser,getFaxQueuesIdByUser:getFaxQueuesIdByUser,getAgentsIdByUser:getAgentsIdByUser,stripTrailingSlash:stripTrailingSlash,isValidInterval:isValidInterval,sendRequest:sendRequest,execAction:execAction,errorManager:require(_0xf43f[108])}
\ No newline at end of file
+var _0xac34=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x46\x61\x78\x51\x75\x65\x75\x65","\x53\x6D\x73\x51\x75\x65\x75\x65","\x41\x63\x74\x69\x6F\x6E","\x73\x75\x6E","\x6D\x6F\x6E","\x74\x75\x65","\x77\x65\x64","\x74\x68\x75","\x66\x72\x69","\x73\x61\x74","\x6A\x61\x6E","\x66\x65\x62","\x6D\x61\x72","\x61\x70\x72","\x6D\x61\x79","\x6A\x75\x6E","\x6A\x75\x6C","\x61\x75\x67","\x73\x65\x70","\x6F\x63\x74","\x6E\x6F\x76","\x64\x65\x63","\x2C","\x73\x70\x6C\x69\x74","\x2A","\x48\x48\x3A\x6D\x6D","\x66\x6F\x72\x6D\x61\x74","\x2D","\x54\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x6C\x6F\x67","\x64\x61\x79","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x68\x69\x66\x74","\x70\x75\x73\x68","\x73\x6C\x69\x63\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x44\x57\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x64\x61\x74\x65","\x44\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x6D\x6F\x6E\x74\x68","\x4D\x52\x41\x4E\x47\x45\x20\x4B\x4F","\x49\x4E\x54\x45\x52\x56\x41\x4C\x20\x4F\x4B","\x69\x73\x4F\x62\x6A\x65\x63\x74","\x6C\x65\x6E\x67\x74\x68","\x53\x75\x62\x49\x6E\x74\x65\x72\x76\x61\x6C\x73","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D","\x69\x73\x56\x61\x6C\x69\x64","\x73\x74\x61\x72\x74\x4F\x66","\x64\x61\x79\x53\x74\x61\x72\x74","\x65\x6E\x64\x4F\x66","\x64\x61\x79\x45\x6E\x64","\x5F\x75\x69\x46\x72\x6F\x6D","","\x72\x65\x70\x6C\x61\x63\x65","\x5F\x75\x69\x54\x6F","\x24\x61\x6E\x64","\x77\x68\x65\x72\x65","\x6F\x66\x66\x73\x65\x74","\x6C\x69\x6D\x69\x74","\x6F\x72\x64\x65\x72","\x74\x79\x70\x65","\x70\x61\x72\x65\x6E\x74","\x25","\x66\x6F\x72\x45\x61\x63\x68","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x74\x68\x65\x6E","\x6E\x61\x6D\x65","\x6D\x61\x70","\x67\x65\x74\x50\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x64\x65\x66\x61\x75\x6C\x74","\x73\x63\x6F\x70\x65","\x69\x64","\x67\x65\x74\x50\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x50\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x50\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x67\x65\x74\x50\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x63\x68\x65\x63\x6B\x50\x61\x75\x73\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x51\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x4F\x6E\x6C\x69\x6E\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x53\x69\x70\x53\x74\x61\x74\x75\x73","\x75\x6E\x69\x6F\x6E","\x73\x75\x62\x73\x74\x72","\x2F","\x47\x45\x54","\x50\x4F\x53\x54","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x4D\x65\x74\x68\x6F\x64","\x41\x63\x74\x69\x6F\x6E\x20\x46\x61\x69\x6C\x65\x64","\x63\x61\x74\x63\x68","\x41\x63\x74\x69\x6F\x6E\x20\x53\x75\x63\x63\x65\x73\x73\x66\x75\x6C","\x61\x63\x74\x69\x6F\x6E","\x44\x45\x46\x41\x55\x4C\x54\x20\x50\x41\x55\x53\x45","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x63\x72\x65\x61\x74\x65","\x70\x61\x75\x73\x65","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x63\x74\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x2E\x2F\x65\x72\x72\x6F\x72"];_0xac34[0];var _=require(_0xac34[1]);var moment=require(_0xac34[2]);var request=require(_0xac34[3]);var User=require(_0xac34[5])[_0xac34[4]];var VoiceQueue=require(_0xac34[5])[_0xac34[6]];var ChatQueue=require(_0xac34[5])[_0xac34[7]];var MailQueue=require(_0xac34[5])[_0xac34[8]];var FaxQueue=require(_0xac34[5])[_0xac34[9]];var SmsQueue=require(_0xac34[5])[_0xac34[10]];var Action=require(_0xac34[5])[_0xac34[11]];var checkInterval=function(_0xc97cxc){var _0xc97cxd=[_0xac34[12],_0xac34[13],_0xac34[14],_0xac34[15],_0xac34[16],_0xac34[17],_0xac34[18]];var _0xc97cxe=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];var _0xc97cxf=[_0xac34[19],_0xac34[20],_0xac34[21],_0xac34[22],_0xac34[23],_0xac34[24],_0xac34[25],_0xac34[26],_0xac34[27],_0xac34[28],_0xac34[29],_0xac34[30]];var _0xc97cx10,_0xc97cx11;var _0xc97cx12=_0xc97cxc[_0xac34[32]](_0xac34[31])[0];var _0xc97cx13=_0xc97cxc[_0xac34[32]](_0xac34[31])[1];var _0xc97cx14=_0xc97cxc[_0xac34[32]](_0xac34[31])[2];var _0xc97cx15=_0xc97cxc[_0xac34[32]](_0xac34[31])[3];if(_0xc97cx12!== _0xac34[33]){var _0xc97cx16=moment()[_0xac34[35]](_0xac34[34]);var _0xc97cx17=_0xc97cx12[_0xac34[32]](_0xac34[36])[0];var _0xc97cx18=_0xc97cx12[_0xac34[32]](_0xac34[36])[1];if((_0xc97cx16< _0xc97cx17)|| (_0xc97cx16> _0xc97cx18)){console[_0xac34[38]](_0xac34[37]);return false}};if(_0xc97cx13!== _0xac34[33]){var _0xc97cx19=_0xc97cxd[moment()[_0xac34[39]]()];var _0xc97cx1a=_[_0xac34[40]](_0xc97cxd,_0xc97cx13[_0xac34[32]](_0xac34[36])[0]);var _0xc97cx1b=_[_0xac34[40]](_0xc97cxd,_0xc97cx13[_0xac34[32]](_0xac34[36])[1]);for(_0xc97cx10= 0;_0xc97cx10< _0xc97cx1a;_0xc97cx10++){_0xc97cx11= _0xc97cxd[_0xac34[41]]();_0xc97cxd[_0xac34[42]](_0xc97cx11)};_0xc97cx1a= _[_0xac34[40]](_0xc97cxd,_0xc97cx13[_0xac34[32]](_0xac34[36])[0]);_0xc97cx1b= _[_0xac34[40]](_0xc97cxd,_0xc97cx13[_0xac34[32]](_0xac34[36])[1])+ 1;_0xc97cxd= _0xc97cxd[_0xac34[43]](_0xc97cx1a,_0xc97cx1b);if(!_[_0xac34[44]](_0xc97cxd,_0xc97cx19)){console[_0xac34[38]](_0xac34[45]);return false}};if(_0xc97cx14!== _0xac34[33]){var _0xc97cx1c=moment()[_0xac34[46]]();var _0xc97cx1d=_[_0xac34[40]](_0xc97cxe,parseInt(_0xc97cx14[_0xac34[32]](_0xac34[36])[0],10));var _0xc97cx1e=_[_0xac34[40]](_0xc97cxe,parseInt(_0xc97cx14[_0xac34[32]](_0xac34[36])[1]));for(_0xc97cx10= 0;_0xc97cx10< _0xc97cx1d;_0xc97cx10++){_0xc97cx11= _0xc97cxe[_0xac34[41]]();_0xc97cxe[_0xac34[42]](_0xc97cx11)};_0xc97cx1d= _[_0xac34[40]](_0xc97cxe,parseInt(_0xc97cx14[_0xac34[32]](_0xac34[36])[0],10));_0xc97cx1e= _[_0xac34[40]](_0xc97cxe,parseInt(_0xc97cx14[_0xac34[32]](_0xac34[36])[1]),10)+ 1;_0xc97cxe= _0xc97cxe[_0xac34[43]](_0xc97cx1d,_0xc97cx1e);if(!_[_0xac34[44]](_0xc97cxe,_0xc97cx1c)){console[_0xac34[38]](_0xac34[47]);return false}};if(_0xc97cx15!== _0xac34[33]){var _0xc97cx1f=_0xc97cxf[moment()[_0xac34[48]]()];var _0xc97cx20=_[_0xac34[40]](_0xc97cxf,_0xc97cx15[_0xac34[32]](_0xac34[36])[0]);var _0xc97cx21=_[_0xac34[40]](_0xc97cxf,_0xc97cx15[_0xac34[32]](_0xac34[36])[1]);for(_0xc97cx10= 0;_0xc97cx10< _0xc97cx20;_0xc97cx10++){_0xc97cx11= _0xc97cxf[_0xac34[41]]();_0xc97cxf[_0xac34[42]](_0xc97cx11)};_0xc97cx20= _[_0xac34[40]](_0xc97cxf,_0xc97cx15[_0xac34[32]](_0xac34[36])[0]);_0xc97cx21= _[_0xac34[40]](_0xc97cxf,_0xc97cx15[_0xac34[32]](_0xac34[36])[1])+ 1;_0xc97cxf= _0xc97cxf[_0xac34[43]](_0xc97cx20,_0xc97cx21);if(!_[_0xac34[44]](_0xc97cxf,_0xc97cx1f)){console[_0xac34[38]](_0xac34[49]);return false}};console[_0xac34[38]](_0xac34[50]);return true};var isValidInterval=function(_0xc97cxc){if(_[_0xac34[51]](_0xc97cxc)){for(var _0xc97cx10=0;_0xc97cx10< _0xc97cxc[_0xac34[53]][_0xac34[52]];_0xc97cx10++){if(!checkInterval(_0xc97cxc[_0xac34[53]][_0xc97cx10][_0xac34[54]])){return false}};return true}else {return checkInterval(_0xc97cxc)}};var getDate=function(_0xc97cx24,_0xc97cx25){var _0xc97cx26=_0xac34[55];if(moment(_0xc97cx24,_0xc97cx26,true)[_0xac34[56]]()){return moment(_0xc97cx24)}else {switch(_0xc97cx25){case _0xac34[58]:return moment(_0xc97cx24)[_0xac34[57]](_0xac34[39]);case _0xac34[60]:return moment(_0xc97cx24)[_0xac34[59]](_0xac34[39]);default:return moment(_0xc97cx24)}}};var getQuery=function(_0xc97cx28,_0xc97cx29){var _0xc97cx2a={where:{}};if(_0xc97cx28){var _0xc97cx2b,_0xc97cx2c={};for(var _0xc97cx2d in _0xc97cx28){if(_[_0xac34[44]](_0xc97cx2d,_0xac34[61])){_0xc97cx2b= _0xc97cx2d[_0xac34[63]](_0xac34[61],_0xac34[62]);if(_0xc97cx28[_0xc97cx2b+ _0xac34[64]]){_0xc97cx2a[_0xac34[66]][_0xac34[65]]= _0xc97cx2a[_0xac34[66]][_0xac34[65]]|| [];_0xc97cx2c= {};_0xc97cx2c[_0xc97cx2b]= {$gte:getDate(_0xc97cx28[_0xc97cx2d],_0xac34[58])};_0xc97cx2a[_0xac34[66]][_0xac34[65]][_0xac34[42]](_0xc97cx2c);_0xc97cx2c= {};_0xc97cx2c[_0xc97cx2b]= {$lte:getDate(_0xc97cx28[_0xc97cx2b+ _0xac34[64]],_0xac34[60])};_0xc97cx2a[_0xac34[66]][_0xac34[65]][_0xac34[42]](_0xc97cx2c);delete _0xc97cx28[_0xc97cx2b+ _0xac34[64]]}else {_0xc97cx2a[_0xac34[66]][_0xc97cx2d[_0xac34[63]](_0xac34[61],_0xac34[62])]= {$gte:getDate(_0xc97cx28[_0xc97cx2d],_0xac34[58])}};delete _0xc97cx28[_0xc97cx2d]}else {if(_[_0xac34[44]](_0xc97cx2d,_0xac34[64])){_0xc97cx2b= _0xc97cx2d[_0xac34[63]](_0xac34[64],_0xac34[62]);if(_0xc97cx28[_0xc97cx2b+ _0xac34[61]]){_0xc97cx2a[_0xac34[66]][_0xac34[65]]= _0xc97cx2a[_0xac34[66]][_0xac34[65]]|| [];_0xc97cx2c= {};_0xc97cx2c[_0xc97cx2b]= {$lte:getDate(_0xc97cx28[_0xc97cx2d],_0xac34[60])};_0xc97cx2a[_0xac34[66]][_0xac34[65]][_0xac34[42]](_0xc97cx2c);_0xc97cx2c[_0xc97cx2b]= {$gte:getDate(_0xc97cx28[_0xc97cx2b+ _0xac34[61]],_0xac34[58])};_0xc97cx2a[_0xac34[66]][_0xac34[65]][_0xac34[42]](_0xc97cx2c);delete _0xc97cx28[_0xc97cx2b+ _0xac34[61]]}else {_0xc97cx2a[_0xac34[66]][_0xc97cx2d[_0xac34[63]](_0xac34[64],_0xac34[62])]= {$lte:getDate(_0xc97cx28[_0xc97cx2d],_0xac34[60])}};delete _0xc97cx28[_0xc97cx2d]}}};_[_0xac34[73]](_0xc97cx28,function(_0xc97cx2e,_0xc97cx2d){switch(_0xc97cx2d){case _0xac34[67]:;case _0xac34[68]:_0xc97cx2a[_0xc97cx2d]= Number(_0xc97cx2e);break;case _0xac34[69]:_0xc97cx2a[_0xc97cx2d]= _0xc97cx2e;break;case _0xac34[70]:;case _0xac34[71]:_0xc97cx2a[_0xac34[66]][_0xc97cx2d]= _0xc97cx2e;break;default:_0xc97cx2a[_0xac34[66]][_0xc97cx2d]= {$like:_0xac34[72]+ _0xc97cx2e+ _0xac34[72]}}})};if(_0xc97cx29){_[_0xac34[74]](_0xc97cx2a[_0xac34[66]],_0xc97cx29)};return _0xc97cx2a};var getVoiceQueuesIdByUser=function(_0xc97cx28,_0xc97cx30){return function(_0xc97cx31){var _0xc97cx32=[];var _0xc97cx33=_0xc97cx31;var _0xc97cx2a=_0xc97cx28|| {};var _0xc97cx34=_0xc97cx30|| {};return _0xc97cx33[_0xac34[79]]({attributes:[_0xac34[77]]})[_0xac34[76]](function(_0xc97cx35){_0xc97cx32= _[_0xac34[78]](_0xc97cx35,_0xac34[77])})[_0xac34[76]](function(){return VoiceQueue[_0xac34[75]](_[_0xac34[74]](getQuery(_0xc97cx28,{name:{$in:_0xc97cx32}}),_0xc97cx34))})}};var getChatQueuesIdByUser=function(_0xc97cx28,_0xc97cx30){return function(_0xc97cx31){var _0xc97cx32=[];var _0xc97cx33=_0xc97cx31;var _0xc97cx2a=_0xc97cx28|| {};var _0xc97cx34=_0xc97cx30|| {};return _0xc97cx33[_0xac34[83]]({attributes:[_0xac34[82]]})[_0xac34[76]](function(_0xc97cx35){_0xc97cx32= _[_0xac34[78]](_0xc97cx35,_0xac34[82])})[_0xac34[76]](function(){return ChatQueue[_0xac34[81]](_0xac34[80])[_0xac34[75]](_[_0xac34[74]](getQuery(_0xc97cx2a,{id:{$in:_0xc97cx32}}),_0xc97cx34))})}};var getMailQueuesIdByUser=function(_0xc97cx28,_0xc97cx30){return function(_0xc97cx31){var _0xc97cx32=[];var _0xc97cx33=_0xc97cx31;var _0xc97cx2a=_0xc97cx28|| {};var _0xc97cx34=_0xc97cx30|| {};return _0xc97cx33[_0xac34[84]]({attributes:[_0xac34[82]]})[_0xac34[76]](function(_0xc97cx35){_0xc97cx32= _[_0xac34[78]](_0xc97cx35,_0xac34[82])})[_0xac34[76]](function(){return MailQueue[_0xac34[75]](_[_0xac34[74]](getQuery(_0xc97cx2a,{id:{$in:_0xc97cx32}}),_0xc97cx34))})}};var getSmsQueuesIdByUser=function(_0xc97cx28,_0xc97cx30){return function(_0xc97cx31){var _0xc97cx32=[];var _0xc97cx33=_0xc97cx31;var _0xc97cx2a=_0xc97cx28|| {};var _0xc97cx34=_0xc97cx30|| {};return _0xc97cx33[_0xac34[85]]({attributes:[_0xac34[82]]})[_0xac34[76]](function(_0xc97cx35){_0xc97cx32= _[_0xac34[78]](_0xc97cx35,_0xac34[82])})[_0xac34[76]](function(){return SmsQueue[_0xac34[75]](_[_0xac34[74]](getQuery(_0xc97cx2a,{id:{$in:_0xc97cx32}}),_0xc97cx34))})}};var getFaxQueuesIdByUser=function(_0xc97cx28,_0xc97cx30){return function(_0xc97cx31){var _0xc97cx32=[];var _0xc97cx33=_0xc97cx31;var _0xc97cx2a=_0xc97cx28|| {};var _0xc97cx34=_0xc97cx30|| {};return _0xc97cx33[_0xac34[86]]({attributes:[_0xac34[82]]})[_0xac34[76]](function(_0xc97cx35){_0xc97cx32= _[_0xac34[78]](_0xc97cx35,_0xac34[82])})[_0xac34[76]](function(){return FaxQueue[_0xac34[75]](_[_0xac34[74]](getQuery(_0xc97cx2a,{id:{$in:_0xc97cx32}}),_0xc97cx34))})}};var getAgentsIdByUser=function(_0xc97cx28){return function(_0xc97cx31){var _0xc97cx3b=[];var _0xc97cx33=_0xc97cx31;var _0xc97cx2a=_0xc97cx28|| {};var _0xc97cx3c=[],_0xc97cx3d=[],_0xc97cx3e=[],_0xc97cx3f=[],_0xc97cx40=[];return _0xc97cx33[_0xac34[79]]({attributes:[_0xac34[77]],include:[{raw:true,model:User,attributes:[_0xac34[82]]}]})[_0xac34[76]](function(_0xc97cx35){_0xc97cx3c= _[_0xac34[78]](_0xc97cx35,_0xac34[77]);_0xc97cx35[_0xac34[73]](function(_0xc97cx41){_0xc97cx3b= _[_0xac34[92]](_0xc97cx3b,_[_0xac34[78]](_0xc97cx41.Users,_0xac34[82]))})})[_0xac34[76]](function(){return _0xc97cx33[_0xac34[83]]({attributes:[_0xac34[82]],include:[{raw:true,model:User,attributes:[_0xac34[82]]}]})})[_0xac34[76]](function(_0xc97cx35){_0xc97cx3d= _[_0xac34[78]](_0xc97cx35,_0xac34[82]);_0xc97cx35[_0xac34[73]](function(_0xc97cx41){_0xc97cx3b= _[_0xac34[92]](_0xc97cx3b,_[_0xac34[78]](_0xc97cx41.Users,_0xac34[82]))})})[_0xac34[76]](function(){return _0xc97cx33[_0xac34[84]]({attributes:[_0xac34[82]],include:[{raw:true,model:User,attributes:[_0xac34[82]]}]})})[_0xac34[76]](function(_0xc97cx35){_0xc97cx3e= _[_0xac34[78]](_0xc97cx35,_0xac34[82]);_0xc97cx35[_0xac34[73]](function(_0xc97cx41){_0xc97cx3b= _[_0xac34[92]](_0xc97cx3b,_[_0xac34[78]](_0xc97cx41.Users,_0xac34[82]))})})[_0xac34[76]](function(){return _0xc97cx33[_0xac34[86]]({attributes:[_0xac34[82]],include:[{raw:true,model:User,attributes:[_0xac34[82]]}]})})[_0xac34[76]](function(_0xc97cx35){_0xc97cx3f= _[_0xac34[78]](_0xc97cx35,_0xac34[82]);_0xc97cx35[_0xac34[73]](function(_0xc97cx41){_0xc97cx3b= _[_0xac34[92]](_0xc97cx3b,_[_0xac34[78]](_0xc97cx41.Users,_0xac34[82]))})})[_0xac34[76]](function(){return _0xc97cx33[_0xac34[85]]({attributes:[_0xac34[82]],include:[{raw:true,model:User,attributes:[_0xac34[82]]}]})})[_0xac34[76]](function(_0xc97cx35){_0xc97cx40= _[_0xac34[78]](_0xc97cx35,_0xac34[82]);_0xc97cx35[_0xac34[73]](function(_0xc97cx41){_0xc97cx3b= _[_0xac34[92]](_0xc97cx3b,_[_0xac34[78]](_0xc97cx41.Users,_0xac34[82]))})})[_0xac34[76]](function(){return User[_0xac34[81]](_0xac34[87],{method:[_0xac34[88],_0xc97cx2a]},{method:[_0xac34[89],_0xc97cx2a]},{method:[_0xac34[90],_0xc97cx2a]},{method:[_0xac34[91],_0xc97cx2a]})[_0xac34[75]](_[_0xac34[74]](getQuery(_0xc97cx2a,{id:{$in:_0xc97cx3b}}),{include:[{model:VoiceQueue,where:{name:{$in:_0xc97cx3c}},required:false},{model:ChatQueue,where:{id:{$in:_0xc97cx3d}},required:false},{model:MailQueue,where:{id:{$in:_0xc97cx3e}},required:false},{model:FaxQueue,where:{id:{$in:_0xc97cx3f}},required:false},{model:SmsQueue,where:{id:{$in:_0xc97cx40}},required:false}]}))})}};var stripTrailingSlash=function(_0xc97cx43){if(_0xc97cx43[_0xac34[93]](-1) === _0xac34[94]){return _0xc97cx43[_0xac34[93]](0,_0xc97cx43[_0xac34[52]]- 1)};return _0xc97cx43};var sendRequest=function(_0xc97cx45,_0xc97cx46,_0xc97cx47){if(_0xc97cx46== _0xac34[95]|| _0xc97cx46== _0xac34[96]){var _0xc97cx48={method:_0xc97cx46,uri:_0xc97cx47,body:_0xc97cx45,json:true};return request(_0xc97cx48)}else {console[_0xac34[38]](_0xac34[97])}};var execAction=function(_0xc97cx4a,_0xc97cx45){switch(_0xc97cx4a[_0xac34[101]]){case _0xac34[105]:Action[_0xac34[104]]({name:_0xc97cx4a[_0xac34[101]],data4:_0xc97cx4a[_0xac34[70]]|| _0xac34[102]},{body:{name:_0xc97cx4a[_0xac34[101]],agent:_0xc97cx45[_0xac34[103]],type:_0xc97cx4a[_0xac34[70]]|| _0xac34[102]}})[_0xac34[76]](function(){console[_0xac34[38]](_0xac34[100])})[_0xac34[99]](function(_0xc97cx4b){console[_0xac34[38]](_0xac34[98],_0xc97cx4b)});break;default:console[_0xac34[38]](_0xac34[106])}};module[_0xac34[107]]= {getQuery:getQuery,getVoiceQueuesIdByUser:getVoiceQueuesIdByUser,getChatQueuesIdByUser:getChatQueuesIdByUser,getMailQueuesIdByUser:getMailQueuesIdByUser,getFaxQueuesIdByUser:getFaxQueuesIdByUser,getAgentsIdByUser:getAgentsIdByUser,stripTrailingSlash:stripTrailingSlash,isValidInterval:isValidInterval,sendRequest:sendRequest,execAction:execAction,errorManager:require(_0xac34[108])}
\ No newline at end of file