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 _0x91c5=['toString','verify','Not\x20verifired','exports','nodemailer','prototype','send','createTransport','use','compile','sendMail'];(function(_0x3a8697,_0x4e39e8){var _0xa4c873=function(_0x3479aa){while(--_0x3479aa){_0x3a8697['push'](_0x3a8697['shift']());}};_0xa4c873(++_0x4e39e8);}(_0x91c5,0x1f3));var _0x591c=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x91c5[_0x14add3];return _0x4a174f;};'use strict';var nodemailer=require(_0x591c('0x0'));var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp[_0x591c('0x1')][_0x591c('0x2')]=function(_0x5ef34a,_0x450d24){return new Promise(function(_0x396506,_0x4a4302){var _0x3ff08c=nodemailer[_0x591c('0x3')](_0x5ef34a);_0x3ff08c[_0x591c('0x4')](_0x591c('0x5'),inlineBase64());_0x3ff08c[_0x591c('0x6')](_0x450d24,function(_0x197a94,_0x11b6b4){if(_0x197a94){_0x4a4302(_0x197a94[_0x591c('0x7')]());}else{_0x396506(_0x11b6b4);}});});};EmailSmtp[_0x591c('0x1')][_0x591c('0x8')]=function(_0x550585){return new Promise(function(_0x5b5c1a,_0x504625){var _0x14baa3=nodemailer['createTransport'](_0x550585);_0x14baa3['verify'](function(_0x56ddb1,_0x2907f4){if(_0x56ddb1){_0x504625(_0x56ddb1[_0x591c('0x7')]());}else{if(_0x2907f4){_0x5b5c1a(_0x2907f4);}else{_0x504625(_0x591c('0x9'));}}});});};module[_0x591c('0xa')]=EmailSmtp;