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 _0x782f=['user','data5','auth','pass','./mailAccount.attributes','exports','define','MailAccount','provider','custom','host','Smtp','port','secure','authentication','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','OAuth2'];(function(_0x447385,_0x4da907){var _0x3688ea=function(_0x594e0f){while(--_0x594e0f){_0x447385['push'](_0x447385['shift']());}};_0x3688ea(++_0x4da907);}(_0x782f,0x180));var _0xf782=function(_0x26d781,_0x455578){_0x26d781=_0x26d781-0x0;var _0x5a0166=_0x782f[_0x26d781];return _0x5a0166;};'use strict';var attributes=require(_0xf782('0x0'));module[_0xf782('0x1')]=function(_0x4a2422){return _0x4a2422[_0xf782('0x2')](_0xf782('0x3'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0xeb8785=this;var _0x402e04={'id':_0xeb8785['id'],'tls':{'rejectUnauthorized':![]}};if(_0xeb8785[_0xf782('0x4')]!==_0xf782('0x5')){_0x402e04['service']=_0xeb8785[_0xf782('0x4')];}else{_0x402e04[_0xf782('0x6')]=_0xeb8785[_0xf782('0x7')][_0xf782('0x6')];_0x402e04[_0xf782('0x8')]=_0xeb8785[_0xf782('0x7')][_0xf782('0x8')];_0x402e04[_0xf782('0x9')]=_0xeb8785[_0xf782('0x7')][_0xf782('0x9')];}if(_0xeb8785['Smtp'][_0xf782('0xa')]){if(_0xeb8785[_0xf782('0x7')][_0xf782('0xb')]){if(!_0xeb8785[_0xf782('0x7')][_0xf782('0xc')])throw new Error(_0xf782('0xd'));_0x402e04['auth']={'type':_0xf782('0xe'),'user':_0xeb8785[_0xf782('0x7')][_0xf782('0xf')],'accessToken':_0xeb8785[_0xf782('0x7')]['CloudProvider'][_0xf782('0x10')]};}else{_0x402e04[_0xf782('0x11')]={'user':_0xeb8785[_0xf782('0x7')][_0xf782('0xf')],'pass':_0xeb8785[_0xf782('0x7')][_0xf782('0x12')]};}}return _0x402e04;}}});};