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 _0x7ab4=['createTransport','use','compile','sendMail','toString','verify','exports','nodemailer','nodemailer-plugin-inline-base64','send'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x7ab4,0xb1));var _0x47ab=function(_0x589002,_0x1c9c42){_0x589002=_0x589002-0x0;var _0x1ebe5a=_0x7ab4[_0x589002];return _0x1ebe5a;};'use strict';var nodemailer=require(_0x47ab('0x0'));var inlineBase64=require(_0x47ab('0x1'));function EmailSmtp(){}EmailSmtp['prototype'][_0x47ab('0x2')]=function(_0x3c7e83,_0x170431){return new Promise(function(_0x1e21ac,_0x45438f){var _0x835a84=nodemailer[_0x47ab('0x3')](_0x3c7e83);_0x835a84[_0x47ab('0x4')](_0x47ab('0x5'),inlineBase64());_0x835a84[_0x47ab('0x6')](_0x170431,function(_0x4deb0d,_0x1970a6){if(_0x4deb0d){_0x45438f(_0x4deb0d[_0x47ab('0x7')]());}else{_0x1e21ac(_0x1970a6);}});});};EmailSmtp['prototype'][_0x47ab('0x8')]=function(_0x3af829){return new Promise(function(_0x4196ac,_0x7941b3){var _0x2cceff=nodemailer[_0x47ab('0x3')](_0x3af829);_0x2cceff['verify'](function(_0xcf585b,_0x233b51){if(_0xcf585b){_0x7941b3(_0xcf585b['toString']());}else{if(_0x233b51){_0x4196ac(_0x233b51);}else{_0x7941b3('Not\x20verifired');}}});});};module[_0x47ab('0x9')]=EmailSmtp;