Built motion from commit 82438f7.|0.0.115
[motion.git] / server / config / util / index.js
1 var _0xcb57=["\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"];_0xcb57[0];var _=require(_0xcb57[1]);var moment=require(_0xcb57[2]);var request=require(_0xcb57[3]);var User=require(_0xcb57[5])[_0xcb57[4]];var VoiceQueue=require(_0xcb57[5])[_0xcb57[6]];var ChatQueue=require(_0xcb57[5])[_0xcb57[7]];var MailQueue=require(_0xcb57[5])[_0xcb57[8]];var FaxQueue=require(_0xcb57[5])[_0xcb57[9]];var SmsQueue=require(_0xcb57[5])[_0xcb57[10]];var Action=require(_0xcb57[5])[_0xcb57[11]];var checkInterval=function(_0xc007xc){var _0xc007xd=[_0xcb57[12],_0xcb57[13],_0xcb57[14],_0xcb57[15],_0xcb57[16],_0xcb57[17],_0xcb57[18]];var _0xc007xe=[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 _0xc007xf=[_0xcb57[19],_0xcb57[20],_0xcb57[21],_0xcb57[22],_0xcb57[23],_0xcb57[24],_0xcb57[25],_0xcb57[26],_0xcb57[27],_0xcb57[28],_0xcb57[29],_0xcb57[30]];var _0xc007x10,_0xc007x11;var _0xc007x12=_0xc007xc[_0xcb57[32]](_0xcb57[31])[0];var _0xc007x13=_0xc007xc[_0xcb57[32]](_0xcb57[31])[1];var _0xc007x14=_0xc007xc[_0xcb57[32]](_0xcb57[31])[2];var _0xc007x15=_0xc007xc[_0xcb57[32]](_0xcb57[31])[3];if(_0xc007x12!== _0xcb57[33]){var _0xc007x16=moment()[_0xcb57[35]](_0xcb57[34]);var _0xc007x17=_0xc007x12[_0xcb57[32]](_0xcb57[36])[0];var _0xc007x18=_0xc007x12[_0xcb57[32]](_0xcb57[36])[1];if((_0xc007x16< _0xc007x17)|| (_0xc007x16> _0xc007x18)){console[_0xcb57[38]](_0xcb57[37]);return false}};if(_0xc007x13!== _0xcb57[33]){var _0xc007x19=_0xc007xd[moment()[_0xcb57[39]]()];var _0xc007x1a=_[_0xcb57[40]](_0xc007xd,_0xc007x13[_0xcb57[32]](_0xcb57[36])[0]);var _0xc007x1b=_[_0xcb57[40]](_0xc007xd,_0xc007x13[_0xcb57[32]](_0xcb57[36])[1]);for(_0xc007x10= 0;_0xc007x10< _0xc007x1a;_0xc007x10++){_0xc007x11= _0xc007xd[_0xcb57[41]]();_0xc007xd[_0xcb57[42]](_0xc007x11)};_0xc007x1a= _[_0xcb57[40]](_0xc007xd,_0xc007x13[_0xcb57[32]](_0xcb57[36])[0]);_0xc007x1b= _[_0xcb57[40]](_0xc007xd,_0xc007x13[_0xcb57[32]](_0xcb57[36])[1])+ 1;_0xc007xd= _0xc007xd[_0xcb57[43]](_0xc007x1a,_0xc007x1b);if(!_[_0xcb57[44]](_0xc007xd,_0xc007x19)){console[_0xcb57[38]](_0xcb57[45]);return false}};if(_0xc007x14!== _0xcb57[33]){var _0xc007x1c=moment()[_0xcb57[46]]();var _0xc007x1d=_[_0xcb57[40]](_0xc007xe,parseInt(_0xc007x14[_0xcb57[32]](_0xcb57[36])[0],10));var _0xc007x1e=_[_0xcb57[40]](_0xc007xe,parseInt(_0xc007x14[_0xcb57[32]](_0xcb57[36])[1]));for(_0xc007x10= 0;_0xc007x10< _0xc007x1d;_0xc007x10++){_0xc007x11= _0xc007xe[_0xcb57[41]]();_0xc007xe[_0xcb57[42]](_0xc007x11)};_0xc007x1d= _[_0xcb57[40]](_0xc007xe,parseInt(_0xc007x14[_0xcb57[32]](_0xcb57[36])[0],10));_0xc007x1e= _[_0xcb57[40]](_0xc007xe,parseInt(_0xc007x14[_0xcb57[32]](_0xcb57[36])[1]),10)+ 1;_0xc007xe= _0xc007xe[_0xcb57[43]](_0xc007x1d,_0xc007x1e);if(!_[_0xcb57[44]](_0xc007xe,_0xc007x1c)){console[_0xcb57[38]](_0xcb57[47]);return false}};if(_0xc007x15!== _0xcb57[33]){var _0xc007x1f=_0xc007xf[moment()[_0xcb57[48]]()];var _0xc007x20=_[_0xcb57[40]](_0xc007xf,_0xc007x15[_0xcb57[32]](_0xcb57[36])[0]);var _0xc007x21=_[_0xcb57[40]](_0xc007xf,_0xc007x15[_0xcb57[32]](_0xcb57[36])[1]);for(_0xc007x10= 0;_0xc007x10< _0xc007x20;_0xc007x10++){_0xc007x11= _0xc007xf[_0xcb57[41]]();_0xc007xf[_0xcb57[42]](_0xc007x11)};_0xc007x20= _[_0xcb57[40]](_0xc007xf,_0xc007x15[_0xcb57[32]](_0xcb57[36])[0]);_0xc007x21= _[_0xcb57[40]](_0xc007xf,_0xc007x15[_0xcb57[32]](_0xcb57[36])[1])+ 1;_0xc007xf= _0xc007xf[_0xcb57[43]](_0xc007x20,_0xc007x21);if(!_[_0xcb57[44]](_0xc007xf,_0xc007x1f)){console[_0xcb57[38]](_0xcb57[49]);return false}};console[_0xcb57[38]](_0xcb57[50]);return true};var isValidInterval=function(_0xc007xc){if(_[_0xcb57[51]](_0xc007xc)){for(var _0xc007x10=0;_0xc007x10< _0xc007xc[_0xcb57[53]][_0xcb57[52]];_0xc007x10++){if(!checkInterval(_0xc007xc[_0xcb57[53]][_0xc007x10][_0xcb57[54]])){return false}};return true}else {return checkInterval(_0xc007xc)}};var getDate=function(_0xc007x24,_0xc007x25){var _0xc007x26=_0xcb57[55];if(moment(_0xc007x24,_0xc007x26,true)[_0xcb57[56]]()){return moment(_0xc007x24)}else {switch(_0xc007x25){case _0xcb57[58]:return moment(_0xc007x24)[_0xcb57[57]](_0xcb57[39]);case _0xcb57[60]:return moment(_0xc007x24)[_0xcb57[59]](_0xcb57[39]);default:return moment(_0xc007x24)}}};var getQuery=function(_0xc007x28,_0xc007x29){var _0xc007x2a={where:{}};if(_0xc007x28){var _0xc007x2b,_0xc007x2c={};for(var _0xc007x2d in _0xc007x28){if(_[_0xcb57[44]](_0xc007x2d,_0xcb57[61])){_0xc007x2b= _0xc007x2d[_0xcb57[63]](_0xcb57[61],_0xcb57[62]);if(_0xc007x28[_0xc007x2b+ _0xcb57[64]]){_0xc007x2a[_0xcb57[66]][_0xcb57[65]]= _0xc007x2a[_0xcb57[66]][_0xcb57[65]]|| [];_0xc007x2c= {};_0xc007x2c[_0xc007x2b]= {$gte:getDate(_0xc007x28[_0xc007x2d],_0xcb57[58])};_0xc007x2a[_0xcb57[66]][_0xcb57[65]][_0xcb57[42]](_0xc007x2c);_0xc007x2c= {};_0xc007x2c[_0xc007x2b]= {$lte:getDate(_0xc007x28[_0xc007x2b+ _0xcb57[64]],_0xcb57[60])};_0xc007x2a[_0xcb57[66]][_0xcb57[65]][_0xcb57[42]](_0xc007x2c);delete _0xc007x28[_0xc007x2b+ _0xcb57[64]]}else {_0xc007x2a[_0xcb57[66]][_0xc007x2d[_0xcb57[63]](_0xcb57[61],_0xcb57[62])]= {$gte:getDate(_0xc007x28[_0xc007x2d],_0xcb57[58])}};delete _0xc007x28[_0xc007x2d]}else {if(_[_0xcb57[44]](_0xc007x2d,_0xcb57[64])){_0xc007x2b= _0xc007x2d[_0xcb57[63]](_0xcb57[64],_0xcb57[62]);if(_0xc007x28[_0xc007x2b+ _0xcb57[61]]){_0xc007x2a[_0xcb57[66]][_0xcb57[65]]= _0xc007x2a[_0xcb57[66]][_0xcb57[65]]|| [];_0xc007x2c= {};_0xc007x2c[_0xc007x2b]= {$lte:getDate(_0xc007x28[_0xc007x2d],_0xcb57[60])};_0xc007x2a[_0xcb57[66]][_0xcb57[65]][_0xcb57[42]](_0xc007x2c);_0xc007x2c[_0xc007x2b]= {$gte:getDate(_0xc007x28[_0xc007x2b+ _0xcb57[61]],_0xcb57[58])};_0xc007x2a[_0xcb57[66]][_0xcb57[65]][_0xcb57[42]](_0xc007x2c);delete _0xc007x28[_0xc007x2b+ _0xcb57[61]]}else {_0xc007x2a[_0xcb57[66]][_0xc007x2d[_0xcb57[63]](_0xcb57[64],_0xcb57[62])]= {$lte:getDate(_0xc007x28[_0xc007x2d],_0xcb57[60])}};delete _0xc007x28[_0xc007x2d]}}};_[_0xcb57[73]](_0xc007x28,function(_0xc007x2e,_0xc007x2d){switch(_0xc007x2d){case _0xcb57[67]:;case _0xcb57[68]:_0xc007x2a[_0xc007x2d]= Number(_0xc007x2e);break;case _0xcb57[69]:_0xc007x2a[_0xc007x2d]= _0xc007x2e;break;case _0xcb57[70]:;case _0xcb57[71]:_0xc007x2a[_0xcb57[66]][_0xc007x2d]= _0xc007x2e;break;default:_0xc007x2a[_0xcb57[66]][_0xc007x2d]= {$like:_0xcb57[72]+ _0xc007x2e+ _0xcb57[72]}}})};if(_0xc007x29){_[_0xcb57[74]](_0xc007x2a[_0xcb57[66]],_0xc007x29)};return _0xc007x2a};var getVoiceQueuesIdByUser=function(_0xc007x28,_0xc007x30){return function(_0xc007x31){var _0xc007x32=[];var _0xc007x33=_0xc007x31;var _0xc007x2a=_0xc007x28|| {};var _0xc007x34=_0xc007x30|| {};return _0xc007x33[_0xcb57[79]]({attributes:[_0xcb57[77]]})[_0xcb57[76]](function(_0xc007x35){_0xc007x32= _[_0xcb57[78]](_0xc007x35,_0xcb57[77])})[_0xcb57[76]](function(){return VoiceQueue[_0xcb57[75]](_[_0xcb57[74]](getQuery(_0xc007x28,{name:{$in:_0xc007x32}}),_0xc007x34))})}};var getChatQueuesIdByUser=function(_0xc007x28,_0xc007x30){return function(_0xc007x31){var _0xc007x32=[];var _0xc007x33=_0xc007x31;var _0xc007x2a=_0xc007x28|| {};var _0xc007x34=_0xc007x30|| {};return _0xc007x33[_0xcb57[83]]({attributes:[_0xcb57[82]]})[_0xcb57[76]](function(_0xc007x35){_0xc007x32= _[_0xcb57[78]](_0xc007x35,_0xcb57[82])})[_0xcb57[76]](function(){return ChatQueue[_0xcb57[81]](_0xcb57[80])[_0xcb57[75]](_[_0xcb57[74]](getQuery(_0xc007x2a,{id:{$in:_0xc007x32}}),_0xc007x34))})}};var getMailQueuesIdByUser=function(_0xc007x28,_0xc007x30){return function(_0xc007x31){var _0xc007x32=[];var _0xc007x33=_0xc007x31;var _0xc007x2a=_0xc007x28|| {};var _0xc007x34=_0xc007x30|| {};return _0xc007x33[_0xcb57[84]]({attributes:[_0xcb57[82]]})[_0xcb57[76]](function(_0xc007x35){_0xc007x32= _[_0xcb57[78]](_0xc007x35,_0xcb57[82])})[_0xcb57[76]](function(){return MailQueue[_0xcb57[75]](_[_0xcb57[74]](getQuery(_0xc007x2a,{id:{$in:_0xc007x32}}),_0xc007x34))})}};var getSmsQueuesIdByUser=function(_0xc007x28,_0xc007x30){return function(_0xc007x31){var _0xc007x32=[];var _0xc007x33=_0xc007x31;var _0xc007x2a=_0xc007x28|| {};var _0xc007x34=_0xc007x30|| {};return _0xc007x33[_0xcb57[85]]({attributes:[_0xcb57[82]]})[_0xcb57[76]](function(_0xc007x35){_0xc007x32= _[_0xcb57[78]](_0xc007x35,_0xcb57[82])})[_0xcb57[76]](function(){return SmsQueue[_0xcb57[75]](_[_0xcb57[74]](getQuery(_0xc007x2a,{id:{$in:_0xc007x32}}),_0xc007x34))})}};var getFaxQueuesIdByUser=function(_0xc007x28,_0xc007x30){return function(_0xc007x31){var _0xc007x32=[];var _0xc007x33=_0xc007x31;var _0xc007x2a=_0xc007x28|| {};var _0xc007x34=_0xc007x30|| {};return _0xc007x33[_0xcb57[86]]({attributes:[_0xcb57[82]]})[_0xcb57[76]](function(_0xc007x35){_0xc007x32= _[_0xcb57[78]](_0xc007x35,_0xcb57[82])})[_0xcb57[76]](function(){return FaxQueue[_0xcb57[75]](_[_0xcb57[74]](getQuery(_0xc007x2a,{id:{$in:_0xc007x32}}),_0xc007x34))})}};var getAgentsIdByUser=function(_0xc007x28){return function(_0xc007x31){var _0xc007x3b=[];var _0xc007x33=_0xc007x31;var _0xc007x2a=_0xc007x28|| {};var _0xc007x3c=[],_0xc007x3d=[],_0xc007x3e=[],_0xc007x3f=[],_0xc007x40=[];return _0xc007x33[_0xcb57[79]]({attributes:[_0xcb57[77]],include:[{raw:true,model:User,attributes:[_0xcb57[82]]}]})[_0xcb57[76]](function(_0xc007x35){_0xc007x3c= _[_0xcb57[78]](_0xc007x35,_0xcb57[77]);_0xc007x35[_0xcb57[73]](function(_0xc007x41){_0xc007x3b= _[_0xcb57[92]](_0xc007x3b,_[_0xcb57[78]](_0xc007x41.Users,_0xcb57[82]))})})[_0xcb57[76]](function(){return _0xc007x33[_0xcb57[83]]({attributes:[_0xcb57[82]],include:[{raw:true,model:User,attributes:[_0xcb57[82]]}]})})[_0xcb57[76]](function(_0xc007x35){_0xc007x3d= _[_0xcb57[78]](_0xc007x35,_0xcb57[82]);_0xc007x35[_0xcb57[73]](function(_0xc007x41){_0xc007x3b= _[_0xcb57[92]](_0xc007x3b,_[_0xcb57[78]](_0xc007x41.Users,_0xcb57[82]))})})[_0xcb57[76]](function(){return _0xc007x33[_0xcb57[84]]({attributes:[_0xcb57[82]],include:[{raw:true,model:User,attributes:[_0xcb57[82]]}]})})[_0xcb57[76]](function(_0xc007x35){_0xc007x3e= _[_0xcb57[78]](_0xc007x35,_0xcb57[82]);_0xc007x35[_0xcb57[73]](function(_0xc007x41){_0xc007x3b= _[_0xcb57[92]](_0xc007x3b,_[_0xcb57[78]](_0xc007x41.Users,_0xcb57[82]))})})[_0xcb57[76]](function(){return _0xc007x33[_0xcb57[86]]({attributes:[_0xcb57[82]],include:[{raw:true,model:User,attributes:[_0xcb57[82]]}]})})[_0xcb57[76]](function(_0xc007x35){_0xc007x3f= _[_0xcb57[78]](_0xc007x35,_0xcb57[82]);_0xc007x35[_0xcb57[73]](function(_0xc007x41){_0xc007x3b= _[_0xcb57[92]](_0xc007x3b,_[_0xcb57[78]](_0xc007x41.Users,_0xcb57[82]))})})[_0xcb57[76]](function(){return _0xc007x33[_0xcb57[85]]({attributes:[_0xcb57[82]],include:[{raw:true,model:User,attributes:[_0xcb57[82]]}]})})[_0xcb57[76]](function(_0xc007x35){_0xc007x40= _[_0xcb57[78]](_0xc007x35,_0xcb57[82]);_0xc007x35[_0xcb57[73]](function(_0xc007x41){_0xc007x3b= _[_0xcb57[92]](_0xc007x3b,_[_0xcb57[78]](_0xc007x41.Users,_0xcb57[82]))})})[_0xcb57[76]](function(){return User[_0xcb57[81]](_0xcb57[87],{method:[_0xcb57[88],_0xc007x2a]},{method:[_0xcb57[89],_0xc007x2a]},{method:[_0xcb57[90],_0xc007x2a]},{method:[_0xcb57[91],_0xc007x2a]})[_0xcb57[75]](_[_0xcb57[74]](getQuery(_0xc007x2a,{id:{$in:_0xc007x3b}}),{include:[{model:VoiceQueue,where:{name:{$in:_0xc007x3c}},required:false},{model:ChatQueue,where:{id:{$in:_0xc007x3d}},required:false},{model:MailQueue,where:{id:{$in:_0xc007x3e}},required:false},{model:FaxQueue,where:{id:{$in:_0xc007x3f}},required:false},{model:SmsQueue,where:{id:{$in:_0xc007x40}},required:false}]}))})}};var stripTrailingSlash=function(_0xc007x43){if(_0xc007x43[_0xcb57[93]](-1) === _0xcb57[94]){return _0xc007x43[_0xcb57[93]](0,_0xc007x43[_0xcb57[52]]- 1)};return _0xc007x43};var sendRequest=function(_0xc007x45,_0xc007x46,_0xc007x47){if(_0xc007x46== _0xcb57[95]|| _0xc007x46== _0xcb57[96]){var _0xc007x48={method:_0xc007x46,uri:_0xc007x47,body:_0xc007x45,json:true};return request(_0xc007x48)}else {console[_0xcb57[38]](_0xcb57[97])}};var execAction=function(_0xc007x4a,_0xc007x45){switch(_0xc007x4a[_0xcb57[101]]){case _0xcb57[105]:Action[_0xcb57[104]]({name:_0xc007x4a[_0xcb57[101]],data4:_0xc007x4a[_0xcb57[70]]|| _0xcb57[102]},{body:{name:_0xc007x4a[_0xcb57[101]],agent:_0xc007x45[_0xcb57[103]],type:_0xc007x4a[_0xcb57[70]]|| _0xcb57[102]}})[_0xcb57[76]](function(){console[_0xcb57[38]](_0xcb57[100])})[_0xcb57[99]](function(_0xc007x4b){console[_0xcb57[38]](_0xcb57[98],_0xc007x4b)});break;default:console[_0xcb57[38]](_0xcb57[106])}};module[_0xcb57[107]]= {getQuery:getQuery,getVoiceQueuesIdByUser:getVoiceQueuesIdByUser,getChatQueuesIdByUser:getChatQueuesIdByUser,getMailQueuesIdByUser:getMailQueuesIdByUser,getFaxQueuesIdByUser:getFaxQueuesIdByUser,getAgentsIdByUser:getAgentsIdByUser,stripTrailingSlash:stripTrailingSlash,isValidInterval:isValidInterval,sendRequest:sendRequest,execAction:execAction,errorManager:require(_0xcb57[108])}