Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index e05e399..3f5bb1e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa5b9=['custom','host','Smtp','port','secure','authentication','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','data5','user','pass','./mailAccount.attributes','exports','define','MailAccount','mail_accounts'];(function(_0x68c979,_0x431cff){var _0x4f0001=function(_0xa7595d){while(--_0xa7595d){_0x68c979['push'](_0x68c979['shift']());}};_0x4f0001(++_0x431cff);}(_0xa5b9,0xdf));var _0x9a5b=function(_0x5d2d89,_0x2f8aaa){_0x5d2d89=_0x5d2d89-0x0;var _0x1edde3=_0xa5b9[_0x5d2d89];return _0x1edde3;};'use strict';var attributes=require(_0x9a5b('0x0'));module[_0x9a5b('0x1')]=function(_0x3a3369){return _0x3a3369[_0x9a5b('0x2')](_0x9a5b('0x3'),attributes,{'tableName':_0x9a5b('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x42ecd7=this;var _0x1ce6ae={'id':_0x42ecd7['id'],'tls':{'rejectUnauthorized':![]}};if(_0x42ecd7['provider']!==_0x9a5b('0x5')){_0x1ce6ae['service']=_0x42ecd7['provider'];}else{_0x1ce6ae[_0x9a5b('0x6')]=_0x42ecd7[_0x9a5b('0x7')]['host'];_0x1ce6ae['port']=_0x42ecd7[_0x9a5b('0x7')][_0x9a5b('0x8')];_0x1ce6ae[_0x9a5b('0x9')]=_0x42ecd7[_0x9a5b('0x7')][_0x9a5b('0x9')];}if(_0x42ecd7[_0x9a5b('0x7')][_0x9a5b('0xa')]){if(_0x42ecd7[_0x9a5b('0x7')][_0x9a5b('0xb')]){if(!_0x42ecd7[_0x9a5b('0x7')][_0x9a5b('0xc')])throw new Error(_0x9a5b('0xd'));_0x1ce6ae[_0x9a5b('0xe')]={'type':_0x9a5b('0xf'),'user':_0x42ecd7[_0x9a5b('0x7')]['user'],'accessToken':_0x42ecd7[_0x9a5b('0x7')][_0x9a5b('0xc')][_0x9a5b('0x10')]};}else{_0x1ce6ae[_0x9a5b('0xe')]={'user':_0x42ecd7[_0x9a5b('0x7')][_0x9a5b('0x11')],'pass':_0x42ecd7['Smtp'][_0x9a5b('0x12')]};}}return _0x1ce6ae;}}});};
\ No newline at end of file
+var _0xff26=['Cloud\x20Provider\x20configuration\x20not\x20found','OAuth2','data5','auth','user','./mailAccount.attributes','exports','define','MailAccount','mail_accounts','provider','custom','service','host','Smtp','port','secure','authentication','CloudProvider'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xff26,0x77));var _0x6ff2=function(_0x17aa78,_0x1ca1ef){_0x17aa78=_0x17aa78-0x0;var _0x4e0514=_0xff26[_0x17aa78];return _0x4e0514;};'use strict';var attributes=require(_0x6ff2('0x0'));module[_0x6ff2('0x1')]=function(_0x5b054f){return _0x5b054f[_0x6ff2('0x2')](_0x6ff2('0x3'),attributes,{'tableName':_0x6ff2('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x3403a8=this;var _0x251862={'id':_0x3403a8['id'],'tls':{'rejectUnauthorized':![]}};if(_0x3403a8[_0x6ff2('0x5')]!==_0x6ff2('0x6')){_0x251862[_0x6ff2('0x7')]=_0x3403a8[_0x6ff2('0x5')];}else{_0x251862[_0x6ff2('0x8')]=_0x3403a8[_0x6ff2('0x9')]['host'];_0x251862['port']=_0x3403a8['Smtp'][_0x6ff2('0xa')];_0x251862[_0x6ff2('0xb')]=_0x3403a8['Smtp'][_0x6ff2('0xb')];}if(_0x3403a8[_0x6ff2('0x9')][_0x6ff2('0xc')]){if(_0x3403a8['Smtp']['modernAuthentication']){if(!_0x3403a8[_0x6ff2('0x9')][_0x6ff2('0xd')])throw new Error(_0x6ff2('0xe'));_0x251862['auth']={'type':_0x6ff2('0xf'),'user':_0x3403a8['Smtp']['user'],'accessToken':_0x3403a8[_0x6ff2('0x9')][_0x6ff2('0xd')][_0x6ff2('0x10')]};}else{_0x251862[_0x6ff2('0x11')]={'user':_0x3403a8['Smtp'][_0x6ff2('0x12')],'pass':_0x3403a8[_0x6ff2('0x9')]['pass']};}}return _0x251862;}}});};
\ No newline at end of file