browserstack-node-sdk 1.34.38 → 1.34.40

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 (147) hide show
  1. package/ats/src/CFTemplates/hub-ha.yaml +81 -0
  2. package/ats/src/cloudproviders/AWS.js +1 -1
  3. package/ats/src/cloudproviders/Azure.js +1 -1
  4. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/commands/start.js +1 -1
  19. package/ats/src/commands/start_commands/grid.js +1 -1
  20. package/ats/src/commands/stop.js +1 -1
  21. package/ats/src/commands/stop_commands/grid.js +1 -1
  22. package/ats/src/config/constants.js +1 -1
  23. package/ats/src/config/logger.js +1 -1
  24. package/ats/src/index.js +1 -1
  25. package/ats/src/templates/browserstack-secret.yaml +10 -0
  26. package/ats/src/templates/hub-deployment.yaml +25 -3
  27. package/ats/src/templates/hubharesources/bitnami-kafka.yaml +711 -0
  28. package/ats/src/templates/hubharesources/bitnami-redis.yaml +1048 -0
  29. package/ats/src/templates/hubharesources/browserstack-secret.yaml +10 -0
  30. package/ats/src/templates/hubharesources/efs-csi-driver-aws.yaml +401 -0
  31. package/ats/src/templates/hubharesources/federatedidentityuploader.json +50 -0
  32. package/ats/src/templates/hubharesources/storage-class.yaml +12 -0
  33. package/ats/src/templates/hubharesources/turboscale-uploader.yaml +53 -0
  34. package/ats/src/templates/nginx/helper.yaml +1 -0
  35. package/ats/src/templates/nginx/private-pods-and-services.yaml +1 -0
  36. package/ats/src/templates/turboscale-agent.yaml +0 -8
  37. package/ats/src/utils/AWSUtils.js +1 -1
  38. package/ats/src/utils/createAutoscalerStack.js +1 -1
  39. package/ats/src/utils/createClusterStack.js +1 -1
  40. package/ats/src/utils/createHubHaStack.js +1 -0
  41. package/ats/src/utils/createk8sClient.js +1 -1
  42. package/ats/src/utils/deleteEFSMountTargets.js +1 -0
  43. package/ats/src/utils/deleteStack.js +1 -1
  44. package/ats/src/utils/describeStack.js +1 -0
  45. package/ats/src/utils/gridComponents.js +1 -1
  46. package/ats/src/utils/hstUtils.js +1 -1
  47. package/ats/src/utils/instrumentationUtils.js +1 -1
  48. package/ats/src/utils/userInput.js +1 -1
  49. package/ats/src/utils/utilityMethods.js +1 -1
  50. package/ats/src/utils/webSocketUtils.js +1 -1
  51. package/package.json +1 -1
  52. package/src/ai-sdk-node/bundle.js +1 -1
  53. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  54. package/src/bin/codeceptjs/command.js +1 -1
  55. package/src/bin/codeceptjs/helper.js +1 -1
  56. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  57. package/src/bin/cucumber-js/command.js +1 -1
  58. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  59. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  60. package/src/bin/cucumber-js/test-observability.js +1 -1
  61. package/src/bin/cucumber-js/test.setup.js +1 -1
  62. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  63. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  64. package/src/bin/integrations/command.js +1 -1
  65. package/src/bin/integrations/constants.js +1 -1
  66. package/src/bin/jest/command.js +1 -1
  67. package/src/bin/jest/customImplements/customCircus.js +1 -1
  68. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  69. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  70. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  71. package/src/bin/jest/jest.setup.js +1 -1
  72. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  73. package/src/bin/jest/test-observability/helper.js +1 -1
  74. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  75. package/src/bin/jest/test-observability/test-details.js +1 -1
  76. package/src/bin/jest/test_before.setup.js +1 -1
  77. package/src/bin/launcher/launcher.js +1 -1
  78. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  79. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  80. package/src/bin/mocha/command.js +1 -1
  81. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/nightwatch/command.js +1 -1
  86. package/src/bin/playwright/accessibility-helper.js +1 -1
  87. package/src/bin/playwright/command.js +1 -1
  88. package/src/bin/playwright/globalSetup.js +1 -1
  89. package/src/bin/playwright/mock-process.js +1 -1
  90. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  91. package/src/bin/playwright/patches.js +1 -1
  92. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  93. package/src/bin/playwright/reporter/reporter.js +1 -1
  94. package/src/bin/playwright/reporter/test-details.js +1 -1
  95. package/src/bin/playwright/sessionDetails.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/constants.js +1 -1
  102. package/src/bin/utils/log4jsAppender.js +1 -1
  103. package/src/bin/utils/logPatcher.js +1 -1
  104. package/src/bin/utils/logReportingAPI.js +1 -1
  105. package/src/bin/vanilla-js/command.js +1 -1
  106. package/src/browserStackSdk.js +1 -1
  107. package/src/helpers/BrowserStackSetup.js +1 -1
  108. package/src/helpers/accessibility-automation/constants.js +1 -1
  109. package/src/helpers/accessibility-automation/helper.js +1 -1
  110. package/src/helpers/accessibility-automation/scripts.js +1 -1
  111. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  112. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  113. package/src/helpers/ats/constants.js +1 -1
  114. package/src/helpers/ats/helper.js +1 -1
  115. package/src/helpers/capsMapping.js +1 -1
  116. package/src/helpers/central-scanner/constants.js +1 -1
  117. package/src/helpers/central-scanner/helpers.js +1 -1
  118. package/src/helpers/globals.js +1 -1
  119. package/src/helpers/helper.js +1 -1
  120. package/src/helpers/logger.js +1 -1
  121. package/src/helpers/patchHelper.js +1 -1
  122. package/src/helpers/patchHelpers.js +1 -1
  123. package/src/helpers/percy/Percy.js +1 -1
  124. package/src/helpers/percy/PercyBinary.js +1 -1
  125. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  126. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  127. package/src/helpers/percy/PercySDK.js +1 -1
  128. package/src/helpers/percy/index.js +1 -1
  129. package/src/helpers/percy/utils.js +1 -1
  130. package/src/helpers/performance/constants.js +1 -1
  131. package/src/helpers/performance/performance-tester.js +1 -1
  132. package/src/helpers/processHelper.js +1 -1
  133. package/src/helpers/request-spy.js +1 -1
  134. package/src/helpers/setKeepAlive.js +1 -1
  135. package/src/helpers/test-observability/constants.js +1 -1
  136. package/src/helpers/test-observability/error-handler.js +1 -1
  137. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  138. package/src/helpers/test-observability/sessionHandler.js +1 -1
  139. package/src/helpers/test-observability/utils.js +1 -1
  140. package/src/helpers/testhub/constants.js +1 -1
  141. package/src/helpers/testhub/testhubHandler.js +1 -1
  142. package/src/helpers/testhub/utils.js +1 -1
  143. package/src/helpers/timeoutPromise.js +1 -1
  144. package/src/helpers/utilities.js +1 -1
  145. package/src/helpers/w3cMapping.js +1 -1
  146. package/src/hubAllocationMethods.js +1 -1
  147. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x21d85a=a15_0x4fe1;function a15_0x4fe1(_0x4e28bd,_0x1d23ae){const _0x4bfaeb=a15_0x4bfa();return a15_0x4fe1=function(_0x4fe15a,_0x4c113d){_0x4fe15a=_0x4fe15a-0x1aa;let _0x28d597=_0x4bfaeb[_0x4fe15a];return _0x28d597;},a15_0x4fe1(_0x4e28bd,_0x1d23ae);}function a15_0x4bfa(){const _0x507b9a=['ggHYZ','NkwtC','https://','argv','../../config/constants','bstackUsername','bZmkn','grids','epilogue','Jmfcf','desc','exit','body','FCVBz','username','queued','allGrids','7965JqZqwv','1808790WSrOoe','NwbnO','36ISOZBE','/packages/cli/get-grids','../../utils/instrumentationUtils','usage','builder','uuid','push','12607344iAepUa','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sZybx','LYpnK','54777znqyTq','boolean','KTkvX','options','2812VXwuuV','help','SNBnW','handler','jfqVb','GET','eNQZl','type','SXAwi','QQRAl','grid-id','\x0aFound\x20the\x20following\x20grids:\x0a','unauthorised','ILZKr','log','INFO','ERROR','DZTek','jtfkD','clusterName','stringify','status','statusCode','rUOUN','grid-name','/packages/cli/get-all-grids','2905952mgnPkI','list-grids-called','1236zMDXjR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','error','tohyN','grid','3175718bAXFJW','bqcnS','KOtQS','PbGPZ','all-grids','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Browserstack','running','../../utils/utilityMethods','mdEVr','parse','Failed\x20to\x20list\x20resources!\x20Error:\x20','password','unknown-error','server-error','command'];a15_0x4bfa=function(){return _0x507b9a;};return a15_0x4bfa();}(function(_0x58d616,_0x93d637){const _0xc3f684=a15_0x4fe1,_0x3f1132=_0x58d616();while(!![]){try{const _0x49f30e=-parseInt(_0xc3f684(0x1e5))/0x1*(-parseInt(_0xc3f684(0x1f4))/0x2)+-parseInt(_0xc3f684(0x1f0))/0x3+parseInt(_0xc3f684(0x1bc))/0x4*(-parseInt(_0xc3f684(0x1e2))/0x5)+parseInt(_0xc3f684(0x1e3))/0x6+-parseInt(_0xc3f684(0x1c1))/0x7+-parseInt(_0xc3f684(0x1ba))/0x8+parseInt(_0xc3f684(0x1ec))/0x9;if(_0x49f30e===_0x93d637)break;else _0x3f1132['push'](_0x3f1132['shift']());}catch(_0xfe7bbe){_0x3f1132['push'](_0x3f1132['shift']());}}}(a15_0x4bfa,0x67e0b));const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a15_0x21d85a(0x1ea)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x21d85a(0x1d5)),{getCredentialsPath,getAuthHeader}=require(a15_0x21d85a(0x1c9)),{sendInstrumentationEvent}=require(a15_0x21d85a(0x1e7));exports[a15_0x21d85a(0x1d0)]=a15_0x21d85a(0x1d8),exports[a15_0x21d85a(0x1db)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x21d85a(0x1e9)]=function(_0x21e02b){const _0x5d4de7=a15_0x21d85a,_0x22ad5e={};_0x22ad5e['PbGPZ']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x22ad5e[_0x5d4de7(0x1b7)]=_0x5d4de7(0x1f1),_0x22ad5e[_0x5d4de7(0x1c3)]=_0x5d4de7(0x1f5);const _0x1eb9c1=_0x22ad5e,_0x4afb4b={};_0x4afb4b['description']=_0x1eb9c1[_0x5d4de7(0x1c4)],_0x4afb4b[_0x5d4de7(0x1fb)]=_0x1eb9c1[_0x5d4de7(0x1b7)];const _0x37a22c={};return _0x37a22c[_0x5d4de7(0x1c5)]=_0x4afb4b,_0x21e02b[_0x5d4de7(0x1e8)](HELP_HEADER_MESSAGE['list'][_0x5d4de7(0x1c0)])[_0x5d4de7(0x1d9)](HELP_FOOTER_MESSAGE)[_0x5d4de7(0x1f3)](_0x37a22c)['help'](_0x1eb9c1['KOtQS'])[_0x5d4de7(0x1d4)];},exports[a15_0x21d85a(0x1f7)]=async function(_0x4053f6){const _0x4c19d1=a15_0x21d85a,_0x4041e1={'DZTek':function(_0x4c49fe){return _0x4c49fe();},'LYpnK':function(_0x7d6212){return _0x7d6212();},'BztYF':_0x4c19d1(0x1ed),'KTkvX':function(_0x2126e0,_0x43d0c6,_0x32ef61,_0x2bcbb3,_0x10d00e,_0x328e41,_0x58f9e4){return _0x2126e0(_0x43d0c6,_0x32ef61,_0x2bcbb3,_0x10d00e,_0x328e41,_0x58f9e4);},'NwbnO':_0x4c19d1(0x1bb),'eNQZl':'init-not-called','SNBnW':function(_0x36915a){return _0x36915a();},'ILZKr':_0x4c19d1(0x1f9),'QQRAl':function(_0x4ee3a5,_0x465c48,_0x406c66){return _0x4ee3a5(_0x465c48,_0x406c66);},'bqcnS':function(_0x24de5b,_0x34707d){return _0x24de5b!==_0x34707d;},'iPQQI':function(_0x5cb5c3,_0x50cc3e){return _0x5cb5c3!==_0x50cc3e;},'jcpBC':function(_0x14007f,_0x2ccb00){return _0x14007f===_0x2ccb00;},'NkwtC':_0x4c19d1(0x1ab),'ggHYZ':_0x4c19d1(0x1aa),'sBVqc':_0x4c19d1(0x1b8),'wpNSY':'status','mdEVr':_0x4c19d1(0x1c8),'jtfkD':_0x4c19d1(0x1e0),'bZmkn':'cluster-name','wwTrY':function(_0x1cea9a,_0x29b8e3){return _0x1cea9a(_0x29b8e3);},'tohyN':function(_0x443b0b,_0x281943){return _0x443b0b===_0x281943;},'FCVBz':_0x4c19d1(0x1bd),'sZybx':_0x4c19d1(0x1ac),'SXAwi':function(_0x40344d,_0x564b7a,_0x21afde,_0x155360,_0x22e509,_0x1efbbb,_0x5ec0d5){return _0x40344d(_0x564b7a,_0x21afde,_0x155360,_0x22e509,_0x1efbbb,_0x5ec0d5);},'Jmfcf':_0x4c19d1(0x1cf),'nzfDz':function(_0x5c12a0,_0x5e6964,_0x112988,_0x1d0fb5,_0x37ee79,_0x137a48,_0x2e949c){return _0x5c12a0(_0x5e6964,_0x112988,_0x1d0fb5,_0x37ee79,_0x137a48,_0x2e949c);},'jfqVb':_0x4c19d1(0x1ce)};try{global_registry['requestId']=_0x4041e1[_0x4c19d1(0x1b1)](uuidv4);!fs['existsSync'](_0x4041e1[_0x4c19d1(0x1ef)](getCredentialsPath))&&(console[_0x4c19d1(0x1be)](_0x4041e1['BztYF']),await _0x4041e1['KTkvX'](sendInstrumentationEvent,_0x4053f6,_0x4041e1[_0x4c19d1(0x1e4)],messageTypes['ERROR'],_0x4041e1[_0x4c19d1(0x1fa)],null,_0x4053f6),process['exit'](0x1));const _0x28855e=JSON[_0x4c19d1(0x1cb)](fs['readFileSync'](_0x4041e1[_0x4c19d1(0x1f6)](getCredentialsPath)));let _0x3a6853=_0x4c19d1(0x1d3)+AG_API_URL+_0x4c19d1(0x1e6);_0x4053f6[_0x4c19d1(0x1e1)]&&(_0x3a6853=_0x4c19d1(0x1d3)+AG_API_URL+_0x4c19d1(0x1b9));const _0x51f71a={'method':_0x4041e1[_0x4c19d1(0x1ad)],'headers':_0x4041e1[_0x4c19d1(0x1fd)](getAuthHeader,_0x28855e[_0x4c19d1(0x1c7)][_0x4c19d1(0x1df)],_0x28855e[_0x4c19d1(0x1c7)][_0x4c19d1(0x1cd)]),'throwHttpErrors':![]};global_registry[_0x4c19d1(0x1d6)]=_0x28855e[_0x4c19d1(0x1c7)]['username'],global_registry['bstackAccesskey']=_0x28855e[_0x4c19d1(0x1c7)][_0x4c19d1(0x1cd)],_0x4041e1[_0x4c19d1(0x1f2)](sendInstrumentationEvent,_0x4053f6,_0x4041e1['NwbnO'],messageTypes[_0x4c19d1(0x1af)],null,null,_0x4053f6);const _0x1c2259=await _0x4041e1[_0x4c19d1(0x1fd)](got,_0x3a6853,_0x51f71a);if(_0x4041e1[_0x4c19d1(0x1c2)](_0x1c2259,null)&&_0x4041e1['iPQQI'](_0x1c2259,undefined)&&_0x4041e1['jcpBC'](_0x1c2259['statusCode'],0xc8)){const _0x2091d4=JSON['parse'](_0x1c2259[_0x4c19d1(0x1dd)]);console[_0x4c19d1(0x1ae)](_0x4041e1[_0x4c19d1(0x1d2)]);const _0xcd4fba=[];_0xcd4fba[_0x4c19d1(0x1eb)]([_0x4041e1[_0x4c19d1(0x1d1)],_0x4041e1['sBVqc'],_0x4041e1['wpNSY'],_0x4041e1[_0x4c19d1(0x1ca)],_0x4041e1[_0x4c19d1(0x1b2)],_0x4041e1[_0x4c19d1(0x1d7)]]),_0x2091d4['forEach'](_0x47ca72=>{const _0x5062c6=_0x4c19d1;_0xcd4fba[_0x5062c6(0x1eb)]([_0x47ca72['id'],_0x47ca72['name'],_0x47ca72[_0x5062c6(0x1b5)],_0x47ca72['running'],_0x47ca72['queued'],_0x47ca72[_0x5062c6(0x1b3)]]);}),console[_0x4c19d1(0x1ae)](_0x4041e1['wwTrY'](table,_0xcd4fba)),process[_0x4c19d1(0x1dc)](0x0);}_0x4041e1[_0x4c19d1(0x1bf)](_0x1c2259[_0x4c19d1(0x1b6)],0x191)&&(console[_0x4c19d1(0x1be)](_0x4041e1[_0x4c19d1(0x1de)]),await _0x4041e1[_0x4c19d1(0x1f2)](sendInstrumentationEvent,_0x4053f6,_0x4041e1['NwbnO'],messageTypes['ERROR'],_0x4041e1[_0x4c19d1(0x1ee)],null,_0x4053f6),process[_0x4c19d1(0x1dc)](0x1)),console['error'](_0x4c19d1(0x1c6)+JSON[_0x4c19d1(0x1b4)](_0x1c2259)),await _0x4041e1[_0x4c19d1(0x1fc)](sendInstrumentationEvent,_0x4053f6,_0x4041e1[_0x4c19d1(0x1e4)],messageTypes[_0x4c19d1(0x1b0)],_0x4041e1[_0x4c19d1(0x1da)],_0x1c2259,_0x4053f6),process[_0x4c19d1(0x1dc)](0x1);}catch(_0x5bce70){console[_0x4c19d1(0x1be)](_0x4c19d1(0x1cc)+_0x5bce70['stack']),await _0x4041e1['nzfDz'](sendInstrumentationEvent,_0x4053f6,_0x4041e1[_0x4c19d1(0x1e4)],messageTypes['ERROR'],_0x4041e1[_0x4c19d1(0x1f8)],_0x5bce70,_0x4053f6),process[_0x4c19d1(0x1dc)](0x1);}};
