browserstack-node-sdk 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- 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/caCertHelper.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/driverInitErrorReporter.js +1 -0
- 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 -1
- 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
|
-
const
|
|
1
|
+
const a53_0x2d288c=a53_0x1e59;(function(_0x34f758,_0x2ffa2f){const _0x5a15af=a53_0x1e59,_0x53521c=_0x34f758();while(!![]){try{const _0x3e1663=parseInt(_0x5a15af(0x81))/0x1*(-parseInt(_0x5a15af(0xa4))/0x2)+-parseInt(_0x5a15af(0xb0))/0x3+parseInt(_0x5a15af(0x87))/0x4*(parseInt(_0x5a15af(0xc2))/0x5)+-parseInt(_0x5a15af(0x85))/0x6+parseInt(_0x5a15af(0xc5))/0x7*(-parseInt(_0x5a15af(0xc3))/0x8)+-parseInt(_0x5a15af(0x75))/0x9+parseInt(_0x5a15af(0xb6))/0xa*(parseInt(_0x5a15af(0x9b))/0xb);if(_0x3e1663===_0x2ffa2f)break;else _0x53521c['push'](_0x53521c['shift']());}catch(_0x3c2967){_0x53521c['push'](_0x53521c['shift']());}}}(a53_0x25e0,0x3ba61));const path=require('path'),url=require('url'),util=require(a53_0x2d288c(0xca)),{nestedKeyValue,isFalse}=require(a53_0x2d288c(0x9a)),{debug,getPlatformDetails}=require('../../helpers/test-observability/utils'),logger=require(a53_0x2d288c(0xa8))[a53_0x2d288c(0x8b)],constants=require(a53_0x2d288c(0x7c)),BrowserstackCLI=require(a53_0x2d288c(0x84)),AutomationFrameworkState=require(a53_0x2d288c(0x90)),HookState=require(a53_0x2d288c(0x7e)),getBrowserFromWSEndpoint=_0x4e737b=>{const _0x3b590f=a53_0x2d288c,_0x12796a={'aaFrP':_0x3b590f(0x97),'CIUCo':function(_0x1ca07b,_0x4e2671){return _0x1ca07b(_0x4e2671);}};try{const _0x2189fb=url[_0x3b590f(0x77)](_0x4e737b),_0x2cf13a=new URLSearchParams(_0x2189fb[_0x3b590f(0xaa)]),_0x30b775=Object[_0x3b590f(0xd0)](_0x2cf13a['entries']()),_0x4c845a=JSON['parse'](_0x30b775[_0x3b590f(0xa0)]);if(_0x4c845a&&(_0x4c845a['browser']||_0x4c845a[_0x3b590f(0xc4)]))return _0x4c845a[_0x3b590f(0x94)]||_0x4c845a[_0x3b590f(0xc4)];return _0x12796a[_0x3b590f(0xbd)];}catch(_0x562ce5){_0x12796a[_0x3b590f(0x83)](debug,_0x3b590f(0xc7)+_0x562ce5[_0x3b590f(0xbe)]());}},getCloudProviderFromWsEndpoint=_0x54f349=>{const _0x23154b=a53_0x2d288c,_0x2af675={};_0x2af675[_0x23154b(0x8e)]=_0x23154b(0xbb),_0x2af675['vbxOM']=_0x23154b(0xc0);const _0x263f7a=_0x2af675;if(_0x54f349['includes'](constants[_0x23154b(0x82)])||_0x54f349[_0x23154b(0xa7)](constants[_0x23154b(0xcb)]))return _0x263f7a['lkHYO'];return _0x263f7a[_0x23154b(0x8d)];},a53_0x5397d8={};function a53_0x25e0(){const _0x15fedb=['currentSessionDetails','winstonLogger','result','vbxOM','lkHYO','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','../v2/state/automationFrameworkState.js','platformName','turboscale','qAlxN','browser','test','sessionId','chrome','product','string','../../helpers/helper','14796529JDBRgk','cloudProvider','bsParams','ilyTi','patchConnection','caps','Error\x20in\x20patchConnection:\x20','EbqyB','PLAYWRIGHT_DISPATCH','726TvbQGJ','qAwPb','UQAcf','includes','../../helpers/logger','version','query','bStackParams','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','TXuHi','function','Error\x20in\x20setupBrowserDetails:\x20','985779VEbISX','getAutomationFramework','QPGoG','local_grid','wJKnr','capabilities','10HCBXOZ','_connection','platformVersion','KzETP','getDetails','browserstack','bmNob','aaFrP','toString','exports','unknown_grid','sessionError','340yEesDH','383832acNJDT','browserName','63vJaNSq','IyCva','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','bsSessionId','Setting\x20session\x20id\x20received\x20from\x20BS\x20','util','BSTACK_ATS_URL','gvfVy','apply','format','ylZPD','fromEntries','ZReBa','assign','VULkK','4267710TfFlvn','platform','parse','connection','params','_bstackPatched','AlfMT','../utils/constants','isRunning','../v2/state/hookState.js','platform_version','ATS_WSS_URL_REGEX','695ahYstZ','BSTACK_URL','CIUCo','../v2/browserstackCLI','275250aGsfNY','automate','25408AaTCKc','platformDetails','message'];a53_0x25e0=function(){return _0x15fedb;};return a53_0x25e0();}function a53_0x1e59(_0x41bb1b,_0x4d252f){const _0x25e022=a53_0x25e0();return a53_0x1e59=function(_0x1e59f7,_0x2a6760){_0x1e59f7=_0x1e59f7-0x72;let _0x50e858=_0x25e022[_0x1e59f7];return _0x50e858;},a53_0x1e59(_0x41bb1b,_0x4d252f);}a53_0x5397d8['cloudProvider']=undefined,a53_0x5397d8[a53_0x2d288c(0xc8)]=undefined,a53_0x5397d8[a53_0x2d288c(0x94)]=undefined,a53_0x5397d8['browser_version']=undefined,a53_0x5397d8[a53_0x2d288c(0x76)]=undefined,a53_0x5397d8[a53_0x2d288c(0x7f)]=undefined,a53_0x5397d8[a53_0x2d288c(0x98)]=undefined,a53_0x5397d8[a53_0x2d288c(0xb5)]={};class PuppeteerSessionDetails{static ['currentSessionDetails']=a53_0x5397d8;constructor(){const _0x7c9f52=a53_0x2d288c,_0x51e06d={};_0x51e06d[_0x7c9f52(0x72)]=_0x7c9f52(0xac);const _0x595c38=_0x51e06d;throw new Error(_0x595c38[_0x7c9f52(0x72)]);}static [a53_0x2d288c(0xc1)]=null;static async['setupBrowserDetails'](_0x661f4a,_0xda63c8){const _0x43822b=a53_0x2d288c,_0x55b097={'wJKnr':_0x43822b(0x97),'AlfMT':function(_0x29cde9,_0x383a0c){return _0x29cde9===_0x383a0c;},'gvfVy':_0x43822b(0xae),'PfqpV':_0x43822b(0xb3),'KzETP':function(_0x302645,_0x1b12df){return _0x302645(_0x1b12df);},'ilyTi':function(_0x167fab,_0x4c53cc){return _0x167fab===_0x4c53cc;},'ylZPD':'browserstack','IyCva':_0x43822b(0x92),'bmNob':_0x43822b(0x86),'EbqyB':function(_0x55a7fb,_0x2fa361){return _0x55a7fb(_0x2fa361);},'UQAcf':function(_0x5d69d2){return _0x5d69d2();}};try{let _0x3935a1=_0x55b097[_0x43822b(0xb4)],_0x4b2416=null;_0x661f4a&&_0x55b097[_0x43822b(0x7b)](typeof _0x661f4a['version'],_0x55b097[_0x43822b(0xcc)])&&(_0x4b2416=await _0x661f4a[_0x43822b(0xa9)]());let _0x33d9c5=null,_0x37ce89=null,_0x5052b1=null,_0x5bf016=_0x55b097['PfqpV'];if(_0xda63c8){_0x5bf016=_0x55b097[_0x43822b(0xb9)](getCloudProviderFromWsEndpoint,_0xda63c8);if(_0x55b097[_0x43822b(0x9e)](_0x5bf016,_0x55b097[_0x43822b(0xcf)]))_0x5052b1=constants[_0x43822b(0x80)]?constants[_0x43822b(0x80)][_0x43822b(0x95)](_0xda63c8)?_0x55b097[_0x43822b(0xc6)]:_0x55b097[_0x43822b(0xbc)]:_0x55b097[_0x43822b(0xbc)],_0x3935a1=_0x55b097[_0x43822b(0xa2)](getBrowserFromWSEndpoint,_0xda63c8)||_0x3935a1,_0x33d9c5=this[_0x43822b(0x8a)][_0x43822b(0x76)],_0x37ce89=this[_0x43822b(0x8a)][_0x43822b(0x7f)];else{const _0x689017=await _0x55b097['UQAcf'](getPlatformDetails);_0x33d9c5=_0x689017[_0x43822b(0x91)],_0x37ce89=_0x689017[_0x43822b(0xb8)];}}else{const _0x861cdf=await _0x55b097[_0x43822b(0xa6)](getPlatformDetails);_0x33d9c5=_0x861cdf[_0x43822b(0x91)],_0x37ce89=_0x861cdf[_0x43822b(0xb8)];}const _0x47437c={};_0x47437c['browser']=_0x3935a1,_0x47437c['browser_version']=_0x4b2416,_0x47437c[_0x43822b(0xb5)]={},_0x47437c[_0x43822b(0x76)]=_0x33d9c5,_0x47437c['platform_version']=_0x37ce89,_0x47437c[_0x43822b(0x98)]=_0x5052b1;const _0x1d9ea1=_0x47437c,_0x1b2070={};_0x1b2070[_0x43822b(0x9c)]=_0x5bf016,this['currentSessionDetails']=Object[_0x43822b(0x73)]({},this['currentSessionDetails'],_0x1b2070,_0x1d9ea1);}catch(_0x4fd432){_0x55b097[_0x43822b(0xb9)](debug,_0x43822b(0xaf)+util[_0x43822b(0xce)](_0x4fd432)),this['sessionError']=_0x4fd432['toString']();}}static[a53_0x2d288c(0x9f)](_0x8ddc3){const _0xd1090e=a53_0x2d288c,_0x5204d1={'QPGoG':function(_0x583bac,_0xb3b37){return _0x583bac===_0xb3b37;},'VULkK':_0xd1090e(0x99),'bYIrG':function(_0x5c4802,_0x4aebfa){return _0x5c4802(_0x4aebfa);},'qAwPb':function(_0x46885b,_0x59856b){return _0x46885b===_0x59856b;},'qAlxN':function(_0x436f17,_0x1f1e60){return _0x436f17(_0x1f1e60);},'TXuHi':'[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture'},_0x1a607b=this;try{const _0x97aae4=_0x8ddc3[_0xd1090e(0xb7)]||_0x8ddc3[_0xd1090e(0x78)];if(!_0x97aae4||_0x97aae4[_0xd1090e(0x7a)])return;const _0x1e3192=_0x97aae4['onmessage'];_0x97aae4['onmessage']=function(_0x37324a){const _0x10115d=_0xd1090e;try{const _0x18b988=_0x5204d1[_0x10115d(0xb2)](typeof _0x37324a,_0x5204d1[_0x10115d(0x74)])?JSON[_0x10115d(0x77)](_0x37324a):_0x37324a,_0x23ccab=_0x18b988?.[_0x10115d(0xab)]||_0x18b988?.[_0x10115d(0x9d)]||_0x18b988?.[_0x10115d(0x79)]?.[_0x10115d(0x9d)]||_0x18b988?.['params']?.[_0x10115d(0xab)]||_0x18b988?.[_0x10115d(0x8c)]?.[_0x10115d(0x9d)]||_0x18b988?.[_0x10115d(0x8c)]?.[_0x10115d(0xab)];if(_0x23ccab){if(BrowserstackCLI['getInstance']()[_0x10115d(0x7d)]()){const _0x4f260a={};_0x4f260a[_0x10115d(0x89)]=_0x18b988,BrowserstackCLI['getInstance']()[_0x10115d(0xb1)]()['trackEvent'](AutomationFrameworkState[_0x10115d(0xa3)],HookState['POST'],_0x4f260a);}else{const _0x1723af=_0x23ccab[_0x10115d(0x96)],_0x190f28=_0x23ccab[_0x10115d(0x88)];_0x190f28&&(_0x5204d1['bYIrG'](debug,'Setting\x20platform\x20details\x20received\x20from\x20BS:\x20'+JSON['stringify'](_0x190f28)),_0x1a607b[_0x10115d(0x8a)][_0x10115d(0x76)]=_0x190f28['platformName'],_0x1a607b[_0x10115d(0x8a)][_0x10115d(0x7f)]=_0x190f28['platformVersion']),_0x1723af&&(_0x5204d1['bYIrG'](debug,_0x10115d(0xc9)+_0x1723af),_0x1a607b[_0x10115d(0x8a)][_0x10115d(0xc8)]=_0x1723af);}_0x5204d1[_0x10115d(0xa5)](typeof _0x37324a,_0x5204d1[_0x10115d(0x74)])&&(delete _0x18b988[_0x10115d(0xab)],delete _0x18b988[_0x10115d(0x9d)],_0x18b988[_0x10115d(0x79)]&&(delete _0x18b988[_0x10115d(0x79)][_0x10115d(0x9d)],delete _0x18b988[_0x10115d(0x79)][_0x10115d(0xab)]),_0x18b988[_0x10115d(0x8c)]&&(delete _0x18b988[_0x10115d(0x8c)][_0x10115d(0x9d)],delete _0x18b988['result']['bStackParams']));}}catch(_0x49f299){_0x5204d1[_0x10115d(0x93)](debug,_0x10115d(0x8f)+_0x49f299[_0x10115d(0x89)]);}return _0x1e3192?.[_0x10115d(0xcd)](this,arguments);},_0x97aae4[_0xd1090e(0x7a)]=!![],logger['debug'](_0x5204d1[_0xd1090e(0xad)]);}catch(_0x5b83cc){_0x5204d1[_0xd1090e(0x93)](debug,_0xd1090e(0xa1)+util[_0xd1090e(0xce)](_0x5b83cc)),_0x1a607b[_0xd1090e(0xc1)]=_0x5b83cc[_0xd1090e(0xbe)]();}}static[a53_0x2d288c(0xba)](){const _0x4da5c7=a53_0x2d288c;return this[_0x4da5c7(0x8a)];}}module[a53_0x2d288c(0xbf)]=PuppeteerSessionDetails;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x192d7c=a54_0x101d;(function(_0x4ca883,_0x3fe3fa){const _0x5074a0=a54_0x101d,_0x3e6d87=_0x4ca883();while(!![]){try{const _0x112182=parseInt(_0x5074a0(0x186))/0x1*(-parseInt(_0x5074a0(0x18b))/0x2)+-parseInt(_0x5074a0(0x194))/0x3+parseInt(_0x5074a0(0x16e))/0x4*(-parseInt(_0x5074a0(0x170))/0x5)+parseInt(_0x5074a0(0x18a))/0x6+-parseInt(_0x5074a0(0x172))/0x7+-parseInt(_0x5074a0(0x16d))/0x8+parseInt(_0x5074a0(0x198))/0x9*(parseInt(_0x5074a0(0x179))/0xa);if(_0x112182===_0x3fe3fa)break;else _0x3e6d87['push'](_0x3e6d87['shift']());}catch(_0xba2e80){_0x3e6d87['push'](_0x3e6d87['shift']());}}}(a54_0x22ea,0x81ccf));function a54_0x22ea(){const _0x2a06d3=['[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','getPackageVersion','../utils/puppeteer-patcher','getInstance','bootstrap','147639BNLSMv','__workerDetails','skipSessionName','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','3059382TaUoNM','12fgMboU','util','skipSessionStatus','currentTest','testInfo','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','winstonLogger','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','55782RpAvYq','jestConfig','isPageFixture','JEST','2628hYsrbG','../v2/browserstackCLI','1939016bFFKqz','10924kXJhXt','puppeteer','1340ozBzQH','workerInfo','6850487etLOvc','__skipSessionName','setFrameworkDetail','BROWSERSTACK_PUPPETEER','../v2/cliUtils','../../helpers/testhub/utils','format','98600IFIVHa','true','debug','../../helpers/helper','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','initializePuppeteerPatching','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','env'];a54_0x22ea=function(){return _0x2a06d3;};return a54_0x22ea();}const {isTrue,isBrowserstackInfra}=require(a54_0x192d7c(0x17c)),setKeepAlive=require('../../helpers/setKeepAlive'),util=require(a54_0x192d7c(0x18c)),logger=require('../../helpers/logger')[a54_0x192d7c(0x191)],{shouldProcessEventForTesthub}=require(a54_0x192d7c(0x177)),{addRequestSpy}=require('../../helpers/test-observability/utils'),a54_0x10e5b2={};a54_0x10e5b2[a54_0x192d7c(0x171)]=undefined,a54_0x10e5b2[a54_0x192d7c(0x18e)]={},a54_0x10e5b2['o11ySyncDone']=![],a54_0x10e5b2['pwPage']=null,a54_0x10e5b2[a54_0x192d7c(0x196)]=![],a54_0x10e5b2[a54_0x192d7c(0x18e)]['id']=undefined,a54_0x10e5b2[a54_0x192d7c(0x18e)][a54_0x192d7c(0x18f)]=undefined;function a54_0x101d(_0x2be1b6,_0x1b0491){const _0x22eaa9=a54_0x22ea();return a54_0x101d=function(_0x101d0b,_0x313e2f){_0x101d0b=_0x101d0b-0x16d;let _0x20e340=_0x22eaa9[_0x101d0b];return _0x20e340;},a54_0x101d(_0x2be1b6,_0x1b0491);}const workerDetails=a54_0x10e5b2;global[a54_0x192d7c(0x187)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();if(global[a54_0x192d7c(0x195)])try{isBrowserstackInfra()?(global[a54_0x192d7c(0x173)]=isTrue(global[a54_0x192d7c(0x195)]?.[a54_0x192d7c(0x188)]),global['__skipSessionStatus']=isTrue(global[a54_0x192d7c(0x195)]?.[a54_0x192d7c(0x18d)])):(global[a54_0x192d7c(0x173)]=!![],global['__skipSessionStatus']=!![]);const helper=require(a54_0x192d7c(0x17c)),puppeteerVersion=helper[a54_0x192d7c(0x182)](a54_0x192d7c(0x16f))||helper[a54_0x192d7c(0x182)]('puppeteer-core');if(puppeteerVersion)try{logger[a54_0x192d7c(0x17b)](a54_0x192d7c(0x192)),puppeteerPatcher=require(a54_0x192d7c(0x183)),puppeteerPatcher[a54_0x192d7c(0x17e)](global['jestConfig']),logger[a54_0x192d7c(0x17b)](a54_0x192d7c(0x189));}catch(a54_0x366725){logger['debug'](a54_0x192d7c(0x193)+util[a54_0x192d7c(0x178)](a54_0x366725));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x192d7c(0x199)),CLIUtils=require(a54_0x192d7c(0x176)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI[a54_0x192d7c(0x184)]()['isCliEnabled']()&&(logger[a54_0x192d7c(0x17b)]('[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker'),process[a54_0x192d7c(0x180)][a54_0x192d7c(0x175)]=a54_0x192d7c(0x17a),CLIUtils[a54_0x192d7c(0x174)](FRAMEWORKS[a54_0x192d7c(0x197)],FRAMEWORKS['PUPPETEER']),BrowserstackCLI[a54_0x192d7c(0x184)]()[a54_0x192d7c(0x185)]()['catch'](_0x12c983=>{const _0x19b23b=a54_0x192d7c;logger[_0x19b23b(0x17b)](_0x19b23b(0x17f)+util[_0x19b23b(0x178)](_0x12c983));}));}catch(a54_0x3241ca){logger[a54_0x192d7c(0x17b)](a54_0x192d7c(0x17d)+util[a54_0x192d7c(0x178)](a54_0x3241ca));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x780f84){logger['debug'](a54_0x192d7c(0x190)+util[a54_0x192d7c(0x178)](a54_0x780f84));}logger['debug'](a54_0x192d7c(0x181));
|
package/src/bin/runner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a55_0x4eb42f=a55_0x226c;(function(_0x30d045,_0xe471d3){const _0x219d09=a55_0x226c,_0x29363b=_0x30d045();while(!![]){try{const _0x29ba46=parseInt(_0x219d09(0xcf))/0x1+-parseInt(_0x219d09(0x131))/0x2*(-parseInt(_0x219d09(0xc9))/0x3)+-parseInt(_0x219d09(0x120))/0x4+-parseInt(_0x219d09(0xf5))/0x5*(parseInt(_0x219d09(0x13f))/0x6)+parseInt(_0x219d09(0xdb))/0x7+parseInt(_0x219d09(0xe7))/0x8+parseInt(_0x219d09(0x119))/0x9*(-parseInt(_0x219d09(0x129))/0xa);if(_0x29ba46===_0xe471d3)break;else _0x29363b['push'](_0x29363b['shift']());}catch(_0x1aae02){_0x29363b['push'](_0x29363b['shift']());}}}(a55_0x4f3f,0xc4005));function a55_0x226c(_0x33687e,_0x287071){const _0x4f3ff0=a55_0x4f3f();return a55_0x226c=function(_0x226cd0,_0x433982){_0x226cd0=_0x226cd0-0xa6;let _0x927e1b=_0x4f3ff0[_0x226cd0];return _0x927e1b;},a55_0x226c(_0x33687e,_0x287071);}const fs=require('fs'),path=require('path'),util=require(a55_0x4eb42f(0xde)),spawn=require('child_process')[a55_0x4eb42f(0xb5)],{requireModule}=require('../helpers/helper'),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0x4eb42f(0x143))[a55_0x4eb42f(0xd0)],helper=require(a55_0x4eb42f(0x116)),utilities=require(a55_0x4eb42f(0xe1)),{default:BrowserStackSetup}=require(a55_0x4eb42f(0xe0)),{FRAMEWORKS}=require(a55_0x4eb42f(0xbf)),runIntegrations=require(a55_0x4eb42f(0x104)),yargs=require('yargs'),Constants=require(a55_0x4eb42f(0xfa)),BrowserstackCLI=require(a55_0x4eb42f(0x127)),{isNewman}=require(a55_0x4eb42f(0xfb)),logger=require(a55_0x4eb42f(0xd1))[a55_0x4eb42f(0x115)],origArgs=Object[a55_0x4eb42f(0xc5)]([],process[a55_0x4eb42f(0x11f)]),captureError=async(_0x2a2738,_0x409d80,_0x54d22e,_0x10f6fc=null,_0x4d6747=![])=>{const _0x3ef4de=a55_0x4eb42f,_0x40e288={'UXzVp':function(_0x41ce8e,_0x40c3d8,_0x29a019,_0x159c2e){return _0x41ce8e(_0x40c3d8,_0x29a019,_0x159c2e);},'VYcBd':'SDKTestSuccessful'};try{logger[_0x3ef4de(0xf3)](_0x3ef4de(0x107)+origArgs[_0x3ef4de(0xcc)]('\x20')),await _0x40e288[_0x3ef4de(0x121)](_0x2a2738,_0x409d80,_0x10f6fc,_0x54d22e);}catch(_0x305d56){process[_0x3ef4de(0xa6)]=0x1,logger[_0x3ef4de(0xea)](util['format'](_0x305d56));const _0x409c11={'globalException':util[_0x3ef4de(0x12d)]('%j',_0x305d56)};PerformanceTester[_0x3ef4de(0xef)](PerformanceEvents[_0x3ef4de(0x135)],![],util['format'](_0x305d56));if(helper[_0x3ef4de(0x148)](global[_0x3ef4de(0x12e)])&&helper[_0x3ef4de(0x148)](global['framework']))return;try{utilities[_0x3ef4de(0x139)](_0x40e288[_0x3ef4de(0x130)],_0x409c11,global[_0x3ef4de(0x12e)],global['framework']);}catch(_0x36b1b1){logger[_0x3ef4de(0xe9)](_0x3ef4de(0x122)+_0x36b1b1['stack']);}try{await helper[_0x3ef4de(0x10d)](global[_0x3ef4de(0x12e)]);}catch(_0x57f71c){logger[_0x3ef4de(0xe9)](_0x3ef4de(0xbb)+_0x57f71c['stack']);}PerformanceTester[_0x3ef4de(0xef)](PerformanceEvents[_0x3ef4de(0x135)],![],util[_0x3ef4de(0x12d)](_0x305d56));}finally{!_0x4d6747&&await BrowserstackCLI[_0x3ef4de(0x133)]()['stop'](),PerformanceTester[_0x3ef4de(0xb8)](PerformanceEvents[_0x3ef4de(0xee)]);}};try{const browserstackFolderPath=path[a55_0x4eb42f(0xcc)](helper[a55_0x4eb42f(0x114)](),'.browserstack');if(fs[a55_0x4eb42f(0xbd)](browserstackFolderPath)){const filePath=path[a55_0x4eb42f(0xcc)](browserstackFolderPath,'.local-not-set.json');fs[a55_0x4eb42f(0xbd)](filePath)&&fs[a55_0x4eb42f(0xfe)](filePath);}}catch(a55_0x33925e){logger['debug'](a55_0x4eb42f(0xc7)+a55_0x33925e[a55_0x4eb42f(0xfc)]);}function a55_0x4f3f(){const _0x2653e1=['AMmjc','iOskY','RWuNP','INFO','load\x20[subcommand]','sendLogs','demandCommand','ats','findAndReplace','dyjTB','LKJsw','JbSHz','homedir','winstonLogger','../helpers/helper','NEWMAN','BerfK','1024722GZNuDS','option','CUCUMBER','node','DigYs','YcHyp','argv','2372404lIKWZo','UXzVp','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','cucumber-js','Parsing\x20command\x20line\x20arguments','./cucumber-js/command','filter','./v2/browserstackCLI','VANILLA','20XDZUDT','nightwatch','../../ats/src/index','setTestObservabilityDisable','format','config','ICTkt','VYcBd','683662JAAFFI','auxzJ','getInstance','strict','SDK_SETUP','pw:channel\x20auto-capture\x20seed\x20failed:\x20','showHelpOnFail','setBrowserStackAutomationDisable','fireFunnelTestEvent','jest','mocha/lib/cli/commands.js','newman','split','help','272334qTgSYG','mRPqT','some','pw:channel','../helpers/performance/constants','cRpFF','getConfigPath','Undnm','--no-opts','isUndefined','exitCode','--opts','SHHNy','dElyB','Opzdj','gJllQ','./load/index','./mocha/command','./newman/command','handler','lyEve','usage','mocha/lib/cli/run.js','usage:\x20$0\x20<command>\x20[args]','JNhos','spawn','--no-package','IMxFS','start','PLAYWRIGHT','GwtBe','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','slice','existsSync','umNdJ','../helpers/test-observability/constants','RcTrA','dzVWP','cFPGB','disableAutoCaptureLogs','push','assign','playwright','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','describe','6bwLdox','gXPGB','PhKNG','join','eBIBb','DEBUG_FILE','644201Fyjxke','EVENTS','../helpers/logger','DEUHc','map','wrap','getPwChannelLogPath','QACuh','Show\x20help','Runs\x20the\x20binary\x20with\x20load\x20command','mocha/lib/cli/cli.js','icaJc','1941492ACeNkF','HST','NIGHTWATCH','util','env','../helpers/BrowserStackSetup','../helpers/utilities','command','NWAcw','DEBUG','--require','-pw:*','8498928soNcpz','codeceptjs','debug','error','FMEea','mocha','boolean','SDK_CLEANUP','end','CODECEPTJS','includes','wQvZY','info','--no-config','115bAECCx','./jest/command','JEST','framework','dot-notation','./utils/constants','./newman/helper','message','pkXqV','unlinkSync','niApa','JpEcE','exitProcess','trim','iwyDD','./integrations/command','integrations','BROWSERSTACK_CONFIG_FILE_PATH','Running\x20SDK\x20with\x20args\x20'];a55_0x4f3f=function(){return _0x2653e1;};return a55_0x4f3f();}process[a55_0x4eb42f(0x11f)][a55_0x4eb42f(0xf1)](a55_0x4eb42f(0xec))&&(!process[a55_0x4eb42f(0x11f)][a55_0x4eb42f(0xf1)](a55_0x4eb42f(0xa7))&&process[a55_0x4eb42f(0x11f)][a55_0x4eb42f(0xc4)](a55_0x4eb42f(0x147)),!process['argv']['find'](_0x19f9d4=>_0x19f9d4[a55_0x4eb42f(0xf1)]('--config'))&&process[a55_0x4eb42f(0x11f)]['push'](a55_0x4eb42f(0xf4)),!process[a55_0x4eb42f(0x11f)]['includes']('--package')&&process[a55_0x4eb42f(0x11f)]['push'](a55_0x4eb42f(0xb6)),helper[a55_0x4eb42f(0x110)](process[a55_0x4eb42f(0x11f)],a55_0x4eb42f(0xe5),'--mochaRequire'));PerformanceTester[a55_0x4eb42f(0xb8)](PerformanceEvents[a55_0x4eb42f(0x135)]);const a55_0x49a271={};a55_0x49a271[a55_0x4eb42f(0xf9)]=![];const argv=yargs['parserConfiguration'](a55_0x49a271)[a55_0x4eb42f(0xb1)](a55_0x4eb42f(0xb3))['alias']('v','version')[a55_0x4eb42f(0xc8)]('v')['alias']('h',a55_0x4eb42f(0x13e))[a55_0x4eb42f(0x13e)]('help')[a55_0x4eb42f(0x137)](!![],Constants['VERSION']['HELP'])['command'](a55_0x4eb42f(0x13a),Constants[a55_0x4eb42f(0xf7)]['INFO'],function(_0x5e7749){const _0x57c5ef=a55_0x4eb42f,_0x5177b8={'JNhos':_0x57c5ef(0x13a),'JbSHz':function(_0x45c2d5,_0x12693a,_0x3bebdc,_0x9b5fef,_0x24231c,_0x2d81a2){return _0x45c2d5(_0x12693a,_0x3bebdc,_0x9b5fef,_0x24231c,_0x2d81a2);},'PTgkX':function(_0x249b83,_0x19b831){return _0x249b83(_0x19b831);},'wXITS':_0x57c5ef(0xf6)},_0x19e8d0=process['argv'][_0x57c5ef(0xbc)](0x2);helper['setTestObservabilityDisable'](),helper[_0x57c5ef(0x138)](),_0x5e7749['strict'](![]);const _0x42d7af=new BrowserStackSetup(_0x5e7749[_0x57c5ef(0x11f)],_0x5177b8[_0x57c5ef(0xb4)]);return _0x5177b8[_0x57c5ef(0x113)](captureError,_0x5177b8['PTgkX'](require,_0x5177b8['wXITS']),_0x5e7749[_0x57c5ef(0x11f)],_0x42d7af,_0x19e8d0,!![]);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0xec),Constants['MOCHA'][a55_0x4eb42f(0x10b)],_0x1fe898=>{const _0x865cda=a55_0x4eb42f,_0x2fb9e1={'lzVow':function(_0x5d8965,_0x2cb40e,_0x2bb759,_0x440b6e){return _0x5d8965(_0x2cb40e,_0x2bb759,_0x440b6e);},'lyEve':function(_0x14920a,_0x2af60f){return _0x14920a(_0x2af60f);},'AMhrD':_0x865cda(0xad),'Opzdj':_0x865cda(0xec),'AMmjc':_0x865cda(0x124),'DigYs':function(_0x557502,_0x4b3ec5,_0x250a9){return _0x557502(_0x4b3ec5,_0x250a9);},'umNdJ':_0x865cda(0xb2),'niApa':function(_0xaac6e3,_0x55657e,_0x571d48){return _0xaac6e3(_0x55657e,_0x571d48);},'cFPGB':_0x865cda(0x13b),'PhKNG':_0x865cda(0xd9),'RcTrA':function(_0x18e555){return _0x18e555();}};process[_0x865cda(0x11f)]=process['argv'][_0x865cda(0xbc)](0x1),helper[_0x865cda(0x12c)](),helper['setBrowserStackAutomationDisable']();const _0x3b7baa=new BrowserStackSetup(_0x1fe898[_0x865cda(0x11f)],_0x2fb9e1[_0x865cda(0xaa)]);logger[_0x865cda(0xe9)](_0x2fb9e1[_0x865cda(0x108)]);const _0xb9b333=_0x2fb9e1[_0x865cda(0x11d)](requireModule,_0x2fb9e1[_0x865cda(0xbe)],_0x2fb9e1['Opzdj']),_0xd50f9=_0x2fb9e1[_0x865cda(0xff)](requireModule,_0x2fb9e1[_0x865cda(0xc2)],_0x2fb9e1['Opzdj']);delete _0xb9b333[_0x865cda(0xaf)],_0xb9b333['handler']=function(_0x245aec){const _0x226fd1=_0x865cda;return _0x2fb9e1['lzVow'](captureError,_0x2fb9e1[_0x226fd1(0xb0)](require,_0x2fb9e1['AMhrD']),_0x245aec,_0x3b7baa);},_0xd50f9['run']=_0xb9b333;const {main:_0x1527d0}=_0x2fb9e1[_0x865cda(0x11d)](requireModule,_0x2fb9e1[_0x865cda(0xcb)],_0x2fb9e1[_0x865cda(0xaa)]);_0x2fb9e1[_0x865cda(0xc0)](_0x1527d0);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x123),Constants[a55_0x4eb42f(0x11b)]['INFO'],function(_0x53b0a7){const _0x2a1dad=a55_0x4eb42f,_0x74830f={'RWuNP':'cucumber-js','eBIBb':function(_0x53006c,_0xe4577a,_0x302b44,_0x4ad43b,_0x357755,_0x5b0fed){return _0x53006c(_0xe4577a,_0x302b44,_0x4ad43b,_0x357755,_0x5b0fed);},'dyjTB':function(_0x51483f,_0x40ddcb){return _0x51483f(_0x40ddcb);},'BerfK':_0x2a1dad(0x125)},_0x1794b8=process[_0x2a1dad(0x11f)]['slice'](0x2),_0x1998bb=new BrowserStackSetup(_0x53b0a7[_0x2a1dad(0x11f)],_0x74830f[_0x2a1dad(0x10a)]);return _0x74830f[_0x2a1dad(0xcd)](captureError,_0x74830f[_0x2a1dad(0x111)](require,_0x74830f[_0x2a1dad(0x118)]),_0x53b0a7[_0x2a1dad(0x11f)],_0x1998bb,_0x1794b8,!![]);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x11c),Constants[a55_0x4eb42f(0x128)][a55_0x4eb42f(0x10b)],function(_0x5bbbba){const _0x48f22f=a55_0x4eb42f,_0x4fd1c3={'icaJc':'vanilla','IMxFS':function(_0x4ee765,_0x4434dc){return _0x4ee765(_0x4434dc);},'hKIZd':_0x48f22f(0x13c),'DEUHc':function(_0x45130e,_0x5f237d,_0x3bba8d,_0x388e80,_0x2d8afe){return _0x45130e(_0x5f237d,_0x3bba8d,_0x388e80,_0x2d8afe);},'pkXqV':_0x48f22f(0xae),'qRsTm':function(_0x3253bc,_0x4a0274,_0xe6f5fc,_0x363891,_0x435677){return _0x3253bc(_0x4a0274,_0xe6f5fc,_0x363891,_0x435677);},'LKJsw':function(_0x143acf,_0x55c46a){return _0x143acf(_0x55c46a);},'iOskY':'./vanilla-js/command'},_0x837376=process[_0x48f22f(0x11f)][_0x48f22f(0xbc)](0x2),_0x57c364=new BrowserStackSetup(_0x5bbbba[_0x48f22f(0x11f)],_0x4fd1c3[_0x48f22f(0xda)]),_0x1447f2=_0x57c364?_0x57c364['config']:null;if(_0x4fd1c3[_0x48f22f(0xb7)](isNewman,_0x1447f2))return _0x57c364[_0x48f22f(0xf8)]=_0x4fd1c3['hKIZd'],global[_0x48f22f(0xf8)]=_0x4fd1c3['hKIZd'],_0x4fd1c3[_0x48f22f(0xd2)](captureError,_0x4fd1c3['IMxFS'](require,_0x4fd1c3[_0x48f22f(0xfd)]),_0x5bbbba['argv'],_0x57c364,_0x837376);return _0x4fd1c3['qRsTm'](captureError,_0x4fd1c3[_0x48f22f(0x112)](require,_0x4fd1c3[_0x48f22f(0x109)]),_0x5bbbba['argv'],_0x57c364,_0x837376);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x12a),Constants[a55_0x4eb42f(0xdd)][a55_0x4eb42f(0x10b)],function(_0x29c965){const _0x19585d=a55_0x4eb42f,_0x4cb8d1={'YcHyp':function(_0x235d87,_0x47c10a,_0x4b87ea,_0x8bba5b,_0x157eca){return _0x235d87(_0x47c10a,_0x4b87ea,_0x8bba5b,_0x157eca);},'FMEea':function(_0x313396,_0x17fa01){return _0x313396(_0x17fa01);},'thGoh':'./nightwatch/command'},_0x4ef00d=process[_0x19585d(0x11f)][_0x19585d(0xbc)](0x2),_0x367a7d=new BrowserStackSetup(_0x29c965['argv']);return _0x4cb8d1[_0x19585d(0x11e)](captureError,_0x4cb8d1[_0x19585d(0xeb)](require,_0x4cb8d1['thGoh']),_0x29c965[_0x19585d(0x11f)],_0x367a7d,_0x4ef00d);})['command'](a55_0x4eb42f(0xe8),Constants[a55_0x4eb42f(0xf0)][a55_0x4eb42f(0x10b)],function(_0x37a47f){const _0x456073=a55_0x4eb42f,_0x2b3055={'XmTfj':'codeceptjs','ICTkt':function(_0x1a4e14,_0x2a85bd,_0x198c4d,_0x2c7664,_0x1250b8){return _0x1a4e14(_0x2a85bd,_0x198c4d,_0x2c7664,_0x1250b8);},'JpEcE':function(_0x3c1047,_0x1a98df){return _0x3c1047(_0x1a98df);},'Undnm':'./codeceptjs/command'},_0x4d5088=process[_0x456073(0x11f)]['slice'](0x2),_0x163f67=new BrowserStackSetup(_0x37a47f[_0x456073(0x11f)],_0x2b3055['XmTfj']);return _0x2b3055[_0x456073(0x12f)](captureError,_0x2b3055[_0x456073(0x100)](require,_0x2b3055[_0x456073(0x146)]),_0x37a47f['argv'],_0x163f67,_0x4d5088);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x10f),Constants[a55_0x4eb42f(0xdc)]['INFO'],function(_0x4a9cf1){const _0x37b379=a55_0x4eb42f,_0x26e440={'mRPqT':function(_0x4e9296,_0xe680a3,_0x5a7190){return _0x4e9296(_0xe680a3,_0x5a7190);},'iwyDD':function(_0x5849c4,_0x589a9f){return _0x5849c4(_0x589a9f);},'rLQEV':_0x37b379(0x12b)},_0x51b192=process[_0x37b379(0x11f)][_0x37b379(0xbc)](0x2);return _0x26e440[_0x37b379(0x140)](captureError,_0x26e440[_0x37b379(0x103)](require,_0x26e440['rLQEV']),_0x4a9cf1);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x105),Constants['INTEGRATIONS'][a55_0x4eb42f(0x10b)],function(_0x9fadf7){const _0x4cc5d0=a55_0x4eb42f,_0x55a5d5={'cRpFF':function(_0x348c55,_0x2d1977){return _0x348c55(_0x2d1977);}};return _0x55a5d5[_0x4cc5d0(0x144)](runIntegrations,_0x9fadf7);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0xc6),Constants[a55_0x4eb42f(0xb9)][a55_0x4eb42f(0x10b)],function(_0x4a94b9){const _0x447584=a55_0x4eb42f,_0x1b8eaa={'GLhmW':_0x447584(0x142),'auxzJ':function(_0x46b224,_0x201b54){return _0x46b224&&_0x201b54;},'gJllQ':function(_0x4f18d6,_0x10f63a,_0x399188,_0x1c93e7,_0x183356,_0xefa621){return _0x4f18d6(_0x10f63a,_0x399188,_0x1c93e7,_0x183356,_0xefa621);},'QACuh':function(_0x4621ef,_0x1c1f43){return _0x4621ef(_0x1c1f43);},'nPzYu':'./playwright/command'},_0x165601=process['argv'][_0x447584(0xbc)](0x2);helper[_0x447584(0x145)](process['argv'])&&(process[_0x447584(0xdf)][_0x447584(0x106)]=helper[_0x447584(0x145)](process[_0x447584(0x11f)]));helper['setTestObservabilityDisable'](),helper[_0x447584(0x138)]();const _0x242af2=new BrowserStackSetup(_0x4a94b9[_0x447584(0x11f)],FRAMEWORKS[_0x447584(0xb9)]);try{if(!_0x242af2[_0x447584(0x12e)]||!_0x242af2[_0x447584(0x12e)][_0x447584(0xc3)]){const _0x9e06c=_0x1b8eaa['GLhmW'],_0xe6c013=process[_0x447584(0xdf)]['DEBUG']||'',_0x454ee1=_0xe6c013[_0x447584(0x13d)](',')[_0x447584(0xd3)](_0x1a8bc0=>_0x1a8bc0[_0x447584(0x102)]())[_0x447584(0x126)](Boolean),_0x23fb34=_0x454ee1[_0x447584(0x141)](_0x229d8a=>_0x229d8a==='-pw:channel'||_0x229d8a===_0x447584(0xe6)||_0x229d8a==='-*'),_0x475734=_0x454ee1[_0x447584(0x141)](_0x1ed734=>_0x1ed734===_0x9e06c||_0x1ed734==='pw:*'||_0x1ed734==='*');if(_0x1b8eaa[_0x447584(0x132)](!_0x23fb34,!_0x475734)){const _0x3d6efb=helper[_0x447584(0xd5)]();_0x3d6efb&&(process[_0x447584(0xdf)][_0x447584(0xe4)]=_0xe6c013?_0xe6c013+','+_0x9e06c:_0x9e06c,!process[_0x447584(0xdf)][_0x447584(0xce)]&&(process[_0x447584(0xdf)]['DEBUG_FILE']=_0x3d6efb));}}}catch(_0x3cb1bb){logger[_0x447584(0xe9)](_0x447584(0x136)+util['format'](_0x3cb1bb));}return _0x1b8eaa[_0x447584(0xab)](captureError,_0x1b8eaa[_0x447584(0xd6)](require,_0x1b8eaa['nPzYu']),_0x4a94b9[_0x447584(0x11f)],_0x242af2,_0x165601,!![]);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x10c),a55_0x4eb42f(0xd8),function(_0x498a1e){const _0x3b837b=a55_0x4eb42f,_0x465da={};_0x465da[_0x3b837b(0xca)]=_0x3b837b(0x13e),_0x465da['SHHNy']=_0x3b837b(0xed),_0x465da['dzVWP']=_0x3b837b(0xd7);const _0x39536a=_0x465da;return _0x498a1e[_0x3b837b(0x13e)](![])[_0x3b837b(0x11a)](_0x39536a[_0x3b837b(0xca)],{'alias':'h','type':_0x39536a[_0x3b837b(0xa8)],'describe':_0x39536a[_0x3b837b(0xc1)]})['strict'](![])[_0x3b837b(0x101)](![]);},function(_0x162709){const _0x41edf4=a55_0x4eb42f,_0x28c894={'GwtBe':function(_0x2271d8,_0x757da7,_0x21d9dc){return _0x2271d8(_0x757da7,_0x21d9dc);},'wQvZY':function(_0x3d270b,_0x40a001){return _0x3d270b(_0x40a001);},'EaagZ':_0x41edf4(0xac)},_0x5f5c20={};return _0x5f5c20[_0x41edf4(0x11f)]=_0x162709,_0x28c894[_0x41edf4(0xba)](captureError,_0x28c894[_0x41edf4(0xf2)](require,_0x28c894['EaagZ']),_0x5f5c20);})[a55_0x4eb42f(0xe2)](a55_0x4eb42f(0x13c),Constants[a55_0x4eb42f(0x117)][a55_0x4eb42f(0x10b)],function(_0x388ace){const _0xc8e4db=a55_0x4eb42f,_0x410e33={'NWAcw':_0xc8e4db(0x13c),'LvZHm':function(_0xd970b,_0x38a25d,_0x4749eb,_0x347de6,_0x40d714){return _0xd970b(_0x38a25d,_0x4749eb,_0x347de6,_0x40d714);},'ASaIo':function(_0x34b56b,_0x4bda28){return _0x34b56b(_0x4bda28);},'dElyB':_0xc8e4db(0xae)},_0x2273cc=process[_0xc8e4db(0x11f)][_0xc8e4db(0xbc)](0x2);helper[_0xc8e4db(0x12c)](),helper['setBrowserStackAutomationDisable'](),_0x388ace[_0xc8e4db(0x134)](![]);const _0x53bd24=new BrowserStackSetup(_0x388ace[_0xc8e4db(0x11f)],_0x410e33[_0xc8e4db(0xe3)]);return _0x410e33['LvZHm'](captureError,_0x410e33['ASaIo'](require,_0x410e33[_0xc8e4db(0xa9)]),_0x388ace[_0xc8e4db(0x11f)],_0x53bd24,_0x2273cc);})[a55_0x4eb42f(0x10e)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0x4eb42f(0xd4)](null)['argv'];!helper[a55_0x4eb42f(0x148)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!=='ats'&&console[a55_0x4eb42f(0xea)]('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
|
|
2
|
+
'use strict';const a55_0xf54377=a55_0x548a;(function(_0x3a8629,_0x17ca6c){const _0x5e1139=a55_0x548a,_0x38ab7c=_0x3a8629();while(!![]){try{const _0x5f3a2e=-parseInt(_0x5e1139(0x125))/0x1+-parseInt(_0x5e1139(0x176))/0x2*(parseInt(_0x5e1139(0x15b))/0x3)+-parseInt(_0x5e1139(0x19a))/0x4+-parseInt(_0x5e1139(0x167))/0x5+-parseInt(_0x5e1139(0x154))/0x6*(-parseInt(_0x5e1139(0x130))/0x7)+-parseInt(_0x5e1139(0x13a))/0x8+parseInt(_0x5e1139(0x13b))/0x9;if(_0x5f3a2e===_0x17ca6c)break;else _0x38ab7c['push'](_0x38ab7c['shift']());}catch(_0x1278c3){_0x38ab7c['push'](_0x38ab7c['shift']());}}}(a55_0x5c7f,0xee2c5));const fs=require('fs'),path=require('path'),util=require(a55_0xf54377(0x11b)),spawn=require('child_process')['spawn'],{requireModule}=require(a55_0xf54377(0x135)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0xf54377(0x113))[a55_0xf54377(0x15d)],helper=require(a55_0xf54377(0x135)),utilities=require(a55_0xf54377(0x127)),{default:BrowserStackSetup}=require(a55_0xf54377(0x151)),{FRAMEWORKS}=require(a55_0xf54377(0x16c)),runIntegrations=require(a55_0xf54377(0x160)),yargs=require(a55_0xf54377(0x171)),Constants=require('./utils/constants'),BrowserstackCLI=require('./v2/browserstackCLI'),{isNewman}=require(a55_0xf54377(0x131)),logger=require(a55_0xf54377(0x145))[a55_0xf54377(0x180)],origArgs=Object['assign']([],process['argv']),captureError=async(_0x573955,_0x36e412,_0x355675,_0x1d8480=null,_0x305698=![])=>{const _0x361ee5=a55_0xf54377,_0x3412a9={'ODtwt':function(_0x131b39,_0x1e7841,_0x503849,_0xba5cfc){return _0x131b39(_0x1e7841,_0x503849,_0xba5cfc);},'GvlwR':_0x361ee5(0x17a)};try{logger[_0x361ee5(0x19d)]('Running\x20SDK\x20with\x20args\x20'+origArgs[_0x361ee5(0x138)]('\x20')),await _0x3412a9['ODtwt'](_0x573955,_0x36e412,_0x1d8480,_0x355675);}catch(_0x34ef99){process[_0x361ee5(0x116)]=0x1,logger['error'](util[_0x361ee5(0x15e)](_0x34ef99));const _0x3bb6b9={'globalException':util[_0x361ee5(0x15e)]('%j',_0x34ef99)};PerformanceTester[_0x361ee5(0x16d)](PerformanceEvents[_0x361ee5(0x17c)],![],util[_0x361ee5(0x15e)](_0x34ef99));if(helper[_0x361ee5(0x118)](global[_0x361ee5(0x18f)])&&helper[_0x361ee5(0x118)](global[_0x361ee5(0x168)]))return;try{utilities['fireFunnelTestEvent'](_0x3412a9[_0x361ee5(0x129)],_0x3bb6b9,global['config'],global['framework']);}catch(_0x8e38c9){logger[_0x361ee5(0x13e)](_0x361ee5(0x169)+_0x8e38c9[_0x361ee5(0x12f)]);}try{await helper[_0x361ee5(0x19e)](global[_0x361ee5(0x18f)]);}catch(_0x2083f3){logger['debug']('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x2083f3[_0x361ee5(0x12f)]);}PerformanceTester['end'](PerformanceEvents['SDK_SETUP'],![],util['format'](_0x34ef99));}finally{!_0x305698&&await BrowserstackCLI['getInstance']()[_0x361ee5(0x1a2)](),PerformanceTester[_0x361ee5(0x150)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path[a55_0xf54377(0x138)](helper[a55_0xf54377(0x14f)](),'.browserstack');if(fs['existsSync'](browserstackFolderPath)){const filePath=path[a55_0xf54377(0x138)](browserstackFolderPath,a55_0xf54377(0x1a1));fs['existsSync'](filePath)&&fs[a55_0xf54377(0x15f)](filePath);}}catch(a55_0x1966a1){logger['debug']('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a55_0x1966a1['message']);}process['argv'][a55_0xf54377(0x186)](a55_0xf54377(0x14d))&&(!process['argv'][a55_0xf54377(0x186)](a55_0xf54377(0x199))&&process[a55_0xf54377(0x181)][a55_0xf54377(0x15a)](a55_0xf54377(0x158)),!process[a55_0xf54377(0x181)][a55_0xf54377(0x144)](_0x3c95a2=>_0x3c95a2['includes'](a55_0xf54377(0x148)))&&process['argv'][a55_0xf54377(0x15a)](a55_0xf54377(0x111)),!process[a55_0xf54377(0x181)][a55_0xf54377(0x186)](a55_0xf54377(0x112))&&process[a55_0xf54377(0x181)][a55_0xf54377(0x15a)](a55_0xf54377(0x193)),helper[a55_0xf54377(0x136)](process[a55_0xf54377(0x181)],a55_0xf54377(0x120),a55_0xf54377(0x134)));PerformanceTester[a55_0xf54377(0x150)](PerformanceEvents['SDK_SETUP']);const a55_0x31212e={};a55_0x31212e[a55_0xf54377(0x18d)]=![];function a55_0x5c7f(){const _0x38de43=['2woSCiH','NLPWJ','VtzTq','HoGaO','SDKTestSuccessful','strict','SDK_SETUP','SdwMY','pXDlZ','NotxK','winstonLogger','argv','ZkhHk','DEBUG_FILE','boolean','showHelpOnFail','includes','alias','wVPeJ','IuPIW','QQPyy','MOCHA','help','dot-notation','ats','config','pw:channel\x20auto-capture\x20seed\x20failed:\x20','getPwChannelLogPath','run','--no-package','vwrOe','Parsing\x20command\x20line\x20arguments','NEWMAN','-pw:*','some','--opts','4712168Rzgvjc','IUFlg','XriME','info','sendLogs','hxcZB','./cucumber-js/command','.local-not-set.json','stop','Hssli','handler','UtjkQ','error','./codeceptjs/command','./jest/command','JEST','disableAutoCaptureLogs','PLAYWRIGHT','WmvPl','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','setBrowserStackAutomationDisable','--no-config','--package','../helpers/performance/constants','../../ats/src/index','ERZva','exitCode','OTyCE','isUndefined','AtYkA','env','util','demandCommand','version','load\x20[subcommand]','DEBUG','--require','describe','exitProcess','VERSION','usage:\x20$0\x20<command>\x20[args]','1024435JJERXX','eGNBC','../helpers/utilities','aLADi','GvlwR','codeceptjs','mocha/lib/cli/commands.js','newman','uHirv','./newman/command','stack','42GZnEnn','./newman/helper','INFO','yIKxn','--mochaRequire','../helpers/helper','findAndReplace','ApRyh','join','slice','1779464EggvWV','41034897QwXONw','HST','aytaT','debug','BDPFf','VANILLA','CUCUMBER','./vanilla-js/command','JcxLl','find','../helpers/logger','jcHib','cucumber-js','--config','QOlKL','mocha/lib/cli/cli.js','node','RLwwH','mocha','ugKWK','homedir','start','../helpers/BrowserStackSetup','setTestObservabilityDisable','-pw:channel','963288fcHCCo','gfxPp','erkJz','VcbYb','--no-opts','playwright','push','2906538cRmXWW','./mocha/command','EVENTS','format','unlinkSync','./integrations/command','wrap','qXyph','getConfigPath','nightwatch','./load/index','Show\x20help','5767040XYFHXC','framework','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','trim','UuYCu','../helpers/test-observability/constants','end','pw:channel','map','zcLsL','yargs','INTEGRATIONS','command','option','lfkiz'];a55_0x5c7f=function(){return _0x38de43;};return a55_0x5c7f();}const argv=yargs['parserConfiguration'](a55_0x31212e)['usage'](a55_0xf54377(0x124))[a55_0xf54377(0x187)]('v',a55_0xf54377(0x11d))[a55_0xf54377(0x121)]('v')[a55_0xf54377(0x187)]('h',a55_0xf54377(0x18c))[a55_0xf54377(0x18c)](a55_0xf54377(0x18c))[a55_0xf54377(0x185)](!![],Constants[a55_0xf54377(0x123)]['HELP'])['command']('jest',Constants[a55_0xf54377(0x10b)][a55_0xf54377(0x132)],function(_0x2647ab){const _0x3a8b50=a55_0xf54377,_0x182a96={'tlpcj':'jest','aLADi':function(_0x43c7ea,_0x3ba943,_0x54b52f,_0x22364a,_0x2c7734,_0x2b5e5d){return _0x43c7ea(_0x3ba943,_0x54b52f,_0x22364a,_0x2c7734,_0x2b5e5d);},'GkbAi':function(_0x1e0b9e,_0xe3a4df){return _0x1e0b9e(_0xe3a4df);},'pXDlZ':_0x3a8b50(0x10a)},_0x7f3951=process[_0x3a8b50(0x181)]['slice'](0x2);helper[_0x3a8b50(0x152)](),helper[_0x3a8b50(0x110)](),_0x2647ab[_0x3a8b50(0x17b)](![]);const _0x11aab7=new BrowserStackSetup(_0x2647ab[_0x3a8b50(0x181)],_0x182a96['tlpcj']);return _0x182a96[_0x3a8b50(0x128)](captureError,_0x182a96['GkbAi'](require,_0x182a96[_0x3a8b50(0x17e)]),_0x2647ab[_0x3a8b50(0x181)],_0x11aab7,_0x7f3951,!![]);})[a55_0xf54377(0x173)]('mocha',Constants[a55_0xf54377(0x18b)][a55_0xf54377(0x132)],_0xe995f0=>{const _0x1dbd14=a55_0xf54377,_0x268cb0={'ApRyh':function(_0x1888c5,_0x336536,_0x534b77,_0x1b2ed5){return _0x1888c5(_0x336536,_0x534b77,_0x1b2ed5);},'WIRpH':function(_0xe4d30,_0x5bf6ca){return _0xe4d30(_0x5bf6ca);},'AtYkA':_0x1dbd14(0x15c),'VcbYb':_0x1dbd14(0x14d),'wWRRD':_0x1dbd14(0x195),'lfkiz':function(_0xc14a29,_0x2e18f4,_0x1eb913){return _0xc14a29(_0x2e18f4,_0x1eb913);},'IUFlg':'mocha/lib/cli/run.js','MACoc':_0x1dbd14(0x12b),'IuPIW':function(_0x1e55e4,_0x30d8fb,_0x55e429){return _0x1e55e4(_0x30d8fb,_0x55e429);},'jcHib':_0x1dbd14(0x14a),'OTyCE':function(_0x40d866){return _0x40d866();}};process[_0x1dbd14(0x181)]=process[_0x1dbd14(0x181)][_0x1dbd14(0x139)](0x1),helper[_0x1dbd14(0x152)](),helper[_0x1dbd14(0x110)]();const _0x2f8625=new BrowserStackSetup(_0xe995f0[_0x1dbd14(0x181)],_0x268cb0['VcbYb']);logger['debug'](_0x268cb0['wWRRD']);const _0x2a77ca=_0x268cb0[_0x1dbd14(0x175)](requireModule,_0x268cb0[_0x1dbd14(0x19b)],_0x268cb0['VcbYb']),_0x18c26e=_0x268cb0[_0x1dbd14(0x175)](requireModule,_0x268cb0['MACoc'],_0x268cb0['VcbYb']);delete _0x2a77ca[_0x1dbd14(0x1a4)],_0x2a77ca[_0x1dbd14(0x1a4)]=function(_0x279cfe){const _0x4ec634=_0x1dbd14;return _0x268cb0[_0x4ec634(0x137)](captureError,_0x268cb0['WIRpH'](require,_0x268cb0[_0x4ec634(0x119)]),_0x279cfe,_0x2f8625);},_0x18c26e[_0x1dbd14(0x192)]=_0x2a77ca;const {main:_0x3c80c1}=_0x268cb0[_0x1dbd14(0x189)](requireModule,_0x268cb0[_0x1dbd14(0x146)],_0x268cb0[_0x1dbd14(0x157)]);_0x268cb0[_0x1dbd14(0x117)](_0x3c80c1);})['command'](a55_0xf54377(0x147),Constants[a55_0xf54377(0x141)][a55_0xf54377(0x132)],function(_0x40be42){const _0x17c5ea=a55_0xf54377,_0x43613f={'VtzTq':_0x17c5ea(0x147),'heoHk':function(_0x1e056a,_0x32048b,_0x4bd492,_0x5d5468,_0x35aca8,_0x15351a){return _0x1e056a(_0x32048b,_0x4bd492,_0x5d5468,_0x35aca8,_0x15351a);},'VOYIP':function(_0x297edd,_0x5ae465){return _0x297edd(_0x5ae465);},'uHirv':_0x17c5ea(0x1a0)},_0x21cbf8=process[_0x17c5ea(0x181)][_0x17c5ea(0x139)](0x2),_0x38aa57=new BrowserStackSetup(_0x40be42[_0x17c5ea(0x181)],_0x43613f[_0x17c5ea(0x178)]);return _0x43613f['heoHk'](captureError,_0x43613f['VOYIP'](require,_0x43613f[_0x17c5ea(0x12d)]),_0x40be42[_0x17c5ea(0x181)],_0x38aa57,_0x21cbf8,!![]);})[a55_0xf54377(0x173)](a55_0xf54377(0x14b),Constants[a55_0xf54377(0x140)][a55_0xf54377(0x132)],function(_0x5f411c){const _0x990e85=a55_0xf54377,_0x4822ff={'zcLsL':'vanilla','qXyph':function(_0x3f32ff,_0xccf843){return _0x3f32ff(_0xccf843);},'QOlKL':_0x990e85(0x12c),'SdwMY':function(_0x18ceea,_0x4f7808,_0x54763d,_0x2e7922,_0x3149de){return _0x18ceea(_0x4f7808,_0x54763d,_0x2e7922,_0x3149de);},'wsSsG':_0x990e85(0x12e),'RLwwH':function(_0x1b5615,_0x2807db,_0x276872,_0x3cf8cd,_0x4d7d24){return _0x1b5615(_0x2807db,_0x276872,_0x3cf8cd,_0x4d7d24);},'erkJz':_0x990e85(0x142)},_0x458985=process[_0x990e85(0x181)][_0x990e85(0x139)](0x2),_0x3df359=new BrowserStackSetup(_0x5f411c[_0x990e85(0x181)],_0x4822ff[_0x990e85(0x170)]),_0x271afd=_0x3df359?_0x3df359[_0x990e85(0x18f)]:null;if(_0x4822ff[_0x990e85(0x162)](isNewman,_0x271afd))return _0x3df359['framework']=_0x4822ff[_0x990e85(0x149)],global[_0x990e85(0x168)]=_0x4822ff[_0x990e85(0x149)],_0x4822ff[_0x990e85(0x17d)](captureError,_0x4822ff[_0x990e85(0x162)](require,_0x4822ff['wsSsG']),_0x5f411c[_0x990e85(0x181)],_0x3df359,_0x458985);return _0x4822ff[_0x990e85(0x14c)](captureError,_0x4822ff[_0x990e85(0x162)](require,_0x4822ff[_0x990e85(0x156)]),_0x5f411c[_0x990e85(0x181)],_0x3df359,_0x458985);})['command'](a55_0xf54377(0x164),Constants['NIGHTWATCH']['INFO'],function(_0x13ecdb){const _0x45886f=a55_0xf54377,_0x5a9563={'JcxLl':function(_0x11160c,_0x3b98e1,_0x372017,_0x4aebcf,_0x296991){return _0x11160c(_0x3b98e1,_0x372017,_0x4aebcf,_0x296991);},'hxcZB':function(_0x5acb7b,_0x5d779d){return _0x5acb7b(_0x5d779d);},'XSvsW':'./nightwatch/command'},_0x5405fe=process['argv'][_0x45886f(0x139)](0x2),_0x413034=new BrowserStackSetup(_0x13ecdb[_0x45886f(0x181)]);return _0x5a9563[_0x45886f(0x143)](captureError,_0x5a9563[_0x45886f(0x19f)](require,_0x5a9563['XSvsW']),_0x13ecdb[_0x45886f(0x181)],_0x413034,_0x5405fe);})[a55_0xf54377(0x173)](a55_0xf54377(0x12a),Constants['CODECEPTJS'][a55_0xf54377(0x132)],function(_0x1e2941){const _0x1b5a9a=a55_0xf54377,_0x321050={'UtjkQ':_0x1b5a9a(0x12a),'vDskD':function(_0x24e7a8,_0x37ef0c,_0xe67777,_0x40a792,_0x334626){return _0x24e7a8(_0x37ef0c,_0xe67777,_0x40a792,_0x334626);},'WmvPl':function(_0x5a7975,_0x2d49fa){return _0x5a7975(_0x2d49fa);},'ugKWK':_0x1b5a9a(0x1a7)},_0x197d83=process[_0x1b5a9a(0x181)][_0x1b5a9a(0x139)](0x2),_0x139133=new BrowserStackSetup(_0x1e2941['argv'],_0x321050[_0x1b5a9a(0x1a5)]);return _0x321050['vDskD'](captureError,_0x321050[_0x1b5a9a(0x10e)](require,_0x321050[_0x1b5a9a(0x14e)]),_0x1e2941[_0x1b5a9a(0x181)],_0x139133,_0x197d83);})[a55_0xf54377(0x173)](a55_0xf54377(0x18e),Constants[a55_0xf54377(0x13c)][a55_0xf54377(0x132)],function(_0x59584e){const _0x3b7e60=a55_0xf54377,_0x38bd01={'wVPeJ':function(_0x5f42f8,_0x11df20,_0x142280){return _0x5f42f8(_0x11df20,_0x142280);},'QQPyy':function(_0x1a04af,_0xe19b26){return _0x1a04af(_0xe19b26);},'BDPFf':_0x3b7e60(0x114)},_0x5eaa23=process['argv']['slice'](0x2);return _0x38bd01[_0x3b7e60(0x188)](captureError,_0x38bd01[_0x3b7e60(0x18a)](require,_0x38bd01[_0x3b7e60(0x13f)]),_0x59584e);})[a55_0xf54377(0x173)]('integrations',Constants[a55_0xf54377(0x172)]['INFO'],function(_0xc6559c){const _0x2626b7={'OqMqc':function(_0x4bf2ad,_0x38d6f4){return _0x4bf2ad(_0x38d6f4);}};return _0x2626b7['OqMqc'](runIntegrations,_0xc6559c);})[a55_0xf54377(0x173)](a55_0xf54377(0x159),Constants['PLAYWRIGHT'][a55_0xf54377(0x132)],function(_0x2b0dd2){const _0x45bf21=a55_0xf54377,_0x201bdc={'HoGaO':_0x45bf21(0x16e),'NotxK':function(_0x484c3e,_0xd513cd){return _0x484c3e&&_0xd513cd;},'BtMdX':function(_0x26a1bd,_0x2c3b6d,_0xf9ef3f,_0x3096d0,_0x432882,_0x371301){return _0x26a1bd(_0x2c3b6d,_0xf9ef3f,_0x3096d0,_0x432882,_0x371301);},'NLPWJ':function(_0x3e07cf,_0x55c9ee){return _0x3e07cf(_0x55c9ee);},'yIKxn':'./playwright/command'},_0x271c93=process['argv'][_0x45bf21(0x139)](0x2);helper[_0x45bf21(0x163)](process[_0x45bf21(0x181)])&&(process['env']['BROWSERSTACK_CONFIG_FILE_PATH']=helper[_0x45bf21(0x163)](process[_0x45bf21(0x181)]));helper[_0x45bf21(0x152)](),helper[_0x45bf21(0x110)]();const _0x16a57e=new BrowserStackSetup(_0x2b0dd2[_0x45bf21(0x181)],FRAMEWORKS[_0x45bf21(0x10d)]);try{if(!_0x16a57e[_0x45bf21(0x18f)]||!_0x16a57e[_0x45bf21(0x18f)][_0x45bf21(0x10c)]){const _0x379366=_0x201bdc[_0x45bf21(0x179)],_0x1d71d1=process[_0x45bf21(0x11a)][_0x45bf21(0x11f)]||'',_0x377642=_0x1d71d1['split'](',')[_0x45bf21(0x16f)](_0x35f862=>_0x35f862[_0x45bf21(0x16a)]())['filter'](Boolean),_0x1872d6=_0x377642[_0x45bf21(0x198)](_0x1677e0=>_0x1677e0===_0x45bf21(0x153)||_0x1677e0===_0x45bf21(0x197)||_0x1677e0==='-*'),_0x162b1e=_0x377642['some'](_0x83148e=>_0x83148e===_0x379366||_0x83148e==='pw:*'||_0x83148e==='*');if(_0x201bdc[_0x45bf21(0x17f)](!_0x1872d6,!_0x162b1e)){const _0x5c72e7=helper[_0x45bf21(0x191)]();_0x5c72e7&&(process[_0x45bf21(0x11a)][_0x45bf21(0x11f)]=_0x1d71d1?_0x1d71d1+','+_0x379366:_0x379366,!process[_0x45bf21(0x11a)][_0x45bf21(0x183)]&&(process[_0x45bf21(0x11a)]['DEBUG_FILE']=_0x5c72e7));}}}catch(_0x457b63){logger['debug'](_0x45bf21(0x190)+util[_0x45bf21(0x15e)](_0x457b63));}return _0x201bdc['BtMdX'](captureError,_0x201bdc[_0x45bf21(0x177)](require,_0x201bdc[_0x45bf21(0x133)]),_0x2b0dd2['argv'],_0x16a57e,_0x271c93,!![]);})['command'](a55_0xf54377(0x11e),'Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x5043e0){const _0x50d9ce=a55_0xf54377,_0x2fc3ae={};_0x2fc3ae[_0x50d9ce(0x126)]=_0x50d9ce(0x18c),_0x2fc3ae['ERZva']=_0x50d9ce(0x184),_0x2fc3ae[_0x50d9ce(0x182)]=_0x50d9ce(0x166);const _0x49503b=_0x2fc3ae;return _0x5043e0[_0x50d9ce(0x18c)](![])[_0x50d9ce(0x174)](_0x49503b['eGNBC'],{'alias':'h','type':_0x49503b[_0x50d9ce(0x115)],'describe':_0x49503b[_0x50d9ce(0x182)]})[_0x50d9ce(0x17b)](![])[_0x50d9ce(0x122)](![]);},function(_0x57324f){const _0x6cc351=a55_0xf54377,_0x4a331c={'ilSgg':function(_0x3da70b,_0x4a74b5,_0x4f4370){return _0x3da70b(_0x4a74b5,_0x4f4370);},'gfxPp':function(_0x54d3e0,_0x3a0e88){return _0x54d3e0(_0x3a0e88);},'UuYCu':_0x6cc351(0x165)},_0x4bb2e9={};return _0x4bb2e9[_0x6cc351(0x181)]=_0x57324f,_0x4a331c['ilSgg'](captureError,_0x4a331c[_0x6cc351(0x155)](require,_0x4a331c[_0x6cc351(0x16b)]),_0x4bb2e9);})[a55_0xf54377(0x173)](a55_0xf54377(0x12c),Constants[a55_0xf54377(0x196)]['INFO'],function(_0x45a3c6){const _0x4ca066=a55_0xf54377,_0x1dc34f={'Hssli':_0x4ca066(0x12c),'vwrOe':function(_0x39e292,_0x15429b,_0x23efe1,_0x5f00ce,_0x5cb376){return _0x39e292(_0x15429b,_0x23efe1,_0x5f00ce,_0x5cb376);},'XriME':function(_0xf6c9ad,_0x2aba07){return _0xf6c9ad(_0x2aba07);},'aytaT':_0x4ca066(0x12e)},_0x4c51d4=process[_0x4ca066(0x181)][_0x4ca066(0x139)](0x2);helper[_0x4ca066(0x152)](),helper['setBrowserStackAutomationDisable'](),_0x45a3c6['strict'](![]);const _0x180948=new BrowserStackSetup(_0x45a3c6[_0x4ca066(0x181)],_0x1dc34f[_0x4ca066(0x1a3)]);return _0x1dc34f[_0x4ca066(0x194)](captureError,_0x1dc34f[_0x4ca066(0x19c)](require,_0x1dc34f[_0x4ca066(0x13d)]),_0x45a3c6[_0x4ca066(0x181)],_0x180948,_0x4c51d4);})[a55_0xf54377(0x11c)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0xf54377(0x161)](null)[a55_0xf54377(0x181)];function a55_0x548a(_0x366972,_0x42286d){const _0x5c7f2e=a55_0x5c7f();return a55_0x548a=function(_0x548aec,_0x5e3fb6){_0x548aec=_0x548aec-0x10a;let _0x1dd852=_0x5c7f2e[_0x548aec];return _0x1dd852;},a55_0x548a(_0x366972,_0x42286d);}!helper[a55_0xf54377(0x118)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0xf54377(0x18e)&&console[a55_0xf54377(0x1a6)](a55_0xf54377(0x10f));
|
package/src/bin/setup.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
function a56_0x5ac1(_0x536d8c,_0x29239a){const _0x40425b=a56_0x4042();return a56_0x5ac1=function(_0x5ac184,_0x17e3a8){_0x5ac184=_0x5ac184-0xff;let _0x16c49a=_0x40425b[_0x5ac184];return _0x16c49a;},a56_0x5ac1(_0x536d8c,_0x29239a);}const a56_0x1a4a88=a56_0x5ac1;(function(_0x25fbd9,_0x4717a7){const _0x5f1127=a56_0x5ac1,_0x5a179d=_0x25fbd9();while(!![]){try{const _0x146ded=parseInt(_0x5f1127(0x139))/0x1+parseInt(_0x5f1127(0x10b))/0x2+-parseInt(_0x5f1127(0x12f))/0x3*(-parseInt(_0x5f1127(0x106))/0x4)+-parseInt(_0x5f1127(0x12e))/0x5+-parseInt(_0x5f1127(0x137))/0x6*(parseInt(_0x5f1127(0x136))/0x7)+-parseInt(_0x5f1127(0x11c))/0x8*(-parseInt(_0x5f1127(0x134))/0x9)+-parseInt(_0x5f1127(0x119))/0xa*(-parseInt(_0x5f1127(0x123))/0xb);if(_0x146ded===_0x4717a7)break;else _0x5a179d['push'](_0x5a179d['shift']());}catch(_0x3c79b9){_0x5a179d['push'](_0x5a179d['shift']());}}}(a56_0x4042,0xcf641));const fs=require('fs'),helper=require('../helpers/helper'),utilities=require(a56_0x1a4a88(0x13f)),yaml=require(a56_0x1a4a88(0x12b)),yargs=require(a56_0x1a4a88(0x124)),logger=require(a56_0x1a4a88(0x132))[a56_0x1a4a88(0x112)],configFileTemplate=__dirname+a56_0x1a4a88(0x110),configFileTemplatePW=__dirname+a56_0x1a4a88(0x115),configFile=process[a56_0x1a4a88(0x10a)]()+a56_0x1a4a88(0x104),packageFile=process[a56_0x1a4a88(0x10a)]()+a56_0x1a4a88(0x10c),frameworks=['mocha',a56_0x1a4a88(0x130),'cucumber-js',a56_0x1a4a88(0x105),a56_0x1a4a88(0x133),a56_0x1a4a88(0x103),a56_0x1a4a88(0x131)];let config;logger['info'](a56_0x1a4a88(0x142)),createConfigurationFile(yargs[a56_0x1a4a88(0x118)][a56_0x1a4a88(0x121)],yargs[a56_0x1a4a88(0x118)]['key'],yargs['argv'][a56_0x1a4a88(0x131)]);try{sdkSetup();}catch(a56_0x4409f4){logger[a56_0x1a4a88(0x128)](a56_0x1a4a88(0x143)+a56_0x4409f4);}addScriptInPackageJson();function createConfigurationFile(_0x3ff8ac,_0x5b589e,_0x1df5f7=![]){const _0x3c0e44=a56_0x1a4a88,_0x40f6b1={};_0x40f6b1[_0x3c0e44(0xff)]=_0x3c0e44(0x108),_0x40f6b1[_0x3c0e44(0x11b)]=_0x3c0e44(0x13e),_0x40f6b1[_0x3c0e44(0x13c)]='YOUR_ACCESS_KEY';const _0x43c9a6=_0x40f6b1;try{let _0xd9d454=fs[_0x3c0e44(0x145)](_0x1df5f7?configFileTemplatePW:configFileTemplate,_0x43c9a6[_0x3c0e44(0xff)]);_0x3ff8ac&&(_0xd9d454=_0xd9d454['replace'](_0x43c9a6[_0x3c0e44(0x11b)],_0x3ff8ac)),_0x5b589e&&(_0xd9d454=_0xd9d454[_0x3c0e44(0x120)](_0x43c9a6[_0x3c0e44(0x13c)],_0x5b589e)),config=yaml[_0x3c0e44(0x111)](_0xd9d454),fs['writeFileSync'](configFile,_0xd9d454,_0x15db43=>{const _0x13f4ac=_0x3c0e44;_0x15db43&&logger[_0x13f4ac(0x146)](_0x15db43);});}catch(_0x4917ba){logger[_0x3c0e44(0x146)](_0x4917ba);}}function a56_0x4042(){const _0x461592=['2788560LNEjGJ','npm\x20update\x20browserstack-node-sdk','rxYGs','8CjxuDT','Setup\x20completed','split','stringify','replace','username','source','22WMQzKI','yargs','splice','RWadW','parse','debug','info','muKup','js-yaml','SDKSetup','gpSFY','5734190HBoJuc','12387gomTaE','jest','playwright','../helpers/logger','nightwatch','3112407Nkemrp','Adding\x20new\x20script(s)\x20in\x20package.json...','9304239qrBhDD','6bYLTnP','postinstall','978280vqFYqE','node-setup','length','XAfSb','hdXAZ','YOUR_USERNAME','../helpers/utilities','push','browserstack-node-sdk','Creating\x20configuration\x20file...','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','fireFunnelTestEvent','readFileSync','error','TwJwW','aOhWB','writeFileSync','LqSNF','entries','XeLoS','-browserstack','codeceptjs','/browserstack.yml','node','492FSisZf','bRDZH','utf8','ZfSTz','cwd','1871612sVrJgo','/package.json','indexOf','scripts','kHyGw','/../../browserstack.yml.sample','load','winstonLogger','YLxlr','includes','/../../browserstack.pw.yml.sample','join','IKCKR','argv'];a56_0x4042=function(){return _0x461592;};return a56_0x4042();}function addPostInstallScript(_0x1cd0c6,_0x17c308){const _0x4915ae=a56_0x1a4a88,_0x307b5e={};_0x307b5e[_0x4915ae(0x10f)]=_0x4915ae(0x138),_0x307b5e[_0x4915ae(0x148)]=_0x4915ae(0x11a),_0x307b5e[_0x4915ae(0x126)]='\x20&&\x20npm\x20update\x20browserstack-node-sdk';const _0x4de567=_0x307b5e;let _0x18321c=_0x1cd0c6[_0x4de567['kHyGw']];if(_0x18321c&&_0x18321c[_0x4915ae(0x114)](_0x4de567[_0x4915ae(0x148)]))return;!_0x18321c?_0x18321c=_0x4de567[_0x4915ae(0x148)]:_0x18321c+=_0x4de567[_0x4915ae(0x126)],_0x17c308[_0x4915ae(0x140)]([_0x4de567[_0x4915ae(0x10f)],_0x18321c]);}function addScriptInPackageJson(){const _0x20f5e8=a56_0x1a4a88,_0x382f47={'jrbZQ':_0x20f5e8(0x108),'eYJkk':function(_0x403173,_0x69cfb7){return _0x403173<_0x69cfb7;},'wWhGm':function(_0x55a76c,_0x457b9d,_0x3fcb5c){return _0x55a76c(_0x457b9d,_0x3fcb5c);},'muKup':function(_0x5ae7ad,_0x5d3145){return _0x5ae7ad!==_0x5d3145;},'gpSFY':_0x20f5e8(0x135)},_0x2ef438=JSON[_0x20f5e8(0x127)](fs[_0x20f5e8(0x145)](packageFile,_0x382f47['jrbZQ'])),_0x5ba3d5=[];for(let _0x24db3b=0x0;_0x382f47['eYJkk'](_0x24db3b,frameworks[_0x20f5e8(0x13b)]);_0x24db3b+=0x1){const _0x28caf6=_0x382f47['wWhGm'](findScriptsWithFramework,_0x2ef438[_0x20f5e8(0x10e)],frameworks[_0x24db3b]);for(let _0x20ba95=0x0;_0x382f47['eYJkk'](_0x20ba95,_0x28caf6[_0x20f5e8(0x13b)]);_0x20ba95+=0x1){_0x5ba3d5[_0x20f5e8(0x140)](_0x382f47['wWhGm'](getUpdatedCommand,_0x2ef438['scripts'],_0x28caf6[_0x20ba95]));}_0x382f47['wWhGm'](addPostInstallScript,_0x2ef438[_0x20f5e8(0x10e)],_0x5ba3d5);}const _0x33d72d={..._0x2ef438['scripts']},_0x5dfbb3=_0x33d72d;for(let _0x194386=0x0;_0x382f47['eYJkk'](_0x194386,_0x5ba3d5[_0x20f5e8(0x13b)]);_0x194386+=0x1){_0x5dfbb3[_0x5ba3d5[_0x194386][0x0]]=_0x5ba3d5[_0x194386][0x1];}_0x382f47[_0x20f5e8(0x12a)](JSON[_0x20f5e8(0x11f)](_0x2ef438['scripts']),JSON['stringify'](_0x5dfbb3))&&(logger[_0x20f5e8(0x129)](_0x382f47[_0x20f5e8(0x12d)]),_0x2ef438[_0x20f5e8(0x10e)]=_0x5dfbb3,fs[_0x20f5e8(0x149)](packageFile,JSON[_0x20f5e8(0x11f)](_0x2ef438,null,0x2),_0x12a70a=>{const _0x3a4723=_0x20f5e8;_0x12a70a&&logger[_0x3a4723(0x146)](_0x12a70a);}));};function findScriptsWithFramework(_0x2ae4f2,_0x576e67){const _0x490bf1=a56_0x1a4a88,_0x36f3f3={};_0x36f3f3[_0x490bf1(0x117)]=function(_0x5a5761,_0x2fcefe){return _0x5a5761<_0x2fcefe;},_0x36f3f3['ZfSTz']=_0x490bf1(0x141);const _0x14dfe7=_0x36f3f3,_0x329207=[],_0x251349=Object[_0x490bf1(0x100)](_0x2ae4f2);for(let _0xd600d0=0x0;_0x14dfe7[_0x490bf1(0x117)](_0xd600d0,_0x251349[_0x490bf1(0x13b)]);_0xd600d0+=0x1){_0x251349[_0xd600d0][0x1][_0x490bf1(0x114)](_0x576e67)&&!_0x251349[_0xd600d0][0x1]['includes'](_0x14dfe7[_0x490bf1(0x109)])&&_0x329207[_0x490bf1(0x140)](_0x251349[_0xd600d0][0x0]);}return _0x329207;}function getUpdatedCommand(_0x33802f,_0x45578f){const _0x230d2f=a56_0x1a4a88,_0x17b374={};_0x17b374[_0x230d2f(0x13d)]=function(_0x4eccb5,_0x3a4526){return _0x4eccb5!==_0x3a4526;},_0x17b374[_0x230d2f(0x113)]=_0x230d2f(0x141),_0x17b374[_0x230d2f(0x107)]=function(_0x1d443c,_0x2e44d7){return _0x1d443c===_0x2e44d7;};const _0x5bad74=_0x17b374,_0x51503f=_0x45578f+_0x230d2f(0x102),_0x26b829=_0x33802f[_0x45578f],_0x1dd9c6=_0x26b829[_0x230d2f(0x11e)]('\x20');for(const _0x272b73 of frameworks){if(_0x5bad74[_0x230d2f(0x13d)](_0x1dd9c6[_0x230d2f(0x10d)](_0x272b73),-0x1)){_0x1dd9c6[_0x230d2f(0x125)](_0x1dd9c6[_0x230d2f(0x10d)](_0x272b73),0x0,_0x5bad74[_0x230d2f(0x113)]);break;}}let _0x22806c=_0x1dd9c6[_0x230d2f(0x116)]('\x20');return _0x5bad74[_0x230d2f(0x107)](_0x22806c,_0x26b829)&&(_0x22806c='browserstack-node-sdk\x20'+_0x26b829),[_0x51503f,_0x22806c];}function sdkSetup(){const _0x29ac24=a56_0x1a4a88,_0x4a737e={};_0x4a737e[_0x29ac24(0x101)]=_0x29ac24(0x13a),_0x4a737e[_0x29ac24(0x147)]=_0x29ac24(0x12c);const _0x256377=_0x4a737e;if(helper['isUndefined'](config))return;config[_0x29ac24(0x122)]=_0x256377[_0x29ac24(0x101)];try{utilities[_0x29ac24(0x144)](_0x256377[_0x29ac24(0x147)],{},config,'');}catch(_0x2d2462){logger[_0x29ac24(0x128)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x2d2462);}}logger[a56_0x1a4a88(0x129)](a56_0x1a4a88(0x11d));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57_0x42fe1b=a57_0x5139;(function(_0x1a3456,_0x27f411){const _0x221b22=a57_0x5139,_0x54bfce=_0x1a3456();while(!![]){try{const _0x5e67c2=parseInt(_0x221b22(0x18a))/0x1*(parseInt(_0x221b22(0x1a3))/0x2)+parseInt(_0x221b22(0x188))/0x3+parseInt(_0x221b22(0x1d7))/0x4+parseInt(_0x221b22(0x180))/0x5*(parseInt(_0x221b22(0x1a1))/0x6)+parseInt(_0x221b22(0x19e))/0x7*(-parseInt(_0x221b22(0x191))/0x8)+parseInt(_0x221b22(0x19f))/0x9+-parseInt(_0x221b22(0x196))/0xa;if(_0x5e67c2===_0x27f411)break;else _0x54bfce['push'](_0x54bfce['shift']());}catch(_0x36cc96){_0x54bfce['push'](_0x54bfce['shift']());}}}(a57_0x505a,0xcb11e));function a57_0x5139(_0x4cc3aa,_0x22d130){const _0x505aea=a57_0x505a();return a57_0x5139=function(_0x5139a1,_0x3a3dbd){_0x5139a1=_0x5139a1-0x17a;let _0x43a0b0=_0x505aea[_0x5139a1];return _0x43a0b0;},a57_0x5139(_0x4cc3aa,_0x22d130);}const Worker=require('jest-worker')[a57_0x42fe1b(0x1ca)],Emittery=require(a57_0x42fe1b(0x1a2)),pLimit=require(a57_0x42fe1b(0x1a8)),{parentPort}=require('worker_threads'),util=require(a57_0x42fe1b(0x1d4)),logger=require(a57_0x42fe1b(0x17e))['winstonLogger'],PerformanceTester=require(a57_0x42fe1b(0x1c2)),PerformanceEvents=require('../../helpers/performance/constants')[a57_0x42fe1b(0x1af)],{debug}=require(a57_0x42fe1b(0x187)),TestHubHandler=require(a57_0x42fe1b(0x198));function a57_0x505a(){const _0x5b7c7b=['format','stop','waitForExit','end','../../helpers/performance/performance-tester','platform-run-failure','vPNUM','debug','config','VYMqB','mCksD','parallelCucumberRun','Worker','exitCode','exit','\x20for','vanillaWorker','_workerPool','iVkFQ','xheGy','Running\x20','parallelVanillaRun','util','test-file-failure','Workers\x20failed\x20to\x20exit\x20gracefully','657744Jzbsyg','error','all','platform-run-success','ZrSHL','../../helpers/logger','ZZfpr','85lETgir','SDK_SETUP','platformCaps','emit','file','failureCount','TdNRF','../../helpers/test-observability/utils','2595882TnfWJp','getWorkers','86598qwwmLk','map','SNJDn','getStderr','log','resolve','json','4903952jEMQax','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','_child','SIpvL','zTucU','15163430FPMxBw','Xkchn','../../helpers/testhub/testhubHandler','push','RLIqU','postMessage','worker','test-file-success','7hADYNw','4150530CjwEjb','LFLdM','243822uuHXcp','emittery','18bSXVEh','platforms','./testWorker.js','length','Exception\x20in\x20sending\x20worker\x20message\x20','p-limit','HRWnN','stderr','Fuwom','test-file-start','JLpBs','platform','EVENTS','configuration','pipe','VSELe','icxgo','platform-run-start','tueHy','then','NcMWs','todWh','stdout','uIHns','fmbvc','platformIndex','getStdout'];a57_0x505a=function(){return _0x5b7c7b;};return a57_0x505a();}exports['parallelTestRun']=(_0x57699f,_0x262299,_0x50b653)=>new Promise(async _0x1760ba=>{const _0x2d6fdd=a57_0x42fe1b,_0x1c1952={'iVkFQ':_0x2d6fdd(0x185),'vPNUM':function(_0x473cce,_0x181715){return _0x473cce+_0x181715;},'VYMqB':'results','pAznV':_0x2d6fdd(0x1d6),'LFLdM':function(_0x2e6d4e,_0x419ec7){return _0x2e6d4e(_0x419ec7);},'HRWnN':function(_0x3bd44c,_0x60594e){return _0x3bd44c(_0x60594e);},'uIHns':_0x2d6fdd(0x1ac),'Fuwom':_0x2d6fdd(0x1a5),'HnjFA':_0x2d6fdd(0x19c),'fmbvc':'json','Xkchn':'pipe','lkspd':function(_0x31e5de,_0x3ef056){return _0x31e5de*_0x3ef056;},'icxgo':_0x2d6fdd(0x19d),'eXIPg':_0x2d6fdd(0x1d5)},_0xdec388=_0x50b653[_0x2d6fdd(0x1c6)],_0x2d85c6={},_0x19a53b=new Worker(require[_0x2d6fdd(0x18f)](_0x1c1952[_0x2d6fdd(0x1ab)]),{'exposedMethods':[_0x1c1952['HnjFA']],'forkOptions':{'serialization':_0x1c1952[_0x2d6fdd(0x1bb)],'stdio':_0x1c1952[_0x2d6fdd(0x197)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x1c1952['lkspd'](_0x262299,0x1),'enableWorkerThreads':!![]}),_0x44dc17=new Emittery();_0x44dc17['on'](_0x1c1952[_0x2d6fdd(0x1b3)],_0x189c60=>{const _0x525a32=_0x2d6fdd;_0x2d85c6[_0x189c60[0x0]]?(_0x2d85c6[_0x189c60[0x0]][_0x1c1952[_0x525a32(0x1d0)]]=_0x1c1952[_0x525a32(0x1c4)](_0x2d85c6[_0x189c60[0x0]][_0x1c1952[_0x525a32(0x1d0)]],_0x189c60[0x1][_0x1c1952[_0x525a32(0x1d0)]]),_0x2d85c6[_0x189c60[0x0]][_0x1c1952['VYMqB']]=[..._0x2d85c6[_0x189c60[0x0]][_0x1c1952['VYMqB']],..._0x189c60[0x1][_0x1c1952[_0x525a32(0x1c7)]]]):_0x2d85c6[_0x189c60[0x0]]={'failureCount':_0x189c60[0x1][_0x1c1952[_0x525a32(0x1d0)]],'results':[..._0x189c60[0x1][_0x1c1952[_0x525a32(0x1c7)]]]};}),_0x44dc17['on'](_0x1c1952['eXIPg'],_0x1cdeca=>console['log'](_0x1cdeca[0x1]));_0x19a53b['getStdout']()&&_0x19a53b[_0x2d6fdd(0x1bd)]()['pipe'](process[_0x2d6fdd(0x1b9)]);_0x19a53b[_0x2d6fdd(0x18d)]()&&_0x19a53b['getStderr']()['pipe'](process[_0x2d6fdd(0x1aa)]);const _0x45a872=async()=>{const _0x2696c2=_0x2d6fdd,{forceExited:_0x191342}=await _0x19a53b[_0x2696c2(0x1c1)]();_0x191342&&console['error'](_0x1c1952['pAznV']);try{await TestHubHandler[_0x2696c2(0x1bf)]();}catch(_0x4785fc){_0x1c1952[_0x2696c2(0x1a0)](debug,_0x2696c2(0x192)+_0x4785fc);}_0x1c1952[_0x2696c2(0x1a9)](_0x1760ba,_0x2d85c6);},_0x5e8f8f=_0x1c1952[_0x2d6fdd(0x1a9)](pLimit,_0x1c1952['lkspd'](_0x262299,0x1)),_0x30e736=_0x2a1ce6=>_0x5e8f8f(async()=>{const _0x27cc91=_0x2d6fdd;await _0x44dc17[_0x27cc91(0x183)](_0x1c1952[_0x27cc91(0x1ba)],_0x2a1ce6);const _0x324910=_0x19a53b[_0x27cc91(0x19c)](_0x2a1ce6,_0xdec388);try{parentPort&&_0x324910['UNSTABLE_onCustomMessage'](_0x542db2=>{const _0x518115=_0x27cc91;try{parentPort[_0x518115(0x19b)](_0x542db2);}catch(_0x281b26){logger[_0x518115(0x1c5)](_0x518115(0x1a7)+util['format'](_0x281b26));}});}catch(_0x5504ae){logger['debug']('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x27cc91(0x1be)](_0x5504ae));}return _0x324910;});PerformanceTester[_0x2d6fdd(0x1c1)](PerformanceEvents[_0x2d6fdd(0x181)]),Promise[_0x2d6fdd(0x17b)](_0x57699f['map'](_0x5218d8=>_0x30e736(_0x5218d8)[_0x2d6fdd(0x1b6)](_0x390656=>_0x44dc17[_0x2d6fdd(0x183)](_0x2d6fdd(0x19d),[_0x5218d8['configuration'][_0x2d6fdd(0x1ae)],_0x390656]),_0x1299b6=>_0x44dc17[_0x2d6fdd(0x183)]('test-file-failure',[_0x5218d8,_0x1299b6]))))[_0x2d6fdd(0x1b6)](_0x45a872,_0x45a872);}),exports[a57_0x42fe1b(0x1c9)]=(_0x2063ed,_0x4e0f2d,_0x151a6d,_0x5a4fed,_0x23c93f)=>{const _0x24bd9e=a57_0x42fe1b,_0x1f5f00={'XZcDj':_0x24bd9e(0x1d6),'qPnBi':function(_0x257166,_0x42ed9d){return _0x257166(_0x42ed9d);},'mCksD':_0x24bd9e(0x1b4),'xheGy':_0x24bd9e(0x1a5),'VSELe':'cucumberWorker','hieSW':_0x24bd9e(0x190),'todWh':'pipe','RLIqU':_0x24bd9e(0x17c),'tueHy':'platform-run-failure','SIpvL':function(_0x4fa2f2,_0x1043af){return _0x4fa2f2(_0x1043af);}};return new Promise(_0x19ab24=>{const _0x3a73d7=_0x24bd9e,_0x554d75={};_0x554d75['TdNRF']=_0x1f5f00[_0x3a73d7(0x1c8)];const _0xcf6f8c=_0x554d75,_0xc1a22e=[],_0x9d1707=new Worker(require[_0x3a73d7(0x18f)](_0x1f5f00[_0x3a73d7(0x1d1)]),{'exposedMethods':[_0x1f5f00[_0x3a73d7(0x1b2)]],'forkOptions':{'serialization':_0x1f5f00['hieSW'],'stdio':_0x1f5f00[_0x3a73d7(0x1b8)]},'numWorkers':_0x2063ed[_0x3a73d7(0x1a6)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x42e4f5=new Emittery();_0x42e4f5['on'](_0x1f5f00[_0x3a73d7(0x19a)],_0x37f93a=>{const _0x3edd55=_0x3a73d7;_0xc1a22e[_0x3edd55(0x199)]([_0x37f93a[0x0],_0x37f93a[0x1]]);}),_0x42e4f5['on'](_0x1f5f00[_0x3a73d7(0x1b5)],_0x308fcd=>console[_0x3a73d7(0x18e)](_0x308fcd[0x1]));_0x9d1707[_0x3a73d7(0x1bd)]()&&_0x9d1707[_0x3a73d7(0x1bd)]()[_0x3a73d7(0x1b1)](process['stdout']);_0x9d1707['getStderr']()&&_0x9d1707[_0x3a73d7(0x18d)]()['pipe'](process['stderr']);const _0x1904be=async()=>{const _0x26afa1=_0x3a73d7,{forceExited:_0x3cebf1}=await _0x9d1707[_0x26afa1(0x1c1)]();_0x3cebf1&&console[_0x26afa1(0x17a)](_0x1f5f00['XZcDj']),_0x1f5f00['qPnBi'](_0x19ab24,_0xc1a22e);},_0x2068fa=_0x1f5f00[_0x3a73d7(0x194)](pLimit,_0x2063ed[_0x3a73d7(0x1a6)]||0x1),_0x10ee83=(_0x80211d,_0x40ab46)=>_0x2068fa(async()=>{const _0x5e8567=_0x3a73d7;return await _0x42e4f5[_0x5e8567(0x183)](_0xcf6f8c[_0x5e8567(0x186)],_0x80211d),_0x4e0f2d[_0x5e8567(0x182)]=_0x151a6d[_0x5e8567(0x1a4)][_0x40ab46],_0x4e0f2d[_0x5e8567(0x1bc)]=_0x40ab46,_0x9d1707['cucumberWorker'](_0x80211d,_0x4e0f2d,_0x151a6d,_0x5a4fed,_0x23c93f);});Promise[_0x3a73d7(0x17b)](_0x2063ed[_0x3a73d7(0x18b)]((_0x212e72,_0x1ff1fb)=>_0x10ee83(_0x212e72,_0x1ff1fb)[_0x3a73d7(0x1b6)](_0x298839=>_0x42e4f5['emit'](_0x3a73d7(0x17c),[_0x212e72,_0x298839]),_0x495eb3=>_0x42e4f5[_0x3a73d7(0x183)](_0x3a73d7(0x1c3),[_0x212e72,_0x495eb3]))))['then'](_0x1904be,_0x1904be);});},exports[a57_0x42fe1b(0x1d3)]=(_0xc47d6a,_0x2e4819)=>new Promise(_0x1654e8=>{const _0x2cba2c=a57_0x42fe1b,_0x507364={'cqJqz':function(_0x14d65a,_0xa80d29){return _0x14d65a===_0xa80d29;},'SNJDn':function(_0x838ffd,_0x5bfacc){return _0x838ffd!==_0x5bfacc;},'iXTaX':_0x2cba2c(0x1cc),'hGyQc':_0x2cba2c(0x1d6),'ZrSHL':function(_0x2d6751,_0x47c871){return _0x2d6751(_0x47c871);},'oHKmY':_0x2cba2c(0x1a5),'zTucU':'vanillaWorker','NcMWs':_0x2cba2c(0x190),'EeWts':_0x2cba2c(0x1b1),'ZZfpr':_0x2cba2c(0x19d),'JLpBs':_0x2cba2c(0x1d5),'ExRSf':function(_0x3502a1,_0x129948){return _0x3502a1(_0x129948);}},_0x483988={},_0x2c0d8f=new Worker(require[_0x2cba2c(0x18f)](_0x507364['oHKmY']),{'exposedMethods':[_0x507364[_0x2cba2c(0x195)]],'forkOptions':{'serialization':_0x507364[_0x2cba2c(0x1b7)],'stdio':_0x507364['EeWts']},'numWorkers':_0x2e4819,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x1a69f4=new Emittery();_0x1a69f4['on'](_0x507364[_0x2cba2c(0x17f)],_0x2a46ea=>{const _0xb7d32d=_0x2cba2c;_0x2a46ea[0x0]&&logger['info'](_0xb7d32d(0x1d2)+_0x2a46ea[0x1]+_0xb7d32d(0x1cd),_0x2a46ea[0x0]);}),_0x1a69f4['on'](_0x507364[_0x2cba2c(0x1ad)],_0x28909d=>{const _0x16d8b4=_0x2cba2c;process[_0x16d8b4(0x1cb)]=0x1;});_0x2c0d8f['getStdout']()&&_0x2c0d8f[_0x2cba2c(0x1bd)]()['pipe'](process[_0x2cba2c(0x1b9)]);_0x2c0d8f[_0x2cba2c(0x18d)]()&&_0x2c0d8f['getStderr']()['pipe'](process[_0x2cba2c(0x1aa)]);const _0x1f5015=async()=>{const _0x221909=_0x2cba2c;let _0x165740=0x0;const _0x96c682=_0x2c0d8f[_0x221909(0x1cf)][_0x221909(0x189)](),_0x3e9759=()=>{},_0x418a0b=_0x96c682['map'](async _0x3fe53e=>{const _0x4819f3=_0x221909,_0x4d0818={'japUH':function(_0x459ec3,_0x234e4d){return _0x507364['cqJqz'](_0x459ec3,_0x234e4d);},'xibOy':function(_0xeb7f01,_0xc06fb8){const _0x5e33e1=a57_0x5139;return _0x507364[_0x5e33e1(0x18c)](_0xeb7f01,_0xc06fb8);}};_0x3fe53e['send']([0x2,![]],_0x3e9759,_0x3e9759,_0x3e9759),_0x3fe53e[_0x4819f3(0x193)]['on'](_0x507364['iXTaX'],_0x5f2a3a=>{_0x4d0818['japUH'](_0x165740,0x0)&&_0x4d0818['xibOy'](_0x5f2a3a,0x0)&&(_0x165740=_0x5f2a3a);}),await _0x3fe53e[_0x4819f3(0x1c0)]();});await Promise[_0x221909(0x17b)](_0x418a0b),process['exitCode']=_0x165740;const {forceExited:_0x19b9ac}=await _0x2c0d8f[_0x221909(0x1c1)]();_0x19b9ac&&console['error'](_0x507364['hGyQc']),_0x507364[_0x221909(0x17d)](_0x1654e8,_0x483988);},_0x3cac1f=_0x507364['ExRSf'](pLimit,_0x2e4819),_0x4b7744=_0x4a2aa3=>_0x3cac1f(async()=>{const _0x52bafc=_0x2cba2c;return _0x2c0d8f[_0x52bafc(0x1ce)](_0x4a2aa3);});Promise['all'](_0xc47d6a[_0x2cba2c(0x18b)](_0x123464=>_0x4b7744(_0x123464)[_0x2cba2c(0x1b6)](_0x71b5e6=>_0x1a69f4[_0x2cba2c(0x183)](_0x2cba2c(0x19d),[_0x123464[_0x2cba2c(0x1b0)][_0x2cba2c(0x1ae)],_0x123464['configuration'][_0x2cba2c(0x184)]]),_0x45b32c=>_0x1a69f4[_0x2cba2c(0x183)](_0x2cba2c(0x1d5),[_0x123464,_0x45b32c]))))['then'](_0x1f5015,_0x1f5015);});
|
|
1
|
+
const a57_0x453b64=a57_0xfb70;(function(_0x5d3efc,_0x53d34f){const _0x373d80=a57_0xfb70,_0x2da90c=_0x5d3efc();while(!![]){try{const _0x545543=-parseInt(_0x373d80(0x169))/0x1*(parseInt(_0x373d80(0x155))/0x2)+-parseInt(_0x373d80(0x128))/0x3+-parseInt(_0x373d80(0x12b))/0x4+parseInt(_0x373d80(0x117))/0x5+parseInt(_0x373d80(0x142))/0x6+parseInt(_0x373d80(0x115))/0x7*(parseInt(_0x373d80(0x11c))/0x8)+-parseInt(_0x373d80(0x160))/0x9*(-parseInt(_0x373d80(0x166))/0xa);if(_0x545543===_0x53d34f)break;else _0x2da90c['push'](_0x2da90c['shift']());}catch(_0x264347){_0x2da90c['push'](_0x2da90c['shift']());}}}(a57_0x158b,0x4ce4f));function a57_0xfb70(_0xf81812,_0x246bca){const _0x158b9b=a57_0x158b();return a57_0xfb70=function(_0xfb70c4,_0x40e0c3){_0xfb70c4=_0xfb70c4-0x113;let _0x2e305a=_0x158b9b[_0xfb70c4];return _0x2e305a;},a57_0xfb70(_0xf81812,_0x246bca);}function a57_0x158b(){const _0x3520ec=['waitForExit','UNSTABLE_onCustomMessage','xjrDe','9ZgbPno','jTdPp','LkuGH','oMRIR','uGrGH','format','4880270sPMkAp','exitCode','gXyYP','67PEYnTV','YXvND','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','hMuRm','OFZYG','platforms','platform-run-start','stop','getStdout','kWCym','pipe','itySz','Running\x20','SDK_SETUP','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20','stderr','platform-run-failure','nlTYY','platform-run-success','637olakLe','platformIndex','1015610qeYbpu','../../helpers/test-observability/utils','DZrwV','results','cucumberWorker','37432AHcxfq','getWorkers','test-file-success','test-file-failure','DddoJ','exit','resolve','bYvxe','ZCdgQ','debug','EVENTS','YURDP','1835364XxLuGT','Workers\x20failed\x20to\x20exit\x20gracefully','error','1112676IvRqJR','push','send','log','UYpYb','platformCaps','configuration','stdout','all','RtINA','pBovJ','QSOAA','Crmfe','json','parallelCucumberRun','length','then','map','nQReH','\x20for','agVFO','getStderr','emit','3272322vPPqyt','PpzRK','Exception\x20in\x20sending\x20worker\x20message\x20','_child','winstonLogger','KTncr','end','emittery','NYCRa','postMessage','vanillaWorker','./testWorker.js','p-limit','worker_threads','util','UjaBW','info','Mxcne','platform','13654gFffuj','_workerPool','worker','../../helpers/testhub/testhubHandler','parallelTestRun','../../helpers/performance/performance-tester','failureCount','file'];a57_0x158b=function(){return _0x3520ec;};return a57_0x158b();}const Worker=require('jest-worker')['Worker'],Emittery=require(a57_0x453b64(0x149)),pLimit=require(a57_0x453b64(0x14e)),{parentPort}=require(a57_0x453b64(0x14f)),util=require(a57_0x453b64(0x150)),logger=require('../../helpers/logger')[a57_0x453b64(0x146)],PerformanceTester=require(a57_0x453b64(0x15a)),PerformanceEvents=require('../../helpers/performance/constants')[a57_0x453b64(0x126)],{debug}=require(a57_0x453b64(0x118)),TestHubHandler=require(a57_0x453b64(0x158));exports[a57_0x453b64(0x159)]=(_0x910bb4,_0x2b865f,_0x5f2854)=>new Promise(async _0x75154=>{const _0x492f7e=a57_0x453b64,_0x524d4e={'uGrGH':_0x492f7e(0x15b),'DZrwV':function(_0x2f838f,_0x58c4a5){return _0x2f838f+_0x58c4a5;},'nlTYY':_0x492f7e(0x11a),'xjrDe':'Workers\x20failed\x20to\x20exit\x20gracefully','DddoJ':function(_0x4d4955,_0x4dc23d){return _0x4d4955(_0x4dc23d);},'pBovJ':'test-file-start','qrcdd':_0x492f7e(0x14d),'otynE':_0x492f7e(0x157),'pTEzl':_0x492f7e(0x138),'RtINA':_0x492f7e(0x173),'kWCym':function(_0x4474ff,_0x4d7993){return _0x4474ff*_0x4d7993;},'bYvxe':_0x492f7e(0x11e),'agVFO':_0x492f7e(0x11f),'itySz':function(_0x9ba9b6,_0x1541fb){return _0x9ba9b6(_0x1541fb);}},_0x46110e=_0x5f2854['config'],_0x5069ae={},_0x1d9698=new Worker(require[_0x492f7e(0x122)](_0x524d4e['qrcdd']),{'exposedMethods':[_0x524d4e['otynE']],'forkOptions':{'serialization':_0x524d4e['pTEzl'],'stdio':_0x524d4e[_0x492f7e(0x134)]},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x524d4e[_0x492f7e(0x172)](_0x2b865f,0x1),'enableWorkerThreads':!![]}),_0x23365e=new Emittery();_0x23365e['on'](_0x524d4e[_0x492f7e(0x123)],_0x1a917f=>{const _0x2448b2=_0x492f7e;_0x5069ae[_0x1a917f[0x0]]?(_0x5069ae[_0x1a917f[0x0]][_0x524d4e[_0x2448b2(0x164)]]=_0x524d4e[_0x2448b2(0x119)](_0x5069ae[_0x1a917f[0x0]][_0x524d4e[_0x2448b2(0x164)]],_0x1a917f[0x1][_0x524d4e['uGrGH']]),_0x5069ae[_0x1a917f[0x0]][_0x524d4e['nlTYY']]=[..._0x5069ae[_0x1a917f[0x0]][_0x524d4e[_0x2448b2(0x113)]],..._0x1a917f[0x1][_0x524d4e['nlTYY']]]):_0x5069ae[_0x1a917f[0x0]]={'failureCount':_0x1a917f[0x1][_0x524d4e[_0x2448b2(0x164)]],'results':[..._0x1a917f[0x1][_0x524d4e[_0x2448b2(0x113)]]]};}),_0x23365e['on'](_0x524d4e[_0x492f7e(0x13f)],_0x5a9e0a=>console[_0x492f7e(0x12e)](_0x5a9e0a[0x1]));_0x1d9698['getStdout']()&&_0x1d9698[_0x492f7e(0x171)]()[_0x492f7e(0x173)](process[_0x492f7e(0x132)]);_0x1d9698[_0x492f7e(0x140)]()&&_0x1d9698[_0x492f7e(0x140)]()['pipe'](process[_0x492f7e(0x178)]);const _0x402303=async()=>{const _0x43e83a=_0x492f7e,{forceExited:_0x3ab2b5}=await _0x1d9698[_0x43e83a(0x148)]();_0x3ab2b5&&console[_0x43e83a(0x12a)](_0x524d4e[_0x43e83a(0x15f)]);try{await TestHubHandler[_0x43e83a(0x170)]();}catch(_0x39e2bb){_0x524d4e[_0x43e83a(0x120)](debug,_0x43e83a(0x16b)+_0x39e2bb);}_0x524d4e['DddoJ'](_0x75154,_0x5069ae);},_0x2871c0=_0x524d4e[_0x492f7e(0x174)](pLimit,_0x524d4e['kWCym'](_0x2b865f,0x1)),_0x11891a=_0x3ab5ec=>_0x2871c0(async()=>{const _0x352407=_0x492f7e;await _0x23365e[_0x352407(0x141)](_0x524d4e[_0x352407(0x135)],_0x3ab5ec);const _0x4996c3=_0x1d9698[_0x352407(0x157)](_0x3ab5ec,_0x46110e);try{parentPort&&_0x4996c3[_0x352407(0x15e)](_0x3b7f26=>{const _0x1bfa25=_0x352407;try{parentPort[_0x1bfa25(0x14b)](_0x3b7f26);}catch(_0x37d88f){logger[_0x1bfa25(0x125)](_0x1bfa25(0x144)+util['format'](_0x37d88f));}});}catch(_0x217c7c){logger['debug'](_0x352407(0x177)+util[_0x352407(0x165)](_0x217c7c));}return _0x4996c3;});PerformanceTester[_0x492f7e(0x148)](PerformanceEvents[_0x492f7e(0x176)]),Promise['all'](_0x910bb4[_0x492f7e(0x13c)](_0x5cbd5b=>_0x11891a(_0x5cbd5b)[_0x492f7e(0x13b)](_0x24b2f0=>_0x23365e[_0x492f7e(0x141)](_0x492f7e(0x11e),[_0x5cbd5b[_0x492f7e(0x131)]['platform'],_0x24b2f0]),_0x348d07=>_0x23365e[_0x492f7e(0x141)](_0x492f7e(0x11f),[_0x5cbd5b,_0x348d07]))))['then'](_0x402303,_0x402303);}),exports[a57_0x453b64(0x139)]=(_0x32bd8c,_0x83c31a,_0x3417bf,_0x1d5dc4,_0x5f48e6)=>{const _0x3ad786=a57_0x453b64,_0x464ef2={'YXvND':_0x3ad786(0x129),'iKtbu':function(_0x3a5ea9,_0x4e1ece){return _0x3a5ea9(_0x4e1ece);},'Crmfe':_0x3ad786(0x16f),'hMuRm':'./testWorker.js','NYCRa':'cucumberWorker','ZCdgQ':_0x3ad786(0x138),'PpzRK':_0x3ad786(0x173),'QSOAA':_0x3ad786(0x114),'gXyYP':_0x3ad786(0x179),'iYFCg':function(_0x487d64,_0x2514bf){return _0x487d64(_0x2514bf);}};return new Promise(_0x2e31d4=>{const _0x356b97=_0x3ad786,_0x4c4afb=[],_0x12412b=new Worker(require[_0x356b97(0x122)](_0x464ef2[_0x356b97(0x16c)]),{'exposedMethods':[_0x464ef2[_0x356b97(0x14a)]],'forkOptions':{'serialization':_0x464ef2[_0x356b97(0x124)],'stdio':_0x464ef2[_0x356b97(0x143)]},'numWorkers':_0x32bd8c[_0x356b97(0x13a)]||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x53cc64=new Emittery();_0x53cc64['on'](_0x464ef2[_0x356b97(0x136)],_0x103f26=>{const _0x587020=_0x356b97;_0x4c4afb[_0x587020(0x12c)]([_0x103f26[0x0],_0x103f26[0x1]]);}),_0x53cc64['on'](_0x464ef2[_0x356b97(0x168)],_0x72ec5e=>console[_0x356b97(0x12e)](_0x72ec5e[0x1]));_0x12412b[_0x356b97(0x171)]()&&_0x12412b[_0x356b97(0x171)]()[_0x356b97(0x173)](process[_0x356b97(0x132)]);_0x12412b['getStderr']()&&_0x12412b['getStderr']()[_0x356b97(0x173)](process['stderr']);const _0xbb6276=async()=>{const _0x382ddc=_0x356b97,{forceExited:_0x3ee13a}=await _0x12412b[_0x382ddc(0x148)]();_0x3ee13a&&console[_0x382ddc(0x12a)](_0x464ef2[_0x382ddc(0x16a)]),_0x464ef2['iKtbu'](_0x2e31d4,_0x4c4afb);},_0x43b707=_0x464ef2['iYFCg'](pLimit,_0x32bd8c[_0x356b97(0x13a)]||0x1),_0x187b10=(_0x2950c6,_0x47c8b8)=>_0x43b707(async()=>{const _0xac7b37=_0x356b97;return await _0x53cc64['emit'](_0x464ef2[_0xac7b37(0x137)],_0x2950c6),_0x83c31a[_0xac7b37(0x130)]=_0x3417bf[_0xac7b37(0x16e)][_0x47c8b8],_0x83c31a[_0xac7b37(0x116)]=_0x47c8b8,_0x12412b[_0xac7b37(0x11b)](_0x2950c6,_0x83c31a,_0x3417bf,_0x1d5dc4,_0x5f48e6);});Promise[_0x356b97(0x133)](_0x32bd8c[_0x356b97(0x13c)]((_0x49a52f,_0x4274cb)=>_0x187b10(_0x49a52f,_0x4274cb)['then'](_0x5dba6a=>_0x53cc64[_0x356b97(0x141)](_0x356b97(0x114),[_0x49a52f,_0x5dba6a]),_0x343ba6=>_0x53cc64[_0x356b97(0x141)](_0x356b97(0x179),[_0x49a52f,_0x343ba6]))))[_0x356b97(0x13b)](_0xbb6276,_0xbb6276);});},exports['parallelVanillaRun']=(_0x58d90f,_0x3f0b1c)=>new Promise(_0x13f9ff=>{const _0x21c6ec=a57_0x453b64,_0x5a2e14={'UYpYb':function(_0xedb2ac,_0x4bdbbe){return _0xedb2ac===_0x4bdbbe;},'LkuGH':function(_0x2c404e,_0x488fda){return _0x2c404e!==_0x488fda;},'oMRIR':_0x21c6ec(0x121),'dDpZg':'Workers\x20failed\x20to\x20exit\x20gracefully','Mxcne':function(_0x2b1d7b,_0x43b702){return _0x2b1d7b(_0x43b702);},'YURDP':_0x21c6ec(0x14d),'dqHlZ':_0x21c6ec(0x14c),'OFZYG':_0x21c6ec(0x138),'jTdPp':_0x21c6ec(0x173),'kYOVz':_0x21c6ec(0x11e),'KTncr':_0x21c6ec(0x11f),'UjaBW':function(_0x21b488,_0x499aa4){return _0x21b488(_0x499aa4);}},_0xa77457={},_0x2d32d4=new Worker(require[_0x21c6ec(0x122)](_0x5a2e14[_0x21c6ec(0x127)]),{'exposedMethods':[_0x5a2e14['dqHlZ']],'forkOptions':{'serialization':_0x5a2e14[_0x21c6ec(0x16d)],'stdio':_0x5a2e14[_0x21c6ec(0x161)]},'numWorkers':_0x3f0b1c,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x56dec8=new Emittery();_0x56dec8['on'](_0x5a2e14['kYOVz'],_0x1044bd=>{const _0x1ab210=_0x21c6ec;_0x1044bd[0x0]&&logger[_0x1ab210(0x152)](_0x1ab210(0x175)+_0x1044bd[0x1]+_0x1ab210(0x13e),_0x1044bd[0x0]);}),_0x56dec8['on'](_0x5a2e14[_0x21c6ec(0x147)],_0x3fe73f=>{const _0x28bd1a=_0x21c6ec;process[_0x28bd1a(0x167)]=0x1;});_0x2d32d4[_0x21c6ec(0x171)]()&&_0x2d32d4[_0x21c6ec(0x171)]()[_0x21c6ec(0x173)](process[_0x21c6ec(0x132)]);_0x2d32d4['getStderr']()&&_0x2d32d4[_0x21c6ec(0x140)]()[_0x21c6ec(0x173)](process[_0x21c6ec(0x178)]);const _0x368538=async()=>{const _0x39937d=_0x21c6ec;let _0x8d80a7=0x0;const _0x119266=_0x2d32d4[_0x39937d(0x156)][_0x39937d(0x11d)](),_0x4c29a8=()=>{},_0x48088f=_0x119266[_0x39937d(0x13c)](async _0x568135=>{const _0x16600e=_0x39937d,_0x275869={'nQReH':function(_0x2f6714,_0x55e70b){const _0x4a3295=a57_0xfb70;return _0x5a2e14[_0x4a3295(0x12f)](_0x2f6714,_0x55e70b);},'XKreK':function(_0x4b1dee,_0x45437f){const _0x383eac=a57_0xfb70;return _0x5a2e14[_0x383eac(0x162)](_0x4b1dee,_0x45437f);}};_0x568135[_0x16600e(0x12d)]([0x2,![]],_0x4c29a8,_0x4c29a8,_0x4c29a8),_0x568135[_0x16600e(0x145)]['on'](_0x5a2e14[_0x16600e(0x163)],_0x5189e7=>{const _0xd693ac=_0x16600e;_0x275869[_0xd693ac(0x13d)](_0x8d80a7,0x0)&&_0x275869['XKreK'](_0x5189e7,0x0)&&(_0x8d80a7=_0x5189e7);}),await _0x568135[_0x16600e(0x15d)]();});await Promise[_0x39937d(0x133)](_0x48088f),process[_0x39937d(0x167)]=_0x8d80a7;const {forceExited:_0x55c8d4}=await _0x2d32d4[_0x39937d(0x148)]();_0x55c8d4&&console['error'](_0x5a2e14['dDpZg']),_0x5a2e14[_0x39937d(0x153)](_0x13f9ff,_0xa77457);},_0x136ebb=_0x5a2e14[_0x21c6ec(0x151)](pLimit,_0x3f0b1c),_0x405f3c=_0xdf9f03=>_0x136ebb(async()=>{return _0x2d32d4['vanillaWorker'](_0xdf9f03);});Promise['all'](_0x58d90f[_0x21c6ec(0x13c)](_0x226f62=>_0x405f3c(_0x226f62)[_0x21c6ec(0x13b)](_0xa58525=>_0x56dec8[_0x21c6ec(0x141)](_0x21c6ec(0x11e),[_0x226f62[_0x21c6ec(0x131)][_0x21c6ec(0x154)],_0x226f62[_0x21c6ec(0x131)][_0x21c6ec(0x15c)]]),_0x204831=>_0x56dec8['emit'](_0x21c6ec(0x11f),[_0x226f62,_0x204831]))))['then'](_0x368538,_0x368538);});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a58_0x23e7(){const _0x30bb57=['9KuuUyJ','PvLEn','cucumber-js','12133WFIzOh','12123220WdkTCB','end','707055vNqHCV','startMonitoring','run','EVENTS','zBQve','formatter','vanilla','mocha','gFtuX','882371ZJjGBH','2628SFxDpw','stopMonitoring','HZAil','SDK_POST_TEST','../../helpers/performance/constants','../launcher/launcher','10ZJyLzM','runTest','7azkRvE','HgHzs','1991778BhgTXo','SioNO','3152792XNhHcf','475DLryGn','../../helpers/performance/performance-tester','configuration','47280ZjULds'];a58_0x23e7=function(){return _0x30bb57;};return a58_0x23e7();}const a58_0x19bafb=a58_0x5e12;(function(_0x4eacaa,_0x5adafb){const _0x4afc9f=a58_0x5e12,_0x4608ab=_0x4eacaa();while(!![]){try{const _0x195490=-parseInt(_0x4afc9f(0xb7))/0x1+parseInt(_0x4afc9f(0xbe))/0x2*(parseInt(_0x4afc9f(0xcf))/0x3)+-parseInt(_0x4afc9f(0xc8))/0x4*(-parseInt(_0x4afc9f(0xc5))/0x5)+parseInt(_0x4afc9f(0xc2))/0x6*(parseInt(_0x4afc9f(0xc0))/0x7)+-parseInt(_0x4afc9f(0xc4))/0x8*(-parseInt(_0x4afc9f(0xc9))/0x9)+-parseInt(_0x4afc9f(0xcd))/0xa+parseInt(_0x4afc9f(0xcc))/0xb*(-parseInt(_0x4afc9f(0xb8))/0xc);if(_0x195490===_0x5adafb)break;else _0x4608ab['push'](_0x4608ab['shift']());}catch(_0x2b198d){_0x4608ab['push'](_0x4608ab['shift']());}}}(a58_0x23e7,0xa8bc1));const PerformanceEvents=require(a58_0x19bafb(0xbc))[a58_0x19bafb(0xd2)],PerformanceTester=require(a58_0x19bafb(0xc6)),{sleep}=require('../../helpers/test-observability/utils');function a58_0x5e12(_0x36918c,_0x266228){const _0x23e75f=a58_0x23e7();return a58_0x5e12=function(_0x5e12cf,_0x3a7bea){_0x5e12cf=_0x5e12cf-0xb7;let _0xa72faa=_0x23e75f[_0x5e12cf];return _0xa72faa;},a58_0x5e12(_0x36918c,_0x266228);}exports[a58_0x19bafb(0xbf)]=async(_0x5e0cd7,_0x965c18)=>{const _0x150e0a=a58_0x19bafb,_0xaea782={'SioNO':function(_0x38ce0c,_0x366d2b){return _0x38ce0c(_0x366d2b);},'zBQve':_0x150e0a(0xbd),'gFtuX':_0x150e0a(0xd6)};PerformanceTester[_0x150e0a(0xd0)]();const _0x5285c6=_0xaea782[_0x150e0a(0xc3)](require,_0xaea782[_0x150e0a(0xd3)]),_0x235b22=new _0x5285c6(_0xaea782[_0x150e0a(0xd7)],_0x5e0cd7,_0x965c18),_0x21c93e=await _0x235b22['run']();return PerformanceTester[_0x150e0a(0xce)](PerformanceEvents[_0x150e0a(0xbb)]),await _0xaea782['SioNO'](sleep,0x3e8),PerformanceTester[_0x150e0a(0xb9)](),_0x21c93e;},exports['runCucumberTest']=async(_0x5e9b62,_0x184600,_0x5ca7de,_0x403feb,_0x108f88)=>{const _0x3be3b1=a58_0x19bafb,_0xb09836={'HgHzs':function(_0x265274,_0x48617f){return _0x265274(_0x48617f);},'HZAil':_0x3be3b1(0xbd),'VWBvM':_0x3be3b1(0xcb)},_0x12f4dc={'capability':_0x5e9b62,..._0x184600},_0x304fbc={};_0x304fbc[_0x3be3b1(0xc7)]=_0x12f4dc,_0x304fbc[_0x3be3b1(0xd4)]=_0x108f88;const _0x557cb=_0x304fbc,_0x29cc6f=_0xb09836[_0x3be3b1(0xc1)](require,_0xb09836[_0x3be3b1(0xba)]),_0x1510cd=new _0x29cc6f(_0xb09836['VWBvM'],_0x557cb,_0x5ca7de,_0x403feb);return await _0x1510cd[_0x3be3b1(0xd1)]();},exports['runVanillaTest']=async _0x2fa095=>{const _0x14e982=a58_0x19bafb,_0x426b78={'gSVsM':function(_0x15b9b4,_0x3ce9f1){return _0x15b9b4(_0x3ce9f1);},'PvLEn':_0x14e982(0xbd),'uyCdb':_0x14e982(0xd5)},_0x4a6d31=_0x426b78['gSVsM'](require,_0x426b78[_0x14e982(0xca)]),_0xb53218=new _0x4a6d31(_0x426b78['uyCdb'],_0x2fa095);return await _0xb53218[_0x14e982(0xd1)]();};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a59_0x3f86(){const _0xe3c23f=['108MQAaHT','194diQPJy','vanillaWorker','21lYwFEm','./runTest','2268BRQhwT','1808874uyapdw','763408NSNZOI','GBcPB','2348742dYyVbq','8657610tvgkcc','8637rujlfi','yniar','1007885lLryCV'];a59_0x3f86=function(){return _0xe3c23f;};return a59_0x3f86();}const a59_0x5305e4=a59_0x4a95;(function(_0x39ae85,_0x124bff){const _0x27ff4d=a59_0x4a95,_0x514fb1=_0x39ae85();while(!![]){try{const _0x25d9b2=-parseInt(_0x27ff4d(0x8a))/0x1*(parseInt(_0x27ff4d(0x86))/0x2)+parseInt(_0x27ff4d(0x82))/0x3*(parseInt(_0x27ff4d(0x85))/0x4)+-parseInt(_0x27ff4d(0x84))/0x5+-parseInt(_0x27ff4d(0x80))/0x6+-parseInt(_0x27ff4d(0x88))/0x7*(-parseInt(_0x27ff4d(0x8c))/0x8)+-parseInt(_0x27ff4d(0x8b))/0x9+parseInt(_0x27ff4d(0x81))/0xa;if(_0x25d9b2===_0x124bff)break;else _0x514fb1['push'](_0x514fb1['shift']());}catch(_0x18ec60){_0x514fb1['push'](_0x514fb1['shift']());}}}(a59_0x3f86,0x34acc));const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x5305e4(0x89));try{require('../../helpers/driverInitErrorReporter')['installAll']();}catch(a59_0x34dba1){}function a59_0x4a95(_0x2bf81b,_0x4ed064){const _0x3f869b=a59_0x3f86();return a59_0x4a95=function(_0x4a95ef,_0x15eb81){_0x4a95ef=_0x4a95ef-0x7f;let _0x11130e=_0x3f869b[_0x4a95ef];return _0x11130e;},a59_0x4a95(_0x2bf81b,_0x4ed064);}exports['worker']=async(_0x18fa08,_0x6b096b)=>{const _0x2dc5c5=a59_0x5305e4,_0x409740={'GBcPB':function(_0x549d03,_0x436676,_0x3f2847){return _0x549d03(_0x436676,_0x3f2847);}};return await _0x409740[_0x2dc5c5(0x7f)](runTest,_0x18fa08,_0x6b096b);},exports['cucumberWorker']=async(_0x3c45c1,_0x264621,_0x5d5c89,_0x14caf9,_0x4d7459)=>{const _0x2760f2=a59_0x5305e4,_0x269f39={'yniar':function(_0x4612b7,_0x55011,_0x421382,_0x4bc64d,_0x3e0397,_0x4aeb1e){return _0x4612b7(_0x55011,_0x421382,_0x4bc64d,_0x3e0397,_0x4aeb1e);}};return await _0x269f39[_0x2760f2(0x83)](runCucumberTest,_0x3c45c1,_0x264621,_0x5d5c89,_0x14caf9,_0x4d7459);},exports[a59_0x5305e4(0x87)]=async _0x272ce4=>{const _0x250954={'WidbC':function(_0xdb44eb,_0x254817){return _0xdb44eb(_0x254817);}};return await _0x250954['WidbC'](runVanillaTest,_0x272ce4);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a60_0x2c737d=a60_0x1f6f;(function(_0x4a205d,_0x32f175){const _0x3531df=a60_0x1f6f,_0x47cda1=_0x4a205d();while(!![]){try{const _0x4998ee=parseInt(_0x3531df(0x22b))/0x1+parseInt(_0x3531df(0x215))/0x2*(parseInt(_0x3531df(0x1eb))/0x3)+parseInt(_0x3531df(0x211))/0x4*(-parseInt(_0x3531df(0x226))/0x5)+parseInt(_0x3531df(0x232))/0x6*(parseInt(_0x3531df(0x205))/0x7)+-parseInt(_0x3531df(0x21c))/0x8*(parseInt(_0x3531df(0x1e5))/0x9)+parseInt(_0x3531df(0x1e7))/0xa+parseInt(_0x3531df(0x20a))/0xb*(-parseInt(_0x3531df(0x1f4))/0xc);if(_0x4998ee===_0x32f175)break;else _0x47cda1['push'](_0x47cda1['shift']());}catch(_0x26af2b){_0x47cda1['push'](_0x47cda1['shift']());}}}(a60_0x262e,0xc9782));const constants=require('./constants'),{nestedKeyValue}=require(a60_0x2c737d(0x245)),getBrowserstackCLI=()=>{const _0x5e4a91=a60_0x2c737d,_0x3fc9a6={'hUZaC':function(_0x1c90da,_0x38b6ca){return _0x1c90da(_0x38b6ca);},'TcVWS':_0x5e4a91(0x1ed)};return _0x3fc9a6[_0x5e4a91(0x22c)](require,_0x3fc9a6[_0x5e4a91(0x1ee)]);};function a60_0x1f6f(_0x401ce6,_0x30b3f1){const _0x262ebd=a60_0x262e();return a60_0x1f6f=function(_0x1f6fb3,_0x32c0ae){_0x1f6fb3=_0x1f6fb3-0x1e5;let _0x2fd0cc=_0x262ebd[_0x1f6fb3];return _0x2fd0cc;},a60_0x1f6f(_0x401ce6,_0x30b3f1);}class APIUtilityMethods{static[a60_0x2c737d(0x1f8)](_0x3e1ad7){const _0x1a49ac=a60_0x2c737d,_0x75d345={'fRiob':function(_0x4b0430){return _0x4b0430();},'TvBuR':function(_0x500985,_0x5ec202,_0x4e5b7a){return _0x500985(_0x5ec202,_0x4e5b7a);},'nGvoT':_0x1a49ac(0x1ff),'BFfYM':_0x1a49ac(0x1f0),'JoyDD':_0x1a49ac(0x1e8),'OiQRM':function(_0x50cb6b,_0x407fb7){return _0x50cb6b===_0x407fb7;},'yOiqA':function(_0xa51dc4,_0x1b7f14){return _0xa51dc4+_0x1b7f14;}},_0x1a82d4=_0x75d345[_0x1a49ac(0x207)](getBrowserstackCLI),_0x18a552=_0x75d345[_0x1a49ac(0x20f)](nestedKeyValue,_0x1a82d4[_0x1a49ac(0x204)]()[_0x1a49ac(0x217)](),[_0x75d345[_0x1a49ac(0x1ef)],_0x75d345['BFfYM'],_0x75d345[_0x1a49ac(0x1f9)]])||constants[_0x1a49ac(0x239)];if(!_0x3e1ad7||_0x75d345[_0x1a49ac(0x221)](_0x3e1ad7,''))return _0x18a552;const _0x25adb5=_0x18a552[_0x1a49ac(0x233)]('/')?_0x18a552:_0x75d345[_0x1a49ac(0x23d)](_0x18a552,'/');return new URL(_0x3e1ad7,_0x25adb5)[_0x1a49ac(0x21d)]();}static['getEdsInstrumentationAPIUrl'](_0x3fe72f){const _0x3ac19d=a60_0x2c737d,_0x46a086={'gFYIN':function(_0x2e630a){return _0x2e630a();},'fyujD':function(_0x56170b,_0x50a1bc,_0x218ada){return _0x56170b(_0x50a1bc,_0x218ada);},'NHJkh':_0x3ac19d(0x1ff),'daREA':'edsInstrumentation','hnwmg':_0x3ac19d(0x1e8),'qQOeB':function(_0x2bf866,_0x360962){return _0x2bf866===_0x360962;},'TgONM':function(_0x213b6e,_0x1a1830){return _0x213b6e+_0x1a1830;}},_0x4a3d93=_0x46a086[_0x3ac19d(0x210)](getBrowserstackCLI),_0x52ff08=_0x46a086['fyujD'](nestedKeyValue,_0x4a3d93['getInstance']()[_0x3ac19d(0x217)](),[_0x46a086['NHJkh'],_0x46a086[_0x3ac19d(0x240)],_0x46a086['hnwmg']])||constants['EDS_URL'];if(!_0x3fe72f||_0x46a086[_0x3ac19d(0x223)](_0x3fe72f,''))return _0x52ff08;const _0x4c6626=_0x52ff08[_0x3ac19d(0x233)]('/')?_0x52ff08:_0x46a086[_0x3ac19d(0x236)](_0x52ff08,'/');return new URL(_0x3fe72f,_0x4c6626)['toString']();}static[a60_0x2c737d(0x224)](_0x96d842){const _0x4588bf=a60_0x2c737d,_0x34320b={'kgAIz':function(_0x306946){return _0x306946();},'QcNsJ':function(_0x1814ab,_0x469e77,_0x1983d4){return _0x1814ab(_0x469e77,_0x1983d4);},'IVOxB':_0x4588bf(0x1ff),'GOgnY':_0x4588bf(0x1f0),'RhmVT':_0x4588bf(0x1e8),'sXJfr':function(_0x1e9e9e,_0x5d1893){return _0x1e9e9e===_0x5d1893;},'aKxJl':function(_0x405207,_0xde8244){return _0x405207+_0xde8244;}},_0x3556fe=_0x34320b[_0x4588bf(0x1f3)](getBrowserstackCLI),_0x56ccb2=_0x34320b[_0x4588bf(0x21a)](nestedKeyValue,_0x3556fe[_0x4588bf(0x204)]()['getConfig'](),[_0x34320b[_0x4588bf(0x20b)],_0x34320b[_0x4588bf(0x22e)],_0x34320b[_0x4588bf(0x1fb)]])||constants['BROWSERSTACK_API_URL'];if(!_0x96d842||_0x34320b['sXJfr'](_0x96d842,''))return _0x56ccb2;const _0x38c5f9=_0x56ccb2[_0x4588bf(0x233)]('/')?_0x56ccb2:_0x34320b['aKxJl'](_0x56ccb2,'/');return new URL(_0x96d842,_0x38c5f9)[_0x4588bf(0x21d)]();}static[a60_0x2c737d(0x23c)](_0x570c2f){const _0x4531a3=a60_0x2c737d,_0x528778={'UXnVT':function(_0x1c0456){return _0x1c0456();},'EAVEx':function(_0x5cc3fc,_0x497d6b,_0x449308){return _0x5cc3fc(_0x497d6b,_0x449308);},'AhegM':_0x4531a3(0x1ff),'RHVYX':'appAutomate','LAzNp':_0x4531a3(0x1e8),'hSSqs':function(_0x550635,_0x3809dd){return _0x550635===_0x3809dd;},'pRdtj':function(_0x2db191,_0x4bb392){return _0x2db191+_0x4bb392;}},_0x42b7b5=_0x528778['UXnVT'](getBrowserstackCLI),_0x46c62a=_0x528778[_0x4531a3(0x200)](nestedKeyValue,_0x42b7b5[_0x4531a3(0x204)]()[_0x4531a3(0x217)](),[_0x528778['AhegM'],_0x528778[_0x4531a3(0x1fc)],_0x528778['LAzNp']])||constants[_0x4531a3(0x239)];if(!_0x570c2f||_0x528778['hSSqs'](_0x570c2f,''))return _0x46c62a;const _0x96cf3=_0x46c62a[_0x4531a3(0x233)]('/')?_0x46c62a:_0x528778[_0x4531a3(0x22d)](_0x46c62a,'/');return new URL(_0x570c2f,_0x96cf3)[_0x4531a3(0x21d)]();}static['getAutomateSessionNameAPIUrl'](_0x45664c){const _0xf8cfb1=a60_0x2c737d,_0x4f8717={'viCrf':function(_0xfb58eb){return _0xfb58eb();},'ckKAB':function(_0x27bfaf,_0x5e79c9,_0x4c8b4f){return _0x27bfaf(_0x5e79c9,_0x4c8b4f);},'OAXyo':_0xf8cfb1(0x1ff),'przfR':_0xf8cfb1(0x1f0),'VuGVm':_0xf8cfb1(0x1e8),'RnPbW':function(_0x330466,_0x291555){return _0x330466===_0x291555;},'xsXuL':function(_0x4a3ebc,_0x35711a){return _0x4a3ebc+_0x35711a;}},_0x4fb597=_0x4f8717[_0xf8cfb1(0x235)](getBrowserstackCLI),_0x9f4cb2=_0x4f8717[_0xf8cfb1(0x219)](nestedKeyValue,_0x4fb597[_0xf8cfb1(0x204)]()[_0xf8cfb1(0x217)](),[_0x4f8717[_0xf8cfb1(0x209)],_0x4f8717[_0xf8cfb1(0x213)],_0x4f8717['VuGVm']])||constants['BROWSERSTACK_API_URL'];if(!_0x45664c||_0x4f8717[_0xf8cfb1(0x20d)](_0x45664c,''))return _0x9f4cb2;const _0x534b7b=_0x9f4cb2['endsWith']('/')?_0x9f4cb2:_0x4f8717[_0xf8cfb1(0x23b)](_0x9f4cb2,'/');return new URL(_0x45664c,_0x534b7b)[_0xf8cfb1(0x21d)]();}static[a60_0x2c737d(0x1fd)](_0x126380){const _0x5001d7=a60_0x2c737d,_0x446196={'VqydW':function(_0x46f007){return _0x46f007();},'hnZTP':function(_0x5249d3,_0x1b17ce,_0x1497e9){return _0x5249d3(_0x1b17ce,_0x1497e9);},'IHKuy':_0x5001d7(0x1ff),'faKme':_0x5001d7(0x21f),'gXrVD':_0x5001d7(0x1e8),'wRSbJ':function(_0x167ff0,_0x3866fc){return _0x167ff0===_0x3866fc;},'qbVjA':function(_0x40735f,_0xec5835){return _0x40735f+_0xec5835;}},_0x386fc6=_0x446196[_0x5001d7(0x206)](getBrowserstackCLI),_0x21a3cd=_0x446196[_0x5001d7(0x1e9)](nestedKeyValue,_0x386fc6[_0x5001d7(0x204)]()[_0x5001d7(0x217)](),[_0x446196[_0x5001d7(0x23a)],_0x446196['faKme'],_0x446196[_0x5001d7(0x1ec)]])||constants[_0x5001d7(0x239)];if(!_0x126380||_0x446196[_0x5001d7(0x1f2)](_0x126380,''))return _0x21a3cd;const _0x4bebec=_0x21a3cd[_0x5001d7(0x233)]('/')?_0x21a3cd:_0x446196[_0x5001d7(0x227)](_0x21a3cd,'/');return new URL(_0x126380,_0x4bebec)[_0x5001d7(0x21d)]();}static['getAutomateSessionsListAPIUrl'](_0xfc3beb){const _0x62082f=a60_0x2c737d,_0x2cc3c7={'oCGOT':function(_0x57dc40){return _0x57dc40();},'jxRCZ':function(_0x180016,_0x4ea348,_0x535fc1){return _0x180016(_0x4ea348,_0x535fc1);},'hzXOQ':'apis','VsmPj':_0x62082f(0x1f0),'JyFoT':_0x62082f(0x1e8),'NeidQ':function(_0x1735d1,_0x4f5370){return _0x1735d1===_0x4f5370;},'pHgmD':function(_0x2c1783,_0x251b69){return _0x2c1783+_0x251b69;}},_0x132e45=_0x2cc3c7[_0x62082f(0x201)](getBrowserstackCLI),_0x3b03b3=_0x2cc3c7[_0x62082f(0x238)](nestedKeyValue,_0x132e45['getInstance']()['getConfig'](),[_0x2cc3c7[_0x62082f(0x229)],_0x2cc3c7['VsmPj'],_0x2cc3c7['JyFoT']])||constants[_0x62082f(0x239)];if(!_0xfc3beb||_0x2cc3c7[_0x62082f(0x234)](_0xfc3beb,''))return _0x3b03b3;const _0x1058ea=_0x3b03b3[_0x62082f(0x233)]('/')?_0x3b03b3:_0x2cc3c7['pHgmD'](_0x3b03b3,'/');return new URL(_0xfc3beb,_0x1058ea)[_0x62082f(0x21d)]()[_0x62082f(0x214)](/^https?:\/\//,'');}static[a60_0x2c737d(0x225)](_0x2d851d){const _0x4b0a61=a60_0x2c737d,_0x23a2a5={'NNqcN':function(_0x23c199){return _0x23c199();},'BHTPF':function(_0x5b7883,_0x315317,_0xb41be5){return _0x5b7883(_0x315317,_0xb41be5);},'RTeoE':'apis','cTysE':_0x4b0a61(0x21f),'GKnDN':_0x4b0a61(0x1e8),'HlOoa':function(_0x5d686f,_0x2c4576){return _0x5d686f===_0x2c4576;},'SmFxp':function(_0x566c8d,_0x7be26e){return _0x566c8d+_0x7be26e;}},_0x53bb0c=_0x23a2a5['NNqcN'](getBrowserstackCLI),_0x408543=_0x23a2a5[_0x4b0a61(0x21b)](nestedKeyValue,_0x53bb0c[_0x4b0a61(0x204)]()[_0x4b0a61(0x217)](),[_0x23a2a5[_0x4b0a61(0x1fe)],_0x23a2a5[_0x4b0a61(0x246)],_0x23a2a5['GKnDN']])||constants[_0x4b0a61(0x208)];if(!_0x2d851d||_0x23a2a5['HlOoa'](_0x2d851d,''))return _0x408543;const _0xf2a13e=_0x408543['endsWith']('/')?_0x408543:_0x23a2a5[_0x4b0a61(0x230)](_0x408543,'/');return new URL(_0x2d851d,_0xf2a13e)['toString']()[_0x4b0a61(0x214)](/^https?:\/\//,'');}static[a60_0x2c737d(0x237)](_0x27409f){const _0x716eee=a60_0x2c737d,_0x1cf4b8={'UDfpn':function(_0x1ead55){return _0x1ead55();},'wJHWp':function(_0x402240,_0x200c1e,_0x5c1323){return _0x402240(_0x200c1e,_0x5c1323);},'AUUPb':_0x716eee(0x1ff),'KNkmI':_0x716eee(0x202),'lTHzR':_0x716eee(0x1f7),'DWrcn':function(_0x1bace0,_0x16122a){return _0x1bace0===_0x16122a;},'ZliTJ':function(_0xf09638,_0x4dd25c){return _0xf09638+_0x4dd25c;}},_0xbe5e5d=_0x1cf4b8['UDfpn'](getBrowserstackCLI),_0x208047=_0x1cf4b8[_0x716eee(0x20e)](nestedKeyValue,_0xbe5e5d[_0x716eee(0x204)]()[_0x716eee(0x217)](),[_0x1cf4b8['AUUPb'],_0x1cf4b8[_0x716eee(0x216)],_0x1cf4b8[_0x716eee(0x21e)]])||constants[_0x716eee(0x1f6)];if(!_0x27409f||_0x1cf4b8[_0x716eee(0x1e6)](_0x27409f,''))return _0x208047;const _0x3b62fc=_0x208047[_0x716eee(0x233)]('/')?_0x208047:_0x1cf4b8['ZliTJ'](_0x208047,'/');return new URL(_0x27409f,_0x3b62fc)[_0x716eee(0x21d)]();}static[a60_0x2c737d(0x241)](_0x20188d){const _0x1caad1=a60_0x2c737d,_0x307ab2={'gFABd':function(_0x90ce32){return _0x90ce32();},'cESNr':function(_0xd7c895,_0x19a1c8,_0x1c4adc){return _0xd7c895(_0x19a1c8,_0x1c4adc);},'DuGQu':_0x1caad1(0x1ff),'DVTzA':_0x1caad1(0x1f0),'jcIGf':_0x1caad1(0x1fa),'pEHaY':_0x1caad1(0x1f5),'YsIEb':function(_0x5b3568,_0x539b08){return _0x5b3568===_0x539b08;},'eXMBX':function(_0x19d0e3,_0x2bcb90){return _0x19d0e3+_0x2bcb90;},'vjbea':_0x1caad1(0x231)},_0x4abb04=_0x307ab2[_0x1caad1(0x220)](getBrowserstackCLI),_0x27e59f=_0x307ab2[_0x1caad1(0x20c)](nestedKeyValue,_0x4abb04[_0x1caad1(0x204)]()[_0x1caad1(0x217)](),[_0x307ab2['DuGQu'],_0x307ab2[_0x1caad1(0x243)],_0x307ab2[_0x1caad1(0x22f)]]),_0x230b13=(_0x27e59f?_0x27e59f['replace'](/^https:/,_0x307ab2['pEHaY']):null)||constants[_0x1caad1(0x1f1)];let _0x2c1972;if(!_0x20188d||_0x307ab2['YsIEb'](_0x20188d,''))_0x2c1972=_0x230b13;else{const _0x404833=_0x230b13[_0x1caad1(0x233)]('/')?_0x230b13:_0x307ab2[_0x1caad1(0x228)](_0x230b13,'/');_0x2c1972=new URL(_0x20188d,_0x404833)['toString']();}return!_0x2c1972[_0x1caad1(0x233)](_0x307ab2['vjbea'])&&(_0x2c1972+=_0x307ab2['vjbea']),_0x2c1972;}static['getPuppeteerHubUrl'](_0x216697){const _0xf46627=a60_0x2c737d,_0x93b2f2={'IwwzO':function(_0x463195){return _0x463195();},'EMHVw':function(_0x2f6ff5,_0x3d3549,_0x33cf43){return _0x2f6ff5(_0x3d3549,_0x33cf43);},'hrowm':'apis','ANUcg':_0xf46627(0x1f0),'UOGiY':_0xf46627(0x1fa),'jVkRV':_0xf46627(0x1f5),'fpbBQ':function(_0x26d288,_0x232096){return _0x26d288===_0x232096;},'VzhTp':function(_0x2abd5c,_0x521af4){return _0x2abd5c+_0x521af4;},'KXiwF':_0xf46627(0x212)},_0x388ad2=_0x93b2f2[_0xf46627(0x23e)](getBrowserstackCLI),_0x1849bf=_0x93b2f2[_0xf46627(0x23f)](nestedKeyValue,_0x388ad2[_0xf46627(0x204)]()[_0xf46627(0x217)](),[_0x93b2f2[_0xf46627(0x222)],_0x93b2f2[_0xf46627(0x1ea)],_0x93b2f2[_0xf46627(0x22a)]]),_0x1827ff=(_0x1849bf?_0x1849bf[_0xf46627(0x214)](/^https:/,_0x93b2f2[_0xf46627(0x242)]):null)||constants['PUPPETEER_HUB_URL'];let _0x5b4eab;if(!_0x216697||_0x93b2f2[_0xf46627(0x218)](_0x216697,''))_0x5b4eab=_0x1827ff;else{const _0x43a967=_0x1827ff[_0xf46627(0x233)]('/')?_0x1827ff:_0x93b2f2[_0xf46627(0x203)](_0x1827ff,'/');_0x5b4eab=new URL(_0x216697,_0x43a967)[_0xf46627(0x21d)]();}return!_0x5b4eab[_0xf46627(0x233)](_0x93b2f2[_0xf46627(0x244)])&&(_0x5b4eab+=_0x93b2f2[_0xf46627(0x244)]),_0x5b4eab;}}function a60_0x262e(){const _0x1fca85=['getBStackAPIUrl','JoyDD','cdp','RhmVT','RHVYX','getAppAutomateSessionNameAPIUrl','RTeoE','apis','EAVEx','oCGOT','observability','VzhTp','getInstance','14DYjFKo','VqydW','fRiob','APP_UPLOAD_URL','OAXyo','11VHQoHE','IVOxB','cESNr','RnPbW','wJHWp','TvBuR','gFYIN','764hLqBHK','/puppeteer?caps=','przfR','replace','19868Zvutas','KNkmI','getConfig','fpbBQ','ckKAB','QcNsJ','BHTPF','8TMBVuh','toString','lTHzR','appAutomate','gFABd','OiQRM','hrowm','qQOeB','getAutomateSessionStatusAPIUrl','getAppAutomateSessionsListAPIUrl','9245AzveWg','qbVjA','eXMBX','hzXOQ','UOGiY','589346LHsUYz','hUZaC','pRdtj','GOgnY','jcIGf','SmFxp','/playwright?caps=','1726638DhcHZm','endsWith','NeidQ','viCrf','TgONM','getAutoCaptureLogsAPIUrl','jxRCZ','BROWSERSTACK_API_URL','IHKuy','xsXuL','getAppAutomateSessionStatusAPIUrl','yOiqA','IwwzO','EMHVw','daREA','getPlaywrightHubUrl','jVkRV','DVTzA','KXiwF','./sharedUtils','cTysE','4024143nmnbIX','DWrcn','9786870swvLAK','api','hnZTP','ANUcg','96LYklZj','gXrVD','../v2/browserstackCLI','TcVWS','nGvoT','automate','PLAYWRIGHT_HUB_URL','wRSbJ','kgAIz','10031556DLBOyp','wss:','OBSERVABILITY_UPLOAD_URL','upload'];a60_0x262e=function(){return _0x1fca85;};return a60_0x262e();}module['exports']=APIUtilityMethods;
|
|
1
|
+
const a60_0x13e3fa=a60_0x192c;function a60_0x35e9(){const _0x54e303=['zeJFN','nOlcd','FWBQp','automate','getConfig','12LJmzTv','329288tBsDjp','/puppeteer?caps=','udodZ','SoHcJ','glwNE','APP_UPLOAD_URL','cMMUD','801774ZdChQG','bOObL','exports','Enuuh','GDphT','268455sERfwt','toString','getAppAutomateSessionNameAPIUrl','OBSERVABILITY_UPLOAD_URL','ghMdt','irYHy','endsWith','dDLrR','upload','PUPPETEER_HUB_URL','getPuppeteerHubUrl','XAZmW','HEzvZ','rnUGd','niEfo','./constants','getBStackAPIUrl','cdp','fbjfA','IrRBd','PoDtf','NzhIy','/playwright?caps=','getInstance','edsInstrumentation','getAppAutomateSessionStatusAPIUrl','apis','2MvwyEJ','wTOXZ','./sharedUtils','xMMhm','ijnlj','AoRjv','getAppAutomateSessionsListAPIUrl','iUrUI','BMmSh','SQvBD','xECHD','210062SoZPea','VJJYs','getAutoCaptureLogsAPIUrl','zPBnA','YmKub','fpaKS','huJcY','getAutomateSessionNameAPIUrl','90WAeTaa','getPlaywrightHubUrl','lLeGB','rlXUI','JyBAo','goTBt','QXSDz','ORXGe','434560VHMSit','VgBaM','PRPvV','LetZJ','flJsN','ISmio','NxXmX','lFzDy','wtoBB','MeOBH','gpZvr','48QoWWpD','api','fcNAr','ugEXF','wss:','gdLjQ','getAutomateSessionsListAPIUrl','getAutomateSessionStatusAPIUrl','QtwXF','replace','BROWSERSTACK_API_URL','getEdsInstrumentationAPIUrl','NAOlo','21114269JdMeTD','qUdkU','mhucn','jhYuu','Mpzdw','2711884wFWCfC','KxlzF','oGUhA','appAutomate'];a60_0x35e9=function(){return _0x54e303;};return a60_0x35e9();}(function(_0x3df34e,_0x165a9a){const _0x4c125c=a60_0x192c,_0x5e24ed=_0x3df34e();while(!![]){try{const _0x5d5d7a=-parseInt(_0x4c125c(0x103))/0x1*(parseInt(_0x4c125c(0xf8))/0x2)+parseInt(_0x4c125c(0xd0))/0x3*(-parseInt(_0x4c125c(0xd1))/0x4)+parseInt(_0x4c125c(0xdd))/0x5*(-parseInt(_0x4c125c(0xa2))/0x6)+parseInt(_0x4c125c(0xc7))/0x7+parseInt(_0x4c125c(0xb5))/0x8*(-parseInt(_0x4c125c(0xd8))/0x9)+parseInt(_0x4c125c(0xaa))/0xa+parseInt(_0x4c125c(0xc2))/0xb;if(_0x5d5d7a===_0x165a9a)break;else _0x5e24ed['push'](_0x5e24ed['shift']());}catch(_0x178744){_0x5e24ed['push'](_0x5e24ed['shift']());}}}(a60_0x35e9,0x7304c));const constants=require(a60_0x13e3fa(0xec)),{nestedKeyValue}=require(a60_0x13e3fa(0xfa)),getBrowserstackCLI=()=>{const _0xcc36c8=a60_0x13e3fa,_0x10aab0={'zPBnA':function(_0x35dcaa,_0x2f9ad0){return _0x35dcaa(_0x2f9ad0);},'gpZvr':'../v2/browserstackCLI'};return _0x10aab0[_0xcc36c8(0x9d)](require,_0x10aab0[_0xcc36c8(0xb4)]);};class APIUtilityMethods{static[a60_0x13e3fa(0xed)](_0x1491ee){const _0x137ccf=a60_0x13e3fa,_0x574166={'ZGafb':function(_0x381796){return _0x381796();},'flJsN':function(_0x5e57a2,_0x10e006,_0x2c33e1){return _0x5e57a2(_0x10e006,_0x2c33e1);},'xMMhm':_0x137ccf(0xf7),'goTBt':'automate','TJDmP':_0x137ccf(0xb6),'ghHUL':function(_0x5a449a,_0x5ea676){return _0x5a449a===_0x5ea676;},'QXSDz':function(_0x871954,_0x383123){return _0x871954+_0x383123;}},_0x3865d2=_0x574166['ZGafb'](getBrowserstackCLI),_0x168489=_0x574166[_0x137ccf(0xae)](nestedKeyValue,_0x3865d2[_0x137ccf(0xf4)]()[_0x137ccf(0xcf)](),[_0x574166[_0x137ccf(0xfb)],_0x574166[_0x137ccf(0xa7)],_0x574166['TJDmP']])||constants['BROWSERSTACK_API_URL'];if(!_0x1491ee||_0x574166['ghHUL'](_0x1491ee,''))return _0x168489;const _0x2e87ab=_0x168489[_0x137ccf(0xe3)]('/')?_0x168489:_0x574166[_0x137ccf(0xa8)](_0x168489,'/');return new URL(_0x1491ee,_0x2e87ab)[_0x137ccf(0xde)]();}static[a60_0x13e3fa(0xc0)](_0x565118){const _0x33aa8e=a60_0x13e3fa,_0xb04a9c={'lFzDy':function(_0x3bdbe2){return _0x3bdbe2();},'MeOBH':function(_0x56d64b,_0x41faad,_0x16a1c5){return _0x56d64b(_0x41faad,_0x16a1c5);},'irYHy':_0x33aa8e(0xf7),'ghMdt':_0x33aa8e(0xf5),'Rfxmd':_0x33aa8e(0xb6),'AsuzH':function(_0x2e7d16,_0x131d01){return _0x2e7d16===_0x131d01;},'SoHcJ':function(_0x1f2044,_0x21a8f8){return _0x1f2044+_0x21a8f8;}},_0x31b486=_0xb04a9c[_0x33aa8e(0xb1)](getBrowserstackCLI),_0x3afb28=_0xb04a9c[_0x33aa8e(0xb3)](nestedKeyValue,_0x31b486[_0x33aa8e(0xf4)]()['getConfig'](),[_0xb04a9c[_0x33aa8e(0xe2)],_0xb04a9c[_0x33aa8e(0xe1)],_0xb04a9c['Rfxmd']])||constants['EDS_URL'];if(!_0x565118||_0xb04a9c['AsuzH'](_0x565118,''))return _0x3afb28;const _0x200b9e=_0x3afb28[_0x33aa8e(0xe3)]('/')?_0x3afb28:_0xb04a9c[_0x33aa8e(0xd4)](_0x3afb28,'/');return new URL(_0x565118,_0x200b9e)[_0x33aa8e(0xde)]();}static[a60_0x13e3fa(0xbc)](_0x4fbfab){const _0x190fa6=a60_0x13e3fa,_0x490f1d={'gdLjQ':function(_0x2838d8){return _0x2838d8();},'NAOlo':function(_0x5a4f6f,_0x1fedbf,_0x2c8563){return _0x5a4f6f(_0x1fedbf,_0x2c8563);},'wTOXZ':_0x190fa6(0xf7),'fpaKS':_0x190fa6(0xce),'sjxMA':'api','glwNE':function(_0x23c781,_0x277ebb){return _0x23c781===_0x277ebb;},'PoDtf':function(_0x2f7e77,_0x2d74af){return _0x2f7e77+_0x2d74af;}},_0x26fb9b=_0x490f1d[_0x190fa6(0xba)](getBrowserstackCLI),_0x1d201b=_0x490f1d[_0x190fa6(0xc1)](nestedKeyValue,_0x26fb9b[_0x190fa6(0xf4)]()[_0x190fa6(0xcf)](),[_0x490f1d[_0x190fa6(0xf9)],_0x490f1d[_0x190fa6(0x9f)],_0x490f1d['sjxMA']])||constants['BROWSERSTACK_API_URL'];if(!_0x4fbfab||_0x490f1d[_0x190fa6(0xd5)](_0x4fbfab,''))return _0x1d201b;const _0x29d09f=_0x1d201b['endsWith']('/')?_0x1d201b:_0x490f1d[_0x190fa6(0xf1)](_0x1d201b,'/');return new URL(_0x4fbfab,_0x29d09f)[_0x190fa6(0xde)]();}static[a60_0x13e3fa(0xf6)](_0x4e6ac0){const _0x5e7355=a60_0x13e3fa,_0x5088f1={'Mpzdw':function(_0x26651c){return _0x26651c();},'IrRBd':function(_0x3d14ef,_0x4a11ab,_0x235f9d){return _0x3d14ef(_0x4a11ab,_0x235f9d);},'uFoHG':_0x5e7355(0xf7),'TfzNq':_0x5e7355(0xca),'dycAy':_0x5e7355(0xb6),'iHDpk':function(_0x5baaf6,_0x4df08d){return _0x5baaf6===_0x4df08d;},'NxXmX':function(_0x105c93,_0x19793d){return _0x105c93+_0x19793d;}},_0x1bc1e1=_0x5088f1[_0x5e7355(0xc6)](getBrowserstackCLI),_0x50645c=_0x5088f1[_0x5e7355(0xf0)](nestedKeyValue,_0x1bc1e1['getInstance']()['getConfig'](),[_0x5088f1['uFoHG'],_0x5088f1['TfzNq'],_0x5088f1['dycAy']])||constants[_0x5e7355(0xbf)];if(!_0x4e6ac0||_0x5088f1['iHDpk'](_0x4e6ac0,''))return _0x50645c;const _0x2c8fb6=_0x50645c[_0x5e7355(0xe3)]('/')?_0x50645c:_0x5088f1[_0x5e7355(0xb0)](_0x50645c,'/');return new URL(_0x4e6ac0,_0x2c8fb6)['toString']();}static[a60_0x13e3fa(0xa1)](_0x48760c){const _0x2e034c=a60_0x13e3fa,_0x86f08a={'rnUGd':function(_0x2b9635){return _0x2b9635();},'nNFXP':function(_0x3ffbf0,_0xe63bc1,_0x3d1ef1){return _0x3ffbf0(_0xe63bc1,_0x3d1ef1);},'AoRjv':_0x2e034c(0xf7),'bxqpy':'automate','QtwXF':_0x2e034c(0xb6),'LetZJ':function(_0x24b098,_0x1fcf08){return _0x24b098===_0x1fcf08;},'BsujB':function(_0x2edd5b,_0x36921d){return _0x2edd5b+_0x36921d;}},_0x58dc12=_0x86f08a[_0x2e034c(0xea)](getBrowserstackCLI),_0x11fa6d=_0x86f08a['nNFXP'](nestedKeyValue,_0x58dc12[_0x2e034c(0xf4)]()[_0x2e034c(0xcf)](),[_0x86f08a[_0x2e034c(0xfd)],_0x86f08a['bxqpy'],_0x86f08a[_0x2e034c(0xbd)]])||constants[_0x2e034c(0xbf)];if(!_0x48760c||_0x86f08a[_0x2e034c(0xad)](_0x48760c,''))return _0x11fa6d;const _0x171966=_0x11fa6d['endsWith']('/')?_0x11fa6d:_0x86f08a['BsujB'](_0x11fa6d,'/');return new URL(_0x48760c,_0x171966)[_0x2e034c(0xde)]();}static[a60_0x13e3fa(0xdf)](_0x2c3e9c){const _0x510778=a60_0x13e3fa,_0x24ed67={'qUdkU':function(_0x5d2cc4){return _0x5d2cc4();},'XfqlO':function(_0x1ea287,_0x2295bb,_0x5ad92d){return _0x1ea287(_0x2295bb,_0x5ad92d);},'FWBQp':_0x510778(0xf7),'dDLrR':_0x510778(0xca),'fcNAr':_0x510778(0xb6),'niEfo':function(_0x12eebd,_0x8cafc2){return _0x12eebd===_0x8cafc2;},'KGiUr':function(_0x4acaf5,_0xd27541){return _0x4acaf5+_0xd27541;}},_0x1103e3=_0x24ed67[_0x510778(0xc3)](getBrowserstackCLI),_0x5d1973=_0x24ed67['XfqlO'](nestedKeyValue,_0x1103e3[_0x510778(0xf4)]()[_0x510778(0xcf)](),[_0x24ed67[_0x510778(0xcd)],_0x24ed67[_0x510778(0xe4)],_0x24ed67[_0x510778(0xb7)]])||constants[_0x510778(0xbf)];if(!_0x2c3e9c||_0x24ed67[_0x510778(0xeb)](_0x2c3e9c,''))return _0x5d1973;const _0x27298e=_0x5d1973['endsWith']('/')?_0x5d1973:_0x24ed67['KGiUr'](_0x5d1973,'/');return new URL(_0x2c3e9c,_0x27298e)[_0x510778(0xde)]();}static[a60_0x13e3fa(0xbb)](_0x514e38){const _0x2c17ec=a60_0x13e3fa,_0x3d0b78={'xECHD':function(_0x29a092){return _0x29a092();},'udodZ':function(_0x521844,_0x52e0a9,_0x332f92){return _0x521844(_0x52e0a9,_0x332f92);},'rlXUI':'apis','oGUhA':'automate','iUrUI':_0x2c17ec(0xb6),'HEzvZ':function(_0x2fe8ff,_0x582f82){return _0x2fe8ff===_0x582f82;},'GDphT':function(_0x1e5d63,_0xd71c71){return _0x1e5d63+_0xd71c71;}},_0x22840a=_0x3d0b78[_0x2c17ec(0x102)](getBrowserstackCLI),_0x51a430=_0x3d0b78[_0x2c17ec(0xd3)](nestedKeyValue,_0x22840a['getInstance']()[_0x2c17ec(0xcf)](),[_0x3d0b78[_0x2c17ec(0xa5)],_0x3d0b78[_0x2c17ec(0xc9)],_0x3d0b78[_0x2c17ec(0xff)]])||constants['BROWSERSTACK_API_URL'];if(!_0x514e38||_0x3d0b78[_0x2c17ec(0xe9)](_0x514e38,''))return _0x51a430;const _0x2150b9=_0x51a430[_0x2c17ec(0xe3)]('/')?_0x51a430:_0x3d0b78[_0x2c17ec(0xdc)](_0x51a430,'/');return new URL(_0x514e38,_0x2150b9)[_0x2c17ec(0xde)]()[_0x2c17ec(0xbe)](/^https?:\/\//,'');}static[a60_0x13e3fa(0xfe)](_0xb0186){const _0x4ab728=a60_0x13e3fa,_0x37056d={'ISmio':function(_0x104b58){return _0x104b58();},'AowFk':function(_0x202af8,_0x14db41,_0xed167a){return _0x202af8(_0x14db41,_0xed167a);},'ijnlj':_0x4ab728(0xf7),'wtoBB':'appAutomate','ugEXF':'api','bOObL':function(_0x4b7dcc,_0x207193){return _0x4b7dcc===_0x207193;},'Enuuh':function(_0x26214c,_0x2d4c07){return _0x26214c+_0x2d4c07;}},_0x59ba5f=_0x37056d[_0x4ab728(0xaf)](getBrowserstackCLI),_0x5b05ee=_0x37056d['AowFk'](nestedKeyValue,_0x59ba5f[_0x4ab728(0xf4)]()[_0x4ab728(0xcf)](),[_0x37056d[_0x4ab728(0xfc)],_0x37056d[_0x4ab728(0xb2)],_0x37056d[_0x4ab728(0xb8)]])||constants[_0x4ab728(0xd6)];if(!_0xb0186||_0x37056d[_0x4ab728(0xd9)](_0xb0186,''))return _0x5b05ee;const _0x57de93=_0x5b05ee[_0x4ab728(0xe3)]('/')?_0x5b05ee:_0x37056d[_0x4ab728(0xdb)](_0x5b05ee,'/');return new URL(_0xb0186,_0x57de93)[_0x4ab728(0xde)]()[_0x4ab728(0xbe)](/^https?:\/\//,'');}static[a60_0x13e3fa(0x105)](_0x4e8e80){const _0x4b82d6=a60_0x13e3fa,_0xccb65d={'XAZmW':function(_0x1dde60){return _0x1dde60();},'jhYuu':function(_0x13630d,_0x90f209,_0x5b8f37){return _0x13630d(_0x90f209,_0x5b8f37);},'qhvuf':'apis','JyBAo':'observability','feWkH':_0x4b82d6(0xe5),'PRPvV':function(_0x2a5e49,_0x10a701){return _0x2a5e49===_0x10a701;},'IcCBL':function(_0x51448b,_0x6492dd){return _0x51448b+_0x6492dd;}},_0x3450e1=_0xccb65d[_0x4b82d6(0xe8)](getBrowserstackCLI),_0x696728=_0xccb65d[_0x4b82d6(0xc5)](nestedKeyValue,_0x3450e1[_0x4b82d6(0xf4)]()['getConfig'](),[_0xccb65d['qhvuf'],_0xccb65d[_0x4b82d6(0xa6)],_0xccb65d['feWkH']])||constants[_0x4b82d6(0xe0)];if(!_0x4e8e80||_0xccb65d[_0x4b82d6(0xac)](_0x4e8e80,''))return _0x696728;const _0xf019d5=_0x696728[_0x4b82d6(0xe3)]('/')?_0x696728:_0xccb65d['IcCBL'](_0x696728,'/');return new URL(_0x4e8e80,_0xf019d5)[_0x4b82d6(0xde)]();}static[a60_0x13e3fa(0xa3)](_0x334b15){const _0x58b239=a60_0x13e3fa,_0x5552e4={'nOlcd':function(_0x2dd5ee){return _0x2dd5ee();},'GQVvP':function(_0x2edac9,_0xf3cef5,_0x4c183b){return _0x2edac9(_0xf3cef5,_0x4c183b);},'ORXGe':_0x58b239(0xf7),'lLeGB':_0x58b239(0xce),'SQvBD':_0x58b239(0xee),'mhucn':_0x58b239(0xb9),'VJJYs':function(_0x296f33,_0xf3a2dc){return _0x296f33===_0xf3a2dc;},'YmKub':function(_0x2cc341,_0x5ea248){return _0x2cc341+_0x5ea248;},'NzhIy':_0x58b239(0xf3)},_0x368401=_0x5552e4[_0x58b239(0xcc)](getBrowserstackCLI),_0x231b1c=_0x5552e4['GQVvP'](nestedKeyValue,_0x368401[_0x58b239(0xf4)]()[_0x58b239(0xcf)](),[_0x5552e4[_0x58b239(0xa9)],_0x5552e4[_0x58b239(0xa4)],_0x5552e4[_0x58b239(0x101)]]),_0x422b46=(_0x231b1c?_0x231b1c[_0x58b239(0xbe)](/^https:/,_0x5552e4[_0x58b239(0xc4)]):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x7cc352;if(!_0x334b15||_0x5552e4[_0x58b239(0x104)](_0x334b15,''))_0x7cc352=_0x422b46;else{const _0x514c76=_0x422b46[_0x58b239(0xe3)]('/')?_0x422b46:_0x5552e4[_0x58b239(0x9e)](_0x422b46,'/');_0x7cc352=new URL(_0x334b15,_0x514c76)[_0x58b239(0xde)]();}return!_0x7cc352[_0x58b239(0xe3)](_0x5552e4[_0x58b239(0xf2)])&&(_0x7cc352+=_0x5552e4[_0x58b239(0xf2)]),_0x7cc352;}static[a60_0x13e3fa(0xe7)](_0x3a392a){const _0x108867=a60_0x13e3fa,_0x371f45={'zeJFN':function(_0x5ea81a){return _0x5ea81a();},'huJcY':function(_0x4a41ae,_0x56d35b,_0x49b6cd){return _0x4a41ae(_0x56d35b,_0x49b6cd);},'hTPsZ':_0x108867(0xf7),'cMMUD':'automate','qhryS':_0x108867(0xee),'BMmSh':'wss:','KxlzF':function(_0x4297ad,_0x11ab70){return _0x4297ad===_0x11ab70;},'fbjfA':function(_0x30631b,_0x45d6f5){return _0x30631b+_0x45d6f5;},'VgBaM':_0x108867(0xd2)},_0x433cf2=_0x371f45[_0x108867(0xcb)](getBrowserstackCLI),_0x44d103=_0x371f45[_0x108867(0xa0)](nestedKeyValue,_0x433cf2[_0x108867(0xf4)]()[_0x108867(0xcf)](),[_0x371f45['hTPsZ'],_0x371f45[_0x108867(0xd7)],_0x371f45['qhryS']]),_0x268346=(_0x44d103?_0x44d103['replace'](/^https:/,_0x371f45[_0x108867(0x100)]):null)||constants[_0x108867(0xe6)];let _0x2fd6c5;if(!_0x3a392a||_0x371f45[_0x108867(0xc8)](_0x3a392a,''))_0x2fd6c5=_0x268346;else{const _0x236d79=_0x268346[_0x108867(0xe3)]('/')?_0x268346:_0x371f45[_0x108867(0xef)](_0x268346,'/');_0x2fd6c5=new URL(_0x3a392a,_0x236d79)[_0x108867(0xde)]();}return!_0x2fd6c5[_0x108867(0xe3)](_0x371f45[_0x108867(0xab)])&&(_0x2fd6c5+=_0x371f45['VgBaM']),_0x2fd6c5;}}function a60_0x192c(_0x3f24e7,_0x39e9f7){const _0x35e96e=a60_0x35e9();return a60_0x192c=function(_0x192c95,_0x4cf1bb){_0x192c95=_0x192c95-0x9d;let _0x4aaf7a=_0x35e96e[_0x192c95];return _0x4aaf7a;},a60_0x192c(_0x3f24e7,_0x39e9f7);}module[a60_0x13e3fa(0xda)]=APIUtilityMethods;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a61_0x15d1f0=a61_0x2406;(function(_0x2834a7,_0x3f254e){const _0x4c5eab=a61_0x2406,_0x9ec2ca=_0x2834a7();while(!![]){try{const _0x523ce7=-parseInt(_0x4c5eab(0x13e))/0x1+-parseInt(_0x4c5eab(0x16f))/0x2*(parseInt(_0x4c5eab(0x12b))/0x3)+parseInt(_0x4c5eab(0x158))/0x4+-parseInt(_0x4c5eab(0x12d))/0x5*(parseInt(_0x4c5eab(0x17a))/0x6)+parseInt(_0x4c5eab(0x13b))/0x7*(parseInt(_0x4c5eab(0x151))/0x8)+parseInt(_0x4c5eab(0x129))/0x9+parseInt(_0x4c5eab(0x143))/0xa*(parseInt(_0x4c5eab(0x131))/0xb);if(_0x523ce7===_0x3f254e)break;else _0x9ec2ca['push'](_0x9ec2ca['shift']());}catch(_0x810da1){_0x9ec2ca['push'](_0x9ec2ca['shift']());}}}(a61_0x126b,0x88776));function a61_0x2406(_0x30c70b,_0x93a8bc){const _0x126bf4=a61_0x126b();return a61_0x2406=function(_0x240658,_0x365917){_0x240658=_0x240658-0x11d;let _0x4517f7=_0x126bf4[_0x240658];return _0x4517f7;},a61_0x2406(_0x30c70b,_0x93a8bc);}const logger=require(a61_0x15d1f0(0x161))[a61_0x15d1f0(0x13a)],BrowserstackCLI=require(a61_0x15d1f0(0x15a)),GrpcClient=require('../v2/grpcClient'),constants=require(a61_0x15d1f0(0x169));class ClientTroubleShootingService{static [a61_0x15d1f0(0x11e)]=null;static ['errorCodesOccurredWhenCLINotRunning']=new Set();static async[a61_0x15d1f0(0x15c)](_0x2f41e1){const _0x4d0d15=a61_0x15d1f0,_0x510bf0={};_0x510bf0[_0x4d0d15(0x181)]=function(_0x2a7ecc,_0x3e959d){return _0x2a7ecc!==_0x3e959d;};const _0x2fb2ac=_0x510bf0;try{if(BrowserstackCLI[_0x4d0d15(0x126)]()[_0x4d0d15(0x172)]()){const _0x5d9ced=await GrpcClient['getInstance']()['reportClientTroubleshootingError'](_0x2f41e1);if(_0x2fb2ac[_0x4d0d15(0x181)](_0x5d9ced,null)&&_0x5d9ced[_0x4d0d15(0x144)]())return{'errorCode':_0x5d9ced[_0x4d0d15(0x184)](),'errorMessage':_0x5d9ced['getErrorMessage']()};return{};}return{};}catch(_0x9b3fc){return this['logError'](_0x4d0d15(0x13f)+_0x2f41e1+':',_0x9b3fc),{};}}static async[a61_0x15d1f0(0x15f)](){const _0x502328=a61_0x15d1f0,_0x312d80={};_0x312d80['WoZyu']=function(_0x44d83e,_0x3f9bcf){return _0x44d83e!==_0x3f9bcf;},_0x312d80[_0x502328(0x168)]=_0x502328(0x13d),_0x312d80[_0x502328(0x174)]='Error\x20in\x20getting\x20aggregated\x20error\x20codes:';const _0x25aee1=_0x312d80;try{if(BrowserstackCLI[_0x502328(0x126)]()[_0x502328(0x172)]()){const _0x5ba7c3=await GrpcClient[_0x502328(0x126)]()[_0x502328(0x15e)]();if(_0x25aee1[_0x502328(0x142)](_0x5ba7c3,null)&&_0x5ba7c3[_0x502328(0x144)]()){const _0x587ba0=Buffer['from'](_0x5ba7c3['getErrorCodes'](),_0x25aee1[_0x502328(0x168)])['toString'](),_0x4b3455=_0x587ba0?JSON[_0x502328(0x157)](_0x587ba0):[],_0x5a77b7=_0x5ba7c3[_0x502328(0x133)](),_0x9ee42f=_0x5ba7c3[_0x502328(0x124)](),_0x2c8f9a=Buffer[_0x502328(0x16c)](_0x5ba7c3[_0x502328(0x175)](),_0x25aee1[_0x502328(0x168)])[_0x502328(0x130)](),_0x21e148=_0x2c8f9a?JSON[_0x502328(0x157)](_0x2c8f9a):[],_0x66ee5f={};return _0x66ee5f[_0x502328(0x121)]=_0x4b3455,_0x66ee5f[_0x502328(0x149)]=_0x5a77b7,_0x66ee5f[_0x502328(0x154)]=_0x9ee42f,_0x66ee5f[_0x502328(0x171)]=_0x21e148,_0x66ee5f;}const _0x2fd6ce={};return _0x2fd6ce['errorCodes']=[],_0x2fd6ce['documentationLink']='',_0x2fd6ce[_0x502328(0x154)]='',_0x2fd6ce[_0x502328(0x171)]=[],_0x2fd6ce;}const _0x22286f={};return _0x22286f['errorCodes']=[],_0x22286f[_0x502328(0x149)]='',_0x22286f[_0x502328(0x154)]='',_0x22286f['errorCodesOccurredInCLI']=[],_0x22286f;}catch(_0x20a732){this[_0x502328(0x123)](_0x25aee1[_0x502328(0x174)],_0x20a732);const _0xfb2d52={};return _0xfb2d52[_0x502328(0x121)]=[],_0xfb2d52[_0x502328(0x149)]='',_0xfb2d52[_0x502328(0x154)]='',_0xfb2d52[_0x502328(0x171)]=[],_0xfb2d52;}}static['logSituation'](_0x16aa89,_0x272a75){logger['warn'](_0x16aa89+':\x20'+_0x272a75);}static['checkForErrorsOccuredInCLI'](_0x1408a8){const _0x1344f2=a61_0x15d1f0,_0x59d952={};_0x59d952[_0x1344f2(0x136)]=function(_0x2cdb22,_0x162495){return _0x2cdb22!=_0x162495;},_0x59d952['QBWTW']=function(_0x46bb13,_0x14f502){return _0x46bb13>_0x14f502;},_0x59d952[_0x1344f2(0x13c)]=function(_0x6d324d,_0x5f3227){return _0x6d324d!=_0x5f3227;};const _0xeb4a4=_0x59d952,_0x1ac02d=[];if(_0xeb4a4['DRZXg'](_0x1408a8,null)&&_0xeb4a4['DRZXg'](_0x1408a8['errorCodesOccurredInCLI'],null)&&_0xeb4a4[_0x1344f2(0x178)](_0x1408a8[_0x1344f2(0x171)]['length'],0x0))for(const _0x2cead2 of _0x1408a8[_0x1344f2(0x171)]){_0xeb4a4['DRZXg'](_0x2cead2[_0x1344f2(0x16b)],null)&&_0xeb4a4[_0x1344f2(0x13c)](_0x2cead2['errorMessage'],null)&&(_0x1ac02d[_0x1344f2(0x159)](_0x2cead2[_0x1344f2(0x16b)]),this['logSituation'](_0x2cead2[_0x1344f2(0x16b)],_0x2cead2['errorMessage']));}return _0x1ac02d;}static['getCachedErrorCodes'](){const _0x28a21b=a61_0x15d1f0;return this[_0x28a21b(0x11e)];}static[a61_0x15d1f0(0x123)](_0x2546cd,_0x983f72){const _0x4324e9=a61_0x15d1f0,_0x5f86f={};_0x5f86f[_0x4324e9(0x14e)]=function(_0x57d4c1,_0x50928a){return _0x57d4c1===_0x50928a;},_0x5f86f[_0x4324e9(0x120)]=_0x4324e9(0x138);const _0x350a3e=_0x5f86f;if(_0x350a3e[_0x4324e9(0x14e)](typeof _0x983f72,_0x350a3e[_0x4324e9(0x120)]))try{logger[_0x4324e9(0x134)](_0x4324e9(0x186)+_0x2546cd+'\x20'+JSON[_0x4324e9(0x17c)](_0x983f72));}catch(_0x41a025){logger[_0x4324e9(0x134)]('[ClientTroubleShootingService]\x20'+_0x2546cd+'\x20'+_0x983f72);}else logger[_0x4324e9(0x134)](_0x4324e9(0x186)+_0x2546cd+'\x20'+_0x983f72);}static async[a61_0x15d1f0(0x135)](_0x5e0992){const _0x2945b8=a61_0x15d1f0,_0x1cd887={};_0x1cd887[_0x2945b8(0x14b)]=_0x2945b8(0x17b),_0x1cd887[_0x2945b8(0x177)]=function(_0x4b685c,_0x47e888){return _0x4b685c===_0x47e888;},_0x1cd887[_0x2945b8(0x170)]=_0x2945b8(0x152),_0x1cd887[_0x2945b8(0x14c)]=_0x2945b8(0x146);const _0x4e2b3e=_0x1cd887,_0x8bf75c=await this[_0x2945b8(0x15c)](_0x4e2b3e['FzJXq']);if(!_0x8bf75c||_0x4e2b3e[_0x2945b8(0x177)](Object[_0x2945b8(0x160)](_0x8bf75c)[_0x2945b8(0x164)],0x0)){this[_0x2945b8(0x123)](_0x4e2b3e['TGNYg'],_0x8bf75c);return;}this[_0x2945b8(0x12a)](_0x8bf75c[_0x2945b8(0x16b)],_0x8bf75c['errorMessage']['replace'](_0x4e2b3e[_0x2945b8(0x14c)],_0x5e0992));}static async[a61_0x15d1f0(0x16a)](){const _0xc05873=a61_0x15d1f0,_0x4b32e8={};_0x4b32e8[_0xc05873(0x125)]=_0xc05873(0x14a),_0x4b32e8[_0xc05873(0x132)]=function(_0x1904e7,_0x21f96d){return _0x1904e7===_0x21f96d;},_0x4b32e8[_0xc05873(0x183)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x115d43=_0x4b32e8,_0x2f2fb1=await this[_0xc05873(0x15c)](_0x115d43[_0xc05873(0x125)]);if(!_0x2f2fb1||_0x115d43[_0xc05873(0x132)](Object[_0xc05873(0x160)](_0x2f2fb1)[_0xc05873(0x164)],0x0)){this[_0xc05873(0x123)](_0x115d43[_0xc05873(0x183)],_0x2f2fb1);return;}this[_0xc05873(0x12a)](_0x2f2fb1[_0xc05873(0x16b)],_0x2f2fb1[_0xc05873(0x141)]);}static async[a61_0x15d1f0(0x15b)](){const _0x4f02eb=a61_0x15d1f0,_0x2ecbfa={};_0x2ecbfa[_0x4f02eb(0x148)]=_0x4f02eb(0x14d),_0x2ecbfa[_0x4f02eb(0x153)]=function(_0x62b93e,_0x8c58c1){return _0x62b93e===_0x8c58c1;},_0x2ecbfa[_0x4f02eb(0x155)]=_0x4f02eb(0x17d);const _0x39a95f=_0x2ecbfa,_0x37fc0e=await this[_0x4f02eb(0x15c)](_0x39a95f[_0x4f02eb(0x148)]);if(!_0x37fc0e||_0x39a95f[_0x4f02eb(0x153)](Object['keys'](_0x37fc0e)['length'],0x0)){this['logError'](_0x39a95f[_0x4f02eb(0x155)],_0x37fc0e);return;}this['logSituation'](_0x37fc0e[_0x4f02eb(0x16b)],_0x37fc0e[_0x4f02eb(0x141)]);}static async[a61_0x15d1f0(0x14f)](){const _0x254d70=a61_0x15d1f0,_0x44aaea={};_0x44aaea[_0x254d70(0x163)]=_0x254d70(0x11f),_0x44aaea[_0x254d70(0x15d)]=function(_0x41aab9,_0x1c120c){return _0x41aab9===_0x1c120c;},_0x44aaea['zKAsg']=_0x254d70(0x137);const _0x2729ac=_0x44aaea,_0x1ddf27=await this[_0x254d70(0x15c)](_0x2729ac[_0x254d70(0x163)]);if(!_0x1ddf27||_0x2729ac[_0x254d70(0x15d)](Object[_0x254d70(0x160)](_0x1ddf27)['length'],0x0)){this['logError'](_0x2729ac[_0x254d70(0x166)],_0x1ddf27);return;}this[_0x254d70(0x12a)](_0x1ddf27[_0x254d70(0x16b)],_0x1ddf27[_0x254d70(0x141)]);}static[a61_0x15d1f0(0x127)](){const _0xfa9115=a61_0x15d1f0,_0x5c9a94={};_0x5c9a94[_0xfa9115(0x17e)]='.browserstack\x20folder\x20not\x20accessible',_0x5c9a94[_0xfa9115(0x128)]=function(_0x187703,_0x2bfee8){return _0x187703===_0x2bfee8;},_0x5c9a94[_0xfa9115(0x162)]=_0xfa9115(0x165);const _0x97fa12=_0x5c9a94,_0x5a2f9f=constants[_0xfa9115(0x17f)][_0x97fa12['Izdri']];if(!_0x5a2f9f||_0x97fa12[_0xfa9115(0x128)](Object[_0xfa9115(0x160)](_0x5a2f9f)[_0xfa9115(0x164)],0x0)){this['logError'](_0x97fa12['VVHdz'],_0x5a2f9f);return;}this[_0xfa9115(0x140)]['add'](_0x5a2f9f[0x0]),this[_0xfa9115(0x12a)](_0x5a2f9f[0x0],_0x5a2f9f[0x1]);}static async[a61_0x15d1f0(0x16d)](_0x50b56d){const _0x4de20c=a61_0x15d1f0,_0x3cf05a={};_0x3cf05a[_0x4de20c(0x12e)]=_0x4de20c(0x173),_0x3cf05a[_0x4de20c(0x147)]=function(_0x1b5cb9,_0x5d18f4){return _0x1b5cb9===_0x5d18f4;},_0x3cf05a[_0x4de20c(0x182)]='Conflicting\x20Env\x20Var\x20details\x20not\x20found',_0x3cf05a[_0x4de20c(0x150)]=_0x4de20c(0x12c);const _0x359b1d=_0x3cf05a,_0x3f0b66=await this[_0x4de20c(0x15c)](_0x359b1d[_0x4de20c(0x12e)]);if(!_0x3f0b66||_0x359b1d[_0x4de20c(0x147)](Object[_0x4de20c(0x160)](_0x3f0b66)[_0x4de20c(0x164)],0x0)){this[_0x4de20c(0x123)](_0x359b1d['zzsuV'],_0x3f0b66);return;}const _0x593b47=_0x3f0b66[_0x4de20c(0x141)]['replace'](_0x359b1d[_0x4de20c(0x150)],_0x50b56d);this['logSituation'](_0x3f0b66[_0x4de20c(0x16b)],_0x593b47);}static async[a61_0x15d1f0(0x11d)](){const _0x308b7c=a61_0x15d1f0,_0x1d4032={};_0x1d4032[_0x308b7c(0x139)]=function(_0x2f75ac,_0x1263b1){return _0x2f75ac>_0x1263b1;},_0x1d4032[_0x308b7c(0x176)]=function(_0x1d3660,_0x435d7e){return _0x1d3660>_0x435d7e;},_0x1d4032[_0x308b7c(0x12f)]=_0x308b7c(0x180),_0x1d4032[_0x308b7c(0x156)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x523de7=_0x1d4032,_0x123f5a=await this['getAggregatedErrorCodes'](),_0x2c32ec=this[_0x308b7c(0x167)](_0x123f5a),_0x8da922=Array[_0x308b7c(0x145)](_0x123f5a['errorCodes'])?_0x123f5a['errorCodes']:[],_0x4baa12=_0x523de7['arkrs'](this[_0x308b7c(0x140)]['size'],0x0)?Array[_0x308b7c(0x16c)](this[_0x308b7c(0x140)]):[],_0x361fa4=new Set([..._0x8da922,..._0x2c32ec,..._0x4baa12]),_0x463b03=Array[_0x308b7c(0x16c)](_0x361fa4);if(_0x523de7[_0x308b7c(0x176)](_0x463b03[_0x308b7c(0x164)],0x0)){const _0x46c2aa=_0x123f5a['finalErrorMessage'][_0x308b7c(0x179)](_0x523de7[_0x308b7c(0x12f)],_0x463b03[_0x308b7c(0x122)](',\x20'))['replace'](_0x523de7['CUkby'],_0x123f5a[_0x308b7c(0x149)]);logger[_0x308b7c(0x16e)](_0x46c2aa),this['cachedErrorCodes']=_0x463b03;}}}function a61_0x126b(){const _0x2bb6cc=['reportProcessInterruptionSituation','DRZXg','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.','object','arkrs','winstonLogger','232197kXMLnb','kMEuJ','base64','1074400cXypNs','Error\x20in\x20getting\x20error\x20details\x20for\x20','errorCodesOccurredWhenCLINotRunning','errorMessage','WoZyu','10dABUbg','getSuccess','isArray','{SIGNAL}','CqqOE','lXeJR','documentationLink','Session\x20Linking\x20Issue','FzJXq','nRzxV','browserstack\x20cloud\x20not\x20reachable','FZAsd','reportSSLCertIssue','CtbAh','112DoumzW','Process\x20Interruption\x20details\x20not\x20found:','ysqXF','finalErrorMessage','tgWVc','CUkby','parse','1505748riRcjm','push','../v2/browserstackCLI','reportConnectivityIssue','getErrorDetails','gLvkf','getAggregatedClientTroubleshootingErrors','getAggregatedErrorCodes','keys','../../helpers/logger','VVHdz','gmaHc','length','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','zKAsg','checkForErrorsOccuredInCLI','WdMof','./constants','reportSessionLinkingIssue','errorCode','from','reportConflictingEnvVarIssue','warn','26PCfCYU','TGNYg','errorCodesOccurredInCLI','isRunning','conflicting\x20env\x20var\x20detected','Lrykw','getErrorCodesOccurredInCli','OgSfT','xfQwf','QBWTW','replace','40692cBxJun','Process\x20Interruption','stringify','Connectivity\x20Issue\x20details\x20not\x20found','Izdri','CLIENT_TROUBLESHOOTING_HASH','{ERROR_CODES}','uegxs','zzsuV','JXZFI','getErrorCode','exports','[ClientTroubleShootingService]\x20','reportFinalDetectionState','cachedErrorCodes','ssl\x20cert\x20issue','CjjrW','errorCodes','join','logError','getFinalErrorMessage','VRrPF','getInstance','reportDotBrowserStackFolderNotAccessibleIssue','qdgnD','1995030eZhKhV','logSituation','105405ukToRp','{ENV_VAR}','85CLfncl','NgRAg','rDamz','toString','12572054rCqPvP','xgqrc','getDocumentationLink','error'];a61_0x126b=function(){return _0x2bb6cc;};return a61_0x126b();}module[a61_0x15d1f0(0x185)]=ClientTroubleShootingService;
|
|
1
|
+
const a61_0x5371d1=a61_0x5113;function a61_0x1f87(){const _0x22ef84=['winstonLogger','logSituation','{SIGNAL}','scPWo','./constants','errorCodes','185034AYJfcD','MmlUb','Process\x20Interruption','hbFdX','finalErrorMessage','1799448EYqzbs','bhhfz','base64','Error\x20in\x20getting\x20error\x20details\x20for\x20','.browserstack\x20folder\x20not\x20accessible','conflicting\x20env\x20var\x20detected','1250808TwczNH','getErrorCodes','getErrorDetails','size','CTdKr','keys','errorCode','stringify','{ERROR_CODES}','CLIENT_TROUBLESHOOTING_HASH','errorCodesOccurredInCLI','ZXhUn','getAggregatedClientTroubleshootingErrors','Gvjek','NYVVY','Connectivity\x20Issue\x20details\x20not\x20found','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','getFinalErrorMessage','GzFDe','replace','lqCkt','toString','reportDotBrowserStackFolderNotAccessibleIssue','logError','add','aqCEk','errorMessage','eYOOq','DaJMB','PaONt','MjWAi','zOqNk','Session\x20Linking\x20Issue\x20details\x20not\x20found','browserstack\x20cloud\x20not\x20reachable','ZfHhs','Session\x20Linking\x20Issue','Rnbod','sMhsG','checkForErrorsOccuredInCLI','warn','reportSSLCertIssue','kRJjj','isRunning','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','reportProcessInterruptionSituation','../v2/browserstackCLI','BDYIy','UQkrv','cachedErrorCodes','reportFinalDetectionState','getDocumentationLink','reportSessionLinkingIssue','9yLRwLb','gYNbK','errorCodesOccurredWhenCLINotRunning','reportClientTroubleshootingError','OhkaK','getErrorCodesOccurredInCli','length','XbiCi','getAggregatedErrorCodes','1923910iQVIoy','from','error','sXfLJ','421413jfOJsZ','LJWzE','documentationLink','reportConnectivityIssue','jdgyS','getErrorMessage','getInstance','brUhM','2050764YXseYo','parse','92QtbJFD','getSuccess','[ClientTroubleShootingService]\x20','6515GkNFPs','../../helpers/logger','2BzRkDZ'];a61_0x1f87=function(){return _0x22ef84;};return a61_0x1f87();}(function(_0x217f70,_0x4d7525){const _0x4c30eb=a61_0x5113,_0x2501f7=_0x217f70();while(!![]){try{const _0x5900fc=-parseInt(_0x4c30eb(0x1e5))/0x1*(parseInt(_0x4c30eb(0x1ec))/0x2)+-parseInt(_0x4c30eb(0x1d6))/0x3+parseInt(_0x4c30eb(0x1e0))/0x4*(-parseInt(_0x4c30eb(0x1e3))/0x5)+parseInt(_0x4c30eb(0x1de))/0x6+parseInt(_0x4c30eb(0x1f1))/0x7+parseInt(_0x4c30eb(0x1f7))/0x8+-parseInt(_0x4c30eb(0x1c9))/0x9*(parseInt(_0x4c30eb(0x1d2))/0xa);if(_0x5900fc===_0x4d7525)break;else _0x2501f7['push'](_0x2501f7['shift']());}catch(_0x112c93){_0x2501f7['push'](_0x2501f7['shift']());}}}(a61_0x1f87,0x329f0));const logger=require(a61_0x5371d1(0x1e4))[a61_0x5371d1(0x1e6)],BrowserstackCLI=require(a61_0x5371d1(0x1c2)),GrpcClient=require('../v2/grpcClient'),constants=require(a61_0x5371d1(0x1ea));class ClientTroubleShootingService{static [a61_0x5371d1(0x1c5)]=null;static [a61_0x5371d1(0x1cb)]=new Set();static async['getErrorDetails'](_0xd93696){const _0x14dcb6=a61_0x5371d1,_0x433359={};_0x433359[_0x14dcb6(0x1a9)]=function(_0x1bb55a,_0x4ad8de){return _0x1bb55a!==_0x4ad8de;};const _0x3a7caf=_0x433359;try{if(BrowserstackCLI[_0x14dcb6(0x1dc)]()[_0x14dcb6(0x1bf)]()){const _0xe0e441=await GrpcClient[_0x14dcb6(0x1dc)]()[_0x14dcb6(0x1cc)](_0xd93696);if(_0x3a7caf[_0x14dcb6(0x1a9)](_0xe0e441,null)&&_0xe0e441[_0x14dcb6(0x1e1)]())return{'errorCode':_0xe0e441['getErrorCode'](),'errorMessage':_0xe0e441[_0x14dcb6(0x1db)]()};return{};}return{};}catch(_0x21fc31){return this['logError'](_0x14dcb6(0x1f4)+_0xd93696+':',_0x21fc31),{};}}static async[a61_0x5371d1(0x1d1)](){const _0x3b9892=a61_0x5371d1,_0x81c1e5={};_0x81c1e5[_0x3b9892(0x1da)]=function(_0x3f66c5,_0x457acd){return _0x3f66c5!==_0x457acd;},_0x81c1e5[_0x3b9892(0x1ca)]=_0x3b9892(0x1f3),_0x81c1e5[_0x3b9892(0x1c3)]=_0x3b9892(0x1a5);const _0x33bd3b=_0x81c1e5;try{if(BrowserstackCLI[_0x3b9892(0x1dc)]()[_0x3b9892(0x1bf)]()){const _0x479e42=await GrpcClient[_0x3b9892(0x1dc)]()[_0x3b9892(0x203)]();if(_0x33bd3b['jdgyS'](_0x479e42,null)&&_0x479e42[_0x3b9892(0x1e1)]()){const _0x37d6bc=Buffer['from'](_0x479e42[_0x3b9892(0x1f8)](),_0x33bd3b[_0x3b9892(0x1ca)])[_0x3b9892(0x1aa)](),_0x1e88c7=_0x37d6bc?JSON[_0x3b9892(0x1df)](_0x37d6bc):[],_0x28696c=_0x479e42[_0x3b9892(0x1c7)](),_0x14c3c7=_0x479e42[_0x3b9892(0x1a6)](),_0x166345=Buffer[_0x3b9892(0x1d3)](_0x479e42[_0x3b9892(0x1ce)](),_0x33bd3b[_0x3b9892(0x1ca)])[_0x3b9892(0x1aa)](),_0x206e26=_0x166345?JSON[_0x3b9892(0x1df)](_0x166345):[],_0x24b92f={};return _0x24b92f['errorCodes']=_0x1e88c7,_0x24b92f[_0x3b9892(0x1d8)]=_0x28696c,_0x24b92f[_0x3b9892(0x1f0)]=_0x14c3c7,_0x24b92f[_0x3b9892(0x201)]=_0x206e26,_0x24b92f;}const _0x31f313={};return _0x31f313[_0x3b9892(0x1eb)]=[],_0x31f313[_0x3b9892(0x1d8)]='',_0x31f313['finalErrorMessage']='',_0x31f313[_0x3b9892(0x201)]=[],_0x31f313;}const _0x22bb45={};return _0x22bb45[_0x3b9892(0x1eb)]=[],_0x22bb45[_0x3b9892(0x1d8)]='',_0x22bb45[_0x3b9892(0x1f0)]='',_0x22bb45[_0x3b9892(0x201)]=[],_0x22bb45;}catch(_0x350f8a){this[_0x3b9892(0x1ac)](_0x33bd3b[_0x3b9892(0x1c3)],_0x350f8a);const _0x5bfe4a={};return _0x5bfe4a['errorCodes']=[],_0x5bfe4a[_0x3b9892(0x1d8)]='',_0x5bfe4a['finalErrorMessage']='',_0x5bfe4a[_0x3b9892(0x201)]=[],_0x5bfe4a;}}static['logSituation'](_0x2abd1e,_0x11cb66){const _0x1e3dc5=a61_0x5371d1;logger[_0x1e3dc5(0x1bc)](_0x2abd1e+':\x20'+_0x11cb66);}static[a61_0x5371d1(0x1bb)](_0x2c46ee){const _0x58cdb2=a61_0x5371d1,_0x5de452={};_0x5de452[_0x58cdb2(0x1b7)]=function(_0x535870,_0x26056a){return _0x535870!=_0x26056a;},_0x5de452[_0x58cdb2(0x1d0)]=function(_0xdd317a,_0x4df11a){return _0xdd317a>_0x4df11a;};const _0xf2d479=_0x5de452,_0xfc7311=[];if(_0xf2d479['ZfHhs'](_0x2c46ee,null)&&_0xf2d479[_0x58cdb2(0x1b7)](_0x2c46ee['errorCodesOccurredInCLI'],null)&&_0xf2d479[_0x58cdb2(0x1d0)](_0x2c46ee[_0x58cdb2(0x201)][_0x58cdb2(0x1cf)],0x0))for(const _0x11c76c of _0x2c46ee['errorCodesOccurredInCLI']){_0xf2d479['ZfHhs'](_0x11c76c['errorCode'],null)&&_0xf2d479[_0x58cdb2(0x1b7)](_0x11c76c[_0x58cdb2(0x1af)],null)&&(_0xfc7311['push'](_0x11c76c[_0x58cdb2(0x1fd)]),this[_0x58cdb2(0x1e7)](_0x11c76c[_0x58cdb2(0x1fd)],_0x11c76c[_0x58cdb2(0x1af)]));}return _0xfc7311;}static['getCachedErrorCodes'](){return this['cachedErrorCodes'];}static['logError'](_0x5cfc2b,_0x493aba){const _0x366817=a61_0x5371d1,_0x382b79={};_0x382b79[_0x366817(0x1fb)]=function(_0x1ba028,_0x399989){return _0x1ba028===_0x399989;},_0x382b79[_0x366817(0x1cd)]='object';const _0xc90044=_0x382b79;if(_0xc90044[_0x366817(0x1fb)](typeof _0x493aba,_0xc90044['OhkaK']))try{logger['error']('[ClientTroubleShootingService]\x20'+_0x5cfc2b+'\x20'+JSON[_0x366817(0x1fe)](_0x493aba));}catch(_0x3d090f){logger[_0x366817(0x1d4)]('[ClientTroubleShootingService]\x20'+_0x5cfc2b+'\x20'+_0x493aba);}else logger[_0x366817(0x1d4)](_0x366817(0x1e2)+_0x5cfc2b+'\x20'+_0x493aba);}static async[a61_0x5371d1(0x1c1)](_0x47e68d){const _0x3c0634=a61_0x5371d1,_0x2db4d1={};_0x2db4d1['vBrkG']=_0x3c0634(0x1ee),_0x2db4d1[_0x3c0634(0x1e9)]=function(_0x4204f6,_0x2be5c1){return _0x4204f6===_0x2be5c1;},_0x2db4d1[_0x3c0634(0x1d5)]='Process\x20Interruption\x20details\x20not\x20found:',_0x2db4d1['Gvjek']=_0x3c0634(0x1e8);const _0x5744f6=_0x2db4d1,_0x484330=await this[_0x3c0634(0x1f9)](_0x5744f6['vBrkG']);if(!_0x484330||_0x5744f6[_0x3c0634(0x1e9)](Object[_0x3c0634(0x1fc)](_0x484330)[_0x3c0634(0x1cf)],0x0)){this[_0x3c0634(0x1ac)](_0x5744f6['sXfLJ'],_0x484330);return;}this[_0x3c0634(0x1e7)](_0x484330[_0x3c0634(0x1fd)],_0x484330[_0x3c0634(0x1af)]['replace'](_0x5744f6[_0x3c0634(0x204)],_0x47e68d));}static async[a61_0x5371d1(0x1c8)](){const _0x5a65d6=a61_0x5371d1,_0x42c042={};_0x42c042[_0x5a65d6(0x1dd)]=_0x5a65d6(0x1b8),_0x42c042['PaONt']=function(_0x5edd12,_0x183919){return _0x5edd12===_0x183919;},_0x42c042['aqCEk']=_0x5a65d6(0x1b5);const _0x1b661c=_0x42c042,_0x420781=await this['getErrorDetails'](_0x1b661c[_0x5a65d6(0x1dd)]);if(!_0x420781||_0x1b661c[_0x5a65d6(0x1b2)](Object['keys'](_0x420781)['length'],0x0)){this[_0x5a65d6(0x1ac)](_0x1b661c[_0x5a65d6(0x1ae)],_0x420781);return;}this[_0x5a65d6(0x1e7)](_0x420781[_0x5a65d6(0x1fd)],_0x420781['errorMessage']);}static async[a61_0x5371d1(0x1d9)](){const _0xa4d9b0=a61_0x5371d1,_0x41610f={};_0x41610f[_0xa4d9b0(0x1ed)]=_0xa4d9b0(0x1b6),_0x41610f[_0xa4d9b0(0x1ef)]=function(_0x22d694,_0x5904de){return _0x22d694===_0x5904de;},_0x41610f[_0xa4d9b0(0x1ba)]=_0xa4d9b0(0x1a4);const _0x35e787=_0x41610f,_0x46a1d0=await this['getErrorDetails'](_0x35e787[_0xa4d9b0(0x1ed)]);if(!_0x46a1d0||_0x35e787[_0xa4d9b0(0x1ef)](Object['keys'](_0x46a1d0)[_0xa4d9b0(0x1cf)],0x0)){this[_0xa4d9b0(0x1ac)](_0x35e787['sMhsG'],_0x46a1d0);return;}this[_0xa4d9b0(0x1e7)](_0x46a1d0[_0xa4d9b0(0x1fd)],_0x46a1d0[_0xa4d9b0(0x1af)]);}static async[a61_0x5371d1(0x1bd)](){const _0x7f0a45=a61_0x5371d1,_0x37526c={};_0x37526c[_0x7f0a45(0x1a7)]='ssl\x20cert\x20issue',_0x37526c[_0x7f0a45(0x1c4)]=function(_0x40b331,_0x2d2a95){return _0x40b331===_0x2d2a95;},_0x37526c[_0x7f0a45(0x1b4)]='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 _0x1049ff=_0x37526c,_0x4b2a16=await this[_0x7f0a45(0x1f9)](_0x1049ff['GzFDe']);if(!_0x4b2a16||_0x1049ff[_0x7f0a45(0x1c4)](Object[_0x7f0a45(0x1fc)](_0x4b2a16)[_0x7f0a45(0x1cf)],0x0)){this[_0x7f0a45(0x1ac)](_0x1049ff[_0x7f0a45(0x1b4)],_0x4b2a16);return;}this['logSituation'](_0x4b2a16[_0x7f0a45(0x1fd)],_0x4b2a16[_0x7f0a45(0x1af)]);}static[a61_0x5371d1(0x1ab)](){const _0x2c4cf8=a61_0x5371d1,_0x581dc7={};_0x581dc7[_0x2c4cf8(0x1b1)]=_0x2c4cf8(0x1f5),_0x581dc7[_0x2c4cf8(0x205)]=function(_0x12978e,_0x50d484){return _0x12978e===_0x50d484;},_0x581dc7['yiQrn']=_0x2c4cf8(0x1c0);const _0x47fc1c=_0x581dc7,_0x1fead9=constants[_0x2c4cf8(0x200)][_0x47fc1c[_0x2c4cf8(0x1b1)]];if(!_0x1fead9||_0x47fc1c[_0x2c4cf8(0x205)](Object[_0x2c4cf8(0x1fc)](_0x1fead9)['length'],0x0)){this[_0x2c4cf8(0x1ac)](_0x47fc1c['yiQrn'],_0x1fead9);return;}this[_0x2c4cf8(0x1cb)][_0x2c4cf8(0x1ad)](_0x1fead9[0x0]),this['logSituation'](_0x1fead9[0x0],_0x1fead9[0x1]);}static async['reportConflictingEnvVarIssue'](_0x8af921){const _0xb6702b=a61_0x5371d1,_0xde2655={};_0xde2655[_0xb6702b(0x1b3)]=_0xb6702b(0x1f6),_0xde2655[_0xb6702b(0x202)]=function(_0x38dc22,_0x33492e){return _0x38dc22===_0x33492e;},_0xde2655[_0xb6702b(0x1d7)]='Conflicting\x20Env\x20Var\x20details\x20not\x20found',_0xde2655[_0xb6702b(0x1be)]='{ENV_VAR}';const _0x514b42=_0xde2655,_0x23021e=await this['getErrorDetails'](_0x514b42[_0xb6702b(0x1b3)]);if(!_0x23021e||_0x514b42['ZXhUn'](Object[_0xb6702b(0x1fc)](_0x23021e)[_0xb6702b(0x1cf)],0x0)){this[_0xb6702b(0x1ac)](_0x514b42[_0xb6702b(0x1d7)],_0x23021e);return;}const _0x1a5c80=_0x23021e[_0xb6702b(0x1af)][_0xb6702b(0x1a8)](_0x514b42[_0xb6702b(0x1be)],_0x8af921);this[_0xb6702b(0x1e7)](_0x23021e[_0xb6702b(0x1fd)],_0x1a5c80);}static async[a61_0x5371d1(0x1c6)](){const _0x425727=a61_0x5371d1,_0x438130={};_0x438130['Rnbod']=function(_0x59a8ff,_0x2e40ad){return _0x59a8ff>_0x2e40ad;},_0x438130[_0x425727(0x1f2)]=_0x425727(0x1ff),_0x438130[_0x425727(0x1b0)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x31d845=_0x438130,_0x33909a=await this[_0x425727(0x1d1)](),_0x2995be=this[_0x425727(0x1bb)](_0x33909a),_0x2a761d=Array['isArray'](_0x33909a['errorCodes'])?_0x33909a['errorCodes']:[],_0x483208=_0x31d845['Rnbod'](this[_0x425727(0x1cb)][_0x425727(0x1fa)],0x0)?Array['from'](this['errorCodesOccurredWhenCLINotRunning']):[],_0x1ff296=new Set([..._0x2a761d,..._0x2995be,..._0x483208]),_0x5e32d5=Array[_0x425727(0x1d3)](_0x1ff296);if(_0x31d845[_0x425727(0x1b9)](_0x5e32d5[_0x425727(0x1cf)],0x0)){const _0x4f3261=_0x33909a[_0x425727(0x1f0)][_0x425727(0x1a8)](_0x31d845[_0x425727(0x1f2)],_0x5e32d5['join'](',\x20'))[_0x425727(0x1a8)](_0x31d845[_0x425727(0x1b0)],_0x33909a[_0x425727(0x1d8)]);logger['warn'](_0x4f3261),this['cachedErrorCodes']=_0x5e32d5;}}}function a61_0x5113(_0x535265,_0x37f94f){const _0x1f87d2=a61_0x1f87();return a61_0x5113=function(_0x5113ba,_0x12d9e9){_0x5113ba=_0x5113ba-0x1a4;let _0x4eab6c=_0x1f87d2[_0x5113ba];return _0x4eab6c;},a61_0x5113(_0x535265,_0x37f94f);}module['exports']=ClientTroubleShootingService;
|