browserstack-node-sdk 1.42.3 → 1.42.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) 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/cucumber-sessionDetails.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/playwright-patcher.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/playwright-helper.js +1 -1
  154. package/src/helpers/processHelper.js +1 -1
  155. package/src/helpers/request-spy.js +1 -1
  156. package/src/helpers/setKeepAlive.js +1 -1
  157. package/src/helpers/test-observability/constants.js +1 -1
  158. package/src/helpers/test-observability/error-handler.js +1 -1
  159. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  160. package/src/helpers/test-observability/sessionHandler.js +1 -1
  161. package/src/helpers/test-observability/utils.js +1 -1
  162. package/src/helpers/test-orchestration/constants.js +1 -1
  163. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  164. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  165. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  166. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  167. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  168. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  169. package/src/helpers/testhub/constants.js +1 -1
  170. package/src/helpers/testhub/testhubHandler.js +1 -1
  171. package/src/helpers/testhub/utils.js +1 -1
  172. package/src/helpers/timeoutPromise.js +1 -1
  173. package/src/helpers/utilities.js +1 -1
  174. package/src/helpers/w3cMapping.js +1 -1
  175. package/src/hubAllocationMethods.js +1 -1
  176. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x2ca05d=a15_0x2b7d;(function(_0x53a4ce,_0xcf5fb2){const _0x54622e=a15_0x2b7d,_0x455fd2=_0x53a4ce();while(!![]){try{const _0x333de6=-parseInt(_0x54622e(0x109))/0x1+parseInt(_0x54622e(0x134))/0x2*(-parseInt(_0x54622e(0xfc))/0x3)+-parseInt(_0x54622e(0xf6))/0x4+parseInt(_0x54622e(0x103))/0x5+-parseInt(_0x54622e(0xfe))/0x6*(parseInt(_0x54622e(0x107))/0x7)+-parseInt(_0x54622e(0x106))/0x8*(parseInt(_0x54622e(0x11b))/0x9)+parseInt(_0x54622e(0x123))/0xa*(parseInt(_0x54622e(0x13b))/0xb);if(_0x333de6===_0xcf5fb2)break;else _0x455fd2['push'](_0x455fd2['shift']());}catch(_0x4b9a09){_0x455fd2['push'](_0x455fd2['shift']());}}}(a15_0x61dc,0xbd328));function a15_0x2b7d(_0x463ab8,_0x3f8703){const _0x61dccd=a15_0x61dc();return a15_0x2b7d=function(_0x2b7dca,_0x1e9fd7){_0x2b7dca=_0x2b7dca-0xec;let _0x590b1e=_0x61dccd[_0x2b7dca];return _0x590b1e;},a15_0x2b7d(_0x463ab8,_0x3f8703);}const fs=require('fs'),got=require(a15_0x2ca05d(0x137)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x2ca05d(0x104)),{getCredentialsPath,getAuthHeader}=require(a15_0x2ca05d(0x10b)),{sendInstrumentationEvent}=require(a15_0x2ca05d(0xec));function a15_0x61dc(){const _0x54ca9c=['6858845KSizwG','../../config/constants','requestId','51728BmmBGX','1029BTIrVA','SSNWS','284649EoefVj','clusterName','../../utils/utilityMethods','kGonW','boolean','name','list-grids-called','existsSync','status','parse','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','LHzBb','unknown-error','handler','running','pmRCt','DGJtm','315ZElcJm','\x0aFound\x20the\x20following\x20grids:\x0a','grid-name','all-grids','bstackUsername','/packages/cli/get-grids','yQLDm','desc','20LtMbPb','forEach','password','allGrids','BXllZ','type','argv','stack','builder','UvtRo','jrBSA','ARTfq','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','queued','UqORK','init-not-called','qzmxX','2iLkaRR','DSTIS','server-error','got','body','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','error','9674753vfDIEK','stringify','sOhsA','GET','list','Failed\x20to\x20list\x20resources!\x20Error:\x20','help','../../utils/instrumentationUtils','username','usage','/packages/cli/get-all-grids','LnJAR','command','XaYAR','oozsv','exit','QxZam','1280360YQYDTC','readFileSync','GpWQa','RgBGP','ERROR','cEQWK','3104589cyJxVU','ncUHf','19998gOpeib','statusCode','paEEX','Browserstack','push'];a15_0x61dc=function(){return _0x54ca9c;};return a15_0x61dc();}exports[a15_0x2ca05d(0xf1)]='grids',exports[a15_0x2ca05d(0x122)]=a15_0x2ca05d(0x139),exports[a15_0x2ca05d(0x12b)]=function(_0x2fccbb){const _0x4cd742=a15_0x2ca05d,_0x52f92b={};_0x52f92b[_0x4cd742(0x11a)]=_0x4cd742(0x12f),_0x52f92b[_0x4cd742(0xf9)]=_0x4cd742(0x10d),_0x52f92b['ncUHf']=_0x4cd742(0x141);const _0x1e88ba=_0x52f92b,_0x1eeb7d={};_0x1eeb7d['description']=_0x1e88ba[_0x4cd742(0x11a)],_0x1eeb7d[_0x4cd742(0x128)]=_0x1e88ba['RgBGP'];const _0x5f11fb={};return _0x5f11fb[_0x4cd742(0x11e)]=_0x1eeb7d,_0x2fccbb[_0x4cd742(0xee)](HELP_HEADER_MESSAGE[_0x4cd742(0x13f)]['grid'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x5f11fb)[_0x4cd742(0x141)](_0x1e88ba[_0x4cd742(0xfd)])[_0x4cd742(0x129)];},exports[a15_0x2ca05d(0x117)]=async function(_0x27cc57){const _0x2c2669=a15_0x2ca05d,_0x4dcfed={'SSNWS':function(_0x272877){return _0x272877();},'oozsv':function(_0x274b8a){return _0x274b8a();},'LHzBb':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UvtRo':function(_0x2b6534,_0x3c74c5,_0x369b24,_0xbf7a50,_0x192752,_0x4e2508,_0x5e1f04){return _0x2b6534(_0x3c74c5,_0x369b24,_0xbf7a50,_0x192752,_0x4e2508,_0x5e1f04);},'kGonW':_0x2c2669(0x10f),'jrBSA':_0x2c2669(0x132),'YBBGu':function(_0x124c36){return _0x124c36();},'yQLDm':_0x2c2669(0x13e),'GpWQa':function(_0x2deea4,_0x50bdd6,_0x4dc210){return _0x2deea4(_0x50bdd6,_0x4dc210);},'cEQWK':function(_0x1fe24c,_0x46353e){return _0x1fe24c!==_0x46353e;},'LnJAR':function(_0x391d34,_0xfed966){return _0x391d34===_0xfed966;},'qzmxX':_0x2c2669(0x11c),'RtIzd':'grid-id','ARTfq':_0x2c2669(0x11d),'UqORK':_0x2c2669(0x111),'paEEX':'running','pmRCt':_0x2c2669(0x130),'XaYAR':'cluster-name','DSTIS':function(_0x16e92d,_0x139cd0){return _0x16e92d(_0x139cd0);},'sOhsA':_0x2c2669(0x114),'nWVdJ':'unauthorised','oFjDR':function(_0x3f6459,_0x3e525e,_0x38c2d2,_0x508097,_0x5f1c5b,_0x3a2df8,_0x2617c4){return _0x3f6459(_0x3e525e,_0x38c2d2,_0x508097,_0x5f1c5b,_0x3a2df8,_0x2617c4);},'xBTNZ':_0x2c2669(0x136),'QxZam':function(_0x5baf8d,_0x418fb2,_0x7dcda1,_0xcc1ea9,_0x489965,_0xa336e7,_0x2c06fc){return _0x5baf8d(_0x418fb2,_0x7dcda1,_0xcc1ea9,_0x489965,_0xa336e7,_0x2c06fc);},'BXllZ':_0x2c2669(0x116)};try{global_registry[_0x2c2669(0x105)]=_0x4dcfed[_0x2c2669(0x108)](uuidv4);!fs[_0x2c2669(0x110)](_0x4dcfed[_0x2c2669(0xf3)](getCredentialsPath))&&(console[_0x2c2669(0x13a)](_0x4dcfed[_0x2c2669(0x115)]),await _0x4dcfed[_0x2c2669(0x12c)](sendInstrumentationEvent,_0x27cc57,_0x4dcfed[_0x2c2669(0x10c)],messageTypes[_0x2c2669(0xfa)],_0x4dcfed[_0x2c2669(0x12d)],null,_0x27cc57),process[_0x2c2669(0xf4)](0x1));const _0x49d215=JSON[_0x2c2669(0x112)](fs[_0x2c2669(0xf7)](_0x4dcfed['YBBGu'](getCredentialsPath)));let _0x31fedc=_0x2c2669(0x113)+AG_API_URL+_0x2c2669(0x120);_0x27cc57[_0x2c2669(0x126)]&&(_0x31fedc=_0x2c2669(0x113)+AG_API_URL+_0x2c2669(0xef));const _0x12b734={'method':_0x4dcfed[_0x2c2669(0x121)],'headers':_0x4dcfed[_0x2c2669(0xf8)](getAuthHeader,_0x49d215[_0x2c2669(0x101)][_0x2c2669(0xed)],_0x49d215['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x2c2669(0x11f)]=_0x49d215['Browserstack'][_0x2c2669(0xed)],global_registry['bstackAccesskey']=_0x49d215[_0x2c2669(0x101)][_0x2c2669(0x125)],_0x4dcfed[_0x2c2669(0x12c)](sendInstrumentationEvent,_0x27cc57,_0x4dcfed[_0x2c2669(0x10c)],messageTypes['INFO'],null,null,_0x27cc57);const _0xc8d347=await _0x4dcfed[_0x2c2669(0xf8)](got,_0x31fedc,_0x12b734);if(_0x4dcfed[_0x2c2669(0xfb)](_0xc8d347,null)&&_0x4dcfed[_0x2c2669(0xfb)](_0xc8d347,undefined)&&_0x4dcfed[_0x2c2669(0xf0)](_0xc8d347[_0x2c2669(0xff)],0xc8)){const _0x52b7ed=JSON[_0x2c2669(0x112)](_0xc8d347[_0x2c2669(0x138)]);console['log'](_0x4dcfed[_0x2c2669(0x133)]);const _0x5333ed=[];_0x5333ed['push']([_0x4dcfed['RtIzd'],_0x4dcfed[_0x2c2669(0x12e)],_0x4dcfed[_0x2c2669(0x131)],_0x4dcfed[_0x2c2669(0x100)],_0x4dcfed[_0x2c2669(0x119)],_0x4dcfed[_0x2c2669(0xf2)]]),_0x52b7ed[_0x2c2669(0x124)](_0x4bc2e9=>{const _0x5d1e8c=_0x2c2669;_0x5333ed[_0x5d1e8c(0x102)]([_0x4bc2e9['id'],_0x4bc2e9[_0x5d1e8c(0x10e)],_0x4bc2e9['status'],_0x4bc2e9[_0x5d1e8c(0x118)],_0x4bc2e9[_0x5d1e8c(0x130)],_0x4bc2e9[_0x5d1e8c(0x10a)]]);}),console['log'](_0x4dcfed[_0x2c2669(0x135)](table,_0x5333ed)),process[_0x2c2669(0xf4)](0x0);}_0x4dcfed[_0x2c2669(0xf0)](_0xc8d347['statusCode'],0x191)&&(console[_0x2c2669(0x13a)](_0x4dcfed[_0x2c2669(0x13d)]),await _0x4dcfed[_0x2c2669(0x12c)](sendInstrumentationEvent,_0x27cc57,_0x4dcfed[_0x2c2669(0x10c)],messageTypes['ERROR'],_0x4dcfed['nWVdJ'],null,_0x27cc57),process[_0x2c2669(0xf4)](0x1)),console[_0x2c2669(0x13a)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2c2669(0x13c)](_0xc8d347)),await _0x4dcfed['oFjDR'](sendInstrumentationEvent,_0x27cc57,_0x4dcfed[_0x2c2669(0x10c)],messageTypes[_0x2c2669(0xfa)],_0x4dcfed['xBTNZ'],_0xc8d347,_0x27cc57),process[_0x2c2669(0xf4)](0x1);}catch(_0x552502){console['error'](_0x2c2669(0x140)+_0x552502[_0x2c2669(0x12a)]),await _0x4dcfed[_0x2c2669(0xf5)](sendInstrumentationEvent,_0x27cc57,_0x4dcfed['kGonW'],messageTypes[_0x2c2669(0xfa)],_0x4dcfed[_0x2c2669(0x127)],_0x552502,_0x27cc57),process[_0x2c2669(0xf4)](0x1);}};
