browserstack-node-sdk 1.55.4 → 1.55.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +3 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/newman/command.js +1 -1
- package/src/bin/newman/helper.js +1 -1
- package/src/bin/newman/reporter/index.js +1 -1
- package/src/bin/newman/scriptRunner.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/puppeteer/patches.js +1 -1
- package/src/bin/puppeteer/sessionDetails.js +1 -1
- package/src/bin/puppeteer/test.setup.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/puppeteer-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/newmanTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/puppeteer-helper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/stackFrameUtils.js +1 -0
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a53_0x25d6f7=a53_0x3a9f;(function(_0x247b3d,_0x133147){const _0x23b10c=a53_0x3a9f,_0x99f0c2=_0x247b3d();while(!![]){try{const _0x179b86=parseInt(_0x23b10c(0xa5))/0x1*(-parseInt(_0x23b10c(0xe0))/0x2)+-parseInt(_0x23b10c(0xf3))/0x3*(parseInt(_0x23b10c(0xd5))/0x4)+-parseInt(_0x23b10c(0xb2))/0x5*(-parseInt(_0x23b10c(0xf7))/0x6)+-parseInt(_0x23b10c(0xc0))/0x7+parseInt(_0x23b10c(0xaa))/0x8*(parseInt(_0x23b10c(0xda))/0x9)+-parseInt(_0x23b10c(0xfd))/0xa+parseInt(_0x23b10c(0xfe))/0xb;if(_0x179b86===_0x133147)break;else _0x99f0c2['push'](_0x99f0c2['shift']());}catch(_0xb9fcf3){_0x99f0c2['push'](_0x99f0c2['shift']());}}}(a53_0x4955,0x9a875));function a53_0x3a9f(_0x1674b9,_0x1be8ea){const _0x4955ef=a53_0x4955();return a53_0x3a9f=function(_0x3a9fa8,_0xbea8d2){_0x3a9fa8=_0x3a9fa8-0xa4;let _0x41ba7d=_0x4955ef[_0x3a9fa8];return _0x41ba7d;},a53_0x3a9f(_0x1674b9,_0x1be8ea);}const path=require(a53_0x25d6f7(0xe9)),url=require(a53_0x25d6f7(0xe4)),util=require(a53_0x25d6f7(0xf9)),{nestedKeyValue,isFalse}=require(a53_0x25d6f7(0xd7)),{debug,getPlatformDetails}=require(a53_0x25d6f7(0xaf)),logger=require(a53_0x25d6f7(0xf2))[a53_0x25d6f7(0xbe)],constants=require(a53_0x25d6f7(0xef)),BrowserstackCLI=require(a53_0x25d6f7(0xae)),AutomationFrameworkState=require(a53_0x25d6f7(0xec)),HookState=require('../v2/state/hookState.js'),getBrowserFromWSEndpoint=_0x59e6b0=>{const _0x40b48f=a53_0x25d6f7,_0x5a5092={'qRpmk':_0x40b48f(0xbc),'nbupK':function(_0xd72cac,_0x113398){return _0xd72cac(_0x113398);}};try{const _0x12eba9=url[_0x40b48f(0xb6)](_0x59e6b0),_0x3068b5=new URLSearchParams(_0x12eba9['query']),_0x121bd4=Object['fromEntries'](_0x3068b5[_0x40b48f(0xd0)]()),_0x444bbf=JSON[_0x40b48f(0xb6)](_0x121bd4['caps']);if(_0x444bbf&&(_0x444bbf[_0x40b48f(0xea)]||_0x444bbf[_0x40b48f(0xb1)]))return _0x444bbf[_0x40b48f(0xea)]||_0x444bbf['browserName'];return _0x5a5092[_0x40b48f(0xc3)];}catch(_0x90f653){_0x5a5092[_0x40b48f(0xcb)](debug,_0x40b48f(0xc4)+_0x90f653[_0x40b48f(0xa7)]());}},getCloudProviderFromWsEndpoint=_0x18201d=>{const _0x300afe=a53_0x25d6f7,_0x3556c5={};_0x3556c5[_0x300afe(0xfb)]=_0x300afe(0xbd),_0x3556c5[_0x300afe(0xa6)]=_0x300afe(0xd2);const _0x5a712f=_0x3556c5;if(_0x18201d[_0x300afe(0xba)](constants[_0x300afe(0x101)])||_0x18201d[_0x300afe(0xba)](constants['BSTACK_ATS_URL']))return _0x5a712f[_0x300afe(0xfb)];return _0x5a712f[_0x300afe(0xa6)];},a53_0x834e3={};a53_0x834e3['cloudProvider']=undefined,a53_0x834e3[a53_0x25d6f7(0xfc)]=undefined,a53_0x834e3[a53_0x25d6f7(0xea)]=undefined,a53_0x834e3[a53_0x25d6f7(0xd9)]=undefined,a53_0x834e3[a53_0x25d6f7(0xbf)]=undefined,a53_0x834e3['platform_version']=undefined,a53_0x834e3[a53_0x25d6f7(0xa8)]=undefined,a53_0x834e3[a53_0x25d6f7(0xc1)]={};class PuppeteerSessionDetails{static [a53_0x25d6f7(0xad)]=a53_0x834e3;constructor(){const _0x47a8d8=a53_0x25d6f7,_0x218fdb={};_0x218fdb[_0x47a8d8(0xed)]=_0x47a8d8(0xb3);const _0x189cb5=_0x218fdb;throw new Error(_0x189cb5[_0x47a8d8(0xed)]);}static ['sessionError']=null;static async[a53_0x25d6f7(0xb8)](_0x509ecd,_0x4494c7){const _0x20c0c0=a53_0x25d6f7,_0x25fff6={'qNEWn':_0x20c0c0(0xbc),'XHfqR':function(_0x25250c,_0x275829){return _0x25250c===_0x275829;},'ArLDv':_0x20c0c0(0xb7),'gOGTr':_0x20c0c0(0xb9),'pyjXB':function(_0x113e59,_0x545873){return _0x113e59(_0x545873);},'cXvpL':'browserstack','IYoUE':_0x20c0c0(0xc9),'nCqgX':_0x20c0c0(0xbb),'KgDPK':function(_0x4884da){return _0x4884da();},'YZmGX':function(_0x3b964a){return _0x3b964a();}};try{let _0x3f8325=_0x25fff6[_0x20c0c0(0xd3)],_0x3bea57=null;_0x509ecd&&_0x25fff6[_0x20c0c0(0xe2)](typeof _0x509ecd['version'],_0x25fff6[_0x20c0c0(0xd1)])&&(_0x3bea57=await _0x509ecd[_0x20c0c0(0x100)]());let _0x49cffe=null,_0x54a8a2=null,_0x2ca1bc=null,_0x561425=_0x25fff6['gOGTr'];if(_0x4494c7){_0x561425=_0x25fff6[_0x20c0c0(0xcf)](getCloudProviderFromWsEndpoint,_0x4494c7);if(_0x25fff6[_0x20c0c0(0xe2)](_0x561425,_0x25fff6[_0x20c0c0(0xa4)]))_0x2ca1bc=constants['ATS_WSS_URL_REGEX']?constants['ATS_WSS_URL_REGEX'][_0x20c0c0(0xa9)](_0x4494c7)?_0x25fff6[_0x20c0c0(0xc8)]:_0x25fff6[_0x20c0c0(0xe7)]:_0x25fff6['nCqgX'],_0x3f8325=_0x25fff6[_0x20c0c0(0xcf)](getBrowserFromWSEndpoint,_0x4494c7)||_0x3f8325,_0x49cffe=this[_0x20c0c0(0xad)]['platform'],_0x54a8a2=this[_0x20c0c0(0xad)][_0x20c0c0(0xf0)];else{const _0x10b2a6=await _0x25fff6['KgDPK'](getPlatformDetails);_0x49cffe=_0x10b2a6[_0x20c0c0(0xf4)],_0x54a8a2=_0x10b2a6[_0x20c0c0(0xb0)];}}else{const _0x18afa5=await _0x25fff6[_0x20c0c0(0xd4)](getPlatformDetails);_0x49cffe=_0x18afa5[_0x20c0c0(0xf4)],_0x54a8a2=_0x18afa5[_0x20c0c0(0xb0)];}const _0x43d422={};_0x43d422[_0x20c0c0(0xea)]=_0x3f8325,_0x43d422['browser_version']=_0x3bea57,_0x43d422[_0x20c0c0(0xc1)]={},_0x43d422[_0x20c0c0(0xbf)]=_0x49cffe,_0x43d422['platform_version']=_0x54a8a2,_0x43d422[_0x20c0c0(0xa8)]=_0x2ca1bc;const _0x5c71ee=_0x43d422,_0x4e9934={};_0x4e9934[_0x20c0c0(0xcd)]=_0x561425,this[_0x20c0c0(0xad)]=Object['assign']({},this['currentSessionDetails'],_0x4e9934,_0x5c71ee);}catch(_0x4e95ef){_0x25fff6[_0x20c0c0(0xcf)](debug,_0x20c0c0(0xdb)+util[_0x20c0c0(0xe1)](_0x4e95ef)),this['sessionError']=_0x4e95ef['toString']();}}static[a53_0x25d6f7(0xdc)](_0x153acc){const _0x171d7b=a53_0x25d6f7,_0x1bfc09={'GSuUT':function(_0x4f36e1,_0xecb441){return _0x4f36e1===_0xecb441;},'ZnXhq':_0x171d7b(0xe3),'jMIVz':function(_0x3112de,_0x4537c8){return _0x3112de(_0x4537c8);},'IiapG':function(_0x1e11fb,_0x2fe1db){return _0x1e11fb===_0x2fe1db;},'KrJSo':'[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','EJyth':function(_0x134193,_0x55dc9c){return _0x134193(_0x55dc9c);}},_0x2b0552=this;try{const _0x4245dd=_0x153acc[_0x171d7b(0xf6)]||_0x153acc['connection'];if(!_0x4245dd||_0x4245dd[_0x171d7b(0xc6)])return;const _0x18f46a=_0x4245dd[_0x171d7b(0xca)];_0x4245dd[_0x171d7b(0xca)]=function(_0x9bd790){const _0x31d984=_0x171d7b;try{const _0x5f0019=_0x1bfc09[_0x31d984(0xc7)](typeof _0x9bd790,_0x1bfc09[_0x31d984(0xdf)])?JSON[_0x31d984(0xb6)](_0x9bd790):_0x9bd790,_0x4c0c7e=_0x5f0019?.[_0x31d984(0xd6)]||_0x5f0019?.[_0x31d984(0xde)]||_0x5f0019?.['params']?.['bsParams']||_0x5f0019?.[_0x31d984(0xee)]?.[_0x31d984(0xd6)]||_0x5f0019?.[_0x31d984(0xc2)]?.[_0x31d984(0xde)]||_0x5f0019?.[_0x31d984(0xc2)]?.[_0x31d984(0xd6)];if(_0x4c0c7e){if(BrowserstackCLI[_0x31d984(0xb4)]()[_0x31d984(0xac)]()){const _0x434a75={};_0x434a75['message']=_0x5f0019,BrowserstackCLI[_0x31d984(0xb4)]()[_0x31d984(0xe8)]()[_0x31d984(0xb5)](AutomationFrameworkState[_0x31d984(0xe6)],HookState[_0x31d984(0xc5)],_0x434a75);}else{const _0x3026a8=_0x4c0c7e['sessionId'],_0x27d3d7=_0x4c0c7e[_0x31d984(0xab)];_0x27d3d7&&(_0x1bfc09[_0x31d984(0xd8)](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+JSON[_0x31d984(0xe5)](_0x27d3d7)),_0x2b0552['currentSessionDetails'][_0x31d984(0xbf)]=_0x27d3d7['platformName'],_0x2b0552[_0x31d984(0xad)][_0x31d984(0xf0)]=_0x27d3d7[_0x31d984(0xb0)]),_0x3026a8&&(_0x1bfc09[_0x31d984(0xd8)](debug,_0x31d984(0xf5)+_0x3026a8),_0x2b0552[_0x31d984(0xad)][_0x31d984(0xfc)]=_0x3026a8);}_0x1bfc09[_0x31d984(0xcc)](typeof _0x9bd790,_0x1bfc09[_0x31d984(0xdf)])&&(delete _0x5f0019[_0x31d984(0xd6)],delete _0x5f0019[_0x31d984(0xde)],_0x5f0019[_0x31d984(0xee)]&&(delete _0x5f0019['params'][_0x31d984(0xde)],delete _0x5f0019[_0x31d984(0xee)][_0x31d984(0xd6)]),_0x5f0019[_0x31d984(0xc2)]&&(delete _0x5f0019[_0x31d984(0xc2)][_0x31d984(0xde)],delete _0x5f0019[_0x31d984(0xc2)][_0x31d984(0xd6)]));}}catch(_0x3ed7c1){_0x1bfc09[_0x31d984(0xd8)](debug,_0x31d984(0xf1)+_0x3ed7c1[_0x31d984(0xce)]);}return _0x18f46a?.[_0x31d984(0xff)](this,arguments);},_0x4245dd[_0x171d7b(0xc6)]=!![],logger['debug'](_0x1bfc09[_0x171d7b(0xeb)]);}catch(_0x31d939){_0x1bfc09['EJyth'](debug,_0x171d7b(0xf8)+util[_0x171d7b(0xe1)](_0x31d939)),_0x2b0552['sessionError']=_0x31d939[_0x171d7b(0xa7)]();}}static[a53_0x25d6f7(0xfa)](){const _0x2ba502=a53_0x25d6f7;return this[_0x2ba502(0xad)];}}module[a53_0x25d6f7(0xdd)]=PuppeteerSessionDetails;function a53_0x4955(){const _0x3a5fbb=['Invalid\x20constructor,\x20please\x20use\x20static\x20methods','getInstance','trackEvent','parse','function','setupBrowserDetails','local_grid','includes','automate','chrome','browserstack','winstonLogger','platform','7409283CklGCy','capabilities','result','qRpmk','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','POST','_bstackPatched','GSuUT','IYoUE','turboscale','onmessage','nbupK','IiapG','cloudProvider','message','pyjXB','entries','ArLDv','unknown_grid','qNEWn','YZmGX','4148028erLlzr','bStackParams','../../helpers/helper','jMIVz','browser_version','198yOnbpr','Error\x20in\x20setupBrowserDetails:\x20','patchConnection','exports','bsParams','ZnXhq','2EEiVBq','format','XHfqR','string','url','stringify','PLAYWRIGHT_DISPATCH','nCqgX','getAutomationFramework','path','browser','KrJSo','../v2/state/automationFrameworkState.js','mPKVD','params','../utils/constants','platform_version','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','../../helpers/logger','3rwOLjj','platformName','Setting\x20session\x20id\x20received\x20from\x20BS\x20','_connection','1098iJtsMT','Error\x20in\x20patchConnection:\x20','util','getDetails','ELwCb','bsSessionId','2937170KKLEMP','26313507oBcVko','apply','version','BSTACK_URL','cXvpL','215678GhmUrw','hQETg','toString','product','test','223208BfvEHd','platformDetails','isRunning','currentSessionDetails','../v2/browserstackCLI','../../helpers/test-observability/utils','platformVersion','browserName','6335pKcwmH'];a53_0x4955=function(){return _0x3a5fbb;};return a53_0x4955();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x194b89=a54_0x1959;(function(_0x33116b,_0x55fee3){const _0x3558fa=a54_0x1959,_0x1e1768=_0x33116b();while(!![]){try{const _0x52e124=parseInt(_0x3558fa(0x161))/0x1+parseInt(_0x3558fa(0x13a))/0x2+parseInt(_0x3558fa(0x14b))/0x3+-parseInt(_0x3558fa(0x141))/0x4*(parseInt(_0x3558fa(0x13d))/0x5)+parseInt(_0x3558fa(0x167))/0x6+parseInt(_0x3558fa(0x14a))/0x7+parseInt(_0x3558fa(0x15f))/0x8*(-parseInt(_0x3558fa(0x150))/0x9);if(_0x52e124===_0x55fee3)break;else _0x1e1768['push'](_0x1e1768['shift']());}catch(_0x1619d8){_0x1e1768['push'](_0x1e1768['shift']());}}}(a54_0x17be,0x91d33));const {isTrue,isBrowserstackInfra}=require(a54_0x194b89(0x152)),setKeepAlive=require(a54_0x194b89(0x14c)),util=require('util'),logger=require(a54_0x194b89(0x15e))[a54_0x194b89(0x158)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),{addRequestSpy}=require(a54_0x194b89(0x162)),a54_0x507836={};a54_0x507836['workerInfo']=undefined,a54_0x507836[a54_0x194b89(0x159)]={},a54_0x507836['o11ySyncDone']=![],a54_0x507836[a54_0x194b89(0x14d)]=null,a54_0x507836[a54_0x194b89(0x153)]=![],a54_0x507836[a54_0x194b89(0x159)]['id']=undefined,a54_0x507836[a54_0x194b89(0x159)]['testInfo']=undefined;const workerDetails=a54_0x507836;global[a54_0x194b89(0x151)]=workerDetails;let puppeteerPatcher=null;function a54_0x1959(_0xa4edd7,_0x1229db){const _0x17beb=a54_0x17be();return a54_0x1959=function(_0x1959a7,_0x260e8f){_0x1959a7=_0x1959a7-0x13a;let _0x5ca52b=_0x17beb[_0x1959a7];return _0x5ca52b;},a54_0x1959(_0xa4edd7,_0x1229db);}setKeepAlive();if(global[a54_0x194b89(0x14e)])try{isBrowserstackInfra()?(global[a54_0x194b89(0x140)]=isTrue(global[a54_0x194b89(0x14e)]?.['skipSessionName']),global['__skipSessionStatus']=isTrue(global[a54_0x194b89(0x14e)]?.[a54_0x194b89(0x166)])):(global[a54_0x194b89(0x140)]=!![],global[a54_0x194b89(0x14f)]=!![]);const helper=require(a54_0x194b89(0x152)),puppeteerVersion=helper[a54_0x194b89(0x143)](a54_0x194b89(0x157))||helper[a54_0x194b89(0x143)](a54_0x194b89(0x148));if(puppeteerVersion)try{logger[a54_0x194b89(0x15a)]('[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest'),puppeteerPatcher=require(a54_0x194b89(0x164)),puppeteerPatcher[a54_0x194b89(0x15d)](global[a54_0x194b89(0x14e)]),logger[a54_0x194b89(0x15a)](a54_0x194b89(0x13b));}catch(a54_0x50c746){logger[a54_0x194b89(0x15a)](a54_0x194b89(0x146)+util['format'](a54_0x50c746));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x194b89(0x165)),CLIUtils=require(a54_0x194b89(0x13f)),{FRAMEWORKS}=require(a54_0x194b89(0x142));BrowserstackCLI[a54_0x194b89(0x163)]()[a54_0x194b89(0x15b)]()&&(logger['debug'](a54_0x194b89(0x145)),process['env'][a54_0x194b89(0x156)]=a54_0x194b89(0x154),CLIUtils['setFrameworkDetail'](FRAMEWORKS[a54_0x194b89(0x149)],FRAMEWORKS[a54_0x194b89(0x147)]),BrowserstackCLI[a54_0x194b89(0x163)]()[a54_0x194b89(0x155)]()[a54_0x194b89(0x13c)](_0x45a36d=>{const _0xb42b98=a54_0x194b89;logger[_0xb42b98(0x15a)](_0xb42b98(0x15c)+util['format'](_0x45a36d));}));}catch(a54_0x1f9a3d){logger[a54_0x194b89(0x15a)](a54_0x194b89(0x160)+util[a54_0x194b89(0x13e)](a54_0x1f9a3d));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x1046a4){logger[a54_0x194b89(0x15a)](a54_0x194b89(0x144)+util[a54_0x194b89(0x13e)](a54_0x1046a4));}logger[a54_0x194b89(0x15a)]('[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed');function a54_0x17be(){const _0x8528ad=['[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','PUPPETEER','puppeteer-core','JEST','5129565HqCMNz','866034XRUMEO','../../helpers/setKeepAlive','pwPage','jestConfig','__skipSessionStatus','12993273mTkfCh','__workerDetails','../../helpers/helper','isPageFixture','true','bootstrap','BROWSERSTACK_PUPPETEER','puppeteer','winstonLogger','currentTest','debug','isCliEnabled','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','initializePuppeteerPatching','../../helpers/logger','8CgZHUM','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','727043rHqGxP','../../helpers/test-observability/utils','getInstance','../utils/puppeteer-patcher','../v2/browserstackCLI','skipSessionStatus','6002604XtTgDn','134168WqzjFZ','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','catch','1937595NtDAsV','format','../v2/cliUtils','__skipSessionName','8mibvZV','../utils/constants','getPackageVersion'];a54_0x17be=function(){return _0x8528ad;};return a54_0x17be();}
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a55_0x354a51=a55_0x47e0;(function(_0x1e4625,_0x38c52c){const _0x4fd893=a55_0x47e0,_0x1789f0=_0x1e4625();while(!![]){try{const _0x474309=-parseInt(_0x4fd893(0x1dc))/0x1+-parseInt(_0x4fd893(0x1a6))/0x2*(parseInt(_0x4fd893(0x1bb))/0x3)+-parseInt(_0x4fd893(0x1bf))/0x4*(parseInt(_0x4fd893(0x1d5))/0x5)+-parseInt(_0x4fd893(0x1c0))/0x6+parseInt(_0x4fd893(0x211))/0x7*(parseInt(_0x4fd893(0x1f5))/0x8)+-parseInt(_0x4fd893(0x1a4))/0x9*(-parseInt(_0x4fd893(0x206))/0xa)+parseInt(_0x4fd893(0x22a))/0xb;if(_0x474309===_0x38c52c)break;else _0x1789f0['push'](_0x1789f0['shift']());}catch(_0x36e66a){_0x1789f0['push'](_0x1789f0['shift']());}}}(a55_0x204f,0xbc7fc));const fs=require('fs'),path=require(a55_0x354a51(0x1f1)),util=require(a55_0x354a51(0x210)),spawn=require(a55_0x354a51(0x209))[a55_0x354a51(0x1ad)],{requireModule}=require(a55_0x354a51(0x20a)),PerformanceTester=require(a55_0x354a51(0x1d3)),PerformanceEvents=require(a55_0x354a51(0x1b2))['EVENTS'],helper=require(a55_0x354a51(0x20a)),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a55_0x354a51(0x214)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require(a55_0x354a51(0x1da)),yargs=require('yargs'),Constants=require(a55_0x354a51(0x213)),BrowserstackCLI=require(a55_0x354a51(0x1f2)),{isNewman}=require('./newman/helper'),logger=require('../helpers/logger')[a55_0x354a51(0x22c)],origArgs=Object[a55_0x354a51(0x1b6)]([],process['argv']),captureError=async(_0x4c3b69,_0x3114f3,_0x1f8480,_0xe02705=null,_0x5edf72=![])=>{const _0x5cec06=a55_0x354a51,_0x44ad8b={'gEgiv':function(_0x47a3ae,_0xc9bdda,_0x5d4580,_0x39abf2){return _0x47a3ae(_0xc9bdda,_0x5d4580,_0x39abf2);},'gYQsM':_0x5cec06(0x204)};try{logger[_0x5cec06(0x20d)]('Running\x20SDK\x20with\x20args\x20'+origArgs['join']('\x20')),await _0x44ad8b[_0x5cec06(0x1dd)](_0x4c3b69,_0x3114f3,_0xe02705,_0x1f8480);}catch(_0x2e4427){process['exitCode']=0x1,logger['error'](util[_0x5cec06(0x1e2)](_0x2e4427));const _0x3b0282={'globalException':util[_0x5cec06(0x1e2)]('%j',_0x2e4427)};PerformanceTester[_0x5cec06(0x1b0)](PerformanceEvents[_0x5cec06(0x19e)],![],util[_0x5cec06(0x1e2)](_0x2e4427));if(helper[_0x5cec06(0x21b)](global[_0x5cec06(0x1c3)])&&helper[_0x5cec06(0x21b)](global[_0x5cec06(0x1af)]))return;try{utilities['fireFunnelTestEvent'](_0x44ad8b['gYQsM'],_0x3b0282,global['config'],global[_0x5cec06(0x1af)]);}catch(_0x48132e){logger[_0x5cec06(0x1ff)](_0x5cec06(0x1c7)+_0x48132e[_0x5cec06(0x228)]);}try{await helper['sendLogs'](global['config']);}catch(_0x2eeedb){logger[_0x5cec06(0x1ff)](_0x5cec06(0x216)+_0x2eeedb[_0x5cec06(0x228)]);}PerformanceTester['end'](PerformanceEvents[_0x5cec06(0x19e)],![],util[_0x5cec06(0x1e2)](_0x2e4427));}finally{!_0x5edf72&&await BrowserstackCLI[_0x5cec06(0x227)]()[_0x5cec06(0x1e0)](),PerformanceTester[_0x5cec06(0x1ae)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path[a55_0x354a51(0x1c8)](helper[a55_0x354a51(0x1ab)](),a55_0x354a51(0x21f));if(fs[a55_0x354a51(0x1ac)](browserstackFolderPath)){const filePath=path[a55_0x354a51(0x1c8)](browserstackFolderPath,a55_0x354a51(0x1ec));fs[a55_0x354a51(0x1ac)](filePath)&&fs[a55_0x354a51(0x195)](filePath);}}catch(a55_0xf32661){logger[a55_0x354a51(0x1ff)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a55_0xf32661['message']);}function a55_0x204f(){const _0x382702=['child_process','../helpers/helper','slice','disableAutoCaptureLogs','info','--mochaRequire','./cucumber-js/command','util','1771ECkRfm','help','./utils/constants','../helpers/BrowserStackSetup','djNOf','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','atUaC','CODECEPTJS','XpXso','jest','isUndefined','dEqdh','some','NYsLj','.browserstack','version','KoKOm','./nightwatch/command','option','alias','JEST','NIGHTWATCH','getInstance','stack','find','12077472rETkYP','tgffo','winstonLogger','showHelpOnFail','DEBUG','--package','cucumber-js','--opts','EZKpa','unlinkSync','pZkrr','ats','mocha','strict','INTEGRATIONS','IDuLr','xKntz','Runs\x20the\x20binary\x20with\x20load\x20command','SDK_SETUP','setTestObservabilityDisable','sVVDn','includes','bKZLX','oTvLw','2598741vZdHlD','INFO','960XRhFKo','BROWSERSTACK_CONFIG_FILE_PATH','./vanilla-js/command','jlUcR','nZKJS','homedir','existsSync','spawn','start','framework','end','map','../helpers/performance/constants','VANILLA','run','./newman/command','assign','Jayzc','./mocha/command','command','playwright','1812tOUJIh','nightwatch','JnAud','GQuqZ','576988wfJiIy','2305260VBIrLZ','--no-opts','alPUk','config','newman','handler','NMUZT','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','join','DEBUG_FILE','pw:*','dot-notation','load\x20[subcommand]','../../ats/src/index','env','CASiq','gOoMu','PXzEV','pw:channel','../helpers/performance/performance-tester','enPoD','35ctclxp','Lhzyq','findAndReplace','sauan','describe','./integrations/command','wrap','249639UEDTwE','gEgiv','argv','WYvmU','stop','PVrWQ','format','YmWwM','pw:channel\x20auto-capture\x20seed\x20failed:\x20','CUCUMBER','Show\x20help','ZHkIF','PLAYWRIGHT','duXOL','VSUTV','uRJVi','.local-not-set.json','setBrowserStackAutomationDisable','vanilla','split','maPOl','path','./v2/browserstackCLI','eTWrI','PBHsr','41704qyKIVP','filter','trim','getConfigPath','usage:\x20$0\x20<command>\x20[args]','./codeceptjs/command','VERSION','getPwChannelLogPath','fuuMO','HST','debug','parserConfiguration','mpsoD','--no-package','integrations','SDKTestSuccessful','push','10PTDzOG','OWwcE','EyPKg'];a55_0x204f=function(){return _0x382702;};return a55_0x204f();}process['argv'][a55_0x354a51(0x1a1)](a55_0x354a51(0x198))&&(!process['argv'][a55_0x354a51(0x1a1)](a55_0x354a51(0x193))&&process[a55_0x354a51(0x1de)]['push'](a55_0x354a51(0x1c1)),!process[a55_0x354a51(0x1de)][a55_0x354a51(0x229)](_0x1ba60c=>_0x1ba60c[a55_0x354a51(0x1a1)]('--config'))&&process[a55_0x354a51(0x1de)]['push']('--no-config'),!process[a55_0x354a51(0x1de)][a55_0x354a51(0x1a1)](a55_0x354a51(0x191))&&process[a55_0x354a51(0x1de)][a55_0x354a51(0x205)](a55_0x354a51(0x202)),helper[a55_0x354a51(0x1d7)](process[a55_0x354a51(0x1de)],'--require',a55_0x354a51(0x20e)));function a55_0x47e0(_0x486f53,_0x1e6ca1){const _0x204f0e=a55_0x204f();return a55_0x47e0=function(_0x47e0b3,_0x205bbe){_0x47e0b3=_0x47e0b3-0x190;let _0x22f02e=_0x204f0e[_0x47e0b3];return _0x22f02e;},a55_0x47e0(_0x486f53,_0x1e6ca1);}PerformanceTester[a55_0x354a51(0x1ae)](PerformanceEvents[a55_0x354a51(0x19e)]);const a55_0x3d4803={};a55_0x3d4803[a55_0x354a51(0x1cb)]=![];const argv=yargs[a55_0x354a51(0x200)](a55_0x3d4803)['usage'](a55_0x354a51(0x1f9))[a55_0x354a51(0x224)]('v',a55_0x354a51(0x220))[a55_0x354a51(0x1d9)]('v')[a55_0x354a51(0x224)]('h',a55_0x354a51(0x212))[a55_0x354a51(0x212)](a55_0x354a51(0x212))[a55_0x354a51(0x22d)](!![],Constants[a55_0x354a51(0x1fb)]['HELP'])[a55_0x354a51(0x1b9)]('jest',Constants[a55_0x354a51(0x225)]['INFO'],function(_0x1d6a73){const _0x36e093=a55_0x354a51,_0x2f8fce={'nAEwO':_0x36e093(0x21a),'oTvLw':function(_0x3f04d0,_0xb580e7,_0x4fc30a,_0x2a7c9b,_0x52ee69,_0x30cb22){return _0x3f04d0(_0xb580e7,_0x4fc30a,_0x2a7c9b,_0x52ee69,_0x30cb22);},'pfIbG':function(_0x367f92,_0x25ddb6){return _0x367f92(_0x25ddb6);},'PXzEV':'./jest/command'},_0x30da7d=process[_0x36e093(0x1de)]['slice'](0x2);helper[_0x36e093(0x19f)](),helper[_0x36e093(0x1ed)](),_0x1d6a73['strict'](![]);const _0x27139=new BrowserStackSetup(_0x1d6a73[_0x36e093(0x1de)],_0x2f8fce['nAEwO']);return _0x2f8fce[_0x36e093(0x1a3)](captureError,_0x2f8fce['pfIbG'](require,_0x2f8fce[_0x36e093(0x1d1)]),_0x1d6a73['argv'],_0x27139,_0x30da7d,!![]);})[a55_0x354a51(0x1b9)]('mocha',Constants['MOCHA']['INFO'],_0x4f59f5=>{const _0x1f4460=a55_0x354a51,_0x9f4e5c={'nZKJS':function(_0x44f06c,_0xecb49c,_0x31cbc2,_0x372731){return _0x44f06c(_0xecb49c,_0x31cbc2,_0x372731);},'AXmNn':function(_0x244bbd,_0x47488a){return _0x244bbd(_0x47488a);},'atUaC':_0x1f4460(0x1b8),'sauan':'mocha','Lhzyq':'Parsing\x20command\x20line\x20arguments','GQuqZ':function(_0xd496aa,_0x4f1ffe,_0x2183d7){return _0xd496aa(_0x4f1ffe,_0x2183d7);},'PBHsr':'mocha/lib/cli/run.js','CASiq':function(_0x1de4fd,_0x20c2b7,_0x26b411){return _0x1de4fd(_0x20c2b7,_0x26b411);},'EyPKg':'mocha/lib/cli/commands.js','NMUZT':'mocha/lib/cli/cli.js','VNfWf':function(_0x57538e){return _0x57538e();}};process[_0x1f4460(0x1de)]=process['argv'][_0x1f4460(0x20b)](0x1),helper[_0x1f4460(0x19f)](),helper[_0x1f4460(0x1ed)]();const _0x52794a=new BrowserStackSetup(_0x4f59f5['argv'],_0x9f4e5c['sauan']);logger['debug'](_0x9f4e5c[_0x1f4460(0x1d6)]);const _0x22dc14=_0x9f4e5c[_0x1f4460(0x1be)](requireModule,_0x9f4e5c[_0x1f4460(0x1f4)],_0x9f4e5c[_0x1f4460(0x1d8)]),_0x5a9992=_0x9f4e5c[_0x1f4460(0x1cf)](requireModule,_0x9f4e5c[_0x1f4460(0x208)],_0x9f4e5c['sauan']);delete _0x22dc14[_0x1f4460(0x1c5)],_0x22dc14[_0x1f4460(0x1c5)]=function(_0x2e3ffd){const _0x6b2a82=_0x1f4460;return _0x9f4e5c[_0x6b2a82(0x1aa)](captureError,_0x9f4e5c['AXmNn'](require,_0x9f4e5c[_0x6b2a82(0x217)]),_0x2e3ffd,_0x52794a);},_0x5a9992[_0x1f4460(0x1b4)]=_0x22dc14;const {main:_0x41b07c}=_0x9f4e5c[_0x1f4460(0x1cf)](requireModule,_0x9f4e5c[_0x1f4460(0x1c6)],_0x9f4e5c[_0x1f4460(0x1d8)]);_0x9f4e5c['VNfWf'](_0x41b07c);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x192),Constants[a55_0x354a51(0x1e5)]['INFO'],function(_0x50e555){const _0x3c11cb=a55_0x354a51,_0x16dac9={'Jayzc':_0x3c11cb(0x192),'PVrWQ':function(_0x54260d,_0x6487d3,_0x2a9488,_0x138bf4,_0x57ffe8,_0x34db7b){return _0x54260d(_0x6487d3,_0x2a9488,_0x138bf4,_0x57ffe8,_0x34db7b);},'sVVDn':function(_0x34790a,_0x3d0d96){return _0x34790a(_0x3d0d96);},'jlUcR':_0x3c11cb(0x20f)},_0x3980a7=process[_0x3c11cb(0x1de)][_0x3c11cb(0x20b)](0x2),_0x119e55=new BrowserStackSetup(_0x50e555['argv'],_0x16dac9[_0x3c11cb(0x1b7)]);return _0x16dac9[_0x3c11cb(0x1e1)](captureError,_0x16dac9[_0x3c11cb(0x1a0)](require,_0x16dac9[_0x3c11cb(0x1a9)]),_0x50e555['argv'],_0x119e55,_0x3980a7,!![]);})[a55_0x354a51(0x1b9)]('node',Constants[a55_0x354a51(0x1b3)][a55_0x354a51(0x1a5)],function(_0x2313c9){const _0x49f076=a55_0x354a51,_0x4ecdbd={'pZkrr':_0x49f076(0x1ee),'YmWwM':function(_0x2ad694,_0x7c6f9a){return _0x2ad694(_0x7c6f9a);},'XpXso':_0x49f076(0x1c4),'WYvmU':function(_0x2976b5,_0x507325,_0x1c2d47,_0x54b974,_0x2d2e89){return _0x2976b5(_0x507325,_0x1c2d47,_0x54b974,_0x2d2e89);},'MpFwi':function(_0x2b2746,_0x186bfa){return _0x2b2746(_0x186bfa);},'ZHkIF':_0x49f076(0x1b5),'IDuLr':_0x49f076(0x1a8)},_0x73d064=process['argv'][_0x49f076(0x20b)](0x2),_0x51bba4=new BrowserStackSetup(_0x2313c9[_0x49f076(0x1de)],_0x4ecdbd[_0x49f076(0x196)]),_0x21527a=_0x51bba4?_0x51bba4[_0x49f076(0x1c3)]:null;if(_0x4ecdbd[_0x49f076(0x1e3)](isNewman,_0x21527a))return _0x51bba4[_0x49f076(0x1af)]=_0x4ecdbd[_0x49f076(0x219)],global[_0x49f076(0x1af)]=_0x4ecdbd[_0x49f076(0x219)],_0x4ecdbd['WYvmU'](captureError,_0x4ecdbd['MpFwi'](require,_0x4ecdbd[_0x49f076(0x1e7)]),_0x2313c9['argv'],_0x51bba4,_0x73d064);return _0x4ecdbd[_0x49f076(0x1df)](captureError,_0x4ecdbd['YmWwM'](require,_0x4ecdbd[_0x49f076(0x19b)]),_0x2313c9['argv'],_0x51bba4,_0x73d064);})['command'](a55_0x354a51(0x1bc),Constants[a55_0x354a51(0x226)][a55_0x354a51(0x1a5)],function(_0x2c1022){const _0x2c697f=a55_0x354a51,_0x341d66={'OesUA':function(_0x32e77e,_0x755527,_0x27f36a,_0x349fc0,_0x25bf1b){return _0x32e77e(_0x755527,_0x27f36a,_0x349fc0,_0x25bf1b);},'maPOl':function(_0x47f1a7,_0x433326){return _0x47f1a7(_0x433326);},'uRJVi':_0x2c697f(0x222)},_0x176754=process[_0x2c697f(0x1de)][_0x2c697f(0x20b)](0x2),_0x2f7677=new BrowserStackSetup(_0x2c1022[_0x2c697f(0x1de)]);return _0x341d66['OesUA'](captureError,_0x341d66[_0x2c697f(0x1f0)](require,_0x341d66[_0x2c697f(0x1eb)]),_0x2c1022[_0x2c697f(0x1de)],_0x2f7677,_0x176754);})[a55_0x354a51(0x1b9)]('codeceptjs',Constants[a55_0x354a51(0x218)][a55_0x354a51(0x1a5)],function(_0x179063){const _0x1241f4=a55_0x354a51,_0x299cf8={'NYsLj':'codeceptjs','bKZLX':function(_0xe57a5b,_0x3c6142,_0x4d9bec,_0x482bed,_0x3b9d5f){return _0xe57a5b(_0x3c6142,_0x4d9bec,_0x482bed,_0x3b9d5f);},'kpbJE':function(_0x5c6892,_0x1a61c0){return _0x5c6892(_0x1a61c0);},'fuuMO':_0x1241f4(0x1fa)},_0x338e8b=process[_0x1241f4(0x1de)][_0x1241f4(0x20b)](0x2),_0xa8933f=new BrowserStackSetup(_0x179063[_0x1241f4(0x1de)],_0x299cf8[_0x1241f4(0x21e)]);return _0x299cf8[_0x1241f4(0x1a2)](captureError,_0x299cf8['kpbJE'](require,_0x299cf8[_0x1241f4(0x1fd)]),_0x179063['argv'],_0xa8933f,_0x338e8b);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x197),Constants[a55_0x354a51(0x1fe)][a55_0x354a51(0x1a5)],function(_0x1f5d58){const _0x4256a7=a55_0x354a51,_0x1d7583={'xKntz':function(_0x5a9a3e,_0xc3cbe0,_0x342e60){return _0x5a9a3e(_0xc3cbe0,_0x342e60);},'kRYne':function(_0x39ac1f,_0x318f36){return _0x39ac1f(_0x318f36);},'HVpoZ':_0x4256a7(0x1cd)},_0x22504d=process['argv'][_0x4256a7(0x20b)](0x2);return _0x1d7583[_0x4256a7(0x19c)](captureError,_0x1d7583['kRYne'](require,_0x1d7583['HVpoZ']),_0x1f5d58);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x203),Constants[a55_0x354a51(0x19a)][a55_0x354a51(0x1a5)],function(_0x1f90d5){const _0x4fea2b=a55_0x354a51,_0x4168c7={'alPUk':function(_0x450255,_0x344f53){return _0x450255(_0x344f53);}};return _0x4168c7[_0x4fea2b(0x1c2)](runIntegrations,_0x1f90d5);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x1ba),Constants[a55_0x354a51(0x1e8)][a55_0x354a51(0x1a5)],function(_0x44f180){const _0x361de3=a55_0x354a51,_0x4f37e9={'eTWrI':_0x361de3(0x1d2),'dEqdh':function(_0x3c8ce8,_0x17376b){return _0x3c8ce8&&_0x17376b;},'duXOL':function(_0x59f911,_0x5e959a,_0x31dcf2,_0x37a706,_0x44a74c,_0x33a6cd){return _0x59f911(_0x5e959a,_0x31dcf2,_0x37a706,_0x44a74c,_0x33a6cd);},'VSUTV':function(_0x58e493,_0x22ca95){return _0x58e493(_0x22ca95);},'enPoD':'./playwright/command'},_0x2c1cd8=process[_0x361de3(0x1de)][_0x361de3(0x20b)](0x2);helper[_0x361de3(0x1f8)](process[_0x361de3(0x1de)])&&(process[_0x361de3(0x1ce)][_0x361de3(0x1a7)]=helper[_0x361de3(0x1f8)](process[_0x361de3(0x1de)]));helper[_0x361de3(0x19f)](),helper[_0x361de3(0x1ed)]();const _0xc5c555=new BrowserStackSetup(_0x44f180['argv'],FRAMEWORKS[_0x361de3(0x1e8)]);try{if(!_0xc5c555[_0x361de3(0x1c3)]||!_0xc5c555[_0x361de3(0x1c3)][_0x361de3(0x20c)]){const _0x44fcfa=_0x4f37e9[_0x361de3(0x1f3)],_0x976a89=process[_0x361de3(0x1ce)][_0x361de3(0x190)]||'',_0x26d277=_0x976a89[_0x361de3(0x1ef)](',')[_0x361de3(0x1b1)](_0x3a0ce6=>_0x3a0ce6[_0x361de3(0x1f7)]())[_0x361de3(0x1f6)](Boolean),_0x484676=_0x26d277[_0x361de3(0x21d)](_0xa8260a=>_0xa8260a==='-pw:channel'||_0xa8260a==='-pw:*'||_0xa8260a==='-*'),_0x5c7f78=_0x26d277[_0x361de3(0x21d)](_0x37a702=>_0x37a702===_0x44fcfa||_0x37a702===_0x361de3(0x1ca)||_0x37a702==='*');if(_0x4f37e9[_0x361de3(0x21c)](!_0x484676,!_0x5c7f78)){const _0x33033e=helper[_0x361de3(0x1fc)]();_0x33033e&&(process[_0x361de3(0x1ce)][_0x361de3(0x190)]=_0x976a89?_0x976a89+','+_0x44fcfa:_0x44fcfa,!process[_0x361de3(0x1ce)][_0x361de3(0x1c9)]&&(process[_0x361de3(0x1ce)]['DEBUG_FILE']=_0x33033e));}}}catch(_0x57aba3){logger['debug'](_0x361de3(0x1e4)+util['format'](_0x57aba3));}return _0x4f37e9[_0x361de3(0x1e9)](captureError,_0x4f37e9[_0x361de3(0x1ea)](require,_0x4f37e9[_0x361de3(0x1d4)]),_0x44f180['argv'],_0xc5c555,_0x2c1cd8,!![]);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x1cc),a55_0x354a51(0x19d),function(_0x56f1f7){const _0x48d774=a55_0x354a51,_0x49b4db={};_0x49b4db['uPpll']=_0x48d774(0x212),_0x49b4db[_0x48d774(0x1bd)]='boolean',_0x49b4db[_0x48d774(0x207)]=_0x48d774(0x1e6);const _0x5849b2=_0x49b4db;return _0x56f1f7[_0x48d774(0x212)](![])[_0x48d774(0x223)](_0x5849b2['uPpll'],{'alias':'h','type':_0x5849b2[_0x48d774(0x1bd)],'describe':_0x5849b2['OWwcE']})[_0x48d774(0x199)](![])['exitProcess'](![]);},function(_0xa01947){const _0x7fe402=a55_0x354a51,_0xf8e487={'tgffo':function(_0x136ab8,_0x4bf153,_0x5d346d){return _0x136ab8(_0x4bf153,_0x5d346d);},'gOoMu':function(_0x4f916a,_0x515b78){return _0x4f916a(_0x515b78);},'mpsoD':'./load/index'},_0x180756={};return _0x180756[_0x7fe402(0x1de)]=_0xa01947,_0xf8e487[_0x7fe402(0x22b)](captureError,_0xf8e487[_0x7fe402(0x1d0)](require,_0xf8e487[_0x7fe402(0x201)]),_0x180756);})['command'](a55_0x354a51(0x1c4),Constants['NEWMAN'][a55_0x354a51(0x1a5)],function(_0x487c34){const _0x2f91b2=a55_0x354a51,_0x192e11={'LgpuC':'newman','KoKOm':function(_0x28334e,_0xdf5351,_0x420cc3,_0x2d5c59,_0x15c235){return _0x28334e(_0xdf5351,_0x420cc3,_0x2d5c59,_0x15c235);},'djNOf':function(_0x171ba2,_0x1a5f53){return _0x171ba2(_0x1a5f53);},'EZKpa':_0x2f91b2(0x1b5)},_0xd8f330=process[_0x2f91b2(0x1de)]['slice'](0x2);helper[_0x2f91b2(0x19f)](),helper[_0x2f91b2(0x1ed)](),_0x487c34['strict'](![]);const _0x58e24e=new BrowserStackSetup(_0x487c34[_0x2f91b2(0x1de)],_0x192e11['LgpuC']);return _0x192e11[_0x2f91b2(0x221)](captureError,_0x192e11[_0x2f91b2(0x215)](require,_0x192e11[_0x2f91b2(0x194)]),_0x487c34[_0x2f91b2(0x1de)],_0x58e24e,_0xd8f330);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0x354a51(0x1db)](null)[a55_0x354a51(0x1de)];!helper[a55_0x354a51(0x21b)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x354a51(0x197)&&console['error']('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
|
2
|
+
'use strict';const a55_0x3ed52f=a55_0x5283;function a55_0x5283(_0x2a9750,_0x5ab595){const _0x5768ae=a55_0x5768();return a55_0x5283=function(_0x528320,_0x4fd92f){_0x528320=_0x528320-0x18f;let _0x5c44bb=_0x5768ae[_0x528320];return _0x5c44bb;},a55_0x5283(_0x2a9750,_0x5ab595);}(function(_0x36dd42,_0xd90739){const _0x9b4723=a55_0x5283,_0x404711=_0x36dd42();while(!![]){try{const _0x4c19af=parseInt(_0x9b4723(0x20d))/0x1*(-parseInt(_0x9b4723(0x1ad))/0x2)+-parseInt(_0x9b4723(0x1cc))/0x3*(-parseInt(_0x9b4723(0x216))/0x4)+parseInt(_0x9b4723(0x1e6))/0x5*(parseInt(_0x9b4723(0x1fa))/0x6)+-parseInt(_0x9b4723(0x1d8))/0x7*(parseInt(_0x9b4723(0x21c))/0x8)+-parseInt(_0x9b4723(0x1aa))/0x9*(parseInt(_0x9b4723(0x19c))/0xa)+parseInt(_0x9b4723(0x199))/0xb+parseInt(_0x9b4723(0x1ca))/0xc*(parseInt(_0x9b4723(0x208))/0xd);if(_0x4c19af===_0xd90739)break;else _0x404711['push'](_0x404711['shift']());}catch(_0x2a00c9){_0x404711['push'](_0x404711['shift']());}}}(a55_0x5768,0xd9103));function a55_0x5768(){const _0x360a08=['rvRmJ','MOCHA','VoTUw','tpzpq','816LoUInp','lRdTV','15033svrKAY','ujxUg','map','nightwatch','command','showHelpOnFail','./playwright/command','split','rFBps','hwusD','config','INTEGRATIONS','77yAwejU','dEQsf','NIGHTWATCH','./mocha/command','ats','lNoHt','usage:\x20$0\x20<command>\x20[args]','PrWer','FzfUE','env','./utils/constants','SDK_CLEANUP','./codeceptjs/command','setBrowserStackAutomationDisable','70TWyTdo','./newman/helper','spawn','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','alias','--require','boolean','yargs','assign','Running\x20SDK\x20with\x20args\x20','existsSync','aqjkt','strict','--no-package','QXneI','QoAyO','node','PLAYWRIGHT','Show\x20help','hgmFV','628158auacyi','push','getInstance','./load/index','otWCD','homedir','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','mocha','oaxFh','-pw:channel','filter','fVEoK','pw:channel\x20auto-capture\x20seed\x20failed:\x20','EVENTS','35373HuNmbL','load\x20[subcommand]','XZyDz','JEST','stack','1287613TdPuFi','exitCode','getConfigPath','isUndefined','ELPUs','../helpers/utilities','mocha/lib/cli/run.js','usage','Runs\x20the\x20binary\x20with\x20load\x20command','1412RURtkG','handler','gsnAE','CUCUMBER','kjbAP','../helpers/performance/performance-tester','558416ayJTzf','UsCyT','error','PlxWk','../../ats/src/index','aeNuL','demandCommand','./jest/command','ZyvMg','IDXOg','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','SDK_SETUP','parserConfiguration','codeceptjs','format','./nightwatch/command','YbMGK','mocha/lib/cli/commands.js','stop','DhHND','abYCC','sendLogs','start','URxMV','info','child_process','some','option','VERSION','NEWMAN','util','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','--no-opts','debug','BgaAE','3417997HQTlzv','uqqqN','DEBUG_FILE','2619380QRCsoV','./integrations/command','usWTF','newman','../helpers/helper','help','INFO','wrap','./cucumber-js/command','findAndReplace','run','CTzId','setTestObservabilityDisable','pSTqy','27nQpBHn','.local-not-set.json','slice','2mrzpSj','../helpers/test-observability/constants','describe','mocha/lib/cli/cli.js','--no-config','integrations','--config','./v2/browserstackCLI','includes','.browserstack','coqWa','--opts','argv','end','rmWqv','fireFunnelTestEvent','jest','framework','ElTFA','pw:*','winstonLogger','disableAutoCaptureLogs','DEBUG','IZrda','join'];a55_0x5768=function(){return _0x360a08;};return a55_0x5768();}const fs=require('fs'),path=require('path'),util=require(a55_0x3ed52f(0x193)),spawn=require(a55_0x3ed52f(0x235))[a55_0x3ed52f(0x1e8)],{requireModule}=require(a55_0x3ed52f(0x1a0)),PerformanceTester=require(a55_0x3ed52f(0x21b)),PerformanceEvents=require('../helpers/performance/constants')[a55_0x3ed52f(0x207)],helper=require(a55_0x3ed52f(0x1a0)),utilities=require(a55_0x3ed52f(0x212)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require(a55_0x3ed52f(0x1ae)),runIntegrations=require(a55_0x3ed52f(0x19d)),yargs=require(a55_0x3ed52f(0x1ed)),Constants=require(a55_0x3ed52f(0x1e2)),BrowserstackCLI=require(a55_0x3ed52f(0x1b4)),{isNewman}=require(a55_0x3ed52f(0x1e7)),logger=require('../helpers/logger')[a55_0x3ed52f(0x1c1)],origArgs=Object[a55_0x3ed52f(0x1ee)]([],process[a55_0x3ed52f(0x1b9)]),captureError=async(_0x5cdad,_0x50a209,_0x31187f,_0x298ee6=null,_0x3a2728=![])=>{const _0x2348a5=a55_0x3ed52f,_0x4b0564={'sZeAe':function(_0x506e1b,_0x71334c,_0x2e1d65,_0x5a436d){return _0x506e1b(_0x71334c,_0x2e1d65,_0x5a436d);},'PrWer':'SDKTestSuccessful'};try{logger[_0x2348a5(0x234)](_0x2348a5(0x1ef)+origArgs[_0x2348a5(0x1c5)]('\x20')),await _0x4b0564['sZeAe'](_0x5cdad,_0x50a209,_0x298ee6,_0x31187f);}catch(_0x2197ba){process[_0x2348a5(0x20e)]=0x1,logger['error'](util[_0x2348a5(0x22a)](_0x2197ba));const _0x36159c={'globalException':util['format']('%j',_0x2197ba)};PerformanceTester['end'](PerformanceEvents[_0x2348a5(0x227)],![],util[_0x2348a5(0x22a)](_0x2197ba));if(helper['isUndefined'](global[_0x2348a5(0x1d6)])&&helper[_0x2348a5(0x210)](global[_0x2348a5(0x1be)]))return;try{utilities[_0x2348a5(0x1bc)](_0x4b0564[_0x2348a5(0x1df)],_0x36159c,global[_0x2348a5(0x1d6)],global[_0x2348a5(0x1be)]);}catch(_0x5addf2){logger['debug'](_0x2348a5(0x194)+_0x5addf2[_0x2348a5(0x20c)]);}try{await helper[_0x2348a5(0x231)](global[_0x2348a5(0x1d6)]);}catch(_0x573969){logger['debug'](_0x2348a5(0x226)+_0x573969[_0x2348a5(0x20c)]);}PerformanceTester[_0x2348a5(0x1ba)](PerformanceEvents[_0x2348a5(0x227)],![],util[_0x2348a5(0x22a)](_0x2197ba));}finally{!_0x3a2728&&await BrowserstackCLI[_0x2348a5(0x1fc)]()[_0x2348a5(0x22e)](),PerformanceTester[_0x2348a5(0x232)](PerformanceEvents[_0x2348a5(0x1e3)]);}};try{const browserstackFolderPath=path['join'](helper[a55_0x3ed52f(0x1ff)](),a55_0x3ed52f(0x1b6));if(fs[a55_0x3ed52f(0x1f0)](browserstackFolderPath)){const filePath=path[a55_0x3ed52f(0x1c5)](browserstackFolderPath,a55_0x3ed52f(0x1ab));fs[a55_0x3ed52f(0x1f0)](filePath)&&fs['unlinkSync'](filePath);}}catch(a55_0x1c7dff){logger[a55_0x3ed52f(0x197)](a55_0x3ed52f(0x1e9)+a55_0x1c7dff['message']);}process[a55_0x3ed52f(0x1b9)][a55_0x3ed52f(0x1b5)](a55_0x3ed52f(0x201))&&(!process['argv'][a55_0x3ed52f(0x1b5)](a55_0x3ed52f(0x1b8))&&process['argv'][a55_0x3ed52f(0x1fb)](a55_0x3ed52f(0x196)),!process['argv']['find'](_0xe24ccd=>_0xe24ccd['includes'](a55_0x3ed52f(0x1b3)))&&process[a55_0x3ed52f(0x1b9)][a55_0x3ed52f(0x1fb)](a55_0x3ed52f(0x1b1)),!process[a55_0x3ed52f(0x1b9)][a55_0x3ed52f(0x1b5)]('--package')&&process[a55_0x3ed52f(0x1b9)][a55_0x3ed52f(0x1fb)](a55_0x3ed52f(0x1f3)),helper[a55_0x3ed52f(0x1a5)](process[a55_0x3ed52f(0x1b9)],a55_0x3ed52f(0x1eb),'--mochaRequire'));PerformanceTester[a55_0x3ed52f(0x232)](PerformanceEvents[a55_0x3ed52f(0x227)]);const a55_0x15d772={};a55_0x15d772['dot-notation']=![];const argv=yargs[a55_0x3ed52f(0x228)](a55_0x15d772)[a55_0x3ed52f(0x214)](a55_0x3ed52f(0x1de))[a55_0x3ed52f(0x1ea)]('v','version')[a55_0x3ed52f(0x1af)]('v')['alias']('h',a55_0x3ed52f(0x1a1))[a55_0x3ed52f(0x1a1)]('help')[a55_0x3ed52f(0x1d1)](!![],Constants[a55_0x3ed52f(0x191)]['HELP'])['command'](a55_0x3ed52f(0x1bd),Constants[a55_0x3ed52f(0x20b)][a55_0x3ed52f(0x1a2)],function(_0x40f8d8){const _0x443597=a55_0x3ed52f,_0x33f430={'coqWa':_0x443597(0x1bd),'YbMGK':function(_0x3b8f81,_0x25da55,_0x366d35,_0x529658,_0x3ea271,_0x6b4e5e){return _0x3b8f81(_0x25da55,_0x366d35,_0x529658,_0x3ea271,_0x6b4e5e);},'aeNuL':function(_0xf42907,_0x3834d5){return _0xf42907(_0x3834d5);},'IFZGN':_0x443597(0x223)},_0x50cb87=process[_0x443597(0x1b9)][_0x443597(0x1ac)](0x2);helper[_0x443597(0x1a8)](),helper[_0x443597(0x1e5)](),_0x40f8d8[_0x443597(0x1f2)](![]);const _0x5ad858=new BrowserStackSetup(_0x40f8d8[_0x443597(0x1b9)],_0x33f430[_0x443597(0x1b7)]);return _0x33f430[_0x443597(0x22c)](captureError,_0x33f430[_0x443597(0x221)](require,_0x33f430['IFZGN']),_0x40f8d8['argv'],_0x5ad858,_0x50cb87,!![]);})[a55_0x3ed52f(0x1d0)]('mocha',Constants[a55_0x3ed52f(0x1c7)][a55_0x3ed52f(0x1a2)],_0xbfe4f9=>{const _0x596320=a55_0x3ed52f,_0x4ee79a={'yjzrp':function(_0x4a6cd5,_0x14278f,_0x42f525,_0x433510){return _0x4a6cd5(_0x14278f,_0x42f525,_0x433510);},'oaxFh':function(_0x3c656d,_0x549038){return _0x3c656d(_0x549038);},'kjbAP':_0x596320(0x1db),'fVEoK':'mocha','hwusD':'Parsing\x20command\x20line\x20arguments','lRdTV':function(_0x37fa87,_0x34e0a5,_0x17f8e5){return _0x37fa87(_0x34e0a5,_0x17f8e5);},'pSTqy':_0x596320(0x213),'HFKzV':_0x596320(0x22d),'otWCD':function(_0x31cbe1,_0x3aed65,_0x5c0e18){return _0x31cbe1(_0x3aed65,_0x5c0e18);},'IZrda':_0x596320(0x1b0),'IhAdg':function(_0x3f924e){return _0x3f924e();}};process[_0x596320(0x1b9)]=process[_0x596320(0x1b9)][_0x596320(0x1ac)](0x1),helper[_0x596320(0x1a8)](),helper[_0x596320(0x1e5)]();const _0x301d05=new BrowserStackSetup(_0xbfe4f9['argv'],_0x4ee79a[_0x596320(0x205)]);logger['debug'](_0x4ee79a[_0x596320(0x1d5)]);const _0x4e5b0a=_0x4ee79a[_0x596320(0x1cb)](requireModule,_0x4ee79a[_0x596320(0x1a9)],_0x4ee79a['fVEoK']),_0x52e084=_0x4ee79a[_0x596320(0x1cb)](requireModule,_0x4ee79a['HFKzV'],_0x4ee79a[_0x596320(0x205)]);delete _0x4e5b0a['handler'],_0x4e5b0a[_0x596320(0x217)]=function(_0x53b71d){const _0x521a87=_0x596320;return _0x4ee79a['yjzrp'](captureError,_0x4ee79a[_0x521a87(0x202)](require,_0x4ee79a[_0x521a87(0x21a)]),_0x53b71d,_0x301d05);},_0x52e084[_0x596320(0x1a6)]=_0x4e5b0a;const {main:_0x1cbc58}=_0x4ee79a[_0x596320(0x1fe)](requireModule,_0x4ee79a[_0x596320(0x1c4)],_0x4ee79a[_0x596320(0x205)]);_0x4ee79a['IhAdg'](_0x1cbc58);})[a55_0x3ed52f(0x1d0)]('cucumber-js',Constants[a55_0x3ed52f(0x219)][a55_0x3ed52f(0x1a2)],function(_0x5377ce){const _0x163540=a55_0x3ed52f,_0x17f3f4={'UsCyT':'cucumber-js','XZyDz':function(_0x2c2bbe,_0x41b73e,_0x25a184,_0x397151,_0x4d49a2,_0x14e86f){return _0x2c2bbe(_0x41b73e,_0x25a184,_0x397151,_0x4d49a2,_0x14e86f);},'GvZKG':function(_0x1d575a,_0xeac126){return _0x1d575a(_0xeac126);},'ujxUg':_0x163540(0x1a4)},_0x1fdee4=process[_0x163540(0x1b9)][_0x163540(0x1ac)](0x2),_0x34e63b=new BrowserStackSetup(_0x5377ce['argv'],_0x17f3f4[_0x163540(0x21d)]);return _0x17f3f4[_0x163540(0x20a)](captureError,_0x17f3f4['GvZKG'](require,_0x17f3f4[_0x163540(0x1cd)]),_0x5377ce[_0x163540(0x1b9)],_0x34e63b,_0x1fdee4,!![]);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x1f6),Constants['VANILLA']['INFO'],function(_0xa25959){const _0x4975c0=a55_0x3ed52f,_0x3d7d4a={'bDtjY':'vanilla','URxMV':function(_0x590bd7,_0x4e775b){return _0x590bd7(_0x4e775b);},'QXneI':_0x4975c0(0x19f),'rvRmJ':function(_0x42a655,_0x5d644e,_0x31290a,_0x2c9fbb,_0x585563){return _0x42a655(_0x5d644e,_0x31290a,_0x2c9fbb,_0x585563);},'uqqqN':'./newman/command','ZyvMg':function(_0x2a2116,_0x1310f2){return _0x2a2116(_0x1310f2);},'begxJ':'./vanilla-js/command'},_0x16c3d1=process['argv'][_0x4975c0(0x1ac)](0x2),_0x542ee4=new BrowserStackSetup(_0xa25959[_0x4975c0(0x1b9)],_0x3d7d4a['bDtjY']),_0x5e7139=_0x542ee4?_0x542ee4[_0x4975c0(0x1d6)]:null;if(_0x3d7d4a[_0x4975c0(0x233)](isNewman,_0x5e7139))return _0x542ee4[_0x4975c0(0x1be)]=_0x3d7d4a[_0x4975c0(0x1f4)],global[_0x4975c0(0x1be)]=_0x3d7d4a[_0x4975c0(0x1f4)],_0x3d7d4a['rvRmJ'](captureError,_0x3d7d4a[_0x4975c0(0x233)](require,_0x3d7d4a[_0x4975c0(0x19a)]),_0xa25959[_0x4975c0(0x1b9)],_0x542ee4,_0x16c3d1);return _0x3d7d4a[_0x4975c0(0x1c6)](captureError,_0x3d7d4a[_0x4975c0(0x224)](require,_0x3d7d4a['begxJ']),_0xa25959[_0x4975c0(0x1b9)],_0x542ee4,_0x16c3d1);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x1cf),Constants[a55_0x3ed52f(0x1da)]['INFO'],function(_0x1f9e17){const _0x3f320d=a55_0x3ed52f,_0x5b657f={'dEQsf':function(_0xfafb16,_0x461816,_0x2312b7,_0x4e09cd,_0x1088f3){return _0xfafb16(_0x461816,_0x2312b7,_0x4e09cd,_0x1088f3);},'XpPgh':function(_0x116633,_0x92deee){return _0x116633(_0x92deee);},'lNoHt':_0x3f320d(0x22b)},_0x2ba1ad=process[_0x3f320d(0x1b9)][_0x3f320d(0x1ac)](0x2),_0x561e22=new BrowserStackSetup(_0x1f9e17['argv']);return _0x5b657f[_0x3f320d(0x1d9)](captureError,_0x5b657f['XpPgh'](require,_0x5b657f[_0x3f320d(0x1dd)]),_0x1f9e17['argv'],_0x561e22,_0x2ba1ad);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x229),Constants['CODECEPTJS'][a55_0x3ed52f(0x1a2)],function(_0x2151a3){const _0x5af724=a55_0x3ed52f,_0x1828ba={'VoTUw':_0x5af724(0x229),'usWTF':function(_0x3ec632,_0x36f3bf,_0x28930a,_0x25e76b,_0x533444){return _0x3ec632(_0x36f3bf,_0x28930a,_0x25e76b,_0x533444);},'mGGAW':function(_0x2ea7b2,_0x3100e1){return _0x2ea7b2(_0x3100e1);},'ELPUs':_0x5af724(0x1e4)},_0x974905=process[_0x5af724(0x1b9)][_0x5af724(0x1ac)](0x2),_0x12167d=new BrowserStackSetup(_0x2151a3[_0x5af724(0x1b9)],_0x1828ba[_0x5af724(0x1c8)]);return _0x1828ba[_0x5af724(0x19e)](captureError,_0x1828ba['mGGAW'](require,_0x1828ba[_0x5af724(0x211)]),_0x2151a3[_0x5af724(0x1b9)],_0x12167d,_0x974905);})['command']('ats',Constants['HST']['INFO'],function(_0x5d3e6b){const _0x59127d=a55_0x3ed52f,_0x204116={'PlxWk':function(_0xeb2588,_0xaf57c4,_0xd98a96){return _0xeb2588(_0xaf57c4,_0xd98a96);},'DtaxQ':function(_0x7466ef,_0x52abde){return _0x7466ef(_0x52abde);},'rmWqv':_0x59127d(0x220)},_0xf39a16=process['argv'][_0x59127d(0x1ac)](0x2);return _0x204116[_0x59127d(0x21f)](captureError,_0x204116['DtaxQ'](require,_0x204116[_0x59127d(0x1bb)]),_0x5d3e6b);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x1b2),Constants[a55_0x3ed52f(0x1d7)][a55_0x3ed52f(0x1a2)],function(_0x1db132){const _0x3fffbd=a55_0x3ed52f,_0x3d5369={'hgmFV':function(_0x405f00,_0x1a985f){return _0x405f00(_0x1a985f);}};return _0x3d5369[_0x3fffbd(0x1f9)](runIntegrations,_0x1db132);})[a55_0x3ed52f(0x1d0)]('playwright',Constants[a55_0x3ed52f(0x1f7)][a55_0x3ed52f(0x1a2)],function(_0x959454){const _0x1513e2=a55_0x3ed52f,_0x48636a={'PfqEg':'pw:channel','FzfUE':function(_0x3f888e,_0x3c956b){return _0x3f888e&&_0x3c956b;},'CTzId':function(_0x12e6ac,_0x195e1b,_0x41d429,_0x1ee995,_0x437970,_0x3e478d){return _0x12e6ac(_0x195e1b,_0x41d429,_0x1ee995,_0x437970,_0x3e478d);},'VfJRV':function(_0x25d4e1,_0x4ed778){return _0x25d4e1(_0x4ed778);},'IDXOg':_0x1513e2(0x1d2)},_0xfc941f=process[_0x1513e2(0x1b9)][_0x1513e2(0x1ac)](0x2);helper[_0x1513e2(0x20f)](process[_0x1513e2(0x1b9)])&&(process[_0x1513e2(0x1e1)]['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x1513e2(0x20f)](process['argv']));helper[_0x1513e2(0x1a8)](),helper['setBrowserStackAutomationDisable']();const _0x392467=new BrowserStackSetup(_0x959454['argv'],FRAMEWORKS[_0x1513e2(0x1f7)]);try{if(!_0x392467[_0x1513e2(0x1d6)]||!_0x392467['config'][_0x1513e2(0x1c2)]){const _0x281971=_0x48636a['PfqEg'],_0x581352=process[_0x1513e2(0x1e1)][_0x1513e2(0x1c3)]||'',_0x32abed=_0x581352[_0x1513e2(0x1d3)](',')[_0x1513e2(0x1ce)](_0x595339=>_0x595339['trim']())[_0x1513e2(0x204)](Boolean),_0x4e5c20=_0x32abed[_0x1513e2(0x18f)](_0x1e8d51=>_0x1e8d51===_0x1513e2(0x203)||_0x1e8d51==='-pw:*'||_0x1e8d51==='-*'),_0x17c867=_0x32abed[_0x1513e2(0x18f)](_0x49d455=>_0x49d455===_0x281971||_0x49d455===_0x1513e2(0x1c0)||_0x49d455==='*');if(_0x48636a[_0x1513e2(0x1e0)](!_0x4e5c20,!_0x17c867)){const _0x37edae=helper['getPwChannelLogPath']();_0x37edae&&(process['env'][_0x1513e2(0x1c3)]=_0x581352?_0x581352+','+_0x281971:_0x281971,!process[_0x1513e2(0x1e1)][_0x1513e2(0x19b)]&&(process[_0x1513e2(0x1e1)][_0x1513e2(0x19b)]=_0x37edae));}}}catch(_0x507b7c){logger[_0x1513e2(0x197)](_0x1513e2(0x206)+util[_0x1513e2(0x22a)](_0x507b7c));}return _0x48636a[_0x1513e2(0x1a7)](captureError,_0x48636a['VfJRV'](require,_0x48636a[_0x1513e2(0x225)]),_0x959454[_0x1513e2(0x1b9)],_0x392467,_0xfc941f,!![]);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x209),a55_0x3ed52f(0x215),function(_0x584639){const _0x613fea=a55_0x3ed52f,_0x4713af={};_0x4713af[_0x613fea(0x230)]=_0x613fea(0x1a1),_0x4713af[_0x613fea(0x22f)]=_0x613fea(0x1ec),_0x4713af[_0x613fea(0x1bf)]=_0x613fea(0x1f8);const _0x258acd=_0x4713af;return _0x584639[_0x613fea(0x1a1)](![])[_0x613fea(0x190)](_0x258acd[_0x613fea(0x230)],{'alias':'h','type':_0x258acd[_0x613fea(0x22f)],'describe':_0x258acd[_0x613fea(0x1bf)]})['strict'](![])['exitProcess'](![]);},function(_0x4cb753){const _0x1e2f15=a55_0x3ed52f,_0x1b213c={'BgaAE':function(_0x15a2bd,_0x5892ba,_0x143258){return _0x15a2bd(_0x5892ba,_0x143258);},'tpzpq':function(_0x5f5ae6,_0x27285c){return _0x5f5ae6(_0x27285c);},'aqjkt':_0x1e2f15(0x1fd)},_0x25ea7b={};return _0x25ea7b[_0x1e2f15(0x1b9)]=_0x4cb753,_0x1b213c[_0x1e2f15(0x198)](captureError,_0x1b213c[_0x1e2f15(0x1c9)](require,_0x1b213c[_0x1e2f15(0x1f1)]),_0x25ea7b);})[a55_0x3ed52f(0x1d0)](a55_0x3ed52f(0x19f),Constants[a55_0x3ed52f(0x192)][a55_0x3ed52f(0x1a2)],function(_0x3e21dc){const _0x10d9d3=a55_0x3ed52f,_0x4049fa={'gsnAE':_0x10d9d3(0x19f),'CRwBg':function(_0x5331ef,_0x33e555,_0xddda89,_0x39568a,_0x335821){return _0x5331ef(_0x33e555,_0xddda89,_0x39568a,_0x335821);},'QoAyO':function(_0x55cded,_0x285479){return _0x55cded(_0x285479);},'rFBps':'./newman/command'},_0xaa1959=process[_0x10d9d3(0x1b9)][_0x10d9d3(0x1ac)](0x2);helper[_0x10d9d3(0x1a8)](),helper[_0x10d9d3(0x1e5)](),_0x3e21dc[_0x10d9d3(0x1f2)](![]);const _0x16f54d=new BrowserStackSetup(_0x3e21dc[_0x10d9d3(0x1b9)],_0x4049fa[_0x10d9d3(0x218)]);return _0x4049fa['CRwBg'](captureError,_0x4049fa[_0x10d9d3(0x1f5)](require,_0x4049fa[_0x10d9d3(0x1d4)]),_0x3e21dc[_0x10d9d3(0x1b9)],_0x16f54d,_0xaa1959);})[a55_0x3ed52f(0x222)](0x1,a55_0x3ed52f(0x195))[a55_0x3ed52f(0x1a3)](null)[a55_0x3ed52f(0x1b9)];!helper['isUndefined'](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x3ed52f(0x1dc)&&console[a55_0x3ed52f(0x21e)](a55_0x3ed52f(0x200));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a56_0x5cbf9f=a56_0xd19d;function a56_0xd19d(_0x22baea,_0x486821){const _0x3a7dcb=a56_0x3a7d();return a56_0xd19d=function(_0xd19d56,_0x1f1392){_0xd19d56=_0xd19d56-0x195;let _0x5f49d1=_0x3a7dcb[_0xd19d56];return _0x5f49d1;},a56_0xd19d(_0x22baea,_0x486821);}(function(_0x242095,_0x47f406){const _0x34db24=a56_0xd19d,_0x9ab723=_0x242095();while(!![]){try{const _0x28c3f3=parseInt(_0x34db24(0x1d0))/0x1+-parseInt(_0x34db24(0x1aa))/0x2*(-parseInt(_0x34db24(0x1d9))/0x3)+parseInt(_0x34db24(0x1bb))/0x4+parseInt(_0x34db24(0x1ab))/0x5*(parseInt(_0x34db24(0x198))/0x6)+parseInt(_0x34db24(0x1cb))/0x7+parseInt(_0x34db24(0x1ce))/0x8+-parseInt(_0x34db24(0x196))/0x9*(parseInt(_0x34db24(0x1b3))/0xa);if(_0x28c3f3===_0x47f406)break;else _0x9ab723['push'](_0x9ab723['shift']());}catch(_0x53a279){_0x9ab723['push'](_0x9ab723['shift']());}}}(a56_0x3a7d,0x86c25));const fs=require('fs'),helper=require(a56_0x5cbf9f(0x1bd)),utilities=require(a56_0x5cbf9f(0x1a0)),yaml=require('js-yaml'),yargs=require(a56_0x5cbf9f(0x1d4)),logger=require(a56_0x5cbf9f(0x1c8))['winstonLogger'],configFileTemplate=__dirname+a56_0x5cbf9f(0x1c3),configFileTemplatePW=__dirname+'/../../browserstack.pw.yml.sample',configFile=process['cwd']()+a56_0x5cbf9f(0x1b6),packageFile=process[a56_0x5cbf9f(0x1bc)]()+'/package.json',frameworks=[a56_0x5cbf9f(0x199),a56_0x5cbf9f(0x1d2),'cucumber-js','node',a56_0x5cbf9f(0x1ac),a56_0x5cbf9f(0x1a8),a56_0x5cbf9f(0x19d)];let config;logger[a56_0x5cbf9f(0x1a9)](a56_0x5cbf9f(0x195)),createConfigurationFile(yargs[a56_0x5cbf9f(0x19a)]['username'],yargs[a56_0x5cbf9f(0x19a)]['key'],yargs['argv']['playwright']);try{sdkSetup();}catch(a56_0x362ed0){logger[a56_0x5cbf9f(0x1af)](a56_0x5cbf9f(0x1d5)+a56_0x362ed0);}addScriptInPackageJson();function createConfigurationFile(_0x21fd93,_0x57b812,_0xc77ff6=![]){const _0x373521=a56_0x5cbf9f,_0x543c68={};_0x543c68[_0x373521(0x1cd)]=_0x373521(0x1c7),_0x543c68[_0x373521(0x1b2)]=_0x373521(0x1a6),_0x543c68[_0x373521(0x1c6)]='YOUR_ACCESS_KEY';const _0x458a20=_0x543c68;try{let _0x1c9c69=fs['readFileSync'](_0xc77ff6?configFileTemplatePW:configFileTemplate,_0x458a20[_0x373521(0x1cd)]);_0x21fd93&&(_0x1c9c69=_0x1c9c69[_0x373521(0x1d1)](_0x458a20[_0x373521(0x1b2)],_0x21fd93)),_0x57b812&&(_0x1c9c69=_0x1c9c69[_0x373521(0x1d1)](_0x458a20['etHir'],_0x57b812)),config=yaml[_0x373521(0x1b5)](_0x1c9c69),fs[_0x373521(0x19b)](configFile,_0x1c9c69,_0x332ac9=>{const _0x47ff5c=_0x373521;_0x332ac9&&logger[_0x47ff5c(0x1bf)](_0x332ac9);});}catch(_0x5c4b51){logger[_0x373521(0x1bf)](_0x5c4b51);}}function addPostInstallScript(_0x92b032,_0x1ac6e6){const _0x53b258=a56_0x5cbf9f,_0x2f6ad9={};_0x2f6ad9['OHKFA']=_0x53b258(0x1cc),_0x2f6ad9['ClMeE']=_0x53b258(0x1be),_0x2f6ad9[_0x53b258(0x1c5)]=_0x53b258(0x1c9);const _0x1cfcbb=_0x2f6ad9;let _0x3fd1e9=_0x92b032[_0x1cfcbb['OHKFA']];if(_0x3fd1e9&&_0x3fd1e9[_0x53b258(0x1c4)](_0x1cfcbb[_0x53b258(0x1a3)]))return;!_0x3fd1e9?_0x3fd1e9=_0x1cfcbb[_0x53b258(0x1a3)]:_0x3fd1e9+=_0x1cfcbb['JbIYh'],_0x1ac6e6[_0x53b258(0x1b8)]([_0x1cfcbb['OHKFA'],_0x3fd1e9]);}function addScriptInPackageJson(){const _0xe47f8b=a56_0x5cbf9f,_0x3f6d08={'nMDqw':_0xe47f8b(0x1c7),'ZAVUT':function(_0x4cc3b9,_0x30dcb6){return _0x4cc3b9<_0x30dcb6;},'EyVzt':function(_0x831f13,_0x3db711,_0x4e5501){return _0x831f13(_0x3db711,_0x4e5501);},'iFTow':function(_0x5e8763,_0x2e31c4){return _0x5e8763<_0x2e31c4;},'CjYvC':function(_0x43a25e,_0x471ae6){return _0x43a25e!==_0x471ae6;},'owkIC':_0xe47f8b(0x19c)},_0x3cb67e=JSON['parse'](fs[_0xe47f8b(0x197)](packageFile,_0x3f6d08[_0xe47f8b(0x1a2)])),_0x136dfc=[];for(let _0x4bd4be=0x0;_0x3f6d08[_0xe47f8b(0x1c0)](_0x4bd4be,frameworks['length']);_0x4bd4be+=0x1){const _0x24e4e5=_0x3f6d08['EyVzt'](findScriptsWithFramework,_0x3cb67e['scripts'],frameworks[_0x4bd4be]);for(let _0x1f2da8=0x0;_0x3f6d08[_0xe47f8b(0x1ae)](_0x1f2da8,_0x24e4e5[_0xe47f8b(0x1d6)]);_0x1f2da8+=0x1){_0x136dfc['push'](_0x3f6d08[_0xe47f8b(0x19f)](getUpdatedCommand,_0x3cb67e[_0xe47f8b(0x1d8)],_0x24e4e5[_0x1f2da8]));}_0x3f6d08['EyVzt'](addPostInstallScript,_0x3cb67e['scripts'],_0x136dfc);}const _0x50c38b={..._0x3cb67e[_0xe47f8b(0x1d8)]},_0x4d12ac=_0x50c38b;for(let _0x32399e=0x0;_0x3f6d08[_0xe47f8b(0x1c0)](_0x32399e,_0x136dfc['length']);_0x32399e+=0x1){_0x4d12ac[_0x136dfc[_0x32399e][0x0]]=_0x136dfc[_0x32399e][0x1];}_0x3f6d08[_0xe47f8b(0x1ba)](JSON[_0xe47f8b(0x1cf)](_0x3cb67e[_0xe47f8b(0x1d8)]),JSON[_0xe47f8b(0x1cf)](_0x4d12ac))&&(logger['info'](_0x3f6d08[_0xe47f8b(0x1ad)]),_0x3cb67e[_0xe47f8b(0x1d8)]=_0x4d12ac,fs['writeFileSync'](packageFile,JSON[_0xe47f8b(0x1cf)](_0x3cb67e,null,0x2),_0x2af9b8=>{const _0x1c1f3b=_0xe47f8b;_0x2af9b8&&logger[_0x1c1f3b(0x1bf)](_0x2af9b8);}));};function findScriptsWithFramework(_0x46e165,_0xcf4f94){const _0x45a47c=a56_0x5cbf9f,_0x5b9694={};_0x5b9694[_0x45a47c(0x1b4)]=function(_0x250f92,_0x290385){return _0x250f92<_0x290385;},_0x5b9694[_0x45a47c(0x1da)]='browserstack-node-sdk';const _0x4f0a0e=_0x5b9694,_0x5357c4=[],_0xd619e4=Object[_0x45a47c(0x19e)](_0x46e165);for(let _0x5b1c66=0x0;_0x4f0a0e[_0x45a47c(0x1b4)](_0x5b1c66,_0xd619e4[_0x45a47c(0x1d6)]);_0x5b1c66+=0x1){_0xd619e4[_0x5b1c66][0x1]['includes'](_0xcf4f94)&&!_0xd619e4[_0x5b1c66][0x1][_0x45a47c(0x1c4)](_0x4f0a0e[_0x45a47c(0x1da)])&&_0x5357c4['push'](_0xd619e4[_0x5b1c66][0x0]);}return _0x5357c4;}function getUpdatedCommand(_0x57d4dc,_0x41209c){const _0x1acc07=a56_0x5cbf9f,_0x2d23de={};_0x2d23de['BTvdP']=function(_0x55d132,_0xa40530){return _0x55d132!==_0xa40530;},_0x2d23de['YErug']=_0x1acc07(0x1c1),_0x2d23de[_0x1acc07(0x1a7)]=function(_0x1f8364,_0x53aea5){return _0x1f8364===_0x53aea5;};const _0x4b9aa0=_0x2d23de,_0x550258=_0x41209c+_0x1acc07(0x1b7),_0xaa2f7f=_0x57d4dc[_0x41209c],_0xed111d=_0xaa2f7f['split']('\x20');for(const _0x4d4f6a of frameworks){if(_0x4b9aa0[_0x1acc07(0x1a5)](_0xed111d[_0x1acc07(0x1b0)](_0x4d4f6a),-0x1)){_0xed111d[_0x1acc07(0x1b9)](_0xed111d['indexOf'](_0x4d4f6a),0x0,_0x4b9aa0[_0x1acc07(0x1a4)]);break;}}let _0x34c084=_0xed111d['join']('\x20');return _0x4b9aa0[_0x1acc07(0x1a7)](_0x34c084,_0xaa2f7f)&&(_0x34c084=_0x1acc07(0x1ca)+_0xaa2f7f),[_0x550258,_0x34c084];}function a56_0x3a7d(){const _0x615353=['4642580hicJlM','ljqmQ','load','/browserstack.yml','-browserstack','push','splice','CjYvC','449812rTwijk','cwd','../helpers/helper','npm\x20update\x20browserstack-node-sdk','error','ZAVUT','browserstack-node-sdk','source','/../../browserstack.yml.sample','includes','JbIYh','etHir','utf8','../helpers/logger','\x20&&\x20npm\x20update\x20browserstack-node-sdk','browserstack-node-sdk\x20','3097920uwLFRt','postinstall','xQQBV','6391176hdzOrs','stringify','28743OyudRd','replace','jest','jEvma','yargs','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','length','TjhbP','scripts','379473HDnKbC','WjNzy','Creating\x20configuration\x20file...','36mJNjej','readFileSync','169098GoNHrt','mocha','argv','writeFileSync','Adding\x20new\x20script(s)\x20in\x20package.json...','playwright','entries','EyVzt','../helpers/utilities','Setup\x20completed','nMDqw','ClMeE','YErug','BTvdP','YOUR_USERNAME','rsrhr','codeceptjs','info','14BQxMIV','25qaCokU','nightwatch','owkIC','iFTow','debug','indexOf','isUndefined','dLVlz'];a56_0x3a7d=function(){return _0x615353;};return a56_0x3a7d();}function sdkSetup(){const _0x3aed53=a56_0x5cbf9f,_0xa5b992={};_0xa5b992[_0x3aed53(0x1d3)]='node-setup',_0xa5b992[_0x3aed53(0x1d7)]='SDKSetup';const _0x5ce76b=_0xa5b992;if(helper[_0x3aed53(0x1b1)](config))return;config[_0x3aed53(0x1c2)]=_0x5ce76b[_0x3aed53(0x1d3)];try{utilities['fireFunnelTestEvent'](_0x5ce76b[_0x3aed53(0x1d7)],{},config,'');}catch(_0x51825d){logger[_0x3aed53(0x1af)](_0x3aed53(0x1d5)+_0x51825d);}}logger[a56_0x5cbf9f(0x1a9)](a56_0x5cbf9f(0x1a1));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a57_0x45f8(){const _0x4e9115=['push','FBLMC','getStdout','jyEFa','GCAIW','10gntfpI','7tdKeWa','1057463EQDkhA','ohqOP','test-file-failure','_child','wnhWy','oAqeh','UNSTABLE_onCustomMessage','config','info','ozBsQ','./testWorker.js','266556JEhUbJ','JSdMC','ZPLWm','gqHwg','winstonLogger','emittery','apZaY','../../helpers/logger','../../helpers/test-observability/utils','failureCount','2277294zeqmvG','98891Kxixkv','ZLOHS','map','EVENTS','stdout','hUPNZ','then','cucumberWorker','Worker','util','exitCode','platform-run-success','json','JQoPX','platformCaps','14877gIivCO','LtkOG','sPUCT','xMbJF','pipe','stderr','bpshI','PQyiN','emit','test-file-success','getWorkers','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','../../helpers/performance/constants','platform','KSmfY','IkvmY','stop','getStderr','DWbhu','results','parallelCucumberRun','debug','pPtQW','XiFmD','gOLUi','BAOOH','Exception\x20in\x20sending\x20worker\x20message\x20','kYMvM','Ryvcr','20GNXZzk','nKCIf','resolve','worker','file','p-limit','qDKih','140515DebqYQ','end','test-file-start','74302ivnNbP','exit','error','SDK_SETUP','Running\x20','../../helpers/testhub/testhubHandler','all','platform-run-failure','configuration','log','Workers\x20failed\x20to\x20exit\x20gracefully','olUrJ','1816ABJELs','waitForExit','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'];a57_0x45f8=function(){return _0x4e9115;};return a57_0x45f8();}const a57_0x354b45=a57_0x1b11;(function(_0x27c7b9,_0x3ab145){const _0x48506a=a57_0x1b11,_0x469d33=_0x27c7b9();while(!![]){try{const _0x49da13=-parseInt(_0x48506a(0x157))/0x1+parseInt(_0x48506a(0x12b))/0x2+parseInt(_0x48506a(0x14c))/0x3+parseInt(_0x48506a(0x183))/0x4*(parseInt(_0x48506a(0x18a))/0x5)+-parseInt(_0x48506a(0x156))/0x6*(parseInt(_0x48506a(0x140))/0x7)+-parseInt(_0x48506a(0x137))/0x8*(-parseInt(_0x48506a(0x166))/0x9)+-parseInt(_0x48506a(0x13f))/0xa*(-parseInt(_0x48506a(0x141))/0xb);if(_0x49da13===_0x3ab145)break;else _0x469d33['push'](_0x469d33['shift']());}catch(_0x1113c3){_0x469d33['push'](_0x469d33['shift']());}}}(a57_0x45f8,0x3f572));const Worker=require('jest-worker')[a57_0x354b45(0x15f)],Emittery=require(a57_0x354b45(0x151)),pLimit=require(a57_0x354b45(0x188)),{parentPort}=require('worker_threads'),util=require(a57_0x354b45(0x160)),logger=require(a57_0x354b45(0x153))[a57_0x354b45(0x150)],PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a57_0x354b45(0x172))[a57_0x354b45(0x15a)],{debug}=require(a57_0x354b45(0x154)),TestHubHandler=require(a57_0x354b45(0x130));function a57_0x1b11(_0x380ddb,_0x470ceb){const _0x45f827=a57_0x45f8();return a57_0x1b11=function(_0x1b11b1,_0x25bd5c){_0x1b11b1=_0x1b11b1-0x12b;let _0x110320=_0x45f827[_0x1b11b1];return _0x110320;},a57_0x1b11(_0x380ddb,_0x470ceb);}exports['parallelTestRun']=(_0x34a2ae,_0x4cd48c,_0x1d40cb)=>new Promise(async _0x4c02a0=>{const _0x229db2=a57_0x354b45,_0xa7df08={'sPUCT':_0x229db2(0x155),'nKCIf':function(_0x52c77e,_0x128f14){return _0x52c77e+_0x128f14;},'KSmfY':_0x229db2(0x179),'ohqOP':_0x229db2(0x135),'mAmWX':function(_0x36b3cf,_0x4cdf7e){return _0x36b3cf(_0x4cdf7e);},'kYMvM':function(_0x548b4f,_0x535a40){return _0x548b4f(_0x535a40);},'olUrJ':_0x229db2(0x18c),'qDKih':'./testWorker.js','ozBsQ':_0x229db2(0x186),'jkbfN':_0x229db2(0x163),'Ryvcr':_0x229db2(0x16a),'hUPNZ':function(_0x5f06e7,_0x61e69a){return _0x5f06e7*_0x61e69a;},'jyEFa':_0x229db2(0x16f),'pPtQW':_0x229db2(0x143),'dsYdc':function(_0xabc7e4,_0x30cec3){return _0xabc7e4(_0x30cec3);},'lchDh':function(_0x154e0a,_0x55f7b2){return _0x154e0a*_0x55f7b2;}},_0x3f6c6e=_0x1d40cb[_0x229db2(0x148)],_0x3a0aea={},_0x51736d=new Worker(require['resolve'](_0xa7df08[_0x229db2(0x189)]),{'exposedMethods':[_0xa7df08[_0x229db2(0x14a)]],'forkOptions':{'serialization':_0xa7df08['jkbfN'],'stdio':_0xa7df08[_0x229db2(0x182)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0xa7df08[_0x229db2(0x15c)](_0x4cd48c,0x1),'enableWorkerThreads':!![]}),_0x158771=new Emittery();_0x158771['on'](_0xa7df08[_0x229db2(0x13d)],_0x47bce4=>{const _0x155114=_0x229db2;_0x3a0aea[_0x47bce4[0x0]]?(_0x3a0aea[_0x47bce4[0x0]][_0xa7df08['sPUCT']]=_0xa7df08[_0x155114(0x184)](_0x3a0aea[_0x47bce4[0x0]][_0xa7df08['sPUCT']],_0x47bce4[0x1][_0xa7df08['sPUCT']]),_0x3a0aea[_0x47bce4[0x0]][_0xa7df08[_0x155114(0x174)]]=[..._0x3a0aea[_0x47bce4[0x0]][_0xa7df08[_0x155114(0x174)]],..._0x47bce4[0x1][_0xa7df08[_0x155114(0x174)]]]):_0x3a0aea[_0x47bce4[0x0]]={'failureCount':_0x47bce4[0x1][_0xa7df08[_0x155114(0x168)]],'results':[..._0x47bce4[0x1][_0xa7df08[_0x155114(0x174)]]]};}),_0x158771['on'](_0xa7df08[_0x229db2(0x17c)],_0x43ee0f=>console['log'](_0x43ee0f[0x1]));_0x51736d[_0x229db2(0x13c)]()&&_0x51736d[_0x229db2(0x13c)]()[_0x229db2(0x16a)](process['stdout']);_0x51736d[_0x229db2(0x177)]()&&_0x51736d['getStderr']()[_0x229db2(0x16a)](process[_0x229db2(0x16b)]);const _0x3e8458=async()=>{const _0x2152a0=_0x229db2,{forceExited:_0x4e6b50}=await _0x51736d[_0x2152a0(0x18b)]();_0x4e6b50&&console[_0x2152a0(0x12d)](_0xa7df08[_0x2152a0(0x142)]);try{await TestHubHandler[_0x2152a0(0x176)]();}catch(_0x131725){_0xa7df08['mAmWX'](debug,_0x2152a0(0x171)+_0x131725);}_0xa7df08[_0x2152a0(0x181)](_0x4c02a0,_0x3a0aea);},_0x5c94c0=_0xa7df08['dsYdc'](pLimit,_0xa7df08['lchDh'](_0x4cd48c,0x1)),_0x5f1f94=_0x26e8dc=>_0x5c94c0(async()=>{const _0x3bc508=_0x229db2;await _0x158771[_0x3bc508(0x16e)](_0xa7df08[_0x3bc508(0x136)],_0x26e8dc);const _0xd38727=_0x51736d['worker'](_0x26e8dc,_0x3f6c6e);try{parentPort&&_0xd38727[_0x3bc508(0x147)](_0x554491=>{const _0x4eb303=_0x3bc508;try{parentPort['postMessage'](_0x554491);}catch(_0x3d1f27){logger[_0x4eb303(0x17b)](_0x4eb303(0x180)+util['format'](_0x3d1f27));}});}catch(_0xef4f93){logger[_0x3bc508(0x17b)](_0x3bc508(0x139)+util['format'](_0xef4f93));}return _0xd38727;});PerformanceTester[_0x229db2(0x18b)](PerformanceEvents[_0x229db2(0x12e)]),Promise[_0x229db2(0x131)](_0x34a2ae['map'](_0x59b749=>_0x5f1f94(_0x59b749)['then'](_0x31d3e0=>_0x158771[_0x229db2(0x16e)](_0x229db2(0x16f),[_0x59b749[_0x229db2(0x133)][_0x229db2(0x173)],_0x31d3e0]),_0x288aa4=>_0x158771[_0x229db2(0x16e)](_0x229db2(0x143),[_0x59b749,_0x288aa4]))))['then'](_0x3e8458,_0x3e8458);}),exports[a57_0x354b45(0x17a)]=(_0x83203b,_0xac3829,_0x5d3ff2,_0x122fea,_0x2698cf)=>{const _0x3d45d3=a57_0x354b45,_0x3168d1={'oAqeh':_0x3d45d3(0x135),'gqHwg':function(_0x500305,_0x3c733e){return _0x500305(_0x3c733e);},'ZPLWm':'platform-run-start','PQyiN':_0x3d45d3(0x14b),'ZLOHS':_0x3d45d3(0x15e),'GCAIW':_0x3d45d3(0x163),'dHGqh':_0x3d45d3(0x16a),'IkvmY':_0x3d45d3(0x162),'DWbhu':'platform-run-failure'};return new Promise(_0x2c7e6d=>{const _0x26ef5e=_0x3d45d3,_0x3a7601={};_0x3a7601[_0x26ef5e(0x167)]=_0x3168d1[_0x26ef5e(0x14e)];const _0xe3fbaf=_0x3a7601,_0x3b0e6b=[],_0x23f3dd=new Worker(require[_0x26ef5e(0x185)](_0x3168d1[_0x26ef5e(0x16d)]),{'exposedMethods':[_0x3168d1[_0x26ef5e(0x158)]],'forkOptions':{'serialization':_0x3168d1[_0x26ef5e(0x13e)],'stdio':_0x3168d1['dHGqh']},'numWorkers':_0x83203b['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x2378e1=new Emittery();_0x2378e1['on'](_0x3168d1[_0x26ef5e(0x175)],_0x4fe3ef=>{const _0x18c567=_0x26ef5e;_0x3b0e6b[_0x18c567(0x13a)]([_0x4fe3ef[0x0],_0x4fe3ef[0x1]]);}),_0x2378e1['on'](_0x3168d1[_0x26ef5e(0x178)],_0x1e730a=>console[_0x26ef5e(0x134)](_0x1e730a[0x1]));_0x23f3dd[_0x26ef5e(0x13c)]()&&_0x23f3dd[_0x26ef5e(0x13c)]()[_0x26ef5e(0x16a)](process[_0x26ef5e(0x15b)]);_0x23f3dd[_0x26ef5e(0x177)]()&&_0x23f3dd[_0x26ef5e(0x177)]()[_0x26ef5e(0x16a)](process['stderr']);const _0x58d0b8=async()=>{const _0x46d3a9=_0x26ef5e,{forceExited:_0x53b509}=await _0x23f3dd[_0x46d3a9(0x18b)]();_0x53b509&&console[_0x46d3a9(0x12d)](_0x3168d1[_0x46d3a9(0x146)]),_0x3168d1[_0x46d3a9(0x14f)](_0x2c7e6d,_0x3b0e6b);},_0x4d0d8e=_0x3168d1[_0x26ef5e(0x14f)](pLimit,_0x83203b['length']||0x1),_0x3fb3bc=(_0x20db04,_0x1b1844)=>_0x4d0d8e(async()=>{const _0x4cb626=_0x26ef5e;return await _0x2378e1[_0x4cb626(0x16e)](_0xe3fbaf[_0x4cb626(0x167)],_0x20db04),_0xac3829[_0x4cb626(0x165)]=_0x5d3ff2['platforms'][_0x1b1844],_0xac3829['platformIndex']=_0x1b1844,_0x23f3dd[_0x4cb626(0x15e)](_0x20db04,_0xac3829,_0x5d3ff2,_0x122fea,_0x2698cf);});Promise[_0x26ef5e(0x131)](_0x83203b[_0x26ef5e(0x159)]((_0x56a7a8,_0x50d9f3)=>_0x3fb3bc(_0x56a7a8,_0x50d9f3)[_0x26ef5e(0x15d)](_0x125e33=>_0x2378e1[_0x26ef5e(0x16e)]('platform-run-success',[_0x56a7a8,_0x125e33]),_0x533ce7=>_0x2378e1[_0x26ef5e(0x16e)](_0x26ef5e(0x132),[_0x56a7a8,_0x533ce7]))))[_0x26ef5e(0x15d)](_0x58d0b8,_0x58d0b8);});},exports['parallelVanillaRun']=(_0x36aed3,_0x20862b)=>new Promise(_0x2cd709=>{const _0xc423c1=a57_0x354b45,_0x18f8d8={'XiFmD':_0xc423c1(0x12c),'apZaY':function(_0x22225d,_0x199a5d){return _0x22225d===_0x199a5d;},'BAOOH':function(_0xdbb2a6,_0x1a4b4b){return _0xdbb2a6!==_0x1a4b4b;},'JSdMC':_0xc423c1(0x135),'FBLMC':function(_0x15f9d7,_0x204c8c){return _0x15f9d7(_0x204c8c);},'xMbJF':'./testWorker.js','SwHyF':'vanillaWorker','JQoPX':_0xc423c1(0x163),'Fxmez':_0xc423c1(0x16a),'bpshI':_0xc423c1(0x16f),'wnhWy':_0xc423c1(0x143)},_0x301d96={},_0x14f10a=new Worker(require[_0xc423c1(0x185)](_0x18f8d8[_0xc423c1(0x169)]),{'exposedMethods':[_0x18f8d8['SwHyF']],'forkOptions':{'serialization':_0x18f8d8[_0xc423c1(0x164)],'stdio':_0x18f8d8['Fxmez']},'numWorkers':_0x20862b,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x687670=new Emittery();_0x687670['on'](_0x18f8d8[_0xc423c1(0x16c)],_0x1554e0=>{const _0x273e92=_0xc423c1;_0x1554e0[0x0]&&logger[_0x273e92(0x149)](_0x273e92(0x12f)+_0x1554e0[0x1]+'\x20for',_0x1554e0[0x0]);}),_0x687670['on'](_0x18f8d8[_0xc423c1(0x145)],_0x4e522e=>{process['exitCode']=0x1;});_0x14f10a['getStdout']()&&_0x14f10a[_0xc423c1(0x13c)]()[_0xc423c1(0x16a)](process[_0xc423c1(0x15b)]);_0x14f10a[_0xc423c1(0x177)]()&&_0x14f10a['getStderr']()[_0xc423c1(0x16a)](process[_0xc423c1(0x16b)]);const _0x46094e=async()=>{const _0x196c3e=_0xc423c1,_0x52bb40={'gOLUi':function(_0x1f0058,_0x565f2c){const _0xb025cf=a57_0x1b11;return _0x18f8d8[_0xb025cf(0x152)](_0x1f0058,_0x565f2c);},'ZSeZA':function(_0x1357da,_0x273793){const _0x30ff96=a57_0x1b11;return _0x18f8d8[_0x30ff96(0x17f)](_0x1357da,_0x273793);}};let _0x220267=0x0;const _0x6ed58c=_0x14f10a['_workerPool'][_0x196c3e(0x170)](),_0x55cbe9=()=>{},_0x53ae2d=_0x6ed58c[_0x196c3e(0x159)](async _0x4681a6=>{const _0x2dd013=_0x196c3e;_0x4681a6['send']([0x2,![]],_0x55cbe9,_0x55cbe9,_0x55cbe9),_0x4681a6[_0x2dd013(0x144)]['on'](_0x18f8d8[_0x2dd013(0x17d)],_0x56d3c7=>{const _0x5106b2=_0x2dd013;_0x52bb40[_0x5106b2(0x17e)](_0x220267,0x0)&&_0x52bb40['ZSeZA'](_0x56d3c7,0x0)&&(_0x220267=_0x56d3c7);}),await _0x4681a6[_0x2dd013(0x138)]();});await Promise['all'](_0x53ae2d),process[_0x196c3e(0x161)]=_0x220267;const {forceExited:_0x148102}=await _0x14f10a[_0x196c3e(0x18b)]();_0x148102&&console[_0x196c3e(0x12d)](_0x18f8d8[_0x196c3e(0x14d)]),_0x18f8d8[_0x196c3e(0x13b)](_0x2cd709,_0x301d96);},_0x14e631=_0x18f8d8['FBLMC'](pLimit,_0x20862b),_0x286a71=_0x24e1a7=>_0x14e631(async()=>{return _0x14f10a['vanillaWorker'](_0x24e1a7);});Promise['all'](_0x36aed3['map'](_0xac7159=>_0x286a71(_0xac7159)[_0xc423c1(0x15d)](_0x16f240=>_0x687670[_0xc423c1(0x16e)](_0xc423c1(0x16f),[_0xac7159[_0xc423c1(0x133)][_0xc423c1(0x173)],_0xac7159[_0xc423c1(0x133)][_0xc423c1(0x187)]]),_0x38094e=>_0x687670['emit'](_0xc423c1(0x143),[_0xac7159,_0x38094e]))))['then'](_0x46094e,_0x46094e);});
|
|
1
|
+
function a57_0x2198(){const _0xc2af83=['KEFvO','waitForExit','SDK_SETUP','FaDnv','UhDVK','ykoGE','24832uqPfCo','winstonLogger','parallelTestRun','configuration','all','stderr','../../helpers/test-observability/utils','iNfre','getStdout','test-file-start','results','stdout','1296828AKeMyi','parallelVanillaRun','emittery','RTwHH','eycBb','parallelCucumberRun','Workers\x20failed\x20to\x20exit\x20gracefully','3250390kcZIjw','dfknH','rABTa','MufYt','PvhNj','json','pipe','yMFUr','postMessage','gMsPM','push','jest-worker','218936zsahcy','getStderr','fMnLX','platforms','emit','BOyje','DdpQe','Worker','GqRRH','format','end','then','KBRSi','1715JnrAxx','sALCu','worker','UNSTABLE_onCustomMessage','info','platform-run-start','failureCount','./testWorker.js','exit','cucumberWorker','xTglw','bDjfu','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','worker_threads','13pMiuRL','Qdgom','exitCode','ySugu','send','debug','qslKF','map','log','496975QZnwak','error','platformCaps','UXijj','platform','Exception\x20in\x20sending\x20worker\x20message\x20','config','3TmdPuY','wNgFP','test-file-failure','Running\x20','../../helpers/performance/performance-tester','test-file-success','length','DRAnC','platform-run-success','HArXE','aHxxv','dnwjX','platformIndex','util','1200846dmToyG','EVENTS','_workerPool','KCvjM','p-limit','file','111498EDJzWg','stop','../../helpers/performance/constants','InIEl','vanillaWorker','TWGQa','resolve','QzSUx'];a57_0x2198=function(){return _0xc2af83;};return a57_0x2198();}function a57_0x132c(_0x27e644,_0x204624){const _0x2198f=a57_0x2198();return a57_0x132c=function(_0x132ca3,_0x53910f){_0x132ca3=_0x132ca3-0x8d;let _0x37c1a4=_0x2198f[_0x132ca3];return _0x37c1a4;},a57_0x132c(_0x27e644,_0x204624);}const a57_0x7a5f74=a57_0x132c;(function(_0x3cacc3,_0x501e23){const _0x2a82e0=a57_0x132c,_0x166e81=_0x3cacc3();while(!![]){try{const _0x4dc55a=parseInt(_0x2a82e0(0xd7))/0x1*(parseInt(_0x2a82e0(0x8f))/0x2)+parseInt(_0x2a82e0(0xe7))/0x3*(parseInt(_0x2a82e0(0xbc))/0x4)+parseInt(_0x2a82e0(0xe0))/0x5+parseInt(_0x2a82e0(0xf5))/0x6+-parseInt(_0x2a82e0(0xc9))/0x7*(parseInt(_0x2a82e0(0x9d))/0x8)+-parseInt(_0x2a82e0(0xa9))/0x9+parseInt(_0x2a82e0(0xb0))/0xa;if(_0x4dc55a===_0x501e23)break;else _0x166e81['push'](_0x166e81['shift']());}catch(_0x3b05d3){_0x166e81['push'](_0x166e81['shift']());}}}(a57_0x2198,0x79f12));const Worker=require(a57_0x7a5f74(0xbb))[a57_0x7a5f74(0xc3)],Emittery=require(a57_0x7a5f74(0xab)),pLimit=require(a57_0x7a5f74(0x8d)),{parentPort}=require(a57_0x7a5f74(0xd6)),util=require(a57_0x7a5f74(0xf4)),logger=require('../../helpers/logger')[a57_0x7a5f74(0x9e)],PerformanceTester=require(a57_0x7a5f74(0xeb)),PerformanceEvents=require(a57_0x7a5f74(0x91))[a57_0x7a5f74(0xf6)],{debug}=require(a57_0x7a5f74(0xa3)),TestHubHandler=require('../../helpers/testhub/testhubHandler');exports[a57_0x7a5f74(0x9f)]=(_0x3fd2c7,_0x3ae069,_0x28ddb3)=>new Promise(async _0x2f7063=>{const _0x48e0e5=a57_0x7a5f74,_0x3ec6b6={'DdpQe':_0x48e0e5(0xcf),'xTglw':function(_0x4c4672,_0x38651e){return _0x4c4672+_0x38651e;},'UXijj':_0x48e0e5(0xa7),'CzFab':'Workers\x20failed\x20to\x20exit\x20gracefully','TWGQa':function(_0x333e57,_0xc5ef60){return _0x333e57(_0xc5ef60);},'Qdgom':_0x48e0e5(0xa6),'fMnLX':_0x48e0e5(0xd0),'ySugu':'worker','yMFUr':'json','sALCu':_0x48e0e5(0xb6),'PvhNj':function(_0x51fde6,_0x55a580){return _0x51fde6*_0x55a580;},'iNfre':_0x48e0e5(0xec),'KCvjM':_0x48e0e5(0xe9),'KEFvO':function(_0x81f145,_0x2da03c){return _0x81f145(_0x2da03c);},'bDjfu':function(_0x47f675,_0x42cd7e){return _0x47f675*_0x42cd7e;}},_0x2ae752=_0x28ddb3[_0x48e0e5(0xe6)],_0x4a94a9={},_0x48da26=new Worker(require['resolve'](_0x3ec6b6[_0x48e0e5(0xbe)]),{'exposedMethods':[_0x3ec6b6[_0x48e0e5(0xda)]],'forkOptions':{'serialization':_0x3ec6b6[_0x48e0e5(0xb7)],'stdio':_0x3ec6b6[_0x48e0e5(0xca)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x3ec6b6[_0x48e0e5(0xb4)](_0x3ae069,0x1),'enableWorkerThreads':!![]}),_0x437d78=new Emittery();_0x437d78['on'](_0x3ec6b6[_0x48e0e5(0xa4)],_0x42e75f=>{const _0x42a19d=_0x48e0e5;_0x4a94a9[_0x42e75f[0x0]]?(_0x4a94a9[_0x42e75f[0x0]][_0x3ec6b6['DdpQe']]=_0x3ec6b6[_0x42a19d(0xd3)](_0x4a94a9[_0x42e75f[0x0]][_0x3ec6b6['DdpQe']],_0x42e75f[0x1][_0x3ec6b6[_0x42a19d(0xc2)]]),_0x4a94a9[_0x42e75f[0x0]][_0x3ec6b6[_0x42a19d(0xe3)]]=[..._0x4a94a9[_0x42e75f[0x0]][_0x3ec6b6[_0x42a19d(0xe3)]],..._0x42e75f[0x1][_0x3ec6b6[_0x42a19d(0xe3)]]]):_0x4a94a9[_0x42e75f[0x0]]={'failureCount':_0x42e75f[0x1][_0x3ec6b6[_0x42a19d(0xc2)]],'results':[..._0x42e75f[0x1][_0x3ec6b6['UXijj']]]};}),_0x437d78['on'](_0x3ec6b6[_0x48e0e5(0xf8)],_0x5740da=>console[_0x48e0e5(0xdf)](_0x5740da[0x1]));_0x48da26[_0x48e0e5(0xa5)]()&&_0x48da26[_0x48e0e5(0xa5)]()[_0x48e0e5(0xb6)](process['stdout']);_0x48da26[_0x48e0e5(0xbd)]()&&_0x48da26[_0x48e0e5(0xbd)]()[_0x48e0e5(0xb6)](process[_0x48e0e5(0xa2)]);const _0x3b2e40=async()=>{const _0x276a36=_0x48e0e5,{forceExited:_0x61ac18}=await _0x48da26[_0x276a36(0xc6)]();_0x61ac18&&console[_0x276a36(0xe1)](_0x3ec6b6['CzFab']);try{await TestHubHandler[_0x276a36(0x90)]();}catch(_0x81485f){_0x3ec6b6[_0x276a36(0x94)](debug,_0x276a36(0xd5)+_0x81485f);}_0x3ec6b6[_0x276a36(0x94)](_0x2f7063,_0x4a94a9);},_0x2d621c=_0x3ec6b6[_0x48e0e5(0x97)](pLimit,_0x3ec6b6[_0x48e0e5(0xd4)](_0x3ae069,0x1)),_0x123bd3=_0x4358d1=>_0x2d621c(async()=>{const _0x358fd2=_0x48e0e5;await _0x437d78[_0x358fd2(0xc0)](_0x3ec6b6[_0x358fd2(0xd8)],_0x4358d1);const _0x30b1cd=_0x48da26[_0x358fd2(0xcb)](_0x4358d1,_0x2ae752);try{parentPort&&_0x30b1cd[_0x358fd2(0xcc)](_0x5e43a3=>{const _0x2ffa8b=_0x358fd2;try{parentPort[_0x2ffa8b(0xb8)](_0x5e43a3);}catch(_0x421d89){logger[_0x2ffa8b(0xdc)](_0x2ffa8b(0xe5)+util[_0x2ffa8b(0xc5)](_0x421d89));}});}catch(_0x18b711){logger[_0x358fd2(0xdc)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x358fd2(0xc5)](_0x18b711));}return _0x30b1cd;});PerformanceTester[_0x48e0e5(0xc6)](PerformanceEvents[_0x48e0e5(0x99)]),Promise[_0x48e0e5(0xa1)](_0x3fd2c7[_0x48e0e5(0xde)](_0x1e0816=>_0x123bd3(_0x1e0816)[_0x48e0e5(0xc7)](_0x4694cd=>_0x437d78['emit']('test-file-success',[_0x1e0816[_0x48e0e5(0xa0)][_0x48e0e5(0xe4)],_0x4694cd]),_0x183f0e=>_0x437d78[_0x48e0e5(0xc0)](_0x48e0e5(0xe9),[_0x1e0816,_0x183f0e]))))['then'](_0x3b2e40,_0x3b2e40);}),exports[a57_0x7a5f74(0xae)]=(_0x1ab233,_0x5ea18c,_0x15daef,_0x4c7538,_0x4226ef)=>{const _0x1b9d0e=a57_0x7a5f74,_0x4a1b0b={'GqRRH':_0x1b9d0e(0xce),'VwpQS':_0x1b9d0e(0xaf),'QzSUx':function(_0x19239f,_0x1c9b23){return _0x19239f(_0x1c9b23);},'qslKF':_0x1b9d0e(0xd0),'ykoGE':_0x1b9d0e(0xd2),'gMsPM':_0x1b9d0e(0xb5),'DRAnC':_0x1b9d0e(0xb6),'FaDnv':'platform-run-success','wNgFP':'platform-run-failure'};return new Promise(_0x153516=>{const _0x1c95f8=_0x1b9d0e,_0x37d9cd={'rABTa':_0x4a1b0b['VwpQS'],'dnwjX':function(_0x673fed,_0x342241){const _0x5a963c=a57_0x132c;return _0x4a1b0b[_0x5a963c(0x96)](_0x673fed,_0x342241);}},_0x3df3d0=[],_0x31fcff=new Worker(require[_0x1c95f8(0x95)](_0x4a1b0b[_0x1c95f8(0xdd)]),{'exposedMethods':[_0x4a1b0b[_0x1c95f8(0x9c)]],'forkOptions':{'serialization':_0x4a1b0b[_0x1c95f8(0xb9)],'stdio':_0x4a1b0b[_0x1c95f8(0xee)]},'numWorkers':_0x1ab233[_0x1c95f8(0xed)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x4826a5=new Emittery();_0x4826a5['on'](_0x4a1b0b[_0x1c95f8(0x9a)],_0x443b72=>{const _0x57543a=_0x1c95f8;_0x3df3d0[_0x57543a(0xba)]([_0x443b72[0x0],_0x443b72[0x1]]);}),_0x4826a5['on'](_0x4a1b0b[_0x1c95f8(0xe8)],_0xd8a35e=>console[_0x1c95f8(0xdf)](_0xd8a35e[0x1]));_0x31fcff[_0x1c95f8(0xa5)]()&&_0x31fcff[_0x1c95f8(0xa5)]()['pipe'](process[_0x1c95f8(0xa8)]);_0x31fcff['getStderr']()&&_0x31fcff[_0x1c95f8(0xbd)]()[_0x1c95f8(0xb6)](process['stderr']);const _0x52125e=async()=>{const _0x5168ab=_0x1c95f8,{forceExited:_0x303e41}=await _0x31fcff[_0x5168ab(0xc6)]();_0x303e41&&console['error'](_0x37d9cd[_0x5168ab(0xb2)]),_0x37d9cd[_0x5168ab(0xf2)](_0x153516,_0x3df3d0);},_0x2892a7=_0x4a1b0b['QzSUx'](pLimit,_0x1ab233[_0x1c95f8(0xed)]||0x1),_0x3ca0da=(_0x8b93b5,_0x4e6a20)=>_0x2892a7(async()=>{const _0x2c8fdd=_0x1c95f8;return await _0x4826a5[_0x2c8fdd(0xc0)](_0x4a1b0b[_0x2c8fdd(0xc4)],_0x8b93b5),_0x5ea18c[_0x2c8fdd(0xe2)]=_0x15daef[_0x2c8fdd(0xbf)][_0x4e6a20],_0x5ea18c[_0x2c8fdd(0xf3)]=_0x4e6a20,_0x31fcff[_0x2c8fdd(0xd2)](_0x8b93b5,_0x5ea18c,_0x15daef,_0x4c7538,_0x4226ef);});Promise[_0x1c95f8(0xa1)](_0x1ab233[_0x1c95f8(0xde)]((_0x29e0e2,_0x57ed56)=>_0x3ca0da(_0x29e0e2,_0x57ed56)[_0x1c95f8(0xc7)](_0x3ff60f=>_0x4826a5[_0x1c95f8(0xc0)](_0x1c95f8(0xef),[_0x29e0e2,_0x3ff60f]),_0x5f1710=>_0x4826a5[_0x1c95f8(0xc0)]('platform-run-failure',[_0x29e0e2,_0x5f1710]))))['then'](_0x52125e,_0x52125e);});},exports[a57_0x7a5f74(0xaa)]=(_0xa2cbdc,_0x2c320b)=>new Promise(_0x5d9312=>{const _0x2f8bed=a57_0x7a5f74,_0x332177={'kWeas':function(_0x1e447d,_0x275a7f){return _0x1e447d===_0x275a7f;},'ZDPfK':function(_0x999ceb,_0x4afdbc){return _0x999ceb!==_0x4afdbc;},'eycBb':_0x2f8bed(0xd1),'aHxxv':_0x2f8bed(0xaf),'YVWld':function(_0x4f9c36,_0xac7ed8){return _0x4f9c36(_0xac7ed8);},'KBRSi':'./testWorker.js','BOyje':'vanillaWorker','HArXE':'json','RTwHH':'pipe','UhDVK':'test-file-success','cAver':_0x2f8bed(0xe9),'dfknH':function(_0x1111a1,_0x5d4b08){return _0x1111a1(_0x5d4b08);}},_0x8ceca4={},_0x58c44d=new Worker(require[_0x2f8bed(0x95)](_0x332177[_0x2f8bed(0xc8)]),{'exposedMethods':[_0x332177[_0x2f8bed(0xc1)]],'forkOptions':{'serialization':_0x332177[_0x2f8bed(0xf0)],'stdio':_0x332177[_0x2f8bed(0xac)]},'numWorkers':_0x2c320b,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0xca57c3=new Emittery();_0xca57c3['on'](_0x332177[_0x2f8bed(0x9b)],_0x364eab=>{const _0x3cf095=_0x2f8bed;_0x364eab[0x0]&&logger[_0x3cf095(0xcd)](_0x3cf095(0xea)+_0x364eab[0x1]+'\x20for',_0x364eab[0x0]);}),_0xca57c3['on'](_0x332177['cAver'],_0x5daa34=>{const _0x2abf85=_0x2f8bed;process[_0x2abf85(0xd9)]=0x1;});_0x58c44d[_0x2f8bed(0xa5)]()&&_0x58c44d['getStdout']()['pipe'](process[_0x2f8bed(0xa8)]);_0x58c44d['getStderr']()&&_0x58c44d[_0x2f8bed(0xbd)]()[_0x2f8bed(0xb6)](process[_0x2f8bed(0xa2)]);const _0x257cf9=async()=>{const _0x537b3c=_0x2f8bed,_0x4568c5={'mJhlb':function(_0x282934,_0x249b57){return _0x332177['kWeas'](_0x282934,_0x249b57);},'InIEl':function(_0x160810,_0x569a18){return _0x332177['ZDPfK'](_0x160810,_0x569a18);},'MufYt':_0x332177[_0x537b3c(0xad)]};let _0x3e598e=0x0;const _0x2e2443=_0x58c44d[_0x537b3c(0xf7)]['getWorkers'](),_0x53c358=()=>{},_0x1fb306=_0x2e2443[_0x537b3c(0xde)](async _0xe759c2=>{const _0xad1702=_0x537b3c;_0xe759c2[_0xad1702(0xdb)]([0x2,![]],_0x53c358,_0x53c358,_0x53c358),_0xe759c2['_child']['on'](_0x4568c5[_0xad1702(0xb3)],_0x437442=>{const _0x1b1821=_0xad1702;_0x4568c5['mJhlb'](_0x3e598e,0x0)&&_0x4568c5[_0x1b1821(0x92)](_0x437442,0x0)&&(_0x3e598e=_0x437442);}),await _0xe759c2[_0xad1702(0x98)]();});await Promise['all'](_0x1fb306),process[_0x537b3c(0xd9)]=_0x3e598e;const {forceExited:_0x309a8d}=await _0x58c44d[_0x537b3c(0xc6)]();_0x309a8d&&console[_0x537b3c(0xe1)](_0x332177[_0x537b3c(0xf1)]),_0x332177['YVWld'](_0x5d9312,_0x8ceca4);},_0x133be0=_0x332177[_0x2f8bed(0xb1)](pLimit,_0x2c320b),_0xaa96cf=_0x914de3=>_0x133be0(async()=>{const _0x2228ea=_0x2f8bed;return _0x58c44d[_0x2228ea(0x93)](_0x914de3);});Promise['all'](_0xa2cbdc[_0x2f8bed(0xde)](_0x47edca=>_0xaa96cf(_0x47edca)[_0x2f8bed(0xc7)](_0x57e204=>_0xca57c3['emit'](_0x2f8bed(0xec),[_0x47edca[_0x2f8bed(0xa0)]['platform'],_0x47edca[_0x2f8bed(0xa0)][_0x2f8bed(0x8e)]]),_0x49de09=>_0xca57c3['emit'](_0x2f8bed(0xe9),[_0x47edca,_0x49de09]))))[_0x2f8bed(0xc7)](_0x257cf9,_0x257cf9);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a58_0x4ef5(_0x4534a0,_0x4dd881){const _0x1ca2a1=a58_0x1ca2();return a58_0x4ef5=function(_0x4ef573,_0x328c24){_0x4ef573=_0x4ef573-0x108;let _0x32eaa6=_0x1ca2a1[_0x4ef573];return _0x32eaa6;},a58_0x4ef5(_0x4534a0,_0x4dd881);}const a58_0x1c1bdb=a58_0x4ef5;(function(_0x165a12,_0x3c4098){const _0x5038c9=a58_0x4ef5,_0x57625d=_0x165a12();while(!![]){try{const _0x508b4f=-parseInt(_0x5038c9(0x11e))/0x1+-parseInt(_0x5038c9(0x10f))/0x2+parseInt(_0x5038c9(0x111))/0x3+-parseInt(_0x5038c9(0x115))/0x4+parseInt(_0x5038c9(0x109))/0x5+-parseInt(_0x5038c9(0x108))/0x6*(parseInt(_0x5038c9(0x11f))/0x7)+-parseInt(_0x5038c9(0x120))/0x8*(-parseInt(_0x5038c9(0x10c))/0x9);if(_0x508b4f===_0x3c4098)break;else _0x57625d['push'](_0x57625d['shift']());}catch(_0x39f2b6){_0x57625d['push'](_0x57625d['shift']());}}}(a58_0x1ca2,0xb4f10));const PerformanceEvents=require(a58_0x1c1bdb(0x110))[a58_0x1c1bdb(0x123)],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require(a58_0x1c1bdb(0x11d));function a58_0x1ca2(){const _0x12c9eb=['2053800FEavkp','cbsNT','configuration','mocha','eqYqH','formatter','end','ntfxu','../../helpers/test-observability/utils','1001033dkvZMD','14JaxHgA','40NAqNvu','runVanillaTest','startMonitoring','EVENTS','4332714uCHApN','5175855NcHclO','ePVeX','../launcher/launcher','7325100DXyFhA','raAle','ZUUaY','2846048VUeUhu','../../helpers/performance/constants','54630DBkoDG','runCucumberTest','run','SDK_POST_TEST'];a58_0x1ca2=function(){return _0x12c9eb;};return a58_0x1ca2();}exports['runTest']=async(_0x373c9a,_0x33baad)=>{const _0x3f7423=a58_0x1c1bdb,_0x3cf5ec={'cbsNT':function(_0x4896c9,_0x267934){return _0x4896c9(_0x267934);},'eqYqH':_0x3f7423(0x10b),'raAle':_0x3f7423(0x118)};PerformanceTester[_0x3f7423(0x122)]();const _0x4e8706=_0x3cf5ec['cbsNT'](require,_0x3cf5ec[_0x3f7423(0x119)]),_0xc7d31=new _0x4e8706(_0x3cf5ec[_0x3f7423(0x10d)],_0x373c9a,_0x33baad),_0x215d5b=await _0xc7d31[_0x3f7423(0x113)]();return PerformanceTester[_0x3f7423(0x11b)](PerformanceEvents[_0x3f7423(0x114)]),await _0x3cf5ec[_0x3f7423(0x116)](sleep,0x3e8),PerformanceTester['stopMonitoring'](),_0x215d5b;},exports[a58_0x1c1bdb(0x112)]=async(_0x37b5e9,_0x16b3b9,_0x23e3aa,_0x38ce32,_0x321aa3)=>{const _0x13f164=a58_0x1c1bdb,_0x343ad1={'iofVX':function(_0x2a35b0,_0x2ff625){return _0x2a35b0(_0x2ff625);},'IGAWm':_0x13f164(0x10b),'qHgBk':'cucumber-js'},_0x46710d={'capability':_0x37b5e9,..._0x16b3b9},_0x4a809d={};_0x4a809d[_0x13f164(0x117)]=_0x46710d,_0x4a809d[_0x13f164(0x11a)]=_0x321aa3;const _0x23028e=_0x4a809d,_0x2e7fdf=_0x343ad1['iofVX'](require,_0x343ad1['IGAWm']),_0x2750cf=new _0x2e7fdf(_0x343ad1['qHgBk'],_0x23028e,_0x23e3aa,_0x38ce32);return await _0x2750cf[_0x13f164(0x113)]();},exports[a58_0x1c1bdb(0x121)]=async _0x4f3376=>{const _0xdce37a=a58_0x1c1bdb,_0x24d1a9={'ePVeX':function(_0x5799cf,_0x4218c3){return _0x5799cf(_0x4218c3);},'ZUUaY':'../launcher/launcher','ntfxu':'vanilla'},_0x50727b=_0x24d1a9[_0xdce37a(0x10a)](require,_0x24d1a9[_0xdce37a(0x10e)]),_0x2ca0c5=new _0x50727b(_0x24d1a9[_0xdce37a(0x11c)],_0x4f3376);return await _0x2ca0c5[_0xdce37a(0x113)]();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a59_0x355165=a59_0x4eb2;(function(_0xbc2ec6,_0x4f6fc5){const _0x981d12=a59_0x4eb2,_0x13a166=_0xbc2ec6();while(!![]){try{const _0x40990c=parseInt(_0x981d12(0x7e))/0x1*(-parseInt(_0x981d12(0x7d))/0x2)+-parseInt(_0x981d12(0x8b))/0x3*(-parseInt(_0x981d12(0x87))/0x4)+-parseInt(_0x981d12(0x89))/0x5+-parseInt(_0x981d12(0x8a))/0x6+-parseInt(_0x981d12(0x82))/0x7*(parseInt(_0x981d12(0x86))/0x8)+parseInt(_0x981d12(0x83))/0x9+parseInt(_0x981d12(0x81))/0xa*(parseInt(_0x981d12(0x80))/0xb);if(_0x40990c===_0x4f6fc5)break;else _0x13a166['push'](_0x13a166['shift']());}catch(_0x453fd4){_0x13a166['push'](_0x13a166['shift']());}}}(a59_0x13cb,0x23647));const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x355165(0x7f));function a59_0x4eb2(_0x475930,_0x219ad6){const _0x13cb1c=a59_0x13cb();return a59_0x4eb2=function(_0x4eb25a,_0x5508f6){_0x4eb25a=_0x4eb25a-0x7d;let _0x1b10d5=_0x13cb1c[_0x4eb25a];return _0x1b10d5;},a59_0x4eb2(_0x475930,_0x219ad6);}exports[a59_0x355165(0x88)]=async(_0x43a830,_0x49785d)=>{const _0x273378=a59_0x355165,_0x1ba71f={'ivcVk':function(_0x42ec6d,_0x4d525a,_0x12a84c){return _0x42ec6d(_0x4d525a,_0x12a84c);}};return await _0x1ba71f[_0x273378(0x8c)](runTest,_0x43a830,_0x49785d);},exports[a59_0x355165(0x84)]=async(_0xd5a18b,_0xdb991f,_0x581798,_0x2fb380,_0x2884b1)=>{const _0x72b43d=a59_0x355165,_0x5e7443={'GiZRA':function(_0x6ff37c,_0x4b0d9b,_0x58ab83,_0xb8ac6c,_0x5a7825,_0x1060dd){return _0x6ff37c(_0x4b0d9b,_0x58ab83,_0xb8ac6c,_0x5a7825,_0x1060dd);}};return await _0x5e7443[_0x72b43d(0x85)](runCucumberTest,_0xd5a18b,_0xdb991f,_0x581798,_0x2fb380,_0x2884b1);},exports['vanillaWorker']=async _0x4e4890=>{const _0x302193={'fHqol':function(_0x407a0d,_0x129daa){return _0x407a0d(_0x129daa);}};return await _0x302193['fHqol'](runVanillaTest,_0x4e4890);};function a59_0x13cb(){const _0x239435=['cucumberWorker','GiZRA','192112PMorkl','8252IYSLvC','worker','979345jCVEPB','897366vFBSrl','45YbqPiw','ivcVk','6ynZfpG','67207SGKdlX','./runTest','198GxErVw','316060gYqyLY','7RwVCmw','1045611oEqvaK'];a59_0x13cb=function(){return _0x239435;};return a59_0x13cb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a60_0x6853(){const _0x57ffdf=['JvQPL','80DtiTIv','cdp','appAutomate','brciI','uYAAF','getConfig','mwUZV','UvkzR','ZPcHa','VmKlZ','pXRNq','upload','getAutomateSessionNameAPIUrl','UBXhZ','sYyfU','gOlKs','endsWith','OsPah','8198046aVNZUZ','getAppAutomateSessionStatusAPIUrl','3UQUzel','lmWkq','rHHAG','PUPPETEER_HUB_URL','nCjBu','/puppeteer?caps=','2957966cnBOyQ','srvsn','tdPVJ','xBRCS','automate','mTABw','EDS_URL','APP_UPLOAD_URL','BROWSERSTACK_API_URL','yriJo','4394190qDODFb','AEEyj','EMewH','replace','WodOF','../v2/browserstackCLI','IKeHH','getBStackAPIUrl','llCHf','wss:','getAutomateSessionsListAPIUrl','gMlxQ','edsInstrumentation','ZEffq','lNdPz','nhsFs','cPSzJ','nzbpv','AbJnA','Tghap','VmsgM','/playwright?caps=','mmSza','beBmW','GNBDl','apis','XNTYL','OBSERVABILITY_UPLOAD_URL','BAiGf','qceXa','1283457unFJpV','CDtTL','getEdsInstrumentationAPIUrl','OcRDZ','observability','wnuIh','kSYoL','getAutoCaptureLogsAPIUrl','18997660ZhtXBt','115440nbABkf','UjapG','rPeOD','api','getAutomateSessionStatusAPIUrl','UPJqZ','zcHpY','toString','FRCxW','OhlfA','1020911ysYAbU','LWuAp','getPuppeteerHubUrl','ekAyJ','VPIVO','212PKNOZq','CkNPr','AuFwJ','getInstance','ZKqEU','DmXlR'];a60_0x6853=function(){return _0x57ffdf;};return a60_0x6853();}const a60_0x196bfe=a60_0xc2b4;(function(_0xe2f235,_0x125092){const _0x561ace=a60_0xc2b4,_0x56eef8=_0xe2f235();while(!![]){try{const _0x1812fa=-parseInt(_0x561ace(0xc7))/0x1+parseInt(_0x561ace(0x8c))/0x2*(parseInt(_0x561ace(0x86))/0x3)+-parseInt(_0x561ace(0xcc))/0x4*(parseInt(_0x561ace(0xbd))/0x5)+parseInt(_0x561ace(0x96))/0x6+-parseInt(_0x561ace(0xb4))/0x7*(parseInt(_0x561ace(0xd3))/0x8)+parseInt(_0x561ace(0x84))/0x9+parseInt(_0x561ace(0xbc))/0xa;if(_0x1812fa===_0x125092)break;else _0x56eef8['push'](_0x56eef8['shift']());}catch(_0x4e3f28){_0x56eef8['push'](_0x56eef8['shift']());}}}(a60_0x6853,0xe6733));function a60_0xc2b4(_0x1b3c69,_0x5d3645){const _0x6853d3=a60_0x6853();return a60_0xc2b4=function(_0xc2b419,_0x3a6d14){_0xc2b419=_0xc2b419-0x75;let _0x12136f=_0x6853d3[_0xc2b419];return _0x12136f;},a60_0xc2b4(_0x1b3c69,_0x5d3645);}const constants=require('./constants'),{nestedKeyValue}=require('./sharedUtils'),getBrowserstackCLI=()=>{const _0x5146a9=a60_0xc2b4,_0x2b3b9c={'rHHAG':function(_0x4bd9f8,_0x2b7f86){return _0x4bd9f8(_0x2b7f86);},'nzbpv':_0x5146a9(0x9b)};return _0x2b3b9c[_0x5146a9(0x88)](require,_0x2b3b9c[_0x5146a9(0xa7)]);};class APIUtilityMethods{static[a60_0x196bfe(0x9d)](_0x530cf9){const _0x3e1b4f=a60_0x196bfe,_0x1f7922={'GNBDl':function(_0x11b44f){return _0x11b44f();},'hxvXU':function(_0x4d329,_0x110be,_0x9da1d0){return _0x4d329(_0x110be,_0x9da1d0);},'kSYoL':'apis','TnSqI':_0x3e1b4f(0x90),'gOlKs':_0x3e1b4f(0xc0),'YxVcR':function(_0x197276,_0x19a3c2){return _0x197276===_0x19a3c2;},'jEQjl':function(_0x37bbf2,_0x2680c3){return _0x37bbf2+_0x2680c3;}},_0x1273d7=_0x1f7922[_0x3e1b4f(0xae)](getBrowserstackCLI),_0x27bfb4=_0x1f7922['hxvXU'](nestedKeyValue,_0x1273d7[_0x3e1b4f(0xcf)]()[_0x3e1b4f(0x77)](),[_0x1f7922[_0x3e1b4f(0xba)],_0x1f7922['TnSqI'],_0x1f7922[_0x3e1b4f(0x81)]])||constants['BROWSERSTACK_API_URL'];if(!_0x530cf9||_0x1f7922['YxVcR'](_0x530cf9,''))return _0x27bfb4;const _0x1f2e91=_0x27bfb4['endsWith']('/')?_0x27bfb4:_0x1f7922['jEQjl'](_0x27bfb4,'/');return new URL(_0x530cf9,_0x1f2e91)['toString']();}static[a60_0x196bfe(0xb6)](_0x4ec614){const _0x36d38e=a60_0x196bfe,_0x474353={'lmWkq':function(_0xc9cd6b){return _0xc9cd6b();},'OcRDZ':function(_0x29a9ff,_0x19076e,_0x1f9b80){return _0x29a9ff(_0x19076e,_0x1f9b80);},'VmKlZ':_0x36d38e(0xaf),'FRCxW':_0x36d38e(0xa2),'llCHf':_0x36d38e(0xc0),'sCqHr':function(_0x60bc1,_0x328873){return _0x60bc1===_0x328873;},'CDtTL':function(_0x5b3943,_0x226642){return _0x5b3943+_0x226642;}},_0x50bca5=_0x474353[_0x36d38e(0x87)](getBrowserstackCLI),_0x33f0a4=_0x474353[_0x36d38e(0xb7)](nestedKeyValue,_0x50bca5[_0x36d38e(0xcf)]()[_0x36d38e(0x77)](),[_0x474353[_0x36d38e(0x7b)],_0x474353[_0x36d38e(0xc5)],_0x474353[_0x36d38e(0x9e)]])||constants[_0x36d38e(0x92)];if(!_0x4ec614||_0x474353['sCqHr'](_0x4ec614,''))return _0x33f0a4;const _0x28a0bc=_0x33f0a4[_0x36d38e(0x82)]('/')?_0x33f0a4:_0x474353[_0x36d38e(0xb5)](_0x33f0a4,'/');return new URL(_0x4ec614,_0x28a0bc)['toString']();}static[a60_0x196bfe(0xc1)](_0x456a33){const _0x4fec98=a60_0x196bfe,_0x3feef2={'XVpUb':function(_0x341265){return _0x341265();},'zcHpY':function(_0x105ff2,_0xd76307,_0xb6fed1){return _0x105ff2(_0xd76307,_0xb6fed1);},'sYyfU':_0x4fec98(0xaf),'mwUZV':_0x4fec98(0x90),'brciI':_0x4fec98(0xc0),'RuBiv':function(_0x3671a3,_0x1ca540){return _0x3671a3===_0x1ca540;},'AEEyj':function(_0x590039,_0x459e6e){return _0x590039+_0x459e6e;}},_0x866d99=_0x3feef2['XVpUb'](getBrowserstackCLI),_0x1bf100=_0x3feef2[_0x4fec98(0xc3)](nestedKeyValue,_0x866d99[_0x4fec98(0xcf)]()['getConfig'](),[_0x3feef2[_0x4fec98(0x80)],_0x3feef2[_0x4fec98(0x78)],_0x3feef2[_0x4fec98(0x75)]])||constants['BROWSERSTACK_API_URL'];if(!_0x456a33||_0x3feef2['RuBiv'](_0x456a33,''))return _0x1bf100;const _0x244d60=_0x1bf100[_0x4fec98(0x82)]('/')?_0x1bf100:_0x3feef2[_0x4fec98(0x97)](_0x1bf100,'/');return new URL(_0x456a33,_0x244d60)['toString']();}static[a60_0x196bfe(0x85)](_0x3726a3){const _0x4464b7=a60_0x196bfe,_0x230586={'UvkzR':function(_0x469d9e){return _0x469d9e();},'ZKqEU':function(_0x24e0e1,_0x592875,_0x5537eb){return _0x24e0e1(_0x592875,_0x5537eb);},'BAiGf':'apis','nCjBu':_0x4464b7(0xd5),'tdPVJ':_0x4464b7(0xc0),'VmsgM':function(_0x213543,_0x44b0ed){return _0x213543===_0x44b0ed;},'rPeOD':function(_0x40be82,_0x5d7316){return _0x40be82+_0x5d7316;}},_0x16db27=_0x230586[_0x4464b7(0x79)](getBrowserstackCLI),_0x4543ad=_0x230586[_0x4464b7(0xd0)](nestedKeyValue,_0x16db27[_0x4464b7(0xcf)]()[_0x4464b7(0x77)](),[_0x230586[_0x4464b7(0xb2)],_0x230586[_0x4464b7(0x8a)],_0x230586[_0x4464b7(0x8e)]])||constants['BROWSERSTACK_API_URL'];if(!_0x3726a3||_0x230586[_0x4464b7(0xaa)](_0x3726a3,''))return _0x4543ad;const _0x1aa8e5=_0x4543ad['endsWith']('/')?_0x4543ad:_0x230586[_0x4464b7(0xbf)](_0x4543ad,'/');return new URL(_0x3726a3,_0x1aa8e5)['toString']();}static[a60_0x196bfe(0x7e)](_0x2b4f2f){const _0x43b232=a60_0x196bfe,_0x38ff1e={'uYAAF':function(_0x2d5841){return _0x2d5841();},'cPSzJ':function(_0x1fd006,_0x668873,_0x55e66c){return _0x1fd006(_0x668873,_0x55e66c);},'HmauA':_0x43b232(0xaf),'yriJo':_0x43b232(0x90),'OhlfA':_0x43b232(0xc0),'XeGGe':function(_0x478362,_0x3b5522){return _0x478362===_0x3b5522;},'srvsn':function(_0x89fed8,_0x297144){return _0x89fed8+_0x297144;}},_0xb223c2=_0x38ff1e[_0x43b232(0x76)](getBrowserstackCLI),_0x19043f=_0x38ff1e[_0x43b232(0xa6)](nestedKeyValue,_0xb223c2[_0x43b232(0xcf)]()[_0x43b232(0x77)](),[_0x38ff1e['HmauA'],_0x38ff1e[_0x43b232(0x95)],_0x38ff1e[_0x43b232(0xc6)]])||constants[_0x43b232(0x94)];if(!_0x2b4f2f||_0x38ff1e['XeGGe'](_0x2b4f2f,''))return _0x19043f;const _0x74e0ac=_0x19043f[_0x43b232(0x82)]('/')?_0x19043f:_0x38ff1e[_0x43b232(0x8d)](_0x19043f,'/');return new URL(_0x2b4f2f,_0x74e0ac)[_0x43b232(0xc4)]();}static['getAppAutomateSessionNameAPIUrl'](_0x28885c){const _0x22b349=a60_0x196bfe,_0x3f53d0={'qceXa':function(_0x3ab71f){return _0x3ab71f();},'DIeum':function(_0x44a531,_0x338c72,_0x57e314){return _0x44a531(_0x338c72,_0x57e314);},'beBmW':_0x22b349(0xaf),'vgRjf':_0x22b349(0xd5),'NCtsK':'api','ekAyJ':function(_0x527846,_0x266b36){return _0x527846===_0x266b36;},'VPIVO':function(_0x1decc1,_0x1618a2){return _0x1decc1+_0x1618a2;}},_0x4ba734=_0x3f53d0[_0x22b349(0xb3)](getBrowserstackCLI),_0xb7f408=_0x3f53d0['DIeum'](nestedKeyValue,_0x4ba734[_0x22b349(0xcf)]()[_0x22b349(0x77)](),[_0x3f53d0[_0x22b349(0xad)],_0x3f53d0['vgRjf'],_0x3f53d0['NCtsK']])||constants['BROWSERSTACK_API_URL'];if(!_0x28885c||_0x3f53d0[_0x22b349(0xca)](_0x28885c,''))return _0xb7f408;const _0x461a6c=_0xb7f408['endsWith']('/')?_0xb7f408:_0x3f53d0[_0x22b349(0xcb)](_0xb7f408,'/');return new URL(_0x28885c,_0x461a6c)['toString']();}static[a60_0x196bfe(0xa0)](_0x3dc954){const _0x5fae6c=a60_0x196bfe,_0x51d546={'VQtaZ':function(_0x306884){return _0x306884();},'UjapG':function(_0x361775,_0x27440c,_0x3fad1c){return _0x361775(_0x27440c,_0x3fad1c);},'YSLvZ':_0x5fae6c(0xaf),'DYIWp':'automate','CkNPr':'api','ZPcHa':function(_0x4e31ff,_0x362c2f){return _0x4e31ff===_0x362c2f;},'Tghap':function(_0x4d95cb,_0xf4bc9c){return _0x4d95cb+_0xf4bc9c;}},_0x4149b2=_0x51d546['VQtaZ'](getBrowserstackCLI),_0x49e3dc=_0x51d546[_0x5fae6c(0xbe)](nestedKeyValue,_0x4149b2['getInstance']()[_0x5fae6c(0x77)](),[_0x51d546['YSLvZ'],_0x51d546['DYIWp'],_0x51d546[_0x5fae6c(0xcd)]])||constants[_0x5fae6c(0x94)];if(!_0x3dc954||_0x51d546[_0x5fae6c(0x7a)](_0x3dc954,''))return _0x49e3dc;const _0x79b692=_0x49e3dc['endsWith']('/')?_0x49e3dc:_0x51d546[_0x5fae6c(0xa9)](_0x49e3dc,'/');return new URL(_0x3dc954,_0x79b692)[_0x5fae6c(0xc4)]()['replace'](/^https?:\/\//,'');}static['getAppAutomateSessionsListAPIUrl'](_0x301eba){const _0x67834=a60_0x196bfe,_0x4e1533={'AbJnA':function(_0xa0bd80){return _0xa0bd80();},'lNdPz':function(_0x5f408d,_0x2baa7a,_0x7fd1dc){return _0x5f408d(_0x2baa7a,_0x7fd1dc);},'UPJqZ':'apis','cStAh':_0x67834(0xd5),'DmXlR':_0x67834(0xc0),'jwWFx':function(_0x575226,_0x2a64a8){return _0x575226===_0x2a64a8;},'nhsFs':function(_0x25041c,_0x229774){return _0x25041c+_0x229774;}},_0x33eced=_0x4e1533[_0x67834(0xa8)](getBrowserstackCLI),_0x23bbc7=_0x4e1533[_0x67834(0xa4)](nestedKeyValue,_0x33eced['getInstance']()[_0x67834(0x77)](),[_0x4e1533[_0x67834(0xc2)],_0x4e1533['cStAh'],_0x4e1533[_0x67834(0xd1)]])||constants[_0x67834(0x93)];if(!_0x301eba||_0x4e1533['jwWFx'](_0x301eba,''))return _0x23bbc7;const _0x214db9=_0x23bbc7[_0x67834(0x82)]('/')?_0x23bbc7:_0x4e1533[_0x67834(0xa5)](_0x23bbc7,'/');return new URL(_0x301eba,_0x214db9)['toString']()[_0x67834(0x99)](/^https?:\/\//,'');}static[a60_0x196bfe(0xbb)](_0x4ef93d){const _0x19b047=a60_0x196bfe,_0xe26e87={'IKeHH':function(_0x3c1f79){return _0x3c1f79();},'mTABw':function(_0xfc4cfd,_0x45be95,_0x363216){return _0xfc4cfd(_0x45be95,_0x363216);},'XNTYL':_0x19b047(0xaf),'manKT':_0x19b047(0xb8),'wnuIh':_0x19b047(0x7d),'BIivI':function(_0x5e9b81,_0x31112e){return _0x5e9b81===_0x31112e;},'RHBVa':function(_0x44dca6,_0x24b617){return _0x44dca6+_0x24b617;}},_0x306749=_0xe26e87[_0x19b047(0x9c)](getBrowserstackCLI),_0x43866f=_0xe26e87[_0x19b047(0x91)](nestedKeyValue,_0x306749[_0x19b047(0xcf)]()[_0x19b047(0x77)](),[_0xe26e87[_0x19b047(0xb0)],_0xe26e87['manKT'],_0xe26e87[_0x19b047(0xb9)]])||constants[_0x19b047(0xb1)];if(!_0x4ef93d||_0xe26e87['BIivI'](_0x4ef93d,''))return _0x43866f;const _0x2fea56=_0x43866f[_0x19b047(0x82)]('/')?_0x43866f:_0xe26e87['RHBVa'](_0x43866f,'/');return new URL(_0x4ef93d,_0x2fea56)[_0x19b047(0xc4)]();}static['getPlaywrightHubUrl'](_0x5d13c3){const _0x13b34f=a60_0x196bfe,_0x420c03={'rmCCV':function(_0x567868){return _0x567868();},'EnUrI':function(_0x3671ee,_0x2a61cd,_0x24e41b){return _0x3671ee(_0x2a61cd,_0x24e41b);},'JvQPL':_0x13b34f(0xaf),'ZEffq':_0x13b34f(0x90),'vpvSo':'cdp','OsPah':'wss:','EMewH':function(_0x3e0c7e,_0x48aa9f){return _0x3e0c7e===_0x48aa9f;},'LWuAp':function(_0x2a4482,_0x3f21c9){return _0x2a4482+_0x3f21c9;},'pXRNq':_0x13b34f(0xab)},_0x21a07f=_0x420c03['rmCCV'](getBrowserstackCLI),_0x589db6=_0x420c03['EnUrI'](nestedKeyValue,_0x21a07f[_0x13b34f(0xcf)]()[_0x13b34f(0x77)](),[_0x420c03[_0x13b34f(0xd2)],_0x420c03[_0x13b34f(0xa3)],_0x420c03['vpvSo']]),_0x13644e=(_0x589db6?_0x589db6['replace'](/^https:/,_0x420c03[_0x13b34f(0x83)]):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x14ac59;if(!_0x5d13c3||_0x420c03[_0x13b34f(0x98)](_0x5d13c3,''))_0x14ac59=_0x13644e;else{const _0x4be946=_0x13644e[_0x13b34f(0x82)]('/')?_0x13644e:_0x420c03[_0x13b34f(0xc8)](_0x13644e,'/');_0x14ac59=new URL(_0x5d13c3,_0x4be946)['toString']();}return!_0x14ac59[_0x13b34f(0x82)](_0x420c03[_0x13b34f(0x7c)])&&(_0x14ac59+=_0x420c03[_0x13b34f(0x7c)]),_0x14ac59;}static[a60_0x196bfe(0xc9)](_0x7f864f){const _0xb5b50a=a60_0x196bfe,_0xe3397e={'gMlxQ':function(_0x46b23f){return _0x46b23f();},'uQoNt':function(_0x872a29,_0x5b6818,_0x359076){return _0x872a29(_0x5b6818,_0x359076);},'WodOF':_0xb5b50a(0xaf),'mjexJ':_0xb5b50a(0x90),'mmSza':_0xb5b50a(0xd4),'AuFwJ':_0xb5b50a(0x9f),'UBXhZ':function(_0xd31bf4,_0x4ca027){return _0xd31bf4===_0x4ca027;},'AkIJY':function(_0x1fb0d5,_0x380a72){return _0x1fb0d5+_0x380a72;},'xBRCS':_0xb5b50a(0x8b)},_0x1eb5fb=_0xe3397e[_0xb5b50a(0xa1)](getBrowserstackCLI),_0x4cdb05=_0xe3397e['uQoNt'](nestedKeyValue,_0x1eb5fb[_0xb5b50a(0xcf)]()[_0xb5b50a(0x77)](),[_0xe3397e[_0xb5b50a(0x9a)],_0xe3397e['mjexJ'],_0xe3397e[_0xb5b50a(0xac)]]),_0x37f499=(_0x4cdb05?_0x4cdb05[_0xb5b50a(0x99)](/^https:/,_0xe3397e[_0xb5b50a(0xce)]):null)||constants[_0xb5b50a(0x89)];let _0x3f442b;if(!_0x7f864f||_0xe3397e[_0xb5b50a(0x7f)](_0x7f864f,''))_0x3f442b=_0x37f499;else{const _0x53dc55=_0x37f499['endsWith']('/')?_0x37f499:_0xe3397e['AkIJY'](_0x37f499,'/');_0x3f442b=new URL(_0x7f864f,_0x53dc55)[_0xb5b50a(0xc4)]();}return!_0x3f442b[_0xb5b50a(0x82)](_0xe3397e['xBRCS'])&&(_0x3f442b+=_0xe3397e[_0xb5b50a(0x8f)]),_0x3f442b;}}module['exports']=APIUtilityMethods;
|
|
1
|
+
const a60_0x52603b=a60_0x5a33;(function(_0x5ac225,_0x3a33c5){const _0x224c4d=a60_0x5a33,_0x56cd6c=_0x5ac225();while(!![]){try{const _0x21e0a6=parseInt(_0x224c4d(0x13f))/0x1*(-parseInt(_0x224c4d(0x13d))/0x2)+parseInt(_0x224c4d(0x137))/0x3*(parseInt(_0x224c4d(0x142))/0x4)+parseInt(_0x224c4d(0x11f))/0x5+-parseInt(_0x224c4d(0x156))/0x6+parseInt(_0x224c4d(0x175))/0x7+-parseInt(_0x224c4d(0x132))/0x8+parseInt(_0x224c4d(0x16c))/0x9;if(_0x21e0a6===_0x3a33c5)break;else _0x56cd6c['push'](_0x56cd6c['shift']());}catch(_0xe3f276){_0x56cd6c['push'](_0x56cd6c['shift']());}}}(a60_0x3ab4,0xd8bfd));const constants=require(a60_0x52603b(0x144)),{nestedKeyValue}=require(a60_0x52603b(0x12a)),getBrowserstackCLI=()=>{const _0x1ff5f5=a60_0x52603b,_0x446c8a={'czhgA':function(_0x502856,_0x3da413){return _0x502856(_0x3da413);},'irIUR':_0x1ff5f5(0x16d)};return _0x446c8a['czhgA'](require,_0x446c8a['irIUR']);};function a60_0x5a33(_0x31ed62,_0x77d764){const _0x3ab450=a60_0x3ab4();return a60_0x5a33=function(_0x5a3377,_0x4d8539){_0x5a3377=_0x5a3377-0x11c;let _0x20f0b3=_0x3ab450[_0x5a3377];return _0x20f0b3;},a60_0x5a33(_0x31ed62,_0x77d764);}function a60_0x3ab4(){const _0x39ce7f=['DjbUx','getInstance','6019960nPPEvO','hCsnk','ikSVO','HVYGy','lGYfT','getAutomateSessionNameAPIUrl','oEmtY','Rjbih','eqqeP','BROWSERSTACK_API_URL','QrqrO','./sharedUtils','EDS_URL','edsInstrumentation','apis','ZNIoS','getBStackAPIUrl','OYeHc','VOMdn','2284456hQpREw','getAppAutomateSessionStatusAPIUrl','joPMr','getEdsInstrumentationAPIUrl','jfaqL','259248SjtLyL','PLAYWRIGHT_HUB_URL','gsjCI','toString','EwefR','MCqEO','2mNVBGC','VIzmq','794991MVWKUq','SZmMz','ZsyCN','8JFUPQW','PUPPETEER_HUB_URL','./constants','taFbD','lojEw','api','OHJqr','ijfjP','Miuvm','QEUVb','HsboB','EtNXm','OBSERVABILITY_UPLOAD_URL','lTVgI','getAutomateSessionsListAPIUrl','PBthy','teyWV','nDTEu','getAppAutomateSessionNameAPIUrl','qYRTG','3270960yOKMNd','zdfsB','wSamu','getPuppeteerHubUrl','MIgbA','endsWith','cdp','CEnjJ','upload','PfoFA','xVYcr','yufDn','QdTYF','/puppeteer?caps=','PJIba','pdUOj','Vqgtr','BdhEy','getPlaywrightHubUrl','XcKyp','lIiyr','nVjvP','3829239DXvpcn','../v2/browserstackCLI','hElOZ','automate','KDBqN','getConfig','WhPuM','TEAvw','mwFaH','4978526UZvZwL','wss:','appAutomate','UZpcv','MqwCv','replace','nGJcJ','lMcji','QEFvc','GzBOd','TQxhf'];a60_0x3ab4=function(){return _0x39ce7f;};return a60_0x3ab4();}class APIUtilityMethods{static[a60_0x52603b(0x12f)](_0x4bc37a){const _0x575884=a60_0x52603b,_0x20c9e4={'PzJVk':function(_0x2900e3){return _0x2900e3();},'TQxhf':function(_0xeac9fa,_0x48ec17,_0x62502c){return _0xeac9fa(_0x48ec17,_0x62502c);},'Miuvm':_0x575884(0x12d),'QEFvc':_0x575884(0x16f),'qfOQX':_0x575884(0x147),'ZsyCN':function(_0x188c0d,_0x418bf5){return _0x188c0d===_0x418bf5;},'taFbD':function(_0x394fe2,_0x1ccc5f){return _0x394fe2+_0x1ccc5f;}},_0x32d83c=_0x20c9e4['PzJVk'](getBrowserstackCLI),_0x55f1d3=_0x20c9e4[_0x575884(0x11c)](nestedKeyValue,_0x32d83c[_0x575884(0x11e)]()[_0x575884(0x171)](),[_0x20c9e4[_0x575884(0x14a)],_0x20c9e4[_0x575884(0x17d)],_0x20c9e4['qfOQX']])||constants['BROWSERSTACK_API_URL'];if(!_0x4bc37a||_0x20c9e4[_0x575884(0x141)](_0x4bc37a,''))return _0x55f1d3;const _0x4bc006=_0x55f1d3[_0x575884(0x15b)]('/')?_0x55f1d3:_0x20c9e4[_0x575884(0x145)](_0x55f1d3,'/');return new URL(_0x4bc37a,_0x4bc006)[_0x575884(0x13a)]();}static[a60_0x52603b(0x135)](_0x4d9a83){const _0x25f082=a60_0x52603b,_0x1a2319={'ZNIoS':function(_0x4bc059){return _0x4bc059();},'lIiyr':function(_0x137bc2,_0x59d515,_0x2ef1cc){return _0x137bc2(_0x59d515,_0x2ef1cc);},'gsjCI':_0x25f082(0x12d),'TEAvw':_0x25f082(0x12c),'oEmtY':'api','VtvxC':function(_0x3538dd,_0x5158cb){return _0x3538dd===_0x5158cb;},'SdGmZ':function(_0x3f9b13,_0x136ed2){return _0x3f9b13+_0x136ed2;}},_0x586458=_0x1a2319[_0x25f082(0x12e)](getBrowserstackCLI),_0x337bd8=_0x1a2319[_0x25f082(0x16a)](nestedKeyValue,_0x586458['getInstance']()[_0x25f082(0x171)](),[_0x1a2319[_0x25f082(0x139)],_0x1a2319[_0x25f082(0x173)],_0x1a2319[_0x25f082(0x125)]])||constants[_0x25f082(0x12b)];if(!_0x4d9a83||_0x1a2319['VtvxC'](_0x4d9a83,''))return _0x337bd8;const _0x42a423=_0x337bd8['endsWith']('/')?_0x337bd8:_0x1a2319['SdGmZ'](_0x337bd8,'/');return new URL(_0x4d9a83,_0x42a423)[_0x25f082(0x13a)]();}static['getAutomateSessionStatusAPIUrl'](_0x14a5b2){const _0x522b0b=a60_0x52603b,_0x2a47aa={'UZpcv':function(_0x3c4a13){return _0x3c4a13();},'EtNXm':function(_0x1b82c2,_0x1e9530,_0x2e1f1a){return _0x1b82c2(_0x1e9530,_0x2e1f1a);},'KjJZo':_0x522b0b(0x12d),'jfaqL':_0x522b0b(0x16f),'Knybu':_0x522b0b(0x147),'QEUVb':function(_0x34b46f,_0x4d3486){return _0x34b46f===_0x4d3486;},'WhPuM':function(_0x4cf6f5,_0x2cc8c4){return _0x4cf6f5+_0x2cc8c4;}},_0xb7df7=_0x2a47aa[_0x522b0b(0x178)](getBrowserstackCLI),_0x42b94e=_0x2a47aa[_0x522b0b(0x14d)](nestedKeyValue,_0xb7df7['getInstance']()['getConfig'](),[_0x2a47aa['KjJZo'],_0x2a47aa[_0x522b0b(0x136)],_0x2a47aa['Knybu']])||constants['BROWSERSTACK_API_URL'];if(!_0x14a5b2||_0x2a47aa[_0x522b0b(0x14b)](_0x14a5b2,''))return _0x42b94e;const _0xc768c=_0x42b94e[_0x522b0b(0x15b)]('/')?_0x42b94e:_0x2a47aa[_0x522b0b(0x172)](_0x42b94e,'/');return new URL(_0x14a5b2,_0xc768c)[_0x522b0b(0x13a)]();}static[a60_0x52603b(0x133)](_0x1250cb){const _0x36977d=a60_0x52603b,_0x95f4={'MqwCv':function(_0x3fe57f){return _0x3fe57f();},'cOmzX':function(_0x44f6fb,_0x515399,_0x59069a){return _0x44f6fb(_0x515399,_0x59069a);},'Kfmhk':_0x36977d(0x12d),'ijfjP':'appAutomate','hCsnk':_0x36977d(0x147),'lTVgI':function(_0x12f53b,_0x2ad31c){return _0x12f53b===_0x2ad31c;},'mwFaH':function(_0xf24c7d,_0x431336){return _0xf24c7d+_0x431336;}},_0x2ff076=_0x95f4[_0x36977d(0x179)](getBrowserstackCLI),_0x1b6fd5=_0x95f4['cOmzX'](nestedKeyValue,_0x2ff076[_0x36977d(0x11e)]()['getConfig'](),[_0x95f4['Kfmhk'],_0x95f4[_0x36977d(0x149)],_0x95f4[_0x36977d(0x120)]])||constants[_0x36977d(0x128)];if(!_0x1250cb||_0x95f4[_0x36977d(0x14f)](_0x1250cb,''))return _0x1b6fd5;const _0x194ee4=_0x1b6fd5[_0x36977d(0x15b)]('/')?_0x1b6fd5:_0x95f4[_0x36977d(0x174)](_0x1b6fd5,'/');return new URL(_0x1250cb,_0x194ee4)[_0x36977d(0x13a)]();}static[a60_0x52603b(0x124)](_0x480dd3){const _0xcfb1cc=a60_0x52603b,_0xa93932={'yjEAr':function(_0x249d03){return _0x249d03();},'QOCTG':function(_0x2500c3,_0x4e571c,_0x428583){return _0x2500c3(_0x4e571c,_0x428583);},'nDTEu':_0xcfb1cc(0x12d),'nVjvP':_0xcfb1cc(0x16f),'xVYcr':_0xcfb1cc(0x147),'GzBOd':function(_0x129155,_0x516961){return _0x129155===_0x516961;},'EwefR':function(_0x1a647e,_0x580fa5){return _0x1a647e+_0x580fa5;}},_0x431eb7=_0xa93932['yjEAr'](getBrowserstackCLI),_0x386c75=_0xa93932['QOCTG'](nestedKeyValue,_0x431eb7[_0xcfb1cc(0x11e)]()[_0xcfb1cc(0x171)](),[_0xa93932[_0xcfb1cc(0x153)],_0xa93932[_0xcfb1cc(0x16b)],_0xa93932[_0xcfb1cc(0x160)]])||constants[_0xcfb1cc(0x128)];if(!_0x480dd3||_0xa93932[_0xcfb1cc(0x17e)](_0x480dd3,''))return _0x386c75;const _0x4414b5=_0x386c75[_0xcfb1cc(0x15b)]('/')?_0x386c75:_0xa93932[_0xcfb1cc(0x13b)](_0x386c75,'/');return new URL(_0x480dd3,_0x4414b5)[_0xcfb1cc(0x13a)]();}static[a60_0x52603b(0x154)](_0x53594f){const _0x51e2c9=a60_0x52603b,_0x38d5af={'nUjNn':function(_0xfde67f){return _0xfde67f();},'teyWV':function(_0x13eb26,_0x11d802,_0x7a37f5){return _0x13eb26(_0x11d802,_0x7a37f5);},'hhvMZ':_0x51e2c9(0x12d),'AKRVF':'appAutomate','bkRPH':_0x51e2c9(0x147),'ikSVO':function(_0x15b625,_0x166033){return _0x15b625===_0x166033;},'pdUOj':function(_0x7b19b,_0x29eb75){return _0x7b19b+_0x29eb75;}},_0x4f3e34=_0x38d5af['nUjNn'](getBrowserstackCLI),_0x5dd3b3=_0x38d5af[_0x51e2c9(0x152)](nestedKeyValue,_0x4f3e34[_0x51e2c9(0x11e)]()['getConfig'](),[_0x38d5af['hhvMZ'],_0x38d5af['AKRVF'],_0x38d5af['bkRPH']])||constants[_0x51e2c9(0x128)];if(!_0x53594f||_0x38d5af[_0x51e2c9(0x121)](_0x53594f,''))return _0x5dd3b3;const _0xad1849=_0x5dd3b3[_0x51e2c9(0x15b)]('/')?_0x5dd3b3:_0x38d5af[_0x51e2c9(0x165)](_0x5dd3b3,'/');return new URL(_0x53594f,_0xad1849)[_0x51e2c9(0x13a)]();}static[a60_0x52603b(0x150)](_0x2ac9d8){const _0x5a8d42=a60_0x52603b,_0x25a947={'Rjbih':function(_0xa23bde){return _0xa23bde();},'SZmMz':function(_0x1480ff,_0xb05128,_0x573412){return _0x1480ff(_0xb05128,_0x573412);},'wSamu':_0x5a8d42(0x12d),'WexrS':_0x5a8d42(0x16f),'PBthy':_0x5a8d42(0x147),'lGYfT':function(_0xe2354d,_0x892216){return _0xe2354d===_0x892216;},'zdfsB':function(_0x2a212f,_0x6b309b){return _0x2a212f+_0x6b309b;}},_0x35fa65=_0x25a947[_0x5a8d42(0x126)](getBrowserstackCLI),_0x53f1e2=_0x25a947[_0x5a8d42(0x140)](nestedKeyValue,_0x35fa65['getInstance']()[_0x5a8d42(0x171)](),[_0x25a947[_0x5a8d42(0x158)],_0x25a947['WexrS'],_0x25a947[_0x5a8d42(0x151)]])||constants[_0x5a8d42(0x128)];if(!_0x2ac9d8||_0x25a947[_0x5a8d42(0x123)](_0x2ac9d8,''))return _0x53f1e2;const _0x40ad9c=_0x53f1e2[_0x5a8d42(0x15b)]('/')?_0x53f1e2:_0x25a947[_0x5a8d42(0x157)](_0x53f1e2,'/');return new URL(_0x2ac9d8,_0x40ad9c)[_0x5a8d42(0x13a)]()[_0x5a8d42(0x17a)](/^https?:\/\//,'');}static['getAppAutomateSessionsListAPIUrl'](_0x9bbf5c){const _0x3e8b9e=a60_0x52603b,_0x23bbc2={'xCnHG':function(_0x1a204f){return _0x1a204f();},'LgFcI':function(_0x40bee5,_0x195873,_0x4d5054){return _0x40bee5(_0x195873,_0x4d5054);},'MCqEO':_0x3e8b9e(0x12d),'qYRTG':_0x3e8b9e(0x177),'HVYGy':_0x3e8b9e(0x147),'nGJcJ':function(_0x2fdb40,_0x1e1da3){return _0x2fdb40===_0x1e1da3;},'OHJqr':function(_0x22be5a,_0x296d13){return _0x22be5a+_0x296d13;}},_0x11160c=_0x23bbc2['xCnHG'](getBrowserstackCLI),_0x459613=_0x23bbc2['LgFcI'](nestedKeyValue,_0x11160c['getInstance']()['getConfig'](),[_0x23bbc2[_0x3e8b9e(0x13c)],_0x23bbc2[_0x3e8b9e(0x155)],_0x23bbc2[_0x3e8b9e(0x122)]])||constants['APP_UPLOAD_URL'];if(!_0x9bbf5c||_0x23bbc2[_0x3e8b9e(0x17b)](_0x9bbf5c,''))return _0x459613;const _0x51d0b8=_0x459613[_0x3e8b9e(0x15b)]('/')?_0x459613:_0x23bbc2[_0x3e8b9e(0x148)](_0x459613,'/');return new URL(_0x9bbf5c,_0x51d0b8)[_0x3e8b9e(0x13a)]()[_0x3e8b9e(0x17a)](/^https?:\/\//,'');}static['getAutoCaptureLogsAPIUrl'](_0x4ed663){const _0x29499f=a60_0x52603b,_0x2e33e0={'VOMdn':function(_0xfc7ea1){return _0xfc7ea1();},'stGyT':function(_0x22cb4d,_0x54186b,_0x132309){return _0x22cb4d(_0x54186b,_0x132309);},'wkfWh':'apis','yufDn':'observability','lojEw':_0x29499f(0x15e),'DjbUx':function(_0x3c7e5c,_0x1e2e3f){return _0x3c7e5c===_0x1e2e3f;},'KDBqN':function(_0x428d25,_0x2e584b){return _0x428d25+_0x2e584b;}},_0x44158b=_0x2e33e0[_0x29499f(0x131)](getBrowserstackCLI),_0x742778=_0x2e33e0['stGyT'](nestedKeyValue,_0x44158b['getInstance']()[_0x29499f(0x171)](),[_0x2e33e0['wkfWh'],_0x2e33e0[_0x29499f(0x161)],_0x2e33e0[_0x29499f(0x146)]])||constants[_0x29499f(0x14e)];if(!_0x4ed663||_0x2e33e0[_0x29499f(0x11d)](_0x4ed663,''))return _0x742778;const _0x2f61ed=_0x742778[_0x29499f(0x15b)]('/')?_0x742778:_0x2e33e0[_0x29499f(0x170)](_0x742778,'/');return new URL(_0x4ed663,_0x2f61ed)[_0x29499f(0x13a)]();}static[a60_0x52603b(0x168)](_0x14f5a4){const _0x43fb4c=a60_0x52603b,_0x223dc0={'OYeHc':function(_0x142d14){return _0x142d14();},'jIszX':function(_0x3af399,_0x3a75a0,_0x143431){return _0x3af399(_0x3a75a0,_0x143431);},'QeIEd':_0x43fb4c(0x12d),'joPMr':_0x43fb4c(0x16f),'XcKyp':_0x43fb4c(0x15c),'PfoFA':'wss:','MIgbA':function(_0x3780ec,_0x2e5bd6){return _0x3780ec===_0x2e5bd6;},'Vqgtr':function(_0x26e188,_0x7d4f8b){return _0x26e188+_0x7d4f8b;},'PJIba':'/playwright?caps='},_0x8ccb80=_0x223dc0[_0x43fb4c(0x130)](getBrowserstackCLI),_0x19ae7b=_0x223dc0['jIszX'](nestedKeyValue,_0x8ccb80[_0x43fb4c(0x11e)]()['getConfig'](),[_0x223dc0['QeIEd'],_0x223dc0[_0x43fb4c(0x134)],_0x223dc0[_0x43fb4c(0x169)]]),_0x487c05=(_0x19ae7b?_0x19ae7b[_0x43fb4c(0x17a)](/^https:/,_0x223dc0[_0x43fb4c(0x15f)]):null)||constants[_0x43fb4c(0x138)];let _0x4a2e38;if(!_0x14f5a4||_0x223dc0[_0x43fb4c(0x15a)](_0x14f5a4,''))_0x4a2e38=_0x487c05;else{const _0x77e1d9=_0x487c05['endsWith']('/')?_0x487c05:_0x223dc0[_0x43fb4c(0x166)](_0x487c05,'/');_0x4a2e38=new URL(_0x14f5a4,_0x77e1d9)[_0x43fb4c(0x13a)]();}return!_0x4a2e38[_0x43fb4c(0x15b)](_0x223dc0[_0x43fb4c(0x164)])&&(_0x4a2e38+=_0x223dc0[_0x43fb4c(0x164)]),_0x4a2e38;}static[a60_0x52603b(0x159)](_0x34da15){const _0xb8149f=a60_0x52603b,_0x5c84f6={'QrqrO':function(_0x23480a){return _0x23480a();},'BdhEy':function(_0x58cacb,_0x2f120f,_0x486905){return _0x58cacb(_0x2f120f,_0x486905);},'eqqeP':'apis','HsboB':_0xb8149f(0x16f),'hElOZ':'cdp','VIzmq':_0xb8149f(0x176),'lMcji':function(_0x22eec1,_0x23657d){return _0x22eec1===_0x23657d;},'QdTYF':function(_0x498309,_0x575d74){return _0x498309+_0x575d74;},'CEnjJ':_0xb8149f(0x163)},_0x17ad5b=_0x5c84f6[_0xb8149f(0x129)](getBrowserstackCLI),_0x548a8b=_0x5c84f6[_0xb8149f(0x167)](nestedKeyValue,_0x17ad5b[_0xb8149f(0x11e)]()[_0xb8149f(0x171)](),[_0x5c84f6[_0xb8149f(0x127)],_0x5c84f6[_0xb8149f(0x14c)],_0x5c84f6[_0xb8149f(0x16e)]]),_0x346b5c=(_0x548a8b?_0x548a8b[_0xb8149f(0x17a)](/^https:/,_0x5c84f6[_0xb8149f(0x13e)]):null)||constants[_0xb8149f(0x143)];let _0xd27ed4;if(!_0x34da15||_0x5c84f6[_0xb8149f(0x17c)](_0x34da15,''))_0xd27ed4=_0x346b5c;else{const _0x541b13=_0x346b5c[_0xb8149f(0x15b)]('/')?_0x346b5c:_0x5c84f6[_0xb8149f(0x162)](_0x346b5c,'/');_0xd27ed4=new URL(_0x34da15,_0x541b13)[_0xb8149f(0x13a)]();}return!_0xd27ed4[_0xb8149f(0x15b)](_0x5c84f6[_0xb8149f(0x15d)])&&(_0xd27ed4+=_0x5c84f6[_0xb8149f(0x15d)]),_0xd27ed4;}}module['exports']=APIUtilityMethods;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a61_0x444e(){const _0x52cfd6=['Conflicting\x20Env\x20Var\x20details\x20not\x20found','getErrorMessage','Error\x20in\x20getting\x20error\x20details\x20for\x20','warn','tIOUp','SfloY','finalErrorMessage','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','errorCodes','.browserstack\x20folder\x20not\x20accessible','getCachedErrorCodes','5971qprEyS','lIKsQ','join','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','EyXXM','errorCodesOccurredWhenCLINotRunning','cachedErrorCodes','weowJ','Session\x20Linking\x20Issue\x20details\x20not\x20found','8474334YPinEL','../v2/grpcClient','winstonLogger','FmLJW','ssl\x20cert\x20issue','getErrorCodes','error','keys','Dmart','base64','Session\x20Linking\x20Issue','IAONk','4492nEXOJI','{ERROR_CODES}','MhgiO','getErrorCodesOccurredInCli','pyiov','pzAFS','ixRsD','replace','yWUMB','hoWqs','XibLD','Process\x20Interruption\x20details\x20not\x20found:','errorCode','1077794AJniEg','UcsDO','errorCodesOccurredInCLI','checkForErrorsOccuredInCLI','368siNXmh','logSituation','../../helpers/logger','from','../v2/browserstackCLI','efDau','nMrAC','reportConnectivityIssue','getErrorDetails','push','1124GlbezG','getAggregatedClientTroubleshootingErrors','sJgsb','10rJHquG','lEHBe','stringify','3279BAlEjY','10937592DiLkCl','[ClientTroubleShootingService]\x20','{ENV_VAR}','getFinalErrorMessage','reportConflictingEnvVarIssue','tUDNb','reportProcessInterruptionSituation','getInstance','length','logError','reportClientTroubleshootingError','isArray','uFDWq','ERnQC','rfkxi','browserstack\x20cloud\x20not\x20reachable','IxGPl','conflicting\x20env\x20var\x20detected','reportSessionLinkingIssue','getAggregatedErrorCodes','object','auJnR','parse','NIPIH','getSuccess','getErrorCode','4895xctxOf','tiTTs','CLIENT_TROUBLESHOOTING_HASH','dCcDR','toString','add','getDocumentationLink','./constants','VzVfw','IiEnk','documentationLink','errorMessage','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','876XDsBWZ','23643bUZubT','isRunning','GTHOP','Connectivity\x20Issue\x20details\x20not\x20found','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.'];a61_0x444e=function(){return _0x52cfd6;};return a61_0x444e();}const a61_0x5be142=a61_0x3d30;(function(_0x3ab654,_0x3ecea1){const _0xf3c64d=a61_0x3d30,_0x2b47fa=_0x3ab654();while(!![]){try{const _0x4c3b1f=-parseInt(_0xf3c64d(0x187))/0x1+parseInt(_0xf3c64d(0x195))/0x2*(parseInt(_0xf3c64d(0x19b))/0x3)+-parseInt(_0xf3c64d(0x17a))/0x4*(-parseInt(_0xf3c64d(0x1b6))/0x5)+-parseInt(_0xf3c64d(0x154))/0x6*(-parseInt(_0xf3c64d(0x165))/0x7)+parseInt(_0xf3c64d(0x18b))/0x8*(-parseInt(_0xf3c64d(0x155))/0x9)+-parseInt(_0xf3c64d(0x198))/0xa*(parseInt(_0xf3c64d(0x16e))/0xb)+parseInt(_0xf3c64d(0x19c))/0xc;if(_0x4c3b1f===_0x3ecea1)break;else _0x2b47fa['push'](_0x2b47fa['shift']());}catch(_0x5da2fc){_0x2b47fa['push'](_0x2b47fa['shift']());}}}(a61_0x444e,0xbe971));function a61_0x3d30(_0x3be9ba,_0xccfb0e){const _0x444e38=a61_0x444e();return a61_0x3d30=function(_0x3d30c1,_0x55f76a){_0x3d30c1=_0x3d30c1-0x153;let _0x501630=_0x444e38[_0x3d30c1];return _0x501630;},a61_0x3d30(_0x3be9ba,_0xccfb0e);}const logger=require(a61_0x5be142(0x18d))[a61_0x5be142(0x170)],BrowserstackCLI=require(a61_0x5be142(0x18f)),GrpcClient=require(a61_0x5be142(0x16f)),constants=require(a61_0x5be142(0x1bd));class ClientTroubleShootingService{static [a61_0x5be142(0x16b)]=null;static [a61_0x5be142(0x16a)]=new Set();static async[a61_0x5be142(0x193)](_0x519b5e){const _0x29413b=a61_0x5be142,_0x4206ea={};_0x4206ea[_0x29413b(0x1ac)]=function(_0x1496a7,_0x1743b4){return _0x1496a7!==_0x1743b4;};const _0xf951e5=_0x4206ea;try{if(BrowserstackCLI[_0x29413b(0x1a3)]()[_0x29413b(0x156)]()){const _0x1fc0ef=await GrpcClient[_0x29413b(0x1a3)]()[_0x29413b(0x1a6)](_0x519b5e);if(_0xf951e5['IxGPl'](_0x1fc0ef,null)&&_0x1fc0ef[_0x29413b(0x1b4)]())return{'errorCode':_0x1fc0ef[_0x29413b(0x1b5)](),'errorMessage':_0x1fc0ef[_0x29413b(0x15b)]()};return{};}return{};}catch(_0x5c8feb){return this['logError'](_0x29413b(0x15c)+_0x519b5e+':',_0x5c8feb),{};}}static async['getAggregatedErrorCodes'](){const _0x3dd4c7=a61_0x5be142,_0x5a7354={};_0x5a7354['uFDWq']=function(_0x1b0cbb,_0x5d50f3){return _0x1b0cbb!==_0x5d50f3;},_0x5a7354['EyXXM']=_0x3dd4c7(0x177),_0x5a7354[_0x3dd4c7(0x17c)]=_0x3dd4c7(0x153);const _0x3a00e0=_0x5a7354;try{if(BrowserstackCLI['getInstance']()[_0x3dd4c7(0x156)]()){const _0x80243c=await GrpcClient['getInstance']()[_0x3dd4c7(0x196)]();if(_0x3a00e0[_0x3dd4c7(0x1a8)](_0x80243c,null)&&_0x80243c[_0x3dd4c7(0x1b4)]()){const _0x1f7477=Buffer[_0x3dd4c7(0x18e)](_0x80243c[_0x3dd4c7(0x173)](),_0x3a00e0[_0x3dd4c7(0x169)])[_0x3dd4c7(0x1ba)](),_0x4081fd=_0x1f7477?JSON[_0x3dd4c7(0x1b2)](_0x1f7477):[],_0x55f820=_0x80243c[_0x3dd4c7(0x1bc)](),_0x5da13e=_0x80243c[_0x3dd4c7(0x19f)](),_0x238278=Buffer[_0x3dd4c7(0x18e)](_0x80243c[_0x3dd4c7(0x17d)](),_0x3a00e0[_0x3dd4c7(0x169)])[_0x3dd4c7(0x1ba)](),_0xdf096c=_0x238278?JSON[_0x3dd4c7(0x1b2)](_0x238278):[],_0x303fd4={};return _0x303fd4['errorCodes']=_0x4081fd,_0x303fd4[_0x3dd4c7(0x1c0)]=_0x55f820,_0x303fd4['finalErrorMessage']=_0x5da13e,_0x303fd4[_0x3dd4c7(0x189)]=_0xdf096c,_0x303fd4;}const _0x322c24={};return _0x322c24[_0x3dd4c7(0x162)]=[],_0x322c24['documentationLink']='',_0x322c24[_0x3dd4c7(0x160)]='',_0x322c24['errorCodesOccurredInCLI']=[],_0x322c24;}const _0x5f33ad={};return _0x5f33ad[_0x3dd4c7(0x162)]=[],_0x5f33ad[_0x3dd4c7(0x1c0)]='',_0x5f33ad[_0x3dd4c7(0x160)]='',_0x5f33ad['errorCodesOccurredInCLI']=[],_0x5f33ad;}catch(_0x1bbd20){this['logError'](_0x3a00e0[_0x3dd4c7(0x17c)],_0x1bbd20);const _0x4cf301={};return _0x4cf301[_0x3dd4c7(0x162)]=[],_0x4cf301[_0x3dd4c7(0x1c0)]='',_0x4cf301[_0x3dd4c7(0x160)]='',_0x4cf301[_0x3dd4c7(0x189)]=[],_0x4cf301;}}static['logSituation'](_0x151abb,_0x528f45){const _0x319a59=a61_0x5be142;logger[_0x319a59(0x15d)](_0x151abb+':\x20'+_0x528f45);}static[a61_0x5be142(0x18a)](_0x248185){const _0x26e4b0=a61_0x5be142,_0x16398a={};_0x16398a[_0x26e4b0(0x199)]=function(_0x4110bd,_0x3f8d02){return _0x4110bd!=_0x3f8d02;},_0x16398a[_0x26e4b0(0x183)]=function(_0x26b3d3,_0x251c38){return _0x26b3d3!=_0x251c38;},_0x16398a['tUDNb']=function(_0x4e3f10,_0x249f2f){return _0x4e3f10>_0x249f2f;},_0x16398a[_0x26e4b0(0x1b9)]=function(_0x10b82b,_0x1adb69){return _0x10b82b!=_0x1adb69;};const _0x2a15e4=_0x16398a,_0x1d8864=[];if(_0x2a15e4[_0x26e4b0(0x199)](_0x248185,null)&&_0x2a15e4[_0x26e4b0(0x183)](_0x248185[_0x26e4b0(0x189)],null)&&_0x2a15e4[_0x26e4b0(0x1a1)](_0x248185['errorCodesOccurredInCLI'][_0x26e4b0(0x1a4)],0x0))for(const _0x53f345 of _0x248185[_0x26e4b0(0x189)]){_0x2a15e4['lEHBe'](_0x53f345['errorCode'],null)&&_0x2a15e4[_0x26e4b0(0x1b9)](_0x53f345[_0x26e4b0(0x1c1)],null)&&(_0x1d8864[_0x26e4b0(0x194)](_0x53f345['errorCode']),this[_0x26e4b0(0x18c)](_0x53f345[_0x26e4b0(0x186)],_0x53f345[_0x26e4b0(0x1c1)]));}return _0x1d8864;}static[a61_0x5be142(0x164)](){const _0xe99070=a61_0x5be142;return this[_0xe99070(0x16b)];}static['logError'](_0xae1794,_0x40cbbb){const _0x2193d4=a61_0x5be142,_0x2a05f9={};_0x2a05f9['Dmart']=function(_0x2c840d,_0x2bd736){return _0x2c840d===_0x2bd736;},_0x2a05f9[_0x2193d4(0x1be)]=_0x2193d4(0x1b0);const _0x421b86=_0x2a05f9;if(_0x421b86[_0x2193d4(0x176)](typeof _0x40cbbb,_0x421b86[_0x2193d4(0x1be)]))try{logger[_0x2193d4(0x174)]('[ClientTroubleShootingService]\x20'+_0xae1794+'\x20'+JSON[_0x2193d4(0x19a)](_0x40cbbb));}catch(_0xcadfbb){logger[_0x2193d4(0x174)](_0x2193d4(0x19d)+_0xae1794+'\x20'+_0x40cbbb);}else logger[_0x2193d4(0x174)](_0x2193d4(0x19d)+_0xae1794+'\x20'+_0x40cbbb);}static async[a61_0x5be142(0x1a2)](_0x5986a7){const _0x594513=a61_0x5be142,_0x534b83={};_0x534b83[_0x594513(0x15f)]='Process\x20Interruption',_0x534b83[_0x594513(0x179)]=function(_0x41c4e9,_0x114d7f){return _0x41c4e9===_0x114d7f;},_0x534b83[_0x594513(0x191)]=_0x594513(0x185),_0x534b83['ERnQC']='{SIGNAL}';const _0x24b093=_0x534b83,_0x1c1933=await this[_0x594513(0x193)](_0x24b093['SfloY']);if(!_0x1c1933||_0x24b093['IAONk'](Object[_0x594513(0x175)](_0x1c1933)[_0x594513(0x1a4)],0x0)){this[_0x594513(0x1a5)](_0x24b093[_0x594513(0x191)],_0x1c1933);return;}this[_0x594513(0x18c)](_0x1c1933[_0x594513(0x186)],_0x1c1933['errorMessage'][_0x594513(0x181)](_0x24b093[_0x594513(0x1a9)],_0x5986a7));}static async[a61_0x5be142(0x1ae)](){const _0xde9cf0=a61_0x5be142,_0x389c4d={};_0x389c4d[_0xde9cf0(0x1bf)]=_0xde9cf0(0x178),_0x389c4d[_0xde9cf0(0x1b1)]=function(_0x2f03af,_0x1e8ac7){return _0x2f03af===_0x1e8ac7;},_0x389c4d[_0xde9cf0(0x16c)]=_0xde9cf0(0x16d);const _0x239469=_0x389c4d,_0x57e984=await this[_0xde9cf0(0x193)](_0x239469[_0xde9cf0(0x1bf)]);if(!_0x57e984||_0x239469['auJnR'](Object['keys'](_0x57e984)[_0xde9cf0(0x1a4)],0x0)){this[_0xde9cf0(0x1a5)](_0x239469['weowJ'],_0x57e984);return;}this[_0xde9cf0(0x18c)](_0x57e984[_0xde9cf0(0x186)],_0x57e984[_0xde9cf0(0x1c1)]);}static async[a61_0x5be142(0x192)](){const _0x4de7b3=a61_0x5be142,_0x24e88a={};_0x24e88a[_0x4de7b3(0x17e)]=_0x4de7b3(0x1ab),_0x24e88a['lIKsQ']=function(_0xaa1fce,_0x3e79ba){return _0xaa1fce===_0x3e79ba;},_0x24e88a['ixRsD']=_0x4de7b3(0x158);const _0x63ad4e=_0x24e88a,_0x34bbac=await this[_0x4de7b3(0x193)](_0x63ad4e['pyiov']);if(!_0x34bbac||_0x63ad4e[_0x4de7b3(0x166)](Object['keys'](_0x34bbac)['length'],0x0)){this[_0x4de7b3(0x1a5)](_0x63ad4e[_0x4de7b3(0x180)],_0x34bbac);return;}this[_0x4de7b3(0x18c)](_0x34bbac[_0x4de7b3(0x186)],_0x34bbac[_0x4de7b3(0x1c1)]);}static async['reportSSLCertIssue'](){const _0x453aae=a61_0x5be142,_0x5d07fb={};_0x5d07fb[_0x453aae(0x197)]=_0x453aae(0x172),_0x5d07fb[_0x453aae(0x1aa)]=function(_0x4329f5,_0x27cb01){return _0x4329f5===_0x27cb01;},_0x5d07fb[_0x453aae(0x188)]=_0x453aae(0x159);const _0x34e635=_0x5d07fb,_0x500295=await this[_0x453aae(0x193)](_0x34e635['sJgsb']);if(!_0x500295||_0x34e635[_0x453aae(0x1aa)](Object[_0x453aae(0x175)](_0x500295)[_0x453aae(0x1a4)],0x0)){this[_0x453aae(0x1a5)](_0x34e635[_0x453aae(0x188)],_0x500295);return;}this[_0x453aae(0x18c)](_0x500295[_0x453aae(0x186)],_0x500295[_0x453aae(0x1c1)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x5f3580=a61_0x5be142,_0x36f8cc={};_0x36f8cc[_0x5f3580(0x171)]=_0x5f3580(0x163),_0x36f8cc[_0x5f3580(0x182)]=function(_0x1089f6,_0x2ca5f4){return _0x1089f6===_0x2ca5f4;},_0x36f8cc['BPfbc']=_0x5f3580(0x168);const _0x25f6a6=_0x36f8cc,_0x53ceb6=constants[_0x5f3580(0x1b8)][_0x25f6a6['FmLJW']];if(!_0x53ceb6||_0x25f6a6['yWUMB'](Object['keys'](_0x53ceb6)[_0x5f3580(0x1a4)],0x0)){this[_0x5f3580(0x1a5)](_0x25f6a6['BPfbc'],_0x53ceb6);return;}this[_0x5f3580(0x16a)][_0x5f3580(0x1bb)](_0x53ceb6[0x0]),this[_0x5f3580(0x18c)](_0x53ceb6[0x0],_0x53ceb6[0x1]);}static async[a61_0x5be142(0x1a0)](_0x4be280){const _0x6d7a7f=a61_0x5be142,_0x18a902={};_0x18a902['tIOUp']=_0x6d7a7f(0x1ad),_0x18a902[_0x6d7a7f(0x190)]=function(_0x2c1c9b,_0x44e5bb){return _0x2c1c9b===_0x44e5bb;},_0x18a902['tiTTs']=_0x6d7a7f(0x15a),_0x18a902[_0x6d7a7f(0x157)]=_0x6d7a7f(0x19e);const _0x5dc413=_0x18a902,_0x2739b2=await this['getErrorDetails'](_0x5dc413[_0x6d7a7f(0x15e)]);if(!_0x2739b2||_0x5dc413['efDau'](Object['keys'](_0x2739b2)[_0x6d7a7f(0x1a4)],0x0)){this['logError'](_0x5dc413[_0x6d7a7f(0x1b7)],_0x2739b2);return;}const _0x2d9b01=_0x2739b2[_0x6d7a7f(0x1c1)][_0x6d7a7f(0x181)](_0x5dc413[_0x6d7a7f(0x157)],_0x4be280);this[_0x6d7a7f(0x18c)](_0x2739b2[_0x6d7a7f(0x186)],_0x2d9b01);}static async['reportFinalDetectionState'](){const _0xebfa64=a61_0x5be142,_0x21de97={};_0x21de97[_0xebfa64(0x17f)]=function(_0x238a14,_0x1a1783){return _0x238a14>_0x1a1783;},_0x21de97[_0xebfa64(0x1b3)]=function(_0x20e28d,_0x3754db){return _0x20e28d>_0x3754db;},_0x21de97[_0xebfa64(0x184)]=_0xebfa64(0x17b),_0x21de97['hKxhi']=_0xebfa64(0x161);const _0x626f00=_0x21de97,_0x490f7f=await this[_0xebfa64(0x1af)](),_0x1231bf=this[_0xebfa64(0x18a)](_0x490f7f),_0x1fb498=Array[_0xebfa64(0x1a7)](_0x490f7f[_0xebfa64(0x162)])?_0x490f7f[_0xebfa64(0x162)]:[],_0x3549ca=_0x626f00[_0xebfa64(0x17f)](this[_0xebfa64(0x16a)]['size'],0x0)?Array[_0xebfa64(0x18e)](this[_0xebfa64(0x16a)]):[],_0x5c7216=new Set([..._0x1fb498,..._0x1231bf,..._0x3549ca]),_0x43683d=Array[_0xebfa64(0x18e)](_0x5c7216);if(_0x626f00[_0xebfa64(0x1b3)](_0x43683d['length'],0x0)){const _0x3b6138=_0x490f7f[_0xebfa64(0x160)][_0xebfa64(0x181)](_0x626f00[_0xebfa64(0x184)],_0x43683d[_0xebfa64(0x167)](',\x20'))[_0xebfa64(0x181)](_0x626f00['hKxhi'],_0x490f7f['documentationLink']);logger[_0xebfa64(0x15d)](_0x3b6138),this['cachedErrorCodes']=_0x43683d;}}}module['exports']=ClientTroubleShootingService;
|
|
1
|
+
const a61_0x24f8ec=a61_0x57e6;function a61_0x57e6(_0x4bb8f1,_0x5f952f){const _0x55c132=a61_0x55c1();return a61_0x57e6=function(_0x57e6d4,_0x17a996){_0x57e6d4=_0x57e6d4-0x11c;let _0x5e3e71=_0x55c132[_0x57e6d4];return _0x5e3e71;},a61_0x57e6(_0x4bb8f1,_0x5f952f);}(function(_0x2ac0b2,_0x10753d){const _0x27f333=a61_0x57e6,_0x32ebd2=_0x2ac0b2();while(!![]){try{const _0x5a5c7f=-parseInt(_0x27f333(0x11f))/0x1+-parseInt(_0x27f333(0x13b))/0x2+parseInt(_0x27f333(0x178))/0x3+parseInt(_0x27f333(0x16a))/0x4*(parseInt(_0x27f333(0x15e))/0x5)+-parseInt(_0x27f333(0x144))/0x6+parseInt(_0x27f333(0x158))/0x7*(parseInt(_0x27f333(0x12c))/0x8)+-parseInt(_0x27f333(0x152))/0x9*(-parseInt(_0x27f333(0x14b))/0xa);if(_0x5a5c7f===_0x10753d)break;else _0x32ebd2['push'](_0x32ebd2['shift']());}catch(_0x3066f4){_0x32ebd2['push'](_0x32ebd2['shift']());}}}(a61_0x55c1,0xd7644));const logger=require('../../helpers/logger')[a61_0x24f8ec(0x123)],BrowserstackCLI=require(a61_0x24f8ec(0x155)),GrpcClient=require('../v2/grpcClient'),constants=require('./constants');class ClientTroubleShootingService{static [a61_0x24f8ec(0x122)]=null;static [a61_0x24f8ec(0x121)]=new Set();static async['getErrorDetails'](_0x1dd43b){const _0x483ea1=a61_0x24f8ec,_0x495c60={};_0x495c60[_0x483ea1(0x159)]=function(_0x586d6f,_0x2d86a0){return _0x586d6f!==_0x2d86a0;};const _0x519b97=_0x495c60;try{if(BrowserstackCLI[_0x483ea1(0x13c)]()['isRunning']()){const _0xad484c=await GrpcClient[_0x483ea1(0x13c)]()[_0x483ea1(0x148)](_0x1dd43b);if(_0x519b97['butFj'](_0xad484c,null)&&_0xad484c[_0x483ea1(0x12a)]())return{'errorCode':_0xad484c[_0x483ea1(0x17d)](),'errorMessage':_0xad484c[_0x483ea1(0x131)]()};return{};}return{};}catch(_0x440fc9){return this[_0x483ea1(0x14c)](_0x483ea1(0x11e)+_0x1dd43b+':',_0x440fc9),{};}}static async[a61_0x24f8ec(0x143)](){const _0x57fe33=a61_0x24f8ec,_0x5b7776={};_0x5b7776[_0x57fe33(0x177)]=function(_0x409e4c,_0x35d19f){return _0x409e4c!==_0x35d19f;},_0x5b7776[_0x57fe33(0x137)]=_0x57fe33(0x173),_0x5b7776[_0x57fe33(0x17f)]=_0x57fe33(0x166);const _0x455da1=_0x5b7776;try{if(BrowserstackCLI[_0x57fe33(0x13c)]()[_0x57fe33(0x168)]()){const _0x290e11=await GrpcClient[_0x57fe33(0x13c)]()['getAggregatedClientTroubleshootingErrors']();if(_0x455da1['WlqpI'](_0x290e11,null)&&_0x290e11[_0x57fe33(0x12a)]()){const _0x52ac0d=Buffer[_0x57fe33(0x16d)](_0x290e11[_0x57fe33(0x133)](),_0x455da1[_0x57fe33(0x137)])[_0x57fe33(0x14a)](),_0x1faedc=_0x52ac0d?JSON[_0x57fe33(0x129)](_0x52ac0d):[],_0x1e3f7e=_0x290e11['getDocumentationLink'](),_0x12be95=_0x290e11[_0x57fe33(0x157)](),_0x5594f9=Buffer[_0x57fe33(0x16d)](_0x290e11['getErrorCodesOccurredInCli'](),_0x455da1[_0x57fe33(0x137)])[_0x57fe33(0x14a)](),_0x1c9c5=_0x5594f9?JSON[_0x57fe33(0x129)](_0x5594f9):[],_0x3d61fb={};return _0x3d61fb[_0x57fe33(0x147)]=_0x1faedc,_0x3d61fb['documentationLink']=_0x1e3f7e,_0x3d61fb[_0x57fe33(0x149)]=_0x12be95,_0x3d61fb['errorCodesOccurredInCLI']=_0x1c9c5,_0x3d61fb;}const _0x2044e3={};return _0x2044e3[_0x57fe33(0x147)]=[],_0x2044e3['documentationLink']='',_0x2044e3['finalErrorMessage']='',_0x2044e3[_0x57fe33(0x12b)]=[],_0x2044e3;}const _0x42a391={};return _0x42a391[_0x57fe33(0x147)]=[],_0x42a391[_0x57fe33(0x17b)]='',_0x42a391[_0x57fe33(0x149)]='',_0x42a391[_0x57fe33(0x12b)]=[],_0x42a391;}catch(_0x370a7e){this[_0x57fe33(0x14c)](_0x455da1[_0x57fe33(0x17f)],_0x370a7e);const _0x4cfdee={};return _0x4cfdee['errorCodes']=[],_0x4cfdee[_0x57fe33(0x17b)]='',_0x4cfdee[_0x57fe33(0x149)]='',_0x4cfdee['errorCodesOccurredInCLI']=[],_0x4cfdee;}}static[a61_0x24f8ec(0x141)](_0x3d85a2,_0x593020){const _0x4075cf=a61_0x24f8ec;logger[_0x4075cf(0x13d)](_0x3d85a2+':\x20'+_0x593020);}static[a61_0x24f8ec(0x15a)](_0xd4a7fe){const _0x3c892c=a61_0x24f8ec,_0x4baec4={};_0x4baec4['TCzDG']=function(_0x557791,_0x369feb){return _0x557791!=_0x369feb;},_0x4baec4[_0x3c892c(0x167)]=function(_0x48d1f9,_0x4409f1){return _0x48d1f9!=_0x4409f1;},_0x4baec4[_0x3c892c(0x138)]=function(_0x599613,_0x3b04d8){return _0x599613>_0x3b04d8;},_0x4baec4[_0x3c892c(0x132)]=function(_0x40aa49,_0x415669){return _0x40aa49!=_0x415669;},_0x4baec4[_0x3c892c(0x165)]=function(_0xa4a67f,_0x2065d3){return _0xa4a67f!=_0x2065d3;};const _0x4930c6=_0x4baec4,_0x19cfbb=[];if(_0x4930c6[_0x3c892c(0x181)](_0xd4a7fe,null)&&_0x4930c6[_0x3c892c(0x167)](_0xd4a7fe[_0x3c892c(0x12b)],null)&&_0x4930c6['paCCp'](_0xd4a7fe['errorCodesOccurredInCLI'][_0x3c892c(0x176)],0x0))for(const _0x4c9068 of _0xd4a7fe[_0x3c892c(0x12b)]){_0x4930c6[_0x3c892c(0x132)](_0x4c9068[_0x3c892c(0x170)],null)&&_0x4930c6[_0x3c892c(0x165)](_0x4c9068[_0x3c892c(0x13f)],null)&&(_0x19cfbb[_0x3c892c(0x12d)](_0x4c9068[_0x3c892c(0x170)]),this[_0x3c892c(0x141)](_0x4c9068[_0x3c892c(0x170)],_0x4c9068[_0x3c892c(0x13f)]));}return _0x19cfbb;}static[a61_0x24f8ec(0x161)](){const _0xa4c370=a61_0x24f8ec;return this[_0xa4c370(0x122)];}static[a61_0x24f8ec(0x14c)](_0x1b9332,_0x7d776){const _0x27c898=a61_0x24f8ec,_0x37af7c={};_0x37af7c[_0x27c898(0x180)]=function(_0x542dd0,_0x571749){return _0x542dd0===_0x571749;},_0x37af7c[_0x27c898(0x130)]=_0x27c898(0x17e);const _0x58566f=_0x37af7c;if(_0x58566f['HRcaX'](typeof _0x7d776,_0x58566f['JuIfF']))try{logger['error'](_0x27c898(0x163)+_0x1b9332+'\x20'+JSON[_0x27c898(0x17c)](_0x7d776));}catch(_0x58a8aa){logger[_0x27c898(0x15c)](_0x27c898(0x163)+_0x1b9332+'\x20'+_0x7d776);}else logger[_0x27c898(0x15c)](_0x27c898(0x163)+_0x1b9332+'\x20'+_0x7d776);}static async[a61_0x24f8ec(0x11d)](_0x585839){const _0x17987a=a61_0x24f8ec,_0x20c2b6={};_0x20c2b6[_0x17987a(0x172)]=_0x17987a(0x14f),_0x20c2b6[_0x17987a(0x12e)]=function(_0x4e7c45,_0x4253c0){return _0x4e7c45===_0x4253c0;},_0x20c2b6[_0x17987a(0x14d)]=_0x17987a(0x128),_0x20c2b6[_0x17987a(0x120)]='{SIGNAL}';const _0xa77487=_0x20c2b6,_0x134063=await this[_0x17987a(0x15b)](_0xa77487[_0x17987a(0x172)]);if(!_0x134063||_0xa77487['nGsUv'](Object[_0x17987a(0x145)](_0x134063)[_0x17987a(0x176)],0x0)){this[_0x17987a(0x14c)](_0xa77487[_0x17987a(0x14d)],_0x134063);return;}this[_0x17987a(0x141)](_0x134063[_0x17987a(0x170)],_0x134063[_0x17987a(0x13f)][_0x17987a(0x140)](_0xa77487[_0x17987a(0x120)],_0x585839));}static async['reportSessionLinkingIssue'](){const _0x3084d0=a61_0x24f8ec,_0x1a4ea6={};_0x1a4ea6[_0x3084d0(0x136)]=_0x3084d0(0x135),_0x1a4ea6[_0x3084d0(0x174)]=function(_0x2d13bd,_0x5df2ca){return _0x2d13bd===_0x5df2ca;},_0x1a4ea6[_0x3084d0(0x17a)]=_0x3084d0(0x13e);const _0x234651=_0x1a4ea6,_0x27e32b=await this[_0x3084d0(0x15b)](_0x234651[_0x3084d0(0x136)]);if(!_0x27e32b||_0x234651[_0x3084d0(0x174)](Object[_0x3084d0(0x145)](_0x27e32b)[_0x3084d0(0x176)],0x0)){this[_0x3084d0(0x14c)](_0x234651[_0x3084d0(0x17a)],_0x27e32b);return;}this[_0x3084d0(0x141)](_0x27e32b[_0x3084d0(0x170)],_0x27e32b['errorMessage']);}static async[a61_0x24f8ec(0x164)](){const _0x4cce12=a61_0x24f8ec,_0x2fda11={};_0x2fda11[_0x4cce12(0x146)]=_0x4cce12(0x160),_0x2fda11[_0x4cce12(0x156)]=function(_0x59746f,_0x2c15e4){return _0x59746f===_0x2c15e4;},_0x2fda11[_0x4cce12(0x127)]='Connectivity\x20Issue\x20details\x20not\x20found';const _0x4d89ea=_0x2fda11,_0x40870c=await this['getErrorDetails'](_0x4d89ea['zJExI']);if(!_0x40870c||_0x4d89ea[_0x4cce12(0x156)](Object[_0x4cce12(0x145)](_0x40870c)[_0x4cce12(0x176)],0x0)){this[_0x4cce12(0x14c)](_0x4d89ea[_0x4cce12(0x127)],_0x40870c);return;}this[_0x4cce12(0x141)](_0x40870c['errorCode'],_0x40870c[_0x4cce12(0x13f)]);}static async[a61_0x24f8ec(0x125)](){const _0x525353=a61_0x24f8ec,_0x5e9a10={};_0x5e9a10[_0x525353(0x134)]=_0x525353(0x16e),_0x5e9a10[_0x525353(0x154)]=function(_0x1cd8d4,_0x180a3c){return _0x1cd8d4===_0x180a3c;},_0x5e9a10[_0x525353(0x162)]=_0x525353(0x169);const _0x2ff69f=_0x5e9a10,_0x403e8d=await this['getErrorDetails'](_0x2ff69f[_0x525353(0x134)]);if(!_0x403e8d||_0x2ff69f[_0x525353(0x154)](Object[_0x525353(0x145)](_0x403e8d)['length'],0x0)){this[_0x525353(0x14c)](_0x2ff69f[_0x525353(0x162)],_0x403e8d);return;}this[_0x525353(0x141)](_0x403e8d[_0x525353(0x170)],_0x403e8d['errorMessage']);}static[a61_0x24f8ec(0x153)](){const _0xa54e87=a61_0x24f8ec,_0x2374f2={};_0x2374f2[_0xa54e87(0x12f)]='.browserstack\x20folder\x20not\x20accessible',_0x2374f2['jIyQH']=function(_0x323b37,_0x5297a0){return _0x323b37===_0x5297a0;},_0x2374f2[_0xa54e87(0x150)]='.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found';const _0xe4f9b7=_0x2374f2,_0x4c6be7=constants[_0xa54e87(0x14e)][_0xe4f9b7[_0xa54e87(0x12f)]];if(!_0x4c6be7||_0xe4f9b7['jIyQH'](Object[_0xa54e87(0x145)](_0x4c6be7)[_0xa54e87(0x176)],0x0)){this['logError'](_0xe4f9b7[_0xa54e87(0x150)],_0x4c6be7);return;}this[_0xa54e87(0x121)][_0xa54e87(0x142)](_0x4c6be7[0x0]),this[_0xa54e87(0x141)](_0x4c6be7[0x0],_0x4c6be7[0x1]);}static async[a61_0x24f8ec(0x124)](_0x2e58d6){const _0x270fe2=a61_0x24f8ec,_0x125366={};_0x125366['dvImQ']=_0x270fe2(0x171),_0x125366['vYGyL']=function(_0xf653db,_0x2b516f){return _0xf653db===_0x2b516f;},_0x125366['GDbog']=_0x270fe2(0x182),_0x125366['zTeia']='{ENV_VAR}';const _0x59d13b=_0x125366,_0x52b630=await this['getErrorDetails'](_0x59d13b[_0x270fe2(0x179)]);if(!_0x52b630||_0x59d13b[_0x270fe2(0x139)](Object[_0x270fe2(0x145)](_0x52b630)['length'],0x0)){this['logError'](_0x59d13b[_0x270fe2(0x15f)],_0x52b630);return;}const _0x2e774a=_0x52b630[_0x270fe2(0x13f)][_0x270fe2(0x140)](_0x59d13b[_0x270fe2(0x16b)],_0x2e58d6);this['logSituation'](_0x52b630[_0x270fe2(0x170)],_0x2e774a);}static async[a61_0x24f8ec(0x13a)](){const _0x411a52=a61_0x24f8ec,_0x107115={};_0x107115['AtGxh']=function(_0x3e6fe6,_0x497a85){return _0x3e6fe6>_0x497a85;},_0x107115[_0x411a52(0x16c)]=function(_0x2bc805,_0x3365fe){return _0x2bc805>_0x3365fe;},_0x107115[_0x411a52(0x11c)]='{ERROR_CODES}',_0x107115['HyuWW']=_0x411a52(0x16f);const _0xef1beb=_0x107115,_0x37ad50=await this[_0x411a52(0x143)](),_0xe3cd2b=this[_0x411a52(0x15a)](_0x37ad50),_0x4e088b=Array['isArray'](_0x37ad50[_0x411a52(0x147)])?_0x37ad50['errorCodes']:[],_0x53364a=_0xef1beb[_0x411a52(0x151)](this[_0x411a52(0x121)]['size'],0x0)?Array[_0x411a52(0x16d)](this[_0x411a52(0x121)]):[],_0x61259a=new Set([..._0x4e088b,..._0xe3cd2b,..._0x53364a]),_0x366a6f=Array[_0x411a52(0x16d)](_0x61259a);if(_0xef1beb[_0x411a52(0x16c)](_0x366a6f[_0x411a52(0x176)],0x0)){const _0xb811d4=_0x37ad50[_0x411a52(0x149)][_0x411a52(0x140)](_0xef1beb[_0x411a52(0x11c)],_0x366a6f[_0x411a52(0x175)](',\x20'))[_0x411a52(0x140)](_0xef1beb[_0x411a52(0x126)],_0x37ad50[_0x411a52(0x17b)]);logger[_0x411a52(0x13d)](_0xb811d4),this['cachedErrorCodes']=_0x366a6f;}}}module[a61_0x24f8ec(0x15d)]=ClientTroubleShootingService;function a61_0x55c1(){const _0x14fecf=['getErrorCode','object','kiSPn','HRcaX','TCzDG','Conflicting\x20Env\x20Var\x20details\x20not\x20found','fWTME','reportProcessInterruptionSituation','Error\x20in\x20getting\x20error\x20details\x20for\x20','354929dDwBQA','DdLWf','errorCodesOccurredWhenCLINotRunning','cachedErrorCodes','winstonLogger','reportConflictingEnvVarIssue','reportSSLCertIssue','HyuWW','GrleB','Process\x20Interruption\x20details\x20not\x20found:','parse','getSuccess','errorCodesOccurredInCLI','1264mVmPML','push','nGsUv','mJZMA','JuIfF','getErrorMessage','RhEZw','getErrorCodes','cbrVS','Session\x20Linking\x20Issue','TQzLP','BeOuS','paCCp','vYGyL','reportFinalDetectionState','2728816TtTkID','getInstance','warn','Session\x20Linking\x20Issue\x20details\x20not\x20found','errorMessage','replace','logSituation','add','getAggregatedErrorCodes','4161072GloHvN','keys','zJExI','errorCodes','reportClientTroubleshootingError','finalErrorMessage','toString','70430KChMFs','logError','tylQl','CLIENT_TROUBLESHOOTING_HASH','Process\x20Interruption','GEGVH','AtGxh','2106jKNBjV','reportDotBrowserStackFolderNotAccessibleIssue','VxfIN','../v2/browserstackCLI','bGaZr','getFinalErrorMessage','12292xBPtQI','butFj','checkForErrorsOccuredInCLI','getErrorDetails','error','exports','40CtdmnJ','GDbog','browserstack\x20cloud\x20not\x20reachable','getCachedErrorCodes','fwyAa','[ClientTroubleShootingService]\x20','reportConnectivityIssue','mLHbS','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','MKMzR','isRunning','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.','353332FRHpue','zTeia','oaVQH','from','ssl\x20cert\x20issue','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','errorCode','conflicting\x20env\x20var\x20detected','tCsbp','base64','jTIVS','join','length','WlqpI','1988757hkyiYE','dvImQ','tKmCR','documentationLink','stringify'];a61_0x55c1=function(){return _0x14fecf;};return a61_0x55c1();}
|