Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / utils / mask-sensistive-data.js
1 const a1232_0x42e9=['lastName','includes','accountSid','accessTokenSecret','oldPassword','mobile','newPassword','}@@','consumerKey','length','dsn','isArray','apiKey','registry','isString','code','replace','fax','firstName','lodash','secretaccesskey','email','privateKey','localstationid','accesskeyid','authToken','accessKey','pass','channelSecret','isPlainObject','tenantId','secret','clientSecret','accessToken','exten','clientEmail','exports','password','token','consumerSecret','membername','calleridname','clientId'];(function(_0xefdbcc,_0x42e9ed){const _0x51aa9f=function(_0x4cf4d7){while(--_0x4cf4d7){_0xefdbcc['push'](_0xefdbcc['shift']());}};_0x51aa9f(++_0x42e9ed);}(a1232_0x42e9,0x1ea));const a1232_0x51aa=function(_0xefdbcc,_0x42e9ed){_0xefdbcc=_0xefdbcc-0x0;let _0x51aa9f=a1232_0x42e9[_0xefdbcc];return _0x51aa9f;};const _0x4d3bf7=a1232_0x51aa,_=require(_0x4d3bf7('0x2')),sensitiveFields=['username',_0x4d3bf7('0x14'),_0x4d3bf7('0x20'),_0x4d3bf7('0x26'),_0x4d3bf7('0x1'),_0x4d3bf7('0x1a'),'street','phone',_0x4d3bf7('0x1f'),_0x4d3bf7('0x0'),_0x4d3bf7('0x4'),_0x4d3bf7('0x19'),_0x4d3bf7('0xf'),'securityToken',_0x4d3bf7('0x29'),_0x4d3bf7('0x9'),_0x4d3bf7('0xd'),_0x4d3bf7('0x15'),_0x4d3bf7('0xb'),_0x4d3bf7('0x10'),_0x4d3bf7('0x1d'),_0x4d3bf7('0x8'),_0x4d3bf7('0x22'),_0x4d3bf7('0x16'),_0x4d3bf7('0x17'),_0x4d3bf7('0x18'),'calleridnum',_0x4d3bf7('0x11'),'vidaooApiKey',_0x4d3bf7('0x12'),_0x4d3bf7('0x5'),_0x4d3bf7('0x7'),_0x4d3bf7('0x3'),'key','user',_0x4d3bf7('0xa'),_0x4d3bf7('0x1c'),_0x4d3bf7('0x6'),_0x4d3bf7('0x24'),_0x4d3bf7('0xe'),_0x4d3bf7('0x27'),_0x4d3bf7('0x1e')];function maskSensitiveData(_0x4cf4d7){const _0x222b6b=_0x4d3bf7,_0x3dc290=/(?!^)[\s\S](?!$)/g;for(const _0x4b68cc in _0x4cf4d7){if(_[_0x222b6b('0x25')](_0x4cf4d7[_0x4b68cc]))for(let _0x22b972=0x0;_0x22b972<_0x4cf4d7[_0x4b68cc][_0x222b6b('0x23')];_0x22b972++){maskSensitiveData(_0x4cf4d7[_0x4b68cc][_0x22b972]);}else{if(_[_0x222b6b('0xc')](_0x4cf4d7[_0x4b68cc]))maskSensitiveData(_0x4cf4d7[_0x4b68cc]);else _[_0x222b6b('0x28')](_0x4cf4d7[_0x4b68cc])&&(_0x4cf4d7[_0x4b68cc]=_0x4cf4d7[_0x4b68cc][_0x222b6b('0x2a')](/{{{/g,'@@{')[_0x222b6b('0x2a')](/}}}/g,_0x222b6b('0x21'))[_0x222b6b('0x2a')](/{{/g,'@{')[_0x222b6b('0x2a')](/}}/g,'}@'),_[_0x222b6b('0x1b')](sensitiveFields,_0x4b68cc)&&(_0x4cf4d7[_0x4b68cc]=_0x4cf4d7[_0x4b68cc][_0x222b6b('0x2a')](_0x3dc290,'*')));}}}module[_0x4d3bf7('0x13')]={'maskSensitiveData':maskSensitiveData};