Built motion from commit dbf3a7e2.|2.6.30
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index f64c3a8..33fd359 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb234=['pass','./mailAccount.attributes','exports','define','MailAccount','mail_accounts','provider','custom','service','host','Smtp','port','secure','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','data5','user'];(function(_0x1c7889,_0x24cd26){var _0x2f14e5=function(_0x9ae1b1){while(--_0x9ae1b1){_0x1c7889['push'](_0x1c7889['shift']());}};_0x2f14e5(++_0x24cd26);}(_0xb234,0x1a5));var _0x4b23=function(_0x3a367e,_0x271dbd){_0x3a367e=_0x3a367e-0x0;var _0x536192=_0xb234[_0x3a367e];return _0x536192;};'use strict';var attributes=require(_0x4b23('0x0'));module[_0x4b23('0x1')]=function(_0x39405f){return _0x39405f[_0x4b23('0x2')](_0x4b23('0x3'),attributes,{'tableName':_0x4b23('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x4b6016=this;var _0x429f71={'id':_0x4b6016['id'],'tls':{'rejectUnauthorized':![]}};if(_0x4b6016[_0x4b23('0x5')]!==_0x4b23('0x6')){_0x429f71[_0x4b23('0x7')]=_0x4b6016[_0x4b23('0x5')];}else{_0x429f71[_0x4b23('0x8')]=_0x4b6016[_0x4b23('0x9')][_0x4b23('0x8')];_0x429f71[_0x4b23('0xa')]=_0x4b6016[_0x4b23('0x9')][_0x4b23('0xa')];_0x429f71['secure']=_0x4b6016['Smtp'][_0x4b23('0xb')];}if(_0x4b6016[_0x4b23('0x9')]['authentication']){if(_0x4b6016['Smtp'][_0x4b23('0xc')]){if(!_0x4b6016['Smtp'][_0x4b23('0xd')])throw new Error(_0x4b23('0xe'));_0x429f71[_0x4b23('0xf')]={'type':_0x4b23('0x10'),'user':_0x4b6016[_0x4b23('0x9')]['user'],'accessToken':_0x4b6016[_0x4b23('0x9')][_0x4b23('0xd')][_0x4b23('0x11')]};}else{_0x429f71[_0x4b23('0xf')]={'user':_0x4b6016['Smtp'][_0x4b23('0x12')],'pass':_0x4b6016[_0x4b23('0x9')][_0x4b23('0x13')]};}}return _0x429f71;}}});};
\ No newline at end of file
+var _0x42f3=['CloudProvider','auth','OAuth2','user','data5','pass','define','MailAccount','custom','provider','Smtp','port','secure','modernAuthentication'];(function(_0x11122d,_0x418b4e){var _0xa32ca2=function(_0x1bf5c5){while(--_0x1bf5c5){_0x11122d['push'](_0x11122d['shift']());}};_0xa32ca2(++_0x418b4e);}(_0x42f3,0x18e));var _0x342f=function(_0x2bfa06,_0x351e03){_0x2bfa06=_0x2bfa06-0x0;var _0x58811b=_0x42f3[_0x2bfa06];return _0x58811b;};'use strict';var attributes=require('./mailAccount.attributes');module['exports']=function(_0xffc4e6){return _0xffc4e6[_0x342f('0x0')](_0x342f('0x1'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x3b93e7=this;var _0x31e0e6={'id':_0x3b93e7['id'],'tls':{'rejectUnauthorized':![]}};if(_0x3b93e7['provider']!==_0x342f('0x2')){_0x31e0e6['service']=_0x3b93e7[_0x342f('0x3')];}else{_0x31e0e6['host']=_0x3b93e7[_0x342f('0x4')]['host'];_0x31e0e6[_0x342f('0x5')]=_0x3b93e7['Smtp'][_0x342f('0x5')];_0x31e0e6[_0x342f('0x6')]=_0x3b93e7[_0x342f('0x4')][_0x342f('0x6')];}if(_0x3b93e7[_0x342f('0x4')]['authentication']){if(_0x3b93e7[_0x342f('0x4')][_0x342f('0x7')]){if(!_0x3b93e7[_0x342f('0x4')][_0x342f('0x8')])throw new Error('Cloud\x20Provider\x20configuration\x20not\x20found');_0x31e0e6[_0x342f('0x9')]={'type':_0x342f('0xa'),'user':_0x3b93e7[_0x342f('0x4')][_0x342f('0xb')],'accessToken':_0x3b93e7[_0x342f('0x4')]['CloudProvider'][_0x342f('0xc')]};}else{_0x31e0e6[_0x342f('0x9')]={'user':_0x3b93e7[_0x342f('0x4')][_0x342f('0xb')],'pass':_0x3b93e7['Smtp'][_0x342f('0xd')]};}}return _0x31e0e6;}}});};
\ No newline at end of file