Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index 155b741..d986e06 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x58bf=['mail_accounts','provider','custom','service','host','port','Smtp','secure','authentication','modernAuthentication','OAuth2','user','CloudProvider','auth','pass','./mailAccount.attributes','exports','define'];(function(_0x263904,_0x52bb61){var _0x33bef8=function(_0x5850ef){while(--_0x5850ef){_0x263904['push'](_0x263904['shift']());}};_0x33bef8(++_0x52bb61);}(_0x58bf,0xc3));var _0xf58b=function(_0x165c96,_0x2269de){_0x165c96=_0x165c96-0x0;var _0x5c2420=_0x58bf[_0x165c96];return _0x5c2420;};'use strict';var attributes=require(_0xf58b('0x0'));module[_0xf58b('0x1')]=function(_0x4ee0a4){return _0x4ee0a4[_0xf58b('0x2')]('MailAccount',attributes,{'tableName':_0xf58b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0xe3848b=this;var _0x242471={'id':_0xe3848b['id'],'tls':{'rejectUnauthorized':![]}};if(_0xe3848b[_0xf58b('0x4')]!==_0xf58b('0x5')){_0x242471[_0xf58b('0x6')]=_0xe3848b[_0xf58b('0x4')];}else{_0x242471['host']=_0xe3848b['Smtp'][_0xf58b('0x7')];_0x242471[_0xf58b('0x8')]=_0xe3848b[_0xf58b('0x9')][_0xf58b('0x8')];_0x242471[_0xf58b('0xa')]=_0xe3848b['Smtp']['secure'];}if(_0xe3848b[_0xf58b('0x9')][_0xf58b('0xb')]){if(_0xe3848b[_0xf58b('0x9')][_0xf58b('0xc')]){if(!_0xe3848b[_0xf58b('0x9')]['CloudProvider'])throw new Error('Cloud\x20Provider\x20configuration\x20not\x20found');_0x242471['auth']={'type':_0xf58b('0xd'),'user':_0xe3848b[_0xf58b('0x9')][_0xf58b('0xe')],'accessToken':_0xe3848b['Smtp'][_0xf58b('0xf')]['data5']};}else{_0x242471[_0xf58b('0x10')]={'user':_0xe3848b[_0xf58b('0x9')][_0xf58b('0xe')],'pass':_0xe3848b[_0xf58b('0x9')][_0xf58b('0x11')]};}}return _0x242471;}}});};
\ No newline at end of file
+var _0x73d8=['host','Smtp','port','secure','modernAuthentication','Cloud\x20Provider\x20configuration\x20not\x20found','auth','user','CloudProvider','data5','pass','./mailAccount.attributes','exports','define','MailAccount','provider','custom'];(function(_0x2a7c2a,_0x37cc9e){var _0x195732=function(_0x4d3902){while(--_0x4d3902){_0x2a7c2a['push'](_0x2a7c2a['shift']());}};_0x195732(++_0x37cc9e);}(_0x73d8,0xb5));var _0x873d=function(_0x28ec49,_0x352f20){_0x28ec49=_0x28ec49-0x0;var _0x4088c0=_0x73d8[_0x28ec49];return _0x4088c0;};'use strict';var attributes=require(_0x873d('0x0'));module[_0x873d('0x1')]=function(_0x3b5723){return _0x3b5723[_0x873d('0x2')](_0x873d('0x3'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x5e464e=this;var _0x51d26c={'id':_0x5e464e['id'],'tls':{'rejectUnauthorized':![]}};if(_0x5e464e[_0x873d('0x4')]!==_0x873d('0x5')){_0x51d26c['service']=_0x5e464e[_0x873d('0x4')];}else{_0x51d26c['host']=_0x5e464e['Smtp'][_0x873d('0x6')];_0x51d26c['port']=_0x5e464e[_0x873d('0x7')][_0x873d('0x8')];_0x51d26c['secure']=_0x5e464e[_0x873d('0x7')][_0x873d('0x9')];}if(_0x5e464e[_0x873d('0x7')]['authentication']){if(_0x5e464e['Smtp'][_0x873d('0xa')]){if(!_0x5e464e['Smtp']['CloudProvider'])throw new Error(_0x873d('0xb'));_0x51d26c[_0x873d('0xc')]={'type':'OAuth2','user':_0x5e464e[_0x873d('0x7')][_0x873d('0xd')],'accessToken':_0x5e464e[_0x873d('0x7')][_0x873d('0xe')][_0x873d('0xf')]};}else{_0x51d26c[_0x873d('0xc')]={'user':_0x5e464e[_0x873d('0x7')][_0x873d('0xd')],'pass':_0x5e464e[_0x873d('0x7')][_0x873d('0x10')]};}}return _0x51d26c;}}});};
\ No newline at end of file