browserstack-node-sdk 1.42.3 → 1.42.5

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
+ const a15_0x5df693=a15_0x3a16;(function(_0x5850b0,_0x4878dc){const _0x207070=a15_0x3a16,_0x3b9fa2=_0x5850b0();while(!![]){try{const _0x359783=-parseInt(_0x207070(0x17e))/0x1*(-parseInt(_0x207070(0x191))/0x2)+parseInt(_0x207070(0x173))/0x3+parseInt(_0x207070(0x184))/0x4+-parseInt(_0x207070(0x196))/0x5+-parseInt(_0x207070(0x1c5))/0x6*(parseInt(_0x207070(0x1af))/0x7)+parseInt(_0x207070(0x17c))/0x8+parseInt(_0x207070(0x172))/0x9*(-parseInt(_0x207070(0x189))/0xa);if(_0x359783===_0x4878dc)break;else _0x3b9fa2['push'](_0x3b9fa2['shift']());}catch(_0x1299ff){_0x3b9fa2['push'](_0x3b9fa2['shift']());}}}(a15_0x1d76,0xe62da));const fs=require('fs'),got=require(a15_0x5df693(0x186)),{table}=require(a15_0x5df693(0x1ab)),{v4:uuidv4}=require(a15_0x5df693(0x179)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5df693(0x188)),{getCredentialsPath,getAuthHeader}=require(a15_0x5df693(0x19e)),{sendInstrumentationEvent}=require(a15_0x5df693(0x19b));function a15_0x3a16(_0x2dd2,_0x796ef2){const _0x1d760a=a15_0x1d76();return a15_0x3a16=function(_0x3a166d,_0x1d4758){_0x3a166d=_0x3a166d-0x171;let _0x28b6b7=_0x1d760a[_0x3a166d];return _0x28b6b7;},a15_0x3a16(_0x2dd2,_0x796ef2);}function a15_0x1d76(){const _0x1fa623=['qgLbc','../../utils/utilityMethods','existsSync','GzXmb','grid-name','username','gbbUJ','unauthorised','Failed\x20to\x20list\x20resources!\x20Error:\x20','https://','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','usage','vERzV','bstackUsername','table','/packages/cli/get-grids','ERROR','forEach','71687ijKJJr','clusterName','dkCwH','Browserstack','KXMAk','error','/packages/cli/get-all-grids','help','XLSvL','stringify','allGrids','MxQKL','list-grids-called','CfSIv','grid-id','type','cluster-name','KYmwM','unknown-error','init-not-called','readFileSync','running','150EDPaID','INFO','lZzDU','UsEES','bstackAccesskey','all-grids','282537lQNbPx','1266132hpYFyK','YRAPM','WElQt','uvkvq','IBKbt','server-error','uuid','boolean','builder','13880440WWWfMJ','grids','28DjECgd','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','SNeyY','parse','stack','log','5996240jEcxHY','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','got','aORTQ','../../config/constants','620uSdutQ','epilogue','GiPQw','requestId','yAIuk','YpNQG','desc','push','83742UnMXHM','EfRIO','command','options','body','8416730SfKdzn','exit','queued','TwOTi','password','../../utils/instrumentationUtils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a15_0x1d76=function(){return _0x1fa623;};return a15_0x1d76();}exports[a15_0x5df693(0x193)]=a15_0x5df693(0x17d),exports[a15_0x5df693(0x18f)]=a15_0x5df693(0x17f),exports[a15_0x5df693(0x17b)]=function(_0x189ed0){const _0x2a682d=a15_0x5df693,_0xbf4c4={};_0xbf4c4[_0x2a682d(0x187)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0xbf4c4['yAIuk']=_0x2a682d(0x17a),_0xbf4c4[_0x2a682d(0x1ba)]=_0x2a682d(0x1b6);const _0x5f178e=_0xbf4c4,_0x100e62={};_0x100e62['description']=_0x5f178e[_0x2a682d(0x187)],_0x100e62[_0x2a682d(0x1be)]=_0x5f178e[_0x2a682d(0x18d)];const _0x2b3339={};return _0x2b3339[_0x2a682d(0x171)]=_0x100e62,_0x189ed0[_0x2a682d(0x1a8)](HELP_HEADER_MESSAGE['list']['grid'])[_0x2a682d(0x18a)](HELP_FOOTER_MESSAGE)[_0x2a682d(0x194)](_0x2b3339)[_0x2a682d(0x1b6)](_0x5f178e[_0x2a682d(0x1ba)])['argv'];},exports['handler']=async function(_0x7786b1){const _0x50794d=a15_0x5df693,_0x33960e={'ZZLrG':function(_0x2bcf52){return _0x2bcf52();},'XLSvL':function(_0x4f550a){return _0x4f550a();},'YRAPM':_0x50794d(0x19c),'KXMAk':function(_0x2e375e,_0x5512e7,_0x2793f9,_0x220219,_0x1a4e74,_0x5d352c,_0x55e1d1){return _0x2e375e(_0x5512e7,_0x2793f9,_0x220219,_0x1a4e74,_0x5d352c,_0x55e1d1);},'vERzV':_0x50794d(0x1bb),'IgDKt':_0x50794d(0x1c2),'dkCwH':function(_0x4a3a30){return _0x4a3a30();},'WElQt':'GET','SNeyY':function(_0x3e9c5a,_0x13cf1f,_0x218a1c){return _0x3e9c5a(_0x13cf1f,_0x218a1c);},'TwOTi':function(_0x489d6e,_0x2ede6a,_0x49b450,_0x505784,_0x55a8a6,_0x2873b0,_0x4509e1){return _0x489d6e(_0x2ede6a,_0x49b450,_0x505784,_0x55a8a6,_0x2873b0,_0x4509e1);},'GiPQw':function(_0x588d13,_0x4407bd,_0x526026){return _0x588d13(_0x4407bd,_0x526026);},'NJdqN':function(_0x1a55eb,_0x5f1715){return _0x1a55eb!==_0x5f1715;},'YpNQG':function(_0x113a54,_0x52e1d9){return _0x113a54===_0x52e1d9;},'GzXmb':'\x0aFound\x20the\x20following\x20grids:\x0a','IBKbt':_0x50794d(0x1bd),'uvkvq':_0x50794d(0x1a1),'gbbUJ':'status','qgLbc':_0x50794d(0x1c4),'UsEES':_0x50794d(0x198),'EfRIO':_0x50794d(0x1bf),'uxdzW':function(_0x31888a,_0x37cee5){return _0x31888a(_0x37cee5);},'kGXXZ':function(_0x5d54e8,_0x5d075c){return _0x5d54e8===_0x5d075c;},'CfSIv':_0x50794d(0x185),'KYmwM':_0x50794d(0x1a4),'lZzDU':_0x50794d(0x178),'VyZnV':_0x50794d(0x1c1)};try{global_registry[_0x50794d(0x18c)]=_0x33960e['ZZLrG'](uuidv4);!fs[_0x50794d(0x19f)](_0x33960e[_0x50794d(0x1b7)](getCredentialsPath))&&(console[_0x50794d(0x1b4)](_0x33960e[_0x50794d(0x174)]),await _0x33960e[_0x50794d(0x1b3)](sendInstrumentationEvent,_0x7786b1,_0x33960e['vERzV'],messageTypes['ERROR'],_0x33960e['IgDKt'],null,_0x7786b1),process[_0x50794d(0x197)](0x1));const _0xd55ffa=JSON[_0x50794d(0x181)](fs[_0x50794d(0x1c3)](_0x33960e[_0x50794d(0x1b1)](getCredentialsPath)));let _0x3af29b=_0x50794d(0x1a6)+AG_API_URL+_0x50794d(0x1ac);_0x7786b1[_0x50794d(0x1b9)]&&(_0x3af29b=_0x50794d(0x1a6)+AG_API_URL+_0x50794d(0x1b5));const _0x116eff={'method':_0x33960e[_0x50794d(0x175)],'headers':_0x33960e[_0x50794d(0x180)](getAuthHeader,_0xd55ffa['Browserstack'][_0x50794d(0x1a2)],_0xd55ffa[_0x50794d(0x1b2)][_0x50794d(0x19a)]),'throwHttpErrors':![]};global_registry[_0x50794d(0x1aa)]=_0xd55ffa['Browserstack'][_0x50794d(0x1a2)],global_registry[_0x50794d(0x1c9)]=_0xd55ffa[_0x50794d(0x1b2)][_0x50794d(0x19a)],_0x33960e[_0x50794d(0x199)](sendInstrumentationEvent,_0x7786b1,_0x33960e[_0x50794d(0x1a9)],messageTypes[_0x50794d(0x1c6)],null,null,_0x7786b1);const _0x42bf43=await _0x33960e[_0x50794d(0x18b)](got,_0x3af29b,_0x116eff);if(_0x33960e['NJdqN'](_0x42bf43,null)&&_0x33960e['NJdqN'](_0x42bf43,undefined)&&_0x33960e[_0x50794d(0x18e)](_0x42bf43['statusCode'],0xc8)){const _0xaff0aa=JSON['parse'](_0x42bf43[_0x50794d(0x195)]);console[_0x50794d(0x183)](_0x33960e[_0x50794d(0x1a0)]);const _0x4370e9=[];_0x4370e9[_0x50794d(0x190)]([_0x33960e[_0x50794d(0x177)],_0x33960e[_0x50794d(0x176)],_0x33960e[_0x50794d(0x1a3)],_0x33960e[_0x50794d(0x19d)],_0x33960e[_0x50794d(0x1c8)],_0x33960e[_0x50794d(0x192)]]),_0xaff0aa[_0x50794d(0x1ae)](_0xdb7433=>{const _0x314425=_0x50794d;_0x4370e9[_0x314425(0x190)]([_0xdb7433['id'],_0xdb7433['name'],_0xdb7433['status'],_0xdb7433[_0x314425(0x1c4)],_0xdb7433['queued'],_0xdb7433[_0x314425(0x1b0)]]);}),console[_0x50794d(0x183)](_0x33960e['uxdzW'](table,_0x4370e9)),process['exit'](0x0);}_0x33960e['kGXXZ'](_0x42bf43['statusCode'],0x191)&&(console[_0x50794d(0x1b4)](_0x33960e[_0x50794d(0x1bc)]),await _0x33960e['KXMAk'](sendInstrumentationEvent,_0x7786b1,_0x33960e['vERzV'],messageTypes['ERROR'],_0x33960e[_0x50794d(0x1c0)],null,_0x7786b1),process['exit'](0x1)),console[_0x50794d(0x1b4)](_0x50794d(0x1a7)+JSON[_0x50794d(0x1b8)](_0x42bf43)),await _0x33960e[_0x50794d(0x1b3)](sendInstrumentationEvent,_0x7786b1,_0x33960e[_0x50794d(0x1a9)],messageTypes[_0x50794d(0x1ad)],_0x33960e[_0x50794d(0x1c7)],_0x42bf43,_0x7786b1),process[_0x50794d(0x197)](0x1);}catch(_0x482cc4){console[_0x50794d(0x1b4)](_0x50794d(0x1a5)+_0x482cc4[_0x50794d(0x182)]),await _0x33960e[_0x50794d(0x1b3)](sendInstrumentationEvent,_0x7786b1,_0x33960e['vERzV'],messageTypes[_0x50794d(0x1ad)],_0x33960e['VyZnV'],_0x482cc4,_0x7786b1),process[_0x50794d(0x197)](0x1);}};
@@ -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_0x283606=a16_0x5424;(function(_0x2a1068,_0x54040a){const _0x46ac90=a16_0x5424,_0x4ee16a=_0x2a1068();while(!![]){try{const _0x59a51e=-parseInt(_0x46ac90(0x9d))/0x1+parseInt(_0x46ac90(0xac))/0x2*(parseInt(_0x46ac90(0xa3))/0x3)+parseInt(_0x46ac90(0xa0))/0x4+-parseInt(_0x46ac90(0x9b))/0x5+parseInt(_0x46ac90(0xa5))/0x6*(parseInt(_0x46ac90(0xad))/0x7)+-parseInt(_0x46ac90(0xab))/0x8*(-parseInt(_0x46ac90(0x9e))/0x9)+-parseInt(_0x46ac90(0xaf))/0xa;if(_0x59a51e===_0x54040a)break;else _0x4ee16a['push'](_0x4ee16a['shift']());}catch(_0x21b805){_0x4ee16a['push'](_0x4ee16a['shift']());}}}(a16_0x2310,0x998ad));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x283606(0x9a));exports[a16_0x283606(0xae)]=a16_0x283606(0xa2),exports['desc']='Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup',exports[a16_0x283606(0xaa)]=function(_0x378ed6){const _0x18886a=a16_0x283606,_0x27eb3c={};_0x27eb3c['qnsZN']=_0x18886a(0xa8),_0x27eb3c[_0x18886a(0xa1)]=_0x18886a(0xa7);const _0x19c549=_0x27eb3c;return _0x378ed6[_0x18886a(0x9f)](HELP_HEADER_MESSAGE[_0x18886a(0xb0)])[_0x18886a(0xa4)](HELP_FOOTER_MESSAGE)[_0x18886a(0x9c)](_0x19c549[_0x18886a(0xa9)])['demandCommand']()['recommendCommands']()[_0x18886a(0xa6)]()[_0x18886a(0xa7)](_0x19c549[_0x18886a(0xa1)]);},exports['handler']=function(_0x173814){};function a16_0x5424(_0x276b34,_0x33459f){const _0x231013=a16_0x2310();return a16_0x5424=function(_0x54242e,_0x50a1f6){_0x54242e=_0x54242e-0x9a;let _0x2876ec=_0x231013[_0x54242e];return _0x2876ec;},a16_0x5424(_0x276b34,_0x33459f);}function a16_0x2310(){const _0x4e8ca9=['command','14036960gVVyZD','pre_check','../config/constants','2394685dvTZqA','commandDir','1097745FPuhLi','9yuxeHY','usage','3206904WeJwdl','hCSrR','pre-check','3cKLPxP','epilogue','12qoMshQ','strict','help','precheck_commands','qnsZN','builder','2825896qFRZCP','2402552mnxIwz','4385668ZWxyCi'];a16_0x2310=function(){return _0x4e8ca9;};return a16_0x2310();}
@@ -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_0x357d9e=a17_0x3d22;(function(_0x5e1597,_0x587e99){const _0x21a98a=a17_0x3d22,_0x18fbd2=_0x5e1597();while(!![]){try{const _0x417ba6=parseInt(_0x21a98a(0x2b5))/0x1+-parseInt(_0x21a98a(0x2ce))/0x2*(-parseInt(_0x21a98a(0x1e5))/0x3)+-parseInt(_0x21a98a(0x2c5))/0x4*(-parseInt(_0x21a98a(0x270))/0x5)+-parseInt(_0x21a98a(0x2a4))/0x6+parseInt(_0x21a98a(0x22f))/0x7*(-parseInt(_0x21a98a(0x206))/0x8)+parseInt(_0x21a98a(0x26a))/0x9+-parseInt(_0x21a98a(0x1f9))/0xa;if(_0x417ba6===_0x587e99)break;else _0x18fbd2['push'](_0x18fbd2['shift']());}catch(_0x3c4688){_0x18fbd2['push'](_0x18fbd2['shift']());}}}(a17_0x1736,0x6d14b));const fs=require('fs'),ws=require('ws'),got=require(a17_0x357d9e(0x2cc)),{v4:uuidv4}=require(a17_0x357d9e(0x21c)),ReconnectingWebSocket=require(a17_0x357d9e(0x246)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x357d9e(0x268)),{logger}=require(a17_0x357d9e(0x21e)),{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_0x357d9e(0x28d)),{getCloudProviderObjectWithOutInit}=require(a17_0x357d9e(0x208)),webSocketUtils=require(a17_0x357d9e(0x293)),{sendInstrumentationEvent}=require(a17_0x357d9e(0x2a3));exports[a17_0x357d9e(0x27a)]=a17_0x357d9e(0x26b),exports['desc']=a17_0x357d9e(0x201),exports[a17_0x357d9e(0x2b0)]=function(_0x2354d4){const _0x3f7317=a17_0x357d9e,_0x1452ba={};_0x1452ba[_0x3f7317(0x224)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x1452ba[_0x3f7317(0x228)]=_0x3f7317(0x23b),_0x1452ba[_0x3f7317(0x21f)]=_0x3f7317(0x20d),_0x1452ba[_0x3f7317(0x2be)]=_0x3f7317(0x20e),_0x1452ba[_0x3f7317(0x25d)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x1452ba['NQSwJ']=_0x3f7317(0x2d4);const _0x1de7b1=_0x1452ba,_0x119cea={};_0x119cea[_0x3f7317(0x29d)]=_0x1de7b1[_0x3f7317(0x224)],_0x119cea['type']=_0x1de7b1['Tsuxx'];const _0x4bcdb8={};_0x4bcdb8[_0x3f7317(0x29d)]=_0x1de7b1[_0x3f7317(0x21f)],_0x4bcdb8[_0x3f7317(0x265)]=_0x1de7b1[_0x3f7317(0x228)];const _0x5535a6={};_0x5535a6['description']=_0x1de7b1[_0x3f7317(0x2be)],_0x5535a6['type']=_0x1de7b1['Tsuxx'];const _0x425fb4={};_0x425fb4[_0x3f7317(0x29d)]=_0x1de7b1[_0x3f7317(0x25d)],_0x425fb4[_0x3f7317(0x265)]=_0x1de7b1[_0x3f7317(0x228)];const _0x135b2e={};return _0x135b2e[_0x3f7317(0x1e9)]=_0x119cea,_0x135b2e[_0x3f7317(0x2d0)]=_0x4bcdb8,_0x135b2e[_0x3f7317(0x28e)]=_0x5535a6,_0x135b2e[_0x3f7317(0x211)]=_0x425fb4,_0x2354d4[_0x3f7317(0x234)](HELP_HEADER_MESSAGE[_0x3f7317(0x254)])[_0x3f7317(0x269)](HELP_FOOTER_MESSAGE)['options'](_0x135b2e)[_0x3f7317(0x2d4)](_0x1de7b1[_0x3f7317(0x24f)])[_0x3f7317(0x2d1)];};function a17_0x3d22(_0x35a52f,_0x2c6a62){const _0x173681=a17_0x1736();return a17_0x3d22=function(_0x3d2236,_0x2e8395){_0x3d2236=_0x3d2236-0x1d9;let _0x32b863=_0x173681[_0x3d2236];return _0x32b863;},a17_0x3d22(_0x35a52f,_0x2c6a62);}async function inputValidation(_0x54a367,_0x2e032a){const _0x3a5e71=a17_0x357d9e,_0x427aff={'BDecB':_0x3a5e71(0x1dd),'qUtXI':_0x3a5e71(0x1d9),'PqwKJ':_0x3a5e71(0x284),'EGalS':_0x3a5e71(0x216),'dPMlX':_0x3a5e71(0x2d0),'UBcuH':_0x3a5e71(0x1e9),'KmLRq':_0x3a5e71(0x229),'sJUPP':_0x3a5e71(0x1f0),'PDavB':'region','VVxtz':_0x3a5e71(0x226),'XZEhE':_0x3a5e71(0x23b),'ybPzg':_0x3a5e71(0x20d),'SdOGc':_0x3a5e71(0x20e),'ixNgW':_0x3a5e71(0x214),'PURCP':_0x3a5e71(0x2d4),'dSgEv':function(_0x9d1999,_0x2b5b16){return _0x9d1999+_0x2b5b16;},'GcomJ':_0x3a5e71(0x2b4),'PXpCY':_0x3a5e71(0x29b),'KBdPu':function(_0x4e4588,_0x4421dd){return _0x4e4588||_0x4421dd;},'ffkfW':function(_0x2ffac7,_0x78fd9){return _0x2ffac7===_0x78fd9;},'yPnpa':'sBkZd','fecpZ':function(_0x19864f,_0x156ead){return _0x19864f!==_0x156ead;},'JVzMK':'WlCvn','xuBhu':function(_0x13177b,_0x22d7fb){return _0x13177b===_0x22d7fb;},'WCwFa':_0x3a5e71(0x288),'NFuiq':function(_0x4d7d63,_0x35dea0){return _0x4d7d63!==_0x35dea0;},'rhnVQ':_0x3a5e71(0x222),'tbtpQ':function(_0x37bf5f,_0x475225){return _0x37bf5f!==_0x475225;},'LdtXR':_0x3a5e71(0x207),'ZRFrV':_0x3a5e71(0x27c),'kbKvO':function(_0x232837,_0xe5aa85){return _0x232837>_0xe5aa85;},'ohdCj':function(_0x225248,_0x421b94){return _0x225248!==_0x421b94;},'YncaH':_0x3a5e71(0x257),'EyLuo':function(_0x1153fd,_0x133cca,_0x455690,_0x1bfd9e,_0x1a16a9,_0x5f27bd,_0x36d582,_0x3c7c92){return _0x1153fd(_0x133cca,_0x455690,_0x1bfd9e,_0x1a16a9,_0x5f27bd,_0x36d582,_0x3c7c92);},'AFlVb':'pre-check-grid-called','bOVMI':'pre-check-cluster-args-not-passed','MhonP':function(_0x4252bc,_0x15549a){return _0x4252bc===_0x15549a;},'brMgO':'AhuGR','YhzQo':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','oFGHo':_0x3a5e71(0x241),'qaAcc':'fLMdg','sTnZm':function(_0x40ac7c,_0x4903ce){return _0x40ac7c!==_0x4903ce;},'FCqrL':_0x3a5e71(0x23a),'XMANG':'GET','vZoYa':function(_0xb59cde,_0x10bcac,_0x20f28e){return _0xb59cde(_0x10bcac,_0x20f28e);},'kyBCM':function(_0x3c1448,_0x4dcace,_0x1a0f84,_0x13ad19,_0x3e966e,_0x1bef1d){return _0x3c1448(_0x4dcace,_0x1a0f84,_0x13ad19,_0x3e966e,_0x1bef1d);},'hcrhk':_0x3a5e71(0x2ca),'OLkvc':_0x3a5e71(0x211),'jDHFj':_0x3a5e71(0x1e7),'HYemY':_0x3a5e71(0x22c),'LyHnC':function(_0x292164,_0x387b3f){return _0x292164(_0x387b3f);},'roXXQ':function(_0x3df98d,_0x9b167){return _0x3df98d!==_0x9b167;},'wKwkn':_0x3a5e71(0x2a5),'tHFeZ':_0x3a5e71(0x2ab),'COiOP':function(_0x222d4a,_0x5ccad4,_0x2b394a,_0x426bc6,_0x2dfa45,_0x1ad42b,_0x57303d,_0x56eb3b){return _0x222d4a(_0x5ccad4,_0x2b394a,_0x426bc6,_0x2dfa45,_0x1ad42b,_0x57303d,_0x56eb3b);},'SqSAY':_0x3a5e71(0x1f4),'QYsci':function(_0x79ae48,_0x546c65){return _0x79ae48!==_0x546c65;},'cCpvR':_0x3a5e71(0x1ed),'sugTp':'GDfwK','nUPir':_0x3a5e71(0x21a),'ycnqY':'VaUOG','CWGEU':_0x3a5e71(0x2a9),'gnXFr':_0x3a5e71(0x2a8)};let _0x11973c;try{if(_0x427aff[_0x3a5e71(0x253)](_0x427aff['yPnpa'],_0x427aff[_0x3a5e71(0x2ac)])){if(_0x54a367[_0x3a5e71(0x218)]||_0x54a367[_0x3a5e71(0x28c)]||_0x54a367[_0x3a5e71(0x28e)]){if(_0x427aff[_0x3a5e71(0x250)](_0x427aff['JVzMK'],_0x427aff[_0x3a5e71(0x239)]))_0x49f957[_0x3a5e71(0x1d9)](_0x427aff[_0x3a5e71(0x21b)]),_0x86fb08[_0x3a5e71(0x2bc)](0x1);else{const _0x46a5fc=[];!_0x54a367[_0x3a5e71(0x218)]&&(_0x427aff[_0x3a5e71(0x205)](_0x427aff[_0x3a5e71(0x2c6)],_0x427aff[_0x3a5e71(0x2c6)])?_0x46a5fc[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x23e)]):_0x15f32f[_0x3a5e71(0x1d9)](_0x3a5e71(0x2d5)+_0x5b7d69[_0x3a5e71(0x1d9)][_0x3a5e71(0x23d)]));;!_0x54a367[_0x3a5e71(0x28c)]&&(_0x427aff[_0x3a5e71(0x200)](_0x427aff[_0x3a5e71(0x210)],_0x427aff['rhnVQ'])?(_0x5aa78a[_0x3a5e71(0x25e)]('['+_0x28ef50+_0x3a5e71(0x29e)+_0xbd3af5[_0x3a5e71(0x1e3)]+_0x3a5e71(0x1ee)+_0x1dcb1[_0x3a5e71(0x262)]+'\x20error\x20:\x20'+_0x502033[_0x3a5e71(0x1d9)]),_0x293efd[_0x3a5e71(0x1d9)]&&_0xa71f0e[_0x3a5e71(0x1d9)](_0x3a5e71(0x2d5)+_0x5902f1[_0x3a5e71(0x1d9)][_0x3a5e71(0x23d)])):_0x46a5fc[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x225)]));;if(!_0x54a367[_0x3a5e71(0x28e)]){if(_0x427aff[_0x3a5e71(0x233)](_0x427aff[_0x3a5e71(0x1e0)],_0x427aff[_0x3a5e71(0x28f)]))_0x46a5fc['push'](_0x427aff[_0x3a5e71(0x236)]);else{const _0x5b5a66={};_0x5b5a66[_0x3a5e71(0x265)]=_0x59a8d3[_0x3a5e71(0x27e)],_0x5b5a66[_0x3a5e71(0x223)]=_0xc3732d,_0x4ffcbc[_0x3a5e71(0x1ef)](_0x272d2d,_0x5b5a66,_0x427aff[_0x3a5e71(0x247)],!![]);}};_0x427aff[_0x3a5e71(0x291)](_0x46a5fc[_0x3a5e71(0x25b)],0x0)&&(_0x427aff[_0x3a5e71(0x2d3)](_0x427aff[_0x3a5e71(0x29f)],_0x427aff[_0x3a5e71(0x29f)])?(_0x5afe15['info'](_0x3a5e71(0x202)+_0x138dc7[_0x3a5e71(0x1db)]+'\x20'),_0xf9a881[_0x3a5e71(0x28c)]=_0x55ed58[_0x3a5e71(0x1db)]):(_0x11973c=_0x3a5e71(0x237)+_0x46a5fc[_0x3a5e71(0x2bd)](',\x20')+_0x3a5e71(0x2c9),await _0x427aff[_0x3a5e71(0x2af)](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes['ERROR'],_0x427aff[_0x3a5e71(0x2ba)],_0x427aff[_0x3a5e71(0x240)],_0x427aff['qUtXI']),logger[_0x3a5e71(0x1d9)](_0x11973c),process['exit'](0x1))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x3a5e71(0x261)](_0x54a367[_0x3a5e71(0x28c)][_0x3a5e71(0x23c)]())&&(_0x427aff['MhonP'](_0x427aff['brMgO'],_0x427aff[_0x3a5e71(0x21d)])?(_0x11973c=_0x427aff[_0x3a5e71(0x20b)],await _0x427aff[_0x3a5e71(0x2af)](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes[_0x3a5e71(0x24c)],_0x427aff[_0x3a5e71(0x2ba)],_0x427aff['oFGHo'],_0x427aff[_0x3a5e71(0x247)]),logger[_0x3a5e71(0x1d9)](_0x11973c),!_0x54a367[_0x3a5e71(0x28c)]&&(_0x427aff['ffkfW'](_0x427aff[_0x3a5e71(0x1dc)],_0x427aff[_0x3a5e71(0x1dc)])?(logger[_0x3a5e71(0x25e)](_0x3a5e71(0x202)+DEFAULT_CLUSTER_DETAILS[_0x3a5e71(0x1db)]+'\x20'),_0x54a367[_0x3a5e71(0x28c)]=DEFAULT_CLUSTER_DETAILS[_0x3a5e71(0x1db)]):_0x3cde22[_0x3a5e71(0x2bc)](0x1))):_0xc49328+='Cluster\x20'+_0xe9c04[_0x3a5e71(0x218)]+'\x20'+(_0xa16ddf?_0x427aff['PqwKJ']:_0x427aff['EGalS'])+'\x0a\x0a'),global_registry['clusterName']=_0x54a367[_0x3a5e71(0x218)],global_registry[_0x3a5e71(0x28c)]=_0x54a367[_0x3a5e71(0x28c)],global_registry['clusterRegion']=_0x54a367['region'];}}else{if(_0x54a367[_0x3a5e71(0x203)]){if(_0x427aff['sTnZm'](_0x427aff['FCqrL'],_0x427aff[_0x3a5e71(0x1fa)]))_0x7114bf[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x225)]);else{global_registry[_0x3a5e71(0x203)]=_0x54a367[_0x3a5e71(0x203)],logger['debug'](_0x3a5e71(0x20a)+_0x54a367[_0x3a5e71(0x203)]);const _0x1853a2=_0x3a5e71(0x2c4)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x38904d={};_0x38904d[_0x3a5e71(0x26c)]=_0x427aff[_0x3a5e71(0x2a7)],_0x38904d[_0x3a5e71(0x1fe)]=global_registry['authHeader'],_0x38904d[_0x3a5e71(0x259)]=![];const _0x5e7d4f=_0x38904d,_0x47c866=await _0x427aff[_0x3a5e71(0x1fb)](got,_0x1853a2,_0x5e7d4f),_0x4d7506=await _0x427aff[_0x3a5e71(0x260)](responseValidation,_0x47c866,_0x427aff[_0x3a5e71(0x1e4)],_0x427aff[_0x3a5e71(0x297)],_0x54a367,_0x2e032a);let _0x49c5bb={};if(_0x427aff[_0x3a5e71(0x205)](_0x4d7506,0xc8)){if(_0x427aff['xuBhu'](_0x427aff[_0x3a5e71(0x1f5)],_0x427aff['HYemY']))_0x5ee2d4=_0x423d06;else{const _0x381097=JSON['parse'](_0x47c866['body']),_0x72ec24=_0x381097[_0x3a5e71(0x1f8)](_0x2158ed=>_0x2158ed['name']===_0x54a367['gridProfile'])||null;_0x427aff[_0x3a5e71(0x2b7)](isUndefined,_0x72ec24)?_0x427aff[_0x3a5e71(0x221)](_0x427aff[_0x3a5e71(0x1f6)],_0x427aff[_0x3a5e71(0x2c1)])?(_0x11973c=_0x3a5e71(0x295)+_0x54a367[_0x3a5e71(0x203)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x427aff['COiOP'](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes[_0x3a5e71(0x24c)],_0x427aff['AFlVb'],_0x427aff['SqSAY'],_0x427aff['qUtXI']),logger[_0x3a5e71(0x1d9)](_0x11973c),process['exit'](0x1)):_0x52a286['push'](_0x427aff[_0x3a5e71(0x23e)]):_0x427aff[_0x3a5e71(0x258)](_0x427aff[_0x3a5e71(0x23f)],_0x427aff[_0x3a5e71(0x23f)])?(_0x409d01+=_0x427aff[_0x3a5e71(0x26e)],_0x3d1514+=_0x3a5e71(0x2b6)+(_0x5c5464[_0x3a5e71(0x223)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0x2bfff2+=_0x3a5e71(0x209)+(_0x2e3b27['code']||_0x427aff['sJUPP'])+'\x0a',_0x59bca2+=_0x3a5e71(0x296)+(_0x5d73c1[_0x3a5e71(0x23d)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a'):_0x49c5bb=_0x72ec24;}}else _0x427aff['xuBhu'](_0x427aff['sugTp'],_0x427aff[_0x3a5e71(0x285)])?process[_0x3a5e71(0x2bc)](0x1):_0x1f20d8[_0x3a5e71(0x2ad)](_0x427aff[_0x3a5e71(0x236)]);const _0x1d6186={};_0x1d6186[_0x3a5e71(0x265)]=WS_EVENTS[_0x3a5e71(0x27e)],_0x1d6186['message']=_0x427aff[_0x3a5e71(0x2cd)],webSocketUtils[_0x3a5e71(0x1ef)](_0x2e032a,_0x1d6186),global_registry[_0x3a5e71(0x28c)]=_0x49c5bb[_0x3a5e71(0x28c)],global_registry[_0x3a5e71(0x2bb)]=_0x49c5bb[_0x3a5e71(0x28e)],global_registry[_0x3a5e71(0x218)]=_0x49c5bb['clusterName'];}}else _0x427aff[_0x3a5e71(0x205)](_0x427aff[_0x3a5e71(0x252)],_0x427aff[_0x3a5e71(0x25f)])?_0x5b4545+=_0x3a5e71(0x24b)+_0x4029b1['clusterName']+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a':(logger[_0x3a5e71(0x1d9)](_0x427aff['BDecB']),process[_0x3a5e71(0x2bc)](0x1));}}else{const _0x361627={};_0x361627[_0x3a5e71(0x29d)]=_0x427aff['VVxtz'],_0x361627[_0x3a5e71(0x265)]=_0x427aff[_0x3a5e71(0x231)];const _0x1edf6d={};_0x1edf6d[_0x3a5e71(0x29d)]=_0x427aff['ybPzg'],_0x1edf6d[_0x3a5e71(0x265)]=_0x427aff[_0x3a5e71(0x231)];const _0x42adf7={};_0x42adf7[_0x3a5e71(0x29d)]=_0x427aff[_0x3a5e71(0x2cb)],_0x42adf7['type']=_0x427aff[_0x3a5e71(0x231)];const _0x423e12={};_0x423e12[_0x3a5e71(0x29d)]=_0x427aff[_0x3a5e71(0x1fc)],_0x423e12[_0x3a5e71(0x265)]=_0x427aff[_0x3a5e71(0x231)];const _0x34a312={};return _0x34a312[_0x3a5e71(0x1e9)]=_0x361627,_0x34a312['cloud-provider']=_0x1edf6d,_0x34a312[_0x3a5e71(0x28e)]=_0x42adf7,_0x34a312[_0x3a5e71(0x211)]=_0x423e12,_0x2d66e1[_0x3a5e71(0x234)](_0x443927[_0x3a5e71(0x254)])[_0x3a5e71(0x269)](_0x1542e1)[_0x3a5e71(0x1f3)](_0x34a312)[_0x3a5e71(0x2d4)](_0x427aff[_0x3a5e71(0x219)])['argv'];}}catch(_0x43e650){if(_0x427aff[_0x3a5e71(0x264)](_0x427aff[_0x3a5e71(0x2c8)],_0x427aff['gnXFr']))_0x11973c=_0x3a5e71(0x25c)+_0x43e650+':\x20'+_0x43e650[_0x3a5e71(0x23d)],logger[_0x3a5e71(0x1d9)](_0x11973c),await _0x427aff[_0x3a5e71(0x2af)](reportToGalactusAndSendToEDS,_0x54a367,_0x2e032a,_0x11973c,messageTypes['ERROR'],_0x427aff[_0x3a5e71(0x2ba)],_0x427aff['oFGHo'],_0x427aff[_0x3a5e71(0x247)]),process[_0x3a5e71(0x2bc)](0x1);else{const {header:_0xb5b1de,response:_0x27c888}=_0x25b3a3,{status:_0x1b8c46,data:_0x5e8dd4,error:_0x163545}=_0x27c888;_0x2c7ada+=_0xb5b1de+'\x20#'+_0x427aff['dSgEv'](_0x250fcf,0x1)+'\x0a',_0x127801+=_0x3a5e71(0x255)+(_0x1b8c46?_0x427aff[_0x3a5e71(0x29c)]:_0x427aff[_0x3a5e71(0x1fd)])+'\x0a',_0x326968+=_0x3a5e71(0x248)+_0x427aff[_0x3a5e71(0x29a)](_0x5e8dd4,_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0x163545&&(_0x36f547+=_0x427aff['KmLRq'],_0x449132+=_0x3a5e71(0x2b6)+(_0x163545['message']||_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0xddc596+=_0x3a5e71(0x209)+(_0x163545[_0x3a5e71(0x251)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a',_0x30ccab+=_0x3a5e71(0x296)+(_0x163545[_0x3a5e71(0x23d)]||_0x427aff[_0x3a5e71(0x245)])+'\x0a'),_0x1e156f+='\x0a\x0a';}}}function printResponse(_0x4918b3,_0x581eb0){const _0x3ce247=a17_0x357d9e,_0x36475f={};_0x36475f[_0x3ce247(0x290)]=function(_0xc8f8b,_0x4d7c15){return _0xc8f8b===_0x4d7c15;},_0x36475f[_0x3ce247(0x2c2)]=_0x3ce247(0x278),_0x36475f[_0x3ce247(0x292)]=_0x3ce247(0x2b9);const _0x15dfc6=_0x36475f;logger[_0x3ce247(0x25e)]('['+_0x4918b3+_0x3ce247(0x29e)+_0x581eb0['status']+_0x3ce247(0x1ee)+_0x581eb0['data']+_0x3ce247(0x2a0)+_0x581eb0[_0x3ce247(0x1d9)]),_0x581eb0[_0x3ce247(0x1d9)]&&(_0x15dfc6['mpiBE'](_0x15dfc6['dUTco'],_0x15dfc6[_0x3ce247(0x292)])?_0xfc9153['info'](_0x3ce247(0x266)+_0xf2ae21[_0x3ce247(0x218)]+_0x3ce247(0x289)):logger[_0x3ce247(0x1d9)](_0x3ce247(0x2d5)+_0x581eb0[_0x3ce247(0x1d9)]['stack']));}async function generateReport(_0x5874e0,_0x3cd494){const _0x4bc054=a17_0x357d9e,_0x547486={'Pwqga':function(_0xe7645c,_0x47b365){return _0xe7645c+_0x47b365;},'twLtr':_0x4bc054(0x2b4),'jiYCJ':_0x4bc054(0x29b),'PcLCJ':function(_0x2adac4,_0x58266e){return _0x2adac4||_0x58266e;},'uxSCy':'N/A','VyZaQ':'Error\x20Details:\x0a','VmgAx':_0x4bc054(0x1f2),'hTUIZ':function(_0x4a061d,_0x641d17){return _0x4a061d!=_0x641d17;},'DvKij':'is\x20already\x20present','lBVWM':'will\x20be\x20created','rIopf':function(_0x5b58af){return _0x5b58af();}};let _0x4d4e90='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x4bc054(0x28c)]+_0x4bc054(0x1e6);return _0x5874e0[_0x4bc054(0x1e8)]((_0x37da4f,_0x3a0e68)=>{const _0x159185=_0x4bc054,{header:_0x39ce36,response:_0x394d91}=_0x37da4f,{status:_0x5cf4c6,data:_0x3a6423,error:_0x4d7876}=_0x394d91;_0x4d4e90+=_0x39ce36+'\x20#'+_0x547486['Pwqga'](_0x3a0e68,0x1)+'\x0a',_0x4d4e90+=_0x159185(0x255)+(_0x5cf4c6?_0x547486['twLtr']:_0x547486[_0x159185(0x272)])+'\x0a',_0x4d4e90+=_0x159185(0x248)+_0x547486[_0x159185(0x28a)](_0x3a6423,_0x547486[_0x159185(0x277)])+'\x0a',_0x4d7876&&(_0x4d4e90+=_0x547486[_0x159185(0x27b)],_0x4d4e90+='\x20\x20Message:\x20'+(_0x4d7876[_0x159185(0x223)]||_0x547486[_0x159185(0x277)])+'\x0a',_0x4d4e90+=_0x159185(0x209)+(_0x4d7876[_0x159185(0x251)]||_0x547486[_0x159185(0x277)])+'\x0a',_0x4d4e90+='\x20\x20Stack:\x20'+(_0x4d7876['stack']||_0x547486[_0x159185(0x277)])+'\x0a'),_0x4d4e90+='\x0a\x0a';}),_0x4d4e90+=_0x547486[_0x4bc054(0x282)],_0x547486['hTUIZ'](_0x3cd494,null)?_0x4d4e90+=_0x4bc054(0x24b)+global_registry['clusterName']+'\x20'+(_0x3cd494?_0x547486[_0x4bc054(0x2a2)]:_0x547486[_0x4bc054(0x232)])+'\x0a\x0a':_0x4d4e90+=_0x4bc054(0x24b)+global_registry[_0x4bc054(0x218)]+_0x4bc054(0x1df),_0x4d4e90+=_0x547486['rIopf'](getSystemMetaData),_0x4d4e90;};exports[a17_0x357d9e(0x2c7)]=async function(_0x1c59f8){const _0x47bb8d=a17_0x357d9e,_0x249ec8={'dENtq':function(_0x2716d4){return _0x2716d4();},'ffNVO':function(_0x5dc98e){return _0x5dc98e();},'JLBay':_0x47bb8d(0x1f7),'iVfLE':function(_0x5abc4c,_0x38721f,_0x1c6701,_0x12a8a6,_0x4e35a2,_0x1cfb02,_0x180d71,_0x3aa19e){return _0x5abc4c(_0x38721f,_0x1c6701,_0x12a8a6,_0x4e35a2,_0x1cfb02,_0x180d71,_0x3aa19e);},'kMJyr':_0x47bb8d(0x263),'ccKXr':_0x47bb8d(0x249),'VxMld':_0x47bb8d(0x1d9),'sDAdh':function(_0x126fb1,_0x4d2c2c,_0x1f9545,_0x5930a4,_0x4c2b1e,_0xa45b05,_0x32c446){return _0x126fb1(_0x4d2c2c,_0x1f9545,_0x5930a4,_0x4c2b1e,_0xa45b05,_0x32c446);},'wJfUe':function(_0x4b5fe6){return _0x4b5fe6();},'paxiK':_0x47bb8d(0x27f),'NbbJz':_0x47bb8d(0x2a6),'DcykP':function(_0x511261,_0x5bd5b6,_0x51dddc){return _0x511261(_0x5bd5b6,_0x51dddc);},'yQMGz':function(_0x350bec,_0x3b8529,_0x283d7d){return _0x350bec(_0x3b8529,_0x283d7d);},'NOvxw':_0x47bb8d(0x256),'QfRhm':_0x47bb8d(0x2ae),'VVToG':_0x47bb8d(0x275),'PNomD':function(_0x4e5db7,_0x5f09da,_0x5dbd9f){return _0x4e5db7(_0x5f09da,_0x5dbd9f);},'OfZwV':_0x47bb8d(0x1e2),'hQIIc':function(_0x3827f8,_0x2b0408,_0x1afd17){return _0x3827f8(_0x2b0408,_0x1afd17);},'ChWtm':'isTrialGridAccessible','AOtuf':function(_0x2e19f1,_0x1c1435){return _0x2e19f1(_0x1c1435);},'WGQRP':_0x47bb8d(0x24d),'JJznc':'isTls1_2_SUPPORTED','MlXKF':_0x47bb8d(0x281),'CmoIk':_0x47bb8d(0x2aa),'vKxcQ':_0x47bb8d(0x227),'FzfUg':_0x47bb8d(0x2d2),'COZmo':function(_0x26ecf1,_0x17150c){return _0x26ecf1+_0x17150c;},'GunTR':'utf-8','Apkky':function(_0x5adea9,_0x4a2f93,_0x3fe259,_0x4831d5,_0x1f1249,_0xc41cfd,_0x52fd8c){return _0x5adea9(_0x4a2f93,_0x3fe259,_0x4831d5,_0x1f1249,_0xc41cfd,_0x52fd8c);},'HqTzj':'pre-check-failed'};let _0x335ac7,_0x36e987;try{global_registry[_0x47bb8d(0x274)]=_0x249ec8[_0x47bb8d(0x1de)](uuidv4);!fs[_0x47bb8d(0x235)](_0x249ec8[_0x47bb8d(0x28b)](getCredentialsPath))&&(_0x36e987=_0x249ec8['JLBay'],logger[_0x47bb8d(0x1d9)](_0x36e987),await _0x249ec8['iVfLE'](reportToGalactusAndSendToEDS,_0x1c59f8,_0x335ac7,_0x36e987,messageTypes[_0x47bb8d(0x24c)],_0x249ec8['kMJyr'],_0x249ec8['ccKXr'],_0x249ec8[_0x47bb8d(0x2b8)]),process[_0x47bb8d(0x2bc)](0x1));_0x249ec8[_0x47bb8d(0x299)](sendInstrumentationEvent,_0x1c59f8,_0x249ec8[_0x47bb8d(0x26f)],messageTypes[_0x47bb8d(0x220)],null,null,_0x1c59f8);const _0x12eed1=JSON[_0x47bb8d(0x1e1)](fs[_0x47bb8d(0x230)](_0x249ec8['wJfUe'](getCredentialsPath)));global_registry[_0x47bb8d(0x20f)]=_0x12eed1[_0x47bb8d(0x217)][_0x47bb8d(0x2c0)],global_registry[_0x47bb8d(0x279)]=_0x12eed1['Browserstack']['password'];const _0x55d967=WS_ENDPOINT[_0x47bb8d(0x1ea)](_0x249ec8['paxiK'],_0x12eed1[_0x47bb8d(0x217)][_0x47bb8d(0x2c0)])['replace'](_0x249ec8[_0x47bb8d(0x286)],_0x12eed1[_0x47bb8d(0x217)]['password']),_0x4057fa={};_0x4057fa[_0x47bb8d(0x1ec)]=ws,_0x4057fa[_0x47bb8d(0x298)]=0x36ee80,_0x335ac7=new ReconnectingWebSocket(_0x55d967,[],_0x4057fa),global_registry[_0x47bb8d(0x1eb)]=_0x249ec8['DcykP'](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),await _0x249ec8['yQMGz'](inputValidation,_0x1c59f8,_0x335ac7),logger[_0x47bb8d(0x25e)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x47bb8d(0x28c)]+_0x47bb8d(0x212)+global_registry[_0x47bb8d(0x2bb)]);let _0x399279=await _0x249ec8[_0x47bb8d(0x299)](getCloudProviderObjectWithOutInit,global_registry[_0x47bb8d(0x28c)],global_registry[_0x47bb8d(0x218)],_0x249ec8[_0x47bb8d(0x26d)],_0x335ac7,webSocketUtils,_0x1c59f8);const _0x3ebfab=await _0x399279[_0x47bb8d(0x243)]();_0x249ec8[_0x47bb8d(0x22a)](printResponse,_0x249ec8[_0x47bb8d(0x215)],_0x3ebfab),_0x399279=await _0x399279['init']();let _0x4d172f=![];try{_0x4d172f=await _0x399279[_0x47bb8d(0x20c)]();}catch(_0x1c6d01){const _0x4321d0=_0x249ec8[_0x47bb8d(0x22b)][_0x47bb8d(0x24e)]('|');let _0x3a818a=0x0;while(!![]){switch(_0x4321d0[_0x3a818a++]){case'0':_0x36e987=_0x47bb8d(0x276)+global_registry[_0x47bb8d(0x218)]+_0x47bb8d(0x238)+global_registry[_0x47bb8d(0x2bb)]+'`\x20,error\x20:\x20'+_0x1c6d01;continue;case'1':_0x4d172f=null;continue;case'2':logger['error'](_0x36e987);continue;case'3':_0x36e987+='\x0a'+JSON[_0x47bb8d(0x25a)](_0x1c6d01[_0x47bb8d(0x23d)]);continue;case'4':await _0x249ec8[_0x47bb8d(0x1ff)](reportToGalactusAndSendToEDS,_0x1c59f8,_0x335ac7,_0x36e987,messageTypes[_0x47bb8d(0x24c)],_0x249ec8[_0x47bb8d(0x26f)],_0x47bb8d(0x267)+global_registry[_0x47bb8d(0x28c)],_0x249ec8[_0x47bb8d(0x2b8)]);continue;}break;}}_0x4d172f&&logger[_0x47bb8d(0x25e)]('Cluster\x20`'+global_registry[_0x47bb8d(0x218)]+_0x47bb8d(0x289));const _0x2792f1=await _0x399279[_0x47bb8d(0x2b3)]();_0x249ec8[_0x47bb8d(0x273)](printResponse,_0x249ec8[_0x47bb8d(0x283)],_0x2792f1);const _0x471060=await _0x249ec8[_0x47bb8d(0x244)](curlRequest);_0x249ec8['hQIIc'](printResponse,_0x249ec8['ChWtm'],_0x471060);const _0x4c4766=await _0x249ec8['AOtuf'](isTlsSupported,_0x249ec8[_0x47bb8d(0x280)]);_0x249ec8[_0x47bb8d(0x2a1)](printResponse,_0x249ec8[_0x47bb8d(0x213)],_0x4c4766);const _0x1cc43f={};_0x1cc43f[_0x47bb8d(0x2bf)]=_0x249ec8[_0x47bb8d(0x22e)],_0x1cc43f['response']=_0x3ebfab;const _0x19657f={};_0x19657f[_0x47bb8d(0x2bf)]=_0x249ec8['CmoIk'],_0x19657f['response']=_0x2792f1;const _0x2ef143={};_0x2ef143['header']=_0x249ec8[_0x47bb8d(0x2cf)],_0x2ef143[_0x47bb8d(0x2b2)]=_0x471060;const _0x210782={};_0x210782[_0x47bb8d(0x2bf)]=_0x249ec8[_0x47bb8d(0x1f1)],_0x210782['response']=_0x4c4766;const _0x1e9cbb=[_0x1cc43f,_0x19657f,_0x2ef143,_0x210782],_0x3b0f18=await _0x249ec8[_0x47bb8d(0x2a1)](generateReport,_0x1e9cbb,_0x4d172f),_0x476c2a=new Date(),_0x5a1008=_0x476c2a[_0x47bb8d(0x24a)]()+'_'+_0x249ec8['COZmo'](_0x476c2a[_0x47bb8d(0x242)](),0x1)+'_'+_0x476c2a[_0x47bb8d(0x27d)]()+'_'+_0x476c2a['getUTCHours']()+'_'+_0x476c2a['getUTCMinutes'](),_0x2b56e9=_0x47bb8d(0x204)+_0x5a1008+'.txt';fs[_0x47bb8d(0x1da)](_0x2b56e9,_0x3b0f18,_0x249ec8[_0x47bb8d(0x22d)]),logger[_0x47bb8d(0x25e)](_0x47bb8d(0x2c3)+_0x2b56e9),process[_0x47bb8d(0x2bc)](0x0);}catch(_0x1ff381){let _0xc6bd1f=_0x47bb8d(0x287)+_0x1ff381+'\x20';logger[_0x47bb8d(0x1d9)](_0xc6bd1f),_0xc6bd1f+='\x0a'+JSON[_0x47bb8d(0x25a)](_0x1ff381[_0x47bb8d(0x23d)]),logger['debug'](_0x47bb8d(0x294)+_0x1ff381[_0x47bb8d(0x23d)]);if(_0x335ac7){const _0x25a1ab={};_0x25a1ab[_0x47bb8d(0x265)]=WS_EVENTS[_0x47bb8d(0x27e)],_0x25a1ab[_0x47bb8d(0x223)]=_0xc6bd1f,webSocketUtils['sendEventToBackend'](_0x335ac7,_0x25a1ab,_0x249ec8[_0x47bb8d(0x2b8)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x1f41a3={};_0x1f41a3['error']=_0xc6bd1f,await _0x249ec8[_0x47bb8d(0x2b1)](sendInstrumentationEvent,_0x1c59f8,_0x249ec8[_0x47bb8d(0x26f)],messageTypes[_0x47bb8d(0x24c)],_0x249ec8[_0x47bb8d(0x271)],_0x1f41a3,_0x1c59f8),process['exit'](0x1);}};function a17_0x1736(){const _0x156d34=['PDavB','Missing\x20required\x20arguments:\x20','`\x20is\x20present\x20in\x20region\x20`','JVzMK','EuhWO','string','toLowerCase','stack','UBcuH','cCpvR','bOVMI','cloud-provider-not-supported','getUTCMonth','isCliToolInstalled','wJfUe','sJUPP','reconnecting-websocket','qUtXI','Message:\x20','credential-not-found','getUTCFullYear','Cluster\x20','ERROR','TLSv1_2_client_method','split','NQSwJ','fecpZ','code','ycnqY','ffkfW','pre_check','Status:\x20','dummy-grid','XHuUX','QYsci','throwHttpErrors','stringify','length','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','NmvXi','info','CWGEU','kyBCM','includes','data','pre-check-grid-called','MhonP','type','Cluster\x20`','cluster-check-failed-','../../utils/utilityMethods','epilogue','877392shGyle','grid','method','NOvxw','KmLRq','kMJyr','15140CZbyyr','HqTzj','jiYCJ','PNomD','requestId','0|1|2|3|4','unable\x20to\x20verify\x20if\x20cluster\x20`','uxSCy','ueUnz','bstackAccesskey','command','VyZaQ','Cnsnb','getUTCDate','LOG','<UsernamePlaceholder>','WGQRP','Tool\x20Installed','VmgAx','OfZwV','is\x20already\x20present','sugTp','NbbJz','Failed\x20in\x20pre-check!\x20Error:\x20','JqTBo','`\x20already\x20exists','PcLCJ','ffNVO','cloudProvider','../../config/constants','region','ZRFrV','mpiBE','kbKvO','toVvV','../../utils/webSocketUtils','stack\x20trace\x20','Invalid\x20input.\x20grid\x20profiles:\x20','\x20\x20Stack:\x20','OLkvc','connectionTimeout','sDAdh','KBdPu','Failure','GcomJ','description',']\x20status\x20:\x20','YncaH','\x20error\x20:\x20','DcykP','DvKij','../../utils/instrumentationUtils','935478LpoaVG','qvaTr','<PasswordPlaceholder>','XMANG','NkCCO','oCekW','User\x20Access','LkbjT','yPnpa','push','toolInstalledResp','EyLuo','builder','Apkky','response','checkAccess','Success','255164cHZyDq','\x20\x20Message:\x20','LyHnC','VxMld','aPRKN','AFlVb','clusterRegion','exit','join','AqiYg','header','username','tHFeZ','dUTco','Report\x20saved\x20in\x20','https://','1112eaYSHD','WCwFa','handler','gnXFr','.\x20Please\x20provide\x20all\x20required\x20arguments.','pre-check','SdOGc','got','nUPir','11366tjzRhV','vKxcQ','cloud-provider','argv','SSL\x20Configured','ohdCj','help','error\x20stack\x20:\x20','error','writeFileSync','CLOUD_PROVIDER','qaAcc','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','dENtq','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','LdtXR','parse','accessResp','status','hcrhk','225rZWhno','\x20===\x0a\x0a','WXPqs','forEach','cluster-name','replace','authHeader','WebSocket','lZXnE','\x20data\x20:\x20','sendEventToBackend','N/A','FzfUg','Cluster\x20details\x0a-----------------------\x0a','options','pre-check-grid-profile-empty','jDHFj','wKwkn','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','find','8904730qtyjgJ','FCqrL','vZoYa','ixNgW','PXpCY','headers','iVfLE','NFuiq','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Setting\x20cloud\x20provider\x20as\x20','gridProfile','log/report_','xuBhu','80oDMVQy','EYICw','../../cloudproviders/utils','\x20\x20Code:\x20','grid\x20profile\x20flow\x20','YhzQo','isClusterPresent','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','bstackUsername','rhnVQ','grid-profile','\x20region\x20-\x20','JJznc','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','QfRhm','will\x20be\x20created','Browserstack','clusterName','PURCP','Grid\x20profile\x20fetched\x20for\x20pre-check','BDecB','uuid','brMgO','../../config/logger','sHUpR','INFO','roXXQ','fmcWQ','message','yFVwl','dPMlX','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Whitelisted\x20browserstack','Tsuxx','Error\x20Details:\x0a','yQMGz','VVToG','aznSY','GunTR','MlXKF','89236QlXEaZ','readFileSync','XZEhE','lBVWM','tbtpQ','usage','existsSync'];a17_0x1736=function(){return _0x156d34;};return a17_0x1736();}
@@ -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_0x4eb497=a18_0x3979;(function(_0x567318,_0x2dfbd5){const _0x4d131e=a18_0x3979,_0x3072c4=_0x567318();while(!![]){try{const _0x149c06=parseInt(_0x4d131e(0x109))/0x1*(-parseInt(_0x4d131e(0xf9))/0x2)+-parseInt(_0x4d131e(0x102))/0x3+-parseInt(_0x4d131e(0x105))/0x4+-parseInt(_0x4d131e(0x101))/0x5+-parseInt(_0x4d131e(0xfd))/0x6*(parseInt(_0x4d131e(0xf5))/0x7)+parseInt(_0x4d131e(0x104))/0x8*(parseInt(_0x4d131e(0xf6))/0x9)+parseInt(_0x4d131e(0x106))/0xa;if(_0x149c06===_0x2dfbd5)break;else _0x3072c4['push'](_0x3072c4['shift']());}catch(_0x536712){_0x3072c4['push'](_0x3072c4['shift']());}}}(a18_0x2aff,0x8df28));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x4eb497(0x100));exports[a18_0x4eb497(0xfc)]='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports['builder']=function(_0x4104df){const _0x507510=a18_0x4eb497,_0x1db032={};_0x1db032[_0x507510(0x107)]=_0x507510(0xf8),_0x1db032[_0x507510(0xfe)]=_0x507510(0x10a);const _0x5903ba=_0x1db032;return _0x4104df['usage'](HELP_HEADER_MESSAGE[_0x507510(0xfb)])[_0x507510(0xfa)](HELP_FOOTER_MESSAGE)[_0x507510(0xf7)](_0x5903ba[_0x507510(0x107)])[_0x507510(0x108)]()[_0x507510(0xff)]()['strict']()[_0x507510(0x10a)](_0x5903ba[_0x507510(0xfe)]);},exports[a18_0x4eb497(0x103)]=function(_0x1fbf32){};function a18_0x3979(_0x1d4796,_0x4e99af){const _0x2affe7=a18_0x2aff();return a18_0x3979=function(_0x3979f0,_0x28a691){_0x3979f0=_0x3979f0-0xf5;let _0x5c2864=_0x2affe7[_0x3979f0];return _0x5c2864;},a18_0x3979(_0x1d4796,_0x4e99af);}function a18_0x2aff(){const _0x5e367a=['26266230gNjvyu','WCcxM','demandCommand','435558zgTKgh','help','27090jFNoBL','28035yOHIsq','commandDir','start_commands','4CUzsYP','epilogue','start','command','654vxqUmr','OsJhN','recommendCommands','../config/constants','1371215THGdpu','770190lUjNIZ','handler','1912DHWIfN','3863092drWjni'];a18_0x2aff=function(){return _0x5e367a;};return a18_0x2aff();}
@@ -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_0x20c2f2=a19_0x16d5;function a19_0x16d5(_0x3aaa5e,_0x30c04f){const _0x23128e=a19_0x2312();return a19_0x16d5=function(_0x16d559,_0xa38d11){_0x16d559=_0x16d559-0xd5;let _0x9696fa=_0x23128e[_0x16d559];return _0x9696fa;},a19_0x16d5(_0x3aaa5e,_0x30c04f);}function a19_0x2312(){const _0x3a05ed=['start-grid-called','wCnJr','replace','error','1255135dkLtsT','Browserstack','AMiZe','brZeV','cloudProvider','../../utils/gridComponents','NAERk','../../utils/utilityMethods','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','handler','NEHPz','skip-tls-cert-verify','nEjuN','794352lCPEZp','name','parse','clusterName','<UsernamePlaceholder>','default','../../config/logger','desc','usage','cyovw','bstackUsername','stringify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','clusterRegion','5uFKtDd','statusCode','159gziGgd','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','ERROR','TnPtd','wTdbJ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','11UKMmRM','6164076AkcAxO','eorTf','VJNLK','hVYmi','password','addListeners','1356664QGmOKL','existsSync','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','639970AcaLVW','../../utils/instrumentationUtils','../../utils/webSocketUtils','tkLVx','info','start','unauthorised','qxjYs','bQNXg','1031oseAyF','invalid-grid-id','username','help','190wAXtEh','reconnecting-websocket','Start\x20an\x20existing\x20Automation\x20grid.','SQawo','server-error','gridId','aebTT','bstackAccesskey','readFileSync','grid','epilogue','string','skipTlsCertVerify','INFO','command','message','JSguy','grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','HwEZY','connectionTimeout','init-not-called','KVGMt','region','boolean','type','27qJzeux','2996xcEDJD','description','<PasswordPlaceholder>','Grid\x20started','rHpnC'];a19_0x2312=function(){return _0x3a05ed;};return a19_0x2312();}(function(_0x1bbf69,_0x8724f9){const _0x467c6a=a19_0x16d5,_0x20edf5=_0x1bbf69();while(!![]){try{const _0x3380cd=-parseInt(_0x467c6a(0xef))/0x1*(parseInt(_0x467c6a(0xf3))/0x2)+parseInt(_0x467c6a(0xd5))/0x3*(parseInt(_0x467c6a(0x10e))/0x4)+-parseInt(_0x467c6a(0x132))/0x5*(parseInt(_0x467c6a(0x124))/0x6)+-parseInt(_0x467c6a(0x117))/0x7+parseInt(_0x467c6a(0xe2))/0x8+-parseInt(_0x467c6a(0x10d))/0x9*(parseInt(_0x467c6a(0xe6))/0xa)+parseInt(_0x467c6a(0xdb))/0xb*(parseInt(_0x467c6a(0xdc))/0xc);if(_0x3380cd===_0x8724f9)break;else _0x20edf5['push'](_0x20edf5['shift']());}catch(_0x5504f2){_0x20edf5['push'](_0x20edf5['shift']());}}}(a19_0x2312,0x1d9e8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x20c2f2(0xf4)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x20c2f2(0x12a)),{getCredentialsPath,getGridDetails}=require(a19_0x20c2f2(0x11e)),{scaleUpHubDeployment}=require(a19_0x20c2f2(0x11c)),{sendInstrumentationEvent}=require(a19_0x20c2f2(0xe7)),webSocketUtils=require(a19_0x20c2f2(0xe8)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x20c2f2(0x101)]=a19_0x20c2f2(0xfc),exports[a19_0x20c2f2(0x12b)]=a19_0x20c2f2(0xf5),exports['builder']=function(_0x18017a){const _0x3b3266=a19_0x20c2f2,_0x16a48e={};_0x16a48e[_0x3b3266(0x12d)]=_0x3b3266(0x130),_0x16a48e['aebTT']=_0x3b3266(0xfe),_0x16a48e[_0x3b3266(0x103)]='Skip\x20insecure\x20cert\x20verification.',_0x16a48e[_0x3b3266(0x112)]=_0x3b3266(0x10b),_0x16a48e[_0x3b3266(0xdd)]=_0x3b3266(0xf2);const _0x27a1cb=_0x16a48e,_0x4dd921={};_0x4dd921['description']=_0x27a1cb[_0x3b3266(0x12d)],_0x4dd921['type']=_0x27a1cb[_0x3b3266(0xf9)];const _0x3af6b7={};_0x3af6b7[_0x3b3266(0x10f)]=_0x27a1cb[_0x3b3266(0x103)],_0x3af6b7[_0x3b3266(0x10c)]=_0x27a1cb[_0x3b3266(0x112)],_0x3af6b7[_0x3b3266(0x129)]=![];const _0x3a231e={};return _0x3a231e[_0x3b3266(0x104)]=_0x4dd921,_0x3a231e[_0x3b3266(0x122)]=_0x3af6b7,_0x18017a[_0x3b3266(0x12c)](HELP_HEADER_MESSAGE[_0x3b3266(0xeb)])[_0x3b3266(0xfd)](HELP_FOOTER_MESSAGE)['options'](_0x3a231e)[_0x3b3266(0xf2)](_0x27a1cb[_0x3b3266(0xdd)])['argv'];},exports[a19_0x20c2f2(0x120)]=async function(_0x6222b2){const _0x79f173=a19_0x20c2f2,_0x1348bc={'GHtAC':_0x79f173(0x11f),'nEjuN':function(_0x4a3526){return _0x4a3526();},'VJNLK':_0x79f173(0x105),'NEHPz':function(_0x3cc4fd,_0x2d89ce,_0x3420df,_0x243c1c,_0x1c5493,_0x52ad17,_0x3d1b45){return _0x3cc4fd(_0x2d89ce,_0x3420df,_0x243c1c,_0x1c5493,_0x52ad17,_0x3d1b45);},'AMiZe':_0x79f173(0x113),'hVYmi':_0x79f173(0x108),'brZeV':function(_0x4e84a1,_0x280683,_0x4368cc,_0x59426b,_0x4dc8a4,_0x598b13,_0x1321d7){return _0x4e84a1(_0x280683,_0x4368cc,_0x59426b,_0x4dc8a4,_0x598b13,_0x1321d7);},'KsrcC':function(_0x194954){return _0x194954();},'PMISK':_0x79f173(0x128),'wCnJr':_0x79f173(0x110),'IPMhF':'Adding\x20Websocket\x20listeners','SQawo':function(_0x179398,_0x14b718,_0x5124d6,_0x54057f){return _0x179398(_0x14b718,_0x5124d6,_0x54057f);},'TnPtd':function(_0xec6e19,_0xb8a203,_0x292d85){return _0xec6e19(_0xb8a203,_0x292d85);},'bQNXg':function(_0x322f85,_0x32839e,_0x56daf3){return _0x322f85(_0x32839e,_0x56daf3);},'KVGMt':_0x79f173(0x111),'tkLVx':function(_0x313c7a,_0x1be44f){return _0x313c7a===_0x1be44f;},'HwEZY':_0x79f173(0xe5),'tmuGt':_0x79f173(0xec),'YFfFr':function(_0x34f0ac,_0x43c56d){return _0x34f0ac===_0x43c56d;},'jLKAn':function(_0x265a1c,_0x863a72,_0x1d5ed8,_0x39141a,_0x1b6019,_0x2eb473,_0x4d3024){return _0x265a1c(_0x863a72,_0x1d5ed8,_0x39141a,_0x1b6019,_0x2eb473,_0x4d3024);},'qxjYs':_0x79f173(0xf0),'NAERk':function(_0x4b126f,_0x5c5d8d,_0x481da2,_0x447666,_0x369ee2,_0x20bfe9,_0xabbc10){return _0x4b126f(_0x5c5d8d,_0x481da2,_0x447666,_0x369ee2,_0x20bfe9,_0xabbc10);},'wTdbJ':_0x79f173(0xf7)};let _0x1627b7;try{!_0x6222b2[_0x79f173(0xf8)]&&(logger['error'](_0x1348bc['GHtAC']),process['exit'](0x1));!fs[_0x79f173(0xe3)](_0x1348bc[_0x79f173(0x123)](getCredentialsPath))&&(logger[_0x79f173(0x116)](_0x1348bc[_0x79f173(0xde)]),await _0x1348bc[_0x79f173(0x121)](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes[_0x79f173(0xd7)],_0x1348bc[_0x79f173(0xdf)],null,_0x6222b2),process[_0x79f173(0xe4)](0x1));logger[_0x79f173(0xea)]('Starting\x20grid\x20'+_0x6222b2['gridId']),await _0x1348bc['brZeV'](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes[_0x79f173(0x100)],null,null,_0x6222b2);const _0x371c9a=JSON[_0x79f173(0x126)](fs[_0x79f173(0xfb)](_0x1348bc['KsrcC'](getCredentialsPath)));global_registry[_0x79f173(0x12e)]=_0x371c9a['Browserstack'][_0x79f173(0xf1)],global_registry[_0x79f173(0xfa)]=_0x371c9a[_0x79f173(0x118)]['password'];const _0x2031bb=WS_ENDPOINT[_0x79f173(0x115)](_0x1348bc['PMISK'],_0x371c9a[_0x79f173(0x118)]['username'])[_0x79f173(0x115)](_0x1348bc[_0x79f173(0x114)],_0x371c9a['Browserstack'][_0x79f173(0xe0)]),_0x2d108a={};_0x2d108a['WebSocket']=ws,_0x2d108a[_0x79f173(0x107)]=0x36ee80,_0x1627b7=new ReconnectingWebSocket(_0x2031bb,[],_0x2d108a),logger['debug'](_0x1348bc['IPMhF']),webSocketUtils[_0x79f173(0xe1)](_0x1627b7,_0x6222b2['user'],_0x6222b2[_0x79f173(0xe0)]);const [_0x59c914,_0x1d2f55]=await _0x1348bc[_0x79f173(0xf6)](getGridDetails,_0x371c9a[_0x79f173(0x118)][_0x79f173(0xf1)],_0x371c9a['Browserstack'][_0x79f173(0xe0)],_0x6222b2[_0x79f173(0xf8)]);if(_0x1d2f55){const _0x4add88=_0x1d2f55[_0x79f173(0xea)];global_registry[_0x79f173(0x11b)]=_0x4add88[_0x79f173(0x11b)],global_registry[_0x79f173(0x131)]=_0x4add88[_0x79f173(0x10a)],global_registry[_0x79f173(0x127)]=_0x4add88[_0x79f173(0x127)];const _0x50aa37=await _0x1348bc[_0x79f173(0x11a)](getCloudProviderObject,_0x4add88[_0x79f173(0x11b)],_0x4add88[_0x79f173(0x127)],_0x4add88[_0x79f173(0x125)],_0x1627b7,webSocketUtils,_0x6222b2),[_0x605892,_0x466ea8,_0x18ebf2,_0x4c1c6d,_0x12556c,_0x2e5f57]=await _0x1348bc[_0x79f173(0xd8)](createK8sClient,_0x50aa37,_0x6222b2[_0x79f173(0xff)]);await _0x1348bc[_0x79f173(0xee)](scaleUpHubDeployment,_0x466ea8,_0x4add88['name']),logger[_0x79f173(0xea)](_0x1348bc[_0x79f173(0x109)]),process['exit'](0x0);}_0x1348bc[_0x79f173(0xe9)](_0x59c914['statusCode'],0x191)&&(logger[_0x79f173(0x116)](_0x1348bc[_0x79f173(0x106)]),await _0x1348bc[_0x79f173(0x11a)](sendInstrumentationEvent,_0x6222b2,_0x1348bc['AMiZe'],messageTypes[_0x79f173(0xd7)],_0x1348bc['tmuGt'],null,_0x6222b2),process['exit'](0x1)),_0x1348bc['YFfFr'](_0x59c914[_0x79f173(0x133)],0x190)&&(logger[_0x79f173(0x116)](JSON['parse'](_0x59c914['body'])[_0x79f173(0x102)]),await _0x1348bc['jLKAn'](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes['ERROR'],_0x1348bc[_0x79f173(0xed)],null,_0x6222b2),process[_0x79f173(0xe4)](0x1)),logger[_0x79f173(0x116)](_0x79f173(0xda)+JSON[_0x79f173(0x12f)](_0x59c914)),await _0x1348bc[_0x79f173(0x11d)](sendInstrumentationEvent,_0x6222b2,_0x1348bc[_0x79f173(0x119)],messageTypes[_0x79f173(0xd7)],_0x1348bc[_0x79f173(0xd9)],_0x59c914,_0x6222b2),process['exit'](0x1);}catch(_0x54b429){const _0x25202e=_0x79f173(0xd6)+_0x54b429+'\x20\x0a'+JSON[_0x79f173(0x12f)](_0x54b429['stack'])+'\x20';logger[_0x79f173(0x116)](_0x25202e),process[_0x79f173(0xe4)](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_0x162003=a20_0xf4e6;(function(_0x16cc55,_0x4f8034){const _0x4312a1=a20_0xf4e6,_0x193ed6=_0x16cc55();while(!![]){try{const _0x548c60=parseInt(_0x4312a1(0xca))/0x1*(-parseInt(_0x4312a1(0xdd))/0x2)+-parseInt(_0x4312a1(0xcb))/0x3*(parseInt(_0x4312a1(0xc5))/0x4)+parseInt(_0x4312a1(0xd8))/0x5*(parseInt(_0x4312a1(0xd4))/0x6)+-parseInt(_0x4312a1(0xc7))/0x7+parseInt(_0x4312a1(0xd3))/0x8*(parseInt(_0x4312a1(0xcd))/0x9)+-parseInt(_0x4312a1(0xdc))/0xa+parseInt(_0x4312a1(0xcf))/0xb*(parseInt(_0x4312a1(0xd5))/0xc);if(_0x548c60===_0x4f8034)break;else _0x193ed6['push'](_0x193ed6['shift']());}catch(_0x32da4c){_0x193ed6['push'](_0x193ed6['shift']());}}}(a20_0x1f6d,0xaec74));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0xf4e6(_0x546a68,_0x4bbcee){const _0x1f6dce=a20_0x1f6d();return a20_0xf4e6=function(_0xf4e638,_0x222984){_0xf4e638=_0xf4e638-0xc4;let _0x759e71=_0x1f6dce[_0xf4e638];return _0x759e71;},a20_0xf4e6(_0x546a68,_0x4bbcee);}function a20_0x1f6d(){const _0x107ae1=['fwCiT','22hdaCJK','help','desc','usage','42568FgFuvU','6JNVdLY','26159076JNngyF','epilogue','stop','826905gxKOOs','commandDir','builder','stop_commands','3357590uoxkoW','2mqfzFm','command','5276DkUQjA','handler','5692400rlIKdg','Iqolg','recommendCommands','1427201mGFQMl','2829IsIPEN','demandCommand','18hfpbqI'];a20_0x1f6d=function(){return _0x107ae1;};return a20_0x1f6d();}exports[a20_0x162003(0xc4)]=a20_0x162003(0xd7),exports[a20_0x162003(0xd1)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x162003(0xda)]=function(_0x34ffbf){const _0x5d912b=a20_0x162003,_0x3a84c2={};_0x3a84c2[_0x5d912b(0xce)]=_0x5d912b(0xdb),_0x3a84c2[_0x5d912b(0xc8)]='help';const _0x5ba3b3=_0x3a84c2;return _0x34ffbf[_0x5d912b(0xd2)](HELP_HEADER_MESSAGE['stop'])[_0x5d912b(0xd6)](HELP_FOOTER_MESSAGE)[_0x5d912b(0xd9)](_0x5ba3b3[_0x5d912b(0xce)])[_0x5d912b(0xcc)]()[_0x5d912b(0xc9)]()['strict']()[_0x5d912b(0xd0)](_0x5ba3b3[_0x5d912b(0xc8)]);},exports[a20_0x162003(0xc6)]=function(_0x19f867){};
@@ -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_0x5247(_0x3991e2,_0x295a62){const _0x2873c1=a21_0x2873();return a21_0x5247=function(_0x52470c,_0x18eacb){_0x52470c=_0x52470c-0x17a;let _0xf1e8d2=_0x2873c1[_0x52470c];return _0xf1e8d2;},a21_0x5247(_0x3991e2,_0x295a62);}const a21_0x2aded9=a21_0x5247;(function(_0x429bb4,_0x4d1abf){const _0x232b97=a21_0x5247,_0x50e2ed=_0x429bb4();while(!![]){try{const _0x51f64b=parseInt(_0x232b97(0x1a4))/0x1+parseInt(_0x232b97(0x196))/0x2+parseInt(_0x232b97(0x1c5))/0x3+parseInt(_0x232b97(0x1bc))/0x4+-parseInt(_0x232b97(0x1bb))/0x5*(parseInt(_0x232b97(0x18a))/0x6)+parseInt(_0x232b97(0x1a6))/0x7+-parseInt(_0x232b97(0x17f))/0x8*(parseInt(_0x232b97(0x1c9))/0x9);if(_0x51f64b===_0x4d1abf)break;else _0x50e2ed['push'](_0x50e2ed['shift']());}catch(_0x24cc82){_0x50e2ed['push'](_0x50e2ed['shift']());}}}(a21_0x2873,0xb196b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x2aded9(0x1d5)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x2aded9(0x1b7)),{logger}=require(a21_0x2aded9(0x199)),{getCredentialsPath,getGridDetails}=require(a21_0x2aded9(0x1b8)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a21_0x2aded9(0x19f)),webSocketUtils=require(a21_0x2aded9(0x1cd)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a21_0x2aded9(0x187));exports[a21_0x2aded9(0x1ae)]=a21_0x2aded9(0x1b1),exports[a21_0x2aded9(0x1aa)]=a21_0x2aded9(0x1d4),exports[a21_0x2aded9(0x1a0)]=function(_0x5d0339){const _0x379407=a21_0x2aded9,_0x52aed4={};_0x52aed4[_0x379407(0x1b2)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x52aed4[_0x379407(0x17c)]=_0x379407(0x1d0),_0x52aed4[_0x379407(0x1a2)]=_0x379407(0x1a5),_0x52aed4[_0x379407(0x19b)]=_0x379407(0x1b4),_0x52aed4[_0x379407(0x1ba)]=_0x379407(0x1ab);const _0x89c4e4=_0x52aed4,_0x5940b8={};_0x5940b8[_0x379407(0x17d)]=_0x89c4e4[_0x379407(0x1b2)],_0x5940b8[_0x379407(0x19c)]=_0x89c4e4[_0x379407(0x17c)];const _0x588bc2={};_0x588bc2[_0x379407(0x17d)]=_0x89c4e4[_0x379407(0x1a2)],_0x588bc2[_0x379407(0x19c)]=_0x89c4e4[_0x379407(0x19b)],_0x588bc2[_0x379407(0x190)]=![];const _0x3de20d={};return _0x3de20d[_0x379407(0x185)]=_0x5940b8,_0x3de20d[_0x379407(0x188)]=_0x588bc2,_0x5d0339['usage'](HELP_HEADER_MESSAGE[_0x379407(0x1d3)])[_0x379407(0x191)](HELP_FOOTER_MESSAGE)['options'](_0x3de20d)[_0x379407(0x1ab)](_0x89c4e4[_0x379407(0x1ba)])[_0x379407(0x18c)];},exports['handler']=async function(_0x5d284c){const _0x2dc7a3=a21_0x2aded9,_0xc5772c={'ZOrFR':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','PfWkD':function(_0x225701){return _0x225701();},'VmQkm':_0x2dc7a3(0x1c0),'aUWCS':function(_0x75ece5,_0x201252,_0x4923fe,_0x1df418,_0x1fbbcb,_0x5d3bf8,_0x224f03){return _0x75ece5(_0x201252,_0x4923fe,_0x1df418,_0x1fbbcb,_0x5d3bf8,_0x224f03);},'QUiyR':_0x2dc7a3(0x189),'ReyxZ':_0x2dc7a3(0x1af),'eGDyO':function(_0x22d41e){return _0x22d41e();},'aZcIx':_0x2dc7a3(0x192),'oDMYQ':_0x2dc7a3(0x1b0),'KHdMI':_0x2dc7a3(0x1ad),'Rskkp':function(_0x268aea,_0x3ce5cc,_0x3ca24c,_0x304738){return _0x268aea(_0x3ce5cc,_0x3ca24c,_0x304738);},'rsPWp':function(_0x309193,_0xadd410,_0x1b0095,_0x3ad870,_0x30457f,_0x3da2cb,_0x2169ca){return _0x309193(_0xadd410,_0x1b0095,_0x3ad870,_0x30457f,_0x3da2cb,_0x2169ca);},'IoLXH':function(_0x48afb3,_0x2e81db,_0x31f863){return _0x48afb3(_0x2e81db,_0x31f863);},'oBGqj':function(_0x1c1b83,_0x96a664,_0x19339e){return _0x1c1b83(_0x96a664,_0x19339e);},'BwLvq':_0x2dc7a3(0x1b6),'VjTxX':function(_0x4221a4,_0x15d068){return _0x4221a4===_0x15d068;},'MFvyQ':_0x2dc7a3(0x17e),'xEkab':'unauthorised','Tzalr':function(_0x25b9b9,_0x26c9e8,_0x35adf0,_0x3c736d,_0x556cf3,_0x48f2e0,_0xb12c38){return _0x25b9b9(_0x26c9e8,_0x35adf0,_0x3c736d,_0x556cf3,_0x48f2e0,_0xb12c38);},'dBvBP':_0x2dc7a3(0x198),'YOXOG':_0x2dc7a3(0x194)};let _0x3503bd;try{!_0x5d284c[_0x2dc7a3(0x1bd)]&&(logger['error'](_0xc5772c[_0x2dc7a3(0x1ca)]),process[_0x2dc7a3(0x181)](0x1));!fs[_0x2dc7a3(0x1d7)](_0xc5772c[_0x2dc7a3(0x180)](getCredentialsPath))&&(logger['error'](_0xc5772c[_0x2dc7a3(0x1ce)]),await _0xc5772c['aUWCS'](sendInstrumentationEvent,_0x5d284c,_0xc5772c[_0x2dc7a3(0x1bf)],messageTypes[_0x2dc7a3(0x182)],_0xc5772c[_0x2dc7a3(0x1cc)],null,_0x5d284c),process['exit'](0x1));logger[_0x2dc7a3(0x1cf)]('Stopping\x20grid\x20'+_0x5d284c[_0x2dc7a3(0x1bd)]),await _0xc5772c[_0x2dc7a3(0x1c1)](sendInstrumentationEvent,_0x5d284c,_0xc5772c[_0x2dc7a3(0x1bf)],messageTypes[_0x2dc7a3(0x18f)],null,null,_0x5d284c);const _0x5a04cb=JSON[_0x2dc7a3(0x1c3)](fs[_0x2dc7a3(0x1d2)](_0xc5772c['eGDyO'](getCredentialsPath)));global_registry[_0x2dc7a3(0x186)]=_0x5a04cb[_0x2dc7a3(0x1d6)][_0x2dc7a3(0x1a1)],global_registry[_0x2dc7a3(0x19a)]=_0x5a04cb['Browserstack']['password'];const _0x2acb89=WS_ENDPOINT[_0x2dc7a3(0x1d1)](_0xc5772c[_0x2dc7a3(0x193)],_0x5a04cb[_0x2dc7a3(0x1d6)][_0x2dc7a3(0x1a1)])[_0x2dc7a3(0x1d1)](_0xc5772c['oDMYQ'],_0x5a04cb[_0x2dc7a3(0x1d6)]['password']),_0xc2c991={};_0xc2c991[_0x2dc7a3(0x1c4)]=ws,_0xc2c991[_0x2dc7a3(0x17a)]=0x36ee80,_0x3503bd=new ReconnectingWebSocket(_0x2acb89,[],_0xc2c991),logger[_0x2dc7a3(0x18d)](_0xc5772c[_0x2dc7a3(0x1a7)]),webSocketUtils[_0x2dc7a3(0x1b5)](_0x3503bd,_0x5d284c[_0x2dc7a3(0x1a8)],_0x5d284c[_0x2dc7a3(0x1a9)]);const [_0x2e7443,_0x2b8a50]=await _0xc5772c[_0x2dc7a3(0x1cb)](getGridDetails,_0x5a04cb['Browserstack'][_0x2dc7a3(0x1a1)],_0x5a04cb['Browserstack']['password'],_0x5d284c[_0x2dc7a3(0x1bd)]);if(_0x2b8a50){const _0x20aff9=_0x2b8a50[_0x2dc7a3(0x1cf)];global_registry[_0x2dc7a3(0x1c6)]=_0x20aff9[_0x2dc7a3(0x1c6)],global_registry[_0x2dc7a3(0x18b)]=_0x20aff9['region'],global_registry[_0x2dc7a3(0x1c7)]=_0x20aff9['clusterName'];const _0xa7e00=await _0xc5772c[_0x2dc7a3(0x1c8)](getCloudProviderObject,_0x20aff9[_0x2dc7a3(0x1c6)],_0x20aff9['clusterName'],_0x20aff9[_0x2dc7a3(0x1c2)],_0x3503bd,webSocketUtils,_0x5d284c),[_0x665c49,_0x18d0eb,_0x2bd43e,_0x145954,_0x3808b6,_0x408ab1]=await _0xc5772c[_0x2dc7a3(0x1a3)](createK8sClient,_0xa7e00,_0x5d284c[_0x2dc7a3(0x1ac)]);await _0xc5772c['oBGqj'](scaleDownHubDeployment,_0x18d0eb,_0x20aff9['name']),logger['info'](_0xc5772c[_0x2dc7a3(0x19d)]),process[_0x2dc7a3(0x181)](0x0);}_0xc5772c[_0x2dc7a3(0x1b9)](_0x2e7443[_0x2dc7a3(0x1b3)],0x191)&&(logger['error'](_0xc5772c[_0x2dc7a3(0x183)]),await _0xc5772c['rsPWp'](sendInstrumentationEvent,_0x5d284c,_0xc5772c['QUiyR'],messageTypes[_0x2dc7a3(0x182)],_0xc5772c[_0x2dc7a3(0x17b)],null,_0x5d284c),process[_0x2dc7a3(0x181)](0x1)),_0xc5772c[_0x2dc7a3(0x1b9)](_0x2e7443['statusCode'],0x190)&&(logger[_0x2dc7a3(0x184)](JSON['parse'](_0x2e7443['body'])['message']),await _0xc5772c[_0x2dc7a3(0x19e)](sendInstrumentationEvent,_0x5d284c,_0xc5772c['QUiyR'],messageTypes['ERROR'],_0xc5772c['dBvBP'],null,_0x5d284c),process[_0x2dc7a3(0x181)](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2dc7a3(0x197)](_0x2e7443)),await _0xc5772c[_0x2dc7a3(0x1c1)](sendInstrumentationEvent,_0x5d284c,_0xc5772c[_0x2dc7a3(0x1bf)],messageTypes[_0x2dc7a3(0x182)],_0xc5772c[_0x2dc7a3(0x18e)],_0x2e7443,_0x5d284c),process[_0x2dc7a3(0x181)](0x1);}catch(_0xb79e1a){const _0x21725b=_0x2dc7a3(0x195)+_0xb79e1a+'\x20\x0a'+JSON[_0x2dc7a3(0x197)](_0xb79e1a[_0x2dc7a3(0x1be)])+'\x20';logger[_0x2dc7a3(0x184)](_0x21725b),process[_0x2dc7a3(0x181)](0x1);}};function a21_0x2873(){const _0x2b9fab=['VmQkm','info','string','replace','readFileSync','stop','Stop\x20a\x20running\x20Automation\x20grid.','reconnecting-websocket','Browserstack','existsSync','connectionTimeout','xEkab','gXBgZ','description','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','2264gtGwyL','PfWkD','exit','ERROR','MFvyQ','error','grid-id','bstackUsername','../../cloudproviders/utils','skip-tls-cert-verify','stop-grid-called','2490xucyPb','clusterRegion','argv','debug','YOXOG','INFO','default','epilogue','<UsernamePlaceholder>','aZcIx','server-error','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','2247072kgugRI','stringify','invalid-grid-id','../../config/logger','bstackAccesskey','qonGd','type','BwLvq','Tzalr','../../utils/instrumentationUtils','builder','username','fCRey','IoLXH','1038877ruBdHH','Skip\x20insecure\x20cert\x20verification.','8104313EsbSWW','KHdMI','user','password','desc','help','skipTlsCertVerify','Adding\x20Websocket\x20listeners','command','init-not-called','<PasswordPlaceholder>','grid','TxjTx','statusCode','boolean','addListeners','Grid\x20stoppped.','../../config/constants','../../utils/utilityMethods','VjTxX','uFpEt','12370voQBoF','5755096WwsKsJ','gridId','stack','QUiyR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','aUWCS','name','parse','WebSocket','1221894PpAmXx','cloudProvider','clusterName','rsPWp','108513bAvFAD','ZOrFR','Rskkp','ReyxZ','../../utils/webSocketUtils'];a21_0x2873=function(){return _0x2b9fab;};return a21_0x2873();}
@@ -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
+ const a22_0x4aeaef=a22_0x357a;(function(_0x991eba,_0x1f5e32){const _0x2a2beb=a22_0x357a,_0x5c5b28=_0x991eba();while(!![]){try{const _0x2575ff=-parseInt(_0x2a2beb(0xdc))/0x1*(-parseInt(_0x2a2beb(0xd4))/0x2)+parseInt(_0x2a2beb(0xb4))/0x3+parseInt(_0x2a2beb(0xb0))/0x4*(parseInt(_0x2a2beb(0x99))/0x5)+parseInt(_0x2a2beb(0xa0))/0x6*(parseInt(_0x2a2beb(0xe6))/0x7)+parseInt(_0x2a2beb(0x9e))/0x8*(parseInt(_0x2a2beb(0xc9))/0x9)+parseInt(_0x2a2beb(0xe8))/0xa*(parseInt(_0x2a2beb(0x94))/0xb)+-parseInt(_0x2a2beb(0xb7))/0xc;if(_0x2575ff===_0x1f5e32)break;else _0x5c5b28['push'](_0x5c5b28['shift']());}catch(_0x1d9682){_0x5c5b28['push'](_0x5c5b28['shift']());}}}(a22_0x38bc,0xe4a1c),require('dotenv')['config']());let gridURL=a22_0x4aeaef(0xa5),bsApiUrl=a22_0x4aeaef(0xaf),agApiUrl='grid-api.browserstack.com';const _env=(process['env'][a22_0x4aeaef(0x95)]||a22_0x4aeaef(0xd6))['toLowerCase']();if(_env==='staging'||_env===a22_0x4aeaef(0xdb))gridURL=a22_0x4aeaef(0xeb),bsApiUrl='api-devhst.bsstag.com',agApiUrl='grid-api-devhst.bsstag.com';else(_env==='preprod'||_env==='pre-prod')&&(gridURL='grid-preprod.bsstag.com',bsApiUrl=a22_0x4aeaef(0xe7),agApiUrl=a22_0x4aeaef(0xa9));exports[a22_0x4aeaef(0xf7)]=process['env'][a22_0x4aeaef(0xf7)]||gridURL,exports[a22_0x4aeaef(0x96)]=process[a22_0x4aeaef(0xdd)][a22_0x4aeaef(0x96)]||bsApiUrl,exports[a22_0x4aeaef(0xc4)]=process[a22_0x4aeaef(0xdd)]['AG_API_URL']||agApiUrl,exports['WS_ENDPOINT']=a22_0x4aeaef(0xac)+this[a22_0x4aeaef(0xc4)]+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports[a22_0x4aeaef(0xcb)]='credentials',exports[a22_0x4aeaef(0xf3)]='BrowserStackIAMUser',exports[a22_0x4aeaef(0x9b)]='high-scale-grid',exports[a22_0x4aeaef(0xda)]=a22_0x4aeaef(0xba),exports[a22_0x4aeaef(0xb6)]='BSTACK-ATS-CLUSTER',exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a22_0x4aeaef(0xdf)]='BSTACK-ATS-CLUSTER-HUB-HA',exports[a22_0x4aeaef(0xbc)]=a22_0x4aeaef(0xef),exports[a22_0x4aeaef(0xc3)]=a22_0x4aeaef(0xcd),exports[a22_0x4aeaef(0xd0)]=a22_0x4aeaef(0xa1),exports[a22_0x4aeaef(0xed)]=[this['AWS'],this[a22_0x4aeaef(0xc3)],this[a22_0x4aeaef(0xd0)]];const a22_0x4898c0={};a22_0x4898c0[a22_0x4aeaef(0xf6)]=a22_0x4aeaef(0xa3),a22_0x4898c0['Value']=a22_0x4aeaef(0xd8);const a22_0x5415d8={};a22_0x5415d8[a22_0x4aeaef(0xf6)]='browserstack:service',a22_0x5415d8[a22_0x4aeaef(0x97)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a22_0x4898c0,a22_0x5415d8];function a22_0x357a(_0x32740c,_0xcf17d){const _0x38bc3c=a22_0x38bc();return a22_0x357a=function(_0x357a2d,_0x5db95d){_0x357a2d=_0x357a2d-0x90;let _0x4ca6c9=_0x38bc3c[_0x357a2d];return _0x4ca6c9;},a22_0x357a(_0x32740c,_0xcf17d);}if(process[a22_0x4aeaef(0xdd)][a22_0x4aeaef(0xa2)]){const parsedTags=process[a22_0x4aeaef(0xdd)][a22_0x4aeaef(0xa2)][a22_0x4aeaef(0xab)](',');parsedTags[a22_0x4aeaef(0xe4)](_0x4ee387=>{const _0x49e7f5=a22_0x4aeaef,_0x3c27f0=_0x4ee387[_0x49e7f5(0xab)](':'),_0x385c85={};_0x385c85[_0x49e7f5(0xf6)]=_0x3c27f0[0x0],_0x385c85[_0x49e7f5(0x97)]=_0x3c27f0[0x1],common_hst_tags_list['push'](_0x385c85);});}exports[a22_0x4aeaef(0xe5)]=common_hst_tags_list;const a22_0x1efda2={};a22_0x1efda2[a22_0x4aeaef(0xa3)]=a22_0x4aeaef(0xd8),a22_0x1efda2['browserstack:service']='BrowserStack-Automate-TurboScale',exports['HST_CLUSTER_TAGS']=a22_0x1efda2,exports[a22_0x4aeaef(0xd3)]=[this[a22_0x4aeaef(0xda)]];function a22_0x38bc(){const _0x578334=['DEFAULT_CLUSTER_DETAILS','messageTypes','GCP','global_registry','connect','SUPPORTED_CLOUD_PROVIDERS','2nInrwE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','prod','CLI_RUN_STARTED','BrowserStack','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','AWS','stag','182239VvGbhA','env','HELP_FOOTER_MESSAGE','CLUSTER_HUB_HA_STACK_NAME','cliRunFinished','gridProfile','LINK_MESSAGE','GRID_URL','forEach','COMMON_HST_TAGS','637hlaktC','api-preprod.bsstag.com','2349290hzMQln','grid','HELP_HEADER_MESSAGE','grid-devhst.bsstag.com','TRIAL_GRID_URL','ALL_SUPPORTED_CLOUD_PROVIDERS','WARNING','browserstack-turboscale-grid','start','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','configure','IAM_USER_NAME','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','Key','DASHBOARD_ENDPOINT','SUCCESS','root','info','pre-check','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','resourceInfo','77LaJxmN','BROWSERSTACK_ENV','BS_API_URL','Value','INFO','10JiOzDd','gridUrl','DEFAULT_GRID_NAME','NULL','UNKNOWN','32Kkalbo','warning','45078zDjGUv','gcp','TURBOSCALE_CUSTOM_TAGS','browserstack:managedBy','cliRunStarted','grid.browserstack.com','WS_EVENTS','CLOUD_PROVIDER','success','grid-api-preprod.bsstag.com','grid-profile','split','wss://','us-east-1','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','api.browserstack.com','2933992lZSrOu','REGION','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','RESOURCES','4939515BCjsAd','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CLUSTER_DEP_STACK_NAME','66912936jetpPn','create','pre_check','aws','MessageDescription','TURBOSCALE_DEPLOYMENT','log','list','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','REDACTED','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','AZURE','AG_API_URL','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLI_ARGS_REGEX','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','stop','1999413jTcOOE','[REDACTED]','CP_CONFIG_FILE','unknown','azure'];a22_0x38bc=function(){return _0x578334;};return a22_0x38bc();}const a22_0x34e18e={};a22_0x34e18e['LOG']=a22_0x4aeaef(0xbd),a22_0x34e18e[a22_0x4aeaef(0xb3)]=a22_0x4aeaef(0x93),a22_0x34e18e[a22_0x4aeaef(0xe3)]=a22_0x4aeaef(0x9a),a22_0x34e18e[a22_0x4aeaef(0xd7)]=a22_0x4aeaef(0xa4),a22_0x34e18e['CLI_RUN_FINISHED']=a22_0x4aeaef(0xe0),exports[a22_0x4aeaef(0xa6)]=a22_0x34e18e,exports[a22_0x4aeaef(0xd1)]={},exports[a22_0x4aeaef(0xe2)]=a22_0x4aeaef(0xc5);const a22_0x2141a8={};a22_0x2141a8['root']=a22_0x4aeaef(0x92)+this['LINK_MESSAGE'],a22_0x2141a8['init']=a22_0x4aeaef(0xc0)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xf2)]=a22_0x4aeaef(0xb5)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xb8)]=a22_0x4aeaef(0xd9)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)]={},a22_0x2141a8['delete']='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xd2)]=a22_0x4aeaef(0xf4)+this['LINK_MESSAGE'],a22_0x2141a8[a22_0x4aeaef(0xf0)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xc8)]=a22_0x4aeaef(0xae)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xb9)]=a22_0x4aeaef(0xf5)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)][a22_0x4aeaef(0xf9)]=a22_0x4aeaef(0xf1)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)][a22_0x4aeaef(0xe9)]=a22_0x4aeaef(0xd5)+this[a22_0x4aeaef(0xe2)],a22_0x2141a8[a22_0x4aeaef(0xbe)][a22_0x4aeaef(0xe1)]=a22_0x4aeaef(0xc2)+this['LINK_MESSAGE'],exports[a22_0x4aeaef(0xea)]=a22_0x2141a8,exports[a22_0x4aeaef(0xde)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x2821a7={};a22_0x2821a7[a22_0x4aeaef(0xf8)]=a22_0x4aeaef(0xa8),a22_0x2821a7['ERROR']='error',a22_0x2821a7[a22_0x4aeaef(0x98)]=a22_0x4aeaef(0x90),a22_0x2821a7[a22_0x4aeaef(0xee)]=a22_0x4aeaef(0x9f),a22_0x2821a7[a22_0x4aeaef(0x9d)]=a22_0x4aeaef(0xcc),a22_0x2821a7[a22_0x4aeaef(0x9c)]=null,exports[a22_0x4aeaef(0xcf)]=a22_0x2821a7,exports[a22_0x4aeaef(0xc6)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x4aeaef(0xbf)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x4aeaef(0xc1)]=a22_0x4aeaef(0xca);const a22_0x34bde9={};a22_0x34bde9[a22_0x4aeaef(0xaa)]=a22_0x4aeaef(0xb2);const a22_0x5b32d3={};a22_0x5b32d3[a22_0x4aeaef(0x91)]=a22_0x34bde9,exports[a22_0x4aeaef(0xbb)]=a22_0x5b32d3,exports[a22_0x4aeaef(0xec)]=a22_0x4aeaef(0xc7);const a22_0x156ce4={};a22_0x156ce4['CLUSTER']='high-scale-grid-cluster',a22_0x156ce4[a22_0x4aeaef(0xa7)]=a22_0x4aeaef(0xba),a22_0x156ce4[a22_0x4aeaef(0xb1)]=a22_0x4aeaef(0xad),exports[a22_0x4aeaef(0xce)]=a22_0x156ce4;
@@ -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_0x2825(){const _0x2c0187=['path','8247411FVRUuj','2046610MCikgI','4194KAKYmo','level','\x20-\x20','log','Console','winston','colorize','combine','createLogger','logger','18613rcxhGP','YYYY-MM-DD\x20HH:mm:ss','name','4808526oKzszC','2745JzFXZJ','980133sUEfpW','2472SjfkON','debug','transports','2365824SpRYKr','events.log','printf','join','4cAxUxe','timestamp','usage.log','message','format','File'];a23_0x2825=function(){return _0x2c0187;};return a23_0x2825();}const a23_0x3b225d=a23_0x24a4;(function(_0x1447d2,_0x465bc4){const _0x15e364=a23_0x24a4,_0xcb8a76=_0x1447d2();while(!![]){try{const _0x49aa19=parseInt(_0x15e364(0xdd))/0x1+-parseInt(_0x15e364(0xe1))/0x2+parseInt(_0x15e364(0xdb))/0x3*(parseInt(_0x15e364(0xe5))/0x4)+parseInt(_0x15e364(0xdc))/0x5*(-parseInt(_0x15e364(0xee))/0x6)+-parseInt(_0x15e364(0xd8))/0x7*(parseInt(_0x15e364(0xde))/0x8)+parseInt(_0x15e364(0xec))/0x9+-parseInt(_0x15e364(0xed))/0xa;if(_0x49aa19===_0x465bc4)break;else _0xcb8a76['push'](_0xcb8a76['shift']());}catch(_0x13a343){_0xcb8a76['push'](_0xcb8a76['shift']());}}}(a23_0x2825,0xdd49f));const winston=require(a23_0x3b225d(0xd3)),fs=require('fs'),path=require(a23_0x3b225d(0xeb)),logDir=a23_0x3b225d(0xd1);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a23_0x1b294f={};a23_0x1b294f[a23_0x3b225d(0xe9)]=a23_0x3b225d(0xd9);const a23_0x3cd93c={};a23_0x3cd93c['level']=!![];function a23_0x24a4(_0x56e7dd,_0xacdb9c){const _0x2825a6=a23_0x2825();return a23_0x24a4=function(_0x24a416,_0xa0690b){_0x24a416=_0x24a416-0xcf;let _0x1f4aab=_0x2825a6[_0x24a416];return _0x1f4aab;},a23_0x24a4(_0x56e7dd,_0xacdb9c);}const a23_0x2db9ea={};a23_0x2db9ea[a23_0x3b225d(0xda)]='console.info',exports[a23_0x3b225d(0xd7)]=new winston[(a23_0x3b225d(0xd6))]({'format':winston['format'][a23_0x3b225d(0xd5)](winston[a23_0x3b225d(0xe9)][a23_0x3b225d(0xe6)](a23_0x1b294f),winston[a23_0x3b225d(0xe9)][a23_0x3b225d(0xd4)](a23_0x3cd93c),winston['format'][a23_0x3b225d(0xe3)](_0x833e90=>_0x833e90[a23_0x3b225d(0xe6)]+a23_0x3b225d(0xd0)+_0x833e90[a23_0x3b225d(0xcf)]+':\x20'+_0x833e90[a23_0x3b225d(0xe8)])),'transports':[new winston[(a23_0x3b225d(0xe0))][(a23_0x3b225d(0xd2))](a23_0x2db9ea),new winston[(a23_0x3b225d(0xe0))]['File']({'filename':path[a23_0x3b225d(0xe4)](logDir,a23_0x3b225d(0xe2)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x3b225d(0xe0))][(a23_0x3b225d(0xea))]({'filename':path[a23_0x3b225d(0xe4)](logDir,a23_0x3b225d(0xe7)),'level':a23_0x3b225d(0xdf)})]};exports['fileLogger']=new winston[(a23_0x3b225d(0xd6))](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';const a24_0x3b9ac6=a24_0x204d;function a24_0x204d(_0xb33e91,_0x202089){const _0x5c22f6=a24_0x5c22();return a24_0x204d=function(_0x204d8d,_0x33cfc4){_0x204d8d=_0x204d8d-0x1dc;let _0x49663f=_0x5c22f6[_0x204d8d];return _0x49663f;},a24_0x204d(_0xb33e91,_0x202089);}function a24_0x5c22(){const _0x206846=['2063944lVmKKL','2630136bfIqyy','exports','commandDir','ycWUf','3472308dbjPEl','ueHFs','31642164jdJXhX','1072JnTyiX','env','help','./config/constants','9515002YlRoas','demandCommand','root','24nslEHy','epilogue','2042SMHvtC','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','1945970rQeoiN'];a24_0x5c22=function(){return _0x206846;};return a24_0x5c22();}(function(_0x552341,_0x3e8e00){const _0x47f800=a24_0x204d,_0x2d6c48=_0x552341();while(!![]){try{const _0x5623da=-parseInt(_0x47f800(0x1e0))/0x1*(-parseInt(_0x47f800(0x1eb))/0x2)+-parseInt(_0x47f800(0x1e8))/0x3+parseInt(_0x47f800(0x1e4))/0x4+-parseInt(_0x47f800(0x1e2))/0x5*(parseInt(_0x47f800(0x1de))/0x6)+-parseInt(_0x47f800(0x1ef))/0x7+-parseInt(_0x47f800(0x1e3))/0x8+parseInt(_0x47f800(0x1ea))/0x9;if(_0x5623da===_0x3e8e00)break;else _0x2d6c48['push'](_0x2d6c48['shift']());}catch(_0x3bb09a){_0x2d6c48['push'](_0x2d6c48['shift']());}}}(a24_0x5c22,0xe499f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x3b9ac6(0x1ee));process[a24_0x3b9ac6(0x1ec)][a24_0x3b9ac6(0x1e1)]=0x1;function run(_0x35a46b){const _0x58f415=a24_0x3b9ac6,_0x53c57c={};_0x53c57c[_0x58f415(0x1e7)]='commands',_0x53c57c[_0x58f415(0x1e9)]='help';const _0xac3caf=_0x53c57c;_0x35a46b['usage'](HELP_HEADER_MESSAGE[_0x58f415(0x1dd)])[_0x58f415(0x1e6)](_0xac3caf[_0x58f415(0x1e7)])[_0x58f415(0x1dc)]()[_0x58f415(0x1ed)](_0xac3caf[_0x58f415(0x1e9)])[_0x58f415(0x1df)](HELP_FOOTER_MESSAGE);}module[a24_0x3b9ac6(0x1e5)]=run;