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 _0x783f=['nodemailer-plugin-inline-base64','prototype','send','use','compile','sendMail','toString','verify','Not\x20verifired','exports','nodemailer'];(function(_0x356fae,_0x48349c){var _0x4310de=function(_0x5f13b9){while(--_0x5f13b9){_0x356fae['push'](_0x356fae['shift']());}};_0x4310de(++_0x48349c);}(_0x783f,0xc5));var _0xf783=function(_0x193b70,_0x3fcc65){_0x193b70=_0x193b70-0x0;var _0x46c023=_0x783f[_0x193b70];return _0x46c023;};'use strict';var nodemailer=require(_0xf783('0x0'));var inlineBase64=require(_0xf783('0x1'));function EmailSmtp(){}EmailSmtp[_0xf783('0x2')][_0xf783('0x3')]=function(_0x5f2c8a,_0x1e6189){return new Promise(function(_0x5a722d,_0x115fb9){var _0x1b0370=nodemailer['createTransport'](_0x5f2c8a);_0x1b0370[_0xf783('0x4')](_0xf783('0x5'),inlineBase64());_0x1b0370[_0xf783('0x6')](_0x1e6189,function(_0x11deb5,_0x2dd30c){if(_0x11deb5){_0x115fb9(_0x11deb5[_0xf783('0x7')]());}else{_0x5a722d(_0x2dd30c);}});});};EmailSmtp[_0xf783('0x2')][_0xf783('0x8')]=function(_0x316515){return new Promise(function(_0x1b221a,_0x39a250){var _0xe868e6=nodemailer['createTransport'](_0x316515);_0xe868e6[_0xf783('0x8')](function(_0xe4bb3b,_0x5f17b8){if(_0xe4bb3b){_0x39a250(_0xe4bb3b[_0xf783('0x7')]());}else{if(_0x5f17b8){_0x1b221a(_0x5f17b8);}else{_0x39a250(_0xf783('0x9'));}}});});};module[_0xf783('0xa')]=EmailSmtp;