Built motion from commit 8613b0174.|1.0.22
[motion.git] / server / api / mail_application / mail_application.controller.js
index 0ab813e..0c7feb0 100644 (file)
@@ -1 +1 @@
-var _0x1e72=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\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","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\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","\x71\x75\x65\x72\x79","\x70\x72\x69\x6F\x72\x69\x74\x79","\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","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x6D\x61\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x1e72[0];var _=require(_0x1e72[1]);var logger=require(_0x1e72[3])(_0x1e72[2]);var MailApplication=require(_0x1e72[5])[_0x1e72[4]];exports[_0x1e72[6]]= function(_0x63d3x4,_0x63d3x5,_0x63d3x6){return MailApplication[_0x1e72[13]]({where:_0x63d3x4[_0x1e72[11]],order:_0x1e72[12],include:[{all:true}]})[_0x1e72[10]](function(_0x63d3x8){return _0x63d3x5[_0x1e72[9]](200)[_0x1e72[8]](_0x63d3x8)})[_0x1e72[7]](function(_0x63d3x7){return handleError(_0x63d3x5,_0x63d3x7)})};exports[_0x1e72[14]]= function(_0x63d3x4,_0x63d3x5,_0x63d3x6){return MailApplication[_0x1e72[18]](_0x63d3x4[_0x1e72[17]][_0x1e72[16]],{include:[{all:true}]})[_0x1e72[10]](function(_0x63d3x9){if(!_0x63d3x9){return _0x63d3x5[_0x1e72[15]](404)};return _0x63d3x5[_0x1e72[8]](_0x63d3x9)})[_0x1e72[7]](function(_0x63d3x7){return handleError(_0x63d3x5,_0x63d3x7)})};exports[_0x1e72[19]]= function(_0x63d3x4,_0x63d3x5,_0x63d3x6){return MailApplication[_0x1e72[22]](_0x1e72[12],{where:{MailAccountId:_0x63d3x4[_0x1e72[20]][_0x1e72[21]]}})[_0x1e72[10]](function(_0x63d3xa){_0x63d3x4[_0x1e72[20]][_0x1e72[12]]= _0x63d3xa?++_0x63d3xa:1;return MailApplication[_0x1e72[19]](_0x63d3x4[_0x1e72[20]])})[_0x1e72[10]](function(_0x63d3x9){return _0x63d3x5[_0x1e72[9]](201)[_0x1e72[8]](_0x63d3x9)})[_0x1e72[7]](function(_0x63d3x7){return handleError(_0x63d3x5,_0x63d3x7)})};exports[_0x1e72[23]]= function(_0x63d3x4,_0x63d3x5,_0x63d3x6){if(_0x63d3x4[_0x1e72[20]][_0x1e72[16]]){delete _0x63d3x4[_0x1e72[20]][_0x1e72[16]]};return MailApplication[_0x1e72[18]](_0x63d3x4[_0x1e72[17]][_0x1e72[16]])[_0x1e72[10]](function(_0x63d3x9){if(!_0x63d3x9){return _0x63d3x5[_0x1e72[15]](404)};var _0x63d3xb=_[_0x1e72[24]](_0x63d3x9,_0x63d3x4[_0x1e72[20]]);return _0x63d3xb[_0x1e72[25]]()})[_0x1e72[10]](function(_0x63d3x9){return _0x63d3x5[_0x1e72[9]](200)[_0x1e72[8]](_0x63d3x9)})[_0x1e72[7]](function(_0x63d3x7){return handleError(_0x63d3x5,_0x63d3x7)})};exports[_0x1e72[26]]= function(_0x63d3x4,_0x63d3x5,_0x63d3x6){return MailApplication[_0x1e72[18]](_0x63d3x4[_0x1e72[17]][_0x1e72[16]])[_0x1e72[10]](function(_0x63d3x9){if(!_0x63d3x9){return _0x63d3x5[_0x1e72[15]](404)};return _0x63d3x9[_0x1e72[26]]()})[_0x1e72[10]](function(){return _0x63d3x5[_0x1e72[15]](204)})[_0x1e72[7]](function(_0x63d3x7){return handleError(_0x63d3x5,_0x63d3x7)})};function handleError(_0x63d3x5,_0x63d3x7){logger[_0x1e72[28]](_0x63d3x7[_0x1e72[27]]);return _0x63d3x5[_0x1e72[9]](500)[_0x1e72[8]](_0x63d3x7)}
\ No newline at end of file
+var _0xdf86=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\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","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\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","\x71\x75\x65\x72\x79","\x70\x72\x69\x6F\x72\x69\x74\x79","\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","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x6D\x61\x78","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xdf86[0];var _=require(_0xdf86[1]);var logger=require(_0xdf86[3])(_0xdf86[2]);var MailApplication=require(_0xdf86[5])[_0xdf86[4]];exports[_0xdf86[6]]= function(_0xb1cdx4,_0xb1cdx5,_0xb1cdx6){return MailApplication[_0xdf86[13]]({where:_0xb1cdx4[_0xdf86[11]],order:_0xdf86[12],include:[{all:true}]})[_0xdf86[10]](function(_0xb1cdx8){return _0xb1cdx5[_0xdf86[9]](200)[_0xdf86[8]](_0xb1cdx8)})[_0xdf86[7]](function(_0xb1cdx7){return handleError(_0xb1cdx5,_0xb1cdx7)})};exports[_0xdf86[14]]= function(_0xb1cdx4,_0xb1cdx5,_0xb1cdx6){return MailApplication[_0xdf86[18]](_0xb1cdx4[_0xdf86[17]][_0xdf86[16]],{include:[{all:true}]})[_0xdf86[10]](function(_0xb1cdx9){if(!_0xb1cdx9){return _0xb1cdx5[_0xdf86[15]](404)};return _0xb1cdx5[_0xdf86[8]](_0xb1cdx9)})[_0xdf86[7]](function(_0xb1cdx7){return handleError(_0xb1cdx5,_0xb1cdx7)})};exports[_0xdf86[19]]= function(_0xb1cdx4,_0xb1cdx5,_0xb1cdx6){return MailApplication[_0xdf86[22]](_0xdf86[12],{where:{MailAccountId:_0xb1cdx4[_0xdf86[20]][_0xdf86[21]]}})[_0xdf86[10]](function(_0xb1cdxa){_0xb1cdx4[_0xdf86[20]][_0xdf86[12]]= _0xb1cdxa?++_0xb1cdxa:1;return MailApplication[_0xdf86[19]](_0xb1cdx4[_0xdf86[20]])})[_0xdf86[10]](function(_0xb1cdx9){return _0xb1cdx5[_0xdf86[9]](201)[_0xdf86[8]](_0xb1cdx9)})[_0xdf86[7]](function(_0xb1cdx7){return handleError(_0xb1cdx5,_0xb1cdx7)})};exports[_0xdf86[23]]= function(_0xb1cdx4,_0xb1cdx5,_0xb1cdx6){if(_0xb1cdx4[_0xdf86[20]][_0xdf86[16]]){delete _0xb1cdx4[_0xdf86[20]][_0xdf86[16]]};return MailApplication[_0xdf86[18]](_0xb1cdx4[_0xdf86[17]][_0xdf86[16]])[_0xdf86[10]](function(_0xb1cdx9){if(!_0xb1cdx9){return _0xb1cdx5[_0xdf86[15]](404)};var _0xb1cdxb=_[_0xdf86[24]](_0xb1cdx9,_0xb1cdx4[_0xdf86[20]]);return _0xb1cdxb[_0xdf86[25]]()})[_0xdf86[10]](function(_0xb1cdx9){return _0xb1cdx5[_0xdf86[9]](200)[_0xdf86[8]](_0xb1cdx9)})[_0xdf86[7]](function(_0xb1cdx7){return handleError(_0xb1cdx5,_0xb1cdx7)})};exports[_0xdf86[26]]= function(_0xb1cdx4,_0xb1cdx5,_0xb1cdx6){return MailApplication[_0xdf86[18]](_0xb1cdx4[_0xdf86[17]][_0xdf86[16]])[_0xdf86[10]](function(_0xb1cdx9){if(!_0xb1cdx9){return _0xb1cdx5[_0xdf86[15]](404)};return _0xb1cdx9[_0xdf86[26]]()})[_0xdf86[10]](function(){return _0xb1cdx5[_0xdf86[15]](204)})[_0xdf86[7]](function(_0xb1cdx7){return handleError(_0xb1cdx5,_0xb1cdx7)})};function handleError(_0xb1cdx5,_0xb1cdx7){logger[_0xdf86[28]](_0xb1cdx7[_0xdf86[27]]);return _0xb1cdx5[_0xdf86[9]](500)[_0xdf86[8]](_0xb1cdx7)}
\ No newline at end of file