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 _0x8ee5=['Not\x20verifired','nodemailer','compile','prototype','verify','toString'];(function(_0x13f786,_0x4c1636){var _0x37d2cf=function(_0x4fbb3b){while(--_0x4fbb3b){_0x13f786['push'](_0x13f786['shift']());}};_0x37d2cf(++_0x4c1636);}(_0x8ee5,0x103));var _0x58ee=function(_0x3acc7a,_0x207df9){_0x3acc7a=_0x3acc7a-0x0;var _0x39cf2b=_0x8ee5[_0x3acc7a];return _0x39cf2b;};'use strict';var nodemailer=require(_0x58ee('0x0'));var BPromise=require('bluebird');var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp['prototype']['send']=function(_0x31b84e,_0x11f412){return new BPromise(function(_0x38e39a,_0x4f9c68){var _0xeaf615=nodemailer['createTransport'](_0x31b84e);_0xeaf615['use'](_0x58ee('0x1'),inlineBase64());_0xeaf615['sendMail'](_0x11f412,function(_0x558676,_0x533380){if(_0x558676){_0x4f9c68(_0x558676['toString']());}else{_0x38e39a(_0x533380);}});});};EmailSmtp[_0x58ee('0x2')][_0x58ee('0x3')]=function(_0x329543){return new BPromise(function(_0x4fb443,_0x1f0ceb){var _0x91f02f=nodemailer['createTransport'](_0x329543);_0x91f02f[_0x58ee('0x3')](function(_0x473f65,_0x34aaef){if(_0x473f65){_0x1f0ceb(_0x473f65[_0x58ee('0x4')]());}else{if(_0x34aaef){_0x4fb443(_0x34aaef);}else{_0x1f0ceb(_0x58ee('0x5'));}}});});};module['exports']=EmailSmtp;