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 _0x17b3=['Not\x20verifired','exports','nodemailer','nodemailer-plugin-inline-base64','prototype','send','createTransport','use','compile','sendMail','toString','verify'];(function(_0x316170,_0x5e062d){var _0x4040a8=function(_0x445c5f){while(--_0x445c5f){_0x316170['push'](_0x316170['shift']());}};_0x4040a8(++_0x5e062d);}(_0x17b3,0xb6));var _0x317b=function(_0x21e2f5,_0x3840be){_0x21e2f5=_0x21e2f5-0x0;var _0x13a80e=_0x17b3[_0x21e2f5];return _0x13a80e;};'use strict';var nodemailer=require(_0x317b('0x0'));var inlineBase64=require(_0x317b('0x1'));function EmailSmtp(){}EmailSmtp[_0x317b('0x2')][_0x317b('0x3')]=function(_0x8761c5,_0x30842f){return new Promise(function(_0x56bb4e,_0x355a13){var _0x58e568=nodemailer[_0x317b('0x4')](_0x8761c5);_0x58e568[_0x317b('0x5')](_0x317b('0x6'),inlineBase64());_0x58e568[_0x317b('0x7')](_0x30842f,function(_0x4ca201,_0x5557ce){if(_0x4ca201){_0x355a13(_0x4ca201[_0x317b('0x8')]());}else{_0x56bb4e(_0x5557ce);}});});};EmailSmtp['prototype'][_0x317b('0x9')]=function(_0x5bda02){return new Promise(function(_0x3cc4e9,_0x182056){var _0x17aab2=nodemailer['createTransport'](_0x5bda02);_0x17aab2[_0x317b('0x9')](function(_0x31d18a,_0x297df5){if(_0x31d18a){_0x182056(_0x31d18a[_0x317b('0x8')]());}else{if(_0x297df5){_0x3cc4e9(_0x297df5);}else{_0x182056(_0x317b('0xa'));}}});});};module[_0x317b('0xb')]=EmailSmtp;