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 _0x74ca=['mail_accounts','provider','custom','service','host','port','secure','Smtp','authentication','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','data5','pass','define','MailAccount'];(function(_0x1b2715,_0x39327e){var _0x7c6fc6=function(_0x4c5993){while(--_0x4c5993){_0x1b2715['push'](_0x1b2715['shift']());}};_0x7c6fc6(++_0x39327e);}(_0x74ca,0x8e));var _0xa74c=function(_0x159ac0,_0x21912a){_0x159ac0=_0x159ac0-0x0;var _0x47cb70=_0x74ca[_0x159ac0];return _0x47cb70;};'use strict';var attributes=require('./mailAccount.attributes');module['exports']=function(_0x1a8a4a){return _0x1a8a4a[_0xa74c('0x0')](_0xa74c('0x1'),attributes,{'tableName':_0xa74c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x22c87a=this;var _0x375f3b={'id':_0x22c87a['id'],'tls':{'rejectUnauthorized':![]}};if(_0x22c87a[_0xa74c('0x3')]!==_0xa74c('0x4')){_0x375f3b[_0xa74c('0x5')]=_0x22c87a[_0xa74c('0x3')];}else{_0x375f3b[_0xa74c('0x6')]=_0x22c87a['Smtp'][_0xa74c('0x6')];_0x375f3b[_0xa74c('0x7')]=_0x22c87a['Smtp'][_0xa74c('0x7')];_0x375f3b[_0xa74c('0x8')]=_0x22c87a[_0xa74c('0x9')][_0xa74c('0x8')];}if(_0x22c87a[_0xa74c('0x9')][_0xa74c('0xa')]){if(_0x22c87a[_0xa74c('0x9')][_0xa74c('0xb')]){if(!_0x22c87a[_0xa74c('0x9')][_0xa74c('0xc')])throw new Error(_0xa74c('0xd'));_0x375f3b[_0xa74c('0xe')]={'type':_0xa74c('0xf'),'user':_0x22c87a[_0xa74c('0x9')]['user'],'accessToken':_0x22c87a[_0xa74c('0x9')][_0xa74c('0xc')][_0xa74c('0x10')]};}else{_0x375f3b[_0xa74c('0xe')]={'user':_0x22c87a['Smtp']['user'],'pass':_0x22c87a[_0xa74c('0x9')][_0xa74c('0x11')]};}}return _0x375f3b;}}});};