Built motion from commit a8c4dd89.|2.6.33
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index 2b161cb..cf72489 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x162f=['modernAuthentication','Cloud\x20Provider\x20configuration\x20not\x20found','auth','user','data5','pass','./mailAccount.attributes','exports','define','MailAccount','provider','custom','host','port','Smtp','secure','authentication'];(function(_0x803ae0,_0x5c5f30){var _0x3c38b1=function(_0x59b091){while(--_0x59b091){_0x803ae0['push'](_0x803ae0['shift']());}};_0x3c38b1(++_0x5c5f30);}(_0x162f,0xe3));var _0xf162=function(_0x232286,_0x20af17){_0x232286=_0x232286-0x0;var _0x3331f6=_0x162f[_0x232286];return _0x3331f6;};'use strict';var attributes=require(_0xf162('0x0'));module[_0xf162('0x1')]=function(_0x6f0d81){return _0x6f0d81[_0xf162('0x2')](_0xf162('0x3'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x296325=this;var _0x16a725={'id':_0x296325['id'],'tls':{'rejectUnauthorized':![]}};if(_0x296325[_0xf162('0x4')]!==_0xf162('0x5')){_0x16a725['service']=_0x296325['provider'];}else{_0x16a725[_0xf162('0x6')]=_0x296325['Smtp'][_0xf162('0x6')];_0x16a725['port']=_0x296325['Smtp'][_0xf162('0x7')];_0x16a725['secure']=_0x296325[_0xf162('0x8')][_0xf162('0x9')];}if(_0x296325[_0xf162('0x8')][_0xf162('0xa')]){if(_0x296325[_0xf162('0x8')][_0xf162('0xb')]){if(!_0x296325[_0xf162('0x8')]['CloudProvider'])throw new Error(_0xf162('0xc'));_0x16a725[_0xf162('0xd')]={'type':'OAuth2','user':_0x296325['Smtp'][_0xf162('0xe')],'accessToken':_0x296325[_0xf162('0x8')]['CloudProvider'][_0xf162('0xf')]};}else{_0x16a725['auth']={'user':_0x296325[_0xf162('0x8')][_0xf162('0xe')],'pass':_0x296325['Smtp'][_0xf162('0x10')]};}}return _0x16a725;}}});};
\ No newline at end of file
+var _0x62f9=['Smtp','port','secure','authentication','modernAuthentication','CloudProvider','OAuth2','user','./mailAccount.attributes','exports','define','mail_accounts','provider','service'];(function(_0x1fb99e,_0x6afedb){var _0x4b9b71=function(_0x28ba49){while(--_0x28ba49){_0x1fb99e['push'](_0x1fb99e['shift']());}};_0x4b9b71(++_0x6afedb);}(_0x62f9,0x190));var _0x962f=function(_0x511bd1,_0x223e5b){_0x511bd1=_0x511bd1-0x0;var _0x4c48ec=_0x62f9[_0x511bd1];return _0x4c48ec;};'use strict';var attributes=require(_0x962f('0x0'));module[_0x962f('0x1')]=function(_0x384e89){return _0x384e89[_0x962f('0x2')]('MailAccount',attributes,{'tableName':_0x962f('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x51b8d6=this;var _0x39fc1d={'id':_0x51b8d6['id'],'tls':{'rejectUnauthorized':![]}};if(_0x51b8d6[_0x962f('0x4')]!=='custom'){_0x39fc1d[_0x962f('0x5')]=_0x51b8d6[_0x962f('0x4')];}else{_0x39fc1d['host']=_0x51b8d6[_0x962f('0x6')]['host'];_0x39fc1d[_0x962f('0x7')]=_0x51b8d6[_0x962f('0x6')][_0x962f('0x7')];_0x39fc1d[_0x962f('0x8')]=_0x51b8d6[_0x962f('0x6')][_0x962f('0x8')];}if(_0x51b8d6[_0x962f('0x6')][_0x962f('0x9')]){if(_0x51b8d6[_0x962f('0x6')][_0x962f('0xa')]){if(!_0x51b8d6[_0x962f('0x6')][_0x962f('0xb')])throw new Error('Cloud\x20Provider\x20configuration\x20not\x20found');_0x39fc1d['auth']={'type':_0x962f('0xc'),'user':_0x51b8d6[_0x962f('0x6')][_0x962f('0xd')],'accessToken':_0x51b8d6[_0x962f('0x6')][_0x962f('0xb')]['data5']};}else{_0x39fc1d['auth']={'user':_0x51b8d6['Smtp'][_0x962f('0xd')],'pass':_0x51b8d6[_0x962f('0x6')]['pass']};}}return _0x39fc1d;}}});};
\ No newline at end of file