browserstack-node-sdk 1.56.1 → 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_0x5828fd=a55_0x5076;(function(_0x3f8511,_0x493696){const _0x21f953=a55_0x5076,_0x5119a4=_0x3f8511();while(!![]){try{const _0x17766a=-parseInt(_0x21f953(0x1ec))/0x1+parseInt(_0x21f953(0x1eb))/0x2*(-parseInt(_0x21f953(0x223))/0x3)+-parseInt(_0x21f953(0x26d))/0x4+-parseInt(_0x21f953(0x20f))/0x5+-parseInt(_0x21f953(0x1f2))/0x6+-parseInt(_0x21f953(0x231))/0x7*(parseInt(_0x21f953(0x20a))/0x8)+parseInt(_0x21f953(0x281))/0x9;if(_0x17766a===_0x493696)break;else _0x5119a4['push'](_0x5119a4['shift']());}catch(_0x4b1451){_0x5119a4['push'](_0x5119a4['shift']());}}}(a55_0x468e,0x750c8));function a55_0x468e(){const _0x55c355=['assign','./mocha/command','tFUoZ','28283229TfivCj','start','usage','homedir','MOCHA','run','ZNwhK','CODECEPTJS','disableAutoCaptureLogs','NrtXq','You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','getPwChannelLogPath','./playwright/command','ojHCy','uyWwL','./cucumber-js/command','20dmMbxO','261862SebInG','--opts','env','ENaya','vanilla','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20','3903150agjofn','setBrowserStackAutomationDisable','demandCommand','some','DEBUG_FILE','BROWSERSTACK_CONFIG_FILE_PATH','Secbr','./nightwatch/command','AhJBP','../helpers/test-observability/constants','winstonLogger','VANILLA','--config','exitCode','NEWMAN','tDEzo','existsSync','getConfigPath','MdIgr','util','alias','help','CquFM','error','30632WAximD','jwFSi','message','SDK_SETUP','LnZHh','2663590BnrHga','eXoOt','KVmlU','Running\x20SDK\x20with\x20args\x20','stack','strict','--require','end','DEBUG','option','INTEGRATIONS','idPOk','setTestObservabilityDisable','VERSION','playwright','jest','./load/index','ZzWBg','../helpers/logger','./vanilla-js/command','33237myYiwf','mocha','newman','jNWVD','yargs','path','format','getInstance','NHOzz','command','gdZEk','OJcfy','./newman/helper','../helpers/performance/performance-tester','945rTTVTU','NIGHTWATCH','config','codeceptjs','argv','showHelpOnFail','filter','pw:*','DRgxi','SvKIn','../helpers/performance/constants','mocha/lib/cli/run.js','XrhaA','Show\x20help','HELP','fireFunnelTestEvent','--no-config','nnddP','oMJvp','push','nvejM','INFO','CUCUMBER','jmSJO','pw:channel\x20auto-capture\x20seed\x20failed:\x20','isUndefined','OlzdF','--package','framework','stop','JujtH','spawn','slice','rqxdQ','PQCIv','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','cksGc','eXKMe','TbowU','ycYVm','./utils/constants','ats','--mochaRequire','includes','URJPl','node','../helpers/helper','KriVW','-pw:*','version','join','./newman/command','NuoPd','cucumber-js','ebCKM','../../ats/src/index','zVPeD','unlinkSync','./v2/browserstackCLI','EPvHV','2361356CpUMYd','PLAYWRIGHT','../helpers/utilities','./integrations/command','handler','bteeY','./jest/command','jMEvx','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','pw:channel','oxHQx','map','debug','EVENTS','-pw:channel','xLHit','usage:\x20$0\x20<command>\x20[args]'];a55_0x468e=function(){return _0x55c355;};return a55_0x468e();}const fs=require('fs'),path=require(a55_0x5828fd(0x228)),util=require(a55_0x5828fd(0x205)),spawn=require('child_process')[a55_0x5828fd(0x250)],{requireModule}=require('../helpers/helper'),PerformanceTester=require(a55_0x5828fd(0x230)),PerformanceEvents=require(a55_0x5828fd(0x23b))[a55_0x5828fd(0x27a)],helper=require(a55_0x5828fd(0x25f)),utilities=require(a55_0x5828fd(0x26f)),{default:BrowserStackSetup}=require('../helpers/BrowserStackSetup'),{FRAMEWORKS}=require(a55_0x5828fd(0x1fb)),runIntegrations=require(a55_0x5828fd(0x270)),yargs=require(a55_0x5828fd(0x227)),Constants=require(a55_0x5828fd(0x259)),BrowserstackCLI=require(a55_0x5828fd(0x26b)),{isNewman}=require(a55_0x5828fd(0x22f)),logger=require(a55_0x5828fd(0x221))[a55_0x5828fd(0x1fc)],origArgs=Object[a55_0x5828fd(0x27e)]([],process[a55_0x5828fd(0x235)]),captureError=async(_0x38b92f,_0x3c2012,_0x3860f5,_0x3ce476=null,_0x5d070f=![])=>{const _0x32b934=a55_0x5828fd,_0x3b74a5={'rqxdQ':function(_0x103e0d,_0x4e1e4a,_0xadbd9e,_0x224126){return _0x103e0d(_0x4e1e4a,_0xadbd9e,_0x224126);},'ENaya':'SDKTestSuccessful'};try{logger['info'](_0x32b934(0x212)+origArgs[_0x32b934(0x263)]('\x20')),await _0x3b74a5[_0x32b934(0x252)](_0x38b92f,_0x3c2012,_0x3ce476,_0x3860f5);}catch(_0x5f57fd){process[_0x32b934(0x1ff)]=0x1,logger[_0x32b934(0x209)](util[_0x32b934(0x229)](_0x5f57fd));const _0xe4e10a={'globalException':util['format']('%j',_0x5f57fd)};PerformanceTester[_0x32b934(0x216)](PerformanceEvents[_0x32b934(0x20d)],![],util[_0x32b934(0x229)](_0x5f57fd));if(helper[_0x32b934(0x24a)](global['config'])&&helper[_0x32b934(0x24a)](global[_0x32b934(0x24d)]))return;try{utilities[_0x32b934(0x240)](_0x3b74a5[_0x32b934(0x1ef)],_0xe4e10a,global[_0x32b934(0x233)],global[_0x32b934(0x24d)]);}catch(_0x1b0293){logger[_0x32b934(0x279)](_0x32b934(0x254)+_0x1b0293[_0x32b934(0x213)]);}try{await helper['sendLogs'](global['config']);}catch(_0x75fdcb){logger[_0x32b934(0x279)](_0x32b934(0x275)+_0x75fdcb[_0x32b934(0x213)]);}PerformanceTester['end'](PerformanceEvents[_0x32b934(0x20d)],![],util[_0x32b934(0x229)](_0x5f57fd));}finally{!_0x5d070f&&await BrowserstackCLI[_0x32b934(0x22a)]()[_0x32b934(0x24e)](),PerformanceTester[_0x32b934(0x282)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path['join'](helper[a55_0x5828fd(0x284)](),'.browserstack');if(fs[a55_0x5828fd(0x202)](browserstackFolderPath)){const filePath=path['join'](browserstackFolderPath,'.local-not-set.json');fs[a55_0x5828fd(0x202)](filePath)&&fs[a55_0x5828fd(0x26a)](filePath);}}catch(a55_0x57531e){logger[a55_0x5828fd(0x279)](a55_0x5828fd(0x1f1)+a55_0x57531e[a55_0x5828fd(0x20c)]);}process[a55_0x5828fd(0x235)][a55_0x5828fd(0x25c)](a55_0x5828fd(0x224))&&(!process[a55_0x5828fd(0x235)][a55_0x5828fd(0x25c)](a55_0x5828fd(0x1ed))&&process['argv']['push']('--no-opts'),!process[a55_0x5828fd(0x235)]['find'](_0x3a6ddd=>_0x3a6ddd['includes'](a55_0x5828fd(0x1fe)))&&process['argv'][a55_0x5828fd(0x244)](a55_0x5828fd(0x241)),!process['argv'][a55_0x5828fd(0x25c)](a55_0x5828fd(0x24c))&&process[a55_0x5828fd(0x235)]['push']('--no-package'),helper['findAndReplace'](process[a55_0x5828fd(0x235)],a55_0x5828fd(0x215),a55_0x5828fd(0x25b)));PerformanceTester[a55_0x5828fd(0x282)](PerformanceEvents[a55_0x5828fd(0x20d)]);function a55_0x5076(_0x37fad3,_0x324b42){const _0x468e35=a55_0x468e();return a55_0x5076=function(_0x5076dc,_0x4f0b09){_0x5076dc=_0x5076dc-0x1e4;let _0x2e1245=_0x468e35[_0x5076dc];return _0x2e1245;},a55_0x5076(_0x37fad3,_0x324b42);}const a55_0x4ab806={};a55_0x4ab806['dot-notation']=![];const argv=yargs['parserConfiguration'](a55_0x4ab806)[a55_0x5828fd(0x283)](a55_0x5828fd(0x27d))[a55_0x5828fd(0x206)]('v',a55_0x5828fd(0x262))['describe']('v')[a55_0x5828fd(0x206)]('h','help')[a55_0x5828fd(0x207)](a55_0x5828fd(0x207))[a55_0x5828fd(0x236)](!![],Constants[a55_0x5828fd(0x21c)][a55_0x5828fd(0x23f)])[a55_0x5828fd(0x22c)](a55_0x5828fd(0x21e),Constants['JEST'][a55_0x5828fd(0x246)],function(_0x3fd8f7){const _0xa643b2=a55_0x5828fd,_0x31b1bb={'CquFM':_0xa643b2(0x21e),'NHOzz':function(_0x57d44f,_0x51f902,_0x3af735,_0x1e1183,_0x1e6da3,_0x249725){return _0x57d44f(_0x51f902,_0x3af735,_0x1e1183,_0x1e6da3,_0x249725);},'jwFSi':function(_0x2ef2dc,_0x3a77af){return _0x2ef2dc(_0x3a77af);},'Sqmbe':_0xa643b2(0x273)},_0x1c0138=process[_0xa643b2(0x235)][_0xa643b2(0x251)](0x2);helper[_0xa643b2(0x21b)](),helper[_0xa643b2(0x1f3)](),_0x3fd8f7[_0xa643b2(0x214)](![]);const _0x244d40=new BrowserStackSetup(_0x3fd8f7[_0xa643b2(0x235)],_0x31b1bb[_0xa643b2(0x208)]);return _0x31b1bb[_0xa643b2(0x22b)](captureError,_0x31b1bb[_0xa643b2(0x20b)](require,_0x31b1bb['Sqmbe']),_0x3fd8f7[_0xa643b2(0x235)],_0x244d40,_0x1c0138,!![]);})[a55_0x5828fd(0x22c)]('mocha',Constants[a55_0x5828fd(0x285)][a55_0x5828fd(0x246)],_0x1b0939=>{const _0x45192a=a55_0x5828fd,_0x284ff5={'DCzVP':function(_0x12dab2,_0x5602f3,_0x58febf,_0x549d70){return _0x12dab2(_0x5602f3,_0x58febf,_0x549d70);},'gdZEk':function(_0x4f6a05,_0x56d12d){return _0x4f6a05(_0x56d12d);},'AJQeE':_0x45192a(0x27f),'oxHQx':'mocha','ZzWBg':'Parsing\x20command\x20line\x20arguments','JujtH':function(_0x5be2fe,_0x5335e2,_0x545a02){return _0x5be2fe(_0x5335e2,_0x545a02);},'XrhaA':_0x45192a(0x23c),'jmSJO':'mocha/lib/cli/commands.js','DRgxi':function(_0x44a6ff,_0x54816f,_0x45873b){return _0x44a6ff(_0x54816f,_0x45873b);},'OJcfy':'mocha/lib/cli/cli.js','ojHCy':function(_0x32fd58){return _0x32fd58();}};process[_0x45192a(0x235)]=process[_0x45192a(0x235)][_0x45192a(0x251)](0x1),helper[_0x45192a(0x21b)](),helper[_0x45192a(0x1f3)]();const _0x18bb55=new BrowserStackSetup(_0x1b0939['argv'],_0x284ff5['oxHQx']);logger[_0x45192a(0x279)](_0x284ff5[_0x45192a(0x220)]);const _0x816c=_0x284ff5[_0x45192a(0x24f)](requireModule,_0x284ff5[_0x45192a(0x23d)],_0x284ff5[_0x45192a(0x277)]),_0x120e3e=_0x284ff5[_0x45192a(0x24f)](requireModule,_0x284ff5[_0x45192a(0x248)],_0x284ff5[_0x45192a(0x277)]);delete _0x816c[_0x45192a(0x271)],_0x816c['handler']=function(_0x34ef9b){const _0x4af4e2=_0x45192a;return _0x284ff5['DCzVP'](captureError,_0x284ff5[_0x4af4e2(0x22d)](require,_0x284ff5['AJQeE']),_0x34ef9b,_0x18bb55);},_0x120e3e[_0x45192a(0x286)]=_0x816c;const {main:_0x9115a1}=_0x284ff5[_0x45192a(0x239)](requireModule,_0x284ff5[_0x45192a(0x22e)],_0x284ff5[_0x45192a(0x277)]);_0x284ff5[_0x45192a(0x1e8)](_0x9115a1);})[a55_0x5828fd(0x22c)]('cucumber-js',Constants[a55_0x5828fd(0x247)]['INFO'],function(_0x58d539){const _0x1d0597=a55_0x5828fd,_0x1268de={'NuoPd':_0x1d0597(0x266),'nnddP':function(_0x4549aa,_0x3aa98e,_0x104d8d,_0xbb5279,_0x5755c5,_0x578353){return _0x4549aa(_0x3aa98e,_0x104d8d,_0xbb5279,_0x5755c5,_0x578353);},'gfyEm':function(_0x226a6d,_0x402f13){return _0x226a6d(_0x402f13);},'xLHit':_0x1d0597(0x1ea)},_0x45b9da=process[_0x1d0597(0x235)][_0x1d0597(0x251)](0x2),_0x44b264=new BrowserStackSetup(_0x58d539[_0x1d0597(0x235)],_0x1268de[_0x1d0597(0x265)]);return _0x1268de[_0x1d0597(0x242)](captureError,_0x1268de['gfyEm'](require,_0x1268de[_0x1d0597(0x27c)]),_0x58d539[_0x1d0597(0x235)],_0x44b264,_0x45b9da,!![]);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x25e),Constants[a55_0x5828fd(0x1fd)][a55_0x5828fd(0x246)],function(_0x38d875){const _0x52500c=a55_0x5828fd,_0x272956={'KriVW':_0x52500c(0x1f0),'ycYVm':function(_0x2545a7,_0x11a13f){return _0x2545a7(_0x11a13f);},'zVPeD':'newman','OlzdF':function(_0x231bb1,_0x4f385e,_0x5ac95c,_0x3677f4,_0x2e5948){return _0x231bb1(_0x4f385e,_0x5ac95c,_0x3677f4,_0x2e5948);},'Rwwnn':_0x52500c(0x264),'MdIgr':function(_0x1f8e91,_0x3c3fc0){return _0x1f8e91(_0x3c3fc0);},'nvejM':_0x52500c(0x222)},_0x2d6120=process[_0x52500c(0x235)]['slice'](0x2),_0x192309=new BrowserStackSetup(_0x38d875[_0x52500c(0x235)],_0x272956[_0x52500c(0x260)]),_0x26f4f3=_0x192309?_0x192309[_0x52500c(0x233)]:null;if(_0x272956[_0x52500c(0x258)](isNewman,_0x26f4f3))return _0x192309[_0x52500c(0x24d)]=_0x272956['zVPeD'],global[_0x52500c(0x24d)]=_0x272956[_0x52500c(0x269)],_0x272956[_0x52500c(0x24b)](captureError,_0x272956['ycYVm'](require,_0x272956['Rwwnn']),_0x38d875['argv'],_0x192309,_0x2d6120);return _0x272956['OlzdF'](captureError,_0x272956[_0x52500c(0x204)](require,_0x272956[_0x52500c(0x245)]),_0x38d875[_0x52500c(0x235)],_0x192309,_0x2d6120);})[a55_0x5828fd(0x22c)]('nightwatch',Constants[a55_0x5828fd(0x232)]['INFO'],function(_0x11410b){const _0x4d7d95=a55_0x5828fd,_0x261f61={'ZNwhK':function(_0x58eb97,_0x1f36ca,_0x1528d6,_0xabd4ad,_0x4643ad){return _0x58eb97(_0x1f36ca,_0x1528d6,_0xabd4ad,_0x4643ad);},'AhJBP':function(_0x561e0b,_0x55b4cd){return _0x561e0b(_0x55b4cd);},'EPvHV':_0x4d7d95(0x1f9)},_0x21ed8b=process[_0x4d7d95(0x235)]['slice'](0x2),_0xbd743=new BrowserStackSetup(_0x11410b[_0x4d7d95(0x235)]);return _0x261f61[_0x4d7d95(0x287)](captureError,_0x261f61[_0x4d7d95(0x1fa)](require,_0x261f61[_0x4d7d95(0x26c)]),_0x11410b[_0x4d7d95(0x235)],_0xbd743,_0x21ed8b);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x234),Constants[a55_0x5828fd(0x288)][a55_0x5828fd(0x246)],function(_0x2dafbf){const _0x268640=a55_0x5828fd,_0x155b8d={'oMJvp':_0x268640(0x234),'bteeY':function(_0x1005a9,_0x87bf11,_0x41f64d,_0x3cd56e,_0x1aa040){return _0x1005a9(_0x87bf11,_0x41f64d,_0x3cd56e,_0x1aa040);},'jMEvx':function(_0x54fcb4,_0x439193){return _0x54fcb4(_0x439193);},'uyWwL':'./codeceptjs/command'},_0x13ddfd=process[_0x268640(0x235)][_0x268640(0x251)](0x2),_0x2f9170=new BrowserStackSetup(_0x2dafbf[_0x268640(0x235)],_0x155b8d[_0x268640(0x243)]);return _0x155b8d[_0x268640(0x272)](captureError,_0x155b8d[_0x268640(0x274)](require,_0x155b8d[_0x268640(0x1e9)]),_0x2dafbf['argv'],_0x2f9170,_0x13ddfd);})['command'](a55_0x5828fd(0x25a),Constants['HST'][a55_0x5828fd(0x246)],function(_0x40cf03){const _0x546997=a55_0x5828fd,_0x1669dc={'TbowU':function(_0x4cd6e4,_0x1a5c68,_0x4fb21e){return _0x4cd6e4(_0x1a5c68,_0x4fb21e);},'URJPl':function(_0x306270,_0xe3795f){return _0x306270(_0xe3795f);},'tDEzo':_0x546997(0x268)},_0x3db43b=process[_0x546997(0x235)]['slice'](0x2);return _0x1669dc[_0x546997(0x257)](captureError,_0x1669dc[_0x546997(0x25d)](require,_0x1669dc[_0x546997(0x201)]),_0x40cf03);})[a55_0x5828fd(0x22c)]('integrations',Constants[a55_0x5828fd(0x219)][a55_0x5828fd(0x246)],function(_0x6d2353){const _0x38b6c0={'tKDlv':function(_0x7cac43,_0x187dd9){return _0x7cac43(_0x187dd9);}};return _0x38b6c0['tKDlv'](runIntegrations,_0x6d2353);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x21d),Constants['PLAYWRIGHT'][a55_0x5828fd(0x246)],function(_0x327049){const _0x36121b=a55_0x5828fd,_0x2b7128={'jNWVD':_0x36121b(0x276),'cksGc':function(_0x26d21f,_0x335a6a){return _0x26d21f&&_0x335a6a;},'eXKMe':function(_0x1a2a83,_0x4783dc,_0x257be0,_0x45ea0a,_0x130ebb,_0x5210a1){return _0x1a2a83(_0x4783dc,_0x257be0,_0x45ea0a,_0x130ebb,_0x5210a1);},'GAZqR':function(_0x76d132,_0x526edc){return _0x76d132(_0x526edc);},'LnZHh':_0x36121b(0x1e7)},_0x27eb1c=process['argv'][_0x36121b(0x251)](0x2);helper[_0x36121b(0x203)](process['argv'])&&(process[_0x36121b(0x1ee)][_0x36121b(0x1f7)]=helper['getConfigPath'](process[_0x36121b(0x235)]));helper[_0x36121b(0x21b)](),helper[_0x36121b(0x1f3)]();const _0x5a301f=new BrowserStackSetup(_0x327049[_0x36121b(0x235)],FRAMEWORKS[_0x36121b(0x26e)]);try{if(!_0x5a301f[_0x36121b(0x233)]||!_0x5a301f[_0x36121b(0x233)][_0x36121b(0x289)]){const _0x404be1=_0x2b7128[_0x36121b(0x226)],_0x5de929=process[_0x36121b(0x1ee)][_0x36121b(0x217)]||'',_0x61b319=_0x5de929['split'](',')[_0x36121b(0x278)](_0x21f3c7=>_0x21f3c7['trim']())[_0x36121b(0x237)](Boolean),_0x47a8f7=_0x61b319[_0x36121b(0x1f5)](_0x4fc76c=>_0x4fc76c===_0x36121b(0x27b)||_0x4fc76c===_0x36121b(0x261)||_0x4fc76c==='-*'),_0x59ca86=_0x61b319['some'](_0x47a156=>_0x47a156===_0x404be1||_0x47a156===_0x36121b(0x238)||_0x47a156==='*');if(_0x2b7128[_0x36121b(0x255)](!_0x47a8f7,!_0x59ca86)){const _0x1b9e40=helper[_0x36121b(0x1e6)]();_0x1b9e40&&(process[_0x36121b(0x1ee)][_0x36121b(0x217)]=_0x5de929?_0x5de929+','+_0x404be1:_0x404be1,!process['env'][_0x36121b(0x1f6)]&&(process['env']['DEBUG_FILE']=_0x1b9e40));}}}catch(_0x63c98f){logger[_0x36121b(0x279)](_0x36121b(0x249)+util[_0x36121b(0x229)](_0x63c98f));}return _0x2b7128[_0x36121b(0x256)](captureError,_0x2b7128['GAZqR'](require,_0x2b7128[_0x36121b(0x20e)]),_0x327049[_0x36121b(0x235)],_0x5a301f,_0x27eb1c,!![]);})[a55_0x5828fd(0x22c)]('load\x20[subcommand]','Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x6cfc11){const _0x3dd53e=a55_0x5828fd,_0x48bbfc={};_0x48bbfc[_0x3dd53e(0x211)]=_0x3dd53e(0x207),_0x48bbfc[_0x3dd53e(0x267)]='boolean',_0x48bbfc[_0x3dd53e(0x210)]=_0x3dd53e(0x23e);const _0x2069b7=_0x48bbfc;return _0x6cfc11[_0x3dd53e(0x207)](![])[_0x3dd53e(0x218)](_0x2069b7['KVmlU'],{'alias':'h','type':_0x2069b7[_0x3dd53e(0x267)],'describe':_0x2069b7[_0x3dd53e(0x210)]})['strict'](![])['exitProcess'](![]);},function(_0x3d7d66){const _0x524de6=a55_0x5828fd,_0x56bd62={'Secbr':function(_0x302282,_0x2dc988,_0x8ccae2){return _0x302282(_0x2dc988,_0x8ccae2);},'CPMfD':function(_0xca69e1,_0x455e89){return _0xca69e1(_0x455e89);},'tFUoZ':_0x524de6(0x21f)},_0x40df92={};return _0x40df92[_0x524de6(0x235)]=_0x3d7d66,_0x56bd62[_0x524de6(0x1f8)](captureError,_0x56bd62['CPMfD'](require,_0x56bd62[_0x524de6(0x280)]),_0x40df92);})[a55_0x5828fd(0x22c)](a55_0x5828fd(0x225),Constants[a55_0x5828fd(0x200)]['INFO'],function(_0x31d1ba){const _0x4857db=a55_0x5828fd,_0x2ddbde={'SvKIn':'newman','PQCIv':function(_0x29bf6d,_0x84ee5f,_0x52ce4d,_0x2f8e06,_0x45357b){return _0x29bf6d(_0x84ee5f,_0x52ce4d,_0x2f8e06,_0x45357b);},'NrtXq':function(_0x5d534d,_0x52d12b){return _0x5d534d(_0x52d12b);},'idPOk':_0x4857db(0x264)},_0x16890c=process[_0x4857db(0x235)][_0x4857db(0x251)](0x2);helper[_0x4857db(0x21b)](),helper['setBrowserStackAutomationDisable'](),_0x31d1ba[_0x4857db(0x214)](![]);const _0x328ebd=new BrowserStackSetup(_0x31d1ba[_0x4857db(0x235)],_0x2ddbde[_0x4857db(0x23a)]);return _0x2ddbde[_0x4857db(0x253)](captureError,_0x2ddbde[_0x4857db(0x1e4)](require,_0x2ddbde[_0x4857db(0x21a)]),_0x31d1ba[_0x4857db(0x235)],_0x328ebd,_0x16890c);})[a55_0x5828fd(0x1f4)](0x1,a55_0x5828fd(0x1e5))['wrap'](null)[a55_0x5828fd(0x235)];!helper[a55_0x5828fd(0x24a)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x5828fd(0x25a)&&console['error']('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
|
-
function a57_0x1c7a(_0x37170d,_0x2e91dc){const _0x2e22f0=a57_0x2e22();return a57_0x1c7a=function(_0x1c7ade,_0x22d9d4){_0x1c7ade=_0x1c7ade-0x1c4;let _0xfc7e75=_0x2e22f0[_0x1c7ade];return _0xfc7e75;},a57_0x1c7a(_0x37170d,_0x2e91dc);}function a57_0x2e22(){const _0x26cf80=['platformIndex','../../helpers/performance/performance-tester','wGLsU','SDK_SETUP','config','EVENTS','util','oJxSG','platform','getStdout','test-file-failure','all','vanillaWorker','aGLDK','20rieIeH','platformCaps','_child','OlIVg','KqvUi','waitForExit','../../helpers/testhub/testhubHandler','Workers\x20failed\x20to\x20exit\x20gracefully','platform-run-start','uWfIa','postMessage','aBiVO','mZNbA','debug','3010736IHNQOT','_workerPool','Worker','resolve','VmbbH','format','3063473CBtRSo','iuoyh','GcBHY','info','27238986zccwOc','p-limit','UNSTABLE_onCustomMessage','LPKpX','platform-run-success','OwPtz','86848YNoaQI','nZyDw','6FcccrG','ZrGRb','./testWorker.js','worker_threads','\x20for','Exception\x20in\x20sending\x20worker\x20message\x20','Idwku','JHZcG','platforms','stderr','pipe','sSkfw','parallelVanillaRun','cucumberWorker','zqqZC','configuration','emit','exitCode','tKiYf','../../helpers/test-observability/utils','../../helpers/logger','wpNvI','fpbes','../../helpers/performance/constants','YtoIi','map','getWorkers','json','getStderr','10314504FVwzLh','nIJpZ','exit','eZEGL','then','test-file-success','platform-run-failure','worker','mELfh','end','483116sCfTWx','UuGNU','error','zAvcF','CValr','1793045dPIpVr','push','PPHyc','wLQSK','stdout','parallelCucumberRun','file'];a57_0x2e22=function(){return _0x26cf80;};return a57_0x2e22();}const a57_0x3fa19a=a57_0x1c7a;(function(_0x1c01f5,_0x53531e){const _0x23f1e1=a57_0x1c7a,_0x5372ec=_0x1c01f5();while(!![]){try{const _0x17b4a0=parseInt(_0x23f1e1(0x1fb))/0x1+-parseInt(_0x23f1e1(0x1f6))/0x2*(-parseInt(_0x23f1e1(0x1cf))/0x3)+parseInt(_0x23f1e1(0x1cd))/0x4*(-parseInt(_0x23f1e1(0x210))/0x5)+parseInt(_0x23f1e1(0x1ec))/0x6+parseInt(_0x23f1e1(0x224))/0x7+-parseInt(_0x23f1e1(0x21e))/0x8+-parseInt(_0x23f1e1(0x1c7))/0x9;if(_0x17b4a0===_0x53531e)break;else _0x5372ec['push'](_0x5372ec['shift']());}catch(_0x2938eb){_0x5372ec['push'](_0x5372ec['shift']());}}}(a57_0x2e22,0xe6424));const Worker=require('jest-worker')[a57_0x3fa19a(0x220)],Emittery=require('emittery'),pLimit=require(a57_0x3fa19a(0x1c8)),{parentPort}=require(a57_0x3fa19a(0x1d2)),util=require(a57_0x3fa19a(0x208)),logger=require(a57_0x3fa19a(0x1e3))['winstonLogger'],PerformanceTester=require(a57_0x3fa19a(0x203)),PerformanceEvents=require(a57_0x3fa19a(0x1e6))[a57_0x3fa19a(0x207)],{debug}=require(a57_0x3fa19a(0x1e2)),TestHubHandler=require(a57_0x3fa19a(0x216));exports['parallelTestRun']=(_0x2bad66,_0x4dc39d,_0x4f157f)=>new Promise(async _0x17546c=>{const _0x2b524f=a57_0x3fa19a,_0x11940d={'Idwku':'failureCount','GcBHY':function(_0x349757,_0x46195b){return _0x349757+_0x46195b;},'wLQSK':'results','fpbes':'Workers\x20failed\x20to\x20exit\x20gracefully','wpNvI':function(_0x124061,_0x6f7a75){return _0x124061(_0x6f7a75);},'OwPtz':function(_0x45ec72,_0x526823){return _0x45ec72(_0x526823);},'khCVe':'test-file-start','nZyDw':_0x2b524f(0x1d1),'mELfh':'worker','aGLDK':_0x2b524f(0x1ea),'Uhwih':'pipe','UREbr':function(_0x20b849,_0x160b3d){return _0x20b849*_0x160b3d;},'aBiVO':_0x2b524f(0x1f1),'nIJpZ':_0x2b524f(0x20c),'LPKpX':function(_0x26230c,_0x453649){return _0x26230c(_0x453649);},'OlIVg':function(_0x5b438f,_0x4612a3){return _0x5b438f*_0x4612a3;}},_0x59bb42=_0x4f157f[_0x2b524f(0x206)],_0x56c65b={},_0x14ca30=new Worker(require[_0x2b524f(0x221)](_0x11940d[_0x2b524f(0x1ce)]),{'exposedMethods':[_0x11940d[_0x2b524f(0x1f4)]],'forkOptions':{'serialization':_0x11940d[_0x2b524f(0x20f)],'stdio':_0x11940d['Uhwih']},'idleMemoryLimit':undefined,'maxRetries':0x0,'numWorkers':_0x11940d['UREbr'](_0x4dc39d,0x1),'enableWorkerThreads':!![]}),_0x53e1a6=new Emittery();_0x53e1a6['on'](_0x11940d[_0x2b524f(0x21b)],_0x1587b4=>{const _0xf7e0f7=_0x2b524f;_0x56c65b[_0x1587b4[0x0]]?(_0x56c65b[_0x1587b4[0x0]][_0x11940d['Idwku']]=_0x11940d[_0xf7e0f7(0x1c5)](_0x56c65b[_0x1587b4[0x0]][_0x11940d['Idwku']],_0x1587b4[0x1][_0x11940d[_0xf7e0f7(0x1d5)]]),_0x56c65b[_0x1587b4[0x0]][_0x11940d['wLQSK']]=[..._0x56c65b[_0x1587b4[0x0]][_0x11940d[_0xf7e0f7(0x1fe)]],..._0x1587b4[0x1][_0x11940d['wLQSK']]]):_0x56c65b[_0x1587b4[0x0]]={'failureCount':_0x1587b4[0x1][_0x11940d[_0xf7e0f7(0x1d5)]],'results':[..._0x1587b4[0x1][_0x11940d['wLQSK']]]};}),_0x53e1a6['on'](_0x11940d[_0x2b524f(0x1ed)],_0x1719d2=>console['log'](_0x1719d2[0x1]));_0x14ca30[_0x2b524f(0x20b)]()&&_0x14ca30[_0x2b524f(0x20b)]()['pipe'](process[_0x2b524f(0x1ff)]);_0x14ca30[_0x2b524f(0x1eb)]()&&_0x14ca30[_0x2b524f(0x1eb)]()[_0x2b524f(0x1d9)](process[_0x2b524f(0x1d8)]);const _0x3d026d=async()=>{const _0x303917=_0x2b524f,{forceExited:_0x1090cd}=await _0x14ca30[_0x303917(0x1f5)]();_0x1090cd&&console[_0x303917(0x1f8)](_0x11940d[_0x303917(0x1e5)]);try{await TestHubHandler['stop']();}catch(_0x1c8066){_0x11940d[_0x303917(0x1e4)](debug,'Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20'+_0x1c8066);}_0x11940d[_0x303917(0x1cc)](_0x17546c,_0x56c65b);},_0x13d9c5=_0x11940d[_0x2b524f(0x1ca)](pLimit,_0x11940d[_0x2b524f(0x213)](_0x4dc39d,0x1)),_0x5e554f=_0x29bf09=>_0x13d9c5(async()=>{const _0x7781c5=_0x2b524f;await _0x53e1a6[_0x7781c5(0x1df)](_0x11940d['khCVe'],_0x29bf09);const _0x35bc57=_0x14ca30[_0x7781c5(0x1f3)](_0x29bf09,_0x59bb42);try{parentPort&&_0x35bc57[_0x7781c5(0x1c9)](_0x1d5311=>{const _0x555496=_0x7781c5;try{parentPort[_0x555496(0x21a)](_0x1d5311);}catch(_0x31f6f9){logger[_0x555496(0x21d)](_0x555496(0x1d4)+util[_0x555496(0x223)](_0x31f6f9));}});}catch(_0x13b32e){logger['debug']('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x7781c5(0x223)](_0x13b32e));}return _0x35bc57;});PerformanceTester['end'](PerformanceEvents[_0x2b524f(0x205)]),Promise[_0x2b524f(0x20d)](_0x2bad66[_0x2b524f(0x1e8)](_0x28121b=>_0x5e554f(_0x28121b)[_0x2b524f(0x1f0)](_0x2e20b5=>_0x53e1a6['emit'](_0x2b524f(0x1f1),[_0x28121b[_0x2b524f(0x1de)]['platform'],_0x2e20b5]),_0x1f5529=>_0x53e1a6[_0x2b524f(0x1df)](_0x2b524f(0x20c),[_0x28121b,_0x1f5529]))))[_0x2b524f(0x1f0)](_0x3d026d,_0x3d026d);}),exports[a57_0x3fa19a(0x200)]=(_0x36a177,_0xf8ad35,_0x16a5c4,_0x1cca49,_0x2ddbbb)=>{const _0x3a77e8=a57_0x3fa19a,_0x147653={'UuGNU':_0x3a77e8(0x217),'mZNbA':function(_0xf0f95,_0x12ccdc){return _0xf0f95(_0x12ccdc);},'CValr':_0x3a77e8(0x218),'eZEGL':_0x3a77e8(0x1d1),'VmbbH':_0x3a77e8(0x1dc),'uWfIa':_0x3a77e8(0x1ea),'hiLLY':_0x3a77e8(0x1d9),'gTugX':_0x3a77e8(0x1cb),'AaDQL':_0x3a77e8(0x1f2),'oJxSG':function(_0x203936,_0x5a0f7f){return _0x203936(_0x5a0f7f);}};return new Promise(_0x1d45d7=>{const _0x593a7b=_0x3a77e8,_0x3bd0fc={};_0x3bd0fc['tKiYf']=_0x147653[_0x593a7b(0x1fa)];const _0x49fab8=_0x3bd0fc,_0x856d1a=[],_0x750722=new Worker(require[_0x593a7b(0x221)](_0x147653[_0x593a7b(0x1ef)]),{'exposedMethods':[_0x147653[_0x593a7b(0x222)]],'forkOptions':{'serialization':_0x147653[_0x593a7b(0x219)],'stdio':_0x147653['hiLLY']},'numWorkers':_0x36a177['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x0}),_0x1bed29=new Emittery();_0x1bed29['on'](_0x147653['gTugX'],_0x3b6895=>{const _0x136f3d=_0x593a7b;_0x856d1a[_0x136f3d(0x1fc)]([_0x3b6895[0x0],_0x3b6895[0x1]]);}),_0x1bed29['on'](_0x147653['AaDQL'],_0x4450fc=>console['log'](_0x4450fc[0x1]));_0x750722[_0x593a7b(0x20b)]()&&_0x750722[_0x593a7b(0x20b)]()[_0x593a7b(0x1d9)](process[_0x593a7b(0x1ff)]);_0x750722[_0x593a7b(0x1eb)]()&&_0x750722[_0x593a7b(0x1eb)]()[_0x593a7b(0x1d9)](process[_0x593a7b(0x1d8)]);const _0x30ce7b=async()=>{const _0x4eb5ab=_0x593a7b,{forceExited:_0x274902}=await _0x750722[_0x4eb5ab(0x1f5)]();_0x274902&&console['error'](_0x147653[_0x4eb5ab(0x1f7)]),_0x147653[_0x4eb5ab(0x21c)](_0x1d45d7,_0x856d1a);},_0x15706=_0x147653[_0x593a7b(0x209)](pLimit,_0x36a177['length']||0x1),_0x1e2e23=(_0x4242a8,_0x3e9301)=>_0x15706(async()=>{const _0x3c6f1a=_0x593a7b;return await _0x1bed29['emit'](_0x49fab8[_0x3c6f1a(0x1e1)],_0x4242a8),_0xf8ad35[_0x3c6f1a(0x211)]=_0x16a5c4[_0x3c6f1a(0x1d7)][_0x3e9301],_0xf8ad35[_0x3c6f1a(0x202)]=_0x3e9301,_0x750722[_0x3c6f1a(0x1dc)](_0x4242a8,_0xf8ad35,_0x16a5c4,_0x1cca49,_0x2ddbbb);});Promise[_0x593a7b(0x20d)](_0x36a177[_0x593a7b(0x1e8)]((_0x2c4c3b,_0x4ee84a)=>_0x1e2e23(_0x2c4c3b,_0x4ee84a)[_0x593a7b(0x1f0)](_0x53f02b=>_0x1bed29[_0x593a7b(0x1df)](_0x593a7b(0x1cb),[_0x2c4c3b,_0x53f02b]),_0x58362d=>_0x1bed29['emit']('platform-run-failure',[_0x2c4c3b,_0x58362d]))))[_0x593a7b(0x1f0)](_0x30ce7b,_0x30ce7b);});},exports[a57_0x3fa19a(0x1db)]=(_0x2cc105,_0x2c2a46)=>new Promise(_0x158af8=>{const _0x3d5da4=a57_0x3fa19a,_0x5131ee={'ZrGRb':function(_0x149751,_0x5ab3a5){return _0x149751===_0x5ab3a5;},'PPHyc':function(_0x142542,_0x1bf4e7){return _0x142542!==_0x1bf4e7;},'KqvUi':_0x3d5da4(0x1ee),'wGLsU':_0x3d5da4(0x217),'rjEBD':function(_0x32d285,_0x25544d){return _0x32d285(_0x25544d);},'zqqZC':_0x3d5da4(0x1d1),'JHZcG':_0x3d5da4(0x20e),'NuVjw':_0x3d5da4(0x1ea),'zAvcF':_0x3d5da4(0x1d9),'reDeb':_0x3d5da4(0x1f1),'VYIcI':_0x3d5da4(0x20c),'sSkfw':function(_0x51e84f,_0x5627f6){return _0x51e84f(_0x5627f6);}},_0x11c44a={},_0xdb68d7=new Worker(require[_0x3d5da4(0x221)](_0x5131ee[_0x3d5da4(0x1dd)]),{'exposedMethods':[_0x5131ee[_0x3d5da4(0x1d6)]],'forkOptions':{'serialization':_0x5131ee['NuVjw'],'stdio':_0x5131ee[_0x3d5da4(0x1f9)]},'numWorkers':_0x2c2a46,'enableWorkerThreads':![],'maxRetries':0x0,'idleMemoryLimit':undefined}),_0x33f054=new Emittery();_0x33f054['on'](_0x5131ee['reDeb'],_0x2077e0=>{const _0x507d93=_0x3d5da4;_0x2077e0[0x0]&&logger[_0x507d93(0x1c6)]('Running\x20'+_0x2077e0[0x1]+_0x507d93(0x1d3),_0x2077e0[0x0]);}),_0x33f054['on'](_0x5131ee['VYIcI'],_0x5e9025=>{const _0x1317e0=_0x3d5da4;process[_0x1317e0(0x1e0)]=0x1;});_0xdb68d7['getStdout']()&&_0xdb68d7[_0x3d5da4(0x20b)]()[_0x3d5da4(0x1d9)](process[_0x3d5da4(0x1ff)]);_0xdb68d7[_0x3d5da4(0x1eb)]()&&_0xdb68d7[_0x3d5da4(0x1eb)]()[_0x3d5da4(0x1d9)](process[_0x3d5da4(0x1d8)]);const _0x57259f=async()=>{const _0xb5ef80=_0x3d5da4;let _0x301169=0x0;const _0x582340=_0xdb68d7[_0xb5ef80(0x21f)][_0xb5ef80(0x1e9)](),_0x2a1678=()=>{},_0x1cfb5d=_0x582340[_0xb5ef80(0x1e8)](async _0x5847cc=>{const _0x2102e9=_0xb5ef80,_0x16ea36={'iuoyh':function(_0x494d78,_0x105dd3){const _0x573f98=a57_0x1c7a;return _0x5131ee[_0x573f98(0x1d0)](_0x494d78,_0x105dd3);},'YtoIi':function(_0x4e1d14,_0x4a328e){const _0x3ab752=a57_0x1c7a;return _0x5131ee[_0x3ab752(0x1fd)](_0x4e1d14,_0x4a328e);}};_0x5847cc['send']([0x2,![]],_0x2a1678,_0x2a1678,_0x2a1678),_0x5847cc[_0x2102e9(0x212)]['on'](_0x5131ee[_0x2102e9(0x214)],_0x20ef84=>{const _0x3b2ab5=_0x2102e9;_0x16ea36[_0x3b2ab5(0x1c4)](_0x301169,0x0)&&_0x16ea36[_0x3b2ab5(0x1e7)](_0x20ef84,0x0)&&(_0x301169=_0x20ef84);}),await _0x5847cc[_0x2102e9(0x215)]();});await Promise[_0xb5ef80(0x20d)](_0x1cfb5d),process[_0xb5ef80(0x1e0)]=_0x301169;const {forceExited:_0x3e1564}=await _0xdb68d7[_0xb5ef80(0x1f5)]();_0x3e1564&&console[_0xb5ef80(0x1f8)](_0x5131ee[_0xb5ef80(0x204)]),_0x5131ee['rjEBD'](_0x158af8,_0x11c44a);},_0x1eb90b=_0x5131ee[_0x3d5da4(0x1da)](pLimit,_0x2c2a46),_0x3746e6=_0x125e62=>_0x1eb90b(async()=>{const _0x4a1e1c=_0x3d5da4;return _0xdb68d7[_0x4a1e1c(0x20e)](_0x125e62);});Promise['all'](_0x2cc105['map'](_0x20cd52=>_0x3746e6(_0x20cd52)[_0x3d5da4(0x1f0)](_0x24b7df=>_0x33f054[_0x3d5da4(0x1df)](_0x3d5da4(0x1f1),[_0x20cd52[_0x3d5da4(0x1de)][_0x3d5da4(0x20a)],_0x20cd52[_0x3d5da4(0x1de)][_0x3d5da4(0x201)]]),_0xce5e54=>_0x33f054['emit']('test-file-failure',[_0x20cd52,_0xce5e54]))))[_0x3d5da4(0x1f0)](_0x57259f,_0x57259f);});
|
|
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
|
-
|
|
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_0x15bb31=a60_0x439f;(function(_0x3deb40,_0x2d37b4){const _0x110dd8=a60_0x439f,_0x4b522b=_0x3deb40();while(!![]){try{const _0x4e0503=parseInt(_0x110dd8(0xf6))/0x1*(-parseInt(_0x110dd8(0xc1))/0x2)+-parseInt(_0x110dd8(0xfa))/0x3+-parseInt(_0x110dd8(0x105))/0x4*(-parseInt(_0x110dd8(0xd0))/0x5)+-parseInt(_0x110dd8(0xd2))/0x6+-parseInt(_0x110dd8(0xbe))/0x7*(-parseInt(_0x110dd8(0xb1))/0x8)+-parseInt(_0x110dd8(0xfb))/0x9+parseInt(_0x110dd8(0xd8))/0xa;if(_0x4e0503===_0x2d37b4)break;else _0x4b522b['push'](_0x4b522b['shift']());}catch(_0x532753){_0x4b522b['push'](_0x4b522b['shift']());}}}(a60_0x80f4,0x36ad4));const constants=require('./constants'),{nestedKeyValue}=require(a60_0x15bb31(0xd7)),getBrowserstackCLI=()=>{const _0x48c6d6=a60_0x15bb31,_0x3aed78={'srLeF':function(_0x4947a5,_0xdace8){return _0x4947a5(_0xdace8);},'qUlVM':_0x48c6d6(0x110)};return _0x3aed78[_0x48c6d6(0xef)](require,_0x3aed78[_0x48c6d6(0x10c)]);};class APIUtilityMethods{static[a60_0x15bb31(0xe0)](_0x3f2807){const _0x482313=a60_0x15bb31,_0x3237f5={'gvRMD':function(_0x22ad6b){return _0x22ad6b();},'DqJxL':function(_0x4851d8,_0x385018,_0x1a0d44){return _0x4851d8(_0x385018,_0x1a0d44);},'sFYWM':_0x482313(0x112),'QjgAf':_0x482313(0xf9),'icuox':_0x482313(0xb4),'fyBfW':function(_0x162f01,_0x4291b7){return _0x162f01===_0x4291b7;},'jryoJ':function(_0x14cdd7,_0xa7fbab){return _0x14cdd7+_0xa7fbab;}},_0x8721f0=_0x3237f5[_0x482313(0xc8)](getBrowserstackCLI),_0x347989=_0x3237f5[_0x482313(0xb2)](nestedKeyValue,_0x8721f0[_0x482313(0xbb)]()['getConfig'](),[_0x3237f5['sFYWM'],_0x3237f5[_0x482313(0x106)],_0x3237f5[_0x482313(0xac)]])||constants[_0x482313(0xf2)];if(!_0x3f2807||_0x3237f5[_0x482313(0xc7)](_0x3f2807,''))return _0x347989;const _0x4ff629=_0x347989[_0x482313(0xcd)]('/')?_0x347989:_0x3237f5[_0x482313(0xc4)](_0x347989,'/');return new URL(_0x3f2807,_0x4ff629)[_0x482313(0xf4)]();}static[a60_0x15bb31(0x108)](_0x5309bd){const _0x3053bc=a60_0x15bb31,_0x38a88c={'znMWc':function(_0x31b3ed){return _0x31b3ed();},'qbuxI':function(_0x41c12c,_0x4bc4c8,_0xff67fd){return _0x41c12c(_0x4bc4c8,_0xff67fd);},'qybkJ':_0x3053bc(0x112),'pleuB':_0x3053bc(0x109),'bbxuf':_0x3053bc(0xb4),'tbEsS':function(_0x45746a,_0x22ea83){return _0x45746a===_0x22ea83;},'sKwhp':function(_0x559ceb,_0x5a1bd5){return _0x559ceb+_0x5a1bd5;}},_0x356325=_0x38a88c[_0x3053bc(0xb9)](getBrowserstackCLI),_0x44cb9a=_0x38a88c[_0x3053bc(0xfd)](nestedKeyValue,_0x356325['getInstance']()['getConfig'](),[_0x38a88c['qybkJ'],_0x38a88c[_0x3053bc(0xb6)],_0x38a88c[_0x3053bc(0x10b)]])||constants['EDS_URL'];if(!_0x5309bd||_0x38a88c['tbEsS'](_0x5309bd,''))return _0x44cb9a;const _0x1a8813=_0x44cb9a[_0x3053bc(0xcd)]('/')?_0x44cb9a:_0x38a88c['sKwhp'](_0x44cb9a,'/');return new URL(_0x5309bd,_0x1a8813)['toString']();}static[a60_0x15bb31(0x103)](_0x10ccb3){const _0x6c1108=a60_0x15bb31,_0x18338c={'hXzNl':function(_0x2bb6fe){return _0x2bb6fe();},'HcJxJ':function(_0x208f4a,_0x16a9a1,_0xc3d8b3){return _0x208f4a(_0x16a9a1,_0xc3d8b3);},'GbfSK':_0x6c1108(0x112),'kfiXt':_0x6c1108(0xf9),'RzoQh':_0x6c1108(0xb4),'thuCN':function(_0x40d821,_0x2bdc36){return _0x40d821===_0x2bdc36;},'rqgkm':function(_0x2e16b8,_0xc30f89){return _0x2e16b8+_0xc30f89;}},_0x230df7=_0x18338c[_0x6c1108(0xbf)](getBrowserstackCLI),_0x16fdb5=_0x18338c['HcJxJ'](nestedKeyValue,_0x230df7[_0x6c1108(0xbb)]()['getConfig'](),[_0x18338c[_0x6c1108(0xea)],_0x18338c['kfiXt'],_0x18338c[_0x6c1108(0xce)]])||constants['BROWSERSTACK_API_URL'];if(!_0x10ccb3||_0x18338c[_0x6c1108(0x111)](_0x10ccb3,''))return _0x16fdb5;const _0x108fe6=_0x16fdb5[_0x6c1108(0xcd)]('/')?_0x16fdb5:_0x18338c[_0x6c1108(0xd4)](_0x16fdb5,'/');return new URL(_0x10ccb3,_0x108fe6)[_0x6c1108(0xf4)]();}static[a60_0x15bb31(0xb5)](_0x3d0756){const _0x859ed1=a60_0x15bb31,_0x588b49={'kVzCX':function(_0x53fef8){return _0x53fef8();},'qaoBQ':function(_0x1e5e08,_0x449c0f,_0x105a42){return _0x1e5e08(_0x449c0f,_0x105a42);},'mWdqu':_0x859ed1(0x112),'DYYxv':_0x859ed1(0xe6),'yLDYt':_0x859ed1(0xb4),'ZuitS':function(_0x1d1d0c,_0x395614){return _0x1d1d0c===_0x395614;},'VlPaj':function(_0x4520a6,_0x345d93){return _0x4520a6+_0x345d93;}},_0x475517=_0x588b49[_0x859ed1(0xc9)](getBrowserstackCLI),_0xcfee5b=_0x588b49['qaoBQ'](nestedKeyValue,_0x475517[_0x859ed1(0xbb)]()['getConfig'](),[_0x588b49[_0x859ed1(0x107)],_0x588b49[_0x859ed1(0xe5)],_0x588b49[_0x859ed1(0xe7)]])||constants[_0x859ed1(0xf2)];if(!_0x3d0756||_0x588b49[_0x859ed1(0xd6)](_0x3d0756,''))return _0xcfee5b;const _0x27b1b3=_0xcfee5b[_0x859ed1(0xcd)]('/')?_0xcfee5b:_0x588b49[_0x859ed1(0xd5)](_0xcfee5b,'/');return new URL(_0x3d0756,_0x27b1b3)[_0x859ed1(0xf4)]();}static[a60_0x15bb31(0xbc)](_0x1effd2){const _0x19d806=a60_0x15bb31,_0xeb7288={'aQwsu':function(_0x477687){return _0x477687();},'LmPgy':function(_0x570da5,_0x575405,_0x4ebd5c){return _0x570da5(_0x575405,_0x4ebd5c);},'UIvOq':_0x19d806(0x112),'FMQnp':'automate','uoQaX':'api','UgxNi':function(_0x31a769,_0x44b0fa){return _0x31a769===_0x44b0fa;},'rqXGG':function(_0x387f1b,_0x5d6c2b){return _0x387f1b+_0x5d6c2b;}},_0x1eaa5e=_0xeb7288[_0x19d806(0xcb)](getBrowserstackCLI),_0x59753e=_0xeb7288[_0x19d806(0xb0)](nestedKeyValue,_0x1eaa5e['getInstance']()[_0x19d806(0x10d)](),[_0xeb7288[_0x19d806(0xc5)],_0xeb7288[_0x19d806(0x102)],_0xeb7288[_0x19d806(0xba)]])||constants[_0x19d806(0xf2)];if(!_0x1effd2||_0xeb7288[_0x19d806(0xec)](_0x1effd2,''))return _0x59753e;const _0x48d2e9=_0x59753e[_0x19d806(0xcd)]('/')?_0x59753e:_0xeb7288[_0x19d806(0xcf)](_0x59753e,'/');return new URL(_0x1effd2,_0x48d2e9)[_0x19d806(0xf4)]();}static[a60_0x15bb31(0xfe)](_0x46c230){const _0x4eef95=a60_0x15bb31,_0x3f2ce6={'fWhHG':function(_0x3ce3ea){return _0x3ce3ea();},'PCZOU':function(_0x4cb7e2,_0x3d4daa,_0x46550b){return _0x4cb7e2(_0x3d4daa,_0x46550b);},'kGBdS':_0x4eef95(0x112),'Ietyi':_0x4eef95(0xe6),'OXKOO':_0x4eef95(0xb4),'KEZUC':function(_0x1e6891,_0x28a0ce){return _0x1e6891===_0x28a0ce;},'cXtwf':function(_0x55363d,_0xfe8741){return _0x55363d+_0xfe8741;}},_0x45a1ad=_0x3f2ce6[_0x4eef95(0xe9)](getBrowserstackCLI),_0x2900a3=_0x3f2ce6[_0x4eef95(0xf5)](nestedKeyValue,_0x45a1ad['getInstance']()[_0x4eef95(0x10d)](),[_0x3f2ce6['kGBdS'],_0x3f2ce6[_0x4eef95(0x10a)],_0x3f2ce6[_0x4eef95(0xd9)]])||constants[_0x4eef95(0xf2)];if(!_0x46c230||_0x3f2ce6[_0x4eef95(0xb7)](_0x46c230,''))return _0x2900a3;const _0x4250d2=_0x2900a3[_0x4eef95(0xcd)]('/')?_0x2900a3:_0x3f2ce6['cXtwf'](_0x2900a3,'/');return new URL(_0x46c230,_0x4250d2)['toString']();}static['getAutomateSessionsListAPIUrl'](_0x33c8d8){const _0x48b0bc=a60_0x15bb31,_0x629ce5={'zCCHc':function(_0x2d6443){return _0x2d6443();},'MvzSh':function(_0x3304fa,_0x38f555,_0x1b4e32){return _0x3304fa(_0x38f555,_0x1b4e32);},'CCkpJ':_0x48b0bc(0x112),'aUtyD':_0x48b0bc(0xf9),'toqmk':_0x48b0bc(0xb4),'InhYp':function(_0x198a34,_0x4eb9fb){return _0x198a34===_0x4eb9fb;},'vTrvV':function(_0x394f2c,_0x486258){return _0x394f2c+_0x486258;}},_0x3f3057=_0x629ce5[_0x48b0bc(0xe3)](getBrowserstackCLI),_0x9aa212=_0x629ce5[_0x48b0bc(0x104)](nestedKeyValue,_0x3f3057[_0x48b0bc(0xbb)]()['getConfig'](),[_0x629ce5[_0x48b0bc(0xfc)],_0x629ce5['aUtyD'],_0x629ce5[_0x48b0bc(0xc3)]])||constants[_0x48b0bc(0xf2)];if(!_0x33c8d8||_0x629ce5[_0x48b0bc(0xdc)](_0x33c8d8,''))return _0x9aa212;const _0x5c281f=_0x9aa212['endsWith']('/')?_0x9aa212:_0x629ce5[_0x48b0bc(0xd3)](_0x9aa212,'/');return new URL(_0x33c8d8,_0x5c281f)[_0x48b0bc(0xf4)]()[_0x48b0bc(0xdd)](/^https?:\/\//,'');}static[a60_0x15bb31(0xc6)](_0x4514e6){const _0x1ab4a6=a60_0x15bb31,_0x4a175b={'yzmCM':function(_0x4e7a11){return _0x4e7a11();},'aTNUF':function(_0x508f9c,_0x3c5608,_0x18c840){return _0x508f9c(_0x3c5608,_0x18c840);},'cDCTp':'apis','TFTnh':_0x1ab4a6(0xe6),'ACtTy':_0x1ab4a6(0xb4),'dfWKB':function(_0x17ad5f,_0x20f259){return _0x17ad5f===_0x20f259;},'GsoDf':function(_0x27d5ff,_0xe2ae7d){return _0x27d5ff+_0xe2ae7d;}},_0x1f30e2=_0x4a175b[_0x1ab4a6(0xc2)](getBrowserstackCLI),_0x212a2b=_0x4a175b['aTNUF'](nestedKeyValue,_0x1f30e2[_0x1ab4a6(0xbb)]()[_0x1ab4a6(0x10d)](),[_0x4a175b[_0x1ab4a6(0xf3)],_0x4a175b[_0x1ab4a6(0xda)],_0x4a175b[_0x1ab4a6(0xf7)]])||constants[_0x1ab4a6(0xf8)];if(!_0x4514e6||_0x4a175b[_0x1ab4a6(0xaf)](_0x4514e6,''))return _0x212a2b;const _0xdcf3e4=_0x212a2b[_0x1ab4a6(0xcd)]('/')?_0x212a2b:_0x4a175b[_0x1ab4a6(0xe8)](_0x212a2b,'/');return new URL(_0x4514e6,_0xdcf3e4)[_0x1ab4a6(0xf4)]()['replace'](/^https?:\/\//,'');}static[a60_0x15bb31(0xc0)](_0x6153c7){const _0x1ab0c4=a60_0x15bb31,_0x1ee9b2={'KkjZt':function(_0x2be1dd){return _0x2be1dd();},'NWnon':function(_0x126fec,_0x1123ca,_0x5684fb){return _0x126fec(_0x1123ca,_0x5684fb);},'Qqqhc':_0x1ab0c4(0x112),'QzmVq':_0x1ab0c4(0x10e),'LYyeX':_0x1ab0c4(0xe2),'gOcoX':function(_0x151a4f,_0x19049b){return _0x151a4f===_0x19049b;},'MgWal':function(_0x5e6f0d,_0xa85bf9){return _0x5e6f0d+_0xa85bf9;}},_0xf0e232=_0x1ee9b2['KkjZt'](getBrowserstackCLI),_0x3f83b3=_0x1ee9b2['NWnon'](nestedKeyValue,_0xf0e232['getInstance']()[_0x1ab0c4(0x10d)](),[_0x1ee9b2[_0x1ab0c4(0xf0)],_0x1ee9b2[_0x1ab0c4(0xee)],_0x1ee9b2[_0x1ab0c4(0x114)]])||constants[_0x1ab0c4(0xff)];if(!_0x6153c7||_0x1ee9b2[_0x1ab0c4(0xb8)](_0x6153c7,''))return _0x3f83b3;const _0x7e8d4e=_0x3f83b3[_0x1ab0c4(0xcd)]('/')?_0x3f83b3:_0x1ee9b2[_0x1ab0c4(0xd1)](_0x3f83b3,'/');return new URL(_0x6153c7,_0x7e8d4e)['toString']();}static[a60_0x15bb31(0x115)](_0x58fbae){const _0x3c8f9b=a60_0x15bb31,_0x305939={'YewcG':function(_0x59c0f0){return _0x59c0f0();},'EcEkR':function(_0x55e98c,_0x59e9f7,_0x3da16f){return _0x55e98c(_0x59e9f7,_0x3da16f);},'oYakQ':_0x3c8f9b(0x112),'tcygW':_0x3c8f9b(0xf9),'edySe':_0x3c8f9b(0x101),'KPJgS':_0x3c8f9b(0xad),'LNiJp':function(_0x5d679e,_0x19bfc0){return _0x5d679e===_0x19bfc0;},'yItbZ':function(_0x53931b,_0x3ab4a8){return _0x53931b+_0x3ab4a8;},'BYPgy':_0x3c8f9b(0xf1)},_0x4118e1=_0x305939[_0x3c8f9b(0xbd)](getBrowserstackCLI),_0x108f28=_0x305939[_0x3c8f9b(0xcc)](nestedKeyValue,_0x4118e1['getInstance']()['getConfig'](),[_0x305939['oYakQ'],_0x305939['tcygW'],_0x305939['edySe']]),_0x43a329=(_0x108f28?_0x108f28[_0x3c8f9b(0xdd)](/^https:/,_0x305939[_0x3c8f9b(0xae)]):null)||constants[_0x3c8f9b(0xca)];let _0x519e30;if(!_0x58fbae||_0x305939['LNiJp'](_0x58fbae,''))_0x519e30=_0x43a329;else{const _0x569ea2=_0x43a329[_0x3c8f9b(0xcd)]('/')?_0x43a329:_0x305939['yItbZ'](_0x43a329,'/');_0x519e30=new URL(_0x58fbae,_0x569ea2)[_0x3c8f9b(0xf4)]();}return!_0x519e30[_0x3c8f9b(0xcd)](_0x305939['BYPgy'])&&(_0x519e30+=_0x305939[_0x3c8f9b(0xdb)]),_0x519e30;}static[a60_0x15bb31(0xeb)](_0x51bc78){const _0x2f785e=a60_0x15bb31,_0x4871dd={'xCdFg':function(_0xf78b6b){return _0xf78b6b();},'giclr':function(_0x3f3e7f,_0x28a411,_0x298cca){return _0x3f3e7f(_0x28a411,_0x298cca);},'lCYYX':_0x2f785e(0x112),'SZzRU':_0x2f785e(0xf9),'hxvno':_0x2f785e(0x101),'MIcQT':_0x2f785e(0xad),'jjvra':function(_0x5dc4d1,_0x48bde5){return _0x5dc4d1===_0x48bde5;},'GuAwn':function(_0xfdc660,_0x36a35b){return _0xfdc660+_0x36a35b;},'ZneGC':_0x2f785e(0xde)},_0xe066f8=_0x4871dd[_0x2f785e(0xb3)](getBrowserstackCLI),_0xaafcd7=_0x4871dd[_0x2f785e(0x113)](nestedKeyValue,_0xe066f8[_0x2f785e(0xbb)]()[_0x2f785e(0x10d)](),[_0x4871dd[_0x2f785e(0xed)],_0x4871dd['SZzRU'],_0x4871dd[_0x2f785e(0x10f)]]),_0x7365f=(_0xaafcd7?_0xaafcd7[_0x2f785e(0xdd)](/^https:/,_0x4871dd[_0x2f785e(0xe1)]):null)||constants[_0x2f785e(0xe4)];let _0x5cd9f6;if(!_0x51bc78||_0x4871dd['jjvra'](_0x51bc78,''))_0x5cd9f6=_0x7365f;else{const _0x2046e5=_0x7365f['endsWith']('/')?_0x7365f:_0x4871dd[_0x2f785e(0xdf)](_0x7365f,'/');_0x5cd9f6=new URL(_0x51bc78,_0x2046e5)[_0x2f785e(0xf4)]();}return!_0x5cd9f6[_0x2f785e(0xcd)](_0x4871dd['ZneGC'])&&(_0x5cd9f6+=_0x4871dd[_0x2f785e(0x100)]),_0x5cd9f6;}}module['exports']=APIUtilityMethods;function a60_0x439f(_0x138774,_0x30ce81){const _0x80f439=a60_0x80f4();return a60_0x439f=function(_0x439fb8,_0x26572a){_0x439fb8=_0x439fb8-0xac;let _0x5d0977=_0x80f439[_0x439fb8];return _0x5d0977;},a60_0x439f(_0x138774,_0x30ce81);}function a60_0x80f4(){const _0xb54dab=['getInstance','getAutomateSessionNameAPIUrl','YewcG','7hetJPs','hXzNl','getAutoCaptureLogsAPIUrl','778792cZfEBc','yzmCM','toqmk','jryoJ','UIvOq','getAppAutomateSessionsListAPIUrl','fyBfW','gvRMD','kVzCX','PLAYWRIGHT_HUB_URL','aQwsu','EcEkR','endsWith','RzoQh','rqXGG','98865YMBJUr','MgWal','897936NvwMau','vTrvV','rqgkm','VlPaj','ZuitS','./sharedUtils','9708530QrKHlM','OXKOO','TFTnh','BYPgy','InhYp','replace','/puppeteer?caps=','GuAwn','getBStackAPIUrl','MIcQT','upload','zCCHc','PUPPETEER_HUB_URL','DYYxv','appAutomate','yLDYt','GsoDf','fWhHG','GbfSK','getPuppeteerHubUrl','UgxNi','lCYYX','QzmVq','srLeF','Qqqhc','/playwright?caps=','BROWSERSTACK_API_URL','cDCTp','toString','PCZOU','1SEavVx','ACtTy','APP_UPLOAD_URL','automate','1181754IHEyQP','1282554PraEMt','CCkpJ','qbuxI','getAppAutomateSessionNameAPIUrl','OBSERVABILITY_UPLOAD_URL','ZneGC','cdp','FMQnp','getAutomateSessionStatusAPIUrl','MvzSh','4hyncAQ','QjgAf','mWdqu','getEdsInstrumentationAPIUrl','edsInstrumentation','Ietyi','bbxuf','qUlVM','getConfig','observability','hxvno','../v2/browserstackCLI','thuCN','apis','giclr','LYyeX','getPlaywrightHubUrl','icuox','wss:','KPJgS','dfWKB','LmPgy','2470448KcnKZs','DqJxL','xCdFg','api','getAppAutomateSessionStatusAPIUrl','pleuB','KEZUC','gOcoX','znMWc','uoQaX'];a60_0x80f4=function(){return _0xb54dab;};return a60_0x80f4();}
|
|
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
|
-
function a61_0x3595(_0x211657,_0x43991a){const _0x4d183e=a61_0x4d18();return a61_0x3595=function(_0x3595f4,_0x1742f8){_0x3595f4=_0x3595f4-0x7f;let _0x53f9fc=_0x4d183e[_0x3595f4];return _0x53f9fc;},a61_0x3595(_0x211657,_0x43991a);}const a61_0x7cef52=a61_0x3595;(function(_0x7ee6f4,_0x2bbcf3){const _0x4461e7=a61_0x3595,_0xc6a978=_0x7ee6f4();while(!![]){try{const _0x464d3c=parseInt(_0x4461e7(0xb3))/0x1*(-parseInt(_0x4461e7(0xae))/0x2)+-parseInt(_0x4461e7(0xcd))/0x3+parseInt(_0x4461e7(0xdc))/0x4+parseInt(_0x4461e7(0xab))/0x5+parseInt(_0x4461e7(0xda))/0x6*(parseInt(_0x4461e7(0xbf))/0x7)+-parseInt(_0x4461e7(0xc1))/0x8*(-parseInt(_0x4461e7(0xd5))/0x9)+parseInt(_0x4461e7(0xd3))/0xa*(-parseInt(_0x4461e7(0xa1))/0xb);if(_0x464d3c===_0x2bbcf3)break;else _0xc6a978['push'](_0xc6a978['shift']());}catch(_0xcdce7b){_0xc6a978['push'](_0xc6a978['shift']());}}}(a61_0x4d18,0x9ca48));const logger=require('../../helpers/logger')[a61_0x7cef52(0x8c)],BrowserstackCLI=require(a61_0x7cef52(0xc8)),GrpcClient=require(a61_0x7cef52(0xcc)),constants=require(a61_0x7cef52(0xc5));class ClientTroubleShootingService{static [a61_0x7cef52(0x8e)]=null;static [a61_0x7cef52(0x97)]=new Set();static async['getErrorDetails'](_0x3956a4){const _0x24b218=a61_0x7cef52,_0x1e721f={};_0x1e721f['bOVwl']=function(_0x10324f,_0x291b8b){return _0x10324f!==_0x291b8b;};const _0x5d6df8=_0x1e721f;try{if(BrowserstackCLI[_0x24b218(0xb6)]()[_0x24b218(0xd6)]()){const _0x189445=await GrpcClient[_0x24b218(0xb6)]()[_0x24b218(0xd9)](_0x3956a4);if(_0x5d6df8[_0x24b218(0xa3)](_0x189445,null)&&_0x189445['getSuccess']())return{'errorCode':_0x189445['getErrorCode'](),'errorMessage':_0x189445['getErrorMessage']()};return{};}return{};}catch(_0x2f3058){return this['logError'](_0x24b218(0x96)+_0x3956a4+':',_0x2f3058),{};}}static async[a61_0x7cef52(0xdf)](){const _0x1d9d69=a61_0x7cef52,_0x24c40f={};_0x24c40f['tZHua']=function(_0x794106,_0x9cabaf){return _0x794106!==_0x9cabaf;},_0x24c40f[_0x1d9d69(0x92)]=_0x1d9d69(0xca),_0x24c40f[_0x1d9d69(0x8d)]='Error\x20in\x20getting\x20aggregated\x20error\x20codes:';const _0x235348=_0x24c40f;try{if(BrowserstackCLI[_0x1d9d69(0xb6)]()[_0x1d9d69(0xd6)]()){const _0x12116f=await GrpcClient['getInstance']()['getAggregatedClientTroubleshootingErrors']();if(_0x235348[_0x1d9d69(0xc2)](_0x12116f,null)&&_0x12116f[_0x1d9d69(0xa4)]()){const _0x20469f=Buffer[_0x1d9d69(0xaa)](_0x12116f[_0x1d9d69(0xd0)](),_0x235348[_0x1d9d69(0x92)])[_0x1d9d69(0x94)](),_0x4a1154=_0x20469f?JSON[_0x1d9d69(0x8f)](_0x20469f):[],_0x31bbae=_0x12116f[_0x1d9d69(0x7f)](),_0x4d9eee=_0x12116f['getFinalErrorMessage'](),_0x5589a8=Buffer[_0x1d9d69(0xaa)](_0x12116f[_0x1d9d69(0xb4)](),_0x235348[_0x1d9d69(0x92)])[_0x1d9d69(0x94)](),_0x258b65=_0x5589a8?JSON[_0x1d9d69(0x8f)](_0x5589a8):[],_0x68ec33={};return _0x68ec33[_0x1d9d69(0xc7)]=_0x4a1154,_0x68ec33[_0x1d9d69(0x95)]=_0x31bbae,_0x68ec33[_0x1d9d69(0x84)]=_0x4d9eee,_0x68ec33[_0x1d9d69(0x82)]=_0x258b65,_0x68ec33;}const _0x4aa116={};return _0x4aa116[_0x1d9d69(0xc7)]=[],_0x4aa116[_0x1d9d69(0x95)]='',_0x4aa116['finalErrorMessage']='',_0x4aa116['errorCodesOccurredInCLI']=[],_0x4aa116;}const _0x2047d0={};return _0x2047d0['errorCodes']=[],_0x2047d0['documentationLink']='',_0x2047d0['finalErrorMessage']='',_0x2047d0[_0x1d9d69(0x82)]=[],_0x2047d0;}catch(_0x3ebf38){this[_0x1d9d69(0x81)](_0x235348[_0x1d9d69(0x8d)],_0x3ebf38);const _0x26eb49={};return _0x26eb49[_0x1d9d69(0xc7)]=[],_0x26eb49[_0x1d9d69(0x95)]='',_0x26eb49[_0x1d9d69(0x84)]='',_0x26eb49[_0x1d9d69(0x82)]=[],_0x26eb49;}}static[a61_0x7cef52(0x80)](_0x7e5206,_0x4e9351){const _0x2be3ee=a61_0x7cef52;logger[_0x2be3ee(0x9f)](_0x7e5206+':\x20'+_0x4e9351);}static[a61_0x7cef52(0x8b)](_0xb2357c){const _0x300784=a61_0x7cef52,_0x43512c={};_0x43512c['xgBOq']=function(_0x59b603,_0x7dbfdd){return _0x59b603!=_0x7dbfdd;},_0x43512c[_0x300784(0x99)]=function(_0x3ba900,_0x14297e){return _0x3ba900!=_0x14297e;},_0x43512c[_0x300784(0xbb)]=function(_0x368b88,_0x52d285){return _0x368b88>_0x52d285;},_0x43512c[_0x300784(0xc9)]=function(_0x2d6174,_0x3147c4){return _0x2d6174!=_0x3147c4;};const _0x3947a4=_0x43512c,_0x52903c=[];if(_0x3947a4['xgBOq'](_0xb2357c,null)&&_0x3947a4['OAyqm'](_0xb2357c['errorCodesOccurredInCLI'],null)&&_0x3947a4[_0x300784(0xbb)](_0xb2357c['errorCodesOccurredInCLI'][_0x300784(0x9d)],0x0))for(const _0x5a5679 of _0xb2357c[_0x300784(0x82)]){_0x3947a4[_0x300784(0xc9)](_0x5a5679[_0x300784(0xd4)],null)&&_0x3947a4['aczPF'](_0x5a5679[_0x300784(0x89)],null)&&(_0x52903c[_0x300784(0xa9)](_0x5a5679['errorCode']),this[_0x300784(0x80)](_0x5a5679['errorCode'],_0x5a5679['errorMessage']));}return _0x52903c;}static[a61_0x7cef52(0x9a)](){const _0x458729=a61_0x7cef52;return this[_0x458729(0x8e)];}static[a61_0x7cef52(0x81)](_0x26cc49,_0x4bcaa4){const _0x4b7315=a61_0x7cef52,_0x2033a5={};_0x2033a5[_0x4b7315(0xdd)]=function(_0x367779,_0x14e047){return _0x367779===_0x14e047;},_0x2033a5[_0x4b7315(0xa0)]=_0x4b7315(0x87);const _0x569573=_0x2033a5;if(_0x569573[_0x4b7315(0xdd)](typeof _0x4bcaa4,_0x569573[_0x4b7315(0xa0)]))try{logger[_0x4b7315(0xb9)](_0x4b7315(0xad)+_0x26cc49+'\x20'+JSON['stringify'](_0x4bcaa4));}catch(_0x1862d3){logger[_0x4b7315(0xb9)](_0x4b7315(0xad)+_0x26cc49+'\x20'+_0x4bcaa4);}else logger[_0x4b7315(0xb9)](_0x4b7315(0xad)+_0x26cc49+'\x20'+_0x4bcaa4);}static async[a61_0x7cef52(0xd2)](_0x9a930d){const _0x26616f=a61_0x7cef52,_0x210842={};_0x210842[_0x26616f(0xd7)]=_0x26616f(0xc4),_0x210842[_0x26616f(0xb0)]=function(_0x62861f,_0x2313be){return _0x62861f===_0x2313be;},_0x210842['IfHTs']=_0x26616f(0xb1),_0x210842[_0x26616f(0xd1)]=_0x26616f(0x85);const _0x2c08af=_0x210842,_0x3dbc49=await this[_0x26616f(0xbe)](_0x2c08af['oMUDj']);if(!_0x3dbc49||_0x2c08af['gFHbs'](Object[_0x26616f(0xb2)](_0x3dbc49)[_0x26616f(0x9d)],0x0)){this[_0x26616f(0x81)](_0x2c08af[_0x26616f(0x9c)],_0x3dbc49);return;}this[_0x26616f(0x80)](_0x3dbc49[_0x26616f(0xd4)],_0x3dbc49[_0x26616f(0x89)][_0x26616f(0xe3)](_0x2c08af['BkTky'],_0x9a930d));}static async[a61_0x7cef52(0xba)](){const _0x3bed9d=a61_0x7cef52,_0x186030={};_0x186030['stwYr']='Session\x20Linking\x20Issue',_0x186030[_0x3bed9d(0x83)]=function(_0x4e200f,_0x401a9c){return _0x4e200f===_0x401a9c;},_0x186030[_0x3bed9d(0xc6)]='Session\x20Linking\x20Issue\x20details\x20not\x20found';const _0x26ca77=_0x186030,_0x461c4c=await this['getErrorDetails'](_0x26ca77[_0x3bed9d(0xce)]);if(!_0x461c4c||_0x26ca77[_0x3bed9d(0x83)](Object[_0x3bed9d(0xb2)](_0x461c4c)[_0x3bed9d(0x9d)],0x0)){this['logError'](_0x26ca77['WThew'],_0x461c4c);return;}this['logSituation'](_0x461c4c[_0x3bed9d(0xd4)],_0x461c4c['errorMessage']);}static async[a61_0x7cef52(0x90)](){const _0x8d9e09=a61_0x7cef52,_0x244102={};_0x244102[_0x8d9e09(0xc0)]=_0x8d9e09(0xa6),_0x244102[_0x8d9e09(0xc3)]=function(_0x23713b,_0x3ce20e){return _0x23713b===_0x3ce20e;},_0x244102['lrbhl']='Connectivity\x20Issue\x20details\x20not\x20found';const _0x33705d=_0x244102,_0x5f0c41=await this['getErrorDetails'](_0x33705d[_0x8d9e09(0xc0)]);if(!_0x5f0c41||_0x33705d[_0x8d9e09(0xc3)](Object[_0x8d9e09(0xb2)](_0x5f0c41)[_0x8d9e09(0x9d)],0x0)){this[_0x8d9e09(0x81)](_0x33705d[_0x8d9e09(0xa2)],_0x5f0c41);return;}this[_0x8d9e09(0x80)](_0x5f0c41['errorCode'],_0x5f0c41[_0x8d9e09(0x89)]);}static async[a61_0x7cef52(0xbd)](){const _0x3ceae2=a61_0x7cef52,_0x1eda9b={};_0x1eda9b['TElwC']=_0x3ceae2(0x93),_0x1eda9b[_0x3ceae2(0xcb)]=function(_0x4547a4,_0x4d45d8){return _0x4547a4===_0x4d45d8;},_0x1eda9b[_0x3ceae2(0xa5)]=_0x3ceae2(0xe1);const _0x57c2f6=_0x1eda9b,_0x32bd0b=await this[_0x3ceae2(0xbe)](_0x57c2f6[_0x3ceae2(0xbc)]);if(!_0x32bd0b||_0x57c2f6[_0x3ceae2(0xcb)](Object['keys'](_0x32bd0b)[_0x3ceae2(0x9d)],0x0)){this['logError'](_0x57c2f6[_0x3ceae2(0xa5)],_0x32bd0b);return;}this[_0x3ceae2(0x80)](_0x32bd0b['errorCode'],_0x32bd0b[_0x3ceae2(0x89)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x4b201a=a61_0x7cef52,_0x52ca22={};_0x52ca22['jHvek']=_0x4b201a(0xac),_0x52ca22[_0x4b201a(0xb5)]=function(_0x4974c2,_0x4f5fc5){return _0x4974c2===_0x4f5fc5;},_0x52ca22['pGmRA']=_0x4b201a(0x9b);const _0x33ae63=_0x52ca22,_0x34e9a6=constants[_0x4b201a(0xe2)][_0x33ae63[_0x4b201a(0x88)]];if(!_0x34e9a6||_0x33ae63[_0x4b201a(0xb5)](Object['keys'](_0x34e9a6)[_0x4b201a(0x9d)],0x0)){this[_0x4b201a(0x81)](_0x33ae63[_0x4b201a(0x91)],_0x34e9a6);return;}this[_0x4b201a(0x97)][_0x4b201a(0x9e)](_0x34e9a6[0x0]),this['logSituation'](_0x34e9a6[0x0],_0x34e9a6[0x1]);}static async['reportConflictingEnvVarIssue'](_0x3ba052){const _0x3dae6a=a61_0x7cef52,_0x2c00bf={};_0x2c00bf['kxgIZ']='conflicting\x20env\x20var\x20detected',_0x2c00bf[_0x3dae6a(0xd8)]=function(_0x38516f,_0x3084c5){return _0x38516f===_0x3084c5;},_0x2c00bf['YKpSs']=_0x3dae6a(0xb7),_0x2c00bf[_0x3dae6a(0xe0)]=_0x3dae6a(0xde);const _0x2c7ba9=_0x2c00bf,_0x468e56=await this['getErrorDetails'](_0x2c7ba9['kxgIZ']);if(!_0x468e56||_0x2c7ba9[_0x3dae6a(0xd8)](Object['keys'](_0x468e56)[_0x3dae6a(0x9d)],0x0)){this[_0x3dae6a(0x81)](_0x2c7ba9['YKpSs'],_0x468e56);return;}const _0x380e4f=_0x468e56[_0x3dae6a(0x89)][_0x3dae6a(0xe3)](_0x2c7ba9['QhiAw'],_0x3ba052);this[_0x3dae6a(0x80)](_0x468e56[_0x3dae6a(0xd4)],_0x380e4f);}static async[a61_0x7cef52(0x98)](){const _0x17aa23=a61_0x7cef52,_0x51b287={};_0x51b287[_0x17aa23(0xdb)]=function(_0x481515,_0x26850a){return _0x481515>_0x26850a;},_0x51b287[_0x17aa23(0xcf)]=function(_0x1c18b3,_0xb40dc4){return _0x1c18b3>_0xb40dc4;},_0x51b287[_0x17aa23(0xa8)]=_0x17aa23(0xaf),_0x51b287[_0x17aa23(0xa7)]=_0x17aa23(0x86);const _0x1eb0c5=_0x51b287,_0x580f9d=await this[_0x17aa23(0xdf)](),_0x237855=this[_0x17aa23(0x8b)](_0x580f9d),_0x4c87e8=Array[_0x17aa23(0x8a)](_0x580f9d[_0x17aa23(0xc7)])?_0x580f9d[_0x17aa23(0xc7)]:[],_0x44c5b0=_0x1eb0c5[_0x17aa23(0xdb)](this[_0x17aa23(0x97)]['size'],0x0)?Array[_0x17aa23(0xaa)](this[_0x17aa23(0x97)]):[],_0x3c6a6f=new Set([..._0x4c87e8,..._0x237855,..._0x44c5b0]),_0x154ffd=Array[_0x17aa23(0xaa)](_0x3c6a6f);if(_0x1eb0c5[_0x17aa23(0xcf)](_0x154ffd[_0x17aa23(0x9d)],0x0)){const _0x39b0e8=_0x580f9d[_0x17aa23(0x84)][_0x17aa23(0xe3)](_0x1eb0c5[_0x17aa23(0xa8)],_0x154ffd[_0x17aa23(0xb8)](',\x20'))[_0x17aa23(0xe3)](_0x1eb0c5[_0x17aa23(0xa7)],_0x580f9d[_0x17aa23(0x95)]);logger[_0x17aa23(0x9f)](_0x39b0e8),this[_0x17aa23(0x8e)]=_0x154ffd;}}}module['exports']=ClientTroubleShootingService;function a61_0x4d18(){const _0x418878=['reportConnectivityIssue','pGmRA','qeqNR','ssl\x20cert\x20issue','toString','documentationLink','Error\x20in\x20getting\x20error\x20details\x20for\x20','errorCodesOccurredWhenCLINotRunning','reportFinalDetectionState','OAyqm','getCachedErrorCodes','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','IfHTs','length','add','warn','ulkOd','165QpvWnG','lrbhl','bOVwl','getSuccess','yoZXO','browserstack\x20cloud\x20not\x20reachable','gDVFp','zswzf','push','from','4593450AtPEzO','.browserstack\x20folder\x20not\x20accessible','[ClientTroubleShootingService]\x20','2uTYivK','{ERROR_CODES}','gFHbs','Process\x20Interruption\x20details\x20not\x20found:','keys','721537aEmURA','getErrorCodesOccurredInCli','zrlNY','getInstance','Conflicting\x20Env\x20Var\x20details\x20not\x20found','join','error','reportSessionLinkingIssue','llnmB','TElwC','reportSSLCertIssue','getErrorDetails','511jcIuRt','oEozb','6856UObQzP','tZHua','ACeGw','Process\x20Interruption','./constants','WThew','errorCodes','../v2/browserstackCLI','aczPF','base64','DlFhd','../v2/grpcClient','2117031QPGCdB','stwYr','qEkrX','getErrorCodes','BkTky','reportProcessInterruptionSituation','116410NzhfGV','errorCode','7398DafJtJ','isRunning','oMUDj','BraAi','reportClientTroubleshootingError','22158AAVHpA','HsZld','1402816iPftGJ','sBJsq','{ENV_VAR}','getAggregatedErrorCodes','QhiAw','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.','CLIENT_TROUBLESHOOTING_HASH','replace','getDocumentationLink','logSituation','logError','errorCodesOccurredInCLI','BHIqA','finalErrorMessage','{SIGNAL}','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','object','jHvek','errorMessage','isArray','checkForErrorsOccuredInCLI','winstonLogger','piJdS','cachedErrorCodes','parse'];a61_0x4d18=function(){return _0x418878;};return a61_0x4d18();}
|
|
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;
|