Built motion from commit 8abd872ce.|1.0.30
[motion.git] / server / api / report_mail / report_mail.controller.js
index d960149..e6d8a86 100644 (file)
@@ -1 +1 @@
-var _0xfd51=["\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","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xfd51[0];var _=require(_0xfd51[1]);var moment=require(_0xfd51[2]);var Report=require(_0xfd51[4])[_0xfd51[3]];var Room=require(_0xfd51[4])[_0xfd51[5]];var Status=require(_0xfd51[4])[_0xfd51[6]];var sequelize=require(_0xfd51[4])[_0xfd51[7]];var Util=require(_0xfd51[8]);var logger=require(_0xfd51[10])(_0xfd51[9]);exports[_0xfd51[11]]= function(_0x931fx9,_0x931fxa,_0x931fxb){var _0x931fxc={};if(_0x931fx9[_0xfd51[13]][_0xfd51[12]]=== _0xfd51[14]){_0x931fxc[_0xfd51[15]]= _0x931fx9[_0xfd51[13]][_0xfd51[16]]};return Report[_0xfd51[23]](Util[_0xfd51[22]](_0x931fx9[_0xfd51[21]],_0x931fxc))[_0xfd51[20]](function(_0x931fxe){_0x931fxa[_0xfd51[19]](200)[_0xfd51[18]](_0x931fxe)})[_0xfd51[17]](function(_0x931fxd){return handleError(_0x931fxa,_0x931fxd)})};exports[_0xfd51[24]]= function(_0x931fx9,_0x931fxa){var _0x931fxf=_0x931fx9[_0xfd51[28]][_0xfd51[27]][_0xfd51[26]](_0xfd51[25])[1];return Report[_0xfd51[35]](_0x931fx9[_0xfd51[28]][_0xfd51[34]])[_0xfd51[20]](function(_0x931fx10){if(!_0x931fx10){return _0x931fxa[_0xfd51[29]](404)};var _0x931fx11=_[_0xfd51[32]](_0x931fx10,{connectid:_0x931fx9[_0xfd51[28]][_0xfd51[27]]});return _0x931fx11[_0xfd51[33]]()})[_0xfd51[20]](function(){return Room[_0xfd51[31]]({status:_0xfd51[30],openReason:_0xfd51[14]},{where:{id:_0x931fxf},user:_0x931fx9[_0xfd51[13]],individualHooks:true})})[_0xfd51[20]](function(){return _0x931fxa[_0xfd51[29]](200)})[_0xfd51[17]](sequelize.UniqueConstraintError,function(_0x931fxd){return _0x931fxa[_0xfd51[29]](504)})[_0xfd51[17]](function(_0x931fxd){return handleError(_0x931fxa,_0x931fxd)})};exports[_0xfd51[36]]= function(_0x931fx9,_0x931fxa){var _0x931fx12;return Report[_0xfd51[35]](_0x931fx9[_0xfd51[28]][_0xfd51[34]])[_0xfd51[20]](function(_0x931fx13){_0x931fx12= _0x931fx13;if(!_0x931fx12){return _0x931fxa[_0xfd51[29]](404)};var _0x931fx11=_[_0xfd51[32]](_0x931fx13,{rejectedAt:moment()[_0xfd51[42]](_0xfd51[41])});return _0x931fx11[_0xfd51[33]]()})[_0xfd51[20]](function(){return Status[_0xfd51[40]]({status:_0xfd51[37],data1:_0x931fx9[_0xfd51[13]][_0xfd51[16]],data2:_0x931fx9[_0xfd51[13]][_0xfd51[38]],UserId:_0x931fx9[_0xfd51[13]][_0xfd51[34]],MailRoomId:_0x931fx12[_0xfd51[39]]})})[_0xfd51[20]](function(){return _0x931fxa[_0xfd51[29]](200)})[_0xfd51[17]](function(_0x931fxd){return handleError(_0x931fxa,_0x931fxd)})};function handleError(_0x931fxa,_0x931fxd){logger[_0xfd51[44]](_0x931fxd[_0xfd51[43]]);return _0x931fxa[_0xfd51[19]](500)[_0xfd51[18]](_0x931fxd)}
\ No newline at end of file
+var _0x4da8=["\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","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x4da8[0];var _=require(_0x4da8[1]);var moment=require(_0x4da8[2]);var Report=require(_0x4da8[4])[_0x4da8[3]];var Room=require(_0x4da8[4])[_0x4da8[5]];var Status=require(_0x4da8[4])[_0x4da8[6]];var sequelize=require(_0x4da8[4])[_0x4da8[7]];var Util=require(_0x4da8[8]);var logger=require(_0x4da8[10])(_0x4da8[9]);exports[_0x4da8[11]]= function(_0x550ax9,_0x550axa,_0x550axb){var _0x550axc={};if(_0x550ax9[_0x4da8[13]][_0x4da8[12]]=== _0x4da8[14]){_0x550axc[_0x4da8[15]]= _0x550ax9[_0x4da8[13]][_0x4da8[16]]};return Report[_0x4da8[23]](Util[_0x4da8[22]](_0x550ax9[_0x4da8[21]],_0x550axc))[_0x4da8[20]](function(_0x550axe){_0x550axa[_0x4da8[19]](200)[_0x4da8[18]](_0x550axe)})[_0x4da8[17]](function(_0x550axd){return handleError(_0x550axa,_0x550axd)})};exports[_0x4da8[24]]= function(_0x550ax9,_0x550axa){var _0x550axf=_0x550ax9[_0x4da8[28]][_0x4da8[27]][_0x4da8[26]](_0x4da8[25])[1];return Report[_0x4da8[35]](_0x550ax9[_0x4da8[28]][_0x4da8[34]])[_0x4da8[20]](function(_0x550ax10){if(!_0x550ax10){return _0x550axa[_0x4da8[29]](404)};var _0x550ax11=_[_0x4da8[32]](_0x550ax10,{connectid:_0x550ax9[_0x4da8[28]][_0x4da8[27]]});return _0x550ax11[_0x4da8[33]]()})[_0x4da8[20]](function(){return Room[_0x4da8[31]]({status:_0x4da8[30],openReason:_0x4da8[14]},{where:{id:_0x550axf},user:_0x550ax9[_0x4da8[13]],individualHooks:true})})[_0x4da8[20]](function(){return _0x550axa[_0x4da8[29]](200)})[_0x4da8[17]](sequelize.UniqueConstraintError,function(_0x550axd){return _0x550axa[_0x4da8[29]](504)})[_0x4da8[17]](function(_0x550axd){return handleError(_0x550axa,_0x550axd)})};exports[_0x4da8[36]]= function(_0x550ax9,_0x550axa){var _0x550ax12;return Report[_0x4da8[35]](_0x550ax9[_0x4da8[28]][_0x4da8[34]])[_0x4da8[20]](function(_0x550ax13){_0x550ax12= _0x550ax13;if(!_0x550ax12){return _0x550axa[_0x4da8[29]](404)};var _0x550ax11=_[_0x4da8[32]](_0x550ax13,{rejectedAt:moment()[_0x4da8[42]](_0x4da8[41])});return _0x550ax11[_0x4da8[33]]()})[_0x4da8[20]](function(){return Status[_0x4da8[40]]({status:_0x4da8[37],data1:_0x550ax9[_0x4da8[13]][_0x4da8[16]],data2:_0x550ax9[_0x4da8[13]][_0x4da8[38]],UserId:_0x550ax9[_0x4da8[13]][_0x4da8[34]],MailRoomId:_0x550ax12[_0x4da8[39]]})})[_0x4da8[20]](function(){return _0x550axa[_0x4da8[29]](200)})[_0x4da8[17]](function(_0x550axd){return handleError(_0x550axa,_0x550axd)})};function handleError(_0x550axa,_0x550axd){logger[_0x4da8[44]](_0x550axd[_0x4da8[43]]);return _0x550axa[_0x4da8[19]](500)[_0x4da8[18]](_0x550axd)}
\ No newline at end of file