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 _0xdf39=['exports','nodemailer','bluebird','prototype','send','createTransport','use','compile','toString','verify','Not\x20verifired'];(function(_0x208c96,_0x19122d){var _0x3c8b5b=function(_0x273e32){while(--_0x273e32){_0x208c96['push'](_0x208c96['shift']());}};_0x3c8b5b(++_0x19122d);}(_0xdf39,0xc7));var _0x9df3=function(_0x2690ff,_0x4895e6){_0x2690ff=_0x2690ff-0x0;var _0x4c4faa=_0xdf39[_0x2690ff];return _0x4c4faa;};'use strict';var nodemailer=require(_0x9df3('0x0'));var BPromise=require(_0x9df3('0x1'));var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp[_0x9df3('0x2')][_0x9df3('0x3')]=function(_0xe502de,_0x52a217){return new BPromise(function(_0x10828f,_0x1fda17){var _0x4592a1=nodemailer[_0x9df3('0x4')](_0xe502de);_0x4592a1[_0x9df3('0x5')](_0x9df3('0x6'),inlineBase64());_0x4592a1['sendMail'](_0x52a217,function(_0x1a8c50,_0x40492f){if(_0x1a8c50){_0x1fda17(_0x1a8c50[_0x9df3('0x7')]());}else{_0x10828f(_0x40492f);}});});};EmailSmtp[_0x9df3('0x2')][_0x9df3('0x8')]=function(_0x528263){return new BPromise(function(_0x16d903,_0x15a6a7){var _0x326778=nodemailer[_0x9df3('0x4')](_0x528263);_0x326778['verify'](function(_0x5a7921,_0x347e87){if(_0x5a7921){_0x15a6a7(_0x5a7921[_0x9df3('0x7')]());}else{if(_0x347e87){_0x16d903(_0x347e87);}else{_0x15a6a7(_0x9df3('0x9'));}}});});};module[_0x9df3('0xa')]=EmailSmtp;