Built motion from commit ce2081a.|0.0.133
[motion.git] / server / config / util / index.js
index 0338565..b141d35 100644 (file)
@@ -1 +1 @@
-var _0xe9f0=["\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"];_0xe9f0[0];var _=require(_0xe9f0[1]);var moment=require(_0xe9f0[2]);var User=require(_0xe9f0[4])[_0xe9f0[3]];var VoiceQueue=require(_0xe9f0[4])[_0xe9f0[5]];var ChatQueue=require(_0xe9f0[4])[_0xe9f0[6]];var MailQueue=require(_0xe9f0[4])[_0xe9f0[7]];var FaxQueue=require(_0xe9f0[4])[_0xe9f0[8]];var SmsQueue=require(_0xe9f0[4])[_0xe9f0[9]];var checkInterval=function(_0x9684xa){var _0x9684xb=[_0xe9f0[10],_0xe9f0[11],_0xe9f0[12],_0xe9f0[13],_0xe9f0[14],_0xe9f0[15],_0xe9f0[16]];var _0x9684xc=[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 _0x9684xd=[_0xe9f0[17],_0xe9f0[18],_0xe9f0[19],_0xe9f0[20],_0xe9f0[21],_0xe9f0[22],_0xe9f0[23],_0xe9f0[24],_0xe9f0[25],_0xe9f0[26],_0xe9f0[27],_0xe9f0[28]];var _0x9684xe,_0x9684xf;var _0x9684x10=_0x9684xa[_0xe9f0[30]](_0xe9f0[29])[0];var _0x9684x11=_0x9684xa[_0xe9f0[30]](_0xe9f0[29])[1];var _0x9684x12=_0x9684xa[_0xe9f0[30]](_0xe9f0[29])[2];var _0x9684x13=_0x9684xa[_0xe9f0[30]](_0xe9f0[29])[3];if(_0x9684x10!== _0xe9f0[31]){var _0x9684x14=moment()[_0xe9f0[33]](_0xe9f0[32]);var _0x9684x15=_0x9684x10[_0xe9f0[30]](_0xe9f0[34])[0];var _0x9684x16=_0x9684x10[_0xe9f0[30]](_0xe9f0[34])[1];if((_0x9684x14< _0x9684x15)|| (_0x9684x14> _0x9684x16)){console[_0xe9f0[36]](_0xe9f0[35]);return false}};if(_0x9684x11!== _0xe9f0[31]){var _0x9684x17=_0x9684xb[moment()[_0xe9f0[37]]()];var _0x9684x18=_[_0xe9f0[38]](_0x9684xb,_0x9684x11[_0xe9f0[30]](_0xe9f0[34])[0]);var _0x9684x19=_[_0xe9f0[38]](_0x9684xb,_0x9684x11[_0xe9f0[30]](_0xe9f0[34])[1]);for(_0x9684xe= 0;_0x9684xe< _0x9684x18;_0x9684xe++){_0x9684xf= _0x9684xb[_0xe9f0[39]]();_0x9684xb[_0xe9f0[40]](_0x9684xf)};_0x9684x18= _[_0xe9f0[38]](_0x9684xb,_0x9684x11[_0xe9f0[30]](_0xe9f0[34])[0]);_0x9684x19= _[_0xe9f0[38]](_0x9684xb,_0x9684x11[_0xe9f0[30]](_0xe9f0[34])[1])+ 1;_0x9684xb= _0x9684xb[_0xe9f0[41]](_0x9684x18,_0x9684x19);if(!_[_0xe9f0[42]](_0x9684xb,_0x9684x17)){console[_0xe9f0[36]](_0xe9f0[43]);return false}};if(_0x9684x12!== _0xe9f0[31]){var _0x9684x1a=moment()[_0xe9f0[44]]();var _0x9684x1b=_[_0xe9f0[38]](_0x9684xc,parseInt(_0x9684x12[_0xe9f0[30]](_0xe9f0[34])[0],10));var _0x9684x1c=_[_0xe9f0[38]](_0x9684xc,parseInt(_0x9684x12[_0xe9f0[30]](_0xe9f0[34])[1]));for(_0x9684xe= 0;_0x9684xe< _0x9684x1b;_0x9684xe++){_0x9684xf= _0x9684xc[_0xe9f0[39]]();_0x9684xc[_0xe9f0[40]](_0x9684xf)};_0x9684x1b= _[_0xe9f0[38]](_0x9684xc,parseInt(_0x9684x12[_0xe9f0[30]](_0xe9f0[34])[0],10));_0x9684x1c= _[_0xe9f0[38]](_0x9684xc,parseInt(_0x9684x12[_0xe9f0[30]](_0xe9f0[34])[1]),10)+ 1;_0x9684xc= _0x9684xc[_0xe9f0[41]](_0x9684x1b,_0x9684x1c);if(!_[_0xe9f0[42]](_0x9684xc,_0x9684x1a)){console[_0xe9f0[36]](_0xe9f0[45]);return false}};if(_0x9684x13!== _0xe9f0[31]){var _0x9684x1d=_0x9684xd[moment()[_0xe9f0[46]]()];var _0x9684x1e=_[_0xe9f0[38]](_0x9684xd,_0x9684x13[_0xe9f0[30]](_0xe9f0[34])[0]);var _0x9684x1f=_[_0xe9f0[38]](_0x9684xd,_0x9684x13[_0xe9f0[30]](_0xe9f0[34])[1]);for(_0x9684xe= 0;_0x9684xe< _0x9684x1e;_0x9684xe++){_0x9684xf= _0x9684xd[_0xe9f0[39]]();_0x9684xd[_0xe9f0[40]](_0x9684xf)};_0x9684x1e= _[_0xe9f0[38]](_0x9684xd,_0x9684x13[_0xe9f0[30]](_0xe9f0[34])[0]);_0x9684x1f= _[_0xe9f0[38]](_0x9684xd,_0x9684x13[_0xe9f0[30]](_0xe9f0[34])[1])+ 1;_0x9684xd= _0x9684xd[_0xe9f0[41]](_0x9684x1e,_0x9684x1f);if(!_[_0xe9f0[42]](_0x9684xd,_0x9684x1d)){console[_0xe9f0[36]](_0xe9f0[47]);return false}};console[_0xe9f0[36]](_0xe9f0[48]);return true};var isValidInterval=function(_0x9684xa){if(_[_0xe9f0[49]](_0x9684xa)){for(var _0x9684xe=0;_0x9684xe< _0x9684xa[_0xe9f0[51]][_0xe9f0[50]];_0x9684xe++){if(!checkInterval(_0x9684xa[_0xe9f0[51]][_0x9684xe][_0xe9f0[52]])){return false}};return true}else {return checkInterval(_0x9684xa)}};var getQuery=function(_0x9684x22,_0x9684x23){var _0x9684x24={where:{}};if(_0x9684x22){var _0x9684x25,_0x9684x26={};for(var _0x9684x27 in _0x9684x22){if(_[_0xe9f0[42]](_0x9684x27,_0xe9f0[53])){_0x9684x25= _0x9684x27[_0xe9f0[55]](_0xe9f0[53],_0xe9f0[54]);if(_0x9684x22[_0x9684x25+ _0xe9f0[56]]){_0x9684x24[_0xe9f0[58]][_0xe9f0[57]]= _0x9684x24[_0xe9f0[58]][_0xe9f0[57]]|| [];_0x9684x26= {};_0x9684x26[_0x9684x25]= {$gte:moment(_0x9684x22[_0x9684x27])[_0xe9f0[59]](_0xe9f0[37])};_0x9684x24[_0xe9f0[58]][_0xe9f0[57]][_0xe9f0[40]](_0x9684x26);_0x9684x26= {};_0x9684x26[_0x9684x25]= {$lte:moment(_0x9684x22[_0x9684x25+ _0xe9f0[56]])[_0xe9f0[60]](_0xe9f0[37])};_0x9684x24[_0xe9f0[58]][_0xe9f0[57]][_0xe9f0[40]](_0x9684x26);delete _0x9684x22[_0x9684x25+ _0xe9f0[56]]}else {_0x9684x24[_0xe9f0[58]][_0x9684x27[_0xe9f0[55]](_0xe9f0[53],_0xe9f0[54])]= {$gte:moment(_0x9684x22[_0x9684x27])[_0xe9f0[59]](_0xe9f0[37])}};delete _0x9684x22[_0x9684x27]}else {if(_[_0xe9f0[42]](_0x9684x27,_0xe9f0[56])){_0x9684x25= _0x9684x27[_0xe9f0[55]](_0xe9f0[56],_0xe9f0[54]);if(_0x9684x22[_0x9684x25+ _0xe9f0[53]]){_0x9684x24[_0xe9f0[58]][_0xe9f0[57]]= _0x9684x24[_0xe9f0[58]][_0xe9f0[57]]|| [];_0x9684x26= {};_0x9684x26[_0x9684x25]= {$lte:moment(_0x9684x22[_0x9684x27])[_0xe9f0[60]](_0xe9f0[37])};_0x9684x24[_0xe9f0[58]][_0xe9f0[57]][_0xe9f0[40]](_0x9684x26);_0x9684x26[_0x9684x25]= {$gte:moment(_0x9684x22[_0x9684x25+ _0xe9f0[53]])[_0xe9f0[59]](_0xe9f0[37])};_0x9684x24[_0xe9f0[58]][_0xe9f0[57]][_0xe9f0[40]](_0x9684x26);delete _0x9684x22[_0x9684x25+ _0xe9f0[53]]}else {_0x9684x24[_0xe9f0[58]][_0x9684x27[_0xe9f0[55]](_0xe9f0[56],_0xe9f0[54])]= {$lte:moment(_0x9684x22[_0x9684x27])[_0xe9f0[60]](_0xe9f0[37])}};delete _0x9684x22[_0x9684x27]}}};_[_0xe9f0[67]](_0x9684x22,function(_0x9684x28,_0x9684x27){switch(_0x9684x27){case _0xe9f0[61]:;case _0xe9f0[62]:_0x9684x24[_0x9684x27]= Number(_0x9684x28);break;case _0xe9f0[63]:_0x9684x24[_0x9684x27]= _0x9684x28;break;case _0xe9f0[64]:;case _0xe9f0[65]:_0x9684x24[_0xe9f0[58]][_0x9684x27]= _0x9684x28;break;default:_0x9684x24[_0xe9f0[58]][_0x9684x27]= {$like:_0xe9f0[66]+ _0x9684x28+ _0xe9f0[66]}}})};if(_0x9684x23){_[_0xe9f0[68]](_0x9684x24[_0xe9f0[58]],_0x9684x23)};return _0x9684x24};var getVoiceQueuesIdByUser=function(_0x9684x22,_0x9684x2a){return function(_0x9684x2b){var _0x9684x2c=[];var _0x9684x2d=_0x9684x2b;var _0x9684x24=_0x9684x22|| {};var _0x9684x2e=_0x9684x2a|| {};return _0x9684x2d[_0xe9f0[73]]({attributes:[_0xe9f0[71]]})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x2c= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[71])})[_0xe9f0[70]](function(){return VoiceQueue[_0xe9f0[69]](_[_0xe9f0[68]](getQuery(_0x9684x22,{name:{$in:_0x9684x2c}}),_0x9684x2e))})}};var getChatQueuesIdByUser=function(_0x9684x22,_0x9684x2a){return function(_0x9684x2b){var _0x9684x2c=[];var _0x9684x2d=_0x9684x2b;var _0x9684x24=_0x9684x22|| {};var _0x9684x2e=_0x9684x2a|| {};return _0x9684x2d[_0xe9f0[77]]({attributes:[_0xe9f0[76]]})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x2c= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[76])})[_0xe9f0[70]](function(){return ChatQueue[_0xe9f0[75]](_0xe9f0[74])[_0xe9f0[69]](_[_0xe9f0[68]](getQuery(_0x9684x24,{id:{$in:_0x9684x2c}}),_0x9684x2e))})}};var getMailQueuesIdByUser=function(_0x9684x22,_0x9684x2a){return function(_0x9684x2b){var _0x9684x2c=[];var _0x9684x2d=_0x9684x2b;var _0x9684x24=_0x9684x22|| {};var _0x9684x2e=_0x9684x2a|| {};return _0x9684x2d[_0xe9f0[78]]({attributes:[_0xe9f0[76]]})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x2c= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[76])})[_0xe9f0[70]](function(){return MailQueue[_0xe9f0[69]](_[_0xe9f0[68]](getQuery(_0x9684x24,{id:{$in:_0x9684x2c}}),_0x9684x2e))})}};var getSmsQueuesIdByUser=function(_0x9684x22,_0x9684x2a){return function(_0x9684x2b){var _0x9684x2c=[];var _0x9684x2d=_0x9684x2b;var _0x9684x24=_0x9684x22|| {};var _0x9684x2e=_0x9684x2a|| {};return _0x9684x2d[_0xe9f0[79]]({attributes:[_0xe9f0[76]]})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x2c= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[76])})[_0xe9f0[70]](function(){return SmsQueue[_0xe9f0[69]](_[_0xe9f0[68]](getQuery(_0x9684x24,{id:{$in:_0x9684x2c}}),_0x9684x2e))})}};var getFaxQueuesIdByUser=function(_0x9684x22,_0x9684x2a){return function(_0x9684x2b){var _0x9684x2c=[];var _0x9684x2d=_0x9684x2b;var _0x9684x24=_0x9684x22|| {};var _0x9684x2e=_0x9684x2a|| {};return _0x9684x2d[_0xe9f0[80]]({attributes:[_0xe9f0[76]]})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x2c= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[76])})[_0xe9f0[70]](function(){return FaxQueue[_0xe9f0[69]](_[_0xe9f0[68]](getQuery(_0x9684x24,{id:{$in:_0x9684x2c}}),_0x9684x2e))})}};var getAgentsIdByUser=function(_0x9684x22){return function(_0x9684x2b){var _0x9684x35=[];var _0x9684x2d=_0x9684x2b;var _0x9684x24=_0x9684x22|| {};var _0x9684x36=[],_0x9684x37=[],_0x9684x38=[],_0x9684x39=[],_0x9684x3a=[];return _0x9684x2d[_0xe9f0[73]]({attributes:[_0xe9f0[71]],include:[{raw:true,model:User,attributes:[_0xe9f0[76]]}]})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x36= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[71]);_0x9684x2f[_0xe9f0[67]](function(_0x9684x3b){_0x9684x35= _[_0xe9f0[86]](_0x9684x35,_[_0xe9f0[72]](_0x9684x3b.Users,_0xe9f0[76]))})})[_0xe9f0[70]](function(){return _0x9684x2d[_0xe9f0[77]]({attributes:[_0xe9f0[76]],include:[{raw:true,model:User,attributes:[_0xe9f0[76]]}]})})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x37= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[76]);_0x9684x2f[_0xe9f0[67]](function(_0x9684x3b){_0x9684x35= _[_0xe9f0[86]](_0x9684x35,_[_0xe9f0[72]](_0x9684x3b.Users,_0xe9f0[76]))})})[_0xe9f0[70]](function(){return _0x9684x2d[_0xe9f0[78]]({attributes:[_0xe9f0[76]],include:[{raw:true,model:User,attributes:[_0xe9f0[76]]}]})})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x38= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[76]);_0x9684x2f[_0xe9f0[67]](function(_0x9684x3b){_0x9684x35= _[_0xe9f0[86]](_0x9684x35,_[_0xe9f0[72]](_0x9684x3b.Users,_0xe9f0[76]))})})[_0xe9f0[70]](function(){return _0x9684x2d[_0xe9f0[80]]({attributes:[_0xe9f0[76]],include:[{raw:true,model:User,attributes:[_0xe9f0[76]]}]})})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x39= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[76]);_0x9684x2f[_0xe9f0[67]](function(_0x9684x3b){_0x9684x35= _[_0xe9f0[86]](_0x9684x35,_[_0xe9f0[72]](_0x9684x3b.Users,_0xe9f0[76]))})})[_0xe9f0[70]](function(){return _0x9684x2d[_0xe9f0[79]]({attributes:[_0xe9f0[76]],include:[{raw:true,model:User,attributes:[_0xe9f0[76]]}]})})[_0xe9f0[70]](function(_0x9684x2f){_0x9684x3a= _[_0xe9f0[72]](_0x9684x2f,_0xe9f0[76]);_0x9684x2f[_0xe9f0[67]](function(_0x9684x3b){_0x9684x35= _[_0xe9f0[86]](_0x9684x35,_[_0xe9f0[72]](_0x9684x3b.Users,_0xe9f0[76]))})})[_0xe9f0[70]](function(){return User[_0xe9f0[75]](_0xe9f0[81],{method:[_0xe9f0[82],_0x9684x24]},{method:[_0xe9f0[83],_0x9684x24]},{method:[_0xe9f0[84],_0x9684x24]},{method:[_0xe9f0[85],_0x9684x24]})[_0xe9f0[69]](_[_0xe9f0[68]](getQuery(_0x9684x24,{id:{$in:_0x9684x35}}),{include:[{model:VoiceQueue,where:{name:{$in:_0x9684x36}},required:false},{model:ChatQueue,where:{id:{$in:_0x9684x37}},required:false},{model:MailQueue,where:{id:{$in:_0x9684x38}},required:false},{model:FaxQueue,where:{id:{$in:_0x9684x39}},required:false},{model:SmsQueue,where:{id:{$in:_0x9684x3a}},required:false}]}))})}};var stripTrailingSlash=function(_0x9684x3d){if(_0x9684x3d[_0xe9f0[87]](-1) === _0xe9f0[88]){return _0x9684x3d[_0xe9f0[87]](0,_0x9684x3d[_0xe9f0[50]]- 1)};return _0x9684x3d};module[_0xe9f0[89]]= {getQuery:getQuery,getVoiceQueuesIdByUser:getVoiceQueuesIdByUser,getChatQueuesIdByUser:getChatQueuesIdByUser,getMailQueuesIdByUser:getMailQueuesIdByUser,getFaxQueuesIdByUser:getFaxQueuesIdByUser,getAgentsIdByUser:getAgentsIdByUser,stripTrailingSlash:stripTrailingSlash,isValidInterval:isValidInterval,errorManager:require(_0xe9f0[90])}
\ No newline at end of file
+var _0xbf2c=["\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"];_0xbf2c[0];var _=require(_0xbf2c[1]);var moment=require(_0xbf2c[2]);var request=require(_0xbf2c[3]);var User=require(_0xbf2c[5])[_0xbf2c[4]];var VoiceQueue=require(_0xbf2c[5])[_0xbf2c[6]];var ChatQueue=require(_0xbf2c[5])[_0xbf2c[7]];var MailQueue=require(_0xbf2c[5])[_0xbf2c[8]];var FaxQueue=require(_0xbf2c[5])[_0xbf2c[9]];var SmsQueue=require(_0xbf2c[5])[_0xbf2c[10]];var OpenchannelQueue=require(_0xbf2c[5])[_0xbf2c[11]];var Action=require(_0xbf2c[5])[_0xbf2c[12]];var checkInterval=function(_0x3910xd){var _0x3910xe=[_0xbf2c[13],_0xbf2c[14],_0xbf2c[15],_0xbf2c[16],_0xbf2c[17],_0xbf2c[18],_0xbf2c[19]];var _0x3910xf=[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 _0x3910x10=[_0xbf2c[20],_0xbf2c[21],_0xbf2c[22],_0xbf2c[23],_0xbf2c[24],_0xbf2c[25],_0xbf2c[26],_0xbf2c[27],_0xbf2c[28],_0xbf2c[29],_0xbf2c[30],_0xbf2c[31]];var _0x3910x11,_0x3910x12;var _0x3910x13=_0x3910xd[_0xbf2c[33]](_0xbf2c[32])[0];var _0x3910x14=_0x3910xd[_0xbf2c[33]](_0xbf2c[32])[1];var _0x3910x15=_0x3910xd[_0xbf2c[33]](_0xbf2c[32])[2];var _0x3910x16=_0x3910xd[_0xbf2c[33]](_0xbf2c[32])[3];if(_0x3910x13!== _0xbf2c[34]){var _0x3910x17=moment()[_0xbf2c[36]](_0xbf2c[35]);var _0x3910x18=_0x3910x13[_0xbf2c[33]](_0xbf2c[37])[0];var _0x3910x19=_0x3910x13[_0xbf2c[33]](_0xbf2c[37])[1];if((_0x3910x17< _0x3910x18)|| (_0x3910x17> _0x3910x19)){console[_0xbf2c[39]](_0xbf2c[38]);return false}};if(_0x3910x14!== _0xbf2c[34]){var _0x3910x1a=_0x3910xe[moment()[_0xbf2c[40]]()];var _0x3910x1b=_[_0xbf2c[41]](_0x3910xe,_0x3910x14[_0xbf2c[33]](_0xbf2c[37])[0]);var _0x3910x1c=_[_0xbf2c[41]](_0x3910xe,_0x3910x14[_0xbf2c[33]](_0xbf2c[37])[1]);for(_0x3910x11= 0;_0x3910x11< _0x3910x1b;_0x3910x11++){_0x3910x12= _0x3910xe[_0xbf2c[42]]();_0x3910xe[_0xbf2c[43]](_0x3910x12)};_0x3910x1b= _[_0xbf2c[41]](_0x3910xe,_0x3910x14[_0xbf2c[33]](_0xbf2c[37])[0]);_0x3910x1c= _[_0xbf2c[41]](_0x3910xe,_0x3910x14[_0xbf2c[33]](_0xbf2c[37])[1])+ 1;_0x3910xe= _0x3910xe[_0xbf2c[44]](_0x3910x1b,_0x3910x1c);if(!_[_0xbf2c[45]](_0x3910xe,_0x3910x1a)){console[_0xbf2c[39]](_0xbf2c[46]);return false}};if(_0x3910x15!== _0xbf2c[34]){var _0x3910x1d=moment()[_0xbf2c[47]]();var _0x3910x1e=_[_0xbf2c[41]](_0x3910xf,parseInt(_0x3910x15[_0xbf2c[33]](_0xbf2c[37])[0],10));var _0x3910x1f=_[_0xbf2c[41]](_0x3910xf,parseInt(_0x3910x15[_0xbf2c[33]](_0xbf2c[37])[1]));for(_0x3910x11= 0;_0x3910x11< _0x3910x1e;_0x3910x11++){_0x3910x12= _0x3910xf[_0xbf2c[42]]();_0x3910xf[_0xbf2c[43]](_0x3910x12)};_0x3910x1e= _[_0xbf2c[41]](_0x3910xf,parseInt(_0x3910x15[_0xbf2c[33]](_0xbf2c[37])[0],10));_0x3910x1f= _[_0xbf2c[41]](_0x3910xf,parseInt(_0x3910x15[_0xbf2c[33]](_0xbf2c[37])[1]),10)+ 1;_0x3910xf= _0x3910xf[_0xbf2c[44]](_0x3910x1e,_0x3910x1f);if(!_[_0xbf2c[45]](_0x3910xf,_0x3910x1d)){console[_0xbf2c[39]](_0xbf2c[48]);return false}};if(_0x3910x16!== _0xbf2c[34]){var _0x3910x20=_0x3910x10[moment()[_0xbf2c[49]]()];var _0x3910x21=_[_0xbf2c[41]](_0x3910x10,_0x3910x16[_0xbf2c[33]](_0xbf2c[37])[0]);var _0x3910x22=_[_0xbf2c[41]](_0x3910x10,_0x3910x16[_0xbf2c[33]](_0xbf2c[37])[1]);for(_0x3910x11= 0;_0x3910x11< _0x3910x21;_0x3910x11++){_0x3910x12= _0x3910x10[_0xbf2c[42]]();_0x3910x10[_0xbf2c[43]](_0x3910x12)};_0x3910x21= _[_0xbf2c[41]](_0x3910x10,_0x3910x16[_0xbf2c[33]](_0xbf2c[37])[0]);_0x3910x22= _[_0xbf2c[41]](_0x3910x10,_0x3910x16[_0xbf2c[33]](_0xbf2c[37])[1])+ 1;_0x3910x10= _0x3910x10[_0xbf2c[44]](_0x3910x21,_0x3910x22);if(!_[_0xbf2c[45]](_0x3910x10,_0x3910x20)){console[_0xbf2c[39]](_0xbf2c[50]);return false}};console[_0xbf2c[39]](_0xbf2c[51]);return true};var isValidInterval=function(_0x3910xd){if(_[_0xbf2c[52]](_0x3910xd)){for(var _0x3910x11=0;_0x3910x11< _0x3910xd[_0xbf2c[54]][_0xbf2c[53]];_0x3910x11++){if(!checkInterval(_0x3910xd[_0xbf2c[54]][_0x3910x11][_0xbf2c[55]])){return false}};return true}else {return checkInterval(_0x3910xd)}};var getDate=function(_0x3910x25,_0x3910x26){var _0x3910x27=_0xbf2c[56];if(moment(_0x3910x25,_0x3910x27,true)[_0xbf2c[57]]()){return moment(_0x3910x25)}else {switch(_0x3910x26){case _0xbf2c[59]:return moment(_0x3910x25)[_0xbf2c[58]](_0xbf2c[40]);case _0xbf2c[61]:return moment(_0x3910x25)[_0xbf2c[60]](_0xbf2c[40]);default:return moment(_0x3910x25)}}};var getQuery=function(_0x3910x29,_0x3910x2a){var _0x3910x2b={where:{}};if(_0x3910x29){var _0x3910x2c,_0x3910x2d={};for(var _0x3910x2e in _0x3910x29){if(_[_0xbf2c[45]](_0x3910x2e,_0xbf2c[62])){_0x3910x2c= _0x3910x2e[_0xbf2c[64]](_0xbf2c[62],_0xbf2c[63]);if(_0x3910x29[_0x3910x2c+ _0xbf2c[65]]){_0x3910x2b[_0xbf2c[67]][_0xbf2c[66]]= _0x3910x2b[_0xbf2c[67]][_0xbf2c[66]]|| [];_0x3910x2d= {};_0x3910x2d[_0x3910x2c]= {$gte:getDate(_0x3910x29[_0x3910x2e],_0xbf2c[59])};_0x3910x2b[_0xbf2c[67]][_0xbf2c[66]][_0xbf2c[43]](_0x3910x2d);_0x3910x2d= {};_0x3910x2d[_0x3910x2c]= {$lte:getDate(_0x3910x29[_0x3910x2c+ _0xbf2c[65]],_0xbf2c[61])};_0x3910x2b[_0xbf2c[67]][_0xbf2c[66]][_0xbf2c[43]](_0x3910x2d);delete _0x3910x29[_0x3910x2c+ _0xbf2c[65]]}else {_0x3910x2b[_0xbf2c[67]][_0x3910x2e[_0xbf2c[64]](_0xbf2c[62],_0xbf2c[63])]= {$gte:getDate(_0x3910x29[_0x3910x2e],_0xbf2c[59])}};delete _0x3910x29[_0x3910x2e]}else {if(_[_0xbf2c[45]](_0x3910x2e,_0xbf2c[65])){_0x3910x2c= _0x3910x2e[_0xbf2c[64]](_0xbf2c[65],_0xbf2c[63]);if(_0x3910x29[_0x3910x2c+ _0xbf2c[62]]){_0x3910x2b[_0xbf2c[67]][_0xbf2c[66]]= _0x3910x2b[_0xbf2c[67]][_0xbf2c[66]]|| [];_0x3910x2d= {};_0x3910x2d[_0x3910x2c]= {$lte:getDate(_0x3910x29[_0x3910x2e],_0xbf2c[61])};_0x3910x2b[_0xbf2c[67]][_0xbf2c[66]][_0xbf2c[43]](_0x3910x2d);_0x3910x2d[_0x3910x2c]= {$gte:getDate(_0x3910x29[_0x3910x2c+ _0xbf2c[62]],_0xbf2c[59])};_0x3910x2b[_0xbf2c[67]][_0xbf2c[66]][_0xbf2c[43]](_0x3910x2d);delete _0x3910x29[_0x3910x2c+ _0xbf2c[62]]}else {_0x3910x2b[_0xbf2c[67]][_0x3910x2e[_0xbf2c[64]](_0xbf2c[65],_0xbf2c[63])]= {$lte:getDate(_0x3910x29[_0x3910x2e],_0xbf2c[61])}};delete _0x3910x29[_0x3910x2e]}}};_[_0xbf2c[74]](_0x3910x29,function(_0x3910x2f,_0x3910x2e){switch(_0x3910x2e){case _0xbf2c[68]:;case _0xbf2c[69]:_0x3910x2b[_0x3910x2e]= Number(_0x3910x2f);break;case _0xbf2c[70]:_0x3910x2b[_0x3910x2e]= _0x3910x2f;break;case _0xbf2c[71]:;case _0xbf2c[72]:_0x3910x2b[_0xbf2c[67]][_0x3910x2e]= _0x3910x2f;break;default:_0x3910x2b[_0xbf2c[67]][_0x3910x2e]= {$like:_0xbf2c[73]+ _0x3910x2f+ _0xbf2c[73]}}})};if(_0x3910x2a){_[_0xbf2c[75]](_0x3910x2b[_0xbf2c[67]],_0x3910x2a)};return _0x3910x2b};var getVoiceQueuesIdByUser=function(_0x3910x29,_0x3910x31){return function(_0x3910x32){var _0x3910x33=[];var _0x3910x34=_0x3910x32;var _0x3910x2b=_0x3910x29|| {};var _0x3910x35=_0x3910x31|| {};return _0x3910x34[_0xbf2c[80]]({attributes:[_0xbf2c[78]]})[_0xbf2c[77]](function(_0x3910x36){_0x3910x33= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[78])})[_0xbf2c[77]](function(){return VoiceQueue[_0xbf2c[76]](_[_0xbf2c[75]](getQuery(_0x3910x29,{name:{$in:_0x3910x33}}),_0x3910x35))})}};var getChatQueuesIdByUser=function(_0x3910x29,_0x3910x31){return function(_0x3910x32){var _0x3910x33=[];var _0x3910x34=_0x3910x32;var _0x3910x2b=_0x3910x29|| {};var _0x3910x35=_0x3910x31|| {};return _0x3910x34[_0xbf2c[84]]({attributes:[_0xbf2c[83]]})[_0xbf2c[77]](function(_0x3910x36){_0x3910x33= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[83])})[_0xbf2c[77]](function(){return ChatQueue[_0xbf2c[82]](_0xbf2c[81])[_0xbf2c[76]](_[_0xbf2c[75]](getQuery(_0x3910x2b,{id:{$in:_0x3910x33}}),_0x3910x35))})}};var getMailQueuesIdByUser=function(_0x3910x29,_0x3910x31){return function(_0x3910x32){var _0x3910x33=[];var _0x3910x34=_0x3910x32;var _0x3910x2b=_0x3910x29|| {};var _0x3910x35=_0x3910x31|| {};return _0x3910x34[_0xbf2c[85]]({attributes:[_0xbf2c[83]]})[_0xbf2c[77]](function(_0x3910x36){_0x3910x33= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[83])})[_0xbf2c[77]](function(){return MailQueue[_0xbf2c[76]](_[_0xbf2c[75]](getQuery(_0x3910x2b,{id:{$in:_0x3910x33}}),_0x3910x35))})}};var getSmsQueuesIdByUser=function(_0x3910x29,_0x3910x31){return function(_0x3910x32){var _0x3910x33=[];var _0x3910x34=_0x3910x32;var _0x3910x2b=_0x3910x29|| {};var _0x3910x35=_0x3910x31|| {};return _0x3910x34[_0xbf2c[86]]({attributes:[_0xbf2c[83]]})[_0xbf2c[77]](function(_0x3910x36){_0x3910x33= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[83])})[_0xbf2c[77]](function(){return SmsQueue[_0xbf2c[76]](_[_0xbf2c[75]](getQuery(_0x3910x2b,{id:{$in:_0x3910x33}}),_0x3910x35))})}};var getFaxQueuesIdByUser=function(_0x3910x29,_0x3910x31){return function(_0x3910x32){var _0x3910x33=[];var _0x3910x34=_0x3910x32;var _0x3910x2b=_0x3910x29|| {};var _0x3910x35=_0x3910x31|| {};return _0x3910x34[_0xbf2c[87]]({attributes:[_0xbf2c[83]]})[_0xbf2c[77]](function(_0x3910x36){_0x3910x33= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[83])})[_0xbf2c[77]](function(){return FaxQueue[_0xbf2c[76]](_[_0xbf2c[75]](getQuery(_0x3910x2b,{id:{$in:_0x3910x33}}),_0x3910x35))})}};var getOpenchannelQueuesIdByUser=function(_0x3910x29,_0x3910x31){return function(_0x3910x32){var _0x3910x33=[];var _0x3910x34=_0x3910x32;var _0x3910x2b=_0x3910x29|| {};var _0x3910x35=_0x3910x31|| {};return _0x3910x34[_0xbf2c[88]]({attributes:[_0xbf2c[83]]})[_0xbf2c[77]](function(_0x3910x36){_0x3910x33= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[83])})[_0xbf2c[77]](function(){return OpenchannelQueue[_0xbf2c[76]](_[_0xbf2c[75]](getQuery(_0x3910x2b,{id:{$in:_0x3910x33}}),_0x3910x35))})}};var getAgentsIdByUser=function(_0x3910x29){return function(_0x3910x32){var _0x3910x3d=[];var _0x3910x34=_0x3910x32;var _0x3910x2b=_0x3910x29|| {};var _0x3910x3e=[],_0x3910x3f=[],_0x3910x40=[],_0x3910x41=[],_0x3910x42=[];return _0x3910x34[_0xbf2c[80]]({attributes:[_0xbf2c[78]],include:[{raw:true,model:User,attributes:[_0xbf2c[83]]}]})[_0xbf2c[77]](function(_0x3910x36){_0x3910x3e= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[78]);_0x3910x36[_0xbf2c[74]](function(_0x3910x43){_0x3910x3d= _[_0xbf2c[94]](_0x3910x3d,_[_0xbf2c[79]](_0x3910x43.Users,_0xbf2c[83]))})})[_0xbf2c[77]](function(){return _0x3910x34[_0xbf2c[84]]({attributes:[_0xbf2c[83]],include:[{raw:true,model:User,attributes:[_0xbf2c[83]]}]})})[_0xbf2c[77]](function(_0x3910x36){_0x3910x3f= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[83]);_0x3910x36[_0xbf2c[74]](function(_0x3910x43){_0x3910x3d= _[_0xbf2c[94]](_0x3910x3d,_[_0xbf2c[79]](_0x3910x43.Users,_0xbf2c[83]))})})[_0xbf2c[77]](function(){return _0x3910x34[_0xbf2c[85]]({attributes:[_0xbf2c[83]],include:[{raw:true,model:User,attributes:[_0xbf2c[83]]}]})})[_0xbf2c[77]](function(_0x3910x36){_0x3910x40= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[83]);_0x3910x36[_0xbf2c[74]](function(_0x3910x43){_0x3910x3d= _[_0xbf2c[94]](_0x3910x3d,_[_0xbf2c[79]](_0x3910x43.Users,_0xbf2c[83]))})})[_0xbf2c[77]](function(){return _0x3910x34[_0xbf2c[87]]({attributes:[_0xbf2c[83]],include:[{raw:true,model:User,attributes:[_0xbf2c[83]]}]})})[_0xbf2c[77]](function(_0x3910x36){_0x3910x41= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[83]);_0x3910x36[_0xbf2c[74]](function(_0x3910x43){_0x3910x3d= _[_0xbf2c[94]](_0x3910x3d,_[_0xbf2c[79]](_0x3910x43.Users,_0xbf2c[83]))})})[_0xbf2c[77]](function(){return _0x3910x34[_0xbf2c[86]]({attributes:[_0xbf2c[83]],include:[{raw:true,model:User,attributes:[_0xbf2c[83]]}]})})[_0xbf2c[77]](function(_0x3910x36){_0x3910x42= _[_0xbf2c[79]](_0x3910x36,_0xbf2c[83]);_0x3910x36[_0xbf2c[74]](function(_0x3910x43){_0x3910x3d= _[_0xbf2c[94]](_0x3910x3d,_[_0xbf2c[79]](_0x3910x43.Users,_0xbf2c[83]))})})[_0xbf2c[77]](function(){return User[_0xbf2c[82]](_0xbf2c[89],{method:[_0xbf2c[90],_0x3910x2b]},{method:[_0xbf2c[91],_0x3910x2b]},{method:[_0xbf2c[92],_0x3910x2b]},{method:[_0xbf2c[93],_0x3910x2b]})[_0xbf2c[76]](_[_0xbf2c[75]](getQuery(_0x3910x2b,{id:{$in:_0x3910x3d}}),{include:[{model:VoiceQueue,where:{name:{$in:_0x3910x3e}},required:false},{model:ChatQueue,where:{id:{$in:_0x3910x3f}},required:false},{model:MailQueue,where:{id:{$in:_0x3910x40}},required:false},{model:FaxQueue,where:{id:{$in:_0x3910x41}},required:false},{model:SmsQueue,where:{id:{$in:_0x3910x42}},required:false}]}))})}};var stripTrailingSlash=function(_0x3910x45){if(_0x3910x45[_0xbf2c[95]](-1) === _0xbf2c[96]){return _0x3910x45[_0xbf2c[95]](0,_0x3910x45[_0xbf2c[53]]- 1)};return _0x3910x45};var sendRequest=function(_0x3910x47,_0x3910x48,_0x3910x49){if(_0x3910x48== _0xbf2c[97]|| _0x3910x48== _0xbf2c[98]){var _0x3910x4a={method:_0x3910x48,uri:_0x3910x49,body:_0x3910x47,json:true};return request(_0x3910x4a)}else {console[_0xbf2c[39]](_0xbf2c[99])}};var execAction=function(_0x3910x4c,_0x3910x47){switch(_0x3910x4c[_0xbf2c[103]]){case _0xbf2c[107]:Action[_0xbf2c[106]]({name:_0x3910x4c[_0xbf2c[103]],data4:_0x3910x4c[_0xbf2c[71]]|| _0xbf2c[104]},{body:{name:_0x3910x4c[_0xbf2c[103]],agent:_0x3910x47[_0xbf2c[105]],type:_0x3910x4c[_0xbf2c[71]]|| _0xbf2c[104]}})[_0xbf2c[77]](function(){console[_0xbf2c[39]](_0xbf2c[102])})[_0xbf2c[101]](function(_0x3910x4d){console[_0xbf2c[39]](_0xbf2c[100],_0x3910x4d)});break;default:console[_0xbf2c[39]](_0xbf2c[108])}};module[_0xbf2c[109]]= {getQuery:getQuery,getVoiceQueuesIdByUser:getVoiceQueuesIdByUser,getChatQueuesIdByUser:getChatQueuesIdByUser,getMailQueuesIdByUser:getMailQueuesIdByUser,getFaxQueuesIdByUser:getFaxQueuesIdByUser,getAgentsIdByUser:getAgentsIdByUser,stripTrailingSlash:stripTrailingSlash,isValidInterval:isValidInterval,sendRequest:sendRequest,execAction:execAction,errorManager:require(_0xbf2c[110])}
\ No newline at end of file