browserstack-node-sdk 1.52.0 → 1.52.2

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 (193) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +2 -2
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/puppeteer/patches.js +1 -1
  90. package/src/bin/puppeteer/sessionDetails.js +1 -1
  91. package/src/bin/puppeteer/test.setup.js +1 -1
  92. package/src/bin/runner.js +1 -1
  93. package/src/bin/setup.js +1 -1
  94. package/src/bin/test-runner/index.js +1 -1
  95. package/src/bin/test-runner/runTest.js +1 -1
  96. package/src/bin/test-runner/testWorker.js +1 -1
  97. package/src/bin/utils/apiUtilityMethods.js +1 -1
  98. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  99. package/src/bin/utils/constants.js +1 -1
  100. package/src/bin/utils/log4jsAppender.js +1 -1
  101. package/src/bin/utils/logPatcher.js +1 -1
  102. package/src/bin/utils/logReportingAPI.js +1 -1
  103. package/src/bin/utils/playwright-patcher.js +1 -1
  104. package/src/bin/utils/puppeteer-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/jestTestFramework.js +1 -1
  117. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  118. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  119. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  120. package/src/bin/v2/framework/testFramework.js +1 -1
  121. package/src/bin/v2/grpcClient.js +1 -1
  122. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  123. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  124. package/src/bin/v2/instances/trackedContext.js +1 -1
  125. package/src/bin/v2/instances/trackedInstance.js +1 -1
  126. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  127. package/src/bin/v2/modules/baseModule.js +1 -1
  128. package/src/bin/v2/modules/loadTestModule.js +1 -1
  129. package/src/bin/v2/modules/observabilityModule.js +1 -1
  130. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  131. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  132. package/src/bin/v2/modules/testhubModule.js +1 -1
  133. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  134. package/src/bin/v2/state/hookState.js +1 -1
  135. package/src/bin/v2/state/testFrameworkState.js +1 -1
  136. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  137. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  138. package/src/bin/v2/utils/jest-utils.js +1 -1
  139. package/src/bin/vanilla-js/command.js +1 -1
  140. package/src/browserStackSdk.js +1 -1
  141. package/src/helpers/BrowserStackSetup.js +1 -1
  142. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  143. package/src/helpers/accessibility-automation/constants.js +1 -1
  144. package/src/helpers/accessibility-automation/helper.js +1 -1
  145. package/src/helpers/accessibility-automation/scripts.js +1 -1
  146. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  147. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  148. package/src/helpers/ats/constants.js +1 -1
  149. package/src/helpers/ats/helper.js +1 -1
  150. package/src/helpers/capsMapping.js +1 -1
  151. package/src/helpers/central-scanner/constants.js +1 -1
  152. package/src/helpers/central-scanner/helpers.js +1 -1
  153. package/src/helpers/classLogger.js +1 -1
  154. package/src/helpers/globals.js +1 -1
  155. package/src/helpers/helper.js +1 -1
  156. package/src/helpers/logger.js +1 -1
  157. package/src/helpers/metadata.js +1 -1
  158. package/src/helpers/patchHelper.js +1 -1
  159. package/src/helpers/patchHelpers.js +1 -1
  160. package/src/helpers/percy/Percy.js +1 -1
  161. package/src/helpers/percy/PercyBinary.js +1 -1
  162. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  163. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  164. package/src/helpers/percy/PercySDK.js +1 -1
  165. package/src/helpers/percy/index.js +1 -1
  166. package/src/helpers/percy/utils.js +1 -1
  167. package/src/helpers/performance/constants.js +1 -1
  168. package/src/helpers/performance/performance-tester.js +1 -1
  169. package/src/helpers/playwright-helper.js +1 -1
  170. package/src/helpers/processHelper.js +1 -1
  171. package/src/helpers/puppeteer-helper.js +1 -1
  172. package/src/helpers/request-spy.js +1 -1
  173. package/src/helpers/setKeepAlive.js +1 -1
  174. package/src/helpers/test-observability/constants.js +1 -1
  175. package/src/helpers/test-observability/error-handler.js +1 -1
  176. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  177. package/src/helpers/test-observability/sessionHandler.js +1 -1
  178. package/src/helpers/test-observability/utils.js +1 -1
  179. package/src/helpers/test-orchestration/constants.js +1 -1
  180. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  181. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  182. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  183. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  184. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  185. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  186. package/src/helpers/testhub/constants.js +1 -1
  187. package/src/helpers/testhub/testhubHandler.js +1 -1
  188. package/src/helpers/testhub/utils.js +1 -1
  189. package/src/helpers/timeoutPromise.js +1 -1
  190. package/src/helpers/utilities.js +1 -1
  191. package/src/helpers/w3cMapping.js +1 -1
  192. package/src/hubAllocationMethods.js +1 -1
  193. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x10b7b2=a15_0x5606;function a15_0x5606(_0x2a87ac,_0x4d8073){const _0x1e5802=a15_0x1e58();return a15_0x5606=function(_0x56061e,_0x435087){_0x56061e=_0x56061e-0x74;let _0x196d4c=_0x1e5802[_0x56061e];return _0x196d4c;},a15_0x5606(_0x2a87ac,_0x4d8073);}(function(_0x55b395,_0x1097b8){const _0x266d64=a15_0x5606,_0x50bca1=_0x55b395();while(!![]){try{const _0x53fab3=parseInt(_0x266d64(0xcd))/0x1*(parseInt(_0x266d64(0x77))/0x2)+parseInt(_0x266d64(0x7c))/0x3+parseInt(_0x266d64(0x7a))/0x4*(parseInt(_0x266d64(0xa4))/0x5)+parseInt(_0x266d64(0xcf))/0x6+-parseInt(_0x266d64(0xb7))/0x7*(parseInt(_0x266d64(0x9d))/0x8)+parseInt(_0x266d64(0xac))/0x9*(-parseInt(_0x266d64(0x99))/0xa)+parseInt(_0x266d64(0xce))/0xb*(parseInt(_0x266d64(0xcc))/0xc);if(_0x53fab3===_0x1097b8)break;else _0x50bca1['push'](_0x50bca1['shift']());}catch(_0x4b8b72){_0x50bca1['push'](_0x50bca1['shift']());}}}(a15_0x1e58,0x4694c));const fs=require('fs'),got=require(a15_0x10b7b2(0xa6)),{table}=require(a15_0x10b7b2(0x83)),{v4:uuidv4}=require(a15_0x10b7b2(0x7f)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x10b7b2(0x97)),{getCredentialsPath,getAuthHeader}=require(a15_0x10b7b2(0xa0)),{sendInstrumentationEvent}=require(a15_0x10b7b2(0x98));function a15_0x1e58(){const _0x3faac8=['nFzoy','push','list-grids-called','1284fAScaW','944BvuVpS','429FkFHjG','1942116kcagCG','eiffb','bstackUsername','running','https://','24bfxoNe','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','cluster-name','8iSthAL','requestId','1120227ohmWTm','log','epilogue','uuid','password','description','allGrids','table','WFYXc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','list','options','gQuYW','Failed\x20to\x20list\x20resources!\x20Error:\x20','\x0aFound\x20the\x20following\x20grids:\x0a','cwmUn','status','lcVmj','boolean','/packages/cli/get-grids','grid','usage','grids','builder','jgwfP','exit','Browserstack','../../config/constants','../../utils/instrumentationUtils','48610hYQvbC','aboCl','GET','bstackAccesskey','91512YaXaLE','help','readFileSync','../../utils/utilityMethods','desc','all-grids','command','1055185ehnsVv','statusCode','got','TgSet','server-error','/packages/cli/get-all-grids','dLrjm','ERROR','909UIpCdm','XyLsg','DAFnB','RUOGI','init-not-called','forEach','Zckvj','bPNvB','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','argv','217ZtoRBH','parse','error','clusterName','JeycP','mPAIf','stringify','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','dlUTy','lpMtL','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','npgsU','grid-name','hJmee','DeGqM','stack','ZVRIn','queued'];a15_0x1e58=function(){return _0x3faac8;};return a15_0x1e58();}exports[a15_0x10b7b2(0xa3)]=a15_0x10b7b2(0x92),exports[a15_0x10b7b2(0xa1)]=a15_0x10b7b2(0xbe),exports[a15_0x10b7b2(0x93)]=function(_0x4b07a8){const _0x16b4eb=a15_0x10b7b2,_0x103108={};_0x103108['nFzoy']=_0x16b4eb(0x78),_0x103108[_0x16b4eb(0xd0)]=_0x16b4eb(0x8e),_0x103108['jgwfP']=_0x16b4eb(0x9e);const _0xdea4ba=_0x103108,_0x38c0fb={};_0x38c0fb[_0x16b4eb(0x81)]=_0xdea4ba[_0x16b4eb(0xc9)],_0x38c0fb[_0x16b4eb(0xb4)]=_0xdea4ba[_0x16b4eb(0xd0)];const _0xb1fbbf={};return _0xb1fbbf[_0x16b4eb(0xa2)]=_0x38c0fb,_0x4b07a8[_0x16b4eb(0x91)](HELP_HEADER_MESSAGE[_0x16b4eb(0x86)][_0x16b4eb(0x90)])[_0x16b4eb(0x7e)](HELP_FOOTER_MESSAGE)[_0x16b4eb(0x87)](_0xb1fbbf)[_0x16b4eb(0x9e)](_0xdea4ba[_0x16b4eb(0x94)])[_0x16b4eb(0xb6)];},exports['handler']=async function(_0x2fd9ae){const _0xebe79f=a15_0x10b7b2,_0x3979c9={'hJmee':function(_0x22f2a7){return _0x22f2a7();},'wwZkD':_0xebe79f(0xc1),'ZVRIn':function(_0x5a8598,_0x262bcf,_0x32f4d5,_0x5ed62f,_0x3a083d,_0xc9e222,_0x3f0663){return _0x5a8598(_0x262bcf,_0x32f4d5,_0x5ed62f,_0x3a083d,_0xc9e222,_0x3f0663);},'WFYXc':_0xebe79f(0xcb),'aboCl':_0xebe79f(0xb0),'wYnLJ':function(_0x42da68){return _0x42da68();},'lpMtL':_0xebe79f(0x9b),'TgSet':function(_0x5f210a,_0x49fa03,_0x3a75ec){return _0x5f210a(_0x49fa03,_0x3a75ec);},'dlUTy':function(_0x41e6a1,_0x21e007,_0x1e83a8,_0x2d7b3c,_0x13ef68,_0x3af91b,_0x2895e5){return _0x41e6a1(_0x21e007,_0x1e83a8,_0x2d7b3c,_0x13ef68,_0x3af91b,_0x2895e5);},'XyLsg':function(_0x217511,_0x4281f5,_0x585a2e){return _0x217511(_0x4281f5,_0x585a2e);},'RUOGI':function(_0x2133a2,_0x25b7ee){return _0x2133a2!==_0x25b7ee;},'DAFnB':function(_0x5b643a,_0x47c3d8){return _0x5b643a===_0x47c3d8;},'mPAIf':_0xebe79f(0x8a),'JeycP':'grid-id','bPNvB':_0xebe79f(0xc3),'Zckvj':_0xebe79f(0x8c),'DeGqM':_0xebe79f(0x75),'npgsU':_0xebe79f(0xc8),'cwmUn':_0xebe79f(0x79),'gQuYW':function(_0x2361da,_0x47c255){return _0x2361da(_0x47c255);},'lcVmj':_0xebe79f(0x85),'dLrjm':'unauthorised','LReMG':_0xebe79f(0xa8),'qLPTW':function(_0x52914c,_0x276280,_0x5e5889,_0x15df31,_0x539086,_0x69ae0f,_0x212638){return _0x52914c(_0x276280,_0x5e5889,_0x15df31,_0x539086,_0x69ae0f,_0x212638);},'cSdYd':'unknown-error'};try{global_registry[_0xebe79f(0x7b)]=_0x3979c9[_0xebe79f(0xc4)](uuidv4);!fs['existsSync'](_0x3979c9[_0xebe79f(0xc4)](getCredentialsPath))&&(console['error'](_0x3979c9['wwZkD']),await _0x3979c9[_0xebe79f(0xc7)](sendInstrumentationEvent,_0x2fd9ae,_0x3979c9['WFYXc'],messageTypes['ERROR'],_0x3979c9[_0xebe79f(0x9a)],null,_0x2fd9ae),process['exit'](0x1));const _0x5aab1c=JSON[_0xebe79f(0xb8)](fs[_0xebe79f(0x9f)](_0x3979c9['wYnLJ'](getCredentialsPath)));let _0x105d12=_0xebe79f(0x76)+AG_API_URL+_0xebe79f(0x8f);_0x2fd9ae[_0xebe79f(0x82)]&&(_0x105d12=_0xebe79f(0x76)+AG_API_URL+_0xebe79f(0xa9));const _0x54e6c7={'method':_0x3979c9[_0xebe79f(0xc0)],'headers':_0x3979c9[_0xebe79f(0xa7)](getAuthHeader,_0x5aab1c[_0xebe79f(0x96)]['username'],_0x5aab1c['Browserstack'][_0xebe79f(0x80)]),'throwHttpErrors':![]};global_registry[_0xebe79f(0x74)]=_0x5aab1c[_0xebe79f(0x96)]['username'],global_registry[_0xebe79f(0x9c)]=_0x5aab1c['Browserstack'][_0xebe79f(0x80)],_0x3979c9[_0xebe79f(0xbf)](sendInstrumentationEvent,_0x2fd9ae,_0x3979c9[_0xebe79f(0x84)],messageTypes['INFO'],null,null,_0x2fd9ae);const _0x481cde=await _0x3979c9[_0xebe79f(0xad)](got,_0x105d12,_0x54e6c7);if(_0x3979c9[_0xebe79f(0xaf)](_0x481cde,null)&&_0x3979c9[_0xebe79f(0xaf)](_0x481cde,undefined)&&_0x3979c9[_0xebe79f(0xae)](_0x481cde[_0xebe79f(0xa5)],0xc8)){const _0x11ef8b=JSON['parse'](_0x481cde['body']);console[_0xebe79f(0x7d)](_0x3979c9[_0xebe79f(0xbc)]);const _0x20513d=[];_0x20513d[_0xebe79f(0xca)]([_0x3979c9[_0xebe79f(0xbb)],_0x3979c9[_0xebe79f(0xb3)],_0x3979c9[_0xebe79f(0xb2)],_0x3979c9[_0xebe79f(0xc5)],_0x3979c9[_0xebe79f(0xc2)],_0x3979c9[_0xebe79f(0x8b)]]),_0x11ef8b[_0xebe79f(0xb1)](_0x47b78b=>{const _0x2dec32=_0xebe79f;_0x20513d[_0x2dec32(0xca)]([_0x47b78b['id'],_0x47b78b['name'],_0x47b78b['status'],_0x47b78b['running'],_0x47b78b['queued'],_0x47b78b[_0x2dec32(0xba)]]);}),console[_0xebe79f(0x7d)](_0x3979c9[_0xebe79f(0x88)](table,_0x20513d)),process['exit'](0x0);}_0x3979c9[_0xebe79f(0xae)](_0x481cde[_0xebe79f(0xa5)],0x191)&&(console[_0xebe79f(0xb9)](_0x3979c9[_0xebe79f(0x8d)]),await _0x3979c9[_0xebe79f(0xbf)](sendInstrumentationEvent,_0x2fd9ae,_0x3979c9[_0xebe79f(0x84)],messageTypes[_0xebe79f(0xab)],_0x3979c9[_0xebe79f(0xaa)],null,_0x2fd9ae),process[_0xebe79f(0x95)](0x1)),console[_0xebe79f(0xb9)](_0xebe79f(0xb5)+JSON[_0xebe79f(0xbd)](_0x481cde)),await _0x3979c9['ZVRIn'](sendInstrumentationEvent,_0x2fd9ae,_0x3979c9['WFYXc'],messageTypes['ERROR'],_0x3979c9['LReMG'],_0x481cde,_0x2fd9ae),process[_0xebe79f(0x95)](0x1);}catch(_0x205311){console['error'](_0xebe79f(0x89)+_0x205311[_0xebe79f(0xc6)]),await _0x3979c9['qLPTW'](sendInstrumentationEvent,_0x2fd9ae,_0x3979c9['WFYXc'],messageTypes[_0xebe79f(0xab)],_0x3979c9['cSdYd'],_0x205311,_0x2fd9ae),process[_0xebe79f(0x95)](0x1);}};
