1 var _0xd85d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x46\x61\x78\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x46\x61\x78\x52\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x52\x65\x70\x6F\x72\x74\x46\x61\x78","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x61\x63\x63\x65\x70\x74","\x2E","\x73\x70\x6C\x69\x74","\x75\x6E\x69\x71\x75\x65\x69\x64","\x70\x61\x72\x61\x6D\x73","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x4F\x50\x45\x4E","\x61\x67\x65\x6E\x74","\x75\x73\x65\x72","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x72\x65\x6A\x65\x63\x74","\x52\x45\x4A\x45\x43\x54","\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x72\x6F\x6F\x6D\x69\x64","\x63\x72\x65\x61\x74\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xd85d[0];var _=require(_0xd85d[1]);var moment=require(_0xd85d[2]);var logger=require(_0xd85d[4])(_0xd85d[3]);var FaxRoom=require(_0xd85d[6])[_0xd85d[5]];var FaxRoomStatus=require(_0xd85d[6])[_0xd85d[7]];var ReportFax=require(_0xd85d[6])[_0xd85d[8]];var sequelize=require(_0xd85d[6])[_0xd85d[9]];var Agent=require(_0xd85d[6])[_0xd85d[10]];var Util=require(_0xd85d[11]);exports[_0xd85d[12]]= function(_0x3e85xa,_0x3e85xb,_0x3e85xc){return ReportFax[_0xd85d[19]](Util[_0xd85d[18]](_0x3e85xa[_0xd85d[17]]))[_0xd85d[16]](function(_0x3e85xe){_0x3e85xb[_0xd85d[15]](200)[_0xd85d[14]](_0x3e85xe)})[_0xd85d[13]](function(_0x3e85xd){return handleError(_0x3e85xb,_0x3e85xd)})};exports[_0xd85d[20]]= function(_0x3e85xa,_0x3e85xb){var _0x3e85xf=_0x3e85xa[_0xd85d[24]][_0xd85d[23]][_0xd85d[22]](_0xd85d[21])[1];return ReportFax[_0xd85d[33]](_0x3e85xa[_0xd85d[24]][_0xd85d[32]])[_0xd85d[16]](function(_0x3e85x10){if(!_0x3e85x10){return _0x3e85xb[_0xd85d[25]](404)};var _0x3e85x11=_[_0xd85d[30]](_0x3e85x10,{connectid:_0x3e85xa[_0xd85d[24]][_0xd85d[23]]});return _0x3e85x11[_0xd85d[31]]()})[_0xd85d[16]](function(){return FaxRoom[_0xd85d[29]]({status:_0xd85d[26],openReason:_0xd85d[27]},{where:{id:_0x3e85xf},user:_0x3e85xa[_0xd85d[28]],individualHooks:true})})[_0xd85d[16]](function(){return _0x3e85xb[_0xd85d[25]](200)})[_0xd85d[13]](sequelize.UniqueConstraintError,function(_0x3e85xd){return _0x3e85xb[_0xd85d[25]](504)})[_0xd85d[13]](function(_0x3e85xd){return handleError(_0x3e85xb,_0x3e85xd)})};exports[_0xd85d[34]]= function(_0x3e85xa,_0x3e85xb){var _0x3e85x12;return ReportFax[_0xd85d[33]](_0x3e85xa[_0xd85d[24]][_0xd85d[32]])[_0xd85d[16]](function(_0x3e85x13){_0x3e85x12= _0x3e85x13;if(!_0x3e85x13){return _0x3e85xb[_0xd85d[25]](404)};var _0x3e85x11=_[_0xd85d[30]](_0x3e85x13,{rejectedAt:moment()[_0xd85d[41]](_0xd85d[40])});return _0x3e85x11[_0xd85d[31]]()})[_0xd85d[16]](function(){return FaxRoomStatus[_0xd85d[39]]({status:_0xd85d[35],data1:_0x3e85xa[_0xd85d[28]][_0xd85d[36]],data2:_0x3e85xa[_0xd85d[28]][_0xd85d[37]],UserId:_0x3e85xa[_0xd85d[28]][_0xd85d[32]],FaxRoomId:_0x3e85x12[_0xd85d[38]]})})[_0xd85d[16]](function(){return _0x3e85xb[_0xd85d[25]](200)})[_0xd85d[13]](function(_0x3e85xd){return handleError(_0x3e85xb,_0x3e85xd)})};function handleError(_0x3e85xb,_0x3e85xd){logger[_0xd85d[43]](_0x3e85xd[_0xd85d[42]]);return _0x3e85xb[_0xd85d[15]](500)[_0xd85d[14]](_0x3e85xd)}