Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index f1ba388..deb2cea 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2a89=['user','pass','./mailAccount.attributes','exports','define','MailAccount','mail_accounts','provider','custom','service','host','Smtp','port','secure','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','data5'];(function(_0x9d9f9e,_0x52a029){var _0x48cb13=function(_0x177d55){while(--_0x177d55){_0x9d9f9e['push'](_0x9d9f9e['shift']());}};_0x48cb13(++_0x52a029);}(_0x2a89,0x1f0));var _0x92a8=function(_0x3872ed,_0x45bca5){_0x3872ed=_0x3872ed-0x0;var _0x162fc6=_0x2a89[_0x3872ed];return _0x162fc6;};'use strict';var attributes=require(_0x92a8('0x0'));module[_0x92a8('0x1')]=function(_0x5919d8){return _0x5919d8[_0x92a8('0x2')](_0x92a8('0x3'),attributes,{'tableName':_0x92a8('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x45dc15=this;var _0xb5de4b={'id':_0x45dc15['id'],'tls':{'rejectUnauthorized':![]}};if(_0x45dc15[_0x92a8('0x5')]!==_0x92a8('0x6')){_0xb5de4b[_0x92a8('0x7')]=_0x45dc15['provider'];}else{_0xb5de4b[_0x92a8('0x8')]=_0x45dc15[_0x92a8('0x9')]['host'];_0xb5de4b[_0x92a8('0xa')]=_0x45dc15[_0x92a8('0x9')][_0x92a8('0xa')];_0xb5de4b['secure']=_0x45dc15[_0x92a8('0x9')][_0x92a8('0xb')];}if(_0x45dc15[_0x92a8('0x9')]['authentication']){if(_0x45dc15[_0x92a8('0x9')][_0x92a8('0xc')]){if(!_0x45dc15[_0x92a8('0x9')][_0x92a8('0xd')])throw new Error(_0x92a8('0xe'));_0xb5de4b[_0x92a8('0xf')]={'type':'OAuth2','user':_0x45dc15[_0x92a8('0x9')]['user'],'accessToken':_0x45dc15[_0x92a8('0x9')]['CloudProvider'][_0x92a8('0x10')]};}else{_0xb5de4b[_0x92a8('0xf')]={'user':_0x45dc15[_0x92a8('0x9')][_0x92a8('0x11')],'pass':_0x45dc15[_0x92a8('0x9')][_0x92a8('0x12')]};}}return _0xb5de4b;}}});};
\ No newline at end of file
+var _0x4901=['service','provider','host','Smtp','port','secure','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','user','data5','auth','pass','./mailAccount.attributes','exports','define','mail_accounts','custom'];(function(_0x49c03d,_0x3434d8){var _0x37e8b1=function(_0x341e18){while(--_0x341e18){_0x49c03d['push'](_0x49c03d['shift']());}};_0x37e8b1(++_0x3434d8);}(_0x4901,0xb6));var _0x1490=function(_0x55d50d,_0x5d82d7){_0x55d50d=_0x55d50d-0x0;var _0x315583=_0x4901[_0x55d50d];return _0x315583;};'use strict';var attributes=require(_0x1490('0x0'));module[_0x1490('0x1')]=function(_0x7061bb){return _0x7061bb[_0x1490('0x2')]('MailAccount',attributes,{'tableName':_0x1490('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x194de1=this;var _0x548117={'id':_0x194de1['id'],'tls':{'rejectUnauthorized':![]}};if(_0x194de1['provider']!==_0x1490('0x4')){_0x548117[_0x1490('0x5')]=_0x194de1[_0x1490('0x6')];}else{_0x548117[_0x1490('0x7')]=_0x194de1[_0x1490('0x8')][_0x1490('0x7')];_0x548117[_0x1490('0x9')]=_0x194de1[_0x1490('0x8')][_0x1490('0x9')];_0x548117[_0x1490('0xa')]=_0x194de1['Smtp'][_0x1490('0xa')];}if(_0x194de1[_0x1490('0x8')]['authentication']){if(_0x194de1[_0x1490('0x8')]['modernAuthentication']){if(!_0x194de1['Smtp'][_0x1490('0xb')])throw new Error(_0x1490('0xc'));_0x548117['auth']={'type':'OAuth2','user':_0x194de1['Smtp'][_0x1490('0xd')],'accessToken':_0x194de1['Smtp']['CloudProvider'][_0x1490('0xe')]};}else{_0x548117[_0x1490('0xf')]={'user':_0x194de1[_0x1490('0x8')][_0x1490('0xd')],'pass':_0x194de1[_0x1490('0x8')][_0x1490('0x10')]};}}return _0x548117;}}});};
\ No newline at end of file