browserstack-node-sdk 1.38.0 → 1.38.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 (171) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  69. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  70. package/src/bin/mocha/command.js +1 -1
  71. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  72. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  73. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  74. package/src/bin/mocha/test.setup.js +1 -1
  75. package/src/bin/nightwatch/command.js +1 -1
  76. package/src/bin/playwright/accessibility-helper.js +1 -1
  77. package/src/bin/playwright/command.js +1 -1
  78. package/src/bin/playwright/globalSetup.js +1 -1
  79. package/src/bin/playwright/mock-process.js +1 -1
  80. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  81. package/src/bin/playwright/patches.js +1 -1
  82. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  83. package/src/bin/playwright/reporter/reporter.js +1 -1
  84. package/src/bin/playwright/reporter/test-details.js +1 -1
  85. package/src/bin/playwright/sessionDetails.js +1 -1
  86. package/src/bin/runner.js +1 -1
  87. package/src/bin/setup.js +1 -1
  88. package/src/bin/test-runner/index.js +1 -1
  89. package/src/bin/test-runner/runTest.js +1 -1
  90. package/src/bin/test-runner/testWorker.js +1 -1
  91. package/src/bin/utils/constants.js +1 -1
  92. package/src/bin/utils/log4jsAppender.js +1 -1
  93. package/src/bin/utils/logPatcher.js +1 -1
  94. package/src/bin/utils/logReportingAPI.js +1 -1
  95. package/src/bin/v2/TestInfo.js +1 -1
  96. package/src/bin/v2/browserstackCLI.js +1 -1
  97. package/src/bin/v2/cliUtils.js +1 -1
  98. package/src/bin/v2/customTagManager.js +1 -1
  99. package/src/bin/v2/eventDispatcher.js +1 -1
  100. package/src/bin/v2/framework/automationFramework.js +1 -1
  101. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  102. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  103. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  104. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  105. package/src/bin/v2/framework/testFramework.js +1 -1
  106. package/src/bin/v2/grpcClient.js +1 -1
  107. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  108. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  109. package/src/bin/v2/instances/trackedContext.js +1 -1
  110. package/src/bin/v2/instances/trackedInstance.js +1 -1
  111. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  112. package/src/bin/v2/modules/baseModule.js +1 -1
  113. package/src/bin/v2/modules/observabilityModule.js +1 -1
  114. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  115. package/src/bin/v2/modules/testhubModule.js +1 -1
  116. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  117. package/src/bin/v2/state/hookState.js +1 -1
  118. package/src/bin/v2/state/testFrameworkState.js +1 -1
  119. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  120. package/src/bin/vanilla-js/command.js +1 -1
  121. package/src/browserStackSdk.js +1 -1
  122. package/src/helpers/BrowserStackSetup.js +1 -1
  123. package/src/helpers/accessibility-automation/constants.js +1 -1
  124. package/src/helpers/accessibility-automation/helper.js +1 -1
  125. package/src/helpers/accessibility-automation/scripts.js +1 -1
  126. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  127. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  128. package/src/helpers/ats/constants.js +1 -1
  129. package/src/helpers/ats/helper.js +1 -1
  130. package/src/helpers/capsMapping.js +1 -1
  131. package/src/helpers/central-scanner/constants.js +1 -1
  132. package/src/helpers/central-scanner/helpers.js +1 -1
  133. package/src/helpers/classLogger.js +1 -1
  134. package/src/helpers/globals.js +1 -1
  135. package/src/helpers/helper.js +1 -1
  136. package/src/helpers/logger.js +1 -1
  137. package/src/helpers/metadata.js +1 -1
  138. package/src/helpers/patchHelper.js +1 -1
  139. package/src/helpers/patchHelpers.js +1 -1
  140. package/src/helpers/percy/Percy.js +1 -1
  141. package/src/helpers/percy/PercyBinary.js +1 -1
  142. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  143. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  144. package/src/helpers/percy/PercySDK.js +1 -1
  145. package/src/helpers/percy/index.js +1 -1
  146. package/src/helpers/percy/utils.js +1 -1
  147. package/src/helpers/performance/constants.js +1 -1
  148. package/src/helpers/performance/performance-tester.js +1 -1
  149. package/src/helpers/processHelper.js +1 -1
  150. package/src/helpers/request-spy.js +1 -1
  151. package/src/helpers/setKeepAlive.js +1 -1
  152. package/src/helpers/test-observability/constants.js +1 -1
  153. package/src/helpers/test-observability/error-handler.js +1 -1
  154. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  155. package/src/helpers/test-observability/sessionHandler.js +1 -1
  156. package/src/helpers/test-observability/utils.js +1 -1
  157. package/src/helpers/test-orchestration/constants.js +1 -1
  158. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  159. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  160. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  161. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  162. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  163. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  164. package/src/helpers/testhub/constants.js +1 -1
  165. package/src/helpers/testhub/testhubHandler.js +1 -1
  166. package/src/helpers/testhub/utils.js +1 -1
  167. package/src/helpers/timeoutPromise.js +1 -1
  168. package/src/helpers/utilities.js +1 -1
  169. package/src/helpers/w3cMapping.js +1 -1
  170. package/src/hubAllocationMethods.js +1 -1
  171. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x44ae(_0x8d1f9f,_0x4c9bc1){const _0x126039=a15_0x1260();return a15_0x44ae=function(_0x44ae52,_0x3dcd72){_0x44ae52=_0x44ae52-0xb9;let _0x22479c=_0x126039[_0x44ae52];return _0x22479c;},a15_0x44ae(_0x8d1f9f,_0x4c9bc1);}const a15_0x30d192=a15_0x44ae;function a15_0x1260(){const _0x32f65f=['qeUre','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','forEach','argv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','allGrids','grid','all-grids','204ERnFvg','593197jahrfd','grid-name','NSSyw','TNKKx','345208xAGgIb','ERROR','1160996ZAGVPD','log','https://','aZCol','420232CKxmQM','password','/packages/cli/get-all-grids','existsSync','bstackUsername','unauthorised','cluster-name','VfmRx','desc','YRhgO','SyzHO','GET','60ulhJYX','parse','table','Failed\x20to\x20list\x20resources!\x20Error:\x20','dJzbP','clusterName','Browserstack','readFileSync','10389840MZtDVK','exit','fSOcT','builder','running','/packages/cli/get-grids','username','grid-id','list-grids-called','../../config/constants','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','list','statusCode','unknown-error','773745uPMDDk','requestId','name','status','hjKLu','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','KTHfw','WbADM','BZywj','uuid','QnpXa','sLXrc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ZGRcW','epilogue','2Srvgmi','queued','AkogI','options','error','../../utils/instrumentationUtils','jZnKS','\x0aFound\x20the\x20following\x20grids:\x0a','mpSnY','99RXyPLQ','AtEIU','server-error','cMXjF','bstackAccesskey','help','3338646tkbRtC','stringify','push','25ZggdAX'];a15_0x1260=function(){return _0x32f65f;};return a15_0x1260();}(function(_0x271fb1,_0x41322f){const _0x1bd297=a15_0x44ae,_0x213011=_0x271fb1();while(!![]){try{const _0x265f83=parseInt(_0x1bd297(0xc7))/0x1*(-parseInt(_0x1bd297(0xe9))/0x2)+-parseInt(_0x1bd297(0xd6))/0x3+parseInt(_0x1bd297(0xe7))/0x4*(parseInt(_0x1bd297(0xd9))/0x5)+-parseInt(_0x1bd297(0xf9))/0x6*(-parseInt(_0x1bd297(0x10f))/0x7)+parseInt(_0x1bd297(0xed))/0x8*(-parseInt(_0x1bd297(0xd0))/0x9)+parseInt(_0x1bd297(0x101))/0xa+parseInt(_0x1bd297(0xe3))/0xb*(parseInt(_0x1bd297(0xe2))/0xc);if(_0x265f83===_0x41322f)break;else _0x213011['push'](_0x213011['shift']());}catch(_0x32ff70){_0x213011['push'](_0x213011['shift']());}}}(a15_0x1260,0x9c78a));const fs=require('fs'),got=require('got'),{table}=require(a15_0x30d192(0xfb)),{v4:uuidv4}=require(a15_0x30d192(0xc1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x30d192(0x10a)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x30d192(0xcc));exports['command']='grids',exports[a15_0x30d192(0xf5)]=a15_0x30d192(0xbd),exports[a15_0x30d192(0x104)]=function(_0x2ce564){const _0x53907f=a15_0x30d192,_0x50a304={};_0x50a304[_0x53907f(0xe5)]=_0x53907f(0x10b),_0x50a304['uUqGZ']='boolean',_0x50a304[_0x53907f(0xf4)]=_0x53907f(0xd5);const _0x15c737=_0x50a304,_0x3be212={};_0x3be212['description']=_0x15c737['NSSyw'],_0x3be212['type']=_0x15c737['uUqGZ'];const _0x3bd06e={};return _0x3bd06e[_0x53907f(0xe1)]=_0x3be212,_0x2ce564['usage'](HELP_HEADER_MESSAGE[_0x53907f(0x10c)][_0x53907f(0xe0)])[_0x53907f(0xc6)](HELP_FOOTER_MESSAGE)[_0x53907f(0xca)](_0x3bd06e)['help'](_0x15c737[_0x53907f(0xf4)])[_0x53907f(0xdd)];},exports['handler']=async function(_0x330642){const _0xc9ca97=a15_0x30d192,_0x514644={'iKPpT':function(_0x4d3cd4){return _0x4d3cd4();},'AkogI':function(_0x4b0220){return _0x4b0220();},'WbADM':_0xc9ca97(0xde),'qeUre':function(_0x535436,_0x4a9193,_0x3917f6,_0x3ea0cd,_0xf73537,_0x2b0ffb,_0x30749d){return _0x535436(_0x4a9193,_0x3917f6,_0x3ea0cd,_0xf73537,_0x2b0ffb,_0x30749d);},'TNKKx':_0xc9ca97(0x109),'KTHfw':'init-not-called','dJzbP':function(_0x45f220){return _0x45f220();},'ZGRcW':_0xc9ca97(0xf8),'hjKLu':function(_0x21a3f4,_0x48022e,_0x1cac1b){return _0x21a3f4(_0x48022e,_0x1cac1b);},'AtEIU':function(_0xbd02f5,_0x72dd3a){return _0xbd02f5!==_0x72dd3a;},'SyzHO':function(_0x4de00c,_0x4d5748){return _0x4de00c!==_0x4d5748;},'YRhgO':function(_0x29af4c,_0x134bdd){return _0x29af4c===_0x134bdd;},'eeZzL':_0xc9ca97(0xce),'DghEf':_0xc9ca97(0x108),'jZnKS':_0xc9ca97(0xe4),'fSOcT':_0xc9ca97(0xbb),'QnpXa':_0xc9ca97(0x105),'Jwlek':'queued','BZywj':_0xc9ca97(0xf3),'hDhla':function(_0x2d8d8b,_0xe4fe2e){return _0x2d8d8b(_0xe4fe2e);},'cMXjF':_0xc9ca97(0xdb),'aZCol':_0xc9ca97(0xf2),'mpSnY':_0xc9ca97(0xd2),'sLXrc':function(_0x2328d2,_0x2f1b16,_0x491326,_0x2366ef,_0x28309c,_0x5eb125,_0x33a6ee){return _0x2328d2(_0x2f1b16,_0x491326,_0x2366ef,_0x28309c,_0x5eb125,_0x33a6ee);},'hyVQi':_0xc9ca97(0x10e)};try{global_registry[_0xc9ca97(0xb9)]=_0x514644['iKPpT'](uuidv4);!fs[_0xc9ca97(0xf0)](_0x514644[_0xc9ca97(0xc9)](getCredentialsPath))&&(console[_0xc9ca97(0xcb)](_0x514644[_0xc9ca97(0xbf)]),await _0x514644[_0xc9ca97(0xda)](sendInstrumentationEvent,_0x330642,_0x514644[_0xc9ca97(0xe6)],messageTypes[_0xc9ca97(0xe8)],_0x514644[_0xc9ca97(0xbe)],null,_0x330642),process[_0xc9ca97(0x102)](0x1));const _0x1ceafb=JSON[_0xc9ca97(0xfa)](fs[_0xc9ca97(0x100)](_0x514644[_0xc9ca97(0xfd)](getCredentialsPath)));let _0x4c1706=_0xc9ca97(0xeb)+AG_API_URL+_0xc9ca97(0x106);_0x330642[_0xc9ca97(0xdf)]&&(_0x4c1706=_0xc9ca97(0xeb)+AG_API_URL+_0xc9ca97(0xef));const _0x55ffc8={'method':_0x514644[_0xc9ca97(0xc5)],'headers':_0x514644[_0xc9ca97(0xbc)](getAuthHeader,_0x1ceafb[_0xc9ca97(0xff)]['username'],_0x1ceafb['Browserstack'][_0xc9ca97(0xee)]),'throwHttpErrors':![]};global_registry[_0xc9ca97(0xf1)]=_0x1ceafb[_0xc9ca97(0xff)][_0xc9ca97(0x107)],global_registry[_0xc9ca97(0xd4)]=_0x1ceafb[_0xc9ca97(0xff)][_0xc9ca97(0xee)],_0x514644[_0xc9ca97(0xda)](sendInstrumentationEvent,_0x330642,_0x514644['TNKKx'],messageTypes['INFO'],null,null,_0x330642);const _0x2438c0=await _0x514644[_0xc9ca97(0xbc)](got,_0x4c1706,_0x55ffc8);if(_0x514644[_0xc9ca97(0xd1)](_0x2438c0,null)&&_0x514644[_0xc9ca97(0xf7)](_0x2438c0,undefined)&&_0x514644[_0xc9ca97(0xf6)](_0x2438c0[_0xc9ca97(0x10d)],0xc8)){const _0x46fa23=JSON['parse'](_0x2438c0['body']);console[_0xc9ca97(0xea)](_0x514644['eeZzL']);const _0x13beb5=[];_0x13beb5[_0xc9ca97(0xd8)]([_0x514644['DghEf'],_0x514644[_0xc9ca97(0xcd)],_0x514644[_0xc9ca97(0x103)],_0x514644[_0xc9ca97(0xc2)],_0x514644['Jwlek'],_0x514644[_0xc9ca97(0xc0)]]),_0x46fa23[_0xc9ca97(0xdc)](_0x1ac9e5=>{const _0x13f53e=_0xc9ca97;_0x13beb5['push']([_0x1ac9e5['id'],_0x1ac9e5[_0x13f53e(0xba)],_0x1ac9e5[_0x13f53e(0xbb)],_0x1ac9e5[_0x13f53e(0x105)],_0x1ac9e5[_0x13f53e(0xc8)],_0x1ac9e5[_0x13f53e(0xfe)]]);}),console[_0xc9ca97(0xea)](_0x514644['hDhla'](table,_0x13beb5)),process[_0xc9ca97(0x102)](0x0);}_0x514644[_0xc9ca97(0xf6)](_0x2438c0['statusCode'],0x191)&&(console[_0xc9ca97(0xcb)](_0x514644[_0xc9ca97(0xd3)]),await _0x514644['qeUre'](sendInstrumentationEvent,_0x330642,_0x514644['TNKKx'],messageTypes[_0xc9ca97(0xe8)],_0x514644[_0xc9ca97(0xec)],null,_0x330642),process['exit'](0x1)),console[_0xc9ca97(0xcb)](_0xc9ca97(0xc4)+JSON[_0xc9ca97(0xd7)](_0x2438c0)),await _0x514644[_0xc9ca97(0xda)](sendInstrumentationEvent,_0x330642,_0x514644[_0xc9ca97(0xe6)],messageTypes[_0xc9ca97(0xe8)],_0x514644[_0xc9ca97(0xcf)],_0x2438c0,_0x330642),process[_0xc9ca97(0x102)](0x1);}catch(_0x242541){console[_0xc9ca97(0xcb)](_0xc9ca97(0xfc)+_0x242541['stack']),await _0x514644[_0xc9ca97(0xc3)](sendInstrumentationEvent,_0x330642,_0x514644[_0xc9ca97(0xe6)],messageTypes['ERROR'],_0x514644['hyVQi'],_0x242541,_0x330642),process[_0xc9ca97(0x102)](0x1);}};
1
+ function a15_0x2b8d(_0x1f9094,_0x23274f){const _0x1fa6c4=a15_0x1fa6();return a15_0x2b8d=function(_0x2b8dbc,_0x4556ae){_0x2b8dbc=_0x2b8dbc-0x1af;let _0x34dfbd=_0x1fa6c4[_0x2b8dbc];return _0x34dfbd;},a15_0x2b8d(_0x1f9094,_0x23274f);}function a15_0x1fa6(){const _0x5cef12=['https://','status','password','dNEts','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','30158919cEclWG','../../utils/instrumentationUtils','Failed\x20to\x20list\x20resources!\x20Error:\x20','boolean','ftUgW','builder','queued','list-grids-called','NnGsO','bstackAccesskey','unknown-error','Browserstack','help','UZlFM','sEoLP','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','argv','qzUKz','uuid','epilogue','list','stack','statusCode','2710206xPckrg','grid-name','grid','parse','table','requestId','exit','iYsqW','unauthorised','body','aPNZe','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','init-not-called','grid-id','../../config/constants','AGrah','UDrIv','/packages/cli/get-all-grids','cluster-name','YQAru','vpNJo','usage','tZFIl','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','GET','lfDzL','UuXmK','INFO','push','bstackUsername','../../utils/utilityMethods','BypyI','/packages/cli/get-grids','running','186257odXSGk','CqkCM','allGrids','946340LMRHzt','ZDNnZ','handler','BzdVi','4151943xvwZQF','clusterName','error','ERROR','MzGwP','username','16534AaJaNQ','4dZjiYf','10SDFEJF','3193632keqwha','\x0aFound\x20the\x20following\x20grids:\x0a','1338hXbmUy','epdKN','options'];a15_0x1fa6=function(){return _0x5cef12;};return a15_0x1fa6();}const a15_0x2c4e85=a15_0x2b8d;(function(_0x16adc6,_0xd1fae3){const _0x86942a=a15_0x2b8d,_0x53818f=_0x16adc6();while(!![]){try{const _0x5085d8=-parseInt(_0x86942a(0x1af))/0x1+-parseInt(_0x86942a(0x1e1))/0x2+-parseInt(_0x86942a(0x1b6))/0x3+parseInt(_0x86942a(0x1bd))/0x4*(parseInt(_0x86942a(0x1b2))/0x5)+parseInt(_0x86942a(0x1c1))/0x6*(parseInt(_0x86942a(0x1bc))/0x7)+-parseInt(_0x86942a(0x1bf))/0x8+-parseInt(_0x86942a(0x1ca))/0x9*(-parseInt(_0x86942a(0x1be))/0xa);if(_0x5085d8===_0xd1fae3)break;else _0x53818f['push'](_0x53818f['shift']());}catch(_0x1a2fa1){_0x53818f['push'](_0x53818f['shift']());}}}(a15_0x1fa6,0xb5428));const fs=require('fs'),got=require('got'),{table}=require(a15_0x2c4e85(0x1e5)),{v4:uuidv4}=require(a15_0x2c4e85(0x1dc)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2c4e85(0x1ef)),{getCredentialsPath,getAuthHeader}=require(a15_0x2c4e85(0x200)),{sendInstrumentationEvent}=require(a15_0x2c4e85(0x1cb));exports['command']='grids',exports['desc']=a15_0x2c4e85(0x1ec),exports[a15_0x2c4e85(0x1cf)]=function(_0x4b635e){const _0x2dfb96=a15_0x2c4e85,_0x1f39a5={};_0x1f39a5[_0x2dfb96(0x1f1)]=_0x2dfb96(0x1d9),_0x1f39a5['RbJCT']=_0x2dfb96(0x1cd),_0x1f39a5['UZlFM']=_0x2dfb96(0x1d6);const _0x4b81c7=_0x1f39a5,_0xed192={};_0xed192['description']=_0x4b81c7['UDrIv'],_0xed192['type']=_0x4b81c7['RbJCT'];const _0x1dc19d={};return _0x1dc19d['all-grids']=_0xed192,_0x4b635e[_0x2dfb96(0x1f6)](HELP_HEADER_MESSAGE[_0x2dfb96(0x1de)][_0x2dfb96(0x1e3)])[_0x2dfb96(0x1dd)](HELP_FOOTER_MESSAGE)[_0x2dfb96(0x1c3)](_0x1dc19d)[_0x2dfb96(0x1d6)](_0x4b81c7[_0x2dfb96(0x1d7)])[_0x2dfb96(0x1da)];},exports[a15_0x2c4e85(0x1b4)]=async function(_0x2e8cf9){const _0x2755cd=a15_0x2c4e85,_0x25cd12={'UuXmK':function(_0x1fcc5d){return _0x1fcc5d();},'MzGwP':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qzUKz':function(_0x48f687,_0x4b8174,_0x3e1963,_0x372489,_0xd3f933,_0xdc127d,_0x11668d){return _0x48f687(_0x4b8174,_0x3e1963,_0x372489,_0xd3f933,_0xdc127d,_0x11668d);},'CqkCM':_0x2755cd(0x1d1),'iYsqW':_0x2755cd(0x1ed),'NnGsO':_0x2755cd(0x1fa),'vpNJo':function(_0x3a85d0,_0x5bb1c7,_0x35828d){return _0x3a85d0(_0x5bb1c7,_0x35828d);},'BzdVi':function(_0x25ab94,_0x332ac4){return _0x25ab94!==_0x332ac4;},'aPNZe':function(_0x390cb3,_0x2b449a){return _0x390cb3===_0x2b449a;},'qcrDV':_0x2755cd(0x1c0),'lfDzL':_0x2755cd(0x1ee),'srbpH':_0x2755cd(0x1e2),'ZDNnZ':_0x2755cd(0x1c5),'ftUgW':_0x2755cd(0x203),'dNEts':'queued','AGrah':_0x2755cd(0x1f3),'FMuWr':function(_0x27c542,_0x59694f){return _0x27c542(_0x59694f);},'sEoLP':_0x2755cd(0x1f9),'SfxwT':function(_0x59e276,_0x6edef4,_0x1f8227,_0x16ed4d,_0x34bda1,_0x5d3de7,_0x3d50da){return _0x59e276(_0x6edef4,_0x1f8227,_0x16ed4d,_0x34bda1,_0x5d3de7,_0x3d50da);},'tZFIl':_0x2755cd(0x1e9),'epdKN':'server-error','BypyI':function(_0x46dc31,_0xcbca4a,_0x552159,_0x2ff432,_0x260203,_0x235209,_0x115210){return _0x46dc31(_0xcbca4a,_0x552159,_0x2ff432,_0x260203,_0x235209,_0x115210);},'YQAru':_0x2755cd(0x1d4)};try{global_registry[_0x2755cd(0x1e6)]=_0x25cd12[_0x2755cd(0x1fc)](uuidv4);!fs[_0x2755cd(0x1c8)](_0x25cd12[_0x2755cd(0x1fc)](getCredentialsPath))&&(console[_0x2755cd(0x1b8)](_0x25cd12[_0x2755cd(0x1ba)]),await _0x25cd12[_0x2755cd(0x1db)](sendInstrumentationEvent,_0x2e8cf9,_0x25cd12[_0x2755cd(0x1b0)],messageTypes[_0x2755cd(0x1b9)],_0x25cd12[_0x2755cd(0x1e8)],null,_0x2e8cf9),process[_0x2755cd(0x1e7)](0x1));const _0x318e5e=JSON['parse'](fs['readFileSync'](_0x25cd12['UuXmK'](getCredentialsPath)));let _0x49ac9c=_0x2755cd(0x1c4)+AG_API_URL+_0x2755cd(0x202);_0x2e8cf9[_0x2755cd(0x1b1)]&&(_0x49ac9c='https://'+AG_API_URL+_0x2755cd(0x1f2));const _0x4d6e6a={'method':_0x25cd12[_0x2755cd(0x1d2)],'headers':_0x25cd12[_0x2755cd(0x1f5)](getAuthHeader,_0x318e5e[_0x2755cd(0x1d5)][_0x2755cd(0x1bb)],_0x318e5e[_0x2755cd(0x1d5)][_0x2755cd(0x1c6)]),'throwHttpErrors':![]};global_registry[_0x2755cd(0x1ff)]=_0x318e5e[_0x2755cd(0x1d5)][_0x2755cd(0x1bb)],global_registry[_0x2755cd(0x1d3)]=_0x318e5e['Browserstack'][_0x2755cd(0x1c6)],_0x25cd12[_0x2755cd(0x1db)](sendInstrumentationEvent,_0x2e8cf9,_0x25cd12[_0x2755cd(0x1b0)],messageTypes[_0x2755cd(0x1fd)],null,null,_0x2e8cf9);const _0x468368=await _0x25cd12['vpNJo'](got,_0x49ac9c,_0x4d6e6a);if(_0x25cd12['BzdVi'](_0x468368,null)&&_0x25cd12[_0x2755cd(0x1b5)](_0x468368,undefined)&&_0x25cd12[_0x2755cd(0x1eb)](_0x468368['statusCode'],0xc8)){const _0x7d528e=JSON[_0x2755cd(0x1e4)](_0x468368[_0x2755cd(0x1ea)]);console['log'](_0x25cd12['qcrDV']);const _0x11eb57=[];_0x11eb57[_0x2755cd(0x1fe)]([_0x25cd12[_0x2755cd(0x1fb)],_0x25cd12['srbpH'],_0x25cd12[_0x2755cd(0x1b3)],_0x25cd12[_0x2755cd(0x1ce)],_0x25cd12[_0x2755cd(0x1c7)],_0x25cd12[_0x2755cd(0x1f0)]]),_0x7d528e['forEach'](_0x53675e=>{const _0x347c51=_0x2755cd;_0x11eb57['push']([_0x53675e['id'],_0x53675e[_0x347c51(0x1f8)],_0x53675e[_0x347c51(0x1c5)],_0x53675e[_0x347c51(0x203)],_0x53675e[_0x347c51(0x1d0)],_0x53675e[_0x347c51(0x1b7)]]);}),console['log'](_0x25cd12['FMuWr'](table,_0x11eb57)),process[_0x2755cd(0x1e7)](0x0);}_0x25cd12[_0x2755cd(0x1eb)](_0x468368[_0x2755cd(0x1e0)],0x191)&&(console[_0x2755cd(0x1b8)](_0x25cd12[_0x2755cd(0x1d8)]),await _0x25cd12['SfxwT'](sendInstrumentationEvent,_0x2e8cf9,_0x25cd12[_0x2755cd(0x1b0)],messageTypes[_0x2755cd(0x1b9)],_0x25cd12[_0x2755cd(0x1f7)],null,_0x2e8cf9),process[_0x2755cd(0x1e7)](0x1)),console[_0x2755cd(0x1b8)](_0x2755cd(0x1c9)+JSON['stringify'](_0x468368)),await _0x25cd12['qzUKz'](sendInstrumentationEvent,_0x2e8cf9,_0x25cd12[_0x2755cd(0x1b0)],messageTypes[_0x2755cd(0x1b9)],_0x25cd12[_0x2755cd(0x1c2)],_0x468368,_0x2e8cf9),process[_0x2755cd(0x1e7)](0x1);}catch(_0x2fde9d){console[_0x2755cd(0x1b8)](_0x2755cd(0x1cc)+_0x2fde9d[_0x2755cd(0x1df)]),await _0x25cd12[_0x2755cd(0x201)](sendInstrumentationEvent,_0x2e8cf9,_0x25cd12[_0x2755cd(0x1b0)],messageTypes['ERROR'],_0x25cd12[_0x2755cd(0x1f4)],_0x2fde9d,_0x2e8cf9),process[_0x2755cd(0x1e7)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x520a(_0x34def0,_0x1f8a41){const _0x5f5a1c=a16_0x5f5a();return a16_0x520a=function(_0x520ade,_0x209c28){_0x520ade=_0x520ade-0x182;let _0x28d072=_0x5f5a1c[_0x520ade];return _0x28d072;},a16_0x520a(_0x34def0,_0x1f8a41);}function a16_0x5f5a(){const _0x3971b1=['epilogue','260094xZIERI','help','211873ovbLln','../config/constants','commandDir','10921450NZVlJR','TAAfs','6780904DziJaQ','4502241MvBTKx','pre-check','UJCYu','6iHJuzE','precheck_commands','handler','245CFwBeC','pre_check','command','77FDkvOW','21396MUYSzS','3486168AwjrNP','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','desc','demandCommand','recommendCommands'];a16_0x5f5a=function(){return _0x3971b1;};return a16_0x5f5a();}const a16_0x450f00=a16_0x520a;(function(_0x4905b4,_0x10c020){const _0x432aeb=a16_0x520a,_0x4617ce=_0x4905b4();while(!![]){try{const _0x5a7369=-parseInt(_0x432aeb(0x196))/0x1*(-parseInt(_0x432aeb(0x185))/0x2)+parseInt(_0x432aeb(0x182))/0x3+-parseInt(_0x432aeb(0x18c))/0x4*(parseInt(_0x432aeb(0x188))/0x5)+-parseInt(_0x432aeb(0x194))/0x6*(parseInt(_0x432aeb(0x18b))/0x7)+parseInt(_0x432aeb(0x19b))/0x8+-parseInt(_0x432aeb(0x18d))/0x9+-parseInt(_0x432aeb(0x199))/0xa;if(_0x5a7369===_0x10c020)break;else _0x4617ce['push'](_0x4617ce['shift']());}catch(_0x20fcff){_0x4617ce['push'](_0x4617ce['shift']());}}}(a16_0x5f5a,0xbae66));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x450f00(0x197));exports[a16_0x450f00(0x18a)]=a16_0x450f00(0x183),exports[a16_0x450f00(0x190)]=a16_0x450f00(0x18f),exports['builder']=function(_0x47bcbf){const _0x196219=a16_0x450f00,_0x319d4b={};_0x319d4b[_0x196219(0x19a)]=_0x196219(0x186),_0x319d4b['UJCYu']=_0x196219(0x195);const _0xf5e72c=_0x319d4b;return _0x47bcbf[_0x196219(0x18e)](HELP_HEADER_MESSAGE[_0x196219(0x189)])[_0x196219(0x193)](HELP_FOOTER_MESSAGE)[_0x196219(0x198)](_0xf5e72c['TAAfs'])[_0x196219(0x191)]()[_0x196219(0x192)]()['strict']()[_0x196219(0x195)](_0xf5e72c[_0x196219(0x184)]);},exports[a16_0x450f00(0x187)]=function(_0x4736c3){};
1
+ function a16_0x4f05(){const _0x5699d4=['2803782ZfmdQk','precheck_commands','13GmSSvi','6299862YJGHql','36uPuzuB','commandDir','strict','780xZfMzO','desc','usage','pre-check','1348cyiHzO','builder','pre_check','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','demandCommand','../config/constants','211250qgHIuZ','command','qxaph','3444070naPxcD','handler','3805512slUYCM','539QKCwWq','FJVVs','7rdanMO','206484SWKGbp','help'];a16_0x4f05=function(){return _0x5699d4;};return a16_0x4f05();}const a16_0x2261ac=a16_0x1855;(function(_0xac846c,_0x2db7b8){const _0x2d6866=a16_0x1855,_0x16240c=_0xac846c();while(!![]){try{const _0x3c344d=-parseInt(_0x2d6866(0xc4))/0x1*(parseInt(_0x2d6866(0xb7))/0x2)+parseInt(_0x2d6866(0xc2))/0x3+-parseInt(_0x2d6866(0xb1))/0x4*(-parseInt(_0x2d6866(0xad))/0x5)+parseInt(_0x2d6866(0xc5))/0x6+-parseInt(_0x2d6866(0xbf))/0x7*(parseInt(_0x2d6866(0xbc))/0x8)+-parseInt(_0x2d6866(0xc6))/0x9*(-parseInt(_0x2d6866(0xba))/0xa)+parseInt(_0x2d6866(0xbd))/0xb*(-parseInt(_0x2d6866(0xc0))/0xc);if(_0x3c344d===_0x2db7b8)break;else _0x16240c['push'](_0x16240c['shift']());}catch(_0x72ffc7){_0x16240c['push'](_0x16240c['shift']());}}}(a16_0x4f05,0xb077e));function a16_0x1855(_0x5c0e3e,_0x43dbb5){const _0x4f0546=a16_0x4f05();return a16_0x1855=function(_0x1855ff,_0x37b8a7){_0x1855ff=_0x1855ff-0xad;let _0x313b17=_0x4f0546[_0x1855ff];return _0x313b17;},a16_0x1855(_0x5c0e3e,_0x43dbb5);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x2261ac(0xb6));exports[a16_0x2261ac(0xb8)]=a16_0x2261ac(0xb0),exports[a16_0x2261ac(0xae)]=a16_0x2261ac(0xb4),exports[a16_0x2261ac(0xb2)]=function(_0x564b82){const _0x4126e2=a16_0x2261ac,_0x53ff1e={};_0x53ff1e['qxaph']=_0x4126e2(0xc3),_0x53ff1e[_0x4126e2(0xbe)]=_0x4126e2(0xc1);const _0x5ecac5=_0x53ff1e;return _0x564b82[_0x4126e2(0xaf)](HELP_HEADER_MESSAGE[_0x4126e2(0xb3)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4126e2(0xc7)](_0x5ecac5[_0x4126e2(0xb9)])[_0x4126e2(0xb5)]()['recommendCommands']()[_0x4126e2(0xc8)]()[_0x4126e2(0xc1)](_0x5ecac5['FJVVs']);},exports[a16_0x2261ac(0xbb)]=function(_0x1c2676){};
@@ -1 +1 @@
1
- const a17_0x1ebd0b=a17_0xfd75;(function(_0x2b9d09,_0x1f7a54){const _0x88f3fd=a17_0xfd75,_0x3918f2=_0x2b9d09();while(!![]){try{const _0x57d32f=parseInt(_0x88f3fd(0x1a7))/0x1*(-parseInt(_0x88f3fd(0x1ac))/0x2)+parseInt(_0x88f3fd(0xfd))/0x3+-parseInt(_0x88f3fd(0x17e))/0x4+parseInt(_0x88f3fd(0x19e))/0x5+parseInt(_0x88f3fd(0x15e))/0x6*(-parseInt(_0x88f3fd(0x15d))/0x7)+-parseInt(_0x88f3fd(0xc2))/0x8+parseInt(_0x88f3fd(0x157))/0x9;if(_0x57d32f===_0x1f7a54)break;else _0x3918f2['push'](_0x3918f2['shift']());}catch(_0x4c0f61){_0x3918f2['push'](_0x3918f2['shift']());}}}(a17_0x597d,0x7650c));const fs=require('fs'),ws=require('ws'),got=require(a17_0x1ebd0b(0x105)),{v4:uuidv4}=require(a17_0x1ebd0b(0x165)),ReconnectingWebSocket=require(a17_0x1ebd0b(0xd3)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1ebd0b(0x156)),{logger}=require(a17_0x1ebd0b(0x133)),{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_0x1ebd0b(0x173)),{getCloudProviderObjectWithOutInit}=require(a17_0x1ebd0b(0x14b)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x1ebd0b(0xc4));exports['command']=a17_0x1ebd0b(0x1a5),exports[a17_0x1ebd0b(0x1b7)]=a17_0x1ebd0b(0x10b),exports[a17_0x1ebd0b(0x1af)]=function(_0xe49852){const _0x522d98=a17_0x1ebd0b,_0x888d5e={};_0x888d5e[_0x522d98(0x111)]=_0x522d98(0x125),_0x888d5e[_0x522d98(0x124)]='string',_0x888d5e['DRGPO']=_0x522d98(0x11c),_0x888d5e['prfiA']=_0x522d98(0xdf),_0x888d5e[_0x522d98(0x17a)]=_0x522d98(0x109),_0x888d5e[_0x522d98(0x194)]='help';const _0x478020=_0x888d5e,_0x3d0c20={};_0x3d0c20[_0x522d98(0xcb)]=_0x478020['YqGix'],_0x3d0c20[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x2b7917={};_0x2b7917[_0x522d98(0xcb)]=_0x478020[_0x522d98(0x19c)],_0x2b7917[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x568217={};_0x568217[_0x522d98(0xcb)]=_0x478020[_0x522d98(0x130)],_0x568217[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x342695={};_0x342695[_0x522d98(0xcb)]=_0x478020[_0x522d98(0x17a)],_0x342695[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x23cdd8={};return _0x23cdd8[_0x522d98(0xea)]=_0x3d0c20,_0x23cdd8['cloud-provider']=_0x2b7917,_0x23cdd8['region']=_0x568217,_0x23cdd8[_0x522d98(0x195)]=_0x342695,_0xe49852[_0x522d98(0x176)](HELP_HEADER_MESSAGE[_0x522d98(0xf5)])[_0x522d98(0x1b0)](HELP_FOOTER_MESSAGE)[_0x522d98(0xeb)](_0x23cdd8)['help'](_0x478020[_0x522d98(0x194)])[_0x522d98(0x140)];};async function inputValidation(_0xdb9f74,_0x20e3de){const _0x1f771a=a17_0x1ebd0b,_0x1af88f={'RLTwv':_0x1f771a(0x125),'hXvGU':_0x1f771a(0x1b9),'bPxDB':_0x1f771a(0x11c),'sDBpA':_0x1f771a(0xdf),'fjDZj':_0x1f771a(0x109),'SPREQ':_0x1f771a(0x159),'RTBEf':_0x1f771a(0x167),'aTfum':_0x1f771a(0xd6),'amVSX':_0x1f771a(0x18f),'CZnFT':_0x1f771a(0x112),'NLjAK':_0x1f771a(0x138),'pxVhB':_0x1f771a(0x1b3),'edXJW':'error','HAlfg':_0x1f771a(0x16a),'CXYyt':_0x1f771a(0xea),'aRULK':function(_0x511b65,_0x26eac9){return _0x511b65+_0x26eac9;},'DOgxC':_0x1f771a(0x12d),'GWuxb':_0x1f771a(0x1a1),'QegyY':function(_0x47000d,_0x57fbf5){return _0x47000d||_0x57fbf5;},'KeuXG':function(_0x16bec3,_0x2e9a60){return _0x16bec3!==_0x2e9a60;},'GCSwP':_0x1f771a(0xee),'CXvYp':_0x1f771a(0x19b),'sYtlv':_0x1f771a(0xe6),'bbgAz':'minJY','bmupk':function(_0x402f92,_0x22f7bc){return _0x402f92!==_0x22f7bc;},'CACNO':_0x1f771a(0x127),'iBIoX':_0x1f771a(0x131),'yUFtA':function(_0x67c017,_0x5c14e1){return _0x67c017!==_0x5c14e1;},'IFTFd':_0x1f771a(0x103),'UXPZE':function(_0x13858f,_0x3e773f){return _0x13858f===_0x3e773f;},'xQjeH':'vWaGG','RAlGq':function(_0x31d7f8,_0x31f928){return _0x31d7f8>_0x31f928;},'cWoZv':'ekxUO','WYpuV':function(_0xf5a834,_0x4bd932,_0x489199,_0x43add2,_0x2ed438,_0x3e1a12,_0x74bd15,_0x3ca84a){return _0xf5a834(_0x4bd932,_0x489199,_0x43add2,_0x2ed438,_0x3e1a12,_0x74bd15,_0x3ca84a);},'MYVsp':_0x1f771a(0x11b),'nRiCz':_0x1f771a(0x13d),'nLenE':_0x1f771a(0x148),'twoSo':_0x1f771a(0x101),'UGanx':_0x1f771a(0xc7),'ybXnp':'kCRqc','hdrAF':_0x1f771a(0x1b8),'HetUk':function(_0x30f893,_0x584766){return _0x30f893!==_0x584766;},'MpLGT':_0x1f771a(0x188),'Uxhdo':_0x1f771a(0x181),'uhhHC':function(_0x5f2364,_0x3b195d,_0x59fb8a){return _0x5f2364(_0x3b195d,_0x59fb8a);},'dLaJM':function(_0x245675,_0xd18b05,_0x402af7,_0x1a314e,_0x38fafc,_0xbe0461){return _0x245675(_0xd18b05,_0x402af7,_0x1a314e,_0x38fafc,_0xbe0461);},'NeUUK':_0x1f771a(0x13c),'AkGhc':_0x1f771a(0x195),'pJJMA':_0x1f771a(0x170),'gzRgc':_0x1f771a(0x175),'GbtcG':function(_0x4e62f9,_0x588951){return _0x4e62f9(_0x588951);},'kDYSZ':function(_0x4952e7,_0x2498de){return _0x4952e7===_0x2498de;},'fbcig':_0x1f771a(0xe2),'wGBfw':_0x1f771a(0x16b),'chETX':_0x1f771a(0x164),'XSRJE':_0x1f771a(0x166),'SxSms':_0x1f771a(0x10a),'Iwcpp':function(_0x26f233,_0x13952d){return _0x26f233!==_0x13952d;},'nonwl':_0x1f771a(0x169),'rwNoa':'Grid\x20profile\x20fetched\x20for\x20pre-check','KwQAu':function(_0x852175,_0x277899){return _0x852175===_0x277899;},'iWLrL':_0x1f771a(0x17c),'mJEcJ':'Tcagc','KWJUZ':function(_0x1e8d96,_0x2c7e30,_0x367402,_0x250c11,_0x18d2e7,_0x284223,_0x511a67,_0x575c5e){return _0x1e8d96(_0x2c7e30,_0x367402,_0x250c11,_0x18d2e7,_0x284223,_0x511a67,_0x575c5e);}};let _0x9f1cf6;try{if(_0x1af88f['KeuXG'](_0x1af88f[_0x1f771a(0xe7)],_0x1af88f[_0x1f771a(0x120)])){if(_0xdb9f74['clusterName']||_0xdb9f74[_0x1f771a(0x12a)]||_0xdb9f74[_0x1f771a(0x16a)]){if(_0x1af88f[_0x1f771a(0x145)](_0x1af88f['sYtlv'],_0x1af88f['bbgAz'])){const _0x46fbc8=[];if(!_0xdb9f74[_0x1f771a(0x1b5)]){if(_0x1af88f[_0x1f771a(0x161)](_0x1af88f['CACNO'],_0x1af88f['iBIoX']))_0x46fbc8['push'](_0x1af88f[_0x1f771a(0x13a)]);else{const _0x253e43={};_0x253e43['description']=_0x1af88f[_0x1f771a(0xe0)],_0x253e43['type']=_0x1af88f[_0x1f771a(0xda)];const _0x377a41={};_0x377a41['description']=_0x1af88f['bPxDB'],_0x377a41[_0x1f771a(0xd4)]=_0x1af88f[_0x1f771a(0xda)];const _0x36c6f9={};_0x36c6f9[_0x1f771a(0xcb)]=_0x1af88f[_0x1f771a(0x18a)],_0x36c6f9['type']=_0x1af88f[_0x1f771a(0xda)];const _0x2b0576={};_0x2b0576[_0x1f771a(0xcb)]=_0x1af88f[_0x1f771a(0x15a)],_0x2b0576['type']=_0x1af88f[_0x1f771a(0xda)];const _0xbfee52={};return _0xbfee52['cluster-name']=_0x253e43,_0xbfee52[_0x1f771a(0x167)]=_0x377a41,_0xbfee52[_0x1f771a(0x16a)]=_0x36c6f9,_0xbfee52[_0x1f771a(0x195)]=_0x2b0576,_0x2cbf8d['usage'](_0x30fe52[_0x1f771a(0xf5)])[_0x1f771a(0x1b0)](_0x10dc0a)[_0x1f771a(0xeb)](_0xbfee52)[_0x1f771a(0x159)](_0x1af88f[_0x1f771a(0x19f)])[_0x1f771a(0x140)];}};!_0xdb9f74['cloudProvider']&&(_0x1af88f[_0x1f771a(0x183)](_0x1af88f['IFTFd'],_0x1af88f['IFTFd'])?_0x1cab90[_0x1f771a(0x107)](_0x1af88f[_0x1f771a(0xde)]):_0x46fbc8['push'](_0x1af88f[_0x1f771a(0xde)]));;!_0xdb9f74[_0x1f771a(0x16a)]&&(_0x1af88f[_0x1f771a(0x177)](_0x1af88f[_0x1f771a(0xe5)],_0x1af88f[_0x1f771a(0xe5)])?_0x46fbc8['push'](_0x1af88f[_0x1f771a(0x137)]):(_0xef3874[_0x1f771a(0x144)](_0x1af88f['aTfum']),_0x5b6fb6[_0x1f771a(0xf2)](0x1)));;_0x1af88f[_0x1f771a(0x126)](_0x46fbc8[_0x1f771a(0x155)],0x0)&&(_0x1af88f[_0x1f771a(0x177)](_0x1af88f[_0x1f771a(0xd1)],_0x1af88f['cWoZv'])?(_0x9f1cf6='Missing\x20required\x20arguments:\x20'+_0x46fbc8['join'](',\x20')+_0x1f771a(0x142),await _0x1af88f[_0x1f771a(0x13b)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes['ERROR'],_0x1af88f[_0x1f771a(0x1a2)],_0x1af88f[_0x1f771a(0xfc)],_0x1af88f[_0x1f771a(0x12e)]),logger[_0x1f771a(0x144)](_0x9f1cf6),process[_0x1f771a(0xf2)](0x1)):_0x51af9d+=_0x1f771a(0x10e)+_0x3a797b['clusterName']+'\x20'+(_0x2840b4?_0x1af88f[_0x1f771a(0x182)]:_0x1af88f[_0x1f771a(0x13e)])+'\x0a\x0a');if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1f771a(0x18b)](_0xdb9f74[_0x1f771a(0x12a)][_0x1f771a(0x1ae)]())){if(_0x1af88f['yUFtA'](_0x1af88f[_0x1f771a(0x178)],_0x1af88f[_0x1f771a(0x178)]))_0x26a27d+=_0x1af88f[_0x1f771a(0x163)],_0x50b3b2+=_0x1f771a(0x10c)+(_0x493bb4[_0x1f771a(0x185)]||_0x1af88f['pxVhB'])+'\x0a',_0x2c298d+=_0x1f771a(0xc8)+(_0x45d202[_0x1f771a(0x199)]||_0x1af88f['pxVhB'])+'\x0a',_0x665073+='\x20\x20Stack:\x20'+(_0x5572e3[_0x1f771a(0x149)]||_0x1af88f[_0x1f771a(0x116)])+'\x0a';else{_0x9f1cf6=_0x1af88f[_0x1f771a(0x17f)],await _0x1af88f[_0x1f771a(0x13b)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes[_0x1f771a(0xdc)],_0x1af88f[_0x1f771a(0x1a2)],_0x1af88f[_0x1f771a(0x197)],_0x1af88f['edXJW']),logger[_0x1f771a(0x144)](_0x9f1cf6);if(!_0xdb9f74[_0x1f771a(0x12a)]){if(_0x1af88f[_0x1f771a(0x145)](_0x1af88f[_0x1f771a(0xf3)],_0x1af88f[_0x1f771a(0x11f)]))logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x1f771a(0xe1)]+'\x20'),_0xdb9f74[_0x1f771a(0x12a)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'];else{const _0x2f62c6={};_0x2f62c6['type']=_0x5de08f[_0x1f771a(0x1a8)],_0x2f62c6[_0x1f771a(0x185)]=_0x17f79e,_0x286d26[_0x1f771a(0xf9)](_0x25a52d,_0x2f62c6,_0x1af88f['edXJW'],!![]);}}}}global_registry[_0x1f771a(0x1b5)]=_0xdb9f74[_0x1f771a(0x1b5)],global_registry[_0x1f771a(0x12a)]=_0xdb9f74[_0x1f771a(0x12a)],global_registry[_0x1f771a(0x1a0)]=_0xdb9f74[_0x1f771a(0x16a)];}else _0x1249a1=_0x42c23f;}else{if(_0xdb9f74['gridProfile']){if(_0x1af88f[_0x1f771a(0x114)](_0x1af88f[_0x1f771a(0x102)],_0x1af88f[_0x1f771a(0x102)]))_0x30a5f7[_0x1f771a(0x11a)]('Cluster\x20`'+_0x2cf86b[_0x1f771a(0x1b5)]+_0x1f771a(0x1a3));else{global_registry[_0x1f771a(0xc3)]=_0xdb9f74['gridProfile'],logger[_0x1f771a(0xed)](_0x1f771a(0x154)+_0xdb9f74[_0x1f771a(0xc3)]);const _0x478488=_0x1f771a(0x1b4)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x41c17e={};_0x41c17e[_0x1f771a(0x184)]=_0x1af88f['Uxhdo'],_0x41c17e[_0x1f771a(0x136)]=global_registry[_0x1f771a(0xdb)],_0x41c17e[_0x1f771a(0x17b)]=![];const _0x499656=_0x41c17e,_0x4571fa=await _0x1af88f[_0x1f771a(0x1b1)](got,_0x478488,_0x499656),_0x1f3312=await _0x1af88f['dLaJM'](responseValidation,_0x4571fa,_0x1af88f[_0x1f771a(0x180)],_0x1af88f['AkGhc'],_0xdb9f74,_0x20e3de);let _0x213538={};if(_0x1af88f['UXPZE'](_0x1f3312,0xc8)){if(_0x1af88f[_0x1f771a(0x177)](_0x1af88f[_0x1f771a(0xfb)],_0x1af88f['gzRgc']))_0x468440[_0x1f771a(0xf2)](0x1);else{const _0x2cc1f5=JSON[_0x1f771a(0x15b)](_0x4571fa[_0x1f771a(0x14a)]),_0x1b6847=_0x2cc1f5[_0x1f771a(0xd8)](_0x192f08=>_0x192f08[_0x1f771a(0x143)]===_0xdb9f74[_0x1f771a(0xc3)])||null;_0x1af88f[_0x1f771a(0xdd)](isUndefined,_0x1b6847)?_0x1af88f[_0x1f771a(0xd9)](_0x1af88f['fbcig'],_0x1af88f[_0x1f771a(0x11e)])?_0x33f986[_0x1f771a(0x107)](_0x1af88f['HAlfg']):(_0x9f1cf6=_0x1f771a(0x108)+_0xdb9f74['gridProfile']+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x1af88f[_0x1f771a(0x13b)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes[_0x1f771a(0xdc)],_0x1af88f['MYVsp'],_0x1af88f['chETX'],_0x1af88f[_0x1f771a(0x12e)]),logger[_0x1f771a(0x144)](_0x9f1cf6),process[_0x1f771a(0xf2)](0x1)):_0x1af88f[_0x1f771a(0x161)](_0x1af88f['XSRJE'],_0x1af88f[_0x1f771a(0xe8)])?_0x213538=_0x1b6847:_0x1a2ad4['error'](_0x1f771a(0x1b6)+_0x10b65c[_0x1f771a(0x144)][_0x1f771a(0x149)]);}}else _0x1af88f[_0x1f771a(0x122)](_0x1af88f[_0x1f771a(0x151)],_0x1af88f[_0x1f771a(0x151)])?(_0x3b6302[_0x1f771a(0x11a)](_0x1f771a(0x115)+_0x46d4fd[_0x1f771a(0xe1)]+'\x20'),_0x391f91[_0x1f771a(0x12a)]=_0x3be4e8[_0x1f771a(0xe1)]):process['exit'](0x1);const _0x4027ec={};_0x4027ec[_0x1f771a(0xd4)]=WS_EVENTS[_0x1f771a(0x1a8)],_0x4027ec[_0x1f771a(0x185)]=_0x1af88f[_0x1f771a(0xc6)],webSocketUtils[_0x1f771a(0xf9)](_0x20e3de,_0x4027ec),global_registry[_0x1f771a(0x12a)]=_0x213538[_0x1f771a(0x12a)],global_registry[_0x1f771a(0x1a0)]=_0x213538[_0x1f771a(0x16a)],global_registry[_0x1f771a(0x1b5)]=_0x213538['clusterName'];}}else _0x1af88f[_0x1f771a(0xd5)](_0x1af88f[_0x1f771a(0x110)],_0x1af88f['iWLrL'])?(logger[_0x1f771a(0x144)](_0x1af88f['aTfum']),process[_0x1f771a(0xf2)](0x1)):_0x779fb7[_0x1f771a(0x107)](_0x1af88f[_0x1f771a(0x13a)]);}}else{const {header:_0x144b7c,response:_0x153a39}=_0x47dfaa,{status:_0x12c147,data:_0x2d36a2,error:_0x5087cc}=_0x153a39;_0x3d845c+=_0x144b7c+'\x20#'+_0x1af88f[_0x1f771a(0x12f)](_0x2b6460,0x1)+'\x0a',_0x590e8d+=_0x1f771a(0x146)+(_0x12c147?_0x1af88f['DOgxC']:_0x1af88f[_0x1f771a(0x162)])+'\x0a',_0x193e4d+=_0x1f771a(0x160)+_0x1af88f[_0x1f771a(0x14f)](_0x2d36a2,_0x1af88f[_0x1f771a(0x116)])+'\x0a',_0x5087cc&&(_0x3ad9e1+=_0x1af88f[_0x1f771a(0x163)],_0x266175+=_0x1f771a(0x10c)+(_0x5087cc[_0x1f771a(0x185)]||_0x1af88f[_0x1f771a(0x116)])+'\x0a',_0x10d47f+='\x20\x20Code:\x20'+(_0x5087cc['code']||_0x1af88f[_0x1f771a(0x116)])+'\x0a',_0x290338+='\x20\x20Stack:\x20'+(_0x5087cc[_0x1f771a(0x149)]||_0x1af88f[_0x1f771a(0x116)])+'\x0a'),_0x1f4ddd+='\x0a\x0a';}}catch(_0x2f54bf){_0x1af88f['KeuXG'](_0x1af88f[_0x1f771a(0x113)],_0x1af88f[_0x1f771a(0x113)])?(_0x192b21['info']('['+_0x42d839+']\x20status\x20:\x20'+_0xb4b024[_0x1f771a(0x1ad)]+_0x1f771a(0x189)+_0x1bb007[_0x1f771a(0x12c)]+_0x1f771a(0x104)+_0x29d4d0[_0x1f771a(0x144)]),_0x58fd90[_0x1f771a(0x144)]&&_0x2e6c04[_0x1f771a(0x144)](_0x1f771a(0x1b6)+_0x565eff[_0x1f771a(0x144)][_0x1f771a(0x149)])):(_0x9f1cf6=_0x1f771a(0x187)+_0x2f54bf+':\x20'+_0x2f54bf[_0x1f771a(0x149)],logger['error'](_0x9f1cf6),await _0x1af88f[_0x1f771a(0x19d)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes['ERROR'],_0x1af88f['MYVsp'],_0x1af88f[_0x1f771a(0x197)],_0x1af88f[_0x1f771a(0x12e)]),process[_0x1f771a(0xf2)](0x1));}}function printResponse(_0x1d77fc,_0x4603b8){const _0x4664a1=a17_0x1ebd0b,_0x349701={};_0x349701['JhVrd']=function(_0x4d118,_0x34353d){return _0x4d118===_0x34353d;},_0x349701[_0x4664a1(0x16d)]=_0x4664a1(0x135),_0x349701['KzwBy']=_0x4664a1(0x1ab);const _0x2cf11a=_0x349701;logger[_0x4664a1(0x11a)]('['+_0x1d77fc+_0x4664a1(0xca)+_0x4603b8['status']+_0x4664a1(0x189)+_0x4603b8['data']+'\x20error\x20:\x20'+_0x4603b8['error']),_0x4603b8[_0x4664a1(0x144)]&&(_0x2cf11a[_0x4664a1(0xc9)](_0x2cf11a['ZRFlh'],_0x2cf11a[_0x4664a1(0x152)])?_0x3988d6+='Cluster\x20'+_0x1f19cc[_0x4664a1(0x1b5)]+_0x4664a1(0x14d):logger['error'](_0x4664a1(0x1b6)+_0x4603b8['error']['stack']));}async function generateReport(_0x175123,_0x5ce4d7){const _0x551517=a17_0x1ebd0b,_0x1e4787={'pMfoO':function(_0x5b8cb0,_0x5ddd86){return _0x5b8cb0+_0x5ddd86;},'unLrA':_0x551517(0x12d),'jcBEc':'Failure','kKzcH':function(_0x540402,_0x48b383){return _0x540402||_0x48b383;},'ozuJr':_0x551517(0x1b3),'xuMfo':'Error\x20Details:\x0a','LFRPp':_0x551517(0xd7),'JskvP':function(_0x357704,_0xe24494){return _0x357704!=_0xe24494;},'DrMaL':_0x551517(0x18f),'wNGYi':_0x551517(0x112),'oQDLt':function(_0x375cf6){return _0x375cf6();}};let _0x1ff2ea=_0x551517(0x1a4)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x175123[_0x551517(0x134)]((_0x5ecc01,_0xfab38d)=>{const _0x334db9=_0x551517,{header:_0x3d3905,response:_0x15c283}=_0x5ecc01,{status:_0x2c7c7f,data:_0x53c910,error:_0x68d3e0}=_0x15c283;_0x1ff2ea+=_0x3d3905+'\x20#'+_0x1e4787['pMfoO'](_0xfab38d,0x1)+'\x0a',_0x1ff2ea+='Status:\x20'+(_0x2c7c7f?_0x1e4787[_0x334db9(0x198)]:_0x1e4787[_0x334db9(0xec)])+'\x0a',_0x1ff2ea+=_0x334db9(0x160)+_0x1e4787[_0x334db9(0xcc)](_0x53c910,_0x1e4787[_0x334db9(0xc5)])+'\x0a',_0x68d3e0&&(_0x1ff2ea+=_0x1e4787['xuMfo'],_0x1ff2ea+=_0x334db9(0x10c)+(_0x68d3e0['message']||_0x1e4787[_0x334db9(0xc5)])+'\x0a',_0x1ff2ea+='\x20\x20Code:\x20'+(_0x68d3e0[_0x334db9(0x199)]||_0x1e4787[_0x334db9(0xc5)])+'\x0a',_0x1ff2ea+='\x20\x20Stack:\x20'+(_0x68d3e0[_0x334db9(0x149)]||_0x1e4787['ozuJr'])+'\x0a'),_0x1ff2ea+='\x0a\x0a';}),_0x1ff2ea+=_0x1e4787[_0x551517(0x139)],_0x1e4787[_0x551517(0x119)](_0x5ce4d7,null)?_0x1ff2ea+='Cluster\x20'+global_registry[_0x551517(0x1b5)]+'\x20'+(_0x5ce4d7?_0x1e4787['DrMaL']:_0x1e4787['wNGYi'])+'\x0a\x0a':_0x1ff2ea+='Cluster\x20'+global_registry[_0x551517(0x1b5)]+_0x551517(0x14d),_0x1ff2ea+=_0x1e4787['oQDLt'](getSystemMetaData),_0x1ff2ea;};exports['handler']=async function(_0x5e8221){const _0xccc0b7=a17_0x1ebd0b,_0x5453f9={'sKzXy':function(_0xe07309){return _0xe07309();},'RMUjI':function(_0x30fa0c){return _0x30fa0c();},'DCNym':_0xccc0b7(0xe4),'jMFJb':function(_0x1cac66,_0xf7ab96,_0x55f153,_0x27da1a,_0xa8ed10,_0x49f38f,_0xf10db7,_0x23e975){return _0x1cac66(_0xf7ab96,_0x55f153,_0x27da1a,_0xa8ed10,_0x49f38f,_0xf10db7,_0x23e975);},'KOEwY':_0xccc0b7(0x11b),'FCYsD':_0xccc0b7(0x16e),'LOIaA':'error','Qxwho':function(_0x18f0aa,_0x53c73b,_0x39e619,_0x5a1e9f,_0x5204ce,_0x51dd26,_0x45f3b2){return _0x18f0aa(_0x53c73b,_0x39e619,_0x5a1e9f,_0x5204ce,_0x51dd26,_0x45f3b2);},'TMuaU':'<UsernamePlaceholder>','VfiDy':_0xccc0b7(0x1a9),'SnMgI':function(_0x254ee2,_0x1e4fa6,_0x48fd9e){return _0x254ee2(_0x1e4fa6,_0x48fd9e);},'euPGI':function(_0x5f2ef0,_0x209a3b,_0x3a759a,_0x2ef681,_0x2bf1ca,_0x5522f3,_0x569e5c){return _0x5f2ef0(_0x209a3b,_0x3a759a,_0x2ef681,_0x2bf1ca,_0x5522f3,_0x569e5c);},'pNjHs':_0xccc0b7(0x15c),'zbWpF':'toolInstalledResp','SVMuV':'1|0|3|4|2','kLmWC':function(_0x4173e1,_0x162402,_0xe8219c){return _0x4173e1(_0x162402,_0xe8219c);},'VKuef':_0xccc0b7(0x168),'uyfpH':function(_0x37fae6){return _0x37fae6();},'cKOku':function(_0x3460ce,_0x16f97c,_0x10b705){return _0x3460ce(_0x16f97c,_0x10b705);},'RUsPm':_0xccc0b7(0x1a6),'DmODF':function(_0x20cdf8,_0x137fcd){return _0x20cdf8(_0x137fcd);},'TcgHS':_0xccc0b7(0xf8),'xAqvw':function(_0x3289d6,_0x5a4ee9,_0x4f3f7e){return _0x3289d6(_0x5a4ee9,_0x4f3f7e);},'UGRQn':'isTls1_2_SUPPORTED','xzScx':'Tool\x20Installed','nytsu':_0xccc0b7(0x192),'neuyZ':'Whitelisted\x20browserstack','cVmDG':_0xccc0b7(0x106),'jFYQB':function(_0x2839b8,_0x13e5c0){return _0x2839b8+_0x13e5c0;},'lQxPe':'utf-8','kfZVE':_0xccc0b7(0x174)};let _0x26b5f1,_0x521e5d;try{global_registry['requestId']=_0x5453f9[_0xccc0b7(0x11d)](uuidv4);!fs[_0xccc0b7(0x141)](_0x5453f9['RMUjI'](getCredentialsPath))&&(_0x521e5d=_0x5453f9[_0xccc0b7(0x15f)],logger['error'](_0x521e5d),await _0x5453f9['jMFJb'](reportToGalactusAndSendToEDS,_0x5e8221,_0x26b5f1,_0x521e5d,messageTypes[_0xccc0b7(0xdc)],_0x5453f9[_0xccc0b7(0x172)],_0x5453f9[_0xccc0b7(0xe3)],_0x5453f9[_0xccc0b7(0x118)]),process[_0xccc0b7(0xf2)](0x1));_0x5453f9[_0xccc0b7(0x179)](sendInstrumentationEvent,_0x5e8221,_0x5453f9[_0xccc0b7(0x172)],messageTypes[_0xccc0b7(0xf6)],null,null,_0x5e8221);const _0x33e106=JSON[_0xccc0b7(0x15b)](fs[_0xccc0b7(0x129)](_0x5453f9[_0xccc0b7(0x19a)](getCredentialsPath)));global_registry[_0xccc0b7(0x153)]=_0x33e106['Browserstack'][_0xccc0b7(0x18d)],global_registry[_0xccc0b7(0x1aa)]=_0x33e106['Browserstack'][_0xccc0b7(0xf7)];const _0x465710=WS_ENDPOINT[_0xccc0b7(0xff)](_0x5453f9[_0xccc0b7(0x158)],_0x33e106[_0xccc0b7(0x14c)][_0xccc0b7(0x18d)])[_0xccc0b7(0xff)](_0x5453f9[_0xccc0b7(0x12b)],_0x33e106[_0xccc0b7(0x14c)][_0xccc0b7(0xf7)]),_0x321e27={};_0x321e27[_0xccc0b7(0xce)]=ws,_0x321e27[_0xccc0b7(0x121)]=0x36ee80,_0x26b5f1=new ReconnectingWebSocket(_0x465710,[],_0x321e27),global_registry['authHeader']=_0x5453f9[_0xccc0b7(0xf4)](getAuthHeader,global_registry[_0xccc0b7(0x153)],global_registry[_0xccc0b7(0x1aa)]),await _0x5453f9[_0xccc0b7(0xf4)](inputValidation,_0x5e8221,_0x26b5f1),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x4a671e=await _0x5453f9[_0xccc0b7(0xf1)](getCloudProviderObjectWithOutInit,global_registry[_0xccc0b7(0x12a)],global_registry[_0xccc0b7(0x1b5)],_0x5453f9[_0xccc0b7(0x10f)],_0x26b5f1,webSocketUtils,_0x5e8221);const _0x262c79=await _0x4a671e[_0xccc0b7(0x14e)]();_0x5453f9[_0xccc0b7(0xf4)](printResponse,_0x5453f9['zbWpF'],_0x262c79),_0x4a671e=await _0x4a671e[_0xccc0b7(0xef)]();let _0x4c1281=![];try{_0x4c1281=await _0x4a671e[_0xccc0b7(0x100)]();}catch(_0x2932a2){const _0x3232c4=_0x5453f9[_0xccc0b7(0x1ba)][_0xccc0b7(0x117)]('|');let _0x247e6f=0x0;while(!![]){switch(_0x3232c4[_0x247e6f++]){case'0':_0x4c1281=null;continue;case'1':_0x521e5d=_0xccc0b7(0x10d)+global_registry[_0xccc0b7(0x1b5)]+_0xccc0b7(0x193)+global_registry[_0xccc0b7(0x1a0)]+_0xccc0b7(0x18c)+_0x2932a2;continue;case'2':await _0x5453f9[_0xccc0b7(0x16c)](reportToGalactusAndSendToEDS,_0x5e8221,_0x26b5f1,_0x521e5d,messageTypes[_0xccc0b7(0xdc)],_0x5453f9['KOEwY'],'cluster-check-failed-'+global_registry['cloudProvider'],_0x5453f9[_0xccc0b7(0x118)]);continue;case'3':logger[_0xccc0b7(0x144)](_0x521e5d);continue;case'4':_0x521e5d+='\x0a'+JSON[_0xccc0b7(0x186)](_0x2932a2['stack']);continue;}break;}}_0x4c1281&&logger[_0xccc0b7(0x11a)](_0xccc0b7(0x196)+global_registry[_0xccc0b7(0x1b5)]+'`\x20already\x20exists');const _0x2e0d98=await _0x4a671e['checkAccess']();_0x5453f9[_0xccc0b7(0x1b2)](printResponse,_0x5453f9[_0xccc0b7(0xcd)],_0x2e0d98);const _0x2c8d1f=await _0x5453f9['uyfpH'](curlRequest);_0x5453f9['cKOku'](printResponse,_0x5453f9[_0xccc0b7(0x18e)],_0x2c8d1f);const _0x2041a1=await _0x5453f9[_0xccc0b7(0x190)](isTlsSupported,_0x5453f9['TcgHS']);_0x5453f9[_0xccc0b7(0x16f)](printResponse,_0x5453f9['UGRQn'],_0x2041a1);const _0x37da62={};_0x37da62[_0xccc0b7(0xd0)]=_0x5453f9['xzScx'],_0x37da62[_0xccc0b7(0x128)]=_0x262c79;const _0x5ac319={};_0x5ac319[_0xccc0b7(0xd0)]=_0x5453f9[_0xccc0b7(0x150)],_0x5ac319[_0xccc0b7(0x128)]=_0x2e0d98;const _0x591c92={};_0x591c92[_0xccc0b7(0xd0)]=_0x5453f9[_0xccc0b7(0x171)],_0x591c92[_0xccc0b7(0x128)]=_0x2c8d1f;const _0x1a6555={};_0x1a6555[_0xccc0b7(0xd0)]=_0x5453f9[_0xccc0b7(0xd2)],_0x1a6555['response']=_0x2041a1;const _0x1d6a15=[_0x37da62,_0x5ac319,_0x591c92,_0x1a6555],_0x6bdc91=await _0x5453f9[_0xccc0b7(0xf4)](generateReport,_0x1d6a15,_0x4c1281),_0x427c96=new Date(),_0x1c5727=_0x427c96[_0xccc0b7(0xfe)]()+'_'+_0x5453f9['jFYQB'](_0x427c96[_0xccc0b7(0x13f)](),0x1)+'_'+_0x427c96[_0xccc0b7(0xfa)]()+'_'+_0x427c96[_0xccc0b7(0x123)]()+'_'+_0x427c96[_0xccc0b7(0x147)](),_0x5b3df7=_0xccc0b7(0xcf)+_0x1c5727+_0xccc0b7(0xf0);fs[_0xccc0b7(0x17d)](_0x5b3df7,_0x6bdc91,_0x5453f9[_0xccc0b7(0xe9)]),logger['info']('Report\x20saved\x20in\x20'+_0x5b3df7),process[_0xccc0b7(0xf2)](0x0);}catch(_0x970a34){let _0x53624c='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x970a34+'\x20';logger[_0xccc0b7(0x144)](_0x53624c),_0x53624c+='\x0a'+JSON[_0xccc0b7(0x186)](_0x970a34['stack']),logger['debug'](_0xccc0b7(0x132)+_0x970a34[_0xccc0b7(0x149)]);if(_0x26b5f1){const _0x8a9756={};_0x8a9756[_0xccc0b7(0xd4)]=WS_EVENTS[_0xccc0b7(0x1a8)],_0x8a9756[_0xccc0b7(0x185)]=_0x53624c,webSocketUtils[_0xccc0b7(0xf9)](_0x26b5f1,_0x8a9756,_0x5453f9[_0xccc0b7(0x118)],!![]);}await webSocketUtils[_0xccc0b7(0x191)](0x7d0);const _0x66175={};_0x66175[_0xccc0b7(0x144)]=_0x53624c,await _0x5453f9[_0xccc0b7(0x179)](sendInstrumentationEvent,_0x5e8221,_0x5453f9[_0xccc0b7(0x172)],messageTypes[_0xccc0b7(0xdc)],_0x5453f9['kfZVE'],_0x66175,_0x5e8221),process['exit'](0x1);}};function a17_0xfd75(_0x45af83,_0x854aa6){const _0x597de7=a17_0x597d();return a17_0xfd75=function(_0xfd75e7,_0x3decfd){_0xfd75e7=_0xfd75e7-0xc2;let _0x598d48=_0x597de7[_0xfd75e7];return _0x598d48;},a17_0xfd75(_0x45af83,_0x854aa6);}function a17_0x597d(){const _0x3431e9=['split','LOIaA','JskvP','info','pre-check-grid-called','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','sKzXy','wGBfw','hdrAF','CXvYp','connectionTimeout','Iwcpp','getUTCHours','LcsLW','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','RAlGq','IpVzo','response','readFileSync','cloudProvider','VfiDy','data','Success','edXJW','aRULK','prfiA','TgRfs','stack\x20trace\x20','../../config/logger','forEach','wIqGO','headers','HAlfg','Error\x20Details:\x0a','LFRPp','CXYyt','WYpuV','pre-check','pre-check-cluster-args-not-passed','CZnFT','getUTCMonth','argv','existsSync','.\x20Please\x20provide\x20all\x20required\x20arguments.','name','error','KeuXG','Status:\x20','getUTCMinutes','ncOpZ','stack','body','../../cloudproviders/utils','Browserstack','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','isCliToolInstalled','QegyY','nytsu','nonwl','KzwBy','bstackUsername','grid\x20profile\x20flow\x20','length','../../utils/utilityMethods','18711594eXrwzE','TMuaU','help','fjDZj','parse','dummy-grid','7GBoLEb','3654306CNcVib','DCNym','Message:\x20','bmupk','GWuxb','NLjAK','pre-check-grid-profile-empty','uuid','mxKhH','cloud-provider','accessResp','zHPKK','region','QCAAL','jMFJb','ZRFlh','credential-not-found','xAqvw','Ntddp','neuyZ','KOEwY','../../config/constants','pre-check-failed','Ttlni','usage','UXPZE','nLenE','Qxwho','MuLZk','throwHttpErrors','rmXWb','writeFileSync','2002068iUSfkb','twoSo','NeUUK','GET','amVSX','yUFtA','method','message','stringify','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','sQQwJ','\x20data\x20:\x20','sDBpA','includes','`\x20,error\x20:\x20','username','RUsPm','is\x20already\x20present','DmODF','delay','User\x20Access','`\x20is\x20present\x20in\x20region\x20`','LOnZY','grid-profile','Cluster\x20`','UGanx','unLrA','code','RMUjI','dOvZI','DRGPO','KWJUZ','770000CTHeHZ','SPREQ','clusterRegion','Failure','MYVsp','`\x20already\x20exists','===\x20Precheck\x20Report\x20-\x20','grid','isTrialGridAccessible','95151MxbHgx','LOG','<PasswordPlaceholder>','bstackAccesskey','GEbNe','6dhCwEe','status','toLowerCase','builder','epilogue','uhhHC','kLmWC','N/A','https://','clusterName','error\x20stack\x20:\x20','desc','igIZR','string','SVMuV','3041944ePswWU','gridProfile','../../utils/instrumentationUtils','ozuJr','rwNoa','cloud-provider-not-supported','\x20\x20Code:\x20','JhVrd',']\x20status\x20:\x20','description','kKzcH','VKuef','WebSocket','log/report_','header','cWoZv','cVmDG','reconnecting-websocket','type','KwQAu','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Cluster\x20details\x0a-----------------------\x0a','find','kDYSZ','hXvGU','authHeader','ERROR','GbtcG','RTBEf','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','RLTwv','CLOUD_PROVIDER','PgHiv','FCYsD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','xQjeH','TMUEA','GCSwP','SxSms','lQxPe','cluster-name','options','jcBEc','debug','EHUHX','init','.txt','euPGI','exit','ybXnp','SnMgI','pre_check','INFO','password','TLSv1_2_client_method','sendEventToBackend','getUTCDate','pJJMA','nRiCz','80454XdjNWv','getUTCFullYear','replace','isClusterPresent','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','MpLGT','IvMbf','\x20error\x20:\x20','got','SSL\x20Configured','push','Invalid\x20input.\x20grid\x20profiles:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YzGKo','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','\x20\x20Message:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','Cluster\x20','pNjHs','iWLrL','YqGix','will\x20be\x20created','mJEcJ','HetUk','Setting\x20cloud\x20provider\x20as\x20','pxVhB'];a17_0x597d=function(){return _0x3431e9;};return a17_0x597d();}
1
+ const a17_0xb8aa8b=a17_0x2c41;(function(_0xb159ad,_0x4c35a4){const _0x5b98c5=a17_0x2c41,_0x2004ee=_0xb159ad();while(!![]){try{const _0x1aacd9=-parseInt(_0x5b98c5(0x124))/0x1+-parseInt(_0x5b98c5(0x169))/0x2*(parseInt(_0x5b98c5(0x1a9))/0x3)+-parseInt(_0x5b98c5(0x18a))/0x4+-parseInt(_0x5b98c5(0x165))/0x5+-parseInt(_0x5b98c5(0xfc))/0x6+-parseInt(_0x5b98c5(0x104))/0x7+parseInt(_0x5b98c5(0x196))/0x8;if(_0x1aacd9===_0x4c35a4)break;else _0x2004ee['push'](_0x2004ee['shift']());}catch(_0x2ac7b9){_0x2004ee['push'](_0x2004ee['shift']());}}}(a17_0x414b,0x9af81));const fs=require('fs'),ws=require('ws'),got=require(a17_0xb8aa8b(0xb6)),{v4:uuidv4}=require(a17_0xb8aa8b(0x101)),ReconnectingWebSocket=require(a17_0xb8aa8b(0x167)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0xb8aa8b(0xe6)),{logger}=require(a17_0xb8aa8b(0x16e)),{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_0xb8aa8b(0x1af)),{getCloudProviderObjectWithOutInit}=require(a17_0xb8aa8b(0xd8)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0xb8aa8b(0xdc));function a17_0x414b(){const _0x10d48f=['sjVWP','replace','ThQvl','Failed\x20in\x20pre-check!\x20Error:\x20','BOmBk','JsZiN','MptiH','cloud-provider-not-supported','getUTCHours','Success','KsdbZ','VqZYc','FfYKo','pre-check-grid-profile-empty','javQZ','name','authHeader','lRiiH','Status:\x20','CoIPs','unable\x20to\x20verify\x20if\x20cluster\x20`','WmTEb','EPqYF','isTls1_2_SUPPORTED','<PasswordPlaceholder>','TxgDF','ammXr','clusterName','find','yydib','includes','response','ZJGfm','status','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','aGCHl','kJPMC','vqqaO','bXRFi','QIeeA','mbgOf','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','<UsernamePlaceholder>','https://','lqgDI','BQnGQ','builder','IsNUx','IdAHi','getUTCFullYear','Nstzr','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','PrjVA','jbbUX','options','Cluster\x20','Icars','clusterRegion','svqvU','isCliToolInstalled','User\x20Access','NeRCE','4938115quPAVH','debug','reconnecting-websocket','Xapga','63708OBCCHy','grid','usage','JufVG','code','../../config/logger','ReWqK','getUTCMonth','DFboE','rlSTl','IdNiD','parse','`\x20is\x20present\x20in\x20region\x20`','Message:\x20','KInBK','QSmjU','\x20\x20Stack:\x20','FNyOV','oGUqk','nOOIi','string','stack','CtSAM','header','join','oXdsL','tKLLH','XsAmL','Missing\x20required\x20arguments:\x20','body','RKPSc','requestId','stringify','921152ourfdv','credential-not-found','pre-check','writeFileSync','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','cluster-name','BLCqI','KYkFJ','is\x20already\x20present','OBasG','mZkNB','info','33473640AEvkHL','GET','sDARX','description','kuwHa','eprkm','throwHttpErrors','LOG','peEmy','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Setting\x20cloud\x20provider\x20as\x20','NuCNx','MFvOd','headers','checkAccess','cloud-provider','dummy-grid','\x20\x20Message:\x20','argv','24uEMtwL','Browserstack','forEach','UfAiG','bbbyk','yHjzq','../../config/constants','will\x20be\x20created','isClusterPresent','===\x20Precheck\x20Report\x20-\x20','uJAnV','cloudProvider','gridProfile','.\x20Please\x20provide\x20all\x20required\x20arguments.','error',']\x20status\x20:\x20','mNajc','ERROR','zZCpn','got','\x20data\x20:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','jhYwy','region','vWStK','GkXud','RITDa','yDOpL','HoMTb','esWKR','\x20error\x20:\x20','wtwzF','otfrQ','RsfPQ','Pre-check\x20running\x20for\x20Cloud\x20-\x20','mWrYr','YkPoH','ipKwa','/packages/cli/get-all-grid-profiles','data','yghpp','\x20region\x20-\x20','nLyUv','`\x20already\x20exists','XRlyb','QZOyl','Failure','HndPf','WtLHn','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','password','N/A','error\x20stack\x20:\x20','../../cloudproviders/utils','0|3|4|1|2','delay','Whitelisted\x20browserstack','../../utils/instrumentationUtils','username','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','iBREO','SSL\x20Configured','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','RvNDQ','qATRR','pre-check-cluster-args-not-passed','getUTCMinutes','../../utils/utilityMethods','bDtSD','Report\x20saved\x20in\x20','exit','ZXTfj','oSOKF','\x20\x20Code:\x20','split','Cluster\x20details\x0a-----------------------\x0a','connectionTimeout','dLHqf','mvkhL','FZHKT','accessResp','help','REPVo','PhRJS','bstackUsername','CLOUD_PROVIDER','grid\x20profile\x20flow\x20','MXPXG','epilogue','2762892jdaWdq','existsSync','Syhqj','Tool\x20Installed','jFHCo','uuid','grid-profile','pre-check-grid-called','7311927JOEBWp','SqlhF','type','UMkIA','wziKi','`\x20,error\x20:\x20','IIJEV','BOrpr','LqLWa','plKVf','message','toLowerCase','Error\x20Details:\x0a','uLkwS','init','TLSv1_2_client_method','isTrialGridAccessible','Cluster\x20`','lKiQW','INFO','length','desc','push','VXwYE','command','gaizV','XSbDW','PJwsF','bstackAccesskey','DkJvI','sendEventToBackend','WebSocket','571666PGFhUz','mxsUx'];a17_0x414b=function(){return _0x10d48f;};return a17_0x414b();}function a17_0x2c41(_0x231d6c,_0xdc0879){const _0x414b35=a17_0x414b();return a17_0x2c41=function(_0x2c4149,_0x43371c){_0x2c4149=_0x2c4149-0xb4;let _0x5b7731=_0x414b35[_0x2c4149];return _0x5b7731;},a17_0x2c41(_0x231d6c,_0xdc0879);}exports[a17_0xb8aa8b(0x11c)]=a17_0xb8aa8b(0x16a),exports[a17_0xb8aa8b(0x119)]=a17_0xb8aa8b(0x150),exports[a17_0xb8aa8b(0x155)]=function(_0x68964a){const _0x57b8ff=a17_0xb8aa8b,_0x186883={};_0x186883[_0x57b8ff(0x130)]=_0x57b8ff(0xb8),_0x186883[_0x57b8ff(0xcb)]='string',_0x186883[_0x57b8ff(0x14b)]=_0x57b8ff(0xde),_0x186883[_0x57b8ff(0x125)]=_0x57b8ff(0x14f),_0x186883['XRlyb']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x186883[_0x57b8ff(0x1b3)]=_0x57b8ff(0xf4);const _0x243584=_0x186883,_0x496ed6={};_0x496ed6[_0x57b8ff(0x199)]=_0x243584[_0x57b8ff(0x130)],_0x496ed6['type']=_0x243584[_0x57b8ff(0xcb)];const _0x6901a7={};_0x6901a7[_0x57b8ff(0x199)]=_0x243584[_0x57b8ff(0x14b)],_0x6901a7['type']=_0x243584[_0x57b8ff(0xcb)];const _0x3a6092={};_0x3a6092[_0x57b8ff(0x199)]=_0x243584[_0x57b8ff(0x125)],_0x3a6092[_0x57b8ff(0x106)]=_0x243584[_0x57b8ff(0xcb)];const _0x668b48={};_0x668b48['description']=_0x243584[_0x57b8ff(0xcf)],_0x668b48[_0x57b8ff(0x106)]=_0x243584[_0x57b8ff(0xcb)];const _0x5e681c={};return _0x5e681c[_0x57b8ff(0x18f)]=_0x496ed6,_0x5e681c[_0x57b8ff(0x1a5)]=_0x6901a7,_0x5e681c['region']=_0x3a6092,_0x5e681c[_0x57b8ff(0x102)]=_0x668b48,_0x68964a[_0x57b8ff(0x16b)](HELP_HEADER_MESSAGE['pre_check'])[_0x57b8ff(0xfb)](HELP_FOOTER_MESSAGE)[_0x57b8ff(0x15d)](_0x5e681c)['help'](_0x243584[_0x57b8ff(0x1b3)])[_0x57b8ff(0x1a8)];};async function inputValidation(_0x58265d,_0x35e011){const _0x2ae826=a17_0xb8aa8b,_0x329be3={'jhYwy':_0x2ae826(0x1b7),'oSOKF':_0x2ae826(0x192),'RvNDQ':'will\x20be\x20created','RsfPQ':_0x2ae826(0x1a5),'mNajc':_0x2ae826(0xb8),'CtSAM':_0x2ae826(0x17d),'bXRFi':_0x2ae826(0xde),'KYkFJ':_0x2ae826(0x14f),'eprkm':_0x2ae826(0x18e),'kJPMC':_0x2ae826(0xf4),'wziKi':_0x2ae826(0xba),'UfAiG':'Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','CoIPs':function(_0x218136,_0x8bc90){return _0x218136+_0x8bc90;},'YJFAR':_0x2ae826(0x12f),'bbbyk':_0x2ae826(0xd1),'BQnGQ':function(_0x3fa877,_0x152ee5){return _0x3fa877||_0x152ee5;},'otfrQ':'N/A','PrjVA':'Error\x20Details:\x0a','JufVG':'cluster-name','ReWqK':function(_0x197cc4,_0x73545f){return _0x197cc4===_0x73545f;},'SqlhF':'XpSyO','VXwYE':_0x2ae826(0x194),'RKPSc':function(_0x1465e9,_0x33cdaf){return _0x1465e9===_0x33cdaf;},'DkJvI':'UJkqI','PJwsF':_0x2ae826(0x137),'KInBK':function(_0x45dcd9,_0x56f25b){return _0x45dcd9!==_0x56f25b;},'FxrUI':'HqUhH','yDOpL':_0x2ae826(0xf0),'FZHKT':function(_0xc160b3,_0xbfe44f){return _0xc160b3!==_0xbfe44f;},'BOrpr':_0x2ae826(0xcd),'ZXTfj':_0x2ae826(0x161),'lqgDI':function(_0x3db2fe,_0x354f5c){return _0x3db2fe>_0x354f5c;},'sDARX':'CepTu','HndPf':function(_0x3a9fc7,_0x2a4f74,_0x31298e,_0x1ca1ed,_0x5b57d3,_0x2b9bbd,_0x429b0a,_0x3db6c0){return _0x3a9fc7(_0x2a4f74,_0x31298e,_0x1ca1ed,_0x5b57d3,_0x2b9bbd,_0x429b0a,_0x3db6c0);},'IdNiD':_0x2ae826(0x103),'EPqYF':_0x2ae826(0xe4),'dTvRM':function(_0x122906,_0x4bfc59){return _0x122906===_0x4bfc59;},'MXPXG':_0x2ae826(0xf6),'mWrYr':'jxSTt','sjVWP':_0x2ae826(0x19f),'lKiQW':function(_0x155a32,_0xd1f624,_0x3c0331,_0x125362,_0x2fb3be,_0x53435c,_0x21697f,_0x5438e8){return _0x155a32(_0xd1f624,_0x3c0331,_0x125362,_0x2fb3be,_0x53435c,_0x21697f,_0x5438e8);},'FNyOV':_0x2ae826(0x12d),'gaizV':function(_0x178d26,_0x3330c0){return _0x178d26===_0x3330c0;},'JFuCm':_0x2ae826(0x1ae),'JsZiN':function(_0x1d89ac,_0x3c1b67){return _0x1d89ac===_0x3c1b67;},'iBREO':_0x2ae826(0xbb),'uDMLf':_0x2ae826(0x197),'kuwHa':function(_0x1e9f42,_0x36748e,_0x34e607){return _0x1e9f42(_0x36748e,_0x34e607);},'jFHCo':function(_0x52cd50,_0x369bbc,_0x54f448,_0x376da2,_0x1587a3,_0x24eef7){return _0x52cd50(_0x369bbc,_0x54f448,_0x376da2,_0x1587a3,_0x24eef7);},'zZCpn':_0x2ae826(0x18c),'XsAmL':_0x2ae826(0x102),'uLkwS':_0x2ae826(0x13f),'qATRR':function(_0x12f1b7,_0x2fe112){return _0x12f1b7(_0x2fe112);},'MptiH':function(_0x3d5027,_0x37f0cb){return _0x3d5027===_0x37f0cb;},'mgKYH':_0x2ae826(0x156),'BLCqI':'sUnCX','MFvOd':_0x2ae826(0x133),'FeVdI':'hWDmh','IdAHi':_0x2ae826(0x183),'IdcZZ':_0x2ae826(0x12a),'NeRCE':'Grid\x20profile\x20fetched\x20for\x20pre-check','ipKwa':_0x2ae826(0x132),'aGCHl':'zsJkO','Pyzpl':function(_0x205123,_0x1b22e1){return _0x205123===_0x1b22e1;},'OBasG':'PayPr','VqZYc':_0x2ae826(0xfe),'jouGJ':function(_0x3aa0a9,_0x382343,_0x5d97e6,_0x555086,_0x5d9dfe,_0x4640c6,_0x22af81,_0x79c68d){return _0x3aa0a9(_0x382343,_0x5d97e6,_0x555086,_0x5d9dfe,_0x4640c6,_0x22af81,_0x79c68d);}};let _0x19778c;try{if(_0x329be3[_0x2ae826(0x16f)](_0x329be3[_0x2ae826(0x105)],_0x329be3[_0x2ae826(0x11b)]))_0x486bab[_0x2ae826(0x195)]('['+_0x348693+_0x2ae826(0x1b8)+_0x2304bc[_0x2ae826(0x147)]+_0x2ae826(0xb7)+_0x4cc8b[_0x2ae826(0xca)]+_0x2ae826(0xc1)+_0x551cb8[_0x2ae826(0x1b7)]),_0xff75df[_0x2ae826(0x1b7)]&&_0x11a878[_0x2ae826(0x1b7)](_0x2ae826(0xd7)+_0x4b93f6['error']['stack']);else{if(_0x58265d['clusterName']||_0x58265d[_0x2ae826(0x1b4)]||_0x58265d['region']){if(_0x329be3[_0x2ae826(0x187)](_0x329be3[_0x2ae826(0x121)],_0x329be3[_0x2ae826(0x121)])){const _0x354597=[];if(!_0x58265d['clusterName']){if(_0x329be3[_0x2ae826(0x187)](_0x329be3['PJwsF'],_0x329be3[_0x2ae826(0x11f)]))_0x354597['push'](_0x329be3[_0x2ae826(0x16c)]);else{const _0xf402ce={};_0xf402ce[_0x2ae826(0x106)]=_0x3c7751[_0x2ae826(0x19d)],_0xf402ce['message']=_0x44990c,_0x231f63['sendEventToBackend'](_0x255d2d,_0xf402ce,_0x329be3[_0x2ae826(0xb9)],!![]);}};!_0x58265d[_0x2ae826(0x1b4)]&&(_0x329be3[_0x2ae826(0x177)](_0x329be3['FxrUI'],_0x329be3[_0x2ae826(0xbe)])?_0x354597['push'](_0x329be3[_0x2ae826(0xc4)]):_0xccb6ca+='Cluster\x20'+_0x25209a[_0x2ae826(0x141)]+'\x20'+(_0x341edd?_0x329be3[_0x2ae826(0xeb)]:_0x329be3[_0x2ae826(0xe2)])+'\x0a\x0a');;!_0x58265d[_0x2ae826(0xba)]&&(_0x329be3[_0x2ae826(0xf2)](_0x329be3[_0x2ae826(0x10b)],_0x329be3[_0x2ae826(0xea)])?_0x354597[_0x2ae826(0x11a)](_0x329be3[_0x2ae826(0x108)]):_0x16fbbf[_0x2ae826(0x195)](_0x2ae826(0x115)+_0x227461[_0x2ae826(0x141)]+'`\x20already\x20exists'));;_0x329be3[_0x2ae826(0x153)](_0x354597[_0x2ae826(0x118)],0x0)&&(_0x329be3['KInBK'](_0x329be3[_0x2ae826(0x198)],_0x329be3[_0x2ae826(0x198)])?_0x8b4c9b['push'](_0x329be3[_0x2ae826(0xc4)]):(_0x19778c=_0x2ae826(0x185)+_0x354597[_0x2ae826(0x181)](',\x20')+_0x2ae826(0x1b6),await _0x329be3[_0x2ae826(0xd2)](reportToGalactusAndSendToEDS,_0x58265d,_0x35e011,_0x19778c,messageTypes[_0x2ae826(0xb4)],_0x329be3[_0x2ae826(0x173)],_0x329be3[_0x2ae826(0x13c)],_0x329be3[_0x2ae826(0xb9)]),logger['error'](_0x19778c),process[_0x2ae826(0xe9)](0x1)));if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x2ae826(0x144)](_0x58265d[_0x2ae826(0x1b4)][_0x2ae826(0x10f)]())){if(_0x329be3['dTvRM'](_0x329be3[_0x2ae826(0xfa)],_0x329be3[_0x2ae826(0xc6)])){const _0x59763a={};_0x59763a['description']=_0x329be3[_0x2ae826(0x1b9)],_0x59763a['type']=_0x329be3['CtSAM'];const _0x201664={};_0x201664[_0x2ae826(0x199)]=_0x329be3[_0x2ae826(0x14c)],_0x201664[_0x2ae826(0x106)]=_0x329be3[_0x2ae826(0x17f)];const _0x4ec442={};_0x4ec442[_0x2ae826(0x199)]=_0x329be3[_0x2ae826(0x191)],_0x4ec442[_0x2ae826(0x106)]=_0x329be3['CtSAM'];const _0x325a44={};_0x325a44['description']=_0x329be3[_0x2ae826(0x19b)],_0x325a44[_0x2ae826(0x106)]=_0x329be3['CtSAM'];const _0x2e1317={};return _0x2e1317[_0x2ae826(0x18f)]=_0x59763a,_0x2e1317['cloud-provider']=_0x201664,_0x2e1317['region']=_0x4ec442,_0x2e1317[_0x2ae826(0x102)]=_0x325a44,_0x574626[_0x2ae826(0x16b)](_0x52a34f['pre_check'])[_0x2ae826(0xfb)](_0x2b02d3)['options'](_0x2e1317)[_0x2ae826(0xf4)](_0x329be3[_0x2ae826(0x14a)])[_0x2ae826(0x1a8)];}else _0x19778c=_0x329be3[_0x2ae826(0x126)],await _0x329be3[_0x2ae826(0x116)](reportToGalactusAndSendToEDS,_0x58265d,_0x35e011,_0x19778c,messageTypes[_0x2ae826(0xb4)],_0x329be3['IdNiD'],_0x329be3[_0x2ae826(0x17a)],_0x329be3[_0x2ae826(0xb9)]),logger[_0x2ae826(0x1b7)](_0x19778c),!_0x58265d[_0x2ae826(0x1b4)]&&(_0x329be3['gaizV'](_0x329be3['JFuCm'],_0x329be3['JFuCm'])?(logger[_0x2ae826(0x195)](_0x2ae826(0x1a0)+DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER']+'\x20'),_0x58265d[_0x2ae826(0x1b4)]=DEFAULT_CLUSTER_DETAILS[_0x2ae826(0xf8)]):(_0x582654[_0x2ae826(0x195)]('Setting\x20cloud\x20provider\x20as\x20'+_0xfe8c55['CLOUD_PROVIDER']+'\x20'),_0x2f6593[_0x2ae826(0x1b4)]=_0x5e1331[_0x2ae826(0xf8)]));}global_registry[_0x2ae826(0x141)]=_0x58265d['clusterName'],global_registry['cloudProvider']=_0x58265d[_0x2ae826(0x1b4)],global_registry[_0x2ae826(0x160)]=_0x58265d[_0x2ae826(0xba)];}else _0x143418[_0x2ae826(0xe9)](0x1);}else{if(_0x58265d[_0x2ae826(0x1b5)]){if(_0x329be3[_0x2ae826(0x12b)](_0x329be3['iBREO'],_0x329be3[_0x2ae826(0xdf)])){global_registry[_0x2ae826(0x1b5)]=_0x58265d[_0x2ae826(0x1b5)],logger['debug'](_0x2ae826(0xf9)+_0x58265d[_0x2ae826(0x1b5)]);const _0x4dcc78=_0x2ae826(0x152)+AG_API_URL+_0x2ae826(0xc9),_0x18282a={};_0x18282a['method']=_0x329be3['uDMLf'],_0x18282a[_0x2ae826(0x1a3)]=global_registry['authHeader'],_0x18282a[_0x2ae826(0x19c)]=![];const _0x20369b=_0x18282a,_0x7b281d=await _0x329be3[_0x2ae826(0x19a)](got,_0x4dcc78,_0x20369b),_0x4a9887=await _0x329be3[_0x2ae826(0x100)](responseValidation,_0x7b281d,_0x329be3[_0x2ae826(0xb5)],_0x329be3[_0x2ae826(0x184)],_0x58265d,_0x35e011);let _0x24be3c={};if(_0x329be3[_0x2ae826(0x11d)](_0x4a9887,0xc8)){if(_0x329be3['KInBK'](_0x329be3[_0x2ae826(0x111)],_0x329be3['uLkwS']))_0x2103ec['error']('error\x20stack\x20:\x20'+_0x115405[_0x2ae826(0x1b7)]['stack']);else{const _0x447d6e=JSON[_0x2ae826(0x174)](_0x7b281d[_0x2ae826(0x186)]),_0x3e10df=_0x447d6e[_0x2ae826(0x142)](_0x290b03=>_0x290b03[_0x2ae826(0x135)]===_0x58265d[_0x2ae826(0x1b5)])||null;_0x329be3[_0x2ae826(0xe3)](isUndefined,_0x3e10df)?_0x329be3[_0x2ae826(0x12c)](_0x329be3['mgKYH'],_0x329be3[_0x2ae826(0x190)])?_0x1347cc=_0x10be17:(_0x19778c='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x58265d['gridProfile']+_0x2ae826(0xd4),await _0x329be3['lKiQW'](reportToGalactusAndSendToEDS,_0x58265d,_0x35e011,_0x19778c,messageTypes[_0x2ae826(0xb4)],_0x329be3[_0x2ae826(0x173)],_0x329be3[_0x2ae826(0x1a2)],_0x329be3[_0x2ae826(0xb9)]),logger[_0x2ae826(0x1b7)](_0x19778c),process[_0x2ae826(0xe9)](0x1)):_0x329be3[_0x2ae826(0xf2)](_0x329be3['FeVdI'],_0x329be3['FeVdI'])?_0xe50bd8[_0x2ae826(0x11a)](_0x329be3[_0x2ae826(0x108)]):_0x24be3c=_0x3e10df;}}else _0x329be3['KInBK'](_0x329be3[_0x2ae826(0x157)],_0x329be3['IdcZZ'])?process[_0x2ae826(0xe9)](0x1):(_0x3eacd7[_0x2ae826(0x1b7)](_0x329be3[_0x2ae826(0x1ac)]),_0x38173f['exit'](0x1));const _0x45e0c6={};_0x45e0c6[_0x2ae826(0x106)]=WS_EVENTS[_0x2ae826(0x19d)],_0x45e0c6[_0x2ae826(0x10e)]=_0x329be3[_0x2ae826(0x164)],webSocketUtils[_0x2ae826(0x122)](_0x35e011,_0x45e0c6),global_registry[_0x2ae826(0x1b4)]=_0x24be3c[_0x2ae826(0x1b4)],global_registry[_0x2ae826(0x160)]=_0x24be3c[_0x2ae826(0xba)],global_registry[_0x2ae826(0x141)]=_0x24be3c[_0x2ae826(0x141)];}else{const {header:_0x19d280,response:_0x10309b}=_0x2e1444,{status:_0x1daca7,data:_0x25c401,error:_0x5425e4}=_0x10309b;_0x48a6fa+=_0x19d280+'\x20#'+_0x329be3[_0x2ae826(0x139)](_0x14bc06,0x1)+'\x0a',_0x1ca3fc+=_0x2ae826(0x138)+(_0x1daca7?_0x329be3['YJFAR']:_0x329be3[_0x2ae826(0x1ad)])+'\x0a',_0x5856b9+=_0x2ae826(0x176)+_0x329be3[_0x2ae826(0x154)](_0x25c401,_0x329be3[_0x2ae826(0xc3)])+'\x0a',_0x5425e4&&(_0x39fe31+=_0x329be3[_0x2ae826(0x15b)],_0x33831a+='\x20\x20Message:\x20'+(_0x5425e4['message']||_0x329be3[_0x2ae826(0xc3)])+'\x0a',_0xc57d16+='\x20\x20Code:\x20'+(_0x5425e4[_0x2ae826(0x16d)]||_0x329be3['otfrQ'])+'\x0a',_0x23b0cf+=_0x2ae826(0x179)+(_0x5425e4[_0x2ae826(0x17e)]||_0x329be3['otfrQ'])+'\x0a'),_0x458b55+='\x0a\x0a';}}else _0x329be3[_0x2ae826(0x177)](_0x329be3[_0x2ae826(0xc8)],_0x329be3[_0x2ae826(0x149)])?(logger[_0x2ae826(0x1b7)](_0x329be3['UfAiG']),process[_0x2ae826(0xe9)](0x1)):_0x3584f9[_0x2ae826(0x11a)](_0x329be3[_0x2ae826(0x16c)]);}}}catch(_0x1bc591){_0x329be3['Pyzpl'](_0x329be3[_0x2ae826(0x193)],_0x329be3[_0x2ae826(0x131)])?(_0x5d2976+=_0x329be3['PrjVA'],_0x1307cd+=_0x2ae826(0x1a7)+(_0x47c313[_0x2ae826(0x10e)]||_0x329be3[_0x2ae826(0xc3)])+'\x0a',_0x15022a+=_0x2ae826(0xec)+(_0x354000[_0x2ae826(0x16d)]||_0x329be3[_0x2ae826(0xc3)])+'\x0a',_0x1b865b+=_0x2ae826(0x179)+(_0x558985['stack']||_0x329be3[_0x2ae826(0xc3)])+'\x0a'):(_0x19778c=_0x2ae826(0xe1)+_0x1bc591+':\x20'+_0x1bc591[_0x2ae826(0x17e)],logger[_0x2ae826(0x1b7)](_0x19778c),await _0x329be3['jouGJ'](reportToGalactusAndSendToEDS,_0x58265d,_0x35e011,_0x19778c,messageTypes['ERROR'],_0x329be3[_0x2ae826(0x173)],_0x329be3[_0x2ae826(0x17a)],_0x329be3[_0x2ae826(0xb9)]),process[_0x2ae826(0xe9)](0x1));}}function printResponse(_0x1bf1e1,_0x56c16e){const _0x378863=a17_0xb8aa8b,_0x21972d={};_0x21972d[_0x378863(0x171)]=function(_0x569d28,_0x47175c){return _0x569d28===_0x47175c;},_0x21972d[_0x378863(0xd3)]='SVqmJ',_0x21972d['HoMTb']=_0x378863(0x168);const _0x14f879=_0x21972d;logger[_0x378863(0x195)]('['+_0x1bf1e1+_0x378863(0x1b8)+_0x56c16e['status']+_0x378863(0xb7)+_0x56c16e[_0x378863(0xca)]+_0x378863(0xc1)+_0x56c16e['error']),_0x56c16e[_0x378863(0x1b7)]&&(_0x14f879['DFboE'](_0x14f879[_0x378863(0xd3)],_0x14f879[_0x378863(0xbf)])?_0x260fa4+='Cluster\x20'+_0x269a13[_0x378863(0x141)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':logger[_0x378863(0x1b7)]('error\x20stack\x20:\x20'+_0x56c16e['error']['stack']));}async function generateReport(_0x1a623b,_0x5352e8){const _0x39193e=a17_0xb8aa8b,_0x18c4ca={'UMkIA':function(_0x33de0c,_0x4c055b){return _0x33de0c+_0x4c055b;},'vbmUO':_0x39193e(0x12f),'javQZ':_0x39193e(0xd1),'gNnAQ':function(_0x50b0d1,_0x288245){return _0x50b0d1||_0x288245;},'REPVo':_0x39193e(0xd6),'ThQvl':_0x39193e(0x110),'ZEFFs':_0x39193e(0xee),'jbbUX':function(_0x2dc1bf,_0x50f645){return _0x2dc1bf!=_0x50f645;},'DDgpQ':_0x39193e(0x192),'GkXud':_0x39193e(0x1b0),'ammXr':function(_0x4fbfd2){return _0x4fbfd2();}};let _0x37e3f9=_0x39193e(0x1b2)+global_registry[_0x39193e(0x1b4)]+'\x20===\x0a\x0a';return _0x1a623b[_0x39193e(0x1ab)]((_0x1634ea,_0x20d01e)=>{const _0x46dc99=_0x39193e,{header:_0x4fe14e,response:_0x141747}=_0x1634ea,{status:_0xa0013e,data:_0x11d214,error:_0x4cad9b}=_0x141747;_0x37e3f9+=_0x4fe14e+'\x20#'+_0x18c4ca[_0x46dc99(0x107)](_0x20d01e,0x1)+'\x0a',_0x37e3f9+=_0x46dc99(0x138)+(_0xa0013e?_0x18c4ca['vbmUO']:_0x18c4ca[_0x46dc99(0x134)])+'\x0a',_0x37e3f9+=_0x46dc99(0x176)+_0x18c4ca['gNnAQ'](_0x11d214,_0x18c4ca[_0x46dc99(0xf5)])+'\x0a',_0x4cad9b&&(_0x37e3f9+=_0x18c4ca[_0x46dc99(0x128)],_0x37e3f9+=_0x46dc99(0x1a7)+(_0x4cad9b[_0x46dc99(0x10e)]||_0x18c4ca['REPVo'])+'\x0a',_0x37e3f9+=_0x46dc99(0xec)+(_0x4cad9b[_0x46dc99(0x16d)]||_0x18c4ca['REPVo'])+'\x0a',_0x37e3f9+=_0x46dc99(0x179)+(_0x4cad9b[_0x46dc99(0x17e)]||_0x18c4ca[_0x46dc99(0xf5)])+'\x0a'),_0x37e3f9+='\x0a\x0a';}),_0x37e3f9+=_0x18c4ca['ZEFFs'],_0x18c4ca[_0x39193e(0x15c)](_0x5352e8,null)?_0x37e3f9+=_0x39193e(0x15e)+global_registry[_0x39193e(0x141)]+'\x20'+(_0x5352e8?_0x18c4ca['DDgpQ']:_0x18c4ca[_0x39193e(0xbc)])+'\x0a\x0a':_0x37e3f9+='Cluster\x20'+global_registry[_0x39193e(0x141)]+_0x39193e(0x15a),_0x37e3f9+=_0x18c4ca[_0x39193e(0x140)](getSystemMetaData),_0x37e3f9;};exports['handler']=async function(_0x5bf9e6){const _0x102c30=a17_0xb8aa8b,_0x585c06={'bDtSD':function(_0x2b0e4d){return _0x2b0e4d();},'rlSTl':_0x102c30(0x148),'QIeeA':function(_0x2824fe,_0x2cd6bf,_0x4e0508,_0x5bf2d4,_0x4c3c35,_0xce9bac,_0x3ea608,_0x18b8be){return _0x2824fe(_0x2cd6bf,_0x4e0508,_0x5bf2d4,_0x4c3c35,_0xce9bac,_0x3ea608,_0x18b8be);},'IIJEV':'pre-check-grid-called','RITDa':_0x102c30(0x18b),'mbgOf':_0x102c30(0x1b7),'peEmy':function(_0x5b141f,_0x3742b7,_0x588c30,_0x231c46,_0x4dd98e,_0x5a2c3d,_0x5f5707){return _0x5b141f(_0x3742b7,_0x588c30,_0x231c46,_0x4dd98e,_0x5a2c3d,_0x5f5707);},'SUref':_0x102c30(0x151),'mvkhL':_0x102c30(0x13e),'oGUqk':function(_0x118c51,_0x1ddfe4,_0x5495f8){return _0x118c51(_0x1ddfe4,_0x5495f8);},'lqHdo':function(_0x5380a5,_0x4df9b0,_0x5955f3,_0x816744,_0x7ac829,_0x31da40,_0x240983){return _0x5380a5(_0x4df9b0,_0x5955f3,_0x816744,_0x7ac829,_0x31da40,_0x240983);},'wtwzF':_0x102c30(0x1a6),'QZOyl':function(_0x190bc6,_0x2b4ca9,_0x2ceff5){return _0x190bc6(_0x2b4ca9,_0x2ceff5);},'NuCNx':'toolInstalledResp','plKVf':_0x102c30(0xd9),'nOOIi':_0x102c30(0xf3),'LqLWa':function(_0x4ee07c){return _0x4ee07c();},'YkPoH':_0x102c30(0x114),'QSmjU':function(_0xa62042,_0x589973){return _0xa62042(_0x589973);},'esWKR':_0x102c30(0x113),'XSbDW':_0x102c30(0x13d),'WmTEb':_0x102c30(0xff),'oXdsL':_0x102c30(0x163),'QhmjD':_0x102c30(0xdb),'NWNKE':_0x102c30(0xe0),'Icars':function(_0x1844cf,_0x3fbcec,_0x117e98){return _0x1844cf(_0x3fbcec,_0x117e98);},'Nstzr':function(_0x8841af,_0x18d423){return _0x8841af+_0x18d423;},'ltUvO':'utf-8','yydib':function(_0x4db452,_0x38a4e3,_0xf267fe,_0x53ecd5,_0x45312a,_0x4f980c,_0x567757){return _0x4db452(_0x38a4e3,_0xf267fe,_0x53ecd5,_0x45312a,_0x4f980c,_0x567757);},'ZJGfm':'pre-check-failed'};let _0x25c0e4,_0x410ae7;try{global_registry[_0x102c30(0x188)]=_0x585c06[_0x102c30(0xe7)](uuidv4);!fs[_0x102c30(0xfd)](_0x585c06[_0x102c30(0xe7)](getCredentialsPath))&&(_0x410ae7=_0x585c06[_0x102c30(0x172)],logger[_0x102c30(0x1b7)](_0x410ae7),await _0x585c06[_0x102c30(0x14d)](reportToGalactusAndSendToEDS,_0x5bf9e6,_0x25c0e4,_0x410ae7,messageTypes[_0x102c30(0xb4)],_0x585c06[_0x102c30(0x10a)],_0x585c06[_0x102c30(0xbd)],_0x585c06[_0x102c30(0x14e)]),process[_0x102c30(0xe9)](0x1));_0x585c06[_0x102c30(0x19e)](sendInstrumentationEvent,_0x5bf9e6,_0x585c06[_0x102c30(0x10a)],messageTypes[_0x102c30(0x117)],null,null,_0x5bf9e6);const _0x43c55e=JSON['parse'](fs['readFileSync'](_0x585c06[_0x102c30(0xe7)](getCredentialsPath)));global_registry[_0x102c30(0xf7)]=_0x43c55e[_0x102c30(0x1aa)][_0x102c30(0xdd)],global_registry[_0x102c30(0x120)]=_0x43c55e[_0x102c30(0x1aa)][_0x102c30(0xd5)];const _0x3fbaf1=WS_ENDPOINT[_0x102c30(0x127)](_0x585c06['SUref'],_0x43c55e[_0x102c30(0x1aa)][_0x102c30(0xdd)])['replace'](_0x585c06[_0x102c30(0xf1)],_0x43c55e['Browserstack'][_0x102c30(0xd5)]),_0x16d451={};_0x16d451[_0x102c30(0x123)]=ws,_0x16d451[_0x102c30(0xef)]=0x36ee80,_0x25c0e4=new ReconnectingWebSocket(_0x3fbaf1,[],_0x16d451),global_registry[_0x102c30(0x136)]=_0x585c06[_0x102c30(0x17b)](getAuthHeader,global_registry[_0x102c30(0xf7)],global_registry[_0x102c30(0x120)]),await _0x585c06[_0x102c30(0x17b)](inputValidation,_0x5bf9e6,_0x25c0e4),logger[_0x102c30(0x195)](_0x102c30(0xc5)+global_registry[_0x102c30(0x1b4)]+_0x102c30(0xcc)+global_registry['clusterRegion']);let _0x1e7049=await _0x585c06['lqHdo'](getCloudProviderObjectWithOutInit,global_registry[_0x102c30(0x1b4)],global_registry[_0x102c30(0x141)],_0x585c06[_0x102c30(0xc2)],_0x25c0e4,webSocketUtils,_0x5bf9e6);const _0x3c9f81=await _0x1e7049[_0x102c30(0x162)]();_0x585c06[_0x102c30(0xd0)](printResponse,_0x585c06[_0x102c30(0x1a1)],_0x3c9f81),_0x1e7049=await _0x1e7049[_0x102c30(0x112)]();let _0x59882d=![];try{_0x59882d=await _0x1e7049[_0x102c30(0x1b1)]();}catch(_0x3dbe6f){const _0x3b219d=_0x585c06[_0x102c30(0x10d)][_0x102c30(0xed)]('|');let _0x3e2a6d=0x0;while(!![]){switch(_0x3b219d[_0x3e2a6d++]){case'0':_0x410ae7=_0x102c30(0x13a)+global_registry[_0x102c30(0x141)]+_0x102c30(0x175)+global_registry['clusterRegion']+_0x102c30(0x109)+_0x3dbe6f;continue;case'1':_0x410ae7+='\x0a'+JSON[_0x102c30(0x189)](_0x3dbe6f[_0x102c30(0x17e)]);continue;case'2':await _0x585c06[_0x102c30(0x14d)](reportToGalactusAndSendToEDS,_0x5bf9e6,_0x25c0e4,_0x410ae7,messageTypes['ERROR'],_0x585c06[_0x102c30(0x10a)],'cluster-check-failed-'+global_registry[_0x102c30(0x1b4)],_0x585c06[_0x102c30(0x14e)]);continue;case'3':_0x59882d=null;continue;case'4':logger['error'](_0x410ae7);continue;}break;}}_0x59882d&&logger[_0x102c30(0x195)](_0x102c30(0x115)+global_registry['clusterName']+_0x102c30(0xce));const _0x5510bc=await _0x1e7049[_0x102c30(0x1a4)]();_0x585c06[_0x102c30(0xd0)](printResponse,_0x585c06[_0x102c30(0x17c)],_0x5510bc);const _0x1d1003=await _0x585c06[_0x102c30(0x10c)](curlRequest);_0x585c06[_0x102c30(0xd0)](printResponse,_0x585c06[_0x102c30(0xc7)],_0x1d1003);const _0x17d293=await _0x585c06[_0x102c30(0x178)](isTlsSupported,_0x585c06[_0x102c30(0xc0)]);_0x585c06['QZOyl'](printResponse,_0x585c06[_0x102c30(0x11e)],_0x17d293);const _0x562a22={};_0x562a22['header']=_0x585c06[_0x102c30(0x13b)],_0x562a22['response']=_0x3c9f81;const _0x51d4de={};_0x51d4de[_0x102c30(0x180)]=_0x585c06[_0x102c30(0x182)],_0x51d4de[_0x102c30(0x145)]=_0x5510bc;const _0xcf38c1={};_0xcf38c1['header']=_0x585c06['QhmjD'],_0xcf38c1['response']=_0x1d1003;const _0x590215={};_0x590215[_0x102c30(0x180)]=_0x585c06['NWNKE'],_0x590215[_0x102c30(0x145)]=_0x17d293;const _0x39f5dc=[_0x562a22,_0x51d4de,_0xcf38c1,_0x590215],_0x1ce8b4=await _0x585c06[_0x102c30(0x15f)](generateReport,_0x39f5dc,_0x59882d),_0x4ed3d5=new Date(),_0x4acf69=_0x4ed3d5[_0x102c30(0x158)]()+'_'+_0x585c06[_0x102c30(0x159)](_0x4ed3d5[_0x102c30(0x170)](),0x1)+'_'+_0x4ed3d5['getUTCDate']()+'_'+_0x4ed3d5[_0x102c30(0x12e)]()+'_'+_0x4ed3d5[_0x102c30(0xe5)](),_0x301ada='log/report_'+_0x4acf69+'.txt';fs[_0x102c30(0x18d)](_0x301ada,_0x1ce8b4,_0x585c06['ltUvO']),logger['info'](_0x102c30(0xe8)+_0x301ada),process[_0x102c30(0xe9)](0x0);}catch(_0x3da14b){let _0x47e082=_0x102c30(0x129)+_0x3da14b+'\x20';logger[_0x102c30(0x1b7)](_0x47e082),_0x47e082+='\x0a'+JSON['stringify'](_0x3da14b[_0x102c30(0x17e)]),logger[_0x102c30(0x166)]('stack\x20trace\x20'+_0x3da14b[_0x102c30(0x17e)]);if(_0x25c0e4){const _0x5aa5a6={};_0x5aa5a6[_0x102c30(0x106)]=WS_EVENTS[_0x102c30(0x19d)],_0x5aa5a6[_0x102c30(0x10e)]=_0x47e082,webSocketUtils['sendEventToBackend'](_0x25c0e4,_0x5aa5a6,_0x585c06[_0x102c30(0x14e)],!![]);}await webSocketUtils[_0x102c30(0xda)](0x7d0);const _0x344c0b={};_0x344c0b[_0x102c30(0x1b7)]=_0x47e082,await _0x585c06[_0x102c30(0x143)](sendInstrumentationEvent,_0x5bf9e6,_0x585c06[_0x102c30(0x10a)],messageTypes[_0x102c30(0xb4)],_0x585c06[_0x102c30(0x146)],_0x344c0b,_0x5bf9e6),process[_0x102c30(0xe9)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x10412a=a18_0x8787;function a18_0x8787(_0x5a7424,_0x2bc1ab){const _0x6eeb50=a18_0x6eeb();return a18_0x8787=function(_0x8787d5,_0x1f934f){_0x8787d5=_0x8787d5-0xf2;let _0x14b45b=_0x6eeb50[_0x8787d5];return _0x14b45b;},a18_0x8787(_0x5a7424,_0x2bc1ab);}function a18_0x6eeb(){const _0x4b435f=['handler','945152UoAqZh','demandCommand','help','Start\x20an\x20existing\x20Automation\x20grid.','747jXsIkT','commandDir','recommendCommands','QdoAD','../config/constants','1096571EmEwMK','569370JNIwIB','start','9010kxSPDh','strict','ZWQSf','epilogue','1153866OrsLBD','101PFqLCc','builder','928188jRgMqe','128648LQPaCk','start_commands'];a18_0x6eeb=function(){return _0x4b435f;};return a18_0x6eeb();}(function(_0x2bb2f7,_0x5a1b9c){const _0x120c01=a18_0x8787,_0x10aafb=_0x2bb2f7();while(!![]){try{const _0x14bfeb=-parseInt(_0x120c01(0xfc))/0x1*(parseInt(_0x120c01(0xf7))/0x2)+-parseInt(_0x120c01(0xfe))/0x3+-parseInt(_0x120c01(0x102))/0x4+parseInt(_0x120c01(0xf5))/0x5+parseInt(_0x120c01(0xfb))/0x6+-parseInt(_0x120c01(0xf4))/0x7+parseInt(_0x120c01(0xff))/0x8*(parseInt(_0x120c01(0x106))/0x9);if(_0x14bfeb===_0x5a1b9c)break;else _0x10aafb['push'](_0x10aafb['shift']());}catch(_0xcb3a1b){_0x10aafb['push'](_0x10aafb['shift']());}}}(a18_0x6eeb,0x760ee));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x10412a(0xf3));exports['command']='start',exports['desc']=a18_0x10412a(0x105),exports[a18_0x10412a(0xfd)]=function(_0x526e12){const _0x559b7c=a18_0x10412a,_0x2cd698={};_0x2cd698['ZWQSf']=_0x559b7c(0x100),_0x2cd698['QdoAD']=_0x559b7c(0x104);const _0x105243=_0x2cd698;return _0x526e12['usage'](HELP_HEADER_MESSAGE[_0x559b7c(0xf6)])[_0x559b7c(0xfa)](HELP_FOOTER_MESSAGE)[_0x559b7c(0x107)](_0x105243[_0x559b7c(0xf9)])[_0x559b7c(0x103)]()[_0x559b7c(0x108)]()[_0x559b7c(0xf8)]()['help'](_0x105243[_0x559b7c(0xf2)]);},exports[a18_0x10412a(0x101)]=function(_0x246ce4){};
1
+ const a18_0x48caec=a18_0x1791;(function(_0x1d55cc,_0xa164fb){const _0xd59360=a18_0x1791,_0x2d3216=_0x1d55cc();while(!![]){try{const _0x389e77=parseInt(_0xd59360(0x11e))/0x1*(-parseInt(_0xd59360(0x12f))/0x2)+parseInt(_0xd59360(0x128))/0x3*(parseInt(_0xd59360(0x117))/0x4)+parseInt(_0xd59360(0x124))/0x5*(-parseInt(_0xd59360(0x125))/0x6)+parseInt(_0xd59360(0x11c))/0x7+parseInt(_0xd59360(0x12d))/0x8+-parseInt(_0xd59360(0x11f))/0x9+parseInt(_0xd59360(0x11d))/0xa;if(_0x389e77===_0xa164fb)break;else _0x2d3216['push'](_0x2d3216['shift']());}catch(_0x81b22a){_0x2d3216['push'](_0x2d3216['shift']());}}}(a18_0x40e7,0xb4097));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x48caec(0x120));function a18_0x1791(_0x5dcb9e,_0x30c969){const _0x40e7b0=a18_0x40e7();return a18_0x1791=function(_0x1791bb,_0x32a32c){_0x1791bb=_0x1791bb-0x116;let _0x38c6bb=_0x40e7b0[_0x1791bb];return _0x38c6bb;},a18_0x1791(_0x5dcb9e,_0x30c969);}exports[a18_0x48caec(0x12a)]=a18_0x48caec(0x12b),exports[a18_0x48caec(0x12c)]=a18_0x48caec(0x121),exports[a18_0x48caec(0x116)]=function(_0x36fe04){const _0x2cc87b=a18_0x48caec,_0x3e8e75={};_0x3e8e75[_0x2cc87b(0x119)]=_0x2cc87b(0x12e),_0x3e8e75['SFCWP']=_0x2cc87b(0x130);const _0x59c094=_0x3e8e75;return _0x36fe04[_0x2cc87b(0x127)](HELP_HEADER_MESSAGE['start'])[_0x2cc87b(0x123)](HELP_FOOTER_MESSAGE)[_0x2cc87b(0x129)](_0x59c094['uuaRo'])[_0x2cc87b(0x11a)]()[_0x2cc87b(0x122)]()[_0x2cc87b(0x118)]()['help'](_0x59c094[_0x2cc87b(0x11b)]);},exports[a18_0x48caec(0x126)]=function(_0x27d527){};function a18_0x40e7(){const _0x2e5749=['recommendCommands','epilogue','600100lMvqkD','12xlwmwU','handler','usage','2727qOUryo','commandDir','command','start','desc','8021000einzFr','start_commands','1206jRpyeX','help','builder','12TiTXgy','strict','uuaRo','demandCommand','SFCWP','2400930WKArtw','11802610FvdtMh','1266tQfCGd','7089606TsYCIL','../config/constants','Start\x20an\x20existing\x20Automation\x20grid.'];a18_0x40e7=function(){return _0x2e5749;};return a18_0x40e7();}
@@ -1 +1 @@
1
- const a19_0x51f12a=a19_0x2bda;(function(_0x82c4ab,_0x6fe244){const _0x2f0f3d=a19_0x2bda,_0x15db94=_0x82c4ab();while(!![]){try{const _0x323332=-parseInt(_0x2f0f3d(0x1e8))/0x1*(parseInt(_0x2f0f3d(0x1df))/0x2)+parseInt(_0x2f0f3d(0x1c7))/0x3+parseInt(_0x2f0f3d(0x1d9))/0x4*(parseInt(_0x2f0f3d(0x1f9))/0x5)+-parseInt(_0x2f0f3d(0x1cd))/0x6*(parseInt(_0x2f0f3d(0x1f4))/0x7)+-parseInt(_0x2f0f3d(0x20d))/0x8*(parseInt(_0x2f0f3d(0x1e2))/0x9)+parseInt(_0x2f0f3d(0x200))/0xa*(-parseInt(_0x2f0f3d(0x1d1))/0xb)+parseInt(_0x2f0f3d(0x1ca))/0xc*(parseInt(_0x2f0f3d(0x1da))/0xd);if(_0x323332===_0x6fe244)break;else _0x15db94['push'](_0x15db94['shift']());}catch(_0x1f394f){_0x15db94['push'](_0x15db94['shift']());}}}(a19_0x20fc,0x7f77d));function a19_0x2bda(_0x220654,_0x20bdf4){const _0x20fc44=a19_0x20fc();return a19_0x2bda=function(_0x2bda0c,_0x4df244){_0x2bda0c=_0x2bda0c-0x1bd;let _0x1015fc=_0x20fc44[_0x2bda0c];return _0x1015fc;},a19_0x2bda(_0x220654,_0x20bdf4);}function a19_0x20fc(){const _0x334ed2=['3652130bltToc','rQSoq','bstackUsername','cloudProvider','message','username','statusCode','IiKzU','invalid-grid-id','help','MbQgm','default','error','479296zNKZOp','info','../../utils/utilityMethods','readFileSync','type','wNzRi','parse','sEyPy','Skip\x20insecure\x20cert\x20verification.','fgQNz','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','INFO','Starting\x20grid\x20','VCZsC','unauthorised','xElmP','clusterName','2078823PQFwyt','replace','grid-id','180GxQRNi','epilogue','user','42bXiMYT','ZNlaC','clusterRegion','argv','11XVuJly','connectionTimeout','addListeners','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','handler','Adding\x20Websocket\x20listeners','nHnfj','3653416wLPdXq','515047ZBPJVp','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','start','iZZfc','string','16dnKYUz','WebSocket','FUecj','54mUAFwq','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skip-tls-cert-verify','region','<PasswordPlaceholder>','name','6588bFcNhw','usage','../../utils/gridComponents','<UsernamePlaceholder>','Browserstack','boolean','cXWJx','ERROR','desc','gridId','WKmDx','GIJCZ','901082NcnGUV','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackAccesskey','Qhhuc','5pHDpEX','builder','password','exit','debug','body','YmciY'];a19_0x20fc=function(){return _0x334ed2;};return a19_0x20fc();}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(a19_0x51f12a(0x20f)),{scaleUpHubDeployment}=require(a19_0x51f12a(0x1ea)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports[a19_0x51f12a(0x1f0)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x51f12a(0x1fa)]=function(_0xcb0796){const _0x531d09=a19_0x51f12a,_0x28f89e={};_0x28f89e[_0x531d09(0x20a)]=_0x531d09(0x1d5),_0x28f89e[_0x531d09(0x1bd)]=_0x531d09(0x1de),_0x28f89e[_0x531d09(0x1d8)]=_0x531d09(0x1be),_0x28f89e[_0x531d09(0x1ce)]=_0x531d09(0x1ed),_0x28f89e['FUecj']=_0x531d09(0x209);const _0x440197=_0x28f89e,_0x3d73b5={};_0x3d73b5['description']=_0x440197[_0x531d09(0x20a)],_0x3d73b5[_0x531d09(0x211)]=_0x440197[_0x531d09(0x1bd)];const _0x2bf9a9={};_0x2bf9a9['description']=_0x440197[_0x531d09(0x1d8)],_0x2bf9a9[_0x531d09(0x211)]=_0x440197[_0x531d09(0x1ce)],_0x2bf9a9[_0x531d09(0x20b)]=![];const _0x2e0eb3={};return _0x2e0eb3[_0x531d09(0x1c9)]=_0x3d73b5,_0x2e0eb3[_0x531d09(0x1e4)]=_0x2bf9a9,_0xcb0796[_0x531d09(0x1e9)](HELP_HEADER_MESSAGE[_0x531d09(0x1dc)])[_0x531d09(0x1cb)](HELP_FOOTER_MESSAGE)['options'](_0x2e0eb3)[_0x531d09(0x209)](_0x440197[_0x531d09(0x1e1)])[_0x531d09(0x1d0)];},exports[a19_0x51f12a(0x1d6)]=async function(_0x4a9320){const _0x3715ea=a19_0x51f12a,_0x2d5376={'ggVjt':_0x3715ea(0x1db),'WKmDx':function(_0x20df90){return _0x20df90();},'dyHgJ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','iZZfc':function(_0x1c4e5c,_0x275b2b,_0xf1e4e0,_0xb293,_0x59776b,_0x421f36,_0x31fb79){return _0x1c4e5c(_0x275b2b,_0xf1e4e0,_0xb293,_0x59776b,_0x421f36,_0x31fb79);},'cXWJx':'start-grid-called','yCnyH':'init-not-called','PuATd':_0x3715ea(0x1eb),'dAsDX':_0x3715ea(0x1e6),'YmciY':_0x3715ea(0x1d7),'VCZsC':function(_0x4d285a,_0x2ddb0a,_0x1ddbf2,_0x1dc70a){return _0x4d285a(_0x2ddb0a,_0x1ddbf2,_0x1dc70a);},'GIJCZ':function(_0x4706b9,_0x12f05b,_0x293398){return _0x4706b9(_0x12f05b,_0x293398);},'Qhhuc':function(_0x12e273,_0x5e40d9,_0xa68647){return _0x12e273(_0x5e40d9,_0xa68647);},'wNzRi':'Grid\x20started','IiKzU':function(_0x15a24a,_0x254d87){return _0x15a24a===_0x254d87;},'rQSoq':_0x3715ea(0x1e3),'arVfd':function(_0x1a3661,_0x16b890,_0x107ede,_0x565d72,_0x2d1f17,_0x57361f,_0x27796f){return _0x1a3661(_0x16b890,_0x107ede,_0x565d72,_0x2d1f17,_0x57361f,_0x27796f);},'TEEVA':_0x3715ea(0x1c4),'Plqrc':function(_0x8f15d1,_0x231eaa,_0x39ccef,_0x3129c5,_0x41198a,_0x31f1d9,_0x2d616c){return _0x8f15d1(_0x231eaa,_0x39ccef,_0x3129c5,_0x41198a,_0x31f1d9,_0x2d616c);},'LMvFc':_0x3715ea(0x208),'xElmP':function(_0x2dd0dd,_0x3de05a,_0x2f33e2,_0x569bd8,_0x5be9aa,_0x506f8e,_0x43895f){return _0x2dd0dd(_0x3de05a,_0x2f33e2,_0x569bd8,_0x5be9aa,_0x506f8e,_0x43895f);},'fgQNz':'server-error'};let _0xef9668;try{!_0x4a9320[_0x3715ea(0x1f1)]&&(logger['error'](_0x2d5376['ggVjt']),process[_0x3715ea(0x1fc)](0x1));!fs['existsSync'](_0x2d5376[_0x3715ea(0x1f2)](getCredentialsPath))&&(logger[_0x3715ea(0x20c)](_0x2d5376['dyHgJ']),await _0x2d5376[_0x3715ea(0x1dd)](sendInstrumentationEvent,_0x4a9320,_0x2d5376[_0x3715ea(0x1ee)],messageTypes[_0x3715ea(0x1ef)],_0x2d5376['yCnyH'],null,_0x4a9320),process[_0x3715ea(0x1fc)](0x1));logger[_0x3715ea(0x20e)](_0x3715ea(0x1c2)+_0x4a9320[_0x3715ea(0x1f1)]),await _0x2d5376[_0x3715ea(0x1dd)](sendInstrumentationEvent,_0x4a9320,_0x2d5376[_0x3715ea(0x1ee)],messageTypes[_0x3715ea(0x1c1)],null,null,_0x4a9320);const _0x5d1f24=JSON[_0x3715ea(0x213)](fs[_0x3715ea(0x210)](_0x2d5376[_0x3715ea(0x1f2)](getCredentialsPath)));global_registry[_0x3715ea(0x202)]=_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x205)],global_registry[_0x3715ea(0x1f7)]=_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x1fb)];const _0x19be8d=WS_ENDPOINT[_0x3715ea(0x1c8)](_0x2d5376['PuATd'],_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x205)])[_0x3715ea(0x1c8)](_0x2d5376['dAsDX'],_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x1fb)]),_0x339d10={};_0x339d10[_0x3715ea(0x1e0)]=ws,_0x339d10[_0x3715ea(0x1d2)]=0x36ee80,_0xef9668=new ReconnectingWebSocket(_0x19be8d,[],_0x339d10),logger[_0x3715ea(0x1fd)](_0x2d5376[_0x3715ea(0x1ff)]),webSocketUtils[_0x3715ea(0x1d3)](_0xef9668,_0x4a9320[_0x3715ea(0x1cc)],_0x4a9320[_0x3715ea(0x1fb)]);const [_0x3cadab,_0x4f30bb]=await _0x2d5376[_0x3715ea(0x1c3)](getGridDetails,_0x5d1f24['Browserstack'][_0x3715ea(0x205)],_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x1fb)],_0x4a9320[_0x3715ea(0x1f1)]);if(_0x4f30bb){const _0x5025ea=_0x4f30bb[_0x3715ea(0x20e)];global_registry['cloudProvider']=_0x5025ea[_0x3715ea(0x203)],global_registry[_0x3715ea(0x1cf)]=_0x5025ea[_0x3715ea(0x1e5)],global_registry[_0x3715ea(0x1c6)]=_0x5025ea[_0x3715ea(0x1c6)];const _0x4fe101=await _0x2d5376[_0x3715ea(0x1dd)](getCloudProviderObject,_0x5025ea[_0x3715ea(0x203)],_0x5025ea[_0x3715ea(0x1c6)],_0x5025ea['name'],_0xef9668,webSocketUtils,_0x4a9320),[_0x7951b3,_0x48ed25,_0x7afe15,_0x595ee7,_0x443548,_0x5ca652]=await _0x2d5376[_0x3715ea(0x1f3)](createK8sClient,_0x4fe101,_0x4a9320[_0x3715ea(0x1d4)]);await _0x2d5376[_0x3715ea(0x1f8)](scaleUpHubDeployment,_0x48ed25,_0x5025ea[_0x3715ea(0x1e7)]),logger[_0x3715ea(0x20e)](_0x2d5376[_0x3715ea(0x212)]),process['exit'](0x0);}_0x2d5376[_0x3715ea(0x207)](_0x3cadab[_0x3715ea(0x206)],0x191)&&(logger[_0x3715ea(0x20c)](_0x2d5376[_0x3715ea(0x201)]),await _0x2d5376['arVfd'](sendInstrumentationEvent,_0x4a9320,_0x2d5376['cXWJx'],messageTypes['ERROR'],_0x2d5376['TEEVA'],null,_0x4a9320),process[_0x3715ea(0x1fc)](0x1)),_0x2d5376[_0x3715ea(0x207)](_0x3cadab[_0x3715ea(0x206)],0x190)&&(logger[_0x3715ea(0x20c)](JSON[_0x3715ea(0x213)](_0x3cadab[_0x3715ea(0x1fe)])[_0x3715ea(0x204)]),await _0x2d5376['Plqrc'](sendInstrumentationEvent,_0x4a9320,_0x2d5376['cXWJx'],messageTypes['ERROR'],_0x2d5376['LMvFc'],null,_0x4a9320),process[_0x3715ea(0x1fc)](0x1)),logger[_0x3715ea(0x20c)](_0x3715ea(0x1f6)+JSON['stringify'](_0x3cadab)),await _0x2d5376[_0x3715ea(0x1c5)](sendInstrumentationEvent,_0x4a9320,_0x2d5376[_0x3715ea(0x1ee)],messageTypes[_0x3715ea(0x1ef)],_0x2d5376[_0x3715ea(0x1bf)],_0x3cadab,_0x4a9320),process[_0x3715ea(0x1fc)](0x1);}catch(_0x58fe9b){const _0x2913e3=_0x3715ea(0x1c0)+_0x58fe9b+'\x20\x0a'+JSON[_0x3715ea(0x1f5)](_0x58fe9b['stack'])+'\x20';logger[_0x3715ea(0x20c)](_0x2913e3),process[_0x3715ea(0x1fc)](0x1);}};
1
+ function a19_0x2612(){const _0x116750=['help','body','bstackAccesskey','gridId','29473BTKkSs','600963UFPUCC','DSlLS','sZXAX','qcVYP','pDGPV','exit','<PasswordPlaceholder>','uLCOv','INFO','bstackUsername','name','2994168IkYeoI','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','uaIZY','statusCode','handler','Starting\x20grid\x20','type','../../cloudproviders/utils','../../utils/utilityMethods','54qygwcE','clusterName','username','epilogue','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skipTlsCertVerify','../../config/constants','746305XsLloL','../../utils/webSocketUtils','error','505650YDBVJe','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','cloudProvider','skip-tls-cert-verify','stack','Skip\x20insecure\x20cert\x20verification.','tqwCe','yxCEW','../../utils/instrumentationUtils','server-error','desc','kTlel','TtEzy','info','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','region','replace','Adding\x20Websocket\x20listeners','command','existsSync','stringify','KafSk','start','ZudCa','debug','../../utils/createk8sClient','Grid\x20started','Start\x20an\x20existing\x20Automation\x20grid.','UURrn','<UsernamePlaceholder>','Browserstack','init-not-called','BMjSo','password','duEyB','user','PRpdd','readFileSync','description','1767600BnXpXg','addListeners','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','invalid-grid-id','connectionTimeout','uLySm','2242580sPQbtI','DQPmF','PLCKI','fXjcJ','btMCj','../../utils/gridComponents','wCyCx'];a19_0x2612=function(){return _0x116750;};return a19_0x2612();}const a19_0x4df816=a19_0x49c6;(function(_0x498087,_0x5172c4){const _0x34e4cc=a19_0x49c6,_0x2046bc=_0x498087();while(!![]){try{const _0x4410a8=parseInt(_0x34e4cc(0xe7))/0x1*(-parseInt(_0x34e4cc(0xa4))/0x2)+-parseInt(_0x34e4cc(0xe8))/0x3+parseInt(_0x34e4cc(0x9a))/0x4+parseInt(_0x34e4cc(0xdc))/0x5+parseInt(_0x34e4cc(0xae))/0x6+-parseInt(_0x34e4cc(0xab))/0x7+parseInt(_0x34e4cc(0xd5))/0x8;if(_0x4410a8===_0x5172c4)break;else _0x2046bc['push'](_0x2046bc['shift']());}catch(_0x5cd301){_0x2046bc['push'](_0x2046bc['shift']());}}}(a19_0x2612,0x618d8));function a19_0x49c6(_0xa9402e,_0x290a2c){const _0x26121=a19_0x2612();return a19_0x49c6=function(_0x49c649,_0x5de8db){_0x49c649=_0x49c649-0x90;let _0x358bb9=_0x26121[_0x49c649];return _0x358bb9;},a19_0x49c6(_0xa9402e,_0x290a2c);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x4df816(0xaa)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x4df816(0xa3)),{scaleUpHubDeployment}=require(a19_0x4df816(0xe1)),{sendInstrumentationEvent}=require(a19_0x4df816(0xb6)),webSocketUtils=require(a19_0x4df816(0xac)),{createK8sClient}=require(a19_0x4df816(0xc7)),{getCloudProviderObject}=require(a19_0x4df816(0xa2));exports[a19_0x4df816(0xc0)]='grid',exports[a19_0x4df816(0xb8)]=a19_0x4df816(0xc9),exports['builder']=function(_0x57cc6a){const _0x36fa19=a19_0x4df816,_0x5875ad={};_0x5875ad['umosY']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x5875ad[_0x36fa19(0xde)]='string',_0x5875ad[_0x36fa19(0xca)]=_0x36fa19(0xb3),_0x5875ad[_0x36fa19(0xb9)]='boolean',_0x5875ad['reTtv']=_0x36fa19(0xe3);const _0x1c24a5=_0x5875ad,_0x46c233={};_0x46c233[_0x36fa19(0xd4)]=_0x1c24a5['umosY'],_0x46c233[_0x36fa19(0xa1)]=_0x1c24a5[_0x36fa19(0xde)];const _0x51f683={};_0x51f683[_0x36fa19(0xd4)]=_0x1c24a5[_0x36fa19(0xca)],_0x51f683[_0x36fa19(0xa1)]=_0x1c24a5['kTlel'],_0x51f683['default']=![];const _0x522843={};return _0x522843['grid-id']=_0x46c233,_0x522843[_0x36fa19(0xb1)]=_0x51f683,_0x57cc6a['usage'](HELP_HEADER_MESSAGE[_0x36fa19(0xc4)])[_0x36fa19(0xa7)](HELP_FOOTER_MESSAGE)['options'](_0x522843)['help'](_0x1c24a5['reTtv'])[_0x36fa19(0x9b)];},exports[a19_0x4df816(0x9f)]=async function(_0x3c59db){const _0x385163=a19_0x4df816,_0x17824a={'qcVYP':_0x385163(0xbc),'btMCj':function(_0xd8751a){return _0xd8751a();},'PRpdd':_0x385163(0xd7),'exXHo':function(_0x438af4,_0x45ee8e,_0x30516b,_0xb470ae,_0x92bb1,_0x544b57,_0x122ca3){return _0x438af4(_0x45ee8e,_0x30516b,_0xb470ae,_0x92bb1,_0x544b57,_0x122ca3);},'ZudCa':'start-grid-called','pDGPV':_0x385163(0xcd),'uaIZY':_0x385163(0xcb),'duEyB':_0x385163(0x95),'IvBxD':_0x385163(0xbf),'tqwCe':function(_0x21ca7c,_0x246bdb,_0x676a05,_0x259363){return _0x21ca7c(_0x246bdb,_0x676a05,_0x259363);},'TtEzy':function(_0x4c593d,_0xfdb027,_0x3dfe15,_0x40175d,_0x3b6841,_0x5b7dc3,_0x5cc8de){return _0x4c593d(_0xfdb027,_0x3dfe15,_0x40175d,_0x3b6841,_0x5b7dc3,_0x5cc8de);},'yxCEW':function(_0x3781a0,_0x487668,_0x14f0b8){return _0x3781a0(_0x487668,_0x14f0b8);},'uLCOv':_0x385163(0xc8),'BMjSo':function(_0x20468d,_0x7eccd9){return _0x20468d===_0x7eccd9;},'KafSk':_0x385163(0xa8),'DSlLS':function(_0x3001d2,_0x2d9bd4,_0x1bce0e,_0x56d629,_0x1ac9a0,_0x462ae3,_0x36dd3b){return _0x3001d2(_0x2d9bd4,_0x1bce0e,_0x56d629,_0x1ac9a0,_0x462ae3,_0x36dd3b);},'uLySm':'unauthorised','sZXAX':function(_0x5a214c,_0x38b156,_0x2f03b5,_0x2437a8,_0x106ba4,_0x15d371,_0x4e6197){return _0x5a214c(_0x38b156,_0x2f03b5,_0x2437a8,_0x106ba4,_0x15d371,_0x4e6197);},'DQPmF':_0x385163(0xd9),'fXjcJ':function(_0xfa7c43,_0xc274bd,_0x44e791,_0xfa34f4,_0x1b341e,_0x35a514,_0xae06ec){return _0xfa7c43(_0xc274bd,_0x44e791,_0xfa34f4,_0x1b341e,_0x35a514,_0xae06ec);},'wCyCx':_0x385163(0xb7)};let _0xc91cd;try{!_0x3c59db['gridId']&&(logger['error'](_0x17824a[_0x385163(0x92)]),process[_0x385163(0x94)](0x1));!fs[_0x385163(0xc1)](_0x17824a['btMCj'](getCredentialsPath))&&(logger[_0x385163(0xad)](_0x17824a[_0x385163(0xd2)]),await _0x17824a['exXHo'](sendInstrumentationEvent,_0x3c59db,_0x17824a[_0x385163(0xc5)],messageTypes['ERROR'],_0x17824a[_0x385163(0x93)],null,_0x3c59db),process['exit'](0x1));logger['info'](_0x385163(0xa0)+_0x3c59db[_0x385163(0xe6)]),await _0x17824a['exXHo'](sendInstrumentationEvent,_0x3c59db,_0x17824a['ZudCa'],messageTypes[_0x385163(0x97)],null,null,_0x3c59db);const _0x591696=JSON['parse'](fs[_0x385163(0xd3)](_0x17824a[_0x385163(0xe0)](getCredentialsPath)));global_registry[_0x385163(0x98)]=_0x591696['Browserstack'][_0x385163(0xa6)],global_registry[_0x385163(0xe5)]=_0x591696[_0x385163(0xcc)][_0x385163(0xcf)];const _0x40961c=WS_ENDPOINT[_0x385163(0xbe)](_0x17824a[_0x385163(0x9d)],_0x591696[_0x385163(0xcc)]['username'])['replace'](_0x17824a[_0x385163(0xd0)],_0x591696[_0x385163(0xcc)][_0x385163(0xcf)]),_0x2cc946={};_0x2cc946['WebSocket']=ws,_0x2cc946[_0x385163(0xda)]=0x36ee80,_0xc91cd=new ReconnectingWebSocket(_0x40961c,[],_0x2cc946),logger[_0x385163(0xc6)](_0x17824a['IvBxD']),webSocketUtils[_0x385163(0xd6)](_0xc91cd,_0x3c59db[_0x385163(0xd1)],_0x3c59db[_0x385163(0xcf)]);const [_0x4db611,_0x54aa0e]=await _0x17824a[_0x385163(0xb4)](getGridDetails,_0x591696[_0x385163(0xcc)][_0x385163(0xa6)],_0x591696['Browserstack'][_0x385163(0xcf)],_0x3c59db['gridId']);if(_0x54aa0e){const _0x48e559=_0x54aa0e[_0x385163(0xbb)];global_registry[_0x385163(0xb0)]=_0x48e559['cloudProvider'],global_registry['clusterRegion']=_0x48e559[_0x385163(0xbd)],global_registry['clusterName']=_0x48e559[_0x385163(0xa5)];const _0x48697c=await _0x17824a[_0x385163(0xba)](getCloudProviderObject,_0x48e559['cloudProvider'],_0x48e559[_0x385163(0xa5)],_0x48e559[_0x385163(0x99)],_0xc91cd,webSocketUtils,_0x3c59db),[_0x149e46,_0x15099c,_0x560acb,_0x1f8b77,_0x38afd1,_0x4de422]=await _0x17824a[_0x385163(0xb5)](createK8sClient,_0x48697c,_0x3c59db[_0x385163(0xa9)]);await _0x17824a[_0x385163(0xb5)](scaleUpHubDeployment,_0x15099c,_0x48e559[_0x385163(0x99)]),logger[_0x385163(0xbb)](_0x17824a[_0x385163(0x96)]),process[_0x385163(0x94)](0x0);}_0x17824a[_0x385163(0xce)](_0x4db611['statusCode'],0x191)&&(logger[_0x385163(0xad)](_0x17824a[_0x385163(0xc3)]),await _0x17824a[_0x385163(0x90)](sendInstrumentationEvent,_0x3c59db,_0x17824a['ZudCa'],messageTypes[_0x385163(0xd8)],_0x17824a[_0x385163(0xdb)],null,_0x3c59db),process[_0x385163(0x94)](0x1)),_0x17824a[_0x385163(0xce)](_0x4db611[_0x385163(0x9e)],0x190)&&(logger[_0x385163(0xad)](JSON['parse'](_0x4db611[_0x385163(0xe4)])['message']),await _0x17824a[_0x385163(0x91)](sendInstrumentationEvent,_0x3c59db,_0x17824a[_0x385163(0xc5)],messageTypes[_0x385163(0xd8)],_0x17824a[_0x385163(0xdd)],null,_0x3c59db),process['exit'](0x1)),logger[_0x385163(0xad)](_0x385163(0x9c)+JSON[_0x385163(0xc2)](_0x4db611)),await _0x17824a[_0x385163(0xdf)](sendInstrumentationEvent,_0x3c59db,_0x17824a['ZudCa'],messageTypes[_0x385163(0xd8)],_0x17824a[_0x385163(0xe2)],_0x4db611,_0x3c59db),process['exit'](0x1);}catch(_0x44ea8d){const _0x1d2370=_0x385163(0xaf)+_0x44ea8d+'\x20\x0a'+JSON[_0x385163(0xc2)](_0x44ea8d[_0x385163(0xb2)])+'\x20';logger[_0x385163(0xad)](_0x1d2370),process[_0x385163(0x94)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x5032f0=a20_0x25f3;function a20_0x25f3(_0x40021b,_0x5cbb32){const _0xfa940=a20_0xfa94();return a20_0x25f3=function(_0x25f341,_0x191ed9){_0x25f341=_0x25f341-0x1cb;let _0x1e2a70=_0xfa940[_0x25f341];return _0x1e2a70;},a20_0x25f3(_0x40021b,_0x5cbb32);}(function(_0x5ab377,_0x53ac66){const _0x68f073=a20_0x25f3,_0x3433bf=_0x5ab377();while(!![]){try{const _0x12c608=parseInt(_0x68f073(0x1d1))/0x1+parseInt(_0x68f073(0x1e2))/0x2+parseInt(_0x68f073(0x1ce))/0x3*(parseInt(_0x68f073(0x1d6))/0x4)+parseInt(_0x68f073(0x1dc))/0x5*(parseInt(_0x68f073(0x1d7))/0x6)+parseInt(_0x68f073(0x1cb))/0x7*(parseInt(_0x68f073(0x1dd))/0x8)+parseInt(_0x68f073(0x1e3))/0x9*(parseInt(_0x68f073(0x1da))/0xa)+-parseInt(_0x68f073(0x1d2))/0xb;if(_0x12c608===_0x53ac66)break;else _0x3433bf['push'](_0x3433bf['shift']());}catch(_0xb7656e){_0x3433bf['push'](_0x3433bf['shift']());}}}(a20_0xfa94,0xca17d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5032f0(0x1d9));exports[a20_0x5032f0(0x1e0)]=a20_0x5032f0(0x1d8),exports[a20_0x5032f0(0x1d4)]=a20_0x5032f0(0x1cd),exports[a20_0x5032f0(0x1e1)]=function(_0x27ffc5){const _0x878b76=a20_0x5032f0,_0x445fac={};_0x445fac[_0x878b76(0x1db)]=_0x878b76(0x1df),_0x445fac[_0x878b76(0x1d5)]='help';const _0x5bdf85=_0x445fac;return _0x27ffc5['usage'](HELP_HEADER_MESSAGE['stop'])[_0x878b76(0x1d0)](HELP_FOOTER_MESSAGE)[_0x878b76(0x1cf)](_0x5bdf85[_0x878b76(0x1db)])[_0x878b76(0x1d3)]()[_0x878b76(0x1de)]()['strict']()['help'](_0x5bdf85['WSdFv']);},exports[a20_0x5032f0(0x1cc)]=function(_0x4a0ffd){};function a20_0xfa94(){const _0x4036c8=['stop_commands','command','builder','2457410HSaJTL','9pRsrvC','1612716CDjlLg','handler','Stop\x20a\x20running\x20Automation\x20grid.','87TVWLKR','commandDir','epilogue','1105042WjZXzI','51422558ucyWRC','demandCommand','desc','WSdFv','115684xJeyzg','2386764aYzmXz','stop','../config/constants','8433430yNzPUe','kMXzd','10rSfixM','24QYXJnt','recommendCommands'];a20_0xfa94=function(){return _0x4036c8;};return a20_0xfa94();}
1
+ const a20_0x16ce63=a20_0x234f;(function(_0x3b1ced,_0x183f6a){const _0x97aded=a20_0x234f,_0xdc3b72=_0x3b1ced();while(!![]){try{const _0x572e58=-parseInt(_0x97aded(0x1d6))/0x1+parseInt(_0x97aded(0x1df))/0x2+-parseInt(_0x97aded(0x1d0))/0x3+-parseInt(_0x97aded(0x1e1))/0x4+parseInt(_0x97aded(0x1e6))/0x5*(-parseInt(_0x97aded(0x1e2))/0x6)+-parseInt(_0x97aded(0x1e4))/0x7+parseInt(_0x97aded(0x1dd))/0x8*(parseInt(_0x97aded(0x1de))/0x9);if(_0x572e58===_0x183f6a)break;else _0xdc3b72['push'](_0xdc3b72['shift']());}catch(_0x1ea924){_0xdc3b72['push'](_0xdc3b72['shift']());}}}(a20_0x610d,0x49b2e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x16ce63(0x1d4));function a20_0x610d(){const _0x2eea9c=['command','89465NdgtbC','recommendCommands','1472415CPUsSG','stop','epilogue','desc','../config/constants','LlrjE','88417OdmOFs','usage','help','Stop\x20a\x20running\x20Automation\x20grid.','commandDir','strict','wWyBv','8uoDNeB','13385205arSDff','508932DHuGor','stop_commands','1765952ZLSJmB','48yFinoH','handler','1931909dZBJjQ'];a20_0x610d=function(){return _0x2eea9c;};return a20_0x610d();}function a20_0x234f(_0x10613b,_0x2e7981){const _0x610d1=a20_0x610d();return a20_0x234f=function(_0x234ff5,_0x25451e){_0x234ff5=_0x234ff5-0x1d0;let _0x3e4f7a=_0x610d1[_0x234ff5];return _0x3e4f7a;},a20_0x234f(_0x10613b,_0x2e7981);}exports[a20_0x16ce63(0x1e5)]='stop',exports[a20_0x16ce63(0x1d3)]=a20_0x16ce63(0x1d9),exports['builder']=function(_0x8b608b){const _0x1297a8=a20_0x16ce63,_0x2aa11e={};_0x2aa11e[_0x1297a8(0x1d5)]=_0x1297a8(0x1e0),_0x2aa11e['wWyBv']=_0x1297a8(0x1d8);const _0x401271=_0x2aa11e;return _0x8b608b[_0x1297a8(0x1d7)](HELP_HEADER_MESSAGE[_0x1297a8(0x1d1)])[_0x1297a8(0x1d2)](HELP_FOOTER_MESSAGE)[_0x1297a8(0x1da)](_0x401271[_0x1297a8(0x1d5)])['demandCommand']()[_0x1297a8(0x1e7)]()[_0x1297a8(0x1db)]()[_0x1297a8(0x1d8)](_0x401271[_0x1297a8(0x1dc)]);},exports[a20_0x16ce63(0x1e3)]=function(_0x1fc147){};
@@ -1 +1 @@
1
- function a21_0x3a17(_0x4edd63,_0x58bfb1){const _0x5a4e81=a21_0x5a4e();return a21_0x3a17=function(_0x3a1733,_0x4900c9){_0x3a1733=_0x3a1733-0x16e;let _0x5a8d2b=_0x5a4e81[_0x3a1733];return _0x5a8d2b;},a21_0x3a17(_0x4edd63,_0x58bfb1);}const a21_0x1a5a06=a21_0x3a17;function a21_0x5a4e(){const _0x58eddb=['handler','exit','cloudProvider','boolean','49xAlpca','statusCode','JnOZl','bstackAccesskey','skipTlsCertVerify','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../cloudproviders/utils','PUCPr','parse','djwgc','Kokgn','1991403AKoNBW','stop','unauthorised','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','rwalK','desc','eAVVw','type','ERROR','HXKlj','twTxk','ZmsOf','server-error','skip-tls-cert-verify','bvXPQ','clusterRegion','../../utils/gridComponents','PjYml','2189qxsVEs','456hUsnBK','922452gTNJEv','../../config/constants','clusterName','name','readFileSync','AsaIK','addListeners','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','debug','command','Stopping\x20grid\x20','2798rwBQjh','stop-grid-called','JWeYE','32510IxoOSc','VjmdT','<PasswordPlaceholder>','replace','mbknY','init-not-called','user','../../utils/instrumentationUtils','error','../../config/logger','bstackUsername','message','14967qvaPrf','Adding\x20Websocket\x20listeners','pOXtc','default','4oiJclv','invalid-grid-id','126042NqODMc','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','username','string','Stop\x20a\x20running\x20Automation\x20grid.','gridId','721985yVlGnT','description','Browserstack','existsSync','INFO','WebSocket','../../utils/utilityMethods','usage','Grid\x20stoppped.','password','<UsernamePlaceholder>','argv','3296joOQHw','156XShFcm','../../utils/createk8sClient','info','region','stack','../../utils/webSocketUtils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','qddRk','pKeJX','qUZDB','YWzqP','kZBha','help'];a21_0x5a4e=function(){return _0x58eddb;};return a21_0x5a4e();}(function(_0x361ef7,_0x2b15d4){const _0x2f84e7=a21_0x3a17,_0x3efc56=_0x361ef7();while(!![]){try{const _0x2516ef=parseInt(_0x2f84e7(0x1b2))/0x1*(-parseInt(_0x2f84e7(0x1be))/0x2)+parseInt(_0x2f84e7(0x19e))/0x3+-parseInt(_0x2f84e7(0x1d1))/0x4*(parseInt(_0x2f84e7(0x174))/0x5)+parseInt(_0x2f84e7(0x16e))/0x6*(parseInt(_0x2f84e7(0x193))/0x7)+-parseInt(_0x2f84e7(0x180))/0x8*(-parseInt(_0x2f84e7(0x1cd))/0x9)+-parseInt(_0x2f84e7(0x1c1))/0xa*(-parseInt(_0x2f84e7(0x1b1))/0xb)+-parseInt(_0x2f84e7(0x1b3))/0xc*(parseInt(_0x2f84e7(0x181))/0xd);if(_0x2516ef===_0x2b15d4)break;else _0x3efc56['push'](_0x3efc56['shift']());}catch(_0x37c395){_0x3efc56['push'](_0x3efc56['shift']());}}}(a21_0x5a4e,0x6af92));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1a5a06(0x1b4)),{logger}=require(a21_0x1a5a06(0x1ca)),{getCredentialsPath,getGridDetails}=require(a21_0x1a5a06(0x17a)),{scaleDownHubDeployment}=require(a21_0x1a5a06(0x1af)),{sendInstrumentationEvent}=require(a21_0x1a5a06(0x1c8)),webSocketUtils=require(a21_0x1a5a06(0x186)),{createK8sClient}=require(a21_0x1a5a06(0x182)),{getCloudProviderObject}=require(a21_0x1a5a06(0x199));exports[a21_0x1a5a06(0x1bc)]='grid',exports[a21_0x1a5a06(0x1a4)]=a21_0x1a5a06(0x172),exports['builder']=function(_0x15b59e){const _0x1737d9=a21_0x1a5a06,_0x381964={};_0x381964['PjYml']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x381964[_0x1737d9(0x18d)]=_0x1737d9(0x171),_0x381964['Kokgn']='Skip\x20insecure\x20cert\x20verification.',_0x381964[_0x1737d9(0x19c)]=_0x1737d9(0x192),_0x381964[_0x1737d9(0x18a)]=_0x1737d9(0x18e);const _0x1546aa=_0x381964,_0x3fe75b={};_0x3fe75b[_0x1737d9(0x175)]=_0x1546aa[_0x1737d9(0x1b0)],_0x3fe75b[_0x1737d9(0x1a6)]=_0x1546aa[_0x1737d9(0x18d)];const _0x111786={};_0x111786['description']=_0x1546aa[_0x1737d9(0x19d)],_0x111786[_0x1737d9(0x1a6)]=_0x1546aa[_0x1737d9(0x19c)],_0x111786[_0x1737d9(0x1d0)]=![];const _0x4691be={};return _0x4691be['grid-id']=_0x3fe75b,_0x4691be[_0x1737d9(0x1ac)]=_0x111786,_0x15b59e[_0x1737d9(0x17b)](HELP_HEADER_MESSAGE[_0x1737d9(0x19f)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4691be)[_0x1737d9(0x18e)](_0x1546aa[_0x1737d9(0x18a)])[_0x1737d9(0x17f)];},exports[a21_0x1a5a06(0x18f)]=async function(_0x29ac6e){const _0x194d58=a21_0x1a5a06,_0x4464f4={'TRFam':_0x194d58(0x16f),'dftkg':function(_0x4e3dcf){return _0x4e3dcf();},'JWeYE':_0x194d58(0x187),'JnOZl':function(_0x2b9896,_0x41d4c5,_0x56dc60,_0x333f86,_0x5c8a83,_0x545a84,_0x2878c0){return _0x2b9896(_0x41d4c5,_0x56dc60,_0x333f86,_0x5c8a83,_0x545a84,_0x2878c0);},'ZmsOf':_0x194d58(0x1bf),'HXKlj':_0x194d58(0x1c6),'rwalK':function(_0x2deba6,_0x3a1d74,_0xf567e0,_0x51e22e,_0x4dd981,_0x44126f,_0x5ca1ae){return _0x2deba6(_0x3a1d74,_0xf567e0,_0x51e22e,_0x4dd981,_0x44126f,_0x5ca1ae);},'YWzqP':function(_0x3f62e8){return _0x3f62e8();},'eAVVw':_0x194d58(0x17e),'bvXPQ':_0x194d58(0x1c3),'PQZZu':_0x194d58(0x1ce),'qddRk':function(_0x424b82,_0x514197,_0x158997,_0x48bf75){return _0x424b82(_0x514197,_0x158997,_0x48bf75);},'liWUF':function(_0x28e165,_0x4362d0,_0x21afca){return _0x28e165(_0x4362d0,_0x21afca);},'VjmdT':function(_0x3fff48,_0x35f2d0,_0x23f0e1){return _0x3fff48(_0x35f2d0,_0x23f0e1);},'PUCPr':_0x194d58(0x17c),'twTxk':function(_0x1cd579,_0x395f8d){return _0x1cd579===_0x395f8d;},'AsaIK':_0x194d58(0x1ba),'qUZDB':_0x194d58(0x1a0),'mbknY':function(_0x39c7d8,_0x29122c){return _0x39c7d8===_0x29122c;},'pOXtc':function(_0x204b9b,_0x3af1a3,_0xdac4fb,_0x222004,_0x54b524,_0x4e9f04,_0x2b1c52){return _0x204b9b(_0x3af1a3,_0xdac4fb,_0x222004,_0x54b524,_0x4e9f04,_0x2b1c52);},'YkyDW':_0x194d58(0x1d2),'yrDFW':_0x194d58(0x1ab)};let _0x390273;try{!_0x29ac6e[_0x194d58(0x173)]&&(logger[_0x194d58(0x1c9)](_0x4464f4['TRFam']),process[_0x194d58(0x190)](0x1));!fs[_0x194d58(0x177)](_0x4464f4['dftkg'](getCredentialsPath))&&(logger[_0x194d58(0x1c9)](_0x4464f4[_0x194d58(0x1c0)]),await _0x4464f4[_0x194d58(0x195)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes[_0x194d58(0x1a7)],_0x4464f4[_0x194d58(0x1a8)],null,_0x29ac6e),process[_0x194d58(0x190)](0x1));logger['info'](_0x194d58(0x1bd)+_0x29ac6e[_0x194d58(0x173)]),await _0x4464f4[_0x194d58(0x1a3)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes[_0x194d58(0x178)],null,null,_0x29ac6e);const _0x44a96b=JSON[_0x194d58(0x19b)](fs[_0x194d58(0x1b7)](_0x4464f4[_0x194d58(0x18c)](getCredentialsPath)));global_registry[_0x194d58(0x1cb)]=_0x44a96b['Browserstack'][_0x194d58(0x170)],global_registry[_0x194d58(0x196)]=_0x44a96b[_0x194d58(0x176)]['password'];const _0x1f445c=WS_ENDPOINT[_0x194d58(0x1c4)](_0x4464f4[_0x194d58(0x1a5)],_0x44a96b['Browserstack'][_0x194d58(0x170)])[_0x194d58(0x1c4)](_0x4464f4[_0x194d58(0x1ad)],_0x44a96b[_0x194d58(0x176)][_0x194d58(0x17d)]),_0xab0419={};_0xab0419[_0x194d58(0x179)]=ws,_0xab0419['connectionTimeout']=0x36ee80,_0x390273=new ReconnectingWebSocket(_0x1f445c,[],_0xab0419),logger[_0x194d58(0x1bb)](_0x4464f4['PQZZu']),webSocketUtils[_0x194d58(0x1b9)](_0x390273,_0x29ac6e[_0x194d58(0x1c7)],_0x29ac6e[_0x194d58(0x17d)]);const [_0x373c93,_0x393180]=await _0x4464f4[_0x194d58(0x189)](getGridDetails,_0x44a96b[_0x194d58(0x176)][_0x194d58(0x170)],_0x44a96b[_0x194d58(0x176)]['password'],_0x29ac6e[_0x194d58(0x173)]);if(_0x393180){const _0x249377=_0x393180[_0x194d58(0x183)];global_registry[_0x194d58(0x191)]=_0x249377[_0x194d58(0x191)],global_registry[_0x194d58(0x1ae)]=_0x249377[_0x194d58(0x184)],global_registry['clusterName']=_0x249377[_0x194d58(0x1b5)];const _0x3e6b25=await _0x4464f4[_0x194d58(0x1a3)](getCloudProviderObject,_0x249377[_0x194d58(0x191)],_0x249377[_0x194d58(0x1b5)],_0x249377[_0x194d58(0x1b6)],_0x390273,webSocketUtils,_0x29ac6e),[_0x1bdef7,_0x582009,_0x406655,_0x13d4d1,_0x55aa65,_0x34d5b1]=await _0x4464f4['liWUF'](createK8sClient,_0x3e6b25,_0x29ac6e[_0x194d58(0x197)]);await _0x4464f4[_0x194d58(0x1c2)](scaleDownHubDeployment,_0x582009,_0x249377['name']),logger['info'](_0x4464f4[_0x194d58(0x19a)]),process[_0x194d58(0x190)](0x0);}_0x4464f4[_0x194d58(0x1a9)](_0x373c93[_0x194d58(0x194)],0x191)&&(logger['error'](_0x4464f4[_0x194d58(0x1b8)]),await _0x4464f4['rwalK'](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes['ERROR'],_0x4464f4[_0x194d58(0x18b)],null,_0x29ac6e),process[_0x194d58(0x190)](0x1)),_0x4464f4[_0x194d58(0x1c5)](_0x373c93['statusCode'],0x190)&&(logger[_0x194d58(0x1c9)](JSON[_0x194d58(0x19b)](_0x373c93[_0x194d58(0x188)])[_0x194d58(0x1cc)]),await _0x4464f4[_0x194d58(0x1cf)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes['ERROR'],_0x4464f4['YkyDW'],null,_0x29ac6e),process[_0x194d58(0x190)](0x1)),logger[_0x194d58(0x1c9)](_0x194d58(0x1a1)+JSON[_0x194d58(0x1a2)](_0x373c93)),await _0x4464f4[_0x194d58(0x1a3)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4['ZmsOf'],messageTypes['ERROR'],_0x4464f4['yrDFW'],_0x373c93,_0x29ac6e),process['exit'](0x1);}catch(_0x1c45b1){const _0x4102a5=_0x194d58(0x198)+_0x1c45b1+'\x20\x0a'+JSON[_0x194d58(0x1a2)](_0x1c45b1[_0x194d58(0x185)])+'\x20';logger['error'](_0x4102a5),process['exit'](0x1);}};
1
+ function a21_0x525b(_0xa40b8e,_0x40900b){const _0x4985b0=a21_0x4985();return a21_0x525b=function(_0x525b5d,_0x2ec4ec){_0x525b5d=_0x525b5d-0x199;let _0xb24e04=_0x4985b0[_0x525b5d];return _0xb24e04;},a21_0x525b(_0xa40b8e,_0x40900b);}function a21_0x4985(){const _0x34ef5a=['stop-grid-called','gridId','invalid-grid-id','VpVaf','../../cloudproviders/utils','cloudProvider','clusterName','CiTjT','QHIEG','name','replace','handler','builder','grid','stack','VKVhr','../../config/logger','Stop\x20a\x20running\x20Automation\x20grid.','euZjQ','info','zzecj','boolean','grid-id','unauthorised','29587mxSdqx','message','WebSocket','Stopping\x20grid\x20','FXssU','../../config/constants','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Grid\x20stoppped.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','6BOAVJG','stringify','VMVeh','../../utils/webSocketUtils','options','bstackUsername','cwPKF','command','MNjxw','40718gRTzSs','jvgeR','existsSync','epilogue','description','JfmNC','stop','../../utils/utilityMethods','<PasswordPlaceholder>','1310410EeujqK','debug','error','connectionTimeout','DzQWc','parse','../../utils/instrumentationUtils','dTWNo','FoEBv','init-not-called','ERROR','QdcVc','argv','clusterRegion','Skip\x20insecure\x20cert\x20verification.','statusCode','username','yJTNh','INFO','region','usage','body','6389595FBIxqO','default','XIKCZ','1915040bgdhfH','../../utils/gridComponents','../../utils/createk8sClient','server-error','type','Browserstack','tiAAT','ngKRk','JKydE','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','3YsZtAz','skipTlsCertVerify','EXVat','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','3484481mKOazK','exit','skip-tls-cert-verify','password','Adding\x20Websocket\x20listeners','286376eAkZhC','PztYr','desc','help'];a21_0x4985=function(){return _0x34ef5a;};return a21_0x4985();}const a21_0x575bb7=a21_0x525b;(function(_0xd23dd2,_0x36ea57){const _0xc85057=a21_0x525b,_0x4d3da4=_0xd23dd2();while(!![]){try{const _0xba5356=parseInt(_0xc85057(0x1eb))/0x1+-parseInt(_0xc85057(0x19a))/0x2*(parseInt(_0xc85057(0x1c6))/0x3)+parseInt(_0xc85057(0x1cf))/0x4+-parseInt(_0xc85057(0x1a3))/0x5*(parseInt(_0xc85057(0x1f4))/0x6)+-parseInt(_0xc85057(0x1ca))/0x7+parseInt(_0xc85057(0x1bc))/0x8+parseInt(_0xc85057(0x1b9))/0x9;if(_0xba5356===_0x36ea57)break;else _0x4d3da4['push'](_0x4d3da4['shift']());}catch(_0x567abc){_0x4d3da4['push'](_0x4d3da4['shift']());}}}(a21_0x4985,0x41fd4));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x575bb7(0x1f0)),{logger}=require(a21_0x575bb7(0x1e3)),{getCredentialsPath,getGridDetails}=require(a21_0x575bb7(0x1a1)),{scaleDownHubDeployment}=require(a21_0x575bb7(0x1bd)),{sendInstrumentationEvent}=require(a21_0x575bb7(0x1a9)),webSocketUtils=require(a21_0x575bb7(0x1f7)),{createK8sClient}=require(a21_0x575bb7(0x1be)),{getCloudProviderObject}=require(a21_0x575bb7(0x1d7));exports[a21_0x575bb7(0x1fb)]=a21_0x575bb7(0x1e0),exports[a21_0x575bb7(0x1d1)]=a21_0x575bb7(0x1e4),exports[a21_0x575bb7(0x1df)]=function(_0xb5c8cf){const _0x707ef6=a21_0x575bb7,_0x3ebc94={};_0x3ebc94[_0x707ef6(0x1ae)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x3ebc94[_0x707ef6(0x1da)]='string',_0x3ebc94[_0x707ef6(0x1b4)]=_0x707ef6(0x1b1),_0x3ebc94[_0x707ef6(0x1ef)]=_0x707ef6(0x1e8),_0x3ebc94['dTWNo']=_0x707ef6(0x1d2);const _0x2c4992=_0x3ebc94,_0x29bb8e={};_0x29bb8e[_0x707ef6(0x19e)]=_0x2c4992[_0x707ef6(0x1ae)],_0x29bb8e[_0x707ef6(0x1c0)]=_0x2c4992[_0x707ef6(0x1da)];const _0x166bec={};_0x166bec['description']=_0x2c4992[_0x707ef6(0x1b4)],_0x166bec[_0x707ef6(0x1c0)]=_0x2c4992['FXssU'],_0x166bec[_0x707ef6(0x1ba)]=![];const _0x121650={};return _0x121650[_0x707ef6(0x1e9)]=_0x29bb8e,_0x121650[_0x707ef6(0x1cc)]=_0x166bec,_0xb5c8cf[_0x707ef6(0x1b7)](HELP_HEADER_MESSAGE[_0x707ef6(0x1a0)])[_0x707ef6(0x19d)](HELP_FOOTER_MESSAGE)[_0x707ef6(0x1f8)](_0x121650)[_0x707ef6(0x1d2)](_0x2c4992[_0x707ef6(0x1aa)])[_0x707ef6(0x1af)];},exports[a21_0x575bb7(0x1de)]=async function(_0x44bc43){const _0xd3aae8=a21_0x575bb7,_0x5e0fdd={'zzecj':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','DzQWc':function(_0xf13d82){return _0xf13d82();},'VKVhr':_0xd3aae8(0x1f1),'euZjQ':function(_0x3584d6,_0x5a7ac7,_0xb1f4fb,_0x1918c0,_0x3dc60c,_0x4e8400,_0x32ba54){return _0x3584d6(_0x5a7ac7,_0xb1f4fb,_0x1918c0,_0x3dc60c,_0x4e8400,_0x32ba54);},'ngKRk':_0xd3aae8(0x1d3),'VMVeh':_0xd3aae8(0x1ac),'sCxwE':function(_0x508513,_0x57c288,_0x4f8719,_0x34e726,_0x3d831a,_0x1ecd23,_0x5673bf){return _0x508513(_0x57c288,_0x4f8719,_0x34e726,_0x3d831a,_0x1ecd23,_0x5673bf);},'bDoxL':'<UsernamePlaceholder>','jvgeR':_0xd3aae8(0x1a2),'PztYr':_0xd3aae8(0x1ce),'VpVaf':function(_0x5546ad,_0x309df4,_0x37c472,_0x3a2907){return _0x5546ad(_0x309df4,_0x37c472,_0x3a2907);},'GGtsO':function(_0x17781,_0x20dc65,_0x5f35e4,_0x428438,_0x24c3c1,_0x42735f,_0x76a25a){return _0x17781(_0x20dc65,_0x5f35e4,_0x428438,_0x24c3c1,_0x42735f,_0x76a25a);},'JfmNC':function(_0x198a5f,_0x419c18,_0x5731e1){return _0x198a5f(_0x419c18,_0x5731e1);},'FoEBv':function(_0x2cebea,_0x2d99f4,_0x36c979){return _0x2cebea(_0x2d99f4,_0x36c979);},'QHIEG':_0xd3aae8(0x1f2),'cwPKF':function(_0x368d76,_0x6d198e){return _0x368d76===_0x6d198e;},'JKydE':_0xd3aae8(0x1f3),'MACQT':_0xd3aae8(0x1ea),'EXVat':function(_0x522c67,_0xbb9a0f){return _0x522c67===_0xbb9a0f;},'tiAAT':function(_0x2affc8,_0x8d7436,_0x4edd66,_0x1e951a,_0xc65769,_0x521eb1,_0x501276){return _0x2affc8(_0x8d7436,_0x4edd66,_0x1e951a,_0xc65769,_0x521eb1,_0x501276);},'XIKCZ':_0xd3aae8(0x1d5),'MNjxw':_0xd3aae8(0x1bf)};let _0x315e02;try{!_0x44bc43[_0xd3aae8(0x1d4)]&&(logger[_0xd3aae8(0x1a5)](_0x5e0fdd[_0xd3aae8(0x1e7)]),process['exit'](0x1));!fs[_0xd3aae8(0x19c)](_0x5e0fdd[_0xd3aae8(0x1a7)](getCredentialsPath))&&(logger[_0xd3aae8(0x1a5)](_0x5e0fdd[_0xd3aae8(0x1e2)]),await _0x5e0fdd[_0xd3aae8(0x1e5)](sendInstrumentationEvent,_0x44bc43,_0x5e0fdd[_0xd3aae8(0x1c3)],messageTypes[_0xd3aae8(0x1ad)],_0x5e0fdd[_0xd3aae8(0x1f6)],null,_0x44bc43),process[_0xd3aae8(0x1cb)](0x1));logger[_0xd3aae8(0x1e6)](_0xd3aae8(0x1ee)+_0x44bc43[_0xd3aae8(0x1d4)]),await _0x5e0fdd['sCxwE'](sendInstrumentationEvent,_0x44bc43,_0x5e0fdd[_0xd3aae8(0x1c3)],messageTypes[_0xd3aae8(0x1b5)],null,null,_0x44bc43);const _0x6dac20=JSON[_0xd3aae8(0x1a8)](fs['readFileSync'](_0x5e0fdd['DzQWc'](getCredentialsPath)));global_registry[_0xd3aae8(0x1f9)]=_0x6dac20[_0xd3aae8(0x1c1)][_0xd3aae8(0x1b3)],global_registry['bstackAccesskey']=_0x6dac20[_0xd3aae8(0x1c1)][_0xd3aae8(0x1cd)];const _0x103ca6=WS_ENDPOINT[_0xd3aae8(0x1dd)](_0x5e0fdd['bDoxL'],_0x6dac20['Browserstack'][_0xd3aae8(0x1b3)])['replace'](_0x5e0fdd[_0xd3aae8(0x19b)],_0x6dac20['Browserstack']['password']),_0x55b053={};_0x55b053[_0xd3aae8(0x1ed)]=ws,_0x55b053[_0xd3aae8(0x1a6)]=0x36ee80,_0x315e02=new ReconnectingWebSocket(_0x103ca6,[],_0x55b053),logger[_0xd3aae8(0x1a4)](_0x5e0fdd[_0xd3aae8(0x1d0)]),webSocketUtils['addListeners'](_0x315e02,_0x44bc43['user'],_0x44bc43[_0xd3aae8(0x1cd)]);const [_0x4d98cc,_0x13988b]=await _0x5e0fdd[_0xd3aae8(0x1d6)](getGridDetails,_0x6dac20[_0xd3aae8(0x1c1)][_0xd3aae8(0x1b3)],_0x6dac20['Browserstack'][_0xd3aae8(0x1cd)],_0x44bc43[_0xd3aae8(0x1d4)]);if(_0x13988b){const _0x465086=_0x13988b[_0xd3aae8(0x1e6)];global_registry[_0xd3aae8(0x1d8)]=_0x465086[_0xd3aae8(0x1d8)],global_registry[_0xd3aae8(0x1b0)]=_0x465086[_0xd3aae8(0x1b6)],global_registry[_0xd3aae8(0x1d9)]=_0x465086['clusterName'];const _0x1b5d8d=await _0x5e0fdd['GGtsO'](getCloudProviderObject,_0x465086[_0xd3aae8(0x1d8)],_0x465086[_0xd3aae8(0x1d9)],_0x465086[_0xd3aae8(0x1dc)],_0x315e02,webSocketUtils,_0x44bc43),[_0x2a7099,_0x9bedd9,_0x491aae,_0x4b9cee,_0x13cd6e,_0x5b1b9a]=await _0x5e0fdd[_0xd3aae8(0x19f)](createK8sClient,_0x1b5d8d,_0x44bc43[_0xd3aae8(0x1c7)]);await _0x5e0fdd[_0xd3aae8(0x1ab)](scaleDownHubDeployment,_0x9bedd9,_0x465086['name']),logger[_0xd3aae8(0x1e6)](_0x5e0fdd[_0xd3aae8(0x1db)]),process[_0xd3aae8(0x1cb)](0x0);}_0x5e0fdd[_0xd3aae8(0x1fa)](_0x4d98cc[_0xd3aae8(0x1b2)],0x191)&&(logger[_0xd3aae8(0x1a5)](_0x5e0fdd[_0xd3aae8(0x1c4)]),await _0x5e0fdd['euZjQ'](sendInstrumentationEvent,_0x44bc43,_0x5e0fdd[_0xd3aae8(0x1c3)],messageTypes[_0xd3aae8(0x1ad)],_0x5e0fdd['MACQT'],null,_0x44bc43),process[_0xd3aae8(0x1cb)](0x1)),_0x5e0fdd[_0xd3aae8(0x1c8)](_0x4d98cc[_0xd3aae8(0x1b2)],0x190)&&(logger['error'](JSON[_0xd3aae8(0x1a8)](_0x4d98cc[_0xd3aae8(0x1b8)])[_0xd3aae8(0x1ec)]),await _0x5e0fdd[_0xd3aae8(0x1c2)](sendInstrumentationEvent,_0x44bc43,_0x5e0fdd[_0xd3aae8(0x1c3)],messageTypes[_0xd3aae8(0x1ad)],_0x5e0fdd[_0xd3aae8(0x1bb)],null,_0x44bc43),process[_0xd3aae8(0x1cb)](0x1)),logger[_0xd3aae8(0x1a5)](_0xd3aae8(0x1c9)+JSON[_0xd3aae8(0x1f5)](_0x4d98cc)),await _0x5e0fdd[_0xd3aae8(0x1e5)](sendInstrumentationEvent,_0x44bc43,_0x5e0fdd['ngKRk'],messageTypes['ERROR'],_0x5e0fdd[_0xd3aae8(0x199)],_0x4d98cc,_0x44bc43),process[_0xd3aae8(0x1cb)](0x1);}catch(_0x317812){const _0x326279=_0xd3aae8(0x1c5)+_0x317812+'\x20\x0a'+JSON['stringify'](_0x317812[_0xd3aae8(0x1e1)])+'\x20';logger[_0xd3aae8(0x1a5)](_0x326279),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x5b213e=a22_0x4f66;(function(_0x164ddf,_0x4bcdfd){const _0x210c4a=a22_0x4f66,_0x2ad177=_0x164ddf();while(!![]){try{const _0x33881a=parseInt(_0x210c4a(0x1ce))/0x1*(parseInt(_0x210c4a(0x1e3))/0x2)+-parseInt(_0x210c4a(0x1fb))/0x3*(-parseInt(_0x210c4a(0x1d5))/0x4)+-parseInt(_0x210c4a(0x1db))/0x5*(parseInt(_0x210c4a(0x1d6))/0x6)+parseInt(_0x210c4a(0x20d))/0x7*(parseInt(_0x210c4a(0x1e7))/0x8)+-parseInt(_0x210c4a(0x1dd))/0x9*(-parseInt(_0x210c4a(0x1f6))/0xa)+-parseInt(_0x210c4a(0x23b))/0xb*(-parseInt(_0x210c4a(0x1e4))/0xc)+-parseInt(_0x210c4a(0x1c7))/0xd*(parseInt(_0x210c4a(0x218))/0xe);if(_0x33881a===_0x4bcdfd)break;else _0x2ad177['push'](_0x2ad177['shift']());}catch(_0x2bc505){_0x2ad177['push'](_0x2ad177['shift']());}}}(a22_0x3430,0x87380),require(a22_0x5b213e(0x233))[a22_0x5b213e(0x226)]());let gridURL=a22_0x5b213e(0x1ef),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x5b213e(0x20f);const _env=(process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x1e9)]||a22_0x5b213e(0x220))['toLowerCase']();if(_env==='staging'||_env==='stag')gridURL=a22_0x5b213e(0x1f3),bsApiUrl=a22_0x5b213e(0x23a),agApiUrl=a22_0x5b213e(0x236);else(_env===a22_0x5b213e(0x237)||_env===a22_0x5b213e(0x1e8))&&(gridURL=a22_0x5b213e(0x214),bsApiUrl=a22_0x5b213e(0x1f8),agApiUrl=a22_0x5b213e(0x1ee));exports[a22_0x5b213e(0x1f1)]=process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x1f1)]||gridURL,exports['BS_API_URL']=process[a22_0x5b213e(0x1e6)]['BS_API_URL']||bsApiUrl,exports[a22_0x5b213e(0x1ed)]=process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x1ed)]||agApiUrl,exports[a22_0x5b213e(0x204)]='wss://'+this[a22_0x5b213e(0x1ed)]+a22_0x5b213e(0x1d8),exports[a22_0x5b213e(0x1d4)]=a22_0x5b213e(0x219),exports[a22_0x5b213e(0x1c9)]='BrowserStackIAMUser',exports[a22_0x5b213e(0x1ec)]=a22_0x5b213e(0x1f5),exports[a22_0x5b213e(0x210)]=a22_0x5b213e(0x1d2),exports[a22_0x5b213e(0x229)]=a22_0x5b213e(0x20a),exports[a22_0x5b213e(0x1cc)]=a22_0x5b213e(0x230),exports[a22_0x5b213e(0x1f4)]=a22_0x5b213e(0x1c8),exports[a22_0x5b213e(0x234)]=a22_0x5b213e(0x22d),exports[a22_0x5b213e(0x211)]='azure',exports['GCP']=a22_0x5b213e(0x231),exports[a22_0x5b213e(0x21c)]=[this[a22_0x5b213e(0x210)],this[a22_0x5b213e(0x211)],this[a22_0x5b213e(0x216)]];const a22_0x1a75cc={};a22_0x1a75cc[a22_0x5b213e(0x207)]=a22_0x5b213e(0x203),a22_0x1a75cc[a22_0x5b213e(0x20e)]=a22_0x5b213e(0x1e5);function a22_0x4f66(_0x2f9264,_0x34da4a){const _0x3430fd=a22_0x3430();return a22_0x4f66=function(_0x4f6698,_0x1d1ccf){_0x4f6698=_0x4f6698-0x1c7;let _0x5cd429=_0x3430fd[_0x4f6698];return _0x5cd429;},a22_0x4f66(_0x2f9264,_0x34da4a);}const a22_0x4ede32={};a22_0x4ede32['Key']=a22_0x5b213e(0x215),a22_0x4ede32[a22_0x5b213e(0x20e)]=a22_0x5b213e(0x208);const common_hst_tags_list=[a22_0x1a75cc,a22_0x4ede32];if(process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x200)]){const parsedTags=process[a22_0x5b213e(0x1e6)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x5b213e(0x228)](',');parsedTags['forEach'](_0x4104d5=>{const _0x4dc23b=a22_0x5b213e,_0x1c6d66=_0x4104d5['split'](':'),_0x1d5d4f={};_0x1d5d4f[_0x4dc23b(0x207)]=_0x1c6d66[0x0],_0x1d5d4f[_0x4dc23b(0x20e)]=_0x1c6d66[0x1],common_hst_tags_list['push'](_0x1d5d4f);});}exports[a22_0x5b213e(0x1f2)]=common_hst_tags_list;const a22_0x56cbe9={};a22_0x56cbe9[a22_0x5b213e(0x203)]=a22_0x5b213e(0x1e5),a22_0x56cbe9[a22_0x5b213e(0x215)]=a22_0x5b213e(0x208),exports['HST_CLUSTER_TAGS']=a22_0x56cbe9,exports[a22_0x5b213e(0x1f0)]=[this[a22_0x5b213e(0x210)]];const a22_0x406bab={};a22_0x406bab[a22_0x5b213e(0x1d7)]=a22_0x5b213e(0x20b),a22_0x406bab[a22_0x5b213e(0x20c)]=a22_0x5b213e(0x21a),a22_0x406bab[a22_0x5b213e(0x21b)]=a22_0x5b213e(0x1e2),a22_0x406bab[a22_0x5b213e(0x22a)]=a22_0x5b213e(0x1cd),a22_0x406bab[a22_0x5b213e(0x1de)]='cliRunFinished',exports[a22_0x5b213e(0x221)]=a22_0x406bab,exports[a22_0x5b213e(0x1da)]={},exports[a22_0x5b213e(0x1d9)]=a22_0x5b213e(0x21d);const a22_0x3372fd={};a22_0x3372fd[a22_0x5b213e(0x223)]=a22_0x5b213e(0x22e)+this['LINK_MESSAGE'],a22_0x3372fd['init']=a22_0x5b213e(0x201)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x1d0)]=a22_0x5b213e(0x1ff)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x1e1)]=a22_0x5b213e(0x1eb)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x209)]={},a22_0x3372fd[a22_0x5b213e(0x22f)]=a22_0x5b213e(0x1ca)+this['LINK_MESSAGE'],a22_0x3372fd[a22_0x5b213e(0x22c)]=a22_0x5b213e(0x217)+this['LINK_MESSAGE'],a22_0x3372fd[a22_0x5b213e(0x227)]=a22_0x5b213e(0x22b)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x1ea)]=a22_0x5b213e(0x1dc)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x224)]=a22_0x5b213e(0x222)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x209)][a22_0x5b213e(0x223)]=a22_0x5b213e(0x202)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x209)][a22_0x5b213e(0x21e)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x3372fd[a22_0x5b213e(0x209)][a22_0x5b213e(0x1cf)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x5b213e(0x1d9)],exports[a22_0x5b213e(0x213)]=a22_0x3372fd,exports[a22_0x5b213e(0x1cb)]=a22_0x5b213e(0x205);const a22_0x19ae43={};a22_0x19ae43['SUCCESS']=a22_0x5b213e(0x21f),a22_0x19ae43[a22_0x5b213e(0x238)]=a22_0x5b213e(0x1f7),a22_0x19ae43['INFO']='info',a22_0x19ae43[a22_0x5b213e(0x232)]='warning',a22_0x19ae43[a22_0x5b213e(0x1fe)]=a22_0x5b213e(0x1fc),a22_0x19ae43[a22_0x5b213e(0x235)]=null,exports['messageTypes']=a22_0x19ae43,exports[a22_0x5b213e(0x206)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5b213e(0x1fd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5b213e(0x239)]=a22_0x5b213e(0x1df);const a22_0x3d0eb5={};a22_0x3d0eb5[a22_0x5b213e(0x225)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x445973={};a22_0x445973[a22_0x5b213e(0x1d3)]=a22_0x3d0eb5,exports[a22_0x5b213e(0x1f9)]=a22_0x445973,exports['TRIAL_GRID_URL']=a22_0x5b213e(0x1e0);const a22_0x635cef={};function a22_0x3430(){const _0x125313=['connect','browserstack-turboscale-grid','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','delete','BSTACK-ATS-CLUSTER-AUTOSCALER','gcp','WARNING','dotenv','TURBOSCALE_DEPLOYMENT','NULL','grid-api-devhst.bsstag.com','preprod','ERROR','REDACTED','api-devhst.bsstag.com','176pkHxhP','1339468MqAkxu','BSTACK-ATS-CLUSTER-HUB-HA','IAM_USER_NAME','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','HELP_FOOTER_MESSAGE','CLUSTER_AUTOSCALER_STACK_NAME','cliRunStarted','172tzPxVc','gridProfile','configure','CLOUD_PROVIDER','aws','pre-check','CP_CONFIG_FILE','12umpMcr','6eOKKIP','LOG','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','LINK_MESSAGE','global_registry','5296265RGLIuv','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','279bNkUlt','CLI_RUN_FINISHED','[REDACTED]','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','create','gridUrl','6542xYhXSO','206988iqksWa','BrowserStack','env','8zPJtBs','pre-prod','BROWSERSTACK_ENV','stop','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','DEFAULT_GRID_NAME','AG_API_URL','grid-api-preprod.bsstag.com','grid.browserstack.com','SUPPORTED_CLOUD_PROVIDERS','DASHBOARD_ENDPOINT','COMMON_HST_TAGS','grid-devhst.bsstag.com','CLUSTER_HUB_HA_STACK_NAME','high-scale-grid','18950ucFilP','error','api-preprod.bsstag.com','MessageDescription','us-east-1','839559BXhveN','unknown','RAW_ARGS_REGEX','UNKNOWN','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','browserstack:managedBy','WS_ENDPOINT','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','CLI_ARGS_REGEX','Key','BrowserStack-Automate-TurboScale','list','BSTACK-ATS-CLUSTER','log','RESOURCES','4182227MvatzW','Value','grid-api.browserstack.com','AWS','AZURE','DEFAULT_CLUSTER_DETAILS','HELP_HEADER_MESSAGE','grid-preprod.bsstag.com','browserstack:service','GCP','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','98jiRgTI','credentials','resourceInfo','GRID_URL','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','grid','success','prod','WS_EVENTS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','root','pre_check','grid-profile','config','start','split','CLUSTER_DEP_STACK_NAME','CLI_RUN_STARTED','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'];a22_0x3430=function(){return _0x125313;};return a22_0x3430();}a22_0x635cef['CLUSTER']='high-scale-grid-cluster',a22_0x635cef[a22_0x5b213e(0x1d1)]=a22_0x5b213e(0x1d2),a22_0x635cef['REGION']=a22_0x5b213e(0x1fa),exports[a22_0x5b213e(0x212)]=a22_0x635cef;
1
+ const a22_0x23d8f0=a22_0x3ebd;(function(_0x2bdd96,_0x271494){const _0x3d704d=a22_0x3ebd,_0xdf64a9=_0x2bdd96();while(!![]){try{const _0x3ec08c=-parseInt(_0x3d704d(0xeb))/0x1+-parseInt(_0x3d704d(0xde))/0x2*(-parseInt(_0x3d704d(0xe9))/0x3)+parseInt(_0x3d704d(0xd8))/0x4*(parseInt(_0x3d704d(0x10b))/0x5)+parseInt(_0x3d704d(0xec))/0x6*(-parseInt(_0x3d704d(0xb4))/0x7)+parseInt(_0x3d704d(0xd5))/0x8*(-parseInt(_0x3d704d(0xf8))/0x9)+parseInt(_0x3d704d(0xcb))/0xa*(parseInt(_0x3d704d(0xb1))/0xb)+parseInt(_0x3d704d(0x111))/0xc*(-parseInt(_0x3d704d(0xa6))/0xd);if(_0x3ec08c===_0x271494)break;else _0xdf64a9['push'](_0xdf64a9['shift']());}catch(_0x3175c4){_0xdf64a9['push'](_0xdf64a9['shift']());}}}(a22_0x444e,0x92d05),require(a22_0x23d8f0(0xc4))[a22_0x23d8f0(0xdd)]());let gridURL=a22_0x23d8f0(0x106),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x23d8f0(0x105);const _env=(process[a22_0x23d8f0(0xb9)][a22_0x23d8f0(0xe6)]||'prod')['toLowerCase']();if(_env===a22_0x23d8f0(0xb7)||_env==='stag')gridURL=a22_0x23d8f0(0xd2),bsApiUrl=a22_0x23d8f0(0xdb),agApiUrl=a22_0x23d8f0(0x114);else(_env==='preprod'||_env===a22_0x23d8f0(0x10c))&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x23d8f0(0xdc),agApiUrl=a22_0x23d8f0(0xea));exports['DASHBOARD_ENDPOINT']=process['env']['DASHBOARD_ENDPOINT']||gridURL,exports[a22_0x23d8f0(0xc1)]=process['env'][a22_0x23d8f0(0xc1)]||bsApiUrl,exports[a22_0x23d8f0(0xca)]=process['env'][a22_0x23d8f0(0xca)]||agApiUrl,exports[a22_0x23d8f0(0xa1)]='wss://'+this[a22_0x23d8f0(0xca)]+a22_0x23d8f0(0xe5),exports[a22_0x23d8f0(0xce)]='credentials',exports[a22_0x23d8f0(0xd0)]=a22_0x23d8f0(0x10f),exports[a22_0x23d8f0(0xee)]=a22_0x23d8f0(0xb3),exports[a22_0x23d8f0(0x100)]=a22_0x23d8f0(0xf6),exports[a22_0x23d8f0(0xf0)]=a22_0x23d8f0(0x9f),exports[a22_0x23d8f0(0x10d)]=a22_0x23d8f0(0xc3),exports[a22_0x23d8f0(0xd6)]=a22_0x23d8f0(0x9d),exports[a22_0x23d8f0(0x109)]=a22_0x23d8f0(0xe8),exports[a22_0x23d8f0(0xa7)]=a22_0x23d8f0(0x110),exports['GCP']=a22_0x23d8f0(0xd9),exports[a22_0x23d8f0(0xfa)]=[this['AWS'],this[a22_0x23d8f0(0xa7)],this[a22_0x23d8f0(0xc9)]];const a22_0x3b844a={};a22_0x3b844a[a22_0x23d8f0(0xa4)]=a22_0x23d8f0(0xa3),a22_0x3b844a[a22_0x23d8f0(0xe0)]=a22_0x23d8f0(0xbc);function a22_0x444e(){const _0x5eac04=['grid-api.browserstack.com','grid.browserstack.com','start','CLUSTER','TURBOSCALE_DEPLOYMENT','stop','205rGXTxU','pre-prod','CLUSTER_AUTOSCALER_STACK_NAME','DEFAULT_CLUSTER_DETAILS','BrowserStackIAMUser','azure','276xksvDL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','INFO','grid-api-devhst.bsstag.com','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','BSTACK-ATS-CLUSTER-HUB-HA','create','BSTACK-ATS-CLUSTER','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','WS_ENDPOINT','high-scale-grid-cluster','browserstack:managedBy','Key','UNKNOWN','216632qmeFbq','AZURE','BrowserStack-Automate-TurboScale','RESOURCES','configure','info','delete','LOG','warning','WS_EVENTS','cliRunFinished','7978949VuVNsu','HELP_HEADER_MESSAGE','high-scale-grid','987lWEZWX','CLI_ARGS_REGEX','browserstack:service','staging','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','env','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','error','BrowserStack','split','LINK_MESSAGE','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','CLOUD_PROVIDER','BS_API_URL','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BSTACK-ATS-CLUSTER-AUTOSCALER','dotenv','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','us-east-1','init','HELP_FOOTER_MESSAGE','GCP','AG_API_URL','10odtgqJ','resourceInfo','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','CP_CONFIG_FILE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','IAM_USER_NAME','GRID_URL','grid-devhst.bsstag.com','REGION','unknown','7316656bkDiDK','CLUSTER_HUB_HA_STACK_NAME','HST_CLUSTER_TAGS','69476OCCfsp','gcp','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','api-devhst.bsstag.com','api-preprod.bsstag.com','config','2CbSrtj','NULL','Value','CLI_RUN_STARTED','global_registry','gridUrl','SUCCESS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','BROWSERSTACK_ENV','gridProfile','browserstack-turboscale-grid','3221178TClrMp','grid-api-preprod.bsstag.com','251333LAHkqD','15348yfUoKD','REDACTED','DEFAULT_GRID_NAME','forEach','CLUSTER_DEP_STACK_NAME','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','TRIAL_GRID_URL','ERROR','root','success','aws','connect','9YoYSnh','list','ALL_SUPPORTED_CLOUD_PROVIDERS','pre-check','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','TURBOSCALE_CUSTOM_TAGS','[REDACTED]','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','AWS','RAW_ARGS_REGEX','pre_check','cliRunStarted','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'];a22_0x444e=function(){return _0x5eac04;};return a22_0x444e();}function a22_0x3ebd(_0x17ff5f,_0x3f2766){const _0x444eb1=a22_0x444e();return a22_0x3ebd=function(_0x3ebd54,_0xda46ff){_0x3ebd54=_0x3ebd54-0x9d;let _0x3f7eef=_0x444eb1[_0x3ebd54];return _0x3f7eef;},a22_0x3ebd(_0x17ff5f,_0x3f2766);}const a22_0x2ff262={};a22_0x2ff262[a22_0x23d8f0(0xa4)]='browserstack:service',a22_0x2ff262[a22_0x23d8f0(0xe0)]=a22_0x23d8f0(0xa8);const common_hst_tags_list=[a22_0x3b844a,a22_0x2ff262];if(process[a22_0x23d8f0(0xb9)][a22_0x23d8f0(0xfd)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x23d8f0(0xbd)](',');parsedTags[a22_0x23d8f0(0xef)](_0x5adcf3=>{const _0x2ae722=a22_0x23d8f0,_0xa33a9f=_0x5adcf3[_0x2ae722(0xbd)](':'),_0x190b6b={};_0x190b6b['Key']=_0xa33a9f[0x0],_0x190b6b[_0x2ae722(0xe0)]=_0xa33a9f[0x1],common_hst_tags_list['push'](_0x190b6b);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a22_0x1112ae={};a22_0x1112ae[a22_0x23d8f0(0xa3)]=a22_0x23d8f0(0xbc),a22_0x1112ae[a22_0x23d8f0(0xb6)]='BrowserStack-Automate-TurboScale',exports[a22_0x23d8f0(0xd7)]=a22_0x1112ae,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a22_0x5a83b2={};a22_0x5a83b2[a22_0x23d8f0(0xad)]='log',a22_0x5a83b2[a22_0x23d8f0(0xa9)]=a22_0x23d8f0(0xcc),a22_0x5a83b2[a22_0x23d8f0(0xd1)]=a22_0x23d8f0(0xe3),a22_0x5a83b2[a22_0x23d8f0(0xe1)]=a22_0x23d8f0(0x103),a22_0x5a83b2['CLI_RUN_FINISHED']=a22_0x23d8f0(0xb0),exports[a22_0x23d8f0(0xaf)]=a22_0x5a83b2,exports[a22_0x23d8f0(0xe2)]={},exports['LINK_MESSAGE']=a22_0x23d8f0(0xb8);const a22_0x2f4051={};a22_0x2f4051[a22_0x23d8f0(0xf4)]=a22_0x23d8f0(0x115)+this['LINK_MESSAGE'],a22_0x2f4051[a22_0x23d8f0(0xc7)]=a22_0x23d8f0(0x104)+this[a22_0x23d8f0(0xbe)],a22_0x2f4051[a22_0x23d8f0(0xaa)]=a22_0x23d8f0(0xba)+this[a22_0x23d8f0(0xbe)],a22_0x2f4051[a22_0x23d8f0(0x9e)]=a22_0x23d8f0(0xc5)+this['LINK_MESSAGE'],a22_0x2f4051[a22_0x23d8f0(0xf9)]={},a22_0x2f4051[a22_0x23d8f0(0xac)]=a22_0x23d8f0(0xff)+this[a22_0x23d8f0(0xbe)],a22_0x2f4051[a22_0x23d8f0(0xf7)]=a22_0x23d8f0(0xa0)+this[a22_0x23d8f0(0xbe)],a22_0x2f4051[a22_0x23d8f0(0x107)]=a22_0x23d8f0(0xf1)+this[a22_0x23d8f0(0xbe)],a22_0x2f4051[a22_0x23d8f0(0x10a)]=a22_0x23d8f0(0xbf)+this[a22_0x23d8f0(0xbe)],a22_0x2f4051[a22_0x23d8f0(0x102)]=a22_0x23d8f0(0xda)+this[a22_0x23d8f0(0xbe)],a22_0x2f4051[a22_0x23d8f0(0xf9)]['root']=a22_0x23d8f0(0xcf)+this[a22_0x23d8f0(0xbe)],a22_0x2f4051[a22_0x23d8f0(0xf9)]['grid']=a22_0x23d8f0(0xcd)+this[a22_0x23d8f0(0xbe)],a22_0x2f4051[a22_0x23d8f0(0xf9)][a22_0x23d8f0(0xe7)]=a22_0x23d8f0(0x112)+this[a22_0x23d8f0(0xbe)],exports[a22_0x23d8f0(0xb2)]=a22_0x2f4051,exports[a22_0x23d8f0(0xc8)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x565297={};a22_0x565297[a22_0x23d8f0(0xe4)]=a22_0x23d8f0(0xf5),a22_0x565297[a22_0x23d8f0(0xf3)]=a22_0x23d8f0(0xbb),a22_0x565297[a22_0x23d8f0(0x113)]=a22_0x23d8f0(0xab),a22_0x565297['WARNING']=a22_0x23d8f0(0xae),a22_0x565297[a22_0x23d8f0(0xa5)]=a22_0x23d8f0(0xd4),a22_0x565297[a22_0x23d8f0(0xdf)]=null,exports['messageTypes']=a22_0x565297,exports[a22_0x23d8f0(0xb5)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x23d8f0(0x101)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x23d8f0(0xed)]=a22_0x23d8f0(0xfe);const a22_0x55adfa={};a22_0x55adfa['grid-profile']=a22_0x23d8f0(0xfc);const a22_0x3c8198={};a22_0x3c8198[a22_0x23d8f0(0xfb)]=a22_0x55adfa,exports['MessageDescription']=a22_0x3c8198,exports[a22_0x23d8f0(0xf2)]=a22_0x23d8f0(0xc2);const a22_0x1dcf18={};a22_0x1dcf18[a22_0x23d8f0(0x108)]=a22_0x23d8f0(0xa2),a22_0x1dcf18[a22_0x23d8f0(0xc0)]='aws',a22_0x1dcf18[a22_0x23d8f0(0xd3)]=a22_0x23d8f0(0xc6),exports[a22_0x23d8f0(0x10e)]=a22_0x1dcf18;
@@ -1 +1 @@
1
- const a23_0x39ada7=a23_0x112f;(function(_0x53f2e1,_0x21b72e){const _0x212d6a=a23_0x112f,_0x4c641a=_0x53f2e1();while(!![]){try{const _0xe55ebe=-parseInt(_0x212d6a(0x1a7))/0x1+-parseInt(_0x212d6a(0x1b4))/0x2+parseInt(_0x212d6a(0x1ad))/0x3+parseInt(_0x212d6a(0x1c2))/0x4*(parseInt(_0x212d6a(0x1ac))/0x5)+parseInt(_0x212d6a(0x1b7))/0x6*(parseInt(_0x212d6a(0x1a6))/0x7)+-parseInt(_0x212d6a(0x1a3))/0x8+parseInt(_0x212d6a(0x1bc))/0x9;if(_0xe55ebe===_0x21b72e)break;else _0x4c641a['push'](_0x4c641a['shift']());}catch(_0x2dc7aa){_0x4c641a['push'](_0x4c641a['shift']());}}}(a23_0x2387,0xaec0a));const winston=require(a23_0x39ada7(0x1ab)),fs=require('fs'),path=require(a23_0x39ada7(0x1aa)),logDir=a23_0x39ada7(0x1bd);!fs[a23_0x39ada7(0x1ae)](logDir)&&fs[a23_0x39ada7(0x1bf)](logDir);function a23_0x2387(){const _0x1b8a2c=['Console','usage.log','console.info','19181619yKKxnT','log','level','mkdirSync','combine','createLogger','180BEcUay','join','logger','9694208tozlxF','\x20-\x20','name','7HCpxRB','76398GBmCWw','message','YYYY-MM-DD\x20HH:mm:ss','path','winston','25eMlLfQ','805311jdWEmU','existsSync','printf','File','timestamp','fileLogger','format','2385632DFBLNN','debug','transports','4780938MzhLSg','events.log'];a23_0x2387=function(){return _0x1b8a2c;};return a23_0x2387();}const a23_0x55bd3a={};function a23_0x112f(_0x2f5157,_0x4582e2){const _0x238725=a23_0x2387();return a23_0x112f=function(_0x112f46,_0xdb1a73){_0x112f46=_0x112f46-0x1a2;let _0x2142ac=_0x238725[_0x112f46];return _0x2142ac;},a23_0x112f(_0x2f5157,_0x4582e2);}a23_0x55bd3a[a23_0x39ada7(0x1b3)]=a23_0x39ada7(0x1a9);const a23_0x209308={};a23_0x209308[a23_0x39ada7(0x1be)]=!![];const a23_0x12d2b1={};a23_0x12d2b1[a23_0x39ada7(0x1a5)]=a23_0x39ada7(0x1bb),exports[a23_0x39ada7(0x1a2)]=new winston['createLogger']({'format':winston[a23_0x39ada7(0x1b3)][a23_0x39ada7(0x1c0)](winston[a23_0x39ada7(0x1b3)][a23_0x39ada7(0x1b1)](a23_0x55bd3a),winston[a23_0x39ada7(0x1b3)]['colorize'](a23_0x209308),winston[a23_0x39ada7(0x1b3)][a23_0x39ada7(0x1af)](_0x315458=>_0x315458[a23_0x39ada7(0x1b1)]+a23_0x39ada7(0x1a4)+_0x315458[a23_0x39ada7(0x1be)]+':\x20'+_0x315458[a23_0x39ada7(0x1a8)])),'transports':[new winston[(a23_0x39ada7(0x1b6))][(a23_0x39ada7(0x1b9))](a23_0x12d2b1),new winston[(a23_0x39ada7(0x1b6))][(a23_0x39ada7(0x1b0))]({'filename':path[a23_0x39ada7(0x1c3)](logDir,a23_0x39ada7(0x1b8)),'level':a23_0x39ada7(0x1b5)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x39ada7(0x1b6))][(a23_0x39ada7(0x1b0))]({'filename':path['join'](logDir,a23_0x39ada7(0x1ba)),'level':'debug'})]};exports[a23_0x39ada7(0x1b2)]=new winston[(a23_0x39ada7(0x1c1))](winstonFileLoggerParams);
1
+ const a23_0x397ffc=a23_0x22d8;(function(_0x20f4d3,_0xe34b66){const _0x13e249=a23_0x22d8,_0x31b41e=_0x20f4d3();while(!![]){try{const _0x56284a=-parseInt(_0x13e249(0x1d2))/0x1*(parseInt(_0x13e249(0x1e9))/0x2)+-parseInt(_0x13e249(0x1ce))/0x3*(parseInt(_0x13e249(0x1e1))/0x4)+parseInt(_0x13e249(0x1e4))/0x5*(parseInt(_0x13e249(0x1dc))/0x6)+parseInt(_0x13e249(0x1ec))/0x7+parseInt(_0x13e249(0x1eb))/0x8*(parseInt(_0x13e249(0x1da))/0x9)+parseInt(_0x13e249(0x1cd))/0xa*(parseInt(_0x13e249(0x1d7))/0xb)+-parseInt(_0x13e249(0x1e6))/0xc*(parseInt(_0x13e249(0x1db))/0xd);if(_0x56284a===_0xe34b66)break;else _0x31b41e['push'](_0x31b41e['shift']());}catch(_0x19d386){_0x31b41e['push'](_0x31b41e['shift']());}}}(a23_0x3f9d,0xe0cfb));const winston=require(a23_0x397ffc(0x1cf)),fs=require('fs'),path=require(a23_0x397ffc(0x1cc)),logDir='log';!fs[a23_0x397ffc(0x1d3)](logDir)&&fs[a23_0x397ffc(0x1d1)](logDir);const a23_0x28e1eb={};a23_0x28e1eb[a23_0x397ffc(0x1df)]=a23_0x397ffc(0x1e2);function a23_0x22d8(_0x226ebc,_0x5506a8){const _0x3f9d31=a23_0x3f9d();return a23_0x22d8=function(_0x22d866,_0xc4ad58){_0x22d866=_0x22d866-0x1cb;let _0x1377aa=_0x3f9d31[_0x22d866];return _0x1377aa;},a23_0x22d8(_0x226ebc,_0x5506a8);}const a23_0x545f96={};a23_0x545f96[a23_0x397ffc(0x1d0)]=!![];function a23_0x3f9d(){const _0x2dcc5f=['logger','join','format','combine','8CmcOAI','YYYY-MM-DD\x20HH:mm:ss','message','695pEyrkH','events.log','4805700zGyDGu','debug','console.info','76eeWuDI','name','152goysGH','3689700jhTCvQ','printf','path','30YMKnIQ','2164089IWvJZJ','winston','level','mkdirSync','27232IVzPuY','existsSync','\x20-\x20','timestamp','File','2904341LWbmGE','createLogger','transports','868545gonDXd','26iZDNeq','45174AuPNWN'];a23_0x3f9d=function(){return _0x2dcc5f;};return a23_0x3f9d();}const a23_0x469ee4={};a23_0x469ee4[a23_0x397ffc(0x1ea)]=a23_0x397ffc(0x1e8),exports[a23_0x397ffc(0x1dd)]=new winston[(a23_0x397ffc(0x1d8))]({'format':winston[a23_0x397ffc(0x1df)][a23_0x397ffc(0x1e0)](winston[a23_0x397ffc(0x1df)][a23_0x397ffc(0x1d5)](a23_0x28e1eb),winston[a23_0x397ffc(0x1df)]['colorize'](a23_0x545f96),winston[a23_0x397ffc(0x1df)][a23_0x397ffc(0x1cb)](_0x252345=>_0x252345[a23_0x397ffc(0x1d5)]+a23_0x397ffc(0x1d4)+_0x252345['level']+':\x20'+_0x252345[a23_0x397ffc(0x1e3)])),'transports':[new winston[(a23_0x397ffc(0x1d9))]['Console'](a23_0x469ee4),new winston[(a23_0x397ffc(0x1d9))][(a23_0x397ffc(0x1d6))]({'filename':path[a23_0x397ffc(0x1de)](logDir,a23_0x397ffc(0x1e5)),'level':a23_0x397ffc(0x1e7)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a23_0x397ffc(0x1d6))]({'filename':path[a23_0x397ffc(0x1de)](logDir,'usage.log'),'level':a23_0x397ffc(0x1e7)})]};exports['fileLogger']=new winston[(a23_0x397ffc(0x1d8))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x35720c=a24_0x239d;(function(_0x1e4e9e,_0x454e7f){const _0x4e03c2=a24_0x239d,_0x33da42=_0x1e4e9e();while(!![]){try{const _0x59382c=parseInt(_0x4e03c2(0x1af))/0x1+-parseInt(_0x4e03c2(0x1a8))/0x2+parseInt(_0x4e03c2(0x1b6))/0x3*(-parseInt(_0x4e03c2(0x1ae))/0x4)+-parseInt(_0x4e03c2(0x1ab))/0x5+parseInt(_0x4e03c2(0x1b5))/0x6*(parseInt(_0x4e03c2(0x1a6))/0x7)+parseInt(_0x4e03c2(0x1b8))/0x8*(-parseInt(_0x4e03c2(0x1a9))/0x9)+-parseInt(_0x4e03c2(0x1b1))/0xa*(-parseInt(_0x4e03c2(0x1b7))/0xb);if(_0x59382c===_0x454e7f)break;else _0x33da42['push'](_0x33da42['shift']());}catch(_0x280bf8){_0x33da42['push'](_0x33da42['shift']());}}}(a24_0x45d5,0xb3507));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x35720c(0x1b2)][a24_0x35720c(0x1ba)]=0x1;function a24_0x45d5(){const _0x23c929=['7HXeDWB','commands','1729278zkvOgN','4437wxaykQ','CsMfN','6802175FNLcWe','demandCommand','usage','9960lWPUIu','777218XLLdcJ','exports','6190fkNDwq','env','commandDir','epilogue','3291234tuqcvE','135ihdcVV','53251mIPdlq','20296AQGuig','help','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','HJrsd'];a24_0x45d5=function(){return _0x23c929;};return a24_0x45d5();}function run(_0x4104e9){const _0x3b0a72=a24_0x35720c,_0x481c31={};_0x481c31[_0x3b0a72(0x1bb)]=_0x3b0a72(0x1a7),_0x481c31[_0x3b0a72(0x1aa)]='help';const _0x414dc7=_0x481c31;_0x4104e9[_0x3b0a72(0x1ad)](HELP_HEADER_MESSAGE['root'])[_0x3b0a72(0x1b3)](_0x414dc7[_0x3b0a72(0x1bb)])[_0x3b0a72(0x1ac)]()[_0x3b0a72(0x1b9)](_0x414dc7[_0x3b0a72(0x1aa)])[_0x3b0a72(0x1b4)](HELP_FOOTER_MESSAGE);}function a24_0x239d(_0x1cb9cf,_0x108966){const _0x45d58e=a24_0x45d5();return a24_0x239d=function(_0x239da5,_0x59802f){_0x239da5=_0x239da5-0x1a6;let _0x180450=_0x45d58e[_0x239da5];return _0x180450;},a24_0x239d(_0x1cb9cf,_0x108966);}module[a24_0x35720c(0x1b0)]=run;
2
+ 'use strict';function a24_0x1bbc(){const _0xa803be=['2036505qlkJsH','20107682zDmutr','LZIyS','commands','help','1716342TrJwRu','wXEEw','935796utilTb','./config/constants','demandCommand','462260oFKuov','exports','4122628mfnjUe','94681GkgUXb'];a24_0x1bbc=function(){return _0xa803be;};return a24_0x1bbc();}const a24_0xe1206=a24_0x3f65;function a24_0x3f65(_0x2786c8,_0x20fa0b){const _0x1bbcdd=a24_0x1bbc();return a24_0x3f65=function(_0x3f6507,_0x3d0d55){_0x3f6507=_0x3f6507-0x18f;let _0xafa4cf=_0x1bbcdd[_0x3f6507];return _0xafa4cf;},a24_0x3f65(_0x2786c8,_0x20fa0b);}(function(_0x528ee0,_0x2795f2){const _0x45137a=a24_0x3f65,_0x4a6062=_0x528ee0();while(!![]){try{const _0x59047f=parseInt(_0x45137a(0x193))/0x1+-parseInt(_0x45137a(0x190))/0x2+-parseInt(_0x45137a(0x199))/0x3+-parseInt(_0x45137a(0x192))/0x4+-parseInt(_0x45137a(0x194))/0x5+-parseInt(_0x45137a(0x19b))/0x6+parseInt(_0x45137a(0x195))/0x7;if(_0x59047f===_0x2795f2)break;else _0x4a6062['push'](_0x4a6062['shift']());}catch(_0x4c041e){_0x4a6062['push'](_0x4a6062['shift']());}}}(a24_0x1bbc,0x8b2b7));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0xe1206(0x19c));process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x34de8f){const _0x4d3023=a24_0xe1206,_0x5ed503={};_0x5ed503[_0x4d3023(0x19a)]=_0x4d3023(0x197),_0x5ed503[_0x4d3023(0x196)]=_0x4d3023(0x198);const _0x39319f=_0x5ed503;_0x34de8f['usage'](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x39319f[_0x4d3023(0x19a)])[_0x4d3023(0x18f)]()[_0x4d3023(0x198)](_0x39319f[_0x4d3023(0x196)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0xe1206(0x191)]=run;