Built motion from commit 95b01fa.|0.0.70
[motion.git] / server / api / report_mail / report_mail.controller.js
1 var _0x5e20=["\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"];_0x5e20[0];var _=require(_0x5e20[1]);var ReportMail=require(_0x5e20[3])[_0x5e20[2]];var Agent=require(_0x5e20[3])[_0x5e20[4]];var sequelize=require(_0x5e20[3])[_0x5e20[5]];var Util=require(_0x5e20[6]);exports[_0x5e20[7]]=function(_0xa84bx6,_0xa84bx7,_0xa84bx8){return ReportMail[_0x5e20[14]](Util[_0x5e20[13]](_0xa84bx6[_0x5e20[12]]))[_0x5e20[11]](function(_0xa84bxa){_0xa84bx7[_0x5e20[10]](200)[_0x5e20[9]](_0xa84bxa)})[_0x5e20[8]](function(_0xa84bx9){return handleError(_0xa84bx7,_0xa84bx9)})};exports[_0x5e20[15]]=function(_0xa84bx6,_0xa84bx7){return ReportMail[_0x5e20[19]](_0xa84bx6[_0x5e20[18]][_0x5e20[17]])[_0x5e20[11]](function(_0xa84bxb){if(!_0xa84bxb){return _0xa84bx7[_0x5e20[16]](404)};return _0xa84bx7[_0x5e20[9]](_0xa84bxb)})[_0x5e20[8]](function(_0xa84bx9){return handleError(_0xa84bx7,_0xa84bx9)})};exports[_0x5e20[20]]=function(_0xa84bx6,_0xa84bx7){var _0xa84bxc;var _0xa84bxd=_0xa84bx6[_0x5e20[18]][_0x5e20[23]][_0x5e20[22]](_0x5e20[21])[1];return Agent[_0x5e20[19]](_0xa84bx6[_0x5e20[28]][_0x5e20[17]],{attributes:[_0x5e20[17],_0x5e20[29]]})[_0x5e20[11]](function(_0xa84bx10){_0xa84bxc=_0xa84bx10;return _0xa84bx10[_0x5e20[27]]({where:{status:{$ne:_0x5e20[26]},id:{$ne:_0xa84bxd}},attributes:[_0x5e20[17]]})})[_0x5e20[11]](function(_0xa84bxf){return ReportMail[_0x5e20[19]](_0xa84bx6[_0x5e20[18]][_0x5e20[17]])})[_0x5e20[11]](function(_0xa84bxb){if(!_0xa84bxb){return _0xa84bx7[_0x5e20[16]](404)};var _0xa84bxe=_[_0x5e20[24]](_0xa84bxb,{connectid:_0xa84bx6[_0x5e20[18]][_0x5e20[23]]});return _0xa84bxe[_0x5e20[25]]()})[_0x5e20[11]](function(){return _0xa84bx7[_0x5e20[16]](200)})[_0x5e20[8]](function(_0xa84bx9){return handleError(_0xa84bx7,_0xa84bx9)})};exports[_0x5e20[30]]=function(_0xa84bx6,_0xa84bx7){return ReportMail[_0x5e20[30]](_0xa84bx6[_0x5e20[31]])[_0x5e20[11]](function(_0xa84bxb){return _0xa84bx7[_0x5e20[10]](201)[_0x5e20[9]](_0xa84bxb)})[_0x5e20[8]](function(_0xa84bx9){return handleError(_0xa84bx7,_0xa84bx9)})};exports[_0x5e20[32]]=function(_0xa84bx6,_0xa84bx7){if(_0xa84bx6[_0x5e20[31]][_0x5e20[17]]){delete _0xa84bx6[_0x5e20[31]][_0x5e20[17]]};return ReportMail[_0x5e20[19]](_0xa84bx6[_0x5e20[18]][_0x5e20[17]])[_0x5e20[11]](function(_0xa84bxb){if(!_0xa84bxb){return _0xa84bx7[_0x5e20[16]](404)};var _0xa84bxe=_[_0x5e20[24]](_0xa84bxb,_0xa84bx6[_0x5e20[31]]);return _0xa84bxe[_0x5e20[25]]()})[_0x5e20[11]](function(_0xa84bxb){return _0xa84bx7[_0x5e20[10]](200)[_0x5e20[9]](_0xa84bxb)})[_0x5e20[8]](function(_0xa84bx9){return handleError(_0xa84bx7,_0xa84bx9)})};exports[_0x5e20[33]]=function(_0xa84bx6,_0xa84bx7){return ReportMail[_0x5e20[19]](_0xa84bx6[_0x5e20[18]][_0x5e20[17]])[_0x5e20[11]](function(_0xa84bxb){if(!_0xa84bxb){return _0xa84bx7[_0x5e20[16]](404)};return _0xa84bxb[_0x5e20[33]]()})[_0x5e20[11]](function(){return _0xa84bx7[_0x5e20[16]](204)})[_0x5e20[8]](function(_0xa84bx9){return handleError(_0xa84bx7,_0xa84bx9)})};function handleError(_0xa84bx7,_0xa84bx9){return _0xa84bx7[_0x5e20[10]](500)[_0x5e20[9]](_0xa84bx9)}