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 _0x1e94=['createTransport','use','sendMail','toString','verify','Not\x20verifired','nodemailer-plugin-inline-base64','prototype','send'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1e94,0xba));var _0x41e9=function(_0x1f70c3,_0x2ee382){_0x1f70c3=_0x1f70c3-0x0;var _0x334017=_0x1e94[_0x1f70c3];return _0x334017;};'use strict';var nodemailer=require('nodemailer');var BPromise=require('bluebird');var inlineBase64=require(_0x41e9('0x0'));function EmailSmtp(){}EmailSmtp[_0x41e9('0x1')][_0x41e9('0x2')]=function(_0x356c89,_0xc5954a){return new BPromise(function(_0x4f09,_0x5b4919){var _0x5be891=nodemailer[_0x41e9('0x3')](_0x356c89);_0x5be891[_0x41e9('0x4')]('compile',inlineBase64());_0x5be891[_0x41e9('0x5')](_0xc5954a,function(_0x20be52,_0x1a6484){if(_0x20be52){_0x5b4919(_0x20be52[_0x41e9('0x6')]());}else{_0x4f09(_0x1a6484);}});});};EmailSmtp[_0x41e9('0x1')][_0x41e9('0x7')]=function(_0x16bbd7){return new BPromise(function(_0x25b1c8,_0x28c694){var _0x267e96=nodemailer[_0x41e9('0x3')](_0x16bbd7);_0x267e96[_0x41e9('0x7')](function(_0x4a9374,_0x441d30){if(_0x4a9374){_0x28c694(_0x4a9374['toString']());}else{if(_0x441d30){_0x25b1c8(_0x441d30);}else{_0x28c694(_0x41e9('0x8'));}}});});};module['exports']=EmailSmtp;