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 _0xbeeb=['bluebird','prototype','createTransport','use','sendMail','toString','verify','Not\x20verifired','exports','nodemailer'];(function(_0x11a962,_0x3cc338){var _0x55d423=function(_0xf4b236){while(--_0xf4b236){_0x11a962['push'](_0x11a962['shift']());}};_0x55d423(++_0x3cc338);}(_0xbeeb,0x95));var _0xbbee=function(_0x28330e,_0x369b44){_0x28330e=_0x28330e-0x0;var _0x3b82dc=_0xbeeb[_0x28330e];return _0x3b82dc;};'use strict';var nodemailer=require(_0xbbee('0x0'));var BPromise=require(_0xbbee('0x1'));var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp[_0xbbee('0x2')]['send']=function(_0x5bb4cd,_0xb204ec){return new BPromise(function(_0x4f6778,_0x48debf){var _0x15a708=nodemailer[_0xbbee('0x3')](_0x5bb4cd);_0x15a708[_0xbbee('0x4')]('compile',inlineBase64());_0x15a708[_0xbbee('0x5')](_0xb204ec,function(_0x1962c1,_0x326d45){if(_0x1962c1){_0x48debf(_0x1962c1[_0xbbee('0x6')]());}else{_0x4f6778(_0x326d45);}});});};EmailSmtp[_0xbbee('0x2')][_0xbbee('0x7')]=function(_0x308f93){return new BPromise(function(_0x1cd665,_0x45883b){var _0x34af02=nodemailer[_0xbbee('0x3')](_0x308f93);_0x34af02['verify'](function(_0x3642ac,_0x539f57){if(_0x3642ac){_0x45883b(_0x3642ac[_0xbbee('0x6')]());}else{if(_0x539f57){_0x1cd665(_0x539f57);}else{_0x45883b(_0xbbee('0x8'));}}});});};module[_0xbbee('0x9')]=EmailSmtp;