Built motion from commit 3594e56.|0.0.120
[motion.git] / server / api / report_mail / report_mail.controller.js
index 39f9616..4b61ce0 100644 (file)
@@ -1 +1 @@
-var _0x2318=["\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","\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","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x63\x63\x65\x70\x74","\x2E","\x73\x70\x6C\x69\x74","\x75\x6E\x69\x71\x75\x65\x69\x64","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x43\x4C\x4F\x53\x45\x44","\x67\x65\x74\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x73","\x75\x73\x65\x72","\x6D\x61\x69\x6C\x43\x61\x70\x61\x63\x69\x74\x79","\x72\x65\x6A\x65\x63\x74","\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","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x2318[0];var _=require(_0x2318[1]);var moment=require(_0x2318[2]);var ReportMail=require(_0x2318[4])[_0x2318[3]];var sequelize=require(_0x2318[4])[_0x2318[5]];var Agent=require(_0x2318[4])[_0x2318[6]];var Util=require(_0x2318[7]);exports[_0x2318[8]]=function(_0x6eccx7,_0x6eccx8,_0x6eccx9){return ReportMail[_0x2318[15]](Util[_0x2318[14]](_0x6eccx7[_0x2318[13]]))[_0x2318[12]](function(_0x6eccxb){_0x6eccx8[_0x2318[11]](200)[_0x2318[10]](_0x6eccxb)})[_0x2318[9]](function(_0x6eccxa){return handleError(_0x6eccx8,_0x6eccxa)})};exports[_0x2318[16]]=function(_0x6eccx7,_0x6eccx8){return ReportMail[_0x2318[20]](_0x6eccx7[_0x2318[19]][_0x2318[18]])[_0x2318[12]](function(_0x6eccxc){if(!_0x6eccxc){return _0x6eccx8[_0x2318[17]](404)};return _0x6eccx8[_0x2318[10]](_0x6eccxc)})[_0x2318[9]](function(_0x6eccxa){return handleError(_0x6eccx8,_0x6eccxa)})};exports[_0x2318[21]]=function(_0x6eccx7,_0x6eccx8){var _0x6eccxd;var _0x6eccxe=_0x6eccx7[_0x2318[19]][_0x2318[24]][_0x2318[23]](_0x2318[22])[1];return Agent[_0x2318[20]](_0x6eccx7[_0x2318[29]][_0x2318[18]],{attributes:[_0x2318[18],_0x2318[30]]})[_0x2318[12]](function(_0x6eccx11){_0x6eccxd=_0x6eccx11;return _0x6eccx11[_0x2318[28]]({where:{status:{$ne:_0x2318[27]},id:{$ne:_0x6eccxe}},attributes:[_0x2318[18]]})})[_0x2318[12]](function(_0x6eccx10){return ReportMail[_0x2318[20]](_0x6eccx7[_0x2318[19]][_0x2318[18]])})[_0x2318[12]](function(_0x6eccxc){if(!_0x6eccxc){return _0x6eccx8[_0x2318[17]](404)};var _0x6eccxf=_[_0x2318[25]](_0x6eccxc,{connectid:_0x6eccx7[_0x2318[19]][_0x2318[24]]});return _0x6eccxf[_0x2318[26]]()})[_0x2318[12]](function(){return _0x6eccx8[_0x2318[17]](200)})[_0x2318[9]](function(_0x6eccxa){return handleError(_0x6eccx8,_0x6eccxa)})};exports[_0x2318[31]]=function(_0x6eccx7,_0x6eccx8){return ReportMail[_0x2318[20]](_0x6eccx7[_0x2318[19]][_0x2318[18]])[_0x2318[12]](function(_0x6eccxc){if(!_0x6eccxc){return _0x6eccx8[_0x2318[17]](404)};var _0x6eccxf=_[_0x2318[25]](_0x6eccxc,{rejectedAt:moment()[_0x2318[33]](_0x2318[32])});return _0x6eccxf[_0x2318[26]]()})[_0x2318[12]](function(){return _0x6eccx8[_0x2318[17]](200)})[_0x2318[9]](function(_0x6eccxa){return handleError(_0x6eccx8,_0x6eccxa)})};exports[_0x2318[34]]=function(_0x6eccx7,_0x6eccx8){return ReportMail[_0x2318[34]](_0x6eccx7[_0x2318[35]])[_0x2318[12]](function(_0x6eccxc){return _0x6eccx8[_0x2318[11]](201)[_0x2318[10]](_0x6eccxc)})[_0x2318[9]](function(_0x6eccxa){return handleError(_0x6eccx8,_0x6eccxa)})};exports[_0x2318[36]]=function(_0x6eccx7,_0x6eccx8){if(_0x6eccx7[_0x2318[35]][_0x2318[18]]){delete _0x6eccx7[_0x2318[35]][_0x2318[18]]};return ReportMail[_0x2318[20]](_0x6eccx7[_0x2318[19]][_0x2318[18]])[_0x2318[12]](function(_0x6eccxc){if(!_0x6eccxc){return _0x6eccx8[_0x2318[17]](404)};var _0x6eccxf=_[_0x2318[25]](_0x6eccxc,_0x6eccx7[_0x2318[35]]);return _0x6eccxf[_0x2318[26]]()})[_0x2318[12]](function(_0x6eccxc){return _0x6eccx8[_0x2318[11]](200)[_0x2318[10]](_0x6eccxc)})[_0x2318[9]](function(_0x6eccxa){return handleError(_0x6eccx8,_0x6eccxa)})};exports[_0x2318[37]]=function(_0x6eccx7,_0x6eccx8){return ReportMail[_0x2318[20]](_0x6eccx7[_0x2318[19]][_0x2318[18]])[_0x2318[12]](function(_0x6eccxc){if(!_0x6eccxc){return _0x6eccx8[_0x2318[17]](404)};return _0x6eccxc[_0x2318[37]]()})[_0x2318[12]](function(){return _0x6eccx8[_0x2318[17]](204)})[_0x2318[9]](function(_0x6eccxa){return handleError(_0x6eccx8,_0x6eccxa)})};function handleError(_0x6eccx8,_0x6eccxa){return _0x6eccx8[_0x2318[11]](500)[_0x2318[10]](_0x6eccxa)}
\ No newline at end of file
+var _0xcbd6=["\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","\x69\x64","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x72\x65\x6A\x65\x63\x74","\x52\x45\x4A\x45\x43\x54","\x72\x6F\x6F\x6D\x69\x64","\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"];_0xcbd6[0];var _=require(_0xcbd6[1]);var moment=require(_0xcbd6[2]);var Report=require(_0xcbd6[4])[_0xcbd6[3]];var Room=require(_0xcbd6[4])[_0xcbd6[5]];var Status=require(_0xcbd6[4])[_0xcbd6[6]];var sequelize=require(_0xcbd6[4])[_0xcbd6[7]];var Util=require(_0xcbd6[8]);exports[_0xcbd6[9]]= function(_0x2ebdx8,_0x2ebdx9,_0x2ebdxa){var _0x2ebdxb={};if(_0x2ebdx8[_0xcbd6[11]][_0xcbd6[10]]=== _0xcbd6[12]){_0x2ebdxb[_0xcbd6[13]]= _0x2ebdx8[_0xcbd6[11]][_0xcbd6[14]]};return Report[_0xcbd6[21]](Util[_0xcbd6[20]](_0x2ebdx8[_0xcbd6[19]],_0x2ebdxb))[_0xcbd6[18]](function(_0x2ebdxd){_0x2ebdx9[_0xcbd6[17]](200)[_0xcbd6[16]](_0x2ebdxd)})[_0xcbd6[15]](function(_0x2ebdxc){return handleError(_0x2ebdx9,_0x2ebdxc)})};exports[_0xcbd6[22]]= function(_0x2ebdx8,_0x2ebdx9){var _0x2ebdxe=_0x2ebdx8[_0xcbd6[26]][_0xcbd6[25]][_0xcbd6[24]](_0xcbd6[23])[1];return Report[_0xcbd6[35]](_0x2ebdx8[_0xcbd6[26]][_0xcbd6[29]])[_0xcbd6[18]](function(_0x2ebdxf){if(!_0x2ebdxf){return _0x2ebdx9[_0xcbd6[27]](404)};var _0x2ebdx10=_[_0xcbd6[33]](_0x2ebdxf,{connectid:_0x2ebdx8[_0xcbd6[26]][_0xcbd6[25]]});return _0x2ebdx10[_0xcbd6[34]]()})[_0xcbd6[18]](function(){return Room[_0xcbd6[32]]({status:_0xcbd6[28]},{where:{id:_0x2ebdxe}})})[_0xcbd6[18]](function(){return Status[_0xcbd6[31]]({status:_0xcbd6[28],UserId:_0x2ebdx8[_0xcbd6[11]][_0xcbd6[29]],data1:_0x2ebdx8[_0xcbd6[11]][_0xcbd6[14]],data2:_0x2ebdx8[_0xcbd6[11]][_0xcbd6[30]],MailRoomId:_0x2ebdxe})})[_0xcbd6[18]](function(){return _0x2ebdx9[_0xcbd6[27]](200)})[_0xcbd6[15]](sequelize.UniqueConstraintError,function(_0x2ebdxc){return _0x2ebdx9[_0xcbd6[27]](504)})[_0xcbd6[15]](function(_0x2ebdxc){return handleError(_0x2ebdx9,_0x2ebdxc)})};exports[_0xcbd6[36]]= function(_0x2ebdx8,_0x2ebdx9){var _0x2ebdx11;return Report[_0xcbd6[35]](_0x2ebdx8[_0xcbd6[26]][_0xcbd6[29]])[_0xcbd6[18]](function(_0x2ebdx12){_0x2ebdx11= _0x2ebdx12;if(!_0x2ebdx11){return _0x2ebdx9[_0xcbd6[27]](404)};var _0x2ebdx10=_[_0xcbd6[33]](_0x2ebdx12,{rejectedAt:moment()[_0xcbd6[40]](_0xcbd6[39])});return _0x2ebdx10[_0xcbd6[34]]()})[_0xcbd6[18]](function(){return Status[_0xcbd6[31]]({status:_0xcbd6[37],data1:_0x2ebdx8[_0xcbd6[11]][_0xcbd6[14]],data2:_0x2ebdx8[_0xcbd6[11]][_0xcbd6[30]],UserId:_0x2ebdx8[_0xcbd6[11]][_0xcbd6[29]],MailRoomId:_0x2ebdx11[_0xcbd6[38]]})})[_0xcbd6[18]](function(){return _0x2ebdx9[_0xcbd6[27]](200)})[_0xcbd6[15]](function(_0x2ebdxc){return handleError(_0x2ebdx9,_0x2ebdxc)})};function handleError(_0x2ebdx9,_0x2ebdxc){console[_0xcbd6[41]](_0x2ebdxc);return _0x2ebdx9[_0xcbd6[17]](500)[_0xcbd6[16]](_0x2ebdxc)}
\ No newline at end of file