browserstack-node-sdk 1.40.4 → 1.40.5

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 (173) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/loadUtils.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/v2/TestInfo.js +1 -1
  98. package/src/bin/v2/browserstackCLI.js +1 -1
  99. package/src/bin/v2/cliUtils.js +1 -1
  100. package/src/bin/v2/customTagManager.js +1 -1
  101. package/src/bin/v2/eventDispatcher.js +1 -1
  102. package/src/bin/v2/framework/automationFramework.js +1 -1
  103. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  104. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  105. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  106. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  107. package/src/bin/v2/framework/testFramework.js +1 -1
  108. package/src/bin/v2/grpcClient.js +1 -1
  109. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  110. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  111. package/src/bin/v2/instances/trackedContext.js +1 -1
  112. package/src/bin/v2/instances/trackedInstance.js +1 -1
  113. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  114. package/src/bin/v2/modules/baseModule.js +1 -1
  115. package/src/bin/v2/modules/observabilityModule.js +1 -1
  116. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  117. package/src/bin/v2/modules/testhubModule.js +1 -1
  118. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  119. package/src/bin/v2/state/hookState.js +1 -1
  120. package/src/bin/v2/state/testFrameworkState.js +1 -1
  121. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  122. package/src/bin/vanilla-js/command.js +1 -1
  123. package/src/browserStackSdk.js +1 -1
  124. package/src/helpers/BrowserStackSetup.js +1 -1
  125. package/src/helpers/accessibility-automation/constants.js +1 -1
  126. package/src/helpers/accessibility-automation/helper.js +1 -1
  127. package/src/helpers/accessibility-automation/scripts.js +1 -1
  128. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  129. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  130. package/src/helpers/ats/constants.js +1 -1
  131. package/src/helpers/ats/helper.js +1 -1
  132. package/src/helpers/capsMapping.js +1 -1
  133. package/src/helpers/central-scanner/constants.js +1 -1
  134. package/src/helpers/central-scanner/helpers.js +1 -1
  135. package/src/helpers/classLogger.js +1 -1
  136. package/src/helpers/globals.js +1 -1
  137. package/src/helpers/helper.js +1 -1
  138. package/src/helpers/logger.js +1 -1
  139. package/src/helpers/metadata.js +1 -1
  140. package/src/helpers/patchHelper.js +1 -1
  141. package/src/helpers/patchHelpers.js +1 -1
  142. package/src/helpers/percy/Percy.js +1 -1
  143. package/src/helpers/percy/PercyBinary.js +1 -1
  144. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  145. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  146. package/src/helpers/percy/PercySDK.js +1 -1
  147. package/src/helpers/percy/index.js +1 -1
  148. package/src/helpers/percy/utils.js +1 -1
  149. package/src/helpers/performance/constants.js +1 -1
  150. package/src/helpers/performance/performance-tester.js +1 -1
  151. package/src/helpers/processHelper.js +1 -1
  152. package/src/helpers/request-spy.js +1 -1
  153. package/src/helpers/setKeepAlive.js +1 -1
  154. package/src/helpers/test-observability/constants.js +1 -1
  155. package/src/helpers/test-observability/error-handler.js +1 -1
  156. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  157. package/src/helpers/test-observability/sessionHandler.js +1 -1
  158. package/src/helpers/test-observability/utils.js +1 -1
  159. package/src/helpers/test-orchestration/constants.js +1 -1
  160. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  161. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  162. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  163. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  164. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  165. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  166. package/src/helpers/testhub/constants.js +1 -1
  167. package/src/helpers/testhub/testhubHandler.js +1 -1
  168. package/src/helpers/testhub/utils.js +1 -1
  169. package/src/helpers/timeoutPromise.js +1 -1
  170. package/src/helpers/utilities.js +1 -1
  171. package/src/helpers/w3cMapping.js +1 -1
  172. package/src/hubAllocationMethods.js +1 -1
  173. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x143d9c=a15_0x5743;(function(_0x24424c,_0x401161){const _0x4c5bd6=a15_0x5743,_0x424287=_0x24424c();while(!![]){try{const _0x1182e6=-parseInt(_0x4c5bd6(0xf7))/0x1+-parseInt(_0x4c5bd6(0xeb))/0x2+-parseInt(_0x4c5bd6(0xd8))/0x3+-parseInt(_0x4c5bd6(0xd4))/0x4+parseInt(_0x4c5bd6(0xb3))/0x5+parseInt(_0x4c5bd6(0xe6))/0x6+parseInt(_0x4c5bd6(0x102))/0x7*(parseInt(_0x4c5bd6(0xfc))/0x8);if(_0x1182e6===_0x401161)break;else _0x424287['push'](_0x424287['shift']());}catch(_0x1ca01f){_0x424287['push'](_0x424287['shift']());}}}(a15_0x44f2,0xdf256));const fs=require('fs'),got=require(a15_0x143d9c(0xef)),{table}=require(a15_0x143d9c(0x104)),{v4:uuidv4}=require(a15_0x143d9c(0xfb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x143d9c(0xda)),{getCredentialsPath,getAuthHeader}=require(a15_0x143d9c(0xc1)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x5743(_0xe8104,_0x27292a){const _0x44f26e=a15_0x44f2();return a15_0x5743=function(_0x574388,_0x2786ed){_0x574388=_0x574388-0xb2;let _0x1d6868=_0x44f26e[_0x574388];return _0x1d6868;},a15_0x5743(_0xe8104,_0x27292a);}function a15_0x44f2(){const _0x516dd7=['2851708yLmEVS','password','log','usage','2368893Eeqtrs','command','../../config/constants','RAVaB','iaKeF','CrlUU','options','queued','nqBzq','/packages/cli/get-grids','builder','HfQYF','username','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','8964762BjMTaZ','statusCode','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','epilogue','GET','3065726ezAwRv','gtyJU','desc','grid','got','all-grids','eSRcy','CGlJB','unknown-error','WKqAh','cluster-name','uiLoV','555599GoIJFh','WnVpl','eruyV','bstackAccesskey','uuid','22688104gjiJTU','readFileSync','Tcnlz','running','stack','grid-id','7xbqErR','push','table','MxKVL','exit','error','unauthorised','874430LzVPzQ','UGkJI','qhqcv','init-not-called','MfXUj','/packages/cli/get-all-grids','description','type','clusterName','Browserstack','bstackUsername','ERROR','https://','parse','../../utils/utilityMethods','gXVBY','help','OnGPm','handler','list','bFJnC','argv','CmbAl','xtgOm','jcFLk','list-grids-called','VrFzv','status','fXlnW','Failed\x20to\x20list\x20resources!\x20Error:\x20','INFO','body','iXPwB'];a15_0x44f2=function(){return _0x516dd7;};return a15_0x44f2();}exports[a15_0x143d9c(0xd9)]='grids',exports[a15_0x143d9c(0xed)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x143d9c(0xe2)]=function(_0x2a6286){const _0x156579=a15_0x143d9c,_0x2dbdfc={};_0x2dbdfc[_0x156579(0xb4)]=_0x156579(0xe8),_0x2dbdfc['iaKeF']='boolean',_0x2dbdfc['eruyV']=_0x156579(0xc3);const _0xa8cf0e=_0x2dbdfc,_0x29c76e={};_0x29c76e[_0x156579(0xb9)]=_0xa8cf0e[_0x156579(0xb4)],_0x29c76e[_0x156579(0xba)]=_0xa8cf0e[_0x156579(0xdc)];const _0x3eb31a={};return _0x3eb31a[_0x156579(0xf0)]=_0x29c76e,_0x2a6286[_0x156579(0xd7)](HELP_HEADER_MESSAGE[_0x156579(0xc6)][_0x156579(0xee)])[_0x156579(0xe9)](HELP_FOOTER_MESSAGE)[_0x156579(0xde)](_0x3eb31a)[_0x156579(0xc3)](_0xa8cf0e[_0x156579(0xf9)])[_0x156579(0xc8)];},exports[a15_0x143d9c(0xc5)]=async function(_0x10d551){const _0x1384d3=a15_0x143d9c,_0x533b09={'eSRcy':function(_0x2dbe95){return _0x2dbe95();},'OnGPm':_0x1384d3(0xe5),'gXVBY':function(_0x21aee5,_0x5d430b,_0x41a4a7,_0x4c580b,_0x35a088,_0x3644f9,_0x5b8f69){return _0x21aee5(_0x5d430b,_0x41a4a7,_0x4c580b,_0x35a088,_0x3644f9,_0x5b8f69);},'fXlnW':_0x1384d3(0xcc),'vfMYV':_0x1384d3(0xb6),'bFJnC':function(_0x23f267){return _0x23f267();},'MfXUj':_0x1384d3(0xea),'Tcnlz':function(_0x1d8189,_0x496cf6,_0x402e11){return _0x1d8189(_0x496cf6,_0x402e11);},'RAVaB':function(_0x36df12,_0x839a5,_0x5a0b5f,_0x21b046,_0x4a0e18,_0x1f0a20,_0x4f6b35){return _0x36df12(_0x839a5,_0x5a0b5f,_0x21b046,_0x4a0e18,_0x1f0a20,_0x4f6b35);},'CmbAl':function(_0xd9fb09,_0x554fed){return _0xd9fb09!==_0x554fed;},'CGlJB':function(_0x2dbe19,_0x2e30e9){return _0x2dbe19===_0x2e30e9;},'MxKVL':'\x0aFound\x20the\x20following\x20grids:\x0a','WnVpl':_0x1384d3(0x101),'jcFLk':'grid-name','uiLoV':'status','xtgOm':'running','HfQYF':_0x1384d3(0xdf),'iXPwB':_0x1384d3(0xf5),'WKqAh':function(_0x498894,_0x23102c){return _0x498894(_0x23102c);},'MmvMl':function(_0x5962ab,_0xec95df){return _0x5962ab===_0xec95df;},'lWCZc':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','VrFzv':function(_0x36bbbf,_0x85e965,_0x1d2ac1,_0x3a59d5,_0x4a8b89,_0x477ec7,_0xce5422){return _0x36bbbf(_0x85e965,_0x1d2ac1,_0x3a59d5,_0x4a8b89,_0x477ec7,_0xce5422);},'nqBzq':_0x1384d3(0xb2),'CrlUU':function(_0x2f20fc,_0x1dd718,_0x5f220c,_0x1c890c,_0x32321e,_0x4b537f,_0x19a9cb){return _0x2f20fc(_0x1dd718,_0x5f220c,_0x1c890c,_0x32321e,_0x4b537f,_0x19a9cb);},'qhqcv':'server-error','gtyJU':_0x1384d3(0xf3)};try{global_registry['requestId']=_0x533b09['eSRcy'](uuidv4);!fs['existsSync'](_0x533b09[_0x1384d3(0xf1)](getCredentialsPath))&&(console[_0x1384d3(0x107)](_0x533b09[_0x1384d3(0xc4)]),await _0x533b09[_0x1384d3(0xc2)](sendInstrumentationEvent,_0x10d551,_0x533b09['fXlnW'],messageTypes[_0x1384d3(0xbe)],_0x533b09['vfMYV'],null,_0x10d551),process[_0x1384d3(0x106)](0x1));const _0x139ac4=JSON['parse'](fs[_0x1384d3(0xfd)](_0x533b09[_0x1384d3(0xc7)](getCredentialsPath)));let _0x21ca05=_0x1384d3(0xbf)+AG_API_URL+_0x1384d3(0xe1);_0x10d551['allGrids']&&(_0x21ca05=_0x1384d3(0xbf)+AG_API_URL+_0x1384d3(0xb8));const _0x374f9d={'method':_0x533b09[_0x1384d3(0xb7)],'headers':_0x533b09[_0x1384d3(0xfe)](getAuthHeader,_0x139ac4[_0x1384d3(0xbc)][_0x1384d3(0xe4)],_0x139ac4[_0x1384d3(0xbc)][_0x1384d3(0xd5)]),'throwHttpErrors':![]};global_registry[_0x1384d3(0xbd)]=_0x139ac4['Browserstack'][_0x1384d3(0xe4)],global_registry[_0x1384d3(0xfa)]=_0x139ac4[_0x1384d3(0xbc)]['password'],_0x533b09[_0x1384d3(0xdb)](sendInstrumentationEvent,_0x10d551,_0x533b09[_0x1384d3(0xcf)],messageTypes[_0x1384d3(0xd1)],null,null,_0x10d551);const _0x5685bf=await _0x533b09[_0x1384d3(0xfe)](got,_0x21ca05,_0x374f9d);if(_0x533b09[_0x1384d3(0xc9)](_0x5685bf,null)&&_0x533b09['CmbAl'](_0x5685bf,undefined)&&_0x533b09[_0x1384d3(0xf2)](_0x5685bf[_0x1384d3(0xe7)],0xc8)){const _0x9b70e=JSON[_0x1384d3(0xc0)](_0x5685bf[_0x1384d3(0xd2)]);console[_0x1384d3(0xd6)](_0x533b09[_0x1384d3(0x105)]);const _0x1d0a36=[];_0x1d0a36[_0x1384d3(0x103)]([_0x533b09[_0x1384d3(0xf8)],_0x533b09[_0x1384d3(0xcb)],_0x533b09[_0x1384d3(0xf6)],_0x533b09[_0x1384d3(0xca)],_0x533b09[_0x1384d3(0xe3)],_0x533b09[_0x1384d3(0xd3)]]),_0x9b70e['forEach'](_0x16ae21=>{const _0x3d4a7f=_0x1384d3;_0x1d0a36[_0x3d4a7f(0x103)]([_0x16ae21['id'],_0x16ae21['name'],_0x16ae21[_0x3d4a7f(0xce)],_0x16ae21[_0x3d4a7f(0xff)],_0x16ae21[_0x3d4a7f(0xdf)],_0x16ae21[_0x3d4a7f(0xbb)]]);}),console['log'](_0x533b09[_0x1384d3(0xf4)](table,_0x1d0a36)),process[_0x1384d3(0x106)](0x0);}_0x533b09['MmvMl'](_0x5685bf[_0x1384d3(0xe7)],0x191)&&(console[_0x1384d3(0x107)](_0x533b09['lWCZc']),await _0x533b09[_0x1384d3(0xcd)](sendInstrumentationEvent,_0x10d551,_0x533b09['fXlnW'],messageTypes[_0x1384d3(0xbe)],_0x533b09[_0x1384d3(0xe0)],null,_0x10d551),process[_0x1384d3(0x106)](0x1)),console[_0x1384d3(0x107)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x5685bf)),await _0x533b09[_0x1384d3(0xdd)](sendInstrumentationEvent,_0x10d551,_0x533b09[_0x1384d3(0xcf)],messageTypes['ERROR'],_0x533b09[_0x1384d3(0xb5)],_0x5685bf,_0x10d551),process[_0x1384d3(0x106)](0x1);}catch(_0x3623ae){console[_0x1384d3(0x107)](_0x1384d3(0xd0)+_0x3623ae[_0x1384d3(0x100)]),await _0x533b09[_0x1384d3(0xdb)](sendInstrumentationEvent,_0x10d551,_0x533b09[_0x1384d3(0xcf)],messageTypes['ERROR'],_0x533b09[_0x1384d3(0xec)],_0x3623ae,_0x10d551),process[_0x1384d3(0x106)](0x1);}};
1
+ function a15_0xf76d(){const _0x1a8a01=['ARmqZ','HtSHo','uuid','Browserstack','QoSnS','AAiaw','parse','stack','ejZfj','argv','stringify','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','grid-name','QGyFu','INFO','\x0aFound\x20the\x20following\x20grids:\x0a','mRmwD','existsSync','queued','JBUMo','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','8636838Cyiwic','638vWjyam','exit','running','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','init-not-called','2504748tmDeUW','grid','321bIgojc','381957jnZaNr','1710szCDkS','requestId','unknown-error','name','ERROR','gYhpK','clusterName','command','28HGJSGA','body','help','statusCode','../../utils/utilityMethods','../../utils/instrumentationUtils','../../config/constants','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','yYXmo','https://','GET','status','grids','qXtIq','uDsiZ','uGOKg','table','XHEjO','lAyxB','bstackAccesskey','bstackUsername','all-grids','error','12kVOQlR','4870NKnYyJ','NGwVz','options','44WkiXDQ','DihSk','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','got','mMFBY','1581495zpAycN','Failed\x20to\x20list\x20resources!\x20Error:\x20','boolean','allGrids','/packages/cli/get-all-grids','username','log','builder','2145064DXyHzv','forEach'];a15_0xf76d=function(){return _0x1a8a01;};return a15_0xf76d();}const a15_0x453538=a15_0x4ab6;function a15_0x4ab6(_0x3fb8e6,_0x38bfb0){const _0xf76de2=a15_0xf76d();return a15_0x4ab6=function(_0x4ab6cc,_0x215e88){_0x4ab6cc=_0x4ab6cc-0x8e;let _0x4c59e5=_0xf76de2[_0x4ab6cc];return _0x4c59e5;},a15_0x4ab6(_0x3fb8e6,_0x38bfb0);}(function(_0x220ff7,_0x4a0a02){const _0x4f640b=a15_0x4ab6,_0x17cc76=_0x220ff7();while(!![]){try{const _0x4862db=parseInt(_0x4f640b(0xde))/0x1+-parseInt(_0x4f640b(0xd6))/0x2*(parseInt(_0x4f640b(0xdd))/0x3)+parseInt(_0x4f640b(0xab))/0x4*(parseInt(_0x4f640b(0xb5))/0x5)+parseInt(_0x4f640b(0xd5))/0x6+parseInt(_0x4f640b(0x94))/0x7*(-parseInt(_0x4f640b(0xbd))/0x8)+parseInt(_0x4f640b(0xdf))/0x9*(-parseInt(_0x4f640b(0xac))/0xa)+parseInt(_0x4f640b(0xaf))/0xb*(-parseInt(_0x4f640b(0xdb))/0xc);if(_0x4862db===_0x4a0a02)break;else _0x17cc76['push'](_0x17cc76['shift']());}catch(_0x2fed56){_0x17cc76['push'](_0x17cc76['shift']());}}}(a15_0xf76d,0xb3bd8));const fs=require('fs'),got=require(a15_0x453538(0xb3)),{table}=require(a15_0x453538(0xa4)),{v4:uuidv4}=require(a15_0x453538(0xc1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x453538(0x9a)),{getCredentialsPath,getAuthHeader}=require(a15_0x453538(0x98)),{sendInstrumentationEvent}=require(a15_0x453538(0x99));exports[a15_0x453538(0x93)]=a15_0x453538(0xa0),exports[a15_0x453538(0xd3)]=a15_0x453538(0xd9),exports[a15_0x453538(0xbc)]=function(_0x3ed450){const _0x275fe2=a15_0x453538,_0x5322e5={};_0x5322e5[_0x275fe2(0xad)]=_0x275fe2(0xca),_0x5322e5['HglxO']=_0x275fe2(0xb7),_0x5322e5[_0x275fe2(0xc3)]=_0x275fe2(0x96);const _0x47f4ad=_0x5322e5,_0x4fe76f={};_0x4fe76f['description']=_0x47f4ad[_0x275fe2(0xad)],_0x4fe76f['type']=_0x47f4ad['HglxO'];const _0x528812={};return _0x528812[_0x275fe2(0xa9)]=_0x4fe76f,_0x3ed450['usage'](HELP_HEADER_MESSAGE['list'][_0x275fe2(0xdc)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x275fe2(0xae)](_0x528812)[_0x275fe2(0x96)](_0x47f4ad[_0x275fe2(0xc3)])[_0x275fe2(0xc8)];},exports['handler']=async function(_0x88d88b){const _0xea9a24=a15_0x453538,_0x16e733={'KqTnZ':function(_0x7b65ef){return _0x7b65ef();},'OcAYa':function(_0x370835){return _0x370835();},'XHEjO':_0xea9a24(0xb2),'uDsiZ':function(_0x2dc7bb,_0x518268,_0x57023a,_0x3e7755,_0x2a088b,_0x2abad7,_0x3d7a94){return _0x2dc7bb(_0x518268,_0x57023a,_0x3e7755,_0x2a088b,_0x2abad7,_0x3d7a94);},'lAyxB':'list-grids-called','HtSHo':_0xea9a24(0xda),'ARmqZ':function(_0x349ef8){return _0x349ef8();},'mMFBY':_0xea9a24(0x9e),'AAiaw':function(_0x36e9e0,_0x30be25,_0x1942d1){return _0x36e9e0(_0x30be25,_0x1942d1);},'ejZfj':function(_0x15235b,_0x17b8c2){return _0x15235b!==_0x17b8c2;},'JBUMo':function(_0x48a624,_0x4962e4){return _0x48a624!==_0x4962e4;},'DihSk':function(_0x1979ed,_0x40afcf){return _0x1979ed===_0x40afcf;},'zZWTy':_0xea9a24(0xce),'ydrFC':'grid-id','xUBTi':_0xea9a24(0xcb),'QGyFu':_0xea9a24(0x9f),'roruP':_0xea9a24(0xd8),'gYhpK':'queued','qXtIq':'cluster-name','yYXmo':function(_0xf8e6dc,_0x1b7cc6){return _0xf8e6dc(_0x1b7cc6);},'pTkLv':_0xea9a24(0xd4),'mmpXk':'unauthorised','FZGgP':function(_0x7ad7a8,_0x398e4b,_0x1e7871,_0x5c1a18,_0x215de8,_0x23973c,_0x14f5fe){return _0x7ad7a8(_0x398e4b,_0x1e7871,_0x5c1a18,_0x215de8,_0x23973c,_0x14f5fe);},'uGOKg':'server-error','mRmwD':function(_0x3ee701,_0x12399b,_0x31b9b8,_0x139896,_0x2072a7,_0x17692f,_0x10db91){return _0x3ee701(_0x12399b,_0x31b9b8,_0x139896,_0x2072a7,_0x17692f,_0x10db91);},'nmgRG':_0xea9a24(0x8e)};try{global_registry[_0xea9a24(0xe0)]=_0x16e733['KqTnZ'](uuidv4);!fs[_0xea9a24(0xd0)](_0x16e733['OcAYa'](getCredentialsPath))&&(console[_0xea9a24(0xaa)](_0x16e733[_0xea9a24(0xa5)]),await _0x16e733['uDsiZ'](sendInstrumentationEvent,_0x88d88b,_0x16e733['lAyxB'],messageTypes[_0xea9a24(0x90)],_0x16e733[_0xea9a24(0xc0)],null,_0x88d88b),process[_0xea9a24(0xd7)](0x1));const _0x2fc472=JSON[_0xea9a24(0xc5)](fs['readFileSync'](_0x16e733[_0xea9a24(0xbf)](getCredentialsPath)));let _0xe4c54e=_0xea9a24(0x9d)+AG_API_URL+'/packages/cli/get-grids';_0x88d88b[_0xea9a24(0xb8)]&&(_0xe4c54e=_0xea9a24(0x9d)+AG_API_URL+_0xea9a24(0xb9));const _0x46df3e={'method':_0x16e733[_0xea9a24(0xb4)],'headers':_0x16e733[_0xea9a24(0xc4)](getAuthHeader,_0x2fc472[_0xea9a24(0xc2)][_0xea9a24(0xba)],_0x2fc472[_0xea9a24(0xc2)][_0xea9a24(0xb1)]),'throwHttpErrors':![]};global_registry[_0xea9a24(0xa8)]=_0x2fc472[_0xea9a24(0xc2)][_0xea9a24(0xba)],global_registry[_0xea9a24(0xa7)]=_0x2fc472[_0xea9a24(0xc2)][_0xea9a24(0xb1)],_0x16e733[_0xea9a24(0xa2)](sendInstrumentationEvent,_0x88d88b,_0x16e733[_0xea9a24(0xa6)],messageTypes[_0xea9a24(0xcd)],null,null,_0x88d88b);const _0x4f7d09=await _0x16e733['AAiaw'](got,_0xe4c54e,_0x46df3e);if(_0x16e733[_0xea9a24(0xc7)](_0x4f7d09,null)&&_0x16e733[_0xea9a24(0xd2)](_0x4f7d09,undefined)&&_0x16e733[_0xea9a24(0xb0)](_0x4f7d09[_0xea9a24(0x97)],0xc8)){const _0x4aa4c1=JSON[_0xea9a24(0xc5)](_0x4f7d09[_0xea9a24(0x95)]);console[_0xea9a24(0xbb)](_0x16e733['zZWTy']);const _0x29cfad=[];_0x29cfad['push']([_0x16e733['ydrFC'],_0x16e733['xUBTi'],_0x16e733[_0xea9a24(0xcc)],_0x16e733['roruP'],_0x16e733[_0xea9a24(0x91)],_0x16e733[_0xea9a24(0xa1)]]),_0x4aa4c1[_0xea9a24(0xbe)](_0x1b85b8=>{const _0x4b90bf=_0xea9a24;_0x29cfad['push']([_0x1b85b8['id'],_0x1b85b8[_0x4b90bf(0x8f)],_0x1b85b8[_0x4b90bf(0x9f)],_0x1b85b8[_0x4b90bf(0xd8)],_0x1b85b8[_0x4b90bf(0xd1)],_0x1b85b8[_0x4b90bf(0x92)]]);}),console[_0xea9a24(0xbb)](_0x16e733[_0xea9a24(0x9c)](table,_0x29cfad)),process['exit'](0x0);}_0x16e733[_0xea9a24(0xb0)](_0x4f7d09[_0xea9a24(0x97)],0x191)&&(console[_0xea9a24(0xaa)](_0x16e733['pTkLv']),await _0x16e733[_0xea9a24(0xa2)](sendInstrumentationEvent,_0x88d88b,_0x16e733[_0xea9a24(0xa6)],messageTypes[_0xea9a24(0x90)],_0x16e733['mmpXk'],null,_0x88d88b),process['exit'](0x1)),console[_0xea9a24(0xaa)](_0xea9a24(0x9b)+JSON[_0xea9a24(0xc9)](_0x4f7d09)),await _0x16e733['FZGgP'](sendInstrumentationEvent,_0x88d88b,_0x16e733[_0xea9a24(0xa6)],messageTypes['ERROR'],_0x16e733[_0xea9a24(0xa3)],_0x4f7d09,_0x88d88b),process[_0xea9a24(0xd7)](0x1);}catch(_0x13096f){console[_0xea9a24(0xaa)](_0xea9a24(0xb6)+_0x13096f[_0xea9a24(0xc6)]),await _0x16e733[_0xea9a24(0xcf)](sendInstrumentationEvent,_0x88d88b,_0x16e733[_0xea9a24(0xa6)],messageTypes['ERROR'],_0x16e733['nmgRG'],_0x13096f,_0x88d88b),process[_0xea9a24(0xd7)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x10094a=a16_0x55a8;function a16_0x55a8(_0x3f4411,_0x30bcda){const _0x4bf824=a16_0x4bf8();return a16_0x55a8=function(_0x55a83c,_0xfb9af9){_0x55a83c=_0x55a83c-0x167;let _0x3956cc=_0x4bf824[_0x55a83c];return _0x3956cc;},a16_0x55a8(_0x3f4411,_0x30bcda);}(function(_0x2d74e7,_0x20da16){const _0x3a207b=a16_0x55a8,_0x24fa76=_0x2d74e7();while(!![]){try{const _0x441a59=-parseInt(_0x3a207b(0x174))/0x1+parseInt(_0x3a207b(0x169))/0x2*(-parseInt(_0x3a207b(0x16e))/0x3)+-parseInt(_0x3a207b(0x16f))/0x4*(parseInt(_0x3a207b(0x17a))/0x5)+parseInt(_0x3a207b(0x16d))/0x6+-parseInt(_0x3a207b(0x171))/0x7*(-parseInt(_0x3a207b(0x17d))/0x8)+-parseInt(_0x3a207b(0x17c))/0x9*(parseInt(_0x3a207b(0x16b))/0xa)+parseInt(_0x3a207b(0x173))/0xb;if(_0x441a59===_0x20da16)break;else _0x24fa76['push'](_0x24fa76['shift']());}catch(_0x5b7d7b){_0x24fa76['push'](_0x24fa76['shift']());}}}(a16_0x4bf8,0xe72a4));function a16_0x4bf8(){const _0x4d223d=['6092556qdNWCw','3EKeveu','712HpDlcH','desc','56bOchmc','recommendCommands','29877518aiHOPp','202857bGgbcy','handler','command','pre-check','SSQDg','strict','50770jgIVyi','commandDir','27VhKNid','682664LQJKYn','../config/constants','ZohFu','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','1424540qhLxFN','help','2482790QTTFqA','builder'];a16_0x4bf8=function(){return _0x4d223d;};return a16_0x4bf8();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x10094a(0x17e));exports[a16_0x10094a(0x176)]=a16_0x10094a(0x177),exports[a16_0x10094a(0x170)]=a16_0x10094a(0x168),exports[a16_0x10094a(0x16c)]=function(_0x5e9406){const _0x34587b=a16_0x10094a,_0x52d613={};_0x52d613[_0x34587b(0x178)]='precheck_commands',_0x52d613[_0x34587b(0x167)]=_0x34587b(0x16a);const _0x50662a=_0x52d613;return _0x5e9406['usage'](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x34587b(0x17b)](_0x50662a['SSQDg'])['demandCommand']()[_0x34587b(0x172)]()[_0x34587b(0x179)]()[_0x34587b(0x16a)](_0x50662a['ZohFu']);},exports[a16_0x10094a(0x175)]=function(_0x1c1676){};
1
+ const a16_0x4bba19=a16_0x3553;(function(_0x17aef4,_0x365d74){const _0x4e6783=a16_0x3553,_0x4e4e0f=_0x17aef4();while(!![]){try{const _0x2bb7b9=parseInt(_0x4e6783(0x1bd))/0x1*(parseInt(_0x4e6783(0x1b2))/0x2)+-parseInt(_0x4e6783(0x1bf))/0x3+-parseInt(_0x4e6783(0x1b8))/0x4+-parseInt(_0x4e6783(0x1ba))/0x5+parseInt(_0x4e6783(0x1b5))/0x6*(parseInt(_0x4e6783(0x1b0))/0x7)+parseInt(_0x4e6783(0x1af))/0x8+-parseInt(_0x4e6783(0x1c3))/0x9*(parseInt(_0x4e6783(0x1b9))/0xa);if(_0x2bb7b9===_0x365d74)break;else _0x4e4e0f['push'](_0x4e4e0f['shift']());}catch(_0x166cbf){_0x4e4e0f['push'](_0x4e4e0f['shift']());}}}(a16_0x5572,0x320f9));function a16_0x5572(){const _0x4dc3cc=['command','commandDir','66556FyrVJj','10BZfgNC','945190hiqrSD','epilogue','desc','8698eoNanQ','builder','437976QtNVRM','help','recommendCommands','wUxZB','1565361EJxhFE','precheck_commands','pre_check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','771632SHvHkC','2723EyAYOd','../config/constants','74HhEkpz','jGqWb','pre-check','4818HlHLQd'];a16_0x5572=function(){return _0x4dc3cc;};return a16_0x5572();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4bba19(0x1b1));function a16_0x3553(_0x545625,_0x77f5a){const _0x557282=a16_0x5572();return a16_0x3553=function(_0x355356,_0xcdc467){_0x355356=_0x355356-0x1af;let _0x4af3f5=_0x557282[_0x355356];return _0x4af3f5;},a16_0x3553(_0x545625,_0x77f5a);}exports[a16_0x4bba19(0x1b6)]=a16_0x4bba19(0x1b4),exports[a16_0x4bba19(0x1bc)]=a16_0x4bba19(0x1c6),exports[a16_0x4bba19(0x1be)]=function(_0x36daf6){const _0x43d903=a16_0x4bba19,_0x50dfff={};_0x50dfff['jGqWb']=_0x43d903(0x1c4),_0x50dfff[_0x43d903(0x1c2)]=_0x43d903(0x1c0);const _0x469fb2=_0x50dfff;return _0x36daf6['usage'](HELP_HEADER_MESSAGE[_0x43d903(0x1c5)])[_0x43d903(0x1bb)](HELP_FOOTER_MESSAGE)[_0x43d903(0x1b7)](_0x469fb2[_0x43d903(0x1b3)])['demandCommand']()[_0x43d903(0x1c1)]()['strict']()[_0x43d903(0x1c0)](_0x469fb2[_0x43d903(0x1c2)]);},exports['handler']=function(_0x251720){};
@@ -1 +1 @@
1
- const a17_0x450e64=a17_0x3ebc;(function(_0x438381,_0x2a43c8){const _0x599762=a17_0x3ebc,_0x37ea01=_0x438381();while(!![]){try{const _0x2a7a2c=-parseInt(_0x599762(0x211))/0x1+parseInt(_0x599762(0x197))/0x2+-parseInt(_0x599762(0x18e))/0x3*(-parseInt(_0x599762(0x1c4))/0x4)+-parseInt(_0x599762(0x226))/0x5*(parseInt(_0x599762(0x22a))/0x6)+-parseInt(_0x599762(0x1de))/0x7*(parseInt(_0x599762(0x187))/0x8)+parseInt(_0x599762(0x1a4))/0x9+parseInt(_0x599762(0x218))/0xa;if(_0x2a7a2c===_0x2a43c8)break;else _0x37ea01['push'](_0x37ea01['shift']());}catch(_0x40fb65){_0x37ea01['push'](_0x37ea01['shift']());}}}(a17_0x4f10,0xb9627));function a17_0x4f10(){const _0x4d0870=['13191858EsWyWA','xNRIj','.txt','throwHttpErrors','is\x20already\x20present','SOuqL','uachv','ktlxO','GET','ililN','ERROR','name','mOovk','oSZwA','Status:\x20','wAErJ','PGJAC','VqULX','cWhqr','getUTCFullYear','data','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','description',']\x20status\x20:\x20','xpoiK','cBYku','FziXi','INFO','HlbdA','uuid','Wgmdq','headers','2000urYeyj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','pre_check','error\x20stack\x20:\x20','help','toolInstalledResp','mqbSr','VzoDF','code','Vyhhi','KieFN','gKQUK','XPDWU','<PasswordPlaceholder>','header','CAecR','handler','qYRXU','CLOUD_PROVIDER','debug','PlcZq','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Whitelisted\x20browserstack','getUTCHours','TREgd','158683BMnHKJ','mcBEe','Missing\x20required\x20arguments:\x20','BQasT','jOGol','TgyPl','https://','EmJWf','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','fwKuI','EcXlk','pre-check','error','authHeader','checkAccess','MdduE','nSQEo','Orntb','clusterName','fzThK','cXWVL','FfbsU','HvHCY','Message:\x20','jWqia','CCptm','aIiEK','readFileSync','Failure','TkMlc','XNDSD','stringify','FQoeg','hiikl','PCrhS','desc','TLSv1_2_client_method','grid\x20profile\x20flow\x20','info','\x20data\x20:\x20','../../cloudproviders/utils','PLDgj','BPbWe','eLTtO','cluster-check-failed-','isTls1_2_SUPPORTED','sEDsC','ZLuHM','gWKum','LIehg','gZhfP','1372122WcHBwi','type','TphwT','message','NokEz','pTYAd','username','4414410xdNULq','HaAlL','qFuSK','getUTCMonth','rpVoi','dummy-grid','fVuIT','Cluster\x20`','clusterRegion','kNEVF','fBQMT','lvIgj','XVWwm','join','1195JSINcs','`\x20already\x20exists','cluster-name','BRZrV','18474ZaZyOM','hbHws','RMGRo','CIppA','pre-check-grid-called','jEUiH','SWxHq','exit','FPelM','find','OrBvd','ydwjP','Browserstack','uOQvE','`\x20is\x20present\x20in\x20region\x20`','0|2|3|1|4','push','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','ozOLl','stack','\x20region\x20-\x20','MzUdM','replace','VrGhW','gnHwN','options','TynHF','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','vUoWo','GDjMG','pre-check-failed','log/report_','\x20error\x20:\x20','Setting\x20cloud\x20provider\x20as\x20','reconnecting-websocket','requestId','epilogue','pre-check-cluster-args-not-passed','KNpKG','will\x20be\x20created','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','TNPmT','LuZex','ZxTGY','User\x20Access','Report\x20saved\x20in\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','fJerd','N/A','\x20\x20Message:\x20','getUTCMinutes','zdZNR','JHwaR','INBVo','\x20\x20Code:\x20','Pre-check\x20running\x20for\x20Cloud\x20-\x20','qprZh','rgddH','status','parse','sendEventToBackend','DbhFQ','argv','fUmKw','zBttW','\x20\x20Stack:\x20','lVGPK','command','JCMPq','ZRnni','usage','region','isCliToolInstalled','cloud-provider-not-supported','oVWDF','ZuRFR','LiDwp','wXKeb','eUKSJ','zxjKX','cloud-provider','response','PRItW','grid-profile','utf-8','../../config/constants','.\x20Please\x20provide\x20all\x20required\x20arguments.','Success','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','unable\x20to\x20verify\x20if\x20cluster\x20`','296zLHFjT','WUoiD','gridProfile','split','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','connectionTimeout','Tool\x20Installed','7305UZCDGh','eyoXP','ffZQq','SSL\x20Configured','iCESH','bstackAccesskey','WaIZM','gkBQK','XurxR','1162776PqjNVP','krvTj','Cluster\x20','IObKk','Srimi','cloudProvider','Failed\x20in\x20pre-check!\x20Error:\x20','XaeNy','WEMVC','dvxDx','bfAzZ','LOG','===\x20Precheck\x20Report\x20-\x20'];a17_0x4f10=function(){return _0x4d0870;};return a17_0x4f10();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x450e64(0x1c1)),ReconnectingWebSocket=require(a17_0x450e64(0x24c)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x450e64(0x1c6)),{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_0x450e64(0x27f)),{getCloudProviderObjectWithOutInit}=require(a17_0x450e64(0x206)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x450e64(0x26d)]='grid',exports[a17_0x450e64(0x201)]=a17_0x450e64(0x245),exports['builder']=function(_0x450b79){const _0x5e51ac=a17_0x450e64,_0x3955d8={};_0x3955d8['TphwT']=_0x5e51ac(0x1b9),_0x3955d8[_0x5e51ac(0x1a5)]='string',_0x3955d8['CIppA']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3955d8[_0x5e51ac(0x237)]=_0x5e51ac(0x282),_0x3955d8['WaIZM']=_0x5e51ac(0x258),_0x3955d8[_0x5e51ac(0x1cc)]=_0x5e51ac(0x1c9);const _0x3c9d43=_0x3955d8,_0x1c433b={};_0x1c433b['description']=_0x3c9d43[_0x5e51ac(0x213)],_0x1c433b[_0x5e51ac(0x212)]=_0x3c9d43[_0x5e51ac(0x1a5)];const _0x1c69c1={};_0x1c69c1['description']=_0x3c9d43[_0x5e51ac(0x22d)],_0x1c69c1[_0x5e51ac(0x212)]=_0x3c9d43[_0x5e51ac(0x1a5)];const _0xb5633={};_0xb5633[_0x5e51ac(0x1ba)]=_0x3c9d43[_0x5e51ac(0x237)],_0xb5633[_0x5e51ac(0x212)]=_0x3c9d43['xNRIj'];const _0x4e8dd9={};_0x4e8dd9['description']=_0x3c9d43[_0x5e51ac(0x194)],_0x4e8dd9[_0x5e51ac(0x212)]=_0x3c9d43[_0x5e51ac(0x1a5)];const _0x12faeb={};return _0x12faeb[_0x5e51ac(0x228)]=_0x1c433b,_0x12faeb[_0x5e51ac(0x27a)]=_0x1c69c1,_0x12faeb['region']=_0xb5633,_0x12faeb[_0x5e51ac(0x27d)]=_0x4e8dd9,_0x450b79[_0x5e51ac(0x270)](HELP_HEADER_MESSAGE['pre_check'])[_0x5e51ac(0x24e)](HELP_FOOTER_MESSAGE)[_0x5e51ac(0x243)](_0x12faeb)[_0x5e51ac(0x1c9)](_0x3c9d43[_0x5e51ac(0x1cc)])[_0x5e51ac(0x268)];};function a17_0x3ebc(_0x14e36f,_0x436c3d){const _0x4f10e4=a17_0x4f10();return a17_0x3ebc=function(_0x3ebce2,_0x5b600c){_0x3ebce2=_0x3ebce2-0x187;let _0x464683=_0x4f10e4[_0x3ebce2];return _0x464683;},a17_0x3ebc(_0x14e36f,_0x436c3d);}async function inputValidation(_0x5e2b1a,_0x36f66b){const _0x4409f8=a17_0x450e64,_0x1f5d26={'KieFN':_0x4409f8(0x27a),'HvHCY':_0x4409f8(0x23b),'BPbWe':'error','VrGhW':function(_0x2ea006,_0x108ef5){return _0x2ea006+_0x108ef5;},'qECKS':_0x4409f8(0x281),'EcXlk':_0x4409f8(0x1fa),'nSQEo':function(_0xecfb26,_0x1f277c){return _0xecfb26||_0x1f277c;},'PCrhS':_0x4409f8(0x25a),'dhcEm':'Error\x20Details:\x0a','fzThK':_0x4409f8(0x271),'ydwjP':_0x4409f8(0x1a8),'JGVzz':_0x4409f8(0x251),'ililN':_0x4409f8(0x228),'BQasT':function(_0x4c2125,_0x236883){return _0x4c2125===_0x236883;},'CAecR':_0x4409f8(0x26a),'wXKeb':function(_0x4390b6,_0x185713){return _0x4390b6===_0x185713;},'XurxR':_0x4409f8(0x253),'jWqia':function(_0x1a5eec,_0x1858af){return _0x1a5eec!==_0x1858af;},'fBQMT':'ecYDV','cXWVL':'pBQWw','ffZQq':_0x4409f8(0x1dd),'sEDsC':_0x4409f8(0x1f7),'zxjKX':function(_0x1d93b9,_0x1968f5){return _0x1d93b9!==_0x1968f5;},'oSZwA':_0x4409f8(0x1ce),'FQoeg':function(_0xe4f4d,_0x69899e){return _0xe4f4d>_0x69899e;},'aIiEK':function(_0x36f348,_0x2e8d64){return _0x36f348!==_0x2e8d64;},'Sgqdj':_0x4409f8(0x22f),'ZuRFR':_0x4409f8(0x242),'mGbXN':function(_0x32a78d,_0x500102,_0x471d12,_0x212ee4,_0x586d2b,_0x528154,_0x10e990,_0x33a763){return _0x32a78d(_0x500102,_0x471d12,_0x212ee4,_0x586d2b,_0x528154,_0x10e990,_0x33a763);},'ZLuHM':_0x4409f8(0x22e),'qYRXU':_0x4409f8(0x24f),'bomSI':function(_0x27f6d4,_0x1535f4){return _0x27f6d4===_0x1535f4;},'WEMVC':_0x4409f8(0x26f),'vUoWo':'cHUcR','ktlxO':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','EmJWf':function(_0x2dde3d,_0x1a230b,_0x41faed,_0x19e28a,_0x174752,_0x488a36,_0x4aead5,_0x5127ff){return _0x2dde3d(_0x1a230b,_0x41faed,_0x19e28a,_0x174752,_0x488a36,_0x4aead5,_0x5127ff);},'LiDwp':_0x4409f8(0x273),'TkMlc':'OUGgT','gfDQb':_0x4409f8(0x23c),'INBVo':_0x4409f8(0x1aa),'gWKum':_0x4409f8(0x1b3),'fwKuI':_0x4409f8(0x1ac),'ZsgmW':function(_0x431db5,_0x2b1d8c,_0x13690c){return _0x431db5(_0x2b1d8c,_0x13690c);},'NYFwQ':function(_0x1d88d7,_0x5a5c98,_0xa792c7,_0x538cc3,_0x1b70cf,_0x1526fc){return _0x1d88d7(_0x5a5c98,_0xa792c7,_0x538cc3,_0x1b70cf,_0x1526fc);},'zyhKg':_0x4409f8(0x1e9),'XaeNy':_0x4409f8(0x27d),'IObKk':_0x4409f8(0x259),'FfbsU':'KUTGS','BRZrV':function(_0x55f5ff,_0x2a71a6){return _0x55f5ff(_0x2a71a6);},'mqbSr':_0x4409f8(0x1b0),'TynHF':_0x4409f8(0x21e),'ZxTGY':'pre-check-grid-profile-empty','fMzhj':'qnrHX','Wgmdq':_0x4409f8(0x1e3),'iCESH':function(_0x38c9f4,_0x5d0dce){return _0x38c9f4!==_0x5d0dce;},'rpVoi':_0x4409f8(0x19b),'Orntb':_0x4409f8(0x198),'eMCpu':'Grid\x20profile\x20fetched\x20for\x20pre-check','hbHws':function(_0x5eb707,_0x3971f0){return _0x5eb707!==_0x3971f0;},'pTYAd':_0x4409f8(0x209),'rgddH':_0x4409f8(0x27c),'GDjMG':_0x4409f8(0x269),'PlcZq':function(_0x21bf9e,_0x1c9f37,_0x1a574e,_0x384031,_0x25e6c9,_0x3dae9c,_0x185953,_0x2231ab){return _0x21bf9e(_0x1c9f37,_0x1a574e,_0x384031,_0x25e6c9,_0x3dae9c,_0x185953,_0x2231ab);}};let _0x3a9398;try{if(_0x1f5d26[_0x4409f8(0x1e1)](_0x1f5d26[_0x4409f8(0x1d4)],_0x1f5d26[_0x4409f8(0x1d4)])){if(_0x5e2b1a[_0x4409f8(0x1f0)]||_0x5e2b1a[_0x4409f8(0x19c)]||_0x5e2b1a['region']){if(_0x1f5d26[_0x4409f8(0x277)](_0x1f5d26['XurxR'],_0x1f5d26[_0x4409f8(0x196)])){const _0x55ce30=[];!_0x5e2b1a[_0x4409f8(0x1f0)]&&(_0x1f5d26[_0x4409f8(0x1f6)](_0x1f5d26[_0x4409f8(0x222)],_0x1f5d26[_0x4409f8(0x1f2)])?_0x55ce30[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1ad)]):_0x5caea7[_0x4409f8(0x204)](_0x4409f8(0x21f)+_0x5e20e2['clusterName']+_0x4409f8(0x227)));;!_0x5e2b1a[_0x4409f8(0x19c)]&&(_0x1f5d26[_0x4409f8(0x1e1)](_0x1f5d26[_0x4409f8(0x190)],_0x1f5d26[_0x4409f8(0x20c)])?_0x106ef5[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1cf)]):_0x55ce30[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1cf)]));;!_0x5e2b1a[_0x4409f8(0x271)]&&(_0x1f5d26[_0x4409f8(0x279)](_0x1f5d26[_0x4409f8(0x1b1)],_0x1f5d26['oSZwA'])?(_0x68b4b6[_0x4409f8(0x1ea)](_0x1f5d26['HvHCY']),_0x13a9f6[_0x4409f8(0x231)](0x1)):_0x55ce30['push'](_0x1f5d26[_0x4409f8(0x1f1)]));;if(_0x1f5d26[_0x4409f8(0x1fe)](_0x55ce30['length'],0x0)){if(_0x1f5d26[_0x4409f8(0x1f8)](_0x1f5d26['Sgqdj'],_0x1f5d26[_0x4409f8(0x275)]))_0x3a9398=_0x4409f8(0x1e0)+_0x55ce30[_0x4409f8(0x225)](',\x20')+_0x4409f8(0x280),await _0x1f5d26['mGbXN'](reportToGalactusAndSendToEDS,_0x5e2b1a,_0x36f66b,_0x3a9398,messageTypes[_0x4409f8(0x1ae)],_0x1f5d26[_0x4409f8(0x20d)],_0x1f5d26[_0x4409f8(0x1d6)],_0x1f5d26[_0x4409f8(0x208)]),logger[_0x4409f8(0x1ea)](_0x3a9398),process['exit'](0x1);else{const _0x368fc8={};_0x368fc8[_0x4409f8(0x212)]=_0x6c8f6c[_0x4409f8(0x1a2)],_0x368fc8[_0x4409f8(0x214)]=_0x5d0fcc,_0x23c471[_0x4409f8(0x266)](_0x2f7304,_0x368fc8,_0x1f5d26[_0x4409f8(0x208)],!![]);}}if(!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x5e2b1a[_0x4409f8(0x19c)]['toLowerCase']())){if(_0x1f5d26['bomSI'](_0x1f5d26[_0x4409f8(0x19f)],_0x1f5d26[_0x4409f8(0x246)])){const {header:_0xfd79f6,response:_0x318ecc}=_0xee9e79,{status:_0x2f4020,data:_0x414bcf,error:_0x50857f}=_0x318ecc;_0x34f6e8+=_0xfd79f6+'\x20#'+_0x1f5d26[_0x4409f8(0x241)](_0x422969,0x1)+'\x0a',_0x57fc4f+=_0x4409f8(0x1b2)+(_0x2f4020?_0x1f5d26['qECKS']:_0x1f5d26[_0x4409f8(0x1e8)])+'\x0a',_0x1953a4+=_0x4409f8(0x1f5)+_0x1f5d26[_0x4409f8(0x1ee)](_0x414bcf,_0x1f5d26[_0x4409f8(0x200)])+'\x0a',_0x50857f&&(_0x580f23+=_0x1f5d26['dhcEm'],_0x444b91+='\x20\x20Message:\x20'+(_0x50857f['message']||_0x1f5d26[_0x4409f8(0x200)])+'\x0a',_0x20cf73+=_0x4409f8(0x260)+(_0x50857f[_0x4409f8(0x1cd)]||_0x1f5d26['PCrhS'])+'\x0a',_0x51bfee+=_0x4409f8(0x26b)+(_0x50857f[_0x4409f8(0x23d)]||_0x1f5d26[_0x4409f8(0x200)])+'\x0a'),_0x59d6c1+='\x0a\x0a';}else _0x3a9398=_0x1f5d26[_0x4409f8(0x1ab)],await _0x1f5d26[_0x4409f8(0x1e5)](reportToGalactusAndSendToEDS,_0x5e2b1a,_0x36f66b,_0x3a9398,messageTypes[_0x4409f8(0x1ae)],_0x1f5d26[_0x4409f8(0x20d)],_0x1f5d26[_0x4409f8(0x276)],_0x1f5d26['BPbWe']),logger['error'](_0x3a9398),!_0x5e2b1a[_0x4409f8(0x19c)]&&(_0x1f5d26[_0x4409f8(0x1f6)](_0x1f5d26[_0x4409f8(0x1fb)],_0x1f5d26['gfDQb'])?(logger[_0x4409f8(0x204)](_0x4409f8(0x24b)+DEFAULT_CLUSTER_DETAILS[_0x4409f8(0x1d7)]+'\x20'),_0x5e2b1a[_0x4409f8(0x19c)]=DEFAULT_CLUSTER_DETAILS[_0x4409f8(0x1d7)]):_0x303ab8[_0x4409f8(0x1ea)](_0x4409f8(0x1c8)+_0x12e2ab[_0x4409f8(0x1ea)]['stack']));}global_registry[_0x4409f8(0x1f0)]=_0x5e2b1a[_0x4409f8(0x1f0)],global_registry[_0x4409f8(0x19c)]=_0x5e2b1a[_0x4409f8(0x19c)],global_registry[_0x4409f8(0x220)]=_0x5e2b1a[_0x4409f8(0x271)];}else _0x1a6ae7[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1f1)]);}else{if(_0x5e2b1a[_0x4409f8(0x189)]){if(_0x1f5d26['jWqia'](_0x1f5d26[_0x4409f8(0x25f)],_0x1f5d26[_0x4409f8(0x20e)])){global_registry['gridProfile']=_0x5e2b1a['gridProfile'],logger[_0x4409f8(0x1d8)](_0x4409f8(0x203)+_0x5e2b1a[_0x4409f8(0x189)]);const _0x593df8=_0x4409f8(0x1e4)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x2a4f98={};_0x2a4f98['method']=_0x1f5d26[_0x4409f8(0x1e7)],_0x2a4f98[_0x4409f8(0x1c3)]=global_registry[_0x4409f8(0x1eb)],_0x2a4f98[_0x4409f8(0x1a7)]=![];const _0x1bc55c=_0x2a4f98,_0x2e763b=await _0x1f5d26['ZsgmW'](got,_0x593df8,_0x1bc55c),_0x21cb1a=await _0x1f5d26['NYFwQ'](responseValidation,_0x2e763b,_0x1f5d26['zyhKg'],_0x1f5d26[_0x4409f8(0x19e)],_0x5e2b1a,_0x36f66b);let _0x53ecde={};if(_0x1f5d26[_0x4409f8(0x1e1)](_0x21cb1a,0xc8)){if(_0x1f5d26[_0x4409f8(0x1f8)](_0x1f5d26[_0x4409f8(0x19a)],_0x1f5d26[_0x4409f8(0x1f3)])){const _0x186ed1=JSON['parse'](_0x2e763b['body']),_0x1ba056=_0x186ed1[_0x4409f8(0x233)](_0xcb2ea4=>_0xcb2ea4[_0x4409f8(0x1af)]===_0x5e2b1a[_0x4409f8(0x189)])||null;_0x1f5d26[_0x4409f8(0x229)](isUndefined,_0x1ba056)?_0x1f5d26['wXKeb'](_0x1f5d26[_0x4409f8(0x1cb)],_0x1f5d26[_0x4409f8(0x244)])?(_0x4161c9+=_0x1f5d26['dhcEm'],_0x13af88+=_0x4409f8(0x25b)+(_0x2fe398[_0x4409f8(0x214)]||_0x1f5d26[_0x4409f8(0x200)])+'\x0a',_0xf58ad3+='\x20\x20Code:\x20'+(_0x414382['code']||_0x1f5d26['PCrhS'])+'\x0a',_0xb844ab+=_0x4409f8(0x26b)+(_0x42dbbd['stack']||_0x1f5d26[_0x4409f8(0x200)])+'\x0a'):(_0x3a9398='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x5e2b1a[_0x4409f8(0x189)]+_0x4409f8(0x1e6),await _0x1f5d26[_0x4409f8(0x1e5)](reportToGalactusAndSendToEDS,_0x5e2b1a,_0x36f66b,_0x3a9398,messageTypes[_0x4409f8(0x1ae)],_0x1f5d26[_0x4409f8(0x20d)],_0x1f5d26[_0x4409f8(0x255)],_0x1f5d26[_0x4409f8(0x208)]),logger['error'](_0x3a9398),process[_0x4409f8(0x231)](0x1)):_0x1f5d26[_0x4409f8(0x1f6)](_0x1f5d26['fMzhj'],_0x1f5d26[_0x4409f8(0x1c2)])?_0x53ecde=_0x1ba056:_0x26d6e9+='Cluster\x20'+_0x14e42f['clusterName']+'\x20'+(_0x33a3fb?_0x1f5d26[_0x4409f8(0x235)]:_0x1f5d26['JGVzz'])+'\x0a\x0a';}else _0x49989e[_0x4409f8(0x204)]('['+_0x191fbe+_0x4409f8(0x1bb)+_0x5a493b[_0x4409f8(0x264)]+_0x4409f8(0x205)+_0x3157ad[_0x4409f8(0x1b8)]+'\x20error\x20:\x20'+_0x172f40['error']),_0x9c1321[_0x4409f8(0x1ea)]&&_0x2253cc[_0x4409f8(0x1ea)](_0x4409f8(0x1c8)+_0x763e23[_0x4409f8(0x1ea)]['stack']);}else _0x1f5d26[_0x4409f8(0x192)](_0x1f5d26[_0x4409f8(0x21c)],_0x1f5d26[_0x4409f8(0x1ef)])?process[_0x4409f8(0x231)](0x1):_0x57abc6[_0x4409f8(0x231)](0x1);const _0x382d6f={};_0x382d6f[_0x4409f8(0x212)]=WS_EVENTS[_0x4409f8(0x1a2)],_0x382d6f[_0x4409f8(0x214)]=_0x1f5d26['eMCpu'],webSocketUtils[_0x4409f8(0x266)](_0x36f66b,_0x382d6f),global_registry['cloudProvider']=_0x53ecde[_0x4409f8(0x19c)],global_registry['clusterRegion']=_0x53ecde[_0x4409f8(0x271)],global_registry[_0x4409f8(0x1f0)]=_0x53ecde[_0x4409f8(0x1f0)];}else _0x1f58e2+=_0x4409f8(0x199)+_0x1b6d6d[_0x4409f8(0x1f0)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else _0x1f5d26[_0x4409f8(0x22b)](_0x1f5d26[_0x4409f8(0x216)],_0x1f5d26[_0x4409f8(0x263)])?(logger[_0x4409f8(0x1ea)](_0x1f5d26[_0x4409f8(0x1f4)]),process[_0x4409f8(0x231)](0x1)):_0x38d88c[_0x4409f8(0x23a)](_0x1f5d26[_0x4409f8(0x1ad)]);}}else _0x1b38f4=_0x1935e1;}catch(_0x3d429d){_0x1f5d26[_0x4409f8(0x22b)](_0x1f5d26['GDjMG'],_0x1f5d26[_0x4409f8(0x247)])?(_0x446cf6[_0x4409f8(0x204)](_0x4409f8(0x24b)+_0x1e9117[_0x4409f8(0x1d7)]+'\x20'),_0x4e1cd4[_0x4409f8(0x19c)]=_0x3556bc[_0x4409f8(0x1d7)]):(_0x3a9398=_0x4409f8(0x1da)+_0x3d429d+':\x20'+_0x3d429d[_0x4409f8(0x23d)],logger[_0x4409f8(0x1ea)](_0x3a9398),await _0x1f5d26[_0x4409f8(0x1d9)](reportToGalactusAndSendToEDS,_0x5e2b1a,_0x36f66b,_0x3a9398,messageTypes['ERROR'],_0x1f5d26[_0x4409f8(0x20d)],_0x1f5d26[_0x4409f8(0x276)],_0x1f5d26[_0x4409f8(0x208)]),process[_0x4409f8(0x231)](0x1));}}function printResponse(_0x4a7ac3,_0x3fb122){const _0x58e95d=a17_0x450e64,_0x257692={};_0x257692['hiikl']=_0x58e95d(0x1b9),_0x257692[_0x58e95d(0x1a0)]='string',_0x257692[_0x58e95d(0x274)]=_0x58e95d(0x252),_0x257692[_0x58e95d(0x25e)]=_0x58e95d(0x282),_0x257692[_0x58e95d(0x26c)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x257692[_0x58e95d(0x267)]='help',_0x257692[_0x58e95d(0x1fc)]=function(_0x432dac,_0x42a9d5){return _0x432dac===_0x42a9d5;},_0x257692[_0x58e95d(0x22c)]=_0x58e95d(0x1d1),_0x257692['XrBSZ']=_0x58e95d(0x221);const _0x58c57d=_0x257692;logger[_0x58e95d(0x204)]('['+_0x4a7ac3+_0x58e95d(0x1bb)+_0x3fb122[_0x58e95d(0x264)]+_0x58e95d(0x205)+_0x3fb122[_0x58e95d(0x1b8)]+_0x58e95d(0x24a)+_0x3fb122[_0x58e95d(0x1ea)]);if(_0x3fb122[_0x58e95d(0x1ea)]){if(_0x58c57d['XNDSD'](_0x58c57d[_0x58e95d(0x22c)],_0x58c57d['XrBSZ'])){const _0x376a11={};_0x376a11[_0x58e95d(0x1ba)]=_0x58c57d[_0x58e95d(0x1ff)],_0x376a11[_0x58e95d(0x212)]=_0x58c57d[_0x58e95d(0x1a0)];const _0x254b66={};_0x254b66[_0x58e95d(0x1ba)]=_0x58c57d[_0x58e95d(0x274)],_0x254b66[_0x58e95d(0x212)]=_0x58c57d[_0x58e95d(0x1a0)];const _0x13f39b={};_0x13f39b[_0x58e95d(0x1ba)]=_0x58c57d['JHwaR'],_0x13f39b[_0x58e95d(0x212)]=_0x58c57d[_0x58e95d(0x1a0)];const _0x39bb7c={};_0x39bb7c[_0x58e95d(0x1ba)]=_0x58c57d[_0x58e95d(0x26c)],_0x39bb7c[_0x58e95d(0x212)]=_0x58c57d[_0x58e95d(0x1a0)];const _0x352efb={};return _0x352efb[_0x58e95d(0x228)]=_0x376a11,_0x352efb[_0x58e95d(0x27a)]=_0x254b66,_0x352efb[_0x58e95d(0x271)]=_0x13f39b,_0x352efb[_0x58e95d(0x27d)]=_0x39bb7c,_0x1bd31d['usage'](_0x2e2672[_0x58e95d(0x1c7)])[_0x58e95d(0x24e)](_0xd948f4)[_0x58e95d(0x243)](_0x352efb)[_0x58e95d(0x1c9)](_0x58c57d[_0x58e95d(0x267)])['argv'];}else logger[_0x58e95d(0x1ea)](_0x58e95d(0x1c8)+_0x3fb122[_0x58e95d(0x1ea)][_0x58e95d(0x23d)]);}}async function generateReport(_0x3c89cd,_0xfd6061){const _0x21d18b=a17_0x450e64,_0x43a787={'WUoiD':function(_0x455d3e,_0x52ab5a){return _0x455d3e+_0x52ab5a;},'VqULX':_0x21d18b(0x281),'LIehg':'Failure','NokEz':function(_0x3a943e,_0x20a052){return _0x3a943e||_0x20a052;},'KNpKG':'N/A','COPKl':'Error\x20Details:\x0a','eUKSJ':'Cluster\x20details\x0a-----------------------\x0a','xpoiK':function(_0xdfeb50,_0xbce705){return _0xdfeb50!=_0xbce705;},'lvIgj':_0x21d18b(0x1a8),'PGJAC':_0x21d18b(0x251),'SWxHq':function(_0x43d2ba){return _0x43d2ba();}};let _0x215557=_0x21d18b(0x1a3)+global_registry[_0x21d18b(0x19c)]+'\x20===\x0a\x0a';return _0x3c89cd['forEach']((_0x5d7c03,_0x5e545b)=>{const _0x43a160=_0x21d18b,{header:_0x5308d1,response:_0x4fe3c9}=_0x5d7c03,{status:_0x291178,data:_0x14ad88,error:_0x36aef4}=_0x4fe3c9;_0x215557+=_0x5308d1+'\x20#'+_0x43a787[_0x43a160(0x188)](_0x5e545b,0x1)+'\x0a',_0x215557+=_0x43a160(0x1b2)+(_0x291178?_0x43a787[_0x43a160(0x1b5)]:_0x43a787[_0x43a160(0x20f)])+'\x0a',_0x215557+=_0x43a160(0x1f5)+_0x43a787[_0x43a160(0x215)](_0x14ad88,_0x43a787[_0x43a160(0x250)])+'\x0a',_0x36aef4&&(_0x215557+=_0x43a787['COPKl'],_0x215557+='\x20\x20Message:\x20'+(_0x36aef4['message']||_0x43a787[_0x43a160(0x250)])+'\x0a',_0x215557+=_0x43a160(0x260)+(_0x36aef4[_0x43a160(0x1cd)]||_0x43a787[_0x43a160(0x250)])+'\x0a',_0x215557+=_0x43a160(0x26b)+(_0x36aef4[_0x43a160(0x23d)]||_0x43a787[_0x43a160(0x250)])+'\x0a'),_0x215557+='\x0a\x0a';}),_0x215557+=_0x43a787[_0x21d18b(0x278)],_0x43a787[_0x21d18b(0x1bc)](_0xfd6061,null)?_0x215557+='Cluster\x20'+global_registry['clusterName']+'\x20'+(_0xfd6061?_0x43a787[_0x21d18b(0x223)]:_0x43a787[_0x21d18b(0x1b4)])+'\x0a\x0a':_0x215557+=_0x21d18b(0x199)+global_registry[_0x21d18b(0x1f0)]+_0x21d18b(0x18b),_0x215557+=_0x43a787[_0x21d18b(0x230)](getSystemMetaData),_0x215557;};exports[a17_0x450e64(0x1d5)]=async function(_0x40d779){const _0x5035df=a17_0x450e64,_0x3d3984={'MdduE':function(_0x198112){return _0x198112();},'MzUdM':_0x5035df(0x1c5),'jOGol':function(_0x3ddb2d,_0x2d4aa6,_0xdb56fe,_0x102a2d,_0x274048,_0x3e35db,_0x1220c9,_0x1990f7){return _0x3ddb2d(_0x2d4aa6,_0xdb56fe,_0x102a2d,_0x274048,_0x3e35db,_0x1220c9,_0x1990f7);},'qprZh':'pre-check-grid-called','oYNLz':'credential-not-found','FPelM':_0x5035df(0x1ea),'qFuSK':function(_0x276636,_0x17f2b5,_0x46a42e,_0x10b27e,_0x22c51f,_0xb41575,_0x5cda83){return _0x276636(_0x17f2b5,_0x46a42e,_0x10b27e,_0x22c51f,_0xb41575,_0x5cda83);},'gKQUK':function(_0x1df682){return _0x1df682();},'REoty':'<UsernamePlaceholder>','cTZWa':_0x5035df(0x1d2),'gkBQK':function(_0x3dbdbc,_0x46348e,_0x514271){return _0x3dbdbc(_0x46348e,_0x514271);},'cWhqr':function(_0x59ea97,_0x6bc009,_0x20d5e0){return _0x59ea97(_0x6bc009,_0x20d5e0);},'vcaNW':_0x5035df(0x21d),'cBYku':_0x5035df(0x1ca),'JCMPq':_0x5035df(0x239),'HlbdA':function(_0x309d55,_0x1c54c2,_0x416c99){return _0x309d55(_0x1c54c2,_0x416c99);},'zdZNR':'accessResp','EtgBn':function(_0x6a921a){return _0x6a921a();},'HaAlL':function(_0x66a352,_0x1bd4e5,_0x1071f6){return _0x66a352(_0x1bd4e5,_0x1071f6);},'gZhfP':'isTrialGridAccessible','bfAzZ':function(_0x3bfdf1,_0xbd30d6){return _0x3bfdf1(_0xbd30d6);},'mcBEe':_0x5035df(0x202),'fjfIw':_0x5035df(0x20b),'OrBvd':_0x5035df(0x18d),'XVWwm':_0x5035df(0x256),'SOuqL':_0x5035df(0x1db),'LuZex':_0x5035df(0x191),'PnVeQ':function(_0x357cf5,_0x3be46c){return _0x357cf5+_0x3be46c;},'FziXi':_0x5035df(0x27e),'eyoXP':function(_0xd67e42,_0x33f304,_0x1fe46b,_0x1a4fc0,_0x1bb49b,_0xcf3bb1,_0xb3117){return _0xd67e42(_0x33f304,_0x1fe46b,_0x1a4fc0,_0x1bb49b,_0xcf3bb1,_0xb3117);},'PLDgj':_0x5035df(0x248)};let _0x445361,_0x15a6fd;try{global_registry[_0x5035df(0x24d)]=_0x3d3984[_0x5035df(0x1ed)](uuidv4);!fs['existsSync'](_0x3d3984['MdduE'](getCredentialsPath))&&(_0x15a6fd=_0x3d3984[_0x5035df(0x23f)],logger['error'](_0x15a6fd),await _0x3d3984[_0x5035df(0x1e2)](reportToGalactusAndSendToEDS,_0x40d779,_0x445361,_0x15a6fd,messageTypes[_0x5035df(0x1ae)],_0x3d3984['qprZh'],_0x3d3984['oYNLz'],_0x3d3984['FPelM']),process[_0x5035df(0x231)](0x1));_0x3d3984[_0x5035df(0x21a)](sendInstrumentationEvent,_0x40d779,_0x3d3984[_0x5035df(0x262)],messageTypes[_0x5035df(0x1bf)],null,null,_0x40d779);const _0x12fe48=JSON[_0x5035df(0x265)](fs[_0x5035df(0x1f9)](_0x3d3984[_0x5035df(0x1d0)](getCredentialsPath)));global_registry['bstackUsername']=_0x12fe48['Browserstack'][_0x5035df(0x217)],global_registry['bstackAccesskey']=_0x12fe48[_0x5035df(0x236)]['password'];const _0x5f357e=WS_ENDPOINT[_0x5035df(0x240)](_0x3d3984['REoty'],_0x12fe48[_0x5035df(0x236)][_0x5035df(0x217)])[_0x5035df(0x240)](_0x3d3984['cTZWa'],_0x12fe48[_0x5035df(0x236)]['password']),_0x1e947d={};_0x1e947d['WebSocket']=ws,_0x1e947d[_0x5035df(0x18c)]=0x36ee80,_0x445361=new ReconnectingWebSocket(_0x5f357e,[],_0x1e947d),global_registry[_0x5035df(0x1eb)]=_0x3d3984[_0x5035df(0x195)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x5035df(0x193)]),await _0x3d3984[_0x5035df(0x1b6)](inputValidation,_0x40d779,_0x445361),logger[_0x5035df(0x204)](_0x5035df(0x261)+global_registry[_0x5035df(0x19c)]+_0x5035df(0x23e)+global_registry[_0x5035df(0x220)]);let _0x4841b1=await _0x3d3984['qFuSK'](getCloudProviderObjectWithOutInit,global_registry[_0x5035df(0x19c)],global_registry[_0x5035df(0x1f0)],_0x3d3984['vcaNW'],_0x445361,webSocketUtils,_0x40d779);const _0x2b85c5=await _0x4841b1[_0x5035df(0x272)]();_0x3d3984[_0x5035df(0x195)](printResponse,_0x3d3984[_0x5035df(0x1bd)],_0x2b85c5),_0x4841b1=await _0x4841b1['init']();let _0x25c5e2=![];try{_0x25c5e2=await _0x4841b1['isClusterPresent']();}catch(_0x233e8a){const _0x14777e=_0x3d3984[_0x5035df(0x26e)][_0x5035df(0x18a)]('|');let _0x41010c=0x0;while(!![]){switch(_0x14777e[_0x41010c++]){case'0':_0x15a6fd=_0x5035df(0x283)+global_registry[_0x5035df(0x1f0)]+_0x5035df(0x238)+global_registry[_0x5035df(0x220)]+'`\x20,error\x20:\x20'+_0x233e8a;continue;case'1':_0x15a6fd+='\x0a'+JSON['stringify'](_0x233e8a[_0x5035df(0x23d)]);continue;case'2':_0x25c5e2=null;continue;case'3':logger[_0x5035df(0x1ea)](_0x15a6fd);continue;case'4':await _0x3d3984[_0x5035df(0x1e2)](reportToGalactusAndSendToEDS,_0x40d779,_0x445361,_0x15a6fd,messageTypes[_0x5035df(0x1ae)],_0x3d3984[_0x5035df(0x262)],_0x5035df(0x20a)+global_registry['cloudProvider'],_0x3d3984[_0x5035df(0x232)]);continue;}break;}}_0x25c5e2&&logger[_0x5035df(0x204)](_0x5035df(0x21f)+global_registry[_0x5035df(0x1f0)]+_0x5035df(0x227));const _0x42d554=await _0x4841b1[_0x5035df(0x1ec)]();_0x3d3984[_0x5035df(0x1c0)](printResponse,_0x3d3984[_0x5035df(0x25d)],_0x42d554);const _0x24df5e=await _0x3d3984['EtgBn'](curlRequest);_0x3d3984[_0x5035df(0x219)](printResponse,_0x3d3984[_0x5035df(0x210)],_0x24df5e);const _0x4017ab=await _0x3d3984[_0x5035df(0x1a1)](isTlsSupported,_0x3d3984[_0x5035df(0x1df)]);_0x3d3984[_0x5035df(0x195)](printResponse,_0x3d3984['fjfIw'],_0x4017ab);const _0x16744f={};_0x16744f[_0x5035df(0x1d3)]=_0x3d3984[_0x5035df(0x234)],_0x16744f[_0x5035df(0x27b)]=_0x2b85c5;const _0x5aff0a={};_0x5aff0a[_0x5035df(0x1d3)]=_0x3d3984[_0x5035df(0x224)],_0x5aff0a['response']=_0x42d554;const _0x39adfe={};_0x39adfe['header']=_0x3d3984[_0x5035df(0x1a9)],_0x39adfe[_0x5035df(0x27b)]=_0x24df5e;const _0x42161b={};_0x42161b['header']=_0x3d3984[_0x5035df(0x254)],_0x42161b[_0x5035df(0x27b)]=_0x4017ab;const _0x10a9ee=[_0x16744f,_0x5aff0a,_0x39adfe,_0x42161b],_0x184e58=await _0x3d3984[_0x5035df(0x1b6)](generateReport,_0x10a9ee,_0x25c5e2),_0x46d733=new Date(),_0x1cb370=_0x46d733[_0x5035df(0x1b7)]()+'_'+_0x3d3984['PnVeQ'](_0x46d733[_0x5035df(0x21b)](),0x1)+'_'+_0x46d733['getUTCDate']()+'_'+_0x46d733[_0x5035df(0x1dc)]()+'_'+_0x46d733[_0x5035df(0x25c)](),_0x4e8a03=_0x5035df(0x249)+_0x1cb370+_0x5035df(0x1a6);fs['writeFileSync'](_0x4e8a03,_0x184e58,_0x3d3984[_0x5035df(0x1be)]),logger['info'](_0x5035df(0x257)+_0x4e8a03),process[_0x5035df(0x231)](0x0);}catch(_0xd6eeec){let _0x4949e4=_0x5035df(0x19d)+_0xd6eeec+'\x20';logger[_0x5035df(0x1ea)](_0x4949e4),_0x4949e4+='\x0a'+JSON[_0x5035df(0x1fd)](_0xd6eeec[_0x5035df(0x23d)]),logger['debug']('stack\x20trace\x20'+_0xd6eeec['stack']);if(_0x445361){const _0x1726a3={};_0x1726a3[_0x5035df(0x212)]=WS_EVENTS[_0x5035df(0x1a2)],_0x1726a3[_0x5035df(0x214)]=_0x4949e4,webSocketUtils[_0x5035df(0x266)](_0x445361,_0x1726a3,_0x3d3984[_0x5035df(0x232)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x38bd96={};_0x38bd96[_0x5035df(0x1ea)]=_0x4949e4,await _0x3d3984[_0x5035df(0x18f)](sendInstrumentationEvent,_0x40d779,_0x3d3984[_0x5035df(0x262)],messageTypes[_0x5035df(0x1ae)],_0x3d3984[_0x5035df(0x207)],_0x38bd96,_0x40d779),process[_0x5035df(0x231)](0x1);}};
1
+ const a17_0x442d3e=a17_0x43c2;(function(_0x4ecab8,_0x4d5db9){const _0x5d6b53=a17_0x43c2,_0x10cca8=_0x4ecab8();while(!![]){try{const _0x1b9403=parseInt(_0x5d6b53(0xd8))/0x1+-parseInt(_0x5d6b53(0xdb))/0x2*(parseInt(_0x5d6b53(0x1ce))/0x3)+-parseInt(_0x5d6b53(0x1bd))/0x4*(parseInt(_0x5d6b53(0xf4))/0x5)+-parseInt(_0x5d6b53(0x1c7))/0x6*(-parseInt(_0x5d6b53(0x155))/0x7)+-parseInt(_0x5d6b53(0x1a6))/0x8+parseInt(_0x5d6b53(0x12e))/0x9*(parseInt(_0x5d6b53(0x10a))/0xa)+-parseInt(_0x5d6b53(0x1c1))/0xb*(parseInt(_0x5d6b53(0x131))/0xc);if(_0x1b9403===_0x4d5db9)break;else _0x10cca8['push'](_0x10cca8['shift']());}catch(_0x208a01){_0x10cca8['push'](_0x10cca8['shift']());}}}(a17_0x32d5,0xca56b));const fs=require('fs'),ws=require('ws'),got=require(a17_0x442d3e(0xe0)),{v4:uuidv4}=require(a17_0x442d3e(0x1b0)),ReconnectingWebSocket=require(a17_0x442d3e(0x1c6)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x442d3e(0x18a)),{logger}=require(a17_0x442d3e(0x153)),{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_0x442d3e(0x142)),{getCloudProviderObjectWithOutInit}=require(a17_0x442d3e(0x101)),webSocketUtils=require(a17_0x442d3e(0x156)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x442d3e(0x13f)]=a17_0x442d3e(0x113),exports[a17_0x442d3e(0x16c)]=a17_0x442d3e(0x17a),exports['builder']=function(_0x958a4a){const _0x563737=a17_0x442d3e,_0x81e0a4={};_0x81e0a4[_0x563737(0x148)]=_0x563737(0x114),_0x81e0a4['uFTSV']=_0x563737(0x1a0),_0x81e0a4[_0x563737(0x17d)]=_0x563737(0x183),_0x81e0a4[_0x563737(0x199)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x81e0a4[_0x563737(0x187)]=_0x563737(0x1a3),_0x81e0a4[_0x563737(0x107)]=_0x563737(0x172);const _0x7b895=_0x81e0a4,_0xfd0304={};_0xfd0304['description']=_0x7b895[_0x563737(0x148)],_0xfd0304[_0x563737(0x1a1)]=_0x7b895[_0x563737(0x1a7)];const _0x313cab={};_0x313cab[_0x563737(0x14d)]=_0x7b895[_0x563737(0x17d)],_0x313cab['type']=_0x7b895[_0x563737(0x1a7)];const _0x217cf7={};_0x217cf7[_0x563737(0x14d)]=_0x7b895[_0x563737(0x199)],_0x217cf7[_0x563737(0x1a1)]=_0x7b895[_0x563737(0x1a7)];const _0x52de02={};_0x52de02[_0x563737(0x14d)]=_0x7b895[_0x563737(0x187)],_0x52de02[_0x563737(0x1a1)]=_0x7b895['uFTSV'];const _0x4efb87={};return _0x4efb87[_0x563737(0xd6)]=_0xfd0304,_0x4efb87['cloud-provider']=_0x313cab,_0x4efb87[_0x563737(0x14c)]=_0x217cf7,_0x4efb87['grid-profile']=_0x52de02,_0x958a4a[_0x563737(0x15b)](HELP_HEADER_MESSAGE[_0x563737(0x1d1)])[_0x563737(0x125)](HELP_FOOTER_MESSAGE)[_0x563737(0x1b1)](_0x4efb87)['help'](_0x7b895[_0x563737(0x107)])[_0x563737(0xf3)];};async function inputValidation(_0x1ae520,_0x4ebf8a){const _0x51c7ae=a17_0x442d3e,_0x23acc7={'egYnY':_0x51c7ae(0xd6),'JPzRp':_0x51c7ae(0x14c),'EYJas':_0x51c7ae(0x12c),'RfGLa':_0x51c7ae(0x118),'BbRDB':_0x51c7ae(0x1b7),'mvsTW':_0x51c7ae(0xee),'WSyKE':_0x51c7ae(0x154),'nCykb':function(_0x53d7dc,_0x4d2c70){return _0x53d7dc+_0x4d2c70;},'GVydj':_0x51c7ae(0x100),'AVcNB':_0x51c7ae(0x195),'KLSEz':function(_0x35b9ba,_0x415480){return _0x35b9ba||_0x415480;},'jYqVL':_0x51c7ae(0x114),'ktwfD':'string','mMGPT':_0x51c7ae(0x183),'xxlxl':_0x51c7ae(0x1cb),'byqLL':_0x51c7ae(0x1a3),'SUXYF':_0x51c7ae(0x172),'DkkgP':_0x51c7ae(0x1b6),'jfiJQ':function(_0x2c3035,_0x5b8c44){return _0x2c3035!==_0x5b8c44;},'hDBRw':_0x51c7ae(0x180),'wdktG':_0x51c7ae(0x119),'VaEuM':function(_0x426b8e,_0x10dca7){return _0x426b8e!==_0x10dca7;},'xvgPN':_0x51c7ae(0xfb),'MkXYY':function(_0x8846ab,_0x4d5753){return _0x8846ab!==_0x4d5753;},'EUuMk':_0x51c7ae(0x1ae),'SbmXL':_0x51c7ae(0x177),'XacCA':function(_0x1d9f36,_0x23cefb){return _0x1d9f36===_0x23cefb;},'AucFQ':_0x51c7ae(0x18f),'qoCes':'xRDYj','LjzyA':_0x51c7ae(0x1d6),'PZsYa':function(_0x4e83a3,_0x1c7024){return _0x4e83a3>_0x1c7024;},'LDKfS':function(_0x441021,_0x24d01e){return _0x441021===_0x24d01e;},'OLANa':_0x51c7ae(0x185),'oreIE':function(_0x35d56a,_0x44eb04,_0x121bcd,_0x1a57bf,_0x1b1e8e,_0x3bd43e,_0x47e760,_0x9b81d9){return _0x35d56a(_0x44eb04,_0x121bcd,_0x1a57bf,_0x1b1e8e,_0x3bd43e,_0x47e760,_0x9b81d9);},'fPraq':'pre-check-grid-called','OVaEk':'pre-check-cluster-args-not-passed','WILJl':'ouivv','eYebw':_0x51c7ae(0x122),'tmaZN':function(_0x1a12e0,_0x54d61b,_0x54caa6,_0x37068e,_0x370a4f,_0x106507,_0x29b78b,_0xfd4673){return _0x1a12e0(_0x54d61b,_0x54caa6,_0x37068e,_0x370a4f,_0x106507,_0x29b78b,_0xfd4673);},'PExte':_0x51c7ae(0xe9),'GhgBx':function(_0x3f136d,_0x18fba9){return _0x3f136d===_0x18fba9;},'aHeIf':'mKPQZ','VOWYO':_0x51c7ae(0x13d),'DppXS':_0x51c7ae(0x12f),'dFOGz':_0x51c7ae(0xdf),'pIieU':_0x51c7ae(0x1b4),'SrQKC':function(_0xe90816,_0x14caf2,_0x3ccdb2){return _0xe90816(_0x14caf2,_0x3ccdb2);},'ssxCg':function(_0x42f52d,_0x4a9e8d,_0x448452,_0x52b41a,_0x2e95a2,_0x57a02f){return _0x42f52d(_0x4a9e8d,_0x448452,_0x52b41a,_0x2e95a2,_0x57a02f);},'ARhHV':_0x51c7ae(0x1b9),'NHeDB':_0x51c7ae(0x109),'xPyWT':function(_0x4004ab,_0x1a952f){return _0x4004ab!==_0x1a952f;},'jIvRg':_0x51c7ae(0x190),'Leqmc':function(_0x1ec08f,_0x2264ba){return _0x1ec08f(_0x2264ba);},'YhlwJ':function(_0x41849f,_0x3c27fa){return _0x41849f===_0x3c27fa;},'fEkVA':_0x51c7ae(0x165),'ZAxrf':_0x51c7ae(0x1d2),'PeqmN':function(_0x404b75,_0x577cb9,_0x4a471e,_0x6b7285,_0x3b8569,_0x1315b1,_0x32a725,_0x125546){return _0x404b75(_0x577cb9,_0x4a471e,_0x6b7285,_0x3b8569,_0x1315b1,_0x32a725,_0x125546);},'HZPIQ':_0x51c7ae(0x1ad),'jKYnU':_0x51c7ae(0x121),'bZyas':_0x51c7ae(0x1a9),'jxzIf':function(_0x200146,_0x4c4afa){return _0x200146!==_0x4c4afa;},'HlpIP':_0x51c7ae(0x17f),'XHruO':_0x51c7ae(0x123),'jWuCc':_0x51c7ae(0x11b),'PWNeY':function(_0x1ac572,_0xde8087){return _0x1ac572!==_0xde8087;},'xUBrQ':_0x51c7ae(0x10b),'BMpfr':_0x51c7ae(0xe2),'YQHcs':function(_0x444296,_0x154b79){return _0x444296===_0x154b79;},'qcwfa':_0x51c7ae(0x170)};let _0x1a462d;try{if(_0x23acc7[_0x51c7ae(0x11c)](_0x23acc7[_0x51c7ae(0x130)],_0x23acc7[_0x51c7ae(0x198)])){if(_0x1ae520[_0x51c7ae(0xd5)]||_0x1ae520[_0x51c7ae(0x193)]||_0x1ae520[_0x51c7ae(0x14c)]){if(_0x23acc7['VaEuM'](_0x23acc7[_0x51c7ae(0x10f)],_0x23acc7[_0x51c7ae(0x10f)]))_0x1dc217=_0x24c9f3;else{const _0x9f0c7e=[];!_0x1ae520['clusterName']&&(_0x23acc7['MkXYY'](_0x23acc7[_0x51c7ae(0xe8)],_0x23acc7[_0x51c7ae(0x10e)])?_0x9f0c7e[_0x51c7ae(0x1c3)](_0x23acc7[_0x51c7ae(0xfe)]):_0x355de9[_0x51c7ae(0x1c3)](_0x23acc7['egYnY']));;!_0x1ae520[_0x51c7ae(0x193)]&&(_0x23acc7[_0x51c7ae(0xdc)](_0x23acc7[_0x51c7ae(0x160)],_0x23acc7[_0x51c7ae(0x1bf)])?_0xba7a8f[_0x51c7ae(0x1c3)](_0x23acc7[_0x51c7ae(0x124)]):_0x9f0c7e['push'](_0x23acc7['DkkgP']));;if(!_0x1ae520[_0x51c7ae(0x14c)]){if(_0x23acc7[_0x51c7ae(0x11c)](_0x23acc7[_0x51c7ae(0x18e)],_0x23acc7[_0x51c7ae(0x18e)])){const _0x284d24={};_0x284d24[_0x51c7ae(0x1a1)]=_0x5d8eb8[_0x51c7ae(0x182)],_0x284d24[_0x51c7ae(0x1c8)]=_0x764ef9,_0x52fab3[_0x51c7ae(0xd7)](_0x460d2e,_0x284d24,_0x23acc7[_0x51c7ae(0x1a8)],!![]);}else _0x9f0c7e[_0x51c7ae(0x1c3)](_0x23acc7[_0x51c7ae(0x124)]);};_0x23acc7[_0x51c7ae(0x111)](_0x9f0c7e[_0x51c7ae(0x197)],0x0)&&(_0x23acc7[_0x51c7ae(0xfc)](_0x23acc7[_0x51c7ae(0x15d)],_0x23acc7[_0x51c7ae(0x15d)])?(_0x1a462d=_0x51c7ae(0x17c)+_0x9f0c7e[_0x51c7ae(0xe5)](',\x20')+_0x51c7ae(0x157),await _0x23acc7[_0x51c7ae(0x14b)](reportToGalactusAndSendToEDS,_0x1ae520,_0x4ebf8a,_0x1a462d,messageTypes[_0x51c7ae(0x1a2)],_0x23acc7[_0x51c7ae(0x1d4)],_0x23acc7['OVaEk'],_0x23acc7['EYJas']),logger[_0x51c7ae(0x12c)](_0x1a462d),process[_0x51c7ae(0x132)](0x1)):(_0x2e3b03['info']('['+_0x6831be+_0x51c7ae(0xff)+_0x3ffa91[_0x51c7ae(0x136)]+_0x51c7ae(0x181)+_0x2c19fe[_0x51c7ae(0x15e)]+_0x51c7ae(0x1b3)+_0x357cca[_0x51c7ae(0x12c)]),_0xb20e17[_0x51c7ae(0x12c)]&&_0x398818[_0x51c7ae(0x12c)]('error\x20stack\x20:\x20'+_0x16d4da['error'][_0x51c7ae(0x1b5)]))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x51c7ae(0x1c0)](_0x1ae520[_0x51c7ae(0x193)]['toLowerCase']())&&(_0x23acc7[_0x51c7ae(0xfc)](_0x23acc7[_0x51c7ae(0x184)],_0x23acc7[_0x51c7ae(0x184)])?(_0x1a462d=_0x23acc7[_0x51c7ae(0x150)],await _0x23acc7[_0x51c7ae(0x162)](reportToGalactusAndSendToEDS,_0x1ae520,_0x4ebf8a,_0x1a462d,messageTypes[_0x51c7ae(0x1a2)],_0x23acc7[_0x51c7ae(0x1d4)],_0x23acc7['PExte'],_0x23acc7[_0x51c7ae(0x1a8)]),logger[_0x51c7ae(0x12c)](_0x1a462d),!_0x1ae520['cloudProvider']&&(_0x23acc7['GhgBx'](_0x23acc7[_0x51c7ae(0x16d)],_0x23acc7[_0x51c7ae(0x128)])?_0x4492d2[_0x51c7ae(0x12c)](_0x51c7ae(0x10c)+_0x2f1388[_0x51c7ae(0x12c)][_0x51c7ae(0x1b5)]):(logger[_0x51c7ae(0x103)](_0x51c7ae(0x19f)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x1ae520[_0x51c7ae(0x193)]=DEFAULT_CLUSTER_DETAILS[_0x51c7ae(0x167)]))):(_0x14d1c3[_0x51c7ae(0x103)]('Setting\x20cloud\x20provider\x20as\x20'+_0x26a601['CLOUD_PROVIDER']+'\x20'),_0x1c2860[_0x51c7ae(0x193)]=_0x4f2ebe[_0x51c7ae(0x167)])),global_registry[_0x51c7ae(0xd5)]=_0x1ae520['clusterName'],global_registry[_0x51c7ae(0x193)]=_0x1ae520['cloudProvider'],global_registry['clusterRegion']=_0x1ae520[_0x51c7ae(0x14c)];}}else{if(_0x1ae520[_0x51c7ae(0x11e)]){if(_0x23acc7[_0x51c7ae(0xdc)](_0x23acc7[_0x51c7ae(0x13b)],_0x23acc7[_0x51c7ae(0x138)]))_0x4cd768+=_0x23acc7[_0x51c7ae(0x19a)],_0xed461d+='\x20\x20Message:\x20'+(_0x48b532[_0x51c7ae(0x1c8)]||_0x23acc7['BbRDB'])+'\x0a',_0x1a0f1c+=_0x51c7ae(0x144)+(_0x2bf617[_0x51c7ae(0x120)]||_0x23acc7[_0x51c7ae(0xe7)])+'\x0a',_0x4cb960+=_0x51c7ae(0x1cd)+(_0x4a2f40[_0x51c7ae(0x1b5)]||_0x23acc7['BbRDB'])+'\x0a';else{global_registry[_0x51c7ae(0x11e)]=_0x1ae520[_0x51c7ae(0x11e)],logger['debug'](_0x51c7ae(0xf6)+_0x1ae520['gridProfile']);const _0x33916a=_0x51c7ae(0xfd)+AG_API_URL+_0x51c7ae(0x1c4),_0x1ebf2e={};_0x1ebf2e[_0x51c7ae(0x12b)]=_0x23acc7[_0x51c7ae(0x16f)],_0x1ebf2e[_0x51c7ae(0x1b2)]=global_registry[_0x51c7ae(0x171)],_0x1ebf2e[_0x51c7ae(0x1a5)]=![];const _0x3d7efc=_0x1ebf2e,_0x80cad2=await _0x23acc7[_0x51c7ae(0x149)](got,_0x33916a,_0x3d7efc),_0x4deb87=await _0x23acc7['ssxCg'](responseValidation,_0x80cad2,_0x23acc7[_0x51c7ae(0x1d3)],_0x23acc7[_0x51c7ae(0x104)],_0x1ae520,_0x4ebf8a);let _0x214c57={};if(_0x23acc7[_0x51c7ae(0xdc)](_0x4deb87,0xc8)){if(_0x23acc7['xPyWT'](_0x23acc7['jIvRg'],_0x23acc7[_0x51c7ae(0x1ca)]))_0x5bc8ae[_0x51c7ae(0x103)](_0x51c7ae(0xe4)+_0x2828ac[_0x51c7ae(0xd5)]+'`\x20already\x20exists');else{const _0x414d95=JSON['parse'](_0x80cad2[_0x51c7ae(0xd9)]),_0x288d5b=_0x414d95[_0x51c7ae(0x1bb)](_0x3f8b37=>_0x3f8b37['name']===_0x1ae520[_0x51c7ae(0x11e)])||null;_0x23acc7['Leqmc'](isUndefined,_0x288d5b)?_0x23acc7[_0x51c7ae(0x158)](_0x23acc7[_0x51c7ae(0x126)],_0x23acc7['ZAxrf'])?_0x3028c4+=_0x51c7ae(0xe1)+_0x5b3082[_0x51c7ae(0xd5)]+'\x20'+(_0x437568?_0x23acc7[_0x51c7ae(0x146)]:_0x23acc7[_0x51c7ae(0xec)])+'\x0a\x0a':(_0x1a462d=_0x51c7ae(0x11f)+_0x1ae520[_0x51c7ae(0x11e)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x23acc7[_0x51c7ae(0x1be)](reportToGalactusAndSendToEDS,_0x1ae520,_0x4ebf8a,_0x1a462d,messageTypes[_0x51c7ae(0x1a2)],_0x23acc7[_0x51c7ae(0x1d4)],_0x23acc7[_0x51c7ae(0x1c9)],_0x23acc7[_0x51c7ae(0x1a8)]),logger[_0x51c7ae(0x12c)](_0x1a462d),process[_0x51c7ae(0x132)](0x1)):_0x23acc7['xPyWT'](_0x23acc7[_0x51c7ae(0x1c2)],_0x23acc7['bZyas'])?_0x214c57=_0x288d5b:_0x2c8ca0+=_0x51c7ae(0xe1)+_0x4273c1[_0x51c7ae(0xd5)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}}else{if(_0x23acc7['jxzIf'](_0x23acc7[_0x51c7ae(0x188)],_0x23acc7[_0x51c7ae(0x1d7)]))process['exit'](0x1);else{const {header:_0x412bbb,response:_0x516f08}=_0x11d99a,{status:_0x35d7fe,data:_0x18c93f,error:_0x565222}=_0x516f08;_0x1f19e1+=_0x412bbb+'\x20#'+_0x23acc7['nCykb'](_0x1662f8,0x1)+'\x0a',_0x47c5e9+=_0x51c7ae(0x17b)+(_0x35d7fe?_0x23acc7[_0x51c7ae(0x17e)]:_0x23acc7[_0x51c7ae(0x112)])+'\x0a',_0x340480+='Message:\x20'+_0x23acc7[_0x51c7ae(0x194)](_0x18c93f,_0x23acc7[_0x51c7ae(0xe7)])+'\x0a',_0x565222&&(_0x5265f5+=_0x23acc7[_0x51c7ae(0x19a)],_0xb20600+=_0x51c7ae(0x166)+(_0x565222[_0x51c7ae(0x1c8)]||_0x23acc7[_0x51c7ae(0xe7)])+'\x0a',_0x367b04+='\x20\x20Code:\x20'+(_0x565222[_0x51c7ae(0x120)]||_0x23acc7[_0x51c7ae(0xe7)])+'\x0a',_0x3e2476+=_0x51c7ae(0x1cd)+(_0x565222[_0x51c7ae(0x1b5)]||_0x23acc7['BbRDB'])+'\x0a'),_0x5f2338+='\x0a\x0a';}}const _0x297141={};_0x297141[_0x51c7ae(0x1a1)]=WS_EVENTS[_0x51c7ae(0x182)],_0x297141[_0x51c7ae(0x1c8)]=_0x23acc7[_0x51c7ae(0x16a)],webSocketUtils['sendEventToBackend'](_0x4ebf8a,_0x297141),global_registry[_0x51c7ae(0x193)]=_0x214c57[_0x51c7ae(0x193)],global_registry[_0x51c7ae(0x115)]=_0x214c57[_0x51c7ae(0x14c)],global_registry['clusterName']=_0x214c57['clusterName'];}}else _0x23acc7[_0x51c7ae(0x1ba)](_0x23acc7[_0x51c7ae(0xe3)],_0x23acc7[_0x51c7ae(0xe3)])?_0x40628f['exit'](0x1):(logger['error'](_0x23acc7['BMpfr']),process[_0x51c7ae(0x132)](0x1));}}else{const _0x54d100={};_0x54d100[_0x51c7ae(0x14d)]=_0x23acc7[_0x51c7ae(0x1d0)],_0x54d100['type']=_0x23acc7[_0x51c7ae(0x18c)];const _0x427b9c={};_0x427b9c[_0x51c7ae(0x14d)]=_0x23acc7[_0x51c7ae(0x176)],_0x427b9c['type']=_0x23acc7[_0x51c7ae(0x18c)];const _0x4be8eb={};_0x4be8eb['description']=_0x23acc7[_0x51c7ae(0x14f)],_0x4be8eb[_0x51c7ae(0x1a1)]=_0x23acc7[_0x51c7ae(0x18c)];const _0x16f7fe={};_0x16f7fe[_0x51c7ae(0x14d)]=_0x23acc7[_0x51c7ae(0x191)],_0x16f7fe[_0x51c7ae(0x1a1)]=_0x23acc7[_0x51c7ae(0x18c)];const _0x668ce5={};return _0x668ce5[_0x51c7ae(0xd6)]=_0x54d100,_0x668ce5[_0x51c7ae(0x1b6)]=_0x427b9c,_0x668ce5[_0x51c7ae(0x14c)]=_0x4be8eb,_0x668ce5[_0x51c7ae(0x109)]=_0x16f7fe,_0x8a5ece[_0x51c7ae(0x15b)](_0x41bade[_0x51c7ae(0x1d1)])[_0x51c7ae(0x125)](_0x423d6e)[_0x51c7ae(0x1b1)](_0x668ce5)[_0x51c7ae(0x172)](_0x23acc7['SUXYF'])['argv'];}}catch(_0x120486){_0x23acc7['YQHcs'](_0x23acc7[_0x51c7ae(0x1c5)],_0x23acc7[_0x51c7ae(0x1c5)])?(_0x1a462d='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x120486+':\x20'+_0x120486[_0x51c7ae(0x1b5)],logger[_0x51c7ae(0x12c)](_0x1a462d),await _0x23acc7[_0x51c7ae(0x162)](reportToGalactusAndSendToEDS,_0x1ae520,_0x4ebf8a,_0x1a462d,messageTypes[_0x51c7ae(0x1a2)],_0x23acc7[_0x51c7ae(0x1d4)],_0x23acc7[_0x51c7ae(0x12d)],_0x23acc7[_0x51c7ae(0x1a8)]),process[_0x51c7ae(0x132)](0x1)):_0x42e4ca[_0x51c7ae(0x1c3)](_0x23acc7[_0x51c7ae(0x1cc)]);}}function printResponse(_0x26ef81,_0x485916){const _0x3e3a60=a17_0x442d3e,_0x421253={};_0x421253[_0x3e3a60(0x140)]='Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region',_0x421253['Mbqwh']=function(_0x571d0b,_0x3f602a){return _0x571d0b!==_0x3f602a;},_0x421253['vXtKO']='Phlzy';const _0x3e1f96=_0x421253;logger[_0x3e3a60(0x103)]('['+_0x26ef81+_0x3e3a60(0xff)+_0x485916['status']+_0x3e3a60(0x181)+_0x485916[_0x3e3a60(0x15e)]+_0x3e3a60(0x1b3)+_0x485916[_0x3e3a60(0x12c)]),_0x485916[_0x3e3a60(0x12c)]&&(_0x3e1f96['Mbqwh'](_0x3e1f96[_0x3e3a60(0x134)],_0x3e1f96['vXtKO'])?(_0x265647[_0x3e3a60(0x12c)](_0x3e1f96[_0x3e3a60(0x140)]),_0x163e0a['exit'](0x1)):logger[_0x3e3a60(0x12c)](_0x3e3a60(0x10c)+_0x485916['error']['stack']));}async function generateReport(_0x568cff,_0x3a3cc5){const _0x45404c=a17_0x442d3e,_0x5a2217={'CIBgB':function(_0xce03f7,_0x132f18){return _0xce03f7+_0x132f18;},'oyWIs':_0x45404c(0x100),'wPKwf':_0x45404c(0x195),'ZjuSe':function(_0x393e74,_0x58195a){return _0x393e74||_0x58195a;},'zdzdy':_0x45404c(0x1b7),'jfaJQ':_0x45404c(0x118),'HpGtZ':_0x45404c(0x105),'gYhpe':function(_0x5ed302,_0x1e84f2){return _0x5ed302!=_0x1e84f2;},'zckHE':_0x45404c(0xee),'AuqdL':_0x45404c(0x154),'PMsco':function(_0x44b35d){return _0x44b35d();}};let _0x514452=_0x45404c(0x137)+global_registry[_0x45404c(0x193)]+'\x20===\x0a\x0a';return _0x568cff[_0x45404c(0x13a)]((_0x59db3b,_0x410a65)=>{const _0x5db381=_0x45404c,{header:_0x3f6d21,response:_0x282596}=_0x59db3b,{status:_0x56f71b,data:_0x38a340,error:_0x29f7a8}=_0x282596;_0x514452+=_0x3f6d21+'\x20#'+_0x5a2217[_0x5db381(0x1a4)](_0x410a65,0x1)+'\x0a',_0x514452+='Status:\x20'+(_0x56f71b?_0x5a2217[_0x5db381(0x15a)]:_0x5a2217[_0x5db381(0xea)])+'\x0a',_0x514452+=_0x5db381(0x116)+_0x5a2217[_0x5db381(0xda)](_0x38a340,_0x5a2217['zdzdy'])+'\x0a',_0x29f7a8&&(_0x514452+=_0x5a2217[_0x5db381(0x135)],_0x514452+=_0x5db381(0x166)+(_0x29f7a8[_0x5db381(0x1c8)]||_0x5a2217[_0x5db381(0x169)])+'\x0a',_0x514452+=_0x5db381(0x144)+(_0x29f7a8[_0x5db381(0x120)]||_0x5a2217[_0x5db381(0x169)])+'\x0a',_0x514452+=_0x5db381(0x1cd)+(_0x29f7a8[_0x5db381(0x1b5)]||_0x5a2217[_0x5db381(0x169)])+'\x0a'),_0x514452+='\x0a\x0a';}),_0x514452+=_0x5a2217[_0x45404c(0x151)],_0x5a2217[_0x45404c(0xdd)](_0x3a3cc5,null)?_0x514452+=_0x45404c(0xe1)+global_registry[_0x45404c(0xd5)]+'\x20'+(_0x3a3cc5?_0x5a2217[_0x45404c(0x108)]:_0x5a2217['AuqdL'])+'\x0a\x0a':_0x514452+=_0x45404c(0xe1)+global_registry[_0x45404c(0xd5)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x514452+=_0x5a2217[_0x45404c(0x139)](getSystemMetaData),_0x514452;}function a17_0x43c2(_0x72ccbc,_0x3a5c76){const _0x32d508=a17_0x32d5();return a17_0x43c2=function(_0x43c2e2,_0x4dfd9f){_0x43c2e2=_0x43c2e2-0xd5;let _0xbb9e7e=_0x32d508[_0x43c2e2];return _0xbb9e7e;},a17_0x43c2(_0x72ccbc,_0x3a5c76);};exports[a17_0x442d3e(0x152)]=async function(_0x1f40ee){const _0x2be24e=a17_0x442d3e,_0x287390={'HDjKw':function(_0x460a2b){return _0x460a2b();},'XSbnH':_0x2be24e(0x164),'iBEAU':function(_0x5266b0,_0x8896c3,_0x414290,_0x356571,_0x423717,_0x1a43f6,_0x491806,_0x46339f){return _0x5266b0(_0x8896c3,_0x414290,_0x356571,_0x423717,_0x1a43f6,_0x491806,_0x46339f);},'ZCMvw':_0x2be24e(0xf8),'CPvEM':'credential-not-found','IkLwn':_0x2be24e(0x12c),'tBxCv':function(_0x2a0580,_0x1ebe86,_0xdfc94,_0x543cd3,_0x39c771,_0x2f8ffc,_0x122c46){return _0x2a0580(_0x1ebe86,_0xdfc94,_0x543cd3,_0x39c771,_0x2f8ffc,_0x122c46);},'CyOzY':function(_0x1c531b){return _0x1c531b();},'ypkQz':_0x2be24e(0x16e),'hJpGJ':_0x2be24e(0x1aa),'JcPXg':function(_0x1c3a2c,_0x68a70f,_0x215e62){return _0x1c3a2c(_0x68a70f,_0x215e62);},'LDjAP':function(_0x2330e7,_0x2eaeeb,_0x30fc0a){return _0x2330e7(_0x2eaeeb,_0x30fc0a);},'kOCnk':_0x2be24e(0x15f),'PAprX':function(_0x25d925,_0x3c34fe,_0x550a4f){return _0x25d925(_0x3c34fe,_0x550a4f);},'PKmDp':_0x2be24e(0x14e),'zhVdQ':'2|0|1|4|3','uYMXc':'accessResp','CtaWy':function(_0x200578,_0x4ba303,_0x36b2ec){return _0x200578(_0x4ba303,_0x36b2ec);},'UPTKI':'isTrialGridAccessible','moCxG':function(_0x382027,_0x83a55){return _0x382027(_0x83a55);},'CKcTM':_0x2be24e(0x14a),'BVqOQ':_0x2be24e(0x175),'iKNSe':'Tool\x20Installed','UGNPj':_0x2be24e(0x106),'auLaI':_0x2be24e(0x147),'FXDKn':_0x2be24e(0x179),'POIuM':function(_0x42e6c3,_0x2db570){return _0x42e6c3+_0x2db570;},'NRGzr':_0x2be24e(0x1ac),'iJSSK':_0x2be24e(0x141)};let _0x3aadfe,_0x97406f;try{global_registry[_0x2be24e(0x13e)]=_0x287390['HDjKw'](uuidv4);!fs[_0x2be24e(0x18b)](_0x287390[_0x2be24e(0x129)](getCredentialsPath))&&(_0x97406f=_0x287390['XSbnH'],logger[_0x2be24e(0x12c)](_0x97406f),await _0x287390[_0x2be24e(0x11a)](reportToGalactusAndSendToEDS,_0x1f40ee,_0x3aadfe,_0x97406f,messageTypes[_0x2be24e(0x1a2)],_0x287390[_0x2be24e(0x117)],_0x287390[_0x2be24e(0xed)],_0x287390[_0x2be24e(0x161)]),process['exit'](0x1));_0x287390[_0x2be24e(0x19c)](sendInstrumentationEvent,_0x1f40ee,_0x287390[_0x2be24e(0x117)],messageTypes['INFO'],null,null,_0x1f40ee);const _0x5acb9b=JSON[_0x2be24e(0x1cf)](fs[_0x2be24e(0x192)](_0x287390[_0x2be24e(0xfa)](getCredentialsPath)));global_registry['bstackUsername']=_0x5acb9b[_0x2be24e(0x19e)][_0x2be24e(0x15c)],global_registry[_0x2be24e(0x19b)]=_0x5acb9b[_0x2be24e(0x19e)][_0x2be24e(0x11d)];const _0x3ecad8=WS_ENDPOINT[_0x2be24e(0xf7)](_0x287390['ypkQz'],_0x5acb9b[_0x2be24e(0x19e)][_0x2be24e(0x15c)])['replace'](_0x287390['hJpGJ'],_0x5acb9b['Browserstack'][_0x2be24e(0x11d)]),_0x36f167={};_0x36f167[_0x2be24e(0x173)]=ws,_0x36f167['connectionTimeout']=0x36ee80,_0x3aadfe=new ReconnectingWebSocket(_0x3ecad8,[],_0x36f167),global_registry['authHeader']=_0x287390['JcPXg'](getAuthHeader,global_registry[_0x2be24e(0x168)],global_registry[_0x2be24e(0x19b)]),await _0x287390['LDjAP'](inputValidation,_0x1f40ee,_0x3aadfe),logger['info'](_0x2be24e(0xf0)+global_registry[_0x2be24e(0x193)]+_0x2be24e(0xf2)+global_registry[_0x2be24e(0x115)]);let _0x87fba1=await _0x287390[_0x2be24e(0x19c)](getCloudProviderObjectWithOutInit,global_registry[_0x2be24e(0x193)],global_registry['clusterName'],_0x287390[_0x2be24e(0x189)],_0x3aadfe,webSocketUtils,_0x1f40ee);const _0x3ea56a=await _0x87fba1[_0x2be24e(0x110)]();_0x287390[_0x2be24e(0xde)](printResponse,_0x287390[_0x2be24e(0x196)],_0x3ea56a),_0x87fba1=await _0x87fba1[_0x2be24e(0xeb)]();let _0x3a8110=![];try{_0x3a8110=await _0x87fba1[_0x2be24e(0x145)]();}catch(_0x3ea3b5){const _0xb264c8=_0x287390['zhVdQ'][_0x2be24e(0x143)]('|');let _0x7195c5=0x0;while(!![]){switch(_0xb264c8[_0x7195c5++]){case'0':_0x3a8110=null;continue;case'1':logger[_0x2be24e(0x12c)](_0x97406f);continue;case'2':_0x97406f=_0x2be24e(0xef)+global_registry[_0x2be24e(0xd5)]+_0x2be24e(0x1ab)+global_registry[_0x2be24e(0x115)]+_0x2be24e(0x1d5)+_0x3ea3b5;continue;case'3':await _0x287390[_0x2be24e(0x11a)](reportToGalactusAndSendToEDS,_0x1f40ee,_0x3aadfe,_0x97406f,messageTypes[_0x2be24e(0x1a2)],_0x287390['ZCMvw'],_0x2be24e(0x16b)+global_registry[_0x2be24e(0x193)],_0x287390[_0x2be24e(0x161)]);continue;case'4':_0x97406f+='\x0a'+JSON[_0x2be24e(0x178)](_0x3ea3b5[_0x2be24e(0x1b5)]);continue;}break;}}_0x3a8110&&logger[_0x2be24e(0x103)](_0x2be24e(0xe4)+global_registry[_0x2be24e(0xd5)]+'`\x20already\x20exists');const _0x3abc84=await _0x87fba1['checkAccess']();_0x287390['LDjAP'](printResponse,_0x287390[_0x2be24e(0xf1)],_0x3abc84);const _0x321289=await _0x287390['HDjKw'](curlRequest);_0x287390[_0x2be24e(0x10d)](printResponse,_0x287390['UPTKI'],_0x321289);const _0x2ea149=await _0x287390[_0x2be24e(0xf5)](isTlsSupported,_0x287390[_0x2be24e(0x1af)]);_0x287390[_0x2be24e(0xde)](printResponse,_0x287390[_0x2be24e(0x19d)],_0x2ea149);const _0x40bb66={};_0x40bb66['header']=_0x287390['iKNSe'],_0x40bb66[_0x2be24e(0x159)]=_0x3ea56a;const _0x19c60a={};_0x19c60a[_0x2be24e(0x133)]=_0x287390[_0x2be24e(0x163)],_0x19c60a[_0x2be24e(0x159)]=_0x3abc84;const _0x313608={};_0x313608[_0x2be24e(0x133)]=_0x287390['auLaI'],_0x313608['response']=_0x321289;const _0x310603={};_0x310603[_0x2be24e(0x133)]=_0x287390[_0x2be24e(0x102)],_0x310603[_0x2be24e(0x159)]=_0x2ea149;const _0x1aa20b=[_0x40bb66,_0x19c60a,_0x313608,_0x310603],_0x3bc3b6=await _0x287390[_0x2be24e(0xde)](generateReport,_0x1aa20b,_0x3a8110),_0x28830c=new Date(),_0x3f6102=_0x28830c[_0x2be24e(0x18d)]()+'_'+_0x287390[_0x2be24e(0xf9)](_0x28830c[_0x2be24e(0x127)](),0x1)+'_'+_0x28830c['getUTCDate']()+'_'+_0x28830c[_0x2be24e(0x186)]()+'_'+_0x28830c['getUTCMinutes'](),_0xb05ca9='log/report_'+_0x3f6102+_0x2be24e(0x1bc);fs[_0x2be24e(0xe6)](_0xb05ca9,_0x3bc3b6,_0x287390['NRGzr']),logger['info'](_0x2be24e(0x12a)+_0xb05ca9),process['exit'](0x0);}catch(_0x54c5a2){let _0xe1a47e='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x54c5a2+'\x20';logger[_0x2be24e(0x12c)](_0xe1a47e),_0xe1a47e+='\x0a'+JSON[_0x2be24e(0x178)](_0x54c5a2['stack']),logger[_0x2be24e(0x13c)](_0x2be24e(0x174)+_0x54c5a2[_0x2be24e(0x1b5)]);if(_0x3aadfe){const _0x3c45b1={};_0x3c45b1[_0x2be24e(0x1a1)]=WS_EVENTS['LOG'],_0x3c45b1[_0x2be24e(0x1c8)]=_0xe1a47e,webSocketUtils[_0x2be24e(0xd7)](_0x3aadfe,_0x3c45b1,_0x287390[_0x2be24e(0x161)],!![]);}await webSocketUtils[_0x2be24e(0x1b8)](0x7d0);const _0x2a104a={};_0x2a104a['error']=_0xe1a47e,await _0x287390[_0x2be24e(0x19c)](sendInstrumentationEvent,_0x1f40ee,_0x287390['ZCMvw'],messageTypes[_0x2be24e(0x1a2)],_0x287390['iJSSK'],_0x2a104a,_0x1f40ee),process[_0x2be24e(0x132)](0x1);}};function a17_0x32d5(){const _0x97d2ac=['AucFQ','IkLwn','tmaZN','UGNPj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wurHg','\x20\x20Message:\x20','CLOUD_PROVIDER','bstackUsername','zdzdy','jWuCc','cluster-check-failed-','desc','aHeIf','<UsernamePlaceholder>','pIieU','AsGgI','authHeader','help','WebSocket','stack\x20trace\x20','isTls1_2_SUPPORTED','mMGPT','Ajuji','stringify','SSL\x20Configured','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Status:\x20','Missing\x20required\x20arguments:\x20','URRpe','GVydj','oNhqn','MlLgA','\x20data\x20:\x20','LOG','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','WILJl','fpBfv','getUTCHours','HUQYf','HlpIP','kOCnk','../../utils/utilityMethods','existsSync','ktwfD','getUTCFullYear','LjzyA','IDDLF','GqCwx','byqLL','readFileSync','cloudProvider','KLSEz','Failure','PKmDp','length','wdktG','fCdlu','RfGLa','bstackAccesskey','tBxCv','BVqOQ','Browserstack','Setting\x20cloud\x20provider\x20as\x20','string','type','ERROR','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','CIBgB','throwHttpErrors','1680816eEUEZy','uFTSV','EYJas','pmvab','<PasswordPlaceholder>','`\x20is\x20present\x20in\x20region\x20`','utf-8','pre-check-grid-profile-empty','WQBxF','CKcTM','uuid','options','headers','\x20error\x20:\x20','GET','stack','cloud-provider','N/A','delay','pre-check','PWNeY','find','.txt','260LrwBCF','PeqmN','qoCes','includes','213433HENHBV','jKYnU','push','/packages/cli/get-all-grid-profiles','qcwfa','reconnecting-websocket','109722puAoWe','message','HZPIQ','jIvRg','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','DkkgP','\x20\x20Stack:\x20','2416431MfgVJr','parse','jYqVL','pre_check','MlPVX','ARhHV','fPraq','`\x20,error\x20:\x20','RiVVD','XHruO','clusterName','cluster-name','sendEventToBackend','1318367hKibTo','body','ZjuSe','2CwzGbQ','XacCA','gYhpe','PAprX','EbVBG','got','Cluster\x20','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','xUBrQ','Cluster\x20`','join','writeFileSync','BbRDB','EUuMk','cloud-provider-not-supported','wPKwf','init','WSyKE','CPvEM','is\x20already\x20present','unable\x20to\x20verify\x20if\x20cluster\x20`','Pre-check\x20running\x20for\x20Cloud\x20-\x20','uYMXc','\x20region\x20-\x20','argv','62970rdakok','moCxG','grid\x20profile\x20flow\x20','replace','pre-check-grid-called','POIuM','CyOzY','iZqSw','LDKfS','https://','egYnY',']\x20status\x20:\x20','Success','../../cloudproviders/utils','FXDKn','info','NHeDB','Cluster\x20details\x0a-----------------------\x0a','User\x20Access','qYRuI','zckHE','grid-profile','13530UrKzIN','VepsY','error\x20stack\x20:\x20','CtaWy','SbmXL','xvgPN','isCliToolInstalled','PZsYa','AVcNB','grid','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','clusterRegion','Message:\x20','ZCMvw','Error\x20Details:\x0a','IAath','iBEAU','Grid\x20profile\x20fetched\x20for\x20pre-check','jfiJQ','password','gridProfile','Invalid\x20input.\x20grid\x20profiles:\x20','code','iDJxC','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','nxOwp','JPzRp','epilogue','fEkVA','getUTCMonth','VOWYO','HDjKw','Report\x20saved\x20in\x20','method','error','PExte','5445udqOVW','xTQNJ','hDBRw','636OmFesn','exit','header','vXtKO','jfaJQ','status','===\x20Precheck\x20Report\x20-\x20','dFOGz','PMsco','forEach','DppXS','debug','ezNwi','requestId','command','efTgl','pre-check-failed','../../config/constants','split','\x20\x20Code:\x20','isClusterPresent','mvsTW','Whitelisted\x20browserstack','Fgonx','SrQKC','TLSv1_2_client_method','oreIE','region','description','toolInstalledResp','xxlxl','eYebw','HpGtZ','handler','../../config/logger','will\x20be\x20created','595WJqEXF','../../utils/webSocketUtils','.\x20Please\x20provide\x20all\x20required\x20arguments.','YhlwJ','response','oyWIs','usage','username','OLANa','data','dummy-grid'];a17_0x32d5=function(){return _0x97d2ac;};return a17_0x32d5();}
@@ -1 +1 @@
1
- const a18_0x2f5005=a18_0x1127;function a18_0x42ec(){const _0x485396=['help','1567416VOlSVa','5214qasyIz','demandCommand','2961345INoIqE','3253896YIwdZM','desc','186MLqiMZ','start_commands','3024644ZcfFHR','Start\x20an\x20existing\x20Automation\x20grid.','1256700bUqbKh','commandDir','ggMvU','handler','builder','command','epilogue','10531832McOkdY','start','usage','LPZTY'];a18_0x42ec=function(){return _0x485396;};return a18_0x42ec();}function a18_0x1127(_0x3e94ef,_0x566690){const _0x42ecb6=a18_0x42ec();return a18_0x1127=function(_0x112739,_0x1a75b5){_0x112739=_0x112739-0x97;let _0x5b04c4=_0x42ecb6[_0x112739];return _0x5b04c4;},a18_0x1127(_0x3e94ef,_0x566690);}(function(_0x2b7191,_0x3be1c1){const _0x29429e=a18_0x1127,_0x1eedb4=_0x2b7191();while(!![]){try{const _0x7fd873=parseInt(_0x29429e(0x9f))/0x1*(-parseInt(_0x29429e(0xa4))/0x2)+parseInt(_0x29429e(0x9e))/0x3+-parseInt(_0x29429e(0xa8))/0x4+-parseInt(_0x29429e(0xa1))/0x5+-parseInt(_0x29429e(0xa2))/0x6+parseInt(_0x29429e(0xa6))/0x7+parseInt(_0x29429e(0x99))/0x8;if(_0x7fd873===_0x3be1c1)break;else _0x1eedb4['push'](_0x1eedb4['shift']());}catch(_0x8ddceb){_0x1eedb4['push'](_0x1eedb4['shift']());}}}(a18_0x42ec,0x525e5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x2f5005(0x97)]='start',exports[a18_0x2f5005(0xa3)]=a18_0x2f5005(0xa7),exports[a18_0x2f5005(0xac)]=function(_0x2390de){const _0xc44e8a=a18_0x2f5005,_0x508f39={};_0x508f39[_0xc44e8a(0x9c)]=_0xc44e8a(0xa5),_0x508f39[_0xc44e8a(0xaa)]=_0xc44e8a(0x9d);const _0x7f8ce=_0x508f39;return _0x2390de[_0xc44e8a(0x9b)](HELP_HEADER_MESSAGE[_0xc44e8a(0x9a)])[_0xc44e8a(0x98)](HELP_FOOTER_MESSAGE)[_0xc44e8a(0xa9)](_0x7f8ce[_0xc44e8a(0x9c)])[_0xc44e8a(0xa0)]()['recommendCommands']()['strict']()[_0xc44e8a(0x9d)](_0x7f8ce['ggMvU']);},exports[a18_0x2f5005(0xab)]=function(_0x1b61c6){};
1
+ const a18_0x5a29f1=a18_0x2316;function a18_0x1e56(){const _0x2458ac=['NBQWV','855394pbYlkN','Start\x20an\x20existing\x20Automation\x20grid.','752938KLhRdq','recommendCommands','handler','commandDir','1458nrVjjX','34769ijYMwe','583JjbAQX','help','140350XVnHTq','5090305mkmrrL','7710440VsoYSr','5827176TgqjjH','4GeFzhs','builder','demandCommand','strict','start','9CthODT','command'];a18_0x1e56=function(){return _0x2458ac;};return a18_0x1e56();}function a18_0x2316(_0x51e8b3,_0xc3bf5a){const _0x1e564d=a18_0x1e56();return a18_0x2316=function(_0x2316c2,_0x382fe7){_0x2316c2=_0x2316c2-0x129;let _0x4b3d66=_0x1e564d[_0x2316c2];return _0x4b3d66;},a18_0x2316(_0x51e8b3,_0xc3bf5a);}(function(_0x4ef6ba,_0xd950f0){const _0x4a44c7=a18_0x2316,_0x13f68f=_0x4ef6ba();while(!![]){try{const _0x18c76a=-parseInt(_0x4a44c7(0x13a))/0x1+parseInt(_0x4a44c7(0x13c))/0x2*(-parseInt(_0x4a44c7(0x137))/0x3)+-parseInt(_0x4a44c7(0x132))/0x4*(-parseInt(_0x4a44c7(0x12f))/0x5)+-parseInt(_0x4a44c7(0x12a))/0x6*(-parseInt(_0x4a44c7(0x12b))/0x7)+-parseInt(_0x4a44c7(0x130))/0x8+parseInt(_0x4a44c7(0x131))/0x9+-parseInt(_0x4a44c7(0x12e))/0xa*(-parseInt(_0x4a44c7(0x12c))/0xb);if(_0x18c76a===_0xd950f0)break;else _0x13f68f['push'](_0x13f68f['shift']());}catch(_0x34bd2f){_0x13f68f['push'](_0x13f68f['shift']());}}}(a18_0x1e56,0xa306b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x5a29f1(0x138)]=a18_0x5a29f1(0x136),exports['desc']=a18_0x5a29f1(0x13b),exports[a18_0x5a29f1(0x133)]=function(_0x3d8e4e){const _0x236850=a18_0x5a29f1,_0x9c0ee4={};_0x9c0ee4[_0x236850(0x139)]='start_commands',_0x9c0ee4['kHsTY']='help';const _0x47e8d3=_0x9c0ee4;return _0x3d8e4e['usage'](HELP_HEADER_MESSAGE[_0x236850(0x136)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x236850(0x129)](_0x47e8d3[_0x236850(0x139)])[_0x236850(0x134)]()[_0x236850(0x13d)]()[_0x236850(0x135)]()[_0x236850(0x12d)](_0x47e8d3['kHsTY']);},exports[a18_0x5a29f1(0x13e)]=function(_0x253b3a){};
@@ -1 +1 @@
1
- function a19_0xd8a5(_0x5962a3,_0x255cd3){const _0x3b871c=a19_0x3b87();return a19_0xd8a5=function(_0xd8a514,_0x5eb939){_0xd8a514=_0xd8a514-0xc8;let _0x36303a=_0x3b871c[_0xd8a514];return _0x36303a;},a19_0xd8a5(_0x5962a3,_0x255cd3);}const a19_0x222746=a19_0xd8a5;(function(_0x2754d2,_0x212fb8){const _0x34c56b=a19_0xd8a5,_0x3685b2=_0x2754d2();while(!![]){try{const _0x363926=parseInt(_0x34c56b(0xcd))/0x1*(parseInt(_0x34c56b(0x11a))/0x2)+parseInt(_0x34c56b(0x103))/0x3+-parseInt(_0x34c56b(0x120))/0x4*(parseInt(_0x34c56b(0x115))/0x5)+-parseInt(_0x34c56b(0x110))/0x6*(-parseInt(_0x34c56b(0x116))/0x7)+-parseInt(_0x34c56b(0x108))/0x8*(-parseInt(_0x34c56b(0x111))/0x9)+parseInt(_0x34c56b(0xe6))/0xa+parseInt(_0x34c56b(0xcf))/0xb*(-parseInt(_0x34c56b(0xfb))/0xc);if(_0x363926===_0x212fb8)break;else _0x3685b2['push'](_0x3685b2['shift']());}catch(_0x3b21d9){_0x3685b2['push'](_0x3685b2['shift']());}}}(a19_0x3b87,0x84ab2));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x222746(0xee)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x222746(0xd0)),{sendInstrumentationEvent}=require(a19_0x222746(0xeb)),webSocketUtils=require(a19_0x222746(0xe8)),{createK8sClient}=require(a19_0x222746(0xf0)),{getCloudProviderObject}=require(a19_0x222746(0x123));exports['command']=a19_0x222746(0x10e),exports[a19_0x222746(0xfc)]=a19_0x222746(0xde),exports['builder']=function(_0x6d47c0){const _0x35a89f=a19_0x222746,_0x48ccae={};_0x48ccae[_0x35a89f(0xe5)]=_0x35a89f(0x121),_0x48ccae['Dypgn']=_0x35a89f(0xe7),_0x48ccae[_0x35a89f(0x11e)]=_0x35a89f(0xe3),_0x48ccae['CVeYX']=_0x35a89f(0xf8),_0x48ccae['UDcMz']=_0x35a89f(0x10b);const _0x30472e=_0x48ccae,_0x37e944={};_0x37e944['description']=_0x30472e[_0x35a89f(0xe5)],_0x37e944[_0x35a89f(0x10f)]=_0x30472e['Dypgn'];const _0x22cdf9={};_0x22cdf9['description']=_0x30472e[_0x35a89f(0x11e)],_0x22cdf9['type']=_0x30472e['CVeYX'],_0x22cdf9['default']=![];const _0xeba2aa={};return _0xeba2aa[_0x35a89f(0x11c)]=_0x37e944,_0xeba2aa[_0x35a89f(0xef)]=_0x22cdf9,_0x6d47c0[_0x35a89f(0xf6)](HELP_HEADER_MESSAGE[_0x35a89f(0xd2)])[_0x35a89f(0xce)](HELP_FOOTER_MESSAGE)[_0x35a89f(0x10d)](_0xeba2aa)[_0x35a89f(0x10b)](_0x30472e[_0x35a89f(0xf7)])[_0x35a89f(0xd1)];},exports[a19_0x222746(0xc9)]=async function(_0x39519c){const _0x2100e6=a19_0x222746,_0x52c3e4={'FNYqo':_0x2100e6(0xed),'RxdGB':function(_0x32cf55){return _0x32cf55();},'vmVAg':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cXsTY':function(_0x267c45,_0x2dc87f,_0xa67738,_0x8bae3d,_0x12a108,_0x25667b,_0x50cac6){return _0x267c45(_0x2dc87f,_0xa67738,_0x8bae3d,_0x12a108,_0x25667b,_0x50cac6);},'nDOGP':_0x2100e6(0x113),'glfhw':'init-not-called','wyTtE':function(_0x5016f2,_0xb4bf20,_0xb0b9da,_0x368d29,_0x4f4677,_0x405be6,_0x56093f){return _0x5016f2(_0xb4bf20,_0xb0b9da,_0x368d29,_0x4f4677,_0x405be6,_0x56093f);},'WXRMZ':function(_0x206e62){return _0x206e62();},'QDrIv':_0x2100e6(0x122),'IwnXI':_0x2100e6(0x10c),'iiLZN':_0x2100e6(0x114),'Btvyy':function(_0x19a6a7,_0x59b33f,_0x3088bb,_0x1f4077){return _0x19a6a7(_0x59b33f,_0x3088bb,_0x1f4077);},'csraL':function(_0x3e28d5,_0x4f1c68,_0xf4519e){return _0x3e28d5(_0x4f1c68,_0xf4519e);},'asnkw':_0x2100e6(0x11d),'utTIw':function(_0x5079a0,_0x1f7c99){return _0x5079a0===_0x1f7c99;},'AxtPj':_0x2100e6(0xf9),'KiFTw':_0x2100e6(0xf5),'IZgwq':function(_0x57bf52,_0x1f638c){return _0x57bf52===_0x1f638c;},'KYszW':function(_0x5cafb4,_0x1e1d90,_0x26e15c,_0xd14ec5,_0x5e55e1,_0x3b1696,_0x121bfa){return _0x5cafb4(_0x1e1d90,_0x26e15c,_0xd14ec5,_0x5e55e1,_0x3b1696,_0x121bfa);},'Tomcx':_0x2100e6(0xdd),'clFlx':function(_0x1d1e7c,_0x19d13d,_0x439c3e,_0x29e3d1,_0x2acfdc,_0x48d60d,_0x24c274){return _0x1d1e7c(_0x19d13d,_0x439c3e,_0x29e3d1,_0x2acfdc,_0x48d60d,_0x24c274);},'PXkVA':_0x2100e6(0x11b)};let _0x13bbb1;try{!_0x39519c[_0x2100e6(0xfd)]&&(logger[_0x2100e6(0x107)](_0x52c3e4[_0x2100e6(0xcc)]),process[_0x2100e6(0x112)](0x1));!fs[_0x2100e6(0xfe)](_0x52c3e4[_0x2100e6(0xdc)](getCredentialsPath))&&(logger[_0x2100e6(0x107)](_0x52c3e4[_0x2100e6(0xd4)]),await _0x52c3e4['cXsTY'](sendInstrumentationEvent,_0x39519c,_0x52c3e4['nDOGP'],messageTypes[_0x2100e6(0xec)],_0x52c3e4[_0x2100e6(0x109)],null,_0x39519c),process[_0x2100e6(0x112)](0x1));logger[_0x2100e6(0x125)](_0x2100e6(0xe0)+_0x39519c[_0x2100e6(0xfd)]),await _0x52c3e4[_0x2100e6(0xd7)](sendInstrumentationEvent,_0x39519c,_0x52c3e4[_0x2100e6(0x10a)],messageTypes[_0x2100e6(0xc8)],null,null,_0x39519c);const _0x41b635=JSON['parse'](fs[_0x2100e6(0x11f)](_0x52c3e4[_0x2100e6(0xff)](getCredentialsPath)));global_registry[_0x2100e6(0xdf)]=_0x41b635[_0x2100e6(0x102)][_0x2100e6(0xe4)],global_registry['bstackAccesskey']=_0x41b635[_0x2100e6(0x102)]['password'];const _0x20cd84=WS_ENDPOINT['replace'](_0x52c3e4[_0x2100e6(0x104)],_0x41b635['Browserstack'][_0x2100e6(0xe4)])['replace'](_0x52c3e4['IwnXI'],_0x41b635['Browserstack']['password']),_0x72a52={};_0x72a52['WebSocket']=ws,_0x72a52['connectionTimeout']=0x36ee80,_0x13bbb1=new ReconnectingWebSocket(_0x20cd84,[],_0x72a52),logger[_0x2100e6(0xf1)](_0x52c3e4[_0x2100e6(0xe1)]),webSocketUtils['addListeners'](_0x13bbb1,_0x39519c[_0x2100e6(0x118)],_0x39519c['password']);const [_0x2afa6d,_0x3f6940]=await _0x52c3e4[_0x2100e6(0xd9)](getGridDetails,_0x41b635[_0x2100e6(0x102)]['username'],_0x41b635['Browserstack'][_0x2100e6(0xcb)],_0x39519c[_0x2100e6(0xfd)]);if(_0x3f6940){const _0x3393cc=_0x3f6940[_0x2100e6(0x125)];global_registry[_0x2100e6(0x101)]=_0x3393cc[_0x2100e6(0x101)],global_registry['clusterRegion']=_0x3393cc[_0x2100e6(0xca)],global_registry[_0x2100e6(0xd6)]=_0x3393cc['clusterName'];const _0x52a065=await _0x52c3e4['cXsTY'](getCloudProviderObject,_0x3393cc[_0x2100e6(0x101)],_0x3393cc[_0x2100e6(0xd6)],_0x3393cc['name'],_0x13bbb1,webSocketUtils,_0x39519c),[_0x2ca3ab,_0x136735,_0x48d4da,_0x5a0d07,_0x41d73a,_0x57988f]=await _0x52c3e4[_0x2100e6(0xf3)](createK8sClient,_0x52a065,_0x39519c[_0x2100e6(0xdb)]);await _0x52c3e4['csraL'](scaleUpHubDeployment,_0x136735,_0x3393cc[_0x2100e6(0xfa)]),logger[_0x2100e6(0x125)](_0x52c3e4[_0x2100e6(0x124)]),process[_0x2100e6(0x112)](0x0);}_0x52c3e4[_0x2100e6(0xe9)](_0x2afa6d[_0x2100e6(0xd5)],0x191)&&(logger[_0x2100e6(0x107)](_0x52c3e4[_0x2100e6(0x106)]),await _0x52c3e4[_0x2100e6(0xd7)](sendInstrumentationEvent,_0x39519c,_0x52c3e4[_0x2100e6(0x10a)],messageTypes[_0x2100e6(0xec)],_0x52c3e4['KiFTw'],null,_0x39519c),process[_0x2100e6(0x112)](0x1)),_0x52c3e4[_0x2100e6(0x100)](_0x2afa6d[_0x2100e6(0xd5)],0x190)&&(logger['error'](JSON[_0x2100e6(0xe2)](_0x2afa6d[_0x2100e6(0xf4)])[_0x2100e6(0x117)]),await _0x52c3e4[_0x2100e6(0xd3)](sendInstrumentationEvent,_0x39519c,_0x52c3e4[_0x2100e6(0x10a)],messageTypes[_0x2100e6(0xec)],_0x52c3e4[_0x2100e6(0xd8)],null,_0x39519c),process[_0x2100e6(0x112)](0x1)),logger[_0x2100e6(0x107)](_0x2100e6(0xea)+JSON[_0x2100e6(0xf2)](_0x2afa6d)),await _0x52c3e4[_0x2100e6(0x119)](sendInstrumentationEvent,_0x39519c,_0x52c3e4[_0x2100e6(0x10a)],messageTypes['ERROR'],_0x52c3e4[_0x2100e6(0xda)],_0x2afa6d,_0x39519c),process[_0x2100e6(0x112)](0x1);}catch(_0xb55d67){const _0x34c417=_0x2100e6(0x105)+_0xb55d67+'\x20\x0a'+JSON[_0x2100e6(0xf2)](_0xb55d67['stack'])+'\x20';logger[_0x2100e6(0x107)](_0x34c417),process['exit'](0x1);}};function a19_0x3b87(){const _0x11c18e=['usage','UDcMz','boolean','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','name','12LgFTaY','desc','gridId','existsSync','WXRMZ','IZgwq','cloudProvider','Browserstack','801255USetkp','QDrIv','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','AxtPj','error','8CmpeJu','glfhw','nDOGP','help','<PasswordPlaceholder>','options','grid','type','12KCMEQa','9220446ycfiWX','exit','start-grid-called','Adding\x20Websocket\x20listeners','5Lqjszx','3272192TOpbAW','message','user','clFlx','813530xjLJux','server-error','grid-id','Grid\x20started','OTMeJ','readFileSync','2746108hlIhGT','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','<UsernamePlaceholder>','../../cloudproviders/utils','asnkw','info','INFO','handler','region','password','FNYqo','1wGqORp','epilogue','18911387YYBJSv','../../utils/gridComponents','argv','start','KYszW','vmVAg','statusCode','clusterName','wyTtE','Tomcx','Btvyy','PXkVA','skipTlsCertVerify','RxdGB','invalid-grid-id','Start\x20an\x20existing\x20Automation\x20grid.','bstackUsername','Starting\x20grid\x20','iiLZN','parse','Skip\x20insecure\x20cert\x20verification.','username','RWQwV','3158980rfiOdH','string','../../utils/webSocketUtils','utTIw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/instrumentationUtils','ERROR','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','../../config/logger','skip-tls-cert-verify','../../utils/createk8sClient','debug','stringify','csraL','body','unauthorised'];a19_0x3b87=function(){return _0x11c18e;};return a19_0x3b87();}
1
+ const a19_0xd9a57a=a19_0x32f9;(function(_0x1e6ad3,_0x150145){const _0x18f5eb=a19_0x32f9,_0x1eb49a=_0x1e6ad3();while(!![]){try{const _0x59cb38=parseInt(_0x18f5eb(0x165))/0x1*(parseInt(_0x18f5eb(0x16e))/0x2)+-parseInt(_0x18f5eb(0x199))/0x3*(-parseInt(_0x18f5eb(0x18f))/0x4)+-parseInt(_0x18f5eb(0x160))/0x5*(parseInt(_0x18f5eb(0x168))/0x6)+-parseInt(_0x18f5eb(0x162))/0x7+parseInt(_0x18f5eb(0x185))/0x8+-parseInt(_0x18f5eb(0x153))/0x9*(parseInt(_0x18f5eb(0x186))/0xa)+-parseInt(_0x18f5eb(0x181))/0xb;if(_0x59cb38===_0x150145)break;else _0x1eb49a['push'](_0x1eb49a['shift']());}catch(_0x5f056a){_0x1eb49a['push'](_0x1eb49a['shift']());}}}(a19_0x29e7,0x5cf04));function a19_0x32f9(_0x359a14,_0x91e633){const _0x29e7c2=a19_0x29e7();return a19_0x32f9=function(_0x32f9eb,_0x2f0b63){_0x32f9eb=_0x32f9eb-0x14a;let _0x1a730f=_0x29e7c2[_0x32f9eb];return _0x1a730f;},a19_0x32f9(_0x359a14,_0x91e633);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0xd9a57a(0x17f)),{logger}=require(a19_0xd9a57a(0x18d)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0xd9a57a(0x17c)),{sendInstrumentationEvent}=require(a19_0xd9a57a(0x196)),webSocketUtils=require(a19_0xd9a57a(0x19a)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0xd9a57a(0x150));function a19_0x29e7(){const _0x48e5dc=['YFzPp','gridId','356892iwazTf','../../utils/webSocketUtils','WebSocket','skipTlsCertVerify','VZLHw','epilogue','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','message','Sgryb','body','info','Guakl','bstackUsername','bstackAccesskey','GPJBg','clusterName','../../cloudproviders/utils','init-not-called','help','167463GhXGdM','grid-id','replace','name','Adding\x20Websocket\x20listeners','username','parse','unauthorised','stringify','TdFic','Browserstack','ciDqO','connectionTimeout','368230EYFHNC','msRLP','2786903DPHuGA','<UsernamePlaceholder>','error','3DwiWPB','CIOlb','cGTFg','18acqFXd','builder','usage','Skip\x20insecure\x20cert\x20verification.','Starting\x20grid\x20','cyXLd','90164XMqCLB','invalid-grid-id','AnsOF','password','description','exit','ERROR','NFhVo','skip-tls-cert-verify','HEzvU','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','YJuGa','aGmTb','issWM','../../utils/gridComponents','<PasswordPlaceholder>','default','../../config/constants','stack','1864973pevmpG','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','type','3157472AAnWWi','40BNJNTc','existsSync','string','start-grid-called','argv','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','qgVec','../../config/logger','EyNCw','24GAodwx','server-error','start','clusterRegion','desc','Start\x20an\x20existing\x20Automation\x20grid.','cloudProvider','../../utils/instrumentationUtils'];a19_0x29e7=function(){return _0x48e5dc;};return a19_0x29e7();}exports['command']='grid',exports[a19_0xd9a57a(0x193)]=a19_0xd9a57a(0x194),exports[a19_0xd9a57a(0x169)]=function(_0x434e9d){const _0x56a923=a19_0xd9a57a,_0x23743e={};_0x23743e[_0x56a923(0x170)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x23743e['CIOlb']=_0x56a923(0x188),_0x23743e[_0x56a923(0x19d)]=_0x56a923(0x16b),_0x23743e[_0x56a923(0x167)]='boolean',_0x23743e[_0x56a923(0x17b)]='help';const _0x10ae88=_0x23743e,_0x404a46={};_0x404a46[_0x56a923(0x172)]=_0x10ae88[_0x56a923(0x170)],_0x404a46[_0x56a923(0x184)]=_0x10ae88[_0x56a923(0x166)];const _0xbf7133={};_0xbf7133[_0x56a923(0x172)]=_0x10ae88[_0x56a923(0x19d)],_0xbf7133[_0x56a923(0x184)]=_0x10ae88[_0x56a923(0x167)],_0xbf7133[_0x56a923(0x17e)]=![];const _0x469425={};return _0x469425[_0x56a923(0x154)]=_0x404a46,_0x469425[_0x56a923(0x176)]=_0xbf7133,_0x434e9d[_0x56a923(0x16a)](HELP_HEADER_MESSAGE[_0x56a923(0x191)])[_0x56a923(0x19e)](HELP_FOOTER_MESSAGE)['options'](_0x469425)[_0x56a923(0x152)](_0x10ae88[_0x56a923(0x17b)])[_0x56a923(0x18a)];},exports['handler']=async function(_0x176cd4){const _0x369f49=a19_0xd9a57a,_0x37c93b={'aGmTb':_0x369f49(0x18b),'msRLP':function(_0x213745){return _0x213745();},'qgVec':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sgaYF':function(_0x47acb5,_0x468a80,_0x5f028,_0x31c02c,_0x5b90ab,_0x9a22ab,_0x16247b){return _0x47acb5(_0x468a80,_0x5f028,_0x31c02c,_0x5b90ab,_0x9a22ab,_0x16247b);},'HEzvU':_0x369f49(0x189),'ciDqO':_0x369f49(0x151),'fpilL':function(_0xeaad26,_0x1d11fc,_0x132d49,_0x5f2232,_0x47ee86,_0x4a83e7,_0xff2bc5){return _0xeaad26(_0x1d11fc,_0x132d49,_0x5f2232,_0x47ee86,_0x4a83e7,_0xff2bc5);},'NFhVo':function(_0x5ef5f7){return _0x5ef5f7();},'rILnS':_0x369f49(0x163),'cxevW':_0x369f49(0x17d),'Guakl':_0x369f49(0x157),'GwwkE':function(_0x4b849a,_0x5c0ee4,_0x323ccc,_0x14ad7d){return _0x4b849a(_0x5c0ee4,_0x323ccc,_0x14ad7d);},'HxuMh':function(_0x5176ec,_0x2ce994,_0x27900f,_0x153c95,_0x151fc1,_0x537080,_0x802edf){return _0x5176ec(_0x2ce994,_0x27900f,_0x153c95,_0x151fc1,_0x537080,_0x802edf);},'cyXLd':function(_0x2a3358,_0x485b65,_0x5d62b9){return _0x2a3358(_0x485b65,_0x5d62b9);},'GnuRs':function(_0x2ebca0,_0x5c3246,_0x4dba8f){return _0x2ebca0(_0x5c3246,_0x4dba8f);},'EyNCw':'Grid\x20started','YJuGa':function(_0x109e24,_0x5f006e){return _0x109e24===_0x5f006e;},'eKtyg':_0x369f49(0x183),'AvPua':function(_0x3de8e3,_0x309c0e,_0x5768d4,_0xf31094,_0x47b941,_0xf4e4db,_0xf54a18){return _0x3de8e3(_0x309c0e,_0x5768d4,_0xf31094,_0x47b941,_0xf4e4db,_0xf54a18);},'YFzPp':_0x369f49(0x15a),'TdFic':_0x369f49(0x16f),'Sgryb':function(_0x539814,_0x193a55,_0x14c2f1,_0x1069b8,_0x143126,_0x18290d,_0x2e4a18){return _0x539814(_0x193a55,_0x14c2f1,_0x1069b8,_0x143126,_0x18290d,_0x2e4a18);},'GPJBg':_0x369f49(0x190)};let _0x7ebeb4;try{!_0x176cd4[_0x369f49(0x198)]&&(logger[_0x369f49(0x164)](_0x37c93b[_0x369f49(0x17a)]),process['exit'](0x1));!fs[_0x369f49(0x187)](_0x37c93b[_0x369f49(0x161)](getCredentialsPath))&&(logger[_0x369f49(0x164)](_0x37c93b[_0x369f49(0x18c)]),await _0x37c93b['sgaYF'](sendInstrumentationEvent,_0x176cd4,_0x37c93b[_0x369f49(0x177)],messageTypes[_0x369f49(0x174)],_0x37c93b[_0x369f49(0x15e)],null,_0x176cd4),process[_0x369f49(0x173)](0x1));logger['info'](_0x369f49(0x16c)+_0x176cd4[_0x369f49(0x198)]),await _0x37c93b['fpilL'](sendInstrumentationEvent,_0x176cd4,_0x37c93b[_0x369f49(0x177)],messageTypes['INFO'],null,null,_0x176cd4);const _0x18129c=JSON['parse'](fs[_0x369f49(0x182)](_0x37c93b[_0x369f49(0x175)](getCredentialsPath)));global_registry[_0x369f49(0x14c)]=_0x18129c['Browserstack'][_0x369f49(0x158)],global_registry[_0x369f49(0x14d)]=_0x18129c[_0x369f49(0x15d)]['password'];const _0x3cfad4=WS_ENDPOINT[_0x369f49(0x155)](_0x37c93b['rILnS'],_0x18129c[_0x369f49(0x15d)][_0x369f49(0x158)])[_0x369f49(0x155)](_0x37c93b['cxevW'],_0x18129c[_0x369f49(0x15d)][_0x369f49(0x171)]),_0x3ba4a6={};_0x3ba4a6[_0x369f49(0x19b)]=ws,_0x3ba4a6[_0x369f49(0x15f)]=0x36ee80,_0x7ebeb4=new ReconnectingWebSocket(_0x3cfad4,[],_0x3ba4a6),logger['debug'](_0x37c93b[_0x369f49(0x14b)]),webSocketUtils['addListeners'](_0x7ebeb4,_0x176cd4['user'],_0x176cd4['password']);const [_0x19c9cd,_0x4f7684]=await _0x37c93b['GwwkE'](getGridDetails,_0x18129c[_0x369f49(0x15d)][_0x369f49(0x158)],_0x18129c[_0x369f49(0x15d)]['password'],_0x176cd4[_0x369f49(0x198)]);if(_0x4f7684){const _0x4a05eb=_0x4f7684[_0x369f49(0x14a)];global_registry[_0x369f49(0x195)]=_0x4a05eb[_0x369f49(0x195)],global_registry[_0x369f49(0x192)]=_0x4a05eb['region'],global_registry[_0x369f49(0x14f)]=_0x4a05eb[_0x369f49(0x14f)];const _0x37f6e1=await _0x37c93b['HxuMh'](getCloudProviderObject,_0x4a05eb['cloudProvider'],_0x4a05eb['clusterName'],_0x4a05eb[_0x369f49(0x156)],_0x7ebeb4,webSocketUtils,_0x176cd4),[_0x39b90f,_0x5ec19d,_0x586979,_0x453585,_0x3197f3,_0x3be4a9]=await _0x37c93b[_0x369f49(0x16d)](createK8sClient,_0x37f6e1,_0x176cd4[_0x369f49(0x19c)]);await _0x37c93b['GnuRs'](scaleUpHubDeployment,_0x5ec19d,_0x4a05eb['name']),logger[_0x369f49(0x14a)](_0x37c93b[_0x369f49(0x18e)]),process['exit'](0x0);}_0x37c93b[_0x369f49(0x179)](_0x19c9cd['statusCode'],0x191)&&(logger['error'](_0x37c93b['eKtyg']),await _0x37c93b['AvPua'](sendInstrumentationEvent,_0x176cd4,_0x37c93b[_0x369f49(0x177)],messageTypes[_0x369f49(0x174)],_0x37c93b[_0x369f49(0x197)],null,_0x176cd4),process['exit'](0x1)),_0x37c93b[_0x369f49(0x179)](_0x19c9cd['statusCode'],0x190)&&(logger['error'](JSON[_0x369f49(0x159)](_0x19c9cd[_0x369f49(0x1a2)])[_0x369f49(0x1a0)]),await _0x37c93b['sgaYF'](sendInstrumentationEvent,_0x176cd4,_0x37c93b['HEzvU'],messageTypes[_0x369f49(0x174)],_0x37c93b[_0x369f49(0x15c)],null,_0x176cd4),process[_0x369f49(0x173)](0x1)),logger[_0x369f49(0x164)](_0x369f49(0x178)+JSON[_0x369f49(0x15b)](_0x19c9cd)),await _0x37c93b[_0x369f49(0x1a1)](sendInstrumentationEvent,_0x176cd4,_0x37c93b[_0x369f49(0x177)],messageTypes[_0x369f49(0x174)],_0x37c93b[_0x369f49(0x14e)],_0x19c9cd,_0x176cd4),process['exit'](0x1);}catch(_0x248d45){const _0x5b4a53=_0x369f49(0x19f)+_0x248d45+'\x20\x0a'+JSON[_0x369f49(0x15b)](_0x248d45[_0x369f49(0x180)])+'\x20';logger[_0x369f49(0x164)](_0x5b4a53),process[_0x369f49(0x173)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x5070d6=a20_0x1b8b;(function(_0x5f4892,_0x5eefb9){const _0x5a8a6c=a20_0x1b8b,_0x232447=_0x5f4892();while(!![]){try{const _0x4e8b77=parseInt(_0x5a8a6c(0x1bb))/0x1+-parseInt(_0x5a8a6c(0x1c0))/0x2+parseInt(_0x5a8a6c(0x1bc))/0x3*(parseInt(_0x5a8a6c(0x1cc))/0x4)+-parseInt(_0x5a8a6c(0x1c8))/0x5+-parseInt(_0x5a8a6c(0x1b9))/0x6*(-parseInt(_0x5a8a6c(0x1ce))/0x7)+parseInt(_0x5a8a6c(0x1c5))/0x8*(parseInt(_0x5a8a6c(0x1b8))/0x9)+-parseInt(_0x5a8a6c(0x1ba))/0xa*(-parseInt(_0x5a8a6c(0x1c9))/0xb);if(_0x4e8b77===_0x5eefb9)break;else _0x232447['push'](_0x232447['shift']());}catch(_0x422ab0){_0x232447['push'](_0x232447['shift']());}}}(a20_0x189f,0x30aa1));function a20_0x1b8b(_0xed0108,_0x100b5e){const _0x189fcf=a20_0x189f();return a20_0x1b8b=function(_0x1b8bcf,_0x2c128e){_0x1b8bcf=_0x1b8bcf-0x1b7;let _0x4d9f68=_0x189fcf[_0x1b8bcf];return _0x4d9f68;},a20_0x1b8b(_0xed0108,_0x100b5e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5070d6(0x1be));exports['command']=a20_0x5070d6(0x1b7),exports[a20_0x5070d6(0x1c6)]=a20_0x5070d6(0x1d0),exports[a20_0x5070d6(0x1cb)]=function(_0xf476e3){const _0x4af647=a20_0x5070d6,_0x47500c={};_0x47500c[_0x4af647(0x1ca)]='stop_commands',_0x47500c[_0x4af647(0x1c2)]=_0x4af647(0x1bf);const _0x245d5a=_0x47500c;return _0xf476e3[_0x4af647(0x1c3)](HELP_HEADER_MESSAGE['stop'])[_0x4af647(0x1bd)](HELP_FOOTER_MESSAGE)[_0x4af647(0x1c7)](_0x245d5a['GGWLa'])[_0x4af647(0x1c4)]()[_0x4af647(0x1cf)]()[_0x4af647(0x1cd)]()[_0x4af647(0x1bf)](_0x245d5a[_0x4af647(0x1c2)]);},exports[a20_0x5070d6(0x1c1)]=function(_0x9ff332){};function a20_0x189f(){const _0x4dc6c8=['desc','commandDir','1676055zreUGC','11AKddDT','GGWLa','builder','8lnatCC','strict','7UwVZWc','recommendCommands','Stop\x20a\x20running\x20Automation\x20grid.','stop','36xzxGGC','30462KEwMpX','2340910JzGdia','29822tRrawF','576678NkWVKL','epilogue','../config/constants','help','360932mCPlHv','handler','teTAP','usage','demandCommand','123128YhgnIJ'];a20_0x189f=function(){return _0x4dc6c8;};return a20_0x189f();}
1
+ function a20_0xfe1d(_0x43db9a,_0x37866c){const _0x2440b4=a20_0x2440();return a20_0xfe1d=function(_0xfe1dde,_0x7158c5){_0xfe1dde=_0xfe1dde-0xc5;let _0x42cb68=_0x2440b4[_0xfe1dde];return _0x42cb68;},a20_0xfe1d(_0x43db9a,_0x37866c);}function a20_0x2440(){const _0x58a085=['4480134KXKlMy','12097152IUEhqD','help','Stop\x20a\x20running\x20Automation\x20grid.','sRBUn','177615uVJOVK','26239340OjrnTx','desc','recommendCommands','292869iEDZcK','demandCommand','command','stop_commands','sluxO','10WZtcdK','4461705kuLjhs','strict','stop','7oTZbWA','4FGZtjD','2458760hNCmmf','commandDir'];a20_0x2440=function(){return _0x58a085;};return a20_0x2440();}const a20_0x1016d9=a20_0xfe1d;(function(_0x2e30f8,_0x2698aa){const _0xce105e=a20_0xfe1d,_0x26b028=_0x2e30f8();while(!![]){try{const _0x37c7fb=-parseInt(_0xce105e(0xc5))/0x1*(-parseInt(_0xce105e(0xca))/0x2)+-parseInt(_0xce105e(0xcb))/0x3*(parseInt(_0xce105e(0xcf))/0x4)+-parseInt(_0xce105e(0xd7))/0x5+-parseInt(_0xce105e(0xd2))/0x6+-parseInt(_0xce105e(0xce))/0x7*(-parseInt(_0xce105e(0xd0))/0x8)+-parseInt(_0xce105e(0xd3))/0x9+parseInt(_0xce105e(0xd8))/0xa;if(_0x37c7fb===_0x2698aa)break;else _0x26b028['push'](_0x26b028['shift']());}catch(_0x513d4b){_0x26b028['push'](_0x26b028['shift']());}}}(a20_0x2440,0xbeee1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x1016d9(0xc7)]=a20_0x1016d9(0xcd),exports[a20_0x1016d9(0xd9)]=a20_0x1016d9(0xd5),exports['builder']=function(_0x56e66b){const _0x2f7084=a20_0x1016d9,_0x3e18df={};_0x3e18df[_0x2f7084(0xc9)]=_0x2f7084(0xc8),_0x3e18df[_0x2f7084(0xd6)]=_0x2f7084(0xd4);const _0x251c1a=_0x3e18df;return _0x56e66b['usage'](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2f7084(0xd1)](_0x251c1a[_0x2f7084(0xc9)])[_0x2f7084(0xc6)]()[_0x2f7084(0xda)]()[_0x2f7084(0xcc)]()[_0x2f7084(0xd4)](_0x251c1a[_0x2f7084(0xd6)]);},exports['handler']=function(_0x3ec936){};
@@ -1 +1 @@
1
- function a21_0x1769(){const _0x4b165b=['desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yAybT','YuxKq','../../utils/gridComponents','addListeners','INFO','username','Browserstack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','ERROR','Stopping\x20grid\x20','statusCode','64734MYTgBP','bdqfL','cloudProvider','ugEPG','../../config/constants','unauthorised','Skip\x20insecure\x20cert\x20verification.','Udmwj','lPeea','nHTyg','skip-tls-cert-verify','parse','readFileSync','stringify','Stop\x20a\x20running\x20Automation\x20grid.','BQQmE','../../utils/instrumentationUtils','<UsernamePlaceholder>','error','40jvUwCA','zBiIx','info','MXuUg','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','APiWy','1dvUbkT','DmfMo','handler','argv','775902Okmcxe','ZbHrc','clusterName','xwYDE','debug','NsofN','1048915SAzBoH','vURzo','KkoeH','exit','glptx','gridId','../../config/logger','OFpuK','bstackAccesskey','../../utils/webSocketUtils','bstackUsername','region','string','34836NyGRsS','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/utilityMethods','VBKih','stack','description','default','boolean','594SZwLqh','naDwM','replace','skipTlsCertVerify','invalid-grid-id','message','xRPpP','tWpPg','password','reconnecting-websocket','ohjxu','MAmwU','2508480dNEcVy','type','../../utils/createk8sClient','88ScRBnT','344281jqlCmA','builder','name','epilogue'];a21_0x1769=function(){return _0x4b165b;};return a21_0x1769();}const a21_0x39f54f=a21_0x5819;(function(_0x482f43,_0x4fad98){const _0x10f320=a21_0x5819,_0x55aa46=_0x482f43();while(!![]){try{const _0x1e5f03=-parseInt(_0x10f320(0x212))/0x1*(-parseInt(_0x10f320(0x229))/0x2)+parseInt(_0x10f320(0x1f9))/0x3*(parseInt(_0x10f320(0x20c))/0x4)+parseInt(_0x10f320(0x21c))/0x5+-parseInt(_0x10f320(0x216))/0x6+parseInt(_0x10f320(0x242))/0x7+parseInt(_0x10f320(0x241))/0x8*(-parseInt(_0x10f320(0x232))/0x9)+-parseInt(_0x10f320(0x23e))/0xa;if(_0x1e5f03===_0x4fad98)break;else _0x55aa46['push'](_0x55aa46['shift']());}catch(_0x3000ea){_0x55aa46['push'](_0x55aa46['shift']());}}}(a21_0x1769,0x1b2a9));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x39f54f(0x23b)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x39f54f(0x1fd)),{logger}=require(a21_0x39f54f(0x222)),{getCredentialsPath,getGridDetails}=require(a21_0x39f54f(0x22c)),{scaleDownHubDeployment}=require(a21_0x39f54f(0x24a)),{sendInstrumentationEvent}=require(a21_0x39f54f(0x209)),webSocketUtils=require(a21_0x39f54f(0x225)),{createK8sClient}=require(a21_0x39f54f(0x240)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a21_0x5819(_0x249e78,_0x14a542){const _0x1769f7=a21_0x1769();return a21_0x5819=function(_0x5819b8,_0x5bbf62){_0x5819b8=_0x5819b8-0x1f4;let _0x1a77db=_0x1769f7[_0x5819b8];return _0x1a77db;},a21_0x5819(_0x249e78,_0x14a542);}exports['command']='grid',exports[a21_0x39f54f(0x246)]=a21_0x39f54f(0x207),exports[a21_0x39f54f(0x243)]=function(_0x2ccb1d){const _0x2de010=a21_0x39f54f,_0x5de8c7={};_0x5de8c7[_0x2de010(0x200)]=_0x2de010(0x210),_0x5de8c7['glptx']=_0x2de010(0x228),_0x5de8c7[_0x2de010(0x223)]=_0x2de010(0x1ff),_0x5de8c7[_0x2de010(0x21d)]=_0x2de010(0x231),_0x5de8c7[_0x2de010(0x239)]=_0x2de010(0x22a);const _0x54a668=_0x5de8c7,_0x5ef6a7={};_0x5ef6a7[_0x2de010(0x22f)]=_0x54a668['Udmwj'],_0x5ef6a7[_0x2de010(0x23f)]=_0x54a668[_0x2de010(0x220)];const _0x1b9a76={};_0x1b9a76[_0x2de010(0x22f)]=_0x54a668[_0x2de010(0x223)],_0x1b9a76['type']=_0x54a668[_0x2de010(0x21d)],_0x1b9a76[_0x2de010(0x230)]=![];const _0x2cfb0a={};return _0x2cfb0a['grid-id']=_0x5ef6a7,_0x2cfb0a[_0x2de010(0x203)]=_0x1b9a76,_0x2ccb1d['usage'](HELP_HEADER_MESSAGE['stop'])[_0x2de010(0x245)](HELP_FOOTER_MESSAGE)['options'](_0x2cfb0a)[_0x2de010(0x22a)](_0x54a668[_0x2de010(0x239)])[_0x2de010(0x215)];},exports[a21_0x39f54f(0x214)]=async function(_0xb94272){const _0x560980=a21_0x39f54f,_0x2cca80={'MXuUg':_0x560980(0x1f5),'nHTyg':function(_0x51f445){return _0x51f445();},'NsofN':_0x560980(0x247),'ohjxu':function(_0x5ae9fd,_0x3f120f,_0x36ff45,_0x483aae,_0x3380cc,_0x6e1025,_0x4508d8){return _0x5ae9fd(_0x3f120f,_0x36ff45,_0x483aae,_0x3380cc,_0x6e1025,_0x4508d8);},'KkoeH':'stop-grid-called','APiWy':'init-not-called','lPeea':function(_0x5e5479){return _0x5e5479();},'YuxKq':_0x560980(0x20a),'BDbaW':'<PasswordPlaceholder>','xRPpP':'Adding\x20Websocket\x20listeners','yAybT':function(_0x24b1e8,_0xf56fc8,_0x3074ab,_0x566bf4){return _0x24b1e8(_0xf56fc8,_0x3074ab,_0x566bf4);},'zBiIx':function(_0x511fee,_0x1efa25,_0x4ccb6c,_0x16028d,_0x4eebdb,_0x585efb,_0x1bade5){return _0x511fee(_0x1efa25,_0x4ccb6c,_0x16028d,_0x4eebdb,_0x585efb,_0x1bade5);},'VBKih':function(_0x84e9fb,_0xfc1f39,_0x17768e){return _0x84e9fb(_0xfc1f39,_0x17768e);},'fXRMY':'Grid\x20stoppped.','ugEPG':function(_0x255eb7,_0x353be9){return _0x255eb7===_0x353be9;},'DmfMo':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','bdqfL':function(_0x26d40f,_0x3945d0,_0x268b14,_0x5c2e9b,_0x21866f,_0x9f7210,_0x4a2388){return _0x26d40f(_0x3945d0,_0x268b14,_0x5c2e9b,_0x21866f,_0x9f7210,_0x4a2388);},'ZbHrc':_0x560980(0x1fe),'MAmwU':function(_0x5f320a,_0x1010c7){return _0x5f320a===_0x1010c7;},'xwYDE':function(_0x17666a,_0x52ccc3,_0x133c67,_0x54e9f0,_0xa0409a,_0x36a492,_0x49f792){return _0x17666a(_0x52ccc3,_0x133c67,_0x54e9f0,_0xa0409a,_0x36a492,_0x49f792);},'naDwM':_0x560980(0x236),'BQQmE':'server-error'};let _0xedcc7c;try{!_0xb94272['gridId']&&(logger[_0x560980(0x20b)](_0x2cca80[_0x560980(0x20f)]),process[_0x560980(0x21f)](0x1));!fs['existsSync'](_0x2cca80[_0x560980(0x202)](getCredentialsPath))&&(logger[_0x560980(0x20b)](_0x2cca80[_0x560980(0x21b)]),await _0x2cca80[_0x560980(0x23c)](sendInstrumentationEvent,_0xb94272,_0x2cca80[_0x560980(0x21e)],messageTypes[_0x560980(0x1f6)],_0x2cca80[_0x560980(0x211)],null,_0xb94272),process['exit'](0x1));logger[_0x560980(0x20e)](_0x560980(0x1f7)+_0xb94272[_0x560980(0x221)]),await _0x2cca80[_0x560980(0x23c)](sendInstrumentationEvent,_0xb94272,_0x2cca80[_0x560980(0x21e)],messageTypes[_0x560980(0x24c)],null,null,_0xb94272);const _0x3b5ab9=JSON[_0x560980(0x204)](fs[_0x560980(0x205)](_0x2cca80[_0x560980(0x201)](getCredentialsPath)));global_registry[_0x560980(0x226)]=_0x3b5ab9[_0x560980(0x1f4)]['username'],global_registry[_0x560980(0x224)]=_0x3b5ab9[_0x560980(0x1f4)][_0x560980(0x23a)];const _0x1586e8=WS_ENDPOINT[_0x560980(0x234)](_0x2cca80[_0x560980(0x249)],_0x3b5ab9['Browserstack'][_0x560980(0x24d)])[_0x560980(0x234)](_0x2cca80['BDbaW'],_0x3b5ab9[_0x560980(0x1f4)][_0x560980(0x23a)]),_0x4bb584={};_0x4bb584['WebSocket']=ws,_0x4bb584['connectionTimeout']=0x36ee80,_0xedcc7c=new ReconnectingWebSocket(_0x1586e8,[],_0x4bb584),logger[_0x560980(0x21a)](_0x2cca80[_0x560980(0x238)]),webSocketUtils[_0x560980(0x24b)](_0xedcc7c,_0xb94272['user'],_0xb94272['password']);const [_0x5bdc47,_0xac5ab]=await _0x2cca80[_0x560980(0x248)](getGridDetails,_0x3b5ab9['Browserstack'][_0x560980(0x24d)],_0x3b5ab9[_0x560980(0x1f4)]['password'],_0xb94272['gridId']);if(_0xac5ab){const _0x500055=_0xac5ab['info'];global_registry[_0x560980(0x1fb)]=_0x500055['cloudProvider'],global_registry['clusterRegion']=_0x500055[_0x560980(0x227)],global_registry[_0x560980(0x218)]=_0x500055[_0x560980(0x218)];const _0x56220b=await _0x2cca80[_0x560980(0x20d)](getCloudProviderObject,_0x500055[_0x560980(0x1fb)],_0x500055[_0x560980(0x218)],_0x500055[_0x560980(0x244)],_0xedcc7c,webSocketUtils,_0xb94272),[_0x1ddf37,_0x5af86c,_0x4f59b9,_0x281a06,_0x52ef01,_0x16cd09]=await _0x2cca80['VBKih'](createK8sClient,_0x56220b,_0xb94272[_0x560980(0x235)]);await _0x2cca80[_0x560980(0x22d)](scaleDownHubDeployment,_0x5af86c,_0x500055[_0x560980(0x244)]),logger[_0x560980(0x20e)](_0x2cca80['fXRMY']),process[_0x560980(0x21f)](0x0);}_0x2cca80[_0x560980(0x1fc)](_0x5bdc47[_0x560980(0x1f8)],0x191)&&(logger[_0x560980(0x20b)](_0x2cca80[_0x560980(0x213)]),await _0x2cca80[_0x560980(0x1fa)](sendInstrumentationEvent,_0xb94272,_0x2cca80['KkoeH'],messageTypes['ERROR'],_0x2cca80[_0x560980(0x217)],null,_0xb94272),process[_0x560980(0x21f)](0x1)),_0x2cca80[_0x560980(0x23d)](_0x5bdc47['statusCode'],0x190)&&(logger['error'](JSON[_0x560980(0x204)](_0x5bdc47['body'])[_0x560980(0x237)]),await _0x2cca80[_0x560980(0x219)](sendInstrumentationEvent,_0xb94272,_0x2cca80[_0x560980(0x21e)],messageTypes[_0x560980(0x1f6)],_0x2cca80[_0x560980(0x233)],null,_0xb94272),process[_0x560980(0x21f)](0x1)),logger[_0x560980(0x20b)](_0x560980(0x22b)+JSON[_0x560980(0x206)](_0x5bdc47)),await _0x2cca80[_0x560980(0x1fa)](sendInstrumentationEvent,_0xb94272,_0x2cca80[_0x560980(0x21e)],messageTypes[_0x560980(0x1f6)],_0x2cca80[_0x560980(0x208)],_0x5bdc47,_0xb94272),process[_0x560980(0x21f)](0x1);}catch(_0x732f94){const _0x2aec4e='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x732f94+'\x20\x0a'+JSON[_0x560980(0x206)](_0x732f94[_0x560980(0x22e)])+'\x20';logger[_0x560980(0x20b)](_0x2aec4e),process['exit'](0x1);}};
1
+ const a21_0x1edb65=a21_0x15ff;(function(_0x5d14f0,_0x396ecc){const _0x50e450=a21_0x15ff,_0xa7856a=_0x5d14f0();while(!![]){try{const _0x31c85f=parseInt(_0x50e450(0x1cb))/0x1*(-parseInt(_0x50e450(0x1da))/0x2)+-parseInt(_0x50e450(0x1eb))/0x3+parseInt(_0x50e450(0x1e3))/0x4*(-parseInt(_0x50e450(0x1b0))/0x5)+parseInt(_0x50e450(0x1b6))/0x6+-parseInt(_0x50e450(0x1fa))/0x7*(parseInt(_0x50e450(0x1b2))/0x8)+parseInt(_0x50e450(0x1fc))/0x9+parseInt(_0x50e450(0x1c0))/0xa;if(_0x31c85f===_0x396ecc)break;else _0xa7856a['push'](_0xa7856a['shift']());}catch(_0x3d2f64){_0xa7856a['push'](_0xa7856a['shift']());}}}(a21_0x6760,0xf2e8c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1edb65(0x1d9)),{logger}=require(a21_0x1edb65(0x1b1)),{getCredentialsPath,getGridDetails}=require(a21_0x1edb65(0x1c6)),{scaleDownHubDeployment}=require(a21_0x1edb65(0x1a4)),{sendInstrumentationEvent}=require(a21_0x1edb65(0x1d0)),webSocketUtils=require(a21_0x1edb65(0x1e8)),{createK8sClient}=require(a21_0x1edb65(0x1f8)),{getCloudProviderObject}=require(a21_0x1edb65(0x1ee));exports[a21_0x1edb65(0x1dc)]=a21_0x1edb65(0x1f1),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x1edb65(0x1a6)]=function(_0x4ec716){const _0x23442f=a21_0x1edb65,_0x4fd2a0={};_0x4fd2a0[_0x23442f(0x1b3)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x4fd2a0[_0x23442f(0x1f0)]=_0x23442f(0x1bc),_0x4fd2a0[_0x23442f(0x1a3)]=_0x23442f(0x1ca),_0x4fd2a0[_0x23442f(0x1c1)]=_0x23442f(0x1a2),_0x4fd2a0['VEKFJ']=_0x23442f(0x1c9);const _0x31f53c=_0x4fd2a0,_0x58a22e={};_0x58a22e[_0x23442f(0x1b8)]=_0x31f53c[_0x23442f(0x1b3)],_0x58a22e['type']=_0x31f53c[_0x23442f(0x1f0)];const _0x1bc602={};_0x1bc602[_0x23442f(0x1b8)]=_0x31f53c[_0x23442f(0x1a3)],_0x1bc602['type']=_0x31f53c[_0x23442f(0x1c1)],_0x1bc602[_0x23442f(0x1c3)]=![];const _0x35d6db={};return _0x35d6db['grid-id']=_0x58a22e,_0x35d6db['skip-tls-cert-verify']=_0x1bc602,_0x4ec716['usage'](HELP_HEADER_MESSAGE[_0x23442f(0x1bb)])[_0x23442f(0x1de)](HELP_FOOTER_MESSAGE)[_0x23442f(0x1fe)](_0x35d6db)[_0x23442f(0x1c9)](_0x31f53c[_0x23442f(0x1bd)])[_0x23442f(0x1f7)];},exports['handler']=async function(_0x428237){const _0x26c7d7=a21_0x1edb65,_0x2508a4={'ZVSDw':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','bEKQl':function(_0x291e6f){return _0x291e6f();},'VekeD':_0x26c7d7(0x1ec),'nhozy':function(_0x103c2b,_0x264aac,_0x20fb38,_0x1dff0e,_0x5bd2d2,_0x1001e7,_0x4d935c){return _0x103c2b(_0x264aac,_0x20fb38,_0x1dff0e,_0x5bd2d2,_0x1001e7,_0x4d935c);},'ioJKX':_0x26c7d7(0x1e6),'EtJpG':'init-not-called','fIfgB':function(_0x52cf4e,_0x31e8b6,_0xb1208f,_0x57d917,_0x1776d5,_0x1a24de,_0x445c9e){return _0x52cf4e(_0x31e8b6,_0xb1208f,_0x57d917,_0x1776d5,_0x1a24de,_0x445c9e);},'KfiEr':function(_0x4b6c82){return _0x4b6c82();},'FGfUV':_0x26c7d7(0x1f4),'ptpty':_0x26c7d7(0x1c4),'eYZMa':_0x26c7d7(0x1c8),'ghqYO':function(_0x22e205,_0x53c5af,_0x7ba058,_0x568de2){return _0x22e205(_0x53c5af,_0x7ba058,_0x568de2);},'qytph':function(_0x94cbb9,_0x429156,_0x53c1f8){return _0x94cbb9(_0x429156,_0x53c1f8);},'OTBVq':function(_0x10f964,_0x2c240f,_0x504c63){return _0x10f964(_0x2c240f,_0x504c63);},'gqpmd':_0x26c7d7(0x1be),'SdKsz':function(_0x2b9128,_0x2717db){return _0x2b9128===_0x2717db;},'UmbWd':_0x26c7d7(0x1d1),'rBqRZ':function(_0x1b1614,_0x1d8bc9,_0x4dbbd7,_0x228203,_0x24f027,_0x1187e6,_0x25a4b1){return _0x1b1614(_0x1d8bc9,_0x4dbbd7,_0x228203,_0x24f027,_0x1187e6,_0x25a4b1);},'nMxGW':_0x26c7d7(0x1fb),'zPUjw':function(_0x465a8c,_0x220413,_0x4cf00a,_0x3e71f9,_0xf9648d,_0x376ecb,_0x90e55c){return _0x465a8c(_0x220413,_0x4cf00a,_0x3e71f9,_0xf9648d,_0x376ecb,_0x90e55c);},'YExsG':_0x26c7d7(0x1ea),'VPLTL':function(_0x12e1f3,_0x3e5735,_0x4f0e26,_0x43c522,_0x2c7e4e,_0x14786a,_0x121570){return _0x12e1f3(_0x3e5735,_0x4f0e26,_0x43c522,_0x2c7e4e,_0x14786a,_0x121570);},'iibOu':_0x26c7d7(0x1df)};let _0x57174a;try{!_0x428237[_0x26c7d7(0x1e4)]&&(logger[_0x26c7d7(0x1dd)](_0x2508a4[_0x26c7d7(0x1c7)]),process[_0x26c7d7(0x1cd)](0x1));!fs[_0x26c7d7(0x1a7)](_0x2508a4[_0x26c7d7(0x1ce)](getCredentialsPath))&&(logger[_0x26c7d7(0x1dd)](_0x2508a4[_0x26c7d7(0x1af)]),await _0x2508a4[_0x26c7d7(0x1cf)](sendInstrumentationEvent,_0x428237,_0x2508a4[_0x26c7d7(0x1b4)],messageTypes[_0x26c7d7(0x1e1)],_0x2508a4['EtJpG'],null,_0x428237),process[_0x26c7d7(0x1cd)](0x1));logger[_0x26c7d7(0x1ad)]('Stopping\x20grid\x20'+_0x428237[_0x26c7d7(0x1e4)]),await _0x2508a4[_0x26c7d7(0x1e7)](sendInstrumentationEvent,_0x428237,_0x2508a4['ioJKX'],messageTypes[_0x26c7d7(0x1bf)],null,null,_0x428237);const _0x345792=JSON['parse'](fs[_0x26c7d7(0x1b5)](_0x2508a4[_0x26c7d7(0x1aa)](getCredentialsPath)));global_registry[_0x26c7d7(0x1d7)]=_0x345792[_0x26c7d7(0x1b9)][_0x26c7d7(0x1e5)],global_registry['bstackAccesskey']=_0x345792[_0x26c7d7(0x1b9)][_0x26c7d7(0x1ac)];const _0x413cd4=WS_ENDPOINT[_0x26c7d7(0x1d8)](_0x2508a4[_0x26c7d7(0x1f9)],_0x345792[_0x26c7d7(0x1b9)][_0x26c7d7(0x1e5)])[_0x26c7d7(0x1d8)](_0x2508a4[_0x26c7d7(0x1a9)],_0x345792[_0x26c7d7(0x1b9)]['password']),_0x3897bc={};_0x3897bc[_0x26c7d7(0x1ed)]=ws,_0x3897bc[_0x26c7d7(0x1d2)]=0x36ee80,_0x57174a=new ReconnectingWebSocket(_0x413cd4,[],_0x3897bc),logger[_0x26c7d7(0x1f5)](_0x2508a4[_0x26c7d7(0x1e2)]),webSocketUtils[_0x26c7d7(0x1d5)](_0x57174a,_0x428237[_0x26c7d7(0x1fd)],_0x428237['password']);const [_0x27681b,_0x39982c]=await _0x2508a4[_0x26c7d7(0x1e0)](getGridDetails,_0x345792[_0x26c7d7(0x1b9)][_0x26c7d7(0x1e5)],_0x345792[_0x26c7d7(0x1b9)]['password'],_0x428237[_0x26c7d7(0x1e4)]);if(_0x39982c){const _0xe4a743=_0x39982c[_0x26c7d7(0x1ad)];global_registry['cloudProvider']=_0xe4a743['cloudProvider'],global_registry[_0x26c7d7(0x1c5)]=_0xe4a743['region'],global_registry[_0x26c7d7(0x1ab)]=_0xe4a743[_0x26c7d7(0x1ab)];const _0x2271ca=await _0x2508a4[_0x26c7d7(0x1e7)](getCloudProviderObject,_0xe4a743[_0x26c7d7(0x1ba)],_0xe4a743[_0x26c7d7(0x1ab)],_0xe4a743[_0x26c7d7(0x1ef)],_0x57174a,webSocketUtils,_0x428237),[_0x17955b,_0x4f91a1,_0x343762,_0x3bb221,_0x4a8356,_0xa0b87a]=await _0x2508a4[_0x26c7d7(0x1f3)](createK8sClient,_0x2271ca,_0x428237[_0x26c7d7(0x1e9)]);await _0x2508a4['OTBVq'](scaleDownHubDeployment,_0x4f91a1,_0xe4a743[_0x26c7d7(0x1ef)]),logger[_0x26c7d7(0x1ad)](_0x2508a4['gqpmd']),process['exit'](0x0);}_0x2508a4[_0x26c7d7(0x1cc)](_0x27681b['statusCode'],0x191)&&(logger[_0x26c7d7(0x1dd)](_0x2508a4['UmbWd']),await _0x2508a4[_0x26c7d7(0x1c2)](sendInstrumentationEvent,_0x428237,_0x2508a4[_0x26c7d7(0x1b4)],messageTypes[_0x26c7d7(0x1e1)],_0x2508a4[_0x26c7d7(0x1a8)],null,_0x428237),process[_0x26c7d7(0x1cd)](0x1)),_0x2508a4['SdKsz'](_0x27681b[_0x26c7d7(0x1ae)],0x190)&&(logger['error'](JSON[_0x26c7d7(0x1db)](_0x27681b['body'])[_0x26c7d7(0x1a5)]),await _0x2508a4['zPUjw'](sendInstrumentationEvent,_0x428237,_0x2508a4['ioJKX'],messageTypes[_0x26c7d7(0x1e1)],_0x2508a4[_0x26c7d7(0x1b7)],null,_0x428237),process[_0x26c7d7(0x1cd)](0x1)),logger[_0x26c7d7(0x1dd)](_0x26c7d7(0x1d4)+JSON['stringify'](_0x27681b)),await _0x2508a4[_0x26c7d7(0x1f2)](sendInstrumentationEvent,_0x428237,_0x2508a4[_0x26c7d7(0x1b4)],messageTypes[_0x26c7d7(0x1e1)],_0x2508a4[_0x26c7d7(0x1d6)],_0x27681b,_0x428237),process[_0x26c7d7(0x1cd)](0x1);}catch(_0x1a9ff2){const _0xce68fe='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x1a9ff2+'\x20\x0a'+JSON[_0x26c7d7(0x1d3)](_0x1a9ff2[_0x26c7d7(0x1f6)])+'\x20';logger[_0x26c7d7(0x1dd)](_0xce68fe),process[_0x26c7d7(0x1cd)](0x1);}};function a21_0x15ff(_0x3cc404,_0x327507){const _0x676044=a21_0x6760();return a21_0x15ff=function(_0x15ffa8,_0x1bedf4){_0x15ffa8=_0x15ffa8-0x1a2;let _0x2b71be=_0x676044[_0x15ffa8];return _0x2b71be;},a21_0x15ff(_0x3cc404,_0x327507);}function a21_0x6760(){const _0x2e4390=['help','Skip\x20insecure\x20cert\x20verification.','383927Theqnm','SdKsz','exit','bEKQl','nhozy','../../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','connectionTimeout','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','addListeners','iibOu','bstackUsername','replace','../../config/constants','2CklAVQ','parse','command','error','epilogue','server-error','ghqYO','ERROR','eYZMa','1973848MmRnvB','gridId','username','stop-grid-called','fIfgB','../../utils/webSocketUtils','skipTlsCertVerify','invalid-grid-id','3460350UYUzKc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WebSocket','../../cloudproviders/utils','name','KwSor','grid','VPLTL','qytph','<UsernamePlaceholder>','debug','stack','argv','../../utils/createk8sClient','FGfUV','7UriySC','unauthorised','1881990RVoBdy','user','options','boolean','uNKgL','../../utils/gridComponents','message','builder','existsSync','nMxGW','ptpty','KfiEr','clusterName','password','info','statusCode','VekeD','5KjkyhH','../../config/logger','11341048TbJAgw','qAXjo','ioJKX','readFileSync','872598SrUZiA','YExsG','description','Browserstack','cloudProvider','stop','string','VEKFJ','Grid\x20stoppped.','INFO','40888830RSTUAR','NDlGj','rBqRZ','default','<PasswordPlaceholder>','clusterRegion','../../utils/utilityMethods','ZVSDw','Adding\x20Websocket\x20listeners'];a21_0x6760=function(){return _0x2e4390;};return a21_0x6760();}
@@ -1 +1 @@
1
- const a22_0x50fbf3=a22_0xd811;(function(_0x2cc089,_0x4b474f){const _0x53275a=a22_0xd811,_0x25ddac=_0x2cc089();while(!![]){try{const _0x3daa26=-parseInt(_0x53275a(0xbe))/0x1+parseInt(_0x53275a(0xbd))/0x2*(parseInt(_0x53275a(0xcb))/0x3)+-parseInt(_0x53275a(0xb0))/0x4+parseInt(_0x53275a(0xcd))/0x5*(-parseInt(_0x53275a(0x8d))/0x6)+parseInt(_0x53275a(0xa1))/0x7*(-parseInt(_0x53275a(0xa6))/0x8)+parseInt(_0x53275a(0xa3))/0x9*(parseInt(_0x53275a(0xc8))/0xa)+parseInt(_0x53275a(0x8a))/0xb*(parseInt(_0x53275a(0xaf))/0xc);if(_0x3daa26===_0x4b474f)break;else _0x25ddac['push'](_0x25ddac['shift']());}catch(_0x9e7eb2){_0x25ddac['push'](_0x25ddac['shift']());}}}(a22_0x4499,0x2e2c1),require('dotenv')[a22_0x50fbf3(0x8b)]());let gridURL=a22_0x50fbf3(0x89),bsApiUrl=a22_0x50fbf3(0x93),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x50fbf3(0x80)][a22_0x50fbf3(0xaa)]||a22_0x50fbf3(0x9b))[a22_0x50fbf3(0x9c)]();if(_env===a22_0x50fbf3(0xda)||_env===a22_0x50fbf3(0x8f))gridURL=a22_0x50fbf3(0xa8),bsApiUrl=a22_0x50fbf3(0xb9),agApiUrl=a22_0x50fbf3(0x85);else(_env===a22_0x50fbf3(0x82)||_env===a22_0x50fbf3(0xba))&&(gridURL=a22_0x50fbf3(0x8c),bsApiUrl=a22_0x50fbf3(0xb7),agApiUrl=a22_0x50fbf3(0x70));exports[a22_0x50fbf3(0xd0)]=process[a22_0x50fbf3(0x80)][a22_0x50fbf3(0xd0)]||gridURL,exports[a22_0x50fbf3(0xc7)]=process[a22_0x50fbf3(0x80)][a22_0x50fbf3(0xc7)]||bsApiUrl,exports[a22_0x50fbf3(0x7b)]=process[a22_0x50fbf3(0x80)][a22_0x50fbf3(0x7b)]||agApiUrl,exports[a22_0x50fbf3(0x7d)]=a22_0x50fbf3(0xd3)+this[a22_0x50fbf3(0x7b)]+a22_0x50fbf3(0xae),exports[a22_0x50fbf3(0x98)]=a22_0x50fbf3(0xc9),exports[a22_0x50fbf3(0xe0)]=a22_0x50fbf3(0xca),exports[a22_0x50fbf3(0xa0)]=a22_0x50fbf3(0xdf),exports[a22_0x50fbf3(0xd7)]='aws',exports[a22_0x50fbf3(0x94)]=a22_0x50fbf3(0x86),exports[a22_0x50fbf3(0x95)]=a22_0x50fbf3(0x7a),exports[a22_0x50fbf3(0xa9)]=a22_0x50fbf3(0x9d),exports[a22_0x50fbf3(0xd1)]='browserstack-turboscale-grid',exports[a22_0x50fbf3(0xb1)]=a22_0x50fbf3(0x7c),exports[a22_0x50fbf3(0xad)]='gcp',exports[a22_0x50fbf3(0x84)]=[this[a22_0x50fbf3(0xd7)],this[a22_0x50fbf3(0xb1)],this[a22_0x50fbf3(0xad)]];const a22_0x6f71e6={};a22_0x6f71e6[a22_0x50fbf3(0x73)]=a22_0x50fbf3(0xb5),a22_0x6f71e6[a22_0x50fbf3(0xc2)]='BrowserStack';const a22_0x169cf5={};a22_0x169cf5[a22_0x50fbf3(0x73)]=a22_0x50fbf3(0x71),a22_0x169cf5[a22_0x50fbf3(0xc2)]=a22_0x50fbf3(0x90);const common_hst_tags_list=[a22_0x6f71e6,a22_0x169cf5];if(process['env'][a22_0x50fbf3(0xc5)]){const parsedTags=process[a22_0x50fbf3(0x80)][a22_0x50fbf3(0xc5)][a22_0x50fbf3(0xc1)](',');parsedTags[a22_0x50fbf3(0xab)](_0xb84c3e=>{const _0x5c8390=a22_0x50fbf3,_0xb25b99=_0xb84c3e[_0x5c8390(0xc1)](':'),_0x4e82bb={};_0x4e82bb[_0x5c8390(0x73)]=_0xb25b99[0x0],_0x4e82bb['Value']=_0xb25b99[0x1],common_hst_tags_list['push'](_0x4e82bb);});}exports[a22_0x50fbf3(0xb6)]=common_hst_tags_list;const a22_0x2713c2={};a22_0x2713c2['browserstack:managedBy']=a22_0x50fbf3(0xd8),a22_0x2713c2[a22_0x50fbf3(0x71)]=a22_0x50fbf3(0x90),exports[a22_0x50fbf3(0xc6)]=a22_0x2713c2,exports[a22_0x50fbf3(0x8e)]=[this[a22_0x50fbf3(0xd7)]];const a22_0x4e018d={};a22_0x4e018d['LOG']='log',a22_0x4e018d[a22_0x50fbf3(0xd9)]=a22_0x50fbf3(0xb3),a22_0x4e018d[a22_0x50fbf3(0xdc)]=a22_0x50fbf3(0xb2),a22_0x4e018d[a22_0x50fbf3(0x75)]=a22_0x50fbf3(0x88),a22_0x4e018d[a22_0x50fbf3(0x74)]='cliRunFinished',exports['WS_EVENTS']=a22_0x4e018d,exports[a22_0x50fbf3(0x76)]={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x6d3831={};a22_0x6d3831[a22_0x50fbf3(0x77)]=a22_0x50fbf3(0xa2)+this['LINK_MESSAGE'],a22_0x6d3831['init']=a22_0x50fbf3(0x78)+this['LINK_MESSAGE'],a22_0x6d3831['configure']=a22_0x50fbf3(0xc0)+this['LINK_MESSAGE'],a22_0x6d3831['create']=a22_0x50fbf3(0xdb)+this['LINK_MESSAGE'],a22_0x6d3831[a22_0x50fbf3(0xac)]={},a22_0x6d3831[a22_0x50fbf3(0xbc)]=a22_0x50fbf3(0xdd)+this[a22_0x50fbf3(0x9f)],a22_0x6d3831[a22_0x50fbf3(0x7f)]=a22_0x50fbf3(0xb4)+this[a22_0x50fbf3(0x9f)],a22_0x6d3831['start']=a22_0x50fbf3(0xbf)+this[a22_0x50fbf3(0x9f)],a22_0x6d3831[a22_0x50fbf3(0xd6)]=a22_0x50fbf3(0x6f)+this['LINK_MESSAGE'],a22_0x6d3831[a22_0x50fbf3(0x72)]=a22_0x50fbf3(0x97)+this[a22_0x50fbf3(0x9f)],a22_0x6d3831[a22_0x50fbf3(0xac)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x6d3831[a22_0x50fbf3(0xac)][a22_0x50fbf3(0x7e)]=a22_0x50fbf3(0x92)+this[a22_0x50fbf3(0x9f)],a22_0x6d3831[a22_0x50fbf3(0xac)][a22_0x50fbf3(0xbb)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x50fbf3(0x9f)],exports[a22_0x50fbf3(0xb8)]=a22_0x6d3831,exports[a22_0x50fbf3(0x79)]=a22_0x50fbf3(0xc3);function a22_0xd811(_0x268927,_0x429ce6){const _0x449994=a22_0x4499();return a22_0xd811=function(_0xd811f7,_0x33a7ea){_0xd811f7=_0xd811f7-0x6f;let _0x20219a=_0x449994[_0xd811f7];return _0x20219a;},a22_0xd811(_0x268927,_0x429ce6);}function a22_0x4499(){const _0x11cc2f=['BrowserStackIAMUser','1080vajAQs','[REDACTED]','370985XVjBfq','grid-profile','aws','DASHBOARD_ENDPOINT','TURBOSCALE_DEPLOYMENT','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','wss://','ERROR','CLUSTER','stop','AWS','BrowserStack','RESOURCES','staging','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','GRID_URL','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','warning','high-scale-grid','IAM_USER_NAME','REDACTED','CLI_ARGS_REGEX','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','grid-api-preprod.bsstag.com','browserstack:service','pre_check','Key','CLI_RUN_FINISHED','CLI_RUN_STARTED','global_registry','root','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','HELP_FOOTER_MESSAGE','BSTACK-ATS-CLUSTER-AUTOSCALER','AG_API_URL','azure','WS_ENDPOINT','grid','connect','env','success','preprod','pre-check','ALL_SUPPORTED_CLOUD_PROVIDERS','grid-api-devhst.bsstag.com','BSTACK-ATS-CLUSTER','UNKNOWN','cliRunStarted','grid.browserstack.com','23386jAvyNj','config','grid-preprod.bsstag.com','6RRwCBo','SUPPORTED_CLOUD_PROVIDERS','stag','BrowserStack-Automate-TurboScale','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','api.browserstack.com','CLUSTER_DEP_STACK_NAME','CLUSTER_AUTOSCALER_STACK_NAME','SUCCESS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','CP_CONFIG_FILE','WARNING','us-east-1','prod','toLowerCase','BSTACK-ATS-CLUSTER-HUB-HA','REGION','LINK_MESSAGE','DEFAULT_GRID_NAME','7gfNSEQ','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','18Ifcapi','messageTypes','TRIAL_GRID_URL','2895232sDAmly','error','grid-devhst.bsstag.com','CLUSTER_HUB_HA_STACK_NAME','BROWSERSTACK_ENV','forEach','list','GCP','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','3936TpByRR','384692hUtazK','AZURE','gridUrl','resourceInfo','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','browserstack:managedBy','COMMON_HST_TAGS','api-preprod.bsstag.com','HELP_HEADER_MESSAGE','api-devhst.bsstag.com','pre-prod','gridProfile','delete','1604nsmeyM','313183KecAQz','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','split','Value','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','INFO','TURBOSCALE_CUSTOM_TAGS','HST_CLUSTER_TAGS','BS_API_URL','242650XRzxMz','credentials'];a22_0x4499=function(){return _0x11cc2f;};return a22_0x4499();}const a22_0x2f8908={};a22_0x2f8908[a22_0x50fbf3(0x96)]=a22_0x50fbf3(0x81),a22_0x2f8908[a22_0x50fbf3(0xd4)]=a22_0x50fbf3(0xa7),a22_0x2f8908[a22_0x50fbf3(0xc4)]='info',a22_0x2f8908[a22_0x50fbf3(0x99)]=a22_0x50fbf3(0xde),a22_0x2f8908[a22_0x50fbf3(0x87)]='unknown',a22_0x2f8908['NULL']=null,exports[a22_0x50fbf3(0xa4)]=a22_0x2f8908,exports[a22_0x50fbf3(0xe2)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x50fbf3(0x91)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x50fbf3(0xe1)]=a22_0x50fbf3(0xcc);const a22_0x364b00={};a22_0x364b00[a22_0x50fbf3(0xce)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x483e7e={};a22_0x483e7e[a22_0x50fbf3(0x83)]=a22_0x364b00,exports['MessageDescription']=a22_0x483e7e,exports[a22_0x50fbf3(0xa5)]=a22_0x50fbf3(0xd2);const a22_0x28df50={};a22_0x28df50[a22_0x50fbf3(0xd5)]='high-scale-grid-cluster',a22_0x28df50['CLOUD_PROVIDER']=a22_0x50fbf3(0xcf),a22_0x28df50[a22_0x50fbf3(0x9e)]=a22_0x50fbf3(0x9a),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x28df50;
1
+ const a22_0x1bfb6a=a22_0xcf14;(function(_0x1e8e2d,_0x4301a6){const _0x2369ee=a22_0xcf14,_0x2e556d=_0x1e8e2d();while(!![]){try{const _0x1e1b67=-parseInt(_0x2369ee(0x217))/0x1*(-parseInt(_0x2369ee(0x213))/0x2)+-parseInt(_0x2369ee(0x1dd))/0x3*(parseInt(_0x2369ee(0x1c9))/0x4)+-parseInt(_0x2369ee(0x1d4))/0x5+parseInt(_0x2369ee(0x1dc))/0x6+-parseInt(_0x2369ee(0x1fd))/0x7*(-parseInt(_0x2369ee(0x1e8))/0x8)+parseInt(_0x2369ee(0x22f))/0x9+parseInt(_0x2369ee(0x224))/0xa*(-parseInt(_0x2369ee(0x21a))/0xb);if(_0x1e1b67===_0x4301a6)break;else _0x2e556d['push'](_0x2e556d['shift']());}catch(_0x52c5d3){_0x2e556d['push'](_0x2e556d['shift']());}}}(a22_0x3cf2,0xca1e1),require(a22_0x1bfb6a(0x20d))['config']());function a22_0x3cf2(){const _0xbd08ed=['MessageDescription','staging','29858YxQnxX','WARNING','high-scale-grid','configure','110sGRXkl','ALL_SUPPORTED_CLOUD_PROVIDERS','stag','22HveaDN','grid-api-devhst.bsstag.com','browserstack-turboscale-grid','pre-prod','connect','REGION','forEach','BS_API_URL','[REDACTED]','Value','892790EMtvRL','HST_CLUSTER_TAGS','delete','IAM_USER_NAME','pre-check','unknown','grid-preprod.bsstag.com','TURBOSCALE_CUSTOM_TAGS','gcp','pre_check','cliRunFinished','4721274KsHYtP','push','BrowserStack-Automate-TurboScale','AZURE','COMMON_HST_TAGS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','40GBYqoN','resourceInfo','CLI_RUN_FINISHED','api-preprod.bsstag.com','start','WS_EVENTS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','SUCCESS','AG_API_URL','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','7184105kMfDBo','split','WS_ENDPOINT','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-devhst.bsstag.com','info','log','stop','97248eAPMjy','17949vsgGux','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLI_RUN_STARTED','HELP_FOOTER_MESSAGE','list','GCP','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gridProfile','AWS','high-scale-grid-cluster','gridUrl','2560784JGAMgN','RAW_ARGS_REGEX','CP_CONFIG_FILE','grid.browserstack.com','ERROR','preprod','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','root','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','TURBOSCALE_DEPLOYMENT','BROWSERSTACK_ENV','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','REDACTED','CLI_ARGS_REGEX','Key','grid-api-preprod.bsstag.com','error','BrowserStack','HELP_HEADER_MESSAGE','grid-api.browserstack.com','global_registry','7XIPMHa','SUPPORTED_CLOUD_PROVIDERS','env','BrowserStackIAMUser','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','create','LINK_MESSAGE','browserstack:service','success','cliRunStarted','aws','UNKNOWN','browserstack:managedBy','CLOUD_PROVIDER','grid','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','dotenv','wss://','LOG','GRID_URL'];a22_0x3cf2=function(){return _0xbd08ed;};return a22_0x3cf2();}let gridURL=a22_0x1bfb6a(0x1eb),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x1bfb6a(0x1fb);const _env=(process['env'][a22_0x1bfb6a(0x1f2)]||'prod')['toLowerCase']();if(_env===a22_0x1bfb6a(0x212)||_env===a22_0x1bfb6a(0x219))gridURL=a22_0x1bfb6a(0x1d8),bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x1bfb6a(0x21b);else(_env===a22_0x1bfb6a(0x1ed)||_env===a22_0x1bfb6a(0x21d))&&(gridURL=a22_0x1bfb6a(0x22a),bsApiUrl=a22_0x1bfb6a(0x1cc),agApiUrl=a22_0x1bfb6a(0x1f7));exports['DASHBOARD_ENDPOINT']=process[a22_0x1bfb6a(0x1ff)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x1bfb6a(0x221)]=process[a22_0x1bfb6a(0x1ff)][a22_0x1bfb6a(0x221)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x1bfb6a(0x1ff)][a22_0x1bfb6a(0x1d2)]||agApiUrl,exports[a22_0x1bfb6a(0x1d6)]=a22_0x1bfb6a(0x20e)+this[a22_0x1bfb6a(0x1d2)]+a22_0x1bfb6a(0x1e3),exports[a22_0x1bfb6a(0x1ea)]='credentials',exports[a22_0x1bfb6a(0x227)]=a22_0x1bfb6a(0x200),exports['DEFAULT_GRID_NAME']=a22_0x1bfb6a(0x215),exports[a22_0x1bfb6a(0x1e5)]=a22_0x1bfb6a(0x207),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x1bfb6a(0x1f1)]=a22_0x1bfb6a(0x21c),exports[a22_0x1bfb6a(0x232)]='azure',exports[a22_0x1bfb6a(0x1e2)]=a22_0x1bfb6a(0x22c),exports[a22_0x1bfb6a(0x218)]=[this[a22_0x1bfb6a(0x1e5)],this['AZURE'],this[a22_0x1bfb6a(0x1e2)]];const a22_0x5805b3={};a22_0x5805b3[a22_0x1bfb6a(0x1f6)]=a22_0x1bfb6a(0x209),a22_0x5805b3['Value']=a22_0x1bfb6a(0x1f9);const a22_0x3c4f42={};a22_0x3c4f42['Key']=a22_0x1bfb6a(0x204),a22_0x3c4f42['Value']=a22_0x1bfb6a(0x231);const common_hst_tags_list=[a22_0x5805b3,a22_0x3c4f42];if(process['env']['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x1bfb6a(0x1ff)][a22_0x1bfb6a(0x22b)][a22_0x1bfb6a(0x1d5)](',');parsedTags[a22_0x1bfb6a(0x220)](_0x47fd51=>{const _0x5d82ae=a22_0x1bfb6a,_0x392be8=_0x47fd51['split'](':'),_0x251024={};_0x251024[_0x5d82ae(0x1f6)]=_0x392be8[0x0],_0x251024[_0x5d82ae(0x223)]=_0x392be8[0x1],common_hst_tags_list[_0x5d82ae(0x230)](_0x251024);});}exports[a22_0x1bfb6a(0x233)]=common_hst_tags_list;const a22_0x1b7086={};a22_0x1b7086[a22_0x1bfb6a(0x209)]=a22_0x1bfb6a(0x1f9),a22_0x1b7086[a22_0x1bfb6a(0x204)]=a22_0x1bfb6a(0x231),exports[a22_0x1bfb6a(0x225)]=a22_0x1b7086,exports[a22_0x1bfb6a(0x1fe)]=[this[a22_0x1bfb6a(0x1e5)]];const a22_0x39bfda={};a22_0x39bfda[a22_0x1bfb6a(0x20f)]=a22_0x1bfb6a(0x1da),a22_0x39bfda['RESOURCES']=a22_0x1bfb6a(0x1ca),a22_0x39bfda[a22_0x1bfb6a(0x210)]=a22_0x1bfb6a(0x1e7),a22_0x39bfda[a22_0x1bfb6a(0x1df)]=a22_0x1bfb6a(0x206),a22_0x39bfda[a22_0x1bfb6a(0x1cb)]=a22_0x1bfb6a(0x22e),exports[a22_0x1bfb6a(0x1ce)]=a22_0x39bfda,exports[a22_0x1bfb6a(0x1fc)]={},exports['LINK_MESSAGE']=a22_0x1bfb6a(0x1d3);const a22_0x2b1ced={};a22_0x2b1ced[a22_0x1bfb6a(0x1ef)]=a22_0x1bfb6a(0x1c8)+this['LINK_MESSAGE'],a22_0x2b1ced['init']=a22_0x1bfb6a(0x1d7)+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x216)]=a22_0x1bfb6a(0x1de)+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x202)]=a22_0x1bfb6a(0x1ee)+this['LINK_MESSAGE'],a22_0x2b1ced[a22_0x1bfb6a(0x1e1)]={},a22_0x2b1ced[a22_0x1bfb6a(0x226)]=a22_0x1bfb6a(0x201)+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x21e)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1cd)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1db)]=a22_0x1bfb6a(0x1f0)+this['LINK_MESSAGE'],a22_0x2b1ced[a22_0x1bfb6a(0x22d)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1e1)][a22_0x1bfb6a(0x1ef)]=a22_0x1bfb6a(0x1cf)+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1e1)][a22_0x1bfb6a(0x20b)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1e1)][a22_0x1bfb6a(0x1e4)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x1bfb6a(0x203)],exports[a22_0x1bfb6a(0x1fa)]=a22_0x2b1ced,exports[a22_0x1bfb6a(0x1e0)]=a22_0x1bfb6a(0x1d0);const a22_0xd13a3a={};a22_0xd13a3a[a22_0x1bfb6a(0x1d1)]=a22_0x1bfb6a(0x205),a22_0xd13a3a[a22_0x1bfb6a(0x1ec)]=a22_0x1bfb6a(0x1f8),a22_0xd13a3a['INFO']=a22_0x1bfb6a(0x1d9),a22_0xd13a3a[a22_0x1bfb6a(0x214)]='warning',a22_0xd13a3a[a22_0x1bfb6a(0x208)]=a22_0x1bfb6a(0x229),a22_0xd13a3a['NULL']=null,exports['messageTypes']=a22_0xd13a3a,exports[a22_0x1bfb6a(0x1f5)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1bfb6a(0x1e9)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1bfb6a(0x1f4)]=a22_0x1bfb6a(0x222);function a22_0xcf14(_0x371f8b,_0x5acd1d){const _0x3cf290=a22_0x3cf2();return a22_0xcf14=function(_0xcf14fc,_0x2883b4){_0xcf14fc=_0xcf14fc-0x1c8;let _0xbcfc68=_0x3cf290[_0xcf14fc];return _0xbcfc68;},a22_0xcf14(_0x371f8b,_0x5acd1d);}const a22_0x4a5b2a={};a22_0x4a5b2a['grid-profile']=a22_0x1bfb6a(0x20c);const a22_0xd7d84c={};a22_0xd7d84c[a22_0x1bfb6a(0x228)]=a22_0x4a5b2a,exports[a22_0x1bfb6a(0x211)]=a22_0xd7d84c,exports['TRIAL_GRID_URL']=a22_0x1bfb6a(0x1f3);const a22_0x36f5e7={};a22_0x36f5e7['CLUSTER']=a22_0x1bfb6a(0x1e6),a22_0x36f5e7[a22_0x1bfb6a(0x20a)]=a22_0x1bfb6a(0x207),a22_0x36f5e7[a22_0x1bfb6a(0x21f)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x36f5e7;
@@ -1 +1 @@
1
- const a23_0x1d6015=a23_0x2e6e;(function(_0x1a2f08,_0x393d4f){const _0x21fbd0=a23_0x2e6e,_0x3074e3=_0x1a2f08();while(!![]){try{const _0x1ab7dc=-parseInt(_0x21fbd0(0x162))/0x1+parseInt(_0x21fbd0(0x149))/0x2*(-parseInt(_0x21fbd0(0x158))/0x3)+parseInt(_0x21fbd0(0x14d))/0x4+-parseInt(_0x21fbd0(0x164))/0x5+parseInt(_0x21fbd0(0x144))/0x6*(parseInt(_0x21fbd0(0x14f))/0x7)+parseInt(_0x21fbd0(0x143))/0x8+-parseInt(_0x21fbd0(0x159))/0x9*(-parseInt(_0x21fbd0(0x15d))/0xa);if(_0x1ab7dc===_0x393d4f)break;else _0x3074e3['push'](_0x3074e3['shift']());}catch(_0x458f71){_0x3074e3['push'](_0x3074e3['shift']());}}}(a23_0x5519,0xd0662));function a23_0x2e6e(_0x13a90a,_0x49f843){const _0x5519b5=a23_0x5519();return a23_0x2e6e=function(_0x2e6e5d,_0x3871fb){_0x2e6e5d=_0x2e6e5d-0x143;let _0xe7ad7b=_0x5519b5[_0x2e6e5d];return _0xe7ad7b;},a23_0x2e6e(_0x13a90a,_0x49f843);}const winston=require(a23_0x1d6015(0x161)),fs=require('fs'),path=require(a23_0x1d6015(0x160)),logDir=a23_0x1d6015(0x153);!fs[a23_0x1d6015(0x14e)](logDir)&&fs[a23_0x1d6015(0x146)](logDir);const a23_0x3a64ff={};a23_0x3a64ff[a23_0x1d6015(0x156)]=a23_0x1d6015(0x14c);const a23_0x1e16e4={};function a23_0x5519(){const _0x338ae9=['name','createLogger','YYYY-MM-DD\x20HH:mm:ss','2215752irMbZm','existsSync','21zpjnlm','level','events.log','debug','log','message','fileLogger','format','\x20-\x20','21414wPUgEN','2701539EsWqAJ','Console','usage.log','console.info','10tUuhda','File','printf','path','winston','871864cUdrxA','join','2105145DOoohu','6799728ZBmJQg','1855608kmquYY','timestamp','mkdirSync','transports','combine','136YSmJpR'];a23_0x5519=function(){return _0x338ae9;};return a23_0x5519();}a23_0x1e16e4['level']=!![];const a23_0x293606={};a23_0x293606[a23_0x1d6015(0x14a)]=a23_0x1d6015(0x15c),exports['logger']=new winston['createLogger']({'format':winston[a23_0x1d6015(0x156)][a23_0x1d6015(0x148)](winston[a23_0x1d6015(0x156)][a23_0x1d6015(0x145)](a23_0x3a64ff),winston[a23_0x1d6015(0x156)]['colorize'](a23_0x1e16e4),winston[a23_0x1d6015(0x156)][a23_0x1d6015(0x15f)](_0x8fc17b=>_0x8fc17b['timestamp']+a23_0x1d6015(0x157)+_0x8fc17b[a23_0x1d6015(0x150)]+':\x20'+_0x8fc17b[a23_0x1d6015(0x154)])),'transports':[new winston[(a23_0x1d6015(0x147))][(a23_0x1d6015(0x15a))](a23_0x293606),new winston[(a23_0x1d6015(0x147))]['File']({'filename':path['join'](logDir,a23_0x1d6015(0x151)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x1d6015(0x147))][(a23_0x1d6015(0x15e))]({'filename':path[a23_0x1d6015(0x163)](logDir,a23_0x1d6015(0x15b)),'level':a23_0x1d6015(0x152)})]};exports[a23_0x1d6015(0x155)]=new winston[(a23_0x1d6015(0x14b))](winstonFileLoggerParams);
1
+ function a23_0xb39e(_0x4b5a04,_0x15172f){const _0x20447e=a23_0x2044();return a23_0xb39e=function(_0xb39ed4,_0x5395a4){_0xb39ed4=_0xb39ed4-0x66;let _0x2790c0=_0x20447e[_0xb39ed4];return _0x2790c0;},a23_0xb39e(_0x4b5a04,_0x15172f);}const a23_0x3f3ac8=a23_0xb39e;(function(_0x3580ba,_0x2ffd3a){const _0x2debc2=a23_0xb39e,_0x11d256=_0x3580ba();while(!![]){try{const _0x47c621=-parseInt(_0x2debc2(0x7a))/0x1*(parseInt(_0x2debc2(0x66))/0x2)+parseInt(_0x2debc2(0x7d))/0x3*(-parseInt(_0x2debc2(0x71))/0x4)+parseInt(_0x2debc2(0x6a))/0x5*(-parseInt(_0x2debc2(0x67))/0x6)+-parseInt(_0x2debc2(0x83))/0x7+parseInt(_0x2debc2(0x84))/0x8+-parseInt(_0x2debc2(0x7e))/0x9+parseInt(_0x2debc2(0x70))/0xa;if(_0x47c621===_0x2ffd3a)break;else _0x11d256['push'](_0x11d256['shift']());}catch(_0x12f567){_0x11d256['push'](_0x11d256['shift']());}}}(a23_0x2044,0xcd42f));const winston=require(a23_0x3f3ac8(0x6b)),fs=require('fs'),path=require(a23_0x3f3ac8(0x69)),logDir='log';!fs[a23_0x3f3ac8(0x80)](logDir)&&fs[a23_0x3f3ac8(0x6f)](logDir);const a23_0x27bc85={};a23_0x27bc85[a23_0x3f3ac8(0x7f)]=a23_0x3f3ac8(0x7b);const a23_0x48b928={};a23_0x48b928[a23_0x3f3ac8(0x79)]=!![];const a23_0x52cdd7={};function a23_0x2044(){const _0x50b285=['existsSync','usage.log','printf','10617852JvNteU','5711240uLgBtu','31172ERfhCl','36vBaSiI','name','path','395585TuUDhk','winston','timestamp','transports','\x20-\x20','mkdirSync','50153500DVcmFX','20XwZmGX','debug','File','join','message','createLogger','console.info','fileLogger','level','46msLgWQ','YYYY-MM-DD\x20HH:mm:ss','events.log','598911cbwlBl','10636425AlpGpO','format'];a23_0x2044=function(){return _0x50b285;};return a23_0x2044();}a23_0x52cdd7[a23_0x3f3ac8(0x68)]=a23_0x3f3ac8(0x77),exports['logger']=new winston['createLogger']({'format':winston['format']['combine'](winston[a23_0x3f3ac8(0x7f)][a23_0x3f3ac8(0x6c)](a23_0x27bc85),winston[a23_0x3f3ac8(0x7f)]['colorize'](a23_0x48b928),winston[a23_0x3f3ac8(0x7f)][a23_0x3f3ac8(0x82)](_0x14f957=>_0x14f957[a23_0x3f3ac8(0x6c)]+a23_0x3f3ac8(0x6e)+_0x14f957[a23_0x3f3ac8(0x79)]+':\x20'+_0x14f957[a23_0x3f3ac8(0x75)])),'transports':[new winston[(a23_0x3f3ac8(0x6d))]['Console'](a23_0x52cdd7),new winston[(a23_0x3f3ac8(0x6d))][(a23_0x3f3ac8(0x73))]({'filename':path[a23_0x3f3ac8(0x74)](logDir,a23_0x3f3ac8(0x7c)),'level':a23_0x3f3ac8(0x72)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x3f3ac8(0x73))]({'filename':path[a23_0x3f3ac8(0x74)](logDir,a23_0x3f3ac8(0x81)),'level':'debug'})]};exports[a23_0x3f3ac8(0x78)]=new winston[(a23_0x3f3ac8(0x76))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x421a9b=a24_0x4176;(function(_0x32d521,_0x265f5e){const _0x25e611=a24_0x4176,_0x143449=_0x32d521();while(!![]){try{const _0x35392a=parseInt(_0x25e611(0xf3))/0x1*(parseInt(_0x25e611(0xeb))/0x2)+parseInt(_0x25e611(0xf4))/0x3*(-parseInt(_0x25e611(0xf6))/0x4)+-parseInt(_0x25e611(0xf7))/0x5+-parseInt(_0x25e611(0xf2))/0x6+parseInt(_0x25e611(0xf9))/0x7*(-parseInt(_0x25e611(0xef))/0x8)+-parseInt(_0x25e611(0xf1))/0x9*(parseInt(_0x25e611(0xf8))/0xa)+-parseInt(_0x25e611(0xec))/0xb*(-parseInt(_0x25e611(0xfa))/0xc);if(_0x35392a===_0x265f5e)break;else _0x143449['push'](_0x143449['shift']());}catch(_0xcbbba6){_0x143449['push'](_0x143449['shift']());}}}(a24_0x50a2,0x773be));function a24_0x50a2(){const _0x453ceb=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','2aSflNW','31636aKCOjf','usage','epilogue','2411816rWYfzF','NCPGV','68391VBXeWp','574398pYkmtv','215668XFPNtF','1212807GLOXuZ','help','4wQBHlT','247380SvMkTm','970auCYCF','7nLHGHA','7764SeuAFW','root','demandCommand','commands','commandDir','gjmTg','exports'];a24_0x50a2=function(){return _0x453ceb;};return a24_0x50a2();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x4176(_0x18cd00,_0x4b8d36){const _0x50a2b4=a24_0x50a2();return a24_0x4176=function(_0x41762b,_0x4d3791){_0x41762b=_0x41762b-0xea;let _0x51e99c=_0x50a2b4[_0x41762b];return _0x51e99c;},a24_0x4176(_0x18cd00,_0x4b8d36);}process['env'][a24_0x421a9b(0xea)]=0x1;function run(_0x28973b){const _0x2b517c=a24_0x421a9b,_0x5d3584={};_0x5d3584[_0x2b517c(0xff)]=_0x2b517c(0xfd),_0x5d3584[_0x2b517c(0xf0)]='help';const _0x2a046a=_0x5d3584;_0x28973b[_0x2b517c(0xed)](HELP_HEADER_MESSAGE[_0x2b517c(0xfb)])[_0x2b517c(0xfe)](_0x2a046a[_0x2b517c(0xff)])[_0x2b517c(0xfc)]()[_0x2b517c(0xf5)](_0x2a046a['NCPGV'])[_0x2b517c(0xee)](HELP_FOOTER_MESSAGE);}module[a24_0x421a9b(0x100)]=run;
2
+ 'use strict';const a24_0x28abba=a24_0x2514;(function(_0xa55070,_0x34d945){const _0x231e15=a24_0x2514,_0x18b0af=_0xa55070();while(!![]){try{const _0x3f8a87=parseInt(_0x231e15(0x10a))/0x1*(parseInt(_0x231e15(0x10f))/0x2)+-parseInt(_0x231e15(0x10c))/0x3+parseInt(_0x231e15(0x11a))/0x4*(parseInt(_0x231e15(0x107))/0x5)+parseInt(_0x231e15(0x106))/0x6*(-parseInt(_0x231e15(0x10b))/0x7)+-parseInt(_0x231e15(0x10e))/0x8*(-parseInt(_0x231e15(0x116))/0x9)+parseInt(_0x231e15(0x113))/0xa*(parseInt(_0x231e15(0x112))/0xb)+-parseInt(_0x231e15(0x11c))/0xc*(parseInt(_0x231e15(0x118))/0xd);if(_0x3f8a87===_0x34d945)break;else _0x18b0af['push'](_0x18b0af['shift']());}catch(_0x14454a){_0x18b0af['push'](_0x18b0af['shift']());}}}(a24_0x2772,0x87555));function a24_0x2514(_0x2583fd,_0x1118ea){const _0x277275=a24_0x2772();return a24_0x2514=function(_0x2514c1,_0x323d93){_0x2514c1=_0x2514c1-0x105;let _0x51197a=_0x277275[_0x2514c1];return _0x51197a;},a24_0x2514(_0x2583fd,_0x1118ea);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x28abba(0x108));process[a24_0x28abba(0x105)][a24_0x28abba(0x111)]=0x1;function run(_0x42dbf9){const _0x2262ee=a24_0x28abba,_0x620b07={};_0x620b07['IAXBt']=_0x2262ee(0x11b),_0x620b07[_0x2262ee(0x119)]=_0x2262ee(0x114);const _0x217425=_0x620b07;_0x42dbf9[_0x2262ee(0x10d)](HELP_HEADER_MESSAGE[_0x2262ee(0x109)])[_0x2262ee(0x110)](_0x217425['IAXBt'])[_0x2262ee(0x117)]()[_0x2262ee(0x114)](_0x217425['FinaQ'])[_0x2262ee(0x115)](HELP_FOOTER_MESSAGE);}function a24_0x2772(){const _0x43b570=['20423SBSTmv','FinaQ','3556428azvuJc','commands','3432xJWBSg','env','3492714WKSIKv','5koViRX','./config/constants','root','533459rnYCbV','7wNNsts','2548905afUNMA','usage','539240SSKIac','2vohaGF','commandDir','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','154EMJYTH','482710veNQmH','help','epilogue','45VtymbI','demandCommand'];a24_0x2772=function(){return _0x43b570;};return a24_0x2772();}module['exports']=run;