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 _0xea4c=['Not\x20verifired','exports','nodemailer','nodemailer-plugin-inline-base64','prototype','send','createTransport','use','compile','sendMail','toString','verify'];(function(_0x5c0a70,_0x15df2a){var _0x41f967=function(_0x218bd4){while(--_0x218bd4){_0x5c0a70['push'](_0x5c0a70['shift']());}};_0x41f967(++_0x15df2a);}(_0xea4c,0xc2));var _0xcea4=function(_0x5912f4,_0x47f81e){_0x5912f4=_0x5912f4-0x0;var _0x31a301=_0xea4c[_0x5912f4];return _0x31a301;};'use strict';var nodemailer=require(_0xcea4('0x0'));var inlineBase64=require(_0xcea4('0x1'));function EmailSmtp(){}EmailSmtp[_0xcea4('0x2')][_0xcea4('0x3')]=function(_0x3ed1cd,_0x12d651){return new Promise(function(_0x570155,_0x2e9ef1){var _0x2b19c9=nodemailer[_0xcea4('0x4')](_0x3ed1cd);_0x2b19c9[_0xcea4('0x5')](_0xcea4('0x6'),inlineBase64());_0x2b19c9[_0xcea4('0x7')](_0x12d651,function(_0x7d1a9f,_0xde5e89){if(_0x7d1a9f){_0x2e9ef1(_0x7d1a9f[_0xcea4('0x8')]());}else{_0x570155(_0xde5e89);}});});};EmailSmtp['prototype'][_0xcea4('0x9')]=function(_0x5e9f04){return new Promise(function(_0x42c702,_0x344cb3){var _0x20ad39=nodemailer['createTransport'](_0x5e9f04);_0x20ad39[_0xcea4('0x9')](function(_0x16c6c8,_0x4c14cf){if(_0x16c6c8){_0x344cb3(_0x16c6c8[_0xcea4('0x8')]());}else{if(_0x4c14cf){_0x42c702(_0x4c14cf);}else{_0x344cb3(_0xcea4('0xa'));}}});});};module[_0xcea4('0xb')]=EmailSmtp;