Built motion from commit 5ae821c.|0.0.127
[motion.git] / server / api / report_mail / report_mail.controller.js
index 715b7ed..77b0886 100644 (file)
@@ -1 +1 @@
-var _0xab36=["\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","\x55\x73\x65\x72","\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","\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","\x63\x72\x65\x61\x74\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x64\x65\x73\x74\x72\x6F\x79"];_0xab36[0];var _=require(_0xab36[1]);var ReportMail=require(_0xab36[3])[_0xab36[2]];var Agent=require(_0xab36[3])[_0xab36[4]];var sequelize=require(_0xab36[3])[_0xab36[5]];var Util=require(_0xab36[6]);exports[_0xab36[7]]=function(_0xc26cx6,_0xc26cx7,_0xc26cx8){return ReportMail[_0xab36[14]](Util[_0xab36[13]](_0xc26cx6[_0xab36[12]]))[_0xab36[11]](function(_0xc26cxa){_0xc26cx7[_0xab36[10]](200)[_0xab36[9]](_0xc26cxa)})[_0xab36[8]](function(_0xc26cx9){return handleError(_0xc26cx7,_0xc26cx9)})};exports[_0xab36[15]]=function(_0xc26cx6,_0xc26cx7){return ReportMail[_0xab36[19]](_0xc26cx6[_0xab36[18]][_0xab36[17]])[_0xab36[11]](function(_0xc26cxb){if(!_0xc26cxb){return _0xc26cx7[_0xab36[16]](404)};return _0xc26cx7[_0xab36[9]](_0xc26cxb)})[_0xab36[8]](function(_0xc26cx9){return handleError(_0xc26cx7,_0xc26cx9)})};exports[_0xab36[20]]=function(_0xc26cx6,_0xc26cx7){var _0xc26cxc;var _0xc26cxd=_0xc26cx6[_0xab36[18]][_0xab36[23]][_0xab36[22]](_0xab36[21])[1];return Agent[_0xab36[19]](_0xc26cx6[_0xab36[28]][_0xab36[17]],{attributes:[_0xab36[17],_0xab36[29]]})[_0xab36[11]](function(_0xc26cx10){_0xc26cxc=_0xc26cx10;return _0xc26cx10[_0xab36[27]]({where:{status:{$ne:_0xab36[26]},id:{$ne:_0xc26cxd}},attributes:[_0xab36[17]]})})[_0xab36[11]](function(_0xc26cxf){return ReportMail[_0xab36[19]](_0xc26cx6[_0xab36[18]][_0xab36[17]])})[_0xab36[11]](function(_0xc26cxb){if(!_0xc26cxb){return _0xc26cx7[_0xab36[16]](404)};var _0xc26cxe=_[_0xab36[24]](_0xc26cxb,{connectid:_0xc26cx6[_0xab36[18]][_0xab36[23]]});return _0xc26cxe[_0xab36[25]]()})[_0xab36[11]](function(){return _0xc26cx7[_0xab36[16]](200)})[_0xab36[8]](function(_0xc26cx9){return handleError(_0xc26cx7,_0xc26cx9)})};exports[_0xab36[30]]=function(_0xc26cx6,_0xc26cx7){return ReportMail[_0xab36[30]](_0xc26cx6[_0xab36[31]])[_0xab36[11]](function(_0xc26cxb){return _0xc26cx7[_0xab36[10]](201)[_0xab36[9]](_0xc26cxb)})[_0xab36[8]](function(_0xc26cx9){return handleError(_0xc26cx7,_0xc26cx9)})};exports[_0xab36[32]]=function(_0xc26cx6,_0xc26cx7){if(_0xc26cx6[_0xab36[31]][_0xab36[17]]){delete _0xc26cx6[_0xab36[31]][_0xab36[17]]};return ReportMail[_0xab36[19]](_0xc26cx6[_0xab36[18]][_0xab36[17]])[_0xab36[11]](function(_0xc26cxb){if(!_0xc26cxb){return _0xc26cx7[_0xab36[16]](404)};var _0xc26cxe=_[_0xab36[24]](_0xc26cxb,_0xc26cx6[_0xab36[31]]);return _0xc26cxe[_0xab36[25]]()})[_0xab36[11]](function(_0xc26cxb){return _0xc26cx7[_0xab36[10]](200)[_0xab36[9]](_0xc26cxb)})[_0xab36[8]](function(_0xc26cx9){return handleError(_0xc26cx7,_0xc26cx9)})};exports[_0xab36[33]]=function(_0xc26cx6,_0xc26cx7){return ReportMail[_0xab36[19]](_0xc26cx6[_0xab36[18]][_0xab36[17]])[_0xab36[11]](function(_0xc26cxb){if(!_0xc26cxb){return _0xc26cx7[_0xab36[16]](404)};return _0xc26cxb[_0xab36[33]]()})[_0xab36[11]](function(){return _0xc26cx7[_0xab36[16]](204)})[_0xab36[8]](function(_0xc26cx9){return handleError(_0xc26cx7,_0xc26cx9)})};function handleError(_0xc26cx7,_0xc26cx9){return _0xc26cx7[_0xab36[10]](500)[_0xab36[9]](_0xc26cx9)}
\ No newline at end of file
+var _0xbdee=["\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"];_0xbdee[0];var _=require(_0xbdee[1]);var moment=require(_0xbdee[2]);var Report=require(_0xbdee[4])[_0xbdee[3]];var Room=require(_0xbdee[4])[_0xbdee[5]];var Status=require(_0xbdee[4])[_0xbdee[6]];var sequelize=require(_0xbdee[4])[_0xbdee[7]];var Util=require(_0xbdee[8]);exports[_0xbdee[9]]= function(_0x9c2dx8,_0x9c2dx9,_0x9c2dxa){var _0x9c2dxb={};if(_0x9c2dx8[_0xbdee[11]][_0xbdee[10]]=== _0xbdee[12]){_0x9c2dxb[_0xbdee[13]]= _0x9c2dx8[_0xbdee[11]][_0xbdee[14]]};return Report[_0xbdee[21]](Util[_0xbdee[20]](_0x9c2dx8[_0xbdee[19]],_0x9c2dxb))[_0xbdee[18]](function(_0x9c2dxd){_0x9c2dx9[_0xbdee[17]](200)[_0xbdee[16]](_0x9c2dxd)})[_0xbdee[15]](function(_0x9c2dxc){return handleError(_0x9c2dx9,_0x9c2dxc)})};exports[_0xbdee[22]]= function(_0x9c2dx8,_0x9c2dx9){var _0x9c2dxe=_0x9c2dx8[_0xbdee[26]][_0xbdee[25]][_0xbdee[24]](_0xbdee[23])[1];return Report[_0xbdee[33]](_0x9c2dx8[_0xbdee[26]][_0xbdee[32]])[_0xbdee[18]](function(_0x9c2dxf){if(!_0x9c2dxf){return _0x9c2dx9[_0xbdee[27]](404)};var _0x9c2dx10=_[_0xbdee[30]](_0x9c2dxf,{connectid:_0x9c2dx8[_0xbdee[26]][_0xbdee[25]]});return _0x9c2dx10[_0xbdee[31]]()})[_0xbdee[18]](function(){return Room[_0xbdee[29]]({status:_0xbdee[28],openReason:_0xbdee[12]},{where:{id:_0x9c2dxe},user:_0x9c2dx8[_0xbdee[11]],individualHooks:true})})[_0xbdee[18]](function(){return _0x9c2dx9[_0xbdee[27]](200)})[_0xbdee[15]](sequelize.UniqueConstraintError,function(_0x9c2dxc){return _0x9c2dx9[_0xbdee[27]](504)})[_0xbdee[15]](function(_0x9c2dxc){return handleError(_0x9c2dx9,_0x9c2dxc)})};exports[_0xbdee[34]]= function(_0x9c2dx8,_0x9c2dx9){var _0x9c2dx11;return Report[_0xbdee[33]](_0x9c2dx8[_0xbdee[26]][_0xbdee[32]])[_0xbdee[18]](function(_0x9c2dx12){_0x9c2dx11= _0x9c2dx12;if(!_0x9c2dx11){return _0x9c2dx9[_0xbdee[27]](404)};var _0x9c2dx10=_[_0xbdee[30]](_0x9c2dx12,{rejectedAt:moment()[_0xbdee[40]](_0xbdee[39])});return _0x9c2dx10[_0xbdee[31]]()})[_0xbdee[18]](function(){return Status[_0xbdee[38]]({status:_0xbdee[35],data1:_0x9c2dx8[_0xbdee[11]][_0xbdee[14]],data2:_0x9c2dx8[_0xbdee[11]][_0xbdee[36]],UserId:_0x9c2dx8[_0xbdee[11]][_0xbdee[32]],MailRoomId:_0x9c2dx11[_0xbdee[37]]})})[_0xbdee[18]](function(){return _0x9c2dx9[_0xbdee[27]](200)})[_0xbdee[15]](function(_0x9c2dxc){return handleError(_0x9c2dx9,_0x9c2dxc)})};function handleError(_0x9c2dx9,_0x9c2dxc){console[_0xbdee[41]](_0x9c2dxc);return _0x9c2dx9[_0xbdee[17]](500)[_0xbdee[16]](_0x9c2dxc)}
\ No newline at end of file