1 var _0xf734=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\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"];_0xf734[0];var _=require(_0xf734[1]);var moment=require(_0xf734[2]);var FaxRoom=require(_0xf734[4])[_0xf734[3]];var FaxRoomStatus=require(_0xf734[4])[_0xf734[5]];var ReportFax=require(_0xf734[4])[_0xf734[6]];var sequelize=require(_0xf734[4])[_0xf734[7]];var Agent=require(_0xf734[4])[_0xf734[8]];var Util=require(_0xf734[9]);exports[_0xf734[10]]= function(_0xbe40x9,_0xbe40xa,_0xbe40xb){return ReportFax[_0xf734[17]](Util[_0xf734[16]](_0xbe40x9[_0xf734[15]]))[_0xf734[14]](function(_0xbe40xd){_0xbe40xa[_0xf734[13]](200)[_0xf734[12]](_0xbe40xd)})[_0xf734[11]](function(_0xbe40xc){return handleError(_0xbe40xa,_0xbe40xc)})};exports[_0xf734[18]]= function(_0xbe40x9,_0xbe40xa){var _0xbe40xe=_0xbe40x9[_0xf734[22]][_0xf734[21]][_0xf734[20]](_0xf734[19])[1];return ReportFax[_0xf734[31]](_0xbe40x9[_0xf734[22]][_0xf734[30]])[_0xf734[14]](function(_0xbe40xf){if(!_0xbe40xf){return _0xbe40xa[_0xf734[23]](404)};var _0xbe40x10=_[_0xf734[28]](_0xbe40xf,{connectid:_0xbe40x9[_0xf734[22]][_0xf734[21]]});return _0xbe40x10[_0xf734[29]]()})[_0xf734[14]](function(){return FaxRoom[_0xf734[27]]({status:_0xf734[24],openReason:_0xf734[25]},{where:{id:_0xbe40xe},user:_0xbe40x9[_0xf734[26]],individualHooks:true})})[_0xf734[14]](function(){return _0xbe40xa[_0xf734[23]](200)})[_0xf734[11]](sequelize.UniqueConstraintError,function(_0xbe40xc){return _0xbe40xa[_0xf734[23]](504)})[_0xf734[11]](function(_0xbe40xc){return handleError(_0xbe40xa,_0xbe40xc)})};exports[_0xf734[32]]= function(_0xbe40x9,_0xbe40xa){var _0xbe40x11;return ReportFax[_0xf734[31]](_0xbe40x9[_0xf734[22]][_0xf734[30]])[_0xf734[14]](function(_0xbe40x12){_0xbe40x11= _0xbe40x12;if(!_0xbe40x12){return _0xbe40xa[_0xf734[23]](404)};var _0xbe40x10=_[_0xf734[28]](_0xbe40x12,{rejectedAt:moment()[_0xf734[39]](_0xf734[38])});return _0xbe40x10[_0xf734[29]]()})[_0xf734[14]](function(){return FaxRoomStatus[_0xf734[37]]({status:_0xf734[33],data1:_0xbe40x9[_0xf734[26]][_0xf734[34]],data2:_0xbe40x9[_0xf734[26]][_0xf734[35]],UserId:_0xbe40x9[_0xf734[26]][_0xf734[30]],MailRoomId:_0xbe40x11[_0xf734[36]]})})[_0xf734[14]](function(){return _0xbe40xa[_0xf734[23]](200)})[_0xf734[11]](function(_0xbe40xc){return handleError(_0xbe40xa,_0xbe40xc)})};function handleError(_0xbe40xa,_0xbe40xc){return _0xbe40xa[_0xf734[13]](500)[_0xf734[12]](_0xbe40xc)}