browserstack-node-sdk 1.46.3 → 1.46.4

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 +108 -0
  41. package/generated/sdk-messages_pb.js +830 -0
  42. package/generated/sdk_grpc_pb.d.ts +10 -0
  43. package/generated/sdk_grpc_pb.js +66 -0
  44. package/package.json +1 -1
  45. package/src/ai-sdk-node/bundle.js +1 -1
  46. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  47. package/src/bin/codeceptjs/command.js +1 -1
  48. package/src/bin/codeceptjs/helper.js +1 -1
  49. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  50. package/src/bin/cucumber-js/command.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  52. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  53. package/src/bin/cucumber-js/test-observability.js +1 -1
  54. package/src/bin/cucumber-js/test.setup.js +1 -1
  55. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  56. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  57. package/src/bin/integrations/command.js +1 -1
  58. package/src/bin/integrations/constants.js +1 -1
  59. package/src/bin/jest/command.js +1 -1
  60. package/src/bin/jest/customImplements/customCircus.js +1 -1
  61. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  62. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  63. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  64. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  65. package/src/bin/jest/jest.setup.js +1 -1
  66. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  67. package/src/bin/jest/test-observability/helper.js +1 -1
  68. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  69. package/src/bin/jest/test-observability/test-details.js +1 -1
  70. package/src/bin/jest/test.setup.js +1 -1
  71. package/src/bin/jest/test_before.setup.js +1 -1
  72. package/src/bin/launcher/launcher.js +1 -1
  73. package/src/bin/load/index.js +1 -1
  74. package/src/bin/load/loadUtils.js +1 -1
  75. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  76. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  77. package/src/bin/mocha/command.js +1 -1
  78. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  79. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  80. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  81. package/src/bin/mocha/test.setup.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/runner.js +1 -1
  94. package/src/bin/setup.js +1 -1
  95. package/src/bin/test-runner/index.js +1 -1
  96. package/src/bin/test-runner/runTest.js +1 -1
  97. package/src/bin/test-runner/testWorker.js +1 -1
  98. package/src/bin/utils/apiUtilityMethods.js +1 -1
  99. package/src/bin/utils/clientTroubleshootingService.js +1 -0
  100. package/src/bin/utils/constants.js +1 -1
  101. package/src/bin/utils/log4jsAppender.js +1 -1
  102. package/src/bin/utils/logPatcher.js +1 -1
  103. package/src/bin/utils/logReportingAPI.js +1 -1
  104. package/src/bin/utils/playwright-patcher.js +1 -1
  105. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  106. package/src/bin/utils/sharedUtils.js +1 -1
  107. package/src/bin/v2/TestInfo.js +1 -1
  108. package/src/bin/v2/browserstackCLI.js +1 -1
  109. package/src/bin/v2/cliUtils.js +1 -1
  110. package/src/bin/v2/customTagManager.js +1 -1
  111. package/src/bin/v2/eventDispatcher.js +1 -1
  112. package/src/bin/v2/framework/automationFramework.js +1 -1
  113. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  114. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  115. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  116. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  118. package/src/bin/v2/framework/testFramework.js +1 -1
  119. package/src/bin/v2/grpcClient.js +1 -1
  120. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  121. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  122. package/src/bin/v2/instances/trackedContext.js +1 -1
  123. package/src/bin/v2/instances/trackedInstance.js +1 -1
  124. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  125. package/src/bin/v2/modules/baseModule.js +1 -1
  126. package/src/bin/v2/modules/observabilityModule.js +1 -1
  127. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  128. package/src/bin/v2/modules/testhubModule.js +1 -1
  129. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  130. package/src/bin/v2/state/hookState.js +1 -1
  131. package/src/bin/v2/state/testFrameworkState.js +1 -1
  132. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  133. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  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_0x1f10(){const _0x52cd41=['GavLb','Failed\x20to\x20list\x20resources!\x20Error:\x20','boolean','637xnHUnu','parse','HFrQU','https://','30oMkwFo','Bxtub','GET','ZxBTQ','error','IksnS','stack','uuid','../../utils/instrumentationUtils','MtHdB','usage','348072ZMFclu','bstackAccesskey','677897sdkoZn','cJRuo','got','username','vMpyg','eMvZF','3vTIgkf','GBEhU','ERROR','../../utils/utilityMethods','OTZat','list-grids-called','argv','QikhF','readFileSync','UgUPQ','tzxCb','cluster-name','fYAKC','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','log','forEach','piefA','10HAmdRI','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','desc','YatZP','grid-name','../../config/constants','unknown-error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','queued','help','29082UWvdZy','password','description','119543jABjdJ','init-not-called','cYfpw','jYDsR','exit','requestId','3683889HNtRSE','28010Zyddib','name','type','body','tUUjF','bstackUsername','command','ntYGh','rEHsB','all-grids','IqYFr','Browserstack','stringify','INFO','allGrids','builder','clusterName','table','grids','statusCode','running','handler','status','461732eQJiiY','grid','unauthorised'];a15_0x1f10=function(){return _0x52cd41;};return a15_0x1f10();}const a15_0x596e99=a15_0x3970;(function(_0x202d95,_0x64ccfc){const _0x366a91=a15_0x3970,_0x4023bf=_0x202d95();while(!![]){try{const _0x41d08a=-parseInt(_0x366a91(0xab))/0x1+-parseInt(_0x366a91(0xb2))/0x2*(parseInt(_0x366a91(0x8d))/0x3)+-parseInt(_0x366a91(0x70))/0x4*(parseInt(_0x366a91(0x9e))/0x5)+-parseInt(_0x366a91(0xa8))/0x6*(-parseInt(_0x366a91(0x76))/0x7)+parseInt(_0x366a91(0x85))/0x8+parseInt(_0x366a91(0xb1))/0x9+parseInt(_0x366a91(0x7a))/0xa*(-parseInt(_0x366a91(0x87))/0xb);if(_0x41d08a===_0x64ccfc)break;else _0x4023bf['push'](_0x4023bf['shift']());}catch(_0x21087e){_0x4023bf['push'](_0x4023bf['shift']());}}}(a15_0x1f10,0x54224));const fs=require('fs'),got=require(a15_0x596e99(0x89)),{table}=require(a15_0x596e99(0xc3)),{v4:uuidv4}=require(a15_0x596e99(0x81)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x596e99(0xa3)),{getCredentialsPath,getAuthHeader}=require(a15_0x596e99(0x90)),{sendInstrumentationEvent}=require(a15_0x596e99(0x82));function a15_0x3970(_0x578fac,_0x87c223){const _0x1f1086=a15_0x1f10();return a15_0x3970=function(_0x3970e6,_0x20986a){_0x3970e6=_0x3970e6-0x6f;let _0x5e3ddc=_0x1f1086[_0x3970e6];return _0x5e3ddc;},a15_0x3970(_0x578fac,_0x87c223);}exports[a15_0x596e99(0xb8)]=a15_0x596e99(0xc4),exports[a15_0x596e99(0xa0)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x596e99(0xc1)]=function(_0x586730){const _0x477166=a15_0x596e99,_0x444590={};_0x444590[_0x477166(0x88)]=_0x477166(0x9a),_0x444590['ntYGh']=_0x477166(0x75),_0x444590['YatZP']=_0x477166(0xa7);const _0x2d0334=_0x444590,_0x31de36={};_0x31de36[_0x477166(0xaa)]=_0x2d0334[_0x477166(0x88)],_0x31de36[_0x477166(0xb4)]=_0x2d0334[_0x477166(0xb9)];const _0x4e8462={};return _0x4e8462[_0x477166(0xbb)]=_0x31de36,_0x586730[_0x477166(0x84)](HELP_HEADER_MESSAGE['list'][_0x477166(0x71)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4e8462)[_0x477166(0xa7)](_0x2d0334[_0x477166(0xa1)])[_0x477166(0x93)];},exports[a15_0x596e99(0xc7)]=async function(_0x5bd16d){const _0x1953e3=a15_0x596e99,_0x23fd0c={'Bxtub':function(_0x38d57a){return _0x38d57a();},'ZyTgr':_0x1953e3(0x9f),'tUUjF':function(_0x5cf30f,_0x38505b,_0x32a0af,_0xe1ed4a,_0x3d1c27,_0x487752,_0x2abd12){return _0x5cf30f(_0x38505b,_0x32a0af,_0xe1ed4a,_0x3d1c27,_0x487752,_0x2abd12);},'GBEhU':_0x1953e3(0x92),'mvAoG':_0x1953e3(0xac),'okFSQ':_0x1953e3(0x7c),'cYfpw':function(_0x34f2d,_0x158523,_0x46e4e2){return _0x34f2d(_0x158523,_0x46e4e2);},'HFrQU':function(_0x546dab,_0x4f01c1,_0x8b9b43,_0x27f59b,_0x402ca8,_0x12ee7a,_0x3571f4){return _0x546dab(_0x4f01c1,_0x8b9b43,_0x27f59b,_0x402ca8,_0x12ee7a,_0x3571f4);},'ZxBTQ':function(_0x403132,_0x244643){return _0x403132!==_0x244643;},'rEHsB':function(_0xdaeddf,_0x39203a){return _0xdaeddf!==_0x39203a;},'UgUPQ':function(_0x340fa2,_0xf2bd2e){return _0x340fa2===_0xf2bd2e;},'vMpyg':'\x0aFound\x20the\x20following\x20grids:\x0a','yKfJY':'grid-id','jYDsR':_0x1953e3(0xa2),'IqYFr':_0x1953e3(0x6f),'eMvZF':_0x1953e3(0xc6),'tzxCb':_0x1953e3(0xa6),'GavLb':_0x1953e3(0x98),'MtHdB':function(_0x4ef4e4,_0x195655){return _0x4ef4e4(_0x195655);},'fYAKC':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Joljs':_0x1953e3(0x72),'piefA':function(_0x4b486f,_0x2e0cd6,_0x673c09,_0x38c14f,_0x5b56bb,_0xa89444,_0x1ce0bb){return _0x4b486f(_0x2e0cd6,_0x673c09,_0x38c14f,_0x5b56bb,_0xa89444,_0x1ce0bb);},'OTZat':'server-error','QikhF':function(_0x3cfbcf,_0x4bb09b,_0x48cfea,_0x3e06c4,_0x346320,_0x160647,_0x1d1946){return _0x3cfbcf(_0x4bb09b,_0x48cfea,_0x3e06c4,_0x346320,_0x160647,_0x1d1946);},'IksnS':_0x1953e3(0xa4)};try{global_registry[_0x1953e3(0xb0)]=_0x23fd0c[_0x1953e3(0x7b)](uuidv4);!fs['existsSync'](_0x23fd0c[_0x1953e3(0x7b)](getCredentialsPath))&&(console[_0x1953e3(0x7e)](_0x23fd0c['ZyTgr']),await _0x23fd0c[_0x1953e3(0xb6)](sendInstrumentationEvent,_0x5bd16d,_0x23fd0c[_0x1953e3(0x8e)],messageTypes[_0x1953e3(0x8f)],_0x23fd0c['mvAoG'],null,_0x5bd16d),process[_0x1953e3(0xaf)](0x1));const _0x45e73d=JSON[_0x1953e3(0x77)](fs[_0x1953e3(0x95)](_0x23fd0c['Bxtub'](getCredentialsPath)));let _0x27adcc=_0x1953e3(0x79)+AG_API_URL+'/packages/cli/get-grids';_0x5bd16d[_0x1953e3(0xc0)]&&(_0x27adcc=_0x1953e3(0x79)+AG_API_URL+'/packages/cli/get-all-grids');const _0x440153={'method':_0x23fd0c['okFSQ'],'headers':_0x23fd0c[_0x1953e3(0xad)](getAuthHeader,_0x45e73d[_0x1953e3(0xbd)]['username'],_0x45e73d[_0x1953e3(0xbd)]['password']),'throwHttpErrors':![]};global_registry[_0x1953e3(0xb7)]=_0x45e73d[_0x1953e3(0xbd)][_0x1953e3(0x8a)],global_registry[_0x1953e3(0x86)]=_0x45e73d[_0x1953e3(0xbd)][_0x1953e3(0xa9)],_0x23fd0c[_0x1953e3(0x78)](sendInstrumentationEvent,_0x5bd16d,_0x23fd0c[_0x1953e3(0x8e)],messageTypes[_0x1953e3(0xbf)],null,null,_0x5bd16d);const _0x4cf0b8=await _0x23fd0c['cYfpw'](got,_0x27adcc,_0x440153);if(_0x23fd0c[_0x1953e3(0x7d)](_0x4cf0b8,null)&&_0x23fd0c[_0x1953e3(0xba)](_0x4cf0b8,undefined)&&_0x23fd0c[_0x1953e3(0x96)](_0x4cf0b8[_0x1953e3(0xc5)],0xc8)){const _0x3e48d=JSON[_0x1953e3(0x77)](_0x4cf0b8[_0x1953e3(0xb5)]);console[_0x1953e3(0x9b)](_0x23fd0c[_0x1953e3(0x8b)]);const _0x5553e5=[];_0x5553e5['push']([_0x23fd0c['yKfJY'],_0x23fd0c[_0x1953e3(0xae)],_0x23fd0c[_0x1953e3(0xbc)],_0x23fd0c[_0x1953e3(0x8c)],_0x23fd0c[_0x1953e3(0x97)],_0x23fd0c[_0x1953e3(0x73)]]),_0x3e48d[_0x1953e3(0x9c)](_0x22066c=>{const _0x5d6b30=_0x1953e3;_0x5553e5['push']([_0x22066c['id'],_0x22066c[_0x5d6b30(0xb3)],_0x22066c['status'],_0x22066c[_0x5d6b30(0xc6)],_0x22066c[_0x5d6b30(0xa6)],_0x22066c[_0x5d6b30(0xc2)]]);}),console[_0x1953e3(0x9b)](_0x23fd0c[_0x1953e3(0x83)](table,_0x5553e5)),process[_0x1953e3(0xaf)](0x0);}_0x23fd0c[_0x1953e3(0x96)](_0x4cf0b8[_0x1953e3(0xc5)],0x191)&&(console[_0x1953e3(0x7e)](_0x23fd0c[_0x1953e3(0x99)]),await _0x23fd0c['HFrQU'](sendInstrumentationEvent,_0x5bd16d,_0x23fd0c[_0x1953e3(0x8e)],messageTypes[_0x1953e3(0x8f)],_0x23fd0c['Joljs'],null,_0x5bd16d),process[_0x1953e3(0xaf)](0x1)),console[_0x1953e3(0x7e)](_0x1953e3(0xa5)+JSON[_0x1953e3(0xbe)](_0x4cf0b8)),await _0x23fd0c[_0x1953e3(0x9d)](sendInstrumentationEvent,_0x5bd16d,_0x23fd0c['GBEhU'],messageTypes[_0x1953e3(0x8f)],_0x23fd0c[_0x1953e3(0x91)],_0x4cf0b8,_0x5bd16d),process['exit'](0x1);}catch(_0x255dd8){console['error'](_0x1953e3(0x74)+_0x255dd8[_0x1953e3(0x80)]),await _0x23fd0c[_0x1953e3(0x94)](sendInstrumentationEvent,_0x5bd16d,_0x23fd0c[_0x1953e3(0x8e)],messageTypes['ERROR'],_0x23fd0c[_0x1953e3(0x7f)],_0x255dd8,_0x5bd16d),process[_0x1953e3(0xaf)](0x1);}};
1
+ function a15_0x2430(_0x445b76,_0x18b33a){const _0x33622c=a15_0x3362();return a15_0x2430=function(_0x2430cf,_0x582c1b){_0x2430cf=_0x2430cf-0x19a;let _0x3bdd17=_0x33622c[_0x2430cf];return _0x3bdd17;},a15_0x2430(_0x445b76,_0x18b33a);}const a15_0x111c28=a15_0x2430;(function(_0x9f3ac5,_0x4c97c1){const _0x583b1d=a15_0x2430,_0x387e35=_0x9f3ac5();while(!![]){try{const _0x593835=parseInt(_0x583b1d(0x1ad))/0x1*(parseInt(_0x583b1d(0x1cf))/0x2)+parseInt(_0x583b1d(0x1af))/0x3*(parseInt(_0x583b1d(0x1e8))/0x4)+parseInt(_0x583b1d(0x1a6))/0x5*(parseInt(_0x583b1d(0x19e))/0x6)+parseInt(_0x583b1d(0x1a0))/0x7+parseInt(_0x583b1d(0x1e3))/0x8*(parseInt(_0x583b1d(0x1eb))/0x9)+-parseInt(_0x583b1d(0x1c2))/0xa*(parseInt(_0x583b1d(0x1ca))/0xb)+-parseInt(_0x583b1d(0x1ee))/0xc;if(_0x593835===_0x4c97c1)break;else _0x387e35['push'](_0x387e35['shift']());}catch(_0x2f6faf){_0x387e35['push'](_0x387e35['shift']());}}}(a15_0x3362,0xc6c70));const fs=require('fs'),got=require(a15_0x111c28(0x1e0)),{table}=require(a15_0x111c28(0x1ec)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x111c28(0x1c3)),{sendInstrumentationEvent}=require(a15_0x111c28(0x1a5));function a15_0x3362(){const _0x1d1af3=['epilogue','options','YkGin','1616160zYfBcg','../../utils/utilityMethods','grids','WxWWx','ClcjZ','RQFaU','lQDno','IMfjC','11cBAPFq','\x0aFound\x20the\x20following\x20grids:\x0a','stack','cluster-name','YeMcT','1159538JjHdpX','bBDNm','fVOzp','name','bstackUsername','push','bstackAccesskey','command','usage','username','MmFCc','forEach','statusCode','unknown-error','server-error','help','WMdYY','got','stringify','oHPmk','2144ngmPGF','all-grids','exit','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','arLXY','292iaWIhb','oxdnK','boolean','44829eVhfVD','table','unauthorised','41688240jbBgLj','jawRA','log','ljUrh','ERROR','error','Rkeed','https://','grid-name','18zyjuMu','grid-id','6740573gbbdCw','init-not-called','running','password','status','../../utils/instrumentationUtils','716265IoSPHC','queued','desc','reKYd','type','builder','requestId','2nYvHoF','Failed\x20to\x20list\x20resources!\x20Error:\x20','23124RyroWU','clusterName','list-grids-called','tNQKr','parse','ACNYa','GET','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','zLMxE','Browserstack','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','existsSync','jaJZh','argv','handler','grid'];a15_0x3362=function(){return _0x1d1af3;};return a15_0x3362();}exports[a15_0x111c28(0x1d6)]=a15_0x111c28(0x1c4),exports[a15_0x111c28(0x1a8)]=a15_0x111c28(0x1e6),exports[a15_0x111c28(0x1ab)]=function(_0x570476){const _0x4738ee=a15_0x111c28,_0x2926a1={};_0x2926a1['WqfWe']=_0x4738ee(0x1b9),_0x2926a1[_0x4738ee(0x1c5)]=_0x4738ee(0x1ea),_0x2926a1[_0x4738ee(0x1d0)]=_0x4738ee(0x1de);const _0xdb3cd2=_0x2926a1,_0x327d58={};_0x327d58['description']=_0xdb3cd2['WqfWe'],_0x327d58[_0x4738ee(0x1aa)]=_0xdb3cd2[_0x4738ee(0x1c5)];const _0x3bdab9={};return _0x3bdab9[_0x4738ee(0x1e4)]=_0x327d58,_0x570476[_0x4738ee(0x1d7)](HELP_HEADER_MESSAGE['list'][_0x4738ee(0x1be)])[_0x4738ee(0x1bf)](HELP_FOOTER_MESSAGE)[_0x4738ee(0x1c0)](_0x3bdab9)[_0x4738ee(0x1de)](_0xdb3cd2['bBDNm'])[_0x4738ee(0x1bc)];},exports[a15_0x111c28(0x1bd)]=async function(_0x195f00){const _0x4542ac=a15_0x111c28,_0x5df4c9={'arLXY':function(_0x1035bf){return _0x1035bf();},'zLMxE':function(_0x53f58e){return _0x53f58e();},'RQFaU':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ACNYa':function(_0x43d327,_0x4bf8aa,_0x513ba7,_0x537b04,_0x31ce25,_0x17413b,_0x2e4aac){return _0x43d327(_0x4bf8aa,_0x513ba7,_0x537b04,_0x31ce25,_0x17413b,_0x2e4aac);},'lQDno':_0x4542ac(0x1b1),'GCHel':_0x4542ac(0x1a1),'uTRpM':_0x4542ac(0x1b5),'oxdnK':function(_0x294702,_0x139a09,_0xbb9fd3){return _0x294702(_0x139a09,_0xbb9fd3);},'reKYd':function(_0x2b40c6,_0x47d768,_0x157ccc,_0x154fd6,_0x12e248,_0x25858c,_0x5047f){return _0x2b40c6(_0x47d768,_0x157ccc,_0x154fd6,_0x12e248,_0x25858c,_0x5047f);},'IYpnT':function(_0x40901e,_0x2e50ab){return _0x40901e!==_0x2e50ab;},'YeMcT':function(_0x127843,_0x5736f5){return _0x127843!==_0x5736f5;},'oHPmk':function(_0x5bb982,_0x4ff611){return _0x5bb982===_0x4ff611;},'WMdYY':_0x4542ac(0x1cb),'fVOzp':_0x4542ac(0x19f),'tNQKr':_0x4542ac(0x19d),'MmFCc':_0x4542ac(0x1a4),'IMfjC':'running','ClcjZ':_0x4542ac(0x1a7),'Rkeed':_0x4542ac(0x1cd),'jaJZh':function(_0x5861c8,_0x4752c3){return _0x5861c8(_0x4752c3);},'TgnAk':_0x4542ac(0x1b6),'YkGin':_0x4542ac(0x1ed),'jawRA':_0x4542ac(0x1dd),'ljUrh':function(_0xe97610,_0xd61099,_0x532117,_0x140fc1,_0xab93dc,_0x4f9f25,_0x2638be){return _0xe97610(_0xd61099,_0x532117,_0x140fc1,_0xab93dc,_0x4f9f25,_0x2638be);},'fcVQv':_0x4542ac(0x1dc)};try{global_registry[_0x4542ac(0x1ac)]=_0x5df4c9[_0x4542ac(0x1e7)](uuidv4);!fs[_0x4542ac(0x1ba)](_0x5df4c9[_0x4542ac(0x1b7)](getCredentialsPath))&&(console['error'](_0x5df4c9[_0x4542ac(0x1c7)]),await _0x5df4c9[_0x4542ac(0x1b4)](sendInstrumentationEvent,_0x195f00,_0x5df4c9[_0x4542ac(0x1c8)],messageTypes['ERROR'],_0x5df4c9['GCHel'],null,_0x195f00),process[_0x4542ac(0x1e5)](0x1));const _0x3900ec=JSON[_0x4542ac(0x1b3)](fs['readFileSync'](_0x5df4c9[_0x4542ac(0x1b7)](getCredentialsPath)));let _0x202011='https://'+AG_API_URL+'/packages/cli/get-grids';_0x195f00['allGrids']&&(_0x202011=_0x4542ac(0x19c)+AG_API_URL+'/packages/cli/get-all-grids');const _0x541de7={'method':_0x5df4c9['uTRpM'],'headers':_0x5df4c9[_0x4542ac(0x1e9)](getAuthHeader,_0x3900ec['Browserstack'][_0x4542ac(0x1d8)],_0x3900ec[_0x4542ac(0x1b8)][_0x4542ac(0x1a3)]),'throwHttpErrors':![]};global_registry[_0x4542ac(0x1d3)]=_0x3900ec[_0x4542ac(0x1b8)][_0x4542ac(0x1d8)],global_registry[_0x4542ac(0x1d5)]=_0x3900ec[_0x4542ac(0x1b8)][_0x4542ac(0x1a3)],_0x5df4c9[_0x4542ac(0x1a9)](sendInstrumentationEvent,_0x195f00,_0x5df4c9[_0x4542ac(0x1c8)],messageTypes['INFO'],null,null,_0x195f00);const _0x2b0fbf=await _0x5df4c9[_0x4542ac(0x1e9)](got,_0x202011,_0x541de7);if(_0x5df4c9['IYpnT'](_0x2b0fbf,null)&&_0x5df4c9[_0x4542ac(0x1ce)](_0x2b0fbf,undefined)&&_0x5df4c9[_0x4542ac(0x1e2)](_0x2b0fbf[_0x4542ac(0x1db)],0xc8)){const _0xbd5d96=JSON[_0x4542ac(0x1b3)](_0x2b0fbf['body']);console['log'](_0x5df4c9[_0x4542ac(0x1df)]);const _0x5c9369=[];_0x5c9369['push']([_0x5df4c9[_0x4542ac(0x1d1)],_0x5df4c9[_0x4542ac(0x1b2)],_0x5df4c9[_0x4542ac(0x1d9)],_0x5df4c9[_0x4542ac(0x1c9)],_0x5df4c9[_0x4542ac(0x1c6)],_0x5df4c9[_0x4542ac(0x19b)]]),_0xbd5d96[_0x4542ac(0x1da)](_0x3a3a93=>{const _0x2bb8df=_0x4542ac;_0x5c9369[_0x2bb8df(0x1d4)]([_0x3a3a93['id'],_0x3a3a93[_0x2bb8df(0x1d2)],_0x3a3a93[_0x2bb8df(0x1a4)],_0x3a3a93[_0x2bb8df(0x1a2)],_0x3a3a93[_0x2bb8df(0x1a7)],_0x3a3a93[_0x2bb8df(0x1b0)]]);}),console[_0x4542ac(0x1f0)](_0x5df4c9[_0x4542ac(0x1bb)](table,_0x5c9369)),process['exit'](0x0);}_0x5df4c9[_0x4542ac(0x1e2)](_0x2b0fbf[_0x4542ac(0x1db)],0x191)&&(console[_0x4542ac(0x19a)](_0x5df4c9['TgnAk']),await _0x5df4c9[_0x4542ac(0x1b4)](sendInstrumentationEvent,_0x195f00,_0x5df4c9[_0x4542ac(0x1c8)],messageTypes['ERROR'],_0x5df4c9[_0x4542ac(0x1c1)],null,_0x195f00),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x4542ac(0x1e1)](_0x2b0fbf)),await _0x5df4c9[_0x4542ac(0x1a9)](sendInstrumentationEvent,_0x195f00,_0x5df4c9['lQDno'],messageTypes[_0x4542ac(0x1f2)],_0x5df4c9[_0x4542ac(0x1ef)],_0x2b0fbf,_0x195f00),process[_0x4542ac(0x1e5)](0x1);}catch(_0x27fb3c){console['error'](_0x4542ac(0x1ae)+_0x27fb3c[_0x4542ac(0x1cc)]),await _0x5df4c9[_0x4542ac(0x1f1)](sendInstrumentationEvent,_0x195f00,_0x5df4c9[_0x4542ac(0x1c8)],messageTypes[_0x4542ac(0x1f2)],_0x5df4c9['fcVQv'],_0x27fb3c,_0x195f00),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a16_0xf171(_0x211189,_0x4c4e34){const _0x41387e=a16_0x4138();return a16_0xf171=function(_0xf1719,_0x405963){_0xf1719=_0xf1719-0x151;let _0x52f31d=_0x41387e[_0xf1719];return _0x52f31d;},a16_0xf171(_0x211189,_0x4c4e34);}function a16_0x4138(){const _0x5aac3c=['oPLdi','usage','desc','90whxflv','recommendCommands','6859216BPkMVk','851052xPmtGa','51970VDoBoR','522QJBMOG','commandDir','demandCommand','epilogue','pre-check','26FjrVmU','811770HWJmwe','3467904xnpCUF','GAiGC','9335347xveNCo','handler','../config/constants','help','422405dFuTcq','builder','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','precheck_commands'];a16_0x4138=function(){return _0x5aac3c;};return a16_0x4138();}const a16_0x22fe0b=a16_0xf171;(function(_0x1bb295,_0x5e0576){const _0x435964=a16_0xf171,_0xbdee6e=_0x1bb295();while(!![]){try{const _0x555083=parseInt(_0x435964(0x157))/0x1*(parseInt(_0x435964(0x15d))/0x2)+parseInt(_0x435964(0x15f))/0x3+parseInt(_0x435964(0x156))/0x4+parseInt(_0x435964(0x165))/0x5*(parseInt(_0x435964(0x153))/0x6)+parseInt(_0x435964(0x161))/0x7+parseInt(_0x435964(0x155))/0x8+parseInt(_0x435964(0x158))/0x9*(-parseInt(_0x435964(0x15e))/0xa);if(_0x555083===_0x5e0576)break;else _0xbdee6e['push'](_0xbdee6e['shift']());}catch(_0x354cfd){_0xbdee6e['push'](_0xbdee6e['shift']());}}}(a16_0x4138,0xc1ec9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x22fe0b(0x163));exports['command']=a16_0x22fe0b(0x15c),exports[a16_0x22fe0b(0x152)]=a16_0x22fe0b(0x167),exports[a16_0x22fe0b(0x166)]=function(_0x187e5d){const _0x41c98a=a16_0x22fe0b,_0x2d9189={};_0x2d9189[_0x41c98a(0x169)]=_0x41c98a(0x168),_0x2d9189[_0x41c98a(0x160)]='help';const _0x19b45c=_0x2d9189;return _0x187e5d[_0x41c98a(0x151)](HELP_HEADER_MESSAGE['pre_check'])[_0x41c98a(0x15b)](HELP_FOOTER_MESSAGE)[_0x41c98a(0x159)](_0x19b45c[_0x41c98a(0x169)])[_0x41c98a(0x15a)]()[_0x41c98a(0x154)]()['strict']()[_0x41c98a(0x164)](_0x19b45c[_0x41c98a(0x160)]);},exports[a16_0x22fe0b(0x162)]=function(_0x75edb0){};
1
+ const a16_0x1b5325=a16_0x3996;(function(_0x4a89b3,_0x2a64ef){const _0x1e4348=a16_0x3996,_0x127d76=_0x4a89b3();while(!![]){try{const _0x702e56=-parseInt(_0x1e4348(0x19b))/0x1+parseInt(_0x1e4348(0x19f))/0x2+parseInt(_0x1e4348(0x1ac))/0x3+-parseInt(_0x1e4348(0x1a9))/0x4+-parseInt(_0x1e4348(0x1ab))/0x5*(-parseInt(_0x1e4348(0x19e))/0x6)+parseInt(_0x1e4348(0x1b1))/0x7*(parseInt(_0x1e4348(0x1ad))/0x8)+parseInt(_0x1e4348(0x1a8))/0x9*(-parseInt(_0x1e4348(0x1a3))/0xa);if(_0x702e56===_0x2a64ef)break;else _0x127d76['push'](_0x127d76['shift']());}catch(_0x2660b4){_0x127d76['push'](_0x127d76['shift']());}}}(a16_0x2a31,0xeef21));function a16_0x3996(_0x3bfb72,_0xfefd60){const _0x2a31ca=a16_0x2a31();return a16_0x3996=function(_0x3996cd,_0x1c4cad){_0x3996cd=_0x3996cd-0x19b;let _0x2cbdcc=_0x2a31ca[_0x3996cd];return _0x2cbdcc;},a16_0x3996(_0x3bfb72,_0xfefd60);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1b5325(0x19c));exports[a16_0x1b5325(0x19d)]=a16_0x1b5325(0x1ae),exports[a16_0x1b5325(0x1a6)]='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x1b5325(0x1a1)]=function(_0x46bcf0){const _0x428227=a16_0x1b5325,_0x33a61f={};_0x33a61f[_0x428227(0x1b2)]=_0x428227(0x1a0),_0x33a61f[_0x428227(0x1af)]='help';const _0x5f91b3=_0x33a61f;return _0x46bcf0[_0x428227(0x1b3)](HELP_HEADER_MESSAGE[_0x428227(0x1a7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x428227(0x1a4)](_0x5f91b3[_0x428227(0x1b2)])[_0x428227(0x1a2)]()[_0x428227(0x1aa)]()[_0x428227(0x1a5)]()[_0x428227(0x1b0)](_0x5f91b3[_0x428227(0x1af)]);},exports[a16_0x1b5325(0x1b4)]=function(_0x35b3c0){};function a16_0x2a31(){const _0x3b842b=['160742KnUlsg','../config/constants','command','7645494mqbwUT','3617092pxyEyG','precheck_commands','builder','demandCommand','2540bLqXQT','commandDir','strict','desc','pre_check','96381dkFCtY','6082276pELgjB','recommendCommands','5JUPTHL','4084083rUbukS','368OMfbNI','pre-check','CoSqq','help','142429UjTEoG','qTqUD','usage','handler'];a16_0x2a31=function(){return _0x3b842b;};return a16_0x2a31();}
@@ -1 +1 @@
1
- const a17_0x12cb73=a17_0xa8a1;function a17_0x969a(){const _0x3aefa0=['xTbBO','data','getUTCFullYear','ZtQeD','vLboA','bPeTa','parse','104364RiZkBY','PeGXF','YSaTV','sendEventToBackend','code','OalVk','Cluster\x20','tXjzz','cluster-check-failed-','aVAbr','clusterRegion','HCIMO','will\x20be\x20created','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Tool\x20Installed','bstackAccesskey','yragi','lTHoD','grid','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','authHeader','stack\x20trace\x20','isTls1_2_SUPPORTED','cXqxI','kDdoQ','VyJPk','utf-8','EZKBT','VxbVa','hmRdb','isClusterPresent','vKnTi','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','push','isTrialGridAccessible','vQMej','status','rjbJL','yYVaE','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','find','vudEm','KAkeL','hpcqO','lWCxS','toolInstalledResp','xzJaG','cluster-name','split','join','mClCs','length','CLOUD_PROVIDER','mcGzj','pre-check-cluster-args-not-passed','vGthJ','eSseX','ijysX','KHJQH','AEGIU','bTcqb','credential-not-found','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Failed\x20in\x20pre-check!\x20Error:\x20','rjNHW','pYJhe','KeKHx','\x20region\x20-\x20','pre-check-failed','getUTCDate','6lPvKCy','throwHttpErrors','auxio','unable\x20to\x20verify\x20if\x20cluster\x20`','dwNjq','LOG','\x20data\x20:\x20','replace','roYdw','kwfyO','nXkJY','requestId','Setting\x20cloud\x20provider\x20as\x20','Report\x20saved\x20in\x20','\x20\x20Message:\x20','xbDDp','xjaSo','JTEqJ','\x20error\x20:\x20','AOKaT','AWWnw','gridProfile','FQwwf','error','dummy-grid','Cluster\x20details\x0a-----------------------\x0a','../../utils/utilityMethods','ERROR','nDRWa','got','CITvH','Browserstack','Grid\x20profile\x20fetched\x20for\x20pre-check','INFO','argv','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','715jqmpjw','Error\x20Details:\x0a','fcxLx','VpOBW','getUTCMonth','region','<UsernamePlaceholder>','pre-check-grid-called','BcODe','zzASi','lnMQq','kZKoU','qrzns','../../cloudproviders/utils','grid-profile','876sFFsjj','bZTVB','NuyhY','mNEga','rtUtu','10577NATUuA','info','cloud-provider-not-supported','message','User\x20Access','log/report_','mPrwq','sztVS','bstackUsername','gGodW','QToCB','isCliToolInstalled','WPnXv','uuid','pre-check-grid-profile-empty','93410ZhfqJj','1|2|0|3|4','9pfMrgQ','xitkV','1448ELdYXX','Success','header','qvSLl','getUTCMinutes','reconnecting-websocket','nwPQr','jGySU','Message:\x20',']\x20status\x20:\x20','tmXEu','LGpHZ','irwkZ','name','KsdzI','headers','N/A','bhVDD','vmuDH','117748BAvUeo','NprcY','NyLvF','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','exit','Eiodo','BkzLi','checkAccess','sYYhf','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Status:\x20','YCnTj','description','connectionTimeout','WHPhn','2928pRkgOe','pzdoc','Invalid\x20input.\x20grid\x20profiles:\x20','`\x20is\x20present\x20in\x20region\x20`','SSL\x20Configured','wxYLW','lnCTE','nooCr','includes','stringify','WysGK','clusterName','cloud-provider','../../utils/instrumentationUtils','desc','`\x20already\x20exists','pre-check','uiDdS','20647jwnZxv','TLSv1_2_client_method','vTDYy','cloudProvider','asxeO','DjKNY','usage','debug','bFGIO','epilogue','<PasswordPlaceholder>','EJAYJ','cjloW','eKRtp','prVDR','BzgTn','grid\x20profile\x20flow\x20','stack','Dxtgg','\x20\x20Stack:\x20','\x20\x20Code:\x20','agoTT','body','YlZHw','dgQdK','delay','Cluster\x20`','3435390oDNmCB','is\x20already\x20present','spTlD','type','string','oBNRl','username','init','error\x20stack\x20:\x20','getUTCHours','response','options','RjEUQ','help'];a17_0x969a=function(){return _0x3aefa0;};return a17_0x969a();}(function(_0x545312,_0x168bd3){const _0x43c488=a17_0xa8a1,_0x1a98a2=_0x545312();while(!![]){try{const _0x39768c=parseInt(_0x43c488(0x1d2))/0x1+parseInt(_0x43c488(0x1bb))/0x2*(parseInt(_0x43c488(0x174))/0x3)+-parseInt(_0x43c488(0x223))/0x4+parseInt(_0x43c488(0x198))/0x5*(parseInt(_0x43c488(0x1e1))/0x6)+parseInt(_0x43c488(0x1ac))/0x7*(-parseInt(_0x43c488(0x1bf))/0x8)+-parseInt(_0x43c488(0x1bd))/0x9*(-parseInt(_0x43c488(0x20e))/0xa)+parseInt(_0x43c488(0x1f3))/0xb*(-parseInt(_0x43c488(0x1a7))/0xc);if(_0x39768c===_0x168bd3)break;else _0x1a98a2['push'](_0x1a98a2['shift']());}catch(_0x3f7c02){_0x1a98a2['push'](_0x1a98a2['shift']());}}}(a17_0x969a,0x2dde6));const fs=require('fs'),ws=require('ws'),got=require(a17_0x12cb73(0x191)),{v4:uuidv4}=require(a17_0x12cb73(0x1b9)),ReconnectingWebSocket=require(a17_0x12cb73(0x1c4)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x12cb73(0x18e)),{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('../../config/constants'),{getCloudProviderObjectWithOutInit}=require(a17_0x12cb73(0x1a5)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x12cb73(0x1ee));exports['command']=a17_0x12cb73(0x235),exports[a17_0x12cb73(0x1ef)]=a17_0x12cb73(0x243),exports['builder']=function(_0x44a02b){const _0x49e165=a17_0x12cb73,_0x43b699={};_0x43b699[_0x49e165(0x1eb)]=_0x49e165(0x16c),_0x43b699[_0x49e165(0x242)]=_0x49e165(0x212),_0x43b699[_0x49e165(0x1b6)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x43b699[_0x49e165(0x1b5)]=_0x49e165(0x230),_0x43b699['fcxLx']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x43b699[_0x49e165(0x23e)]=_0x49e165(0x21b);const _0xd479da=_0x43b699,_0x235019={};_0x235019[_0x49e165(0x1de)]=_0xd479da[_0x49e165(0x1eb)],_0x235019[_0x49e165(0x211)]=_0xd479da[_0x49e165(0x242)];const _0x5a09cf={};_0x5a09cf['description']=_0xd479da[_0x49e165(0x1b6)],_0x5a09cf['type']=_0xd479da['vKnTi'];const _0xa1c83c={};_0xa1c83c[_0x49e165(0x1de)]=_0xd479da[_0x49e165(0x1b5)],_0xa1c83c[_0x49e165(0x211)]=_0xd479da[_0x49e165(0x242)];const _0x521185={};_0x521185[_0x49e165(0x1de)]=_0xd479da[_0x49e165(0x19a)],_0x521185['type']=_0xd479da[_0x49e165(0x242)];const _0x4199ab={};return _0x4199ab[_0x49e165(0x15d)]=_0x235019,_0x4199ab[_0x49e165(0x1ed)]=_0x5a09cf,_0x4199ab[_0x49e165(0x19d)]=_0xa1c83c,_0x4199ab[_0x49e165(0x1a6)]=_0x521185,_0x44a02b[_0x49e165(0x1f9)](HELP_HEADER_MESSAGE['pre_check'])[_0x49e165(0x1fc)](HELP_FOOTER_MESSAGE)['options'](_0x4199ab)[_0x49e165(0x21b)](_0xd479da['EZKBT'])[_0x49e165(0x196)];};async function inputValidation(_0xd0b273,_0x5d870e){const _0x2254d5=a17_0x12cb73,_0x504263={'WPnXv':_0x2254d5(0x16c),'eSseX':_0x2254d5(0x212),'lnMQq':_0x2254d5(0x24a),'vTDYy':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','KeKHx':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','RWaQx':_0x2254d5(0x21b),'xTbBO':_0x2254d5(0x19d),'nwPQr':_0x2254d5(0x1ed),'RjEUQ':_0x2254d5(0x18b),'qvSLl':_0x2254d5(0x15d),'sztVS':_0x2254d5(0x199),'auxio':_0x2254d5(0x1cf),'spTlD':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','OalVk':'is\x20already\x20present','bhVDD':_0x2254d5(0x22f),'tmXEu':function(_0x2cb4a3,_0x58c5c1){return _0x2cb4a3+_0x58c5c1;},'CITvH':_0x2254d5(0x1c0),'VxbVa':'Failure','vGthJ':function(_0x5eb985,_0x533ab1){return _0x5eb985||_0x533ab1;},'jGySU':function(_0x5eb3dc,_0x214d9d){return _0x5eb3dc===_0x214d9d;},'lWCxS':_0x2254d5(0x1a3),'DjKNY':function(_0x497b90,_0x1d9bfc){return _0x497b90!==_0x1d9bfc;},'bPeTa':_0x2254d5(0x1e6),'JTEqJ':'ThWol','cHxkY':function(_0x1ce3ed,_0x5c3f1a){return _0x1ce3ed===_0x5c3f1a;},'YCnTj':_0x2254d5(0x16e),'hpcqO':'HPXnD','mClCs':function(_0x39d53e,_0x28663b){return _0x39d53e===_0x28663b;},'eKRtp':_0x2254d5(0x187),'xbDDp':function(_0x59be77,_0x39ef69){return _0x59be77>_0x39ef69;},'lTHoD':function(_0x3b1b74,_0x358722){return _0x3b1b74===_0x358722;},'BcODe':_0x2254d5(0x249),'ijysX':function(_0x8892e,_0x6395bc,_0x3837c1,_0x2ae719,_0x36d662,_0x1895cc,_0x164c71,_0x4210fe){return _0x8892e(_0x6395bc,_0x3837c1,_0x2ae719,_0x36d662,_0x1895cc,_0x164c71,_0x4210fe);},'dwNjq':_0x2254d5(0x19f),'JxRyi':_0x2254d5(0x164),'BkzLi':function(_0x49de38,_0x5c2970){return _0x49de38!==_0x5c2970;},'ABpXv':'NwaXH','TUrPA':_0x2254d5(0x220),'AWWnw':_0x2254d5(0x1d5),'nDRWa':function(_0x5b6376,_0x30d4a1,_0x403557,_0x5da44b,_0x11c6d4,_0x36b1ce,_0x38e2d1,_0x55a289){return _0x5b6376(_0x30d4a1,_0x403557,_0x5da44b,_0x11c6d4,_0x36b1ce,_0x38e2d1,_0x55a289);},'xitkV':_0x2254d5(0x1ae),'yragi':function(_0x49da6f,_0xbcec63){return _0x49da6f===_0xbcec63;},'KHJQH':_0x2254d5(0x1b2),'vQMej':_0x2254d5(0x21f),'kDdoQ':function(_0xbd80bc,_0x590e81){return _0xbd80bc!==_0x590e81;},'rtUtu':_0x2254d5(0x225),'lnCTE':'GET','sYYhf':function(_0x3b9016,_0x25a988,_0x3f59a2){return _0x3b9016(_0x25a988,_0x3f59a2);},'vudEm':function(_0x15624a,_0x4b991e,_0x41ad89,_0x18a115,_0x4d0222,_0x2606df){return _0x15624a(_0x4b991e,_0x41ad89,_0x18a115,_0x4d0222,_0x2606df);},'ZATgi':_0x2254d5(0x1f1),'pYJhe':_0x2254d5(0x1a6),'QPwSL':function(_0x1a9c7a,_0x5e2a3c){return _0x1a9c7a===_0x5e2a3c;},'eDdXK':function(_0x4c2dce,_0x152483){return _0x4c2dce===_0x152483;},'VpOBW':_0x2254d5(0x23c),'xjaSo':_0x2254d5(0x1d1),'oBNRl':function(_0x234153,_0x27ef35){return _0x234153(_0x27ef35);},'NyLvF':function(_0x4bc3d3,_0x34777d){return _0x4bc3d3===_0x34777d;},'aVAbr':'TOdpy','fAKaj':_0x2254d5(0x20b),'peHNL':_0x2254d5(0x1ba),'HCIMO':function(_0x248929,_0x2a9f5a){return _0x248929===_0x2a9f5a;},'NuyhY':'UWwXS','irwkZ':function(_0x3e82f6,_0x40928c){return _0x3e82f6!==_0x40928c;},'Dxtgg':'acTUN','EohnN':_0x2254d5(0x194),'bZTVB':'xifbQ','nooCr':_0x2254d5(0x1d7),'roYdw':_0x2254d5(0x1a4)};let _0xa92977;try{if(_0x504263[_0x2254d5(0x1c6)](_0x504263[_0x2254d5(0x15a)],_0x504263[_0x2254d5(0x15a)])){if(_0xd0b273[_0x2254d5(0x1ec)]||_0xd0b273['cloudProvider']||_0xd0b273[_0x2254d5(0x19d)]){if(_0x504263[_0x2254d5(0x1f8)](_0x504263['bPeTa'],_0x504263[_0x2254d5(0x221)]))_0x2e2e34[_0x2254d5(0x1d6)](0x1);else{const _0x1f19de=[];!_0xd0b273['clusterName']&&(_0x504263[_0x2254d5(0x1f8)](_0x504263[_0x2254d5(0x185)],_0x504263[_0x2254d5(0x185)])?_0x4ce0c5=_0x53afeb:_0x1f19de[_0x2254d5(0x244)](_0x504263[_0x2254d5(0x1c2)]));;!_0xd0b273[_0x2254d5(0x1f6)]&&(_0x504263['cHxkY'](_0x504263[_0x2254d5(0x1dd)],_0x504263[_0x2254d5(0x159)])?(_0x5769d7[_0x2254d5(0x1ad)]('['+_0x1057c7+_0x2254d5(0x1c8)+_0x9069fd[_0x2254d5(0x247)]+_0x2254d5(0x17a)+_0x173389[_0x2254d5(0x21d)]+_0x2254d5(0x186)+_0x4ae88b[_0x2254d5(0x18b)]),_0x1f9be8[_0x2254d5(0x18b)]&&_0x3d567f['error'](_0x2254d5(0x216)+_0x4ddf28[_0x2254d5(0x18b)]['stack'])):_0x1f19de['push'](_0x504263[_0x2254d5(0x1c5)]));;if(!_0xd0b273['region']){if(_0x504263[_0x2254d5(0x160)](_0x504263[_0x2254d5(0x200)],_0x504263[_0x2254d5(0x200)]))_0x1f19de[_0x2254d5(0x244)](_0x504263[_0x2254d5(0x21c)]);else{const _0x4f0490={};_0x4f0490[_0x2254d5(0x1de)]=_0x504263[_0x2254d5(0x1b8)],_0x4f0490['type']=_0x504263[_0x2254d5(0x166)];const _0x2b1548={};_0x2b1548['description']=_0x504263[_0x2254d5(0x1a2)],_0x2b1548['type']=_0x504263['eSseX'];const _0x4daeb0={};_0x4daeb0[_0x2254d5(0x1de)]=_0x504263[_0x2254d5(0x1f5)],_0x4daeb0[_0x2254d5(0x211)]=_0x504263[_0x2254d5(0x166)];const _0x113d20={};_0x113d20[_0x2254d5(0x1de)]=_0x504263[_0x2254d5(0x170)],_0x113d20['type']=_0x504263[_0x2254d5(0x166)];const _0xc0f01d={};return _0xc0f01d[_0x2254d5(0x15d)]=_0x4f0490,_0xc0f01d[_0x2254d5(0x1ed)]=_0x2b1548,_0xc0f01d[_0x2254d5(0x19d)]=_0x4daeb0,_0xc0f01d[_0x2254d5(0x1a6)]=_0x113d20,_0x4b1b0e[_0x2254d5(0x1f9)](_0x10eadc['pre_check'])[_0x2254d5(0x1fc)](_0x1a93e2)[_0x2254d5(0x219)](_0xc0f01d)[_0x2254d5(0x21b)](_0x504263['RWaQx'])[_0x2254d5(0x196)];}};_0x504263[_0x2254d5(0x183)](_0x1f19de[_0x2254d5(0x161)],0x0)&&(_0x504263[_0x2254d5(0x234)](_0x504263[_0x2254d5(0x1a0)],_0x504263['BcODe'])?(_0xa92977='Missing\x20required\x20arguments:\x20'+_0x1f19de[_0x2254d5(0x15f)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x504263[_0x2254d5(0x167)](reportToGalactusAndSendToEDS,_0xd0b273,_0x5d870e,_0xa92977,messageTypes[_0x2254d5(0x18f)],_0x504263[_0x2254d5(0x178)],_0x504263['JxRyi'],_0x504263[_0x2254d5(0x21a)]),logger['error'](_0xa92977),process[_0x2254d5(0x1d6)](0x1)):_0x2edb68[_0x2254d5(0x244)](_0x504263[_0x2254d5(0x21c)]));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2254d5(0x1e9)](_0xd0b273[_0x2254d5(0x1f6)]['toLowerCase']())){if(_0x504263[_0x2254d5(0x1d8)](_0x504263['ABpXv'],_0x504263['TUrPA']))_0xa92977=_0x504263[_0x2254d5(0x188)],await _0x504263[_0x2254d5(0x190)](reportToGalactusAndSendToEDS,_0xd0b273,_0x5d870e,_0xa92977,messageTypes[_0x2254d5(0x18f)],_0x504263[_0x2254d5(0x178)],_0x504263[_0x2254d5(0x1be)],_0x504263[_0x2254d5(0x21a)]),logger[_0x2254d5(0x18b)](_0xa92977),!_0xd0b273[_0x2254d5(0x1f6)]&&(_0x504263[_0x2254d5(0x233)](_0x504263[_0x2254d5(0x168)],_0x504263[_0x2254d5(0x246)])?_0x2eb212[_0x2254d5(0x244)](_0x504263['nwPQr']):(logger[_0x2254d5(0x1ad)]('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x2254d5(0x162)]+'\x20'),_0xd0b273['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x2254d5(0x162)]));else{const _0x26c099={};_0x26c099[_0x2254d5(0x211)]=_0xc54187[_0x2254d5(0x179)],_0x26c099[_0x2254d5(0x1af)]=_0x27be8a,_0x251b46[_0x2254d5(0x226)](_0x4ebecd,_0x26c099,_0x504263[_0x2254d5(0x21a)],!![]);}}global_registry[_0x2254d5(0x1ec)]=_0xd0b273['clusterName'],global_registry[_0x2254d5(0x1f6)]=_0xd0b273['cloudProvider'],global_registry[_0x2254d5(0x22d)]=_0xd0b273[_0x2254d5(0x19d)];}}else{if(_0xd0b273[_0x2254d5(0x189)]){if(_0x504263[_0x2254d5(0x23b)](_0x504263['rtUtu'],_0x504263[_0x2254d5(0x1ab)]))_0x55a8b2[_0x2254d5(0x1ad)](_0x2254d5(0x180)+_0x48bb43['CLOUD_PROVIDER']+'\x20'),_0x587e09[_0x2254d5(0x1f6)]=_0x4fd22e[_0x2254d5(0x162)];else{global_registry[_0x2254d5(0x189)]=_0xd0b273[_0x2254d5(0x189)],logger['debug'](_0x2254d5(0x203)+_0xd0b273['gridProfile']);const _0x3342b5='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x5e4997={};_0x5e4997['method']=_0x504263[_0x2254d5(0x1e7)],_0x5e4997[_0x2254d5(0x1ce)]=global_registry['authHeader'],_0x5e4997[_0x2254d5(0x175)]=![];const _0x319bf9=_0x5e4997,_0x4f906f=await _0x504263[_0x2254d5(0x1da)](got,_0x3342b5,_0x319bf9),_0x2cbba5=await _0x504263[_0x2254d5(0x157)](responseValidation,_0x4f906f,_0x504263['ZATgi'],_0x504263[_0x2254d5(0x16f)],_0xd0b273,_0x5d870e);let _0x32b0d9={};if(_0x504263['QPwSL'](_0x2cbba5,0xc8)){if(_0x504263['eDdXK'](_0x504263[_0x2254d5(0x19b)],_0x504263[_0x2254d5(0x184)]))_0x554ed6[_0x2254d5(0x244)](_0x504263[_0x2254d5(0x1c2)]);else{const _0x1eca70=JSON['parse'](_0x4f906f[_0x2254d5(0x209)]),_0x199e75=_0x1eca70[_0x2254d5(0x24b)](_0x545c47=>_0x545c47[_0x2254d5(0x1cc)]===_0xd0b273[_0x2254d5(0x189)])||null;_0x504263[_0x2254d5(0x213)](isUndefined,_0x199e75)?_0x504263[_0x2254d5(0x1d4)](_0x504263[_0x2254d5(0x22c)],_0x504263['fAKaj'])?(_0x1dd7a6+=_0x504263['sztVS'],_0x34df17+=_0x2254d5(0x182)+(_0x2ff90e['message']||_0x504263[_0x2254d5(0x176)])+'\x0a',_0x49007c+=_0x2254d5(0x207)+(_0xf50530[_0x2254d5(0x227)]||_0x504263[_0x2254d5(0x176)])+'\x0a',_0x533aac+=_0x2254d5(0x206)+(_0x4a582b[_0x2254d5(0x204)]||_0x504263[_0x2254d5(0x176)])+'\x0a'):(_0xa92977=_0x2254d5(0x1e3)+_0xd0b273[_0x2254d5(0x189)]+_0x2254d5(0x236),await _0x504263[_0x2254d5(0x167)](reportToGalactusAndSendToEDS,_0xd0b273,_0x5d870e,_0xa92977,messageTypes[_0x2254d5(0x18f)],_0x504263['dwNjq'],_0x504263['peHNL'],_0x504263[_0x2254d5(0x21a)]),logger[_0x2254d5(0x18b)](_0xa92977),process[_0x2254d5(0x1d6)](0x1)):_0x504263[_0x2254d5(0x22e)](_0x504263[_0x2254d5(0x1a9)],_0x504263[_0x2254d5(0x1a9)])?_0x32b0d9=_0x199e75:(_0x1b9029['error'](_0x504263['spTlD']),_0x140f6e[_0x2254d5(0x1d6)](0x1));}}else _0x504263[_0x2254d5(0x1cb)](_0x504263['Dxtgg'],_0x504263[_0x2254d5(0x205)])?_0x13a05d+=_0x2254d5(0x229)+_0x5dc009['clusterName']+'\x20'+(_0xc46df9?_0x504263[_0x2254d5(0x228)]:_0x504263[_0x2254d5(0x1d0)])+'\x0a\x0a':process['exit'](0x1);const _0x1f3266={};_0x1f3266['type']=WS_EVENTS[_0x2254d5(0x179)],_0x1f3266[_0x2254d5(0x1af)]=_0x504263['EohnN'],webSocketUtils[_0x2254d5(0x226)](_0x5d870e,_0x1f3266),global_registry[_0x2254d5(0x1f6)]=_0x32b0d9[_0x2254d5(0x1f6)],global_registry['clusterRegion']=_0x32b0d9[_0x2254d5(0x19d)],global_registry['clusterName']=_0x32b0d9[_0x2254d5(0x1ec)];}}else _0x504263[_0x2254d5(0x23b)](_0x504263[_0x2254d5(0x1a8)],_0x504263[_0x2254d5(0x1e8)])?(logger[_0x2254d5(0x18b)](_0x504263[_0x2254d5(0x210)]),process[_0x2254d5(0x1d6)](0x1)):_0x35d1cb[_0x2254d5(0x1ad)](_0x2254d5(0x20d)+_0xa11afc[_0x2254d5(0x1ec)]+'`\x20already\x20exists');}}else{const {header:_0x318df6,response:_0x3b3630}=_0x10f0fe,{status:_0x15aa5f,data:_0x482bc3,error:_0x733b2b}=_0x3b3630;_0x2c38a2+=_0x318df6+'\x20#'+_0x504263[_0x2254d5(0x1c9)](_0x2b42a4,0x1)+'\x0a',_0x42669c+=_0x2254d5(0x1dc)+(_0x15aa5f?_0x504263[_0x2254d5(0x192)]:_0x504263[_0x2254d5(0x23f)])+'\x0a',_0x34fc5d+=_0x2254d5(0x1c7)+_0x504263[_0x2254d5(0x165)](_0x482bc3,_0x504263[_0x2254d5(0x176)])+'\x0a',_0x733b2b&&(_0x180781+=_0x504263[_0x2254d5(0x1b3)],_0x291053+=_0x2254d5(0x182)+(_0x733b2b[_0x2254d5(0x1af)]||_0x504263[_0x2254d5(0x176)])+'\x0a',_0x2fb56a+=_0x2254d5(0x207)+(_0x733b2b[_0x2254d5(0x227)]||_0x504263['auxio'])+'\x0a',_0x5bbd84+=_0x2254d5(0x206)+(_0x733b2b[_0x2254d5(0x204)]||_0x504263['auxio'])+'\x0a'),_0x123e79+='\x0a\x0a';}}catch(_0x3507f4){_0x504263[_0x2254d5(0x1cb)](_0x504263[_0x2254d5(0x17c)],_0x504263[_0x2254d5(0x17c)])?_0x5a1927[_0x2254d5(0x18b)](_0x2254d5(0x216)+_0xb4082f[_0x2254d5(0x18b)]['stack']):(_0xa92977=_0x2254d5(0x197)+_0x3507f4+':\x20'+_0x3507f4[_0x2254d5(0x204)],logger[_0x2254d5(0x18b)](_0xa92977),await _0x504263[_0x2254d5(0x190)](reportToGalactusAndSendToEDS,_0xd0b273,_0x5d870e,_0xa92977,messageTypes[_0x2254d5(0x18f)],_0x504263[_0x2254d5(0x178)],_0x504263[_0x2254d5(0x1be)],_0x504263[_0x2254d5(0x21a)]),process[_0x2254d5(0x1d6)](0x1));}}function printResponse(_0x3a40d7,_0x14aebe){const _0x146f9f=a17_0x12cb73,_0x1b1e9d={};_0x1b1e9d[_0x146f9f(0x1fe)]=function(_0x121a3b,_0x2ebb33){return _0x121a3b===_0x2ebb33;},_0x1b1e9d[_0x146f9f(0x169)]=_0x146f9f(0x208);const _0x3c898b=_0x1b1e9d;logger[_0x146f9f(0x1ad)]('['+_0x3a40d7+']\x20status\x20:\x20'+_0x14aebe[_0x146f9f(0x247)]+'\x20data\x20:\x20'+_0x14aebe['data']+_0x146f9f(0x186)+_0x14aebe[_0x146f9f(0x18b)]),_0x14aebe[_0x146f9f(0x18b)]&&(_0x3c898b[_0x146f9f(0x1fe)](_0x3c898b['AEGIU'],_0x3c898b[_0x146f9f(0x169)])?logger[_0x146f9f(0x18b)](_0x146f9f(0x216)+_0x14aebe[_0x146f9f(0x18b)]['stack']):_0x1de149+=_0x146f9f(0x229)+_0x2b2f4c[_0x146f9f(0x1ec)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a');}async function generateReport(_0x174e10,_0x1556d6){const _0x218274=a17_0x12cb73,_0x363085={'hBeVD':function(_0x26ded4,_0x509827){return _0x26ded4+_0x509827;},'BzgTn':_0x218274(0x1c0),'wJlrR':'Failure','hmRdb':function(_0x44482a,_0x512054){return _0x44482a||_0x512054;},'bFGIO':_0x218274(0x1cf),'Arqci':_0x218274(0x199),'CKflh':_0x218274(0x18d),'NprcY':function(_0x54a6e8,_0x56f4ba){return _0x54a6e8!=_0x56f4ba;},'mNEga':_0x218274(0x20f),'prVDR':_0x218274(0x22f),'ZTNEt':function(_0x5ae2f4){return _0x5ae2f4();}};let _0xed9d50='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x218274(0x1f6)]+'\x20===\x0a\x0a';return _0x174e10['forEach']((_0x24dcb7,_0x4ed024)=>{const _0x39e7f4=_0x218274,{header:_0x36cbd4,response:_0x5881f2}=_0x24dcb7,{status:_0x3f4955,data:_0x6281cd,error:_0x439cb1}=_0x5881f2;_0xed9d50+=_0x36cbd4+'\x20#'+_0x363085['hBeVD'](_0x4ed024,0x1)+'\x0a',_0xed9d50+=_0x39e7f4(0x1dc)+(_0x3f4955?_0x363085[_0x39e7f4(0x202)]:_0x363085['wJlrR'])+'\x0a',_0xed9d50+=_0x39e7f4(0x1c7)+_0x363085[_0x39e7f4(0x240)](_0x6281cd,_0x363085[_0x39e7f4(0x1fb)])+'\x0a',_0x439cb1&&(_0xed9d50+=_0x363085['Arqci'],_0xed9d50+=_0x39e7f4(0x182)+(_0x439cb1['message']||_0x363085[_0x39e7f4(0x1fb)])+'\x0a',_0xed9d50+=_0x39e7f4(0x207)+(_0x439cb1[_0x39e7f4(0x227)]||_0x363085[_0x39e7f4(0x1fb)])+'\x0a',_0xed9d50+=_0x39e7f4(0x206)+(_0x439cb1[_0x39e7f4(0x204)]||_0x363085['bFGIO'])+'\x0a'),_0xed9d50+='\x0a\x0a';}),_0xed9d50+=_0x363085['CKflh'],_0x363085[_0x218274(0x1d3)](_0x1556d6,null)?_0xed9d50+='Cluster\x20'+global_registry[_0x218274(0x1ec)]+'\x20'+(_0x1556d6?_0x363085[_0x218274(0x1aa)]:_0x363085[_0x218274(0x201)])+'\x0a\x0a':_0xed9d50+=_0x218274(0x229)+global_registry[_0x218274(0x1ec)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0xed9d50+=_0x363085['ZTNEt'](getSystemMetaData),_0xed9d50;}function a17_0xa8a1(_0x566336,_0x196213){const _0x969ad5=a17_0x969a();return a17_0xa8a1=function(_0xa8a136,_0x48ca08){_0xa8a136=_0xa8a136-0x157;let _0x28e0f8=_0x969ad5[_0xa8a136];return _0x28e0f8;},a17_0xa8a1(_0x566336,_0x196213);};exports['handler']=async function(_0xeedcd4){const _0x4cc86e=a17_0x12cb73,_0x110671={'LGpHZ':function(_0x1432ec){return _0x1432ec();},'AHAUW':_0x4cc86e(0x1db),'cdUFg':function(_0x4a8ce5,_0x82abd6,_0x48c008,_0x123ffd,_0x2f4c1e,_0x5db322,_0x487cf1,_0x1f4a4e){return _0x4a8ce5(_0x82abd6,_0x48c008,_0x123ffd,_0x2f4c1e,_0x5db322,_0x487cf1,_0x1f4a4e);},'cXqxI':_0x4cc86e(0x19f),'bTcqb':_0x4cc86e(0x16b),'cjloW':_0x4cc86e(0x18b),'KAkeL':function(_0x340de8,_0x513807,_0x1f4018,_0x314f41,_0x19af51,_0x1e4593,_0x1b94d7){return _0x340de8(_0x513807,_0x1f4018,_0x314f41,_0x19af51,_0x1e4593,_0x1b94d7);},'Kwscu':_0x4cc86e(0x19e),'xzJaG':_0x4cc86e(0x1fd),'uiDdS':function(_0x2c6a21,_0x36d4c0,_0x4c494a){return _0x2c6a21(_0x36d4c0,_0x4c494a);},'kwfyO':_0x4cc86e(0x18c),'ZUAem':_0x4cc86e(0x15b),'DQFuG':_0x4cc86e(0x1bc),'WHPhn':function(_0x44342c,_0x24f7b5,_0x339a42){return _0x44342c(_0x24f7b5,_0x339a42);},'XeIlc':'accessResp','mcGzj':_0x4cc86e(0x245),'asxeO':function(_0x470735,_0x3ea9e7){return _0x470735(_0x3ea9e7);},'nXkJY':_0x4cc86e(0x1f4),'YlZHw':function(_0x1721ec,_0x40025f,_0x58715b){return _0x1721ec(_0x40025f,_0x58715b);},'pzdoc':_0x4cc86e(0x239),'zzASi':_0x4cc86e(0x231),'UwTXJ':_0x4cc86e(0x1b0),'KsdzI':'Whitelisted\x20browserstack','tXjzz':_0x4cc86e(0x1e5),'FQwwf':function(_0x20b24f,_0x303f1a){return _0x20b24f+_0x303f1a;},'rjbJL':_0x4cc86e(0x23d),'lBBTw':function(_0x121d8b,_0x302b8a,_0x5b5aa8,_0x5900af,_0x506138,_0x57fdd9,_0x225b61){return _0x121d8b(_0x302b8a,_0x5b5aa8,_0x5900af,_0x506138,_0x57fdd9,_0x225b61);},'PeGXF':_0x4cc86e(0x172)};let _0x2ad796,_0x1671d2;try{global_registry[_0x4cc86e(0x17f)]=_0x110671[_0x4cc86e(0x1ca)](uuidv4);!fs['existsSync'](_0x110671[_0x4cc86e(0x1ca)](getCredentialsPath))&&(_0x1671d2=_0x110671['AHAUW'],logger['error'](_0x1671d2),await _0x110671['cdUFg'](reportToGalactusAndSendToEDS,_0xeedcd4,_0x2ad796,_0x1671d2,messageTypes['ERROR'],_0x110671['cXqxI'],_0x110671[_0x4cc86e(0x16a)],_0x110671['cjloW']),process[_0x4cc86e(0x1d6)](0x1));_0x110671[_0x4cc86e(0x158)](sendInstrumentationEvent,_0xeedcd4,_0x110671['cXqxI'],messageTypes[_0x4cc86e(0x195)],null,null,_0xeedcd4);const _0x3c2193=JSON[_0x4cc86e(0x222)](fs['readFileSync'](_0x110671[_0x4cc86e(0x1ca)](getCredentialsPath)));global_registry[_0x4cc86e(0x1b4)]=_0x3c2193[_0x4cc86e(0x193)][_0x4cc86e(0x214)],global_registry['bstackAccesskey']=_0x3c2193[_0x4cc86e(0x193)]['password'];const _0x3845c2=WS_ENDPOINT[_0x4cc86e(0x17b)](_0x110671['Kwscu'],_0x3c2193[_0x4cc86e(0x193)][_0x4cc86e(0x214)])[_0x4cc86e(0x17b)](_0x110671[_0x4cc86e(0x15c)],_0x3c2193[_0x4cc86e(0x193)]['password']),_0x384c35={};_0x384c35['WebSocket']=ws,_0x384c35[_0x4cc86e(0x1df)]=0x36ee80,_0x2ad796=new ReconnectingWebSocket(_0x3845c2,[],_0x384c35),global_registry[_0x4cc86e(0x237)]=_0x110671[_0x4cc86e(0x1f2)](getAuthHeader,global_registry[_0x4cc86e(0x1b4)],global_registry[_0x4cc86e(0x232)]),await _0x110671[_0x4cc86e(0x1f2)](inputValidation,_0xeedcd4,_0x2ad796),logger[_0x4cc86e(0x1ad)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+_0x4cc86e(0x171)+global_registry[_0x4cc86e(0x22d)]);let _0x44ece5=await _0x110671['KAkeL'](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry['clusterName'],_0x110671[_0x4cc86e(0x17d)],_0x2ad796,webSocketUtils,_0xeedcd4);const _0x330b06=await _0x44ece5[_0x4cc86e(0x1b7)]();_0x110671['uiDdS'](printResponse,_0x110671['ZUAem'],_0x330b06),_0x44ece5=await _0x44ece5[_0x4cc86e(0x215)]();let _0x37ff49=![];try{_0x37ff49=await _0x44ece5[_0x4cc86e(0x241)]();}catch(_0x3ead2b){const _0x335852=_0x110671['DQFuG'][_0x4cc86e(0x15e)]('|');let _0x5cb3b6=0x0;while(!![]){switch(_0x335852[_0x5cb3b6++]){case'0':logger['error'](_0x1671d2);continue;case'1':_0x1671d2=_0x4cc86e(0x177)+global_registry['clusterName']+_0x4cc86e(0x1e4)+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x3ead2b;continue;case'2':_0x37ff49=null;continue;case'3':_0x1671d2+='\x0a'+JSON['stringify'](_0x3ead2b[_0x4cc86e(0x204)]);continue;case'4':await _0x110671['cdUFg'](reportToGalactusAndSendToEDS,_0xeedcd4,_0x2ad796,_0x1671d2,messageTypes[_0x4cc86e(0x18f)],_0x110671[_0x4cc86e(0x23a)],_0x4cc86e(0x22b)+global_registry['cloudProvider'],_0x110671[_0x4cc86e(0x1ff)]);continue;}break;}}_0x37ff49&&logger[_0x4cc86e(0x1ad)]('Cluster\x20`'+global_registry[_0x4cc86e(0x1ec)]+_0x4cc86e(0x1f0));const _0xac9a60=await _0x44ece5[_0x4cc86e(0x1d9)]();_0x110671[_0x4cc86e(0x1e0)](printResponse,_0x110671['XeIlc'],_0xac9a60);const _0x4c4c10=await _0x110671[_0x4cc86e(0x1ca)](curlRequest);_0x110671[_0x4cc86e(0x1e0)](printResponse,_0x110671[_0x4cc86e(0x163)],_0x4c4c10);const _0x19ef65=await _0x110671[_0x4cc86e(0x1f7)](isTlsSupported,_0x110671[_0x4cc86e(0x17e)]);_0x110671[_0x4cc86e(0x20a)](printResponse,_0x110671[_0x4cc86e(0x1e2)],_0x19ef65);const _0x4eebe9={};_0x4eebe9[_0x4cc86e(0x1c1)]=_0x110671[_0x4cc86e(0x1a1)],_0x4eebe9[_0x4cc86e(0x218)]=_0x330b06;const _0x486686={};_0x486686['header']=_0x110671['UwTXJ'],_0x486686['response']=_0xac9a60;const _0x1a2cd5={};_0x1a2cd5[_0x4cc86e(0x1c1)]=_0x110671[_0x4cc86e(0x1cd)],_0x1a2cd5[_0x4cc86e(0x218)]=_0x4c4c10;const _0x27bc6f={};_0x27bc6f[_0x4cc86e(0x1c1)]=_0x110671[_0x4cc86e(0x22a)],_0x27bc6f[_0x4cc86e(0x218)]=_0x19ef65;const _0x148b9e=[_0x4eebe9,_0x486686,_0x1a2cd5,_0x27bc6f],_0x297185=await _0x110671[_0x4cc86e(0x1e0)](generateReport,_0x148b9e,_0x37ff49),_0x493026=new Date(),_0x115cae=_0x493026[_0x4cc86e(0x21e)]()+'_'+_0x110671[_0x4cc86e(0x18a)](_0x493026[_0x4cc86e(0x19c)](),0x1)+'_'+_0x493026[_0x4cc86e(0x173)]()+'_'+_0x493026[_0x4cc86e(0x217)]()+'_'+_0x493026[_0x4cc86e(0x1c3)](),_0x477076=_0x4cc86e(0x1b1)+_0x115cae+'.txt';fs['writeFileSync'](_0x477076,_0x297185,_0x110671[_0x4cc86e(0x248)]),logger[_0x4cc86e(0x1ad)](_0x4cc86e(0x181)+_0x477076),process[_0x4cc86e(0x1d6)](0x0);}catch(_0x63dae5){let _0x45e20d=_0x4cc86e(0x16d)+_0x63dae5+'\x20';logger[_0x4cc86e(0x18b)](_0x45e20d),_0x45e20d+='\x0a'+JSON[_0x4cc86e(0x1ea)](_0x63dae5['stack']),logger[_0x4cc86e(0x1fa)](_0x4cc86e(0x238)+_0x63dae5[_0x4cc86e(0x204)]);if(_0x2ad796){const _0x151f3a={};_0x151f3a[_0x4cc86e(0x211)]=WS_EVENTS['LOG'],_0x151f3a['message']=_0x45e20d,webSocketUtils[_0x4cc86e(0x226)](_0x2ad796,_0x151f3a,_0x110671[_0x4cc86e(0x1ff)],!![]);}await webSocketUtils[_0x4cc86e(0x20c)](0x7d0);const _0xf61b0={};_0xf61b0[_0x4cc86e(0x18b)]=_0x45e20d,await _0x110671['lBBTw'](sendInstrumentationEvent,_0xeedcd4,_0x110671['cXqxI'],messageTypes[_0x4cc86e(0x18f)],_0x110671[_0x4cc86e(0x224)],_0xf61b0,_0xeedcd4),process[_0x4cc86e(0x1d6)](0x1);}};
1
+ const a17_0x2d0342=a17_0x9489;(function(_0x2133ff,_0x375d0f){const _0x434bb2=a17_0x9489,_0x715002=_0x2133ff();while(!![]){try{const _0x490b5a=-parseInt(_0x434bb2(0x1fa))/0x1+-parseInt(_0x434bb2(0x164))/0x2*(-parseInt(_0x434bb2(0x1a4))/0x3)+-parseInt(_0x434bb2(0x218))/0x4*(parseInt(_0x434bb2(0x17b))/0x5)+-parseInt(_0x434bb2(0x220))/0x6+parseInt(_0x434bb2(0x230))/0x7+-parseInt(_0x434bb2(0x1d9))/0x8*(parseInt(_0x434bb2(0x199))/0x9)+parseInt(_0x434bb2(0x208))/0xa*(parseInt(_0x434bb2(0x176))/0xb);if(_0x490b5a===_0x375d0f)break;else _0x715002['push'](_0x715002['shift']());}catch(_0xcc68a8){_0x715002['push'](_0x715002['shift']());}}}(a17_0x54e5,0x78ecf));const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require(a17_0x2d0342(0x22e)),ReconnectingWebSocket=require(a17_0x2d0342(0x1e7)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x2d0342(0x241)),{logger}=require(a17_0x2d0342(0x16f)),{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_0x2d0342(0x1b1)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x2d0342(0x205));exports[a17_0x2d0342(0x190)]=a17_0x2d0342(0x1a2),exports[a17_0x2d0342(0x228)]=a17_0x2d0342(0x224),exports['builder']=function(_0x29873d){const _0x5dae42=a17_0x2d0342,_0x2ed254={};_0x2ed254['gDhKX']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2ed254['tsuLN']='string',_0x2ed254[_0x5dae42(0x1e6)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2ed254['PUTPS']=_0x5dae42(0x1e3),_0x2ed254[_0x5dae42(0x1b2)]=_0x5dae42(0x15f),_0x2ed254[_0x5dae42(0x226)]=_0x5dae42(0x221);const _0x293f57=_0x2ed254,_0x323204={};_0x323204[_0x5dae42(0x1ba)]=_0x293f57[_0x5dae42(0x192)],_0x323204[_0x5dae42(0x1d3)]=_0x293f57[_0x5dae42(0x193)];const _0x492f36={};_0x492f36[_0x5dae42(0x1ba)]=_0x293f57['BURCW'],_0x492f36[_0x5dae42(0x1d3)]=_0x293f57[_0x5dae42(0x193)];const _0x1ea34f={};_0x1ea34f['description']=_0x293f57['PUTPS'],_0x1ea34f[_0x5dae42(0x1d3)]=_0x293f57[_0x5dae42(0x193)];const _0x5015c9={};_0x5015c9['description']=_0x293f57[_0x5dae42(0x1b2)],_0x5015c9[_0x5dae42(0x1d3)]=_0x293f57[_0x5dae42(0x193)];const _0x7aab5b={};return _0x7aab5b[_0x5dae42(0x173)]=_0x323204,_0x7aab5b[_0x5dae42(0x20a)]=_0x492f36,_0x7aab5b[_0x5dae42(0x1b7)]=_0x1ea34f,_0x7aab5b[_0x5dae42(0x17e)]=_0x5015c9,_0x29873d[_0x5dae42(0x23f)](HELP_HEADER_MESSAGE[_0x5dae42(0x1c2)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5dae42(0x1f6)](_0x7aab5b)[_0x5dae42(0x221)](_0x293f57[_0x5dae42(0x226)])[_0x5dae42(0x1b6)];};async function inputValidation(_0x311d84,_0x1139de){const _0x49986d=a17_0x2d0342,_0x6ce1c1={'bfmJc':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','BHrvZ':_0x49986d(0x1e4),'nixgw':_0x49986d(0x1de),'bxvWF':'cluster-name','NDBfw':'cloud-provider','yAYgr':function(_0x3cca5f,_0x1b10f9){return _0x3cca5f+_0x1b10f9;},'IHEju':_0x49986d(0x1fb),'pWFNL':_0x49986d(0x22c),'wJIjc':function(_0x156e8d,_0x2c3dd9){return _0x156e8d||_0x2c3dd9;},'MuoAM':'error','PrKaP':_0x49986d(0x22b),'dppkl':_0x49986d(0x20c),'RHLZf':_0x49986d(0x19b),'wCdpH':_0x49986d(0x22a),'RsQYW':_0x49986d(0x1ff),'KPxVc':_0x49986d(0x1e3),'wjbAy':_0x49986d(0x15f),'zxILM':_0x49986d(0x221),'MCKux':function(_0x242e3f,_0x1c7bc8){return _0x242e3f!==_0x1c7bc8;},'Lfntw':'LIOjE','tTgXu':_0x49986d(0x17c),'exxJM':function(_0x53de1f,_0x5c30b3){return _0x53de1f!==_0x5c30b3;},'KBUNp':'gGBOI','VXYiC':_0x49986d(0x246),'EnUJz':function(_0x361384,_0x1838c8){return _0x361384===_0x1838c8;},'oBylw':_0x49986d(0x203),'BvNWK':function(_0x33866b,_0x269b71){return _0x33866b!==_0x269b71;},'mmFGJ':'yULYS','BZBsX':'eSWpT','uJhPf':_0x49986d(0x247),'JuOEw':_0x49986d(0x231),'fmdXb':'region','ZXnsK':function(_0x3b4ca5,_0x4f49c4){return _0x3b4ca5>_0x4f49c4;},'gtopQ':_0x49986d(0x238),'tIOWI':function(_0x2726df,_0x28d7ba,_0xec853f,_0x2bf5db,_0x19a75c,_0x49216d,_0x5a8996,_0x29e661){return _0x2726df(_0x28d7ba,_0xec853f,_0x2bf5db,_0x19a75c,_0x49216d,_0x5a8996,_0x29e661);},'jMPmR':_0x49986d(0x21e),'cltVB':'pre-check-cluster-args-not-passed','xdOyz':function(_0x5839e2,_0x4d31da){return _0x5839e2!==_0x4d31da;},'IsfBA':'BnzKj','vSxjv':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','BgPSd':function(_0x42da04,_0x1d20c3,_0x5e3c69,_0x36acbe,_0x574790,_0x5bbc46,_0x1df387,_0x9cf6b2){return _0x42da04(_0x1d20c3,_0x5e3c69,_0x36acbe,_0x574790,_0x5bbc46,_0x1df387,_0x9cf6b2);},'ybtzh':_0x49986d(0x204),'CWQNv':_0x49986d(0x1b8),'nCrgn':_0x49986d(0x211),'oJnht':_0x49986d(0x24b),'vfCMy':_0x49986d(0x1e2),'Xzhqu':'GET','zzOnj':function(_0x360f63,_0x3fab52,_0x4d0a22){return _0x360f63(_0x3fab52,_0x4d0a22);},'Edzyd':function(_0x378ba0,_0x55a0db,_0x316524,_0xc3e4de,_0x1e08b6,_0x488e38){return _0x378ba0(_0x55a0db,_0x316524,_0xc3e4de,_0x1e08b6,_0x488e38);},'zyLWl':_0x49986d(0x1c8),'HLaXm':_0x49986d(0x17e),'ZFsSn':function(_0x13c07b,_0x984386){return _0x13c07b===_0x984386;},'vsRug':_0x49986d(0x160),'EzPcC':_0x49986d(0x1d8),'TLHMN':function(_0x4da9e9,_0x5a8dbd){return _0x4da9e9(_0x5a8dbd);},'UhRiH':function(_0x670520,_0x10eb10){return _0x670520!==_0x10eb10;},'FCvlq':_0x49986d(0x1f1),'ZkzMy':_0x49986d(0x1a5),'cCDQw':_0x49986d(0x235),'ujREG':function(_0x4779a3,_0x79ccb){return _0x4779a3===_0x79ccb;},'WTGiz':_0x49986d(0x18d),'PzbwQ':'Grid\x20profile\x20fetched\x20for\x20pre-check','JqANk':_0x49986d(0x1a8),'TvyuO':_0x49986d(0x1ef),'Wqbdg':function(_0x55f1ae,_0x352afe){return _0x55f1ae===_0x352afe;},'TnkGf':_0x49986d(0x1fe),'SDFmX':'QKOTT'};let _0x4850f2;try{if(_0x6ce1c1['MCKux'](_0x6ce1c1[_0x49986d(0x17a)],_0x6ce1c1[_0x49986d(0x180)])){if(_0x311d84[_0x49986d(0x165)]||_0x311d84[_0x49986d(0x1ce)]||_0x311d84[_0x49986d(0x1b7)]){if(_0x6ce1c1['exxJM'](_0x6ce1c1[_0x49986d(0x219)],_0x6ce1c1['VXYiC'])){const _0x348638=[];!_0x311d84[_0x49986d(0x165)]&&(_0x6ce1c1[_0x49986d(0x1af)](_0x6ce1c1[_0x49986d(0x244)],_0x6ce1c1['oBylw'])?_0x348638[_0x49986d(0x16b)](_0x6ce1c1[_0x49986d(0x155)]):_0x10c579[_0x49986d(0x177)]('Cluster\x20`'+_0x6589be['clusterName']+_0x49986d(0x1f9)));;!_0x311d84[_0x49986d(0x1ce)]&&(_0x6ce1c1[_0x49986d(0x200)](_0x6ce1c1[_0x49986d(0x1b0)],_0x6ce1c1['BZBsX'])?_0x348638[_0x49986d(0x16b)](_0x6ce1c1[_0x49986d(0x188)]):(_0x146fed[_0x49986d(0x18e)](_0x6ce1c1[_0x49986d(0x1ca)]),_0x3ef873[_0x49986d(0x239)](0x1)));;!_0x311d84[_0x49986d(0x1b7)]&&(_0x6ce1c1['EnUJz'](_0x6ce1c1[_0x49986d(0x207)],_0x6ce1c1[_0x49986d(0x206)])?(_0x340068+=_0x6ce1c1[_0x49986d(0x21c)],_0x50e54d+=_0x49986d(0x1aa)+(_0x35e605[_0x49986d(0x245)]||_0x6ce1c1['nixgw'])+'\x0a',_0x31a29a+=_0x49986d(0x1c3)+(_0x5b0d20[_0x49986d(0x15c)]||_0x6ce1c1[_0x49986d(0x1bb)])+'\x0a',_0x284120+=_0x49986d(0x1a9)+(_0xed1ed1[_0x49986d(0x1a3)]||_0x6ce1c1[_0x49986d(0x1bb)])+'\x0a'):_0x348638[_0x49986d(0x16b)](_0x6ce1c1['fmdXb']));;_0x6ce1c1[_0x49986d(0x1b4)](_0x348638['length'],0x0)&&(_0x6ce1c1[_0x49986d(0x1af)](_0x6ce1c1['gtopQ'],_0x6ce1c1[_0x49986d(0x1c0)])?(_0x4850f2='Missing\x20required\x20arguments:\x20'+_0x348638[_0x49986d(0x214)](',\x20')+_0x49986d(0x1ec),await _0x6ce1c1[_0x49986d(0x172)](reportToGalactusAndSendToEDS,_0x311d84,_0x1139de,_0x4850f2,messageTypes[_0x49986d(0x19d)],_0x6ce1c1[_0x49986d(0x156)],_0x6ce1c1[_0x49986d(0x150)],_0x6ce1c1['MuoAM']),logger[_0x49986d(0x18e)](_0x4850f2),process[_0x49986d(0x239)](0x1)):_0x4af5ca[_0x49986d(0x18e)]('error\x20stack\x20:\x20'+_0x16d9cd[_0x49986d(0x18e)][_0x49986d(0x1a3)])),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x49986d(0x1d5)](_0x311d84[_0x49986d(0x1ce)][_0x49986d(0x183)]())&&(_0x6ce1c1[_0x49986d(0x1c1)](_0x6ce1c1[_0x49986d(0x1d2)],_0x6ce1c1['IsfBA'])?(_0x5c0e87['info']('['+_0x4a94a0+_0x49986d(0x1ae)+_0xe71c6d[_0x49986d(0x249)]+_0x49986d(0x22f)+_0x3a8f99[_0x49986d(0x153)]+_0x49986d(0x15d)+_0x35e2a4[_0x49986d(0x18e)]),_0x414aea[_0x49986d(0x18e)]&&_0x52ecdf['error'](_0x49986d(0x1d6)+_0x315e22[_0x49986d(0x18e)][_0x49986d(0x1a3)])):(_0x4850f2=_0x6ce1c1[_0x49986d(0x1c7)],await _0x6ce1c1[_0x49986d(0x162)](reportToGalactusAndSendToEDS,_0x311d84,_0x1139de,_0x4850f2,messageTypes['ERROR'],_0x6ce1c1[_0x49986d(0x156)],_0x6ce1c1[_0x49986d(0x1ac)],_0x6ce1c1[_0x49986d(0x187)]),logger[_0x49986d(0x18e)](_0x4850f2),!_0x311d84[_0x49986d(0x1ce)]&&(_0x6ce1c1[_0x49986d(0x1af)](_0x6ce1c1[_0x49986d(0x1f8)],_0x6ce1c1['nCrgn'])?_0x395a78[_0x49986d(0x16b)](_0x6ce1c1['bxvWF']):(logger[_0x49986d(0x177)](_0x49986d(0x19e)+DEFAULT_CLUSTER_DETAILS[_0x49986d(0x1e0)]+'\x20'),_0x311d84['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x49986d(0x1e0)])))),global_registry[_0x49986d(0x165)]=_0x311d84[_0x49986d(0x165)],global_registry[_0x49986d(0x1ce)]=_0x311d84[_0x49986d(0x1ce)],global_registry[_0x49986d(0x215)]=_0x311d84['region'];}else _0x3b12b3[_0x49986d(0x16b)](_0x6ce1c1[_0x49986d(0x188)]);}else{if(_0x311d84[_0x49986d(0x18f)]){if(_0x6ce1c1['EnUJz'](_0x6ce1c1['oJnht'],_0x6ce1c1[_0x49986d(0x209)])){const {header:_0x514ef7,response:_0x5729ed}=_0x1b7372,{status:_0x388589,data:_0x142d71,error:_0x1979cb}=_0x5729ed;_0x309136+=_0x514ef7+'\x20#'+_0x6ce1c1[_0x49986d(0x154)](_0x2bde11,0x1)+'\x0a',_0x202042+=_0x49986d(0x1f0)+(_0x388589?_0x6ce1c1[_0x49986d(0x159)]:_0x6ce1c1[_0x49986d(0x232)])+'\x0a',_0x454a23+=_0x49986d(0x19f)+_0x6ce1c1[_0x49986d(0x1bf)](_0x142d71,_0x6ce1c1[_0x49986d(0x1bb)])+'\x0a',_0x1979cb&&(_0x90877d+=_0x6ce1c1['BHrvZ'],_0x358d83+='\x20\x20Message:\x20'+(_0x1979cb[_0x49986d(0x245)]||_0x6ce1c1[_0x49986d(0x1bb)])+'\x0a',_0x5269a1+=_0x49986d(0x1c3)+(_0x1979cb[_0x49986d(0x15c)]||_0x6ce1c1['nixgw'])+'\x0a',_0x184d21+=_0x49986d(0x1a9)+(_0x1979cb['stack']||_0x6ce1c1[_0x49986d(0x1bb)])+'\x0a'),_0x5a3af1+='\x0a\x0a';}else{global_registry[_0x49986d(0x18f)]=_0x311d84[_0x49986d(0x18f)],logger[_0x49986d(0x19c)](_0x49986d(0x167)+_0x311d84[_0x49986d(0x18f)]);const _0x1a9f25='https://'+AG_API_URL+_0x49986d(0x1d4),_0x3c4520={};_0x3c4520[_0x49986d(0x20d)]=_0x6ce1c1[_0x49986d(0x168)],_0x3c4520[_0x49986d(0x1cf)]=global_registry['authHeader'],_0x3c4520['throwHttpErrors']=![];const _0x272a2c=_0x3c4520,_0x370977=await _0x6ce1c1[_0x49986d(0x194)](got,_0x1a9f25,_0x272a2c),_0xcd5f4d=await _0x6ce1c1[_0x49986d(0x19a)](responseValidation,_0x370977,_0x6ce1c1[_0x49986d(0x157)],_0x6ce1c1[_0x49986d(0x21d)],_0x311d84,_0x1139de);let _0x2a76a={};if(_0x6ce1c1[_0x49986d(0x1af)](_0xcd5f4d,0xc8)){if(_0x6ce1c1['ZFsSn'](_0x6ce1c1['vsRug'],_0x6ce1c1['EzPcC']))_0x48f082[_0x49986d(0x239)](0x1);else{const _0x185f69=JSON[_0x49986d(0x1db)](_0x370977[_0x49986d(0x1e9)]),_0x5f28a2=_0x185f69[_0x49986d(0x18c)](_0x1ff462=>_0x1ff462['name']===_0x311d84[_0x49986d(0x18f)])||null;if(_0x6ce1c1[_0x49986d(0x23d)](isUndefined,_0x5f28a2)){if(_0x6ce1c1[_0x49986d(0x16a)](_0x6ce1c1[_0x49986d(0x184)],_0x6ce1c1[_0x49986d(0x184)])){const _0x34b7c0={};_0x34b7c0['type']=_0x4e37eb[_0x49986d(0x1f4)],_0x34b7c0['message']=_0x4f1651,_0x414a13[_0x49986d(0x216)](_0x3f9feb,_0x34b7c0,_0x6ce1c1[_0x49986d(0x187)],!![]);}else _0x4850f2=_0x49986d(0x227)+_0x311d84[_0x49986d(0x18f)]+_0x49986d(0x24c),await _0x6ce1c1[_0x49986d(0x172)](reportToGalactusAndSendToEDS,_0x311d84,_0x1139de,_0x4850f2,messageTypes['ERROR'],_0x6ce1c1[_0x49986d(0x156)],_0x6ce1c1[_0x49986d(0x16c)],_0x6ce1c1[_0x49986d(0x187)]),logger[_0x49986d(0x18e)](_0x4850f2),process['exit'](0x1);}else _0x6ce1c1['EnUJz'](_0x6ce1c1[_0x49986d(0x1d7)],_0x6ce1c1['cCDQw'])?_0x2a76a=_0x5f28a2:_0x57e95c=_0x1720c9;}}else _0x6ce1c1[_0x49986d(0x166)](_0x6ce1c1['WTGiz'],_0x6ce1c1[_0x49986d(0x178)])?process[_0x49986d(0x239)](0x1):_0x3c1a89+=_0x49986d(0x1ad)+_0x54c11c[_0x49986d(0x165)]+'\x20'+(_0x2e1997?_0x6ce1c1[_0x49986d(0x22d)]:_0x6ce1c1[_0x49986d(0x195)])+'\x0a\x0a';const _0x279583={};_0x279583[_0x49986d(0x1d3)]=WS_EVENTS[_0x49986d(0x1f4)],_0x279583[_0x49986d(0x245)]=_0x6ce1c1[_0x49986d(0x14f)],webSocketUtils[_0x49986d(0x216)](_0x1139de,_0x279583),global_registry['cloudProvider']=_0x2a76a[_0x49986d(0x1ce)],global_registry[_0x49986d(0x215)]=_0x2a76a['region'],global_registry[_0x49986d(0x165)]=_0x2a76a[_0x49986d(0x165)];}}else _0x6ce1c1[_0x49986d(0x158)](_0x6ce1c1[_0x49986d(0x1bc)],_0x6ce1c1[_0x49986d(0x212)])?(logger[_0x49986d(0x18e)](_0x6ce1c1[_0x49986d(0x1ca)]),process['exit'](0x1)):(_0xa5a17f[_0x49986d(0x177)](_0x49986d(0x19e)+_0x25d833[_0x49986d(0x1e0)]+'\x20'),_0x41ec3c[_0x49986d(0x1ce)]=_0x527640['CLOUD_PROVIDER']);}}else{const _0xbcd6da={};_0xbcd6da[_0x49986d(0x1ba)]=_0x6ce1c1[_0x49986d(0x1b9)],_0xbcd6da[_0x49986d(0x1d3)]=_0x6ce1c1['wCdpH'];const _0x5b6f98={};_0x5b6f98['description']=_0x6ce1c1[_0x49986d(0x1c9)],_0x5b6f98['type']=_0x6ce1c1[_0x49986d(0x170)];const _0x2bb05c={};_0x2bb05c[_0x49986d(0x1ba)]=_0x6ce1c1[_0x49986d(0x1bd)],_0x2bb05c[_0x49986d(0x1d3)]=_0x6ce1c1['wCdpH'];const _0x443879={};_0x443879[_0x49986d(0x1ba)]=_0x6ce1c1['wjbAy'],_0x443879[_0x49986d(0x1d3)]=_0x6ce1c1[_0x49986d(0x170)];const _0x8d63be={};return _0x8d63be[_0x49986d(0x173)]=_0xbcd6da,_0x8d63be[_0x49986d(0x20a)]=_0x5b6f98,_0x8d63be['region']=_0x2bb05c,_0x8d63be['grid-profile']=_0x443879,_0x4322e8[_0x49986d(0x23f)](_0x22a778[_0x49986d(0x1c2)])[_0x49986d(0x23e)](_0x6d6886)[_0x49986d(0x1f6)](_0x8d63be)[_0x49986d(0x221)](_0x6ce1c1[_0x49986d(0x21b)])['argv'];}}catch(_0x411e6e){_0x6ce1c1[_0x49986d(0x18a)](_0x6ce1c1[_0x49986d(0x217)],_0x6ce1c1[_0x49986d(0x23c)])?_0xdd34b9+='Cluster\x20'+_0x397d82[_0x49986d(0x165)]+_0x49986d(0x229):(_0x4850f2=_0x49986d(0x1da)+_0x411e6e+':\x20'+_0x411e6e[_0x49986d(0x1a3)],logger[_0x49986d(0x18e)](_0x4850f2),await _0x6ce1c1[_0x49986d(0x162)](reportToGalactusAndSendToEDS,_0x311d84,_0x1139de,_0x4850f2,messageTypes['ERROR'],_0x6ce1c1[_0x49986d(0x156)],_0x6ce1c1[_0x49986d(0x1ac)],_0x6ce1c1[_0x49986d(0x187)]),process[_0x49986d(0x239)](0x1));}}function a17_0x9489(_0x91edda,_0x46882e){const _0x54e565=a17_0x54e5();return a17_0x9489=function(_0x94892b,_0x37abc5){_0x94892b=_0x94892b-0x14f;let _0x13f18b=_0x54e565[_0x94892b];return _0x13f18b;},a17_0x9489(_0x91edda,_0x46882e);}function printResponse(_0x27b171,_0x36d330){const _0x2c450c=a17_0x2d0342,_0x4347cd={};_0x4347cd[_0x2c450c(0x210)]='region',_0x4347cd[_0x2c450c(0x202)]=function(_0x28c1c3,_0x1b3e66){return _0x28c1c3!==_0x1b3e66;},_0x4347cd[_0x2c450c(0x18b)]='iuBWq';const _0x152071=_0x4347cd;logger[_0x2c450c(0x177)]('['+_0x27b171+_0x2c450c(0x1ae)+_0x36d330[_0x2c450c(0x249)]+_0x2c450c(0x22f)+_0x36d330[_0x2c450c(0x153)]+'\x20error\x20:\x20'+_0x36d330[_0x2c450c(0x18e)]),_0x36d330[_0x2c450c(0x18e)]&&(_0x152071['AyevC'](_0x152071[_0x2c450c(0x18b)],_0x152071[_0x2c450c(0x18b)])?_0x5000a0[_0x2c450c(0x16b)](_0x152071[_0x2c450c(0x210)]):logger[_0x2c450c(0x18e)](_0x2c450c(0x1d6)+_0x36d330[_0x2c450c(0x18e)]['stack']));}async function generateReport(_0x45f957,_0x5af307){const _0x44515d=a17_0x2d0342,_0x3613d5={'hhths':function(_0x1ffa32,_0x1e6777){return _0x1ffa32+_0x1e6777;},'Ckxsr':_0x44515d(0x1fb),'RKyIo':_0x44515d(0x22c),'poDrr':function(_0x36eff9,_0x15fde6){return _0x36eff9||_0x15fde6;},'inEWv':_0x44515d(0x1de),'cyEQn':_0x44515d(0x1e4),'TBtqh':'Cluster\x20details\x0a-----------------------\x0a','Txhul':function(_0x3aa06f,_0x2b8085){return _0x3aa06f!=_0x2b8085;},'cHYma':_0x44515d(0x22b),'ZAMGb':_0x44515d(0x20c),'lVaLs':function(_0x16fb44){return _0x16fb44();}};let _0x4b7fb0=_0x44515d(0x1b5)+global_registry['cloudProvider']+_0x44515d(0x21a);return _0x45f957[_0x44515d(0x20f)]((_0x2a9dbb,_0x27ee76)=>{const _0x1a567c=_0x44515d,{header:_0x310390,response:_0x386054}=_0x2a9dbb,{status:_0x1e693c,data:_0x441d9d,error:_0x2de3e2}=_0x386054;_0x4b7fb0+=_0x310390+'\x20#'+_0x3613d5['hhths'](_0x27ee76,0x1)+'\x0a',_0x4b7fb0+=_0x1a567c(0x1f0)+(_0x1e693c?_0x3613d5[_0x1a567c(0x24a)]:_0x3613d5[_0x1a567c(0x16d)])+'\x0a',_0x4b7fb0+=_0x1a567c(0x19f)+_0x3613d5[_0x1a567c(0x1b3)](_0x441d9d,_0x3613d5[_0x1a567c(0x169)])+'\x0a',_0x2de3e2&&(_0x4b7fb0+=_0x3613d5[_0x1a567c(0x191)],_0x4b7fb0+='\x20\x20Message:\x20'+(_0x2de3e2[_0x1a567c(0x245)]||_0x3613d5[_0x1a567c(0x169)])+'\x0a',_0x4b7fb0+=_0x1a567c(0x1c3)+(_0x2de3e2[_0x1a567c(0x15c)]||_0x3613d5[_0x1a567c(0x169)])+'\x0a',_0x4b7fb0+='\x20\x20Stack:\x20'+(_0x2de3e2['stack']||_0x3613d5[_0x1a567c(0x169)])+'\x0a'),_0x4b7fb0+='\x0a\x0a';}),_0x4b7fb0+=_0x3613d5['TBtqh'],_0x3613d5[_0x44515d(0x1cd)](_0x5af307,null)?_0x4b7fb0+=_0x44515d(0x1ad)+global_registry['clusterName']+'\x20'+(_0x5af307?_0x3613d5['cHYma']:_0x3613d5['ZAMGb'])+'\x0a\x0a':_0x4b7fb0+=_0x44515d(0x1ad)+global_registry[_0x44515d(0x165)]+_0x44515d(0x229),_0x4b7fb0+=_0x3613d5[_0x44515d(0x1e8)](getSystemMetaData),_0x4b7fb0;};exports[a17_0x2d0342(0x237)]=async function(_0xb8b5dc){const _0x232acd=a17_0x2d0342,_0x32499d={'oXwUl':function(_0x535d6a){return _0x535d6a();},'gFOIV':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QPOAT':function(_0x35eb73,_0x4a8bf7,_0x3ba95e,_0xc28e4c,_0x2b026e,_0x37b2a3,_0x508b98,_0x57ca4f){return _0x35eb73(_0x4a8bf7,_0x3ba95e,_0xc28e4c,_0x2b026e,_0x37b2a3,_0x508b98,_0x57ca4f);},'uIwur':_0x232acd(0x21e),'uewQT':_0x232acd(0x171),'ZqQUE':'error','CxWLR':function(_0x847a4f,_0x9ca4d7,_0xb7b68e,_0x277b83,_0x2a2ba7,_0x5d3243,_0x1e49c1){return _0x847a4f(_0x9ca4d7,_0xb7b68e,_0x277b83,_0x2a2ba7,_0x5d3243,_0x1e49c1);},'eNqjt':function(_0x5bce53){return _0x5bce53();},'yCIKr':'<UsernamePlaceholder>','OkLKj':'<PasswordPlaceholder>','Usecn':function(_0x56561c,_0x3e3df9,_0x19aa86){return _0x56561c(_0x3e3df9,_0x19aa86);},'NSvrR':function(_0x2e6052,_0x8fdb32,_0x369c59,_0x4dc612,_0x1c84ad,_0x10d43c,_0x133ffb){return _0x2e6052(_0x8fdb32,_0x369c59,_0x4dc612,_0x1c84ad,_0x10d43c,_0x133ffb);},'XRlis':_0x232acd(0x161),'SivJh':function(_0xb627cc,_0x33e1d3,_0x224d1a){return _0xb627cc(_0x33e1d3,_0x224d1a);},'fGGwI':_0x232acd(0x1f5),'cDUOi':_0x232acd(0x1ab),'oJiae':function(_0x52a6b4,_0x3e60fa,_0x5746d2,_0x556674,_0x487143,_0x473c61,_0x1adbf2,_0x52682d){return _0x52a6b4(_0x3e60fa,_0x5746d2,_0x556674,_0x487143,_0x473c61,_0x1adbf2,_0x52682d);},'qmcCd':function(_0x57bb66,_0x127ba1,_0x49d69e){return _0x57bb66(_0x127ba1,_0x49d69e);},'rIuUA':_0x232acd(0x1cb),'QNpLR':function(_0x59ff38){return _0x59ff38();},'idujo':_0x232acd(0x17d),'WRLLD':function(_0x47cf84,_0x22d536){return _0x47cf84(_0x22d536);},'rkNfA':_0x232acd(0x185),'VEGTq':function(_0x46d5d6,_0x2d9694,_0x132a58){return _0x46d5d6(_0x2d9694,_0x132a58);},'YmSfk':_0x232acd(0x242),'ALEuD':_0x232acd(0x189),'TWIfy':_0x232acd(0x175),'GZLxO':_0x232acd(0x1eb),'neMwE':_0x232acd(0x23b),'qqmnF':function(_0x2b8d86,_0x38c971){return _0x2b8d86+_0x38c971;},'wYryt':'utf-8','jOKRQ':'pre-check-failed'};let _0x11825c,_0x30a944;try{global_registry[_0x232acd(0x186)]=_0x32499d['oXwUl'](uuidv4);!fs[_0x232acd(0x1c4)](_0x32499d[_0x232acd(0x1a7)](getCredentialsPath))&&(_0x30a944=_0x32499d[_0x232acd(0x1dc)],logger[_0x232acd(0x18e)](_0x30a944),await _0x32499d[_0x232acd(0x1f7)](reportToGalactusAndSendToEDS,_0xb8b5dc,_0x11825c,_0x30a944,messageTypes[_0x232acd(0x19d)],_0x32499d[_0x232acd(0x182)],_0x32499d['uewQT'],_0x32499d[_0x232acd(0x17f)]),process[_0x232acd(0x239)](0x1));_0x32499d['CxWLR'](sendInstrumentationEvent,_0xb8b5dc,_0x32499d[_0x232acd(0x182)],messageTypes['INFO'],null,null,_0xb8b5dc);const _0x129559=JSON[_0x232acd(0x1db)](fs[_0x232acd(0x152)](_0x32499d[_0x232acd(0x198)](getCredentialsPath)));global_registry[_0x232acd(0x16e)]=_0x129559[_0x232acd(0x197)][_0x232acd(0x1cc)],global_registry[_0x232acd(0x1a6)]=_0x129559[_0x232acd(0x197)][_0x232acd(0x23a)];const _0x22b7a5=WS_ENDPOINT[_0x232acd(0x222)](_0x32499d[_0x232acd(0x1fc)],_0x129559[_0x232acd(0x197)]['username'])[_0x232acd(0x222)](_0x32499d['OkLKj'],_0x129559[_0x232acd(0x197)][_0x232acd(0x23a)]),_0x285531={};_0x285531[_0x232acd(0x225)]=ws,_0x285531[_0x232acd(0x15e)]=0x36ee80,_0x11825c=new ReconnectingWebSocket(_0x22b7a5,[],_0x285531),global_registry[_0x232acd(0x1c5)]=_0x32499d[_0x232acd(0x1a1)](getAuthHeader,global_registry[_0x232acd(0x16e)],global_registry[_0x232acd(0x1a6)]),await _0x32499d[_0x232acd(0x1a1)](inputValidation,_0xb8b5dc,_0x11825c),logger[_0x232acd(0x177)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry[_0x232acd(0x215)]);let _0x1d7263=await _0x32499d[_0x232acd(0x20b)](getCloudProviderObjectWithOutInit,global_registry[_0x232acd(0x1ce)],global_registry[_0x232acd(0x165)],_0x32499d['XRlis'],_0x11825c,webSocketUtils,_0xb8b5dc);const _0x35a8be=await _0x1d7263[_0x232acd(0x1dd)]();_0x32499d[_0x232acd(0x1e5)](printResponse,_0x32499d[_0x232acd(0x1d1)],_0x35a8be),_0x1d7263=await _0x1d7263[_0x232acd(0x243)]();let _0x27fc8b=![];try{_0x27fc8b=await _0x1d7263[_0x232acd(0x181)]();}catch(_0x36729a){const _0x312756=_0x32499d[_0x232acd(0x1d0)][_0x232acd(0x163)]('|');let _0x2fab6e=0x0;while(!![]){switch(_0x312756[_0x2fab6e++]){case'0':logger[_0x232acd(0x18e)](_0x30a944);continue;case'1':_0x27fc8b=null;continue;case'2':_0x30a944='unable\x20to\x20verify\x20if\x20cluster\x20`'+global_registry['clusterName']+_0x232acd(0x1ed)+global_registry[_0x232acd(0x215)]+_0x232acd(0x223)+_0x36729a;continue;case'3':_0x30a944+='\x0a'+JSON[_0x232acd(0x1df)](_0x36729a['stack']);continue;case'4':await _0x32499d['oJiae'](reportToGalactusAndSendToEDS,_0xb8b5dc,_0x11825c,_0x30a944,messageTypes[_0x232acd(0x19d)],_0x32499d['uIwur'],_0x232acd(0x240)+global_registry['cloudProvider'],_0x32499d['ZqQUE']);continue;}break;}}_0x27fc8b&&logger[_0x232acd(0x177)]('Cluster\x20`'+global_registry[_0x232acd(0x165)]+_0x232acd(0x1f9));const _0x260dab=await _0x1d7263[_0x232acd(0x1f3)]();_0x32499d[_0x232acd(0x21f)](printResponse,_0x32499d[_0x232acd(0x1f2)],_0x260dab);const _0x168e75=await _0x32499d[_0x232acd(0x236)](curlRequest);_0x32499d[_0x232acd(0x1a1)](printResponse,_0x32499d[_0x232acd(0x1fd)],_0x168e75);const _0x5421c4=await _0x32499d[_0x232acd(0x1be)](isTlsSupported,_0x32499d[_0x232acd(0x201)]);_0x32499d[_0x232acd(0x213)](printResponse,_0x32499d[_0x232acd(0x1c6)],_0x5421c4);const _0x9249e8={};_0x9249e8[_0x232acd(0x1ea)]=_0x32499d['ALEuD'],_0x9249e8[_0x232acd(0x179)]=_0x35a8be;const _0x48c001={};_0x48c001[_0x232acd(0x1ea)]=_0x32499d['TWIfy'],_0x48c001[_0x232acd(0x179)]=_0x260dab;const _0x24b109={};_0x24b109['header']=_0x32499d[_0x232acd(0x151)],_0x24b109[_0x232acd(0x179)]=_0x168e75;const _0x5ceed6={};_0x5ceed6[_0x232acd(0x1ea)]=_0x32499d[_0x232acd(0x248)],_0x5ceed6['response']=_0x5421c4;const _0x2ef51b=[_0x9249e8,_0x48c001,_0x24b109,_0x5ceed6],_0x7b9efb=await _0x32499d[_0x232acd(0x1e5)](generateReport,_0x2ef51b,_0x27fc8b),_0x46f23d=new Date(),_0x1c8af4=_0x46f23d[_0x232acd(0x1ee)]()+'_'+_0x32499d['qqmnF'](_0x46f23d[_0x232acd(0x234)](),0x1)+'_'+_0x46f23d['getUTCDate']()+'_'+_0x46f23d[_0x232acd(0x196)]()+'_'+_0x46f23d[_0x232acd(0x174)](),_0x4d7fbd='log/report_'+_0x1c8af4+'.txt';fs[_0x232acd(0x1a0)](_0x4d7fbd,_0x7b9efb,_0x32499d[_0x232acd(0x233)]),logger[_0x232acd(0x177)](_0x232acd(0x1e1)+_0x4d7fbd),process[_0x232acd(0x239)](0x0);}catch(_0x441a2b){let _0x2cfd1a=_0x232acd(0x15a)+_0x441a2b+'\x20';logger['error'](_0x2cfd1a),_0x2cfd1a+='\x0a'+JSON['stringify'](_0x441a2b[_0x232acd(0x1a3)]),logger['debug']('stack\x20trace\x20'+_0x441a2b[_0x232acd(0x1a3)]);if(_0x11825c){const _0x430af4={};_0x430af4[_0x232acd(0x1d3)]=WS_EVENTS[_0x232acd(0x1f4)],_0x430af4[_0x232acd(0x245)]=_0x2cfd1a,webSocketUtils[_0x232acd(0x216)](_0x11825c,_0x430af4,_0x32499d[_0x232acd(0x17f)],!![]);}await webSocketUtils[_0x232acd(0x20e)](0x7d0);const _0x110919={};_0x110919[_0x232acd(0x18e)]=_0x2cfd1a,await _0x32499d[_0x232acd(0x20b)](sendInstrumentationEvent,_0xb8b5dc,_0x32499d['uIwur'],messageTypes[_0x232acd(0x19d)],_0x32499d[_0x232acd(0x15b)],_0x110919,_0xb8b5dc),process[_0x232acd(0x239)](0x1);}};function a17_0x54e5(){const _0x2a75e3=['EnUJz','mmFGJ','../../cloudproviders/utils','qbifA','poDrr','ZXnsK','===\x20Precheck\x20Report\x20-\x20','argv','region','pGDjV','RHLZf','description','nixgw','JqANk','KPxVc','WRLLD','wJIjc','gtopQ','xdOyz','pre_check','\x20\x20Code:\x20','existsSync','authHeader','YmSfk','vSxjv','pre-check','RsQYW','bfmJc','accessResp','username','Txhul','cloudProvider','headers','cDUOi','fGGwI','IsfBA','type','/packages/cli/get-all-grid-profiles','includes','error\x20stack\x20:\x20','cCDQw','EyGuA','16qdCJFv','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','parse','gFOIV','isCliToolInstalled','N/A','stringify','CLOUD_PROVIDER','Report\x20saved\x20in\x20','bgQNA','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Error\x20Details:\x0a','SivJh','BURCW','reconnecting-websocket','lVaLs','body','header','Whitelisted\x20browserstack','.\x20Please\x20provide\x20all\x20required\x20arguments.','`\x20is\x20present\x20in\x20region\x20`','getUTCFullYear','KKotn','Status:\x20','cpuuL','rIuUA','checkAccess','LOG','toolInstalledResp','options','QPOAT','CWQNv','`\x20already\x20exists','374042wWJkQI','Success','yCIKr','idujo','AkIWV','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','BvNWK','rkNfA','AyevC','YjOdn','cloud-provider-not-supported','../../utils/instrumentationUtils','JuOEw','uJhPf','3424810wGUawV','vfCMy','cloud-provider','NSvrR','will\x20be\x20created','method','delay','forEach','fWDlx','znoip','TvyuO','VEGTq','join','clusterRegion','sendEventToBackend','TnkGf','106832xSrwLj','KBUNp','\x20===\x0a\x0a','zxILM','BHrvZ','HLaXm','pre-check-grid-called','qmcCd','2737248pejnDa','help','replace','`\x20,error\x20:\x20','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','WebSocket','QlHiM','Invalid\x20input.\x20grid\x20profiles:\x20','desc','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','string','is\x20already\x20present','Failure','PrKaP','uuid','\x20data\x20:\x20','3922590hJWwJL','lCEcv','pWFNL','wYryt','getUTCMonth','MAoHP','QNpLR','handler','ShYop','exit','password','SSL\x20Configured','SDFmX','TLHMN','epilogue','usage','cluster-check-failed-','../../utils/utilityMethods','isTls1_2_SUPPORTED','init','oBylw','message','kEUys','SGYvQ','neMwE','status','Ckxsr','CPBPk','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','PzbwQ','cltVB','GZLxO','readFileSync','data','yAYgr','bxvWF','jMPmR','zyLWl','exxJM','IHEju','Failed\x20in\x20pre-check!\x20Error:\x20','jOKRQ','code','\x20error\x20:\x20','connectionTimeout','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ntjXF','dummy-grid','BgPSd','split','344Xzyoam','clusterName','ujREG','grid\x20profile\x20flow\x20','Xzhqu','inEWv','UhRiH','push','ZkzMy','RKyIo','bstackUsername','../../config/logger','wCdpH','credential-not-found','tIOWI','cluster-name','getUTCMinutes','User\x20Access','33ddqegC','info','WTGiz','response','Lfntw','165XorRZi','YzNFY','isTrialGridAccessible','grid-profile','ZqQUE','tTgXu','isClusterPresent','uIwur','toLowerCase','FCvlq','TLSv1_2_client_method','requestId','MuoAM','NDBfw','Tool\x20Installed','Wqbdg','GjPds','find','XCiJO','error','gridProfile','command','cyEQn','gDhKX','tsuLN','zzOnj','dppkl','getUTCHours','Browserstack','eNqjt','224082XQqJSC','Edzyd','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','debug','ERROR','Setting\x20cloud\x20provider\x20as\x20','Message:\x20','writeFileSync','Usecn','grid','stack','11667tSTMCX','pre-check-grid-profile-empty','bstackAccesskey','oXwUl','Jbfuw','\x20\x20Stack:\x20','\x20\x20Message:\x20','2|1|0|3|4','ybtzh','Cluster\x20',']\x20status\x20:\x20'];a17_0x54e5=function(){return _0x2a75e3;};return a17_0x54e5();}
@@ -1 +1 @@
1
- const a18_0x459e05=a18_0x4255;function a18_0x4255(_0x3554dd,_0x47db97){const _0xdaa1b9=a18_0xdaa1();return a18_0x4255=function(_0x42550d,_0x28bb61){_0x42550d=_0x42550d-0x88;let _0x41f308=_0xdaa1b9[_0x42550d];return _0x41f308;},a18_0x4255(_0x3554dd,_0x47db97);}(function(_0x9b85f3,_0x3ae816){const _0x203788=a18_0x4255,_0x2439e9=_0x9b85f3();while(!![]){try{const _0x30179a=-parseInt(_0x203788(0x89))/0x1*(-parseInt(_0x203788(0x8c))/0x2)+parseInt(_0x203788(0x93))/0x3+parseInt(_0x203788(0x90))/0x4*(-parseInt(_0x203788(0x88))/0x5)+parseInt(_0x203788(0x98))/0x6+parseInt(_0x203788(0x8a))/0x7*(-parseInt(_0x203788(0x9e))/0x8)+-parseInt(_0x203788(0x95))/0x9*(-parseInt(_0x203788(0x94))/0xa)+-parseInt(_0x203788(0x92))/0xb*(-parseInt(_0x203788(0x9c))/0xc);if(_0x30179a===_0x3ae816)break;else _0x2439e9['push'](_0x2439e9['shift']());}catch(_0x2046c4){_0x2439e9['push'](_0x2439e9['shift']());}}}(a18_0xdaa1,0x95d09));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x459e05(0x9a));exports['command']='start',exports[a18_0x459e05(0x9b)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a18_0x459e05(0x96)]=function(_0x63b7d1){const _0x1fc49a=a18_0x459e05,_0x24928c={};_0x24928c[_0x1fc49a(0x9f)]=_0x1fc49a(0x8e),_0x24928c['tdcjr']='help';const _0x5ba6ae=_0x24928c;return _0x63b7d1[_0x1fc49a(0x99)](HELP_HEADER_MESSAGE[_0x1fc49a(0x97)])[_0x1fc49a(0x8f)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5ba6ae[_0x1fc49a(0x9f)])['demandCommand']()[_0x1fc49a(0x9d)]()[_0x1fc49a(0x91)]()['help'](_0x5ba6ae[_0x1fc49a(0x8d)]);},exports[a18_0x459e05(0x8b)]=function(_0x285a2f){};function a18_0xdaa1(){const _0x598fbe=['9mdrNeX','builder','start','984384UcKEhq','usage','../config/constants','desc','21948bdPxeL','recommendCommands','1320HjIWUM','YwABt','51760JLzYPD','18462ttzMIG','22211Abopvm','handler','4vRGfMl','tdcjr','start_commands','epilogue','96yygiXD','strict','451eFKtnK','960879LLeEMK','7893640pnbmXC'];a18_0xdaa1=function(){return _0x598fbe;};return a18_0xdaa1();}
1
+ const a18_0x71d8c4=a18_0x1788;(function(_0x470333,_0x313a4c){const _0x326c54=a18_0x1788,_0x3f0b86=_0x470333();while(!![]){try{const _0x1c2ace=parseInt(_0x326c54(0xfd))/0x1*(parseInt(_0x326c54(0x106))/0x2)+parseInt(_0x326c54(0x102))/0x3*(parseInt(_0x326c54(0xf5))/0x4)+-parseInt(_0x326c54(0xf8))/0x5+parseInt(_0x326c54(0xf6))/0x6*(parseInt(_0x326c54(0xfe))/0x7)+parseInt(_0x326c54(0xfb))/0x8*(-parseInt(_0x326c54(0x108))/0x9)+-parseInt(_0x326c54(0x109))/0xa+parseInt(_0x326c54(0xfc))/0xb;if(_0x1c2ace===_0x313a4c)break;else _0x3f0b86['push'](_0x3f0b86['shift']());}catch(_0x3cee4a){_0x3f0b86['push'](_0x3f0b86['shift']());}}}(a18_0x34f6,0x3a21d));function a18_0x34f6(){const _0x1692d1=['Start\x20an\x20existing\x20Automation\x20grid.','../config/constants','recommendCommands','commandDir','handler','4OaMAqp','412890EBQCKU','command','596200PqTuvy','start_commands','demandCommand','1259816YZzfju','5297347gGJfdc','2xYTqvy','14eelPAX','start','AECmp','help','419022ybZcij','usage','KUbiq','epilogue','202958pZRLTs','builder','27EoiZOt','1320590LrVIGB'];a18_0x34f6=function(){return _0x1692d1;};return a18_0x34f6();}function a18_0x1788(_0x27b716,_0x23cd1b){const _0x34f668=a18_0x34f6();return a18_0x1788=function(_0x17881c,_0x1c1a12){_0x17881c=_0x17881c-0xf4;let _0x198da9=_0x34f668[_0x17881c];return _0x198da9;},a18_0x1788(_0x27b716,_0x23cd1b);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x71d8c4(0x10b));exports[a18_0x71d8c4(0xf7)]=a18_0x71d8c4(0xff),exports['desc']=a18_0x71d8c4(0x10a),exports[a18_0x71d8c4(0x107)]=function(_0x449357){const _0x5e0cc0=a18_0x71d8c4,_0x39ca90={};_0x39ca90[_0x5e0cc0(0x104)]=_0x5e0cc0(0xf9),_0x39ca90[_0x5e0cc0(0x100)]=_0x5e0cc0(0x101);const _0x45ea7d=_0x39ca90;return _0x449357[_0x5e0cc0(0x103)](HELP_HEADER_MESSAGE[_0x5e0cc0(0xff)])[_0x5e0cc0(0x105)](HELP_FOOTER_MESSAGE)[_0x5e0cc0(0x10d)](_0x45ea7d[_0x5e0cc0(0x104)])[_0x5e0cc0(0xfa)]()[_0x5e0cc0(0x10c)]()['strict']()[_0x5e0cc0(0x101)](_0x45ea7d[_0x5e0cc0(0x100)]);},exports[a18_0x71d8c4(0xf4)]=function(_0x2ccbed){};
@@ -1 +1 @@
1
- function a19_0x2453(){const _0x301289=['../../utils/createk8sClient','../../cloudproviders/utils','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','qsHtN','password','8FElmea','10GPyUiM','PMdEN','statusCode','region','clusterName','70857UNhPcV','ERROR','exit','default','../../utils/instrumentationUtils','wYRDy','stack','clusterRegion','tgPZM','parse','debug','../../config/logger','start','unauthorised','684597xsHWVM','stringify','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','hwJaZ','builder','type','info','LlBps','XTgKn','reconnecting-websocket','gzFkj','Adding\x20Websocket\x20listeners','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','nPCPD','LQbHd','Grid\x20started','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','kAlhC','15BfUqqy','replace','user','LJbbE','<PasswordPlaceholder>','error','TyvoO','Skip\x20insecure\x20cert\x20verification.','description','Browserstack','body','grid-id','1546160UTLRcP','3584367tHJeTO','nlcxc','connectionTimeout','xjBui','epilogue','handler','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','MICHq','WebSocket','1928410ghWbhE','Start\x20an\x20existing\x20Automation\x20grid.','<UsernamePlaceholder>','../../config/constants','gqKVB','303582UnDofX','jgPPu','username','BZqWB','USZCB','existsSync','string','gridId','addListeners','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cloudProvider','xjnjF','start-grid-called','../../utils/webSocketUtils','920073MIpWjY','WRzrP','mwciX','4HbeYLa','../../utils/gridComponents'];a19_0x2453=function(){return _0x301289;};return a19_0x2453();}function a19_0x228a(_0x42e617,_0x5cc9d7){const _0x245394=a19_0x2453();return a19_0x228a=function(_0x228ad7,_0x2c90aa){_0x228ad7=_0x228ad7-0x143;let _0x492da2=_0x245394[_0x228ad7];return _0x492da2;},a19_0x228a(_0x42e617,_0x5cc9d7);}const a19_0x3808e9=a19_0x228a;(function(_0x29a9ea,_0x503fd8){const _0x26d2dc=a19_0x228a,_0x25ab09=_0x29a9ea();while(!![]){try{const _0x11f364=-parseInt(_0x26d2dc(0x150))/0x1*(parseInt(_0x26d2dc(0x14b))/0x2)+-parseInt(_0x26d2dc(0x15e))/0x3*(parseInt(_0x26d2dc(0x143))/0x4)+-parseInt(_0x26d2dc(0x170))/0x5*(-parseInt(_0x26d2dc(0x18c))/0x6)+parseInt(_0x26d2dc(0x17c))/0x7+-parseInt(_0x26d2dc(0x14a))/0x8*(-parseInt(_0x26d2dc(0x17d))/0x9)+parseInt(_0x26d2dc(0x187))/0xa+parseInt(_0x26d2dc(0x19a))/0xb;if(_0x11f364===_0x503fd8)break;else _0x25ab09['push'](_0x25ab09['shift']());}catch(_0x530f96){_0x25ab09['push'](_0x25ab09['shift']());}}}(a19_0x2453,0x71826));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3808e9(0x167)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3808e9(0x18a)),{logger}=require(a19_0x3808e9(0x15b)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x3808e9(0x144)),{sendInstrumentationEvent}=require(a19_0x3808e9(0x154)),webSocketUtils=require(a19_0x3808e9(0x199)),{createK8sClient}=require(a19_0x3808e9(0x145)),{getCloudProviderObject}=require(a19_0x3808e9(0x146));exports['command']='grid',exports['desc']=a19_0x3808e9(0x188),exports[a19_0x3808e9(0x162)]=function(_0x6e859a){const _0x1dbb45=a19_0x3808e9,_0xcc889c={};_0xcc889c[_0x1dbb45(0x17e)]=_0x1dbb45(0x147),_0xcc889c[_0x1dbb45(0x161)]=_0x1dbb45(0x192),_0xcc889c[_0x1dbb45(0x168)]=_0x1dbb45(0x177),_0xcc889c[_0x1dbb45(0x18f)]='boolean',_0xcc889c[_0x1dbb45(0x166)]='help';const _0x3c53b8=_0xcc889c,_0x66354c={};_0x66354c[_0x1dbb45(0x178)]=_0x3c53b8[_0x1dbb45(0x17e)],_0x66354c[_0x1dbb45(0x163)]=_0x3c53b8[_0x1dbb45(0x161)];const _0x5a7eaf={};_0x5a7eaf[_0x1dbb45(0x178)]=_0x3c53b8[_0x1dbb45(0x168)],_0x5a7eaf[_0x1dbb45(0x163)]=_0x3c53b8[_0x1dbb45(0x18f)],_0x5a7eaf[_0x1dbb45(0x153)]=![];const _0x2dae12={};return _0x2dae12[_0x1dbb45(0x17b)]=_0x66354c,_0x2dae12['skip-tls-cert-verify']=_0x5a7eaf,_0x6e859a['usage'](HELP_HEADER_MESSAGE[_0x1dbb45(0x15c)])[_0x1dbb45(0x181)](HELP_FOOTER_MESSAGE)['options'](_0x2dae12)['help'](_0x3c53b8[_0x1dbb45(0x166)])['argv'];},exports[a19_0x3808e9(0x182)]=async function(_0x483856){const _0x2be837=a19_0x3808e9,_0x525ab4={'ALjzU':_0x2be837(0x160),'ANNvO':function(_0x58f0ad){return _0x58f0ad();},'LQbHd':_0x2be837(0x16a),'TyvoO':function(_0x365b39,_0x41ed1b,_0x200e1e,_0x459d23,_0x334e94,_0xd194e2,_0x3e8c7c){return _0x365b39(_0x41ed1b,_0x200e1e,_0x459d23,_0x334e94,_0xd194e2,_0x3e8c7c);},'qsHtN':_0x2be837(0x198),'jgPPu':'init-not-called','LlBps':function(_0x2d7fac,_0x1862c5,_0xc72657,_0x5c3116,_0x52e70e,_0x5f5cd5,_0x2ac739){return _0x2d7fac(_0x1862c5,_0xc72657,_0x5c3116,_0x52e70e,_0x5f5cd5,_0x2ac739);},'nPCPD':function(_0x57d783){return _0x57d783();},'wYRDy':_0x2be837(0x189),'xjBui':_0x2be837(0x174),'USZCB':_0x2be837(0x169),'tgPZM':function(_0x5abca8,_0x24fa36,_0x49b20a,_0x4371ba){return _0x5abca8(_0x24fa36,_0x49b20a,_0x4371ba);},'PMdEN':function(_0x222034,_0x3ce91d,_0x3bac98){return _0x222034(_0x3ce91d,_0x3bac98);},'xjnjF':function(_0x49d9f4,_0x43ea18,_0x5dc1b4){return _0x49d9f4(_0x43ea18,_0x5dc1b4);},'kAlhC':_0x2be837(0x16d),'gqKVB':function(_0x530cb9,_0x305b51){return _0x530cb9===_0x305b51;},'LJbbE':_0x2be837(0x195),'oXBId':_0x2be837(0x15d),'WRzrP':function(_0x233ab7,_0x5a1aed){return _0x233ab7===_0x5a1aed;},'MICHq':function(_0x41c15f,_0x47b7af,_0x4508e0,_0x2ce2f0,_0x4c834f,_0x8dfbbc,_0x2acae6){return _0x41c15f(_0x47b7af,_0x4508e0,_0x2ce2f0,_0x4c834f,_0x8dfbbc,_0x2acae6);},'mwciX':'invalid-grid-id','YAIxO':function(_0x21a61b,_0x2dfafb,_0x2064f0,_0x26c7f6,_0x1a1c56,_0x389ed3,_0x973d62){return _0x21a61b(_0x2dfafb,_0x2064f0,_0x26c7f6,_0x1a1c56,_0x389ed3,_0x973d62);},'qnoez':'server-error'};let _0x1f7b50;try{!_0x483856['gridId']&&(logger[_0x2be837(0x175)](_0x525ab4['ALjzU']),process[_0x2be837(0x152)](0x1));!fs[_0x2be837(0x191)](_0x525ab4['ANNvO'](getCredentialsPath))&&(logger[_0x2be837(0x175)](_0x525ab4[_0x2be837(0x16c)]),await _0x525ab4[_0x2be837(0x176)](sendInstrumentationEvent,_0x483856,_0x525ab4['qsHtN'],messageTypes['ERROR'],_0x525ab4[_0x2be837(0x18d)],null,_0x483856),process[_0x2be837(0x152)](0x1));logger[_0x2be837(0x164)]('Starting\x20grid\x20'+_0x483856['gridId']),await _0x525ab4[_0x2be837(0x165)](sendInstrumentationEvent,_0x483856,_0x525ab4[_0x2be837(0x148)],messageTypes['INFO'],null,null,_0x483856);const _0x5c9c05=JSON[_0x2be837(0x159)](fs['readFileSync'](_0x525ab4[_0x2be837(0x16b)](getCredentialsPath)));global_registry['bstackUsername']=_0x5c9c05[_0x2be837(0x179)]['username'],global_registry['bstackAccesskey']=_0x5c9c05['Browserstack'][_0x2be837(0x149)];const _0xeba729=WS_ENDPOINT[_0x2be837(0x171)](_0x525ab4[_0x2be837(0x155)],_0x5c9c05[_0x2be837(0x179)][_0x2be837(0x18e)])['replace'](_0x525ab4[_0x2be837(0x180)],_0x5c9c05[_0x2be837(0x179)][_0x2be837(0x149)]),_0x92c6be={};_0x92c6be[_0x2be837(0x186)]=ws,_0x92c6be[_0x2be837(0x17f)]=0x36ee80,_0x1f7b50=new ReconnectingWebSocket(_0xeba729,[],_0x92c6be),logger[_0x2be837(0x15a)](_0x525ab4[_0x2be837(0x190)]),webSocketUtils[_0x2be837(0x194)](_0x1f7b50,_0x483856[_0x2be837(0x172)],_0x483856['password']);const [_0xe307b4,_0xa9b14a]=await _0x525ab4[_0x2be837(0x158)](getGridDetails,_0x5c9c05[_0x2be837(0x179)][_0x2be837(0x18e)],_0x5c9c05['Browserstack'][_0x2be837(0x149)],_0x483856[_0x2be837(0x193)]);if(_0xa9b14a){const _0x4b4451=_0xa9b14a[_0x2be837(0x164)];global_registry[_0x2be837(0x196)]=_0x4b4451[_0x2be837(0x196)],global_registry[_0x2be837(0x157)]=_0x4b4451[_0x2be837(0x14e)],global_registry[_0x2be837(0x14f)]=_0x4b4451[_0x2be837(0x14f)];const _0x271cfa=await _0x525ab4[_0x2be837(0x176)](getCloudProviderObject,_0x4b4451['cloudProvider'],_0x4b4451[_0x2be837(0x14f)],_0x4b4451['name'],_0x1f7b50,webSocketUtils,_0x483856),[_0xd0cee0,_0x3c160f,_0x5d06a1,_0x5e6de2,_0xce292b,_0x4222d5]=await _0x525ab4[_0x2be837(0x14c)](createK8sClient,_0x271cfa,_0x483856['skipTlsCertVerify']);await _0x525ab4[_0x2be837(0x197)](scaleUpHubDeployment,_0x3c160f,_0x4b4451[_0x2be837(0x183)]),logger[_0x2be837(0x164)](_0x525ab4[_0x2be837(0x16f)]),process[_0x2be837(0x152)](0x0);}_0x525ab4[_0x2be837(0x18b)](_0xe307b4[_0x2be837(0x14d)],0x191)&&(logger[_0x2be837(0x175)](_0x525ab4[_0x2be837(0x173)]),await _0x525ab4['TyvoO'](sendInstrumentationEvent,_0x483856,_0x525ab4[_0x2be837(0x148)],messageTypes[_0x2be837(0x151)],_0x525ab4['oXBId'],null,_0x483856),process[_0x2be837(0x152)](0x1)),_0x525ab4[_0x2be837(0x19b)](_0xe307b4[_0x2be837(0x14d)],0x190)&&(logger[_0x2be837(0x175)](JSON[_0x2be837(0x159)](_0xe307b4[_0x2be837(0x17a)])['message']),await _0x525ab4[_0x2be837(0x185)](sendInstrumentationEvent,_0x483856,_0x525ab4['qsHtN'],messageTypes[_0x2be837(0x151)],_0x525ab4[_0x2be837(0x19c)],null,_0x483856),process[_0x2be837(0x152)](0x1)),logger['error'](_0x2be837(0x184)+JSON[_0x2be837(0x15f)](_0xe307b4)),await _0x525ab4['YAIxO'](sendInstrumentationEvent,_0x483856,_0x525ab4['qsHtN'],messageTypes[_0x2be837(0x151)],_0x525ab4['qnoez'],_0xe307b4,_0x483856),process['exit'](0x1);}catch(_0x4f1cb7){const _0x542a49=_0x2be837(0x16e)+_0x4f1cb7+'\x20\x0a'+JSON[_0x2be837(0x15f)](_0x4f1cb7[_0x2be837(0x156)])+'\x20';logger[_0x2be837(0x175)](_0x542a49),process[_0x2be837(0x152)](0x1);}};
1
+ function a19_0x3ac8(_0x41f5d2,_0x369b00){const _0x4307ee=a19_0x4307();return a19_0x3ac8=function(_0x3ac863,_0x19ef84){_0x3ac863=_0x3ac863-0xc8;let _0x11cc03=_0x4307ee[_0x3ac863];return _0x11cc03;},a19_0x3ac8(_0x41f5d2,_0x369b00);}const a19_0xffc654=a19_0x3ac8;(function(_0x38091e,_0x34fa55){const _0x28278b=a19_0x3ac8,_0x11ee99=_0x38091e();while(!![]){try{const _0xe6ee5b=-parseInt(_0x28278b(0x101))/0x1+-parseInt(_0x28278b(0xdc))/0x2+-parseInt(_0x28278b(0xd1))/0x3*(-parseInt(_0x28278b(0x11e))/0x4)+-parseInt(_0x28278b(0xf2))/0x5*(parseInt(_0x28278b(0x102))/0x6)+-parseInt(_0x28278b(0xff))/0x7+-parseInt(_0x28278b(0x128))/0x8+-parseInt(_0x28278b(0xda))/0x9*(-parseInt(_0x28278b(0x11f))/0xa);if(_0xe6ee5b===_0x34fa55)break;else _0x11ee99['push'](_0x11ee99['shift']());}catch(_0x2e3861){_0x11ee99['push'](_0x11ee99['shift']());}}}(a19_0x4307,0x98421));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0xffc654(0x126)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0xffc654(0x112)),{scaleUpHubDeployment}=require(a19_0xffc654(0x10e)),{sendInstrumentationEvent}=require(a19_0xffc654(0x125)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0xffc654(0xdd)),{getCloudProviderObject}=require(a19_0xffc654(0xe6));function a19_0x4307(){const _0x1f4cc9=['stack','../../utils/utilityMethods','init-not-called','builder','skipTlsCertVerify','INwTo','idykK','exit','connectionTimeout','replace','mLwTf','default','nFPLZ','4ScHPAV','30950UrrHxk','BbsXP','invalid-grid-id','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GQzgj','../../utils/instrumentationUtils','../../config/constants','stringify','8751672KFfCGO','existsSync','ZOXnu','readFileSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','MloDr','gridId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','FzUEQ','usage','ERROR','1461171tQAhXn','info','region','error','QFtiB','epilogue','string','bstackAccesskey','addListeners','5787DPKFyS','description','156866XdwmtW','../../utils/createk8sClient','<PasswordPlaceholder>','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','yEkqn','TTYCE','eBwYD','AYzpw','user','Browserstack','../../cloudproviders/utils','Starting\x20grid\x20','Grid\x20started','type','message','help','argv','PTXxP','Skip\x20insecure\x20cert\x20verification.','OvkgZ','duKaf','boolean','20770cnmROV','body','statusCode','parse','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','start','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','username','INFO','options','server-error','clusterRegion','ZyyBT','229474lFQJQw','unauthorised','58451CRZSAL','852ScZNxR','cloudProvider','hIuKj','clusterName','SixBW','password','Adding\x20Websocket\x20listeners','AjuDT','debug','MzsnC','OOmqh','name','../../utils/gridComponents','WqCQc','stcoe'];a19_0x4307=function(){return _0x1f4cc9;};return a19_0x4307();}exports['command']='grid',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0xffc654(0x114)]=function(_0x294a8f){const _0xaff48=a19_0xffc654,_0xcce63f={};_0xcce63f[_0xaff48(0xc8)]=_0xaff48(0xdf),_0xcce63f['yEkqn']=_0xaff48(0xd7),_0xcce63f[_0xaff48(0x120)]=_0xaff48(0xee),_0xcce63f['FzUEQ']=_0xaff48(0xf1),_0xcce63f[_0xaff48(0x117)]=_0xaff48(0xeb);const _0x4012b7=_0xcce63f,_0x388491={};_0x388491['description']=_0x4012b7['ZOXnu'],_0x388491[_0xaff48(0xe9)]=_0x4012b7[_0xaff48(0xe0)];const _0x5a91ec={};_0x5a91ec[_0xaff48(0xdb)]=_0x4012b7['BbsXP'],_0x5a91ec[_0xaff48(0xe9)]=_0x4012b7[_0xaff48(0xce)],_0x5a91ec[_0xaff48(0x11c)]=![];const _0x58d663={};return _0x58d663['grid-id']=_0x388491,_0x58d663[_0xaff48(0x122)]=_0x5a91ec,_0x294a8f[_0xaff48(0xcf)](HELP_HEADER_MESSAGE[_0xaff48(0xf7)])[_0xaff48(0xd6)](HELP_FOOTER_MESSAGE)[_0xaff48(0xfb)](_0x58d663)[_0xaff48(0xeb)](_0x4012b7['idykK'])[_0xaff48(0xec)];},exports['handler']=async function(_0xf32895){const _0x8f67df=a19_0xffc654,_0x24e22c={'hIuKj':_0x8f67df(0xf6),'BMhXp':function(_0xc555bb){return _0xc555bb();},'AjuDT':_0x8f67df(0xcd),'WqCQc':function(_0xb8a240,_0x35ea44,_0x12c680,_0xaade8d,_0x245b07,_0x3566d0,_0x1a28ee){return _0xb8a240(_0x35ea44,_0x12c680,_0xaade8d,_0x245b07,_0x3566d0,_0x1a28ee);},'mLwTf':'start-grid-called','TTYCE':_0x8f67df(0x113),'OOmqh':function(_0x48233d){return _0x48233d();},'PTXxP':'<UsernamePlaceholder>','stcoe':_0x8f67df(0xde),'AYzpw':_0x8f67df(0x108),'GQzgj':function(_0x10aae6,_0x2ef706,_0x16c8c7,_0x27d371){return _0x10aae6(_0x2ef706,_0x16c8c7,_0x27d371);},'MloDr':function(_0x4eeded,_0x318399,_0x462852){return _0x4eeded(_0x318399,_0x462852);},'OvkgZ':function(_0x13ee92,_0x5e1b42,_0x10eb05){return _0x13ee92(_0x5e1b42,_0x10eb05);},'nFPLZ':_0x8f67df(0xe8),'INwTo':function(_0x34bd05,_0x42c256){return _0x34bd05===_0x42c256;},'QFtiB':_0x8f67df(0xca),'eBwYD':function(_0x2229be,_0x3c01f8,_0x17f723,_0x2e75b6,_0x2868a3,_0x1c3f81,_0x3c369c){return _0x2229be(_0x3c01f8,_0x17f723,_0x2e75b6,_0x2868a3,_0x1c3f81,_0x3c369c);},'MzsnC':_0x8f67df(0x100),'duKaf':function(_0x426ec1,_0x226d45){return _0x426ec1===_0x226d45;},'ZyyBT':_0x8f67df(0x121),'hXcFr':function(_0x1cfb2b,_0x105275,_0x2c96c5,_0x4b5884,_0x4b7f65,_0x19574d,_0x52654f){return _0x1cfb2b(_0x105275,_0x2c96c5,_0x4b5884,_0x4b7f65,_0x19574d,_0x52654f);},'SixBW':_0x8f67df(0xfc)};let _0x190915;try{!_0xf32895[_0x8f67df(0xcc)]&&(logger[_0x8f67df(0xd4)](_0x24e22c[_0x8f67df(0x104)]),process[_0x8f67df(0x118)](0x1));!fs[_0x8f67df(0x129)](_0x24e22c['BMhXp'](getCredentialsPath))&&(logger['error'](_0x24e22c[_0x8f67df(0x109)]),await _0x24e22c['WqCQc'](sendInstrumentationEvent,_0xf32895,_0x24e22c[_0x8f67df(0x11b)],messageTypes[_0x8f67df(0xd0)],_0x24e22c[_0x8f67df(0xe1)],null,_0xf32895),process['exit'](0x1));logger['info'](_0x8f67df(0xe7)+_0xf32895[_0x8f67df(0xcc)]),await _0x24e22c[_0x8f67df(0x10f)](sendInstrumentationEvent,_0xf32895,_0x24e22c[_0x8f67df(0x11b)],messageTypes[_0x8f67df(0xfa)],null,null,_0xf32895);const _0x36464c=JSON['parse'](fs[_0x8f67df(0xc9)](_0x24e22c[_0x8f67df(0x10c)](getCredentialsPath)));global_registry['bstackUsername']=_0x36464c[_0x8f67df(0xe5)][_0x8f67df(0xf9)],global_registry[_0x8f67df(0xd8)]=_0x36464c[_0x8f67df(0xe5)][_0x8f67df(0x107)];const _0x4d5996=WS_ENDPOINT[_0x8f67df(0x11a)](_0x24e22c[_0x8f67df(0xed)],_0x36464c[_0x8f67df(0xe5)][_0x8f67df(0xf9)])['replace'](_0x24e22c[_0x8f67df(0x110)],_0x36464c['Browserstack']['password']),_0x522bc5={};_0x522bc5['WebSocket']=ws,_0x522bc5[_0x8f67df(0x119)]=0x36ee80,_0x190915=new ReconnectingWebSocket(_0x4d5996,[],_0x522bc5),logger[_0x8f67df(0x10a)](_0x24e22c[_0x8f67df(0xe3)]),webSocketUtils[_0x8f67df(0xd9)](_0x190915,_0xf32895[_0x8f67df(0xe4)],_0xf32895[_0x8f67df(0x107)]);const [_0x3b0343,_0x4c6091]=await _0x24e22c[_0x8f67df(0x124)](getGridDetails,_0x36464c[_0x8f67df(0xe5)][_0x8f67df(0xf9)],_0x36464c[_0x8f67df(0xe5)][_0x8f67df(0x107)],_0xf32895['gridId']);if(_0x4c6091){const _0xbdcf00=_0x4c6091[_0x8f67df(0xd2)];global_registry[_0x8f67df(0x103)]=_0xbdcf00[_0x8f67df(0x103)],global_registry[_0x8f67df(0xfd)]=_0xbdcf00[_0x8f67df(0xd3)],global_registry['clusterName']=_0xbdcf00[_0x8f67df(0x105)];const _0x33a8a5=await _0x24e22c[_0x8f67df(0x10f)](getCloudProviderObject,_0xbdcf00[_0x8f67df(0x103)],_0xbdcf00[_0x8f67df(0x105)],_0xbdcf00[_0x8f67df(0x10d)],_0x190915,webSocketUtils,_0xf32895),[_0x5f0550,_0x1e0d3a,_0x2e28f5,_0x446ca3,_0x55ec15,_0x2b4769]=await _0x24e22c[_0x8f67df(0xcb)](createK8sClient,_0x33a8a5,_0xf32895[_0x8f67df(0x115)]);await _0x24e22c[_0x8f67df(0xef)](scaleUpHubDeployment,_0x1e0d3a,_0xbdcf00[_0x8f67df(0x10d)]),logger[_0x8f67df(0xd2)](_0x24e22c[_0x8f67df(0x11d)]),process[_0x8f67df(0x118)](0x0);}_0x24e22c[_0x8f67df(0x116)](_0x3b0343['statusCode'],0x191)&&(logger[_0x8f67df(0xd4)](_0x24e22c[_0x8f67df(0xd5)]),await _0x24e22c[_0x8f67df(0xe2)](sendInstrumentationEvent,_0xf32895,_0x24e22c['mLwTf'],messageTypes[_0x8f67df(0xd0)],_0x24e22c[_0x8f67df(0x10b)],null,_0xf32895),process[_0x8f67df(0x118)](0x1)),_0x24e22c[_0x8f67df(0xf0)](_0x3b0343[_0x8f67df(0xf4)],0x190)&&(logger['error'](JSON[_0x8f67df(0xf5)](_0x3b0343[_0x8f67df(0xf3)])[_0x8f67df(0xea)]),await _0x24e22c[_0x8f67df(0x10f)](sendInstrumentationEvent,_0xf32895,_0x24e22c[_0x8f67df(0x11b)],messageTypes[_0x8f67df(0xd0)],_0x24e22c[_0x8f67df(0xfe)],null,_0xf32895),process[_0x8f67df(0x118)](0x1)),logger['error'](_0x8f67df(0x123)+JSON[_0x8f67df(0x127)](_0x3b0343)),await _0x24e22c['hXcFr'](sendInstrumentationEvent,_0xf32895,_0x24e22c[_0x8f67df(0x11b)],messageTypes['ERROR'],_0x24e22c[_0x8f67df(0x106)],_0x3b0343,_0xf32895),process['exit'](0x1);}catch(_0x51ff9e){const _0x1c75ab=_0x8f67df(0xf8)+_0x51ff9e+'\x20\x0a'+JSON[_0x8f67df(0x127)](_0x51ff9e[_0x8f67df(0x111)])+'\x20';logger['error'](_0x1c75ab),process[_0x8f67df(0x118)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x216d87=a20_0x37a6;function a20_0x37a6(_0x32386f,_0x34987d){const _0x19a81b=a20_0x19a8();return a20_0x37a6=function(_0x37a63c,_0x5f9ccc){_0x37a63c=_0x37a63c-0x1f0;let _0x1edc73=_0x19a81b[_0x37a63c];return _0x1edc73;},a20_0x37a6(_0x32386f,_0x34987d);}(function(_0x154fcd,_0xcc1795){const _0x3983d3=a20_0x37a6,_0x30fb82=_0x154fcd();while(!![]){try{const _0x116582=-parseInt(_0x3983d3(0x1fb))/0x1+-parseInt(_0x3983d3(0x1fa))/0x2*(-parseInt(_0x3983d3(0x200))/0x3)+parseInt(_0x3983d3(0x1f9))/0x4+parseInt(_0x3983d3(0x202))/0x5*(-parseInt(_0x3983d3(0x1f6))/0x6)+parseInt(_0x3983d3(0x1fc))/0x7*(-parseInt(_0x3983d3(0x1fd))/0x8)+parseInt(_0x3983d3(0x1f8))/0x9*(-parseInt(_0x3983d3(0x1f0))/0xa)+parseInt(_0x3983d3(0x205))/0xb;if(_0x116582===_0xcc1795)break;else _0x30fb82['push'](_0x30fb82['shift']());}catch(_0x2b4c65){_0x30fb82['push'](_0x30fb82['shift']());}}}(a20_0x19a8,0x704d5));function a20_0x19a8(){const _0x6eb729=['27hxTXbU','uqZAH','878010VjPrwx','desc','builder','7777275sgQPxg','stop','epilogue','100GDANBS','strict','help','command','Stop\x20a\x20running\x20Automation\x20grid.','handler','30WyoHxH','commandDir','106488siynyZ','3545068wGgrxm','119514CwOowN','41486NfutFq','35oqVIYw','1013280UWyNwQ','usage','FTieG'];a20_0x19a8=function(){return _0x6eb729;};return a20_0x19a8();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a20_0x216d87(0x1f3)]=a20_0x216d87(0x206),exports[a20_0x216d87(0x203)]=a20_0x216d87(0x1f4),exports[a20_0x216d87(0x204)]=function(_0x78a9ec){const _0x418eaf=a20_0x216d87,_0x25de71={};_0x25de71['uqZAH']='stop_commands',_0x25de71[_0x418eaf(0x1ff)]=_0x418eaf(0x1f2);const _0x41b091=_0x25de71;return _0x78a9ec[_0x418eaf(0x1fe)](HELP_HEADER_MESSAGE['stop'])[_0x418eaf(0x207)](HELP_FOOTER_MESSAGE)[_0x418eaf(0x1f7)](_0x41b091[_0x418eaf(0x201)])['demandCommand']()['recommendCommands']()[_0x418eaf(0x1f1)]()['help'](_0x41b091[_0x418eaf(0x1ff)]);},exports[a20_0x216d87(0x1f5)]=function(_0x4c5ed7){};
1
+ function a20_0x2f9b(){const _0x46c27f=['10747770KhaqIy','command','1281485vkpuFL','1744841XgDpqH','../config/constants','strict','rGMMW','builder','12LxfdKe','Cedox','106hblZJF','stop_commands','16319fWTVPY','usage','Stop\x20a\x20running\x20Automation\x20grid.','9DQFOLJ','22297470OQzazx','handler','5815384gWtkTr','demandCommand','1664823nVzCIq','recommendCommands','commandDir','help','stop'];a20_0x2f9b=function(){return _0x46c27f;};return a20_0x2f9b();}function a20_0x3a6c(_0x5c9157,_0x493e05){const _0x2f9bf8=a20_0x2f9b();return a20_0x3a6c=function(_0x3a6c3f,_0x82552a){_0x3a6c3f=_0x3a6c3f-0xa9;let _0x20efe7=_0x2f9bf8[_0x3a6c3f];return _0x20efe7;},a20_0x3a6c(_0x5c9157,_0x493e05);}const a20_0x1154f9=a20_0x3a6c;(function(_0xde7657,_0x4a822e){const _0x12a587=a20_0x3a6c,_0x382d20=_0xde7657();while(!![]){try{const _0x413ece=-parseInt(_0x12a587(0xb7))/0x1*(-parseInt(_0x12a587(0xb5))/0x2)+-parseInt(_0x12a587(0xbf))/0x3+-parseInt(_0x12a587(0xb3))/0x4*(parseInt(_0x12a587(0xad))/0x5)+-parseInt(_0x12a587(0xab))/0x6+parseInt(_0x12a587(0xae))/0x7+-parseInt(_0x12a587(0xbd))/0x8*(-parseInt(_0x12a587(0xba))/0x9)+parseInt(_0x12a587(0xbb))/0xa;if(_0x413ece===_0x4a822e)break;else _0x382d20['push'](_0x382d20['shift']());}catch(_0x2b3893){_0x382d20['push'](_0x382d20['shift']());}}}(a20_0x2f9b,0xe9541));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x1154f9(0xaf));exports[a20_0x1154f9(0xac)]='stop',exports['desc']=a20_0x1154f9(0xb9),exports[a20_0x1154f9(0xb2)]=function(_0x379a22){const _0x5c002a=a20_0x1154f9,_0x47ef76={};_0x47ef76['Cedox']=_0x5c002a(0xb6),_0x47ef76['rGMMW']='help';const _0x1b56ca=_0x47ef76;return _0x379a22[_0x5c002a(0xb8)](HELP_HEADER_MESSAGE[_0x5c002a(0xaa)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5c002a(0xc1)](_0x1b56ca[_0x5c002a(0xb4)])[_0x5c002a(0xbe)]()[_0x5c002a(0xc0)]()[_0x5c002a(0xb0)]()[_0x5c002a(0xa9)](_0x1b56ca[_0x5c002a(0xb1)]);},exports[a20_0x1154f9(0xbc)]=function(_0x13f7e7){};
@@ -1 +1 @@
1
- const a21_0x52b0cb=a21_0x575f;(function(_0x4ab6f2,_0x2945fb){const _0x262f2d=a21_0x575f,_0x568ebb=_0x4ab6f2();while(!![]){try{const _0x1a4699=parseInt(_0x262f2d(0x12d))/0x1*(parseInt(_0x262f2d(0x14b))/0x2)+parseInt(_0x262f2d(0x13a))/0x3*(parseInt(_0x262f2d(0x137))/0x4)+-parseInt(_0x262f2d(0x11a))/0x5+-parseInt(_0x262f2d(0x14d))/0x6*(-parseInt(_0x262f2d(0x127))/0x7)+-parseInt(_0x262f2d(0x118))/0x8+parseInt(_0x262f2d(0x120))/0x9*(-parseInt(_0x262f2d(0x141))/0xa)+-parseInt(_0x262f2d(0x15b))/0xb*(-parseInt(_0x262f2d(0x15a))/0xc);if(_0x1a4699===_0x2945fb)break;else _0x568ebb['push'](_0x568ebb['shift']());}catch(_0x534964){_0x568ebb['push'](_0x568ebb['shift']());}}}(a21_0xa0a1,0xba9f4));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x52b0cb(0x11b)),{logger}=require(a21_0x52b0cb(0x147)),{getCredentialsPath,getGridDetails}=require(a21_0x52b0cb(0x13f)),{scaleDownHubDeployment}=require(a21_0x52b0cb(0x14c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x52b0cb(0x116)),{createK8sClient}=require(a21_0x52b0cb(0x12c)),{getCloudProviderObject}=require(a21_0x52b0cb(0x153));exports[a21_0x52b0cb(0x13e)]=a21_0x52b0cb(0x142),exports[a21_0x52b0cb(0x10f)]=a21_0x52b0cb(0x13d),exports['builder']=function(_0x277cc2){const _0x4c2904=a21_0x52b0cb,_0x196690={};_0x196690['XcwoC']=_0x4c2904(0x115),_0x196690['nQHFG']=_0x4c2904(0x15d),_0x196690['Looyj']='Skip\x20insecure\x20cert\x20verification.',_0x196690[_0x4c2904(0x11e)]=_0x4c2904(0x144),_0x196690[_0x4c2904(0x130)]=_0x4c2904(0x11c);const _0x37cf62=_0x196690,_0x48f68b={};_0x48f68b['description']=_0x37cf62[_0x4c2904(0x123)],_0x48f68b['type']=_0x37cf62[_0x4c2904(0x109)];const _0x54c75e={};_0x54c75e[_0x4c2904(0x12f)]=_0x37cf62[_0x4c2904(0x134)],_0x54c75e['type']=_0x37cf62[_0x4c2904(0x11e)],_0x54c75e[_0x4c2904(0x121)]=![];const _0x2d8cce={};return _0x2d8cce[_0x4c2904(0x12a)]=_0x48f68b,_0x2d8cce[_0x4c2904(0x14a)]=_0x54c75e,_0x277cc2['usage'](HELP_HEADER_MESSAGE['stop'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4c2904(0x143)](_0x2d8cce)[_0x4c2904(0x11c)](_0x37cf62[_0x4c2904(0x130)])['argv'];},exports[a21_0x52b0cb(0x13b)]=async function(_0x54eedb){const _0x48aff7=a21_0x52b0cb,_0x3fa5d8={'cKFbM':_0x48aff7(0x131),'eeVeC':function(_0x138b21){return _0x138b21();},'zuUFR':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UMUFG':function(_0x40e59a,_0x59e5a2,_0x2a7309,_0x29dc10,_0xa44aa2,_0xee7f05,_0x3d3a06){return _0x40e59a(_0x59e5a2,_0x2a7309,_0x29dc10,_0xa44aa2,_0xee7f05,_0x3d3a06);},'nENZr':_0x48aff7(0x148),'ciPYh':'init-not-called','pDQwz':function(_0x517225,_0x4508fa,_0x2e9cc2,_0x1e7aca,_0x414bec,_0x35deaa,_0x4a618d){return _0x517225(_0x4508fa,_0x2e9cc2,_0x1e7aca,_0x414bec,_0x35deaa,_0x4a618d);},'psNgO':function(_0x405597){return _0x405597();},'LWvYI':'<UsernamePlaceholder>','TaqXZ':_0x48aff7(0x124),'AejgF':_0x48aff7(0x112),'gUnok':function(_0x170c7d,_0x361ff5,_0x331a4e,_0x3ccec0){return _0x170c7d(_0x361ff5,_0x331a4e,_0x3ccec0);},'ptGLa':function(_0x4528de,_0x15cd2d,_0x40f9ec,_0x45cd35,_0x2211d3,_0xb4a07b,_0x421155){return _0x4528de(_0x15cd2d,_0x40f9ec,_0x45cd35,_0x2211d3,_0xb4a07b,_0x421155);},'NNZDL':function(_0x5e584b,_0x182f1c,_0x831292){return _0x5e584b(_0x182f1c,_0x831292);},'lCmVu':_0x48aff7(0x13c),'mwRGN':function(_0x478097,_0x617691){return _0x478097===_0x617691;},'qVtcZ':_0x48aff7(0x128),'YaMLM':function(_0x5d79ac,_0x187e67,_0x2d135c,_0x59a11f,_0x4181e9,_0x12aed1,_0x50ebab){return _0x5d79ac(_0x187e67,_0x2d135c,_0x59a11f,_0x4181e9,_0x12aed1,_0x50ebab);},'ovEwA':_0x48aff7(0x117),'wcLte':function(_0x1a6d25,_0x567dd4){return _0x1a6d25===_0x567dd4;},'DlJrP':_0x48aff7(0x114),'HcEtd':_0x48aff7(0x110)};let _0x5986af;try{!_0x54eedb['gridId']&&(logger[_0x48aff7(0x156)](_0x3fa5d8[_0x48aff7(0x14e)]),process[_0x48aff7(0x159)](0x1));!fs[_0x48aff7(0x15c)](_0x3fa5d8[_0x48aff7(0x10d)](getCredentialsPath))&&(logger[_0x48aff7(0x156)](_0x3fa5d8[_0x48aff7(0x107)]),await _0x3fa5d8[_0x48aff7(0x113)](sendInstrumentationEvent,_0x54eedb,_0x3fa5d8[_0x48aff7(0x133)],messageTypes['ERROR'],_0x3fa5d8[_0x48aff7(0x111)],null,_0x54eedb),process[_0x48aff7(0x159)](0x1));logger[_0x48aff7(0x119)](_0x48aff7(0x157)+_0x54eedb[_0x48aff7(0x122)]),await _0x3fa5d8[_0x48aff7(0x146)](sendInstrumentationEvent,_0x54eedb,_0x3fa5d8[_0x48aff7(0x133)],messageTypes['INFO'],null,null,_0x54eedb);const _0x4fd858=JSON[_0x48aff7(0x145)](fs['readFileSync'](_0x3fa5d8['psNgO'](getCredentialsPath)));global_registry['bstackUsername']=_0x4fd858[_0x48aff7(0x11d)][_0x48aff7(0x108)],global_registry[_0x48aff7(0x154)]=_0x4fd858[_0x48aff7(0x11d)][_0x48aff7(0x14f)];const _0x838a7=WS_ENDPOINT['replace'](_0x3fa5d8[_0x48aff7(0x10c)],_0x4fd858['Browserstack'][_0x48aff7(0x108)])['replace'](_0x3fa5d8[_0x48aff7(0x125)],_0x4fd858[_0x48aff7(0x11d)][_0x48aff7(0x14f)]),_0x35eaa6={};_0x35eaa6[_0x48aff7(0x126)]=ws,_0x35eaa6['connectionTimeout']=0x36ee80,_0x5986af=new ReconnectingWebSocket(_0x838a7,[],_0x35eaa6),logger['debug'](_0x3fa5d8['AejgF']),webSocketUtils[_0x48aff7(0x150)](_0x5986af,_0x54eedb['user'],_0x54eedb['password']);const [_0x1acf05,_0x59517b]=await _0x3fa5d8[_0x48aff7(0x155)](getGridDetails,_0x4fd858[_0x48aff7(0x11d)]['username'],_0x4fd858['Browserstack'][_0x48aff7(0x14f)],_0x54eedb[_0x48aff7(0x122)]);if(_0x59517b){const _0x404103=_0x59517b[_0x48aff7(0x119)];global_registry[_0x48aff7(0x136)]=_0x404103[_0x48aff7(0x136)],global_registry[_0x48aff7(0x10a)]=_0x404103[_0x48aff7(0x140)],global_registry[_0x48aff7(0x149)]=_0x404103[_0x48aff7(0x149)];const _0x39d2da=await _0x3fa5d8['ptGLa'](getCloudProviderObject,_0x404103[_0x48aff7(0x136)],_0x404103[_0x48aff7(0x149)],_0x404103['name'],_0x5986af,webSocketUtils,_0x54eedb),[_0x4f2a29,_0x813655,_0x44c830,_0x5cfc8b,_0x2fbc27,_0x4d04ec]=await _0x3fa5d8['NNZDL'](createK8sClient,_0x39d2da,_0x54eedb[_0x48aff7(0x138)]);await _0x3fa5d8['NNZDL'](scaleDownHubDeployment,_0x813655,_0x404103[_0x48aff7(0x15e)]),logger['info'](_0x3fa5d8[_0x48aff7(0x158)]),process[_0x48aff7(0x159)](0x0);}_0x3fa5d8['mwRGN'](_0x1acf05['statusCode'],0x191)&&(logger['error'](_0x3fa5d8[_0x48aff7(0x132)]),await _0x3fa5d8[_0x48aff7(0x135)](sendInstrumentationEvent,_0x54eedb,_0x3fa5d8[_0x48aff7(0x133)],messageTypes[_0x48aff7(0x11f)],_0x3fa5d8['ovEwA'],null,_0x54eedb),process[_0x48aff7(0x159)](0x1)),_0x3fa5d8[_0x48aff7(0x151)](_0x1acf05[_0x48aff7(0x152)],0x190)&&(logger[_0x48aff7(0x156)](JSON[_0x48aff7(0x145)](_0x1acf05[_0x48aff7(0x12e)])[_0x48aff7(0x139)]),await _0x3fa5d8[_0x48aff7(0x146)](sendInstrumentationEvent,_0x54eedb,_0x3fa5d8[_0x48aff7(0x133)],messageTypes[_0x48aff7(0x11f)],_0x3fa5d8['DlJrP'],null,_0x54eedb),process[_0x48aff7(0x159)](0x1)),logger['error'](_0x48aff7(0x10b)+JSON[_0x48aff7(0x10e)](_0x1acf05)),await _0x3fa5d8[_0x48aff7(0x129)](sendInstrumentationEvent,_0x54eedb,_0x3fa5d8[_0x48aff7(0x133)],messageTypes[_0x48aff7(0x11f)],_0x3fa5d8['HcEtd'],_0x1acf05,_0x54eedb),process['exit'](0x1);}catch(_0x105cbb){const _0x5a45e1=_0x48aff7(0x12b)+_0x105cbb+'\x20\x0a'+JSON[_0x48aff7(0x10e)](_0x105cbb['stack'])+'\x20';logger['error'](_0x5a45e1),process[_0x48aff7(0x159)](0x1);}};function a21_0x575f(_0x4b2bd2,_0x5a94b4){const _0xa0a12c=a21_0xa0a1();return a21_0x575f=function(_0x575fea,_0xef52e){_0x575fea=_0x575fea-0x107;let _0xcd782c=_0xa0a12c[_0x575fea];return _0xcd782c;},a21_0x575f(_0x4b2bd2,_0x5a94b4);}function a21_0xa0a1(){const _0x2ad3bd=['Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','qVtcZ','nENZr','Looyj','YaMLM','cloudProvider','147104vCfQxK','skipTlsCertVerify','message','39ScWpKd','handler','Grid\x20stoppped.','Stop\x20a\x20running\x20Automation\x20grid.','command','../../utils/utilityMethods','region','10riCWln','grid','options','boolean','parse','pDQwz','../../config/logger','stop-grid-called','clusterName','skip-tls-cert-verify','58BsVusz','../../utils/gridComponents','786FysLWF','cKFbM','password','addListeners','wcLte','statusCode','../../cloudproviders/utils','bstackAccesskey','gUnok','error','Stopping\x20grid\x20','lCmVu','exit','6795384VPeoOm','33PrbWYQ','existsSync','string','name','zuUFR','username','nQHFG','clusterRegion','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','LWvYI','eeVeC','stringify','desc','server-error','ciPYh','Adding\x20Websocket\x20listeners','UMUFG','invalid-grid-id','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','../../utils/webSocketUtils','unauthorised','11407056Kviqzr','info','243215bafLoV','../../config/constants','help','Browserstack','sedzT','ERROR','8806869IdKoaT','default','gridId','XcwoC','<PasswordPlaceholder>','TaqXZ','WebSocket','46305WeCFUy','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ptGLa','grid-id','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../utils/createk8sClient','5999NLpSTD','body','description','LMfbK'];a21_0xa0a1=function(){return _0x2ad3bd;};return a21_0xa0a1();}
1
+ const a21_0x9ab8cd=a21_0x4494;(function(_0x550496,_0x158476){const _0xc3e899=a21_0x4494,_0x31501c=_0x550496();while(!![]){try{const _0x57ea12=-parseInt(_0xc3e899(0x1bd))/0x1+-parseInt(_0xc3e899(0x1ee))/0x2*(parseInt(_0xc3e899(0x1ed))/0x3)+parseInt(_0xc3e899(0x1d3))/0x4+parseInt(_0xc3e899(0x1ce))/0x5*(-parseInt(_0xc3e899(0x1e7))/0x6)+-parseInt(_0xc3e899(0x1c5))/0x7*(parseInt(_0xc3e899(0x1be))/0x8)+parseInt(_0xc3e899(0x1d7))/0x9*(parseInt(_0xc3e899(0x1e9))/0xa)+-parseInt(_0xc3e899(0x1e3))/0xb*(-parseInt(_0xc3e899(0x1e0))/0xc);if(_0x57ea12===_0x158476)break;else _0x31501c['push'](_0x31501c['shift']());}catch(_0xb0552d){_0x31501c['push'](_0x31501c['shift']());}}}(a21_0x3c07,0x3b738));function a21_0x4494(_0x376a93,_0x13cfec){const _0x3c079f=a21_0x3c07();return a21_0x4494=function(_0x4494db,_0x12fa90){_0x4494db=_0x4494db-0x1a8;let _0x42362c=_0x3c079f[_0x4494db];return _0x42362c;},a21_0x4494(_0x376a93,_0x13cfec);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x9ab8cd(0x1d0)),{scaleDownHubDeployment}=require(a21_0x9ab8cd(0x1a8)),{sendInstrumentationEvent}=require(a21_0x9ab8cd(0x1ba)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a21_0x9ab8cd(0x1c0)),{getCloudProviderObject}=require(a21_0x9ab8cd(0x1c7));function a21_0x3c07(){const _0x150f4e=['command','../../utils/utilityMethods','builder','Grid\x20stoppped.','149696sEEcAJ','qqMqw','wIMby','PmjjR','9fQiqBX','Browserstack','CVBXA','<PasswordPlaceholder>','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','epilogue','LMXCD','uCrxt','UIqNi','48xtVmGM','WJbmt','description','3081881CJvrrJ','Adding\x20Websocket\x20listeners','addListeners','QiUdO','6faeJLt','info','2876710XwuotY','stop-grid-called','statusCode','readFileSync','1113963TFuxWB','2UHwfjU','PxGWD','HEiAp','lrEOP','clusterRegion','clusterName','password','connectionTimeout','gridId','type','desc','grid-id','boolean','unauthorised','message','replace','../../utils/gridComponents','help','sfJMi','region','bstackAccesskey','gITIU','body','Skip\x20insecure\x20cert\x20verification.','default','stringify','handler','INFO','name','skip-tls-cert-verify','exit','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','stack','username','../../utils/instrumentationUtils','argv','string','361540JuNgcg','8ILGirA','invalid-grid-id','../../utils/createk8sClient','LwHzQ','server-error','QouJj','ERROR','1510201DUBCpb','CzIvV','../../cloudproviders/utils','error','SmEsa','grid','tPsdT','cloudProvider','debug','1268315GYRJID'];a21_0x3c07=function(){return _0x150f4e;};return a21_0x3c07();}exports[a21_0x9ab8cd(0x1cf)]=a21_0x9ab8cd(0x1ca),exports[a21_0x9ab8cd(0x1f8)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x9ab8cd(0x1d1)]=function(_0x3da052){const _0x9a6ede=a21_0x9ab8cd,_0x2a3d8c={};_0x2a3d8c[_0x9a6ede(0x1d6)]=_0x9a6ede(0x1b7),_0x2a3d8c[_0x9a6ede(0x1f0)]=_0x9a6ede(0x1bc),_0x2a3d8c[_0x9a6ede(0x1f1)]=_0x9a6ede(0x1af),_0x2a3d8c[_0x9a6ede(0x1e6)]=_0x9a6ede(0x1fa),_0x2a3d8c['CzIvV']=_0x9a6ede(0x1a9);const _0xeafcbd=_0x2a3d8c,_0x2e9742={};_0x2e9742[_0x9a6ede(0x1e2)]=_0xeafcbd[_0x9a6ede(0x1d6)],_0x2e9742[_0x9a6ede(0x1f7)]=_0xeafcbd[_0x9a6ede(0x1f0)];const _0x3c654a={};_0x3c654a[_0x9a6ede(0x1e2)]=_0xeafcbd[_0x9a6ede(0x1f1)],_0x3c654a[_0x9a6ede(0x1f7)]=_0xeafcbd[_0x9a6ede(0x1e6)],_0x3c654a[_0x9a6ede(0x1b0)]=![];const _0xf91e4c={};return _0xf91e4c[_0x9a6ede(0x1f9)]=_0x2e9742,_0xf91e4c[_0x9a6ede(0x1b5)]=_0x3c654a,_0x3da052['usage'](HELP_HEADER_MESSAGE['stop'])[_0x9a6ede(0x1dc)](HELP_FOOTER_MESSAGE)['options'](_0xf91e4c)[_0x9a6ede(0x1a9)](_0xeafcbd[_0x9a6ede(0x1c6)])[_0x9a6ede(0x1bb)];},exports[a21_0x9ab8cd(0x1b2)]=async function(_0x3a1f5a){const _0x5d6e07=a21_0x9ab8cd,_0x56b4e9={'uCrxt':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','SmEsa':function(_0x304236){return _0x304236();},'sfJMi':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LwHzQ':function(_0x53ba47,_0x20c2ff,_0x1dcee0,_0x10b7fe,_0x337052,_0x4b3f53,_0xcbcff8){return _0x53ba47(_0x20c2ff,_0x1dcee0,_0x10b7fe,_0x337052,_0x4b3f53,_0xcbcff8);},'QouJj':_0x5d6e07(0x1ea),'cRENx':'init-not-called','wIMby':function(_0x41a727){return _0x41a727();},'gbhHa':'<UsernamePlaceholder>','kFQGm':_0x5d6e07(0x1da),'SaPjU':_0x5d6e07(0x1e4),'LMXCD':function(_0x55ccda,_0x4901fa,_0x2052f7,_0x5366d8){return _0x55ccda(_0x4901fa,_0x2052f7,_0x5366d8);},'tPsdT':function(_0x3ee92f,_0x1b3906,_0x136d7d,_0x136d83,_0x32e559,_0x1faacb,_0x4716ba){return _0x3ee92f(_0x1b3906,_0x136d7d,_0x136d83,_0x32e559,_0x1faacb,_0x4716ba);},'UIqNi':function(_0x34dee5,_0x3c12ee,_0x1375f4){return _0x34dee5(_0x3c12ee,_0x1375f4);},'CVBXA':_0x5d6e07(0x1d2),'AkBZw':function(_0x3610c3,_0x5019fe){return _0x3610c3===_0x5019fe;},'qqMqw':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WJbmt':_0x5d6e07(0x1fb),'PxGWD':function(_0x3bfb98,_0x1acb8e){return _0x3bfb98===_0x1acb8e;},'RCmNk':_0x5d6e07(0x1bf),'pzxVz':function(_0x424562,_0x19eba0,_0x5ccd37,_0x312efe,_0x245a15,_0x316921,_0x156166){return _0x424562(_0x19eba0,_0x5ccd37,_0x312efe,_0x245a15,_0x316921,_0x156166);},'gITIU':_0x5d6e07(0x1c2)};let _0x4bebcd;try{!_0x3a1f5a[_0x5d6e07(0x1f6)]&&(logger[_0x5d6e07(0x1c8)](_0x56b4e9[_0x5d6e07(0x1de)]),process[_0x5d6e07(0x1b6)](0x1));!fs['existsSync'](_0x56b4e9[_0x5d6e07(0x1c9)](getCredentialsPath))&&(logger[_0x5d6e07(0x1c8)](_0x56b4e9[_0x5d6e07(0x1aa)]),await _0x56b4e9[_0x5d6e07(0x1c1)](sendInstrumentationEvent,_0x3a1f5a,_0x56b4e9['QouJj'],messageTypes[_0x5d6e07(0x1c4)],_0x56b4e9['cRENx'],null,_0x3a1f5a),process['exit'](0x1));logger[_0x5d6e07(0x1e8)]('Stopping\x20grid\x20'+_0x3a1f5a[_0x5d6e07(0x1f6)]),await _0x56b4e9[_0x5d6e07(0x1c1)](sendInstrumentationEvent,_0x3a1f5a,_0x56b4e9[_0x5d6e07(0x1c3)],messageTypes[_0x5d6e07(0x1b3)],null,null,_0x3a1f5a);const _0x415cb6=JSON['parse'](fs[_0x5d6e07(0x1ec)](_0x56b4e9[_0x5d6e07(0x1d5)](getCredentialsPath)));global_registry['bstackUsername']=_0x415cb6[_0x5d6e07(0x1d8)][_0x5d6e07(0x1b9)],global_registry[_0x5d6e07(0x1ac)]=_0x415cb6['Browserstack']['password'];const _0x241ade=WS_ENDPOINT[_0x5d6e07(0x1fd)](_0x56b4e9['gbhHa'],_0x415cb6[_0x5d6e07(0x1d8)][_0x5d6e07(0x1b9)])[_0x5d6e07(0x1fd)](_0x56b4e9['kFQGm'],_0x415cb6[_0x5d6e07(0x1d8)][_0x5d6e07(0x1f4)]),_0x6188cd={};_0x6188cd['WebSocket']=ws,_0x6188cd[_0x5d6e07(0x1f5)]=0x36ee80,_0x4bebcd=new ReconnectingWebSocket(_0x241ade,[],_0x6188cd),logger[_0x5d6e07(0x1cd)](_0x56b4e9['SaPjU']),webSocketUtils[_0x5d6e07(0x1e5)](_0x4bebcd,_0x3a1f5a['user'],_0x3a1f5a[_0x5d6e07(0x1f4)]);const [_0x46990c,_0x170604]=await _0x56b4e9[_0x5d6e07(0x1dd)](getGridDetails,_0x415cb6[_0x5d6e07(0x1d8)][_0x5d6e07(0x1b9)],_0x415cb6['Browserstack'][_0x5d6e07(0x1f4)],_0x3a1f5a[_0x5d6e07(0x1f6)]);if(_0x170604){const _0x4f3f93=_0x170604[_0x5d6e07(0x1e8)];global_registry['cloudProvider']=_0x4f3f93[_0x5d6e07(0x1cc)],global_registry[_0x5d6e07(0x1f2)]=_0x4f3f93[_0x5d6e07(0x1ab)],global_registry[_0x5d6e07(0x1f3)]=_0x4f3f93['clusterName'];const _0x19afdf=await _0x56b4e9['tPsdT'](getCloudProviderObject,_0x4f3f93['cloudProvider'],_0x4f3f93[_0x5d6e07(0x1f3)],_0x4f3f93['name'],_0x4bebcd,webSocketUtils,_0x3a1f5a),[_0x1707bb,_0x1d283c,_0x4b20a5,_0x2084c6,_0x336de5,_0x4515a8]=await _0x56b4e9[_0x5d6e07(0x1df)](createK8sClient,_0x19afdf,_0x3a1f5a['skipTlsCertVerify']);await _0x56b4e9[_0x5d6e07(0x1df)](scaleDownHubDeployment,_0x1d283c,_0x4f3f93[_0x5d6e07(0x1b4)]),logger[_0x5d6e07(0x1e8)](_0x56b4e9[_0x5d6e07(0x1d9)]),process[_0x5d6e07(0x1b6)](0x0);}_0x56b4e9['AkBZw'](_0x46990c[_0x5d6e07(0x1eb)],0x191)&&(logger[_0x5d6e07(0x1c8)](_0x56b4e9[_0x5d6e07(0x1d4)]),await _0x56b4e9['LwHzQ'](sendInstrumentationEvent,_0x3a1f5a,_0x56b4e9[_0x5d6e07(0x1c3)],messageTypes[_0x5d6e07(0x1c4)],_0x56b4e9[_0x5d6e07(0x1e1)],null,_0x3a1f5a),process['exit'](0x1)),_0x56b4e9[_0x5d6e07(0x1ef)](_0x46990c['statusCode'],0x190)&&(logger['error'](JSON['parse'](_0x46990c[_0x5d6e07(0x1ae)])[_0x5d6e07(0x1fc)]),await _0x56b4e9[_0x5d6e07(0x1cb)](sendInstrumentationEvent,_0x3a1f5a,_0x56b4e9[_0x5d6e07(0x1c3)],messageTypes[_0x5d6e07(0x1c4)],_0x56b4e9['RCmNk'],null,_0x3a1f5a),process[_0x5d6e07(0x1b6)](0x1)),logger[_0x5d6e07(0x1c8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x5d6e07(0x1b1)](_0x46990c)),await _0x56b4e9['pzxVz'](sendInstrumentationEvent,_0x3a1f5a,_0x56b4e9['QouJj'],messageTypes[_0x5d6e07(0x1c4)],_0x56b4e9[_0x5d6e07(0x1ad)],_0x46990c,_0x3a1f5a),process[_0x5d6e07(0x1b6)](0x1);}catch(_0x809269){const _0x472f05=_0x5d6e07(0x1db)+_0x809269+'\x20\x0a'+JSON[_0x5d6e07(0x1b1)](_0x809269[_0x5d6e07(0x1b8)])+'\x20';logger['error'](_0x472f05),process[_0x5d6e07(0x1b6)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x55f13d=a22_0x1e22;(function(_0x236520,_0x2ae16c){const _0x226b12=a22_0x1e22,_0x2b8791=_0x236520();while(!![]){try{const _0x18c42c=parseInt(_0x226b12(0x169))/0x1+-parseInt(_0x226b12(0x17f))/0x2+-parseInt(_0x226b12(0x1bc))/0x3+parseInt(_0x226b12(0x19c))/0x4*(parseInt(_0x226b12(0x155))/0x5)+-parseInt(_0x226b12(0x199))/0x6*(parseInt(_0x226b12(0x17c))/0x7)+parseInt(_0x226b12(0x197))/0x8*(parseInt(_0x226b12(0x18c))/0x9)+parseInt(_0x226b12(0x167))/0xa*(parseInt(_0x226b12(0x193))/0xb);if(_0x18c42c===_0x2ae16c)break;else _0x2b8791['push'](_0x2b8791['shift']());}catch(_0x315fb9){_0x2b8791['push'](_0x2b8791['shift']());}}}(a22_0x9cb4,0x2bd33),require(a22_0x55f13d(0x153))[a22_0x55f13d(0x17e)]());let gridURL=a22_0x55f13d(0x16f),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x55f13d(0x172);const _env=(process[a22_0x55f13d(0x183)][a22_0x55f13d(0x164)]||a22_0x55f13d(0x177))[a22_0x55f13d(0x150)]();if(_env===a22_0x55f13d(0x1be)||_env===a22_0x55f13d(0x1a9))gridURL='grid-devhst.bsstag.com',bsApiUrl=a22_0x55f13d(0x1b7),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x55f13d(0x1a1)||_env===a22_0x55f13d(0x1a2))&&(gridURL=a22_0x55f13d(0x158),bsApiUrl=a22_0x55f13d(0x163),agApiUrl=a22_0x55f13d(0x19a));exports[a22_0x55f13d(0x194)]=process[a22_0x55f13d(0x183)][a22_0x55f13d(0x194)]||gridURL,exports[a22_0x55f13d(0x16d)]=process[a22_0x55f13d(0x183)]['BS_API_URL']||bsApiUrl,exports['AG_API_URL']=process[a22_0x55f13d(0x183)][a22_0x55f13d(0x18f)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x55f13d(0x15b)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x55f13d(0x1a0)]=a22_0x55f13d(0x16a),exports['IAM_USER_NAME']=a22_0x55f13d(0x1b9),exports['DEFAULT_GRID_NAME']=a22_0x55f13d(0x156),exports[a22_0x55f13d(0x165)]=a22_0x55f13d(0x182),exports[a22_0x55f13d(0x1ba)]=a22_0x55f13d(0x1aa),exports[a22_0x55f13d(0x1bd)]=a22_0x55f13d(0x18d),exports[a22_0x55f13d(0x1a6)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x55f13d(0x186)]=a22_0x55f13d(0x157),exports[a22_0x55f13d(0x15d)]=a22_0x55f13d(0x196),exports[a22_0x55f13d(0x170)]=a22_0x55f13d(0x19f),exports[a22_0x55f13d(0x176)]=[this['AWS'],this['AZURE'],this['GCP']];const a22_0x46076b={};a22_0x46076b[a22_0x55f13d(0x1af)]=a22_0x55f13d(0x17a),a22_0x46076b[a22_0x55f13d(0x178)]=a22_0x55f13d(0x1b3);const a22_0x2107eb={};a22_0x2107eb[a22_0x55f13d(0x1af)]=a22_0x55f13d(0x19d),a22_0x2107eb[a22_0x55f13d(0x178)]=a22_0x55f13d(0x191);const common_hst_tags_list=[a22_0x46076b,a22_0x2107eb];if(process[a22_0x55f13d(0x183)][a22_0x55f13d(0x1ab)]){const parsedTags=process[a22_0x55f13d(0x183)][a22_0x55f13d(0x1ab)][a22_0x55f13d(0x16b)](',');parsedTags[a22_0x55f13d(0x18e)](_0x4e14cf=>{const _0x1dc14d=a22_0x55f13d,_0x24e6c8=_0x4e14cf[_0x1dc14d(0x16b)](':'),_0x201ce3={};_0x201ce3[_0x1dc14d(0x1af)]=_0x24e6c8[0x0],_0x201ce3[_0x1dc14d(0x178)]=_0x24e6c8[0x1],common_hst_tags_list[_0x1dc14d(0x184)](_0x201ce3);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x2b9f21={};a22_0x2b9f21[a22_0x55f13d(0x17a)]=a22_0x55f13d(0x1b3),a22_0x2b9f21[a22_0x55f13d(0x19d)]=a22_0x55f13d(0x191),exports[a22_0x55f13d(0x185)]=a22_0x2b9f21,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x3260b1={};a22_0x3260b1[a22_0x55f13d(0x1ac)]=a22_0x55f13d(0x180),a22_0x3260b1[a22_0x55f13d(0x16e)]='resourceInfo',a22_0x3260b1['GRID_URL']=a22_0x55f13d(0x1ae),a22_0x3260b1[a22_0x55f13d(0x1b0)]='cliRunStarted',a22_0x3260b1[a22_0x55f13d(0x17b)]=a22_0x55f13d(0x1ad),exports[a22_0x55f13d(0x1a4)]=a22_0x3260b1,exports[a22_0x55f13d(0x188)]={},exports[a22_0x55f13d(0x1a3)]=a22_0x55f13d(0x15a);const a22_0x56be59={};a22_0x56be59[a22_0x55f13d(0x162)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a22_0x55f13d(0x1a3)],a22_0x56be59[a22_0x55f13d(0x187)]=a22_0x55f13d(0x190)+this[a22_0x55f13d(0x1a3)],a22_0x56be59[a22_0x55f13d(0x1b8)]=a22_0x55f13d(0x1b2)+this[a22_0x55f13d(0x1a3)],a22_0x56be59[a22_0x55f13d(0x154)]=a22_0x55f13d(0x171)+this[a22_0x55f13d(0x1a3)],a22_0x56be59[a22_0x55f13d(0x189)]={},a22_0x56be59[a22_0x55f13d(0x174)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x56be59[a22_0x55f13d(0x1a5)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x55f13d(0x1a3)],a22_0x56be59[a22_0x55f13d(0x1bb)]=a22_0x55f13d(0x1a8)+this['LINK_MESSAGE'],a22_0x56be59[a22_0x55f13d(0x181)]=a22_0x55f13d(0x16c)+this[a22_0x55f13d(0x1a3)],a22_0x56be59[a22_0x55f13d(0x1b1)]=a22_0x55f13d(0x166)+this['LINK_MESSAGE'],a22_0x56be59[a22_0x55f13d(0x189)][a22_0x55f13d(0x162)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a22_0x55f13d(0x1a3)],a22_0x56be59[a22_0x55f13d(0x189)]['grid']=a22_0x55f13d(0x1b4)+this[a22_0x55f13d(0x1a3)],a22_0x56be59[a22_0x55f13d(0x189)][a22_0x55f13d(0x15f)]=a22_0x55f13d(0x175)+this[a22_0x55f13d(0x1a3)],exports[a22_0x55f13d(0x15c)]=a22_0x56be59,exports['HELP_FOOTER_MESSAGE']=a22_0x55f13d(0x152);const a22_0x5f06f1={};a22_0x5f06f1[a22_0x55f13d(0x161)]=a22_0x55f13d(0x1a7),a22_0x5f06f1[a22_0x55f13d(0x192)]='error',a22_0x5f06f1[a22_0x55f13d(0x19e)]=a22_0x55f13d(0x15e),a22_0x5f06f1['WARNING']=a22_0x55f13d(0x1b5),a22_0x5f06f1['UNKNOWN']=a22_0x55f13d(0x19b),a22_0x5f06f1['NULL']=null,exports[a22_0x55f13d(0x168)]=a22_0x5f06f1,exports[a22_0x55f13d(0x179)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x55f13d(0x18a)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x55f13d(0x18b)]=a22_0x55f13d(0x1bf);function a22_0x1e22(_0x5f0db8,_0x10ee8e){const _0x9cb4e0=a22_0x9cb4();return a22_0x1e22=function(_0x1e22a7,_0x7967b3){_0x1e22a7=_0x1e22a7-0x150;let _0x514c15=_0x9cb4e0[_0x1e22a7];return _0x514c15;},a22_0x1e22(_0x5f0db8,_0x10ee8e);}const a22_0xb469e2={};a22_0xb469e2[a22_0x55f13d(0x198)]=a22_0x55f13d(0x151);const a22_0x4cb451={};a22_0x4cb451['pre-check']=a22_0xb469e2,exports[a22_0x55f13d(0x159)]=a22_0x4cb451,exports[a22_0x55f13d(0x173)]=a22_0x55f13d(0x160);function a22_0x9cb4(){const _0x5e6bd8=['gridProfile','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','SUCCESS','root','api-preprod.bsstag.com','BROWSERSTACK_ENV','AWS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','5490KnRCZt','messageTypes','232641aRuCtb','credentials','split','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','BS_API_URL','RESOURCES','grid.browserstack.com','GCP','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','grid-api.browserstack.com','TRIAL_GRID_URL','delete','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','ALL_SUPPORTED_CLOUD_PROVIDERS','prod','Value','CLI_ARGS_REGEX','browserstack:managedBy','CLI_RUN_FINISHED','8477ocsTsF','DEFAULT_CLUSTER_DETAILS','config','200806NvTmHD','log','stop','aws','env','push','HST_CLUSTER_TAGS','TURBOSCALE_DEPLOYMENT','init','global_registry','list','RAW_ARGS_REGEX','REDACTED','233001IRAKoH','BSTACK-ATS-CLUSTER-AUTOSCALER','forEach','AG_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','BrowserStack-Automate-TurboScale','ERROR','627lhxTjA','DASHBOARD_ENDPOINT','high-scale-grid-cluster','azure','80YetFsw','grid-profile','60kubWNQ','grid-api-preprod.bsstag.com','unknown','1084ESLjlY','browserstack:service','INFO','gcp','CP_CONFIG_FILE','preprod','pre-prod','LINK_MESSAGE','WS_EVENTS','connect','CLUSTER_HUB_HA_STACK_NAME','success','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','stag','BSTACK-ATS-CLUSTER','TURBOSCALE_CUSTOM_TAGS','LOG','cliRunFinished','gridUrl','Key','CLI_RUN_STARTED','pre_check','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BrowserStack','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','warning','CLOUD_PROVIDER','api-devhst.bsstag.com','configure','BrowserStackIAMUser','CLUSTER_DEP_STACK_NAME','start','873711iLAXQY','CLUSTER_AUTOSCALER_STACK_NAME','staging','[REDACTED]','toLowerCase','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','dotenv','create','1115fYHRmV','high-scale-grid','browserstack-turboscale-grid','grid-preprod.bsstag.com','MessageDescription','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','wss://','HELP_HEADER_MESSAGE','AZURE','info'];a22_0x9cb4=function(){return _0x5e6bd8;};return a22_0x9cb4();}const a22_0x5dd667={};a22_0x5dd667['CLUSTER']=a22_0x55f13d(0x195),a22_0x5dd667[a22_0x55f13d(0x1b6)]=a22_0x55f13d(0x182),a22_0x5dd667['REGION']='us-east-1',exports[a22_0x55f13d(0x17d)]=a22_0x5dd667;
1
+ const a22_0x4b0d58=a22_0x495f;(function(_0x4d0946,_0x9d3d78){const _0x4b0d71=a22_0x495f,_0x523b55=_0x4d0946();while(!![]){try{const _0x4aa422=-parseInt(_0x4b0d71(0x1e1))/0x1*(parseInt(_0x4b0d71(0x1cd))/0x2)+parseInt(_0x4b0d71(0x18f))/0x3+parseInt(_0x4b0d71(0x1e4))/0x4+parseInt(_0x4b0d71(0x188))/0x5*(-parseInt(_0x4b0d71(0x1ca))/0x6)+-parseInt(_0x4b0d71(0x1b4))/0x7+parseInt(_0x4b0d71(0x1e2))/0x8+-parseInt(_0x4b0d71(0x1bb))/0x9*(-parseInt(_0x4b0d71(0x192))/0xa);if(_0x4aa422===_0x9d3d78)break;else _0x523b55['push'](_0x523b55['shift']());}catch(_0x5aabbe){_0x523b55['push'](_0x523b55['shift']());}}}(a22_0x57f8,0xcca1e),require('dotenv')['config']());let gridURL=a22_0x4b0d58(0x199),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x4b0d58(0x1ef);const _env=(process['env'][a22_0x4b0d58(0x189)]||a22_0x4b0d58(0x1ea))[a22_0x4b0d58(0x1dd)]();function a22_0x495f(_0x431670,_0x2b8619){const _0x57f8f0=a22_0x57f8();return a22_0x495f=function(_0x495fbe,_0x4e0754){_0x495fbe=_0x495fbe-0x187;let _0xc15291=_0x57f8f0[_0x495fbe];return _0xc15291;},a22_0x495f(_0x431670,_0x2b8619);}if(_env===a22_0x4b0d58(0x1a3)||_env===a22_0x4b0d58(0x1f0))gridURL=a22_0x4b0d58(0x1ad),bsApiUrl=a22_0x4b0d58(0x1b0),agApiUrl=a22_0x4b0d58(0x19b);else(_env===a22_0x4b0d58(0x1eb)||_env===a22_0x4b0d58(0x1b3))&&(gridURL=a22_0x4b0d58(0x1ec),bsApiUrl='api-preprod.bsstag.com',agApiUrl=a22_0x4b0d58(0x19c));exports[a22_0x4b0d58(0x1bf)]=process[a22_0x4b0d58(0x18c)][a22_0x4b0d58(0x1bf)]||gridURL,exports[a22_0x4b0d58(0x1f2)]=process[a22_0x4b0d58(0x18c)][a22_0x4b0d58(0x1f2)]||bsApiUrl,exports[a22_0x4b0d58(0x1f5)]=process[a22_0x4b0d58(0x18c)][a22_0x4b0d58(0x1f5)]||agApiUrl,exports[a22_0x4b0d58(0x19d)]=a22_0x4b0d58(0x191)+this['AG_API_URL']+a22_0x4b0d58(0x1d6),exports[a22_0x4b0d58(0x1de)]=a22_0x4b0d58(0x198),exports[a22_0x4b0d58(0x1a6)]=a22_0x4b0d58(0x1c0),exports['DEFAULT_GRID_NAME']=a22_0x4b0d58(0x1d0),exports[a22_0x4b0d58(0x1af)]=a22_0x4b0d58(0x1d4),exports['CLUSTER_DEP_STACK_NAME']=a22_0x4b0d58(0x1ee),exports[a22_0x4b0d58(0x1b9)]=a22_0x4b0d58(0x1f4),exports[a22_0x4b0d58(0x1b1)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x4b0d58(0x1a0)]=a22_0x4b0d58(0x197),exports[a22_0x4b0d58(0x1a9)]=a22_0x4b0d58(0x1dc),exports['GCP']='gcp',exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this['AWS'],this[a22_0x4b0d58(0x1a9)],this[a22_0x4b0d58(0x1db)]];const a22_0x3e4d8a={};a22_0x3e4d8a['Key']='browserstack:managedBy',a22_0x3e4d8a['Value']=a22_0x4b0d58(0x1b7);const a22_0x3d9aaa={};a22_0x3d9aaa['Key']=a22_0x4b0d58(0x1b2),a22_0x3d9aaa['Value']=a22_0x4b0d58(0x1a7);const common_hst_tags_list=[a22_0x3e4d8a,a22_0x3d9aaa];if(process[a22_0x4b0d58(0x18c)][a22_0x4b0d58(0x1da)]){const parsedTags=process[a22_0x4b0d58(0x18c)]['TURBOSCALE_CUSTOM_TAGS']['split'](',');parsedTags[a22_0x4b0d58(0x1a8)](_0x50e076=>{const _0x151760=a22_0x4b0d58,_0xdcc7d8=_0x50e076[_0x151760(0x19a)](':'),_0x4845ac={};_0x4845ac[_0x151760(0x1ed)]=_0xdcc7d8[0x0],_0x4845ac[_0x151760(0x1b8)]=_0xdcc7d8[0x1],common_hst_tags_list[_0x151760(0x18e)](_0x4845ac);});}exports[a22_0x4b0d58(0x1bc)]=common_hst_tags_list;const a22_0x3f7229={};a22_0x3f7229[a22_0x4b0d58(0x19e)]='BrowserStack',a22_0x3f7229['browserstack:service']=a22_0x4b0d58(0x1a7),exports[a22_0x4b0d58(0x1ba)]=a22_0x3f7229,exports[a22_0x4b0d58(0x1d3)]=[this[a22_0x4b0d58(0x1af)]];const a22_0x4d1418={};a22_0x4d1418[a22_0x4b0d58(0x18d)]=a22_0x4b0d58(0x1c7),a22_0x4d1418[a22_0x4b0d58(0x1d8)]=a22_0x4b0d58(0x1df),a22_0x4d1418[a22_0x4b0d58(0x1c4)]='gridUrl',a22_0x4d1418[a22_0x4b0d58(0x1a2)]=a22_0x4b0d58(0x1c9),a22_0x4d1418[a22_0x4b0d58(0x19f)]='cliRunFinished',exports[a22_0x4b0d58(0x18a)]=a22_0x4d1418,exports[a22_0x4b0d58(0x1cb)]={},exports[a22_0x4b0d58(0x1bd)]=a22_0x4b0d58(0x1e3);const a22_0x127918={};a22_0x127918[a22_0x4b0d58(0x1f1)]=a22_0x4b0d58(0x1cc)+this[a22_0x4b0d58(0x1bd)],a22_0x127918['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x4b0d58(0x1bd)],a22_0x127918[a22_0x4b0d58(0x1e6)]=a22_0x4b0d58(0x187)+this[a22_0x4b0d58(0x1bd)],a22_0x127918[a22_0x4b0d58(0x1b6)]=a22_0x4b0d58(0x1a1)+this[a22_0x4b0d58(0x1bd)],a22_0x127918[a22_0x4b0d58(0x1e9)]={},a22_0x127918[a22_0x4b0d58(0x1e7)]=a22_0x4b0d58(0x1ab)+this[a22_0x4b0d58(0x1bd)],a22_0x127918[a22_0x4b0d58(0x194)]=a22_0x4b0d58(0x196)+this[a22_0x4b0d58(0x1bd)],a22_0x127918[a22_0x4b0d58(0x1e8)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x127918[a22_0x4b0d58(0x1c8)]=a22_0x4b0d58(0x1a4)+this[a22_0x4b0d58(0x1bd)],a22_0x127918[a22_0x4b0d58(0x1c5)]=a22_0x4b0d58(0x1c6)+this[a22_0x4b0d58(0x1bd)],a22_0x127918[a22_0x4b0d58(0x1e9)][a22_0x4b0d58(0x1f1)]=a22_0x4b0d58(0x1cf)+this[a22_0x4b0d58(0x1bd)],a22_0x127918[a22_0x4b0d58(0x1e9)][a22_0x4b0d58(0x1c2)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x127918[a22_0x4b0d58(0x1e9)]['gridProfile']=a22_0x4b0d58(0x1d9)+this[a22_0x4b0d58(0x1bd)],exports[a22_0x4b0d58(0x1ae)]=a22_0x127918,exports['HELP_FOOTER_MESSAGE']=a22_0x4b0d58(0x1d1);const a22_0x2686b3={};a22_0x2686b3[a22_0x4b0d58(0x1d2)]=a22_0x4b0d58(0x1aa),a22_0x2686b3['ERROR']='error',a22_0x2686b3[a22_0x4b0d58(0x1d7)]='info',a22_0x2686b3['WARNING']=a22_0x4b0d58(0x1d5),a22_0x2686b3[a22_0x4b0d58(0x1ce)]='unknown',a22_0x2686b3[a22_0x4b0d58(0x1ac)]=null,exports['messageTypes']=a22_0x2686b3,exports[a22_0x4b0d58(0x193)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x4b0d58(0x195)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a22_0x4b0d58(0x1c1);const a22_0x4b8eca={};a22_0x4b8eca[a22_0x4b0d58(0x1be)]=a22_0x4b0d58(0x18b);const a22_0x231d91={};a22_0x231d91[a22_0x4b0d58(0x1e0)]=a22_0x4b8eca,exports[a22_0x4b0d58(0x1a5)]=a22_0x231d91,exports[a22_0x4b0d58(0x1c3)]=a22_0x4b0d58(0x1b5);const a22_0xce1d40={};a22_0xce1d40['CLUSTER']=a22_0x4b0d58(0x190),a22_0xce1d40[a22_0x4b0d58(0x1f3)]=a22_0x4b0d58(0x1d4),a22_0xce1d40['REGION']=a22_0x4b0d58(0x1e5),exports['DEFAULT_CLUSTER_DETAILS']=a22_0xce1d40;function a22_0x57f8(){const _0x3ce856=['\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','browserstack-turboscale-grid','credentials','grid.browserstack.com','split','grid-api-devhst.bsstag.com','grid-api-preprod.bsstag.com','WS_ENDPOINT','browserstack:managedBy','CLI_RUN_FINISHED','TURBOSCALE_DEPLOYMENT','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','CLI_RUN_STARTED','staging','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','MessageDescription','IAM_USER_NAME','BrowserStack-Automate-TurboScale','forEach','AZURE','success','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','NULL','grid-devhst.bsstag.com','HELP_HEADER_MESSAGE','AWS','api-devhst.bsstag.com','CLUSTER_HUB_HA_STACK_NAME','browserstack:service','pre-prod','5371072SbLplN','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','create','BrowserStack','Value','CLUSTER_AUTOSCALER_STACK_NAME','HST_CLUSTER_TAGS','207FDUTkE','COMMON_HST_TAGS','LINK_MESSAGE','grid-profile','DASHBOARD_ENDPOINT','BrowserStackIAMUser','[REDACTED]','grid','TRIAL_GRID_URL','GRID_URL','pre_check','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','log','stop','cliRunStarted','1061946AulXeY','global_registry','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','29572XueglQ','UNKNOWN','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','high-scale-grid','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','SUCCESS','SUPPORTED_CLOUD_PROVIDERS','aws','warning','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','INFO','RESOURCES','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','TURBOSCALE_CUSTOM_TAGS','GCP','azure','toLowerCase','CP_CONFIG_FILE','resourceInfo','pre-check','62KkRFGT','3359144ZWDkvU','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','3876892qqaQbD','us-east-1','configure','delete','start','list','prod','preprod','grid-preprod.bsstag.com','Key','BSTACK-ATS-CLUSTER','grid-api.browserstack.com','stag','root','BS_API_URL','CLOUD_PROVIDER','BSTACK-ATS-CLUSTER-AUTOSCALER','AG_API_URL','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','5LTXcOw','BROWSERSTACK_ENV','WS_EVENTS','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','env','LOG','push','1911912XpJVeQ','high-scale-grid-cluster','wss://','292510ydIUrr','CLI_ARGS_REGEX','connect','RAW_ARGS_REGEX'];a22_0x57f8=function(){return _0x3ce856;};return a22_0x57f8();}
@@ -1 +1 @@
1
- const a23_0x4c7d79=a23_0x2f6e;(function(_0x47d8af,_0x3ff1b5){const _0x59e791=a23_0x2f6e,_0x407be4=_0x47d8af();while(!![]){try{const _0x3795d8=-parseInt(_0x59e791(0x147))/0x1+-parseInt(_0x59e791(0x151))/0x2*(parseInt(_0x59e791(0x13a))/0x3)+-parseInt(_0x59e791(0x142))/0x4*(-parseInt(_0x59e791(0x13b))/0x5)+-parseInt(_0x59e791(0x139))/0x6+parseInt(_0x59e791(0x152))/0x7+-parseInt(_0x59e791(0x146))/0x8+parseInt(_0x59e791(0x149))/0x9;if(_0x3795d8===_0x3ff1b5)break;else _0x407be4['push'](_0x407be4['shift']());}catch(_0x5af366){_0x407be4['push'](_0x407be4['shift']());}}}(a23_0x3a8f,0x27e71));function a23_0x3a8f(){const _0x51bf46=['message','timestamp','13442XCLsqC','1550465PVHvnk','debug','console.info','transports','1561800aWeDlL','51sjGAUH','42110BvkYva','join','Console','events.log','existsSync','createLogger','File','88hhebIs','combine','level','format','1560680osbkyz','35108CwbTfM','path','3252708docXfe','fileLogger','usage.log','colorize','log','YYYY-MM-DD\x20HH:mm:ss'];a23_0x3a8f=function(){return _0x51bf46;};return a23_0x3a8f();}const winston=require('winston'),fs=require('fs'),path=require(a23_0x4c7d79(0x148)),logDir=a23_0x4c7d79(0x14d);!fs[a23_0x4c7d79(0x13f)](logDir)&&fs['mkdirSync'](logDir);const a23_0xdf9da={};function a23_0x2f6e(_0x42b9e5,_0x1e99b0){const _0x3a8fb5=a23_0x3a8f();return a23_0x2f6e=function(_0x2f6eb5,_0xa5b4f4){_0x2f6eb5=_0x2f6eb5-0x137;let _0x5705ef=_0x3a8fb5[_0x2f6eb5];return _0x5705ef;},a23_0x2f6e(_0x42b9e5,_0x1e99b0);}a23_0xdf9da[a23_0x4c7d79(0x145)]=a23_0x4c7d79(0x14e);const a23_0x4aa429={};a23_0x4aa429[a23_0x4c7d79(0x144)]=!![];const a23_0x15c2e7={};a23_0x15c2e7['name']=a23_0x4c7d79(0x137),exports['logger']=new winston[(a23_0x4c7d79(0x140))]({'format':winston[a23_0x4c7d79(0x145)][a23_0x4c7d79(0x143)](winston[a23_0x4c7d79(0x145)][a23_0x4c7d79(0x150)](a23_0xdf9da),winston[a23_0x4c7d79(0x145)][a23_0x4c7d79(0x14c)](a23_0x4aa429),winston[a23_0x4c7d79(0x145)]['printf'](_0x17866c=>_0x17866c['timestamp']+'\x20-\x20'+_0x17866c[a23_0x4c7d79(0x144)]+':\x20'+_0x17866c[a23_0x4c7d79(0x14f)])),'transports':[new winston[(a23_0x4c7d79(0x138))][(a23_0x4c7d79(0x13d))](a23_0x15c2e7),new winston['transports'][(a23_0x4c7d79(0x141))]({'filename':path[a23_0x4c7d79(0x13c)](logDir,a23_0x4c7d79(0x13e)),'level':a23_0x4c7d79(0x153)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x4c7d79(0x138))][(a23_0x4c7d79(0x141))]({'filename':path[a23_0x4c7d79(0x13c)](logDir,a23_0x4c7d79(0x14b)),'level':a23_0x4c7d79(0x153)})]};exports[a23_0x4c7d79(0x14a)]=new winston[(a23_0x4c7d79(0x140))](winstonFileLoggerParams);
1
+ function a23_0x217b(){const _0x2569e7=['2040776JUHIkO','280638lAAAJR','1015576Kzeory','level','log','7XGyhJL','format','1868406lczGIn','usage.log','createLogger','timestamp','existsSync','718716vVtKVs','join','File','1429120jXAyQq','mkdirSync','winston','debug','Console','colorize','fileLogger','transports','path','YYYY-MM-DD\x20HH:mm:ss','logger','message','printf','298062NaiEGu'];a23_0x217b=function(){return _0x2569e7;};return a23_0x217b();}function a23_0x80d1(_0x483e03,_0x29941d){const _0x217bd7=a23_0x217b();return a23_0x80d1=function(_0x80d123,_0x213b77){_0x80d123=_0x80d123-0x14d;let _0x7b5a56=_0x217bd7[_0x80d123];return _0x7b5a56;},a23_0x80d1(_0x483e03,_0x29941d);}const a23_0x35febc=a23_0x80d1;(function(_0x5bf240,_0x464b9b){const _0x37b62f=a23_0x80d1,_0x2ff4a2=_0x5bf240();while(!![]){try{const _0x4ef667=-parseInt(_0x37b62f(0x167))/0x1+parseInt(_0x37b62f(0x155))/0x2+parseInt(_0x37b62f(0x165))/0x3+parseInt(_0x37b62f(0x168))/0x4+-parseInt(_0x37b62f(0x158))/0x5+parseInt(_0x37b62f(0x150))/0x6+parseInt(_0x37b62f(0x14e))/0x7*(-parseInt(_0x37b62f(0x166))/0x8);if(_0x4ef667===_0x464b9b)break;else _0x2ff4a2['push'](_0x2ff4a2['shift']());}catch(_0x1cbc08){_0x2ff4a2['push'](_0x2ff4a2['shift']());}}}(a23_0x217b,0x316d0));const winston=require(a23_0x35febc(0x15a)),fs=require('fs'),path=require(a23_0x35febc(0x160)),logDir=a23_0x35febc(0x14d);!fs[a23_0x35febc(0x154)](logDir)&&fs[a23_0x35febc(0x159)](logDir);const a23_0x24a2dc={};a23_0x24a2dc[a23_0x35febc(0x14f)]=a23_0x35febc(0x161);const a23_0x25b9bb={};a23_0x25b9bb[a23_0x35febc(0x169)]=!![];const a23_0xd22b98={};a23_0xd22b98['name']='console.info',exports[a23_0x35febc(0x162)]=new winston['createLogger']({'format':winston[a23_0x35febc(0x14f)]['combine'](winston[a23_0x35febc(0x14f)]['timestamp'](a23_0x24a2dc),winston[a23_0x35febc(0x14f)][a23_0x35febc(0x15d)](a23_0x25b9bb),winston[a23_0x35febc(0x14f)][a23_0x35febc(0x164)](_0xc8fe4f=>_0xc8fe4f[a23_0x35febc(0x153)]+'\x20-\x20'+_0xc8fe4f[a23_0x35febc(0x169)]+':\x20'+_0xc8fe4f[a23_0x35febc(0x163)])),'transports':[new winston[(a23_0x35febc(0x15f))][(a23_0x35febc(0x15c))](a23_0xd22b98),new winston['transports']['File']({'filename':path[a23_0x35febc(0x156)](logDir,'events.log'),'level':a23_0x35febc(0x15b)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x35febc(0x157))]({'filename':path['join'](logDir,a23_0x35febc(0x151)),'level':a23_0x35febc(0x15b)})]};exports[a23_0x35febc(0x15e)]=new winston[(a23_0x35febc(0x152))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a24_0x3aff(){const _0x10d4d0=['614874UOOFtq','55804950AVlOcs','nEygb','873SITxIO','1610676TDRygb','commandDir','help','exports','Whdon','./config/constants','4siicQW','demandCommand','env','76HYaRAZ','272646rmzoFF','372250VJSFHY','epilogue','1602272lSuRoT','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','82448JymWqD'];a24_0x3aff=function(){return _0x10d4d0;};return a24_0x3aff();}const a24_0x2db337=a24_0x38d6;(function(_0x187442,_0x123e2b){const _0x5daf94=a24_0x38d6,_0x1ce843=_0x187442();while(!![]){try{const _0x38fb7d=-parseInt(_0x5daf94(0xc2))/0x1+parseInt(_0x5daf94(0xc8))/0x2*(-parseInt(_0x5daf94(0xd2))/0x3)+parseInt(_0x5daf94(0xcb))/0x4*(-parseInt(_0x5daf94(0xcd))/0x5)+-parseInt(_0x5daf94(0xcc))/0x6+-parseInt(_0x5daf94(0xcf))/0x7+-parseInt(_0x5daf94(0xd1))/0x8*(parseInt(_0x5daf94(0xd5))/0x9)+parseInt(_0x5daf94(0xd3))/0xa;if(_0x38fb7d===_0x123e2b)break;else _0x1ce843['push'](_0x1ce843['shift']());}catch(_0x3f493b){_0x1ce843['push'](_0x1ce843['shift']());}}}(a24_0x3aff,0xd4ba6));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2db337(0xc7));function a24_0x38d6(_0x375329,_0x34cab0){const _0x3affab=a24_0x3aff();return a24_0x38d6=function(_0x38d654,_0x32a497){_0x38d654=_0x38d654-0xc2;let _0x5d4a4b=_0x3affab[_0x38d654];return _0x5d4a4b;},a24_0x38d6(_0x375329,_0x34cab0);}process[a24_0x2db337(0xca)][a24_0x2db337(0xd0)]=0x1;function run(_0x3f14b5){const _0x4472b0=a24_0x2db337,_0x44697a={};_0x44697a[_0x4472b0(0xd4)]='commands',_0x44697a[_0x4472b0(0xc6)]='help';const _0x4eb1cd=_0x44697a;_0x3f14b5['usage'](HELP_HEADER_MESSAGE['root'])[_0x4472b0(0xc3)](_0x4eb1cd[_0x4472b0(0xd4)])[_0x4472b0(0xc9)]()[_0x4472b0(0xc4)](_0x4eb1cd[_0x4472b0(0xc6)])[_0x4472b0(0xce)](HELP_FOOTER_MESSAGE);}module[a24_0x2db337(0xc5)]=run;
2
+ 'use strict';const a24_0x163959=a24_0x2655;function a24_0x1a38(){const _0x2649ba=['218268mKyxFZ','AMPqY','385vasKch','root','commands','1025118YlouxH','20uiuIqh','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','117FJLwfU','119120NZgDqo','exports','epilogue','demandCommand','322JgxGCQ','121mRzKWR','commandDir','421392yIhYZn','ozKNH','help','236748esccGp','1168SbeTQG','38152bjTZfU'];a24_0x1a38=function(){return _0x2649ba;};return a24_0x1a38();}function a24_0x2655(_0xa0a10,_0x32c481){const _0x1a3860=a24_0x1a38();return a24_0x2655=function(_0x26552f,_0xcc1834){_0x26552f=_0x26552f-0x6b;let _0x5f54c2=_0x1a3860[_0x26552f];return _0x5f54c2;},a24_0x2655(_0xa0a10,_0x32c481);}(function(_0x16bb3b,_0x5d7920){const _0x36cf80=a24_0x2655,_0x472c8d=_0x16bb3b();while(!![]){try{const _0x2f6a2b=parseInt(_0x36cf80(0x74))/0x1*(parseInt(_0x36cf80(0x70))/0x2)+-parseInt(_0x36cf80(0x6c))/0x3+-parseInt(_0x36cf80(0x6f))/0x4*(parseInt(_0x36cf80(0x78))/0x5)+parseInt(_0x36cf80(0x77))/0x6+-parseInt(_0x36cf80(0x7f))/0x7*(-parseInt(_0x36cf80(0x71))/0x8)+-parseInt(_0x36cf80(0x7a))/0x9*(-parseInt(_0x36cf80(0x7b))/0xa)+parseInt(_0x36cf80(0x80))/0xb*(-parseInt(_0x36cf80(0x72))/0xc);if(_0x2f6a2b===_0x5d7920)break;else _0x472c8d['push'](_0x472c8d['shift']());}catch(_0x307e66){_0x472c8d['push'](_0x472c8d['shift']());}}}(a24_0x1a38,0x2f078));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process['env'][a24_0x163959(0x79)]=0x1;function run(_0x1c4905){const _0x969f24=a24_0x163959,_0x3f1020={};_0x3f1020['ozKNH']=_0x969f24(0x76),_0x3f1020[_0x969f24(0x73)]=_0x969f24(0x6e);const _0x21ccff=_0x3f1020;_0x1c4905['usage'](HELP_HEADER_MESSAGE[_0x969f24(0x75)])[_0x969f24(0x6b)](_0x21ccff[_0x969f24(0x6d)])[_0x969f24(0x7e)]()[_0x969f24(0x6e)](_0x21ccff['AMPqY'])[_0x969f24(0x7d)](HELP_FOOTER_MESSAGE);}module[a24_0x163959(0x7c)]=run;