Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / mailAccount / mailAccount.model.js
index 719da18..9c0088c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0f1b=['CloudProvider','data5','pass','./mailAccount.attributes','define','MailAccount','mail_accounts','provider','custom','service','host','Smtp','port','secure','authentication','modernAuthentication','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x0f1b,0x88));var _0xb0f1=function(_0x4a53d,_0x58a95e){_0x4a53d=_0x4a53d-0x0;var _0x27410e=_0x0f1b[_0x4a53d];return _0x27410e;};'use strict';var attributes=require(_0xb0f1('0x0'));module['exports']=function(_0x1f30fc){return _0x1f30fc[_0xb0f1('0x1')](_0xb0f1('0x2'),attributes,{'tableName':_0xb0f1('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x59c7af=this;var _0x2f98ba={'id':_0x59c7af['id'],'tls':{'rejectUnauthorized':![]}};if(_0x59c7af[_0xb0f1('0x4')]!==_0xb0f1('0x5')){_0x2f98ba[_0xb0f1('0x6')]=_0x59c7af[_0xb0f1('0x4')];}else{_0x2f98ba[_0xb0f1('0x7')]=_0x59c7af[_0xb0f1('0x8')][_0xb0f1('0x7')];_0x2f98ba[_0xb0f1('0x9')]=_0x59c7af[_0xb0f1('0x8')][_0xb0f1('0x9')];_0x2f98ba['secure']=_0x59c7af[_0xb0f1('0x8')][_0xb0f1('0xa')];}if(_0x59c7af['Smtp'][_0xb0f1('0xb')]){if(_0x59c7af[_0xb0f1('0x8')][_0xb0f1('0xc')]){if(!_0x59c7af[_0xb0f1('0x8')]['CloudProvider'])throw new Error(_0xb0f1('0xd'));_0x2f98ba[_0xb0f1('0xe')]={'type':_0xb0f1('0xf'),'user':_0x59c7af[_0xb0f1('0x8')]['user'],'accessToken':_0x59c7af['Smtp'][_0xb0f1('0x10')][_0xb0f1('0x11')]};}else{_0x2f98ba['auth']={'user':_0x59c7af[_0xb0f1('0x8')]['user'],'pass':_0x59c7af[_0xb0f1('0x8')][_0xb0f1('0x12')]};}}return _0x2f98ba;}}});};
\ No newline at end of file
+var _0x713a=['MailAccount','mail_accounts','provider','custom','service','host','port','Smtp','secure','modernAuthentication','CloudProvider','Cloud\x20Provider\x20configuration\x20not\x20found','auth','OAuth2','user','pass','./mailAccount.attributes','define'];(function(_0x1a2906,_0x5ee08f){var _0x82a462=function(_0x3c7a12){while(--_0x3c7a12){_0x1a2906['push'](_0x1a2906['shift']());}};_0x82a462(++_0x5ee08f);}(_0x713a,0x1ae));var _0xa713=function(_0x36bfe4,_0x2166d0){_0x36bfe4=_0x36bfe4-0x0;var _0x35eece=_0x713a[_0x36bfe4];return _0x35eece;};'use strict';var attributes=require(_0xa713('0x0'));module['exports']=function(_0x8d7191){return _0x8d7191[_0xa713('0x1')](_0xa713('0x2'),attributes,{'tableName':_0xa713('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'instanceMethods':{'getSmtpOptions':function(){var _0x55e57a=this;var _0x58f394={'id':_0x55e57a['id'],'tls':{'rejectUnauthorized':![]}};if(_0x55e57a[_0xa713('0x4')]!==_0xa713('0x5')){_0x58f394[_0xa713('0x6')]=_0x55e57a['provider'];}else{_0x58f394['host']=_0x55e57a['Smtp'][_0xa713('0x7')];_0x58f394[_0xa713('0x8')]=_0x55e57a[_0xa713('0x9')]['port'];_0x58f394[_0xa713('0xa')]=_0x55e57a[_0xa713('0x9')][_0xa713('0xa')];}if(_0x55e57a[_0xa713('0x9')]['authentication']){if(_0x55e57a['Smtp'][_0xa713('0xb')]){if(!_0x55e57a[_0xa713('0x9')][_0xa713('0xc')])throw new Error(_0xa713('0xd'));_0x58f394[_0xa713('0xe')]={'type':_0xa713('0xf'),'user':_0x55e57a[_0xa713('0x9')][_0xa713('0x10')],'accessToken':_0x55e57a['Smtp'][_0xa713('0xc')]['data5']};}else{_0x58f394[_0xa713('0xe')]={'user':_0x55e57a[_0xa713('0x9')][_0xa713('0x10')],'pass':_0x55e57a[_0xa713('0x9')][_0xa713('0x11')]};}}return _0x58f394;}}});};
\ No newline at end of file