Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index a52249c..e24814a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9b5e=['port','secure','authentication','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','user','data5','pass','./mailAccount.attributes','exports','define','mail_accounts','provider','custom','service','Smtp','host'];(function(_0x166590,_0x12f6ba){var _0x436664=function(_0xd8d802){while(--_0xd8d802){_0x166590['push'](_0x166590['shift']());}};_0x436664(++_0x12f6ba);}(_0x9b5e,0x199));var _0xe9b5=function(_0x57d925,_0x5a951b){_0x57d925=_0x57d925-0x0;var _0xfcd3b4=_0x9b5e[_0x57d925];return _0xfcd3b4;};'use strict';var attributes=require(_0xe9b5('0x0'));module[_0xe9b5('0x1')]=function(_0x4e9007){return _0x4e9007[_0xe9b5('0x2')]('MailAccount',attributes,{'tableName':_0xe9b5('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x15e112=this;var _0x3f7a75={'id':_0x15e112['id'],'tls':{'rejectUnauthorized':![]}};if(_0x15e112[_0xe9b5('0x4')]!==_0xe9b5('0x5')){_0x3f7a75[_0xe9b5('0x6')]=_0x15e112[_0xe9b5('0x4')];}else{_0x3f7a75['host']=_0x15e112[_0xe9b5('0x7')][_0xe9b5('0x8')];_0x3f7a75[_0xe9b5('0x9')]=_0x15e112['Smtp'][_0xe9b5('0x9')];_0x3f7a75[_0xe9b5('0xa')]=_0x15e112[_0xe9b5('0x7')][_0xe9b5('0xa')];}if(_0x15e112[_0xe9b5('0x7')][_0xe9b5('0xb')]){if(_0x15e112[_0xe9b5('0x7')][_0xe9b5('0xc')]){if(!_0x15e112[_0xe9b5('0x7')][_0xe9b5('0xd')])throw new Error(_0xe9b5('0xe'));_0x3f7a75[_0xe9b5('0xf')]={'type':'OAuth2','user':_0x15e112[_0xe9b5('0x7')][_0xe9b5('0x10')],'accessToken':_0x15e112[_0xe9b5('0x7')]['CloudProvider'][_0xe9b5('0x11')]};}else{_0x3f7a75[_0xe9b5('0xf')]={'user':_0x15e112[_0xe9b5('0x7')][_0xe9b5('0x10')],'pass':_0x15e112[_0xe9b5('0x7')][_0xe9b5('0x12')]};}}return _0x3f7a75;}}});};
\ No newline at end of file
+var _0x0158=['CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','OAuth2','user','auth','pass','define','MailAccount','mail_accounts','provider','custom','port','Smtp','modernAuthentication'];(function(_0x1b6c6d,_0x2983b0){var _0x290d9d=function(_0x5b9779){while(--_0x5b9779){_0x1b6c6d['push'](_0x1b6c6d['shift']());}};_0x290d9d(++_0x2983b0);}(_0x0158,0x76));var _0x8015=function(_0x5476e5,_0x4ee1cc){_0x5476e5=_0x5476e5-0x0;var _0x285384=_0x0158[_0x5476e5];return _0x285384;};'use strict';var attributes=require('./mailAccount.attributes');module['exports']=function(_0x5663d4){return _0x5663d4[_0x8015('0x0')](_0x8015('0x1'),attributes,{'tableName':_0x8015('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x10d8c0=this;var _0x378220={'id':_0x10d8c0['id'],'tls':{'rejectUnauthorized':![]}};if(_0x10d8c0[_0x8015('0x3')]!==_0x8015('0x4')){_0x378220['service']=_0x10d8c0[_0x8015('0x3')];}else{_0x378220['host']=_0x10d8c0['Smtp']['host'];_0x378220[_0x8015('0x5')]=_0x10d8c0[_0x8015('0x6')][_0x8015('0x5')];_0x378220['secure']=_0x10d8c0[_0x8015('0x6')]['secure'];}if(_0x10d8c0[_0x8015('0x6')]['authentication']){if(_0x10d8c0[_0x8015('0x6')][_0x8015('0x7')]){if(!_0x10d8c0['Smtp'][_0x8015('0x8')])throw new Error(_0x8015('0x9'));_0x378220['auth']={'type':_0x8015('0xa'),'user':_0x10d8c0[_0x8015('0x6')][_0x8015('0xb')],'accessToken':_0x10d8c0[_0x8015('0x6')][_0x8015('0x8')]['data5']};}else{_0x378220[_0x8015('0xc')]={'user':_0x10d8c0['Smtp'][_0x8015('0xb')],'pass':_0x10d8c0['Smtp'][_0x8015('0xd')]};}}return _0x378220;}}});};
\ No newline at end of file