browserstack-node-sdk 1.47.2 → 1.48.0

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 (190) 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/generated/sdk-messages-accessibility_pb.d.ts +6 -0
  41. package/generated/sdk-messages-accessibility_pb.js +49 -1
  42. package/generated/sdk-messages_pb.d.ts +12 -0
  43. package/generated/sdk-messages_pb.js +98 -2
  44. package/package.json +1 -1
  45. package/src/ai-sdk-node/bundle.js +1 -1
  46. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  47. package/src/bin/codeceptjs/command.js +1 -1
  48. package/src/bin/codeceptjs/helper.js +1 -1
  49. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  50. package/src/bin/cucumber-js/command.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  52. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  53. package/src/bin/cucumber-js/test-observability.js +1 -1
  54. package/src/bin/cucumber-js/test.setup.js +1 -1
  55. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  56. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  57. package/src/bin/integrations/command.js +1 -1
  58. package/src/bin/integrations/constants.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  79. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  80. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  81. package/src/bin/mocha/test.setup.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/runner.js +1 -1
  94. package/src/bin/setup.js +1 -1
  95. package/src/bin/test-runner/index.js +1 -1
  96. package/src/bin/test-runner/runTest.js +1 -1
  97. package/src/bin/test-runner/testWorker.js +1 -1
  98. package/src/bin/utils/apiUtilityMethods.js +1 -1
  99. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  100. package/src/bin/utils/constants.js +1 -1
  101. package/src/bin/utils/log4jsAppender.js +1 -1
  102. package/src/bin/utils/logPatcher.js +1 -1
  103. package/src/bin/utils/logReportingAPI.js +1 -1
  104. package/src/bin/utils/playwright-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/testFramework.js +1 -1
  120. package/src/bin/v2/grpcClient.js +1 -1
  121. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  122. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/trackedContext.js +1 -1
  124. package/src/bin/v2/instances/trackedInstance.js +1 -1
  125. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  126. package/src/bin/v2/modules/baseModule.js +1 -1
  127. package/src/bin/v2/modules/loadTestModule.js +1 -1
  128. package/src/bin/v2/modules/observabilityModule.js +1 -1
  129. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  130. package/src/bin/v2/modules/testhubModule.js +1 -1
  131. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  132. package/src/bin/v2/state/hookState.js +1 -1
  133. package/src/bin/v2/state/testFrameworkState.js +1 -1
  134. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  135. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  136. package/src/bin/v2/utils/jest-utils.js +1 -1
  137. package/src/bin/vanilla-js/command.js +1 -1
  138. package/src/browserStackSdk.js +1 -1
  139. package/src/helpers/BrowserStackSetup.js +1 -1
  140. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  141. package/src/helpers/accessibility-automation/constants.js +1 -1
  142. package/src/helpers/accessibility-automation/helper.js +1 -1
  143. package/src/helpers/accessibility-automation/scripts.js +1 -1
  144. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  145. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  146. package/src/helpers/ats/constants.js +1 -1
  147. package/src/helpers/ats/helper.js +1 -1
  148. package/src/helpers/capsMapping.js +1 -1
  149. package/src/helpers/central-scanner/constants.js +1 -1
  150. package/src/helpers/central-scanner/helpers.js +1 -1
  151. package/src/helpers/classLogger.js +1 -1
  152. package/src/helpers/globals.js +1 -1
  153. package/src/helpers/helper.js +1 -1
  154. package/src/helpers/logger.js +1 -1
  155. package/src/helpers/metadata.js +1 -1
  156. package/src/helpers/patchHelper.js +1 -1
  157. package/src/helpers/patchHelpers.js +1 -1
  158. package/src/helpers/percy/Percy.js +1 -1
  159. package/src/helpers/percy/PercyBinary.js +1 -1
  160. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  161. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  162. package/src/helpers/percy/PercySDK.js +1 -1
  163. package/src/helpers/percy/index.js +1 -1
  164. package/src/helpers/percy/utils.js +1 -1
  165. package/src/helpers/performance/constants.js +1 -1
  166. package/src/helpers/performance/performance-tester.js +1 -1
  167. package/src/helpers/playwright-helper.js +1 -1
  168. package/src/helpers/processHelper.js +1 -1
  169. package/src/helpers/request-spy.js +1 -1
  170. package/src/helpers/setKeepAlive.js +1 -1
  171. package/src/helpers/test-observability/constants.js +1 -1
  172. package/src/helpers/test-observability/error-handler.js +1 -1
  173. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  174. package/src/helpers/test-observability/sessionHandler.js +1 -1
  175. package/src/helpers/test-observability/utils.js +1 -1
  176. package/src/helpers/test-orchestration/constants.js +1 -1
  177. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  178. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  179. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  180. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  181. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  182. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  183. package/src/helpers/testhub/constants.js +1 -1
  184. package/src/helpers/testhub/testhubHandler.js +1 -1
  185. package/src/helpers/testhub/utils.js +1 -1
  186. package/src/helpers/timeoutPromise.js +1 -1
  187. package/src/helpers/utilities.js +1 -1
  188. package/src/helpers/w3cMapping.js +1 -1
  189. package/src/hubAllocationMethods.js +1 -1
  190. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x1d9e1c=a15_0x20ce;function a15_0x20ce(_0x467b7c,_0x2ad671){const _0x44e983=a15_0x44e9();return a15_0x20ce=function(_0x20ce1c,_0x42a243){_0x20ce1c=_0x20ce1c-0x197;let _0x2c0b0f=_0x44e983[_0x20ce1c];return _0x2c0b0f;},a15_0x20ce(_0x467b7c,_0x2ad671);}function a15_0x44e9(){const _0x25ce04=['609904grJYmX','all-grids','list-grids-called','unknown-error','/packages/cli/get-all-grids','vNuhn','Failed\x20to\x20list\x20resources!\x20Error:\x20','help','kSLqs','../../config/constants','uDwwc','Vykoq','bstackAccesskey','UCChA','command','exit','Browserstack','grid','desc','391512fGHyga','type','init-not-called','20ROhRau','grids','epilogue','unauthorised','status','24404kQccjx','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','Cutkd','kDNJW','stack','fARXI','115spXBQe','\x0aFound\x20the\x20following\x20grids:\x0a','cRVGd','body','builder','username','GHYai','description','cluster-name','../../utils/utilityMethods','stringify','CAdkU','running','jPwYv','options','push','YRbyR','list','1319040WoGWFt','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','statusCode','GET','505278oTrSsO','https://','FfGLR','boolean','log','name','grid-id','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','forEach','got','tMKYB','2202wzzDoO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','handler','Eeane','ERROR','uuid','existsSync','xZsRW','aQaRw','TofGG','/packages/cli/get-grids','1398628jXmupS','grid-name','clusterName','password','error','argv','KXRHZ','UYqFT'];a15_0x44e9=function(){return _0x25ce04;};return a15_0x44e9();}(function(_0xc376c0,_0x5c49ed){const _0x77e11b=a15_0x20ce,_0x499073=_0xc376c0();while(!![]){try{const _0x140794=-parseInt(_0x77e11b(0x1b8))/0x1*(parseInt(_0x77e11b(0x1d9))/0x2)+-parseInt(_0x77e11b(0x1aa))/0x3+-parseInt(_0x77e11b(0x1b2))/0x4*(parseInt(_0x77e11b(0x1ad))/0x5)+parseInt(_0x77e11b(0x1ca))/0x6+parseInt(_0x77e11b(0x1e4))/0x7+-parseInt(_0x77e11b(0x197))/0x8+parseInt(_0x77e11b(0x1ce))/0x9;if(_0x140794===_0x5c49ed)break;else _0x499073['push'](_0x499073['shift']());}catch(_0x170291){_0x499073['push'](_0x499073['shift']());}}}(a15_0x44e9,0x1cd09));const fs=require('fs'),got=require(a15_0x1d9e1c(0x1d7)),{table}=require('table'),{v4:uuidv4}=require(a15_0x1d9e1c(0x1de)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1d9e1c(0x1a0)),{getCredentialsPath,getAuthHeader}=require(a15_0x1d9e1c(0x1c1)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x1d9e1c(0x1a5)]=a15_0x1d9e1c(0x1ae),exports[a15_0x1d9e1c(0x1a9)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x1d9e1c(0x1bc)]=function(_0x4fc06a){const _0x22d180=a15_0x1d9e1c,_0x5dd597={};_0x5dd597[_0x22d180(0x1e0)]=_0x22d180(0x1b3),_0x5dd597[_0x22d180(0x1e2)]=_0x22d180(0x1d1),_0x5dd597[_0x22d180(0x1b5)]='help';const _0x3c1a21=_0x5dd597,_0x2b843b={};_0x2b843b[_0x22d180(0x1bf)]=_0x3c1a21[_0x22d180(0x1e0)],_0x2b843b[_0x22d180(0x1ab)]=_0x3c1a21[_0x22d180(0x1e2)];const _0x42ce1a={};return _0x42ce1a[_0x22d180(0x198)]=_0x2b843b,_0x4fc06a['usage'](HELP_HEADER_MESSAGE[_0x22d180(0x1c9)][_0x22d180(0x1a8)])[_0x22d180(0x1af)](HELP_FOOTER_MESSAGE)[_0x22d180(0x1c6)](_0x42ce1a)[_0x22d180(0x19e)](_0x3c1a21[_0x22d180(0x1b5)])[_0x22d180(0x1e9)];},exports[a15_0x1d9e1c(0x1db)]=async function(_0x481c85){const _0x16d9ac=a15_0x1d9e1c,_0xc00612={'UYqFT':function(_0x4eff33){return _0x4eff33();},'pBIwJ':function(_0x171cc5){return _0x171cc5();},'GHYai':_0x16d9ac(0x1da),'UCChA':function(_0x5615af,_0x5dc3db,_0x26d3ef,_0x182a83,_0x3aa86f,_0x4708a8,_0x519c5d){return _0x5615af(_0x5dc3db,_0x26d3ef,_0x182a83,_0x3aa86f,_0x4708a8,_0x519c5d);},'FfGLR':_0x16d9ac(0x199),'cRVGd':_0x16d9ac(0x1ac),'fARXI':function(_0x13f42d){return _0x13f42d();},'YRbyR':_0x16d9ac(0x1cd),'RiROR':function(_0x165f3f,_0x4495c5,_0x165f30){return _0x165f3f(_0x4495c5,_0x165f30);},'Vykoq':function(_0x262ab4,_0x260ca,_0x45743c){return _0x262ab4(_0x260ca,_0x45743c);},'vNuhn':function(_0x283e2a,_0x5d4797){return _0x283e2a!==_0x5d4797;},'Eeane':function(_0x4f3133,_0x5e9636){return _0x4f3133===_0x5e9636;},'CAdkU':_0x16d9ac(0x1b9),'NMsJk':_0x16d9ac(0x1d4),'PQAGC':_0x16d9ac(0x1e5),'kSLqs':_0x16d9ac(0x1b1),'SdTEc':_0x16d9ac(0x1c4),'jPwYv':'queued','qBydy':_0x16d9ac(0x1c0),'Cutkd':function(_0x1e060f,_0x2705cb){return _0x1e060f(_0x2705cb);},'Itysb':function(_0x5f4078,_0x69b00b){return _0x5f4078===_0x69b00b;},'rnqbn':_0x16d9ac(0x1cb),'KXRHZ':function(_0x1162ba,_0x109c81,_0x19ff19,_0xaa20ad,_0x4f45ca,_0x38257a,_0x5ba79d){return _0x1162ba(_0x109c81,_0x19ff19,_0xaa20ad,_0x4f45ca,_0x38257a,_0x5ba79d);},'JzmuN':_0x16d9ac(0x1b0),'uDwwc':function(_0x4bb499,_0x456dda,_0x2997bc,_0x411406,_0x1d27e4,_0x3d9bde,_0x4fd02c){return _0x4bb499(_0x456dda,_0x2997bc,_0x411406,_0x1d27e4,_0x3d9bde,_0x4fd02c);},'aQaRw':'server-error','tMKYB':function(_0x36062f,_0x5c4cdb,_0x371c6a,_0x58c64a,_0x168d15,_0x47ce8a,_0x4a73e2){return _0x36062f(_0x5c4cdb,_0x371c6a,_0x58c64a,_0x168d15,_0x47ce8a,_0x4a73e2);},'AkQlS':_0x16d9ac(0x19a)};try{global_registry['requestId']=_0xc00612[_0x16d9ac(0x1eb)](uuidv4);!fs[_0x16d9ac(0x1df)](_0xc00612['pBIwJ'](getCredentialsPath))&&(console[_0x16d9ac(0x1e8)](_0xc00612[_0x16d9ac(0x1be)]),await _0xc00612[_0x16d9ac(0x1a4)](sendInstrumentationEvent,_0x481c85,_0xc00612[_0x16d9ac(0x1d0)],messageTypes[_0x16d9ac(0x1dd)],_0xc00612[_0x16d9ac(0x1ba)],null,_0x481c85),process[_0x16d9ac(0x1a6)](0x1));const _0x58a215=JSON['parse'](fs['readFileSync'](_0xc00612[_0x16d9ac(0x1b7)](getCredentialsPath)));let _0x1ac5ec=_0x16d9ac(0x1cf)+AG_API_URL+_0x16d9ac(0x1e3);_0x481c85['allGrids']&&(_0x1ac5ec=_0x16d9ac(0x1cf)+AG_API_URL+_0x16d9ac(0x19b));const _0x3e4504={'method':_0xc00612[_0x16d9ac(0x1c8)],'headers':_0xc00612['RiROR'](getAuthHeader,_0x58a215[_0x16d9ac(0x1a7)][_0x16d9ac(0x1bd)],_0x58a215[_0x16d9ac(0x1a7)][_0x16d9ac(0x1e7)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x58a215[_0x16d9ac(0x1a7)][_0x16d9ac(0x1bd)],global_registry[_0x16d9ac(0x1a3)]=_0x58a215[_0x16d9ac(0x1a7)][_0x16d9ac(0x1e7)],_0xc00612[_0x16d9ac(0x1a4)](sendInstrumentationEvent,_0x481c85,_0xc00612[_0x16d9ac(0x1d0)],messageTypes['INFO'],null,null,_0x481c85);const _0x4de706=await _0xc00612[_0x16d9ac(0x1a2)](got,_0x1ac5ec,_0x3e4504);if(_0xc00612[_0x16d9ac(0x19c)](_0x4de706,null)&&_0xc00612['vNuhn'](_0x4de706,undefined)&&_0xc00612[_0x16d9ac(0x1dc)](_0x4de706[_0x16d9ac(0x1cc)],0xc8)){const _0x482784=JSON['parse'](_0x4de706[_0x16d9ac(0x1bb)]);console[_0x16d9ac(0x1d2)](_0xc00612[_0x16d9ac(0x1c3)]);const _0x13ce81=[];_0x13ce81[_0x16d9ac(0x1c7)]([_0xc00612['NMsJk'],_0xc00612['PQAGC'],_0xc00612[_0x16d9ac(0x19f)],_0xc00612['SdTEc'],_0xc00612[_0x16d9ac(0x1c5)],_0xc00612['qBydy']]),_0x482784[_0x16d9ac(0x1d6)](_0x3e7b19=>{const _0x255583=_0x16d9ac;_0x13ce81['push']([_0x3e7b19['id'],_0x3e7b19[_0x255583(0x1d3)],_0x3e7b19[_0x255583(0x1b1)],_0x3e7b19[_0x255583(0x1c4)],_0x3e7b19['queued'],_0x3e7b19[_0x255583(0x1e6)]]);}),console['log'](_0xc00612[_0x16d9ac(0x1b4)](table,_0x13ce81)),process['exit'](0x0);}_0xc00612['Itysb'](_0x4de706['statusCode'],0x191)&&(console['error'](_0xc00612['rnqbn']),await _0xc00612[_0x16d9ac(0x1ea)](sendInstrumentationEvent,_0x481c85,_0xc00612[_0x16d9ac(0x1d0)],messageTypes[_0x16d9ac(0x1dd)],_0xc00612['JzmuN'],null,_0x481c85),process['exit'](0x1)),console[_0x16d9ac(0x1e8)](_0x16d9ac(0x1d5)+JSON[_0x16d9ac(0x1c2)](_0x4de706)),await _0xc00612[_0x16d9ac(0x1a1)](sendInstrumentationEvent,_0x481c85,_0xc00612['FfGLR'],messageTypes[_0x16d9ac(0x1dd)],_0xc00612[_0x16d9ac(0x1e1)],_0x4de706,_0x481c85),process[_0x16d9ac(0x1a6)](0x1);}catch(_0x335375){console[_0x16d9ac(0x1e8)](_0x16d9ac(0x19d)+_0x335375[_0x16d9ac(0x1b6)]),await _0xc00612[_0x16d9ac(0x1d8)](sendInstrumentationEvent,_0x481c85,_0xc00612[_0x16d9ac(0x1d0)],messageTypes['ERROR'],_0xc00612['AkQlS'],_0x335375,_0x481c85),process[_0x16d9ac(0x1a6)](0x1);}};
1
+ const a15_0x200c6a=a15_0x53c5;(function(_0x2c2224,_0x532cb9){const _0x4e389d=a15_0x53c5,_0x24e45a=_0x2c2224();while(!![]){try{const _0x1f6cd1=-parseInt(_0x4e389d(0x163))/0x1+-parseInt(_0x4e389d(0x157))/0x2*(-parseInt(_0x4e389d(0x12b))/0x3)+parseInt(_0x4e389d(0x130))/0x4*(parseInt(_0x4e389d(0x158))/0x5)+parseInt(_0x4e389d(0x161))/0x6+-parseInt(_0x4e389d(0x128))/0x7+parseInt(_0x4e389d(0x133))/0x8+-parseInt(_0x4e389d(0x16d))/0x9*(parseInt(_0x4e389d(0x136))/0xa);if(_0x1f6cd1===_0x532cb9)break;else _0x24e45a['push'](_0x24e45a['shift']());}catch(_0xd305c){_0x24e45a['push'](_0x24e45a['shift']());}}}(a15_0x21a9,0x608b5));const fs=require('fs'),got=require(a15_0x200c6a(0x162)),{table}=require('table'),{v4:uuidv4}=require(a15_0x200c6a(0x173)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x200c6a(0x170)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x200c6a(0x168));exports['command']=a15_0x200c6a(0x15f),exports[a15_0x200c6a(0x154)]=a15_0x200c6a(0x174),exports[a15_0x200c6a(0x12c)]=function(_0x2a0a6a){const _0x45b03c=a15_0x200c6a,_0x56161d={};_0x56161d[_0x45b03c(0x150)]=_0x45b03c(0x14b),_0x56161d[_0x45b03c(0x14c)]='boolean',_0x56161d['iRWhn']=_0x45b03c(0x14a);const _0x508ea1=_0x56161d,_0x2271f0={};_0x2271f0[_0x45b03c(0x151)]=_0x508ea1[_0x45b03c(0x150)],_0x2271f0[_0x45b03c(0x172)]=_0x508ea1['yPsLc'];const _0x130937={};return _0x130937[_0x45b03c(0x156)]=_0x2271f0,_0x2a0a6a[_0x45b03c(0x125)](HELP_HEADER_MESSAGE['list'][_0x45b03c(0x142)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x130937)['help'](_0x508ea1['iRWhn'])['argv'];},exports[a15_0x200c6a(0x171)]=async function(_0xefc5d){const _0x172f13=a15_0x200c6a,_0x409880={'Ojarz':function(_0x18f18f){return _0x18f18f();},'EbhOy':_0x172f13(0x139),'aPDPU':function(_0x3ec23a,_0xa0172c,_0x3c9679,_0x130c94,_0x3fd3d9,_0x464b18,_0x531514){return _0x3ec23a(_0xa0172c,_0x3c9679,_0x130c94,_0x3fd3d9,_0x464b18,_0x531514);},'OtuSl':_0x172f13(0x149),'DWxun':'init-not-called','mWxDf':function(_0x3b187b){return _0x3b187b();},'FavcS':_0x172f13(0x16b),'CKcIn':function(_0x25fa32,_0x3c72c5,_0x38dc68){return _0x25fa32(_0x3c72c5,_0x38dc68);},'zJFvr':function(_0x435d52,_0x4ae6c9,_0x15cd76,_0x5e88cb,_0x7f5c89,_0x4b1e61,_0x2fb4d1){return _0x435d52(_0x4ae6c9,_0x15cd76,_0x5e88cb,_0x7f5c89,_0x4b1e61,_0x2fb4d1);},'LReBQ':function(_0x150ce1,_0x3e81b7,_0x4e85db){return _0x150ce1(_0x3e81b7,_0x4e85db);},'Qkxfe':function(_0x4a64e8,_0x3302b2){return _0x4a64e8!==_0x3302b2;},'yXqyk':function(_0x542436,_0x1c7ff9){return _0x542436!==_0x1c7ff9;},'GIXeI':function(_0x35fc32,_0x24762f){return _0x35fc32===_0x24762f;},'uHdRU':_0x172f13(0x12e),'btnJW':_0x172f13(0x144),'ISEBl':_0x172f13(0x132),'UvZvG':_0x172f13(0x16f),'WzELH':_0x172f13(0x16c),'zmAuG':_0x172f13(0x15b),'FehlO':_0x172f13(0x124),'UNnxN':function(_0xbc7dba,_0x1f4a1c){return _0xbc7dba(_0x1f4a1c);},'DEtXt':_0x172f13(0x14d),'RcbhA':_0x172f13(0x15c),'YLSbe':function(_0x14002c,_0x8c88a6,_0x49b4f3,_0x4b09e2,_0xc14fd,_0x56899f,_0x125a3f){return _0x14002c(_0x8c88a6,_0x49b4f3,_0x4b09e2,_0xc14fd,_0x56899f,_0x125a3f);},'VTgBC':'server-error','AQOBa':'unknown-error'};try{global_registry[_0x172f13(0x166)]=_0x409880[_0x172f13(0x137)](uuidv4);!fs[_0x172f13(0x167)](_0x409880[_0x172f13(0x137)](getCredentialsPath))&&(console['error'](_0x409880[_0x172f13(0x14e)]),await _0x409880[_0x172f13(0x12f)](sendInstrumentationEvent,_0xefc5d,_0x409880[_0x172f13(0x13d)],messageTypes[_0x172f13(0x160)],_0x409880[_0x172f13(0x141)],null,_0xefc5d),process[_0x172f13(0x179)](0x1));const _0x2ace9f=JSON['parse'](fs[_0x172f13(0x146)](_0x409880[_0x172f13(0x13a)](getCredentialsPath)));let _0x3dc94b=_0x172f13(0x13e)+AG_API_URL+_0x172f13(0x13c);_0xefc5d[_0x172f13(0x17b)]&&(_0x3dc94b=_0x172f13(0x13e)+AG_API_URL+_0x172f13(0x159));const _0xa469eb={'method':_0x409880[_0x172f13(0x138)],'headers':_0x409880[_0x172f13(0x16e)](getAuthHeader,_0x2ace9f[_0x172f13(0x176)][_0x172f13(0x169)],_0x2ace9f[_0x172f13(0x176)]['password']),'throwHttpErrors':![]};global_registry[_0x172f13(0x148)]=_0x2ace9f['Browserstack'][_0x172f13(0x169)],global_registry[_0x172f13(0x15e)]=_0x2ace9f[_0x172f13(0x176)]['password'],_0x409880[_0x172f13(0x140)](sendInstrumentationEvent,_0xefc5d,_0x409880[_0x172f13(0x13d)],messageTypes[_0x172f13(0x152)],null,null,_0xefc5d);const _0x5041b0=await _0x409880[_0x172f13(0x134)](got,_0x3dc94b,_0xa469eb);if(_0x409880[_0x172f13(0x131)](_0x5041b0,null)&&_0x409880[_0x172f13(0x175)](_0x5041b0,undefined)&&_0x409880[_0x172f13(0x127)](_0x5041b0[_0x172f13(0x164)],0xc8)){const _0x516587=JSON['parse'](_0x5041b0[_0x172f13(0x155)]);console[_0x172f13(0x135)](_0x409880['uHdRU']);const _0xf0ef0d=[];_0xf0ef0d[_0x172f13(0x12d)]([_0x409880[_0x172f13(0x12a)],_0x409880[_0x172f13(0x15a)],_0x409880['UvZvG'],_0x409880[_0x172f13(0x143)],_0x409880[_0x172f13(0x126)],_0x409880[_0x172f13(0x129)]]),_0x516587[_0x172f13(0x17a)](_0x2799a7=>{const _0x492f08=_0x172f13;_0xf0ef0d[_0x492f08(0x12d)]([_0x2799a7['id'],_0x2799a7[_0x492f08(0x13b)],_0x2799a7[_0x492f08(0x16f)],_0x2799a7[_0x492f08(0x16c)],_0x2799a7[_0x492f08(0x15b)],_0x2799a7[_0x492f08(0x177)]]);}),console[_0x172f13(0x135)](_0x409880[_0x172f13(0x13f)](table,_0xf0ef0d)),process['exit'](0x0);}_0x409880[_0x172f13(0x127)](_0x5041b0[_0x172f13(0x164)],0x191)&&(console['error'](_0x409880['DEtXt']),await _0x409880[_0x172f13(0x140)](sendInstrumentationEvent,_0xefc5d,_0x409880[_0x172f13(0x13d)],messageTypes['ERROR'],_0x409880[_0x172f13(0x153)],null,_0xefc5d),process[_0x172f13(0x179)](0x1)),console[_0x172f13(0x14f)](_0x172f13(0x165)+JSON[_0x172f13(0x147)](_0x5041b0)),await _0x409880[_0x172f13(0x145)](sendInstrumentationEvent,_0xefc5d,_0x409880[_0x172f13(0x13d)],messageTypes[_0x172f13(0x160)],_0x409880[_0x172f13(0x16a)],_0x5041b0,_0xefc5d),process[_0x172f13(0x179)](0x1);}catch(_0xc01221){console[_0x172f13(0x14f)](_0x172f13(0x15d)+_0xc01221[_0x172f13(0x178)]),await _0x409880[_0x172f13(0x145)](sendInstrumentationEvent,_0xefc5d,_0x409880['OtuSl'],messageTypes[_0x172f13(0x160)],_0x409880['AQOBa'],_0xc01221,_0xefc5d),process[_0x172f13(0x179)](0x1);}};function a15_0x53c5(_0x5cd7d,_0x40180d){const _0x21a911=a15_0x21a9();return a15_0x53c5=function(_0x53c580,_0x596638){_0x53c580=_0x53c580-0x124;let _0x4aa024=_0x21a911[_0x53c580];return _0x4aa024;},a15_0x53c5(_0x5cd7d,_0x40180d);}function a15_0x21a9(){const _0x306655=['stack','exit','forEach','allGrids','cluster-name','usage','zmAuG','GIXeI','573482goDSiI','FehlO','btnJW','717PpqjYu','builder','push','\x0aFound\x20the\x20following\x20grids:\x0a','aPDPU','226312tJOYCo','Qkxfe','grid-name','3243888zuMVmi','LReBQ','log','10gnOauW','Ojarz','FavcS','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','mWxDf','name','/packages/cli/get-grids','OtuSl','https://','UNnxN','zJFvr','DWxun','grid','WzELH','grid-id','YLSbe','readFileSync','stringify','bstackUsername','list-grids-called','help','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','yPsLc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','EbhOy','error','jglUl','description','INFO','RcbhA','desc','body','all-grids','5482biFoAP','65SZZueE','/packages/cli/get-all-grids','ISEBl','queued','unauthorised','Failed\x20to\x20list\x20resources!\x20Error:\x20','bstackAccesskey','grids','ERROR','328650nuwwiI','got','488135LknHPH','statusCode','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','requestId','existsSync','../../utils/instrumentationUtils','username','VTgBC','GET','running','7968312TsCmbO','CKcIn','status','../../config/constants','handler','type','uuid','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','yXqyk','Browserstack','clusterName'];a15_0x21a9=function(){return _0x306655;};return a15_0x21a9();}
@@ -1 +1 @@
1
- const a16_0x5927ff=a16_0x29dd;(function(_0x339c87,_0x570372){const _0x89164=a16_0x29dd,_0x3dccbe=_0x339c87();while(!![]){try{const _0x3be15f=-parseInt(_0x89164(0xd4))/0x1+parseInt(_0x89164(0xe0))/0x2*(parseInt(_0x89164(0xce))/0x3)+-parseInt(_0x89164(0xd7))/0x4*(-parseInt(_0x89164(0xd3))/0x5)+parseInt(_0x89164(0xda))/0x6+-parseInt(_0x89164(0xd1))/0x7+-parseInt(_0x89164(0xcf))/0x8+-parseInt(_0x89164(0xd2))/0x9;if(_0x3be15f===_0x570372)break;else _0x3dccbe['push'](_0x3dccbe['shift']());}catch(_0x357faf){_0x3dccbe['push'](_0x3dccbe['shift']());}}}(a16_0x96f2,0xb6b3c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5927ff(0xde));function a16_0x29dd(_0x1dd5b4,_0x4321ab){const _0x96f2b9=a16_0x96f2();return a16_0x29dd=function(_0x29ddac,_0xa01289){_0x29ddac=_0x29ddac-0xcc;let _0x532524=_0x96f2b9[_0x29ddac];return _0x532524;},a16_0x29dd(_0x1dd5b4,_0x4321ab);}function a16_0x96f2(){const _0x42485b=['2665964jyQrMt','22276422GZhQjp','3149450dgoHmV','122790qlLvfL','strict','pre_check','8jBPwNy','EfaaD','mcEqz','7775394gVRwge','epilogue','builder','precheck_commands','../config/constants','help','82TXroVS','command','demandCommand','usage','handler','107667bkdtbt','2399840DOrYrl','desc'];a16_0x96f2=function(){return _0x42485b;};return a16_0x96f2();}exports[a16_0x5927ff(0xe1)]='pre-check',exports[a16_0x5927ff(0xd0)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x5927ff(0xdc)]=function(_0xd561d9){const _0x213964=a16_0x5927ff,_0x4b735e={};_0x4b735e[_0x213964(0xd8)]=_0x213964(0xdd),_0x4b735e['mcEqz']=_0x213964(0xdf);const _0x462171=_0x4b735e;return _0xd561d9[_0x213964(0xcc)](HELP_HEADER_MESSAGE[_0x213964(0xd6)])[_0x213964(0xdb)](HELP_FOOTER_MESSAGE)['commandDir'](_0x462171[_0x213964(0xd8)])[_0x213964(0xe2)]()['recommendCommands']()[_0x213964(0xd5)]()[_0x213964(0xdf)](_0x462171[_0x213964(0xd9)]);},exports[a16_0x5927ff(0xcd)]=function(_0x2d1f48){};
1
+ function a16_0x3e2d(){const _0xf8ca94=['yQTSD','BcLln','207ZdnQOZ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','pre_check','builder','help','command','5Vfsztx','../config/constants','1375906sojzGx','demandCommand','1793536EQZdtn','handler','40820HcaDhp','recommendCommands','37055SvDruy','4OKtNVD','112CqzSLe','1596984gtBfut','epilogue','947382lTxdog','precheck_commands','pre-check'];a16_0x3e2d=function(){return _0xf8ca94;};return a16_0x3e2d();}const a16_0x31da5e=a16_0x2e60;(function(_0x56f539,_0x574dbc){const _0x340efc=a16_0x2e60,_0x1d9407=_0x56f539();while(!![]){try{const _0x1fc6b4=-parseInt(_0x340efc(0xb3))/0x1*(-parseInt(_0x340efc(0xbd))/0x2)+parseInt(_0x340efc(0xc0))/0x3*(parseInt(_0x340efc(0xbc))/0x4)+-parseInt(_0x340efc(0xbb))/0x5+-parseInt(_0x340efc(0xbe))/0x6+-parseInt(_0x340efc(0xb5))/0x7+parseInt(_0x340efc(0xb7))/0x8+-parseInt(_0x340efc(0xc5))/0x9*(-parseInt(_0x340efc(0xb9))/0xa);if(_0x1fc6b4===_0x574dbc)break;else _0x1d9407['push'](_0x1d9407['shift']());}catch(_0x59ccc4){_0x1d9407['push'](_0x1d9407['shift']());}}}(a16_0x3e2d,0x280b3));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x31da5e(0xb4));function a16_0x2e60(_0x13b635,_0x25dcbc){const _0x3e2d38=a16_0x3e2d();return a16_0x2e60=function(_0x2e6034,_0x53be1d){_0x2e6034=_0x2e6034-0xb3;let _0x56f422=_0x3e2d38[_0x2e6034];return _0x56f422;},a16_0x2e60(_0x13b635,_0x25dcbc);}exports[a16_0x31da5e(0xca)]=a16_0x31da5e(0xc2),exports['desc']=a16_0x31da5e(0xc6),exports[a16_0x31da5e(0xc8)]=function(_0x27c1eb){const _0x36495e=a16_0x31da5e,_0x3cb399={};_0x3cb399[_0x36495e(0xc3)]=_0x36495e(0xc1),_0x3cb399[_0x36495e(0xc4)]=_0x36495e(0xc9);const _0x34ed23=_0x3cb399;return _0x27c1eb['usage'](HELP_HEADER_MESSAGE[_0x36495e(0xc7)])[_0x36495e(0xbf)](HELP_FOOTER_MESSAGE)['commandDir'](_0x34ed23[_0x36495e(0xc3)])[_0x36495e(0xb6)]()[_0x36495e(0xba)]()['strict']()[_0x36495e(0xc9)](_0x34ed23['BcLln']);},exports[a16_0x31da5e(0xb8)]=function(_0x3c7a06){};
@@ -1 +1 @@
1
- const a17_0x8b31d0=a17_0x5285;(function(_0x256991,_0x2528f8){const _0x18edd5=a17_0x5285,_0x545758=_0x256991();while(!![]){try{const _0x44a9e6=-parseInt(_0x18edd5(0x17a))/0x1+parseInt(_0x18edd5(0x204))/0x2+parseInt(_0x18edd5(0x18f))/0x3+-parseInt(_0x18edd5(0x20a))/0x4*(-parseInt(_0x18edd5(0x22b))/0x5)+parseInt(_0x18edd5(0x164))/0x6*(-parseInt(_0x18edd5(0x193))/0x7)+parseInt(_0x18edd5(0x1e5))/0x8+-parseInt(_0x18edd5(0x1bf))/0x9;if(_0x44a9e6===_0x2528f8)break;else _0x545758['push'](_0x545758['shift']());}catch(_0xa2aa2c){_0x545758['push'](_0x545758['shift']());}}}(a17_0x5d69,0xbdca9));const fs=require('fs'),ws=require('ws'),got=require(a17_0x8b31d0(0x1f9)),{v4:uuidv4}=require(a17_0x8b31d0(0x170)),ReconnectingWebSocket=require(a17_0x8b31d0(0x1eb)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x8b31d0(0x1ab)),{logger}=require('../../config/logger'),{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_0x8b31d0(0x210)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x8b31d0(0x1f6)),{sendInstrumentationEvent}=require(a17_0x8b31d0(0x1a2));exports[a17_0x8b31d0(0x17d)]=a17_0x8b31d0(0x22f),exports['desc']=a17_0x8b31d0(0x200),exports['builder']=function(_0x35df93){const _0x8701e9=a17_0x8b31d0,_0xe38d84={};_0xe38d84[_0x8701e9(0x1f8)]=_0x8701e9(0x22d),_0xe38d84[_0x8701e9(0x1e6)]=_0x8701e9(0x18a),_0xe38d84['KFsJh']=_0x8701e9(0x21c),_0xe38d84[_0x8701e9(0x1f1)]=_0x8701e9(0x241),_0xe38d84[_0x8701e9(0x1ca)]=_0x8701e9(0x165),_0xe38d84[_0x8701e9(0x243)]=_0x8701e9(0x242);const _0x47d9fb=_0xe38d84,_0x54a2b1={};_0x54a2b1['description']=_0x47d9fb['ZxTkV'],_0x54a2b1[_0x8701e9(0x238)]=_0x47d9fb[_0x8701e9(0x1e6)];const _0x81c288={};_0x81c288['description']=_0x47d9fb[_0x8701e9(0x245)],_0x81c288[_0x8701e9(0x238)]=_0x47d9fb[_0x8701e9(0x1e6)];const _0x2153c3={};_0x2153c3['description']=_0x47d9fb[_0x8701e9(0x1f1)],_0x2153c3[_0x8701e9(0x238)]=_0x47d9fb[_0x8701e9(0x1e6)];const _0x2c2cf5={};_0x2c2cf5['description']=_0x47d9fb[_0x8701e9(0x1ca)],_0x2c2cf5[_0x8701e9(0x238)]=_0x47d9fb[_0x8701e9(0x1e6)];const _0x43c971={};return _0x43c971[_0x8701e9(0x154)]=_0x54a2b1,_0x43c971[_0x8701e9(0x23f)]=_0x81c288,_0x43c971[_0x8701e9(0x235)]=_0x2153c3,_0x43c971[_0x8701e9(0x1a7)]=_0x2c2cf5,_0x35df93[_0x8701e9(0x20e)](HELP_HEADER_MESSAGE['pre_check'])[_0x8701e9(0x1b3)](HELP_FOOTER_MESSAGE)[_0x8701e9(0x18b)](_0x43c971)['help'](_0x47d9fb[_0x8701e9(0x243)])[_0x8701e9(0x175)];};async function inputValidation(_0xf4c44d,_0x53694f){const _0x2477db=a17_0x8b31d0,_0x4d16cc={'aBUUA':'region','PMFmw':'cluster-name','jVRLJ':'is\x20already\x20present','JXhBM':_0x2477db(0x1dc),'LmhTk':_0x2477db(0x209),'sFspH':function(_0x2c03a2,_0x4faf69){return _0x2c03a2+_0x4faf69;},'cMiKD':_0x2477db(0x231),'jgqVh':_0x2477db(0x17e),'MXfYs':function(_0x92185b,_0x300200){return _0x92185b||_0x300200;},'zkSKt':_0x2477db(0x1f5),'poMSe':_0x2477db(0x1c5),'WFjDo':_0x2477db(0x23f),'pVbgy':_0x2477db(0x22d),'pFYjo':'string','YIfbv':_0x2477db(0x21c),'wsnod':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','HGwgO':_0x2477db(0x165),'IHwfB':_0x2477db(0x242),'kekYk':_0x2477db(0x15c),'bxjxe':function(_0x172ca0,_0x431a7d){return _0x172ca0===_0x431a7d;},'woCTU':_0x2477db(0x1e7),'gKVip':function(_0x27e698,_0x315f47){return _0x27e698===_0x315f47;},'AfWEZ':_0x2477db(0x197),'ovYVx':_0x2477db(0x1ec),'yQSAw':function(_0x361e1c,_0xb24374){return _0x361e1c!==_0xb24374;},'bvMzh':_0x2477db(0x1c8),'RHMvy':_0x2477db(0x1d0),'SRTSF':function(_0x12ff02,_0x204a19){return _0x12ff02!==_0x204a19;},'pkgrT':_0x2477db(0x16b),'GJNve':_0x2477db(0x236),'BDrHq':function(_0x1377da,_0x4520f9){return _0x1377da>_0x4520f9;},'LsUUd':function(_0x2e3ec3,_0x4c3d57){return _0x2e3ec3!==_0x4c3d57;},'fatFv':_0x2477db(0x1fc),'iguJf':function(_0x34d11f,_0x227a31,_0x108ea4,_0x8c1952,_0x4ba99a,_0x324a8b,_0x30bcc6,_0x16c900){return _0x34d11f(_0x227a31,_0x108ea4,_0x8c1952,_0x4ba99a,_0x324a8b,_0x30bcc6,_0x16c900);},'FSBIq':_0x2477db(0x18e),'bsNjF':_0x2477db(0x169),'RBNEj':'puNiG','zZJWy':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','kdMeM':function(_0x23fdbc,_0x3faa85,_0x160d7e,_0x51c3ce,_0x2e8f69,_0x40ee5f,_0x2735cb,_0x5bb5d8){return _0x23fdbc(_0x3faa85,_0x160d7e,_0x51c3ce,_0x2e8f69,_0x40ee5f,_0x2735cb,_0x5bb5d8);},'jmTJC':_0x2477db(0x23a),'lVMYv':function(_0x577ebd,_0x223f0a){return _0x577ebd===_0x223f0a;},'DCIOt':'vWqvK','CDOxG':_0x2477db(0x240),'uURwG':'rkyaV','FADEZ':'MaRJP','zXoxS':'GET','qLIwg':function(_0x2c0b3c,_0x27972e,_0x400ef6){return _0x2c0b3c(_0x27972e,_0x400ef6);},'zskdf':function(_0x537e2b,_0x2a753f,_0x3628dd,_0xf0ca46,_0x31ef08,_0x5ee338){return _0x537e2b(_0x2a753f,_0x3628dd,_0xf0ca46,_0x31ef08,_0x5ee338);},'rxRvd':'pre-check','Eztud':_0x2477db(0x1a7),'fYmBt':function(_0xa8b4af,_0x21c55a){return _0xa8b4af===_0x21c55a;},'aMYdH':function(_0x5bc6aa,_0x5093c5){return _0x5bc6aa===_0x5093c5;},'TOaom':_0x2477db(0x161),'odiFv':_0x2477db(0x1e4),'fSTdF':function(_0x77bea1,_0xe1ff4b){return _0x77bea1(_0xe1ff4b);},'ltwJb':function(_0x5e3475,_0x182b8a){return _0x5e3475!==_0x182b8a;},'SPYPE':_0x2477db(0x1b4),'iyWVC':'RaFby','xVGhR':_0x2477db(0x1b8),'PGpnb':_0x2477db(0x21b),'YkNDd':_0x2477db(0x195),'uCNTr':_0x2477db(0x1e9),'HViiw':function(_0x334811,_0x2df25f){return _0x334811===_0x2df25f;},'dlpQs':_0x2477db(0x229),'EgKfx':_0x2477db(0x246),'AnrDL':'bSzNp','wjxRu':'yJqVT','KjIts':function(_0x58dac9,_0x10be9a,_0x1f1ddd,_0x554fad,_0x23061b,_0x4b8cf6,_0x42534a,_0xc3cd8c){return _0x58dac9(_0x10be9a,_0x1f1ddd,_0x554fad,_0x23061b,_0x4b8cf6,_0x42534a,_0xc3cd8c);}};let _0x2acd3c;try{if(_0x4d16cc['bxjxe'](_0x4d16cc['woCTU'],_0x4d16cc[_0x2477db(0x18c)])){if(_0xf4c44d['clusterName']||_0xf4c44d[_0x2477db(0x186)]||_0xf4c44d['region']){if(_0x4d16cc['gKVip'](_0x4d16cc['AfWEZ'],_0x4d16cc[_0x2477db(0x1a8)])){const _0x3fe216=[];!_0xf4c44d[_0x2477db(0x1c0)]&&(_0x4d16cc['gKVip'](_0x4d16cc[_0x2477db(0x1e2)],_0x4d16cc[_0x2477db(0x1e2)])?_0x3fe216[_0x2477db(0x1a3)](_0x4d16cc[_0x2477db(0x1d8)]):(_0x3b06c0[_0x2477db(0x181)](_0x2477db(0x168)+_0x3eaf61[_0x2477db(0x177)]+'\x20'),_0x300597[_0x2477db(0x186)]=_0x7bac82[_0x2477db(0x177)]));;!_0xf4c44d['cloudProvider']&&(_0x4d16cc['yQSAw'](_0x4d16cc['bvMzh'],_0x4d16cc['RHMvy'])?_0x3fe216['push'](_0x4d16cc[_0x2477db(0x16f)]):_0x4ccb4c['push'](_0x4d16cc[_0x2477db(0x247)]));;!_0xf4c44d[_0x2477db(0x235)]&&(_0x4d16cc['SRTSF'](_0x4d16cc[_0x2477db(0x219)],_0x4d16cc[_0x2477db(0x173)])?_0x3fe216['push'](_0x4d16cc[_0x2477db(0x247)]):_0x31b36c[_0x2477db(0x1a3)](_0x4d16cc[_0x2477db(0x1d8)]));;_0x4d16cc[_0x2477db(0x16d)](_0x3fe216['length'],0x0)&&(_0x4d16cc['LsUUd'](_0x4d16cc['fatFv'],_0x4d16cc[_0x2477db(0x1e0)])?_0x467ac8+='Cluster\x20'+_0x79057[_0x2477db(0x1c0)]+'\x20'+(_0x5a99dc?_0x4d16cc[_0x2477db(0x174)]:_0x4d16cc[_0x2477db(0x180)])+'\x0a\x0a':(_0x2acd3c=_0x2477db(0x20b)+_0x3fe216['join'](',\x20')+_0x2477db(0x17f),await _0x4d16cc['iguJf'](reportToGalactusAndSendToEDS,_0xf4c44d,_0x53694f,_0x2acd3c,messageTypes['ERROR'],_0x4d16cc[_0x2477db(0x1e3)],_0x4d16cc[_0x2477db(0x1ea)],_0x4d16cc[_0x2477db(0x1d2)]),logger['error'](_0x2acd3c),process[_0x2477db(0x233)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2477db(0x211)](_0xf4c44d[_0x2477db(0x186)][_0x2477db(0x1c1)]())){if(_0x4d16cc['gKVip'](_0x4d16cc[_0x2477db(0x22e)],_0x4d16cc['RBNEj']))_0x2acd3c=_0x4d16cc[_0x2477db(0x172)],await _0x4d16cc['kdMeM'](reportToGalactusAndSendToEDS,_0xf4c44d,_0x53694f,_0x2acd3c,messageTypes['ERROR'],_0x4d16cc[_0x2477db(0x1e3)],_0x4d16cc[_0x2477db(0x21a)],_0x4d16cc[_0x2477db(0x1d2)]),logger['error'](_0x2acd3c),!_0xf4c44d[_0x2477db(0x186)]&&(_0x4d16cc[_0x2477db(0x15a)](_0x4d16cc[_0x2477db(0x222)],_0x4d16cc['CDOxG'])?(_0x53f418[_0x2477db(0x15c)](_0x4d16cc[_0x2477db(0x19d)]),_0x121777[_0x2477db(0x233)](0x1)):(logger['info'](_0x2477db(0x168)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0xf4c44d['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x2477db(0x177)]));else{const {header:_0x1b27b3,response:_0x5e28a1}=_0xf7036f,{status:_0x458bce,data:_0x191a3a,error:_0x2f1b29}=_0x5e28a1;_0x4bdd36+=_0x1b27b3+'\x20#'+_0x4d16cc[_0x2477db(0x162)](_0x48da66,0x1)+'\x0a',_0x369379+='Status:\x20'+(_0x458bce?_0x4d16cc[_0x2477db(0x228)]:_0x4d16cc['jgqVh'])+'\x0a',_0x46eacc+=_0x2477db(0x23c)+_0x4d16cc[_0x2477db(0x179)](_0x191a3a,_0x4d16cc[_0x2477db(0x1bd)])+'\x0a',_0x2f1b29&&(_0x366925+=_0x4d16cc[_0x2477db(0x158)],_0x497946+='\x20\x20Message:\x20'+(_0x2f1b29['message']||_0x4d16cc[_0x2477db(0x1bd)])+'\x0a',_0x198569+=_0x2477db(0x1c4)+(_0x2f1b29[_0x2477db(0x192)]||_0x4d16cc[_0x2477db(0x1bd)])+'\x0a',_0x2a64b2+=_0x2477db(0x1b9)+(_0x2f1b29[_0x2477db(0x1df)]||_0x4d16cc[_0x2477db(0x1bd)])+'\x0a'),_0x4f9674+='\x0a\x0a';}}global_registry[_0x2477db(0x1c0)]=_0xf4c44d['clusterName'],global_registry['cloudProvider']=_0xf4c44d[_0x2477db(0x186)],global_registry['clusterRegion']=_0xf4c44d[_0x2477db(0x235)];}else _0x3cab07[_0x2477db(0x1a3)](_0x4d16cc[_0x2477db(0x16f)]);}else{if(_0xf4c44d['gridProfile']){if(_0x4d16cc[_0x2477db(0x15a)](_0x4d16cc[_0x2477db(0x189)],_0x4d16cc[_0x2477db(0x214)]))_0x5ec9dc+='Cluster\x20'+_0x1a965[_0x2477db(0x1c0)]+_0x2477db(0x237);else{global_registry[_0x2477db(0x160)]=_0xf4c44d[_0x2477db(0x160)],logger[_0x2477db(0x232)](_0x2477db(0x1dd)+_0xf4c44d[_0x2477db(0x160)]);const _0x502646=_0x2477db(0x19e)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x41c0de={};_0x41c0de[_0x2477db(0x1ae)]=_0x4d16cc[_0x2477db(0x1bb)],_0x41c0de[_0x2477db(0x1db)]=global_registry['authHeader'],_0x41c0de['throwHttpErrors']=![];const _0x1ba420=_0x41c0de,_0x461618=await _0x4d16cc['qLIwg'](got,_0x502646,_0x1ba420),_0xbda082=await _0x4d16cc[_0x2477db(0x218)](responseValidation,_0x461618,_0x4d16cc['rxRvd'],_0x4d16cc['Eztud'],_0xf4c44d,_0x53694f);let _0xbb9fcb={};if(_0x4d16cc[_0x2477db(0x221)](_0xbda082,0xc8)){if(_0x4d16cc['aMYdH'](_0x4d16cc[_0x2477db(0x1ee)],_0x4d16cc[_0x2477db(0x1b5)])){const _0x2276d2={};_0x2276d2[_0x2477db(0x227)]=_0x4d16cc['pVbgy'],_0x2276d2[_0x2477db(0x238)]=_0x4d16cc[_0x2477db(0x152)];const _0xf7e36b={};_0xf7e36b[_0x2477db(0x227)]=_0x4d16cc[_0x2477db(0x19b)],_0xf7e36b['type']=_0x4d16cc[_0x2477db(0x152)];const _0x2ee33c={};_0x2ee33c[_0x2477db(0x227)]=_0x4d16cc[_0x2477db(0x166)],_0x2ee33c[_0x2477db(0x238)]=_0x4d16cc[_0x2477db(0x152)];const _0x1a76ab={};_0x1a76ab[_0x2477db(0x227)]=_0x4d16cc[_0x2477db(0x1d9)],_0x1a76ab['type']=_0x4d16cc['pFYjo'];const _0x22c097={};return _0x22c097[_0x2477db(0x154)]=_0x2276d2,_0x22c097[_0x2477db(0x23f)]=_0xf7e36b,_0x22c097[_0x2477db(0x235)]=_0x2ee33c,_0x22c097[_0x2477db(0x1a7)]=_0x1a76ab,_0x233a52[_0x2477db(0x20e)](_0x278caf[_0x2477db(0x20c)])[_0x2477db(0x1b3)](_0x17049c)[_0x2477db(0x18b)](_0x22c097)[_0x2477db(0x242)](_0x4d16cc['IHwfB'])[_0x2477db(0x175)];}else{const _0x182686=JSON[_0x2477db(0x23e)](_0x461618[_0x2477db(0x1a0)]),_0x5b33ad=_0x182686[_0x2477db(0x1bc)](_0x267b61=>_0x267b61[_0x2477db(0x216)]===_0xf4c44d[_0x2477db(0x160)])||null;if(_0x4d16cc['fSTdF'](isUndefined,_0x5b33ad))_0x4d16cc['ltwJb'](_0x4d16cc[_0x2477db(0x1cf)],_0x4d16cc[_0x2477db(0x1c6)])?(_0x2acd3c=_0x2477db(0x16c)+_0xf4c44d['gridProfile']+_0x2477db(0x207),await _0x4d16cc[_0x2477db(0x225)](reportToGalactusAndSendToEDS,_0xf4c44d,_0x53694f,_0x2acd3c,messageTypes[_0x2477db(0x213)],_0x4d16cc['FSBIq'],_0x4d16cc[_0x2477db(0x1fa)],_0x4d16cc[_0x2477db(0x1d2)]),logger[_0x2477db(0x15c)](_0x2acd3c),process[_0x2477db(0x233)](0x1)):_0x57c207[_0x2477db(0x233)](0x1);else{if(_0x4d16cc[_0x2477db(0x1de)](_0x4d16cc[_0x2477db(0x21e)],_0x4d16cc[_0x2477db(0x21e)]))_0xbb9fcb=_0x5b33ad;else{const _0x1c84d6={};_0x1c84d6[_0x2477db(0x238)]=_0x2b3d88[_0x2477db(0x157)],_0x1c84d6[_0x2477db(0x1c7)]=_0x4f0e43,_0xb4b888[_0x2477db(0x1ff)](_0x2b7ec9,_0x1c84d6,_0x4d16cc['kekYk'],!![]);}}}}else _0x4d16cc[_0x2477db(0x1de)](_0x4d16cc[_0x2477db(0x191)],_0x4d16cc['YkNDd'])?process[_0x2477db(0x233)](0x1):(_0x264be0['info']('['+_0x3c7fe0+_0x2477db(0x182)+_0x4ff867[_0x2477db(0x15b)]+_0x2477db(0x1d6)+_0x1381a7[_0x2477db(0x22a)]+_0x2477db(0x196)+_0x318564[_0x2477db(0x15c)]),_0xf99a41[_0x2477db(0x15c)]&&_0xce1469[_0x2477db(0x15c)](_0x2477db(0x1cb)+_0x590827['error'][_0x2477db(0x1df)]));const _0x48dff2={};_0x48dff2[_0x2477db(0x238)]=WS_EVENTS[_0x2477db(0x157)],_0x48dff2[_0x2477db(0x1c7)]=_0x4d16cc['uCNTr'],webSocketUtils[_0x2477db(0x1ff)](_0x53694f,_0x48dff2),global_registry[_0x2477db(0x186)]=_0xbb9fcb[_0x2477db(0x186)],global_registry[_0x2477db(0x1a4)]=_0xbb9fcb['region'],global_registry[_0x2477db(0x1c0)]=_0xbb9fcb[_0x2477db(0x1c0)];}}else _0x4d16cc['HViiw'](_0x4d16cc[_0x2477db(0x217)],_0x4d16cc[_0x2477db(0x194)])?_0x29e0b6['info'](_0x2477db(0x234)+_0x5ba43d[_0x2477db(0x1c0)]+_0x2477db(0x1c9)):(logger[_0x2477db(0x15c)](_0x4d16cc[_0x2477db(0x19d)]),process[_0x2477db(0x233)](0x1));}}else _0x2bead4=_0x346ac7;}catch(_0x3166aa){_0x4d16cc[_0x2477db(0x15a)](_0x4d16cc[_0x2477db(0x244)],_0x4d16cc[_0x2477db(0x188)])?_0x23ecf4['error'](_0x2477db(0x1cb)+_0x1b4e37[_0x2477db(0x15c)]['stack']):(_0x2acd3c=_0x2477db(0x155)+_0x3166aa+':\x20'+_0x3166aa[_0x2477db(0x1df)],logger[_0x2477db(0x15c)](_0x2acd3c),await _0x4d16cc[_0x2477db(0x21d)](reportToGalactusAndSendToEDS,_0xf4c44d,_0x53694f,_0x2acd3c,messageTypes['ERROR'],_0x4d16cc[_0x2477db(0x1e3)],_0x4d16cc[_0x2477db(0x21a)],_0x4d16cc[_0x2477db(0x1d2)]),process[_0x2477db(0x233)](0x1));}}function a17_0x5d69(){const _0x210711=['FSBIq','mzfwK','761968BvFCTQ','yhGBu','jftDS','rlkkW','Grid\x20profile\x20fetched\x20for\x20pre-check','bsNjF','reconnecting-websocket','zzpJg','gedIj','TOaom','cOHSB','split','lhxfO','isClusterPresent','stack\x20trace\x20','.txt','N/A','../../utils/webSocketUtils','username','ZxTkV','got','xVGhR','0|1|3|2|4','LHXtY','utf-8','AXVGY','sendEventToBackend','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','replace','credential-not-found','QhiCi','2194354dCFyXw','isCliToolInstalled','VSbGq','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','readFileSync','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','38084HUUyhj','Missing\x20required\x20arguments:\x20','pre_check','writeFileSync','usage','is\x20already\x20present','../../config/constants','includes','EQNJQ','ERROR','FADEZ','SSL\x20Configured','name','dlpQs','zskdf','pkgrT','jmTJC','UEDIZ','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','KjIts','PGpnb','DpLWQ','TLSv1_2_client_method','fYmBt','DCIOt','header','existsSync','iguJf','RtSTf','description','cMiKD','XlWLn','data','505VZBxXC','getUTCDate','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','RBNEj','grid','getUTCMinutes','Success','debug','exit','Cluster\x20`','region','XTVwF','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','type','EDbIf','cloud-provider-not-supported','User\x20Access','Message:\x20','\x20\x20Message:\x20','parse','cloud-provider','CrxMM','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','help','iqhEy','AnrDL','KFsJh','PSDjL','aBUUA','OQQFd','pFYjo','dsYBT','cluster-name','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','PwLVc','LOG','poMSe','\x20===\x0a\x0a','lVMYv','status','error','pre-check-failed','getUTCMonth','pKEEb','gridProfile','WMiAA','sFspH','biLjR','7662IwPLkh','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','wsnod','getUTCHours','Setting\x20cloud\x20provider\x20as\x20','pre-check-cluster-args-not-passed','aPaNv','cnoEP','Invalid\x20input.\x20grid\x20profiles:\x20','BDrHq','Cluster\x20','WFjDo','uuid','WebSocket','zZJWy','GJNve','jVRLJ','argv','BZwKh','CLOUD_PROVIDER','PbIuk','MXfYs','1047440rFYZni','zlGeo','xauPu','command','Failure','.\x20Please\x20provide\x20all\x20required\x20arguments.','JXhBM','info',']\x20status\x20:\x20','CwaWW','unable\x20to\x20verify\x20if\x20cluster\x20`','getUTCFullYear','cloudProvider','\x20region\x20-\x20','wjxRu','uURwG','string','options','woCTU','response','pre-check-grid-called','2593947jePwNj','HZCtj','YkNDd','code','1351UIfMyH','EgKfx','dlcWC','\x20error\x20:\x20','HYJEP','bstackAccesskey','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Whitelisted\x20browserstack','YIfbv','tSsmx','LmhTk','https://','`\x20is\x20present\x20in\x20region\x20`','body','JdUiK','../../utils/instrumentationUtils','push','clusterRegion','JpbxE','isTrialGridAccessible','grid-profile','AfWEZ','odINg','RGCrd','../../utils/utilityMethods','atWjJ','fSOom','method','Report\x20saved\x20in\x20','forEach','connectionTimeout','Browserstack','epilogue','ZnYBa','odiFv','Xjoyt','bstackUsername','pre-check-grid-profile-empty','\x20\x20Stack:\x20','HCqsi','zXoxS','find','zkSKt','log/report_','8526663UtXwZf','clusterName','toLowerCase','accessResp','requestId','\x20\x20Code:\x20','Error\x20Details:\x0a','iyWVC','message','jBFZm','`\x20already\x20exists','Dopik','error\x20stack\x20:\x20','password','Failed\x20in\x20pre-check!\x20Error:\x20','zpQgl','SPYPE','UaRqk','DJuhG','kekYk','bQZTX','ljpWp','ZlzXw','\x20data\x20:\x20','gTOCi','PMFmw','HGwgO','Status:\x20','headers','will\x20be\x20created','grid\x20profile\x20flow\x20','aMYdH','stack','fatFv','stringify','ovYVx'];a17_0x5d69=function(){return _0x210711;};return a17_0x5d69();}function printResponse(_0xae28bd,_0x38d182){const _0x3864c4=a17_0x8b31d0,_0x54da30={};_0x54da30[_0x3864c4(0x1ce)]='Error\x20Details:\x0a',_0x54da30[_0x3864c4(0x239)]='N/A',_0x54da30[_0x3864c4(0x151)]=function(_0x25f381,_0x4417f6){return _0x25f381!==_0x4417f6;},_0x54da30[_0x3864c4(0x1a5)]=_0x3864c4(0x1ac);const _0x409b58=_0x54da30;logger[_0x3864c4(0x181)]('['+_0xae28bd+_0x3864c4(0x182)+_0x38d182[_0x3864c4(0x15b)]+'\x20data\x20:\x20'+_0x38d182['data']+'\x20error\x20:\x20'+_0x38d182['error']),_0x38d182[_0x3864c4(0x15c)]&&(_0x409b58[_0x3864c4(0x151)](_0x409b58[_0x3864c4(0x1a5)],_0x409b58[_0x3864c4(0x1a5)])?(_0x3c8bb7+=_0x409b58['zpQgl'],_0x12a62a+=_0x3864c4(0x23d)+(_0x41dac6['message']||_0x409b58[_0x3864c4(0x239)])+'\x0a',_0x37e58c+=_0x3864c4(0x1c4)+(_0x507cc5[_0x3864c4(0x192)]||_0x409b58[_0x3864c4(0x239)])+'\x0a',_0x2f6c3b+='\x20\x20Stack:\x20'+(_0x1dcaaa['stack']||_0x409b58[_0x3864c4(0x239)])+'\x0a'):logger[_0x3864c4(0x15c)](_0x3864c4(0x1cb)+_0x38d182[_0x3864c4(0x15c)]['stack']));}async function generateReport(_0x1768d2,_0x20091e){const _0x24745e=a17_0x8b31d0,_0x446351={'PbIuk':function(_0x1026c6,_0x2760e5){return _0x1026c6+_0x2760e5;},'PwLVc':'Success','fSOom':_0x24745e(0x17e),'xnayb':function(_0x32ed1b,_0x2cb2b3){return _0x32ed1b||_0x2cb2b3;},'tSsmx':_0x24745e(0x1f5),'xauPu':'Error\x20Details:\x0a','VZrAl':'Cluster\x20details\x0a-----------------------\x0a','JURRw':function(_0x1477be,_0xd52564){return _0x1477be!=_0xd52564;},'GFbSh':_0x24745e(0x20f),'zqbsp':_0x24745e(0x1dc),'gedIj':function(_0x19b420){return _0x19b420();}};let _0x29a475='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x24745e(0x159);return _0x1768d2[_0x24745e(0x1b0)]((_0x38d76e,_0x272c93)=>{const _0x4f7784=_0x24745e,{header:_0x439adc,response:_0x9dadd4}=_0x38d76e,{status:_0x11e84f,data:_0x319919,error:_0x477405}=_0x9dadd4;_0x29a475+=_0x439adc+'\x20#'+_0x446351[_0x4f7784(0x178)](_0x272c93,0x1)+'\x0a',_0x29a475+=_0x4f7784(0x1da)+(_0x11e84f?_0x446351[_0x4f7784(0x156)]:_0x446351[_0x4f7784(0x1ad)])+'\x0a',_0x29a475+='Message:\x20'+_0x446351['xnayb'](_0x319919,_0x446351[_0x4f7784(0x19c)])+'\x0a',_0x477405&&(_0x29a475+=_0x446351[_0x4f7784(0x17c)],_0x29a475+=_0x4f7784(0x23d)+(_0x477405[_0x4f7784(0x1c7)]||_0x446351['tSsmx'])+'\x0a',_0x29a475+=_0x4f7784(0x1c4)+(_0x477405['code']||_0x446351[_0x4f7784(0x19c)])+'\x0a',_0x29a475+=_0x4f7784(0x1b9)+(_0x477405[_0x4f7784(0x1df)]||_0x446351[_0x4f7784(0x19c)])+'\x0a'),_0x29a475+='\x0a\x0a';}),_0x29a475+=_0x446351['VZrAl'],_0x446351['JURRw'](_0x20091e,null)?_0x29a475+=_0x24745e(0x16e)+global_registry[_0x24745e(0x1c0)]+'\x20'+(_0x20091e?_0x446351['GFbSh']:_0x446351['zqbsp'])+'\x0a\x0a':_0x29a475+=_0x24745e(0x16e)+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x29a475+=_0x446351[_0x24745e(0x1ed)](getSystemMetaData),_0x29a475;};function a17_0x5285(_0x356f5b,_0x3da2cb){const _0x5d6934=a17_0x5d69();return a17_0x5285=function(_0x5285a7,_0x63607){_0x5285a7=_0x5285a7-0x151;let _0x340600=_0x5d6934[_0x5285a7];return _0x340600;},a17_0x5285(_0x356f5b,_0x3da2cb);}exports['handler']=async function(_0x1361bb){const _0x5d8a78=a17_0x8b31d0,_0x5092d4={'CwaWW':function(_0x260438){return _0x260438();},'EQNJQ':function(_0x382d9f){return _0x382d9f();},'DpLWQ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dsYBT':function(_0x19fad9,_0x20fa51,_0x141bda,_0x343a47,_0x1f85e1,_0x30d4af,_0x294796,_0x146777){return _0x19fad9(_0x20fa51,_0x141bda,_0x343a47,_0x1f85e1,_0x30d4af,_0x294796,_0x146777);},'pKEEb':'pre-check-grid-called','BpEyo':_0x5d8a78(0x202),'HCqsi':_0x5d8a78(0x15c),'odINg':function(_0x448cee,_0x15460a,_0x405337,_0x47857b,_0x390401,_0x37e240,_0x16355f){return _0x448cee(_0x15460a,_0x405337,_0x47857b,_0x390401,_0x37e240,_0x16355f);},'RGCrd':'<UsernamePlaceholder>','VSbGq':'<PasswordPlaceholder>','ZlzXw':function(_0x4c9ea8,_0x3b6f4c,_0x35123d){return _0x4c9ea8(_0x3b6f4c,_0x35123d);},'AXVGY':function(_0x183881,_0x33a116,_0x29b347){return _0x183881(_0x33a116,_0x29b347);},'biLjR':function(_0x3b584c,_0x18eeb1,_0x31398a,_0x189341,_0x22e7c7,_0xe839c8,_0x51367f){return _0x3b584c(_0x18eeb1,_0x31398a,_0x189341,_0x22e7c7,_0xe839c8,_0x51367f);},'Xjoyt':'dummy-grid','aPaNv':function(_0x2f1af9,_0x157e2c,_0x29720f){return _0x2f1af9(_0x157e2c,_0x29720f);},'zlGeo':'toolInstalledResp','JdUiK':_0x5d8a78(0x1fb),'DJuhG':function(_0x56344c,_0x120dee,_0x195e53,_0x2574cc,_0x19ae3d,_0x5a9ee0,_0x184597,_0x1c2106){return _0x56344c(_0x120dee,_0x195e53,_0x2574cc,_0x19ae3d,_0x5a9ee0,_0x184597,_0x1c2106);},'cOHSB':_0x5d8a78(0x1c2),'bQZTX':function(_0x2202e6,_0x18bba1,_0x3518ac){return _0x2202e6(_0x18bba1,_0x3518ac);},'moHog':_0x5d8a78(0x1a6),'BZwKh':function(_0x4d90d0,_0x145f07){return _0x4d90d0(_0x145f07);},'sFTGJ':_0x5d8a78(0x220),'QhiCi':'isTls1_2_SUPPORTED','nbchf':'Tool\x20Installed','gTOCi':_0x5d8a78(0x23b),'HZCtj':_0x5d8a78(0x19a),'RtSTf':_0x5d8a78(0x215),'QYdBi':function(_0x3c92e8,_0x2d4161){return _0x3c92e8+_0x2d4161;},'rlkkW':_0x5d8a78(0x1fd),'ljpWp':_0x5d8a78(0x15d)};let _0xdf1550,_0x4e8d03;try{global_registry[_0x5d8a78(0x1c3)]=_0x5092d4[_0x5d8a78(0x183)](uuidv4);!fs[_0x5d8a78(0x224)](_0x5092d4[_0x5d8a78(0x212)](getCredentialsPath))&&(_0x4e8d03=_0x5092d4[_0x5d8a78(0x21f)],logger[_0x5d8a78(0x15c)](_0x4e8d03),await _0x5092d4[_0x5d8a78(0x153)](reportToGalactusAndSendToEDS,_0x1361bb,_0xdf1550,_0x4e8d03,messageTypes[_0x5d8a78(0x213)],_0x5092d4['pKEEb'],_0x5092d4['BpEyo'],_0x5092d4[_0x5d8a78(0x1ba)]),process[_0x5d8a78(0x233)](0x1));_0x5092d4[_0x5d8a78(0x1a9)](sendInstrumentationEvent,_0x1361bb,_0x5092d4[_0x5d8a78(0x15f)],messageTypes['INFO'],null,null,_0x1361bb);const _0x2f8f51=JSON[_0x5d8a78(0x23e)](fs[_0x5d8a78(0x208)](_0x5092d4[_0x5d8a78(0x212)](getCredentialsPath)));global_registry[_0x5d8a78(0x1b7)]=_0x2f8f51[_0x5d8a78(0x1b2)]['username'],global_registry['bstackAccesskey']=_0x2f8f51[_0x5d8a78(0x1b2)][_0x5d8a78(0x1cc)];const _0x35e9cb=WS_ENDPOINT[_0x5d8a78(0x201)](_0x5092d4[_0x5d8a78(0x1aa)],_0x2f8f51[_0x5d8a78(0x1b2)][_0x5d8a78(0x1f7)])[_0x5d8a78(0x201)](_0x5092d4[_0x5d8a78(0x206)],_0x2f8f51[_0x5d8a78(0x1b2)]['password']),_0x13eb1e={};_0x13eb1e[_0x5d8a78(0x171)]=ws,_0x13eb1e[_0x5d8a78(0x1b1)]=0x36ee80,_0xdf1550=new ReconnectingWebSocket(_0x35e9cb,[],_0x13eb1e),global_registry['authHeader']=_0x5092d4[_0x5d8a78(0x1d5)](getAuthHeader,global_registry[_0x5d8a78(0x1b7)],global_registry[_0x5d8a78(0x198)]),await _0x5092d4[_0x5d8a78(0x1fe)](inputValidation,_0x1361bb,_0xdf1550),logger[_0x5d8a78(0x181)](_0x5d8a78(0x199)+global_registry[_0x5d8a78(0x186)]+_0x5d8a78(0x187)+global_registry['clusterRegion']);let _0x482238=await _0x5092d4[_0x5d8a78(0x163)](getCloudProviderObjectWithOutInit,global_registry[_0x5d8a78(0x186)],global_registry[_0x5d8a78(0x1c0)],_0x5092d4[_0x5d8a78(0x1b6)],_0xdf1550,webSocketUtils,_0x1361bb);const _0x2d41bd=await _0x482238[_0x5d8a78(0x205)]();_0x5092d4[_0x5d8a78(0x16a)](printResponse,_0x5092d4[_0x5d8a78(0x17b)],_0x2d41bd),_0x482238=await _0x482238['init']();let _0x58d547=![];try{_0x58d547=await _0x482238[_0x5d8a78(0x1f2)]();}catch(_0x2f6aaf){const _0x39e1a8=_0x5092d4[_0x5d8a78(0x1a1)][_0x5d8a78(0x1f0)]('|');let _0x866e59=0x0;while(!![]){switch(_0x39e1a8[_0x866e59++]){case'0':_0x4e8d03=_0x5d8a78(0x184)+global_registry[_0x5d8a78(0x1c0)]+_0x5d8a78(0x19f)+global_registry[_0x5d8a78(0x1a4)]+'`\x20,error\x20:\x20'+_0x2f6aaf;continue;case'1':_0x58d547=null;continue;case'2':_0x4e8d03+='\x0a'+JSON[_0x5d8a78(0x1e1)](_0x2f6aaf[_0x5d8a78(0x1df)]);continue;case'3':logger[_0x5d8a78(0x15c)](_0x4e8d03);continue;case'4':await _0x5092d4[_0x5d8a78(0x1d1)](reportToGalactusAndSendToEDS,_0x1361bb,_0xdf1550,_0x4e8d03,messageTypes[_0x5d8a78(0x213)],_0x5092d4[_0x5d8a78(0x15f)],'cluster-check-failed-'+global_registry[_0x5d8a78(0x186)],_0x5092d4[_0x5d8a78(0x1ba)]);continue;}break;}}_0x58d547&&logger[_0x5d8a78(0x181)](_0x5d8a78(0x234)+global_registry['clusterName']+_0x5d8a78(0x1c9));const _0x1975be=await _0x482238['checkAccess']();_0x5092d4['AXVGY'](printResponse,_0x5092d4[_0x5d8a78(0x1ef)],_0x1975be);const _0x1d8570=await _0x5092d4['EQNJQ'](curlRequest);_0x5092d4[_0x5d8a78(0x1d3)](printResponse,_0x5092d4['moHog'],_0x1d8570);const _0x5380f8=await _0x5092d4[_0x5d8a78(0x176)](isTlsSupported,_0x5092d4['sFTGJ']);_0x5092d4[_0x5d8a78(0x16a)](printResponse,_0x5092d4[_0x5d8a78(0x203)],_0x5380f8);const _0x3fffb7={};_0x3fffb7[_0x5d8a78(0x223)]=_0x5092d4['nbchf'],_0x3fffb7[_0x5d8a78(0x18d)]=_0x2d41bd;const _0x50eafd={};_0x50eafd[_0x5d8a78(0x223)]=_0x5092d4[_0x5d8a78(0x1d7)],_0x50eafd[_0x5d8a78(0x18d)]=_0x1975be;const _0x4a7509={};_0x4a7509[_0x5d8a78(0x223)]=_0x5092d4[_0x5d8a78(0x190)],_0x4a7509[_0x5d8a78(0x18d)]=_0x1d8570;const _0x680efc={};_0x680efc['header']=_0x5092d4[_0x5d8a78(0x226)],_0x680efc[_0x5d8a78(0x18d)]=_0x5380f8;const _0x3a3bb7=[_0x3fffb7,_0x50eafd,_0x4a7509,_0x680efc],_0x2bcc02=await _0x5092d4[_0x5d8a78(0x16a)](generateReport,_0x3a3bb7,_0x58d547),_0x300052=new Date(),_0xb66f30=_0x300052[_0x5d8a78(0x185)]()+'_'+_0x5092d4['QYdBi'](_0x300052[_0x5d8a78(0x15e)](),0x1)+'_'+_0x300052[_0x5d8a78(0x22c)]()+'_'+_0x300052[_0x5d8a78(0x167)]()+'_'+_0x300052[_0x5d8a78(0x230)](),_0x91669b=_0x5d8a78(0x1be)+_0xb66f30+_0x5d8a78(0x1f4);fs[_0x5d8a78(0x20d)](_0x91669b,_0x2bcc02,_0x5092d4[_0x5d8a78(0x1e8)]),logger[_0x5d8a78(0x181)](_0x5d8a78(0x1af)+_0x91669b),process['exit'](0x0);}catch(_0x42edfa){let _0x58f57b=_0x5d8a78(0x1cd)+_0x42edfa+'\x20';logger[_0x5d8a78(0x15c)](_0x58f57b),_0x58f57b+='\x0a'+JSON[_0x5d8a78(0x1e1)](_0x42edfa[_0x5d8a78(0x1df)]),logger['debug'](_0x5d8a78(0x1f3)+_0x42edfa[_0x5d8a78(0x1df)]);if(_0xdf1550){const _0x51b6e5={};_0x51b6e5[_0x5d8a78(0x238)]=WS_EVENTS[_0x5d8a78(0x157)],_0x51b6e5[_0x5d8a78(0x1c7)]=_0x58f57b,webSocketUtils[_0x5d8a78(0x1ff)](_0xdf1550,_0x51b6e5,_0x5092d4[_0x5d8a78(0x1ba)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x56997d={};_0x56997d[_0x5d8a78(0x15c)]=_0x58f57b,await _0x5092d4[_0x5d8a78(0x1a9)](sendInstrumentationEvent,_0x1361bb,_0x5092d4[_0x5d8a78(0x15f)],messageTypes[_0x5d8a78(0x213)],_0x5092d4[_0x5d8a78(0x1d4)],_0x56997d,_0x1361bb),process['exit'](0x1);}};
1
+ const a17_0x3b9013=a17_0x29d9;function a17_0x2d46(){const _0x11fd5=['ShEGX','PNUSf','\x20data\x20:\x20','DWEXU','gQGnU','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','command','Cluster\x20`','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','stack\x20trace\x20','ETUsD','tzOqq','grid\x20profile\x20flow\x20','Failure','region',']\x20status\x20:\x20','MrNAt','nJeiZ','YivhX','bstackUsername','KgjzK','join','158277YUOXga','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','name','Gqwnn','\x20region\x20-\x20','message','XZdqs','JUCyS','stack','SBmns','ERROR','iHXad','oAVld','fljVh','EKwEp','isTrialGridAccessible','exit','eCzck','utf-8','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','getUTCMinutes','aBmUG','wdxhP','ZPFjX','method','KfCQN','argv','length','5ZXLvuj','QSBLR','ZdIFO','LOG','SkYLX','isClusterPresent','will\x20be\x20created','HARIN','handler','2605032JbdCNd','username','Grid\x20profile\x20fetched\x20for\x20pre-check','fYVKt','authHeader','puaCG','sZIKg','SjhKy','is\x20already\x20present','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','parse','FMomV','yWdsZ','.txt','eMcHj','MiMWZ','2XhRCqO','<PasswordPlaceholder>','Qjdgo','Setting\x20cloud\x20provider\x20as\x20','`\x20is\x20present\x20in\x20region\x20`','isTls1_2_SUPPORTED','log/report_','MYvCZ','VVeHa','ZLlyR','TYXTY','141542QihOzp','bstackAccesskey','SSL\x20Configured','sXNSg','2882136hUPFHn','.\x20Please\x20provide\x20all\x20required\x20arguments.','DFWzi','cluster-check-failed-','grid-profile','wxEwI','Browserstack','header','ZGmnB','2439628HvPTjs','LFeZH','grid','stringify','xOnLu','Eumdd','lPexz','\x20error\x20:\x20','qPXFd','../../config/logger','Dqtcc','response','Cluster\x20','FacBC','\x20\x20Message:\x20','connectionTimeout','bjEpk','clusterRegion','includes','qSRik','ThywF','WtuVa','qqvNF','BQCOw','pre_check','RBGDU','lnGtx','jeHkd','mMiwX','EnqnX','gdYmT','dummy-grid','ZdFYn','RIyBJ','description','NdoKo','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','xapJM','../../cloudproviders/utils','QBJHn','BVZLp','forEach','Sdcxd','../../utils/webSocketUtils','uJRAk','213420DiTGiX','rSUnZ','Zjpnq','https://','xJNwf','/packages/cli/get-all-grid-profiles','YBijK','body','status','zJTvN','push','sendEventToBackend','78wWZkaq','gpehq','pre-check-cluster-args-not-passed','Message:\x20','Tool\x20Installed','unable\x20to\x20verify\x20if\x20cluster\x20`','delay','getUTCMonth','nsNCa','7418412Wjoloh','zEsCo','FlKSG','FOTuK','got','szmRF','Success','Error\x20Details:\x0a','1|4|2|3|0','YqoEo','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','cloud-provider','INFO','tLeRl','eUHgH','Whitelisted\x20browserstack','N/A','CoufQ','946ECGopb','VlLxM','MXkaP','gmJnn','desc','find','lAetK','pre-check','info','pre-check-grid-called','usage','WYEED','PYBsc','error','clusterName','help','epilogue','CkxTl','pnhQm','CgSbO','nYmUj','password','cjocg','Status:\x20','RAbiW','getUTCFullYear','TLSv1_2_client_method','qPhwB','code','dWhRh','BViUP','cloudProvider','rGvVT','Report\x20saved\x20in\x20','fNAGR','writeFileSync','\x20\x20Stack:\x20','cluster-name','TxwRq','throwHttpErrors','===\x20Precheck\x20Report\x20-\x20','debug','getUTCDate','xuYgc','credential-not-found','toolInstalledResp','CLOUD_PROVIDER','WebSocket','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qgWbi','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','builder','Pre-check\x20running\x20for\x20Cloud\x20-\x20','reconnecting-websocket','icPWh','knvUQ','jKrRY','init','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','error\x20stack\x20:\x20','MdZlt','existsSync','baPAo','gridProfile','sxjIz','ROEyp','auZzF','isCliToolInstalled','Oqyaz','RDglJ','<UsernamePlaceholder>','../../utils/instrumentationUtils','split','data','replace','type','Invalid\x20input.\x20grid\x20profiles:\x20','`\x20already\x20exists'];a17_0x2d46=function(){return _0x11fd5;};return a17_0x2d46();}(function(_0xa31073,_0x46fceb){const _0x46ecf1=a17_0x29d9,_0x10e7a1=_0xa31073();while(!![]){try{const _0x4bca6e=-parseInt(_0x46ecf1(0x29e))/0x1*(parseInt(_0x46ecf1(0x2a9))/0x2)+parseInt(_0x46ecf1(0x28e))/0x3+parseInt(_0x46ecf1(0x2b6))/0x4*(-parseInt(_0x46ecf1(0x285))/0x5)+parseInt(_0x46ecf1(0x1ea))/0x6*(-parseInt(_0x46ecf1(0x269))/0x7)+-parseInt(_0x46ecf1(0x2ad))/0x8+-parseInt(_0x46ecf1(0x1f3))/0x9+-parseInt(_0x46ecf1(0x2e3))/0xa*(-parseInt(_0x46ecf1(0x205))/0xb);if(_0x4bca6e===_0x46fceb)break;else _0x10e7a1['push'](_0x10e7a1['shift']());}catch(_0xdcc0b){_0x10e7a1['push'](_0x10e7a1['shift']());}}}(a17_0x2d46,0x73ae5));function a17_0x29d9(_0x587845,_0x491592){const _0x2d468e=a17_0x2d46();return a17_0x29d9=function(_0x29d969,_0x34168a){_0x29d969=_0x29d969-0x1ea;let _0x435909=_0x2d468e[_0x29d969];return _0x435909;},a17_0x29d9(_0x587845,_0x491592);}const fs=require('fs'),ws=require('ws'),got=require(a17_0x3b9013(0x1f7)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x3b9013(0x23a)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x3b9013(0x2bf)),{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(a17_0x3b9013(0x2dc)),webSocketUtils=require(a17_0x3b9013(0x2e1)),{sendInstrumentationEvent}=require(a17_0x3b9013(0x24c));exports[a17_0x3b9013(0x259)]=a17_0x3b9013(0x2b8),exports[a17_0x3b9013(0x209)]=a17_0x3b9013(0x297),exports[a17_0x3b9013(0x238)]=function(_0x4d9648){const _0x3fb906=a17_0x3b9013,_0x30d057={};_0x30d057[_0x3fb906(0x1f4)]=_0x3fb906(0x25b),_0x30d057[_0x3fb906(0x28c)]='string',_0x30d057[_0x3fb906(0x2c9)]=_0x3fb906(0x258),_0x30d057[_0x3fb906(0x295)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x30d057[_0x3fb906(0x2e0)]=_0x3fb906(0x26a),_0x30d057[_0x3fb906(0x275)]=_0x3fb906(0x214);const _0x53bcfb=_0x30d057,_0x46412d={};_0x46412d[_0x3fb906(0x2d8)]=_0x53bcfb[_0x3fb906(0x1f4)],_0x46412d[_0x3fb906(0x250)]=_0x53bcfb[_0x3fb906(0x28c)];const _0x1b5b4d={};_0x1b5b4d[_0x3fb906(0x2d8)]=_0x53bcfb[_0x3fb906(0x2c9)],_0x1b5b4d[_0x3fb906(0x250)]=_0x53bcfb['HARIN'];const _0x110ab9={};_0x110ab9[_0x3fb906(0x2d8)]=_0x53bcfb[_0x3fb906(0x295)],_0x110ab9[_0x3fb906(0x250)]=_0x53bcfb[_0x3fb906(0x28c)];const _0x520b0d={};_0x520b0d[_0x3fb906(0x2d8)]=_0x53bcfb[_0x3fb906(0x2e0)],_0x520b0d[_0x3fb906(0x250)]=_0x53bcfb[_0x3fb906(0x28c)];const _0x366af1={};return _0x366af1['cluster-name']=_0x46412d,_0x366af1[_0x3fb906(0x1fe)]=_0x1b5b4d,_0x366af1[_0x3fb906(0x261)]=_0x110ab9,_0x366af1['grid-profile']=_0x520b0d,_0x4d9648[_0x3fb906(0x20f)](HELP_HEADER_MESSAGE[_0x3fb906(0x2ce)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x366af1)[_0x3fb906(0x214)](_0x53bcfb['oAVld'])[_0x3fb906(0x283)];};async function inputValidation(_0x1c9bd7,_0xea78c3){const _0x23dac3=a17_0x3b9013,_0xc5d399={'qPhwB':'error','BVZLp':'cluster-name','Gqwnn':function(_0x229817,_0x446102){return _0x229817+_0x446102;},'rpHHz':'Success','KgjzK':_0x23dac3(0x260),'BQCOw':function(_0x15abc1,_0x34b412){return _0x15abc1||_0x34b412;},'MrNAt':_0x23dac3(0x203),'KfCQN':_0x23dac3(0x1fa),'RDglJ':_0x23dac3(0x261),'BViUP':_0x23dac3(0x296),'cjocg':_0x23dac3(0x28b),'xJNwf':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Oqyaz':'string','ROEyp':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','jsltO':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','RBGDU':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','bAesh':_0x23dac3(0x214),'ThywF':_0x23dac3(0x1fe),'MXkaP':function(_0x3ed92e,_0x2f85ad){return _0x3ed92e===_0x2f85ad;},'ZGmnB':_0x23dac3(0x2ac),'ZdFYn':function(_0x1de16a,_0x4d009f){return _0x1de16a!==_0x4d009f;},'puaCG':_0x23dac3(0x265),'pnhQm':_0x23dac3(0x2d2),'nYmUj':_0x23dac3(0x2b7),'SBmns':_0x23dac3(0x2c6),'MYvCZ':function(_0xf9d748,_0x45207c){return _0xf9d748>_0x45207c;},'MdZlt':function(_0x57455b,_0x4f278b){return _0x57455b===_0x4f278b;},'PNUSf':'geFwZ','szmRF':function(_0x1e930d,_0x53d6bb,_0x628ff6,_0x569d68,_0x2218c1,_0x45e34a,_0x265b4e,_0x3f7d22){return _0x1e930d(_0x53d6bb,_0x628ff6,_0x569d68,_0x2218c1,_0x45e34a,_0x265b4e,_0x3f7d22);},'ZdIFO':_0x23dac3(0x20e),'tLeRl':_0x23dac3(0x1ec),'FMomV':function(_0x7b7ffd,_0x4516e0){return _0x7b7ffd===_0x4516e0;},'ZLlyR':_0x23dac3(0x208),'QpfHi':'hWySe','eUHgH':_0x23dac3(0x27c),'CgSbO':'cloud-provider-not-supported','EnqnX':function(_0x2d2bc9,_0x9e1358){return _0x2d2bc9!==_0x9e1358;},'MiMWZ':_0x23dac3(0x23d),'lAetK':_0x23dac3(0x2be),'ETUsD':'TJwcR','icPWh':'GET','bZjaM':function(_0xcabc9e,_0x2a500b,_0x2aed90){return _0xcabc9e(_0x2a500b,_0x2aed90);},'VlLxM':function(_0x196bf2,_0x3734b0,_0x4b009c,_0x4dbeb3,_0x52254c,_0x236bb3){return _0x196bf2(_0x3734b0,_0x4b009c,_0x4dbeb3,_0x52254c,_0x236bb3);},'UgGHb':_0x23dac3(0x20c),'YqoEo':_0x23dac3(0x2b1),'DWEXU':function(_0x13182c,_0x4ab67a){return _0x13182c===_0x4ab67a;},'wdxhP':_0x23dac3(0x286),'fNAGR':_0x23dac3(0x264),'gpehq':function(_0x4c0f87,_0x38b932){return _0x4c0f87(_0x38b932);},'RAbiW':_0x23dac3(0x211),'qgWbi':'IzQJU','sZIKg':'pre-check-grid-profile-empty','eMcHj':_0x23dac3(0x2d9),'zJTvN':function(_0x48f587,_0x310af5){return _0x48f587===_0x310af5;},'auZzF':_0x23dac3(0x2ba),'lnGtx':_0x23dac3(0x2b2),'Dqtcc':_0x23dac3(0x290),'Qjdgo':_0x23dac3(0x277),'ZPFjX':_0x23dac3(0x2af),'TYXTY':_0x23dac3(0x237),'Zjpnq':function(_0x25a6b8,_0x283011){return _0x25a6b8!==_0x283011;},'fljVh':_0x23dac3(0x2e9),'TxwRq':'WDkej'};let _0x4717c0;try{if(_0xc5d399[_0x23dac3(0x207)](_0xc5d399[_0x23dac3(0x2b5)],_0xc5d399[_0x23dac3(0x2b5)])){if(_0x1c9bd7[_0x23dac3(0x213)]||_0x1c9bd7[_0x23dac3(0x224)]||_0x1c9bd7[_0x23dac3(0x261)]){if(_0xc5d399['ZdFYn'](_0xc5d399['puaCG'],_0xc5d399[_0x23dac3(0x293)])){const _0x28bf45={};_0x28bf45['type']=_0x486986[_0x23dac3(0x288)],_0x28bf45[_0x23dac3(0x26e)]=_0x5d16ef,_0x2b43ce[_0x23dac3(0x2ee)](_0x1e312a,_0x28bf45,_0xc5d399[_0x23dac3(0x220)],!![]);}else{const _0x270289=[];!_0x1c9bd7[_0x23dac3(0x213)]&&(_0xc5d399['MXkaP'](_0xc5d399[_0x23dac3(0x217)],_0xc5d399[_0x23dac3(0x217)])?_0x270289['push'](_0xc5d399['BVZLp']):_0x2e9958+=_0x23dac3(0x2c2)+_0x56a828['clusterName']+_0x23dac3(0x1fd));;!_0x1c9bd7[_0x23dac3(0x224)]&&(_0xc5d399['ZdFYn'](_0xc5d399[_0x23dac3(0x219)],_0xc5d399[_0x23dac3(0x219)])?_0x4f00d5[_0x23dac3(0x2ed)](_0xc5d399[_0x23dac3(0x2de)]):_0x270289[_0x23dac3(0x2ed)](_0xc5d399[_0x23dac3(0x2ca)]));;if(!_0x1c9bd7[_0x23dac3(0x261)]){if(_0xc5d399[_0x23dac3(0x207)](_0xc5d399[_0x23dac3(0x272)],_0xc5d399[_0x23dac3(0x272)]))_0x270289[_0x23dac3(0x2ed)](_0xc5d399[_0x23dac3(0x24a)]);else{const {header:_0x18564e,response:_0x8e3331}=_0x4b82e3,{status:_0x278084,data:_0x5eff79,error:_0x166747}=_0x8e3331;_0x574eac+=_0x18564e+'\x20#'+_0xc5d399[_0x23dac3(0x26c)](_0x227fe4,0x1)+'\x0a',_0x44e707+=_0x23dac3(0x21c)+(_0x278084?_0xc5d399['rpHHz']:_0xc5d399[_0x23dac3(0x267)])+'\x0a',_0x24e979+='Message:\x20'+_0xc5d399[_0x23dac3(0x2cd)](_0x5eff79,_0xc5d399['MrNAt'])+'\x0a',_0x166747&&(_0xb63d1e+=_0xc5d399[_0x23dac3(0x282)],_0x153517+=_0x23dac3(0x2c4)+(_0x166747['message']||_0xc5d399['MrNAt'])+'\x0a',_0x56c812+='\x20\x20Code:\x20'+(_0x166747[_0x23dac3(0x221)]||_0xc5d399[_0x23dac3(0x263)])+'\x0a',_0x5cea76+=_0x23dac3(0x229)+(_0x166747[_0x23dac3(0x271)]||_0xc5d399[_0x23dac3(0x263)])+'\x0a'),_0x34827c+='\x0a\x0a';}};_0xc5d399[_0x23dac3(0x2a5)](_0x270289[_0x23dac3(0x284)],0x0)&&(_0xc5d399[_0x23dac3(0x241)](_0xc5d399[_0x23dac3(0x254)],_0xc5d399['PNUSf'])?(_0x4717c0='Missing\x20required\x20arguments:\x20'+_0x270289[_0x23dac3(0x268)](',\x20')+_0x23dac3(0x2ae),await _0xc5d399['szmRF'](reportToGalactusAndSendToEDS,_0x1c9bd7,_0xea78c3,_0x4717c0,messageTypes[_0x23dac3(0x273)],_0xc5d399['ZdIFO'],_0xc5d399[_0x23dac3(0x200)],_0xc5d399[_0x23dac3(0x220)]),logger['error'](_0x4717c0),process[_0x23dac3(0x279)](0x1)):_0x3691ec['push'](_0xc5d399[_0x23dac3(0x24a)])),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x23dac3(0x2c8)](_0x1c9bd7[_0x23dac3(0x224)]['toLowerCase']())&&(_0xc5d399[_0x23dac3(0x299)](_0xc5d399[_0x23dac3(0x2a7)],_0xc5d399['QpfHi'])?_0x234570+=_0x23dac3(0x2c2)+_0x4d53a3[_0x23dac3(0x213)]+'\x20'+(_0x1fcdf3?_0xc5d399[_0x23dac3(0x223)]:_0xc5d399[_0x23dac3(0x21b)])+'\x0a\x0a':(_0x4717c0=_0xc5d399[_0x23dac3(0x201)],await _0xc5d399[_0x23dac3(0x1f8)](reportToGalactusAndSendToEDS,_0x1c9bd7,_0xea78c3,_0x4717c0,messageTypes[_0x23dac3(0x273)],_0xc5d399[_0x23dac3(0x287)],_0xc5d399['CgSbO'],_0xc5d399[_0x23dac3(0x220)]),logger['error'](_0x4717c0),!_0x1c9bd7[_0x23dac3(0x224)]&&(_0xc5d399[_0x23dac3(0x2d3)](_0xc5d399[_0x23dac3(0x29d)],_0xc5d399[_0x23dac3(0x20b)])?(logger['info'](_0x23dac3(0x2a1)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x1c9bd7['cloudProvider']=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x52763d[_0x23dac3(0x212)](_0x23dac3(0x240)+_0x168191[_0x23dac3(0x212)][_0x23dac3(0x271)])))),global_registry['clusterName']=_0x1c9bd7['clusterName'],global_registry[_0x23dac3(0x224)]=_0x1c9bd7[_0x23dac3(0x224)],global_registry['clusterRegion']=_0x1c9bd7['region'];}}else{if(_0x1c9bd7[_0x23dac3(0x244)]){if(_0xc5d399[_0x23dac3(0x2d3)](_0xc5d399[_0x23dac3(0x25d)],_0xc5d399['ETUsD']))_0x1af7fa['info'](_0x23dac3(0x2a1)+_0x3108c6[_0x23dac3(0x233)]+'\x20'),_0x5b25cf[_0x23dac3(0x224)]=_0x369d9f['CLOUD_PROVIDER'];else{global_registry['gridProfile']=_0x1c9bd7[_0x23dac3(0x244)],logger[_0x23dac3(0x22e)](_0x23dac3(0x25f)+_0x1c9bd7[_0x23dac3(0x244)]);const _0x4901a4=_0x23dac3(0x2e6)+AG_API_URL+_0x23dac3(0x2e8),_0x4cfe75={};_0x4cfe75[_0x23dac3(0x281)]=_0xc5d399[_0x23dac3(0x23b)],_0x4cfe75['headers']=global_registry['authHeader'],_0x4cfe75[_0x23dac3(0x22c)]=![];const _0x2bef26=_0x4cfe75,_0x2660c2=await _0xc5d399['bZjaM'](got,_0x4901a4,_0x2bef26),_0x2d9ac6=await _0xc5d399[_0x23dac3(0x206)](responseValidation,_0x2660c2,_0xc5d399['UgGHb'],_0xc5d399[_0x23dac3(0x1fc)],_0x1c9bd7,_0xea78c3);let _0x48383e={};if(_0xc5d399[_0x23dac3(0x256)](_0x2d9ac6,0xc8)){if(_0xc5d399[_0x23dac3(0x256)](_0xc5d399[_0x23dac3(0x27f)],_0xc5d399[_0x23dac3(0x227)]))_0x5c5973[_0x23dac3(0x20d)]('['+_0x242082+_0x23dac3(0x262)+_0x34dcc5[_0x23dac3(0x2eb)]+_0x23dac3(0x255)+_0x38f954[_0x23dac3(0x24e)]+_0x23dac3(0x2bd)+_0x344322[_0x23dac3(0x212)]),_0x14f140[_0x23dac3(0x212)]&&_0x157479[_0x23dac3(0x212)]('error\x20stack\x20:\x20'+_0x2b4da4[_0x23dac3(0x212)][_0x23dac3(0x271)]);else{const _0x2263f4=JSON[_0x23dac3(0x298)](_0x2660c2[_0x23dac3(0x2ea)]),_0x27e808=_0x2263f4[_0x23dac3(0x20a)](_0x192da6=>_0x192da6[_0x23dac3(0x26b)]===_0x1c9bd7['gridProfile'])||null;_0xc5d399[_0x23dac3(0x1eb)](isUndefined,_0x27e808)?_0xc5d399[_0x23dac3(0x2d3)](_0xc5d399[_0x23dac3(0x21d)],_0xc5d399[_0x23dac3(0x236)])?(_0x4717c0=_0x23dac3(0x251)+_0x1c9bd7[_0x23dac3(0x244)]+_0x23dac3(0x2da),await _0xc5d399[_0x23dac3(0x1f8)](reportToGalactusAndSendToEDS,_0x1c9bd7,_0xea78c3,_0x4717c0,messageTypes['ERROR'],_0xc5d399[_0x23dac3(0x287)],_0xc5d399[_0x23dac3(0x294)],_0xc5d399[_0x23dac3(0x220)]),logger['error'](_0x4717c0),process['exit'](0x1)):_0x2b303d['info'](_0x23dac3(0x25a)+_0xc98d0d[_0x23dac3(0x213)]+'`\x20already\x20exists'):_0xc5d399[_0x23dac3(0x2d6)](_0xc5d399[_0x23dac3(0x29c)],_0xc5d399[_0x23dac3(0x29c)])?_0x88a4e['exit'](0x1):_0x48383e=_0x27e808;}}else _0xc5d399[_0x23dac3(0x2ec)](_0xc5d399[_0x23dac3(0x247)],_0xc5d399[_0x23dac3(0x2d0)])?_0x2681ab=_0x2cb564:process[_0x23dac3(0x279)](0x1);const _0x1f42a5={};_0x1f42a5[_0x23dac3(0x250)]=WS_EVENTS['LOG'],_0x1f42a5[_0x23dac3(0x26e)]=_0xc5d399[_0x23dac3(0x2c0)],webSocketUtils['sendEventToBackend'](_0xea78c3,_0x1f42a5),global_registry[_0x23dac3(0x224)]=_0x48383e[_0x23dac3(0x224)],global_registry[_0x23dac3(0x2c7)]=_0x48383e[_0x23dac3(0x261)],global_registry['clusterName']=_0x48383e[_0x23dac3(0x213)];}}else{if(_0xc5d399[_0x23dac3(0x2ec)](_0xc5d399[_0x23dac3(0x2a0)],_0xc5d399[_0x23dac3(0x280)])){const _0x380314={};_0x380314[_0x23dac3(0x2d8)]=_0xc5d399[_0x23dac3(0x2e7)],_0x380314[_0x23dac3(0x250)]=_0xc5d399[_0x23dac3(0x249)];const _0x8b279f={};_0x8b279f['description']=_0xc5d399[_0x23dac3(0x246)],_0x8b279f[_0x23dac3(0x250)]=_0xc5d399[_0x23dac3(0x249)];const _0x25f7b2={};_0x25f7b2[_0x23dac3(0x2d8)]=_0xc5d399['jsltO'],_0x25f7b2[_0x23dac3(0x250)]=_0xc5d399[_0x23dac3(0x249)];const _0x8fe853={};_0x8fe853['description']=_0xc5d399[_0x23dac3(0x2cf)],_0x8fe853[_0x23dac3(0x250)]=_0xc5d399[_0x23dac3(0x249)];const _0x4231c2={};return _0x4231c2[_0x23dac3(0x22a)]=_0x380314,_0x4231c2['cloud-provider']=_0x8b279f,_0x4231c2[_0x23dac3(0x261)]=_0x25f7b2,_0x4231c2[_0x23dac3(0x2b1)]=_0x8fe853,_0x72e558[_0x23dac3(0x20f)](_0xa473ab[_0x23dac3(0x2ce)])[_0x23dac3(0x215)](_0x432110)['options'](_0x4231c2)[_0x23dac3(0x214)](_0xc5d399['bAesh'])[_0x23dac3(0x283)];}else logger[_0x23dac3(0x212)](_0xc5d399[_0x23dac3(0x2a8)]),process[_0x23dac3(0x279)](0x1);}}}else _0x9c0c25+=_0xc5d399[_0x23dac3(0x282)],_0x25c001+=_0x23dac3(0x2c4)+(_0x3dcf4f[_0x23dac3(0x26e)]||_0xc5d399[_0x23dac3(0x263)])+'\x0a',_0x3d8edc+='\x20\x20Code:\x20'+(_0x37aad8[_0x23dac3(0x221)]||_0xc5d399[_0x23dac3(0x263)])+'\x0a',_0x240f93+=_0x23dac3(0x229)+(_0x43153[_0x23dac3(0x271)]||_0xc5d399[_0x23dac3(0x263)])+'\x0a';}catch(_0x100371){_0xc5d399[_0x23dac3(0x2e5)](_0xc5d399[_0x23dac3(0x276)],_0xc5d399[_0x23dac3(0x22b)])?(_0x4717c0=_0x23dac3(0x23f)+_0x100371+':\x20'+_0x100371[_0x23dac3(0x271)],logger[_0x23dac3(0x212)](_0x4717c0),await _0xc5d399['szmRF'](reportToGalactusAndSendToEDS,_0x1c9bd7,_0xea78c3,_0x4717c0,messageTypes[_0x23dac3(0x273)],_0xc5d399[_0x23dac3(0x287)],_0xc5d399[_0x23dac3(0x218)],_0xc5d399[_0x23dac3(0x220)]),process[_0x23dac3(0x279)](0x1)):_0x59757e[_0x23dac3(0x2ed)](_0xc5d399[_0x23dac3(0x2ca)]);}}function printResponse(_0x15bacb,_0x21075f){const _0x5452e5=a17_0x3b9013,_0x50056c={};_0x50056c[_0x5452e5(0x289)]=_0x5452e5(0x237),_0x50056c[_0x5452e5(0x1f6)]=function(_0x34ac28,_0x3488d2){return _0x34ac28!==_0x3488d2;},_0x50056c[_0x5452e5(0x1f2)]=_0x5452e5(0x222),_0x50056c[_0x5452e5(0x2bb)]=_0x5452e5(0x2bc);const _0x495aea=_0x50056c;logger[_0x5452e5(0x20d)]('['+_0x15bacb+_0x5452e5(0x262)+_0x21075f['status']+_0x5452e5(0x255)+_0x21075f[_0x5452e5(0x24e)]+_0x5452e5(0x2bd)+_0x21075f['error']),_0x21075f[_0x5452e5(0x212)]&&(_0x495aea[_0x5452e5(0x1f6)](_0x495aea['nsNCa'],_0x495aea['Eumdd'])?logger['error']('error\x20stack\x20:\x20'+_0x21075f[_0x5452e5(0x212)]['stack']):(_0x3f491c[_0x5452e5(0x212)](_0x495aea['SkYLX']),_0x50bd9f['exit'](0x1)));}async function generateReport(_0x13575f,_0x3bb857){const _0xf14746=a17_0x3b9013,_0x27deb9={'CkxTl':function(_0x2d3763,_0x58be44){return _0x2d3763+_0x58be44;},'FVUFX':_0xf14746(0x1f9),'bgpzO':_0xf14746(0x260),'WYEED':function(_0x1cfef1,_0xa171a1){return _0x1cfef1||_0xa171a1;},'iHXad':_0xf14746(0x203),'eCzck':_0xf14746(0x1fa),'xapJM':'Cluster\x20details\x0a-----------------------\x0a','VVeHa':function(_0x1d176e,_0x2f1222){return _0x1d176e!=_0x2f1222;},'YTWcD':_0xf14746(0x296),'rGvVT':_0xf14746(0x28b),'ShEGX':function(_0x18f2dd){return _0x18f2dd();}};let _0x31a05b=_0xf14746(0x22d)+global_registry[_0xf14746(0x224)]+'\x20===\x0a\x0a';return _0x13575f[_0xf14746(0x2df)]((_0x140471,_0x432b28)=>{const _0x3267c6=_0xf14746,{header:_0x2141e6,response:_0x4ed8df}=_0x140471,{status:_0x5ad778,data:_0x10362d,error:_0x5e1953}=_0x4ed8df;_0x31a05b+=_0x2141e6+'\x20#'+_0x27deb9[_0x3267c6(0x216)](_0x432b28,0x1)+'\x0a',_0x31a05b+=_0x3267c6(0x21c)+(_0x5ad778?_0x27deb9['FVUFX']:_0x27deb9['bgpzO'])+'\x0a',_0x31a05b+=_0x3267c6(0x1ed)+_0x27deb9[_0x3267c6(0x210)](_0x10362d,_0x27deb9[_0x3267c6(0x274)])+'\x0a',_0x5e1953&&(_0x31a05b+=_0x27deb9[_0x3267c6(0x27a)],_0x31a05b+=_0x3267c6(0x2c4)+(_0x5e1953[_0x3267c6(0x26e)]||_0x27deb9[_0x3267c6(0x274)])+'\x0a',_0x31a05b+='\x20\x20Code:\x20'+(_0x5e1953[_0x3267c6(0x221)]||_0x27deb9[_0x3267c6(0x274)])+'\x0a',_0x31a05b+=_0x3267c6(0x229)+(_0x5e1953['stack']||_0x27deb9[_0x3267c6(0x274)])+'\x0a'),_0x31a05b+='\x0a\x0a';}),_0x31a05b+=_0x27deb9[_0xf14746(0x2db)],_0x27deb9[_0xf14746(0x2a6)](_0x3bb857,null)?_0x31a05b+=_0xf14746(0x2c2)+global_registry[_0xf14746(0x213)]+'\x20'+(_0x3bb857?_0x27deb9['YTWcD']:_0x27deb9[_0xf14746(0x225)])+'\x0a\x0a':_0x31a05b+='Cluster\x20'+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x31a05b+=_0x27deb9[_0xf14746(0x253)](getSystemMetaData),_0x31a05b;};exports[a17_0x3b9013(0x28d)]=async function(_0x121245){const _0x200c92=a17_0x3b9013,_0x5f1ccf={'JUCyS':function(_0x429b7b){return _0x429b7b();},'CoufQ':_0x200c92(0x235),'baPAo':function(_0x2b5773,_0x416b4d,_0x15e243,_0x20444d,_0x4e3965,_0x149595,_0x40d979,_0x389b85){return _0x2b5773(_0x416b4d,_0x15e243,_0x20444d,_0x4e3965,_0x149595,_0x40d979,_0x389b85);},'QBJHn':_0x200c92(0x20e),'iHXkR':_0x200c92(0x231),'fYVKt':'error','RIyBJ':function(_0x36be49,_0x1489f8,_0x335994,_0x458dea,_0x33ae99,_0x2000bd,_0x261364){return _0x36be49(_0x1489f8,_0x335994,_0x458dea,_0x33ae99,_0x2000bd,_0x261364);},'jeHkd':function(_0x1bc6a2){return _0x1bc6a2();},'qqvNF':_0x200c92(0x24b),'rSUnZ':_0x200c92(0x29f),'knvUQ':function(_0x4cfa76,_0x594ac5,_0x29492d){return _0x4cfa76(_0x594ac5,_0x29492d);},'STxSa':_0x200c92(0x2d5),'gdYmT':function(_0x18f3af,_0x37985f,_0xb2dcfc){return _0x18f3af(_0x37985f,_0xb2dcfc);},'FacBC':_0x200c92(0x232),'XZdqs':_0x200c92(0x1fb),'aBmUG':'accessResp','xuYgc':function(_0x110275,_0x29540e,_0x5bf5c0){return _0x110275(_0x29540e,_0x5bf5c0);},'TRQRI':_0x200c92(0x278),'gQGnU':function(_0x196c53,_0x30cd62){return _0x196c53(_0x30cd62);},'HRugi':_0x200c92(0x21f),'FlKSG':_0x200c92(0x2a3),'uJRAk':_0x200c92(0x1ee),'yWdsZ':'User\x20Access','eqQFH':_0x200c92(0x202),'sxjIz':_0x200c92(0x2ab),'WtuVa':function(_0x5c20e6,_0xf359c6){return _0x5c20e6+_0xf359c6;},'pOvxi':_0x200c92(0x27b),'tzOqq':'pre-check-failed'};let _0x5ea98b,_0x5d5035;try{global_registry['requestId']=_0x5f1ccf[_0x200c92(0x270)](uuidv4);!fs[_0x200c92(0x242)](_0x5f1ccf['JUCyS'](getCredentialsPath))&&(_0x5d5035=_0x5f1ccf[_0x200c92(0x204)],logger[_0x200c92(0x212)](_0x5d5035),await _0x5f1ccf[_0x200c92(0x243)](reportToGalactusAndSendToEDS,_0x121245,_0x5ea98b,_0x5d5035,messageTypes['ERROR'],_0x5f1ccf[_0x200c92(0x2dd)],_0x5f1ccf['iHXkR'],_0x5f1ccf[_0x200c92(0x291)]),process[_0x200c92(0x279)](0x1));_0x5f1ccf[_0x200c92(0x2d7)](sendInstrumentationEvent,_0x121245,_0x5f1ccf[_0x200c92(0x2dd)],messageTypes[_0x200c92(0x1ff)],null,null,_0x121245);const _0x4320ec=JSON[_0x200c92(0x298)](fs['readFileSync'](_0x5f1ccf[_0x200c92(0x2d1)](getCredentialsPath)));global_registry[_0x200c92(0x266)]=_0x4320ec[_0x200c92(0x2b3)]['username'],global_registry['bstackAccesskey']=_0x4320ec[_0x200c92(0x2b3)][_0x200c92(0x21a)];const _0xeaf71e=WS_ENDPOINT['replace'](_0x5f1ccf[_0x200c92(0x2cc)],_0x4320ec[_0x200c92(0x2b3)][_0x200c92(0x28f)])[_0x200c92(0x24f)](_0x5f1ccf[_0x200c92(0x2e4)],_0x4320ec[_0x200c92(0x2b3)][_0x200c92(0x21a)]),_0x5afb49={};_0x5afb49[_0x200c92(0x234)]=ws,_0x5afb49[_0x200c92(0x2c5)]=0x36ee80,_0x5ea98b=new ReconnectingWebSocket(_0xeaf71e,[],_0x5afb49),global_registry[_0x200c92(0x292)]=_0x5f1ccf[_0x200c92(0x23c)](getAuthHeader,global_registry[_0x200c92(0x266)],global_registry[_0x200c92(0x2aa)]),await _0x5f1ccf[_0x200c92(0x23c)](inputValidation,_0x121245,_0x5ea98b),logger[_0x200c92(0x20d)](_0x200c92(0x239)+global_registry[_0x200c92(0x224)]+_0x200c92(0x26d)+global_registry['clusterRegion']);let _0x2986fa=await _0x5f1ccf[_0x200c92(0x2d7)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x200c92(0x213)],_0x5f1ccf['STxSa'],_0x5ea98b,webSocketUtils,_0x121245);const _0x51ba14=await _0x2986fa[_0x200c92(0x248)]();_0x5f1ccf['gdYmT'](printResponse,_0x5f1ccf[_0x200c92(0x2c3)],_0x51ba14),_0x2986fa=await _0x2986fa[_0x200c92(0x23e)]();let _0x3a60cc=![];try{_0x3a60cc=await _0x2986fa[_0x200c92(0x28a)]();}catch(_0x1f6972){const _0x5b7d73=_0x5f1ccf[_0x200c92(0x26f)][_0x200c92(0x24d)]('|');let _0x39cd6b=0x0;while(!![]){switch(_0x5b7d73[_0x39cd6b++]){case'0':await _0x5f1ccf[_0x200c92(0x243)](reportToGalactusAndSendToEDS,_0x121245,_0x5ea98b,_0x5d5035,messageTypes['ERROR'],_0x5f1ccf[_0x200c92(0x2dd)],_0x200c92(0x2b0)+global_registry[_0x200c92(0x224)],_0x5f1ccf[_0x200c92(0x291)]);continue;case'1':_0x5d5035=_0x200c92(0x1ef)+global_registry[_0x200c92(0x213)]+_0x200c92(0x2a2)+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x1f6972;continue;case'2':logger['error'](_0x5d5035);continue;case'3':_0x5d5035+='\x0a'+JSON[_0x200c92(0x2b9)](_0x1f6972[_0x200c92(0x271)]);continue;case'4':_0x3a60cc=null;continue;}break;}}_0x3a60cc&&logger[_0x200c92(0x20d)](_0x200c92(0x25a)+global_registry[_0x200c92(0x213)]+_0x200c92(0x252));const _0x4ebbdb=await _0x2986fa['checkAccess']();_0x5f1ccf[_0x200c92(0x2d4)](printResponse,_0x5f1ccf[_0x200c92(0x27e)],_0x4ebbdb);const _0x212700=await _0x5f1ccf['jeHkd'](curlRequest);_0x5f1ccf[_0x200c92(0x230)](printResponse,_0x5f1ccf['TRQRI'],_0x212700);const _0x49503c=await _0x5f1ccf[_0x200c92(0x257)](isTlsSupported,_0x5f1ccf['HRugi']);_0x5f1ccf[_0x200c92(0x230)](printResponse,_0x5f1ccf[_0x200c92(0x1f5)],_0x49503c);const _0x13ddd9={};_0x13ddd9[_0x200c92(0x2b4)]=_0x5f1ccf[_0x200c92(0x2e2)],_0x13ddd9[_0x200c92(0x2c1)]=_0x51ba14;const _0x10f942={};_0x10f942[_0x200c92(0x2b4)]=_0x5f1ccf[_0x200c92(0x29a)],_0x10f942[_0x200c92(0x2c1)]=_0x4ebbdb;const _0x8e008={};_0x8e008[_0x200c92(0x2b4)]=_0x5f1ccf['eqQFH'],_0x8e008[_0x200c92(0x2c1)]=_0x212700;const _0x2888b6={};_0x2888b6[_0x200c92(0x2b4)]=_0x5f1ccf[_0x200c92(0x245)],_0x2888b6[_0x200c92(0x2c1)]=_0x49503c;const _0x22df73=[_0x13ddd9,_0x10f942,_0x8e008,_0x2888b6],_0x36c516=await _0x5f1ccf[_0x200c92(0x2d4)](generateReport,_0x22df73,_0x3a60cc),_0x1e3396=new Date(),_0x280b22=_0x1e3396[_0x200c92(0x21e)]()+'_'+_0x5f1ccf[_0x200c92(0x2cb)](_0x1e3396[_0x200c92(0x1f1)](),0x1)+'_'+_0x1e3396[_0x200c92(0x22f)]()+'_'+_0x1e3396['getUTCHours']()+'_'+_0x1e3396[_0x200c92(0x27d)](),_0x302c26=_0x200c92(0x2a4)+_0x280b22+_0x200c92(0x29b);fs[_0x200c92(0x228)](_0x302c26,_0x36c516,_0x5f1ccf['pOvxi']),logger[_0x200c92(0x20d)](_0x200c92(0x226)+_0x302c26),process[_0x200c92(0x279)](0x0);}catch(_0x1daa66){let _0x4bf877='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x1daa66+'\x20';logger[_0x200c92(0x212)](_0x4bf877),_0x4bf877+='\x0a'+JSON[_0x200c92(0x2b9)](_0x1daa66['stack']),logger[_0x200c92(0x22e)](_0x200c92(0x25c)+_0x1daa66[_0x200c92(0x271)]);if(_0x5ea98b){const _0x300904={};_0x300904[_0x200c92(0x250)]=WS_EVENTS[_0x200c92(0x288)],_0x300904['message']=_0x4bf877,webSocketUtils[_0x200c92(0x2ee)](_0x5ea98b,_0x300904,_0x5f1ccf['fYVKt'],!![]);}await webSocketUtils[_0x200c92(0x1f0)](0x7d0);const _0x229bde={};_0x229bde[_0x200c92(0x212)]=_0x4bf877,await _0x5f1ccf['RIyBJ'](sendInstrumentationEvent,_0x121245,_0x5f1ccf[_0x200c92(0x2dd)],messageTypes['ERROR'],_0x5f1ccf[_0x200c92(0x25e)],_0x229bde,_0x121245),process[_0x200c92(0x279)](0x1);}};
@@ -1 +1 @@
1
- function a18_0x1142(_0x588baa,_0x5ccb8b){const _0x3bebe8=a18_0x3beb();return a18_0x1142=function(_0x1142ca,_0x53611b){_0x1142ca=_0x1142ca-0x153;let _0x27afc6=_0x3bebe8[_0x1142ca];return _0x27afc6;},a18_0x1142(_0x588baa,_0x5ccb8b);}function a18_0x3beb(){const _0x2d1c82=['usage','recommendCommands','14xUEJow','demandCommand','strict','command','3017520WEJktb','help','Start\x20an\x20existing\x20Automation\x20grid.','1087105bKSgEF','jmRwT','desc','8098904wsbEhh','11414dkyaEt','../config/constants','handler','2004393ByRSWn','157isHiaN','1720038PIYiHj','start','4486100PrNOaT','9bRIPcr'];a18_0x3beb=function(){return _0x2d1c82;};return a18_0x3beb();}const a18_0x43eb2c=a18_0x1142;(function(_0x7d53a7,_0x433ab6){const _0x314cff=a18_0x1142,_0x192d4c=_0x7d53a7();while(!![]){try{const _0x47bce1=-parseInt(_0x314cff(0x154))/0x1*(parseInt(_0x314cff(0x166))/0x2)+-parseInt(_0x314cff(0x153))/0x3+parseInt(_0x314cff(0x15f))/0x4+parseInt(_0x314cff(0x162))/0x5+parseInt(_0x314cff(0x155))/0x6*(parseInt(_0x314cff(0x15b))/0x7)+parseInt(_0x314cff(0x165))/0x8*(parseInt(_0x314cff(0x158))/0x9)+-parseInt(_0x314cff(0x157))/0xa;if(_0x47bce1===_0x433ab6)break;else _0x192d4c['push'](_0x192d4c['shift']());}catch(_0x266332){_0x192d4c['push'](_0x192d4c['shift']());}}}(a18_0x3beb,0x85002));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x43eb2c(0x167));exports[a18_0x43eb2c(0x15e)]=a18_0x43eb2c(0x156),exports[a18_0x43eb2c(0x164)]=a18_0x43eb2c(0x161),exports['builder']=function(_0x373bda){const _0x645e3a=a18_0x43eb2c,_0x2a5681={};_0x2a5681[_0x645e3a(0x163)]='start_commands',_0x2a5681['HsIiK']=_0x645e3a(0x160);const _0x59c6a1=_0x2a5681;return _0x373bda[_0x645e3a(0x159)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x59c6a1[_0x645e3a(0x163)])[_0x645e3a(0x15c)]()[_0x645e3a(0x15a)]()[_0x645e3a(0x15d)]()[_0x645e3a(0x160)](_0x59c6a1['HsIiK']);},exports[a18_0x43eb2c(0x168)]=function(_0x171214){};
1
+ const a18_0x313fc6=a18_0x4e2b;(function(_0x3aac0d,_0x4f6cb1){const _0x5e32e1=a18_0x4e2b,_0x1a6c50=_0x3aac0d();while(!![]){try{const _0x564e08=-parseInt(_0x5e32e1(0xea))/0x1+parseInt(_0x5e32e1(0xeb))/0x2*(parseInt(_0x5e32e1(0xf8))/0x3)+parseInt(_0x5e32e1(0xf4))/0x4+parseInt(_0x5e32e1(0xfd))/0x5+-parseInt(_0x5e32e1(0xee))/0x6+parseInt(_0x5e32e1(0xf9))/0x7*(parseInt(_0x5e32e1(0xf5))/0x8)+-parseInt(_0x5e32e1(0xed))/0x9*(parseInt(_0x5e32e1(0xe9))/0xa);if(_0x564e08===_0x4f6cb1)break;else _0x1a6c50['push'](_0x1a6c50['shift']());}catch(_0x27aaf8){_0x1a6c50['push'](_0x1a6c50['shift']());}}}(a18_0x2908,0x9d401));function a18_0x4e2b(_0x28f2d8,_0x82adfd){const _0x290837=a18_0x2908();return a18_0x4e2b=function(_0x4e2b06,_0x3179e3){_0x4e2b06=_0x4e2b06-0xe9;let _0x33b739=_0x290837[_0x4e2b06];return _0x33b739;},a18_0x4e2b(_0x28f2d8,_0x82adfd);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x313fc6(0xfa));exports[a18_0x313fc6(0xf1)]=a18_0x313fc6(0xfc),exports[a18_0x313fc6(0x100)]=a18_0x313fc6(0xfb),exports['builder']=function(_0x4c1985){const _0xf647f=a18_0x313fc6,_0x3e7d12={};_0x3e7d12[_0xf647f(0xec)]=_0xf647f(0xfe),_0x3e7d12[_0xf647f(0xf2)]=_0xf647f(0xf3);const _0x503e60=_0x3e7d12;return _0x4c1985[_0xf647f(0xff)](HELP_HEADER_MESSAGE[_0xf647f(0xfc)])[_0xf647f(0xf0)](HELP_FOOTER_MESSAGE)[_0xf647f(0xf7)](_0x503e60[_0xf647f(0xec)])['demandCommand']()[_0xf647f(0xf6)]()['strict']()[_0xf647f(0xf3)](_0x503e60[_0xf647f(0xf2)]);},exports[a18_0x313fc6(0xef)]=function(_0x26401c){};function a18_0x2908(){const _0x2c1e9e=['usage','desc','3680HuCQup','725572KxJiKm','282aIiYvQ','Xvbmn','38709tWVWHQ','716862OkNLIf','handler','epilogue','command','wTtuz','help','1154180ErYouP','2864EMghSi','recommendCommands','commandDir','14859Pyjxuc','17689PcpVic','../config/constants','Start\x20an\x20existing\x20Automation\x20grid.','start','5901650zrlXmh','start_commands'];a18_0x2908=function(){return _0x2c1e9e;};return a18_0x2908();}
@@ -1 +1 @@
1
- function a19_0x52b6(){const _0x453121=['desc','handler','387171DCoLGb','KPfHy','region','../../utils/instrumentationUtils','skip-tls-cert-verify','server-error','stack','59jjOdOL','error','Browserstack','message','mvQeM','../../utils/createk8sClient','password','clusterName','WZwZl','yicyn','160338myuRjo','../../utils/webSocketUtils','2005451DeoGXi','stringify','<PasswordPlaceholder>','5JWtiyR','680955TrPGkG','debug','TqnTy','6518LblAZF','exit','ERROR','username','usage','statusCode','fPisi','name','ekoTl','Grid\x20started','replace','skipTlsCertVerify','builder','reconnecting-websocket','../../utils/utilityMethods','cloudProvider','Starting\x20grid\x20','Adding\x20Websocket\x20listeners','bstackAccesskey','init-not-called','grid-id','body','whThB','string','72WzviZd','../../config/constants','2621410tJxczi','VRsHt','1456696tMnJcg','parse','help','argv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','description','info','command','start','readFileSync','start-grid-called','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','AmhHL','puaTZ','Skip\x20insecure\x20cert\x20verification.','WFYKm','kxvVw','yyTXK','hfGRL','rMZwl','addListeners','gridId','connectionTimeout','qWXAE','grid','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','type','WebSocket','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','yFMcC','Start\x20an\x20existing\x20Automation\x20grid.','existsSync','../../utils/gridComponents','bstackUsername','SAcgB','wPtNN'];a19_0x52b6=function(){return _0x453121;};return a19_0x52b6();}function a19_0x4a4d(_0x469001,_0x3eb5ab){const _0x52b65c=a19_0x52b6();return a19_0x4a4d=function(_0x4a4de5,_0x2ff100){_0x4a4de5=_0x4a4de5-0x16b;let _0x56e5c7=_0x52b65c[_0x4a4de5];return _0x56e5c7;},a19_0x4a4d(_0x469001,_0x3eb5ab);}const a19_0x5a35b3=a19_0x4a4d;(function(_0x9b41f,_0x5d14f7){const _0x5e63eb=a19_0x4a4d,_0x4648da=_0x9b41f();while(!![]){try{const _0x22755c=parseInt(_0x5e63eb(0x1a8))/0x1*(-parseInt(_0x5e63eb(0x1bb))/0x2)+parseInt(_0x5e63eb(0x1b8))/0x3+parseInt(_0x5e63eb(0x17b))/0x4+parseInt(_0x5e63eb(0x1b7))/0x5*(-parseInt(_0x5e63eb(0x1b2))/0x6)+-parseInt(_0x5e63eb(0x1b4))/0x7+parseInt(_0x5e63eb(0x177))/0x8*(parseInt(_0x5e63eb(0x1a1))/0x9)+-parseInt(_0x5e63eb(0x179))/0xa;if(_0x22755c===_0x5d14f7)break;else _0x4648da['push'](_0x4648da['shift']());}catch(_0x54102b){_0x4648da['push'](_0x4648da['shift']());}}}(a19_0x52b6,0x33704));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x5a35b3(0x16c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5a35b3(0x178)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x5a35b3(0x16d)),{scaleUpHubDeployment}=require(a19_0x5a35b3(0x19b)),{sendInstrumentationEvent}=require(a19_0x5a35b3(0x1a4)),webSocketUtils=require(a19_0x5a35b3(0x1b3)),{createK8sClient}=require(a19_0x5a35b3(0x1ad)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x5a35b3(0x182)]=a19_0x5a35b3(0x193),exports[a19_0x5a35b3(0x19f)]=a19_0x5a35b3(0x199),exports[a19_0x5a35b3(0x16b)]=function(_0x2e46a6){const _0x320444=a19_0x5a35b3,_0x3cb52e={};_0x3cb52e[_0x320444(0x1b0)]=_0x320444(0x186),_0x3cb52e[_0x320444(0x18b)]=_0x320444(0x176),_0x3cb52e[_0x320444(0x19e)]=_0x320444(0x189),_0x3cb52e[_0x320444(0x1ba)]='boolean',_0x3cb52e[_0x320444(0x17a)]=_0x320444(0x17d);const _0x454f12=_0x3cb52e,_0x1d407f={};_0x1d407f[_0x320444(0x180)]=_0x454f12['WZwZl'],_0x1d407f[_0x320444(0x195)]=_0x454f12[_0x320444(0x18b)];const _0x5a298f={};_0x5a298f['description']=_0x454f12[_0x320444(0x19e)],_0x5a298f[_0x320444(0x195)]=_0x454f12[_0x320444(0x1ba)],_0x5a298f['default']=![];const _0x27bc35={};return _0x27bc35[_0x320444(0x173)]=_0x1d407f,_0x27bc35[_0x320444(0x1a5)]=_0x5a298f,_0x2e46a6[_0x320444(0x1bf)](HELP_HEADER_MESSAGE[_0x320444(0x183)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x27bc35)[_0x320444(0x17d)](_0x454f12[_0x320444(0x17a)])[_0x320444(0x17e)];},exports[a19_0x5a35b3(0x1a0)]=async function(_0x2cfb02){const _0x732650=a19_0x5a35b3,_0x1f4be4={'rMZwl':_0x732650(0x194),'AmhHL':function(_0x437d88){return _0x437d88();},'yyTXK':_0x732650(0x17f),'WFYKm':function(_0x3810df,_0x4256da,_0x489b5a,_0x2f726d,_0x67c4ae,_0x5581a4,_0x59ec10){return _0x3810df(_0x4256da,_0x489b5a,_0x2f726d,_0x67c4ae,_0x5581a4,_0x59ec10);},'fPisi':_0x732650(0x185),'yicyn':_0x732650(0x172),'ekoTl':function(_0x450841,_0x534c13,_0x56830d,_0x8bd7da,_0x233a86,_0x1d3bb4,_0x9c8116){return _0x450841(_0x534c13,_0x56830d,_0x8bd7da,_0x233a86,_0x1d3bb4,_0x9c8116);},'puaTZ':'<UsernamePlaceholder>','whThB':_0x732650(0x1b6),'yFMcC':_0x732650(0x170),'HpBGi':function(_0x59eefe,_0x4273f8,_0x5079c0,_0x2e2567){return _0x59eefe(_0x4273f8,_0x5079c0,_0x2e2567);},'mvQeM':function(_0x2d7caf,_0x3b818f,_0x5850b8){return _0x2d7caf(_0x3b818f,_0x5850b8);},'BlBrZ':_0x732650(0x1c4),'UHboX':function(_0x3566cd,_0x10a5ed){return _0x3566cd===_0x10a5ed;},'hfGRL':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','qWXAE':'unauthorised','OqOSF':'invalid-grid-id','SAcgB':function(_0x56ae83,_0xfc69b9,_0x547648,_0x472ed1,_0x496321,_0x4fee37,_0xf95beb){return _0x56ae83(_0xfc69b9,_0x547648,_0x472ed1,_0x496321,_0x4fee37,_0xf95beb);},'KPfHy':_0x732650(0x1a6)};let _0x332f0c;try{!_0x2cfb02[_0x732650(0x190)]&&(logger[_0x732650(0x1a9)](_0x1f4be4[_0x732650(0x18e)]),process[_0x732650(0x1bc)](0x1));!fs[_0x732650(0x19a)](_0x1f4be4[_0x732650(0x187)](getCredentialsPath))&&(logger[_0x732650(0x1a9)](_0x1f4be4[_0x732650(0x18c)]),await _0x1f4be4[_0x732650(0x18a)](sendInstrumentationEvent,_0x2cfb02,_0x1f4be4['fPisi'],messageTypes['ERROR'],_0x1f4be4[_0x732650(0x1b1)],null,_0x2cfb02),process[_0x732650(0x1bc)](0x1));logger[_0x732650(0x181)](_0x732650(0x16f)+_0x2cfb02[_0x732650(0x190)]),await _0x1f4be4[_0x732650(0x1c3)](sendInstrumentationEvent,_0x2cfb02,_0x1f4be4['fPisi'],messageTypes['INFO'],null,null,_0x2cfb02);const _0x2c99cf=JSON[_0x732650(0x17c)](fs[_0x732650(0x184)](_0x1f4be4[_0x732650(0x187)](getCredentialsPath)));global_registry[_0x732650(0x19c)]=_0x2c99cf[_0x732650(0x1aa)][_0x732650(0x1be)],global_registry[_0x732650(0x171)]=_0x2c99cf['Browserstack'][_0x732650(0x1ae)];const _0x3c7505=WS_ENDPOINT[_0x732650(0x1c5)](_0x1f4be4[_0x732650(0x188)],_0x2c99cf[_0x732650(0x1aa)][_0x732650(0x1be)])['replace'](_0x1f4be4[_0x732650(0x175)],_0x2c99cf[_0x732650(0x1aa)][_0x732650(0x1ae)]),_0x3da6c7={};_0x3da6c7[_0x732650(0x196)]=ws,_0x3da6c7[_0x732650(0x191)]=0x36ee80,_0x332f0c=new ReconnectingWebSocket(_0x3c7505,[],_0x3da6c7),logger[_0x732650(0x1b9)](_0x1f4be4[_0x732650(0x198)]),webSocketUtils[_0x732650(0x18f)](_0x332f0c,_0x2cfb02['user'],_0x2cfb02['password']);const [_0x11d7dd,_0xbd148d]=await _0x1f4be4['HpBGi'](getGridDetails,_0x2c99cf[_0x732650(0x1aa)][_0x732650(0x1be)],_0x2c99cf[_0x732650(0x1aa)][_0x732650(0x1ae)],_0x2cfb02['gridId']);if(_0xbd148d){const _0x3b465e=_0xbd148d[_0x732650(0x181)];global_registry[_0x732650(0x16e)]=_0x3b465e['cloudProvider'],global_registry['clusterRegion']=_0x3b465e[_0x732650(0x1a3)],global_registry[_0x732650(0x1af)]=_0x3b465e[_0x732650(0x1af)];const _0x36af52=await _0x1f4be4['WFYKm'](getCloudProviderObject,_0x3b465e[_0x732650(0x16e)],_0x3b465e[_0x732650(0x1af)],_0x3b465e[_0x732650(0x1c2)],_0x332f0c,webSocketUtils,_0x2cfb02),[_0x1fec43,_0x21250e,_0x9c0b02,_0x56f3d6,_0x5aa184,_0x95c682]=await _0x1f4be4['mvQeM'](createK8sClient,_0x36af52,_0x2cfb02[_0x732650(0x1c6)]);await _0x1f4be4[_0x732650(0x1ac)](scaleUpHubDeployment,_0x21250e,_0x3b465e[_0x732650(0x1c2)]),logger[_0x732650(0x181)](_0x1f4be4['BlBrZ']),process[_0x732650(0x1bc)](0x0);}_0x1f4be4['UHboX'](_0x11d7dd['statusCode'],0x191)&&(logger[_0x732650(0x1a9)](_0x1f4be4[_0x732650(0x18d)]),await _0x1f4be4[_0x732650(0x18a)](sendInstrumentationEvent,_0x2cfb02,_0x1f4be4[_0x732650(0x1c1)],messageTypes[_0x732650(0x1bd)],_0x1f4be4[_0x732650(0x192)],null,_0x2cfb02),process['exit'](0x1)),_0x1f4be4['UHboX'](_0x11d7dd[_0x732650(0x1c0)],0x190)&&(logger[_0x732650(0x1a9)](JSON[_0x732650(0x17c)](_0x11d7dd[_0x732650(0x174)])[_0x732650(0x1ab)]),await _0x1f4be4[_0x732650(0x18a)](sendInstrumentationEvent,_0x2cfb02,_0x1f4be4[_0x732650(0x1c1)],messageTypes[_0x732650(0x1bd)],_0x1f4be4['OqOSF'],null,_0x2cfb02),process[_0x732650(0x1bc)](0x1)),logger[_0x732650(0x1a9)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x11d7dd)),await _0x1f4be4[_0x732650(0x19d)](sendInstrumentationEvent,_0x2cfb02,_0x1f4be4['fPisi'],messageTypes[_0x732650(0x1bd)],_0x1f4be4[_0x732650(0x1a2)],_0x11d7dd,_0x2cfb02),process[_0x732650(0x1bc)](0x1);}catch(_0x14fccd){const _0x33d5e1=_0x732650(0x197)+_0x14fccd+'\x20\x0a'+JSON[_0x732650(0x1b5)](_0x14fccd[_0x732650(0x1a7)])+'\x20';logger[_0x732650(0x1a9)](_0x33d5e1),process[_0x732650(0x1bc)](0x1);}};
1
+ const a19_0xa59a73=a19_0x573e;(function(_0x3e3b16,_0x3fcb01){const _0x285b99=a19_0x573e,_0x1c1420=_0x3e3b16();while(!![]){try{const _0x4ec03e=parseInt(_0x285b99(0x1d4))/0x1+-parseInt(_0x285b99(0x1e9))/0x2+parseInt(_0x285b99(0x1f2))/0x3+parseInt(_0x285b99(0x1e6))/0x4*(parseInt(_0x285b99(0x1cc))/0x5)+-parseInt(_0x285b99(0x1cd))/0x6*(parseInt(_0x285b99(0x1c5))/0x7)+parseInt(_0x285b99(0x1e0))/0x8+-parseInt(_0x285b99(0x1fa))/0x9;if(_0x4ec03e===_0x3fcb01)break;else _0x1c1420['push'](_0x1c1420['shift']());}catch(_0x2758b0){_0x1c1420['push'](_0x1c1420['shift']());}}}(a19_0x39b9,0x3c844));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0xa59a73(0x1f3)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0xa59a73(0x1f0)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0xa59a73(0x1be)),{sendInstrumentationEvent}=require(a19_0xa59a73(0x1eb)),webSocketUtils=require(a19_0xa59a73(0x1b5)),{createK8sClient}=require(a19_0xa59a73(0x1f4)),{getCloudProviderObject}=require(a19_0xa59a73(0x200));function a19_0x39b9(){const _0x476527=['948164zFlOjP','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','../../utils/instrumentationUtils','boolean','mewFn','info','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','../../config/constants','BtWiC','346620nJvQel','reconnecting-websocket','../../utils/createk8sClient','handler','epilogue','skip-tls-cert-verify','gridId','urZgm','4464774fwjHxP','bstackAccesskey','region','<PasswordPlaceholder>','addListeners','rBXqV','../../cloudproviders/utils','default','start-grid-called','statusCode','yXFvq','AXesv','wSnNN','replace','Adding\x20Websocket\x20listeners','Grid\x20started','Start\x20an\x20existing\x20Automation\x20grid.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','readFileSync','unauthorised','clusterName','stringify','message','username','../../utils/webSocketUtils','UHirc','fzKUS','grid-id','yoPhh','yZGOI','fYaTL','options','xrWiD','../../utils/gridComponents','grid','error','string','WebSocket','Browserstack','argv','147819ZkumTy','Starting\x20grid\x20','fdbCK','ERROR','CscBi','exit','UZCuM','27635jUEBqL','60PhkGCx','body','YRFHR','<UsernamePlaceholder>','CxpcE','user','type','461917NflXsL','existsSync','bstackUsername','description','parse','help','debug','rhvYl','CjJJq','start','cloudProvider','clusterRegion','3276776bXhRtT','name','connectionTimeout','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','server-error','320mqtgoL','password','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'];a19_0x39b9=function(){return _0x476527;};return a19_0x39b9();}function a19_0x573e(_0x318eb6,_0x2724c8){const _0x39b906=a19_0x39b9();return a19_0x573e=function(_0x573e8e,_0x2b1ea8){_0x573e8e=_0x573e8e-0x1a7;let _0x29bce4=_0x39b906[_0x573e8e];return _0x29bce4;},a19_0x573e(_0x318eb6,_0x2724c8);}exports['command']=a19_0xa59a73(0x1bf),exports['desc']=a19_0xa59a73(0x1ad),exports['builder']=function(_0x16588e){const _0x41e8e5=a19_0xa59a73,_0x2f4ea9={};_0x2f4ea9[_0x41e8e5(0x1ed)]=_0x41e8e5(0x1e4),_0x2f4ea9['BtWiC']=_0x41e8e5(0x1c1),_0x2f4ea9['YjGmd']='Skip\x20insecure\x20cert\x20verification.',_0x2f4ea9[_0x41e8e5(0x1b9)]=_0x41e8e5(0x1ec),_0x2f4ea9[_0x41e8e5(0x1f9)]=_0x41e8e5(0x1d9);const _0x4d6e13=_0x2f4ea9,_0x2b8d76={};_0x2b8d76[_0x41e8e5(0x1d7)]=_0x4d6e13[_0x41e8e5(0x1ed)],_0x2b8d76[_0x41e8e5(0x1d3)]=_0x4d6e13[_0x41e8e5(0x1f1)];const _0x11b367={};_0x11b367[_0x41e8e5(0x1d7)]=_0x4d6e13['YjGmd'],_0x11b367['type']=_0x4d6e13[_0x41e8e5(0x1b9)],_0x11b367[_0x41e8e5(0x201)]=![];const _0x5bc289={};return _0x5bc289[_0x41e8e5(0x1b8)]=_0x2b8d76,_0x5bc289[_0x41e8e5(0x1f7)]=_0x11b367,_0x16588e['usage'](HELP_HEADER_MESSAGE[_0x41e8e5(0x1dd)])[_0x41e8e5(0x1f6)](HELP_FOOTER_MESSAGE)[_0x41e8e5(0x1bc)](_0x5bc289)[_0x41e8e5(0x1d9)](_0x4d6e13[_0x41e8e5(0x1f9)])[_0x41e8e5(0x1c4)];},exports[a19_0xa59a73(0x1f5)]=async function(_0x13325){const _0x23ccb2=a19_0xa59a73,_0x4dca7d={'fYaTL':_0x23ccb2(0x1ea),'xrWiD':function(_0x468710){return _0x468710();},'fzKUS':_0x23ccb2(0x1ae),'CscBi':function(_0x284c6c,_0x4c5169,_0x25867a,_0x1782bf,_0x5a900b,_0x9be66,_0x2d3292){return _0x284c6c(_0x4c5169,_0x25867a,_0x1782bf,_0x5a900b,_0x9be66,_0x2d3292);},'AXesv':_0x23ccb2(0x202),'LPZYy':'init-not-called','rBXqV':function(_0x302b83,_0xdf6d0d,_0x4ff6fd,_0x49f722,_0x544d92,_0x4b5b70,_0x44fa82){return _0x302b83(_0xdf6d0d,_0x4ff6fd,_0x49f722,_0x544d92,_0x4b5b70,_0x44fa82);},'llXqV':function(_0x59dafc){return _0x59dafc();},'wbYef':_0x23ccb2(0x1d0),'WomYn':_0x23ccb2(0x1fd),'yZGOI':_0x23ccb2(0x1ab),'fdbCK':function(_0x2cc76f,_0x1c9fe1,_0x4cce6f,_0x4e8a53){return _0x2cc76f(_0x1c9fe1,_0x4cce6f,_0x4e8a53);},'YRFHR':function(_0x4b1e09,_0x38c0fc,_0x29a151){return _0x4b1e09(_0x38c0fc,_0x29a151);},'rhvYl':function(_0x512e17,_0x466fc3,_0x5eb350){return _0x512e17(_0x466fc3,_0x5eb350);},'enAvj':_0x23ccb2(0x1ac),'wSnNN':function(_0x568885,_0x20f827){return _0x568885===_0x20f827;},'UZCuM':_0x23ccb2(0x1e8),'UHirc':_0x23ccb2(0x1b0),'CxpcE':function(_0x1c96c6,_0x541bb9){return _0x1c96c6===_0x541bb9;},'CjJJq':function(_0x1e5d23,_0x17e5fd,_0x137072,_0xad5aeb,_0x255b88,_0xc760b1,_0x37d010){return _0x1e5d23(_0x17e5fd,_0x137072,_0xad5aeb,_0x255b88,_0xc760b1,_0x37d010);},'QPnry':'invalid-grid-id','yXFvq':_0x23ccb2(0x1e5)};let _0x3d0bbc;try{!_0x13325[_0x23ccb2(0x1f8)]&&(logger['error'](_0x4dca7d[_0x23ccb2(0x1bb)]),process[_0x23ccb2(0x1ca)](0x1));!fs[_0x23ccb2(0x1d5)](_0x4dca7d[_0x23ccb2(0x1bd)](getCredentialsPath))&&(logger['error'](_0x4dca7d[_0x23ccb2(0x1b7)]),await _0x4dca7d[_0x23ccb2(0x1c9)](sendInstrumentationEvent,_0x13325,_0x4dca7d['AXesv'],messageTypes['ERROR'],_0x4dca7d['LPZYy'],null,_0x13325),process['exit'](0x1));logger[_0x23ccb2(0x1ee)](_0x23ccb2(0x1c6)+_0x13325[_0x23ccb2(0x1f8)]),await _0x4dca7d['rBXqV'](sendInstrumentationEvent,_0x13325,_0x4dca7d[_0x23ccb2(0x1a8)],messageTypes['INFO'],null,null,_0x13325);const _0x29ae9b=JSON[_0x23ccb2(0x1d8)](fs[_0x23ccb2(0x1af)](_0x4dca7d['llXqV'](getCredentialsPath)));global_registry[_0x23ccb2(0x1d6)]=_0x29ae9b['Browserstack'][_0x23ccb2(0x1b4)],global_registry[_0x23ccb2(0x1fb)]=_0x29ae9b['Browserstack'][_0x23ccb2(0x1e7)];const _0x10931f=WS_ENDPOINT[_0x23ccb2(0x1aa)](_0x4dca7d['wbYef'],_0x29ae9b[_0x23ccb2(0x1c3)][_0x23ccb2(0x1b4)])['replace'](_0x4dca7d['WomYn'],_0x29ae9b[_0x23ccb2(0x1c3)][_0x23ccb2(0x1e7)]),_0x5c4ebf={};_0x5c4ebf[_0x23ccb2(0x1c2)]=ws,_0x5c4ebf[_0x23ccb2(0x1e2)]=0x36ee80,_0x3d0bbc=new ReconnectingWebSocket(_0x10931f,[],_0x5c4ebf),logger[_0x23ccb2(0x1da)](_0x4dca7d[_0x23ccb2(0x1ba)]),webSocketUtils[_0x23ccb2(0x1fe)](_0x3d0bbc,_0x13325[_0x23ccb2(0x1d2)],_0x13325['password']);const [_0x3115cd,_0x2be6c3]=await _0x4dca7d[_0x23ccb2(0x1c7)](getGridDetails,_0x29ae9b[_0x23ccb2(0x1c3)][_0x23ccb2(0x1b4)],_0x29ae9b[_0x23ccb2(0x1c3)][_0x23ccb2(0x1e7)],_0x13325['gridId']);if(_0x2be6c3){const _0xccbb48=_0x2be6c3[_0x23ccb2(0x1ee)];global_registry[_0x23ccb2(0x1de)]=_0xccbb48[_0x23ccb2(0x1de)],global_registry[_0x23ccb2(0x1df)]=_0xccbb48[_0x23ccb2(0x1fc)],global_registry[_0x23ccb2(0x1b1)]=_0xccbb48[_0x23ccb2(0x1b1)];const _0x33ab68=await _0x4dca7d[_0x23ccb2(0x1ff)](getCloudProviderObject,_0xccbb48['cloudProvider'],_0xccbb48[_0x23ccb2(0x1b1)],_0xccbb48['name'],_0x3d0bbc,webSocketUtils,_0x13325),[_0x4288ad,_0x3d2393,_0x5f0f05,_0x2e4699,_0x439780,_0x51883a]=await _0x4dca7d[_0x23ccb2(0x1cf)](createK8sClient,_0x33ab68,_0x13325[_0x23ccb2(0x1e3)]);await _0x4dca7d[_0x23ccb2(0x1db)](scaleUpHubDeployment,_0x3d2393,_0xccbb48[_0x23ccb2(0x1e1)]),logger[_0x23ccb2(0x1ee)](_0x4dca7d['enAvj']),process[_0x23ccb2(0x1ca)](0x0);}_0x4dca7d[_0x23ccb2(0x1a9)](_0x3115cd[_0x23ccb2(0x203)],0x191)&&(logger[_0x23ccb2(0x1c0)](_0x4dca7d[_0x23ccb2(0x1cb)]),await _0x4dca7d[_0x23ccb2(0x1ff)](sendInstrumentationEvent,_0x13325,_0x4dca7d[_0x23ccb2(0x1a8)],messageTypes[_0x23ccb2(0x1c8)],_0x4dca7d[_0x23ccb2(0x1b6)],null,_0x13325),process[_0x23ccb2(0x1ca)](0x1)),_0x4dca7d[_0x23ccb2(0x1d1)](_0x3115cd[_0x23ccb2(0x203)],0x190)&&(logger['error'](JSON[_0x23ccb2(0x1d8)](_0x3115cd[_0x23ccb2(0x1ce)])[_0x23ccb2(0x1b3)]),await _0x4dca7d[_0x23ccb2(0x1dc)](sendInstrumentationEvent,_0x13325,_0x4dca7d[_0x23ccb2(0x1a8)],messageTypes[_0x23ccb2(0x1c8)],_0x4dca7d['QPnry'],null,_0x13325),process[_0x23ccb2(0x1ca)](0x1)),logger[_0x23ccb2(0x1c0)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x23ccb2(0x1b2)](_0x3115cd)),await _0x4dca7d[_0x23ccb2(0x1dc)](sendInstrumentationEvent,_0x13325,_0x4dca7d[_0x23ccb2(0x1a8)],messageTypes[_0x23ccb2(0x1c8)],_0x4dca7d[_0x23ccb2(0x1a7)],_0x3115cd,_0x13325),process[_0x23ccb2(0x1ca)](0x1);}catch(_0x4ae205){const _0x42055f=_0x23ccb2(0x1ef)+_0x4ae205+'\x20\x0a'+JSON[_0x23ccb2(0x1b2)](_0x4ae205['stack'])+'\x20';logger[_0x23ccb2(0x1c0)](_0x42055f),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a20_0x3397(_0x512ffd,_0x1782e1){const _0x5601b8=a20_0x5601();return a20_0x3397=function(_0x3397d9,_0x2bc46d){_0x3397d9=_0x3397d9-0x1c1;let _0x5987bc=_0x5601b8[_0x3397d9];return _0x5987bc;},a20_0x3397(_0x512ffd,_0x1782e1);}const a20_0x51e5a2=a20_0x3397;(function(_0x169115,_0x54aa9b){const _0x4ec41e=a20_0x3397,_0x3e186b=_0x169115();while(!![]){try{const _0x3007ca=parseInt(_0x4ec41e(0x1c5))/0x1+-parseInt(_0x4ec41e(0x1c2))/0x2+-parseInt(_0x4ec41e(0x1d7))/0x3+-parseInt(_0x4ec41e(0x1d0))/0x4*(parseInt(_0x4ec41e(0x1d1))/0x5)+-parseInt(_0x4ec41e(0x1ce))/0x6*(-parseInt(_0x4ec41e(0x1c7))/0x7)+-parseInt(_0x4ec41e(0x1cf))/0x8*(-parseInt(_0x4ec41e(0x1d4))/0x9)+-parseInt(_0x4ec41e(0x1cc))/0xa*(-parseInt(_0x4ec41e(0x1d2))/0xb);if(_0x3007ca===_0x54aa9b)break;else _0x3e186b['push'](_0x3e186b['shift']());}catch(_0x35b579){_0x3e186b['push'](_0x3e186b['shift']());}}}(a20_0x5601,0x9b135));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x51e5a2(0x1ca));exports['command']=a20_0x51e5a2(0x1c4),exports[a20_0x51e5a2(0x1c8)]=a20_0x51e5a2(0x1c3),exports[a20_0x51e5a2(0x1d5)]=function(_0x2f0497){const _0x18ba37=a20_0x51e5a2,_0x10b89d={};_0x10b89d[_0x18ba37(0x1d3)]=_0x18ba37(0x1d6),_0x10b89d[_0x18ba37(0x1cb)]=_0x18ba37(0x1c1);const _0x3378c2=_0x10b89d;return _0x2f0497[_0x18ba37(0x1c6)](HELP_HEADER_MESSAGE[_0x18ba37(0x1c4)])[_0x18ba37(0x1cd)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3378c2['crGFF'])['demandCommand']()['recommendCommands']()[_0x18ba37(0x1c9)]()[_0x18ba37(0x1c1)](_0x3378c2['pcdgV']);},exports['handler']=function(_0x1c5d80){};function a20_0x5601(){const _0x1c6302=['2139831GfPhnV','help','300488WXghwd','Stop\x20a\x20running\x20Automation\x20grid.','stop','500147EWTZkw','usage','69755dqYLzk','desc','strict','../config/constants','pcdgV','1130OfNeQo','epilogue','252qCagAo','1296888VYGtgh','1208HbqRcS','17060RiCntI','109428FgsgQk','crGFF','27spWVIR','builder','stop_commands'];a20_0x5601=function(){return _0x1c6302;};return a20_0x5601();}
1
+ const a20_0x5c7942=a20_0x2653;(function(_0x229fbf,_0x479e6d){const _0x1df8ff=a20_0x2653,_0x49b692=_0x229fbf();while(!![]){try{const _0x555354=-parseInt(_0x1df8ff(0xeb))/0x1+-parseInt(_0x1df8ff(0xe8))/0x2+-parseInt(_0x1df8ff(0xf7))/0x3*(-parseInt(_0x1df8ff(0xfd))/0x4)+-parseInt(_0x1df8ff(0xfb))/0x5+parseInt(_0x1df8ff(0xf3))/0x6+-parseInt(_0x1df8ff(0xf9))/0x7*(-parseInt(_0x1df8ff(0xec))/0x8)+parseInt(_0x1df8ff(0xf8))/0x9;if(_0x555354===_0x479e6d)break;else _0x49b692['push'](_0x49b692['shift']());}catch(_0x3660e0){_0x49b692['push'](_0x49b692['shift']());}}}(a20_0x1f17,0x348e5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x1f17(){const _0x9aed78=['268eQlWjv','help','469258kRQfkC','epilogue','stop_commands','73975PuBRuv','8UjnQqJ','iZzXQ','builder','Stop\x20a\x20running\x20Automation\x20grid.','handler','demandCommand','command','681756LbVBNT','desc','commandDir','stop','12153stSNbk','4015746dWGSnY','283927Xkjxpx','recommendCommands','1739625kJTzSW','usage'];a20_0x1f17=function(){return _0x9aed78;};return a20_0x1f17();}function a20_0x2653(_0x380190,_0x2fb1aa){const _0x1f1792=a20_0x1f17();return a20_0x2653=function(_0x265315,_0x3ed41d){_0x265315=_0x265315-0xe7;let _0x2787e8=_0x1f1792[_0x265315];return _0x2787e8;},a20_0x2653(_0x380190,_0x2fb1aa);}exports[a20_0x5c7942(0xf2)]=a20_0x5c7942(0xf6),exports[a20_0x5c7942(0xf4)]=a20_0x5c7942(0xef),exports[a20_0x5c7942(0xee)]=function(_0x11f394){const _0x282b25=a20_0x5c7942,_0x2add6d={};_0x2add6d[_0x282b25(0xed)]=_0x282b25(0xea),_0x2add6d['rnquh']=_0x282b25(0xe7);const _0xf3db7d=_0x2add6d;return _0x11f394[_0x282b25(0xfc)](HELP_HEADER_MESSAGE['stop'])[_0x282b25(0xe9)](HELP_FOOTER_MESSAGE)[_0x282b25(0xf5)](_0xf3db7d[_0x282b25(0xed)])[_0x282b25(0xf1)]()[_0x282b25(0xfa)]()['strict']()['help'](_0xf3db7d['rnquh']);},exports[a20_0x5c7942(0xf0)]=function(_0x2e5775){};
@@ -1 +1 @@
1
- function a21_0x5f1f(){const _0x310333=['default','statusCode','bstackAccesskey','boolean','1629252ePOvMJ','debug','rdSfO','CQNoM','416OEhbLP','options','pHdWK','QWtqM','../../config/logger','parse','pEytA','help','grid','mYLEu','argv','33zeDBDL','WYaBY','1EqLMSF','CnCYR','user','Skip\x20insecure\x20cert\x20verification.','1883049VpvJjq','yqccA','../../config/constants','231150gKKXCv','ERROR','info','JBwNz','command','handler','gridId','stringify','vRnso','password','usage','connectionTimeout','description','TiuQI','skipTlsCertVerify','Browserstack','../../utils/createk8sClient','Stop\x20a\x20running\x20Automation\x20grid.','CTTVC','VJVSh','string','stop-grid-called','../../utils/gridComponents','puUuY','body','31403684OKDYLu','osaiF','invalid-grid-id','readFileSync','server-error','../../utils/utilityMethods','grid-id','xfYoM','type','16bWOcaA','reconnecting-websocket','addListeners','EubEE','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterName','desc','<PasswordPlaceholder>','986324dNUseB','exit','builder','stop','12zOQjWq','existsSync','../../utils/instrumentationUtils','bstackUsername','Cdwar','username','3065WoGHWl','../../cloudproviders/utils','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','INFO','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','12ZXDIVj','WebSocket','RILaR','replace','Stopping\x20grid\x20','cloudProvider','2146711OwyGfW','skip-tls-cert-verify','jNKDC','init-not-called','Adding\x20Websocket\x20listeners','Grid\x20stoppped.','error','xLDkM','name'];a21_0x5f1f=function(){return _0x310333;};return a21_0x5f1f();}function a21_0x4fb5(_0x5b9ddd,_0x382e0d){const _0x5f1fcb=a21_0x5f1f();return a21_0x4fb5=function(_0x4fb565,_0x45ff38){_0x4fb565=_0x4fb565-0x183;let _0x1ef75e=_0x5f1fcb[_0x4fb565];return _0x1ef75e;},a21_0x4fb5(_0x5b9ddd,_0x382e0d);}const a21_0x3a496a=a21_0x4fb5;(function(_0x3fcffe,_0x4f3d9e){const _0x452832=a21_0x4fb5,_0x3cebac=_0x3fcffe();while(!![]){try{const _0x10bdc5=parseInt(_0x452832(0x1db))/0x1*(-parseInt(_0x452832(0x1a8))/0x2)+-parseInt(_0x452832(0x1df))/0x3+parseInt(_0x452832(0x1ce))/0x4*(parseInt(_0x452832(0x1b2))/0x5)+-parseInt(_0x452832(0x1b7))/0x6*(parseInt(_0x452832(0x1bd))/0x7)+parseInt(_0x452832(0x19f))/0x8*(-parseInt(_0x452832(0x1ca))/0x9)+parseInt(_0x452832(0x1e2))/0xa*(parseInt(_0x452832(0x1d9))/0xb)+parseInt(_0x452832(0x1ac))/0xc*(parseInt(_0x452832(0x196))/0xd);if(_0x10bdc5===_0x4f3d9e)break;else _0x3cebac['push'](_0x3cebac['shift']());}catch(_0x4caf24){_0x3cebac['push'](_0x3cebac['shift']());}}}(a21_0x5f1f,0x6e7a6));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x3a496a(0x1a0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x3a496a(0x1e1)),{logger}=require(a21_0x3a496a(0x1d2)),{getCredentialsPath,getGridDetails}=require(a21_0x3a496a(0x19b)),{scaleDownHubDeployment}=require(a21_0x3a496a(0x193)),{sendInstrumentationEvent}=require(a21_0x3a496a(0x1ae)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x3a496a(0x18d)),{getCloudProviderObject}=require(a21_0x3a496a(0x1b3));exports[a21_0x3a496a(0x1e6)]=a21_0x3a496a(0x1d6),exports[a21_0x3a496a(0x1a6)]=a21_0x3a496a(0x18e),exports[a21_0x3a496a(0x1aa)]=function(_0x290481){const _0x42ce1d=a21_0x3a496a,_0x3f50a0={};_0x3f50a0[_0x42ce1d(0x1da)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x3f50a0[_0x42ce1d(0x18a)]=_0x42ce1d(0x191),_0x3f50a0[_0x42ce1d(0x194)]=_0x42ce1d(0x1de),_0x3f50a0[_0x42ce1d(0x19d)]=_0x42ce1d(0x1c9),_0x3f50a0[_0x42ce1d(0x1cd)]=_0x42ce1d(0x1d5);const _0x4d9ea3=_0x3f50a0,_0x5d2573={};_0x5d2573[_0x42ce1d(0x189)]=_0x4d9ea3[_0x42ce1d(0x1da)],_0x5d2573['type']=_0x4d9ea3[_0x42ce1d(0x18a)];const _0x56248f={};_0x56248f[_0x42ce1d(0x189)]=_0x4d9ea3['puUuY'],_0x56248f[_0x42ce1d(0x19e)]=_0x4d9ea3[_0x42ce1d(0x19d)],_0x56248f[_0x42ce1d(0x1c6)]=![];const _0x39b54c={};return _0x39b54c[_0x42ce1d(0x19c)]=_0x5d2573,_0x39b54c[_0x42ce1d(0x1be)]=_0x56248f,_0x290481[_0x42ce1d(0x187)](HELP_HEADER_MESSAGE[_0x42ce1d(0x1ab)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x42ce1d(0x1cf)](_0x39b54c)[_0x42ce1d(0x1d5)](_0x4d9ea3['CQNoM'])[_0x42ce1d(0x1d8)];},exports[a21_0x3a496a(0x1e7)]=async function(_0x50accc){const _0x36521c=a21_0x3a496a,_0x46e032={'pEytA':_0x36521c(0x1b6),'pHdWK':function(_0x1267bb){return _0x1267bb();},'xLDkM':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EubEE':function(_0x22672c,_0x3d581e,_0x30066a,_0x54dd24,_0x513b8a,_0xbccf09,_0x19af22){return _0x22672c(_0x3d581e,_0x30066a,_0x54dd24,_0x513b8a,_0xbccf09,_0x19af22);},'vRnso':_0x36521c(0x192),'Cdwar':_0x36521c(0x1c0),'JBwNz':function(_0x32a58c){return _0x32a58c();},'QWtqM':'<UsernamePlaceholder>','VCPjz':_0x36521c(0x1a7),'tMQQv':_0x36521c(0x1c1),'jNKDC':function(_0x3745a8,_0x4c872a,_0x490761,_0x4003b6){return _0x3745a8(_0x4c872a,_0x490761,_0x4003b6);},'HLXBa':function(_0x1b9985,_0x42201a,_0x3775d9){return _0x1b9985(_0x42201a,_0x3775d9);},'tPPkA':function(_0x2a8243,_0x21400a,_0x3b94ba){return _0x2a8243(_0x21400a,_0x3b94ba);},'rdSfO':_0x36521c(0x1c2),'RILaR':function(_0x4bdb56,_0x3b30c6){return _0x4bdb56===_0x3b30c6;},'yqccA':_0x36521c(0x1a4),'CTTVC':'unauthorised','dxLVs':function(_0x26f485,_0x21ea5d){return _0x26f485===_0x21ea5d;},'mYLEu':function(_0x2dfc5d,_0x49abab,_0x1b0b18,_0x31c8af,_0x138427,_0x43d56e,_0x12b589){return _0x2dfc5d(_0x49abab,_0x1b0b18,_0x31c8af,_0x138427,_0x43d56e,_0x12b589);},'CnCYR':_0x36521c(0x198),'VJVSh':function(_0xbf70b8,_0x2f1530,_0x3dd163,_0x3e8b94,_0xcd434e,_0x5bf8e7,_0x4d9ffd){return _0xbf70b8(_0x2f1530,_0x3dd163,_0x3e8b94,_0xcd434e,_0x5bf8e7,_0x4d9ffd);},'osaiF':_0x36521c(0x19a)};let _0x2000c6;try{!_0x50accc['gridId']&&(logger['error'](_0x46e032[_0x36521c(0x1d4)]),process[_0x36521c(0x1a9)](0x1));!fs[_0x36521c(0x1ad)](_0x46e032[_0x36521c(0x1d0)](getCredentialsPath))&&(logger['error'](_0x46e032[_0x36521c(0x1c4)]),await _0x46e032[_0x36521c(0x1a2)](sendInstrumentationEvent,_0x50accc,_0x46e032[_0x36521c(0x185)],messageTypes[_0x36521c(0x1e3)],_0x46e032[_0x36521c(0x1b0)],null,_0x50accc),process[_0x36521c(0x1a9)](0x1));logger[_0x36521c(0x1e4)](_0x36521c(0x1bb)+_0x50accc[_0x36521c(0x183)]),await _0x46e032['EubEE'](sendInstrumentationEvent,_0x50accc,_0x46e032[_0x36521c(0x185)],messageTypes[_0x36521c(0x1b5)],null,null,_0x50accc);const _0x4ad899=JSON[_0x36521c(0x1d3)](fs[_0x36521c(0x199)](_0x46e032[_0x36521c(0x1e5)](getCredentialsPath)));global_registry[_0x36521c(0x1af)]=_0x4ad899['Browserstack'][_0x36521c(0x1b1)],global_registry[_0x36521c(0x1c8)]=_0x4ad899[_0x36521c(0x18c)][_0x36521c(0x186)];const _0x557269=WS_ENDPOINT[_0x36521c(0x1ba)](_0x46e032[_0x36521c(0x1d1)],_0x4ad899[_0x36521c(0x18c)][_0x36521c(0x1b1)])[_0x36521c(0x1ba)](_0x46e032['VCPjz'],_0x4ad899[_0x36521c(0x18c)][_0x36521c(0x186)]),_0x707f7d={};_0x707f7d[_0x36521c(0x1b8)]=ws,_0x707f7d[_0x36521c(0x188)]=0x36ee80,_0x2000c6=new ReconnectingWebSocket(_0x557269,[],_0x707f7d),logger[_0x36521c(0x1cb)](_0x46e032['tMQQv']),webSocketUtils[_0x36521c(0x1a1)](_0x2000c6,_0x50accc[_0x36521c(0x1dd)],_0x50accc[_0x36521c(0x186)]);const [_0x45d1dc,_0x78c153]=await _0x46e032[_0x36521c(0x1bf)](getGridDetails,_0x4ad899[_0x36521c(0x18c)]['username'],_0x4ad899[_0x36521c(0x18c)]['password'],_0x50accc[_0x36521c(0x183)]);if(_0x78c153){const _0x4f3495=_0x78c153[_0x36521c(0x1e4)];global_registry[_0x36521c(0x1bc)]=_0x4f3495[_0x36521c(0x1bc)],global_registry['clusterRegion']=_0x4f3495['region'],global_registry['clusterName']=_0x4f3495[_0x36521c(0x1a5)];const _0x10043c=await _0x46e032[_0x36521c(0x1a2)](getCloudProviderObject,_0x4f3495[_0x36521c(0x1bc)],_0x4f3495[_0x36521c(0x1a5)],_0x4f3495[_0x36521c(0x1c5)],_0x2000c6,webSocketUtils,_0x50accc),[_0x131216,_0x93cfcb,_0xa6e3c2,_0x5db607,_0x345f08,_0x608780]=await _0x46e032['HLXBa'](createK8sClient,_0x10043c,_0x50accc[_0x36521c(0x18b)]);await _0x46e032['tPPkA'](scaleDownHubDeployment,_0x93cfcb,_0x4f3495['name']),logger['info'](_0x46e032[_0x36521c(0x1cc)]),process['exit'](0x0);}_0x46e032[_0x36521c(0x1b9)](_0x45d1dc[_0x36521c(0x1c7)],0x191)&&(logger['error'](_0x46e032[_0x36521c(0x1e0)]),await _0x46e032[_0x36521c(0x1a2)](sendInstrumentationEvent,_0x50accc,_0x46e032[_0x36521c(0x185)],messageTypes[_0x36521c(0x1e3)],_0x46e032[_0x36521c(0x18f)],null,_0x50accc),process[_0x36521c(0x1a9)](0x1)),_0x46e032['dxLVs'](_0x45d1dc[_0x36521c(0x1c7)],0x190)&&(logger[_0x36521c(0x1c3)](JSON[_0x36521c(0x1d3)](_0x45d1dc[_0x36521c(0x195)])['message']),await _0x46e032[_0x36521c(0x1d7)](sendInstrumentationEvent,_0x50accc,_0x46e032[_0x36521c(0x185)],messageTypes[_0x36521c(0x1e3)],_0x46e032[_0x36521c(0x1dc)],null,_0x50accc),process[_0x36521c(0x1a9)](0x1)),logger[_0x36521c(0x1c3)](_0x36521c(0x1a3)+JSON[_0x36521c(0x184)](_0x45d1dc)),await _0x46e032[_0x36521c(0x190)](sendInstrumentationEvent,_0x50accc,_0x46e032[_0x36521c(0x185)],messageTypes[_0x36521c(0x1e3)],_0x46e032[_0x36521c(0x197)],_0x45d1dc,_0x50accc),process[_0x36521c(0x1a9)](0x1);}catch(_0x295cc9){const _0x2d4d9e=_0x36521c(0x1b4)+_0x295cc9+'\x20\x0a'+JSON[_0x36521c(0x184)](_0x295cc9['stack'])+'\x20';logger[_0x36521c(0x1c3)](_0x2d4d9e),process[_0x36521c(0x1a9)](0x1);}};
1
+ const a21_0x376d50=a21_0xe9ed;(function(_0x20c93e,_0x20c973){const _0x13c6fc=a21_0xe9ed,_0x4cd81b=_0x20c93e();while(!![]){try{const _0x41916b=-parseInt(_0x13c6fc(0x17f))/0x1*(parseInt(_0x13c6fc(0x1aa))/0x2)+-parseInt(_0x13c6fc(0x1a9))/0x3*(parseInt(_0x13c6fc(0x186))/0x4)+parseInt(_0x13c6fc(0x16f))/0x5+parseInt(_0x13c6fc(0x16d))/0x6*(-parseInt(_0x13c6fc(0x19a))/0x7)+-parseInt(_0x13c6fc(0x165))/0x8+parseInt(_0x13c6fc(0x18a))/0x9+-parseInt(_0x13c6fc(0x176))/0xa*(-parseInt(_0x13c6fc(0x183))/0xb);if(_0x41916b===_0x20c973)break;else _0x4cd81b['push'](_0x4cd81b['shift']());}catch(_0x450624){_0x4cd81b['push'](_0x4cd81b['shift']());}}}(a21_0x9c5a,0xcdb92));function a21_0xe9ed(_0xb54ed0,_0x3be27a){const _0x9c5a21=a21_0x9c5a();return a21_0xe9ed=function(_0xe9ed1a,_0x4bd806){_0xe9ed1a=_0xe9ed1a-0x15f;let _0x17f911=_0x9c5a21[_0xe9ed1a];return _0x17f911;},a21_0xe9ed(_0xb54ed0,_0x3be27a);}function a21_0x9c5a(){const _0x5aff9f=['CpXQn','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','builder','epilogue','description','JcpuR','../../config/logger','gridId','6433YPSBTf','invalid-grid-id','qjaiD','clusterRegion','15543VjlyAL','stop','kdags','4zoYmdX','cloudProvider','clusterName','message','11304747OHqNJf','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Stop\x20a\x20running\x20Automation\x20grid.','statusCode','exit','IhHMk','jIabb','existsSync','Browserstack','body','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','eqwuG','SxqJR','stringify','WebSocket','ebUsG','245zYekXo','Skip\x20insecure\x20cert\x20verification.','options','stop-grid-called','addListeners','argv','../../utils/createk8sClient','PhiHw','../../cloudproviders/utils','EopAt','parse','password','bstackAccesskey','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','info','1709457VjOJof','8Ksinuz','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','server-error','tInpK','type','ERROR','help','stack','unauthorised','../../utils/instrumentationUtils','replace','../../utils/utilityMethods','LopFu','qHpVN','handler','name','FSZla','desc','<PasswordPlaceholder>','command','cilMw','usage','uNWAR','readFileSync','VzZiq','error','Tmyyc','6116272LTdoDx','Stopping\x20grid\x20','../../config/constants','ETMBA','debug','boolean','Adding\x20Websocket\x20listeners','grid','25278rDSuCp','bstackUsername','758140KCMaiV','HKBev','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','region','skipTlsCertVerify','../../utils/webSocketUtils','username','6670OdnGkH'];a21_0x9c5a=function(){return _0x5aff9f;};return a21_0x9c5a();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x376d50(0x167)),{logger}=require(a21_0x376d50(0x17d)),{getCredentialsPath,getGridDetails}=require(a21_0x376d50(0x1b5)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x376d50(0x1b3)),webSocketUtils=require(a21_0x376d50(0x174)),{createK8sClient}=require(a21_0x376d50(0x1a0)),{getCloudProviderObject}=require(a21_0x376d50(0x1a2));exports[a21_0x376d50(0x1bd)]=a21_0x376d50(0x16c),exports[a21_0x376d50(0x1bb)]=a21_0x376d50(0x18c),exports[a21_0x376d50(0x179)]=function(_0x444bc6){const _0x3b74e8=a21_0x376d50,_0x6d94be={};_0x6d94be[_0x3b74e8(0x196)]=_0x3b74e8(0x178),_0x6d94be[_0x3b74e8(0x1be)]='string',_0x6d94be['qjaiD']=_0x3b74e8(0x19b),_0x6d94be[_0x3b74e8(0x1ba)]=_0x3b74e8(0x16a),_0x6d94be[_0x3b74e8(0x164)]=_0x3b74e8(0x1b0);const _0x44990a=_0x6d94be,_0x5cce2c={};_0x5cce2c[_0x3b74e8(0x17b)]=_0x44990a['SxqJR'],_0x5cce2c[_0x3b74e8(0x1ae)]=_0x44990a['cilMw'];const _0x52893f={};_0x52893f[_0x3b74e8(0x17b)]=_0x44990a[_0x3b74e8(0x181)],_0x52893f[_0x3b74e8(0x1ae)]=_0x44990a['FSZla'],_0x52893f['default']=![];const _0x50b616={};return _0x50b616['grid-id']=_0x5cce2c,_0x50b616['skip-tls-cert-verify']=_0x52893f,_0x444bc6[_0x3b74e8(0x15f)](HELP_HEADER_MESSAGE[_0x3b74e8(0x184)])[_0x3b74e8(0x17a)](HELP_FOOTER_MESSAGE)[_0x3b74e8(0x19c)](_0x50b616)[_0x3b74e8(0x1b0)](_0x44990a[_0x3b74e8(0x164)])[_0x3b74e8(0x19f)];},exports[a21_0x376d50(0x1b8)]=async function(_0x4f433b){const _0x355ed3=a21_0x376d50,_0xcb67ff={'uNWAR':_0x355ed3(0x1ab),'HKBev':function(_0x41a1a2){return _0x41a1a2();},'VzZiq':_0x355ed3(0x194),'qHpVN':function(_0x13fe61,_0x24e6a0,_0x546198,_0xd90909,_0x269a0d,_0x58c0ec,_0x19d90d){return _0x13fe61(_0x24e6a0,_0x546198,_0xd90909,_0x269a0d,_0x58c0ec,_0x19d90d);},'eqwuG':_0x355ed3(0x19d),'ebUsG':'init-not-called','JcpuR':'<UsernamePlaceholder>','wSFLD':_0x355ed3(0x1bc),'LopFu':_0x355ed3(0x16b),'CpXQn':function(_0x54fff1,_0x3f3a00,_0x40197a,_0x52f75e){return _0x54fff1(_0x3f3a00,_0x40197a,_0x52f75e);},'tInpK':function(_0x51f586,_0x23f9f9,_0x18e9f7){return _0x51f586(_0x23f9f9,_0x18e9f7);},'QHGhM':function(_0x586b20,_0x5cc940,_0x2c851b){return _0x586b20(_0x5cc940,_0x2c851b);},'IhHMk':'Grid\x20stoppped.','jIabb':function(_0x56fa3e,_0x441e4a){return _0x56fa3e===_0x441e4a;},'IWhGx':_0x355ed3(0x171),'kdags':_0x355ed3(0x1b2),'PhiHw':_0x355ed3(0x180),'EopAt':function(_0x390dde,_0x57b90e,_0x441bb9,_0x214cc4,_0x1ff8d3,_0x12c3ab,_0x13c3d6){return _0x390dde(_0x57b90e,_0x441bb9,_0x214cc4,_0x1ff8d3,_0x12c3ab,_0x13c3d6);},'ETMBA':_0x355ed3(0x1ac)};let _0x4b4caf;try{!_0x4f433b[_0x355ed3(0x17e)]&&(logger[_0x355ed3(0x163)](_0xcb67ff[_0x355ed3(0x160)]),process['exit'](0x1));!fs[_0x355ed3(0x191)](_0xcb67ff[_0x355ed3(0x170)](getCredentialsPath))&&(logger[_0x355ed3(0x163)](_0xcb67ff[_0x355ed3(0x162)]),await _0xcb67ff[_0x355ed3(0x1b7)](sendInstrumentationEvent,_0x4f433b,_0xcb67ff[_0x355ed3(0x195)],messageTypes['ERROR'],_0xcb67ff[_0x355ed3(0x199)],null,_0x4f433b),process[_0x355ed3(0x18e)](0x1));logger[_0x355ed3(0x1a8)](_0x355ed3(0x166)+_0x4f433b[_0x355ed3(0x17e)]),await _0xcb67ff[_0x355ed3(0x1b7)](sendInstrumentationEvent,_0x4f433b,_0xcb67ff['eqwuG'],messageTypes['INFO'],null,null,_0x4f433b);const _0x232229=JSON[_0x355ed3(0x1a4)](fs[_0x355ed3(0x161)](_0xcb67ff[_0x355ed3(0x170)](getCredentialsPath)));global_registry[_0x355ed3(0x16e)]=_0x232229['Browserstack'][_0x355ed3(0x175)],global_registry[_0x355ed3(0x1a6)]=_0x232229[_0x355ed3(0x192)][_0x355ed3(0x1a5)];const _0x15e5c3=WS_ENDPOINT['replace'](_0xcb67ff[_0x355ed3(0x17c)],_0x232229[_0x355ed3(0x192)][_0x355ed3(0x175)])[_0x355ed3(0x1b4)](_0xcb67ff['wSFLD'],_0x232229[_0x355ed3(0x192)]['password']),_0x43428a={};_0x43428a[_0x355ed3(0x198)]=ws,_0x43428a['connectionTimeout']=0x36ee80,_0x4b4caf=new ReconnectingWebSocket(_0x15e5c3,[],_0x43428a),logger[_0x355ed3(0x169)](_0xcb67ff[_0x355ed3(0x1b6)]),webSocketUtils[_0x355ed3(0x19e)](_0x4b4caf,_0x4f433b['user'],_0x4f433b[_0x355ed3(0x1a5)]);const [_0x7b109e,_0x322df6]=await _0xcb67ff[_0x355ed3(0x177)](getGridDetails,_0x232229['Browserstack'][_0x355ed3(0x175)],_0x232229[_0x355ed3(0x192)][_0x355ed3(0x1a5)],_0x4f433b['gridId']);if(_0x322df6){const _0x31d6f0=_0x322df6[_0x355ed3(0x1a8)];global_registry[_0x355ed3(0x187)]=_0x31d6f0[_0x355ed3(0x187)],global_registry[_0x355ed3(0x182)]=_0x31d6f0[_0x355ed3(0x172)],global_registry[_0x355ed3(0x188)]=_0x31d6f0[_0x355ed3(0x188)];const _0x537fa9=await _0xcb67ff[_0x355ed3(0x1b7)](getCloudProviderObject,_0x31d6f0[_0x355ed3(0x187)],_0x31d6f0[_0x355ed3(0x188)],_0x31d6f0['name'],_0x4b4caf,webSocketUtils,_0x4f433b),[_0x525d37,_0x557290,_0x31efbe,_0x36351d,_0x59a8b8,_0x25c0a8]=await _0xcb67ff[_0x355ed3(0x1ad)](createK8sClient,_0x537fa9,_0x4f433b[_0x355ed3(0x173)]);await _0xcb67ff['QHGhM'](scaleDownHubDeployment,_0x557290,_0x31d6f0[_0x355ed3(0x1b9)]),logger[_0x355ed3(0x1a8)](_0xcb67ff[_0x355ed3(0x18f)]),process[_0x355ed3(0x18e)](0x0);}_0xcb67ff[_0x355ed3(0x190)](_0x7b109e[_0x355ed3(0x18d)],0x191)&&(logger[_0x355ed3(0x163)](_0xcb67ff['IWhGx']),await _0xcb67ff[_0x355ed3(0x1b7)](sendInstrumentationEvent,_0x4f433b,_0xcb67ff[_0x355ed3(0x195)],messageTypes[_0x355ed3(0x1af)],_0xcb67ff[_0x355ed3(0x185)],null,_0x4f433b),process['exit'](0x1)),_0xcb67ff['jIabb'](_0x7b109e['statusCode'],0x190)&&(logger[_0x355ed3(0x163)](JSON['parse'](_0x7b109e[_0x355ed3(0x193)])[_0x355ed3(0x189)]),await _0xcb67ff[_0x355ed3(0x1b7)](sendInstrumentationEvent,_0x4f433b,_0xcb67ff['eqwuG'],messageTypes[_0x355ed3(0x1af)],_0xcb67ff[_0x355ed3(0x1a1)],null,_0x4f433b),process[_0x355ed3(0x18e)](0x1)),logger[_0x355ed3(0x163)](_0x355ed3(0x18b)+JSON[_0x355ed3(0x197)](_0x7b109e)),await _0xcb67ff[_0x355ed3(0x1a3)](sendInstrumentationEvent,_0x4f433b,_0xcb67ff[_0x355ed3(0x195)],messageTypes[_0x355ed3(0x1af)],_0xcb67ff[_0x355ed3(0x168)],_0x7b109e,_0x4f433b),process[_0x355ed3(0x18e)](0x1);}catch(_0x43ec67){const _0x31b289=_0x355ed3(0x1a7)+_0x43ec67+'\x20\x0a'+JSON[_0x355ed3(0x197)](_0x43ec67[_0x355ed3(0x1b1)])+'\x20';logger['error'](_0x31b289),process[_0x355ed3(0x18e)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x28e061=a22_0x180e;(function(_0x2c670a,_0x5377c3){const _0x589b10=a22_0x180e,_0x2a9cb4=_0x2c670a();while(!![]){try{const _0x5eb730=parseInt(_0x589b10(0xfb))/0x1+-parseInt(_0x589b10(0x101))/0x2*(parseInt(_0x589b10(0xff))/0x3)+parseInt(_0x589b10(0x138))/0x4+-parseInt(_0x589b10(0x106))/0x5+parseInt(_0x589b10(0xee))/0x6+-parseInt(_0x589b10(0x10d))/0x7+parseInt(_0x589b10(0xea))/0x8;if(_0x5eb730===_0x5377c3)break;else _0x2a9cb4['push'](_0x2a9cb4['shift']());}catch(_0x3fb21d){_0x2a9cb4['push'](_0x2a9cb4['shift']());}}}(a22_0x281f,0x69f52),require('dotenv')[a22_0x28e061(0x11c)]());let gridURL=a22_0x28e061(0xf1),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x28e061(0x108);const _env=(process[a22_0x28e061(0xe4)][a22_0x28e061(0x12e)]||a22_0x28e061(0x103))[a22_0x28e061(0x136)]();if(_env==='staging'||_env===a22_0x28e061(0x112))gridURL=a22_0x28e061(0x104),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x28e061(0xf8)||_env===a22_0x28e061(0x121))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x28e061(0x123),agApiUrl=a22_0x28e061(0x134));exports[a22_0x28e061(0xe6)]=process[a22_0x28e061(0xe4)][a22_0x28e061(0xe6)]||gridURL,exports['BS_API_URL']=process[a22_0x28e061(0xe4)]['BS_API_URL']||bsApiUrl,exports['AG_API_URL']=process[a22_0x28e061(0xe4)][a22_0x28e061(0x12a)]||agApiUrl,exports['WS_ENDPOINT']='wss://'+this[a22_0x28e061(0x12a)]+a22_0x28e061(0x120),exports[a22_0x28e061(0xe3)]=a22_0x28e061(0x124),exports[a22_0x28e061(0x118)]=a22_0x28e061(0x107),exports['DEFAULT_GRID_NAME']=a22_0x28e061(0xdf),exports[a22_0x28e061(0x131)]=a22_0x28e061(0xfa),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x28e061(0x10a)]=a22_0x28e061(0x115),exports[a22_0x28e061(0xe1)]=a22_0x28e061(0x12d),exports[a22_0x28e061(0x114)]=a22_0x28e061(0xe8),exports[a22_0x28e061(0x119)]=a22_0x28e061(0xed),exports[a22_0x28e061(0xfd)]=a22_0x28e061(0xe2),exports[a22_0x28e061(0xf5)]=[this[a22_0x28e061(0x131)],this[a22_0x28e061(0x119)],this[a22_0x28e061(0xfd)]];const a22_0x565c54={};a22_0x565c54[a22_0x28e061(0xf2)]=a22_0x28e061(0x12f),a22_0x565c54[a22_0x28e061(0x137)]='BrowserStack';const a22_0x99594={};a22_0x99594[a22_0x28e061(0xf2)]=a22_0x28e061(0xf3),a22_0x99594['Value']='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x565c54,a22_0x99594];if(process[a22_0x28e061(0xe4)][a22_0x28e061(0xe5)]){const parsedTags=process[a22_0x28e061(0xe4)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x28e061(0x126)](',');parsedTags[a22_0x28e061(0x11f)](_0x46494e=>{const _0x1e857e=a22_0x28e061,_0x10ea72=_0x46494e['split'](':'),_0x356bb8={};_0x356bb8['Key']=_0x10ea72[0x0],_0x356bb8[_0x1e857e(0x137)]=_0x10ea72[0x1],common_hst_tags_list['push'](_0x356bb8);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x1aced2={};function a22_0x180e(_0x4cb9ef,_0x556845){const _0x281fbc=a22_0x281f();return a22_0x180e=function(_0x180e6b,_0x56cc65){_0x180e6b=_0x180e6b-0xd8;let _0xfeddfb=_0x281fbc[_0x180e6b];return _0xfeddfb;},a22_0x180e(_0x4cb9ef,_0x556845);}a22_0x1aced2[a22_0x28e061(0x12f)]=a22_0x28e061(0xde),a22_0x1aced2[a22_0x28e061(0xf3)]=a22_0x28e061(0xdb),exports[a22_0x28e061(0x10f)]=a22_0x1aced2,exports[a22_0x28e061(0x10b)]=[this[a22_0x28e061(0x131)]];const a22_0x381988={};a22_0x381988['LOG']=a22_0x28e061(0x11b),a22_0x381988['RESOURCES']=a22_0x28e061(0x105),a22_0x381988['GRID_URL']=a22_0x28e061(0x116),a22_0x381988['CLI_RUN_STARTED']=a22_0x28e061(0x135),a22_0x381988[a22_0x28e061(0x11e)]=a22_0x28e061(0x109),exports[a22_0x28e061(0x10e)]=a22_0x381988,exports[a22_0x28e061(0xe0)]={},exports[a22_0x28e061(0x100)]=a22_0x28e061(0x128);const a22_0x390ebf={};a22_0x390ebf[a22_0x28e061(0xfc)]=a22_0x28e061(0x132)+this['LINK_MESSAGE'],a22_0x390ebf[a22_0x28e061(0x110)]=a22_0x28e061(0x133)+this[a22_0x28e061(0x100)],a22_0x390ebf['configure']=a22_0x28e061(0x111)+this[a22_0x28e061(0x100)],a22_0x390ebf[a22_0x28e061(0x102)]=a22_0x28e061(0xd8)+this[a22_0x28e061(0x100)],a22_0x390ebf[a22_0x28e061(0x139)]={},a22_0x390ebf[a22_0x28e061(0xfe)]=a22_0x28e061(0xe9)+this[a22_0x28e061(0x100)],a22_0x390ebf[a22_0x28e061(0xef)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a22_0x390ebf['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x28e061(0x100)],a22_0x390ebf[a22_0x28e061(0x129)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a22_0x28e061(0x100)],a22_0x390ebf[a22_0x28e061(0xf7)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x390ebf[a22_0x28e061(0x139)][a22_0x28e061(0xfc)]=a22_0x28e061(0x125)+this[a22_0x28e061(0x100)],a22_0x390ebf[a22_0x28e061(0x139)][a22_0x28e061(0xf0)]=a22_0x28e061(0x10c)+this[a22_0x28e061(0x100)],a22_0x390ebf[a22_0x28e061(0x139)][a22_0x28e061(0x117)]=a22_0x28e061(0xeb)+this[a22_0x28e061(0x100)],exports[a22_0x28e061(0xf9)]=a22_0x390ebf,exports[a22_0x28e061(0xf4)]=a22_0x28e061(0xdc);function a22_0x281f(){const _0x999aa9=['\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','4271640vQIFBb','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','REDACTED','azure','1514568bFyJGN','connect','grid','grid.browserstack.com','Key','browserstack:service','HELP_FOOTER_MESSAGE','ALL_SUPPORTED_CLOUD_PROVIDERS','SUCCESS','pre_check','preprod','HELP_HEADER_MESSAGE','aws','619751kuvKPX','root','GCP','delete','18RCEkQH','LINK_MESSAGE','146358VkVjTf','create','prod','grid-devhst.bsstag.com','resourceInfo','2665505YMasjr','BrowserStackIAMUser','grid-api.browserstack.com','cliRunFinished','CLUSTER_AUTOSCALER_STACK_NAME','SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','234584lUmovb','WS_EVENTS','HST_CLUSTER_TAGS','init','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','stag','high-scale-grid-cluster','TURBOSCALE_DEPLOYMENT','BSTACK-ATS-CLUSTER-AUTOSCALER','gridUrl','gridProfile','IAM_USER_NAME','AZURE','UNKNOWN','log','config','MessageDescription','CLI_RUN_FINISHED','forEach','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','pre-prod','CLUSTER','api-preprod.bsstag.com','credentials','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','split','success','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','stop','AG_API_URL','pre-check','us-east-1','BSTACK-ATS-CLUSTER-HUB-HA','BROWSERSTACK_ENV','browserstack:managedBy','CLOUD_PROVIDER','AWS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-api-preprod.bsstag.com','cliRunStarted','toLowerCase','Value','134220njHxqZ','list','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','unknown','info','BrowserStack-Automate-TurboScale','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','ERROR','BrowserStack','high-scale-grid','global_registry','CLUSTER_HUB_HA_STACK_NAME','gcp','CP_CONFIG_FILE','env','TURBOSCALE_CUSTOM_TAGS','DASHBOARD_ENDPOINT','WARNING','browserstack-turboscale-grid'];a22_0x281f=function(){return _0x999aa9;};return a22_0x281f();}const a22_0xaf6ecf={};a22_0xaf6ecf[a22_0x28e061(0xf6)]=a22_0x28e061(0x127),a22_0xaf6ecf[a22_0x28e061(0xdd)]='error',a22_0xaf6ecf['INFO']=a22_0x28e061(0xda),a22_0xaf6ecf[a22_0x28e061(0xe7)]='warning',a22_0xaf6ecf[a22_0x28e061(0x11a)]=a22_0x28e061(0xd9),a22_0xaf6ecf['NULL']=null,exports['messageTypes']=a22_0xaf6ecf,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x28e061(0xec)]='[REDACTED]';const a22_0x4a8d5c={};a22_0x4a8d5c['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x2a5697={};a22_0x2a5697[a22_0x28e061(0x12b)]=a22_0x4a8d5c,exports[a22_0x28e061(0x11d)]=a22_0x2a5697,exports['TRIAL_GRID_URL']='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0x4fccc4={};a22_0x4fccc4[a22_0x28e061(0x122)]=a22_0x28e061(0x113),a22_0x4fccc4[a22_0x28e061(0x130)]='aws',a22_0x4fccc4['REGION']=a22_0x28e061(0x12c),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x4fccc4;
1
+ const a22_0x15c582=a22_0x1481;(function(_0x4275b6,_0x181be8){const _0x1bb223=a22_0x1481,_0xe1bdb5=_0x4275b6();while(!![]){try{const _0x23ebd5=parseInt(_0x1bb223(0x126))/0x1*(-parseInt(_0x1bb223(0x119))/0x2)+-parseInt(_0x1bb223(0x132))/0x3*(-parseInt(_0x1bb223(0xf2))/0x4)+-parseInt(_0x1bb223(0x110))/0x5*(parseInt(_0x1bb223(0xdc))/0x6)+parseInt(_0x1bb223(0x116))/0x7+-parseInt(_0x1bb223(0x121))/0x8+parseInt(_0x1bb223(0x106))/0x9*(parseInt(_0x1bb223(0x100))/0xa)+parseInt(_0x1bb223(0x104))/0xb;if(_0x23ebd5===_0x181be8)break;else _0xe1bdb5['push'](_0xe1bdb5['shift']());}catch(_0xeea270){_0xe1bdb5['push'](_0xe1bdb5['shift']());}}}(a22_0x2f9b,0x7d8b6),require('dotenv')[a22_0x15c582(0xf4)]());let gridURL=a22_0x15c582(0x117),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x15c582(0x105);const _env=(process['env'][a22_0x15c582(0xfe)]||a22_0x15c582(0xfa))[a22_0x15c582(0x107)]();if(_env===a22_0x15c582(0x128)||_env===a22_0x15c582(0xce))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x15c582(0xe2),agApiUrl=a22_0x15c582(0xef);else(_env===a22_0x15c582(0x10f)||_env===a22_0x15c582(0xd6))&&(gridURL=a22_0x15c582(0x111),bsApiUrl=a22_0x15c582(0xca),agApiUrl=a22_0x15c582(0xd9));exports[a22_0x15c582(0x108)]=process['env'][a22_0x15c582(0x108)]||gridURL,exports[a22_0x15c582(0xe8)]=process[a22_0x15c582(0xed)][a22_0x15c582(0xe8)]||bsApiUrl,exports[a22_0x15c582(0xf3)]=process[a22_0x15c582(0xed)][a22_0x15c582(0xf3)]||agApiUrl,exports[a22_0x15c582(0xd7)]='wss://'+this[a22_0x15c582(0xf3)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x15c582(0x11c)]=a22_0x15c582(0x130),exports['IAM_USER_NAME']=a22_0x15c582(0x10b),exports[a22_0x15c582(0xd5)]=a22_0x15c582(0xfc),exports[a22_0x15c582(0x11b)]='aws',exports[a22_0x15c582(0xfd)]=a22_0x15c582(0xdd),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x15c582(0xea),exports[a22_0x15c582(0x124)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x15c582(0xe1)]=a22_0x15c582(0x12b),exports['AZURE']=a22_0x15c582(0xf8),exports[a22_0x15c582(0xd0)]=a22_0x15c582(0x112),exports[a22_0x15c582(0x11a)]=[this['AWS'],this[a22_0x15c582(0xe9)],this[a22_0x15c582(0xd0)]];function a22_0x1481(_0x2203d5,_0x3f9a89){const _0x2f9bb3=a22_0x2f9b();return a22_0x1481=function(_0x14810c,_0x53f1c3){_0x14810c=_0x14810c-0xc9;let _0x5e8f5c=_0x2f9bb3[_0x14810c];return _0x5e8f5c;},a22_0x1481(_0x2203d5,_0x3f9a89);}const a22_0x90a3ce={};a22_0x90a3ce[a22_0x15c582(0x101)]=a22_0x15c582(0xc9),a22_0x90a3ce['Value']=a22_0x15c582(0xde);const a22_0x1b66ab={};a22_0x1b66ab[a22_0x15c582(0x101)]=a22_0x15c582(0x11d),a22_0x1b66ab[a22_0x15c582(0x125)]=a22_0x15c582(0xda);const common_hst_tags_list=[a22_0x90a3ce,a22_0x1b66ab];if(process['env'][a22_0x15c582(0xe6)]){const parsedTags=process['env'][a22_0x15c582(0xe6)][a22_0x15c582(0xf1)](',');parsedTags[a22_0x15c582(0xcb)](_0x3a20bf=>{const _0xe6e655=a22_0x15c582,_0xd4efc3=_0x3a20bf[_0xe6e655(0xf1)](':'),_0x31a642={};_0x31a642[_0xe6e655(0x101)]=_0xd4efc3[0x0],_0x31a642[_0xe6e655(0x125)]=_0xd4efc3[0x1],common_hst_tags_list['push'](_0x31a642);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x3354d3={};a22_0x3354d3[a22_0x15c582(0xc9)]=a22_0x15c582(0xde),a22_0x3354d3[a22_0x15c582(0x11d)]='BrowserStack-Automate-TurboScale',exports[a22_0x15c582(0x123)]=a22_0x3354d3,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x15c582(0x11b)]];const a22_0x203427={};a22_0x203427[a22_0x15c582(0x10e)]=a22_0x15c582(0xeb),a22_0x203427['RESOURCES']=a22_0x15c582(0x118),a22_0x203427[a22_0x15c582(0x122)]=a22_0x15c582(0xd2),a22_0x203427[a22_0x15c582(0x12c)]='cliRunStarted',a22_0x203427[a22_0x15c582(0xee)]='cliRunFinished',exports[a22_0x15c582(0x12f)]=a22_0x203427,exports['global_registry']={},exports[a22_0x15c582(0xdf)]=a22_0x15c582(0x134);const a22_0x58702b={};a22_0x58702b[a22_0x15c582(0xcd)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x15c582(0xdf)],a22_0x58702b['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a22_0x58702b[a22_0x15c582(0x10a)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a22_0x15c582(0xdf)],a22_0x58702b[a22_0x15c582(0xe5)]=a22_0x15c582(0x10d)+this[a22_0x15c582(0xdf)],a22_0x58702b[a22_0x15c582(0xd1)]={},a22_0x58702b[a22_0x15c582(0xf6)]=a22_0x15c582(0xfb)+this[a22_0x15c582(0xdf)],a22_0x58702b[a22_0x15c582(0x102)]=a22_0x15c582(0x12e)+this[a22_0x15c582(0xdf)],a22_0x58702b[a22_0x15c582(0x11e)]=a22_0x15c582(0xcf)+this[a22_0x15c582(0xdf)],a22_0x58702b[a22_0x15c582(0x131)]=a22_0x15c582(0x115)+this[a22_0x15c582(0xdf)],a22_0x58702b[a22_0x15c582(0x133)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x58702b[a22_0x15c582(0xd1)][a22_0x15c582(0xcd)]=a22_0x15c582(0xd4)+this[a22_0x15c582(0xdf)],a22_0x58702b[a22_0x15c582(0xd1)][a22_0x15c582(0xf5)]=a22_0x15c582(0x127)+this['LINK_MESSAGE'],a22_0x58702b[a22_0x15c582(0xd1)][a22_0x15c582(0xe7)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x15c582(0xdf)],exports[a22_0x15c582(0x129)]=a22_0x58702b,exports[a22_0x15c582(0x11f)]=a22_0x15c582(0x103);const a22_0x13981c={};a22_0x13981c['SUCCESS']=a22_0x15c582(0x113),a22_0x13981c[a22_0x15c582(0xe0)]=a22_0x15c582(0x109),a22_0x13981c['INFO']='info',a22_0x13981c[a22_0x15c582(0xff)]=a22_0x15c582(0xe3),a22_0x13981c[a22_0x15c582(0x114)]=a22_0x15c582(0xcc),a22_0x13981c['NULL']=null,exports[a22_0x15c582(0x120)]=a22_0x13981c,exports[a22_0x15c582(0x10c)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x15c582(0xe4)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x15c582(0x12a)]=a22_0x15c582(0xf7);const a22_0x4095cb={};a22_0x4095cb['grid-profile']=a22_0x15c582(0xf9);const a22_0x2cce41={};a22_0x2cce41[a22_0x15c582(0xec)]=a22_0x4095cb,exports['MessageDescription']=a22_0x2cce41,exports[a22_0x15c582(0xd3)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';const a22_0xc0d8f2={};function a22_0x2f9b(){const _0x4016ca=['BSTACK-ATS-CLUSTER-AUTOSCALER','log','pre-check','env','CLI_RUN_FINISHED','grid-api-devhst.bsstag.com','CLOUD_PROVIDER','split','329204JdFBqt','AG_API_URL','config','grid','delete','[REDACTED]','azure','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','prod','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','high-scale-grid','CLUSTER_DEP_STACK_NAME','BROWSERSTACK_ENV','WARNING','90xIOllI','Key','connect','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','7150759tJcTIm','grid-api.browserstack.com','821088JRRTeW','toLowerCase','DASHBOARD_ENDPOINT','error','configure','BrowserStackIAMUser','CLI_ARGS_REGEX','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','LOG','preprod','30tHMumD','grid-preprod.bsstag.com','gcp','success','UNKNOWN','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','341019VYFQCk','grid.browserstack.com','resourceInfo','959702MJouAF','ALL_SUPPORTED_CLOUD_PROVIDERS','AWS','CP_CONFIG_FILE','browserstack:service','start','HELP_FOOTER_MESSAGE','messageTypes','1707064mXbKTT','GRID_URL','HST_CLUSTER_TAGS','CLUSTER_HUB_HA_STACK_NAME','Value','1iHawxg','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','staging','HELP_HEADER_MESSAGE','REDACTED','browserstack-turboscale-grid','CLI_RUN_STARTED','aws','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','WS_EVENTS','credentials','stop','24OWVmBX','pre_check','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','browserstack:managedBy','api-preprod.bsstag.com','forEach','unknown','root','stag','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','GCP','list','gridUrl','TRIAL_GRID_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','DEFAULT_GRID_NAME','pre-prod','WS_ENDPOINT','CLUSTER','grid-api-preprod.bsstag.com','BrowserStack-Automate-TurboScale','REGION','970818tUATHU','BSTACK-ATS-CLUSTER','BrowserStack','LINK_MESSAGE','ERROR','TURBOSCALE_DEPLOYMENT','api-devhst.bsstag.com','warning','RAW_ARGS_REGEX','create','TURBOSCALE_CUSTOM_TAGS','gridProfile','BS_API_URL','AZURE'];a22_0x2f9b=function(){return _0x4016ca;};return a22_0x2f9b();}a22_0xc0d8f2[a22_0x15c582(0xd8)]='high-scale-grid-cluster',a22_0xc0d8f2[a22_0x15c582(0xf0)]=a22_0x15c582(0x12d),a22_0xc0d8f2[a22_0x15c582(0xdb)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0xc0d8f2;
@@ -1 +1 @@
1
- const a23_0x87b583=a23_0x1183;(function(_0x4c0149,_0x48620d){const _0x473c98=a23_0x1183,_0x50969a=_0x4c0149();while(!![]){try{const _0x454460=-parseInt(_0x473c98(0xdf))/0x1*(-parseInt(_0x473c98(0xec))/0x2)+parseInt(_0x473c98(0xe3))/0x3+parseInt(_0x473c98(0xf3))/0x4*(-parseInt(_0x473c98(0xf4))/0x5)+-parseInt(_0x473c98(0xde))/0x6+parseInt(_0x473c98(0xdd))/0x7+-parseInt(_0x473c98(0xe1))/0x8*(-parseInt(_0x473c98(0xe6))/0x9)+-parseInt(_0x473c98(0xf0))/0xa;if(_0x454460===_0x48620d)break;else _0x50969a['push'](_0x50969a['shift']());}catch(_0x4f1f17){_0x50969a['push'](_0x50969a['shift']());}}}(a23_0x4713,0x54e42));function a23_0x4713(){const _0x1aee66=['3520maLYdz','debug','1316721iqgQMx','transports','join','9450qKRXmJ','log','level','YYYY-MM-DD\x20HH:mm:ss','existsSync','createLogger','2LueXDn','logger','name','colorize','1009920tOIsEe','timestamp','console.info','186856YwBRSN','45UZMPGx','fileLogger','File','printf','format','Console','usage.log','events.log','combine','mkdirSync','1571871qnNzdV','1723080UACTzJ','30852AzsfIe','path'];a23_0x4713=function(){return _0x1aee66;};return a23_0x4713();}const winston=require('winston'),fs=require('fs'),path=require(a23_0x87b583(0xe0)),logDir=a23_0x87b583(0xe7);!fs[a23_0x87b583(0xea)](logDir)&&fs[a23_0x87b583(0xdc)](logDir);const a23_0x439037={};a23_0x439037['format']=a23_0x87b583(0xe9);const a23_0x43f510={};a23_0x43f510[a23_0x87b583(0xe8)]=!![];function a23_0x1183(_0x5bf269,_0x365fdc){const _0x4713ae=a23_0x4713();return a23_0x1183=function(_0x11831b,_0x1bc023){_0x11831b=_0x11831b-0xd4;let _0x3120d9=_0x4713ae[_0x11831b];return _0x3120d9;},a23_0x1183(_0x5bf269,_0x365fdc);}const a23_0x252a9a={};a23_0x252a9a[a23_0x87b583(0xee)]=a23_0x87b583(0xf2),exports[a23_0x87b583(0xed)]=new winston[(a23_0x87b583(0xeb))]({'format':winston[a23_0x87b583(0xd7)][a23_0x87b583(0xdb)](winston['format'][a23_0x87b583(0xf1)](a23_0x439037),winston['format'][a23_0x87b583(0xef)](a23_0x43f510),winston[a23_0x87b583(0xd7)][a23_0x87b583(0xd6)](_0x3b5324=>_0x3b5324[a23_0x87b583(0xf1)]+'\x20-\x20'+_0x3b5324[a23_0x87b583(0xe8)]+':\x20'+_0x3b5324['message'])),'transports':[new winston['transports'][(a23_0x87b583(0xd8))](a23_0x252a9a),new winston['transports'][(a23_0x87b583(0xd5))]({'filename':path[a23_0x87b583(0xe5)](logDir,a23_0x87b583(0xda)),'level':a23_0x87b583(0xe2)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x87b583(0xe4))][(a23_0x87b583(0xd5))]({'filename':path['join'](logDir,a23_0x87b583(0xd9)),'level':a23_0x87b583(0xe2)})]};exports[a23_0x87b583(0xd4)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x7168a9=a23_0x5c98;(function(_0x40bb85,_0x175c61){const _0x2f2b42=a23_0x5c98,_0x20e01f=_0x40bb85();while(!![]){try{const _0x39626b=-parseInt(_0x2f2b42(0x1d5))/0x1+parseInt(_0x2f2b42(0x1be))/0x2*(parseInt(_0x2f2b42(0x1ca))/0x3)+parseInt(_0x2f2b42(0x1c0))/0x4*(-parseInt(_0x2f2b42(0x1cd))/0x5)+-parseInt(_0x2f2b42(0x1c9))/0x6+parseInt(_0x2f2b42(0x1d3))/0x7+parseInt(_0x2f2b42(0x1c2))/0x8+-parseInt(_0x2f2b42(0x1bd))/0x9*(-parseInt(_0x2f2b42(0x1d6))/0xa);if(_0x39626b===_0x175c61)break;else _0x20e01f['push'](_0x20e01f['shift']());}catch(_0x819d10){_0x20e01f['push'](_0x20e01f['shift']());}}}(a23_0x156f,0x62cd8));const winston=require(a23_0x7168a9(0x1c6)),fs=require('fs'),path=require(a23_0x7168a9(0x1bb)),logDir=a23_0x7168a9(0x1b9);!fs[a23_0x7168a9(0x1c3)](logDir)&&fs['mkdirSync'](logDir);const a23_0x280308={};a23_0x280308[a23_0x7168a9(0x1cf)]=a23_0x7168a9(0x1d2);const a23_0x4eccb9={};a23_0x4eccb9[a23_0x7168a9(0x1c1)]=!![];const a23_0x1f16c5={};a23_0x1f16c5['name']='console.info',exports[a23_0x7168a9(0x1bf)]=new winston[(a23_0x7168a9(0x1b7))]({'format':winston[a23_0x7168a9(0x1cf)][a23_0x7168a9(0x1bc)](winston[a23_0x7168a9(0x1cf)][a23_0x7168a9(0x1cc)](a23_0x280308),winston[a23_0x7168a9(0x1cf)]['colorize'](a23_0x4eccb9),winston['format'][a23_0x7168a9(0x1ba)](_0x3f8b1d=>_0x3f8b1d[a23_0x7168a9(0x1cc)]+a23_0x7168a9(0x1c7)+_0x3f8b1d[a23_0x7168a9(0x1c1)]+':\x20'+_0x3f8b1d[a23_0x7168a9(0x1d4)])),'transports':[new winston['transports'][(a23_0x7168a9(0x1c4))](a23_0x1f16c5),new winston['transports'][(a23_0x7168a9(0x1c8))]({'filename':path[a23_0x7168a9(0x1cb)](logDir,a23_0x7168a9(0x1c5)),'level':a23_0x7168a9(0x1d0)})]});function a23_0x156f(){const _0x2985b0=['fileLogger','YYYY-MM-DD\x20HH:mm:ss','5603577alSNTl','message','736225JJCDLU','10500530MZDMqW','createLogger','usage.log','log','printf','path','combine','9eBbMBv','2732VlApJH','logger','4008bLQWTS','level','6378864aooMNR','existsSync','Console','events.log','winston','\x20-\x20','File','4402878JNBuLt','69qccPtW','join','timestamp','4015spbPmO','transports','format','debug'];a23_0x156f=function(){return _0x2985b0;};return a23_0x156f();}const winstonFileLoggerParams={'transports':[new winston[(a23_0x7168a9(0x1ce))][(a23_0x7168a9(0x1c8))]({'filename':path[a23_0x7168a9(0x1cb)](logDir,a23_0x7168a9(0x1b8)),'level':a23_0x7168a9(0x1d0)})]};function a23_0x5c98(_0x779e71,_0x4889aa){const _0x156fc4=a23_0x156f();return a23_0x5c98=function(_0x5c98ae,_0x512ad2){_0x5c98ae=_0x5c98ae-0x1b7;let _0x1004bc=_0x156fc4[_0x5c98ae];return _0x1004bc;},a23_0x5c98(_0x779e71,_0x4889aa);}exports[a23_0x7168a9(0x1d1)]=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_0x192130=a24_0x39c2;(function(_0x5ee953,_0x2e25d6){const _0x53bda9=a24_0x39c2,_0x4bb868=_0x5ee953();while(!![]){try{const _0x3ff3a7=-parseInt(_0x53bda9(0x174))/0x1+-parseInt(_0x53bda9(0x169))/0x2*(-parseInt(_0x53bda9(0x164))/0x3)+-parseInt(_0x53bda9(0x168))/0x4+-parseInt(_0x53bda9(0x16b))/0x5+-parseInt(_0x53bda9(0x175))/0x6+-parseInt(_0x53bda9(0x163))/0x7+parseInt(_0x53bda9(0x166))/0x8*(parseInt(_0x53bda9(0x172))/0x9);if(_0x3ff3a7===_0x2e25d6)break;else _0x4bb868['push'](_0x4bb868['shift']());}catch(_0x28bf81){_0x4bb868['push'](_0x4bb868['shift']());}}}(a24_0x1594,0xe6412));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x192130(0x173));function a24_0x39c2(_0xc135da,_0x543b9e){const _0x1594ee=a24_0x1594();return a24_0x39c2=function(_0x39c282,_0xa8bbdd){_0x39c282=_0x39c282-0x163;let _0x357c2b=_0x1594ee[_0x39c282];return _0x357c2b;},a24_0x39c2(_0xc135da,_0x543b9e);}process['env'][a24_0x192130(0x16c)]=0x1;function a24_0x1594(){const _0x3dd56e=['3813096qtIPau','2572AFePUb','epilogue','2640630tWOrOJ','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','demandCommand','oRiQq','root','commandDir','exports','7018173yIoQLH','./config/constants','93314GPqSOu','2473350MumcZF','commands','2422133tyFyNj','366pDAmaw','help','32LrBQYS','usage'];a24_0x1594=function(){return _0x3dd56e;};return a24_0x1594();}function run(_0x34c94b){const _0x4a7e1e=a24_0x192130,_0x32b9ea={};_0x32b9ea['vuJub']=_0x4a7e1e(0x176),_0x32b9ea[_0x4a7e1e(0x16e)]=_0x4a7e1e(0x165);const _0x558dbd=_0x32b9ea;_0x34c94b[_0x4a7e1e(0x167)](HELP_HEADER_MESSAGE[_0x4a7e1e(0x16f)])[_0x4a7e1e(0x170)](_0x558dbd['vuJub'])[_0x4a7e1e(0x16d)]()[_0x4a7e1e(0x165)](_0x558dbd[_0x4a7e1e(0x16e)])[_0x4a7e1e(0x16a)](HELP_FOOTER_MESSAGE);}module[a24_0x192130(0x171)]=run;
2
+ 'use strict';const a24_0x5ab517=a24_0x7e44;(function(_0x4f1027,_0x1e6a05){const _0xc11501=a24_0x7e44,_0x38c6fe=_0x4f1027();while(!![]){try{const _0x34d157=-parseInt(_0xc11501(0x1b5))/0x1+-parseInt(_0xc11501(0x1bd))/0x2+parseInt(_0xc11501(0x1ba))/0x3*(parseInt(_0xc11501(0x1bf))/0x4)+-parseInt(_0xc11501(0x1c1))/0x5*(parseInt(_0xc11501(0x1c4))/0x6)+-parseInt(_0xc11501(0x1be))/0x7+parseInt(_0xc11501(0x1b9))/0x8+parseInt(_0xc11501(0x1bc))/0x9;if(_0x34d157===_0x1e6a05)break;else _0x38c6fe['push'](_0x38c6fe['shift']());}catch(_0xcd38c5){_0x38c6fe['push'](_0x38c6fe['shift']());}}}(a24_0xcddc,0x7ee6a));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x7e44(_0x37b54d,_0x5f5063){const _0xcddcf5=a24_0xcddc();return a24_0x7e44=function(_0x7e444e,_0x1b153a){_0x7e444e=_0x7e444e-0x1b5;let _0xf5bfd8=_0xcddcf5[_0x7e444e];return _0xf5bfd8;},a24_0x7e44(_0x37b54d,_0x5f5063);}process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x20b48a){const _0x458e0e=a24_0x7e44,_0x1cbd81={};_0x1cbd81[_0x458e0e(0x1b6)]=_0x458e0e(0x1c2),_0x1cbd81['tPYdW']=_0x458e0e(0x1bb);const _0x5e218d=_0x1cbd81;_0x20b48a[_0x458e0e(0x1c3)](HELP_HEADER_MESSAGE[_0x458e0e(0x1b7)])['commandDir'](_0x5e218d[_0x458e0e(0x1b6)])['demandCommand']()[_0x458e0e(0x1bb)](_0x5e218d[_0x458e0e(0x1c0)])['epilogue'](HELP_FOOTER_MESSAGE);}function a24_0xcddc(){const _0x541288=['15KHNWNN','commands','usage','1968006GBWRbb','480065AuRDGy','RNAZG','root','exports','8146464iFGQWJ','2081019UmSCVo','help','16708500WxeLYz','1335876aQVbZY','6416823ooGuVt','4ghiIEd','tPYdW'];a24_0xcddc=function(){return _0x541288;};return a24_0xcddc();}module[a24_0x5ab517(0x1b8)]=run;