browserstack-node-sdk 1.40.5 → 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
- function a15_0xf76d(){const _0x1a8a01=['ARmqZ','HtSHo','uuid','Browserstack','QoSnS','AAiaw','parse','stack','ejZfj','argv','stringify','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','grid-name','QGyFu','INFO','\x0aFound\x20the\x20following\x20grids:\x0a','mRmwD','existsSync','queued','JBUMo','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','8636838Cyiwic','638vWjyam','exit','running','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','init-not-called','2504748tmDeUW','grid','321bIgojc','381957jnZaNr','1710szCDkS','requestId','unknown-error','name','ERROR','gYhpK','clusterName','command','28HGJSGA','body','help','statusCode','../../utils/utilityMethods','../../utils/instrumentationUtils','../../config/constants','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','yYXmo','https://','GET','status','grids','qXtIq','uDsiZ','uGOKg','table','XHEjO','lAyxB','bstackAccesskey','bstackUsername','all-grids','error','12kVOQlR','4870NKnYyJ','NGwVz','options','44WkiXDQ','DihSk','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','got','mMFBY','1581495zpAycN','Failed\x20to\x20list\x20resources!\x20Error:\x20','boolean','allGrids','/packages/cli/get-all-grids','username','log','builder','2145064DXyHzv','forEach'];a15_0xf76d=function(){return _0x1a8a01;};return a15_0xf76d();}const a15_0x453538=a15_0x4ab6;function a15_0x4ab6(_0x3fb8e6,_0x38bfb0){const _0xf76de2=a15_0xf76d();return a15_0x4ab6=function(_0x4ab6cc,_0x215e88){_0x4ab6cc=_0x4ab6cc-0x8e;let _0x4c59e5=_0xf76de2[_0x4ab6cc];return _0x4c59e5;},a15_0x4ab6(_0x3fb8e6,_0x38bfb0);}(function(_0x220ff7,_0x4a0a02){const _0x4f640b=a15_0x4ab6,_0x17cc76=_0x220ff7();while(!![]){try{const _0x4862db=parseInt(_0x4f640b(0xde))/0x1+-parseInt(_0x4f640b(0xd6))/0x2*(parseInt(_0x4f640b(0xdd))/0x3)+parseInt(_0x4f640b(0xab))/0x4*(parseInt(_0x4f640b(0xb5))/0x5)+parseInt(_0x4f640b(0xd5))/0x6+parseInt(_0x4f640b(0x94))/0x7*(-parseInt(_0x4f640b(0xbd))/0x8)+parseInt(_0x4f640b(0xdf))/0x9*(-parseInt(_0x4f640b(0xac))/0xa)+parseInt(_0x4f640b(0xaf))/0xb*(-parseInt(_0x4f640b(0xdb))/0xc);if(_0x4862db===_0x4a0a02)break;else _0x17cc76['push'](_0x17cc76['shift']());}catch(_0x2fed56){_0x17cc76['push'](_0x17cc76['shift']());}}}(a15_0xf76d,0xb3bd8));const fs=require('fs'),got=require(a15_0x453538(0xb3)),{table}=require(a15_0x453538(0xa4)),{v4:uuidv4}=require(a15_0x453538(0xc1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x453538(0x9a)),{getCredentialsPath,getAuthHeader}=require(a15_0x453538(0x98)),{sendInstrumentationEvent}=require(a15_0x453538(0x99));exports[a15_0x453538(0x93)]=a15_0x453538(0xa0),exports[a15_0x453538(0xd3)]=a15_0x453538(0xd9),exports[a15_0x453538(0xbc)]=function(_0x3ed450){const _0x275fe2=a15_0x453538,_0x5322e5={};_0x5322e5[_0x275fe2(0xad)]=_0x275fe2(0xca),_0x5322e5['HglxO']=_0x275fe2(0xb7),_0x5322e5[_0x275fe2(0xc3)]=_0x275fe2(0x96);const _0x47f4ad=_0x5322e5,_0x4fe76f={};_0x4fe76f['description']=_0x47f4ad[_0x275fe2(0xad)],_0x4fe76f['type']=_0x47f4ad['HglxO'];const _0x528812={};return _0x528812[_0x275fe2(0xa9)]=_0x4fe76f,_0x3ed450['usage'](HELP_HEADER_MESSAGE['list'][_0x275fe2(0xdc)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x275fe2(0xae)](_0x528812)[_0x275fe2(0x96)](_0x47f4ad[_0x275fe2(0xc3)])[_0x275fe2(0xc8)];},exports['handler']=async function(_0x88d88b){const _0xea9a24=a15_0x453538,_0x16e733={'KqTnZ':function(_0x7b65ef){return _0x7b65ef();},'OcAYa':function(_0x370835){return _0x370835();},'XHEjO':_0xea9a24(0xb2),'uDsiZ':function(_0x2dc7bb,_0x518268,_0x57023a,_0x3e7755,_0x2a088b,_0x2abad7,_0x3d7a94){return _0x2dc7bb(_0x518268,_0x57023a,_0x3e7755,_0x2a088b,_0x2abad7,_0x3d7a94);},'lAyxB':'list-grids-called','HtSHo':_0xea9a24(0xda),'ARmqZ':function(_0x349ef8){return _0x349ef8();},'mMFBY':_0xea9a24(0x9e),'AAiaw':function(_0x36e9e0,_0x30be25,_0x1942d1){return _0x36e9e0(_0x30be25,_0x1942d1);},'ejZfj':function(_0x15235b,_0x17b8c2){return _0x15235b!==_0x17b8c2;},'JBUMo':function(_0x48a624,_0x4962e4){return _0x48a624!==_0x4962e4;},'DihSk':function(_0x1979ed,_0x40afcf){return _0x1979ed===_0x40afcf;},'zZWTy':_0xea9a24(0xce),'ydrFC':'grid-id','xUBTi':_0xea9a24(0xcb),'QGyFu':_0xea9a24(0x9f),'roruP':_0xea9a24(0xd8),'gYhpK':'queued','qXtIq':'cluster-name','yYXmo':function(_0xf8e6dc,_0x1b7cc6){return _0xf8e6dc(_0x1b7cc6);},'pTkLv':_0xea9a24(0xd4),'mmpXk':'unauthorised','FZGgP':function(_0x7ad7a8,_0x398e4b,_0x1e7871,_0x5c1a18,_0x215de8,_0x23973c,_0x14f5fe){return _0x7ad7a8(_0x398e4b,_0x1e7871,_0x5c1a18,_0x215de8,_0x23973c,_0x14f5fe);},'uGOKg':'server-error','mRmwD':function(_0x3ee701,_0x12399b,_0x31b9b8,_0x139896,_0x2072a7,_0x17692f,_0x10db91){return _0x3ee701(_0x12399b,_0x31b9b8,_0x139896,_0x2072a7,_0x17692f,_0x10db91);},'nmgRG':_0xea9a24(0x8e)};try{global_registry[_0xea9a24(0xe0)]=_0x16e733['KqTnZ'](uuidv4);!fs[_0xea9a24(0xd0)](_0x16e733['OcAYa'](getCredentialsPath))&&(console[_0xea9a24(0xaa)](_0x16e733[_0xea9a24(0xa5)]),await _0x16e733['uDsiZ'](sendInstrumentationEvent,_0x88d88b,_0x16e733['lAyxB'],messageTypes[_0xea9a24(0x90)],_0x16e733[_0xea9a24(0xc0)],null,_0x88d88b),process[_0xea9a24(0xd7)](0x1));const _0x2fc472=JSON[_0xea9a24(0xc5)](fs['readFileSync'](_0x16e733[_0xea9a24(0xbf)](getCredentialsPath)));let _0xe4c54e=_0xea9a24(0x9d)+AG_API_URL+'/packages/cli/get-grids';_0x88d88b[_0xea9a24(0xb8)]&&(_0xe4c54e=_0xea9a24(0x9d)+AG_API_URL+_0xea9a24(0xb9));const _0x46df3e={'method':_0x16e733[_0xea9a24(0xb4)],'headers':_0x16e733[_0xea9a24(0xc4)](getAuthHeader,_0x2fc472[_0xea9a24(0xc2)][_0xea9a24(0xba)],_0x2fc472[_0xea9a24(0xc2)][_0xea9a24(0xb1)]),'throwHttpErrors':![]};global_registry[_0xea9a24(0xa8)]=_0x2fc472[_0xea9a24(0xc2)][_0xea9a24(0xba)],global_registry[_0xea9a24(0xa7)]=_0x2fc472[_0xea9a24(0xc2)][_0xea9a24(0xb1)],_0x16e733[_0xea9a24(0xa2)](sendInstrumentationEvent,_0x88d88b,_0x16e733[_0xea9a24(0xa6)],messageTypes[_0xea9a24(0xcd)],null,null,_0x88d88b);const _0x4f7d09=await _0x16e733['AAiaw'](got,_0xe4c54e,_0x46df3e);if(_0x16e733[_0xea9a24(0xc7)](_0x4f7d09,null)&&_0x16e733[_0xea9a24(0xd2)](_0x4f7d09,undefined)&&_0x16e733[_0xea9a24(0xb0)](_0x4f7d09[_0xea9a24(0x97)],0xc8)){const _0x4aa4c1=JSON[_0xea9a24(0xc5)](_0x4f7d09[_0xea9a24(0x95)]);console[_0xea9a24(0xbb)](_0x16e733['zZWTy']);const _0x29cfad=[];_0x29cfad['push']([_0x16e733['ydrFC'],_0x16e733['xUBTi'],_0x16e733[_0xea9a24(0xcc)],_0x16e733['roruP'],_0x16e733[_0xea9a24(0x91)],_0x16e733[_0xea9a24(0xa1)]]),_0x4aa4c1[_0xea9a24(0xbe)](_0x1b85b8=>{const _0x4b90bf=_0xea9a24;_0x29cfad['push']([_0x1b85b8['id'],_0x1b85b8[_0x4b90bf(0x8f)],_0x1b85b8[_0x4b90bf(0x9f)],_0x1b85b8[_0x4b90bf(0xd8)],_0x1b85b8[_0x4b90bf(0xd1)],_0x1b85b8[_0x4b90bf(0x92)]]);}),console[_0xea9a24(0xbb)](_0x16e733[_0xea9a24(0x9c)](table,_0x29cfad)),process['exit'](0x0);}_0x16e733[_0xea9a24(0xb0)](_0x4f7d09[_0xea9a24(0x97)],0x191)&&(console[_0xea9a24(0xaa)](_0x16e733['pTkLv']),await _0x16e733[_0xea9a24(0xa2)](sendInstrumentationEvent,_0x88d88b,_0x16e733[_0xea9a24(0xa6)],messageTypes[_0xea9a24(0x90)],_0x16e733['mmpXk'],null,_0x88d88b),process['exit'](0x1)),console[_0xea9a24(0xaa)](_0xea9a24(0x9b)+JSON[_0xea9a24(0xc9)](_0x4f7d09)),await _0x16e733['FZGgP'](sendInstrumentationEvent,_0x88d88b,_0x16e733[_0xea9a24(0xa6)],messageTypes['ERROR'],_0x16e733[_0xea9a24(0xa3)],_0x4f7d09,_0x88d88b),process[_0xea9a24(0xd7)](0x1);}catch(_0x13096f){console[_0xea9a24(0xaa)](_0xea9a24(0xb6)+_0x13096f[_0xea9a24(0xc6)]),await _0x16e733[_0xea9a24(0xcf)](sendInstrumentationEvent,_0x88d88b,_0x16e733[_0xea9a24(0xa6)],messageTypes['ERROR'],_0x16e733['nmgRG'],_0x13096f,_0x88d88b),process[_0xea9a24(0xd7)](0x1);}};
1
+ 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_0x4bba19=a16_0x3553;(function(_0x17aef4,_0x365d74){const _0x4e6783=a16_0x3553,_0x4e4e0f=_0x17aef4();while(!![]){try{const _0x2bb7b9=parseInt(_0x4e6783(0x1bd))/0x1*(parseInt(_0x4e6783(0x1b2))/0x2)+-parseInt(_0x4e6783(0x1bf))/0x3+-parseInt(_0x4e6783(0x1b8))/0x4+-parseInt(_0x4e6783(0x1ba))/0x5+parseInt(_0x4e6783(0x1b5))/0x6*(parseInt(_0x4e6783(0x1b0))/0x7)+parseInt(_0x4e6783(0x1af))/0x8+-parseInt(_0x4e6783(0x1c3))/0x9*(parseInt(_0x4e6783(0x1b9))/0xa);if(_0x2bb7b9===_0x365d74)break;else _0x4e4e0f['push'](_0x4e4e0f['shift']());}catch(_0x166cbf){_0x4e4e0f['push'](_0x4e4e0f['shift']());}}}(a16_0x5572,0x320f9));function a16_0x5572(){const _0x4dc3cc=['command','commandDir','66556FyrVJj','10BZfgNC','945190hiqrSD','epilogue','desc','8698eoNanQ','builder','437976QtNVRM','help','recommendCommands','wUxZB','1565361EJxhFE','precheck_commands','pre_check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','771632SHvHkC','2723EyAYOd','../config/constants','74HhEkpz','jGqWb','pre-check','4818HlHLQd'];a16_0x5572=function(){return _0x4dc3cc;};return a16_0x5572();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4bba19(0x1b1));function a16_0x3553(_0x545625,_0x77f5a){const _0x557282=a16_0x5572();return a16_0x3553=function(_0x355356,_0xcdc467){_0x355356=_0x355356-0x1af;let _0x4af3f5=_0x557282[_0x355356];return _0x4af3f5;},a16_0x3553(_0x545625,_0x77f5a);}exports[a16_0x4bba19(0x1b6)]=a16_0x4bba19(0x1b4),exports[a16_0x4bba19(0x1bc)]=a16_0x4bba19(0x1c6),exports[a16_0x4bba19(0x1be)]=function(_0x36daf6){const _0x43d903=a16_0x4bba19,_0x50dfff={};_0x50dfff['jGqWb']=_0x43d903(0x1c4),_0x50dfff[_0x43d903(0x1c2)]=_0x43d903(0x1c0);const _0x469fb2=_0x50dfff;return _0x36daf6['usage'](HELP_HEADER_MESSAGE[_0x43d903(0x1c5)])[_0x43d903(0x1bb)](HELP_FOOTER_MESSAGE)[_0x43d903(0x1b7)](_0x469fb2[_0x43d903(0x1b3)])['demandCommand']()[_0x43d903(0x1c1)]()['strict']()[_0x43d903(0x1c0)](_0x469fb2[_0x43d903(0x1c2)]);},exports['handler']=function(_0x251720){};
1
+ 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_0x442d3e=a17_0x43c2;(function(_0x4ecab8,_0x4d5db9){const _0x5d6b53=a17_0x43c2,_0x10cca8=_0x4ecab8();while(!![]){try{const _0x1b9403=parseInt(_0x5d6b53(0xd8))/0x1+-parseInt(_0x5d6b53(0xdb))/0x2*(parseInt(_0x5d6b53(0x1ce))/0x3)+-parseInt(_0x5d6b53(0x1bd))/0x4*(parseInt(_0x5d6b53(0xf4))/0x5)+-parseInt(_0x5d6b53(0x1c7))/0x6*(-parseInt(_0x5d6b53(0x155))/0x7)+-parseInt(_0x5d6b53(0x1a6))/0x8+parseInt(_0x5d6b53(0x12e))/0x9*(parseInt(_0x5d6b53(0x10a))/0xa)+-parseInt(_0x5d6b53(0x1c1))/0xb*(parseInt(_0x5d6b53(0x131))/0xc);if(_0x1b9403===_0x4d5db9)break;else _0x10cca8['push'](_0x10cca8['shift']());}catch(_0x208a01){_0x10cca8['push'](_0x10cca8['shift']());}}}(a17_0x32d5,0xca56b));const fs=require('fs'),ws=require('ws'),got=require(a17_0x442d3e(0xe0)),{v4:uuidv4}=require(a17_0x442d3e(0x1b0)),ReconnectingWebSocket=require(a17_0x442d3e(0x1c6)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x442d3e(0x18a)),{logger}=require(a17_0x442d3e(0x153)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x442d3e(0x142)),{getCloudProviderObjectWithOutInit}=require(a17_0x442d3e(0x101)),webSocketUtils=require(a17_0x442d3e(0x156)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a17_0x442d3e(0x13f)]=a17_0x442d3e(0x113),exports[a17_0x442d3e(0x16c)]=a17_0x442d3e(0x17a),exports['builder']=function(_0x958a4a){const _0x563737=a17_0x442d3e,_0x81e0a4={};_0x81e0a4[_0x563737(0x148)]=_0x563737(0x114),_0x81e0a4['uFTSV']=_0x563737(0x1a0),_0x81e0a4[_0x563737(0x17d)]=_0x563737(0x183),_0x81e0a4[_0x563737(0x199)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x81e0a4[_0x563737(0x187)]=_0x563737(0x1a3),_0x81e0a4[_0x563737(0x107)]=_0x563737(0x172);const _0x7b895=_0x81e0a4,_0xfd0304={};_0xfd0304['description']=_0x7b895[_0x563737(0x148)],_0xfd0304[_0x563737(0x1a1)]=_0x7b895[_0x563737(0x1a7)];const _0x313cab={};_0x313cab[_0x563737(0x14d)]=_0x7b895[_0x563737(0x17d)],_0x313cab['type']=_0x7b895[_0x563737(0x1a7)];const _0x217cf7={};_0x217cf7[_0x563737(0x14d)]=_0x7b895[_0x563737(0x199)],_0x217cf7[_0x563737(0x1a1)]=_0x7b895[_0x563737(0x1a7)];const _0x52de02={};_0x52de02[_0x563737(0x14d)]=_0x7b895[_0x563737(0x187)],_0x52de02[_0x563737(0x1a1)]=_0x7b895['uFTSV'];const _0x4efb87={};return _0x4efb87[_0x563737(0xd6)]=_0xfd0304,_0x4efb87['cloud-provider']=_0x313cab,_0x4efb87[_0x563737(0x14c)]=_0x217cf7,_0x4efb87['grid-profile']=_0x52de02,_0x958a4a[_0x563737(0x15b)](HELP_HEADER_MESSAGE[_0x563737(0x1d1)])[_0x563737(0x125)](HELP_FOOTER_MESSAGE)[_0x563737(0x1b1)](_0x4efb87)['help'](_0x7b895[_0x563737(0x107)])[_0x563737(0xf3)];};async function inputValidation(_0x1ae520,_0x4ebf8a){const _0x51c7ae=a17_0x442d3e,_0x23acc7={'egYnY':_0x51c7ae(0xd6),'JPzRp':_0x51c7ae(0x14c),'EYJas':_0x51c7ae(0x12c),'RfGLa':_0x51c7ae(0x118),'BbRDB':_0x51c7ae(0x1b7),'mvsTW':_0x51c7ae(0xee),'WSyKE':_0x51c7ae(0x154),'nCykb':function(_0x53d7dc,_0x4d2c70){return _0x53d7dc+_0x4d2c70;},'GVydj':_0x51c7ae(0x100),'AVcNB':_0x51c7ae(0x195),'KLSEz':function(_0x35b9ba,_0x415480){return _0x35b9ba||_0x415480;},'jYqVL':_0x51c7ae(0x114),'ktwfD':'string','mMGPT':_0x51c7ae(0x183),'xxlxl':_0x51c7ae(0x1cb),'byqLL':_0x51c7ae(0x1a3),'SUXYF':_0x51c7ae(0x172),'DkkgP':_0x51c7ae(0x1b6),'jfiJQ':function(_0x2c3035,_0x5b8c44){return _0x2c3035!==_0x5b8c44;},'hDBRw':_0x51c7ae(0x180),'wdktG':_0x51c7ae(0x119),'VaEuM':function(_0x426b8e,_0x10dca7){return _0x426b8e!==_0x10dca7;},'xvgPN':_0x51c7ae(0xfb),'MkXYY':function(_0x8846ab,_0x4d5753){return _0x8846ab!==_0x4d5753;},'EUuMk':_0x51c7ae(0x1ae),'SbmXL':_0x51c7ae(0x177),'XacCA':function(_0x1d9f36,_0x23cefb){return _0x1d9f36===_0x23cefb;},'AucFQ':_0x51c7ae(0x18f),'qoCes':'xRDYj','LjzyA':_0x51c7ae(0x1d6),'PZsYa':function(_0x4e83a3,_0x1c7024){return _0x4e83a3>_0x1c7024;},'LDKfS':function(_0x441021,_0x24d01e){return _0x441021===_0x24d01e;},'OLANa':_0x51c7ae(0x185),'oreIE':function(_0x35d56a,_0x44eb04,_0x121bcd,_0x1a57bf,_0x1b1e8e,_0x3bd43e,_0x47e760,_0x9b81d9){return _0x35d56a(_0x44eb04,_0x121bcd,_0x1a57bf,_0x1b1e8e,_0x3bd43e,_0x47e760,_0x9b81d9);},'fPraq':'pre-check-grid-called','OVaEk':'pre-check-cluster-args-not-passed','WILJl':'ouivv','eYebw':_0x51c7ae(0x122),'tmaZN':function(_0x1a12e0,_0x54d61b,_0x54caa6,_0x37068e,_0x370a4f,_0x106507,_0x29b78b,_0xfd4673){return _0x1a12e0(_0x54d61b,_0x54caa6,_0x37068e,_0x370a4f,_0x106507,_0x29b78b,_0xfd4673);},'PExte':_0x51c7ae(0xe9),'GhgBx':function(_0x3f136d,_0x18fba9){return _0x3f136d===_0x18fba9;},'aHeIf':'mKPQZ','VOWYO':_0x51c7ae(0x13d),'DppXS':_0x51c7ae(0x12f),'dFOGz':_0x51c7ae(0xdf),'pIieU':_0x51c7ae(0x1b4),'SrQKC':function(_0xe90816,_0x14caf2,_0x3ccdb2){return _0xe90816(_0x14caf2,_0x3ccdb2);},'ssxCg':function(_0x42f52d,_0x4a9e8d,_0x448452,_0x52b41a,_0x2e95a2,_0x57a02f){return _0x42f52d(_0x4a9e8d,_0x448452,_0x52b41a,_0x2e95a2,_0x57a02f);},'ARhHV':_0x51c7ae(0x1b9),'NHeDB':_0x51c7ae(0x109),'xPyWT':function(_0x4004ab,_0x1a952f){return _0x4004ab!==_0x1a952f;},'jIvRg':_0x51c7ae(0x190),'Leqmc':function(_0x1ec08f,_0x2264ba){return _0x1ec08f(_0x2264ba);},'YhlwJ':function(_0x41849f,_0x3c27fa){return _0x41849f===_0x3c27fa;},'fEkVA':_0x51c7ae(0x165),'ZAxrf':_0x51c7ae(0x1d2),'PeqmN':function(_0x404b75,_0x577cb9,_0x4a471e,_0x6b7285,_0x3b8569,_0x1315b1,_0x32a725,_0x125546){return _0x404b75(_0x577cb9,_0x4a471e,_0x6b7285,_0x3b8569,_0x1315b1,_0x32a725,_0x125546);},'HZPIQ':_0x51c7ae(0x1ad),'jKYnU':_0x51c7ae(0x121),'bZyas':_0x51c7ae(0x1a9),'jxzIf':function(_0x200146,_0x4c4afa){return _0x200146!==_0x4c4afa;},'HlpIP':_0x51c7ae(0x17f),'XHruO':_0x51c7ae(0x123),'jWuCc':_0x51c7ae(0x11b),'PWNeY':function(_0x1ac572,_0xde8087){return _0x1ac572!==_0xde8087;},'xUBrQ':_0x51c7ae(0x10b),'BMpfr':_0x51c7ae(0xe2),'YQHcs':function(_0x444296,_0x154b79){return _0x444296===_0x154b79;},'qcwfa':_0x51c7ae(0x170)};let _0x1a462d;try{if(_0x23acc7[_0x51c7ae(0x11c)](_0x23acc7[_0x51c7ae(0x130)],_0x23acc7[_0x51c7ae(0x198)])){if(_0x1ae520[_0x51c7ae(0xd5)]||_0x1ae520[_0x51c7ae(0x193)]||_0x1ae520[_0x51c7ae(0x14c)]){if(_0x23acc7['VaEuM'](_0x23acc7[_0x51c7ae(0x10f)],_0x23acc7[_0x51c7ae(0x10f)]))_0x1dc217=_0x24c9f3;else{const _0x9f0c7e=[];!_0x1ae520['clusterName']&&(_0x23acc7['MkXYY'](_0x23acc7[_0x51c7ae(0xe8)],_0x23acc7[_0x51c7ae(0x10e)])?_0x9f0c7e[_0x51c7ae(0x1c3)](_0x23acc7[_0x51c7ae(0xfe)]):_0x355de9[_0x51c7ae(0x1c3)](_0x23acc7['egYnY']));;!_0x1ae520[_0x51c7ae(0x193)]&&(_0x23acc7[_0x51c7ae(0xdc)](_0x23acc7[_0x51c7ae(0x160)],_0x23acc7[_0x51c7ae(0x1bf)])?_0xba7a8f[_0x51c7ae(0x1c3)](_0x23acc7[_0x51c7ae(0x124)]):_0x9f0c7e['push'](_0x23acc7['DkkgP']));;if(!_0x1ae520[_0x51c7ae(0x14c)]){if(_0x23acc7[_0x51c7ae(0x11c)](_0x23acc7[_0x51c7ae(0x18e)],_0x23acc7[_0x51c7ae(0x18e)])){const _0x284d24={};_0x284d24[_0x51c7ae(0x1a1)]=_0x5d8eb8[_0x51c7ae(0x182)],_0x284d24[_0x51c7ae(0x1c8)]=_0x764ef9,_0x52fab3[_0x51c7ae(0xd7)](_0x460d2e,_0x284d24,_0x23acc7[_0x51c7ae(0x1a8)],!![]);}else _0x9f0c7e[_0x51c7ae(0x1c3)](_0x23acc7[_0x51c7ae(0x124)]);};_0x23acc7[_0x51c7ae(0x111)](_0x9f0c7e[_0x51c7ae(0x197)],0x0)&&(_0x23acc7[_0x51c7ae(0xfc)](_0x23acc7[_0x51c7ae(0x15d)],_0x23acc7[_0x51c7ae(0x15d)])?(_0x1a462d=_0x51c7ae(0x17c)+_0x9f0c7e[_0x51c7ae(0xe5)](',\x20')+_0x51c7ae(0x157),await _0x23acc7[_0x51c7ae(0x14b)](reportToGalactusAndSendToEDS,_0x1ae520,_0x4ebf8a,_0x1a462d,messageTypes[_0x51c7ae(0x1a2)],_0x23acc7[_0x51c7ae(0x1d4)],_0x23acc7['OVaEk'],_0x23acc7['EYJas']),logger[_0x51c7ae(0x12c)](_0x1a462d),process[_0x51c7ae(0x132)](0x1)):(_0x2e3b03['info']('['+_0x6831be+_0x51c7ae(0xff)+_0x3ffa91[_0x51c7ae(0x136)]+_0x51c7ae(0x181)+_0x2c19fe[_0x51c7ae(0x15e)]+_0x51c7ae(0x1b3)+_0x357cca[_0x51c7ae(0x12c)]),_0xb20e17[_0x51c7ae(0x12c)]&&_0x398818[_0x51c7ae(0x12c)]('error\x20stack\x20:\x20'+_0x16d4da['error'][_0x51c7ae(0x1b5)]))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x51c7ae(0x1c0)](_0x1ae520[_0x51c7ae(0x193)]['toLowerCase']())&&(_0x23acc7[_0x51c7ae(0xfc)](_0x23acc7[_0x51c7ae(0x184)],_0x23acc7[_0x51c7ae(0x184)])?(_0x1a462d=_0x23acc7[_0x51c7ae(0x150)],await _0x23acc7[_0x51c7ae(0x162)](reportToGalactusAndSendToEDS,_0x1ae520,_0x4ebf8a,_0x1a462d,messageTypes[_0x51c7ae(0x1a2)],_0x23acc7[_0x51c7ae(0x1d4)],_0x23acc7['PExte'],_0x23acc7[_0x51c7ae(0x1a8)]),logger[_0x51c7ae(0x12c)](_0x1a462d),!_0x1ae520['cloudProvider']&&(_0x23acc7['GhgBx'](_0x23acc7[_0x51c7ae(0x16d)],_0x23acc7[_0x51c7ae(0x128)])?_0x4492d2[_0x51c7ae(0x12c)](_0x51c7ae(0x10c)+_0x2f1388[_0x51c7ae(0x12c)][_0x51c7ae(0x1b5)]):(logger[_0x51c7ae(0x103)](_0x51c7ae(0x19f)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x1ae520[_0x51c7ae(0x193)]=DEFAULT_CLUSTER_DETAILS[_0x51c7ae(0x167)]))):(_0x14d1c3[_0x51c7ae(0x103)]('Setting\x20cloud\x20provider\x20as\x20'+_0x26a601['CLOUD_PROVIDER']+'\x20'),_0x1c2860[_0x51c7ae(0x193)]=_0x4f2ebe[_0x51c7ae(0x167)])),global_registry[_0x51c7ae(0xd5)]=_0x1ae520['clusterName'],global_registry[_0x51c7ae(0x193)]=_0x1ae520['cloudProvider'],global_registry['clusterRegion']=_0x1ae520[_0x51c7ae(0x14c)];}}else{if(_0x1ae520[_0x51c7ae(0x11e)]){if(_0x23acc7[_0x51c7ae(0xdc)](_0x23acc7[_0x51c7ae(0x13b)],_0x23acc7[_0x51c7ae(0x138)]))_0x4cd768+=_0x23acc7[_0x51c7ae(0x19a)],_0xed461d+='\x20\x20Message:\x20'+(_0x48b532[_0x51c7ae(0x1c8)]||_0x23acc7['BbRDB'])+'\x0a',_0x1a0f1c+=_0x51c7ae(0x144)+(_0x2bf617[_0x51c7ae(0x120)]||_0x23acc7[_0x51c7ae(0xe7)])+'\x0a',_0x4cb960+=_0x51c7ae(0x1cd)+(_0x4a2f40[_0x51c7ae(0x1b5)]||_0x23acc7['BbRDB'])+'\x0a';else{global_registry[_0x51c7ae(0x11e)]=_0x1ae520[_0x51c7ae(0x11e)],logger['debug'](_0x51c7ae(0xf6)+_0x1ae520['gridProfile']);const _0x33916a=_0x51c7ae(0xfd)+AG_API_URL+_0x51c7ae(0x1c4),_0x1ebf2e={};_0x1ebf2e[_0x51c7ae(0x12b)]=_0x23acc7[_0x51c7ae(0x16f)],_0x1ebf2e[_0x51c7ae(0x1b2)]=global_registry[_0x51c7ae(0x171)],_0x1ebf2e[_0x51c7ae(0x1a5)]=![];const _0x3d7efc=_0x1ebf2e,_0x80cad2=await _0x23acc7[_0x51c7ae(0x149)](got,_0x33916a,_0x3d7efc),_0x4deb87=await _0x23acc7['ssxCg'](responseValidation,_0x80cad2,_0x23acc7[_0x51c7ae(0x1d3)],_0x23acc7[_0x51c7ae(0x104)],_0x1ae520,_0x4ebf8a);let _0x214c57={};if(_0x23acc7[_0x51c7ae(0xdc)](_0x4deb87,0xc8)){if(_0x23acc7['xPyWT'](_0x23acc7['jIvRg'],_0x23acc7[_0x51c7ae(0x1ca)]))_0x5bc8ae[_0x51c7ae(0x103)](_0x51c7ae(0xe4)+_0x2828ac[_0x51c7ae(0xd5)]+'`\x20already\x20exists');else{const _0x414d95=JSON['parse'](_0x80cad2[_0x51c7ae(0xd9)]),_0x288d5b=_0x414d95[_0x51c7ae(0x1bb)](_0x3f8b37=>_0x3f8b37['name']===_0x1ae520[_0x51c7ae(0x11e)])||null;_0x23acc7['Leqmc'](isUndefined,_0x288d5b)?_0x23acc7[_0x51c7ae(0x158)](_0x23acc7[_0x51c7ae(0x126)],_0x23acc7['ZAxrf'])?_0x3028c4+=_0x51c7ae(0xe1)+_0x5b3082[_0x51c7ae(0xd5)]+'\x20'+(_0x437568?_0x23acc7[_0x51c7ae(0x146)]:_0x23acc7[_0x51c7ae(0xec)])+'\x0a\x0a':(_0x1a462d=_0x51c7ae(0x11f)+_0x1ae520[_0x51c7ae(0x11e)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x23acc7[_0x51c7ae(0x1be)](reportToGalactusAndSendToEDS,_0x1ae520,_0x4ebf8a,_0x1a462d,messageTypes[_0x51c7ae(0x1a2)],_0x23acc7[_0x51c7ae(0x1d4)],_0x23acc7[_0x51c7ae(0x1c9)],_0x23acc7[_0x51c7ae(0x1a8)]),logger[_0x51c7ae(0x12c)](_0x1a462d),process[_0x51c7ae(0x132)](0x1)):_0x23acc7['xPyWT'](_0x23acc7[_0x51c7ae(0x1c2)],_0x23acc7['bZyas'])?_0x214c57=_0x288d5b:_0x2c8ca0+=_0x51c7ae(0xe1)+_0x4273c1[_0x51c7ae(0xd5)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}}else{if(_0x23acc7['jxzIf'](_0x23acc7[_0x51c7ae(0x188)],_0x23acc7[_0x51c7ae(0x1d7)]))process['exit'](0x1);else{const {header:_0x412bbb,response:_0x516f08}=_0x11d99a,{status:_0x35d7fe,data:_0x18c93f,error:_0x565222}=_0x516f08;_0x1f19e1+=_0x412bbb+'\x20#'+_0x23acc7['nCykb'](_0x1662f8,0x1)+'\x0a',_0x47c5e9+=_0x51c7ae(0x17b)+(_0x35d7fe?_0x23acc7[_0x51c7ae(0x17e)]:_0x23acc7[_0x51c7ae(0x112)])+'\x0a',_0x340480+='Message:\x20'+_0x23acc7[_0x51c7ae(0x194)](_0x18c93f,_0x23acc7[_0x51c7ae(0xe7)])+'\x0a',_0x565222&&(_0x5265f5+=_0x23acc7[_0x51c7ae(0x19a)],_0xb20600+=_0x51c7ae(0x166)+(_0x565222[_0x51c7ae(0x1c8)]||_0x23acc7[_0x51c7ae(0xe7)])+'\x0a',_0x367b04+='\x20\x20Code:\x20'+(_0x565222[_0x51c7ae(0x120)]||_0x23acc7[_0x51c7ae(0xe7)])+'\x0a',_0x3e2476+=_0x51c7ae(0x1cd)+(_0x565222[_0x51c7ae(0x1b5)]||_0x23acc7['BbRDB'])+'\x0a'),_0x5f2338+='\x0a\x0a';}}const _0x297141={};_0x297141[_0x51c7ae(0x1a1)]=WS_EVENTS[_0x51c7ae(0x182)],_0x297141[_0x51c7ae(0x1c8)]=_0x23acc7[_0x51c7ae(0x16a)],webSocketUtils['sendEventToBackend'](_0x4ebf8a,_0x297141),global_registry[_0x51c7ae(0x193)]=_0x214c57[_0x51c7ae(0x193)],global_registry[_0x51c7ae(0x115)]=_0x214c57[_0x51c7ae(0x14c)],global_registry['clusterName']=_0x214c57['clusterName'];}}else _0x23acc7[_0x51c7ae(0x1ba)](_0x23acc7[_0x51c7ae(0xe3)],_0x23acc7[_0x51c7ae(0xe3)])?_0x40628f['exit'](0x1):(logger['error'](_0x23acc7['BMpfr']),process[_0x51c7ae(0x132)](0x1));}}else{const _0x54d100={};_0x54d100[_0x51c7ae(0x14d)]=_0x23acc7[_0x51c7ae(0x1d0)],_0x54d100['type']=_0x23acc7[_0x51c7ae(0x18c)];const _0x427b9c={};_0x427b9c[_0x51c7ae(0x14d)]=_0x23acc7[_0x51c7ae(0x176)],_0x427b9c['type']=_0x23acc7[_0x51c7ae(0x18c)];const _0x4be8eb={};_0x4be8eb['description']=_0x23acc7[_0x51c7ae(0x14f)],_0x4be8eb[_0x51c7ae(0x1a1)]=_0x23acc7[_0x51c7ae(0x18c)];const _0x16f7fe={};_0x16f7fe[_0x51c7ae(0x14d)]=_0x23acc7[_0x51c7ae(0x191)],_0x16f7fe[_0x51c7ae(0x1a1)]=_0x23acc7[_0x51c7ae(0x18c)];const _0x668ce5={};return _0x668ce5[_0x51c7ae(0xd6)]=_0x54d100,_0x668ce5[_0x51c7ae(0x1b6)]=_0x427b9c,_0x668ce5[_0x51c7ae(0x14c)]=_0x4be8eb,_0x668ce5[_0x51c7ae(0x109)]=_0x16f7fe,_0x8a5ece[_0x51c7ae(0x15b)](_0x41bade[_0x51c7ae(0x1d1)])[_0x51c7ae(0x125)](_0x423d6e)[_0x51c7ae(0x1b1)](_0x668ce5)[_0x51c7ae(0x172)](_0x23acc7['SUXYF'])['argv'];}}catch(_0x120486){_0x23acc7['YQHcs'](_0x23acc7[_0x51c7ae(0x1c5)],_0x23acc7[_0x51c7ae(0x1c5)])?(_0x1a462d='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x120486+':\x20'+_0x120486[_0x51c7ae(0x1b5)],logger[_0x51c7ae(0x12c)](_0x1a462d),await _0x23acc7[_0x51c7ae(0x162)](reportToGalactusAndSendToEDS,_0x1ae520,_0x4ebf8a,_0x1a462d,messageTypes[_0x51c7ae(0x1a2)],_0x23acc7[_0x51c7ae(0x1d4)],_0x23acc7[_0x51c7ae(0x12d)],_0x23acc7[_0x51c7ae(0x1a8)]),process[_0x51c7ae(0x132)](0x1)):_0x42e4ca[_0x51c7ae(0x1c3)](_0x23acc7[_0x51c7ae(0x1cc)]);}}function printResponse(_0x26ef81,_0x485916){const _0x3e3a60=a17_0x442d3e,_0x421253={};_0x421253[_0x3e3a60(0x140)]='Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region',_0x421253['Mbqwh']=function(_0x571d0b,_0x3f602a){return _0x571d0b!==_0x3f602a;},_0x421253['vXtKO']='Phlzy';const _0x3e1f96=_0x421253;logger[_0x3e3a60(0x103)]('['+_0x26ef81+_0x3e3a60(0xff)+_0x485916['status']+_0x3e3a60(0x181)+_0x485916[_0x3e3a60(0x15e)]+_0x3e3a60(0x1b3)+_0x485916[_0x3e3a60(0x12c)]),_0x485916[_0x3e3a60(0x12c)]&&(_0x3e1f96['Mbqwh'](_0x3e1f96[_0x3e3a60(0x134)],_0x3e1f96['vXtKO'])?(_0x265647[_0x3e3a60(0x12c)](_0x3e1f96[_0x3e3a60(0x140)]),_0x163e0a['exit'](0x1)):logger[_0x3e3a60(0x12c)](_0x3e3a60(0x10c)+_0x485916['error']['stack']));}async function generateReport(_0x568cff,_0x3a3cc5){const _0x45404c=a17_0x442d3e,_0x5a2217={'CIBgB':function(_0xce03f7,_0x132f18){return _0xce03f7+_0x132f18;},'oyWIs':_0x45404c(0x100),'wPKwf':_0x45404c(0x195),'ZjuSe':function(_0x393e74,_0x58195a){return _0x393e74||_0x58195a;},'zdzdy':_0x45404c(0x1b7),'jfaJQ':_0x45404c(0x118),'HpGtZ':_0x45404c(0x105),'gYhpe':function(_0x5ed302,_0x1e84f2){return _0x5ed302!=_0x1e84f2;},'zckHE':_0x45404c(0xee),'AuqdL':_0x45404c(0x154),'PMsco':function(_0x44b35d){return _0x44b35d();}};let _0x514452=_0x45404c(0x137)+global_registry[_0x45404c(0x193)]+'\x20===\x0a\x0a';return _0x568cff[_0x45404c(0x13a)]((_0x59db3b,_0x410a65)=>{const _0x5db381=_0x45404c,{header:_0x3f6d21,response:_0x282596}=_0x59db3b,{status:_0x56f71b,data:_0x38a340,error:_0x29f7a8}=_0x282596;_0x514452+=_0x3f6d21+'\x20#'+_0x5a2217[_0x5db381(0x1a4)](_0x410a65,0x1)+'\x0a',_0x514452+='Status:\x20'+(_0x56f71b?_0x5a2217[_0x5db381(0x15a)]:_0x5a2217[_0x5db381(0xea)])+'\x0a',_0x514452+=_0x5db381(0x116)+_0x5a2217[_0x5db381(0xda)](_0x38a340,_0x5a2217['zdzdy'])+'\x0a',_0x29f7a8&&(_0x514452+=_0x5a2217[_0x5db381(0x135)],_0x514452+=_0x5db381(0x166)+(_0x29f7a8[_0x5db381(0x1c8)]||_0x5a2217[_0x5db381(0x169)])+'\x0a',_0x514452+=_0x5db381(0x144)+(_0x29f7a8[_0x5db381(0x120)]||_0x5a2217[_0x5db381(0x169)])+'\x0a',_0x514452+=_0x5db381(0x1cd)+(_0x29f7a8[_0x5db381(0x1b5)]||_0x5a2217[_0x5db381(0x169)])+'\x0a'),_0x514452+='\x0a\x0a';}),_0x514452+=_0x5a2217[_0x45404c(0x151)],_0x5a2217[_0x45404c(0xdd)](_0x3a3cc5,null)?_0x514452+=_0x45404c(0xe1)+global_registry[_0x45404c(0xd5)]+'\x20'+(_0x3a3cc5?_0x5a2217[_0x45404c(0x108)]:_0x5a2217['AuqdL'])+'\x0a\x0a':_0x514452+=_0x45404c(0xe1)+global_registry[_0x45404c(0xd5)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x514452+=_0x5a2217[_0x45404c(0x139)](getSystemMetaData),_0x514452;}function a17_0x43c2(_0x72ccbc,_0x3a5c76){const _0x32d508=a17_0x32d5();return a17_0x43c2=function(_0x43c2e2,_0x4dfd9f){_0x43c2e2=_0x43c2e2-0xd5;let _0xbb9e7e=_0x32d508[_0x43c2e2];return _0xbb9e7e;},a17_0x43c2(_0x72ccbc,_0x3a5c76);};exports[a17_0x442d3e(0x152)]=async function(_0x1f40ee){const _0x2be24e=a17_0x442d3e,_0x287390={'HDjKw':function(_0x460a2b){return _0x460a2b();},'XSbnH':_0x2be24e(0x164),'iBEAU':function(_0x5266b0,_0x8896c3,_0x414290,_0x356571,_0x423717,_0x1a43f6,_0x491806,_0x46339f){return _0x5266b0(_0x8896c3,_0x414290,_0x356571,_0x423717,_0x1a43f6,_0x491806,_0x46339f);},'ZCMvw':_0x2be24e(0xf8),'CPvEM':'credential-not-found','IkLwn':_0x2be24e(0x12c),'tBxCv':function(_0x2a0580,_0x1ebe86,_0xdfc94,_0x543cd3,_0x39c771,_0x2f8ffc,_0x122c46){return _0x2a0580(_0x1ebe86,_0xdfc94,_0x543cd3,_0x39c771,_0x2f8ffc,_0x122c46);},'CyOzY':function(_0x1c531b){return _0x1c531b();},'ypkQz':_0x2be24e(0x16e),'hJpGJ':_0x2be24e(0x1aa),'JcPXg':function(_0x1c3a2c,_0x68a70f,_0x215e62){return _0x1c3a2c(_0x68a70f,_0x215e62);},'LDjAP':function(_0x2330e7,_0x2eaeeb,_0x30fc0a){return _0x2330e7(_0x2eaeeb,_0x30fc0a);},'kOCnk':_0x2be24e(0x15f),'PAprX':function(_0x25d925,_0x3c34fe,_0x550a4f){return _0x25d925(_0x3c34fe,_0x550a4f);},'PKmDp':_0x2be24e(0x14e),'zhVdQ':'2|0|1|4|3','uYMXc':'accessResp','CtaWy':function(_0x200578,_0x4ba303,_0x36b2ec){return _0x200578(_0x4ba303,_0x36b2ec);},'UPTKI':'isTrialGridAccessible','moCxG':function(_0x382027,_0x83a55){return _0x382027(_0x83a55);},'CKcTM':_0x2be24e(0x14a),'BVqOQ':_0x2be24e(0x175),'iKNSe':'Tool\x20Installed','UGNPj':_0x2be24e(0x106),'auLaI':_0x2be24e(0x147),'FXDKn':_0x2be24e(0x179),'POIuM':function(_0x42e6c3,_0x2db570){return _0x42e6c3+_0x2db570;},'NRGzr':_0x2be24e(0x1ac),'iJSSK':_0x2be24e(0x141)};let _0x3aadfe,_0x97406f;try{global_registry[_0x2be24e(0x13e)]=_0x287390['HDjKw'](uuidv4);!fs[_0x2be24e(0x18b)](_0x287390[_0x2be24e(0x129)](getCredentialsPath))&&(_0x97406f=_0x287390['XSbnH'],logger[_0x2be24e(0x12c)](_0x97406f),await _0x287390[_0x2be24e(0x11a)](reportToGalactusAndSendToEDS,_0x1f40ee,_0x3aadfe,_0x97406f,messageTypes[_0x2be24e(0x1a2)],_0x287390[_0x2be24e(0x117)],_0x287390[_0x2be24e(0xed)],_0x287390[_0x2be24e(0x161)]),process['exit'](0x1));_0x287390[_0x2be24e(0x19c)](sendInstrumentationEvent,_0x1f40ee,_0x287390[_0x2be24e(0x117)],messageTypes['INFO'],null,null,_0x1f40ee);const _0x5acb9b=JSON[_0x2be24e(0x1cf)](fs[_0x2be24e(0x192)](_0x287390[_0x2be24e(0xfa)](getCredentialsPath)));global_registry['bstackUsername']=_0x5acb9b[_0x2be24e(0x19e)][_0x2be24e(0x15c)],global_registry[_0x2be24e(0x19b)]=_0x5acb9b[_0x2be24e(0x19e)][_0x2be24e(0x11d)];const _0x3ecad8=WS_ENDPOINT[_0x2be24e(0xf7)](_0x287390['ypkQz'],_0x5acb9b[_0x2be24e(0x19e)][_0x2be24e(0x15c)])['replace'](_0x287390['hJpGJ'],_0x5acb9b['Browserstack'][_0x2be24e(0x11d)]),_0x36f167={};_0x36f167[_0x2be24e(0x173)]=ws,_0x36f167['connectionTimeout']=0x36ee80,_0x3aadfe=new ReconnectingWebSocket(_0x3ecad8,[],_0x36f167),global_registry['authHeader']=_0x287390['JcPXg'](getAuthHeader,global_registry[_0x2be24e(0x168)],global_registry[_0x2be24e(0x19b)]),await _0x287390['LDjAP'](inputValidation,_0x1f40ee,_0x3aadfe),logger['info'](_0x2be24e(0xf0)+global_registry[_0x2be24e(0x193)]+_0x2be24e(0xf2)+global_registry[_0x2be24e(0x115)]);let _0x87fba1=await _0x287390[_0x2be24e(0x19c)](getCloudProviderObjectWithOutInit,global_registry[_0x2be24e(0x193)],global_registry['clusterName'],_0x287390[_0x2be24e(0x189)],_0x3aadfe,webSocketUtils,_0x1f40ee);const _0x3ea56a=await _0x87fba1[_0x2be24e(0x110)]();_0x287390[_0x2be24e(0xde)](printResponse,_0x287390[_0x2be24e(0x196)],_0x3ea56a),_0x87fba1=await _0x87fba1[_0x2be24e(0xeb)]();let _0x3a8110=![];try{_0x3a8110=await _0x87fba1[_0x2be24e(0x145)]();}catch(_0x3ea3b5){const _0xb264c8=_0x287390['zhVdQ'][_0x2be24e(0x143)]('|');let _0x7195c5=0x0;while(!![]){switch(_0xb264c8[_0x7195c5++]){case'0':_0x3a8110=null;continue;case'1':logger[_0x2be24e(0x12c)](_0x97406f);continue;case'2':_0x97406f=_0x2be24e(0xef)+global_registry[_0x2be24e(0xd5)]+_0x2be24e(0x1ab)+global_registry[_0x2be24e(0x115)]+_0x2be24e(0x1d5)+_0x3ea3b5;continue;case'3':await _0x287390[_0x2be24e(0x11a)](reportToGalactusAndSendToEDS,_0x1f40ee,_0x3aadfe,_0x97406f,messageTypes[_0x2be24e(0x1a2)],_0x287390['ZCMvw'],_0x2be24e(0x16b)+global_registry[_0x2be24e(0x193)],_0x287390[_0x2be24e(0x161)]);continue;case'4':_0x97406f+='\x0a'+JSON[_0x2be24e(0x178)](_0x3ea3b5[_0x2be24e(0x1b5)]);continue;}break;}}_0x3a8110&&logger[_0x2be24e(0x103)](_0x2be24e(0xe4)+global_registry[_0x2be24e(0xd5)]+'`\x20already\x20exists');const _0x3abc84=await _0x87fba1['checkAccess']();_0x287390['LDjAP'](printResponse,_0x287390[_0x2be24e(0xf1)],_0x3abc84);const _0x321289=await _0x287390['HDjKw'](curlRequest);_0x287390[_0x2be24e(0x10d)](printResponse,_0x287390['UPTKI'],_0x321289);const _0x2ea149=await _0x287390[_0x2be24e(0xf5)](isTlsSupported,_0x287390[_0x2be24e(0x1af)]);_0x287390[_0x2be24e(0xde)](printResponse,_0x287390[_0x2be24e(0x19d)],_0x2ea149);const _0x40bb66={};_0x40bb66['header']=_0x287390['iKNSe'],_0x40bb66[_0x2be24e(0x159)]=_0x3ea56a;const _0x19c60a={};_0x19c60a[_0x2be24e(0x133)]=_0x287390[_0x2be24e(0x163)],_0x19c60a[_0x2be24e(0x159)]=_0x3abc84;const _0x313608={};_0x313608[_0x2be24e(0x133)]=_0x287390['auLaI'],_0x313608['response']=_0x321289;const _0x310603={};_0x310603[_0x2be24e(0x133)]=_0x287390[_0x2be24e(0x102)],_0x310603[_0x2be24e(0x159)]=_0x2ea149;const _0x1aa20b=[_0x40bb66,_0x19c60a,_0x313608,_0x310603],_0x3bc3b6=await _0x287390[_0x2be24e(0xde)](generateReport,_0x1aa20b,_0x3a8110),_0x28830c=new Date(),_0x3f6102=_0x28830c[_0x2be24e(0x18d)]()+'_'+_0x287390[_0x2be24e(0xf9)](_0x28830c[_0x2be24e(0x127)](),0x1)+'_'+_0x28830c['getUTCDate']()+'_'+_0x28830c[_0x2be24e(0x186)]()+'_'+_0x28830c['getUTCMinutes'](),_0xb05ca9='log/report_'+_0x3f6102+_0x2be24e(0x1bc);fs[_0x2be24e(0xe6)](_0xb05ca9,_0x3bc3b6,_0x287390['NRGzr']),logger['info'](_0x2be24e(0x12a)+_0xb05ca9),process['exit'](0x0);}catch(_0x54c5a2){let _0xe1a47e='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x54c5a2+'\x20';logger[_0x2be24e(0x12c)](_0xe1a47e),_0xe1a47e+='\x0a'+JSON[_0x2be24e(0x178)](_0x54c5a2['stack']),logger[_0x2be24e(0x13c)](_0x2be24e(0x174)+_0x54c5a2[_0x2be24e(0x1b5)]);if(_0x3aadfe){const _0x3c45b1={};_0x3c45b1[_0x2be24e(0x1a1)]=WS_EVENTS['LOG'],_0x3c45b1[_0x2be24e(0x1c8)]=_0xe1a47e,webSocketUtils[_0x2be24e(0xd7)](_0x3aadfe,_0x3c45b1,_0x287390[_0x2be24e(0x161)],!![]);}await webSocketUtils[_0x2be24e(0x1b8)](0x7d0);const _0x2a104a={};_0x2a104a['error']=_0xe1a47e,await _0x287390[_0x2be24e(0x19c)](sendInstrumentationEvent,_0x1f40ee,_0x287390['ZCMvw'],messageTypes[_0x2be24e(0x1a2)],_0x287390['iJSSK'],_0x2a104a,_0x1f40ee),process[_0x2be24e(0x132)](0x1);}};function a17_0x32d5(){const _0x97d2ac=['AucFQ','IkLwn','tmaZN','UGNPj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wurHg','\x20\x20Message:\x20','CLOUD_PROVIDER','bstackUsername','zdzdy','jWuCc','cluster-check-failed-','desc','aHeIf','<UsernamePlaceholder>','pIieU','AsGgI','authHeader','help','WebSocket','stack\x20trace\x20','isTls1_2_SUPPORTED','mMGPT','Ajuji','stringify','SSL\x20Configured','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Status:\x20','Missing\x20required\x20arguments:\x20','URRpe','GVydj','oNhqn','MlLgA','\x20data\x20:\x20','LOG','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','WILJl','fpBfv','getUTCHours','HUQYf','HlpIP','kOCnk','../../utils/utilityMethods','existsSync','ktwfD','getUTCFullYear','LjzyA','IDDLF','GqCwx','byqLL','readFileSync','cloudProvider','KLSEz','Failure','PKmDp','length','wdktG','fCdlu','RfGLa','bstackAccesskey','tBxCv','BVqOQ','Browserstack','Setting\x20cloud\x20provider\x20as\x20','string','type','ERROR','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','CIBgB','throwHttpErrors','1680816eEUEZy','uFTSV','EYJas','pmvab','<PasswordPlaceholder>','`\x20is\x20present\x20in\x20region\x20`','utf-8','pre-check-grid-profile-empty','WQBxF','CKcTM','uuid','options','headers','\x20error\x20:\x20','GET','stack','cloud-provider','N/A','delay','pre-check','PWNeY','find','.txt','260LrwBCF','PeqmN','qoCes','includes','213433HENHBV','jKYnU','push','/packages/cli/get-all-grid-profiles','qcwfa','reconnecting-websocket','109722puAoWe','message','HZPIQ','jIvRg','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','DkkgP','\x20\x20Stack:\x20','2416431MfgVJr','parse','jYqVL','pre_check','MlPVX','ARhHV','fPraq','`\x20,error\x20:\x20','RiVVD','XHruO','clusterName','cluster-name','sendEventToBackend','1318367hKibTo','body','ZjuSe','2CwzGbQ','XacCA','gYhpe','PAprX','EbVBG','got','Cluster\x20','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','xUBrQ','Cluster\x20`','join','writeFileSync','BbRDB','EUuMk','cloud-provider-not-supported','wPKwf','init','WSyKE','CPvEM','is\x20already\x20present','unable\x20to\x20verify\x20if\x20cluster\x20`','Pre-check\x20running\x20for\x20Cloud\x20-\x20','uYMXc','\x20region\x20-\x20','argv','62970rdakok','moCxG','grid\x20profile\x20flow\x20','replace','pre-check-grid-called','POIuM','CyOzY','iZqSw','LDKfS','https://','egYnY',']\x20status\x20:\x20','Success','../../cloudproviders/utils','FXDKn','info','NHeDB','Cluster\x20details\x0a-----------------------\x0a','User\x20Access','qYRuI','zckHE','grid-profile','13530UrKzIN','VepsY','error\x20stack\x20:\x20','CtaWy','SbmXL','xvgPN','isCliToolInstalled','PZsYa','AVcNB','grid','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','clusterRegion','Message:\x20','ZCMvw','Error\x20Details:\x0a','IAath','iBEAU','Grid\x20profile\x20fetched\x20for\x20pre-check','jfiJQ','password','gridProfile','Invalid\x20input.\x20grid\x20profiles:\x20','code','iDJxC','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','nxOwp','JPzRp','epilogue','fEkVA','getUTCMonth','VOWYO','HDjKw','Report\x20saved\x20in\x20','method','error','PExte','5445udqOVW','xTQNJ','hDBRw','636OmFesn','exit','header','vXtKO','jfaJQ','status','===\x20Precheck\x20Report\x20-\x20','dFOGz','PMsco','forEach','DppXS','debug','ezNwi','requestId','command','efTgl','pre-check-failed','../../config/constants','split','\x20\x20Code:\x20','isClusterPresent','mvsTW','Whitelisted\x20browserstack','Fgonx','SrQKC','TLSv1_2_client_method','oreIE','region','description','toolInstalledResp','xxlxl','eYebw','HpGtZ','handler','../../config/logger','will\x20be\x20created','595WJqEXF','../../utils/webSocketUtils','.\x20Please\x20provide\x20all\x20required\x20arguments.','YhlwJ','response','oyWIs','usage','username','OLANa','data','dummy-grid'];a17_0x32d5=function(){return _0x97d2ac;};return a17_0x32d5();}
1
+ 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_0x5a29f1=a18_0x2316;function a18_0x1e56(){const _0x2458ac=['NBQWV','855394pbYlkN','Start\x20an\x20existing\x20Automation\x20grid.','752938KLhRdq','recommendCommands','handler','commandDir','1458nrVjjX','34769ijYMwe','583JjbAQX','help','140350XVnHTq','5090305mkmrrL','7710440VsoYSr','5827176TgqjjH','4GeFzhs','builder','demandCommand','strict','start','9CthODT','command'];a18_0x1e56=function(){return _0x2458ac;};return a18_0x1e56();}function a18_0x2316(_0x51e8b3,_0xc3bf5a){const _0x1e564d=a18_0x1e56();return a18_0x2316=function(_0x2316c2,_0x382fe7){_0x2316c2=_0x2316c2-0x129;let _0x4b3d66=_0x1e564d[_0x2316c2];return _0x4b3d66;},a18_0x2316(_0x51e8b3,_0xc3bf5a);}(function(_0x4ef6ba,_0xd950f0){const _0x4a44c7=a18_0x2316,_0x13f68f=_0x4ef6ba();while(!![]){try{const _0x18c76a=-parseInt(_0x4a44c7(0x13a))/0x1+parseInt(_0x4a44c7(0x13c))/0x2*(-parseInt(_0x4a44c7(0x137))/0x3)+-parseInt(_0x4a44c7(0x132))/0x4*(-parseInt(_0x4a44c7(0x12f))/0x5)+-parseInt(_0x4a44c7(0x12a))/0x6*(-parseInt(_0x4a44c7(0x12b))/0x7)+-parseInt(_0x4a44c7(0x130))/0x8+parseInt(_0x4a44c7(0x131))/0x9+-parseInt(_0x4a44c7(0x12e))/0xa*(-parseInt(_0x4a44c7(0x12c))/0xb);if(_0x18c76a===_0xd950f0)break;else _0x13f68f['push'](_0x13f68f['shift']());}catch(_0x34bd2f){_0x13f68f['push'](_0x13f68f['shift']());}}}(a18_0x1e56,0xa306b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x5a29f1(0x138)]=a18_0x5a29f1(0x136),exports['desc']=a18_0x5a29f1(0x13b),exports[a18_0x5a29f1(0x133)]=function(_0x3d8e4e){const _0x236850=a18_0x5a29f1,_0x9c0ee4={};_0x9c0ee4[_0x236850(0x139)]='start_commands',_0x9c0ee4['kHsTY']='help';const _0x47e8d3=_0x9c0ee4;return _0x3d8e4e['usage'](HELP_HEADER_MESSAGE[_0x236850(0x136)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x236850(0x129)](_0x47e8d3[_0x236850(0x139)])[_0x236850(0x134)]()[_0x236850(0x13d)]()[_0x236850(0x135)]()[_0x236850(0x12d)](_0x47e8d3['kHsTY']);},exports[a18_0x5a29f1(0x13e)]=function(_0x253b3a){};
1
+ 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
- const a19_0xd9a57a=a19_0x32f9;(function(_0x1e6ad3,_0x150145){const _0x18f5eb=a19_0x32f9,_0x1eb49a=_0x1e6ad3();while(!![]){try{const _0x59cb38=parseInt(_0x18f5eb(0x165))/0x1*(parseInt(_0x18f5eb(0x16e))/0x2)+-parseInt(_0x18f5eb(0x199))/0x3*(-parseInt(_0x18f5eb(0x18f))/0x4)+-parseInt(_0x18f5eb(0x160))/0x5*(parseInt(_0x18f5eb(0x168))/0x6)+-parseInt(_0x18f5eb(0x162))/0x7+parseInt(_0x18f5eb(0x185))/0x8+-parseInt(_0x18f5eb(0x153))/0x9*(parseInt(_0x18f5eb(0x186))/0xa)+-parseInt(_0x18f5eb(0x181))/0xb;if(_0x59cb38===_0x150145)break;else _0x1eb49a['push'](_0x1eb49a['shift']());}catch(_0x5f056a){_0x1eb49a['push'](_0x1eb49a['shift']());}}}(a19_0x29e7,0x5cf04));function a19_0x32f9(_0x359a14,_0x91e633){const _0x29e7c2=a19_0x29e7();return a19_0x32f9=function(_0x32f9eb,_0x2f0b63){_0x32f9eb=_0x32f9eb-0x14a;let _0x1a730f=_0x29e7c2[_0x32f9eb];return _0x1a730f;},a19_0x32f9(_0x359a14,_0x91e633);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0xd9a57a(0x17f)),{logger}=require(a19_0xd9a57a(0x18d)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0xd9a57a(0x17c)),{sendInstrumentationEvent}=require(a19_0xd9a57a(0x196)),webSocketUtils=require(a19_0xd9a57a(0x19a)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0xd9a57a(0x150));function a19_0x29e7(){const _0x48e5dc=['YFzPp','gridId','356892iwazTf','../../utils/webSocketUtils','WebSocket','skipTlsCertVerify','VZLHw','epilogue','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','message','Sgryb','body','info','Guakl','bstackUsername','bstackAccesskey','GPJBg','clusterName','../../cloudproviders/utils','init-not-called','help','167463GhXGdM','grid-id','replace','name','Adding\x20Websocket\x20listeners','username','parse','unauthorised','stringify','TdFic','Browserstack','ciDqO','connectionTimeout','368230EYFHNC','msRLP','2786903DPHuGA','<UsernamePlaceholder>','error','3DwiWPB','CIOlb','cGTFg','18acqFXd','builder','usage','Skip\x20insecure\x20cert\x20verification.','Starting\x20grid\x20','cyXLd','90164XMqCLB','invalid-grid-id','AnsOF','password','description','exit','ERROR','NFhVo','skip-tls-cert-verify','HEzvU','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','YJuGa','aGmTb','issWM','../../utils/gridComponents','<PasswordPlaceholder>','default','../../config/constants','stack','1864973pevmpG','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','type','3157472AAnWWi','40BNJNTc','existsSync','string','start-grid-called','argv','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','qgVec','../../config/logger','EyNCw','24GAodwx','server-error','start','clusterRegion','desc','Start\x20an\x20existing\x20Automation\x20grid.','cloudProvider','../../utils/instrumentationUtils'];a19_0x29e7=function(){return _0x48e5dc;};return a19_0x29e7();}exports['command']='grid',exports[a19_0xd9a57a(0x193)]=a19_0xd9a57a(0x194),exports[a19_0xd9a57a(0x169)]=function(_0x434e9d){const _0x56a923=a19_0xd9a57a,_0x23743e={};_0x23743e[_0x56a923(0x170)]='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x23743e['CIOlb']=_0x56a923(0x188),_0x23743e[_0x56a923(0x19d)]=_0x56a923(0x16b),_0x23743e[_0x56a923(0x167)]='boolean',_0x23743e[_0x56a923(0x17b)]='help';const _0x10ae88=_0x23743e,_0x404a46={};_0x404a46[_0x56a923(0x172)]=_0x10ae88[_0x56a923(0x170)],_0x404a46[_0x56a923(0x184)]=_0x10ae88[_0x56a923(0x166)];const _0xbf7133={};_0xbf7133[_0x56a923(0x172)]=_0x10ae88[_0x56a923(0x19d)],_0xbf7133[_0x56a923(0x184)]=_0x10ae88[_0x56a923(0x167)],_0xbf7133[_0x56a923(0x17e)]=![];const _0x469425={};return _0x469425[_0x56a923(0x154)]=_0x404a46,_0x469425[_0x56a923(0x176)]=_0xbf7133,_0x434e9d[_0x56a923(0x16a)](HELP_HEADER_MESSAGE[_0x56a923(0x191)])[_0x56a923(0x19e)](HELP_FOOTER_MESSAGE)['options'](_0x469425)[_0x56a923(0x152)](_0x10ae88[_0x56a923(0x17b)])[_0x56a923(0x18a)];},exports['handler']=async function(_0x176cd4){const _0x369f49=a19_0xd9a57a,_0x37c93b={'aGmTb':_0x369f49(0x18b),'msRLP':function(_0x213745){return _0x213745();},'qgVec':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sgaYF':function(_0x47acb5,_0x468a80,_0x5f028,_0x31c02c,_0x5b90ab,_0x9a22ab,_0x16247b){return _0x47acb5(_0x468a80,_0x5f028,_0x31c02c,_0x5b90ab,_0x9a22ab,_0x16247b);},'HEzvU':_0x369f49(0x189),'ciDqO':_0x369f49(0x151),'fpilL':function(_0xeaad26,_0x1d11fc,_0x132d49,_0x5f2232,_0x47ee86,_0x4a83e7,_0xff2bc5){return _0xeaad26(_0x1d11fc,_0x132d49,_0x5f2232,_0x47ee86,_0x4a83e7,_0xff2bc5);},'NFhVo':function(_0x5ef5f7){return _0x5ef5f7();},'rILnS':_0x369f49(0x163),'cxevW':_0x369f49(0x17d),'Guakl':_0x369f49(0x157),'GwwkE':function(_0x4b849a,_0x5c0ee4,_0x323ccc,_0x14ad7d){return _0x4b849a(_0x5c0ee4,_0x323ccc,_0x14ad7d);},'HxuMh':function(_0x5176ec,_0x2ce994,_0x27900f,_0x153c95,_0x151fc1,_0x537080,_0x802edf){return _0x5176ec(_0x2ce994,_0x27900f,_0x153c95,_0x151fc1,_0x537080,_0x802edf);},'cyXLd':function(_0x2a3358,_0x485b65,_0x5d62b9){return _0x2a3358(_0x485b65,_0x5d62b9);},'GnuRs':function(_0x2ebca0,_0x5c3246,_0x4dba8f){return _0x2ebca0(_0x5c3246,_0x4dba8f);},'EyNCw':'Grid\x20started','YJuGa':function(_0x109e24,_0x5f006e){return _0x109e24===_0x5f006e;},'eKtyg':_0x369f49(0x183),'AvPua':function(_0x3de8e3,_0x309c0e,_0x5768d4,_0xf31094,_0x47b941,_0xf4e4db,_0xf54a18){return _0x3de8e3(_0x309c0e,_0x5768d4,_0xf31094,_0x47b941,_0xf4e4db,_0xf54a18);},'YFzPp':_0x369f49(0x15a),'TdFic':_0x369f49(0x16f),'Sgryb':function(_0x539814,_0x193a55,_0x14c2f1,_0x1069b8,_0x143126,_0x18290d,_0x2e4a18){return _0x539814(_0x193a55,_0x14c2f1,_0x1069b8,_0x143126,_0x18290d,_0x2e4a18);},'GPJBg':_0x369f49(0x190)};let _0x7ebeb4;try{!_0x176cd4[_0x369f49(0x198)]&&(logger[_0x369f49(0x164)](_0x37c93b[_0x369f49(0x17a)]),process['exit'](0x1));!fs[_0x369f49(0x187)](_0x37c93b[_0x369f49(0x161)](getCredentialsPath))&&(logger[_0x369f49(0x164)](_0x37c93b[_0x369f49(0x18c)]),await _0x37c93b['sgaYF'](sendInstrumentationEvent,_0x176cd4,_0x37c93b[_0x369f49(0x177)],messageTypes[_0x369f49(0x174)],_0x37c93b[_0x369f49(0x15e)],null,_0x176cd4),process[_0x369f49(0x173)](0x1));logger['info'](_0x369f49(0x16c)+_0x176cd4[_0x369f49(0x198)]),await _0x37c93b['fpilL'](sendInstrumentationEvent,_0x176cd4,_0x37c93b[_0x369f49(0x177)],messageTypes['INFO'],null,null,_0x176cd4);const _0x18129c=JSON['parse'](fs[_0x369f49(0x182)](_0x37c93b[_0x369f49(0x175)](getCredentialsPath)));global_registry[_0x369f49(0x14c)]=_0x18129c['Browserstack'][_0x369f49(0x158)],global_registry[_0x369f49(0x14d)]=_0x18129c[_0x369f49(0x15d)]['password'];const _0x3cfad4=WS_ENDPOINT[_0x369f49(0x155)](_0x37c93b['rILnS'],_0x18129c[_0x369f49(0x15d)][_0x369f49(0x158)])[_0x369f49(0x155)](_0x37c93b['cxevW'],_0x18129c[_0x369f49(0x15d)][_0x369f49(0x171)]),_0x3ba4a6={};_0x3ba4a6[_0x369f49(0x19b)]=ws,_0x3ba4a6[_0x369f49(0x15f)]=0x36ee80,_0x7ebeb4=new ReconnectingWebSocket(_0x3cfad4,[],_0x3ba4a6),logger['debug'](_0x37c93b[_0x369f49(0x14b)]),webSocketUtils['addListeners'](_0x7ebeb4,_0x176cd4['user'],_0x176cd4['password']);const [_0x19c9cd,_0x4f7684]=await _0x37c93b['GwwkE'](getGridDetails,_0x18129c[_0x369f49(0x15d)][_0x369f49(0x158)],_0x18129c[_0x369f49(0x15d)]['password'],_0x176cd4[_0x369f49(0x198)]);if(_0x4f7684){const _0x4a05eb=_0x4f7684[_0x369f49(0x14a)];global_registry[_0x369f49(0x195)]=_0x4a05eb[_0x369f49(0x195)],global_registry[_0x369f49(0x192)]=_0x4a05eb['region'],global_registry[_0x369f49(0x14f)]=_0x4a05eb[_0x369f49(0x14f)];const _0x37f6e1=await _0x37c93b['HxuMh'](getCloudProviderObject,_0x4a05eb['cloudProvider'],_0x4a05eb['clusterName'],_0x4a05eb[_0x369f49(0x156)],_0x7ebeb4,webSocketUtils,_0x176cd4),[_0x39b90f,_0x5ec19d,_0x586979,_0x453585,_0x3197f3,_0x3be4a9]=await _0x37c93b[_0x369f49(0x16d)](createK8sClient,_0x37f6e1,_0x176cd4[_0x369f49(0x19c)]);await _0x37c93b['GnuRs'](scaleUpHubDeployment,_0x5ec19d,_0x4a05eb['name']),logger[_0x369f49(0x14a)](_0x37c93b[_0x369f49(0x18e)]),process['exit'](0x0);}_0x37c93b[_0x369f49(0x179)](_0x19c9cd['statusCode'],0x191)&&(logger['error'](_0x37c93b['eKtyg']),await _0x37c93b['AvPua'](sendInstrumentationEvent,_0x176cd4,_0x37c93b[_0x369f49(0x177)],messageTypes[_0x369f49(0x174)],_0x37c93b[_0x369f49(0x197)],null,_0x176cd4),process['exit'](0x1)),_0x37c93b[_0x369f49(0x179)](_0x19c9cd['statusCode'],0x190)&&(logger['error'](JSON[_0x369f49(0x159)](_0x19c9cd[_0x369f49(0x1a2)])[_0x369f49(0x1a0)]),await _0x37c93b['sgaYF'](sendInstrumentationEvent,_0x176cd4,_0x37c93b['HEzvU'],messageTypes[_0x369f49(0x174)],_0x37c93b[_0x369f49(0x15c)],null,_0x176cd4),process[_0x369f49(0x173)](0x1)),logger[_0x369f49(0x164)](_0x369f49(0x178)+JSON[_0x369f49(0x15b)](_0x19c9cd)),await _0x37c93b[_0x369f49(0x1a1)](sendInstrumentationEvent,_0x176cd4,_0x37c93b[_0x369f49(0x177)],messageTypes[_0x369f49(0x174)],_0x37c93b[_0x369f49(0x14e)],_0x19c9cd,_0x176cd4),process['exit'](0x1);}catch(_0x248d45){const _0x5b4a53=_0x369f49(0x19f)+_0x248d45+'\x20\x0a'+JSON[_0x369f49(0x15b)](_0x248d45[_0x369f49(0x180)])+'\x20';logger[_0x369f49(0x164)](_0x5b4a53),process[_0x369f49(0x173)](0x1);}};
1
+ 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
- function a20_0xfe1d(_0x43db9a,_0x37866c){const _0x2440b4=a20_0x2440();return a20_0xfe1d=function(_0xfe1dde,_0x7158c5){_0xfe1dde=_0xfe1dde-0xc5;let _0x42cb68=_0x2440b4[_0xfe1dde];return _0x42cb68;},a20_0xfe1d(_0x43db9a,_0x37866c);}function a20_0x2440(){const _0x58a085=['4480134KXKlMy','12097152IUEhqD','help','Stop\x20a\x20running\x20Automation\x20grid.','sRBUn','177615uVJOVK','26239340OjrnTx','desc','recommendCommands','292869iEDZcK','demandCommand','command','stop_commands','sluxO','10WZtcdK','4461705kuLjhs','strict','stop','7oTZbWA','4FGZtjD','2458760hNCmmf','commandDir'];a20_0x2440=function(){return _0x58a085;};return a20_0x2440();}const a20_0x1016d9=a20_0xfe1d;(function(_0x2e30f8,_0x2698aa){const _0xce105e=a20_0xfe1d,_0x26b028=_0x2e30f8();while(!![]){try{const _0x37c7fb=-parseInt(_0xce105e(0xc5))/0x1*(-parseInt(_0xce105e(0xca))/0x2)+-parseInt(_0xce105e(0xcb))/0x3*(parseInt(_0xce105e(0xcf))/0x4)+-parseInt(_0xce105e(0xd7))/0x5+-parseInt(_0xce105e(0xd2))/0x6+-parseInt(_0xce105e(0xce))/0x7*(-parseInt(_0xce105e(0xd0))/0x8)+-parseInt(_0xce105e(0xd3))/0x9+parseInt(_0xce105e(0xd8))/0xa;if(_0x37c7fb===_0x2698aa)break;else _0x26b028['push'](_0x26b028['shift']());}catch(_0x513d4b){_0x26b028['push'](_0x26b028['shift']());}}}(a20_0x2440,0xbeee1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x1016d9(0xc7)]=a20_0x1016d9(0xcd),exports[a20_0x1016d9(0xd9)]=a20_0x1016d9(0xd5),exports['builder']=function(_0x56e66b){const _0x2f7084=a20_0x1016d9,_0x3e18df={};_0x3e18df[_0x2f7084(0xc9)]=_0x2f7084(0xc8),_0x3e18df[_0x2f7084(0xd6)]=_0x2f7084(0xd4);const _0x251c1a=_0x3e18df;return _0x56e66b['usage'](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2f7084(0xd1)](_0x251c1a[_0x2f7084(0xc9)])[_0x2f7084(0xc6)]()[_0x2f7084(0xda)]()[_0x2f7084(0xcc)]()[_0x2f7084(0xd4)](_0x251c1a[_0x2f7084(0xd6)]);},exports['handler']=function(_0x3ec936){};
1
+ 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
- const a21_0x1edb65=a21_0x15ff;(function(_0x5d14f0,_0x396ecc){const _0x50e450=a21_0x15ff,_0xa7856a=_0x5d14f0();while(!![]){try{const _0x31c85f=parseInt(_0x50e450(0x1cb))/0x1*(-parseInt(_0x50e450(0x1da))/0x2)+-parseInt(_0x50e450(0x1eb))/0x3+parseInt(_0x50e450(0x1e3))/0x4*(-parseInt(_0x50e450(0x1b0))/0x5)+parseInt(_0x50e450(0x1b6))/0x6+-parseInt(_0x50e450(0x1fa))/0x7*(parseInt(_0x50e450(0x1b2))/0x8)+parseInt(_0x50e450(0x1fc))/0x9+parseInt(_0x50e450(0x1c0))/0xa;if(_0x31c85f===_0x396ecc)break;else _0xa7856a['push'](_0xa7856a['shift']());}catch(_0x3d2f64){_0xa7856a['push'](_0xa7856a['shift']());}}}(a21_0x6760,0xf2e8c));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1edb65(0x1d9)),{logger}=require(a21_0x1edb65(0x1b1)),{getCredentialsPath,getGridDetails}=require(a21_0x1edb65(0x1c6)),{scaleDownHubDeployment}=require(a21_0x1edb65(0x1a4)),{sendInstrumentationEvent}=require(a21_0x1edb65(0x1d0)),webSocketUtils=require(a21_0x1edb65(0x1e8)),{createK8sClient}=require(a21_0x1edb65(0x1f8)),{getCloudProviderObject}=require(a21_0x1edb65(0x1ee));exports[a21_0x1edb65(0x1dc)]=a21_0x1edb65(0x1f1),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x1edb65(0x1a6)]=function(_0x4ec716){const _0x23442f=a21_0x1edb65,_0x4fd2a0={};_0x4fd2a0[_0x23442f(0x1b3)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x4fd2a0[_0x23442f(0x1f0)]=_0x23442f(0x1bc),_0x4fd2a0[_0x23442f(0x1a3)]=_0x23442f(0x1ca),_0x4fd2a0[_0x23442f(0x1c1)]=_0x23442f(0x1a2),_0x4fd2a0['VEKFJ']=_0x23442f(0x1c9);const _0x31f53c=_0x4fd2a0,_0x58a22e={};_0x58a22e[_0x23442f(0x1b8)]=_0x31f53c[_0x23442f(0x1b3)],_0x58a22e['type']=_0x31f53c[_0x23442f(0x1f0)];const _0x1bc602={};_0x1bc602[_0x23442f(0x1b8)]=_0x31f53c[_0x23442f(0x1a3)],_0x1bc602['type']=_0x31f53c[_0x23442f(0x1c1)],_0x1bc602[_0x23442f(0x1c3)]=![];const _0x35d6db={};return _0x35d6db['grid-id']=_0x58a22e,_0x35d6db['skip-tls-cert-verify']=_0x1bc602,_0x4ec716['usage'](HELP_HEADER_MESSAGE[_0x23442f(0x1bb)])[_0x23442f(0x1de)](HELP_FOOTER_MESSAGE)[_0x23442f(0x1fe)](_0x35d6db)[_0x23442f(0x1c9)](_0x31f53c[_0x23442f(0x1bd)])[_0x23442f(0x1f7)];},exports['handler']=async function(_0x428237){const _0x26c7d7=a21_0x1edb65,_0x2508a4={'ZVSDw':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','bEKQl':function(_0x291e6f){return _0x291e6f();},'VekeD':_0x26c7d7(0x1ec),'nhozy':function(_0x103c2b,_0x264aac,_0x20fb38,_0x1dff0e,_0x5bd2d2,_0x1001e7,_0x4d935c){return _0x103c2b(_0x264aac,_0x20fb38,_0x1dff0e,_0x5bd2d2,_0x1001e7,_0x4d935c);},'ioJKX':_0x26c7d7(0x1e6),'EtJpG':'init-not-called','fIfgB':function(_0x52cf4e,_0x31e8b6,_0xb1208f,_0x57d917,_0x1776d5,_0x1a24de,_0x445c9e){return _0x52cf4e(_0x31e8b6,_0xb1208f,_0x57d917,_0x1776d5,_0x1a24de,_0x445c9e);},'KfiEr':function(_0x4b6c82){return _0x4b6c82();},'FGfUV':_0x26c7d7(0x1f4),'ptpty':_0x26c7d7(0x1c4),'eYZMa':_0x26c7d7(0x1c8),'ghqYO':function(_0x22e205,_0x53c5af,_0x7ba058,_0x568de2){return _0x22e205(_0x53c5af,_0x7ba058,_0x568de2);},'qytph':function(_0x94cbb9,_0x429156,_0x53c1f8){return _0x94cbb9(_0x429156,_0x53c1f8);},'OTBVq':function(_0x10f964,_0x2c240f,_0x504c63){return _0x10f964(_0x2c240f,_0x504c63);},'gqpmd':_0x26c7d7(0x1be),'SdKsz':function(_0x2b9128,_0x2717db){return _0x2b9128===_0x2717db;},'UmbWd':_0x26c7d7(0x1d1),'rBqRZ':function(_0x1b1614,_0x1d8bc9,_0x4dbbd7,_0x228203,_0x24f027,_0x1187e6,_0x25a4b1){return _0x1b1614(_0x1d8bc9,_0x4dbbd7,_0x228203,_0x24f027,_0x1187e6,_0x25a4b1);},'nMxGW':_0x26c7d7(0x1fb),'zPUjw':function(_0x465a8c,_0x220413,_0x4cf00a,_0x3e71f9,_0xf9648d,_0x376ecb,_0x90e55c){return _0x465a8c(_0x220413,_0x4cf00a,_0x3e71f9,_0xf9648d,_0x376ecb,_0x90e55c);},'YExsG':_0x26c7d7(0x1ea),'VPLTL':function(_0x12e1f3,_0x3e5735,_0x4f0e26,_0x43c522,_0x2c7e4e,_0x14786a,_0x121570){return _0x12e1f3(_0x3e5735,_0x4f0e26,_0x43c522,_0x2c7e4e,_0x14786a,_0x121570);},'iibOu':_0x26c7d7(0x1df)};let _0x57174a;try{!_0x428237[_0x26c7d7(0x1e4)]&&(logger[_0x26c7d7(0x1dd)](_0x2508a4[_0x26c7d7(0x1c7)]),process[_0x26c7d7(0x1cd)](0x1));!fs[_0x26c7d7(0x1a7)](_0x2508a4[_0x26c7d7(0x1ce)](getCredentialsPath))&&(logger[_0x26c7d7(0x1dd)](_0x2508a4[_0x26c7d7(0x1af)]),await _0x2508a4[_0x26c7d7(0x1cf)](sendInstrumentationEvent,_0x428237,_0x2508a4[_0x26c7d7(0x1b4)],messageTypes[_0x26c7d7(0x1e1)],_0x2508a4['EtJpG'],null,_0x428237),process[_0x26c7d7(0x1cd)](0x1));logger[_0x26c7d7(0x1ad)]('Stopping\x20grid\x20'+_0x428237[_0x26c7d7(0x1e4)]),await _0x2508a4[_0x26c7d7(0x1e7)](sendInstrumentationEvent,_0x428237,_0x2508a4['ioJKX'],messageTypes[_0x26c7d7(0x1bf)],null,null,_0x428237);const _0x345792=JSON['parse'](fs[_0x26c7d7(0x1b5)](_0x2508a4[_0x26c7d7(0x1aa)](getCredentialsPath)));global_registry[_0x26c7d7(0x1d7)]=_0x345792[_0x26c7d7(0x1b9)][_0x26c7d7(0x1e5)],global_registry['bstackAccesskey']=_0x345792[_0x26c7d7(0x1b9)][_0x26c7d7(0x1ac)];const _0x413cd4=WS_ENDPOINT[_0x26c7d7(0x1d8)](_0x2508a4[_0x26c7d7(0x1f9)],_0x345792[_0x26c7d7(0x1b9)][_0x26c7d7(0x1e5)])[_0x26c7d7(0x1d8)](_0x2508a4[_0x26c7d7(0x1a9)],_0x345792[_0x26c7d7(0x1b9)]['password']),_0x3897bc={};_0x3897bc[_0x26c7d7(0x1ed)]=ws,_0x3897bc[_0x26c7d7(0x1d2)]=0x36ee80,_0x57174a=new ReconnectingWebSocket(_0x413cd4,[],_0x3897bc),logger[_0x26c7d7(0x1f5)](_0x2508a4[_0x26c7d7(0x1e2)]),webSocketUtils[_0x26c7d7(0x1d5)](_0x57174a,_0x428237[_0x26c7d7(0x1fd)],_0x428237['password']);const [_0x27681b,_0x39982c]=await _0x2508a4[_0x26c7d7(0x1e0)](getGridDetails,_0x345792[_0x26c7d7(0x1b9)][_0x26c7d7(0x1e5)],_0x345792[_0x26c7d7(0x1b9)]['password'],_0x428237[_0x26c7d7(0x1e4)]);if(_0x39982c){const _0xe4a743=_0x39982c[_0x26c7d7(0x1ad)];global_registry['cloudProvider']=_0xe4a743['cloudProvider'],global_registry[_0x26c7d7(0x1c5)]=_0xe4a743['region'],global_registry[_0x26c7d7(0x1ab)]=_0xe4a743[_0x26c7d7(0x1ab)];const _0x2271ca=await _0x2508a4[_0x26c7d7(0x1e7)](getCloudProviderObject,_0xe4a743[_0x26c7d7(0x1ba)],_0xe4a743[_0x26c7d7(0x1ab)],_0xe4a743[_0x26c7d7(0x1ef)],_0x57174a,webSocketUtils,_0x428237),[_0x17955b,_0x4f91a1,_0x343762,_0x3bb221,_0x4a8356,_0xa0b87a]=await _0x2508a4[_0x26c7d7(0x1f3)](createK8sClient,_0x2271ca,_0x428237[_0x26c7d7(0x1e9)]);await _0x2508a4['OTBVq'](scaleDownHubDeployment,_0x4f91a1,_0xe4a743[_0x26c7d7(0x1ef)]),logger[_0x26c7d7(0x1ad)](_0x2508a4['gqpmd']),process['exit'](0x0);}_0x2508a4[_0x26c7d7(0x1cc)](_0x27681b['statusCode'],0x191)&&(logger[_0x26c7d7(0x1dd)](_0x2508a4['UmbWd']),await _0x2508a4[_0x26c7d7(0x1c2)](sendInstrumentationEvent,_0x428237,_0x2508a4[_0x26c7d7(0x1b4)],messageTypes[_0x26c7d7(0x1e1)],_0x2508a4[_0x26c7d7(0x1a8)],null,_0x428237),process[_0x26c7d7(0x1cd)](0x1)),_0x2508a4['SdKsz'](_0x27681b[_0x26c7d7(0x1ae)],0x190)&&(logger['error'](JSON[_0x26c7d7(0x1db)](_0x27681b['body'])[_0x26c7d7(0x1a5)]),await _0x2508a4['zPUjw'](sendInstrumentationEvent,_0x428237,_0x2508a4['ioJKX'],messageTypes[_0x26c7d7(0x1e1)],_0x2508a4[_0x26c7d7(0x1b7)],null,_0x428237),process[_0x26c7d7(0x1cd)](0x1)),logger[_0x26c7d7(0x1dd)](_0x26c7d7(0x1d4)+JSON['stringify'](_0x27681b)),await _0x2508a4[_0x26c7d7(0x1f2)](sendInstrumentationEvent,_0x428237,_0x2508a4[_0x26c7d7(0x1b4)],messageTypes[_0x26c7d7(0x1e1)],_0x2508a4[_0x26c7d7(0x1d6)],_0x27681b,_0x428237),process[_0x26c7d7(0x1cd)](0x1);}catch(_0x1a9ff2){const _0xce68fe='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x1a9ff2+'\x20\x0a'+JSON[_0x26c7d7(0x1d3)](_0x1a9ff2[_0x26c7d7(0x1f6)])+'\x20';logger[_0x26c7d7(0x1dd)](_0xce68fe),process[_0x26c7d7(0x1cd)](0x1);}};function a21_0x15ff(_0x3cc404,_0x327507){const _0x676044=a21_0x6760();return a21_0x15ff=function(_0x15ffa8,_0x1bedf4){_0x15ffa8=_0x15ffa8-0x1a2;let _0x2b71be=_0x676044[_0x15ffa8];return _0x2b71be;},a21_0x15ff(_0x3cc404,_0x327507);}function a21_0x6760(){const _0x2e4390=['help','Skip\x20insecure\x20cert\x20verification.','383927Theqnm','SdKsz','exit','bEKQl','nhozy','../../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','connectionTimeout','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','addListeners','iibOu','bstackUsername','replace','../../config/constants','2CklAVQ','parse','command','error','epilogue','server-error','ghqYO','ERROR','eYZMa','1973848MmRnvB','gridId','username','stop-grid-called','fIfgB','../../utils/webSocketUtils','skipTlsCertVerify','invalid-grid-id','3460350UYUzKc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WebSocket','../../cloudproviders/utils','name','KwSor','grid','VPLTL','qytph','<UsernamePlaceholder>','debug','stack','argv','../../utils/createk8sClient','FGfUV','7UriySC','unauthorised','1881990RVoBdy','user','options','boolean','uNKgL','../../utils/gridComponents','message','builder','existsSync','nMxGW','ptpty','KfiEr','clusterName','password','info','statusCode','VekeD','5KjkyhH','../../config/logger','11341048TbJAgw','qAXjo','ioJKX','readFileSync','872598SrUZiA','YExsG','description','Browserstack','cloudProvider','stop','string','VEKFJ','Grid\x20stoppped.','INFO','40888830RSTUAR','NDlGj','rBqRZ','default','<PasswordPlaceholder>','clusterRegion','../../utils/utilityMethods','ZVSDw','Adding\x20Websocket\x20listeners'];a21_0x6760=function(){return _0x2e4390;};return a21_0x6760();}
1
+ 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_0x1bfb6a=a22_0xcf14;(function(_0x1e8e2d,_0x4301a6){const _0x2369ee=a22_0xcf14,_0x2e556d=_0x1e8e2d();while(!![]){try{const _0x1e1b67=-parseInt(_0x2369ee(0x217))/0x1*(-parseInt(_0x2369ee(0x213))/0x2)+-parseInt(_0x2369ee(0x1dd))/0x3*(parseInt(_0x2369ee(0x1c9))/0x4)+-parseInt(_0x2369ee(0x1d4))/0x5+parseInt(_0x2369ee(0x1dc))/0x6+-parseInt(_0x2369ee(0x1fd))/0x7*(-parseInt(_0x2369ee(0x1e8))/0x8)+parseInt(_0x2369ee(0x22f))/0x9+parseInt(_0x2369ee(0x224))/0xa*(-parseInt(_0x2369ee(0x21a))/0xb);if(_0x1e1b67===_0x4301a6)break;else _0x2e556d['push'](_0x2e556d['shift']());}catch(_0x52c5d3){_0x2e556d['push'](_0x2e556d['shift']());}}}(a22_0x3cf2,0xca1e1),require(a22_0x1bfb6a(0x20d))['config']());function a22_0x3cf2(){const _0xbd08ed=['MessageDescription','staging','29858YxQnxX','WARNING','high-scale-grid','configure','110sGRXkl','ALL_SUPPORTED_CLOUD_PROVIDERS','stag','22HveaDN','grid-api-devhst.bsstag.com','browserstack-turboscale-grid','pre-prod','connect','REGION','forEach','BS_API_URL','[REDACTED]','Value','892790EMtvRL','HST_CLUSTER_TAGS','delete','IAM_USER_NAME','pre-check','unknown','grid-preprod.bsstag.com','TURBOSCALE_CUSTOM_TAGS','gcp','pre_check','cliRunFinished','4721274KsHYtP','push','BrowserStack-Automate-TurboScale','AZURE','COMMON_HST_TAGS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','40GBYqoN','resourceInfo','CLI_RUN_FINISHED','api-preprod.bsstag.com','start','WS_EVENTS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','SUCCESS','AG_API_URL','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','7184105kMfDBo','split','WS_ENDPOINT','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','grid-devhst.bsstag.com','info','log','stop','97248eAPMjy','17949vsgGux','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLI_RUN_STARTED','HELP_FOOTER_MESSAGE','list','GCP','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gridProfile','AWS','high-scale-grid-cluster','gridUrl','2560784JGAMgN','RAW_ARGS_REGEX','CP_CONFIG_FILE','grid.browserstack.com','ERROR','preprod','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','root','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','TURBOSCALE_DEPLOYMENT','BROWSERSTACK_ENV','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','REDACTED','CLI_ARGS_REGEX','Key','grid-api-preprod.bsstag.com','error','BrowserStack','HELP_HEADER_MESSAGE','grid-api.browserstack.com','global_registry','7XIPMHa','SUPPORTED_CLOUD_PROVIDERS','env','BrowserStackIAMUser','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','create','LINK_MESSAGE','browserstack:service','success','cliRunStarted','aws','UNKNOWN','browserstack:managedBy','CLOUD_PROVIDER','grid','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','dotenv','wss://','LOG','GRID_URL'];a22_0x3cf2=function(){return _0xbd08ed;};return a22_0x3cf2();}let gridURL=a22_0x1bfb6a(0x1eb),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x1bfb6a(0x1fb);const _env=(process['env'][a22_0x1bfb6a(0x1f2)]||'prod')['toLowerCase']();if(_env===a22_0x1bfb6a(0x212)||_env===a22_0x1bfb6a(0x219))gridURL=a22_0x1bfb6a(0x1d8),bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x1bfb6a(0x21b);else(_env===a22_0x1bfb6a(0x1ed)||_env===a22_0x1bfb6a(0x21d))&&(gridURL=a22_0x1bfb6a(0x22a),bsApiUrl=a22_0x1bfb6a(0x1cc),agApiUrl=a22_0x1bfb6a(0x1f7));exports['DASHBOARD_ENDPOINT']=process[a22_0x1bfb6a(0x1ff)]['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x1bfb6a(0x221)]=process[a22_0x1bfb6a(0x1ff)][a22_0x1bfb6a(0x221)]||bsApiUrl,exports['AG_API_URL']=process[a22_0x1bfb6a(0x1ff)][a22_0x1bfb6a(0x1d2)]||agApiUrl,exports[a22_0x1bfb6a(0x1d6)]=a22_0x1bfb6a(0x20e)+this[a22_0x1bfb6a(0x1d2)]+a22_0x1bfb6a(0x1e3),exports[a22_0x1bfb6a(0x1ea)]='credentials',exports[a22_0x1bfb6a(0x227)]=a22_0x1bfb6a(0x200),exports['DEFAULT_GRID_NAME']=a22_0x1bfb6a(0x215),exports[a22_0x1bfb6a(0x1e5)]=a22_0x1bfb6a(0x207),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x1bfb6a(0x1f1)]=a22_0x1bfb6a(0x21c),exports[a22_0x1bfb6a(0x232)]='azure',exports[a22_0x1bfb6a(0x1e2)]=a22_0x1bfb6a(0x22c),exports[a22_0x1bfb6a(0x218)]=[this[a22_0x1bfb6a(0x1e5)],this['AZURE'],this[a22_0x1bfb6a(0x1e2)]];const a22_0x5805b3={};a22_0x5805b3[a22_0x1bfb6a(0x1f6)]=a22_0x1bfb6a(0x209),a22_0x5805b3['Value']=a22_0x1bfb6a(0x1f9);const a22_0x3c4f42={};a22_0x3c4f42['Key']=a22_0x1bfb6a(0x204),a22_0x3c4f42['Value']=a22_0x1bfb6a(0x231);const common_hst_tags_list=[a22_0x5805b3,a22_0x3c4f42];if(process['env']['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a22_0x1bfb6a(0x1ff)][a22_0x1bfb6a(0x22b)][a22_0x1bfb6a(0x1d5)](',');parsedTags[a22_0x1bfb6a(0x220)](_0x47fd51=>{const _0x5d82ae=a22_0x1bfb6a,_0x392be8=_0x47fd51['split'](':'),_0x251024={};_0x251024[_0x5d82ae(0x1f6)]=_0x392be8[0x0],_0x251024[_0x5d82ae(0x223)]=_0x392be8[0x1],common_hst_tags_list[_0x5d82ae(0x230)](_0x251024);});}exports[a22_0x1bfb6a(0x233)]=common_hst_tags_list;const a22_0x1b7086={};a22_0x1b7086[a22_0x1bfb6a(0x209)]=a22_0x1bfb6a(0x1f9),a22_0x1b7086[a22_0x1bfb6a(0x204)]=a22_0x1bfb6a(0x231),exports[a22_0x1bfb6a(0x225)]=a22_0x1b7086,exports[a22_0x1bfb6a(0x1fe)]=[this[a22_0x1bfb6a(0x1e5)]];const a22_0x39bfda={};a22_0x39bfda[a22_0x1bfb6a(0x20f)]=a22_0x1bfb6a(0x1da),a22_0x39bfda['RESOURCES']=a22_0x1bfb6a(0x1ca),a22_0x39bfda[a22_0x1bfb6a(0x210)]=a22_0x1bfb6a(0x1e7),a22_0x39bfda[a22_0x1bfb6a(0x1df)]=a22_0x1bfb6a(0x206),a22_0x39bfda[a22_0x1bfb6a(0x1cb)]=a22_0x1bfb6a(0x22e),exports[a22_0x1bfb6a(0x1ce)]=a22_0x39bfda,exports[a22_0x1bfb6a(0x1fc)]={},exports['LINK_MESSAGE']=a22_0x1bfb6a(0x1d3);const a22_0x2b1ced={};a22_0x2b1ced[a22_0x1bfb6a(0x1ef)]=a22_0x1bfb6a(0x1c8)+this['LINK_MESSAGE'],a22_0x2b1ced['init']=a22_0x1bfb6a(0x1d7)+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x216)]=a22_0x1bfb6a(0x1de)+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x202)]=a22_0x1bfb6a(0x1ee)+this['LINK_MESSAGE'],a22_0x2b1ced[a22_0x1bfb6a(0x1e1)]={},a22_0x2b1ced[a22_0x1bfb6a(0x226)]=a22_0x1bfb6a(0x201)+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x21e)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1cd)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1db)]=a22_0x1bfb6a(0x1f0)+this['LINK_MESSAGE'],a22_0x2b1ced[a22_0x1bfb6a(0x22d)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1e1)][a22_0x1bfb6a(0x1ef)]=a22_0x1bfb6a(0x1cf)+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1e1)][a22_0x1bfb6a(0x20b)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a22_0x1bfb6a(0x203)],a22_0x2b1ced[a22_0x1bfb6a(0x1e1)][a22_0x1bfb6a(0x1e4)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x1bfb6a(0x203)],exports[a22_0x1bfb6a(0x1fa)]=a22_0x2b1ced,exports[a22_0x1bfb6a(0x1e0)]=a22_0x1bfb6a(0x1d0);const a22_0xd13a3a={};a22_0xd13a3a[a22_0x1bfb6a(0x1d1)]=a22_0x1bfb6a(0x205),a22_0xd13a3a[a22_0x1bfb6a(0x1ec)]=a22_0x1bfb6a(0x1f8),a22_0xd13a3a['INFO']=a22_0x1bfb6a(0x1d9),a22_0xd13a3a[a22_0x1bfb6a(0x214)]='warning',a22_0xd13a3a[a22_0x1bfb6a(0x208)]=a22_0x1bfb6a(0x229),a22_0xd13a3a['NULL']=null,exports['messageTypes']=a22_0xd13a3a,exports[a22_0x1bfb6a(0x1f5)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x1bfb6a(0x1e9)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x1bfb6a(0x1f4)]=a22_0x1bfb6a(0x222);function a22_0xcf14(_0x371f8b,_0x5acd1d){const _0x3cf290=a22_0x3cf2();return a22_0xcf14=function(_0xcf14fc,_0x2883b4){_0xcf14fc=_0xcf14fc-0x1c8;let _0xbcfc68=_0x3cf290[_0xcf14fc];return _0xbcfc68;},a22_0xcf14(_0x371f8b,_0x5acd1d);}const a22_0x4a5b2a={};a22_0x4a5b2a['grid-profile']=a22_0x1bfb6a(0x20c);const a22_0xd7d84c={};a22_0xd7d84c[a22_0x1bfb6a(0x228)]=a22_0x4a5b2a,exports[a22_0x1bfb6a(0x211)]=a22_0xd7d84c,exports['TRIAL_GRID_URL']=a22_0x1bfb6a(0x1f3);const a22_0x36f5e7={};a22_0x36f5e7['CLUSTER']=a22_0x1bfb6a(0x1e6),a22_0x36f5e7[a22_0x1bfb6a(0x20a)]=a22_0x1bfb6a(0x207),a22_0x36f5e7[a22_0x1bfb6a(0x21f)]='us-east-1',exports['DEFAULT_CLUSTER_DETAILS']=a22_0x36f5e7;
1
+ 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
- function a23_0xb39e(_0x4b5a04,_0x15172f){const _0x20447e=a23_0x2044();return a23_0xb39e=function(_0xb39ed4,_0x5395a4){_0xb39ed4=_0xb39ed4-0x66;let _0x2790c0=_0x20447e[_0xb39ed4];return _0x2790c0;},a23_0xb39e(_0x4b5a04,_0x15172f);}const a23_0x3f3ac8=a23_0xb39e;(function(_0x3580ba,_0x2ffd3a){const _0x2debc2=a23_0xb39e,_0x11d256=_0x3580ba();while(!![]){try{const _0x47c621=-parseInt(_0x2debc2(0x7a))/0x1*(parseInt(_0x2debc2(0x66))/0x2)+parseInt(_0x2debc2(0x7d))/0x3*(-parseInt(_0x2debc2(0x71))/0x4)+parseInt(_0x2debc2(0x6a))/0x5*(-parseInt(_0x2debc2(0x67))/0x6)+-parseInt(_0x2debc2(0x83))/0x7+parseInt(_0x2debc2(0x84))/0x8+-parseInt(_0x2debc2(0x7e))/0x9+parseInt(_0x2debc2(0x70))/0xa;if(_0x47c621===_0x2ffd3a)break;else _0x11d256['push'](_0x11d256['shift']());}catch(_0x12f567){_0x11d256['push'](_0x11d256['shift']());}}}(a23_0x2044,0xcd42f));const winston=require(a23_0x3f3ac8(0x6b)),fs=require('fs'),path=require(a23_0x3f3ac8(0x69)),logDir='log';!fs[a23_0x3f3ac8(0x80)](logDir)&&fs[a23_0x3f3ac8(0x6f)](logDir);const a23_0x27bc85={};a23_0x27bc85[a23_0x3f3ac8(0x7f)]=a23_0x3f3ac8(0x7b);const a23_0x48b928={};a23_0x48b928[a23_0x3f3ac8(0x79)]=!![];const a23_0x52cdd7={};function a23_0x2044(){const _0x50b285=['existsSync','usage.log','printf','10617852JvNteU','5711240uLgBtu','31172ERfhCl','36vBaSiI','name','path','395585TuUDhk','winston','timestamp','transports','\x20-\x20','mkdirSync','50153500DVcmFX','20XwZmGX','debug','File','join','message','createLogger','console.info','fileLogger','level','46msLgWQ','YYYY-MM-DD\x20HH:mm:ss','events.log','598911cbwlBl','10636425AlpGpO','format'];a23_0x2044=function(){return _0x50b285;};return a23_0x2044();}a23_0x52cdd7[a23_0x3f3ac8(0x68)]=a23_0x3f3ac8(0x77),exports['logger']=new winston['createLogger']({'format':winston['format']['combine'](winston[a23_0x3f3ac8(0x7f)][a23_0x3f3ac8(0x6c)](a23_0x27bc85),winston[a23_0x3f3ac8(0x7f)]['colorize'](a23_0x48b928),winston[a23_0x3f3ac8(0x7f)][a23_0x3f3ac8(0x82)](_0x14f957=>_0x14f957[a23_0x3f3ac8(0x6c)]+a23_0x3f3ac8(0x6e)+_0x14f957[a23_0x3f3ac8(0x79)]+':\x20'+_0x14f957[a23_0x3f3ac8(0x75)])),'transports':[new winston[(a23_0x3f3ac8(0x6d))]['Console'](a23_0x52cdd7),new winston[(a23_0x3f3ac8(0x6d))][(a23_0x3f3ac8(0x73))]({'filename':path[a23_0x3f3ac8(0x74)](logDir,a23_0x3f3ac8(0x7c)),'level':a23_0x3f3ac8(0x72)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x3f3ac8(0x73))]({'filename':path[a23_0x3f3ac8(0x74)](logDir,a23_0x3f3ac8(0x81)),'level':'debug'})]};exports[a23_0x3f3ac8(0x78)]=new winston[(a23_0x3f3ac8(0x76))](winstonFileLoggerParams);
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_0x28abba=a24_0x2514;(function(_0xa55070,_0x34d945){const _0x231e15=a24_0x2514,_0x18b0af=_0xa55070();while(!![]){try{const _0x3f8a87=parseInt(_0x231e15(0x10a))/0x1*(parseInt(_0x231e15(0x10f))/0x2)+-parseInt(_0x231e15(0x10c))/0x3+parseInt(_0x231e15(0x11a))/0x4*(parseInt(_0x231e15(0x107))/0x5)+parseInt(_0x231e15(0x106))/0x6*(-parseInt(_0x231e15(0x10b))/0x7)+-parseInt(_0x231e15(0x10e))/0x8*(-parseInt(_0x231e15(0x116))/0x9)+parseInt(_0x231e15(0x113))/0xa*(parseInt(_0x231e15(0x112))/0xb)+-parseInt(_0x231e15(0x11c))/0xc*(parseInt(_0x231e15(0x118))/0xd);if(_0x3f8a87===_0x34d945)break;else _0x18b0af['push'](_0x18b0af['shift']());}catch(_0x14454a){_0x18b0af['push'](_0x18b0af['shift']());}}}(a24_0x2772,0x87555));function a24_0x2514(_0x2583fd,_0x1118ea){const _0x277275=a24_0x2772();return a24_0x2514=function(_0x2514c1,_0x323d93){_0x2514c1=_0x2514c1-0x105;let _0x51197a=_0x277275[_0x2514c1];return _0x51197a;},a24_0x2514(_0x2583fd,_0x1118ea);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x28abba(0x108));process[a24_0x28abba(0x105)][a24_0x28abba(0x111)]=0x1;function run(_0x42dbf9){const _0x2262ee=a24_0x28abba,_0x620b07={};_0x620b07['IAXBt']=_0x2262ee(0x11b),_0x620b07[_0x2262ee(0x119)]=_0x2262ee(0x114);const _0x217425=_0x620b07;_0x42dbf9[_0x2262ee(0x10d)](HELP_HEADER_MESSAGE[_0x2262ee(0x109)])[_0x2262ee(0x110)](_0x217425['IAXBt'])[_0x2262ee(0x117)]()[_0x2262ee(0x114)](_0x217425['FinaQ'])[_0x2262ee(0x115)](HELP_FOOTER_MESSAGE);}function a24_0x2772(){const _0x43b570=['20423SBSTmv','FinaQ','3556428azvuJc','commands','3432xJWBSg','env','3492714WKSIKv','5koViRX','./config/constants','root','533459rnYCbV','7wNNsts','2548905afUNMA','usage','539240SSKIac','2vohaGF','commandDir','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','154EMJYTH','482710veNQmH','help','epilogue','45VtymbI','demandCommand'];a24_0x2772=function(){return _0x43b570;};return a24_0x2772();}module['exports']=run;
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;