1
+ const a15_0x4b66cd=a15_0x18d0;(function(_0x4cafba,_0x517778){const _0x4a2b11=a15_0x18d0,_0x28fb16=_0x4cafba();while(!![]){try{const _0x5bf70d=parseInt(_0x4a2b11(0x1ee))/0x1*(-parseInt(_0x4a2b11(0x1e3))/0x2)+parseInt(_0x4a2b11(0x1d2))/0x3+parseInt(_0x4a2b11(0x215))/0x4*(parseInt(_0x4a2b11(0x1e1))/0x5)+-parseInt(_0x4a2b11(0x1f9))/0x6*(-parseInt(_0x4a2b11(0x214))/0x7)+-parseInt(_0x4a2b11(0x1fc))/0x8*(parseInt(_0x4a2b11(0x1d4))/0x9)+parseInt(_0x4a2b11(0x1f0))/0xa+-parseInt(_0x4a2b11(0x1fe))/0xb;if(_0x5bf70d===_0x517778)break;else _0x28fb16['push'](_0x28fb16['shift']());}catch(_0x1d0847){_0x28fb16['push'](_0x28fb16['shift']());}}}(a15_0x1814,0xb0915));function a15_0x18d0(_0x26485f,_0x39cb96){const _0x181404=a15_0x1814();return a15_0x18d0=function(_0x18d0d0,_0x2b1e4c){_0x18d0d0=_0x18d0d0-0x1c7;let _0x59d809=_0x181404[_0x18d0d0];return _0x59d809;},a15_0x18d0(_0x26485f,_0x39cb96);}const fs=require('fs'),got=require(a15_0x4b66cd(0x1fd)),{table}=require(a15_0x4b66cd(0x1e5)),{v4:uuidv4}=require(a15_0x4b66cd(0x212)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x4b66cd(0x1d3)),{getCredentialsPath,getAuthHeader}=require(a15_0x4b66cd(0x202)),{sendInstrumentationEvent}=require(a15_0x4b66cd(0x1e4));exports[a15_0x4b66cd(0x21b)]=a15_0x4b66cd(0x20c),exports[a15_0x4b66cd(0x217)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x4b66cd(0x20a)]=function(_0x399c1c){const _0x3f9a2f=a15_0x4b66cd,_0xbd102c={};_0xbd102c[_0x3f9a2f(0x1f6)]=_0x3f9a2f(0x1e2),_0xbd102c[_0x3f9a2f(0x1f3)]='boolean',_0xbd102c[_0x3f9a2f(0x203)]=_0x3f9a2f(0x216);const _0x5cc4cd=_0xbd102c,_0x77d88b={};_0x77d88b[_0x3f9a2f(0x20e)]=_0x5cc4cd[_0x3f9a2f(0x1f6)],_0x77d88b[_0x3f9a2f(0x1d9)]=_0x5cc4cd[_0x3f9a2f(0x1f3)];const _0x2c9273={};return _0x2c9273[_0x3f9a2f(0x1ff)]=_0x77d88b,_0x399c1c[_0x3f9a2f(0x1d0)](HELP_HEADER_MESSAGE['list']['grid'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x3f9a2f(0x1df)](_0x2c9273)['help'](_0x5cc4cd[_0x3f9a2f(0x203)])[_0x3f9a2f(0x219)];},exports[a15_0x4b66cd(0x1e8)]=async function(_0x5579e7){const _0x4f7313=a15_0x4b66cd,_0x5415e6={'sNsXS':function(_0x4370f9){return _0x4370f9();},'TbhMx':function(_0x3382fb){return _0x3382fb();},'kzewP':_0x4f7313(0x1de),'iHCTM':function(_0x5b2ba2,_0x201a75,_0x5ae682,_0x1f7e5e,_0x3f1efd,_0x400cd3,_0x5a62b5){return _0x5b2ba2(_0x201a75,_0x5ae682,_0x1f7e5e,_0x3f1efd,_0x400cd3,_0x5a62b5);},'SqvtV':'list-grids-called','DnTxJ':'init-not-called','CuRET':_0x4f7313(0x20f),'rDUYj':function(_0x427546,_0x58617d,_0x1e1926){return _0x427546(_0x58617d,_0x1e1926);},'sHDPF':function(_0xebac60,_0x5d4a7d){return _0xebac60!==_0x5d4a7d;},'yVRRk':function(_0x466257,_0x100957){return _0x466257!==_0x100957;},'FxQkY':function(_0x3729c1,_0x34af6b){return _0x3729c1===_0x34af6b;},'ComNA':'\x0aFound\x20the\x20following\x20grids:\x0a','iinMm':'grid-id','MEqAW':_0x4f7313(0x21a),'BONrl':_0x4f7313(0x205),'SuvoC':_0x4f7313(0x1eb),'cMUoi':_0x4f7313(0x204),'ToGNS':_0x4f7313(0x206),'VlnBY':function(_0x45788b,_0x2adbfc){return _0x45788b(_0x2adbfc);},'bVIZD':_0x4f7313(0x213),'pTlxJ':function(_0x458b75,_0x155bdc,_0x589070,_0x10d98b,_0x331185,_0x48ee99,_0x45f118){return _0x458b75(_0x155bdc,_0x589070,_0x10d98b,_0x331185,_0x48ee99,_0x45f118);},'hwofx':_0x4f7313(0x1dd),'EzXit':_0x4f7313(0x1cc),'eoZnS':_0x4f7313(0x209)};try{global_registry[_0x4f7313(0x1cf)]=_0x5415e6[_0x4f7313(0x1e6)](uuidv4);!fs[_0x4f7313(0x1fb)](_0x5415e6['TbhMx'](getCredentialsPath))&&(console[_0x4f7313(0x1c8)](_0x5415e6[_0x4f7313(0x1ed)]),await _0x5415e6[_0x4f7313(0x21c)](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes[_0x4f7313(0x1dc)],_0x5415e6[_0x4f7313(0x1c9)],null,_0x5579e7),process[_0x4f7313(0x1ca)](0x1));const _0x54d35f=JSON[_0x4f7313(0x1e0)](fs[_0x4f7313(0x1d1)](_0x5415e6['sNsXS'](getCredentialsPath)));let _0x13cd62=_0x4f7313(0x1f1)+AG_API_URL+'/packages/cli/get-grids';_0x5579e7[_0x4f7313(0x1ec)]&&(_0x13cd62=_0x4f7313(0x1f1)+AG_API_URL+_0x4f7313(0x1f2));const _0x3c1efe={'method':_0x5415e6[_0x4f7313(0x208)],'headers':_0x5415e6['rDUYj'](getAuthHeader,_0x54d35f[_0x4f7313(0x1f5)]['username'],_0x54d35f[_0x4f7313(0x1f5)][_0x4f7313(0x1f7)]),'throwHttpErrors':![]};global_registry[_0x4f7313(0x1ef)]=_0x54d35f[_0x4f7313(0x1f5)][_0x4f7313(0x1cb)],global_registry['bstackAccesskey']=_0x54d35f[_0x4f7313(0x1f5)][_0x4f7313(0x1f7)],_0x5415e6[_0x4f7313(0x21c)](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes[_0x4f7313(0x1f4)],null,null,_0x5579e7);const _0x36cfae=await _0x5415e6[_0x4f7313(0x1e9)](got,_0x13cd62,_0x3c1efe);if(_0x5415e6['sHDPF'](_0x36cfae,null)&&_0x5415e6[_0x4f7313(0x20b)](_0x36cfae,undefined)&&_0x5415e6[_0x4f7313(0x1d5)](_0x36cfae[_0x4f7313(0x1e7)],0xc8)){const _0x447931=JSON[_0x4f7313(0x1e0)](_0x36cfae['body']);console[_0x4f7313(0x1d6)](_0x5415e6[_0x4f7313(0x210)]);const _0x3f4322=[];_0x3f4322[_0x4f7313(0x1fa)]([_0x5415e6[_0x4f7313(0x1f8)],_0x5415e6[_0x4f7313(0x218)],_0x5415e6['BONrl'],_0x5415e6[_0x4f7313(0x1ce)],_0x5415e6[_0x4f7313(0x1c7)],_0x5415e6[_0x4f7313(0x1db)]]),_0x447931[_0x4f7313(0x1ea)](_0x155246=>{const _0x3d1991=_0x4f7313;_0x3f4322['push']([_0x155246['id'],_0x155246[_0x3d1991(0x20d)],_0x155246[_0x3d1991(0x205)],_0x155246['running'],_0x155246['queued'],_0x155246[_0x3d1991(0x207)]]);}),console[_0x4f7313(0x1d6)](_0x5415e6['VlnBY'](table,_0x3f4322)),process[_0x4f7313(0x1ca)](0x0);}_0x5415e6[_0x4f7313(0x1d5)](_0x36cfae['statusCode'],0x191)&&(console[_0x4f7313(0x1c8)](_0x5415e6['bVIZD']),await _0x5415e6[_0x4f7313(0x1d8)](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes['ERROR'],_0x5415e6[_0x4f7313(0x201)],null,_0x5579e7),process[_0x4f7313(0x1ca)](0x1)),console[_0x4f7313(0x1c8)](_0x4f7313(0x1d7)+JSON['stringify'](_0x36cfae)),await _0x5415e6['iHCTM'](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes[_0x4f7313(0x1dc)],_0x5415e6[_0x4f7313(0x211)],_0x36cfae,_0x5579e7),process[_0x4f7313(0x1ca)](0x1);}catch(_0x5718cd){console[_0x4f7313(0x1c8)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x5718cd[_0x4f7313(0x200)]),await _0x5415e6[_0x4f7313(0x1d8)](sendInstrumentationEvent,_0x5579e7,_0x5415e6[_0x4f7313(0x1cd)],messageTypes[_0x4f7313(0x1dc)],_0x5415e6[_0x4f7313(0x1da)],_0x5718cd,_0x5579e7),process['exit'](0x1);}};function a15_0x1814(){const _0x1ab254=['push','existsSync','8lwHjJY','got','27097048rYRMBY','all-grids','stack','hwofx','../../utils/utilityMethods','kAoiH','queued','status','cluster-name','clusterName','CuRET','unknown-error','builder','yVRRk','grids','name','description','GET','ComNA','EzXit','uuid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','49BQxhWo','3277388PPBWVd','help','desc','MEqAW','argv','grid-name','command','iHCTM','cMUoi','error','DnTxJ','exit','username','server-error','SqvtV','SuvoC','requestId','usage','readFileSync','3928668RJHbSU','../../config/constants','6318693daqdwV','FxQkY','log','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','pTlxJ','type','eoZnS','ToGNS','ERROR','unauthorised','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','options','parse','5QywOOw','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','274nZuvPf','../../utils/instrumentationUtils','table','sNsXS','statusCode','handler','rDUYj','forEach','running','allGrids','kzewP','1360kqvoWa','bstackUsername','13041200nLmVOk','https://','/packages/cli/get-all-grids','cgLGs','INFO','Browserstack','nIDNG','password','iinMm','550254tprRWK'];a15_0x1814=function(){return _0x1ab254;};return a15_0x1814();}
@@ -1 +1 @@
1
- const a16_0x3c6937=a16_0x183e;function a16_0x183e(_0x9c3856,_0x126432){const _0x4067b0=a16_0x4067();return a16_0x183e=function(_0x183ee6,_0x5f5517){_0x183ee6=_0x183ee6-0x184;let _0x4aa131=_0x4067b0[_0x183ee6];return _0x4aa131;},a16_0x183e(_0x9c3856,_0x126432);}(function(_0x4dca27,_0x1060eb){const _0x312375=a16_0x183e,_0x567e01=_0x4dca27();while(!![]){try{const _0x50de87=parseInt(_0x312375(0x18a))/0x1+-parseInt(_0x312375(0x199))/0x2+parseInt(_0x312375(0x18f))/0x3*(parseInt(_0x312375(0x19b))/0x4)+-parseInt(_0x312375(0x184))/0x5+parseInt(_0x312375(0x18e))/0x6*(-parseInt(_0x312375(0x196))/0x7)+parseInt(_0x312375(0x18b))/0x8+parseInt(_0x312375(0x191))/0x9;if(_0x50de87===_0x1060eb)break;else _0x567e01['push'](_0x567e01['shift']());}catch(_0x646b64){_0x567e01['push'](_0x567e01['shift']());}}}(a16_0x4067,0x8b146));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a16_0x3c6937(0x19a)]=a16_0x3c6937(0x188),exports[a16_0x3c6937(0x18d)]=a16_0x3c6937(0x18c),exports[a16_0x3c6937(0x187)]=function(_0x27069e){const _0x273e16=a16_0x3c6937,_0x580d4f={};_0x580d4f[_0x273e16(0x195)]=_0x273e16(0x185),_0x580d4f[_0x273e16(0x189)]=_0x273e16(0x198);const _0x226fcf=_0x580d4f;return _0x27069e[_0x273e16(0x192)](HELP_HEADER_MESSAGE[_0x273e16(0x188)])[_0x273e16(0x193)](HELP_FOOTER_MESSAGE)['commandDir'](_0x226fcf[_0x273e16(0x195)])[_0x273e16(0x190)]()[_0x273e16(0x197)]()[_0x273e16(0x186)]()[_0x273e16(0x198)](_0x226fcf['iPPOv']);},exports[a16_0x3c6937(0x194)]=function(_0x163466){};function a16_0x4067(){const _0x4c25ac=['builder','start','iPPOv','448537IXaqrh','1223456dMdvVQ','Start\x20an\x20existing\x20Automation\x20grid.','desc','1314lNuYfD','2499873qbUbtn','demandCommand','7905150BGdjqS','usage','epilogue','handler','UqRmj','30058mjKCFO','recommendCommands','help','146550uIKxBz','command','4jYsUHj','3648895GgxNus','start_commands','strict'];a16_0x4067=function(){return _0x4c25ac;};return a16_0x4067();}
1
+ const a16_0x5b45ad=a16_0x2a42;(function(_0x150221,_0x4f64ed){const _0x45d9a8=a16_0x2a42,_0x2efc26=_0x150221();while(!![]){try{const _0x541702=parseInt(_0x45d9a8(0xdd))/0x1+-parseInt(_0x45d9a8(0xdb))/0x2*(parseInt(_0x45d9a8(0xe0))/0x3)+parseInt(_0x45d9a8(0xd9))/0x4+parseInt(_0x45d9a8(0xd0))/0x5+-parseInt(_0x45d9a8(0xdc))/0x6+parseInt(_0x45d9a8(0xd2))/0x7+-parseInt(_0x45d9a8(0xcc))/0x8;if(_0x541702===_0x4f64ed)break;else _0x2efc26['push'](_0x2efc26['shift']());}catch(_0x2f0b8e){_0x2efc26['push'](_0x2efc26['shift']());}}}(a16_0x5885,0xa283c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5b45ad(0xd6));function a16_0x2a42(_0x3d43f1,_0x1b5ce1){const _0x588588=a16_0x5885();return a16_0x2a42=function(_0x2a429e,_0xd7db64){_0x2a429e=_0x2a429e-0xcb;let _0xbf0111=_0x588588[_0x2a429e];return _0xbf0111;},a16_0x2a42(_0x3d43f1,_0x1b5ce1);}function a16_0x5885(){const _0x17a484=['recommendCommands','desc','3109612gGrtPq','commandDir','52dOIjMZ','1999200HviIqx','116640XJloeN','Start\x20an\x20existing\x20Automation\x20grid.','epilogue','2100qpYTLS','help','8976696zxXGiF','builder','usage','strict','2586230gekjRG','qmAcb','5095006KIErIK','demandCommand','start','start_commands','../config/constants'];a16_0x5885=function(){return _0x17a484;};return a16_0x5885();}exports['command']=a16_0x5b45ad(0xd4),exports[a16_0x5b45ad(0xd8)]=a16_0x5b45ad(0xde),exports[a16_0x5b45ad(0xcd)]=function(_0x4475c1){const _0x353b0c=a16_0x5b45ad,_0x51ea0c={};_0x51ea0c[_0x353b0c(0xd1)]=_0x353b0c(0xd5),_0x51ea0c['HhosY']='help';const _0x128619=_0x51ea0c;return _0x4475c1[_0x353b0c(0xce)](HELP_HEADER_MESSAGE[_0x353b0c(0xd4)])[_0x353b0c(0xdf)](HELP_FOOTER_MESSAGE)[_0x353b0c(0xda)](_0x128619[_0x353b0c(0xd1)])[_0x353b0c(0xd3)]()[_0x353b0c(0xd7)]()[_0x353b0c(0xcf)]()[_0x353b0c(0xcb)](_0x128619['HhosY']);},exports['handler']=function(_0x267f26){};
@@ -1 +1 @@
1
- const a17_0x42b72d=a17_0x54fb;(function(_0x20a929,_0x249e0c){const _0x16518f=a17_0x54fb,_0xbb4cdf=_0x20a929();while(!![]){try{const _0x41ce28=parseInt(_0x16518f(0x23e))/0x1*(parseInt(_0x16518f(0x1f5))/0x2)+parseInt(_0x16518f(0x225))/0x3+parseInt(_0x16518f(0x1f4))/0x4+-parseInt(_0x16518f(0x205))/0x5+parseInt(_0x16518f(0x1f1))/0x6*(parseInt(_0x16518f(0x240))/0x7)+parseInt(_0x16518f(0x1f2))/0x8+-parseInt(_0x16518f(0x204))/0x9*(parseInt(_0x16518f(0x22e))/0xa);if(_0x41ce28===_0x249e0c)break;else _0xbb4cdf['push'](_0xbb4cdf['shift']());}catch(_0x421635){_0xbb4cdf['push'](_0xbb4cdf['shift']());}}}(a17_0x5ae0,0xad4e3));function a17_0x54fb(_0x5de2f9,_0x20a45d){const _0x5ae008=a17_0x5ae0();return a17_0x54fb=function(_0x54fb4a,_0x4b7060){_0x54fb4a=_0x54fb4a-0x1e1;let _0x4e4823=_0x5ae008[_0x54fb4a];return _0x4e4823;},a17_0x54fb(_0x5de2f9,_0x20a45d);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x42b72d(0x21b)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a17_0x42b72d(0x1f3)),{scaleUpHubDeployment}=require(a17_0x42b72d(0x22f)),{sendInstrumentationEvent}=require(a17_0x42b72d(0x20f)),webSocketUtils=require(a17_0x42b72d(0x1ed)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a17_0x42b72d(0x226));exports[a17_0x42b72d(0x1e2)]=a17_0x42b72d(0x22b),exports[a17_0x42b72d(0x1f0)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a17_0x42b72d(0x223)]=function(_0x4fb8b2){const _0x16ee31=a17_0x42b72d,_0x30b313={};_0x30b313['KBoRo']=_0x16ee31(0x203),_0x30b313[_0x16ee31(0x1f7)]=_0x16ee31(0x214),_0x30b313[_0x16ee31(0x1f6)]=_0x16ee31(0x211),_0x30b313[_0x16ee31(0x201)]=_0x16ee31(0x222),_0x30b313[_0x16ee31(0x21e)]=_0x16ee31(0x20d);const _0x406cc2=_0x30b313,_0x20d5df={};_0x20d5df['description']=_0x406cc2[_0x16ee31(0x213)],_0x20d5df[_0x16ee31(0x236)]=_0x406cc2['fqfjV'];const _0x45e01c={};_0x45e01c[_0x16ee31(0x1e6)]=_0x406cc2[_0x16ee31(0x1f6)],_0x45e01c[_0x16ee31(0x236)]=_0x406cc2[_0x16ee31(0x201)],_0x45e01c[_0x16ee31(0x20e)]=![];const _0xb9b2c3={};return _0xb9b2c3[_0x16ee31(0x1fc)]=_0x20d5df,_0xb9b2c3[_0x16ee31(0x209)]=_0x45e01c,_0x4fb8b2['usage'](HELP_HEADER_MESSAGE[_0x16ee31(0x232)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0xb9b2c3)[_0x16ee31(0x20d)](_0x406cc2[_0x16ee31(0x21e)])[_0x16ee31(0x224)];},exports[a17_0x42b72d(0x1f9)]=async function(_0x245940){const _0x11c9af=a17_0x42b72d,_0x2cb4c5={'VLxMJ':_0x11c9af(0x1fa),'GEEBx':function(_0xa18a2b){return _0xa18a2b();},'DlIpB':_0x11c9af(0x216),'oNGRV':function(_0x19ff0b,_0x507a1d,_0x17644d,_0x16fa99,_0x3ae0b6,_0x5b5ddc,_0x1dc645){return _0x19ff0b(_0x507a1d,_0x17644d,_0x16fa99,_0x3ae0b6,_0x5b5ddc,_0x1dc645);},'AfOXl':_0x11c9af(0x1e5),'FTwmp':_0x11c9af(0x1ff),'APswb':function(_0x204776,_0x45f057,_0x152ed5,_0x4061cd,_0x5f051c,_0x32f3e5,_0x383bbe){return _0x204776(_0x45f057,_0x152ed5,_0x4061cd,_0x5f051c,_0x32f3e5,_0x383bbe);},'NDgNO':_0x11c9af(0x1ee),'iDgCw':_0x11c9af(0x21a),'uWQaI':_0x11c9af(0x22d),'wrGBb':function(_0x365586,_0x3c6431,_0x237093,_0x44bc75){return _0x365586(_0x3c6431,_0x237093,_0x44bc75);},'lVWBl':function(_0x1d5bbd,_0x16f80a,_0x4d4dee){return _0x1d5bbd(_0x16f80a,_0x4d4dee);},'Qrgkt':function(_0x47dfc9,_0x22bf6c,_0x4dac64){return _0x47dfc9(_0x22bf6c,_0x4dac64);},'ACrdX':_0x11c9af(0x220),'qFrUC':function(_0x2bb72a,_0x205b2a){return _0x2bb72a===_0x205b2a;},'Ibyhh':_0x11c9af(0x233),'JwFLJ':_0x11c9af(0x1ec),'eKSzD':function(_0x3415e5,_0x2394e1){return _0x3415e5===_0x2394e1;},'MRDNn':_0x11c9af(0x1fe),'RRvqm':function(_0x41d904,_0x1bcfef,_0xaff97c,_0x8825de,_0x1c0146,_0x3c7f67,_0x10611e){return _0x41d904(_0x1bcfef,_0xaff97c,_0x8825de,_0x1c0146,_0x3c7f67,_0x10611e);},'gYxLB':_0x11c9af(0x21f)};let _0x209ce1;try{!_0x245940[_0x11c9af(0x215)]&&(logger[_0x11c9af(0x1f8)](_0x2cb4c5['VLxMJ']),process[_0x11c9af(0x207)](0x1));!fs[_0x11c9af(0x221)](_0x2cb4c5[_0x11c9af(0x228)](getCredentialsPath))&&(logger[_0x11c9af(0x1f8)](_0x2cb4c5[_0x11c9af(0x1e7)]),await _0x2cb4c5[_0x11c9af(0x22c)](sendInstrumentationEvent,_0x245940,_0x2cb4c5['AfOXl'],messageTypes[_0x11c9af(0x23f)],_0x2cb4c5[_0x11c9af(0x20c)],null,_0x245940),process[_0x11c9af(0x207)](0x1));logger[_0x11c9af(0x237)]('Starting\x20grid\x20'+_0x245940['gridId']),await _0x2cb4c5[_0x11c9af(0x20b)](sendInstrumentationEvent,_0x245940,_0x2cb4c5[_0x11c9af(0x1ef)],messageTypes['INFO'],null,null,_0x245940);const _0x39e139=JSON[_0x11c9af(0x206)](fs[_0x11c9af(0x1e1)](_0x2cb4c5['GEEBx'](getCredentialsPath)));global_registry[_0x11c9af(0x231)]=_0x39e139['Browserstack']['username'],global_registry[_0x11c9af(0x219)]=_0x39e139[_0x11c9af(0x210)][_0x11c9af(0x218)];const _0x284609=WS_ENDPOINT[_0x11c9af(0x230)](_0x2cb4c5[_0x11c9af(0x1fd)],_0x39e139[_0x11c9af(0x210)][_0x11c9af(0x23d)])[_0x11c9af(0x230)](_0x2cb4c5['iDgCw'],_0x39e139[_0x11c9af(0x210)][_0x11c9af(0x218)]),_0x24be55={};_0x24be55[_0x11c9af(0x1fb)]=ws,_0x24be55[_0x11c9af(0x217)]=0x36ee80,_0x209ce1=new ReconnectingWebSocket(_0x284609,[],_0x24be55),logger['debug'](_0x2cb4c5[_0x11c9af(0x23b)]),webSocketUtils[_0x11c9af(0x22a)](_0x209ce1,_0x245940[_0x11c9af(0x1e8)],_0x245940['password']);const [_0x3a2384,_0x2292af]=await _0x2cb4c5[_0x11c9af(0x202)](getGridDetails,_0x39e139['Browserstack']['username'],_0x39e139[_0x11c9af(0x210)]['password'],_0x245940[_0x11c9af(0x215)]);if(_0x2292af){const _0x11fd21=_0x2292af[_0x11c9af(0x237)];global_registry[_0x11c9af(0x1e9)]=_0x11fd21[_0x11c9af(0x1e9)],global_registry[_0x11c9af(0x1e4)]=_0x11fd21[_0x11c9af(0x20a)],global_registry[_0x11c9af(0x229)]=_0x11fd21[_0x11c9af(0x229)];const _0x39e16f=await _0x2cb4c5[_0x11c9af(0x22c)](getCloudProviderObject,_0x11fd21[_0x11c9af(0x1e9)],_0x11fd21[_0x11c9af(0x229)],_0x11fd21['name'],_0x209ce1,webSocketUtils,_0x245940),[_0xd55b44,_0x570408,_0x12c308,_0x110bd4,_0x10fe6a,_0x29b318]=await _0x2cb4c5[_0x11c9af(0x238)](createK8sClient,_0x39e16f,_0x245940[_0x11c9af(0x21d)]);await _0x2cb4c5[_0x11c9af(0x227)](scaleUpHubDeployment,_0x570408,_0x11fd21[_0x11c9af(0x200)]),logger['info'](_0x2cb4c5[_0x11c9af(0x234)]),process[_0x11c9af(0x207)](0x0);}_0x2cb4c5[_0x11c9af(0x208)](_0x3a2384[_0x11c9af(0x235)],0x191)&&(logger[_0x11c9af(0x1f8)](_0x2cb4c5['Ibyhh']),await _0x2cb4c5['oNGRV'](sendInstrumentationEvent,_0x245940,_0x2cb4c5['AfOXl'],messageTypes[_0x11c9af(0x23f)],_0x2cb4c5[_0x11c9af(0x1e3)],null,_0x245940),process[_0x11c9af(0x207)](0x1)),_0x2cb4c5[_0x11c9af(0x1eb)](_0x3a2384[_0x11c9af(0x235)],0x190)&&(logger['error'](JSON[_0x11c9af(0x206)](_0x3a2384[_0x11c9af(0x23a)])['message']),await _0x2cb4c5[_0x11c9af(0x22c)](sendInstrumentationEvent,_0x245940,_0x2cb4c5[_0x11c9af(0x1ef)],messageTypes[_0x11c9af(0x23f)],_0x2cb4c5['MRDNn'],null,_0x245940),process[_0x11c9af(0x207)](0x1)),logger[_0x11c9af(0x1f8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x11c9af(0x1ea)](_0x3a2384)),await _0x2cb4c5[_0x11c9af(0x212)](sendInstrumentationEvent,_0x245940,_0x2cb4c5[_0x11c9af(0x1ef)],messageTypes[_0x11c9af(0x23f)],_0x2cb4c5[_0x11c9af(0x239)],_0x3a2384,_0x245940),process[_0x11c9af(0x207)](0x1);}catch(_0x13b775){const _0x251543=_0x11c9af(0x21c)+_0x13b775+'\x20\x0a'+JSON[_0x11c9af(0x1ea)](_0x13b775[_0x11c9af(0x23c)])+'\x20';logger[_0x11c9af(0x1f8)](_0x251543),process['exit'](0x1);}};function a17_0x5ae0(){const _0x127c7a=['boolean','builder','argv','691341MBtaGF','../../cloudproviders/utils','Qrgkt','GEEBx','clusterName','addListeners','grid','oNGRV','Adding\x20Websocket\x20listeners','901640FbXLFW','../../utils/gridComponents','replace','bstackUsername','start','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ACrdX','statusCode','type','info','lVWBl','gYxLB','body','uWQaI','stack','username','23WHbEqn','ERROR','154MDDGuR','readFileSync','command','JwFLJ','clusterRegion','start-grid-called','description','DlIpB','user','cloudProvider','stringify','eKSzD','unauthorised','../../utils/webSocketUtils','<UsernamePlaceholder>','AfOXl','desc','139938aoEwBc','2197904ohgwoo','../../utils/utilityMethods','4045064EzghsG','28202uyBAgh','HvZWz','fqfjV','error','handler','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','WebSocket','grid-id','NDgNO','invalid-grid-id','init-not-called','name','dWWGp','wrGBb','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','99NjmRWD','3261085sZSghX','parse','exit','qFrUC','skip-tls-cert-verify','region','APswb','FTwmp','help','default','../../utils/instrumentationUtils','Browserstack','Skip\x20insecure\x20cert\x20verification.','RRvqm','KBoRo','string','gridId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','connectionTimeout','password','bstackAccesskey','<PasswordPlaceholder>','reconnecting-websocket','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','skipTlsCertVerify','PpMUx','server-error','Grid\x20started','existsSync'];a17_0x5ae0=function(){return _0x127c7a;};return a17_0x5ae0();}
1
+ function a17_0x4c4c(_0x229dd8,_0x24e39f){const _0x28ae79=a17_0x28ae();return a17_0x4c4c=function(_0x4c4cfb,_0x180f87){_0x4c4cfb=_0x4c4cfb-0xf1;let _0x1d1729=_0x28ae79[_0x4c4cfb];return _0x1d1729;},a17_0x4c4c(_0x229dd8,_0x24e39f);}function a17_0x28ae(){const _0xf13e62=['NrzKo','dCkOD','argv','username','boolean','existsSync','debug','wrczC','help','2rAAOAI','21rAtswA','AJUIu','region','../../utils/createk8sClient','../../utils/gridComponents','unauthorised','skip-tls-cert-verify','epilogue','type','gridId','../../config/logger','options','server-error','exit','../../cloudproviders/utils','vKSzD','../../config/constants','1114192lqBDnv','mLFYZ','WytdB','statusCode','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','builder','452bXYBgu','init-not-called','IZGrS','LDhLU','description','MhBEY','message','name','IDOYU','parse','kLMEE','<PasswordPlaceholder>','replace','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','27XhBJPn','cloudProvider','../../utils/utilityMethods','WebSocket','error','35513647mOrDnL','25gTdskj','1236SlPjrM','<UsernamePlaceholder>','FJHwy','ERROR','ZUAAj','YnpkX','stringify','782430mrmAlF','dYXxm','info','INFO','AHsWg','978852jQypbN','password','oSnQe','Browserstack','string','Skip\x20insecure\x20cert\x20verification.','command','skipTlsCertVerify','rySQU','grid-id','QRtfV','clusterName','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','SquOH','Grid\x20started','user','clusterRegion','PcUhM','HfSXu','52789lkjdtl','reconnecting-websocket','lwGDr','899606nOsTqq','23832TsEodN','desc'];a17_0x28ae=function(){return _0xf13e62;};return a17_0x28ae();}const a17_0x3c1982=a17_0x4c4c;(function(_0x1a777d,_0x491630){const _0x4fb40a=a17_0x4c4c,_0x13f5a3=_0x1a777d();while(!![]){try{const _0x340e37=parseInt(_0x4fb40a(0x135))/0x1*(-parseInt(_0x4fb40a(0x141))/0x2)+-parseInt(_0x4fb40a(0x136))/0x3*(parseInt(_0x4fb40a(0xfd))/0x4)+-parseInt(_0x4fb40a(0x111))/0x5*(parseInt(_0x4fb40a(0x11e))/0x6)+parseInt(_0x4fb40a(0x142))/0x7*(parseInt(_0x4fb40a(0xf6))/0x8)+parseInt(_0x4fb40a(0x10b))/0x9*(-parseInt(_0x4fb40a(0x119))/0xa)+-parseInt(_0x4fb40a(0x132))/0xb*(-parseInt(_0x4fb40a(0x112))/0xc)+parseInt(_0x4fb40a(0x110))/0xd;if(_0x340e37===_0x491630)break;else _0x13f5a3['push'](_0x13f5a3['shift']());}catch(_0x53d097){_0x13f5a3['push'](_0x13f5a3['shift']());}}}(a17_0x28ae,0xc263d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x3c1982(0x133)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x3c1982(0xf5)),{logger}=require(a17_0x3c1982(0x14c)),{getCredentialsPath,getGridDetails}=require(a17_0x3c1982(0x10d)),{scaleUpHubDeployment}=require(a17_0x3c1982(0x146)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a17_0x3c1982(0x145)),{getCloudProviderObject}=require(a17_0x3c1982(0xf3));exports[a17_0x3c1982(0x124)]='grid',exports[a17_0x3c1982(0x137)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a17_0x3c1982(0xfc)]=function(_0x18e36a){const _0xca85a3=a17_0x3c1982,_0x420df8={};_0x420df8[_0xca85a3(0x102)]=_0xca85a3(0x10a),_0x420df8[_0xca85a3(0x138)]=_0xca85a3(0x122),_0x420df8[_0xca85a3(0x131)]=_0xca85a3(0x123),_0x420df8[_0xca85a3(0x11a)]=_0xca85a3(0x13c),_0x420df8[_0xca85a3(0x116)]=_0xca85a3(0x140);const _0x44e67d=_0x420df8,_0x100a12={};_0x100a12['description']=_0x44e67d[_0xca85a3(0x102)],_0x100a12[_0xca85a3(0x14a)]=_0x44e67d['NrzKo'];const _0x4c4584={};_0x4c4584[_0xca85a3(0x101)]=_0x44e67d[_0xca85a3(0x131)],_0x4c4584['type']=_0x44e67d[_0xca85a3(0x11a)],_0x4c4584['default']=![];const _0x26c506={};return _0x26c506[_0xca85a3(0x127)]=_0x100a12,_0x26c506[_0xca85a3(0x148)]=_0x4c4584,_0x18e36a['usage'](HELP_HEADER_MESSAGE['start'])[_0xca85a3(0x149)](HELP_FOOTER_MESSAGE)[_0xca85a3(0x14d)](_0x26c506)[_0xca85a3(0x140)](_0x44e67d[_0xca85a3(0x116)])[_0xca85a3(0x13a)];},exports[a17_0x3c1982(0xfa)]=async function(_0x50cfd4){const _0x5ecbe0=a17_0x3c1982,_0xf6bcf6={'vKSzD':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','IDOYU':function(_0x3220e4){return _0x3220e4();},'IZGrS':_0x5ecbe0(0x12a),'kLMEE':function(_0x16a311,_0x5c682e,_0x43b72e,_0x4d3d9e,_0x2b6de3,_0x4d3155,_0x274047){return _0x16a311(_0x5c682e,_0x43b72e,_0x4d3d9e,_0x2b6de3,_0x4d3155,_0x274047);},'PcUhM':'start-grid-called','tBmWa':_0x5ecbe0(0xfe),'mLFYZ':_0x5ecbe0(0x113),'AJUIu':_0x5ecbe0(0x108),'dCkOD':'Adding\x20Websocket\x20listeners','oSnQe':function(_0x26b2c6,_0x422b9e,_0x47d514,_0x14cb00){return _0x26b2c6(_0x422b9e,_0x47d514,_0x14cb00);},'wrczC':function(_0x33a17d,_0x31ae21,_0x10b642,_0x28263e,_0x279954,_0x362d22,_0xa2948f){return _0x33a17d(_0x31ae21,_0x10b642,_0x28263e,_0x279954,_0x362d22,_0xa2948f);},'SquOH':function(_0x570567,_0x420b64,_0x403611){return _0x570567(_0x420b64,_0x403611);},'lwGDr':_0x5ecbe0(0x12d),'AHsWg':function(_0x423ada,_0xc76460){return _0x423ada===_0xc76460;},'QRtfV':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Mjpcc':function(_0x3eb40a,_0x5a913e,_0x4d5ebb,_0xfd7cf0,_0x502a6b,_0x46b7cc,_0x1b5e19){return _0x3eb40a(_0x5a913e,_0x4d5ebb,_0xfd7cf0,_0x502a6b,_0x46b7cc,_0x1b5e19);},'WytdB':_0x5ecbe0(0x147),'rySQU':function(_0x2fb7e8,_0x2bfeba,_0x3403f0,_0x18d78e,_0x3a6ab2,_0x147e32,_0x454f5a){return _0x2fb7e8(_0x2bfeba,_0x3403f0,_0x18d78e,_0x3a6ab2,_0x147e32,_0x454f5a);},'LDhLU':'invalid-grid-id','YnpkX':function(_0xccdc49,_0x292f70,_0x55da89,_0x4ec69f,_0x340815,_0x4c7c1d,_0x331af4){return _0xccdc49(_0x292f70,_0x55da89,_0x4ec69f,_0x340815,_0x4c7c1d,_0x331af4);},'FJHwy':_0x5ecbe0(0xf1)};let _0x236098;try{!_0x50cfd4[_0x5ecbe0(0x14b)]&&(logger[_0x5ecbe0(0x10f)](_0xf6bcf6[_0x5ecbe0(0xf4)]),process[_0x5ecbe0(0xf2)](0x1));!fs[_0x5ecbe0(0x13d)](_0xf6bcf6[_0x5ecbe0(0x105)](getCredentialsPath))&&(logger[_0x5ecbe0(0x10f)](_0xf6bcf6[_0x5ecbe0(0xff)]),await _0xf6bcf6[_0x5ecbe0(0x107)](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes['ERROR'],_0xf6bcf6['tBmWa'],null,_0x50cfd4),process['exit'](0x1));logger[_0x5ecbe0(0x11b)]('Starting\x20grid\x20'+_0x50cfd4[_0x5ecbe0(0x14b)]),await _0xf6bcf6[_0x5ecbe0(0x107)](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes[_0x5ecbe0(0x11c)],null,null,_0x50cfd4);const _0x3d5dfd=JSON[_0x5ecbe0(0x106)](fs['readFileSync'](_0xf6bcf6['IDOYU'](getCredentialsPath)));global_registry['bstackUsername']=_0x3d5dfd['Browserstack'][_0x5ecbe0(0x13b)],global_registry['bstackAccesskey']=_0x3d5dfd[_0x5ecbe0(0x121)][_0x5ecbe0(0x11f)];const _0x50ed8f=WS_ENDPOINT[_0x5ecbe0(0x109)](_0xf6bcf6[_0x5ecbe0(0xf7)],_0x3d5dfd['Browserstack'][_0x5ecbe0(0x13b)])['replace'](_0xf6bcf6[_0x5ecbe0(0x143)],_0x3d5dfd[_0x5ecbe0(0x121)][_0x5ecbe0(0x11f)]),_0x1b4bb={};_0x1b4bb[_0x5ecbe0(0x10e)]=ws,_0x1b4bb['connectionTimeout']=0x36ee80,_0x236098=new ReconnectingWebSocket(_0x50ed8f,[],_0x1b4bb),logger[_0x5ecbe0(0x13e)](_0xf6bcf6[_0x5ecbe0(0x139)]),webSocketUtils['addListeners'](_0x236098,_0x50cfd4[_0x5ecbe0(0x12e)],_0x50cfd4[_0x5ecbe0(0x11f)]);const [_0x2552dd,_0x57721c]=await _0xf6bcf6[_0x5ecbe0(0x120)](getGridDetails,_0x3d5dfd[_0x5ecbe0(0x121)][_0x5ecbe0(0x13b)],_0x3d5dfd[_0x5ecbe0(0x121)][_0x5ecbe0(0x11f)],_0x50cfd4[_0x5ecbe0(0x14b)]);if(_0x57721c){const _0x3ca286=_0x57721c[_0x5ecbe0(0x11b)];global_registry['cloudProvider']=_0x3ca286[_0x5ecbe0(0x10c)],global_registry[_0x5ecbe0(0x12f)]=_0x3ca286[_0x5ecbe0(0x144)],global_registry[_0x5ecbe0(0x129)]=_0x3ca286[_0x5ecbe0(0x129)];const _0xe9abef=await _0xf6bcf6[_0x5ecbe0(0x13f)](getCloudProviderObject,_0x3ca286[_0x5ecbe0(0x10c)],_0x3ca286[_0x5ecbe0(0x129)],_0x3ca286[_0x5ecbe0(0x104)],_0x236098,webSocketUtils,_0x50cfd4),[_0x178a3c,_0x5d4be1,_0x411178,_0x5ae39e,_0x1af5de,_0x276f4a]=await _0xf6bcf6[_0x5ecbe0(0x12c)](createK8sClient,_0xe9abef,_0x50cfd4[_0x5ecbe0(0x125)]);await _0xf6bcf6[_0x5ecbe0(0x12c)](scaleUpHubDeployment,_0x5d4be1,_0x3ca286[_0x5ecbe0(0x104)]),logger[_0x5ecbe0(0x11b)](_0xf6bcf6[_0x5ecbe0(0x134)]),process[_0x5ecbe0(0xf2)](0x0);}_0xf6bcf6['AHsWg'](_0x2552dd[_0x5ecbe0(0xf9)],0x191)&&(logger[_0x5ecbe0(0x10f)](_0xf6bcf6[_0x5ecbe0(0x128)]),await _0xf6bcf6['Mjpcc'](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes[_0x5ecbe0(0x115)],_0xf6bcf6[_0x5ecbe0(0xf8)],null,_0x50cfd4),process[_0x5ecbe0(0xf2)](0x1)),_0xf6bcf6[_0x5ecbe0(0x11d)](_0x2552dd['statusCode'],0x190)&&(logger[_0x5ecbe0(0x10f)](JSON['parse'](_0x2552dd[_0x5ecbe0(0x12b)])[_0x5ecbe0(0x103)]),await _0xf6bcf6[_0x5ecbe0(0x126)](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes['ERROR'],_0xf6bcf6[_0x5ecbe0(0x100)],null,_0x50cfd4),process[_0x5ecbe0(0xf2)](0x1)),logger[_0x5ecbe0(0x10f)](_0x5ecbe0(0xfb)+JSON[_0x5ecbe0(0x118)](_0x2552dd)),await _0xf6bcf6[_0x5ecbe0(0x117)](sendInstrumentationEvent,_0x50cfd4,_0xf6bcf6[_0x5ecbe0(0x130)],messageTypes[_0x5ecbe0(0x115)],_0xf6bcf6[_0x5ecbe0(0x114)],_0x2552dd,_0x50cfd4),process[_0x5ecbe0(0xf2)](0x1);}catch(_0x114605){const _0x1725ff='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x114605+'\x20\x0a'+JSON[_0x5ecbe0(0x118)](_0x114605['stack'])+'\x20';logger[_0x5ecbe0(0x10f)](_0x1725ff),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a18_0x3c4e(_0x526c65,_0x331c88){const _0x5c4a90=a18_0x5c4a();return a18_0x3c4e=function(_0x3c4ef0,_0x1debc0){_0x3c4ef0=_0x3c4ef0-0x172;let _0x35b576=_0x5c4a90[_0x3c4ef0];return _0x35b576;},a18_0x3c4e(_0x526c65,_0x331c88);}const a18_0x36f6f7=a18_0x3c4e;(function(_0x37271a,_0x11cf6f){const _0x46d116=a18_0x3c4e,_0x1ed779=_0x37271a();while(!![]){try{const _0x5b8130=parseInt(_0x46d116(0x177))/0x1*(parseInt(_0x46d116(0x174))/0x2)+parseInt(_0x46d116(0x181))/0x3*(parseInt(_0x46d116(0x184))/0x4)+-parseInt(_0x46d116(0x182))/0x5*(-parseInt(_0x46d116(0x186))/0x6)+parseInt(_0x46d116(0x179))/0x7+-parseInt(_0x46d116(0x187))/0x8+-parseInt(_0x46d116(0x17f))/0x9+-parseInt(_0x46d116(0x17c))/0xa*(-parseInt(_0x46d116(0x173))/0xb);if(_0x5b8130===_0x11cf6f)break;else _0x1ed779['push'](_0x1ed779['shift']());}catch(_0x360185){_0x1ed779['push'](_0x1ed779['shift']());}}}(a18_0x5c4a,0x9ecb3));function a18_0x5c4a(){const _0x2f78f9=['builder','5019102CesHfX','strict','219tZLgHe','188645kNVPAL','stop','43192PRaMBu','handler','90kVQKIX','7899848XrnkdW','help','Stop\x20a\x20running\x20Automation\x20grid.','TKSsy','1040457BzysPX','2VGcsir','command','epilogue','644471asJUTj','demandCommand','54208QeaLzh','stop_commands','PUJde','20nXjuLN','usage'];a18_0x5c4a=function(){return _0x2f78f9;};return a18_0x5c4a();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a18_0x36f6f7(0x175)]='stop',exports['desc']=a18_0x36f6f7(0x189),exports[a18_0x36f6f7(0x17e)]=function(_0x3996a4){const _0x6a7fcc=a18_0x36f6f7,_0x56bb7f={};_0x56bb7f[_0x6a7fcc(0x17b)]=_0x6a7fcc(0x17a),_0x56bb7f[_0x6a7fcc(0x172)]=_0x6a7fcc(0x188);const _0x591e08=_0x56bb7f;return _0x3996a4[_0x6a7fcc(0x17d)](HELP_HEADER_MESSAGE[_0x6a7fcc(0x183)])[_0x6a7fcc(0x176)](HELP_FOOTER_MESSAGE)['commandDir'](_0x591e08[_0x6a7fcc(0x17b)])[_0x6a7fcc(0x178)]()['recommendCommands']()[_0x6a7fcc(0x180)]()['help'](_0x591e08[_0x6a7fcc(0x172)]);},exports[a18_0x36f6f7(0x185)]=function(_0x58ca8f){};
1
+ function a18_0x66f4(_0x5417b2,_0x595e93){const _0xeb6f28=a18_0xeb6f();return a18_0x66f4=function(_0x66f46d,_0x36ea1d){_0x66f46d=_0x66f46d-0xfc;let _0x1899c4=_0xeb6f28[_0x66f46d];return _0x1899c4;},a18_0x66f4(_0x5417b2,_0x595e93);}const a18_0x30a298=a18_0x66f4;(function(_0x2839b2,_0x5e3ebe){const _0x46421b=a18_0x66f4,_0x4feb82=_0x2839b2();while(!![]){try{const _0x4a3c2e=-parseInt(_0x46421b(0x10a))/0x1+-parseInt(_0x46421b(0x104))/0x2+parseInt(_0x46421b(0x108))/0x3+-parseInt(_0x46421b(0x10f))/0x4*(-parseInt(_0x46421b(0x110))/0x5)+parseInt(_0x46421b(0xfd))/0x6*(-parseInt(_0x46421b(0xfe))/0x7)+-parseInt(_0x46421b(0x10d))/0x8*(-parseInt(_0x46421b(0x103))/0x9)+parseInt(_0x46421b(0xff))/0xa;if(_0x4a3c2e===_0x5e3ebe)break;else _0x4feb82['push'](_0x4feb82['shift']());}catch(_0x360789){_0x4feb82['push'](_0x4feb82['shift']());}}}(a18_0xeb6f,0xa8cf5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x30a298(0x106),exports[a18_0x30a298(0x100)]='Stop\x20a\x20running\x20Automation\x20grid.',exports[a18_0x30a298(0x101)]=function(_0x29c913){const _0x259f42=a18_0x30a298,_0x1c3f09={};_0x1c3f09[_0x259f42(0x10c)]=_0x259f42(0x10e),_0x1c3f09[_0x259f42(0x105)]='help';const _0x396314=_0x1c3f09;return _0x29c913[_0x259f42(0x10b)](HELP_HEADER_MESSAGE[_0x259f42(0x106)])[_0x259f42(0xfc)](HELP_FOOTER_MESSAGE)['commandDir'](_0x396314[_0x259f42(0x10c)])['demandCommand']()[_0x259f42(0x107)]()[_0x259f42(0x111)]()[_0x259f42(0x109)](_0x396314[_0x259f42(0x105)]);},exports[a18_0x30a298(0x102)]=function(_0x40ad94){};function a18_0xeb6f(){const _0x509d85=['strict','epilogue','3804flgZaQ','2569CaSpMM','13623890JUIzhf','desc','builder','handler','1503QafIiq','1654810NiqoOx','pmQes','stop','recommendCommands','1428546uWKqZJ','help','961969tBiNVK','usage','ROawl','2896jPkWvV','stop_commands','32NoAhCZ','509045JGwleb'];a18_0xeb6f=function(){return _0x509d85;};return a18_0xeb6f();}
@@ -1 +1 @@
1
- const a19_0x4c1ea0=a19_0x2a9e;function a19_0x4b28(){const _0xa47e73=['pmGTD','../../utils/webSocketUtils','../../utils/createk8sClient','Stopping\x20grid\x20','bstackUsername','2256960cXwcaZ','7fhgFNj','grid','usage','info','4UNiAZe','name','cloudProvider','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','bWSIC','fvzeu','ryBpj','init-not-called','error','password','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','UQCSS','desc','PZmCF','clusterName','description','../../config/constants','type','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','username','255648RqmUte','TlnfI','default','LAoww','../../config/logger','stack','bstackAccesskey','3623064gHoUxG','dULkR','mtvNj','LbjSj','HSjrr','642986ZsoCgC','debug','invalid-grid-id','INFO','<UsernamePlaceholder>','WObAw','stop','ERROR','user','bICxh','skip-tls-cert-verify','Skip\x20insecure\x20cert\x20verification.','563162vQeGJn','epilogue','ZfHHy','body','help','YzSnh','ZMIMq','exit','AeDXB','23661819qKbjhT','Browserstack','server-error','../../utils/gridComponents','../../utils/utilityMethods','RFRSr','command','WebSocket','stop-grid-called','<PasswordPlaceholder>','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','statusCode','stringify','addListeners','oVEfV','existsSync','options','1859985IvuIwu','Stop\x20a\x20running\x20Automation\x20grid.','reconnecting-websocket','grid-id','handler','builder','../../utils/instrumentationUtils','argv','clusterRegion','Grid\x20stoppped.','OJYhr','replace','dAKwr'];a19_0x4b28=function(){return _0xa47e73;};return a19_0x4b28();}(function(_0x54046d,_0x375d6d){const _0x577c30=a19_0x2a9e,_0x47d4a5=_0x54046d();while(!![]){try{const _0xc22c41=-parseInt(_0x577c30(0x19f))/0x1+-parseInt(_0x577c30(0x1f0))/0x2+-parseInt(_0x577c30(0x1e4))/0x3+-parseInt(_0x577c30(0x1d0))/0x4*(parseInt(_0x577c30(0x1b9))/0x5)+parseInt(_0x577c30(0x1eb))/0x6*(-parseInt(_0x577c30(0x1cc))/0x7)+-parseInt(_0x577c30(0x1cb))/0x8+parseInt(_0x577c30(0x1a8))/0x9;if(_0xc22c41===_0x375d6d)break;else _0x47d4a5['push'](_0x47d4a5['shift']());}catch(_0x1939d7){_0x47d4a5['push'](_0x47d4a5['shift']());}}}(a19_0x4b28,0x61f6b));function a19_0x2a9e(_0x369b7a,_0x2d5e48){const _0x4b2803=a19_0x4b28();return a19_0x2a9e=function(_0x2a9ef8,_0x303b65){_0x2a9ef8=_0x2a9ef8-0x19f;let _0x45858d=_0x4b2803[_0x2a9ef8];return _0x45858d;},a19_0x2a9e(_0x369b7a,_0x2d5e48);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x4c1ea0(0x1bb)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x4c1ea0(0x1e0)),{logger}=require(a19_0x4c1ea0(0x1e8)),{getCredentialsPath,getGridDetails}=require(a19_0x4c1ea0(0x1ac)),{scaleDownHubDeployment}=require(a19_0x4c1ea0(0x1ab)),{sendInstrumentationEvent}=require(a19_0x4c1ea0(0x1bf)),webSocketUtils=require(a19_0x4c1ea0(0x1c7)),{createK8sClient}=require(a19_0x4c1ea0(0x1c8)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x4c1ea0(0x1ae)]=a19_0x4c1ea0(0x1cd),exports[a19_0x4c1ea0(0x1dc)]=a19_0x4c1ea0(0x1ba),exports[a19_0x4c1ea0(0x1be)]=function(_0x129a81){const _0x1ee53e=a19_0x4c1ea0,_0x5ea619={};_0x5ea619[_0x1ee53e(0x1a7)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x5ea619[_0x1ee53e(0x1e7)]='string',_0x5ea619[_0x1ee53e(0x1d4)]=_0x1ee53e(0x1fb),_0x5ea619['mtvNj']='boolean',_0x5ea619[_0x1ee53e(0x1a1)]=_0x1ee53e(0x1a3);const _0x1ee597=_0x5ea619,_0x125e22={};_0x125e22['description']=_0x1ee597[_0x1ee53e(0x1a7)],_0x125e22['type']=_0x1ee597[_0x1ee53e(0x1e7)];const _0x23b1f3={};_0x23b1f3[_0x1ee53e(0x1df)]=_0x1ee597[_0x1ee53e(0x1d4)],_0x23b1f3[_0x1ee53e(0x1e1)]=_0x1ee597[_0x1ee53e(0x1ed)],_0x23b1f3[_0x1ee53e(0x1e6)]=![];const _0x3d2c2d={};return _0x3d2c2d[_0x1ee53e(0x1bc)]=_0x125e22,_0x3d2c2d[_0x1ee53e(0x1fa)]=_0x23b1f3,_0x129a81[_0x1ee53e(0x1ce)](HELP_HEADER_MESSAGE[_0x1ee53e(0x1f6)])[_0x1ee53e(0x1a0)](HELP_FOOTER_MESSAGE)[_0x1ee53e(0x1b8)](_0x3d2c2d)[_0x1ee53e(0x1a3)](_0x1ee597[_0x1ee53e(0x1a1)])[_0x1ee53e(0x1c0)];},exports[a19_0x4c1ea0(0x1bd)]=async function(_0x3c5163){const _0x2d79fe=a19_0x4c1ea0,_0x190eca={'alFoy':_0x2d79fe(0x1d3),'bICxh':function(_0x569855){return _0x569855();},'XcAvz':_0x2d79fe(0x1b2),'RFRSr':function(_0x97224b,_0x4bf509,_0x3c7cfa,_0x54fc81,_0x40a7fc,_0x2da278,_0x93778d){return _0x97224b(_0x4bf509,_0x3c7cfa,_0x54fc81,_0x40a7fc,_0x2da278,_0x93778d);},'dULkR':_0x2d79fe(0x1b0),'ZMIMq':_0x2d79fe(0x1d7),'WObAw':function(_0xa2c1d4,_0x1ecd4d,_0x448d3b,_0x2b46fa,_0x4edcb0,_0x1a72c0,_0x1bdd05){return _0xa2c1d4(_0x1ecd4d,_0x448d3b,_0x2b46fa,_0x4edcb0,_0x1a72c0,_0x1bdd05);},'UQCSS':_0x2d79fe(0x1f4),'OJYhr':_0x2d79fe(0x1b1),'ryBpj':'Adding\x20Websocket\x20listeners','TlnfI':function(_0x4215df,_0xe25451,_0x46bcc4,_0x2b86e4){return _0x4215df(_0xe25451,_0x46bcc4,_0x2b86e4);},'YzSnh':function(_0x55068c,_0x51c4fb,_0xb38ec8){return _0x55068c(_0x51c4fb,_0xb38ec8);},'HSjrr':function(_0x47f408,_0x427696,_0x5870c1){return _0x47f408(_0x427696,_0x5870c1);},'PZmCF':_0x2d79fe(0x1c2),'LbjSj':function(_0xf6ac63,_0x3f089c){return _0xf6ac63===_0x3f089c;},'pmGTD':_0x2d79fe(0x1da),'fvzeu':'unauthorised','dAKwr':_0x2d79fe(0x1f2),'oVEfV':_0x2d79fe(0x1aa)};let _0x297db5;try{!_0x3c5163['gridId']&&(logger[_0x2d79fe(0x1d8)](_0x190eca['alFoy']),process['exit'](0x1));!fs[_0x2d79fe(0x1b7)](_0x190eca[_0x2d79fe(0x1f9)](getCredentialsPath))&&(logger[_0x2d79fe(0x1d8)](_0x190eca['XcAvz']),await _0x190eca[_0x2d79fe(0x1ad)](sendInstrumentationEvent,_0x3c5163,_0x190eca['dULkR'],messageTypes[_0x2d79fe(0x1f7)],_0x190eca[_0x2d79fe(0x1a5)],null,_0x3c5163),process[_0x2d79fe(0x1a6)](0x1));logger[_0x2d79fe(0x1cf)](_0x2d79fe(0x1c9)+_0x3c5163['gridId']),await _0x190eca['WObAw'](sendInstrumentationEvent,_0x3c5163,_0x190eca['dULkR'],messageTypes[_0x2d79fe(0x1f3)],null,null,_0x3c5163);const _0x502bb5=JSON['parse'](fs['readFileSync'](_0x190eca[_0x2d79fe(0x1f9)](getCredentialsPath)));global_registry[_0x2d79fe(0x1ca)]=_0x502bb5[_0x2d79fe(0x1a9)]['username'],global_registry[_0x2d79fe(0x1ea)]=_0x502bb5[_0x2d79fe(0x1a9)]['password'];const _0x3adc0e=WS_ENDPOINT[_0x2d79fe(0x1c4)](_0x190eca[_0x2d79fe(0x1db)],_0x502bb5[_0x2d79fe(0x1a9)][_0x2d79fe(0x1e3)])[_0x2d79fe(0x1c4)](_0x190eca[_0x2d79fe(0x1c3)],_0x502bb5['Browserstack'][_0x2d79fe(0x1d9)]),_0x65e0da={};_0x65e0da[_0x2d79fe(0x1af)]=ws,_0x65e0da['connectionTimeout']=0x36ee80,_0x297db5=new ReconnectingWebSocket(_0x3adc0e,[],_0x65e0da),logger[_0x2d79fe(0x1f1)](_0x190eca[_0x2d79fe(0x1d6)]),webSocketUtils[_0x2d79fe(0x1b5)](_0x297db5,_0x3c5163[_0x2d79fe(0x1f8)],_0x3c5163[_0x2d79fe(0x1d9)]);const [_0xa2c8c4,_0x19eac2]=await _0x190eca[_0x2d79fe(0x1e5)](getGridDetails,_0x502bb5['Browserstack'][_0x2d79fe(0x1e3)],_0x502bb5[_0x2d79fe(0x1a9)][_0x2d79fe(0x1d9)],_0x3c5163['gridId']);if(_0x19eac2){const _0x54eada=_0x19eac2[_0x2d79fe(0x1cf)];global_registry['cloudProvider']=_0x54eada[_0x2d79fe(0x1d2)],global_registry[_0x2d79fe(0x1c1)]=_0x54eada['region'],global_registry[_0x2d79fe(0x1de)]=_0x54eada[_0x2d79fe(0x1de)];const _0x2c16a9=await _0x190eca['RFRSr'](getCloudProviderObject,_0x54eada[_0x2d79fe(0x1d2)],_0x54eada[_0x2d79fe(0x1de)],_0x54eada[_0x2d79fe(0x1d1)],_0x297db5,webSocketUtils,_0x3c5163),[_0x477773,_0x539084,_0x1989b6,_0x5a65af,_0x3e83a8,_0x2bf8ab]=await _0x190eca[_0x2d79fe(0x1a4)](createK8sClient,_0x2c16a9,_0x3c5163['skipTlsCertVerify']);await _0x190eca[_0x2d79fe(0x1ef)](scaleDownHubDeployment,_0x539084,_0x54eada[_0x2d79fe(0x1d1)]),logger['info'](_0x190eca[_0x2d79fe(0x1dd)]),process['exit'](0x0);}_0x190eca[_0x2d79fe(0x1ee)](_0xa2c8c4[_0x2d79fe(0x1b3)],0x191)&&(logger[_0x2d79fe(0x1d8)](_0x190eca[_0x2d79fe(0x1c6)]),await _0x190eca[_0x2d79fe(0x1f5)](sendInstrumentationEvent,_0x3c5163,_0x190eca['dULkR'],messageTypes[_0x2d79fe(0x1f7)],_0x190eca[_0x2d79fe(0x1d5)],null,_0x3c5163),process[_0x2d79fe(0x1a6)](0x1)),_0x190eca['LbjSj'](_0xa2c8c4[_0x2d79fe(0x1b3)],0x190)&&(logger[_0x2d79fe(0x1d8)](JSON['parse'](_0xa2c8c4[_0x2d79fe(0x1a2)])['message']),await _0x190eca[_0x2d79fe(0x1ad)](sendInstrumentationEvent,_0x3c5163,_0x190eca[_0x2d79fe(0x1ec)],messageTypes['ERROR'],_0x190eca[_0x2d79fe(0x1c5)],null,_0x3c5163),process[_0x2d79fe(0x1a6)](0x1)),logger[_0x2d79fe(0x1d8)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2d79fe(0x1b4)](_0xa2c8c4)),await _0x190eca[_0x2d79fe(0x1f5)](sendInstrumentationEvent,_0x3c5163,_0x190eca['dULkR'],messageTypes[_0x2d79fe(0x1f7)],_0x190eca[_0x2d79fe(0x1b6)],_0xa2c8c4,_0x3c5163),process[_0x2d79fe(0x1a6)](0x1);}catch(_0xfea46){const _0x7005a3=_0x2d79fe(0x1e2)+_0xfea46+'\x20\x0a'+JSON[_0x2d79fe(0x1b4)](_0xfea46[_0x2d79fe(0x1e9)])+'\x20';logger[_0x2d79fe(0x1d8)](_0x7005a3),process[_0x2d79fe(0x1a6)](0x1);}};
1
+ const a19_0x51a015=a19_0x1b0b;function a19_0x1b0b(_0x49de22,_0x5be8a7){const _0x53284e=a19_0x5328();return a19_0x1b0b=function(_0x1b0b4c,_0x195741){_0x1b0b4c=_0x1b0b4c-0x127;let _0x2c07f7=_0x53284e[_0x1b0b4c];return _0x2c07f7;},a19_0x1b0b(_0x49de22,_0x5be8a7);}(function(_0x22ff70,_0x505f86){const _0x56412d=a19_0x1b0b,_0x2cbaec=_0x22ff70();while(!![]){try{const _0x5ee929=-parseInt(_0x56412d(0x12a))/0x1*(-parseInt(_0x56412d(0x15d))/0x2)+-parseInt(_0x56412d(0x16c))/0x3*(parseInt(_0x56412d(0x185))/0x4)+-parseInt(_0x56412d(0x16a))/0x5*(-parseInt(_0x56412d(0x131))/0x6)+-parseInt(_0x56412d(0x12e))/0x7+-parseInt(_0x56412d(0x17b))/0x8+-parseInt(_0x56412d(0x164))/0x9+parseInt(_0x56412d(0x141))/0xa;if(_0x5ee929===_0x505f86)break;else _0x2cbaec['push'](_0x2cbaec['shift']());}catch(_0xf25a8c){_0x2cbaec['push'](_0x2cbaec['shift']());}}}(a19_0x5328,0xe4419));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x51a015(0x14b)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require(a19_0x51a015(0x139)),{scaleDownHubDeployment}=require(a19_0x51a015(0x16e)),{sendInstrumentationEvent}=require(a19_0x51a015(0x13f)),webSocketUtils=require(a19_0x51a015(0x150)),{createK8sClient}=require(a19_0x51a015(0x175)),{getCloudProviderObject}=require('../../cloudproviders/utils');function a19_0x5328(){const _0x258547=['24ExlbVk','readFileSync','handler','amPyX','LPcnW','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','../../utils/utilityMethods','server-error','region','QAeMP','boolean','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/instrumentationUtils','command','23914250wlOHlQ','NFtZn','qEIev','skip-tls-cert-verify','options','existsSync','cloudProvider','bstackUsername','grid-id','stop-grid-called','../../config/constants','nUPTy','<UsernamePlaceholder>','EgHrX','stop','../../utils/webSocketUtils','body','builder','clusterName','statusCode','fcLhu','exit','debug','unauthorised','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','Browserstack','DLkEG','rpYxu','2FXtafQ','fCyvD','desc','user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','addListeners','bstackAccesskey','10753173BwQApv','Adding\x20Websocket\x20listeners','Skip\x20insecure\x20cert\x20verification.','YLWWx','type','grid','1350040mAWiRZ','tZNkL','3780uvXaFM','info','../../utils/gridComponents','gridId','<PasswordPlaceholder>','WebSocket','connectionTimeout','stack','tfARM','../../utils/createk8sClient','error','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','username','string','oqVUe','4194784HbggYu','name','INFO','FVobm','description','password','ERROR','replace','kLGpq','XvovE','1568HWOEqo','Stop\x20a\x20running\x20Automation\x20grid.','parse','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','1112424mPNgMa','WCgYW','default','skipTlsCertVerify','10051153JtAQVo','invalid-grid-id','viOuN'];a19_0x5328=function(){return _0x258547;};return a19_0x5328();}exports[a19_0x51a015(0x140)]=a19_0x51a015(0x169),exports[a19_0x51a015(0x15f)]=a19_0x51a015(0x127),exports[a19_0x51a015(0x152)]=function(_0x1b9ded){const _0x2ce92a=a19_0x51a015,_0x3cc1ad={};_0x3cc1ad[_0x2ce92a(0x17e)]=_0x2ce92a(0x129),_0x3cc1ad[_0x2ce92a(0x17a)]=_0x2ce92a(0x179),_0x3cc1ad[_0x2ce92a(0x12b)]=_0x2ce92a(0x166),_0x3cc1ad['tZNkL']=_0x2ce92a(0x13d),_0x3cc1ad[_0x2ce92a(0x15b)]='help';const _0x5af2b8=_0x3cc1ad,_0x31ef71={};_0x31ef71[_0x2ce92a(0x17f)]=_0x5af2b8[_0x2ce92a(0x17e)],_0x31ef71[_0x2ce92a(0x168)]=_0x5af2b8[_0x2ce92a(0x17a)];const _0x535270={};_0x535270[_0x2ce92a(0x17f)]=_0x5af2b8['WCgYW'],_0x535270[_0x2ce92a(0x168)]=_0x5af2b8[_0x2ce92a(0x16b)],_0x535270[_0x2ce92a(0x12c)]=![];const _0x245526={};return _0x245526[_0x2ce92a(0x149)]=_0x31ef71,_0x245526[_0x2ce92a(0x144)]=_0x535270,_0x1b9ded['usage'](HELP_HEADER_MESSAGE[_0x2ce92a(0x14f)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2ce92a(0x145)](_0x245526)['help'](_0x5af2b8[_0x2ce92a(0x15b)])[_0x2ce92a(0x136)];},exports[a19_0x51a015(0x133)]=async function(_0x21689d){const _0x63fb90=a19_0x51a015,_0x2807c5={'LPcnW':_0x63fb90(0x159),'MveFu':function(_0x101a67){return _0x101a67();},'rpYxu':_0x63fb90(0x13e),'YLWWx':function(_0x127074,_0x38946a,_0x223f38,_0x44ec17,_0x3d59cd,_0x33765a,_0xd5dc4){return _0x127074(_0x38946a,_0x223f38,_0x44ec17,_0x3d59cd,_0x33765a,_0xd5dc4);},'EgHrX':_0x63fb90(0x14a),'nUPTy':'init-not-called','NFtZn':function(_0x26ce0e,_0x39a254,_0x1d260a,_0x2a2bad,_0x13e0c6,_0x508d87,_0x10ae81){return _0x26ce0e(_0x39a254,_0x1d260a,_0x2a2bad,_0x13e0c6,_0x508d87,_0x10ae81);},'VhDOg':_0x63fb90(0x14d),'nXyFg':_0x63fb90(0x170),'fcLhu':_0x63fb90(0x165),'qEIev':function(_0x4dae0e,_0x5275f7,_0x5418c9,_0x2a312a){return _0x4dae0e(_0x5275f7,_0x5418c9,_0x2a312a);},'tfARM':function(_0x2c3b89,_0x44e3fa,_0x176f28,_0x588cae,_0x398fc3,_0x4cc723,_0xb0f8f4){return _0x2c3b89(_0x44e3fa,_0x176f28,_0x588cae,_0x398fc3,_0x4cc723,_0xb0f8f4);},'amPyX':function(_0x34714a,_0x808a8f,_0x396bca){return _0x34714a(_0x808a8f,_0x396bca);},'kYZFE':'Grid\x20stoppped.','gthId':function(_0x30fbf6,_0x82a9fb){return _0x30fbf6===_0x82a9fb;},'fCyvD':_0x63fb90(0x161),'QAeMP':function(_0x59c752,_0x2bd11f,_0x558ce7,_0x1b974f,_0x2a1731,_0x52f1a7,_0x403c31){return _0x59c752(_0x2bd11f,_0x558ce7,_0x1b974f,_0x2a1731,_0x52f1a7,_0x403c31);},'kLGpq':_0x63fb90(0x158),'dZsmi':function(_0x289f7f,_0x45e3b7){return _0x289f7f===_0x45e3b7;},'XvovE':function(_0x2cd463,_0x475212,_0x35ff0b,_0x1d3734,_0x59aad7,_0x2bddb9,_0x2a2b28){return _0x2cd463(_0x475212,_0x35ff0b,_0x1d3734,_0x59aad7,_0x2bddb9,_0x2a2b28);},'YDoTV':_0x63fb90(0x12f),'KtaJK':function(_0x418148,_0x418a93,_0x17b1d4,_0x2d09f6,_0x5e09c7,_0x5bf2da,_0x33f50a){return _0x418148(_0x418a93,_0x17b1d4,_0x2d09f6,_0x5e09c7,_0x5bf2da,_0x33f50a);},'viOuN':_0x63fb90(0x13a)};let _0x247526;try{!_0x21689d['gridId']&&(logger[_0x63fb90(0x176)](_0x2807c5[_0x63fb90(0x135)]),process[_0x63fb90(0x156)](0x1));!fs[_0x63fb90(0x146)](_0x2807c5['MveFu'](getCredentialsPath))&&(logger[_0x63fb90(0x176)](_0x2807c5[_0x63fb90(0x15c)]),await _0x2807c5[_0x63fb90(0x167)](sendInstrumentationEvent,_0x21689d,_0x2807c5[_0x63fb90(0x14e)],messageTypes['ERROR'],_0x2807c5[_0x63fb90(0x14c)],null,_0x21689d),process[_0x63fb90(0x156)](0x1));logger[_0x63fb90(0x16d)]('Stopping\x20grid\x20'+_0x21689d[_0x63fb90(0x16f)]),await _0x2807c5[_0x63fb90(0x142)](sendInstrumentationEvent,_0x21689d,_0x2807c5[_0x63fb90(0x14e)],messageTypes[_0x63fb90(0x17d)],null,null,_0x21689d);const _0x152c84=JSON[_0x63fb90(0x128)](fs[_0x63fb90(0x132)](_0x2807c5['MveFu'](getCredentialsPath)));global_registry[_0x63fb90(0x148)]=_0x152c84[_0x63fb90(0x15a)][_0x63fb90(0x178)],global_registry[_0x63fb90(0x163)]=_0x152c84['Browserstack']['password'];const _0x299895=WS_ENDPOINT['replace'](_0x2807c5['VhDOg'],_0x152c84['Browserstack'][_0x63fb90(0x178)])[_0x63fb90(0x182)](_0x2807c5['nXyFg'],_0x152c84[_0x63fb90(0x15a)][_0x63fb90(0x180)]),_0x13b8b9={};_0x13b8b9[_0x63fb90(0x171)]=ws,_0x13b8b9[_0x63fb90(0x172)]=0x36ee80,_0x247526=new ReconnectingWebSocket(_0x299895,[],_0x13b8b9),logger[_0x63fb90(0x157)](_0x2807c5[_0x63fb90(0x155)]),webSocketUtils[_0x63fb90(0x162)](_0x247526,_0x21689d[_0x63fb90(0x160)],_0x21689d[_0x63fb90(0x180)]);const [_0x50b6f6,_0x1cc614]=await _0x2807c5[_0x63fb90(0x143)](getGridDetails,_0x152c84['Browserstack'][_0x63fb90(0x178)],_0x152c84[_0x63fb90(0x15a)][_0x63fb90(0x180)],_0x21689d[_0x63fb90(0x16f)]);if(_0x1cc614){const _0x465ed0=_0x1cc614[_0x63fb90(0x16d)];global_registry[_0x63fb90(0x147)]=_0x465ed0['cloudProvider'],global_registry['clusterRegion']=_0x465ed0[_0x63fb90(0x13b)],global_registry[_0x63fb90(0x153)]=_0x465ed0[_0x63fb90(0x153)];const _0x2b78f4=await _0x2807c5[_0x63fb90(0x174)](getCloudProviderObject,_0x465ed0[_0x63fb90(0x147)],_0x465ed0[_0x63fb90(0x153)],_0x465ed0[_0x63fb90(0x17c)],_0x247526,webSocketUtils,_0x21689d),[_0x287557,_0x19ae10,_0x402258,_0x48ac9c,_0x51c1af,_0x200bac]=await _0x2807c5['amPyX'](createK8sClient,_0x2b78f4,_0x21689d[_0x63fb90(0x12d)]);await _0x2807c5[_0x63fb90(0x134)](scaleDownHubDeployment,_0x19ae10,_0x465ed0[_0x63fb90(0x17c)]),logger[_0x63fb90(0x16d)](_0x2807c5['kYZFE']),process[_0x63fb90(0x156)](0x0);}_0x2807c5['gthId'](_0x50b6f6[_0x63fb90(0x154)],0x191)&&(logger[_0x63fb90(0x176)](_0x2807c5[_0x63fb90(0x15e)]),await _0x2807c5[_0x63fb90(0x13c)](sendInstrumentationEvent,_0x21689d,_0x2807c5['EgHrX'],messageTypes[_0x63fb90(0x181)],_0x2807c5[_0x63fb90(0x183)],null,_0x21689d),process[_0x63fb90(0x156)](0x1)),_0x2807c5['dZsmi'](_0x50b6f6[_0x63fb90(0x154)],0x190)&&(logger[_0x63fb90(0x176)](JSON[_0x63fb90(0x128)](_0x50b6f6[_0x63fb90(0x151)])['message']),await _0x2807c5[_0x63fb90(0x184)](sendInstrumentationEvent,_0x21689d,_0x2807c5[_0x63fb90(0x14e)],messageTypes[_0x63fb90(0x181)],_0x2807c5['YDoTV'],null,_0x21689d),process[_0x63fb90(0x156)](0x1)),logger['error'](_0x63fb90(0x137)+JSON[_0x63fb90(0x138)](_0x50b6f6)),await _0x2807c5['KtaJK'](sendInstrumentationEvent,_0x21689d,_0x2807c5[_0x63fb90(0x14e)],messageTypes[_0x63fb90(0x181)],_0x2807c5[_0x63fb90(0x130)],_0x50b6f6,_0x21689d),process[_0x63fb90(0x156)](0x1);}catch(_0x2b1b7b){const _0x215426=_0x63fb90(0x177)+_0x2b1b7b+'\x20\x0a'+JSON[_0x63fb90(0x138)](_0x2b1b7b[_0x63fb90(0x173)])+'\x20';logger[_0x63fb90(0x176)](_0x215426),process[_0x63fb90(0x156)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x1521d7=a20_0x66ee;(function(_0x524e30,_0x658c8d){const _0x169648=a20_0x66ee,_0x171eb1=_0x524e30();while(!![]){try{const _0x4837c7=-parseInt(_0x169648(0x1be))/0x1+-parseInt(_0x169648(0x1cf))/0x2*(parseInt(_0x169648(0x1cb))/0x3)+parseInt(_0x169648(0x1b0))/0x4*(parseInt(_0x169648(0x1a0))/0x5)+-parseInt(_0x169648(0x19a))/0x6*(parseInt(_0x169648(0x1d7))/0x7)+-parseInt(_0x169648(0x1a9))/0x8*(-parseInt(_0x169648(0x1b1))/0x9)+parseInt(_0x169648(0x1d8))/0xa+parseInt(_0x169648(0x1db))/0xb;if(_0x4837c7===_0x658c8d)break;else _0x171eb1['push'](_0x171eb1['shift']());}catch(_0x36e40b){_0x171eb1['push'](_0x171eb1['shift']());}}}(a20_0x4cf6,0x3c106),require(a20_0x1521d7(0x18e))[a20_0x1521d7(0x1de)](),exports[a20_0x1521d7(0x1bc)]=process[a20_0x1521d7(0x1c2)][a20_0x1521d7(0x1bc)]||a20_0x1521d7(0x1bf),exports[a20_0x1521d7(0x1d2)]=process['env'][a20_0x1521d7(0x1d2)]||a20_0x1521d7(0x19f),exports[a20_0x1521d7(0x1da)]=process[a20_0x1521d7(0x1c2)]['AG_API_URL']||a20_0x1521d7(0x1b5),exports[a20_0x1521d7(0x185)]=a20_0x1521d7(0x1c5)+this['AG_API_URL']+a20_0x1521d7(0x184),exports[a20_0x1521d7(0x1c9)]=a20_0x1521d7(0x1a4),exports[a20_0x1521d7(0x186)]=a20_0x1521d7(0x199),exports[a20_0x1521d7(0x188)]=a20_0x1521d7(0x1dc),exports['AWS']=a20_0x1521d7(0x1a7),exports['CLUSTER_DEP_STACK_NAME']=a20_0x1521d7(0x197),exports[a20_0x1521d7(0x19c)]=a20_0x1521d7(0x19e),exports[a20_0x1521d7(0x196)]=a20_0x1521d7(0x1ac),exports[a20_0x1521d7(0x18c)]=a20_0x1521d7(0x1d0),exports[a20_0x1521d7(0x1af)]=a20_0x1521d7(0x19d));const a20_0x1dbbc0={};a20_0x1dbbc0[a20_0x1521d7(0x1b2)]=a20_0x1521d7(0x1aa),a20_0x1dbbc0[a20_0x1521d7(0x1b8)]='BrowserStack';const a20_0x121a72={};a20_0x121a72['Key']=a20_0x1521d7(0x193),a20_0x121a72[a20_0x1521d7(0x1b8)]=a20_0x1521d7(0x1d4);const common_hst_tags_list=[a20_0x1dbbc0,a20_0x121a72];function a20_0x66ee(_0x33b75d,_0x1e7b31){const _0x4cf639=a20_0x4cf6();return a20_0x66ee=function(_0x66ee73,_0x46125d){_0x66ee73=_0x66ee73-0x182;let _0x1070e9=_0x4cf639[_0x66ee73];return _0x1070e9;},a20_0x66ee(_0x33b75d,_0x1e7b31);}if(process['env']['TURBOSCALE_CUSTOM_TAGS']){const parsedTags=process[a20_0x1521d7(0x1c2)][a20_0x1521d7(0x1ab)]['split'](',');parsedTags['forEach'](_0x548e59=>{const _0x4b6d2d=a20_0x1521d7,_0x270f23=_0x548e59[_0x4b6d2d(0x1a5)](':'),_0x36e023={};_0x36e023[_0x4b6d2d(0x1b2)]=_0x270f23[0x0],_0x36e023['Value']=_0x270f23[0x1],common_hst_tags_list[_0x4b6d2d(0x1d6)](_0x36e023);});}exports[a20_0x1521d7(0x1d3)]=common_hst_tags_list;const a20_0x35cc68={};a20_0x35cc68['browserstack:managedBy']=a20_0x1521d7(0x1c0),a20_0x35cc68[a20_0x1521d7(0x193)]=a20_0x1521d7(0x1d4),exports[a20_0x1521d7(0x1ae)]=a20_0x35cc68,exports[a20_0x1521d7(0x1c3)]=[this[a20_0x1521d7(0x1d1)]];const a20_0x8eb260={};a20_0x8eb260[a20_0x1521d7(0x189)]=a20_0x1521d7(0x18a),a20_0x8eb260[a20_0x1521d7(0x1c4)]='resourceInfo',a20_0x8eb260[a20_0x1521d7(0x183)]='gridUrl',a20_0x8eb260[a20_0x1521d7(0x195)]='cliRunStarted',a20_0x8eb260[a20_0x1521d7(0x1bd)]=a20_0x1521d7(0x1ba),exports['WS_EVENTS']=a20_0x8eb260,exports[a20_0x1521d7(0x1a8)]={},exports['LINK_MESSAGE']=a20_0x1521d7(0x1c6);function a20_0x4cf6(){const _0x28c0d9=['create','AG_API_URL','1343001ZcNOqo','high-scale-grid','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','config','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','GRID_URL','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','WS_ENDPOINT','IAM_USER_NAME','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','DEFAULT_GRID_NAME','LOG','log','configure','AZURE','SUCCESS','dotenv','root','HELP_FOOTER_MESSAGE','delete','unknown','browserstack:service','NULL','CLI_RUN_STARTED','TURBOSCALE_DEPLOYMENT','BSTACK-ATS-CLUSTER','LINK_MESSAGE','BrowserStackIAMUser','6bySnrB','HELP_HEADER_MESSAGE','CLUSTER_AUTOSCALER_STACK_NAME','gcp','BSTACK-ATS-CLUSTER-AUTOSCALER','api.browserstack.com','5QOFavX','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','gridProfile','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','credentials','split','INFO','aws','global_registry','8gJJLBI','browserstack:managedBy','TURBOSCALE_CUSTOM_TAGS','browserstack-turboscale-grid','info','HST_CLUSTER_TAGS','GCP','1304612Heholp','1665315dRhkqf','Key','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','init','grid-api.browserstack.com','stop','connect','Value','[REDACTED]','cliRunFinished','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','DASHBOARD_ENDPOINT','CLI_RUN_FINISHED','234213xWYExp','grid.browserstack.com','BrowserStack','RAW_ARGS_REGEX','env','SUPPORTED_CLOUD_PROVIDERS','RESOURCES','wss://','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','REDACTED','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','CP_CONFIG_FILE','UNKNOWN','1662DXigsA','list','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','CLI_ARGS_REGEX','802LPofYo','azure','AWS','BS_API_URL','COMMON_HST_TAGS','BrowserStack-Automate-TurboScale','error','push','1460207vBfZyx','2777110RYyvbB'];a20_0x4cf6=function(){return _0x28c0d9;};return a20_0x4cf6();}const a20_0x1e77e9={};a20_0x1e77e9[a20_0x1521d7(0x18f)]=a20_0x1521d7(0x187)+this[a20_0x1521d7(0x198)],a20_0x1e77e9[a20_0x1521d7(0x1b4)]=a20_0x1521d7(0x1cd)+this['LINK_MESSAGE'],a20_0x1e77e9[a20_0x1521d7(0x18b)]=a20_0x1521d7(0x1c8)+this[a20_0x1521d7(0x198)],a20_0x1e77e9[a20_0x1521d7(0x1d9)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this['LINK_MESSAGE'],a20_0x1e77e9[a20_0x1521d7(0x1cc)]={},a20_0x1e77e9[a20_0x1521d7(0x191)]=a20_0x1521d7(0x1a3)+this[a20_0x1521d7(0x198)],a20_0x1e77e9[a20_0x1521d7(0x1b7)]=a20_0x1521d7(0x1bb)+this[a20_0x1521d7(0x198)],a20_0x1e77e9['start']=a20_0x1521d7(0x182)+this['LINK_MESSAGE'],a20_0x1e77e9[a20_0x1521d7(0x1b6)]=a20_0x1521d7(0x1dd)+this[a20_0x1521d7(0x198)],a20_0x1e77e9[a20_0x1521d7(0x1cc)][a20_0x1521d7(0x18f)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a20_0x1521d7(0x198)],a20_0x1e77e9[a20_0x1521d7(0x1cc)]['grid']=a20_0x1521d7(0x1b3)+this[a20_0x1521d7(0x198)],a20_0x1e77e9[a20_0x1521d7(0x1cc)][a20_0x1521d7(0x1a2)]=a20_0x1521d7(0x1a1)+this[a20_0x1521d7(0x198)],exports[a20_0x1521d7(0x19b)]=a20_0x1e77e9,exports[a20_0x1521d7(0x190)]='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a20_0x4ef9b5={};a20_0x4ef9b5[a20_0x1521d7(0x18d)]='success',a20_0x4ef9b5['ERROR']=a20_0x1521d7(0x1d5),a20_0x4ef9b5[a20_0x1521d7(0x1a6)]=a20_0x1521d7(0x1ad),a20_0x4ef9b5['WARNING']='warning',a20_0x4ef9b5[a20_0x1521d7(0x1ca)]=a20_0x1521d7(0x192),a20_0x4ef9b5[a20_0x1521d7(0x194)]=null,exports['messageTypes']=a20_0x4ef9b5,exports[a20_0x1521d7(0x1ce)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x1521d7(0x1c1)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x1521d7(0x1c7)]=a20_0x1521d7(0x1b9);
1
+ const a20_0x125a13=a20_0x4d79;(function(_0x1b2389,_0x17c613){const _0x3b669d=a20_0x4d79,_0x27e82f=_0x1b2389();while(!![]){try{const _0x43a506=-parseInt(_0x3b669d(0x10a))/0x1+parseInt(_0x3b669d(0x109))/0x2+parseInt(_0x3b669d(0x113))/0x3*(parseInt(_0x3b669d(0xe6))/0x4)+parseInt(_0x3b669d(0x10e))/0x5*(parseInt(_0x3b669d(0x11c))/0x6)+parseInt(_0x3b669d(0x11b))/0x7+-parseInt(_0x3b669d(0xe3))/0x8*(-parseInt(_0x3b669d(0xf7))/0x9)+-parseInt(_0x3b669d(0x114))/0xa*(parseInt(_0x3b669d(0x10f))/0xb);if(_0x43a506===_0x17c613)break;else _0x27e82f['push'](_0x27e82f['shift']());}catch(_0x36d532){_0x27e82f['push'](_0x27e82f['shift']());}}}(a20_0x1b5a,0x46f3a),require(a20_0x125a13(0xf5))['config'](),exports[a20_0x125a13(0xe8)]=process[a20_0x125a13(0xdc)]['DASHBOARD_ENDPOINT']||a20_0x125a13(0x107),exports[a20_0x125a13(0xe0)]=process['env'][a20_0x125a13(0xe0)]||'api.browserstack.com',exports[a20_0x125a13(0xf1)]=process['env'][a20_0x125a13(0xf1)]||'grid-api.browserstack.com',exports['WS_ENDPOINT']=a20_0x125a13(0x118)+this['AG_API_URL']+'/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>',exports['CP_CONFIG_FILE']='credentials',exports[a20_0x125a13(0x106)]='BrowserStackIAMUser',exports[a20_0x125a13(0x11f)]=a20_0x125a13(0x105),exports['AWS']='aws',exports[a20_0x125a13(0x11e)]='BSTACK-ATS-CLUSTER',exports[a20_0x125a13(0x111)]=a20_0x125a13(0x115),exports[a20_0x125a13(0x11a)]=a20_0x125a13(0xf8),exports['TURBOSCALE_DEPLOYMENT']=a20_0x125a13(0xf9),exports[a20_0x125a13(0xeb)]=a20_0x125a13(0xf3),exports[a20_0x125a13(0x116)]=a20_0x125a13(0xd8));const a20_0x5947db={};a20_0x5947db[a20_0x125a13(0x120)]='browserstack:managedBy',a20_0x5947db[a20_0x125a13(0x12a)]=a20_0x125a13(0x126);const a20_0x2511e1={};a20_0x2511e1[a20_0x125a13(0x120)]=a20_0x125a13(0xfd),a20_0x2511e1[a20_0x125a13(0x12a)]=a20_0x125a13(0x123);const common_hst_tags_list=[a20_0x5947db,a20_0x2511e1];if(process[a20_0x125a13(0xdc)][a20_0x125a13(0x125)]){const parsedTags=process[a20_0x125a13(0xdc)][a20_0x125a13(0x125)]['split'](',');parsedTags[a20_0x125a13(0xf4)](_0x84dd63=>{const _0x171e3b=a20_0x125a13,_0x5e8e2b=_0x84dd63['split'](':'),_0x497f3d={};_0x497f3d[_0x171e3b(0x120)]=_0x5e8e2b[0x0],_0x497f3d['Value']=_0x5e8e2b[0x1],common_hst_tags_list[_0x171e3b(0x10d)](_0x497f3d);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a20_0x1fb980={};a20_0x1fb980['browserstack:managedBy']=a20_0x125a13(0x126),a20_0x1fb980[a20_0x125a13(0xfd)]='BrowserStack-Automate-TurboScale',exports[a20_0x125a13(0xe9)]=a20_0x1fb980,exports[a20_0x125a13(0x124)]=[this[a20_0x125a13(0x101)]];const a20_0x979591={};a20_0x979591['LOG']=a20_0x125a13(0xe5),a20_0x979591[a20_0x125a13(0xfa)]=a20_0x125a13(0x100),a20_0x979591[a20_0x125a13(0x122)]=a20_0x125a13(0xf0),a20_0x979591[a20_0x125a13(0xff)]=a20_0x125a13(0x104),a20_0x979591[a20_0x125a13(0xe7)]='cliRunFinished',exports[a20_0x125a13(0x110)]=a20_0x979591,exports[a20_0x125a13(0xee)]={},exports[a20_0x125a13(0x103)]=a20_0x125a13(0x119);const a20_0x1419b4={};a20_0x1419b4[a20_0x125a13(0xfc)]=a20_0x125a13(0xd7)+this['LINK_MESSAGE'],a20_0x1419b4['init']=a20_0x125a13(0xdd)+this['LINK_MESSAGE'],a20_0x1419b4['configure']=a20_0x125a13(0xdb)+this[a20_0x125a13(0x103)],a20_0x1419b4['create']=a20_0x125a13(0xde)+this['LINK_MESSAGE'],a20_0x1419b4[a20_0x125a13(0xfe)]={},a20_0x1419b4[a20_0x125a13(0x121)]=a20_0x125a13(0xed)+this['LINK_MESSAGE'],a20_0x1419b4[a20_0x125a13(0x128)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this['LINK_MESSAGE'],a20_0x1419b4[a20_0x125a13(0xe4)]=a20_0x125a13(0xd9)+this[a20_0x125a13(0x103)],a20_0x1419b4[a20_0x125a13(0x117)]='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a20_0x125a13(0x103)],a20_0x1419b4[a20_0x125a13(0xfe)][a20_0x125a13(0xfc)]=a20_0x125a13(0x129)+this[a20_0x125a13(0x103)],a20_0x1419b4[a20_0x125a13(0xfe)]['grid']=a20_0x125a13(0xe2)+this[a20_0x125a13(0x103)],a20_0x1419b4[a20_0x125a13(0xfe)][a20_0x125a13(0x10c)]=a20_0x125a13(0xfb)+this[a20_0x125a13(0x103)],exports['HELP_HEADER_MESSAGE']=a20_0x1419b4,exports['HELP_FOOTER_MESSAGE']=a20_0x125a13(0xd6);function a20_0x1b5a(){const _0x1dfb46=['\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','INFO','BS_API_URL','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','3816bPHyUW','start','log','20pmDfLB','CLI_RUN_FINISHED','DASHBOARD_ENDPOINT','HST_CLUSTER_TAGS','error','AZURE','REDACTED','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','global_registry','SUCCESS','gridUrl','AG_API_URL','NULL','azure','forEach','dotenv','ERROR','9837GbZcUr','BSTACK-ATS-CLUSTER-HUB-HA','browserstack-turboscale-grid','RESOURCES','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','root','browserstack:service','list','CLI_RUN_STARTED','resourceInfo','AWS','CLI_ARGS_REGEX','LINK_MESSAGE','cliRunStarted','high-scale-grid','IAM_USER_NAME','grid.browserstack.com','[REDACTED]','365004wmLhuW','123507KNPrNd','success','gridProfile','push','1522685JllLas','649EXKmhI','WS_EVENTS','CLUSTER_AUTOSCALER_STACK_NAME','warning','9681ZfGnEz','106410GOYfpB','BSTACK-ATS-CLUSTER-AUTOSCALER','GCP','stop','wss://','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','CLUSTER_HUB_HA_STACK_NAME','121863bqVlDU','6KstopF','messageTypes','CLUSTER_DEP_STACK_NAME','DEFAULT_GRID_NAME','Key','delete','GRID_URL','BrowserStack-Automate-TurboScale','SUPPORTED_CLOUD_PROVIDERS','TURBOSCALE_CUSTOM_TAGS','BrowserStack','WARNING','connect','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','Value','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','gcp','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','UNKNOWN','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','env'];a20_0x1b5a=function(){return _0x1dfb46;};return a20_0x1b5a();}function a20_0x4d79(_0xe5407d,_0x2d96eb){const _0x1b5a54=a20_0x1b5a();return a20_0x4d79=function(_0x4d79ea,_0x507717){_0x4d79ea=_0x4d79ea-0xd6;let _0x5b139d=_0x1b5a54[_0x4d79ea];return _0x5b139d;},a20_0x4d79(_0xe5407d,_0x2d96eb);}const a20_0x56080c={};a20_0x56080c[a20_0x125a13(0xef)]=a20_0x125a13(0x10b),a20_0x56080c[a20_0x125a13(0xf6)]=a20_0x125a13(0xea),a20_0x56080c[a20_0x125a13(0xdf)]='info',a20_0x56080c[a20_0x125a13(0x127)]=a20_0x125a13(0x112),a20_0x56080c[a20_0x125a13(0xda)]='unknown',a20_0x56080c[a20_0x125a13(0xf2)]=null,exports[a20_0x125a13(0x11d)]=a20_0x56080c,exports[a20_0x125a13(0x102)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x125a13(0xe1)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x125a13(0xec)]=a20_0x125a13(0x108);
@@ -1 +1 @@
1
- const a21_0x33da96=a21_0x165b;(function(_0x30821f,_0x5edc11){const _0x15c638=a21_0x165b,_0x40afd6=_0x30821f();while(!![]){try{const _0x39e9b8=parseInt(_0x15c638(0x134))/0x1*(-parseInt(_0x15c638(0x13e))/0x2)+-parseInt(_0x15c638(0x137))/0x3+parseInt(_0x15c638(0x141))/0x4+parseInt(_0x15c638(0x144))/0x5+parseInt(_0x15c638(0x152))/0x6+parseInt(_0x15c638(0x151))/0x7*(parseInt(_0x15c638(0x14a))/0x8)+parseInt(_0x15c638(0x145))/0x9*(-parseInt(_0x15c638(0x138))/0xa);if(_0x39e9b8===_0x5edc11)break;else _0x40afd6['push'](_0x40afd6['shift']());}catch(_0x3f5efe){_0x40afd6['push'](_0x40afd6['shift']());}}}(a21_0x5185,0x41b0d));const winston=require(a21_0x33da96(0x14e)),fs=require('fs'),path=require(a21_0x33da96(0x13d)),logDir=a21_0x33da96(0x153);!fs[a21_0x33da96(0x13b)](logDir)&&fs[a21_0x33da96(0x139)](logDir);const a21_0x1131ce={};a21_0x1131ce[a21_0x33da96(0x143)]=a21_0x33da96(0x150);function a21_0x165b(_0x452072,_0x505fd5){const _0x518559=a21_0x5185();return a21_0x165b=function(_0x165bc7,_0xeff6d4){_0x165bc7=_0x165bc7-0x134;let _0x309d86=_0x518559[_0x165bc7];return _0x309d86;},a21_0x165b(_0x452072,_0x505fd5);}const a21_0x470f5b={};a21_0x470f5b[a21_0x33da96(0x14f)]=!![];const a21_0x2b6507={};function a21_0x5185(){const _0x4472aa=['9lQJRIa','combine','fileLogger','printf','Console','48dlmYzY','timestamp','debug','createLogger','winston','level','YYYY-MM-DD\x20HH:mm:ss','147112KhgDAF','185142jYFUVG','log','167koHAmv','transports','File','714087Ixbapn','21610LFtfRG','mkdirSync','message','existsSync','name','path','3548McYmlo','join','\x20-\x20','1225380QXDrKQ','usage.log','format','1711095hlhAHJ'];a21_0x5185=function(){return _0x4472aa;};return a21_0x5185();}a21_0x2b6507[a21_0x33da96(0x13c)]='console.info',exports['logger']=new winston[(a21_0x33da96(0x14d))]({'format':winston['format'][a21_0x33da96(0x146)](winston[a21_0x33da96(0x143)]['timestamp'](a21_0x1131ce),winston[a21_0x33da96(0x143)]['colorize'](a21_0x470f5b),winston[a21_0x33da96(0x143)][a21_0x33da96(0x148)](_0x232eca=>_0x232eca[a21_0x33da96(0x14b)]+a21_0x33da96(0x140)+_0x232eca[a21_0x33da96(0x14f)]+':\x20'+_0x232eca[a21_0x33da96(0x13a)])),'transports':[new winston[(a21_0x33da96(0x135))][(a21_0x33da96(0x149))](a21_0x2b6507),new winston[(a21_0x33da96(0x135))][(a21_0x33da96(0x136))]({'filename':path[a21_0x33da96(0x13f)](logDir,'events.log'),'level':a21_0x33da96(0x14c)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x33da96(0x135))]['File']({'filename':path[a21_0x33da96(0x13f)](logDir,a21_0x33da96(0x142)),'level':a21_0x33da96(0x14c)})]};exports[a21_0x33da96(0x147)]=new winston[(a21_0x33da96(0x14d))](winstonFileLoggerParams);
1
+ const a21_0x3356b5=a21_0x22c0;(function(_0x2c1a24,_0x1acfba){const _0x3c76be=a21_0x22c0,_0x33d3cb=_0x2c1a24();while(!![]){try{const _0x592888=parseInt(_0x3c76be(0x1ad))/0x1+-parseInt(_0x3c76be(0x1b4))/0x2+parseInt(_0x3c76be(0x1b2))/0x3*(-parseInt(_0x3c76be(0x1b6))/0x4)+-parseInt(_0x3c76be(0x1bf))/0x5*(parseInt(_0x3c76be(0x1b7))/0x6)+parseInt(_0x3c76be(0x1c2))/0x7*(-parseInt(_0x3c76be(0x1bc))/0x8)+parseInt(_0x3c76be(0x1af))/0x9+parseInt(_0x3c76be(0x1ca))/0xa;if(_0x592888===_0x1acfba)break;else _0x33d3cb['push'](_0x33d3cb['shift']());}catch(_0x4d606f){_0x33d3cb['push'](_0x33d3cb['shift']());}}}(a21_0x4ac7,0x6f2da));const winston=require(a21_0x3356b5(0x1b9)),fs=require('fs'),path=require(a21_0x3356b5(0x1b8)),logDir=a21_0x3356b5(0x1c9);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a21_0x4cc043={};a21_0x4cc043[a21_0x3356b5(0x1ae)]=a21_0x3356b5(0x1c7);const a21_0x271672={};a21_0x271672[a21_0x3356b5(0x1c3)]=!![];function a21_0x4ac7(){const _0x4734b1=['console.info','42FToYfp','level','debug','printf','name','YYYY-MM-DD\x20HH:mm:ss','transports','log','23224810fPcuve','message','usage.log','77870wbmfWd','format','3372075bwSQcT','logger','combine','2913OgwjJv','join','1449910noCcCc','createLogger','1784dlsxwI','3841926MKFsft','path','winston','File','timestamp','695064rWtRCR','fileLogger','events.log','5eicJOW','Console'];a21_0x4ac7=function(){return _0x4734b1;};return a21_0x4ac7();}function a21_0x22c0(_0x327c62,_0x523817){const _0x4ac745=a21_0x4ac7();return a21_0x22c0=function(_0x22c01e,_0x12382f){_0x22c01e=_0x22c01e-0x1ad;let _0x2d0ab8=_0x4ac745[_0x22c01e];return _0x2d0ab8;},a21_0x22c0(_0x327c62,_0x523817);}const a21_0x5af5b8={};a21_0x5af5b8[a21_0x3356b5(0x1c6)]=a21_0x3356b5(0x1c1),exports[a21_0x3356b5(0x1b0)]=new winston[(a21_0x3356b5(0x1b5))]({'format':winston[a21_0x3356b5(0x1ae)][a21_0x3356b5(0x1b1)](winston[a21_0x3356b5(0x1ae)]['timestamp'](a21_0x4cc043),winston['format']['colorize'](a21_0x271672),winston[a21_0x3356b5(0x1ae)][a21_0x3356b5(0x1c5)](_0x120f88=>_0x120f88[a21_0x3356b5(0x1bb)]+'\x20-\x20'+_0x120f88[a21_0x3356b5(0x1c3)]+':\x20'+_0x120f88[a21_0x3356b5(0x1cb)])),'transports':[new winston[(a21_0x3356b5(0x1c8))][(a21_0x3356b5(0x1c0))](a21_0x5af5b8),new winston[(a21_0x3356b5(0x1c8))][(a21_0x3356b5(0x1ba))]({'filename':path[a21_0x3356b5(0x1b3)](logDir,a21_0x3356b5(0x1be)),'level':a21_0x3356b5(0x1c4)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x3356b5(0x1c8))][(a21_0x3356b5(0x1ba))]({'filename':path[a21_0x3356b5(0x1b3)](logDir,a21_0x3356b5(0x1cc)),'level':a21_0x3356b5(0x1c4)})]};exports[a21_0x3356b5(0x1bd)]=new winston['createLogger'](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0x35ffcb=a22_0x5a5e;(function(_0x2d0f95,_0xfefa92){const _0x35b7ee=a22_0x5a5e,_0x57ef0d=_0x2d0f95();while(!![]){try{const _0x4d8330=-parseInt(_0x35b7ee(0xa3))/0x1*(-parseInt(_0x35b7ee(0xa7))/0x2)+-parseInt(_0x35b7ee(0x9f))/0x3*(parseInt(_0x35b7ee(0x9c))/0x4)+-parseInt(_0x35b7ee(0xad))/0x5+-parseInt(_0x35b7ee(0xa4))/0x6*(parseInt(_0x35b7ee(0xac))/0x7)+-parseInt(_0x35b7ee(0xb0))/0x8+-parseInt(_0x35b7ee(0xa1))/0x9*(parseInt(_0x35b7ee(0xa0))/0xa)+parseInt(_0x35b7ee(0xab))/0xb;if(_0x4d8330===_0xfefa92)break;else _0x57ef0d['push'](_0x57ef0d['shift']());}catch(_0x2358f8){_0x57ef0d['push'](_0x57ef0d['shift']());}}}(a22_0x598c,0x5b0c6));function a22_0x5a5e(_0x294a40,_0x4464c7){const _0x598cd7=a22_0x598c();return a22_0x5a5e=function(_0x5a5e24,_0x19ad5c){_0x5a5e24=_0x5a5e24-0x9c;let _0x210491=_0x598cd7[_0x5a5e24];return _0x210491;},a22_0x5a5e(_0x294a40,_0x4464c7);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');function a22_0x598c(){const _0x936fb4=['root','523269BZydgD','30ZbvNOt','1515123UOFgkX','commandDir','661wiWpZy','6djrHNd','cMBHR','env','632WOhXhv','demandCommand','exports','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','27936777Grmrnl','3979766muUaJW','3566655CRTdoF','epilogue','usage','523760NnHsvT','12hwhLVJ','qZmjg'];a22_0x598c=function(){return _0x936fb4;};return a22_0x598c();}process[a22_0x35ffcb(0xa6)][a22_0x35ffcb(0xaa)]=0x1;function run(_0x30c3e6){const _0x3024a5=a22_0x35ffcb,_0x13a9e1={};_0x13a9e1[_0x3024a5(0x9d)]='commands',_0x13a9e1['cMBHR']='help';const _0x49e1db=_0x13a9e1;_0x30c3e6[_0x3024a5(0xaf)](HELP_HEADER_MESSAGE[_0x3024a5(0x9e)])[_0x3024a5(0xa2)](_0x49e1db[_0x3024a5(0x9d)])[_0x3024a5(0xa8)]()['help'](_0x49e1db[_0x3024a5(0xa5)])[_0x3024a5(0xae)](HELP_FOOTER_MESSAGE);}module[a22_0x35ffcb(0xa9)]=run;
2
+ 'use strict';const a22_0x4e6805=a22_0xc07e;(function(_0x33b3be,_0x343614){const _0x3a91b8=a22_0xc07e,_0x1cdaa5=_0x33b3be();while(!![]){try{const _0x2f459c=-parseInt(_0x3a91b8(0xc3))/0x1+-parseInt(_0x3a91b8(0xc6))/0x2*(parseInt(_0x3a91b8(0xc1))/0x3)+parseInt(_0x3a91b8(0xd0))/0x4+parseInt(_0x3a91b8(0xce))/0x5+parseInt(_0x3a91b8(0xc8))/0x6*(parseInt(_0x3a91b8(0xcc))/0x7)+-parseInt(_0x3a91b8(0xc9))/0x8+-parseInt(_0x3a91b8(0xc5))/0x9*(-parseInt(_0x3a91b8(0xd5))/0xa);if(_0x2f459c===_0x343614)break;else _0x1cdaa5['push'](_0x1cdaa5['shift']());}catch(_0x1733b1){_0x1cdaa5['push'](_0x1cdaa5['shift']());}}}(a22_0x15c9,0xa8cef));function a22_0xc07e(_0x24abe5,_0x5b7142){const _0x15c913=a22_0x15c9();return a22_0xc07e=function(_0xc07eb3,_0x23267b){_0xc07eb3=_0xc07eb3-0xc1;let _0x50e3d8=_0x15c913[_0xc07eb3];return _0x50e3d8;},a22_0xc07e(_0x24abe5,_0x5b7142);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x4e6805(0xcd));process['env'][a22_0x4e6805(0xca)]=0x1;function run(_0x4d66db){const _0x164605=a22_0x4e6805,_0x19b7f8={};_0x19b7f8[_0x164605(0xc2)]=_0x164605(0xcb),_0x19b7f8[_0x164605(0xd2)]=_0x164605(0xcf);const _0x3f7a4b=_0x19b7f8;_0x4d66db['usage'](HELP_HEADER_MESSAGE[_0x164605(0xc7)])[_0x164605(0xd3)](_0x3f7a4b[_0x164605(0xc2)])[_0x164605(0xd1)]()[_0x164605(0xcf)](_0x3f7a4b[_0x164605(0xd2)])[_0x164605(0xc4)](HELP_FOOTER_MESSAGE);}module[a22_0x4e6805(0xd4)]=run;function a22_0x15c9(){const _0x3dbaad=['BHPFm','commandDir','exports','2210oZoqHC','1032FjgefJ','UBNmh','729495fzHHOT','epilogue','49221KSeCol','4782BREWxu','root','1092JJlAKF','826528aqqtej','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','commands','14672IpTRBk','./config/constants','3623535nuetBo','help','127704GlndcO','demandCommand'];a22_0x15c9=function(){return _0x3dbaad;};return a22_0x15c9();}
@@ -0,0 +1,10 @@
1
+ apiVersion: v1
2
+ kind: Secret
3
+ metadata:
4
+ name: browserstack-secret
5
+ namespace: <GridNamespace>
6
+ data:
7
+ redis-password: <RedisClientPassword>
8
+ kafka-password: <KafkaClientPassword>
9
+ bstack-username: <BstackUsername>
10
+ bstack-accesskey: <BstackAccessKey>
@@ -35,9 +35,15 @@ spec:
35
35
  - name: K8S_NAMESPACE
36
36
  value: "<GridNamespace>"
37
37
  - name: BSTACK_USERNAME
38
- value: "<BstackUsername>"
38
+ valueFrom:
39
+ secretKeyRef:
40
+ name: browserstack-secret
41
+ key: bstack-username
39
42
  - name: BSTACK_ACCESSKEY
40
- value: "<BstackAccessKey>"
43
+ valueFrom:
44
+ secretKeyRef:
45
+ name: browserstack-secret
46
+ key: bstack-accesskey
41
47
  - name: GRID_NAME
42
48
  value: "<GridName>"
43
49
  - name: GRID_PROFILE
@@ -54,6 +60,22 @@ spec:
54
60
  value: "NodePort"
55
61
  - name: PLAYWRIGHT_VERSION
56
62
  value: "1.37.1"
63
+ - name: HA_ENABLED
64
+ value: "<EnableHubHa>"
65
+ - name: REDIS_NAMESPACE
66
+ value: "<HubHaNameSpace>"
67
+ - name: KAFKA_NAMESPACE
68
+ value: "<HubHaNameSpace>"
69
+ - name: REDIS_PASSWORD
70
+ valueFrom:
71
+ secretKeyRef:
72
+ name: browserstack-secret
73
+ key: redis-password
74
+ - name: KAFKA_PASSWORD
75
+ valueFrom:
76
+ secretKeyRef:
77
+ name: browserstack-secret
78
+ key: kafka-password
57
79
  ports:
58
80
  - containerPort: 4444
59
81
  protocol: TCP
@@ -72,7 +94,7 @@ spec:
72
94
  failureThreshold: 10
73
95
  readinessProbe:
74
96
  httpGet:
75
- path: /readyz
97
+ path: <ReadinessProbePath>
76
98
  port: 4444
77
99
  initialDelaySeconds: 12
78
100
  periodSeconds: 10