1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0xbc9e=['bluebird','prototype','send','createTransport','use','compile','toString','verify','nodemailer'];(function(_0x3c59fc,_0x10dbd2){var _0x2b78d4=function(_0x5f161a){while(--_0x5f161a){_0x3c59fc['push'](_0x3c59fc['shift']());}};_0x2b78d4(++_0x10dbd2);}(_0xbc9e,0x18b));var _0xebc9=function(_0x2dea24,_0x2fc021){_0x2dea24=_0x2dea24-0x0;var _0x309d58=_0xbc9e[_0x2dea24];return _0x309d58;};'use strict';var nodemailer=require(_0xebc9('0x0'));var BPromise=require(_0xebc9('0x1'));var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp[_0xebc9('0x2')][_0xebc9('0x3')]=function(_0x28dfa0,_0xbb90a8){return new BPromise(function(_0x3c2702,_0x4c6d06){var _0x46e39e=nodemailer[_0xebc9('0x4')](_0x28dfa0);_0x46e39e[_0xebc9('0x5')](_0xebc9('0x6'),inlineBase64());_0x46e39e['sendMail'](_0xbb90a8,function(_0x35b018,_0x9cbf72){if(_0x35b018){_0x4c6d06(_0x35b018[_0xebc9('0x7')]());}else{_0x3c2702(_0x9cbf72);}});});};EmailSmtp['prototype'][_0xebc9('0x8')]=function(_0x3c7a30){return new BPromise(function(_0x2026cc,_0x496222){var _0x5b1572=nodemailer['createTransport'](_0x3c7a30);_0x5b1572[_0xebc9('0x8')](function(_0x32119c,_0x1cfde4){if(_0x32119c){_0x496222(_0x32119c[_0xebc9('0x7')]());}else{if(_0x1cfde4){_0x2026cc(_0x1cfde4);}else{_0x496222('Not\x20verifired');}}});});};module['exports']=EmailSmtp;