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 _0x6985=['sendMail','toString','verify','Not\x20verifired','exports','nodemailer','bluebird','prototype','createTransport','use','compile'];(function(_0x2aed6f,_0x27120){var _0x6e07da=function(_0xcdbc0d){while(--_0xcdbc0d){_0x2aed6f['push'](_0x2aed6f['shift']());}};_0x6e07da(++_0x27120);}(_0x6985,0xc0));var _0x5698=function(_0x4aa46c,_0x566fce){_0x4aa46c=_0x4aa46c-0x0;var _0x3fe985=_0x6985[_0x4aa46c];return _0x3fe985;};'use strict';var nodemailer=require(_0x5698('0x0'));var BPromise=require(_0x5698('0x1'));var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp[_0x5698('0x2')]['send']=function(_0x1a9d30,_0x6743ba){return new BPromise(function(_0x3cd705,_0x1fe7b4){var _0x1379c3=nodemailer[_0x5698('0x3')](_0x1a9d30);_0x1379c3[_0x5698('0x4')](_0x5698('0x5'),inlineBase64());_0x1379c3[_0x5698('0x6')](_0x6743ba,function(_0x15a079,_0x214ff0){if(_0x15a079){_0x1fe7b4(_0x15a079[_0x5698('0x7')]());}else{_0x3cd705(_0x214ff0);}});});};EmailSmtp[_0x5698('0x2')][_0x5698('0x8')]=function(_0x2c5e24){return new BPromise(function(_0x18f275,_0x2f6f4f){var _0x8799fa=nodemailer['createTransport'](_0x2c5e24);_0x8799fa[_0x5698('0x8')](function(_0x2846ad,_0x352228){if(_0x2846ad){_0x2f6f4f(_0x2846ad[_0x5698('0x7')]());}else{if(_0x352228){_0x18f275(_0x352228);}else{_0x2f6f4f(_0x5698('0x9'));}}});});};module[_0x5698('0xa')]=EmailSmtp;