Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index 155b741..df252c2 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 _0xdf5f=['OAuth2','user','data5','./mailAccount.attributes','exports','define','MailAccount','custom','service','host','port','Smtp','authentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found'];(function(_0x4d2c57,_0xbd4566){var _0x3397ed=function(_0x27563f){while(--_0x27563f){_0x4d2c57['push'](_0x4d2c57['shift']());}};_0x3397ed(++_0xbd4566);}(_0xdf5f,0x6c));var _0xfdf5=function(_0xd7a93a,_0x4951d4){_0xd7a93a=_0xd7a93a-0x0;var _0x7c44ae=_0xdf5f[_0xd7a93a];return _0x7c44ae;};'use strict';var attributes=require(_0xfdf5('0x0'));module[_0xfdf5('0x1')]=function(_0x5324a5){return _0x5324a5[_0xfdf5('0x2')](_0xfdf5('0x3'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x4cc793=this;var _0x5eb486={'id':_0x4cc793['id'],'tls':{'rejectUnauthorized':![]}};if(_0x4cc793['provider']!==_0xfdf5('0x4')){_0x5eb486[_0xfdf5('0x5')]=_0x4cc793['provider'];}else{_0x5eb486[_0xfdf5('0x6')]=_0x4cc793['Smtp'][_0xfdf5('0x6')];_0x5eb486[_0xfdf5('0x7')]=_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0x7')];_0x5eb486['secure']=_0x4cc793[_0xfdf5('0x8')]['secure'];}if(_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0x9')]){if(_0x4cc793[_0xfdf5('0x8')]['modernAuthentication']){if(!_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0xa')])throw new Error(_0xfdf5('0xb'));_0x5eb486['auth']={'type':_0xfdf5('0xc'),'user':_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0xd')],'accessToken':_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0xa')][_0xfdf5('0xe')]};}else{_0x5eb486['auth']={'user':_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0xd')],'pass':_0x4cc793[_0xfdf5('0x8')]['pass']};}}return _0x5eb486;}}});};
\ No newline at end of file