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 _0x78d5=['compile','toString','verify','exports','nodemailer','prototype','send','createTransport'];(function(_0x399595,_0x4e92ae){var _0x509338=function(_0x1134f0){while(--_0x1134f0){_0x399595['push'](_0x399595['shift']());}};_0x509338(++_0x4e92ae);}(_0x78d5,0x1dc));var _0x578d=function(_0x44f72f,_0x3cdb11){_0x44f72f=_0x44f72f-0x0;var _0x215af3=_0x78d5[_0x44f72f];return _0x215af3;};'use strict';var nodemailer=require(_0x578d('0x0'));var inlineBase64=require('nodemailer-plugin-inline-base64');function EmailSmtp(){}EmailSmtp[_0x578d('0x1')][_0x578d('0x2')]=function(_0x2c3632,_0x30648b){return new Promise(function(_0x46a9aa,_0x42691a){var _0x554c69=nodemailer[_0x578d('0x3')](_0x2c3632);_0x554c69['use'](_0x578d('0x4'),inlineBase64());_0x554c69['sendMail'](_0x30648b,function(_0x1490b5,_0x2cae84){if(_0x1490b5){_0x42691a(_0x1490b5[_0x578d('0x5')]());}else{_0x46a9aa(_0x2cae84);}});});};EmailSmtp['prototype'][_0x578d('0x6')]=function(_0x51950f){return new Promise(function(_0x24ce08,_0x22bda2){var _0x204f0e=nodemailer[_0x578d('0x3')](_0x51950f);_0x204f0e[_0x578d('0x6')](function(_0x46188c,_0x257875){if(_0x46188c){_0x22bda2(_0x46188c['toString']());}else{if(_0x257875){_0x24ce08(_0x257875);}else{_0x22bda2('Not\x20verifired');}}});});};module[_0x578d('0x7')]=EmailSmtp;