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 _0xd48d=['provider','custom','service','host','port','Smtp','secure','authentication','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','user','data5','pass','./mailAccount.attributes','exports','MailAccount','mail_accounts'];(function(_0x4c067f,_0x11576a){var _0x4f3b6f=function(_0x3c106){while(--_0x3c106){_0x4c067f['push'](_0x4c067f['shift']());}};_0x4f3b6f(++_0x11576a);}(_0xd48d,0x11c));var _0xdd48=function(_0x124162,_0x2685b3){_0x124162=_0x124162-0x0;var _0x46b6fa=_0xd48d[_0x124162];return _0x46b6fa;};'use strict';var attributes=require(_0xdd48('0x0'));module[_0xdd48('0x1')]=function(_0x990205){return _0x990205['define'](_0xdd48('0x2'),attributes,{'tableName':_0xdd48('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x38efad=this;var _0x16a662={'id':_0x38efad['id'],'tls':{'rejectUnauthorized':![]}};if(_0x38efad[_0xdd48('0x4')]!==_0xdd48('0x5')){_0x16a662[_0xdd48('0x6')]=_0x38efad[_0xdd48('0x4')];}else{_0x16a662[_0xdd48('0x7')]=_0x38efad['Smtp'][_0xdd48('0x7')];_0x16a662[_0xdd48('0x8')]=_0x38efad[_0xdd48('0x9')]['port'];_0x16a662[_0xdd48('0xa')]=_0x38efad[_0xdd48('0x9')][_0xdd48('0xa')];}if(_0x38efad[_0xdd48('0x9')][_0xdd48('0xb')]){if(_0x38efad[_0xdd48('0x9')]['modernAuthentication']){if(!_0x38efad[_0xdd48('0x9')]['CloudProvider'])throw new Error(_0xdd48('0xc'));_0x16a662[_0xdd48('0xd')]={'type':_0xdd48('0xe'),'user':_0x38efad['Smtp'][_0xdd48('0xf')],'accessToken':_0x38efad[_0xdd48('0x9')]['CloudProvider'][_0xdd48('0x10')]};}else{_0x16a662[_0xdd48('0xd')]={'user':_0x38efad[_0xdd48('0x9')]['user'],'pass':_0x38efad[_0xdd48('0x9')][_0xdd48('0x11')]};}}return _0x16a662;}}});};