browserstack-node-sdk 1.51.0 → 1.52.1

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.
Files changed (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +4 -3
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x6b66aa=a15_0xe220;function a15_0x41b6(){const _0x599f5e=['GET','EPdYs','password','name','allGrids','running','XPclT','builder','exit','CNEll','56HEuOpb','all-grids','JrFAF','4809RUcxLs','iaLWZ','JAAUo','bstackAccesskey','/packages/cli/get-grids','help','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','list-grids-called','grid','ZjrKE','8334iDFPxS','BvgBN','423348XoQGju','../../utils/instrumentationUtils','grids','Failed\x20to\x20list\x20resources!\x20Error:\x20','init-not-called','epilogue','push','parse','username','ERROR','DYVJi','stack','FJFIw','error','argv','INFO','server-error','xZayr','bstackUsername','284739PGYhMM','LpOms','89rhsdKh','grid-name','log','znFhd','vTfxj','ntcpp','buGiU','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','HNuuB','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','options','YMeLb','statusCode','OFvCe','queued','3910AZxKSQ','requestId','command','NvUuG','dzRtA','grid-id','zYjgA','clusterName','boolean','Browserstack','status','974645hDuYTf','list','sOgYz','VsqFs','stringify','qWUrf','FgSfJ','AbvLh','\x0aFound\x20the\x20following\x20grids:\x0a','table','got','424580JcksLA','4450crVSCs'];a15_0x41b6=function(){return _0x599f5e;};return a15_0x41b6();}function a15_0xe220(_0x282f21,_0x181ffd){const _0x41b6ca=a15_0x41b6();return a15_0xe220=function(_0xe22098,_0x68a3fb){_0xe22098=_0xe22098-0x8f;let _0x13d0b2=_0x41b6ca[_0xe22098];return _0x13d0b2;},a15_0xe220(_0x282f21,_0x181ffd);}(function(_0xb8572e,_0x179083){const _0x6a799e=a15_0xe220,_0x446718=_0xb8572e();while(!![]){try{const _0x590eda=parseInt(_0x6a799e(0xd5))/0x1*(parseInt(_0x6a799e(0x8f))/0x2)+-parseInt(_0x6a799e(0xd3))/0x3+-parseInt(_0x6a799e(0xa5))/0x4+-parseInt(_0x6a799e(0x9a))/0x5+-parseInt(_0x6a799e(0xc0))/0x6+-parseInt(_0x6a799e(0xb4))/0x7*(parseInt(_0x6a799e(0xb1))/0x8)+-parseInt(_0x6a799e(0xbe))/0x9*(-parseInt(_0x6a799e(0xa6))/0xa);if(_0x590eda===_0x179083)break;else _0x446718['push'](_0x446718['shift']());}catch(_0x116e2c){_0x446718['push'](_0x446718['shift']());}}}(a15_0x41b6,0x1c017));const fs=require('fs'),got=require(a15_0x6b66aa(0xa4)),{table}=require(a15_0x6b66aa(0xa3)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x6b66aa(0xc1));exports[a15_0x6b66aa(0x91)]=a15_0x6b66aa(0xc2),exports[a15_0x6b66aa(0xdf)]=a15_0x6b66aa(0xdc),exports[a15_0x6b66aa(0xae)]=function(_0x17f690){const _0x518f9a=a15_0x6b66aa,_0xaa1cc9={};_0xaa1cc9[_0x518f9a(0x92)]=_0x518f9a(0xdd),_0xaa1cc9['YMeLb']=_0x518f9a(0x97),_0xaa1cc9[_0x518f9a(0xda)]=_0x518f9a(0xb9);const _0xbf60c1=_0xaa1cc9,_0x56d03d={};_0x56d03d['description']=_0xbf60c1[_0x518f9a(0x92)],_0x56d03d['type']=_0xbf60c1[_0x518f9a(0xe2)];const _0x4a1082={};return _0x4a1082[_0x518f9a(0xb2)]=_0x56d03d,_0x17f690['usage'](HELP_HEADER_MESSAGE[_0x518f9a(0x9b)][_0x518f9a(0xbc)])[_0x518f9a(0xc5)](HELP_FOOTER_MESSAGE)[_0x518f9a(0xe1)](_0x4a1082)[_0x518f9a(0xb9)](_0xbf60c1[_0x518f9a(0xda)])[_0x518f9a(0xce)];},exports['handler']=async function(_0x285df9){const _0x5c3a49=a15_0x6b66aa,_0xafa94a={'BvgBN':function(_0x1edcab){return _0x1edcab();},'vTfxj':_0x5c3a49(0xba),'zYjgA':function(_0xf23b3b,_0x4ea219,_0x223db4,_0x19ac11,_0x1e86e5,_0x42bf1a,_0x3298f3){return _0xf23b3b(_0x4ea219,_0x223db4,_0x19ac11,_0x1e86e5,_0x42bf1a,_0x3298f3);},'znFhd':_0x5c3a49(0xbb),'svcmo':_0x5c3a49(0xc4),'JAAUo':function(_0x42dab7){return _0x42dab7();},'LpOms':_0x5c3a49(0xa7),'DYVJi':function(_0x13cf59,_0x4f0e31,_0x545fa1){return _0x13cf59(_0x4f0e31,_0x545fa1);},'ZjrKE':function(_0x504509,_0x34fdf8,_0x422f2d){return _0x504509(_0x34fdf8,_0x422f2d);},'AbvLh':function(_0x407fcd,_0x59125f){return _0x407fcd!==_0x59125f;},'qWUrf':function(_0x247c8a,_0x405948){return _0x247c8a!==_0x405948;},'JrFAF':function(_0x2cc5d7,_0x1feaa0){return _0x2cc5d7===_0x1feaa0;},'bGOtD':_0x5c3a49(0xa2),'HNuuB':_0x5c3a49(0x94),'EUyte':_0x5c3a49(0xd6),'iaLWZ':'status','xZayr':'running','buGiU':_0x5c3a49(0xe5),'CNEll':'cluster-name','dzRtA':function(_0x1877a6,_0x4218d9){return _0x1877a6(_0x4218d9);},'VsqFs':function(_0x20ba4a,_0x18189a){return _0x20ba4a===_0x18189a;},'OFvCe':_0x5c3a49(0xe0),'EPdYs':'unauthorised','FJFIw':function(_0x4b452e,_0x172901,_0x30dd00,_0x26ffbb,_0x4ce9da,_0x256a19,_0x498480){return _0x4b452e(_0x172901,_0x30dd00,_0x26ffbb,_0x4ce9da,_0x256a19,_0x498480);},'sOgYz':_0x5c3a49(0xd0),'FgSfJ':function(_0x3e7ab9,_0x4833fc,_0x587148,_0x13974a,_0x1b3a26,_0xbcd22f,_0x2c702c){return _0x3e7ab9(_0x4833fc,_0x587148,_0x13974a,_0x1b3a26,_0xbcd22f,_0x2c702c);},'XPclT':'unknown-error'};try{global_registry[_0x5c3a49(0x90)]=_0xafa94a[_0x5c3a49(0xbf)](uuidv4);!fs['existsSync'](_0xafa94a['BvgBN'](getCredentialsPath))&&(console[_0x5c3a49(0xcd)](_0xafa94a[_0x5c3a49(0xd9)]),await _0xafa94a[_0x5c3a49(0x95)](sendInstrumentationEvent,_0x285df9,_0xafa94a[_0x5c3a49(0xd8)],messageTypes[_0x5c3a49(0xc9)],_0xafa94a['svcmo'],null,_0x285df9),process[_0x5c3a49(0xaf)](0x1));const _0x45a46c=JSON[_0x5c3a49(0xc7)](fs['readFileSync'](_0xafa94a[_0x5c3a49(0xb6)](getCredentialsPath)));let _0x16321c='https://'+AG_API_URL+_0x5c3a49(0xb8);_0x285df9[_0x5c3a49(0xab)]&&(_0x16321c='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0x2ffa6c={'method':_0xafa94a[_0x5c3a49(0xd4)],'headers':_0xafa94a[_0x5c3a49(0xca)](getAuthHeader,_0x45a46c[_0x5c3a49(0x98)]['username'],_0x45a46c[_0x5c3a49(0x98)][_0x5c3a49(0xa9)]),'throwHttpErrors':![]};global_registry[_0x5c3a49(0xd2)]=_0x45a46c[_0x5c3a49(0x98)][_0x5c3a49(0xc8)],global_registry[_0x5c3a49(0xb7)]=_0x45a46c[_0x5c3a49(0x98)]['password'],_0xafa94a[_0x5c3a49(0x95)](sendInstrumentationEvent,_0x285df9,_0xafa94a[_0x5c3a49(0xd8)],messageTypes[_0x5c3a49(0xcf)],null,null,_0x285df9);const _0x1b77e4=await _0xafa94a[_0x5c3a49(0xbd)](got,_0x16321c,_0x2ffa6c);if(_0xafa94a[_0x5c3a49(0xa1)](_0x1b77e4,null)&&_0xafa94a[_0x5c3a49(0x9f)](_0x1b77e4,undefined)&&_0xafa94a[_0x5c3a49(0xb3)](_0x1b77e4[_0x5c3a49(0xe3)],0xc8)){const _0x5c5859=JSON[_0x5c3a49(0xc7)](_0x1b77e4['body']);console[_0x5c3a49(0xd7)](_0xafa94a['bGOtD']);const _0x1fad88=[];_0x1fad88[_0x5c3a49(0xc6)]([_0xafa94a[_0x5c3a49(0xde)],_0xafa94a['EUyte'],_0xafa94a[_0x5c3a49(0xb5)],_0xafa94a[_0x5c3a49(0xd1)],_0xafa94a[_0x5c3a49(0xdb)],_0xafa94a[_0x5c3a49(0xb0)]]),_0x5c5859['forEach'](_0x5a4ffc=>{const _0x24c68f=_0x5c3a49;_0x1fad88[_0x24c68f(0xc6)]([_0x5a4ffc['id'],_0x5a4ffc[_0x24c68f(0xaa)],_0x5a4ffc[_0x24c68f(0x99)],_0x5a4ffc[_0x24c68f(0xac)],_0x5a4ffc['queued'],_0x5a4ffc[_0x24c68f(0x96)]]);}),console[_0x5c3a49(0xd7)](_0xafa94a[_0x5c3a49(0x93)](table,_0x1fad88)),process[_0x5c3a49(0xaf)](0x0);}_0xafa94a[_0x5c3a49(0x9d)](_0x1b77e4['statusCode'],0x191)&&(console[_0x5c3a49(0xcd)](_0xafa94a[_0x5c3a49(0xe4)]),await _0xafa94a[_0x5c3a49(0x95)](sendInstrumentationEvent,_0x285df9,_0xafa94a[_0x5c3a49(0xd8)],messageTypes['ERROR'],_0xafa94a[_0x5c3a49(0xa8)],null,_0x285df9),process[_0x5c3a49(0xaf)](0x1)),console[_0x5c3a49(0xcd)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x5c3a49(0x9e)](_0x1b77e4)),await _0xafa94a[_0x5c3a49(0xcc)](sendInstrumentationEvent,_0x285df9,_0xafa94a[_0x5c3a49(0xd8)],messageTypes[_0x5c3a49(0xc9)],_0xafa94a[_0x5c3a49(0x9c)],_0x1b77e4,_0x285df9),process[_0x5c3a49(0xaf)](0x1);}catch(_0x5ca9a3){console[_0x5c3a49(0xcd)](_0x5c3a49(0xc3)+_0x5ca9a3[_0x5c3a49(0xcb)]),await _0xafa94a[_0x5c3a49(0xa0)](sendInstrumentationEvent,_0x285df9,_0xafa94a[_0x5c3a49(0xd8)],messageTypes[_0x5c3a49(0xc9)],_0xafa94a[_0x5c3a49(0xad)],_0x5ca9a3,_0x285df9),process[_0x5c3a49(0xaf)](0x1);}};
1
+ function a15_0x3d64(_0x23bb11,_0x3b9bab){const _0x1d9b52=a15_0x1d9b();return a15_0x3d64=function(_0x3d643f,_0x1848be){_0x3d643f=_0x3d643f-0x1e8;let _0x5bde63=_0x1d9b52[_0x3d643f];return _0x5bde63;},a15_0x3d64(_0x23bb11,_0x3b9bab);}const a15_0x59a238=a15_0x3d64;(function(_0x42e752,_0x4c2687){const _0x593494=a15_0x3d64,_0x1ed1f3=_0x42e752();while(!![]){try{const _0x563bad=parseInt(_0x593494(0x1e9))/0x1*(-parseInt(_0x593494(0x225))/0x2)+parseInt(_0x593494(0x1f1))/0x3*(-parseInt(_0x593494(0x205))/0x4)+parseInt(_0x593494(0x202))/0x5+-parseInt(_0x593494(0x23b))/0x6*(-parseInt(_0x593494(0x1ef))/0x7)+-parseInt(_0x593494(0x233))/0x8*(-parseInt(_0x593494(0x20e))/0x9)+-parseInt(_0x593494(0x1f3))/0xa+parseInt(_0x593494(0x21a))/0xb*(parseInt(_0x593494(0x238))/0xc);if(_0x563bad===_0x4c2687)break;else _0x1ed1f3['push'](_0x1ed1f3['shift']());}catch(_0x37e0cd){_0x1ed1f3['push'](_0x1ed1f3['shift']());}}}(a15_0x1d9b,0xb0b36));const fs=require('fs'),got=require(a15_0x59a238(0x22a)),{table}=require(a15_0x59a238(0x229)),{v4:uuidv4}=require(a15_0x59a238(0x1f7)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x59a238(0x23a));exports[a15_0x59a238(0x223)]=a15_0x59a238(0x1ea),exports[a15_0x59a238(0x214)]=a15_0x59a238(0x210),exports[a15_0x59a238(0x206)]=function(_0x33fba0){const _0x2c04ae=a15_0x59a238,_0xccedfb={};_0xccedfb[_0x2c04ae(0x235)]=_0x2c04ae(0x224),_0xccedfb[_0x2c04ae(0x217)]=_0x2c04ae(0x1fb),_0xccedfb['OapYq']=_0x2c04ae(0x234);const _0x5ad769=_0xccedfb,_0x436f1c={};_0x436f1c[_0x2c04ae(0x200)]=_0x5ad769[_0x2c04ae(0x235)],_0x436f1c['type']=_0x5ad769[_0x2c04ae(0x217)];const _0xd24640={};return _0xd24640[_0x2c04ae(0x216)]=_0x436f1c,_0x33fba0[_0x2c04ae(0x20c)](HELP_HEADER_MESSAGE[_0x2c04ae(0x239)][_0x2c04ae(0x1f6)])[_0x2c04ae(0x204)](HELP_FOOTER_MESSAGE)['options'](_0xd24640)[_0x2c04ae(0x234)](_0x5ad769['OapYq'])['argv'];},exports[a15_0x59a238(0x1e8)]=async function(_0x35267b){const _0x2a079c=a15_0x59a238,_0x308635={'ETvPd':function(_0x539b07){return _0x539b07();},'HXYBU':function(_0x43ab21){return _0x43ab21();},'GqOeY':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','OrsPw':function(_0x57c320,_0x28e2dd,_0x1e8ea5,_0x64571,_0x507ebb,_0xd569ab,_0x3716f8){return _0x57c320(_0x28e2dd,_0x1e8ea5,_0x64571,_0x507ebb,_0xd569ab,_0x3716f8);},'SFiCO':_0x2a079c(0x211),'Pbiir':'init-not-called','timuo':function(_0x26545d){return _0x26545d();},'jYeuq':_0x2a079c(0x1f9),'citDS':function(_0xc8601,_0x78b807,_0xd95596){return _0xc8601(_0x78b807,_0xd95596);},'qCNKc':function(_0x26bdd5,_0xce25a2,_0x56af54,_0x37c0ed,_0x1aca49,_0xcaedef,_0x1f13b8){return _0x26bdd5(_0xce25a2,_0x56af54,_0x37c0ed,_0x1aca49,_0xcaedef,_0x1f13b8);},'NNRnZ':function(_0x30a975,_0xead10e){return _0x30a975!==_0xead10e;},'pJlCi':function(_0x244c04,_0xa105aa){return _0x244c04!==_0xa105aa;},'ARQuL':function(_0x2e2691,_0x8a5cd4){return _0x2e2691===_0x8a5cd4;},'SIEic':_0x2a079c(0x226),'BKoDE':'grid-id','HkvlX':_0x2a079c(0x1ec),'EVNmL':_0x2a079c(0x1fd),'cgQGU':_0x2a079c(0x218),'TxIat':_0x2a079c(0x203),'yhFDZ':'cluster-name','xxBNf':function(_0x5959cc,_0x13a299){return _0x5959cc(_0x13a299);},'SKwBj':function(_0x551faa,_0x595289){return _0x551faa===_0x595289;},'JZnjZ':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gmWvY':_0x2a079c(0x215),'ZqIRt':function(_0x348333,_0x35d0be,_0x1d8420,_0x36001f,_0x48f3dd,_0x5be1d0,_0x3fec2b){return _0x348333(_0x35d0be,_0x1d8420,_0x36001f,_0x48f3dd,_0x5be1d0,_0x3fec2b);},'hJPFF':'server-error','pVVuP':_0x2a079c(0x220)};try{global_registry['requestId']=_0x308635['ETvPd'](uuidv4);!fs[_0x2a079c(0x232)](_0x308635[_0x2a079c(0x1f5)](getCredentialsPath))&&(console['error'](_0x308635['GqOeY']),await _0x308635[_0x2a079c(0x1f8)](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes[_0x2a079c(0x236)],_0x308635[_0x2a079c(0x20d)],null,_0x35267b),process['exit'](0x1));const _0x5873d2=JSON['parse'](fs[_0x2a079c(0x1ed)](_0x308635['timuo'](getCredentialsPath)));let _0x1f0aba=_0x2a079c(0x21b)+AG_API_URL+_0x2a079c(0x213);_0x35267b[_0x2a079c(0x222)]&&(_0x1f0aba='https://'+AG_API_URL+_0x2a079c(0x1fc));const _0x4ca323={'method':_0x308635['jYeuq'],'headers':_0x308635[_0x2a079c(0x1f4)](getAuthHeader,_0x5873d2[_0x2a079c(0x1fe)][_0x2a079c(0x201)],_0x5873d2[_0x2a079c(0x1fe)][_0x2a079c(0x1eb)]),'throwHttpErrors':![]};global_registry[_0x2a079c(0x21f)]=_0x5873d2[_0x2a079c(0x1fe)][_0x2a079c(0x201)],global_registry['bstackAccesskey']=_0x5873d2['Browserstack'][_0x2a079c(0x1eb)],_0x308635[_0x2a079c(0x20f)](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes['INFO'],null,null,_0x35267b);const _0x1b5765=await _0x308635['citDS'](got,_0x1f0aba,_0x4ca323);if(_0x308635[_0x2a079c(0x227)](_0x1b5765,null)&&_0x308635[_0x2a079c(0x22b)](_0x1b5765,undefined)&&_0x308635['ARQuL'](_0x1b5765[_0x2a079c(0x209)],0xc8)){const _0x85abd4=JSON['parse'](_0x1b5765[_0x2a079c(0x237)]);console[_0x2a079c(0x21d)](_0x308635[_0x2a079c(0x212)]);const _0x488eb1=[];_0x488eb1[_0x2a079c(0x1f0)]([_0x308635[_0x2a079c(0x1fa)],_0x308635[_0x2a079c(0x22f)],_0x308635[_0x2a079c(0x230)],_0x308635['cgQGU'],_0x308635[_0x2a079c(0x22e)],_0x308635['yhFDZ']]),_0x85abd4[_0x2a079c(0x22d)](_0x3eb1fe=>{const _0x382331=_0x2a079c;_0x488eb1[_0x382331(0x1f0)]([_0x3eb1fe['id'],_0x3eb1fe[_0x382331(0x22c)],_0x3eb1fe[_0x382331(0x1fd)],_0x3eb1fe[_0x382331(0x218)],_0x3eb1fe[_0x382331(0x203)],_0x3eb1fe[_0x382331(0x221)]]);}),console['log'](_0x308635[_0x2a079c(0x1ff)](table,_0x488eb1)),process[_0x2a079c(0x21c)](0x0);}_0x308635['SKwBj'](_0x1b5765['statusCode'],0x191)&&(console[_0x2a079c(0x231)](_0x308635[_0x2a079c(0x1ee)]),await _0x308635['OrsPw'](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes[_0x2a079c(0x236)],_0x308635[_0x2a079c(0x219)],null,_0x35267b),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2a079c(0x20a)](_0x1b5765)),await _0x308635[_0x2a079c(0x1f2)](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes[_0x2a079c(0x236)],_0x308635[_0x2a079c(0x228)],_0x1b5765,_0x35267b),process['exit'](0x1);}catch(_0x2af570){console[_0x2a079c(0x231)](_0x2a079c(0x207)+_0x2af570[_0x2a079c(0x208)]),await _0x308635[_0x2a079c(0x1f2)](sendInstrumentationEvent,_0x35267b,_0x308635[_0x2a079c(0x20b)],messageTypes[_0x2a079c(0x236)],_0x308635[_0x2a079c(0x21e)],_0x2af570,_0x35267b),process['exit'](0x1);}};function a15_0x1d9b(){const _0x1cd1e6=['17328REWxuK','list','../../utils/instrumentationUtils','6PZaEdK','handler','171230dqLCGn','grids','password','grid-name','readFileSync','JZnjZ','5321561OVpGeP','push','606171RVVGtB','ZqIRt','12927230kOHbHP','citDS','HXYBU','grid','uuid','OrsPw','GET','BKoDE','boolean','/packages/cli/get-all-grids','status','Browserstack','xxBNf','description','username','2712590WTiQtM','queued','epilogue','8LBEAHs','builder','Failed\x20to\x20list\x20resources!\x20Error:\x20','stack','statusCode','stringify','SFiCO','usage','Pbiir','954YdAKYZ','qCNKc','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','list-grids-called','SIEic','/packages/cli/get-grids','desc','unauthorised','all-grids','jRkaa','running','gmWvY','8745OWUxVg','https://','exit','log','pVVuP','bstackUsername','unknown-error','clusterName','allGrids','command','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','6EUKaXt','\x0aFound\x20the\x20following\x20grids:\x0a','NNRnZ','hJPFF','table','got','pJlCi','name','forEach','TxIat','HkvlX','EVNmL','error','existsSync','36496SCfKgz','help','QiWgX','ERROR','body'];a15_0x1d9b=function(){return _0x1cd1e6;};return a15_0x1d9b();}
@@ -1 +1 @@
1
- const a16_0x42feb9=a16_0x58bc;(function(_0x44fad2,_0x44590a){const _0xa38e5c=a16_0x58bc,_0x47d040=_0x44fad2();while(!![]){try{const _0x521124=-parseInt(_0xa38e5c(0x81))/0x1*(-parseInt(_0xa38e5c(0x78))/0x2)+parseInt(_0xa38e5c(0x7a))/0x3*(parseInt(_0xa38e5c(0x82))/0x4)+parseInt(_0xa38e5c(0x74))/0x5*(-parseInt(_0xa38e5c(0x7b))/0x6)+-parseInt(_0xa38e5c(0x89))/0x7+-parseInt(_0xa38e5c(0x77))/0x8+-parseInt(_0xa38e5c(0x86))/0x9*(parseInt(_0xa38e5c(0x73))/0xa)+parseInt(_0xa38e5c(0x75))/0xb;if(_0x521124===_0x44590a)break;else _0x47d040['push'](_0x47d040['shift']());}catch(_0x1c4554){_0x47d040['push'](_0x47d040['shift']());}}}(a16_0x54da,0x1ced9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x42feb9(0x84));function a16_0x58bc(_0x176574,_0xa4cdff){const _0x54da5c=a16_0x54da();return a16_0x58bc=function(_0x58bc89,_0xd3b784){_0x58bc89=_0x58bc89-0x72;let _0x22d9fc=_0x54da5c[_0x58bc89];return _0x22d9fc;},a16_0x58bc(_0x176574,_0xa4cdff);}exports['command']=a16_0x42feb9(0x87),exports[a16_0x42feb9(0x7f)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x23fa87){const _0x442f10=a16_0x42feb9,_0x12f8d1={};_0x12f8d1[_0x442f10(0x80)]='precheck_commands',_0x12f8d1[_0x442f10(0x7e)]=_0x442f10(0x79);const _0x57e2c3=_0x12f8d1;return _0x23fa87[_0x442f10(0x83)](HELP_HEADER_MESSAGE[_0x442f10(0x7c)])[_0x442f10(0x88)](HELP_FOOTER_MESSAGE)[_0x442f10(0x85)](_0x57e2c3[_0x442f10(0x80)])['demandCommand']()[_0x442f10(0x7d)]()[_0x442f10(0x76)]()[_0x442f10(0x79)](_0x57e2c3[_0x442f10(0x7e)]);},exports[a16_0x42feb9(0x72)]=function(_0x25e510){};function a16_0x54da(){const _0x7eb045=['handler','253030IzUmfx','115VVqaav','4016716vjarbx','strict','271368JUqPxf','385010BrRArc','help','439677WXutgj','50766qzyKVu','pre_check','recommendCommands','yzoBI','desc','iUQAD','1aPsVIy','4QrFfTR','usage','../config/constants','commandDir','81bOGCMu','pre-check','epilogue','906360hAhSSj'];a16_0x54da=function(){return _0x7eb045;};return a16_0x54da();}
1
+ const a16_0x1dd80e=a16_0x40b9;(function(_0x538393,_0x20c081){const _0x56e05c=a16_0x40b9,_0x42f628=_0x538393();while(!![]){try{const _0x2a0c3a=-parseInt(_0x56e05c(0x17e))/0x1+parseInt(_0x56e05c(0x187))/0x2+-parseInt(_0x56e05c(0x17f))/0x3+parseInt(_0x56e05c(0x186))/0x4+-parseInt(_0x56e05c(0x178))/0x5*(parseInt(_0x56e05c(0x17b))/0x6)+-parseInt(_0x56e05c(0x17a))/0x7+parseInt(_0x56e05c(0x18b))/0x8;if(_0x2a0c3a===_0x20c081)break;else _0x42f628['push'](_0x42f628['shift']());}catch(_0x53bbc4){_0x42f628['push'](_0x42f628['shift']());}}}(a16_0x19bc,0x37e19));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1dd80e(0x184));function a16_0x40b9(_0x2db480,_0x21e8cc){const _0x19bc31=a16_0x19bc();return a16_0x40b9=function(_0x40b988,_0x2c7b90){_0x40b988=_0x40b988-0x177;let _0x3c2d18=_0x19bc31[_0x40b988];return _0x3c2d18;},a16_0x40b9(_0x2db480,_0x21e8cc);}function a16_0x19bc(){const _0x1bc42c=['2161684UFYxXI','2466372TDcjPN','demandCommand','recommendCommands','6862nSVwUb','451890odoUAq','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','epilogue','strict','LFLxy','../config/constants','usage','233820SIUDNW','796334fDszlt','handler','commandDir','builder','5197064VskAlA','PRBOI','5bqawHv','precheck_commands'];a16_0x19bc=function(){return _0x1bc42c;};return a16_0x19bc();}exports['command']='pre-check',exports['desc']=a16_0x1dd80e(0x180),exports[a16_0x1dd80e(0x18a)]=function(_0x40f705){const _0x471064=a16_0x1dd80e,_0xc0d789={};_0xc0d789[_0x471064(0x177)]=_0x471064(0x179),_0xc0d789[_0x471064(0x183)]='help';const _0x1ed5a3=_0xc0d789;return _0x40f705[_0x471064(0x185)](HELP_HEADER_MESSAGE['pre_check'])[_0x471064(0x181)](HELP_FOOTER_MESSAGE)[_0x471064(0x189)](_0x1ed5a3[_0x471064(0x177)])[_0x471064(0x17c)]()[_0x471064(0x17d)]()[_0x471064(0x182)]()['help'](_0x1ed5a3[_0x471064(0x183)]);},exports[a16_0x1dd80e(0x188)]=function(_0x5906c8){};
@@ -1 +1 @@
1
- const a17_0x80756a=a17_0x2c8f;(function(_0x418d9d,_0x4b3094){const _0x64d073=a17_0x2c8f,_0x361e67=_0x418d9d();while(!![]){try{const _0x58807c=parseInt(_0x64d073(0x1cc))/0x1+parseInt(_0x64d073(0x14c))/0x2+-parseInt(_0x64d073(0xf6))/0x3*(parseInt(_0x64d073(0x15d))/0x4)+parseInt(_0x64d073(0x129))/0x5*(-parseInt(_0x64d073(0x108))/0x6)+-parseInt(_0x64d073(0x1d3))/0x7+-parseInt(_0x64d073(0x1c5))/0x8*(-parseInt(_0x64d073(0x158))/0x9)+-parseInt(_0x64d073(0x17c))/0xa;if(_0x58807c===_0x4b3094)break;else _0x361e67['push'](_0x361e67['shift']());}catch(_0x58bcaf){_0x361e67['push'](_0x361e67['shift']());}}}(a17_0x54d4,0x1aae8));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require('reconnecting-websocket'),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x80756a(0x1a3)),{logger}=require(a17_0x80756a(0x1c0)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x80756a(0x106)),{getCloudProviderObjectWithOutInit}=require(a17_0x80756a(0x109)),webSocketUtils=require(a17_0x80756a(0x18b)),{sendInstrumentationEvent}=require(a17_0x80756a(0x157));exports['command']=a17_0x80756a(0x1bd),exports[a17_0x80756a(0x11a)]=a17_0x80756a(0x1c6),exports['builder']=function(_0x4c2f13){const _0x4845ac=a17_0x80756a,_0x5a0253={};_0x5a0253[_0x4845ac(0x1bc)]=_0x4845ac(0x144),_0x5a0253[_0x4845ac(0x16c)]='string',_0x5a0253[_0x4845ac(0xf7)]=_0x4845ac(0x1b2),_0x5a0253[_0x4845ac(0x165)]=_0x4845ac(0x19b),_0x5a0253[_0x4845ac(0x150)]=_0x4845ac(0x151),_0x5a0253[_0x4845ac(0x139)]=_0x4845ac(0x14e);const _0x128a9e=_0x5a0253,_0x3af6e4={};_0x3af6e4[_0x4845ac(0x121)]=_0x128a9e[_0x4845ac(0x1bc)],_0x3af6e4['type']=_0x128a9e[_0x4845ac(0x16c)];const _0x1cd221={};_0x1cd221['description']=_0x128a9e[_0x4845ac(0xf7)],_0x1cd221[_0x4845ac(0x10b)]=_0x128a9e[_0x4845ac(0x16c)];const _0x37b92b={};_0x37b92b[_0x4845ac(0x121)]=_0x128a9e[_0x4845ac(0x165)],_0x37b92b[_0x4845ac(0x10b)]=_0x128a9e[_0x4845ac(0x16c)];const _0x1aec16={};_0x1aec16[_0x4845ac(0x121)]=_0x128a9e[_0x4845ac(0x150)],_0x1aec16[_0x4845ac(0x10b)]=_0x128a9e['Offqa'];const _0xbf1bad={};return _0xbf1bad[_0x4845ac(0x16d)]=_0x3af6e4,_0xbf1bad[_0x4845ac(0x10d)]=_0x1cd221,_0xbf1bad['region']=_0x37b92b,_0xbf1bad['grid-profile']=_0x1aec16,_0x4c2f13[_0x4845ac(0x1b3)](HELP_HEADER_MESSAGE[_0x4845ac(0x11c)])[_0x4845ac(0x188)](HELP_FOOTER_MESSAGE)[_0x4845ac(0x1af)](_0xbf1bad)['help'](_0x128a9e[_0x4845ac(0x139)])[_0x4845ac(0x1cd)];};async function inputValidation(_0x3f0264,_0x188338){const _0x2d2aeb=a17_0x80756a,_0x47c3eb={'IQrXm':_0x2d2aeb(0x133),'NXUEF':_0x2d2aeb(0xfe),'LJQOW':_0x2d2aeb(0x124),'uyNeT':_0x2d2aeb(0x16d),'AlGdD':'error','xQIHJ':_0x2d2aeb(0x144),'dtpFK':_0x2d2aeb(0x117),'ahrDr':_0x2d2aeb(0x1b2),'bnxsy':_0x2d2aeb(0x19b),'cCLbM':_0x2d2aeb(0x151),'lxCfV':_0x2d2aeb(0x14e),'XvAMN':function(_0x486cbd,_0x40fb2c){return _0x486cbd+_0x40fb2c;},'KYvHq':_0x2d2aeb(0x1c7),'MaeWk':_0x2d2aeb(0x13b),'MMyCB':function(_0x3579f7,_0x32044d){return _0x3579f7||_0x32044d;},'NaXHH':_0x2d2aeb(0x152),'PeBcj':_0x2d2aeb(0x19a),'aWUMc':_0x2d2aeb(0x113),'QlfUL':'cloud-provider','GlAzn':function(_0x4a33d5,_0x54edff){return _0x4a33d5!==_0x54edff;},'SpHqS':_0x2d2aeb(0x163),'JRFAh':_0x2d2aeb(0xe2),'NvoKG':function(_0x20c977,_0x34f178){return _0x20c977===_0x34f178;},'syTuC':_0x2d2aeb(0x103),'sJecM':_0x2d2aeb(0x166),'zLNDj':'sOvPB','YbPYB':function(_0x4f200b,_0x4a362d){return _0x4f200b!==_0x4a362d;},'RgMNZ':_0x2d2aeb(0x17d),'dRCAt':_0x2d2aeb(0x193),'rNtPJ':function(_0x5780ff,_0x372ca8){return _0x5780ff>_0x372ca8;},'cOlaw':_0x2d2aeb(0x123),'vJeDm':function(_0x21d890,_0x4c0e47,_0x10c737,_0x20fce8,_0x4a5813,_0x87e409,_0x1cc9f3,_0x1e165f){return _0x21d890(_0x4c0e47,_0x10c737,_0x20fce8,_0x4a5813,_0x87e409,_0x1cc9f3,_0x1e165f);},'DZAGD':'pre-check-grid-called','OfWaB':_0x2d2aeb(0x156),'ubfia':function(_0x1c2ca6,_0x15b16f){return _0x1c2ca6===_0x15b16f;},'GITiV':_0x2d2aeb(0x184),'AAFaO':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','igrBb':_0x2d2aeb(0x16e),'vEfLw':'ydagd','dgRgu':_0x2d2aeb(0x1a2),'FYKZt':_0x2d2aeb(0x1aa),'Amscs':'qJVEJ','XfXWu':_0x2d2aeb(0x1ae),'uHZVr':function(_0x9f984a,_0x378560,_0x222440){return _0x9f984a(_0x378560,_0x222440);},'nVuDT':function(_0x2744d0,_0x2b793f,_0x170b52,_0xb03f30,_0x44d5e2,_0x165302){return _0x2744d0(_0x2b793f,_0x170b52,_0xb03f30,_0x44d5e2,_0x165302);},'VEnLm':_0x2d2aeb(0x16a),'dlsRP':'grid-profile','PlmkP':function(_0x479782,_0x7c3c57){return _0x479782===_0x7c3c57;},'dHaYE':'HPTsg','uugQk':_0x2d2aeb(0x107),'wVfph':function(_0xf1fe6a,_0x2a5279){return _0xf1fe6a(_0x2a5279);},'aZbZT':function(_0xf2dad8,_0x2e4a5){return _0xf2dad8!==_0x2e4a5;},'OuudJ':_0x2d2aeb(0x1d7),'bBGBe':function(_0x19b6af,_0xd03684,_0xfe22ba,_0x525444,_0x4a87e3,_0x24a283,_0x174e9a,_0x19eb9c){return _0x19b6af(_0xd03684,_0xfe22ba,_0x525444,_0x4a87e3,_0x24a283,_0x174e9a,_0x19eb9c);},'UwmNa':_0x2d2aeb(0x160),'qimOu':_0x2d2aeb(0x127),'vWdqU':function(_0x1fe7b4,_0x47227e){return _0x1fe7b4===_0x47227e;},'IJgLW':'QFHAS','SqOyr':_0x2d2aeb(0x198),'mTCZb':_0x2d2aeb(0xe7),'mDIVD':_0x2d2aeb(0xea),'KOeAq':function(_0x3c281c,_0x1d4c3e){return _0x3c281c!==_0x1d4c3e;},'yuXrB':'meOBT'};let _0x27ec14;try{if(_0x47c3eb[_0x2d2aeb(0x147)](_0x47c3eb[_0x2d2aeb(0x11d)],_0x47c3eb['JRFAh'])){if(_0x3f0264[_0x2d2aeb(0xfd)]||_0x3f0264['cloudProvider']||_0x3f0264[_0x2d2aeb(0x113)]){if(_0x47c3eb[_0x2d2aeb(0x1d1)](_0x47c3eb[_0x2d2aeb(0x169)],_0x47c3eb[_0x2d2aeb(0x169)])){const _0x48b4d2=[];!_0x3f0264['clusterName']&&(_0x47c3eb[_0x2d2aeb(0x1d1)](_0x47c3eb[_0x2d2aeb(0x1d0)],_0x47c3eb[_0x2d2aeb(0x1d0)])?_0x48b4d2['push'](_0x47c3eb[_0x2d2aeb(0x195)]):_0x20d32d[_0x2d2aeb(0x1a5)](0x1));;!_0x3f0264[_0x2d2aeb(0x125)]&&(_0x47c3eb[_0x2d2aeb(0x147)](_0x47c3eb[_0x2d2aeb(0x1ba)],_0x47c3eb[_0x2d2aeb(0x1ba)])?(_0x107597[_0x2d2aeb(0x17e)](_0x47c3eb['IQrXm']),_0x59b3b6[_0x2d2aeb(0x1a5)](0x1)):_0x48b4d2[_0x2d2aeb(0x199)](_0x47c3eb[_0x2d2aeb(0x1c4)]));;!_0x3f0264[_0x2d2aeb(0x113)]&&(_0x47c3eb['YbPYB'](_0x47c3eb['RgMNZ'],_0x47c3eb[_0x2d2aeb(0xed)])?_0x48b4d2[_0x2d2aeb(0x199)](_0x47c3eb[_0x2d2aeb(0x143)]):_0x520542+=_0x2d2aeb(0x136)+_0x375383[_0x2d2aeb(0xfd)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a');;_0x47c3eb[_0x2d2aeb(0xdd)](_0x48b4d2[_0x2d2aeb(0x14b)],0x0)&&(_0x47c3eb[_0x2d2aeb(0x1d1)](_0x47c3eb[_0x2d2aeb(0x146)],_0x47c3eb[_0x2d2aeb(0x146)])?(_0x27ec14=_0x2d2aeb(0x19f)+_0x48b4d2[_0x2d2aeb(0xe9)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x47c3eb['vJeDm'](reportToGalactusAndSendToEDS,_0x3f0264,_0x188338,_0x27ec14,messageTypes[_0x2d2aeb(0x1c8)],_0x47c3eb[_0x2d2aeb(0xef)],_0x47c3eb[_0x2d2aeb(0x18d)],_0x47c3eb['AlGdD']),logger[_0x2d2aeb(0x17e)](_0x27ec14),process[_0x2d2aeb(0x1a5)](0x1)):_0x5012b3+=_0x2d2aeb(0x136)+_0x4622e9[_0x2d2aeb(0xfd)]+'\x20'+(_0xc6277a?_0x47c3eb['NXUEF']:_0x47c3eb[_0x2d2aeb(0x149)])+'\x0a\x0a');if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2d2aeb(0x18e)](_0x3f0264[_0x2d2aeb(0x125)][_0x2d2aeb(0x1a9)]())){if(_0x47c3eb[_0x2d2aeb(0x153)](_0x47c3eb[_0x2d2aeb(0x1ac)],_0x47c3eb[_0x2d2aeb(0x1ac)]))_0x27ec14=_0x47c3eb[_0x2d2aeb(0x128)],await _0x47c3eb['vJeDm'](reportToGalactusAndSendToEDS,_0x3f0264,_0x188338,_0x27ec14,messageTypes['ERROR'],_0x47c3eb[_0x2d2aeb(0xef)],_0x47c3eb[_0x2d2aeb(0x177)],_0x47c3eb['AlGdD']),logger[_0x2d2aeb(0x17e)](_0x27ec14),!_0x3f0264[_0x2d2aeb(0x125)]&&(_0x47c3eb[_0x2d2aeb(0x153)](_0x47c3eb[_0x2d2aeb(0x1d9)],_0x47c3eb[_0x2d2aeb(0x167)])?_0xa8ac63[_0x2d2aeb(0x199)](_0x47c3eb[_0x2d2aeb(0x195)]):(logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x2d2aeb(0x162)]+'\x20'),_0x3f0264[_0x2d2aeb(0x125)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']));else{const _0x491aad={};_0x491aad[_0x2d2aeb(0x10b)]=_0x3923e7[_0x2d2aeb(0x130)],_0x491aad['message']=_0x59144b,_0xb102e1[_0x2d2aeb(0x16b)](_0x27f00a,_0x491aad,_0x47c3eb[_0x2d2aeb(0x118)],!![]);}}global_registry[_0x2d2aeb(0xfd)]=_0x3f0264[_0x2d2aeb(0xfd)],global_registry[_0x2d2aeb(0x125)]=_0x3f0264[_0x2d2aeb(0x125)],global_registry[_0x2d2aeb(0x1c9)]=_0x3f0264[_0x2d2aeb(0x113)];}else{const _0x1a1720={};_0x1a1720[_0x2d2aeb(0x121)]=_0x47c3eb['xQIHJ'],_0x1a1720[_0x2d2aeb(0x10b)]=_0x47c3eb[_0x2d2aeb(0x12f)];const _0x3a74bf={};_0x3a74bf[_0x2d2aeb(0x121)]=_0x47c3eb[_0x2d2aeb(0xe1)],_0x3a74bf[_0x2d2aeb(0x10b)]=_0x47c3eb[_0x2d2aeb(0x12f)];const _0x22da63={};_0x22da63['description']=_0x47c3eb['bnxsy'],_0x22da63[_0x2d2aeb(0x10b)]=_0x47c3eb[_0x2d2aeb(0x12f)];const _0x24bd58={};_0x24bd58[_0x2d2aeb(0x121)]=_0x47c3eb[_0x2d2aeb(0x148)],_0x24bd58[_0x2d2aeb(0x10b)]=_0x47c3eb[_0x2d2aeb(0x12f)];const _0x282c2e={};return _0x282c2e[_0x2d2aeb(0x16d)]=_0x1a1720,_0x282c2e[_0x2d2aeb(0x10d)]=_0x3a74bf,_0x282c2e['region']=_0x22da63,_0x282c2e[_0x2d2aeb(0x13d)]=_0x24bd58,_0x4189f3[_0x2d2aeb(0x1b3)](_0x192c70[_0x2d2aeb(0x11c)])['epilogue'](_0x233434)['options'](_0x282c2e)[_0x2d2aeb(0x14e)](_0x47c3eb[_0x2d2aeb(0xff)])[_0x2d2aeb(0x1cd)];}}else{if(_0x3f0264['gridProfile']){if(_0x47c3eb[_0x2d2aeb(0x153)](_0x47c3eb['FYKZt'],_0x47c3eb[_0x2d2aeb(0x191)]))_0x528113[_0x2d2aeb(0xe4)]('['+_0x483dfa+_0x2d2aeb(0x18f)+_0x4a3695['status']+_0x2d2aeb(0x11e)+_0x35e39f[_0x2d2aeb(0x178)]+_0x2d2aeb(0x116)+_0x444eb1[_0x2d2aeb(0x17e)]),_0x3332cb[_0x2d2aeb(0x17e)]&&_0x49fccb['error']('error\x20stack\x20:\x20'+_0x4c0972['error'][_0x2d2aeb(0x155)]);else{global_registry[_0x2d2aeb(0x134)]=_0x3f0264['gridProfile'],logger[_0x2d2aeb(0xeb)](_0x2d2aeb(0xe5)+_0x3f0264['gridProfile']);const _0xc57ea5=_0x2d2aeb(0x10f)+AG_API_URL+_0x2d2aeb(0x1b8),_0x279c66={};_0x279c66[_0x2d2aeb(0x13a)]=_0x47c3eb[_0x2d2aeb(0xfb)],_0x279c66[_0x2d2aeb(0xf3)]=global_registry[_0x2d2aeb(0x1b4)],_0x279c66[_0x2d2aeb(0x13e)]=![];const _0xdb0aac=_0x279c66,_0x372b3a=await _0x47c3eb['uHZVr'](got,_0xc57ea5,_0xdb0aac),_0x46791a=await _0x47c3eb[_0x2d2aeb(0x15a)](responseValidation,_0x372b3a,_0x47c3eb['VEnLm'],_0x47c3eb[_0x2d2aeb(0x12b)],_0x3f0264,_0x188338);let _0x3fe581={};if(_0x47c3eb['PlmkP'](_0x46791a,0xc8)){if(_0x47c3eb[_0x2d2aeb(0x141)](_0x47c3eb[_0x2d2aeb(0x142)],_0x47c3eb['uugQk']))_0xf87f15[_0x2d2aeb(0xe4)](_0x2d2aeb(0xfa)+_0x2822d9[_0x2d2aeb(0xfd)]+'`\x20already\x20exists');else{const _0x49b398=JSON[_0x2d2aeb(0x19e)](_0x372b3a['body']),_0x186c4b=_0x49b398['find'](_0x211856=>_0x211856[_0x2d2aeb(0x182)]===_0x3f0264[_0x2d2aeb(0x134)])||null;if(_0x47c3eb[_0x2d2aeb(0x194)](isUndefined,_0x186c4b)){if(_0x47c3eb[_0x2d2aeb(0x12c)](_0x47c3eb[_0x2d2aeb(0x172)],_0x47c3eb[_0x2d2aeb(0x172)])){const {header:_0x57f6f1,response:_0x599826}=_0x3eb797,{status:_0x104473,data:_0x412d73,error:_0x2866e2}=_0x599826;_0xec742c+=_0x57f6f1+'\x20#'+_0x47c3eb[_0x2d2aeb(0x10e)](_0x2116d3,0x1)+'\x0a',_0x483878+=_0x2d2aeb(0x13f)+(_0x104473?_0x47c3eb['KYvHq']:_0x47c3eb[_0x2d2aeb(0xf8)])+'\x0a',_0xabdc83+=_0x2d2aeb(0x1d5)+_0x47c3eb['MMyCB'](_0x412d73,_0x47c3eb['NaXHH'])+'\x0a',_0x2866e2&&(_0x41e523+=_0x47c3eb['PeBcj'],_0x275346+='\x20\x20Message:\x20'+(_0x2866e2[_0x2d2aeb(0x1a1)]||_0x47c3eb[_0x2d2aeb(0x1b6)])+'\x0a',_0x8505cd+=_0x2d2aeb(0x140)+(_0x2866e2['code']||_0x47c3eb[_0x2d2aeb(0x1b6)])+'\x0a',_0x1f27f2+=_0x2d2aeb(0x1b1)+(_0x2866e2[_0x2d2aeb(0x155)]||_0x47c3eb['NaXHH'])+'\x0a'),_0x5045f2+='\x0a\x0a';}else _0x27ec14=_0x2d2aeb(0xe8)+_0x3f0264['gridProfile']+_0x2d2aeb(0x1da),await _0x47c3eb['bBGBe'](reportToGalactusAndSendToEDS,_0x3f0264,_0x188338,_0x27ec14,messageTypes[_0x2d2aeb(0x1c8)],_0x47c3eb['DZAGD'],_0x47c3eb[_0x2d2aeb(0xe6)],_0x47c3eb[_0x2d2aeb(0x118)]),logger['error'](_0x27ec14),process['exit'](0x1);}else _0x47c3eb[_0x2d2aeb(0x14f)](_0x47c3eb[_0x2d2aeb(0xf4)],_0x47c3eb[_0x2d2aeb(0xf4)])?_0x51d3ba=_0x4e8c74:_0x3fe581=_0x186c4b;}}else _0x47c3eb[_0x2d2aeb(0x1ce)](_0x47c3eb['IJgLW'],_0x47c3eb['SqOyr'])?_0x14689a[_0x2d2aeb(0x17e)]('error\x20stack\x20:\x20'+_0x9dfdfd[_0x2d2aeb(0x17e)]['stack']):process[_0x2d2aeb(0x1a5)](0x1);const _0x32a536={};_0x32a536['type']=WS_EVENTS['LOG'],_0x32a536[_0x2d2aeb(0x1a1)]=_0x47c3eb[_0x2d2aeb(0x1c1)],webSocketUtils[_0x2d2aeb(0x16b)](_0x188338,_0x32a536),global_registry[_0x2d2aeb(0x125)]=_0x3fe581[_0x2d2aeb(0x125)],global_registry['clusterRegion']=_0x3fe581[_0x2d2aeb(0x113)],global_registry[_0x2d2aeb(0xfd)]=_0x3fe581[_0x2d2aeb(0xfd)];}}else _0x47c3eb[_0x2d2aeb(0x14f)](_0x47c3eb[_0x2d2aeb(0x1bf)],_0x47c3eb[_0x2d2aeb(0x1bf)])?(_0x3262b[_0x2d2aeb(0xe4)]('Setting\x20cloud\x20provider\x20as\x20'+_0x315a42['CLOUD_PROVIDER']+'\x20'),_0xf27eb7['cloudProvider']=_0x4aea59[_0x2d2aeb(0x162)]):(logger[_0x2d2aeb(0x17e)](_0x47c3eb[_0x2d2aeb(0x174)]),process['exit'](0x1));}}else _0x642e57[_0x2d2aeb(0x199)](_0x47c3eb[_0x2d2aeb(0x143)]);}catch(_0x25c417){_0x47c3eb[_0x2d2aeb(0x17a)](_0x47c3eb[_0x2d2aeb(0xf0)],_0x47c3eb[_0x2d2aeb(0xf0)])?_0x195675[_0x2d2aeb(0x199)](_0x47c3eb[_0x2d2aeb(0x1c4)]):(_0x27ec14='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x25c417+':\x20'+_0x25c417[_0x2d2aeb(0x155)],logger['error'](_0x27ec14),await _0x47c3eb[_0x2d2aeb(0x122)](reportToGalactusAndSendToEDS,_0x3f0264,_0x188338,_0x27ec14,messageTypes[_0x2d2aeb(0x1c8)],_0x47c3eb[_0x2d2aeb(0xef)],_0x47c3eb[_0x2d2aeb(0x177)],_0x47c3eb['AlGdD']),process[_0x2d2aeb(0x1a5)](0x1));}}function printResponse(_0x47f7bf,_0xb773d8){const _0x4e4d98=a17_0x80756a,_0x363daf={};_0x363daf[_0x4e4d98(0x1be)]='Error\x20Details:\x0a',_0x363daf['raPSi']=_0x4e4d98(0x152),_0x363daf[_0x4e4d98(0x1cf)]=function(_0x8836bb,_0x43134c){return _0x8836bb===_0x43134c;},_0x363daf[_0x4e4d98(0x12a)]='wiaLO',_0x363daf[_0x4e4d98(0x14d)]=_0x4e4d98(0x105);const _0xb1620=_0x363daf;logger['info']('['+_0x47f7bf+_0x4e4d98(0x18f)+_0xb773d8[_0x4e4d98(0x18a)]+_0x4e4d98(0x11e)+_0xb773d8[_0x4e4d98(0x178)]+'\x20error\x20:\x20'+_0xb773d8[_0x4e4d98(0x17e)]),_0xb773d8[_0x4e4d98(0x17e)]&&(_0xb1620['aQlvV'](_0xb1620['LurhV'],_0xb1620[_0x4e4d98(0x14d)])?(_0x8919b5+=_0xb1620[_0x4e4d98(0x1be)],_0x46d8e9+=_0x4e4d98(0x186)+(_0x22c222[_0x4e4d98(0x1a1)]||_0xb1620[_0x4e4d98(0x154)])+'\x0a',_0xce5b4b+='\x20\x20Code:\x20'+(_0x5236b1['code']||_0xb1620[_0x4e4d98(0x154)])+'\x0a',_0x4aecaf+=_0x4e4d98(0x1b1)+(_0x99e0a4[_0x4e4d98(0x155)]||_0xb1620[_0x4e4d98(0x154)])+'\x0a'):logger[_0x4e4d98(0x17e)](_0x4e4d98(0x135)+_0xb773d8[_0x4e4d98(0x17e)]['stack']));}function a17_0x2c8f(_0x3adf1b,_0x4d5aa9){const _0x54d497=a17_0x54d4();return a17_0x2c8f=function(_0x2c8fe0,_0x4e1c02){_0x2c8fe0=_0x2c8fe0-0xdd;let _0x14ccf5=_0x54d497[_0x2c8fe0];return _0x14ccf5;},a17_0x2c8f(_0x3adf1b,_0x4d5aa9);}async function generateReport(_0x4a797f,_0x497675){const _0x2f448e=a17_0x80756a,_0x28097d={'dAvtP':function(_0x19471a,_0x55d5cd){return _0x19471a+_0x55d5cd;},'ZfCGa':_0x2f448e(0x1c7),'SCWpF':_0x2f448e(0x13b),'ZFMJO':function(_0x17df7e,_0x414cd7){return _0x17df7e||_0x414cd7;},'uEDGl':_0x2f448e(0x152),'fFdOa':'Error\x20Details:\x0a','pDycU':_0x2f448e(0xfc),'KAhxG':function(_0x3be17a,_0x240451){return _0x3be17a!=_0x240451;},'PCSAo':_0x2f448e(0xfe),'STWHJ':_0x2f448e(0x124),'vdQnn':function(_0x13068b){return _0x13068b();}};let _0x22d97f=_0x2f448e(0x19c)+global_registry[_0x2f448e(0x125)]+'\x20===\x0a\x0a';return _0x4a797f['forEach']((_0xf089fe,_0x54f923)=>{const _0x5b47bf=_0x2f448e,{header:_0x2c9649,response:_0x51bc42}=_0xf089fe,{status:_0x2c88fd,data:_0x45503c,error:_0x1210ef}=_0x51bc42;_0x22d97f+=_0x2c9649+'\x20#'+_0x28097d[_0x5b47bf(0x171)](_0x54f923,0x1)+'\x0a',_0x22d97f+='Status:\x20'+(_0x2c88fd?_0x28097d[_0x5b47bf(0x1c3)]:_0x28097d[_0x5b47bf(0x15e)])+'\x0a',_0x22d97f+=_0x5b47bf(0x1d5)+_0x28097d[_0x5b47bf(0x179)](_0x45503c,_0x28097d['uEDGl'])+'\x0a',_0x1210ef&&(_0x22d97f+=_0x28097d['fFdOa'],_0x22d97f+=_0x5b47bf(0x186)+(_0x1210ef[_0x5b47bf(0x1a1)]||_0x28097d[_0x5b47bf(0xee)])+'\x0a',_0x22d97f+='\x20\x20Code:\x20'+(_0x1210ef[_0x5b47bf(0x10a)]||_0x28097d['uEDGl'])+'\x0a',_0x22d97f+=_0x5b47bf(0x1b1)+(_0x1210ef['stack']||_0x28097d['uEDGl'])+'\x0a'),_0x22d97f+='\x0a\x0a';}),_0x22d97f+=_0x28097d['pDycU'],_0x28097d[_0x2f448e(0x1a0)](_0x497675,null)?_0x22d97f+=_0x2f448e(0x136)+global_registry[_0x2f448e(0xfd)]+'\x20'+(_0x497675?_0x28097d[_0x2f448e(0xe0)]:_0x28097d['STWHJ'])+'\x0a\x0a':_0x22d97f+=_0x2f448e(0x136)+global_registry[_0x2f448e(0xfd)]+_0x2f448e(0x1d4),_0x22d97f+=_0x28097d[_0x2f448e(0x1b9)](getSystemMetaData),_0x22d97f;};exports[a17_0x80756a(0x131)]=async function(_0x46d451){const _0x13cf34=a17_0x80756a,_0x5775c3={'eXdfb':function(_0x79e626){return _0x79e626();},'fyfCn':function(_0x523a94){return _0x523a94();},'QKOWK':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','uuWac':function(_0x26a249,_0x149aab,_0x36a6aa,_0x359be9,_0x4151c,_0x1c3c51,_0x4299a4,_0x165368){return _0x26a249(_0x149aab,_0x36a6aa,_0x359be9,_0x4151c,_0x1c3c51,_0x4299a4,_0x165368);},'SMzhc':_0x13cf34(0x1ab),'NFghr':_0x13cf34(0x176),'EFUbQ':'error','IlDmm':function(_0x1b2590,_0x29499b,_0x132ecf,_0x593b83,_0x36d2c4,_0x562021,_0x317367){return _0x1b2590(_0x29499b,_0x132ecf,_0x593b83,_0x36d2c4,_0x562021,_0x317367);},'IOSNj':_0x13cf34(0x15f),'QmsfG':_0x13cf34(0x1d2),'VARmj':function(_0xfb9c17,_0x3da3e0,_0x90c3b){return _0xfb9c17(_0x3da3e0,_0x90c3b);},'ZZIdc':function(_0x376c0f,_0x541e18,_0x1151ba,_0x3108f5,_0x46283a,_0x306e44,_0x2a55f3){return _0x376c0f(_0x541e18,_0x1151ba,_0x3108f5,_0x46283a,_0x306e44,_0x2a55f3);},'rJtRC':'dummy-grid','weWyF':function(_0x417053,_0x5a7078,_0x250ca5){return _0x417053(_0x5a7078,_0x250ca5);},'Mwrzi':_0x13cf34(0x112),'ykquz':_0x13cf34(0xf9),'JPRfY':function(_0x4f6841,_0x5156c1,_0x27839b,_0x361c4b,_0x1ded4e,_0x20de95,_0x31569f,_0x3dbb62){return _0x4f6841(_0x5156c1,_0x27839b,_0x361c4b,_0x1ded4e,_0x20de95,_0x31569f,_0x3dbb62);},'NpZFi':_0x13cf34(0x1a7),'gwZHE':_0x13cf34(0x15b),'WJsuG':function(_0x4d16e9,_0x45c7ee){return _0x4d16e9(_0x45c7ee);},'McfLi':_0x13cf34(0x1ad),'SuJYH':'isTls1_2_SUPPORTED','jwzSM':_0x13cf34(0x126),'lZfcW':_0x13cf34(0x104),'gOGlI':_0x13cf34(0x1c2),'hEiqP':_0x13cf34(0x19d),'UIenX':function(_0x471e01,_0x3a5967){return _0x471e01+_0x3a5967;},'wgeHb':'utf-8','ZhNDk':function(_0x4f0b81,_0x317ff3,_0x105e15,_0x1e8866,_0x4c348f,_0x258199,_0x35765f){return _0x4f0b81(_0x317ff3,_0x105e15,_0x1e8866,_0x4c348f,_0x258199,_0x35765f);},'qhMeZ':'pre-check-failed'};let _0x5d30e6,_0x447f19;try{global_registry[_0x13cf34(0x132)]=_0x5775c3[_0x13cf34(0x114)](uuidv4);!fs['existsSync'](_0x5775c3['fyfCn'](getCredentialsPath))&&(_0x447f19=_0x5775c3[_0x13cf34(0x159)],logger[_0x13cf34(0x17e)](_0x447f19),await _0x5775c3['uuWac'](reportToGalactusAndSendToEDS,_0x46d451,_0x5d30e6,_0x447f19,messageTypes[_0x13cf34(0x1c8)],_0x5775c3[_0x13cf34(0x1d6)],_0x5775c3[_0x13cf34(0xec)],_0x5775c3['EFUbQ']),process[_0x13cf34(0x1a5)](0x1));_0x5775c3[_0x13cf34(0x10c)](sendInstrumentationEvent,_0x46d451,_0x5775c3[_0x13cf34(0x1d6)],messageTypes['INFO'],null,null,_0x46d451);const _0x2d1e86=JSON[_0x13cf34(0x19e)](fs[_0x13cf34(0x1bb)](_0x5775c3['eXdfb'](getCredentialsPath)));global_registry[_0x13cf34(0x100)]=_0x2d1e86[_0x13cf34(0x1b0)]['username'],global_registry['bstackAccesskey']=_0x2d1e86[_0x13cf34(0x1b0)][_0x13cf34(0x18c)];const _0x545813=WS_ENDPOINT['replace'](_0x5775c3[_0x13cf34(0x138)],_0x2d1e86[_0x13cf34(0x1b0)][_0x13cf34(0xf1)])[_0x13cf34(0x120)](_0x5775c3[_0x13cf34(0x183)],_0x2d1e86[_0x13cf34(0x1b0)]['password']),_0x572088={};_0x572088[_0x13cf34(0x15c)]=ws,_0x572088[_0x13cf34(0x185)]=0x36ee80,_0x5d30e6=new ReconnectingWebSocket(_0x545813,[],_0x572088),global_registry['authHeader']=_0x5775c3[_0x13cf34(0x189)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x13cf34(0x190)]),await _0x5775c3['VARmj'](inputValidation,_0x46d451,_0x5d30e6),logger[_0x13cf34(0xe4)](_0x13cf34(0x168)+global_registry[_0x13cf34(0x125)]+_0x13cf34(0x17f)+global_registry[_0x13cf34(0x1c9)]);let _0x399164=await _0x5775c3[_0x13cf34(0x14a)](getCloudProviderObjectWithOutInit,global_registry[_0x13cf34(0x125)],global_registry[_0x13cf34(0xfd)],_0x5775c3[_0x13cf34(0xf5)],_0x5d30e6,webSocketUtils,_0x46d451);const _0x101a1d=await _0x399164[_0x13cf34(0x187)]();_0x5775c3[_0x13cf34(0x101)](printResponse,_0x5775c3[_0x13cf34(0x119)],_0x101a1d),_0x399164=await _0x399164[_0x13cf34(0x1b7)]();let _0x234054=![];try{_0x234054=await _0x399164[_0x13cf34(0x181)]();}catch(_0x24da09){const _0x4731da=_0x5775c3[_0x13cf34(0x1b5)][_0x13cf34(0x1d8)]('|');let _0x2b43c1=0x0;while(!![]){switch(_0x4731da[_0x2b43c1++]){case'0':_0x234054=null;continue;case'1':_0x447f19+='\x0a'+JSON['stringify'](_0x24da09[_0x13cf34(0x155)]);continue;case'2':logger[_0x13cf34(0x17e)](_0x447f19);continue;case'3':await _0x5775c3[_0x13cf34(0x16f)](reportToGalactusAndSendToEDS,_0x46d451,_0x5d30e6,_0x447f19,messageTypes[_0x13cf34(0x1c8)],_0x5775c3[_0x13cf34(0x1d6)],_0x13cf34(0xf2)+global_registry['cloudProvider'],_0x5775c3[_0x13cf34(0x175)]);continue;case'4':_0x447f19=_0x13cf34(0x12e)+global_registry[_0x13cf34(0xfd)]+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x13cf34(0x1c9)]+_0x13cf34(0x13c)+_0x24da09;continue;}break;}}_0x234054&&logger[_0x13cf34(0xe4)]('Cluster\x20`'+global_registry['clusterName']+_0x13cf34(0x115));const _0x253664=await _0x399164[_0x13cf34(0xe3)]();_0x5775c3[_0x13cf34(0x189)](printResponse,_0x5775c3[_0x13cf34(0x111)],_0x253664);const _0x4ed4ad=await _0x5775c3[_0x13cf34(0x11b)](curlRequest);_0x5775c3['VARmj'](printResponse,_0x5775c3[_0x13cf34(0x173)],_0x4ed4ad);const _0x12c9bb=await _0x5775c3[_0x13cf34(0x137)](isTlsSupported,_0x5775c3[_0x13cf34(0x161)]);_0x5775c3[_0x13cf34(0x101)](printResponse,_0x5775c3[_0x13cf34(0x17b)],_0x12c9bb);const _0xd28e54={};_0xd28e54[_0x13cf34(0x196)]=_0x5775c3[_0x13cf34(0x102)],_0xd28e54['response']=_0x101a1d;const _0x32ed16={};_0x32ed16[_0x13cf34(0x196)]=_0x5775c3[_0x13cf34(0x1a6)],_0x32ed16['response']=_0x253664;const _0x4a5e61={};_0x4a5e61['header']=_0x5775c3[_0x13cf34(0x11f)],_0x4a5e61['response']=_0x4ed4ad;const _0x19b4d4={};_0x19b4d4[_0x13cf34(0x196)]=_0x5775c3['hEiqP'],_0x19b4d4[_0x13cf34(0x145)]=_0x12c9bb;const _0x29202a=[_0xd28e54,_0x32ed16,_0x4a5e61,_0x19b4d4],_0x2a0730=await _0x5775c3[_0x13cf34(0x101)](generateReport,_0x29202a,_0x234054),_0x4ab294=new Date(),_0x35bf54=_0x4ab294[_0x13cf34(0x12d)]()+'_'+_0x5775c3[_0x13cf34(0x1a4)](_0x4ab294[_0x13cf34(0x1db)](),0x1)+'_'+_0x4ab294['getUTCDate']()+'_'+_0x4ab294[_0x13cf34(0x1cb)]()+'_'+_0x4ab294['getUTCMinutes'](),_0x528e05=_0x13cf34(0xde)+_0x35bf54+'.txt';fs[_0x13cf34(0x170)](_0x528e05,_0x2a0730,_0x5775c3[_0x13cf34(0x1a8)]),logger[_0x13cf34(0xe4)](_0x13cf34(0x110)+_0x528e05),process[_0x13cf34(0x1a5)](0x0);}catch(_0x1f1288){let _0x4cab38=_0x13cf34(0x180)+_0x1f1288+'\x20';logger['error'](_0x4cab38),_0x4cab38+='\x0a'+JSON[_0x13cf34(0x164)](_0x1f1288[_0x13cf34(0x155)]),logger['debug'](_0x13cf34(0xdf)+_0x1f1288[_0x13cf34(0x155)]);if(_0x5d30e6){const _0x138ac1={};_0x138ac1[_0x13cf34(0x10b)]=WS_EVENTS[_0x13cf34(0x130)],_0x138ac1[_0x13cf34(0x1a1)]=_0x4cab38,webSocketUtils[_0x13cf34(0x16b)](_0x5d30e6,_0x138ac1,_0x5775c3[_0x13cf34(0x175)],!![]);}await webSocketUtils[_0x13cf34(0x197)](0x7d0);const _0x4358aa={};_0x4358aa[_0x13cf34(0x17e)]=_0x4cab38,await _0x5775c3[_0x13cf34(0x192)](sendInstrumentationEvent,_0x46d451,_0x5775c3[_0x13cf34(0x1d6)],messageTypes[_0x13cf34(0x1c8)],_0x5775c3[_0x13cf34(0x1ca)],_0x4358aa,_0x46d451),process[_0x13cf34(0x1a5)](0x1);}};function a17_0x54d4(){const _0x3391c2=['unable\x20to\x20verify\x20if\x20cluster\x20`','dtpFK','LOG','handler','requestId','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','gridProfile','error\x20stack\x20:\x20','Cluster\x20','WJsuG','IOSNj','fiyWp','method','Failure','`\x20,error\x20:\x20','grid-profile','throwHttpErrors','Status:\x20','\x20\x20Code:\x20','PlmkP','dHaYE','aWUMc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','response','cOlaw','GlAzn','cCLbM','LJQOW','ZZIdc','length','268012bQFYgM','Mucfo','help','YbPYB','cPjBd','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','N/A','ubfia','raPSi','stack','pre-check-cluster-args-not-passed','../../utils/instrumentationUtils','36FXkpFB','QKOWK','nVuDT','isTrialGridAccessible','WebSocket','7916Pafvdq','SCWpF','<UsernamePlaceholder>','pre-check-grid-profile-empty','McfLi','CLOUD_PROVIDER','ufJIc','stringify','SIGut','icYJd','dgRgu','Pre-check\x20running\x20for\x20Cloud\x20-\x20','syTuC','pre-check','sendEventToBackend','Offqa','cluster-name','cloud-provider-not-supported','JPRfY','writeFileSync','dAvtP','OuudJ','gwZHE','IQrXm','EFUbQ','credential-not-found','igrBb','data','ZFMJO','KOeAq','SuJYH','995980noVJwt','JrlHI','error','\x20region\x20-\x20','Failed\x20in\x20pre-check!\x20Error:\x20','isClusterPresent','name','QmsfG','MSWjI','connectionTimeout','\x20\x20Message:\x20','isCliToolInstalled','epilogue','VARmj','status','../../utils/webSocketUtils','password','OfWaB','includes',']\x20status\x20:\x20','bstackAccesskey','Amscs','ZhNDk','RUqBx','wVfph','uyNeT','header','delay','TGnxF','push','Error\x20Details:\x0a','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','===\x20Precheck\x20Report\x20-\x20','SSL\x20Configured','parse','Missing\x20required\x20arguments:\x20','KAhxG','message','tqVaH','../../utils/utilityMethods','UIenX','exit','lZfcW','accessResp','wgeHb','toLowerCase','DWfKl','pre-check-grid-called','GITiV','TLSv1_2_client_method','GET','options','Browserstack','\x20\x20Stack:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','usage','authHeader','ykquz','NaXHH','init','/packages/cli/get-all-grid-profiles','vdQnn','zLNDj','readFileSync','TMqMJ','grid','PSPeb','mDIVD','../../config/logger','mTCZb','Whitelisted\x20browserstack','ZfCGa','QlfUL','265008QmogRH','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Success','ERROR','clusterRegion','qhMeZ','getUTCHours','59213wLSUaF','argv','vWdqU','aQlvV','sJecM','NvoKG','<PasswordPlaceholder>','163933SwkPHI','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Message:\x20','SMzhc','fDmfi','split','vEfLw','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','getUTCMonth','rNtPJ','log/report_','stack\x20trace\x20','PCSAo','ahrDr','oLEqE','checkAccess','info','grid\x20profile\x20flow\x20','UwmNa','Grid\x20profile\x20fetched\x20for\x20pre-check','Invalid\x20input.\x20grid\x20profiles:\x20','join','TbPzG','debug','NFghr','dRCAt','uEDGl','DZAGD','yuXrB','username','cluster-check-failed-','headers','qimOu','rJtRC','69hpBTLU','AFQBR','MaeWk','4|0|2|1|3','Cluster\x20`','XfXWu','Cluster\x20details\x0a-----------------------\x0a','clusterName','is\x20already\x20present','lxCfV','bstackUsername','weWyF','jwzSM','laHLD','User\x20Access','vgNFf','../../config/constants','iqEDX','41058ekgtte','../../cloudproviders/utils','code','type','IlDmm','cloud-provider','XvAMN','https://','Report\x20saved\x20in\x20','NpZFi','toolInstalledResp','region','eXdfb','`\x20already\x20exists','\x20error\x20:\x20','string','AlGdD','Mwrzi','desc','fyfCn','pre_check','SpHqS','\x20data\x20:\x20','gOGlI','replace','description','vJeDm','Ksgmv','will\x20be\x20created','cloudProvider','Tool\x20Installed','FYlsj','AAFaO','35vorGug','LurhV','dlsRP','aZbZT','getUTCFullYear'];a17_0x54d4=function(){return _0x3391c2;};return a17_0x54d4();}
1
+ const a17_0x28d166=a17_0x4e2d;(function(_0x31183c,_0x11247e){const _0x5acdce=a17_0x4e2d,_0xf6e436=_0x31183c();while(!![]){try{const _0x2be319=-parseInt(_0x5acdce(0x234))/0x1+parseInt(_0x5acdce(0x24c))/0x2*(-parseInt(_0x5acdce(0x188))/0x3)+parseInt(_0x5acdce(0x1a3))/0x4*(-parseInt(_0x5acdce(0x241))/0x5)+-parseInt(_0x5acdce(0x1c2))/0x6*(-parseInt(_0x5acdce(0x172))/0x7)+parseInt(_0x5acdce(0x243))/0x8+parseInt(_0x5acdce(0x1b4))/0x9+parseInt(_0x5acdce(0x22a))/0xa;if(_0x2be319===_0x11247e)break;else _0xf6e436['push'](_0xf6e436['shift']());}catch(_0x1b73cd){_0xf6e436['push'](_0xf6e436['shift']());}}}(a17_0x1cd2,0x53cb3));const fs=require('fs'),ws=require('ws'),got=require(a17_0x28d166(0x168)),{v4:uuidv4}=require(a17_0x28d166(0x19b)),ReconnectingWebSocket=require(a17_0x28d166(0x1ca)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x28d166(0x213)),{logger}=require(a17_0x28d166(0x181)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x28d166(0x1be)]=a17_0x28d166(0x1a4),exports['desc']=a17_0x28d166(0x165),exports['builder']=function(_0x2bc557){const _0xad1ee1=a17_0x28d166,_0x3fb4e6={};_0x3fb4e6[_0xad1ee1(0x173)]=_0xad1ee1(0x211),_0x3fb4e6[_0xad1ee1(0x1d1)]=_0xad1ee1(0x1b8),_0x3fb4e6[_0xad1ee1(0x1e7)]=_0xad1ee1(0x1c1),_0x3fb4e6['eizmn']=_0xad1ee1(0x240),_0x3fb4e6[_0xad1ee1(0x202)]=_0xad1ee1(0x190),_0x3fb4e6[_0xad1ee1(0x21d)]=_0xad1ee1(0x197);const _0x3849b8=_0x3fb4e6,_0x3959e8={};_0x3959e8[_0xad1ee1(0x174)]=_0x3849b8['NRdQS'],_0x3959e8[_0xad1ee1(0x163)]=_0x3849b8[_0xad1ee1(0x1d1)];const _0x543dbe={};_0x543dbe[_0xad1ee1(0x174)]=_0x3849b8[_0xad1ee1(0x1e7)],_0x543dbe[_0xad1ee1(0x163)]=_0x3849b8[_0xad1ee1(0x1d1)];const _0x145537={};_0x145537[_0xad1ee1(0x174)]=_0x3849b8['eizmn'],_0x145537[_0xad1ee1(0x163)]=_0x3849b8[_0xad1ee1(0x1d1)];const _0x25920e={};_0x25920e[_0xad1ee1(0x174)]=_0x3849b8[_0xad1ee1(0x202)],_0x25920e['type']=_0x3849b8[_0xad1ee1(0x1d1)];const _0x5c4ba4={};return _0x5c4ba4[_0xad1ee1(0x1c8)]=_0x3959e8,_0x5c4ba4[_0xad1ee1(0x17d)]=_0x543dbe,_0x5c4ba4[_0xad1ee1(0x187)]=_0x145537,_0x5c4ba4[_0xad1ee1(0x1dd)]=_0x25920e,_0x2bc557[_0xad1ee1(0x198)](HELP_HEADER_MESSAGE[_0xad1ee1(0x1eb)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xad1ee1(0x180)](_0x5c4ba4)[_0xad1ee1(0x197)](_0x3849b8[_0xad1ee1(0x21d)])[_0xad1ee1(0x177)];};async function inputValidation(_0x20a4ab,_0x264ed5){const _0x580e73=a17_0x28d166,_0x52d6c0={'YVhqO':'error','hgtxP':'cluster-name','yvbVe':_0x580e73(0x247),'HwbVr':_0x580e73(0x235),'JuPNN':function(_0x19728c,_0x2978b2){return _0x19728c+_0x2978b2;},'fNFOE':'Success','achxt':_0x580e73(0x21b),'IOrvS':function(_0x31a31b,_0x54f31b){return _0x31a31b||_0x54f31b;},'QfMqk':_0x580e73(0x18e),'TBTap':_0x580e73(0x1ec),'FmVbK':'region','wylDe':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','fhHWP':_0x580e73(0x211),'vAJFc':'string','PVdxk':_0x580e73(0x1c1),'UvJDR':_0x580e73(0x240),'hwmCM':_0x580e73(0x190),'InDZQ':_0x580e73(0x197),'oMVXN':_0x580e73(0x17d),'moZIJ':function(_0x216c96,_0x2db3ac){return _0x216c96!==_0x2db3ac;},'yvlSY':'jBuck','KwNxg':_0x580e73(0x1c7),'kyyaz':function(_0x446f06,_0x3224e3){return _0x446f06!==_0x3224e3;},'DtsdP':_0x580e73(0x20e),'HLFAI':_0x580e73(0x227),'Rjevi':function(_0x3a41b6,_0x31063b){return _0x3a41b6===_0x31063b;},'XfLhz':'pjjQI','TbcEm':_0x580e73(0x1e3),'bxuwz':function(_0x57386e,_0xf9db31){return _0x57386e!==_0xf9db31;},'gQSwl':_0x580e73(0x245),'UkvWm':function(_0xd9a5a3,_0x5a67e9){return _0xd9a5a3!==_0x5a67e9;},'lqapa':_0x580e73(0x1af),'NWifQ':function(_0xb634b9,_0x78de60){return _0xb634b9>_0x78de60;},'SisHF':_0x580e73(0x236),'pKvIE':function(_0x3a529a,_0x12432a,_0x511e40,_0x2b6d17,_0x1adfa5,_0x1506a9,_0x4bba2e,_0x369272){return _0x3a529a(_0x12432a,_0x511e40,_0x2b6d17,_0x1adfa5,_0x1506a9,_0x4bba2e,_0x369272);},'kmUqF':_0x580e73(0x1ce),'kAXtT':_0x580e73(0x19f),'jftrM':function(_0x180cf1,_0x505ecb){return _0x180cf1!==_0x505ecb;},'qFXfx':_0x580e73(0x252),'zcLmL':_0x580e73(0x246),'eCWMa':_0x580e73(0x209),'ONQRu':function(_0x4ee6de,_0x4c1b6e,_0x464cc8,_0x58fc86,_0x15f041,_0x5de130,_0x1a9551,_0x3c31ce){return _0x4ee6de(_0x4c1b6e,_0x464cc8,_0x58fc86,_0x15f041,_0x5de130,_0x1a9551,_0x3c31ce);},'kYzyG':_0x580e73(0x1ee),'FzKUO':_0x580e73(0x1cd),'UPRBw':_0x580e73(0x23d),'NNnBL':function(_0x355365,_0x281435){return _0x355365!==_0x281435;},'pBFmw':'kSWmf','yRHFY':'GET','xXQvW':function(_0x4d8810,_0x11e929,_0x53bb44){return _0x4d8810(_0x11e929,_0x53bb44);},'zVOxn':function(_0x13335d,_0x34165a,_0x3ac537,_0x249a05,_0x5844f7,_0x230207){return _0x13335d(_0x34165a,_0x3ac537,_0x249a05,_0x5844f7,_0x230207);},'mGLDG':_0x580e73(0x249),'vqzap':'grid-profile','QdPWL':_0x580e73(0x189),'MTPde':'OsxSh','rLgtv':function(_0x27f4c2,_0x371cc1){return _0x27f4c2(_0x371cc1);},'CHkoq':function(_0x14f715,_0x59a6fd){return _0x14f715!==_0x59a6fd;},'TXRnm':_0x580e73(0x1ff),'ebUgN':'QQxxY','IjVpH':_0x580e73(0x167),'jsajD':_0x580e73(0x191),'fCQzw':_0x580e73(0x25b),'ygLvl':function(_0x4fbdaf,_0x3d4327){return _0x4fbdaf===_0x3d4327;},'GpNZn':_0x580e73(0x1bd),'EJWLW':_0x580e73(0x1df),'bYhRS':function(_0x228e2a,_0x40d4d3){return _0x228e2a!==_0x40d4d3;},'ugTLc':_0x580e73(0x23a),'KUEqk':'ozphH','eFJsj':_0x580e73(0x1a6)};let _0x16bb49;try{if(_0x52d6c0[_0x580e73(0x24a)](_0x52d6c0[_0x580e73(0x206)],_0x52d6c0[_0x580e73(0x1f0)])){if(_0x20a4ab[_0x580e73(0x1f8)]||_0x20a4ab['cloudProvider']||_0x20a4ab[_0x580e73(0x187)]){if(_0x52d6c0[_0x580e73(0x19e)](_0x52d6c0[_0x580e73(0x16b)],_0x52d6c0[_0x580e73(0x1e5)])){const _0x1d6535=[];if(!_0x20a4ab[_0x580e73(0x1f8)]){if(_0x52d6c0[_0x580e73(0x1fe)](_0x52d6c0[_0x580e73(0x1d8)],_0x52d6c0['TbcEm'])){const _0x5965b7={};_0x5965b7[_0x580e73(0x163)]=_0x3ca5d4['LOG'],_0x5965b7[_0x580e73(0x1c4)]=_0x301212,_0x317ad4[_0x580e73(0x1a0)](_0xff492b,_0x5965b7,_0x52d6c0[_0x580e73(0x186)],!![]);}else _0x1d6535[_0x580e73(0x1c5)](_0x52d6c0[_0x580e73(0x1ea)]);};!_0x20a4ab[_0x580e73(0x1f5)]&&(_0x52d6c0[_0x580e73(0x171)](_0x52d6c0[_0x580e73(0x251)],_0x52d6c0[_0x580e73(0x251)])?_0x4234c8[_0x580e73(0x1c5)](_0x52d6c0['hgtxP']):_0x1d6535['push'](_0x52d6c0[_0x580e73(0x162)]));;!_0x20a4ab[_0x580e73(0x187)]&&(_0x52d6c0[_0x580e73(0x24b)](_0x52d6c0['lqapa'],_0x52d6c0[_0x580e73(0x1f6)])?(_0x28b439['info']('['+_0x34085d+_0x580e73(0x1b5)+_0x44f293[_0x580e73(0x228)]+_0x580e73(0x1e2)+_0x1937ef[_0x580e73(0x178)]+'\x20error\x20:\x20'+_0x89bfcb[_0x580e73(0x1e9)]),_0x253d42['error']&&_0x550983[_0x580e73(0x1e9)]('error\x20stack\x20:\x20'+_0x11bb21[_0x580e73(0x1e9)][_0x580e73(0x205)])):_0x1d6535[_0x580e73(0x1c5)](_0x52d6c0[_0x580e73(0x248)]));;_0x52d6c0[_0x580e73(0x1fc)](_0x1d6535[_0x580e73(0x201)],0x0)&&(_0x52d6c0[_0x580e73(0x171)](_0x52d6c0[_0x580e73(0x242)],_0x52d6c0[_0x580e73(0x242)])?_0x4e1f08+=_0x580e73(0x22b)+_0x3b768a[_0x580e73(0x1f8)]+'\x20'+(_0x5be0dc?_0x52d6c0['yvbVe']:_0x52d6c0[_0x580e73(0x16a)])+'\x0a\x0a':(_0x16bb49='Missing\x20required\x20arguments:\x20'+_0x1d6535[_0x580e73(0x1c6)](',\x20')+_0x580e73(0x232),await _0x52d6c0['pKvIE'](reportToGalactusAndSendToEDS,_0x20a4ab,_0x264ed5,_0x16bb49,messageTypes[_0x580e73(0x207)],_0x52d6c0[_0x580e73(0x194)],_0x52d6c0[_0x580e73(0x1bf)],_0x52d6c0['YVhqO']),logger[_0x580e73(0x1e9)](_0x16bb49),process[_0x580e73(0x1fa)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x20a4ab[_0x580e73(0x1f5)][_0x580e73(0x18f)]())){if(_0x52d6c0[_0x580e73(0x169)](_0x52d6c0[_0x580e73(0x1ab)],_0x52d6c0[_0x580e73(0x1da)]))_0x16bb49=_0x52d6c0[_0x580e73(0x1d4)],await _0x52d6c0[_0x580e73(0x161)](reportToGalactusAndSendToEDS,_0x20a4ab,_0x264ed5,_0x16bb49,messageTypes[_0x580e73(0x207)],_0x52d6c0[_0x580e73(0x194)],_0x52d6c0[_0x580e73(0x1a9)],_0x52d6c0[_0x580e73(0x186)]),logger['error'](_0x16bb49),!_0x20a4ab[_0x580e73(0x1f5)]&&(_0x52d6c0['bxuwz'](_0x52d6c0[_0x580e73(0x231)],_0x52d6c0[_0x580e73(0x221)])?(logger[_0x580e73(0x255)](_0x580e73(0x203)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x20a4ab[_0x580e73(0x1f5)]=DEFAULT_CLUSTER_DETAILS[_0x580e73(0x195)]):_0x258fde[_0x580e73(0x255)]('Cluster\x20`'+_0x50db6c[_0x580e73(0x1f8)]+'`\x20already\x20exists'));else{const {header:_0x177d92,response:_0x41aac9}=_0x1fd39c,{status:_0x45d8c9,data:_0x2e64dd,error:_0x48bd74}=_0x41aac9;_0x40fb44+=_0x177d92+'\x20#'+_0x52d6c0['JuPNN'](_0x51b46b,0x1)+'\x0a',_0x3bddf6+='Status:\x20'+(_0x45d8c9?_0x52d6c0[_0x580e73(0x21f)]:_0x52d6c0[_0x580e73(0x1c3)])+'\x0a',_0x15842b+=_0x580e73(0x1de)+_0x52d6c0[_0x580e73(0x1e1)](_0x2e64dd,_0x52d6c0[_0x580e73(0x19d)])+'\x0a',_0x48bd74&&(_0x496668+=_0x52d6c0['TBTap'],_0x13651c+=_0x580e73(0x183)+(_0x48bd74[_0x580e73(0x1c4)]||_0x52d6c0[_0x580e73(0x19d)])+'\x0a',_0x25ae01+=_0x580e73(0x21a)+(_0x48bd74[_0x580e73(0x1d6)]||_0x52d6c0['QfMqk'])+'\x0a',_0xd98589+=_0x580e73(0x176)+(_0x48bd74[_0x580e73(0x205)]||_0x52d6c0[_0x580e73(0x19d)])+'\x0a'),_0x534fa1+='\x0a\x0a';}}global_registry['clusterName']=_0x20a4ab[_0x580e73(0x1f8)],global_registry[_0x580e73(0x1f5)]=_0x20a4ab[_0x580e73(0x1f5)],global_registry['clusterRegion']=_0x20a4ab['region'];}else _0x4d160e+='Cluster\x20'+_0x31fa33[_0x580e73(0x1f8)]+_0x580e73(0x214);}else{if(_0x20a4ab['gridProfile']){if(_0x52d6c0[_0x580e73(0x1a5)](_0x52d6c0[_0x580e73(0x1d3)],_0x52d6c0[_0x580e73(0x1d3)]))_0x5c02f2[_0x580e73(0x1c5)](_0x52d6c0[_0x580e73(0x248)]);else{global_registry[_0x580e73(0x19c)]=_0x20a4ab[_0x580e73(0x19c)],logger[_0x580e73(0x1d7)](_0x580e73(0x18a)+_0x20a4ab[_0x580e73(0x19c)]);const _0x2d4d04=_0x580e73(0x16e)+AG_API_URL+_0x580e73(0x179),_0x2809f2={};_0x2809f2[_0x580e73(0x19a)]=_0x52d6c0['yRHFY'],_0x2809f2[_0x580e73(0x1b1)]=global_registry[_0x580e73(0x20c)],_0x2809f2[_0x580e73(0x1f1)]=![];const _0xa69085=_0x2809f2,_0x48dbbb=await _0x52d6c0[_0x580e73(0x17a)](got,_0x2d4d04,_0xa69085),_0x187943=await _0x52d6c0['zVOxn'](responseValidation,_0x48dbbb,_0x52d6c0[_0x580e73(0x212)],_0x52d6c0[_0x580e73(0x244)],_0x20a4ab,_0x264ed5);let _0x1dcc5d={};if(_0x52d6c0[_0x580e73(0x1fe)](_0x187943,0xc8)){if(_0x52d6c0[_0x580e73(0x1fe)](_0x52d6c0['QdPWL'],_0x52d6c0[_0x580e73(0x20d)]))_0x90e5b6+=_0x52d6c0[_0x580e73(0x21e)],_0x528c4c+=_0x580e73(0x183)+(_0x4517bc[_0x580e73(0x1c4)]||_0x52d6c0['QfMqk'])+'\x0a',_0x596881+=_0x580e73(0x21a)+(_0x2b45bb[_0x580e73(0x1d6)]||_0x52d6c0['QfMqk'])+'\x0a',_0x324533+=_0x580e73(0x176)+(_0x26dd1d[_0x580e73(0x205)]||_0x52d6c0['QfMqk'])+'\x0a';else{const _0x1b4ab5=JSON[_0x580e73(0x22e)](_0x48dbbb[_0x580e73(0x210)]),_0x425fc6=_0x1b4ab5[_0x580e73(0x200)](_0x525f29=>_0x525f29['name']===_0x20a4ab['gridProfile'])||null;if(_0x52d6c0[_0x580e73(0x1f7)](isUndefined,_0x425fc6))_0x52d6c0[_0x580e73(0x1b3)](_0x52d6c0[_0x580e73(0x17b)],_0x52d6c0['ebUgN'])?(_0x16bb49='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x20a4ab[_0x580e73(0x19c)]+_0x580e73(0x233),await _0x52d6c0[_0x580e73(0x161)](reportToGalactusAndSendToEDS,_0x20a4ab,_0x264ed5,_0x16bb49,messageTypes[_0x580e73(0x207)],_0x52d6c0[_0x580e73(0x194)],_0x52d6c0['IjVpH'],_0x52d6c0['YVhqO']),logger[_0x580e73(0x1e9)](_0x16bb49),process[_0x580e73(0x1fa)](0x1)):(_0x3e5d6d[_0x580e73(0x1e9)](_0x52d6c0['wylDe']),_0x2431ca[_0x580e73(0x1fa)](0x1));else{if(_0x52d6c0[_0x580e73(0x1fe)](_0x52d6c0['jsajD'],_0x52d6c0[_0x580e73(0x17c)])){const _0x171de5={};_0x171de5[_0x580e73(0x174)]=_0x52d6c0[_0x580e73(0x256)],_0x171de5['type']=_0x52d6c0['vAJFc'];const _0x384c0b={};_0x384c0b[_0x580e73(0x174)]=_0x52d6c0[_0x580e73(0x1fb)],_0x384c0b[_0x580e73(0x163)]=_0x52d6c0['vAJFc'];const _0x37009f={};_0x37009f[_0x580e73(0x174)]=_0x52d6c0[_0x580e73(0x239)],_0x37009f['type']=_0x52d6c0['vAJFc'];const _0x360276={};_0x360276[_0x580e73(0x174)]=_0x52d6c0[_0x580e73(0x1cb)],_0x360276[_0x580e73(0x163)]=_0x52d6c0[_0x580e73(0x1b0)];const _0x436510={};return _0x436510[_0x580e73(0x1c8)]=_0x171de5,_0x436510[_0x580e73(0x17d)]=_0x384c0b,_0x436510['region']=_0x37009f,_0x436510[_0x580e73(0x1dd)]=_0x360276,_0xf14d07[_0x580e73(0x198)](_0x2174db['pre_check'])[_0x580e73(0x215)](_0x5ad772)[_0x580e73(0x180)](_0x436510)[_0x580e73(0x197)](_0x52d6c0[_0x580e73(0x1d9)])[_0x580e73(0x177)];}else _0x1dcc5d=_0x425fc6;}}}else _0x52d6c0[_0x580e73(0x258)](_0x52d6c0[_0x580e73(0x24e)],_0x52d6c0[_0x580e73(0x24e)])?process[_0x580e73(0x1fa)](0x1):_0x4ff508[_0x580e73(0x1e9)]('error\x20stack\x20:\x20'+_0xfdde62[_0x580e73(0x1e9)][_0x580e73(0x205)]);const _0x11f155={};_0x11f155[_0x580e73(0x163)]=WS_EVENTS[_0x580e73(0x185)],_0x11f155[_0x580e73(0x1c4)]=_0x52d6c0[_0x580e73(0x216)],webSocketUtils['sendEventToBackend'](_0x264ed5,_0x11f155),global_registry[_0x580e73(0x1f5)]=_0x1dcc5d[_0x580e73(0x1f5)],global_registry[_0x580e73(0x18c)]=_0x1dcc5d[_0x580e73(0x187)],global_registry[_0x580e73(0x1f8)]=_0x1dcc5d[_0x580e73(0x1f8)];}}else _0x52d6c0[_0x580e73(0x196)](_0x52d6c0['ugTLc'],_0x52d6c0[_0x580e73(0x204)])?_0x534c22[_0x580e73(0x1c5)](_0x52d6c0['oMVXN']):(logger[_0x580e73(0x1e9)](_0x52d6c0[_0x580e73(0x254)]),process[_0x580e73(0x1fa)](0x1));}}else _0x2fa494=_0x43ab02;}catch(_0x550dc7){_0x52d6c0['Rjevi'](_0x52d6c0[_0x580e73(0x1aa)],_0x52d6c0[_0x580e73(0x208)])?_0x1a3a87[_0x580e73(0x1fa)](0x1):(_0x16bb49=_0x580e73(0x182)+_0x550dc7+':\x20'+_0x550dc7[_0x580e73(0x205)],logger[_0x580e73(0x1e9)](_0x16bb49),await _0x52d6c0[_0x580e73(0x161)](reportToGalactusAndSendToEDS,_0x20a4ab,_0x264ed5,_0x16bb49,messageTypes['ERROR'],_0x52d6c0[_0x580e73(0x194)],_0x52d6c0[_0x580e73(0x1a9)],_0x52d6c0[_0x580e73(0x186)]),process[_0x580e73(0x1fa)](0x1));}}function a17_0x4e2d(_0x474d48,_0xa366f5){const _0x1cd263=a17_0x1cd2();return a17_0x4e2d=function(_0x4e2df7,_0x3cab73){_0x4e2df7=_0x4e2df7-0x161;let _0x1d804=_0x1cd263[_0x4e2df7];return _0x1d804;},a17_0x4e2d(_0x474d48,_0xa366f5);}function a17_0x1cd2(){const _0xd6b870=['/packages/cli/get-all-grid-profiles','xXQvW','TXRnm','fCQzw','cloud-provider','Report\x20saved\x20in\x20','error\x20stack\x20:\x20','options','../../config/logger','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','\x20\x20Message:\x20','dcfsx','LOG','YVhqO','region','3MgngqM','hnOpm','grid\x20profile\x20flow\x20','isTrialGridAccessible','clusterRegion','writeFileSync','N/A','toLowerCase','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','AuyYx','log/report_','MZLDi','kmUqF','CLOUD_PROVIDER','bYhRS','help','usage','credential-not-found','method','uuid','gridProfile','QfMqk','kyyaz','pre-check-cluster-args-not-passed','sendEventToBackend','existsSync','ZhjtK','192tfIAOY','grid','NNnBL','bksMT','QSdTF','Success','kYzyG','KUEqk','qFXfx','username','init','bIgOU','pgdPl','vAJFc','headers','unable\x20to\x20verify\x20if\x20cluster\x20`','CHkoq','1980324VDKgBf',']\x20status\x20:\x20','Whitelisted\x20browserstack','`\x20,error\x20:\x20','string','2|0|4|1|3','requestId','TLSv1_2_client_method','handler','duWEe','command','kAXtT','bstackAccesskey','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','6NJqYNz','achxt','message','push','join','Dwndl','cluster-name','password','reconnecting-websocket','hwmCM','Cluster\x20`','PPrSJ','pre-check-grid-called','YtXHl','Qferk','sVtGv','lDSLw','pBFmw','eCWMa','cRiNx','code','debug','XfLhz','InDZQ','zcLmL','getUTCFullYear','DKZDr','grid-profile','Message:\x20','Grid\x20profile\x20fetched\x20for\x20pre-check','header','IOrvS','\x20data\x20:\x20','lTTAt','Failed\x20in\x20pre-check!\x20Error:\x20','HLFAI','getUTCDate','PCnBq','delay','error','hgtxP','pre_check','Error\x20Details:\x0a','SSL\x20Configured','cloud-provider-not-supported','PSZhS','KwNxg','throwHttpErrors','QYMqU','\x20===\x0a\x0a','gfhom','cloudProvider','lqapa','rLgtv','clusterName','JgVps','exit','PVdxk','NWifQ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Rjevi','HwDsC','find','length','MtkFG','Setting\x20cloud\x20provider\x20as\x20','ugTLc','stack','yvlSY','ERROR','eFJsj','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','===\x20Precheck\x20Report\x20-\x20','response','authHeader','MTPde','BGtjT','.txt','body','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','mGLDG','../../utils/utilityMethods','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','epilogue','EJWLW','lXnMh','Cluster\x20details\x0a-----------------------\x0a','Status:\x20','\x20\x20Code:\x20','Failure','pre-check-failed','TxCIc','TBTap','fNFOE','isCliToolInstalled','UPRBw','MwPVF','`\x20is\x20present\x20in\x20region\x20`','XqDtK','\x20error\x20:\x20','SuGpk','Dzmeo','status','YoeHo','12895060vXIjYB','Cluster\x20','jjzen','INFO','parse','yRZxe','accessResp','FzKUO','.\x20Please\x20provide\x20all\x20required\x20arguments.','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','18565HLiQKF','will\x20be\x20created','DNAUV','UiWAg','getUTCMonth','UvJDR','YPoFY','wqKde','\x20region\x20-\x20','voTvM','UyWCA','readFileSync','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','58620iPJGKr','SisHF','168304xMbKDM','vqzap','ZEqKK','wwjib','is\x20already\x20present','FmVbK','pre-check','moZIJ','UkvWm','1267814WNOGGw','hfYcU','GpNZn','rZxNr','cluster-check-failed-','gQSwl','uERVD','PcqEU','wylDe','info','fhHWP','Browserstack','ygLvl','stringify','enqED','ZFjQO','bstackUsername','isTls1_2_SUPPORTED','<UsernamePlaceholder>','ONQRu','oMVXN','type','RBvsu','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','isClusterPresent','pre-check-grid-profile-empty','got','jftrM','HwbVr','DtsdP','KWKEO','gXNra','https://','checkAccess','User\x20Access','bxuwz','195041vpomek','NRdQS','description','replace','\x20\x20Stack:\x20','argv','data'];a17_0x1cd2=function(){return _0xd6b870;};return a17_0x1cd2();}function printResponse(_0x500c3a,_0x560632){const _0x1dff77=a17_0x28d166,_0x31ad82={};_0x31ad82['QYMqU']=function(_0x24148f,_0x500a8b){return _0x24148f===_0x500a8b;},_0x31ad82['bIgOU']=_0x1dff77(0x1a2);const _0x5c5231=_0x31ad82;logger['info']('['+_0x500c3a+_0x1dff77(0x1b5)+_0x560632[_0x1dff77(0x228)]+_0x1dff77(0x1e2)+_0x560632[_0x1dff77(0x178)]+_0x1dff77(0x225)+_0x560632[_0x1dff77(0x1e9)]),_0x560632[_0x1dff77(0x1e9)]&&(_0x5c5231[_0x1dff77(0x1f2)](_0x5c5231[_0x1dff77(0x1ae)],_0x5c5231[_0x1dff77(0x1ae)])?logger['error'](_0x1dff77(0x17f)+_0x560632[_0x1dff77(0x1e9)]['stack']):(_0x4fe248[_0x1dff77(0x255)](_0x1dff77(0x203)+_0x530431['CLOUD_PROVIDER']+'\x20'),_0x1fbbc4[_0x1dff77(0x1f5)]=_0x4ffc17['CLOUD_PROVIDER']));}async function generateReport(_0x5af29d,_0x3e0ddb){const _0x37dc43=a17_0x28d166,_0x1ab085={'DKZDr':function(_0x15cfbb,_0x38cac8){return _0x15cfbb+_0x38cac8;},'LQCQl':_0x37dc43(0x1a8),'MXAdO':_0x37dc43(0x21b),'Qferk':function(_0x382119,_0x17448c){return _0x382119||_0x17448c;},'XqDtK':'N/A','Smvbj':_0x37dc43(0x1ec),'gfhom':_0x37dc43(0x218),'lDSLw':function(_0x4536bc,_0x611619){return _0x4536bc!=_0x611619;},'enqED':_0x37dc43(0x247),'hfYcU':_0x37dc43(0x235),'dcfsx':function(_0x1825ec){return _0x1825ec();}};let _0x310ff9=_0x37dc43(0x20a)+global_registry[_0x37dc43(0x1f5)]+_0x37dc43(0x1f3);return _0x5af29d['forEach']((_0x191173,_0x3aa1d0)=>{const _0x51c6e3=_0x37dc43,{header:_0x180b7f,response:_0x39aa9c}=_0x191173,{status:_0x723973,data:_0x57af5d,error:_0x45e878}=_0x39aa9c;_0x310ff9+=_0x180b7f+'\x20#'+_0x1ab085[_0x51c6e3(0x1dc)](_0x3aa1d0,0x1)+'\x0a',_0x310ff9+=_0x51c6e3(0x219)+(_0x723973?_0x1ab085['LQCQl']:_0x1ab085['MXAdO'])+'\x0a',_0x310ff9+=_0x51c6e3(0x1de)+_0x1ab085[_0x51c6e3(0x1d0)](_0x57af5d,_0x1ab085[_0x51c6e3(0x224)])+'\x0a',_0x45e878&&(_0x310ff9+=_0x1ab085['Smvbj'],_0x310ff9+='\x20\x20Message:\x20'+(_0x45e878[_0x51c6e3(0x1c4)]||_0x1ab085[_0x51c6e3(0x224)])+'\x0a',_0x310ff9+=_0x51c6e3(0x21a)+(_0x45e878[_0x51c6e3(0x1d6)]||_0x1ab085[_0x51c6e3(0x224)])+'\x0a',_0x310ff9+=_0x51c6e3(0x176)+(_0x45e878[_0x51c6e3(0x205)]||_0x1ab085[_0x51c6e3(0x224)])+'\x0a'),_0x310ff9+='\x0a\x0a';}),_0x310ff9+=_0x1ab085[_0x37dc43(0x1f4)],_0x1ab085[_0x37dc43(0x1d2)](_0x3e0ddb,null)?_0x310ff9+=_0x37dc43(0x22b)+global_registry['clusterName']+'\x20'+(_0x3e0ddb?_0x1ab085[_0x37dc43(0x25a)]:_0x1ab085[_0x37dc43(0x24d)])+'\x0a\x0a':_0x310ff9+='Cluster\x20'+global_registry['clusterName']+_0x37dc43(0x214),_0x310ff9+=_0x1ab085[_0x37dc43(0x184)](getSystemMetaData),_0x310ff9;};exports[a17_0x28d166(0x1bc)]=async function(_0x489808){const _0x3ab524=a17_0x28d166,_0x443676={'GdImC':function(_0x1e468a){return _0x1e468a();},'wzAjy':function(_0x2e2ed7){return _0x2e2ed7();},'cRiNx':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jjzen':function(_0x395901,_0x1085ea,_0x5f1619,_0x59b71a,_0x1d7ccd,_0x2ed520,_0x9c2327,_0x503a5f){return _0x395901(_0x1085ea,_0x5f1619,_0x59b71a,_0x1d7ccd,_0x2ed520,_0x9c2327,_0x503a5f);},'YtXHl':_0x3ab524(0x1ce),'yRZxe':_0x3ab524(0x199),'UyWCA':_0x3ab524(0x1e9),'PSZhS':function(_0x43b3c0,_0x45b437,_0x577fc4,_0x4aca1c,_0x1b9701,_0x336809,_0x3e7722){return _0x43b3c0(_0x45b437,_0x577fc4,_0x4aca1c,_0x1b9701,_0x336809,_0x3e7722);},'QSdTF':function(_0x57b867){return _0x57b867();},'YoeHo':_0x3ab524(0x25e),'nbyyN':'<PasswordPlaceholder>','PcqEU':function(_0x3eb524,_0x5f06e1,_0x11482d){return _0x3eb524(_0x5f06e1,_0x11482d);},'gKbLf':'dummy-grid','UiWAg':'toolInstalledResp','lXQhL':_0x3ab524(0x1b9),'SuGpk':_0x3ab524(0x230),'chCzp':_0x3ab524(0x18b),'YvzLm':function(_0x4e3027,_0x3d735e){return _0x4e3027(_0x3d735e);},'MwPVF':_0x3ab524(0x1bb),'gXNra':function(_0x22821a,_0x2d84e7,_0x2c64ef){return _0x22821a(_0x2d84e7,_0x2c64ef);},'fiBjj':_0x3ab524(0x25d),'aKlTx':'Tool\x20Installed','JgVps':_0x3ab524(0x170),'MZLDi':_0x3ab524(0x1b6),'wqKde':_0x3ab524(0x1ed),'rZxNr':function(_0x1074e3,_0x4fb0cd,_0x24300a){return _0x1074e3(_0x4fb0cd,_0x24300a);},'RBvsu':function(_0x2d6554,_0xbd1653){return _0x2d6554+_0xbd1653;},'KWKEO':'utf-8','lXnMh':_0x3ab524(0x21c)};let _0x3020f7,_0x1e6fd2;try{global_registry[_0x3ab524(0x1ba)]=_0x443676['GdImC'](uuidv4);!fs[_0x3ab524(0x1a1)](_0x443676['wzAjy'](getCredentialsPath))&&(_0x1e6fd2=_0x443676[_0x3ab524(0x1d5)],logger[_0x3ab524(0x1e9)](_0x1e6fd2),await _0x443676[_0x3ab524(0x22c)](reportToGalactusAndSendToEDS,_0x489808,_0x3020f7,_0x1e6fd2,messageTypes[_0x3ab524(0x207)],_0x443676[_0x3ab524(0x1cf)],_0x443676[_0x3ab524(0x22f)],_0x443676[_0x3ab524(0x23e)]),process[_0x3ab524(0x1fa)](0x1));_0x443676[_0x3ab524(0x1ef)](sendInstrumentationEvent,_0x489808,_0x443676[_0x3ab524(0x1cf)],messageTypes[_0x3ab524(0x22d)],null,null,_0x489808);const _0xbaa737=JSON[_0x3ab524(0x22e)](fs[_0x3ab524(0x23f)](_0x443676[_0x3ab524(0x1a7)](getCredentialsPath)));global_registry[_0x3ab524(0x25c)]=_0xbaa737['Browserstack'][_0x3ab524(0x1ac)],global_registry[_0x3ab524(0x1c0)]=_0xbaa737[_0x3ab524(0x257)]['password'];const _0x21e137=WS_ENDPOINT[_0x3ab524(0x175)](_0x443676[_0x3ab524(0x229)],_0xbaa737[_0x3ab524(0x257)]['username'])['replace'](_0x443676['nbyyN'],_0xbaa737[_0x3ab524(0x257)][_0x3ab524(0x1c9)]),_0x39c4bb={};_0x39c4bb['WebSocket']=ws,_0x39c4bb['connectionTimeout']=0x36ee80,_0x3020f7=new ReconnectingWebSocket(_0x21e137,[],_0x39c4bb),global_registry['authHeader']=_0x443676[_0x3ab524(0x253)](getAuthHeader,global_registry[_0x3ab524(0x25c)],global_registry[_0x3ab524(0x1c0)]),await _0x443676[_0x3ab524(0x253)](inputValidation,_0x489808,_0x3020f7),logger[_0x3ab524(0x255)](_0x3ab524(0x1fd)+global_registry[_0x3ab524(0x1f5)]+_0x3ab524(0x23c)+global_registry['clusterRegion']);let _0x3fcae2=await _0x443676['PSZhS'](getCloudProviderObjectWithOutInit,global_registry[_0x3ab524(0x1f5)],global_registry[_0x3ab524(0x1f8)],_0x443676['gKbLf'],_0x3020f7,webSocketUtils,_0x489808);const _0x1a4dc8=await _0x3fcae2[_0x3ab524(0x220)]();_0x443676[_0x3ab524(0x253)](printResponse,_0x443676[_0x3ab524(0x237)],_0x1a4dc8),_0x3fcae2=await _0x3fcae2[_0x3ab524(0x1ad)]();let _0x532c2f=![];try{_0x532c2f=await _0x3fcae2[_0x3ab524(0x166)]();}catch(_0x2d1ade){const _0x2fb097=_0x443676['lXQhL']['split']('|');let _0x360175=0x0;while(!![]){switch(_0x2fb097[_0x360175++]){case'0':_0x532c2f=null;continue;case'1':_0x1e6fd2+='\x0a'+JSON[_0x3ab524(0x259)](_0x2d1ade[_0x3ab524(0x205)]);continue;case'2':_0x1e6fd2=_0x3ab524(0x1b2)+global_registry[_0x3ab524(0x1f8)]+_0x3ab524(0x223)+global_registry[_0x3ab524(0x18c)]+_0x3ab524(0x1b7)+_0x2d1ade;continue;case'3':await _0x443676['jjzen'](reportToGalactusAndSendToEDS,_0x489808,_0x3020f7,_0x1e6fd2,messageTypes[_0x3ab524(0x207)],_0x443676['YtXHl'],_0x3ab524(0x250)+global_registry[_0x3ab524(0x1f5)],_0x443676[_0x3ab524(0x23e)]);continue;case'4':logger[_0x3ab524(0x1e9)](_0x1e6fd2);continue;}break;}}_0x532c2f&&logger[_0x3ab524(0x255)](_0x3ab524(0x1cc)+global_registry['clusterName']+'`\x20already\x20exists');const _0x300274=await _0x3fcae2[_0x3ab524(0x16f)]();_0x443676['PcqEU'](printResponse,_0x443676[_0x3ab524(0x226)],_0x300274);const _0x4e4438=await _0x443676[_0x3ab524(0x1a7)](curlRequest);_0x443676[_0x3ab524(0x253)](printResponse,_0x443676['chCzp'],_0x4e4438);const _0x32cccf=await _0x443676['YvzLm'](isTlsSupported,_0x443676[_0x3ab524(0x222)]);_0x443676[_0x3ab524(0x16d)](printResponse,_0x443676['fiBjj'],_0x32cccf);const _0x57a7b0={};_0x57a7b0[_0x3ab524(0x1e0)]=_0x443676['aKlTx'],_0x57a7b0[_0x3ab524(0x20b)]=_0x1a4dc8;const _0x1effcc={};_0x1effcc[_0x3ab524(0x1e0)]=_0x443676[_0x3ab524(0x1f9)],_0x1effcc['response']=_0x300274;const _0x505142={};_0x505142['header']=_0x443676[_0x3ab524(0x193)],_0x505142[_0x3ab524(0x20b)]=_0x4e4438;const _0x1ad65b={};_0x1ad65b[_0x3ab524(0x1e0)]=_0x443676[_0x3ab524(0x23b)],_0x1ad65b[_0x3ab524(0x20b)]=_0x32cccf;const _0x987ffe=[_0x57a7b0,_0x1effcc,_0x505142,_0x1ad65b],_0x37314e=await _0x443676[_0x3ab524(0x24f)](generateReport,_0x987ffe,_0x532c2f),_0x39d3e4=new Date(),_0x247ddc=_0x39d3e4[_0x3ab524(0x1db)]()+'_'+_0x443676[_0x3ab524(0x164)](_0x39d3e4[_0x3ab524(0x238)](),0x1)+'_'+_0x39d3e4[_0x3ab524(0x1e6)]()+'_'+_0x39d3e4['getUTCHours']()+'_'+_0x39d3e4['getUTCMinutes'](),_0x317483=_0x3ab524(0x192)+_0x247ddc+_0x3ab524(0x20f);fs[_0x3ab524(0x18d)](_0x317483,_0x37314e,_0x443676[_0x3ab524(0x16c)]),logger[_0x3ab524(0x255)](_0x3ab524(0x17e)+_0x317483),process[_0x3ab524(0x1fa)](0x0);}catch(_0x101576){let _0x578870=_0x3ab524(0x1e4)+_0x101576+'\x20';logger[_0x3ab524(0x1e9)](_0x578870),_0x578870+='\x0a'+JSON[_0x3ab524(0x259)](_0x101576[_0x3ab524(0x205)]),logger[_0x3ab524(0x1d7)]('stack\x20trace\x20'+_0x101576[_0x3ab524(0x205)]);if(_0x3020f7){const _0x3121dd={};_0x3121dd[_0x3ab524(0x163)]=WS_EVENTS['LOG'],_0x3121dd[_0x3ab524(0x1c4)]=_0x578870,webSocketUtils[_0x3ab524(0x1a0)](_0x3020f7,_0x3121dd,_0x443676[_0x3ab524(0x23e)],!![]);}await webSocketUtils[_0x3ab524(0x1e8)](0x7d0);const _0x1b4667={};_0x1b4667[_0x3ab524(0x1e9)]=_0x578870,await _0x443676[_0x3ab524(0x1ef)](sendInstrumentationEvent,_0x489808,_0x443676['YtXHl'],messageTypes[_0x3ab524(0x207)],_0x443676[_0x3ab524(0x217)],_0x1b4667,_0x489808),process[_0x3ab524(0x1fa)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x38e6(_0x3d015f,_0x127da3){const _0x245207=a18_0x2452();return a18_0x38e6=function(_0x38e651,_0x50a2f3){_0x38e651=_0x38e651-0x1aa;let _0x50e729=_0x245207[_0x38e651];return _0x50e729;},a18_0x38e6(_0x3d015f,_0x127da3);}function a18_0x2452(){const _0xd124b1=['1408izNsOk','600CEHvOc','604480QDSLCr','Lmnsg','usage','../config/constants','480hVzYkd','desc','demandCommand','1452MppAMa','5571192NTptQV','46884LFgdFe','help','start','Azmxm','1464lScINH','handler','recommendCommands','142821XMvmhc','183894sVXUuo','builder','4473kVAYcc','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0x2452=function(){return _0xd124b1;};return a18_0x2452();}const a18_0x414c0d=a18_0x38e6;(function(_0x21262d,_0x363709){const _0x4d1f46=a18_0x38e6,_0x14d939=_0x21262d();while(!![]){try{const _0x53f331=parseInt(_0x4d1f46(0x1bf))/0x1+parseInt(_0x4d1f46(0x1ae))/0x2+-parseInt(_0x4d1f46(0x1b5))/0x3*(parseInt(_0x4d1f46(0x1bb))/0x4)+parseInt(_0x4d1f46(0x1b2))/0x5*(parseInt(_0x4d1f46(0x1b7))/0x6)+-parseInt(_0x4d1f46(0x1aa))/0x7*(-parseInt(_0x4d1f46(0x1ac))/0x8)+-parseInt(_0x4d1f46(0x1be))/0x9*(parseInt(_0x4d1f46(0x1ad))/0xa)+parseInt(_0x4d1f46(0x1b6))/0xb;if(_0x53f331===_0x363709)break;else _0x14d939['push'](_0x14d939['shift']());}catch(_0x4aa0e5){_0x14d939['push'](_0x14d939['shift']());}}}(a18_0x2452,0xb13aa));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x414c0d(0x1b1));exports['command']='start',exports[a18_0x414c0d(0x1b3)]=a18_0x414c0d(0x1ab),exports[a18_0x414c0d(0x1c0)]=function(_0x1350fe){const _0xe914eb=a18_0x414c0d,_0x28cfff={};_0x28cfff[_0xe914eb(0x1af)]='start_commands',_0x28cfff['Azmxm']=_0xe914eb(0x1b8);const _0x1fb611=_0x28cfff;return _0x1350fe[_0xe914eb(0x1b0)](HELP_HEADER_MESSAGE[_0xe914eb(0x1b9)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x1fb611[_0xe914eb(0x1af)])[_0xe914eb(0x1b4)]()[_0xe914eb(0x1bd)]()['strict']()[_0xe914eb(0x1b8)](_0x1fb611[_0xe914eb(0x1ba)]);},exports[a18_0x414c0d(0x1bc)]=function(_0x1d060c){};
1
+ function a18_0x54f0(){const _0x4fb5c3=['commandDir','start','nkrul','epilogue','desc','449148ZchqZJ','FQNhc','36711QDHyqx','demandCommand','help','2175960mnfLNU','command','../config/constants','961806VtlrNU','start_commands','10HBboPE','Start\x20an\x20existing\x20Automation\x20grid.','strict','1671560gbpuxC','569736gaWdZd','50dJlzie','usage','1eOKsmr','2275399DOkECu'];a18_0x54f0=function(){return _0x4fb5c3;};return a18_0x54f0();}const a18_0x3a7469=a18_0x5614;(function(_0x40398e,_0x1c137b){const _0x560131=a18_0x5614,_0x16918b=_0x40398e();while(!![]){try{const _0x402b97=parseInt(_0x560131(0x11b))/0x1*(-parseInt(_0x560131(0x10a))/0x2)+parseInt(_0x560131(0x112))/0x3+parseInt(_0x560131(0x117))/0x4+-parseInt(_0x560131(0x114))/0x5*(parseInt(_0x560131(0x118))/0x6)+-parseInt(_0x560131(0x11c))/0x7+parseInt(_0x560131(0x10f))/0x8+-parseInt(_0x560131(0x10c))/0x9*(-parseInt(_0x560131(0x119))/0xa);if(_0x402b97===_0x1c137b)break;else _0x16918b['push'](_0x16918b['shift']());}catch(_0x5c6e0d){_0x16918b['push'](_0x16918b['shift']());}}}(a18_0x54f0,0x4720b));function a18_0x5614(_0x29a301,_0x917422){const _0x54f0be=a18_0x54f0();return a18_0x5614=function(_0x5614f0,_0x4d79e3){_0x5614f0=_0x5614f0-0x106;let _0x32e52a=_0x54f0be[_0x5614f0];return _0x32e52a;},a18_0x5614(_0x29a301,_0x917422);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3a7469(0x111));exports[a18_0x3a7469(0x110)]=a18_0x3a7469(0x106),exports[a18_0x3a7469(0x109)]=a18_0x3a7469(0x115),exports['builder']=function(_0x25f91f){const _0xd209ec=a18_0x3a7469,_0x20c6e6={};_0x20c6e6[_0xd209ec(0x107)]=_0xd209ec(0x113),_0x20c6e6[_0xd209ec(0x10b)]=_0xd209ec(0x10e);const _0x9c028b=_0x20c6e6;return _0x25f91f[_0xd209ec(0x11a)](HELP_HEADER_MESSAGE['start'])[_0xd209ec(0x108)](HELP_FOOTER_MESSAGE)[_0xd209ec(0x11d)](_0x9c028b[_0xd209ec(0x107)])[_0xd209ec(0x10d)]()['recommendCommands']()[_0xd209ec(0x116)]()['help'](_0x9c028b[_0xd209ec(0x10b)]);},exports['handler']=function(_0x308565){};
@@ -1 +1 @@
1
- const a19_0x16b481=a19_0x3043;function a19_0xa8bb(){const _0x5dd61b=['init-not-called','2269736HxHyHU','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Starting\x20grid\x20','ERROR','aKDyu','stack','bstackUsername','Adding\x20Websocket\x20listeners','uSiZX','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','992234UwTExp','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','rQpUQ','RFEiA','15Ngcxtf','../../utils/utilityMethods','gJTJJ','13838847QeXtxF','error','BkonP','help','region','name','statusCode','XAGHg','wayci','Grid\x20started','info','WebSocket','Browserstack','mHClv','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','default','connectionTimeout','37106GiQQpm','clusterRegion','grid-id','pYljq','Skip\x20insecure\x20cert\x20verification.','usage','../../utils/createk8sClient','ZnZuH','cloudProvider','wXVUm','../../config/logger','string','description','debug','readFileSync','GKVBv','<UsernamePlaceholder>','Start\x20an\x20existing\x20Automation\x20grid.','unauthorised','bstackAccesskey','../../utils/instrumentationUtils','wkmLB','WyDfz','server-error','body','Ergea','start-grid-called','type','62832sXwgxp','stringify','16974aLpSDz','ZKgkb','exit','6vUbBnG','grid','wsJGZ','builder','command','handler','VAXPF','options','user','RMxpU','2755560uxWusC','4856Wwibfs','password','../../config/constants','INFO','parse','gridId','DMapS','JMBEE','skip-tls-cert-verify','boolean','skipTlsCertVerify','135gkRRAA','oukjm','existsSync','addListeners','FsWdE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','message','reconnecting-websocket','username','clusterName'];a19_0xa8bb=function(){return _0x5dd61b;};return a19_0xa8bb();}(function(_0x50c8e5,_0x3d5be1){const _0x1a60f3=a19_0x3043,_0x22c2cf=_0x50c8e5();while(!![]){try{const _0x5eb536=-parseInt(_0x1a60f3(0x170))/0x1+-parseInt(_0x1a60f3(0x188))/0x2*(parseInt(_0x1a60f3(0x15b))/0x3)+-parseInt(_0x1a60f3(0x140))/0x4*(parseInt(_0x1a60f3(0x174))/0x5)+parseInt(_0x1a60f3(0x145))/0x6*(parseInt(_0x1a60f3(0x166))/0x7)+-parseInt(_0x1a60f3(0x150))/0x8*(-parseInt(_0x1a60f3(0x142))/0x9)+-parseInt(_0x1a60f3(0x14f))/0xa+parseInt(_0x1a60f3(0x177))/0xb;if(_0x5eb536===_0x3d5be1)break;else _0x22c2cf['push'](_0x22c2cf['shift']());}catch(_0x4d9b4c){_0x22c2cf['push'](_0x22c2cf['shift']());}}}(a19_0xa8bb,0x8cf30));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x16b481(0x162)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x16b481(0x152)),{logger}=require(a19_0x16b481(0x12e)),{getCredentialsPath,getGridDetails}=require(a19_0x16b481(0x175)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x16b481(0x138)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x16b481(0x12a)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x3043(_0x5acd14,_0x31a841){const _0xa8bb40=a19_0xa8bb();return a19_0x3043=function(_0x3043b2,_0x27d487){_0x3043b2=_0x3043b2-0x128;let _0x5838fd=_0xa8bb40[_0x3043b2];return _0x5838fd;},a19_0x3043(_0x5acd14,_0x31a841);}exports[a19_0x16b481(0x149)]=a19_0x16b481(0x146),exports['desc']=a19_0x16b481(0x135),exports[a19_0x16b481(0x148)]=function(_0x11b65e){const _0x4871f7=a19_0x16b481,_0x3dbc4f={};_0x3dbc4f[_0x4871f7(0x13d)]=_0x4871f7(0x171),_0x3dbc4f[_0x4871f7(0x156)]=_0x4871f7(0x12f),_0x3dbc4f[_0x4871f7(0x12d)]=_0x4871f7(0x128),_0x3dbc4f[_0x4871f7(0x143)]=_0x4871f7(0x159),_0x3dbc4f['rQpUQ']=_0x4871f7(0x17a);const _0x350ecb=_0x3dbc4f,_0x2314cc={};_0x2314cc[_0x4871f7(0x130)]=_0x350ecb[_0x4871f7(0x13d)],_0x2314cc[_0x4871f7(0x13f)]=_0x350ecb['DMapS'];const _0x4e81fe={};_0x4e81fe[_0x4871f7(0x130)]=_0x350ecb[_0x4871f7(0x12d)],_0x4e81fe[_0x4871f7(0x13f)]=_0x350ecb[_0x4871f7(0x143)],_0x4e81fe[_0x4871f7(0x186)]=![];const _0x32b4d4={};return _0x32b4d4[_0x4871f7(0x18a)]=_0x2314cc,_0x32b4d4[_0x4871f7(0x158)]=_0x4e81fe,_0x11b65e[_0x4871f7(0x129)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4871f7(0x14c)](_0x32b4d4)[_0x4871f7(0x17a)](_0x350ecb[_0x4871f7(0x172)])['argv'];},exports[a19_0x16b481(0x14a)]=async function(_0x25d8ee){const _0x34ed49=a19_0x16b481,_0x9acfbf={'RFEiA':_0x34ed49(0x185),'VAXPF':function(_0x1094ed){return _0x1094ed();},'TGKyh':_0x34ed49(0x16f),'ZnZuH':function(_0x45ed53,_0xe767d6,_0x9194b7,_0x56fff5,_0x4c0e37,_0x5f2552,_0x4cb436){return _0x45ed53(_0xe767d6,_0x9194b7,_0x56fff5,_0x4c0e37,_0x5f2552,_0x4cb436);},'wkmLB':_0x34ed49(0x13e),'JMBEE':_0x34ed49(0x165),'FsWdE':_0x34ed49(0x134),'WyDfz':'<PasswordPlaceholder>','oukjm':_0x34ed49(0x16d),'dbGtP':function(_0x55cc48,_0x4b29a3,_0x32e2b1,_0x573d0c){return _0x55cc48(_0x4b29a3,_0x32e2b1,_0x573d0c);},'gJTJJ':function(_0x5e88f3,_0x5d0f70,_0xb80374){return _0x5e88f3(_0x5d0f70,_0xb80374);},'BkonP':function(_0x1ca32b,_0x2f5e14,_0x2d843a){return _0x1ca32b(_0x2f5e14,_0x2d843a);},'uSiZX':_0x34ed49(0x180),'aKDyu':function(_0x2b203a,_0x28faf0){return _0x2b203a===_0x28faf0;},'GKVBv':_0x34ed49(0x167),'RMxpU':function(_0x570218,_0x5a6c99,_0x31499d,_0x53232e,_0x372c16,_0x156b80,_0x3a46c0){return _0x570218(_0x5a6c99,_0x31499d,_0x53232e,_0x372c16,_0x156b80,_0x3a46c0);},'wsJGZ':_0x34ed49(0x136),'XAGHg':function(_0x5c2a7b,_0x44aa9c){return _0x5c2a7b===_0x44aa9c;},'mHClv':'invalid-grid-id','wayci':function(_0x1701c6,_0x38f689,_0x5d5265,_0xc08c70,_0xa30b39,_0x4eb75b,_0x3cfab6){return _0x1701c6(_0x38f689,_0x5d5265,_0xc08c70,_0xa30b39,_0x4eb75b,_0x3cfab6);},'pYljq':_0x34ed49(0x13b)};let _0x3033ab;try{!_0x25d8ee['gridId']&&(logger[_0x34ed49(0x178)](_0x9acfbf[_0x34ed49(0x173)]),process['exit'](0x1));!fs[_0x34ed49(0x15d)](_0x9acfbf[_0x34ed49(0x14b)](getCredentialsPath))&&(logger[_0x34ed49(0x178)](_0x9acfbf['TGKyh']),await _0x9acfbf[_0x34ed49(0x12b)](sendInstrumentationEvent,_0x25d8ee,_0x9acfbf[_0x34ed49(0x139)],messageTypes['ERROR'],_0x9acfbf[_0x34ed49(0x157)],null,_0x25d8ee),process[_0x34ed49(0x144)](0x1));logger[_0x34ed49(0x181)](_0x34ed49(0x168)+_0x25d8ee[_0x34ed49(0x155)]),await _0x9acfbf[_0x34ed49(0x12b)](sendInstrumentationEvent,_0x25d8ee,_0x9acfbf['wkmLB'],messageTypes[_0x34ed49(0x153)],null,null,_0x25d8ee);const _0x200cf8=JSON[_0x34ed49(0x154)](fs[_0x34ed49(0x132)](_0x9acfbf[_0x34ed49(0x14b)](getCredentialsPath)));global_registry[_0x34ed49(0x16c)]=_0x200cf8[_0x34ed49(0x183)][_0x34ed49(0x163)],global_registry[_0x34ed49(0x137)]=_0x200cf8['Browserstack']['password'];const _0x5cca5b=WS_ENDPOINT['replace'](_0x9acfbf[_0x34ed49(0x15f)],_0x200cf8['Browserstack'][_0x34ed49(0x163)])['replace'](_0x9acfbf[_0x34ed49(0x13a)],_0x200cf8['Browserstack'][_0x34ed49(0x151)]),_0x5a0280={};_0x5a0280[_0x34ed49(0x182)]=ws,_0x5a0280[_0x34ed49(0x187)]=0x36ee80,_0x3033ab=new ReconnectingWebSocket(_0x5cca5b,[],_0x5a0280),logger[_0x34ed49(0x131)](_0x9acfbf[_0x34ed49(0x15c)]),webSocketUtils[_0x34ed49(0x15e)](_0x3033ab,_0x25d8ee[_0x34ed49(0x14d)],_0x25d8ee[_0x34ed49(0x151)]);const [_0x53b6a2,_0x6f31e0]=await _0x9acfbf['dbGtP'](getGridDetails,_0x200cf8[_0x34ed49(0x183)]['username'],_0x200cf8[_0x34ed49(0x183)][_0x34ed49(0x151)],_0x25d8ee[_0x34ed49(0x155)]);if(_0x6f31e0){const _0x4fc36d=_0x6f31e0['info'];global_registry[_0x34ed49(0x12c)]=_0x4fc36d[_0x34ed49(0x12c)],global_registry[_0x34ed49(0x189)]=_0x4fc36d[_0x34ed49(0x17b)],global_registry['clusterName']=_0x4fc36d[_0x34ed49(0x164)];const _0x3af40c=await _0x9acfbf[_0x34ed49(0x12b)](getCloudProviderObject,_0x4fc36d[_0x34ed49(0x12c)],_0x4fc36d[_0x34ed49(0x164)],_0x4fc36d[_0x34ed49(0x17c)],_0x3033ab,webSocketUtils,_0x25d8ee),[_0xf08015,_0x1c3ec1,_0x59df72,_0x2a5628,_0x5742c4,_0x4a252a]=await _0x9acfbf[_0x34ed49(0x176)](createK8sClient,_0x3af40c,_0x25d8ee[_0x34ed49(0x15a)]);await _0x9acfbf[_0x34ed49(0x179)](scaleUpHubDeployment,_0x1c3ec1,_0x4fc36d[_0x34ed49(0x17c)]),logger[_0x34ed49(0x181)](_0x9acfbf[_0x34ed49(0x16e)]),process[_0x34ed49(0x144)](0x0);}_0x9acfbf[_0x34ed49(0x16a)](_0x53b6a2[_0x34ed49(0x17d)],0x191)&&(logger['error'](_0x9acfbf[_0x34ed49(0x133)]),await _0x9acfbf[_0x34ed49(0x14e)](sendInstrumentationEvent,_0x25d8ee,_0x9acfbf['wkmLB'],messageTypes[_0x34ed49(0x169)],_0x9acfbf[_0x34ed49(0x147)],null,_0x25d8ee),process[_0x34ed49(0x144)](0x1)),_0x9acfbf[_0x34ed49(0x17e)](_0x53b6a2[_0x34ed49(0x17d)],0x190)&&(logger[_0x34ed49(0x178)](JSON[_0x34ed49(0x154)](_0x53b6a2[_0x34ed49(0x13c)])[_0x34ed49(0x161)]),await _0x9acfbf['ZnZuH'](sendInstrumentationEvent,_0x25d8ee,_0x9acfbf[_0x34ed49(0x139)],messageTypes['ERROR'],_0x9acfbf[_0x34ed49(0x184)],null,_0x25d8ee),process[_0x34ed49(0x144)](0x1)),logger[_0x34ed49(0x178)](_0x34ed49(0x160)+JSON[_0x34ed49(0x141)](_0x53b6a2)),await _0x9acfbf[_0x34ed49(0x17f)](sendInstrumentationEvent,_0x25d8ee,_0x9acfbf[_0x34ed49(0x139)],messageTypes[_0x34ed49(0x169)],_0x9acfbf[_0x34ed49(0x18b)],_0x53b6a2,_0x25d8ee),process[_0x34ed49(0x144)](0x1);}catch(_0x4d9572){const _0x302828='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x4d9572+'\x20\x0a'+JSON[_0x34ed49(0x141)](_0x4d9572[_0x34ed49(0x16b)])+'\x20';logger[_0x34ed49(0x178)](_0x302828),process[_0x34ed49(0x144)](0x1);}};
1
+ const a19_0x56ad6b=a19_0x31bd;(function(_0x287725,_0x3f3e9c){const _0x2186ab=a19_0x31bd,_0x217f45=_0x287725();while(!![]){try{const _0x54914d=-parseInt(_0x2186ab(0xbf))/0x1*(-parseInt(_0x2186ab(0xa5))/0x2)+parseInt(_0x2186ab(0xa6))/0x3*(-parseInt(_0x2186ab(0xdd))/0x4)+parseInt(_0x2186ab(0xd8))/0x5+parseInt(_0x2186ab(0xe7))/0x6+parseInt(_0x2186ab(0xc2))/0x7*(-parseInt(_0x2186ab(0xce))/0x8)+parseInt(_0x2186ab(0xe8))/0x9*(-parseInt(_0x2186ab(0xb9))/0xa)+-parseInt(_0x2186ab(0xaf))/0xb;if(_0x54914d===_0x3f3e9c)break;else _0x217f45['push'](_0x217f45['shift']());}catch(_0x35e5f8){_0x217f45['push'](_0x217f45['shift']());}}}(a19_0x2d31,0x19b15));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x56ad6b(0xf9)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x56ad6b(0xb4)),{scaleUpHubDeployment}=require(a19_0x56ad6b(0xc5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x56ad6b(0xe3)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x56ad6b(0xc6));exports[a19_0x56ad6b(0xa9)]=a19_0x56ad6b(0xa8),exports[a19_0x56ad6b(0xfb)]=a19_0x56ad6b(0xb5),exports['builder']=function(_0x4b4d97){const _0x557aa5=a19_0x56ad6b,_0x37da14={};_0x37da14[_0x557aa5(0xa4)]=_0x557aa5(0xe2),_0x37da14[_0x557aa5(0xdf)]='string',_0x37da14[_0x557aa5(0xe1)]=_0x557aa5(0xb8),_0x37da14[_0x557aa5(0xb7)]=_0x557aa5(0xd3),_0x37da14['BSVHc']='help';const _0x2ead8e=_0x37da14,_0x1d9b92={};_0x1d9b92[_0x557aa5(0xbc)]=_0x2ead8e[_0x557aa5(0xa4)],_0x1d9b92[_0x557aa5(0xae)]=_0x2ead8e[_0x557aa5(0xdf)];const _0x393d88={};_0x393d88[_0x557aa5(0xbc)]=_0x2ead8e[_0x557aa5(0xe1)],_0x393d88['type']=_0x2ead8e[_0x557aa5(0xb7)],_0x393d88[_0x557aa5(0xc8)]=![];const _0x52419d={};return _0x52419d['grid-id']=_0x1d9b92,_0x52419d['skip-tls-cert-verify']=_0x393d88,_0x4b4d97[_0x557aa5(0xd2)](HELP_HEADER_MESSAGE[_0x557aa5(0xeb)])[_0x557aa5(0xac)](HELP_FOOTER_MESSAGE)[_0x557aa5(0xb2)](_0x52419d)[_0x557aa5(0xd0)](_0x2ead8e[_0x557aa5(0xd7)])[_0x557aa5(0xf8)];},exports[a19_0x56ad6b(0xca)]=async function(_0x43e020){const _0x4889db=a19_0x56ad6b,_0x44040f={'SsTJr':_0x4889db(0xcb),'bCAAF':function(_0x5d88cf){return _0x5d88cf();},'kuZDq':_0x4889db(0xda),'uSMOQ':function(_0x490a86,_0x2c0aca,_0x2d8b6c,_0x5e6d5a,_0x5118ca,_0x49543d,_0x8a4dff){return _0x490a86(_0x2c0aca,_0x2d8b6c,_0x5e6d5a,_0x5118ca,_0x49543d,_0x8a4dff);},'jgFDR':_0x4889db(0xc7),'zADVp':_0x4889db(0xed),'vrIMZ':function(_0x37569b,_0x44d105,_0x191e93,_0x25ff09,_0x38e4e3,_0x489f89,_0x33c403){return _0x37569b(_0x44d105,_0x191e93,_0x25ff09,_0x38e4e3,_0x489f89,_0x33c403);},'dynch':_0x4889db(0xd4),'gmcfC':_0x4889db(0xbe),'CfCQx':'Adding\x20Websocket\x20listeners','cimml':function(_0x4a9af4,_0x32b836,_0x438176,_0x24774f){return _0x4a9af4(_0x32b836,_0x438176,_0x24774f);},'IxEYq':function(_0x223a17,_0x957233,_0x4a0227){return _0x223a17(_0x957233,_0x4a0227);},'ddWFp':_0x4889db(0xf7),'JMQrz':function(_0x12186f,_0xc5e690){return _0x12186f===_0xc5e690;},'iHKRI':_0x4889db(0xe0),'RoFfm':function(_0x18ee4b,_0x113201,_0xbf364f,_0x56472a,_0x38b74b,_0x438f61,_0x2f2773){return _0x18ee4b(_0x113201,_0xbf364f,_0x56472a,_0x38b74b,_0x438f61,_0x2f2773);},'OZCjg':'unauthorised','tlUXL':function(_0x28cfc7,_0x50ed98){return _0x28cfc7===_0x50ed98;},'ZHxyP':_0x4889db(0xf1),'GvXPP':'server-error'};let _0x51bb7a;try{!_0x43e020[_0x4889db(0xe5)]&&(logger['error'](_0x44040f[_0x4889db(0xb3)]),process[_0x4889db(0xfa)](0x1));!fs[_0x4889db(0xea)](_0x44040f[_0x4889db(0xf3)](getCredentialsPath))&&(logger[_0x4889db(0xe6)](_0x44040f[_0x4889db(0xbb)]),await _0x44040f[_0x4889db(0xec)](sendInstrumentationEvent,_0x43e020,_0x44040f[_0x4889db(0xdc)],messageTypes[_0x4889db(0xba)],_0x44040f['zADVp'],null,_0x43e020),process[_0x4889db(0xfa)](0x1));logger[_0x4889db(0xf5)](_0x4889db(0xa1)+_0x43e020[_0x4889db(0xe5)]),await _0x44040f[_0x4889db(0xd1)](sendInstrumentationEvent,_0x43e020,_0x44040f['jgFDR'],messageTypes['INFO'],null,null,_0x43e020);const _0x5c1496=JSON[_0x4889db(0xb6)](fs[_0x4889db(0xc0)](_0x44040f['bCAAF'](getCredentialsPath)));global_registry['bstackUsername']=_0x5c1496['Browserstack'][_0x4889db(0xf6)],global_registry[_0x4889db(0xfd)]=_0x5c1496[_0x4889db(0xcd)]['password'];const _0x4d8d2a=WS_ENDPOINT['replace'](_0x44040f[_0x4889db(0xc9)],_0x5c1496['Browserstack'][_0x4889db(0xf6)])[_0x4889db(0xc4)](_0x44040f[_0x4889db(0xd9)],_0x5c1496['Browserstack'][_0x4889db(0xbd)]),_0x3a35ab={};_0x3a35ab[_0x4889db(0xc3)]=ws,_0x3a35ab[_0x4889db(0xc1)]=0x36ee80,_0x51bb7a=new ReconnectingWebSocket(_0x4d8d2a,[],_0x3a35ab),logger[_0x4889db(0xee)](_0x44040f['CfCQx']),webSocketUtils['addListeners'](_0x51bb7a,_0x43e020[_0x4889db(0xb0)],_0x43e020['password']);const [_0x1a62eb,_0x1cd641]=await _0x44040f['cimml'](getGridDetails,_0x5c1496['Browserstack'][_0x4889db(0xf6)],_0x5c1496[_0x4889db(0xcd)][_0x4889db(0xbd)],_0x43e020[_0x4889db(0xe5)]);if(_0x1cd641){const _0xdf7a28=_0x1cd641[_0x4889db(0xf5)];global_registry['cloudProvider']=_0xdf7a28[_0x4889db(0xe4)],global_registry[_0x4889db(0xe9)]=_0xdf7a28[_0x4889db(0xa2)],global_registry[_0x4889db(0xcf)]=_0xdf7a28[_0x4889db(0xcf)];const _0x5d8ae6=await _0x44040f['uSMOQ'](getCloudProviderObject,_0xdf7a28[_0x4889db(0xe4)],_0xdf7a28[_0x4889db(0xcf)],_0xdf7a28[_0x4889db(0xd6)],_0x51bb7a,webSocketUtils,_0x43e020),[_0x5524ab,_0x38d364,_0x44d871,_0x24ec6a,_0x1b59e0,_0x2a1f96]=await _0x44040f[_0x4889db(0xab)](createK8sClient,_0x5d8ae6,_0x43e020['skipTlsCertVerify']);await _0x44040f[_0x4889db(0xab)](scaleUpHubDeployment,_0x38d364,_0xdf7a28[_0x4889db(0xd6)]),logger[_0x4889db(0xf5)](_0x44040f[_0x4889db(0xde)]),process[_0x4889db(0xfa)](0x0);}_0x44040f[_0x4889db(0xd5)](_0x1a62eb['statusCode'],0x191)&&(logger[_0x4889db(0xe6)](_0x44040f[_0x4889db(0xf0)]),await _0x44040f['RoFfm'](sendInstrumentationEvent,_0x43e020,_0x44040f['jgFDR'],messageTypes[_0x4889db(0xba)],_0x44040f[_0x4889db(0xfc)],null,_0x43e020),process[_0x4889db(0xfa)](0x1)),_0x44040f[_0x4889db(0xa3)](_0x1a62eb[_0x4889db(0xf4)],0x190)&&(logger[_0x4889db(0xe6)](JSON[_0x4889db(0xb6)](_0x1a62eb[_0x4889db(0xf2)])[_0x4889db(0xef)]),await _0x44040f[_0x4889db(0xec)](sendInstrumentationEvent,_0x43e020,_0x44040f[_0x4889db(0xdc)],messageTypes[_0x4889db(0xba)],_0x44040f[_0x4889db(0xcc)],null,_0x43e020),process[_0x4889db(0xfa)](0x1)),logger['error'](_0x4889db(0xb1)+JSON[_0x4889db(0xaa)](_0x1a62eb)),await _0x44040f['vrIMZ'](sendInstrumentationEvent,_0x43e020,_0x44040f['jgFDR'],messageTypes['ERROR'],_0x44040f[_0x4889db(0xad)],_0x1a62eb,_0x43e020),process[_0x4889db(0xfa)](0x1);}catch(_0x4c08c0){const _0x19da24=_0x4889db(0xa7)+_0x4c08c0+'\x20\x0a'+JSON['stringify'](_0x4c08c0[_0x4889db(0xdb)])+'\x20';logger[_0x4889db(0xe6)](_0x19da24),process[_0x4889db(0xfa)](0x1);}};function a19_0x31bd(_0x453019,_0x3fc15e){const _0x2d31d5=a19_0x2d31();return a19_0x31bd=function(_0x31bd15,_0x2bca1d){_0x31bd15=_0x31bd15-0xa1;let _0x5a8604=_0x2d31d5[_0x31bd15];return _0x5a8604;},a19_0x31bd(_0x453019,_0x3fc15e);}function a19_0x2d31(){const _0x316e53=['username','Grid\x20started','argv','reconnecting-websocket','exit','desc','OZCjg','bstackAccesskey','Starting\x20grid\x20','region','tlUXL','LyxiA','49772GASprZ','20517jCyXnH','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','grid','command','stringify','IxEYq','epilogue','GvXPP','type','828762wjxdNo','user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','options','SsTJr','../../utils/utilityMethods','Start\x20an\x20existing\x20Automation\x20grid.','parse','WixiK','Skip\x20insecure\x20cert\x20verification.','20430AyFIhO','ERROR','kuZDq','description','password','<PasswordPlaceholder>','8RqWoiK','readFileSync','connectionTimeout','7BuuMmM','WebSocket','replace','../../utils/gridComponents','../../cloudproviders/utils','start-grid-called','default','dynch','handler','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','ZHxyP','Browserstack','1474328oFYUGY','clusterName','help','vrIMZ','usage','boolean','<UsernamePlaceholder>','JMQrz','name','BSVHc','325980ooIFok','gmcfC','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stack','jgFDR','4euPqBw','ddWFp','pHGrw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','DNlkc','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','../../utils/webSocketUtils','cloudProvider','gridId','error','926484dDhEQI','207ZqcEJa','clusterRegion','existsSync','start','uSMOQ','init-not-called','debug','message','iHKRI','invalid-grid-id','body','bCAAF','statusCode','info'];a19_0x2d31=function(){return _0x316e53;};return a19_0x2d31();}
@@ -1 +1 @@
1
- const a20_0x1b2dcd=a20_0x26f2;function a20_0x41c9(){const _0x27eb08=['62555tGjIdU','1941410ebqXDH','desc','2471441xUQJiC','builder','epilogue','demandCommand','1098032pZLpPe','170aXtJpw','recommendCommands','command','132jqHsBJ','sLNZY','stop','help','312XuQwLB','2677707viRQjB','handler','903972RAGAxB','32wHyXQy','12445lgsCKi'];a20_0x41c9=function(){return _0x27eb08;};return a20_0x41c9();}function a20_0x26f2(_0x1550ea,_0x1448e0){const _0x41c910=a20_0x41c9();return a20_0x26f2=function(_0x26f2d4,_0x4b6742){_0x26f2d4=_0x26f2d4-0xc0;let _0x48e3ee=_0x41c910[_0x26f2d4];return _0x48e3ee;},a20_0x26f2(_0x1550ea,_0x1448e0);}(function(_0x126331,_0x280b3a){const _0x18c56d=a20_0x26f2,_0x11eb6b=_0x126331();while(!![]){try{const _0x453858=-parseInt(_0x18c56d(0xc8))/0x1*(-parseInt(_0x18c56d(0xd1))/0x2)+-parseInt(_0x18c56d(0xc6))/0x3+-parseInt(_0x18c56d(0xd0))/0x4+parseInt(_0x18c56d(0xc9))/0x5*(-parseInt(_0x18c56d(0xc3))/0x6)+-parseInt(_0x18c56d(0xcc))/0x7+-parseInt(_0x18c56d(0xc7))/0x8*(parseInt(_0x18c56d(0xc4))/0x9)+parseInt(_0x18c56d(0xca))/0xa*(parseInt(_0x18c56d(0xd4))/0xb);if(_0x453858===_0x280b3a)break;else _0x11eb6b['push'](_0x11eb6b['shift']());}catch(_0x1eb931){_0x11eb6b['push'](_0x11eb6b['shift']());}}}(a20_0x41c9,0x96de6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x1b2dcd(0xd3)]=a20_0x1b2dcd(0xc1),exports[a20_0x1b2dcd(0xcb)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x1b2dcd(0xcd)]=function(_0x4ed866){const _0x180f9b=a20_0x1b2dcd,_0x1167e2={};_0x1167e2['PEJPo']='stop_commands',_0x1167e2[_0x180f9b(0xc0)]=_0x180f9b(0xc2);const _0x4890f8=_0x1167e2;return _0x4ed866['usage'](HELP_HEADER_MESSAGE[_0x180f9b(0xc1)])[_0x180f9b(0xce)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4890f8['PEJPo'])[_0x180f9b(0xcf)]()[_0x180f9b(0xd2)]()['strict']()[_0x180f9b(0xc2)](_0x4890f8[_0x180f9b(0xc0)]);},exports[a20_0x1b2dcd(0xc5)]=function(_0x1080fc){};
1
+ const a20_0xe0fa0=a20_0x2021;(function(_0x7d95e9,_0xfa9071){const _0x493b15=a20_0x2021,_0x2b4922=_0x7d95e9();while(!![]){try{const _0x1b2697=-parseInt(_0x493b15(0x110))/0x1*(parseInt(_0x493b15(0xfb))/0x2)+-parseInt(_0x493b15(0x113))/0x3+-parseInt(_0x493b15(0x10c))/0x4*(parseInt(_0x493b15(0xfc))/0x5)+parseInt(_0x493b15(0xff))/0x6*(parseInt(_0x493b15(0x10b))/0x7)+-parseInt(_0x493b15(0x105))/0x8*(parseInt(_0x493b15(0x10e))/0x9)+parseInt(_0x493b15(0x10f))/0xa+parseInt(_0x493b15(0x102))/0xb;if(_0x1b2697===_0xfa9071)break;else _0x2b4922['push'](_0x2b4922['shift']());}catch(_0x1cf760){_0x2b4922['push'](_0x2b4922['shift']());}}}(a20_0x36c1,0x6d885));function a20_0x36c1(){const _0x51e675=['126PYNezN','1997572IgKGcH','handler','9EndIqZ','1937770VophXm','91499hKnKeh','../config/constants','command','6315WkmZmQ','epilogue','6kkkSCR','5tMtlVY','desc','commandDir','73026lxhMSw','help','stop_commands','16385897npbCGq','demandCommand','uMesD','5422736dhMKgA','IIXFd','recommendCommands','usage','stop','strict'];a20_0x36c1=function(){return _0x51e675;};return a20_0x36c1();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xe0fa0(0x111));function a20_0x2021(_0x528622,_0x39ad3e){const _0x36c1c8=a20_0x36c1();return a20_0x2021=function(_0x2021b8,_0x2f6f14){_0x2021b8=_0x2021b8-0xfb;let _0x3c2ee3=_0x36c1c8[_0x2021b8];return _0x3c2ee3;},a20_0x2021(_0x528622,_0x39ad3e);}exports[a20_0xe0fa0(0x112)]=a20_0xe0fa0(0x109),exports[a20_0xe0fa0(0xfd)]='Stop\x20a\x20running\x20Automation\x20grid.',exports['builder']=function(_0x17ef4c){const _0x4dd9d6=a20_0xe0fa0,_0x154ed7={};_0x154ed7[_0x4dd9d6(0x106)]=_0x4dd9d6(0x101),_0x154ed7['uMesD']='help';const _0x320a55=_0x154ed7;return _0x17ef4c[_0x4dd9d6(0x108)](HELP_HEADER_MESSAGE[_0x4dd9d6(0x109)])[_0x4dd9d6(0x114)](HELP_FOOTER_MESSAGE)[_0x4dd9d6(0xfe)](_0x320a55[_0x4dd9d6(0x106)])[_0x4dd9d6(0x103)]()[_0x4dd9d6(0x107)]()[_0x4dd9d6(0x10a)]()[_0x4dd9d6(0x100)](_0x320a55[_0x4dd9d6(0x104)]);},exports[a20_0xe0fa0(0x10d)]=function(_0x2f34dd){};
@@ -1 +1 @@
1
- const a21_0x219678=a21_0x5582;(function(_0x4c155c,_0x8c8657){const _0x46fe19=a21_0x5582,_0x1b63bc=_0x4c155c();while(!![]){try{const _0x4e484b=-parseInt(_0x46fe19(0x93))/0x1+parseInt(_0x46fe19(0x9e))/0x2*(parseInt(_0x46fe19(0xaa))/0x3)+parseInt(_0x46fe19(0xbf))/0x4+-parseInt(_0x46fe19(0xa0))/0x5*(parseInt(_0x46fe19(0x92))/0x6)+parseInt(_0x46fe19(0x81))/0x7*(-parseInt(_0x46fe19(0x88))/0x8)+-parseInt(_0x46fe19(0xb1))/0x9*(parseInt(_0x46fe19(0xae))/0xa)+-parseInt(_0x46fe19(0xd6))/0xb*(-parseInt(_0x46fe19(0xdc))/0xc);if(_0x4e484b===_0x8c8657)break;else _0x1b63bc['push'](_0x1b63bc['shift']());}catch(_0x34820d){_0x1b63bc['push'](_0x1b63bc['shift']());}}}(a21_0x47ec,0x9c841));function a21_0x5582(_0xc202ff,_0x4b2482){const _0x47ecc1=a21_0x47ec();return a21_0x5582=function(_0x5582e2,_0x3832c8){_0x5582e2=_0x5582e2-0x80;let _0x258602=_0x47ecc1[_0x5582e2];return _0x258602;},a21_0x5582(_0xc202ff,_0x4b2482);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a21_0x219678(0x9a)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x219678(0xd2)),{sendInstrumentationEvent}=require(a21_0x219678(0x8a)),webSocketUtils=require(a21_0x219678(0xa9)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x219678(0x94));function a21_0x47ec(){const _0x400e6f=['WDRMr','command','user','clusterName','Grid\x20stoppped.','OaeXt','hgNqM','190422KdxeMS','500663YRgQUk','../../cloudproviders/utils','username','stop-grid-called','DBnWy','region','invalid-grid-id','../../config/logger','gQtQS','VSFxr','skipTlsCertVerify','1782ckaZYa','BbHED','85FRpTqU','password','grid-id','debug','NYzqZ','readFileSync','vayyp','error','parse','../../utils/webSocketUtils','537Pkfiut','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','options','1370xsxzrq','Stopping\x20grid\x20','INFO','81927aqYEkL','handler','epilogue','argv','Browserstack','ERROR','stack','uGkKY','<UsernamePlaceholder>','nrHIb','<PasswordPlaceholder>','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ZBUcg','statusCode','2850220nfFMae','Skip\x20insecure\x20cert\x20verification.','message','guzwR','Adding\x20Websocket\x20listeners','description','bstackUsername','cloudProvider','rKrQs','replace','ErkPb','ViQjv','WebSocket','type','stop','RgJaA','addListeners','fCTyv','server-error','../../utils/gridComponents','Stop\x20a\x20running\x20Automation\x20grid.','help','taPXq','25903416yjnGmW','xLHzT','default','stringify','EaULc','hOFFy','12PsMbaE','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','clusterRegion','cwanX','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','name','skip-tls-cert-verify','YtMis','gridId','14vJLjYR','desc','gtfdj','grid','init-not-called','info','body','1194032HJZZmq','existsSync','../../utils/instrumentationUtils'];a21_0x47ec=function(){return _0x400e6f;};return a21_0x47ec();}exports[a21_0x219678(0x8c)]=a21_0x219678(0x84),exports[a21_0x219678(0x82)]=a21_0x219678(0xd3),exports['builder']=function(_0x135961){const _0x492c73=a21_0x219678,_0x871c2d={};_0x871c2d[_0x492c73(0xe3)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x871c2d['BbHED']='string',_0x871c2d['ErkPb']=_0x492c73(0xc0),_0x871c2d[_0x492c73(0xdb)]='boolean',_0x871c2d[_0x492c73(0xa4)]='help';const _0x5a17a4=_0x871c2d,_0x147622={};_0x147622[_0x492c73(0xc4)]=_0x5a17a4[_0x492c73(0xe3)],_0x147622[_0x492c73(0xcc)]=_0x5a17a4[_0x492c73(0x9f)];const _0x5b6a21={};_0x5b6a21[_0x492c73(0xc4)]=_0x5a17a4[_0x492c73(0xc9)],_0x5b6a21[_0x492c73(0xcc)]=_0x5a17a4[_0x492c73(0xdb)],_0x5b6a21[_0x492c73(0xd8)]=![];const _0x535b2f={};return _0x535b2f[_0x492c73(0xa2)]=_0x147622,_0x535b2f[_0x492c73(0xe2)]=_0x5b6a21,_0x135961['usage'](HELP_HEADER_MESSAGE[_0x492c73(0xcd)])[_0x492c73(0xb3)](HELP_FOOTER_MESSAGE)[_0x492c73(0xad)](_0x535b2f)[_0x492c73(0xd4)](_0x5a17a4[_0x492c73(0xa4)])[_0x492c73(0xb4)];},exports[a21_0x219678(0xb2)]=async function(_0x29b83b){const _0x3054bb=a21_0x219678,_0x37890b={'AGZGO':_0x3054bb(0xdd),'taPXq':function(_0x1a3a1f){return _0x1a3a1f();},'fCTyv':_0x3054bb(0xbc),'RgJaA':function(_0x2a655c,_0x1a8a64,_0x1aa777,_0x3b2afa,_0x78dd88,_0x8fe7e5,_0x5defb4){return _0x2a655c(_0x1a8a64,_0x1aa777,_0x3b2afa,_0x78dd88,_0x8fe7e5,_0x5defb4);},'cwanX':_0x3054bb(0x96),'gQtQS':_0x3054bb(0x85),'OaeXt':function(_0x5e44c7,_0x5c348d,_0x15fc80,_0xaf0e43,_0x409ac2,_0x5df1eb,_0x4ae491){return _0x5e44c7(_0x5c348d,_0x15fc80,_0xaf0e43,_0x409ac2,_0x5df1eb,_0x4ae491);},'uGkKY':_0x3054bb(0xb9),'RADRN':_0x3054bb(0xbb),'VSFxr':_0x3054bb(0xc3),'DBnWy':function(_0x451f0a,_0x42e85e,_0x549b7e,_0x13ec7d){return _0x451f0a(_0x42e85e,_0x549b7e,_0x13ec7d);},'bwmhQ':function(_0x3988c4,_0x153dec,_0x517dbb,_0x18ff5c,_0x388093,_0x5a9019,_0x2f3876){return _0x3988c4(_0x153dec,_0x517dbb,_0x18ff5c,_0x388093,_0x5a9019,_0x2f3876);},'ViQjv':function(_0x3ebf2f,_0x4ae83c,_0x52b54b){return _0x3ebf2f(_0x4ae83c,_0x52b54b);},'xLHzT':function(_0xa98e2e,_0x365eb9,_0x3f19ef){return _0xa98e2e(_0x365eb9,_0x3f19ef);},'gtfdj':_0x3054bb(0x8f),'hgNqM':function(_0x372a06,_0x4a894a){return _0x372a06===_0x4a894a;},'EaULc':_0x3054bb(0xab),'ZBUcg':function(_0x37dec9,_0x5b9322,_0xacc4c5,_0x2b65ae,_0x3dd2ff,_0x17c86a,_0x8c3a7){return _0x37dec9(_0x5b9322,_0xacc4c5,_0x2b65ae,_0x3dd2ff,_0x17c86a,_0x8c3a7);},'rKrQs':'unauthorised','guzwR':function(_0x428a4d,_0x22110e){return _0x428a4d===_0x22110e;},'nrHIb':function(_0x1e7974,_0xbaee90,_0x2737b0,_0x14e756,_0xb2d28c,_0x3fe4b3,_0x5c076c){return _0x1e7974(_0xbaee90,_0x2737b0,_0x14e756,_0xb2d28c,_0x3fe4b3,_0x5c076c);},'WDRMr':_0x3054bb(0x99),'vayyp':_0x3054bb(0xd1)};let _0x17f4c0;try{!_0x29b83b[_0x3054bb(0x80)]&&(logger['error'](_0x37890b['AGZGO']),process[_0x3054bb(0xac)](0x1));!fs[_0x3054bb(0x89)](_0x37890b[_0x3054bb(0xd5)](getCredentialsPath))&&(logger[_0x3054bb(0xa7)](_0x37890b[_0x3054bb(0xd0)]),await _0x37890b[_0x3054bb(0xce)](sendInstrumentationEvent,_0x29b83b,_0x37890b['cwanX'],messageTypes[_0x3054bb(0xb6)],_0x37890b[_0x3054bb(0x9b)],null,_0x29b83b),process[_0x3054bb(0xac)](0x1));logger['info'](_0x3054bb(0xaf)+_0x29b83b[_0x3054bb(0x80)]),await _0x37890b[_0x3054bb(0x90)](sendInstrumentationEvent,_0x29b83b,_0x37890b[_0x3054bb(0xdf)],messageTypes[_0x3054bb(0xb0)],null,null,_0x29b83b);const _0x99c442=JSON[_0x3054bb(0xa8)](fs[_0x3054bb(0xa5)](_0x37890b[_0x3054bb(0xd5)](getCredentialsPath)));global_registry[_0x3054bb(0xc5)]=_0x99c442[_0x3054bb(0xb5)][_0x3054bb(0x95)],global_registry['bstackAccesskey']=_0x99c442[_0x3054bb(0xb5)][_0x3054bb(0xa1)];const _0x36bd68=WS_ENDPOINT[_0x3054bb(0xc8)](_0x37890b[_0x3054bb(0xb8)],_0x99c442[_0x3054bb(0xb5)][_0x3054bb(0x95)])[_0x3054bb(0xc8)](_0x37890b['RADRN'],_0x99c442['Browserstack'][_0x3054bb(0xa1)]),_0x4e5208={};_0x4e5208[_0x3054bb(0xcb)]=ws,_0x4e5208['connectionTimeout']=0x36ee80,_0x17f4c0=new ReconnectingWebSocket(_0x36bd68,[],_0x4e5208),logger[_0x3054bb(0xa3)](_0x37890b[_0x3054bb(0x9c)]),webSocketUtils[_0x3054bb(0xcf)](_0x17f4c0,_0x29b83b[_0x3054bb(0x8d)],_0x29b83b[_0x3054bb(0xa1)]);const [_0x404de4,_0x14b787]=await _0x37890b[_0x3054bb(0x97)](getGridDetails,_0x99c442[_0x3054bb(0xb5)][_0x3054bb(0x95)],_0x99c442['Browserstack'][_0x3054bb(0xa1)],_0x29b83b['gridId']);if(_0x14b787){const _0x2a7d8e=_0x14b787[_0x3054bb(0x86)];global_registry[_0x3054bb(0xc6)]=_0x2a7d8e[_0x3054bb(0xc6)],global_registry[_0x3054bb(0xde)]=_0x2a7d8e[_0x3054bb(0x98)],global_registry[_0x3054bb(0x8e)]=_0x2a7d8e[_0x3054bb(0x8e)];const _0x241ab3=await _0x37890b['bwmhQ'](getCloudProviderObject,_0x2a7d8e[_0x3054bb(0xc6)],_0x2a7d8e[_0x3054bb(0x8e)],_0x2a7d8e[_0x3054bb(0xe1)],_0x17f4c0,webSocketUtils,_0x29b83b),[_0x4e31c4,_0x4064ac,_0x4bf8dc,_0x1effa7,_0x7a5eba,_0x1ed99b]=await _0x37890b[_0x3054bb(0xca)](createK8sClient,_0x241ab3,_0x29b83b[_0x3054bb(0x9d)]);await _0x37890b[_0x3054bb(0xd7)](scaleDownHubDeployment,_0x4064ac,_0x2a7d8e[_0x3054bb(0xe1)]),logger[_0x3054bb(0x86)](_0x37890b[_0x3054bb(0x83)]),process[_0x3054bb(0xac)](0x0);}_0x37890b[_0x3054bb(0x91)](_0x404de4[_0x3054bb(0xbe)],0x191)&&(logger[_0x3054bb(0xa7)](_0x37890b[_0x3054bb(0xda)]),await _0x37890b[_0x3054bb(0xbd)](sendInstrumentationEvent,_0x29b83b,_0x37890b[_0x3054bb(0xdf)],messageTypes[_0x3054bb(0xb6)],_0x37890b[_0x3054bb(0xc7)],null,_0x29b83b),process[_0x3054bb(0xac)](0x1)),_0x37890b[_0x3054bb(0xc2)](_0x404de4[_0x3054bb(0xbe)],0x190)&&(logger['error'](JSON[_0x3054bb(0xa8)](_0x404de4[_0x3054bb(0x87)])[_0x3054bb(0xc1)]),await _0x37890b[_0x3054bb(0xba)](sendInstrumentationEvent,_0x29b83b,_0x37890b['cwanX'],messageTypes[_0x3054bb(0xb6)],_0x37890b[_0x3054bb(0x8b)],null,_0x29b83b),process['exit'](0x1)),logger[_0x3054bb(0xa7)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3054bb(0xd9)](_0x404de4)),await _0x37890b[_0x3054bb(0xce)](sendInstrumentationEvent,_0x29b83b,_0x37890b[_0x3054bb(0xdf)],messageTypes['ERROR'],_0x37890b[_0x3054bb(0xa6)],_0x404de4,_0x29b83b),process[_0x3054bb(0xac)](0x1);}catch(_0x1d3f51){const _0x4d5227=_0x3054bb(0xe0)+_0x1d3f51+'\x20\x0a'+JSON[_0x3054bb(0xd9)](_0x1d3f51[_0x3054bb(0xb7)])+'\x20';logger[_0x3054bb(0xa7)](_0x4d5227),process['exit'](0x1);}};
1
+ const a21_0x1a0ec0=a21_0x222f;(function(_0xd82847,_0x208736){const _0x24e8e7=a21_0x222f,_0x1aa739=_0xd82847();while(!![]){try{const _0x30eaac=parseInt(_0x24e8e7(0xc5))/0x1*(parseInt(_0x24e8e7(0x84))/0x2)+-parseInt(_0x24e8e7(0xc6))/0x3*(-parseInt(_0x24e8e7(0x8b))/0x4)+-parseInt(_0x24e8e7(0xbf))/0x5+-parseInt(_0x24e8e7(0xb7))/0x6*(-parseInt(_0x24e8e7(0xb5))/0x7)+parseInt(_0x24e8e7(0xb1))/0x8+parseInt(_0x24e8e7(0x82))/0x9+-parseInt(_0x24e8e7(0x9f))/0xa;if(_0x30eaac===_0x208736)break;else _0x1aa739['push'](_0x1aa739['shift']());}catch(_0x32ddb1){_0x1aa739['push'](_0x1aa739['shift']());}}}(a21_0x141f,0x9b1ee));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1a0ec0(0x76)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x1a0ec0(0x99)),{scaleDownHubDeployment}=require(a21_0x1a0ec0(0xc4)),{sendInstrumentationEvent}=require(a21_0x1a0ec0(0xb9)),webSocketUtils=require(a21_0x1a0ec0(0x7a)),{createK8sClient}=require(a21_0x1a0ec0(0xaf)),{getCloudProviderObject}=require(a21_0x1a0ec0(0x8c));function a21_0x222f(_0x55b23d,_0x56940c){const _0x141ffe=a21_0x141f();return a21_0x222f=function(_0x222f0e,_0x30ace){_0x222f0e=_0x222f0e-0x74;let _0x1bf778=_0x141ffe[_0x222f0e];return _0x1bf778;},a21_0x222f(_0x55b23d,_0x56940c);}function a21_0x141f(){const _0x322ba4=['../../config/constants','boolean','clusterName','parse','../../utils/webSocketUtils','gridId','EdDdk','bstackUsername','tsVxz','invalid-grid-id','help','ERROR','10864863gJtxzI','GgwSP','2306002EzJPpr','region','tYgIY','readFileSync','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','error','vSHZc','340mxjtOA','../../cloudproviders/utils','username','stringify','bstackAccesskey','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','Browserstack','stop','skip-tls-cert-verify','Bwpdn','mJBUX','connectionTimeout','../../utils/utilityMethods','Stop\x20a\x20running\x20Automation\x20grid.','<UsernamePlaceholder>','NoiCc','info','tLYyC','26948760jWOYAy','WebSocket','clusterRegion','name','argv','Grid\x20stoppped.','epilogue','axocy','IsFIZ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','WmUjv','BOBBZ','usage','vaSVU','init-not-called','unauthorised','../../utils/createk8sClient','handler','7560832VQZUsa','existsSync','statusCode','Skip\x20insecure\x20cert\x20verification.','3446681pYGfAh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','6Sdysxh','grid','../../utils/instrumentationUtils','skipTlsCertVerify','message','body','ithUV','IrTTb','2485550piLEpD','options','raNVb','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','../../utils/gridComponents','1BleYBl','1047ONabjK','builder','cloudProvider','stop-grid-called','JEXjU','password','HCrvR','debug','description','Oujld','BTLVJ','command','mktmS','type'];a21_0x141f=function(){return _0x322ba4;};return a21_0x141f();}exports[a21_0x1a0ec0(0xd1)]=a21_0x1a0ec0(0xb8),exports['desc']=a21_0x1a0ec0(0x9a),exports[a21_0x1a0ec0(0xc7)]=function(_0x652227){const _0x3f618b=a21_0x1a0ec0,_0x4d95d1={};_0x4d95d1[_0x3f618b(0xcc)]=_0x3f618b(0x88),_0x4d95d1[_0x3f618b(0x97)]='string',_0x4d95d1[_0x3f618b(0xa9)]=_0x3f618b(0xb4),_0x4d95d1[_0x3f618b(0xc1)]=_0x3f618b(0x77),_0x4d95d1[_0x3f618b(0xd0)]=_0x3f618b(0x80);const _0x414e1f=_0x4d95d1,_0x238ea5={};_0x238ea5[_0x3f618b(0xce)]=_0x414e1f['HCrvR'],_0x238ea5[_0x3f618b(0x75)]=_0x414e1f['mJBUX'];const _0xfc16b3={};_0xfc16b3[_0x3f618b(0xce)]=_0x414e1f['WmUjv'],_0xfc16b3[_0x3f618b(0x75)]=_0x414e1f['raNVb'],_0xfc16b3['default']=![];const _0x3e92ab={};return _0x3e92ab[_0x3f618b(0x92)]=_0x238ea5,_0x3e92ab[_0x3f618b(0x95)]=_0xfc16b3,_0x652227[_0x3f618b(0xab)](HELP_HEADER_MESSAGE[_0x3f618b(0x94)])[_0x3f618b(0xa5)](HELP_FOOTER_MESSAGE)[_0x3f618b(0xc0)](_0x3e92ab)[_0x3f618b(0x80)](_0x414e1f['BTLVJ'])[_0x3f618b(0xa3)];},exports[a21_0x1a0ec0(0xb0)]=async function(_0x56dc3f){const _0x4da7b8=a21_0x1a0ec0,_0x599332={'IsFIZ':_0x4da7b8(0xa8),'EdDdk':function(_0x1da5ee){return _0x1da5ee();},'NoiCc':_0x4da7b8(0x91),'Bwpdn':function(_0x554f6d,_0x1791f8,_0x329376,_0x2c03f1,_0x89d6d8,_0x35efe2,_0x3b05b8){return _0x554f6d(_0x1791f8,_0x329376,_0x2c03f1,_0x89d6d8,_0x35efe2,_0x3b05b8);},'IrTTb':_0x4da7b8(0xc9),'tsVxz':_0x4da7b8(0xad),'JEXjU':function(_0x3ce9d6,_0xff72ec,_0x361e81,_0xd33a06,_0x2f9649,_0x597a71,_0x10b05a){return _0x3ce9d6(_0xff72ec,_0x361e81,_0xd33a06,_0x2f9649,_0x597a71,_0x10b05a);},'mktmS':function(_0x3541ee){return _0x3541ee();},'eNEdj':_0x4da7b8(0x9b),'UQdWV':'<PasswordPlaceholder>','mstem':'Adding\x20Websocket\x20listeners','axocy':function(_0x4f5d41,_0x27f65b,_0x11da24,_0x1af91d){return _0x4f5d41(_0x27f65b,_0x11da24,_0x1af91d);},'Oujld':function(_0x3e302f,_0x3d1f9f,_0x15f616,_0x51cf07,_0x226026,_0x296312,_0x1ee725){return _0x3e302f(_0x3d1f9f,_0x15f616,_0x51cf07,_0x226026,_0x296312,_0x1ee725);},'WJuTx':function(_0x53f440,_0x451d9e,_0x267726){return _0x53f440(_0x451d9e,_0x267726);},'vaSVU':_0x4da7b8(0xa4),'GgwSP':function(_0x456a82,_0x4839a0){return _0x456a82===_0x4839a0;},'tYgIY':_0x4da7b8(0xc2),'vSHZc':_0x4da7b8(0xae),'BOBBZ':_0x4da7b8(0x7f),'ithUV':function(_0x1a7384,_0x1171a1,_0x275bc9,_0x3d6bc3,_0x133c77,_0xf52fcc,_0x122757){return _0x1a7384(_0x1171a1,_0x275bc9,_0x3d6bc3,_0x133c77,_0xf52fcc,_0x122757);},'tLYyC':'server-error'};let _0x2a898c;try{!_0x56dc3f[_0x4da7b8(0x7b)]&&(logger[_0x4da7b8(0x89)](_0x599332[_0x4da7b8(0xa7)]),process['exit'](0x1));!fs[_0x4da7b8(0xb2)](_0x599332[_0x4da7b8(0x7c)](getCredentialsPath))&&(logger['error'](_0x599332[_0x4da7b8(0x9c)]),await _0x599332[_0x4da7b8(0x96)](sendInstrumentationEvent,_0x56dc3f,_0x599332[_0x4da7b8(0xbe)],messageTypes[_0x4da7b8(0x81)],_0x599332[_0x4da7b8(0x7e)],null,_0x56dc3f),process[_0x4da7b8(0xc3)](0x1));logger['info']('Stopping\x20grid\x20'+_0x56dc3f['gridId']),await _0x599332[_0x4da7b8(0xca)](sendInstrumentationEvent,_0x56dc3f,_0x599332['IrTTb'],messageTypes['INFO'],null,null,_0x56dc3f);const _0x42abc7=JSON[_0x4da7b8(0x79)](fs[_0x4da7b8(0x87)](_0x599332[_0x4da7b8(0x74)](getCredentialsPath)));global_registry[_0x4da7b8(0x7d)]=_0x42abc7['Browserstack'][_0x4da7b8(0x8d)],global_registry[_0x4da7b8(0x8f)]=_0x42abc7[_0x4da7b8(0x93)][_0x4da7b8(0xcb)];const _0x53a558=WS_ENDPOINT['replace'](_0x599332['eNEdj'],_0x42abc7['Browserstack'][_0x4da7b8(0x8d)])['replace'](_0x599332['UQdWV'],_0x42abc7[_0x4da7b8(0x93)][_0x4da7b8(0xcb)]),_0xad58e1={};_0xad58e1[_0x4da7b8(0xa0)]=ws,_0xad58e1[_0x4da7b8(0x98)]=0x36ee80,_0x2a898c=new ReconnectingWebSocket(_0x53a558,[],_0xad58e1),logger[_0x4da7b8(0xcd)](_0x599332['mstem']),webSocketUtils['addListeners'](_0x2a898c,_0x56dc3f['user'],_0x56dc3f['password']);const [_0x2adeca,_0x33813e]=await _0x599332[_0x4da7b8(0xa6)](getGridDetails,_0x42abc7[_0x4da7b8(0x93)][_0x4da7b8(0x8d)],_0x42abc7[_0x4da7b8(0x93)][_0x4da7b8(0xcb)],_0x56dc3f[_0x4da7b8(0x7b)]);if(_0x33813e){const _0x4d4bd5=_0x33813e[_0x4da7b8(0x9d)];global_registry[_0x4da7b8(0xc8)]=_0x4d4bd5[_0x4da7b8(0xc8)],global_registry[_0x4da7b8(0xa1)]=_0x4d4bd5[_0x4da7b8(0x85)],global_registry[_0x4da7b8(0x78)]=_0x4d4bd5[_0x4da7b8(0x78)];const _0x57ef02=await _0x599332[_0x4da7b8(0xcf)](getCloudProviderObject,_0x4d4bd5[_0x4da7b8(0xc8)],_0x4d4bd5[_0x4da7b8(0x78)],_0x4d4bd5['name'],_0x2a898c,webSocketUtils,_0x56dc3f),[_0x28851d,_0x557c25,_0x12a79a,_0x49a340,_0x5cf10e,_0x173b76]=await _0x599332['WJuTx'](createK8sClient,_0x57ef02,_0x56dc3f[_0x4da7b8(0xba)]);await _0x599332['WJuTx'](scaleDownHubDeployment,_0x557c25,_0x4d4bd5[_0x4da7b8(0xa2)]),logger[_0x4da7b8(0x9d)](_0x599332[_0x4da7b8(0xac)]),process[_0x4da7b8(0xc3)](0x0);}_0x599332[_0x4da7b8(0x83)](_0x2adeca[_0x4da7b8(0xb3)],0x191)&&(logger[_0x4da7b8(0x89)](_0x599332[_0x4da7b8(0x86)]),await _0x599332[_0x4da7b8(0xca)](sendInstrumentationEvent,_0x56dc3f,_0x599332[_0x4da7b8(0xbe)],messageTypes['ERROR'],_0x599332[_0x4da7b8(0x8a)],null,_0x56dc3f),process[_0x4da7b8(0xc3)](0x1)),_0x599332[_0x4da7b8(0x83)](_0x2adeca[_0x4da7b8(0xb3)],0x190)&&(logger[_0x4da7b8(0x89)](JSON[_0x4da7b8(0x79)](_0x2adeca[_0x4da7b8(0xbc)])[_0x4da7b8(0xbb)]),await _0x599332[_0x4da7b8(0xca)](sendInstrumentationEvent,_0x56dc3f,_0x599332[_0x4da7b8(0xbe)],messageTypes[_0x4da7b8(0x81)],_0x599332[_0x4da7b8(0xaa)],null,_0x56dc3f),process[_0x4da7b8(0xc3)](0x1)),logger['error'](_0x4da7b8(0xb6)+JSON[_0x4da7b8(0x8e)](_0x2adeca)),await _0x599332[_0x4da7b8(0xbd)](sendInstrumentationEvent,_0x56dc3f,_0x599332['IrTTb'],messageTypes[_0x4da7b8(0x81)],_0x599332[_0x4da7b8(0x9e)],_0x2adeca,_0x56dc3f),process[_0x4da7b8(0xc3)](0x1);}catch(_0xd6af2c){const _0x334920=_0x4da7b8(0x90)+_0xd6af2c+'\x20\x0a'+JSON[_0x4da7b8(0x8e)](_0xd6af2c['stack'])+'\x20';logger['error'](_0x334920),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x398101=a22_0x3a7d;(function(_0x31e47d,_0x17bd14){const _0x190367=a22_0x3a7d,_0x5d53d0=_0x31e47d();while(!![]){try{const _0xa1d9b7=parseInt(_0x190367(0x182))/0x1+-parseInt(_0x190367(0x132))/0x2*(-parseInt(_0x190367(0x13e))/0x3)+parseInt(_0x190367(0x134))/0x4+parseInt(_0x190367(0x174))/0x5+-parseInt(_0x190367(0x141))/0x6*(parseInt(_0x190367(0x123))/0x7)+-parseInt(_0x190367(0x129))/0x8*(parseInt(_0x190367(0x12f))/0x9)+-parseInt(_0x190367(0x121))/0xa;if(_0xa1d9b7===_0x17bd14)break;else _0x5d53d0['push'](_0x5d53d0['shift']());}catch(_0x2faa25){_0x5d53d0['push'](_0x5d53d0['shift']());}}}(a22_0x3303,0xe1388),require('dotenv')[a22_0x398101(0x179)]());let gridURL='grid.browserstack.com',bsApiUrl='api.browserstack.com',agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x398101(0x172)][a22_0x398101(0x17c)]||a22_0x398101(0x135))[a22_0x398101(0x122)]();if(_env==='staging'||_env==='stag')gridURL=a22_0x398101(0x167),bsApiUrl=a22_0x398101(0x140),agApiUrl=a22_0x398101(0x175);else(_env==='preprod'||_env===a22_0x398101(0x146))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x398101(0x164),agApiUrl=a22_0x398101(0x156));exports[a22_0x398101(0x14b)]=process[a22_0x398101(0x172)][a22_0x398101(0x14b)]||gridURL,exports[a22_0x398101(0x171)]=process['env'][a22_0x398101(0x171)]||bsApiUrl,exports[a22_0x398101(0x14d)]=process[a22_0x398101(0x172)]['AG_API_URL']||agApiUrl,exports[a22_0x398101(0x126)]='wss://'+this[a22_0x398101(0x14d)]+a22_0x398101(0x145),exports[a22_0x398101(0x165)]=a22_0x398101(0x177),exports[a22_0x398101(0x17b)]=a22_0x398101(0x12a),exports[a22_0x398101(0x16b)]=a22_0x398101(0x155),exports[a22_0x398101(0x12e)]='aws',exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x398101(0x17a)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']='browserstack-turboscale-grid',exports[a22_0x398101(0x158)]=a22_0x398101(0x13f),exports[a22_0x398101(0x150)]='gcp',exports[a22_0x398101(0x13c)]=[this[a22_0x398101(0x12e)],this[a22_0x398101(0x158)],this[a22_0x398101(0x150)]];const a22_0x15171e={};a22_0x15171e['Key']='browserstack:managedBy',a22_0x15171e[a22_0x398101(0x157)]=a22_0x398101(0x178);const a22_0x23ae4a={};a22_0x23ae4a[a22_0x398101(0x159)]=a22_0x398101(0x162),a22_0x23ae4a['Value']=a22_0x398101(0x144);const common_hst_tags_list=[a22_0x15171e,a22_0x23ae4a];if(process[a22_0x398101(0x172)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x398101(0x172)][a22_0x398101(0x173)][a22_0x398101(0x16d)](',');parsedTags['forEach'](_0x584562=>{const _0x2e22bd=a22_0x398101,_0x269ea1=_0x584562[_0x2e22bd(0x16d)](':'),_0x3ae7af={};_0x3ae7af['Key']=_0x269ea1[0x0],_0x3ae7af[_0x2e22bd(0x157)]=_0x269ea1[0x1],common_hst_tags_list[_0x2e22bd(0x137)](_0x3ae7af);});}exports[a22_0x398101(0x176)]=common_hst_tags_list;const a22_0x43eb78={};a22_0x43eb78['browserstack:managedBy']=a22_0x398101(0x178),a22_0x43eb78[a22_0x398101(0x162)]=a22_0x398101(0x144),exports[a22_0x398101(0x170)]=a22_0x43eb78,exports[a22_0x398101(0x130)]=[this[a22_0x398101(0x12e)]];const a22_0x3338ca={};function a22_0x3303(){const _0x19a246=['env','TURBOSCALE_CUSTOM_TAGS','1409625TvUNjs','grid-api-devhst.bsstag.com','COMMON_HST_TAGS','credentials','BrowserStack','config','CLUSTER_AUTOSCALER_STACK_NAME','IAM_USER_NAME','BROWSERSTACK_ENV','DEFAULT_CLUSTER_DETAILS','MessageDescription','list','WARNING','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','354304wQihmI','messageTypes','connect','CLOUD_PROVIDER','1163380wbjOVK','toLowerCase','91oGZefU','LINK_MESSAGE','configure','WS_ENDPOINT','init','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','1112ebdCoW','BrowserStackIAMUser','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','high-scale-grid-cluster','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','AWS','98757jhUCIv','SUPPORTED_CLOUD_PROVIDERS','UNKNOWN','1286bmGnYF','create','6333168cbxjfc','prod','delete','push','log','cliRunFinished','aws','pre-check','ALL_SUPPORTED_CLOUD_PROVIDERS','gridProfile','3180GwLtPg','azure','api-devhst.bsstag.com','155544uKYEUJ','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','RAW_ARGS_REGEX','BrowserStack-Automate-TurboScale','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','pre-prod','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','error','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','DASHBOARD_ENDPOINT','HELP_HEADER_MESSAGE','AG_API_URL','pre_check','CLI_ARGS_REGEX','GCP','HELP_FOOTER_MESSAGE','warning','[REDACTED]','grid','high-scale-grid','grid-api-preprod.bsstag.com','Value','AZURE','Key','RESOURCES','success','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','CLI_RUN_FINISHED','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','WS_EVENTS','info','browserstack:service','CLI_RUN_STARTED','api-preprod.bsstag.com','CP_CONFIG_FILE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','grid-devhst.bsstag.com','stop','us-east-1','root','DEFAULT_GRID_NAME','NULL','split','LOG','resourceInfo','HST_CLUSTER_TAGS','BS_API_URL'];a22_0x3303=function(){return _0x19a246;};return a22_0x3303();}a22_0x3338ca[a22_0x398101(0x16e)]=a22_0x398101(0x138),a22_0x3338ca[a22_0x398101(0x15a)]=a22_0x398101(0x16f),a22_0x3338ca['GRID_URL']='gridUrl',a22_0x3338ca[a22_0x398101(0x163)]='cliRunStarted',a22_0x3338ca[a22_0x398101(0x15d)]=a22_0x398101(0x139),exports[a22_0x398101(0x160)]=a22_0x3338ca,exports['global_registry']={},exports[a22_0x398101(0x124)]=a22_0x398101(0x149);const a22_0x4713ce={};a22_0x4713ce['root']=a22_0x398101(0x15f)+this[a22_0x398101(0x124)],a22_0x4713ce[a22_0x398101(0x127)]=a22_0x398101(0x181)+this[a22_0x398101(0x124)],a22_0x4713ce[a22_0x398101(0x125)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x398101(0x124)],a22_0x4713ce[a22_0x398101(0x133)]=a22_0x398101(0x147)+this[a22_0x398101(0x124)],a22_0x4713ce[a22_0x398101(0x17f)]={},a22_0x4713ce[a22_0x398101(0x136)]=a22_0x398101(0x12d)+this['LINK_MESSAGE'],a22_0x4713ce[a22_0x398101(0x11f)]=a22_0x398101(0x142)+this['LINK_MESSAGE'],a22_0x4713ce['start']=a22_0x398101(0x128)+this[a22_0x398101(0x124)],a22_0x4713ce[a22_0x398101(0x168)]=a22_0x398101(0x15e)+this[a22_0x398101(0x124)],a22_0x4713ce[a22_0x398101(0x14e)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x398101(0x124)],a22_0x4713ce[a22_0x398101(0x17f)][a22_0x398101(0x16a)]=a22_0x398101(0x166)+this['LINK_MESSAGE'],a22_0x4713ce[a22_0x398101(0x17f)][a22_0x398101(0x154)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x398101(0x124)],a22_0x4713ce[a22_0x398101(0x17f)][a22_0x398101(0x13d)]=a22_0x398101(0x15c)+this[a22_0x398101(0x124)],exports[a22_0x398101(0x14c)]=a22_0x4713ce,exports[a22_0x398101(0x151)]=a22_0x398101(0x14a);const a22_0x1d57bf={};function a22_0x3a7d(_0x5837ca,_0x5e0501){const _0x3303e7=a22_0x3303();return a22_0x3a7d=function(_0x3a7df2,_0x4da17a){_0x3a7df2=_0x3a7df2-0x11f;let _0x1f362a=_0x3303e7[_0x3a7df2];return _0x1f362a;},a22_0x3a7d(_0x5837ca,_0x5e0501);}a22_0x1d57bf['SUCCESS']=a22_0x398101(0x15b),a22_0x1d57bf['ERROR']=a22_0x398101(0x148),a22_0x1d57bf['INFO']=a22_0x398101(0x161),a22_0x1d57bf[a22_0x398101(0x180)]=a22_0x398101(0x152),a22_0x1d57bf[a22_0x398101(0x131)]='unknown',a22_0x1d57bf[a22_0x398101(0x16c)]=null,exports[a22_0x398101(0x183)]=a22_0x1d57bf,exports[a22_0x398101(0x14f)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x398101(0x143)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x398101(0x153);const a22_0x290f8d={};a22_0x290f8d['grid-profile']=a22_0x398101(0x12b);const a22_0x49838d={};a22_0x49838d[a22_0x398101(0x13b)]=a22_0x290f8d,exports[a22_0x398101(0x17e)]=a22_0x49838d,exports['TRIAL_GRID_URL']='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x206a8a={};a22_0x206a8a['CLUSTER']=a22_0x398101(0x12c),a22_0x206a8a[a22_0x398101(0x120)]=a22_0x398101(0x13a),a22_0x206a8a['REGION']=a22_0x398101(0x169),exports[a22_0x398101(0x17d)]=a22_0x206a8a;
1
+ const a22_0x1232ef=a22_0x12a4;(function(_0x4dc59f,_0x1e9f7b){const _0x92786d=a22_0x12a4,_0x1b8ce9=_0x4dc59f();while(!![]){try{const _0x21e45a=-parseInt(_0x92786d(0x16f))/0x1*(-parseInt(_0x92786d(0x1ac))/0x2)+-parseInt(_0x92786d(0x1af))/0x3+parseInt(_0x92786d(0x182))/0x4*(parseInt(_0x92786d(0x19c))/0x5)+parseInt(_0x92786d(0x1a2))/0x6*(parseInt(_0x92786d(0x1a9))/0x7)+-parseInt(_0x92786d(0x15a))/0x8*(-parseInt(_0x92786d(0x153))/0x9)+parseInt(_0x92786d(0x17d))/0xa*(-parseInt(_0x92786d(0x1bf))/0xb)+-parseInt(_0x92786d(0x198))/0xc;if(_0x21e45a===_0x1e9f7b)break;else _0x1b8ce9['push'](_0x1b8ce9['shift']());}catch(_0x3519f0){_0x1b8ce9['push'](_0x1b8ce9['shift']());}}}(a22_0x12f3,0x83e3c),require('dotenv')[a22_0x1232ef(0x1ab)]());let gridURL=a22_0x1232ef(0x1a1),bsApiUrl=a22_0x1232ef(0x171),agApiUrl=a22_0x1232ef(0x19f);const _env=(process[a22_0x1232ef(0x166)][a22_0x1232ef(0x170)]||a22_0x1232ef(0x17e))[a22_0x1232ef(0x15b)]();if(_env===a22_0x1232ef(0x177)||_env===a22_0x1232ef(0x187))gridURL=a22_0x1232ef(0x16a),bsApiUrl=a22_0x1232ef(0x167),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x1232ef(0x17f)||_env==='pre-prod')&&(gridURL=a22_0x1232ef(0x1b4),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x1232ef(0x1b2));exports['DASHBOARD_ENDPOINT']=process[a22_0x1232ef(0x166)][a22_0x1232ef(0x175)]||gridURL,exports[a22_0x1232ef(0x162)]=process[a22_0x1232ef(0x166)][a22_0x1232ef(0x162)]||bsApiUrl,exports['AG_API_URL']=process['env'][a22_0x1232ef(0x1b1)]||agApiUrl,exports[a22_0x1232ef(0x17a)]=a22_0x1232ef(0x1bd)+this['AG_API_URL']+a22_0x1232ef(0x1b3),exports[a22_0x1232ef(0x16b)]='credentials',exports['IAM_USER_NAME']='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']=a22_0x1232ef(0x156),exports[a22_0x1232ef(0x1a8)]=a22_0x1232ef(0x1b5),exports[a22_0x1232ef(0x194)]=a22_0x1232ef(0x1a3),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x1232ef(0x164),exports['TURBOSCALE_DEPLOYMENT']=a22_0x1232ef(0x168),exports[a22_0x1232ef(0x181)]='azure',exports[a22_0x1232ef(0x161)]='gcp',exports[a22_0x1232ef(0x169)]=[this[a22_0x1232ef(0x1a8)],this[a22_0x1232ef(0x181)],this[a22_0x1232ef(0x161)]];const a22_0x27d026={};a22_0x27d026[a22_0x1232ef(0x184)]=a22_0x1232ef(0x19d),a22_0x27d026[a22_0x1232ef(0x1ba)]=a22_0x1232ef(0x18c);const a22_0xc64eae={};function a22_0x12a4(_0x1a2195,_0x548c20){const _0x12f3d3=a22_0x12f3();return a22_0x12a4=function(_0x12a448,_0x11065a){_0x12a448=_0x12a448-0x153;let _0x4f071f=_0x12f3d3[_0x12a448];return _0x4f071f;},a22_0x12a4(_0x1a2195,_0x548c20);}a22_0xc64eae[a22_0x1232ef(0x184)]=a22_0x1232ef(0x197),a22_0xc64eae['Value']=a22_0x1232ef(0x174);const common_hst_tags_list=[a22_0x27d026,a22_0xc64eae];if(process[a22_0x1232ef(0x166)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x1232ef(0x166)][a22_0x1232ef(0x15c)][a22_0x1232ef(0x15f)](',');parsedTags[a22_0x1232ef(0x159)](_0x1397c5=>{const _0x3f3f11=a22_0x1232ef,_0x51eacc=_0x1397c5[_0x3f3f11(0x15f)](':'),_0x5008f4={};_0x5008f4[_0x3f3f11(0x184)]=_0x51eacc[0x0],_0x5008f4[_0x3f3f11(0x1ba)]=_0x51eacc[0x1],common_hst_tags_list[_0x3f3f11(0x185)](_0x5008f4);});}exports[a22_0x1232ef(0x160)]=common_hst_tags_list;const a22_0x980998={};a22_0x980998[a22_0x1232ef(0x19d)]='BrowserStack',a22_0x980998['browserstack:service']='BrowserStack-Automate-TurboScale',exports[a22_0x1232ef(0x196)]=a22_0x980998,exports[a22_0x1232ef(0x176)]=[this['AWS']];const a22_0x139bae={};a22_0x139bae[a22_0x1232ef(0x157)]='log',a22_0x139bae['RESOURCES']=a22_0x1232ef(0x1a0),a22_0x139bae[a22_0x1232ef(0x17b)]=a22_0x1232ef(0x188),a22_0x139bae[a22_0x1232ef(0x180)]=a22_0x1232ef(0x1ad),a22_0x139bae[a22_0x1232ef(0x193)]=a22_0x1232ef(0x1a7),exports[a22_0x1232ef(0x192)]=a22_0x139bae,exports['global_registry']={},exports[a22_0x1232ef(0x18f)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x2eccf5={};a22_0x2eccf5[a22_0x1232ef(0x1b7)]=a22_0x1232ef(0x18e)+this['LINK_MESSAGE'],a22_0x2eccf5[a22_0x1232ef(0x1bb)]=a22_0x1232ef(0x19e)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5['configure']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x1232ef(0x18f)],a22_0x2eccf5['create']=a22_0x1232ef(0x199)+this['LINK_MESSAGE'],a22_0x2eccf5[a22_0x1232ef(0x17c)]={},a22_0x2eccf5[a22_0x1232ef(0x16c)]=a22_0x1232ef(0x19b)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5[a22_0x1232ef(0x163)]=a22_0x1232ef(0x18a)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5[a22_0x1232ef(0x18d)]=a22_0x1232ef(0x183)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5[a22_0x1232ef(0x195)]=a22_0x1232ef(0x15e)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5['pre_check']='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x2eccf5[a22_0x1232ef(0x17c)][a22_0x1232ef(0x1b7)]=a22_0x1232ef(0x16d)+this['LINK_MESSAGE'],a22_0x2eccf5[a22_0x1232ef(0x17c)][a22_0x1232ef(0x1a5)]=a22_0x1232ef(0x191)+this[a22_0x1232ef(0x18f)],a22_0x2eccf5[a22_0x1232ef(0x17c)][a22_0x1232ef(0x158)]=a22_0x1232ef(0x15d)+this[a22_0x1232ef(0x18f)],exports[a22_0x1232ef(0x1b9)]=a22_0x2eccf5,exports[a22_0x1232ef(0x1b8)]=a22_0x1232ef(0x190);const a22_0x18ab22={};a22_0x18ab22['SUCCESS']=a22_0x1232ef(0x178),a22_0x18ab22[a22_0x1232ef(0x155)]=a22_0x1232ef(0x1ae),a22_0x18ab22[a22_0x1232ef(0x189)]=a22_0x1232ef(0x173),a22_0x18ab22['WARNING']=a22_0x1232ef(0x1a6),a22_0x18ab22['UNKNOWN']=a22_0x1232ef(0x16e),a22_0x18ab22[a22_0x1232ef(0x1b0)]=null,exports['messageTypes']=a22_0x18ab22,exports[a22_0x1232ef(0x165)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1232ef(0x1a4)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1232ef(0x186)]=a22_0x1232ef(0x19a);const a22_0x26a12b={};a22_0x26a12b[a22_0x1232ef(0x154)]=a22_0x1232ef(0x1bc);const a22_0xd7fb93={};a22_0xd7fb93[a22_0x1232ef(0x18b)]=a22_0x26a12b,exports['MessageDescription']=a22_0xd7fb93,exports[a22_0x1232ef(0x179)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x464942={};function a22_0x12f3(){const _0x516aea=['CLUSTER','385FVXThj','8577lYcLaz','grid-profile','ERROR','high-scale-grid','LOG','gridProfile','forEach','808WOBZRP','toLowerCase','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','split','COMMON_HST_TAGS','GCP','BS_API_URL','connect','BSTACK-ATS-CLUSTER-HUB-HA','CLI_ARGS_REGEX','env','api-devhst.bsstag.com','browserstack-turboscale-grid','ALL_SUPPORTED_CLOUD_PROVIDERS','grid-devhst.bsstag.com','CP_CONFIG_FILE','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','unknown','253jfiIRl','BROWSERSTACK_ENV','api.browserstack.com','REGION','info','BrowserStack-Automate-TurboScale','DASHBOARD_ENDPOINT','SUPPORTED_CLOUD_PROVIDERS','staging','success','TRIAL_GRID_URL','WS_ENDPOINT','GRID_URL','list','22270SPjeOF','prod','preprod','CLI_RUN_STARTED','AZURE','4DcVElE','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','Key','push','REDACTED','stag','gridUrl','INFO','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','pre-check','BrowserStack','start','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','LINK_MESSAGE','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','WS_EVENTS','CLI_RUN_FINISHED','CLUSTER_DEP_STACK_NAME','stop','HST_CLUSTER_TAGS','browserstack:service','12784572MMrQRt','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','[REDACTED]','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','2544905bDcpIs','browserstack:managedBy','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-api.browserstack.com','resourceInfo','grid.browserstack.com','1646946kJePJI','BSTACK-ATS-CLUSTER','RAW_ARGS_REGEX','grid','warning','cliRunFinished','AWS','21exCXmS','CLOUD_PROVIDER','config','5188xScgeO','cliRunStarted','error','1204329lftcKz','NULL','AG_API_URL','grid-api-preprod.bsstag.com','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','grid-preprod.bsstag.com','aws','high-scale-grid-cluster','root','HELP_FOOTER_MESSAGE','HELP_HEADER_MESSAGE','Value','init','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','wss://'];a22_0x12f3=function(){return _0x516aea;};return a22_0x12f3();}a22_0x464942[a22_0x1232ef(0x1be)]=a22_0x1232ef(0x1b6),a22_0x464942[a22_0x1232ef(0x1aa)]='aws',a22_0x464942[a22_0x1232ef(0x172)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x464942;
@@ -1 +1 @@
1
- const a23_0x511812=a23_0x3a5d;function a23_0x2c91(){const _0x49d9f6=['colorize','16QLSWlf','Console','6969740uyUczd','2345tfNkmN','961731vMXbvC','transports','winston','console.info','6XrPyeX','File','name','debug','5576hCmAyv','timestamp','673737rBQvXm','YYYY-MM-DD\x20HH:mm:ss','path','combine','level','3763460dcQVBK','usage.log','join','events.log','1270336xyDSzg','33EtyIGc','177814pPluSH','createLogger','format','\x20-\x20'];a23_0x2c91=function(){return _0x49d9f6;};return a23_0x2c91();}(function(_0x550ec,_0x5d342c){const _0x48d50c=a23_0x3a5d,_0x20f103=_0x550ec();while(!![]){try{const _0x5e28b5=-parseInt(_0x48d50c(0xbd))/0x1+parseInt(_0x48d50c(0xbb))/0x2+parseInt(_0x48d50c(0xb2))/0x3*(-parseInt(_0x48d50c(0xa4))/0x4)+-parseInt(_0x48d50c(0xb7))/0x5*(parseInt(_0x48d50c(0xac))/0x6)+-parseInt(_0x48d50c(0xa7))/0x7*(parseInt(_0x48d50c(0xb0))/0x8)+-parseInt(_0x48d50c(0xa8))/0x9+parseInt(_0x48d50c(0xa6))/0xa*(parseInt(_0x48d50c(0xbc))/0xb);if(_0x5e28b5===_0x5d342c)break;else _0x20f103['push'](_0x20f103['shift']());}catch(_0x2ae19f){_0x20f103['push'](_0x20f103['shift']());}}}(a23_0x2c91,0x87f72));const winston=require(a23_0x511812(0xaa)),fs=require('fs'),path=require(a23_0x511812(0xb4)),logDir='log';!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x32aa0d={};a23_0x32aa0d[a23_0x511812(0xa1)]=a23_0x511812(0xb3);const a23_0x524808={};a23_0x524808[a23_0x511812(0xb6)]=!![];function a23_0x3a5d(_0x16c44e,_0x2acead){const _0x2c9113=a23_0x2c91();return a23_0x3a5d=function(_0x3a5dc9,_0x410e43){_0x3a5dc9=_0x3a5dc9-0xa0;let _0x757862=_0x2c9113[_0x3a5dc9];return _0x757862;},a23_0x3a5d(_0x16c44e,_0x2acead);}const a23_0x400d06={};a23_0x400d06[a23_0x511812(0xae)]=a23_0x511812(0xab),exports['logger']=new winston[(a23_0x511812(0xa0))]({'format':winston['format'][a23_0x511812(0xb5)](winston[a23_0x511812(0xa1)]['timestamp'](a23_0x32aa0d),winston[a23_0x511812(0xa1)][a23_0x511812(0xa3)](a23_0x524808),winston[a23_0x511812(0xa1)]['printf'](_0x10344a=>_0x10344a[a23_0x511812(0xb1)]+a23_0x511812(0xa2)+_0x10344a[a23_0x511812(0xb6)]+':\x20'+_0x10344a['message'])),'transports':[new winston[(a23_0x511812(0xa9))][(a23_0x511812(0xa5))](a23_0x400d06),new winston[(a23_0x511812(0xa9))][(a23_0x511812(0xad))]({'filename':path['join'](logDir,a23_0x511812(0xba)),'level':a23_0x511812(0xaf)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x511812(0xa9))][(a23_0x511812(0xad))]({'filename':path[a23_0x511812(0xb9)](logDir,a23_0x511812(0xb8)),'level':a23_0x511812(0xaf)})]};exports['fileLogger']=new winston[(a23_0x511812(0xa0))](winstonFileLoggerParams);
1
+ const a23_0x1a7525=a23_0x4a5a;(function(_0x1bb1f9,_0x220a51){const _0x315bf3=a23_0x4a5a,_0x1efe86=_0x1bb1f9();while(!![]){try{const _0x3feba5=parseInt(_0x315bf3(0x8b))/0x1+-parseInt(_0x315bf3(0x7f))/0x2+-parseInt(_0x315bf3(0x80))/0x3+parseInt(_0x315bf3(0x82))/0x4*(-parseInt(_0x315bf3(0x83))/0x5)+-parseInt(_0x315bf3(0x81))/0x6+-parseInt(_0x315bf3(0x86))/0x7*(parseInt(_0x315bf3(0x96))/0x8)+parseInt(_0x315bf3(0x88))/0x9;if(_0x3feba5===_0x220a51)break;else _0x1efe86['push'](_0x1efe86['shift']());}catch(_0x2c30e4){_0x1efe86['push'](_0x1efe86['shift']());}}}(a23_0x4a0d,0x5506f));const winston=require('winston'),fs=require('fs'),path=require(a23_0x1a7525(0x91)),logDir='log';!fs[a23_0x1a7525(0x8f)](logDir)&&fs[a23_0x1a7525(0x8e)](logDir);const a23_0x38e203={};a23_0x38e203[a23_0x1a7525(0x85)]=a23_0x1a7525(0x89);const a23_0x5f0663={};function a23_0x4a5a(_0x54ae17,_0x1cdda7){const _0x4a0d23=a23_0x4a0d();return a23_0x4a5a=function(_0x4a5aef,_0x2e7b81){_0x4a5aef=_0x4a5aef-0x7d;let _0x35cc14=_0x4a0d23[_0x4a5aef];return _0x35cc14;},a23_0x4a5a(_0x54ae17,_0x1cdda7);}a23_0x5f0663[a23_0x1a7525(0x92)]=!![];const a23_0x15d476={};function a23_0x4a0d(){const _0x4c6be0=['fileLogger','createLogger','combine','message','usage.log','992350Bqqizb','2001348cjwNqM','733260tTHNip','24PCXMkO','521855MCurpo','printf','format','421582uDbBPB','transports','18485757HqLSFT','YYYY-MM-DD\x20HH:mm:ss','Console','266251JvKKdE','timestamp','debug','mkdirSync','existsSync','join','path','level','colorize','name','\x20-\x20','8tUyxgP','File'];a23_0x4a0d=function(){return _0x4c6be0;};return a23_0x4a0d();}a23_0x15d476[a23_0x1a7525(0x94)]='console.info',exports['logger']=new winston[(a23_0x1a7525(0x99))]({'format':winston[a23_0x1a7525(0x85)][a23_0x1a7525(0x9a)](winston['format'][a23_0x1a7525(0x8c)](a23_0x38e203),winston[a23_0x1a7525(0x85)][a23_0x1a7525(0x93)](a23_0x5f0663),winston[a23_0x1a7525(0x85)][a23_0x1a7525(0x84)](_0x574031=>_0x574031[a23_0x1a7525(0x8c)]+a23_0x1a7525(0x95)+_0x574031[a23_0x1a7525(0x92)]+':\x20'+_0x574031[a23_0x1a7525(0x7d)])),'transports':[new winston[(a23_0x1a7525(0x87))][(a23_0x1a7525(0x8a))](a23_0x15d476),new winston[(a23_0x1a7525(0x87))][(a23_0x1a7525(0x97))]({'filename':path['join'](logDir,'events.log'),'level':a23_0x1a7525(0x8d)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x1a7525(0x87))][(a23_0x1a7525(0x97))]({'filename':path[a23_0x1a7525(0x90)](logDir,a23_0x1a7525(0x7e)),'level':a23_0x1a7525(0x8d)})]};exports[a23_0x1a7525(0x98)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x11be21=a24_0x48eb;(function(_0x43aa92,_0x4bc725){const _0x53a65b=a24_0x48eb,_0x25eee9=_0x43aa92();while(!![]){try{const _0x2d426c=-parseInt(_0x53a65b(0x122))/0x1*(parseInt(_0x53a65b(0x11d))/0x2)+-parseInt(_0x53a65b(0x11c))/0x3+parseInt(_0x53a65b(0x11f))/0x4+-parseInt(_0x53a65b(0x115))/0x5*(parseInt(_0x53a65b(0x117))/0x6)+-parseInt(_0x53a65b(0x124))/0x7*(-parseInt(_0x53a65b(0x120))/0x8)+parseInt(_0x53a65b(0x11b))/0x9+-parseInt(_0x53a65b(0x121))/0xa;if(_0x2d426c===_0x4bc725)break;else _0x25eee9['push'](_0x25eee9['shift']());}catch(_0x527a79){_0x25eee9['push'](_0x25eee9['shift']());}}}(a24_0x42b3,0xe934c));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x11be21(0x118));process['env'][a24_0x11be21(0x125)]=0x1;function a24_0x42b3(){const _0x16ed42=['1033700fFzLpK','22jjPaDh','MSMgh','13937jEnvpP','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','usage','help','demandCommand','40wNLQDj','epilogue','62322yoIAhP','./config/constants','exports','commandDir','11560698VftbZw','1327521NVzxhM','136236rsOFZw','vREUL','2518168goIYdM','4696tJTUiF'];a24_0x42b3=function(){return _0x16ed42;};return a24_0x42b3();}function run(_0x2c6c9d){const _0x305abb=a24_0x11be21,_0x41ef65={};_0x41ef65[_0x305abb(0x11e)]='commands',_0x41ef65[_0x305abb(0x123)]=_0x305abb(0x113);const _0x559f7b=_0x41ef65;_0x2c6c9d[_0x305abb(0x112)](HELP_HEADER_MESSAGE['root'])[_0x305abb(0x11a)](_0x559f7b[_0x305abb(0x11e)])[_0x305abb(0x114)]()['help'](_0x559f7b[_0x305abb(0x123)])[_0x305abb(0x116)](HELP_FOOTER_MESSAGE);}function a24_0x48eb(_0x4f124d,_0x2c3f2e){const _0x42b371=a24_0x42b3();return a24_0x48eb=function(_0x48ebb1,_0x11fea5){_0x48ebb1=_0x48ebb1-0x112;let _0x2dc084=_0x42b371[_0x48ebb1];return _0x2dc084;},a24_0x48eb(_0x4f124d,_0x2c3f2e);}module[a24_0x11be21(0x119)]=run;
2
+ 'use strict';const a24_0x34ff27=a24_0x5e64;(function(_0x3061db,_0x3db302){const _0xcd7928=a24_0x5e64,_0x12700a=_0x3061db();while(!![]){try{const _0x2ad7fe=parseInt(_0xcd7928(0x193))/0x1+parseInt(_0xcd7928(0x18f))/0x2*(parseInt(_0xcd7928(0x18e))/0x3)+-parseInt(_0xcd7928(0x18d))/0x4+-parseInt(_0xcd7928(0x187))/0x5+parseInt(_0xcd7928(0x18b))/0x6*(parseInt(_0xcd7928(0x199))/0x7)+parseInt(_0xcd7928(0x192))/0x8+parseInt(_0xcd7928(0x185))/0x9*(-parseInt(_0xcd7928(0x186))/0xa);if(_0x2ad7fe===_0x3db302)break;else _0x12700a['push'](_0x12700a['shift']());}catch(_0x2e2719){_0x12700a['push'](_0x12700a['shift']());}}}(a24_0x2d7b,0x958b1));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x34ff27(0x190));function a24_0x5e64(_0x2fecc4,_0x5df1eb){const _0x2d7b0f=a24_0x2d7b();return a24_0x5e64=function(_0x5e649b,_0x48a7fd){_0x5e649b=_0x5e649b-0x184;let _0x38596e=_0x2d7b0f[_0x5e649b];return _0x38596e;},a24_0x5e64(_0x2fecc4,_0x5df1eb);}function a24_0x2d7b(){const _0x49b6cd=['BTnse','12dfMANy','help','1966116CPNxzk','3aFUxEE','2121002VYkrER','./config/constants','env','6243072aGMAJi','732984lBktvs','commandDir','epilogue','exports','demandCommand','usage','2035460uxsnaf','mHMHX','commands','11976777tfbugq','10sumtvR','3603090ritZnT','root','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE'];a24_0x2d7b=function(){return _0x49b6cd;};return a24_0x2d7b();}process[a24_0x34ff27(0x191)][a24_0x34ff27(0x189)]=0x1;function run(_0x5017cc){const _0xc44b98=a24_0x34ff27,_0x239e82={};_0x239e82[_0xc44b98(0x18a)]=_0xc44b98(0x184),_0x239e82['mHMHX']=_0xc44b98(0x18c);const _0x2636ef=_0x239e82;_0x5017cc[_0xc44b98(0x198)](HELP_HEADER_MESSAGE[_0xc44b98(0x188)])[_0xc44b98(0x194)](_0x2636ef[_0xc44b98(0x18a)])[_0xc44b98(0x197)]()['help'](_0x2636ef[_0xc44b98(0x19a)])[_0xc44b98(0x195)](HELP_FOOTER_MESSAGE);}module[a24_0x34ff27(0x196)]=run;