Built motion from commit 857c5af.|0.0.124
[motion.git] / server / config / util / index.js
index cd0c3fd..6bdf941 100644 (file)
@@ -1 +1 @@
-var _0xeef3=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\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","\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","\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","\x73\x74\x61\x72\x74\x4F\x66","\x65\x6E\x64\x4F\x66","\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","\x65\x78\x70\x6F\x72\x74\x73","\x2E\x2F\x65\x72\x72\x6F\x72"];_0xeef3[0];var _=require(_0xeef3[1]);var moment=require(_0xeef3[2]);var User=require(_0xeef3[4])[_0xeef3[3]];var VoiceQueue=require(_0xeef3[4])[_0xeef3[5]];var ChatQueue=require(_0xeef3[4])[_0xeef3[6]];var MailQueue=require(_0xeef3[4])[_0xeef3[7]];var FaxQueue=require(_0xeef3[4])[_0xeef3[8]];var SmsQueue=require(_0xeef3[4])[_0xeef3[9]];var checkInterval=function(_0xe66dxa){var _0xe66dxb=[_0xeef3[10],_0xeef3[11],_0xeef3[12],_0xeef3[13],_0xeef3[14],_0xeef3[15],_0xeef3[16]];var _0xe66dxc=[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 _0xe66dxd=[_0xeef3[17],_0xeef3[18],_0xeef3[19],_0xeef3[20],_0xeef3[21],_0xeef3[22],_0xeef3[23],_0xeef3[24],_0xeef3[25],_0xeef3[26],_0xeef3[27],_0xeef3[28]];var _0xe66dxe,_0xe66dxf;var _0xe66dx10=_0xe66dxa[_0xeef3[30]](_0xeef3[29])[0];var _0xe66dx11=_0xe66dxa[_0xeef3[30]](_0xeef3[29])[1];var _0xe66dx12=_0xe66dxa[_0xeef3[30]](_0xeef3[29])[2];var _0xe66dx13=_0xe66dxa[_0xeef3[30]](_0xeef3[29])[3];if(_0xe66dx10!== _0xeef3[31]){var _0xe66dx14=moment()[_0xeef3[33]](_0xeef3[32]);var _0xe66dx15=_0xe66dx10[_0xeef3[30]](_0xeef3[34])[0];var _0xe66dx16=_0xe66dx10[_0xeef3[30]](_0xeef3[34])[1];if((_0xe66dx14< _0xe66dx15)|| (_0xe66dx14> _0xe66dx16)){console[_0xeef3[36]](_0xeef3[35]);return false}};if(_0xe66dx11!== _0xeef3[31]){var _0xe66dx17=_0xe66dxb[moment()[_0xeef3[37]]()];var _0xe66dx18=_[_0xeef3[38]](_0xe66dxb,_0xe66dx11[_0xeef3[30]](_0xeef3[34])[0]);var _0xe66dx19=_[_0xeef3[38]](_0xe66dxb,_0xe66dx11[_0xeef3[30]](_0xeef3[34])[1]);for(_0xe66dxe= 0;_0xe66dxe< _0xe66dx18;_0xe66dxe++){_0xe66dxf= _0xe66dxb[_0xeef3[39]]();_0xe66dxb[_0xeef3[40]](_0xe66dxf)};_0xe66dx18= _[_0xeef3[38]](_0xe66dxb,_0xe66dx11[_0xeef3[30]](_0xeef3[34])[0]);_0xe66dx19= _[_0xeef3[38]](_0xe66dxb,_0xe66dx11[_0xeef3[30]](_0xeef3[34])[1])+ 1;_0xe66dxb= _0xe66dxb[_0xeef3[41]](_0xe66dx18,_0xe66dx19);if(!_[_0xeef3[42]](_0xe66dxb,_0xe66dx17)){console[_0xeef3[36]](_0xeef3[43]);return false}};if(_0xe66dx12!== _0xeef3[31]){var _0xe66dx1a=moment()[_0xeef3[44]]();var _0xe66dx1b=_[_0xeef3[38]](_0xe66dxc,parseInt(_0xe66dx12[_0xeef3[30]](_0xeef3[34])[0],10));var _0xe66dx1c=_[_0xeef3[38]](_0xe66dxc,parseInt(_0xe66dx12[_0xeef3[30]](_0xeef3[34])[1]));for(_0xe66dxe= 0;_0xe66dxe< _0xe66dx1b;_0xe66dxe++){_0xe66dxf= _0xe66dxc[_0xeef3[39]]();_0xe66dxc[_0xeef3[40]](_0xe66dxf)};_0xe66dx1b= _[_0xeef3[38]](_0xe66dxc,parseInt(_0xe66dx12[_0xeef3[30]](_0xeef3[34])[0],10));_0xe66dx1c= _[_0xeef3[38]](_0xe66dxc,parseInt(_0xe66dx12[_0xeef3[30]](_0xeef3[34])[1]),10)+ 1;_0xe66dxc= _0xe66dxc[_0xeef3[41]](_0xe66dx1b,_0xe66dx1c);if(!_[_0xeef3[42]](_0xe66dxc,_0xe66dx1a)){console[_0xeef3[36]](_0xeef3[45]);return false}};if(_0xe66dx13!== _0xeef3[31]){var _0xe66dx1d=_0xe66dxd[moment()[_0xeef3[46]]()];var _0xe66dx1e=_[_0xeef3[38]](_0xe66dxd,_0xe66dx13[_0xeef3[30]](_0xeef3[34])[0]);var _0xe66dx1f=_[_0xeef3[38]](_0xe66dxd,_0xe66dx13[_0xeef3[30]](_0xeef3[34])[1]);for(_0xe66dxe= 0;_0xe66dxe< _0xe66dx1e;_0xe66dxe++){_0xe66dxf= _0xe66dxd[_0xeef3[39]]();_0xe66dxd[_0xeef3[40]](_0xe66dxf)};_0xe66dx1e= _[_0xeef3[38]](_0xe66dxd,_0xe66dx13[_0xeef3[30]](_0xeef3[34])[0]);_0xe66dx1f= _[_0xeef3[38]](_0xe66dxd,_0xe66dx13[_0xeef3[30]](_0xeef3[34])[1])+ 1;_0xe66dxd= _0xe66dxd[_0xeef3[41]](_0xe66dx1e,_0xe66dx1f);if(!_[_0xeef3[42]](_0xe66dxd,_0xe66dx1d)){console[_0xeef3[36]](_0xeef3[47]);return false}};console[_0xeef3[36]](_0xeef3[48]);return true};var isValidInterval=function(_0xe66dxa){if(_[_0xeef3[49]](_0xe66dxa)){for(var _0xe66dxe=0;_0xe66dxe< _0xe66dxa[_0xeef3[51]][_0xeef3[50]];_0xe66dxe++){if(!checkInterval(_0xe66dxa[_0xeef3[51]][_0xe66dxe][_0xeef3[52]])){return false}};return true}else {return checkInterval(_0xe66dxa)}};var getQuery=function(_0xe66dx22,_0xe66dx23){var _0xe66dx24={where:{}};if(_0xe66dx22){var _0xe66dx25,_0xe66dx26={};for(var _0xe66dx27 in _0xe66dx22){if(_[_0xeef3[42]](_0xe66dx27,_0xeef3[53])){_0xe66dx25= _0xe66dx27[_0xeef3[55]](_0xeef3[53],_0xeef3[54]);if(_0xe66dx22[_0xe66dx25+ _0xeef3[56]]){_0xe66dx24[_0xeef3[58]][_0xeef3[57]]= _0xe66dx24[_0xeef3[58]][_0xeef3[57]]|| [];_0xe66dx26= {};_0xe66dx26[_0xe66dx25]= {$gte:moment(_0xe66dx22[_0xe66dx27])[_0xeef3[59]](_0xeef3[37])};_0xe66dx24[_0xeef3[58]][_0xeef3[57]][_0xeef3[40]](_0xe66dx26);_0xe66dx26= {};_0xe66dx26[_0xe66dx25]= {$lte:moment(_0xe66dx22[_0xe66dx25+ _0xeef3[56]])[_0xeef3[60]](_0xeef3[37])};_0xe66dx24[_0xeef3[58]][_0xeef3[57]][_0xeef3[40]](_0xe66dx26);delete _0xe66dx22[_0xe66dx25+ _0xeef3[56]]}else {_0xe66dx24[_0xeef3[58]][_0xe66dx27[_0xeef3[55]](_0xeef3[53],_0xeef3[54])]= {$gte:moment(_0xe66dx22[_0xe66dx27])[_0xeef3[59]](_0xeef3[37])}};delete _0xe66dx22[_0xe66dx27]}else {if(_[_0xeef3[42]](_0xe66dx27,_0xeef3[56])){_0xe66dx25= _0xe66dx27[_0xeef3[55]](_0xeef3[56],_0xeef3[54]);if(_0xe66dx22[_0xe66dx25+ _0xeef3[53]]){_0xe66dx24[_0xeef3[58]][_0xeef3[57]]= _0xe66dx24[_0xeef3[58]][_0xeef3[57]]|| [];_0xe66dx26= {};_0xe66dx26[_0xe66dx25]= {$lte:moment(_0xe66dx22[_0xe66dx27])[_0xeef3[60]](_0xeef3[37])};_0xe66dx24[_0xeef3[58]][_0xeef3[57]][_0xeef3[40]](_0xe66dx26);_0xe66dx26[_0xe66dx25]= {$gte:moment(_0xe66dx22[_0xe66dx25+ _0xeef3[53]])[_0xeef3[59]](_0xeef3[37])};_0xe66dx24[_0xeef3[58]][_0xeef3[57]][_0xeef3[40]](_0xe66dx26);delete _0xe66dx22[_0xe66dx25+ _0xeef3[53]]}else {_0xe66dx24[_0xeef3[58]][_0xe66dx27[_0xeef3[55]](_0xeef3[56],_0xeef3[54])]= {$lte:moment(_0xe66dx22[_0xe66dx27])[_0xeef3[60]](_0xeef3[37])}};delete _0xe66dx22[_0xe66dx27]}}};_[_0xeef3[67]](_0xe66dx22,function(_0xe66dx28,_0xe66dx27){switch(_0xe66dx27){case _0xeef3[61]:;case _0xeef3[62]:_0xe66dx24[_0xe66dx27]= Number(_0xe66dx28);break;case _0xeef3[63]:_0xe66dx24[_0xe66dx27]= _0xe66dx28;break;case _0xeef3[64]:;case _0xeef3[65]:_0xe66dx24[_0xeef3[58]][_0xe66dx27]= _0xe66dx28;break;default:_0xe66dx24[_0xeef3[58]][_0xe66dx27]= {$like:_0xeef3[66]+ _0xe66dx28+ _0xeef3[66]}}})};if(_0xe66dx23){_[_0xeef3[68]](_0xe66dx24[_0xeef3[58]],_0xe66dx23)};return _0xe66dx24};var getVoiceQueuesIdByUser=function(_0xe66dx22,_0xe66dx2a){return function(_0xe66dx2b){var _0xe66dx2c=[];var _0xe66dx2d=_0xe66dx2b;var _0xe66dx24=_0xe66dx22|| {};var _0xe66dx2e=_0xe66dx2a|| {};return _0xe66dx2d[_0xeef3[73]]({attributes:[_0xeef3[71]]})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx2c= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[71])})[_0xeef3[70]](function(){return VoiceQueue[_0xeef3[69]](_[_0xeef3[68]](getQuery(_0xe66dx22,{name:{$in:_0xe66dx2c}}),_0xe66dx2e))})}};var getChatQueuesIdByUser=function(_0xe66dx22,_0xe66dx2a){return function(_0xe66dx2b){var _0xe66dx2c=[];var _0xe66dx2d=_0xe66dx2b;var _0xe66dx24=_0xe66dx22|| {};var _0xe66dx2e=_0xe66dx2a|| {};return _0xe66dx2d[_0xeef3[77]]({attributes:[_0xeef3[76]]})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx2c= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[76])})[_0xeef3[70]](function(){return ChatQueue[_0xeef3[75]](_0xeef3[74])[_0xeef3[69]](_[_0xeef3[68]](getQuery(_0xe66dx24,{id:{$in:_0xe66dx2c}}),_0xe66dx2e))})}};var getMailQueuesIdByUser=function(_0xe66dx22,_0xe66dx2a){return function(_0xe66dx2b){var _0xe66dx2c=[];var _0xe66dx2d=_0xe66dx2b;var _0xe66dx24=_0xe66dx22|| {};var _0xe66dx2e=_0xe66dx2a|| {};return _0xe66dx2d[_0xeef3[78]]({attributes:[_0xeef3[76]]})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx2c= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[76])})[_0xeef3[70]](function(){return MailQueue[_0xeef3[69]](_[_0xeef3[68]](getQuery(_0xe66dx24,{id:{$in:_0xe66dx2c}}),_0xe66dx2e))})}};var getSmsQueuesIdByUser=function(_0xe66dx22,_0xe66dx2a){return function(_0xe66dx2b){var _0xe66dx2c=[];var _0xe66dx2d=_0xe66dx2b;var _0xe66dx24=_0xe66dx22|| {};var _0xe66dx2e=_0xe66dx2a|| {};return _0xe66dx2d[_0xeef3[79]]({attributes:[_0xeef3[76]]})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx2c= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[76])})[_0xeef3[70]](function(){return SmsQueue[_0xeef3[69]](_[_0xeef3[68]](getQuery(_0xe66dx24,{id:{$in:_0xe66dx2c}}),_0xe66dx2e))})}};var getFaxQueuesIdByUser=function(_0xe66dx22,_0xe66dx2a){return function(_0xe66dx2b){var _0xe66dx2c=[];var _0xe66dx2d=_0xe66dx2b;var _0xe66dx24=_0xe66dx22|| {};var _0xe66dx2e=_0xe66dx2a|| {};return _0xe66dx2d[_0xeef3[80]]({attributes:[_0xeef3[76]]})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx2c= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[76])})[_0xeef3[70]](function(){return FaxQueue[_0xeef3[69]](_[_0xeef3[68]](getQuery(_0xe66dx24,{id:{$in:_0xe66dx2c}}),_0xe66dx2e))})}};var getAgentsIdByUser=function(_0xe66dx22){return function(_0xe66dx2b){var _0xe66dx35=[];var _0xe66dx2d=_0xe66dx2b;var _0xe66dx24=_0xe66dx22|| {};var _0xe66dx36=[],_0xe66dx37=[],_0xe66dx38=[],_0xe66dx39=[],_0xe66dx3a=[];return _0xe66dx2d[_0xeef3[73]]({attributes:[_0xeef3[71]],include:[{raw:true,model:User,attributes:[_0xeef3[76]]}]})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx36= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[71]);_0xe66dx2f[_0xeef3[67]](function(_0xe66dx3b){_0xe66dx35= _[_0xeef3[86]](_0xe66dx35,_[_0xeef3[72]](_0xe66dx3b.Users,_0xeef3[76]))})})[_0xeef3[70]](function(){return _0xe66dx2d[_0xeef3[77]]({attributes:[_0xeef3[76]],include:[{raw:true,model:User,attributes:[_0xeef3[76]]}]})})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx37= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[76]);_0xe66dx2f[_0xeef3[67]](function(_0xe66dx3b){_0xe66dx35= _[_0xeef3[86]](_0xe66dx35,_[_0xeef3[72]](_0xe66dx3b.Users,_0xeef3[76]))})})[_0xeef3[70]](function(){return _0xe66dx2d[_0xeef3[78]]({attributes:[_0xeef3[76]],include:[{raw:true,model:User,attributes:[_0xeef3[76]]}]})})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx38= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[76]);_0xe66dx2f[_0xeef3[67]](function(_0xe66dx3b){_0xe66dx35= _[_0xeef3[86]](_0xe66dx35,_[_0xeef3[72]](_0xe66dx3b.Users,_0xeef3[76]))})})[_0xeef3[70]](function(){return _0xe66dx2d[_0xeef3[80]]({attributes:[_0xeef3[76]],include:[{raw:true,model:User,attributes:[_0xeef3[76]]}]})})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx39= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[76]);_0xe66dx2f[_0xeef3[67]](function(_0xe66dx3b){_0xe66dx35= _[_0xeef3[86]](_0xe66dx35,_[_0xeef3[72]](_0xe66dx3b.Users,_0xeef3[76]))})})[_0xeef3[70]](function(){return _0xe66dx2d[_0xeef3[79]]({attributes:[_0xeef3[76]],include:[{raw:true,model:User,attributes:[_0xeef3[76]]}]})})[_0xeef3[70]](function(_0xe66dx2f){_0xe66dx3a= _[_0xeef3[72]](_0xe66dx2f,_0xeef3[76]);_0xe66dx2f[_0xeef3[67]](function(_0xe66dx3b){_0xe66dx35= _[_0xeef3[86]](_0xe66dx35,_[_0xeef3[72]](_0xe66dx3b.Users,_0xeef3[76]))})})[_0xeef3[70]](function(){return User[_0xeef3[75]](_0xeef3[81],{method:[_0xeef3[82],_0xe66dx24]},{method:[_0xeef3[83],_0xe66dx24]},{method:[_0xeef3[84],_0xe66dx24]},{method:[_0xeef3[85],_0xe66dx24]})[_0xeef3[69]](_[_0xeef3[68]](getQuery(_0xe66dx24,{id:{$in:_0xe66dx35}}),{include:[{model:VoiceQueue,where:{name:{$in:_0xe66dx36}},required:false},{model:ChatQueue,where:{id:{$in:_0xe66dx37}},required:false},{model:MailQueue,where:{id:{$in:_0xe66dx38}},required:false},{model:FaxQueue,where:{id:{$in:_0xe66dx39}},required:false},{model:SmsQueue,where:{id:{$in:_0xe66dx3a}},required:false}]}))})}};var stripTrailingSlash=function(_0xe66dx3d){if(_0xe66dx3d[_0xeef3[87]](-1) === _0xeef3[88]){return _0xe66dx3d[_0xeef3[87]](0,_0xe66dx3d[_0xeef3[50]]- 1)};return _0xe66dx3d};module[_0xeef3[89]]= {getQuery:getQuery,getVoiceQueuesIdByUser:getVoiceQueuesIdByUser,getChatQueuesIdByUser:getChatQueuesIdByUser,getMailQueuesIdByUser:getMailQueuesIdByUser,getFaxQueuesIdByUser:getFaxQueuesIdByUser,getAgentsIdByUser:getAgentsIdByUser,stripTrailingSlash:stripTrailingSlash,isValidInterval:isValidInterval,errorManager:require(_0xeef3[90])}
\ No newline at end of file
+var _0x3606=["\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","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\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","\x67\x65\x74\x50\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\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"];_0x3606[0];var _=require(_0x3606[1]);var moment=require(_0x3606[2]);var request=require(_0x3606[3]);var User=require(_0x3606[5])[_0x3606[4]];var VoiceQueue=require(_0x3606[5])[_0x3606[6]];var ChatQueue=require(_0x3606[5])[_0x3606[7]];var MailQueue=require(_0x3606[5])[_0x3606[8]];var FaxQueue=require(_0x3606[5])[_0x3606[9]];var SmsQueue=require(_0x3606[5])[_0x3606[10]];var OpenchannelQueue=require(_0x3606[5])[_0x3606[11]];var Action=require(_0x3606[5])[_0x3606[12]];var checkInterval=function(_0xd32bxd){var _0xd32bxe=[_0x3606[13],_0x3606[14],_0x3606[15],_0x3606[16],_0x3606[17],_0x3606[18],_0x3606[19]];var _0xd32bxf=[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 _0xd32bx10=[_0x3606[20],_0x3606[21],_0x3606[22],_0x3606[23],_0x3606[24],_0x3606[25],_0x3606[26],_0x3606[27],_0x3606[28],_0x3606[29],_0x3606[30],_0x3606[31]];var _0xd32bx11,_0xd32bx12;var _0xd32bx13=_0xd32bxd[_0x3606[33]](_0x3606[32])[0];var _0xd32bx14=_0xd32bxd[_0x3606[33]](_0x3606[32])[1];var _0xd32bx15=_0xd32bxd[_0x3606[33]](_0x3606[32])[2];var _0xd32bx16=_0xd32bxd[_0x3606[33]](_0x3606[32])[3];if(_0xd32bx13!== _0x3606[34]){var _0xd32bx17=moment()[_0x3606[36]](_0x3606[35]);var _0xd32bx18=_0xd32bx13[_0x3606[33]](_0x3606[37])[0];var _0xd32bx19=_0xd32bx13[_0x3606[33]](_0x3606[37])[1];if((_0xd32bx17< _0xd32bx18)|| (_0xd32bx17> _0xd32bx19)){console[_0x3606[39]](_0x3606[38]);return false}};if(_0xd32bx14!== _0x3606[34]){var _0xd32bx1a=_0xd32bxe[moment()[_0x3606[40]]()];var _0xd32bx1b=_[_0x3606[41]](_0xd32bxe,_0xd32bx14[_0x3606[33]](_0x3606[37])[0]);var _0xd32bx1c=_[_0x3606[41]](_0xd32bxe,_0xd32bx14[_0x3606[33]](_0x3606[37])[1]);for(_0xd32bx11= 0;_0xd32bx11< _0xd32bx1b;_0xd32bx11++){_0xd32bx12= _0xd32bxe[_0x3606[42]]();_0xd32bxe[_0x3606[43]](_0xd32bx12)};_0xd32bx1b= _[_0x3606[41]](_0xd32bxe,_0xd32bx14[_0x3606[33]](_0x3606[37])[0]);_0xd32bx1c= _[_0x3606[41]](_0xd32bxe,_0xd32bx14[_0x3606[33]](_0x3606[37])[1])+ 1;_0xd32bxe= _0xd32bxe[_0x3606[44]](_0xd32bx1b,_0xd32bx1c);if(!_[_0x3606[45]](_0xd32bxe,_0xd32bx1a)){console[_0x3606[39]](_0x3606[46]);return false}};if(_0xd32bx15!== _0x3606[34]){var _0xd32bx1d=moment()[_0x3606[47]]();var _0xd32bx1e=_[_0x3606[41]](_0xd32bxf,parseInt(_0xd32bx15[_0x3606[33]](_0x3606[37])[0],10));var _0xd32bx1f=_[_0x3606[41]](_0xd32bxf,parseInt(_0xd32bx15[_0x3606[33]](_0x3606[37])[1]));for(_0xd32bx11= 0;_0xd32bx11< _0xd32bx1e;_0xd32bx11++){_0xd32bx12= _0xd32bxf[_0x3606[42]]();_0xd32bxf[_0x3606[43]](_0xd32bx12)};_0xd32bx1e= _[_0x3606[41]](_0xd32bxf,parseInt(_0xd32bx15[_0x3606[33]](_0x3606[37])[0],10));_0xd32bx1f= _[_0x3606[41]](_0xd32bxf,parseInt(_0xd32bx15[_0x3606[33]](_0x3606[37])[1]),10)+ 1;_0xd32bxf= _0xd32bxf[_0x3606[44]](_0xd32bx1e,_0xd32bx1f);if(!_[_0x3606[45]](_0xd32bxf,_0xd32bx1d)){console[_0x3606[39]](_0x3606[48]);return false}};if(_0xd32bx16!== _0x3606[34]){var _0xd32bx20=_0xd32bx10[moment()[_0x3606[49]]()];var _0xd32bx21=_[_0x3606[41]](_0xd32bx10,_0xd32bx16[_0x3606[33]](_0x3606[37])[0]);var _0xd32bx22=_[_0x3606[41]](_0xd32bx10,_0xd32bx16[_0x3606[33]](_0x3606[37])[1]);for(_0xd32bx11= 0;_0xd32bx11< _0xd32bx21;_0xd32bx11++){_0xd32bx12= _0xd32bx10[_0x3606[42]]();_0xd32bx10[_0x3606[43]](_0xd32bx12)};_0xd32bx21= _[_0x3606[41]](_0xd32bx10,_0xd32bx16[_0x3606[33]](_0x3606[37])[0]);_0xd32bx22= _[_0x3606[41]](_0xd32bx10,_0xd32bx16[_0x3606[33]](_0x3606[37])[1])+ 1;_0xd32bx10= _0xd32bx10[_0x3606[44]](_0xd32bx21,_0xd32bx22);if(!_[_0x3606[45]](_0xd32bx10,_0xd32bx20)){console[_0x3606[39]](_0x3606[50]);return false}};console[_0x3606[39]](_0x3606[51]);return true};var isValidInterval=function(_0xd32bxd){if(_[_0x3606[52]](_0xd32bxd)){for(var _0xd32bx11=0;_0xd32bx11< _0xd32bxd[_0x3606[54]][_0x3606[53]];_0xd32bx11++){if(!checkInterval(_0xd32bxd[_0x3606[54]][_0xd32bx11][_0x3606[55]])){return false}};return true}else {return checkInterval(_0xd32bxd)}};var getDate=function(_0xd32bx25,_0xd32bx26){var _0xd32bx27=_0x3606[56];if(moment(_0xd32bx25,_0xd32bx27,true)[_0x3606[57]]()){return moment(_0xd32bx25)}else {switch(_0xd32bx26){case _0x3606[59]:return moment(_0xd32bx25)[_0x3606[58]](_0x3606[40]);case _0x3606[61]:return moment(_0xd32bx25)[_0x3606[60]](_0x3606[40]);default:return moment(_0xd32bx25)}}};var getQuery=function(_0xd32bx29,_0xd32bx2a){var _0xd32bx2b={where:{}};if(_0xd32bx29){var _0xd32bx2c,_0xd32bx2d={};for(var _0xd32bx2e in _0xd32bx29){if(_[_0x3606[45]](_0xd32bx2e,_0x3606[62])){_0xd32bx2c= _0xd32bx2e[_0x3606[64]](_0x3606[62],_0x3606[63]);if(_0xd32bx29[_0xd32bx2c+ _0x3606[65]]){_0xd32bx2b[_0x3606[67]][_0x3606[66]]= _0xd32bx2b[_0x3606[67]][_0x3606[66]]|| [];_0xd32bx2d= {};_0xd32bx2d[_0xd32bx2c]= {$gte:getDate(_0xd32bx29[_0xd32bx2e],_0x3606[59])};_0xd32bx2b[_0x3606[67]][_0x3606[66]][_0x3606[43]](_0xd32bx2d);_0xd32bx2d= {};_0xd32bx2d[_0xd32bx2c]= {$lte:getDate(_0xd32bx29[_0xd32bx2c+ _0x3606[65]],_0x3606[61])};_0xd32bx2b[_0x3606[67]][_0x3606[66]][_0x3606[43]](_0xd32bx2d);delete _0xd32bx29[_0xd32bx2c+ _0x3606[65]]}else {_0xd32bx2b[_0x3606[67]][_0xd32bx2e[_0x3606[64]](_0x3606[62],_0x3606[63])]= {$gte:getDate(_0xd32bx29[_0xd32bx2e],_0x3606[59])}};delete _0xd32bx29[_0xd32bx2e]}else {if(_[_0x3606[45]](_0xd32bx2e,_0x3606[65])){_0xd32bx2c= _0xd32bx2e[_0x3606[64]](_0x3606[65],_0x3606[63]);if(_0xd32bx29[_0xd32bx2c+ _0x3606[62]]){_0xd32bx2b[_0x3606[67]][_0x3606[66]]= _0xd32bx2b[_0x3606[67]][_0x3606[66]]|| [];_0xd32bx2d= {};_0xd32bx2d[_0xd32bx2c]= {$lte:getDate(_0xd32bx29[_0xd32bx2e],_0x3606[61])};_0xd32bx2b[_0x3606[67]][_0x3606[66]][_0x3606[43]](_0xd32bx2d);_0xd32bx2d[_0xd32bx2c]= {$gte:getDate(_0xd32bx29[_0xd32bx2c+ _0x3606[62]],_0x3606[59])};_0xd32bx2b[_0x3606[67]][_0x3606[66]][_0x3606[43]](_0xd32bx2d);delete _0xd32bx29[_0xd32bx2c+ _0x3606[62]]}else {_0xd32bx2b[_0x3606[67]][_0xd32bx2e[_0x3606[64]](_0x3606[65],_0x3606[63])]= {$lte:getDate(_0xd32bx29[_0xd32bx2e],_0x3606[61])}};delete _0xd32bx29[_0xd32bx2e]}}};_[_0x3606[74]](_0xd32bx29,function(_0xd32bx2f,_0xd32bx2e){switch(_0xd32bx2e){case _0x3606[68]:;case _0x3606[69]:_0xd32bx2b[_0xd32bx2e]= Number(_0xd32bx2f);break;case _0x3606[70]:_0xd32bx2b[_0xd32bx2e]= _0xd32bx2f;break;case _0x3606[71]:;case _0x3606[72]:_0xd32bx2b[_0x3606[67]][_0xd32bx2e]= _0xd32bx2f;break;default:_0xd32bx2b[_0x3606[67]][_0xd32bx2e]= {$like:_0x3606[73]+ _0xd32bx2f+ _0x3606[73]}}})};if(_0xd32bx2a){_[_0x3606[75]](_0xd32bx2b[_0x3606[67]],_0xd32bx2a)};return _0xd32bx2b};var getVoiceQueuesIdByUser=function(_0xd32bx29,_0xd32bx31){return function(_0xd32bx32){var _0xd32bx33=[];var _0xd32bx34=_0xd32bx32;var _0xd32bx2b=_0xd32bx29|| {};var _0xd32bx35=_0xd32bx31|| {};return _0xd32bx34[_0x3606[80]]({attributes:[_0x3606[78]]})[_0x3606[77]](function(_0xd32bx36){_0xd32bx33= _[_0x3606[79]](_0xd32bx36,_0x3606[78])})[_0x3606[77]](function(){return VoiceQueue[_0x3606[76]](_[_0x3606[75]](getQuery(_0xd32bx29,{name:{$in:_0xd32bx33}}),_0xd32bx35))})}};var getChatQueuesIdByUser=function(_0xd32bx29,_0xd32bx31){return function(_0xd32bx32){var _0xd32bx33=[];var _0xd32bx34=_0xd32bx32;var _0xd32bx2b=_0xd32bx29|| {};var _0xd32bx35=_0xd32bx31|| {};return _0xd32bx34[_0x3606[84]]({attributes:[_0x3606[83]]})[_0x3606[77]](function(_0xd32bx36){_0xd32bx33= _[_0x3606[79]](_0xd32bx36,_0x3606[83])})[_0x3606[77]](function(){return ChatQueue[_0x3606[82]](_0x3606[81])[_0x3606[76]](_[_0x3606[75]](getQuery(_0xd32bx2b,{id:{$in:_0xd32bx33}}),_0xd32bx35))})}};var getMailQueuesIdByUser=function(_0xd32bx29,_0xd32bx31){return function(_0xd32bx32){var _0xd32bx33=[];var _0xd32bx34=_0xd32bx32;var _0xd32bx2b=_0xd32bx29|| {};var _0xd32bx35=_0xd32bx31|| {};return _0xd32bx34[_0x3606[85]]({attributes:[_0x3606[83]]})[_0x3606[77]](function(_0xd32bx36){_0xd32bx33= _[_0x3606[79]](_0xd32bx36,_0x3606[83])})[_0x3606[77]](function(){return MailQueue[_0x3606[76]](_[_0x3606[75]](getQuery(_0xd32bx2b,{id:{$in:_0xd32bx33}}),_0xd32bx35))})}};var getSmsQueuesIdByUser=function(_0xd32bx29,_0xd32bx31){return function(_0xd32bx32){var _0xd32bx33=[];var _0xd32bx34=_0xd32bx32;var _0xd32bx2b=_0xd32bx29|| {};var _0xd32bx35=_0xd32bx31|| {};return _0xd32bx34[_0x3606[86]]({attributes:[_0x3606[83]]})[_0x3606[77]](function(_0xd32bx36){_0xd32bx33= _[_0x3606[79]](_0xd32bx36,_0x3606[83])})[_0x3606[77]](function(){return SmsQueue[_0x3606[76]](_[_0x3606[75]](getQuery(_0xd32bx2b,{id:{$in:_0xd32bx33}}),_0xd32bx35))})}};var getFaxQueuesIdByUser=function(_0xd32bx29,_0xd32bx31){return function(_0xd32bx32){var _0xd32bx33=[];var _0xd32bx34=_0xd32bx32;var _0xd32bx2b=_0xd32bx29|| {};var _0xd32bx35=_0xd32bx31|| {};return _0xd32bx34[_0x3606[87]]({attributes:[_0x3606[83]]})[_0x3606[77]](function(_0xd32bx36){_0xd32bx33= _[_0x3606[79]](_0xd32bx36,_0x3606[83])})[_0x3606[77]](function(){return FaxQueue[_0x3606[76]](_[_0x3606[75]](getQuery(_0xd32bx2b,{id:{$in:_0xd32bx33}}),_0xd32bx35))})}};var getOpenchannelQueuesIdByUser=function(_0xd32bx29,_0xd32bx31){return function(_0xd32bx32){var _0xd32bx33=[];var _0xd32bx34=_0xd32bx32;var _0xd32bx2b=_0xd32bx29|| {};var _0xd32bx35=_0xd32bx31|| {};return _0xd32bx34[_0x3606[88]]({attributes:[_0x3606[83]]})[_0x3606[77]](function(_0xd32bx36){_0xd32bx33= _[_0x3606[79]](_0xd32bx36,_0x3606[83])})[_0x3606[77]](function(){return OpenchannelQueue[_0x3606[76]](_[_0x3606[75]](getQuery(_0xd32bx2b,{id:{$in:_0xd32bx33}}),_0xd32bx35))})}};var getAgentsIdByUser=function(_0xd32bx29){return function(_0xd32bx32){var _0xd32bx3d=[];var _0xd32bx34=_0xd32bx32;var _0xd32bx2b=_0xd32bx29|| {};var _0xd32bx3e=[],_0xd32bx3f=[],_0xd32bx40=[],_0xd32bx41=[],_0xd32bx42=[];return _0xd32bx34[_0x3606[80]]({attributes:[_0x3606[78]],include:[{raw:true,model:User,attributes:[_0x3606[83]]}]})[_0x3606[77]](function(_0xd32bx36){_0xd32bx3e= _[_0x3606[79]](_0xd32bx36,_0x3606[78]);_0xd32bx36[_0x3606[74]](function(_0xd32bx43){_0xd32bx3d= _[_0x3606[94]](_0xd32bx3d,_[_0x3606[79]](_0xd32bx43.Users,_0x3606[83]))})})[_0x3606[77]](function(){return _0xd32bx34[_0x3606[84]]({attributes:[_0x3606[83]],include:[{raw:true,model:User,attributes:[_0x3606[83]]}]})})[_0x3606[77]](function(_0xd32bx36){_0xd32bx3f= _[_0x3606[79]](_0xd32bx36,_0x3606[83]);_0xd32bx36[_0x3606[74]](function(_0xd32bx43){_0xd32bx3d= _[_0x3606[94]](_0xd32bx3d,_[_0x3606[79]](_0xd32bx43.Users,_0x3606[83]))})})[_0x3606[77]](function(){return _0xd32bx34[_0x3606[85]]({attributes:[_0x3606[83]],include:[{raw:true,model:User,attributes:[_0x3606[83]]}]})})[_0x3606[77]](function(_0xd32bx36){_0xd32bx40= _[_0x3606[79]](_0xd32bx36,_0x3606[83]);_0xd32bx36[_0x3606[74]](function(_0xd32bx43){_0xd32bx3d= _[_0x3606[94]](_0xd32bx3d,_[_0x3606[79]](_0xd32bx43.Users,_0x3606[83]))})})[_0x3606[77]](function(){return _0xd32bx34[_0x3606[87]]({attributes:[_0x3606[83]],include:[{raw:true,model:User,attributes:[_0x3606[83]]}]})})[_0x3606[77]](function(_0xd32bx36){_0xd32bx41= _[_0x3606[79]](_0xd32bx36,_0x3606[83]);_0xd32bx36[_0x3606[74]](function(_0xd32bx43){_0xd32bx3d= _[_0x3606[94]](_0xd32bx3d,_[_0x3606[79]](_0xd32bx43.Users,_0x3606[83]))})})[_0x3606[77]](function(){return _0xd32bx34[_0x3606[86]]({attributes:[_0x3606[83]],include:[{raw:true,model:User,attributes:[_0x3606[83]]}]})})[_0x3606[77]](function(_0xd32bx36){_0xd32bx42= _[_0x3606[79]](_0xd32bx36,_0x3606[83]);_0xd32bx36[_0x3606[74]](function(_0xd32bx43){_0xd32bx3d= _[_0x3606[94]](_0xd32bx3d,_[_0x3606[79]](_0xd32bx43.Users,_0x3606[83]))})})[_0x3606[77]](function(){return User[_0x3606[82]](_0x3606[89],{method:[_0x3606[90],_0xd32bx2b]},{method:[_0x3606[91],_0xd32bx2b]},{method:[_0x3606[92],_0xd32bx2b]},{method:[_0x3606[93],_0xd32bx2b]})[_0x3606[76]](_[_0x3606[75]](getQuery(_0xd32bx2b,{id:{$in:_0xd32bx3d}}),{include:[{model:VoiceQueue,where:{name:{$in:_0xd32bx3e}},required:false},{model:ChatQueue,where:{id:{$in:_0xd32bx3f}},required:false},{model:MailQueue,where:{id:{$in:_0xd32bx40}},required:false},{model:FaxQueue,where:{id:{$in:_0xd32bx41}},required:false},{model:SmsQueue,where:{id:{$in:_0xd32bx42}},required:false}]}))})}};var stripTrailingSlash=function(_0xd32bx45){if(_0xd32bx45[_0x3606[95]](-1) === _0x3606[96]){return _0xd32bx45[_0x3606[95]](0,_0xd32bx45[_0x3606[53]]- 1)};return _0xd32bx45};var sendRequest=function(_0xd32bx47,_0xd32bx48,_0xd32bx49){if(_0xd32bx48== _0x3606[97]|| _0xd32bx48== _0x3606[98]){var _0xd32bx4a={method:_0xd32bx48,uri:_0xd32bx49,body:_0xd32bx47,json:true};return request(_0xd32bx4a)}else {console[_0x3606[39]](_0x3606[99])}};var execAction=function(_0xd32bx4c,_0xd32bx47){switch(_0xd32bx4c[_0x3606[103]]){case _0x3606[107]:Action[_0x3606[106]]({name:_0xd32bx4c[_0x3606[103]],data4:_0xd32bx4c[_0x3606[71]]|| _0x3606[104]},{body:{name:_0xd32bx4c[_0x3606[103]],agent:_0xd32bx47[_0x3606[105]],type:_0xd32bx4c[_0x3606[71]]|| _0x3606[104]}})[_0x3606[77]](function(){console[_0x3606[39]](_0x3606[102])})[_0x3606[101]](function(_0xd32bx4d){console[_0x3606[39]](_0x3606[100],_0xd32bx4d)});break;default:console[_0x3606[39]](_0x3606[108])}};module[_0x3606[109]]= {getQuery:getQuery,getVoiceQueuesIdByUser:getVoiceQueuesIdByUser,getChatQueuesIdByUser:getChatQueuesIdByUser,getMailQueuesIdByUser:getMailQueuesIdByUser,getFaxQueuesIdByUser:getFaxQueuesIdByUser,getAgentsIdByUser:getAgentsIdByUser,stripTrailingSlash:stripTrailingSlash,isValidInterval:isValidInterval,sendRequest:sendRequest,execAction:execAction,errorManager:require(_0x3606[110])}
\ No newline at end of file