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 _0xf7e5=['nodemailer-plugin-inline-base64','send','createTransport','toString','prototype','verify','Not\x20verifired','exports'];(function(_0x2a162e,_0x2ab800){var _0x47b0e0=function(_0xd6f211){while(--_0xd6f211){_0x2a162e['push'](_0x2a162e['shift']());}};_0x47b0e0(++_0x2ab800);}(_0xf7e5,0xd8));var _0x5f7e=function(_0x2bf1df,_0x280bc1){_0x2bf1df=_0x2bf1df-0x0;var _0x507f7d=_0xf7e5[_0x2bf1df];return _0x507f7d;};'use strict';var nodemailer=require('nodemailer');var inlineBase64=require(_0x5f7e('0x0'));function EmailSmtp(){}EmailSmtp['prototype'][_0x5f7e('0x1')]=function(_0x2d91b2,_0x2a7fad){return new Promise(function(_0x4061ea,_0x87ce17){var _0x43dc57=nodemailer[_0x5f7e('0x2')](_0x2d91b2);_0x43dc57['use']('compile',inlineBase64());_0x43dc57['sendMail'](_0x2a7fad,function(_0x2ce6bc,_0x422ce4){if(_0x2ce6bc){_0x87ce17(_0x2ce6bc[_0x5f7e('0x3')]());}else{_0x4061ea(_0x422ce4);}});});};EmailSmtp[_0x5f7e('0x4')][_0x5f7e('0x5')]=function(_0x117ba8){return new Promise(function(_0x3bf61e,_0x4043d0){var _0x45bd2f=nodemailer[_0x5f7e('0x2')](_0x117ba8);_0x45bd2f[_0x5f7e('0x5')](function(_0x5e8fc1,_0x6262ac){if(_0x5e8fc1){_0x4043d0(_0x5e8fc1[_0x5f7e('0x3')]());}else{if(_0x6262ac){_0x3bf61e(_0x6262ac);}else{_0x4043d0(_0x5f7e('0x6'));}}});});};module[_0x5f7e('0x7')]=EmailSmtp;