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 _0x3b72=['toString','exports','nodemailer','nodemailer-plugin-inline-base64','prototype','send','createTransport','use','verify'];(function(_0x46698a,_0x8de1e4){var _0x356db0=function(_0x19e83c){while(--_0x19e83c){_0x46698a['push'](_0x46698a['shift']());}};_0x356db0(++_0x8de1e4);}(_0x3b72,0x18e));var _0x23b7=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x3b72[_0x3b380d];return _0x54502b;};'use strict';var nodemailer=require(_0x23b7('0x0'));var BPromise=require('bluebird');var inlineBase64=require(_0x23b7('0x1'));function EmailSmtp(){}EmailSmtp[_0x23b7('0x2')][_0x23b7('0x3')]=function(_0x1dcc12,_0x1ee6aa){return new BPromise(function(_0xd36970,_0x431b43){var _0x9fd217=nodemailer[_0x23b7('0x4')](_0x1dcc12);_0x9fd217[_0x23b7('0x5')]('compile',inlineBase64());_0x9fd217['sendMail'](_0x1ee6aa,function(_0x121f49,_0x547864){if(_0x121f49){_0x431b43(_0x121f49['toString']());}else{_0xd36970(_0x547864);}});});};EmailSmtp[_0x23b7('0x2')]['verify']=function(_0x40fb15){return new BPromise(function(_0x4d26c9,_0x336809){var _0x593d78=nodemailer[_0x23b7('0x4')](_0x40fb15);_0x593d78[_0x23b7('0x6')](function(_0x1244f1,_0x4b478f){if(_0x1244f1){_0x336809(_0x1244f1[_0x23b7('0x7')]());}else{if(_0x4b478f){_0x4d26c9(_0x4b478f);}else{_0x336809('Not\x20verifired');}}});});};module[_0x23b7('0x8')]=EmailSmtp;