1 var _0x6afa=["\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","\x43\x4C\x4F\x53\x45\x44","\x67\x65\x74\x46\x61\x78\x52\x6F\x6F\x6D\x73","\x66\x61\x78\x43\x61\x70\x61\x63\x69\x74\x79","\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"];_0x6afa[0];var _=require(_0x6afa[1]);var moment=require(_0x6afa[2]);var FaxRoom=require(_0x6afa[4])[_0x6afa[3]];var FaxRoomStatus=require(_0x6afa[4])[_0x6afa[5]];var ReportFax=require(_0x6afa[4])[_0x6afa[6]];var sequelize=require(_0x6afa[4])[_0x6afa[7]];var Agent=require(_0x6afa[4])[_0x6afa[8]];var Util=require(_0x6afa[9]);exports[_0x6afa[10]]= function(_0xf6f6x9,_0xf6f6xa,_0xf6f6xb){return ReportFax[_0x6afa[17]](Util[_0x6afa[16]](_0xf6f6x9[_0x6afa[15]]))[_0x6afa[14]](function(_0xf6f6xd){_0xf6f6xa[_0x6afa[13]](200)[_0x6afa[12]](_0xf6f6xd)})[_0x6afa[11]](function(_0xf6f6xc){return handleError(_0xf6f6xa,_0xf6f6xc)})};exports[_0x6afa[18]]= function(_0xf6f6x9,_0xf6f6xa){var _0xf6f6xe;var _0xf6f6xf=_0xf6f6x9[_0x6afa[22]][_0x6afa[21]][_0x6afa[20]](_0x6afa[19])[1];return Agent[_0x6afa[31]](_0xf6f6x9[_0x6afa[26]][_0x6afa[30]],{attributes:[_0x6afa[30],_0x6afa[34]]})[_0x6afa[14]](function(_0xf6f6x13){_0xf6f6xe= _0xf6f6x13;return _0xf6f6x13[_0x6afa[33]]({where:{status:{$ne:_0x6afa[32]},id:{$ne:_0xf6f6xf}},attributes:[_0x6afa[30]]})})[_0x6afa[14]](function(_0xf6f6x12){return ReportFax[_0x6afa[31]](_0xf6f6x9[_0x6afa[22]][_0x6afa[30]])})[_0x6afa[14]](function(_0xf6f6x10){if(!_0xf6f6x10){return _0xf6f6xa[_0x6afa[23]](404)};var _0xf6f6x11=_[_0x6afa[28]](_0xf6f6x10,{connectid:_0xf6f6x9[_0x6afa[22]][_0x6afa[21]]});return _0xf6f6x11[_0x6afa[29]]()})[_0x6afa[14]](function(){return FaxRoom[_0x6afa[27]]({status:_0x6afa[24],openReason:_0x6afa[25]},{where:{id:_0xf6f6xf},user:_0xf6f6x9[_0x6afa[26]],individualHooks:true})})[_0x6afa[14]](function(){return _0xf6f6xa[_0x6afa[23]](200)})[_0x6afa[11]](sequelize.UniqueConstraintError,function(_0xf6f6xc){return _0xf6f6xa[_0x6afa[23]](504)})[_0x6afa[11]](function(_0xf6f6xc){return handleError(_0xf6f6xa,_0xf6f6xc)})};exports[_0x6afa[35]]= function(_0xf6f6x9,_0xf6f6xa){var _0xf6f6x14;return ReportFax[_0x6afa[31]](_0xf6f6x9[_0x6afa[22]][_0x6afa[30]])[_0x6afa[14]](function(_0xf6f6x10){_0xf6f6x14= _0xf6f6x10;if(!_0xf6f6x10){return _0xf6f6xa[_0x6afa[23]](404)};var _0xf6f6x11=_[_0x6afa[28]](_0xf6f6x10,{rejectedAt:moment()[_0x6afa[42]](_0x6afa[41])});return _0xf6f6x11[_0x6afa[29]]()})[_0x6afa[14]](function(){return FaxRoomStatus[_0x6afa[40]]({status:_0x6afa[36],data1:_0xf6f6x9[_0x6afa[26]][_0x6afa[37]],data2:_0xf6f6x9[_0x6afa[26]][_0x6afa[38]],UserId:_0xf6f6x9[_0x6afa[26]][_0x6afa[30]],MailRoomId:_0xf6f6x14[_0x6afa[39]]})})[_0x6afa[14]](function(){return _0xf6f6xa[_0x6afa[23]](200)})[_0x6afa[11]](function(_0xf6f6xc){return handleError(_0xf6f6xa,_0xf6f6xc)})};function handleError(_0xf6f6xa,_0xf6f6xc){return _0xf6f6xa[_0x6afa[13]](500)[_0x6afa[12]](_0xf6f6xc)}