Built motion from commit 3537c3f88.|1.0.22
[motion.git] / server / api / mail_attachment / mail_attachment.controller.js
index f55ab64..703506b 100644 (file)
@@ -1 +1 @@
-var _0xdf19=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x66\x73","\x66\x6F\x72\x6D\x69\x64\x61\x62\x6C\x65","\x62\x6C\x75\x65\x62\x69\x72\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\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\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\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\x46\x69\x6C\x65","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x6C\x6F\x61\x64\x44\x69\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x6A\x6F\x69\x6E","\x6B\x65\x65\x70\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x6D\x75\x6C\x74\x69\x70\x6C\x65\x73","\x68\x61\x73\x68","\x73\x69\x7A\x65","\x66\x69\x6C\x65","\x6E\x61\x6D\x65","\x74\x79\x70\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x70\x61\x72\x73\x65","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x75\x6E\x6C\x69\x6E\x6B","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xdf19[0];var _=require(_0xdf19[1]);var path=require(_0xdf19[2]);var fs=require(_0xdf19[3]);var formidable=require(_0xdf19[4]);var Promise=require(_0xdf19[5]);var config=require(_0xdf19[6]);var logger=require(_0xdf19[8])(_0xdf19[7]);var MailAttachment=require(_0xdf19[10])[_0xdf19[9]];exports[_0xdf19[11]]= function(_0x1917x9,_0x1917xa,_0x1917xb){return MailAttachment[_0xdf19[16]]()[_0xdf19[15]](function(_0x1917xd){return _0x1917xa[_0xdf19[14]](200)[_0xdf19[13]](_0x1917xd)})[_0xdf19[12]](function(_0x1917xc){return handleError(_0x1917xa,_0x1917xc)})};exports[_0xdf19[17]]= function(_0x1917x9,_0x1917xa,_0x1917xb){return MailAttachment[_0xdf19[21]](_0x1917x9[_0xdf19[20]][_0xdf19[19]])[_0xdf19[15]](function(_0x1917xe){return _0x1917xa[_0xdf19[18]](_0x1917xe[_0xdf19[2]])})[_0xdf19[12]](function(_0x1917xc){return handleError(_0x1917xa,_0x1917xc)})};exports[_0xdf19[22]]= function(_0x1917x9,_0x1917xa,_0x1917xb){var _0x1917xf= new formidable.IncomingForm();_0x1917xf[_0xdf19[23]]= path[_0xdf19[28]](config[_0xdf19[24]],_0xdf19[25],_0xdf19[26],_0xdf19[27]);_0x1917xf[_0xdf19[29]]= true;_0x1917xf[_0xdf19[30]]= true;_0x1917xf[_0xdf19[31]]= true;_0x1917xf[_0xdf19[37]](_0x1917x9,function(_0x1917xc,_0x1917xf,_0x1917x10){if(_0x1917xc){return _0x1917xa[_0xdf19[14]](500)[_0xdf19[13]](_0x1917xc)};return _0x1917xa[_0xdf19[14]](201)[_0xdf19[13]]({size:_0x1917x10[_0xdf19[33]][_0xdf19[32]],path:_0x1917x10[_0xdf19[33]][_0xdf19[2]],name:_0x1917x10[_0xdf19[33]][_0xdf19[34]],type:_0x1917x10[_0xdf19[33]][_0xdf19[35]],basename:path[_0xdf19[36]](_0x1917x10[_0xdf19[33]][_0xdf19[2]])})})};exports[_0xdf19[38]]= function(_0x1917x9,_0x1917xa,_0x1917xb){if(_0x1917x9[_0xdf19[39]][_0xdf19[19]]){delete _0x1917x9[_0xdf19[39]][_0xdf19[19]]};return MailAttachment[_0xdf19[21]](_0x1917x9[_0xdf19[20]][_0xdf19[19]])[_0xdf19[15]](function(_0x1917xe){if(!_0x1917xe){return _0x1917xa[_0xdf19[40]](404)};var _0x1917x11=_[_0xdf19[41]](_0x1917xe,_0x1917x9[_0xdf19[39]]);return _0x1917x11[_0xdf19[42]]()})[_0xdf19[15]](function(_0x1917xe){return _0x1917xa[_0xdf19[14]](200)[_0xdf19[13]](_0x1917xe)})[_0xdf19[12]](function(_0x1917xc){return handleError(_0x1917xa,_0x1917xc)})};exports[_0xdf19[43]]= function(_0x1917x9,_0x1917xa,_0x1917xb){var _0x1917x12=Promise[_0xdf19[45]](require(_0xdf19[3])[_0xdf19[44]]);var _0x1917x13=path[_0xdf19[28]](config[_0xdf19[24]],_0xdf19[25],_0xdf19[26],_0xdf19[27],_0x1917x9[_0xdf19[20]][_0xdf19[19]]);return _0x1917x12(_0x1917x13)[_0xdf19[15]](function(){return _0x1917xa[_0xdf19[40]](204)})[_0xdf19[12]](function(_0x1917xc){return handleError(_0x1917xa,_0x1917xc)})};function handleError(_0x1917xa,_0x1917xc){logger[_0xdf19[47]](_0x1917xc[_0xdf19[46]]);return _0x1917xa[_0xdf19[14]](500)[_0xdf19[13]](_0x1917xc)}
\ No newline at end of file
+var _0x19f6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x70\x61\x74\x68","\x66\x73","\x66\x6F\x72\x6D\x69\x64\x61\x62\x6C\x65","\x62\x6C\x75\x65\x62\x69\x72\x64","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\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\x74\x74\x61\x63\x68\x6D\x65\x6E\x74","\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\x46\x69\x6C\x65","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x75\x70\x6C\x6F\x61\x64\x44\x69\x72","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x61\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x6A\x6F\x69\x6E","\x6B\x65\x65\x70\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73","\x6D\x75\x6C\x74\x69\x70\x6C\x65\x73","\x68\x61\x73\x68","\x73\x69\x7A\x65","\x66\x69\x6C\x65","\x6E\x61\x6D\x65","\x74\x79\x70\x65","\x62\x61\x73\x65\x6E\x61\x6D\x65","\x70\x61\x72\x73\x65","\x75\x70\x64\x61\x74\x65","\x62\x6F\x64\x79","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x75\x6E\x6C\x69\x6E\x6B","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x19f6[0];var _=require(_0x19f6[1]);var path=require(_0x19f6[2]);var fs=require(_0x19f6[3]);var formidable=require(_0x19f6[4]);var Promise=require(_0x19f6[5]);var config=require(_0x19f6[6]);var logger=require(_0x19f6[8])(_0x19f6[7]);var MailAttachment=require(_0x19f6[10])[_0x19f6[9]];exports[_0x19f6[11]]= function(_0x73c1x9,_0x73c1xa,_0x73c1xb){return MailAttachment[_0x19f6[16]]()[_0x19f6[15]](function(_0x73c1xd){return _0x73c1xa[_0x19f6[14]](200)[_0x19f6[13]](_0x73c1xd)})[_0x19f6[12]](function(_0x73c1xc){return handleError(_0x73c1xa,_0x73c1xc)})};exports[_0x19f6[17]]= function(_0x73c1x9,_0x73c1xa,_0x73c1xb){return MailAttachment[_0x19f6[21]](_0x73c1x9[_0x19f6[20]][_0x19f6[19]])[_0x19f6[15]](function(_0x73c1xe){return _0x73c1xa[_0x19f6[18]](_0x73c1xe[_0x19f6[2]])})[_0x19f6[12]](function(_0x73c1xc){return handleError(_0x73c1xa,_0x73c1xc)})};exports[_0x19f6[22]]= function(_0x73c1x9,_0x73c1xa,_0x73c1xb){var _0x73c1xf= new formidable.IncomingForm();_0x73c1xf[_0x19f6[23]]= path[_0x19f6[28]](config[_0x19f6[24]],_0x19f6[25],_0x19f6[26],_0x19f6[27]);_0x73c1xf[_0x19f6[29]]= true;_0x73c1xf[_0x19f6[30]]= true;_0x73c1xf[_0x19f6[31]]= true;_0x73c1xf[_0x19f6[37]](_0x73c1x9,function(_0x73c1xc,_0x73c1xf,_0x73c1x10){if(_0x73c1xc){return _0x73c1xa[_0x19f6[14]](500)[_0x19f6[13]](_0x73c1xc)};return _0x73c1xa[_0x19f6[14]](201)[_0x19f6[13]]({size:_0x73c1x10[_0x19f6[33]][_0x19f6[32]],path:_0x73c1x10[_0x19f6[33]][_0x19f6[2]],name:_0x73c1x10[_0x19f6[33]][_0x19f6[34]],type:_0x73c1x10[_0x19f6[33]][_0x19f6[35]],basename:path[_0x19f6[36]](_0x73c1x10[_0x19f6[33]][_0x19f6[2]])})})};exports[_0x19f6[38]]= function(_0x73c1x9,_0x73c1xa,_0x73c1xb){if(_0x73c1x9[_0x19f6[39]][_0x19f6[19]]){delete _0x73c1x9[_0x19f6[39]][_0x19f6[19]]};return MailAttachment[_0x19f6[21]](_0x73c1x9[_0x19f6[20]][_0x19f6[19]])[_0x19f6[15]](function(_0x73c1xe){if(!_0x73c1xe){return _0x73c1xa[_0x19f6[40]](404)};var _0x73c1x11=_[_0x19f6[41]](_0x73c1xe,_0x73c1x9[_0x19f6[39]]);return _0x73c1x11[_0x19f6[42]]()})[_0x19f6[15]](function(_0x73c1xe){return _0x73c1xa[_0x19f6[14]](200)[_0x19f6[13]](_0x73c1xe)})[_0x19f6[12]](function(_0x73c1xc){return handleError(_0x73c1xa,_0x73c1xc)})};exports[_0x19f6[43]]= function(_0x73c1x9,_0x73c1xa,_0x73c1xb){var _0x73c1x12=Promise[_0x19f6[45]](require(_0x19f6[3])[_0x19f6[44]]);var _0x73c1x13=path[_0x19f6[28]](config[_0x19f6[24]],_0x19f6[25],_0x19f6[26],_0x19f6[27],_0x73c1x9[_0x19f6[20]][_0x19f6[19]]);return _0x73c1x12(_0x73c1x13)[_0x19f6[15]](function(){return _0x73c1xa[_0x19f6[40]](204)})[_0x19f6[12]](function(_0x73c1xc){return handleError(_0x73c1xa,_0x73c1xc)})};function handleError(_0x73c1xa,_0x73c1xc){logger[_0x19f6[47]](_0x73c1xc[_0x19f6[46]]);return _0x73c1xa[_0x19f6[14]](500)[_0x19f6[13]](_0x73c1xc)}
\ No newline at end of file