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 _0xf5d6=['verify','Not\x20verifired','exports','nodemailer','bluebird','prototype','createTransport','use','sendMail'];(function(_0x339dcf,_0x4cc8d9){var _0x37ed68=function(_0x1e8137){while(--_0x1e8137){_0x339dcf['push'](_0x339dcf['shift']());}};_0x37ed68(++_0x4cc8d9);}(_0xf5d6,0xc9));var _0x6f5d=function(_0xce03e1,_0x67d8c8){_0xce03e1=_0xce03e1-0x0;var _0x1a4756=_0xf5d6[_0xce03e1];return _0x1a4756;};'use strict';var nodemailer=require(_0x6f5d('0x0'));var BPromise=require(_0x6f5d('0x1'));var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp[_0x6f5d('0x2')]['send']=function(_0x44861b,_0x27384e){return new BPromise(function(_0x2e6151,_0x1da592){var _0x3d1806=nodemailer[_0x6f5d('0x3')](_0x44861b);_0x3d1806[_0x6f5d('0x4')]('compile',inlineBase64());_0x3d1806[_0x6f5d('0x5')](_0x27384e,function(_0x45ef43,_0x246982){if(_0x45ef43){_0x1da592(_0x45ef43['toString']());}else{_0x2e6151(_0x246982);}});});};EmailSmtp[_0x6f5d('0x2')][_0x6f5d('0x6')]=function(_0x387b9e){return new BPromise(function(_0x1a1d5a,_0x1452cf){var _0xa430c7=nodemailer[_0x6f5d('0x3')](_0x387b9e);_0xa430c7['verify'](function(_0x3e292e,_0x36a766){if(_0x3e292e){_0x1452cf(_0x3e292e['toString']());}else{if(_0x36a766){_0x1a1d5a(_0x36a766);}else{_0x1452cf(_0x6f5d('0x7'));}}});});};module[_0x6f5d('0x8')]=EmailSmtp;