1
+ const a15_0x537931=a15_0x4dd7;function a15_0x4dd7(_0x1b589c,_0x4a8a57){const _0x183c8b=a15_0x183c();return a15_0x4dd7=function(_0x4dd7a4,_0x33d24a){_0x4dd7a4=_0x4dd7a4-0x11d;let _0x1853fc=_0x183c8b[_0x4dd7a4];return _0x1853fc;},a15_0x4dd7(_0x1b589c,_0x4a8a57);}function a15_0x183c(){const _0x1e2454=['/packages/cli/get-all-grids','qrgJN','grid-name','grid-id','name','4038Jjofdl','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','1297701oSJzun','gUTxI','list','dXQLo','stringify','Ursoc','ERROR','type','boolean','XDkBE','requestId','6196687FSVinD','parse','nOYHD','uuid','dQUVi','builder','Browserstack','../../config/constants','error','63192VPKIPb','796170LvtgOj','running','https://','PPaAu','command','got','desc','GET','vzhXG','peLWV','push','INFO','unauthorised','gGUhx','KYkOQ','Uvwkp','../../utils/utilityMethods','help','readFileSync','99ekDFhS','queued','VpOUz','argv','options','status','eLGHh','\x0aFound\x20the\x20following\x20grids:\x0a','oJVbe','handler','Xuuzj','LdcSP','init-not-called','3325896JjVEbr','all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1894598ZoUQxG','statusCode','URRji','610WjCVsZ','ftOiz','table','log','Orlio','HAoHy','JeyiD','epilogue','list-grids-called','72Hvparr','exit','3ZKwzdt','username','oYePs','stack','bstackUsername'];a15_0x183c=function(){return _0x1e2454;};return a15_0x183c();}(function(_0x5882b3,_0x31f992){const _0x1f7dd0=a15_0x4dd7,_0x1048a3=_0x5882b3();while(!![]){try{const _0x261f2e=-parseInt(_0x1f7dd0(0x14d))/0x1+-parseInt(_0x1f7dd0(0x11e))/0x2*(parseInt(_0x1f7dd0(0x12c))/0x3)+parseInt(_0x1f7dd0(0x16e))/0x4+-parseInt(_0x1f7dd0(0x121))/0x5*(parseInt(_0x1f7dd0(0x136))/0x6)+-parseInt(_0x1f7dd0(0x144))/0x7+parseInt(_0x1f7dd0(0x12a))/0x8*(parseInt(_0x1f7dd0(0x139))/0x9)+parseInt(_0x1f7dd0(0x14e))/0xa*(parseInt(_0x1f7dd0(0x161))/0xb);if(_0x261f2e===_0x31f992)break;else _0x1048a3['push'](_0x1048a3['shift']());}catch(_0x863fdc){_0x1048a3['push'](_0x1048a3['shift']());}}}(a15_0x183c,0xd3e32));const fs=require('fs'),got=require(a15_0x537931(0x153)),{table}=require(a15_0x537931(0x123)),{v4:uuidv4}=require(a15_0x537931(0x147)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x537931(0x14b)),{getCredentialsPath,getAuthHeader}=require(a15_0x537931(0x15e)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x537931(0x152)]='grids',exports[a15_0x537931(0x154)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x537931(0x149)]=function(_0x623723){const _0x5af90a=a15_0x537931,_0x418755={};_0x418755['URRji']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x418755[_0x5af90a(0x151)]=_0x5af90a(0x141),_0x418755[_0x5af90a(0x169)]=_0x5af90a(0x15f);const _0x5a0120=_0x418755,_0x8305c4={};_0x8305c4['description']=_0x5a0120[_0x5af90a(0x120)],_0x8305c4[_0x5af90a(0x140)]=_0x5a0120[_0x5af90a(0x151)];const _0x3ae78e={};return _0x3ae78e[_0x5af90a(0x16f)]=_0x8305c4,_0x623723['usage'](HELP_HEADER_MESSAGE[_0x5af90a(0x13b)]['grid'])[_0x5af90a(0x128)](HELP_FOOTER_MESSAGE)[_0x5af90a(0x165)](_0x3ae78e)[_0x5af90a(0x15f)](_0x5a0120[_0x5af90a(0x169)])[_0x5af90a(0x164)];},exports[a15_0x537931(0x16a)]=async function(_0x9c9acc){const _0x563325=a15_0x537931,_0x3980cd={'KYkOQ':function(_0x7c7c38){return _0x7c7c38();},'Ursoc':function(_0x582e81){return _0x582e81();},'rJGgU':_0x563325(0x138),'HAoHy':function(_0x3cdac6,_0x13a480,_0x166c1e,_0x39eaf5,_0x558f29,_0xfa3fff,_0x107023){return _0x3cdac6(_0x13a480,_0x166c1e,_0x39eaf5,_0x558f29,_0xfa3fff,_0x107023);},'XDkBE':_0x563325(0x129),'eLGHh':_0x563325(0x16d),'Orlio':function(_0x266e15){return _0x266e15();},'gUTxI':_0x563325(0x155),'peLWV':function(_0x551549,_0x5419f5,_0x568ca1){return _0x551549(_0x5419f5,_0x568ca1);},'dQUVi':function(_0xcd5c8b,_0x2ed141,_0x1c944e,_0xbdc373,_0x9544e4,_0x5117b4,_0x86f45f){return _0xcd5c8b(_0x2ed141,_0x1c944e,_0xbdc373,_0x9544e4,_0x5117b4,_0x86f45f);},'JeyiD':function(_0x2a7d17,_0x25ce58){return _0x2a7d17!==_0x25ce58;},'HsMio':function(_0x2c3888,_0x4ee691){return _0x2c3888===_0x4ee691;},'nOYHD':_0x563325(0x168),'LdcSP':_0x563325(0x134),'gGUhx':_0x563325(0x133),'qrgJN':_0x563325(0x166),'ZDBoy':_0x563325(0x14f),'ftOiz':_0x563325(0x162),'Xuuzj':'cluster-name','oYePs':function(_0x44b85a,_0x202153){return _0x44b85a(_0x202153);},'dXQLo':function(_0x246355,_0x86b5f1){return _0x246355===_0x86b5f1;},'VpOUz':_0x563325(0x11d),'Uvwkp':_0x563325(0x15a),'tejeR':'server-error','vzhXG':'unknown-error'};try{global_registry[_0x563325(0x143)]=_0x3980cd[_0x563325(0x15c)](uuidv4);!fs['existsSync'](_0x3980cd[_0x563325(0x13e)](getCredentialsPath))&&(console[_0x563325(0x14c)](_0x3980cd['rJGgU']),await _0x3980cd[_0x563325(0x126)](sendInstrumentationEvent,_0x9c9acc,_0x3980cd['XDkBE'],messageTypes[_0x563325(0x13f)],_0x3980cd[_0x563325(0x167)],null,_0x9c9acc),process['exit'](0x1));const _0x302d70=JSON[_0x563325(0x145)](fs[_0x563325(0x160)](_0x3980cd[_0x563325(0x125)](getCredentialsPath)));let _0x46f305='https://'+AG_API_URL+'/packages/cli/get-grids';_0x9c9acc['allGrids']&&(_0x46f305=_0x563325(0x150)+AG_API_URL+_0x563325(0x131));const _0x1c8c99={'method':_0x3980cd[_0x563325(0x13a)],'headers':_0x3980cd[_0x563325(0x157)](getAuthHeader,_0x302d70['Browserstack'][_0x563325(0x12d)],_0x302d70[_0x563325(0x14a)]['password']),'throwHttpErrors':![]};global_registry[_0x563325(0x130)]=_0x302d70[_0x563325(0x14a)][_0x563325(0x12d)],global_registry['bstackAccesskey']=_0x302d70[_0x563325(0x14a)][_0x563325(0x137)],_0x3980cd[_0x563325(0x148)](sendInstrumentationEvent,_0x9c9acc,_0x3980cd[_0x563325(0x142)],messageTypes[_0x563325(0x159)],null,null,_0x9c9acc);const _0x147572=await _0x3980cd['peLWV'](got,_0x46f305,_0x1c8c99);if(_0x3980cd[_0x563325(0x127)](_0x147572,null)&&_0x3980cd[_0x563325(0x127)](_0x147572,undefined)&&_0x3980cd['HsMio'](_0x147572[_0x563325(0x11f)],0xc8)){const _0x42d668=JSON[_0x563325(0x145)](_0x147572['body']);console['log'](_0x3980cd[_0x563325(0x146)]);const _0x54daa5=[];_0x54daa5[_0x563325(0x158)]([_0x3980cd[_0x563325(0x16c)],_0x3980cd[_0x563325(0x15b)],_0x3980cd[_0x563325(0x132)],_0x3980cd['ZDBoy'],_0x3980cd[_0x563325(0x122)],_0x3980cd[_0x563325(0x16b)]]),_0x42d668['forEach'](_0x11f99a=>{const _0x3ba019=_0x563325;_0x54daa5['push']([_0x11f99a['id'],_0x11f99a[_0x3ba019(0x135)],_0x11f99a[_0x3ba019(0x166)],_0x11f99a[_0x3ba019(0x14f)],_0x11f99a['queued'],_0x11f99a['clusterName']]);}),console[_0x563325(0x124)](_0x3980cd[_0x563325(0x12e)](table,_0x54daa5)),process['exit'](0x0);}_0x3980cd[_0x563325(0x13c)](_0x147572[_0x563325(0x11f)],0x191)&&(console[_0x563325(0x14c)](_0x3980cd[_0x563325(0x163)]),await _0x3980cd[_0x563325(0x148)](sendInstrumentationEvent,_0x9c9acc,_0x3980cd['XDkBE'],messageTypes[_0x563325(0x13f)],_0x3980cd[_0x563325(0x15d)],null,_0x9c9acc),process['exit'](0x1)),console[_0x563325(0x14c)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x563325(0x13d)](_0x147572)),await _0x3980cd[_0x563325(0x126)](sendInstrumentationEvent,_0x9c9acc,_0x3980cd[_0x563325(0x142)],messageTypes['ERROR'],_0x3980cd['tejeR'],_0x147572,_0x9c9acc),process[_0x563325(0x12b)](0x1);}catch(_0x3fe141){console[_0x563325(0x14c)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x3fe141[_0x563325(0x12f)]),await _0x3980cd[_0x563325(0x126)](sendInstrumentationEvent,_0x9c9acc,_0x3980cd[_0x563325(0x142)],messageTypes['ERROR'],_0x3980cd[_0x563325(0x156)],_0x3fe141,_0x9c9acc),process[_0x563325(0x12b)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x3bfb(_0x2f6b6f,_0x1c4e33){const _0x3589a6=a16_0x3589();return a16_0x3bfb=function(_0x3bfb81,_0x28ef21){_0x3bfb81=_0x3bfb81-0xc3;let _0x28ac54=_0x3589a6[_0x3bfb81];return _0x28ac54;},a16_0x3bfb(_0x2f6b6f,_0x1c4e33);}const a16_0x520900=a16_0x3bfb;(function(_0xa08f89,_0x3a20b1){const _0x597a19=a16_0x3bfb,_0x274e8c=_0xa08f89();while(!![]){try{const _0x2f25d3=-parseInt(_0x597a19(0xc4))/0x1*(parseInt(_0x597a19(0xc3))/0x2)+parseInt(_0x597a19(0xc5))/0x3+parseInt(_0x597a19(0xce))/0x4+parseInt(_0x597a19(0xda))/0x5*(-parseInt(_0x597a19(0xc9))/0x6)+-parseInt(_0x597a19(0xd3))/0x7*(-parseInt(_0x597a19(0xcf))/0x8)+-parseInt(_0x597a19(0xcc))/0x9*(-parseInt(_0x597a19(0xc8))/0xa)+parseInt(_0x597a19(0xd7))/0xb*(-parseInt(_0x597a19(0xcd))/0xc);if(_0x2f25d3===_0x3a20b1)break;else _0x274e8c['push'](_0x274e8c['shift']());}catch(_0x2074e0){_0x274e8c['push'](_0x274e8c['shift']());}}}(a16_0x3589,0x84d7b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x520900(0xd8));exports[a16_0x520900(0xd5)]=a16_0x520900(0xde),exports[a16_0x520900(0xdb)]=a16_0x520900(0xd9),exports[a16_0x520900(0xc6)]=function(_0x4aa4b3){const _0x57e398=a16_0x520900,_0x3f7f95={};_0x3f7f95['eaxzp']=_0x57e398(0xc7),_0x3f7f95[_0x57e398(0xd2)]='help';const _0x2e667d=_0x3f7f95;return _0x4aa4b3[_0x57e398(0xd0)](HELP_HEADER_MESSAGE['pre_check'])[_0x57e398(0xca)](HELP_FOOTER_MESSAGE)[_0x57e398(0xd6)](_0x2e667d[_0x57e398(0xdc)])['demandCommand']()[_0x57e398(0xcb)]()[_0x57e398(0xd1)]()[_0x57e398(0xdd)](_0x2e667d[_0x57e398(0xd2)]);},exports[a16_0x520900(0xd4)]=function(_0x26616d){};function a16_0x3589(){const _0x2d76c8=['1418217ySiPfd','builder','precheck_commands','760IoDqst','2188272OLJuJu','epilogue','recommendCommands','74394eYrEgQ','31548AOiCiM','2841876MSHMdf','843640kQlHIr','usage','strict','ZbaFi','35YxOixM','handler','command','commandDir','2299JynMit','../config/constants','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','10kRqQJC','desc','eaxzp','help','pre-check','343794IXOtOC','3XsYuBI'];a16_0x3589=function(){return _0x2d76c8;};return a16_0x3589();}
1
+ function a16_0x2125(){const _0x1ac728=['lfDmZ','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','349064LZEJCS','3404394EcaLXm','commandDir','pre-check','desc','eXbxM','117KGmuNI','20996feXIzX','precheck_commands','450458DtpwRG','builder','10100910uGtHDR','pre_check','usage','recommendCommands','demandCommand','help','../config/constants','111SXlpNi','1000060WbvhOj','epilogue','command','3498488LCVXXd','1xKeOAu','strict'];a16_0x2125=function(){return _0x1ac728;};return a16_0x2125();}function a16_0x4f2d(_0x31cc7e,_0x2c4c99){const _0x212564=a16_0x2125();return a16_0x4f2d=function(_0x4f2d39,_0x5d3330){_0x4f2d39=_0x4f2d39-0x1da;let _0xba7d6f=_0x212564[_0x4f2d39];return _0xba7d6f;},a16_0x4f2d(_0x31cc7e,_0x2c4c99);}const a16_0x1229c6=a16_0x4f2d;(function(_0x44cae2,_0x224c6f){const _0x1fb381=a16_0x4f2d,_0x5a818f=_0x44cae2();while(!![]){try{const _0x34459c=-parseInt(_0x1fb381(0x1e0))/0x1*(-parseInt(_0x1fb381(0x1ed))/0x2)+-parseInt(_0x1fb381(0x1db))/0x3*(parseInt(_0x1fb381(0x1eb))/0x4)+-parseInt(_0x1fb381(0x1dc))/0x5+parseInt(_0x1fb381(0x1e5))/0x6+-parseInt(_0x1fb381(0x1df))/0x7+-parseInt(_0x1fb381(0x1e4))/0x8*(parseInt(_0x1fb381(0x1ea))/0x9)+parseInt(_0x1fb381(0x1ef))/0xa;if(_0x34459c===_0x224c6f)break;else _0x5a818f['push'](_0x5a818f['shift']());}catch(_0xce374c){_0x5a818f['push'](_0x5a818f['shift']());}}}(a16_0x2125,0x535e9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1229c6(0x1da));exports[a16_0x1229c6(0x1de)]=a16_0x1229c6(0x1e7),exports[a16_0x1229c6(0x1e8)]=a16_0x1229c6(0x1e3),exports[a16_0x1229c6(0x1ee)]=function(_0x3a7a72){const _0x25382a=a16_0x1229c6,_0x49bb3c={};_0x49bb3c[_0x25382a(0x1e2)]=_0x25382a(0x1ec),_0x49bb3c[_0x25382a(0x1e9)]=_0x25382a(0x1f4);const _0x4af4db=_0x49bb3c;return _0x3a7a72[_0x25382a(0x1f1)](HELP_HEADER_MESSAGE[_0x25382a(0x1f0)])[_0x25382a(0x1dd)](HELP_FOOTER_MESSAGE)[_0x25382a(0x1e6)](_0x4af4db['lfDmZ'])[_0x25382a(0x1f3)]()[_0x25382a(0x1f2)]()[_0x25382a(0x1e1)]()[_0x25382a(0x1f4)](_0x4af4db[_0x25382a(0x1e9)]);},exports['handler']=function(_0x5ef88c){};
@@ -1 +1 @@
1
- const a17_0x5505b5=a17_0x2047;function a17_0x2047(_0x4a16b8,_0x380734){const _0x12d487=a17_0x12d4();return a17_0x2047=function(_0x2047fa,_0x13cc96){_0x2047fa=_0x2047fa-0xaf;let _0x4d7277=_0x12d487[_0x2047fa];return _0x4d7277;},a17_0x2047(_0x4a16b8,_0x380734);}(function(_0x13763e,_0x110970){const _0x3f6df8=a17_0x2047,_0x5a7b95=_0x13763e();while(!![]){try{const _0x2fc373=-parseInt(_0x3f6df8(0x193))/0x1+parseInt(_0x3f6df8(0x118))/0x2+-parseInt(_0x3f6df8(0x14c))/0x3+-parseInt(_0x3f6df8(0xfe))/0x4+parseInt(_0x3f6df8(0x16e))/0x5*(parseInt(_0x3f6df8(0x13f))/0x6)+-parseInt(_0x3f6df8(0x17d))/0x7+parseInt(_0x3f6df8(0x177))/0x8;if(_0x2fc373===_0x110970)break;else _0x5a7b95['push'](_0x5a7b95['shift']());}catch(_0x226b6b){_0x5a7b95['push'](_0x5a7b95['shift']());}}}(a17_0x12d4,0xdd2c4));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5505b5(0x18a)),{v4:uuidv4}=require(a17_0x5505b5(0x104)),ReconnectingWebSocket=require(a17_0x5505b5(0x167)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x5505b5(0xf1)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x5505b5(0xb0)),{getCloudProviderObjectWithOutInit}=require(a17_0x5505b5(0x168)),webSocketUtils=require(a17_0x5505b5(0x14f)),{sendInstrumentationEvent}=require(a17_0x5505b5(0xd2));exports['command']=a17_0x5505b5(0x10d),exports[a17_0x5505b5(0xec)]=a17_0x5505b5(0x115),exports[a17_0x5505b5(0x18b)]=function(_0x5f44da){const _0x30d3be=a17_0x5505b5,_0x4a7a7e={};_0x4a7a7e[_0x30d3be(0x154)]=_0x30d3be(0x13d),_0x4a7a7e[_0x30d3be(0x161)]=_0x30d3be(0x17c),_0x4a7a7e[_0x30d3be(0x111)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x4a7a7e[_0x30d3be(0xe2)]=_0x30d3be(0xe1),_0x4a7a7e[_0x30d3be(0x16c)]=_0x30d3be(0xe5),_0x4a7a7e[_0x30d3be(0x1a4)]=_0x30d3be(0x165);const _0x2aee67=_0x4a7a7e,_0x35330c={};_0x35330c['description']=_0x2aee67['TTzrZ'],_0x35330c[_0x30d3be(0x176)]=_0x2aee67[_0x30d3be(0x161)];const _0x26e292={};_0x26e292[_0x30d3be(0x17a)]=_0x2aee67[_0x30d3be(0x111)],_0x26e292[_0x30d3be(0x176)]=_0x2aee67[_0x30d3be(0x161)];const _0x2bdff7={};_0x2bdff7[_0x30d3be(0x17a)]=_0x2aee67[_0x30d3be(0xe2)],_0x2bdff7[_0x30d3be(0x176)]=_0x2aee67['XvuxJ'];const _0x81915e={};_0x81915e[_0x30d3be(0x17a)]=_0x2aee67[_0x30d3be(0x16c)],_0x81915e[_0x30d3be(0x176)]=_0x2aee67[_0x30d3be(0x161)];const _0xb54255={};return _0xb54255[_0x30d3be(0x130)]=_0x35330c,_0xb54255['cloud-provider']=_0x26e292,_0xb54255[_0x30d3be(0x1a8)]=_0x2bdff7,_0xb54255[_0x30d3be(0x189)]=_0x81915e,_0x5f44da[_0x30d3be(0x122)](HELP_HEADER_MESSAGE['pre_check'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x30d3be(0xd8)](_0xb54255)['help'](_0x2aee67['WVQNK'])[_0x30d3be(0x109)];};async function inputValidation(_0x5919de,_0x4e7c3a){const _0x27ae1c=a17_0x5505b5,_0x44663f={'dtNUl':'error','PRmBv':_0x27ae1c(0x198),'AnGTH':function(_0x180bbd,_0x2e433c){return _0x180bbd+_0x2e433c;},'KeavP':_0x27ae1c(0xde),'ulGIy':'Failure','VhQre':function(_0x563552,_0x52e5a2){return _0x563552||_0x52e5a2;},'Znirc':_0x27ae1c(0x194),'DgqQK':'Error\x20Details:\x0a','rxObB':_0x27ae1c(0x183),'BIUvO':_0x27ae1c(0x130),'klRDE':_0x27ae1c(0x13d),'rFiFD':_0x27ae1c(0x17c),'shvpv':_0x27ae1c(0x134),'TdbWR':_0x27ae1c(0xe1),'ZLssy':_0x27ae1c(0xe5),'xTrSy':'help','aFqFh':'region','TeesU':'is\x20already\x20present','zePHN':'will\x20be\x20created','RZjxx':function(_0x3e76a3,_0x52a1d4){return _0x3e76a3===_0x52a1d4;},'dGpcb':'aVEUY','gJzGq':function(_0x1225ab,_0x330fe5){return _0x1225ab===_0x330fe5;},'wqJNq':'ZbFWM','CTwoH':'TtIEA','lgUbz':function(_0x48f033,_0x4d170c){return _0x48f033!==_0x4d170c;},'rOpCR':_0x27ae1c(0x191),'gzCRE':'zicqU','vQsEe':function(_0x248edc,_0x31cc50){return _0x248edc===_0x31cc50;},'oAMvi':_0x27ae1c(0x11b),'UWbic':_0x27ae1c(0x171),'eUXse':function(_0x496127,_0x23d42c){return _0x496127!==_0x23d42c;},'KbGst':'jztlC','aIIWV':_0x27ae1c(0x121),'PmWNf':function(_0x2dbfcd,_0x319d40){return _0x2dbfcd>_0x319d40;},'iedBw':function(_0x26f6c8,_0x6354f2){return _0x26f6c8!==_0x6354f2;},'wnyWs':_0x27ae1c(0xeb),'TNQgO':function(_0x14281a,_0x4a471a,_0x5c13a8,_0x268ec2,_0x18d0a4,_0x5b94de,_0x164cb8,_0x36bc0c){return _0x14281a(_0x4a471a,_0x5c13a8,_0x268ec2,_0x18d0a4,_0x5b94de,_0x164cb8,_0x36bc0c);},'dubpa':_0x27ae1c(0x195),'XZaVM':_0x27ae1c(0x166),'aCEuZ':function(_0x4dfb18,_0x39d6f5){return _0x4dfb18===_0x39d6f5;},'wlHcP':'jRCmB','hXJNs':_0x27ae1c(0xc9),'qDymd':_0x27ae1c(0x12a),'hwwiE':_0x27ae1c(0x174),'NTFim':'rqbMb','mpJci':_0x27ae1c(0xc4),'NVbPb':function(_0x57b88c,_0x26f9d0){return _0x57b88c===_0x26f9d0;},'WSwqA':_0x27ae1c(0x14d),'vrrEn':_0x27ae1c(0x157),'ZDSqy':_0x27ae1c(0xd3),'JPkjE':function(_0x15b3bc,_0x9b5cdf,_0x3a33f6){return _0x15b3bc(_0x9b5cdf,_0x3a33f6);},'zSQjs':function(_0x344597,_0x2eb20a,_0x4eb63f,_0x5ea556,_0x238663,_0x3cee29){return _0x344597(_0x2eb20a,_0x4eb63f,_0x5ea556,_0x238663,_0x3cee29);},'uaaHO':'pre-check','YSvWr':_0x27ae1c(0x189),'mfpMm':function(_0x444565,_0x23a26f){return _0x444565===_0x23a26f;},'csJYB':'Fhcvn','vCexu':'zQmkq','moVKh':function(_0x1d60aa,_0x4850d5){return _0x1d60aa(_0x4850d5);},'BXXhQ':function(_0x5d867b,_0x5e1515){return _0x5d867b===_0x5e1515;},'PKLUx':_0x27ae1c(0x141),'Vrxnk':_0x27ae1c(0x188),'sWNQl':_0x27ae1c(0x100),'oyHJI':function(_0x2c697a,_0x298571){return _0x2c697a!==_0x298571;},'YOPKu':'Pfazh','Hmvgt':_0x27ae1c(0xb8),'HlWSC':'Grid\x20profile\x20fetched\x20for\x20pre-check','FCPVa':function(_0x1d4daa,_0x4454b1){return _0x1d4daa===_0x4454b1;},'rNYir':_0x27ae1c(0x196),'yunRv':_0x27ae1c(0xe3),'ipPXC':_0x27ae1c(0x185),'rNlrB':_0x27ae1c(0x17e)};let _0x52acf1;try{if(_0x44663f[_0x27ae1c(0xcc)](_0x44663f[_0x27ae1c(0xfc)],_0x44663f[_0x27ae1c(0xfc)])){if(_0x5919de['clusterName']||_0x5919de[_0x27ae1c(0x10a)]||_0x5919de['region']){if(_0x44663f['gJzGq'](_0x44663f[_0x27ae1c(0x15a)],_0x44663f[_0x27ae1c(0x10c)])){const _0x27f720={};_0x27f720['type']=_0x2804e6[_0x27ae1c(0xc5)],_0x27f720[_0x27ae1c(0x16d)]=_0x3c66c2,_0x38a5a5['sendEventToBackend'](_0x2ed9e3,_0x27f720,_0x44663f[_0x27ae1c(0x103)],!![]);}else{const _0x1917e6=[];!_0x5919de['clusterName']&&(_0x44663f['lgUbz'](_0x44663f[_0x27ae1c(0x153)],_0x44663f['gzCRE'])?_0x1917e6[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0x11c)]):_0x45c071[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0xb4)]));;if(!_0x5919de[_0x27ae1c(0x10a)]){if(_0x44663f['vQsEe'](_0x44663f['oAMvi'],_0x44663f[_0x27ae1c(0x1ab)])){const {header:_0x2c0142,response:_0x5d0796}=_0x1afebc,{status:_0x4e6b95,data:_0x5449bf,error:_0x59b430}=_0x5d0796;_0x1e473e+=_0x2c0142+'\x20#'+_0x44663f[_0x27ae1c(0xba)](_0x3b5ce1,0x1)+'\x0a',_0x30ea39+=_0x27ae1c(0x190)+(_0x4e6b95?_0x44663f[_0x27ae1c(0xf6)]:_0x44663f[_0x27ae1c(0x12f)])+'\x0a',_0x4b6e57+=_0x27ae1c(0x146)+_0x44663f[_0x27ae1c(0xfa)](_0x5449bf,_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0x59b430&&(_0x56c91c+=_0x44663f['DgqQK'],_0x489f60+=_0x27ae1c(0x186)+(_0x59b430[_0x27ae1c(0x16d)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0x1cb6b6+=_0x27ae1c(0xe4)+(_0x59b430[_0x27ae1c(0x178)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0xb8518f+=_0x27ae1c(0xd6)+(_0x59b430[_0x27ae1c(0x120)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a'),_0x5443bd+='\x0a\x0a';}else _0x1917e6[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0xb4)]);};!_0x5919de[_0x27ae1c(0x1a8)]&&(_0x44663f[_0x27ae1c(0x10f)](_0x44663f[_0x27ae1c(0xe8)],_0x44663f[_0x27ae1c(0xee)])?_0x1917e6[_0x27ae1c(0xdb)](_0x44663f['aFqFh']):(_0xf6008a[_0x27ae1c(0xfb)]('['+_0x149f1c+_0x27ae1c(0xd4)+_0x59aa19['status']+_0x27ae1c(0x18f)+_0x1e3814[_0x27ae1c(0xea)]+_0x27ae1c(0x179)+_0x272b17[_0x27ae1c(0xfd)]),_0x52b1b8[_0x27ae1c(0xfd)]&&_0x2467c2[_0x27ae1c(0xfd)](_0x27ae1c(0x101)+_0xdd9350[_0x27ae1c(0xfd)][_0x27ae1c(0x120)])));;_0x44663f['PmWNf'](_0x1917e6['length'],0x0)&&(_0x44663f[_0x27ae1c(0x151)](_0x44663f['wnyWs'],_0x44663f['wnyWs'])?(_0x37957a[_0x27ae1c(0xfd)](_0x44663f[_0x27ae1c(0x158)]),_0x41fa30[_0x27ae1c(0x18c)](0x1)):(_0x52acf1=_0x27ae1c(0xf3)+_0x1917e6[_0x27ae1c(0x1a1)](',\x20')+_0x27ae1c(0xb9),await _0x44663f['TNQgO'](reportToGalactusAndSendToEDS,_0x5919de,_0x4e7c3a,_0x52acf1,messageTypes[_0x27ae1c(0x105)],_0x44663f[_0x27ae1c(0x11e)],_0x44663f['XZaVM'],_0x44663f[_0x27ae1c(0x103)]),logger[_0x27ae1c(0xfd)](_0x52acf1),process[_0x27ae1c(0x18c)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x27ae1c(0x142)](_0x5919de[_0x27ae1c(0x10a)][_0x27ae1c(0x150)]())&&(_0x44663f[_0x27ae1c(0x124)](_0x44663f[_0x27ae1c(0x199)],_0x44663f[_0x27ae1c(0x163)])?_0x408147['error'](_0x27ae1c(0x101)+_0x49fca6['error'][_0x27ae1c(0x120)]):(_0x52acf1=_0x44663f[_0x27ae1c(0xcf)],await _0x44663f[_0x27ae1c(0x14e)](reportToGalactusAndSendToEDS,_0x5919de,_0x4e7c3a,_0x52acf1,messageTypes[_0x27ae1c(0x105)],_0x44663f['dubpa'],_0x44663f[_0x27ae1c(0xce)],_0x44663f[_0x27ae1c(0x103)]),logger['error'](_0x52acf1),!_0x5919de[_0x27ae1c(0x10a)]&&(_0x44663f[_0x27ae1c(0xcc)](_0x44663f['NTFim'],_0x44663f[_0x27ae1c(0x107)])?_0x326ebf[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0x11c)]):(logger[_0x27ae1c(0xfb)](_0x27ae1c(0xff)+DEFAULT_CLUSTER_DETAILS[_0x27ae1c(0x184)]+'\x20'),_0x5919de[_0x27ae1c(0x10a)]=DEFAULT_CLUSTER_DETAILS[_0x27ae1c(0x184)])))),global_registry[_0x27ae1c(0x1a9)]=_0x5919de[_0x27ae1c(0x1a9)],global_registry[_0x27ae1c(0x10a)]=_0x5919de[_0x27ae1c(0x10a)],global_registry[_0x27ae1c(0x197)]=_0x5919de[_0x27ae1c(0x1a8)];}}else{if(_0x5919de[_0x27ae1c(0x139)]){if(_0x44663f[_0x27ae1c(0x135)](_0x44663f[_0x27ae1c(0x1a2)],_0x44663f[_0x27ae1c(0x10b)])){const _0xeacbef={};_0xeacbef[_0x27ae1c(0x17a)]=_0x44663f[_0x27ae1c(0xb7)],_0xeacbef['type']=_0x44663f[_0x27ae1c(0x175)];const _0x5a1765={};_0x5a1765['description']=_0x44663f[_0x27ae1c(0xed)],_0x5a1765[_0x27ae1c(0x176)]=_0x44663f[_0x27ae1c(0x175)];const _0xea3b8a={};_0xea3b8a[_0x27ae1c(0x17a)]=_0x44663f[_0x27ae1c(0xbf)],_0xea3b8a[_0x27ae1c(0x176)]=_0x44663f[_0x27ae1c(0x175)];const _0x28d645={};_0x28d645[_0x27ae1c(0x17a)]=_0x44663f[_0x27ae1c(0xda)],_0x28d645[_0x27ae1c(0x176)]=_0x44663f['rFiFD'];const _0x26d4ef={};return _0x26d4ef['cluster-name']=_0xeacbef,_0x26d4ef['cloud-provider']=_0x5a1765,_0x26d4ef[_0x27ae1c(0x1a8)]=_0xea3b8a,_0x26d4ef['grid-profile']=_0x28d645,_0x91e7ba['usage'](_0x4c6799[_0x27ae1c(0xdd)])['epilogue'](_0x54b8ef)[_0x27ae1c(0xd8)](_0x26d4ef)[_0x27ae1c(0x165)](_0x44663f['xTrSy'])['argv'];}else{global_registry[_0x27ae1c(0x139)]=_0x5919de[_0x27ae1c(0x139)],logger[_0x27ae1c(0x112)](_0x27ae1c(0xb1)+_0x5919de[_0x27ae1c(0x139)]);const _0x21fd10='https://'+AG_API_URL+_0x27ae1c(0x13e),_0x3cd494={};_0x3cd494[_0x27ae1c(0x15d)]=_0x44663f['ZDSqy'],_0x3cd494[_0x27ae1c(0x114)]=global_registry[_0x27ae1c(0xdf)],_0x3cd494['throwHttpErrors']=![];const _0x187a82=_0x3cd494,_0xccc12=await _0x44663f['JPkjE'](got,_0x21fd10,_0x187a82),_0x3c7a26=await _0x44663f[_0x27ae1c(0xe7)](responseValidation,_0xccc12,_0x44663f[_0x27ae1c(0xf9)],_0x44663f[_0x27ae1c(0xaf)],_0x5919de,_0x4e7c3a);let _0x5e8672={};if(_0x44663f[_0x27ae1c(0x124)](_0x3c7a26,0xc8)){if(_0x44663f[_0x27ae1c(0x16a)](_0x44663f['csJYB'],_0x44663f[_0x27ae1c(0x133)]))_0x154200+=_0x27ae1c(0xc3)+_0x38cd2c[_0x27ae1c(0x1a9)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';else{const _0x1ce50e=JSON[_0x27ae1c(0xef)](_0xccc12['body']),_0x45593c=_0x1ce50e[_0x27ae1c(0x16f)](_0x58f584=>_0x58f584[_0x27ae1c(0x19d)]===_0x5919de[_0x27ae1c(0x139)])||null;_0x44663f[_0x27ae1c(0x182)](isUndefined,_0x45593c)?_0x44663f[_0x27ae1c(0x129)](_0x44663f[_0x27ae1c(0x17b)],_0x44663f[_0x27ae1c(0x1a6)])?_0x5f3310=_0x3a5fda:(_0x52acf1='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x5919de[_0x27ae1c(0x139)]+_0x27ae1c(0x149),await _0x44663f[_0x27ae1c(0x14e)](reportToGalactusAndSendToEDS,_0x5919de,_0x4e7c3a,_0x52acf1,messageTypes[_0x27ae1c(0x105)],_0x44663f['dubpa'],_0x44663f[_0x27ae1c(0x19a)],_0x44663f[_0x27ae1c(0x103)]),logger[_0x27ae1c(0xfd)](_0x52acf1),process[_0x27ae1c(0x18c)](0x1)):_0x44663f['oyHJI'](_0x44663f[_0x27ae1c(0x19c)],_0x44663f[_0x27ae1c(0x19c)])?_0x577fe4[_0x27ae1c(0xdb)](_0x44663f[_0x27ae1c(0x113)]):_0x5e8672=_0x45593c;}}else _0x44663f['iedBw'](_0x44663f[_0x27ae1c(0xc2)],_0x44663f[_0x27ae1c(0xc2)])?(_0x361f56+=_0x44663f[_0x27ae1c(0xb2)],_0x9fa94+=_0x27ae1c(0x186)+(_0x4609b1[_0x27ae1c(0x16d)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0x5cddc3+=_0x27ae1c(0xe4)+(_0x49ae91[_0x27ae1c(0x178)]||_0x44663f[_0x27ae1c(0xf2)])+'\x0a',_0x396be2+=_0x27ae1c(0xd6)+(_0x144238[_0x27ae1c(0x120)]||_0x44663f['Znirc'])+'\x0a'):process['exit'](0x1);const _0x2fa39e={};_0x2fa39e[_0x27ae1c(0x176)]=WS_EVENTS[_0x27ae1c(0xc5)],_0x2fa39e[_0x27ae1c(0x16d)]=_0x44663f[_0x27ae1c(0x13a)],webSocketUtils[_0x27ae1c(0x137)](_0x4e7c3a,_0x2fa39e),global_registry[_0x27ae1c(0x10a)]=_0x5e8672[_0x27ae1c(0x10a)],global_registry[_0x27ae1c(0x197)]=_0x5e8672[_0x27ae1c(0x1a8)],global_registry[_0x27ae1c(0x1a9)]=_0x5e8672[_0x27ae1c(0x1a9)];}}else _0x44663f[_0x27ae1c(0xf8)](_0x44663f[_0x27ae1c(0x125)],_0x44663f['yunRv'])?_0x5518e3+='Cluster\x20'+_0x36d68c[_0x27ae1c(0x1a9)]+'\x20'+(_0x11a8c3?_0x44663f[_0x27ae1c(0x12d)]:_0x44663f[_0x27ae1c(0xbe)])+'\x0a\x0a':(logger[_0x27ae1c(0xfd)](_0x44663f[_0x27ae1c(0x158)]),process[_0x27ae1c(0x18c)](0x1));}}else _0x8b84da[_0x27ae1c(0xfb)]('Setting\x20cloud\x20provider\x20as\x20'+_0x453f29['CLOUD_PROVIDER']+'\x20'),_0x1dcb3b[_0x27ae1c(0x10a)]=_0x1a1308['CLOUD_PROVIDER'];}catch(_0x4f90d7){_0x44663f[_0x27ae1c(0xb6)](_0x44663f[_0x27ae1c(0xe0)],_0x44663f['rNlrB'])?(_0x52acf1='Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20'+_0x4f90d7+':\x20'+_0x4f90d7['stack'],logger[_0x27ae1c(0xfd)](_0x52acf1),await _0x44663f[_0x27ae1c(0x14e)](reportToGalactusAndSendToEDS,_0x5919de,_0x4e7c3a,_0x52acf1,messageTypes['ERROR'],_0x44663f[_0x27ae1c(0x11e)],_0x44663f[_0x27ae1c(0xce)],_0x44663f[_0x27ae1c(0x103)]),process[_0x27ae1c(0x18c)](0x1)):_0x39b7e3[_0x27ae1c(0x18c)](0x1);}}function printResponse(_0x4d1cd2,_0x5ce494){const _0x2d7bcc=a17_0x5505b5,_0x37ca5c={};_0x37ca5c[_0x2d7bcc(0xe6)]=function(_0x31a6a3,_0x134857){return _0x31a6a3!==_0x134857;},_0x37ca5c[_0x2d7bcc(0x12e)]=_0x2d7bcc(0x117);const _0x5af10e=_0x37ca5c;logger['info']('['+_0x4d1cd2+_0x2d7bcc(0xd4)+_0x5ce494[_0x2d7bcc(0xca)]+'\x20data\x20:\x20'+_0x5ce494[_0x2d7bcc(0xea)]+_0x2d7bcc(0x179)+_0x5ce494['error']),_0x5ce494[_0x2d7bcc(0xfd)]&&(_0x5af10e[_0x2d7bcc(0xe6)](_0x5af10e[_0x2d7bcc(0x12e)],_0x5af10e[_0x2d7bcc(0x12e)])?_0x32a6ae[_0x2d7bcc(0xfb)](_0x2d7bcc(0xbc)+_0x51f65c['clusterName']+_0x2d7bcc(0x147)):logger['error'](_0x2d7bcc(0x101)+_0x5ce494[_0x2d7bcc(0xfd)][_0x2d7bcc(0x120)]));}async function generateReport(_0x5277f7,_0x33989c){const _0x436d10=a17_0x5505b5,_0x35f8ce={'pGFKy':function(_0x10eb90,_0x3340b2){return _0x10eb90+_0x3340b2;},'QnqNp':_0x436d10(0xde),'sLACn':_0x436d10(0x119),'RBbxA':function(_0x1f5521,_0x383c66){return _0x1f5521||_0x383c66;},'xjVZf':'N/A','BYmRP':_0x436d10(0xc0),'FTVhd':_0x436d10(0x16b),'nabcz':function(_0x49eb5c,_0x5086b1){return _0x49eb5c!=_0x5086b1;},'ubkfJ':_0x436d10(0x106),'DZnAn':'will\x20be\x20created','MRckc':function(_0x4aa987){return _0x4aa987();}};let _0x321d50=_0x436d10(0x1a3)+global_registry['cloudProvider']+_0x436d10(0x145);return _0x5277f7['forEach']((_0x5347bc,_0x1ec99f)=>{const _0x45f31a=_0x436d10,{header:_0x296e5f,response:_0x2b87ef}=_0x5347bc,{status:_0x12e17e,data:_0x44bdd9,error:_0x14a6d2}=_0x2b87ef;_0x321d50+=_0x296e5f+'\x20#'+_0x35f8ce[_0x45f31a(0xb5)](_0x1ec99f,0x1)+'\x0a',_0x321d50+=_0x45f31a(0x190)+(_0x12e17e?_0x35f8ce[_0x45f31a(0x11a)]:_0x35f8ce[_0x45f31a(0xc8)])+'\x0a',_0x321d50+='Message:\x20'+_0x35f8ce[_0x45f31a(0x15e)](_0x44bdd9,_0x35f8ce[_0x45f31a(0x180)])+'\x0a',_0x14a6d2&&(_0x321d50+=_0x35f8ce[_0x45f31a(0xc6)],_0x321d50+=_0x45f31a(0x186)+(_0x14a6d2['message']||_0x35f8ce[_0x45f31a(0x180)])+'\x0a',_0x321d50+=_0x45f31a(0xe4)+(_0x14a6d2[_0x45f31a(0x178)]||_0x35f8ce[_0x45f31a(0x180)])+'\x0a',_0x321d50+=_0x45f31a(0xd6)+(_0x14a6d2[_0x45f31a(0x120)]||_0x35f8ce['xjVZf'])+'\x0a'),_0x321d50+='\x0a\x0a';}),_0x321d50+=_0x35f8ce['FTVhd'],_0x35f8ce[_0x436d10(0x19f)](_0x33989c,null)?_0x321d50+=_0x436d10(0xc3)+global_registry[_0x436d10(0x1a9)]+'\x20'+(_0x33989c?_0x35f8ce[_0x436d10(0x17f)]:_0x35f8ce[_0x436d10(0x170)])+'\x0a\x0a':_0x321d50+=_0x436d10(0xc3)+global_registry['clusterName']+_0x436d10(0x128),_0x321d50+=_0x35f8ce['MRckc'](getSystemMetaData),_0x321d50;};exports['handler']=async function(_0x21864a){const _0x515491=a17_0x5505b5,_0x26bf1d={'VesBv':function(_0x11db13){return _0x11db13();},'pMIPk':_0x515491(0x126),'GGkKE':function(_0x2a8169,_0x195cbc,_0x30d628,_0x583a40,_0x15f3c7,_0x233e94,_0x4e334a,_0x1a7e1f){return _0x2a8169(_0x195cbc,_0x30d628,_0x583a40,_0x15f3c7,_0x233e94,_0x4e334a,_0x1a7e1f);},'SfCnA':_0x515491(0x195),'LOdKM':_0x515491(0x15c),'RTcVb':_0x515491(0xfd),'XKmqI':function(_0x4f7851,_0x361e4a,_0x5f59ee,_0x4a3ce9,_0x3859a9,_0x27c2ad,_0x513d69){return _0x4f7851(_0x361e4a,_0x5f59ee,_0x4a3ce9,_0x3859a9,_0x27c2ad,_0x513d69);},'enrvd':function(_0xe09c5d){return _0xe09c5d();},'Nshoh':_0x515491(0x181),'BTwnW':_0x515491(0x102),'AEazE':function(_0x17c827,_0xbdb97e,_0x111241){return _0x17c827(_0xbdb97e,_0x111241);},'hbJdM':function(_0x41b0bd,_0x39cb3e,_0x303d42){return _0x41b0bd(_0x39cb3e,_0x303d42);},'tGzxs':function(_0x36a0c8,_0x49b756,_0x4e1d4d,_0x144caf,_0x573f73,_0x1c2772,_0x3cffed){return _0x36a0c8(_0x49b756,_0x4e1d4d,_0x144caf,_0x573f73,_0x1c2772,_0x3cffed);},'qqrxT':_0x515491(0x143),'XeBTE':_0x515491(0x187),'mbhxu':_0x515491(0x13b),'upxlG':function(_0x144e11,_0x2724ce,_0x225f00){return _0x144e11(_0x2724ce,_0x225f00);},'AeUSt':_0x515491(0xbb),'hWRPS':_0x515491(0xd5),'PixsZ':function(_0xd3589e,_0x136328){return _0xd3589e(_0x136328);},'nseBR':_0x515491(0x164),'sLdVK':_0x515491(0xb3),'CDeJO':_0x515491(0x19b),'SIzSV':_0x515491(0x1aa),'GcgzN':_0x515491(0x1a7),'QEdyF':_0x515491(0x169),'jlAtL':function(_0xfd8cf1,_0x3d14a5,_0xa860b6){return _0xfd8cf1(_0x3d14a5,_0xa860b6);},'NwZKh':function(_0x1dc4af,_0xc18a30){return _0x1dc4af+_0xc18a30;},'DazNB':'utf-8','SWLtH':function(_0x5285a9,_0x357bfc,_0x29c188,_0x223143,_0x5f4c63,_0x2387c5,_0x30f2c0){return _0x5285a9(_0x357bfc,_0x29c188,_0x223143,_0x5f4c63,_0x2387c5,_0x30f2c0);},'Jzthr':'pre-check-failed'};let _0xb37e99,_0x3e2388;try{global_registry[_0x515491(0x140)]=_0x26bf1d[_0x515491(0x12b)](uuidv4);!fs[_0x515491(0x110)](_0x26bf1d[_0x515491(0x12b)](getCredentialsPath))&&(_0x3e2388=_0x26bf1d['pMIPk'],logger[_0x515491(0xfd)](_0x3e2388),await _0x26bf1d[_0x515491(0x12c)](reportToGalactusAndSendToEDS,_0x21864a,_0xb37e99,_0x3e2388,messageTypes[_0x515491(0x105)],_0x26bf1d[_0x515491(0xcb)],_0x26bf1d[_0x515491(0x155)],_0x26bf1d[_0x515491(0xcd)]),process[_0x515491(0x18c)](0x1));_0x26bf1d[_0x515491(0xf4)](sendInstrumentationEvent,_0x21864a,_0x26bf1d['SfCnA'],messageTypes[_0x515491(0xd0)],null,null,_0x21864a);const _0x4b7afc=JSON[_0x515491(0xef)](fs['readFileSync'](_0x26bf1d[_0x515491(0xd1)](getCredentialsPath)));global_registry[_0x515491(0x159)]=_0x4b7afc['Browserstack']['username'],global_registry[_0x515491(0x19e)]=_0x4b7afc[_0x515491(0x1ad)][_0x515491(0x15b)];const _0x4ab911=WS_ENDPOINT[_0x515491(0x152)](_0x26bf1d['Nshoh'],_0x4b7afc[_0x515491(0x1ad)][_0x515491(0x132)])[_0x515491(0x152)](_0x26bf1d[_0x515491(0x1ac)],_0x4b7afc['Browserstack'][_0x515491(0x15b)]),_0x2172cb={};_0x2172cb['WebSocket']=ws,_0x2172cb[_0x515491(0x148)]=0x36ee80,_0xb37e99=new ReconnectingWebSocket(_0x4ab911,[],_0x2172cb),global_registry[_0x515491(0xdf)]=_0x26bf1d[_0x515491(0x127)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x26bf1d[_0x515491(0xe9)](inputValidation,_0x21864a,_0xb37e99),logger[_0x515491(0xfb)](_0x515491(0x14b)+global_registry[_0x515491(0x10a)]+_0x515491(0x18d)+global_registry[_0x515491(0x197)]);let _0x3d42c5=await _0x26bf1d[_0x515491(0x173)](getCloudProviderObjectWithOutInit,global_registry[_0x515491(0x10a)],global_registry[_0x515491(0x1a9)],_0x26bf1d[_0x515491(0x192)],_0xb37e99,webSocketUtils,_0x21864a);const _0x209d5c=await _0x3d42c5[_0x515491(0xd9)]();_0x26bf1d['hbJdM'](printResponse,_0x26bf1d['XeBTE'],_0x209d5c),_0x3d42c5=await _0x3d42c5['init']();let _0x502630=![];try{_0x502630=await _0x3d42c5['isClusterPresent']();}catch(_0x2c06a6){const _0x372c23=_0x26bf1d[_0x515491(0xbd)]['split']('|');let _0xbb94fb=0x0;while(!![]){switch(_0x372c23[_0xbb94fb++]){case'0':await _0x26bf1d[_0x515491(0x12c)](reportToGalactusAndSendToEDS,_0x21864a,_0xb37e99,_0x3e2388,messageTypes[_0x515491(0x105)],_0x26bf1d[_0x515491(0xcb)],_0x515491(0x11f)+global_registry[_0x515491(0x10a)],_0x26bf1d[_0x515491(0xcd)]);continue;case'1':_0x3e2388+='\x0a'+JSON[_0x515491(0x138)](_0x2c06a6[_0x515491(0x120)]);continue;case'2':_0x3e2388=_0x515491(0x14a)+global_registry['clusterName']+'`\x20is\x20present\x20in\x20region\x20`'+global_registry[_0x515491(0x197)]+_0x515491(0x11d)+_0x2c06a6;continue;case'3':logger[_0x515491(0xfd)](_0x3e2388);continue;case'4':_0x502630=null;continue;}break;}}_0x502630&&logger['info'](_0x515491(0xbc)+global_registry['clusterName']+_0x515491(0x147));const _0x1bd129=await _0x3d42c5[_0x515491(0x1a0)]();_0x26bf1d[_0x515491(0x108)](printResponse,_0x26bf1d[_0x515491(0xd7)],_0x1bd129);const _0x4d407a=await _0x26bf1d[_0x515491(0x12b)](curlRequest);_0x26bf1d[_0x515491(0xe9)](printResponse,_0x26bf1d[_0x515491(0xf7)],_0x4d407a);const _0x1fa932=await _0x26bf1d[_0x515491(0x123)](isTlsSupported,_0x26bf1d['nseBR']);_0x26bf1d[_0x515491(0xe9)](printResponse,_0x26bf1d['sLdVK'],_0x1fa932);const _0x3b817f={};_0x3b817f[_0x515491(0x131)]=_0x26bf1d[_0x515491(0x160)],_0x3b817f['response']=_0x209d5c;const _0x312906={};_0x312906[_0x515491(0x131)]=_0x26bf1d[_0x515491(0xf5)],_0x312906[_0x515491(0x1a5)]=_0x1bd129;const _0x71b8b0={};_0x71b8b0[_0x515491(0x131)]=_0x26bf1d[_0x515491(0xdc)],_0x71b8b0['response']=_0x4d407a;const _0x2fef20={};_0x2fef20[_0x515491(0x131)]=_0x26bf1d['QEdyF'],_0x2fef20[_0x515491(0x1a5)]=_0x1fa932;const _0x3db60d=[_0x3b817f,_0x312906,_0x71b8b0,_0x2fef20],_0x584305=await _0x26bf1d[_0x515491(0x18e)](generateReport,_0x3db60d,_0x502630),_0x34d152=new Date(),_0x125449=_0x34d152[_0x515491(0xc1)]()+'_'+_0x26bf1d['NwZKh'](_0x34d152[_0x515491(0x15f)](),0x1)+'_'+_0x34d152[_0x515491(0x10e)]()+'_'+_0x34d152[_0x515491(0x172)]()+'_'+_0x34d152[_0x515491(0xc7)](),_0x64a2b9='log/report_'+_0x125449+'.txt';fs[_0x515491(0xf0)](_0x64a2b9,_0x584305,_0x26bf1d[_0x515491(0x156)]),logger[_0x515491(0xfb)](_0x515491(0x13c)+_0x64a2b9),process[_0x515491(0x18c)](0x0);}catch(_0x5b275c){let _0x2bea85=_0x515491(0x136)+_0x5b275c+'\x20';logger['error'](_0x2bea85),_0x2bea85+='\x0a'+JSON[_0x515491(0x138)](_0x5b275c[_0x515491(0x120)]),logger[_0x515491(0x112)](_0x515491(0x116)+_0x5b275c[_0x515491(0x120)]);if(_0xb37e99){const _0x2c93bb={};_0x2c93bb['type']=WS_EVENTS[_0x515491(0xc5)],_0x2c93bb[_0x515491(0x16d)]=_0x2bea85,webSocketUtils['sendEventToBackend'](_0xb37e99,_0x2c93bb,_0x26bf1d['RTcVb'],!![]);}await webSocketUtils[_0x515491(0x144)](0x7d0);const _0xa12733={};_0xa12733[_0x515491(0xfd)]=_0x2bea85,await _0x26bf1d['SWLtH'](sendInstrumentationEvent,_0x21864a,_0x26bf1d['SfCnA'],messageTypes['ERROR'],_0x26bf1d[_0x515491(0x162)],_0xa12733,_0x21864a),process[_0x515491(0x18c)](0x1);}};function a17_0x12d4(){const _0x23ed31=['hbJdM','data','PCuWi','desc','shvpv','aIIWV','parse','writeFileSync','../../config/logger','Znirc','Missing\x20required\x20arguments:\x20','XKmqI','SIzSV','KeavP','hWRPS','FCPVa','uaaHO','VhQre','info','dGpcb','error','2359408pMlcvQ','Setting\x20cloud\x20provider\x20as\x20','pre-check-grid-profile-empty','error\x20stack\x20:\x20','<PasswordPlaceholder>','dtNUl','uuid','ERROR','is\x20already\x20present','mpJci','upxlG','argv','cloudProvider','vrrEn','CTwoH','grid','getUTCDate','eUXse','existsSync','TVAnu','debug','aFqFh','headers','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','stack\x20trace\x20','xPdyx','3096640jQwRro','Failure','QnqNp','jYUDJ','BIUvO','`\x20,error\x20:\x20','dubpa','cluster-check-failed-','stack','PDweJ','usage','PixsZ','aCEuZ','rNYir','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AEazE','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','BXXhQ','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','VesBv','GGkKE','TeesU','qFfIV','ulGIy','cluster-name','header','username','vCexu','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','NVbPb','Failed\x20in\x20pre-check!\x20Error:\x20','sendEventToBackend','stringify','gridProfile','HlWSC','2|4|3|1|0','Report\x20saved\x20in\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','/packages/cli/get-all-grid-profiles','4062FhliHc','requestId','JPWeR','includes','dummy-grid','delay','\x20===\x0a\x0a','Message:\x20','`\x20already\x20exists','connectionTimeout','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','unable\x20to\x20verify\x20if\x20cluster\x20`','Pre-check\x20running\x20for\x20Cloud\x20-\x20','4843611BjztoP','bPwQG','TNQgO','../../utils/webSocketUtils','toLowerCase','iedBw','replace','rOpCR','TTzrZ','LOdKM','DazNB','jyvKp','rxObB','bstackUsername','wqJNq','password','credential-not-found','method','RBbxA','getUTCMonth','CDeJO','XvuxJ','Jzthr','hXJNs','TLSv1_2_client_method','help','pre-check-cluster-args-not-passed','reconnecting-websocket','../../cloudproviders/utils','SSL\x20Configured','mfpMm','Cluster\x20details\x0a-----------------------\x0a','ZpdYp','message','11195wxeiaM','find','DZnAn','QIqVS','getUTCHours','tGzxs','cloud-provider-not-supported','rFiFD','type','19633416WLMXDZ','code','\x20error\x20:\x20','description','PKLUx','string','11943288KEtGuR','EwDNU','ubkfJ','xjVZf','<UsernamePlaceholder>','moVKh','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','CLOUD_PROVIDER','VLrbb','\x20\x20Message:\x20','toolInstalledResp','gnOAE','grid-profile','got','builder','exit','\x20region\x20-\x20','jlAtL','\x20data\x20:\x20','Status:\x20','lnKDE','qqrxT','701803JIFxBd','N/A','pre-check-grid-called','gnbas','clusterRegion','cloud-provider','wlHcP','sWNQl','Tool\x20Installed','YOPKu','name','bstackAccesskey','nabcz','checkAccess','join','WSwqA','===\x20Precheck\x20Report\x20-\x20','WVQNK','response','Vrxnk','Whitelisted\x20browserstack','region','clusterName','User\x20Access','UWbic','BTwnW','Browserstack','YSvWr','../../config/constants','grid\x20profile\x20flow\x20','DgqQK','isTls1_2_SUPPORTED','PRmBv','pGFKy','lgUbz','klRDE','EIrjM','.\x20Please\x20provide\x20all\x20required\x20arguments.','AnGTH','accessResp','Cluster\x20`','mbhxu','zePHN','TdbWR','Error\x20Details:\x0a','getUTCFullYear','Hmvgt','Cluster\x20','HfyhI','LOG','BYmRP','getUTCMinutes','sLACn','cQljO','status','SfCnA','RZjxx','RTcVb','hwwiE','qDymd','INFO','enrvd','../../utils/instrumentationUtils','GET',']\x20status\x20:\x20','isTrialGridAccessible','\x20\x20Stack:\x20','AeUSt','options','isCliToolInstalled','ZLssy','push','GcgzN','pre_check','Success','authHeader','ipPXC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','wzbkY','QmKnm','\x20\x20Code:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','flwxt','zSQjs','KbGst'];a17_0x12d4=function(){return _0x23ed31;};return a17_0x12d4();}
1
+ const a17_0x5996fd=a17_0x4335;(function(_0x420ee7,_0x275266){const _0x2aaef5=a17_0x4335,_0x1e0c3b=_0x420ee7();while(!![]){try{const _0x45b6d3=parseInt(_0x2aaef5(0x268))/0x1+parseInt(_0x2aaef5(0x2a7))/0x2*(-parseInt(_0x2aaef5(0x23d))/0x3)+parseInt(_0x2aaef5(0x2b7))/0x4*(parseInt(_0x2aaef5(0x24d))/0x5)+-parseInt(_0x2aaef5(0x2c7))/0x6+parseInt(_0x2aaef5(0x28d))/0x7*(-parseInt(_0x2aaef5(0x212))/0x8)+-parseInt(_0x2aaef5(0x284))/0x9*(-parseInt(_0x2aaef5(0x243))/0xa)+parseInt(_0x2aaef5(0x2b8))/0xb*(parseInt(_0x2aaef5(0x1f1))/0xc);if(_0x45b6d3===_0x275266)break;else _0x1e0c3b['push'](_0x1e0c3b['shift']());}catch(_0x4a0df7){_0x1e0c3b['push'](_0x1e0c3b['shift']());}}}(a17_0x3e65,0xeeec8));const fs=require('fs'),ws=require('ws'),got=require(a17_0x5996fd(0x242)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x5996fd(0x2c4)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x5996fd(0x28b)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x5996fd(0x248)),{getCloudProviderObjectWithOutInit}=require(a17_0x5996fd(0x2b0)),webSocketUtils=require(a17_0x5996fd(0x2c0)),{sendInstrumentationEvent}=require(a17_0x5996fd(0x269));exports[a17_0x5996fd(0x1ee)]=a17_0x5996fd(0x1e4),exports['desc']=a17_0x5996fd(0x2bd),exports[a17_0x5996fd(0x25b)]=function(_0x46678a){const _0x5e5a32=a17_0x5996fd,_0x2c8fa4={};_0x2c8fa4['iPmWL']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x2c8fa4['Nmwrz']=_0x5e5a32(0x280),_0x2c8fa4[_0x5e5a32(0x1f7)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2c8fa4[_0x5e5a32(0x295)]=_0x5e5a32(0x276),_0x2c8fa4[_0x5e5a32(0x229)]=_0x5e5a32(0x275),_0x2c8fa4[_0x5e5a32(0x272)]=_0x5e5a32(0x24c);const _0x33f156=_0x2c8fa4,_0x5adf21={};_0x5adf21[_0x5e5a32(0x27d)]=_0x33f156['iPmWL'],_0x5adf21['type']=_0x33f156['Nmwrz'];const _0x15a936={};_0x15a936[_0x5e5a32(0x27d)]=_0x33f156['EhjsU'],_0x15a936[_0x5e5a32(0x26e)]=_0x33f156[_0x5e5a32(0x206)];const _0x35ab2f={};_0x35ab2f['description']=_0x33f156['AFPZo'],_0x35ab2f[_0x5e5a32(0x26e)]=_0x33f156[_0x5e5a32(0x206)];const _0x5d2261={};_0x5d2261[_0x5e5a32(0x27d)]=_0x33f156[_0x5e5a32(0x229)],_0x5d2261[_0x5e5a32(0x26e)]=_0x33f156['Nmwrz'];const _0x517424={};return _0x517424[_0x5e5a32(0x2b3)]=_0x5adf21,_0x517424[_0x5e5a32(0x2a1)]=_0x15a936,_0x517424[_0x5e5a32(0x1ea)]=_0x35ab2f,_0x517424[_0x5e5a32(0x209)]=_0x5d2261,_0x46678a[_0x5e5a32(0x29c)](HELP_HEADER_MESSAGE[_0x5e5a32(0x27b)])[_0x5e5a32(0x288)](HELP_FOOTER_MESSAGE)[_0x5e5a32(0x255)](_0x517424)[_0x5e5a32(0x24c)](_0x33f156[_0x5e5a32(0x272)])['argv'];};async function inputValidation(_0x34811d,_0x4d9411){const _0x538eee=a17_0x5996fd,_0x25f7e1={'StIag':_0x538eee(0x1ef),'ylfpJ':_0x538eee(0x297),'cMfbO':_0x538eee(0x27e),'JUFIc':_0x538eee(0x1ea),'pQIYt':_0x538eee(0x1f9),'WFsqS':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hsQSB':_0x538eee(0x280),'RzSJu':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','CBptp':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','BfmLh':_0x538eee(0x275),'SPzJv':'help','jswWk':_0x538eee(0x239),'NgKKa':'will\x20be\x20created','dHNOL':'cluster-name','wgygW':function(_0x13f560,_0x14a4fa){return _0x13f560+_0x14a4fa;},'pswyG':_0x538eee(0x2c1),'HbFTL':_0x538eee(0x1eb),'nYNRq':function(_0x30baf9,_0x4009c9){return _0x30baf9||_0x4009c9;},'QkkJn':_0x538eee(0x2a1),'Cxakw':function(_0x14d7d5,_0x50065c){return _0x14d7d5===_0x50065c;},'crnuS':_0x538eee(0x273),'QhKnE':function(_0x5d5b0c,_0x108cf8){return _0x5d5b0c===_0x108cf8;},'aTngo':_0x538eee(0x1f3),'xgXCC':'zvyxY','tutnb':function(_0x51ae78,_0x560b39){return _0x51ae78!==_0x560b39;},'uHzxy':_0x538eee(0x2c8),'pMmQL':_0x538eee(0x257),'EYLAM':function(_0x243cfd,_0x503692){return _0x243cfd===_0x503692;},'DKXzR':'EwURq','ytDsu':function(_0x2d9ad0,_0x2da8eb){return _0x2d9ad0>_0x2da8eb;},'TQFvM':'dmwCw','rkHHy':_0x538eee(0x2ba),'zpBCA':function(_0x2779c8,_0x4f3a9a,_0x2f9112,_0x9c4967,_0x30f7bc,_0x9136ff,_0x3656ed,_0x213244){return _0x2779c8(_0x4f3a9a,_0x2f9112,_0x9c4967,_0x30f7bc,_0x9136ff,_0x3656ed,_0x213244);},'cuUkn':_0x538eee(0x215),'uzePI':_0x538eee(0x20c),'UGyOD':_0x538eee(0x28f),'LQhVs':'pGtiV','Ghaqo':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ArOva':_0x538eee(0x1e3),'uAGoR':_0x538eee(0x2ab),'WvWGJ':function(_0x2b969a,_0x3462a2){return _0x2b969a!==_0x3462a2;},'EutuX':_0x538eee(0x251),'OIQXh':_0x538eee(0x2ca),'hGzMI':_0x538eee(0x216),'ZUdUr':function(_0x23d4d7,_0x474469,_0x1ac871){return _0x23d4d7(_0x474469,_0x1ac871);},'aNpJY':function(_0x39482e,_0x26d3fe,_0x4c1b43,_0x1b2393,_0x5f13e0,_0x995a22){return _0x39482e(_0x26d3fe,_0x4c1b43,_0x1b2393,_0x5f13e0,_0x995a22);},'pEdmx':_0x538eee(0x26b),'IwTQQ':_0x538eee(0x209),'mnNTj':function(_0x32119e,_0x3f7d87){return _0x32119e!==_0x3f7d87;},'mugGO':'QUBMe','quGTk':function(_0x14891f,_0x31733b){return _0x14891f(_0x31733b);},'kPsbL':function(_0x3e5a01,_0x436907){return _0x3e5a01===_0x436907;},'TXGzj':'vvkfo','TqsbH':_0x538eee(0x20f),'RKjVd':_0x538eee(0x230),'bWGqZ':_0x538eee(0x27c),'bbvzz':function(_0x3f407c,_0x273de5){return _0x3f407c===_0x273de5;},'DoQEh':'gullr','YWQbr':_0x538eee(0x287),'afKAc':_0x538eee(0x20e),'YfmZF':function(_0x4415ad,_0xaffa88){return _0x4415ad!==_0xaffa88;},'ToEyB':_0x538eee(0x254),'jlnMH':'xQvoD','yOVKb':_0x538eee(0x224)};let _0x345592;try{if(_0x25f7e1[_0x538eee(0x20b)](_0x25f7e1[_0x538eee(0x25d)],_0x25f7e1[_0x538eee(0x25d)])){if(_0x34811d['clusterName']||_0x34811d[_0x538eee(0x28e)]||_0x34811d['region']){if(_0x25f7e1[_0x538eee(0x1ec)](_0x25f7e1[_0x538eee(0x234)],_0x25f7e1[_0x538eee(0x2c5)]))_0x4740c0[_0x538eee(0x219)](0x1);else{const _0x458bd1=[];!_0x34811d[_0x538eee(0x291)]&&(_0x25f7e1[_0x538eee(0x1e1)](_0x25f7e1['uHzxy'],_0x25f7e1[_0x538eee(0x24b)])?(_0x469293[_0x538eee(0x226)](_0x538eee(0x240)+_0x1e9c4c['CLOUD_PROVIDER']+'\x20'),_0x5122f0[_0x538eee(0x28e)]=_0x4c47bc['CLOUD_PROVIDER']):_0x458bd1['push'](_0x25f7e1['dHNOL']));;if(!_0x34811d[_0x538eee(0x28e)]){if(_0x25f7e1['tutnb'](_0x25f7e1['pMmQL'],_0x25f7e1[_0x538eee(0x1d5)])){const _0x4b7e9b={};_0x4b7e9b['type']=_0x28bd57[_0x538eee(0x22f)],_0x4b7e9b[_0x538eee(0x267)]=_0x2116df,_0x58f914[_0x538eee(0x23b)](_0x4bd4e7,_0x4b7e9b,_0x25f7e1[_0x538eee(0x29a)],!![]);}else _0x458bd1['push'](_0x25f7e1[_0x538eee(0x1e8)]);};!_0x34811d[_0x538eee(0x1ea)]&&(_0x25f7e1['EYLAM'](_0x25f7e1['DKXzR'],_0x25f7e1[_0x538eee(0x266)])?_0x458bd1[_0x538eee(0x2c3)](_0x25f7e1['JUFIc']):_0x42d7a7[_0x538eee(0x226)](_0x538eee(0x221)+_0x2b4d15[_0x538eee(0x291)]+_0x538eee(0x244)));;_0x25f7e1['ytDsu'](_0x458bd1[_0x538eee(0x2cc)],0x0)&&(_0x25f7e1[_0x538eee(0x1e1)](_0x25f7e1[_0x538eee(0x2bf)],_0x25f7e1[_0x538eee(0x237)])?(_0x345592=_0x538eee(0x25c)+_0x458bd1[_0x538eee(0x1fc)](',\x20')+_0x538eee(0x256),await _0x25f7e1[_0x538eee(0x29f)](reportToGalactusAndSendToEDS,_0x34811d,_0x4d9411,_0x345592,messageTypes[_0x538eee(0x1d9)],_0x25f7e1[_0x538eee(0x278)],_0x25f7e1['uzePI'],_0x25f7e1[_0x538eee(0x29a)]),logger['error'](_0x345592),process['exit'](0x1)):(_0x42a0b7+=_0x25f7e1['ylfpJ'],_0x43a64a+=_0x538eee(0x2aa)+(_0x354094[_0x538eee(0x267)]||_0x25f7e1[_0x538eee(0x2b5)])+'\x0a',_0x59aa70+='\x20\x20Code:\x20'+(_0x46e7f0[_0x538eee(0x222)]||_0x25f7e1[_0x538eee(0x2b5)])+'\x0a',_0x1634c1+=_0x538eee(0x1fa)+(_0x3c8ceb[_0x538eee(0x24f)]||_0x25f7e1['cMfbO'])+'\x0a')),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x34811d['cloudProvider'][_0x538eee(0x1e7)]())&&(_0x25f7e1[_0x538eee(0x1ec)](_0x25f7e1['UGyOD'],_0x25f7e1['LQhVs'])?(_0x16e9a5['info']('['+_0x161893+']\x20status\x20:\x20'+_0x4d75f8[_0x538eee(0x264)]+_0x538eee(0x210)+_0x124799[_0x538eee(0x22d)]+_0x538eee(0x2b6)+_0x42ec75[_0x538eee(0x1ef)]),_0xc63653['error']&&_0x3b9c3c[_0x538eee(0x1ef)](_0x538eee(0x1d8)+_0x24647f['error'][_0x538eee(0x24f)])):(_0x345592=_0x25f7e1[_0x538eee(0x1dc)],await _0x25f7e1[_0x538eee(0x29f)](reportToGalactusAndSendToEDS,_0x34811d,_0x4d9411,_0x345592,messageTypes[_0x538eee(0x1d9)],_0x25f7e1[_0x538eee(0x278)],_0x25f7e1[_0x538eee(0x296)],_0x25f7e1[_0x538eee(0x29a)]),logger['error'](_0x345592),!_0x34811d[_0x538eee(0x28e)]&&(_0x25f7e1[_0x538eee(0x262)](_0x25f7e1[_0x538eee(0x265)],_0x25f7e1[_0x538eee(0x265)])?(logger[_0x538eee(0x226)](_0x538eee(0x240)+DEFAULT_CLUSTER_DETAILS[_0x538eee(0x205)]+'\x20'),_0x34811d[_0x538eee(0x28e)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']):_0x5e88a8[_0x538eee(0x2c3)](_0x25f7e1[_0x538eee(0x207)])))),global_registry[_0x538eee(0x291)]=_0x34811d[_0x538eee(0x291)],global_registry[_0x538eee(0x28e)]=_0x34811d[_0x538eee(0x28e)],global_registry[_0x538eee(0x271)]=_0x34811d[_0x538eee(0x1ea)];}}else{if(_0x34811d[_0x538eee(0x227)]){if(_0x25f7e1[_0x538eee(0x2ad)](_0x25f7e1[_0x538eee(0x2a0)],_0x25f7e1[_0x538eee(0x1ed)])){global_registry['gridProfile']=_0x34811d[_0x538eee(0x227)],logger[_0x538eee(0x218)](_0x538eee(0x2cb)+_0x34811d[_0x538eee(0x227)]);const _0xa173a0=_0x538eee(0x298)+AG_API_URL+_0x538eee(0x2a4),_0x1002c5={};_0x1002c5[_0x538eee(0x260)]=_0x25f7e1['hGzMI'],_0x1002c5[_0x538eee(0x24a)]=global_registry['authHeader'],_0x1002c5[_0x538eee(0x1d4)]=![];const _0x4a50c6=_0x1002c5,_0xd7b20d=await _0x25f7e1[_0x538eee(0x285)](got,_0xa173a0,_0x4a50c6),_0xe102b8=await _0x25f7e1[_0x538eee(0x1e6)](responseValidation,_0xd7b20d,_0x25f7e1['pEdmx'],_0x25f7e1['IwTQQ'],_0x34811d,_0x4d9411);let _0xfe6f32={};if(_0x25f7e1[_0x538eee(0x20b)](_0xe102b8,0xc8)){if(_0x25f7e1[_0x538eee(0x28c)](_0x25f7e1[_0x538eee(0x2a9)],_0x25f7e1[_0x538eee(0x2a9)]))_0x159032+=_0x538eee(0x1fb)+_0xea9016[_0x538eee(0x291)]+_0x538eee(0x2bb);else{const _0x49cb42=JSON[_0x538eee(0x2b9)](_0xd7b20d[_0x538eee(0x27f)]),_0x501eff=_0x49cb42[_0x538eee(0x2b4)](_0xd663d0=>_0xd663d0[_0x538eee(0x21c)]===_0x34811d['gridProfile'])||null;if(_0x25f7e1[_0x538eee(0x247)](isUndefined,_0x501eff))_0x25f7e1[_0x538eee(0x25f)](_0x25f7e1['TXGzj'],_0x25f7e1[_0x538eee(0x211)])?(_0x4bd0b3[_0x538eee(0x1ef)](_0x25f7e1[_0x538eee(0x1e9)]),_0x3c5671[_0x538eee(0x219)](0x1)):(_0x345592=_0x538eee(0x241)+_0x34811d[_0x538eee(0x227)]+_0x538eee(0x2c6),await _0x25f7e1[_0x538eee(0x29f)](reportToGalactusAndSendToEDS,_0x34811d,_0x4d9411,_0x345592,messageTypes[_0x538eee(0x1d9)],_0x25f7e1[_0x538eee(0x278)],_0x25f7e1['RKjVd'],_0x25f7e1[_0x538eee(0x29a)]),logger['error'](_0x345592),process['exit'](0x1));else{if(_0x25f7e1[_0x538eee(0x1ec)](_0x25f7e1[_0x538eee(0x1de)],_0x25f7e1[_0x538eee(0x1de)]))_0xfe6f32=_0x501eff;else{const _0xaf0485={};_0xaf0485[_0x538eee(0x27d)]=_0x25f7e1[_0x538eee(0x2a5)],_0xaf0485[_0x538eee(0x26e)]=_0x25f7e1[_0x538eee(0x283)];const _0x2ad1e0={};_0x2ad1e0[_0x538eee(0x27d)]=_0x25f7e1[_0x538eee(0x26a)],_0x2ad1e0[_0x538eee(0x26e)]=_0x25f7e1[_0x538eee(0x283)];const _0x5a8d60={};_0x5a8d60[_0x538eee(0x27d)]=_0x25f7e1['CBptp'],_0x5a8d60['type']=_0x25f7e1[_0x538eee(0x283)];const _0x22a7e0={};_0x22a7e0[_0x538eee(0x27d)]=_0x25f7e1['BfmLh'],_0x22a7e0['type']=_0x25f7e1[_0x538eee(0x283)];const _0x431f97={};return _0x431f97[_0x538eee(0x2b3)]=_0xaf0485,_0x431f97[_0x538eee(0x2a1)]=_0x2ad1e0,_0x431f97['region']=_0x5a8d60,_0x431f97[_0x538eee(0x209)]=_0x22a7e0,_0x1e179a['usage'](_0x4facd6[_0x538eee(0x27b)])[_0x538eee(0x288)](_0x2da7a7)['options'](_0x431f97)[_0x538eee(0x24c)](_0x25f7e1['SPzJv'])[_0x538eee(0x279)];}}}}else _0x25f7e1['bbvzz'](_0x25f7e1[_0x538eee(0x2cd)],_0x25f7e1[_0x538eee(0x214)])?_0x59aedd+=_0x538eee(0x1fb)+_0x3a7596[_0x538eee(0x291)]+'\x20'+(_0x583970?_0x25f7e1['jswWk']:_0x25f7e1[_0x538eee(0x26d)])+'\x0a\x0a':process[_0x538eee(0x219)](0x1);const _0x34e867={};_0x34e867[_0x538eee(0x26e)]=WS_EVENTS['LOG'],_0x34e867[_0x538eee(0x267)]=_0x25f7e1[_0x538eee(0x1fd)],webSocketUtils[_0x538eee(0x23b)](_0x4d9411,_0x34e867),global_registry[_0x538eee(0x28e)]=_0xfe6f32[_0x538eee(0x28e)],global_registry[_0x538eee(0x271)]=_0xfe6f32[_0x538eee(0x1ea)],global_registry[_0x538eee(0x291)]=_0xfe6f32['clusterName'];}else _0x3da6a8[_0x538eee(0x2c3)](_0x25f7e1[_0x538eee(0x2ae)]);}else _0x25f7e1[_0x538eee(0x20d)](_0x25f7e1[_0x538eee(0x24e)],_0x25f7e1[_0x538eee(0x281)])?(logger[_0x538eee(0x1ef)](_0x25f7e1['pQIYt']),process[_0x538eee(0x219)](0x1)):_0xcbc81d['error']('error\x20stack\x20:\x20'+_0xbe31d0[_0x538eee(0x1ef)][_0x538eee(0x24f)]);}}else{const {header:_0x4df4d1,response:_0x5e3cfd}=_0x417ec3,{status:_0x26c480,data:_0x19edfb,error:_0x420cb9}=_0x5e3cfd;_0x1aa47a+=_0x4df4d1+'\x20#'+_0x25f7e1[_0x538eee(0x238)](_0x1fe91c,0x1)+'\x0a',_0x190f67+=_0x538eee(0x231)+(_0x26c480?_0x25f7e1[_0x538eee(0x23c)]:_0x25f7e1['HbFTL'])+'\x0a',_0x2c2ab0+=_0x538eee(0x292)+_0x25f7e1['nYNRq'](_0x19edfb,_0x25f7e1[_0x538eee(0x2b5)])+'\x0a',_0x420cb9&&(_0x1848ac+=_0x25f7e1[_0x538eee(0x29d)],_0x5fc2d8+=_0x538eee(0x2aa)+(_0x420cb9['message']||_0x25f7e1[_0x538eee(0x2b5)])+'\x0a',_0x3caf53+=_0x538eee(0x204)+(_0x420cb9[_0x538eee(0x222)]||_0x25f7e1[_0x538eee(0x2b5)])+'\x0a',_0x5310a4+=_0x538eee(0x1fa)+(_0x420cb9[_0x538eee(0x24f)]||_0x25f7e1[_0x538eee(0x2b5)])+'\x0a'),_0x2a4543+='\x0a\x0a';}}catch(_0x1dffef){_0x25f7e1[_0x538eee(0x258)](_0x25f7e1['yOVKb'],_0x25f7e1[_0x538eee(0x1e5)])?(_0x345592=_0x538eee(0x282)+_0x1dffef+':\x20'+_0x1dffef['stack'],logger[_0x538eee(0x1ef)](_0x345592),await _0x25f7e1[_0x538eee(0x29f)](reportToGalactusAndSendToEDS,_0x34811d,_0x4d9411,_0x345592,messageTypes[_0x538eee(0x1d9)],_0x25f7e1[_0x538eee(0x278)],_0x25f7e1[_0x538eee(0x296)],_0x25f7e1['StIag']),process[_0x538eee(0x219)](0x1)):_0x2247fa[_0x538eee(0x2c3)](_0x25f7e1[_0x538eee(0x1e8)]);}}function a17_0x4335(_0x55233c,_0x46a72f){const _0x3e65de=a17_0x3e65();return a17_0x4335=function(_0x433518,_0x85abee){_0x433518=_0x433518-0x1d4;let _0x576bc5=_0x3e65de[_0x433518];return _0x576bc5;},a17_0x4335(_0x55233c,_0x46a72f);}function printResponse(_0xb5717f,_0x43da8d){const _0x5e5904=a17_0x5996fd,_0x2680e0={};_0x2680e0[_0x5e5904(0x249)]=function(_0x2986d6,_0x32dcde){return _0x2986d6===_0x32dcde;},_0x2680e0[_0x5e5904(0x274)]=_0x5e5904(0x250);const _0x184427=_0x2680e0;logger[_0x5e5904(0x226)]('['+_0xb5717f+_0x5e5904(0x286)+_0x43da8d[_0x5e5904(0x264)]+'\x20data\x20:\x20'+_0x43da8d[_0x5e5904(0x22d)]+_0x5e5904(0x2b6)+_0x43da8d[_0x5e5904(0x1ef)]),_0x43da8d['error']&&(_0x184427[_0x5e5904(0x249)](_0x184427[_0x5e5904(0x274)],_0x184427[_0x5e5904(0x274)])?logger['error']('error\x20stack\x20:\x20'+_0x43da8d[_0x5e5904(0x1ef)][_0x5e5904(0x24f)]):_0x1b06ec=_0x2cfc65);}function a17_0x3e65(){const _0x94ce6d=['User\x20Access','/packages/cli/get-all-grid-profiles','WFsqS','<UsernamePlaceholder>','3554BKBdBl','getUTCDate','mugGO','\x20\x20Message:\x20','GoleW','EgHNx','WvWGJ','dHNOL','getUTCFullYear','../../cloudproviders/utils','init','kBSuN','cluster-name','find','cMfbO','\x20error\x20:\x20','362496xzxbuq','688413kuVHXH','parse','LmwLh','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','QnrtG','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','KAcSw','TQFvM','../../utils/webSocketUtils','Success','Browserstack','push','reconnecting-websocket','xgXCC','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','7320432OFhdyB','tqVen','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','TKCWH','grid\x20profile\x20flow\x20','length','DoQEh','Tool\x20Installed','isTls1_2_SUPPORTED','aHsrw','getUTCHours','throwHttpErrors','pMmQL','gXjtS','existsSync','error\x20stack\x20:\x20','ERROR','authHeader','CxOyk','Ghaqo','OZXDn','bWGqZ','username','hzXIF','tutnb','mutsM','cloud-provider-not-supported','grid','yOVKb','aNpJY','toLowerCase','QkkJn','pQIYt','region','Failure','QhKnE','OIQXh','command','error','SSL\x20Configured','324Hlxrzn','writeFileSync','EbFkp','LvqQz','DshWA','.txt','EhjsU','unable\x20to\x20verify\x20if\x20cluster\x20`','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','\x20\x20Stack:\x20','Cluster\x20','join','afKAc','leScC','VFAKK','cfbLB','uOGeg','zcMLt','isTrialGridAccessible','\x20\x20Code:\x20','CLOUD_PROVIDER','Nmwrz','JUFIc','isClusterPresent','grid-profile','rWQeL','Cxakw','pre-check-cluster-args-not-passed','YfmZF','Grid\x20profile\x20fetched\x20for\x20pre-check','QZMWf','\x20data\x20:\x20','TqsbH','313008Cxawhg','<PasswordPlaceholder>','YWQbr','pre-check-grid-called','GET','header','debug','exit','2|3|0|4|1','INFO','name','yPDGT','toolInstalledResp','Pre-check\x20running\x20for\x20Cloud\x20-\x20','Report\x20saved\x20in\x20','Cluster\x20`','code','response','cUERA','\x20===\x0a\x0a','info','gridProfile','`\x20is\x20present\x20in\x20region\x20`','pCZUZ','lTTBL','aUHaC','YduTw','data','eCXyO','LOG','pre-check-grid-profile-empty','Status:\x20','accessResp','stringify','aTngo','ZZgti','getUTCMonth','rkHHy','wgygW','is\x20already\x20present','split','sendEventToBackend','pswyG','2658SFSLWy','Fedok','password','Setting\x20cloud\x20provider\x20as\x20','Invalid\x20input.\x20grid\x20profiles:\x20','got','220siHkqc','`\x20already\x20exists','Whitelisted\x20browserstack','DVnkD','quGTk','../../config/constants','QQKGh','headers','uHzxy','help','65RsKPSb','ToEyB','stack','JQxoh','LAfGL','kAAFL','will\x20be\x20created','lmffw','options','.\x20Please\x20provide\x20all\x20required\x20arguments.','EivVf','bbvzz','\x20region\x20-\x20','log/report_','builder','Missing\x20required\x20arguments:\x20','crnuS','bstackAccesskey','kPsbL','method','TLSv1_2_client_method','EYLAM','credential-not-found','status','uAGoR','DKXzR','message','203095SQoxQU','../../utils/instrumentationUtils','RzSJu','pre-check','readFileSync','NgKKa','type','Failed\x20in\x20pre-check!\x20Error:\x20','delay','clusterRegion','QrprM','NmmqV','WTgMv','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','JIbUG','cuUkn','argv','bstackUsername','pre_check','ekKZk','description','N/A','body','string','jlnMH','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','hsQSB','703413tFpGnI','ZUdUr',']\x20status\x20:\x20','kelfD','epilogue','dhGYX','isCliToolInstalled','../../config/logger','mnNTj','182dUBguj','cloudProvider','DpITo','pCDSI','clusterName','Message:\x20','connectionTimeout','checkAccess','AFPZo','ArOva','Error\x20Details:\x0a','https://','XTCXh','StIag','replace','usage','ylfpJ','handler','zpBCA','EutuX','cloud-provider','===\x20Precheck\x20Report\x20-\x20'];a17_0x3e65=function(){return _0x94ce6d;};return a17_0x3e65();}async function generateReport(_0x39ef38,_0x545045){const _0x5c31a0=a17_0x5996fd,_0x26e6c2={'gXjtS':function(_0x5dff70,_0xcdb18a){return _0x5dff70+_0xcdb18a;},'aUHaC':_0x5c31a0(0x2c1),'ZqtYw':_0x5c31a0(0x1eb),'mutsM':function(_0x111928,_0x2a91d1){return _0x111928||_0x2a91d1;},'DshWA':_0x5c31a0(0x27e),'dhGYX':_0x5c31a0(0x297),'eCXyO':'Cluster\x20details\x0a-----------------------\x0a','nkCQc':function(_0x49a278,_0xc74f18){return _0x49a278!=_0xc74f18;},'puoko':'is\x20already\x20present','yPDGT':_0x5c31a0(0x253),'DVnkD':function(_0x5839c4){return _0x5839c4();}};let _0x2fe1b1=_0x5c31a0(0x2a2)+global_registry['cloudProvider']+_0x5c31a0(0x225);return _0x39ef38['forEach']((_0x4f5a81,_0x213f0f)=>{const _0xb9c392=_0x5c31a0,{header:_0x2b233e,response:_0x25c778}=_0x4f5a81,{status:_0x117d61,data:_0x51166d,error:_0xf32f31}=_0x25c778;_0x2fe1b1+=_0x2b233e+'\x20#'+_0x26e6c2[_0xb9c392(0x1d6)](_0x213f0f,0x1)+'\x0a',_0x2fe1b1+='Status:\x20'+(_0x117d61?_0x26e6c2[_0xb9c392(0x22b)]:_0x26e6c2['ZqtYw'])+'\x0a',_0x2fe1b1+=_0xb9c392(0x292)+_0x26e6c2[_0xb9c392(0x1e2)](_0x51166d,_0x26e6c2[_0xb9c392(0x1f5)])+'\x0a',_0xf32f31&&(_0x2fe1b1+=_0x26e6c2[_0xb9c392(0x289)],_0x2fe1b1+='\x20\x20Message:\x20'+(_0xf32f31[_0xb9c392(0x267)]||_0x26e6c2[_0xb9c392(0x1f5)])+'\x0a',_0x2fe1b1+=_0xb9c392(0x204)+(_0xf32f31[_0xb9c392(0x222)]||_0x26e6c2[_0xb9c392(0x1f5)])+'\x0a',_0x2fe1b1+='\x20\x20Stack:\x20'+(_0xf32f31['stack']||_0x26e6c2[_0xb9c392(0x1f5)])+'\x0a'),_0x2fe1b1+='\x0a\x0a';}),_0x2fe1b1+=_0x26e6c2[_0x5c31a0(0x22e)],_0x26e6c2['nkCQc'](_0x545045,null)?_0x2fe1b1+=_0x5c31a0(0x1fb)+global_registry[_0x5c31a0(0x291)]+'\x20'+(_0x545045?_0x26e6c2['puoko']:_0x26e6c2[_0x5c31a0(0x21d)])+'\x0a\x0a':_0x2fe1b1+=_0x5c31a0(0x1fb)+global_registry['clusterName']+_0x5c31a0(0x2bb),_0x2fe1b1+=_0x26e6c2[_0x5c31a0(0x246)](getSystemMetaData),_0x2fe1b1;};exports[a17_0x5996fd(0x29e)]=async function(_0x55c81f){const _0x13b455=a17_0x5996fd,_0x2ba188={'aHsrw':function(_0x5bb06e){return _0x5bb06e();},'XpzvA':_0x13b455(0x2c9),'XTCXh':function(_0x230b01,_0x23cb3b,_0x4d4767,_0x296fac,_0x9ad292,_0x426aa0,_0x196501,_0x3346ec){return _0x230b01(_0x23cb3b,_0x4d4767,_0x296fac,_0x9ad292,_0x426aa0,_0x196501,_0x3346ec);},'OZXDn':'pre-check-grid-called','ZZgti':_0x13b455(0x263),'QnrtG':_0x13b455(0x1ef),'lTTBL':function(_0x3fccd3,_0x55a164,_0x49da3c,_0x1a6edc,_0x14a473,_0x2a6ab2,_0x59d652){return _0x3fccd3(_0x55a164,_0x49da3c,_0x1a6edc,_0x14a473,_0x2a6ab2,_0x59d652);},'LvqQz':function(_0xce61b1){return _0xce61b1();},'kBSuN':_0x13b455(0x2a6),'uOGeg':_0x13b455(0x213),'zcMLt':function(_0x55c781,_0x1beb31,_0x38eb11){return _0x55c781(_0x1beb31,_0x38eb11);},'JIbUG':function(_0x592247,_0x14bb8d,_0x45ed04){return _0x592247(_0x14bb8d,_0x45ed04);},'Fedok':function(_0xe4e9ee,_0x11d9d3,_0xbe84a1,_0x5466c5,_0x2b3abc,_0x1d8463,_0x5e3f7a){return _0xe4e9ee(_0x11d9d3,_0xbe84a1,_0x5466c5,_0x2b3abc,_0x1d8463,_0x5e3f7a);},'vpqPu':'dummy-grid','PwxUh':_0x13b455(0x21e),'hzXIF':_0x13b455(0x21a),'VFAKK':_0x13b455(0x232),'rwUua':_0x13b455(0x203),'hFXaM':function(_0x275b74,_0x3a1592){return _0x275b74(_0x3a1592);},'KAcSw':_0x13b455(0x261),'cfbLB':_0x13b455(0x2cf),'kAAFL':_0x13b455(0x2ce),'YduTw':_0x13b455(0x2a3),'leScC':_0x13b455(0x245),'EgHNx':_0x13b455(0x1f0),'pCDSI':function(_0x4c316d,_0x2533ef,_0x22d3cd){return _0x4c316d(_0x2533ef,_0x22d3cd);},'CxOyk':function(_0x4a8fad,_0x2369c3){return _0x4a8fad+_0x2369c3;},'xUYnx':'utf-8','rWQeL':'pre-check-failed'};let _0x44d709,_0x7fcfdb;try{global_registry['requestId']=_0x2ba188['aHsrw'](uuidv4);!fs[_0x13b455(0x1d7)](_0x2ba188[_0x13b455(0x2d0)](getCredentialsPath))&&(_0x7fcfdb=_0x2ba188['XpzvA'],logger[_0x13b455(0x1ef)](_0x7fcfdb),await _0x2ba188[_0x13b455(0x299)](reportToGalactusAndSendToEDS,_0x55c81f,_0x44d709,_0x7fcfdb,messageTypes['ERROR'],_0x2ba188[_0x13b455(0x1dd)],_0x2ba188[_0x13b455(0x235)],_0x2ba188['QnrtG']),process[_0x13b455(0x219)](0x1));_0x2ba188[_0x13b455(0x22a)](sendInstrumentationEvent,_0x55c81f,_0x2ba188['OZXDn'],messageTypes[_0x13b455(0x21b)],null,null,_0x55c81f);const _0x103d9e=JSON[_0x13b455(0x2b9)](fs[_0x13b455(0x26c)](_0x2ba188[_0x13b455(0x1f4)](getCredentialsPath)));global_registry['bstackUsername']=_0x103d9e[_0x13b455(0x2c2)][_0x13b455(0x1df)],global_registry[_0x13b455(0x25e)]=_0x103d9e['Browserstack'][_0x13b455(0x23f)];const _0x155988=WS_ENDPOINT[_0x13b455(0x29b)](_0x2ba188[_0x13b455(0x2b2)],_0x103d9e[_0x13b455(0x2c2)]['username'])[_0x13b455(0x29b)](_0x2ba188[_0x13b455(0x201)],_0x103d9e[_0x13b455(0x2c2)][_0x13b455(0x23f)]),_0x4be035={};_0x4be035['WebSocket']=ws,_0x4be035[_0x13b455(0x293)]=0x36ee80,_0x44d709=new ReconnectingWebSocket(_0x155988,[],_0x4be035),global_registry[_0x13b455(0x1da)]=_0x2ba188[_0x13b455(0x202)](getAuthHeader,global_registry[_0x13b455(0x27a)],global_registry[_0x13b455(0x25e)]),await _0x2ba188[_0x13b455(0x277)](inputValidation,_0x55c81f,_0x44d709),logger['info'](_0x13b455(0x21f)+global_registry[_0x13b455(0x28e)]+_0x13b455(0x259)+global_registry['clusterRegion']);let _0x2904c9=await _0x2ba188[_0x13b455(0x23e)](getCloudProviderObjectWithOutInit,global_registry[_0x13b455(0x28e)],global_registry[_0x13b455(0x291)],_0x2ba188['vpqPu'],_0x44d709,webSocketUtils,_0x55c81f);const _0x35433d=await _0x2904c9[_0x13b455(0x28a)]();_0x2ba188[_0x13b455(0x202)](printResponse,_0x2ba188['PwxUh'],_0x35433d),_0x2904c9=await _0x2904c9[_0x13b455(0x2b1)]();let _0x35a028=![];try{_0x35a028=await _0x2904c9[_0x13b455(0x208)]();}catch(_0x461f4d){const _0x3b8aaf=_0x2ba188[_0x13b455(0x1e0)][_0x13b455(0x23a)]('|');let _0x2927ba=0x0;while(!![]){switch(_0x3b8aaf[_0x2927ba++]){case'0':logger[_0x13b455(0x1ef)](_0x7fcfdb);continue;case'1':await _0x2ba188[_0x13b455(0x299)](reportToGalactusAndSendToEDS,_0x55c81f,_0x44d709,_0x7fcfdb,messageTypes[_0x13b455(0x1d9)],_0x2ba188['OZXDn'],'cluster-check-failed-'+global_registry[_0x13b455(0x28e)],_0x2ba188[_0x13b455(0x2bc)]);continue;case'2':_0x7fcfdb=_0x13b455(0x1f8)+global_registry[_0x13b455(0x291)]+_0x13b455(0x228)+global_registry['clusterRegion']+'`\x20,error\x20:\x20'+_0x461f4d;continue;case'3':_0x35a028=null;continue;case'4':_0x7fcfdb+='\x0a'+JSON[_0x13b455(0x233)](_0x461f4d[_0x13b455(0x24f)]);continue;}break;}}_0x35a028&&logger[_0x13b455(0x226)](_0x13b455(0x221)+global_registry['clusterName']+_0x13b455(0x244));const _0xef099c=await _0x2904c9[_0x13b455(0x294)]();_0x2ba188[_0x13b455(0x277)](printResponse,_0x2ba188[_0x13b455(0x1ff)],_0xef099c);const _0x33b80b=await _0x2ba188[_0x13b455(0x1f4)](curlRequest);_0x2ba188[_0x13b455(0x277)](printResponse,_0x2ba188['rwUua'],_0x33b80b);const _0x40465d=await _0x2ba188['hFXaM'](isTlsSupported,_0x2ba188[_0x13b455(0x2be)]);_0x2ba188['JIbUG'](printResponse,_0x2ba188[_0x13b455(0x200)],_0x40465d);const _0x1231e8={};_0x1231e8[_0x13b455(0x217)]=_0x2ba188[_0x13b455(0x252)],_0x1231e8[_0x13b455(0x223)]=_0x35433d;const _0x19fbc6={};_0x19fbc6[_0x13b455(0x217)]=_0x2ba188[_0x13b455(0x22c)],_0x19fbc6[_0x13b455(0x223)]=_0xef099c;const _0x2ac974={};_0x2ac974['header']=_0x2ba188[_0x13b455(0x1fe)],_0x2ac974[_0x13b455(0x223)]=_0x33b80b;const _0x530a88={};_0x530a88[_0x13b455(0x217)]=_0x2ba188[_0x13b455(0x2ac)],_0x530a88[_0x13b455(0x223)]=_0x40465d;const _0x5a3a7e=[_0x1231e8,_0x19fbc6,_0x2ac974,_0x530a88],_0x59c27e=await _0x2ba188[_0x13b455(0x290)](generateReport,_0x5a3a7e,_0x35a028),_0x37bb1e=new Date(),_0x23e50f=_0x37bb1e[_0x13b455(0x2af)]()+'_'+_0x2ba188[_0x13b455(0x1db)](_0x37bb1e[_0x13b455(0x236)](),0x1)+'_'+_0x37bb1e[_0x13b455(0x2a8)]()+'_'+_0x37bb1e[_0x13b455(0x2d1)]()+'_'+_0x37bb1e['getUTCMinutes'](),_0x3b7d67=_0x13b455(0x25a)+_0x23e50f+_0x13b455(0x1f6);fs[_0x13b455(0x1f2)](_0x3b7d67,_0x59c27e,_0x2ba188['xUYnx']),logger[_0x13b455(0x226)](_0x13b455(0x220)+_0x3b7d67),process['exit'](0x0);}catch(_0x595821){let _0x15ca04=_0x13b455(0x26f)+_0x595821+'\x20';logger[_0x13b455(0x1ef)](_0x15ca04),_0x15ca04+='\x0a'+JSON[_0x13b455(0x233)](_0x595821[_0x13b455(0x24f)]),logger[_0x13b455(0x218)]('stack\x20trace\x20'+_0x595821['stack']);if(_0x44d709){const _0x14c480={};_0x14c480['type']=WS_EVENTS[_0x13b455(0x22f)],_0x14c480[_0x13b455(0x267)]=_0x15ca04,webSocketUtils[_0x13b455(0x23b)](_0x44d709,_0x14c480,_0x2ba188[_0x13b455(0x2bc)],!![]);}await webSocketUtils[_0x13b455(0x270)](0x7d0);const _0x2627d4={};_0x2627d4[_0x13b455(0x1ef)]=_0x15ca04,await _0x2ba188[_0x13b455(0x22a)](sendInstrumentationEvent,_0x55c81f,_0x2ba188[_0x13b455(0x1dd)],messageTypes[_0x13b455(0x1d9)],_0x2ba188[_0x13b455(0x20a)],_0x2627d4,_0x55c81f),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a18_0x55741a=a18_0x1e23;function a18_0x4048(){const _0x44e318=['desc','Start\x20an\x20existing\x20Automation\x20grid.','usage','handler','19405824FQrUBd','515974LNPPMf','1291005MbJSuY','12IbCEyW','demandCommand','start','start_commands','commandDir','lcSdr','wXlno','help','753003oROhVz','../config/constants','builder','4003816RoabIh','2131715nHbORX','3239677NqdRxo','command'];a18_0x4048=function(){return _0x44e318;};return a18_0x4048();}(function(_0x3f1b18,_0x358ae2){const _0x4875bb=a18_0x1e23,_0x266a65=_0x3f1b18();while(!![]){try{const _0x5d658e=parseInt(_0x4875bb(0x69))/0x1+parseInt(_0x4875bb(0x75))/0x2+-parseInt(_0x4875bb(0x76))/0x3+parseInt(_0x4875bb(0x6c))/0x4+parseInt(_0x4875bb(0x6d))/0x5+parseInt(_0x4875bb(0x77))/0x6*(parseInt(_0x4875bb(0x6e))/0x7)+-parseInt(_0x4875bb(0x74))/0x8;if(_0x5d658e===_0x358ae2)break;else _0x266a65['push'](_0x266a65['shift']());}catch(_0x4f7a86){_0x266a65['push'](_0x266a65['shift']());}}}(a18_0x4048,0x7bfc6));function a18_0x1e23(_0x5a63cb,_0x452b15){const _0x404812=a18_0x4048();return a18_0x1e23=function(_0x1e23b0,_0x18332e){_0x1e23b0=_0x1e23b0-0x68;let _0x24377d=_0x404812[_0x1e23b0];return _0x24377d;},a18_0x1e23(_0x5a63cb,_0x452b15);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x55741a(0x6a));exports[a18_0x55741a(0x6f)]='start',exports[a18_0x55741a(0x70)]=a18_0x55741a(0x71),exports[a18_0x55741a(0x6b)]=function(_0x535019){const _0x71ce9a=a18_0x55741a,_0x31c391={};_0x31c391[_0x71ce9a(0x7c)]=_0x71ce9a(0x7a),_0x31c391[_0x71ce9a(0x7d)]='help';const _0x99d227=_0x31c391;return _0x535019[_0x71ce9a(0x72)](HELP_HEADER_MESSAGE[_0x71ce9a(0x79)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x71ce9a(0x7b)](_0x99d227[_0x71ce9a(0x7c)])[_0x71ce9a(0x78)]()['recommendCommands']()['strict']()[_0x71ce9a(0x68)](_0x99d227['wXlno']);},exports[a18_0x55741a(0x73)]=function(_0x1938b1){};
1
+ function a18_0x50b2(_0x5984c3,_0xb4e13f){const _0xf9a04d=a18_0xf9a0();return a18_0x50b2=function(_0x50b257,_0x48f801){_0x50b257=_0x50b257-0x154;let _0x55bb26=_0xf9a04d[_0x50b257];return _0x55bb26;},a18_0x50b2(_0x5984c3,_0xb4e13f);}const a18_0x3b72d8=a18_0x50b2;(function(_0x322bc9,_0x32d6a2){const _0x3ec411=a18_0x50b2,_0x30b7a1=_0x322bc9();while(!![]){try{const _0x380b56=parseInt(_0x3ec411(0x159))/0x1+-parseInt(_0x3ec411(0x163))/0x2+parseInt(_0x3ec411(0x160))/0x3+parseInt(_0x3ec411(0x169))/0x4+parseInt(_0x3ec411(0x158))/0x5+parseInt(_0x3ec411(0x165))/0x6+parseInt(_0x3ec411(0x15a))/0x7*(-parseInt(_0x3ec411(0x156))/0x8);if(_0x380b56===_0x32d6a2)break;else _0x30b7a1['push'](_0x30b7a1['shift']());}catch(_0x32e607){_0x30b7a1['push'](_0x30b7a1['shift']());}}}(a18_0xf9a0,0xd6fad));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x3b72d8(0x15e));exports[a18_0x3b72d8(0x154)]='start',exports[a18_0x3b72d8(0x15f)]=a18_0x3b72d8(0x15b),exports[a18_0x3b72d8(0x166)]=function(_0x3972b4){const _0x579921=a18_0x3b72d8,_0x359043={};_0x359043[_0x579921(0x167)]=_0x579921(0x168),_0x359043[_0x579921(0x16b)]=_0x579921(0x15c);const _0x4eb1e8=_0x359043;return _0x3972b4[_0x579921(0x164)](HELP_HEADER_MESSAGE[_0x579921(0x162)])[_0x579921(0x161)](HELP_FOOTER_MESSAGE)[_0x579921(0x15d)](_0x4eb1e8[_0x579921(0x167)])[_0x579921(0x155)]()[_0x579921(0x16a)]()[_0x579921(0x157)]()['help'](_0x4eb1e8[_0x579921(0x16b)]);},exports['handler']=function(_0x543ffe){};function a18_0xf9a0(){const _0x577fe8=['221008NwIkjx','1446298lYlYll','Start\x20an\x20existing\x20Automation\x20grid.','help','commandDir','../config/constants','desc','3072900hAlGie','epilogue','start','2846644vnpacZ','usage','7374402oLSazz','builder','NCYQu','start_commands','6416168obyULS','recommendCommands','WrMjL','command','demandCommand','112kMZicN','strict','5590290XlFNUu'];a18_0xf9a0=function(){return _0x577fe8;};return a18_0xf9a0();}
@@ -1 +1 @@
1
- const a19_0x1ba2ae=a19_0x24bf;function a19_0x24bf(_0x72da30,_0x514608){const _0x6245fe=a19_0x6245();return a19_0x24bf=function(_0x24bf90,_0x3c587d){_0x24bf90=_0x24bf90-0x176;let _0x3685da=_0x6245fe[_0x24bf90];return _0x3685da;},a19_0x24bf(_0x72da30,_0x514608);}(function(_0x5e1e0a,_0x558a35){const _0x22529e=a19_0x24bf,_0x1097d6=_0x5e1e0a();while(!![]){try{const _0x46a76c=parseInt(_0x22529e(0x1a3))/0x1*(parseInt(_0x22529e(0x1bc))/0x2)+-parseInt(_0x22529e(0x181))/0x3+-parseInt(_0x22529e(0x192))/0x4*(-parseInt(_0x22529e(0x1b1))/0x5)+parseInt(_0x22529e(0x1b5))/0x6*(parseInt(_0x22529e(0x1a9))/0x7)+-parseInt(_0x22529e(0x1c0))/0x8*(-parseInt(_0x22529e(0x1ab))/0x9)+-parseInt(_0x22529e(0x178))/0xa+-parseInt(_0x22529e(0x1d7))/0xb;if(_0x46a76c===_0x558a35)break;else _0x1097d6['push'](_0x1097d6['shift']());}catch(_0x212a82){_0x1097d6['push'](_0x1097d6['shift']());}}}(a19_0x6245,0x1b14e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1ba2ae(0x19f)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1ba2ae(0x193)),{logger}=require(a19_0x1ba2ae(0x18e)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x1ba2ae(0x1bf)),{sendInstrumentationEvent}=require(a19_0x1ba2ae(0x1b3)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x1ba2ae(0x185)),{getCloudProviderObject}=require(a19_0x1ba2ae(0x1c8));function a19_0x6245(){const _0x1669b0=['string','LMFcm','stringify','default','CTilp','rgPJi','6439928SoCZsE','builder','ZXJJp','230HoBvVP','readFileSync','Browserstack','KyrxS','stack','usage','BJIqy','name','afHks','59106RCCZAZ','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','start','password','../../utils/createk8sClient','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','CZnZe','parse','server-error','type','<UsernamePlaceholder>','options','OxblJ','../../config/logger','unauthorised','bstackUsername','description','640XJUdxv','../../config/constants','bstackAccesskey','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','clusterName','FYJED','gSPuY','gridId','GInor','username','INFO','skip-tls-cert-verify','reconnecting-websocket','error','addListeners','Grid\x20started','13989MgyHrZ','invalid-grid-id','ojReL','desc','help','WebSocket','8015uDftbT','TArXE','208323aYDYsU','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','boolean','PdvFb','info','message','4810qKPcPa','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','../../utils/instrumentationUtils','replace','828UsCmDU','exit','clusterRegion','BSAxn','bGfOg','mpZNe','Start\x20an\x20existing\x20Automation\x20grid.','28nZUTXu','AlmRG','<PasswordPlaceholder>','../../utils/gridComponents','72JnrMMo','skipTlsCertVerify','handler','zgXfw','init-not-called','start-grid-called','statusCode','Usovy','../../cloudproviders/utils','user','ERROR','connectionTimeout','grid-id','cloudProvider','OkNeq','zzRtC','Starting\x20grid\x20'];a19_0x6245=function(){return _0x1669b0;};return a19_0x6245();}exports['command']='grid',exports[a19_0x1ba2ae(0x1a6)]=a19_0x1ba2ae(0x1bb),exports[a19_0x1ba2ae(0x176)]=function(_0x9bb69c){const _0xb59048=a19_0x1ba2ae,_0x4ca308={};_0x4ca308[_0xb59048(0x18d)]=_0xb59048(0x1ac),_0x4ca308[_0xb59048(0x1cf)]=_0xb59048(0x1d1),_0x4ca308[_0xb59048(0x1c3)]='Skip\x20insecure\x20cert\x20verification.',_0x4ca308[_0xb59048(0x1d2)]=_0xb59048(0x1ad),_0x4ca308[_0xb59048(0x1c7)]=_0xb59048(0x1a7);const _0x5511dc=_0x4ca308,_0x17fca4={};_0x17fca4[_0xb59048(0x191)]=_0x5511dc['OxblJ'],_0x17fca4[_0xb59048(0x18a)]=_0x5511dc[_0xb59048(0x1cf)];const _0x13aa77={};_0x13aa77[_0xb59048(0x191)]=_0x5511dc[_0xb59048(0x1c3)],_0x13aa77[_0xb59048(0x18a)]=_0x5511dc[_0xb59048(0x1d2)],_0x13aa77[_0xb59048(0x1d4)]=![];const _0x2ebb38={};return _0x2ebb38[_0xb59048(0x1cc)]=_0x17fca4,_0x2ebb38[_0xb59048(0x19e)]=_0x13aa77,_0x9bb69c[_0xb59048(0x17d)](HELP_HEADER_MESSAGE[_0xb59048(0x183)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xb59048(0x18c)](_0x2ebb38)[_0xb59048(0x1a7)](_0x5511dc[_0xb59048(0x1c7)])['argv'];},exports[a19_0x1ba2ae(0x1c2)]=async function(_0x54919e){const _0xcbcc04=a19_0x1ba2ae,_0xfb4038={'TArXE':_0xcbcc04(0x182),'BSAxn':function(_0xf657a5){return _0xf657a5();},'BJIqy':_0xcbcc04(0x195),'afHks':function(_0xa24d83,_0x1e805f,_0x29cf8e,_0x324d48,_0x306636,_0x5d44b4,_0x5ab56a){return _0xa24d83(_0x1e805f,_0x29cf8e,_0x324d48,_0x306636,_0x5d44b4,_0x5ab56a);},'rgPJi':_0xcbcc04(0x1c5),'CZnZe':_0xcbcc04(0x1c4),'FYJED':function(_0x4b8e78,_0x17b75b,_0x8483fd,_0x48c2e1,_0x27e889,_0x59fa9b,_0x372ec1){return _0x4b8e78(_0x17b75b,_0x8483fd,_0x48c2e1,_0x27e889,_0x59fa9b,_0x372ec1);},'KyrxS':_0xcbcc04(0x18b),'gSPuY':_0xcbcc04(0x1be),'mpZNe':'Adding\x20Websocket\x20listeners','ojReL':function(_0x518289,_0x2cb22a,_0xdef5a4,_0x3e362c){return _0x518289(_0x2cb22a,_0xdef5a4,_0x3e362c);},'PdvFb':function(_0x294855,_0x4d9799,_0x3b9f9c,_0x5f159a,_0x395723,_0x3dbc0a,_0x4ccb09){return _0x294855(_0x4d9799,_0x3b9f9c,_0x5f159a,_0x395723,_0x3dbc0a,_0x4ccb09);},'XnVTL':function(_0x50bd7b,_0x4ec5d6,_0x186273){return _0x50bd7b(_0x4ec5d6,_0x186273);},'Ofedz':function(_0x1dd0ed,_0x4ba618,_0x5e722e){return _0x1dd0ed(_0x4ba618,_0x5e722e);},'AlmRG':_0xcbcc04(0x1a2),'CTilp':function(_0x2ed0f3,_0x21ccbb){return _0x2ed0f3===_0x21ccbb;},'ZXJJp':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','OkNeq':_0xcbcc04(0x18f),'GInor':_0xcbcc04(0x1a4),'bGfOg':_0xcbcc04(0x189)};let _0x12bdbf;try{!_0x54919e[_0xcbcc04(0x19a)]&&(logger['error'](_0xfb4038[_0xcbcc04(0x1aa)]),process['exit'](0x1));!fs['existsSync'](_0xfb4038['BSAxn'](getCredentialsPath))&&(logger[_0xcbcc04(0x1a0)](_0xfb4038[_0xcbcc04(0x17e)]),await _0xfb4038[_0xcbcc04(0x180)](sendInstrumentationEvent,_0x54919e,_0xfb4038['rgPJi'],messageTypes[_0xcbcc04(0x1ca)],_0xfb4038[_0xcbcc04(0x187)],null,_0x54919e),process[_0xcbcc04(0x1b6)](0x1));logger[_0xcbcc04(0x1af)](_0xcbcc04(0x1d0)+_0x54919e[_0xcbcc04(0x19a)]),await _0xfb4038[_0xcbcc04(0x198)](sendInstrumentationEvent,_0x54919e,_0xfb4038['rgPJi'],messageTypes[_0xcbcc04(0x19d)],null,null,_0x54919e);const _0x2d0e06=JSON[_0xcbcc04(0x188)](fs[_0xcbcc04(0x179)](_0xfb4038[_0xcbcc04(0x1b8)](getCredentialsPath)));global_registry[_0xcbcc04(0x190)]=_0x2d0e06[_0xcbcc04(0x17a)][_0xcbcc04(0x19c)],global_registry[_0xcbcc04(0x194)]=_0x2d0e06[_0xcbcc04(0x17a)][_0xcbcc04(0x184)];const _0x21b0e0=WS_ENDPOINT[_0xcbcc04(0x1b4)](_0xfb4038[_0xcbcc04(0x17b)],_0x2d0e06[_0xcbcc04(0x17a)][_0xcbcc04(0x19c)])[_0xcbcc04(0x1b4)](_0xfb4038[_0xcbcc04(0x199)],_0x2d0e06['Browserstack']['password']),_0x15df50={};_0x15df50[_0xcbcc04(0x1a8)]=ws,_0x15df50[_0xcbcc04(0x1cb)]=0x36ee80,_0x12bdbf=new ReconnectingWebSocket(_0x21b0e0,[],_0x15df50),logger['debug'](_0xfb4038[_0xcbcc04(0x1ba)]),webSocketUtils[_0xcbcc04(0x1a1)](_0x12bdbf,_0x54919e[_0xcbcc04(0x1c9)],_0x54919e['password']);const [_0x1cf5b7,_0x5aea84]=await _0xfb4038[_0xcbcc04(0x1a5)](getGridDetails,_0x2d0e06[_0xcbcc04(0x17a)]['username'],_0x2d0e06[_0xcbcc04(0x17a)][_0xcbcc04(0x184)],_0x54919e[_0xcbcc04(0x19a)]);if(_0x5aea84){const _0x418ded=_0x5aea84[_0xcbcc04(0x1af)];global_registry['cloudProvider']=_0x418ded[_0xcbcc04(0x1cd)],global_registry[_0xcbcc04(0x1b7)]=_0x418ded['region'],global_registry[_0xcbcc04(0x197)]=_0x418ded[_0xcbcc04(0x197)];const _0x10bb0c=await _0xfb4038['PdvFb'](getCloudProviderObject,_0x418ded[_0xcbcc04(0x1cd)],_0x418ded[_0xcbcc04(0x197)],_0x418ded[_0xcbcc04(0x17f)],_0x12bdbf,webSocketUtils,_0x54919e),[_0x4be10b,_0x120cfc,_0x9f26b0,_0x2771aa,_0x1617dc,_0x20249c]=await _0xfb4038['XnVTL'](createK8sClient,_0x10bb0c,_0x54919e[_0xcbcc04(0x1c1)]);await _0xfb4038['Ofedz'](scaleUpHubDeployment,_0x120cfc,_0x418ded[_0xcbcc04(0x17f)]),logger[_0xcbcc04(0x1af)](_0xfb4038[_0xcbcc04(0x1bd)]),process['exit'](0x0);}_0xfb4038[_0xcbcc04(0x1d5)](_0x1cf5b7[_0xcbcc04(0x1c6)],0x191)&&(logger[_0xcbcc04(0x1a0)](_0xfb4038[_0xcbcc04(0x177)]),await _0xfb4038[_0xcbcc04(0x198)](sendInstrumentationEvent,_0x54919e,_0xfb4038['rgPJi'],messageTypes[_0xcbcc04(0x1ca)],_0xfb4038[_0xcbcc04(0x1ce)],null,_0x54919e),process[_0xcbcc04(0x1b6)](0x1)),_0xfb4038[_0xcbcc04(0x1d5)](_0x1cf5b7[_0xcbcc04(0x1c6)],0x190)&&(logger[_0xcbcc04(0x1a0)](JSON['parse'](_0x1cf5b7[_0xcbcc04(0x196)])[_0xcbcc04(0x1b0)]),await _0xfb4038[_0xcbcc04(0x1ae)](sendInstrumentationEvent,_0x54919e,_0xfb4038[_0xcbcc04(0x1d6)],messageTypes[_0xcbcc04(0x1ca)],_0xfb4038[_0xcbcc04(0x19b)],null,_0x54919e),process[_0xcbcc04(0x1b6)](0x1)),logger[_0xcbcc04(0x1a0)](_0xcbcc04(0x186)+JSON[_0xcbcc04(0x1d3)](_0x1cf5b7)),await _0xfb4038['PdvFb'](sendInstrumentationEvent,_0x54919e,_0xfb4038[_0xcbcc04(0x1d6)],messageTypes[_0xcbcc04(0x1ca)],_0xfb4038[_0xcbcc04(0x1b9)],_0x1cf5b7,_0x54919e),process['exit'](0x1);}catch(_0x4ac8ae){const _0x446439=_0xcbcc04(0x1b2)+_0x4ac8ae+'\x20\x0a'+JSON[_0xcbcc04(0x1d3)](_0x4ac8ae[_0xcbcc04(0x17c)])+'\x20';logger[_0xcbcc04(0x1a0)](_0x446439),process['exit'](0x1);}};
1
+ const a19_0x40d3a2=a19_0x3538;(function(_0x3c8133,_0x287eb7){const _0x23ec49=a19_0x3538,_0x5e2768=_0x3c8133();while(!![]){try{const _0x23daa6=parseInt(_0x23ec49(0x13c))/0x1*(-parseInt(_0x23ec49(0x108))/0x2)+parseInt(_0x23ec49(0x14e))/0x3+-parseInt(_0x23ec49(0x12d))/0x4+parseInt(_0x23ec49(0x11b))/0x5+-parseInt(_0x23ec49(0x117))/0x6*(-parseInt(_0x23ec49(0x102))/0x7)+-parseInt(_0x23ec49(0x138))/0x8*(parseInt(_0x23ec49(0x14d))/0x9)+parseInt(_0x23ec49(0x125))/0xa;if(_0x23daa6===_0x287eb7)break;else _0x5e2768['push'](_0x5e2768['shift']());}catch(_0x31522b){_0x5e2768['push'](_0x5e2768['shift']());}}}(a19_0x5b34,0xd3fd9));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x40d3a2(0x146)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x40d3a2(0x159)),{logger}=require(a19_0x40d3a2(0x116)),{getCredentialsPath,getGridDetails}=require(a19_0x40d3a2(0x103)),{scaleUpHubDeployment}=require(a19_0x40d3a2(0x114)),{sendInstrumentationEvent}=require(a19_0x40d3a2(0x115)),webSocketUtils=require(a19_0x40d3a2(0x11c)),{createK8sClient}=require(a19_0x40d3a2(0x134)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']=a19_0x40d3a2(0x144),exports[a19_0x40d3a2(0x136)]=a19_0x40d3a2(0x150),exports[a19_0x40d3a2(0x157)]=function(_0x13f536){const _0x5634fa=a19_0x40d3a2,_0x375517={};_0x375517[_0x5634fa(0x12b)]=_0x5634fa(0xfe),_0x375517[_0x5634fa(0x128)]=_0x5634fa(0x153),_0x375517[_0x5634fa(0x127)]=_0x5634fa(0x13a),_0x375517[_0x5634fa(0x112)]=_0x5634fa(0x15d),_0x375517[_0x5634fa(0x10c)]='help';const _0x1d6130=_0x375517,_0x3f1a1a={};_0x3f1a1a[_0x5634fa(0x113)]=_0x1d6130[_0x5634fa(0x12b)],_0x3f1a1a[_0x5634fa(0x11f)]=_0x1d6130[_0x5634fa(0x128)];const _0x2de7d3={};_0x2de7d3['description']=_0x1d6130[_0x5634fa(0x127)],_0x2de7d3[_0x5634fa(0x11f)]=_0x1d6130[_0x5634fa(0x112)],_0x2de7d3[_0x5634fa(0x130)]=![];const _0x3fd434={};return _0x3fd434['grid-id']=_0x3f1a1a,_0x3fd434[_0x5634fa(0x10b)]=_0x2de7d3,_0x13f536[_0x5634fa(0x15b)](HELP_HEADER_MESSAGE[_0x5634fa(0x151)])[_0x5634fa(0x104)](HELP_FOOTER_MESSAGE)[_0x5634fa(0x13f)](_0x3fd434)[_0x5634fa(0x14b)](_0x1d6130[_0x5634fa(0x10c)])[_0x5634fa(0x149)];},exports[a19_0x40d3a2(0x10d)]=async function(_0x419c09){const _0x3ce10e=a19_0x40d3a2,_0x2c40c9={'qfIRL':_0x3ce10e(0x139),'HmmlG':function(_0x3a882a){return _0x3a882a();},'TGeou':_0x3ce10e(0x154),'ZeUil':function(_0x30bfad,_0x33e507,_0xef834b,_0x3b25c2,_0x48bcc3,_0x45ef66,_0x255a8e){return _0x30bfad(_0x33e507,_0xef834b,_0x3b25c2,_0x48bcc3,_0x45ef66,_0x255a8e);},'yYHOj':_0x3ce10e(0x141),'htWIC':'init-not-called','zAZgA':function(_0x4b2e3a,_0x1cb421,_0x700f9e,_0xd8e4a4,_0x22d6f7,_0x288d95,_0x22cf63){return _0x4b2e3a(_0x1cb421,_0x700f9e,_0xd8e4a4,_0x22d6f7,_0x288d95,_0x22cf63);},'oXNVR':function(_0x32b40b){return _0x32b40b();},'fRSsC':'<UsernamePlaceholder>','REpSk':'<PasswordPlaceholder>','MBXUZ':'Adding\x20Websocket\x20listeners','FHerX':function(_0x519e7d,_0x18bfa9,_0x1c2d71,_0x13f8e5){return _0x519e7d(_0x18bfa9,_0x1c2d71,_0x13f8e5);},'TJIUq':function(_0x5ebdf4,_0x5adf2e,_0x1fd397){return _0x5ebdf4(_0x5adf2e,_0x1fd397);},'nAUQe':function(_0x1e2db6,_0x5bf150,_0x493869){return _0x1e2db6(_0x5bf150,_0x493869);},'VfOpP':_0x3ce10e(0x12c),'dcOIN':function(_0x238556,_0x4094df){return _0x238556===_0x4094df;},'Sxsof':_0x3ce10e(0x132),'AHITt':_0x3ce10e(0x119),'YhxbC':function(_0x5d4f1a,_0x505072,_0x57b68,_0x406da1,_0x21cd25,_0x4b6dbb,_0xdf37ab){return _0x5d4f1a(_0x505072,_0x57b68,_0x406da1,_0x21cd25,_0x4b6dbb,_0xdf37ab);},'KKnCW':_0x3ce10e(0x118),'LyCxK':function(_0x3a8ade,_0x30c849,_0x32d058,_0x5b670d,_0x26621e,_0x1e8b91,_0x2e7c75){return _0x3a8ade(_0x30c849,_0x32d058,_0x5b670d,_0x26621e,_0x1e8b91,_0x2e7c75);},'Xjwsv':'server-error'};let _0x21a1b7;try{!_0x419c09[_0x3ce10e(0x160)]&&(logger[_0x3ce10e(0x11d)](_0x2c40c9[_0x3ce10e(0x111)]),process[_0x3ce10e(0x152)](0x1));!fs[_0x3ce10e(0x131)](_0x2c40c9[_0x3ce10e(0x15e)](getCredentialsPath))&&(logger['error'](_0x2c40c9[_0x3ce10e(0x124)]),await _0x2c40c9[_0x3ce10e(0x14c)](sendInstrumentationEvent,_0x419c09,_0x2c40c9['yYHOj'],messageTypes[_0x3ce10e(0x133)],_0x2c40c9[_0x3ce10e(0x158)],null,_0x419c09),process[_0x3ce10e(0x152)](0x1));logger[_0x3ce10e(0x10f)](_0x3ce10e(0x110)+_0x419c09[_0x3ce10e(0x160)]),await _0x2c40c9[_0x3ce10e(0x109)](sendInstrumentationEvent,_0x419c09,_0x2c40c9['yYHOj'],messageTypes[_0x3ce10e(0x13d)],null,null,_0x419c09);const _0x430aa3=JSON[_0x3ce10e(0x12a)](fs[_0x3ce10e(0x156)](_0x2c40c9[_0x3ce10e(0x15a)](getCredentialsPath)));global_registry[_0x3ce10e(0x11e)]=_0x430aa3[_0x3ce10e(0x145)]['username'],global_registry[_0x3ce10e(0x142)]=_0x430aa3[_0x3ce10e(0x145)][_0x3ce10e(0x10a)];const _0x9aa937=WS_ENDPOINT[_0x3ce10e(0x12e)](_0x2c40c9[_0x3ce10e(0x107)],_0x430aa3[_0x3ce10e(0x145)]['username'])[_0x3ce10e(0x12e)](_0x2c40c9[_0x3ce10e(0x135)],_0x430aa3[_0x3ce10e(0x145)]['password']),_0x4254a5={};_0x4254a5[_0x3ce10e(0x13b)]=ws,_0x4254a5[_0x3ce10e(0xff)]=0x36ee80,_0x21a1b7=new ReconnectingWebSocket(_0x9aa937,[],_0x4254a5),logger[_0x3ce10e(0x11a)](_0x2c40c9['MBXUZ']),webSocketUtils['addListeners'](_0x21a1b7,_0x419c09[_0x3ce10e(0x15f)],_0x419c09[_0x3ce10e(0x10a)]);const [_0x4e986f,_0x4ea9c8]=await _0x2c40c9[_0x3ce10e(0x137)](getGridDetails,_0x430aa3['Browserstack'][_0x3ce10e(0x105)],_0x430aa3[_0x3ce10e(0x145)][_0x3ce10e(0x10a)],_0x419c09['gridId']);if(_0x4ea9c8){const _0xd88b35=_0x4ea9c8['info'];global_registry[_0x3ce10e(0x140)]=_0xd88b35[_0x3ce10e(0x140)],global_registry[_0x3ce10e(0x15c)]=_0xd88b35[_0x3ce10e(0x100)],global_registry[_0x3ce10e(0x121)]=_0xd88b35[_0x3ce10e(0x121)];const _0x55e733=await _0x2c40c9[_0x3ce10e(0x109)](getCloudProviderObject,_0xd88b35[_0x3ce10e(0x140)],_0xd88b35[_0x3ce10e(0x121)],_0xd88b35['name'],_0x21a1b7,webSocketUtils,_0x419c09),[_0xbeca90,_0x5e39b6,_0x5448da,_0x24b559,_0xce759e,_0x34a519]=await _0x2c40c9[_0x3ce10e(0x12f)](createK8sClient,_0x55e733,_0x419c09[_0x3ce10e(0x14a)]);await _0x2c40c9[_0x3ce10e(0x10e)](scaleUpHubDeployment,_0x5e39b6,_0xd88b35[_0x3ce10e(0x122)]),logger[_0x3ce10e(0x10f)](_0x2c40c9[_0x3ce10e(0x147)]),process[_0x3ce10e(0x152)](0x0);}_0x2c40c9[_0x3ce10e(0x126)](_0x4e986f['statusCode'],0x191)&&(logger[_0x3ce10e(0x11d)](_0x2c40c9[_0x3ce10e(0x14f)]),await _0x2c40c9['ZeUil'](sendInstrumentationEvent,_0x419c09,_0x2c40c9['yYHOj'],messageTypes['ERROR'],_0x2c40c9[_0x3ce10e(0x129)],null,_0x419c09),process[_0x3ce10e(0x152)](0x1)),_0x2c40c9[_0x3ce10e(0x126)](_0x4e986f['statusCode'],0x190)&&(logger['error'](JSON[_0x3ce10e(0x12a)](_0x4e986f[_0x3ce10e(0x123)])[_0x3ce10e(0x13e)]),await _0x2c40c9[_0x3ce10e(0x120)](sendInstrumentationEvent,_0x419c09,_0x2c40c9[_0x3ce10e(0x106)],messageTypes[_0x3ce10e(0x133)],_0x2c40c9['KKnCW'],null,_0x419c09),process['exit'](0x1)),logger[_0x3ce10e(0x11d)](_0x3ce10e(0x155)+JSON[_0x3ce10e(0x148)](_0x4e986f)),await _0x2c40c9['LyCxK'](sendInstrumentationEvent,_0x419c09,_0x2c40c9[_0x3ce10e(0x106)],messageTypes[_0x3ce10e(0x133)],_0x2c40c9['Xjwsv'],_0x4e986f,_0x419c09),process['exit'](0x1);}catch(_0x9fc5b){const _0x23487f=_0x3ce10e(0x143)+_0x9fc5b+'\x20\x0a'+JSON['stringify'](_0x9fc5b[_0x3ce10e(0x101)])+'\x20';logger['error'](_0x23487f),process[_0x3ce10e(0x152)](0x1);}};function a19_0x3538(_0x1c7b30,_0x155a18){const _0x5b345c=a19_0x5b34();return a19_0x3538=function(_0x35383c,_0xacd0a){_0x35383c=_0x35383c-0xfe;let _0x57abc4=_0x5b345c[_0x35383c];return _0x57abc4;},a19_0x3538(_0x1c7b30,_0x155a18);}function a19_0x5b34(){const _0x4c1254=['argv','skipTlsCertVerify','help','ZeUil','3437208bewzpR','3707415YWGhai','Sxsof','Start\x20an\x20existing\x20Automation\x20grid.','start','exit','string','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','readFileSync','builder','htWIC','../../config/constants','oXNVR','usage','clusterRegion','boolean','HmmlG','user','gridId','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','connectionTimeout','region','stack','172858GzZoBj','../../utils/utilityMethods','epilogue','username','yYHOj','fRSsC','8ykBLgr','zAZgA','password','skip-tls-cert-verify','hVNIP','handler','nAUQe','info','Starting\x20grid\x20','qfIRL','BhKtS','description','../../utils/gridComponents','../../utils/instrumentationUtils','../../config/logger','108UslqJr','invalid-grid-id','unauthorised','debug','6489990dkeysE','../../utils/webSocketUtils','error','bstackUsername','type','YhxbC','clusterName','name','body','TGeou','7167260lEYGfA','dcOIN','VKeQB','OHAHi','AHITt','parse','hiRfH','Grid\x20started','3869088UfjSYt','replace','TJIUq','default','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ERROR','../../utils/createk8sClient','REpSk','desc','FHerX','32Sewlon','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Skip\x20insecure\x20cert\x20verification.','WebSocket','82947bgVvJc','INFO','message','options','cloudProvider','start-grid-called','bstackAccesskey','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','grid','Browserstack','reconnecting-websocket','VfOpP','stringify'];a19_0x5b34=function(){return _0x4c1254;};return a19_0x5b34();}
@@ -1 +1 @@
1
- const a20_0x2c6448=a20_0x4358;function a20_0x4358(_0x431d2f,_0x52c11c){const _0x3f1dc5=a20_0x3f1d();return a20_0x4358=function(_0x43585c,_0x46552c){_0x43585c=_0x43585c-0x1c1;let _0x3b6ecc=_0x3f1dc5[_0x43585c];return _0x3b6ecc;},a20_0x4358(_0x431d2f,_0x52c11c);}(function(_0x141548,_0xf8d66e){const _0xa704a4=a20_0x4358,_0x3de51f=_0x141548();while(!![]){try{const _0xca7437=parseInt(_0xa704a4(0x1c2))/0x1*(parseInt(_0xa704a4(0x1d1))/0x2)+-parseInt(_0xa704a4(0x1d5))/0x3+parseInt(_0xa704a4(0x1d0))/0x4*(-parseInt(_0xa704a4(0x1cf))/0x5)+-parseInt(_0xa704a4(0x1ce))/0x6*(parseInt(_0xa704a4(0x1ca))/0x7)+-parseInt(_0xa704a4(0x1c8))/0x8+-parseInt(_0xa704a4(0x1c1))/0x9+parseInt(_0xa704a4(0x1d4))/0xa*(parseInt(_0xa704a4(0x1d2))/0xb);if(_0xca7437===_0xf8d66e)break;else _0x3de51f['push'](_0x3de51f['shift']());}catch(_0xe149cb){_0x3de51f['push'](_0x3de51f['shift']());}}}(a20_0x3f1d,0x92596));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x2c6448(0x1c3));function a20_0x3f1d(){const _0x17fee6=['5HhGjgv','1606520EbvWBH','15644kJDZzq','15835325eHUcAX','zrzkN','20tnxOmv','1436598ZVZHhi','stop','recommendCommands','Stop\x20a\x20running\x20Automation\x20grid.','usage','6548382tiKygT','143dThkPf','../config/constants','stop_commands','handler','command','demandCommand','8394208mzcJOg','commandDir','3780dfjIZQ','builder','strict','help','8232WFCUNI'];a20_0x3f1d=function(){return _0x17fee6;};return a20_0x3f1d();}exports[a20_0x2c6448(0x1c6)]=a20_0x2c6448(0x1d6),exports['desc']=a20_0x2c6448(0x1d8),exports[a20_0x2c6448(0x1cb)]=function(_0x4174a8){const _0x47a1ae=a20_0x2c6448,_0x22b60e={};_0x22b60e[_0x47a1ae(0x1d3)]=_0x47a1ae(0x1c4),_0x22b60e['fiSmg']=_0x47a1ae(0x1cd);const _0x3967f2=_0x22b60e;return _0x4174a8[_0x47a1ae(0x1d9)](HELP_HEADER_MESSAGE[_0x47a1ae(0x1d6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x47a1ae(0x1c9)](_0x3967f2['zrzkN'])[_0x47a1ae(0x1c7)]()[_0x47a1ae(0x1d7)]()[_0x47a1ae(0x1cc)]()[_0x47a1ae(0x1cd)](_0x3967f2['fiSmg']);},exports[a20_0x2c6448(0x1c5)]=function(_0x434f88){};
1
+ function a20_0x2406(_0x5b2180,_0x1dfa74){const _0x2b2832=a20_0x2b28();return a20_0x2406=function(_0x24061c,_0x221b6a){_0x24061c=_0x24061c-0x197;let _0x178a64=_0x2b2832[_0x24061c];return _0x178a64;},a20_0x2406(_0x5b2180,_0x1dfa74);}function a20_0x2b28(){const _0x5e24ae=['182011VNSdRu','193200AmMKRW','PtvNy','32226uZocfp','288gjnYAj','help','epilogue','../config/constants','builder','command','recommendCommands','AxNzL','Stop\x20a\x20running\x20Automation\x20grid.','5485128NmLHaC','commandDir','usage','strict','13808190SysOzn','1933340yWVhAH','95UvfbUO','handler','31584324YftcXs','demandCommand','stop','7BHobQC','14HalSqw','3UxckkC'];a20_0x2b28=function(){return _0x5e24ae;};return a20_0x2b28();}const a20_0x45a4f6=a20_0x2406;(function(_0x20b1d1,_0x26caef){const _0x425de7=a20_0x2406,_0x8ab274=_0x20b1d1();while(!![]){try{const _0x13a271=-parseInt(_0x425de7(0x1aa))/0x1*(parseInt(_0x425de7(0x1a8))/0x2)+-parseInt(_0x425de7(0x1a9))/0x3*(parseInt(_0x425de7(0x1a1))/0x4)+parseInt(_0x425de7(0x1a2))/0x5*(-parseInt(_0x425de7(0x1ad))/0x6)+-parseInt(_0x425de7(0x1a7))/0x7*(-parseInt(_0x425de7(0x19c))/0x8)+-parseInt(_0x425de7(0x1ae))/0x9*(-parseInt(_0x425de7(0x1ab))/0xa)+-parseInt(_0x425de7(0x1a0))/0xb+parseInt(_0x425de7(0x1a4))/0xc;if(_0x13a271===_0x26caef)break;else _0x8ab274['push'](_0x8ab274['shift']());}catch(_0x13e67f){_0x8ab274['push'](_0x8ab274['shift']());}}}(a20_0x2b28,0xc87a5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x45a4f6(0x1b1));exports[a20_0x45a4f6(0x198)]='stop',exports['desc']=a20_0x45a4f6(0x19b),exports[a20_0x45a4f6(0x197)]=function(_0x31021e){const _0x47ff13=a20_0x45a4f6,_0x4746c8={};_0x4746c8[_0x47ff13(0x19a)]='stop_commands',_0x4746c8[_0x47ff13(0x1ac)]='help';const _0x8ebf0f=_0x4746c8;return _0x31021e[_0x47ff13(0x19e)](HELP_HEADER_MESSAGE[_0x47ff13(0x1a6)])[_0x47ff13(0x1b0)](HELP_FOOTER_MESSAGE)[_0x47ff13(0x19d)](_0x8ebf0f['AxNzL'])[_0x47ff13(0x1a5)]()[_0x47ff13(0x199)]()[_0x47ff13(0x19f)]()[_0x47ff13(0x1af)](_0x8ebf0f[_0x47ff13(0x1ac)]);},exports[a20_0x45a4f6(0x1a3)]=function(_0x5a6e15){};
@@ -1 +1 @@
1
- const a21_0x378e2c=a21_0x8516;(function(_0x22f6b6,_0x37a140){const _0x4fc958=a21_0x8516,_0xe34597=_0x22f6b6();while(!![]){try{const _0x3cd34f=parseInt(_0x4fc958(0x1bb))/0x1+-parseInt(_0x4fc958(0x1c7))/0x2+parseInt(_0x4fc958(0x1f1))/0x3+-parseInt(_0x4fc958(0x1b7))/0x4+-parseInt(_0x4fc958(0x1b4))/0x5+-parseInt(_0x4fc958(0x19f))/0x6+parseInt(_0x4fc958(0x1d1))/0x7;if(_0x3cd34f===_0x37a140)break;else _0xe34597['push'](_0xe34597['shift']());}catch(_0x5869c6){_0xe34597['push'](_0xe34597['shift']());}}}(a21_0x4359,0xb5409));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('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a21_0x378e2c(0x1a3)),{sendInstrumentationEvent}=require(a21_0x378e2c(0x1cc)),webSocketUtils=require(a21_0x378e2c(0x1be)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x378e2c(0x1ac));function a21_0x8516(_0x33ae34,_0x3c47fc){const _0x4359f0=a21_0x4359();return a21_0x8516=function(_0x8516fc,_0x5dc84b){_0x8516fc=_0x8516fc-0x19d;let _0x52877a=_0x4359f0[_0x8516fc];return _0x52877a;},a21_0x8516(_0x33ae34,_0x3c47fc);}exports['command']=a21_0x378e2c(0x1ae),exports[a21_0x378e2c(0x1c4)]=a21_0x378e2c(0x1c8),exports[a21_0x378e2c(0x1a7)]=function(_0x4ce136){const _0x25626a=a21_0x378e2c,_0x45b8d3={};_0x45b8d3[_0x25626a(0x1ea)]=_0x25626a(0x1d0),_0x45b8d3[_0x25626a(0x1b9)]=_0x25626a(0x1e7),_0x45b8d3[_0x25626a(0x1a8)]=_0x25626a(0x1de),_0x45b8d3[_0x25626a(0x1e2)]='boolean',_0x45b8d3[_0x25626a(0x1ca)]='help';const _0xc0f7c2=_0x45b8d3,_0x2672d6={};_0x2672d6[_0x25626a(0x1e4)]=_0xc0f7c2['qRDsw'],_0x2672d6['type']=_0xc0f7c2['UgGVk'];const _0x4dba31={};_0x4dba31[_0x25626a(0x1e4)]=_0xc0f7c2['fyqyM'],_0x4dba31['type']=_0xc0f7c2[_0x25626a(0x1e2)],_0x4dba31[_0x25626a(0x1d6)]=![];const _0x338f34={};return _0x338f34['grid-id']=_0x2672d6,_0x338f34['skip-tls-cert-verify']=_0x4dba31,_0x4ce136['usage'](HELP_HEADER_MESSAGE[_0x25626a(0x1a2)])[_0x25626a(0x1b1)](HELP_FOOTER_MESSAGE)['options'](_0x338f34)[_0x25626a(0x1c0)](_0xc0f7c2[_0x25626a(0x1ca)])['argv'];},exports[a21_0x378e2c(0x19d)]=async function(_0x8ff3f){const _0x2f9f47=a21_0x378e2c,_0x4ff65e={'FQchK':_0x2f9f47(0x1a9),'expsa':function(_0x2c45c0){return _0x2c45c0();},'cPvWK':_0x2f9f47(0x1aa),'dwkbt':function(_0x375fb4,_0x250e23,_0x534952,_0x4fcf7c,_0x5f081b,_0x55af58,_0x40ef90){return _0x375fb4(_0x250e23,_0x534952,_0x4fcf7c,_0x5f081b,_0x55af58,_0x40ef90);},'tpDgS':'stop-grid-called','kEiUg':_0x2f9f47(0x1e8),'Iamcc':function(_0x43a075,_0x3da051,_0x590f6a,_0x34fe30,_0x36a6d2,_0x2fba76,_0x227827){return _0x43a075(_0x3da051,_0x590f6a,_0x34fe30,_0x36a6d2,_0x2fba76,_0x227827);},'YSMRS':_0x2f9f47(0x1ba),'IXHLJ':_0x2f9f47(0x1bf),'PTlgy':'Adding\x20Websocket\x20listeners','zUxAT':function(_0x2ac374,_0x57c1d6,_0x2744ec,_0xf48704){return _0x2ac374(_0x57c1d6,_0x2744ec,_0xf48704);},'CjtEY':function(_0x328290,_0x19dadc,_0x1f1d36,_0x336143,_0x3bf39a,_0x30b44a,_0x3c07f7){return _0x328290(_0x19dadc,_0x1f1d36,_0x336143,_0x3bf39a,_0x30b44a,_0x3c07f7);},'NsJuM':function(_0x1e1089,_0x1c81c5,_0x165fe7){return _0x1e1089(_0x1c81c5,_0x165fe7);},'nqiEP':function(_0x182186,_0x5719cd,_0x45d786){return _0x182186(_0x5719cd,_0x45d786);},'mHtKV':_0x2f9f47(0x1c2),'akIyS':function(_0x542906,_0x1cdf00){return _0x542906===_0x1cdf00;},'nZsUi':_0x2f9f47(0x1c1),'lGcLx':function(_0x5e46bb,_0x3150d3,_0x2e5998,_0x529107,_0x419a01,_0x56a7cd,_0x1a545e){return _0x5e46bb(_0x3150d3,_0x2e5998,_0x529107,_0x419a01,_0x56a7cd,_0x1a545e);},'SxScj':'unauthorised','bBCXx':function(_0x1a3c5e,_0x377c55,_0x4e2671,_0x357c31,_0x3a089b,_0x270104,_0x4082a5){return _0x1a3c5e(_0x377c55,_0x4e2671,_0x357c31,_0x3a089b,_0x270104,_0x4082a5);},'PEqSB':_0x2f9f47(0x1dc),'QPeHs':function(_0x200e81,_0x52a931,_0x31820b,_0x1acfe0,_0x1d5de5,_0x5bf8e8,_0x127556){return _0x200e81(_0x52a931,_0x31820b,_0x1acfe0,_0x1d5de5,_0x5bf8e8,_0x127556);},'kRQoZ':_0x2f9f47(0x1c3)};let _0x284452;try{!_0x8ff3f[_0x2f9f47(0x1a1)]&&(logger['error'](_0x4ff65e[_0x2f9f47(0x1b3)]),process[_0x2f9f47(0x1d4)](0x1));!fs[_0x2f9f47(0x1f0)](_0x4ff65e[_0x2f9f47(0x1ee)](getCredentialsPath))&&(logger['error'](_0x4ff65e['cPvWK']),await _0x4ff65e[_0x2f9f47(0x1b5)](sendInstrumentationEvent,_0x8ff3f,_0x4ff65e[_0x2f9f47(0x1a6)],messageTypes[_0x2f9f47(0x1e5)],_0x4ff65e[_0x2f9f47(0x1e3)],null,_0x8ff3f),process['exit'](0x1));logger['info']('Stopping\x20grid\x20'+_0x8ff3f[_0x2f9f47(0x1a1)]),await _0x4ff65e[_0x2f9f47(0x1a5)](sendInstrumentationEvent,_0x8ff3f,_0x4ff65e[_0x2f9f47(0x1a6)],messageTypes[_0x2f9f47(0x1df)],null,null,_0x8ff3f);const _0x3cfe75=JSON[_0x2f9f47(0x1dd)](fs['readFileSync'](_0x4ff65e['expsa'](getCredentialsPath)));global_registry['bstackUsername']=_0x3cfe75[_0x2f9f47(0x19e)][_0x2f9f47(0x1ed)],global_registry[_0x2f9f47(0x1e9)]=_0x3cfe75[_0x2f9f47(0x19e)][_0x2f9f47(0x1cd)];const _0x56744a=WS_ENDPOINT['replace'](_0x4ff65e['YSMRS'],_0x3cfe75[_0x2f9f47(0x19e)][_0x2f9f47(0x1ed)])[_0x2f9f47(0x1b2)](_0x4ff65e[_0x2f9f47(0x1ad)],_0x3cfe75[_0x2f9f47(0x19e)][_0x2f9f47(0x1cd)]),_0x1ee45e={};_0x1ee45e[_0x2f9f47(0x1b8)]=ws,_0x1ee45e[_0x2f9f47(0x1d2)]=0x36ee80,_0x284452=new ReconnectingWebSocket(_0x56744a,[],_0x1ee45e),logger[_0x2f9f47(0x1cf)](_0x4ff65e[_0x2f9f47(0x1d8)]),webSocketUtils[_0x2f9f47(0x1e0)](_0x284452,_0x8ff3f['user'],_0x8ff3f['password']);const [_0x2ffed6,_0x184a33]=await _0x4ff65e[_0x2f9f47(0x1c5)](getGridDetails,_0x3cfe75['Browserstack'][_0x2f9f47(0x1ed)],_0x3cfe75[_0x2f9f47(0x19e)][_0x2f9f47(0x1cd)],_0x8ff3f[_0x2f9f47(0x1a1)]);if(_0x184a33){const _0x8ededd=_0x184a33[_0x2f9f47(0x1ab)];global_registry[_0x2f9f47(0x1b6)]=_0x8ededd[_0x2f9f47(0x1b6)],global_registry[_0x2f9f47(0x1ec)]=_0x8ededd[_0x2f9f47(0x1ef)],global_registry[_0x2f9f47(0x1a4)]=_0x8ededd[_0x2f9f47(0x1a4)];const _0x4682a7=await _0x4ff65e[_0x2f9f47(0x1d5)](getCloudProviderObject,_0x8ededd['cloudProvider'],_0x8ededd['clusterName'],_0x8ededd[_0x2f9f47(0x1e6)],_0x284452,webSocketUtils,_0x8ff3f),[_0x7276e9,_0x367731,_0x5b8c52,_0x14ed13,_0x4c848e,_0x357e92]=await _0x4ff65e[_0x2f9f47(0x1db)](createK8sClient,_0x4682a7,_0x8ff3f['skipTlsCertVerify']);await _0x4ff65e[_0x2f9f47(0x1bd)](scaleDownHubDeployment,_0x367731,_0x8ededd['name']),logger['info'](_0x4ff65e[_0x2f9f47(0x1cb)]),process['exit'](0x0);}_0x4ff65e[_0x2f9f47(0x1e1)](_0x2ffed6[_0x2f9f47(0x1da)],0x191)&&(logger[_0x2f9f47(0x1d7)](_0x4ff65e[_0x2f9f47(0x1ce)]),await _0x4ff65e[_0x2f9f47(0x1d3)](sendInstrumentationEvent,_0x8ff3f,_0x4ff65e[_0x2f9f47(0x1a6)],messageTypes['ERROR'],_0x4ff65e[_0x2f9f47(0x1af)],null,_0x8ff3f),process['exit'](0x1)),_0x4ff65e['akIyS'](_0x2ffed6[_0x2f9f47(0x1da)],0x190)&&(logger[_0x2f9f47(0x1d7)](JSON['parse'](_0x2ffed6[_0x2f9f47(0x1c9)])[_0x2f9f47(0x1eb)]),await _0x4ff65e[_0x2f9f47(0x1c6)](sendInstrumentationEvent,_0x8ff3f,_0x4ff65e[_0x2f9f47(0x1a6)],messageTypes['ERROR'],_0x4ff65e['PEqSB'],null,_0x8ff3f),process[_0x2f9f47(0x1d4)](0x1)),logger[_0x2f9f47(0x1d7)](_0x2f9f47(0x1b0)+JSON[_0x2f9f47(0x1bc)](_0x2ffed6)),await _0x4ff65e[_0x2f9f47(0x1d9)](sendInstrumentationEvent,_0x8ff3f,_0x4ff65e[_0x2f9f47(0x1a6)],messageTypes[_0x2f9f47(0x1e5)],_0x4ff65e['kRQoZ'],_0x2ffed6,_0x8ff3f),process['exit'](0x1);}catch(_0x210617){const _0x112e55=_0x2f9f47(0x1a0)+_0x210617+'\x20\x0a'+JSON[_0x2f9f47(0x1bc)](_0x210617['stack'])+'\x20';logger[_0x2f9f47(0x1d7)](_0x112e55),process[_0x2f9f47(0x1d4)](0x1);}};function a21_0x4359(){const _0x4a42c6=['tpDgS','builder','fyqyM','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','info','../../cloudproviders/utils','IXHLJ','grid','SxScj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','epilogue','replace','FQchK','5813180SmjbTN','dwkbt','cloudProvider','2004192VxPVZA','WebSocket','UgGVk','<UsernamePlaceholder>','1327989RIfvau','stringify','nqiEP','../../utils/webSocketUtils','<PasswordPlaceholder>','help','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Grid\x20stoppped.','server-error','desc','zUxAT','bBCXx','2509312RucTZl','Stop\x20a\x20running\x20Automation\x20grid.','body','uXScC','mHtKV','../../utils/instrumentationUtils','password','nZsUi','debug','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','16111928jUoUya','connectionTimeout','lGcLx','exit','CjtEY','default','error','PTlgy','QPeHs','statusCode','NsJuM','invalid-grid-id','parse','Skip\x20insecure\x20cert\x20verification.','INFO','addListeners','akIyS','OLetc','kEiUg','description','ERROR','name','string','init-not-called','bstackAccesskey','qRDsw','message','clusterRegion','username','expsa','region','existsSync','1988046vavKCy','handler','Browserstack','3789756uDLdBM','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','gridId','stop','../../utils/gridComponents','clusterName','Iamcc'];a21_0x4359=function(){return _0x4a42c6;};return a21_0x4359();}
1
+ const a21_0x40d9ca=a21_0x3689;function a21_0x4b29(){const _0x156e33=['Grid\x20stoppped.','description','stop','gridId','MSyra','YVnBy','unauthorised','statusCode','handler','readFileSync','connectionTimeout','TZJVx','<UsernamePlaceholder>','../../utils/webSocketUtils','321855rQsiAu','error','gudyM','command','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','name','grid','DWyHj','1388cCnFAL','addListeners','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','FvjBD','stop-grid-called','existsSync','body','clusterRegion','usage','replace','Browserstack','eerWC','htQrc','../../config/logger','bstackUsername','4tmakWl','string','desc','debug','builder','password','reconnecting-websocket','xeiuU','info','argv','../../cloudproviders/utils','argXP','nOiXk','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','ERROR','boolean','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','skipTlsCertVerify','pEITW','../../config/constants','jKymV','username','1374660KBZved','parse','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','1645917lpHyEj','2256536bAFuqy','PlZdf','fRIzE','ZAfND','clusterName','2433600TmPCLd','help','options','ncyUd','init-not-called','WebSocket','bstackAccesskey','invalid-grid-id','server-error','25216IfNLJd','PtMEj','stringify','INFO','exit','<PasswordPlaceholder>','Adding\x20Websocket\x20listeners','Soolv','wbaqx','1390yvjqyg','../../utils/instrumentationUtils','tVAet','uEDle','UklBx','cloudProvider'];a21_0x4b29=function(){return _0x156e33;};return a21_0x4b29();}(function(_0x71a1b4,_0x43a877){const _0x5982de=a21_0x3689,_0x35263d=_0x71a1b4();while(!![]){try{const _0x51517e=-parseInt(_0x5982de(0x150))/0x1*(parseInt(_0x5982de(0x178))/0x2)+parseInt(_0x5982de(0x195))/0x3+-parseInt(_0x5982de(0x19e))/0x4*(-parseInt(_0x5982de(0x181))/0x5)+-parseInt(_0x5982de(0x166))/0x6+parseInt(_0x5982de(0x169))/0x7+-parseInt(_0x5982de(0x16a))/0x8+parseInt(_0x5982de(0x16f))/0x9;if(_0x51517e===_0x43a877)break;else _0x35263d['push'](_0x35263d['shift']());}catch(_0x99f333){_0x35263d['push'](_0x35263d['shift']());}}}(a21_0x4b29,0x240d9));function a21_0x3689(_0x3cdfae,_0x4ee34e){const _0x4b29df=a21_0x4b29();return a21_0x3689=function(_0x368926,_0x3f4895){_0x368926=_0x368926-0x147;let _0x2a8f37=_0x4b29df[_0x368926];return _0x2a8f37;},a21_0x3689(_0x3cdfae,_0x4ee34e);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x40d9ca(0x156)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x40d9ca(0x163)),{logger}=require(a21_0x40d9ca(0x14e)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x40d9ca(0x182)),webSocketUtils=require(a21_0x40d9ca(0x194)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x40d9ca(0x15a));exports[a21_0x40d9ca(0x198)]=a21_0x40d9ca(0x19c),exports[a21_0x40d9ca(0x152)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a21_0x40d9ca(0x154)]=function(_0x25dc41){const _0x3a2416=a21_0x40d9ca,_0x30ac57={};_0x30ac57[_0x3a2416(0x183)]=_0x3a2416(0x160),_0x30ac57['jKymV']=_0x3a2416(0x151),_0x30ac57[_0x3a2416(0x14c)]='Skip\x20insecure\x20cert\x20verification.',_0x30ac57[_0x3a2416(0x172)]=_0x3a2416(0x15f),_0x30ac57[_0x3a2416(0x18c)]='help';const _0x3bd76c=_0x30ac57,_0x229dc7={};_0x229dc7[_0x3a2416(0x188)]=_0x3bd76c[_0x3a2416(0x183)],_0x229dc7[_0x3a2416(0x199)]=_0x3bd76c[_0x3a2416(0x164)];const _0x562dd0={};_0x562dd0[_0x3a2416(0x188)]=_0x3bd76c[_0x3a2416(0x14c)],_0x562dd0['type']=_0x3bd76c[_0x3a2416(0x172)],_0x562dd0['default']=![];const _0x5f2200={};return _0x5f2200['grid-id']=_0x229dc7,_0x5f2200['skip-tls-cert-verify']=_0x562dd0,_0x25dc41[_0x3a2416(0x149)](HELP_HEADER_MESSAGE[_0x3a2416(0x189)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3a2416(0x171)](_0x5f2200)[_0x3a2416(0x170)](_0x3bd76c[_0x3a2416(0x18c)])[_0x3a2416(0x159)];},exports[a21_0x40d9ca(0x18f)]=async function(_0x4f2a08){const _0x123b8a=a21_0x40d9ca,_0x3b8542={'uEDle':_0x123b8a(0x15d),'wbaqx':function(_0x3d8513){return _0x3d8513();},'PlZdf':_0x123b8a(0x168),'nOiXk':function(_0x21da04,_0x501a1d,_0x22cdf1,_0xafda93,_0x4f2ae3,_0x52412f,_0x1364f2){return _0x21da04(_0x501a1d,_0x22cdf1,_0xafda93,_0x4f2ae3,_0x52412f,_0x1364f2);},'FvjBD':_0x123b8a(0x1a2),'TZJVx':_0x123b8a(0x173),'iqWza':function(_0x9ee329,_0x358d49,_0x1b88fd,_0x415523,_0x4a2aa0,_0x281592,_0x5786e1){return _0x9ee329(_0x358d49,_0x1b88fd,_0x415523,_0x4a2aa0,_0x281592,_0x5786e1);},'gudyM':_0x123b8a(0x193),'MSyra':_0x123b8a(0x17d),'htQrc':_0x123b8a(0x17e),'Zmusl':function(_0x722126,_0x193948,_0x2dc3fb,_0x5871dc){return _0x722126(_0x193948,_0x2dc3fb,_0x5871dc);},'xeiuU':function(_0x149021,_0x26d069,_0x58f97f,_0x54d459,_0x26e884,_0x521381,_0x138af6){return _0x149021(_0x26d069,_0x58f97f,_0x54d459,_0x26e884,_0x521381,_0x138af6);},'kCtTp':function(_0x76202a,_0xb64457,_0x35e136){return _0x76202a(_0xb64457,_0x35e136);},'TuLEm':function(_0xcd6d0a,_0x4a26db,_0x11ae6b){return _0xcd6d0a(_0x4a26db,_0x11ae6b);},'pEITW':_0x123b8a(0x187),'fRIzE':function(_0x524d83,_0x149ec0){return _0x524d83===_0x149ec0;},'argXP':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gniyT':function(_0x59223e,_0x41daa5,_0x590da2,_0x32845b,_0x26587b,_0x244685,_0x1151c7){return _0x59223e(_0x41daa5,_0x590da2,_0x32845b,_0x26587b,_0x244685,_0x1151c7);},'UklBx':_0x123b8a(0x18d),'ZAfND':function(_0x38e55c,_0x544c25){return _0x38e55c===_0x544c25;},'PtMEj':function(_0x1c7fff,_0xb7b2b6,_0x3892ab,_0x55cf37,_0x43ae7c,_0x475d98,_0x2df36a){return _0x1c7fff(_0xb7b2b6,_0x3892ab,_0x55cf37,_0x43ae7c,_0x475d98,_0x2df36a);},'HeBYB':_0x123b8a(0x176),'Soolv':function(_0x1cc346,_0x22d168,_0x2cfca3,_0x44cfa1,_0x5d0687,_0xc192f0,_0x28be24){return _0x1cc346(_0x22d168,_0x2cfca3,_0x44cfa1,_0x5d0687,_0xc192f0,_0x28be24);},'DWyHj':_0x123b8a(0x177)};let _0x352480;try{!_0x4f2a08[_0x123b8a(0x18a)]&&(logger['error'](_0x3b8542[_0x123b8a(0x184)]),process['exit'](0x1));!fs[_0x123b8a(0x1a3)](_0x3b8542[_0x123b8a(0x180)](getCredentialsPath))&&(logger[_0x123b8a(0x196)](_0x3b8542[_0x123b8a(0x16b)]),await _0x3b8542[_0x123b8a(0x15c)](sendInstrumentationEvent,_0x4f2a08,_0x3b8542['FvjBD'],messageTypes['ERROR'],_0x3b8542[_0x123b8a(0x192)],null,_0x4f2a08),process[_0x123b8a(0x17c)](0x1));logger[_0x123b8a(0x158)]('Stopping\x20grid\x20'+_0x4f2a08[_0x123b8a(0x18a)]),await _0x3b8542['iqWza'](sendInstrumentationEvent,_0x4f2a08,_0x3b8542[_0x123b8a(0x1a1)],messageTypes[_0x123b8a(0x17b)],null,null,_0x4f2a08);const _0x110ae8=JSON[_0x123b8a(0x167)](fs[_0x123b8a(0x190)](_0x3b8542[_0x123b8a(0x180)](getCredentialsPath)));global_registry[_0x123b8a(0x14f)]=_0x110ae8[_0x123b8a(0x14b)][_0x123b8a(0x165)],global_registry[_0x123b8a(0x175)]=_0x110ae8[_0x123b8a(0x14b)][_0x123b8a(0x155)];const _0x2f4030=WS_ENDPOINT[_0x123b8a(0x14a)](_0x3b8542[_0x123b8a(0x197)],_0x110ae8[_0x123b8a(0x14b)][_0x123b8a(0x165)])[_0x123b8a(0x14a)](_0x3b8542[_0x123b8a(0x18b)],_0x110ae8[_0x123b8a(0x14b)][_0x123b8a(0x155)]),_0x1c0687={};_0x1c0687[_0x123b8a(0x174)]=ws,_0x1c0687[_0x123b8a(0x191)]=0x36ee80,_0x352480=new ReconnectingWebSocket(_0x2f4030,[],_0x1c0687),logger[_0x123b8a(0x153)](_0x3b8542[_0x123b8a(0x14d)]),webSocketUtils[_0x123b8a(0x19f)](_0x352480,_0x4f2a08['user'],_0x4f2a08['password']);const [_0x5cf423,_0x2d3a45]=await _0x3b8542['Zmusl'](getGridDetails,_0x110ae8['Browserstack']['username'],_0x110ae8[_0x123b8a(0x14b)][_0x123b8a(0x155)],_0x4f2a08['gridId']);if(_0x2d3a45){const _0xb1e63d=_0x2d3a45[_0x123b8a(0x158)];global_registry[_0x123b8a(0x186)]=_0xb1e63d[_0x123b8a(0x186)],global_registry[_0x123b8a(0x148)]=_0xb1e63d['region'],global_registry[_0x123b8a(0x16e)]=_0xb1e63d[_0x123b8a(0x16e)];const _0x1656ff=await _0x3b8542[_0x123b8a(0x157)](getCloudProviderObject,_0xb1e63d[_0x123b8a(0x186)],_0xb1e63d[_0x123b8a(0x16e)],_0xb1e63d['name'],_0x352480,webSocketUtils,_0x4f2a08),[_0x201762,_0x31acf7,_0x5a08a6,_0x3641a1,_0x3af184,_0x6758c9]=await _0x3b8542['kCtTp'](createK8sClient,_0x1656ff,_0x4f2a08[_0x123b8a(0x161)]);await _0x3b8542['TuLEm'](scaleDownHubDeployment,_0x31acf7,_0xb1e63d[_0x123b8a(0x19b)]),logger[_0x123b8a(0x158)](_0x3b8542[_0x123b8a(0x162)]),process[_0x123b8a(0x17c)](0x0);}_0x3b8542[_0x123b8a(0x16c)](_0x5cf423['statusCode'],0x191)&&(logger[_0x123b8a(0x196)](_0x3b8542[_0x123b8a(0x15b)]),await _0x3b8542['gniyT'](sendInstrumentationEvent,_0x4f2a08,_0x3b8542[_0x123b8a(0x1a1)],messageTypes[_0x123b8a(0x15e)],_0x3b8542[_0x123b8a(0x185)],null,_0x4f2a08),process['exit'](0x1)),_0x3b8542[_0x123b8a(0x16d)](_0x5cf423[_0x123b8a(0x18e)],0x190)&&(logger['error'](JSON['parse'](_0x5cf423[_0x123b8a(0x147)])['message']),await _0x3b8542[_0x123b8a(0x179)](sendInstrumentationEvent,_0x4f2a08,_0x3b8542[_0x123b8a(0x1a1)],messageTypes['ERROR'],_0x3b8542['HeBYB'],null,_0x4f2a08),process[_0x123b8a(0x17c)](0x1)),logger[_0x123b8a(0x196)](_0x123b8a(0x19a)+JSON['stringify'](_0x5cf423)),await _0x3b8542[_0x123b8a(0x17f)](sendInstrumentationEvent,_0x4f2a08,_0x3b8542['FvjBD'],messageTypes[_0x123b8a(0x15e)],_0x3b8542[_0x123b8a(0x19d)],_0x5cf423,_0x4f2a08),process[_0x123b8a(0x17c)](0x1);}catch(_0x2fb049){const _0x4e1291=_0x123b8a(0x1a0)+_0x2fb049+'\x20\x0a'+JSON[_0x123b8a(0x17a)](_0x2fb049['stack'])+'\x20';logger['error'](_0x4e1291),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x121bae=a22_0x59fb;(function(_0x2fbd97,_0x13f30a){const _0x5eff97=a22_0x59fb,_0x3b7527=_0x2fbd97();while(!![]){try{const _0x32026d=parseInt(_0x5eff97(0xf8))/0x1+parseInt(_0x5eff97(0x109))/0x2*(parseInt(_0x5eff97(0xfc))/0x3)+-parseInt(_0x5eff97(0xcc))/0x4*(parseInt(_0x5eff97(0xe9))/0x5)+parseInt(_0x5eff97(0xd1))/0x6*(parseInt(_0x5eff97(0xf4))/0x7)+parseInt(_0x5eff97(0xbb))/0x8+-parseInt(_0x5eff97(0xc0))/0x9+-parseInt(_0x5eff97(0xb8))/0xa;if(_0x32026d===_0x13f30a)break;else _0x3b7527['push'](_0x3b7527['shift']());}catch(_0x3e3841){_0x3b7527['push'](_0x3b7527['shift']());}}}(a22_0x49b6,0x391b9),require(a22_0x121bae(0xe5))['config']());let gridURL=a22_0x121bae(0xf5),bsApiUrl=a22_0x121bae(0x107),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x121bae(0xc9)][a22_0x121bae(0xbc)]||a22_0x121bae(0xd3))['toLowerCase']();if(_env===a22_0x121bae(0xf9)||_env===a22_0x121bae(0xe7))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x121bae(0xbe)||_env==='pre-prod')&&(gridURL=a22_0x121bae(0xe6),bsApiUrl=a22_0x121bae(0xeb),agApiUrl=a22_0x121bae(0xca));exports[a22_0x121bae(0x10b)]=process[a22_0x121bae(0xc9)][a22_0x121bae(0x10b)]||gridURL,exports['BS_API_URL']=process[a22_0x121bae(0xc9)][a22_0x121bae(0xcb)]||bsApiUrl,exports[a22_0x121bae(0xbd)]=process['env'][a22_0x121bae(0xbd)]||agApiUrl,exports[a22_0x121bae(0xf0)]=a22_0x121bae(0xee)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports['CP_CONFIG_FILE']=a22_0x121bae(0xff),exports[a22_0x121bae(0xcd)]=a22_0x121bae(0x102),exports['DEFAULT_GRID_NAME']=a22_0x121bae(0xc1),exports['AWS']=a22_0x121bae(0xf1),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x121bae(0xdf)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x121bae(0x106)]=a22_0x121bae(0xc8),exports['TURBOSCALE_DEPLOYMENT']=a22_0x121bae(0xb4),exports[a22_0x121bae(0x103)]=a22_0x121bae(0xfb),exports[a22_0x121bae(0x101)]=a22_0x121bae(0xc3),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x121bae(0xd8)],this[a22_0x121bae(0x103)],this[a22_0x121bae(0x101)]];const a22_0x70a7bb={};a22_0x70a7bb['Key']=a22_0x121bae(0xc5),a22_0x70a7bb['Value']=a22_0x121bae(0xb5);const a22_0x4ff84c={};function a22_0x59fb(_0x2eb033,_0x187245){const _0x49b6d2=a22_0x49b6();return a22_0x59fb=function(_0x59fb28,_0x512924){_0x59fb28=_0x59fb28-0xb4;let _0x13dc38=_0x49b6d2[_0x59fb28];return _0x13dc38;},a22_0x59fb(_0x2eb033,_0x187245);}a22_0x4ff84c[a22_0x121bae(0xc4)]=a22_0x121bae(0xe0),a22_0x4ff84c[a22_0x121bae(0x112)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x70a7bb,a22_0x4ff84c];if(process[a22_0x121bae(0xc9)]['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process['env'][a22_0x121bae(0x114)][a22_0x121bae(0x110)](',');parsedTags[a22_0x121bae(0xb9)](_0x1ea331=>{const _0x471c15=a22_0x121bae,_0x21dfef=_0x1ea331[_0x471c15(0x110)](':'),_0x335f62={};_0x335f62[_0x471c15(0xc4)]=_0x21dfef[0x0],_0x335f62['Value']=_0x21dfef[0x1],common_hst_tags_list[_0x471c15(0xfd)](_0x335f62);});}exports[a22_0x121bae(0x108)]=common_hst_tags_list;const a22_0x5675fb={};a22_0x5675fb[a22_0x121bae(0xc5)]=a22_0x121bae(0xb5),a22_0x5675fb[a22_0x121bae(0xe0)]=a22_0x121bae(0xc7),exports[a22_0x121bae(0x100)]=a22_0x5675fb,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];function a22_0x49b6(){const _0xeb8e25=['grid-profile','GRID_URL','wss://','global_registry','WS_ENDPOINT','aws','unknown','HELP_FOOTER_MESSAGE','399juGfbA','grid.browserstack.com','start','gridUrl','19430PhwoZx','staging','CLI_ARGS_REGEX','azure','1275YunsrY','push','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','credentials','HST_CLUSTER_TAGS','GCP','BrowserStackIAMUser','AZURE','HELP_HEADER_MESSAGE','warning','CLUSTER_HUB_HA_STACK_NAME','api.browserstack.com','COMMON_HST_TAGS','2076FiXomo','delete','DASHBOARD_ENDPOINT','[REDACTED]','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','REDACTED','cliRunFinished','split','root','Value','REGION','TURBOSCALE_CUSTOM_TAGS','MessageDescription','CLUSTER','configure','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','browserstack-turboscale-grid','BrowserStack','messageTypes','ERROR','6131490NlkWYx','forEach','error','2362152ejyDIg','BROWSERSTACK_ENV','AG_API_URL','preprod','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','197280nywViU','high-scale-grid','success','gcp','Key','browserstack:managedBy','LINK_MESSAGE','BrowserStack-Automate-TurboScale','BSTACK-ATS-CLUSTER-HUB-HA','env','grid-api-preprod.bsstag.com','BS_API_URL','948dtEown','IAM_USER_NAME','gridProfile','CLI_RUN_STARTED','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','29322MFPmFf','INFO','prod','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','us-east-1','grid','NULL','AWS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','connect','high-scale-grid-cluster','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','CLI_RUN_FINISHED','CLUSTER_AUTOSCALER_STACK_NAME','browserstack:service','list','resourceInfo','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','pre-check','dotenv','grid-preprod.bsstag.com','stag','cliRunStarted','3490eeBbms','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','api-preprod.bsstag.com'];a22_0x49b6=function(){return _0xeb8e25;};return a22_0x49b6();}const a22_0x2f019b={};a22_0x2f019b['LOG']='log',a22_0x2f019b['RESOURCES']=a22_0x121bae(0xe2),a22_0x2f019b[a22_0x121bae(0xed)]=a22_0x121bae(0xf7),a22_0x2f019b[a22_0x121bae(0xcf)]=a22_0x121bae(0xe8),a22_0x2f019b[a22_0x121bae(0xde)]=a22_0x121bae(0x10f),exports['WS_EVENTS']=a22_0x2f019b,exports[a22_0x121bae(0xef)]={},exports[a22_0x121bae(0xc6)]=a22_0x121bae(0x10d);const a22_0x1cde14={};a22_0x1cde14[a22_0x121bae(0x111)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this['LINK_MESSAGE'],a22_0x1cde14['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x121bae(0xc6)],a22_0x1cde14[a22_0x121bae(0x117)]=a22_0x121bae(0xe3)+this[a22_0x121bae(0xc6)],a22_0x1cde14['create']=a22_0x121bae(0xd4)+this['LINK_MESSAGE'],a22_0x1cde14[a22_0x121bae(0xe1)]={},a22_0x1cde14[a22_0x121bae(0x10a)]=a22_0x121bae(0xea)+this['LINK_MESSAGE'],a22_0x1cde14[a22_0x121bae(0xdb)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x121bae(0xc6)],a22_0x1cde14[a22_0x121bae(0xf6)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x1cde14['stop']=a22_0x121bae(0xbf)+this[a22_0x121bae(0xc6)],a22_0x1cde14['pre_check']=a22_0x121bae(0x119)+this['LINK_MESSAGE'],a22_0x1cde14[a22_0x121bae(0xe1)]['root']=a22_0x121bae(0xd9)+this[a22_0x121bae(0xc6)],a22_0x1cde14[a22_0x121bae(0xe1)][a22_0x121bae(0xd6)]=a22_0x121bae(0xda)+this[a22_0x121bae(0xc6)],a22_0x1cde14[a22_0x121bae(0xe1)][a22_0x121bae(0xce)]=a22_0x121bae(0x118)+this[a22_0x121bae(0xc6)],exports[a22_0x121bae(0x104)]=a22_0x1cde14,exports[a22_0x121bae(0xf3)]=a22_0x121bae(0xd0);const a22_0x392ef6={};a22_0x392ef6['SUCCESS']=a22_0x121bae(0xc2),a22_0x392ef6[a22_0x121bae(0xb7)]=a22_0x121bae(0xba),a22_0x392ef6[a22_0x121bae(0xd2)]='info',a22_0x392ef6['WARNING']=a22_0x121bae(0x105),a22_0x392ef6['UNKNOWN']=a22_0x121bae(0xf2),a22_0x392ef6[a22_0x121bae(0xd7)]=null,exports[a22_0x121bae(0xb6)]=a22_0x392ef6,exports[a22_0x121bae(0xfa)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x121bae(0x10e)]=a22_0x121bae(0x10c);const a22_0xea27bb={};a22_0xea27bb[a22_0x121bae(0xec)]=a22_0x121bae(0xfe);const a22_0x24bd34={};a22_0x24bd34[a22_0x121bae(0xe4)]=a22_0xea27bb,exports[a22_0x121bae(0x115)]=a22_0x24bd34,exports['TRIAL_GRID_URL']=a22_0x121bae(0xdd);const a22_0x155848={};a22_0x155848[a22_0x121bae(0x116)]=a22_0x121bae(0xdc),a22_0x155848['CLOUD_PROVIDER']=a22_0x121bae(0xf1),a22_0x155848[a22_0x121bae(0x113)]=a22_0x121bae(0xd5),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x155848;
1
+ const a22_0x48eb96=a22_0x40c9;(function(_0x5e1d05,_0x3725aa){const _0x2e3c67=a22_0x40c9,_0x5544aa=_0x5e1d05();while(!![]){try{const _0x40961b=-parseInt(_0x2e3c67(0x17b))/0x1*(-parseInt(_0x2e3c67(0x1c9))/0x2)+-parseInt(_0x2e3c67(0x1b9))/0x3*(parseInt(_0x2e3c67(0x1c5))/0x4)+parseInt(_0x2e3c67(0x1e1))/0x5+-parseInt(_0x2e3c67(0x1c1))/0x6*(-parseInt(_0x2e3c67(0x1be))/0x7)+-parseInt(_0x2e3c67(0x1cd))/0x8*(-parseInt(_0x2e3c67(0x1dd))/0x9)+-parseInt(_0x2e3c67(0x1b2))/0xa*(-parseInt(_0x2e3c67(0x1aa))/0xb)+-parseInt(_0x2e3c67(0x18a))/0xc;if(_0x40961b===_0x3725aa)break;else _0x5544aa['push'](_0x5544aa['shift']());}catch(_0x3195cb){_0x5544aa['push'](_0x5544aa['shift']());}}}(a22_0x5537,0x5ccc1),require(a22_0x48eb96(0x1b3))[a22_0x48eb96(0x1a1)]());let gridURL=a22_0x48eb96(0x1cc),bsApiUrl=a22_0x48eb96(0x180),agApiUrl=a22_0x48eb96(0x175);const _env=(process[a22_0x48eb96(0x1a9)][a22_0x48eb96(0x17e)]||a22_0x48eb96(0x174))[a22_0x48eb96(0x1de)]();if(_env===a22_0x48eb96(0x1a6)||_env===a22_0x48eb96(0x1bd))gridURL=a22_0x48eb96(0x1d7),bsApiUrl=a22_0x48eb96(0x1a3),agApiUrl=a22_0x48eb96(0x1b5);else(_env===a22_0x48eb96(0x187)||_env===a22_0x48eb96(0x1ae))&&(gridURL=a22_0x48eb96(0x1e6),bsApiUrl=a22_0x48eb96(0x1b6),agApiUrl=a22_0x48eb96(0x181));exports[a22_0x48eb96(0x1b7)]=process[a22_0x48eb96(0x1a9)][a22_0x48eb96(0x1b7)]||gridURL,exports[a22_0x48eb96(0x193)]=process[a22_0x48eb96(0x1a9)][a22_0x48eb96(0x193)]||bsApiUrl,exports['AG_API_URL']=process['env'][a22_0x48eb96(0x1e2)]||agApiUrl,exports[a22_0x48eb96(0x186)]='wss://'+this[a22_0x48eb96(0x1e2)]+a22_0x48eb96(0x18f),exports[a22_0x48eb96(0x18b)]=a22_0x48eb96(0x176),exports[a22_0x48eb96(0x1d4)]='BrowserStackIAMUser',exports[a22_0x48eb96(0x1ba)]=a22_0x48eb96(0x17a),exports[a22_0x48eb96(0x178)]=a22_0x48eb96(0x1af),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x48eb96(0x173)]=a22_0x48eb96(0x1e4),exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x48eb96(0x1ca),exports[a22_0x48eb96(0x184)]=a22_0x48eb96(0x1c6),exports[a22_0x48eb96(0x18c)]=a22_0x48eb96(0x1c8),exports['GCP']=a22_0x48eb96(0x1d5),exports[a22_0x48eb96(0x182)]=[this[a22_0x48eb96(0x178)],this['AZURE'],this[a22_0x48eb96(0x19a)]];const a22_0x2344ec={};a22_0x2344ec[a22_0x48eb96(0x196)]=a22_0x48eb96(0x1ad),a22_0x2344ec['Value']='BrowserStack';const a22_0x48e17c={};function a22_0x40c9(_0x22cf6b,_0x3ec16a){const _0x5537d5=a22_0x5537();return a22_0x40c9=function(_0x40c966,_0x5210e1){_0x40c966=_0x40c966-0x173;let _0x17bd2e=_0x5537d5[_0x40c966];return _0x17bd2e;},a22_0x40c9(_0x22cf6b,_0x3ec16a);}a22_0x48e17c[a22_0x48eb96(0x196)]=a22_0x48eb96(0x1a2),a22_0x48e17c[a22_0x48eb96(0x1dc)]=a22_0x48eb96(0x1a5);const common_hst_tags_list=[a22_0x2344ec,a22_0x48e17c];if(process[a22_0x48eb96(0x1a9)][a22_0x48eb96(0x177)]){const parsedTags=process[a22_0x48eb96(0x1a9)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x48eb96(0x185)](',');parsedTags['forEach'](_0x1eec57=>{const _0x13cb85=a22_0x48eb96,_0x4979fd=_0x1eec57[_0x13cb85(0x185)](':'),_0x5042c1={};_0x5042c1['Key']=_0x4979fd[0x0],_0x5042c1[_0x13cb85(0x1dc)]=_0x4979fd[0x1],common_hst_tags_list['push'](_0x5042c1);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x1d5cf9={};a22_0x1d5cf9[a22_0x48eb96(0x1ad)]=a22_0x48eb96(0x1ac),a22_0x1d5cf9[a22_0x48eb96(0x1a2)]=a22_0x48eb96(0x1a5),exports[a22_0x48eb96(0x19d)]=a22_0x1d5cf9,exports[a22_0x48eb96(0x1d1)]=[this[a22_0x48eb96(0x178)]];const a22_0xd38c9e={};a22_0xd38c9e[a22_0x48eb96(0x1d0)]=a22_0x48eb96(0x1c0),a22_0xd38c9e[a22_0x48eb96(0x1bc)]=a22_0x48eb96(0x1cf),a22_0xd38c9e[a22_0x48eb96(0x188)]=a22_0x48eb96(0x179),a22_0xd38c9e[a22_0x48eb96(0x1e7)]=a22_0x48eb96(0x195),a22_0xd38c9e['CLI_RUN_FINISHED']=a22_0x48eb96(0x1d2),exports[a22_0x48eb96(0x1e0)]=a22_0xd38c9e,exports['global_registry']={},exports[a22_0x48eb96(0x19b)]=a22_0x48eb96(0x190);const a22_0x10225b={};a22_0x10225b[a22_0x48eb96(0x1d8)]=a22_0x48eb96(0x1a4)+this[a22_0x48eb96(0x19b)],a22_0x10225b[a22_0x48eb96(0x1bb)]=a22_0x48eb96(0x1d3)+this['LINK_MESSAGE'],a22_0x10225b[a22_0x48eb96(0x1d6)]=a22_0x48eb96(0x17d)+this['LINK_MESSAGE'],a22_0x10225b['create']=a22_0x48eb96(0x17f)+this['LINK_MESSAGE'],a22_0x10225b[a22_0x48eb96(0x19c)]={},a22_0x10225b[a22_0x48eb96(0x1db)]=a22_0x48eb96(0x183)+this[a22_0x48eb96(0x19b)],a22_0x10225b[a22_0x48eb96(0x1c2)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a22_0x48eb96(0x19b)],a22_0x10225b[a22_0x48eb96(0x19e)]=a22_0x48eb96(0x1cb)+this[a22_0x48eb96(0x19b)],a22_0x10225b['stop']=a22_0x48eb96(0x1a0)+this['LINK_MESSAGE'],a22_0x10225b['pre_check']=a22_0x48eb96(0x1d9)+this[a22_0x48eb96(0x19b)],a22_0x10225b[a22_0x48eb96(0x19c)]['root']=a22_0x48eb96(0x189)+this[a22_0x48eb96(0x19b)],a22_0x10225b[a22_0x48eb96(0x19c)][a22_0x48eb96(0x17c)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x10225b[a22_0x48eb96(0x19c)][a22_0x48eb96(0x1e5)]=a22_0x48eb96(0x1b8)+this[a22_0x48eb96(0x19b)],exports['HELP_HEADER_MESSAGE']=a22_0x10225b,exports[a22_0x48eb96(0x1e3)]=a22_0x48eb96(0x1df);const a22_0x278020={};a22_0x278020[a22_0x48eb96(0x1ce)]=a22_0x48eb96(0x1a7),a22_0x278020[a22_0x48eb96(0x1b0)]=a22_0x48eb96(0x1c3),a22_0x278020['INFO']='info',a22_0x278020[a22_0x48eb96(0x194)]='warning',a22_0x278020[a22_0x48eb96(0x199)]=a22_0x48eb96(0x18e),a22_0x278020[a22_0x48eb96(0x1c7)]=null,exports[a22_0x48eb96(0x1ab)]=a22_0x278020,exports[a22_0x48eb96(0x18d)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x48eb96(0x1b4)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x48eb96(0x19f)]=a22_0x48eb96(0x1a8);const a22_0x37fc25={};a22_0x37fc25[a22_0x48eb96(0x197)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x152d2a={};a22_0x152d2a[a22_0x48eb96(0x1b1)]=a22_0x37fc25,exports[a22_0x48eb96(0x1da)]=a22_0x152d2a,exports['TRIAL_GRID_URL']=a22_0x48eb96(0x192);function a22_0x5537(){const _0x3040c7=['\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','TURBOSCALE_DEPLOYMENT','split','WS_ENDPOINT','preprod','GRID_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','6188844bjugfY','CP_CONFIG_FILE','AZURE','CLI_ARGS_REGEX','unknown','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','high-scale-grid-cluster','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BS_API_URL','WARNING','cliRunStarted','Key','grid-profile','CLUSTER','UNKNOWN','GCP','LINK_MESSAGE','list','HST_CLUSTER_TAGS','start','REDACTED','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','config','browserstack:service','api-devhst.bsstag.com','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','BrowserStack-Automate-TurboScale','staging','success','[REDACTED]','env','3311rxftMD','messageTypes','BrowserStack','browserstack:managedBy','pre-prod','aws','ERROR','pre-check','19990CGRJwp','dotenv','RAW_ARGS_REGEX','grid-api-devhst.bsstag.com','api-preprod.bsstag.com','DASHBOARD_ENDPOINT','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','465EgrHZv','DEFAULT_GRID_NAME','init','RESOURCES','stag','147IBqBim','CLOUD_PROVIDER','log','79428GmekZh','connect','error','us-east-1','10412fKxgyN','browserstack-turboscale-grid','NULL','azure','9778YLQBla','BSTACK-ATS-CLUSTER-HUB-HA','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','grid.browserstack.com','8GxsuWx','SUCCESS','resourceInfo','LOG','SUPPORTED_CLOUD_PROVIDERS','cliRunFinished','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','IAM_USER_NAME','gcp','configure','grid-devhst.bsstag.com','root','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','MessageDescription','delete','Value','821925KwSERC','toLowerCase','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','WS_EVENTS','1201375WTDcBF','AG_API_URL','HELP_FOOTER_MESSAGE','BSTACK-ATS-CLUSTER-AUTOSCALER','gridProfile','grid-preprod.bsstag.com','CLI_RUN_STARTED','CLUSTER_AUTOSCALER_STACK_NAME','prod','grid-api.browserstack.com','credentials','TURBOSCALE_CUSTOM_TAGS','AWS','gridUrl','high-scale-grid','18HKTsOD','grid','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BROWSERSTACK_ENV','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','api.browserstack.com','grid-api-preprod.bsstag.com','ALL_SUPPORTED_CLOUD_PROVIDERS'];a22_0x5537=function(){return _0x3040c7;};return a22_0x5537();}const a22_0x2dbdd6={};a22_0x2dbdd6[a22_0x48eb96(0x198)]=a22_0x48eb96(0x191),a22_0x2dbdd6[a22_0x48eb96(0x1bf)]=a22_0x48eb96(0x1af),a22_0x2dbdd6['REGION']=a22_0x48eb96(0x1c4),exports['DEFAULT_CLUSTER_DETAILS']=a22_0x2dbdd6;
@@ -1 +1 @@
1
- const a23_0x448708=a23_0x15db;function a23_0x15db(_0x38c908,_0x33d69c){const _0x2e10a5=a23_0x2e10();return a23_0x15db=function(_0x15db07,_0xd1df75){_0x15db07=_0x15db07-0x112;let _0x10c3ff=_0x2e10a5[_0x15db07];return _0x10c3ff;},a23_0x15db(_0x38c908,_0x33d69c);}(function(_0x2aa9e3,_0x5e31d9){const _0x3587d0=a23_0x15db,_0x142d29=_0x2aa9e3();while(!![]){try{const _0x2b7afe=parseInt(_0x3587d0(0x115))/0x1+-parseInt(_0x3587d0(0x12f))/0x2+-parseInt(_0x3587d0(0x12a))/0x3*(parseInt(_0x3587d0(0x11d))/0x4)+-parseInt(_0x3587d0(0x120))/0x5+-parseInt(_0x3587d0(0x11f))/0x6*(-parseInt(_0x3587d0(0x12d))/0x7)+-parseInt(_0x3587d0(0x124))/0x8*(-parseInt(_0x3587d0(0x118))/0x9)+parseInt(_0x3587d0(0x127))/0xa*(parseInt(_0x3587d0(0x121))/0xb);if(_0x2b7afe===_0x5e31d9)break;else _0x142d29['push'](_0x142d29['shift']());}catch(_0x2833c0){_0x142d29['push'](_0x142d29['shift']());}}}(a23_0x2e10,0xd6c26));const winston=require(a23_0x448708(0x119)),fs=require('fs'),path=require('path'),logDir=a23_0x448708(0x116);!fs[a23_0x448708(0x11a)](logDir)&&fs[a23_0x448708(0x114)](logDir);function a23_0x2e10(){const _0x1e9a18=['existsSync','transports','timestamp','4qFDtns','File','6iBSxGn','5498930teydpG','799733NUDkZW','colorize','events.log','31304tymFGB','name','message','190RwuCYl','console.info','\x20-\x20','18549BrUwgi','format','YYYY-MM-DD\x20HH:mm:ss','1326542MKDaji','level','2649608dnDWws','debug','combine','mkdirSync','632185iSxfHV','log','createLogger','2547kANwLW','winston'];a23_0x2e10=function(){return _0x1e9a18;};return a23_0x2e10();}const a23_0x54da75={};a23_0x54da75[a23_0x448708(0x12b)]=a23_0x448708(0x12c);const a23_0x1f4037={};a23_0x1f4037[a23_0x448708(0x12e)]=!![];const a23_0x4ecf2e={};a23_0x4ecf2e[a23_0x448708(0x125)]=a23_0x448708(0x128),exports['logger']=new winston[(a23_0x448708(0x117))]({'format':winston['format'][a23_0x448708(0x113)](winston['format'][a23_0x448708(0x11c)](a23_0x54da75),winston[a23_0x448708(0x12b)][a23_0x448708(0x122)](a23_0x1f4037),winston[a23_0x448708(0x12b)]['printf'](_0x44d04d=>_0x44d04d[a23_0x448708(0x11c)]+a23_0x448708(0x129)+_0x44d04d[a23_0x448708(0x12e)]+':\x20'+_0x44d04d[a23_0x448708(0x126)])),'transports':[new winston[(a23_0x448708(0x11b))]['Console'](a23_0x4ecf2e),new winston[(a23_0x448708(0x11b))][(a23_0x448708(0x11e))]({'filename':path['join'](logDir,a23_0x448708(0x123)),'level':a23_0x448708(0x112)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x448708(0x11b))][(a23_0x448708(0x11e))]({'filename':path['join'](logDir,'usage.log'),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x448708(0x117))](winstonFileLoggerParams);
1
+ const a23_0xa92c96=a23_0x2b4c;(function(_0x35bc95,_0x5c5155){const _0xdcba0d=a23_0x2b4c,_0x2fe310=_0x35bc95();while(!![]){try{const _0x1c622f=-parseInt(_0xdcba0d(0xeb))/0x1+-parseInt(_0xdcba0d(0xf5))/0x2*(-parseInt(_0xdcba0d(0xe7))/0x3)+-parseInt(_0xdcba0d(0x100))/0x4*(parseInt(_0xdcba0d(0xf8))/0x5)+parseInt(_0xdcba0d(0xe3))/0x6*(parseInt(_0xdcba0d(0xe9))/0x7)+-parseInt(_0xdcba0d(0xff))/0x8*(-parseInt(_0xdcba0d(0xfb))/0x9)+-parseInt(_0xdcba0d(0xe6))/0xa*(-parseInt(_0xdcba0d(0xf2))/0xb)+-parseInt(_0xdcba0d(0xe5))/0xc*(parseInt(_0xdcba0d(0xf7))/0xd);if(_0x1c622f===_0x5c5155)break;else _0x2fe310['push'](_0x2fe310['shift']());}catch(_0x348eba){_0x2fe310['push'](_0x2fe310['shift']());}}}(a23_0x2784,0xe3580));const winston=require('winston'),fs=require('fs'),path=require('path'),logDir='log';!fs['existsSync'](logDir)&&fs[a23_0xa92c96(0xf6)](logDir);const a23_0x431474={};a23_0x431474[a23_0xa92c96(0xfc)]='YYYY-MM-DD\x20HH:mm:ss';const a23_0x55eb66={};a23_0x55eb66[a23_0xa92c96(0xfd)]=!![];const a23_0x5c515b={};function a23_0x2784(){const _0x1e4246=['File','3928482ZVavwD','format','level','\x20-\x20','24kWiyHW','24zyHYTk','usage.log','2364000YZmrEd','message','660pTcnxD','13476420MJkPJi','3IqvFCv','combine','21xFbryU','fileLogger','165369EPiLdc','transports','name','colorize','join','debug','createLogger','11ZKIFjd','printf','timestamp','640694bSRsaL','mkdirSync','307528AHTzmN','1468195hizNLs','events.log'];a23_0x2784=function(){return _0x1e4246;};return a23_0x2784();}a23_0x5c515b[a23_0xa92c96(0xed)]='console.info',exports['logger']=new winston[(a23_0xa92c96(0xf1))]({'format':winston[a23_0xa92c96(0xfc)][a23_0xa92c96(0xe8)](winston[a23_0xa92c96(0xfc)][a23_0xa92c96(0xf4)](a23_0x431474),winston['format'][a23_0xa92c96(0xee)](a23_0x55eb66),winston['format'][a23_0xa92c96(0xf3)](_0x3f91d2=>_0x3f91d2['timestamp']+a23_0xa92c96(0xfe)+_0x3f91d2[a23_0xa92c96(0xfd)]+':\x20'+_0x3f91d2[a23_0xa92c96(0xe4)])),'transports':[new winston[(a23_0xa92c96(0xec))]['Console'](a23_0x5c515b),new winston[(a23_0xa92c96(0xec))][(a23_0xa92c96(0xfa))]({'filename':path[a23_0xa92c96(0xef)](logDir,a23_0xa92c96(0xf9)),'level':a23_0xa92c96(0xf0)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0xa92c96(0xec))][(a23_0xa92c96(0xfa))]({'filename':path[a23_0xa92c96(0xef)](logDir,a23_0xa92c96(0x101)),'level':a23_0xa92c96(0xf0)})]};function a23_0x2b4c(_0x3bf31f,_0x23a075){const _0x278432=a23_0x2784();return a23_0x2b4c=function(_0x2b4c6d,_0x381236){_0x2b4c6d=_0x2b4c6d-0xe3;let _0x566945=_0x278432[_0x2b4c6d];return _0x566945;},a23_0x2b4c(_0x3bf31f,_0x23a075);}exports[a23_0xa92c96(0xea)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x5147cb=a24_0x1740;function a24_0x42f9(){const _0x24a8ec=['exports','12EqadEK','demandCommand','./config/constants','6iQcaTU','env','commands','3YSpgDr','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','DbcvY','5488752lBdmoW','usage','1879124OCtKtU','10431146bjKAAE','4067210TlvbMg','9ORosNR','zmOLX','root','2742050mRFUgT','410538SPdDPL','1095073JZicfr','commandDir','3pGsLSz'];a24_0x42f9=function(){return _0x24a8ec;};return a24_0x42f9();}function a24_0x1740(_0x3fd548,_0x5ede5c){const _0x42f908=a24_0x42f9();return a24_0x1740=function(_0x174067,_0x452fdc){_0x174067=_0x174067-0x1a1;let _0x861ece=_0x42f908[_0x174067];return _0x861ece;},a24_0x1740(_0x3fd548,_0x5ede5c);}(function(_0x13e069,_0x57f866){const _0x556545=a24_0x1740,_0x38232c=_0x13e069();while(!![]){try{const _0x3dd478=parseInt(_0x556545(0x1b5))/0x1*(parseInt(_0x556545(0x1aa))/0x2)+-parseInt(_0x556545(0x1ad))/0x3*(-parseInt(_0x556545(0x1a3))/0x4)+-parseInt(_0x556545(0x1a9))/0x5+-parseInt(_0x556545(0x1b2))/0x6*(-parseInt(_0x556545(0x1ab))/0x7)+parseInt(_0x556545(0x1a1))/0x8*(-parseInt(_0x556545(0x1a6))/0x9)+-parseInt(_0x556545(0x1a5))/0xa+parseInt(_0x556545(0x1a4))/0xb*(parseInt(_0x556545(0x1af))/0xc);if(_0x3dd478===_0x57f866)break;else _0x38232c['push'](_0x38232c['shift']());}catch(_0x18fa7c){_0x38232c['push'](_0x38232c['shift']());}}}(a24_0x42f9,0x860e0));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x5147cb(0x1b1));process[a24_0x5147cb(0x1b3)][a24_0x5147cb(0x1b6)]=0x1;function run(_0x3ec219){const _0x2c40c0=a24_0x5147cb,_0x25ad55={};_0x25ad55['zmOLX']=_0x2c40c0(0x1b4),_0x25ad55[_0x2c40c0(0x1b7)]='help';const _0x1ab140=_0x25ad55;_0x3ec219[_0x2c40c0(0x1a2)](HELP_HEADER_MESSAGE[_0x2c40c0(0x1a8)])[_0x2c40c0(0x1ac)](_0x1ab140[_0x2c40c0(0x1a7)])[_0x2c40c0(0x1b0)]()['help'](_0x1ab140[_0x2c40c0(0x1b7)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x5147cb(0x1ae)]=run;
2
+ 'use strict';const a24_0x23c07d=a24_0x2056;(function(_0x2caeba,_0x186c7e){const _0x211cf4=a24_0x2056,_0xd6d45a=_0x2caeba();while(!![]){try{const _0x126f4c=-parseInt(_0x211cf4(0x1b3))/0x1*(parseInt(_0x211cf4(0x1bf))/0x2)+parseInt(_0x211cf4(0x1b6))/0x3*(-parseInt(_0x211cf4(0x1b2))/0x4)+-parseInt(_0x211cf4(0x1c1))/0x5*(parseInt(_0x211cf4(0x1b7))/0x6)+-parseInt(_0x211cf4(0x1c2))/0x7*(-parseInt(_0x211cf4(0x1c3))/0x8)+parseInt(_0x211cf4(0x1b9))/0x9+parseInt(_0x211cf4(0x1c0))/0xa+parseInt(_0x211cf4(0x1bd))/0xb;if(_0x126f4c===_0x186c7e)break;else _0xd6d45a['push'](_0xd6d45a['shift']());}catch(_0x1852fc){_0xd6d45a['push'](_0xd6d45a['shift']());}}}(a24_0x55bb,0x67e09));function a24_0x2056(_0x3179e4,_0x1dcf76){const _0x55bb63=a24_0x55bb();return a24_0x2056=function(_0x2056cf,_0x4e4979){_0x2056cf=_0x2056cf-0x1af;let _0x12ffa3=_0x55bb63[_0x2056cf];return _0x12ffa3;},a24_0x2056(_0x3179e4,_0x1dcf76);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x23c07d(0x1b4));process[a24_0x23c07d(0x1b1)][a24_0x23c07d(0x1c4)]=0x1;function a24_0x55bb(){const _0x7cfe70=['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','commands','commandDir','env','1412176kkzdlM','1Mdagxy','./config/constants','mkytg','3goFMPT','516534oakusi','root','717453KsYCPl','exports','usage','help','9065364VoZlvG','demandCommand','950102RwGrjR','2108740EjlnmS','25czLzuc','1992571JEbJfZ','16KEjFvw'];a24_0x55bb=function(){return _0x7cfe70;};return a24_0x55bb();}function run(_0x1a06ad){const _0x4931ae=a24_0x23c07d,_0x448226={};_0x448226['vGFMf']=_0x4931ae(0x1af),_0x448226[_0x4931ae(0x1b5)]=_0x4931ae(0x1bc);const _0x545e5c=_0x448226;_0x1a06ad[_0x4931ae(0x1bb)](HELP_HEADER_MESSAGE[_0x4931ae(0x1b8)])[_0x4931ae(0x1b0)](_0x545e5c['vGFMf'])[_0x4931ae(0x1be)]()[_0x4931ae(0x1bc)](_0x545e5c['mkytg'])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x23c07d(0x1ba)]=run;