Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index 551ee92..87e4ab6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd48d=['provider','custom','service','host','port','Smtp','secure','authentication','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','user','data5','pass','./mailAccount.attributes','exports','MailAccount','mail_accounts'];(function(_0x4c067f,_0x11576a){var _0x4f3b6f=function(_0x3c106){while(--_0x3c106){_0x4c067f['push'](_0x4c067f['shift']());}};_0x4f3b6f(++_0x11576a);}(_0xd48d,0x11c));var _0xdd48=function(_0x124162,_0x2685b3){_0x124162=_0x124162-0x0;var _0x46b6fa=_0xd48d[_0x124162];return _0x46b6fa;};'use strict';var attributes=require(_0xdd48('0x0'));module[_0xdd48('0x1')]=function(_0x990205){return _0x990205['define'](_0xdd48('0x2'),attributes,{'tableName':_0xdd48('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x38efad=this;var _0x16a662={'id':_0x38efad['id'],'tls':{'rejectUnauthorized':![]}};if(_0x38efad[_0xdd48('0x4')]!==_0xdd48('0x5')){_0x16a662[_0xdd48('0x6')]=_0x38efad[_0xdd48('0x4')];}else{_0x16a662[_0xdd48('0x7')]=_0x38efad['Smtp'][_0xdd48('0x7')];_0x16a662[_0xdd48('0x8')]=_0x38efad[_0xdd48('0x9')]['port'];_0x16a662[_0xdd48('0xa')]=_0x38efad[_0xdd48('0x9')][_0xdd48('0xa')];}if(_0x38efad[_0xdd48('0x9')][_0xdd48('0xb')]){if(_0x38efad[_0xdd48('0x9')]['modernAuthentication']){if(!_0x38efad[_0xdd48('0x9')]['CloudProvider'])throw new Error(_0xdd48('0xc'));_0x16a662[_0xdd48('0xd')]={'type':_0xdd48('0xe'),'user':_0x38efad['Smtp'][_0xdd48('0xf')],'accessToken':_0x38efad[_0xdd48('0x9')]['CloudProvider'][_0xdd48('0x10')]};}else{_0x16a662[_0xdd48('0xd')]={'user':_0x38efad[_0xdd48('0x9')]['user'],'pass':_0x38efad[_0xdd48('0x9')][_0xdd48('0x11')]};}}return _0x16a662;}}});};
\ No newline at end of file
+var _0x5199=['host','port','Smtp','secure','authentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','user','./mailAccount.attributes','mail_accounts','custom','provider'];(function(_0x169f6c,_0x28ca7b){var _0x39247f=function(_0x22a9ee){while(--_0x22a9ee){_0x169f6c['push'](_0x169f6c['shift']());}};_0x39247f(++_0x28ca7b);}(_0x5199,0x1e6));var _0x9519=function(_0x487b0c,_0x14ff74){_0x487b0c=_0x487b0c-0x0;var _0x1adbdc=_0x5199[_0x487b0c];return _0x1adbdc;};'use strict';var attributes=require(_0x9519('0x0'));module['exports']=function(_0x2afc06){return _0x2afc06['define']('MailAccount',attributes,{'tableName':_0x9519('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x591f73=this;var _0x2afd5c={'id':_0x591f73['id'],'tls':{'rejectUnauthorized':![]}};if(_0x591f73['provider']!==_0x9519('0x2')){_0x2afd5c['service']=_0x591f73[_0x9519('0x3')];}else{_0x2afd5c[_0x9519('0x4')]=_0x591f73['Smtp'][_0x9519('0x4')];_0x2afd5c[_0x9519('0x5')]=_0x591f73[_0x9519('0x6')][_0x9519('0x5')];_0x2afd5c[_0x9519('0x7')]=_0x591f73['Smtp'][_0x9519('0x7')];}if(_0x591f73[_0x9519('0x6')][_0x9519('0x8')]){if(_0x591f73['Smtp']['modernAuthentication']){if(!_0x591f73[_0x9519('0x6')][_0x9519('0x9')])throw new Error(_0x9519('0xa'));_0x2afd5c[_0x9519('0xb')]={'type':_0x9519('0xc'),'user':_0x591f73[_0x9519('0x6')][_0x9519('0xd')],'accessToken':_0x591f73['Smtp']['CloudProvider']['data5']};}else{_0x2afd5c[_0x9519('0xb')]={'user':_0x591f73[_0x9519('0x6')][_0x9519('0xd')],'pass':_0x591f73[_0x9519('0x6')]['pass']};}}return _0x2afd5c;}}});};
\ No newline at end of file