browserstack-node-sdk 1.40.4 → 1.40.6

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_0x404f(_0x1dcc76,_0x1250dc){const _0x26cd22=a15_0x26cd();return a15_0x404f=function(_0x404fa1,_0x5606bb){_0x404fa1=_0x404fa1-0x1db;let _0x577f9b=_0x26cd22[_0x404fa1];return _0x577f9b;},a15_0x404f(_0x1dcc76,_0x1250dc);}const a15_0x4730d7=a15_0x404f;(function(_0x2653b6,_0x159a3e){const _0x5de15e=a15_0x404f,_0x25319e=_0x2653b6();while(!![]){try{const _0x369361=-parseInt(_0x5de15e(0x1f7))/0x1+-parseInt(_0x5de15e(0x200))/0x2*(-parseInt(_0x5de15e(0x22a))/0x3)+parseInt(_0x5de15e(0x220))/0x4*(-parseInt(_0x5de15e(0x217))/0x5)+-parseInt(_0x5de15e(0x1f0))/0x6*(-parseInt(_0x5de15e(0x1f3))/0x7)+-parseInt(_0x5de15e(0x22f))/0x8*(parseInt(_0x5de15e(0x21f))/0x9)+-parseInt(_0x5de15e(0x21e))/0xa+parseInt(_0x5de15e(0x216))/0xb*(parseInt(_0x5de15e(0x229))/0xc);if(_0x369361===_0x159a3e)break;else _0x25319e['push'](_0x25319e['shift']());}catch(_0x220443){_0x25319e['push'](_0x25319e['shift']());}}}(a15_0x26cd,0x26bda));const fs=require('fs'),got=require(a15_0x4730d7(0x211)),{table}=require(a15_0x4730d7(0x1dc)),{v4:uuidv4}=require(a15_0x4730d7(0x21d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4730d7(0x219)),{getCredentialsPath,getAuthHeader}=require(a15_0x4730d7(0x208)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x26cd(){const _0xa58154=['944ShfhQN','KdWAI','allGrids','table','handler','command','GET','epilogue','cikGn','keqRZ','queued','list-grids-called','log','name','BxjSJ','nGIkR','INFO','https://','DAhEg','ijHKb','/packages/cli/get-all-grids','readFileSync','pRYtH','11982FfHOQs','statusCode','iSuXF','322UrtlsV','usage','grid','exit','78172MsNRKH','dQGWf','ERROR','username','ooBmq','unauthorised','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','forEach','49750CkJUbe','Kszgf','Browserstack','error','init-not-called','stringify','type','options','../../utils/utilityMethods','bcEPY','parse','password','AVqTM','/packages/cli/get-grids','all-grids','desc','htRcO','got','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cluster-name','status','3498IfbJMF','5465iEuksu','grid-id','../../config/constants','existsSync','UesUk','argv','uuid','2656360FKslCS','8370OGItZm','20NyrRsu','unknown-error','VlLWV','\x0aFound\x20the\x20following\x20grids:\x0a','stack','grid-name','kYhea','help','grids','13272QlMhol','21IlWHkr','body','builder','running','push'];a15_0x26cd=function(){return _0xa58154;};return a15_0x26cd();}exports[a15_0x4730d7(0x1de)]=a15_0x4730d7(0x228),exports[a15_0x4730d7(0x20f)]=a15_0x4730d7(0x1fe),exports[a15_0x4730d7(0x22c)]=function(_0x2d6822){const _0x229190=a15_0x4730d7,_0xa63f3d={};_0xa63f3d[_0x229190(0x201)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0xa63f3d[_0x229190(0x230)]='boolean',_0xa63f3d[_0x229190(0x209)]=_0x229190(0x227);const _0x563bba=_0xa63f3d,_0x5c6444={};_0x5c6444[_0x229190(0x212)]=_0x563bba['Kszgf'],_0x5c6444[_0x229190(0x206)]=_0x563bba[_0x229190(0x230)];const _0x166273={};return _0x166273[_0x229190(0x20e)]=_0x5c6444,_0x2d6822[_0x229190(0x1f4)](HELP_HEADER_MESSAGE['list'][_0x229190(0x1f5)])[_0x229190(0x1e0)](HELP_FOOTER_MESSAGE)[_0x229190(0x207)](_0x166273)['help'](_0x563bba['bcEPY'])[_0x229190(0x21c)];},exports[a15_0x4730d7(0x1dd)]=async function(_0x2ba063){const _0x3bc04b=a15_0x4730d7,_0x341a06={'tbJaf':function(_0x46df17){return _0x46df17();},'cikGn':function(_0x5ae413){return _0x5ae413();},'htRcO':_0x3bc04b(0x1fd),'AVqTM':function(_0x36e660,_0x2fc4a7,_0x403b00,_0x493fb6,_0x30fd8b,_0x1bf137,_0x58f351){return _0x36e660(_0x2fc4a7,_0x403b00,_0x493fb6,_0x30fd8b,_0x1bf137,_0x58f351);},'BxjSJ':_0x3bc04b(0x1e4),'VJTbO':_0x3bc04b(0x204),'ASzQj':function(_0x1f3c81){return _0x1f3c81();},'VlLWV':_0x3bc04b(0x1df),'nKklK':function(_0x4fd594,_0x440ba5,_0x29cdb2){return _0x4fd594(_0x440ba5,_0x29cdb2);},'ijHKb':function(_0x5b5d2f,_0x25633c,_0x5072ca,_0x26263f,_0x3137c3,_0x3692ca,_0x37b007){return _0x5b5d2f(_0x25633c,_0x5072ca,_0x26263f,_0x3137c3,_0x3692ca,_0x37b007);},'dQGWf':function(_0x5e09ff,_0x1a2f6d,_0x365621){return _0x5e09ff(_0x1a2f6d,_0x365621);},'ooBmq':function(_0x9e6051,_0x4e5c3c){return _0x9e6051!==_0x4e5c3c;},'PQLCK':function(_0x2c4a56,_0x131bee){return _0x2c4a56===_0x131bee;},'UesUk':_0x3bc04b(0x223),'nGIkR':_0x3bc04b(0x218),'zldyb':_0x3bc04b(0x225),'iSuXF':_0x3bc04b(0x215),'pRYtH':'running','QsnjZ':'queued','Typhp':_0x3bc04b(0x214),'keqRZ':function(_0x53fb2f,_0x57f7e1){return _0x53fb2f(_0x57f7e1);},'kYhea':_0x3bc04b(0x213),'qPQbo':_0x3bc04b(0x1fc),'DAhEg':'server-error','nfcrs':_0x3bc04b(0x221)};try{global_registry['requestId']=_0x341a06['tbJaf'](uuidv4);!fs[_0x3bc04b(0x21a)](_0x341a06[_0x3bc04b(0x1e1)](getCredentialsPath))&&(console[_0x3bc04b(0x203)](_0x341a06[_0x3bc04b(0x210)]),await _0x341a06[_0x3bc04b(0x20c)](sendInstrumentationEvent,_0x2ba063,_0x341a06[_0x3bc04b(0x1e7)],messageTypes[_0x3bc04b(0x1f9)],_0x341a06['VJTbO'],null,_0x2ba063),process[_0x3bc04b(0x1f6)](0x1));const _0x9627d=JSON[_0x3bc04b(0x20a)](fs[_0x3bc04b(0x1ee)](_0x341a06['ASzQj'](getCredentialsPath)));let _0x1e651a=_0x3bc04b(0x1ea)+AG_API_URL+_0x3bc04b(0x20d);_0x2ba063[_0x3bc04b(0x1db)]&&(_0x1e651a=_0x3bc04b(0x1ea)+AG_API_URL+_0x3bc04b(0x1ed));const _0x3bb7ad={'method':_0x341a06[_0x3bc04b(0x222)],'headers':_0x341a06['nKklK'](getAuthHeader,_0x9627d[_0x3bc04b(0x202)][_0x3bc04b(0x1fa)],_0x9627d['Browserstack'][_0x3bc04b(0x20b)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x9627d['Browserstack'][_0x3bc04b(0x1fa)],global_registry['bstackAccesskey']=_0x9627d[_0x3bc04b(0x202)]['password'],_0x341a06['ijHKb'](sendInstrumentationEvent,_0x2ba063,_0x341a06['BxjSJ'],messageTypes[_0x3bc04b(0x1e9)],null,null,_0x2ba063);const _0x425101=await _0x341a06[_0x3bc04b(0x1f8)](got,_0x1e651a,_0x3bb7ad);if(_0x341a06[_0x3bc04b(0x1fb)](_0x425101,null)&&_0x341a06[_0x3bc04b(0x1fb)](_0x425101,undefined)&&_0x341a06['PQLCK'](_0x425101[_0x3bc04b(0x1f1)],0xc8)){const _0x3b238a=JSON[_0x3bc04b(0x20a)](_0x425101[_0x3bc04b(0x22b)]);console[_0x3bc04b(0x1e5)](_0x341a06[_0x3bc04b(0x21b)]);const _0x4d4f53=[];_0x4d4f53[_0x3bc04b(0x22e)]([_0x341a06[_0x3bc04b(0x1e8)],_0x341a06['zldyb'],_0x341a06[_0x3bc04b(0x1f2)],_0x341a06[_0x3bc04b(0x1ef)],_0x341a06['QsnjZ'],_0x341a06['Typhp']]),_0x3b238a[_0x3bc04b(0x1ff)](_0x11b7d8=>{const _0x207afa=_0x3bc04b;_0x4d4f53['push']([_0x11b7d8['id'],_0x11b7d8[_0x207afa(0x1e6)],_0x11b7d8['status'],_0x11b7d8[_0x207afa(0x22d)],_0x11b7d8[_0x207afa(0x1e3)],_0x11b7d8['clusterName']]);}),console[_0x3bc04b(0x1e5)](_0x341a06[_0x3bc04b(0x1e2)](table,_0x4d4f53)),process[_0x3bc04b(0x1f6)](0x0);}_0x341a06['PQLCK'](_0x425101[_0x3bc04b(0x1f1)],0x191)&&(console[_0x3bc04b(0x203)](_0x341a06[_0x3bc04b(0x226)]),await _0x341a06['ijHKb'](sendInstrumentationEvent,_0x2ba063,_0x341a06[_0x3bc04b(0x1e7)],messageTypes[_0x3bc04b(0x1f9)],_0x341a06['qPQbo'],null,_0x2ba063),process[_0x3bc04b(0x1f6)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3bc04b(0x205)](_0x425101)),await _0x341a06[_0x3bc04b(0x20c)](sendInstrumentationEvent,_0x2ba063,_0x341a06['BxjSJ'],messageTypes['ERROR'],_0x341a06[_0x3bc04b(0x1eb)],_0x425101,_0x2ba063),process[_0x3bc04b(0x1f6)](0x1);}catch(_0x5ad55a){console[_0x3bc04b(0x203)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5ad55a[_0x3bc04b(0x224)]),await _0x341a06[_0x3bc04b(0x1ec)](sendInstrumentationEvent,_0x2ba063,_0x341a06['BxjSJ'],messageTypes[_0x3bc04b(0x1f9)],_0x341a06['nfcrs'],_0x5ad55a,_0x2ba063),process['exit'](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_0x253cfc=a16_0x3b75;function a16_0x3b75(_0x49d4bc,_0x5f171c){const _0x325017=a16_0x3250();return a16_0x3b75=function(_0x3b75ec,_0x573f64){_0x3b75ec=_0x3b75ec-0xc4;let _0x396574=_0x325017[_0x3b75ec];return _0x396574;},a16_0x3b75(_0x49d4bc,_0x5f171c);}(function(_0x56bd72,_0x572b3e){const _0x6c7fcb=a16_0x3b75,_0x910763=_0x56bd72();while(!![]){try{const _0x1ec7a7=-parseInt(_0x6c7fcb(0xda))/0x1*(parseInt(_0x6c7fcb(0xd1))/0x2)+parseInt(_0x6c7fcb(0xc8))/0x3+parseInt(_0x6c7fcb(0xc4))/0x4+-parseInt(_0x6c7fcb(0xd0))/0x5+parseInt(_0x6c7fcb(0xde))/0x6*(parseInt(_0x6c7fcb(0xcb))/0x7)+parseInt(_0x6c7fcb(0xdc))/0x8+-parseInt(_0x6c7fcb(0xce))/0x9;if(_0x1ec7a7===_0x572b3e)break;else _0x910763['push'](_0x910763['shift']());}catch(_0x4fbe6a){_0x910763['push'](_0x910763['shift']());}}}(a16_0x3250,0xe08a9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x253cfc(0xc7));exports[a16_0x253cfc(0xd4)]=a16_0x253cfc(0xdd),exports[a16_0x253cfc(0xd8)]=a16_0x253cfc(0xcd),exports[a16_0x253cfc(0xc6)]=function(_0x56e2bd){const _0x866edc=a16_0x253cfc,_0x2deaff={};_0x2deaff['naMHf']=_0x866edc(0xd9),_0x2deaff['nxcVi']=_0x866edc(0xc9);const _0x2896c0=_0x2deaff;return _0x56e2bd[_0x866edc(0xca)](HELP_HEADER_MESSAGE[_0x866edc(0xcf)])[_0x866edc(0xcc)](HELP_FOOTER_MESSAGE)[_0x866edc(0xd3)](_0x2896c0[_0x866edc(0xd5)])[_0x866edc(0xd2)]()[_0x866edc(0xdb)]()[_0x866edc(0xd6)]()[_0x866edc(0xc9)](_0x2896c0[_0x866edc(0xc5)]);},exports[a16_0x253cfc(0xd7)]=function(_0x3312e3){};function a16_0x3250(){const _0x2b7dc6=['epilogue','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','13244886yAKCAA','pre_check','7960555UiNEKs','2096qxvTWz','demandCommand','commandDir','command','naMHf','strict','handler','desc','precheck_commands','1604KljztN','recommendCommands','4688992cpTuHh','pre-check','1804284BssexC','7140284ovlpqL','nxcVi','builder','../config/constants','4466997UwPLLJ','help','usage','42hbjAlW'];a16_0x3250=function(){return _0x2b7dc6;};return a16_0x3250();}
@@ -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_0x1fbbf4=a17_0x1a59;(function(_0x2b249c,_0x34dbd7){const _0x5c3898=a17_0x1a59,_0x2498b7=_0x2b249c();while(!![]){try{const _0x5bc5fb=parseInt(_0x5c3898(0x164))/0x1+-parseInt(_0x5c3898(0x1c6))/0x2*(parseInt(_0x5c3898(0x121))/0x3)+-parseInt(_0x5c3898(0x19f))/0x4*(parseInt(_0x5c3898(0x1b9))/0x5)+parseInt(_0x5c3898(0x1d5))/0x6*(parseInt(_0x5c3898(0x1cd))/0x7)+parseInt(_0x5c3898(0x193))/0x8*(-parseInt(_0x5c3898(0x1f6))/0x9)+-parseInt(_0x5c3898(0x142))/0xa+parseInt(_0x5c3898(0x1fa))/0xb;if(_0x5bc5fb===_0x34dbd7)break;else _0x2498b7['push'](_0x2498b7['shift']());}catch(_0x51aad6){_0x2498b7['push'](_0x2498b7['shift']());}}}(a17_0x2184,0x243b7));function a17_0x2184(){const _0x7fbcf3=['dummy-grid','Pre-check\x20running\x20for\x20Cloud\x20-\x20','error','stringify','NZPde','qwpbu','stack\x20trace\x20','eaarA','MoITV','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','prekp','parse','iBKws','wGRhB','NZPAC','Invalid\x20input.\x20grid\x20profiles:\x20','`\x20already\x20exists','existsSync','unable\x20to\x20verify\x20if\x20cluster\x20`','Error\x20Details:\x0a','delay','FLIcV','is\x20already\x20present','Grid\x20profile\x20fetched\x20for\x20pre-check','QGrlw','getUTCFullYear','pre-check','dykdH','code','AswtC','HzubY','EudJT','.\x20Please\x20provide\x20all\x20required\x20arguments.','AOrrJ','cloud-provider','will\x20be\x20created','IUbWG','aHPzS','QSdRv','1208EpHTva','Failed\x20in\x20pre-check!\x20Error:\x20','civpA','OStmO','`\x20is\x20present\x20in\x20region\x20`','qHqss','help','split','credential-not-found','Tool\x20Installed','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','jYren','4toBWsM','GAubp','username','hkRXJ','PKnPe','WGWOp','../../config/constants','utf-8','ntMpv','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','\x20===\x0a\x0a','toLowerCase','CLOUD_PROVIDER','jJDZP','debug','gridProfile','hhFkG','TnuTb','AuCQO','fNHxL','description','headers','header','Failure','TLveM','ERROR','567595QMKJqx','VZLYk','JRhFo','KVbxs','wcJUH','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','NtZzk','lgnVK','MpcaY','gwtsm','argv','<PasswordPlaceholder>','22hahzKj','getUTCDate','Report\x20saved\x20in\x20','byoml','connectionTimeout','grid\x20profile\x20flow\x20','../../utils/webSocketUtils','3997MVxQWy','desc','JJfBI','Whitelisted\x20browserstack','ySGKU','bfMGM','User\x20Access','authHeader','150lfbBkd','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','qZNVD','epilogue','\x20\x20Message:\x20','BQZmC','tkLBz','toolInstalledResp','NgGGx','bstackAccesskey','push','stack','clusterRegion','isCliToolInstalled','WebSocket','YyybL','reconnecting-websocket','bstackUsername','gkWOg','pre-check-grid-called','/packages/cli/get-all-grid-profiles','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','INFO','got','mzmHq','ONeSd','HHSah','UlAxH','accessResp','Browserstack','uDLTF','FvupY','HTMLl','15831sBFzIw','BXlgs','kztFd','getUTCMonth','8617345IYQrnk','clusterName','PwibL','mWJAo','NTzXZ','0|3|1|2|4','getUTCMinutes','\x20\x20Stack:\x20','region','DmWXH','length','password','`\x20,error\x20:\x20','info','isClusterPresent','error\x20stack\x20:\x20','Pxzsd','<UsernamePlaceholder>','init',']\x20status\x20:\x20','xWnIz','AHVmq','Status:\x20','OZBDb','rAHri','ajTUd','qVsAM','QDNyv','LOG','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','\x20error\x20:\x20','DAsdp','qbSjg','GET','\x20\x20Code:\x20','19641DTtypE','xHxLz','CXUgb','name','options','N/A','log/report_','Success','hhzII','builder','method','type','pre-check-cluster-args-not-passed','../../utils/utilityMethods','hirfV','pre-check-grid-profile-empty','../../utils/instrumentationUtils','uwPtW','MiRib','requestId','response','body','ScXab','OcfmI','vRLdg','join','replace','PNsvq','kkZiZ','Cluster\x20details\x0a-----------------------\x0a','qUATe','kCmId','pSteh','2704560oXIDWA','Cluster\x20','getUTCHours','ksdrw','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Setting\x20cloud\x20provider\x20as\x20','gVsYN','zjlde','ZPBOy','SSL\x20Configured','exit','iFDpE','tZlUp','grid-profile','vzIKE','Message:\x20','jDWZX','HOyhD','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','DSRci','vBedU','Cluster\x20`','checkAccess','kqmec','Ndflq','uagZE','xBXtb','FWlpq','message','grid','ZLcAB','cloudProvider','cluster-name','JsFwd','72338VgnEIk','usage','kIXtD','sendEventToBackend','data','xaXOi','vGTcE','status'];a17_0x2184=function(){return _0x7fbcf3;};return a17_0x2184();}const fs=require('fs'),ws=require('ws'),got=require(a17_0x1fbbf4(0x1ec)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x1fbbf4(0x1e5)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1fbbf4(0x12e)),{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_0x1fbbf4(0x1a5)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x1fbbf4(0x1cc)),{sendInstrumentationEvent}=require(a17_0x1fbbf4(0x131));exports['command']=a17_0x1fbbf4(0x15f),exports[a17_0x1fbbf4(0x1ce)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x1fbbf4(0x12a)]=function(_0x17ca6e){const _0xc40112=a17_0x1fbbf4,_0x5cb237={};_0x5cb237[_0xc40112(0x141)]=_0xc40112(0x1d6),_0x5cb237[_0xc40112(0x14e)]='string',_0x5cb237['FvupY']=_0xc40112(0x19d),_0x5cb237[_0xc40112(0x1a0)]=_0xc40112(0x154),_0x5cb237[_0xc40112(0x1a7)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5cb237[_0xc40112(0x1a3)]='help';const _0x38d484=_0x5cb237,_0x329b86={};_0x329b86[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x141)],_0x329b86[_0xc40112(0x12c)]=_0x38d484[_0xc40112(0x14e)];const _0xf56c83={};_0xf56c83[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x1f4)],_0xf56c83[_0xc40112(0x12c)]=_0x38d484[_0xc40112(0x14e)];const _0x3a12ab={};_0x3a12ab[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x1a0)],_0x3a12ab[_0xc40112(0x12c)]=_0x38d484[_0xc40112(0x14e)];const _0x50b74e={};_0x50b74e[_0xc40112(0x1b3)]=_0x38d484[_0xc40112(0x1a7)],_0x50b74e['type']=_0x38d484['tZlUp'];const _0x4ab983={};return _0x4ab983['cluster-name']=_0x329b86,_0x4ab983[_0xc40112(0x18e)]=_0xf56c83,_0x4ab983[_0xc40112(0x202)]=_0x3a12ab,_0x4ab983[_0xc40112(0x14f)]=_0x50b74e,_0x17ca6e[_0xc40112(0x165)](HELP_HEADER_MESSAGE['pre_check'])[_0xc40112(0x1d8)](HELP_FOOTER_MESSAGE)['options'](_0x4ab983)['help'](_0x38d484[_0xc40112(0x1a3)])[_0xc40112(0x1c4)];};function a17_0x1a59(_0x32d6ac,_0x17039c){const _0x218433=a17_0x2184();return a17_0x1a59=function(_0x1a593c,_0x12ad2b){_0x1a593c=_0x1a593c-0x10d;let _0x14917f=_0x218433[_0x1a593c];return _0x14917f;},a17_0x1a59(_0x32d6ac,_0x17039c);}async function inputValidation(_0x49f0f5,_0x3aa222){const _0x5358d1=a17_0x1fbbf4,_0x4e8daa={'eTVow':_0x5358d1(0x1d6),'bfMGM':'string','TnuTb':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','eaCJR':_0x5358d1(0x154),'GHwHd':_0x5358d1(0x1a8),'umJpj':'help','hhzII':_0x5358d1(0x182),'QSdRv':_0x5358d1(0x18f),'KVbxs':'Error\x20Details:\x0a','IUbWG':_0x5358d1(0x126),'kztFd':_0x5358d1(0x202),'QDNyv':_0x5358d1(0x1be),'uDLTF':_0x5358d1(0x162),'NgGGx':_0x5358d1(0x18e),'vBedU':_0x5358d1(0x16e),'ScXab':function(_0x3aff5c,_0x253f19){return _0x3aff5c===_0x253f19;},'lgnVK':_0x5358d1(0x15c),'WGWOp':'kqStp','hirfV':function(_0x115f4f,_0x2b14cb){return _0x115f4f!==_0x2b14cb;},'ONeSd':_0x5358d1(0x1fc),'xsWtG':_0x5358d1(0x13c),'mzmHq':function(_0x3e3e52,_0x3ada72){return _0x3e3e52===_0x3ada72;},'qUATe':'GvGms','xWnIz':_0x5358d1(0x1da),'ylvCl':function(_0x309863,_0xce995d){return _0x309863>_0xce995d;},'CAutg':_0x5358d1(0x169),'FLIcV':_0x5358d1(0x1b7),'vzIKE':function(_0x2e63b9,_0x1e83c8,_0x46de16,_0x7974c0,_0x436122,_0x45a331,_0x28b273,_0x2225c3){return _0x2e63b9(_0x1e83c8,_0x46de16,_0x7974c0,_0x436122,_0x45a331,_0x28b273,_0x2225c3);},'DmWXH':_0x5358d1(0x1e8),'FWlpq':_0x5358d1(0x12d),'GEVgQ':_0x5358d1(0x1d1),'qUZBn':_0x5358d1(0x1bb),'DLYFI':_0x5358d1(0x1ea),'NTzXZ':'cloud-provider-not-supported','ksdrw':function(_0x20ce91,_0xbd4226){return _0x20ce91===_0xbd4226;},'qwpbu':_0x5358d1(0x1d7),'aHPzS':_0x5358d1(0x117),'TAdPr':'fqBuE','UTpNe':_0x5358d1(0x189),'kkZiZ':_0x5358d1(0x11f),'AuCQO':function(_0x412cca,_0x242955,_0x1d008a){return _0x412cca(_0x242955,_0x1d008a);},'YyybL':function(_0x29c3d6,_0x1016f0,_0x47849e,_0x4cec7d,_0x448fbc,_0x3e69e8){return _0x29c3d6(_0x1016f0,_0x47849e,_0x4cec7d,_0x448fbc,_0x3e69e8);},'NZPAC':_0x5358d1(0x186),'ufOUQ':_0x5358d1(0x14f),'qbSjg':function(_0x4f7c70,_0xf91f72){return _0x4f7c70===_0xf91f72;},'mWJAo':_0x5358d1(0x140),'wGSPO':function(_0x1d780c,_0x3d83b2){return _0x1d780c(_0x3d83b2);},'MiRib':function(_0x3c3ac3,_0x3bb50a){return _0x3c3ac3===_0x3bb50a;},'ZPBOy':'poOFE','EudJT':'gQlaL','vRLdg':_0x5358d1(0x130),'aUULN':_0x5358d1(0x16a),'OZBDb':_0x5358d1(0x122),'eaarA':'EWTNm','uagZE':_0x5358d1(0x183),'jDWZX':_0x5358d1(0x1e7),'civpA':function(_0x64ceb7,_0x53fe47){return _0x64ceb7!==_0x53fe47;},'JDjio':_0x5358d1(0x198),'iBKws':_0x5358d1(0x113)};let _0x26f902;try{if(_0x4e8daa[_0x5358d1(0x137)](_0x4e8daa[_0x5358d1(0x1c1)],_0x4e8daa[_0x5358d1(0x1c1)])){if(_0x49f0f5[_0x5358d1(0x1fb)]||_0x49f0f5['cloudProvider']||_0x49f0f5[_0x5358d1(0x202)]){if(_0x4e8daa[_0x5358d1(0x137)](_0x4e8daa[_0x5358d1(0x1a4)],_0x4e8daa[_0x5358d1(0x1a4)])){const _0x311ad7=[];if(!_0x49f0f5[_0x5358d1(0x1fb)]){if(_0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa[_0x5358d1(0x1ee)],_0x4e8daa['xsWtG']))_0x311ad7['push'](_0x4e8daa[_0x5358d1(0x1f3)]);else{const _0x30c531={};_0x30c531[_0x5358d1(0x1b3)]=_0x4e8daa['eTVow'],_0x30c531[_0x5358d1(0x12c)]=_0x4e8daa[_0x5358d1(0x1d2)];const _0x5d6b7a={};_0x5d6b7a[_0x5358d1(0x1b3)]=_0x4e8daa[_0x5358d1(0x1b0)],_0x5d6b7a[_0x5358d1(0x12c)]=_0x4e8daa['bfMGM'];const _0x9cf5fb={};_0x9cf5fb[_0x5358d1(0x1b3)]=_0x4e8daa['eaCJR'],_0x9cf5fb[_0x5358d1(0x12c)]=_0x4e8daa['bfMGM'];const _0x5a16c2={};_0x5a16c2[_0x5358d1(0x1b3)]=_0x4e8daa['GHwHd'],_0x5a16c2[_0x5358d1(0x12c)]=_0x4e8daa['bfMGM'];const _0x2b5c1c={};return _0x2b5c1c[_0x5358d1(0x162)]=_0x30c531,_0x2b5c1c[_0x5358d1(0x18e)]=_0x5d6b7a,_0x2b5c1c[_0x5358d1(0x202)]=_0x9cf5fb,_0x2b5c1c[_0x5358d1(0x14f)]=_0x5a16c2,_0x41d379[_0x5358d1(0x165)](_0x19914e['pre_check'])[_0x5358d1(0x1d8)](_0x40c2f5)[_0x5358d1(0x125)](_0x2b5c1c)[_0x5358d1(0x199)](_0x4e8daa['umJpj'])[_0x5358d1(0x1c4)];}};!_0x49f0f5[_0x5358d1(0x161)]&&(_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa['qUATe'],_0x4e8daa[_0x5358d1(0x13f)])?_0x311ad7[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1dd)]):_0x1779d8+=_0x5358d1(0x143)+_0x4e4c01[_0x5358d1(0x1fb)]+'\x20'+(_0x270aab?_0x4e8daa[_0x5358d1(0x129)]:_0x4e8daa[_0x5358d1(0x192)])+'\x0a\x0a');;!_0x49f0f5['region']&&(_0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa[_0x5358d1(0x112)],_0x4e8daa[_0x5358d1(0x112)])?_0xc113f5[_0x5358d1(0x16e)](_0x5358d1(0x10d)+_0x415382[_0x5358d1(0x16e)][_0x5358d1(0x1e0)]):_0x311ad7[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1f8)]));;_0x4e8daa['ylvCl'](_0x311ad7[_0x5358d1(0x204)],0x0)&&(_0x4e8daa['hirfV'](_0x4e8daa['CAutg'],_0x4e8daa[_0x5358d1(0x181)])?(_0x26f902='Missing\x20required\x20arguments:\x20'+_0x311ad7[_0x5358d1(0x13a)](',\x20')+_0x5358d1(0x18c),await _0x4e8daa['vzIKE'](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa[_0x5358d1(0x203)],_0x4e8daa[_0x5358d1(0x15d)],_0x4e8daa[_0x5358d1(0x156)]),logger['error'](_0x26f902),process['exit'](0x1)):(_0x1a46e0+=_0x4e8daa[_0x5358d1(0x1bc)],_0x598eaa+=_0x5358d1(0x1d9)+(_0x5caf3e['message']||_0x4e8daa[_0x5358d1(0x190)])+'\x0a',_0xac5810+='\x20\x20Code:\x20'+(_0x55005[_0x5358d1(0x188)]||_0x4e8daa[_0x5358d1(0x190)])+'\x0a',_0x5ba912+=_0x5358d1(0x201)+(_0x39d578[_0x5358d1(0x1e0)]||_0x4e8daa['IUbWG'])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x49f0f5[_0x5358d1(0x161)][_0x5358d1(0x1aa)]())&&(_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa['GEVgQ'],_0x4e8daa['qUZBn'])?_0x1f4e37=_0x2e4c14:(_0x26f902=_0x4e8daa['DLYFI'],await _0x4e8daa['vzIKE'](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa['DmWXH'],_0x4e8daa[_0x5358d1(0x1fe)],_0x4e8daa[_0x5358d1(0x156)]),logger[_0x5358d1(0x16e)](_0x26f902),!_0x49f0f5[_0x5358d1(0x161)]&&(_0x4e8daa[_0x5358d1(0x145)](_0x4e8daa[_0x5358d1(0x171)],_0x4e8daa[_0x5358d1(0x191)])?_0x5cd521[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1f8)]):(logger[_0x5358d1(0x207)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x49f0f5[_0x5358d1(0x161)]=DEFAULT_CLUSTER_DETAILS[_0x5358d1(0x1ab)])))),global_registry[_0x5358d1(0x1fb)]=_0x49f0f5[_0x5358d1(0x1fb)],global_registry[_0x5358d1(0x161)]=_0x49f0f5[_0x5358d1(0x161)],global_registry[_0x5358d1(0x1e1)]=_0x49f0f5[_0x5358d1(0x202)];}else _0x7ff814['info'](_0x5358d1(0x157)+_0x5c86cd[_0x5358d1(0x1fb)]+_0x5358d1(0x17c));}else{if(_0x49f0f5['gridProfile']){if(_0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa['TAdPr'],_0x4e8daa['UTpNe'])){global_registry[_0x5358d1(0x1ae)]=_0x49f0f5[_0x5358d1(0x1ae)],logger[_0x5358d1(0x1ad)](_0x5358d1(0x1cb)+_0x49f0f5[_0x5358d1(0x1ae)]);const _0x758878='https://'+AG_API_URL+_0x5358d1(0x1e9),_0x22b9b2={};_0x22b9b2[_0x5358d1(0x12b)]=_0x4e8daa[_0x5358d1(0x13d)],_0x22b9b2[_0x5358d1(0x1b4)]=global_registry['authHeader'],_0x22b9b2['throwHttpErrors']=![];const _0x5df49d=_0x22b9b2,_0x23bec8=await _0x4e8daa[_0x5358d1(0x1b1)](got,_0x758878,_0x5df49d),_0x47a098=await _0x4e8daa[_0x5358d1(0x1e4)](responseValidation,_0x23bec8,_0x4e8daa[_0x5358d1(0x17a)],_0x4e8daa['ufOUQ'],_0x49f0f5,_0x3aa222);let _0x16de06={};if(_0x4e8daa[_0x5358d1(0x11e)](_0x47a098,0xc8)){if(_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa[_0x5358d1(0x1fd)],_0x4e8daa[_0x5358d1(0x1fd)])){const _0x355a48=JSON[_0x5358d1(0x177)](_0x23bec8[_0x5358d1(0x136)]),_0x5bebd2=_0x355a48['find'](_0x41af13=>_0x41af13[_0x5358d1(0x124)]===_0x49f0f5['gridProfile'])||null;_0x4e8daa['wGSPO'](isUndefined,_0x5bebd2)?_0x4e8daa[_0x5358d1(0x133)](_0x4e8daa[_0x5358d1(0x14a)],_0x4e8daa[_0x5358d1(0x18b)])?(_0x5b053d[_0x5358d1(0x16e)](_0x4e8daa['QDNyv']),_0x49ed9f['exit'](0x1)):(_0x26f902=_0x5358d1(0x17b)+_0x49f0f5[_0x5358d1(0x1ae)]+_0x5358d1(0x1bf),await _0x4e8daa[_0x5358d1(0x150)](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa[_0x5358d1(0x203)],_0x4e8daa[_0x5358d1(0x139)],_0x4e8daa[_0x5358d1(0x156)]),logger[_0x5358d1(0x16e)](_0x26f902),process['exit'](0x1)):_0x4e8daa[_0x5358d1(0x1ed)](_0x4e8daa['aUULN'],_0x4e8daa[_0x5358d1(0x115)])?_0x30da74[_0x5358d1(0x1df)](_0x4e8daa[_0x5358d1(0x1f3)]):_0x16de06=_0x5bebd2;}else _0x23a6d1+=_0x5358d1(0x143)+_0x4f43fa['clusterName']+_0x5358d1(0x11b);}else _0x4e8daa[_0x5358d1(0x12f)](_0x4e8daa['eaarA'],_0x4e8daa[_0x5358d1(0x173)])?(_0x8e3995[_0x5358d1(0x207)]('['+_0x2e5a51+_0x5358d1(0x111)+_0x5cd4f9[_0x5358d1(0x16b)]+'\x20data\x20:\x20'+_0x28284e['data']+'\x20error\x20:\x20'+_0x3b5408['error']),_0x548156['error']&&_0x4e034d[_0x5358d1(0x16e)]('error\x20stack\x20:\x20'+_0x586377[_0x5358d1(0x16e)][_0x5358d1(0x1e0)])):process[_0x5358d1(0x14c)](0x1);const _0xb6d973={};_0xb6d973[_0x5358d1(0x12c)]=WS_EVENTS[_0x5358d1(0x11a)],_0xb6d973[_0x5358d1(0x15e)]=_0x4e8daa[_0x5358d1(0x15b)],webSocketUtils[_0x5358d1(0x167)](_0x3aa222,_0xb6d973),global_registry[_0x5358d1(0x161)]=_0x16de06[_0x5358d1(0x161)],global_registry['clusterRegion']=_0x16de06[_0x5358d1(0x202)],global_registry[_0x5358d1(0x1fb)]=_0x16de06['clusterName'];}else _0x2ad723['push'](_0x4e8daa['NgGGx']);}else _0x4e8daa['hirfV'](_0x4e8daa[_0x5358d1(0x152)],_0x4e8daa[_0x5358d1(0x152)])?(_0x1fe404[_0x5358d1(0x207)](_0x5358d1(0x147)+_0x1892a8[_0x5358d1(0x1ab)]+'\x20'),_0x5e862b[_0x5358d1(0x161)]=_0x78d53b[_0x5358d1(0x1ab)]):(logger[_0x5358d1(0x16e)](_0x4e8daa[_0x5358d1(0x119)]),process[_0x5358d1(0x14c)](0x1));}}else _0x2bc5c0[_0x5358d1(0x14c)](0x1);}catch(_0x1b4565){if(_0x4e8daa[_0x5358d1(0x195)](_0x4e8daa['JDjio'],_0x4e8daa[_0x5358d1(0x178)]))_0x26f902=_0x5358d1(0x175)+_0x1b4565+':\x20'+_0x1b4565[_0x5358d1(0x1e0)],logger[_0x5358d1(0x16e)](_0x26f902),await _0x4e8daa['vzIKE'](reportToGalactusAndSendToEDS,_0x49f0f5,_0x3aa222,_0x26f902,messageTypes[_0x5358d1(0x1b8)],_0x4e8daa[_0x5358d1(0x203)],_0x4e8daa['NTzXZ'],_0x4e8daa[_0x5358d1(0x156)]),process[_0x5358d1(0x14c)](0x1);else{const _0x29beb2={};_0x29beb2[_0x5358d1(0x12c)]=_0x765c49[_0x5358d1(0x11a)],_0x29beb2[_0x5358d1(0x15e)]=_0x3ccd0c,_0x28534b[_0x5358d1(0x167)](_0x5001ac,_0x29beb2,_0x4e8daa['vBedU'],!![]);}}}function printResponse(_0x37c4ee,_0x34289c){const _0x523cb2=a17_0x1fbbf4,_0x422415={};_0x422415[_0x523cb2(0x1a2)]=function(_0x56c9de,_0x2434fa){return _0x56c9de+_0x2434fa;},_0x422415['byoml']=_0x523cb2(0x128),_0x422415[_0x523cb2(0x1f5)]=_0x523cb2(0x1b6),_0x422415[_0x523cb2(0x153)]=function(_0x33701b,_0x48bfb0){return _0x33701b||_0x48bfb0;},_0x422415[_0x523cb2(0x15a)]=_0x523cb2(0x126),_0x422415[_0x523cb2(0x123)]=_0x523cb2(0x17f),_0x422415[_0x523cb2(0x1b2)]=function(_0xb339db,_0x291729){return _0xb339db===_0x291729;},_0x422415['PziGJ']=_0x523cb2(0x159),_0x422415[_0x523cb2(0x174)]=_0x523cb2(0x170);const _0x46f9b1=_0x422415;logger[_0x523cb2(0x207)]('['+_0x37c4ee+_0x523cb2(0x111)+_0x34289c['status']+'\x20data\x20:\x20'+_0x34289c[_0x523cb2(0x168)]+_0x523cb2(0x11c)+_0x34289c['error']);if(_0x34289c['error']){if(_0x46f9b1[_0x523cb2(0x1b2)](_0x46f9b1['PziGJ'],_0x46f9b1[_0x523cb2(0x174)])){const {header:_0x544164,response:_0xabf85f}=_0x1e40d9,{status:_0x41c260,data:_0x5e356a,error:_0x3586ef}=_0xabf85f;_0x32cf14+=_0x544164+'\x20#'+_0x46f9b1[_0x523cb2(0x1a2)](_0x19ac82,0x1)+'\x0a',_0x4bec96+=_0x523cb2(0x114)+(_0x41c260?_0x46f9b1[_0x523cb2(0x1c9)]:_0x46f9b1[_0x523cb2(0x1f5)])+'\x0a',_0x23dd34+=_0x523cb2(0x151)+_0x46f9b1['HOyhD'](_0x5e356a,_0x46f9b1[_0x523cb2(0x15a)])+'\x0a',_0x3586ef&&(_0xad42e8+=_0x46f9b1[_0x523cb2(0x123)],_0x40e142+='\x20\x20Message:\x20'+(_0x3586ef[_0x523cb2(0x15e)]||_0x46f9b1['Ndflq'])+'\x0a',_0x5e32e3+='\x20\x20Code:\x20'+(_0x3586ef[_0x523cb2(0x188)]||_0x46f9b1[_0x523cb2(0x15a)])+'\x0a',_0x27d5b6+=_0x523cb2(0x201)+(_0x3586ef[_0x523cb2(0x1e0)]||_0x46f9b1[_0x523cb2(0x15a)])+'\x0a'),_0x7c9e64+='\x0a\x0a';}else logger[_0x523cb2(0x16e)]('error\x20stack\x20:\x20'+_0x34289c['error'][_0x523cb2(0x1e0)]);}}async function generateReport(_0x2d1fd1,_0x233e21){const _0x370639=a17_0x1fbbf4,_0x43dce6={'spkIM':function(_0x378ae8,_0x120d02){return _0x378ae8+_0x120d02;},'BXlgs':'Success','QGrlw':_0x370639(0x1b6),'MpcaY':function(_0x1b310a,_0x1aabdc){return _0x1b310a||_0x1aabdc;},'hhFkG':_0x370639(0x126),'zUauK':_0x370639(0x17f),'AOrrJ':_0x370639(0x13e),'jJDZP':function(_0x21398c,_0x5eaa5d){return _0x21398c!=_0x5eaa5d;},'VZLYk':_0x370639(0x182),'tkLBz':_0x370639(0x18f),'gVsYN':function(_0x5ef41c){return _0x5ef41c();}};let _0x2fd2c7='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x370639(0x1a9);return _0x2d1fd1['forEach']((_0x361a59,_0x42805a)=>{const _0x4c1d2e=_0x370639,{header:_0x418874,response:_0x11349b}=_0x361a59,{status:_0x4d447b,data:_0xbe03ae,error:_0x2b040a}=_0x11349b;_0x2fd2c7+=_0x418874+'\x20#'+_0x43dce6['spkIM'](_0x42805a,0x1)+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x114)+(_0x4d447b?_0x43dce6[_0x4c1d2e(0x1f7)]:_0x43dce6[_0x4c1d2e(0x184)])+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x151)+_0x43dce6[_0x4c1d2e(0x1c2)](_0xbe03ae,_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a',_0x2b040a&&(_0x2fd2c7+=_0x43dce6['zUauK'],_0x2fd2c7+='\x20\x20Message:\x20'+(_0x2b040a[_0x4c1d2e(0x15e)]||_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x120)+(_0x2b040a['code']||_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a',_0x2fd2c7+=_0x4c1d2e(0x201)+(_0x2b040a[_0x4c1d2e(0x1e0)]||_0x43dce6[_0x4c1d2e(0x1af)])+'\x0a'),_0x2fd2c7+='\x0a\x0a';}),_0x2fd2c7+=_0x43dce6[_0x370639(0x18d)],_0x43dce6[_0x370639(0x1ac)](_0x233e21,null)?_0x2fd2c7+=_0x370639(0x143)+global_registry[_0x370639(0x1fb)]+'\x20'+(_0x233e21?_0x43dce6[_0x370639(0x1ba)]:_0x43dce6[_0x370639(0x1db)])+'\x0a\x0a':_0x2fd2c7+=_0x370639(0x143)+global_registry[_0x370639(0x1fb)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x2fd2c7+=_0x43dce6[_0x370639(0x148)](getSystemMetaData),_0x2fd2c7;};exports['handler']=async function(_0x320501){const _0xf82d27=a17_0x1fbbf4,_0x3a75ab={'OZYhb':function(_0x18d67f){return _0x18d67f();},'rAHri':function(_0x9e12bb){return _0x9e12bb();},'JJfBI':_0xf82d27(0x146),'wHOpX':function(_0x1df62c,_0x176944,_0x107893,_0x393afb,_0x5e3889,_0x2605c1,_0x4280c9,_0x5d3355){return _0x1df62c(_0x176944,_0x107893,_0x393afb,_0x5e3889,_0x2605c1,_0x4280c9,_0x5d3355);},'JsFwd':'pre-check-grid-called','ZLcAB':_0xf82d27(0x19b),'HzubY':_0xf82d27(0x16e),'dykdH':function(_0xe678b3,_0x11ba55,_0x27d353,_0x4dbdc8,_0x22372d,_0x40f596,_0x2e8cba){return _0xe678b3(_0x11ba55,_0x27d353,_0x4dbdc8,_0x22372d,_0x40f596,_0x2e8cba);},'kfypr':_0xf82d27(0x10f),'puJBa':_0xf82d27(0x1c5),'jYren':function(_0x1294a3,_0xc4bb6e,_0x5e96c2){return _0x1294a3(_0xc4bb6e,_0x5e96c2);},'wGRhB':function(_0x2a1851,_0x1c5c51,_0x379e23,_0x5dca68,_0x28c194,_0x2f3171,_0x3b0866){return _0x2a1851(_0x1c5c51,_0x379e23,_0x5dca68,_0x28c194,_0x2f3171,_0x3b0866);},'GskAg':_0xf82d27(0x16c),'icXxM':_0xf82d27(0x1dc),'zjlde':_0xf82d27(0x1ff),'OStmO':function(_0x5429e2,_0x20d16d,_0x13eff3,_0x13a76b,_0x1e400a,_0x11c5b4,_0x22ff31,_0xef5f66){return _0x5429e2(_0x20d16d,_0x13eff3,_0x13a76b,_0x1e400a,_0x11c5b4,_0x22ff31,_0xef5f66);},'kIXtD':_0xf82d27(0x1f1),'wcJUH':function(_0x49bbf3){return _0x49bbf3();},'gwtsm':'isTrialGridAccessible','QxNqf':function(_0x1fb65d,_0x169d8f){return _0x1fb65d(_0x169d8f);},'NtZzk':'TLSv1_2_client_method','OcfmI':function(_0x32a419,_0x536199,_0x1aa205){return _0x32a419(_0x536199,_0x1aa205);},'iFDpE':'isTls1_2_SUPPORTED','uwPtW':_0xf82d27(0x19c),'Pxzsd':_0xf82d27(0x1d3),'qVsAM':_0xf82d27(0x1d0),'UlAxH':_0xf82d27(0x14b),'DAsdp':function(_0x34fff6,_0x288c81){return _0x34fff6+_0x288c81;},'prekp':_0xf82d27(0x1a6),'HHSah':function(_0x505f87,_0x212b82,_0x160f4d,_0x52af04,_0x160ced,_0x59f9aa,_0x3fa09c){return _0x505f87(_0x212b82,_0x160f4d,_0x52af04,_0x160ced,_0x59f9aa,_0x3fa09c);},'DSRci':'pre-check-failed'};let _0x47e1b2,_0x4c5e7;try{global_registry[_0xf82d27(0x134)]=_0x3a75ab['OZYhb'](uuidv4);!fs[_0xf82d27(0x17d)](_0x3a75ab[_0xf82d27(0x116)](getCredentialsPath))&&(_0x4c5e7=_0x3a75ab[_0xf82d27(0x1cf)],logger[_0xf82d27(0x16e)](_0x4c5e7),await _0x3a75ab['wHOpX'](reportToGalactusAndSendToEDS,_0x320501,_0x47e1b2,_0x4c5e7,messageTypes[_0xf82d27(0x1b8)],_0x3a75ab[_0xf82d27(0x163)],_0x3a75ab[_0xf82d27(0x160)],_0x3a75ab['HzubY']),process[_0xf82d27(0x14c)](0x1));_0x3a75ab[_0xf82d27(0x187)](sendInstrumentationEvent,_0x320501,_0x3a75ab[_0xf82d27(0x163)],messageTypes[_0xf82d27(0x1eb)],null,null,_0x320501);const _0x469397=JSON[_0xf82d27(0x177)](fs['readFileSync'](_0x3a75ab[_0xf82d27(0x116)](getCredentialsPath)));global_registry[_0xf82d27(0x1e6)]=_0x469397['Browserstack']['username'],global_registry[_0xf82d27(0x1de)]=_0x469397['Browserstack'][_0xf82d27(0x205)];const _0x169857=WS_ENDPOINT[_0xf82d27(0x13b)](_0x3a75ab['kfypr'],_0x469397[_0xf82d27(0x1f2)][_0xf82d27(0x1a1)])[_0xf82d27(0x13b)](_0x3a75ab['puJBa'],_0x469397[_0xf82d27(0x1f2)][_0xf82d27(0x205)]),_0x493ccc={};_0x493ccc[_0xf82d27(0x1e3)]=ws,_0x493ccc[_0xf82d27(0x1ca)]=0x36ee80,_0x47e1b2=new ReconnectingWebSocket(_0x169857,[],_0x493ccc),global_registry[_0xf82d27(0x1d4)]=_0x3a75ab[_0xf82d27(0x19e)](getAuthHeader,global_registry[_0xf82d27(0x1e6)],global_registry[_0xf82d27(0x1de)]),await _0x3a75ab[_0xf82d27(0x19e)](inputValidation,_0x320501,_0x47e1b2),logger[_0xf82d27(0x207)](_0xf82d27(0x16d)+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0xf82d27(0x1e1)]);let _0x521ab4=await _0x3a75ab[_0xf82d27(0x179)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x3a75ab['GskAg'],_0x47e1b2,webSocketUtils,_0x320501);const _0x373881=await _0x521ab4[_0xf82d27(0x1e2)]();_0x3a75ab[_0xf82d27(0x19e)](printResponse,_0x3a75ab['icXxM'],_0x373881),_0x521ab4=await _0x521ab4[_0xf82d27(0x110)]();let _0x5a1111=![];try{_0x5a1111=await _0x521ab4[_0xf82d27(0x208)]();}catch(_0x378f57){const _0x239917=_0x3a75ab[_0xf82d27(0x149)][_0xf82d27(0x19a)]('|');let _0x191845=0x0;while(!![]){switch(_0x239917[_0x191845++]){case'0':_0x4c5e7=_0xf82d27(0x17e)+global_registry[_0xf82d27(0x1fb)]+_0xf82d27(0x197)+global_registry[_0xf82d27(0x1e1)]+_0xf82d27(0x206)+_0x378f57;continue;case'1':logger[_0xf82d27(0x16e)](_0x4c5e7);continue;case'2':_0x4c5e7+='\x0a'+JSON[_0xf82d27(0x16f)](_0x378f57[_0xf82d27(0x1e0)]);continue;case'3':_0x5a1111=null;continue;case'4':await _0x3a75ab[_0xf82d27(0x196)](reportToGalactusAndSendToEDS,_0x320501,_0x47e1b2,_0x4c5e7,messageTypes[_0xf82d27(0x1b8)],_0x3a75ab[_0xf82d27(0x163)],'cluster-check-failed-'+global_registry[_0xf82d27(0x161)],_0x3a75ab[_0xf82d27(0x18a)]);continue;}break;}}_0x5a1111&&logger[_0xf82d27(0x207)]('Cluster\x20`'+global_registry[_0xf82d27(0x1fb)]+_0xf82d27(0x17c));const _0x2de260=await _0x521ab4[_0xf82d27(0x158)]();_0x3a75ab[_0xf82d27(0x19e)](printResponse,_0x3a75ab[_0xf82d27(0x166)],_0x2de260);const _0x4f23ba=await _0x3a75ab[_0xf82d27(0x1bd)](curlRequest);_0x3a75ab[_0xf82d27(0x19e)](printResponse,_0x3a75ab[_0xf82d27(0x1c3)],_0x4f23ba);const _0x59438b=await _0x3a75ab['QxNqf'](isTlsSupported,_0x3a75ab[_0xf82d27(0x1c0)]);_0x3a75ab[_0xf82d27(0x138)](printResponse,_0x3a75ab[_0xf82d27(0x14d)],_0x59438b);const _0x11bd68={};_0x11bd68['header']=_0x3a75ab[_0xf82d27(0x132)],_0x11bd68[_0xf82d27(0x135)]=_0x373881;const _0x3cb987={};_0x3cb987[_0xf82d27(0x1b5)]=_0x3a75ab[_0xf82d27(0x10e)],_0x3cb987[_0xf82d27(0x135)]=_0x2de260;const _0x2abfd3={};_0x2abfd3[_0xf82d27(0x1b5)]=_0x3a75ab[_0xf82d27(0x118)],_0x2abfd3['response']=_0x4f23ba;const _0x3ad166={};_0x3ad166[_0xf82d27(0x1b5)]=_0x3a75ab[_0xf82d27(0x1f0)],_0x3ad166['response']=_0x59438b;const _0x56379f=[_0x11bd68,_0x3cb987,_0x2abfd3,_0x3ad166],_0x568a97=await _0x3a75ab[_0xf82d27(0x19e)](generateReport,_0x56379f,_0x5a1111),_0x3ba4ec=new Date(),_0x49dd54=_0x3ba4ec[_0xf82d27(0x185)]()+'_'+_0x3a75ab[_0xf82d27(0x11d)](_0x3ba4ec[_0xf82d27(0x1f9)](),0x1)+'_'+_0x3ba4ec[_0xf82d27(0x1c7)]()+'_'+_0x3ba4ec[_0xf82d27(0x144)]()+'_'+_0x3ba4ec[_0xf82d27(0x200)](),_0x28b287=_0xf82d27(0x127)+_0x49dd54+'.txt';fs['writeFileSync'](_0x28b287,_0x568a97,_0x3a75ab[_0xf82d27(0x176)]),logger[_0xf82d27(0x207)](_0xf82d27(0x1c8)+_0x28b287),process[_0xf82d27(0x14c)](0x0);}catch(_0x16ad56){let _0x47e876=_0xf82d27(0x194)+_0x16ad56+'\x20';logger[_0xf82d27(0x16e)](_0x47e876),_0x47e876+='\x0a'+JSON['stringify'](_0x16ad56[_0xf82d27(0x1e0)]),logger['debug'](_0xf82d27(0x172)+_0x16ad56[_0xf82d27(0x1e0)]);if(_0x47e1b2){const _0x1d8c34={};_0x1d8c34[_0xf82d27(0x12c)]=WS_EVENTS[_0xf82d27(0x11a)],_0x1d8c34['message']=_0x47e876,webSocketUtils[_0xf82d27(0x167)](_0x47e1b2,_0x1d8c34,_0x3a75ab[_0xf82d27(0x18a)],!![]);}await webSocketUtils[_0xf82d27(0x180)](0x7d0);const _0x2b6d42={};_0x2b6d42[_0xf82d27(0x16e)]=_0x47e876,await _0x3a75ab[_0xf82d27(0x1ef)](sendInstrumentationEvent,_0x320501,_0x3a75ab[_0xf82d27(0x163)],messageTypes[_0xf82d27(0x1b8)],_0x3a75ab[_0xf82d27(0x155)],_0x2b6d42,_0x320501),process[_0xf82d27(0x14c)](0x1);}};
@@ -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
+ function a18_0x134f(){const _0x5f144a=['60UnreSI','3710arrlzy','commandDir','5034fxtdaT','970oIORdy','help','start','14HLlKfa','command','306585wclfrc','412TDcZLK','2013UUzazr','usage','Start\x20an\x20existing\x20Automation\x20grid.','recommendCommands','../config/constants','desc','207258fdxPxB','strict','172458KPUTcH','demandCommand','ctssw','OsiVc','builder','560424lxDjyW'];a18_0x134f=function(){return _0x5f144a;};return a18_0x134f();}const a18_0x367da4=a18_0x24a1;function a18_0x24a1(_0x18bf81,_0x5a63de){const _0x134fd8=a18_0x134f();return a18_0x24a1=function(_0x24a1a6,_0x295b25){_0x24a1a6=_0x24a1a6-0xf8;let _0x122e6e=_0x134fd8[_0x24a1a6];return _0x122e6e;},a18_0x24a1(_0x18bf81,_0x5a63de);}(function(_0x47eb8c,_0x337450){const _0x44d01c=a18_0x24a1,_0x25c972=_0x47eb8c();while(!![]){try{const _0x4cd08d=parseInt(_0x44d01c(0x106))/0x1*(parseInt(_0x44d01c(0x109))/0x2)+-parseInt(_0x44d01c(0x10f))/0x3+parseInt(_0x44d01c(0x110))/0x4*(parseInt(_0x44d01c(0x10a))/0x5)+-parseInt(_0x44d01c(0xfe))/0x6*(-parseInt(_0x44d01c(0x10d))/0x7)+-parseInt(_0x44d01c(0x105))/0x8+-parseInt(_0x44d01c(0x100))/0x9+parseInt(_0x44d01c(0x107))/0xa*(parseInt(_0x44d01c(0xf8))/0xb);if(_0x4cd08d===_0x337450)break;else _0x25c972['push'](_0x25c972['shift']());}catch(_0x26a18e){_0x25c972['push'](_0x25c972['shift']());}}}(a18_0x134f,0x1c75b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x367da4(0xfc));exports[a18_0x367da4(0x10e)]=a18_0x367da4(0x10c),exports[a18_0x367da4(0xfd)]=a18_0x367da4(0xfa),exports[a18_0x367da4(0x104)]=function(_0x2acbf2){const _0x389848=a18_0x367da4,_0x3646fb={};_0x3646fb[_0x389848(0x102)]='start_commands',_0x3646fb[_0x389848(0x103)]=_0x389848(0x10b);const _0xae3c5a=_0x3646fb;return _0x2acbf2[_0x389848(0xf9)](HELP_HEADER_MESSAGE[_0x389848(0x10c)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x389848(0x108)](_0xae3c5a[_0x389848(0x102)])[_0x389848(0x101)]()[_0x389848(0xfb)]()[_0x389848(0xff)]()[_0x389848(0x10b)](_0xae3c5a[_0x389848(0x103)]);},exports['handler']=function(_0x5131ab){};
@@ -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_0x3d143e=a19_0x1492;function a19_0x1492(_0xbe9bda,_0x3dedae){const _0x2b8fed=a19_0x2b8f();return a19_0x1492=function(_0x1492b6,_0x1e8dde){_0x1492b6=_0x1492b6-0x1d8;let _0x2fb6a3=_0x2b8fed[_0x1492b6];return _0x2fb6a3;},a19_0x1492(_0xbe9bda,_0x3dedae);}function a19_0x2b8f(){const _0x1994cd=['../../utils/webSocketUtils','parse','type','swmmK','grid','stack','5306IQmVqC','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','640bKqUXQ','cloudProvider','VweNK','83844kzZiRF','../../utils/instrumentationUtils','reconnecting-websocket','<PasswordPlaceholder>','afVxR','skip-tls-cert-verify','command','mCWpJ','grid-id','494112VBofwc','RLpAP','bstackUsername','KxTtp','string','error','ERROR','stringify','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','username','info','UVnmm','VbdgH','region','skipTlsCertVerify','gridId','Adding\x20Websocket\x20listeners','IKetv','Start\x20an\x20existing\x20Automation\x20grid.','boolean','2976736jiiEUI','name','Ksqwg','INFO','../../utils/gridComponents','2ljNwfr','Grid\x20started','options','5464nZMEai','builder','144475NgzCEd','uaPyQ','bstackAccesskey','nrMIJ','zpQzW','usage','init-not-called','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','replace','nFbto','IZSkU','clusterName','../../utils/createk8sClient','cfnoG','../../cloudproviders/utils','body','desc','../../config/logger','password','statusCode','user','30zTArBM','iuceT','epilogue','11BhaHda','JdOGZ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/utilityMethods','start-grid-called','exit','../../config/constants','VyVAZ','clusterRegion','argv','description','default','43122obVcNS','unauthorised','EUaHx','XbDJZ','12822372pYjaRU','help','debug','eoxCQ','existsSync','yyxne','<UsernamePlaceholder>'];a19_0x2b8f=function(){return _0x1994cd;};return a19_0x2b8f();}(function(_0x159762,_0x2ad292){const _0x5dfd75=a19_0x1492,_0x3043da=_0x159762();while(!![]){try{const _0x443c31=parseInt(_0x5dfd75(0x21e))/0x1+parseInt(_0x5dfd75(0x238))/0x2*(parseInt(_0x5dfd75(0x1ff))/0x3)+parseInt(_0x5dfd75(0x233))/0x4+parseInt(_0x5dfd75(0x1db))/0x5*(parseInt(_0x5dfd75(0x1f0))/0x6)+parseInt(_0x5dfd75(0x210))/0x7*(-parseInt(_0x5dfd75(0x1d9))/0x8)+parseInt(_0x5dfd75(0x215))/0x9*(parseInt(_0x5dfd75(0x212))/0xa)+parseInt(_0x5dfd75(0x1f3))/0xb*(-parseInt(_0x5dfd75(0x203))/0xc);if(_0x443c31===_0x2ad292)break;else _0x3043da['push'](_0x3043da['shift']());}catch(_0x37a729){_0x3043da['push'](_0x3043da['shift']());}}}(a19_0x2b8f,0x63654));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3d143e(0x217)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3d143e(0x1f9)),{logger}=require(a19_0x3d143e(0x1ec)),{getCredentialsPath,getGridDetails}=require(a19_0x3d143e(0x1f6)),{scaleUpHubDeployment}=require(a19_0x3d143e(0x237)),{sendInstrumentationEvent}=require(a19_0x3d143e(0x216)),webSocketUtils=require(a19_0x3d143e(0x20a)),{createK8sClient}=require(a19_0x3d143e(0x1e7)),{getCloudProviderObject}=require(a19_0x3d143e(0x1e9));exports[a19_0x3d143e(0x21b)]=a19_0x3d143e(0x20e),exports[a19_0x3d143e(0x1eb)]=a19_0x3d143e(0x231),exports[a19_0x3d143e(0x1da)]=function(_0x4ab408){const _0x3d5c12=a19_0x3d143e,_0x21c679={};_0x21c679[_0x3d5c12(0x1f1)]=_0x3d5c12(0x1e2),_0x21c679['zpQzW']=_0x3d5c12(0x222),_0x21c679[_0x3d5c12(0x208)]='Skip\x20insecure\x20cert\x20verification.',_0x21c679[_0x3d5c12(0x206)]=_0x3d5c12(0x232),_0x21c679[_0x3d5c12(0x21c)]=_0x3d5c12(0x204);const _0x2acb4d=_0x21c679,_0x487b20={};_0x487b20[_0x3d5c12(0x1fd)]=_0x2acb4d[_0x3d5c12(0x1f1)],_0x487b20[_0x3d5c12(0x20c)]=_0x2acb4d[_0x3d5c12(0x1df)];const _0x2e28fe={};_0x2e28fe[_0x3d5c12(0x1fd)]=_0x2acb4d[_0x3d5c12(0x208)],_0x2e28fe['type']=_0x2acb4d[_0x3d5c12(0x206)],_0x2e28fe[_0x3d5c12(0x1fe)]=![];const _0x10c3af={};return _0x10c3af[_0x3d5c12(0x21d)]=_0x487b20,_0x10c3af[_0x3d5c12(0x21a)]=_0x2e28fe,_0x4ab408[_0x3d5c12(0x1e0)](HELP_HEADER_MESSAGE['start'])[_0x3d5c12(0x1f2)](HELP_FOOTER_MESSAGE)[_0x3d5c12(0x1d8)](_0x10c3af)[_0x3d5c12(0x204)](_0x2acb4d[_0x3d5c12(0x21c)])[_0x3d5c12(0x1fc)];},exports['handler']=async function(_0x15f45a){const _0x45732d=a19_0x3d143e,_0x4cabcb={'VbdgH':_0x45732d(0x211),'KxTtp':function(_0x472f6e){return _0x472f6e();},'VyVAZ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EUaHx':function(_0x1c28de,_0x25f9a3,_0x5952c2,_0x1899c1,_0x2946e0,_0x339414,_0x40e0a2){return _0x1c28de(_0x25f9a3,_0x5952c2,_0x1899c1,_0x2946e0,_0x339414,_0x40e0a2);},'RLpAP':_0x45732d(0x1f7),'RxVbC':_0x45732d(0x1e1),'swmmK':function(_0x508b0d,_0x1e31df,_0x5d9201,_0x13b744,_0x8c38fe,_0x172c46,_0x3a3eee){return _0x508b0d(_0x1e31df,_0x5d9201,_0x13b744,_0x8c38fe,_0x172c46,_0x3a3eee);},'XbDJZ':_0x45732d(0x209),'IZSkU':_0x45732d(0x218),'nFbto':_0x45732d(0x22f),'IKetv':function(_0x5f5777,_0x47d76f,_0x3c7617,_0x4e2fca){return _0x5f5777(_0x47d76f,_0x3c7617,_0x4e2fca);},'cfnoG':function(_0x232456,_0x2a10ac,_0x270ac5,_0x7cb702,_0x2bc569,_0x54a563,_0x4df9bd){return _0x232456(_0x2a10ac,_0x270ac5,_0x7cb702,_0x2bc569,_0x54a563,_0x4df9bd);},'nrMIJ':function(_0xa84043,_0x47da1f,_0x11d20e){return _0xa84043(_0x47da1f,_0x11d20e);},'JdOGZ':_0x45732d(0x239),'uaPyQ':function(_0x27a1ae,_0x2b0e08){return _0x27a1ae===_0x2b0e08;},'VweNK':_0x45732d(0x1f5),'afVxR':_0x45732d(0x200),'Ksqwg':'invalid-grid-id','UVnmm':'server-error'};let _0x5e08f6;try{!_0x15f45a[_0x45732d(0x22e)]&&(logger[_0x45732d(0x223)](_0x4cabcb[_0x45732d(0x22b)]),process[_0x45732d(0x1f8)](0x1));!fs[_0x45732d(0x207)](_0x4cabcb[_0x45732d(0x221)](getCredentialsPath))&&(logger[_0x45732d(0x223)](_0x4cabcb[_0x45732d(0x1fa)]),await _0x4cabcb[_0x45732d(0x201)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb[_0x45732d(0x21f)],messageTypes[_0x45732d(0x224)],_0x4cabcb['RxVbC'],null,_0x15f45a),process[_0x45732d(0x1f8)](0x1));logger[_0x45732d(0x229)]('Starting\x20grid\x20'+_0x15f45a[_0x45732d(0x22e)]),await _0x4cabcb[_0x45732d(0x20d)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb['RLpAP'],messageTypes[_0x45732d(0x236)],null,null,_0x15f45a);const _0x11a221=JSON[_0x45732d(0x20b)](fs['readFileSync'](_0x4cabcb[_0x45732d(0x221)](getCredentialsPath)));global_registry[_0x45732d(0x220)]=_0x11a221[_0x45732d(0x226)][_0x45732d(0x228)],global_registry[_0x45732d(0x1dd)]=_0x11a221[_0x45732d(0x226)][_0x45732d(0x1ed)];const _0x1abdd5=WS_ENDPOINT[_0x45732d(0x1e3)](_0x4cabcb[_0x45732d(0x202)],_0x11a221[_0x45732d(0x226)][_0x45732d(0x228)])[_0x45732d(0x1e3)](_0x4cabcb[_0x45732d(0x1e5)],_0x11a221[_0x45732d(0x226)][_0x45732d(0x1ed)]),_0x24cac3={};_0x24cac3['WebSocket']=ws,_0x24cac3['connectionTimeout']=0x36ee80,_0x5e08f6=new ReconnectingWebSocket(_0x1abdd5,[],_0x24cac3),logger[_0x45732d(0x205)](_0x4cabcb[_0x45732d(0x1e4)]),webSocketUtils['addListeners'](_0x5e08f6,_0x15f45a[_0x45732d(0x1ef)],_0x15f45a[_0x45732d(0x1ed)]);const [_0x2e6667,_0x20b86b]=await _0x4cabcb[_0x45732d(0x230)](getGridDetails,_0x11a221[_0x45732d(0x226)][_0x45732d(0x228)],_0x11a221['Browserstack'][_0x45732d(0x1ed)],_0x15f45a[_0x45732d(0x22e)]);if(_0x20b86b){const _0xf11ee3=_0x20b86b[_0x45732d(0x229)];global_registry['cloudProvider']=_0xf11ee3[_0x45732d(0x213)],global_registry[_0x45732d(0x1fb)]=_0xf11ee3[_0x45732d(0x22c)],global_registry['clusterName']=_0xf11ee3[_0x45732d(0x1e6)];const _0x37501e=await _0x4cabcb[_0x45732d(0x1e8)](getCloudProviderObject,_0xf11ee3[_0x45732d(0x213)],_0xf11ee3[_0x45732d(0x1e6)],_0xf11ee3[_0x45732d(0x234)],_0x5e08f6,webSocketUtils,_0x15f45a),[_0x10a8c7,_0xf7e092,_0x3a4999,_0x4a80de,_0x219d9b,_0x2ceead]=await _0x4cabcb[_0x45732d(0x1de)](createK8sClient,_0x37501e,_0x15f45a[_0x45732d(0x22d)]);await _0x4cabcb[_0x45732d(0x1de)](scaleUpHubDeployment,_0xf7e092,_0xf11ee3['name']),logger[_0x45732d(0x229)](_0x4cabcb[_0x45732d(0x1f4)]),process[_0x45732d(0x1f8)](0x0);}_0x4cabcb[_0x45732d(0x1dc)](_0x2e6667[_0x45732d(0x1ee)],0x191)&&(logger[_0x45732d(0x223)](_0x4cabcb[_0x45732d(0x214)]),await _0x4cabcb[_0x45732d(0x20d)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb[_0x45732d(0x21f)],messageTypes[_0x45732d(0x224)],_0x4cabcb[_0x45732d(0x219)],null,_0x15f45a),process[_0x45732d(0x1f8)](0x1)),_0x4cabcb[_0x45732d(0x1dc)](_0x2e6667[_0x45732d(0x1ee)],0x190)&&(logger[_0x45732d(0x223)](JSON[_0x45732d(0x20b)](_0x2e6667[_0x45732d(0x1ea)])['message']),await _0x4cabcb[_0x45732d(0x20d)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb['RLpAP'],messageTypes[_0x45732d(0x224)],_0x4cabcb[_0x45732d(0x235)],null,_0x15f45a),process[_0x45732d(0x1f8)](0x1)),logger['error'](_0x45732d(0x227)+JSON[_0x45732d(0x225)](_0x2e6667)),await _0x4cabcb[_0x45732d(0x1e8)](sendInstrumentationEvent,_0x15f45a,_0x4cabcb[_0x45732d(0x21f)],messageTypes[_0x45732d(0x224)],_0x4cabcb[_0x45732d(0x22a)],_0x2e6667,_0x15f45a),process[_0x45732d(0x1f8)](0x1);}catch(_0xfe5a50){const _0x45aabe='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0xfe5a50+'\x20\x0a'+JSON[_0x45732d(0x225)](_0xfe5a50[_0x45732d(0x20f)])+'\x20';logger['error'](_0x45aabe),process[_0x45732d(0x1f8)](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
+ const a20_0x16fb3a=a20_0x68c8;(function(_0xf43167,_0x10edd9){const _0x19b4ef=a20_0x68c8,_0x3f7062=_0xf43167();while(!![]){try{const _0x5eecd1=parseInt(_0x19b4ef(0x8c))/0x1*(parseInt(_0x19b4ef(0x90))/0x2)+parseInt(_0x19b4ef(0x84))/0x3*(-parseInt(_0x19b4ef(0x8a))/0x4)+parseInt(_0x19b4ef(0x91))/0x5+parseInt(_0x19b4ef(0x80))/0x6+parseInt(_0x19b4ef(0x8f))/0x7+parseInt(_0x19b4ef(0x86))/0x8+parseInt(_0x19b4ef(0x81))/0x9*(-parseInt(_0x19b4ef(0x93))/0xa);if(_0x5eecd1===_0x10edd9)break;else _0x3f7062['push'](_0x3f7062['shift']());}catch(_0x22fca3){_0x3f7062['push'](_0x3f7062['shift']());}}}(a20_0x445a,0x41345));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x445a(){const _0x2c5b6b=['stop','2972376IGpYae','342ruWCjZ','desc','usage','380622VXQsfG','help','961104cMxSWR','commandDir','Stop\x20a\x20running\x20Automation\x20grid.','IGgSC','4KThEpq','xMiiQ','19UdovWX','command','demandCommand','263886VlJojX','14106mssTnM','216470HQVCqo','recommendCommands','114890dSBfTe'];a20_0x445a=function(){return _0x2c5b6b;};return a20_0x445a();}function a20_0x68c8(_0x4f3de5,_0x414438){const _0x445a8f=a20_0x445a();return a20_0x68c8=function(_0x68c880,_0x496c26){_0x68c880=_0x68c880-0x80;let _0x1a356c=_0x445a8f[_0x68c880];return _0x1a356c;},a20_0x68c8(_0x4f3de5,_0x414438);}exports[a20_0x16fb3a(0x8d)]='stop',exports[a20_0x16fb3a(0x82)]=a20_0x16fb3a(0x88),exports['builder']=function(_0x3a399a){const _0x50a260=a20_0x16fb3a,_0x5b0d3a={};_0x5b0d3a[_0x50a260(0x8b)]='stop_commands',_0x5b0d3a[_0x50a260(0x89)]=_0x50a260(0x85);const _0x5d6ce2=_0x5b0d3a;return _0x3a399a[_0x50a260(0x83)](HELP_HEADER_MESSAGE[_0x50a260(0x94)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x50a260(0x87)](_0x5d6ce2[_0x50a260(0x8b)])[_0x50a260(0x8e)]()[_0x50a260(0x92)]()['strict']()[_0x50a260(0x85)](_0x5d6ce2[_0x50a260(0x89)]);},exports['handler']=function(_0x10e7dd){};
@@ -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
+ function a21_0x50a1(_0x53b40a,_0x5816f4){const _0x563461=a21_0x5634();return a21_0x50a1=function(_0x50a13d,_0x5d0b3d){_0x50a13d=_0x50a13d-0x1eb;let _0x23da4b=_0x563461[_0x50a13d];return _0x23da4b;},a21_0x50a1(_0x53b40a,_0x5816f4);}const a21_0x2c1dd6=a21_0x50a1;(function(_0x37a835,_0x3773b5){const _0x2e5674=a21_0x50a1,_0x193269=_0x37a835();while(!![]){try{const _0x18cc05=parseInt(_0x2e5674(0x22a))/0x1+-parseInt(_0x2e5674(0x221))/0x2*(parseInt(_0x2e5674(0x227))/0x3)+-parseInt(_0x2e5674(0x211))/0x4+parseInt(_0x2e5674(0x1f5))/0x5+parseInt(_0x2e5674(0x21f))/0x6*(-parseInt(_0x2e5674(0x203))/0x7)+-parseInt(_0x2e5674(0x224))/0x8+-parseInt(_0x2e5674(0x23d))/0x9*(-parseInt(_0x2e5674(0x230))/0xa);if(_0x18cc05===_0x3773b5)break;else _0x193269['push'](_0x193269['shift']());}catch(_0x464bbb){_0x193269['push'](_0x193269['shift']());}}}(a21_0x5634,0xac0ee));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2c1dd6(0x1ee)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2c1dd6(0x1fe)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x2c1dd6(0x217)),{scaleDownHubDeployment}=require(a21_0x2c1dd6(0x20c)),{sendInstrumentationEvent}=require(a21_0x2c1dd6(0x232)),webSocketUtils=require(a21_0x2c1dd6(0x1fb)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x2c1dd6(0x214));function a21_0x5634(){const _0x207a4f=['builder','../../utils/instrumentationUtils','parse','skipTlsCertVerify','password','stop','existsSync','bstackUsername','argv','string','ofEyX','HXZFX','18527931qThrEO','help','description','user','Lplek','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','IpZjC','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','rRlqY','reconnecting-websocket','clusterName','epilogue','ERROR','error','Mvrqa','mFemh','534640XFWQRR','izGvu','grid-id','username','hQLCt','WebSocket','../../utils/webSocketUtils','options','exit','../../config/constants','VlgFt','skip-tls-cert-verify','default','hmeWg','1120zOWmwT','Stopping\x20grid\x20','INFO','readFileSync','stringify','jRgbJ','debug','XsBrE','Skip\x20insecure\x20cert\x20verification.','../../utils/gridComponents','clusterRegion','OqsCp','gridId','command','428460hGFoZd','MUXgq','body','../../cloudproviders/utils','fPRfh','rCeTg','../../utils/utilityMethods','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','replace','boolean','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','stack','10248UEhtCN','statusCode','422TyfxhH','KXZdb','<UsernamePlaceholder>','2514328LNMWUW','EHekl','init-not-called','14919utvxmc','Browserstack','name','283152MYGayT','invalid-grid-id','server-error','connectionTimeout','cloudProvider','unauthorised','10hHxJZZ'];a21_0x5634=function(){return _0x207a4f;};return a21_0x5634();}exports[a21_0x2c1dd6(0x210)]='grid',exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x2c1dd6(0x231)]=function(_0x4be628){const _0x3261ef=a21_0x2c1dd6,_0x51373d={};_0x51373d[_0x3261ef(0x23b)]=_0x3261ef(0x1ec),_0x51373d[_0x3261ef(0x1f9)]=_0x3261ef(0x23a),_0x51373d[_0x3261ef(0x23c)]=_0x3261ef(0x20b),_0x51373d[_0x3261ef(0x208)]=_0x3261ef(0x21c),_0x51373d['EHekl']=_0x3261ef(0x23e);const _0x2839e7=_0x51373d,_0x2484a6={};_0x2484a6[_0x3261ef(0x23f)]=_0x2839e7[_0x3261ef(0x23b)],_0x2484a6[_0x3261ef(0x218)]=_0x2839e7[_0x3261ef(0x1f9)];const _0x9781f2={};_0x9781f2['description']=_0x2839e7[_0x3261ef(0x23c)],_0x9781f2['type']=_0x2839e7[_0x3261ef(0x208)],_0x9781f2[_0x3261ef(0x201)]=![];const _0xab0380={};return _0xab0380[_0x3261ef(0x1f7)]=_0x2484a6,_0xab0380[_0x3261ef(0x200)]=_0x9781f2,_0x4be628['usage'](HELP_HEADER_MESSAGE[_0x3261ef(0x236)])[_0x3261ef(0x1f0)](HELP_FOOTER_MESSAGE)[_0x3261ef(0x1fc)](_0xab0380)[_0x3261ef(0x23e)](_0x2839e7[_0x3261ef(0x225)])[_0x3261ef(0x239)];},exports['handler']=async function(_0x1df00e){const _0x2f0671=a21_0x2c1dd6,_0x132448={'YQils':_0x2f0671(0x242),'VlgFt':function(_0x450999){return _0x450999();},'OqsCp':_0x2f0671(0x21d),'hmeWg':function(_0x119263,_0xd372c7,_0x4d42a9,_0xcad821,_0x3929ee,_0x38f2c0,_0x2c5604){return _0x119263(_0xd372c7,_0x4d42a9,_0xcad821,_0x3929ee,_0x38f2c0,_0x2c5604);},'XsBrE':'stop-grid-called','rCeTg':_0x2f0671(0x226),'RYFgM':function(_0x364ad9,_0x2f70e2,_0x2ad89d,_0x398af7,_0x548ab7,_0x51211b,_0x41b073){return _0x364ad9(_0x2f70e2,_0x2ad89d,_0x398af7,_0x548ab7,_0x51211b,_0x41b073);},'rRlqY':function(_0x51f1ff){return _0x51f1ff();},'uYZyt':_0x2f0671(0x223),'fPRfh':'<PasswordPlaceholder>','izGvu':'Adding\x20Websocket\x20listeners','vsNLg':function(_0x252a9c,_0x4f5db4,_0x1b1adf,_0x508965){return _0x252a9c(_0x4f5db4,_0x1b1adf,_0x508965);},'Mvrqa':function(_0x23037f,_0x5507f7,_0x2f355f){return _0x23037f(_0x5507f7,_0x2f355f);},'Ivkgq':function(_0x55000a,_0x559027,_0x3b3dc1){return _0x55000a(_0x559027,_0x3b3dc1);},'KXZdb':'Grid\x20stoppped.','IpZjC':function(_0x5e3150,_0x45af87){return _0x5e3150===_0x45af87;},'SEVbT':_0x2f0671(0x219),'eghwz':function(_0x4f396c,_0x5961e3,_0x4e2e1c,_0x4ad5e8,_0x556e48,_0x53577d,_0x25480f){return _0x4f396c(_0x5961e3,_0x4e2e1c,_0x4ad5e8,_0x556e48,_0x53577d,_0x25480f);},'mFemh':_0x2f0671(0x22f),'Lplek':function(_0x36e718,_0x574e8a,_0x5e5d1d,_0x2cb7e6,_0x353c4e,_0x1dd39e,_0x58f4d5){return _0x36e718(_0x574e8a,_0x5e5d1d,_0x2cb7e6,_0x353c4e,_0x1dd39e,_0x58f4d5);},'ECJat':_0x2f0671(0x22b),'yighG':function(_0x5b88c0,_0x1933c0,_0x369c4b,_0x3bc14a,_0x266d3c,_0x2d2979,_0x520d1f){return _0x5b88c0(_0x1933c0,_0x369c4b,_0x3bc14a,_0x266d3c,_0x2d2979,_0x520d1f);},'MUXgq':_0x2f0671(0x22c)};let _0x51bd17;try{!_0x1df00e[_0x2f0671(0x20f)]&&(logger[_0x2f0671(0x1f2)](_0x132448['YQils']),process[_0x2f0671(0x1fd)](0x1));!fs[_0x2f0671(0x237)](_0x132448[_0x2f0671(0x1ff)](getCredentialsPath))&&(logger['error'](_0x132448[_0x2f0671(0x20e)]),await _0x132448[_0x2f0671(0x202)](sendInstrumentationEvent,_0x1df00e,_0x132448[_0x2f0671(0x20a)],messageTypes[_0x2f0671(0x1f1)],_0x132448[_0x2f0671(0x216)],null,_0x1df00e),process['exit'](0x1));logger[_0x2f0671(0x21a)](_0x2f0671(0x204)+_0x1df00e['gridId']),await _0x132448['RYFgM'](sendInstrumentationEvent,_0x1df00e,_0x132448[_0x2f0671(0x20a)],messageTypes[_0x2f0671(0x205)],null,null,_0x1df00e);const _0x5c44f7=JSON[_0x2f0671(0x233)](fs[_0x2f0671(0x206)](_0x132448[_0x2f0671(0x1ed)](getCredentialsPath)));global_registry[_0x2f0671(0x238)]=_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x1f8)],global_registry['bstackAccesskey']=_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x235)];const _0x1572dd=WS_ENDPOINT['replace'](_0x132448['uYZyt'],_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x1f8)])[_0x2f0671(0x21b)](_0x132448[_0x2f0671(0x215)],_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x235)]),_0x196e1a={};_0x196e1a[_0x2f0671(0x1fa)]=ws,_0x196e1a[_0x2f0671(0x22d)]=0x36ee80,_0x51bd17=new ReconnectingWebSocket(_0x1572dd,[],_0x196e1a),logger[_0x2f0671(0x209)](_0x132448[_0x2f0671(0x1f6)]),webSocketUtils['addListeners'](_0x51bd17,_0x1df00e[_0x2f0671(0x240)],_0x1df00e[_0x2f0671(0x235)]);const [_0x346f57,_0x18ab95]=await _0x132448['vsNLg'](getGridDetails,_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x1f8)],_0x5c44f7[_0x2f0671(0x228)][_0x2f0671(0x235)],_0x1df00e['gridId']);if(_0x18ab95){const _0x4464d2=_0x18ab95[_0x2f0671(0x21a)];global_registry[_0x2f0671(0x22e)]=_0x4464d2[_0x2f0671(0x22e)],global_registry[_0x2f0671(0x20d)]=_0x4464d2['region'],global_registry[_0x2f0671(0x1ef)]=_0x4464d2[_0x2f0671(0x1ef)];const _0x47f5ee=await _0x132448['RYFgM'](getCloudProviderObject,_0x4464d2[_0x2f0671(0x22e)],_0x4464d2[_0x2f0671(0x1ef)],_0x4464d2[_0x2f0671(0x229)],_0x51bd17,webSocketUtils,_0x1df00e),[_0x5c7034,_0x15e114,_0x501f64,_0xbb99f,_0xb15e53,_0xac0ad1]=await _0x132448[_0x2f0671(0x1f3)](createK8sClient,_0x47f5ee,_0x1df00e[_0x2f0671(0x234)]);await _0x132448['Ivkgq'](scaleDownHubDeployment,_0x15e114,_0x4464d2[_0x2f0671(0x229)]),logger['info'](_0x132448[_0x2f0671(0x222)]),process[_0x2f0671(0x1fd)](0x0);}_0x132448[_0x2f0671(0x1eb)](_0x346f57[_0x2f0671(0x220)],0x191)&&(logger[_0x2f0671(0x1f2)](_0x132448['SEVbT']),await _0x132448['eghwz'](sendInstrumentationEvent,_0x1df00e,_0x132448[_0x2f0671(0x20a)],messageTypes[_0x2f0671(0x1f1)],_0x132448[_0x2f0671(0x1f4)],null,_0x1df00e),process[_0x2f0671(0x1fd)](0x1)),_0x132448[_0x2f0671(0x1eb)](_0x346f57[_0x2f0671(0x220)],0x190)&&(logger[_0x2f0671(0x1f2)](JSON[_0x2f0671(0x233)](_0x346f57[_0x2f0671(0x213)])['message']),await _0x132448[_0x2f0671(0x241)](sendInstrumentationEvent,_0x1df00e,_0x132448['XsBrE'],messageTypes['ERROR'],_0x132448['ECJat'],null,_0x1df00e),process[_0x2f0671(0x1fd)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2f0671(0x207)](_0x346f57)),await _0x132448['yighG'](sendInstrumentationEvent,_0x1df00e,_0x132448[_0x2f0671(0x20a)],messageTypes['ERROR'],_0x132448[_0x2f0671(0x212)],_0x346f57,_0x1df00e),process['exit'](0x1);}catch(_0x5f4fea){const _0x6204a8='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x5f4fea+'\x20\x0a'+JSON[_0x2f0671(0x207)](_0x5f4fea[_0x2f0671(0x21e)])+'\x20';logger[_0x2f0671(0x1f2)](_0x6204a8),process[_0x2f0671(0x1fd)](0x1);}};
@@ -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_0x4cce60=a22_0x66cf;(function(_0x21cacd,_0x2f1b44){const _0x5a5624=a22_0x66cf,_0x5e2f1d=_0x21cacd();while(!![]){try{const _0x386807=parseInt(_0x5a5624(0xed))/0x1+-parseInt(_0x5a5624(0x13a))/0x2*(parseInt(_0x5a5624(0x13c))/0x3)+-parseInt(_0x5a5624(0x129))/0x4*(-parseInt(_0x5a5624(0x109))/0x5)+parseInt(_0x5a5624(0xea))/0x6+parseInt(_0x5a5624(0xe8))/0x7*(-parseInt(_0x5a5624(0x13e))/0x8)+parseInt(_0x5a5624(0x104))/0x9+-parseInt(_0x5a5624(0x10f))/0xa;if(_0x386807===_0x2f1b44)break;else _0x5e2f1d['push'](_0x5e2f1d['shift']());}catch(_0x22cbdf){_0x5e2f1d['push'](_0x5e2f1d['shift']());}}}(a22_0x2b05,0x9b706),require(a22_0x4cce60(0xec))[a22_0x4cce60(0x118)]());let gridURL='grid.browserstack.com',bsApiUrl='api.browserstack.com',agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x4cce60(0x113)][a22_0x4cce60(0x11b)]||'prod')['toLowerCase']();if(_env==='staging'||_env===a22_0x4cce60(0x134))gridURL=a22_0x4cce60(0x138),bsApiUrl=a22_0x4cce60(0x107),agApiUrl=a22_0x4cce60(0x102);else(_env===a22_0x4cce60(0x10a)||_env===a22_0x4cce60(0xfc))&&(gridURL=a22_0x4cce60(0x124),bsApiUrl=a22_0x4cce60(0x11c),agApiUrl=a22_0x4cce60(0xde));exports[a22_0x4cce60(0x12c)]=process[a22_0x4cce60(0x113)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x4cce60(0xf1)]=process[a22_0x4cce60(0x113)][a22_0x4cce60(0xf1)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x4cce60(0x113)]['AG_API_URL']||agApiUrl,exports[a22_0x4cce60(0x139)]=a22_0x4cce60(0xff)+this[a22_0x4cce60(0x13f)]+a22_0x4cce60(0xf3),exports[a22_0x4cce60(0xeb)]=a22_0x4cce60(0x147),exports[a22_0x4cce60(0xe2)]=a22_0x4cce60(0x12a),exports[a22_0x4cce60(0x127)]=a22_0x4cce60(0xe5),exports['AWS']=a22_0x4cce60(0x114),exports['CLUSTER_DEP_STACK_NAME']=a22_0x4cce60(0xf9),exports[a22_0x4cce60(0x132)]=a22_0x4cce60(0xfe),exports[a22_0x4cce60(0x106)]=a22_0x4cce60(0x10c),exports[a22_0x4cce60(0xe6)]=a22_0x4cce60(0x103),exports[a22_0x4cce60(0x10d)]='azure',exports[a22_0x4cce60(0x148)]='gcp',exports[a22_0x4cce60(0xef)]=[this[a22_0x4cce60(0x11a)],this[a22_0x4cce60(0x10d)],this[a22_0x4cce60(0x148)]];const a22_0x4b60c7={};a22_0x4b60c7[a22_0x4cce60(0x125)]='browserstack:managedBy',a22_0x4b60c7[a22_0x4cce60(0x122)]=a22_0x4cce60(0x145);const a22_0x245063={};a22_0x245063[a22_0x4cce60(0x125)]=a22_0x4cce60(0x10b),a22_0x245063[a22_0x4cce60(0x122)]=a22_0x4cce60(0x146);const common_hst_tags_list=[a22_0x4b60c7,a22_0x245063];function a22_0x66cf(_0x14f246,_0x4726aa){const _0x2b05d4=a22_0x2b05();return a22_0x66cf=function(_0x66cfb4,_0x139334){_0x66cfb4=_0x66cfb4-0xdb;let _0x19ccb0=_0x2b05d4[_0x66cfb4];return _0x19ccb0;},a22_0x66cf(_0x14f246,_0x4726aa);}if(process[a22_0x4cce60(0x113)][a22_0x4cce60(0x126)]){const parsedTags=process[a22_0x4cce60(0x113)][a22_0x4cce60(0x126)][a22_0x4cce60(0x12e)](',');parsedTags[a22_0x4cce60(0x117)](_0x9e4434=>{const _0x66bb5=a22_0x4cce60,_0x3852ae=_0x9e4434[_0x66bb5(0x12e)](':'),_0x530d28={};_0x530d28[_0x66bb5(0x125)]=_0x3852ae[0x0],_0x530d28[_0x66bb5(0x122)]=_0x3852ae[0x1],common_hst_tags_list[_0x66bb5(0x11f)](_0x530d28);});}exports[a22_0x4cce60(0x131)]=common_hst_tags_list;const a22_0x5c3d3f={};a22_0x5c3d3f[a22_0x4cce60(0x10e)]='BrowserStack',a22_0x5c3d3f[a22_0x4cce60(0x10b)]=a22_0x4cce60(0x146),exports[a22_0x4cce60(0xf7)]=a22_0x5c3d3f,exports[a22_0x4cce60(0xe3)]=[this['AWS']];function a22_0x2b05(){const _0x3b941f=['list','1461212PVXTzD','BrowserStackIAMUser','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','DASHBOARD_ENDPOINT','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','split','[REDACTED]','NULL','COMMON_HST_TAGS','CLUSTER_AUTOSCALER_STACK_NAME','info','stag','REGION','unknown','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','grid-devhst.bsstag.com','WS_ENDPOINT','331826YfNHGZ','LOG','12WHjuKD','CLI_RUN_STARTED','1184320tiaCef','AG_API_URL','LINK_MESSAGE','global_registry','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','REDACTED','BrowserStack','BrowserStack-Automate-TurboScale','credentials','GCP','CLI_RUN_FINISHED','messageTypes','configure','grid-api-preprod.bsstag.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','GRID_URL','DEFAULT_CLUSTER_DETAILS','IAM_USER_NAME','SUPPORTED_CLOUD_PROVIDERS','gridProfile','high-scale-grid','TURBOSCALE_DEPLOYMENT','delete','35Jsitic','success','76572zBtbXL','CP_CONFIG_FILE','dotenv','1157158fbusqi','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','ALL_SUPPORTED_CLOUD_PROVIDERS','pre_check','BS_API_URL','connect','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','INFO','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','HST_CLUSTER_TAGS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BSTACK-ATS-CLUSTER','grid','high-scale-grid-cluster','pre-prod','ERROR','BSTACK-ATS-CLUSTER-AUTOSCALER','wss://','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','HELP_FOOTER_MESSAGE','grid-api-devhst.bsstag.com','browserstack-turboscale-grid','4321593tfUQAY','RESOURCES','CLUSTER_HUB_HA_STACK_NAME','api-devhst.bsstag.com','error','15KzcaDI','preprod','browserstack:service','BSTACK-ATS-CLUSTER-HUB-HA','AZURE','browserstack:managedBy','7054760sasgFW','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','cliRunFinished','env','aws','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','gridUrl','forEach','config','init','AWS','BROWSERSTACK_ENV','api-preprod.bsstag.com','WARNING','log','push','SUCCESS','CLUSTER','Value','HELP_HEADER_MESSAGE','grid-preprod.bsstag.com','Key','TURBOSCALE_CUSTOM_TAGS','DEFAULT_GRID_NAME'];a22_0x2b05=function(){return _0x3b941f;};return a22_0x2b05();}const a22_0x54c891={};a22_0x54c891[a22_0x4cce60(0x13b)]=a22_0x4cce60(0x11e),a22_0x54c891[a22_0x4cce60(0x105)]='resourceInfo',a22_0x54c891[a22_0x4cce60(0xe0)]=a22_0x4cce60(0x116),a22_0x54c891[a22_0x4cce60(0x13d)]='cliRunStarted',a22_0x54c891[a22_0x4cce60(0xdb)]=a22_0x4cce60(0x112),exports['WS_EVENTS']=a22_0x54c891,exports[a22_0x4cce60(0x141)]={},exports[a22_0x4cce60(0x140)]=a22_0x4cce60(0x142);const a22_0x3d1832={};a22_0x3d1832['root']=a22_0x4cce60(0xf4)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0x119)]=a22_0x4cce60(0xf8)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0xdd)]=a22_0x4cce60(0xdf)+this[a22_0x4cce60(0x140)],a22_0x3d1832['create']=a22_0x4cce60(0x100)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0x128)]={},a22_0x3d1832[a22_0x4cce60(0xe7)]=a22_0x4cce60(0x115)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0xf2)]=a22_0x4cce60(0x12d)+this['LINK_MESSAGE'],a22_0x3d1832['start']='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x4cce60(0x140)],a22_0x3d1832['stop']=a22_0x4cce60(0xee)+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0xf0)]=a22_0x4cce60(0x143)+this['LINK_MESSAGE'],a22_0x3d1832[a22_0x4cce60(0x128)]['root']='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x4cce60(0x140)],a22_0x3d1832[a22_0x4cce60(0x128)][a22_0x4cce60(0xfa)]=a22_0x4cce60(0x12b)+this['LINK_MESSAGE'],a22_0x3d1832[a22_0x4cce60(0x128)][a22_0x4cce60(0xe4)]=a22_0x4cce60(0x137)+this[a22_0x4cce60(0x140)],exports[a22_0x4cce60(0x123)]=a22_0x3d1832,exports[a22_0x4cce60(0x101)]=a22_0x4cce60(0x110);const a22_0x88aa8c={};a22_0x88aa8c[a22_0x4cce60(0x120)]=a22_0x4cce60(0xe9),a22_0x88aa8c[a22_0x4cce60(0xfd)]=a22_0x4cce60(0x108),a22_0x88aa8c[a22_0x4cce60(0xf5)]=a22_0x4cce60(0x133),a22_0x88aa8c[a22_0x4cce60(0x11d)]='warning',a22_0x88aa8c['UNKNOWN']=a22_0x4cce60(0x136),a22_0x88aa8c[a22_0x4cce60(0x130)]=null,exports[a22_0x4cce60(0xdc)]=a22_0x88aa8c,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x4cce60(0x144)]=a22_0x4cce60(0x12f);const a22_0x585495={};a22_0x585495['grid-profile']=a22_0x4cce60(0x111);const a22_0x758c7a={};a22_0x758c7a['pre-check']=a22_0x585495,exports['MessageDescription']=a22_0x758c7a,exports['TRIAL_GRID_URL']=a22_0x4cce60(0xf6);const a22_0x119083={};a22_0x119083[a22_0x4cce60(0x121)]=a22_0x4cce60(0xfb),a22_0x119083['CLOUD_PROVIDER']=a22_0x4cce60(0x114),a22_0x119083[a22_0x4cce60(0x135)]='us-east-1',exports[a22_0x4cce60(0xe1)]=a22_0x119083;
@@ -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
+ const a23_0xee1cfc=a23_0x5c8e;function a23_0x5c8e(_0x5a08cc,_0x9cde73){const _0x31567a=a23_0x3156();return a23_0x5c8e=function(_0x5c8e68,_0x4e014){_0x5c8e68=_0x5c8e68-0x11f;let _0xe96cf7=_0x31567a[_0x5c8e68];return _0xe96cf7;},a23_0x5c8e(_0x5a08cc,_0x9cde73);}(function(_0x2a56e4,_0x3062d6){const _0x2761ad=a23_0x5c8e,_0x3df86c=_0x2a56e4();while(!![]){try{const _0x4e1280=parseInt(_0x2761ad(0x122))/0x1*(-parseInt(_0x2761ad(0x129))/0x2)+-parseInt(_0x2761ad(0x12d))/0x3*(-parseInt(_0x2761ad(0x13a))/0x4)+-parseInt(_0x2761ad(0x138))/0x5+parseInt(_0x2761ad(0x123))/0x6+-parseInt(_0x2761ad(0x140))/0x7+parseInt(_0x2761ad(0x120))/0x8*(parseInt(_0x2761ad(0x12f))/0x9)+parseInt(_0x2761ad(0x125))/0xa*(parseInt(_0x2761ad(0x13f))/0xb);if(_0x4e1280===_0x3062d6)break;else _0x3df86c['push'](_0x3df86c['shift']());}catch(_0x28f189){_0x3df86c['push'](_0x3df86c['shift']());}}}(a23_0x3156,0x21c2c));const winston=require(a23_0xee1cfc(0x134)),fs=require('fs'),path=require(a23_0xee1cfc(0x13c)),logDir='log';!fs[a23_0xee1cfc(0x13d)](logDir)&&fs['mkdirSync'](logDir);const a23_0xd816c={};a23_0xd816c[a23_0xee1cfc(0x13e)]=a23_0xee1cfc(0x12e);const a23_0x2e75c5={};a23_0x2e75c5[a23_0xee1cfc(0x12c)]=!![];function a23_0x3156(){const _0xce7328=['Console','path','existsSync','format','814PZCTEI','795991CFDjOo','name','85912RSqakt','colorize','8842ZVcgyE','749190QLumuL','logger','15630pLdnSO','transports','console.info','fileLogger','44lGZumn','events.log','message','level','99qvYtLO','YYYY-MM-DD\x20HH:mm:ss','81JfpRyO','combine','debug','timestamp','printf','winston','File','usage.log','join','590300wxrASs','createLogger','27564FWUKvi'];a23_0x3156=function(){return _0xce7328;};return a23_0x3156();}const a23_0x42729f={};a23_0x42729f[a23_0xee1cfc(0x11f)]=a23_0xee1cfc(0x127),exports[a23_0xee1cfc(0x124)]=new winston[(a23_0xee1cfc(0x139))]({'format':winston[a23_0xee1cfc(0x13e)][a23_0xee1cfc(0x130)](winston[a23_0xee1cfc(0x13e)]['timestamp'](a23_0xd816c),winston[a23_0xee1cfc(0x13e)][a23_0xee1cfc(0x121)](a23_0x2e75c5),winston[a23_0xee1cfc(0x13e)][a23_0xee1cfc(0x133)](_0x546bfe=>_0x546bfe[a23_0xee1cfc(0x132)]+'\x20-\x20'+_0x546bfe[a23_0xee1cfc(0x12c)]+':\x20'+_0x546bfe[a23_0xee1cfc(0x12b)])),'transports':[new winston[(a23_0xee1cfc(0x126))][(a23_0xee1cfc(0x13b))](a23_0x42729f),new winston[(a23_0xee1cfc(0x126))][(a23_0xee1cfc(0x135))]({'filename':path[a23_0xee1cfc(0x137)](logDir,a23_0xee1cfc(0x12a)),'level':a23_0xee1cfc(0x131)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0xee1cfc(0x126))]['File']({'filename':path[a23_0xee1cfc(0x137)](logDir,a23_0xee1cfc(0x136)),'level':a23_0xee1cfc(0x131)})]};exports[a23_0xee1cfc(0x128)]=new winston[(a23_0xee1cfc(0x139))](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_0x264581=a24_0x5c4b;(function(_0x567b21,_0x8c8d86){const _0x2f1999=a24_0x5c4b,_0x4dc029=_0x567b21();while(!![]){try{const _0x22918e=parseInt(_0x2f1999(0xf4))/0x1+parseInt(_0x2f1999(0xf5))/0x2+-parseInt(_0x2f1999(0xf7))/0x3+-parseInt(_0x2f1999(0xec))/0x4+parseInt(_0x2f1999(0xf9))/0x5*(parseInt(_0x2f1999(0xf8))/0x6)+parseInt(_0x2f1999(0xf3))/0x7*(parseInt(_0x2f1999(0xf6))/0x8)+parseInt(_0x2f1999(0xfa))/0x9*(-parseInt(_0x2f1999(0xf1))/0xa);if(_0x22918e===_0x8c8d86)break;else _0x4dc029['push'](_0x4dc029['shift']());}catch(_0xf142fd){_0x4dc029['push'](_0x4dc029['shift']());}}}(a24_0x20fe,0x370cc));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a24_0x20fe(){const _0x2109d5=['1026SZAknf','42hwQuOx','78470wYGXbb','4386429QLShaz','pTepm','commandDir','root','epilogue','exports','1278756YnlTjA','env','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','help','commands','10IvzPFb','usage','7ybrEgE','392030yTNNZh','288862vSxWUu','3092616xBFBkJ'];a24_0x20fe=function(){return _0x2109d5;};return a24_0x20fe();}process[a24_0x264581(0xed)][a24_0x264581(0xee)]=0x1;function a24_0x5c4b(_0x2e3083,_0xff6422){const _0x20fe29=a24_0x20fe();return a24_0x5c4b=function(_0x5c4be5,_0x206f97){_0x5c4be5=_0x5c4be5-0xea;let _0x237f91=_0x20fe29[_0x5c4be5];return _0x237f91;},a24_0x5c4b(_0x2e3083,_0xff6422);}function run(_0x34e532){const _0x266849=a24_0x264581,_0x47768d={};_0x47768d['pLgrw']=_0x266849(0xf0),_0x47768d[_0x266849(0xfb)]=_0x266849(0xef);const _0x44e8c7=_0x47768d;_0x34e532[_0x266849(0xf2)](HELP_HEADER_MESSAGE[_0x266849(0xfd)])[_0x266849(0xfc)](_0x44e8c7['pLgrw'])['demandCommand']()[_0x266849(0xef)](_0x44e8c7['pTepm'])[_0x266849(0xea)](HELP_FOOTER_MESSAGE);}module[a24_0x264581(0xeb)]=run;