Built motion from commit f67b3b02.|2.6.31
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index e703586..2b161cb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x68ca=['MailAccount','mail_accounts','provider','custom','service','host','Smtp','secure','authentication','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','user','data5','pass','./mailAccount.attributes','exports','define'];(function(_0x4becb8,_0x4ad3d3){var _0x5c8a37=function(_0x3d52da){while(--_0x3d52da){_0x4becb8['push'](_0x4becb8['shift']());}};_0x5c8a37(++_0x4ad3d3);}(_0x68ca,0x1dd));var _0xa68c=function(_0x5a3a2e,_0x56de8c){_0x5a3a2e=_0x5a3a2e-0x0;var _0x1440d2=_0x68ca[_0x5a3a2e];return _0x1440d2;};'use strict';var attributes=require(_0xa68c('0x0'));module[_0xa68c('0x1')]=function(_0x2be343){return _0x2be343[_0xa68c('0x2')](_0xa68c('0x3'),attributes,{'tableName':_0xa68c('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x20c367=this;var _0x11fd75={'id':_0x20c367['id'],'tls':{'rejectUnauthorized':![]}};if(_0x20c367[_0xa68c('0x5')]!==_0xa68c('0x6')){_0x11fd75[_0xa68c('0x7')]=_0x20c367['provider'];}else{_0x11fd75[_0xa68c('0x8')]=_0x20c367[_0xa68c('0x9')][_0xa68c('0x8')];_0x11fd75['port']=_0x20c367[_0xa68c('0x9')]['port'];_0x11fd75[_0xa68c('0xa')]=_0x20c367['Smtp'][_0xa68c('0xa')];}if(_0x20c367[_0xa68c('0x9')][_0xa68c('0xb')]){if(_0x20c367[_0xa68c('0x9')][_0xa68c('0xc')]){if(!_0x20c367[_0xa68c('0x9')][_0xa68c('0xd')])throw new Error(_0xa68c('0xe'));_0x11fd75[_0xa68c('0xf')]={'type':_0xa68c('0x10'),'user':_0x20c367['Smtp'][_0xa68c('0x11')],'accessToken':_0x20c367[_0xa68c('0x9')]['CloudProvider'][_0xa68c('0x12')]};}else{_0x11fd75[_0xa68c('0xf')]={'user':_0x20c367['Smtp']['user'],'pass':_0x20c367['Smtp'][_0xa68c('0x13')]};}}return _0x11fd75;}}});};
\ No newline at end of file
+var _0x162f=['modernAuthentication','Cloud\x20Provider\x20configuration\x20not\x20found','auth','user','data5','pass','./mailAccount.attributes','exports','define','MailAccount','provider','custom','host','port','Smtp','secure','authentication'];(function(_0x803ae0,_0x5c5f30){var _0x3c38b1=function(_0x59b091){while(--_0x59b091){_0x803ae0['push'](_0x803ae0['shift']());}};_0x3c38b1(++_0x5c5f30);}(_0x162f,0xe3));var _0xf162=function(_0x232286,_0x20af17){_0x232286=_0x232286-0x0;var _0x3331f6=_0x162f[_0x232286];return _0x3331f6;};'use strict';var attributes=require(_0xf162('0x0'));module[_0xf162('0x1')]=function(_0x6f0d81){return _0x6f0d81[_0xf162('0x2')](_0xf162('0x3'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x296325=this;var _0x16a725={'id':_0x296325['id'],'tls':{'rejectUnauthorized':![]}};if(_0x296325[_0xf162('0x4')]!==_0xf162('0x5')){_0x16a725['service']=_0x296325['provider'];}else{_0x16a725[_0xf162('0x6')]=_0x296325['Smtp'][_0xf162('0x6')];_0x16a725['port']=_0x296325['Smtp'][_0xf162('0x7')];_0x16a725['secure']=_0x296325[_0xf162('0x8')][_0xf162('0x9')];}if(_0x296325[_0xf162('0x8')][_0xf162('0xa')]){if(_0x296325[_0xf162('0x8')][_0xf162('0xb')]){if(!_0x296325[_0xf162('0x8')]['CloudProvider'])throw new Error(_0xf162('0xc'));_0x16a725[_0xf162('0xd')]={'type':'OAuth2','user':_0x296325['Smtp'][_0xf162('0xe')],'accessToken':_0x296325[_0xf162('0x8')]['CloudProvider'][_0xf162('0xf')]};}else{_0x16a725['auth']={'user':_0x296325[_0xf162('0x8')][_0xf162('0xe')],'pass':_0x296325['Smtp'][_0xf162('0x10')]};}}return _0x16a725;}}});};
\ No newline at end of file