Built motion from commit 654a660.|0.0.150
[motion.git] / server / api / report_mail / report_mail.controller.js
index aac953d..1e58a86 100644 (file)
@@ -1 +1 @@
-var _0xecbf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x61\x67\x65\x6E\x74","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\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","\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","\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","\x6C\x6F\x67"];_0xecbf[0];var _=require(_0xecbf[1]);var moment=require(_0xecbf[2]);var Report=require(_0xecbf[4])[_0xecbf[3]];var Room=require(_0xecbf[4])[_0xecbf[5]];var Status=require(_0xecbf[4])[_0xecbf[6]];var sequelize=require(_0xecbf[4])[_0xecbf[7]];var Util=require(_0xecbf[8]);exports[_0xecbf[9]]= function(_0x1c94x8,_0x1c94x9,_0x1c94xa){var _0x1c94xb={};if(_0x1c94x8[_0xecbf[11]][_0xecbf[10]]=== _0xecbf[12]){_0x1c94xb[_0xecbf[13]]= _0x1c94x8[_0xecbf[11]][_0xecbf[14]]};return Report[_0xecbf[21]](Util[_0xecbf[20]](_0x1c94x8[_0xecbf[19]],_0x1c94xb))[_0xecbf[18]](function(_0x1c94xd){_0x1c94x9[_0xecbf[17]](200)[_0xecbf[16]](_0x1c94xd)})[_0xecbf[15]](function(_0x1c94xc){return handleError(_0x1c94x9,_0x1c94xc)})};exports[_0xecbf[22]]= function(_0x1c94x8,_0x1c94x9){var _0x1c94xe=_0x1c94x8[_0xecbf[26]][_0xecbf[25]][_0xecbf[24]](_0xecbf[23])[1];return Report[_0xecbf[33]](_0x1c94x8[_0xecbf[26]][_0xecbf[32]])[_0xecbf[18]](function(_0x1c94xf){if(!_0x1c94xf){return _0x1c94x9[_0xecbf[27]](404)};var _0x1c94x10=_[_0xecbf[30]](_0x1c94xf,{connectid:_0x1c94x8[_0xecbf[26]][_0xecbf[25]]});return _0x1c94x10[_0xecbf[31]]()})[_0xecbf[18]](function(){return Room[_0xecbf[29]]({status:_0xecbf[28],openReason:_0xecbf[12]},{where:{id:_0x1c94xe},user:_0x1c94x8[_0xecbf[11]],individualHooks:true})})[_0xecbf[18]](function(){return _0x1c94x9[_0xecbf[27]](200)})[_0xecbf[15]](sequelize.UniqueConstraintError,function(_0x1c94xc){return _0x1c94x9[_0xecbf[27]](504)})[_0xecbf[15]](function(_0x1c94xc){return handleError(_0x1c94x9,_0x1c94xc)})};exports[_0xecbf[34]]= function(_0x1c94x8,_0x1c94x9){var _0x1c94x11;return Report[_0xecbf[33]](_0x1c94x8[_0xecbf[26]][_0xecbf[32]])[_0xecbf[18]](function(_0x1c94x12){_0x1c94x11= _0x1c94x12;if(!_0x1c94x11){return _0x1c94x9[_0xecbf[27]](404)};var _0x1c94x10=_[_0xecbf[30]](_0x1c94x12,{rejectedAt:moment()[_0xecbf[40]](_0xecbf[39])});return _0x1c94x10[_0xecbf[31]]()})[_0xecbf[18]](function(){return Status[_0xecbf[38]]({status:_0xecbf[35],data1:_0x1c94x8[_0xecbf[11]][_0xecbf[14]],data2:_0x1c94x8[_0xecbf[11]][_0xecbf[36]],UserId:_0x1c94x8[_0xecbf[11]][_0xecbf[32]],MailRoomId:_0x1c94x11[_0xecbf[37]]})})[_0xecbf[18]](function(){return _0x1c94x9[_0xecbf[27]](200)})[_0xecbf[15]](function(_0x1c94xc){return handleError(_0x1c94x9,_0x1c94xc)})};function handleError(_0x1c94x9,_0x1c94xc){console[_0xecbf[41]](_0x1c94xc);return _0x1c94x9[_0xecbf[17]](500)[_0xecbf[16]](_0x1c94xc)}
\ No newline at end of file
+var _0xa042=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x61\x67\x65\x6E\x74","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\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","\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","\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","\x6C\x6F\x67"];_0xa042[0];var _=require(_0xa042[1]);var moment=require(_0xa042[2]);var Report=require(_0xa042[4])[_0xa042[3]];var Room=require(_0xa042[4])[_0xa042[5]];var Status=require(_0xa042[4])[_0xa042[6]];var sequelize=require(_0xa042[4])[_0xa042[7]];var Util=require(_0xa042[8]);exports[_0xa042[9]]= function(_0xe251x8,_0xe251x9,_0xe251xa){var _0xe251xb={};if(_0xe251x8[_0xa042[11]][_0xa042[10]]=== _0xa042[12]){_0xe251xb[_0xa042[13]]= _0xe251x8[_0xa042[11]][_0xa042[14]]};return Report[_0xa042[21]](Util[_0xa042[20]](_0xe251x8[_0xa042[19]],_0xe251xb))[_0xa042[18]](function(_0xe251xd){_0xe251x9[_0xa042[17]](200)[_0xa042[16]](_0xe251xd)})[_0xa042[15]](function(_0xe251xc){return handleError(_0xe251x9,_0xe251xc)})};exports[_0xa042[22]]= function(_0xe251x8,_0xe251x9){var _0xe251xe=_0xe251x8[_0xa042[26]][_0xa042[25]][_0xa042[24]](_0xa042[23])[1];return Report[_0xa042[33]](_0xe251x8[_0xa042[26]][_0xa042[32]])[_0xa042[18]](function(_0xe251xf){if(!_0xe251xf){return _0xe251x9[_0xa042[27]](404)};var _0xe251x10=_[_0xa042[30]](_0xe251xf,{connectid:_0xe251x8[_0xa042[26]][_0xa042[25]]});return _0xe251x10[_0xa042[31]]()})[_0xa042[18]](function(){return Room[_0xa042[29]]({status:_0xa042[28],openReason:_0xa042[12]},{where:{id:_0xe251xe},user:_0xe251x8[_0xa042[11]],individualHooks:true})})[_0xa042[18]](function(){return _0xe251x9[_0xa042[27]](200)})[_0xa042[15]](sequelize.UniqueConstraintError,function(_0xe251xc){return _0xe251x9[_0xa042[27]](504)})[_0xa042[15]](function(_0xe251xc){return handleError(_0xe251x9,_0xe251xc)})};exports[_0xa042[34]]= function(_0xe251x8,_0xe251x9){var _0xe251x11;return Report[_0xa042[33]](_0xe251x8[_0xa042[26]][_0xa042[32]])[_0xa042[18]](function(_0xe251x12){_0xe251x11= _0xe251x12;if(!_0xe251x11){return _0xe251x9[_0xa042[27]](404)};var _0xe251x10=_[_0xa042[30]](_0xe251x12,{rejectedAt:moment()[_0xa042[40]](_0xa042[39])});return _0xe251x10[_0xa042[31]]()})[_0xa042[18]](function(){return Status[_0xa042[38]]({status:_0xa042[35],data1:_0xe251x8[_0xa042[11]][_0xa042[14]],data2:_0xe251x8[_0xa042[11]][_0xa042[36]],UserId:_0xe251x8[_0xa042[11]][_0xa042[32]],MailRoomId:_0xe251x11[_0xa042[37]]})})[_0xa042[18]](function(){return _0xe251x9[_0xa042[27]](200)})[_0xa042[15]](function(_0xe251xc){return handleError(_0xe251x9,_0xe251xc)})};function handleError(_0xe251x9,_0xe251xc){console[_0xa042[41]](_0xe251xc);return _0xe251x9[_0xa042[17]](500)[_0xa042[16]](_0xe251xc)}
\ No newline at end of file