Built motion from commit 775e2a94.|2.6.3
[motion2.git] / server / services / email / lib / smtp.js
index 86b6beb..5fcb8cf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3c15=['createTransport','Not\x20verifired','exports','nodemailer','prototype','compile','toString','verify'];(function(_0x166d93,_0x301f09){var _0xba708=function(_0x349bf7){while(--_0x349bf7){_0x166d93['push'](_0x166d93['shift']());}};_0xba708(++_0x301f09);}(_0x3c15,0x123));var _0x53c1=function(_0x2f7109,_0x44f210){_0x2f7109=_0x2f7109-0x0;var _0x34b004=_0x3c15[_0x2f7109];return _0x34b004;};'use strict';var nodemailer=require(_0x53c1('0x0'));var BPromise=require('bluebird');var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp[_0x53c1('0x1')]['send']=function(_0xe7fb6d,_0x2a2b79){return new BPromise(function(_0x2d986e,_0x147798){var _0x20cc3e=nodemailer['createTransport'](_0xe7fb6d);_0x20cc3e['use'](_0x53c1('0x2'),inlineBase64());_0x20cc3e['sendMail'](_0x2a2b79,function(_0x12f28a,_0x32a51b){if(_0x12f28a){_0x147798(_0x12f28a[_0x53c1('0x3')]());}else{_0x2d986e(_0x32a51b);}});});};EmailSmtp[_0x53c1('0x1')][_0x53c1('0x4')]=function(_0x530a35){return new BPromise(function(_0x1d3e3b,_0x10d4ba){var _0x445301=nodemailer[_0x53c1('0x5')](_0x530a35);_0x445301[_0x53c1('0x4')](function(_0x5a292f,_0x4dffb2){if(_0x5a292f){_0x10d4ba(_0x5a292f[_0x53c1('0x3')]());}else{if(_0x4dffb2){_0x1d3e3b(_0x4dffb2);}else{_0x10d4ba(_0x53c1('0x6'));}}});});};module[_0x53c1('0x7')]=EmailSmtp;
\ No newline at end of file
+var _0x3f64=['Not\x20verifired','exports','nodemailer','nodemailer-plugin-inline-base64','prototype','send','createTransport','use','compile','toString','verify'];(function(_0x45c221,_0x238d88){var _0x1febd7=function(_0x5b0ce2){while(--_0x5b0ce2){_0x45c221['push'](_0x45c221['shift']());}};_0x1febd7(++_0x238d88);}(_0x3f64,0x115));var _0x43f6=function(_0x1a6589,_0x18e486){_0x1a6589=_0x1a6589-0x0;var _0x275976=_0x3f64[_0x1a6589];return _0x275976;};'use strict';var nodemailer=require(_0x43f6('0x0'));var inlineBase64=require(_0x43f6('0x1'));function EmailSmtp(){}EmailSmtp[_0x43f6('0x2')][_0x43f6('0x3')]=function(_0x19cf06,_0x30912e){return new Promise(function(_0x51be82,_0x4bb286){var _0x1a962a=nodemailer[_0x43f6('0x4')](_0x19cf06);_0x1a962a[_0x43f6('0x5')](_0x43f6('0x6'),inlineBase64());_0x1a962a['sendMail'](_0x30912e,function(_0x4e8f68,_0x194ab4){if(_0x4e8f68){_0x4bb286(_0x4e8f68[_0x43f6('0x7')]());}else{_0x51be82(_0x194ab4);}});});};EmailSmtp[_0x43f6('0x2')]['verify']=function(_0x4b188c){return new Promise(function(_0x19c483,_0x232873){var _0x4e8320=nodemailer['createTransport'](_0x4b188c);_0x4e8320[_0x43f6('0x8')](function(_0x52ac66,_0x2e5f75){if(_0x52ac66){_0x232873(_0x52ac66['toString']());}else{if(_0x2e5f75){_0x19c483(_0x2e5f75);}else{_0x232873(_0x43f6('0x9'));}}});});};module[_0x43f6('0xa')]=EmailSmtp;
\ No newline at end of file