Built motion from commit c0cdc9d8.|2.6.28
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index 4dfb952..39284f5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd6c7=['./mailAccount.attributes','exports','define','MailAccount','mail_accounts','provider','service','host','Smtp','port','secure','authentication','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','data5','user','pass'];(function(_0x2a8926,_0x3c219e){var _0x35bd60=function(_0x3ccd3b){while(--_0x3ccd3b){_0x2a8926['push'](_0x2a8926['shift']());}};_0x35bd60(++_0x3c219e);}(_0xd6c7,0xab));var _0x7d6c=function(_0x2f5ac5,_0x1ee939){_0x2f5ac5=_0x2f5ac5-0x0;var _0x37c9a8=_0xd6c7[_0x2f5ac5];return _0x37c9a8;};'use strict';var attributes=require(_0x7d6c('0x0'));module[_0x7d6c('0x1')]=function(_0x1c618b){return _0x1c618b[_0x7d6c('0x2')](_0x7d6c('0x3'),attributes,{'tableName':_0x7d6c('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x3aebea=this;var _0x13b2b8={'id':_0x3aebea['id'],'tls':{'rejectUnauthorized':![]}};if(_0x3aebea[_0x7d6c('0x5')]!=='custom'){_0x13b2b8[_0x7d6c('0x6')]=_0x3aebea[_0x7d6c('0x5')];}else{_0x13b2b8[_0x7d6c('0x7')]=_0x3aebea[_0x7d6c('0x8')]['host'];_0x13b2b8[_0x7d6c('0x9')]=_0x3aebea[_0x7d6c('0x8')][_0x7d6c('0x9')];_0x13b2b8[_0x7d6c('0xa')]=_0x3aebea[_0x7d6c('0x8')][_0x7d6c('0xa')];}if(_0x3aebea[_0x7d6c('0x8')][_0x7d6c('0xb')]){if(_0x3aebea['Smtp'][_0x7d6c('0xc')]){if(!_0x3aebea[_0x7d6c('0x8')][_0x7d6c('0xd')])throw new Error(_0x7d6c('0xe'));_0x13b2b8[_0x7d6c('0xf')]={'type':'OAuth2','user':_0x3aebea[_0x7d6c('0x8')]['user'],'accessToken':_0x3aebea[_0x7d6c('0x8')][_0x7d6c('0xd')][_0x7d6c('0x10')]};}else{_0x13b2b8[_0x7d6c('0xf')]={'user':_0x3aebea['Smtp'][_0x7d6c('0x11')],'pass':_0x3aebea['Smtp'][_0x7d6c('0x12')]};}}return _0x13b2b8;}}});};
\ No newline at end of file
+var _0xdf8f=['data5','exports','define','MailAccount','mail_accounts','custom','service','host','Smtp','port','secure','authentication','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','user'];(function(_0x192d32,_0x11324c){var _0x4cfd5e=function(_0x5b7aa3){while(--_0x5b7aa3){_0x192d32['push'](_0x192d32['shift']());}};_0x4cfd5e(++_0x11324c);}(_0xdf8f,0x7f));var _0xfdf8=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0xdf8f[_0x19950b];return _0x3c6b41;};'use strict';var attributes=require('./mailAccount.attributes');module[_0xfdf8('0x0')]=function(_0x421821){return _0x421821[_0xfdf8('0x1')](_0xfdf8('0x2'),attributes,{'tableName':_0xfdf8('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x7baade=this;var _0x4d155a={'id':_0x7baade['id'],'tls':{'rejectUnauthorized':![]}};if(_0x7baade['provider']!==_0xfdf8('0x4')){_0x4d155a[_0xfdf8('0x5')]=_0x7baade['provider'];}else{_0x4d155a[_0xfdf8('0x6')]=_0x7baade[_0xfdf8('0x7')]['host'];_0x4d155a[_0xfdf8('0x8')]=_0x7baade[_0xfdf8('0x7')][_0xfdf8('0x8')];_0x4d155a['secure']=_0x7baade[_0xfdf8('0x7')][_0xfdf8('0x9')];}if(_0x7baade[_0xfdf8('0x7')][_0xfdf8('0xa')]){if(_0x7baade[_0xfdf8('0x7')][_0xfdf8('0xb')]){if(!_0x7baade[_0xfdf8('0x7')][_0xfdf8('0xc')])throw new Error(_0xfdf8('0xd'));_0x4d155a[_0xfdf8('0xe')]={'type':_0xfdf8('0xf'),'user':_0x7baade['Smtp'][_0xfdf8('0x10')],'accessToken':_0x7baade['Smtp'][_0xfdf8('0xc')][_0xfdf8('0x11')]};}else{_0x4d155a[_0xfdf8('0xe')]={'user':_0x7baade['Smtp'][_0xfdf8('0x10')],'pass':_0x7baade['Smtp']['pass']};}}return _0x4d155a;}}});};
\ No newline at end of file