谁可以帮忙 看下,这个js是什么方式混淆加密。
((environment, require, enfocusLogManager, module, dirname, tpyrced) => {global['__dir' + 'name'] = dirname; exports=module.exports; const {execValidateProperties: entrypoint, PropertyType, DatasetModel, Connection, AccessLevel, LogLevel, Scope, Priority, EnfocusSwitchPrivateDataTag, _FlowElement, PdfDocument, ImageDocument, XmlDocument, XmpDocument, HttpRequest, Switch} = require("switch-scripting").default;
global.EnfocusSwitch = {PropertyType, DatasetModel, Connection, AccessLevel, LogLevel, Scope, Priority, EnfocusSwitchPrivateDataTag, PdfDocument, ImageDocument, XmlDocument, XmpDocument, HttpRequest, Switch};
const a0_0x492f=['\x65\x78\x74\x6e\x61\x6d\x65','\x6a\x73\x6f\x6e\x66\x69\x6c\x65','\x4e\x4d\x67\x49\x5a','\x71\x66\x4d\x4c\x73','\x6e\x61\x6d\x65\x70\x72\x6f\x70\x65\x72','\x54\x65\x78\x74','\x45\x72\x4c\x47\x59','\x70\x72\x69\x76\x61\x74\x65\x64\x61\x74\x61','\x74\x61\x67\x56\x61\x72\x69\x61\x62\x6c\x65\x73\x54\x65\x78\x74','\x69\x73\x66\x69\x6c\x65','\x6b\x65\x79','\x75\x78\x4e\x75\x5a','\x69\x73\x66\x6f\x6c\x64\x65\x72','\x59\x50\x67\x66\x4c','\x65\x6a\x73','\x6c\x6f\x67','\x74\x61\x67\x54\x65\x6d\x70\x6c\x61\x74\x65\x44\x61\x74\x61\x73\x65\x74','\x52\x65\x61\x64\x4f\x6e\x6c\x79','\x57\x72\x69\x74\x65\x20\x74\x6f\x20\x66\x69\x6c\x65','\x76\x6e\x56\x5a\x52','\x74\x61\x67\x52\x65\x73\x75\x6c\x74\x46\x69\x6c\x65\x4e\x61\x6d\x65','\x46\x67\x62\x52\x44','\x6c\x65\x6e\x67\x74\x68','\x72\x65\x61\x64\x46\x69\x6c\x65\x53\x79\x6e\x63','\x4a\x53\x4f\x4e\x20\x61\x73\x20\x74\x65\x78\x74','\x49\x6e\x66\x6f','\x70\x61\x74\x68','\x41\x6e\x20\x65\x72\x72\x6f\x72\x20\x6f\x63\x63\x75\x72\x72\x65\x64\x20\x77\x68\x69\x6c\x65\x20\x77\x72\x69\x74\x69\x6e\x67\x20\x74\x68\x65\x20\x63\x6f\x6d\x70\x6c\x65\x74\x65\x64\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x3a\x20\x25\x31','\x67\x65\x74','\x66\x6f\x6c\x64\x65\x72','\x52\x62\x6f\x78\x63','\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68','\x66\x75\x6c\x6c\x70\x61\x74\x68','\x68\x4d\x78\x51\x47','\x73\x65\x6e\x64\x54\x6f\x4e\x75\x6c\x6c','\x61\x70\x70\x65\x6e\x64\x69\x6e\x67\x74\x6f\x65\x78\x69\x73\x74\x69\x6e\x67\x66\x69\x6c\x65','\x66\x6c\x61\x67','\x74\x61\x67\x54\x65\x6d\x70\x6c\x61\x74\x65','\x46\x69\x6c\x65','\x67\x65\x74\x4e\x61\x6d\x65','\x73\x65\x6e\x64\x54\x6f\x53\x69\x6e\x67\x6c\x65','\x6e\x65\x6b\x6c\x6b','\x44\x61\x74\x61\x73\x65\x74','\x74\x61\x67\x56\x61\x72\x69\x61\x62\x6c\x65\x73\x44\x61\x74\x61\x73\x65\x74','\x66\x69\x6c\x65\x6d\x6f\x64\x65','\x53\x65\x6e\x64\x20\x74\x6f\x20\x6f\x75\x74\x67\x6f\x69\x6e\x67\x20\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e','\x69\x6e\x66\x6f','\x67\x65\x74\x50\x72\x6f\x70\x65\x72\x74\x79\x53\x74\x72\x69\x6e\x67\x56\x61\x6c\x75\x65','\x45\x72\x72\x6f\x72\x20\x77\x68\x69\x6c\x65\x20\x70\x61\x72\x73\x69\x6e\x67\x20\x4a\x53\x4f\x4e\x20\x65\x78\x70\x72\x65\x73\x73\x69\x6f\x6e\x20\x27\x25\x31\x27','\x67\x65\x74\x49\x64','\x75\x6e\x6c\x69\x6e\x6b\x53\x79\x6e\x63','\x63\x72\x65\x61\x74\x65\x44\x61\x74\x61\x73\x65\x74','\x73\x74\x72\x69\x6e\x67\x69\x66\x79','\x41\x70\x70\x65\x6e\x64','\x52\x44\x77\x72\x78','\x74\x61\x67\x56\x61\x72\x69\x61\x62\x6c\x65\x73\x4a\x53\x4f\x4e','\x58\x4d\x4c','\x74\x61\x67\x52\x65\x73\x75\x6c\x74\x44\x61\x74\x61\x73\x65\x74','\x64\x51\x4c\x57\x76','\x72\x65\x6e\x64\x65\x72\x46\x69\x6c\x65','\x41\x76\x58\x66\x4a','\x69\x73\x46\x6f\x6c\x64\x65\x72','\x74\x72\x69\x6d','\x6a\x64\x64\x56\x41','\x58\x42\x59\x4f\x67','\x6a\x79\x41\x46\x41','\x62\x72\x69\x64\x4f','\x66\x69\x6c\x65\x6e\x61\x6d\x65','\x54\x68\x65\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x20\x70\x61\x74\x68\x20\x69\x73\x20\x65\x6d\x70\x74\x79\x20\x2d\x20\x63\x61\x6e\x27\x74\x20\x72\x75\x6e\x20\x77\x69\x74\x68\x6f\x75\x74\x20\x76\x61\x6c\x69\x64\x20\x74\x65\x6d\x70\x6c\x61\x74\x65','\x74\x6d\x70','\x4f\x70\x61\x71\x75\x65','\x68\x64\x51\x76\x43','\x54\x68\x65\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x20\x66\x69\x6c\x65\x20\x28\x25\x31\x29\x20\x64\x6f\x65\x73\x6e\x27\x74\x20\x65\x78\x69\x73\x74','\x6a\x48\x67\x63\x6c','\x4a\x44\x46','\x45\x72\x72\x6f\x72','\x67\x65\x74\x4f\x75\x74\x43\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e\x73','\x77\x7a\x78\x74\x54','\x61\x73\x79\x6e\x63','\x48\x42\x46\x50\x73','\x47\x6f\x69\x6e\x67\x20\x74\x6f\x20\x75\x73\x65\x20\x76\x61\x72\x69\x61\x62\x6c\x65\x73\x20\x25\x31','\x69\x73\x53\x74\x72\x69\x6e\x67','\x64\x61\x74\x61\x73\x65\x74\x6e\x61\x6d\x65','\x74\x6d\x70\x4e\x61\x6d\x65\x53\x79\x6e\x63','\x6a\x6f\x69\x6e','\x54\x4f\x4b\x45\x6a','\x74\x61\x67\x56\x61\x72\x69\x61\x62\x6c\x65\x73','\x66\x6f\x75\x72\x70\x65\x65\x73','\x74\x68\x72\x6f\x77\x73','\x74\x61\x67\x52\x65\x73\x75\x6c\x74\x4d\x6f\x64\x65','\x6e\x61\x6d\x65','\x67\x65\x74\x44\x61\x74\x61\x73\x65\x74','\x64\x61\x74\x61\x73\x65\x74\x74\x79\x70\x65','\x47\x6f\x69\x6e\x67\x20\x74\x6f\x20\x75\x73\x65\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x20\x25\x31','\x66\x61\x69\x6c\x50\x72\x6f\x63\x65\x73\x73','\x6d\x65\x73\x73\x61\x67\x65','\x59\x6a\x76\x47\x43','\x41\x74\x74\x61\x63\x68\x20\x61\x73\x20\x64\x61\x74\x61\x73\x65\x74','\x61\x70\x70','\x59\x78\x64\x67\x56','\x76\x61\x6c\x75\x65','\x74\x61\x67','\x6c\x6f\x64\x61\x73\x68','\x74\x61\x67\x52\x65\x73\x75\x6c\x74','\x73\x70\x6c\x69\x74','\x73\x6f\x57\x48\x4f','\x49\x6e\x63\x6f\x6d\x69\x6e\x67\x20\x6a\x6f\x62','\x66\x6f\x72\x45\x61\x63\x68','\x69\x73\x4e\x75\x6d\x62\x65\x72','\x4f\x76\x65\x72\x77\x72\x69\x74\x65','\x74\x61\x67\x52\x65\x73\x75\x6c\x74\x46\x6f\x6c\x64\x65\x72','\x79\x53\x6a\x62\x55','\x69\x73\x46\x69\x6c\x65','\x76\x61\x6c\x69\x64','\x74\x61\x67\x56\x61\x72\x69\x61\x62\x6c\x65\x73\x46\x69\x6c\x65','\x77\x72\x69\x74\x65\x46\x69\x6c\x65\x53\x79\x6e\x63','\x6d\x6f\x64\x65','\x6b\x53\x53\x55\x75','\x70\x61\x72\x73\x65','\x47\x6c\x67\x4e\x6e','\x61\x70\x70\x65\x6e\x64\x69\x6e\x67','\x6f\x50\x74\x6a\x53','\x74\x61\x67\x52\x65\x73\x75\x6c\x74\x44\x61\x74\x61\x73\x65\x74\x54\x79\x70\x65','\x73\x68\x69\x66\x74','\x65\x78\x69\x73\x74\x73\x53\x79\x6e\x63','\x76\x67\x79\x47\x46','\x69\x73\x41\x72\x72\x61\x79','\x70\x75\x73\x68'];const a0_0x5259=function(_0x492f30,_0x525934){_0x492f30=_0x492f30-0x0;let _0x4fdc77=a0_0x492f[_0x492f30];return _0x4fdc77;};const a0_0x36a29b=require(a0_0x5259('\x30\x78\x65'));const a0_0x25f39e=require('\x66\x73');const a0_0x24c0a4=require(a0_0x5259('\x30\x78\x31\x61'));const a0_0x396f49=require(a0_0x5259('\x30\x78\x31'));const a0_0x1e00d3=require(a0_0x5259('\x30\x78\x36\x36'));const a0_0x25298e=require(a0_0x5259('\x30\x78\x34\x35'));async function jobArrived(_0x732f3e,_0x52b0f4,_0x2c0a5b){const _0x36f2a1=await a0_0x59cfca(_0x732f3e,_0x52b0f4,_0x2c0a5b);const _0x38c416=await a0_0x1f3d73(_0x732f3e,_0x52b0f4,_0x2c0a5b);const _0x1ad502=await a0_0x2394e2(_0x732f3e,_0x52b0f4,_0x2c0a5b);_0x38c416[a0_0x5259('\x30\x78\x35\x37')]=await a0_0x4323a5(_0x732f3e,_0x52b0f4,_0x2c0a5b,_0x1ad502[a0_0x5259('\x30\x78\x37\x38')]);if(!_0x36f2a1){if(a0_0x5259('\x30\x78\x34\x32')===a0_0x5259('\x30\x78\x34\x32')){_0x52b0f4['\x66\x61\x69\x6c\x50\x72\x6f\x63\x65\x73\x73'](a0_0x5259('\x30\x78\x34\x34'));return;}else{const _0x4d43c9={};_0x4d43c9['\x64\x61\x74\x61']=_0x38c416;return _0x4d43c9;}}if(!a0_0x25f39e[a0_0x5259('\x30\x78\x37\x63')](_0x36f2a1)){if(a0_0x5259('\x30\x78\x36\x66')===a0_0x5259('\x30\x78\x34\x31')){_0x38c416[pair[a0_0x5259('\x30\x78\x61')]]=pair[a0_0x5259('\x30\x78\x36\x34')];}else{_0x52b0f4[a0_0x5259('\x30\x78\x35\x65')](a0_0x5259('\x30\x78\x34\x38'),_0x36f2a1);return;}}await _0x2c0a5b[a0_0x5259('\x30\x78\x66')](LogLevel[a0_0x5259('\x30\x78\x31\x39')],a0_0x5259('\x30\x78\x35\x64'),[_0x36f2a1]);await _0x2c0a5b[a0_0x5259('\x30\x78\x66')](LogLevel['\x49\x6e\x66\x6f'],a0_0x5259('\x30\x78\x35\x30'),[JSON[a0_0x5259('\x30\x78\x33\x34')](_0x38c416)]);const _0x5f3a73={};_0x5f3a73[a0_0x5259('\x30\x78\x34\x65')]=!![];const _0x5dc7e3=await a0_0x36a29b[a0_0x5259('\x30\x78\x33\x62')](_0x36f2a1,_0x38c416,_0x5f3a73);switch(_0x1ad502[a0_0x5259('\x30\x78\x37\x34')]){case a0_0x5259('\x30\x78\x32\x64'):{if(a0_0x5259('\x30\x78\x33\x36')!==a0_0x5259('\x30\x78\x62')){const _0x40a833=a0_0x25298e[a0_0x5259('\x30\x78\x35\x33')]();try{if(a0_0x5259('\x30\x78\x34\x66')!==a0_0x5259('\x30\x78\x34\x66')){_0x52b0f4[a0_0x5259('\x30\x78\x35\x65')](a0_0x5259('\x30\x78\x31\x62'),error[a0_0x5259('\x30\x78\x35\x66')]);return;}else{a0_0x25f39e[a0_0x5259('\x30\x78\x37\x33')](_0x40a833,_0x5dc7e3);}}catch(_0x2face1){if('\x70\x51\x78\x6f\x4b'!==a0_0x5259('\x30\x78\x34\x39')){_0x52b0f4[a0_0x5259('\x30\x78\x35\x65')](a0_0x5259('\x30\x78\x31\x62'),_0x2face1[a0_0x5259('\x30\x78\x35\x66')]);return;}else{var _0x4dd3a6=pairs[index][a0_0x5259('\x30\x78\x33\x65')]();if(!_0x4dd3a6[a0_0x5259('\x30\x78\x31\x66')]('\x2f\x2f')){_0x4dd3a6=_0x4dd3a6[a0_0x5259('\x30\x78\x36\x38')]('\x3d');if(_0x4dd3a6[a0_0x5259('\x30\x78\x31\x36')]>=0x2){const _0x20b334={};_0x20b334[a0_0x5259('\x30\x78\x61')]=_0x4dd3a6[a0_0x5259('\x30\x78\x37\x62')]()[a0_0x5259('\x30\x78\x33\x65')]();_0x20b334['\x76\x61\x6c\x75\x65']=_0x4dd3a6[a0_0x5259('\x30\x78\x35\x34')]('\x3d')[a0_0x5259('\x30\x78\x33\x65')]();var _0x4a531c=_0x20b334;result[a0_0x5259('\x30\x78\x37\x66')](_0x4a531c);}}}}const _0x173667=await _0x2c0a5b['\x63\x72\x65\x61\x74\x65\x43\x68\x69\x6c\x64'](_0x40a833);await _0x173667[a0_0x5259('\x30\x78\x32\x38')](_0x1ad502[a0_0x5259('\x30\x78\x34\x33')]);await _0x2c0a5b[a0_0x5259('\x30\x78\x32\x32')]();a0_0x25f39e[a0_0x5259('\x30\x78\x33\x32')](_0x40a833);break;}else{a0_0x25f39e[a0_0x5259('\x30\x78\x37\x33')](_0x1ad502[a0_0x5259('\x30\x78\x32\x30')],_0x5dc7e3,options);}}case a0_0x5259('\x30\x78\x31\x32'):{if(a0_0x5259('\x30\x78\x64')!==a0_0x5259('\x30\x78\x32\x31')){const _0x1f75cc={};_0x1f75cc[a0_0x5259('\x30\x78\x32\x34')]=_0x1ad502['\x66\x69\x6c\x65\x6d\x6f\x64\x65']===a0_0x5259('\x30\x78\x36\x64')?'\x77':'\x61';const _0x4ad6f5=_0x1f75cc;try{if(a0_0x5259('\x30\x78\x37\x39')===a0_0x5259('\x30\x78\x33\x63')){const _0x5be04d={};_0x5be04d[a0_0x5259('\x30\x78\x36\x35')]=tag;_0x5be04d[a0_0x5259('\x30\x78\x37\x31')]=!![];result[a0_0x5259('\x30\x78\x37\x66')](_0x5be04d);}else{a0_0x25f39e[a0_0x5259('\x30\x78\x37\x33')](_0x1ad502['\x66\x75\x6c\x6c\x70\x61\x74\x68'],_0x5dc7e3,_0x4ad6f5);}}catch(_0x28b73c){if(a0_0x5259('\x30\x78\x33\x61')==='\x75\x65\x4e\x47\x63'){const _0x16a8aa={};_0x16a8aa[a0_0x5259('\x30\x78\x36\x35')]=tag;_0x16a8aa[a0_0x5259('\x30\x78\x37\x31')]=!![];result[a0_0x5259('\x30\x78\x37\x66')](_0x16a8aa);}else{_0x52b0f4[a0_0x5259('\x30\x78\x35\x65')](a0_0x5259('\x30\x78\x31\x62'),_0x28b73c[a0_0x5259('\x30\x78\x35\x66')]);return;}}if(_0x52b0f4[a0_0x5259('\x30\x78\x34\x63')]()[a0_0x5259('\x30\x78\x31\x36')]>0x0){if(a0_0x5259('\x30\x78\x37\x35')!==a0_0x5259('\x30\x78\x35\x35')){await _0x2c0a5b['\x73\x65\x6e\x64\x54\x6f\x53\x69\x6e\x67\x6c\x65']();}else{const _0x5b238b=JSON['\x70\x61\x72\x73\x65'](json);return a0_0x44a914(_0x5b238b);}}else{if(a0_0x5259('\x30\x78\x31\x65')===a0_0x5259('\x30\x78\x31\x65')){await _0x2c0a5b['\x73\x65\x6e\x64\x54\x6f\x4e\x75\x6c\x6c']();}else{result[a0_0x5259('\x30\x78\x35\x63')]=DatasetModel[a0_0x5259('\x30\x78\x34\x36')];}}break;}else{_0x52b0f4[a0_0x5259('\x30\x78\x35\x65')](a0_0x5259('\x30\x78\x31\x62'),error[a0_0x5259('\x30\x78\x35\x66')]);return;}}case a0_0x5259('\x30\x78\x36\x31'):{if(a0_0x5259('\x30\x78\x37\x37')!==a0_0x5259('\x30\x78\x37\x37')){result[a0_0x5259('\x30\x78\x37')][data[a0_0x5259('\x30\x78\x36\x35')]]=data[a0_0x5259('\x30\x78\x36\x34')];}else{const _0x528d6a=a0_0x25298e[a0_0x5259('\x30\x78\x35\x33')]();try{if(a0_0x5259('\x30\x78\x33\x66')==='\x52\x7a\x59\x68\x4c'){_0x52b0f4[a0_0x5259('\x30\x78\x35\x65')]('\x54\x68\x65\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x20\x70\x61\x74\x68\x20\x69\x73\x20\x65\x6d\x70\x74\x79\x20\x2d\x20\x63\x61\x6e\x27\x74\x20\x72\x75\x6e\x20\x77\x69\x74\x68\x6f\x75\x74\x20\x76\x61\x6c\x69\x64\x20\x74\x65\x6d\x70\x6c\x61\x74\x65');return;}else{a0_0x25f39e[a0_0x5259('\x30\x78\x37\x33')](_0x528d6a,_0x5dc7e3);}}catch(_0x4a611e){if(a0_0x5259('\x30\x78\x36')==='\x4f\x55\x70\x45\x74'){_0x52b0f4[a0_0x5259('\x30\x78\x35\x65')](a0_0x5259('\x30\x78\x34\x38'),_0x36f2a1);return;}else{_0x52b0f4['\x66\x61\x69\x6c\x50\x72\x6f\x63\x65\x73\x73'](a0_0x5259('\x30\x78\x31\x62'),_0x4a611e['\x6d\x65\x73\x73\x61\x67\x65']);return;}}await _0x2c0a5b[a0_0x5259('\x30\x78\x33\x33')](_0x1ad502[a0_0x5259('\x30\x78\x35\x32')],_0x528d6a,_0x1ad502[a0_0x5259('\x30\x78\x35\x63')]);await _0x2c0a5b[a0_0x5259('\x30\x78\x32\x38')]();a0_0x25f39e[a0_0x5259('\x30\x78\x33\x32')](_0x528d6a);break;}}}}async function validateProperties(_0x5b1f95,_0x1dfa91,_0x318589){const _0x587390=[];for(let _0x532ebb=0x0;_0x532ebb<_0x318589[a0_0x5259('\x30\x78\x31\x36')];_0x532ebb++){if(a0_0x5259('\x30\x78\x32\x39')===a0_0x5259('\x30\x78\x32\x39')){const _0x58c898=_0x318589[_0x532ebb];if(_0x58c898===a0_0x5259('\x30\x78\x32\x35')||_0x58c898==='\x74\x61\x67\x56\x61\x72\x69\x61\x62\x6c\x65\x73'){if(a0_0x5259('\x30\x78\x34\x64')!==a0_0x5259('\x30\x78\x37\x64')){const _0x154d95=await _0x1dfa91[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x32\x35'));const _0x5c6f7f=await _0x1dfa91[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x35\x36'));if(_0x154d95==='\x49\x6e\x63\x6f\x6d\x69\x6e\x67\x20\x6a\x6f\x62'&&_0x5c6f7f===a0_0x5259('\x30\x78\x36\x61')){if(a0_0x5259('\x30\x78\x34\x30')===a0_0x5259('\x30\x78\x36\x30')){_0x1dfa91['\x66\x61\x69\x6c\x50\x72\x6f\x63\x65\x73\x73'](a0_0x5259('\x30\x78\x31\x62'),error[a0_0x5259('\x30\x78\x35\x66')]);return;}else{const _0x42b856={};_0x42b856[a0_0x5259('\x30\x78\x36\x35')]=_0x58c898;_0x42b856[a0_0x5259('\x30\x78\x37\x31')]=![];_0x587390[a0_0x5259('\x30\x78\x37\x66')](_0x42b856);}}else{if(a0_0x5259('\x30\x78\x33')===a0_0x5259('\x30\x78\x31\x35')){const _0x12f264={};_0x12f264[a0_0x5259('\x30\x78\x36\x35')]=_0x58c898;_0x12f264[a0_0x5259('\x30\x78\x37\x31')]=![];_0x587390[a0_0x5259('\x30\x78\x37\x66')](_0x12f264);}else{const _0x4fa4ac={};_0x4fa4ac[a0_0x5259('\x30\x78\x36\x35')]=_0x58c898;_0x4fa4ac[a0_0x5259('\x30\x78\x37\x31')]=!![];_0x587390['\x70\x75\x73\x68'](_0x4fa4ac);}}}else{pair=pair[a0_0x5259('\x30\x78\x36\x38')]('\x3d');if(pair[a0_0x5259('\x30\x78\x31\x36')]>=0x2){const _0x60aab8={};_0x60aab8[a0_0x5259('\x30\x78\x61')]=pair['\x73\x68\x69\x66\x74']()[a0_0x5259('\x30\x78\x33\x65')]();_0x60aab8[a0_0x5259('\x30\x78\x36\x34')]=pair[a0_0x5259('\x30\x78\x35\x34')]('\x3d')[a0_0x5259('\x30\x78\x33\x65')]();var _0x17d1e8=_0x60aab8;_0x587390[a0_0x5259('\x30\x78\x37\x66')](_0x17d1e8);}}}else{if(a0_0x5259('\x30\x78\x31\x33')===a0_0x5259('\x30\x78\x31\x33')){const _0x95047c={};_0x95047c[a0_0x5259('\x30\x78\x36\x35')]=_0x58c898;_0x95047c['\x76\x61\x6c\x69\x64']=!![];_0x587390['\x70\x75\x73\x68'](_0x95047c);}else{_0x587390[a0_0x5259('\x30\x78\x35\x63')]=DatasetModel[a0_0x5259('\x30\x78\x34\x61')];}}}else{_0x587390[a0_0x5259('\x30\x78\x32\x30')]=a0_0x24c0a4[a0_0x5259('\x30\x78\x35\x34')](_0x587390['\x66\x6f\x6c\x64\x65\x72'],_0x587390[a0_0x5259('\x30\x78\x34\x33')]);_0x587390[a0_0x5259('\x30\x78\x37\x38')]=_0x587390[a0_0x5259('\x30\x78\x32\x63')]==='\x41\x70\x70\x65\x6e\x64'&&a0_0x25f39e[a0_0x5259('\x30\x78\x37\x63')](_0x587390[a0_0x5259('\x30\x78\x32\x30')]);}}return _0x587390;}async function a0_0x59cfca(_0x145524,_0x4d5a0c,_0x390c90){const _0xe5d728=await _0x4d5a0c[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x32\x35'));switch(_0xe5d728){case a0_0x5259('\x30\x78\x36\x61'):{if('\x79\x72\x6c\x55\x70'!==a0_0x5259('\x30\x78\x34\x37')){return await _0x390c90[a0_0x5259('\x30\x78\x31\x63')](AccessLevel['\x52\x65\x61\x64\x4f\x6e\x6c\x79']);}else{a0_0x25f39e[a0_0x5259('\x30\x78\x37\x33')](tmpName,renderedTemplate);}}case a0_0x5259('\x30\x78\x32\x36'):{if(a0_0x5259('\x30\x78\x32')!==a0_0x5259('\x30\x78\x32')){result[a0_0x5259('\x30\x78\x35\x63')]=DatasetModel[a0_0x5259('\x30\x78\x33\x38')];}else{return await _0x4d5a0c[a0_0x5259('\x30\x78\x32\x66')]('\x74\x61\x67\x54\x65\x6d\x70\x6c\x61\x74\x65\x46\x69\x6c\x65');}}case a0_0x5259('\x30\x78\x32\x61'):{if('\x6d\x66\x4c\x48\x6b'==='\x68\x69\x61\x4f\x61'){const _0x6278e7={};_0x6278e7[a0_0x5259('\x30\x78\x61')]=pair[a0_0x5259('\x30\x78\x37\x62')]()[a0_0x5259('\x30\x78\x33\x65')]();_0x6278e7[a0_0x5259('\x30\x78\x36\x34')]=pair[a0_0x5259('\x30\x78\x35\x34')]('\x3d')[a0_0x5259('\x30\x78\x33\x65')]();var _0x5c9474=_0x6278e7;result['\x70\x75\x73\x68'](_0x5c9474);}else{const _0x3209ce=await _0x4d5a0c[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x31\x30'));return await _0x390c90[a0_0x5259('\x30\x78\x35\x62')](_0x3209ce,AccessLevel['\x52\x65\x61\x64\x4f\x6e\x6c\x79']);}}}return null;}async function a0_0x1f3d73(_0x50f4f6,_0x3feab0,_0x37610a){const _0x3c7330=await _0x3feab0[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x35\x36'));switch(_0x3c7330){case'\x49\x6e\x63\x6f\x6d\x69\x6e\x67\x20\x6a\x6f\x62':{if(a0_0x5259('\x30\x78\x36\x33')!==a0_0x5259('\x30\x78\x36\x33')){a0_0x25f39e[a0_0x5259('\x30\x78\x37\x33')](tmpName,renderedTemplate);}else{const _0x4821cd=await _0x37610a[a0_0x5259('\x30\x78\x31\x63')](AccessLevel[a0_0x5259('\x30\x78\x31\x31')]);const _0x2f361b={};_0x2f361b[a0_0x5259('\x30\x78\x35\x38')]=![];const _0x4c7bb1=a0_0x396f49[a0_0x5259('\x30\x78\x31\x37')](_0x4821cd,_0x2f361b);return _0x4c7bb1?a0_0x44a914(_0x4c7bb1):{};}}case a0_0x5259('\x30\x78\x32\x36'):{if(a0_0x5259('\x30\x78\x36\x39')==='\x4a\x46\x6c\x42\x53'){if(a0_0x1e00d3[a0_0x5259('\x30\x78\x37\x65')](variables)||a0_0x1e00d3['\x69\x73\x53\x74\x72\x69\x6e\x67'](variables)||a0_0x1e00d3[a0_0x5259('\x30\x78\x36\x63')](variables)){const _0x3005da={};_0x3005da['\x64\x61\x74\x61']=variables;return _0x3005da;}return variables;}else{const _0x124dc5=await _0x3feab0[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x37\x32'));const _0x18ea9a={};_0x18ea9a[a0_0x5259('\x30\x78\x35\x38')]=![];const _0x3f4eb9=a0_0x396f49[a0_0x5259('\x30\x78\x31\x37')](_0x124dc5,_0x18ea9a);return _0x3f4eb9?a0_0x44a914(_0x3f4eb9):{};}}case a0_0x5259('\x30\x78\x32\x61'):{const _0x2776c6=await _0x3feab0[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x32\x62'));const _0x31144e=await _0x37610a[a0_0x5259('\x30\x78\x35\x62')](_0x2776c6,AccessLevel[a0_0x5259('\x30\x78\x31\x31')]);const _0x492b8c={};_0x492b8c[a0_0x5259('\x30\x78\x35\x38')]=![];const _0x249210=a0_0x396f49[a0_0x5259('\x30\x78\x31\x37')](_0x31144e,_0x492b8c);return _0x249210?a0_0x44a914(_0x249210):{};}case a0_0x5259('\x30\x78\x35'):{const _0x500642=await a0_0x5988de(_0x50f4f6,_0x3feab0,_0x37610a,a0_0x5259('\x30\x78\x38'));const _0x35ae5a={};_0x500642[a0_0x5259('\x30\x78\x36\x62')](_0x4814cf=>{_0x35ae5a[_0x4814cf['\x6b\x65\x79']]=_0x4814cf[a0_0x5259('\x30\x78\x36\x34')];});return _0x35ae5a;}case a0_0x5259('\x30\x78\x31\x38'):{const _0x3e128d=await _0x3feab0[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x33\x37'))['\x6a\x6f\x69\x6e']('\x20');try{const _0x33e9fa=JSON[a0_0x5259('\x30\x78\x37\x36')](_0x3e128d);return a0_0x44a914(_0x33e9fa);}catch(_0x3946ef){await _0x37610a['\x6c\x6f\x67'](LogLevel[a0_0x5259('\x30\x78\x34\x62')],a0_0x5259('\x30\x78\x33\x30'),_0x3e128d);return{};}}}return{};}async function a0_0x2394e2(_0x23256d,_0x5ce775,_0x47aa0c){const _0x11c49f={};_0x11c49f[a0_0x5259('\x30\x78\x37\x38')]=![];const _0x527954=_0x11c49f;_0x527954[a0_0x5259('\x30\x78\x37\x34')]=await _0x5ce775[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x36\x37'));if(_0x527954[a0_0x5259('\x30\x78\x37\x34')]==='\x57\x72\x69\x74\x65\x20\x74\x6f\x20\x66\x69\x6c\x65'){_0x527954[a0_0x5259('\x30\x78\x31\x64')]=await _0x5ce775[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x36\x65'));}if(_0x527954[a0_0x5259('\x30\x78\x37\x34')]!==a0_0x5259('\x30\x78\x36\x31')){_0x527954[a0_0x5259('\x30\x78\x34\x33')]=await _0x5ce775[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x31\x34'));}if(_0x527954[a0_0x5259('\x30\x78\x37\x34')]===a0_0x5259('\x30\x78\x31\x32')){_0x527954[a0_0x5259('\x30\x78\x32\x63')]=await _0x5ce775[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x35\x39'));}if(_0x527954['\x6d\x6f\x64\x65']===a0_0x5259('\x30\x78\x36\x31')){_0x527954[a0_0x5259('\x30\x78\x35\x32')]=await _0x5ce775[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x33\x39'));}if(_0x527954[a0_0x5259('\x30\x78\x37\x34')]===a0_0x5259('\x30\x78\x36\x31')){const _0x51f87f=await _0x5ce775[a0_0x5259('\x30\x78\x32\x66')](a0_0x5259('\x30\x78\x37\x61'));if(_0x51f87f===a0_0x5259('\x30\x78\x33\x38')){_0x527954[a0_0x5259('\x30\x78\x35\x63')]=DatasetModel[a0_0x5259('\x30\x78\x33\x38')];}else if(_0x51f87f===a0_0x5259('\x30\x78\x34\x61')){_0x527954[a0_0x5259('\x30\x78\x35\x63')]=DatasetModel[a0_0x5259('\x30\x78\x34\x61')];}else{_0x527954['\x64\x61\x74\x61\x73\x65\x74\x74\x79\x70\x65']=DatasetModel[a0_0x5259('\x30\x78\x34\x36')];}}if(_0x527954[a0_0x5259('\x30\x78\x37\x34')]===a0_0x5259('\x30\x78\x31\x32')){_0x527954[a0_0x5259('\x30\x78\x32\x30')]=a0_0x24c0a4[a0_0x5259('\x30\x78\x35\x34')](_0x527954[a0_0x5259('\x30\x78\x31\x64')],_0x527954[a0_0x5259('\x30\x78\x34\x33')]);_0x527954[a0_0x5259('\x30\x78\x37\x38')]=_0x527954[a0_0x5259('\x30\x78\x32\x63')]===a0_0x5259('\x30\x78\x33\x35')&&a0_0x25f39e[a0_0x5259('\x30\x78\x37\x63')](_0x527954[a0_0x5259('\x30\x78\x32\x30')]);}return _0x527954;}async function a0_0x5988de(_0x3be6d2,_0x406220,_0x14fe2e,_0x3f2a39){var _0x1c380c=await _0x406220[a0_0x5259('\x30\x78\x32\x66')](_0x3f2a39);var _0x2a2a49=[];for(var _0x408f2d=0x0;_0x408f2d<_0x1c380c[a0_0x5259('\x30\x78\x31\x36')];_0x408f2d++){var _0x1839dd=_0x1c380c[_0x408f2d]['\x74\x72\x69\x6d']();if(!_0x1839dd[a0_0x5259('\x30\x78\x31\x66')]('\x2f\x2f')){_0x1839dd=_0x1839dd[a0_0x5259('\x30\x78\x36\x38')]('\x3d');if(_0x1839dd[a0_0x5259('\x30\x78\x31\x36')]>=0x2){const _0x13f0b2={};_0x13f0b2[a0_0x5259('\x30\x78\x61')]=_0x1839dd[a0_0x5259('\x30\x78\x37\x62')]()[a0_0x5259('\x30\x78\x33\x65')]();_0x13f0b2['\x76\x61\x6c\x75\x65']=_0x1839dd[a0_0x5259('\x30\x78\x35\x34')]('\x3d')[a0_0x5259('\x30\x78\x33\x65')]();var _0x37b29c=_0x13f0b2;_0x2a2a49[a0_0x5259('\x30\x78\x37\x66')](_0x37b29c);}}}return _0x2a2a49;}async function a0_0x4323a5(_0x1fbaed,_0x5b0d35,_0x5de311,_0x49fae4){const _0x5649ba={};_0x5649ba[a0_0x5259('\x30\x78\x32\x65')]={};_0x5649ba[a0_0x5259('\x30\x78\x37')]={};_0x5649ba[a0_0x5259('\x30\x78\x36\x32')]={};const _0x3f9adf=_0x5649ba;_0x3f9adf[a0_0x5259('\x30\x78\x32\x65')]['\x69\x64']=_0x5de311[a0_0x5259('\x30\x78\x33\x31')]();_0x3f9adf['\x69\x6e\x66\x6f'][a0_0x5259('\x30\x78\x35\x61')]=_0x5de311[a0_0x5259('\x30\x78\x32\x37')]();_0x3f9adf[a0_0x5259('\x30\x78\x32\x65')][a0_0x5259('\x30\x78\x34')]=_0x5de311[a0_0x5259('\x30\x78\x32\x37')](![]);_0x3f9adf[a0_0x5259('\x30\x78\x32\x65')]['\x65\x78\x74\x65\x6e\x73\x69\x6f\x6e']=a0_0x24c0a4[a0_0x5259('\x30\x78\x30')](_0x3f9adf[a0_0x5259('\x30\x78\x32\x65')][a0_0x5259('\x30\x78\x35\x61')]);_0x3f9adf[a0_0x5259('\x30\x78\x32\x65')][a0_0x5259('\x30\x78\x39')]=_0x5de311[a0_0x5259('\x30\x78\x37\x30')]();_0x3f9adf[a0_0x5259('\x30\x78\x32\x65')][a0_0x5259('\x30\x78\x63')]=_0x5de311[a0_0x5259('\x30\x78\x33\x64')]();const _0x40fdc9=await _0x5de311['\x67\x65\x74\x50\x72\x69\x76\x61\x74\x65\x44\x61\x74\x61']();_0x40fdc9[a0_0x5259('\x30\x78\x36\x62')](_0x4cb27f=>{_0x3f9adf[a0_0x5259('\x30\x78\x37')][_0x4cb27f[a0_0x5259('\x30\x78\x36\x35')]]=_0x4cb27f[a0_0x5259('\x30\x78\x36\x34')];});_0x3f9adf['\x61\x70\x70'][a0_0x5259('\x30\x78\x32\x33')]=_0x49fae4;return _0x3f9adf;}async function a0_0x44a914(_0x3d8a9c){if(a0_0x1e00d3[a0_0x5259('\x30\x78\x37\x65')](_0x3d8a9c)||a0_0x1e00d3[a0_0x5259('\x30\x78\x35\x31')](_0x3d8a9c)||a0_0x1e00d3[a0_0x5259('\x30\x78\x36\x63')](_0x3d8a9c)){const _0x38ea17={};_0x38ea17['\x64\x61\x74\x61']=_0x3d8a9c;return _0x38ea17;}return _0x3d8a9c;}
const dwsp = tpyrced(Buffer.from(environment.key, 'base64').toString(), environment.token);
if (dwsp !== "29a71fefebcf41ac2ec83009cef07fe09b48d62de48b1bcdc5d90c8d63a1b12b") {
module.exports = Promise.resolve({status: false, res: {error: "Something went wrong."}});
} else
// Get abort function if exists
global.abortFunc = (typeof abort === "function") ? abort : null;
var __async_hooks = require('async_hooks');
let __internalAsyncCalls = {};
let asyncHook;
function initAsyncTracking(trackedAsyncId) {
const _internalHookInit = (asyncId, type, triggerAsyncId, resource) => {
if ((trackedAsyncId === triggerAsyncId) || __internalAsyncCalls[triggerAsyncId]) {
// PROMISE event type might not generate 'before' event, so that we immediately treat it as "live"
__internalAsyncCalls[asyncId] = {triggerAsyncId, type, alive: type === 'PROMISE' ? 1 : 0, event: 'init'};
}
};
const _internalHookBefore = (asyncId) => {
if (__internalAsyncCalls[asyncId] && __internalAsyncCalls[asyncId].type !== 'PROMISE') {
__internalAsyncCalls[asyncId].alive++;
}
if (__internalAsyncCalls[asyncId]) {
__internalAsyncCalls[asyncId].event += 'before';
}
};
const _internalHookAfter = (asyncId) => {
if (__internalAsyncCalls[asyncId]) {
__internalAsyncCalls[asyncId].alive--;
__internalAsyncCalls[asyncId].event += 'after';
}
};
asyncHook = __async_hooks.createHook({ init: _internalHookInit, before: _internalHookBefore, after: _internalHookAfter, promiseResolve: _internalHookAfter });
asyncHook.enable();
}
async function entrypointWrapper() {
return new Promise((resolve, reject) => {
const asyncTrackingResource = new __async_hooks.AsyncResource("SWITCH-SCRIPT-RESOURCE");
asyncTrackingResource.runInAsyncScope(async () => {
try {
const trackedAsyncId = __async_hooks.executionAsyncId(); // Get the id of the async resource we created.
initAsyncTracking(trackedAsyncId );
let callbackName;
callbackName = validateProperties;
res = await entrypoint(environment, callbackName);
asyncHook.disable();
const notClosedAsyncCalls = Object.values(__internalAsyncCalls).filter(obj => {
return obj.alive > 0;
});
if (notClosedAsyncCalls.length > 1) {
// Log warning
const flowElement = new _FlowElement(
{
outConnections: environment.outConnections,
sesOptions: environment.sesOptions,
properties: environment.properties,
isLocalConnection: environment.isLocalConnection,
resourcePath: environment.resourcePath,
logDebug: environment.logDebug
}
);
try {
await flowElement.log(LogLevel.Warning, 'The script execution has ended while an async function or callback in the script might not have finished yet. Please check the script code for unresolved promises or missing await statements.');
} catch (err) {
enfocusLogManager.logError(err.message);
}
}
//enfocusLogManager.logDebug('__internalAsyncCalls: ', JSON.stringify(__internalAsyncCalls));
//enfocusLogManager.logDebug('__internalAsyncCalls, size: ', Object.keys(__internalAsyncCalls).length);
resolve(res);
} catch (error) {
resolve({
error
});
return;
}
});
});
}
return entrypointWrapper()
.then(res => {
return Promise.resolve({status: !res.error ? true : false, res});
});})