1
+ function a15_0x5ce3(_0x33a3d8,_0x3ac229){const _0x2616a3=a15_0x2616();return a15_0x5ce3=function(_0x5ce3d6,_0x3cccce){_0x5ce3d6=_0x5ce3d6-0xcd;let _0x55bfc6=_0x2616a3[_0x5ce3d6];return _0x55bfc6;},a15_0x5ce3(_0x33a3d8,_0x3ac229);}const a15_0x4c3adf=a15_0x5ce3;(function(_0x58f608,_0x42c7df){const _0x287f0f=a15_0x5ce3,_0x38a6f1=_0x58f608();while(!![]){try{const _0x55a1e3=parseInt(_0x287f0f(0x115))/0x1+parseInt(_0x287f0f(0x123))/0x2*(-parseInt(_0x287f0f(0xfe))/0x3)+-parseInt(_0x287f0f(0x11c))/0x4+parseInt(_0x287f0f(0x107))/0x5*(parseInt(_0x287f0f(0x10e))/0x6)+parseInt(_0x287f0f(0xfb))/0x7*(-parseInt(_0x287f0f(0xed))/0x8)+parseInt(_0x287f0f(0xec))/0x9*(parseInt(_0x287f0f(0xeb))/0xa)+parseInt(_0x287f0f(0xcf))/0xb*(parseInt(_0x287f0f(0x10a))/0xc);if(_0x55a1e3===_0x42c7df)break;else _0x38a6f1['push'](_0x38a6f1['shift']());}catch(_0x533bc2){_0x38a6f1['push'](_0x38a6f1['shift']());}}}(a15_0x2616,0xf2555));const fs=require('fs'),got=require(a15_0x4c3adf(0x106)),{table}=require(a15_0x4c3adf(0xce)),{v4:uuidv4}=require(a15_0x4c3adf(0x122)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4c3adf(0xd8)),{getCredentialsPath,getAuthHeader}=require(a15_0x4c3adf(0xf5)),{sendInstrumentationEvent}=require(a15_0x4c3adf(0xdb));exports['command']=a15_0x4c3adf(0xe7),exports[a15_0x4c3adf(0xf9)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x1575d8){const _0x464e38=a15_0x4c3adf,_0x3d97c7={};_0x3d97c7[_0x464e38(0x101)]=_0x464e38(0x10d),_0x3d97c7[_0x464e38(0x114)]=_0x464e38(0x120),_0x3d97c7['vkVNr']='help';const _0x49f2b8=_0x3d97c7,_0x576481={};_0x576481[_0x464e38(0xe3)]=_0x49f2b8[_0x464e38(0x101)],_0x576481[_0x464e38(0x118)]=_0x49f2b8[_0x464e38(0x114)];const _0x4e9b0a={};return _0x4e9b0a['all-grids']=_0x576481,_0x1575d8[_0x464e38(0xd5)](HELP_HEADER_MESSAGE['list']['grid'])[_0x464e38(0x116)](HELP_FOOTER_MESSAGE)[_0x464e38(0xef)](_0x4e9b0a)[_0x464e38(0xe8)](_0x49f2b8[_0x464e38(0x10f)])[_0x464e38(0xd7)];},exports['handler']=async function(_0x45424e){const _0x3a7424=a15_0x4c3adf,_0x28717b={'tyvdM':function(_0x5aad82){return _0x5aad82();},'VDkIu':function(_0x4823fa){return _0x4823fa();},'vUpNH':_0x3a7424(0xe4),'vmHPE':function(_0x1538f4,_0x26f20d,_0x2a4d65,_0x74b1e3,_0x526e4e,_0x13062d,_0x548ffc){return _0x1538f4(_0x26f20d,_0x2a4d65,_0x74b1e3,_0x526e4e,_0x13062d,_0x548ffc);},'TwuZR':_0x3a7424(0xf2),'LyviV':_0x3a7424(0xf7),'bJVSY':_0x3a7424(0xdc),'nbZhU':function(_0x562a9f,_0x14f953,_0x5d584d){return _0x562a9f(_0x14f953,_0x5d584d);},'bnSkJ':function(_0xb6a605,_0x40b91c,_0xc49da9,_0x5c247c,_0x19f636,_0xf93705,_0x48f68e){return _0xb6a605(_0x40b91c,_0xc49da9,_0x5c247c,_0x19f636,_0xf93705,_0x48f68e);},'SxqIS':function(_0x2622d2,_0x407cf8){return _0x2622d2!==_0x407cf8;},'xWogE':function(_0x21a990,_0x5215fc){return _0x21a990===_0x5215fc;},'bTpqW':_0x3a7424(0xfc),'pmPBw':_0x3a7424(0x105),'zaYkV':'grid-name','RQhsW':_0x3a7424(0xd0),'sEOmA':_0x3a7424(0xf4),'XTPXi':_0x3a7424(0x121),'ObZdh':_0x3a7424(0xcd),'rGSmf':function(_0x50dbdc,_0x4b3f3c){return _0x50dbdc(_0x4b3f3c);},'aGgwk':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','jqDjc':function(_0x3fb658,_0x32559e,_0x191062,_0x291507,_0x3b8f04,_0x3a3cd4,_0xcd4ec9){return _0x3fb658(_0x32559e,_0x191062,_0x291507,_0x3b8f04,_0x3a3cd4,_0xcd4ec9);},'tjXLZ':_0x3a7424(0xea),'czdHT':_0x3a7424(0x102),'dvVIB':function(_0x25a2de,_0x4e6e3d,_0x42f1ac,_0x47df0e,_0x288ce0,_0x168530,_0xe63414){return _0x25a2de(_0x4e6e3d,_0x42f1ac,_0x47df0e,_0x288ce0,_0x168530,_0xe63414);},'wldEz':_0x3a7424(0x11e)};try{global_registry[_0x3a7424(0x111)]=_0x28717b[_0x3a7424(0x11a)](uuidv4);!fs[_0x3a7424(0xe9)](_0x28717b[_0x3a7424(0x103)](getCredentialsPath))&&(console[_0x3a7424(0xff)](_0x28717b[_0x3a7424(0x110)]),await _0x28717b['vmHPE'](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes['ERROR'],_0x28717b['LyviV'],null,_0x45424e),process['exit'](0x1));const _0x4d5aea=JSON[_0x3a7424(0xd9)](fs['readFileSync'](_0x28717b[_0x3a7424(0x103)](getCredentialsPath)));let _0xee6888=_0x3a7424(0xe5)+AG_API_URL+_0x3a7424(0xe0);_0x45424e[_0x3a7424(0xfd)]&&(_0xee6888=_0x3a7424(0xe5)+AG_API_URL+_0x3a7424(0x11b));const _0x398574={'method':_0x28717b[_0x3a7424(0xf0)],'headers':_0x28717b[_0x3a7424(0xf1)](getAuthHeader,_0x4d5aea[_0x3a7424(0xf6)][_0x3a7424(0xde)],_0x4d5aea['Browserstack'][_0x3a7424(0xdd)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4d5aea[_0x3a7424(0xf6)][_0x3a7424(0xde)],global_registry['bstackAccesskey']=_0x4d5aea[_0x3a7424(0xf6)]['password'],_0x28717b[_0x3a7424(0xf8)](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes['INFO'],null,null,_0x45424e);const _0x9788bb=await _0x28717b[_0x3a7424(0xf1)](got,_0xee6888,_0x398574);if(_0x28717b[_0x3a7424(0x10b)](_0x9788bb,null)&&_0x28717b['SxqIS'](_0x9788bb,undefined)&&_0x28717b[_0x3a7424(0x108)](_0x9788bb['statusCode'],0xc8)){const _0x58b943=JSON[_0x3a7424(0xd9)](_0x9788bb[_0x3a7424(0xda)]);console[_0x3a7424(0xfa)](_0x28717b['bTpqW']);const _0x533086=[];_0x533086[_0x3a7424(0xd6)]([_0x28717b[_0x3a7424(0xd3)],_0x28717b[_0x3a7424(0x104)],_0x28717b[_0x3a7424(0xe6)],_0x28717b[_0x3a7424(0xdf)],_0x28717b[_0x3a7424(0x100)],_0x28717b[_0x3a7424(0x119)]]),_0x58b943[_0x3a7424(0x10c)](_0x140609=>{const _0xa86ea1=_0x3a7424;_0x533086[_0xa86ea1(0xd6)]([_0x140609['id'],_0x140609['name'],_0x140609['status'],_0x140609[_0xa86ea1(0xf4)],_0x140609[_0xa86ea1(0x121)],_0x140609[_0xa86ea1(0x11f)]]);}),console[_0x3a7424(0xfa)](_0x28717b['rGSmf'](table,_0x533086)),process[_0x3a7424(0xd1)](0x0);}_0x28717b[_0x3a7424(0x108)](_0x9788bb[_0x3a7424(0xee)],0x191)&&(console[_0x3a7424(0xff)](_0x28717b[_0x3a7424(0xe1)]),await _0x28717b['jqDjc'](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes[_0x3a7424(0xd2)],_0x28717b['tjXLZ'],null,_0x45424e),process[_0x3a7424(0xd1)](0x1)),console['error'](_0x3a7424(0x112)+JSON[_0x3a7424(0x11d)](_0x9788bb)),await _0x28717b[_0x3a7424(0xe2)](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes[_0x3a7424(0xd2)],_0x28717b[_0x3a7424(0xf3)],_0x9788bb,_0x45424e),process['exit'](0x1);}catch(_0x4e518c){console['error'](_0x3a7424(0x109)+_0x4e518c[_0x3a7424(0xd4)]),await _0x28717b[_0x3a7424(0x113)](sendInstrumentationEvent,_0x45424e,_0x28717b[_0x3a7424(0x117)],messageTypes[_0x3a7424(0xd2)],_0x28717b['wldEz'],_0x4e518c,_0x45424e),process[_0x3a7424(0xd1)](0x1);}};function a15_0x2616(){const _0x171412=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','https://','RQhsW','grids','help','existsSync','unauthorised','10qVeasv','5129235tqLrQn','5223080BizHwE','statusCode','options','bJVSY','nbZhU','list-grids-called','czdHT','running','../../utils/utilityMethods','Browserstack','init-not-called','bnSkJ','desc','log','7pONBij','\x0aFound\x20the\x20following\x20grids:\x0a','allGrids','145239Robqrq','error','XTPXi','CGbTU','server-error','VDkIu','zaYkV','grid-id','got','230DaxUMK','xWogE','Failed\x20to\x20list\x20resources!\x20Error:\x20','6515676wKVUaL','SxqIS','forEach','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','208158TDoBiJ','vkVNr','vUpNH','requestId','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','dvVIB','QuWRs','334154jwzeth','epilogue','TwuZR','type','ObZdh','tyvdM','/packages/cli/get-all-grids','1135756FYshhy','stringify','unknown-error','clusterName','boolean','queued','uuid','46ywVQzS','cluster-name','table','11vyClLt','status','exit','ERROR','pmPBw','stack','usage','push','argv','../../config/constants','parse','body','../../utils/instrumentationUtils','GET','password','username','sEOmA','/packages/cli/get-grids','aGgwk','vmHPE','description'];a15_0x2616=function(){return _0x171412;};return a15_0x2616();}
@@ -1 +1 @@
1
- const a16_0x1b9d41=a16_0xbacb;function a16_0x495a(){const _0x517bc3=['HmFgh','builder','2191546laIEYu','help','strict','12eBEJSb','342jzvtaK','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Sqppm','924060TRtHZp','../config/constants','121325OOSkfK','7133994ZPDSsA','1071ysVdIt','1298648doBGvl','pre-check','command','recommendCommands','1413448odKhov','epilogue','pre_check'];a16_0x495a=function(){return _0x517bc3;};return a16_0x495a();}function a16_0xbacb(_0x12c254,_0x205f10){const _0x495a8a=a16_0x495a();return a16_0xbacb=function(_0xbacb6,_0x4925ea){_0xbacb6=_0xbacb6-0x87;let _0x562502=_0x495a8a[_0xbacb6];return _0x562502;},a16_0xbacb(_0x12c254,_0x205f10);}(function(_0x56fb85,_0xd4796c){const _0x18bfae=a16_0xbacb,_0x4f126d=_0x56fb85();while(!![]){try{const _0x4ce4c8=-parseInt(_0x18bfae(0x88))/0x1*(parseInt(_0x18bfae(0x96))/0x2)+parseInt(_0x18bfae(0x99))/0x3+parseInt(_0x18bfae(0x89))/0x4+-parseInt(_0x18bfae(0x9b))/0x5*(-parseInt(_0x18bfae(0x95))/0x6)+parseInt(_0x18bfae(0x92))/0x7+parseInt(_0x18bfae(0x8d))/0x8+-parseInt(_0x18bfae(0x87))/0x9;if(_0x4ce4c8===_0xd4796c)break;else _0x4f126d['push'](_0x4f126d['shift']());}catch(_0x1cb10c){_0x4f126d['push'](_0x4f126d['shift']());}}}(a16_0x495a,0x2fa5c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x1b9d41(0x9a));exports[a16_0x1b9d41(0x8b)]=a16_0x1b9d41(0x8a),exports['desc']=a16_0x1b9d41(0x97),exports[a16_0x1b9d41(0x91)]=function(_0x45f58a){const _0x5664f9=a16_0x1b9d41,_0x1bbcd7={};_0x1bbcd7[_0x5664f9(0x98)]='precheck_commands',_0x1bbcd7[_0x5664f9(0x90)]='help';const _0x1e6da7=_0x1bbcd7;return _0x45f58a['usage'](HELP_HEADER_MESSAGE[_0x5664f9(0x8f)])[_0x5664f9(0x8e)](HELP_FOOTER_MESSAGE)['commandDir'](_0x1e6da7[_0x5664f9(0x98)])['demandCommand']()[_0x5664f9(0x8c)]()[_0x5664f9(0x94)]()[_0x5664f9(0x93)](_0x1e6da7[_0x5664f9(0x90)]);},exports['handler']=function(_0xaef647){};
1
+ const a16_0x4d20bf=a16_0x52f5;(function(_0x3e491a,_0x2e51c9){const _0x42b124=a16_0x52f5,_0x1c971d=_0x3e491a();while(!![]){try{const _0x1bcfbc=parseInt(_0x42b124(0x76))/0x1*(parseInt(_0x42b124(0x7d))/0x2)+-parseInt(_0x42b124(0x7e))/0x3*(parseInt(_0x42b124(0x7c))/0x4)+-parseInt(_0x42b124(0x88))/0x5+parseInt(_0x42b124(0x75))/0x6+-parseInt(_0x42b124(0x77))/0x7+-parseInt(_0x42b124(0x87))/0x8*(parseInt(_0x42b124(0x74))/0x9)+parseInt(_0x42b124(0x82))/0xa;if(_0x1bcfbc===_0x2e51c9)break;else _0x1c971d['push'](_0x1c971d['shift']());}catch(_0x456626){_0x1c971d['push'](_0x1c971d['shift']());}}}(a16_0x4377,0xeef1f));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x4d20bf(0x7b)]='pre-check',exports[a16_0x4d20bf(0x73)]=a16_0x4d20bf(0x86),exports['builder']=function(_0xa82f33){const _0x389913=a16_0x4d20bf,_0x3f7a12={};_0x3f7a12[_0x389913(0x84)]=_0x389913(0x81),_0x3f7a12[_0x389913(0x79)]='help';const _0x588f61=_0x3f7a12;return _0xa82f33[_0x389913(0x7f)](HELP_HEADER_MESSAGE[_0x389913(0x83)])[_0x389913(0x7a)](HELP_FOOTER_MESSAGE)[_0x389913(0x78)](_0x588f61[_0x389913(0x84)])['demandCommand']()[_0x389913(0x72)]()['strict']()[_0x389913(0x85)](_0x588f61[_0x389913(0x79)]);},exports[a16_0x4d20bf(0x80)]=function(_0x56db1a){};function a16_0x52f5(_0x3919bc,_0x158b79){const _0x437794=a16_0x4377();return a16_0x52f5=function(_0x52f52e,_0x31635f){_0x52f52e=_0x52f52e-0x72;let _0x28d66e=_0x437794[_0x52f52e];return _0x28d66e;},a16_0x52f5(_0x3919bc,_0x158b79);}function a16_0x4377(){const _0x5b7dad=['2xJYEFk','9nfPLYi','usage','handler','precheck_commands','42389690WxODjs','pre_check','RnwcA','help','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','6037616uUCvur','8344305oVaDFj','recommendCommands','desc','9FQzzqS','3472200XTZrdf','779683NINxAY','2792328BRPtla','commandDir','xoMyQ','epilogue','command','2394888oeQaUV'];a16_0x4377=function(){return _0x5b7dad;};return a16_0x4377();}
@@ -1 +1 @@
1
- const a17_0xe16171=a17_0x2dbf;(function(_0x3e8244,_0x4bc142){const _0x356925=a17_0x2dbf,_0x521553=_0x3e8244();while(!![]){try{const _0x12a8ce=-parseInt(_0x356925(0x253))/0x1+parseInt(_0x356925(0x212))/0x2*(-parseInt(_0x356925(0x21d))/0x3)+parseInt(_0x356925(0x1ba))/0x4+parseInt(_0x356925(0x22f))/0x5*(parseInt(_0x356925(0x1cf))/0x6)+-parseInt(_0x356925(0x1fa))/0x7+-parseInt(_0x356925(0x1ab))/0x8*(parseInt(_0x356925(0x1f5))/0x9)+parseInt(_0x356925(0x24f))/0xa;if(_0x12a8ce===_0x4bc142)break;else _0x521553['push'](_0x521553['shift']());}catch(_0x102192){_0x521553['push'](_0x521553['shift']());}}}(a17_0x3e69,0x8ac32));const fs=require('fs'),ws=require('ws'),got=require(a17_0xe16171(0x24a)),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0xe16171(0x225)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0xe16171(0x1aa)),{logger}=require(a17_0xe16171(0x1f4)),{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_0xe16171(0x1ad)),{getCloudProviderObjectWithOutInit}=require(a17_0xe16171(0x1a2)),webSocketUtils=require(a17_0xe16171(0x180)),{sendInstrumentationEvent}=require(a17_0xe16171(0x1f7));exports[a17_0xe16171(0x18f)]=a17_0xe16171(0x1b9),exports[a17_0xe16171(0x1dc)]=a17_0xe16171(0x1a1),exports['builder']=function(_0x1d519a){const _0x52fc28=a17_0xe16171,_0x61304a={};_0x61304a[_0x52fc28(0x1eb)]=_0x52fc28(0x196),_0x61304a['tpHqQ']=_0x52fc28(0x173),_0x61304a[_0x52fc28(0x1d5)]=_0x52fc28(0x1cc),_0x61304a[_0x52fc28(0x1e5)]=_0x52fc28(0x187),_0x61304a['zGaAR']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x61304a[_0x52fc28(0x199)]=_0x52fc28(0x1c8);const _0x138458=_0x61304a,_0x1bf53a={};_0x1bf53a['description']=_0x138458[_0x52fc28(0x1eb)],_0x1bf53a['type']=_0x138458['tpHqQ'];const _0x53c5db={};_0x53c5db[_0x52fc28(0x24c)]=_0x138458[_0x52fc28(0x1d5)],_0x53c5db[_0x52fc28(0x214)]=_0x138458[_0x52fc28(0x1b0)];const _0x25eb42={};_0x25eb42[_0x52fc28(0x24c)]=_0x138458['yBzQF'],_0x25eb42[_0x52fc28(0x214)]=_0x138458['tpHqQ'];const _0xbc8620={};_0xbc8620[_0x52fc28(0x24c)]=_0x138458[_0x52fc28(0x188)],_0xbc8620['type']=_0x138458['tpHqQ'];const _0x3fd3d4={};return _0x3fd3d4['cluster-name']=_0x1bf53a,_0x3fd3d4[_0x52fc28(0x21e)]=_0x53c5db,_0x3fd3d4[_0x52fc28(0x232)]=_0x25eb42,_0x3fd3d4['grid-profile']=_0xbc8620,_0x1d519a[_0x52fc28(0x242)](HELP_HEADER_MESSAGE['pre_check'])[_0x52fc28(0x252)](HELP_FOOTER_MESSAGE)[_0x52fc28(0x244)](_0x3fd3d4)[_0x52fc28(0x1c8)](_0x138458[_0x52fc28(0x199)])['argv'];};function a17_0x3e69(){const _0x15398a=['CLOUD_PROVIDER','string','\x20\x20Message:\x20','zXDUM','koxaj','VfLCN','push','/packages/cli/get-all-grid-profiles','Zgvzz','rAHJz','OyoDX','bstackUsername','LxWxy','ERROR','../../utils/webSocketUtils','hWVRE','parse','ZTNIY','AcrdZ','rWtbx','YiLDy','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','zGaAR','pre-check-failed','init','qXbav','split','grid\x20profile\x20flow\x20','QbMnw','command','Invalid\x20input.\x20grid\x20profiles:\x20','info','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','iokuD','User\x20Access','JoCZY','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pJPsk','toLowerCase','azgsi','AHTsM','code','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','Error\x20Details:\x0a','credential-not-found','LRgTx','YGOXv','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','../../cloudproviders/utils','Cluster\x20`','ycKnS','IBUbD','rVGMJ','cnmQC','yXWtx','\x20\x20Stack:\x20','../../utils/utilityMethods','174632LTNunz','XfQVQ','../../config/constants','N/A','username','tpHqQ','XtYVo','UJNjS','sendEventToBackend','CZHGP','dnKhN','Pre-check\x20running\x20for\x20Cloud\x20-\x20','VFphr','password','grid','3011456WiatvX','XFvKi','INFO','join','Status:\x20','YeQNa','pre-check-grid-profile-empty','jTgZd','getUTCMonth','status','\x20\x20Code:\x20','GggEd','isCliToolInstalled','PgNHx','help','is\x20already\x20present','`\x20is\x20present\x20in\x20region\x20`','Pquiy','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','XWbCo','wGmjm','10548LUKmbR','length','rpnOU','checkAccess','authHeader','pPGly','hbJid','vwSve','NnAkQ','LPLgu','WiGmr','iwVNh','QEEZg','desc','HTMWn','data','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Sfsgd','https://','PpFrm','clusterName','unable\x20to\x20verify\x20if\x20cluster\x20`','yBzQF','getUTCMinutes','OouQT','Cluster\x20','qGWMA',']\x20status\x20:\x20','QFwUi','Message:\x20','.txt','FXgZT','vFzht','clusterRegion','rnOlV','YoQVa','name','../../config/logger','9JxIPyW','message','../../utils/instrumentationUtils','eYNAq','getUTCHours','3049452zNLWIi','ygLdO','LOG','Tool\x20Installed','<PasswordPlaceholder>','nRfRc','dummy-grid','connectionTimeout','MqWox','getUTCFullYear','wNsvk','headers','ujIhD','lhtZu','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','utf-8','HSooL','bstackAccesskey','xWmnu','oQOrm','QlnkH','cloudProvider','AxFWC','log/report_','68ecXGoa','effTS','type','QfuFZ','XdQEg','pre-check','Missing\x20required\x20arguments:\x20','QNWkO','fAoYA','JugQN','Success','1143uciWJr','cloud-provider','nRMSO','ONkTv','.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again','\x20data\x20:\x20','gridProfile','RopWx','reconnecting-websocket','FoYoo','`\x20already\x20exists','Failure','PkyVI','error','TmiHC','Setting\x20cloud\x20provider\x20as\x20','ZuqEN','replace','310mFgtnW','GFFhV','KCRpu','region','cloud-provider-not-supported','Whitelisted\x20browserstack','response','VEgVx','HwAwB','GET','isTls1_2_SUPPORTED','zVBsv','JNEfR','hXshe','Grid\x20profile\x20fetched\x20for\x20pre-check','SSL\x20Configured','CwSoL','Browserstack','stringify','usage','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','options','buBfS','pre-check-cluster-args-not-passed','NVMXT','cluster-name','exit','got','Report\x20saved\x20in\x20','description','NKHqV','find','11067150Uzgpdh','\x20error\x20:\x20','CNBlF','epilogue','929786FEmCRC','delay','SyPwg','will\x20be\x20created','includes','ZjhmR','\x20===\x0a\x0a','lCWEc','stack','error\x20stack\x20:\x20','handler','\x20region\x20-\x20','isClusterPresent','XYTEN','header','body','Failed\x20in\x20pre-check!\x20Error:\x20','readFileSync','ilrwU','pJmXB','uLMyV'];a17_0x3e69=function(){return _0x15398a;};return a17_0x3e69();}function a17_0x2dbf(_0x535b81,_0x196e40){const _0x3e69fb=a17_0x3e69();return a17_0x2dbf=function(_0x2dbf55,_0xfff576){_0x2dbf55=_0x2dbf55-0x170;let _0x4e5df6=_0x3e69fb[_0x2dbf55];return _0x4e5df6;},a17_0x2dbf(_0x535b81,_0x196e40);}async function inputValidation(_0x3e1852,_0x26b11b){const _0x344054=a17_0xe16171,_0x2d5cc3={'rpnOU':function(_0x3efef9,_0x2f4701){return _0x3efef9+_0x2f4701;},'QImQl':_0x344054(0x21c),'kjIid':_0x344054(0x228),'XWbCo':function(_0x4d3f01,_0x1cf74a){return _0x4d3f01||_0x1cf74a;},'XfQVQ':'N/A','QfuFZ':_0x344054(0x19d),'AHTsM':_0x344054(0x22a),'JoCZY':_0x344054(0x248),'BSsAZ':_0x344054(0x196),'ZuqEN':_0x344054(0x173),'sYiTF':_0x344054(0x1cc),'wGmjm':_0x344054(0x187),'HwAwB':_0x344054(0x192),'OouQT':_0x344054(0x1c8),'iokuD':'region','QlnkH':_0x344054(0x1c9),'MqWox':_0x344054(0x256),'rAHJz':_0x344054(0x1df),'cnmQC':function(_0x39c968,_0x429d0e){return _0x39c968===_0x429d0e;},'CNBlF':_0x344054(0x1cb),'oQOrm':'IJhBm','NVMXT':function(_0xdeac2,_0x86a039){return _0xdeac2!==_0x86a039;},'vFzht':_0x344054(0x20a),'xWmnu':_0x344054(0x236),'ilrwU':_0x344054(0x258),'LfbtH':_0x344054(0x1db),'QbMnw':_0x344054(0x206),'kVNWj':_0x344054(0x21e),'Sfsgd':function(_0x640974,_0x309a80){return _0x640974===_0x309a80;},'LRgTx':'FEJeI','npzFf':function(_0x379ee3,_0x25b37f){return _0x379ee3>_0x25b37f;},'OyoDX':_0x344054(0x197),'QNWkO':function(_0x273ba4,_0x38b9f8,_0x787505,_0x34af46,_0x13ed41,_0x24b9c2,_0x58e234,_0x2c9636){return _0x273ba4(_0x38b9f8,_0x787505,_0x34af46,_0x13ed41,_0x24b9c2,_0x58e234,_0x2c9636);},'LPLgu':'pre-check-grid-called','pJmXB':_0x344054(0x246),'FoYoo':'stXLK','rnOlV':_0x344054(0x243),'XYTEN':function(_0x64b9,_0x5978ac,_0xd1d540,_0x2a1bc8,_0xa0d1e9,_0x558668,_0x459727,_0x3db047){return _0x64b9(_0x5978ac,_0xd1d540,_0x2a1bc8,_0xa0d1e9,_0x558668,_0x459727,_0x3db047);},'vwSve':_0x344054(0x233),'qXbav':_0x344054(0x1fb),'iwVNh':function(_0x20a1c1,_0x37620e){return _0x20a1c1===_0x37620e;},'NnAkQ':_0x344054(0x21f),'JNEfR':_0x344054(0x238),'UJNjS':function(_0x5c4cc7,_0x107158,_0x4ca71b){return _0x5c4cc7(_0x107158,_0x4ca71b);},'SyPwg':function(_0xab6115,_0x1e26b6,_0x576bc9,_0x57875d,_0x5ee791,_0x3f0a73){return _0xab6115(_0x1e26b6,_0x576bc9,_0x57875d,_0x5ee791,_0x3f0a73);},'hXshe':_0x344054(0x217),'SHElB':'grid-profile','YGOXv':function(_0x3bbb86,_0xa564d3){return _0x3bbb86!==_0xa564d3;},'CwYvV':'BHitY','PkyVI':_0x344054(0x1a4),'CZHGP':function(_0x8c8bc6,_0x4f28ee){return _0x8c8bc6(_0x4f28ee);},'uUkwW':function(_0x254544,_0x2c118f){return _0x254544===_0x2c118f;},'TmiHC':_0x344054(0x1b1),'mMALD':_0x344054(0x1c0),'rWtbx':_0x344054(0x230),'VFphr':_0x344054(0x183),'WKJpU':_0x344054(0x23d),'YoQVa':function(_0x4a8bc7,_0x281979){return _0x4a8bc7===_0x281979;},'uLMyV':_0x344054(0x17a),'jTgZd':'ZCDMr','XFvKi':'QrsTe','rVGMJ':_0x344054(0x224),'dnKhN':function(_0x5c3be9,_0x14076d,_0x108802,_0x598b07,_0x4950a2,_0x321faa,_0x4d93ff,_0x428252){return _0x5c3be9(_0x14076d,_0x108802,_0x598b07,_0x4950a2,_0x321faa,_0x4d93ff,_0x428252);}};let _0x581f0e;try{if(_0x2d5cc3[_0x344054(0x1a7)](_0x2d5cc3[_0x344054(0x251)],_0x2d5cc3[_0x344054(0x20d)])){const {header:_0x386a3d,response:_0x23a28f}=_0x3e2624,{status:_0x2cc109,data:_0x8500df,error:_0x1b223d}=_0x23a28f;_0x5c6268+=_0x386a3d+'\x20#'+_0x2d5cc3[_0x344054(0x1d1)](_0x2d9875,0x1)+'\x0a',_0x2cc740+=_0x344054(0x1be)+(_0x2cc109?_0x2d5cc3['QImQl']:_0x2d5cc3['kjIid'])+'\x0a',_0x215c18+=_0x344054(0x1ec)+_0x2d5cc3[_0x344054(0x1cd)](_0x8500df,_0x2d5cc3['XfQVQ'])+'\x0a',_0x1b223d&&(_0x53c8d3+=_0x2d5cc3[_0x344054(0x215)],_0x37941a+=_0x344054(0x174)+(_0x1b223d[_0x344054(0x1f6)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a',_0x13db00+=_0x344054(0x1c4)+(_0x1b223d[_0x344054(0x19b)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a',_0x4afe6b+=_0x344054(0x1a9)+(_0x1b223d[_0x344054(0x25b)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a'),_0x33ca2b+='\x0a\x0a';}else{if(_0x3e1852['clusterName']||_0x3e1852[_0x344054(0x20f)]||_0x3e1852[_0x344054(0x232)]){if(_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3['vFzht'],_0x2d5cc3[_0x344054(0x1ef)])){const _0x554de9={};_0x554de9[_0x344054(0x214)]=_0x35704f[_0x344054(0x1fc)],_0x554de9[_0x344054(0x1f6)]=_0x5cdb09,_0xd31c7[_0x344054(0x1b3)](_0x56b467,_0x554de9,_0x2d5cc3[_0x344054(0x19a)],!![]);}else{const _0x1bc994=[];!_0x3e1852[_0x344054(0x1e3)]&&(_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3[_0x344054(0x20c)],_0x2d5cc3[_0x344054(0x265)])?_0x1bc994[_0x344054(0x178)](_0x2d5cc3[_0x344054(0x195)]):_0x1173d0+=_0x344054(0x1e8)+_0x4ba901[_0x344054(0x1e3)]+_0x344054(0x19c));;!_0x3e1852[_0x344054(0x20f)]&&(_0x2d5cc3['NVMXT'](_0x2d5cc3['LfbtH'],_0x2d5cc3[_0x344054(0x18e)])?_0x1bc994[_0x344054(0x178)](_0x2d5cc3['kVNWj']):_0x41585b[_0x344054(0x178)](_0x2d5cc3['JoCZY']));;if(!_0x3e1852[_0x344054(0x232)]){if(_0x2d5cc3[_0x344054(0x1e0)](_0x2d5cc3[_0x344054(0x19f)],_0x2d5cc3[_0x344054(0x19f)]))_0x1bc994[_0x344054(0x178)](_0x2d5cc3[_0x344054(0x193)]);else{const _0xf005ec={};_0xf005ec[_0x344054(0x24c)]=_0x2d5cc3['BSsAZ'],_0xf005ec[_0x344054(0x214)]=_0x2d5cc3['ZuqEN'];const _0x15307d={};_0x15307d[_0x344054(0x24c)]=_0x2d5cc3['sYiTF'],_0x15307d[_0x344054(0x214)]=_0x2d5cc3[_0x344054(0x22d)];const _0x113883={};_0x113883[_0x344054(0x24c)]=_0x2d5cc3[_0x344054(0x1ce)],_0x113883[_0x344054(0x214)]=_0x2d5cc3[_0x344054(0x22d)];const _0x2b6fbf={};_0x2b6fbf[_0x344054(0x24c)]=_0x2d5cc3[_0x344054(0x237)],_0x2b6fbf[_0x344054(0x214)]=_0x2d5cc3['ZuqEN'];const _0x2f3c7f={};return _0x2f3c7f[_0x344054(0x248)]=_0xf005ec,_0x2f3c7f['cloud-provider']=_0x15307d,_0x2f3c7f[_0x344054(0x232)]=_0x113883,_0x2f3c7f['grid-profile']=_0x2b6fbf,_0x3eeb58['usage'](_0x4357d6['pre_check'])[_0x344054(0x252)](_0xd803cc)['options'](_0x2f3c7f)['help'](_0x2d5cc3[_0x344054(0x1e7)])['argv'];}};_0x2d5cc3['npzFf'](_0x1bc994[_0x344054(0x1d0)],0x0)&&(_0x2d5cc3['cnmQC'](_0x2d5cc3['OyoDX'],_0x2d5cc3[_0x344054(0x17c)])?(_0x581f0e=_0x344054(0x218)+_0x1bc994[_0x344054(0x1bd)](',\x20')+'.\x20Please\x20provide\x20all\x20required\x20arguments.',await _0x2d5cc3[_0x344054(0x219)](reportToGalactusAndSendToEDS,_0x3e1852,_0x26b11b,_0x581f0e,messageTypes[_0x344054(0x17f)],_0x2d5cc3[_0x344054(0x1d8)],_0x2d5cc3[_0x344054(0x170)],_0x2d5cc3[_0x344054(0x19a)]),logger[_0x344054(0x22a)](_0x581f0e),process[_0x344054(0x249)](0x1)):_0x42df6d[_0x344054(0x191)](_0x344054(0x1a3)+_0x44af98[_0x344054(0x1e3)]+_0x344054(0x227))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x344054(0x257)](_0x3e1852[_0x344054(0x20f)][_0x344054(0x198)]())&&(_0x2d5cc3['NVMXT'](_0x2d5cc3[_0x344054(0x226)],_0x2d5cc3[_0x344054(0x226)])?_0x2441e0['exit'](0x1):(_0x581f0e=_0x2d5cc3[_0x344054(0x1f1)],await _0x2d5cc3[_0x344054(0x260)](reportToGalactusAndSendToEDS,_0x3e1852,_0x26b11b,_0x581f0e,messageTypes[_0x344054(0x17f)],_0x2d5cc3[_0x344054(0x1d8)],_0x2d5cc3[_0x344054(0x1d6)],_0x2d5cc3[_0x344054(0x19a)]),logger[_0x344054(0x22a)](_0x581f0e),!_0x3e1852[_0x344054(0x20f)]&&(_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3['qXbav'],_0x2d5cc3[_0x344054(0x18b)])?(_0x1a3cb6[_0x344054(0x191)](_0x344054(0x22c)+_0x2a92c3['CLOUD_PROVIDER']+'\x20'),_0x58354a[_0x344054(0x20f)]=_0x348d6d[_0x344054(0x172)]):(logger[_0x344054(0x191)](_0x344054(0x22c)+DEFAULT_CLUSTER_DETAILS[_0x344054(0x172)]+'\x20'),_0x3e1852[_0x344054(0x20f)]=DEFAULT_CLUSTER_DETAILS[_0x344054(0x172)])))),global_registry[_0x344054(0x1e3)]=_0x3e1852[_0x344054(0x1e3)],global_registry['cloudProvider']=_0x3e1852[_0x344054(0x20f)],global_registry[_0x344054(0x1f0)]=_0x3e1852['region'];}}else{if(_0x3e1852[_0x344054(0x223)]){if(_0x2d5cc3[_0x344054(0x1da)](_0x2d5cc3['NnAkQ'],_0x2d5cc3[_0x344054(0x1d7)])){global_registry['gridProfile']=_0x3e1852['gridProfile'],logger['debug'](_0x344054(0x18d)+_0x3e1852['gridProfile']);const _0x190899=_0x344054(0x1e1)+AG_API_URL+_0x344054(0x179),_0x4f2e99={};_0x4f2e99['method']=_0x2d5cc3[_0x344054(0x23b)],_0x4f2e99[_0x344054(0x205)]=global_registry[_0x344054(0x1d3)],_0x4f2e99['throwHttpErrors']=![];const _0x57ac2a=_0x4f2e99,_0x20e7a1=await _0x2d5cc3[_0x344054(0x1b2)](got,_0x190899,_0x57ac2a),_0x32199b=await _0x2d5cc3[_0x344054(0x255)](responseValidation,_0x20e7a1,_0x2d5cc3[_0x344054(0x23c)],_0x2d5cc3['SHElB'],_0x3e1852,_0x26b11b);let _0x5818c1={};if(_0x2d5cc3[_0x344054(0x1da)](_0x32199b,0xc8)){if(_0x2d5cc3[_0x344054(0x1a0)](_0x2d5cc3['CwYvV'],_0x2d5cc3[_0x344054(0x229)])){const _0x4d0aab=JSON[_0x344054(0x182)](_0x20e7a1[_0x344054(0x262)]),_0x55b6b1=_0x4d0aab[_0x344054(0x24e)](_0x25fee9=>_0x25fee9[_0x344054(0x1f3)]===_0x3e1852[_0x344054(0x223)])||null;_0x2d5cc3[_0x344054(0x1b4)](isUndefined,_0x55b6b1)?_0x2d5cc3['uUkwW'](_0x2d5cc3[_0x344054(0x22b)],_0x2d5cc3[_0x344054(0x22b)])?(_0x581f0e=_0x344054(0x190)+_0x3e1852[_0x344054(0x223)]+_0x344054(0x221),await _0x2d5cc3['QNWkO'](reportToGalactusAndSendToEDS,_0x3e1852,_0x26b11b,_0x581f0e,messageTypes[_0x344054(0x17f)],_0x2d5cc3[_0x344054(0x1d8)],_0x2d5cc3['mMALD'],_0x2d5cc3[_0x344054(0x19a)]),logger['error'](_0x581f0e),process[_0x344054(0x249)](0x1)):_0x29e50d[_0x344054(0x22a)](_0x344054(0x25c)+_0x4d99fe['error']['stack']):_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3[_0x344054(0x185)],_0x2d5cc3[_0x344054(0x185)])?_0x28659a['push'](_0x2d5cc3[_0x344054(0x193)]):_0x5818c1=_0x55b6b1;}else _0x109b19[_0x344054(0x191)]('['+_0x1f4739+']\x20status\x20:\x20'+_0x31a79f[_0x344054(0x1c3)]+_0x344054(0x222)+_0x81b84a['data']+_0x344054(0x250)+_0x2c3ef5[_0x344054(0x22a)]),_0x350329[_0x344054(0x22a)]&&_0x73b60c['error'](_0x344054(0x25c)+_0x5be569['error'][_0x344054(0x25b)]);}else _0x2d5cc3[_0x344054(0x1e0)](_0x2d5cc3['VFphr'],_0x2d5cc3[_0x344054(0x1b7)])?process['exit'](0x1):_0x5b0b81=_0x2a072a;const _0x7900b8={};_0x7900b8[_0x344054(0x214)]=WS_EVENTS[_0x344054(0x1fc)],_0x7900b8['message']=_0x2d5cc3['WKJpU'],webSocketUtils['sendEventToBackend'](_0x26b11b,_0x7900b8),global_registry['cloudProvider']=_0x5818c1['cloudProvider'],global_registry[_0x344054(0x1f0)]=_0x5818c1[_0x344054(0x232)],global_registry[_0x344054(0x1e3)]=_0x5818c1['clusterName'];}else _0x47de3f+=_0x344054(0x1e8)+_0x1f7e8c[_0x344054(0x1e3)]+'\x20'+(_0x4fa5b0?_0x2d5cc3[_0x344054(0x20e)]:_0x2d5cc3[_0x344054(0x202)])+'\x0a\x0a';}else _0x2d5cc3[_0x344054(0x1f2)](_0x2d5cc3[_0x344054(0x171)],_0x2d5cc3[_0x344054(0x1c1)])?(_0x4b4256[_0x344054(0x22a)](_0x2d5cc3[_0x344054(0x17b)]),_0x3682cc['exit'](0x1)):(logger[_0x344054(0x22a)](_0x2d5cc3['rAHJz']),process['exit'](0x1));}}}catch(_0x1127b2){_0x2d5cc3[_0x344054(0x247)](_0x2d5cc3[_0x344054(0x1bb)],_0x2d5cc3[_0x344054(0x1a6)])?(_0x581f0e=_0x344054(0x208)+_0x1127b2+':\x20'+_0x1127b2[_0x344054(0x25b)],logger['error'](_0x581f0e),await _0x2d5cc3[_0x344054(0x1b5)](reportToGalactusAndSendToEDS,_0x3e1852,_0x26b11b,_0x581f0e,messageTypes[_0x344054(0x17f)],_0x2d5cc3[_0x344054(0x1d8)],_0x2d5cc3[_0x344054(0x1d6)],_0x2d5cc3['AHTsM']),process[_0x344054(0x249)](0x1)):(_0x1563cd+=_0x2d5cc3[_0x344054(0x215)],_0x46a6bf+=_0x344054(0x174)+(_0x8c3db['message']||_0x2d5cc3['XfQVQ'])+'\x0a',_0x1262fa+='\x20\x20Code:\x20'+(_0x424ea9[_0x344054(0x19b)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a',_0x428621+=_0x344054(0x1a9)+(_0xf2c83[_0x344054(0x25b)]||_0x2d5cc3[_0x344054(0x1ac)])+'\x0a');}}function printResponse(_0x10814b,_0x22916a){const _0x3b78db=a17_0xe16171,_0x7dce3d={};_0x7dce3d[_0x3b78db(0x186)]=_0x3b78db(0x21e),_0x7dce3d['lCWEc']=function(_0x13face,_0x496a1a){return _0x13face!==_0x496a1a;},_0x7dce3d[_0x3b78db(0x17e)]=_0x3b78db(0x23f),_0x7dce3d[_0x3b78db(0x204)]=_0x3b78db(0x21a);const _0x3c5348=_0x7dce3d;logger[_0x3b78db(0x191)]('['+_0x10814b+_0x3b78db(0x1ea)+_0x22916a['status']+_0x3b78db(0x222)+_0x22916a[_0x3b78db(0x1de)]+_0x3b78db(0x250)+_0x22916a[_0x3b78db(0x22a)]),_0x22916a[_0x3b78db(0x22a)]&&(_0x3c5348[_0x3b78db(0x25a)](_0x3c5348[_0x3b78db(0x17e)],_0x3c5348[_0x3b78db(0x204)])?logger[_0x3b78db(0x22a)](_0x3b78db(0x25c)+_0x22916a[_0x3b78db(0x22a)][_0x3b78db(0x25b)]):_0x1cd541[_0x3b78db(0x178)](_0x3c5348[_0x3b78db(0x186)]));}async function generateReport(_0x511a2c,_0x410649){const _0x356c52=a17_0xe16171,_0x1711bd={'yNvAJ':function(_0x86026a,_0x18f860){return _0x86026a+_0x18f860;},'HTMWn':'Success','TWTOo':_0x356c52(0x228),'dcMGO':function(_0x5a77de,_0x4dfda3){return _0x5a77de||_0x4dfda3;},'zVBsv':_0x356c52(0x1ae),'DdZzI':'Error\x20Details:\x0a','eYNAq':'Cluster\x20details\x0a-----------------------\x0a','yXWtx':function(_0xf3c518,_0x51b3ed){return _0xf3c518!=_0x51b3ed;},'IBUbD':_0x356c52(0x1c9),'effTS':_0x356c52(0x256),'AxFWC':function(_0x53c70d){return _0x53c70d();}};let _0x52c3a0='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x356c52(0x20f)]+_0x356c52(0x259);return _0x511a2c['forEach']((_0xc20f16,_0xfe18ce)=>{const _0x15cf76=_0x356c52,{header:_0x22ce32,response:_0x4f7bba}=_0xc20f16,{status:_0x4ce368,data:_0x322069,error:_0x5ec05f}=_0x4f7bba;_0x52c3a0+=_0x22ce32+'\x20#'+_0x1711bd['yNvAJ'](_0xfe18ce,0x1)+'\x0a',_0x52c3a0+=_0x15cf76(0x1be)+(_0x4ce368?_0x1711bd[_0x15cf76(0x1dd)]:_0x1711bd['TWTOo'])+'\x0a',_0x52c3a0+=_0x15cf76(0x1ec)+_0x1711bd['dcMGO'](_0x322069,_0x1711bd[_0x15cf76(0x23a)])+'\x0a',_0x5ec05f&&(_0x52c3a0+=_0x1711bd['DdZzI'],_0x52c3a0+=_0x15cf76(0x174)+(_0x5ec05f[_0x15cf76(0x1f6)]||_0x1711bd['zVBsv'])+'\x0a',_0x52c3a0+=_0x15cf76(0x1c4)+(_0x5ec05f['code']||_0x1711bd[_0x15cf76(0x23a)])+'\x0a',_0x52c3a0+=_0x15cf76(0x1a9)+(_0x5ec05f[_0x15cf76(0x25b)]||_0x1711bd['zVBsv'])+'\x0a'),_0x52c3a0+='\x0a\x0a';}),_0x52c3a0+=_0x1711bd[_0x356c52(0x1f8)],_0x1711bd[_0x356c52(0x1a8)](_0x410649,null)?_0x52c3a0+=_0x356c52(0x1e8)+global_registry['clusterName']+'\x20'+(_0x410649?_0x1711bd[_0x356c52(0x1a5)]:_0x1711bd[_0x356c52(0x213)])+'\x0a\x0a':_0x52c3a0+='Cluster\x20'+global_registry['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x52c3a0+=_0x1711bd[_0x356c52(0x210)](getSystemMetaData),_0x52c3a0;};exports[a17_0xe16171(0x25d)]=async function(_0x3658f0){const _0x2dbe06=a17_0xe16171,_0x10250a={'eqNHg':function(_0x35ee26){return _0x35ee26();},'koxaj':function(_0x345609){return _0x345609();},'WiGmr':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hWVRE':function(_0x5f4893,_0x7c6120,_0x67b012,_0x516b0a,_0x4e9f4a,_0x485550,_0x360f17,_0x26e579){return _0x5f4893(_0x7c6120,_0x67b012,_0x516b0a,_0x4e9f4a,_0x485550,_0x360f17,_0x26e579);},'GggEd':'pre-check-grid-called','YaViu':_0x2dbe06(0x19e),'pPGly':_0x2dbe06(0x22a),'nRfRc':function(_0x445bac,_0x4fe190,_0x39917c,_0x4db49e,_0x2c870e,_0x2e153e,_0x143c20){return _0x445bac(_0x4fe190,_0x39917c,_0x4db49e,_0x2c870e,_0x2e153e,_0x143c20);},'NKHqV':function(_0x1cb084){return _0x1cb084();},'qGWMA':'<UsernamePlaceholder>','lhtZu':_0x2dbe06(0x1fe),'XdQEg':function(_0x5b4540,_0x43c765,_0x56560a){return _0x5b4540(_0x43c765,_0x56560a);},'uYqug':_0x2dbe06(0x200),'aOnjz':function(_0x4fb923,_0x55cdbb,_0x29e2d2){return _0x4fb923(_0x55cdbb,_0x29e2d2);},'PgNHx':'toolInstalledResp','KCRpu':'3|1|0|4|2','zXDUM':function(_0x392b48,_0x3d8bfc,_0x551262){return _0x392b48(_0x3d8bfc,_0x551262);},'JugQN':'accessResp','iuJkN':function(_0x410e22){return _0x410e22();},'bBLtW':'isTrialGridAccessible','YklgL':function(_0x174ad8,_0xb36c73){return _0x174ad8(_0xb36c73);},'YeQNa':'TLSv1_2_client_method','CYxKd':_0x2dbe06(0x239),'PpFrm':_0x2dbe06(0x1fd),'VfLCN':_0x2dbe06(0x194),'FXgZT':_0x2dbe06(0x234),'ONkTv':_0x2dbe06(0x23e),'nQGvy':function(_0x2a6c3a,_0x2ae540){return _0x2a6c3a+_0x2ae540;},'bFMiN':_0x2dbe06(0x209),'AcrdZ':function(_0x23be0f,_0x3b7e9b,_0xc407d8,_0x5bdf17,_0x1f0a9f,_0x51799e,_0x1dde85){return _0x23be0f(_0x3b7e9b,_0xc407d8,_0x5bdf17,_0x1f0a9f,_0x51799e,_0x1dde85);},'buBfS':_0x2dbe06(0x189)};let _0x812ce2,_0xdcde4e;try{global_registry['requestId']=_0x10250a['eqNHg'](uuidv4);!fs['existsSync'](_0x10250a[_0x2dbe06(0x176)](getCredentialsPath))&&(_0xdcde4e=_0x10250a[_0x2dbe06(0x1d9)],logger[_0x2dbe06(0x22a)](_0xdcde4e),await _0x10250a[_0x2dbe06(0x181)](reportToGalactusAndSendToEDS,_0x3658f0,_0x812ce2,_0xdcde4e,messageTypes['ERROR'],_0x10250a[_0x2dbe06(0x1c5)],_0x10250a['YaViu'],_0x10250a['pPGly']),process[_0x2dbe06(0x249)](0x1));_0x10250a['nRfRc'](sendInstrumentationEvent,_0x3658f0,_0x10250a[_0x2dbe06(0x1c5)],messageTypes[_0x2dbe06(0x1bc)],null,null,_0x3658f0);const _0x1c98ec=JSON[_0x2dbe06(0x182)](fs[_0x2dbe06(0x264)](_0x10250a[_0x2dbe06(0x24d)](getCredentialsPath)));global_registry[_0x2dbe06(0x17d)]=_0x1c98ec[_0x2dbe06(0x240)][_0x2dbe06(0x1af)],global_registry[_0x2dbe06(0x20b)]=_0x1c98ec[_0x2dbe06(0x240)]['password'];const _0x106331=WS_ENDPOINT[_0x2dbe06(0x22e)](_0x10250a[_0x2dbe06(0x1e9)],_0x1c98ec[_0x2dbe06(0x240)][_0x2dbe06(0x1af)])[_0x2dbe06(0x22e)](_0x10250a[_0x2dbe06(0x207)],_0x1c98ec[_0x2dbe06(0x240)][_0x2dbe06(0x1b8)]),_0x5c4c3b={};_0x5c4c3b['WebSocket']=ws,_0x5c4c3b[_0x2dbe06(0x201)]=0x36ee80,_0x812ce2=new ReconnectingWebSocket(_0x106331,[],_0x5c4c3b),global_registry[_0x2dbe06(0x1d3)]=_0x10250a[_0x2dbe06(0x216)](getAuthHeader,global_registry[_0x2dbe06(0x17d)],global_registry[_0x2dbe06(0x20b)]),await _0x10250a[_0x2dbe06(0x216)](inputValidation,_0x3658f0,_0x812ce2),logger[_0x2dbe06(0x191)](_0x2dbe06(0x1b6)+global_registry[_0x2dbe06(0x20f)]+_0x2dbe06(0x25e)+global_registry[_0x2dbe06(0x1f0)]);let _0x281b56=await _0x10250a[_0x2dbe06(0x1ff)](getCloudProviderObjectWithOutInit,global_registry[_0x2dbe06(0x20f)],global_registry[_0x2dbe06(0x1e3)],_0x10250a['uYqug'],_0x812ce2,webSocketUtils,_0x3658f0);const _0x3c3a1b=await _0x281b56[_0x2dbe06(0x1c6)]();_0x10250a['aOnjz'](printResponse,_0x10250a[_0x2dbe06(0x1c7)],_0x3c3a1b),_0x281b56=await _0x281b56[_0x2dbe06(0x18a)]();let _0x54cc89=![];try{_0x54cc89=await _0x281b56[_0x2dbe06(0x25f)]();}catch(_0x4b062f){const _0x2ee695=_0x10250a[_0x2dbe06(0x231)][_0x2dbe06(0x18c)]('|');let _0x27f334=0x0;while(!![]){switch(_0x2ee695[_0x27f334++]){case'0':logger[_0x2dbe06(0x22a)](_0xdcde4e);continue;case'1':_0x54cc89=null;continue;case'2':await _0x10250a[_0x2dbe06(0x181)](reportToGalactusAndSendToEDS,_0x3658f0,_0x812ce2,_0xdcde4e,messageTypes[_0x2dbe06(0x17f)],_0x10250a['GggEd'],'cluster-check-failed-'+global_registry[_0x2dbe06(0x20f)],_0x10250a[_0x2dbe06(0x1d4)]);continue;case'3':_0xdcde4e=_0x2dbe06(0x1e4)+global_registry['clusterName']+_0x2dbe06(0x1ca)+global_registry[_0x2dbe06(0x1f0)]+'`\x20,error\x20:\x20'+_0x4b062f;continue;case'4':_0xdcde4e+='\x0a'+JSON[_0x2dbe06(0x241)](_0x4b062f[_0x2dbe06(0x25b)]);continue;}break;}}_0x54cc89&&logger[_0x2dbe06(0x191)](_0x2dbe06(0x1a3)+global_registry[_0x2dbe06(0x1e3)]+_0x2dbe06(0x227));const _0x1b6df6=await _0x281b56[_0x2dbe06(0x1d2)]();_0x10250a['zXDUM'](printResponse,_0x10250a[_0x2dbe06(0x21b)],_0x1b6df6);const _0x413d7f=await _0x10250a['iuJkN'](curlRequest);_0x10250a[_0x2dbe06(0x175)](printResponse,_0x10250a['bBLtW'],_0x413d7f);const _0x3a0793=await _0x10250a['YklgL'](isTlsSupported,_0x10250a[_0x2dbe06(0x1bf)]);_0x10250a[_0x2dbe06(0x175)](printResponse,_0x10250a['CYxKd'],_0x3a0793);const _0x1af275={};_0x1af275[_0x2dbe06(0x261)]=_0x10250a[_0x2dbe06(0x1e2)],_0x1af275[_0x2dbe06(0x235)]=_0x3c3a1b;const _0x120321={};_0x120321[_0x2dbe06(0x261)]=_0x10250a[_0x2dbe06(0x177)],_0x120321[_0x2dbe06(0x235)]=_0x1b6df6;const _0x326e9f={};_0x326e9f[_0x2dbe06(0x261)]=_0x10250a[_0x2dbe06(0x1ee)],_0x326e9f[_0x2dbe06(0x235)]=_0x413d7f;const _0x15000a={};_0x15000a[_0x2dbe06(0x261)]=_0x10250a[_0x2dbe06(0x220)],_0x15000a[_0x2dbe06(0x235)]=_0x3a0793;const _0x2baed0=[_0x1af275,_0x120321,_0x326e9f,_0x15000a],_0x42c836=await _0x10250a['XdQEg'](generateReport,_0x2baed0,_0x54cc89),_0x27b25c=new Date(),_0x41a9f7=_0x27b25c[_0x2dbe06(0x203)]()+'_'+_0x10250a['nQGvy'](_0x27b25c[_0x2dbe06(0x1c2)](),0x1)+'_'+_0x27b25c['getUTCDate']()+'_'+_0x27b25c[_0x2dbe06(0x1f9)]()+'_'+_0x27b25c[_0x2dbe06(0x1e6)](),_0x4e276e=_0x2dbe06(0x211)+_0x41a9f7+_0x2dbe06(0x1ed);fs['writeFileSync'](_0x4e276e,_0x42c836,_0x10250a['bFMiN']),logger[_0x2dbe06(0x191)](_0x2dbe06(0x24b)+_0x4e276e),process['exit'](0x0);}catch(_0x51255f){let _0x1be24e=_0x2dbe06(0x263)+_0x51255f+'\x20';logger[_0x2dbe06(0x22a)](_0x1be24e),_0x1be24e+='\x0a'+JSON[_0x2dbe06(0x241)](_0x51255f[_0x2dbe06(0x25b)]),logger['debug']('stack\x20trace\x20'+_0x51255f['stack']);if(_0x812ce2){const _0x24f5e1={};_0x24f5e1[_0x2dbe06(0x214)]=WS_EVENTS[_0x2dbe06(0x1fc)],_0x24f5e1[_0x2dbe06(0x1f6)]=_0x1be24e,webSocketUtils[_0x2dbe06(0x1b3)](_0x812ce2,_0x24f5e1,_0x10250a[_0x2dbe06(0x1d4)],!![]);}await webSocketUtils[_0x2dbe06(0x254)](0x7d0);const _0x40e4ac={};_0x40e4ac[_0x2dbe06(0x22a)]=_0x1be24e,await _0x10250a[_0x2dbe06(0x184)](sendInstrumentationEvent,_0x3658f0,_0x10250a[_0x2dbe06(0x1c5)],messageTypes[_0x2dbe06(0x17f)],_0x10250a[_0x2dbe06(0x245)],_0x40e4ac,_0x3658f0),process['exit'](0x1);}};
1
+ const a17_0x48fb53=a17_0x2fac;(function(_0x1576af,_0x2e86c9){const _0x27c4cb=a17_0x2fac,_0x41bf97=_0x1576af();while(!![]){try{const _0x2ddf9c=-parseInt(_0x27c4cb(0x16f))/0x1*(parseInt(_0x27c4cb(0x174))/0x2)+parseInt(_0x27c4cb(0x1ea))/0x3+parseInt(_0x27c4cb(0x1d7))/0x4*(-parseInt(_0x27c4cb(0x197))/0x5)+-parseInt(_0x27c4cb(0x148))/0x6+parseInt(_0x27c4cb(0x1f6))/0x7*(parseInt(_0x27c4cb(0x1b4))/0x8)+parseInt(_0x27c4cb(0x1ed))/0x9*(parseInt(_0x27c4cb(0x135))/0xa)+-parseInt(_0x27c4cb(0x14c))/0xb*(-parseInt(_0x27c4cb(0x164))/0xc);if(_0x2ddf9c===_0x2e86c9)break;else _0x41bf97['push'](_0x41bf97['shift']());}catch(_0x1f9ed2){_0x41bf97['push'](_0x41bf97['shift']());}}}(a17_0x1743,0xd1d9f));const fs=require('fs'),ws=require('ws'),got=require(a17_0x48fb53(0x11f)),{v4:uuidv4}=require(a17_0x48fb53(0x1ce)),ReconnectingWebSocket=require(a17_0x48fb53(0xfd)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require('../../utils/utilityMethods'),{logger}=require(a17_0x48fb53(0x13e)),{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_0x48fb53(0x172)),{getCloudProviderObjectWithOutInit}=require(a17_0x48fb53(0x1c6)),webSocketUtils=require(a17_0x48fb53(0x108)),{sendInstrumentationEvent}=require(a17_0x48fb53(0x1d9));exports[a17_0x48fb53(0x16a)]=a17_0x48fb53(0x10c),exports[a17_0x48fb53(0x102)]=a17_0x48fb53(0x1ef),exports[a17_0x48fb53(0x1a4)]=function(_0x5b8a3c){const _0x548857=a17_0x48fb53,_0x536c2f={};_0x536c2f['ywssK']=_0x548857(0x17a),_0x536c2f[_0x548857(0x103)]='string',_0x536c2f[_0x548857(0x167)]=_0x548857(0x1ee),_0x536c2f['LAbGt']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x536c2f[_0x548857(0x100)]=_0x548857(0x111),_0x536c2f[_0x548857(0x130)]=_0x548857(0x1e9);const _0x49ebb4=_0x536c2f,_0xcc5608={};_0xcc5608[_0x548857(0x18c)]=_0x49ebb4[_0x548857(0x18a)],_0xcc5608[_0x548857(0x1e6)]=_0x49ebb4[_0x548857(0x103)];const _0xbdeeb4={};_0xbdeeb4[_0x548857(0x18c)]=_0x49ebb4[_0x548857(0x167)],_0xbdeeb4[_0x548857(0x1e6)]=_0x49ebb4[_0x548857(0x103)];const _0x47e059={};_0x47e059[_0x548857(0x18c)]=_0x49ebb4['LAbGt'],_0x47e059[_0x548857(0x1e6)]=_0x49ebb4[_0x548857(0x103)];const _0x51e155={};_0x51e155[_0x548857(0x18c)]=_0x49ebb4['SBrdR'],_0x51e155[_0x548857(0x1e6)]=_0x49ebb4['JtKKQ'];const _0x2bf44b={};return _0x2bf44b[_0x548857(0x1dd)]=_0xcc5608,_0x2bf44b[_0x548857(0x156)]=_0xbdeeb4,_0x2bf44b[_0x548857(0x161)]=_0x47e059,_0x2bf44b[_0x548857(0x19e)]=_0x51e155,_0x5b8a3c[_0x548857(0x109)](HELP_HEADER_MESSAGE['pre_check'])[_0x548857(0x117)](HELP_FOOTER_MESSAGE)['options'](_0x2bf44b)['help'](_0x49ebb4['jLnxk'])['argv'];};async function inputValidation(_0x16b2fa,_0x387a41){const _0x37ce88=a17_0x48fb53,_0x5d18a2={'OlqzE':_0x37ce88(0xf7),'xlTNt':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','JmKby':_0x37ce88(0x149),'QoZMC':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','dWLdN':_0x37ce88(0x1b1),'jGguX':_0x37ce88(0x111),'ClTqb':_0x37ce88(0x1e9),'LArxc':_0x37ce88(0x161),'yFbhx':_0x37ce88(0x156),'EAkzZ':_0x37ce88(0x129),'vWQvV':_0x37ce88(0x138),'NCeCf':'cluster-name','tMhbn':_0x37ce88(0x1ca),'ClVRH':_0x37ce88(0x15b),'llfLz':_0x37ce88(0x13b),'ViPXU':function(_0x48ea08,_0x16e9e9){return _0x48ea08!==_0x16e9e9;},'VExYs':_0x37ce88(0x1e2),'tJTjk':_0x37ce88(0x1c5),'ilMVi':function(_0x2d0b2c,_0x5065ee){return _0x2d0b2c===_0x5065ee;},'nrsab':_0x37ce88(0x1c9),'mHVDL':'agfbv','SLsrD':function(_0x2cbc37,_0x3152ce){return _0x2cbc37===_0x3152ce;},'WmqOs':_0x37ce88(0x171),'LMuXM':function(_0x56e7ba,_0x5372cf){return _0x56e7ba!==_0x5372cf;},'pErvC':_0x37ce88(0x10d),'PYdBf':'bMkLL','xnQiC':function(_0x22394e,_0x1263aa){return _0x22394e>_0x1263aa;},'rJuvw':_0x37ce88(0x155),'LcXiI':function(_0x2e7be6,_0x164d4c,_0x89395a,_0x2d401d,_0x28a613,_0x52de92,_0x5594e3,_0x36ff00){return _0x2e7be6(_0x164d4c,_0x89395a,_0x2d401d,_0x28a613,_0x52de92,_0x5594e3,_0x36ff00);},'HkVFb':_0x37ce88(0x1d6),'raOrO':'pre-check-cluster-args-not-passed','aBOhc':'xcEre','UTojG':_0x37ce88(0x12a),'nMwHw':_0x37ce88(0x185),'SJHWO':function(_0x83ce36,_0x558ec6){return _0x83ce36!==_0x558ec6;},'axXHg':_0x37ce88(0x1bb),'NMfWd':_0x37ce88(0x1e1),'NIAJi':function(_0x46f282,_0x8d44f4){return _0x46f282!==_0x8d44f4;},'zPXLm':_0x37ce88(0x173),'UxKVY':'GET','dZhjL':function(_0x47487e,_0x1ba2c9,_0x4daa81){return _0x47487e(_0x1ba2c9,_0x4daa81);},'jZEnq':function(_0x47cfb8,_0x5649e8,_0x47d0b2,_0x5b0185,_0x3399a5,_0xe12aed){return _0x47cfb8(_0x5649e8,_0x47d0b2,_0x5b0185,_0x3399a5,_0xe12aed);},'SJAaz':_0x37ce88(0x169),'hkvxQ':_0x37ce88(0x19e),'GAwhb':function(_0x168e3d,_0x55ed8d){return _0x168e3d===_0x55ed8d;},'ARhAD':function(_0x5bd4b7,_0x1d42ad){return _0x5bd4b7!==_0x1d42ad;},'QXoUQ':'syjDM','gyvAv':function(_0x2d2bad,_0x2c57aa){return _0x2d2bad(_0x2c57aa);},'vKVgY':function(_0x2d6d45,_0x155662){return _0x2d6d45===_0x155662;},'MvIsm':_0x37ce88(0x1e5),'eWXQj':_0x37ce88(0x1a1),'inNrk':function(_0xb3ad3c,_0x4bb4f1,_0x403223,_0x5ddf3c,_0xef924e,_0x473b4f,_0x384d26,_0x45696a){return _0xb3ad3c(_0x4bb4f1,_0x403223,_0x5ddf3c,_0xef924e,_0x473b4f,_0x384d26,_0x45696a);},'hBVJw':'pre-check-grid-profile-empty','QYWMX':function(_0x44829e,_0x4a5abc){return _0x44829e!==_0x4a5abc;},'yOicN':'nLroM','HMmGy':_0x37ce88(0x123),'VuJwC':function(_0x56a8ce,_0x4576cc){return _0x56a8ce!==_0x4576cc;},'TPGSL':'oimMk','FVueA':'TcbTU','BxVvI':_0x37ce88(0x170),'aAtNd':'dWNPq','smUNi':_0x37ce88(0x136),'IjhFP':function(_0x3b50a2,_0x43ca4a){return _0x3b50a2!==_0x43ca4a;},'DQNus':_0x37ce88(0x1b5)};let _0x257956;try{if(_0x5d18a2['ViPXU'](_0x5d18a2[_0x37ce88(0x1e8)],_0x5d18a2[_0x37ce88(0x1da)])){if(_0x16b2fa[_0x37ce88(0x1c8)]||_0x16b2fa[_0x37ce88(0x1b2)]||_0x16b2fa[_0x37ce88(0x161)]){if(_0x5d18a2[_0x37ce88(0x14d)](_0x5d18a2['nrsab'],_0x5d18a2[_0x37ce88(0x178)])){const _0x495205=[];if(!_0x16b2fa['clusterName']){if(_0x5d18a2[_0x37ce88(0x14d)](_0x5d18a2[_0x37ce88(0x17c)],_0x5d18a2[_0x37ce88(0x17c)]))_0x495205['push'](_0x5d18a2[_0x37ce88(0x139)]);else{const _0x3ed2fe={};_0x3ed2fe[_0x37ce88(0x1e6)]=_0x17d87f['LOG'],_0x3ed2fe[_0x37ce88(0x1a6)]=_0x25e070,_0x23d05e[_0x37ce88(0x14a)](_0x40746b,_0x3ed2fe,_0x5d18a2[_0x37ce88(0x184)],!![]);}};if(!_0x16b2fa['cloudProvider']){if(_0x5d18a2[_0x37ce88(0x1d0)](_0x5d18a2[_0x37ce88(0x1a9)],_0x5d18a2['WmqOs']))_0x495205[_0x37ce88(0x1d8)](_0x5d18a2['yFbhx']);else{const _0x452d90={};_0x452d90[_0x37ce88(0x18c)]=_0x5d18a2[_0x37ce88(0x10f)],_0x452d90[_0x37ce88(0x1e6)]=_0x5d18a2[_0x37ce88(0x1db)];const _0x52faff={};_0x52faff['description']=_0x5d18a2['QoZMC'],_0x52faff['type']=_0x5d18a2[_0x37ce88(0x1db)];const _0x1223c5={};_0x1223c5[_0x37ce88(0x18c)]=_0x5d18a2['dWLdN'],_0x1223c5['type']=_0x5d18a2[_0x37ce88(0x1db)];const _0x2785bd={};_0x2785bd[_0x37ce88(0x18c)]=_0x5d18a2['jGguX'],_0x2785bd['type']=_0x5d18a2['JmKby'];const _0x5b1fc2={};return _0x5b1fc2['cluster-name']=_0x452d90,_0x5b1fc2[_0x37ce88(0x156)]=_0x52faff,_0x5b1fc2[_0x37ce88(0x161)]=_0x1223c5,_0x5b1fc2[_0x37ce88(0x19e)]=_0x2785bd,_0x1c9d93['usage'](_0x161852[_0x37ce88(0x112)])[_0x37ce88(0x117)](_0x2ac056)[_0x37ce88(0x18e)](_0x5b1fc2)['help'](_0x5d18a2[_0x37ce88(0x124)])['argv'];}};!_0x16b2fa[_0x37ce88(0x161)]&&(_0x5d18a2['LMuXM'](_0x5d18a2[_0x37ce88(0x120)],_0x5d18a2['PYdBf'])?_0x495205[_0x37ce88(0x1d8)](_0x5d18a2[_0x37ce88(0x122)]):(_0x31f96c[_0x37ce88(0x14e)]('Setting\x20cloud\x20provider\x20as\x20'+_0x4973de[_0x37ce88(0x166)]+'\x20'),_0x58cefe[_0x37ce88(0x1b2)]=_0x5eebdb[_0x37ce88(0x166)]));;_0x5d18a2[_0x37ce88(0x142)](_0x495205[_0x37ce88(0x1df)],0x0)&&(_0x5d18a2[_0x37ce88(0x15f)](_0x5d18a2[_0x37ce88(0x1d2)],_0x5d18a2[_0x37ce88(0x1d2)])?_0x3c96e4['info'](_0x37ce88(0x13c)+_0x19973d['clusterName']+_0x37ce88(0x1c7)):(_0x257956=_0x37ce88(0x16c)+_0x495205[_0x37ce88(0x13f)](',\x20')+_0x37ce88(0x11d),await _0x5d18a2[_0x37ce88(0x1c3)](reportToGalactusAndSendToEDS,_0x16b2fa,_0x387a41,_0x257956,messageTypes['ERROR'],_0x5d18a2[_0x37ce88(0xfb)],_0x5d18a2[_0x37ce88(0x1bc)],_0x5d18a2[_0x37ce88(0x184)]),logger[_0x37ce88(0xf7)](_0x257956),process[_0x37ce88(0x177)](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS['includes'](_0x16b2fa['cloudProvider'][_0x37ce88(0x195)]())&&(_0x5d18a2[_0x37ce88(0x14d)](_0x5d18a2[_0x37ce88(0x188)],_0x5d18a2['aBOhc'])?(_0x257956=_0x5d18a2[_0x37ce88(0x16d)],await _0x5d18a2['LcXiI'](reportToGalactusAndSendToEDS,_0x16b2fa,_0x387a41,_0x257956,messageTypes[_0x37ce88(0x153)],_0x5d18a2[_0x37ce88(0xfb)],_0x5d18a2[_0x37ce88(0x143)],_0x5d18a2[_0x37ce88(0x184)]),logger['error'](_0x257956),!_0x16b2fa[_0x37ce88(0x1b2)]&&(_0x5d18a2[_0x37ce88(0x1ad)](_0x5d18a2[_0x37ce88(0x15d)],_0x5d18a2[_0x37ce88(0x133)])?(logger[_0x37ce88(0x14e)](_0x37ce88(0x191)+DEFAULT_CLUSTER_DETAILS[_0x37ce88(0x166)]+'\x20'),_0x16b2fa['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x37ce88(0x166)]):_0x1d3a3e['push'](_0x5d18a2['LArxc']))):_0x2f9d9e[_0x37ce88(0xf7)](_0x37ce88(0x1eb)+_0x426624[_0x37ce88(0xf7)][_0x37ce88(0x137)])),global_registry[_0x37ce88(0x1c8)]=_0x16b2fa[_0x37ce88(0x1c8)],global_registry[_0x37ce88(0x1b2)]=_0x16b2fa[_0x37ce88(0x1b2)],global_registry[_0x37ce88(0x16b)]=_0x16b2fa[_0x37ce88(0x161)];}else _0x23f7e8+=_0x37ce88(0x127)+_0x597744['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a';}else{if(_0x16b2fa[_0x37ce88(0xfc)]){if(_0x5d18a2[_0x37ce88(0x1a0)](_0x5d18a2[_0x37ce88(0x1f0)],_0x5d18a2[_0x37ce88(0x1f0)]))_0x2ceb72=_0x4a18db;else{global_registry[_0x37ce88(0xfc)]=_0x16b2fa[_0x37ce88(0xfc)],logger[_0x37ce88(0x121)](_0x37ce88(0xfe)+_0x16b2fa[_0x37ce88(0xfc)]);const _0x401125='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x439b60={};_0x439b60[_0x37ce88(0x175)]=_0x5d18a2[_0x37ce88(0x1ba)],_0x439b60[_0x37ce88(0x1d3)]=global_registry[_0x37ce88(0x141)],_0x439b60['throwHttpErrors']=![];const _0x36572d=_0x439b60,_0x47324b=await _0x5d18a2[_0x37ce88(0x14b)](got,_0x401125,_0x36572d),_0x7b08f5=await _0x5d18a2[_0x37ce88(0x119)](responseValidation,_0x47324b,_0x5d18a2[_0x37ce88(0x17d)],_0x5d18a2[_0x37ce88(0x131)],_0x16b2fa,_0x387a41);let _0x437203={};if(_0x5d18a2[_0x37ce88(0x18b)](_0x7b08f5,0xc8)){if(_0x5d18a2[_0x37ce88(0x1de)](_0x5d18a2['QXoUQ'],_0x5d18a2['QXoUQ']))_0x4cfb74[_0x37ce88(0x1d8)](_0x5d18a2['yFbhx']);else{const _0x5c49cf=JSON[_0x37ce88(0x198)](_0x47324b[_0x37ce88(0x162)]),_0x485537=_0x5c49cf[_0x37ce88(0x19c)](_0x2f9408=>_0x2f9408[_0x37ce88(0x115)]===_0x16b2fa[_0x37ce88(0xfc)])||null;_0x5d18a2[_0x37ce88(0x1f4)](isUndefined,_0x485537)?_0x5d18a2[_0x37ce88(0x11e)](_0x5d18a2[_0x37ce88(0x183)],_0x5d18a2[_0x37ce88(0x181)])?(_0x2ae668+=_0x5d18a2[_0x37ce88(0x194)],_0xdaee52+=_0x37ce88(0x1e4)+(_0x3b0d37[_0x37ce88(0x1a6)]||_0x5d18a2[_0x37ce88(0x18f)])+'\x0a',_0x107f23+=_0x37ce88(0x12e)+(_0xd76c3[_0x37ce88(0x180)]||_0x5d18a2[_0x37ce88(0x18f)])+'\x0a',_0x2bd504+=_0x37ce88(0x18d)+(_0x3176be[_0x37ce88(0x137)]||_0x5d18a2[_0x37ce88(0x18f)])+'\x0a'):(_0x257956='Invalid\x20input.\x20grid\x20profiles:\x20'+_0x16b2fa[_0x37ce88(0xfc)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x5d18a2[_0x37ce88(0x107)](reportToGalactusAndSendToEDS,_0x16b2fa,_0x387a41,_0x257956,messageTypes[_0x37ce88(0x153)],_0x5d18a2[_0x37ce88(0xfb)],_0x5d18a2['hBVJw'],_0x5d18a2[_0x37ce88(0x184)]),logger[_0x37ce88(0xf7)](_0x257956),process[_0x37ce88(0x177)](0x1)):_0x5d18a2[_0x37ce88(0x13a)](_0x5d18a2['yOicN'],_0x5d18a2[_0x37ce88(0x1c1)])?_0x437203=_0x485537:_0x2c2d11[_0x37ce88(0x177)](0x1);}}else _0x5d18a2[_0x37ce88(0x1b9)](_0x5d18a2[_0x37ce88(0x16e)],_0x5d18a2['FVueA'])?process['exit'](0x1):_0x5391c2[_0x37ce88(0x1d8)](_0x5d18a2[_0x37ce88(0x139)]);const _0x5581f7={};_0x5581f7[_0x37ce88(0x1e6)]=WS_EVENTS[_0x37ce88(0x146)],_0x5581f7[_0x37ce88(0x1a6)]=_0x5d18a2[_0x37ce88(0x1a5)],webSocketUtils[_0x37ce88(0x14a)](_0x387a41,_0x5581f7),global_registry[_0x37ce88(0x1b2)]=_0x437203['cloudProvider'],global_registry[_0x37ce88(0x16b)]=_0x437203[_0x37ce88(0x161)],global_registry[_0x37ce88(0x1c8)]=_0x437203[_0x37ce88(0x1c8)];}}else _0x5d18a2[_0x37ce88(0x1de)](_0x5d18a2[_0x37ce88(0x1af)],_0x5d18a2[_0x37ce88(0x1a2)])?(logger['error'](_0x5d18a2[_0x37ce88(0x151)]),process['exit'](0x1)):(_0x3771f7[_0x37ce88(0x14e)]('['+_0x4d0bb9+_0x37ce88(0x113)+_0x2d3e88[_0x37ce88(0x157)]+'\x20data\x20:\x20'+_0x398940[_0x37ce88(0x165)]+_0x37ce88(0x196)+_0xda86b1['error']),_0x156db8[_0x37ce88(0xf7)]&&_0x4b58a0[_0x37ce88(0xf7)](_0x37ce88(0x1eb)+_0x1ac5f4[_0x37ce88(0xf7)][_0x37ce88(0x137)]));}}else _0x43b84a+=_0x37ce88(0x127)+_0x198d7c[_0x37ce88(0x1c8)]+'\x20'+(_0x54a4d0?_0x5d18a2[_0x37ce88(0x1ae)]:_0x5d18a2['ClVRH'])+'\x0a\x0a';}catch(_0x59787a){_0x5d18a2[_0x37ce88(0x19f)](_0x5d18a2[_0x37ce88(0x1c4)],_0x5d18a2[_0x37ce88(0x1c4)])?(_0x351457['error'](_0x5d18a2[_0x37ce88(0x151)]),_0x77f576[_0x37ce88(0x177)](0x1)):(_0x257956=_0x37ce88(0x114)+_0x59787a+':\x20'+_0x59787a[_0x37ce88(0x137)],logger[_0x37ce88(0xf7)](_0x257956),await _0x5d18a2[_0x37ce88(0x107)](reportToGalactusAndSendToEDS,_0x16b2fa,_0x387a41,_0x257956,messageTypes[_0x37ce88(0x153)],_0x5d18a2['HkVFb'],_0x5d18a2['nMwHw'],_0x5d18a2[_0x37ce88(0x184)]),process['exit'](0x1));}}function printResponse(_0x4f351c,_0x2f2b3c){const _0x224d4d=a17_0x48fb53,_0x26b50c={};_0x26b50c[_0x224d4d(0x19d)]=function(_0x3d980c,_0x4c0cc7){return _0x3d980c+_0x4c0cc7;},_0x26b50c[_0x224d4d(0x1c0)]=_0x224d4d(0xf9),_0x26b50c[_0x224d4d(0x19b)]=_0x224d4d(0x110),_0x26b50c['seQQS']=function(_0x32d651,_0x3a384c){return _0x32d651||_0x3a384c;},_0x26b50c[_0x224d4d(0x1b3)]=_0x224d4d(0x138),_0x26b50c['fNFQX']=_0x224d4d(0x129),_0x26b50c['UcXVj']=function(_0x3cf046,_0x2c5e77){return _0x3cf046!==_0x2c5e77;},_0x26b50c[_0x224d4d(0x1be)]=_0x224d4d(0x12d);const _0xe16817=_0x26b50c;logger[_0x224d4d(0x14e)]('['+_0x4f351c+_0x224d4d(0x113)+_0x2f2b3c[_0x224d4d(0x157)]+_0x224d4d(0x144)+_0x2f2b3c[_0x224d4d(0x165)]+_0x224d4d(0x196)+_0x2f2b3c[_0x224d4d(0xf7)]);if(_0x2f2b3c['error']){if(_0xe16817['UcXVj'](_0xe16817['kRGbc'],_0xe16817[_0x224d4d(0x1be)])){const {header:_0x38c804,response:_0x2241b5}=_0x59cbad,{status:_0x105158,data:_0x1c971e,error:_0x2b2041}=_0x2241b5;_0x91fcec+=_0x38c804+'\x20#'+_0xe16817['MylTL'](_0x17edf8,0x1)+'\x0a',_0x3db71c+=_0x224d4d(0x179)+(_0x105158?_0xe16817[_0x224d4d(0x1c0)]:_0xe16817[_0x224d4d(0x19b)])+'\x0a',_0x9a2bac+=_0x224d4d(0x1b7)+_0xe16817['seQQS'](_0x1c971e,_0xe16817['JAXiD'])+'\x0a',_0x2b2041&&(_0x32c585+=_0xe16817[_0x224d4d(0x118)],_0x36f2ba+=_0x224d4d(0x1e4)+(_0x2b2041['message']||_0xe16817['JAXiD'])+'\x0a',_0x36c2fc+=_0x224d4d(0x12e)+(_0x2b2041['code']||_0xe16817[_0x224d4d(0x1b3)])+'\x0a',_0x58f1de+=_0x224d4d(0x18d)+(_0x2b2041[_0x224d4d(0x137)]||_0xe16817[_0x224d4d(0x1b3)])+'\x0a'),_0x3e8b6b+='\x0a\x0a';}else logger['error'](_0x224d4d(0x1eb)+_0x2f2b3c[_0x224d4d(0xf7)][_0x224d4d(0x137)]);}}async function generateReport(_0x230874,_0x1c2c7a){const _0x58791a=a17_0x48fb53,_0x4ab100={'fLOUa':function(_0x5009c7,_0x29d24e){return _0x5009c7+_0x29d24e;},'plgSC':'Success','JsBbS':_0x58791a(0x110),'ZmfGg':function(_0x97a47d,_0x1b423b){return _0x97a47d||_0x1b423b;},'PdEoX':'N/A','FWEKg':_0x58791a(0x129),'ZYNuP':'Cluster\x20details\x0a-----------------------\x0a','hHimb':function(_0x479c34,_0x683400){return _0x479c34!=_0x683400;},'qhHGH':'is\x20already\x20present','viVgT':_0x58791a(0x15b),'iylDE':function(_0x148289){return _0x148289();}};let _0x3be1ee='===\x20Precheck\x20Report\x20-\x20'+global_registry['cloudProvider']+_0x58791a(0x1e7);return _0x230874[_0x58791a(0x105)]((_0x4b7ff5,_0x416386)=>{const _0x157a71=_0x58791a,{header:_0x19e7d4,response:_0x200a18}=_0x4b7ff5,{status:_0x203aac,data:_0x322f4e,error:_0x5bfbb4}=_0x200a18;_0x3be1ee+=_0x19e7d4+'\x20#'+_0x4ab100[_0x157a71(0x134)](_0x416386,0x1)+'\x0a',_0x3be1ee+=_0x157a71(0x179)+(_0x203aac?_0x4ab100['plgSC']:_0x4ab100[_0x157a71(0x152)])+'\x0a',_0x3be1ee+=_0x157a71(0x1b7)+_0x4ab100[_0x157a71(0x1aa)](_0x322f4e,_0x4ab100[_0x157a71(0x17f)])+'\x0a',_0x5bfbb4&&(_0x3be1ee+=_0x4ab100[_0x157a71(0x1bf)],_0x3be1ee+=_0x157a71(0x1e4)+(_0x5bfbb4[_0x157a71(0x1a6)]||_0x4ab100[_0x157a71(0x17f)])+'\x0a',_0x3be1ee+='\x20\x20Code:\x20'+(_0x5bfbb4[_0x157a71(0x180)]||_0x4ab100[_0x157a71(0x17f)])+'\x0a',_0x3be1ee+='\x20\x20Stack:\x20'+(_0x5bfbb4[_0x157a71(0x137)]||_0x4ab100[_0x157a71(0x17f)])+'\x0a'),_0x3be1ee+='\x0a\x0a';}),_0x3be1ee+=_0x4ab100[_0x58791a(0x14f)],_0x4ab100[_0x58791a(0x1f1)](_0x1c2c7a,null)?_0x3be1ee+=_0x58791a(0x127)+global_registry[_0x58791a(0x1c8)]+'\x20'+(_0x1c2c7a?_0x4ab100[_0x58791a(0x15c)]:_0x4ab100[_0x58791a(0x11b)])+'\x0a\x0a':_0x3be1ee+=_0x58791a(0x127)+global_registry[_0x58791a(0x1c8)]+_0x58791a(0x186),_0x3be1ee+=_0x4ab100[_0x58791a(0x1cd)](getSystemMetaData),_0x3be1ee;};exports['handler']=async function(_0x58539d){const _0x27c845=a17_0x48fb53,_0x2264a2={'OhGSW':function(_0x14097e){return _0x14097e();},'NKDCs':function(_0x1a9e62){return _0x1a9e62();},'vSGNT':_0x27c845(0x1a7),'Kyckb':function(_0x30d428,_0x1bba7f,_0x114b1c,_0x18489f,_0xf6d275,_0x3949dd,_0x3f6ea8,_0x451f96){return _0x30d428(_0x1bba7f,_0x114b1c,_0x18489f,_0xf6d275,_0x3949dd,_0x3f6ea8,_0x451f96);},'oSzlp':'pre-check-grid-called','GMban':'credential-not-found','xlHEE':_0x27c845(0xf7),'PdDjG':function(_0x1703de,_0x5e18d7,_0x220169,_0x49c011,_0x1c2bc3,_0x1645da,_0x855d73){return _0x1703de(_0x5e18d7,_0x220169,_0x49c011,_0x1c2bc3,_0x1645da,_0x855d73);},'aSlhR':_0x27c845(0xfa),'hbWfT':_0x27c845(0x147),'IvUIZ':function(_0x30aa0f,_0x4412db,_0x4931e7){return _0x30aa0f(_0x4412db,_0x4931e7);},'dLApt':_0x27c845(0x1c2),'PRfGn':function(_0x41c0d4,_0x1e1d4d,_0x99b2f4){return _0x41c0d4(_0x1e1d4d,_0x99b2f4);},'ryRfw':'toolInstalledResp','WLuDw':_0x27c845(0x187),'baNlo':function(_0xc49658,_0x53fa7b,_0x12b1fb,_0xe8281f,_0x2ec473,_0x32fba8,_0x9dff98,_0x4fbd9e){return _0xc49658(_0x53fa7b,_0x12b1fb,_0xe8281f,_0x2ec473,_0x32fba8,_0x9dff98,_0x4fbd9e);},'cVkEa':function(_0x47dec3,_0x5994d8,_0x52a68a){return _0x47dec3(_0x5994d8,_0x52a68a);},'UMauC':_0x27c845(0x13d),'FXJKo':function(_0x11660c){return _0x11660c();},'xgrOw':_0x27c845(0x1b8),'ykqOq':function(_0x420706,_0x1a9b8b){return _0x420706(_0x1a9b8b);},'TzClk':'TLSv1_2_client_method','xnZny':'isTls1_2_SUPPORTED','IoEBx':_0x27c845(0x176),'cIvCh':_0x27c845(0x1bd),'Lexpy':_0x27c845(0x101),'JqGms':_0x27c845(0x199),'zdGMQ':function(_0x398ba9,_0x264253){return _0x398ba9+_0x264253;},'TSYCV':_0x27c845(0x1b6),'upoHo':_0x27c845(0x10e)};let _0x1fb5b7,_0x368fc8;try{global_registry[_0x27c845(0x125)]=_0x2264a2[_0x27c845(0x12b)](uuidv4);!fs['existsSync'](_0x2264a2['NKDCs'](getCredentialsPath))&&(_0x368fc8=_0x2264a2['vSGNT'],logger[_0x27c845(0xf7)](_0x368fc8),await _0x2264a2['Kyckb'](reportToGalactusAndSendToEDS,_0x58539d,_0x1fb5b7,_0x368fc8,messageTypes[_0x27c845(0x153)],_0x2264a2[_0x27c845(0xff)],_0x2264a2['GMban'],_0x2264a2['xlHEE']),process[_0x27c845(0x177)](0x1));_0x2264a2[_0x27c845(0x1d1)](sendInstrumentationEvent,_0x58539d,_0x2264a2[_0x27c845(0xff)],messageTypes[_0x27c845(0x106)],null,null,_0x58539d);const _0x5b7329=JSON[_0x27c845(0x198)](fs[_0x27c845(0x1dc)](_0x2264a2[_0x27c845(0x12b)](getCredentialsPath)));global_registry[_0x27c845(0x168)]=_0x5b7329[_0x27c845(0x1d5)][_0x27c845(0x116)],global_registry[_0x27c845(0x192)]=_0x5b7329[_0x27c845(0x1d5)][_0x27c845(0x1ab)];const _0x95eaf7=WS_ENDPOINT[_0x27c845(0x160)](_0x2264a2[_0x27c845(0x11a)],_0x5b7329[_0x27c845(0x1d5)]['username'])['replace'](_0x2264a2[_0x27c845(0x158)],_0x5b7329[_0x27c845(0x1d5)][_0x27c845(0x1ab)]),_0x2f7aeb={};_0x2f7aeb['WebSocket']=ws,_0x2f7aeb[_0x27c845(0x10a)]=0x36ee80,_0x1fb5b7=new ReconnectingWebSocket(_0x95eaf7,[],_0x2f7aeb),global_registry['authHeader']=_0x2264a2[_0x27c845(0x126)](getAuthHeader,global_registry[_0x27c845(0x168)],global_registry[_0x27c845(0x192)]),await _0x2264a2['IvUIZ'](inputValidation,_0x58539d,_0x1fb5b7),logger[_0x27c845(0x14e)](_0x27c845(0x1ec)+global_registry[_0x27c845(0x1b2)]+_0x27c845(0x1b0)+global_registry[_0x27c845(0x16b)]);let _0x4c0fbb=await _0x2264a2[_0x27c845(0x1d1)](getCloudProviderObjectWithOutInit,global_registry['cloudProvider'],global_registry[_0x27c845(0x1c8)],_0x2264a2[_0x27c845(0x163)],_0x1fb5b7,webSocketUtils,_0x58539d);const _0x266154=await _0x4c0fbb['isCliToolInstalled']();_0x2264a2[_0x27c845(0xf8)](printResponse,_0x2264a2[_0x27c845(0x10b)],_0x266154),_0x4c0fbb=await _0x4c0fbb[_0x27c845(0x1cb)]();let _0x2a739f=![];try{_0x2a739f=await _0x4c0fbb['isClusterPresent']();}catch(_0x377438){const _0x49fa04=_0x2264a2[_0x27c845(0x1ac)][_0x27c845(0x1f5)]('|');let _0x1ebf4b=0x0;while(!![]){switch(_0x49fa04[_0x1ebf4b++]){case'0':_0x368fc8+='\x0a'+JSON[_0x27c845(0x132)](_0x377438[_0x27c845(0x137)]);continue;case'1':await _0x2264a2[_0x27c845(0x1a8)](reportToGalactusAndSendToEDS,_0x58539d,_0x1fb5b7,_0x368fc8,messageTypes[_0x27c845(0x153)],_0x2264a2[_0x27c845(0xff)],'cluster-check-failed-'+global_registry[_0x27c845(0x1b2)],_0x2264a2[_0x27c845(0x1e0)]);continue;case'2':logger[_0x27c845(0xf7)](_0x368fc8);continue;case'3':_0x368fc8=_0x27c845(0x193)+global_registry[_0x27c845(0x1c8)]+_0x27c845(0x1a3)+global_registry[_0x27c845(0x16b)]+_0x27c845(0x150)+_0x377438;continue;case'4':_0x2a739f=null;continue;}break;}}_0x2a739f&&logger[_0x27c845(0x14e)](_0x27c845(0x13c)+global_registry[_0x27c845(0x1c8)]+_0x27c845(0x1c7));const _0x5c3a15=await _0x4c0fbb[_0x27c845(0x140)]();_0x2264a2[_0x27c845(0x12c)](printResponse,_0x2264a2['UMauC'],_0x5c3a15);const _0x359dd7=await _0x2264a2[_0x27c845(0x1f2)](curlRequest);_0x2264a2[_0x27c845(0x126)](printResponse,_0x2264a2[_0x27c845(0x1e3)],_0x359dd7);const _0xe41ee7=await _0x2264a2['ykqOq'](isTlsSupported,_0x2264a2[_0x27c845(0x11c)]);_0x2264a2[_0x27c845(0x126)](printResponse,_0x2264a2[_0x27c845(0x189)],_0xe41ee7);const _0x37f579={};_0x37f579[_0x27c845(0x19a)]=_0x2264a2[_0x27c845(0x128)],_0x37f579[_0x27c845(0x159)]=_0x266154;const _0x3fb25f={};_0x3fb25f[_0x27c845(0x19a)]=_0x2264a2[_0x27c845(0x182)],_0x3fb25f[_0x27c845(0x159)]=_0x5c3a15;const _0x1193c4={};_0x1193c4[_0x27c845(0x19a)]=_0x2264a2['Lexpy'],_0x1193c4['response']=_0x359dd7;const _0x695219={};_0x695219['header']=_0x2264a2[_0x27c845(0x154)],_0x695219['response']=_0xe41ee7;const _0x5676d0=[_0x37f579,_0x3fb25f,_0x1193c4,_0x695219],_0xc8ee76=await _0x2264a2[_0x27c845(0x126)](generateReport,_0x5676d0,_0x2a739f),_0x47d931=new Date(),_0x334c71=_0x47d931[_0x27c845(0x190)]()+'_'+_0x2264a2[_0x27c845(0x17b)](_0x47d931[_0x27c845(0x17e)](),0x1)+'_'+_0x47d931[_0x27c845(0x104)]()+'_'+_0x47d931[_0x27c845(0x145)]()+'_'+_0x47d931[_0x27c845(0x1f3)](),_0x19f695='log/report_'+_0x334c71+'.txt';fs[_0x27c845(0x1d4)](_0x19f695,_0xc8ee76,_0x2264a2[_0x27c845(0x1cf)]),logger[_0x27c845(0x14e)](_0x27c845(0x15e)+_0x19f695),process[_0x27c845(0x177)](0x0);}catch(_0x39e488){let _0x139bfd='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x39e488+'\x20';logger[_0x27c845(0xf7)](_0x139bfd),_0x139bfd+='\x0a'+JSON[_0x27c845(0x132)](_0x39e488[_0x27c845(0x137)]),logger['debug'](_0x27c845(0x15a)+_0x39e488['stack']);if(_0x1fb5b7){const _0x52797c={};_0x52797c['type']=WS_EVENTS[_0x27c845(0x146)],_0x52797c['message']=_0x139bfd,webSocketUtils[_0x27c845(0x14a)](_0x1fb5b7,_0x52797c,_0x2264a2[_0x27c845(0x1e0)],!![]);}await webSocketUtils[_0x27c845(0x12f)](0x7d0);const _0x2664cf={};_0x2664cf[_0x27c845(0xf7)]=_0x139bfd,await _0x2264a2[_0x27c845(0x1d1)](sendInstrumentationEvent,_0x58539d,_0x2264a2[_0x27c845(0xff)],messageTypes['ERROR'],_0x2264a2[_0x27c845(0x1cc)],_0x2664cf,_0x58539d),process['exit'](0x1);}};function a17_0x2fac(_0x3945f0,_0x543621){const _0x1743d0=a17_0x1743();return a17_0x2fac=function(_0x2fac47,_0x431bff){_0x2fac47=_0x2fac47-0xf7;let _0x31dfc8=_0x1743d0[_0x2fac47];return _0x31dfc8;},a17_0x2fac(_0x3945f0,_0x543621);}function a17_0x1743(){const _0x49c61b=['IoEBx','Error\x20Details:\x0a','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','OhGSW','cVkEa','iDZqp','\x20\x20Code:\x20','delay','jLnxk','hkvxQ','stringify','NMfWd','fLOUa','410fiWTNp','eZWrO','stack','N/A','NCeCf','QYWMX','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Cluster\x20`','accessResp','../../config/logger','join','checkAccess','authHeader','xnQiC','nMwHw','\x20data\x20:\x20','getUTCHours','LOG','<PasswordPlaceholder>','6165168EmRxUE','string','sendEventToBackend','dZhjL','4510572TJeUHi','ilMVi','info','ZYNuP','`\x20,error\x20:\x20','llfLz','JsBbS','ERROR','JqGms','nNYne','cloud-provider','status','hbWfT','response','stack\x20trace\x20','will\x20be\x20created','qhHGH','axXHg','Report\x20saved\x20in\x20','ViPXU','replace','region','body','dLApt','24dTiiQh','data','CLOUD_PROVIDER','DVdDR','bstackUsername','pre-check','command','clusterRegion','Missing\x20required\x20arguments:\x20','UTojG','TPGSL','3133hZonEZ','Grid\x20profile\x20fetched\x20for\x20pre-check','HLUDG','../../config/constants','DuwQv','366dDbjEL','method','Tool\x20Installed','exit','nrsab','Status:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','zdGMQ','mHVDL','SJAaz','getUTCMonth','PdEoX','code','eWXQj','cIvCh','MvIsm','OlqzE','cloud-provider-not-supported','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','3|4|2|0|1','aBOhc','xnZny','ywssK','GAwhb','description','\x20\x20Stack:\x20','options','vWQvV','getUTCFullYear','Setting\x20cloud\x20provider\x20as\x20','bstackAccesskey','unable\x20to\x20verify\x20if\x20cluster\x20`','EAkzZ','toLowerCase','\x20error\x20:\x20','4759385qxGSLP','parse','SSL\x20Configured','header','eCasj','find','MylTL','grid-profile','IjhFP','NIAJi','uEKbo','smUNi','`\x20is\x20present\x20in\x20region\x20`','builder','BxVvI','message','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','baNlo','WmqOs','ZmfGg','password','WLuDw','SJHWO','tMhbn','aAtNd','\x20region\x20-\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','cloudProvider','JAXiD','707784WvdVVW','CRTOQ','utf-8','Message:\x20','isTrialGridAccessible','VuJwC','UxKVY','pHmir','raOrO','User\x20Access','kRGbc','FWEKg','tAnag','HMmGy','dummy-grid','LcXiI','DQNus','Jxfyn','../../cloudproviders/utils','`\x20already\x20exists','clusterName','ZIABE','is\x20already\x20present','init','upoHo','iylDE','uuid','TSYCV','SLsrD','PdDjG','rJuvw','headers','writeFileSync','Browserstack','pre-check-grid-called','4nEJRTx','push','../../utils/instrumentationUtils','tJTjk','JmKby','readFileSync','cluster-name','ARhAD','length','xlHEE','ffgEe','MTCEK','xgrOw','\x20\x20Message:\x20','tdtKB','type','\x20===\x0a\x0a','VExYs','help','1086519RFDlIF','error\x20stack\x20:\x20','Pre-check\x20running\x20for\x20Cloud\x20-\x20','120519dSoIuG','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','zPXLm','hHimb','FXJKo','getUTCMinutes','gyvAv','split','133xtlEtM','error','PRfGn','Success','<UsernamePlaceholder>','HkVFb','gridProfile','reconnecting-websocket','grid\x20profile\x20flow\x20','oSzlp','SBrdR','Whitelisted\x20browserstack','desc','JtKKQ','getUTCDate','forEach','INFO','inNrk','../../utils/webSocketUtils','usage','connectionTimeout','ryRfw','grid','WlPVs','pre-check-failed','xlTNt','Failure','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pre_check',']\x20status\x20:\x20','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','name','username','epilogue','fNFQX','jZEnq','aSlhR','viVgT','TzClk','.\x20Please\x20provide\x20all\x20required\x20arguments.','vKVgY','got','pErvC','debug','LArxc','DPpeV','ClTqb','requestId','IvUIZ','Cluster\x20'];a17_0x1743=function(){return _0x49c61b;};return a17_0x1743();}
@@ -1 +1 @@
1
- function a18_0x52ab(){const _0xa72484=['usage','apSOv','commandDir','../config/constants','handler','246807GXGZBL','start','help','epilogue','1048730wiNJGM','374LIrWiq','recommendCommands','529648roCYYS','1042818kWUDTf','775866tXMQaE','start_commands','Start\x20an\x20existing\x20Automation\x20grid.','QGqSf','desc','252820VqGxZP','command'];a18_0x52ab=function(){return _0xa72484;};return a18_0x52ab();}const a18_0x1e087=a18_0x38fc;function a18_0x38fc(_0x6cef04,_0x74cf7d){const _0x52ab65=a18_0x52ab();return a18_0x38fc=function(_0x38fc69,_0x35bf01){_0x38fc69=_0x38fc69-0x1bc;let _0x3d8b02=_0x52ab65[_0x38fc69];return _0x3d8b02;},a18_0x38fc(_0x6cef04,_0x74cf7d);}(function(_0xcd09,_0x514760){const _0x3bb9b3=a18_0x38fc,_0x55ac68=_0xcd09();while(!![]){try{const _0x12c1ad=parseInt(_0x3bb9b3(0x1ce))/0x1+parseInt(_0x3bb9b3(0x1d0))/0x2+parseInt(_0x3bb9b3(0x1c9))/0x3+-parseInt(_0x3bb9b3(0x1c2))/0x4+-parseInt(_0x3bb9b3(0x1cd))/0x5+parseInt(_0x3bb9b3(0x1bc))/0x6+-parseInt(_0x3bb9b3(0x1bd))/0x7;if(_0x12c1ad===_0x514760)break;else _0x55ac68['push'](_0x55ac68['shift']());}catch(_0x183b99){_0x55ac68['push'](_0x55ac68['shift']());}}}(a18_0x52ab,0x21909));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x1e087(0x1c7));exports[a18_0x1e087(0x1c3)]=a18_0x1e087(0x1ca),exports[a18_0x1e087(0x1c1)]=a18_0x1e087(0x1bf),exports['builder']=function(_0x589e6c){const _0x4da86a=a18_0x1e087,_0x359801={};_0x359801[_0x4da86a(0x1c0)]=_0x4da86a(0x1be),_0x359801[_0x4da86a(0x1c5)]=_0x4da86a(0x1cb);const _0x289ee9=_0x359801;return _0x589e6c[_0x4da86a(0x1c4)](HELP_HEADER_MESSAGE[_0x4da86a(0x1ca)])[_0x4da86a(0x1cc)](HELP_FOOTER_MESSAGE)[_0x4da86a(0x1c6)](_0x289ee9[_0x4da86a(0x1c0)])['demandCommand']()[_0x4da86a(0x1cf)]()['strict']()[_0x4da86a(0x1cb)](_0x289ee9[_0x4da86a(0x1c5)]);},exports[a18_0x1e087(0x1c8)]=function(_0x539bed){};
1
+ const a18_0x56cf18=a18_0x2eb4;function a18_0x148f(){const _0x149bc4=['desc','commandDir','Start\x20an\x20existing\x20Automation\x20grid.','21VpqqSU','vvoIM','command','11MsVWed','48474pvCNdM','100ynCtpf','start_commands','9flVgKj','604596VNcLOu','help','216735cZsKlU','start','demandCommand','recommendCommands','147sggpKs','46660rJBzVt','handler','1005136OOmTAQ','builder','LsAhf','../config/constants','epilogue','10483360bCodXO','25876068jDgdCJ'];a18_0x148f=function(){return _0x149bc4;};return a18_0x148f();}function a18_0x2eb4(_0x25587d,_0x58a5cd){const _0x148f59=a18_0x148f();return a18_0x2eb4=function(_0x2eb4bb,_0x3d0590){_0x2eb4bb=_0x2eb4bb-0x1eb;let _0x3902f1=_0x148f59[_0x2eb4bb];return _0x3902f1;},a18_0x2eb4(_0x25587d,_0x58a5cd);}(function(_0x41e31f,_0x37eb2b){const _0x36d477=a18_0x2eb4,_0x3de143=_0x41e31f();while(!![]){try{const _0x5dc526=-parseInt(_0x36d477(0x1f2))/0x1+parseInt(_0x36d477(0x1fd))/0x2*(-parseInt(_0x36d477(0x1fc))/0x3)+parseInt(_0x36d477(0x1f3))/0x4*(parseInt(_0x36d477(0x1f8))/0x5)+parseInt(_0x36d477(0x1f6))/0x6*(-parseInt(_0x36d477(0x1ee))/0x7)+-parseInt(_0x36d477(0x1ff))/0x8*(parseInt(_0x36d477(0x1f5))/0x9)+-parseInt(_0x36d477(0x204))/0xa+-parseInt(_0x36d477(0x1f1))/0xb*(-parseInt(_0x36d477(0x205))/0xc);if(_0x5dc526===_0x37eb2b)break;else _0x3de143['push'](_0x3de143['shift']());}catch(_0x5efa3c){_0x3de143['push'](_0x3de143['shift']());}}}(a18_0x148f,0x8babe));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x56cf18(0x202));exports[a18_0x56cf18(0x1f0)]=a18_0x56cf18(0x1f9),exports[a18_0x56cf18(0x1eb)]=a18_0x56cf18(0x1ed),exports[a18_0x56cf18(0x200)]=function(_0x3064e1){const _0x34b855=a18_0x56cf18,_0x24487d={};_0x24487d[_0x34b855(0x201)]=_0x34b855(0x1f4),_0x24487d['vvoIM']='help';const _0x26c5ff=_0x24487d;return _0x3064e1['usage'](HELP_HEADER_MESSAGE[_0x34b855(0x1f9)])[_0x34b855(0x203)](HELP_FOOTER_MESSAGE)[_0x34b855(0x1ec)](_0x26c5ff['LsAhf'])[_0x34b855(0x1fa)]()[_0x34b855(0x1fb)]()['strict']()[_0x34b855(0x1f7)](_0x26c5ff[_0x34b855(0x1ef)]);},exports[a18_0x56cf18(0x1fe)]=function(_0x56c06c){};
@@ -1 +1 @@
1
- const a19_0x3eeac2=a19_0x1ac0;(function(_0x4e1245,_0x5e3504){const _0xeafd9b=a19_0x1ac0,_0x859daf=_0x4e1245();while(!![]){try{const _0x2eb75b=-parseInt(_0xeafd9b(0x11c))/0x1+-parseInt(_0xeafd9b(0x129))/0x2+parseInt(_0xeafd9b(0x159))/0x3+parseInt(_0xeafd9b(0x120))/0x4+parseInt(_0xeafd9b(0x178))/0x5+-parseInt(_0xeafd9b(0x130))/0x6+parseInt(_0xeafd9b(0x14d))/0x7;if(_0x2eb75b===_0x5e3504)break;else _0x859daf['push'](_0x859daf['shift']());}catch(_0x348439){_0x859daf['push'](_0x859daf['shift']());}}}(a19_0x42cd,0x6f792));function a19_0x42cd(){const _0x4c86f3=['djewS','../../utils/gridComponents','5594778zXXFxa','connectionTimeout','IXPrU','epilogue','grid-id','iEgaV','description','name','body','CQrfu','Start\x20an\x20existing\x20Automation\x20grid.','<UsernamePlaceholder>','609810guyMzK','WebSocket','KzYkq','cloudProvider','UtLae','OoJqx','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','username','reconnecting-websocket','KmpAp','start','error','../../config/constants','SUqIf','default','lIESS','IWBbh','gridId','password','readFileSync','WTQSY','zPpOy','ujbwL','start-grid-called','skipTlsCertVerify','message','sZcRr','zBIZg','aOnba','PFwGu','OReFg','1316445RgiAZc','stringify','219358HMstno','help','server-error','TiHBa','1870476oqFvUO','ldeLZ','LxFar','boolean','<PasswordPlaceholder>','type','string','RHcvr','FElfe','1065622bHzmiw','fZjzR','exit','skip-tls-cert-verify','../../utils/createk8sClient','../../config/logger','HYqbI','3148014yXDXkw','Starting\x20grid\x20','Skip\x20insecure\x20cert\x20verification.','IbDUl','statusCode','Adding\x20Websocket\x20listeners','info','INFO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','handler','Grid\x20started','clusterRegion','ERROR','rCqCQ','clusterName','Browserstack','argv','region','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','usage','options','debug','MdYQS','replace','../../utils/webSocketUtils','../../utils/instrumentationUtils'];a19_0x42cd=function(){return _0x4c86f3;};return a19_0x42cd();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3eeac2(0x161)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3eeac2(0x165)),{logger}=require(a19_0x3eeac2(0x12e)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x3eeac2(0x14c)),{sendInstrumentationEvent}=require(a19_0x3eeac2(0x14a)),webSocketUtils=require(a19_0x3eeac2(0x149)),{createK8sClient}=require(a19_0x3eeac2(0x12d)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x1ac0(_0x3f7dcb,_0x16eb81){const _0x42cdab=a19_0x42cd();return a19_0x1ac0=function(_0x1ac073,_0x200123){_0x1ac073=_0x1ac073-0x11c;let _0x389753=_0x42cdab[_0x1ac073];return _0x389753;},a19_0x1ac0(_0x3f7dcb,_0x16eb81);}exports['command']='grid',exports['desc']=a19_0x3eeac2(0x157),exports['builder']=function(_0x5eb1aa){const _0x565dd2=a19_0x3eeac2,_0x2773c3={};_0x2773c3[_0x565dd2(0x156)]=_0x565dd2(0x142),_0x2773c3[_0x565dd2(0x173)]=_0x565dd2(0x126),_0x2773c3[_0x565dd2(0x15e)]=_0x565dd2(0x132),_0x2773c3[_0x565dd2(0x14b)]=_0x565dd2(0x123),_0x2773c3[_0x565dd2(0x127)]=_0x565dd2(0x11d);const _0x5acb9f=_0x2773c3,_0x262ccd={};_0x262ccd['description']=_0x5acb9f[_0x565dd2(0x156)],_0x262ccd[_0x565dd2(0x125)]=_0x5acb9f['sZcRr'];const _0x3c51e5={};_0x3c51e5[_0x565dd2(0x153)]=_0x5acb9f[_0x565dd2(0x15e)],_0x3c51e5['type']=_0x5acb9f[_0x565dd2(0x14b)],_0x3c51e5[_0x565dd2(0x167)]=![];const _0x5a29ba={};return _0x5a29ba[_0x565dd2(0x151)]=_0x262ccd,_0x5a29ba[_0x565dd2(0x12c)]=_0x3c51e5,_0x5eb1aa[_0x565dd2(0x144)](HELP_HEADER_MESSAGE[_0x565dd2(0x163)])[_0x565dd2(0x150)](HELP_FOOTER_MESSAGE)[_0x565dd2(0x145)](_0x5a29ba)[_0x565dd2(0x11d)](_0x5acb9f[_0x565dd2(0x127)])[_0x565dd2(0x140)];},exports[a19_0x3eeac2(0x139)]=async function(_0x1b44c3){const _0x4d38c9=a19_0x3eeac2,_0x2ff08f={'zBIZg':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','SUqIf':function(_0x22600f){return _0x22600f();},'HYqbI':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','KmpAp':function(_0x1f3b28,_0x141a5d,_0x4b2d76,_0x5b57fd,_0x1504fd,_0x5a4b17,_0x17f12d){return _0x1f3b28(_0x141a5d,_0x4b2d76,_0x5b57fd,_0x1504fd,_0x5a4b17,_0x17f12d);},'OReFg':_0x4d38c9(0x170),'iEgaV':'init-not-called','ldeLZ':function(_0x24ebfe,_0x4f272c,_0x3846da,_0x5a970c,_0x52f90b,_0x4f44ea,_0x1186f4){return _0x24ebfe(_0x4f272c,_0x3846da,_0x5a970c,_0x52f90b,_0x4f44ea,_0x1186f4);},'fZjzR':function(_0x2dc0de){return _0x2dc0de();},'MdYQS':_0x4d38c9(0x158),'KzYkq':_0x4d38c9(0x124),'LxFar':_0x4d38c9(0x135),'IbDUl':function(_0x480e73,_0x2833c3,_0x24aa1e,_0x301a11){return _0x480e73(_0x2833c3,_0x24aa1e,_0x301a11);},'IXPrU':function(_0x282c0c,_0x14f33a,_0x328baf,_0x165c86,_0x39d5b3,_0x13afdc,_0x563c0b){return _0x282c0c(_0x14f33a,_0x328baf,_0x165c86,_0x39d5b3,_0x13afdc,_0x563c0b);},'WTQSY':function(_0x5bf65b,_0x1f424e,_0x12f165){return _0x5bf65b(_0x1f424e,_0x12f165);},'aOnba':_0x4d38c9(0x13a),'FElfe':function(_0x4bc2ed,_0x9ec1f4){return _0x4bc2ed===_0x9ec1f4;},'TiHBa':_0x4d38c9(0x15f),'zPpOy':function(_0x19b675,_0x6e9618,_0x5f1692,_0x38777f,_0x24bd80,_0x459aa4,_0x28938e){return _0x19b675(_0x6e9618,_0x5f1692,_0x38777f,_0x24bd80,_0x459aa4,_0x28938e);},'IWBbh':'unauthorised','lIESS':function(_0x2bed37,_0x53e6ca){return _0x2bed37===_0x53e6ca;},'ujbwL':function(_0x44ed86,_0x13ed5c,_0x5e44ac,_0x366505,_0x1647a4,_0x3a193f,_0x1e554e){return _0x44ed86(_0x13ed5c,_0x5e44ac,_0x366505,_0x1647a4,_0x3a193f,_0x1e554e);},'rCqCQ':'invalid-grid-id','UtLae':function(_0x2b9567,_0x2a810f,_0x3201f1,_0x36ff26,_0x45accd,_0xdf6cd,_0x120744){return _0x2b9567(_0x2a810f,_0x3201f1,_0x36ff26,_0x45accd,_0xdf6cd,_0x120744);},'PFwGu':_0x4d38c9(0x11e)};let _0x3460d0;try{!_0x1b44c3[_0x4d38c9(0x16a)]&&(logger[_0x4d38c9(0x164)](_0x2ff08f[_0x4d38c9(0x174)]),process[_0x4d38c9(0x12b)](0x1));!fs['existsSync'](_0x2ff08f[_0x4d38c9(0x166)](getCredentialsPath))&&(logger['error'](_0x2ff08f[_0x4d38c9(0x12f)]),await _0x2ff08f[_0x4d38c9(0x162)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes[_0x4d38c9(0x13c)],_0x2ff08f[_0x4d38c9(0x152)],null,_0x1b44c3),process[_0x4d38c9(0x12b)](0x1));logger[_0x4d38c9(0x136)](_0x4d38c9(0x131)+_0x1b44c3[_0x4d38c9(0x16a)]),await _0x2ff08f[_0x4d38c9(0x121)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes[_0x4d38c9(0x137)],null,null,_0x1b44c3);const _0xee38ab=JSON['parse'](fs[_0x4d38c9(0x16c)](_0x2ff08f[_0x4d38c9(0x12a)](getCredentialsPath)));global_registry['bstackUsername']=_0xee38ab[_0x4d38c9(0x13f)][_0x4d38c9(0x160)],global_registry['bstackAccesskey']=_0xee38ab['Browserstack'][_0x4d38c9(0x16b)];const _0x357464=WS_ENDPOINT['replace'](_0x2ff08f[_0x4d38c9(0x147)],_0xee38ab[_0x4d38c9(0x13f)]['username'])[_0x4d38c9(0x148)](_0x2ff08f[_0x4d38c9(0x15b)],_0xee38ab['Browserstack'][_0x4d38c9(0x16b)]),_0x5b0332={};_0x5b0332[_0x4d38c9(0x15a)]=ws,_0x5b0332[_0x4d38c9(0x14e)]=0x36ee80,_0x3460d0=new ReconnectingWebSocket(_0x357464,[],_0x5b0332),logger[_0x4d38c9(0x146)](_0x2ff08f[_0x4d38c9(0x122)]),webSocketUtils['addListeners'](_0x3460d0,_0x1b44c3['user'],_0x1b44c3[_0x4d38c9(0x16b)]);const [_0x55ee7f,_0x5f1316]=await _0x2ff08f[_0x4d38c9(0x133)](getGridDetails,_0xee38ab['Browserstack']['username'],_0xee38ab[_0x4d38c9(0x13f)][_0x4d38c9(0x16b)],_0x1b44c3[_0x4d38c9(0x16a)]);if(_0x5f1316){const _0x1c331a=_0x5f1316['info'];global_registry[_0x4d38c9(0x15c)]=_0x1c331a[_0x4d38c9(0x15c)],global_registry[_0x4d38c9(0x13b)]=_0x1c331a[_0x4d38c9(0x141)],global_registry[_0x4d38c9(0x13e)]=_0x1c331a[_0x4d38c9(0x13e)];const _0x6769ec=await _0x2ff08f[_0x4d38c9(0x14f)](getCloudProviderObject,_0x1c331a['cloudProvider'],_0x1c331a[_0x4d38c9(0x13e)],_0x1c331a[_0x4d38c9(0x154)],_0x3460d0,webSocketUtils,_0x1b44c3),[_0x5684cf,_0x2f4abc,_0x83fb7a,_0x4d8078,_0x16f328,_0x4c0350]=await _0x2ff08f[_0x4d38c9(0x16d)](createK8sClient,_0x6769ec,_0x1b44c3[_0x4d38c9(0x171)]);await _0x2ff08f[_0x4d38c9(0x16d)](scaleUpHubDeployment,_0x2f4abc,_0x1c331a[_0x4d38c9(0x154)]),logger[_0x4d38c9(0x136)](_0x2ff08f[_0x4d38c9(0x175)]),process[_0x4d38c9(0x12b)](0x0);}_0x2ff08f[_0x4d38c9(0x128)](_0x55ee7f['statusCode'],0x191)&&(logger[_0x4d38c9(0x164)](_0x2ff08f[_0x4d38c9(0x11f)]),await _0x2ff08f[_0x4d38c9(0x16e)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes['ERROR'],_0x2ff08f[_0x4d38c9(0x169)],null,_0x1b44c3),process[_0x4d38c9(0x12b)](0x1)),_0x2ff08f[_0x4d38c9(0x168)](_0x55ee7f[_0x4d38c9(0x134)],0x190)&&(logger[_0x4d38c9(0x164)](JSON['parse'](_0x55ee7f[_0x4d38c9(0x155)])[_0x4d38c9(0x172)]),await _0x2ff08f[_0x4d38c9(0x16f)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes[_0x4d38c9(0x13c)],_0x2ff08f[_0x4d38c9(0x13d)],null,_0x1b44c3),process[_0x4d38c9(0x12b)](0x1)),logger[_0x4d38c9(0x164)](_0x4d38c9(0x138)+JSON[_0x4d38c9(0x179)](_0x55ee7f)),await _0x2ff08f[_0x4d38c9(0x15d)](sendInstrumentationEvent,_0x1b44c3,_0x2ff08f[_0x4d38c9(0x177)],messageTypes[_0x4d38c9(0x13c)],_0x2ff08f[_0x4d38c9(0x176)],_0x55ee7f,_0x1b44c3),process[_0x4d38c9(0x12b)](0x1);}catch(_0x2090b1){const _0x2e60d9=_0x4d38c9(0x143)+_0x2090b1+'\x20\x0a'+JSON['stringify'](_0x2090b1['stack'])+'\x20';logger[_0x4d38c9(0x164)](_0x2e60d9),process[_0x4d38c9(0x12b)](0x1);}};
1
+ const a19_0x1629c1=a19_0x2347;(function(_0x401b76,_0x4758de){const _0x27a1e8=a19_0x2347,_0x5e4cef=_0x401b76();while(!![]){try{const _0x1152af=-parseInt(_0x27a1e8(0xd0))/0x1*(-parseInt(_0x27a1e8(0x120))/0x2)+-parseInt(_0x27a1e8(0xe7))/0x3*(-parseInt(_0x27a1e8(0xe0))/0x4)+-parseInt(_0x27a1e8(0xfc))/0x5+parseInt(_0x27a1e8(0x115))/0x6+-parseInt(_0x27a1e8(0x125))/0x7+parseInt(_0x27a1e8(0xf5))/0x8+-parseInt(_0x27a1e8(0xde))/0x9;if(_0x1152af===_0x4758de)break;else _0x5e4cef['push'](_0x5e4cef['shift']());}catch(_0x5593ef){_0x5e4cef['push'](_0x5e4cef['shift']());}}}(a19_0x5376,0x8509f));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1629c1(0xef)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x1629c1(0xea)),{logger}=require(a19_0x1629c1(0xee)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a19_0x1629c1(0x11c)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a19_0x1629c1(0x100)),{createK8sClient}=require(a19_0x1629c1(0x126)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x5376(){const _0x5d17ed=['TSpaW','start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../config/logger','reconnecting-websocket','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','init-not-called','Adding\x20Websocket\x20listeners','info','readFileSync','7964104dGqUqX','gridId','clusterName','default','nKIdF','dOffL','vuIWE','2351630FawadH','stack','name','bstackUsername','../../utils/webSocketUtils','skip-tls-cert-verify','unauthorised','PGolg','WebSocket','rPZTi','region','desc','statusCode','skipTlsCertVerify','builder','NXLTI','HnKmU','command','usage','FKjLe','password','PQskF','TLGtv','server-error','debug','2539758CmAbfe','whlUC','stringify','invalid-grid-id','Xnmsx','Starting\x20grid\x20','type','../../utils/gridComponents','grid-id','user','bstackAccesskey','468neMTNc','<UsernamePlaceholder>','existsSync','start-grid-called','yoNGR','1518013KSnotU','../../utils/createk8sClient','vpmVg','ERROR','NopOP','<PasswordPlaceholder>','error','2155UUxtqz','help','description','DqWHR','UfDDg','boolean','Start\x20an\x20existing\x20Automation\x20grid.','Oxjil','Browserstack','addListeners','username','dNguA','parse','replace','8995140yAtNPe','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','8HemNwy','options','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','cloudProvider','message','string','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','462744aWVYtk','body','exit','../../config/constants'];a19_0x5376=function(){return _0x5d17ed;};return a19_0x5376();}function a19_0x2347(_0x40e322,_0x2c70fa){const _0x53763c=a19_0x5376();return a19_0x2347=function(_0x234775,_0xfcad1f){_0x234775=_0x234775-0xd0;let _0xf7be14=_0x53763c[_0x234775];return _0xf7be14;},a19_0x2347(_0x40e322,_0x2c70fa);}exports[a19_0x1629c1(0x10d)]='grid',exports[a19_0x1629c1(0x107)]=a19_0x1629c1(0xd6),exports[a19_0x1629c1(0x10a)]=function(_0x18c0f9){const _0x33732a=a19_0x1629c1,_0x3d3b15={};_0x3d3b15[_0x33732a(0xd3)]=_0x33732a(0xe6),_0x3d3b15[_0x33732a(0x119)]=_0x33732a(0xe5),_0x3d3b15['Oxjil']='Skip\x20insecure\x20cert\x20verification.',_0x3d3b15[_0x33732a(0xfb)]=_0x33732a(0xd5),_0x3d3b15[_0x33732a(0xd4)]=_0x33732a(0xd1);const _0x4d0b1c=_0x3d3b15,_0x3e6b1e={};_0x3e6b1e[_0x33732a(0xd2)]=_0x4d0b1c[_0x33732a(0xd3)],_0x3e6b1e['type']=_0x4d0b1c['Xnmsx'];const _0x56a692={};_0x56a692[_0x33732a(0xd2)]=_0x4d0b1c[_0x33732a(0xd7)],_0x56a692[_0x33732a(0x11b)]=_0x4d0b1c[_0x33732a(0xfb)],_0x56a692[_0x33732a(0xf8)]=![];const _0x350091={};return _0x350091[_0x33732a(0x11d)]=_0x3e6b1e,_0x350091[_0x33732a(0x101)]=_0x56a692,_0x18c0f9[_0x33732a(0x10e)](HELP_HEADER_MESSAGE[_0x33732a(0xec)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x33732a(0xe1)](_0x350091)[_0x33732a(0xd1)](_0x4d0b1c[_0x33732a(0xd4)])['argv'];},exports['handler']=async function(_0x2a804c){const _0x16c960=a19_0x1629c1,_0x1f229e={'whlUC':_0x16c960(0xdf),'PQskF':function(_0x592919){return _0x592919();},'yoNGR':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','dNguA':function(_0x42bfcf,_0x9db9d7,_0x12ff7f,_0x249e68,_0x12694f,_0x12a2d8,_0x4182fb){return _0x42bfcf(_0x9db9d7,_0x12ff7f,_0x249e68,_0x12694f,_0x12a2d8,_0x4182fb);},'NXLTI':_0x16c960(0x123),'uBaiN':_0x16c960(0xf1),'vpmVg':function(_0x48c5b4){return _0x48c5b4();},'TLGtv':_0x16c960(0x121),'FKjLe':_0x16c960(0x12a),'PGolg':_0x16c960(0xf2),'NopOP':function(_0x5a2d46,_0x2fe2d1,_0x1deff8,_0x1f3c0c){return _0x5a2d46(_0x2fe2d1,_0x1deff8,_0x1f3c0c);},'nKIdF':function(_0xba1ab9,_0x16621d,_0x412155){return _0xba1ab9(_0x16621d,_0x412155);},'dOffL':'Grid\x20started','UMuID':function(_0x187fba,_0x396d54){return _0x187fba===_0x396d54;},'aUOyT':_0x16c960(0xed),'HnKmU':_0x16c960(0x102),'yQotO':function(_0x4f423d,_0x34af99){return _0x4f423d===_0x34af99;},'rPZTi':_0x16c960(0x118),'TSpaW':_0x16c960(0x113)};let _0x1d5cbe;try{!_0x2a804c['gridId']&&(logger[_0x16c960(0x12b)](_0x1f229e[_0x16c960(0x116)]),process[_0x16c960(0xe9)](0x1));!fs[_0x16c960(0x122)](_0x1f229e[_0x16c960(0x111)](getCredentialsPath))&&(logger['error'](_0x1f229e[_0x16c960(0x124)]),await _0x1f229e['dNguA'](sendInstrumentationEvent,_0x2a804c,_0x1f229e['NXLTI'],messageTypes[_0x16c960(0x128)],_0x1f229e['uBaiN'],null,_0x2a804c),process[_0x16c960(0xe9)](0x1));logger['info'](_0x16c960(0x11a)+_0x2a804c[_0x16c960(0xf6)]),await _0x1f229e[_0x16c960(0xdb)](sendInstrumentationEvent,_0x2a804c,_0x1f229e[_0x16c960(0x10b)],messageTypes['INFO'],null,null,_0x2a804c);const _0x234042=JSON['parse'](fs[_0x16c960(0xf4)](_0x1f229e[_0x16c960(0x127)](getCredentialsPath)));global_registry[_0x16c960(0xff)]=_0x234042[_0x16c960(0xd8)]['username'],global_registry[_0x16c960(0x11f)]=_0x234042[_0x16c960(0xd8)]['password'];const _0x522378=WS_ENDPOINT[_0x16c960(0xdd)](_0x1f229e[_0x16c960(0x112)],_0x234042[_0x16c960(0xd8)][_0x16c960(0xda)])['replace'](_0x1f229e[_0x16c960(0x10f)],_0x234042[_0x16c960(0xd8)][_0x16c960(0x110)]),_0x22a3e0={};_0x22a3e0[_0x16c960(0x104)]=ws,_0x22a3e0['connectionTimeout']=0x36ee80,_0x1d5cbe=new ReconnectingWebSocket(_0x522378,[],_0x22a3e0),logger[_0x16c960(0x114)](_0x1f229e[_0x16c960(0x103)]),webSocketUtils[_0x16c960(0xd9)](_0x1d5cbe,_0x2a804c[_0x16c960(0x11e)],_0x2a804c[_0x16c960(0x110)]);const [_0x475c6c,_0x5682d1]=await _0x1f229e[_0x16c960(0x129)](getGridDetails,_0x234042['Browserstack'][_0x16c960(0xda)],_0x234042['Browserstack'][_0x16c960(0x110)],_0x2a804c[_0x16c960(0xf6)]);if(_0x5682d1){const _0x155749=_0x5682d1[_0x16c960(0xf3)];global_registry[_0x16c960(0xe3)]=_0x155749[_0x16c960(0xe3)],global_registry['clusterRegion']=_0x155749[_0x16c960(0x106)],global_registry['clusterName']=_0x155749[_0x16c960(0xf7)];const _0x4a4620=await _0x1f229e['dNguA'](getCloudProviderObject,_0x155749[_0x16c960(0xe3)],_0x155749[_0x16c960(0xf7)],_0x155749[_0x16c960(0xfe)],_0x1d5cbe,webSocketUtils,_0x2a804c),[_0x48a32f,_0x240294,_0x5b6a79,_0x5663b1,_0x2e7e0c,_0x568c9f]=await _0x1f229e['nKIdF'](createK8sClient,_0x4a4620,_0x2a804c[_0x16c960(0x109)]);await _0x1f229e[_0x16c960(0xf9)](scaleUpHubDeployment,_0x240294,_0x155749[_0x16c960(0xfe)]),logger[_0x16c960(0xf3)](_0x1f229e[_0x16c960(0xfa)]),process[_0x16c960(0xe9)](0x0);}_0x1f229e['UMuID'](_0x475c6c[_0x16c960(0x108)],0x191)&&(logger[_0x16c960(0x12b)](_0x1f229e['aUOyT']),await _0x1f229e[_0x16c960(0xdb)](sendInstrumentationEvent,_0x2a804c,_0x1f229e['NXLTI'],messageTypes[_0x16c960(0x128)],_0x1f229e[_0x16c960(0x10c)],null,_0x2a804c),process[_0x16c960(0xe9)](0x1)),_0x1f229e['yQotO'](_0x475c6c[_0x16c960(0x108)],0x190)&&(logger['error'](JSON[_0x16c960(0xdc)](_0x475c6c[_0x16c960(0xe8)])[_0x16c960(0xe4)]),await _0x1f229e[_0x16c960(0xdb)](sendInstrumentationEvent,_0x2a804c,_0x1f229e[_0x16c960(0x10b)],messageTypes[_0x16c960(0x128)],_0x1f229e[_0x16c960(0x105)],null,_0x2a804c),process[_0x16c960(0xe9)](0x1)),logger[_0x16c960(0x12b)](_0x16c960(0xe2)+JSON[_0x16c960(0x117)](_0x475c6c)),await _0x1f229e['dNguA'](sendInstrumentationEvent,_0x2a804c,_0x1f229e[_0x16c960(0x10b)],messageTypes['ERROR'],_0x1f229e[_0x16c960(0xeb)],_0x475c6c,_0x2a804c),process[_0x16c960(0xe9)](0x1);}catch(_0x1c40ea){const _0x3d5c54=_0x16c960(0xf0)+_0x1c40ea+'\x20\x0a'+JSON[_0x16c960(0x117)](_0x1c40ea[_0x16c960(0xfd)])+'\x20';logger[_0x16c960(0x12b)](_0x3d5c54),process[_0x16c960(0xe9)](0x1);}};
@@ -1 +1 @@
1
- function a20_0x4dc3(){const _0x3b2933=['epilogue','help','1208566IFfnLh','commandDir','builder','1127434TzDhqn','strict','2807742gIhcbt','16563099OrUZbs','../config/constants','3822360cTHbgw','EUzCQ','stop','command','iTsAZ','desc','871015VvUWAI','stop_commands','821688DtjBbd','handler'];a20_0x4dc3=function(){return _0x3b2933;};return a20_0x4dc3();}function a20_0x3caf(_0x3e11f5,_0x5c8c7b){const _0x4dc33b=a20_0x4dc3();return a20_0x3caf=function(_0x3cafd7,_0x478512){_0x3cafd7=_0x3cafd7-0x1af;let _0x5e71dd=_0x4dc33b[_0x3cafd7];return _0x5e71dd;},a20_0x3caf(_0x3e11f5,_0x5c8c7b);}const a20_0x24c3a7=a20_0x3caf;(function(_0x400102,_0x1d22ff){const _0x416df8=a20_0x3caf,_0x40f972=_0x400102();while(!![]){try{const _0x4668d1=-parseInt(_0x416df8(0x1be))/0x1+parseInt(_0x416df8(0x1c1))/0x2+parseInt(_0x416df8(0x1ba))/0x3+-parseInt(_0x416df8(0x1b2))/0x4+parseInt(_0x416df8(0x1b8))/0x5+-parseInt(_0x416df8(0x1af))/0x6+parseInt(_0x416df8(0x1b0))/0x7;if(_0x4668d1===_0x1d22ff)break;else _0x40f972['push'](_0x40f972['shift']());}catch(_0x40fe87){_0x40f972['push'](_0x40f972['shift']());}}}(a20_0x4dc3,0xb6184));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x24c3a7(0x1b1));exports[a20_0x24c3a7(0x1b5)]=a20_0x24c3a7(0x1b4),exports[a20_0x24c3a7(0x1b7)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x24c3a7(0x1c0)]=function(_0x3f0d83){const _0x8a6d70=a20_0x24c3a7,_0x2a4ba5={};_0x2a4ba5['iTsAZ']=_0x8a6d70(0x1b9),_0x2a4ba5[_0x8a6d70(0x1b3)]=_0x8a6d70(0x1bd);const _0x40e985=_0x2a4ba5;return _0x3f0d83['usage'](HELP_HEADER_MESSAGE[_0x8a6d70(0x1b4)])[_0x8a6d70(0x1bc)](HELP_FOOTER_MESSAGE)[_0x8a6d70(0x1bf)](_0x40e985[_0x8a6d70(0x1b6)])['demandCommand']()['recommendCommands']()[_0x8a6d70(0x1c2)]()[_0x8a6d70(0x1bd)](_0x40e985['EUzCQ']);},exports[a20_0x24c3a7(0x1bb)]=function(_0x5ea05f){};
1
+ const a20_0x41cded=a20_0x469a;(function(_0x24c1e6,_0xdc48ce){const _0xa8a179=a20_0x469a,_0x445bb0=_0x24c1e6();while(!![]){try{const _0x5022a8=parseInt(_0xa8a179(0xb7))/0x1*(parseInt(_0xa8a179(0xb8))/0x2)+parseInt(_0xa8a179(0xbc))/0x3+-parseInt(_0xa8a179(0xb6))/0x4*(parseInt(_0xa8a179(0xac))/0x5)+parseInt(_0xa8a179(0xa3))/0x6*(-parseInt(_0xa8a179(0xaa))/0x7)+parseInt(_0xa8a179(0xb5))/0x8*(parseInt(_0xa8a179(0xba))/0x9)+-parseInt(_0xa8a179(0xad))/0xa+-parseInt(_0xa8a179(0xb0))/0xb*(-parseInt(_0xa8a179(0xb3))/0xc);if(_0x5022a8===_0xdc48ce)break;else _0x445bb0['push'](_0x445bb0['shift']());}catch(_0x338a67){_0x445bb0['push'](_0x445bb0['shift']());}}}(a20_0x4731,0xcc314));function a20_0x469a(_0x50c68f,_0x1d9530){const _0x4731e2=a20_0x4731();return a20_0x469a=function(_0x469a5d,_0x3bf132){_0x469a5d=_0x469a5d-0xa3;let _0x46734c=_0x4731e2[_0x469a5d];return _0x46734c;},a20_0x469a(_0x50c68f,_0x1d9530);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x41cded(0xae));exports[a20_0x41cded(0xa9)]=a20_0x41cded(0xab),exports['desc']=a20_0x41cded(0xa8),exports[a20_0x41cded(0xb1)]=function(_0x51db2b){const _0x28825d=a20_0x41cded,_0x35e53e={};_0x35e53e['kpgsQ']=_0x28825d(0xbb),_0x35e53e[_0x28825d(0xa6)]=_0x28825d(0xb4);const _0x512567=_0x35e53e;return _0x51db2b[_0x28825d(0xa4)](HELP_HEADER_MESSAGE[_0x28825d(0xab)])[_0x28825d(0xaf)](HELP_FOOTER_MESSAGE)[_0x28825d(0xb9)](_0x512567['kpgsQ'])[_0x28825d(0xa5)]()[_0x28825d(0xa7)]()[_0x28825d(0xbd)]()['help'](_0x512567[_0x28825d(0xa6)]);},exports[a20_0x41cded(0xb2)]=function(_0x1b0727){};function a20_0x4731(){const _0x460153=['commandDir','113787fFEOtU','stop_commands','3272745QIYuqH','strict','1023954ptALvt','usage','demandCommand','pZSaQ','recommendCommands','Stop\x20a\x20running\x20Automation\x20grid.','command','7DrjzLC','stop','8202055kJjFoz','5019040ZaANtT','../config/constants','epilogue','33QBhGik','builder','handler','2240220DBzBQT','help','728vPdpsX','4czydTr','643emOfHk','1082bphIxr'];a20_0x4731=function(){return _0x460153;};return a20_0x4731();}
@@ -1 +1 @@
1
- function a21_0x2404(_0x543322,_0x3d9b68){const _0x137aee=a21_0x137a();return a21_0x2404=function(_0x240402,_0x58a599){_0x240402=_0x240402-0x130;let _0x5379fd=_0x137aee[_0x240402];return _0x5379fd;},a21_0x2404(_0x543322,_0x3d9b68);}const a21_0x1ee0f1=a21_0x2404;(function(_0x27ccf3,_0x16de1d){const _0x1421cc=a21_0x2404,_0x59b670=_0x27ccf3();while(!![]){try{const _0x92af93=parseInt(_0x1421cc(0x18b))/0x1+parseInt(_0x1421cc(0x150))/0x2*(parseInt(_0x1421cc(0x15d))/0x3)+parseInt(_0x1421cc(0x16b))/0x4*(parseInt(_0x1421cc(0x166))/0x5)+parseInt(_0x1421cc(0x180))/0x6+parseInt(_0x1421cc(0x160))/0x7+parseInt(_0x1421cc(0x132))/0x8+-parseInt(_0x1421cc(0x145))/0x9;if(_0x92af93===_0x16de1d)break;else _0x59b670['push'](_0x59b670['shift']());}catch(_0x2c71c7){_0x59b670['push'](_0x59b670['shift']());}}}(a21_0x137a,0xf1a49));function a21_0x137a(){const _0x3438a1=['YzOEn','bstackAccesskey','mTkeZ','debug','OFdqS','9696492bVKnwK','XIBjT','Grid\x20stoppped.','HKQFy','gridId','body','boolean','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','type','cloudProvider','<PasswordPlaceholder>','839189lobnFw','parse','mSwmj','name','9523056MJGoQc','SIrjG','../../utils/createk8sClient','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','kLTAf','RbQoO','WgwpC','../../utils/webSocketUtils','argv','handler','Browserstack','existsSync','description','stop-grid-called','stop','../../config/constants','password','builder','../../utils/gridComponents','69999678szlmRY','stack','uqICg','statusCode','WebSocket','clusterRegion','invalid-grid-id','Skip\x20insecure\x20cert\x20verification.','GOQff','BtZgz','gjMPM','50RqUVtN','../../config/logger','RtPfn','usage','replace','<UsernamePlaceholder>','string','addListeners','Adding\x20Websocket\x20listeners','info','../../cloudproviders/utils','jsLvG','readFileSync','215157NyiPwN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','rkoAR','12029283WrDZhq','nIzPf','../../utils/utilityMethods','OOmxt','reconnecting-websocket','INFO','350090ytNQjB','GwitQ','init-not-called','Stop\x20a\x20running\x20Automation\x20grid.','default','92GsdMnL','ERROR','user','kSkrw','help','desc','skipTlsCertVerify','region','options','iWZQN','clusterName','exit','RXtJd','error','server-error','grid'];a21_0x137a=function(){return _0x3438a1;};return a21_0x137a();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x1ee0f1(0x164)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1ee0f1(0x141)),{logger}=require(a21_0x1ee0f1(0x151)),{getCredentialsPath,getGridDetails}=require(a21_0x1ee0f1(0x162)),{scaleDownHubDeployment}=require(a21_0x1ee0f1(0x144)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x1ee0f1(0x139)),{createK8sClient}=require(a21_0x1ee0f1(0x134)),{getCloudProviderObject}=require(a21_0x1ee0f1(0x15a));exports['command']=a21_0x1ee0f1(0x17a),exports[a21_0x1ee0f1(0x170)]=a21_0x1ee0f1(0x169),exports[a21_0x1ee0f1(0x143)]=function(_0x13e60c){const _0x512d90=a21_0x1ee0f1,_0x42a8ff={};_0x42a8ff['SIrjG']=_0x512d90(0x187),_0x42a8ff[_0x512d90(0x174)]=_0x512d90(0x156),_0x42a8ff[_0x512d90(0x14d)]=_0x512d90(0x14c),_0x42a8ff[_0x512d90(0x14f)]=_0x512d90(0x186),_0x42a8ff['TNPgM']=_0x512d90(0x16f);const _0x2c7e13=_0x42a8ff,_0x473601={};_0x473601[_0x512d90(0x13e)]=_0x2c7e13[_0x512d90(0x133)],_0x473601[_0x512d90(0x188)]=_0x2c7e13[_0x512d90(0x174)];const _0x676d2f={};_0x676d2f['description']=_0x2c7e13[_0x512d90(0x14d)],_0x676d2f[_0x512d90(0x188)]=_0x2c7e13[_0x512d90(0x14f)],_0x676d2f[_0x512d90(0x16a)]=![];const _0x15edce={};return _0x15edce['grid-id']=_0x473601,_0x15edce['skip-tls-cert-verify']=_0x676d2f,_0x13e60c[_0x512d90(0x153)](HELP_HEADER_MESSAGE[_0x512d90(0x140)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x512d90(0x173)](_0x15edce)[_0x512d90(0x16f)](_0x2c7e13['TNPgM'])[_0x512d90(0x13a)];},exports[a21_0x1ee0f1(0x13b)]=async function(_0x5741c1){const _0x3d889a=a21_0x1ee0f1,_0x3bcc49={'rkoAR':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','HKQFy':function(_0x8010e9){return _0x8010e9();},'RtPfn':_0x3d889a(0x135),'YzOEn':function(_0x2bcdb1,_0x118cf4,_0x1544b3,_0x70ba58,_0x5a6f2a,_0x4b7c9f,_0xccfd9f){return _0x2bcdb1(_0x118cf4,_0x1544b3,_0x70ba58,_0x5a6f2a,_0x4b7c9f,_0xccfd9f);},'jsLvG':_0x3d889a(0x13f),'sOEbT':_0x3d889a(0x168),'kSkrw':function(_0x523e0c,_0x3a2c93,_0x199dff,_0x1407f0,_0x3eff9e,_0x4a61cd,_0x2a0f6c){return _0x523e0c(_0x3a2c93,_0x199dff,_0x1407f0,_0x3eff9e,_0x4a61cd,_0x2a0f6c);},'OOmxt':function(_0x303415){return _0x303415();},'XIBjT':_0x3d889a(0x155),'nIzPf':_0x3d889a(0x18a),'WgwpC':_0x3d889a(0x158),'nyNlS':function(_0x4e4533,_0x4e9390,_0x35b94f,_0x41dd4b){return _0x4e4533(_0x4e9390,_0x35b94f,_0x41dd4b);},'OFdqS':function(_0x3a7274,_0x270446,_0x47e3f5){return _0x3a7274(_0x270446,_0x47e3f5);},'BtZgz':function(_0x2eed17,_0x4f5e8b,_0x34e334){return _0x2eed17(_0x4f5e8b,_0x34e334);},'QroHe':_0x3d889a(0x182),'mTkeZ':function(_0x2a3e05,_0x59fce0){return _0x2a3e05===_0x59fce0;},'kLTAf':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','RXtJd':function(_0x339edd,_0x25fb7e,_0x46427f,_0x4c22a7,_0x241d08,_0x53d35f,_0x4af7d2){return _0x339edd(_0x25fb7e,_0x46427f,_0x4c22a7,_0x241d08,_0x53d35f,_0x4af7d2);},'RbQoO':'unauthorised','mSwmj':function(_0x2a61a7,_0x85b92b){return _0x2a61a7===_0x85b92b;},'rCjdh':_0x3d889a(0x14b),'GwitQ':function(_0x7f2187,_0x3d68be,_0x1a0a18,_0x211c83,_0x1528bc,_0x2b7db2,_0x146c12){return _0x7f2187(_0x3d68be,_0x1a0a18,_0x211c83,_0x1528bc,_0x2b7db2,_0x146c12);},'uqICg':_0x3d889a(0x179)};let _0x213b20;try{!_0x5741c1[_0x3d889a(0x184)]&&(logger[_0x3d889a(0x178)](_0x3bcc49[_0x3d889a(0x15f)]),process[_0x3d889a(0x176)](0x1));!fs[_0x3d889a(0x13d)](_0x3bcc49[_0x3d889a(0x183)](getCredentialsPath))&&(logger[_0x3d889a(0x178)](_0x3bcc49[_0x3d889a(0x152)]),await _0x3bcc49[_0x3d889a(0x17b)](sendInstrumentationEvent,_0x5741c1,_0x3bcc49[_0x3d889a(0x15b)],messageTypes[_0x3d889a(0x16c)],_0x3bcc49['sOEbT'],null,_0x5741c1),process[_0x3d889a(0x176)](0x1));logger[_0x3d889a(0x159)]('Stopping\x20grid\x20'+_0x5741c1[_0x3d889a(0x184)]),await _0x3bcc49[_0x3d889a(0x16e)](sendInstrumentationEvent,_0x5741c1,_0x3bcc49[_0x3d889a(0x15b)],messageTypes[_0x3d889a(0x165)],null,null,_0x5741c1);const _0x3111c6=JSON[_0x3d889a(0x18c)](fs[_0x3d889a(0x15c)](_0x3bcc49[_0x3d889a(0x163)](getCredentialsPath)));global_registry['bstackUsername']=_0x3111c6[_0x3d889a(0x13c)]['username'],global_registry[_0x3d889a(0x17c)]=_0x3111c6[_0x3d889a(0x13c)][_0x3d889a(0x142)];const _0x44084f=WS_ENDPOINT[_0x3d889a(0x154)](_0x3bcc49[_0x3d889a(0x181)],_0x3111c6[_0x3d889a(0x13c)]['username'])[_0x3d889a(0x154)](_0x3bcc49[_0x3d889a(0x161)],_0x3111c6[_0x3d889a(0x13c)][_0x3d889a(0x142)]),_0x398af0={};_0x398af0[_0x3d889a(0x149)]=ws,_0x398af0['connectionTimeout']=0x36ee80,_0x213b20=new ReconnectingWebSocket(_0x44084f,[],_0x398af0),logger[_0x3d889a(0x17e)](_0x3bcc49[_0x3d889a(0x138)]),webSocketUtils[_0x3d889a(0x157)](_0x213b20,_0x5741c1[_0x3d889a(0x16d)],_0x5741c1[_0x3d889a(0x142)]);const [_0xaa540d,_0xf27f6d]=await _0x3bcc49['nyNlS'](getGridDetails,_0x3111c6['Browserstack']['username'],_0x3111c6['Browserstack']['password'],_0x5741c1[_0x3d889a(0x184)]);if(_0xf27f6d){const _0x43efea=_0xf27f6d[_0x3d889a(0x159)];global_registry['cloudProvider']=_0x43efea[_0x3d889a(0x189)],global_registry[_0x3d889a(0x14a)]=_0x43efea[_0x3d889a(0x172)],global_registry[_0x3d889a(0x175)]=_0x43efea[_0x3d889a(0x175)];const _0xa5e667=await _0x3bcc49[_0x3d889a(0x16e)](getCloudProviderObject,_0x43efea[_0x3d889a(0x189)],_0x43efea['clusterName'],_0x43efea['name'],_0x213b20,webSocketUtils,_0x5741c1),[_0x464e26,_0x3f529c,_0x2cc383,_0x316583,_0x5b28ee,_0x4b5af7]=await _0x3bcc49[_0x3d889a(0x17f)](createK8sClient,_0xa5e667,_0x5741c1[_0x3d889a(0x171)]);await _0x3bcc49[_0x3d889a(0x14e)](scaleDownHubDeployment,_0x3f529c,_0x43efea[_0x3d889a(0x131)]),logger[_0x3d889a(0x159)](_0x3bcc49['QroHe']),process[_0x3d889a(0x176)](0x0);}_0x3bcc49[_0x3d889a(0x17d)](_0xaa540d[_0x3d889a(0x148)],0x191)&&(logger[_0x3d889a(0x178)](_0x3bcc49[_0x3d889a(0x136)]),await _0x3bcc49[_0x3d889a(0x177)](sendInstrumentationEvent,_0x5741c1,_0x3bcc49['jsLvG'],messageTypes[_0x3d889a(0x16c)],_0x3bcc49[_0x3d889a(0x137)],null,_0x5741c1),process[_0x3d889a(0x176)](0x1)),_0x3bcc49[_0x3d889a(0x130)](_0xaa540d[_0x3d889a(0x148)],0x190)&&(logger[_0x3d889a(0x178)](JSON[_0x3d889a(0x18c)](_0xaa540d[_0x3d889a(0x185)])['message']),await _0x3bcc49['RXtJd'](sendInstrumentationEvent,_0x5741c1,_0x3bcc49['jsLvG'],messageTypes['ERROR'],_0x3bcc49['rCjdh'],null,_0x5741c1),process[_0x3d889a(0x176)](0x1)),logger[_0x3d889a(0x178)](_0x3d889a(0x15e)+JSON['stringify'](_0xaa540d)),await _0x3bcc49[_0x3d889a(0x167)](sendInstrumentationEvent,_0x5741c1,_0x3bcc49[_0x3d889a(0x15b)],messageTypes['ERROR'],_0x3bcc49[_0x3d889a(0x147)],_0xaa540d,_0x5741c1),process[_0x3d889a(0x176)](0x1);}catch(_0x5d9541){const _0x51b89e='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x5d9541+'\x20\x0a'+JSON['stringify'](_0x5d9541[_0x3d889a(0x146)])+'\x20';logger[_0x3d889a(0x178)](_0x51b89e),process[_0x3d889a(0x176)](0x1);}};
1
+ function a21_0x4be3(){const _0x372227=['body','WebSocket','parse','grid-id','NomEN','stop-grid-called','init-not-called','<UsernamePlaceholder>','default','ggmfu','addListeners','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','IFtJo','name','lZmVr','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','handler','IVKgq','debug','6795acmFgW','6825ZfPvXN','3480grZfSg','tevwg','clusterName','gridId','error','492JYmWyT','LpQqe','unauthorised','bstackUsername','../../utils/createk8sClient','epilogue','cloudProvider','MkuuM','stringify','../../utils/utilityMethods','5543888bhPxaz','Grid\x20stoppped.','clusterRegion','region','Stgrq','uGSYE','password','../../utils/instrumentationUtils','218627xNwwxe','3092DgFxFI','message','grid','4160250rfrSHu','info','6713721QAbNdy','reconnecting-websocket','KzSDr','Stopping\x20grid\x20','help','Browserstack','VoZKg','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','description','Stop\x20a\x20running\x20Automation\x20grid.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','RkllR','type','connectionTimeout','exit','stack','Adding\x20Websocket\x20listeners','USKuI','bstackAccesskey','desc','eTayc','ERROR','1608GoRexg','../../utils/webSocketUtils','replace','lSzGb','existsSync','username','server-error','gXfuB','GnrVr','skip-tls-cert-verify','usage'];a21_0x4be3=function(){return _0x372227;};return a21_0x4be3();}const a21_0x4d00ce=a21_0x4f0c;(function(_0x1c2769,_0x4b4a28){const _0x5c6f59=a21_0x4f0c,_0x1f8bee=_0x1c2769();while(!![]){try{const _0x1a37a9=parseInt(_0x5c6f59(0x11c))/0x1+parseInt(_0x5c6f59(0x10a))/0x2*(-parseInt(_0x5c6f59(0x103))/0x3)+-parseInt(_0x5c6f59(0x11d))/0x4*(-parseInt(_0x5c6f59(0x105))/0x5)+parseInt(_0x5c6f59(0x139))/0x6*(-parseInt(_0x5c6f59(0x104))/0x7)+-parseInt(_0x5c6f59(0x114))/0x8+parseInt(_0x5c6f59(0x122))/0x9+parseInt(_0x5c6f59(0x120))/0xa;if(_0x1a37a9===_0x4b4a28)break;else _0x1f8bee['push'](_0x1f8bee['shift']());}catch(_0x57f249){_0x1f8bee['push'](_0x1f8bee['shift']());}}}(a21_0x4be3,0x63671));function a21_0x4f0c(_0x40ea86,_0x4c75cf){const _0x4be370=a21_0x4be3();return a21_0x4f0c=function(_0x4f0c4e,_0x2e533e){_0x4f0c4e=_0x4f0c4e-0xeb;let _0x5215d5=_0x4be370[_0x4f0c4e];return _0x5215d5;},a21_0x4f0c(_0x40ea86,_0x4c75cf);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x4d00ce(0x123)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a21_0x4d00ce(0x113)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x4d00ce(0x11b)),webSocketUtils=require(a21_0x4d00ce(0x13a)),{createK8sClient}=require(a21_0x4d00ce(0x10e)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']=a21_0x4d00ce(0x11f),exports[a21_0x4d00ce(0x136)]=a21_0x4d00ce(0x12c),exports['builder']=function(_0x3b1e05){const _0x3d8f9a=a21_0x4d00ce,_0x184985={};_0x184985[_0x3d8f9a(0x119)]=_0x3d8f9a(0xf9),_0x184985['LLtqd']='string',_0x184985[_0x3d8f9a(0x106)]='Skip\x20insecure\x20cert\x20verification.',_0x184985[_0x3d8f9a(0x101)]='boolean',_0x184985[_0x3d8f9a(0xf7)]=_0x3d8f9a(0x126);const _0x4ba77f=_0x184985,_0x5ed9ad={};_0x5ed9ad[_0x3d8f9a(0x12b)]=_0x4ba77f[_0x3d8f9a(0x119)],_0x5ed9ad['type']=_0x4ba77f['LLtqd'];const _0x233c8d={};_0x233c8d[_0x3d8f9a(0x12b)]=_0x4ba77f[_0x3d8f9a(0x106)],_0x233c8d[_0x3d8f9a(0x12f)]=_0x4ba77f[_0x3d8f9a(0x101)],_0x233c8d[_0x3d8f9a(0xf6)]=![];const _0x309460={};return _0x309460[_0x3d8f9a(0xf1)]=_0x5ed9ad,_0x309460[_0x3d8f9a(0xec)]=_0x233c8d,_0x3b1e05[_0x3d8f9a(0xed)](HELP_HEADER_MESSAGE['stop'])[_0x3d8f9a(0x10f)](HELP_FOOTER_MESSAGE)['options'](_0x309460)[_0x3d8f9a(0x126)](_0x4ba77f['ggmfu'])[_0x3d8f9a(0x129)];},exports[a21_0x4d00ce(0x100)]=async function(_0x45e25f){const _0xa78361=a21_0x4d00ce,_0x45bba8={'NXHdL':_0xa78361(0xfb),'NomEN':function(_0x5bcff1){return _0x5bcff1();},'Kerke':_0xa78361(0x12d),'USKuI':function(_0x5d9106,_0x2ab8db,_0x1d943f,_0xf4c4de,_0x35d9f4,_0x25fd02,_0x40396c){return _0x5d9106(_0x2ab8db,_0x1d943f,_0xf4c4de,_0x35d9f4,_0x25fd02,_0x40396c);},'Stgrq':_0xa78361(0xf3),'jufkL':_0xa78361(0xf4),'MkuuM':function(_0x4a6471){return _0x4a6471();},'lZmVr':_0xa78361(0xf5),'KzSDr':'<PasswordPlaceholder>','eTayc':_0xa78361(0x133),'GnrVr':function(_0x3c62fb,_0x1d1f5e,_0x5412b5,_0x586eec){return _0x3c62fb(_0x1d1f5e,_0x5412b5,_0x586eec);},'gXfuB':function(_0x326e19,_0x5003e2,_0x289292){return _0x326e19(_0x5003e2,_0x289292);},'PSpTF':_0xa78361(0x115),'LpQqe':function(_0xa81774,_0x1e4dd9){return _0xa81774===_0x1e4dd9;},'VoZKg':_0xa78361(0xfa),'IFtJo':function(_0x2d9765,_0x31e74b,_0x248ffd,_0x462dce,_0x514c62,_0x1d6a55,_0x3453b9){return _0x2d9765(_0x31e74b,_0x248ffd,_0x462dce,_0x514c62,_0x1d6a55,_0x3453b9);},'lSzGb':_0xa78361(0x10c),'Puyuq':function(_0x439ba9,_0x179b5b,_0x231cb2,_0x41ed07,_0x308bc1,_0x2ab2e3,_0xa41405){return _0x439ba9(_0x179b5b,_0x231cb2,_0x41ed07,_0x308bc1,_0x2ab2e3,_0xa41405);},'hxtQG':'invalid-grid-id','RkllR':_0xa78361(0x13f)};let _0x333246;try{!_0x45e25f[_0xa78361(0x108)]&&(logger[_0xa78361(0x109)](_0x45bba8['NXHdL']),process['exit'](0x1));!fs[_0xa78361(0x13d)](_0x45bba8[_0xa78361(0xf2)](getCredentialsPath))&&(logger[_0xa78361(0x109)](_0x45bba8['Kerke']),await _0x45bba8[_0xa78361(0x134)](sendInstrumentationEvent,_0x45e25f,_0x45bba8[_0xa78361(0x118)],messageTypes['ERROR'],_0x45bba8['jufkL'],null,_0x45e25f),process[_0xa78361(0x131)](0x1));logger[_0xa78361(0x121)](_0xa78361(0x125)+_0x45e25f[_0xa78361(0x108)]),await _0x45bba8[_0xa78361(0x134)](sendInstrumentationEvent,_0x45e25f,_0x45bba8['Stgrq'],messageTypes['INFO'],null,null,_0x45e25f);const _0x208396=JSON[_0xa78361(0xf0)](fs['readFileSync'](_0x45bba8[_0xa78361(0x111)](getCredentialsPath)));global_registry[_0xa78361(0x10d)]=_0x208396[_0xa78361(0x127)][_0xa78361(0x13e)],global_registry[_0xa78361(0x135)]=_0x208396[_0xa78361(0x127)][_0xa78361(0x11a)];const _0x3946c2=WS_ENDPOINT[_0xa78361(0x13b)](_0x45bba8[_0xa78361(0xfe)],_0x208396[_0xa78361(0x127)][_0xa78361(0x13e)])['replace'](_0x45bba8[_0xa78361(0x124)],_0x208396['Browserstack'][_0xa78361(0x11a)]),_0x116cd8={};_0x116cd8[_0xa78361(0xef)]=ws,_0x116cd8[_0xa78361(0x130)]=0x36ee80,_0x333246=new ReconnectingWebSocket(_0x3946c2,[],_0x116cd8),logger[_0xa78361(0x102)](_0x45bba8[_0xa78361(0x137)]),webSocketUtils[_0xa78361(0xf8)](_0x333246,_0x45e25f['user'],_0x45e25f[_0xa78361(0x11a)]);const [_0x48c82d,_0x554ceb]=await _0x45bba8[_0xa78361(0xeb)](getGridDetails,_0x208396[_0xa78361(0x127)][_0xa78361(0x13e)],_0x208396[_0xa78361(0x127)][_0xa78361(0x11a)],_0x45e25f[_0xa78361(0x108)]);if(_0x554ceb){const _0x543b27=_0x554ceb[_0xa78361(0x121)];global_registry['cloudProvider']=_0x543b27[_0xa78361(0x110)],global_registry[_0xa78361(0x116)]=_0x543b27[_0xa78361(0x117)],global_registry[_0xa78361(0x107)]=_0x543b27['clusterName'];const _0x19c41e=await _0x45bba8[_0xa78361(0x134)](getCloudProviderObject,_0x543b27[_0xa78361(0x110)],_0x543b27[_0xa78361(0x107)],_0x543b27['name'],_0x333246,webSocketUtils,_0x45e25f),[_0x2b8095,_0x165bc4,_0x169405,_0x467a6,_0x4dae8b,_0x42fd85]=await _0x45bba8[_0xa78361(0x140)](createK8sClient,_0x19c41e,_0x45e25f['skipTlsCertVerify']);await _0x45bba8[_0xa78361(0x140)](scaleDownHubDeployment,_0x165bc4,_0x543b27[_0xa78361(0xfd)]),logger[_0xa78361(0x121)](_0x45bba8['PSpTF']),process[_0xa78361(0x131)](0x0);}_0x45bba8[_0xa78361(0x10b)](_0x48c82d['statusCode'],0x191)&&(logger[_0xa78361(0x109)](_0x45bba8[_0xa78361(0x128)]),await _0x45bba8[_0xa78361(0xfc)](sendInstrumentationEvent,_0x45e25f,_0x45bba8['Stgrq'],messageTypes[_0xa78361(0x138)],_0x45bba8[_0xa78361(0x13c)],null,_0x45e25f),process[_0xa78361(0x131)](0x1)),_0x45bba8[_0xa78361(0x10b)](_0x48c82d['statusCode'],0x190)&&(logger['error'](JSON[_0xa78361(0xf0)](_0x48c82d[_0xa78361(0xee)])[_0xa78361(0x11e)]),await _0x45bba8['Puyuq'](sendInstrumentationEvent,_0x45e25f,_0x45bba8[_0xa78361(0x118)],messageTypes[_0xa78361(0x138)],_0x45bba8['hxtQG'],null,_0x45e25f),process[_0xa78361(0x131)](0x1)),logger[_0xa78361(0x109)](_0xa78361(0x12a)+JSON[_0xa78361(0x112)](_0x48c82d)),await _0x45bba8[_0xa78361(0xfc)](sendInstrumentationEvent,_0x45e25f,_0x45bba8[_0xa78361(0x118)],messageTypes[_0xa78361(0x138)],_0x45bba8[_0xa78361(0x12e)],_0x48c82d,_0x45e25f),process[_0xa78361(0x131)](0x1);}catch(_0x4bad35){const _0x18fcf6=_0xa78361(0xff)+_0x4bad35+'\x20\x0a'+JSON['stringify'](_0x4bad35[_0xa78361(0x132)])+'\x20';logger['error'](_0x18fcf6),process[_0xa78361(0x131)](0x1);}};
@@ -1 +1 @@
1
- const a22_0x23dce3=a22_0x3409;(function(_0x2165f0,_0x29d341){const _0x10ba32=a22_0x3409,_0x463529=_0x2165f0();while(!![]){try{const _0x2fec55=parseInt(_0x10ba32(0x1e9))/0x1*(parseInt(_0x10ba32(0x1e0))/0x2)+parseInt(_0x10ba32(0x1a3))/0x3+-parseInt(_0x10ba32(0x203))/0x4*(-parseInt(_0x10ba32(0x1ca))/0x5)+parseInt(_0x10ba32(0x204))/0x6*(parseInt(_0x10ba32(0x1cc))/0x7)+parseInt(_0x10ba32(0x1fe))/0x8+-parseInt(_0x10ba32(0x209))/0x9*(parseInt(_0x10ba32(0x1f0))/0xa)+-parseInt(_0x10ba32(0x1f1))/0xb;if(_0x2fec55===_0x29d341)break;else _0x463529['push'](_0x463529['shift']());}catch(_0x1e2bcb){_0x463529['push'](_0x463529['shift']());}}}(a22_0x10eb,0x336b6),require(a22_0x23dce3(0x1e4))['config']());let gridURL=a22_0x23dce3(0x1cb),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x23dce3(0x1a4);function a22_0x10eb(){const _0x3931f9=['\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','browserstack-turboscale-grid','BrowserStack-Automate-TurboScale','INFO','start','messageTypes','split','log','CLUSTER','CLUSTER_AUTOSCALER_STACK_NAME','AZURE','info','cliRunStarted','TURBOSCALE_CUSTOM_TAGS','browserstack:service','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','gridUrl','NULL','init','CLI_RUN_FINISHED','error','grid','Key','5YtUrna','grid.browserstack.com','616721PMPAwH','pre-prod','list','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','REDACTED','pre_check','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','LOG','toLowerCase','AWS','browserstack:managedBy','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','GCP','delete','forEach','pre-check','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gcp','DASHBOARD_ENDPOINT','success','7278fFbwzU','api-preprod.bsstag.com','RAW_ARGS_REGEX','CLUSTER_HUB_HA_STACK_NAME','dotenv','CLI_RUN_STARTED','BSTACK-ATS-CLUSTER-AUTOSCALER','connect','CLOUD_PROVIDER','18DpCvwL','push','COMMON_HST_TAGS','high-scale-grid-cluster','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','DEFAULT_CLUSTER_DETAILS','prod','430MeRHlr','4628173MaSeef','LINK_MESSAGE','IAM_USER_NAME','unknown','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','BS_API_URL','grid-api-preprod.bsstag.com','CLI_ARGS_REGEX','stop','staging','WS_EVENTS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','107912tCPASM','BROWSERSTACK_ENV','env','aws','gridProfile','1463296fIDTZE','18KQDLMj','preprod','Value','HELP_FOOTER_MESSAGE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','69444PjGWuh','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','resourceInfo','BrowserStackIAMUser','grid-preprod.bsstag.com','DEFAULT_GRID_NAME','762063ztCAJm','grid-api.browserstack.com','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','grid-api-devhst.bsstag.com','AG_API_URL','HELP_HEADER_MESSAGE','stag','TRIAL_GRID_URL','credentials','warning','azure','RESOURCES','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','wss://','BrowserStack','high-scale-grid'];a22_0x10eb=function(){return _0x3931f9;};return a22_0x10eb();}const _env=(process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1ff)]||a22_0x23dce3(0x1ef))[a22_0x23dce3(0x1d4)]();if(_env===a22_0x23dce3(0x1fa)||_env===a22_0x23dce3(0x1a9))gridURL='grid-devhst.bsstag.com',bsApiUrl='api-devhst.bsstag.com',agApiUrl=a22_0x23dce3(0x1a6);else(_env===a22_0x23dce3(0x205)||_env===a22_0x23dce3(0x1cd))&&(gridURL=a22_0x23dce3(0x1a1),bsApiUrl=a22_0x23dce3(0x1e1),agApiUrl=a22_0x23dce3(0x1f7));exports['DASHBOARD_ENDPOINT']=process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1de)]||gridURL,exports[a22_0x23dce3(0x1f6)]=process[a22_0x23dce3(0x200)]['BS_API_URL']||bsApiUrl,exports['AG_API_URL']=process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1a7)]||agApiUrl,exports['WS_ENDPOINT']=a22_0x23dce3(0x1b0)+this['AG_API_URL']+a22_0x23dce3(0x1dc),exports['CP_CONFIG_FILE']=a22_0x23dce3(0x1ab),exports[a22_0x23dce3(0x1f3)]=a22_0x23dce3(0x20c),exports[a22_0x23dce3(0x1a2)]=a22_0x23dce3(0x1b2),exports[a22_0x23dce3(0x1d5)]=a22_0x23dce3(0x201),exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a22_0x23dce3(0x1bc)]=a22_0x23dce3(0x1e6),exports[a22_0x23dce3(0x1e3)]='BSTACK-ATS-CLUSTER-HUB-HA',exports['TURBOSCALE_DEPLOYMENT']=a22_0x23dce3(0x1b4),exports[a22_0x23dce3(0x1bd)]=a22_0x23dce3(0x1ad),exports[a22_0x23dce3(0x1d8)]=a22_0x23dce3(0x1dd),exports['ALL_SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x23dce3(0x1d5)],this[a22_0x23dce3(0x1bd)],this[a22_0x23dce3(0x1d8)]];function a22_0x3409(_0x15433b,_0x311bbd){const _0x10ebfe=a22_0x10eb();return a22_0x3409=function(_0x34093d,_0x3b55b8){_0x34093d=_0x34093d-0x1a1;let _0x2eeed0=_0x10ebfe[_0x34093d];return _0x2eeed0;},a22_0x3409(_0x15433b,_0x311bbd);}const a22_0x38f77b={};a22_0x38f77b[a22_0x23dce3(0x1c9)]=a22_0x23dce3(0x1d6),a22_0x38f77b['Value']=a22_0x23dce3(0x1b1);const a22_0x44b0a1={};a22_0x44b0a1[a22_0x23dce3(0x1c9)]='browserstack:service',a22_0x44b0a1[a22_0x23dce3(0x206)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x38f77b,a22_0x44b0a1];if(process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1c0)]){const parsedTags=process[a22_0x23dce3(0x200)][a22_0x23dce3(0x1c0)][a22_0x23dce3(0x1b9)](',');parsedTags[a22_0x23dce3(0x1da)](_0x31e117=>{const _0x4a42fb=a22_0x23dce3,_0x2b8a55=_0x31e117[_0x4a42fb(0x1b9)](':'),_0x5531d2={};_0x5531d2[_0x4a42fb(0x1c9)]=_0x2b8a55[0x0],_0x5531d2[_0x4a42fb(0x206)]=_0x2b8a55[0x1],common_hst_tags_list[_0x4a42fb(0x1ea)](_0x5531d2);});}exports[a22_0x23dce3(0x1eb)]=common_hst_tags_list;const a22_0x48bc86={};a22_0x48bc86[a22_0x23dce3(0x1d6)]=a22_0x23dce3(0x1b1),a22_0x48bc86[a22_0x23dce3(0x1c1)]=a22_0x23dce3(0x1b5),exports['HST_CLUSTER_TAGS']=a22_0x48bc86,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x23dce3(0x1d5)]];const a22_0x283e18={};a22_0x283e18[a22_0x23dce3(0x1d3)]=a22_0x23dce3(0x1ba),a22_0x283e18[a22_0x23dce3(0x1ae)]=a22_0x23dce3(0x20b),a22_0x283e18['GRID_URL']=a22_0x23dce3(0x1c3),a22_0x283e18[a22_0x23dce3(0x1e5)]=a22_0x23dce3(0x1bf),a22_0x283e18[a22_0x23dce3(0x1c6)]='cliRunFinished',exports[a22_0x23dce3(0x1fb)]=a22_0x283e18,exports['global_registry']={},exports['LINK_MESSAGE']=a22_0x23dce3(0x1fc);const a22_0xd66161={};a22_0xd66161['root']=a22_0x23dce3(0x1d2)+this['LINK_MESSAGE'],a22_0xd66161[a22_0x23dce3(0x1c5)]=a22_0x23dce3(0x1b3)+this['LINK_MESSAGE'],a22_0xd66161['configure']=a22_0x23dce3(0x1ed)+this[a22_0x23dce3(0x1f2)],a22_0xd66161['create']='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1ce)]={},a22_0xd66161[a22_0x23dce3(0x1d9)]=a22_0x23dce3(0x1fd)+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1e7)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a22_0xd66161[a22_0x23dce3(0x1b7)]=a22_0x23dce3(0x1f5)+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1f9)]=a22_0x23dce3(0x20a)+this['LINK_MESSAGE'],a22_0xd66161[a22_0x23dce3(0x1d1)]=a22_0x23dce3(0x1af)+this['LINK_MESSAGE'],a22_0xd66161[a22_0x23dce3(0x1ce)]['root']=a22_0x23dce3(0x1d7)+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1ce)][a22_0x23dce3(0x1c8)]=a22_0x23dce3(0x208)+this[a22_0x23dce3(0x1f2)],a22_0xd66161[a22_0x23dce3(0x1ce)][a22_0x23dce3(0x202)]=a22_0x23dce3(0x1c2)+this[a22_0x23dce3(0x1f2)],exports[a22_0x23dce3(0x1a8)]=a22_0xd66161,exports[a22_0x23dce3(0x207)]=a22_0x23dce3(0x1a5);const a22_0x5eaa2e={};a22_0x5eaa2e['SUCCESS']=a22_0x23dce3(0x1df),a22_0x5eaa2e['ERROR']=a22_0x23dce3(0x1c7),a22_0x5eaa2e[a22_0x23dce3(0x1b6)]=a22_0x23dce3(0x1be),a22_0x5eaa2e['WARNING']=a22_0x23dce3(0x1ac),a22_0x5eaa2e['UNKNOWN']=a22_0x23dce3(0x1f4),a22_0x5eaa2e[a22_0x23dce3(0x1c4)]=null,exports[a22_0x23dce3(0x1b8)]=a22_0x5eaa2e,exports[a22_0x23dce3(0x1f8)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x23dce3(0x1e2)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x23dce3(0x1d0)]='[REDACTED]';const a22_0x506fb7={};a22_0x506fb7['grid-profile']='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x104218={};a22_0x104218[a22_0x23dce3(0x1db)]=a22_0x506fb7,exports['MessageDescription']=a22_0x104218,exports[a22_0x23dce3(0x1aa)]=a22_0x23dce3(0x1cf);const a22_0xfa3c71={};a22_0xfa3c71[a22_0x23dce3(0x1bb)]=a22_0x23dce3(0x1ec),a22_0xfa3c71[a22_0x23dce3(0x1e8)]=a22_0x23dce3(0x201),a22_0xfa3c71['REGION']='us-east-1',exports[a22_0x23dce3(0x1ee)]=a22_0xfa3c71;
1
+ function a22_0x1b40(){const _0x49bc5e=['GCP','COMMON_HST_TAGS','BrowserStack','split','CP_CONFIG_FILE','high-scale-grid-cluster','pre-check','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','BrowserStack-Automate-TurboScale','stag','DASHBOARD_ENDPOINT','BSTACK-ATS-CLUSTER-HUB-HA','AZURE','grid-preprod.bsstag.com','8452zjreqF','TRIAL_GRID_URL','connect','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','CLUSTER','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','REDACTED','gridUrl','1241268Xzxpkl','delete','unknown','WS_ENDPOINT','log','config','api-devhst.bsstag.com','CLI_RUN_STARTED','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','[REDACTED]','success','root','grid-devhst.bsstag.com','AWS','pre-prod','RAW_ARGS_REGEX','configure','TURBOSCALE_DEPLOYMENT','RESOURCES','warning','api.browserstack.com','ERROR','CLOUD_PROVIDER','HELP_FOOTER_MESSAGE','LOG','INFO','prod','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','gcp','197576zugRca','CLI_RUN_FINISHED','global_registry','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','stop','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','list','BS_API_URL','GRID_URL','forEach','CLUSTER_DEP_STACK_NAME','Key','CLUSTER_AUTOSCALER_STACK_NAME','147usrWFp','api-preprod.bsstag.com','browserstack:service','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','HELP_HEADER_MESSAGE','WS_EVENTS','3635460MOFqdi','grid-profile','info','338547LvNliM','530FeHtHU','high-scale-grid','env','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','24443OuLfyB','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','error','messageTypes','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','push','DEFAULT_GRID_NAME','165729MTDiqy','browserstack:managedBy','us-east-1','UNKNOWN','dotenv','preprod','grid.browserstack.com','WARNING','aws','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BrowserStackIAMUser','90adGSPT','LINK_MESSAGE','grid','Value','DEFAULT_CLUSTER_DETAILS','20zuYIpQ','AG_API_URL','gridProfile','credentials','NULL','resourceInfo','TURBOSCALE_CUSTOM_TAGS','CLI_ARGS_REGEX'];a22_0x1b40=function(){return _0x49bc5e;};return a22_0x1b40();}const a22_0x2ab393=a22_0x2459;(function(_0x44e7a5,_0x4e0d46){const _0x1d9efa=a22_0x2459,_0x5b54a9=_0x44e7a5();while(!![]){try{const _0x5116e7=parseInt(_0x1d9efa(0x1dd))/0x1+parseInt(_0x1d9efa(0x183))/0x2*(parseInt(_0x1d9efa(0x1e4))/0x3)+-parseInt(_0x1d9efa(0x19a))/0x4*(parseInt(_0x1d9efa(0x1d8))/0x5)+-parseInt(_0x1d9efa(0x1a2))/0x6+-parseInt(_0x1d9efa(0x1ce))/0x7*(parseInt(_0x1d9efa(0x1c1))/0x8)+parseInt(_0x1d9efa(0x1d4))/0x9+parseInt(_0x1d9efa(0x17e))/0xa*(parseInt(_0x1d9efa(0x1d7))/0xb);if(_0x5116e7===_0x4e0d46)break;else _0x5b54a9['push'](_0x5b54a9['shift']());}catch(_0x1b1716){_0x5b54a9['push'](_0x5b54a9['shift']());}}}(a22_0x1b40,0x4b459),require(a22_0x2ab393(0x1e8))[a22_0x2ab393(0x1a7)]());let gridURL=a22_0x2ab393(0x1ea),bsApiUrl=a22_0x2ab393(0x1b6),agApiUrl='grid-api.browserstack.com';const _env=(process[a22_0x2ab393(0x1da)]['BROWSERSTACK_ENV']||a22_0x2ab393(0x1bc))['toLowerCase']();if(_env==='staging'||_env===a22_0x2ab393(0x195))gridURL=a22_0x2ab393(0x1ae),bsApiUrl=a22_0x2ab393(0x1a8),agApiUrl='grid-api-devhst.bsstag.com';else(_env===a22_0x2ab393(0x1e9)||_env===a22_0x2ab393(0x1b0))&&(gridURL=a22_0x2ab393(0x199),bsApiUrl=a22_0x2ab393(0x1cf),agApiUrl='grid-api-preprod.bsstag.com');exports['DASHBOARD_ENDPOINT']=process[a22_0x2ab393(0x1da)][a22_0x2ab393(0x196)]||gridURL,exports[a22_0x2ab393(0x1c8)]=process[a22_0x2ab393(0x1da)]['BS_API_URL']||bsApiUrl,exports[a22_0x2ab393(0x184)]=process[a22_0x2ab393(0x1da)][a22_0x2ab393(0x184)]||agApiUrl,exports[a22_0x2ab393(0x1a5)]='wss://'+this[a22_0x2ab393(0x184)]+a22_0x2ab393(0x1bf),exports[a22_0x2ab393(0x18f)]=a22_0x2ab393(0x186),exports['IAM_USER_NAME']=a22_0x2ab393(0x1ee),exports[a22_0x2ab393(0x1e3)]=a22_0x2ab393(0x1d9),exports[a22_0x2ab393(0x1af)]=a22_0x2ab393(0x1ec),exports[a22_0x2ab393(0x1cb)]='BSTACK-ATS-CLUSTER',exports[a22_0x2ab393(0x1cd)]='BSTACK-ATS-CLUSTER-AUTOSCALER',exports['CLUSTER_HUB_HA_STACK_NAME']=a22_0x2ab393(0x197),exports[a22_0x2ab393(0x1b3)]='browserstack-turboscale-grid',exports[a22_0x2ab393(0x198)]='azure',exports[a22_0x2ab393(0x18b)]=a22_0x2ab393(0x1c0),exports[a22_0x2ab393(0x192)]=[this[a22_0x2ab393(0x1af)],this[a22_0x2ab393(0x198)],this[a22_0x2ab393(0x18b)]];const a22_0x53f291={};a22_0x53f291[a22_0x2ab393(0x1cc)]=a22_0x2ab393(0x1e5),a22_0x53f291[a22_0x2ab393(0x181)]=a22_0x2ab393(0x18d);const a22_0x13f847={};a22_0x13f847[a22_0x2ab393(0x1cc)]=a22_0x2ab393(0x1d0),a22_0x13f847[a22_0x2ab393(0x181)]=a22_0x2ab393(0x194);const common_hst_tags_list=[a22_0x53f291,a22_0x13f847];if(process['env'][a22_0x2ab393(0x189)]){const parsedTags=process['env']['TURBOSCALE_CUSTOM_TAGS'][a22_0x2ab393(0x18e)](',');parsedTags[a22_0x2ab393(0x1ca)](_0x537c91=>{const _0x58b59e=a22_0x2ab393,_0x2f20ee=_0x537c91[_0x58b59e(0x18e)](':'),_0x43bcee={};_0x43bcee['Key']=_0x2f20ee[0x0],_0x43bcee[_0x58b59e(0x181)]=_0x2f20ee[0x1],common_hst_tags_list[_0x58b59e(0x1e2)](_0x43bcee);});}exports[a22_0x2ab393(0x18c)]=common_hst_tags_list;const a22_0x2746e8={};a22_0x2746e8['browserstack:managedBy']=a22_0x2ab393(0x18d),a22_0x2746e8[a22_0x2ab393(0x1d0)]=a22_0x2ab393(0x194),exports['HST_CLUSTER_TAGS']=a22_0x2746e8,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a22_0x2ab393(0x1af)]];const a22_0x4b70cd={};a22_0x4b70cd[a22_0x2ab393(0x1ba)]=a22_0x2ab393(0x1a6),a22_0x4b70cd[a22_0x2ab393(0x1b4)]=a22_0x2ab393(0x188),a22_0x4b70cd[a22_0x2ab393(0x1c9)]=a22_0x2ab393(0x1a1),a22_0x4b70cd[a22_0x2ab393(0x1a9)]='cliRunStarted',a22_0x4b70cd[a22_0x2ab393(0x1c2)]='cliRunFinished',exports[a22_0x2ab393(0x1d3)]=a22_0x4b70cd,exports[a22_0x2ab393(0x1c3)]={},exports['LINK_MESSAGE']=a22_0x2ab393(0x1d1);const a22_0x11bfaa={};function a22_0x2459(_0x220945,_0x1de4e0){const _0x1b4022=a22_0x1b40();return a22_0x2459=function(_0x2459c9,_0x99a87c){_0x2459c9=_0x2459c9-0x17e;let _0xc80eb9=_0x1b4022[_0x2459c9];return _0xc80eb9;},a22_0x2459(_0x220945,_0x1de4e0);}a22_0x11bfaa[a22_0x2ab393(0x1ad)]=a22_0x2ab393(0x193)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1b2)]=a22_0x2ab393(0x1de)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa['create']=a22_0x2ab393(0x1be)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1c7)]={},a22_0x11bfaa[a22_0x2ab393(0x1a3)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x11bfaa[a22_0x2ab393(0x19c)]=a22_0x2ab393(0x1c4)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa['start']=a22_0x2ab393(0x19d)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1c5)]=a22_0x2ab393(0x1aa)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa['pre_check']=a22_0x2ab393(0x19f)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1c7)][a22_0x2ab393(0x1ad)]=a22_0x2ab393(0x1c6)+this[a22_0x2ab393(0x17f)],a22_0x11bfaa[a22_0x2ab393(0x1c7)][a22_0x2ab393(0x180)]=a22_0x2ab393(0x1bd)+this['LINK_MESSAGE'],a22_0x11bfaa[a22_0x2ab393(0x1c7)][a22_0x2ab393(0x185)]=a22_0x2ab393(0x1db)+this[a22_0x2ab393(0x17f)],exports[a22_0x2ab393(0x1d2)]=a22_0x11bfaa,exports[a22_0x2ab393(0x1b9)]=a22_0x2ab393(0x1e1);const a22_0x5eb502={};a22_0x5eb502['SUCCESS']=a22_0x2ab393(0x1ac),a22_0x5eb502[a22_0x2ab393(0x1b7)]=a22_0x2ab393(0x1df),a22_0x5eb502[a22_0x2ab393(0x1bb)]=a22_0x2ab393(0x1d6),a22_0x5eb502[a22_0x2ab393(0x1eb)]=a22_0x2ab393(0x1b5),a22_0x5eb502[a22_0x2ab393(0x1e7)]=a22_0x2ab393(0x1a4),a22_0x5eb502[a22_0x2ab393(0x187)]=null,exports[a22_0x2ab393(0x1e0)]=a22_0x5eb502,exports[a22_0x2ab393(0x18a)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2ab393(0x1b1)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2ab393(0x1a0)]=a22_0x2ab393(0x1ab);const a22_0x29bd4d={};a22_0x29bd4d[a22_0x2ab393(0x1d5)]=a22_0x2ab393(0x1dc);const a22_0x15f42d={};a22_0x15f42d[a22_0x2ab393(0x191)]=a22_0x29bd4d,exports['MessageDescription']=a22_0x15f42d,exports[a22_0x2ab393(0x19b)]=a22_0x2ab393(0x1ed);const a22_0x930b59={};a22_0x930b59[a22_0x2ab393(0x19e)]=a22_0x2ab393(0x190),a22_0x930b59[a22_0x2ab393(0x1b8)]=a22_0x2ab393(0x1ec),a22_0x930b59['REGION']=a22_0x2ab393(0x1e6),exports[a22_0x2ab393(0x182)]=a22_0x930b59;
@@ -1 +1 @@
1
- function a23_0x1751(){const _0x33701c=['console.info','printf','name','join','4ybKqpA','level','\x20-\x20','createLogger','7dyRCPf','combine','usage.log','360eeIYUQ','colorize','debug','winston','6ZgBTsI','events.log','6843947ynfkzV','YYYY-MM-DD\x20HH:mm:ss','timestamp','message','File','1842558VJhFSO','194179rRCnRB','Console','existsSync','mkdirSync','transports','355445cAVTJj','5501136kZAPXJ','format','166384SEZdLJ','51102744sdqjya','10rLYtQa'];a23_0x1751=function(){return _0x33701c;};return a23_0x1751();}const a23_0x46bf56=a23_0x2a59;(function(_0x56262a,_0x14984c){const _0x4fa837=a23_0x2a59,_0x414511=_0x56262a();while(!![]){try{const _0x41830b=-parseInt(_0x4fa837(0xeb))/0x1*(parseInt(_0x4fa837(0xe3))/0x2)+-parseInt(_0x4fa837(0xea))/0x3+-parseInt(_0x4fa837(0xd8))/0x4*(parseInt(_0x4fa837(0xf0))/0x5)+-parseInt(_0x4fa837(0xf1))/0x6*(parseInt(_0x4fa837(0xdc))/0x7)+parseInt(_0x4fa837(0xd1))/0x8*(-parseInt(_0x4fa837(0xdf))/0x9)+parseInt(_0x4fa837(0xd3))/0xa*(-parseInt(_0x4fa837(0xe5))/0xb)+parseInt(_0x4fa837(0xd2))/0xc;if(_0x41830b===_0x14984c)break;else _0x414511['push'](_0x414511['shift']());}catch(_0x59ff09){_0x414511['push'](_0x414511['shift']());}}}(a23_0x1751,0x97515));const winston=require(a23_0x46bf56(0xe2)),fs=require('fs'),path=require('path'),logDir='log';!fs[a23_0x46bf56(0xed)](logDir)&&fs[a23_0x46bf56(0xee)](logDir);const a23_0x48c6b2={};a23_0x48c6b2[a23_0x46bf56(0xf2)]=a23_0x46bf56(0xe6);const a23_0x3cd318={};a23_0x3cd318['level']=!![];const a23_0x29f381={};a23_0x29f381[a23_0x46bf56(0xd6)]=a23_0x46bf56(0xd4),exports['logger']=new winston[(a23_0x46bf56(0xdb))]({'format':winston[a23_0x46bf56(0xf2)][a23_0x46bf56(0xdd)](winston[a23_0x46bf56(0xf2)][a23_0x46bf56(0xe7)](a23_0x48c6b2),winston[a23_0x46bf56(0xf2)][a23_0x46bf56(0xe0)](a23_0x3cd318),winston[a23_0x46bf56(0xf2)][a23_0x46bf56(0xd5)](_0x58c623=>_0x58c623[a23_0x46bf56(0xe7)]+a23_0x46bf56(0xda)+_0x58c623[a23_0x46bf56(0xd9)]+':\x20'+_0x58c623[a23_0x46bf56(0xe8)])),'transports':[new winston[(a23_0x46bf56(0xef))][(a23_0x46bf56(0xec))](a23_0x29f381),new winston['transports'][(a23_0x46bf56(0xe9))]({'filename':path[a23_0x46bf56(0xd7)](logDir,a23_0x46bf56(0xe4)),'level':a23_0x46bf56(0xe1)})]});function a23_0x2a59(_0x5b6623,_0x493e78){const _0x17515f=a23_0x1751();return a23_0x2a59=function(_0x2a5948,_0x7fc67f){_0x2a5948=_0x2a5948-0xd1;let _0x5e78d0=_0x17515f[_0x2a5948];return _0x5e78d0;},a23_0x2a59(_0x5b6623,_0x493e78);}const winstonFileLoggerParams={'transports':[new winston[(a23_0x46bf56(0xef))][(a23_0x46bf56(0xe9))]({'filename':path[a23_0x46bf56(0xd7)](logDir,a23_0x46bf56(0xde)),'level':'debug'})]};exports['fileLogger']=new winston['createLogger'](winstonFileLoggerParams);
1
+ function a23_0x37c3(_0x13ae63,_0x383cc5){const _0x488754=a23_0x4887();return a23_0x37c3=function(_0x37c333,_0x3bac1c){_0x37c333=_0x37c333-0x66;let _0x13a84d=_0x488754[_0x37c333];return _0x13a84d;},a23_0x37c3(_0x13ae63,_0x383cc5);}const a23_0x24e20a=a23_0x37c3;(function(_0x34329b,_0x1216c2){const _0x19d01c=a23_0x37c3,_0x3f13c2=_0x34329b();while(!![]){try{const _0x41b5be=parseInt(_0x19d01c(0x86))/0x1*(parseInt(_0x19d01c(0x76))/0x2)+parseInt(_0x19d01c(0x66))/0x3*(parseInt(_0x19d01c(0x69))/0x4)+parseInt(_0x19d01c(0x85))/0x5+-parseInt(_0x19d01c(0x71))/0x6+parseInt(_0x19d01c(0x6e))/0x7*(-parseInt(_0x19d01c(0x84))/0x8)+-parseInt(_0x19d01c(0x74))/0x9*(-parseInt(_0x19d01c(0x6f))/0xa)+-parseInt(_0x19d01c(0x75))/0xb*(-parseInt(_0x19d01c(0x6d))/0xc);if(_0x41b5be===_0x1216c2)break;else _0x3f13c2['push'](_0x3f13c2['shift']());}catch(_0xd04f06){_0x3f13c2['push'](_0x3f13c2['shift']());}}}(a23_0x4887,0x370e7));const winston=require(a23_0x24e20a(0x7c)),fs=require('fs'),path=require(a23_0x24e20a(0x7e)),logDir=a23_0x24e20a(0x67);!fs['existsSync'](logDir)&&fs[a23_0x24e20a(0x81)](logDir);function a23_0x4887(){const _0x5c3b87=['1743vifMee','321080amDeWa','combine','1390512PYmcvg','usage.log','logger','72PSRqJL','209iDGHJD','12xsfvxI','message','YYYY-MM-DD\x20HH:mm:ss','colorize','\x20-\x20','createLogger','winston','name','path','Console','timestamp','mkdirSync','printf','console.info','11056MjFZFz','200265acfiIf','28163CNYZNK','format','File','5895cttekM','log','transports','144yKAmuM','level','debug','join','167208YOFiuG'];a23_0x4887=function(){return _0x5c3b87;};return a23_0x4887();}const a23_0xa35a20={};a23_0xa35a20[a23_0x24e20a(0x87)]=a23_0x24e20a(0x78);const a23_0x3f0abf={};a23_0x3f0abf[a23_0x24e20a(0x6a)]=!![];const a23_0x2f8707={};a23_0x2f8707[a23_0x24e20a(0x7d)]=a23_0x24e20a(0x83),exports[a23_0x24e20a(0x73)]=new winston['createLogger']({'format':winston[a23_0x24e20a(0x87)][a23_0x24e20a(0x70)](winston[a23_0x24e20a(0x87)][a23_0x24e20a(0x80)](a23_0xa35a20),winston[a23_0x24e20a(0x87)][a23_0x24e20a(0x79)](a23_0x3f0abf),winston[a23_0x24e20a(0x87)][a23_0x24e20a(0x82)](_0x5bf925=>_0x5bf925[a23_0x24e20a(0x80)]+a23_0x24e20a(0x7a)+_0x5bf925[a23_0x24e20a(0x6a)]+':\x20'+_0x5bf925[a23_0x24e20a(0x77)])),'transports':[new winston[(a23_0x24e20a(0x68))][(a23_0x24e20a(0x7f))](a23_0x2f8707),new winston[(a23_0x24e20a(0x68))][(a23_0x24e20a(0x88))]({'filename':path[a23_0x24e20a(0x6c)](logDir,'events.log'),'level':a23_0x24e20a(0x6b)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x24e20a(0x68))][(a23_0x24e20a(0x88))]({'filename':path[a23_0x24e20a(0x6c)](logDir,a23_0x24e20a(0x72)),'level':'debug'})]};exports['fileLogger']=new winston[(a23_0x24e20a(0x7b))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x3fd340=a24_0x15b8;(function(_0xbce957,_0x549746){const _0x44ac95=a24_0x15b8,_0x3608ff=_0xbce957();while(!![]){try{const _0x1158e7=parseInt(_0x44ac95(0x208))/0x1+-parseInt(_0x44ac95(0x1f6))/0x2+parseInt(_0x44ac95(0x203))/0x3+-parseInt(_0x44ac95(0x202))/0x4*(-parseInt(_0x44ac95(0x207))/0x5)+-parseInt(_0x44ac95(0x200))/0x6*(parseInt(_0x44ac95(0x1fb))/0x7)+-parseInt(_0x44ac95(0x1ff))/0x8*(parseInt(_0x44ac95(0x1fd))/0x9)+parseInt(_0x44ac95(0x201))/0xa;if(_0x1158e7===_0x549746)break;else _0x3608ff['push'](_0x3608ff['shift']());}catch(_0x2dd8a5){_0x3608ff['push'](_0x3608ff['shift']());}}}(a24_0x10b0,0x71f57));function a24_0x15b8(_0x9dbd4d,_0x2f5f3f){const _0x10b0f1=a24_0x10b0();return a24_0x15b8=function(_0x15b87b,_0x529b6f){_0x15b87b=_0x15b87b-0x1f4;let _0x5556cf=_0x10b0f1[_0x15b87b];return _0x5556cf;},a24_0x15b8(_0x9dbd4d,_0x2f5f3f);}function a24_0x10b0(){const _0x4d7a43=['10716740JRDMIC','4SbdZPf','1401888Krmruv','help','exports','zAKlY','712735KzSDIx','111760kXAwNA','env','hKkGI','790304FpegLQ','commandDir','commands','./config/constants','demandCommand','196ZohJHy','root','522xEwiVV','epilogue','7448mIkvyi','188004yNubVx'];a24_0x10b0=function(){return _0x4d7a43;};return a24_0x10b0();}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3fd340(0x1f9));process[a24_0x3fd340(0x1f4)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0xdf1cac){const _0x4367a3=a24_0x3fd340,_0x1eb217={};_0x1eb217[_0x4367a3(0x1f5)]=_0x4367a3(0x1f8),_0x1eb217[_0x4367a3(0x206)]=_0x4367a3(0x204);const _0x48f56d=_0x1eb217;_0xdf1cac['usage'](HELP_HEADER_MESSAGE[_0x4367a3(0x1fc)])[_0x4367a3(0x1f7)](_0x48f56d[_0x4367a3(0x1f5)])[_0x4367a3(0x1fa)]()['help'](_0x48f56d['zAKlY'])[_0x4367a3(0x1fe)](HELP_FOOTER_MESSAGE);}module[a24_0x3fd340(0x205)]=run;
2
+ 'use strict';function a24_0x3cf0(){const _0x104aed=['762270AlofGV','8cftgte','dqIQv','./config/constants','948376UVvMqo','exports','2075103PZaviX','demandCommand','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','672889tDevTJ','env','104469rblxeq','2391356LHyvhd','24690UyBDay','help','44BYnwld','77sICndC','ywWYe','commands','775ETEBWK'];a24_0x3cf0=function(){return _0x104aed;};return a24_0x3cf0();}function a24_0x3387(_0x32568a,_0xf00b7a){const _0x3cf066=a24_0x3cf0();return a24_0x3387=function(_0x3387d8,_0x192620){_0x3387d8=_0x3387d8-0xe6;let _0x5516ef=_0x3cf066[_0x3387d8];return _0x5516ef;},a24_0x3387(_0x32568a,_0xf00b7a);}const a24_0x332635=a24_0x3387;(function(_0x246a99,_0x37146){const _0x3fd403=a24_0x3387,_0x99f3fc=_0x246a99();while(!![]){try{const _0x9f2179=parseInt(_0x3fd403(0xe9))/0x1+-parseInt(_0x3fd403(0xf4))/0x2*(parseInt(_0x3fd403(0xf0))/0x3)+parseInt(_0x3fd403(0xf1))/0x4+parseInt(_0x3fd403(0xf8))/0x5*(parseInt(_0x3fd403(0xf2))/0x6)+parseInt(_0x3fd403(0xee))/0x7*(parseInt(_0x3fd403(0xe6))/0x8)+-parseInt(_0x3fd403(0xeb))/0x9+parseInt(_0x3fd403(0xf9))/0xa*(-parseInt(_0x3fd403(0xf5))/0xb);if(_0x9f2179===_0x37146)break;else _0x99f3fc['push'](_0x99f3fc['shift']());}catch(_0x42422d){_0x99f3fc['push'](_0x99f3fc['shift']());}}}(a24_0x3cf0,0xb7151));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x332635(0xe8));process[a24_0x332635(0xef)][a24_0x332635(0xed)]=0x1;function run(_0x793d9f){const _0x3f9c42=a24_0x332635,_0x47bdcb={};_0x47bdcb[_0x3f9c42(0xf6)]=_0x3f9c42(0xf7),_0x47bdcb[_0x3f9c42(0xe7)]=_0x3f9c42(0xf3);const _0x3564db=_0x47bdcb;_0x793d9f['usage'](HELP_HEADER_MESSAGE['root'])['commandDir'](_0x3564db[_0x3f9c42(0xf6)])[_0x3f9c42(0xec)]()[_0x3f9c42(0xf3)](_0x3564db[_0x3f9c42(0xe7)])['epilogue'](HELP_FOOTER_MESSAGE);}module[a24_0x332635(0xea)]=run;