Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index df252c2..1d39d22 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdf5f=['OAuth2','user','data5','./mailAccount.attributes','exports','define','MailAccount','custom','service','host','port','Smtp','authentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found'];(function(_0x4d2c57,_0xbd4566){var _0x3397ed=function(_0x27563f){while(--_0x27563f){_0x4d2c57['push'](_0x4d2c57['shift']());}};_0x3397ed(++_0xbd4566);}(_0xdf5f,0x6c));var _0xfdf5=function(_0xd7a93a,_0x4951d4){_0xd7a93a=_0xd7a93a-0x0;var _0x7c44ae=_0xdf5f[_0xd7a93a];return _0x7c44ae;};'use strict';var attributes=require(_0xfdf5('0x0'));module[_0xfdf5('0x1')]=function(_0x5324a5){return _0x5324a5[_0xfdf5('0x2')](_0xfdf5('0x3'),attributes,{'tableName':'mail_accounts','paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x4cc793=this;var _0x5eb486={'id':_0x4cc793['id'],'tls':{'rejectUnauthorized':![]}};if(_0x4cc793['provider']!==_0xfdf5('0x4')){_0x5eb486[_0xfdf5('0x5')]=_0x4cc793['provider'];}else{_0x5eb486[_0xfdf5('0x6')]=_0x4cc793['Smtp'][_0xfdf5('0x6')];_0x5eb486[_0xfdf5('0x7')]=_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0x7')];_0x5eb486['secure']=_0x4cc793[_0xfdf5('0x8')]['secure'];}if(_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0x9')]){if(_0x4cc793[_0xfdf5('0x8')]['modernAuthentication']){if(!_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0xa')])throw new Error(_0xfdf5('0xb'));_0x5eb486['auth']={'type':_0xfdf5('0xc'),'user':_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0xd')],'accessToken':_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0xa')][_0xfdf5('0xe')]};}else{_0x5eb486['auth']={'user':_0x4cc793[_0xfdf5('0x8')][_0xfdf5('0xd')],'pass':_0x4cc793[_0xfdf5('0x8')]['pass']};}}return _0x5eb486;}}});};
\ No newline at end of file
+var _0x6299=['auth','user','data5','pass','./mailAccount.attributes','define','MailAccount','mail_accounts','provider','custom','service','host','port','Smtp','secure','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found'];(function(_0xc2b2c,_0x5c70f8){var _0x5078d8=function(_0x42d367){while(--_0x42d367){_0xc2b2c['push'](_0xc2b2c['shift']());}};_0x5078d8(++_0x5c70f8);}(_0x6299,0x114));var _0x9629=function(_0x460efb,_0x4c5527){_0x460efb=_0x460efb-0x0;var _0x545ca3=_0x6299[_0x460efb];return _0x545ca3;};'use strict';var attributes=require(_0x9629('0x0'));module['exports']=function(_0x35aeb7){return _0x35aeb7[_0x9629('0x1')](_0x9629('0x2'),attributes,{'tableName':_0x9629('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0xf479ab=this;var _0x20912f={'id':_0xf479ab['id'],'tls':{'rejectUnauthorized':![]}};if(_0xf479ab[_0x9629('0x4')]!==_0x9629('0x5')){_0x20912f[_0x9629('0x6')]=_0xf479ab[_0x9629('0x4')];}else{_0x20912f[_0x9629('0x7')]=_0xf479ab['Smtp'][_0x9629('0x7')];_0x20912f[_0x9629('0x8')]=_0xf479ab[_0x9629('0x9')][_0x9629('0x8')];_0x20912f[_0x9629('0xa')]=_0xf479ab[_0x9629('0x9')][_0x9629('0xa')];}if(_0xf479ab[_0x9629('0x9')]['authentication']){if(_0xf479ab[_0x9629('0x9')]['modernAuthentication']){if(!_0xf479ab[_0x9629('0x9')][_0x9629('0xb')])throw new Error(_0x9629('0xc'));_0x20912f[_0x9629('0xd')]={'type':'OAuth2','user':_0xf479ab[_0x9629('0x9')][_0x9629('0xe')],'accessToken':_0xf479ab[_0x9629('0x9')]['CloudProvider'][_0x9629('0xf')]};}else{_0x20912f[_0x9629('0xd')]={'user':_0xf479ab[_0x9629('0x9')][_0x9629('0xe')],'pass':_0xf479ab['Smtp'][_0x9629('0x10')]};}}return _0x20912f;}}});};
\ No newline at end of file