1 var _0x8974=["\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"];_0x8974[0];var _=require(_0x8974[1]);var moment=require(_0x8974[2]);var request=require(_0x8974[3]);var User=require(_0x8974[5])[_0x8974[4]];var VoiceQueue=require(_0x8974[5])[_0x8974[6]];var ChatQueue=require(_0x8974[5])[_0x8974[7]];var MailQueue=require(_0x8974[5])[_0x8974[8]];var FaxQueue=require(_0x8974[5])[_0x8974[9]];var SmsQueue=require(_0x8974[5])[_0x8974[10]];var OpenchannelQueue=require(_0x8974[5])[_0x8974[11]];var Action=require(_0x8974[5])[_0x8974[12]];var checkInterval=function(_0xd803xd){var _0xd803xe=[_0x8974[13],_0x8974[14],_0x8974[15],_0x8974[16],_0x8974[17],_0x8974[18],_0x8974[19]];var _0xd803xf=[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 _0xd803x10=[_0x8974[20],_0x8974[21],_0x8974[22],_0x8974[23],_0x8974[24],_0x8974[25],_0x8974[26],_0x8974[27],_0x8974[28],_0x8974[29],_0x8974[30],_0x8974[31]];var _0xd803x11,_0xd803x12;var _0xd803x13=_0xd803xd[_0x8974[33]](_0x8974[32])[0];var _0xd803x14=_0xd803xd[_0x8974[33]](_0x8974[32])[1];var _0xd803x15=_0xd803xd[_0x8974[33]](_0x8974[32])[2];var _0xd803x16=_0xd803xd[_0x8974[33]](_0x8974[32])[3];if(_0xd803x13!== _0x8974[34]){var _0xd803x17=moment()[_0x8974[36]](_0x8974[35]);var _0xd803x18=_0xd803x13[_0x8974[33]](_0x8974[37])[0];var _0xd803x19=_0xd803x13[_0x8974[33]](_0x8974[37])[1];if((_0xd803x17< _0xd803x18)|| (_0xd803x17> _0xd803x19)){console[_0x8974[39]](_0x8974[38]);return false}};if(_0xd803x14!== _0x8974[34]){var _0xd803x1a=_0xd803xe[moment()[_0x8974[40]]()];var _0xd803x1b=_[_0x8974[41]](_0xd803xe,_0xd803x14[_0x8974[33]](_0x8974[37])[0]);var _0xd803x1c=_[_0x8974[41]](_0xd803xe,_0xd803x14[_0x8974[33]](_0x8974[37])[1]);for(_0xd803x11= 0;_0xd803x11< _0xd803x1b;_0xd803x11++){_0xd803x12= _0xd803xe[_0x8974[42]]();_0xd803xe[_0x8974[43]](_0xd803x12)};_0xd803x1b= _[_0x8974[41]](_0xd803xe,_0xd803x14[_0x8974[33]](_0x8974[37])[0]);_0xd803x1c= _[_0x8974[41]](_0xd803xe,_0xd803x14[_0x8974[33]](_0x8974[37])[1])+ 1;_0xd803xe= _0xd803xe[_0x8974[44]](_0xd803x1b,_0xd803x1c);if(!_[_0x8974[45]](_0xd803xe,_0xd803x1a)){console[_0x8974[39]](_0x8974[46]);return false}};if(_0xd803x15!== _0x8974[34]){var _0xd803x1d=moment()[_0x8974[47]]();var _0xd803x1e=_[_0x8974[41]](_0xd803xf,parseInt(_0xd803x15[_0x8974[33]](_0x8974[37])[0],10));var _0xd803x1f=_[_0x8974[41]](_0xd803xf,parseInt(_0xd803x15[_0x8974[33]](_0x8974[37])[1]));for(_0xd803x11= 0;_0xd803x11< _0xd803x1e;_0xd803x11++){_0xd803x12= _0xd803xf[_0x8974[42]]();_0xd803xf[_0x8974[43]](_0xd803x12)};_0xd803x1e= _[_0x8974[41]](_0xd803xf,parseInt(_0xd803x15[_0x8974[33]](_0x8974[37])[0],10));_0xd803x1f= _[_0x8974[41]](_0xd803xf,parseInt(_0xd803x15[_0x8974[33]](_0x8974[37])[1]),10)+ 1;_0xd803xf= _0xd803xf[_0x8974[44]](_0xd803x1e,_0xd803x1f);if(!_[_0x8974[45]](_0xd803xf,_0xd803x1d)){console[_0x8974[39]](_0x8974[48]);return false}};if(_0xd803x16!== _0x8974[34]){var _0xd803x20=_0xd803x10[moment()[_0x8974[49]]()];var _0xd803x21=_[_0x8974[41]](_0xd803x10,_0xd803x16[_0x8974[33]](_0x8974[37])[0]);var _0xd803x22=_[_0x8974[41]](_0xd803x10,_0xd803x16[_0x8974[33]](_0x8974[37])[1]);for(_0xd803x11= 0;_0xd803x11< _0xd803x21;_0xd803x11++){_0xd803x12= _0xd803x10[_0x8974[42]]();_0xd803x10[_0x8974[43]](_0xd803x12)};_0xd803x21= _[_0x8974[41]](_0xd803x10,_0xd803x16[_0x8974[33]](_0x8974[37])[0]);_0xd803x22= _[_0x8974[41]](_0xd803x10,_0xd803x16[_0x8974[33]](_0x8974[37])[1])+ 1;_0xd803x10= _0xd803x10[_0x8974[44]](_0xd803x21,_0xd803x22);if(!_[_0x8974[45]](_0xd803x10,_0xd803x20)){console[_0x8974[39]](_0x8974[50]);return false}};console[_0x8974[39]](_0x8974[51]);return true};var isValidInterval=function(_0xd803xd){if(_[_0x8974[52]](_0xd803xd)){for(var _0xd803x11=0;_0xd803x11< _0xd803xd[_0x8974[54]][_0x8974[53]];_0xd803x11++){if(!checkInterval(_0xd803xd[_0x8974[54]][_0xd803x11][_0x8974[55]])){return false}};return true}else {return checkInterval(_0xd803xd)}};var getDate=function(_0xd803x25,_0xd803x26){var _0xd803x27=_0x8974[56];if(moment(_0xd803x25,_0xd803x27,true)[_0x8974[57]]()){return moment(_0xd803x25)}else {switch(_0xd803x26){case _0x8974[59]:return moment(_0xd803x25)[_0x8974[58]](_0x8974[40]);case _0x8974[61]:return moment(_0xd803x25)[_0x8974[60]](_0x8974[40]);default:return moment(_0xd803x25)}}};var getQuery=function(_0xd803x29,_0xd803x2a){var _0xd803x2b={where:{}};if(_0xd803x29){var _0xd803x2c,_0xd803x2d={};for(var _0xd803x2e in _0xd803x29){if(_[_0x8974[45]](_0xd803x2e,_0x8974[62])){_0xd803x2c= _0xd803x2e[_0x8974[64]](_0x8974[62],_0x8974[63]);if(_0xd803x29[_0xd803x2c+ _0x8974[65]]){_0xd803x2b[_0x8974[67]][_0x8974[66]]= _0xd803x2b[_0x8974[67]][_0x8974[66]]|| [];_0xd803x2d= {};_0xd803x2d[_0xd803x2c]= {$gte:getDate(_0xd803x29[_0xd803x2e],_0x8974[59])};_0xd803x2b[_0x8974[67]][_0x8974[66]][_0x8974[43]](_0xd803x2d);_0xd803x2d= {};_0xd803x2d[_0xd803x2c]= {$lte:getDate(_0xd803x29[_0xd803x2c+ _0x8974[65]],_0x8974[61])};_0xd803x2b[_0x8974[67]][_0x8974[66]][_0x8974[43]](_0xd803x2d);delete _0xd803x29[_0xd803x2c+ _0x8974[65]]}else {_0xd803x2b[_0x8974[67]][_0xd803x2e[_0x8974[64]](_0x8974[62],_0x8974[63])]= {$gte:getDate(_0xd803x29[_0xd803x2e],_0x8974[59])}};delete _0xd803x29[_0xd803x2e]}else {if(_[_0x8974[45]](_0xd803x2e,_0x8974[65])){_0xd803x2c= _0xd803x2e[_0x8974[64]](_0x8974[65],_0x8974[63]);if(_0xd803x29[_0xd803x2c+ _0x8974[62]]){_0xd803x2b[_0x8974[67]][_0x8974[66]]= _0xd803x2b[_0x8974[67]][_0x8974[66]]|| [];_0xd803x2d= {};_0xd803x2d[_0xd803x2c]= {$lte:getDate(_0xd803x29[_0xd803x2e],_0x8974[61])};_0xd803x2b[_0x8974[67]][_0x8974[66]][_0x8974[43]](_0xd803x2d);_0xd803x2d[_0xd803x2c]= {$gte:getDate(_0xd803x29[_0xd803x2c+ _0x8974[62]],_0x8974[59])};_0xd803x2b[_0x8974[67]][_0x8974[66]][_0x8974[43]](_0xd803x2d);delete _0xd803x29[_0xd803x2c+ _0x8974[62]]}else {_0xd803x2b[_0x8974[67]][_0xd803x2e[_0x8974[64]](_0x8974[65],_0x8974[63])]= {$lte:getDate(_0xd803x29[_0xd803x2e],_0x8974[61])}};delete _0xd803x29[_0xd803x2e]}}};_[_0x8974[74]](_0xd803x29,function(_0xd803x2f,_0xd803x2e){switch(_0xd803x2e){case _0x8974[68]:;case _0x8974[69]:_0xd803x2b[_0xd803x2e]= Number(_0xd803x2f);break;case _0x8974[70]:_0xd803x2b[_0xd803x2e]= _0xd803x2f;break;case _0x8974[71]:;case _0x8974[72]:_0xd803x2b[_0x8974[67]][_0xd803x2e]= _0xd803x2f;break;default:_0xd803x2b[_0x8974[67]][_0xd803x2e]= {$like:_0x8974[73]+ _0xd803x2f+ _0x8974[73]}}})};if(_0xd803x2a){_[_0x8974[75]](_0xd803x2b[_0x8974[67]],_0xd803x2a)};return _0xd803x2b};var getVoiceQueuesIdByUser=function(_0xd803x29,_0xd803x31){return function(_0xd803x32){var _0xd803x33=[];var _0xd803x34=_0xd803x32;var _0xd803x2b=_0xd803x29|| {};var _0xd803x35=_0xd803x31|| {};return _0xd803x34[_0x8974[80]]({attributes:[_0x8974[78]]})[_0x8974[77]](function(_0xd803x36){_0xd803x33= _[_0x8974[79]](_0xd803x36,_0x8974[78])})[_0x8974[77]](function(){return VoiceQueue[_0x8974[76]](_[_0x8974[75]](getQuery(_0xd803x29,{name:{$in:_0xd803x33}}),_0xd803x35))})}};var getChatQueuesIdByUser=function(_0xd803x29,_0xd803x31){return function(_0xd803x32){var _0xd803x33=[];var _0xd803x34=_0xd803x32;var _0xd803x2b=_0xd803x29|| {};var _0xd803x35=_[_0x8974[75]](_0xd803x31|| {},{distinct:true});return _0xd803x34[_0x8974[84]]({attributes:[_0x8974[83]]})[_0x8974[77]](function(_0xd803x36){_0xd803x33= _[_0x8974[79]](_0xd803x36,_0x8974[83])})[_0x8974[77]](function(){return ChatQueue[_0x8974[82]](_0x8974[81])[_0x8974[76]](_[_0x8974[75]](getQuery(_0xd803x2b,{id:{$in:_0xd803x33}}),_0xd803x35))})}};var getMailQueuesIdByUser=function(_0xd803x29,_0xd803x31){return function(_0xd803x32){var _0xd803x33=[];var _0xd803x34=_0xd803x32;var _0xd803x2b=_0xd803x29|| {};var _0xd803x35=_[_0x8974[75]](_0xd803x31|| {},{distinct:true});return _0xd803x34[_0x8974[85]]({attributes:[_0x8974[83]]})[_0x8974[77]](function(_0xd803x36){_0xd803x33= _[_0x8974[79]](_0xd803x36,_0x8974[83])})[_0x8974[77]](function(){return MailQueue[_0x8974[82]](_0x8974[81])[_0x8974[76]](_[_0x8974[75]](getQuery(_0xd803x2b,{id:{$in:_0xd803x33}}),_0xd803x35))})}};var getSmsQueuesIdByUser=function(_0xd803x29,_0xd803x31){return function(_0xd803x32){var _0xd803x33=[];var _0xd803x34=_0xd803x32;var _0xd803x2b=_0xd803x29|| {};var _0xd803x35=_[_0x8974[75]](_0xd803x31|| {},{distinct:true});return _0xd803x34[_0x8974[86]]({attributes:[_0x8974[83]]})[_0x8974[77]](function(_0xd803x36){_0xd803x33= _[_0x8974[79]](_0xd803x36,_0x8974[83])})[_0x8974[77]](function(){return SmsQueue[_0x8974[82]](_0x8974[81])[_0x8974[76]](_[_0x8974[75]](getQuery(_0xd803x2b,{id:{$in:_0xd803x33}}),_0xd803x35))})}};var getFaxQueuesIdByUser=function(_0xd803x29,_0xd803x31){return function(_0xd803x32){var _0xd803x33=[];var _0xd803x34=_0xd803x32;var _0xd803x2b=_0xd803x29|| {};var _0xd803x35=_[_0x8974[75]](_0xd803x31|| {},{distinct:true});return _0xd803x34[_0x8974[87]]({attributes:[_0x8974[83]]})[_0x8974[77]](function(_0xd803x36){_0xd803x33= _[_0x8974[79]](_0xd803x36,_0x8974[83])})[_0x8974[77]](function(){return FaxQueue[_0x8974[82]](_0x8974[81])[_0x8974[76]](_[_0x8974[75]](getQuery(_0xd803x2b,{id:{$in:_0xd803x33}}),_0xd803x35))})}};var getOpenchannelQueuesIdByUser=function(_0xd803x29,_0xd803x31){return function(_0xd803x32){var _0xd803x33=[];var _0xd803x34=_0xd803x32;var _0xd803x2b=_0xd803x29|| {};var _0xd803x35=_[_0x8974[75]](_0xd803x31|| {},{distinct:true});return _0xd803x34[_0x8974[88]]({attributes:[_0x8974[83]]})[_0x8974[77]](function(_0xd803x36){_0xd803x33= _[_0x8974[79]](_0xd803x36,_0x8974[83])})[_0x8974[77]](function(){return OpenchannelQueue[_0x8974[82]](_0x8974[81])[_0x8974[76]](_[_0x8974[75]](getQuery(_0xd803x2b,{id:{$in:_0xd803x33}}),_0xd803x35))})}};var getAgentsIdByUser=function(_0xd803x29){return function(_0xd803x32){var _0xd803x3d=[];var _0xd803x34=_0xd803x32;var _0xd803x2b=_0xd803x29|| {};var _0xd803x3e=[],_0xd803x3f=[],_0xd803x40=[],_0xd803x41=[],_0xd803x42=[],_0xd803x43=[];return _0xd803x34[_0x8974[80]]({attributes:[_0x8974[78]],include:[{raw:true,model:User,attributes:[_0x8974[83]]}]})[_0x8974[77]](function(_0xd803x36){_0xd803x3e= _[_0x8974[79]](_0xd803x36,_0x8974[78]);_0xd803x36[_0x8974[74]](function(_0xd803x44){_0xd803x3d= _[_0x8974[94]](_0xd803x3d,_[_0x8974[79]](_0xd803x44.Users,_0x8974[83]))})})[_0x8974[77]](function(){return _0xd803x34[_0x8974[84]]({attributes:[_0x8974[83]],include:[{raw:true,model:User,attributes:[_0x8974[83]]}]})})[_0x8974[77]](function(_0xd803x36){_0xd803x3f= _[_0x8974[79]](_0xd803x36,_0x8974[83]);_0xd803x36[_0x8974[74]](function(_0xd803x44){_0xd803x3d= _[_0x8974[94]](_0xd803x3d,_[_0x8974[79]](_0xd803x44.Users,_0x8974[83]))})})[_0x8974[77]](function(){return _0xd803x34[_0x8974[85]]({attributes:[_0x8974[83]],include:[{raw:true,model:User,attributes:[_0x8974[83]]}]})})[_0x8974[77]](function(_0xd803x36){_0xd803x40= _[_0x8974[79]](_0xd803x36,_0x8974[83]);_0xd803x36[_0x8974[74]](function(_0xd803x44){_0xd803x3d= _[_0x8974[94]](_0xd803x3d,_[_0x8974[79]](_0xd803x44.Users,_0x8974[83]))})})[_0x8974[77]](function(){return _0xd803x34[_0x8974[87]]({attributes:[_0x8974[83]],include:[{raw:true,model:User,attributes:[_0x8974[83]]}]})})[_0x8974[77]](function(_0xd803x36){_0xd803x41= _[_0x8974[79]](_0xd803x36,_0x8974[83]);_0xd803x36[_0x8974[74]](function(_0xd803x44){_0xd803x3d= _[_0x8974[94]](_0xd803x3d,_[_0x8974[79]](_0xd803x44.Users,_0x8974[83]))})})[_0x8974[77]](function(){return _0xd803x34[_0x8974[86]]({attributes:[_0x8974[83]],include:[{raw:true,model:User,attributes:[_0x8974[83]]}]})})[_0x8974[77]](function(_0xd803x36){_0xd803x43= _[_0x8974[79]](_0xd803x36,_0x8974[83]);_0xd803x36[_0x8974[74]](function(_0xd803x44){_0xd803x3d= _[_0x8974[94]](_0xd803x3d,_[_0x8974[79]](_0xd803x44.Users,_0x8974[83]))})})[_0x8974[77]](function(){return _0xd803x34[_0x8974[88]]({attributes:[_0x8974[83]],include:[{raw:true,model:User,attributes:[_0x8974[83]]}]})})[_0x8974[77]](function(_0xd803x36){_0xd803x42= _[_0x8974[79]](_0xd803x36,_0x8974[83]);_0xd803x36[_0x8974[74]](function(_0xd803x44){_0xd803x3d= _[_0x8974[94]](_0xd803x3d,_[_0x8974[79]](_0xd803x44.Users,_0x8974[83]))})})[_0x8974[77]](function(){return User[_0x8974[82]](_0x8974[89],{method:[_0x8974[90],_0xd803x2b]},{method:[_0x8974[91],_0xd803x2b]},{method:[_0x8974[92],_0xd803x2b]},{method:[_0x8974[93],_0xd803x2b]})[_0x8974[76]](_[_0x8974[75]](getQuery(_0xd803x2b,{id:{$in:_0xd803x3d}}),{include:[{model:VoiceQueue,where:{name:{$in:_0xd803x3e}},required:false},{model:ChatQueue,where:{id:{$in:_0xd803x3f}},required:false},{model:MailQueue,where:{id:{$in:_0xd803x40}},required:false},{model:FaxQueue,where:{id:{$in:_0xd803x41}},required:false},{model:SmsQueue,where:{id:{$in:_0xd803x43}},required:false},{model:OpenchannelQueue,where:{id:{$in:_0xd803x42}},required:false}]}))})}};var stripTrailingSlash=function(_0xd803x46){if(_0xd803x46[_0x8974[95]](-1) === _0x8974[96]){return _0xd803x46[_0x8974[95]](0,_0xd803x46[_0x8974[53]]- 1)};return _0xd803x46};var sendRequest=function(_0xd803x48,_0xd803x49,_0xd803x4a){if(_0xd803x49== _0x8974[97]|| _0xd803x49== _0x8974[98]){var _0xd803x4b={method:_0xd803x49,uri:_0xd803x4a,body:_0xd803x48,json:true};return request(_0xd803x4b)}else {console[_0x8974[39]](_0x8974[99])}};var execAction=function(_0xd803x4d,_0xd803x48){switch(_0xd803x4d[_0x8974[103]]){case _0x8974[107]:Action[_0x8974[106]]({name:_0xd803x4d[_0x8974[103]],data4:_0xd803x4d[_0x8974[71]]|| _0x8974[104]},{body:{name:_0xd803x4d[_0x8974[103]],agent:_0xd803x48[_0x8974[105]],type:_0xd803x4d[_0x8974[71]]|| _0x8974[104]}})[_0x8974[77]](function(){console[_0x8974[39]](_0x8974[102])})[_0x8974[101]](function(_0xd803x4e){console[_0x8974[39]](_0x8974[100],_0xd803x4e)});break;default:console[_0x8974[39]](_0x8974[108])}};module[_0x8974[109]]= {getQuery:getQuery,getVoiceQueuesIdByUser:getVoiceQueuesIdByUser,getChatQueuesIdByUser:getChatQueuesIdByUser,getMailQueuesIdByUser:getMailQueuesIdByUser,getFaxQueuesIdByUser:getFaxQueuesIdByUser,getSmsQueuesIdByUser:getSmsQueuesIdByUser,getOpenchannelQueuesIdByUser:getOpenchannelQueuesIdByUser,getAgentsIdByUser:getAgentsIdByUser,stripTrailingSlash:stripTrailingSlash,isValidInterval:isValidInterval,sendRequest:sendRequest,execAction:execAction,errorManager:require(_0x8974[110])}