Built motion from commit 58b0471d.|2.6.29
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index 3770de6..fa3b77e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd4ea=['Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','user','data5','./mailAccount.attributes','exports','define','MailAccount','provider','custom','host','Smtp','port','authentication','CloudProvider'];(function(_0x5ab359,_0x199ad2){var _0x51e390=function(_0x302b3a){while(--_0x302b3a){_0x5ab359['push'](_0x5ab359['shift']());}};_0x51e390(++_0x199ad2);}(_0xd4ea,0xd5));var _0xad4e=function(_0x53aee6,_0x5d0e22){_0x53aee6=_0x53aee6-0x0;var _0x72006e=_0xd4ea[_0x53aee6];return _0x72006e;};'use strict';var attributes=require(_0xad4e('0x0'));module[_0xad4e('0x1')]=function(_0x37fc78){return _0x37fc78[_0xad4e('0x2')](_0xad4e('0x3'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x2ef6a1=this;var _0x1a9a77={'id':_0x2ef6a1['id'],'tls':{'rejectUnauthorized':![]}};if(_0x2ef6a1[_0xad4e('0x4')]!==_0xad4e('0x5')){_0x1a9a77['service']=_0x2ef6a1['provider'];}else{_0x1a9a77[_0xad4e('0x6')]=_0x2ef6a1[_0xad4e('0x7')][_0xad4e('0x6')];_0x1a9a77[_0xad4e('0x8')]=_0x2ef6a1[_0xad4e('0x7')]['port'];_0x1a9a77['secure']=_0x2ef6a1[_0xad4e('0x7')]['secure'];}if(_0x2ef6a1[_0xad4e('0x7')][_0xad4e('0x9')]){if(_0x2ef6a1['Smtp']['modernAuthentication']){if(!_0x2ef6a1[_0xad4e('0x7')][_0xad4e('0xa')])throw new Error(_0xad4e('0xb'));_0x1a9a77[_0xad4e('0xc')]={'type':_0xad4e('0xd'),'user':_0x2ef6a1['Smtp'][_0xad4e('0xe')],'accessToken':_0x2ef6a1['Smtp'][_0xad4e('0xa')][_0xad4e('0xf')]};}else{_0x1a9a77[_0xad4e('0xc')]={'user':_0x2ef6a1['Smtp'][_0xad4e('0xe')],'pass':_0x2ef6a1[_0xad4e('0x7')]['pass']};}}return _0x1a9a77;}}});};
\ No newline at end of file
+var _0xb84f=['exports','define','MailAccount','mail_accounts','provider','service','host','Smtp','port','secure','authentication','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','OAuth2','user','data5','auth','pass','./mailAccount.attributes'];(function(_0x38bc8e,_0x2f2a6c){var _0x1bdace=function(_0x51c677){while(--_0x51c677){_0x38bc8e['push'](_0x38bc8e['shift']());}};_0x1bdace(++_0x2f2a6c);}(_0xb84f,0x1b7));var _0xfb84=function(_0x2d4461,_0x3ede4c){_0x2d4461=_0x2d4461-0x0;var _0x419b95=_0xb84f[_0x2d4461];return _0x419b95;};'use strict';var attributes=require(_0xfb84('0x0'));module[_0xfb84('0x1')]=function(_0x191cdb){return _0x191cdb[_0xfb84('0x2')](_0xfb84('0x3'),attributes,{'tableName':_0xfb84('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x65f3f6=this;var _0x58070e={'id':_0x65f3f6['id'],'tls':{'rejectUnauthorized':![]}};if(_0x65f3f6[_0xfb84('0x5')]!=='custom'){_0x58070e[_0xfb84('0x6')]=_0x65f3f6[_0xfb84('0x5')];}else{_0x58070e[_0xfb84('0x7')]=_0x65f3f6[_0xfb84('0x8')][_0xfb84('0x7')];_0x58070e[_0xfb84('0x9')]=_0x65f3f6[_0xfb84('0x8')][_0xfb84('0x9')];_0x58070e[_0xfb84('0xa')]=_0x65f3f6[_0xfb84('0x8')][_0xfb84('0xa')];}if(_0x65f3f6['Smtp'][_0xfb84('0xb')]){if(_0x65f3f6[_0xfb84('0x8')][_0xfb84('0xc')]){if(!_0x65f3f6[_0xfb84('0x8')][_0xfb84('0xd')])throw new Error(_0xfb84('0xe'));_0x58070e['auth']={'type':_0xfb84('0xf'),'user':_0x65f3f6['Smtp'][_0xfb84('0x10')],'accessToken':_0x65f3f6[_0xfb84('0x8')][_0xfb84('0xd')][_0xfb84('0x11')]};}else{_0x58070e[_0xfb84('0x12')]={'user':_0x65f3f6[_0xfb84('0x8')][_0xfb84('0x10')],'pass':_0x65f3f6['Smtp'][_0xfb84('0x13')]};}}return _0x58070e;}}});};
\ No newline at end of file