browserstack-node-sdk 1.38.0 → 1.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  69. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  70. package/src/bin/mocha/command.js +1 -1
  71. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  72. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  73. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  74. package/src/bin/mocha/test.setup.js +1 -1
  75. package/src/bin/nightwatch/command.js +1 -1
  76. package/src/bin/playwright/accessibility-helper.js +1 -1
  77. package/src/bin/playwright/command.js +1 -1
  78. package/src/bin/playwright/globalSetup.js +1 -1
  79. package/src/bin/playwright/mock-process.js +1 -1
  80. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  81. package/src/bin/playwright/patches.js +1 -1
  82. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  83. package/src/bin/playwright/reporter/reporter.js +1 -1
  84. package/src/bin/playwright/reporter/test-details.js +1 -1
  85. package/src/bin/playwright/sessionDetails.js +1 -1
  86. package/src/bin/runner.js +1 -1
  87. package/src/bin/setup.js +1 -1
  88. package/src/bin/test-runner/index.js +1 -1
  89. package/src/bin/test-runner/runTest.js +1 -1
  90. package/src/bin/test-runner/testWorker.js +1 -1
  91. package/src/bin/utils/constants.js +1 -1
  92. package/src/bin/utils/log4jsAppender.js +1 -1
  93. package/src/bin/utils/logPatcher.js +1 -1
  94. package/src/bin/utils/logReportingAPI.js +1 -1
  95. package/src/bin/v2/TestInfo.js +1 -1
  96. package/src/bin/v2/browserstackCLI.js +1 -1
  97. package/src/bin/v2/cliUtils.js +1 -1
  98. package/src/bin/v2/customTagManager.js +1 -1
  99. package/src/bin/v2/eventDispatcher.js +1 -1
  100. package/src/bin/v2/framework/automationFramework.js +1 -1
  101. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  102. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  103. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  104. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  105. package/src/bin/v2/framework/testFramework.js +1 -1
  106. package/src/bin/v2/grpcClient.js +1 -1
  107. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  108. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  109. package/src/bin/v2/instances/trackedContext.js +1 -1
  110. package/src/bin/v2/instances/trackedInstance.js +1 -1
  111. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  112. package/src/bin/v2/modules/baseModule.js +1 -1
  113. package/src/bin/v2/modules/observabilityModule.js +1 -1
  114. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  115. package/src/bin/v2/modules/testhubModule.js +1 -1
  116. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  117. package/src/bin/v2/state/hookState.js +1 -1
  118. package/src/bin/v2/state/testFrameworkState.js +1 -1
  119. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  120. package/src/bin/vanilla-js/command.js +1 -1
  121. package/src/browserStackSdk.js +1 -1
  122. package/src/helpers/BrowserStackSetup.js +1 -1
  123. package/src/helpers/accessibility-automation/constants.js +1 -1
  124. package/src/helpers/accessibility-automation/helper.js +1 -1
  125. package/src/helpers/accessibility-automation/scripts.js +1 -1
  126. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  127. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  128. package/src/helpers/ats/constants.js +1 -1
  129. package/src/helpers/ats/helper.js +1 -1
  130. package/src/helpers/capsMapping.js +1 -1
  131. package/src/helpers/central-scanner/constants.js +1 -1
  132. package/src/helpers/central-scanner/helpers.js +1 -1
  133. package/src/helpers/classLogger.js +1 -1
  134. package/src/helpers/globals.js +1 -1
  135. package/src/helpers/helper.js +1 -1
  136. package/src/helpers/logger.js +1 -1
  137. package/src/helpers/metadata.js +1 -1
  138. package/src/helpers/patchHelper.js +1 -1
  139. package/src/helpers/patchHelpers.js +1 -1
  140. package/src/helpers/percy/Percy.js +1 -1
  141. package/src/helpers/percy/PercyBinary.js +1 -1
  142. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  143. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  144. package/src/helpers/percy/PercySDK.js +1 -1
  145. package/src/helpers/percy/index.js +1 -1
  146. package/src/helpers/percy/utils.js +1 -1
  147. package/src/helpers/performance/constants.js +1 -1
  148. package/src/helpers/performance/performance-tester.js +1 -1
  149. package/src/helpers/processHelper.js +1 -1
  150. package/src/helpers/request-spy.js +1 -1
  151. package/src/helpers/setKeepAlive.js +1 -1
  152. package/src/helpers/test-observability/constants.js +1 -1
  153. package/src/helpers/test-observability/error-handler.js +1 -1
  154. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  155. package/src/helpers/test-observability/sessionHandler.js +1 -1
  156. package/src/helpers/test-observability/utils.js +1 -1
  157. package/src/helpers/test-orchestration/constants.js +1 -1
  158. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  159. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  160. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  161. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  162. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  163. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  164. package/src/helpers/testhub/constants.js +1 -1
  165. package/src/helpers/testhub/testhubHandler.js +1 -1
  166. package/src/helpers/testhub/utils.js +1 -1
  167. package/src/helpers/timeoutPromise.js +1 -1
  168. package/src/helpers/utilities.js +1 -1
  169. package/src/helpers/w3cMapping.js +1 -1
  170. package/src/hubAllocationMethods.js +1 -1
  171. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x44ae(_0x8d1f9f,_0x4c9bc1){const _0x126039=a15_0x1260();return a15_0x44ae=function(_0x44ae52,_0x3dcd72){_0x44ae52=_0x44ae52-0xb9;let _0x22479c=_0x126039[_0x44ae52];return _0x22479c;},a15_0x44ae(_0x8d1f9f,_0x4c9bc1);}const a15_0x30d192=a15_0x44ae;function a15_0x1260(){const _0x32f65f=['qeUre','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','forEach','argv','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','allGrids','grid','all-grids','204ERnFvg','593197jahrfd','grid-name','NSSyw','TNKKx','345208xAGgIb','ERROR','1160996ZAGVPD','log','https://','aZCol','420232CKxmQM','password','/packages/cli/get-all-grids','existsSync','bstackUsername','unauthorised','cluster-name','VfmRx','desc','YRhgO','SyzHO','GET','60ulhJYX','parse','table','Failed\x20to\x20list\x20resources!\x20Error:\x20','dJzbP','clusterName','Browserstack','readFileSync','10389840MZtDVK','exit','fSOcT','builder','running','/packages/cli/get-grids','username','grid-id','list-grids-called','../../config/constants','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','list','statusCode','unknown-error','773745uPMDDk','requestId','name','status','hjKLu','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','KTHfw','WbADM','BZywj','uuid','QnpXa','sLXrc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ZGRcW','epilogue','2Srvgmi','queued','AkogI','options','error','../../utils/instrumentationUtils','jZnKS','\x0aFound\x20the\x20following\x20grids:\x0a','mpSnY','99RXyPLQ','AtEIU','server-error','cMXjF','bstackAccesskey','help','3338646tkbRtC','stringify','push','25ZggdAX'];a15_0x1260=function(){return _0x32f65f;};return a15_0x1260();}(function(_0x271fb1,_0x41322f){const _0x1bd297=a15_0x44ae,_0x213011=_0x271fb1();while(!![]){try{const _0x265f83=parseInt(_0x1bd297(0xc7))/0x1*(-parseInt(_0x1bd297(0xe9))/0x2)+-parseInt(_0x1bd297(0xd6))/0x3+parseInt(_0x1bd297(0xe7))/0x4*(parseInt(_0x1bd297(0xd9))/0x5)+-parseInt(_0x1bd297(0xf9))/0x6*(-parseInt(_0x1bd297(0x10f))/0x7)+parseInt(_0x1bd297(0xed))/0x8*(-parseInt(_0x1bd297(0xd0))/0x9)+parseInt(_0x1bd297(0x101))/0xa+parseInt(_0x1bd297(0xe3))/0xb*(parseInt(_0x1bd297(0xe2))/0xc);if(_0x265f83===_0x41322f)break;else _0x213011['push'](_0x213011['shift']());}catch(_0x32ff70){_0x213011['push'](_0x213011['shift']());}}}(a15_0x1260,0x9c78a));const fs=require('fs'),got=require('got'),{table}=require(a15_0x30d192(0xfb)),{v4:uuidv4}=require(a15_0x30d192(0xc1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x30d192(0x10a)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x30d192(0xcc));exports['command']='grids',exports[a15_0x30d192(0xf5)]=a15_0x30d192(0xbd),exports[a15_0x30d192(0x104)]=function(_0x2ce564){const _0x53907f=a15_0x30d192,_0x50a304={};_0x50a304[_0x53907f(0xe5)]=_0x53907f(0x10b),_0x50a304['uUqGZ']='boolean',_0x50a304[_0x53907f(0xf4)]=_0x53907f(0xd5);const _0x15c737=_0x50a304,_0x3be212={};_0x3be212['description']=_0x15c737['NSSyw'],_0x3be212['type']=_0x15c737['uUqGZ'];const _0x3bd06e={};return _0x3bd06e[_0x53907f(0xe1)]=_0x3be212,_0x2ce564['usage'](HELP_HEADER_MESSAGE[_0x53907f(0x10c)][_0x53907f(0xe0)])[_0x53907f(0xc6)](HELP_FOOTER_MESSAGE)[_0x53907f(0xca)](_0x3bd06e)['help'](_0x15c737[_0x53907f(0xf4)])[_0x53907f(0xdd)];},exports['handler']=async function(_0x330642){const _0xc9ca97=a15_0x30d192,_0x514644={'iKPpT':function(_0x4d3cd4){return _0x4d3cd4();},'AkogI':function(_0x4b0220){return _0x4b0220();},'WbADM':_0xc9ca97(0xde),'qeUre':function(_0x535436,_0x4a9193,_0x3917f6,_0x3ea0cd,_0xf73537,_0x2b0ffb,_0x30749d){return _0x535436(_0x4a9193,_0x3917f6,_0x3ea0cd,_0xf73537,_0x2b0ffb,_0x30749d);},'TNKKx':_0xc9ca97(0x109),'KTHfw':'init-not-called','dJzbP':function(_0x45f220){return _0x45f220();},'ZGRcW':_0xc9ca97(0xf8),'hjKLu':function(_0x21a3f4,_0x48022e,_0x1cac1b){return _0x21a3f4(_0x48022e,_0x1cac1b);},'AtEIU':function(_0xbd02f5,_0x72dd3a){return _0xbd02f5!==_0x72dd3a;},'SyzHO':function(_0x4de00c,_0x4d5748){return _0x4de00c!==_0x4d5748;},'YRhgO':function(_0x29af4c,_0x134bdd){return _0x29af4c===_0x134bdd;},'eeZzL':_0xc9ca97(0xce),'DghEf':_0xc9ca97(0x108),'jZnKS':_0xc9ca97(0xe4),'fSOcT':_0xc9ca97(0xbb),'QnpXa':_0xc9ca97(0x105),'Jwlek':'queued','BZywj':_0xc9ca97(0xf3),'hDhla':function(_0x2d8d8b,_0xe4fe2e){return _0x2d8d8b(_0xe4fe2e);},'cMXjF':_0xc9ca97(0xdb),'aZCol':_0xc9ca97(0xf2),'mpSnY':_0xc9ca97(0xd2),'sLXrc':function(_0x2328d2,_0x2f1b16,_0x491326,_0x2366ef,_0x28309c,_0x5eb125,_0x33a6ee){return _0x2328d2(_0x2f1b16,_0x491326,_0x2366ef,_0x28309c,_0x5eb125,_0x33a6ee);},'hyVQi':_0xc9ca97(0x10e)};try{global_registry[_0xc9ca97(0xb9)]=_0x514644['iKPpT'](uuidv4);!fs[_0xc9ca97(0xf0)](_0x514644[_0xc9ca97(0xc9)](getCredentialsPath))&&(console[_0xc9ca97(0xcb)](_0x514644[_0xc9ca97(0xbf)]),await _0x514644[_0xc9ca97(0xda)](sendInstrumentationEvent,_0x330642,_0x514644[_0xc9ca97(0xe6)],messageTypes[_0xc9ca97(0xe8)],_0x514644[_0xc9ca97(0xbe)],null,_0x330642),process[_0xc9ca97(0x102)](0x1));const _0x1ceafb=JSON[_0xc9ca97(0xfa)](fs[_0xc9ca97(0x100)](_0x514644[_0xc9ca97(0xfd)](getCredentialsPath)));let _0x4c1706=_0xc9ca97(0xeb)+AG_API_URL+_0xc9ca97(0x106);_0x330642[_0xc9ca97(0xdf)]&&(_0x4c1706=_0xc9ca97(0xeb)+AG_API_URL+_0xc9ca97(0xef));const _0x55ffc8={'method':_0x514644[_0xc9ca97(0xc5)],'headers':_0x514644[_0xc9ca97(0xbc)](getAuthHeader,_0x1ceafb[_0xc9ca97(0xff)]['username'],_0x1ceafb['Browserstack'][_0xc9ca97(0xee)]),'throwHttpErrors':![]};global_registry[_0xc9ca97(0xf1)]=_0x1ceafb[_0xc9ca97(0xff)][_0xc9ca97(0x107)],global_registry[_0xc9ca97(0xd4)]=_0x1ceafb[_0xc9ca97(0xff)][_0xc9ca97(0xee)],_0x514644[_0xc9ca97(0xda)](sendInstrumentationEvent,_0x330642,_0x514644['TNKKx'],messageTypes['INFO'],null,null,_0x330642);const _0x2438c0=await _0x514644[_0xc9ca97(0xbc)](got,_0x4c1706,_0x55ffc8);if(_0x514644[_0xc9ca97(0xd1)](_0x2438c0,null)&&_0x514644[_0xc9ca97(0xf7)](_0x2438c0,undefined)&&_0x514644[_0xc9ca97(0xf6)](_0x2438c0[_0xc9ca97(0x10d)],0xc8)){const _0x46fa23=JSON['parse'](_0x2438c0['body']);console[_0xc9ca97(0xea)](_0x514644['eeZzL']);const _0x13beb5=[];_0x13beb5[_0xc9ca97(0xd8)]([_0x514644['DghEf'],_0x514644[_0xc9ca97(0xcd)],_0x514644[_0xc9ca97(0x103)],_0x514644[_0xc9ca97(0xc2)],_0x514644['Jwlek'],_0x514644[_0xc9ca97(0xc0)]]),_0x46fa23[_0xc9ca97(0xdc)](_0x1ac9e5=>{const _0x13f53e=_0xc9ca97;_0x13beb5['push']([_0x1ac9e5['id'],_0x1ac9e5[_0x13f53e(0xba)],_0x1ac9e5[_0x13f53e(0xbb)],_0x1ac9e5[_0x13f53e(0x105)],_0x1ac9e5[_0x13f53e(0xc8)],_0x1ac9e5[_0x13f53e(0xfe)]]);}),console[_0xc9ca97(0xea)](_0x514644['hDhla'](table,_0x13beb5)),process[_0xc9ca97(0x102)](0x0);}_0x514644[_0xc9ca97(0xf6)](_0x2438c0['statusCode'],0x191)&&(console[_0xc9ca97(0xcb)](_0x514644[_0xc9ca97(0xd3)]),await _0x514644['qeUre'](sendInstrumentationEvent,_0x330642,_0x514644['TNKKx'],messageTypes[_0xc9ca97(0xe8)],_0x514644[_0xc9ca97(0xec)],null,_0x330642),process['exit'](0x1)),console[_0xc9ca97(0xcb)](_0xc9ca97(0xc4)+JSON[_0xc9ca97(0xd7)](_0x2438c0)),await _0x514644[_0xc9ca97(0xda)](sendInstrumentationEvent,_0x330642,_0x514644[_0xc9ca97(0xe6)],messageTypes[_0xc9ca97(0xe8)],_0x514644[_0xc9ca97(0xcf)],_0x2438c0,_0x330642),process[_0xc9ca97(0x102)](0x1);}catch(_0x242541){console[_0xc9ca97(0xcb)](_0xc9ca97(0xfc)+_0x242541['stack']),await _0x514644[_0xc9ca97(0xc3)](sendInstrumentationEvent,_0x330642,_0x514644[_0xc9ca97(0xe6)],messageTypes['ERROR'],_0x514644['hyVQi'],_0x242541,_0x330642),process[_0xc9ca97(0x102)](0x1);}};
1
+ const a15_0x564185=a15_0x20e5;function a15_0x2c86(){const _0x120e04=['../../utils/utilityMethods','GET','push','DgUZx','NvYBY','LGGMO','statusCode','help','cpQwS','cluster-name','running','DLCIP','INFO','server-error','password','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','exit','KfXid','requestId','log','builder','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','description','5640280msCnfJ','Zncom','HCmbg','LmhOm','qoLpc','command','grid-id','12XufWdf','grid','7606524MdVmzw','ZMyiK','clusterName','stringify','jeTPV','bfKZT','stack','10809DpqsNS','name','190BEvAFw','handler','bANCa','argv','epilogue','list-grids-called','/packages/cli/get-grids','unknown-error','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','readFileSync','init-not-called','queued','options','kQWLl','850024NQCcyi','20718774ZJYvcP','Failed\x20to\x20list\x20resources!\x20Error:\x20','3025603GusXlB','desc','got','table','list','https://','tbzhN','status','Browserstack','error','vtCHs','bstackAccesskey','ERROR','vHmAw','BknXS','126669RMLmKx','jfQsW','QpXmB','LugJb','../../utils/instrumentationUtils','unauthorised','all-grids','username','existsSync'];a15_0x2c86=function(){return _0x120e04;};return a15_0x2c86();}function a15_0x20e5(_0x17d5a8,_0x62a91a){const _0x2c86c1=a15_0x2c86();return a15_0x20e5=function(_0x20e5b7,_0x33e5c6){_0x20e5b7=_0x20e5b7-0xf4;let _0x3f9807=_0x2c86c1[_0x20e5b7];return _0x3f9807;},a15_0x20e5(_0x17d5a8,_0x62a91a);}(function(_0x2574c7,_0x3bbb62){const _0xb5d030=a15_0x20e5,_0x315ef2=_0x2574c7();while(!![]){try{const _0x488b3d=parseInt(_0xb5d030(0x105))/0x1*(parseInt(_0xb5d030(0x107))/0x2)+parseInt(_0xb5d030(0x127))/0x3*(-parseInt(_0xb5d030(0xfc))/0x4)+parseInt(_0xb5d030(0xf5))/0x5+parseInt(_0xb5d030(0xfe))/0x6+-parseInt(_0xb5d030(0x118))/0x7+parseInt(_0xb5d030(0x115))/0x8+-parseInt(_0xb5d030(0x116))/0x9;if(_0x488b3d===_0x3bbb62)break;else _0x315ef2['push'](_0x315ef2['shift']());}catch(_0x53c696){_0x315ef2['push'](_0x315ef2['shift']());}}}(a15_0x2c86,0xa311e));const fs=require('fs'),got=require(a15_0x564185(0x11a)),{table}=require(a15_0x564185(0x11b)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x564185(0x130)),{sendInstrumentationEvent}=require(a15_0x564185(0x12b));exports[a15_0x564185(0xfa)]='grids',exports[a15_0x564185(0x119)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x564185(0x144)]=function(_0x1009f8){const _0x89829f=a15_0x564185,_0x58c753={};_0x58c753[_0x89829f(0x135)]=_0x89829f(0x145),_0x58c753[_0x89829f(0x128)]='boolean',_0x58c753['ceWiJ']=_0x89829f(0x137);const _0x296d37=_0x58c753,_0x3b8ffc={};_0x3b8ffc[_0x89829f(0xf4)]=_0x296d37['LGGMO'],_0x3b8ffc['type']=_0x296d37[_0x89829f(0x128)];const _0x2512f0={};return _0x2512f0[_0x89829f(0x12d)]=_0x3b8ffc,_0x1009f8['usage'](HELP_HEADER_MESSAGE[_0x89829f(0x11c)][_0x89829f(0xfd)])[_0x89829f(0x10b)](HELP_FOOTER_MESSAGE)[_0x89829f(0x113)](_0x2512f0)[_0x89829f(0x137)](_0x296d37['ceWiJ'])[_0x89829f(0x10a)];},exports[a15_0x564185(0x108)]=async function(_0x1f3439){const _0x26bfd0=a15_0x564185,_0x1f3967={'qoLpc':function(_0x46614e){return _0x46614e();},'rwHPY':function(_0x293853){return _0x293853();},'FgMHB':_0x26bfd0(0x10f),'vHmAw':function(_0x2ce834,_0x2a53e7,_0x50a665,_0x142764,_0x1d3272,_0x40ccf3,_0x170804){return _0x2ce834(_0x2a53e7,_0x50a665,_0x142764,_0x1d3272,_0x40ccf3,_0x170804);},'QpXmB':_0x26bfd0(0x10c),'bANCa':_0x26bfd0(0x111),'MXyng':function(_0x5806ed){return _0x5806ed();},'ZMyiK':_0x26bfd0(0x131),'tbzhN':function(_0x2478b3,_0x40cec9,_0x5d89eb){return _0x2478b3(_0x40cec9,_0x5d89eb);},'KRORf':function(_0x565d0f,_0x2c9bcc){return _0x565d0f!==_0x2c9bcc;},'DgUZx':function(_0x2559b0,_0x5eff57){return _0x2559b0!==_0x5eff57;},'KfXid':function(_0x49dff7,_0xb9171){return _0x49dff7===_0xb9171;},'bfKZT':'\x0aFound\x20the\x20following\x20grids:\x0a','qnsLY':_0x26bfd0(0xfb),'Zncom':'grid-name','HCmbg':_0x26bfd0(0x11f),'LugJb':_0x26bfd0(0x13a),'cpQwS':_0x26bfd0(0x112),'jeTPV':_0x26bfd0(0x139),'vtCHs':function(_0x1f761d,_0x4dcc38){return _0x1f761d(_0x4dcc38);},'BknXS':function(_0x315e8f,_0x210536){return _0x315e8f===_0x210536;},'NvYBY':_0x26bfd0(0x146),'DLCIP':function(_0x586766,_0x6a9fb2,_0x138e9f,_0x47c20d,_0x1e1e2e,_0x544b72,_0x573c20){return _0x586766(_0x6a9fb2,_0x138e9f,_0x47c20d,_0x1e1e2e,_0x544b72,_0x573c20);},'yQcXN':_0x26bfd0(0x12c),'LmhOm':_0x26bfd0(0x13d),'QYfCL':function(_0x1e0738,_0x45e096,_0x5c58fc,_0x24ab4b,_0x34a7f4,_0x4427d9,_0x47cef2){return _0x1e0738(_0x45e096,_0x5c58fc,_0x24ab4b,_0x34a7f4,_0x4427d9,_0x47cef2);},'kQWLl':_0x26bfd0(0x10e)};try{global_registry[_0x26bfd0(0x142)]=_0x1f3967[_0x26bfd0(0xf9)](uuidv4);!fs[_0x26bfd0(0x12f)](_0x1f3967['rwHPY'](getCredentialsPath))&&(console[_0x26bfd0(0x121)](_0x1f3967['FgMHB']),await _0x1f3967[_0x26bfd0(0x125)](sendInstrumentationEvent,_0x1f3439,_0x1f3967[_0x26bfd0(0x129)],messageTypes[_0x26bfd0(0x124)],_0x1f3967[_0x26bfd0(0x109)],null,_0x1f3439),process[_0x26bfd0(0x140)](0x1));const _0x8bb6b5=JSON['parse'](fs[_0x26bfd0(0x110)](_0x1f3967['MXyng'](getCredentialsPath)));let _0x1f0470='https://'+AG_API_URL+_0x26bfd0(0x10d);_0x1f3439['allGrids']&&(_0x1f0470=_0x26bfd0(0x11d)+AG_API_URL+'/packages/cli/get-all-grids');const _0x3fbdb8={'method':_0x1f3967[_0x26bfd0(0xff)],'headers':_0x1f3967[_0x26bfd0(0x11e)](getAuthHeader,_0x8bb6b5[_0x26bfd0(0x120)]['username'],_0x8bb6b5[_0x26bfd0(0x120)][_0x26bfd0(0x13e)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x8bb6b5[_0x26bfd0(0x120)][_0x26bfd0(0x12e)],global_registry[_0x26bfd0(0x123)]=_0x8bb6b5['Browserstack'][_0x26bfd0(0x13e)],_0x1f3967[_0x26bfd0(0x125)](sendInstrumentationEvent,_0x1f3439,_0x1f3967[_0x26bfd0(0x129)],messageTypes[_0x26bfd0(0x13c)],null,null,_0x1f3439);const _0x5f4274=await _0x1f3967['tbzhN'](got,_0x1f0470,_0x3fbdb8);if(_0x1f3967['KRORf'](_0x5f4274,null)&&_0x1f3967[_0x26bfd0(0x133)](_0x5f4274,undefined)&&_0x1f3967[_0x26bfd0(0x141)](_0x5f4274[_0x26bfd0(0x136)],0xc8)){const _0x4530a2=JSON['parse'](_0x5f4274['body']);console[_0x26bfd0(0x143)](_0x1f3967[_0x26bfd0(0x103)]);const _0x5824ae=[];_0x5824ae[_0x26bfd0(0x132)]([_0x1f3967['qnsLY'],_0x1f3967[_0x26bfd0(0xf6)],_0x1f3967[_0x26bfd0(0xf7)],_0x1f3967[_0x26bfd0(0x12a)],_0x1f3967[_0x26bfd0(0x138)],_0x1f3967[_0x26bfd0(0x102)]]),_0x4530a2['forEach'](_0xdab6dd=>{const _0x4bdf01=_0x26bfd0;_0x5824ae[_0x4bdf01(0x132)]([_0xdab6dd['id'],_0xdab6dd[_0x4bdf01(0x106)],_0xdab6dd[_0x4bdf01(0x11f)],_0xdab6dd[_0x4bdf01(0x13a)],_0xdab6dd[_0x4bdf01(0x112)],_0xdab6dd[_0x4bdf01(0x100)]]);}),console[_0x26bfd0(0x143)](_0x1f3967[_0x26bfd0(0x122)](table,_0x5824ae)),process[_0x26bfd0(0x140)](0x0);}_0x1f3967[_0x26bfd0(0x126)](_0x5f4274['statusCode'],0x191)&&(console[_0x26bfd0(0x121)](_0x1f3967[_0x26bfd0(0x134)]),await _0x1f3967[_0x26bfd0(0x13b)](sendInstrumentationEvent,_0x1f3439,_0x1f3967[_0x26bfd0(0x129)],messageTypes[_0x26bfd0(0x124)],_0x1f3967['yQcXN'],null,_0x1f3439),process[_0x26bfd0(0x140)](0x1)),console[_0x26bfd0(0x121)](_0x26bfd0(0x13f)+JSON[_0x26bfd0(0x101)](_0x5f4274)),await _0x1f3967[_0x26bfd0(0x13b)](sendInstrumentationEvent,_0x1f3439,_0x1f3967[_0x26bfd0(0x129)],messageTypes[_0x26bfd0(0x124)],_0x1f3967[_0x26bfd0(0xf8)],_0x5f4274,_0x1f3439),process[_0x26bfd0(0x140)](0x1);}catch(_0x2d4274){console[_0x26bfd0(0x121)](_0x26bfd0(0x117)+_0x2d4274[_0x26bfd0(0x104)]),await _0x1f3967['QYfCL'](sendInstrumentationEvent,_0x1f3439,_0x1f3967[_0x26bfd0(0x129)],messageTypes[_0x26bfd0(0x124)],_0x1f3967[_0x26bfd0(0x114)],_0x2d4274,_0x1f3439),process[_0x26bfd0(0x140)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x520a(_0x34def0,_0x1f8a41){const _0x5f5a1c=a16_0x5f5a();return a16_0x520a=function(_0x520ade,_0x209c28){_0x520ade=_0x520ade-0x182;let _0x28d072=_0x5f5a1c[_0x520ade];return _0x28d072;},a16_0x520a(_0x34def0,_0x1f8a41);}function a16_0x5f5a(){const _0x3971b1=['epilogue','260094xZIERI','help','211873ovbLln','../config/constants','commandDir','10921450NZVlJR','TAAfs','6780904DziJaQ','4502241MvBTKx','pre-check','UJCYu','6iHJuzE','precheck_commands','handler','245CFwBeC','pre_check','command','77FDkvOW','21396MUYSzS','3486168AwjrNP','usage','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','desc','demandCommand','recommendCommands'];a16_0x5f5a=function(){return _0x3971b1;};return a16_0x5f5a();}const a16_0x450f00=a16_0x520a;(function(_0x4905b4,_0x10c020){const _0x432aeb=a16_0x520a,_0x4617ce=_0x4905b4();while(!![]){try{const _0x5a7369=-parseInt(_0x432aeb(0x196))/0x1*(-parseInt(_0x432aeb(0x185))/0x2)+parseInt(_0x432aeb(0x182))/0x3+-parseInt(_0x432aeb(0x18c))/0x4*(parseInt(_0x432aeb(0x188))/0x5)+-parseInt(_0x432aeb(0x194))/0x6*(parseInt(_0x432aeb(0x18b))/0x7)+parseInt(_0x432aeb(0x19b))/0x8+-parseInt(_0x432aeb(0x18d))/0x9+-parseInt(_0x432aeb(0x199))/0xa;if(_0x5a7369===_0x10c020)break;else _0x4617ce['push'](_0x4617ce['shift']());}catch(_0x20fcff){_0x4617ce['push'](_0x4617ce['shift']());}}}(a16_0x5f5a,0xbae66));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x450f00(0x197));exports[a16_0x450f00(0x18a)]=a16_0x450f00(0x183),exports[a16_0x450f00(0x190)]=a16_0x450f00(0x18f),exports['builder']=function(_0x47bcbf){const _0x196219=a16_0x450f00,_0x319d4b={};_0x319d4b[_0x196219(0x19a)]=_0x196219(0x186),_0x319d4b['UJCYu']=_0x196219(0x195);const _0xf5e72c=_0x319d4b;return _0x47bcbf[_0x196219(0x18e)](HELP_HEADER_MESSAGE[_0x196219(0x189)])[_0x196219(0x193)](HELP_FOOTER_MESSAGE)[_0x196219(0x198)](_0xf5e72c['TAAfs'])[_0x196219(0x191)]()[_0x196219(0x192)]()['strict']()[_0x196219(0x195)](_0xf5e72c[_0x196219(0x184)]);},exports[a16_0x450f00(0x187)]=function(_0x4736c3){};
1
+ const a16_0x4b38b1=a16_0x3d6e;(function(_0x280755,_0x24df90){const _0x23ecf0=a16_0x3d6e,_0x456d5e=_0x280755();while(!![]){try{const _0x44bc32=parseInt(_0x23ecf0(0x1ba))/0x1*(-parseInt(_0x23ecf0(0x1bb))/0x2)+-parseInt(_0x23ecf0(0x1b2))/0x3+-parseInt(_0x23ecf0(0x1b1))/0x4+-parseInt(_0x23ecf0(0x1ae))/0x5*(parseInt(_0x23ecf0(0x1a8))/0x6)+parseInt(_0x23ecf0(0x1b0))/0x7+-parseInt(_0x23ecf0(0x1b6))/0x8+parseInt(_0x23ecf0(0x1a6))/0x9;if(_0x44bc32===_0x24df90)break;else _0x456d5e['push'](_0x456d5e['shift']());}catch(_0x36a1cf){_0x456d5e['push'](_0x456d5e['shift']());}}}(a16_0x4543,0xb7f75));function a16_0x4543(){const _0x2ad0da=['pre_check','6vjBWDD','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','help','commandDir','desc','demandCommand','227165vXEPMI','pre-check','8290639cBHvml','2967184KYMQbl','3066822JtYTJZ','builder','precheck_commands','usage','33280dPzqPj','eqJzv','command','../config/constants','267OdPXeo','3606RDiKMO','mPyYV','16777908qhiJBk'];a16_0x4543=function(){return _0x2ad0da;};return a16_0x4543();}function a16_0x3d6e(_0x10ada9,_0x168c45){const _0x45436b=a16_0x4543();return a16_0x3d6e=function(_0x3d6e9a,_0x42dcaa){_0x3d6e9a=_0x3d6e9a-0x1a5;let _0x17608e=_0x45436b[_0x3d6e9a];return _0x17608e;},a16_0x3d6e(_0x10ada9,_0x168c45);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4b38b1(0x1b9));exports[a16_0x4b38b1(0x1b8)]=a16_0x4b38b1(0x1af),exports[a16_0x4b38b1(0x1ac)]=a16_0x4b38b1(0x1a9),exports[a16_0x4b38b1(0x1b3)]=function(_0x34d32e){const _0x23001f=a16_0x4b38b1,_0x166302={};_0x166302[_0x23001f(0x1b7)]=_0x23001f(0x1b4),_0x166302[_0x23001f(0x1a5)]=_0x23001f(0x1aa);const _0x4bd392=_0x166302;return _0x34d32e[_0x23001f(0x1b5)](HELP_HEADER_MESSAGE[_0x23001f(0x1a7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x23001f(0x1ab)](_0x4bd392[_0x23001f(0x1b7)])[_0x23001f(0x1ad)]()['recommendCommands']()['strict']()[_0x23001f(0x1aa)](_0x4bd392[_0x23001f(0x1a5)]);},exports['handler']=function(_0x216821){};
@@ -1 +1 @@
1
- const a17_0x1ebd0b=a17_0xfd75;(function(_0x2b9d09,_0x1f7a54){const _0x88f3fd=a17_0xfd75,_0x3918f2=_0x2b9d09();while(!![]){try{const _0x57d32f=parseInt(_0x88f3fd(0x1a7))/0x1*(-parseInt(_0x88f3fd(0x1ac))/0x2)+parseInt(_0x88f3fd(0xfd))/0x3+-parseInt(_0x88f3fd(0x17e))/0x4+parseInt(_0x88f3fd(0x19e))/0x5+parseInt(_0x88f3fd(0x15e))/0x6*(-parseInt(_0x88f3fd(0x15d))/0x7)+-parseInt(_0x88f3fd(0xc2))/0x8+parseInt(_0x88f3fd(0x157))/0x9;if(_0x57d32f===_0x1f7a54)break;else _0x3918f2['push'](_0x3918f2['shift']());}catch(_0x4c0f61){_0x3918f2['push'](_0x3918f2['shift']());}}}(a17_0x597d,0x7650c));const fs=require('fs'),ws=require('ws'),got=require(a17_0x1ebd0b(0x105)),{v4:uuidv4}=require(a17_0x1ebd0b(0x165)),ReconnectingWebSocket=require(a17_0x1ebd0b(0xd3)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x1ebd0b(0x156)),{logger}=require(a17_0x1ebd0b(0x133)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,WS_ENDPOINT,WS_EVENTS,ALL_SUPPORTED_CLOUD_PROVIDERS,AG_API_URL,DEFAULT_CLUSTER_DETAILS}=require(a17_0x1ebd0b(0x173)),{getCloudProviderObjectWithOutInit}=require(a17_0x1ebd0b(0x14b)),webSocketUtils=require('../../utils/webSocketUtils'),{sendInstrumentationEvent}=require(a17_0x1ebd0b(0xc4));exports['command']=a17_0x1ebd0b(0x1a5),exports[a17_0x1ebd0b(0x1b7)]=a17_0x1ebd0b(0x10b),exports[a17_0x1ebd0b(0x1af)]=function(_0xe49852){const _0x522d98=a17_0x1ebd0b,_0x888d5e={};_0x888d5e[_0x522d98(0x111)]=_0x522d98(0x125),_0x888d5e[_0x522d98(0x124)]='string',_0x888d5e['DRGPO']=_0x522d98(0x11c),_0x888d5e['prfiA']=_0x522d98(0xdf),_0x888d5e[_0x522d98(0x17a)]=_0x522d98(0x109),_0x888d5e[_0x522d98(0x194)]='help';const _0x478020=_0x888d5e,_0x3d0c20={};_0x3d0c20[_0x522d98(0xcb)]=_0x478020['YqGix'],_0x3d0c20[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x2b7917={};_0x2b7917[_0x522d98(0xcb)]=_0x478020[_0x522d98(0x19c)],_0x2b7917[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x568217={};_0x568217[_0x522d98(0xcb)]=_0x478020[_0x522d98(0x130)],_0x568217[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x342695={};_0x342695[_0x522d98(0xcb)]=_0x478020[_0x522d98(0x17a)],_0x342695[_0x522d98(0xd4)]=_0x478020[_0x522d98(0x124)];const _0x23cdd8={};return _0x23cdd8[_0x522d98(0xea)]=_0x3d0c20,_0x23cdd8['cloud-provider']=_0x2b7917,_0x23cdd8['region']=_0x568217,_0x23cdd8[_0x522d98(0x195)]=_0x342695,_0xe49852[_0x522d98(0x176)](HELP_HEADER_MESSAGE[_0x522d98(0xf5)])[_0x522d98(0x1b0)](HELP_FOOTER_MESSAGE)[_0x522d98(0xeb)](_0x23cdd8)['help'](_0x478020[_0x522d98(0x194)])[_0x522d98(0x140)];};async function inputValidation(_0xdb9f74,_0x20e3de){const _0x1f771a=a17_0x1ebd0b,_0x1af88f={'RLTwv':_0x1f771a(0x125),'hXvGU':_0x1f771a(0x1b9),'bPxDB':_0x1f771a(0x11c),'sDBpA':_0x1f771a(0xdf),'fjDZj':_0x1f771a(0x109),'SPREQ':_0x1f771a(0x159),'RTBEf':_0x1f771a(0x167),'aTfum':_0x1f771a(0xd6),'amVSX':_0x1f771a(0x18f),'CZnFT':_0x1f771a(0x112),'NLjAK':_0x1f771a(0x138),'pxVhB':_0x1f771a(0x1b3),'edXJW':'error','HAlfg':_0x1f771a(0x16a),'CXYyt':_0x1f771a(0xea),'aRULK':function(_0x511b65,_0x26eac9){return _0x511b65+_0x26eac9;},'DOgxC':_0x1f771a(0x12d),'GWuxb':_0x1f771a(0x1a1),'QegyY':function(_0x47000d,_0x57fbf5){return _0x47000d||_0x57fbf5;},'KeuXG':function(_0x16bec3,_0x2e9a60){return _0x16bec3!==_0x2e9a60;},'GCSwP':_0x1f771a(0xee),'CXvYp':_0x1f771a(0x19b),'sYtlv':_0x1f771a(0xe6),'bbgAz':'minJY','bmupk':function(_0x402f92,_0x22f7bc){return _0x402f92!==_0x22f7bc;},'CACNO':_0x1f771a(0x127),'iBIoX':_0x1f771a(0x131),'yUFtA':function(_0x67c017,_0x5c14e1){return _0x67c017!==_0x5c14e1;},'IFTFd':_0x1f771a(0x103),'UXPZE':function(_0x13858f,_0x3e773f){return _0x13858f===_0x3e773f;},'xQjeH':'vWaGG','RAlGq':function(_0x31d7f8,_0x31f928){return _0x31d7f8>_0x31f928;},'cWoZv':'ekxUO','WYpuV':function(_0xf5a834,_0x4bd932,_0x489199,_0x43add2,_0x2ed438,_0x3e1a12,_0x74bd15,_0x3ca84a){return _0xf5a834(_0x4bd932,_0x489199,_0x43add2,_0x2ed438,_0x3e1a12,_0x74bd15,_0x3ca84a);},'MYVsp':_0x1f771a(0x11b),'nRiCz':_0x1f771a(0x13d),'nLenE':_0x1f771a(0x148),'twoSo':_0x1f771a(0x101),'UGanx':_0x1f771a(0xc7),'ybXnp':'kCRqc','hdrAF':_0x1f771a(0x1b8),'HetUk':function(_0x30f893,_0x584766){return _0x30f893!==_0x584766;},'MpLGT':_0x1f771a(0x188),'Uxhdo':_0x1f771a(0x181),'uhhHC':function(_0x5f2364,_0x3b195d,_0x59fb8a){return _0x5f2364(_0x3b195d,_0x59fb8a);},'dLaJM':function(_0x245675,_0xd18b05,_0x402af7,_0x1a314e,_0x38fafc,_0xbe0461){return _0x245675(_0xd18b05,_0x402af7,_0x1a314e,_0x38fafc,_0xbe0461);},'NeUUK':_0x1f771a(0x13c),'AkGhc':_0x1f771a(0x195),'pJJMA':_0x1f771a(0x170),'gzRgc':_0x1f771a(0x175),'GbtcG':function(_0x4e62f9,_0x588951){return _0x4e62f9(_0x588951);},'kDYSZ':function(_0x4952e7,_0x2498de){return _0x4952e7===_0x2498de;},'fbcig':_0x1f771a(0xe2),'wGBfw':_0x1f771a(0x16b),'chETX':_0x1f771a(0x164),'XSRJE':_0x1f771a(0x166),'SxSms':_0x1f771a(0x10a),'Iwcpp':function(_0x26f233,_0x13952d){return _0x26f233!==_0x13952d;},'nonwl':_0x1f771a(0x169),'rwNoa':'Grid\x20profile\x20fetched\x20for\x20pre-check','KwQAu':function(_0x852175,_0x277899){return _0x852175===_0x277899;},'iWLrL':_0x1f771a(0x17c),'mJEcJ':'Tcagc','KWJUZ':function(_0x1e8d96,_0x2c7e30,_0x367402,_0x250c11,_0x18d2e7,_0x284223,_0x511a67,_0x575c5e){return _0x1e8d96(_0x2c7e30,_0x367402,_0x250c11,_0x18d2e7,_0x284223,_0x511a67,_0x575c5e);}};let _0x9f1cf6;try{if(_0x1af88f['KeuXG'](_0x1af88f[_0x1f771a(0xe7)],_0x1af88f[_0x1f771a(0x120)])){if(_0xdb9f74['clusterName']||_0xdb9f74[_0x1f771a(0x12a)]||_0xdb9f74[_0x1f771a(0x16a)]){if(_0x1af88f[_0x1f771a(0x145)](_0x1af88f['sYtlv'],_0x1af88f['bbgAz'])){const _0x46fbc8=[];if(!_0xdb9f74[_0x1f771a(0x1b5)]){if(_0x1af88f[_0x1f771a(0x161)](_0x1af88f['CACNO'],_0x1af88f['iBIoX']))_0x46fbc8['push'](_0x1af88f[_0x1f771a(0x13a)]);else{const _0x253e43={};_0x253e43['description']=_0x1af88f[_0x1f771a(0xe0)],_0x253e43['type']=_0x1af88f[_0x1f771a(0xda)];const _0x377a41={};_0x377a41['description']=_0x1af88f['bPxDB'],_0x377a41[_0x1f771a(0xd4)]=_0x1af88f[_0x1f771a(0xda)];const _0x36c6f9={};_0x36c6f9[_0x1f771a(0xcb)]=_0x1af88f[_0x1f771a(0x18a)],_0x36c6f9['type']=_0x1af88f[_0x1f771a(0xda)];const _0x2b0576={};_0x2b0576[_0x1f771a(0xcb)]=_0x1af88f[_0x1f771a(0x15a)],_0x2b0576['type']=_0x1af88f[_0x1f771a(0xda)];const _0xbfee52={};return _0xbfee52['cluster-name']=_0x253e43,_0xbfee52[_0x1f771a(0x167)]=_0x377a41,_0xbfee52[_0x1f771a(0x16a)]=_0x36c6f9,_0xbfee52[_0x1f771a(0x195)]=_0x2b0576,_0x2cbf8d['usage'](_0x30fe52[_0x1f771a(0xf5)])[_0x1f771a(0x1b0)](_0x10dc0a)[_0x1f771a(0xeb)](_0xbfee52)[_0x1f771a(0x159)](_0x1af88f[_0x1f771a(0x19f)])[_0x1f771a(0x140)];}};!_0xdb9f74['cloudProvider']&&(_0x1af88f[_0x1f771a(0x183)](_0x1af88f['IFTFd'],_0x1af88f['IFTFd'])?_0x1cab90[_0x1f771a(0x107)](_0x1af88f[_0x1f771a(0xde)]):_0x46fbc8['push'](_0x1af88f[_0x1f771a(0xde)]));;!_0xdb9f74[_0x1f771a(0x16a)]&&(_0x1af88f[_0x1f771a(0x177)](_0x1af88f[_0x1f771a(0xe5)],_0x1af88f[_0x1f771a(0xe5)])?_0x46fbc8['push'](_0x1af88f[_0x1f771a(0x137)]):(_0xef3874[_0x1f771a(0x144)](_0x1af88f['aTfum']),_0x5b6fb6[_0x1f771a(0xf2)](0x1)));;_0x1af88f[_0x1f771a(0x126)](_0x46fbc8[_0x1f771a(0x155)],0x0)&&(_0x1af88f[_0x1f771a(0x177)](_0x1af88f[_0x1f771a(0xd1)],_0x1af88f['cWoZv'])?(_0x9f1cf6='Missing\x20required\x20arguments:\x20'+_0x46fbc8['join'](',\x20')+_0x1f771a(0x142),await _0x1af88f[_0x1f771a(0x13b)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes['ERROR'],_0x1af88f[_0x1f771a(0x1a2)],_0x1af88f[_0x1f771a(0xfc)],_0x1af88f[_0x1f771a(0x12e)]),logger[_0x1f771a(0x144)](_0x9f1cf6),process[_0x1f771a(0xf2)](0x1)):_0x51af9d+=_0x1f771a(0x10e)+_0x3a797b['clusterName']+'\x20'+(_0x2840b4?_0x1af88f[_0x1f771a(0x182)]:_0x1af88f[_0x1f771a(0x13e)])+'\x0a\x0a');if(!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1f771a(0x18b)](_0xdb9f74[_0x1f771a(0x12a)][_0x1f771a(0x1ae)]())){if(_0x1af88f['yUFtA'](_0x1af88f[_0x1f771a(0x178)],_0x1af88f[_0x1f771a(0x178)]))_0x26a27d+=_0x1af88f[_0x1f771a(0x163)],_0x50b3b2+=_0x1f771a(0x10c)+(_0x493bb4[_0x1f771a(0x185)]||_0x1af88f['pxVhB'])+'\x0a',_0x2c298d+=_0x1f771a(0xc8)+(_0x45d202[_0x1f771a(0x199)]||_0x1af88f['pxVhB'])+'\x0a',_0x665073+='\x20\x20Stack:\x20'+(_0x5572e3[_0x1f771a(0x149)]||_0x1af88f[_0x1f771a(0x116)])+'\x0a';else{_0x9f1cf6=_0x1af88f[_0x1f771a(0x17f)],await _0x1af88f[_0x1f771a(0x13b)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes[_0x1f771a(0xdc)],_0x1af88f[_0x1f771a(0x1a2)],_0x1af88f[_0x1f771a(0x197)],_0x1af88f['edXJW']),logger[_0x1f771a(0x144)](_0x9f1cf6);if(!_0xdb9f74[_0x1f771a(0x12a)]){if(_0x1af88f[_0x1f771a(0x145)](_0x1af88f[_0x1f771a(0xf3)],_0x1af88f[_0x1f771a(0x11f)]))logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x1f771a(0xe1)]+'\x20'),_0xdb9f74[_0x1f771a(0x12a)]=DEFAULT_CLUSTER_DETAILS['CLOUD_PROVIDER'];else{const _0x2f62c6={};_0x2f62c6['type']=_0x5de08f[_0x1f771a(0x1a8)],_0x2f62c6[_0x1f771a(0x185)]=_0x17f79e,_0x286d26[_0x1f771a(0xf9)](_0x25a52d,_0x2f62c6,_0x1af88f['edXJW'],!![]);}}}}global_registry[_0x1f771a(0x1b5)]=_0xdb9f74[_0x1f771a(0x1b5)],global_registry[_0x1f771a(0x12a)]=_0xdb9f74[_0x1f771a(0x12a)],global_registry[_0x1f771a(0x1a0)]=_0xdb9f74[_0x1f771a(0x16a)];}else _0x1249a1=_0x42c23f;}else{if(_0xdb9f74['gridProfile']){if(_0x1af88f[_0x1f771a(0x114)](_0x1af88f[_0x1f771a(0x102)],_0x1af88f[_0x1f771a(0x102)]))_0x30a5f7[_0x1f771a(0x11a)]('Cluster\x20`'+_0x2cf86b[_0x1f771a(0x1b5)]+_0x1f771a(0x1a3));else{global_registry[_0x1f771a(0xc3)]=_0xdb9f74['gridProfile'],logger[_0x1f771a(0xed)](_0x1f771a(0x154)+_0xdb9f74[_0x1f771a(0xc3)]);const _0x478488=_0x1f771a(0x1b4)+AG_API_URL+'/packages/cli/get-all-grid-profiles',_0x41c17e={};_0x41c17e[_0x1f771a(0x184)]=_0x1af88f['Uxhdo'],_0x41c17e[_0x1f771a(0x136)]=global_registry[_0x1f771a(0xdb)],_0x41c17e[_0x1f771a(0x17b)]=![];const _0x499656=_0x41c17e,_0x4571fa=await _0x1af88f[_0x1f771a(0x1b1)](got,_0x478488,_0x499656),_0x1f3312=await _0x1af88f['dLaJM'](responseValidation,_0x4571fa,_0x1af88f[_0x1f771a(0x180)],_0x1af88f['AkGhc'],_0xdb9f74,_0x20e3de);let _0x213538={};if(_0x1af88f['UXPZE'](_0x1f3312,0xc8)){if(_0x1af88f[_0x1f771a(0x177)](_0x1af88f[_0x1f771a(0xfb)],_0x1af88f['gzRgc']))_0x468440[_0x1f771a(0xf2)](0x1);else{const _0x2cc1f5=JSON[_0x1f771a(0x15b)](_0x4571fa[_0x1f771a(0x14a)]),_0x1b6847=_0x2cc1f5[_0x1f771a(0xd8)](_0x192f08=>_0x192f08[_0x1f771a(0x143)]===_0xdb9f74[_0x1f771a(0xc3)])||null;_0x1af88f[_0x1f771a(0xdd)](isUndefined,_0x1b6847)?_0x1af88f[_0x1f771a(0xd9)](_0x1af88f['fbcig'],_0x1af88f[_0x1f771a(0x11e)])?_0x33f986[_0x1f771a(0x107)](_0x1af88f['HAlfg']):(_0x9f1cf6=_0x1f771a(0x108)+_0xdb9f74['gridProfile']+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x1af88f[_0x1f771a(0x13b)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes[_0x1f771a(0xdc)],_0x1af88f['MYVsp'],_0x1af88f['chETX'],_0x1af88f[_0x1f771a(0x12e)]),logger[_0x1f771a(0x144)](_0x9f1cf6),process[_0x1f771a(0xf2)](0x1)):_0x1af88f[_0x1f771a(0x161)](_0x1af88f['XSRJE'],_0x1af88f[_0x1f771a(0xe8)])?_0x213538=_0x1b6847:_0x1a2ad4['error'](_0x1f771a(0x1b6)+_0x10b65c[_0x1f771a(0x144)][_0x1f771a(0x149)]);}}else _0x1af88f[_0x1f771a(0x122)](_0x1af88f[_0x1f771a(0x151)],_0x1af88f[_0x1f771a(0x151)])?(_0x3b6302[_0x1f771a(0x11a)](_0x1f771a(0x115)+_0x46d4fd[_0x1f771a(0xe1)]+'\x20'),_0x391f91[_0x1f771a(0x12a)]=_0x3be4e8[_0x1f771a(0xe1)]):process['exit'](0x1);const _0x4027ec={};_0x4027ec[_0x1f771a(0xd4)]=WS_EVENTS[_0x1f771a(0x1a8)],_0x4027ec[_0x1f771a(0x185)]=_0x1af88f[_0x1f771a(0xc6)],webSocketUtils[_0x1f771a(0xf9)](_0x20e3de,_0x4027ec),global_registry[_0x1f771a(0x12a)]=_0x213538[_0x1f771a(0x12a)],global_registry[_0x1f771a(0x1a0)]=_0x213538[_0x1f771a(0x16a)],global_registry[_0x1f771a(0x1b5)]=_0x213538['clusterName'];}}else _0x1af88f[_0x1f771a(0xd5)](_0x1af88f[_0x1f771a(0x110)],_0x1af88f['iWLrL'])?(logger[_0x1f771a(0x144)](_0x1af88f['aTfum']),process[_0x1f771a(0xf2)](0x1)):_0x779fb7[_0x1f771a(0x107)](_0x1af88f[_0x1f771a(0x13a)]);}}else{const {header:_0x144b7c,response:_0x153a39}=_0x47dfaa,{status:_0x12c147,data:_0x2d36a2,error:_0x5087cc}=_0x153a39;_0x3d845c+=_0x144b7c+'\x20#'+_0x1af88f[_0x1f771a(0x12f)](_0x2b6460,0x1)+'\x0a',_0x590e8d+=_0x1f771a(0x146)+(_0x12c147?_0x1af88f['DOgxC']:_0x1af88f[_0x1f771a(0x162)])+'\x0a',_0x193e4d+=_0x1f771a(0x160)+_0x1af88f[_0x1f771a(0x14f)](_0x2d36a2,_0x1af88f[_0x1f771a(0x116)])+'\x0a',_0x5087cc&&(_0x3ad9e1+=_0x1af88f[_0x1f771a(0x163)],_0x266175+=_0x1f771a(0x10c)+(_0x5087cc[_0x1f771a(0x185)]||_0x1af88f[_0x1f771a(0x116)])+'\x0a',_0x10d47f+='\x20\x20Code:\x20'+(_0x5087cc['code']||_0x1af88f[_0x1f771a(0x116)])+'\x0a',_0x290338+='\x20\x20Stack:\x20'+(_0x5087cc[_0x1f771a(0x149)]||_0x1af88f[_0x1f771a(0x116)])+'\x0a'),_0x1f4ddd+='\x0a\x0a';}}catch(_0x2f54bf){_0x1af88f['KeuXG'](_0x1af88f[_0x1f771a(0x113)],_0x1af88f[_0x1f771a(0x113)])?(_0x192b21['info']('['+_0x42d839+']\x20status\x20:\x20'+_0xb4b024[_0x1f771a(0x1ad)]+_0x1f771a(0x189)+_0x1bb007[_0x1f771a(0x12c)]+_0x1f771a(0x104)+_0x29d4d0[_0x1f771a(0x144)]),_0x58fd90[_0x1f771a(0x144)]&&_0x2e6c04[_0x1f771a(0x144)](_0x1f771a(0x1b6)+_0x565eff[_0x1f771a(0x144)][_0x1f771a(0x149)])):(_0x9f1cf6=_0x1f771a(0x187)+_0x2f54bf+':\x20'+_0x2f54bf[_0x1f771a(0x149)],logger['error'](_0x9f1cf6),await _0x1af88f[_0x1f771a(0x19d)](reportToGalactusAndSendToEDS,_0xdb9f74,_0x20e3de,_0x9f1cf6,messageTypes['ERROR'],_0x1af88f['MYVsp'],_0x1af88f[_0x1f771a(0x197)],_0x1af88f[_0x1f771a(0x12e)]),process[_0x1f771a(0xf2)](0x1));}}function printResponse(_0x1d77fc,_0x4603b8){const _0x4664a1=a17_0x1ebd0b,_0x349701={};_0x349701['JhVrd']=function(_0x4d118,_0x34353d){return _0x4d118===_0x34353d;},_0x349701[_0x4664a1(0x16d)]=_0x4664a1(0x135),_0x349701['KzwBy']=_0x4664a1(0x1ab);const _0x2cf11a=_0x349701;logger[_0x4664a1(0x11a)]('['+_0x1d77fc+_0x4664a1(0xca)+_0x4603b8['status']+_0x4664a1(0x189)+_0x4603b8['data']+'\x20error\x20:\x20'+_0x4603b8['error']),_0x4603b8[_0x4664a1(0x144)]&&(_0x2cf11a[_0x4664a1(0xc9)](_0x2cf11a['ZRFlh'],_0x2cf11a[_0x4664a1(0x152)])?_0x3988d6+='Cluster\x20'+_0x1f19cc[_0x4664a1(0x1b5)]+_0x4664a1(0x14d):logger['error'](_0x4664a1(0x1b6)+_0x4603b8['error']['stack']));}async function generateReport(_0x175123,_0x5ce4d7){const _0x551517=a17_0x1ebd0b,_0x1e4787={'pMfoO':function(_0x5b8cb0,_0x5ddd86){return _0x5b8cb0+_0x5ddd86;},'unLrA':_0x551517(0x12d),'jcBEc':'Failure','kKzcH':function(_0x540402,_0x48b383){return _0x540402||_0x48b383;},'ozuJr':_0x551517(0x1b3),'xuMfo':'Error\x20Details:\x0a','LFRPp':_0x551517(0xd7),'JskvP':function(_0x357704,_0xe24494){return _0x357704!=_0xe24494;},'DrMaL':_0x551517(0x18f),'wNGYi':_0x551517(0x112),'oQDLt':function(_0x375cf6){return _0x375cf6();}};let _0x1ff2ea=_0x551517(0x1a4)+global_registry['cloudProvider']+'\x20===\x0a\x0a';return _0x175123[_0x551517(0x134)]((_0x5ecc01,_0xfab38d)=>{const _0x334db9=_0x551517,{header:_0x3d3905,response:_0x15c283}=_0x5ecc01,{status:_0x2c7c7f,data:_0x53c910,error:_0x68d3e0}=_0x15c283;_0x1ff2ea+=_0x3d3905+'\x20#'+_0x1e4787['pMfoO'](_0xfab38d,0x1)+'\x0a',_0x1ff2ea+='Status:\x20'+(_0x2c7c7f?_0x1e4787[_0x334db9(0x198)]:_0x1e4787[_0x334db9(0xec)])+'\x0a',_0x1ff2ea+=_0x334db9(0x160)+_0x1e4787[_0x334db9(0xcc)](_0x53c910,_0x1e4787[_0x334db9(0xc5)])+'\x0a',_0x68d3e0&&(_0x1ff2ea+=_0x1e4787['xuMfo'],_0x1ff2ea+=_0x334db9(0x10c)+(_0x68d3e0['message']||_0x1e4787[_0x334db9(0xc5)])+'\x0a',_0x1ff2ea+='\x20\x20Code:\x20'+(_0x68d3e0[_0x334db9(0x199)]||_0x1e4787[_0x334db9(0xc5)])+'\x0a',_0x1ff2ea+='\x20\x20Stack:\x20'+(_0x68d3e0[_0x334db9(0x149)]||_0x1e4787['ozuJr'])+'\x0a'),_0x1ff2ea+='\x0a\x0a';}),_0x1ff2ea+=_0x1e4787[_0x551517(0x139)],_0x1e4787[_0x551517(0x119)](_0x5ce4d7,null)?_0x1ff2ea+='Cluster\x20'+global_registry[_0x551517(0x1b5)]+'\x20'+(_0x5ce4d7?_0x1e4787['DrMaL']:_0x1e4787['wNGYi'])+'\x0a\x0a':_0x1ff2ea+='Cluster\x20'+global_registry[_0x551517(0x1b5)]+_0x551517(0x14d),_0x1ff2ea+=_0x1e4787['oQDLt'](getSystemMetaData),_0x1ff2ea;};exports['handler']=async function(_0x5e8221){const _0xccc0b7=a17_0x1ebd0b,_0x5453f9={'sKzXy':function(_0xe07309){return _0xe07309();},'RMUjI':function(_0x30fa0c){return _0x30fa0c();},'DCNym':_0xccc0b7(0xe4),'jMFJb':function(_0x1cac66,_0xf7ab96,_0x55f153,_0x27da1a,_0xa8ed10,_0x49f38f,_0xf10db7,_0x23e975){return _0x1cac66(_0xf7ab96,_0x55f153,_0x27da1a,_0xa8ed10,_0x49f38f,_0xf10db7,_0x23e975);},'KOEwY':_0xccc0b7(0x11b),'FCYsD':_0xccc0b7(0x16e),'LOIaA':'error','Qxwho':function(_0x18f0aa,_0x53c73b,_0x39e619,_0x5a1e9f,_0x5204ce,_0x51dd26,_0x45f3b2){return _0x18f0aa(_0x53c73b,_0x39e619,_0x5a1e9f,_0x5204ce,_0x51dd26,_0x45f3b2);},'TMuaU':'<UsernamePlaceholder>','VfiDy':_0xccc0b7(0x1a9),'SnMgI':function(_0x254ee2,_0x1e4fa6,_0x48fd9e){return _0x254ee2(_0x1e4fa6,_0x48fd9e);},'euPGI':function(_0x5f2ef0,_0x209a3b,_0x3a759a,_0x2ef681,_0x2bf1ca,_0x5522f3,_0x569e5c){return _0x5f2ef0(_0x209a3b,_0x3a759a,_0x2ef681,_0x2bf1ca,_0x5522f3,_0x569e5c);},'pNjHs':_0xccc0b7(0x15c),'zbWpF':'toolInstalledResp','SVMuV':'1|0|3|4|2','kLmWC':function(_0x4173e1,_0x162402,_0xe8219c){return _0x4173e1(_0x162402,_0xe8219c);},'VKuef':_0xccc0b7(0x168),'uyfpH':function(_0x37fae6){return _0x37fae6();},'cKOku':function(_0x3460ce,_0x16f97c,_0x10b705){return _0x3460ce(_0x16f97c,_0x10b705);},'RUsPm':_0xccc0b7(0x1a6),'DmODF':function(_0x20cdf8,_0x137fcd){return _0x20cdf8(_0x137fcd);},'TcgHS':_0xccc0b7(0xf8),'xAqvw':function(_0x3289d6,_0x5a4ee9,_0x4f3f7e){return _0x3289d6(_0x5a4ee9,_0x4f3f7e);},'UGRQn':'isTls1_2_SUPPORTED','xzScx':'Tool\x20Installed','nytsu':_0xccc0b7(0x192),'neuyZ':'Whitelisted\x20browserstack','cVmDG':_0xccc0b7(0x106),'jFYQB':function(_0x2839b8,_0x13e5c0){return _0x2839b8+_0x13e5c0;},'lQxPe':'utf-8','kfZVE':_0xccc0b7(0x174)};let _0x26b5f1,_0x521e5d;try{global_registry['requestId']=_0x5453f9[_0xccc0b7(0x11d)](uuidv4);!fs[_0xccc0b7(0x141)](_0x5453f9['RMUjI'](getCredentialsPath))&&(_0x521e5d=_0x5453f9[_0xccc0b7(0x15f)],logger['error'](_0x521e5d),await _0x5453f9['jMFJb'](reportToGalactusAndSendToEDS,_0x5e8221,_0x26b5f1,_0x521e5d,messageTypes[_0xccc0b7(0xdc)],_0x5453f9[_0xccc0b7(0x172)],_0x5453f9[_0xccc0b7(0xe3)],_0x5453f9[_0xccc0b7(0x118)]),process[_0xccc0b7(0xf2)](0x1));_0x5453f9[_0xccc0b7(0x179)](sendInstrumentationEvent,_0x5e8221,_0x5453f9[_0xccc0b7(0x172)],messageTypes[_0xccc0b7(0xf6)],null,null,_0x5e8221);const _0x33e106=JSON[_0xccc0b7(0x15b)](fs[_0xccc0b7(0x129)](_0x5453f9[_0xccc0b7(0x19a)](getCredentialsPath)));global_registry[_0xccc0b7(0x153)]=_0x33e106['Browserstack'][_0xccc0b7(0x18d)],global_registry[_0xccc0b7(0x1aa)]=_0x33e106['Browserstack'][_0xccc0b7(0xf7)];const _0x465710=WS_ENDPOINT[_0xccc0b7(0xff)](_0x5453f9[_0xccc0b7(0x158)],_0x33e106[_0xccc0b7(0x14c)][_0xccc0b7(0x18d)])[_0xccc0b7(0xff)](_0x5453f9[_0xccc0b7(0x12b)],_0x33e106[_0xccc0b7(0x14c)][_0xccc0b7(0xf7)]),_0x321e27={};_0x321e27[_0xccc0b7(0xce)]=ws,_0x321e27[_0xccc0b7(0x121)]=0x36ee80,_0x26b5f1=new ReconnectingWebSocket(_0x465710,[],_0x321e27),global_registry['authHeader']=_0x5453f9[_0xccc0b7(0xf4)](getAuthHeader,global_registry[_0xccc0b7(0x153)],global_registry[_0xccc0b7(0x1aa)]),await _0x5453f9[_0xccc0b7(0xf4)](inputValidation,_0x5e8221,_0x26b5f1),logger['info']('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry['cloudProvider']+'\x20region\x20-\x20'+global_registry['clusterRegion']);let _0x4a671e=await _0x5453f9[_0xccc0b7(0xf1)](getCloudProviderObjectWithOutInit,global_registry[_0xccc0b7(0x12a)],global_registry[_0xccc0b7(0x1b5)],_0x5453f9[_0xccc0b7(0x10f)],_0x26b5f1,webSocketUtils,_0x5e8221);const _0x262c79=await _0x4a671e[_0xccc0b7(0x14e)]();_0x5453f9[_0xccc0b7(0xf4)](printResponse,_0x5453f9['zbWpF'],_0x262c79),_0x4a671e=await _0x4a671e[_0xccc0b7(0xef)]();let _0x4c1281=![];try{_0x4c1281=await _0x4a671e[_0xccc0b7(0x100)]();}catch(_0x2932a2){const _0x3232c4=_0x5453f9[_0xccc0b7(0x1ba)][_0xccc0b7(0x117)]('|');let _0x247e6f=0x0;while(!![]){switch(_0x3232c4[_0x247e6f++]){case'0':_0x4c1281=null;continue;case'1':_0x521e5d=_0xccc0b7(0x10d)+global_registry[_0xccc0b7(0x1b5)]+_0xccc0b7(0x193)+global_registry[_0xccc0b7(0x1a0)]+_0xccc0b7(0x18c)+_0x2932a2;continue;case'2':await _0x5453f9[_0xccc0b7(0x16c)](reportToGalactusAndSendToEDS,_0x5e8221,_0x26b5f1,_0x521e5d,messageTypes[_0xccc0b7(0xdc)],_0x5453f9['KOEwY'],'cluster-check-failed-'+global_registry['cloudProvider'],_0x5453f9[_0xccc0b7(0x118)]);continue;case'3':logger[_0xccc0b7(0x144)](_0x521e5d);continue;case'4':_0x521e5d+='\x0a'+JSON[_0xccc0b7(0x186)](_0x2932a2['stack']);continue;}break;}}_0x4c1281&&logger[_0xccc0b7(0x11a)](_0xccc0b7(0x196)+global_registry[_0xccc0b7(0x1b5)]+'`\x20already\x20exists');const _0x2e0d98=await _0x4a671e['checkAccess']();_0x5453f9[_0xccc0b7(0x1b2)](printResponse,_0x5453f9[_0xccc0b7(0xcd)],_0x2e0d98);const _0x2c8d1f=await _0x5453f9['uyfpH'](curlRequest);_0x5453f9['cKOku'](printResponse,_0x5453f9[_0xccc0b7(0x18e)],_0x2c8d1f);const _0x2041a1=await _0x5453f9[_0xccc0b7(0x190)](isTlsSupported,_0x5453f9['TcgHS']);_0x5453f9[_0xccc0b7(0x16f)](printResponse,_0x5453f9['UGRQn'],_0x2041a1);const _0x37da62={};_0x37da62[_0xccc0b7(0xd0)]=_0x5453f9['xzScx'],_0x37da62[_0xccc0b7(0x128)]=_0x262c79;const _0x5ac319={};_0x5ac319[_0xccc0b7(0xd0)]=_0x5453f9[_0xccc0b7(0x150)],_0x5ac319[_0xccc0b7(0x128)]=_0x2e0d98;const _0x591c92={};_0x591c92[_0xccc0b7(0xd0)]=_0x5453f9[_0xccc0b7(0x171)],_0x591c92[_0xccc0b7(0x128)]=_0x2c8d1f;const _0x1a6555={};_0x1a6555[_0xccc0b7(0xd0)]=_0x5453f9[_0xccc0b7(0xd2)],_0x1a6555['response']=_0x2041a1;const _0x1d6a15=[_0x37da62,_0x5ac319,_0x591c92,_0x1a6555],_0x6bdc91=await _0x5453f9[_0xccc0b7(0xf4)](generateReport,_0x1d6a15,_0x4c1281),_0x427c96=new Date(),_0x1c5727=_0x427c96[_0xccc0b7(0xfe)]()+'_'+_0x5453f9['jFYQB'](_0x427c96[_0xccc0b7(0x13f)](),0x1)+'_'+_0x427c96[_0xccc0b7(0xfa)]()+'_'+_0x427c96[_0xccc0b7(0x123)]()+'_'+_0x427c96[_0xccc0b7(0x147)](),_0x5b3df7=_0xccc0b7(0xcf)+_0x1c5727+_0xccc0b7(0xf0);fs[_0xccc0b7(0x17d)](_0x5b3df7,_0x6bdc91,_0x5453f9[_0xccc0b7(0xe9)]),logger['info']('Report\x20saved\x20in\x20'+_0x5b3df7),process[_0xccc0b7(0xf2)](0x0);}catch(_0x970a34){let _0x53624c='Failed\x20in\x20pre-check!\x20Error:\x20'+_0x970a34+'\x20';logger[_0xccc0b7(0x144)](_0x53624c),_0x53624c+='\x0a'+JSON[_0xccc0b7(0x186)](_0x970a34['stack']),logger['debug'](_0xccc0b7(0x132)+_0x970a34[_0xccc0b7(0x149)]);if(_0x26b5f1){const _0x8a9756={};_0x8a9756[_0xccc0b7(0xd4)]=WS_EVENTS[_0xccc0b7(0x1a8)],_0x8a9756[_0xccc0b7(0x185)]=_0x53624c,webSocketUtils[_0xccc0b7(0xf9)](_0x26b5f1,_0x8a9756,_0x5453f9[_0xccc0b7(0x118)],!![]);}await webSocketUtils[_0xccc0b7(0x191)](0x7d0);const _0x66175={};_0x66175[_0xccc0b7(0x144)]=_0x53624c,await _0x5453f9[_0xccc0b7(0x179)](sendInstrumentationEvent,_0x5e8221,_0x5453f9[_0xccc0b7(0x172)],messageTypes[_0xccc0b7(0xdc)],_0x5453f9['kfZVE'],_0x66175,_0x5e8221),process['exit'](0x1);}};function a17_0xfd75(_0x45af83,_0x854aa6){const _0x597de7=a17_0x597d();return a17_0xfd75=function(_0xfd75e7,_0x3decfd){_0xfd75e7=_0xfd75e7-0xc2;let _0x598d48=_0x597de7[_0xfd75e7];return _0x598d48;},a17_0xfd75(_0x45af83,_0x854aa6);}function a17_0x597d(){const _0x3431e9=['split','LOIaA','JskvP','info','pre-check-grid-called','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','sKzXy','wGBfw','hdrAF','CXvYp','connectionTimeout','Iwcpp','getUTCHours','LcsLW','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','RAlGq','IpVzo','response','readFileSync','cloudProvider','VfiDy','data','Success','edXJW','aRULK','prfiA','TgRfs','stack\x20trace\x20','../../config/logger','forEach','wIqGO','headers','HAlfg','Error\x20Details:\x0a','LFRPp','CXYyt','WYpuV','pre-check','pre-check-cluster-args-not-passed','CZnFT','getUTCMonth','argv','existsSync','.\x20Please\x20provide\x20all\x20required\x20arguments.','name','error','KeuXG','Status:\x20','getUTCMinutes','ncOpZ','stack','body','../../cloudproviders/utils','Browserstack','\x20details\x20cannot\x20be\x20fetched\x0a\x0a','isCliToolInstalled','QegyY','nytsu','nonwl','KzwBy','bstackUsername','grid\x20profile\x20flow\x20','length','../../utils/utilityMethods','18711594eXrwzE','TMuaU','help','fjDZj','parse','dummy-grid','7GBoLEb','3654306CNcVib','DCNym','Message:\x20','bmupk','GWuxb','NLjAK','pre-check-grid-profile-empty','uuid','mxKhH','cloud-provider','accessResp','zHPKK','region','QCAAL','jMFJb','ZRFlh','credential-not-found','xAqvw','Ntddp','neuyZ','KOEwY','../../config/constants','pre-check-failed','Ttlni','usage','UXPZE','nLenE','Qxwho','MuLZk','throwHttpErrors','rmXWb','writeFileSync','2002068iUSfkb','twoSo','NeUUK','GET','amVSX','yUFtA','method','message','stringify','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','sQQwJ','\x20data\x20:\x20','sDBpA','includes','`\x20,error\x20:\x20','username','RUsPm','is\x20already\x20present','DmODF','delay','User\x20Access','`\x20is\x20present\x20in\x20region\x20`','LOnZY','grid-profile','Cluster\x20`','UGanx','unLrA','code','RMUjI','dOvZI','DRGPO','KWJUZ','770000CTHeHZ','SPREQ','clusterRegion','Failure','MYVsp','`\x20already\x20exists','===\x20Precheck\x20Report\x20-\x20','grid','isTrialGridAccessible','95151MxbHgx','LOG','<PasswordPlaceholder>','bstackAccesskey','GEbNe','6dhCwEe','status','toLowerCase','builder','epilogue','uhhHC','kLmWC','N/A','https://','clusterName','error\x20stack\x20:\x20','desc','igIZR','string','SVMuV','3041944ePswWU','gridProfile','../../utils/instrumentationUtils','ozuJr','rwNoa','cloud-provider-not-supported','\x20\x20Code:\x20','JhVrd',']\x20status\x20:\x20','description','kKzcH','VKuef','WebSocket','log/report_','header','cWoZv','cVmDG','reconnecting-websocket','type','KwQAu','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','Cluster\x20details\x0a-----------------------\x0a','find','kDYSZ','hXvGU','authHeader','ERROR','GbtcG','RTBEf','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','RLTwv','CLOUD_PROVIDER','PgHiv','FCYsD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','xQjeH','TMUEA','GCSwP','SxSms','lQxPe','cluster-name','options','jcBEc','debug','EHUHX','init','.txt','euPGI','exit','ybXnp','SnMgI','pre_check','INFO','password','TLSv1_2_client_method','sendEventToBackend','getUTCDate','pJJMA','nRiCz','80454XdjNWv','getUTCFullYear','replace','isClusterPresent','Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','MpLGT','IvMbf','\x20error\x20:\x20','got','SSL\x20Configured','push','Invalid\x20input.\x20grid\x20profiles:\x20','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','YzGKo','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','\x20\x20Message:\x20','unable\x20to\x20verify\x20if\x20cluster\x20`','Cluster\x20','pNjHs','iWLrL','YqGix','will\x20be\x20created','mJEcJ','HetUk','Setting\x20cloud\x20provider\x20as\x20','pxVhB'];a17_0x597d=function(){return _0x3431e9;};return a17_0x597d();}
1
+ const a17_0x565911=a17_0x1727;(function(_0x5e5cc0,_0x267c4e){const _0x1c9816=a17_0x1727,_0x2788a2=_0x5e5cc0();while(!![]){try{const _0x81e0a4=parseInt(_0x1c9816(0xbf))/0x1+-parseInt(_0x1c9816(0x13a))/0x2*(parseInt(_0x1c9816(0xbd))/0x3)+-parseInt(_0x1c9816(0x175))/0x4*(-parseInt(_0x1c9816(0xfc))/0x5)+-parseInt(_0x1c9816(0xd4))/0x6+parseInt(_0x1c9816(0x10c))/0x7+-parseInt(_0x1c9816(0x109))/0x8+parseInt(_0x1c9816(0x169))/0x9;if(_0x81e0a4===_0x267c4e)break;else _0x2788a2['push'](_0x2788a2['shift']());}catch(_0x2f535f){_0x2788a2['push'](_0x2788a2['shift']());}}}(a17_0x44e4,0x6ddfb));function a17_0x44e4(){const _0xb80d62=['BVlEm','pSzqy','pre-check-cluster-args-not-passed','fQWaj','jfZje','Cluster\x20','help','JGUrl','qVgIc','GPbYi','info','XwKCF','getUTCMonth','<PasswordPlaceholder>','push','pre-check-grid-called','7970rizQCR','unable\x20to\x20verify\x20if\x20cluster\x20`','code','4|3|2|1|0','amoPU','LQnQa','XYBLN','getUTCDate','lenPH','Failed\x20in\x20pre-check!\x20Error:\x20','gSZZw','hETng','isCliToolInstalled','4914064ekmzRe','YWQio','pVkLt','3671563lwgAiA','Missing\x20required\x20arguments.\x20Please\x20provide\x20either\x20grid\x20profile\x20or\x20cluster\x20details\x20(cluser-name\x20,\x20cloud\x20provider\x20&\x20region','UBfwG','djKAy','gridProfile','isTrialGridAccessible','.\x20Please\x20provide\x20all\x20required\x20arguments.','split','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','arzzc','gdrRO','../../config/constants','eZOQl','ebwcX','zgTeV','PTMlS','status','bgQug','password','Error\x20in\x20input\x20validation\x20while\x20pre-check\x20-\x20','exit','JDzbC','sLVFn','LOG','nQFcK','RAtVa','https://','pre_check','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','INFO','fXcRj','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','epilogue','Check\x20the\x20pre-requisites\x20needed\x20for\x20Automation\x20grid\x20setup','Vvpuh','nNEbU','PRJMM','Jcvgi','RzlmU','authHeader','string','body','../../config/logger','cjkFo','username','1189292ViLMAG','eEroz','Setting\x20cloud\x20provider\x20as\x20','IkkFl','ktKHx','`\x20is\x20present\x20in\x20region\x20`','vfCMl','getUTCHours','eYWEb','ERROR','\x20data\x20:\x20','DHpjL','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','\x20region\x20-\x20','/packages/cli/get-all-grid-profiles','VwJCH','header','TLSv1_2_client_method','AFzld','headers','Kfhfb','Status:\x20','checkAccess','KMVQH','../../utils/utilityMethods','getUTCMinutes','grid-profile','SSL\x20Configured','LaQIg','NTLbL','zoxMX','Report\x20saved\x20in\x20','handler','\x20\x20Code:\x20','ekavm','../../utils/instrumentationUtils','Cluster\x20`','YERCw','usage','kGBTq','getUTCFullYear','VSrRt','QnzXz','N/A','Cluster\x20details\x0a-----------------------\x0a','uLHvd','cluster-name','5390334jAJcKe','hUesC','tYhLT','\x20\x20Message:\x20','PEFUQ','`\x20already\x20exists','argv','desc','error','cluster-check-failed-','will\x20be\x20created','phoQB','1380EHVzUW','GET','cloud-provider-not-supported','SgEbW','ubQSe','uzYIj','Invalid\x20input.\x20grid\x20profiles:\x20','parse','GWxBa','IusNW','lpdQV','grid\x20profile\x20flow\x20','qlFXK','lCtUm','cloud-provider','WjeWs','grid','Missing\x20required\x20arguments:\x20','UWYcY','message','\x20error\x20:\x20','ebnMW','Success','Fxtbu','Failure','bHiUM','`\x20,error\x20:\x20','sendEventToBackend','builder','uAnUL','FXdRd','gXKiG','Message:\x20','RvmSg','is\x20already\x20present','mkhAU','oXAhj','description','region','Browserstack','aiLMh','clusterRegion','nnnNX','TeBnw','writeFileSync','WNIhL','eQhsu','<UsernamePlaceholder>','reconnecting-websocket','PxhkO','sEzPC','mspni','WpEGc','nPKym','WebSocket','xaANQ','name','rauLK','clusterName','OEvPH','replace','pre-check','CLOUD_PROVIDER',']\x20status\x20:\x20','../../utils/webSocketUtils','bstackAccesskey','options','response','3usbWNt','kxjve','300011lTUmiH','join','dummy-grid','TGmAM','debug','TKiZW','log/report_','BXjHP','BQzwh','DXyJZ','credential-not-found','Error\x20Details:\x0a','WBiBR','IDPof','UebzF','XxwxO','delay','error\x20stack\x20:\x20','utf-8','HIUud','qvIVk','1886574znOuCm','hvdoH','forEach','oXUgM','pre-check-failed','includes','stack','ntAUC','IGahh','cloudProvider','toLowerCase','data','DUEms','existsSync','bstackUsername','seCMv','accessResp','stringify','type','zaYJY','cVXAM','IFtvX','find','\x20\x20Stack:\x20'];a17_0x44e4=function(){return _0xb80d62;};return a17_0x44e4();}const fs=require('fs'),ws=require('ws'),got=require('got'),{v4:uuidv4}=require('uuid'),ReconnectingWebSocket=require(a17_0x565911(0xa9)),{getCredentialsPath,reportToGalactusAndSendToEDS,getAuthHeader,responseValidation,isUndefined,curlRequest,isTlsSupported,getSystemMetaData}=require(a17_0x565911(0x152)),{logger}=require(a17_0x565911(0x137)),{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_0x565911(0x117)),{getCloudProviderObjectWithOutInit}=require('../../cloudproviders/utils'),webSocketUtils=require(a17_0x565911(0xb9)),{sendInstrumentationEvent}=require(a17_0x565911(0x15d));exports['command']=a17_0x565911(0x185),exports[a17_0x565911(0x170)]=a17_0x565911(0x12e),exports[a17_0x565911(0x95)]=function(_0x460649){const _0x169f00=a17_0x565911,_0x4786ec={};_0x4786ec[_0x169f00(0xa7)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x4786ec['GWxBa']=_0x169f00(0x135),_0x4786ec['BXjHP']=_0x169f00(0x12c),_0x4786ec[_0x169f00(0x130)]=_0x169f00(0x146),_0x4786ec[_0x169f00(0xd2)]=_0x169f00(0x114),_0x4786ec[_0x169f00(0x17a)]=_0x169f00(0xf2);const _0x2de070=_0x4786ec,_0x178db1={};_0x178db1['description']=_0x2de070[_0x169f00(0xa7)],_0x178db1[_0x169f00(0xe6)]=_0x2de070[_0x169f00(0x17d)];const _0x1926ad={};_0x1926ad['description']=_0x2de070[_0x169f00(0xc6)],_0x1926ad['type']=_0x2de070[_0x169f00(0x17d)];const _0xb4f44a={};_0xb4f44a[_0x169f00(0x9e)]=_0x2de070[_0x169f00(0x130)],_0xb4f44a[_0x169f00(0xe6)]=_0x2de070['GWxBa'];const _0x39d825={};_0x39d825[_0x169f00(0x9e)]=_0x2de070['HIUud'],_0x39d825[_0x169f00(0xe6)]=_0x2de070[_0x169f00(0x17d)];const _0x510929={};return _0x510929[_0x169f00(0x168)]=_0x178db1,_0x510929[_0x169f00(0x183)]=_0x1926ad,_0x510929[_0x169f00(0x9f)]=_0xb4f44a,_0x510929[_0x169f00(0x154)]=_0x39d825,_0x460649[_0x169f00(0x160)](HELP_HEADER_MESSAGE[_0x169f00(0x127)])[_0x169f00(0x12d)](HELP_FOOTER_MESSAGE)[_0x169f00(0xbb)](_0x510929)['help'](_0x2de070['uzYIj'])[_0x169f00(0x16f)];};function a17_0x1727(_0x174e0f,_0x1ee0d8){const _0x44e44a=a17_0x44e4();return a17_0x1727=function(_0x1727c6,_0x4bad0c){_0x1727c6=_0x1727c6-0x8d;let _0x390325=_0x44e44a[_0x1727c6];return _0x390325;},a17_0x1727(_0x174e0f,_0x1ee0d8);}async function inputValidation(_0x460544,_0x46b164){const _0x1325d3=a17_0x565911,_0x3d00ab={'phoQB':_0x1325d3(0x10d),'WBiBR':'cluster-name','ekavm':_0x1325d3(0x9f),'gXKiG':function(_0x3f989b,_0x34ebc2){return _0x3f989b+_0x34ebc2;},'vfCMl':_0x1325d3(0x8f),'eYWEb':'Failure','BQzwh':function(_0x2e9bc4,_0x4fcc57){return _0x2e9bc4||_0x4fcc57;},'seCMv':_0x1325d3(0x165),'zgTeV':'Error\x20Details:\x0a','PTMlS':_0x1325d3(0x171),'ILKBe':'cloud-provider','WpEGc':_0x1325d3(0x9b),'dnxtY':'will\x20be\x20created','wNNPX':_0x1325d3(0x12b),'kxjve':_0x1325d3(0x135),'XwKCF':_0x1325d3(0x12c),'bHiUM':_0x1325d3(0x146),'DUEms':_0x1325d3(0x114),'UBfwG':_0x1325d3(0xf2),'lCtUm':function(_0x22e289,_0x6bf3d0){return _0x22e289!==_0x6bf3d0;},'fXcRj':_0x1325d3(0x163),'RAtVa':_0x1325d3(0xa4),'ecASG':'HAMgi','aiLMh':_0x1325d3(0x101),'RookJ':_0x1325d3(0xf0),'RvmSg':function(_0x38e0f1,_0x596f9f){return _0x38e0f1!==_0x596f9f;},'arzzc':_0x1325d3(0x133),'JHEbv':_0x1325d3(0xcd),'djKAy':'kwPvr','nQFcK':function(_0x57edfc,_0x47cb58){return _0x57edfc>_0x47cb58;},'AFzld':'iiWEQ','YWQio':_0x1325d3(0x161),'CloAx':function(_0x2a2cfd,_0x4e2699,_0x16831c,_0x4a241a,_0x549277,_0x3046fb,_0x7b76f,_0x34c506){return _0x2a2cfd(_0x4e2699,_0x16831c,_0x4a241a,_0x549277,_0x3046fb,_0x7b76f,_0x34c506);},'zoxMX':_0x1325d3(0xfb),'cVXAM':_0x1325d3(0xee),'sEzPC':function(_0x8ecd5d,_0x4f5dde){return _0x8ecd5d===_0x4f5dde;},'gdrRO':_0x1325d3(0x102),'mspni':'Invalid\x20input.\x20Currently\x20the\x20automation\x20grid\x20in\x20AWS,\x20AZURE\x20&\x20GCP\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','IDPof':function(_0x12aaf3,_0x59a429,_0xe821f2,_0x35d92f,_0x41f02b,_0xbda58b,_0x574c87,_0x365de6){return _0x12aaf3(_0x59a429,_0xe821f2,_0x35d92f,_0x41f02b,_0xbda58b,_0x574c87,_0x365de6);},'IGahh':_0x1325d3(0x177),'ebnMW':function(_0x7be870,_0x5f4189){return _0x7be870!==_0x5f4189;},'eEroz':_0x1325d3(0x17f),'oXUgM':function(_0x34dfd2,_0x46c81a){return _0x34dfd2===_0x46c81a;},'Kheey':_0x1325d3(0x132),'oArrU':_0x1325d3(0x104),'rauLK':_0x1325d3(0x176),'VxrMH':function(_0x526b80,_0x3f9933,_0x524c5f){return _0x526b80(_0x3f9933,_0x524c5f);},'Fxtbu':function(_0x406aa1,_0x4359ef,_0x272077,_0x5e45b9,_0x5a11be,_0x384883){return _0x406aa1(_0x4359ef,_0x272077,_0x5e45b9,_0x5a11be,_0x384883);},'qvIVk':_0x1325d3(0xb6),'WjeWs':_0x1325d3(0x154),'ntAUC':function(_0x3077b7,_0x3bd734){return _0x3077b7===_0x3bd734;},'IkkFl':_0x1325d3(0xce),'VwJCH':_0x1325d3(0x138),'ktKHx':function(_0x1cea75,_0x4ad38a){return _0x1cea75(_0x4ad38a);},'eZOQl':function(_0x2416a6,_0x447bba){return _0x2416a6===_0x447bba;},'zaYJY':_0x1325d3(0x179),'hUesC':'pre-check-grid-profile-empty','TKiZW':_0x1325d3(0x9c),'KMVQH':function(_0x25c59b,_0x213938){return _0x25c59b!==_0x213938;},'xaANQ':'rZYfJ','qlFXK':'Grid\x20profile\x20fetched\x20for\x20pre-check','UWYcY':function(_0x212e63,_0x3329a8){return _0x212e63!==_0x3329a8;},'FXdRd':_0x1325d3(0xc8),'hvdoH':_0x1325d3(0x100),'ebwcX':'JJmgq','Kfhfb':function(_0x46d48a,_0x3e672c,_0x2fd023,_0x3873df,_0x56eab0,_0x40ad93,_0x1f4009,_0x21d27d){return _0x46d48a(_0x3e672c,_0x2fd023,_0x3873df,_0x56eab0,_0x40ad93,_0x1f4009,_0x21d27d);}};let _0x42ce66;try{if(_0x3d00ab[_0x1325d3(0x182)](_0x3d00ab[_0x1325d3(0x12a)],_0x3d00ab[_0x1325d3(0x12a)]))_0x2a9aa9[_0x1325d3(0x171)](_0x3d00ab[_0x1325d3(0x174)]),_0xd0dff9[_0x1325d3(0x120)](0x1);else{if(_0x460544[_0x1325d3(0xb3)]||_0x460544[_0x1325d3(0xdd)]||_0x460544[_0x1325d3(0x9f)]){if(_0x3d00ab['lCtUm'](_0x3d00ab[_0x1325d3(0x125)],_0x3d00ab['ecASG'])){const _0x31e87d=[];!_0x460544[_0x1325d3(0xb3)]&&(_0x3d00ab['lCtUm'](_0x3d00ab[_0x1325d3(0xa1)],_0x3d00ab['RookJ'])?_0x31e87d[_0x1325d3(0xfa)](_0x3d00ab['WBiBR']):_0xfdd561[_0x1325d3(0xfa)](_0x3d00ab[_0x1325d3(0xcb)]));;!_0x460544['cloudProvider']&&(_0x3d00ab[_0x1325d3(0x9a)](_0x3d00ab[_0x1325d3(0x115)],_0x3d00ab[_0x1325d3(0x115)])?_0x14a49e['push'](_0x3d00ab[_0x1325d3(0x15c)]):_0x31e87d['push'](_0x3d00ab['ILKBe']));;if(!_0x460544[_0x1325d3(0x9f)]){if(_0x3d00ab[_0x1325d3(0x9a)](_0x3d00ab['JHEbv'],_0x3d00ab[_0x1325d3(0x10f)]))_0x31e87d[_0x1325d3(0xfa)](_0x3d00ab[_0x1325d3(0x15c)]);else{const {header:_0x5189b2,response:_0x3ecdee}=_0x57d379,{status:_0x5ae4a2,data:_0x279897,error:_0x632546}=_0x3ecdee;_0x6b8c4e+=_0x5189b2+'\x20#'+_0x3d00ab[_0x1325d3(0x98)](_0x7fd0e9,0x1)+'\x0a',_0x2bfe0a+=_0x1325d3(0x14f)+(_0x5ae4a2?_0x3d00ab[_0x1325d3(0x140)]:_0x3d00ab[_0x1325d3(0x142)])+'\x0a',_0x4ba9e4+=_0x1325d3(0x99)+_0x3d00ab[_0x1325d3(0xc7)](_0x279897,_0x3d00ab[_0x1325d3(0xe3)])+'\x0a',_0x632546&&(_0x1094c1+=_0x3d00ab['zgTeV'],_0xe37e8f+=_0x1325d3(0x16c)+(_0x632546[_0x1325d3(0x188)]||_0x3d00ab[_0x1325d3(0xe3)])+'\x0a',_0x451a19+=_0x1325d3(0x15b)+(_0x632546[_0x1325d3(0xfe)]||_0x3d00ab[_0x1325d3(0xe3)])+'\x0a',_0x460866+=_0x1325d3(0xeb)+(_0x632546[_0x1325d3(0xda)]||_0x3d00ab[_0x1325d3(0xe3)])+'\x0a'),_0x115436+='\x0a\x0a';}};_0x3d00ab[_0x1325d3(0x124)](_0x31e87d['length'],0x0)&&(_0x3d00ab['RvmSg'](_0x3d00ab[_0x1325d3(0x14c)],_0x3d00ab[_0x1325d3(0x10a)])?(_0x42ce66=_0x1325d3(0x186)+_0x31e87d[_0x1325d3(0xc0)](',\x20')+_0x1325d3(0x112),await _0x3d00ab['CloAx'](reportToGalactusAndSendToEDS,_0x460544,_0x46b164,_0x42ce66,messageTypes['ERROR'],_0x3d00ab[_0x1325d3(0x158)],_0x3d00ab[_0x1325d3(0xe8)],_0x3d00ab['PTMlS']),logger[_0x1325d3(0x171)](_0x42ce66),process[_0x1325d3(0x120)](0x1)):(_0x4ca8b[_0x1325d3(0xf6)]('['+_0x1b7130+_0x1325d3(0xb8)+_0x4fd108[_0x1325d3(0x11c)]+_0x1325d3(0x144)+_0x2f0f35[_0x1325d3(0xdf)]+_0x1325d3(0x8d)+_0x3f8b57[_0x1325d3(0x171)]),_0x17eeb3['error']&&_0x531197[_0x1325d3(0x171)](_0x1325d3(0xd0)+_0x2ae500[_0x1325d3(0x171)][_0x1325d3(0xda)]))),!ALL_SUPPORTED_CLOUD_PROVIDERS[_0x1325d3(0xd9)](_0x460544['cloudProvider'][_0x1325d3(0xde)]())&&(_0x3d00ab[_0x1325d3(0xab)](_0x3d00ab[_0x1325d3(0x116)],_0x3d00ab[_0x1325d3(0x116)])?(_0x42ce66=_0x3d00ab[_0x1325d3(0xac)],await _0x3d00ab[_0x1325d3(0xcc)](reportToGalactusAndSendToEDS,_0x460544,_0x46b164,_0x42ce66,messageTypes[_0x1325d3(0x143)],_0x3d00ab[_0x1325d3(0x158)],_0x3d00ab[_0x1325d3(0xdc)],_0x3d00ab[_0x1325d3(0x11b)]),logger[_0x1325d3(0x171)](_0x42ce66),!_0x460544['cloudProvider']&&(_0x3d00ab[_0x1325d3(0x8e)](_0x3d00ab[_0x1325d3(0x13b)],_0x3d00ab['eEroz'])?_0x18f38d=_0x5da8ee:(logger['info']('Setting\x20cloud\x20provider\x20as\x20'+DEFAULT_CLUSTER_DETAILS[_0x1325d3(0xb7)]+'\x20'),_0x460544['cloudProvider']=DEFAULT_CLUSTER_DETAILS[_0x1325d3(0xb7)]))):_0x3393c0+=_0x1325d3(0xf1)+_0x5ca49d[_0x1325d3(0xb3)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a'),global_registry[_0x1325d3(0xb3)]=_0x460544[_0x1325d3(0xb3)],global_registry[_0x1325d3(0xdd)]=_0x460544['cloudProvider'],global_registry[_0x1325d3(0xa2)]=_0x460544[_0x1325d3(0x9f)];}else{const _0x5b4137={};_0x5b4137[_0x1325d3(0xe6)]=_0x35514a['LOG'],_0x5b4137['message']=_0x5f2997,_0x30ae86[_0x1325d3(0x94)](_0x4bae02,_0x5b4137,_0x3d00ab[_0x1325d3(0x11b)],!![]);}}else{if(_0x460544['gridProfile']){if(_0x3d00ab[_0x1325d3(0xd7)](_0x3d00ab['Kheey'],_0x3d00ab['oArrU']))_0x13b2cb[_0x1325d3(0xfa)](_0x3d00ab['ILKBe']);else{global_registry[_0x1325d3(0x110)]=_0x460544['gridProfile'],logger['debug'](_0x1325d3(0x180)+_0x460544[_0x1325d3(0x110)]);const _0x12df3c=_0x1325d3(0x126)+AG_API_URL+_0x1325d3(0x148),_0x116a6f={};_0x116a6f['method']=_0x3d00ab[_0x1325d3(0xb2)],_0x116a6f[_0x1325d3(0x14d)]=global_registry[_0x1325d3(0x134)],_0x116a6f['throwHttpErrors']=![];const _0x38d846=_0x116a6f,_0xc9cef6=await _0x3d00ab['VxrMH'](got,_0x12df3c,_0x38d846),_0x1bea73=await _0x3d00ab[_0x1325d3(0x90)](responseValidation,_0xc9cef6,_0x3d00ab[_0x1325d3(0xd3)],_0x3d00ab[_0x1325d3(0x184)],_0x460544,_0x46b164);let _0x45c594={};if(_0x3d00ab[_0x1325d3(0xdb)](_0x1bea73,0xc8)){if(_0x3d00ab['lCtUm'](_0x3d00ab[_0x1325d3(0x13d)],_0x3d00ab[_0x1325d3(0x149)])){const _0x3ca169=JSON[_0x1325d3(0x17c)](_0xc9cef6[_0x1325d3(0x136)]),_0x49bd72=_0x3ca169[_0x1325d3(0xea)](_0x3a2c83=>_0x3a2c83[_0x1325d3(0xb1)]===_0x460544[_0x1325d3(0x110)])||null;_0x3d00ab[_0x1325d3(0x13e)](isUndefined,_0x49bd72)?_0x3d00ab[_0x1325d3(0x118)](_0x3d00ab[_0x1325d3(0xe7)],_0x3d00ab[_0x1325d3(0xe7)])?(_0x42ce66=_0x1325d3(0x17b)+_0x460544[_0x1325d3(0x110)]+'.\x20please\x20verify\x20the\x20grid\x20profile\x20name\x20and\x20try\x20again',await _0x3d00ab['IDPof'](reportToGalactusAndSendToEDS,_0x460544,_0x46b164,_0x42ce66,messageTypes['ERROR'],_0x3d00ab['zoxMX'],_0x3d00ab[_0x1325d3(0x16a)],_0x3d00ab[_0x1325d3(0x11b)]),logger['error'](_0x42ce66),process['exit'](0x1)):_0x2ee8e2+=_0x1325d3(0xf1)+_0x167ea8[_0x1325d3(0xb3)]+'\x20'+(_0x430e55?_0x3d00ab[_0x1325d3(0xad)]:_0x3d00ab['dnxtY'])+'\x0a\x0a':_0x3d00ab[_0x1325d3(0xd7)](_0x3d00ab[_0x1325d3(0xc4)],_0x3d00ab[_0x1325d3(0xc4)])?_0x45c594=_0x49bd72:(_0x348ac2+=_0x3d00ab[_0x1325d3(0x11a)],_0x5a294a+=_0x1325d3(0x16c)+(_0x4c3ad4[_0x1325d3(0x188)]||_0x3d00ab['seCMv'])+'\x0a',_0x5bd5a7+=_0x1325d3(0x15b)+(_0x5f0d22[_0x1325d3(0xfe)]||_0x3d00ab[_0x1325d3(0xe3)])+'\x0a',_0x8fbbac+=_0x1325d3(0xeb)+(_0x10abdb[_0x1325d3(0xda)]||_0x3d00ab[_0x1325d3(0xe3)])+'\x0a');}else _0x116b28[_0x1325d3(0xf6)](_0x1325d3(0x15e)+_0x32765c[_0x1325d3(0xb3)]+_0x1325d3(0x16e));}else _0x3d00ab[_0x1325d3(0x151)](_0x3d00ab[_0x1325d3(0xb0)],_0x3d00ab[_0x1325d3(0xb0)])?_0x4157df[_0x1325d3(0x120)](0x1):process[_0x1325d3(0x120)](0x1);const _0x1acaa7={};_0x1acaa7[_0x1325d3(0xe6)]=WS_EVENTS[_0x1325d3(0x123)],_0x1acaa7[_0x1325d3(0x188)]=_0x3d00ab[_0x1325d3(0x181)],webSocketUtils[_0x1325d3(0x94)](_0x46b164,_0x1acaa7),global_registry['cloudProvider']=_0x45c594['cloudProvider'],global_registry['clusterRegion']=_0x45c594[_0x1325d3(0x9f)],global_registry[_0x1325d3(0xb3)]=_0x45c594['clusterName'];}}else{if(_0x3d00ab[_0x1325d3(0x187)](_0x3d00ab[_0x1325d3(0x97)],_0x3d00ab['FXdRd'])){const _0x400570={};_0x400570['description']=_0x3d00ab['wNNPX'],_0x400570[_0x1325d3(0xe6)]=_0x3d00ab[_0x1325d3(0xbe)];const _0x31f8a3={};_0x31f8a3[_0x1325d3(0x9e)]=_0x3d00ab[_0x1325d3(0xf7)],_0x31f8a3[_0x1325d3(0xe6)]=_0x3d00ab[_0x1325d3(0xbe)];const _0x32b4f0={};_0x32b4f0[_0x1325d3(0x9e)]=_0x3d00ab[_0x1325d3(0x92)],_0x32b4f0[_0x1325d3(0xe6)]=_0x3d00ab[_0x1325d3(0xbe)];const _0x112283={};_0x112283['description']=_0x3d00ab[_0x1325d3(0xe0)],_0x112283[_0x1325d3(0xe6)]=_0x3d00ab[_0x1325d3(0xbe)];const _0x5f268f={};return _0x5f268f[_0x1325d3(0x168)]=_0x400570,_0x5f268f[_0x1325d3(0x183)]=_0x31f8a3,_0x5f268f[_0x1325d3(0x9f)]=_0x32b4f0,_0x5f268f[_0x1325d3(0x154)]=_0x112283,_0x1f71f1[_0x1325d3(0x160)](_0x422cee[_0x1325d3(0x127)])[_0x1325d3(0x12d)](_0x2b2a6d)['options'](_0x5f268f)[_0x1325d3(0xf2)](_0x3d00ab[_0x1325d3(0x10e)])['argv'];}else logger[_0x1325d3(0x171)](_0x3d00ab[_0x1325d3(0x174)]),process[_0x1325d3(0x120)](0x1);}}}}catch(_0x1c431f){_0x3d00ab[_0x1325d3(0xab)](_0x3d00ab[_0x1325d3(0xd5)],_0x3d00ab[_0x1325d3(0x119)])?_0x4a9a9a['error'](_0x1325d3(0xd0)+_0x24eef7[_0x1325d3(0x171)][_0x1325d3(0xda)]):(_0x42ce66=_0x1325d3(0x11f)+_0x1c431f+':\x20'+_0x1c431f[_0x1325d3(0xda)],logger[_0x1325d3(0x171)](_0x42ce66),await _0x3d00ab[_0x1325d3(0x14e)](reportToGalactusAndSendToEDS,_0x460544,_0x46b164,_0x42ce66,messageTypes['ERROR'],_0x3d00ab[_0x1325d3(0x158)],_0x3d00ab['IGahh'],_0x3d00ab[_0x1325d3(0x11b)]),process['exit'](0x1));}}function printResponse(_0x577548,_0x32c826){const _0x1a6b16=a17_0x565911,_0x47dbe5={};_0x47dbe5[_0x1a6b16(0xc2)]=function(_0x36a7a8,_0x14f754){return _0x36a7a8!==_0x14f754;},_0x47dbe5[_0x1a6b16(0xb4)]=_0x1a6b16(0xec);const _0x317385=_0x47dbe5;logger[_0x1a6b16(0xf6)]('['+_0x577548+_0x1a6b16(0xb8)+_0x32c826[_0x1a6b16(0x11c)]+'\x20data\x20:\x20'+_0x32c826[_0x1a6b16(0xdf)]+'\x20error\x20:\x20'+_0x32c826['error']),_0x32c826[_0x1a6b16(0x171)]&&(_0x317385['TGmAM'](_0x317385[_0x1a6b16(0xb4)],_0x317385[_0x1a6b16(0xb4)])?(_0x44075a[_0x1a6b16(0xf6)](_0x1a6b16(0x13c)+_0x1a2a0f[_0x1a6b16(0xb7)]+'\x20'),_0x43145d[_0x1a6b16(0xdd)]=_0xcd4ddb[_0x1a6b16(0xb7)]):logger[_0x1a6b16(0x171)](_0x1a6b16(0xd0)+_0x32c826['error'][_0x1a6b16(0xda)]));}async function generateReport(_0x481bae,_0x7ca25c){const _0x2013da=a17_0x565911,_0x3565cb={'SgEbW':function(_0x39d30b,_0x3ec064){return _0x39d30b+_0x3ec064;},'IFtvX':_0x2013da(0x8f),'qVgIc':_0x2013da(0x91),'nPKym':function(_0x4a6679,_0x10a81a){return _0x4a6679||_0x10a81a;},'pVkLt':_0x2013da(0x165),'YERCw':_0x2013da(0xca),'NTLbL':_0x2013da(0x166),'svcDx':function(_0x230e83,_0x1a4517){return _0x230e83!=_0x1a4517;},'uLHvd':'is\x20already\x20present','RlfLv':_0x2013da(0x173),'MrOQs':function(_0x45befb){return _0x45befb();}};let _0x5643b3='===\x20Precheck\x20Report\x20-\x20'+global_registry[_0x2013da(0xdd)]+'\x20===\x0a\x0a';return _0x481bae[_0x2013da(0xd6)]((_0x1b780b,_0x161351)=>{const _0x3ca79b=_0x2013da,{header:_0x11377b,response:_0x4835c2}=_0x1b780b,{status:_0x6cb08,data:_0x3efc22,error:_0x2224b8}=_0x4835c2;_0x5643b3+=_0x11377b+'\x20#'+_0x3565cb[_0x3ca79b(0x178)](_0x161351,0x1)+'\x0a',_0x5643b3+=_0x3ca79b(0x14f)+(_0x6cb08?_0x3565cb[_0x3ca79b(0xe9)]:_0x3565cb[_0x3ca79b(0xf4)])+'\x0a',_0x5643b3+='Message:\x20'+_0x3565cb[_0x3ca79b(0xae)](_0x3efc22,_0x3565cb[_0x3ca79b(0x10b)])+'\x0a',_0x2224b8&&(_0x5643b3+=_0x3565cb[_0x3ca79b(0x15f)],_0x5643b3+=_0x3ca79b(0x16c)+(_0x2224b8[_0x3ca79b(0x188)]||_0x3565cb[_0x3ca79b(0x10b)])+'\x0a',_0x5643b3+='\x20\x20Code:\x20'+(_0x2224b8['code']||_0x3565cb[_0x3ca79b(0x10b)])+'\x0a',_0x5643b3+=_0x3ca79b(0xeb)+(_0x2224b8[_0x3ca79b(0xda)]||_0x3565cb[_0x3ca79b(0x10b)])+'\x0a'),_0x5643b3+='\x0a\x0a';}),_0x5643b3+=_0x3565cb[_0x2013da(0x157)],_0x3565cb['svcDx'](_0x7ca25c,null)?_0x5643b3+=_0x2013da(0xf1)+global_registry[_0x2013da(0xb3)]+'\x20'+(_0x7ca25c?_0x3565cb[_0x2013da(0x167)]:_0x3565cb['RlfLv'])+'\x0a\x0a':_0x5643b3+=_0x2013da(0xf1)+global_registry[_0x2013da(0xb3)]+'\x20details\x20cannot\x20be\x20fetched\x0a\x0a',_0x5643b3+=_0x3565cb['MrOQs'](getSystemMetaData),_0x5643b3;};exports[a17_0x565911(0x15a)]=async function(_0x338517){const _0x67951e=a17_0x565911,_0x37707d={'bgQug':function(_0x17d7f5){return _0x17d7f5();},'uAnUL':function(_0x325675){return _0x325675();},'PxhkO':_0x67951e(0x128),'Vvpuh':function(_0x3dde46,_0x409506,_0x3f85db,_0x54aada,_0xecd54a,_0x5480bb,_0x60ca1f,_0x21a796){return _0x3dde46(_0x409506,_0x3f85db,_0x54aada,_0xecd54a,_0x5480bb,_0x60ca1f,_0x21a796);},'GPbYi':_0x67951e(0xfb),'bccrZ':_0x67951e(0xc9),'WNIhL':_0x67951e(0x171),'hETng':function(_0x36d14a,_0x5a0d55,_0x46900b,_0x465512,_0x359d66,_0x53d77b,_0x2ec69d){return _0x36d14a(_0x5a0d55,_0x46900b,_0x465512,_0x359d66,_0x53d77b,_0x2ec69d);},'ARaMQ':_0x67951e(0xa8),'nnnNX':_0x67951e(0xf9),'oXAhj':function(_0x5de3fe,_0x29d41f,_0x18506e){return _0x5de3fe(_0x29d41f,_0x18506e);},'iBeGA':function(_0x5baf36,_0x4dcd90,_0x3ace6d,_0x3567b5,_0x4aacbc,_0x21e4ec,_0x593a37){return _0x5baf36(_0x4dcd90,_0x3ace6d,_0x3567b5,_0x4aacbc,_0x21e4ec,_0x593a37);},'pSzqy':_0x67951e(0xc1),'JGUrl':function(_0xe7c5f2,_0x3ee7a7,_0x88d71e){return _0xe7c5f2(_0x3ee7a7,_0x88d71e);},'fQWaj':'toolInstalledResp','IusNW':_0x67951e(0xff),'PRJMM':function(_0x34d23f,_0x5ef7d5,_0x41b809){return _0x34d23f(_0x5ef7d5,_0x41b809);},'gOlak':_0x67951e(0xe4),'QnzXz':function(_0x30738d,_0x36eaec,_0x8c5c11){return _0x30738d(_0x36eaec,_0x8c5c11);},'gSZZw':_0x67951e(0x111),'DHpjL':function(_0x39909e,_0x5b4a30){return _0x39909e(_0x5b4a30);},'JDzbC':_0x67951e(0x14b),'sLVFn':'isTls1_2_SUPPORTED','eVUGg':'Tool\x20Installed','LaQIg':'User\x20Access','lxgLg':'Whitelisted\x20browserstack','UcDXQ':_0x67951e(0x155),'HTvzh':function(_0x17f240,_0x54d8e8,_0x515eea){return _0x17f240(_0x54d8e8,_0x515eea);},'tYhLT':function(_0x1df285,_0x2a627d){return _0x1df285+_0x2a627d;},'PEFUQ':_0x67951e(0xd1),'dUcwm':function(_0x5afdda,_0x585bd,_0x44c9fd,_0x4971bd,_0xd05bcd,_0x87741f,_0x44241c){return _0x5afdda(_0x585bd,_0x44c9fd,_0x4971bd,_0xd05bcd,_0x87741f,_0x44241c);},'BbBMP':_0x67951e(0xd8)};let _0x2fbf61,_0x243c96;try{global_registry['requestId']=_0x37707d['bgQug'](uuidv4);!fs[_0x67951e(0xe1)](_0x37707d[_0x67951e(0x96)](getCredentialsPath))&&(_0x243c96=_0x37707d[_0x67951e(0xaa)],logger[_0x67951e(0x171)](_0x243c96),await _0x37707d[_0x67951e(0x12f)](reportToGalactusAndSendToEDS,_0x338517,_0x2fbf61,_0x243c96,messageTypes['ERROR'],_0x37707d['GPbYi'],_0x37707d['bccrZ'],_0x37707d['WNIhL']),process[_0x67951e(0x120)](0x1));_0x37707d[_0x67951e(0x107)](sendInstrumentationEvent,_0x338517,_0x37707d[_0x67951e(0xf5)],messageTypes[_0x67951e(0x129)],null,null,_0x338517);const _0x5c099e=JSON['parse'](fs['readFileSync'](_0x37707d[_0x67951e(0x11d)](getCredentialsPath)));global_registry[_0x67951e(0xe2)]=_0x5c099e[_0x67951e(0xa0)][_0x67951e(0x139)],global_registry[_0x67951e(0xba)]=_0x5c099e[_0x67951e(0xa0)][_0x67951e(0x11e)];const _0x444770=WS_ENDPOINT['replace'](_0x37707d['ARaMQ'],_0x5c099e[_0x67951e(0xa0)]['username'])[_0x67951e(0xb5)](_0x37707d[_0x67951e(0xa3)],_0x5c099e[_0x67951e(0xa0)][_0x67951e(0x11e)]),_0x27b386={};_0x27b386[_0x67951e(0xaf)]=ws,_0x27b386['connectionTimeout']=0x36ee80,_0x2fbf61=new ReconnectingWebSocket(_0x444770,[],_0x27b386),global_registry[_0x67951e(0x134)]=_0x37707d[_0x67951e(0x9d)](getAuthHeader,global_registry[_0x67951e(0xe2)],global_registry[_0x67951e(0xba)]),await _0x37707d[_0x67951e(0x9d)](inputValidation,_0x338517,_0x2fbf61),logger[_0x67951e(0xf6)]('Pre-check\x20running\x20for\x20Cloud\x20-\x20'+global_registry[_0x67951e(0xdd)]+_0x67951e(0x147)+global_registry[_0x67951e(0xa2)]);let _0x46fecf=await _0x37707d['iBeGA'](getCloudProviderObjectWithOutInit,global_registry[_0x67951e(0xdd)],global_registry[_0x67951e(0xb3)],_0x37707d[_0x67951e(0xed)],_0x2fbf61,webSocketUtils,_0x338517);const _0x43c7f1=await _0x46fecf[_0x67951e(0x108)]();_0x37707d[_0x67951e(0xf3)](printResponse,_0x37707d[_0x67951e(0xef)],_0x43c7f1),_0x46fecf=await _0x46fecf['init']();let _0x5eb31a=![];try{_0x5eb31a=await _0x46fecf['isClusterPresent']();}catch(_0x2490e6){const _0x34bd68=_0x37707d[_0x67951e(0x17e)][_0x67951e(0x113)]('|');let _0xf43bd2=0x0;while(!![]){switch(_0x34bd68[_0xf43bd2++]){case'0':await _0x37707d[_0x67951e(0x12f)](reportToGalactusAndSendToEDS,_0x338517,_0x2fbf61,_0x243c96,messageTypes[_0x67951e(0x143)],_0x37707d[_0x67951e(0xf5)],_0x67951e(0x172)+global_registry[_0x67951e(0xdd)],_0x37707d[_0x67951e(0xa6)]);continue;case'1':_0x243c96+='\x0a'+JSON['stringify'](_0x2490e6[_0x67951e(0xda)]);continue;case'2':logger[_0x67951e(0x171)](_0x243c96);continue;case'3':_0x5eb31a=null;continue;case'4':_0x243c96=_0x67951e(0xfd)+global_registry[_0x67951e(0xb3)]+_0x67951e(0x13f)+global_registry[_0x67951e(0xa2)]+_0x67951e(0x93)+_0x2490e6;continue;}break;}}_0x5eb31a&&logger[_0x67951e(0xf6)]('Cluster\x20`'+global_registry['clusterName']+_0x67951e(0x16e));const _0x4d89a7=await _0x46fecf[_0x67951e(0x150)]();_0x37707d[_0x67951e(0x131)](printResponse,_0x37707d['gOlak'],_0x4d89a7);const _0x5cfcb6=await _0x37707d['uAnUL'](curlRequest);_0x37707d[_0x67951e(0x164)](printResponse,_0x37707d[_0x67951e(0x106)],_0x5cfcb6);const _0x14c5c3=await _0x37707d[_0x67951e(0x145)](isTlsSupported,_0x37707d[_0x67951e(0x121)]);_0x37707d[_0x67951e(0x9d)](printResponse,_0x37707d[_0x67951e(0x122)],_0x14c5c3);const _0x3fe94c={};_0x3fe94c['header']=_0x37707d['eVUGg'],_0x3fe94c[_0x67951e(0xbc)]=_0x43c7f1;const _0x409bb1={};_0x409bb1['header']=_0x37707d[_0x67951e(0x156)],_0x409bb1[_0x67951e(0xbc)]=_0x4d89a7;const _0x456c92={};_0x456c92[_0x67951e(0x14a)]=_0x37707d['lxgLg'],_0x456c92[_0x67951e(0xbc)]=_0x5cfcb6;const _0x20d3f8={};_0x20d3f8[_0x67951e(0x14a)]=_0x37707d['UcDXQ'],_0x20d3f8[_0x67951e(0xbc)]=_0x14c5c3;const _0x857413=[_0x3fe94c,_0x409bb1,_0x456c92,_0x20d3f8],_0x40bb94=await _0x37707d['HTvzh'](generateReport,_0x857413,_0x5eb31a),_0x1fe57e=new Date(),_0x4ec983=_0x1fe57e[_0x67951e(0x162)]()+'_'+_0x37707d[_0x67951e(0x16b)](_0x1fe57e[_0x67951e(0xf8)](),0x1)+'_'+_0x1fe57e[_0x67951e(0x103)]()+'_'+_0x1fe57e[_0x67951e(0x141)]()+'_'+_0x1fe57e[_0x67951e(0x153)](),_0x4d4b48=_0x67951e(0xc5)+_0x4ec983+'.txt';fs[_0x67951e(0xa5)](_0x4d4b48,_0x40bb94,_0x37707d[_0x67951e(0x16d)]),logger[_0x67951e(0xf6)](_0x67951e(0x159)+_0x4d4b48),process[_0x67951e(0x120)](0x0);}catch(_0x294555){let _0xffb57d=_0x67951e(0x105)+_0x294555+'\x20';logger[_0x67951e(0x171)](_0xffb57d),_0xffb57d+='\x0a'+JSON[_0x67951e(0xe5)](_0x294555[_0x67951e(0xda)]),logger[_0x67951e(0xc3)]('stack\x20trace\x20'+_0x294555[_0x67951e(0xda)]);if(_0x2fbf61){const _0x3a92d1={};_0x3a92d1[_0x67951e(0xe6)]=WS_EVENTS[_0x67951e(0x123)],_0x3a92d1[_0x67951e(0x188)]=_0xffb57d,webSocketUtils[_0x67951e(0x94)](_0x2fbf61,_0x3a92d1,_0x37707d['WNIhL'],!![]);}await webSocketUtils[_0x67951e(0xcf)](0x7d0);const _0x542ec5={};_0x542ec5[_0x67951e(0x171)]=_0xffb57d,await _0x37707d['dUcwm'](sendInstrumentationEvent,_0x338517,_0x37707d['GPbYi'],messageTypes[_0x67951e(0x143)],_0x37707d['BbBMP'],_0x542ec5,_0x338517),process[_0x67951e(0x120)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x10412a=a18_0x8787;function a18_0x8787(_0x5a7424,_0x2bc1ab){const _0x6eeb50=a18_0x6eeb();return a18_0x8787=function(_0x8787d5,_0x1f934f){_0x8787d5=_0x8787d5-0xf2;let _0x14b45b=_0x6eeb50[_0x8787d5];return _0x14b45b;},a18_0x8787(_0x5a7424,_0x2bc1ab);}function a18_0x6eeb(){const _0x4b435f=['handler','945152UoAqZh','demandCommand','help','Start\x20an\x20existing\x20Automation\x20grid.','747jXsIkT','commandDir','recommendCommands','QdoAD','../config/constants','1096571EmEwMK','569370JNIwIB','start','9010kxSPDh','strict','ZWQSf','epilogue','1153866OrsLBD','101PFqLCc','builder','928188jRgMqe','128648LQPaCk','start_commands'];a18_0x6eeb=function(){return _0x4b435f;};return a18_0x6eeb();}(function(_0x2bb2f7,_0x5a1b9c){const _0x120c01=a18_0x8787,_0x10aafb=_0x2bb2f7();while(!![]){try{const _0x14bfeb=-parseInt(_0x120c01(0xfc))/0x1*(parseInt(_0x120c01(0xf7))/0x2)+-parseInt(_0x120c01(0xfe))/0x3+-parseInt(_0x120c01(0x102))/0x4+parseInt(_0x120c01(0xf5))/0x5+parseInt(_0x120c01(0xfb))/0x6+-parseInt(_0x120c01(0xf4))/0x7+parseInt(_0x120c01(0xff))/0x8*(parseInt(_0x120c01(0x106))/0x9);if(_0x14bfeb===_0x5a1b9c)break;else _0x10aafb['push'](_0x10aafb['shift']());}catch(_0xcb3a1b){_0x10aafb['push'](_0x10aafb['shift']());}}}(a18_0x6eeb,0x760ee));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x10412a(0xf3));exports['command']='start',exports['desc']=a18_0x10412a(0x105),exports[a18_0x10412a(0xfd)]=function(_0x526e12){const _0x559b7c=a18_0x10412a,_0x2cd698={};_0x2cd698['ZWQSf']=_0x559b7c(0x100),_0x2cd698['QdoAD']=_0x559b7c(0x104);const _0x105243=_0x2cd698;return _0x526e12['usage'](HELP_HEADER_MESSAGE[_0x559b7c(0xf6)])[_0x559b7c(0xfa)](HELP_FOOTER_MESSAGE)[_0x559b7c(0x107)](_0x105243[_0x559b7c(0xf9)])[_0x559b7c(0x103)]()[_0x559b7c(0x108)]()[_0x559b7c(0xf8)]()['help'](_0x105243[_0x559b7c(0xf2)]);},exports[a18_0x10412a(0x101)]=function(_0x246ce4){};
1
+ function a18_0x3a12(){const _0x28af8b=['desc','handler','146825YLxKko','1336548RCviiP','194769xAebzk','help','epilogue','850063sjZgpi','368UrqNxn','../config/constants','Start\x20an\x20existing\x20Automation\x20grid.','strict','start','GtpDX','JINqm','start_commands','command','1575888QGTPmw','2257464HZKnLk','349545CLTgtS','recommendCommands','12ejiUER'];a18_0x3a12=function(){return _0x28af8b;};return a18_0x3a12();}function a18_0x32fb(_0x1d22cb,_0x26e41e){const _0x3a120c=a18_0x3a12();return a18_0x32fb=function(_0x32fbd6,_0x2bb306){_0x32fbd6=_0x32fbd6-0xca;let _0xf1b687=_0x3a120c[_0x32fbd6];return _0xf1b687;},a18_0x32fb(_0x1d22cb,_0x26e41e);}const a18_0x435105=a18_0x32fb;(function(_0x31a2a8,_0x43a653){const _0x3de02b=a18_0x32fb,_0x111e22=_0x31a2a8();while(!![]){try{const _0x123e3e=parseInt(_0x3de02b(0xd4))/0x1+parseInt(_0x3de02b(0xde))/0x2+parseInt(_0x3de02b(0xd0))/0x3+-parseInt(_0x3de02b(0xdf))/0x4+parseInt(_0x3de02b(0xcf))/0x5+-parseInt(_0x3de02b(0xcc))/0x6*(parseInt(_0x3de02b(0xca))/0x7)+-parseInt(_0x3de02b(0xd5))/0x8*(parseInt(_0x3de02b(0xd1))/0x9);if(_0x123e3e===_0x43a653)break;else _0x111e22['push'](_0x111e22['shift']());}catch(_0x5575e6){_0x111e22['push'](_0x111e22['shift']());}}}(a18_0x3a12,0x6ea2e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x435105(0xd6));exports[a18_0x435105(0xdd)]=a18_0x435105(0xd9),exports[a18_0x435105(0xcd)]=a18_0x435105(0xd7),exports['builder']=function(_0x3122dc){const _0x158a5f=a18_0x435105,_0x14ab66={};_0x14ab66[_0x158a5f(0xdb)]=_0x158a5f(0xdc),_0x14ab66[_0x158a5f(0xda)]=_0x158a5f(0xd2);const _0x389989=_0x14ab66;return _0x3122dc['usage'](HELP_HEADER_MESSAGE[_0x158a5f(0xd9)])[_0x158a5f(0xd3)](HELP_FOOTER_MESSAGE)['commandDir'](_0x389989['JINqm'])['demandCommand']()[_0x158a5f(0xcb)]()[_0x158a5f(0xd8)]()['help'](_0x389989['GtpDX']);},exports[a18_0x435105(0xce)]=function(_0x509d0f){};
@@ -1 +1 @@
1
- const a19_0x51f12a=a19_0x2bda;(function(_0x82c4ab,_0x6fe244){const _0x2f0f3d=a19_0x2bda,_0x15db94=_0x82c4ab();while(!![]){try{const _0x323332=-parseInt(_0x2f0f3d(0x1e8))/0x1*(parseInt(_0x2f0f3d(0x1df))/0x2)+parseInt(_0x2f0f3d(0x1c7))/0x3+parseInt(_0x2f0f3d(0x1d9))/0x4*(parseInt(_0x2f0f3d(0x1f9))/0x5)+-parseInt(_0x2f0f3d(0x1cd))/0x6*(parseInt(_0x2f0f3d(0x1f4))/0x7)+-parseInt(_0x2f0f3d(0x20d))/0x8*(parseInt(_0x2f0f3d(0x1e2))/0x9)+parseInt(_0x2f0f3d(0x200))/0xa*(-parseInt(_0x2f0f3d(0x1d1))/0xb)+parseInt(_0x2f0f3d(0x1ca))/0xc*(parseInt(_0x2f0f3d(0x1da))/0xd);if(_0x323332===_0x6fe244)break;else _0x15db94['push'](_0x15db94['shift']());}catch(_0x1f394f){_0x15db94['push'](_0x15db94['shift']());}}}(a19_0x20fc,0x7f77d));function a19_0x2bda(_0x220654,_0x20bdf4){const _0x20fc44=a19_0x20fc();return a19_0x2bda=function(_0x2bda0c,_0x4df244){_0x2bda0c=_0x2bda0c-0x1bd;let _0x1015fc=_0x20fc44[_0x2bda0c];return _0x1015fc;},a19_0x2bda(_0x220654,_0x20bdf4);}function a19_0x20fc(){const _0x334ed2=['3652130bltToc','rQSoq','bstackUsername','cloudProvider','message','username','statusCode','IiKzU','invalid-grid-id','help','MbQgm','default','error','479296zNKZOp','info','../../utils/utilityMethods','readFileSync','type','wNzRi','parse','sEyPy','Skip\x20insecure\x20cert\x20verification.','fgQNz','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','INFO','Starting\x20grid\x20','VCZsC','unauthorised','xElmP','clusterName','2078823PQFwyt','replace','grid-id','180GxQRNi','epilogue','user','42bXiMYT','ZNlaC','clusterRegion','argv','11XVuJly','connectionTimeout','addListeners','skipTlsCertVerify','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','handler','Adding\x20Websocket\x20listeners','nHnfj','3653416wLPdXq','515047ZBPJVp','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','start','iZZfc','string','16dnKYUz','WebSocket','FUecj','54mUAFwq','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','skip-tls-cert-verify','region','<PasswordPlaceholder>','name','6588bFcNhw','usage','../../utils/gridComponents','<UsernamePlaceholder>','Browserstack','boolean','cXWJx','ERROR','desc','gridId','WKmDx','GIJCZ','901082NcnGUV','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','bstackAccesskey','Qhhuc','5pHDpEX','builder','password','exit','debug','body','YmciY'];a19_0x20fc=function(){return _0x334ed2;};return a19_0x20fc();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x51f12a(0x20f)),{scaleUpHubDeployment}=require(a19_0x51f12a(0x1ea)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports[a19_0x51f12a(0x1f0)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a19_0x51f12a(0x1fa)]=function(_0xcb0796){const _0x531d09=a19_0x51f12a,_0x28f89e={};_0x28f89e[_0x531d09(0x20a)]=_0x531d09(0x1d5),_0x28f89e[_0x531d09(0x1bd)]=_0x531d09(0x1de),_0x28f89e[_0x531d09(0x1d8)]=_0x531d09(0x1be),_0x28f89e[_0x531d09(0x1ce)]=_0x531d09(0x1ed),_0x28f89e['FUecj']=_0x531d09(0x209);const _0x440197=_0x28f89e,_0x3d73b5={};_0x3d73b5['description']=_0x440197[_0x531d09(0x20a)],_0x3d73b5[_0x531d09(0x211)]=_0x440197[_0x531d09(0x1bd)];const _0x2bf9a9={};_0x2bf9a9['description']=_0x440197[_0x531d09(0x1d8)],_0x2bf9a9[_0x531d09(0x211)]=_0x440197[_0x531d09(0x1ce)],_0x2bf9a9[_0x531d09(0x20b)]=![];const _0x2e0eb3={};return _0x2e0eb3[_0x531d09(0x1c9)]=_0x3d73b5,_0x2e0eb3[_0x531d09(0x1e4)]=_0x2bf9a9,_0xcb0796[_0x531d09(0x1e9)](HELP_HEADER_MESSAGE[_0x531d09(0x1dc)])[_0x531d09(0x1cb)](HELP_FOOTER_MESSAGE)['options'](_0x2e0eb3)[_0x531d09(0x209)](_0x440197[_0x531d09(0x1e1)])[_0x531d09(0x1d0)];},exports[a19_0x51f12a(0x1d6)]=async function(_0x4a9320){const _0x3715ea=a19_0x51f12a,_0x2d5376={'ggVjt':_0x3715ea(0x1db),'WKmDx':function(_0x20df90){return _0x20df90();},'dyHgJ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','iZZfc':function(_0x1c4e5c,_0x275b2b,_0xf1e4e0,_0xb293,_0x59776b,_0x421f36,_0x31fb79){return _0x1c4e5c(_0x275b2b,_0xf1e4e0,_0xb293,_0x59776b,_0x421f36,_0x31fb79);},'cXWJx':'start-grid-called','yCnyH':'init-not-called','PuATd':_0x3715ea(0x1eb),'dAsDX':_0x3715ea(0x1e6),'YmciY':_0x3715ea(0x1d7),'VCZsC':function(_0x4d285a,_0x2ddb0a,_0x1ddbf2,_0x1dc70a){return _0x4d285a(_0x2ddb0a,_0x1ddbf2,_0x1dc70a);},'GIJCZ':function(_0x4706b9,_0x12f05b,_0x293398){return _0x4706b9(_0x12f05b,_0x293398);},'Qhhuc':function(_0x12e273,_0x5e40d9,_0xa68647){return _0x12e273(_0x5e40d9,_0xa68647);},'wNzRi':'Grid\x20started','IiKzU':function(_0x15a24a,_0x254d87){return _0x15a24a===_0x254d87;},'rQSoq':_0x3715ea(0x1e3),'arVfd':function(_0x1a3661,_0x16b890,_0x107ede,_0x565d72,_0x2d1f17,_0x57361f,_0x27796f){return _0x1a3661(_0x16b890,_0x107ede,_0x565d72,_0x2d1f17,_0x57361f,_0x27796f);},'TEEVA':_0x3715ea(0x1c4),'Plqrc':function(_0x8f15d1,_0x231eaa,_0x39ccef,_0x3129c5,_0x41198a,_0x31f1d9,_0x2d616c){return _0x8f15d1(_0x231eaa,_0x39ccef,_0x3129c5,_0x41198a,_0x31f1d9,_0x2d616c);},'LMvFc':_0x3715ea(0x208),'xElmP':function(_0x2dd0dd,_0x3de05a,_0x2f33e2,_0x569bd8,_0x5be9aa,_0x506f8e,_0x43895f){return _0x2dd0dd(_0x3de05a,_0x2f33e2,_0x569bd8,_0x5be9aa,_0x506f8e,_0x43895f);},'fgQNz':'server-error'};let _0xef9668;try{!_0x4a9320[_0x3715ea(0x1f1)]&&(logger['error'](_0x2d5376['ggVjt']),process[_0x3715ea(0x1fc)](0x1));!fs['existsSync'](_0x2d5376[_0x3715ea(0x1f2)](getCredentialsPath))&&(logger[_0x3715ea(0x20c)](_0x2d5376['dyHgJ']),await _0x2d5376[_0x3715ea(0x1dd)](sendInstrumentationEvent,_0x4a9320,_0x2d5376[_0x3715ea(0x1ee)],messageTypes[_0x3715ea(0x1ef)],_0x2d5376['yCnyH'],null,_0x4a9320),process[_0x3715ea(0x1fc)](0x1));logger[_0x3715ea(0x20e)](_0x3715ea(0x1c2)+_0x4a9320[_0x3715ea(0x1f1)]),await _0x2d5376[_0x3715ea(0x1dd)](sendInstrumentationEvent,_0x4a9320,_0x2d5376[_0x3715ea(0x1ee)],messageTypes[_0x3715ea(0x1c1)],null,null,_0x4a9320);const _0x5d1f24=JSON[_0x3715ea(0x213)](fs[_0x3715ea(0x210)](_0x2d5376[_0x3715ea(0x1f2)](getCredentialsPath)));global_registry[_0x3715ea(0x202)]=_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x205)],global_registry[_0x3715ea(0x1f7)]=_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x1fb)];const _0x19be8d=WS_ENDPOINT[_0x3715ea(0x1c8)](_0x2d5376['PuATd'],_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x205)])[_0x3715ea(0x1c8)](_0x2d5376['dAsDX'],_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x1fb)]),_0x339d10={};_0x339d10[_0x3715ea(0x1e0)]=ws,_0x339d10[_0x3715ea(0x1d2)]=0x36ee80,_0xef9668=new ReconnectingWebSocket(_0x19be8d,[],_0x339d10),logger[_0x3715ea(0x1fd)](_0x2d5376[_0x3715ea(0x1ff)]),webSocketUtils[_0x3715ea(0x1d3)](_0xef9668,_0x4a9320[_0x3715ea(0x1cc)],_0x4a9320[_0x3715ea(0x1fb)]);const [_0x3cadab,_0x4f30bb]=await _0x2d5376[_0x3715ea(0x1c3)](getGridDetails,_0x5d1f24['Browserstack'][_0x3715ea(0x205)],_0x5d1f24[_0x3715ea(0x1ec)][_0x3715ea(0x1fb)],_0x4a9320[_0x3715ea(0x1f1)]);if(_0x4f30bb){const _0x5025ea=_0x4f30bb[_0x3715ea(0x20e)];global_registry['cloudProvider']=_0x5025ea[_0x3715ea(0x203)],global_registry[_0x3715ea(0x1cf)]=_0x5025ea[_0x3715ea(0x1e5)],global_registry[_0x3715ea(0x1c6)]=_0x5025ea[_0x3715ea(0x1c6)];const _0x4fe101=await _0x2d5376[_0x3715ea(0x1dd)](getCloudProviderObject,_0x5025ea[_0x3715ea(0x203)],_0x5025ea[_0x3715ea(0x1c6)],_0x5025ea['name'],_0xef9668,webSocketUtils,_0x4a9320),[_0x7951b3,_0x48ed25,_0x7afe15,_0x595ee7,_0x443548,_0x5ca652]=await _0x2d5376[_0x3715ea(0x1f3)](createK8sClient,_0x4fe101,_0x4a9320[_0x3715ea(0x1d4)]);await _0x2d5376[_0x3715ea(0x1f8)](scaleUpHubDeployment,_0x48ed25,_0x5025ea[_0x3715ea(0x1e7)]),logger[_0x3715ea(0x20e)](_0x2d5376[_0x3715ea(0x212)]),process['exit'](0x0);}_0x2d5376[_0x3715ea(0x207)](_0x3cadab[_0x3715ea(0x206)],0x191)&&(logger[_0x3715ea(0x20c)](_0x2d5376[_0x3715ea(0x201)]),await _0x2d5376['arVfd'](sendInstrumentationEvent,_0x4a9320,_0x2d5376['cXWJx'],messageTypes['ERROR'],_0x2d5376['TEEVA'],null,_0x4a9320),process[_0x3715ea(0x1fc)](0x1)),_0x2d5376[_0x3715ea(0x207)](_0x3cadab[_0x3715ea(0x206)],0x190)&&(logger[_0x3715ea(0x20c)](JSON[_0x3715ea(0x213)](_0x3cadab[_0x3715ea(0x1fe)])[_0x3715ea(0x204)]),await _0x2d5376['Plqrc'](sendInstrumentationEvent,_0x4a9320,_0x2d5376['cXWJx'],messageTypes['ERROR'],_0x2d5376['LMvFc'],null,_0x4a9320),process[_0x3715ea(0x1fc)](0x1)),logger[_0x3715ea(0x20c)](_0x3715ea(0x1f6)+JSON['stringify'](_0x3cadab)),await _0x2d5376[_0x3715ea(0x1c5)](sendInstrumentationEvent,_0x4a9320,_0x2d5376[_0x3715ea(0x1ee)],messageTypes[_0x3715ea(0x1ef)],_0x2d5376[_0x3715ea(0x1bf)],_0x3cadab,_0x4a9320),process[_0x3715ea(0x1fc)](0x1);}catch(_0x58fe9b){const _0x2913e3=_0x3715ea(0x1c0)+_0x58fe9b+'\x20\x0a'+JSON[_0x3715ea(0x1f5)](_0x58fe9b['stack'])+'\x20';logger[_0x3715ea(0x20c)](_0x2913e3),process[_0x3715ea(0x1fc)](0x1);}};
1
+ const a19_0x2c7978=a19_0x541e;(function(_0x2c6c17,_0x4b1727){const _0x154cf7=a19_0x541e,_0x5d55f2=_0x2c6c17();while(!![]){try{const _0x7748ab=-parseInt(_0x154cf7(0x1c2))/0x1*(parseInt(_0x154cf7(0x1f4))/0x2)+parseInt(_0x154cf7(0x1d8))/0x3*(parseInt(_0x154cf7(0x1b0))/0x4)+parseInt(_0x154cf7(0x19d))/0x5+parseInt(_0x154cf7(0x1bb))/0x6+-parseInt(_0x154cf7(0x1d7))/0x7*(-parseInt(_0x154cf7(0x1d5))/0x8)+-parseInt(_0x154cf7(0x1cc))/0x9+-parseInt(_0x154cf7(0x1cf))/0xa;if(_0x7748ab===_0x4b1727)break;else _0x5d55f2['push'](_0x5d55f2['shift']());}catch(_0x256d66){_0x5d55f2['push'](_0x5d55f2['shift']());}}}(a19_0x50fd,0xe932c));function a19_0x541e(_0x3d3fb2,_0x2bd5f8){const _0x50fd86=a19_0x50fd();return a19_0x541e=function(_0x541ecc,_0x1b43d0){_0x541ecc=_0x541ecc-0x19b;let _0x2f76e5=_0x50fd86[_0x541ecc];return _0x2f76e5;},a19_0x541e(_0x3d3fb2,_0x2bd5f8);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2c7978(0x1a0)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2c7978(0x1e8)),{logger}=require(a19_0x2c7978(0x1f3)),{getCredentialsPath,getGridDetails}=require(a19_0x2c7978(0x1e0)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x2c7978(0x1a2)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a19_0x2c7978(0x1df)),{getCloudProviderObject}=require(a19_0x2c7978(0x1dc));exports[a19_0x2c7978(0x1c1)]='grid',exports[a19_0x2c7978(0x1e7)]=a19_0x2c7978(0x1be),exports['builder']=function(_0x2a7f61){const _0x4bae39=a19_0x2c7978,_0x42816a={};_0x42816a[_0x4bae39(0x1b9)]=_0x4bae39(0x1c5),_0x42816a[_0x4bae39(0x1a7)]=_0x4bae39(0x1af),_0x42816a[_0x4bae39(0x1c3)]=_0x4bae39(0x1b7),_0x42816a[_0x4bae39(0x1e9)]=_0x4bae39(0x1d3),_0x42816a[_0x4bae39(0x1ce)]=_0x4bae39(0x1b3);const _0x159c02=_0x42816a,_0x270a1b={};_0x270a1b[_0x4bae39(0x1bc)]=_0x159c02[_0x4bae39(0x1b9)],_0x270a1b[_0x4bae39(0x1e3)]=_0x159c02[_0x4bae39(0x1a7)];const _0x4a3a74={};_0x4a3a74[_0x4bae39(0x1bc)]=_0x159c02[_0x4bae39(0x1c3)],_0x4a3a74[_0x4bae39(0x1e3)]=_0x159c02[_0x4bae39(0x1e9)],_0x4a3a74['default']=![];const _0x2e7865={};return _0x2e7865[_0x4bae39(0x1ac)]=_0x270a1b,_0x2e7865[_0x4bae39(0x1b4)]=_0x4a3a74,_0x2a7f61[_0x4bae39(0x1e2)](HELP_HEADER_MESSAGE[_0x4bae39(0x1e6)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x2e7865)[_0x4bae39(0x1b3)](_0x159c02['PWLiz'])[_0x4bae39(0x1ad)];},exports[a19_0x2c7978(0x1e5)]=async function(_0x446d0e){const _0x1a9e6d=a19_0x2c7978,_0x337f61={'yNPfe':_0x1a9e6d(0x1ab),'pMKrM':function(_0xc19532){return _0xc19532();},'bbTWr':_0x1a9e6d(0x1d9),'BHMNu':function(_0x365794,_0x1c4195,_0x512f76,_0x1fed18,_0xca0baf,_0x5e1241,_0xc40d1e){return _0x365794(_0x1c4195,_0x512f76,_0x1fed18,_0xca0baf,_0x5e1241,_0xc40d1e);},'WUUQo':'start-grid-called','aBffY':_0x1a9e6d(0x1d2),'GEwUs':function(_0x3f8245,_0xd07627,_0x5f3e56,_0x5ea9b,_0x588e8c,_0x5b361b,_0x2d2935){return _0x3f8245(_0xd07627,_0x5f3e56,_0x5ea9b,_0x588e8c,_0x5b361b,_0x2d2935);},'cfwpi':function(_0x2a29e0){return _0x2a29e0();},'rMNLU':_0x1a9e6d(0x1ef),'ZYjzn':'<PasswordPlaceholder>','VyNap':_0x1a9e6d(0x19c),'pGKXB':function(_0x5d89d4,_0x2098da,_0x5413ba,_0x40e342){return _0x5d89d4(_0x2098da,_0x5413ba,_0x40e342);},'qpXex':function(_0xff33af,_0x663eab,_0x26cf7e,_0x548ed8,_0x20bb0f,_0x24a666,_0x342990){return _0xff33af(_0x663eab,_0x26cf7e,_0x548ed8,_0x20bb0f,_0x24a666,_0x342990);},'qirrH':function(_0x27a6ed,_0x14d48a,_0x135d9f){return _0x27a6ed(_0x14d48a,_0x135d9f);},'WqWZW':_0x1a9e6d(0x1ec),'IWvUo':function(_0xfe52ab,_0x328a4b){return _0xfe52ab===_0x328a4b;},'zGKql':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','aDcIr':_0x1a9e6d(0x1d0),'qOdPa':_0x1a9e6d(0x1c4),'GjnOQ':'server-error'};let _0x123313;try{!_0x446d0e[_0x1a9e6d(0x1ed)]&&(logger[_0x1a9e6d(0x1eb)](_0x337f61['yNPfe']),process[_0x1a9e6d(0x1f1)](0x1));!fs[_0x1a9e6d(0x1ae)](_0x337f61[_0x1a9e6d(0x1a5)](getCredentialsPath))&&(logger[_0x1a9e6d(0x1eb)](_0x337f61[_0x1a9e6d(0x1a1)]),await _0x337f61[_0x1a9e6d(0x1a6)](sendInstrumentationEvent,_0x446d0e,_0x337f61[_0x1a9e6d(0x1de)],messageTypes['ERROR'],_0x337f61[_0x1a9e6d(0x1ca)],null,_0x446d0e),process[_0x1a9e6d(0x1f1)](0x1));logger[_0x1a9e6d(0x1d6)](_0x1a9e6d(0x1d4)+_0x446d0e['gridId']),await _0x337f61[_0x1a9e6d(0x1da)](sendInstrumentationEvent,_0x446d0e,_0x337f61['WUUQo'],messageTypes[_0x1a9e6d(0x1a3)],null,null,_0x446d0e);const _0x5f0faa=JSON[_0x1a9e6d(0x1a9)](fs[_0x1a9e6d(0x1d1)](_0x337f61[_0x1a9e6d(0x1aa)](getCredentialsPath)));global_registry['bstackUsername']=_0x5f0faa['Browserstack'][_0x1a9e6d(0x1bf)],global_registry['bstackAccesskey']=_0x5f0faa[_0x1a9e6d(0x1c8)]['password'];const _0x34d6a3=WS_ENDPOINT[_0x1a9e6d(0x1f0)](_0x337f61[_0x1a9e6d(0x1bd)],_0x5f0faa[_0x1a9e6d(0x1c8)][_0x1a9e6d(0x1bf)])['replace'](_0x337f61[_0x1a9e6d(0x1a4)],_0x5f0faa[_0x1a9e6d(0x1c8)][_0x1a9e6d(0x1b2)]),_0x222cfc={};_0x222cfc[_0x1a9e6d(0x1b5)]=ws,_0x222cfc['connectionTimeout']=0x36ee80,_0x123313=new ReconnectingWebSocket(_0x34d6a3,[],_0x222cfc),logger[_0x1a9e6d(0x19b)](_0x337f61['VyNap']),webSocketUtils[_0x1a9e6d(0x1ee)](_0x123313,_0x446d0e[_0x1a9e6d(0x1db)],_0x446d0e['password']);const [_0x1731c2,_0x393efd]=await _0x337f61[_0x1a9e6d(0x1ba)](getGridDetails,_0x5f0faa['Browserstack']['username'],_0x5f0faa[_0x1a9e6d(0x1c8)][_0x1a9e6d(0x1b2)],_0x446d0e[_0x1a9e6d(0x1ed)]);if(_0x393efd){const _0x15cc5d=_0x393efd['info'];global_registry[_0x1a9e6d(0x1c0)]=_0x15cc5d[_0x1a9e6d(0x1c0)],global_registry[_0x1a9e6d(0x1b1)]=_0x15cc5d[_0x1a9e6d(0x1f2)],global_registry['clusterName']=_0x15cc5d[_0x1a9e6d(0x1b8)];const _0x5061d4=await _0x337f61[_0x1a9e6d(0x1dd)](getCloudProviderObject,_0x15cc5d['cloudProvider'],_0x15cc5d[_0x1a9e6d(0x1b8)],_0x15cc5d[_0x1a9e6d(0x19e)],_0x123313,webSocketUtils,_0x446d0e),[_0x114912,_0xca8713,_0x24b2e9,_0x38f5b9,_0x21043d,_0x2701c5]=await _0x337f61['qirrH'](createK8sClient,_0x5061d4,_0x446d0e[_0x1a9e6d(0x1c9)]);await _0x337f61['qirrH'](scaleUpHubDeployment,_0xca8713,_0x15cc5d[_0x1a9e6d(0x19e)]),logger[_0x1a9e6d(0x1d6)](_0x337f61[_0x1a9e6d(0x1e4)]),process['exit'](0x0);}_0x337f61[_0x1a9e6d(0x19f)](_0x1731c2[_0x1a9e6d(0x1cb)],0x191)&&(logger[_0x1a9e6d(0x1eb)](_0x337f61['zGKql']),await _0x337f61['qpXex'](sendInstrumentationEvent,_0x446d0e,_0x337f61['WUUQo'],messageTypes[_0x1a9e6d(0x1c6)],_0x337f61[_0x1a9e6d(0x1b6)],null,_0x446d0e),process[_0x1a9e6d(0x1f1)](0x1)),_0x337f61[_0x1a9e6d(0x19f)](_0x1731c2[_0x1a9e6d(0x1cb)],0x190)&&(logger[_0x1a9e6d(0x1eb)](JSON[_0x1a9e6d(0x1a9)](_0x1731c2['body'])[_0x1a9e6d(0x1cd)]),await _0x337f61[_0x1a9e6d(0x1a6)](sendInstrumentationEvent,_0x446d0e,_0x337f61[_0x1a9e6d(0x1de)],messageTypes['ERROR'],_0x337f61[_0x1a9e6d(0x1a8)],null,_0x446d0e),process[_0x1a9e6d(0x1f1)](0x1)),logger[_0x1a9e6d(0x1eb)](_0x1a9e6d(0x1ea)+JSON[_0x1a9e6d(0x1e1)](_0x1731c2)),await _0x337f61[_0x1a9e6d(0x1a6)](sendInstrumentationEvent,_0x446d0e,_0x337f61[_0x1a9e6d(0x1de)],messageTypes['ERROR'],_0x337f61[_0x1a9e6d(0x1c7)],_0x1731c2,_0x446d0e),process[_0x1a9e6d(0x1f1)](0x1);}catch(_0x21aecf){const _0x1ab8e5='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x21aecf+'\x20\x0a'+JSON[_0x1a9e6d(0x1e1)](_0x21aecf['stack'])+'\x20';logger['error'](_0x1ab8e5),process[_0x1a9e6d(0x1f1)](0x1);}};function a19_0x50fd(){const _0x25c617=['init-not-called','boolean','Starting\x20grid\x20','14845984PkLjse','info','7dsQTPj','3SDVwpP','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GEwUs','user','../../cloudproviders/utils','qpXex','WUUQo','../../utils/createk8sClient','../../utils/utilityMethods','stringify','usage','type','WqWZW','handler','start','desc','../../config/constants','wpYca','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','Grid\x20started','gridId','addListeners','<UsernamePlaceholder>','replace','exit','region','../../config/logger','288930aRhPVN','debug','Adding\x20Websocket\x20listeners','8413095nmFKbz','name','IWvUo','reconnecting-websocket','bbTWr','../../utils/instrumentationUtils','INFO','ZYjzn','pMKrM','BHMNu','dNbYY','qOdPa','parse','cfwpi','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','grid-id','argv','existsSync','string','3997520JDFYPZ','clusterRegion','password','help','skip-tls-cert-verify','WebSocket','aDcIr','Skip\x20insecure\x20cert\x20verification.','clusterName','jzhhI','pGKXB','8594502kCqsnu','description','rMNLU','Start\x20an\x20existing\x20Automation\x20grid.','username','cloudProvider','command','11kFUspU','uosvB','invalid-grid-id','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','ERROR','GjnOQ','Browserstack','skipTlsCertVerify','aBffY','statusCode','4121775UphVrv','message','PWLiz','29678940nUmgkq','unauthorised','readFileSync'];a19_0x50fd=function(){return _0x25c617;};return a19_0x50fd();}
@@ -1 +1 @@
1
- const a20_0x5032f0=a20_0x25f3;function a20_0x25f3(_0x40021b,_0x5cbb32){const _0xfa940=a20_0xfa94();return a20_0x25f3=function(_0x25f341,_0x191ed9){_0x25f341=_0x25f341-0x1cb;let _0x1e2a70=_0xfa940[_0x25f341];return _0x1e2a70;},a20_0x25f3(_0x40021b,_0x5cbb32);}(function(_0x5ab377,_0x53ac66){const _0x68f073=a20_0x25f3,_0x3433bf=_0x5ab377();while(!![]){try{const _0x12c608=parseInt(_0x68f073(0x1d1))/0x1+parseInt(_0x68f073(0x1e2))/0x2+parseInt(_0x68f073(0x1ce))/0x3*(parseInt(_0x68f073(0x1d6))/0x4)+parseInt(_0x68f073(0x1dc))/0x5*(parseInt(_0x68f073(0x1d7))/0x6)+parseInt(_0x68f073(0x1cb))/0x7*(parseInt(_0x68f073(0x1dd))/0x8)+parseInt(_0x68f073(0x1e3))/0x9*(parseInt(_0x68f073(0x1da))/0xa)+-parseInt(_0x68f073(0x1d2))/0xb;if(_0x12c608===_0x53ac66)break;else _0x3433bf['push'](_0x3433bf['shift']());}catch(_0xb7656e){_0x3433bf['push'](_0x3433bf['shift']());}}}(a20_0xfa94,0xca17d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a20_0x5032f0(0x1d9));exports[a20_0x5032f0(0x1e0)]=a20_0x5032f0(0x1d8),exports[a20_0x5032f0(0x1d4)]=a20_0x5032f0(0x1cd),exports[a20_0x5032f0(0x1e1)]=function(_0x27ffc5){const _0x878b76=a20_0x5032f0,_0x445fac={};_0x445fac[_0x878b76(0x1db)]=_0x878b76(0x1df),_0x445fac[_0x878b76(0x1d5)]='help';const _0x5bdf85=_0x445fac;return _0x27ffc5['usage'](HELP_HEADER_MESSAGE['stop'])[_0x878b76(0x1d0)](HELP_FOOTER_MESSAGE)[_0x878b76(0x1cf)](_0x5bdf85[_0x878b76(0x1db)])[_0x878b76(0x1d3)]()[_0x878b76(0x1de)]()['strict']()['help'](_0x5bdf85['WSdFv']);},exports[a20_0x5032f0(0x1cc)]=function(_0x4a0ffd){};function a20_0xfa94(){const _0x4036c8=['stop_commands','command','builder','2457410HSaJTL','9pRsrvC','1612716CDjlLg','handler','Stop\x20a\x20running\x20Automation\x20grid.','87TVWLKR','commandDir','epilogue','1105042WjZXzI','51422558ucyWRC','demandCommand','desc','WSdFv','115684xJeyzg','2386764aYzmXz','stop','../config/constants','8433430yNzPUe','kMXzd','10rSfixM','24QYXJnt','recommendCommands'];a20_0xfa94=function(){return _0x4036c8;};return a20_0xfa94();}
1
+ function a20_0x29d4(_0x3a00de,_0x3aa266){const _0x5b916e=a20_0x5b91();return a20_0x29d4=function(_0x29d423,_0xd92936){_0x29d423=_0x29d423-0x15e;let _0x1f1e58=_0x5b916e[_0x29d423];return _0x1f1e58;},a20_0x29d4(_0x3a00de,_0x3aa266);}const a20_0x2e24b8=a20_0x29d4;(function(_0x264457,_0x14b5e7){const _0x350319=a20_0x29d4,_0x6fbfb0=_0x264457();while(!![]){try{const _0x199088=-parseInt(_0x350319(0x15e))/0x1*(-parseInt(_0x350319(0x172))/0x2)+-parseInt(_0x350319(0x168))/0x3*(parseInt(_0x350319(0x161))/0x4)+-parseInt(_0x350319(0x162))/0x5*(parseInt(_0x350319(0x166))/0x6)+parseInt(_0x350319(0x167))/0x7+-parseInt(_0x350319(0x173))/0x8+-parseInt(_0x350319(0x16a))/0x9*(-parseInt(_0x350319(0x169))/0xa)+parseInt(_0x350319(0x160))/0xb;if(_0x199088===_0x14b5e7)break;else _0x6fbfb0['push'](_0x6fbfb0['shift']());}catch(_0x4e1483){_0x6fbfb0['push'](_0x6fbfb0['shift']());}}}(a20_0x5b91,0x88690));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a20_0x5b91(){const _0x180268=['2872520qcqEbk','command','6KoddWP','demandCommand','1509156qkchRB','692680GsJBpC','2666030YryeKf','strict','help','stop','6AhIJqz','3106369cCyBEj','6gkBKpp','1076170zTQrcF','90RWxuij','recommendCommands','jpGWc','qnfJr','handler','builder','commandDir','stop_commands','46738QStHBN'];a20_0x5b91=function(){return _0x180268;};return a20_0x5b91();}exports[a20_0x2e24b8(0x174)]=a20_0x2e24b8(0x165),exports['desc']='Stop\x20a\x20running\x20Automation\x20grid.',exports[a20_0x2e24b8(0x16f)]=function(_0x726aff){const _0x40782f=a20_0x2e24b8,_0x10e67c={};_0x10e67c[_0x40782f(0x16d)]=_0x40782f(0x171),_0x10e67c['jpGWc']='help';const _0xeaa27f=_0x10e67c;return _0x726aff['usage'](HELP_HEADER_MESSAGE[_0x40782f(0x165)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x40782f(0x170)](_0xeaa27f[_0x40782f(0x16d)])[_0x40782f(0x15f)]()[_0x40782f(0x16b)]()[_0x40782f(0x163)]()[_0x40782f(0x164)](_0xeaa27f[_0x40782f(0x16c)]);},exports[a20_0x2e24b8(0x16e)]=function(_0x5a5935){};
@@ -1 +1 @@
1
- function a21_0x3a17(_0x4edd63,_0x58bfb1){const _0x5a4e81=a21_0x5a4e();return a21_0x3a17=function(_0x3a1733,_0x4900c9){_0x3a1733=_0x3a1733-0x16e;let _0x5a8d2b=_0x5a4e81[_0x3a1733];return _0x5a8d2b;},a21_0x3a17(_0x4edd63,_0x58bfb1);}const a21_0x1a5a06=a21_0x3a17;function a21_0x5a4e(){const _0x58eddb=['handler','exit','cloudProvider','boolean','49xAlpca','statusCode','JnOZl','bstackAccesskey','skipTlsCertVerify','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','../../cloudproviders/utils','PUCPr','parse','djwgc','Kokgn','1991403AKoNBW','stop','unauthorised','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','rwalK','desc','eAVVw','type','ERROR','HXKlj','twTxk','ZmsOf','server-error','skip-tls-cert-verify','bvXPQ','clusterRegion','../../utils/gridComponents','PjYml','2189qxsVEs','456hUsnBK','922452gTNJEv','../../config/constants','clusterName','name','readFileSync','AsaIK','addListeners','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','debug','command','Stopping\x20grid\x20','2798rwBQjh','stop-grid-called','JWeYE','32510IxoOSc','VjmdT','<PasswordPlaceholder>','replace','mbknY','init-not-called','user','../../utils/instrumentationUtils','error','../../config/logger','bstackUsername','message','14967qvaPrf','Adding\x20Websocket\x20listeners','pOXtc','default','4oiJclv','invalid-grid-id','126042NqODMc','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','username','string','Stop\x20a\x20running\x20Automation\x20grid.','gridId','721985yVlGnT','description','Browserstack','existsSync','INFO','WebSocket','../../utils/utilityMethods','usage','Grid\x20stoppped.','password','<UsernamePlaceholder>','argv','3296joOQHw','156XShFcm','../../utils/createk8sClient','info','region','stack','../../utils/webSocketUtils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','qddRk','pKeJX','qUZDB','YWzqP','kZBha','help'];a21_0x5a4e=function(){return _0x58eddb;};return a21_0x5a4e();}(function(_0x361ef7,_0x2b15d4){const _0x2f84e7=a21_0x3a17,_0x3efc56=_0x361ef7();while(!![]){try{const _0x2516ef=parseInt(_0x2f84e7(0x1b2))/0x1*(-parseInt(_0x2f84e7(0x1be))/0x2)+parseInt(_0x2f84e7(0x19e))/0x3+-parseInt(_0x2f84e7(0x1d1))/0x4*(parseInt(_0x2f84e7(0x174))/0x5)+parseInt(_0x2f84e7(0x16e))/0x6*(parseInt(_0x2f84e7(0x193))/0x7)+-parseInt(_0x2f84e7(0x180))/0x8*(-parseInt(_0x2f84e7(0x1cd))/0x9)+-parseInt(_0x2f84e7(0x1c1))/0xa*(-parseInt(_0x2f84e7(0x1b1))/0xb)+-parseInt(_0x2f84e7(0x1b3))/0xc*(parseInt(_0x2f84e7(0x181))/0xd);if(_0x2516ef===_0x2b15d4)break;else _0x3efc56['push'](_0x3efc56['shift']());}catch(_0x37c395){_0x3efc56['push'](_0x3efc56['shift']());}}}(a21_0x5a4e,0x6af92));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x1a5a06(0x1b4)),{logger}=require(a21_0x1a5a06(0x1ca)),{getCredentialsPath,getGridDetails}=require(a21_0x1a5a06(0x17a)),{scaleDownHubDeployment}=require(a21_0x1a5a06(0x1af)),{sendInstrumentationEvent}=require(a21_0x1a5a06(0x1c8)),webSocketUtils=require(a21_0x1a5a06(0x186)),{createK8sClient}=require(a21_0x1a5a06(0x182)),{getCloudProviderObject}=require(a21_0x1a5a06(0x199));exports[a21_0x1a5a06(0x1bc)]='grid',exports[a21_0x1a5a06(0x1a4)]=a21_0x1a5a06(0x172),exports['builder']=function(_0x15b59e){const _0x1737d9=a21_0x1a5a06,_0x381964={};_0x381964['PjYml']='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x381964[_0x1737d9(0x18d)]=_0x1737d9(0x171),_0x381964['Kokgn']='Skip\x20insecure\x20cert\x20verification.',_0x381964[_0x1737d9(0x19c)]=_0x1737d9(0x192),_0x381964[_0x1737d9(0x18a)]=_0x1737d9(0x18e);const _0x1546aa=_0x381964,_0x3fe75b={};_0x3fe75b[_0x1737d9(0x175)]=_0x1546aa[_0x1737d9(0x1b0)],_0x3fe75b[_0x1737d9(0x1a6)]=_0x1546aa[_0x1737d9(0x18d)];const _0x111786={};_0x111786['description']=_0x1546aa[_0x1737d9(0x19d)],_0x111786[_0x1737d9(0x1a6)]=_0x1546aa[_0x1737d9(0x19c)],_0x111786[_0x1737d9(0x1d0)]=![];const _0x4691be={};return _0x4691be['grid-id']=_0x3fe75b,_0x4691be[_0x1737d9(0x1ac)]=_0x111786,_0x15b59e[_0x1737d9(0x17b)](HELP_HEADER_MESSAGE[_0x1737d9(0x19f)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4691be)[_0x1737d9(0x18e)](_0x1546aa[_0x1737d9(0x18a)])[_0x1737d9(0x17f)];},exports[a21_0x1a5a06(0x18f)]=async function(_0x29ac6e){const _0x194d58=a21_0x1a5a06,_0x4464f4={'TRFam':_0x194d58(0x16f),'dftkg':function(_0x4e3dcf){return _0x4e3dcf();},'JWeYE':_0x194d58(0x187),'JnOZl':function(_0x2b9896,_0x41d4c5,_0x56dc60,_0x333f86,_0x5c8a83,_0x545a84,_0x2878c0){return _0x2b9896(_0x41d4c5,_0x56dc60,_0x333f86,_0x5c8a83,_0x545a84,_0x2878c0);},'ZmsOf':_0x194d58(0x1bf),'HXKlj':_0x194d58(0x1c6),'rwalK':function(_0x2deba6,_0x3a1d74,_0xf567e0,_0x51e22e,_0x4dd981,_0x44126f,_0x5ca1ae){return _0x2deba6(_0x3a1d74,_0xf567e0,_0x51e22e,_0x4dd981,_0x44126f,_0x5ca1ae);},'YWzqP':function(_0x3f62e8){return _0x3f62e8();},'eAVVw':_0x194d58(0x17e),'bvXPQ':_0x194d58(0x1c3),'PQZZu':_0x194d58(0x1ce),'qddRk':function(_0x424b82,_0x514197,_0x158997,_0x48bf75){return _0x424b82(_0x514197,_0x158997,_0x48bf75);},'liWUF':function(_0x28e165,_0x4362d0,_0x21afca){return _0x28e165(_0x4362d0,_0x21afca);},'VjmdT':function(_0x3fff48,_0x35f2d0,_0x23f0e1){return _0x3fff48(_0x35f2d0,_0x23f0e1);},'PUCPr':_0x194d58(0x17c),'twTxk':function(_0x1cd579,_0x395f8d){return _0x1cd579===_0x395f8d;},'AsaIK':_0x194d58(0x1ba),'qUZDB':_0x194d58(0x1a0),'mbknY':function(_0x39c7d8,_0x29122c){return _0x39c7d8===_0x29122c;},'pOXtc':function(_0x204b9b,_0x3af1a3,_0xdac4fb,_0x222004,_0x54b524,_0x4e9f04,_0x2b1c52){return _0x204b9b(_0x3af1a3,_0xdac4fb,_0x222004,_0x54b524,_0x4e9f04,_0x2b1c52);},'YkyDW':_0x194d58(0x1d2),'yrDFW':_0x194d58(0x1ab)};let _0x390273;try{!_0x29ac6e[_0x194d58(0x173)]&&(logger[_0x194d58(0x1c9)](_0x4464f4['TRFam']),process[_0x194d58(0x190)](0x1));!fs[_0x194d58(0x177)](_0x4464f4['dftkg'](getCredentialsPath))&&(logger[_0x194d58(0x1c9)](_0x4464f4[_0x194d58(0x1c0)]),await _0x4464f4[_0x194d58(0x195)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes[_0x194d58(0x1a7)],_0x4464f4[_0x194d58(0x1a8)],null,_0x29ac6e),process[_0x194d58(0x190)](0x1));logger['info'](_0x194d58(0x1bd)+_0x29ac6e[_0x194d58(0x173)]),await _0x4464f4[_0x194d58(0x1a3)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes[_0x194d58(0x178)],null,null,_0x29ac6e);const _0x44a96b=JSON[_0x194d58(0x19b)](fs[_0x194d58(0x1b7)](_0x4464f4[_0x194d58(0x18c)](getCredentialsPath)));global_registry[_0x194d58(0x1cb)]=_0x44a96b['Browserstack'][_0x194d58(0x170)],global_registry[_0x194d58(0x196)]=_0x44a96b[_0x194d58(0x176)]['password'];const _0x1f445c=WS_ENDPOINT[_0x194d58(0x1c4)](_0x4464f4[_0x194d58(0x1a5)],_0x44a96b['Browserstack'][_0x194d58(0x170)])[_0x194d58(0x1c4)](_0x4464f4[_0x194d58(0x1ad)],_0x44a96b[_0x194d58(0x176)][_0x194d58(0x17d)]),_0xab0419={};_0xab0419[_0x194d58(0x179)]=ws,_0xab0419['connectionTimeout']=0x36ee80,_0x390273=new ReconnectingWebSocket(_0x1f445c,[],_0xab0419),logger[_0x194d58(0x1bb)](_0x4464f4['PQZZu']),webSocketUtils[_0x194d58(0x1b9)](_0x390273,_0x29ac6e[_0x194d58(0x1c7)],_0x29ac6e[_0x194d58(0x17d)]);const [_0x373c93,_0x393180]=await _0x4464f4[_0x194d58(0x189)](getGridDetails,_0x44a96b[_0x194d58(0x176)][_0x194d58(0x170)],_0x44a96b[_0x194d58(0x176)]['password'],_0x29ac6e[_0x194d58(0x173)]);if(_0x393180){const _0x249377=_0x393180[_0x194d58(0x183)];global_registry[_0x194d58(0x191)]=_0x249377[_0x194d58(0x191)],global_registry[_0x194d58(0x1ae)]=_0x249377[_0x194d58(0x184)],global_registry['clusterName']=_0x249377[_0x194d58(0x1b5)];const _0x3e6b25=await _0x4464f4[_0x194d58(0x1a3)](getCloudProviderObject,_0x249377[_0x194d58(0x191)],_0x249377[_0x194d58(0x1b5)],_0x249377[_0x194d58(0x1b6)],_0x390273,webSocketUtils,_0x29ac6e),[_0x1bdef7,_0x582009,_0x406655,_0x13d4d1,_0x55aa65,_0x34d5b1]=await _0x4464f4['liWUF'](createK8sClient,_0x3e6b25,_0x29ac6e[_0x194d58(0x197)]);await _0x4464f4[_0x194d58(0x1c2)](scaleDownHubDeployment,_0x582009,_0x249377['name']),logger['info'](_0x4464f4[_0x194d58(0x19a)]),process[_0x194d58(0x190)](0x0);}_0x4464f4[_0x194d58(0x1a9)](_0x373c93[_0x194d58(0x194)],0x191)&&(logger['error'](_0x4464f4[_0x194d58(0x1b8)]),await _0x4464f4['rwalK'](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes['ERROR'],_0x4464f4[_0x194d58(0x18b)],null,_0x29ac6e),process[_0x194d58(0x190)](0x1)),_0x4464f4[_0x194d58(0x1c5)](_0x373c93['statusCode'],0x190)&&(logger[_0x194d58(0x1c9)](JSON[_0x194d58(0x19b)](_0x373c93[_0x194d58(0x188)])[_0x194d58(0x1cc)]),await _0x4464f4[_0x194d58(0x1cf)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4[_0x194d58(0x1aa)],messageTypes['ERROR'],_0x4464f4['YkyDW'],null,_0x29ac6e),process[_0x194d58(0x190)](0x1)),logger[_0x194d58(0x1c9)](_0x194d58(0x1a1)+JSON[_0x194d58(0x1a2)](_0x373c93)),await _0x4464f4[_0x194d58(0x1a3)](sendInstrumentationEvent,_0x29ac6e,_0x4464f4['ZmsOf'],messageTypes['ERROR'],_0x4464f4['yrDFW'],_0x373c93,_0x29ac6e),process['exit'](0x1);}catch(_0x1c45b1){const _0x4102a5=_0x194d58(0x198)+_0x1c45b1+'\x20\x0a'+JSON[_0x194d58(0x1a2)](_0x1c45b1[_0x194d58(0x185)])+'\x20';logger['error'](_0x4102a5),process['exit'](0x1);}};
1
+ function a21_0x1239(_0x3e612b,_0x1867f6){const _0x38ecdb=a21_0x38ec();return a21_0x1239=function(_0x123967,_0x46d31a){_0x123967=_0x123967-0x174;let _0x1980f5=_0x38ecdb[_0x123967];return _0x1980f5;},a21_0x1239(_0x3e612b,_0x1867f6);}const a21_0x179493=a21_0x1239;(function(_0x41bba5,_0x76bdf1){const _0x6827b0=a21_0x1239,_0x2a550a=_0x41bba5();while(!![]){try{const _0x4eeb44=-parseInt(_0x6827b0(0x1a3))/0x1*(parseInt(_0x6827b0(0x18e))/0x2)+-parseInt(_0x6827b0(0x1a8))/0x3*(parseInt(_0x6827b0(0x179))/0x4)+parseInt(_0x6827b0(0x19f))/0x5*(parseInt(_0x6827b0(0x1c1))/0x6)+-parseInt(_0x6827b0(0x190))/0x7*(-parseInt(_0x6827b0(0x19b))/0x8)+-parseInt(_0x6827b0(0x19c))/0x9+-parseInt(_0x6827b0(0x181))/0xa*(parseInt(_0x6827b0(0x19d))/0xb)+parseInt(_0x6827b0(0x1ad))/0xc;if(_0x4eeb44===_0x76bdf1)break;else _0x2a550a['push'](_0x2a550a['shift']());}catch(_0x7311d0){_0x2a550a['push'](_0x2a550a['shift']());}}}(a21_0x38ec,0xdca5f));function a21_0x38ec(){const _0x5b407b=['../../utils/createk8sClient','<UsernamePlaceholder>','Browserstack','skipTlsCertVerify','../../config/logger','6uqKpBA','type','username','argv','password','desc','region','../../utils/webSocketUtils','unauthorised','INFO','cloudProvider','4556dmfIPc','command','stop-grid-called','description','Skip\x20insecure\x20cert\x20verification.','../../utils/utilityMethods','string','Grid\x20stoppped.','715190kFEdPk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ryMHQ','default','gridId','usage','info','DHgVJ','../../config/constants','DGNyK','clusterName','clusterRegion','EXkwd','102782HzzOGD','grid-id','314524KJDLbw','skip-tls-cert-verify','stop','kZzIg','ERROR','reconnecting-websocket','error','statusCode','DkjBW','NYClI','bstackUsername','88YwXgDm','3860208FXYuvA','88MYAhfP','invalid-grid-id','656785CnrYIp','ewUrk','debug','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','13uGxabO','Stopping\x20grid\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','message','sDMCS','894DYAqlQ','FVMDc','readFileSync','replace','Stop\x20a\x20running\x20Automation\x20grid.','27440820URnXlE','exit','ZOTYb','qfKFE','options','bXskX','stack','init-not-called','stringify','RiYFT','handler','Adding\x20Websocket\x20listeners','pSGJY','bstackAccesskey','BHqAW'];a21_0x38ec=function(){return _0x5b407b;};return a21_0x38ec();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a21_0x179493(0x195)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a21_0x179493(0x189)),{logger}=require(a21_0x179493(0x1c0)),{getCredentialsPath,getGridDetails}=require(a21_0x179493(0x17e)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a21_0x179493(0x175)),{createK8sClient}=require(a21_0x179493(0x1bc)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a21_0x179493(0x17a)]='grid',exports[a21_0x179493(0x1c6)]=a21_0x179493(0x1ac),exports['builder']=function(_0xc868a2){const _0x813bd7=a21_0x179493,_0x54ba35={};_0x54ba35['bXskX']=_0x813bd7(0x1a2),_0x54ba35[_0x813bd7(0x1b9)]=_0x813bd7(0x17f),_0x54ba35[_0x813bd7(0x1bb)]=_0x813bd7(0x17d),_0x54ba35[_0x813bd7(0x18a)]='boolean',_0x54ba35[_0x813bd7(0x1a0)]='help';const _0x1c6284=_0x54ba35,_0x44536d={};_0x44536d[_0x813bd7(0x17c)]=_0x1c6284[_0x813bd7(0x1b2)],_0x44536d[_0x813bd7(0x1c2)]=_0x1c6284[_0x813bd7(0x1b9)];const _0x291b7b={};_0x291b7b[_0x813bd7(0x17c)]=_0x1c6284[_0x813bd7(0x1bb)],_0x291b7b[_0x813bd7(0x1c2)]=_0x1c6284['DGNyK'],_0x291b7b[_0x813bd7(0x184)]=![];const _0x5c7fea={};return _0x5c7fea[_0x813bd7(0x18f)]=_0x44536d,_0x5c7fea[_0x813bd7(0x191)]=_0x291b7b,_0xc868a2[_0x813bd7(0x186)](HELP_HEADER_MESSAGE[_0x813bd7(0x192)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x813bd7(0x1b1)](_0x5c7fea)['help'](_0x1c6284[_0x813bd7(0x1a0)])[_0x813bd7(0x1c4)];},exports[a21_0x179493(0x1b7)]=async function(_0x5bb896){const _0x494482=a21_0x179493,_0x5b237b={'cXmfB':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','ODjSL':function(_0x5c1669){return _0x5c1669();},'EXkwd':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ZOTYb':function(_0x1c030d,_0x49aeec,_0x101906,_0x1984a9,_0x2717cd,_0x16b2c0,_0x599bfd){return _0x1c030d(_0x49aeec,_0x101906,_0x1984a9,_0x2717cd,_0x16b2c0,_0x599bfd);},'qfKFE':_0x494482(0x17b),'FVMDc':_0x494482(0x1b4),'iusVN':function(_0x32b471){return _0x32b471();},'RiYFT':_0x494482(0x1bd),'NYClI':'<PasswordPlaceholder>','FSrvf':_0x494482(0x1b8),'kZzIg':function(_0x17cd30,_0x5102d2,_0x3b08fc,_0xec4c80){return _0x17cd30(_0x5102d2,_0x3b08fc,_0xec4c80);},'DHgVJ':function(_0x28712e,_0x534aae,_0x1c78ca,_0x4b6580,_0x2cf9c2,_0x54f0ee,_0x84be76){return _0x28712e(_0x534aae,_0x1c78ca,_0x4b6580,_0x2cf9c2,_0x54f0ee,_0x84be76);},'RXoGK':function(_0x2b0e27,_0x5a2834,_0x22e282){return _0x2b0e27(_0x5a2834,_0x22e282);},'DkjBW':function(_0x430fd0,_0x1ed01c,_0x439d78){return _0x430fd0(_0x1ed01c,_0x439d78);},'nihUN':_0x494482(0x180),'ryMHQ':function(_0x40e8d6,_0x2211ac){return _0x40e8d6===_0x2211ac;},'HPoFR':_0x494482(0x1a5),'kFziH':_0x494482(0x176),'sDMCS':_0x494482(0x19e),'CRtMw':'server-error'};let _0x186f3f;try{!_0x5bb896[_0x494482(0x185)]&&(logger[_0x494482(0x196)](_0x5b237b['cXmfB']),process[_0x494482(0x1ae)](0x1));!fs['existsSync'](_0x5b237b['ODjSL'](getCredentialsPath))&&(logger[_0x494482(0x196)](_0x5b237b[_0x494482(0x18d)]),await _0x5b237b[_0x494482(0x1af)](sendInstrumentationEvent,_0x5bb896,_0x5b237b['qfKFE'],messageTypes[_0x494482(0x194)],_0x5b237b[_0x494482(0x1a9)],null,_0x5bb896),process['exit'](0x1));logger['info'](_0x494482(0x1a4)+_0x5bb896[_0x494482(0x185)]),await _0x5b237b[_0x494482(0x1af)](sendInstrumentationEvent,_0x5bb896,_0x5b237b[_0x494482(0x1b0)],messageTypes[_0x494482(0x177)],null,null,_0x5bb896);const _0xb03e5c=JSON['parse'](fs[_0x494482(0x1aa)](_0x5b237b['iusVN'](getCredentialsPath)));global_registry[_0x494482(0x19a)]=_0xb03e5c[_0x494482(0x1be)]['username'],global_registry[_0x494482(0x1ba)]=_0xb03e5c[_0x494482(0x1be)][_0x494482(0x1c5)];const _0x30172e=WS_ENDPOINT['replace'](_0x5b237b[_0x494482(0x1b6)],_0xb03e5c[_0x494482(0x1be)][_0x494482(0x1c3)])[_0x494482(0x1ab)](_0x5b237b[_0x494482(0x199)],_0xb03e5c[_0x494482(0x1be)][_0x494482(0x1c5)]),_0x32f16e={};_0x32f16e['WebSocket']=ws,_0x32f16e['connectionTimeout']=0x36ee80,_0x186f3f=new ReconnectingWebSocket(_0x30172e,[],_0x32f16e),logger[_0x494482(0x1a1)](_0x5b237b['FSrvf']),webSocketUtils['addListeners'](_0x186f3f,_0x5bb896['user'],_0x5bb896[_0x494482(0x1c5)]);const [_0x9c5956,_0x1d4249]=await _0x5b237b[_0x494482(0x193)](getGridDetails,_0xb03e5c[_0x494482(0x1be)][_0x494482(0x1c3)],_0xb03e5c[_0x494482(0x1be)][_0x494482(0x1c5)],_0x5bb896[_0x494482(0x185)]);if(_0x1d4249){const _0x840e2f=_0x1d4249['info'];global_registry[_0x494482(0x178)]=_0x840e2f[_0x494482(0x178)],global_registry[_0x494482(0x18c)]=_0x840e2f[_0x494482(0x174)],global_registry['clusterName']=_0x840e2f['clusterName'];const _0x110e14=await _0x5b237b[_0x494482(0x188)](getCloudProviderObject,_0x840e2f[_0x494482(0x178)],_0x840e2f[_0x494482(0x18b)],_0x840e2f['name'],_0x186f3f,webSocketUtils,_0x5bb896),[_0x221338,_0x581fa3,_0x1a3d54,_0x22eb04,_0x251c53,_0x56a965]=await _0x5b237b['RXoGK'](createK8sClient,_0x110e14,_0x5bb896[_0x494482(0x1bf)]);await _0x5b237b[_0x494482(0x198)](scaleDownHubDeployment,_0x581fa3,_0x840e2f['name']),logger[_0x494482(0x187)](_0x5b237b['nihUN']),process[_0x494482(0x1ae)](0x0);}_0x5b237b['ryMHQ'](_0x9c5956[_0x494482(0x197)],0x191)&&(logger['error'](_0x5b237b['HPoFR']),await _0x5b237b[_0x494482(0x1af)](sendInstrumentationEvent,_0x5bb896,_0x5b237b[_0x494482(0x1b0)],messageTypes[_0x494482(0x194)],_0x5b237b['kFziH'],null,_0x5bb896),process[_0x494482(0x1ae)](0x1)),_0x5b237b[_0x494482(0x183)](_0x9c5956[_0x494482(0x197)],0x190)&&(logger[_0x494482(0x196)](JSON['parse'](_0x9c5956['body'])[_0x494482(0x1a6)]),await _0x5b237b['DHgVJ'](sendInstrumentationEvent,_0x5bb896,_0x5b237b['qfKFE'],messageTypes[_0x494482(0x194)],_0x5b237b[_0x494482(0x1a7)],null,_0x5bb896),process[_0x494482(0x1ae)](0x1)),logger['error'](_0x494482(0x182)+JSON['stringify'](_0x9c5956)),await _0x5b237b[_0x494482(0x188)](sendInstrumentationEvent,_0x5bb896,_0x5b237b[_0x494482(0x1b0)],messageTypes[_0x494482(0x194)],_0x5b237b['CRtMw'],_0x9c5956,_0x5bb896),process[_0x494482(0x1ae)](0x1);}catch(_0x3b2a86){const _0x221060='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x3b2a86+'\x20\x0a'+JSON[_0x494482(0x1b5)](_0x3b2a86[_0x494482(0x1b3)])+'\x20';logger[_0x494482(0x196)](_0x221060),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a22_0x5b213e=a22_0x4f66;(function(_0x164ddf,_0x4bcdfd){const _0x210c4a=a22_0x4f66,_0x2ad177=_0x164ddf();while(!![]){try{const _0x33881a=parseInt(_0x210c4a(0x1ce))/0x1*(parseInt(_0x210c4a(0x1e3))/0x2)+-parseInt(_0x210c4a(0x1fb))/0x3*(-parseInt(_0x210c4a(0x1d5))/0x4)+-parseInt(_0x210c4a(0x1db))/0x5*(parseInt(_0x210c4a(0x1d6))/0x6)+parseInt(_0x210c4a(0x20d))/0x7*(parseInt(_0x210c4a(0x1e7))/0x8)+-parseInt(_0x210c4a(0x1dd))/0x9*(-parseInt(_0x210c4a(0x1f6))/0xa)+-parseInt(_0x210c4a(0x23b))/0xb*(-parseInt(_0x210c4a(0x1e4))/0xc)+-parseInt(_0x210c4a(0x1c7))/0xd*(parseInt(_0x210c4a(0x218))/0xe);if(_0x33881a===_0x4bcdfd)break;else _0x2ad177['push'](_0x2ad177['shift']());}catch(_0x2bc505){_0x2ad177['push'](_0x2ad177['shift']());}}}(a22_0x3430,0x87380),require(a22_0x5b213e(0x233))[a22_0x5b213e(0x226)]());let gridURL=a22_0x5b213e(0x1ef),bsApiUrl='api.browserstack.com',agApiUrl=a22_0x5b213e(0x20f);const _env=(process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x1e9)]||a22_0x5b213e(0x220))['toLowerCase']();if(_env==='staging'||_env==='stag')gridURL=a22_0x5b213e(0x1f3),bsApiUrl=a22_0x5b213e(0x23a),agApiUrl=a22_0x5b213e(0x236);else(_env===a22_0x5b213e(0x237)||_env===a22_0x5b213e(0x1e8))&&(gridURL=a22_0x5b213e(0x214),bsApiUrl=a22_0x5b213e(0x1f8),agApiUrl=a22_0x5b213e(0x1ee));exports[a22_0x5b213e(0x1f1)]=process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x1f1)]||gridURL,exports['BS_API_URL']=process[a22_0x5b213e(0x1e6)]['BS_API_URL']||bsApiUrl,exports[a22_0x5b213e(0x1ed)]=process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x1ed)]||agApiUrl,exports[a22_0x5b213e(0x204)]='wss://'+this[a22_0x5b213e(0x1ed)]+a22_0x5b213e(0x1d8),exports[a22_0x5b213e(0x1d4)]=a22_0x5b213e(0x219),exports[a22_0x5b213e(0x1c9)]='BrowserStackIAMUser',exports[a22_0x5b213e(0x1ec)]=a22_0x5b213e(0x1f5),exports[a22_0x5b213e(0x210)]=a22_0x5b213e(0x1d2),exports[a22_0x5b213e(0x229)]=a22_0x5b213e(0x20a),exports[a22_0x5b213e(0x1cc)]=a22_0x5b213e(0x230),exports[a22_0x5b213e(0x1f4)]=a22_0x5b213e(0x1c8),exports[a22_0x5b213e(0x234)]=a22_0x5b213e(0x22d),exports[a22_0x5b213e(0x211)]='azure',exports['GCP']=a22_0x5b213e(0x231),exports[a22_0x5b213e(0x21c)]=[this[a22_0x5b213e(0x210)],this[a22_0x5b213e(0x211)],this[a22_0x5b213e(0x216)]];const a22_0x1a75cc={};a22_0x1a75cc[a22_0x5b213e(0x207)]=a22_0x5b213e(0x203),a22_0x1a75cc[a22_0x5b213e(0x20e)]=a22_0x5b213e(0x1e5);function a22_0x4f66(_0x2f9264,_0x34da4a){const _0x3430fd=a22_0x3430();return a22_0x4f66=function(_0x4f6698,_0x1d1ccf){_0x4f6698=_0x4f6698-0x1c7;let _0x5cd429=_0x3430fd[_0x4f6698];return _0x5cd429;},a22_0x4f66(_0x2f9264,_0x34da4a);}const a22_0x4ede32={};a22_0x4ede32['Key']=a22_0x5b213e(0x215),a22_0x4ede32[a22_0x5b213e(0x20e)]=a22_0x5b213e(0x208);const common_hst_tags_list=[a22_0x1a75cc,a22_0x4ede32];if(process[a22_0x5b213e(0x1e6)][a22_0x5b213e(0x200)]){const parsedTags=process[a22_0x5b213e(0x1e6)]['TURBOSCALE_CUSTOM_TAGS'][a22_0x5b213e(0x228)](',');parsedTags['forEach'](_0x4104d5=>{const _0x4dc23b=a22_0x5b213e,_0x1c6d66=_0x4104d5['split'](':'),_0x1d5d4f={};_0x1d5d4f[_0x4dc23b(0x207)]=_0x1c6d66[0x0],_0x1d5d4f[_0x4dc23b(0x20e)]=_0x1c6d66[0x1],common_hst_tags_list['push'](_0x1d5d4f);});}exports[a22_0x5b213e(0x1f2)]=common_hst_tags_list;const a22_0x56cbe9={};a22_0x56cbe9[a22_0x5b213e(0x203)]=a22_0x5b213e(0x1e5),a22_0x56cbe9[a22_0x5b213e(0x215)]=a22_0x5b213e(0x208),exports['HST_CLUSTER_TAGS']=a22_0x56cbe9,exports[a22_0x5b213e(0x1f0)]=[this[a22_0x5b213e(0x210)]];const a22_0x406bab={};a22_0x406bab[a22_0x5b213e(0x1d7)]=a22_0x5b213e(0x20b),a22_0x406bab[a22_0x5b213e(0x20c)]=a22_0x5b213e(0x21a),a22_0x406bab[a22_0x5b213e(0x21b)]=a22_0x5b213e(0x1e2),a22_0x406bab[a22_0x5b213e(0x22a)]=a22_0x5b213e(0x1cd),a22_0x406bab[a22_0x5b213e(0x1de)]='cliRunFinished',exports[a22_0x5b213e(0x221)]=a22_0x406bab,exports[a22_0x5b213e(0x1da)]={},exports[a22_0x5b213e(0x1d9)]=a22_0x5b213e(0x21d);const a22_0x3372fd={};a22_0x3372fd[a22_0x5b213e(0x223)]=a22_0x5b213e(0x22e)+this['LINK_MESSAGE'],a22_0x3372fd['init']=a22_0x5b213e(0x201)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x1d0)]=a22_0x5b213e(0x1ff)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x1e1)]=a22_0x5b213e(0x1eb)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x209)]={},a22_0x3372fd[a22_0x5b213e(0x22f)]=a22_0x5b213e(0x1ca)+this['LINK_MESSAGE'],a22_0x3372fd[a22_0x5b213e(0x22c)]=a22_0x5b213e(0x217)+this['LINK_MESSAGE'],a22_0x3372fd[a22_0x5b213e(0x227)]=a22_0x5b213e(0x22b)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x1ea)]=a22_0x5b213e(0x1dc)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x224)]=a22_0x5b213e(0x222)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x209)][a22_0x5b213e(0x223)]=a22_0x5b213e(0x202)+this[a22_0x5b213e(0x1d9)],a22_0x3372fd[a22_0x5b213e(0x209)][a22_0x5b213e(0x21e)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a22_0x3372fd[a22_0x5b213e(0x209)][a22_0x5b213e(0x1cf)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a22_0x5b213e(0x1d9)],exports[a22_0x5b213e(0x213)]=a22_0x3372fd,exports[a22_0x5b213e(0x1cb)]=a22_0x5b213e(0x205);const a22_0x19ae43={};a22_0x19ae43['SUCCESS']=a22_0x5b213e(0x21f),a22_0x19ae43[a22_0x5b213e(0x238)]=a22_0x5b213e(0x1f7),a22_0x19ae43['INFO']='info',a22_0x19ae43[a22_0x5b213e(0x232)]='warning',a22_0x19ae43[a22_0x5b213e(0x1fe)]=a22_0x5b213e(0x1fc),a22_0x19ae43[a22_0x5b213e(0x235)]=null,exports['messageTypes']=a22_0x19ae43,exports[a22_0x5b213e(0x206)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x5b213e(0x1fd)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x5b213e(0x239)]=a22_0x5b213e(0x1df);const a22_0x3d0eb5={};a22_0x3d0eb5[a22_0x5b213e(0x225)]='Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server';const a22_0x445973={};a22_0x445973[a22_0x5b213e(0x1d3)]=a22_0x3d0eb5,exports[a22_0x5b213e(0x1f9)]=a22_0x445973,exports['TRIAL_GRID_URL']=a22_0x5b213e(0x1e0);const a22_0x635cef={};function a22_0x3430(){const _0x125313=['connect','browserstack-turboscale-grid','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','delete','BSTACK-ATS-CLUSTER-AUTOSCALER','gcp','WARNING','dotenv','TURBOSCALE_DEPLOYMENT','NULL','grid-api-devhst.bsstag.com','preprod','ERROR','REDACTED','api-devhst.bsstag.com','176pkHxhP','1339468MqAkxu','BSTACK-ATS-CLUSTER-HUB-HA','IAM_USER_NAME','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','HELP_FOOTER_MESSAGE','CLUSTER_AUTOSCALER_STACK_NAME','cliRunStarted','172tzPxVc','gridProfile','configure','CLOUD_PROVIDER','aws','pre-check','CP_CONFIG_FILE','12umpMcr','6eOKKIP','LOG','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','LINK_MESSAGE','global_registry','5296265RGLIuv','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','279bNkUlt','CLI_RUN_FINISHED','[REDACTED]','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','create','gridUrl','6542xYhXSO','206988iqksWa','BrowserStack','env','8zPJtBs','pre-prod','BROWSERSTACK_ENV','stop','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','DEFAULT_GRID_NAME','AG_API_URL','grid-api-preprod.bsstag.com','grid.browserstack.com','SUPPORTED_CLOUD_PROVIDERS','DASHBOARD_ENDPOINT','COMMON_HST_TAGS','grid-devhst.bsstag.com','CLUSTER_HUB_HA_STACK_NAME','high-scale-grid','18950ucFilP','error','api-preprod.bsstag.com','MessageDescription','us-east-1','839559BXhveN','unknown','RAW_ARGS_REGEX','UNKNOWN','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','TURBOSCALE_CUSTOM_TAGS','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','browserstack:managedBy','WS_ENDPOINT','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','CLI_ARGS_REGEX','Key','BrowserStack-Automate-TurboScale','list','BSTACK-ATS-CLUSTER','log','RESOURCES','4182227MvatzW','Value','grid-api.browserstack.com','AWS','AZURE','DEFAULT_CLUSTER_DETAILS','HELP_HEADER_MESSAGE','grid-preprod.bsstag.com','browserstack:service','GCP','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','98jiRgTI','credentials','resourceInfo','GRID_URL','ALL_SUPPORTED_CLOUD_PROVIDERS','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','grid','success','prod','WS_EVENTS','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','root','pre_check','grid-profile','config','start','split','CLUSTER_DEP_STACK_NAME','CLI_RUN_STARTED','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'];a22_0x3430=function(){return _0x125313;};return a22_0x3430();}a22_0x635cef['CLUSTER']='high-scale-grid-cluster',a22_0x635cef[a22_0x5b213e(0x1d1)]=a22_0x5b213e(0x1d2),a22_0x635cef['REGION']=a22_0x5b213e(0x1fa),exports[a22_0x5b213e(0x212)]=a22_0x635cef;
1
+ const a22_0x2ca091=a22_0x3dff;(function(_0x441169,_0x9e67c6){const _0xbd0c55=a22_0x3dff,_0x848e=_0x441169();while(!![]){try{const _0x184024=parseInt(_0xbd0c55(0x9f))/0x1*(-parseInt(_0xbd0c55(0x77))/0x2)+parseInt(_0xbd0c55(0x83))/0x3+-parseInt(_0xbd0c55(0xc0))/0x4+parseInt(_0xbd0c55(0xb6))/0x5*(parseInt(_0xbd0c55(0xad))/0x6)+-parseInt(_0xbd0c55(0xce))/0x7+parseInt(_0xbd0c55(0xa3))/0x8+-parseInt(_0xbd0c55(0xbf))/0x9*(-parseInt(_0xbd0c55(0x71))/0xa);if(_0x184024===_0x9e67c6)break;else _0x848e['push'](_0x848e['shift']());}catch(_0x1fd527){_0x848e['push'](_0x848e['shift']());}}}(a22_0x1446,0xd1e6c),require('dotenv')['config']());let gridURL=a22_0x2ca091(0x76),bsApiUrl=a22_0x2ca091(0x96),agApiUrl=a22_0x2ca091(0x87);const _env=(process['env'][a22_0x2ca091(0xb4)]||a22_0x2ca091(0xd2))[a22_0x2ca091(0xa6)]();if(_env===a22_0x2ca091(0xa8)||_env===a22_0x2ca091(0xb0))gridURL=a22_0x2ca091(0x6c),bsApiUrl=a22_0x2ca091(0x82),agApiUrl=a22_0x2ca091(0xbe);else(_env===a22_0x2ca091(0x67)||_env===a22_0x2ca091(0xb3))&&(gridURL=a22_0x2ca091(0x88),bsApiUrl=a22_0x2ca091(0x8a),agApiUrl=a22_0x2ca091(0x9e));exports[a22_0x2ca091(0xc9)]=process[a22_0x2ca091(0xa5)][a22_0x2ca091(0xc9)]||gridURL,exports[a22_0x2ca091(0x6f)]=process['env'][a22_0x2ca091(0x6f)]||bsApiUrl,exports[a22_0x2ca091(0xc5)]=process['env'][a22_0x2ca091(0xc5)]||agApiUrl,exports[a22_0x2ca091(0x93)]='wss://'+this[a22_0x2ca091(0xc5)]+a22_0x2ca091(0xcc),exports[a22_0x2ca091(0xa0)]=a22_0x2ca091(0xd3),exports[a22_0x2ca091(0xb7)]=a22_0x2ca091(0x74),exports['DEFAULT_GRID_NAME']=a22_0x2ca091(0x6a),exports[a22_0x2ca091(0x94)]='aws',exports[a22_0x2ca091(0x9d)]=a22_0x2ca091(0xab),exports[a22_0x2ca091(0xba)]=a22_0x2ca091(0x90),exports[a22_0x2ca091(0x8d)]=a22_0x2ca091(0xb8),exports[a22_0x2ca091(0xa1)]='browserstack-turboscale-grid',exports[a22_0x2ca091(0xb1)]=a22_0x2ca091(0x84),exports[a22_0x2ca091(0x69)]=a22_0x2ca091(0xac),exports[a22_0x2ca091(0x85)]=[this[a22_0x2ca091(0x94)],this[a22_0x2ca091(0xb1)],this['GCP']];const a22_0x513586={};a22_0x513586[a22_0x2ca091(0xa2)]=a22_0x2ca091(0xcd),a22_0x513586['Value']='BrowserStack';const a22_0x2b82f3={};a22_0x2b82f3[a22_0x2ca091(0xa2)]='browserstack:service',a22_0x2b82f3[a22_0x2ca091(0x92)]=a22_0x2ca091(0x7e);const common_hst_tags_list=[a22_0x513586,a22_0x2b82f3];if(process[a22_0x2ca091(0xa5)][a22_0x2ca091(0xca)]){const parsedTags=process[a22_0x2ca091(0xa5)][a22_0x2ca091(0xca)][a22_0x2ca091(0x78)](',');parsedTags['forEach'](_0xa7a576=>{const _0x152fa9=a22_0x2ca091,_0x2c8a36=_0xa7a576[_0x152fa9(0x78)](':'),_0x50d345={};_0x50d345[_0x152fa9(0xa2)]=_0x2c8a36[0x0],_0x50d345[_0x152fa9(0x92)]=_0x2c8a36[0x1],common_hst_tags_list[_0x152fa9(0x99)](_0x50d345);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;function a22_0x1446(){const _0x18a18c=['GRID_URL','CLUSTER_AUTOSCALER_STACK_NAME','DEFAULT_CLUSTER_DETAILS','connect','warning','grid-api-devhst.bsstag.com','167004cjsORc','1496704jsMevm','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20will\x20check\x20the\x20pre-requisites\x20for\x20setting\x20up\x20Automation\x20grid.','NULL','configure','AG_API_URL','log','CLOUD_PROVIDER','start','DASHBOARD_ENDPOINT','TURBOSCALE_CUSTOM_TAGS','list','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','browserstack:managedBy','378700lTAPEE','global_registry','REDACTED','HELP_HEADER_MESSAGE','prod','credentials','HELP_FOOTER_MESSAGE','cliRunStarted','root','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','CLI_RUN_STARTED','preprod','error','GCP','high-scale-grid','RESOURCES','grid-devhst.bsstag.com','high-scale-grid-cluster','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','BS_API_URL','create','240GoUacf','https://nroujxly-hub.browserstack-ats.com/wd/hub/status','BrowserStack','BrowserStackIAMUser','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','grid.browserstack.com','8lyxyIh','split','[REDACTED]','WARNING','ERROR','cliRunFinished','Failed\x20to\x20fetch\x20grid\x20profile\x20from\x20the\x20server','BrowserStack-Automate-TurboScale','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','SUPPORTED_CLOUD_PROVIDERS','LINK_MESSAGE','api-devhst.bsstag.com','1615416bTViUi','azure','ALL_SUPPORTED_CLOUD_PROVIDERS','browserstack:service','grid-api.browserstack.com','grid-preprod.bsstag.com','LOG','api-preprod.bsstag.com','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','delete','CLUSTER_HUB_HA_STACK_NAME','unknown','RAW_ARGS_REGEX','BSTACK-ATS-CLUSTER-AUTOSCALER','init','Value','WS_ENDPOINT','AWS','info','api.browserstack.com','messageTypes','gridUrl','push','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','WS_EVENTS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','CLUSTER_DEP_STACK_NAME','grid-api-preprod.bsstag.com','384596VKanxB','CP_CONFIG_FILE','TURBOSCALE_DEPLOYMENT','Key','4896248WkgMAD','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','env','toLowerCase','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','staging','stop','CLI_ARGS_REGEX','BSTACK-ATS-CLUSTER','gcp','6NeVXGp','UNKNOWN','gridProfile','stag','AZURE','SUCCESS','pre-prod','BROWSERSTACK_ENV','pre_check','6152845RVzksA','IAM_USER_NAME','BSTACK-ATS-CLUSTER-HUB-HA'];a22_0x1446=function(){return _0x18a18c;};return a22_0x1446();}const a22_0xa2b5ea={};function a22_0x3dff(_0x46167c,_0x27da76){const _0x1446bc=a22_0x1446();return a22_0x3dff=function(_0x3dff34,_0x369b43){_0x3dff34=_0x3dff34-0x64;let _0x4d4c26=_0x1446bc[_0x3dff34];return _0x4d4c26;},a22_0x3dff(_0x46167c,_0x27da76);}a22_0xa2b5ea[a22_0x2ca091(0xcd)]=a22_0x2ca091(0x73),a22_0xa2b5ea[a22_0x2ca091(0x86)]=a22_0x2ca091(0x7e),exports['HST_CLUSTER_TAGS']=a22_0xa2b5ea,exports[a22_0x2ca091(0x80)]=[this['AWS']];const a22_0x35b144={};a22_0x35b144[a22_0x2ca091(0x89)]=a22_0x2ca091(0xc6),a22_0x35b144[a22_0x2ca091(0x6b)]='resourceInfo',a22_0x35b144[a22_0x2ca091(0xb9)]=a22_0x2ca091(0x98),a22_0x35b144[a22_0x2ca091(0x66)]=a22_0x2ca091(0xd5),a22_0x35b144['CLI_RUN_FINISHED']=a22_0x2ca091(0x7c),exports[a22_0x2ca091(0x9b)]=a22_0x35b144,exports[a22_0x2ca091(0xcf)]={},exports[a22_0x2ca091(0x81)]=a22_0x2ca091(0xc1);const a22_0x87f610={};a22_0x87f610[a22_0x2ca091(0x64)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this['LINK_MESSAGE'],a22_0x87f610[a22_0x2ca091(0x91)]=a22_0x2ca091(0x65)+this[a22_0x2ca091(0x81)],a22_0x87f610[a22_0x2ca091(0xc4)]=a22_0x2ca091(0xa7)+this[a22_0x2ca091(0x81)],a22_0x87f610[a22_0x2ca091(0x70)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a22_0x87f610[a22_0x2ca091(0xcb)]={},a22_0x87f610[a22_0x2ca091(0x8c)]=a22_0x2ca091(0x9a)+this[a22_0x2ca091(0x81)],a22_0x87f610[a22_0x2ca091(0xbc)]=a22_0x2ca091(0x75)+this[a22_0x2ca091(0x81)],a22_0x87f610[a22_0x2ca091(0xc8)]=a22_0x2ca091(0xa4)+this[a22_0x2ca091(0x81)],a22_0x87f610[a22_0x2ca091(0xa9)]=a22_0x2ca091(0x8b)+this[a22_0x2ca091(0x81)],a22_0x87f610[a22_0x2ca091(0xb5)]=a22_0x2ca091(0xc2)+this[a22_0x2ca091(0x81)],a22_0x87f610[a22_0x2ca091(0xcb)][a22_0x2ca091(0x64)]=a22_0x2ca091(0x9c)+this[a22_0x2ca091(0x81)],a22_0x87f610[a22_0x2ca091(0xcb)]['grid']=a22_0x2ca091(0x7f)+this[a22_0x2ca091(0x81)],a22_0x87f610[a22_0x2ca091(0xcb)][a22_0x2ca091(0xaf)]=a22_0x2ca091(0x6e)+this[a22_0x2ca091(0x81)],exports[a22_0x2ca091(0xd1)]=a22_0x87f610,exports[a22_0x2ca091(0xd4)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a22_0x58990b={};a22_0x58990b[a22_0x2ca091(0xb2)]='success',a22_0x58990b[a22_0x2ca091(0x7b)]=a22_0x2ca091(0x68),a22_0x58990b['INFO']=a22_0x2ca091(0x95),a22_0x58990b[a22_0x2ca091(0x7a)]=a22_0x2ca091(0xbd),a22_0x58990b[a22_0x2ca091(0xae)]=a22_0x2ca091(0x8e),a22_0x58990b[a22_0x2ca091(0xc3)]=null,exports[a22_0x2ca091(0x97)]=a22_0x58990b,exports[a22_0x2ca091(0xaa)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a22_0x2ca091(0x8f)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a22_0x2ca091(0xd0)]=a22_0x2ca091(0x79);const a22_0x1922c3={};a22_0x1922c3['grid-profile']=a22_0x2ca091(0x7d);const a22_0x5bc75d={};a22_0x5bc75d['pre-check']=a22_0x1922c3,exports['MessageDescription']=a22_0x5bc75d,exports['TRIAL_GRID_URL']=a22_0x2ca091(0x72);const a22_0x3e01ea={};a22_0x3e01ea['CLUSTER']=a22_0x2ca091(0x6d),a22_0x3e01ea[a22_0x2ca091(0xc7)]='aws',a22_0x3e01ea['REGION']='us-east-1',exports[a22_0x2ca091(0xbb)]=a22_0x3e01ea;
@@ -1 +1 @@
1
- const a23_0x39ada7=a23_0x112f;(function(_0x53f2e1,_0x21b72e){const _0x212d6a=a23_0x112f,_0x4c641a=_0x53f2e1();while(!![]){try{const _0xe55ebe=-parseInt(_0x212d6a(0x1a7))/0x1+-parseInt(_0x212d6a(0x1b4))/0x2+parseInt(_0x212d6a(0x1ad))/0x3+parseInt(_0x212d6a(0x1c2))/0x4*(parseInt(_0x212d6a(0x1ac))/0x5)+parseInt(_0x212d6a(0x1b7))/0x6*(parseInt(_0x212d6a(0x1a6))/0x7)+-parseInt(_0x212d6a(0x1a3))/0x8+parseInt(_0x212d6a(0x1bc))/0x9;if(_0xe55ebe===_0x21b72e)break;else _0x4c641a['push'](_0x4c641a['shift']());}catch(_0x2dc7aa){_0x4c641a['push'](_0x4c641a['shift']());}}}(a23_0x2387,0xaec0a));const winston=require(a23_0x39ada7(0x1ab)),fs=require('fs'),path=require(a23_0x39ada7(0x1aa)),logDir=a23_0x39ada7(0x1bd);!fs[a23_0x39ada7(0x1ae)](logDir)&&fs[a23_0x39ada7(0x1bf)](logDir);function a23_0x2387(){const _0x1b8a2c=['Console','usage.log','console.info','19181619yKKxnT','log','level','mkdirSync','combine','createLogger','180BEcUay','join','logger','9694208tozlxF','\x20-\x20','name','7HCpxRB','76398GBmCWw','message','YYYY-MM-DD\x20HH:mm:ss','path','winston','25eMlLfQ','805311jdWEmU','existsSync','printf','File','timestamp','fileLogger','format','2385632DFBLNN','debug','transports','4780938MzhLSg','events.log'];a23_0x2387=function(){return _0x1b8a2c;};return a23_0x2387();}const a23_0x55bd3a={};function a23_0x112f(_0x2f5157,_0x4582e2){const _0x238725=a23_0x2387();return a23_0x112f=function(_0x112f46,_0xdb1a73){_0x112f46=_0x112f46-0x1a2;let _0x2142ac=_0x238725[_0x112f46];return _0x2142ac;},a23_0x112f(_0x2f5157,_0x4582e2);}a23_0x55bd3a[a23_0x39ada7(0x1b3)]=a23_0x39ada7(0x1a9);const a23_0x209308={};a23_0x209308[a23_0x39ada7(0x1be)]=!![];const a23_0x12d2b1={};a23_0x12d2b1[a23_0x39ada7(0x1a5)]=a23_0x39ada7(0x1bb),exports[a23_0x39ada7(0x1a2)]=new winston['createLogger']({'format':winston[a23_0x39ada7(0x1b3)][a23_0x39ada7(0x1c0)](winston[a23_0x39ada7(0x1b3)][a23_0x39ada7(0x1b1)](a23_0x55bd3a),winston[a23_0x39ada7(0x1b3)]['colorize'](a23_0x209308),winston[a23_0x39ada7(0x1b3)][a23_0x39ada7(0x1af)](_0x315458=>_0x315458[a23_0x39ada7(0x1b1)]+a23_0x39ada7(0x1a4)+_0x315458[a23_0x39ada7(0x1be)]+':\x20'+_0x315458[a23_0x39ada7(0x1a8)])),'transports':[new winston[(a23_0x39ada7(0x1b6))][(a23_0x39ada7(0x1b9))](a23_0x12d2b1),new winston[(a23_0x39ada7(0x1b6))][(a23_0x39ada7(0x1b0))]({'filename':path[a23_0x39ada7(0x1c3)](logDir,a23_0x39ada7(0x1b8)),'level':a23_0x39ada7(0x1b5)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x39ada7(0x1b6))][(a23_0x39ada7(0x1b0))]({'filename':path['join'](logDir,a23_0x39ada7(0x1ba)),'level':'debug'})]};exports[a23_0x39ada7(0x1b2)]=new winston[(a23_0x39ada7(0x1c1))](winstonFileLoggerParams);
1
+ function a23_0x5a09(){const _0x25f292=['createLogger','format','log','12cwkvmH','fileLogger','7695fWOcKc','15612TlIHnP','path','392kpDpCn','10uIYyJr','2006384waDJMO','level','usage.log','existsSync','transports','890912CwRjeg','debug','timestamp','\x20-\x20','winston','message','8767uVzhOx','1173361OmVTey','colorize','Console','combine','printf','17316AXmsWd','4570VKZZVg','4524640FzkWBb','join'];a23_0x5a09=function(){return _0x25f292;};return a23_0x5a09();}const a23_0x136ef3=a23_0x3fc8;(function(_0xde6bfe,_0x4934d3){const _0x357a22=a23_0x3fc8,_0x2534d9=_0xde6bfe();while(!![]){try{const _0x3ebebc=-parseInt(_0x357a22(0x73))/0x1+parseInt(_0x357a22(0x8b))/0x2*(parseInt(_0x357a22(0x89))/0x3)+-parseInt(_0x357a22(0x8d))/0x4*(-parseInt(_0x357a22(0x8c))/0x5)+-parseInt(_0x357a22(0x86))/0x6*(parseInt(_0x357a22(0x7a))/0x7)+parseInt(_0x357a22(0x81))/0x8+-parseInt(_0x357a22(0x88))/0x9*(-parseInt(_0x357a22(0x80))/0xa)+-parseInt(_0x357a22(0x79))/0xb*(parseInt(_0x357a22(0x7f))/0xc);if(_0x3ebebc===_0x4934d3)break;else _0x2534d9['push'](_0x2534d9['shift']());}catch(_0x5bf7c6){_0x2534d9['push'](_0x2534d9['shift']());}}}(a23_0x5a09,0x9347e));const winston=require(a23_0x136ef3(0x77)),fs=require('fs'),path=require(a23_0x136ef3(0x8a)),logDir=a23_0x136ef3(0x85);!fs[a23_0x136ef3(0x71)](logDir)&&fs['mkdirSync'](logDir);const a23_0x3328b6={};a23_0x3328b6[a23_0x136ef3(0x84)]='YYYY-MM-DD\x20HH:mm:ss';function a23_0x3fc8(_0x26f49d,_0x1e4960){const _0x5a099b=a23_0x5a09();return a23_0x3fc8=function(_0x3fc8fb,_0x3f7098){_0x3fc8fb=_0x3fc8fb-0x71;let _0x250c3b=_0x5a099b[_0x3fc8fb];return _0x250c3b;},a23_0x3fc8(_0x26f49d,_0x1e4960);}const a23_0x567255={};a23_0x567255[a23_0x136ef3(0x8e)]=!![];const a23_0x50128f={};a23_0x50128f['name']='console.info',exports['logger']=new winston[(a23_0x136ef3(0x83))]({'format':winston[a23_0x136ef3(0x84)][a23_0x136ef3(0x7d)](winston[a23_0x136ef3(0x84)][a23_0x136ef3(0x75)](a23_0x3328b6),winston[a23_0x136ef3(0x84)][a23_0x136ef3(0x7b)](a23_0x567255),winston['format'][a23_0x136ef3(0x7e)](_0x34b8e2=>_0x34b8e2[a23_0x136ef3(0x75)]+a23_0x136ef3(0x76)+_0x34b8e2[a23_0x136ef3(0x8e)]+':\x20'+_0x34b8e2[a23_0x136ef3(0x78)])),'transports':[new winston[(a23_0x136ef3(0x72))][(a23_0x136ef3(0x7c))](a23_0x50128f),new winston[(a23_0x136ef3(0x72))]['File']({'filename':path[a23_0x136ef3(0x82)](logDir,'events.log'),'level':a23_0x136ef3(0x74)})]});const winstonFileLoggerParams={'transports':[new winston[(a23_0x136ef3(0x72))]['File']({'filename':path[a23_0x136ef3(0x82)](logDir,a23_0x136ef3(0x8f)),'level':'debug'})]};exports[a23_0x136ef3(0x87)]=new winston[(a23_0x136ef3(0x83))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a24_0x35720c=a24_0x239d;(function(_0x1e4e9e,_0x454e7f){const _0x4e03c2=a24_0x239d,_0x33da42=_0x1e4e9e();while(!![]){try{const _0x59382c=parseInt(_0x4e03c2(0x1af))/0x1+-parseInt(_0x4e03c2(0x1a8))/0x2+parseInt(_0x4e03c2(0x1b6))/0x3*(-parseInt(_0x4e03c2(0x1ae))/0x4)+-parseInt(_0x4e03c2(0x1ab))/0x5+parseInt(_0x4e03c2(0x1b5))/0x6*(parseInt(_0x4e03c2(0x1a6))/0x7)+parseInt(_0x4e03c2(0x1b8))/0x8*(-parseInt(_0x4e03c2(0x1a9))/0x9)+-parseInt(_0x4e03c2(0x1b1))/0xa*(-parseInt(_0x4e03c2(0x1b7))/0xb);if(_0x59382c===_0x454e7f)break;else _0x33da42['push'](_0x33da42['shift']());}catch(_0x280bf8){_0x33da42['push'](_0x33da42['shift']());}}}(a24_0x45d5,0xb3507));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a24_0x35720c(0x1b2)][a24_0x35720c(0x1ba)]=0x1;function a24_0x45d5(){const _0x23c929=['7HXeDWB','commands','1729278zkvOgN','4437wxaykQ','CsMfN','6802175FNLcWe','demandCommand','usage','9960lWPUIu','777218XLLdcJ','exports','6190fkNDwq','env','commandDir','epilogue','3291234tuqcvE','135ihdcVV','53251mIPdlq','20296AQGuig','help','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','HJrsd'];a24_0x45d5=function(){return _0x23c929;};return a24_0x45d5();}function run(_0x4104e9){const _0x3b0a72=a24_0x35720c,_0x481c31={};_0x481c31[_0x3b0a72(0x1bb)]=_0x3b0a72(0x1a7),_0x481c31[_0x3b0a72(0x1aa)]='help';const _0x414dc7=_0x481c31;_0x4104e9[_0x3b0a72(0x1ad)](HELP_HEADER_MESSAGE['root'])[_0x3b0a72(0x1b3)](_0x414dc7[_0x3b0a72(0x1bb)])[_0x3b0a72(0x1ac)]()[_0x3b0a72(0x1b9)](_0x414dc7[_0x3b0a72(0x1aa)])[_0x3b0a72(0x1b4)](HELP_FOOTER_MESSAGE);}function a24_0x239d(_0x1cb9cf,_0x108966){const _0x45d58e=a24_0x45d5();return a24_0x239d=function(_0x239da5,_0x59802f){_0x239da5=_0x239da5-0x1a6;let _0x180450=_0x45d58e[_0x239da5];return _0x180450;},a24_0x239d(_0x1cb9cf,_0x108966);}module[a24_0x35720c(0x1b0)]=run;
2
+ 'use strict';const a24_0x2ccc63=a24_0x3c1f;(function(_0x10c574,_0x38e2c3){const _0x1fd94f=a24_0x3c1f,_0x3706ae=_0x10c574();while(!![]){try{const _0x4810b4=-parseInt(_0x1fd94f(0x163))/0x1*(parseInt(_0x1fd94f(0x155))/0x2)+parseInt(_0x1fd94f(0x15e))/0x3+-parseInt(_0x1fd94f(0x153))/0x4+-parseInt(_0x1fd94f(0x15b))/0x5*(-parseInt(_0x1fd94f(0x15f))/0x6)+parseInt(_0x1fd94f(0x161))/0x7*(parseInt(_0x1fd94f(0x164))/0x8)+-parseInt(_0x1fd94f(0x151))/0x9*(parseInt(_0x1fd94f(0x160))/0xa)+-parseInt(_0x1fd94f(0x158))/0xb;if(_0x4810b4===_0x38e2c3)break;else _0x3706ae['push'](_0x3706ae['shift']());}catch(_0x3b9d66){_0x3706ae['push'](_0x3706ae['shift']());}}}(a24_0xa74b,0xaa2ce));function a24_0x3c1f(_0x468304,_0x84ba39){const _0xa74bb=a24_0xa74b();return a24_0x3c1f=function(_0x3c1f5e,_0x2ce7eb){_0x3c1f5e=_0x3c1f5e-0x150;let _0x362592=_0xa74bb[_0x3c1f5e];return _0x362592;},a24_0x3c1f(_0x468304,_0x84ba39);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a24_0x2ccc63(0x154));process[a24_0x2ccc63(0x152)][a24_0x2ccc63(0x157)]=0x1;function run(_0x219d5e){const _0x119914=a24_0x2ccc63,_0x2a4fe4={};_0x2a4fe4['vSLoU']=_0x119914(0x156),_0x2a4fe4[_0x119914(0x162)]=_0x119914(0x159);const _0x2ed7cf=_0x2a4fe4;_0x219d5e[_0x119914(0x150)](HELP_HEADER_MESSAGE['root'])[_0x119914(0x15d)](_0x2ed7cf['vSLoU'])[_0x119914(0x15c)]()[_0x119914(0x159)](_0x2ed7cf['TfLTd'])['epilogue'](HELP_FOOTER_MESSAGE);}function a24_0xa74b(){const _0x51d6b2=['3757226PiHmbG','help','exports','265CqZeXN','demandCommand','commandDir','1759755eWxHJh','81090qcgCJC','1072450hkwDwB','63fEnwtL','TfLTd','477449LzuQPt','402664dfcWZI','usage','9baeOjW','env','530316prRaIB','./config/constants','2bbgiJU','commands','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE'];a24_0xa74b=function(){return _0x51d6b2;};return a24_0xa74b();}module[a24_0x2ccc63(0x15a)]=run;