Built motion from commit 36b8e3b.|0.0.111
[motion.git] / server / api / report_mail / report_mail.controller.js
index 03c8972..60c148a 100644 (file)
@@ -1 +1 @@
-var _0x22bf=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\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","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0x22bf[0];var _=require(_0x22bf[1]);var ReportMail=require(_0x22bf[3])[_0x22bf[2]];exports[_0x22bf[4]]=function(_0x1f93x3,_0x1f93x4){ReportMail[_0x22bf[9]]()[_0x22bf[8]](function(_0x1f93x6){return _0x1f93x4[_0x22bf[7]](200)[_0x22bf[6]](_0x1f93x6)})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)})};exports[_0x22bf[10]]=function(_0x1f93x3,_0x1f93x4){ReportMail[_0x22bf[14]](_0x1f93x3[_0x22bf[13]][_0x22bf[12]])[_0x22bf[8]](function(_0x1f93x7){if(!_0x1f93x7){return _0x1f93x4[_0x22bf[11]](404)};return _0x1f93x4[_0x22bf[6]](_0x1f93x7);})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)})};exports[_0x22bf[15]]=function(_0x1f93x3,_0x1f93x4){ReportMail[_0x22bf[15]](_0x1f93x3[_0x22bf[16]])[_0x22bf[8]](function(_0x1f93x7){return _0x1f93x4[_0x22bf[7]](201)[_0x22bf[6]](_0x1f93x7)})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)})};exports[_0x22bf[17]]=function(_0x1f93x3,_0x1f93x4){if(_0x1f93x3[_0x22bf[16]][_0x22bf[12]]){delete _0x1f93x3[_0x22bf[16]][_0x22bf[12]]};ReportMail[_0x22bf[14]](_0x1f93x3[_0x22bf[13]][_0x22bf[12]])[_0x22bf[8]](function(_0x1f93x7){if(!_0x1f93x7){return _0x1f93x4[_0x22bf[11]](404)};var _0x1f93x8=_[_0x22bf[18]](_0x1f93x7,_0x1f93x3[_0x22bf[16]]);_0x1f93x8[_0x22bf[19]]()[_0x22bf[8]](function(){return _0x1f93x4[_0x22bf[7]](200)[_0x22bf[6]](_0x1f93x7)})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)});})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)});};exports[_0x22bf[20]]=function(_0x1f93x3,_0x1f93x4){ReportMail[_0x22bf[14]](_0x1f93x3[_0x22bf[13]][_0x22bf[12]])[_0x22bf[8]](function(_0x1f93x7){if(!_0x1f93x7){return _0x1f93x4[_0x22bf[11]](404)};_0x1f93x7[_0x22bf[20]]()[_0x22bf[8]](function(){return _0x1f93x4[_0x22bf[11]](204)})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)});})[_0x22bf[5]](function(_0x1f93x5){return handleError(_0x1f93x4,_0x1f93x5)})};function handleError(_0x1f93x4,_0x1f93x5){return _0x1f93x4[_0x22bf[7]](500)[_0x22bf[6]](_0x1f93x5)}
\ No newline at end of file
+var _0x67a8=["\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","\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","\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","\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"];_0x67a8[0];var _=require(_0x67a8[1]);var moment=require(_0x67a8[2]);var ReportMail=require(_0x67a8[4])[_0x67a8[3]];var MailRoom=require(_0x67a8[4])[_0x67a8[5]];var sequelize=require(_0x67a8[4])[_0x67a8[6]];var Agent=require(_0x67a8[4])[_0x67a8[7]];var Util=require(_0x67a8[8]);exports[_0x67a8[9]]=function(_0x960fx8,_0x960fx9,_0x960fxa){return ReportMail[_0x67a8[16]](Util[_0x67a8[15]](_0x960fx8[_0x67a8[14]]))[_0x67a8[13]](function(_0x960fxc){_0x960fx9[_0x67a8[12]](200)[_0x67a8[11]](_0x960fxc)})[_0x67a8[10]](function(_0x960fxb){return handleError(_0x960fx9,_0x960fxb)})};exports[_0x67a8[17]]=function(_0x960fx8,_0x960fx9){var _0x960fxd;var _0x960fxe=_0x960fx8[_0x67a8[21]][_0x67a8[20]][_0x67a8[19]](_0x67a8[18])[1];return ReportMail[_0x67a8[28]](_0x960fx8[_0x67a8[21]][_0x67a8[27]])[_0x67a8[13]](function(_0x960fxf){if(!_0x960fxf){return _0x960fx9[_0x67a8[22]](404)};var _0x960fx10=_[_0x67a8[25]](_0x960fxf,{connectid:_0x960fx8[_0x67a8[21]][_0x67a8[20]]});return _0x960fx10[_0x67a8[26]]()})[_0x67a8[13]](function(){return MailRoom[_0x67a8[24]]({status:_0x67a8[23]},{where:{id:_0x960fxe}})})[_0x67a8[13]](function(){return _0x960fx9[_0x67a8[22]](200)})[_0x67a8[10]](sequelize.UniqueConstraintError,function(_0x960fxb){return _0x960fx9[_0x67a8[22]](504)})[_0x67a8[10]](function(_0x960fxb){return handleError(_0x960fx9,_0x960fxb)})};exports[_0x67a8[29]]=function(_0x960fx8,_0x960fx9){return ReportMail[_0x67a8[28]](_0x960fx8[_0x67a8[21]][_0x67a8[27]])[_0x67a8[13]](function(_0x960fxf){if(!_0x960fxf){return _0x960fx9[_0x67a8[22]](404)};var _0x960fx10=_[_0x67a8[25]](_0x960fxf,{rejectedAt:moment()[_0x67a8[31]](_0x67a8[30])});return _0x960fx10[_0x67a8[26]]()})[_0x67a8[13]](function(){return _0x960fx9[_0x67a8[22]](200)})[_0x67a8[10]](function(_0x960fxb){return handleError(_0x960fx9,_0x960fxb)})};function handleError(_0x960fx9,_0x960fxb){return _0x960fx9[_0x67a8[12]](500)[_0x67a8[11]](_0x960fxb)}
\ No newline at end of file