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 _0x8de7=['use','compile','toString','verify','Not\x20verifired','exports','nodemailer','createTransport'];(function(_0x4b369d,_0x265eb8){var _0x571a98=function(_0x56341a){while(--_0x56341a){_0x4b369d['push'](_0x4b369d['shift']());}};_0x571a98(++_0x265eb8);}(_0x8de7,0x9e));var _0x78de=function(_0x446def,_0x4736db){_0x446def=_0x446def-0x0;var _0x296a53=_0x8de7[_0x446def];return _0x296a53;};'use strict';var nodemailer=require(_0x78de('0x0'));var BPromise=require('bluebird');var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp['prototype']['send']=function(_0x41ffdd,_0x4761b4){return new BPromise(function(_0x4ac233,_0x1693a7){var _0x5cb385=nodemailer[_0x78de('0x1')](_0x41ffdd);_0x5cb385[_0x78de('0x2')](_0x78de('0x3'),inlineBase64());_0x5cb385['sendMail'](_0x4761b4,function(_0x2a7a70,_0x586e35){if(_0x2a7a70){_0x1693a7(_0x2a7a70[_0x78de('0x4')]());}else{_0x4ac233(_0x586e35);}});});};EmailSmtp['prototype']['verify']=function(_0x16885b){return new BPromise(function(_0x1ca704,_0x412c98){var _0x14dd3c=nodemailer['createTransport'](_0x16885b);_0x14dd3c[_0x78de('0x5')](function(_0x361b52,_0x1ffb7e){if(_0x361b52){_0x412c98(_0x361b52['toString']());}else{if(_0x1ffb7e){_0x1ca704(_0x1ffb7e);}else{_0x412c98(_0x78de('0x6'));}}});});};module[_0x78de('0x7')]=EmailSmtp;