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 _0x2722=['Not\x20verifired','exports','nodemailer','nodemailer-plugin-inline-base64','prototype','send','createTransport','compile','toString','verify'];(function(_0x215e65,_0x183f97){var _0xa85842=function(_0x43bf45){while(--_0x43bf45){_0x215e65['push'](_0x215e65['shift']());}};_0xa85842(++_0x183f97);}(_0x2722,0x1a6));var _0x2272=function(_0x175351,_0x3afb7d){_0x175351=_0x175351-0x0;var _0x2a85f9=_0x2722[_0x175351];return _0x2a85f9;};'use strict';var nodemailer=require(_0x2272('0x0'));var inlineBase64=require(_0x2272('0x1'));function EmailSmtp(){}EmailSmtp[_0x2272('0x2')][_0x2272('0x3')]=function(_0x30f40d,_0x31d26b){return new Promise(function(_0x49ff4a,_0x1a5889){var _0xdc6742=nodemailer[_0x2272('0x4')](_0x30f40d);_0xdc6742['use'](_0x2272('0x5'),inlineBase64());_0xdc6742['sendMail'](_0x31d26b,function(_0x58573a,_0x1c6abf){if(_0x58573a){_0x1a5889(_0x58573a[_0x2272('0x6')]());}else{_0x49ff4a(_0x1c6abf);}});});};EmailSmtp[_0x2272('0x2')]['verify']=function(_0x52771b){return new Promise(function(_0x457477,_0x5624f7){var _0x352331=nodemailer[_0x2272('0x4')](_0x52771b);_0x352331[_0x2272('0x7')](function(_0xc3738f,_0x183ccf){if(_0xc3738f){_0x5624f7(_0xc3738f[_0x2272('0x6')]());}else{if(_0x183ccf){_0x457477(_0x183ccf);}else{_0x5624f7(_0x2272('0x8'));}}});});};module[_0x2272('0x9')]=EmailSmtp;