browserstack-node-sdk 1.55.4 → 1.55.6
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/generated/sdk-messages_pb.d.ts +40 -0
- package/generated/sdk-messages_pb.js +322 -2
- 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
|
-
function
|
|
1
|
+
function a53_0x4dea(){const _0x3b2986=['57520HOzPKf','VkNFd','xUgTo','test','frASX','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','format','_connection','POST','ceGpf','message','sessionError','connection','../../helpers/helper','toString','setupBrowserDetails','37CpqHoc','SoQmc','getInstance','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','sessionId','BSTACK_URL','1583715fcqmJy','local_grid','bDJQR','99830SxXQQU','bsSessionId','currentSessionDetails','unknown_grid','783372iItDsS','caps','patchConnection','apply','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','../v2/browserstackCLI','browser_version','browser','KigBg','trackEvent','onmessage','kQWOM','function','fromEntries','chrome','ZfzLB','version','platformVersion','bsParams','IoCAe','63jWoPVu','assign','platformName','XLxYo','debug','result','isRunning','114DhJLik','5376959TURgat','params','seSaC','platform_version','onWeq','util','24868XDuiRu','../../helpers/test-observability/utils','YHpqs','../v2/state/automationFrameworkState.js','ATS_WSS_URL_REGEX','exports','includes','lWUJV','product','../utils/constants','stringify','37730minUkP','string','cloudProvider','parse','wBRuS','platform','mNJqV','getDetails','_bstackPatched','automate','Error\x20in\x20patchConnection:\x20','pLwBs','browserName','winstonLogger','path','capabilities','bStackParams'];a53_0x4dea=function(){return _0x3b2986;};return a53_0x4dea();}const a53_0x1de1b1=a53_0x1878;(function(_0x22f165,_0x3d1860){const _0x261b63=a53_0x1878,_0x305817=_0x22f165();while(!![]){try{const _0x155134=parseInt(_0x261b63(0x21e))/0x1*(parseInt(_0x261b63(0x1fd))/0x2)+parseInt(_0x261b63(0x246))/0x3*(parseInt(_0x261b63(0x1f2))/0x4)+parseInt(_0x261b63(0x224))/0x5+-parseInt(_0x261b63(0x22b))/0x6+-parseInt(_0x261b63(0x247))/0x7+-parseInt(_0x261b63(0x20e))/0x8+-parseInt(_0x261b63(0x23f))/0x9*(-parseInt(_0x261b63(0x227))/0xa);if(_0x155134===_0x3d1860)break;else _0x305817['push'](_0x305817['shift']());}catch(_0x1e936b){_0x305817['push'](_0x305817['shift']());}}}(a53_0x4dea,0x6550a));function a53_0x1878(_0x51f1f7,_0x5d0838){const _0x4dea4d=a53_0x4dea();return a53_0x1878=function(_0x18781e,_0x2e4eac){_0x18781e=_0x18781e-0x1f0;let _0x15a299=_0x4dea4d[_0x18781e];return _0x15a299;},a53_0x1878(_0x51f1f7,_0x5d0838);}const path=require(a53_0x1de1b1(0x20b)),url=require('url'),util=require(a53_0x1de1b1(0x1f1)),{nestedKeyValue,isFalse}=require(a53_0x1de1b1(0x21b)),{debug,getPlatformDetails}=require(a53_0x1de1b1(0x1f3)),logger=require('../../helpers/logger')[a53_0x1de1b1(0x20a)],constants=require(a53_0x1de1b1(0x1fb)),BrowserstackCLI=require(a53_0x1de1b1(0x230)),AutomationFrameworkState=require(a53_0x1de1b1(0x1f5)),HookState=require('../v2/state/hookState.js'),getBrowserFromWSEndpoint=_0xe4ba84=>{const _0x9ba50=a53_0x1de1b1,_0x40d5d2={'bDJQR':_0x9ba50(0x239),'KigBg':function(_0x341347,_0x283fd1){return _0x341347(_0x283fd1);}};try{const _0x59ee08=url[_0x9ba50(0x200)](_0xe4ba84),_0x2ef7c2=new URLSearchParams(_0x59ee08['query']),_0x22dbad=Object[_0x9ba50(0x238)](_0x2ef7c2['entries']()),_0x2414c3=JSON[_0x9ba50(0x200)](_0x22dbad[_0x9ba50(0x22c)]);if(_0x2414c3&&(_0x2414c3[_0x9ba50(0x232)]||_0x2414c3[_0x9ba50(0x209)]))return _0x2414c3[_0x9ba50(0x232)]||_0x2414c3[_0x9ba50(0x209)];return _0x40d5d2[_0x9ba50(0x226)];}catch(_0x829f04){_0x40d5d2[_0x9ba50(0x233)](debug,_0x9ba50(0x221)+_0x829f04[_0x9ba50(0x21c)]());}},getCloudProviderFromWsEndpoint=_0x36cddf=>{const _0x5ac7b5=a53_0x1de1b1,_0x190fc5={};_0x190fc5[_0x5ac7b5(0x208)]='browserstack',_0x190fc5[_0x5ac7b5(0x249)]=_0x5ac7b5(0x22a);const _0x1e097a=_0x190fc5;if(_0x36cddf[_0x5ac7b5(0x1f8)](constants[_0x5ac7b5(0x223)])||_0x36cddf[_0x5ac7b5(0x1f8)](constants['BSTACK_ATS_URL']))return _0x1e097a[_0x5ac7b5(0x208)];return _0x1e097a[_0x5ac7b5(0x249)];},a53_0x364b89={};a53_0x364b89[a53_0x1de1b1(0x1ff)]=undefined,a53_0x364b89['bsSessionId']=undefined,a53_0x364b89[a53_0x1de1b1(0x232)]=undefined,a53_0x364b89[a53_0x1de1b1(0x231)]=undefined,a53_0x364b89[a53_0x1de1b1(0x202)]=undefined,a53_0x364b89[a53_0x1de1b1(0x24a)]=undefined,a53_0x364b89[a53_0x1de1b1(0x1fa)]=undefined,a53_0x364b89['capabilities']={};class PuppeteerSessionDetails{static [a53_0x1de1b1(0x229)]=a53_0x364b89;constructor(){const _0x2f498f=a53_0x1de1b1,_0x44b383={};_0x44b383['YHpqs']=_0x2f498f(0x22f);const _0x435ef1=_0x44b383;throw new Error(_0x435ef1[_0x2f498f(0x1f4)]);}static [a53_0x1de1b1(0x219)]=null;static async[a53_0x1de1b1(0x21d)](_0x323fc0,_0x5795d4){const _0x3914cc=a53_0x1de1b1,_0x850f25={'Kwlgm':_0x3914cc(0x239),'ZfzLB':function(_0x16a677,_0x33b988){return _0x16a677===_0x33b988;},'kQWOM':_0x3914cc(0x237),'IoCAe':_0x3914cc(0x225),'fKkUX':function(_0x2dc4d4,_0x3d034b){return _0x2dc4d4(_0x3d034b);},'xUgTo':'browserstack','ceGpf':'turboscale','wBRuS':_0x3914cc(0x206),'VkNFd':function(_0x299a9b,_0x27e7a2){return _0x299a9b(_0x27e7a2);},'djyrI':function(_0x1e17d5){return _0x1e17d5();},'onWeq':function(_0x3e19e2,_0x348907){return _0x3e19e2(_0x348907);}};try{let _0xcada01=_0x850f25['Kwlgm'],_0x26538=null;_0x323fc0&&_0x850f25[_0x3914cc(0x23a)](typeof _0x323fc0[_0x3914cc(0x23b)],_0x850f25[_0x3914cc(0x236)])&&(_0x26538=await _0x323fc0[_0x3914cc(0x23b)]());let _0x39941f=null,_0x2c0836=null,_0x2ca0f7=null,_0xf317b0=_0x850f25[_0x3914cc(0x23e)];if(_0x5795d4){_0xf317b0=_0x850f25['fKkUX'](getCloudProviderFromWsEndpoint,_0x5795d4);if(_0x850f25[_0x3914cc(0x23a)](_0xf317b0,_0x850f25[_0x3914cc(0x210)]))_0x2ca0f7=constants[_0x3914cc(0x1f6)]?constants[_0x3914cc(0x1f6)][_0x3914cc(0x211)](_0x5795d4)?_0x850f25[_0x3914cc(0x217)]:_0x850f25[_0x3914cc(0x201)]:_0x850f25[_0x3914cc(0x201)],_0xcada01=_0x850f25[_0x3914cc(0x20f)](getBrowserFromWSEndpoint,_0x5795d4)||_0xcada01,_0x39941f=this[_0x3914cc(0x229)][_0x3914cc(0x202)],_0x2c0836=this[_0x3914cc(0x229)]['platform_version'];else{const _0x4255ef=await _0x850f25['djyrI'](getPlatformDetails);_0x39941f=_0x4255ef[_0x3914cc(0x241)],_0x2c0836=_0x4255ef['platformVersion'];}}else{const _0x112bf1=await _0x850f25['djyrI'](getPlatformDetails);_0x39941f=_0x112bf1['platformName'],_0x2c0836=_0x112bf1[_0x3914cc(0x23c)];}const _0x2769e0={};_0x2769e0[_0x3914cc(0x232)]=_0xcada01,_0x2769e0[_0x3914cc(0x231)]=_0x26538,_0x2769e0[_0x3914cc(0x20c)]={},_0x2769e0['platform']=_0x39941f,_0x2769e0['platform_version']=_0x2c0836,_0x2769e0[_0x3914cc(0x1fa)]=_0x2ca0f7;const _0x490a3d=_0x2769e0,_0x4adb68={};_0x4adb68['cloudProvider']=_0xf317b0,this['currentSessionDetails']=Object[_0x3914cc(0x240)]({},this[_0x3914cc(0x229)],_0x4adb68,_0x490a3d);}catch(_0x1cfad5){_0x850f25[_0x3914cc(0x1f0)](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util['format'](_0x1cfad5)),this[_0x3914cc(0x219)]=_0x1cfad5[_0x3914cc(0x21c)]();}}static[a53_0x1de1b1(0x22d)](_0x36088b){const _0x4879e0=a53_0x1de1b1,_0xeab836={'lWUJV':function(_0x283d5d,_0x2ea50f){return _0x283d5d===_0x2ea50f;},'SoQmc':_0x4879e0(0x1fe),'frASX':function(_0x4cbadf,_0x5640a4){return _0x4cbadf(_0x5640a4);},'mNJqV':function(_0x4b9d39,_0xe9eb10){return _0x4b9d39(_0xe9eb10);},'brZoy':function(_0x3aac4c,_0x583ea1){return _0x3aac4c(_0x583ea1);},'XLxYo':'[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture'},_0x18a1f7=this;try{const _0x3e2366=_0x36088b[_0x4879e0(0x215)]||_0x36088b[_0x4879e0(0x21a)];if(!_0x3e2366||_0x3e2366[_0x4879e0(0x205)])return;const _0x380d78=_0x3e2366[_0x4879e0(0x235)];_0x3e2366[_0x4879e0(0x235)]=function(_0x174719){const _0x309e29=_0x4879e0;try{const _0x5f0b53=_0xeab836[_0x309e29(0x1f9)](typeof _0x174719,_0xeab836[_0x309e29(0x21f)])?JSON['parse'](_0x174719):_0x174719,_0x37ed77=_0x5f0b53?.['bStackParams']||_0x5f0b53?.[_0x309e29(0x23d)]||_0x5f0b53?.[_0x309e29(0x248)]?.[_0x309e29(0x23d)]||_0x5f0b53?.[_0x309e29(0x248)]?.[_0x309e29(0x20d)]||_0x5f0b53?.['result']?.[_0x309e29(0x23d)]||_0x5f0b53?.[_0x309e29(0x244)]?.[_0x309e29(0x20d)];if(_0x37ed77){if(BrowserstackCLI['getInstance']()[_0x309e29(0x245)]()){const _0x430902={};_0x430902[_0x309e29(0x218)]=_0x5f0b53,BrowserstackCLI[_0x309e29(0x220)]()['getAutomationFramework']()[_0x309e29(0x234)](AutomationFrameworkState['PLAYWRIGHT_DISPATCH'],HookState[_0x309e29(0x216)],_0x430902);}else{const _0x5ec644=_0x37ed77[_0x309e29(0x222)],_0x5c67e8=_0x37ed77['platformDetails'];_0x5c67e8&&(_0xeab836[_0x309e29(0x212)](debug,_0x309e29(0x213)+JSON[_0x309e29(0x1fc)](_0x5c67e8)),_0x18a1f7[_0x309e29(0x229)][_0x309e29(0x202)]=_0x5c67e8['platformName'],_0x18a1f7['currentSessionDetails'][_0x309e29(0x24a)]=_0x5c67e8[_0x309e29(0x23c)]),_0x5ec644&&(_0xeab836[_0x309e29(0x203)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x5ec644),_0x18a1f7[_0x309e29(0x229)][_0x309e29(0x228)]=_0x5ec644);}_0xeab836[_0x309e29(0x1f9)](typeof _0x174719,_0xeab836['SoQmc'])&&(delete _0x5f0b53['bStackParams'],delete _0x5f0b53[_0x309e29(0x23d)],_0x5f0b53[_0x309e29(0x248)]&&(delete _0x5f0b53[_0x309e29(0x248)][_0x309e29(0x23d)],delete _0x5f0b53['params']['bStackParams']),_0x5f0b53['result']&&(delete _0x5f0b53[_0x309e29(0x244)][_0x309e29(0x23d)],delete _0x5f0b53[_0x309e29(0x244)][_0x309e29(0x20d)]));}}catch(_0x2780d4){_0xeab836['brZoy'](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x2780d4[_0x309e29(0x218)]);}return _0x380d78?.[_0x309e29(0x22e)](this,arguments);},_0x3e2366[_0x4879e0(0x205)]=!![],logger[_0x4879e0(0x243)](_0xeab836[_0x4879e0(0x242)]);}catch(_0x5e0d5a){_0xeab836[_0x4879e0(0x212)](debug,_0x4879e0(0x207)+util[_0x4879e0(0x214)](_0x5e0d5a)),_0x18a1f7[_0x4879e0(0x219)]=_0x5e0d5a['toString']();}}static[a53_0x1de1b1(0x204)](){return this['currentSessionDetails'];}}module[a53_0x1de1b1(0x1f7)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x37fdd2=a54_0x3d1b;function a54_0x2566(){const _0x1a5e0d=['__skipSessionStatus','puppeteer-core','341672bAAEBd','../utils/puppeteer-patcher','getPackageVersion','o11ySyncDone','setFrameworkDetail','skipSessionStatus','pwPage','currentTest','../../helpers/test-observability/utils','puppeteer','initializePuppeteerPatching','../../helpers/setKeepAlive','winstonLogger','__skipSessionName','46580AUxrSK','2qBFSey','7iBBqOy','1943037cMUXFK','198IwrZSZ','jestConfig','../../helpers/testhub/utils','bootstrap','debug','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','skipSessionName','format','273116BxkKQA','593797hpEzkg','testInfo','6HSnLxE','true','8326105ewkjEc','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','isCliEnabled','__workerDetails','env','../../helpers/logger','BROWSERSTACK_PUPPETEER','89724WDqdPB','../../helpers/helper','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','1467hEbZEU','isPageFixture'];a54_0x2566=function(){return _0x1a5e0d;};return a54_0x2566();}(function(_0x389984,_0x2162d7){const _0x5e9f9d=a54_0x3d1b,_0x486d38=_0x389984();while(!![]){try{const _0x33267c=parseInt(_0x5e9f9d(0x158))/0x1*(-parseInt(_0x5e9f9d(0x17b))/0x2)+parseInt(_0x5e9f9d(0x17d))/0x3+parseInt(_0x5e9f9d(0x157))/0x4+parseInt(_0x5e9f9d(0x15c))/0x5*(parseInt(_0x5e9f9d(0x15a))/0x6)+-parseInt(_0x5e9f9d(0x17c))/0x7*(parseInt(_0x5e9f9d(0x16c))/0x8)+-parseInt(_0x5e9f9d(0x168))/0x9*(parseInt(_0x5e9f9d(0x17a))/0xa)+parseInt(_0x5e9f9d(0x17e))/0xb*(-parseInt(_0x5e9f9d(0x165))/0xc);if(_0x33267c===_0x2162d7)break;else _0x486d38['push'](_0x486d38['shift']());}catch(_0x23192f){_0x486d38['push'](_0x486d38['shift']());}}}(a54_0x2566,0xcfb91));function a54_0x3d1b(_0x4a702a,_0x4bcd50){const _0x2566cc=a54_0x2566();return a54_0x3d1b=function(_0x3d1b90,_0x1d1549){_0x3d1b90=_0x3d1b90-0x154;let _0x44b15c=_0x2566cc[_0x3d1b90];return _0x44b15c;},a54_0x3d1b(_0x4a702a,_0x4bcd50);}const {isTrue,isBrowserstackInfra}=require(a54_0x37fdd2(0x166)),setKeepAlive=require(a54_0x37fdd2(0x177)),util=require('util'),logger=require(a54_0x37fdd2(0x163))[a54_0x37fdd2(0x178)],{shouldProcessEventForTesthub}=require(a54_0x37fdd2(0x180)),{addRequestSpy}=require(a54_0x37fdd2(0x174)),a54_0x1db4d3={};a54_0x1db4d3['workerInfo']=undefined,a54_0x1db4d3[a54_0x37fdd2(0x173)]={},a54_0x1db4d3[a54_0x37fdd2(0x16f)]=![],a54_0x1db4d3[a54_0x37fdd2(0x172)]=null,a54_0x1db4d3[a54_0x37fdd2(0x169)]=![],a54_0x1db4d3[a54_0x37fdd2(0x173)]['id']=undefined,a54_0x1db4d3[a54_0x37fdd2(0x173)][a54_0x37fdd2(0x159)]=undefined;const workerDetails=a54_0x1db4d3;global[a54_0x37fdd2(0x161)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global['jestConfig'])try{isBrowserstackInfra()?(global[a54_0x37fdd2(0x179)]=isTrue(global[a54_0x37fdd2(0x17f)]?.[a54_0x37fdd2(0x155)]),global[a54_0x37fdd2(0x16a)]=isTrue(global[a54_0x37fdd2(0x17f)]?.[a54_0x37fdd2(0x171)])):(global[a54_0x37fdd2(0x179)]=!![],global[a54_0x37fdd2(0x16a)]=!![]);const helper=require(a54_0x37fdd2(0x166)),puppeteerVersion=helper[a54_0x37fdd2(0x16e)](a54_0x37fdd2(0x175))||helper[a54_0x37fdd2(0x16e)](a54_0x37fdd2(0x16b));if(puppeteerVersion)try{logger[a54_0x37fdd2(0x182)](a54_0x37fdd2(0x15f)),puppeteerPatcher=require(a54_0x37fdd2(0x16d)),puppeteerPatcher[a54_0x37fdd2(0x176)](global[a54_0x37fdd2(0x17f)]),logger['debug'](a54_0x37fdd2(0x15e));}catch(a54_0x30d1fb){logger[a54_0x37fdd2(0x182)]('[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20'+util['format'](a54_0x30d1fb));}if(puppeteerPatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require('../v2/cliUtils'),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI['getInstance']()[a54_0x37fdd2(0x160)]()&&(logger[a54_0x37fdd2(0x182)](a54_0x37fdd2(0x15d)),process[a54_0x37fdd2(0x162)][a54_0x37fdd2(0x164)]=a54_0x37fdd2(0x15b),CLIUtils[a54_0x37fdd2(0x170)](FRAMEWORKS['JEST'],FRAMEWORKS['PUPPETEER']),BrowserstackCLI['getInstance']()[a54_0x37fdd2(0x181)]()['catch'](_0x2f7e4a=>{const _0x221d70=a54_0x37fdd2;logger[_0x221d70(0x182)]('[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20'+util[_0x221d70(0x156)](_0x2f7e4a));}));}catch(a54_0x58dc01){logger[a54_0x37fdd2(0x182)](a54_0x37fdd2(0x154)+util[a54_0x37fdd2(0x156)](a54_0x58dc01));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0xf4f3f2){logger[a54_0x37fdd2(0x182)]('[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20'+util['format'](a54_0xf4f3f2));}logger['debug'](a54_0x37fdd2(0x167));
|
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';function a55_0x595c(){const _0x3822e0=['codeceptjs','command','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','VERSION','stack','setBrowserStackAutomationDisable','INTEGRATIONS','describe','disableAutoCaptureLogs','qUVNE','alias','push','--mochaRequire','JEST','EBqTi','SDK_CLEANUP','Parsing\x20command\x20line\x20arguments','vGRNM','28178oqLalY','--no-opts','xfkCw','child_process','OvEHL','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','ojEsQ','load\x20[subcommand]','pw:*','version','pw:channel\x20auto-capture\x20seed\x20failed:\x20','tvdZS','IhvMU','config','iKQBZ','eVmPG','NEWMAN','./vanilla-js/command','cucumber-js','framework','PbLsY','4345800uLEmQC','--require','PLAYWRIGHT','38988gemyMh','./codeceptjs/command','lRTSS','existsSync','TDsdB','env','usage','JzNmY','5563685ambPLZ','includes','VtZXx','trim','../helpers/BrowserStackSetup','-pw:channel','getPwChannelLogPath','./mocha/command','hWfbH','../helpers/helper','option','DEBUG','OimXq','DliND','integrations','./newman/command','playwright','ats','mocha','boolean','25157mWKxzs','PDNfQ','URAzS','map','isUndefined','find','../../ats/src/index','-pw:*','sendLogs','filter','.browserstack','debug','help','strict','spawn','PUdja','./playwright/command','setTestObservabilityDisable','unlinkSync','showHelpOnFail','CVcpm','./nightwatch/command','split','pw:channel','CPyRE','parserConfiguration','.local-not-set.json','run','rAycm','HELP','HST','jypTQ','some','pxLUu','vanilla','join','demandCommand','format','usage:\x20$0\x20<command>\x20[args]','../helpers/performance/constants','CODECEPTJS','exitProcess','CBZbi','12672472cKxkRF','./load/index','./newman/helper','vvgzd','slice','89Uijpmx','DEBUG_FILE','eFkIp','wrap','message','--package','UaxJq','end','exitCode','EVENTS','GaTkl','assign','rmUMx','./jest/command','jest','PYTAt','9zBBfwC','Running\x20SDK\x20with\x20args\x20','mocha/lib/cli/commands.js','../helpers/test-observability/constants','CjSpV','CUCUMBER','newman','plWyv','77IFUmMc','handler','4PvziGF','244506apdbom','findAndReplace','INFO','winstonLogger','IXXAR','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','fireFunnelTestEvent','MOCHA','start','dot-notation','../helpers/utilities','./utils/constants','mocha/lib/cli/cli.js','./cucumber-js/command','Runs\x20the\x20binary\x20with\x20load\x20command','argv','getConfigPath','KLzSr','MCETL','hYMbN','riwWw','SDK_SETUP','RmfiG','nightwatch','error','FgIer','node','14872480jURmFL','ALzYy'];a55_0x595c=function(){return _0x3822e0;};return a55_0x595c();}const a55_0x1f34a4=a55_0x1292;(function(_0x15c10b,_0x44dcac){const _0xbe5b5d=a55_0x1292,_0x3dbcb6=_0x15c10b();while(!![]){try{const _0x40cd4e=-parseInt(_0xbe5b5d(0x1a6))/0x1*(parseInt(_0xbe5b5d(0x1f0))/0x2)+-parseInt(_0xbe5b5d(0x205))/0x3+-parseInt(_0xbe5b5d(0x1c0))/0x4*(parseInt(_0xbe5b5d(0x210))/0x5)+-parseInt(_0xbe5b5d(0x1c1))/0x6*(-parseInt(_0xbe5b5d(0x1be))/0x7)+-parseInt(_0xbe5b5d(0x1a1))/0x8*(parseInt(_0xbe5b5d(0x1b6))/0x9)+-parseInt(_0xbe5b5d(0x1dc))/0xa+-parseInt(_0xbe5b5d(0x224))/0xb*(-parseInt(_0xbe5b5d(0x208))/0xc);if(_0x40cd4e===_0x44dcac)break;else _0x3dbcb6['push'](_0x3dbcb6['shift']());}catch(_0x113798){_0x3dbcb6['push'](_0x3dbcb6['shift']());}}}(a55_0x595c,0xf239f));const fs=require('fs'),path=require('path'),util=require('util'),spawn=require(a55_0x1f34a4(0x1f3))[a55_0x1f34a4(0x184)],{requireModule}=require(a55_0x1f34a4(0x219)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0x1f34a4(0x19d))[a55_0x1f34a4(0x1af)],helper=require(a55_0x1f34a4(0x219)),utilities=require(a55_0x1f34a4(0x1cb)),{default:BrowserStackSetup}=require(a55_0x1f34a4(0x214)),{FRAMEWORKS}=require(a55_0x1f34a4(0x1b9)),runIntegrations=require('./integrations/command'),yargs=require('yargs'),Constants=require(a55_0x1f34a4(0x1cc)),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require(a55_0x1f34a4(0x1a3)),logger=require('../helpers/logger')[a55_0x1f34a4(0x1c4)],origArgs=Object[a55_0x1f34a4(0x1b1)]([],process[a55_0x1f34a4(0x1d0)]),captureError=async(_0x548da7,_0x3df318,_0x281b10,_0xff5dd2=null,_0x4779ff=![])=>{const _0x14e595=a55_0x1f34a4,_0x145b6f={'CVcpm':function(_0x5cd01e,_0x16da5e,_0x108adb,_0x79426a){return _0x5cd01e(_0x16da5e,_0x108adb,_0x79426a);},'KLzSr':'SDKTestSuccessful'};try{logger['info'](_0x14e595(0x1b7)+origArgs[_0x14e595(0x199)]('\x20')),await _0x145b6f[_0x14e595(0x18a)](_0x548da7,_0x3df318,_0xff5dd2,_0x281b10);}catch(_0x38d795){process[_0x14e595(0x1ae)]=0x1,logger[_0x14e595(0x1d9)](util['format'](_0x38d795));const _0x2b504b={'globalException':util[_0x14e595(0x19b)]('%j',_0x38d795)};PerformanceTester[_0x14e595(0x1ad)](PerformanceEvents[_0x14e595(0x1d6)],![],util[_0x14e595(0x19b)](_0x38d795));if(helper[_0x14e595(0x228)](global['config'])&&helper[_0x14e595(0x228)](global[_0x14e595(0x203)]))return;try{utilities[_0x14e595(0x1c7)](_0x145b6f[_0x14e595(0x1d2)],_0x2b504b,global['config'],global[_0x14e595(0x203)]);}catch(_0x272735){logger[_0x14e595(0x181)](_0x14e595(0x1f5)+_0x272735[_0x14e595(0x1e2)]);}try{await helper[_0x14e595(0x17e)](global[_0x14e595(0x1fd)]);}catch(_0x34e485){logger[_0x14e595(0x181)]('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x34e485[_0x14e595(0x1e2)]);}PerformanceTester['end'](PerformanceEvents[_0x14e595(0x1d6)],![],util[_0x14e595(0x19b)](_0x38d795));}finally{!_0x4779ff&&await BrowserstackCLI['getInstance']()['stop'](),PerformanceTester['start'](PerformanceEvents[_0x14e595(0x1ed)]);}};try{const browserstackFolderPath=path[a55_0x1f34a4(0x199)](helper['homedir'](),a55_0x1f34a4(0x180));if(fs[a55_0x1f34a4(0x20b)](browserstackFolderPath)){const filePath=path[a55_0x1f34a4(0x199)](browserstackFolderPath,a55_0x1f34a4(0x190));fs[a55_0x1f34a4(0x20b)](filePath)&&fs[a55_0x1f34a4(0x188)](filePath);}}catch(a55_0x4f93bd){logger[a55_0x1f34a4(0x181)](a55_0x1f34a4(0x1c6)+a55_0x4f93bd[a55_0x1f34a4(0x1aa)]);}process[a55_0x1f34a4(0x1d0)][a55_0x1f34a4(0x211)](a55_0x1f34a4(0x222))&&(!process['argv'][a55_0x1f34a4(0x211)]('--opts')&&process[a55_0x1f34a4(0x1d0)]['push'](a55_0x1f34a4(0x1f1)),!process[a55_0x1f34a4(0x1d0)][a55_0x1f34a4(0x229)](_0x52d31e=>_0x52d31e['includes']('--config'))&&process[a55_0x1f34a4(0x1d0)][a55_0x1f34a4(0x1e9)]('--no-config'),!process['argv'][a55_0x1f34a4(0x211)](a55_0x1f34a4(0x1ab))&&process[a55_0x1f34a4(0x1d0)]['push']('--no-package'),helper[a55_0x1f34a4(0x1c2)](process[a55_0x1f34a4(0x1d0)],a55_0x1f34a4(0x206),a55_0x1f34a4(0x1ea)));PerformanceTester[a55_0x1f34a4(0x1c9)](PerformanceEvents[a55_0x1f34a4(0x1d6)]);function a55_0x1292(_0x16a0b7,_0x324146){const _0x595ccb=a55_0x595c();return a55_0x1292=function(_0x12924c,_0x52a8b9){_0x12924c=_0x12924c-0x17d;let _0x26e854=_0x595ccb[_0x12924c];return _0x26e854;},a55_0x1292(_0x16a0b7,_0x324146);}const a55_0x2aff8c={};a55_0x2aff8c[a55_0x1f34a4(0x1ca)]=![];const argv=yargs[a55_0x1f34a4(0x18f)](a55_0x2aff8c)[a55_0x1f34a4(0x20e)](a55_0x1f34a4(0x19c))[a55_0x1f34a4(0x1e8)]('v',a55_0x1f34a4(0x1f9))[a55_0x1f34a4(0x1e5)]('v')['alias']('h',a55_0x1f34a4(0x182))[a55_0x1f34a4(0x182)]('help')[a55_0x1f34a4(0x189)](!![],Constants[a55_0x1f34a4(0x1e1)][a55_0x1f34a4(0x193)])[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x1b4),Constants[a55_0x1f34a4(0x1eb)][a55_0x1f34a4(0x1c3)],function(_0x5436a5){const _0x2efcdb=a55_0x1f34a4,_0x131c2f={'iUjBa':_0x2efcdb(0x1b4),'eFkIp':function(_0x1c358f,_0x394ada,_0x51b05c,_0x5efee5,_0x1bd4d5,_0x1eb2f8){return _0x1c358f(_0x394ada,_0x51b05c,_0x5efee5,_0x1bd4d5,_0x1eb2f8);},'RmfiG':function(_0x48ab60,_0x40b0ad){return _0x48ab60(_0x40b0ad);},'vGRNM':_0x2efcdb(0x1b3)},_0x105770=process[_0x2efcdb(0x1d0)][_0x2efcdb(0x1a5)](0x2);helper[_0x2efcdb(0x187)](),helper[_0x2efcdb(0x1e3)](),_0x5436a5[_0x2efcdb(0x183)](![]);const _0x48d820=new BrowserStackSetup(_0x5436a5[_0x2efcdb(0x1d0)],_0x131c2f['iUjBa']);return _0x131c2f[_0x2efcdb(0x1a8)](captureError,_0x131c2f[_0x2efcdb(0x1d7)](require,_0x131c2f[_0x2efcdb(0x1ef)]),_0x5436a5[_0x2efcdb(0x1d0)],_0x48d820,_0x105770,!![]);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x222),Constants[a55_0x1f34a4(0x1c8)][a55_0x1f34a4(0x1c3)],_0x6c49e0=>{const _0x34f1dd=a55_0x1f34a4,_0x3321e2={'tvdZS':function(_0xe04c6f,_0x5b777a,_0x459a49,_0x2971f2){return _0xe04c6f(_0x5b777a,_0x459a49,_0x2971f2);},'IhvMU':function(_0x30b9a6,_0xbb9bf4){return _0x30b9a6(_0xbb9bf4);},'TDsdB':_0x34f1dd(0x217),'qUVNE':_0x34f1dd(0x222),'CjSpV':_0x34f1dd(0x1ee),'rAycm':function(_0x20fe62,_0x3d37e3,_0xceac74){return _0x20fe62(_0x3d37e3,_0xceac74);},'pxLUu':'mocha/lib/cli/run.js','iKQBZ':function(_0x290eff,_0x15e178,_0x4c97bb){return _0x290eff(_0x15e178,_0x4c97bb);},'CPyRE':_0x34f1dd(0x1b8),'OimXq':_0x34f1dd(0x1cd),'ALzYy':function(_0x2d7a91){return _0x2d7a91();}};process[_0x34f1dd(0x1d0)]=process[_0x34f1dd(0x1d0)][_0x34f1dd(0x1a5)](0x1),helper[_0x34f1dd(0x187)](),helper['setBrowserStackAutomationDisable']();const _0x1aa525=new BrowserStackSetup(_0x6c49e0['argv'],_0x3321e2[_0x34f1dd(0x1e7)]);logger[_0x34f1dd(0x181)](_0x3321e2[_0x34f1dd(0x1ba)]);const _0x14e597=_0x3321e2[_0x34f1dd(0x192)](requireModule,_0x3321e2[_0x34f1dd(0x197)],_0x3321e2['qUVNE']),_0x894093=_0x3321e2[_0x34f1dd(0x1fe)](requireModule,_0x3321e2[_0x34f1dd(0x18e)],_0x3321e2[_0x34f1dd(0x1e7)]);delete _0x14e597['handler'],_0x14e597[_0x34f1dd(0x1bf)]=function(_0x58d3a9){const _0x46d527=_0x34f1dd;return _0x3321e2[_0x46d527(0x1fb)](captureError,_0x3321e2[_0x46d527(0x1fc)](require,_0x3321e2[_0x46d527(0x20c)]),_0x58d3a9,_0x1aa525);},_0x894093[_0x34f1dd(0x191)]=_0x14e597;const {main:_0x4681eb}=_0x3321e2[_0x34f1dd(0x192)](requireModule,_0x3321e2[_0x34f1dd(0x21c)],_0x3321e2[_0x34f1dd(0x1e7)]);_0x3321e2[_0x34f1dd(0x1dd)](_0x4681eb);})['command']('cucumber-js',Constants[a55_0x1f34a4(0x1bb)]['INFO'],function(_0x1d6c40){const _0x2232b2=a55_0x1f34a4,_0x267193={'vvgzd':_0x2232b2(0x202),'URAzS':function(_0x114efe,_0x33b3b6,_0x489f31,_0x41aa11,_0x15be34,_0x52c5dd){return _0x114efe(_0x33b3b6,_0x489f31,_0x41aa11,_0x15be34,_0x52c5dd);},'CBZbi':function(_0x571987,_0x12a70d){return _0x571987(_0x12a70d);},'PYTAt':_0x2232b2(0x1ce)},_0xd53f76=process[_0x2232b2(0x1d0)]['slice'](0x2),_0x3b0fcf=new BrowserStackSetup(_0x1d6c40[_0x2232b2(0x1d0)],_0x267193[_0x2232b2(0x1a4)]);return _0x267193[_0x2232b2(0x226)](captureError,_0x267193[_0x2232b2(0x1a0)](require,_0x267193[_0x2232b2(0x1b5)]),_0x1d6c40['argv'],_0x3b0fcf,_0xd53f76,!![]);})['command'](a55_0x1f34a4(0x1db),Constants['VANILLA'][a55_0x1f34a4(0x1c3)],function(_0x504c04){const _0x2412d6=a55_0x1f34a4,_0x51f91c={'plWyv':_0x2412d6(0x198),'PDNfQ':function(_0x3e16f0,_0x445707){return _0x3e16f0(_0x445707);},'jypTQ':_0x2412d6(0x1bc),'xfkCw':function(_0x5d751f,_0x15098c,_0x701324,_0xefc476,_0x2a181c){return _0x5d751f(_0x15098c,_0x701324,_0xefc476,_0x2a181c);},'UaxJq':_0x2412d6(0x21f),'eVmPG':function(_0x928baa,_0x54b762,_0x229b7e,_0x179211,_0x2146ef){return _0x928baa(_0x54b762,_0x229b7e,_0x179211,_0x2146ef);},'GaTkl':function(_0x55a0e5,_0x551110){return _0x55a0e5(_0x551110);},'DliND':_0x2412d6(0x201)},_0x3d052b=process[_0x2412d6(0x1d0)][_0x2412d6(0x1a5)](0x2),_0x56274d=new BrowserStackSetup(_0x504c04[_0x2412d6(0x1d0)],_0x51f91c[_0x2412d6(0x1bd)]),_0x1ac98d=_0x56274d?_0x56274d[_0x2412d6(0x1fd)]:null;if(_0x51f91c[_0x2412d6(0x225)](isNewman,_0x1ac98d))return _0x56274d['framework']=_0x51f91c[_0x2412d6(0x195)],global['framework']=_0x51f91c['jypTQ'],_0x51f91c[_0x2412d6(0x1f2)](captureError,_0x51f91c['PDNfQ'](require,_0x51f91c[_0x2412d6(0x1ac)]),_0x504c04[_0x2412d6(0x1d0)],_0x56274d,_0x3d052b);return _0x51f91c[_0x2412d6(0x1ff)](captureError,_0x51f91c[_0x2412d6(0x1b0)](require,_0x51f91c[_0x2412d6(0x21d)]),_0x504c04[_0x2412d6(0x1d0)],_0x56274d,_0x3d052b);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x1d8),Constants['NIGHTWATCH']['INFO'],function(_0x3d2e4f){const _0x1af907=a55_0x1f34a4,_0x1ef7fa={'riwWw':function(_0x21ebee,_0x4febfd,_0xe87859,_0x5c2ba5,_0x120875){return _0x21ebee(_0x4febfd,_0xe87859,_0x5c2ba5,_0x120875);},'FgIer':function(_0x3dd069,_0x58712b){return _0x3dd069(_0x58712b);},'EKQPg':_0x1af907(0x18b)},_0x229c10=process[_0x1af907(0x1d0)][_0x1af907(0x1a5)](0x2),_0x3b43c8=new BrowserStackSetup(_0x3d2e4f[_0x1af907(0x1d0)]);return _0x1ef7fa[_0x1af907(0x1d5)](captureError,_0x1ef7fa[_0x1af907(0x1da)](require,_0x1ef7fa['EKQPg']),_0x3d2e4f['argv'],_0x3b43c8,_0x229c10);})['command'](a55_0x1f34a4(0x1de),Constants[a55_0x1f34a4(0x19e)]['INFO'],function(_0x554a6f){const _0x4f048c=a55_0x1f34a4,_0x5611dc={'VtZXx':'codeceptjs','IOIox':function(_0x5f1e3f,_0x30cfea,_0x21afc2,_0x58d1c0,_0x5c0125){return _0x5f1e3f(_0x30cfea,_0x21afc2,_0x58d1c0,_0x5c0125);},'sllOp':function(_0x1b824f,_0x1b6e46){return _0x1b824f(_0x1b6e46);},'hWfbH':_0x4f048c(0x209)},_0x5bfb8b=process['argv'][_0x4f048c(0x1a5)](0x2),_0x305310=new BrowserStackSetup(_0x554a6f[_0x4f048c(0x1d0)],_0x5611dc[_0x4f048c(0x212)]);return _0x5611dc['IOIox'](captureError,_0x5611dc['sllOp'](require,_0x5611dc[_0x4f048c(0x218)]),_0x554a6f[_0x4f048c(0x1d0)],_0x305310,_0x5bfb8b);})[a55_0x1f34a4(0x1df)]('ats',Constants[a55_0x1f34a4(0x194)]['INFO'],function(_0x3d579c){const _0xc702ce=a55_0x1f34a4,_0x43a355={'KelKy':function(_0x197ec7,_0x4aa599,_0x366890){return _0x197ec7(_0x4aa599,_0x366890);},'PbLsY':function(_0x245254,_0x62b253){return _0x245254(_0x62b253);},'PUdja':_0xc702ce(0x22a)},_0x68894a=process[_0xc702ce(0x1d0)][_0xc702ce(0x1a5)](0x2);return _0x43a355['KelKy'](captureError,_0x43a355[_0xc702ce(0x204)](require,_0x43a355[_0xc702ce(0x185)]),_0x3d579c);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x21e),Constants[a55_0x1f34a4(0x1e4)][a55_0x1f34a4(0x1c3)],function(_0xc977cd){const _0x459ba2={'fUscM':function(_0x4d0cdb,_0x55d908){return _0x4d0cdb(_0x55d908);}};return _0x459ba2['fUscM'](runIntegrations,_0xc977cd);})[a55_0x1f34a4(0x1df)](a55_0x1f34a4(0x220),Constants[a55_0x1f34a4(0x207)][a55_0x1f34a4(0x1c3)],function(_0x56b827){const _0x4f09c5=a55_0x1f34a4,_0x2c791d={'uZDJT':_0x4f09c5(0x18d),'IXXAR':function(_0x2dc19f,_0xa380e4){return _0x2dc19f&&_0xa380e4;},'JzNmY':function(_0x4d9e79,_0x46371a,_0x31e0f6,_0xfa5b4f,_0x834063,_0x4e7a77){return _0x4d9e79(_0x46371a,_0x31e0f6,_0xfa5b4f,_0x834063,_0x4e7a77);},'lRTSS':function(_0xdf9c80,_0x23475d){return _0xdf9c80(_0x23475d);},'OvEHL':_0x4f09c5(0x186)},_0x389970=process[_0x4f09c5(0x1d0)]['slice'](0x2);helper[_0x4f09c5(0x1d1)](process['argv'])&&(process['env']['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x4f09c5(0x1d1)](process['argv']));helper[_0x4f09c5(0x187)](),helper[_0x4f09c5(0x1e3)]();const _0x3213d5=new BrowserStackSetup(_0x56b827[_0x4f09c5(0x1d0)],FRAMEWORKS[_0x4f09c5(0x207)]);try{if(!_0x3213d5[_0x4f09c5(0x1fd)]||!_0x3213d5[_0x4f09c5(0x1fd)][_0x4f09c5(0x1e6)]){const _0x3ee64a=_0x2c791d['uZDJT'],_0x2178c8=process[_0x4f09c5(0x20d)][_0x4f09c5(0x21b)]||'',_0x2a8547=_0x2178c8[_0x4f09c5(0x18c)](',')[_0x4f09c5(0x227)](_0x4f4561=>_0x4f4561[_0x4f09c5(0x213)]())[_0x4f09c5(0x17f)](Boolean),_0x260d01=_0x2a8547['some'](_0x5269e6=>_0x5269e6===_0x4f09c5(0x215)||_0x5269e6===_0x4f09c5(0x17d)||_0x5269e6==='-*'),_0x4d835b=_0x2a8547[_0x4f09c5(0x196)](_0x15b538=>_0x15b538===_0x3ee64a||_0x15b538===_0x4f09c5(0x1f8)||_0x15b538==='*');if(_0x2c791d[_0x4f09c5(0x1c5)](!_0x260d01,!_0x4d835b)){const _0x5155cd=helper[_0x4f09c5(0x216)]();_0x5155cd&&(process[_0x4f09c5(0x20d)][_0x4f09c5(0x21b)]=_0x2178c8?_0x2178c8+','+_0x3ee64a:_0x3ee64a,!process[_0x4f09c5(0x20d)][_0x4f09c5(0x1a7)]&&(process['env'][_0x4f09c5(0x1a7)]=_0x5155cd));}}}catch(_0x1d762b){logger[_0x4f09c5(0x181)](_0x4f09c5(0x1fa)+util[_0x4f09c5(0x19b)](_0x1d762b));}return _0x2c791d[_0x4f09c5(0x20f)](captureError,_0x2c791d[_0x4f09c5(0x20a)](require,_0x2c791d[_0x4f09c5(0x1f4)]),_0x56b827[_0x4f09c5(0x1d0)],_0x3213d5,_0x389970,!![]);})['command'](a55_0x1f34a4(0x1f7),a55_0x1f34a4(0x1cf),function(_0x2a1e93){const _0x317641=a55_0x1f34a4,_0x51a64d={};_0x51a64d[_0x317641(0x1f6)]=_0x317641(0x182),_0x51a64d['MCETL']=_0x317641(0x223),_0x51a64d[_0x317641(0x1b2)]='Show\x20help';const _0x12deb3=_0x51a64d;return _0x2a1e93[_0x317641(0x182)](![])[_0x317641(0x21a)](_0x12deb3[_0x317641(0x1f6)],{'alias':'h','type':_0x12deb3[_0x317641(0x1d3)],'describe':_0x12deb3[_0x317641(0x1b2)]})['strict'](![])[_0x317641(0x19f)](![]);},function(_0x335b06){const _0x5c66d8=a55_0x1f34a4,_0x3e1cea={'hYMbN':function(_0x13f789,_0x2cffbd,_0x4dac94){return _0x13f789(_0x2cffbd,_0x4dac94);},'nANmc':function(_0x568af8,_0x3101e8){return _0x568af8(_0x3101e8);},'BOVmS':_0x5c66d8(0x1a2)},_0x268ab1={};return _0x268ab1['argv']=_0x335b06,_0x3e1cea[_0x5c66d8(0x1d4)](captureError,_0x3e1cea['nANmc'](require,_0x3e1cea['BOVmS']),_0x268ab1);})['command']('newman',Constants[a55_0x1f34a4(0x200)][a55_0x1f34a4(0x1c3)],function(_0x4cbeef){const _0x41920b=a55_0x1f34a4,_0x36cf6b={'lJoHR':_0x41920b(0x1bc),'PEKuH':function(_0x4055c2,_0x4699e7,_0x1bde05,_0x537c6c,_0x4d093f){return _0x4055c2(_0x4699e7,_0x1bde05,_0x537c6c,_0x4d093f);},'uOVQt':function(_0x22dfff,_0x15fe0d){return _0x22dfff(_0x15fe0d);},'EBqTi':'./newman/command'},_0x2aa5e2=process[_0x41920b(0x1d0)][_0x41920b(0x1a5)](0x2);helper[_0x41920b(0x187)](),helper[_0x41920b(0x1e3)](),_0x4cbeef['strict'](![]);const _0x43f29f=new BrowserStackSetup(_0x4cbeef[_0x41920b(0x1d0)],_0x36cf6b['lJoHR']);return _0x36cf6b['PEKuH'](captureError,_0x36cf6b['uOVQt'](require,_0x36cf6b[_0x41920b(0x1ec)]),_0x4cbeef[_0x41920b(0x1d0)],_0x43f29f,_0x2aa5e2);})[a55_0x1f34a4(0x19a)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0x1f34a4(0x1a9)](null)['argv'];!helper[a55_0x1f34a4(0x228)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x1f34a4(0x221)&&console[a55_0x1f34a4(0x1d9)](a55_0x1f34a4(0x1e0));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const a56_0x2c9de7=a56_0x3887;(function(_0xdcc224,_0x3ac587){const _0x1d6574=a56_0x3887,_0xc24e10=_0xdcc224();while(!![]){try{const _0x1e45f2=parseInt(_0x1d6574(0x198))/0x1*(-parseInt(_0x1d6574(0x171))/0x2)+parseInt(_0x1d6574(0x19c))/0x3+-parseInt(_0x1d6574(0x186))/0x4+-parseInt(_0x1d6574(0x17d))/0x5+parseInt(_0x1d6574(0x1a6))/0x6+-parseInt(_0x1d6574(0x170))/0x7*(parseInt(_0x1d6574(0x1a3))/0x8)+parseInt(_0x1d6574(0x163))/0x9;if(_0x1e45f2===_0x3ac587)break;else _0xc24e10['push'](_0xc24e10['shift']());}catch(_0x117aa1){_0xc24e10['push'](_0xc24e10['shift']());}}}(a56_0x4e90,0x748e7));const fs=require('fs'),helper=require(a56_0x2c9de7(0x184)),utilities=require(a56_0x2c9de7(0x1a7)),yaml=require('js-yaml'),yargs=require(a56_0x2c9de7(0x1a1)),logger=require(a56_0x2c9de7(0x19a))[a56_0x2c9de7(0x18e)],configFileTemplate=__dirname+a56_0x2c9de7(0x19e),configFileTemplatePW=__dirname+a56_0x2c9de7(0x178),configFile=process[a56_0x2c9de7(0x1aa)]()+'/browserstack.yml',packageFile=process[a56_0x2c9de7(0x1aa)]()+'/package.json',frameworks=[a56_0x2c9de7(0x19d),a56_0x2c9de7(0x1ab),'cucumber-js','node',a56_0x2c9de7(0x19f),a56_0x2c9de7(0x17f),a56_0x2c9de7(0x172)];function a56_0x3887(_0x10b533,_0x3b8323){const _0x4e9005=a56_0x4e90();return a56_0x3887=function(_0x3887d3,_0x3ab9df){_0x3887d3=_0x3887d3-0x163;let _0x42443d=_0x4e9005[_0x3887d3];return _0x42443d;},a56_0x3887(_0x10b533,_0x3b8323);}let config;logger[a56_0x2c9de7(0x1a9)]('Creating\x20configuration\x20file...'),createConfigurationFile(yargs[a56_0x2c9de7(0x196)][a56_0x2c9de7(0x18b)],yargs[a56_0x2c9de7(0x196)][a56_0x2c9de7(0x177)],yargs[a56_0x2c9de7(0x196)][a56_0x2c9de7(0x172)]);try{sdkSetup();}catch(a56_0x207614){logger['debug'](a56_0x2c9de7(0x189)+a56_0x207614);}addScriptInPackageJson();function createConfigurationFile(_0x42f749,_0x3c9edb,_0x31c8e7=![]){const _0xee2a4d=a56_0x2c9de7,_0x45282b={};_0x45282b[_0xee2a4d(0x1a2)]='utf8',_0x45282b['mSqUf']=_0xee2a4d(0x176),_0x45282b[_0xee2a4d(0x16b)]=_0xee2a4d(0x174);const _0x2edeae=_0x45282b;try{let _0x3f3967=fs[_0xee2a4d(0x18d)](_0x31c8e7?configFileTemplatePW:configFileTemplate,_0x2edeae[_0xee2a4d(0x1a2)]);_0x42f749&&(_0x3f3967=_0x3f3967[_0xee2a4d(0x165)](_0x2edeae[_0xee2a4d(0x18a)],_0x42f749)),_0x3c9edb&&(_0x3f3967=_0x3f3967[_0xee2a4d(0x165)](_0x2edeae[_0xee2a4d(0x16b)],_0x3c9edb)),config=yaml['load'](_0x3f3967),fs['writeFileSync'](configFile,_0x3f3967,_0x4009d9=>{const _0xcd0770=_0xee2a4d;_0x4009d9&&logger[_0xcd0770(0x195)](_0x4009d9);});}catch(_0x4ebc7c){logger['error'](_0x4ebc7c);}}function addPostInstallScript(_0x51d80d,_0x3e9a60){const _0x93ef1b=a56_0x2c9de7,_0x15bdb0={};_0x15bdb0['JgKxZ']=_0x93ef1b(0x185),_0x15bdb0['ftIYz']=_0x93ef1b(0x16c),_0x15bdb0['ZQmXu']=_0x93ef1b(0x169);const _0x118e9b=_0x15bdb0;let _0x3ffbaf=_0x51d80d[_0x118e9b[_0x93ef1b(0x17c)]];if(_0x3ffbaf&&_0x3ffbaf[_0x93ef1b(0x17a)](_0x118e9b[_0x93ef1b(0x175)]))return;!_0x3ffbaf?_0x3ffbaf=_0x118e9b[_0x93ef1b(0x175)]:_0x3ffbaf+=_0x118e9b['ZQmXu'],_0x3e9a60[_0x93ef1b(0x16f)]([_0x118e9b[_0x93ef1b(0x17c)],_0x3ffbaf]);}function addScriptInPackageJson(){const _0x2d0977=a56_0x2c9de7,_0x2dd401={'LDfmc':_0x2d0977(0x166),'kwhat':function(_0x1d2063,_0x34c1c3){return _0x1d2063<_0x34c1c3;},'zwcis':function(_0x31b3ba,_0x43bf52,_0x2662fd){return _0x31b3ba(_0x43bf52,_0x2662fd);},'XiSdl':function(_0x46d337,_0x2c4a01){return _0x46d337<_0x2c4a01;},'ALukX':function(_0x4ac252,_0x462405,_0x1e8449){return _0x4ac252(_0x462405,_0x1e8449);},'ctotO':function(_0x2ef6b1,_0x1bff95){return _0x2ef6b1<_0x1bff95;},'MDMyK':function(_0x1b36fc,_0x4eeaee){return _0x1b36fc!==_0x4eeaee;},'aslvg':_0x2d0977(0x16a)},_0x388783=JSON[_0x2d0977(0x17e)](fs['readFileSync'](packageFile,_0x2dd401[_0x2d0977(0x193)])),_0x47731c=[];for(let _0x41cdbe=0x0;_0x2dd401[_0x2d0977(0x190)](_0x41cdbe,frameworks['length']);_0x41cdbe+=0x1){const _0x1a2652=_0x2dd401[_0x2d0977(0x167)](findScriptsWithFramework,_0x388783['scripts'],frameworks[_0x41cdbe]);for(let _0x2e8191=0x0;_0x2dd401[_0x2d0977(0x181)](_0x2e8191,_0x1a2652['length']);_0x2e8191+=0x1){_0x47731c[_0x2d0977(0x16f)](_0x2dd401['zwcis'](getUpdatedCommand,_0x388783[_0x2d0977(0x18f)],_0x1a2652[_0x2e8191]));}_0x2dd401['ALukX'](addPostInstallScript,_0x388783['scripts'],_0x47731c);}const _0x24709a={..._0x388783['scripts']},_0x529b0f=_0x24709a;for(let _0x5f2135=0x0;_0x2dd401[_0x2d0977(0x187)](_0x5f2135,_0x47731c[_0x2d0977(0x197)]);_0x5f2135+=0x1){_0x529b0f[_0x47731c[_0x5f2135][0x0]]=_0x47731c[_0x5f2135][0x1];}_0x2dd401[_0x2d0977(0x179)](JSON[_0x2d0977(0x192)](_0x388783[_0x2d0977(0x18f)]),JSON[_0x2d0977(0x192)](_0x529b0f))&&(logger['info'](_0x2dd401[_0x2d0977(0x1a4)]),_0x388783[_0x2d0977(0x18f)]=_0x529b0f,fs['writeFileSync'](packageFile,JSON[_0x2d0977(0x192)](_0x388783,null,0x2),_0x2b1f7b=>{const _0x1e30bc=_0x2d0977;_0x2b1f7b&&logger[_0x1e30bc(0x195)](_0x2b1f7b);}));};function findScriptsWithFramework(_0x497359,_0x20e72a){const _0x489169=a56_0x2c9de7,_0x42addd={};_0x42addd[_0x489169(0x17b)]=function(_0x30eaae,_0x5c7ace){return _0x30eaae<_0x5c7ace;},_0x42addd[_0x489169(0x183)]=_0x489169(0x1a0);const _0x196326=_0x42addd,_0x37cc63=[],_0x38a9b1=Object[_0x489169(0x19b)](_0x497359);for(let _0x91def5=0x0;_0x196326[_0x489169(0x17b)](_0x91def5,_0x38a9b1[_0x489169(0x197)]);_0x91def5+=0x1){_0x38a9b1[_0x91def5][0x1][_0x489169(0x17a)](_0x20e72a)&&!_0x38a9b1[_0x91def5][0x1]['includes'](_0x196326['Hyygh'])&&_0x37cc63[_0x489169(0x16f)](_0x38a9b1[_0x91def5][0x0]);}return _0x37cc63;}function getUpdatedCommand(_0x2f171b,_0x3ff093){const _0x424527=a56_0x2c9de7,_0x2eae13={};_0x2eae13[_0x424527(0x182)]=function(_0x215bc7,_0x142e1f){return _0x215bc7!==_0x142e1f;},_0x2eae13[_0x424527(0x1a8)]=_0x424527(0x1a0),_0x2eae13[_0x424527(0x194)]=function(_0x24d0ce,_0x19e7a4){return _0x24d0ce===_0x19e7a4;};const _0x1c0ca0=_0x2eae13,_0x4a55d5=_0x3ff093+_0x424527(0x173),_0x2f31fc=_0x2f171b[_0x3ff093],_0x41571b=_0x2f31fc[_0x424527(0x191)]('\x20');for(const _0xb39923 of frameworks){if(_0x1c0ca0[_0x424527(0x182)](_0x41571b['indexOf'](_0xb39923),-0x1)){_0x41571b[_0x424527(0x180)](_0x41571b[_0x424527(0x164)](_0xb39923),0x0,_0x1c0ca0[_0x424527(0x1a8)]);break;}}let _0x52a969=_0x41571b[_0x424527(0x1a5)]('\x20');return _0x1c0ca0['SjMAj'](_0x52a969,_0x2f31fc)&&(_0x52a969='browserstack-node-sdk\x20'+_0x2f31fc),[_0x4a55d5,_0x52a969];}function sdkSetup(){const _0x52c03c=a56_0x2c9de7,_0x5ea6d5={};_0x5ea6d5['mICaI']=_0x52c03c(0x18c),_0x5ea6d5[_0x52c03c(0x199)]='SDKSetup';const _0x4610ca=_0x5ea6d5;if(helper[_0x52c03c(0x16e)](config))return;config['source']=_0x4610ca[_0x52c03c(0x168)];try{utilities[_0x52c03c(0x188)](_0x4610ca[_0x52c03c(0x199)],{},config,'');}catch(_0x251512){logger['debug']('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x251512);}}function a56_0x4e90(){const _0x2161b0=['Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','mSqUf','username','node-setup','readFileSync','winstonLogger','scripts','kwhat','split','stringify','LDfmc','SjMAj','error','argv','length','685724azviyk','aGdOK','../helpers/logger','entries','2504652svXaxC','mocha','/../../browserstack.yml.sample','nightwatch','browserstack-node-sdk','yargs','cwolU','609352ZSmozv','aslvg','join','2551626LKxlKo','../helpers/utilities','vkmXe','info','cwd','jest','12565602LrpPar','indexOf','replace','utf8','zwcis','mICaI','\x20&&\x20npm\x20update\x20browserstack-node-sdk','Adding\x20new\x20script(s)\x20in\x20package.json...','oorqT','npm\x20update\x20browserstack-node-sdk','Setup\x20completed','isUndefined','push','77RzBHcC','2TXAEDo','playwright','-browserstack','YOUR_ACCESS_KEY','ftIYz','YOUR_USERNAME','key','/../../browserstack.pw.yml.sample','MDMyK','includes','KOYYe','JgKxZ','1747315MKLYpn','parse','codeceptjs','splice','XiSdl','vydbv','Hyygh','../helpers/helper','postinstall','1223488RmPTPT','ctotO','fireFunnelTestEvent'];a56_0x4e90=function(){return _0x2161b0;};return a56_0x4e90();}logger[a56_0x2c9de7(0x1a9)](a56_0x2c9de7(0x16d));
|
|
@@ -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_0x3b0f(){const _0x2a003c=['map','stop','debug','length','worker','../../helpers/testhub/testhubHandler','../../helpers/performance/performance-tester','platform-run-failure','2322130JiwXVx','EKAen','9qSNNPL','xFcqB','foaMR','QAPRV','cucumberWorker','platform','dIxbI','XodcV','97828lLDIXG','exitCode','getWorkers','QlnMC','MkRdE','PPuUC','hXFMT','lEslS','test-file-success','parallelVanillaRun','vanillaWorker','then','cFzyJ','\x20for','../../helpers/test-observability/utils','all','141PGJqCq','json','PKxxD','stdout','test-file-start','resolve','platformIndex','EjWlP','send','_child','25rdCMcS','pDbqc','parallelCucumberRun','RRwgR','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','uNvrT','error','772392TFdiOs','Rrlwc','169939nSXKCC','test-file-failure','344840WporIV','SDK_SETUP','Workers\x20failed\x20to\x20exit\x20gracefully','platforms','pipe','waitForExit','getStdout','./testWorker.js','platform-run-start','UNSTABLE_onCustomMessage','ibOpt','platformCaps','TQkgf','EVENTS','file','ZwNrb','emittery','getStderr','parallelTestRun','../../helpers/performance/constants','worker_threads','pmcVv','6437389hOMTYb','config','sSlSR','xdGEc','exit','format','NdtLz','UdjiO','JhDsV','end','swgVu','configuration','QlVKe','Exception\x20in\x20sending\x20worker\x20message\x20','kAQCK','results','pguag','emit','Plpqh','stderr','tCGPy','Running\x20','VBkoQ','log','jest-worker','hVbip','SDoON','1327616xrECYn','util'];a57_0x3b0f=function(){return _0x2a003c;};return a57_0x3b0f();}function a57_0x3916(_0x26fbcf,_0x359bbc){const _0x3b0fac=a57_0x3b0f();return a57_0x3916=function(_0x3916ad,_0x3bc3af){_0x3916ad=_0x3916ad-0x1e9;let _0x423738=_0x3b0fac[_0x3916ad];return _0x423738;},a57_0x3916(_0x26fbcf,_0x359bbc);}const a57_0x552773=a57_0x3916;(function(_0x384bc9,_0x619d7e){const _0x249f85=a57_0x3916,_0x1173f2=_0x384bc9();while(!![]){try{const _0x3abbca=-parseInt(_0x249f85(0x241))/0x1+parseInt(_0x249f85(0x214))/0x2+-parseInt(_0x249f85(0x22e))/0x3*(-parseInt(_0x249f85(0x21e))/0x4)+parseInt(_0x249f85(0x238))/0x5*(-parseInt(_0x249f85(0x23f))/0x6)+-parseInt(_0x249f85(0x1ef))/0x7+parseInt(_0x249f85(0x20a))/0x8+-parseInt(_0x249f85(0x216))/0x9*(parseInt(_0x249f85(0x243))/0xa);if(_0x3abbca===_0x619d7e)break;else _0x1173f2['push'](_0x1173f2['shift']());}catch(_0xd2ec32){_0x1173f2['push'](_0x1173f2['shift']());}}}(a57_0x3b0f,0xad0b2));const Worker=require(a57_0x552773(0x207))['Worker'],Emittery=require(a57_0x552773(0x1e9)),pLimit=require('p-limit'),{parentPort}=require(a57_0x552773(0x1ed)),util=require(a57_0x552773(0x20b)),logger=require('../../helpers/logger')['winstonLogger'],PerformanceTester=require(a57_0x552773(0x212)),PerformanceEvents=require(a57_0x552773(0x1ec))[a57_0x552773(0x250)],{debug}=require(a57_0x552773(0x22c)),TestHubHandler=require(a57_0x552773(0x211));exports[a57_0x552773(0x1eb)]=(_0x580483,_0x2c7287,_0x36cf55)=>new Promise(async _0x1c6152=>{const _0x514b9b=a57_0x552773,_0x3d6b66={'hXFMT':'failureCount','VBkoQ':function(_0x55e14d,_0x5b9b8d){return _0x55e14d+_0x5b9b8d;},'kAQCK':_0x514b9b(0x1fe),'PPuUC':_0x514b9b(0x245),'PZeZg':function(_0x3c1f4d,_0x1dd7c7){return _0x3c1f4d(_0x1dd7c7);},'RthWD':function(_0x133b1d,_0x3720b8){return _0x133b1d(_0x3720b8);},'ibOpt':_0x514b9b(0x232),'ZwNrb':_0x514b9b(0x24a),'EKAen':_0x514b9b(0x210),'swgVu':_0x514b9b(0x22f),'QlnMC':_0x514b9b(0x247),'qpQNy':function(_0x131df5,_0x2d64e0){return _0x131df5*_0x2d64e0;},'PZStw':_0x514b9b(0x226),'Xjuzz':_0x514b9b(0x242),'Plpqh':function(_0xb31fa7,_0x1775c6){return _0xb31fa7(_0x1775c6);},'XodcV':function(_0x25b5da,_0x9da13a){return _0x25b5da*_0x9da13a;}},_0x201d94=_0x36cf55[_0x514b9b(0x1f0)],_0xd570bc={},_0x30382b=new Worker(require[_0x514b9b(0x233)](_0x3d6b66[_0x514b9b(0x252)]),{'exposedMethods':[_0x3d6b66[_0x514b9b(0x215)]],'forkOptions':{'serialization':_0x3d6b66[_0x514b9b(0x1f9)],'stdio':_0x3d6b66[_0x514b9b(0x221)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x3d6b66['qpQNy'](_0x2c7287,0x1),'enableWorkerThreads':!![]}),_0x4ce575=new Emittery();_0x4ce575['on'](_0x3d6b66['PZStw'],_0x56bf52=>{const _0x4b0b91=_0x514b9b;_0xd570bc[_0x56bf52[0x0]]?(_0xd570bc[_0x56bf52[0x0]][_0x3d6b66[_0x4b0b91(0x224)]]=_0x3d6b66[_0x4b0b91(0x205)](_0xd570bc[_0x56bf52[0x0]][_0x3d6b66['hXFMT']],_0x56bf52[0x1][_0x3d6b66[_0x4b0b91(0x224)]]),_0xd570bc[_0x56bf52[0x0]][_0x3d6b66[_0x4b0b91(0x1fd)]]=[..._0xd570bc[_0x56bf52[0x0]][_0x3d6b66['kAQCK']],..._0x56bf52[0x1][_0x3d6b66[_0x4b0b91(0x1fd)]]]):_0xd570bc[_0x56bf52[0x0]]={'failureCount':_0x56bf52[0x1][_0x3d6b66['hXFMT']],'results':[..._0x56bf52[0x1][_0x3d6b66[_0x4b0b91(0x1fd)]]]};}),_0x4ce575['on'](_0x3d6b66['Xjuzz'],_0x3b288b=>console['log'](_0x3b288b[0x1]));_0x30382b[_0x514b9b(0x249)]()&&_0x30382b[_0x514b9b(0x249)]()[_0x514b9b(0x247)](process[_0x514b9b(0x231)]);_0x30382b['getStderr']()&&_0x30382b['getStderr']()[_0x514b9b(0x247)](process[_0x514b9b(0x202)]);const _0x3685b6=async()=>{const _0x58f855=_0x514b9b,{forceExited:_0x503d8b}=await _0x30382b[_0x58f855(0x1f8)]();_0x503d8b&&console[_0x58f855(0x23e)](_0x3d6b66[_0x58f855(0x223)]);try{await TestHubHandler[_0x58f855(0x20d)]();}catch(_0x3c5715){_0x3d6b66['PZeZg'](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'+_0x3c5715);}_0x3d6b66['RthWD'](_0x1c6152,_0xd570bc);},_0x23519a=_0x3d6b66[_0x514b9b(0x201)](pLimit,_0x3d6b66[_0x514b9b(0x21d)](_0x2c7287,0x1)),_0x537293=_0x25687a=>_0x23519a(async()=>{const _0x33a8c1=_0x514b9b;await _0x4ce575[_0x33a8c1(0x200)](_0x3d6b66[_0x33a8c1(0x24d)],_0x25687a);const _0x4dc3cd=_0x30382b[_0x33a8c1(0x210)](_0x25687a,_0x201d94);try{parentPort&&_0x4dc3cd[_0x33a8c1(0x24c)](_0x25ac3d=>{const _0xa28de2=_0x33a8c1;try{parentPort['postMessage'](_0x25ac3d);}catch(_0x556731){logger['debug'](_0xa28de2(0x1fc)+util[_0xa28de2(0x1f4)](_0x556731));}});}catch(_0x5c0e24){logger[_0x33a8c1(0x20e)](_0x33a8c1(0x23c)+util[_0x33a8c1(0x1f4)](_0x5c0e24));}return _0x4dc3cd;});PerformanceTester[_0x514b9b(0x1f8)](PerformanceEvents[_0x514b9b(0x244)]),Promise[_0x514b9b(0x22d)](_0x580483[_0x514b9b(0x20c)](_0x3eece9=>_0x537293(_0x3eece9)[_0x514b9b(0x229)](_0x561eb4=>_0x4ce575[_0x514b9b(0x200)]('test-file-success',[_0x3eece9[_0x514b9b(0x1fa)][_0x514b9b(0x21b)],_0x561eb4]),_0x342c18=>_0x4ce575[_0x514b9b(0x200)]('test-file-failure',[_0x3eece9,_0x342c18]))))[_0x514b9b(0x229)](_0x3685b6,_0x3685b6);}),exports[a57_0x552773(0x23a)]=(_0xd52f31,_0x552aba,_0x178150,_0x559694,_0x5c418e)=>{const _0x220f80=a57_0x552773,_0xfd0da={'TQkgf':'Workers\x20failed\x20to\x20exit\x20gracefully','lEslS':function(_0x46d719,_0x31d4b8){return _0x46d719(_0x31d4b8);},'JhDsV':_0x220f80(0x24b),'pguag':_0x220f80(0x24a),'pmcVv':_0x220f80(0x21a),'NdtLz':'json','fNmbM':_0x220f80(0x247),'xFcqB':'platform-run-success','pDbqc':'platform-run-failure','dIxbI':function(_0x2bc24c,_0x37f8e5){return _0x2bc24c(_0x37f8e5);}};return new Promise(_0xe63626=>{const _0x355dcc=_0x220f80,_0x45ef19={};_0x45ef19[_0x355dcc(0x208)]=_0xfd0da[_0x355dcc(0x1f7)];const _0x5f1163=_0x45ef19,_0x22709f=[],_0x404984=new Worker(require['resolve'](_0xfd0da[_0x355dcc(0x1ff)]),{'exposedMethods':[_0xfd0da[_0x355dcc(0x1ee)]],'forkOptions':{'serialization':_0xfd0da[_0x355dcc(0x1f5)],'stdio':_0xfd0da['fNmbM']},'numWorkers':_0xd52f31[_0x355dcc(0x20f)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x2b8697=new Emittery();_0x2b8697['on'](_0xfd0da[_0x355dcc(0x217)],_0xa4ff14=>{_0x22709f['push']([_0xa4ff14[0x0],_0xa4ff14[0x1]]);}),_0x2b8697['on'](_0xfd0da[_0x355dcc(0x239)],_0x396632=>console[_0x355dcc(0x206)](_0x396632[0x1]));_0x404984[_0x355dcc(0x249)]()&&_0x404984[_0x355dcc(0x249)]()[_0x355dcc(0x247)](process[_0x355dcc(0x231)]);_0x404984[_0x355dcc(0x1ea)]()&&_0x404984[_0x355dcc(0x1ea)]()[_0x355dcc(0x247)](process[_0x355dcc(0x202)]);const _0x458ad1=async()=>{const _0x26c8df=_0x355dcc,{forceExited:_0x161926}=await _0x404984['end']();_0x161926&&console[_0x26c8df(0x23e)](_0xfd0da[_0x26c8df(0x24f)]),_0xfd0da[_0x26c8df(0x225)](_0xe63626,_0x22709f);},_0x1e7e86=_0xfd0da[_0x355dcc(0x21c)](pLimit,_0xd52f31[_0x355dcc(0x20f)]||0x1),_0x37bae3=(_0x18a016,_0x5b3fd8)=>_0x1e7e86(async()=>{const _0x27ea50=_0x355dcc;return await _0x2b8697[_0x27ea50(0x200)](_0x5f1163['hVbip'],_0x18a016),_0x552aba[_0x27ea50(0x24e)]=_0x178150[_0x27ea50(0x246)][_0x5b3fd8],_0x552aba[_0x27ea50(0x234)]=_0x5b3fd8,_0x404984[_0x27ea50(0x21a)](_0x18a016,_0x552aba,_0x178150,_0x559694,_0x5c418e);});Promise[_0x355dcc(0x22d)](_0xd52f31[_0x355dcc(0x20c)]((_0x29ff99,_0x1444a7)=>_0x37bae3(_0x29ff99,_0x1444a7)['then'](_0x27ef3e=>_0x2b8697['emit']('platform-run-success',[_0x29ff99,_0x27ef3e]),_0x4c7ee3=>_0x2b8697[_0x355dcc(0x200)](_0x355dcc(0x213),[_0x29ff99,_0x4c7ee3]))))['then'](_0x458ad1,_0x458ad1);});},exports[a57_0x552773(0x227)]=(_0x1637a1,_0x50163a)=>new Promise(_0x55bee0=>{const _0x403c11=a57_0x552773,_0x13e307={'Rrlwc':function(_0x51add7,_0x1760be){return _0x51add7===_0x1760be;},'EjWlP':function(_0x253893,_0x30873a){return _0x253893!==_0x30873a;},'uNvrT':_0x403c11(0x1f3),'SDoON':_0x403c11(0x245),'sSlSR':function(_0xb4d139,_0x2de093){return _0xb4d139(_0x2de093);},'UdjiO':_0x403c11(0x24a),'tCGPy':_0x403c11(0x228),'cFzyJ':'json','foaMR':_0x403c11(0x247),'PKxxD':'test-file-success','AyTnh':_0x403c11(0x242)},_0x49f50b={},_0x1b578c=new Worker(require[_0x403c11(0x233)](_0x13e307[_0x403c11(0x1f6)]),{'exposedMethods':[_0x13e307[_0x403c11(0x203)]],'forkOptions':{'serialization':_0x13e307[_0x403c11(0x22a)],'stdio':_0x13e307[_0x403c11(0x218)]},'numWorkers':_0x50163a,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x209dc6=new Emittery();_0x209dc6['on'](_0x13e307[_0x403c11(0x230)],_0x3e6fe2=>{const _0x42b7c1=_0x403c11;_0x3e6fe2[0x0]&&logger['info'](_0x42b7c1(0x204)+_0x3e6fe2[0x1]+_0x42b7c1(0x22b),_0x3e6fe2[0x0]);}),_0x209dc6['on'](_0x13e307['AyTnh'],_0xaae53=>{const _0x1cae92=_0x403c11;process[_0x1cae92(0x21f)]=0x1;});_0x1b578c[_0x403c11(0x249)]()&&_0x1b578c[_0x403c11(0x249)]()[_0x403c11(0x247)](process[_0x403c11(0x231)]);_0x1b578c['getStderr']()&&_0x1b578c[_0x403c11(0x1ea)]()[_0x403c11(0x247)](process[_0x403c11(0x202)]);const _0x578e04=async()=>{const _0x41f4a8=_0x403c11,_0x195a61={'MkRdE':function(_0x586ab7,_0x49e24d){const _0x362fec=a57_0x3916;return _0x13e307[_0x362fec(0x240)](_0x586ab7,_0x49e24d);},'QAPRV':function(_0x44985d,_0x1b8357){const _0x58f30c=a57_0x3916;return _0x13e307[_0x58f30c(0x235)](_0x44985d,_0x1b8357);},'xdGEc':_0x13e307[_0x41f4a8(0x23d)]};let _0x5980fb=0x0;const _0x2334ab=_0x1b578c['_workerPool'][_0x41f4a8(0x220)](),_0xd762a9=()=>{},_0xd9a42=_0x2334ab[_0x41f4a8(0x20c)](async _0x45a5e4=>{const _0x1f1f62=_0x41f4a8,_0x2afbe4={'QlVKe':function(_0x59aa06,_0x26e344){const _0x46d04b=a57_0x3916;return _0x195a61[_0x46d04b(0x222)](_0x59aa06,_0x26e344);},'RRwgR':function(_0x11f0d7,_0x4d1480){const _0x180c5f=a57_0x3916;return _0x195a61[_0x180c5f(0x219)](_0x11f0d7,_0x4d1480);}};_0x45a5e4[_0x1f1f62(0x236)]([0x2,![]],_0xd762a9,_0xd762a9,_0xd762a9),_0x45a5e4[_0x1f1f62(0x237)]['on'](_0x195a61[_0x1f1f62(0x1f2)],_0x4a92dd=>{const _0x4a7a5f=_0x1f1f62;_0x2afbe4[_0x4a7a5f(0x1fb)](_0x5980fb,0x0)&&_0x2afbe4[_0x4a7a5f(0x23b)](_0x4a92dd,0x0)&&(_0x5980fb=_0x4a92dd);}),await _0x45a5e4[_0x1f1f62(0x248)]();});await Promise['all'](_0xd9a42),process[_0x41f4a8(0x21f)]=_0x5980fb;const {forceExited:_0x5b19a3}=await _0x1b578c['end']();_0x5b19a3&&console['error'](_0x13e307[_0x41f4a8(0x209)]),_0x13e307[_0x41f4a8(0x1f1)](_0x55bee0,_0x49f50b);},_0x1949d9=_0x13e307['sSlSR'](pLimit,_0x50163a),_0x392860=_0x56db2c=>_0x1949d9(async()=>{const _0x5c1eb9=_0x403c11;return _0x1b578c[_0x5c1eb9(0x228)](_0x56db2c);});Promise[_0x403c11(0x22d)](_0x1637a1[_0x403c11(0x20c)](_0x5c3e54=>_0x392860(_0x5c3e54)['then'](_0x5d3183=>_0x209dc6[_0x403c11(0x200)](_0x403c11(0x226),[_0x5c3e54[_0x403c11(0x1fa)][_0x403c11(0x21b)],_0x5c3e54[_0x403c11(0x1fa)][_0x403c11(0x251)]]),_0x1216d8=>_0x209dc6[_0x403c11(0x200)](_0x403c11(0x242),[_0x5c3e54,_0x1216d8]))))[_0x403c11(0x229)](_0x578e04,_0x578e04);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x1a399e=a58_0x1a6b;function a58_0x3257(){const _0x41f36c=['formatter','startMonitoring','2eAzUXv','1133QjQRNf','run','18RXJCcb','stopMonitoring','../launcher/launcher','497637OGBuCT','mocha','AdlHL','../../helpers/performance/performance-tester','SDK_POST_TEST','1286472CYriVC','jZhxU','7LJzZfP','../../helpers/performance/constants','end','30230KJKJwy','runVanillaTest','2775144wiNIvV','1156275yXkJnx','BvVdH','runCucumberTest','vanilla','jlSdF','cucumber-js','configuration','EVENTS','gZepk','GNqUH','641735tLwkAj','470136YYTHFn','RNKlq'];a58_0x3257=function(){return _0x41f36c;};return a58_0x3257();}(function(_0x12088f,_0x120ed8){const _0x10aa9a=a58_0x1a6b,_0x32805c=_0x12088f();while(!![]){try{const _0x1f59c1=-parseInt(_0x10aa9a(0x18f))/0x1*(parseInt(_0x10aa9a(0x189))/0x2)+-parseInt(_0x10aa9a(0x194))/0x3+parseInt(_0x10aa9a(0x185))/0x4+-parseInt(_0x10aa9a(0x1a6))/0x5*(-parseInt(_0x10aa9a(0x18c))/0x6)+parseInt(_0x10aa9a(0x196))/0x7*(parseInt(_0x10aa9a(0x19b))/0x8)+parseInt(_0x10aa9a(0x19c))/0x9+parseInt(_0x10aa9a(0x199))/0xa*(parseInt(_0x10aa9a(0x18a))/0xb);if(_0x1f59c1===_0x120ed8)break;else _0x32805c['push'](_0x32805c['shift']());}catch(_0x1075e8){_0x32805c['push'](_0x32805c['shift']());}}}(a58_0x3257,0x58963));const PerformanceEvents=require(a58_0x1a399e(0x197))[a58_0x1a399e(0x1a3)],PerformanceTester=require(a58_0x1a399e(0x192)),{sleep}=require('../../helpers/test-observability/utils');function a58_0x1a6b(_0x65f9b4,_0x229b46){const _0x325753=a58_0x3257();return a58_0x1a6b=function(_0x1a6b57,_0x4268e0){_0x1a6b57=_0x1a6b57-0x185;let _0x61ba1f=_0x325753[_0x1a6b57];return _0x61ba1f;},a58_0x1a6b(_0x65f9b4,_0x229b46);}exports['runTest']=async(_0x53fe32,_0x1e482c)=>{const _0x1f5baf=a58_0x1a399e,_0x53a05f={'BvVdH':function(_0x5e2b43,_0x4f56a9){return _0x5e2b43(_0x4f56a9);},'CGkKL':'../launcher/launcher','RNKlq':_0x1f5baf(0x190),'AdlHL':function(_0x5c07f2,_0x92048){return _0x5c07f2(_0x92048);}};PerformanceTester[_0x1f5baf(0x188)]();const _0x3bfc17=_0x53a05f[_0x1f5baf(0x19d)](require,_0x53a05f['CGkKL']),_0x389ee2=new _0x3bfc17(_0x53a05f[_0x1f5baf(0x186)],_0x53fe32,_0x1e482c),_0xbbd549=await _0x389ee2[_0x1f5baf(0x18b)]();return PerformanceTester[_0x1f5baf(0x198)](PerformanceEvents[_0x1f5baf(0x193)]),await _0x53a05f[_0x1f5baf(0x191)](sleep,0x3e8),PerformanceTester[_0x1f5baf(0x18d)](),_0xbbd549;},exports[a58_0x1a399e(0x19e)]=async(_0x351da1,_0x218f96,_0x44a8ae,_0x424c61,_0x3d1af6)=>{const _0xb5fd77=a58_0x1a399e,_0xe0b35={'jZhxU':function(_0x513863,_0x12523d){return _0x513863(_0x12523d);},'PHfiX':'../launcher/launcher','jlSdF':_0xb5fd77(0x1a1)},_0x4591ab={'capability':_0x351da1,..._0x218f96},_0x540662={};_0x540662[_0xb5fd77(0x1a2)]=_0x4591ab,_0x540662[_0xb5fd77(0x187)]=_0x3d1af6;const _0x53f9c9=_0x540662,_0x34c1e3=_0xe0b35[_0xb5fd77(0x195)](require,_0xe0b35['PHfiX']),_0x42c929=new _0x34c1e3(_0xe0b35[_0xb5fd77(0x1a0)],_0x53f9c9,_0x44a8ae,_0x424c61);return await _0x42c929[_0xb5fd77(0x18b)]();},exports[a58_0x1a399e(0x19a)]=async _0x440478=>{const _0x4eaf71=a58_0x1a399e,_0x159296={'GNqUH':function(_0x4a10b9,_0x47d161){return _0x4a10b9(_0x47d161);},'ZqvDM':_0x4eaf71(0x18e),'gZepk':_0x4eaf71(0x19f)},_0x18867e=_0x159296[_0x4eaf71(0x1a5)](require,_0x159296['ZqvDM']),_0x3748e8=new _0x18867e(_0x159296[_0x4eaf71(0x1a4)],_0x440478);return await _0x3748e8['run']();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a59_0x279716=a59_0x214d;(function(_0x33d765,_0x154013){const _0x3ff3e4=a59_0x214d,_0x29473d=_0x33d765();while(!![]){try{const _0x48c9d7=-parseInt(_0x3ff3e4(0x16a))/0x1*(-parseInt(_0x3ff3e4(0x166))/0x2)+-parseInt(_0x3ff3e4(0x162))/0x3*(-parseInt(_0x3ff3e4(0x165))/0x4)+-parseInt(_0x3ff3e4(0x170))/0x5*(-parseInt(_0x3ff3e4(0x16d))/0x6)+parseInt(_0x3ff3e4(0x163))/0x7+-parseInt(_0x3ff3e4(0x16c))/0x8*(-parseInt(_0x3ff3e4(0x169))/0x9)+-parseInt(_0x3ff3e4(0x164))/0xa+parseInt(_0x3ff3e4(0x168))/0xb;if(_0x48c9d7===_0x154013)break;else _0x29473d['push'](_0x29473d['shift']());}catch(_0x3106ee){_0x29473d['push'](_0x29473d['shift']());}}}(a59_0x2ba2,0x6870d));function a59_0x214d(_0x22c4e7,_0x4407a2){const _0x2ba215=a59_0x2ba2();return a59_0x214d=function(_0x214dbf,_0x5e3965){_0x214dbf=_0x214dbf-0x162;let _0x387cad=_0x2ba215[_0x214dbf];return _0x387cad;},a59_0x214d(_0x22c4e7,_0x4407a2);}const {runTest,runCucumberTest,runVanillaTest}=require('./runTest');function a59_0x2ba2(){const _0x56b1d1=['505444oPKNwU','338fBodyk','cucumberWorker','2033196JpQacC','180ThjmxU','2753ktLnFk','CXSxe','78088Plmfei','12spwmIH','vanillaWorker','worker','5025YcpPxI','6BgAKca','816193htBKfJ','7888550vbzoKf'];a59_0x2ba2=function(){return _0x56b1d1;};return a59_0x2ba2();}exports[a59_0x279716(0x16f)]=async(_0x56a40d,_0x1424f8)=>{const _0x3ef012={'xQAOm':function(_0x2f14d6,_0x23092d,_0x8529ab){return _0x2f14d6(_0x23092d,_0x8529ab);}};return await _0x3ef012['xQAOm'](runTest,_0x56a40d,_0x1424f8);},exports[a59_0x279716(0x167)]=async(_0x123877,_0x4b2fe8,_0x1f57ce,_0x1d766f,_0x5b6cbd)=>{const _0x517f96={'TQSqo':function(_0x5de06b,_0x596f68,_0x5f5583,_0x5dfd6a,_0x5ae7cb,_0x204456){return _0x5de06b(_0x596f68,_0x5f5583,_0x5dfd6a,_0x5ae7cb,_0x204456);}};return await _0x517f96['TQSqo'](runCucumberTest,_0x123877,_0x4b2fe8,_0x1f57ce,_0x1d766f,_0x5b6cbd);},exports[a59_0x279716(0x16e)]=async _0x499ba8=>{const _0x1b1c50=a59_0x279716,_0x483c12={'CXSxe':function(_0x2acc97,_0x4d7eec){return _0x2acc97(_0x4d7eec);}};return await _0x483c12[_0x1b1c50(0x16b)](runVanillaTest,_0x499ba8);};
|
|
@@ -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
|
+
function a60_0x4492(_0x547558,_0x109d26){const _0x5ca3aa=a60_0x5ca3();return a60_0x4492=function(_0x4492a1,_0x5489e2){_0x4492a1=_0x4492a1-0x1b2;let _0x2c8c25=_0x5ca3aa[_0x4492a1];return _0x2c8c25;},a60_0x4492(_0x547558,_0x109d26);}function a60_0x5ca3(){const _0xebed86=['ljbzW','rkoTr','api','qoniE','getAutoCaptureLogsAPIUrl','PjxKd','wMPgH','WNEsA','observability','APcHU','8kYoCup','EDS_URL','apis','ftBgt','ftDwy','jHFVH','mMWhc','qFmyi','KUdoR','NgcPX','60093fgQQWS','kiuuv','automate','lQSHE','EBOvN','/puppeteer?caps=','jFkfc','XaXdF','mBoBk','gtFhD','gvqki','CiKJO','GsIce','BROWSERSTACK_API_URL','getPlaywrightHubUrl','lKuzu','./sharedUtils','getAppAutomateSessionStatusAPIUrl','KnItD','APP_UPLOAD_URL','OvIeJ','getAutomateSessionNameAPIUrl','69996938QGwfBF','getBStackAPIUrl','endsWith','rbKew','xGdZM','iMQaE','73126aBcjTB','getAutomateSessionsListAPIUrl','XsZty','OBSERVABILITY_UPLOAD_URL','getInstance','getAppAutomateSessionNameAPIUrl','PLDFh','15195820cdbrNJ','qMwFo','getAppAutomateSessionsListAPIUrl','crnKX','9981828THkjMa','KGptC','zEzqX','getPuppeteerHubUrl','zNxjL','JCmUV','7035255vsUlgO','getConfig','LyvCc','EsFCs','7vuCrPX','DJPHt','toString','Oiqvy','mCaIt','ubSPa','HubWS','AnTVO','rMKcC','obSlS','wss:','../v2/browserstackCLI','AfhgK','apntO','1568HFPgkX','eetyN','msePC','cdp','KLOkx','liICe','3033663eQuiyL','replace','appAutomate','QKYiG','BigyS','pDmwg','wIKax','upload','4kMFBuT'];a60_0x5ca3=function(){return _0xebed86;};return a60_0x5ca3();}const a60_0x29efb4=a60_0x4492;(function(_0x54d727,_0x1e860d){const _0x541c57=a60_0x4492,_0x373909=_0x54d727();while(!![]){try{const _0x12df32=-parseInt(_0x541c57(0x212))/0x1*(-parseInt(_0x541c57(0x1d6))/0x2)+parseInt(_0x541c57(0x1ff))/0x3*(parseInt(_0x541c57(0x207))/0x4)+parseInt(_0x541c57(0x1e7))/0x5+parseInt(_0x541c57(0x1e1))/0x6*(parseInt(_0x541c57(0x1eb))/0x7)+parseInt(_0x541c57(0x1f9))/0x8*(parseInt(_0x541c57(0x1ba))/0x9)+parseInt(_0x541c57(0x1dd))/0xa+-parseInt(_0x541c57(0x1d0))/0xb;if(_0x12df32===_0x1e860d)break;else _0x373909['push'](_0x373909['shift']());}catch(_0x1ce870){_0x373909['push'](_0x373909['shift']());}}}(a60_0x5ca3,0xccea2));const constants=require('./constants'),{nestedKeyValue}=require(a60_0x29efb4(0x1ca)),getBrowserstackCLI=()=>{const _0x3adcc5=a60_0x29efb4,_0x3b872e={'JCmUV':function(_0x3fb408,_0x2b4482){return _0x3fb408(_0x2b4482);},'crnKX':_0x3adcc5(0x1f6)};return _0x3b872e[_0x3adcc5(0x1e6)](require,_0x3b872e[_0x3adcc5(0x1e0)]);};class APIUtilityMethods{static[a60_0x29efb4(0x1d1)](_0x203842){const _0xf3cc38=a60_0x29efb4,_0xe24a85={'eetyN':function(_0x1dd25f){return _0x1dd25f();},'ftBgt':function(_0x42997b,_0x595a2b,_0x2e9d52){return _0x42997b(_0x595a2b,_0x2e9d52);},'obSlS':'apis','Zvizd':_0xf3cc38(0x1bc),'QKYiG':_0xf3cc38(0x20a),'cjxGn':function(_0x141a2a,_0x122279){return _0x141a2a===_0x122279;},'KUdoR':function(_0x15693b,_0x49adaf){return _0x15693b+_0x49adaf;}},_0xe435ae=_0xe24a85[_0xf3cc38(0x1fa)](getBrowserstackCLI),_0xc62387=_0xe24a85[_0xf3cc38(0x1b3)](nestedKeyValue,_0xe435ae[_0xf3cc38(0x1da)]()[_0xf3cc38(0x1e8)](),[_0xe24a85[_0xf3cc38(0x1f4)],_0xe24a85['Zvizd'],_0xe24a85[_0xf3cc38(0x202)]])||constants[_0xf3cc38(0x1c7)];if(!_0x203842||_0xe24a85['cjxGn'](_0x203842,''))return _0xc62387;const _0x8ee801=_0xc62387[_0xf3cc38(0x1d2)]('/')?_0xc62387:_0xe24a85[_0xf3cc38(0x1b8)](_0xc62387,'/');return new URL(_0x203842,_0x8ee801)['toString']();}static['getEdsInstrumentationAPIUrl'](_0x269061){const _0x3ee50c=a60_0x29efb4,_0x5b4260={'xOKDf':function(_0x45fd90){return _0x45fd90();},'qMwFo':function(_0x142018,_0x3a478a,_0x11dd57){return _0x142018(_0x3a478a,_0x11dd57);},'EHTPo':_0x3ee50c(0x1b2),'OruIE':'edsInstrumentation','apntO':_0x3ee50c(0x20a),'BaUYn':function(_0x3293ba,_0xdb457c){return _0x3293ba===_0xdb457c;},'qoniE':function(_0x5e0569,_0x3bd006){return _0x5e0569+_0x3bd006;}},_0xa485a9=_0x5b4260['xOKDf'](getBrowserstackCLI),_0x11b0f5=_0x5b4260[_0x3ee50c(0x1de)](nestedKeyValue,_0xa485a9[_0x3ee50c(0x1da)]()[_0x3ee50c(0x1e8)](),[_0x5b4260['EHTPo'],_0x5b4260['OruIE'],_0x5b4260[_0x3ee50c(0x1f8)]])||constants[_0x3ee50c(0x213)];if(!_0x269061||_0x5b4260['BaUYn'](_0x269061,''))return _0x11b0f5;const _0x23efa7=_0x11b0f5[_0x3ee50c(0x1d2)]('/')?_0x11b0f5:_0x5b4260[_0x3ee50c(0x20b)](_0x11b0f5,'/');return new URL(_0x269061,_0x23efa7)['toString']();}static['getAutomateSessionStatusAPIUrl'](_0x373548){const _0x290c4c=a60_0x29efb4,_0x307dd9={'SFJaa':function(_0x54d13a){return _0x54d13a();},'APcHU':function(_0x293d0c,_0x178042,_0x58e179){return _0x293d0c(_0x178042,_0x58e179);},'iMQaE':_0x290c4c(0x1b2),'zNxjL':_0x290c4c(0x1bc),'kLcWF':_0x290c4c(0x20a),'wIKax':function(_0x46603f,_0xc604c){return _0x46603f===_0xc604c;},'DJPHt':function(_0x3d59af,_0x133e79){return _0x3d59af+_0x133e79;}},_0x383d54=_0x307dd9['SFJaa'](getBrowserstackCLI),_0x5f1635=_0x307dd9[_0x290c4c(0x211)](nestedKeyValue,_0x383d54[_0x290c4c(0x1da)]()[_0x290c4c(0x1e8)](),[_0x307dd9[_0x290c4c(0x1d5)],_0x307dd9[_0x290c4c(0x1e5)],_0x307dd9['kLcWF']])||constants[_0x290c4c(0x1c7)];if(!_0x373548||_0x307dd9[_0x290c4c(0x205)](_0x373548,''))return _0x5f1635;const _0x268b2f=_0x5f1635[_0x290c4c(0x1d2)]('/')?_0x5f1635:_0x307dd9[_0x290c4c(0x1ec)](_0x5f1635,'/');return new URL(_0x373548,_0x268b2f)[_0x290c4c(0x1ed)]();}static[a60_0x29efb4(0x1cb)](_0xd2a51f){const _0x21cb99=a60_0x29efb4,_0x2cc087={'qFmyi':function(_0x223657){return _0x223657();},'Oiqvy':function(_0x160c1c,_0x5e991a,_0x4ccebc){return _0x160c1c(_0x5e991a,_0x4ccebc);},'fsKPC':_0x21cb99(0x1b2),'pDmwg':'appAutomate','HubWS':_0x21cb99(0x20a),'GTjnB':function(_0x29fb35,_0x118244){return _0x29fb35===_0x118244;},'zEzqX':function(_0xa1082c,_0x1174ce){return _0xa1082c+_0x1174ce;}},_0x1f165a=_0x2cc087[_0x21cb99(0x1b7)](getBrowserstackCLI),_0x29af97=_0x2cc087[_0x21cb99(0x1ee)](nestedKeyValue,_0x1f165a[_0x21cb99(0x1da)]()['getConfig'](),[_0x2cc087['fsKPC'],_0x2cc087[_0x21cb99(0x204)],_0x2cc087[_0x21cb99(0x1f1)]])||constants['BROWSERSTACK_API_URL'];if(!_0xd2a51f||_0x2cc087['GTjnB'](_0xd2a51f,''))return _0x29af97;const _0x54235d=_0x29af97[_0x21cb99(0x1d2)]('/')?_0x29af97:_0x2cc087[_0x21cb99(0x1e3)](_0x29af97,'/');return new URL(_0xd2a51f,_0x54235d)[_0x21cb99(0x1ed)]();}static[a60_0x29efb4(0x1cf)](_0x1afe8f){const _0x13124b=a60_0x29efb4,_0x55c226={'HBREJ':function(_0x18bfd3){return _0x18bfd3();},'ftDwy':function(_0x102b8e,_0x16132d,_0x7281eb){return _0x102b8e(_0x16132d,_0x7281eb);},'VPkuH':_0x13124b(0x1b2),'LyvCc':_0x13124b(0x1bc),'CiKJO':_0x13124b(0x20a),'WNEsA':function(_0x43d760,_0x1b6a96){return _0x43d760===_0x1b6a96;},'qTKvb':function(_0x52673d,_0x53be6c){return _0x52673d+_0x53be6c;}},_0x33ce8f=_0x55c226['HBREJ'](getBrowserstackCLI),_0x5e1063=_0x55c226[_0x13124b(0x1b4)](nestedKeyValue,_0x33ce8f['getInstance']()[_0x13124b(0x1e8)](),[_0x55c226['VPkuH'],_0x55c226[_0x13124b(0x1e9)],_0x55c226[_0x13124b(0x1c5)]])||constants['BROWSERSTACK_API_URL'];if(!_0x1afe8f||_0x55c226[_0x13124b(0x20f)](_0x1afe8f,''))return _0x5e1063;const _0x140c1d=_0x5e1063[_0x13124b(0x1d2)]('/')?_0x5e1063:_0x55c226['qTKvb'](_0x5e1063,'/');return new URL(_0x1afe8f,_0x140c1d)['toString']();}static[a60_0x29efb4(0x1db)](_0x284b7e){const _0x32e389=a60_0x29efb4,_0x242121={'wKrNL':function(_0x251f9d){return _0x251f9d();},'BzGZM':function(_0x182227,_0x1a1a3b,_0x40f373){return _0x182227(_0x1a1a3b,_0x40f373);},'PjxKd':_0x32e389(0x1b2),'lQSHE':_0x32e389(0x201),'ubSPa':_0x32e389(0x20a),'BokFm':function(_0x4f2264,_0x46f4e4){return _0x4f2264===_0x46f4e4;},'OvIeJ':function(_0x4ecfed,_0x4988e8){return _0x4ecfed+_0x4988e8;}},_0x3e4cdf=_0x242121['wKrNL'](getBrowserstackCLI),_0x1f8f76=_0x242121['BzGZM'](nestedKeyValue,_0x3e4cdf[_0x32e389(0x1da)]()['getConfig'](),[_0x242121[_0x32e389(0x20d)],_0x242121[_0x32e389(0x1bd)],_0x242121[_0x32e389(0x1f0)]])||constants[_0x32e389(0x1c7)];if(!_0x284b7e||_0x242121['BokFm'](_0x284b7e,''))return _0x1f8f76;const _0x423bf8=_0x1f8f76[_0x32e389(0x1d2)]('/')?_0x1f8f76:_0x242121[_0x32e389(0x1ce)](_0x1f8f76,'/');return new URL(_0x284b7e,_0x423bf8)[_0x32e389(0x1ed)]();}static[a60_0x29efb4(0x1d7)](_0x571c78){const _0x3a8ad5=a60_0x29efb4,_0x1649ea={'kiuuv':function(_0x30d5f7){return _0x30d5f7();},'GsIce':function(_0x439d92,_0x1a6c03,_0x8a1467){return _0x439d92(_0x1a6c03,_0x8a1467);},'mCaIt':'apis','rbKew':_0x3a8ad5(0x1bc),'ljbzW':_0x3a8ad5(0x20a),'jHFVH':function(_0x45f783,_0x3a7382){return _0x45f783===_0x3a7382;},'XsZty':function(_0x7e5d38,_0x5a1434){return _0x7e5d38+_0x5a1434;}},_0x58adba=_0x1649ea[_0x3a8ad5(0x1bb)](getBrowserstackCLI),_0x3f9db8=_0x1649ea[_0x3a8ad5(0x1c6)](nestedKeyValue,_0x58adba['getInstance']()[_0x3a8ad5(0x1e8)](),[_0x1649ea[_0x3a8ad5(0x1ef)],_0x1649ea[_0x3a8ad5(0x1d3)],_0x1649ea[_0x3a8ad5(0x208)]])||constants[_0x3a8ad5(0x1c7)];if(!_0x571c78||_0x1649ea[_0x3a8ad5(0x1b5)](_0x571c78,''))return _0x3f9db8;const _0x21642d=_0x3f9db8['endsWith']('/')?_0x3f9db8:_0x1649ea[_0x3a8ad5(0x1d8)](_0x3f9db8,'/');return new URL(_0x571c78,_0x21642d)[_0x3a8ad5(0x1ed)]()[_0x3a8ad5(0x200)](/^https?:\/\//,'');}static[a60_0x29efb4(0x1df)](_0x469b2b){const _0x59f248=a60_0x29efb4,_0xcb9d78={'AfhgK':function(_0x3475af){return _0x3475af();},'tmPsQ':function(_0x47b5ca,_0x36022f,_0x87a00){return _0x47b5ca(_0x36022f,_0x87a00);},'wMPgH':'apis','YVFXp':_0x59f248(0x201),'lKuzu':'api','EsFCs':function(_0x3387e2,_0x24420b){return _0x3387e2===_0x24420b;},'JKoBZ':function(_0x4e7ef7,_0x339b26){return _0x4e7ef7+_0x339b26;}},_0x396352=_0xcb9d78[_0x59f248(0x1f7)](getBrowserstackCLI),_0x4e4b6d=_0xcb9d78['tmPsQ'](nestedKeyValue,_0x396352[_0x59f248(0x1da)]()[_0x59f248(0x1e8)](),[_0xcb9d78[_0x59f248(0x20e)],_0xcb9d78['YVFXp'],_0xcb9d78[_0x59f248(0x1c9)]])||constants[_0x59f248(0x1cd)];if(!_0x469b2b||_0xcb9d78[_0x59f248(0x1ea)](_0x469b2b,''))return _0x4e4b6d;const _0x193b8d=_0x4e4b6d[_0x59f248(0x1d2)]('/')?_0x4e4b6d:_0xcb9d78['JKoBZ'](_0x4e4b6d,'/');return new URL(_0x469b2b,_0x193b8d)[_0x59f248(0x1ed)]()['replace'](/^https?:\/\//,'');}static[a60_0x29efb4(0x20c)](_0x40caf7){const _0x5b88a5=a60_0x29efb4,_0x17b022={'uFTYm':function(_0x214836){return _0x214836();},'KLOkx':function(_0x268421,_0x5e465b,_0x4779c6){return _0x268421(_0x5e465b,_0x4779c6);},'XaXdF':_0x5b88a5(0x1b2),'mMWhc':_0x5b88a5(0x210),'AXpqA':_0x5b88a5(0x206),'gvqki':function(_0x485d08,_0x4f6d08){return _0x485d08===_0x4f6d08;},'KGptC':function(_0x33d96f,_0x204e33){return _0x33d96f+_0x204e33;}},_0x1b9954=_0x17b022['uFTYm'](getBrowserstackCLI),_0x215751=_0x17b022[_0x5b88a5(0x1fd)](nestedKeyValue,_0x1b9954['getInstance']()[_0x5b88a5(0x1e8)](),[_0x17b022[_0x5b88a5(0x1c1)],_0x17b022[_0x5b88a5(0x1b6)],_0x17b022['AXpqA']])||constants[_0x5b88a5(0x1d9)];if(!_0x40caf7||_0x17b022[_0x5b88a5(0x1c4)](_0x40caf7,''))return _0x215751;const _0x78cf66=_0x215751['endsWith']('/')?_0x215751:_0x17b022[_0x5b88a5(0x1e2)](_0x215751,'/');return new URL(_0x40caf7,_0x78cf66)[_0x5b88a5(0x1ed)]();}static[a60_0x29efb4(0x1c8)](_0x335108){const _0x50250e=a60_0x29efb4,_0x47346f={'msePC':function(_0x410dff){return _0x410dff();},'liICe':function(_0x274720,_0x564bed,_0x37d84d){return _0x274720(_0x564bed,_0x37d84d);},'AnTVO':_0x50250e(0x1b2),'EBOvN':_0x50250e(0x1bc),'Ukozi':'cdp','CMfJr':_0x50250e(0x1f5),'JrnDv':function(_0xf9e43a,_0x23424b){return _0xf9e43a===_0x23424b;},'BigyS':function(_0x17f69f,_0x56c3f8){return _0x17f69f+_0x56c3f8;},'jFkfc':'/playwright?caps='},_0x41a013=_0x47346f[_0x50250e(0x1fb)](getBrowserstackCLI),_0x1c639f=_0x47346f[_0x50250e(0x1fe)](nestedKeyValue,_0x41a013[_0x50250e(0x1da)]()[_0x50250e(0x1e8)](),[_0x47346f[_0x50250e(0x1f2)],_0x47346f[_0x50250e(0x1be)],_0x47346f['Ukozi']]),_0x4c6ebf=(_0x1c639f?_0x1c639f[_0x50250e(0x200)](/^https:/,_0x47346f['CMfJr']):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x515213;if(!_0x335108||_0x47346f['JrnDv'](_0x335108,''))_0x515213=_0x4c6ebf;else{const _0x74fdc4=_0x4c6ebf['endsWith']('/')?_0x4c6ebf:_0x47346f[_0x50250e(0x203)](_0x4c6ebf,'/');_0x515213=new URL(_0x335108,_0x74fdc4)[_0x50250e(0x1ed)]();}return!_0x515213['endsWith'](_0x47346f[_0x50250e(0x1c0)])&&(_0x515213+=_0x47346f[_0x50250e(0x1c0)]),_0x515213;}static[a60_0x29efb4(0x1e4)](_0x4488a4){const _0x42228a=a60_0x29efb4,_0x2ddda4={'PLDFh':function(_0x3487b4){return _0x3487b4();},'gtFhD':function(_0x49b75c,_0x41acfb,_0x2af06c){return _0x49b75c(_0x41acfb,_0x2af06c);},'GdHbX':_0x42228a(0x1b2),'KnItD':'automate','xGdZM':_0x42228a(0x1fc),'rMKcC':_0x42228a(0x1f5),'mBoBk':function(_0x5b1ee5,_0x5c65d2){return _0x5b1ee5===_0x5c65d2;},'NgcPX':function(_0x375e9a,_0x419206){return _0x375e9a+_0x419206;},'rkoTr':_0x42228a(0x1bf)},_0x53621c=_0x2ddda4[_0x42228a(0x1dc)](getBrowserstackCLI),_0x540d81=_0x2ddda4[_0x42228a(0x1c3)](nestedKeyValue,_0x53621c[_0x42228a(0x1da)]()['getConfig'](),[_0x2ddda4['GdHbX'],_0x2ddda4[_0x42228a(0x1cc)],_0x2ddda4[_0x42228a(0x1d4)]]),_0x31a13e=(_0x540d81?_0x540d81[_0x42228a(0x200)](/^https:/,_0x2ddda4[_0x42228a(0x1f3)]):null)||constants['PUPPETEER_HUB_URL'];let _0x4a076;if(!_0x4488a4||_0x2ddda4[_0x42228a(0x1c2)](_0x4488a4,''))_0x4a076=_0x31a13e;else{const _0x5974d5=_0x31a13e[_0x42228a(0x1d2)]('/')?_0x31a13e:_0x2ddda4[_0x42228a(0x1b9)](_0x31a13e,'/');_0x4a076=new URL(_0x4488a4,_0x5974d5)['toString']();}return!_0x4a076[_0x42228a(0x1d2)](_0x2ddda4[_0x42228a(0x209)])&&(_0x4a076+=_0x2ddda4[_0x42228a(0x209)]),_0x4a076;}}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
|
+
function a61_0x17cb(_0x2ff1bc,_0x16a813){const _0x2b1c28=a61_0x2b1c();return a61_0x17cb=function(_0x17cbd7,_0x4607b1){_0x17cbd7=_0x17cbd7-0x1a1;let _0x7b09c2=_0x2b1c28[_0x17cbd7];return _0x7b09c2;},a61_0x17cb(_0x2ff1bc,_0x16a813);}const a61_0x29a527=a61_0x17cb;(function(_0x4c1ec3,_0x788ae1){const _0x3f48f2=a61_0x17cb,_0x513138=_0x4c1ec3();while(!![]){try{const _0x1b1063=-parseInt(_0x3f48f2(0x1ec))/0x1*(-parseInt(_0x3f48f2(0x1e4))/0x2)+-parseInt(_0x3f48f2(0x1bd))/0x3+parseInt(_0x3f48f2(0x1cd))/0x4*(-parseInt(_0x3f48f2(0x1cf))/0x5)+parseInt(_0x3f48f2(0x1d7))/0x6+-parseInt(_0x3f48f2(0x1ce))/0x7+-parseInt(_0x3f48f2(0x208))/0x8*(-parseInt(_0x3f48f2(0x209))/0x9)+parseInt(_0x3f48f2(0x1ee))/0xa*(parseInt(_0x3f48f2(0x1c2))/0xb);if(_0x1b1063===_0x788ae1)break;else _0x513138['push'](_0x513138['shift']());}catch(_0x1ff3a8){_0x513138['push'](_0x513138['shift']());}}}(a61_0x2b1c,0xaa628));const logger=require('../../helpers/logger')[a61_0x29a527(0x1b7)],BrowserstackCLI=require(a61_0x29a527(0x200)),GrpcClient=require(a61_0x29a527(0x1b9)),constants=require('./constants');class ClientTroubleShootingService{static [a61_0x29a527(0x1b8)]=null;static [a61_0x29a527(0x1e0)]=new Set();static async['getErrorDetails'](_0x342ebb){const _0x17de38=a61_0x29a527,_0x731bf5={};_0x731bf5[_0x17de38(0x1aa)]=function(_0x2b13c2,_0x299df1){return _0x2b13c2!==_0x299df1;};const _0xabd99b=_0x731bf5;try{if(BrowserstackCLI[_0x17de38(0x1b1)]()[_0x17de38(0x1f1)]()){const _0x2a60df=await GrpcClient[_0x17de38(0x1b1)]()[_0x17de38(0x1c6)](_0x342ebb);if(_0xabd99b['BkHbb'](_0x2a60df,null)&&_0x2a60df[_0x17de38(0x1c3)]())return{'errorCode':_0x2a60df[_0x17de38(0x204)](),'errorMessage':_0x2a60df[_0x17de38(0x1fe)]()};return{};}return{};}catch(_0x9d81e1){return this['logError'](_0x17de38(0x1a5)+_0x342ebb+':',_0x9d81e1),{};}}static async['getAggregatedErrorCodes'](){const _0x1e1e18=a61_0x29a527,_0x12d34c={};_0x12d34c[_0x1e1e18(0x1f0)]=function(_0x4ed937,_0x3e83c5){return _0x4ed937!==_0x3e83c5;},_0x12d34c[_0x1e1e18(0x1b3)]=_0x1e1e18(0x1a8),_0x12d34c[_0x1e1e18(0x1d2)]=_0x1e1e18(0x1c8);const _0x513f60=_0x12d34c;try{if(BrowserstackCLI['getInstance']()['isRunning']()){const _0x56898a=await GrpcClient[_0x1e1e18(0x1b1)]()[_0x1e1e18(0x1d4)]();if(_0x513f60[_0x1e1e18(0x1f0)](_0x56898a,null)&&_0x56898a[_0x1e1e18(0x1c3)]()){const _0x3aed79=Buffer['from'](_0x56898a[_0x1e1e18(0x1d5)](),_0x513f60['ivtZr'])['toString'](),_0x2f1945=_0x3aed79?JSON['parse'](_0x3aed79):[],_0x23fb9b=_0x56898a[_0x1e1e18(0x1eb)](),_0x12625f=_0x56898a[_0x1e1e18(0x1df)](),_0x23d9e7=Buffer['from'](_0x56898a[_0x1e1e18(0x1d8)](),_0x513f60[_0x1e1e18(0x1b3)])['toString'](),_0x1e65e4=_0x23d9e7?JSON[_0x1e1e18(0x1b0)](_0x23d9e7):[],_0x396318={};return _0x396318[_0x1e1e18(0x1cb)]=_0x2f1945,_0x396318[_0x1e1e18(0x1c7)]=_0x23fb9b,_0x396318[_0x1e1e18(0x1bc)]=_0x12625f,_0x396318[_0x1e1e18(0x1c0)]=_0x1e65e4,_0x396318;}const _0x53bb7a={};return _0x53bb7a['errorCodes']=[],_0x53bb7a[_0x1e1e18(0x1c7)]='',_0x53bb7a[_0x1e1e18(0x1bc)]='',_0x53bb7a['errorCodesOccurredInCLI']=[],_0x53bb7a;}const _0x3dc426={};return _0x3dc426[_0x1e1e18(0x1cb)]=[],_0x3dc426[_0x1e1e18(0x1c7)]='',_0x3dc426[_0x1e1e18(0x1bc)]='',_0x3dc426[_0x1e1e18(0x1c0)]=[],_0x3dc426;}catch(_0x2ffb7c){this[_0x1e1e18(0x1bb)](_0x513f60[_0x1e1e18(0x1d2)],_0x2ffb7c);const _0x43c98f={};return _0x43c98f[_0x1e1e18(0x1cb)]=[],_0x43c98f['documentationLink']='',_0x43c98f[_0x1e1e18(0x1bc)]='',_0x43c98f['errorCodesOccurredInCLI']=[],_0x43c98f;}}static['logSituation'](_0x357a77,_0x580361){const _0xa68950=a61_0x29a527;logger[_0xa68950(0x1a3)](_0x357a77+':\x20'+_0x580361);}static[a61_0x29a527(0x1ba)](_0x1663a1){const _0x3925b0=a61_0x29a527,_0x43a76d={};_0x43a76d[_0x3925b0(0x207)]=function(_0x15e987,_0x191c7f){return _0x15e987!=_0x191c7f;},_0x43a76d[_0x3925b0(0x1b4)]=function(_0x4c4b97,_0x156726){return _0x4c4b97>_0x156726;},_0x43a76d[_0x3925b0(0x1dc)]=function(_0x2e4a59,_0x29ba17){return _0x2e4a59!=_0x29ba17;};const _0x583898=_0x43a76d,_0x5841e0=[];if(_0x583898[_0x3925b0(0x207)](_0x1663a1,null)&&_0x583898['JwZGJ'](_0x1663a1[_0x3925b0(0x1c0)],null)&&_0x583898[_0x3925b0(0x1b4)](_0x1663a1[_0x3925b0(0x1c0)][_0x3925b0(0x1be)],0x0))for(const _0x45f718 of _0x1663a1['errorCodesOccurredInCLI']){_0x583898[_0x3925b0(0x207)](_0x45f718[_0x3925b0(0x1f8)],null)&&_0x583898['zJbIt'](_0x45f718[_0x3925b0(0x1c4)],null)&&(_0x5841e0[_0x3925b0(0x1cc)](_0x45f718[_0x3925b0(0x1f8)]),this[_0x3925b0(0x1a7)](_0x45f718[_0x3925b0(0x1f8)],_0x45f718[_0x3925b0(0x1c4)]));}return _0x5841e0;}static[a61_0x29a527(0x1ca)](){const _0x4f3ea0=a61_0x29a527;return this[_0x4f3ea0(0x1b8)];}static[a61_0x29a527(0x1bb)](_0x140c4e,_0xf853e2){const _0x2aaeac=a61_0x29a527,_0x40f031={};_0x40f031[_0x2aaeac(0x1a1)]=function(_0x4e96b5,_0x20e2e1){return _0x4e96b5===_0x20e2e1;},_0x40f031['XgKLN']='object';const _0x1b32df=_0x40f031;if(_0x1b32df[_0x2aaeac(0x1a1)](typeof _0xf853e2,_0x1b32df[_0x2aaeac(0x1f6)]))try{logger['error'](_0x2aaeac(0x1d9)+_0x140c4e+'\x20'+JSON['stringify'](_0xf853e2));}catch(_0x51bd96){logger[_0x2aaeac(0x1ff)](_0x2aaeac(0x1d9)+_0x140c4e+'\x20'+_0xf853e2);}else logger['error'](_0x2aaeac(0x1d9)+_0x140c4e+'\x20'+_0xf853e2);}static async[a61_0x29a527(0x1d0)](_0x24c5d6){const _0x5a73cf=a61_0x29a527,_0x5b0fbc={};_0x5b0fbc[_0x5a73cf(0x1d3)]=_0x5a73cf(0x203),_0x5b0fbc['kikuk']=function(_0x8638e,_0xb716f8){return _0x8638e===_0xb716f8;},_0x5b0fbc[_0x5a73cf(0x1fc)]=_0x5a73cf(0x1e8),_0x5b0fbc[_0x5a73cf(0x1fa)]=_0x5a73cf(0x1db);const _0x396372=_0x5b0fbc,_0xe13610=await this[_0x5a73cf(0x1d1)](_0x396372[_0x5a73cf(0x1d3)]);if(!_0xe13610||_0x396372[_0x5a73cf(0x1da)](Object[_0x5a73cf(0x1c5)](_0xe13610)['length'],0x0)){this['logError'](_0x396372[_0x5a73cf(0x1fc)],_0xe13610);return;}this['logSituation'](_0xe13610['errorCode'],_0xe13610[_0x5a73cf(0x1c4)][_0x5a73cf(0x1f9)](_0x396372[_0x5a73cf(0x1fa)],_0x24c5d6));}static async[a61_0x29a527(0x1ed)](){const _0x252747=a61_0x29a527,_0x5ebd35={};_0x5ebd35[_0x252747(0x1e9)]=_0x252747(0x1b5),_0x5ebd35[_0x252747(0x1f5)]=function(_0x146b1c,_0x5818a8){return _0x146b1c===_0x5818a8;},_0x5ebd35[_0x252747(0x1e3)]=_0x252747(0x1fb);const _0x2b3db2=_0x5ebd35,_0x107520=await this[_0x252747(0x1d1)](_0x2b3db2[_0x252747(0x1e9)]);if(!_0x107520||_0x2b3db2[_0x252747(0x1f5)](Object[_0x252747(0x1c5)](_0x107520)[_0x252747(0x1be)],0x0)){this[_0x252747(0x1bb)](_0x2b3db2[_0x252747(0x1e3)],_0x107520);return;}this['logSituation'](_0x107520['errorCode'],_0x107520[_0x252747(0x1c4)]);}static async[a61_0x29a527(0x1f3)](){const _0x9bcb76=a61_0x29a527,_0x4efb2c={};_0x4efb2c[_0x9bcb76(0x1a2)]=_0x9bcb76(0x1ae),_0x4efb2c[_0x9bcb76(0x1a9)]=function(_0x222bc8,_0x260c59){return _0x222bc8===_0x260c59;},_0x4efb2c[_0x9bcb76(0x1a6)]=_0x9bcb76(0x201);const _0x2a5763=_0x4efb2c,_0x4f4789=await this[_0x9bcb76(0x1d1)](_0x2a5763[_0x9bcb76(0x1a2)]);if(!_0x4f4789||_0x2a5763[_0x9bcb76(0x1a9)](Object['keys'](_0x4f4789)[_0x9bcb76(0x1be)],0x0)){this[_0x9bcb76(0x1bb)](_0x2a5763['eihSR'],_0x4f4789);return;}this[_0x9bcb76(0x1a7)](_0x4f4789[_0x9bcb76(0x1f8)],_0x4f4789['errorMessage']);}static async[a61_0x29a527(0x1b2)](){const _0x19603e=a61_0x29a527,_0x35d517={};_0x35d517[_0x19603e(0x1ad)]=_0x19603e(0x1e1),_0x35d517[_0x19603e(0x1e2)]=function(_0x55cf33,_0x4a4d43){return _0x55cf33===_0x4a4d43;},_0x35d517[_0x19603e(0x205)]='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.';const _0x51a906=_0x35d517,_0x1eec2b=await this[_0x19603e(0x1d1)](_0x51a906[_0x19603e(0x1ad)]);if(!_0x1eec2b||_0x51a906[_0x19603e(0x1e2)](Object['keys'](_0x1eec2b)[_0x19603e(0x1be)],0x0)){this[_0x19603e(0x1bb)](_0x51a906[_0x19603e(0x205)],_0x1eec2b);return;}this[_0x19603e(0x1a7)](_0x1eec2b[_0x19603e(0x1f8)],_0x1eec2b[_0x19603e(0x1c4)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x412167=a61_0x29a527,_0x4f27e0={};_0x4f27e0[_0x412167(0x1c1)]='.browserstack\x20folder\x20not\x20accessible',_0x4f27e0['aYjlB']=function(_0x145163,_0x557048){return _0x145163===_0x557048;},_0x4f27e0[_0x412167(0x1dd)]=_0x412167(0x1e5);const _0x3960a0=_0x4f27e0,_0xc4abd8=constants[_0x412167(0x1ef)][_0x3960a0[_0x412167(0x1c1)]];if(!_0xc4abd8||_0x3960a0[_0x412167(0x1f4)](Object[_0x412167(0x1c5)](_0xc4abd8)['length'],0x0)){this['logError'](_0x3960a0[_0x412167(0x1dd)],_0xc4abd8);return;}this[_0x412167(0x1e0)][_0x412167(0x1fd)](_0xc4abd8[0x0]),this[_0x412167(0x1a7)](_0xc4abd8[0x0],_0xc4abd8[0x1]);}static async[a61_0x29a527(0x1b6)](_0x4ac3cc){const _0x58b7bd=a61_0x29a527,_0x388106={};_0x388106[_0x58b7bd(0x1e7)]=_0x58b7bd(0x1bf),_0x388106[_0x58b7bd(0x1f7)]=function(_0x20ff90,_0x42e14d){return _0x20ff90===_0x42e14d;},_0x388106[_0x58b7bd(0x1f2)]=_0x58b7bd(0x1e6),_0x388106[_0x58b7bd(0x1af)]=_0x58b7bd(0x1a4);const _0x23c236=_0x388106,_0x55989f=await this[_0x58b7bd(0x1d1)](_0x23c236[_0x58b7bd(0x1e7)]);if(!_0x55989f||_0x23c236[_0x58b7bd(0x1f7)](Object[_0x58b7bd(0x1c5)](_0x55989f)[_0x58b7bd(0x1be)],0x0)){this[_0x58b7bd(0x1bb)](_0x23c236[_0x58b7bd(0x1f2)],_0x55989f);return;}const _0x1527d1=_0x55989f[_0x58b7bd(0x1c4)]['replace'](_0x23c236[_0x58b7bd(0x1af)],_0x4ac3cc);this[_0x58b7bd(0x1a7)](_0x55989f['errorCode'],_0x1527d1);}static async[a61_0x29a527(0x1c9)](){const _0x186a1e=a61_0x29a527,_0x428a48={};_0x428a48[_0x186a1e(0x1ab)]=function(_0x3567df,_0x3deb3c){return _0x3567df>_0x3deb3c;},_0x428a48['BWAFU']=_0x186a1e(0x1de),_0x428a48[_0x186a1e(0x206)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x300b6d=_0x428a48,_0x3f6769=await this['getAggregatedErrorCodes'](),_0x307034=this[_0x186a1e(0x1ba)](_0x3f6769),_0x42e775=Array[_0x186a1e(0x202)](_0x3f6769[_0x186a1e(0x1cb)])?_0x3f6769[_0x186a1e(0x1cb)]:[],_0x9fe2eb=_0x300b6d[_0x186a1e(0x1ab)](this[_0x186a1e(0x1e0)]['size'],0x0)?Array[_0x186a1e(0x1ea)](this[_0x186a1e(0x1e0)]):[],_0x45a696=new Set([..._0x42e775,..._0x307034,..._0x9fe2eb]),_0x427a7d=Array[_0x186a1e(0x1ea)](_0x45a696);if(_0x300b6d[_0x186a1e(0x1ab)](_0x427a7d['length'],0x0)){const _0x2b396b=_0x3f6769[_0x186a1e(0x1bc)][_0x186a1e(0x1f9)](_0x300b6d[_0x186a1e(0x1ac)],_0x427a7d['join'](',\x20'))[_0x186a1e(0x1f9)](_0x300b6d[_0x186a1e(0x206)],_0x3f6769[_0x186a1e(0x1c7)]);logger[_0x186a1e(0x1a3)](_0x2b396b),this['cachedErrorCodes']=_0x427a7d;}}}module[a61_0x29a527(0x1d6)]=ClientTroubleShootingService;function a61_0x2b1c(){const _0xde95a6=['GuJAH','JwZGJ','1852856oUJZQZ','9XySpcl','ygxKC','BrNyg','warn','{ENV_VAR}','Error\x20in\x20getting\x20error\x20details\x20for\x20','eihSR','logSituation','base64','mcayP','BkHbb','yITFP','BWAFU','hnHkQ','browserstack\x20cloud\x20not\x20reachable','KnRMT','parse','getInstance','reportSSLCertIssue','ivtZr','vjKlY','Session\x20Linking\x20Issue','reportConflictingEnvVarIssue','winstonLogger','cachedErrorCodes','../v2/grpcClient','checkForErrorsOccuredInCLI','logError','finalErrorMessage','1289337UpYWVs','length','conflicting\x20env\x20var\x20detected','errorCodesOccurredInCLI','KtRDQ','3827307cIsXJN','getSuccess','errorMessage','keys','reportClientTroubleshootingError','documentationLink','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','reportFinalDetectionState','getCachedErrorCodes','errorCodes','push','1142840vpgSqO','1333171SEhTRG','10clFPzF','reportProcessInterruptionSituation','getErrorDetails','BBnAK','qGtiH','getAggregatedClientTroubleshootingErrors','getErrorCodes','exports','1585986mRbCQl','getErrorCodesOccurredInCli','[ClientTroubleShootingService]\x20','kikuk','{SIGNAL}','zJbIt','QEBgk','{ERROR_CODES}','getFinalErrorMessage','errorCodesOccurredWhenCLINotRunning','ssl\x20cert\x20issue','mITIk','mhnvq','13418bCWWFr','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','Conflicting\x20Env\x20Var\x20details\x20not\x20found','GGnZj','Process\x20Interruption\x20details\x20not\x20found:','iMqUG','from','getDocumentationLink','104bpwArz','reportSessionLinkingIssue','20ybwAOA','CLIENT_TROUBLESHOOTING_HASH','UbdLD','isRunning','aOaaY','reportConnectivityIssue','aYjlB','WNkSo','XgKLN','aBVwH','errorCode','replace','HmiRR','Session\x20Linking\x20Issue\x20details\x20not\x20found','tJIUP','add','getErrorMessage','error','../v2/browserstackCLI','Connectivity\x20Issue\x20details\x20not\x20found','isArray','Process\x20Interruption','getErrorCode','uvsaG'];a61_0x2b1c=function(){return _0xde95a6;};return a61_0x2b1c();}
|