1 var _0x5e25=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x46\x61\x78","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x53\x65\x73\x73\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73","\x69\x64","\x66\x69\x6E\x64","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x50\x50\x20\x41\x47\x45\x4E\x54\x2C\x20\x41\x47\x45\x4E\x54\x20\x49\x44\x3A","\x49\x4E\x54\x45\x52\x41\x43\x54\x49\x4F\x4E\x3A","\x75\x6E\x69\x71\x75\x65\x69\x64","\x45\x52\x52\x4F\x52","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x3A\x73\x61\x76\x65","\x65\x6D\x69\x74","\x61\x67\x65\x6E\x74\x3A\x25\x64","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x74\x6F","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x73\x65\x73\x73\x69\x6F\x6E\x3A\x73\x61\x76\x65","\x61\x64\x6D\x69\x6E\x73","\x75\x73\x65\x72\x73","\x45\x4E\x44\x20\x28\x4E\x4F\x20\x41\x4E\x53\x57\x45\x52\x20\x42\x59\x20\x41\x47\x45\x4E\x54\x29","\x69\x6E\x66\x6F","\x74\x68\x65\x6E","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x75\x70\x64\x61\x74\x65","\x74\x69\x6D\x65\x6F\x75\x74","\x54\x49\x4D\x45\x4F\x55\x54","\x53\x45\x43","\x61\x67\x65\x6E\x74","\x6E\x61\x6D\x65","\x6D\x65\x72\x67\x65","\x63\x72\x65\x61\x74\x65","\x53\x4B\x49\x50\x50\x45\x44\x20\x28\x41\x47\x45\x4E\x54\x20\x4E\x4F\x54\x20\x41\x56\x41\x49\x4C\x41\x42\x4C\x45\x29","\x55\x73\x65\x72\x49\x64"];_0x5e25[0];var _=require(_0x5e25[1]);var util=require(_0x5e25[2]);var moment=require(_0x5e25[3]);var Agent=require(_0x5e25[5])[_0x5e25[4]];var Room=require(_0x5e25[5])[_0x5e25[6]];var Report=require(_0x5e25[5])[_0x5e25[7]];var Session=require(_0x5e25[5])[_0x5e25[8]];module[_0x5e25[9]]= function(_0xfc5dx8,_0xfc5dx9,_0xfc5dxa,_0xfc5dxb,_0xfc5dxc){var _0xfc5dxd=[];var _0xfc5dxe;var _0xfc5dxf;function _0xfc5dx10(_0xfc5dx11){var _0xfc5dx12=_[_0x5e25[11]](_0xfc5dxd,{id:_0xfc5dx11[_0x5e25[10]]});return _0xfc5dx12?true:false}return Agent[_0x5e25[11]]({where:{id:_0xfc5dx8[_0x5e25[44]],online:true,faxPause:false},raw:true})[_0x5e25[33]](function(_0xfc5dx11){_0xfc5dxf= _0xfc5dx11;console[_0x5e25[32]](_0xfc5dx9[_0x5e25[13]][_0x5e25[12]](),_0x5e25[14],_0xfc5dx8.UserId,_0x5e25[15],_0xfc5dx9[_0x5e25[16]],_0x5e25[37],_0xfc5dx8[_0x5e25[36]],_0x5e25[38]);if(_0xfc5dx11){if(!_0xfc5dx10(_0xfc5dxf)){var _0xfc5dx14=_[_0x5e25[41]](_0xfc5dx9,{timeslot:_0xfc5dx8[_0x5e25[36]],application:_0x5e25[39],membername:_0xfc5dx11[_0x5e25[40]],memberid:_0xfc5dx11[_0x5e25[10]],calledAt:moment()[_0x5e25[24]](_0x5e25[34]),joinAt:moment()[_0x5e25[24]](_0x5e25[34])});return Session[_0x5e25[42]](_0xfc5dx14)[_0x5e25[33]](function(_0xfc5dx17){_0xfc5dxb[_0x5e25[25]](_0x5e25[29])[_0x5e25[21]](_0x5e25[28],_0xfc5dx17);_0xfc5dxb[_0x5e25[25]](_0x5e25[30])[_0x5e25[21]](_0x5e25[28],_0xfc5dx17);_0xfc5dxb[_0x5e25[25]](util[_0x5e25[24]](_0x5e25[22],_0xfc5dx17[_0x5e25[23]]))[_0x5e25[21]](_0x5e25[28],_0xfc5dx17);return Report[_0x5e25[42]](_0xfc5dx14,{raw:true})})}}else {console[_0x5e25[32]](_0xfc5dx9[_0x5e25[13]][_0x5e25[12]](),_0x5e25[14],_0xfc5dx8.UserId,_0x5e25[15],_0xfc5dx9[_0x5e25[16]],_0x5e25[43]);_0xfc5dxc()}})[_0x5e25[33]](function(_0xfc5dx14){if(_0xfc5dx14){_0xfc5dxb[_0x5e25[25]](util[_0x5e25[24]](_0x5e25[22],_0xfc5dx14[_0x5e25[23]]))[_0x5e25[21]](_0x5e25[20],_0xfc5dx14)};_0xfc5dxe= setTimeout(function(){return Session[_0x5e25[35]]({leaveAt:moment()[_0x5e25[24]](_0x5e25[34]),timeout:true},{where:{uniqueid:_0xfc5dx9[_0x5e25[16]],leaveAt:null},individualHooks:true})[_0x5e25[33]](function(_0xfc5dx15){if(_0xfc5dx15&& _0xfc5dx15[_0x5e25[26]]&& _0xfc5dx15[1][_0x5e25[26]]){for(var _0xfc5dx16=0;_0xfc5dx16< _0xfc5dx15[1][_0x5e25[26]];_0xfc5dx16++){var _0xfc5dx17=_0xfc5dx15[1][_0xfc5dx16][_0x5e25[27]]({plain:true});_0xfc5dxb[_0x5e25[25]](_0x5e25[29])[_0x5e25[21]](_0x5e25[28],_0xfc5dx17);_0xfc5dxb[_0x5e25[25]](_0x5e25[30])[_0x5e25[21]](_0x5e25[28],_0xfc5dx17);_0xfc5dxb[_0x5e25[25]](util[_0x5e25[24]](_0x5e25[22],_0xfc5dx17[_0x5e25[23]]))[_0x5e25[21]](_0x5e25[28],_0xfc5dx17)}};console[_0x5e25[32]](_0xfc5dx9[_0x5e25[13]][_0x5e25[12]](),_0x5e25[14],_0xfc5dx8.UserId,_0x5e25[15],_0xfc5dx9[_0x5e25[16]],_0x5e25[31]);clearTimeout(_0xfc5dxe);_0xfc5dxc()})},_0xfc5dx8[_0x5e25[36]]* 1000)})[_0x5e25[19]](function(_0xfc5dx13){console[_0x5e25[18]](_0xfc5dx9[_0x5e25[13]][_0x5e25[12]](),_0x5e25[14],_0xfc5dx8.UserId,_0x5e25[15],_0xfc5dx9[_0x5e25[16]],_0x5e25[17]);console[_0x5e25[18]](_0xfc5dx13);_0xfc5dxc(_0xfc5dx13)})}