browserstack-node-sdk 1.46.8 → 1.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/generated/sdk-messages_pb.d.ts +18 -0
  41. package/generated/sdk-messages_pb.js +147 -3
  42. package/package.json +1 -1
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test.setup.js +1 -1
  69. package/src/bin/jest/test_before.setup.js +1 -1
  70. package/src/bin/launcher/launcher.js +1 -1
  71. package/src/bin/load/index.js +1 -1
  72. package/src/bin/load/loadUtils.js +1 -1
  73. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  74. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  75. package/src/bin/mocha/command.js +1 -1
  76. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  77. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  78. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  79. package/src/bin/mocha/test.setup.js +1 -1
  80. package/src/bin/nightwatch/command.js +1 -1
  81. package/src/bin/playwright/accessibility-helper.js +1 -1
  82. package/src/bin/playwright/command.js +1 -1
  83. package/src/bin/playwright/globalSetup.js +1 -1
  84. package/src/bin/playwright/mock-process.js +1 -1
  85. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  86. package/src/bin/playwright/patches.js +1 -1
  87. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  88. package/src/bin/playwright/reporter/reporter.js +1 -1
  89. package/src/bin/playwright/reporter/test-details.js +1 -1
  90. package/src/bin/playwright/sessionDetails.js +1 -1
  91. package/src/bin/runner.js +1 -1
  92. package/src/bin/setup.js +1 -1
  93. package/src/bin/test-runner/index.js +1 -1
  94. package/src/bin/test-runner/runTest.js +1 -1
  95. package/src/bin/test-runner/testWorker.js +1 -1
  96. package/src/bin/utils/apiUtilityMethods.js +1 -1
  97. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  98. package/src/bin/utils/constants.js +1 -1
  99. package/src/bin/utils/log4jsAppender.js +1 -1
  100. package/src/bin/utils/logPatcher.js +1 -1
  101. package/src/bin/utils/logReportingAPI.js +1 -1
  102. package/src/bin/utils/playwright-patcher.js +1 -1
  103. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  104. package/src/bin/utils/sharedUtils.js +1 -1
  105. package/src/bin/v2/TestInfo.js +1 -1
  106. package/src/bin/v2/browserstackCLI.js +1 -1
  107. package/src/bin/v2/cliUtils.js +1 -1
  108. package/src/bin/v2/customTagManager.js +1 -1
  109. package/src/bin/v2/eventDispatcher.js +1 -1
  110. package/src/bin/v2/framework/automationFramework.js +1 -1
  111. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  112. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  113. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  114. package/src/bin/v2/framework/jestTestFramework.js +1 -0
  115. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  116. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  117. package/src/bin/v2/framework/testFramework.js +1 -1
  118. package/src/bin/v2/grpcClient.js +1 -1
  119. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  120. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  121. package/src/bin/v2/instances/trackedContext.js +1 -1
  122. package/src/bin/v2/instances/trackedInstance.js +1 -1
  123. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  124. package/src/bin/v2/modules/baseModule.js +1 -1
  125. package/src/bin/v2/modules/observabilityModule.js +1 -1
  126. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  127. package/src/bin/v2/modules/testhubModule.js +1 -1
  128. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  129. package/src/bin/v2/state/hookState.js +1 -1
  130. package/src/bin/v2/state/testFrameworkState.js +1 -1
  131. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  132. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  133. package/src/bin/v2/utils/jest-utils.js +1 -0
  134. package/src/bin/vanilla-js/command.js +1 -1
  135. package/src/browserStackSdk.js +1 -1
  136. package/src/helpers/BrowserStackSetup.js +1 -1
  137. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  138. package/src/helpers/accessibility-automation/constants.js +1 -1
  139. package/src/helpers/accessibility-automation/helper.js +1 -1
  140. package/src/helpers/accessibility-automation/scripts.js +1 -1
  141. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  142. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  143. package/src/helpers/ats/constants.js +1 -1
  144. package/src/helpers/ats/helper.js +1 -1
  145. package/src/helpers/capsMapping.js +1 -1
  146. package/src/helpers/central-scanner/constants.js +1 -1
  147. package/src/helpers/central-scanner/helpers.js +1 -1
  148. package/src/helpers/classLogger.js +1 -1
  149. package/src/helpers/globals.js +1 -1
  150. package/src/helpers/helper.js +1 -1
  151. package/src/helpers/logger.js +1 -1
  152. package/src/helpers/metadata.js +1 -1
  153. package/src/helpers/patchHelper.js +1 -1
  154. package/src/helpers/patchHelpers.js +1 -1
  155. package/src/helpers/percy/Percy.js +1 -1
  156. package/src/helpers/percy/PercyBinary.js +1 -1
  157. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  158. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  159. package/src/helpers/percy/PercySDK.js +1 -1
  160. package/src/helpers/percy/index.js +1 -1
  161. package/src/helpers/percy/utils.js +1 -1
  162. package/src/helpers/performance/constants.js +1 -1
  163. package/src/helpers/performance/performance-tester.js +1 -1
  164. package/src/helpers/playwright-helper.js +1 -1
  165. package/src/helpers/processHelper.js +1 -1
  166. package/src/helpers/request-spy.js +1 -1
  167. package/src/helpers/setKeepAlive.js +1 -1
  168. package/src/helpers/test-observability/constants.js +1 -1
  169. package/src/helpers/test-observability/error-handler.js +1 -1
  170. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  171. package/src/helpers/test-observability/sessionHandler.js +1 -1
  172. package/src/helpers/test-observability/utils.js +1 -1
  173. package/src/helpers/test-orchestration/constants.js +1 -1
  174. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  175. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  176. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  177. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  178. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  179. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  180. package/src/helpers/testhub/constants.js +1 -1
  181. package/src/helpers/testhub/testhubHandler.js +1 -1
  182. package/src/helpers/testhub/utils.js +1 -1
  183. package/src/helpers/timeoutPromise.js +1 -1
  184. package/src/helpers/utilities.js +1 -1
  185. package/src/helpers/w3cMapping.js +1 -1
  186. package/src/hubAllocationMethods.js +1 -1
  187. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x2a3b(){const _0x42ba7c=['audln','bstackAccesskey','HGtHO','parse','qipsy','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','25965049AzwnyS','builder','https://','bstackUsername','lpATW','1222921pdIUqU','2328XszRPe','../../utils/instrumentationUtils','IETmR','stringify','XrXNS','statusCode','log','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','Poubl','pvJvL','queued','2601102VlSKAX','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','all-grids','existsSync','16bNqvGu','handler','rOLOb','argv','AeOOX','epilogue','push','ZQHmq','NFvUa','usage','WaCuU','/packages/cli/get-all-grids','list-grids-called','YnwwX','../../config/constants','92028nOPvMD','grid','list','command','15ipzBXd','allGrids','got','JmaLM','AyEHF','help','OspUy','qnjaD','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unknown-error','grid-name','RGcqd','init-not-called','/packages/cli/get-grids','requestId','grid-id','59913AMUAqh','GET','1569YpmNdg','993621IfIKAH','Browserstack','exit','username','desc','uqRMV','name','BCBjp','ERROR','INFO','running','uuid','boolean','1070dRHEPB','BvOBw','error','forEach','status','grids','Failed\x20to\x20list\x20resources!\x20Error:\x20','description','body','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a15_0x2a3b=function(){return _0x42ba7c;};return a15_0x2a3b();}const a15_0x215864=a15_0x3913;(function(_0x648574,_0x1f2ec5){const _0x15d2b8=a15_0x3913,_0x12c8e2=_0x648574();while(!![]){try{const _0x1212e4=-parseInt(_0x15d2b8(0x141))/0x1+-parseInt(_0x15d2b8(0x12a))/0x2+-parseInt(_0x15d2b8(0x140))/0x3*(-parseInt(_0x15d2b8(0x10c))/0x4)+parseInt(_0x15d2b8(0x12e))/0x5*(-parseInt(_0x15d2b8(0x117))/0x6)+parseInt(_0x15d2b8(0x10b))/0x7*(-parseInt(_0x15d2b8(0x11b))/0x8)+parseInt(_0x15d2b8(0x13e))/0x9*(parseInt(_0x15d2b8(0x14e))/0xa)+parseInt(_0x15d2b8(0x106))/0xb;if(_0x1212e4===_0x1f2ec5)break;else _0x12c8e2['push'](_0x12c8e2['shift']());}catch(_0x4df072){_0x12c8e2['push'](_0x12c8e2['shift']());}}}(a15_0x2a3b,0xa7dc0));function a15_0x3913(_0x20d4c5,_0x21c0b3){const _0x2a3beb=a15_0x2a3b();return a15_0x3913=function(_0x3913d5,_0x19cb83){_0x3913d5=_0x3913d5-0xfb;let _0x484e76=_0x2a3beb[_0x3913d5];return _0x484e76;},a15_0x3913(_0x20d4c5,_0x21c0b3);}const fs=require('fs'),got=require(a15_0x215864(0x130)),{table}=require('table'),{v4:uuidv4}=require(a15_0x215864(0x14c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x215864(0x129)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x215864(0x10d));exports[a15_0x215864(0x12d)]=a15_0x215864(0xfb),exports[a15_0x215864(0x145)]=a15_0x215864(0x105),exports[a15_0x215864(0x107)]=function(_0x5a40ec){const _0x594565=a15_0x215864,_0x39f429={};_0x39f429[_0x594565(0x114)]=_0x594565(0x113),_0x39f429[_0x594565(0x10e)]=_0x594565(0x14d),_0x39f429['MPJty']=_0x594565(0x133);const _0x33b852=_0x39f429,_0x1065e9={};_0x1065e9[_0x594565(0xfd)]=_0x33b852[_0x594565(0x114)],_0x1065e9['type']=_0x33b852[_0x594565(0x10e)];const _0x2713a7={};return _0x2713a7[_0x594565(0x119)]=_0x1065e9,_0x5a40ec[_0x594565(0x124)](HELP_HEADER_MESSAGE[_0x594565(0x12c)][_0x594565(0x12b)])[_0x594565(0x120)](HELP_FOOTER_MESSAGE)['options'](_0x2713a7)['help'](_0x33b852['MPJty'])[_0x594565(0x11e)];},exports[a15_0x215864(0x11c)]=async function(_0x55c6a0){const _0x4369e0=a15_0x215864,_0x4b3713={'qnjaD':function(_0x194c33){return _0x194c33();},'audln':function(_0x1fb398){return _0x1fb398();},'NFvUa':_0x4369e0(0x118),'lpATW':function(_0x51a1b4,_0x52edaf,_0x476167,_0xa89ca0,_0x14a426,_0x3047cd,_0x298288){return _0x51a1b4(_0x52edaf,_0x476167,_0xa89ca0,_0x14a426,_0x3047cd,_0x298288);},'OspUy':_0x4369e0(0x127),'pvJvL':_0x4369e0(0x13a),'BvOBw':_0x4369e0(0x13f),'XrXNS':function(_0x144cb4,_0x4b7edb,_0x41bde9){return _0x144cb4(_0x4b7edb,_0x41bde9);},'WaCuU':function(_0x1d3958,_0x4d9a31,_0x168b76){return _0x1d3958(_0x4d9a31,_0x168b76);},'JmaLM':function(_0x54ce10,_0x173220){return _0x54ce10!==_0x173220;},'XHlSD':function(_0x4d2d6a,_0x508bfa){return _0x4d2d6a!==_0x508bfa;},'AeOOX':function(_0x588e1c,_0x47d371){return _0x588e1c===_0x47d371;},'rOLOb':'\x0aFound\x20the\x20following\x20grids:\x0a','YnwwX':_0x4369e0(0x13d),'QJFPv':_0x4369e0(0x138),'HGtHO':'status','RGcqd':'running','ZWGUT':'queued','RHRkK':'cluster-name','BCBjp':function(_0x5875a2,_0x43a463){return _0x5875a2(_0x43a463);},'uqRMV':_0x4369e0(0x136),'qipsy':'unauthorised','AyEHF':'server-error','ZQHmq':_0x4369e0(0x137)};try{global_registry[_0x4369e0(0x13c)]=_0x4b3713[_0x4369e0(0x135)](uuidv4);!fs[_0x4369e0(0x11a)](_0x4b3713[_0x4369e0(0x100)](getCredentialsPath))&&(console[_0x4369e0(0x150)](_0x4b3713[_0x4369e0(0x123)]),await _0x4b3713[_0x4369e0(0x10a)](sendInstrumentationEvent,_0x55c6a0,_0x4b3713[_0x4369e0(0x134)],messageTypes[_0x4369e0(0x149)],_0x4b3713[_0x4369e0(0x115)],null,_0x55c6a0),process['exit'](0x1));const _0x173a01=JSON[_0x4369e0(0x103)](fs['readFileSync'](_0x4b3713[_0x4369e0(0x135)](getCredentialsPath)));let _0x329991=_0x4369e0(0x108)+AG_API_URL+_0x4369e0(0x13b);_0x55c6a0[_0x4369e0(0x12f)]&&(_0x329991=_0x4369e0(0x108)+AG_API_URL+_0x4369e0(0x126));const _0x5c1674={'method':_0x4b3713[_0x4369e0(0x14f)],'headers':_0x4b3713[_0x4369e0(0x110)](getAuthHeader,_0x173a01[_0x4369e0(0x142)][_0x4369e0(0x144)],_0x173a01[_0x4369e0(0x142)]['password']),'throwHttpErrors':![]};global_registry[_0x4369e0(0x109)]=_0x173a01[_0x4369e0(0x142)][_0x4369e0(0x144)],global_registry[_0x4369e0(0x101)]=_0x173a01[_0x4369e0(0x142)]['password'],_0x4b3713['lpATW'](sendInstrumentationEvent,_0x55c6a0,_0x4b3713[_0x4369e0(0x134)],messageTypes[_0x4369e0(0x14a)],null,null,_0x55c6a0);const _0x42628b=await _0x4b3713[_0x4369e0(0x125)](got,_0x329991,_0x5c1674);if(_0x4b3713[_0x4369e0(0x131)](_0x42628b,null)&&_0x4b3713['XHlSD'](_0x42628b,undefined)&&_0x4b3713['AeOOX'](_0x42628b[_0x4369e0(0x111)],0xc8)){const _0x3d4903=JSON[_0x4369e0(0x103)](_0x42628b[_0x4369e0(0xfe)]);console[_0x4369e0(0x112)](_0x4b3713[_0x4369e0(0x11d)]);const _0x577d4b=[];_0x577d4b[_0x4369e0(0x121)]([_0x4b3713[_0x4369e0(0x128)],_0x4b3713['QJFPv'],_0x4b3713[_0x4369e0(0x102)],_0x4b3713[_0x4369e0(0x139)],_0x4b3713['ZWGUT'],_0x4b3713['RHRkK']]),_0x3d4903[_0x4369e0(0x151)](_0x3c56e1=>{const _0x20f3ed=_0x4369e0;_0x577d4b[_0x20f3ed(0x121)]([_0x3c56e1['id'],_0x3c56e1[_0x20f3ed(0x147)],_0x3c56e1[_0x20f3ed(0x152)],_0x3c56e1[_0x20f3ed(0x14b)],_0x3c56e1[_0x20f3ed(0x116)],_0x3c56e1['clusterName']]);}),console[_0x4369e0(0x112)](_0x4b3713[_0x4369e0(0x148)](table,_0x577d4b)),process[_0x4369e0(0x143)](0x0);}_0x4b3713[_0x4369e0(0x11f)](_0x42628b[_0x4369e0(0x111)],0x191)&&(console[_0x4369e0(0x150)](_0x4b3713[_0x4369e0(0x146)]),await _0x4b3713[_0x4369e0(0x10a)](sendInstrumentationEvent,_0x55c6a0,_0x4b3713[_0x4369e0(0x134)],messageTypes['ERROR'],_0x4b3713[_0x4369e0(0x104)],null,_0x55c6a0),process[_0x4369e0(0x143)](0x1)),console['error'](_0x4369e0(0xff)+JSON[_0x4369e0(0x10f)](_0x42628b)),await _0x4b3713['lpATW'](sendInstrumentationEvent,_0x55c6a0,_0x4b3713[_0x4369e0(0x134)],messageTypes['ERROR'],_0x4b3713[_0x4369e0(0x132)],_0x42628b,_0x55c6a0),process['exit'](0x1);}catch(_0x25c9ae){console[_0x4369e0(0x150)](_0x4369e0(0xfc)+_0x25c9ae['stack']),await _0x4b3713[_0x4369e0(0x10a)](sendInstrumentationEvent,_0x55c6a0,_0x4b3713[_0x4369e0(0x134)],messageTypes[_0x4369e0(0x149)],_0x4b3713[_0x4369e0(0x122)],_0x25c9ae,_0x55c6a0),process[_0x4369e0(0x143)](0x1);}};
1
+ function a15_0x5553(){const _0xf81aba=['25fBtpPj','table','KaDvV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','description','builder','got','AGcsE','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','DyszJ','unauthorised','grid-name','log','2184bKJAoA','../../config/constants','vSZWM','ttNjB','INFO','existsSync','bstackUsername','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','236244dndCDu','type','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','2658890NDuaqP','PvJrT','1866753wlnATA','exit','status','PComQ','GET','handler','2496SlxAof','grid','hWpgg','https://','list','boolean','allGrids','GmOqw','3524XzaUUL','bqPbY','vkCVY','readFileSync','uuid','parse','queued','argv','push','ONpdv','all-grids','command','cluster-name','grids','GbMub','dNmRu','AVisf','TGzGm','options','699aQjRlW','name','statusCode','stack','oBquG','Browserstack','LYknA','hSIyB','../../utils/instrumentationUtils','\x0aFound\x20the\x20following\x20grids:\x0a','jxafa','ERROR','dhrrb','desc','error','password','173528JlNLps','EZPAT','265868WhVMJV','running','username','IghFt','requestId','help'];a15_0x5553=function(){return _0xf81aba;};return a15_0x5553();}const a15_0x13e38d=a15_0x5f06;(function(_0x56ecaf,_0x59dbe4){const _0xf2bfdd=a15_0x5f06,_0x172401=_0x56ecaf();while(!![]){try{const _0x388868=-parseInt(_0xf2bfdd(0x101))/0x1+parseInt(_0xf2bfdd(0x103))/0x2+-parseInt(_0xf2bfdd(0xf1))/0x3*(parseInt(_0xf2bfdd(0xde))/0x4)+parseInt(_0xf2bfdd(0x109))/0x5*(parseInt(_0xf2bfdd(0x11e))/0x6)+-parseInt(_0xf2bfdd(0x116))/0x7*(-parseInt(_0xf2bfdd(0xd6))/0x8)+-parseInt(_0xf2bfdd(0xd0))/0x9+parseInt(_0xf2bfdd(0xce))/0xa;if(_0x388868===_0x59dbe4)break;else _0x172401['push'](_0x172401['shift']());}catch(_0xd72630){_0x172401['push'](_0x172401['shift']());}}}(a15_0x5553,0x1a143));function a15_0x5f06(_0x1250cb,_0x5c3316){const _0x5553d5=a15_0x5553();return a15_0x5f06=function(_0x5f06e5,_0x5937f9){_0x5f06e5=_0x5f06e5-0xcd;let _0x3ef068=_0x5553d5[_0x5f06e5];return _0x3ef068;},a15_0x5f06(_0x1250cb,_0x5c3316);}const fs=require('fs'),got=require(a15_0x13e38d(0x10f)),{table}=require(a15_0x13e38d(0x10a)),{v4:uuidv4}=require(a15_0x13e38d(0xe2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x13e38d(0x117)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x13e38d(0xf9));exports[a15_0x13e38d(0xe9)]=a15_0x13e38d(0xeb),exports[a15_0x13e38d(0xfe)]=a15_0x13e38d(0xcd),exports[a15_0x13e38d(0x10e)]=function(_0x36cb21){const _0x52425e=a15_0x13e38d,_0x4168f9={};_0x4168f9[_0x52425e(0x10b)]=_0x52425e(0x111),_0x4168f9[_0x52425e(0xcf)]=_0x52425e(0xdb),_0x4168f9[_0x52425e(0xed)]=_0x52425e(0x108);const _0xb0bece=_0x4168f9,_0x2a88c4={};_0x2a88c4[_0x52425e(0x10d)]=_0xb0bece['KaDvV'],_0x2a88c4[_0x52425e(0x11f)]=_0xb0bece[_0x52425e(0xcf)];const _0x5331de={};return _0x5331de[_0x52425e(0xe8)]=_0x2a88c4,_0x36cb21['usage'](HELP_HEADER_MESSAGE[_0x52425e(0xda)][_0x52425e(0xd7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x52425e(0xf0)](_0x5331de)['help'](_0xb0bece['dNmRu'])[_0x52425e(0xe5)];},exports[a15_0x13e38d(0xd5)]=async function(_0x238ee6){const _0x5837c5=a15_0x13e38d,_0x1039ab={'jxafa':function(_0x126ab8){return _0x126ab8();},'DyszJ':_0x5837c5(0x11d),'IghFt':function(_0x1edefd,_0x2c2f1c,_0x44ad5a,_0x2c28bc,_0x5eb545,_0x53f3aa,_0x54e40f){return _0x1edefd(_0x2c2f1c,_0x44ad5a,_0x2c28bc,_0x5eb545,_0x53f3aa,_0x54e40f);},'vkCVY':'list-grids-called','LYknA':'init-not-called','ONpdv':function(_0x38e27e){return _0x38e27e();},'TGzGm':_0x5837c5(0xd4),'wUhaO':function(_0x139f9b,_0x10952e,_0x4b4fe9){return _0x139f9b(_0x10952e,_0x4b4fe9);},'EZPAT':function(_0x1bc6b2,_0xaf958a,_0x5a5018){return _0x1bc6b2(_0xaf958a,_0x5a5018);},'dhrrb':function(_0x258ce2,_0x387e09){return _0x258ce2!==_0x387e09;},'GmOqw':function(_0xddacf9,_0x25de0f){return _0xddacf9===_0x25de0f;},'PComQ':_0x5837c5(0xfa),'AVisf':'grid-id','ttNjB':_0x5837c5(0x114),'vSZWM':_0x5837c5(0xd2),'CVfky':_0x5837c5(0x104),'oBquG':_0x5837c5(0xe4),'stPqe':_0x5837c5(0xea),'hWpgg':function(_0xd950de,_0x274d0d){return _0xd950de(_0x274d0d);},'hSIyB':function(_0x360b1d,_0x1575b8){return _0x360b1d===_0x1575b8;},'GbMub':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','bqPbY':_0x5837c5(0x113),'gAYsO':function(_0x14201b,_0x23ee90,_0x2f836b,_0x52265b,_0x34efac,_0x1fb95a,_0x1df0d2){return _0x14201b(_0x23ee90,_0x2f836b,_0x52265b,_0x34efac,_0x1fb95a,_0x1df0d2);},'AGcsE':'server-error','szFjn':function(_0xce96b2,_0x577962,_0x21c3b9,_0x35f06b,_0x2e6b8a,_0x29b7d5,_0x5eeb83){return _0xce96b2(_0x577962,_0x21c3b9,_0x35f06b,_0x2e6b8a,_0x29b7d5,_0x5eeb83);},'jIFGS':'unknown-error'};try{global_registry[_0x5837c5(0x107)]=_0x1039ab[_0x5837c5(0xfb)](uuidv4);!fs[_0x5837c5(0x11b)](_0x1039ab[_0x5837c5(0xfb)](getCredentialsPath))&&(console['error'](_0x1039ab[_0x5837c5(0x112)]),await _0x1039ab[_0x5837c5(0x106)](sendInstrumentationEvent,_0x238ee6,_0x1039ab['vkCVY'],messageTypes[_0x5837c5(0xfc)],_0x1039ab[_0x5837c5(0xf7)],null,_0x238ee6),process[_0x5837c5(0xd1)](0x1));const _0x5512c2=JSON[_0x5837c5(0xe3)](fs[_0x5837c5(0xe1)](_0x1039ab[_0x5837c5(0xe7)](getCredentialsPath)));let _0x117f47=_0x5837c5(0xd9)+AG_API_URL+'/packages/cli/get-grids';_0x238ee6[_0x5837c5(0xdc)]&&(_0x117f47='https://'+AG_API_URL+'/packages/cli/get-all-grids');const _0xa238b9={'method':_0x1039ab[_0x5837c5(0xef)],'headers':_0x1039ab['wUhaO'](getAuthHeader,_0x5512c2[_0x5837c5(0xf6)][_0x5837c5(0x105)],_0x5512c2['Browserstack'][_0x5837c5(0x100)]),'throwHttpErrors':![]};global_registry[_0x5837c5(0x11c)]=_0x5512c2[_0x5837c5(0xf6)][_0x5837c5(0x105)],global_registry['bstackAccesskey']=_0x5512c2[_0x5837c5(0xf6)][_0x5837c5(0x100)],_0x1039ab[_0x5837c5(0x106)](sendInstrumentationEvent,_0x238ee6,_0x1039ab[_0x5837c5(0xe0)],messageTypes[_0x5837c5(0x11a)],null,null,_0x238ee6);const _0x3f7e3b=await _0x1039ab[_0x5837c5(0x102)](got,_0x117f47,_0xa238b9);if(_0x1039ab['dhrrb'](_0x3f7e3b,null)&&_0x1039ab[_0x5837c5(0xfd)](_0x3f7e3b,undefined)&&_0x1039ab[_0x5837c5(0xdd)](_0x3f7e3b[_0x5837c5(0xf3)],0xc8)){const _0x490106=JSON[_0x5837c5(0xe3)](_0x3f7e3b['body']);console[_0x5837c5(0x115)](_0x1039ab[_0x5837c5(0xd3)]);const _0x45f78a=[];_0x45f78a[_0x5837c5(0xe6)]([_0x1039ab[_0x5837c5(0xee)],_0x1039ab[_0x5837c5(0x119)],_0x1039ab[_0x5837c5(0x118)],_0x1039ab['CVfky'],_0x1039ab[_0x5837c5(0xf5)],_0x1039ab['stPqe']]),_0x490106['forEach'](_0x3e33ea=>{const _0x4cd468=_0x5837c5;_0x45f78a[_0x4cd468(0xe6)]([_0x3e33ea['id'],_0x3e33ea[_0x4cd468(0xf2)],_0x3e33ea[_0x4cd468(0xd2)],_0x3e33ea[_0x4cd468(0x104)],_0x3e33ea['queued'],_0x3e33ea['clusterName']]);}),console['log'](_0x1039ab[_0x5837c5(0xd8)](table,_0x45f78a)),process[_0x5837c5(0xd1)](0x0);}_0x1039ab[_0x5837c5(0xf8)](_0x3f7e3b[_0x5837c5(0xf3)],0x191)&&(console['error'](_0x1039ab[_0x5837c5(0xec)]),await _0x1039ab['IghFt'](sendInstrumentationEvent,_0x238ee6,_0x1039ab[_0x5837c5(0xe0)],messageTypes['ERROR'],_0x1039ab[_0x5837c5(0xdf)],null,_0x238ee6),process[_0x5837c5(0xd1)](0x1)),console['error'](_0x5837c5(0x10c)+JSON['stringify'](_0x3f7e3b)),await _0x1039ab['gAYsO'](sendInstrumentationEvent,_0x238ee6,_0x1039ab[_0x5837c5(0xe0)],messageTypes[_0x5837c5(0xfc)],_0x1039ab[_0x5837c5(0x110)],_0x3f7e3b,_0x238ee6),process[_0x5837c5(0xd1)](0x1);}catch(_0x35bacd){console[_0x5837c5(0xff)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x35bacd[_0x5837c5(0xf4)]),await _0x1039ab['szFjn'](sendInstrumentationEvent,_0x238ee6,_0x1039ab['vkCVY'],messageTypes[_0x5837c5(0xfc)],_0x1039ab['jIFGS'],_0x35bacd,_0x238ee6),process[_0x5837c5(0xd1)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x546644=a16_0x58ae;(function(_0x4b8131,_0x4258d7){const _0x3bb108=a16_0x58ae,_0x3129f7=_0x4b8131();while(!![]){try{const _0x502bed=-parseInt(_0x3bb108(0x126))/0x1*(parseInt(_0x3bb108(0x136))/0x2)+parseInt(_0x3bb108(0x13a))/0x3+parseInt(_0x3bb108(0x123))/0x4*(-parseInt(_0x3bb108(0x139))/0x5)+-parseInt(_0x3bb108(0x12b))/0x6*(-parseInt(_0x3bb108(0x12d))/0x7)+-parseInt(_0x3bb108(0x13c))/0x8*(parseInt(_0x3bb108(0x124))/0x9)+-parseInt(_0x3bb108(0x137))/0xa*(parseInt(_0x3bb108(0x13b))/0xb)+-parseInt(_0x3bb108(0x122))/0xc*(-parseInt(_0x3bb108(0x131))/0xd);if(_0x502bed===_0x4258d7)break;else _0x3129f7['push'](_0x3129f7['shift']());}catch(_0x84fe8){_0x3129f7['push'](_0x3129f7['shift']());}}}(a16_0x6ec0,0xba402));function a16_0x58ae(_0x129e8e,_0x4d3a84){const _0x6ec072=a16_0x6ec0();return a16_0x58ae=function(_0x58ae3d,_0x122a60){_0x58ae3d=_0x58ae3d-0x122;let _0x528fdf=_0x6ec072[_0x58ae3d];return _0x528fdf;},a16_0x58ae(_0x129e8e,_0x4d3a84);}function a16_0x6ec0(){const _0x4b4535=['command','658992cDMxKw','commandDir','56YlduSm','pre_check','Hsvxk','precheck_commands','31083yzuPtm','../config/constants','pre-check','handler','demandCommand','2RvnlkW','14597230eGSHCt','usage','212685EEstwA','3372792SDfutW','11QGQhEA','8nvWMBu','help','12756SEJupM','44hFaCRg','9235665VDeqBm','nVqAm','827856wGxVmA','strict','recommendCommands','desc'];a16_0x6ec0=function(){return _0x4b4535;};return a16_0x6ec0();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x546644(0x132));exports[a16_0x546644(0x12a)]=a16_0x546644(0x133),exports[a16_0x546644(0x129)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports['builder']=function(_0x220023){const _0x7e953=a16_0x546644,_0x2f6c06={};_0x2f6c06[_0x7e953(0x125)]=_0x7e953(0x130),_0x2f6c06[_0x7e953(0x12f)]=_0x7e953(0x13d);const _0x17aead=_0x2f6c06;return _0x220023[_0x7e953(0x138)](HELP_HEADER_MESSAGE[_0x7e953(0x12e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x7e953(0x12c)](_0x17aead[_0x7e953(0x125)])[_0x7e953(0x135)]()[_0x7e953(0x128)]()[_0x7e953(0x127)]()[_0x7e953(0x13d)](_0x17aead[_0x7e953(0x12f)]);},exports[a16_0x546644(0x134)]=function(_0x44f2b5){};
1
+ const a16_0x3c4d58=a16_0x1703;(function(_0x3a61fc,_0x7cece5){const _0xd9ebdb=a16_0x1703,_0x39b195=_0x3a61fc();while(!![]){try{const _0x4e61e6=parseInt(_0xd9ebdb(0x136))/0x1*(-parseInt(_0xd9ebdb(0x130))/0x2)+-parseInt(_0xd9ebdb(0x135))/0x3*(parseInt(_0xd9ebdb(0x129))/0x4)+-parseInt(_0xd9ebdb(0x133))/0x5+parseInt(_0xd9ebdb(0x13d))/0x6+-parseInt(_0xd9ebdb(0x13e))/0x7+parseInt(_0xd9ebdb(0x13f))/0x8+parseInt(_0xd9ebdb(0x12e))/0x9;if(_0x4e61e6===_0x7cece5)break;else _0x39b195['push'](_0x39b195['shift']());}catch(_0x3ed1ba){_0x39b195['push'](_0x39b195['shift']());}}}(a16_0x481e,0x1a613));function a16_0x1703(_0x3f3079,_0x4e9f50){const _0x481ee6=a16_0x481e();return a16_0x1703=function(_0x1703a0,_0x22cd8e){_0x1703a0=_0x1703a0-0x127;let _0x4718e1=_0x481ee6[_0x1703a0];return _0x4718e1;},a16_0x1703(_0x3f3079,_0x4e9f50);}function a16_0x481e(){const _0x2b04a6=['desc','XhPVJ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','DUVBz','builder','commandDir','773430YeowPa','591836tQJHST','610504MSoxvg','strict','command','pre-check','497516yJtRNE','demandCommand','pre_check','../config/constants','help','3296358oXcetT','recommendCommands','2104PLGoqq','handler','epilogue','252070kBQyhv','usage','3AufNqo','194beFtNg'];a16_0x481e=function(){return _0x2b04a6;};return a16_0x481e();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x3c4d58(0x12c));exports[a16_0x3c4d58(0x127)]=a16_0x3c4d58(0x128),exports[a16_0x3c4d58(0x137)]=a16_0x3c4d58(0x139),exports[a16_0x3c4d58(0x13b)]=function(_0xf59062){const _0x51c9eb=a16_0x3c4d58,_0x89b2f5={};_0x89b2f5['DUVBz']='precheck_commands',_0x89b2f5[_0x51c9eb(0x138)]=_0x51c9eb(0x12d);const _0x30705d=_0x89b2f5;return _0xf59062[_0x51c9eb(0x134)](HELP_HEADER_MESSAGE[_0x51c9eb(0x12b)])[_0x51c9eb(0x132)](HELP_FOOTER_MESSAGE)[_0x51c9eb(0x13c)](_0x30705d[_0x51c9eb(0x13a)])[_0x51c9eb(0x12a)]()[_0x51c9eb(0x12f)]()[_0x51c9eb(0x140)]()['help'](_0x30705d[_0x51c9eb(0x138)]);},exports[a16_0x3c4d58(0x131)]=function(_0x29aecb){};
@@ -1 +1 @@
1
- function a17_0x32f1(_0x47d739,_0x1d3ccf){const _0x4cf931=a17_0x4cf9();return a17_0x32f1=function(_0x32f116,_0x514e4f){_0x32f116=_0x32f116-0xf8;let _0x5850cc=_0x4cf931[_0x32f116];return _0x5850cc;},a17_0x32f1(_0x47d739,_0x1d3ccf);}const a17_0x39a44d=a17_0x32f1;(function(_0x4f028e,_0xee7bce){const _0x9cd432=a17_0x32f1,_0x45ff84=_0x4f028e();while(!![]){try{const _0x40c6f6=parseInt(_0x9cd432(0x1a4))/0x1*(-parseInt(_0x9cd432(0x10c))/0x2)+-parseInt(_0x9cd432(0x11b))/0x3+-parseInt(_0x9cd432(0x1c1))/0x4*(-parseInt(_0x9cd432(0x15b))/0x5)+-parseInt(_0x9cd432(0x1fa))/0x6*(-parseInt(_0x9cd432(0x1bd))/0x7)+parseInt(_0x9cd432(0x171))/0x8+-parseInt(_0x9cd432(0x144))/0x9*(parseInt(_0x9cd432(0x131))/0xa)+parseInt(_0x9cd432(0x1ab))/0xb;if(_0x40c6f6===_0xee7bce)break;else _0x45ff84['push'](_0x45ff84['shift']());}catch(_0x42d4be){_0x45ff84['push'](_0x45ff84['shift']());}}}(a17_0x4cf9,0x31a55));const fs=require('fs'),ws=require('ws'),got=require(a17_0x39a44d(0x18a)),{v4:uuidv4}=require(a17_0x39a44d(0x1dd)),ReconnectingWebSocket=require(a17_0x39a44d(0x152)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x39a44d(0x1d2)),{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_0x39a44d(0x1d8)),{getCloudProviderObjectWithOutInit}=require(a17_0x39a44d(0xf8)),webSocketUtils=require(a17_0x39a44d(0x11c)),{sendInstrumentationEvent}=require(a17_0x39a44d(0xfa));exports[a17_0x39a44d(0x14c)]=a17_0x39a44d(0x110),exports[a17_0x39a44d(0x154)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a17_0x39a44d(0x134)]=function(_0x24008c){const _0x59a27c=a17_0x39a44d,_0x26ef94={};_0x26ef94['xlGJM']=_0x59a27c(0x1a2),_0x26ef94['ssLCi']='string',_0x26ef94[_0x59a27c(0x158)]=_0x59a27c(0x1d6),_0x26ef94[_0x59a27c(0x1c2)]=_0x59a27c(0x1e8),_0x26ef94[_0x59a27c(0x100)]=_0x59a27c(0x198),_0x26ef94[_0x59a27c(0x188)]=_0x59a27c(0x14f);const _0x337d9f=_0x26ef94,_0x92a01e={};_0x92a01e[_0x59a27c(0x191)]=_0x337d9f[_0x59a27c(0x1bf)],_0x92a01e[_0x59a27c(0x139)]=_0x337d9f[_0x59a27c(0x1df)];const _0x2fed5c={};_0x2fed5c[_0x59a27c(0x191)]=_0x337d9f[_0x59a27c(0x158)],_0x2fed5c[_0x59a27c(0x139)]=_0x337d9f[_0x59a27c(0x1df)];const _0x415a12={};_0x415a12[_0x59a27c(0x191)]=_0x337d9f[_0x59a27c(0x1c2)],_0x415a12[_0x59a27c(0x139)]=_0x337d9f['ssLCi'];const _0x4a3a1b={};_0x4a3a1b[_0x59a27c(0x191)]=_0x337d9f['fJHTC'],_0x4a3a1b[_0x59a27c(0x139)]=_0x337d9f[_0x59a27c(0x1df)];const _0x2bbb53={};return _0x2bbb53[_0x59a27c(0x111)]=_0x92a01e,_0x2bbb53[_0x59a27c(0x150)]=_0x2fed5c,_0x2bbb53[_0x59a27c(0x1bb)]=_0x415a12,_0x2bbb53[_0x59a27c(0x1b7)]=_0x4a3a1b,_0x24008c[_0x59a27c(0x197)](HELP_HEADER_MESSAGE[_0x59a27c(0x153)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x59a27c(0x1cb)](_0x2bbb53)[_0x59a27c(0x14f)](_0x337d9f[_0x59a27c(0x188)])[_0x59a27c(0x1ac)];};function a17_0x4cf9(){const _0x11cd8d=['\x20\x20Code:\x20','790776ocdlEe','../../utils/webSocketUtils','shLeA','UmrnF','Grid\x20profile\x20fetched\x20for\x20pre-check','smdCj','===\x20Precheck\x20Report\x20-\x20','\x20region\x20-\x20','JJMwY','delay','.\x20Please\x20provide\x20all\x20required\x20arguments.','N/A','HRzQe','stack','requestId','dummy-grid','will\x20be\x20created','jzVPY','error','Message:\x20','pRuLD','UKMZX','1620kDoGOl','message','clusterName','builder','kREuU','WNbZI','grid\x20profile\x20flow\x20','Pcmjx','type','zDIct','pre-check-cluster-args-not-passed','is\x20already\x20present','IrlxY','authHeader','Setting\x20cloud\x20provider\x20as\x20','https://','code','Mwbue','LFpqV','19494wQNyuo','hubGf','iYtMg','ssUYw','connectionTimeout','Ivndh','Sgfnz','pRTxx','command','info','xIRlW','help','cloud-provider','rHKaa','reconnecting-websocket','pre_check','desc','gyUex','header','Error\x20Details:\x0a','kRKOO','exit','sibzh','185VNzfzQ','gXgme','headers','bstackUsername','name','pre-check-grid-called','GrJFp','IVVnI','JYwni','ASBbZ','ROfxl','yblsh','fQDUz','\x20\x20Message:\x20','ThibZ','KHpUw','throwHttpErrors','credential-not-found','Cluster\x20details\x0a-----------------------\x0a','ERROR','dWifj','<UsernamePlaceholder>','1910768uddTMM','lwpFV','Success','pQfns','ScLCP','OIDgK','\x20===\x0a\x0a','replace','RcqOb','parse','ByTRL','rOPlB','/packages/cli/get-all-grid-profiles','GET','stringify','abOsp','split','jiKWh','SyOyf','INFO','aJrki','PrZjS','response','fMLKc','Failure','got','debug','ojiNE','error\x20stack\x20:\x20','Status:\x20','LdZzK','sendEventToBackend','description','iqQRK','string','zUWNX','forEach','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','usage','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',']\x20status\x20:\x20','`\x20is\x20present\x20in\x20region\x20`','`\x20,error\x20:\x20','WobBr','yzcNb','nPVkn','XymOb','ltZGu','wUGbL','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Tool\x20Installed','2FLAbrQ','getUTCMonth','password','Report\x20saved\x20in\x20','lYBpr','\x20\x20Stack:\x20','push','4343141fTdvhg','argv','oPBTB','SphmO','mRXnf','WHPeF','isTls1_2_SUPPORTED','ClrDi','IukjT','aFyPr','DtTxJ','zYJEG','grid-profile','pre-check','kDPKz','CLOUD_PROVIDER','region','CBxqF','21yQUNXu','YajIw','xlGJM','cluster-check-failed-','43804XIqtNC','vQBhM','vgoEa','oMVPo','dohXU','kcZCL','Kueux','pre-check-failed','rPkAq','rgApx','options','wfMok','Failed\x20in\x20pre-check!\x20Error:\x20','APWWU','Whitelisted\x20browserstack','init','jkZUW','../../utils/utilityMethods','rIRkZ','<PasswordPlaceholder>','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','JNwnq','../../config/constants','SzxTp','method','\x20error\x20:\x20','SEMdA','uuid','cloudProvider','ssLCi','cloud-provider-not-supported','dEVoh','WebSocket','fBVAH','TKgfY','includes','TgLdn','toLowerCase','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','accessResp','Missing\x20required\x20arguments:\x20','handler','SGUGZ','lQGmT','DtFvv','ytgrU','Cluster\x20`','uERCr','kAnpk','`\x20already\x20exists','BniAO','cqmxW','Pre-check\x20running\x20for\x20Cloud\x20-\x20','NEWBc','readFileSync','bstackAccesskey','44502IOyOwT','username','MqNai','\x20data\x20:\x20','../../cloudproviders/utils','SSL\x20Configured','../../utils/instrumentationUtils','LOG','body','gShrp','lBbku','ZhuIy','fJHTC','SNkPE','existsSync','.txt','find','writeFileSync','MdMJb','log/report_','yooRN','xyrlD','getUTCDate','Browserstack','243282xDavvu','isCliToolInstalled','TbZdP','YgYko','grid','cluster-name','clusterRegion','Invalid\x20input.\x20grid\x20profiles:\x20','User\x20Access','cWeiL','Cluster\x20','gridProfile','ihJim','join'];a17_0x4cf9=function(){return _0x11cd8d;};return a17_0x4cf9();}async function inputValidation(_0x495503,_0x48d2ee){const _0x66b33f=a17_0x39a44d,_0x404fcb={'vArQy':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','rIRkZ':'error','KxSOy':_0x66b33f(0x1a2),'kREuU':_0x66b33f(0x193),'IKBdf':_0x66b33f(0x1d6),'WHPeF':_0x66b33f(0x1e8),'ytgrU':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','DYGze':'help','shLeA':_0x66b33f(0x111),'IukjT':function(_0x5690a5,_0x524362){return _0x5690a5+_0x524362;},'mRXnf':_0x66b33f(0x173),'UuSEf':_0x66b33f(0x189),'aFyPr':function(_0x1031ce,_0x42ef9b){return _0x1031ce||_0x42ef9b;},'jzVPY':_0x66b33f(0x126),'ViHCW':_0x66b33f(0x157),'cWeiL':_0x66b33f(0x1bb),'kcZCL':_0x66b33f(0x13c),'JJMwY':_0x66b33f(0x12b),'gXgme':function(_0x450023,_0x49f548){return _0x450023!==_0x49f548;},'NEWBc':_0x66b33f(0x155),'ZDLPY':_0x66b33f(0x1b2),'TgLdn':_0x66b33f(0x145),'WNbZI':function(_0x152e26,_0x1ae08c){return _0x152e26!==_0x1ae08c;},'SEMdA':_0x66b33f(0x169),'zUWNX':_0x66b33f(0x127),'Mwbue':function(_0x3dec17,_0x1f916a){return _0x3dec17!==_0x1f916a;},'SHxla':_0x66b33f(0x19f),'hdBjf':_0x66b33f(0x1ad),'GBGRc':_0x66b33f(0x150),'dEVoh':function(_0x1530f8,_0x7f3ebf){return _0x1530f8===_0x7f3ebf;},'sibzh':_0x66b33f(0x1c7),'wfMok':_0x66b33f(0x1d9),'rHKaa':function(_0x285560,_0xa98ffd){return _0x285560>_0xa98ffd;},'ROfxl':_0x66b33f(0x16a),'GrJFp':function(_0x2c3353,_0x2ed59b,_0x188680,_0x2fb82a,_0xecaaf,_0x968c45,_0x5869dd,_0x41295a){return _0x2c3353(_0x2ed59b,_0x188680,_0x2fb82a,_0xecaaf,_0x968c45,_0x5869dd,_0x41295a);},'OIDgK':_0x66b33f(0x160),'JYwni':_0x66b33f(0x13b),'UmrnF':_0x66b33f(0x1c5),'cqmxW':_0x66b33f(0x1e4),'IVVnI':_0x66b33f(0x196),'GxkiH':function(_0x136d83,_0x8b79,_0xe9f8a6,_0x22109e,_0x1c2116,_0x5b3b6f,_0x5db5b9,_0x4d7d91){return _0x136d83(_0x8b79,_0xe9f8a6,_0x22109e,_0x1c2116,_0x5b3b6f,_0x5db5b9,_0x4d7d91);},'rOPlB':_0x66b33f(0x1e0),'ASBbZ':function(_0x359d2b,_0x2569f7){return _0x359d2b===_0x2569f7;},'RcqOb':_0x66b33f(0x1c9),'APWWU':'OwuXo','ojiNE':_0x66b33f(0x17e),'JNwnq':function(_0x3f5f71,_0x1e13fd,_0x307444){return _0x3f5f71(_0x1e13fd,_0x307444);},'zYJEG':function(_0x441d8f,_0x428d6a,_0x2af5ea,_0x1067a0,_0x1728a5,_0x391ba8){return _0x441d8f(_0x428d6a,_0x2af5ea,_0x1067a0,_0x1728a5,_0x391ba8);},'ssUYw':_0x66b33f(0x1b8),'BniAO':_0x66b33f(0x1b7),'xIRlW':_0x66b33f(0x1ed),'Pcmjx':_0x66b33f(0x1ec),'pRuLD':function(_0x2b10ed,_0x4bac90){return _0x2b10ed(_0x4bac90);},'yblsh':function(_0x5318e6,_0x2d935f){return _0x5318e6!==_0x2d935f;},'jiKWh':_0x66b33f(0x1be),'nPVkn':function(_0x488e7c,_0x26968a,_0x19b7f7,_0x4fc5ea,_0x49e066,_0x20d1e5,_0x308995,_0x421e48){return _0x488e7c(_0x26968a,_0x19b7f7,_0x4fc5ea,_0x49e066,_0x20d1e5,_0x308995,_0x421e48);},'JWLXo':'pre-check-grid-profile-empty','HfmFM':'BlpjT','TbZdP':_0x66b33f(0x101),'uERCr':_0x66b33f(0x172),'pQfns':_0x66b33f(0x11f),'bmpjx':function(_0x409be7,_0xf9378e){return _0x409be7!==_0xf9378e;},'qQRTB':'SlRzW','tinHU':_0x66b33f(0x1ae),'gShrp':function(_0x186d28,_0x22440f){return _0x186d28===_0x22440f;},'iqQRK':_0x66b33f(0x186),'kDPKz':function(_0x4c38ef,_0x3aa531,_0x148dbb,_0x5c4f54,_0x22d771,_0xca9823,_0x3202ce,_0x3a10d8){return _0x4c38ef(_0x3aa531,_0x148dbb,_0x5c4f54,_0x22d771,_0xca9823,_0x3202ce,_0x3a10d8);}};let _0x1b9d29;try{if(_0x404fcb[_0x66b33f(0x15c)](_0x404fcb['NEWBc'],_0x404fcb[_0x66b33f(0x1f7)]))_0x1096d6[_0x66b33f(0x12d)](_0x404fcb['vArQy']),_0x586b93['exit'](0x1);else{if(_0x495503[_0x66b33f(0x133)]||_0x495503['cloudProvider']||_0x495503[_0x66b33f(0x1bb)]){if(_0x404fcb['gXgme'](_0x404fcb['ZDLPY'],_0x404fcb[_0x66b33f(0x1e6)])){const _0x26f884=[];!_0x495503[_0x66b33f(0x133)]&&(_0x404fcb[_0x66b33f(0x136)](_0x404fcb[_0x66b33f(0x1dc)],_0x404fcb[_0x66b33f(0x194)])?_0x26f884[_0x66b33f(0x1aa)](_0x404fcb[_0x66b33f(0x11d)]):(_0x364701['info'](_0x66b33f(0x13f)+_0x3de78b[_0x66b33f(0x1ba)]+'\x20'),_0x39f577[_0x66b33f(0x1de)]=_0xbbb086[_0x66b33f(0x1ba)]));;if(!_0x495503[_0x66b33f(0x1de)]){if(_0x404fcb[_0x66b33f(0x142)](_0x404fcb['SHxla'],_0x404fcb['hdBjf']))_0x26f884[_0x66b33f(0x1aa)](_0x404fcb['GBGRc']);else{const _0x7f6527={};_0x7f6527[_0x66b33f(0x139)]=_0x5f067a[_0x66b33f(0xfb)],_0x7f6527[_0x66b33f(0x132)]=_0x381dde,_0x2f8b61[_0x66b33f(0x190)](_0x3065f4,_0x7f6527,_0x404fcb[_0x66b33f(0x1d3)],!![]);}};if(!_0x495503[_0x66b33f(0x1bb)]){if(_0x404fcb[_0x66b33f(0x1e1)](_0x404fcb[_0x66b33f(0x15a)],_0x404fcb[_0x66b33f(0x1cc)])){const _0x48cb77={};_0x48cb77[_0x66b33f(0x191)]=_0x404fcb['KxSOy'],_0x48cb77[_0x66b33f(0x139)]=_0x404fcb[_0x66b33f(0x135)];const _0x4310b0={};_0x4310b0['description']=_0x404fcb['IKBdf'],_0x4310b0['type']=_0x404fcb[_0x66b33f(0x135)];const _0x24cac1={};_0x24cac1[_0x66b33f(0x191)]=_0x404fcb[_0x66b33f(0x1b0)],_0x24cac1['type']=_0x404fcb[_0x66b33f(0x135)];const _0x31d993={};_0x31d993['description']=_0x404fcb[_0x66b33f(0x1ef)],_0x31d993['type']=_0x404fcb['kREuU'];const _0x1bfcca={};return _0x1bfcca[_0x66b33f(0x111)]=_0x48cb77,_0x1bfcca['cloud-provider']=_0x4310b0,_0x1bfcca['region']=_0x24cac1,_0x1bfcca[_0x66b33f(0x1b7)]=_0x31d993,_0x44cf20[_0x66b33f(0x197)](_0x3a2c4f[_0x66b33f(0x153)])['epilogue'](_0x262f07)[_0x66b33f(0x1cb)](_0x1bfcca)[_0x66b33f(0x14f)](_0x404fcb['DYGze'])[_0x66b33f(0x1ac)];}else _0x26f884[_0x66b33f(0x1aa)](_0x404fcb['cWeiL']);};_0x404fcb[_0x66b33f(0x151)](_0x26f884['length'],0x0)&&(_0x404fcb[_0x66b33f(0x1e1)](_0x404fcb[_0x66b33f(0x165)],_0x404fcb[_0x66b33f(0x165)])?(_0x1b9d29=_0x66b33f(0x1ea)+_0x26f884[_0x66b33f(0x119)](',\x20')+_0x66b33f(0x125),await _0x404fcb[_0x66b33f(0x161)](reportToGalactusAndSendToEDS,_0x495503,_0x48d2ee,_0x1b9d29,messageTypes[_0x66b33f(0x16e)],_0x404fcb[_0x66b33f(0x176)],_0x404fcb[_0x66b33f(0x163)],_0x404fcb[_0x66b33f(0x1d3)]),logger[_0x66b33f(0x12d)](_0x1b9d29),process[_0x66b33f(0x159)](0x1)):_0x2b566a=_0x377e60),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x66b33f(0x1e5)](_0x495503[_0x66b33f(0x1de)][_0x66b33f(0x1e7)]())&&(_0x404fcb[_0x66b33f(0x142)](_0x404fcb[_0x66b33f(0x11e)],_0x404fcb[_0x66b33f(0x1f5)])?(_0x1b9d29=_0x404fcb[_0x66b33f(0x162)],await _0x404fcb['GxkiH'](reportToGalactusAndSendToEDS,_0x495503,_0x48d2ee,_0x1b9d29,messageTypes[_0x66b33f(0x16e)],_0x404fcb[_0x66b33f(0x176)],_0x404fcb[_0x66b33f(0x17c)],_0x404fcb[_0x66b33f(0x1d3)]),logger['error'](_0x1b9d29),!_0x495503[_0x66b33f(0x1de)]&&(_0x404fcb[_0x66b33f(0x164)](_0x404fcb[_0x66b33f(0x179)],_0x404fcb['RcqOb'])?(logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x495503[_0x66b33f(0x1de)]=DEFAULT_CLUSTER_DETAILS[_0x66b33f(0x1ba)]):(_0x18efe1[_0x66b33f(0x14d)]('['+_0x13b3ce+_0x66b33f(0x199)+_0x299575['status']+_0x66b33f(0x1fd)+_0x8a9fd1['data']+_0x66b33f(0x1db)+_0x5b546b[_0x66b33f(0x12d)]),_0x1dde66[_0x66b33f(0x12d)]&&_0x4c2256[_0x66b33f(0x12d)](_0x66b33f(0x18d)+_0x1a3122[_0x66b33f(0x12d)][_0x66b33f(0x128)])))):_0x45bfef['push'](_0x404fcb[_0x66b33f(0x11d)])),global_registry[_0x66b33f(0x133)]=_0x495503[_0x66b33f(0x133)],global_registry[_0x66b33f(0x1de)]=_0x495503[_0x66b33f(0x1de)],global_registry[_0x66b33f(0x112)]=_0x495503['region'];}else _0x58c14c[_0x66b33f(0x12d)]('error\x20stack\x20:\x20'+_0x7921b4['error']['stack']);}else{if(_0x495503[_0x66b33f(0x117)]){if(_0x404fcb[_0x66b33f(0x142)](_0x404fcb[_0x66b33f(0x1ce)],_0x404fcb[_0x66b33f(0x1ce)]))_0xb2dc9b+=_0x66b33f(0x116)+_0x9899ea[_0x66b33f(0x133)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{global_registry[_0x66b33f(0x117)]=_0x495503['gridProfile'],logger[_0x66b33f(0x18b)](_0x66b33f(0x137)+_0x495503[_0x66b33f(0x117)]);const _0x1f109b=_0x66b33f(0x140)+AG_API_URL+_0x66b33f(0x17d),_0x3a9a51={};_0x3a9a51[_0x66b33f(0x1da)]=_0x404fcb[_0x66b33f(0x18c)],_0x3a9a51[_0x66b33f(0x15d)]=global_registry[_0x66b33f(0x13e)],_0x3a9a51[_0x66b33f(0x16b)]=![];const _0x40a2a6=_0x3a9a51,_0x3e78e5=await _0x404fcb[_0x66b33f(0x1d7)](got,_0x1f109b,_0x40a2a6),_0x2773d9=await _0x404fcb[_0x66b33f(0x1b6)](responseValidation,_0x3e78e5,_0x404fcb[_0x66b33f(0x147)],_0x404fcb[_0x66b33f(0x1f4)],_0x495503,_0x48d2ee);let _0x46199c={};if(_0x404fcb[_0x66b33f(0x164)](_0x2773d9,0xc8)){if(_0x404fcb['WNbZI'](_0x404fcb[_0x66b33f(0x14e)],_0x404fcb[_0x66b33f(0x138)])){const _0x407cfc=JSON[_0x66b33f(0x17a)](_0x3e78e5[_0x66b33f(0xfc)]),_0x44f59c=_0x407cfc[_0x66b33f(0x104)](_0x10b46a=>_0x10b46a[_0x66b33f(0x15f)]===_0x495503[_0x66b33f(0x117)])||null;_0x404fcb[_0x66b33f(0x12f)](isUndefined,_0x44f59c)?_0x404fcb[_0x66b33f(0x166)](_0x404fcb[_0x66b33f(0x182)],_0x404fcb[_0x66b33f(0x182)])?_0xa4ecb6[_0x66b33f(0x159)](0x1):(_0x1b9d29=_0x66b33f(0x113)+_0x495503[_0x66b33f(0x117)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x404fcb[_0x66b33f(0x19e)](reportToGalactusAndSendToEDS,_0x495503,_0x48d2ee,_0x1b9d29,messageTypes[_0x66b33f(0x16e)],_0x404fcb[_0x66b33f(0x176)],_0x404fcb['JWLXo'],_0x404fcb[_0x66b33f(0x1d3)]),logger[_0x66b33f(0x12d)](_0x1b9d29),process['exit'](0x1)):_0x404fcb['yblsh'](_0x404fcb['HfmFM'],_0x404fcb[_0x66b33f(0x10e)])?_0x46199c=_0x44f59c:_0x4bafbc['info'](_0x66b33f(0x1f0)+_0x523479[_0x66b33f(0x133)]+'`\x20already\x20exists');}else{const {header:_0x1c44f0,response:_0x4b8741}=_0xeea162,{status:_0x203f46,data:_0x9fb5d0,error:_0x54024b}=_0x4b8741;_0x18bbad+=_0x1c44f0+'\x20#'+_0x404fcb[_0x66b33f(0x1b3)](_0x3e39ef,0x1)+'\x0a',_0x12bda2+=_0x66b33f(0x18e)+(_0x203f46?_0x404fcb[_0x66b33f(0x1af)]:_0x404fcb['UuSEf'])+'\x0a',_0x34311c+=_0x66b33f(0x12e)+_0x404fcb[_0x66b33f(0x1b4)](_0x9fb5d0,_0x404fcb[_0x66b33f(0x12c)])+'\x0a',_0x54024b&&(_0x2518c7+=_0x404fcb['ViHCW'],_0x2c5664+=_0x66b33f(0x168)+(_0x54024b['message']||_0x404fcb[_0x66b33f(0x12c)])+'\x0a',_0x790784+=_0x66b33f(0x11a)+(_0x54024b[_0x66b33f(0x141)]||_0x404fcb['jzVPY'])+'\x0a',_0x5ae94a+=_0x66b33f(0x1a9)+(_0x54024b[_0x66b33f(0x128)]||_0x404fcb[_0x66b33f(0x12c)])+'\x0a'),_0x148bcb+='\x0a\x0a';}}else _0x404fcb[_0x66b33f(0x136)](_0x404fcb[_0x66b33f(0x1f1)],_0x404fcb[_0x66b33f(0x1f1)])?(_0x28235e+=_0x404fcb['ViHCW'],_0x55469b+=_0x66b33f(0x168)+(_0x4b7853[_0x66b33f(0x132)]||_0x404fcb[_0x66b33f(0x12c)])+'\x0a',_0x8fb0c7+='\x20\x20Code:\x20'+(_0x1b9f2a[_0x66b33f(0x141)]||_0x404fcb['jzVPY'])+'\x0a',_0x103989+='\x20\x20Stack:\x20'+(_0x469eba[_0x66b33f(0x128)]||_0x404fcb[_0x66b33f(0x12c)])+'\x0a'):process[_0x66b33f(0x159)](0x1);const _0x47483a={};_0x47483a[_0x66b33f(0x139)]=WS_EVENTS[_0x66b33f(0xfb)],_0x47483a[_0x66b33f(0x132)]=_0x404fcb[_0x66b33f(0x174)],webSocketUtils[_0x66b33f(0x190)](_0x48d2ee,_0x47483a),global_registry['cloudProvider']=_0x46199c[_0x66b33f(0x1de)],global_registry['clusterRegion']=_0x46199c[_0x66b33f(0x1bb)],global_registry[_0x66b33f(0x133)]=_0x46199c['clusterName'];}}else _0x404fcb['bmpjx'](_0x404fcb['qQRTB'],_0x404fcb['tinHU'])?(logger['error'](_0x404fcb['vArQy']),process[_0x66b33f(0x159)](0x1)):_0x2ab360[_0x66b33f(0x1aa)](_0x404fcb[_0x66b33f(0x115)]);}}}catch(_0x146675){_0x404fcb[_0x66b33f(0xfd)](_0x404fcb[_0x66b33f(0x192)],_0x404fcb[_0x66b33f(0x192)])?(_0x1b9d29=_0x66b33f(0x1d5)+_0x146675+':\x20'+_0x146675[_0x66b33f(0x128)],logger['error'](_0x1b9d29),await _0x404fcb[_0x66b33f(0x1b9)](reportToGalactusAndSendToEDS,_0x495503,_0x48d2ee,_0x1b9d29,messageTypes[_0x66b33f(0x16e)],_0x404fcb[_0x66b33f(0x176)],_0x404fcb[_0x66b33f(0x17c)],_0x404fcb['rIRkZ']),process[_0x66b33f(0x159)](0x1)):_0x2d771d+=_0x66b33f(0x116)+_0x38042d[_0x66b33f(0x133)]+'\x20'+(_0x5df80f?_0x404fcb[_0x66b33f(0x1c6)]:_0x404fcb[_0x66b33f(0x123)])+'\x0a\x0a';}}function printResponse(_0x52fe52,_0x42efa7){const _0x1c15f1=a17_0x39a44d,_0x6bd6eb={};_0x6bd6eb[_0x1c15f1(0x106)]=_0x1c15f1(0x150),_0x6bd6eb['WobBr']=function(_0x10b4e0,_0x4d1300){return _0x10b4e0===_0x4d1300;},_0x6bd6eb[_0x1c15f1(0x18f)]=_0x1c15f1(0x13d);const _0x1353b3=_0x6bd6eb;logger['info']('['+_0x52fe52+_0x1c15f1(0x199)+_0x42efa7['status']+_0x1c15f1(0x1fd)+_0x42efa7['data']+_0x1c15f1(0x1db)+_0x42efa7['error']),_0x42efa7[_0x1c15f1(0x12d)]&&(_0x1353b3[_0x1c15f1(0x19c)](_0x1353b3[_0x1c15f1(0x18f)],_0x1353b3[_0x1c15f1(0x18f)])?logger['error'](_0x1c15f1(0x18d)+_0x42efa7[_0x1c15f1(0x12d)][_0x1c15f1(0x128)]):_0x14007e[_0x1c15f1(0x1aa)](_0x1353b3['MdMJb']));}async function generateReport(_0x5ba984,_0x2400c8){const _0x4a64be=a17_0x39a44d,_0xa11fdf={'dWifj':function(_0x126155,_0x58c9cf){return _0x126155+_0x58c9cf;},'ZhuIy':_0x4a64be(0x173),'lzDkN':_0x4a64be(0x189),'yooRN':function(_0x492159,_0xe2251b){return _0x492159||_0xe2251b;},'YgYko':_0x4a64be(0x126),'IGfUd':_0x4a64be(0x157),'zDIct':_0x4a64be(0x16d),'aJrki':function(_0x22cb67,_0xff7715){return _0x22cb67!=_0xff7715;},'uRmdj':_0x4a64be(0x13c),'HPakl':_0x4a64be(0x12b),'veKLl':function(_0x1bfe76){return _0x1bfe76();}};let _0x5850aa=_0x4a64be(0x121)+global_registry[_0x4a64be(0x1de)]+_0x4a64be(0x177);return _0x5ba984[_0x4a64be(0x195)]((_0x59b12a,_0x1d3ac8)=>{const _0x407784=_0x4a64be,{header:_0xdcd46d,response:_0x1ed09e}=_0x59b12a,{status:_0x2d2ee5,data:_0x10e39c,error:_0xfef57f}=_0x1ed09e;_0x5850aa+=_0xdcd46d+'\x20#'+_0xa11fdf[_0x407784(0x16f)](_0x1d3ac8,0x1)+'\x0a',_0x5850aa+=_0x407784(0x18e)+(_0x2d2ee5?_0xa11fdf[_0x407784(0xff)]:_0xa11fdf['lzDkN'])+'\x0a',_0x5850aa+=_0x407784(0x12e)+_0xa11fdf[_0x407784(0x108)](_0x10e39c,_0xa11fdf['YgYko'])+'\x0a',_0xfef57f&&(_0x5850aa+=_0xa11fdf['IGfUd'],_0x5850aa+=_0x407784(0x168)+(_0xfef57f[_0x407784(0x132)]||_0xa11fdf[_0x407784(0x10f)])+'\x0a',_0x5850aa+='\x20\x20Code:\x20'+(_0xfef57f['code']||_0xa11fdf['YgYko'])+'\x0a',_0x5850aa+=_0x407784(0x1a9)+(_0xfef57f[_0x407784(0x128)]||_0xa11fdf[_0x407784(0x10f)])+'\x0a'),_0x5850aa+='\x0a\x0a';}),_0x5850aa+=_0xa11fdf[_0x4a64be(0x13a)],_0xa11fdf[_0x4a64be(0x185)](_0x2400c8,null)?_0x5850aa+=_0x4a64be(0x116)+global_registry['clusterName']+'\x20'+(_0x2400c8?_0xa11fdf['uRmdj']:_0xa11fdf['HPakl'])+'\x0a\x0a':_0x5850aa+=_0x4a64be(0x116)+global_registry[_0x4a64be(0x133)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x5850aa+=_0xa11fdf['veKLl'](getSystemMetaData),_0x5850aa;};exports[a17_0x39a44d(0x1eb)]=async function(_0x52c9c6){const _0x5820a8=a17_0x39a44d,_0x527b09={'DtTxJ':function(_0x1e6816){return _0x1e6816();},'BDvVm':function(_0x475d68){return _0x475d68();},'iYtMg':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','jgcbS':function(_0x2ccda2,_0x2980fa,_0x32a899,_0x25aa92,_0x3eb166,_0x5224f3,_0x1add08,_0x5c581f){return _0x2ccda2(_0x2980fa,_0x32a899,_0x25aa92,_0x3eb166,_0x5224f3,_0x1add08,_0x5c581f);},'DtFvv':_0x5820a8(0x160),'yzcNb':_0x5820a8(0x16c),'oMVPo':_0x5820a8(0x12d),'abOsp':function(_0x4ffd87,_0x1f955d,_0x28cef5,_0x275202,_0x4e5643,_0x378767,_0x48659b){return _0x4ffd87(_0x1f955d,_0x28cef5,_0x275202,_0x4e5643,_0x378767,_0x48659b);},'Sgfnz':_0x5820a8(0x170),'dygZW':_0x5820a8(0x1d4),'rgApx':function(_0x68a0a1,_0x3a27ae,_0x539837){return _0x68a0a1(_0x3a27ae,_0x539837);},'fBVAH':function(_0x227233,_0x1cc0ee,_0x359e2f){return _0x227233(_0x1cc0ee,_0x359e2f);},'vgoEa':function(_0x4e4c4c,_0x143f5d,_0x445f22,_0x56ff57,_0x11f167,_0x59ebc7,_0x2d970c){return _0x4e4c4c(_0x143f5d,_0x445f22,_0x56ff57,_0x11f167,_0x59ebc7,_0x2d970c);},'xyrlD':_0x5820a8(0x12a),'fQDUz':'toolInstalledResp','ltZGu':'2|1|0|3|4','pRTxx':function(_0x491d34,_0x58ca46,_0xc4e45c,_0x553e5f,_0x4f64e2,_0x2e7196,_0x51ad0c,_0x4cccc6){return _0x491d34(_0x58ca46,_0xc4e45c,_0x553e5f,_0x4f64e2,_0x2e7196,_0x51ad0c,_0x4cccc6);},'ByTRL':function(_0x47900f,_0x56eb75,_0x1166bf){return _0x47900f(_0x56eb75,_0x1166bf);},'CBxqF':_0x5820a8(0x1e9),'wUGbL':function(_0x3610aa){return _0x3610aa();},'Ivndh':'isTrialGridAccessible','smdCj':function(_0x37c0cd,_0x3523ed){return _0x37c0cd(_0x3523ed);},'SyOyf':'TLSv1_2_client_method','GBznM':function(_0x37212c,_0x5e5fa3,_0x189284){return _0x37212c(_0x5e5fa3,_0x189284);},'MqNai':_0x5820a8(0x1b1),'ScLCP':_0x5820a8(0x1a3),'jkZUW':_0x5820a8(0x114),'LFpqV':_0x5820a8(0x1cf),'ihJim':_0x5820a8(0xf9),'kAnpk':function(_0x39fecb,_0x5b5b86){return _0x39fecb+_0x5b5b86;},'UKMZX':'utf-8','lBbku':function(_0x4612c4,_0x6f2e9f,_0x4583b7,_0x2e9060,_0x172372,_0x5bb644,_0x27eca0){return _0x4612c4(_0x6f2e9f,_0x4583b7,_0x2e9060,_0x172372,_0x5bb644,_0x27eca0);},'lYBpr':_0x5820a8(0x1c8)};let _0x8b1f7a,_0xdad396;try{global_registry[_0x5820a8(0x129)]=_0x527b09[_0x5820a8(0x1b5)](uuidv4);!fs[_0x5820a8(0x102)](_0x527b09['BDvVm'](getCredentialsPath))&&(_0xdad396=_0x527b09[_0x5820a8(0x146)],logger[_0x5820a8(0x12d)](_0xdad396),await _0x527b09['jgcbS'](reportToGalactusAndSendToEDS,_0x52c9c6,_0x8b1f7a,_0xdad396,messageTypes['ERROR'],_0x527b09[_0x5820a8(0x1ee)],_0x527b09[_0x5820a8(0x19d)],_0x527b09[_0x5820a8(0x1c4)]),process[_0x5820a8(0x159)](0x1));_0x527b09[_0x5820a8(0x180)](sendInstrumentationEvent,_0x52c9c6,_0x527b09['DtFvv'],messageTypes[_0x5820a8(0x184)],null,null,_0x52c9c6);const _0x2310da=JSON[_0x5820a8(0x17a)](fs[_0x5820a8(0x1f8)](_0x527b09['BDvVm'](getCredentialsPath)));global_registry['bstackUsername']=_0x2310da[_0x5820a8(0x10b)][_0x5820a8(0x1fb)],global_registry[_0x5820a8(0x1f9)]=_0x2310da[_0x5820a8(0x10b)][_0x5820a8(0x1a6)];const _0x39064d=WS_ENDPOINT[_0x5820a8(0x178)](_0x527b09[_0x5820a8(0x14a)],_0x2310da[_0x5820a8(0x10b)][_0x5820a8(0x1fb)])[_0x5820a8(0x178)](_0x527b09['dygZW'],_0x2310da[_0x5820a8(0x10b)]['password']),_0x1ae538={};_0x1ae538[_0x5820a8(0x1e2)]=ws,_0x1ae538[_0x5820a8(0x148)]=0x36ee80,_0x8b1f7a=new ReconnectingWebSocket(_0x39064d,[],_0x1ae538),global_registry[_0x5820a8(0x13e)]=_0x527b09[_0x5820a8(0x1ca)](getAuthHeader,global_registry[_0x5820a8(0x15e)],global_registry[_0x5820a8(0x1f9)]),await _0x527b09[_0x5820a8(0x1e3)](inputValidation,_0x52c9c6,_0x8b1f7a),logger['info'](_0x5820a8(0x1f6)+global_registry[_0x5820a8(0x1de)]+_0x5820a8(0x122)+global_registry[_0x5820a8(0x112)]);let _0x43d9e4=await _0x527b09[_0x5820a8(0x1c3)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x5820a8(0x133)],_0x527b09[_0x5820a8(0x109)],_0x8b1f7a,webSocketUtils,_0x52c9c6);const _0x467452=await _0x43d9e4[_0x5820a8(0x10d)]();_0x527b09[_0x5820a8(0x1e3)](printResponse,_0x527b09[_0x5820a8(0x167)],_0x467452),_0x43d9e4=await _0x43d9e4[_0x5820a8(0x1d0)]();let _0x50e76e=![];try{_0x50e76e=await _0x43d9e4['isClusterPresent']();}catch(_0xb9a97e){const _0x2fe203=_0x527b09[_0x5820a8(0x1a0)][_0x5820a8(0x181)]('|');let _0x4a8a6f=0x0;while(!![]){switch(_0x2fe203[_0x4a8a6f++]){case'0':logger[_0x5820a8(0x12d)](_0xdad396);continue;case'1':_0x50e76e=null;continue;case'2':_0xdad396='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry[_0x5820a8(0x133)]+_0x5820a8(0x19a)+global_registry['clusterRegion']+_0x5820a8(0x19b)+_0xb9a97e;continue;case'3':_0xdad396+='\x0a'+JSON[_0x5820a8(0x17f)](_0xb9a97e['stack']);continue;case'4':await _0x527b09[_0x5820a8(0x14b)](reportToGalactusAndSendToEDS,_0x52c9c6,_0x8b1f7a,_0xdad396,messageTypes[_0x5820a8(0x16e)],_0x527b09['DtFvv'],_0x5820a8(0x1c0)+global_registry['cloudProvider'],_0x527b09[_0x5820a8(0x1c4)]);continue;}break;}}_0x50e76e&&logger[_0x5820a8(0x14d)]('Cluster\x20`'+global_registry[_0x5820a8(0x133)]+_0x5820a8(0x1f3));const _0x107d2f=await _0x43d9e4['checkAccess']();_0x527b09[_0x5820a8(0x17b)](printResponse,_0x527b09[_0x5820a8(0x1bc)],_0x107d2f);const _0x32cac8=await _0x527b09[_0x5820a8(0x1a1)](curlRequest);_0x527b09['ByTRL'](printResponse,_0x527b09[_0x5820a8(0x149)],_0x32cac8);const _0xe7100e=await _0x527b09[_0x5820a8(0x120)](isTlsSupported,_0x527b09[_0x5820a8(0x183)]);_0x527b09['GBznM'](printResponse,_0x527b09[_0x5820a8(0x1fc)],_0xe7100e);const _0x2ca58a={};_0x2ca58a[_0x5820a8(0x156)]=_0x527b09[_0x5820a8(0x175)],_0x2ca58a[_0x5820a8(0x187)]=_0x467452;const _0x5aa550={};_0x5aa550[_0x5820a8(0x156)]=_0x527b09[_0x5820a8(0x1d1)],_0x5aa550[_0x5820a8(0x187)]=_0x107d2f;const _0x5ecf25={};_0x5ecf25['header']=_0x527b09[_0x5820a8(0x143)],_0x5ecf25[_0x5820a8(0x187)]=_0x32cac8;const _0xded896={};_0xded896['header']=_0x527b09[_0x5820a8(0x118)],_0xded896['response']=_0xe7100e;const _0xcb8cb7=[_0x2ca58a,_0x5aa550,_0x5ecf25,_0xded896],_0x3c4937=await _0x527b09[_0x5820a8(0x17b)](generateReport,_0xcb8cb7,_0x50e76e),_0x11d3b0=new Date(),_0x48cadb=_0x11d3b0['getUTCFullYear']()+'_'+_0x527b09[_0x5820a8(0x1f2)](_0x11d3b0[_0x5820a8(0x1a5)](),0x1)+'_'+_0x11d3b0[_0x5820a8(0x10a)]()+'_'+_0x11d3b0['getUTCHours']()+'_'+_0x11d3b0['getUTCMinutes'](),_0x24a205=_0x5820a8(0x107)+_0x48cadb+_0x5820a8(0x103);fs[_0x5820a8(0x105)](_0x24a205,_0x3c4937,_0x527b09[_0x5820a8(0x130)]),logger['info'](_0x5820a8(0x1a7)+_0x24a205),process[_0x5820a8(0x159)](0x0);}catch(_0x2238f8){let _0x468910=_0x5820a8(0x1cd)+_0x2238f8+'\x20';logger[_0x5820a8(0x12d)](_0x468910),_0x468910+='\x0a'+JSON[_0x5820a8(0x17f)](_0x2238f8['stack']),logger[_0x5820a8(0x18b)]('stack\x20trace\x20'+_0x2238f8['stack']);if(_0x8b1f7a){const _0x202fdc={};_0x202fdc[_0x5820a8(0x139)]=WS_EVENTS['LOG'],_0x202fdc[_0x5820a8(0x132)]=_0x468910,webSocketUtils[_0x5820a8(0x190)](_0x8b1f7a,_0x202fdc,_0x527b09[_0x5820a8(0x1c4)],!![]);}await webSocketUtils[_0x5820a8(0x124)](0x7d0);const _0x40800e={};_0x40800e[_0x5820a8(0x12d)]=_0x468910,await _0x527b09[_0x5820a8(0xfe)](sendInstrumentationEvent,_0x52c9c6,_0x527b09[_0x5820a8(0x1ee)],messageTypes[_0x5820a8(0x16e)],_0x527b09[_0x5820a8(0x1a8)],_0x40800e,_0x52c9c6),process[_0x5820a8(0x159)](0x1);}};
1
+ function a17_0x2f66(_0x68c8bc,_0x2e0024){const _0x33ce5f=a17_0x33ce();return a17_0x2f66=function(_0x2f66da,_0x4d3a7a){_0x2f66da=_0x2f66da-0x18d;let _0x1da5a4=_0x33ce5f[_0x2f66da];return _0x1da5a4;},a17_0x2f66(_0x68c8bc,_0x2e0024);}function a17_0x33ce(){const _0x42dfaa=['OinXM','bSRtv','xYsuS','name','.\x20Please\x20provide\x20all\x20required\x20arguments.','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','region','agpUz','OqFnS','WOzYc','stack\x20trace\x20','WXTqC','log/report_','https://','vKemF','fFXUY','zZnwy','Whitelisted\x20browserstack','../../utils/instrumentationUtils','type','Error\x20Details:\x0a','../../config/logger','username','exit','cloud-provider-not-supported','TEdXa','XSVIf','handler','TWAtw','Sottd','replace','pre-check-grid-called','BBJJz','wTarR','cluster-check-failed-','cloud-provider','qvgNK','uoqqg','rdGxD','cluster-name','error\x20stack\x20:\x20','clusterName','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','YVUkT','yehtP','stringify','body','ZTbhf','requestId','OWLjp','uabNZ','pLNVh','header','response','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','<UsernamePlaceholder>','getUTCMonth','info','throwHttpErrors','mhFgf','IlyyE','pre_check','WJPmg','getUTCFullYear','eMLNQ','8943660pJfSKP','data','QklnW','ZKSmZ','Tool\x20Installed','hFuQq','vWLbd','lDtFJ','`\x20is\x20present\x20in\x20region\x20`','NJtJX','gridProfile','suwez','CLOUD_PROVIDER','method','clusterRegion','HJseP','NcUXD','pFQLX','lpyzI','3582837lXIRBL','ZsVvX','init','.txt','PotqK','===\x20Precheck\x20Report\x20-\x20','jJHQB','toolInstalledResp','dHZKv','oBfGh','fjbdD','kgUSt','string','QRpyT','ZGKHH','../../utils/webSocketUtils','nxtdI','OEDeY','GET','existsSync','command','parse','accessResp','push','options','DMoVV','isClusterPresent','PJajj','Failure','Grid\x20profile\x20fetched\x20for\x20pre-check','credential-not-found','`\x20already\x20exists','Invalid\x20input.\x20grid\x20profiles:\x20','message','Browserstack','connectionTimeout','cEdFL','length','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','stack','VhdLe','Setting\x20cloud\x20provider\x20as\x20','\x20error\x20:\x20','TLSv1_2_client_method','2756932yLMIKV','split','../../utils/utilityMethods','2890324MkHUzz','eLlPD','qzrZw','oCeJq','KNuSB','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','grid','Status:\x20','Message:\x20','reconnecting-websocket','lsOtF','\x20\x20Stack:\x20','readFileSync','Missing\x20required\x20arguments:\x20','kDLzr','ZmmBb','bNOUv','yLQtj','`\x20,error\x20:\x20','delay','desc','isTls1_2_SUPPORTED','AUQot','VGhMM','forEach','wZyMS','tsTLe','pre-check-cluster-args-not-passed','Cluster\x20','vKsEx','find','bstackAccesskey','code','pre-check','AfoNu','VRGtP','zZxtg','usage','description','\x20data\x20:\x20','grid\x20profile\x20flow\x20','HXdiO','LPdFV','oPkls','iQcjo','WaFng','0|4|3|1|2','hisgN','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','getUTCHours','is\x20already\x20present','help','1451787FWnYNI','epilogue','AQglj','GSlQf','debug','1308066BTyHNl','pEjQW','nXPZE','pre-check-failed','NNuSC','argft','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','XLAat','Tbrdo','cHhFv','aLBWh','pkzrQ','QNeYo','\x20\x20Message:\x20','grid-profile','TEaAD','mIGZd','Erxjx','hMWGF','7zJYwLW','password','nBLlh','../../cloudproviders/utils','DFPKF','HKnmG','CBhaH','wewkd','tNtYA','FRNlx','Kermw','will\x20be\x20created','LOG',']\x20status\x20:\x20','bOkBc','uAKqu','aozKg','qAamm','LXxYS','\x20\x20Code:\x20','bstackUsername','Izcct','sendEventToBackend','UOzGk','argv','qlwas','Success','checkAccess','isTrialGridAccessible','tKWWd','authHeader','getUTCMinutes','\x20region\x20-\x20','Report\x20saved\x20in\x20','13127800yBvZLw','uGIWR','ERROR','N/A','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','DqMKn','got','cloudProvider','VsdSH','WebSocket','JJAhO','isCliToolInstalled','wiMog','edNlf','INFO','Failed\x20in\x20pre-check!\x20Error:\x20','builder','Cluster\x20`','GONfs','sRwGr','includes'];a17_0x33ce=function(){return _0x42dfaa;};return a17_0x33ce();}const a17_0x29a230=a17_0x2f66;(function(_0x55d49d,_0x41b10a){const _0x52548a=a17_0x2f66,_0x16b64b=_0x55d49d();while(!![]){try{const _0x10f50e=parseInt(_0x52548a(0x291))/0x1+-parseInt(_0x52548a(0x259))/0x2+parseInt(_0x52548a(0x22d))/0x3+-parseInt(_0x52548a(0x25c))/0x4+parseInt(_0x52548a(0x21a))/0x5+parseInt(_0x52548a(0x18f))/0x6*(parseInt(_0x52548a(0x1a2))/0x7)+-parseInt(_0x52548a(0x1c4))/0x8;if(_0x10f50e===_0x41b10a)break;else _0x16b64b['push'](_0x16b64b['shift']());}catch(_0x3a6bf5){_0x16b64b['push'](_0x16b64b['shift']());}}}(a17_0x33ce,0xde5c3));const fs=require('fs'),ws=require('ws'),got=require(a17_0x29a230(0x1ca)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x29a230(0x265)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x29a230(0x25b)),{logger}=require(a17_0x29a230(0x1ee)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x29a230(0x1a5)),webSocketUtils=require(a17_0x29a230(0x23c)),{sendInstrumentationEvent}=require(a17_0x29a230(0x1eb));exports[a17_0x29a230(0x241)]=a17_0x29a230(0x262),exports[a17_0x29a230(0x270)]=a17_0x29a230(0x261),exports[a17_0x29a230(0x1d4)]=function(_0x3bc60e){const _0x5b68ce=a17_0x29a230,_0xec0622={};_0xec0622[_0x5b68ce(0x20c)]=_0x5b68ce(0x195),_0xec0622[_0x5b68ce(0x199)]=_0x5b68ce(0x239),_0xec0622[_0x5b68ce(0x1d0)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0xec0622[_0x5b68ce(0x1f3)]=_0x5b68ce(0x253),_0xec0622['AHpvO']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0xec0622[_0x5b68ce(0x193)]=_0x5b68ce(0x290);const _0x11c09e=_0xec0622,_0x23920a={};_0x23920a[_0x5b68ce(0x282)]=_0x11c09e[_0x5b68ce(0x20c)],_0x23920a[_0x5b68ce(0x1ec)]=_0x11c09e[_0x5b68ce(0x199)];const _0x5a822b={};_0x5a822b[_0x5b68ce(0x282)]=_0x11c09e[_0x5b68ce(0x1d0)],_0x5a822b[_0x5b68ce(0x1ec)]=_0x11c09e['aLBWh'];const _0x123649={};_0x123649[_0x5b68ce(0x282)]=_0x11c09e[_0x5b68ce(0x1f3)],_0x123649[_0x5b68ce(0x1ec)]=_0x11c09e['aLBWh'];const _0xaa85e4={};_0xaa85e4[_0x5b68ce(0x282)]=_0x11c09e['AHpvO'],_0xaa85e4[_0x5b68ce(0x1ec)]=_0x11c09e[_0x5b68ce(0x199)];const _0x14f29d={};return _0x14f29d[_0x5b68ce(0x200)]=_0x23920a,_0x14f29d['cloud-provider']=_0x5a822b,_0x14f29d['region']=_0x123649,_0x14f29d[_0x5b68ce(0x19d)]=_0xaa85e4,_0x3bc60e[_0x5b68ce(0x281)](HELP_HEADER_MESSAGE[_0x5b68ce(0x216)])[_0x5b68ce(0x292)](HELP_FOOTER_MESSAGE)[_0x5b68ce(0x245)](_0x14f29d)[_0x5b68ce(0x290)](_0x11c09e[_0x5b68ce(0x193)])[_0x5b68ce(0x1ba)];};async function inputValidation(_0x48a872,_0x36c542){const _0x5bf44c=a17_0x29a230,_0x7eebab={'oBfGh':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','dHZKv':'string','VhdLe':_0x5bf44c(0x203),'iQcjo':_0x5bf44c(0x253),'BBJJz':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','kyYjw':_0x5bf44c(0x290),'KgBLC':'Error\x20Details:\x0a','Sottd':_0x5bf44c(0x1c7),'aCqpK':_0x5bf44c(0x28f),'YVUkT':_0x5bf44c(0x1ad),'QNeYo':_0x5bf44c(0x200),'oPkls':'error','ZTbhf':_0x5bf44c(0x1df),'edNlf':_0x5bf44c(0x1fc),'uabNZ':_0x5bf44c(0x1c8),'fjbdD':function(_0x481460,_0x15e8d2){return _0x481460!==_0x15e8d2;},'XLAat':'WOdIz','OqFnS':_0x5bf44c(0x229),'abfgW':'etnca','qXJkw':_0x5bf44c(0x22a),'VGhMM':function(_0xbcf3e,_0x41680c){return _0xbcf3e===_0x41680c;},'DqMKn':_0x5bf44c(0x198),'Izcct':_0x5bf44c(0x279),'AQglj':_0x5bf44c(0x217),'Kermw':_0x5bf44c(0x191),'suwez':'wsFdp','LnaZa':_0x5bf44c(0x1ff),'VRGtP':function(_0x514017,_0x3bc453){return _0x514017>_0x3bc453;},'lDtFJ':function(_0x238ced,_0x50e06d){return _0x238ced!==_0x50e06d;},'qatJd':'pbrNr','QklnW':function(_0x5f480a,_0x19649d,_0x433163,_0x1d10fe,_0x5f0cee,_0x52dbbf,_0x145f01,_0x27d967){return _0x5f480a(_0x19649d,_0x433163,_0x1d10fe,_0x5f0cee,_0x52dbbf,_0x145f01,_0x27d967);},'lsOtF':_0x5bf44c(0x1f8),'GSlQf':_0x5bf44c(0x277),'VsdSH':_0x5bf44c(0x246),'qvgNK':_0x5bf44c(0x1a4),'bOkBc':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','bNOUv':_0x5bf44c(0x1f1),'OinXM':function(_0x568db5,_0x1de972){return _0x568db5===_0x1de972;},'vcLmT':_0x5bf44c(0x20a),'cEdFL':_0x5bf44c(0x1fe),'oCeJq':function(_0x5a071c,_0x106150){return _0x5a071c!==_0x106150;},'eLlPD':_0x5bf44c(0x1e7),'vIRLV':_0x5bf44c(0x23f),'bSRtv':function(_0xebb6a9,_0x2199a3,_0x26776c){return _0xebb6a9(_0x2199a3,_0x26776c);},'ieSfw':function(_0x677022,_0x454584,_0x451b36,_0xbcda2c,_0x530572,_0x57e094){return _0x677022(_0x454584,_0x451b36,_0xbcda2c,_0x530572,_0x57e094);},'fFXUY':_0x5bf44c(0x27d),'wZyMS':_0x5bf44c(0x19d),'Erxjx':'iAnFM','UOzGk':function(_0x16a101,_0x176564){return _0x16a101(_0x176564);},'pEjQW':function(_0x5de0e0,_0x54ba8d){return _0x5de0e0===_0x54ba8d;},'wTarR':_0x5bf44c(0x1d7),'hMWGF':_0x5bf44c(0x1b3),'HqHce':'pre-check-grid-profile-empty','AjnVQ':'ItzUV','ZmmBb':_0x5bf44c(0x26d),'jJHQB':_0x5bf44c(0x22b),'ZsVvX':_0x5bf44c(0x24a),'aozKg':_0x5bf44c(0x1aa),'uAKqu':_0x5bf44c(0x19f),'kDLzr':_0x5bf44c(0x1a8),'FRNlx':_0x5bf44c(0x238),'AUQot':function(_0x4dce31,_0x4d3473,_0x56850e,_0x25b0ed,_0x3fc906,_0x2e4c29,_0xd5020f,_0x3dfe96){return _0x4dce31(_0x4d3473,_0x56850e,_0x25b0ed,_0x3fc906,_0x2e4c29,_0xd5020f,_0x3dfe96);}};let _0x34d680;try{if(_0x7eebab['fjbdD'](_0x7eebab[_0x5bf44c(0x196)],_0x7eebab[_0x5bf44c(0x1e1)])){if(_0x48a872[_0x5bf44c(0x202)]||_0x48a872[_0x5bf44c(0x1cb)]||_0x48a872[_0x5bf44c(0x1df)]){if(_0x7eebab['fjbdD'](_0x7eebab['abfgW'],_0x7eebab['qXJkw'])){const _0x50796a=[];!_0x48a872[_0x5bf44c(0x202)]&&(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x1c9)],_0x7eebab[_0x5bf44c(0x1b7)])?(_0x496767[_0x5bf44c(0x212)]('['+_0x77aa9d+_0x5bf44c(0x1af)+_0x47c38a['status']+'\x20data\x20:\x20'+_0x3aa31b[_0x5bf44c(0x21b)]+_0x5bf44c(0x257)+_0x5da84e[_0x5bf44c(0x28d)]),_0x532fb2[_0x5bf44c(0x28d)]&&_0x4d1e1b[_0x5bf44c(0x28d)](_0x5bf44c(0x201)+_0xcf545a[_0x5bf44c(0x28d)][_0x5bf44c(0x254)])):_0x50796a[_0x5bf44c(0x244)](_0x7eebab[_0x5bf44c(0x19b)]));;if(!_0x48a872['cloudProvider']){if(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x293)],_0x7eebab[_0x5bf44c(0x1ac)])){const _0x45abfe={};_0x45abfe['description']=_0x7eebab[_0x5bf44c(0x236)],_0x45abfe[_0x5bf44c(0x1ec)]=_0x7eebab['dHZKv'];const _0x2384a6={};_0x2384a6[_0x5bf44c(0x282)]=_0x7eebab[_0x5bf44c(0x255)],_0x2384a6[_0x5bf44c(0x1ec)]=_0x7eebab[_0x5bf44c(0x235)];const _0x1b9271={};_0x1b9271[_0x5bf44c(0x282)]=_0x7eebab[_0x5bf44c(0x288)],_0x1b9271['type']=_0x7eebab[_0x5bf44c(0x235)];const _0x3a3cb2={};_0x3a3cb2[_0x5bf44c(0x282)]=_0x7eebab[_0x5bf44c(0x1f9)],_0x3a3cb2[_0x5bf44c(0x1ec)]=_0x7eebab[_0x5bf44c(0x235)];const _0x4dcc8d={};return _0x4dcc8d[_0x5bf44c(0x200)]=_0x45abfe,_0x4dcc8d[_0x5bf44c(0x1fc)]=_0x2384a6,_0x4dcc8d[_0x5bf44c(0x1df)]=_0x1b9271,_0x4dcc8d[_0x5bf44c(0x19d)]=_0x3a3cb2,_0x4f94b6['usage'](_0x3c2789['pre_check'])[_0x5bf44c(0x292)](_0x5c3d01)['options'](_0x4dcc8d)[_0x5bf44c(0x290)](_0x7eebab['kyYjw'])[_0x5bf44c(0x1ba)];}else _0x50796a['push'](_0x7eebab[_0x5bf44c(0x1d1)]);};!_0x48a872[_0x5bf44c(0x1df)]&&(_0x7eebab[_0x5bf44c(0x237)](_0x7eebab[_0x5bf44c(0x225)],_0x7eebab['LnaZa'])?_0x50796a[_0x5bf44c(0x244)](_0x7eebab['ZTbhf']):_0x306dcf[_0x5bf44c(0x212)]('Cluster\x20`'+_0x3bdbba['clusterName']+'`\x20already\x20exists'));;_0x7eebab[_0x5bf44c(0x27f)](_0x50796a[_0x5bf44c(0x252)],0x0)&&(_0x7eebab[_0x5bf44c(0x221)](_0x7eebab['qatJd'],_0x7eebab['qatJd'])?_0x20dff5[_0x5bf44c(0x1f0)](0x1):(_0x34d680=_0x5bf44c(0x269)+_0x50796a['join'](',\x20')+_0x5bf44c(0x1dd),await _0x7eebab[_0x5bf44c(0x21c)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab[_0x5bf44c(0x18d)],_0x7eebab[_0x5bf44c(0x287)]),logger[_0x5bf44c(0x28d)](_0x34d680),process[_0x5bf44c(0x1f0)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x5bf44c(0x1d8)](_0x48a872[_0x5bf44c(0x1cb)]['toLowerCase']())&&(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x1cc)],_0x7eebab[_0x5bf44c(0x1fd)])?_0x1f2ec4[_0x5bf44c(0x28d)]('error\x20stack\x20:\x20'+_0x5626d6[_0x5bf44c(0x28d)]['stack']):(_0x34d680=_0x7eebab[_0x5bf44c(0x1b0)],await _0x7eebab[_0x5bf44c(0x21c)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab[_0x5bf44c(0x26c)],_0x7eebab['oPkls']),logger[_0x5bf44c(0x28d)](_0x34d680),!_0x48a872['cloudProvider']&&(_0x7eebab[_0x5bf44c(0x1d9)](_0x7eebab['vcLmT'],_0x7eebab[_0x5bf44c(0x251)])?(_0x54edca+=_0x7eebab['KgBLC'],_0x30b17d+=_0x5bf44c(0x19c)+(_0x32b83f['message']||_0x7eebab[_0x5bf44c(0x1f6)])+'\x0a',_0x144891+='\x20\x20Code:\x20'+(_0x4378c4[_0x5bf44c(0x27c)]||_0x7eebab[_0x5bf44c(0x1f6)])+'\x0a',_0x2e2d5f+=_0x5bf44c(0x267)+(_0x5bded1[_0x5bf44c(0x254)]||_0x7eebab[_0x5bf44c(0x1f6)])+'\x0a'):(logger[_0x5bf44c(0x212)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x48a872[_0x5bf44c(0x1cb)]=DEFAULT_CLUSTER_DETAILS[_0x5bf44c(0x226)])))),global_registry['clusterName']=_0x48a872[_0x5bf44c(0x202)],global_registry[_0x5bf44c(0x1cb)]=_0x48a872[_0x5bf44c(0x1cb)],global_registry[_0x5bf44c(0x228)]=_0x48a872['region'];}else _0x13f512[_0x5bf44c(0x212)](_0x5bf44c(0x256)+_0x2bb1ea[_0x5bf44c(0x226)]+'\x20'),_0x2dbcc3[_0x5bf44c(0x1cb)]=_0x115228[_0x5bf44c(0x226)];}else{if(_0x48a872['gridProfile']){if(_0x7eebab['oCeJq'](_0x7eebab[_0x5bf44c(0x25d)],_0x7eebab[_0x5bf44c(0x25d)]))_0x5c7f26+='Cluster\x20'+_0x29f470[_0x5bf44c(0x202)]+_0x5bf44c(0x1de);else{global_registry[_0x5bf44c(0x224)]=_0x48a872[_0x5bf44c(0x224)],logger[_0x5bf44c(0x18e)](_0x5bf44c(0x284)+_0x48a872[_0x5bf44c(0x224)]);const _0x4bce8b=_0x5bf44c(0x1e6)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x142af8={};_0x142af8[_0x5bf44c(0x227)]=_0x7eebab['vIRLV'],_0x142af8['headers']=global_registry[_0x5bf44c(0x1c0)],_0x142af8[_0x5bf44c(0x213)]=![];const _0x3fec8b=_0x142af8,_0x3b67ad=await _0x7eebab[_0x5bf44c(0x1da)](got,_0x4bce8b,_0x3fec8b),_0x76d67e=await _0x7eebab['ieSfw'](responseValidation,_0x3b67ad,_0x7eebab[_0x5bf44c(0x1e8)],_0x7eebab[_0x5bf44c(0x275)],_0x48a872,_0x36c542);let _0x2b459d={};if(_0x7eebab[_0x5bf44c(0x1d9)](_0x76d67e,0xc8)){if(_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x1a0)],_0x7eebab[_0x5bf44c(0x1a0)])){const _0x5e844a=JSON[_0x5bf44c(0x242)](_0x3b67ad[_0x5bf44c(0x207)]),_0x168f17=_0x5e844a[_0x5bf44c(0x27a)](_0x186cce=>_0x186cce[_0x5bf44c(0x1dc)]===_0x48a872[_0x5bf44c(0x224)])||null;_0x7eebab[_0x5bf44c(0x1b9)](isUndefined,_0x168f17)?_0x7eebab[_0x5bf44c(0x190)](_0x7eebab[_0x5bf44c(0x1fa)],_0x7eebab[_0x5bf44c(0x1a1)])?_0x4219cb+=_0x5bf44c(0x278)+_0x349556[_0x5bf44c(0x202)]+'\x20'+(_0x48a1d6?_0x7eebab['aCqpK']:_0x7eebab[_0x5bf44c(0x204)])+'\x0a\x0a':(_0x34d680=_0x5bf44c(0x24d)+_0x48a872[_0x5bf44c(0x224)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x7eebab[_0x5bf44c(0x21c)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab['HqHce'],_0x7eebab[_0x5bf44c(0x287)]),logger[_0x5bf44c(0x28d)](_0x34d680),process[_0x5bf44c(0x1f0)](0x1)):_0x7eebab[_0x5bf44c(0x221)](_0x7eebab['AjnVQ'],_0x7eebab[_0x5bf44c(0x26b)])?_0x2b459d=_0x168f17:_0x4e4d10=_0x4844f2;}else _0x42e64d['push'](_0x7eebab[_0x5bf44c(0x19b)]);}else{if(_0x7eebab[_0x5bf44c(0x1d9)](_0x7eebab[_0x5bf44c(0x233)],_0x7eebab[_0x5bf44c(0x233)]))process['exit'](0x1);else{const _0x24f0ce={};_0x24f0ce[_0x5bf44c(0x1ec)]=_0x407b4f['LOG'],_0x24f0ce['message']=_0x18dc13,_0x3f5000[_0x5bf44c(0x1b8)](_0x5ce005,_0x24f0ce,_0x7eebab['oPkls'],!![]);}}const _0x5af3bb={};_0x5af3bb[_0x5bf44c(0x1ec)]=WS_EVENTS[_0x5bf44c(0x1ae)],_0x5af3bb[_0x5bf44c(0x24e)]=_0x7eebab[_0x5bf44c(0x22e)],webSocketUtils[_0x5bf44c(0x1b8)](_0x36c542,_0x5af3bb),global_registry['cloudProvider']=_0x2b459d[_0x5bf44c(0x1cb)],global_registry['clusterRegion']=_0x2b459d[_0x5bf44c(0x1df)],global_registry['clusterName']=_0x2b459d[_0x5bf44c(0x202)];}}else _0x7eebab[_0x5bf44c(0x25f)](_0x7eebab[_0x5bf44c(0x1b2)],_0x7eebab[_0x5bf44c(0x1b1)])?(logger[_0x5bf44c(0x28d)](_0x7eebab[_0x5bf44c(0x20b)]),process[_0x5bf44c(0x1f0)](0x1)):_0x59435d[_0x5bf44c(0x244)](_0x7eebab[_0x5bf44c(0x208)]);}}else _0x36ee34[_0x5bf44c(0x244)](_0x7eebab['edNlf']);}catch(_0x4d520b){_0x7eebab[_0x5bf44c(0x273)](_0x7eebab[_0x5bf44c(0x26a)],_0x7eebab[_0x5bf44c(0x1ab)])?(_0x3ce95e[_0x5bf44c(0x28d)](_0x7eebab[_0x5bf44c(0x20b)]),_0x1378a5[_0x5bf44c(0x1f0)](0x1)):(_0x34d680=_0x5bf44c(0x20f)+_0x4d520b+':\x20'+_0x4d520b[_0x5bf44c(0x254)],logger[_0x5bf44c(0x28d)](_0x34d680),await _0x7eebab[_0x5bf44c(0x272)](reportToGalactusAndSendToEDS,_0x48a872,_0x36c542,_0x34d680,messageTypes[_0x5bf44c(0x1c6)],_0x7eebab[_0x5bf44c(0x266)],_0x7eebab[_0x5bf44c(0x26c)],_0x7eebab[_0x5bf44c(0x287)]),process['exit'](0x1));}}function printResponse(_0x49c816,_0x2ff2f4){const _0x50cfd6=a17_0x29a230,_0x233cff={};_0x233cff[_0x50cfd6(0x1a7)]=function(_0x12d096,_0x3f2859){return _0x12d096+_0x3f2859;},_0x233cff[_0x50cfd6(0x197)]=_0x50cfd6(0x1bc),_0x233cff['ZKSmZ']=_0x50cfd6(0x249),_0x233cff['DFPKF']=function(_0x5455fa,_0x14e1aa){return _0x5455fa||_0x14e1aa;},_0x233cff[_0x50cfd6(0x25e)]=_0x50cfd6(0x1c7),_0x233cff[_0x50cfd6(0x1ce)]=_0x50cfd6(0x1ed),_0x233cff[_0x50cfd6(0x280)]=function(_0x59702f,_0x461af8){return _0x59702f!==_0x461af8;},_0x233cff[_0x50cfd6(0x276)]=_0x50cfd6(0x215);const _0x55c8a3=_0x233cff;logger[_0x50cfd6(0x212)]('['+_0x49c816+_0x50cfd6(0x1af)+_0x2ff2f4['status']+_0x50cfd6(0x283)+_0x2ff2f4[_0x50cfd6(0x21b)]+_0x50cfd6(0x257)+_0x2ff2f4['error']);if(_0x2ff2f4[_0x50cfd6(0x28d)]){if(_0x55c8a3[_0x50cfd6(0x280)](_0x55c8a3[_0x50cfd6(0x276)],_0x55c8a3[_0x50cfd6(0x276)])){const {header:_0x1d7877,response:_0x1fc10a}=_0x1c25d0,{status:_0x12d8ff,data:_0x3f50a2,error:_0x5d1ca5}=_0x1fc10a;_0x23c8d0+=_0x1d7877+'\x20#'+_0x55c8a3[_0x50cfd6(0x1a7)](_0x344041,0x1)+'\x0a',_0x432e84+=_0x50cfd6(0x263)+(_0x12d8ff?_0x55c8a3[_0x50cfd6(0x197)]:_0x55c8a3[_0x50cfd6(0x21d)])+'\x0a',_0x2e8239+=_0x50cfd6(0x264)+_0x55c8a3[_0x50cfd6(0x1a6)](_0x3f50a2,_0x55c8a3[_0x50cfd6(0x25e)])+'\x0a',_0x5d1ca5&&(_0x27ecd7+=_0x55c8a3[_0x50cfd6(0x1ce)],_0x420f1c+='\x20\x20Message:\x20'+(_0x5d1ca5[_0x50cfd6(0x24e)]||_0x55c8a3[_0x50cfd6(0x25e)])+'\x0a',_0xd168b+='\x20\x20Code:\x20'+(_0x5d1ca5[_0x50cfd6(0x27c)]||_0x55c8a3['qzrZw'])+'\x0a',_0x49b703+=_0x50cfd6(0x267)+(_0x5d1ca5[_0x50cfd6(0x254)]||_0x55c8a3['qzrZw'])+'\x0a'),_0x38853d+='\x0a\x0a';}else logger['error'](_0x50cfd6(0x201)+_0x2ff2f4['error'][_0x50cfd6(0x254)]);}}async function generateReport(_0xcec4d7,_0x12eebf){const _0x19be35=a17_0x29a230,_0x136f2a={'hFuQq':function(_0x316247,_0x1287a1){return _0x316247+_0x1287a1;},'TWAtw':_0x19be35(0x1bc),'eMLNQ':_0x19be35(0x249),'OHRIS':function(_0x4ccc81,_0x497994){return _0x4ccc81||_0x497994;},'HXdiO':_0x19be35(0x1c7),'QRpyT':'Error\x20Details:\x0a','CRLym':'Cluster\x20details\x0a-----------------------\x0a','uGIWR':function(_0x160aba,_0xdfe1f4){return _0x160aba!=_0xdfe1f4;},'WaFng':_0x19be35(0x28f),'vWLbd':_0x19be35(0x1ad),'hisgN':function(_0x55da93){return _0x55da93();}};let _0x2d8fd6=_0x19be35(0x232)+global_registry[_0x19be35(0x1cb)]+'\x20===\x0a\x0a';return _0xcec4d7[_0x19be35(0x274)]((_0x186e1a,_0x39cf04)=>{const _0x1d9083=_0x19be35,{header:_0x48a511,response:_0x4d1dce}=_0x186e1a,{status:_0xe5e7b0,data:_0xd24633,error:_0xae60dd}=_0x4d1dce;_0x2d8fd6+=_0x48a511+'\x20#'+_0x136f2a[_0x1d9083(0x21f)](_0x39cf04,0x1)+'\x0a',_0x2d8fd6+=_0x1d9083(0x263)+(_0xe5e7b0?_0x136f2a[_0x1d9083(0x1f5)]:_0x136f2a[_0x1d9083(0x219)])+'\x0a',_0x2d8fd6+=_0x1d9083(0x264)+_0x136f2a['OHRIS'](_0xd24633,_0x136f2a[_0x1d9083(0x285)])+'\x0a',_0xae60dd&&(_0x2d8fd6+=_0x136f2a[_0x1d9083(0x23a)],_0x2d8fd6+=_0x1d9083(0x19c)+(_0xae60dd['message']||_0x136f2a[_0x1d9083(0x285)])+'\x0a',_0x2d8fd6+=_0x1d9083(0x1b5)+(_0xae60dd[_0x1d9083(0x27c)]||_0x136f2a[_0x1d9083(0x285)])+'\x0a',_0x2d8fd6+='\x20\x20Stack:\x20'+(_0xae60dd[_0x1d9083(0x254)]||_0x136f2a[_0x1d9083(0x285)])+'\x0a'),_0x2d8fd6+='\x0a\x0a';}),_0x2d8fd6+=_0x136f2a['CRLym'],_0x136f2a[_0x19be35(0x1c5)](_0x12eebf,null)?_0x2d8fd6+=_0x19be35(0x278)+global_registry['clusterName']+'\x20'+(_0x12eebf?_0x136f2a[_0x19be35(0x289)]:_0x136f2a[_0x19be35(0x220)])+'\x0a\x0a':_0x2d8fd6+=_0x19be35(0x278)+global_registry[_0x19be35(0x202)]+_0x19be35(0x1de),_0x2d8fd6+=_0x136f2a[_0x19be35(0x28b)](getSystemMetaData),_0x2d8fd6;};exports[a17_0x29a230(0x1f4)]=async function(_0xeaea1d){const _0x3c834=a17_0x29a230,_0x47a2c2={'KNuSB':function(_0x283239){return _0x283239();},'TEaAD':function(_0x398398){return _0x398398();},'Ajglk':_0x3c834(0x28c),'yehtP':function(_0x5109c4,_0x1cafd7,_0x41bd4b,_0x3878f0,_0x20eac8,_0x279c0f,_0x343a8e,_0x4aef2b){return _0x5109c4(_0x1cafd7,_0x41bd4b,_0x3878f0,_0x20eac8,_0x279c0f,_0x343a8e,_0x4aef2b);},'PotqK':_0x3c834(0x1f8),'zZnwy':_0x3c834(0x24b),'wewkd':'error','argft':function(_0x2b703a,_0x316652,_0x1c2fa0,_0x2690ae,_0x1c22d7,_0xb91666,_0x11c5b4){return _0x2b703a(_0x316652,_0x1c2fa0,_0x2690ae,_0x1c22d7,_0xb91666,_0x11c5b4);},'GONfs':_0x3c834(0x210),'lpyzI':'<PasswordPlaceholder>','agpUz':function(_0x1c307d,_0x55ceaf,_0x3816d1){return _0x1c307d(_0x55ceaf,_0x3816d1);},'OEDeY':function(_0x8c4dba,_0x3529b3,_0x37a420,_0x190739,_0x488dc7,_0x383ce1,_0x8d0b40){return _0x8c4dba(_0x3529b3,_0x37a420,_0x190739,_0x488dc7,_0x383ce1,_0x8d0b40);},'ZGKHH':'dummy-grid','ApoiO':_0x3c834(0x234),'pkzrQ':_0x3c834(0x28a),'JhCSD':function(_0x104f83,_0x13948b,_0x9f33ed,_0xa1ceea,_0x4e0f36,_0x50a4b2,_0x5bae12,_0xa9d460){return _0x104f83(_0x13948b,_0x9f33ed,_0xa1ceea,_0x4e0f36,_0x50a4b2,_0x5bae12,_0xa9d460);},'nxtdI':_0x3c834(0x243),'qlwas':function(_0x1565a1){return _0x1565a1();},'LXxYS':function(_0x257a78,_0xf00bb3,_0x4bb786){return _0x257a78(_0xf00bb3,_0x4bb786);},'AfoNu':_0x3c834(0x1be),'wQFWz':function(_0x193d9d,_0x3e4924){return _0x193d9d(_0x3e4924);},'tKWWd':_0x3c834(0x258),'WXTqC':_0x3c834(0x271),'LPdFV':_0x3c834(0x21e),'TEdXa':'User\x20Access','ZkwcC':_0x3c834(0x1ea),'PJajj':'SSL\x20Configured','WOzYc':function(_0x39eee4,_0x3b4133,_0x1d051a){return _0x39eee4(_0x3b4133,_0x1d051a);},'TSxZY':function(_0x12c71b,_0x3f66da){return _0x12c71b+_0x3f66da;},'NJtJX':'utf-8','mhFgf':function(_0x139d67,_0x2b1a41,_0x48f26b,_0x499ef2,_0x134bec,_0x47a765,_0x57c9a7){return _0x139d67(_0x2b1a41,_0x48f26b,_0x499ef2,_0x134bec,_0x47a765,_0x57c9a7);},'xYsuS':_0x3c834(0x192)};let _0x1424df,_0x3cf469;try{global_registry[_0x3c834(0x209)]=_0x47a2c2[_0x3c834(0x260)](uuidv4);!fs[_0x3c834(0x240)](_0x47a2c2[_0x3c834(0x19e)](getCredentialsPath))&&(_0x3cf469=_0x47a2c2['Ajglk'],logger[_0x3c834(0x28d)](_0x3cf469),await _0x47a2c2[_0x3c834(0x205)](reportToGalactusAndSendToEDS,_0xeaea1d,_0x1424df,_0x3cf469,messageTypes[_0x3c834(0x1c6)],_0x47a2c2[_0x3c834(0x231)],_0x47a2c2[_0x3c834(0x1e9)],_0x47a2c2[_0x3c834(0x1a9)]),process[_0x3c834(0x1f0)](0x1));_0x47a2c2[_0x3c834(0x194)](sendInstrumentationEvent,_0xeaea1d,_0x47a2c2[_0x3c834(0x231)],messageTypes[_0x3c834(0x1d2)],null,null,_0xeaea1d);const _0x40fd2b=JSON['parse'](fs[_0x3c834(0x268)](_0x47a2c2[_0x3c834(0x19e)](getCredentialsPath)));global_registry[_0x3c834(0x1b6)]=_0x40fd2b[_0x3c834(0x24f)][_0x3c834(0x1ef)],global_registry[_0x3c834(0x27b)]=_0x40fd2b[_0x3c834(0x24f)][_0x3c834(0x1a3)];const _0x35e834=WS_ENDPOINT[_0x3c834(0x1f7)](_0x47a2c2[_0x3c834(0x1d6)],_0x40fd2b[_0x3c834(0x24f)][_0x3c834(0x1ef)])[_0x3c834(0x1f7)](_0x47a2c2[_0x3c834(0x22c)],_0x40fd2b[_0x3c834(0x24f)]['password']),_0x2aa260={};_0x2aa260[_0x3c834(0x1cd)]=ws,_0x2aa260[_0x3c834(0x250)]=0x36ee80,_0x1424df=new ReconnectingWebSocket(_0x35e834,[],_0x2aa260),global_registry[_0x3c834(0x1c0)]=_0x47a2c2[_0x3c834(0x1e0)](getAuthHeader,global_registry[_0x3c834(0x1b6)],global_registry['bstackAccesskey']),await _0x47a2c2['agpUz'](inputValidation,_0xeaea1d,_0x1424df),logger[_0x3c834(0x212)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x3c834(0x1cb)]+_0x3c834(0x1c2)+global_registry['clusterRegion']);let _0x2105f5=await _0x47a2c2[_0x3c834(0x23e)](getCloudProviderObjectWithOutInit,global_registry[_0x3c834(0x1cb)],global_registry['clusterName'],_0x47a2c2[_0x3c834(0x23b)],_0x1424df,webSocketUtils,_0xeaea1d);const _0x5a91cd=await _0x2105f5[_0x3c834(0x1cf)]();_0x47a2c2[_0x3c834(0x1e0)](printResponse,_0x47a2c2['ApoiO'],_0x5a91cd),_0x2105f5=await _0x2105f5[_0x3c834(0x22f)]();let _0x4a6d6d=![];try{_0x4a6d6d=await _0x2105f5[_0x3c834(0x247)]();}catch(_0x426ac1){const _0x4b45df=_0x47a2c2[_0x3c834(0x19a)][_0x3c834(0x25a)]('|');let _0x9ca3d2=0x0;while(!![]){switch(_0x4b45df[_0x9ca3d2++]){case'0':_0x3cf469='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+_0x3c834(0x222)+global_registry[_0x3c834(0x228)]+_0x3c834(0x26e)+_0x426ac1;continue;case'1':_0x3cf469+='\x0a'+JSON[_0x3c834(0x206)](_0x426ac1[_0x3c834(0x254)]);continue;case'2':await _0x47a2c2['JhCSD'](reportToGalactusAndSendToEDS,_0xeaea1d,_0x1424df,_0x3cf469,messageTypes[_0x3c834(0x1c6)],_0x47a2c2['PotqK'],_0x3c834(0x1fb)+global_registry[_0x3c834(0x1cb)],_0x47a2c2[_0x3c834(0x1a9)]);continue;case'3':logger[_0x3c834(0x28d)](_0x3cf469);continue;case'4':_0x4a6d6d=null;continue;}break;}}_0x4a6d6d&&logger[_0x3c834(0x212)](_0x3c834(0x1d5)+global_registry['clusterName']+_0x3c834(0x24c));const _0x10ac2c=await _0x2105f5[_0x3c834(0x1bd)]();_0x47a2c2[_0x3c834(0x1e0)](printResponse,_0x47a2c2[_0x3c834(0x23d)],_0x10ac2c);const _0x5f0212=await _0x47a2c2[_0x3c834(0x1bb)](curlRequest);_0x47a2c2[_0x3c834(0x1b4)](printResponse,_0x47a2c2[_0x3c834(0x27e)],_0x5f0212);const _0x3e2c36=await _0x47a2c2['wQFWz'](isTlsSupported,_0x47a2c2[_0x3c834(0x1bf)]);_0x47a2c2[_0x3c834(0x1e0)](printResponse,_0x47a2c2[_0x3c834(0x1e4)],_0x3e2c36);const _0x5412ce={};_0x5412ce[_0x3c834(0x20d)]=_0x47a2c2[_0x3c834(0x286)],_0x5412ce[_0x3c834(0x20e)]=_0x5a91cd;const _0xb56bba={};_0xb56bba[_0x3c834(0x20d)]=_0x47a2c2[_0x3c834(0x1f2)],_0xb56bba['response']=_0x10ac2c;const _0x15465a={};_0x15465a[_0x3c834(0x20d)]=_0x47a2c2['ZkwcC'],_0x15465a['response']=_0x5f0212;const _0x49d94c={};_0x49d94c[_0x3c834(0x20d)]=_0x47a2c2[_0x3c834(0x248)],_0x49d94c[_0x3c834(0x20e)]=_0x3e2c36;const _0x5a2604=[_0x5412ce,_0xb56bba,_0x15465a,_0x49d94c],_0x4e3dad=await _0x47a2c2[_0x3c834(0x1e2)](generateReport,_0x5a2604,_0x4a6d6d),_0x50e6fc=new Date(),_0x916dfe=_0x50e6fc[_0x3c834(0x218)]()+'_'+_0x47a2c2['TSxZY'](_0x50e6fc[_0x3c834(0x211)](),0x1)+'_'+_0x50e6fc['getUTCDate']()+'_'+_0x50e6fc[_0x3c834(0x28e)]()+'_'+_0x50e6fc[_0x3c834(0x1c1)](),_0x525d82=_0x3c834(0x1e5)+_0x916dfe+_0x3c834(0x230);fs['writeFileSync'](_0x525d82,_0x4e3dad,_0x47a2c2[_0x3c834(0x223)]),logger[_0x3c834(0x212)](_0x3c834(0x1c3)+_0x525d82),process['exit'](0x0);}catch(_0xd36207){let _0x38ff4a=_0x3c834(0x1d3)+_0xd36207+'\x20';logger[_0x3c834(0x28d)](_0x38ff4a),_0x38ff4a+='\x0a'+JSON[_0x3c834(0x206)](_0xd36207[_0x3c834(0x254)]),logger[_0x3c834(0x18e)](_0x3c834(0x1e3)+_0xd36207[_0x3c834(0x254)]);if(_0x1424df){const _0x3939cf={};_0x3939cf[_0x3c834(0x1ec)]=WS_EVENTS[_0x3c834(0x1ae)],_0x3939cf['message']=_0x38ff4a,webSocketUtils[_0x3c834(0x1b8)](_0x1424df,_0x3939cf,_0x47a2c2[_0x3c834(0x1a9)],!![]);}await webSocketUtils[_0x3c834(0x26f)](0x7d0);const _0x134ecb={};_0x134ecb[_0x3c834(0x28d)]=_0x38ff4a,await _0x47a2c2[_0x3c834(0x214)](sendInstrumentationEvent,_0xeaea1d,_0x47a2c2[_0x3c834(0x231)],messageTypes[_0x3c834(0x1c6)],_0x47a2c2[_0x3c834(0x1db)],_0x134ecb,_0xeaea1d),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a18_0x4b0cb6=a18_0x27cd;function a18_0x27cd(_0x180677,_0x3b0876){const _0x470f4b=a18_0x470f();return a18_0x27cd=function(_0x27cdb9,_0x85afb5){_0x27cdb9=_0x27cdb9-0x96;let _0x34bcce=_0x470f4b[_0x27cdb9];return _0x34bcce;},a18_0x27cd(_0x180677,_0x3b0876);}(function(_0x580b9d,_0x945e42){const _0x5049e1=a18_0x27cd,_0x3ed4b2=_0x580b9d();while(!![]){try{const _0x32a03d=-parseInt(_0x5049e1(0x99))/0x1+-parseInt(_0x5049e1(0xab))/0x2*(-parseInt(_0x5049e1(0x9b))/0x3)+parseInt(_0x5049e1(0xa6))/0x4+parseInt(_0x5049e1(0xa8))/0x5+parseInt(_0x5049e1(0x9c))/0x6*(parseInt(_0x5049e1(0x9f))/0x7)+-parseInt(_0x5049e1(0xa5))/0x8+parseInt(_0x5049e1(0xae))/0x9*(-parseInt(_0x5049e1(0xa4))/0xa);if(_0x32a03d===_0x945e42)break;else _0x3ed4b2['push'](_0x3ed4b2['shift']());}catch(_0x545f76){_0x3ed4b2['push'](_0x3ed4b2['shift']());}}}(a18_0x470f,0x1f09f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x4b0cb6(0x97));function a18_0x470f(){const _0x573d1e=['builder','start_commands','8477MOhqZs','demandCommand','strict','command','Start\x20an\x20existing\x20Automation\x20grid.','130UGaJac','386768WdUtnw','116824KfaEcB','recommendCommands','747120RSeOZA','handler','desc','1142eBFJpY','hpmwU','dhwiq','11601cwXHfO','epilogue','../config/constants','start','233238KRbhhJ','help','807jtLRyA','462qnTmzG'];a18_0x470f=function(){return _0x573d1e;};return a18_0x470f();}exports[a18_0x4b0cb6(0xa2)]=a18_0x4b0cb6(0x98),exports[a18_0x4b0cb6(0xaa)]=a18_0x4b0cb6(0xa3),exports[a18_0x4b0cb6(0x9d)]=function(_0x5a9120){const _0x36c4cd=a18_0x4b0cb6,_0x430519={};_0x430519['dhwiq']=_0x36c4cd(0x9e),_0x430519[_0x36c4cd(0xac)]=_0x36c4cd(0x9a);const _0x418eec=_0x430519;return _0x5a9120['usage'](HELP_HEADER_MESSAGE['start'])[_0x36c4cd(0x96)](HELP_FOOTER_MESSAGE)['commandDir'](_0x418eec[_0x36c4cd(0xad)])[_0x36c4cd(0xa0)]()[_0x36c4cd(0xa7)]()[_0x36c4cd(0xa1)]()[_0x36c4cd(0x9a)](_0x418eec[_0x36c4cd(0xac)]);},exports[a18_0x4b0cb6(0xa9)]=function(_0x350cf2){};
1
+ function a18_0x1798(_0x4a5612,_0x3f2f5b){const _0x5465d0=a18_0x5465();return a18_0x1798=function(_0x179894,_0x512ed1){_0x179894=_0x179894-0x137;let _0x400a9e=_0x5465d0[_0x179894];return _0x400a9e;},a18_0x1798(_0x4a5612,_0x3f2f5b);}function a18_0x5465(){const _0x27de54=['demandCommand','63620wGSEJQ','start','recommendCommands','desc','4dWuHYI','2691396TUIwvC','start_commands','5rcMGwr','1317080rwsDVd','236756YWUUtD','Injuq','help','2943668sVrDfF','epilogue','../config/constants','strict','Start\x20an\x20existing\x20Automation\x20grid.','525381ZEizLe','handler','300039eWmOsC','882GFviwo','usage','GPPQd'];a18_0x5465=function(){return _0x27de54;};return a18_0x5465();}const a18_0x2d01d3=a18_0x1798;(function(_0x27b473,_0x2e2c5d){const _0x2659ef=a18_0x1798,_0xc7abf5=_0x27b473();while(!![]){try{const _0x25e099=parseInt(_0x2659ef(0x13a))/0x1*(-parseInt(_0x2659ef(0x143))/0x2)+parseInt(_0x2659ef(0x138))/0x3+parseInt(_0x2659ef(0x148))/0x4*(parseInt(_0x2659ef(0x146))/0x5)+parseInt(_0x2659ef(0x144))/0x6+-parseInt(_0x2659ef(0x14b))/0x7+parseInt(_0x2659ef(0x147))/0x8+parseInt(_0x2659ef(0x13b))/0x9*(parseInt(_0x2659ef(0x13f))/0xa);if(_0x25e099===_0x2e2c5d)break;else _0xc7abf5['push'](_0xc7abf5['shift']());}catch(_0x3e244a){_0xc7abf5['push'](_0xc7abf5['shift']());}}}(a18_0x5465,0x6df57));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x2d01d3(0x14d));exports['command']=a18_0x2d01d3(0x140),exports[a18_0x2d01d3(0x142)]=a18_0x2d01d3(0x137),exports['builder']=function(_0x2b5b3d){const _0x568de1=a18_0x2d01d3,_0x31d41e={};_0x31d41e[_0x568de1(0x13d)]=_0x568de1(0x145),_0x31d41e[_0x568de1(0x149)]=_0x568de1(0x14a);const _0x37b33b=_0x31d41e;return _0x2b5b3d[_0x568de1(0x13c)](HELP_HEADER_MESSAGE[_0x568de1(0x140)])[_0x568de1(0x14c)](HELP_FOOTER_MESSAGE)['commandDir'](_0x37b33b['GPPQd'])[_0x568de1(0x13e)]()[_0x568de1(0x141)]()[_0x568de1(0x14e)]()[_0x568de1(0x14a)](_0x37b33b[_0x568de1(0x149)]);},exports[a18_0x2d01d3(0x139)]=function(_0x4ae80f){};
@@ -1 +1 @@
1
- const a19_0x2cfb49=a19_0x4ef3;(function(_0x45cb13,_0x5d30f2){const _0x50edb1=a19_0x4ef3,_0x24842b=_0x45cb13();while(!![]){try{const _0x308ed3=parseInt(_0x50edb1(0xf8))/0x1+-parseInt(_0x50edb1(0x10a))/0x2+-parseInt(_0x50edb1(0x10b))/0x3*(parseInt(_0x50edb1(0x139))/0x4)+parseInt(_0x50edb1(0x13f))/0x5*(parseInt(_0x50edb1(0xf2))/0x6)+parseInt(_0x50edb1(0x11a))/0x7*(-parseInt(_0x50edb1(0x10c))/0x8)+parseInt(_0x50edb1(0xf7))/0x9*(parseInt(_0x50edb1(0x13c))/0xa)+-parseInt(_0x50edb1(0x131))/0xb*(-parseInt(_0x50edb1(0x143))/0xc);if(_0x308ed3===_0x5d30f2)break;else _0x24842b['push'](_0x24842b['shift']());}catch(_0x4bc542){_0x24842b['push'](_0x24842b['shift']());}}}(a19_0x3bfe,0x1bc70));function a19_0x4ef3(_0x1f9a1a,_0xa83ea2){const _0x3bfe23=a19_0x3bfe();return a19_0x4ef3=function(_0x4ef3fb,_0x51ddc1){_0x4ef3fb=_0x4ef3fb-0xf0;let _0x3115de=_0x3bfe23[_0x4ef3fb];return _0x3115de;},a19_0x4ef3(_0x1f9a1a,_0xa83ea2);}function a19_0x3bfe(){const _0x10b973=['QecIV','addListeners','Grid\x20started','body','NXmPF','usage','Browserstack','33gMhLWZ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ikPUT','../../utils/gridComponents','vBmEL','gridId','dnQEp','server-error','8QFhcUf','init-not-called','region','3430ECsNok','builder','error','10BTgLcM','Start\x20an\x20existing\x20Automation\x20grid.','user','reconnecting-websocket','2796BGhdIg','desc','exit','lCFsK','cloudProvider','username','name','ubphk','handler','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','Skip\x20insecure\x20cert\x20verification.','stack','223062quOecL','help','grid-id','stringify','sDYBH','279mnyIwo','226753xUdOIh','bstackAccesskey','message','epilogue','cWNNs','hsRKy','../../cloudproviders/utils','qGUmX','info','statusCode','clusterName','readFileSync','eryQL','start-grid-called','type','ERROR','bstackUsername','start','96678ewQPjl','111702XAXJiV','1408dNdtBz','LSIsC','pYdlK','<UsernamePlaceholder>','options','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','command','nsEwq','description','../../utils/utilityMethods','password','parse','3017aVPVXb','connectionTimeout','skip-tls-cert-verify','argv','yZBgw','skipTlsCertVerify','../../utils/createk8sClient','boolean','replace','../../config/logger','<PasswordPlaceholder>','debug','LHFod','Starting\x20grid\x20','tTlZo','rpdqG'];a19_0x3bfe=function(){return _0x10b973;};return a19_0x3bfe();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2cfb49(0x142)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x2cfb49(0x123)),{getCredentialsPath,getGridDetails}=require(a19_0x2cfb49(0x117)),{scaleUpHubDeployment}=require(a19_0x2cfb49(0x134)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x2cfb49(0x120)),{getCloudProviderObject}=require(a19_0x2cfb49(0xfe));exports[a19_0x2cfb49(0x114)]='grid',exports[a19_0x2cfb49(0x144)]=a19_0x2cfb49(0x140),exports[a19_0x2cfb49(0x13d)]=function(_0x8309cb){const _0x2a0f91=a19_0x2cfb49,_0xedaf91={};_0xedaf91[_0x2a0f91(0x137)]=_0x2a0f91(0x112),_0xedaf91[_0x2a0f91(0xfd)]='string',_0xedaf91[_0x2a0f91(0x11e)]=_0x2a0f91(0xf0),_0xedaf91[_0x2a0f91(0x10e)]=_0x2a0f91(0x121),_0xedaf91['vBmEL']=_0x2a0f91(0xf3);const _0x4a19fc=_0xedaf91,_0x19909d={};_0x19909d[_0x2a0f91(0x116)]=_0x4a19fc['dnQEp'],_0x19909d[_0x2a0f91(0x106)]=_0x4a19fc[_0x2a0f91(0xfd)];const _0x4022c8={};_0x4022c8['description']=_0x4a19fc[_0x2a0f91(0x11e)],_0x4022c8[_0x2a0f91(0x106)]=_0x4a19fc[_0x2a0f91(0x10e)],_0x4022c8['default']=![];const _0x25d23c={};return _0x25d23c[_0x2a0f91(0xf4)]=_0x19909d,_0x25d23c[_0x2a0f91(0x11c)]=_0x4022c8,_0x8309cb[_0x2a0f91(0x12f)](HELP_HEADER_MESSAGE[_0x2a0f91(0x109)])[_0x2a0f91(0xfb)](HELP_FOOTER_MESSAGE)[_0x2a0f91(0x110)](_0x25d23c)[_0x2a0f91(0xf3)](_0x4a19fc[_0x2a0f91(0x135)])[_0x2a0f91(0x11d)];},exports[a19_0x2cfb49(0x14b)]=async function(_0x55f623){const _0x1443a2=a19_0x2cfb49,_0x4a606d={'rpdqG':_0x1443a2(0x113),'nsEwq':function(_0x5cfb8f){return _0x5cfb8f();},'cWNNs':_0x1443a2(0x111),'lCFsK':function(_0x3cbb6e,_0x238a0a,_0xd83c68,_0x2872d5,_0x5c12f4,_0x3bfbac,_0x475aed){return _0x3cbb6e(_0x238a0a,_0xd83c68,_0x2872d5,_0x5c12f4,_0x3bfbac,_0x475aed);},'LHFod':_0x1443a2(0x105),'kYOKV':_0x1443a2(0x13a),'tTlZo':function(_0x25c32e,_0x487ba7,_0x3622cb,_0x14133f,_0x3c4be4,_0x5925d7,_0x7eb5ae){return _0x25c32e(_0x487ba7,_0x3622cb,_0x14133f,_0x3c4be4,_0x5925d7,_0x7eb5ae);},'FUJRC':_0x1443a2(0x10f),'qGUmX':_0x1443a2(0x124),'CjPNj':'Adding\x20Websocket\x20listeners','NXmPF':function(_0x3d2b9e,_0x51ba3f,_0x2ee1e1,_0x4044ed){return _0x3d2b9e(_0x51ba3f,_0x2ee1e1,_0x4044ed);},'ubphk':function(_0x440814,_0xc733f0,_0x20d4fc,_0x1601d4,_0x21383c,_0x1d205c,_0x5de4d4){return _0x440814(_0xc733f0,_0x20d4fc,_0x1601d4,_0x21383c,_0x1d205c,_0x5de4d4);},'ikPUT':function(_0x4f3fe5,_0x57561b,_0xd2d74d){return _0x4f3fe5(_0x57561b,_0xd2d74d);},'LSIsC':_0x1443a2(0x12c),'eryQL':function(_0xdfe9b3,_0x1ccdf4){return _0xdfe9b3===_0x1ccdf4;},'eLxkC':_0x1443a2(0x132),'QecIV':'unauthorised','sDYBH':'invalid-grid-id','VeDrN':_0x1443a2(0x138)};let _0x5be05e;try{!_0x55f623[_0x1443a2(0x136)]&&(logger[_0x1443a2(0x13e)](_0x4a606d[_0x1443a2(0x129)]),process[_0x1443a2(0x145)](0x1));!fs['existsSync'](_0x4a606d[_0x1443a2(0x115)](getCredentialsPath))&&(logger[_0x1443a2(0x13e)](_0x4a606d[_0x1443a2(0xfc)]),await _0x4a606d['lCFsK'](sendInstrumentationEvent,_0x55f623,_0x4a606d[_0x1443a2(0x126)],messageTypes[_0x1443a2(0x107)],_0x4a606d['kYOKV'],null,_0x55f623),process[_0x1443a2(0x145)](0x1));logger[_0x1443a2(0x100)](_0x1443a2(0x127)+_0x55f623[_0x1443a2(0x136)]),await _0x4a606d[_0x1443a2(0x128)](sendInstrumentationEvent,_0x55f623,_0x4a606d[_0x1443a2(0x126)],messageTypes['INFO'],null,null,_0x55f623);const _0x2dbdad=JSON[_0x1443a2(0x119)](fs[_0x1443a2(0x103)](_0x4a606d[_0x1443a2(0x115)](getCredentialsPath)));global_registry[_0x1443a2(0x108)]=_0x2dbdad[_0x1443a2(0x130)][_0x1443a2(0x148)],global_registry[_0x1443a2(0xf9)]=_0x2dbdad['Browserstack'][_0x1443a2(0x118)];const _0x2122b0=WS_ENDPOINT[_0x1443a2(0x122)](_0x4a606d['FUJRC'],_0x2dbdad[_0x1443a2(0x130)][_0x1443a2(0x148)])[_0x1443a2(0x122)](_0x4a606d[_0x1443a2(0xff)],_0x2dbdad['Browserstack'][_0x1443a2(0x118)]),_0x10b819={};_0x10b819['WebSocket']=ws,_0x10b819[_0x1443a2(0x11b)]=0x36ee80,_0x5be05e=new ReconnectingWebSocket(_0x2122b0,[],_0x10b819),logger[_0x1443a2(0x125)](_0x4a606d['CjPNj']),webSocketUtils[_0x1443a2(0x12b)](_0x5be05e,_0x55f623[_0x1443a2(0x141)],_0x55f623[_0x1443a2(0x118)]);const [_0x1be41e,_0x2285b8]=await _0x4a606d[_0x1443a2(0x12e)](getGridDetails,_0x2dbdad['Browserstack']['username'],_0x2dbdad[_0x1443a2(0x130)]['password'],_0x55f623['gridId']);if(_0x2285b8){const _0x2d6770=_0x2285b8[_0x1443a2(0x100)];global_registry[_0x1443a2(0x147)]=_0x2d6770[_0x1443a2(0x147)],global_registry['clusterRegion']=_0x2d6770[_0x1443a2(0x13b)],global_registry[_0x1443a2(0x102)]=_0x2d6770[_0x1443a2(0x102)];const _0x475efd=await _0x4a606d[_0x1443a2(0x14a)](getCloudProviderObject,_0x2d6770[_0x1443a2(0x147)],_0x2d6770[_0x1443a2(0x102)],_0x2d6770[_0x1443a2(0x149)],_0x5be05e,webSocketUtils,_0x55f623),[_0x2a4450,_0x5afebc,_0x3fc566,_0x568bfa,_0x54261b,_0x5e84b5]=await _0x4a606d[_0x1443a2(0x133)](createK8sClient,_0x475efd,_0x55f623[_0x1443a2(0x11f)]);await _0x4a606d[_0x1443a2(0x133)](scaleUpHubDeployment,_0x5afebc,_0x2d6770[_0x1443a2(0x149)]),logger[_0x1443a2(0x100)](_0x4a606d[_0x1443a2(0x10d)]),process[_0x1443a2(0x145)](0x0);}_0x4a606d[_0x1443a2(0x104)](_0x1be41e['statusCode'],0x191)&&(logger['error'](_0x4a606d['eLxkC']),await _0x4a606d[_0x1443a2(0x146)](sendInstrumentationEvent,_0x55f623,_0x4a606d[_0x1443a2(0x126)],messageTypes['ERROR'],_0x4a606d[_0x1443a2(0x12a)],null,_0x55f623),process[_0x1443a2(0x145)](0x1)),_0x4a606d[_0x1443a2(0x104)](_0x1be41e[_0x1443a2(0x101)],0x190)&&(logger[_0x1443a2(0x13e)](JSON['parse'](_0x1be41e[_0x1443a2(0x12d)])[_0x1443a2(0xfa)]),await _0x4a606d[_0x1443a2(0x14a)](sendInstrumentationEvent,_0x55f623,_0x4a606d[_0x1443a2(0x126)],messageTypes['ERROR'],_0x4a606d[_0x1443a2(0xf6)],null,_0x55f623),process[_0x1443a2(0x145)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x1443a2(0xf5)](_0x1be41e)),await _0x4a606d[_0x1443a2(0x146)](sendInstrumentationEvent,_0x55f623,_0x4a606d[_0x1443a2(0x126)],messageTypes[_0x1443a2(0x107)],_0x4a606d['VeDrN'],_0x1be41e,_0x55f623),process[_0x1443a2(0x145)](0x1);}catch(_0x69cb6){const _0x21e7a0=_0x1443a2(0x14c)+_0x69cb6+'\x20\x0a'+JSON[_0x1443a2(0xf5)](_0x69cb6[_0x1443a2(0xf1)])+'\x20';logger[_0x1443a2(0x13e)](_0x21e7a0),process[_0x1443a2(0x145)](0x1);}};
1
+ function a19_0x4561(){const _0xadf0be=['Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','165085NdiAKl','command','Start\x20an\x20existing\x20Automation\x20grid.','4986EepNpE','help','clusterName','string','14424SNujGT','Browserstack','../../utils/instrumentationUtils','usage','existsSync','jpAOQ','invalid-grid-id','../../cloudproviders/utils','../../utils/gridComponents','desc','SDWnv','rbeMs','8880qwKEau','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','<UsernamePlaceholder>','skipTlsCertVerify','clusterRegion','statusCode','JLmkD','reconnecting-websocket','1344740eAFRas','start-grid-called','bstackAccesskey','grid-id','cloudProvider','84TJuNab','exit','body','replace','AcJba','boolean','21044340uPDqJz','readFileSync','EiMOj','../../utils/utilityMethods','1182HyNZKs','rBXez','unauthorised','stack','10991141dvuWoE','skip-tls-cert-verify','username','ERROR','NdUAg','cOYWv','password','debug','<PasswordPlaceholder>','WejpL','twrWT','handler','server-error','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','IrPmA','user','aXUhS','connectionTimeout','message','dulGq','Starting\x20grid\x20','type','800337elfRIr','stringify','parse','WebSocket','wYObw','eVUZE','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','addListeners','nyedO','description','sqHNI','../../config/logger','options','kdwwn','Skip\x20insecure\x20cert\x20verification.','xtoUV','gridId','init-not-called','ElwhY','error','KEMlY','../../config/constants','builder','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','info','argv','name'];a19_0x4561=function(){return _0xadf0be;};return a19_0x4561();}const a19_0x411848=a19_0x3d8b;function a19_0x3d8b(_0x4c29d7,_0x75dcea){const _0x456126=a19_0x4561();return a19_0x3d8b=function(_0x3d8bcf,_0x564333){_0x3d8bcf=_0x3d8bcf-0x8a;let _0x548143=_0x456126[_0x3d8bcf];return _0x548143;},a19_0x3d8b(_0x4c29d7,_0x75dcea);}(function(_0x4caedd,_0x1527c2){const _0x2e49d5=a19_0x3d8b,_0x2a5155=_0x4caedd();while(!![]){try{const _0x4c6a91=parseInt(_0x2e49d5(0x8a))/0x1+-parseInt(_0x2e49d5(0xb9))/0x2*(parseInt(_0x2e49d5(0xd1))/0x3)+-parseInt(_0x2e49d5(0xc2))/0x4+parseInt(_0x2e49d5(0xa6))/0x5*(-parseInt(_0x2e49d5(0xc7))/0x6)+parseInt(_0x2e49d5(0xd5))/0x7+-parseInt(_0x2e49d5(0xad))/0x8*(parseInt(_0x2e49d5(0xa9))/0x9)+parseInt(_0x2e49d5(0xcd))/0xa;if(_0x4c6a91===_0x1527c2)break;else _0x2a5155['push'](_0x2a5155['shift']());}catch(_0x518414){_0x2a5155['push'](_0x2a5155['shift']());}}}(a19_0x4561,0xe2a21));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x411848(0xc1)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x411848(0x9f)),{logger}=require(a19_0x411848(0x95)),{getCredentialsPath,getGridDetails}=require(a19_0x411848(0xd0)),{scaleUpHubDeployment}=require(a19_0x411848(0xb5)),{sendInstrumentationEvent}=require(a19_0x411848(0xaf)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x411848(0xb4));exports[a19_0x411848(0xa7)]='grid',exports[a19_0x411848(0xb6)]=a19_0x411848(0xa8),exports[a19_0x411848(0xa0)]=function(_0x29fab5){const _0x167e35=a19_0x411848,_0x3af45a={};_0x3af45a[_0x167e35(0xcb)]=_0x167e35(0xa5),_0x3af45a[_0x167e35(0xb2)]=_0x167e35(0xac),_0x3af45a['SDWnv']=_0x167e35(0x98),_0x3af45a[_0x167e35(0x8f)]=_0x167e35(0xcc),_0x3af45a[_0x167e35(0xe8)]=_0x167e35(0xaa);const _0x5c12ab=_0x3af45a,_0x3f0773={};_0x3f0773[_0x167e35(0x93)]=_0x5c12ab[_0x167e35(0xcb)],_0x3f0773['type']=_0x5c12ab[_0x167e35(0xb2)];const _0xb74a75={};_0xb74a75['description']=_0x5c12ab[_0x167e35(0xb7)],_0xb74a75[_0x167e35(0xea)]=_0x5c12ab[_0x167e35(0x8f)],_0xb74a75['default']=![];const _0x434bf3={};return _0x434bf3[_0x167e35(0xc5)]=_0x3f0773,_0x434bf3[_0x167e35(0xd6)]=_0xb74a75,_0x29fab5[_0x167e35(0xb0)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x167e35(0x96)](_0x434bf3)[_0x167e35(0xaa)](_0x5c12ab[_0x167e35(0xe8)])[_0x167e35(0xa3)];},exports[a19_0x411848(0xe0)]=async function(_0x4c8fa6){const _0x12aa55=a19_0x411848,_0x1bb2ff={'ElwhY':_0x12aa55(0x90),'rBXez':function(_0x16a2ed){return _0x16a2ed();},'cOYWv':_0x12aa55(0xba),'wYObw':function(_0x48c59c,_0x322964,_0x5086b8,_0x4f6392,_0x39d97a,_0x1e3564,_0x56c13c){return _0x48c59c(_0x322964,_0x5086b8,_0x4f6392,_0x39d97a,_0x1e3564,_0x56c13c);},'WejpL':_0x12aa55(0xc3),'KEMlY':_0x12aa55(0x9b),'nyedO':function(_0x9b0231){return _0x9b0231();},'xtoUV':_0x12aa55(0xbc),'rbeMs':_0x12aa55(0xdd),'twrWT':'Adding\x20Websocket\x20listeners','NdUAg':function(_0x33db03,_0x22faab,_0x19af8c,_0x4a9632){return _0x33db03(_0x22faab,_0x19af8c,_0x4a9632);},'foVmj':function(_0x3a1a46,_0x158fab,_0x34db9c){return _0x3a1a46(_0x158fab,_0x34db9c);},'sqHNI':function(_0xd8713b,_0x1bca24,_0x1369bc){return _0xd8713b(_0x1bca24,_0x1369bc);},'bTQGd':'Grid\x20started','IrPmA':function(_0x381e03,_0x404979){return _0x381e03===_0x404979;},'gDTRO':_0x12aa55(0xbb),'EiMOj':_0x12aa55(0xd3),'JLmkD':function(_0xd4e86e,_0x56cabb){return _0xd4e86e===_0x56cabb;},'aXUhS':function(_0x3b91c7,_0x1abd4f,_0x2329ed,_0x522474,_0x3b39df,_0xfd9965,_0x4b32fb){return _0x3b91c7(_0x1abd4f,_0x2329ed,_0x522474,_0x3b39df,_0xfd9965,_0x4b32fb);},'dUHDr':_0x12aa55(0xb3),'kdwwn':function(_0x27660d,_0xbcfff5,_0x53be82,_0x5300db,_0x49bbe1,_0x424a0c,_0x76aabc){return _0x27660d(_0xbcfff5,_0x53be82,_0x5300db,_0x49bbe1,_0x424a0c,_0x76aabc);},'HUWxS':_0x12aa55(0xe1)};let _0x324c54;try{!_0x4c8fa6[_0x12aa55(0x9a)]&&(logger[_0x12aa55(0x9d)](_0x1bb2ff[_0x12aa55(0x9c)]),process[_0x12aa55(0xc8)](0x1));!fs[_0x12aa55(0xb1)](_0x1bb2ff[_0x12aa55(0xd2)](getCredentialsPath))&&(logger['error'](_0x1bb2ff[_0x12aa55(0xda)]),await _0x1bb2ff['wYObw'](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff['WejpL'],messageTypes['ERROR'],_0x1bb2ff[_0x12aa55(0x9e)],null,_0x4c8fa6),process[_0x12aa55(0xc8)](0x1));logger[_0x12aa55(0xa2)](_0x12aa55(0xe9)+_0x4c8fa6[_0x12aa55(0x9a)]),await _0x1bb2ff['wYObw'](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff[_0x12aa55(0xde)],messageTypes['INFO'],null,null,_0x4c8fa6);const _0x32d1db=JSON[_0x12aa55(0x8c)](fs[_0x12aa55(0xce)](_0x1bb2ff[_0x12aa55(0x92)](getCredentialsPath)));global_registry['bstackUsername']=_0x32d1db[_0x12aa55(0xae)][_0x12aa55(0xd7)],global_registry[_0x12aa55(0xc4)]=_0x32d1db['Browserstack'][_0x12aa55(0xdb)];const _0x49396c=WS_ENDPOINT[_0x12aa55(0xca)](_0x1bb2ff[_0x12aa55(0x99)],_0x32d1db[_0x12aa55(0xae)]['username'])[_0x12aa55(0xca)](_0x1bb2ff[_0x12aa55(0xb8)],_0x32d1db[_0x12aa55(0xae)]['password']),_0x2cd57d={};_0x2cd57d[_0x12aa55(0x8d)]=ws,_0x2cd57d[_0x12aa55(0xe6)]=0x36ee80,_0x324c54=new ReconnectingWebSocket(_0x49396c,[],_0x2cd57d),logger[_0x12aa55(0xdc)](_0x1bb2ff[_0x12aa55(0xdf)]),webSocketUtils[_0x12aa55(0x91)](_0x324c54,_0x4c8fa6[_0x12aa55(0xe4)],_0x4c8fa6['password']);const [_0x1088f6,_0x465d4a]=await _0x1bb2ff[_0x12aa55(0xd9)](getGridDetails,_0x32d1db[_0x12aa55(0xae)][_0x12aa55(0xd7)],_0x32d1db[_0x12aa55(0xae)][_0x12aa55(0xdb)],_0x4c8fa6[_0x12aa55(0x9a)]);if(_0x465d4a){const _0x1ae34c=_0x465d4a['info'];global_registry[_0x12aa55(0xc6)]=_0x1ae34c['cloudProvider'],global_registry[_0x12aa55(0xbe)]=_0x1ae34c['region'],global_registry[_0x12aa55(0xab)]=_0x1ae34c['clusterName'];const _0xf7335b=await _0x1bb2ff[_0x12aa55(0x8e)](getCloudProviderObject,_0x1ae34c[_0x12aa55(0xc6)],_0x1ae34c[_0x12aa55(0xab)],_0x1ae34c[_0x12aa55(0xa4)],_0x324c54,webSocketUtils,_0x4c8fa6),[_0x1b525c,_0x5dd118,_0xeeb72c,_0x1a9491,_0x23b715,_0x2bba1c]=await _0x1bb2ff['foVmj'](createK8sClient,_0xf7335b,_0x4c8fa6[_0x12aa55(0xbd)]);await _0x1bb2ff[_0x12aa55(0x94)](scaleUpHubDeployment,_0x5dd118,_0x1ae34c['name']),logger[_0x12aa55(0xa2)](_0x1bb2ff['bTQGd']),process[_0x12aa55(0xc8)](0x0);}_0x1bb2ff[_0x12aa55(0xe3)](_0x1088f6['statusCode'],0x191)&&(logger[_0x12aa55(0x9d)](_0x1bb2ff['gDTRO']),await _0x1bb2ff[_0x12aa55(0x8e)](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff[_0x12aa55(0xde)],messageTypes[_0x12aa55(0xd8)],_0x1bb2ff[_0x12aa55(0xcf)],null,_0x4c8fa6),process[_0x12aa55(0xc8)](0x1)),_0x1bb2ff[_0x12aa55(0xc0)](_0x1088f6[_0x12aa55(0xbf)],0x190)&&(logger[_0x12aa55(0x9d)](JSON[_0x12aa55(0x8c)](_0x1088f6[_0x12aa55(0xc9)])[_0x12aa55(0xe7)]),await _0x1bb2ff[_0x12aa55(0xe5)](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff[_0x12aa55(0xde)],messageTypes[_0x12aa55(0xd8)],_0x1bb2ff['dUHDr'],null,_0x4c8fa6),process['exit'](0x1)),logger[_0x12aa55(0x9d)](_0x12aa55(0xa1)+JSON[_0x12aa55(0x8b)](_0x1088f6)),await _0x1bb2ff[_0x12aa55(0x97)](sendInstrumentationEvent,_0x4c8fa6,_0x1bb2ff[_0x12aa55(0xde)],messageTypes[_0x12aa55(0xd8)],_0x1bb2ff['HUWxS'],_0x1088f6,_0x4c8fa6),process[_0x12aa55(0xc8)](0x1);}catch(_0x313c21){const _0x4daf93=_0x12aa55(0xe2)+_0x313c21+'\x20\x0a'+JSON[_0x12aa55(0x8b)](_0x313c21[_0x12aa55(0xd4)])+'\x20';logger[_0x12aa55(0x9d)](_0x4daf93),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a20_0xe16938=a20_0x186e;function a20_0x4b3d(){const _0x422f18=['usage','ZfMeJ','help','handler','12715784gsUzyw','4XmytHX','31253652hhRuBm','builder','stop_commands','recommendCommands','7Pqktxx','244438casogF','19148bXkJol','1355eEEKRx','epilogue','strict','9WluNrQ','Stop\x20a\x20running\x20Automation\x20grid.','3692688wuEJpc','11RLCVur','demandCommand','7822326vhHiPb','../config/constants','desc','10471170TgSgOT','NmDmW'];a20_0x4b3d=function(){return _0x422f18;};return a20_0x4b3d();}function a20_0x186e(_0x5f30f8,_0x21cf88){const _0x4b3d0e=a20_0x4b3d();return a20_0x186e=function(_0x186e76,_0x2d0caf){_0x186e76=_0x186e76-0x1bc;let _0x22095d=_0x4b3d0e[_0x186e76];return _0x22095d;},a20_0x186e(_0x5f30f8,_0x21cf88);}(function(_0x38fe48,_0x50ec97){const _0x3d3e99=a20_0x186e,_0x38e863=_0x38fe48();while(!![]){try{const _0x5068b3=-parseInt(_0x3d3e99(0x1d5))/0x1*(parseInt(_0x3d3e99(0x1c1))/0x2)+-parseInt(_0x3d3e99(0x1c8))/0x3+parseInt(_0x3d3e99(0x1c2))/0x4*(parseInt(_0x3d3e99(0x1c3))/0x5)+parseInt(_0x3d3e99(0x1cb))/0x6*(parseInt(_0x3d3e99(0x1c0))/0x7)+-parseInt(_0x3d3e99(0x1d4))/0x8*(-parseInt(_0x3d3e99(0x1c6))/0x9)+-parseInt(_0x3d3e99(0x1ce))/0xa*(-parseInt(_0x3d3e99(0x1c9))/0xb)+-parseInt(_0x3d3e99(0x1bc))/0xc;if(_0x5068b3===_0x50ec97)break;else _0x38e863['push'](_0x38e863['shift']());}catch(_0x583f2f){_0x38e863['push'](_0x38e863['shift']());}}}(a20_0x4b3d,0xdefc1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0xe16938(0x1cc));exports['command']='stop',exports[a20_0xe16938(0x1cd)]=a20_0xe16938(0x1c7),exports[a20_0xe16938(0x1bd)]=function(_0xe4c306){const _0x5e8846=a20_0xe16938,_0x39e290={};_0x39e290[_0x5e8846(0x1cf)]=_0x5e8846(0x1be),_0x39e290[_0x5e8846(0x1d1)]='help';const _0xab5ab1=_0x39e290;return _0xe4c306[_0x5e8846(0x1d0)](HELP_HEADER_MESSAGE['stop'])[_0x5e8846(0x1c4)](HELP_FOOTER_MESSAGE)['commandDir'](_0xab5ab1[_0x5e8846(0x1cf)])[_0x5e8846(0x1ca)]()[_0x5e8846(0x1bf)]()[_0x5e8846(0x1c5)]()[_0x5e8846(0x1d2)](_0xab5ab1[_0x5e8846(0x1d1)]);},exports[a20_0xe16938(0x1d3)]=function(_0x49addb){};
1
+ const a20_0x157041=a20_0x4ec2;function a20_0x4ec2(_0x36a1c3,_0xf9504b){const _0x46d35a=a20_0x46d3();return a20_0x4ec2=function(_0x4ec20c,_0x1e85f6){_0x4ec20c=_0x4ec20c-0x129;let _0x49af81=_0x46d35a[_0x4ec20c];return _0x49af81;},a20_0x4ec2(_0x36a1c3,_0xf9504b);}function a20_0x46d3(){const _0x53b77b=['7986040RsauXj','epilogue','78QreuxL','handler','1037262rjOlow','Stop\x20a\x20running\x20Automation\x20grid.','16tlGjiq','XFRIe','4254105EjdoFk','stop','help','4050632GaFGPI','recommendCommands','builder','1509966IfzmDi','753198cHVevn','../config/constants','stop_commands','3yOYCwc','usage','strict','514927xoHvxA','mwhVm','command'];a20_0x46d3=function(){return _0x53b77b;};return a20_0x46d3();}(function(_0x290475,_0x15c415){const _0x47fd9c=a20_0x4ec2,_0x19e49e=_0x290475();while(!![]){try{const _0x263f58=-parseInt(_0x47fd9c(0x13b))/0x1+-parseInt(_0x47fd9c(0x130))/0x2+parseInt(_0x47fd9c(0x13e))/0x3*(-parseInt(_0x47fd9c(0x137))/0x4)+parseInt(_0x47fd9c(0x134))/0x5+-parseInt(_0x47fd9c(0x12e))/0x6*(-parseInt(_0x47fd9c(0x129))/0x7)+parseInt(_0x47fd9c(0x132))/0x8*(parseInt(_0x47fd9c(0x13a))/0x9)+parseInt(_0x47fd9c(0x12c))/0xa;if(_0x263f58===_0x15c415)break;else _0x19e49e['push'](_0x19e49e['shift']());}catch(_0x263286){_0x19e49e['push'](_0x19e49e['shift']());}}}(a20_0x46d3,0xa058b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x157041(0x13c));exports[a20_0x157041(0x12b)]=a20_0x157041(0x135),exports['desc']=a20_0x157041(0x131),exports[a20_0x157041(0x139)]=function(_0x5e6ca6){const _0x14d6e5=a20_0x157041,_0x784b63={};_0x784b63['XFRIe']=_0x14d6e5(0x13d),_0x784b63['mwhVm']=_0x14d6e5(0x136);const _0x3a3cd7=_0x784b63;return _0x5e6ca6[_0x14d6e5(0x13f)](HELP_HEADER_MESSAGE['stop'])[_0x14d6e5(0x12d)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3a3cd7[_0x14d6e5(0x133)])['demandCommand']()[_0x14d6e5(0x138)]()[_0x14d6e5(0x140)]()[_0x14d6e5(0x136)](_0x3a3cd7[_0x14d6e5(0x12a)]);},exports[a20_0x157041(0x12f)]=function(_0x380d4b){};
@@ -1 +1 @@
1
- const a21_0x4d4175=a21_0x2f3c;(function(_0xf43eb1,_0x30c4ef){const _0x1e0105=a21_0x2f3c,_0x33b933=_0xf43eb1();while(!![]){try{const _0x374bd3=-parseInt(_0x1e0105(0x19c))/0x1*(-parseInt(_0x1e0105(0x17e))/0x2)+parseInt(_0x1e0105(0x19e))/0x3*(parseInt(_0x1e0105(0x1b7))/0x4)+parseInt(_0x1e0105(0x187))/0x5+parseInt(_0x1e0105(0x1c9))/0x6*(parseInt(_0x1e0105(0x1a4))/0x7)+-parseInt(_0x1e0105(0x1b2))/0x8+-parseInt(_0x1e0105(0x1ba))/0x9*(parseInt(_0x1e0105(0x1c8))/0xa)+-parseInt(_0x1e0105(0x1b4))/0xb*(parseInt(_0x1e0105(0x1c2))/0xc);if(_0x374bd3===_0x30c4ef)break;else _0x33b933['push'](_0x33b933['shift']());}catch(_0x40fad2){_0x33b933['push'](_0x33b933['shift']());}}}(a21_0x2556,0x73331));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4d4175(0x1ca)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x4d4175(0x1ce)),{logger}=require(a21_0x4d4175(0x1cd)),{getCredentialsPath,getGridDetails}=require(a21_0x4d4175(0x18c)),{scaleDownHubDeployment}=require(a21_0x4d4175(0x19b)),{sendInstrumentationEvent}=require(a21_0x4d4175(0x1cc)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x4d4175(0x190)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x4d4175(0x1a9)]='grid',exports['desc']=a21_0x4d4175(0x19a),exports[a21_0x4d4175(0x1a5)]=function(_0x54c0a3){const _0x3f238c=a21_0x4d4175,_0x24bfe0={};_0x24bfe0[_0x3f238c(0x177)]=_0x3f238c(0x18b),_0x24bfe0[_0x3f238c(0x189)]=_0x3f238c(0x18e),_0x24bfe0[_0x3f238c(0x181)]=_0x3f238c(0x1ac),_0x24bfe0[_0x3f238c(0x1c6)]='boolean',_0x24bfe0[_0x3f238c(0x191)]='help';const _0x16e276=_0x24bfe0,_0x237a78={};_0x237a78[_0x3f238c(0x185)]=_0x16e276[_0x3f238c(0x177)],_0x237a78[_0x3f238c(0x1ad)]=_0x16e276[_0x3f238c(0x189)];const _0x11f1f8={};_0x11f1f8[_0x3f238c(0x185)]=_0x16e276[_0x3f238c(0x181)],_0x11f1f8[_0x3f238c(0x1ad)]=_0x16e276['dVSBF'],_0x11f1f8[_0x3f238c(0x1c5)]=![];const _0x1c0c1a={};return _0x1c0c1a[_0x3f238c(0x186)]=_0x237a78,_0x1c0c1a['skip-tls-cert-verify']=_0x11f1f8,_0x54c0a3[_0x3f238c(0x1c0)](HELP_HEADER_MESSAGE[_0x3f238c(0x1cb)])[_0x3f238c(0x1bb)](HELP_FOOTER_MESSAGE)[_0x3f238c(0x179)](_0x1c0c1a)['help'](_0x16e276['WhSkT'])[_0x3f238c(0x1d4)];},exports[a21_0x4d4175(0x188)]=async function(_0x3557e2){const _0x3daa56=a21_0x4d4175,_0x186a52={'daGeQ':_0x3daa56(0x18f),'wlZfs':function(_0x58b2ba){return _0x58b2ba();},'eJMlu':_0x3daa56(0x193),'VLQLe':function(_0x4d0a9e,_0x558009,_0x3c2749,_0x3aaa4e,_0x580fbb,_0x130e17,_0x4f6cb4){return _0x4d0a9e(_0x558009,_0x3c2749,_0x3aaa4e,_0x580fbb,_0x130e17,_0x4f6cb4);},'KGxEs':_0x3daa56(0x1a1),'dUkfF':'init-not-called','lUZnp':function(_0x1dd4af,_0x175b7f,_0x18f24d,_0xcf6e9e,_0x527e50,_0x1c9ba3,_0xcb45a2){return _0x1dd4af(_0x175b7f,_0x18f24d,_0xcf6e9e,_0x527e50,_0x1c9ba3,_0xcb45a2);},'wxfAv':function(_0x202683){return _0x202683();},'KTvJV':_0x3daa56(0x195),'SpCGJ':_0x3daa56(0x17b),'ndqvl':_0x3daa56(0x1c1),'TpqLD':function(_0x2c188b,_0x1f6ca5,_0xe0e9d1,_0x27847b){return _0x2c188b(_0x1f6ca5,_0xe0e9d1,_0x27847b);},'iNbpF':function(_0x1fa5b4,_0x52794b,_0x1831c7,_0x273379,_0x107891,_0x32bccf,_0x40ed5c){return _0x1fa5b4(_0x52794b,_0x1831c7,_0x273379,_0x107891,_0x32bccf,_0x40ed5c);},'LAFtA':function(_0x33c796,_0x1edad2,_0xa097bb){return _0x33c796(_0x1edad2,_0xa097bb);},'tMOLG':'Grid\x20stoppped.','WZeUT':function(_0x10f856,_0xc3e49){return _0x10f856===_0xc3e49;},'jXiCa':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KyXUC':function(_0x17a8a0,_0x31fd77,_0x15c737,_0x5826dd,_0x1796a4,_0x5a8fd4,_0x2a90e7){return _0x17a8a0(_0x31fd77,_0x15c737,_0x5826dd,_0x1796a4,_0x5a8fd4,_0x2a90e7);},'KQjnn':'unauthorised','sZiFn':function(_0x5c06b6,_0x1c7ea1){return _0x5c06b6===_0x1c7ea1;},'TiDXR':_0x3daa56(0x1a6),'SssIy':'server-error'};let _0x10435a;try{!_0x3557e2['gridId']&&(logger[_0x3daa56(0x1c4)](_0x186a52[_0x3daa56(0x184)]),process[_0x3daa56(0x1aa)](0x1));!fs[_0x3daa56(0x1c7)](_0x186a52[_0x3daa56(0x17f)](getCredentialsPath))&&(logger[_0x3daa56(0x1c4)](_0x186a52[_0x3daa56(0x1a3)]),await _0x186a52['VLQLe'](sendInstrumentationEvent,_0x3557e2,_0x186a52[_0x3daa56(0x1d2)],messageTypes[_0x3daa56(0x198)],_0x186a52[_0x3daa56(0x1ab)],null,_0x3557e2),process[_0x3daa56(0x1aa)](0x1));logger[_0x3daa56(0x1d6)]('Stopping\x20grid\x20'+_0x3557e2[_0x3daa56(0x192)]),await _0x186a52[_0x3daa56(0x178)](sendInstrumentationEvent,_0x3557e2,_0x186a52['KGxEs'],messageTypes[_0x3daa56(0x1bd)],null,null,_0x3557e2);const _0x4d4139=JSON[_0x3daa56(0x1d5)](fs[_0x3daa56(0x1b8)](_0x186a52[_0x3daa56(0x1be)](getCredentialsPath)));global_registry[_0x3daa56(0x1bf)]=_0x4d4139[_0x3daa56(0x194)][_0x3daa56(0x1d7)],global_registry[_0x3daa56(0x1b0)]=_0x4d4139['Browserstack']['password'];const _0x4c422f=WS_ENDPOINT[_0x3daa56(0x182)](_0x186a52[_0x3daa56(0x180)],_0x4d4139[_0x3daa56(0x194)][_0x3daa56(0x1d7)])[_0x3daa56(0x182)](_0x186a52['SpCGJ'],_0x4d4139[_0x3daa56(0x194)]['password']),_0x10435e={};_0x10435e[_0x3daa56(0x183)]=ws,_0x10435e[_0x3daa56(0x19d)]=0x36ee80,_0x10435a=new ReconnectingWebSocket(_0x4c422f,[],_0x10435e),logger[_0x3daa56(0x1b6)](_0x186a52[_0x3daa56(0x1a0)]),webSocketUtils['addListeners'](_0x10435a,_0x3557e2[_0x3daa56(0x1d3)],_0x3557e2[_0x3daa56(0x1b1)]);const [_0x239018,_0x32e0b2]=await _0x186a52[_0x3daa56(0x196)](getGridDetails,_0x4d4139[_0x3daa56(0x194)][_0x3daa56(0x1d7)],_0x4d4139[_0x3daa56(0x194)][_0x3daa56(0x1b1)],_0x3557e2[_0x3daa56(0x192)]);if(_0x32e0b2){const _0x50a866=_0x32e0b2[_0x3daa56(0x1d6)];global_registry[_0x3daa56(0x1d1)]=_0x50a866[_0x3daa56(0x1d1)],global_registry[_0x3daa56(0x1b9)]=_0x50a866['region'],global_registry[_0x3daa56(0x1bc)]=_0x50a866[_0x3daa56(0x1bc)];const _0x183c3f=await _0x186a52['iNbpF'](getCloudProviderObject,_0x50a866[_0x3daa56(0x1d1)],_0x50a866[_0x3daa56(0x1bc)],_0x50a866[_0x3daa56(0x1a8)],_0x10435a,webSocketUtils,_0x3557e2),[_0x1883dc,_0x336459,_0x2081fb,_0x18f4ca,_0x14a9bb,_0x3b619c]=await _0x186a52[_0x3daa56(0x1ae)](createK8sClient,_0x183c3f,_0x3557e2[_0x3daa56(0x1c3)]);await _0x186a52[_0x3daa56(0x1ae)](scaleDownHubDeployment,_0x336459,_0x50a866[_0x3daa56(0x1a8)]),logger[_0x3daa56(0x1d6)](_0x186a52[_0x3daa56(0x17a)]),process[_0x3daa56(0x1aa)](0x0);}_0x186a52[_0x3daa56(0x17c)](_0x239018['statusCode'],0x191)&&(logger[_0x3daa56(0x1c4)](_0x186a52[_0x3daa56(0x199)]),await _0x186a52[_0x3daa56(0x18a)](sendInstrumentationEvent,_0x3557e2,_0x186a52[_0x3daa56(0x1d2)],messageTypes[_0x3daa56(0x198)],_0x186a52['KQjnn'],null,_0x3557e2),process[_0x3daa56(0x1aa)](0x1)),_0x186a52[_0x3daa56(0x197)](_0x239018[_0x3daa56(0x18d)],0x190)&&(logger[_0x3daa56(0x1c4)](JSON['parse'](_0x239018[_0x3daa56(0x1cf)])[_0x3daa56(0x1b3)]),await _0x186a52[_0x3daa56(0x19f)](sendInstrumentationEvent,_0x3557e2,_0x186a52[_0x3daa56(0x1d2)],messageTypes[_0x3daa56(0x198)],_0x186a52[_0x3daa56(0x1a7)],null,_0x3557e2),process[_0x3daa56(0x1aa)](0x1)),logger[_0x3daa56(0x1c4)](_0x3daa56(0x17d)+JSON[_0x3daa56(0x1d0)](_0x239018)),await _0x186a52['KyXUC'](sendInstrumentationEvent,_0x3557e2,_0x186a52[_0x3daa56(0x1d2)],messageTypes[_0x3daa56(0x198)],_0x186a52[_0x3daa56(0x1af)],_0x239018,_0x3557e2),process['exit'](0x1);}catch(_0x4837f4){const _0x299f2c=_0x3daa56(0x1a2)+_0x4837f4+'\x20\x0a'+JSON['stringify'](_0x4837f4[_0x3daa56(0x1b5)])+'\x20';logger[_0x3daa56(0x1c4)](_0x299f2c),process[_0x3daa56(0x1aa)](0x1);}};function a21_0x2f3c(_0x237e5d,_0x349cec){const _0x255605=a21_0x2556();return a21_0x2f3c=function(_0x2f3cfb,_0x2956a2){_0x2f3cfb=_0x2f3cfb-0x177;let _0x24bf48=_0x255605[_0x2f3cfb];return _0x24bf48;},a21_0x2f3c(_0x237e5d,_0x349cec);}function a21_0x2556(){const _0xe48ceb=['handler','JmaVM','KyXUC','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','../../utils/utilityMethods','statusCode','string','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','../../utils/createk8sClient','WhSkT','gridId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Browserstack','<UsernamePlaceholder>','TpqLD','sZiFn','ERROR','jXiCa','Stop\x20a\x20running\x20Automation\x20grid.','../../utils/gridComponents','1nHaOFa','connectionTimeout','1552029sDwnAs','VLQLe','ndqvl','stop-grid-called','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','eJMlu','2046457IxHuyR','builder','invalid-grid-id','TiDXR','name','command','exit','dUkfF','Skip\x20insecure\x20cert\x20verification.','type','LAFtA','SssIy','bstackAccesskey','password','6841280WSTWGn','message','4008521KQsKvG','stack','debug','4txpoPA','readFileSync','clusterRegion','23139LnZynA','epilogue','clusterName','INFO','wxfAv','bstackUsername','usage','Adding\x20Websocket\x20listeners','36jaXmhy','skipTlsCertVerify','error','default','dVSBF','existsSync','1020VXZFfu','18kaZhSy','reconnecting-websocket','stop','../../utils/instrumentationUtils','../../config/logger','../../config/constants','body','stringify','cloudProvider','KGxEs','user','argv','parse','info','username','PvVyO','lUZnp','options','tMOLG','<PasswordPlaceholder>','WZeUT','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','1651154MvTHrI','wlZfs','KTvJV','BerlF','replace','WebSocket','daGeQ','description','grid-id','2312595VDGmZm'];a21_0x2556=function(){return _0xe48ceb;};return a21_0x2556();}
1
+ const a21_0x4c6938=a21_0x10bc;(function(_0xea4057,_0x1f0999){const _0x21c3cf=a21_0x10bc,_0x1fe4ab=_0xea4057();while(!![]){try{const _0x4d659f=parseInt(_0x21c3cf(0x1ca))/0x1*(parseInt(_0x21c3cf(0x1be))/0x2)+-parseInt(_0x21c3cf(0x191))/0x3*(-parseInt(_0x21c3cf(0x193))/0x4)+-parseInt(_0x21c3cf(0x1b6))/0x5*(-parseInt(_0x21c3cf(0x190))/0x6)+parseInt(_0x21c3cf(0x1ba))/0x7+parseInt(_0x21c3cf(0x198))/0x8*(-parseInt(_0x21c3cf(0x197))/0x9)+parseInt(_0x21c3cf(0x1c5))/0xa+-parseInt(_0x21c3cf(0x1d1))/0xb*(parseInt(_0x21c3cf(0x19b))/0xc);if(_0x4d659f===_0x1f0999)break;else _0x1fe4ab['push'](_0x1fe4ab['shift']());}catch(_0x579912){_0x1fe4ab['push'](_0x1fe4ab['shift']());}}}(a21_0x21d7,0x1a42b));function a21_0x21d7(){const _0x2d1bd3=['DvvBv','163193mwriQk','username','MzytS','INFO','qsqMN','clusterRegion','bstackUsername','6674327TDcbnE','KWPRA','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','grid','JTqHL','stringify','command','info','existsSync','EKBCK','bstackAccesskey','clusterName','string','name','unauthorised','Browserstack','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','reconnecting-websocket','qkhIY','exit','../../utils/instrumentationUtils','546xBllSN','51pqipZr','readFileSync','44276jgputY','Adding\x20Websocket\x20listeners','parse','skip-tls-cert-verify','6381YjFiUz','712SRvjKj','error','Skip\x20insecure\x20cert\x20verification.','12PclZzd','vAFLN','password','aNVtO','statusCode','WebSocket','cloudProvider','gridId','Stop\x20a\x20running\x20Automation\x20grid.','stop-grid-called','../../cloudproviders/utils','boolean','HBdzT','IhFZl','handler','TqLrJ','argv','stop','description','addListeners','muMJz','TEpfV','QczWR','ERROR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','message','11815VMSjyg','../../utils/gridComponents','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1363908KKdkpp','body','server-error','../../utils/createk8sClient','2PuCzAB','LTvFO','<UsernamePlaceholder>','MJkuD','type','Lnpzl','debug','161780fSnjVc','connectionTimeout','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','ahNoQ'];a21_0x21d7=function(){return _0x2d1bd3;};return a21_0x21d7();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4c6938(0x18c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x4c6938(0x1b7)),{sendInstrumentationEvent}=require(a21_0x4c6938(0x18f)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x4c6938(0x1bd)),{getCloudProviderObject}=require(a21_0x4c6938(0x1a5));function a21_0x10bc(_0x14cfea,_0x1103cc){const _0x21d750=a21_0x21d7();return a21_0x10bc=function(_0x10bc13,_0x48fb0a){_0x10bc13=_0x10bc13-0x188;let _0x30fbdb=_0x21d750[_0x10bc13];return _0x30fbdb;},a21_0x10bc(_0x14cfea,_0x1103cc);}exports[a21_0x4c6938(0x1d7)]=a21_0x4c6938(0x1d4),exports['desc']=a21_0x4c6938(0x1a3),exports['builder']=function(_0x4233a2){const _0x1c575f=a21_0x4c6938,_0x276261={};_0x276261[_0x1c575f(0x1a8)]=_0x1c575f(0x1c7),_0x276261[_0x1c575f(0x1d2)]=_0x1c575f(0x1dd),_0x276261[_0x1c575f(0x19c)]=_0x1c575f(0x19a),_0x276261['rkUeP']=_0x1c575f(0x1a6),_0x276261['yrTHi']='help';const _0x1b9956=_0x276261,_0x5d337f={};_0x5d337f[_0x1c575f(0x1ad)]=_0x1b9956[_0x1c575f(0x1a8)],_0x5d337f[_0x1c575f(0x1c2)]=_0x1b9956[_0x1c575f(0x1d2)];const _0x11dba4={};_0x11dba4['description']=_0x1b9956[_0x1c575f(0x19c)],_0x11dba4[_0x1c575f(0x1c2)]=_0x1b9956['rkUeP'],_0x11dba4['default']=![];const _0x4c3e02={};return _0x4c3e02['grid-id']=_0x5d337f,_0x4c3e02[_0x1c575f(0x196)]=_0x11dba4,_0x4233a2['usage'](HELP_HEADER_MESSAGE[_0x1c575f(0x1ac)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1c575f(0x1b8)](_0x4c3e02)[_0x1c575f(0x1b4)](_0x1b9956['yrTHi'])[_0x1c575f(0x1ab)];},exports[a21_0x4c6938(0x1a9)]=async function(_0x2ea5b6){const _0x585ba1=a21_0x4c6938,_0x3c7620={'TEpfV':_0x585ba1(0x18b),'aNVtO':function(_0x227fdb){return _0x227fdb();},'qkhIY':_0x585ba1(0x1b3),'HBdzT':function(_0x15bd7e,_0x327bfd,_0x3e6601,_0x113425,_0x38fcd6,_0x1ac93a,_0x599be7){return _0x15bd7e(_0x327bfd,_0x3e6601,_0x113425,_0x38fcd6,_0x1ac93a,_0x599be7);},'JTqHL':_0x585ba1(0x1a4),'LTvFO':'init-not-called','Lnpzl':function(_0x48d895,_0x95a6a0,_0x45f8d1,_0x4fdc50,_0x457b69,_0x42ad8b,_0x5cee71){return _0x48d895(_0x95a6a0,_0x45f8d1,_0x4fdc50,_0x457b69,_0x42ad8b,_0x5cee71);},'qsqMN':function(_0x5243f1){return _0x5243f1();},'lySdU':_0x585ba1(0x1c0),'MJkuD':'<PasswordPlaceholder>','TqLrJ':_0x585ba1(0x194),'gMbCn':function(_0x907627,_0x19b94f,_0x144d71,_0xab3615){return _0x907627(_0x19b94f,_0x144d71,_0xab3615);},'MzytS':function(_0x70fc27,_0x383dc2,_0x2a5418){return _0x70fc27(_0x383dc2,_0x2a5418);},'QczWR':'Grid\x20stoppped.','ahNoQ':function(_0x14194b,_0x3cacc9){return _0x14194b===_0x3cacc9;},'DvvBv':_0x585ba1(0x1b9),'EKBCK':function(_0x4a6c06,_0x788bbb,_0x4a8840,_0x4eb470,_0x4a5027,_0x393200,_0x832615){return _0x4a6c06(_0x788bbb,_0x4a8840,_0x4eb470,_0x4a5027,_0x393200,_0x832615);},'CfoLN':_0x585ba1(0x189),'hLtPO':function(_0x457598,_0x2aaa4f){return _0x457598===_0x2aaa4f;},'muMJz':'invalid-grid-id','JEYUa':_0x585ba1(0x1bc)};let _0x445c83;try{!_0x2ea5b6[_0x585ba1(0x1a2)]&&(logger[_0x585ba1(0x199)](_0x3c7620[_0x585ba1(0x1b0)]),process[_0x585ba1(0x18e)](0x1));!fs[_0x585ba1(0x1d9)](_0x3c7620[_0x585ba1(0x19e)](getCredentialsPath))&&(logger[_0x585ba1(0x199)](_0x3c7620[_0x585ba1(0x18d)]),await _0x3c7620[_0x585ba1(0x1a7)](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620[_0x585ba1(0x1d5)],messageTypes['ERROR'],_0x3c7620[_0x585ba1(0x1bf)],null,_0x2ea5b6),process[_0x585ba1(0x18e)](0x1));logger[_0x585ba1(0x1d8)]('Stopping\x20grid\x20'+_0x2ea5b6[_0x585ba1(0x1a2)]),await _0x3c7620[_0x585ba1(0x1c3)](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620[_0x585ba1(0x1d5)],messageTypes[_0x585ba1(0x1cd)],null,null,_0x2ea5b6);const _0x4ff244=JSON[_0x585ba1(0x195)](fs[_0x585ba1(0x192)](_0x3c7620[_0x585ba1(0x1ce)](getCredentialsPath)));global_registry[_0x585ba1(0x1d0)]=_0x4ff244[_0x585ba1(0x18a)]['username'],global_registry[_0x585ba1(0x1db)]=_0x4ff244[_0x585ba1(0x18a)][_0x585ba1(0x19d)];const _0x2ebdea=WS_ENDPOINT['replace'](_0x3c7620['lySdU'],_0x4ff244[_0x585ba1(0x18a)]['username'])['replace'](_0x3c7620[_0x585ba1(0x1c1)],_0x4ff244[_0x585ba1(0x18a)]['password']),_0x3af231={};_0x3af231[_0x585ba1(0x1a0)]=ws,_0x3af231[_0x585ba1(0x1c6)]=0x36ee80,_0x445c83=new ReconnectingWebSocket(_0x2ebdea,[],_0x3af231),logger[_0x585ba1(0x1c4)](_0x3c7620[_0x585ba1(0x1aa)]),webSocketUtils[_0x585ba1(0x1ae)](_0x445c83,_0x2ea5b6['user'],_0x2ea5b6[_0x585ba1(0x19d)]);const [_0x2f1ebc,_0x38e195]=await _0x3c7620['gMbCn'](getGridDetails,_0x4ff244[_0x585ba1(0x18a)][_0x585ba1(0x1cb)],_0x4ff244['Browserstack'][_0x585ba1(0x19d)],_0x2ea5b6[_0x585ba1(0x1a2)]);if(_0x38e195){const _0x3d228a=_0x38e195[_0x585ba1(0x1d8)];global_registry['cloudProvider']=_0x3d228a[_0x585ba1(0x1a1)],global_registry[_0x585ba1(0x1cf)]=_0x3d228a['region'],global_registry['clusterName']=_0x3d228a['clusterName'];const _0x1524a3=await _0x3c7620['Lnpzl'](getCloudProviderObject,_0x3d228a[_0x585ba1(0x1a1)],_0x3d228a[_0x585ba1(0x1dc)],_0x3d228a[_0x585ba1(0x188)],_0x445c83,webSocketUtils,_0x2ea5b6),[_0x5e896c,_0x599abb,_0x984908,_0xf81522,_0x13a0df,_0x5d5855]=await _0x3c7620[_0x585ba1(0x1cc)](createK8sClient,_0x1524a3,_0x2ea5b6['skipTlsCertVerify']);await _0x3c7620[_0x585ba1(0x1cc)](scaleDownHubDeployment,_0x599abb,_0x3d228a['name']),logger[_0x585ba1(0x1d8)](_0x3c7620[_0x585ba1(0x1b1)]),process['exit'](0x0);}_0x3c7620[_0x585ba1(0x1c8)](_0x2f1ebc['statusCode'],0x191)&&(logger[_0x585ba1(0x199)](_0x3c7620[_0x585ba1(0x1c9)]),await _0x3c7620[_0x585ba1(0x1da)](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620[_0x585ba1(0x1d5)],messageTypes[_0x585ba1(0x1b2)],_0x3c7620['CfoLN'],null,_0x2ea5b6),process[_0x585ba1(0x18e)](0x1)),_0x3c7620['hLtPO'](_0x2f1ebc[_0x585ba1(0x19f)],0x190)&&(logger['error'](JSON['parse'](_0x2f1ebc[_0x585ba1(0x1bb)])[_0x585ba1(0x1b5)]),await _0x3c7620[_0x585ba1(0x1da)](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620['JTqHL'],messageTypes[_0x585ba1(0x1b2)],_0x3c7620[_0x585ba1(0x1af)],null,_0x2ea5b6),process[_0x585ba1(0x18e)](0x1)),logger[_0x585ba1(0x199)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2f1ebc)),await _0x3c7620['HBdzT'](sendInstrumentationEvent,_0x2ea5b6,_0x3c7620[_0x585ba1(0x1d5)],messageTypes['ERROR'],_0x3c7620['JEYUa'],_0x2f1ebc,_0x2ea5b6),process[_0x585ba1(0x18e)](0x1);}catch(_0x3593a4){const _0x2d33c5=_0x585ba1(0x1d3)+_0x3593a4+'\x20\x0a'+JSON[_0x585ba1(0x1d6)](_0x3593a4['stack'])+'\x20';logger[_0x585ba1(0x199)](_0x2d33c5),process[_0x585ba1(0x18e)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x5baf08=a22_0x52ff;(function(_0x136883,_0x41cd55){const _0x18a609=a22_0x52ff,_0x470f50=_0x136883();while(!![]){try{const _0x158f42=parseInt(_0x18a609(0x164))/0x1+parseInt(_0x18a609(0x18d))/0x2+parseInt(_0x18a609(0x168))/0x3+-parseInt(_0x18a609(0x18b))/0x4+parseInt(_0x18a609(0x14c))/0x5*(parseInt(_0x18a609(0x143))/0x6)+-parseInt(_0x18a609(0x19e))/0x7*(parseInt(_0x18a609(0x178))/0x8)+parseInt(_0x18a609(0x189))/0x9*(-parseInt(_0x18a609(0x157))/0xa);if(_0x158f42===_0x41cd55)break;else _0x470f50['push'](_0x470f50['shift']());}catch(_0xcc0da9){_0x470f50['push'](_0x470f50['shift']());}}}(a22_0xbc91,0x7615a),require('dotenv')['config']());let gridURL=a22_0x5baf08(0x193),bsApiUrl=a22_0x5baf08(0x153),agApiUrl=a22_0x5baf08(0x19d);const _env=(process['env'][a22_0x5baf08(0x15a)]||a22_0x5baf08(0x174))[a22_0x5baf08(0x1a0)]();if(_env===a22_0x5baf08(0x149)||_env===a22_0x5baf08(0x13c))gridURL=a22_0x5baf08(0x161),bsApiUrl=a22_0x5baf08(0x18a),agApiUrl=a22_0x5baf08(0x197);else(_env===a22_0x5baf08(0x16b)||_env===a22_0x5baf08(0x1a3))&&(gridURL=a22_0x5baf08(0x16e),bsApiUrl=a22_0x5baf08(0x19b),agApiUrl=a22_0x5baf08(0x182));exports['DASHBOARD_ENDPOINT']=process[a22_0x5baf08(0x175)][a22_0x5baf08(0x14a)]||gridURL,exports[a22_0x5baf08(0x159)]=process[a22_0x5baf08(0x175)][a22_0x5baf08(0x159)]||bsApiUrl,exports[a22_0x5baf08(0x158)]=process[a22_0x5baf08(0x175)][a22_0x5baf08(0x158)]||agApiUrl,exports[a22_0x5baf08(0x14d)]='wss://'+this[a22_0x5baf08(0x158)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x5baf08(0x156)]=a22_0x5baf08(0x150),exports[a22_0x5baf08(0x184)]='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']=a22_0x5baf08(0x188),exports[a22_0x5baf08(0x16f)]=a22_0x5baf08(0x13b),exports['CLUSTER_DEP_STACK_NAME']=a22_0x5baf08(0x176),exports[a22_0x5baf08(0x146)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x5baf08(0x13e)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x5baf08(0x15f)]=a22_0x5baf08(0x16a),exports[a22_0x5baf08(0x195)]=a22_0x5baf08(0x163),exports[a22_0x5baf08(0x16c)]=a22_0x5baf08(0x17d),exports[a22_0x5baf08(0x154)]=[this[a22_0x5baf08(0x16f)],this['AZURE'],this[a22_0x5baf08(0x16c)]];const a22_0x7d4e75={};a22_0x7d4e75[a22_0x5baf08(0x14b)]=a22_0x5baf08(0x151),a22_0x7d4e75[a22_0x5baf08(0x186)]=a22_0x5baf08(0x185);const a22_0x590f30={};a22_0x590f30['Key']=a22_0x5baf08(0x141),a22_0x590f30[a22_0x5baf08(0x186)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x7d4e75,a22_0x590f30];if(process[a22_0x5baf08(0x175)][a22_0x5baf08(0x15c)]){const parsedTags=process[a22_0x5baf08(0x175)][a22_0x5baf08(0x15c)][a22_0x5baf08(0x165)](',');parsedTags[a22_0x5baf08(0x192)](_0x5752ac=>{const _0x1caab1=a22_0x5baf08,_0xd4e93c=_0x5752ac[_0x1caab1(0x165)](':'),_0x1661f5={};_0x1661f5[_0x1caab1(0x14b)]=_0xd4e93c[0x0],_0x1661f5[_0x1caab1(0x186)]=_0xd4e93c[0x1],common_hst_tags_list['push'](_0x1661f5);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x2dc0ec={};a22_0x2dc0ec[a22_0x5baf08(0x151)]=a22_0x5baf08(0x185),a22_0x2dc0ec[a22_0x5baf08(0x141)]=a22_0x5baf08(0x14f),exports[a22_0x5baf08(0x147)]=a22_0x2dc0ec,exports[a22_0x5baf08(0x181)]=[this[a22_0x5baf08(0x16f)]];const a22_0x41ecc5={};a22_0x41ecc5[a22_0x5baf08(0x15d)]=a22_0x5baf08(0x190),a22_0x41ecc5[a22_0x5baf08(0x19a)]=a22_0x5baf08(0x173),a22_0x41ecc5['GRID_URL']='gridUrl',a22_0x41ecc5[a22_0x5baf08(0x187)]='cliRunStarted',a22_0x41ecc5['CLI_RUN_FINISHED']=a22_0x5baf08(0x18e),exports['WS_EVENTS']=a22_0x41ecc5,exports['global_registry']={},exports[a22_0x5baf08(0x140)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a22_0x39d9f0={};a22_0x39d9f0['root']=a22_0x5baf08(0x162)+this[a22_0x5baf08(0x140)],a22_0x39d9f0[a22_0x5baf08(0x17c)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x5baf08(0x140)],a22_0x39d9f0[a22_0x5baf08(0x183)]=a22_0x5baf08(0x16d)+this[a22_0x5baf08(0x140)],a22_0x39d9f0[a22_0x5baf08(0x1a1)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x39d9f0[a22_0x5baf08(0x13a)]={},a22_0x39d9f0[a22_0x5baf08(0x142)]=a22_0x5baf08(0x179)+this[a22_0x5baf08(0x140)],a22_0x39d9f0[a22_0x5baf08(0x19c)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x5baf08(0x140)],a22_0x39d9f0['start']=a22_0x5baf08(0x169)+this['LINK_MESSAGE'],a22_0x39d9f0['stop']=a22_0x5baf08(0x18c)+this[a22_0x5baf08(0x140)],a22_0x39d9f0[a22_0x5baf08(0x155)]='\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.'+this[a22_0x5baf08(0x140)],a22_0x39d9f0[a22_0x5baf08(0x13a)][a22_0x5baf08(0x160)]=a22_0x5baf08(0x198)+this[a22_0x5baf08(0x140)],a22_0x39d9f0[a22_0x5baf08(0x13a)][a22_0x5baf08(0x17a)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x39d9f0[a22_0x5baf08(0x13a)]['gridProfile']=a22_0x5baf08(0x17b)+this[a22_0x5baf08(0x140)],exports[a22_0x5baf08(0x196)]=a22_0x39d9f0,exports[a22_0x5baf08(0x14e)]=a22_0x5baf08(0x152);const a22_0x3ba864={};a22_0x3ba864[a22_0x5baf08(0x194)]=a22_0x5baf08(0x17f),a22_0x3ba864[a22_0x5baf08(0x167)]=a22_0x5baf08(0x180),a22_0x3ba864[a22_0x5baf08(0x166)]='info',a22_0x3ba864[a22_0x5baf08(0x15e)]=a22_0x5baf08(0x177),a22_0x3ba864[a22_0x5baf08(0x145)]=a22_0x5baf08(0x1a2),a22_0x3ba864[a22_0x5baf08(0x18f)]=null,exports[a22_0x5baf08(0x13f)]=a22_0x3ba864,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5baf08(0x148)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5baf08(0x144)]=a22_0x5baf08(0x191);const a22_0x3df5ad={};function a22_0xbc91(){const _0x354679=['IAM_USER_NAME','BrowserStack','Value','CLI_RUN_STARTED','high-scale-grid','81BYbvMm','api-devhst.bsstag.com','3118552dhpQKg','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','1206146NjjLaT','cliRunFinished','NULL','log','[REDACTED]','forEach','grid.browserstack.com','SUCCESS','AZURE','HELP_HEADER_MESSAGE','grid-api-devhst.bsstag.com','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','REGION','RESOURCES','api-preprod.bsstag.com','connect','grid-api.browserstack.com','56nkAooM','high-scale-grid-cluster','toLowerCase','create','unknown','pre-prod','DEFAULT_CLUSTER_DETAILS','grid-profile','list','aws','stag','TRIAL_GRID_URL','CLUSTER_HUB_HA_STACK_NAME','messageTypes','LINK_MESSAGE','browserstack:service','delete','6narVBx','REDACTED','UNKNOWN','CLUSTER_AUTOSCALER_STACK_NAME','HST_CLUSTER_TAGS','RAW_ARGS_REGEX','staging','DASHBOARD_ENDPOINT','Key','31885oBkrhG','WS_ENDPOINT','HELP_FOOTER_MESSAGE','BrowserStack-Automate-TurboScale','credentials','browserstack:managedBy','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','api.browserstack.com','ALL_SUPPORTED_CLOUD_PROVIDERS','pre_check','CP_CONFIG_FILE','489770PzdcRd','AG_API_URL','BS_API_URL','BROWSERSTACK_ENV','MessageDescription','TURBOSCALE_CUSTOM_TAGS','LOG','WARNING','TURBOSCALE_DEPLOYMENT','root','grid-devhst.bsstag.com','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','azure','749635SmxJvb','split','INFO','ERROR','2885556rbFGav','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','browserstack-turboscale-grid','preprod','GCP','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','grid-preprod.bsstag.com','AWS','us-east-1','pre-check','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','resourceInfo','prod','env','BSTACK-ATS-CLUSTER','warning','616832EYmwuB','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','grid','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','init','gcp','CLUSTER','success','error','SUPPORTED_CLOUD_PROVIDERS','grid-api-preprod.bsstag.com','configure'];a22_0xbc91=function(){return _0x354679;};return a22_0xbc91();}a22_0x3df5ad[a22_0x5baf08(0x1a5)]=a22_0x5baf08(0x172);const a22_0x30a291={};a22_0x30a291[a22_0x5baf08(0x171)]=a22_0x3df5ad,exports[a22_0x5baf08(0x15b)]=a22_0x30a291,exports[a22_0x5baf08(0x13d)]='https://nroujxly-hub.browserstack-ats.com/wd/hub/status';function a22_0x52ff(_0x3f0b20,_0x46feb2){const _0xbc91a4=a22_0xbc91();return a22_0x52ff=function(_0x52ff10,_0x292257){_0x52ff10=_0x52ff10-0x13a;let _0x1dd650=_0xbc91a4[_0x52ff10];return _0x1dd650;},a22_0x52ff(_0x3f0b20,_0x46feb2);}const a22_0x531c7f={};a22_0x531c7f[a22_0x5baf08(0x17e)]=a22_0x5baf08(0x19f),a22_0x531c7f['CLOUD_PROVIDER']=a22_0x5baf08(0x13b),a22_0x531c7f[a22_0x5baf08(0x199)]=a22_0x5baf08(0x170),exports[a22_0x5baf08(0x1a4)]=a22_0x531c7f;
1
+ const a22_0x432e54=a22_0x5c23;(function(_0x5993f6,_0x10f937){const _0xbda1a6=a22_0x5c23,_0x13334a=_0x5993f6();while(!![]){try{const _0x162f16=-parseInt(_0xbda1a6(0x1cf))/0x1*(-parseInt(_0xbda1a6(0x181))/0x2)+-parseInt(_0xbda1a6(0x19b))/0x3+parseInt(_0xbda1a6(0x1a0))/0x4*(-parseInt(_0xbda1a6(0x195))/0x5)+parseInt(_0xbda1a6(0x1de))/0x6*(-parseInt(_0xbda1a6(0x1e1))/0x7)+parseInt(_0xbda1a6(0x194))/0x8+parseInt(_0xbda1a6(0x1aa))/0x9*(parseInt(_0xbda1a6(0x191))/0xa)+parseInt(_0xbda1a6(0x178))/0xb;if(_0x162f16===_0x10f937)break;else _0x13334a['push'](_0x13334a['shift']());}catch(_0x19f7af){_0x13334a['push'](_0x13334a['shift']());}}}(a22_0x21d3,0x271e3),require('dotenv')[a22_0x432e54(0x1c3)]());let gridURL=a22_0x432e54(0x1b4),bsApiUrl=a22_0x432e54(0x1a4),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x432e54(0x196)]['BROWSERSTACK_ENV']||'prod')['toLowerCase']();if(_env===a22_0x432e54(0x1dd)||_env===a22_0x432e54(0x1d7))gridURL=a22_0x432e54(0x18e),bsApiUrl=a22_0x432e54(0x192),agApiUrl=a22_0x432e54(0x1db);else(_env===a22_0x432e54(0x197)||_env===a22_0x432e54(0x173))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x432e54(0x188),agApiUrl='grid-api-preprod.bsstag.com');exports[a22_0x432e54(0x198)]=process[a22_0x432e54(0x196)][a22_0x432e54(0x198)]||gridURL,exports['BS_API_URL']=process[a22_0x432e54(0x196)][a22_0x432e54(0x1c1)]||bsApiUrl,exports[a22_0x432e54(0x1b3)]=process[a22_0x432e54(0x196)][a22_0x432e54(0x1b3)]||agApiUrl,exports[a22_0x432e54(0x19c)]=a22_0x432e54(0x1cb)+this['AG_API_URL']+a22_0x432e54(0x1da),exports[a22_0x432e54(0x1ae)]=a22_0x432e54(0x1be),exports['IAM_USER_NAME']=a22_0x432e54(0x1d4),exports['DEFAULT_GRID_NAME']=a22_0x432e54(0x193),exports['AWS']=a22_0x432e54(0x1df),exports[a22_0x432e54(0x1e2)]=a22_0x432e54(0x19a),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a22_0x432e54(0x1bd),exports[a22_0x432e54(0x1ba)]=a22_0x432e54(0x1b1),exports[a22_0x432e54(0x185)]=a22_0x432e54(0x180),exports[a22_0x432e54(0x1b9)]='azure',exports[a22_0x432e54(0x171)]=a22_0x432e54(0x1d0),exports[a22_0x432e54(0x17d)]=[this[a22_0x432e54(0x1bf)],this['AZURE'],this['GCP']];const a22_0x1fd944={};a22_0x1fd944[a22_0x432e54(0x182)]='browserstack:managedBy',a22_0x1fd944[a22_0x432e54(0x187)]='BrowserStack';const a22_0x3baa88={};a22_0x3baa88[a22_0x432e54(0x182)]=a22_0x432e54(0x1d1),a22_0x3baa88['Value']=a22_0x432e54(0x172);const common_hst_tags_list=[a22_0x1fd944,a22_0x3baa88];if(process[a22_0x432e54(0x196)][a22_0x432e54(0x18b)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x432e54(0x1c0)](',');parsedTags[a22_0x432e54(0x1a2)](_0x3936de=>{const _0x2090d5=a22_0x432e54,_0x575af5=_0x3936de[_0x2090d5(0x1c0)](':'),_0xdf259={};_0xdf259[_0x2090d5(0x182)]=_0x575af5[0x0],_0xdf259[_0x2090d5(0x187)]=_0x575af5[0x1],common_hst_tags_list[_0x2090d5(0x1c2)](_0xdf259);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x578a87={};a22_0x578a87[a22_0x432e54(0x18a)]=a22_0x432e54(0x190),a22_0x578a87[a22_0x432e54(0x1d1)]=a22_0x432e54(0x172),exports[a22_0x432e54(0x1b8)]=a22_0x578a87,exports[a22_0x432e54(0x1cc)]=[this[a22_0x432e54(0x1bf)]];const a22_0x1e8a02={};a22_0x1e8a02[a22_0x432e54(0x1dc)]=a22_0x432e54(0x1ac),a22_0x1e8a02[a22_0x432e54(0x1b5)]=a22_0x432e54(0x189),a22_0x1e8a02[a22_0x432e54(0x175)]=a22_0x432e54(0x1d8),a22_0x1e8a02[a22_0x432e54(0x1b0)]=a22_0x432e54(0x1ce),a22_0x1e8a02[a22_0x432e54(0x199)]=a22_0x432e54(0x1a6),exports[a22_0x432e54(0x1a1)]=a22_0x1e8a02,exports['global_registry']={},exports[a22_0x432e54(0x1c5)]=a22_0x432e54(0x183);const a22_0x560968={};function a22_0x21d3(){const _0x248b01=['57022ixPOPe','CLUSTER_DEP_STACK_NAME','CLUSTER','GCP','BrowserStack-Automate-TurboScale','pre-prod','unknown','GRID_URL','REGION','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','5215265dPuHmP','WARNING','warning','[REDACTED]','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','ALL_SUPPORTED_CLOUD_PROVIDERS','REDACTED','grid-profile','browserstack-turboscale-grid','19036JazAbG','Key','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','root','TURBOSCALE_DEPLOYMENT','init','Value','api-preprod.bsstag.com','resourceInfo','browserstack:managedBy','TURBOSCALE_CUSTOM_TAGS','list','pre-check','grid-devhst.bsstag.com','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BrowserStack','50rTgkXz','api-devhst.bsstag.com','high-scale-grid','471488iHjoYU','423740SHIWRI','env','preprod','DASHBOARD_ENDPOINT','CLI_RUN_FINISHED','BSTACK-ATS-CLUSTER','685221jjgzNk','WS_ENDPOINT','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','UNKNOWN','create','12DBMDDs','WS_EVENTS','forEach','ERROR','api.browserstack.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','cliRunFinished','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','us-east-1','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','576297rbthKr','success','log','CLOUD_PROVIDER','CP_CONFIG_FILE','TRIAL_GRID_URL','CLI_RUN_STARTED','BSTACK-ATS-CLUSTER-HUB-HA','info','AG_API_URL','grid.browserstack.com','RESOURCES','HELP_HEADER_MESSAGE','connect','HST_CLUSTER_TAGS','AZURE','CLUSTER_HUB_HA_STACK_NAME','CLI_ARGS_REGEX','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','BSTACK-ATS-CLUSTER-AUTOSCALER','credentials','AWS','split','BS_API_URL','push','config','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','LINK_MESSAGE','SUCCESS','gridProfile','INFO','error','high-scale-grid-cluster','wss://','SUPPORTED_CLOUD_PROVIDERS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','cliRunStarted','7uUBDaw','gcp','browserstack:service','pre_check','messageTypes','BrowserStackIAMUser','NULL','start','stag','gridUrl','HELP_FOOTER_MESSAGE','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','grid-api-devhst.bsstag.com','LOG','staging','204NXwLla','aws','DEFAULT_CLUSTER_DETAILS'];a22_0x21d3=function(){return _0x248b01;};return a22_0x21d3();}a22_0x560968[a22_0x432e54(0x184)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this['LINK_MESSAGE'],a22_0x560968[a22_0x432e54(0x186)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x432e54(0x1c5)],a22_0x560968['configure']=a22_0x432e54(0x1a5)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x19f)]=a22_0x432e54(0x177)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x18c)]={},a22_0x560968['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x1b7)]=a22_0x432e54(0x1a9)+this['LINK_MESSAGE'],a22_0x560968[a22_0x432e54(0x1d6)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x432e54(0x1c5)],a22_0x560968['stop']=a22_0x432e54(0x19d)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x1d2)]=a22_0x432e54(0x17c)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x18c)][a22_0x432e54(0x184)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this['LINK_MESSAGE'],a22_0x560968[a22_0x432e54(0x18c)]['grid']=a22_0x432e54(0x1bc)+this[a22_0x432e54(0x1c5)],a22_0x560968[a22_0x432e54(0x18c)][a22_0x432e54(0x1c7)]=a22_0x432e54(0x1cd)+this['LINK_MESSAGE'],exports[a22_0x432e54(0x1b6)]=a22_0x560968,exports[a22_0x432e54(0x1d9)]=a22_0x432e54(0x1a7);const a22_0x30a5cf={};a22_0x30a5cf[a22_0x432e54(0x1c6)]=a22_0x432e54(0x1ab),a22_0x30a5cf[a22_0x432e54(0x1a3)]=a22_0x432e54(0x1c9),a22_0x30a5cf[a22_0x432e54(0x1c8)]=a22_0x432e54(0x1b2),a22_0x30a5cf[a22_0x432e54(0x179)]=a22_0x432e54(0x17a),a22_0x30a5cf[a22_0x432e54(0x19e)]=a22_0x432e54(0x174),a22_0x30a5cf[a22_0x432e54(0x1d5)]=null,exports[a22_0x432e54(0x1d3)]=a22_0x30a5cf,exports[a22_0x432e54(0x1bb)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x432e54(0x17e)]=a22_0x432e54(0x17b);const a22_0x57a65b={};a22_0x57a65b[a22_0x432e54(0x17f)]=a22_0x432e54(0x1c4);const a22_0x27953d={};function a22_0x5c23(_0x17b3d4,_0x35792b){const _0x21d381=a22_0x21d3();return a22_0x5c23=function(_0x5c23a0,_0x4644fa){_0x5c23a0=_0x5c23a0-0x171;let _0x43b623=_0x21d381[_0x5c23a0];return _0x43b623;},a22_0x5c23(_0x17b3d4,_0x35792b);}a22_0x27953d[a22_0x432e54(0x18d)]=a22_0x57a65b,exports['MessageDescription']=a22_0x27953d,exports[a22_0x432e54(0x1af)]=a22_0x432e54(0x18f);const a22_0x7c3279={};a22_0x7c3279[a22_0x432e54(0x1e3)]=a22_0x432e54(0x1ca),a22_0x7c3279[a22_0x432e54(0x1ad)]=a22_0x432e54(0x1df),a22_0x7c3279[a22_0x432e54(0x176)]=a22_0x432e54(0x1a8),exports[a22_0x432e54(0x1e0)]=a22_0x7c3279;
@@ -1 +1 @@
1
- function a23_0x5ce3(_0x2b36bb,_0x9737b){const _0x486624=a23_0x4866();return a23_0x5ce3=function(_0x5ce327,_0x18a983){_0x5ce327=_0x5ce327-0x185;let _0x4703ce=_0x486624[_0x5ce327];return _0x4703ce;},a23_0x5ce3(_0x2b36bb,_0x9737b);}const a23_0x3ea4a6=a23_0x5ce3;(function(_0x4c383f,_0x273010){const _0x120c95=a23_0x5ce3,_0x97ab20=_0x4c383f();while(!![]){try{const _0x4c21b5=-parseInt(_0x120c95(0x18a))/0x1+parseInt(_0x120c95(0x193))/0x2*(parseInt(_0x120c95(0x1a4))/0x3)+parseInt(_0x120c95(0x190))/0x4*(parseInt(_0x120c95(0x1a0))/0x5)+-parseInt(_0x120c95(0x199))/0x6+-parseInt(_0x120c95(0x18b))/0x7+-parseInt(_0x120c95(0x1a5))/0x8*(-parseInt(_0x120c95(0x19c))/0x9)+-parseInt(_0x120c95(0x198))/0xa*(-parseInt(_0x120c95(0x19e))/0xb);if(_0x4c21b5===_0x273010)break;else _0x97ab20['push'](_0x97ab20['shift']());}catch(_0x452aff){_0x97ab20['push'](_0x97ab20['shift']());}}}(a23_0x4866,0xd8369));const winston=require(a23_0x3ea4a6(0x186)),fs=require('fs'),path=require('path'),logDir=a23_0x3ea4a6(0x188);!fs[a23_0x3ea4a6(0x18d)](logDir)&&fs[a23_0x3ea4a6(0x194)](logDir);const a23_0x18ec0b={};a23_0x18ec0b[a23_0x3ea4a6(0x196)]=a23_0x3ea4a6(0x18f);const a23_0x45327c={};a23_0x45327c['level']=!![];const a23_0x756377={};a23_0x756377[a23_0x3ea4a6(0x1a3)]=a23_0x3ea4a6(0x19b),exports[a23_0x3ea4a6(0x191)]=new winston['createLogger']({'format':winston[a23_0x3ea4a6(0x196)][a23_0x3ea4a6(0x185)](winston['format'][a23_0x3ea4a6(0x189)](a23_0x18ec0b),winston[a23_0x3ea4a6(0x196)][a23_0x3ea4a6(0x19f)](a23_0x45327c),winston[a23_0x3ea4a6(0x196)]['printf'](_0x12a10b=>_0x12a10b['timestamp']+a23_0x3ea4a6(0x19a)+_0x12a10b[a23_0x3ea4a6(0x187)]+':\x20'+_0x12a10b[a23_0x3ea4a6(0x1a1)])),'transports':[new winston[(a23_0x3ea4a6(0x192))][(a23_0x3ea4a6(0x197))](a23_0x756377),new winston['transports'][(a23_0x3ea4a6(0x1a2))]({'filename':path['join'](logDir,a23_0x3ea4a6(0x19d)),'level':a23_0x3ea4a6(0x195)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3ea4a6(0x192))]['File']({'filename':path[a23_0x3ea4a6(0x18e)](logDir,'usage.log'),'level':a23_0x3ea4a6(0x195)})]};function a23_0x4866(){const _0x534595=['format','Console','230hegRuZ','4914456OWzkHs','\x20-\x20','console.info','6214410tDHxsE','events.log','410333OcYVvw','colorize','20PsvMSr','message','File','name','687qwxKoq','16WwMlDc','combine','winston','level','log','timestamp','728681zRzlqL','4478166WwpXTE','fileLogger','existsSync','join','YYYY-MM-DD\x20HH:mm:ss','169368cVNhEN','logger','transports','5806xVetBL','mkdirSync','debug'];a23_0x4866=function(){return _0x534595;};return a23_0x4866();}exports[a23_0x3ea4a6(0x18c)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a23_0x171afd=a23_0x521a;(function(_0x2cc99a,_0x209e15){const _0x2106fa=a23_0x521a,_0x4e9f73=_0x2cc99a();while(!![]){try{const _0x76ed82=-parseInt(_0x2106fa(0xf7))/0x1+-parseInt(_0x2106fa(0xf4))/0x2+-parseInt(_0x2106fa(0x10b))/0x3+-parseInt(_0x2106fa(0xf0))/0x4+-parseInt(_0x2106fa(0xf3))/0x5*(-parseInt(_0x2106fa(0x105))/0x6)+parseInt(_0x2106fa(0x104))/0x7*(-parseInt(_0x2106fa(0x10f))/0x8)+parseInt(_0x2106fa(0xf5))/0x9;if(_0x76ed82===_0x209e15)break;else _0x4e9f73['push'](_0x4e9f73['shift']());}catch(_0x5756a6){_0x4e9f73['push'](_0x4e9f73['shift']());}}}(a23_0x4f66,0x89de9));const winston=require(a23_0x171afd(0xf6)),fs=require('fs'),path=require(a23_0x171afd(0x106)),logDir=a23_0x171afd(0x10d);!fs[a23_0x171afd(0x10a)](logDir)&&fs[a23_0x171afd(0xf1)](logDir);const a23_0x20e207={};a23_0x20e207[a23_0x171afd(0x109)]=a23_0x171afd(0x100);function a23_0x521a(_0xa2b2da,_0x535720){const _0x4f66c3=a23_0x4f66();return a23_0x521a=function(_0x521aa5,_0x2baeb4){_0x521aa5=_0x521aa5-0xf0;let _0x5b9498=_0x4f66c3[_0x521aa5];return _0x5b9498;},a23_0x521a(_0xa2b2da,_0x535720);}const a23_0x385c3f={};a23_0x385c3f[a23_0x171afd(0x107)]=!![];const a23_0x59adf7={};a23_0x59adf7[a23_0x171afd(0xf2)]=a23_0x171afd(0x101),exports[a23_0x171afd(0x108)]=new winston[(a23_0x171afd(0x103))]({'format':winston[a23_0x171afd(0x109)]['combine'](winston[a23_0x171afd(0x109)][a23_0x171afd(0xfa)](a23_0x20e207),winston[a23_0x171afd(0x109)][a23_0x171afd(0xff)](a23_0x385c3f),winston[a23_0x171afd(0x109)]['printf'](_0x5a883d=>_0x5a883d['timestamp']+a23_0x171afd(0xfc)+_0x5a883d[a23_0x171afd(0x107)]+':\x20'+_0x5a883d[a23_0x171afd(0xfd)])),'transports':[new winston[(a23_0x171afd(0xfe))][(a23_0x171afd(0xf9))](a23_0x59adf7),new winston['transports'][(a23_0x171afd(0x10e))]({'filename':path[a23_0x171afd(0xfb)](logDir,a23_0x171afd(0xf8)),'level':a23_0x171afd(0x102)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x171afd(0xfe))][(a23_0x171afd(0x10e))]({'filename':path[a23_0x171afd(0xfb)](logDir,a23_0x171afd(0x10c)),'level':a23_0x171afd(0x102)})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);function a23_0x4f66(){const _0x3a48c0=['826712SAxSIm','mkdirSync','name','5qNGFzX','1001532MGqdDd','21518262YqTfxB','winston','268875xXyjIp','events.log','Console','timestamp','join','\x20-\x20','message','transports','colorize','YYYY-MM-DD\x20HH:mm:ss','console.info','debug','createLogger','5469751pLvQZT','1164558KdrJNx','path','level','logger','format','existsSync','787758OeqzBb','usage.log','log','File','8zLuIqh'];a23_0x4f66=function(){return _0x3a48c0;};return a23_0x4f66();}
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x559544=a24_0x57d4;(function(_0x270a56,_0x368a11){const _0x1ebdd2=a24_0x57d4,_0x39484f=_0x270a56();while(!![]){try{const _0x1ed779=parseInt(_0x1ebdd2(0x91))/0x1*(-parseInt(_0x1ebdd2(0x95))/0x2)+-parseInt(_0x1ebdd2(0x89))/0x3*(parseInt(_0x1ebdd2(0x8f))/0x4)+-parseInt(_0x1ebdd2(0x92))/0x5*(-parseInt(_0x1ebdd2(0x93))/0x6)+parseInt(_0x1ebdd2(0x8b))/0x7+-parseInt(_0x1ebdd2(0x9d))/0x8+parseInt(_0x1ebdd2(0x98))/0x9*(parseInt(_0x1ebdd2(0x9c))/0xa)+parseInt(_0x1ebdd2(0x94))/0xb*(parseInt(_0x1ebdd2(0x97))/0xc);if(_0x1ed779===_0x368a11)break;else _0x39484f['push'](_0x39484f['shift']());}catch(_0x2504d5){_0x39484f['push'](_0x39484f['shift']());}}}(a24_0x4944,0x67f88));function a24_0x4944(){const _0x14de99=['commands','1344216phtHtp','9xNXzWe','RDZOP','eDebs','demandCommand','6056950TIbbLY','6072384vIrqgs','12OcccMy','./config/constants','647661gCAspc','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','help','env','789196xvpPqL','exports','9UUpwCb','4575dKUKkU','1842enJdgM','121qqmRZL','52714kgtUGa'];a24_0x4944=function(){return _0x14de99;};return a24_0x4944();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x559544(0x8a));function a24_0x57d4(_0x112bc7,_0x174a80){const _0x494446=a24_0x4944();return a24_0x57d4=function(_0x57d482,_0x6ba4b){_0x57d482=_0x57d482-0x89;let _0x1754a7=_0x494446[_0x57d482];return _0x1754a7;},a24_0x57d4(_0x112bc7,_0x174a80);}process[a24_0x559544(0x8e)][a24_0x559544(0x8c)]=0x1;function run(_0x5e61c6){const _0x3f8fb7=a24_0x559544,_0x1d7920={};_0x1d7920[_0x3f8fb7(0x9a)]=_0x3f8fb7(0x96),_0x1d7920[_0x3f8fb7(0x99)]=_0x3f8fb7(0x8d);const _0xb9e600=_0x1d7920;_0x5e61c6['usage'](HELP_HEADER_MESSAGE['root'])['commandDir'](_0xb9e600['eDebs'])[_0x3f8fb7(0x9b)]()[_0x3f8fb7(0x8d)](_0xb9e600[_0x3f8fb7(0x99)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x559544(0x90)]=run;
2
+ 'use strict';const a24_0x2adef1=a24_0x3e52;function a24_0x3e52(_0xb90851,_0x552f71){const _0x4ff377=a24_0x4ff3();return a24_0x3e52=function(_0x3e5218,_0x4a22f4){_0x3e5218=_0x3e5218-0x1e1;let _0x42fb2f=_0x4ff377[_0x3e5218];return _0x42fb2f;},a24_0x3e52(_0xb90851,_0x552f71);}(function(_0x4f4980,_0x156d6d){const _0x5efe0e=a24_0x3e52,_0x2d451a=_0x4f4980();while(!![]){try{const _0xe9b30=-parseInt(_0x5efe0e(0x1e1))/0x1+parseInt(_0x5efe0e(0x1e7))/0x2*(parseInt(_0x5efe0e(0x1e8))/0x3)+parseInt(_0x5efe0e(0x1e6))/0x4*(-parseInt(_0x5efe0e(0x1ec))/0x5)+parseInt(_0x5efe0e(0x1f1))/0x6+-parseInt(_0x5efe0e(0x1e9))/0x7+-parseInt(_0x5efe0e(0x1f2))/0x8*(parseInt(_0x5efe0e(0x1f0))/0x9)+parseInt(_0x5efe0e(0x1ed))/0xa*(parseInt(_0x5efe0e(0x1e3))/0xb);if(_0xe9b30===_0x156d6d)break;else _0x2d451a['push'](_0x2d451a['shift']());}catch(_0x2683fc){_0x2d451a['push'](_0x2d451a['shift']());}}}(a24_0x4ff3,0x9ad94));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2adef1(0x1f3));process[a24_0x2adef1(0x1ea)][a24_0x2adef1(0x1e5)]=0x1;function run(_0x2ce40a){const _0x44bf85=a24_0x2adef1,_0x322e39={};_0x322e39[_0x44bf85(0x1f7)]=_0x44bf85(0x1e2),_0x322e39[_0x44bf85(0x1ee)]=_0x44bf85(0x1f6);const _0x4790be=_0x322e39;_0x2ce40a[_0x44bf85(0x1f5)](HELP_HEADER_MESSAGE['root'])[_0x44bf85(0x1f4)](_0x4790be[_0x44bf85(0x1f7)])[_0x44bf85(0x1e4)]()['help'](_0x4790be[_0x44bf85(0x1ee)])[_0x44bf85(0x1ef)](HELP_FOOTER_MESSAGE);}module[a24_0x2adef1(0x1eb)]=run;function a24_0x4ff3(){const _0x99021=['459080PpuQhQ','./config/constants','commandDir','usage','help','OcNpQ','648082diihYc','commands','55pEOzwq','demandCommand','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','52PUNsif','8oxkQqG','554052aifYQN','1365539XsPzJa','env','exports','13715CFSQEu','1916470KMdiNx','zRUkR','epilogue','198buxJIn','6471462jdtoXj'];a24_0x4ff3=function(){return _0x99021;};return a24_0x4ff3();}