browserstack-node-sdk 1.34.35 → 1.34.37

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_0x41f353=a15_0x3514;function a15_0x38ff(){const _0x5c2ae5=['WtFRI','hCtQG','SPQbO','YGESd','init-not-called','stringify','IzrEy','IltrV','/packages/cli/get-all-grids','6159366zeMvZx','ZrEEG','TJLSe','push','options','command','20evUppS','scsIr','XKIET','SqHDD','OVLJm','INFO','bstackAccesskey','5voUjuK','error','Browserstack','builder','running','RbMsw','password','BSRDn','table','/packages/cli/get-grids','unknown-error','1562829TmTowG','epilogue','list','https://','username','zxJNK','6194536nRpXkG','argv','../../utils/utilityMethods','\x0aFound\x20the\x20following\x20grids:\x0a','../../utils/instrumentationUtils','bwXPE','stack','allGrids','ezJQs','13519oxauzV','help','Failed\x20to\x20list\x20resources!\x20Error:\x20','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','log','exit','status','requestId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','description','8329020jmefoa','handler','usage','statusCode','name','boolean','../../config/constants','PAaWC','36080jyHCaR','uuid','ERROR','4UfEJuR','grids','MAGhj','4926cTBEKQ','readFileSync','2797356XwmILd','JQNVM','zMGst','server-error','body','bNtGN','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.'];a15_0x38ff=function(){return _0x5c2ae5;};return a15_0x38ff();}(function(_0x48752e,_0x5e32fe){const _0x382a5a=a15_0x3514,_0x5ea3e3=_0x48752e();while(!![]){try{const _0x2070b8=-parseInt(_0x382a5a(0x17b))/0x1*(parseInt(_0x382a5a(0x194))/0x2)+parseInt(_0x382a5a(0x1a6))/0x3*(-parseInt(_0x382a5a(0x178))/0x4)+parseInt(_0x382a5a(0x19b))/0x5*(-parseInt(_0x382a5a(0x17d))/0x6)+-parseInt(_0x382a5a(0x16d))/0x7+-parseInt(_0x382a5a(0x1ac))/0x8+-parseInt(_0x382a5a(0x18e))/0x9+parseInt(_0x382a5a(0x175))/0xa*(parseInt(_0x382a5a(0x1b5))/0xb);if(_0x2070b8===_0x5e32fe)break;else _0x5ea3e3['push'](_0x5ea3e3['shift']());}catch(_0x52c4b2){_0x5ea3e3['push'](_0x5ea3e3['shift']());}}}(a15_0x38ff,0xb6ec4));function a15_0x3514(_0x424e2e,_0x5bfa10){const _0x38ff2c=a15_0x38ff();return a15_0x3514=function(_0x351471,_0x8a4747){_0x351471=_0x351471-0x164;let _0x271e99=_0x38ff2c[_0x351471];return _0x271e99;},a15_0x3514(_0x424e2e,_0x5bfa10);}const fs=require('fs'),got=require('got'),{table}=require(a15_0x41f353(0x1a3)),{v4:uuidv4}=require(a15_0x41f353(0x176)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x41f353(0x173)),{getCredentialsPath,getAuthHeader}=require(a15_0x41f353(0x1ae)),{sendInstrumentationEvent}=require(a15_0x41f353(0x1b0));exports[a15_0x41f353(0x193)]=a15_0x41f353(0x179),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x41f353(0x19e)]=function(_0x3a87c7){const _0x136539=a15_0x41f353,_0x57a421={};_0x57a421[_0x136539(0x1b4)]=_0x136539(0x184),_0x57a421[_0x136539(0x188)]=_0x136539(0x172),_0x57a421['zxJNK']=_0x136539(0x164);const _0xd75b56=_0x57a421,_0x1c6d0c={};_0x1c6d0c[_0x136539(0x16c)]=_0xd75b56['ezJQs'],_0x1c6d0c['type']=_0xd75b56[_0x136539(0x188)];const _0x2191c3={};return _0x2191c3['all-grids']=_0x1c6d0c,_0x3a87c7[_0x136539(0x16f)](HELP_HEADER_MESSAGE[_0x136539(0x1a8)]['grid'])[_0x136539(0x1a7)](HELP_FOOTER_MESSAGE)[_0x136539(0x192)](_0x2191c3)[_0x136539(0x164)](_0xd75b56[_0x136539(0x1ab)])[_0x136539(0x1ad)];},exports[a15_0x41f353(0x16e)]=async function(_0x46a6f8){const _0x27dd29=a15_0x41f353,_0x2d16a9={'IzrEy':function(_0x4151c9){return _0x4151c9();},'mFsiA':_0x27dd29(0x16b),'PAaWC':function(_0x1c4cd7,_0x58b614,_0x24bbe1,_0x13c9b5,_0x2942f6,_0x1ce584,_0x16e5d3){return _0x1c4cd7(_0x58b614,_0x24bbe1,_0x13c9b5,_0x2942f6,_0x1ce584,_0x16e5d3);},'bwXPE':'list-grids-called','JQNVM':_0x27dd29(0x189),'SPQbO':'GET','SqHDD':function(_0x4ad0b5,_0x557bd9,_0x19e826){return _0x4ad0b5(_0x557bd9,_0x19e826);},'ZrEEG':function(_0x5dceb6,_0x575012){return _0x5dceb6!==_0x575012;},'TJLSe':function(_0x5e7c20,_0x23a883){return _0x5e7c20===_0x23a883;},'fQTNL':_0x27dd29(0x1af),'OVLJm':'grid-id','IltrV':'grid-name','bNtGN':_0x27dd29(0x169),'scsIr':_0x27dd29(0x19f),'LJwRD':'queued','MAGhj':'cluster-name','hCtQG':function(_0x148d13,_0x3d2b79){return _0x148d13(_0x3d2b79);},'HTRMj':function(_0x133f66,_0x4ed0a9){return _0x133f66===_0x4ed0a9;},'Ihsve':_0x27dd29(0x166),'BSRDn':function(_0x22f213,_0x4d5a67,_0x2614d8,_0x1fc23a,_0xcf8ab8,_0x383dab,_0x3ec268){return _0x22f213(_0x4d5a67,_0x2614d8,_0x1fc23a,_0xcf8ab8,_0x383dab,_0x3ec268);},'zMGst':'unauthorised','RbMsw':_0x27dd29(0x180),'WtFRI':function(_0x1c0ec6,_0x20d6f4,_0x2b7d34,_0x10ebab,_0x29364c,_0x445d10,_0x22862b){return _0x1c0ec6(_0x20d6f4,_0x2b7d34,_0x10ebab,_0x29364c,_0x445d10,_0x22862b);},'XKIET':_0x27dd29(0x1a5)};try{global_registry[_0x27dd29(0x16a)]=_0x2d16a9[_0x27dd29(0x18b)](uuidv4);!fs['existsSync'](_0x2d16a9[_0x27dd29(0x18b)](getCredentialsPath))&&(console[_0x27dd29(0x19c)](_0x2d16a9['mFsiA']),await _0x2d16a9[_0x27dd29(0x174)](sendInstrumentationEvent,_0x46a6f8,_0x2d16a9[_0x27dd29(0x1b1)],messageTypes['ERROR'],_0x2d16a9[_0x27dd29(0x17e)],null,_0x46a6f8),process[_0x27dd29(0x168)](0x1));const _0x34c8b1=JSON['parse'](fs[_0x27dd29(0x17c)](_0x2d16a9['IzrEy'](getCredentialsPath)));let _0x344ac8=_0x27dd29(0x1a9)+AG_API_URL+_0x27dd29(0x1a4);_0x46a6f8[_0x27dd29(0x1b3)]&&(_0x344ac8='https://'+AG_API_URL+_0x27dd29(0x18d));const _0x2cecab={'method':_0x2d16a9[_0x27dd29(0x187)],'headers':_0x2d16a9['SqHDD'](getAuthHeader,_0x34c8b1[_0x27dd29(0x19d)][_0x27dd29(0x1aa)],_0x34c8b1[_0x27dd29(0x19d)][_0x27dd29(0x1a1)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x34c8b1[_0x27dd29(0x19d)][_0x27dd29(0x1aa)],global_registry[_0x27dd29(0x19a)]=_0x34c8b1[_0x27dd29(0x19d)]['password'],_0x2d16a9[_0x27dd29(0x174)](sendInstrumentationEvent,_0x46a6f8,_0x2d16a9[_0x27dd29(0x1b1)],messageTypes[_0x27dd29(0x199)],null,null,_0x46a6f8);const _0x39f2cb=await _0x2d16a9[_0x27dd29(0x197)](got,_0x344ac8,_0x2cecab);if(_0x2d16a9[_0x27dd29(0x18f)](_0x39f2cb,null)&&_0x2d16a9['ZrEEG'](_0x39f2cb,undefined)&&_0x2d16a9[_0x27dd29(0x190)](_0x39f2cb[_0x27dd29(0x170)],0xc8)){const _0x3223d5=JSON['parse'](_0x39f2cb[_0x27dd29(0x181)]);console[_0x27dd29(0x167)](_0x2d16a9['fQTNL']);const _0x3acec8=[];_0x3acec8[_0x27dd29(0x191)]([_0x2d16a9[_0x27dd29(0x198)],_0x2d16a9[_0x27dd29(0x18c)],_0x2d16a9[_0x27dd29(0x182)],_0x2d16a9[_0x27dd29(0x195)],_0x2d16a9['LJwRD'],_0x2d16a9[_0x27dd29(0x17a)]]),_0x3223d5['forEach'](_0x45d18a=>{const _0x4f1f86=_0x27dd29;_0x3acec8[_0x4f1f86(0x191)]([_0x45d18a['id'],_0x45d18a[_0x4f1f86(0x171)],_0x45d18a[_0x4f1f86(0x169)],_0x45d18a[_0x4f1f86(0x19f)],_0x45d18a['queued'],_0x45d18a['clusterName']]);}),console[_0x27dd29(0x167)](_0x2d16a9[_0x27dd29(0x186)](table,_0x3acec8)),process[_0x27dd29(0x168)](0x0);}_0x2d16a9['HTRMj'](_0x39f2cb[_0x27dd29(0x170)],0x191)&&(console['error'](_0x2d16a9['Ihsve']),await _0x2d16a9[_0x27dd29(0x1a2)](sendInstrumentationEvent,_0x46a6f8,_0x2d16a9[_0x27dd29(0x1b1)],messageTypes['ERROR'],_0x2d16a9[_0x27dd29(0x17f)],null,_0x46a6f8),process[_0x27dd29(0x168)](0x1)),console[_0x27dd29(0x19c)](_0x27dd29(0x183)+JSON[_0x27dd29(0x18a)](_0x39f2cb)),await _0x2d16a9[_0x27dd29(0x174)](sendInstrumentationEvent,_0x46a6f8,_0x2d16a9['bwXPE'],messageTypes[_0x27dd29(0x177)],_0x2d16a9[_0x27dd29(0x1a0)],_0x39f2cb,_0x46a6f8),process[_0x27dd29(0x168)](0x1);}catch(_0xd4567f){console[_0x27dd29(0x19c)](_0x27dd29(0x165)+_0xd4567f[_0x27dd29(0x1b2)]),await _0x2d16a9[_0x27dd29(0x185)](sendInstrumentationEvent,_0x46a6f8,_0x2d16a9[_0x27dd29(0x1b1)],messageTypes['ERROR'],_0x2d16a9[_0x27dd29(0x196)],_0xd4567f,_0x46a6f8),process[_0x27dd29(0x168)](0x1);}};
1
+ function a15_0x58e1(){const _0x3c470e=['ERROR','log','LyRyQ','init-not-called','nrKHB','epilogue','RLunS','../../utils/instrumentationUtils','378050BVmlWC','handler','Browserstack','unknown-error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','command','push','7730yNQvvM','tKOcE','bstackUsername','pAefR','49688QyjwkI','OlvCE','https://','lUXzy','argv','got','ortfU','jzQzA','requestId','/packages/cli/get-all-grids','bowRN','boolean','hIjpz','740135YLoQwD','aadOH','description','grid-name','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','grids','54QUVIZo','password','bstackAccesskey','exit','1533216fWcDoz','forEach','OyMQz','username','68luzZxM','cluster-name','options','IECBj','allGrids','\x0aFound\x20the\x20following\x20grids:\x0a','ytcpI','356394PxGvsv','readFileSync','QRLWP','usage','zdceh','AxjLt','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','table','type','queued','/packages/cli/get-grids','YkjMS','clusterName','KnHlR','statusCode','319459lmlPpr','list','SBXtt','error','Failed\x20to\x20list\x20resources!\x20Error:\x20','GEQgu','12rWiGcT','help','stack','status','list-grids-called','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-id','YfgGJ','../../config/constants','unauthorised','running'];a15_0x58e1=function(){return _0x3c470e;};return a15_0x58e1();}const a15_0x31cb7f=a15_0x422f;function a15_0x422f(_0x363efb,_0x5c09ad){const _0x58e1ed=a15_0x58e1();return a15_0x422f=function(_0x422fef,_0x27ba7f){_0x422fef=_0x422fef-0x1d6;let _0x2890c1=_0x58e1ed[_0x422fef];return _0x2890c1;},a15_0x422f(_0x363efb,_0x5c09ad);}(function(_0x55ac12,_0x4db7dc){const _0x3bd8f9=a15_0x422f,_0x4b9532=_0x55ac12();while(!![]){try{const _0x370827=parseInt(_0x3bd8f9(0x1d9))/0x1*(parseInt(_0x3bd8f9(0x1f8))/0x2)+parseInt(_0x3bd8f9(0x214))/0x3*(-parseInt(_0x3bd8f9(0x1dd))/0x4)+-parseInt(_0x3bd8f9(0x1ea))/0x5+parseInt(_0x3bd8f9(0x1ff))/0x6+parseInt(_0x3bd8f9(0x20e))/0x7+parseInt(_0x3bd8f9(0x1f4))/0x8+parseInt(_0x3bd8f9(0x1f0))/0x9*(-parseInt(_0x3bd8f9(0x227))/0xa);if(_0x370827===_0x4db7dc)break;else _0x4b9532['push'](_0x4b9532['shift']());}catch(_0x458ef2){_0x4b9532['push'](_0x4b9532['shift']());}}}(a15_0x58e1,0x20f33));const fs=require('fs'),got=require(a15_0x31cb7f(0x1e2)),{table}=require(a15_0x31cb7f(0x206)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x31cb7f(0x21c)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x31cb7f(0x226));exports[a15_0x31cb7f(0x1d7)]=a15_0x31cb7f(0x1ef),exports['desc']=a15_0x31cb7f(0x1ee),exports['builder']=function(_0x3d039e){const _0x13770b=a15_0x31cb7f,_0x3fa266={};_0x3fa266[_0x13770b(0x210)]=_0x13770b(0x1d6),_0x3fa266['pAefR']=_0x13770b(0x1e8),_0x3fa266[_0x13770b(0x1fb)]=_0x13770b(0x215);const _0x3233ed=_0x3fa266,_0x110fc6={};_0x110fc6[_0x13770b(0x1ec)]=_0x3233ed[_0x13770b(0x210)],_0x110fc6[_0x13770b(0x207)]=_0x3233ed[_0x13770b(0x1dc)];const _0x1e7f2c={};return _0x1e7f2c['all-grids']=_0x110fc6,_0x3d039e[_0x13770b(0x202)](HELP_HEADER_MESSAGE[_0x13770b(0x20f)]['grid'])[_0x13770b(0x224)](HELP_FOOTER_MESSAGE)[_0x13770b(0x1fa)](_0x1e7f2c)[_0x13770b(0x215)](_0x3233ed[_0x13770b(0x1fb)])[_0x13770b(0x1e1)];},exports[a15_0x31cb7f(0x228)]=async function(_0x224c96){const _0x335d2a=a15_0x31cb7f,_0x56bd82={'lWfmQ':function(_0x4f926f){return _0x4f926f();},'ytcpI':function(_0x431854){return _0x431854();},'KnHlR':_0x335d2a(0x219),'bowRN':function(_0xfbadf1,_0x1cc477,_0x2dcbb6,_0x209eaf,_0x5d2b10,_0xce73b1,_0x1c5b21){return _0xfbadf1(_0x1cc477,_0x2dcbb6,_0x209eaf,_0x5d2b10,_0xce73b1,_0x1c5b21);},'RLunS':_0x335d2a(0x218),'OyMQz':_0x335d2a(0x222),'skOfZ':'GET','pfqmJ':function(_0x174ad9,_0x22d19d,_0x3cc1b7){return _0x174ad9(_0x22d19d,_0x3cc1b7);},'jzQzA':function(_0x581010,_0x2c1f29,_0x17a95d){return _0x581010(_0x2c1f29,_0x17a95d);},'OlvCE':function(_0x1856f2,_0x2fa7c9){return _0x1856f2!==_0x2fa7c9;},'nrKHB':function(_0x52c6a8,_0x1f2893){return _0x52c6a8===_0x1f2893;},'hIjpz':_0x335d2a(0x1fd),'lUXzy':_0x335d2a(0x21a),'aadOH':_0x335d2a(0x1ed),'LyRyQ':_0x335d2a(0x217),'tKOcE':_0x335d2a(0x21e),'YkjMS':_0x335d2a(0x208),'zdceh':_0x335d2a(0x1f9),'ortfU':function(_0x110c13,_0xa918f3){return _0x110c13(_0xa918f3);},'YfgGJ':_0x335d2a(0x205),'GEQgu':_0x335d2a(0x21d),'AxjLt':'server-error','QRLWP':_0x335d2a(0x22a)};try{global_registry[_0x335d2a(0x1e5)]=_0x56bd82['lWfmQ'](uuidv4);!fs['existsSync'](_0x56bd82[_0x335d2a(0x1fe)](getCredentialsPath))&&(console[_0x335d2a(0x211)](_0x56bd82[_0x335d2a(0x20c)]),await _0x56bd82[_0x335d2a(0x1e7)](sendInstrumentationEvent,_0x224c96,_0x56bd82[_0x335d2a(0x225)],messageTypes[_0x335d2a(0x21f)],_0x56bd82[_0x335d2a(0x1f6)],null,_0x224c96),process[_0x335d2a(0x1f3)](0x1));const _0x12adb2=JSON['parse'](fs[_0x335d2a(0x200)](_0x56bd82['ytcpI'](getCredentialsPath)));let _0xa71b03=_0x335d2a(0x1df)+AG_API_URL+_0x335d2a(0x209);_0x224c96[_0x335d2a(0x1fc)]&&(_0xa71b03=_0x335d2a(0x1df)+AG_API_URL+_0x335d2a(0x1e6));const _0xd82d38={'method':_0x56bd82['skOfZ'],'headers':_0x56bd82['pfqmJ'](getAuthHeader,_0x12adb2['Browserstack']['username'],_0x12adb2[_0x335d2a(0x229)][_0x335d2a(0x1f1)]),'throwHttpErrors':![]};global_registry[_0x335d2a(0x1db)]=_0x12adb2[_0x335d2a(0x229)][_0x335d2a(0x1f7)],global_registry[_0x335d2a(0x1f2)]=_0x12adb2[_0x335d2a(0x229)][_0x335d2a(0x1f1)],_0x56bd82[_0x335d2a(0x1e7)](sendInstrumentationEvent,_0x224c96,_0x56bd82[_0x335d2a(0x225)],messageTypes['INFO'],null,null,_0x224c96);const _0x2481fb=await _0x56bd82[_0x335d2a(0x1e4)](got,_0xa71b03,_0xd82d38);if(_0x56bd82[_0x335d2a(0x1de)](_0x2481fb,null)&&_0x56bd82[_0x335d2a(0x1de)](_0x2481fb,undefined)&&_0x56bd82[_0x335d2a(0x223)](_0x2481fb[_0x335d2a(0x20d)],0xc8)){const _0x209434=JSON['parse'](_0x2481fb['body']);console[_0x335d2a(0x220)](_0x56bd82[_0x335d2a(0x1e9)]);const _0x50b841=[];_0x50b841[_0x335d2a(0x1d8)]([_0x56bd82[_0x335d2a(0x1e0)],_0x56bd82[_0x335d2a(0x1eb)],_0x56bd82[_0x335d2a(0x221)],_0x56bd82[_0x335d2a(0x1da)],_0x56bd82[_0x335d2a(0x20a)],_0x56bd82[_0x335d2a(0x203)]]),_0x209434[_0x335d2a(0x1f5)](_0x1a11ab=>{const _0x5de71e=_0x335d2a;_0x50b841[_0x5de71e(0x1d8)]([_0x1a11ab['id'],_0x1a11ab['name'],_0x1a11ab[_0x5de71e(0x217)],_0x1a11ab[_0x5de71e(0x21e)],_0x1a11ab[_0x5de71e(0x208)],_0x1a11ab[_0x5de71e(0x20b)]]);}),console[_0x335d2a(0x220)](_0x56bd82[_0x335d2a(0x1e3)](table,_0x50b841)),process[_0x335d2a(0x1f3)](0x0);}_0x56bd82['nrKHB'](_0x2481fb[_0x335d2a(0x20d)],0x191)&&(console[_0x335d2a(0x211)](_0x56bd82[_0x335d2a(0x21b)]),await _0x56bd82[_0x335d2a(0x1e7)](sendInstrumentationEvent,_0x224c96,_0x56bd82[_0x335d2a(0x225)],messageTypes[_0x335d2a(0x21f)],_0x56bd82[_0x335d2a(0x213)],null,_0x224c96),process[_0x335d2a(0x1f3)](0x1)),console[_0x335d2a(0x211)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2481fb)),await _0x56bd82[_0x335d2a(0x1e7)](sendInstrumentationEvent,_0x224c96,_0x56bd82[_0x335d2a(0x225)],messageTypes['ERROR'],_0x56bd82[_0x335d2a(0x204)],_0x2481fb,_0x224c96),process[_0x335d2a(0x1f3)](0x1);}catch(_0x350184){console[_0x335d2a(0x211)](_0x335d2a(0x212)+_0x350184[_0x335d2a(0x216)]),await _0x56bd82[_0x335d2a(0x1e7)](sendInstrumentationEvent,_0x224c96,_0x56bd82[_0x335d2a(0x225)],messageTypes[_0x335d2a(0x21f)],_0x56bd82[_0x335d2a(0x201)],_0x350184,_0x224c96),process[_0x335d2a(0x1f3)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x391c(){const _0x3901f3=['4073489TuvSuk','29982hJgRGm','40wmfPuf','start_commands','handler','help','169844amZBgE','usage','builder','recommendCommands','Start\x20an\x20existing\x20Automation\x20grid.','474114BUGzCa','59832tVTdbZ','2757288yWKcet','YOvUV','kFLJf','desc','155468aaQZbN','start','epilogue','command','commandDir','../config/constants','strict','2980OnZvBf','3LoFTIg'];a16_0x391c=function(){return _0x3901f3;};return a16_0x391c();}const a16_0x4b7d40=a16_0x5c3b;function a16_0x5c3b(_0x227a10,_0x6929f5){const _0x391c0f=a16_0x391c();return a16_0x5c3b=function(_0x5c3b17,_0x2c901e){_0x5c3b17=_0x5c3b17-0x72;let _0xcdc823=_0x391c0f[_0x5c3b17];return _0xcdc823;},a16_0x5c3b(_0x227a10,_0x6929f5);}(function(_0x16259b,_0x6b6338){const _0x5cfe94=a16_0x5c3b,_0x10b343=_0x16259b();while(!![]){try{const _0x471225=-parseInt(_0x5cfe94(0x82))/0x1+-parseInt(_0x5cfe94(0x87))/0x2+-parseInt(_0x5cfe94(0x80))/0x3*(-parseInt(_0x5cfe94(0x78))/0x4)+-parseInt(_0x5cfe94(0x83))/0x5*(parseInt(_0x5cfe94(0x72))/0x6)+-parseInt(_0x5cfe94(0x81))/0x7+-parseInt(_0x5cfe94(0x74))/0x8+-parseInt(_0x5cfe94(0x73))/0x9*(-parseInt(_0x5cfe94(0x7f))/0xa);if(_0x471225===_0x6b6338)break;else _0x10b343['push'](_0x10b343['shift']());}catch(_0x5a5d51){_0x10b343['push'](_0x10b343['shift']());}}}(a16_0x391c,0x548d7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4b7d40(0x7d));exports[a16_0x4b7d40(0x7b)]='start',exports[a16_0x4b7d40(0x77)]=a16_0x4b7d40(0x8b),exports[a16_0x4b7d40(0x89)]=function(_0x655373){const _0x390488=a16_0x4b7d40,_0x404402={};_0x404402[_0x390488(0x76)]=_0x390488(0x84),_0x404402[_0x390488(0x75)]=_0x390488(0x86);const _0x316690=_0x404402;return _0x655373[_0x390488(0x88)](HELP_HEADER_MESSAGE[_0x390488(0x79)])[_0x390488(0x7a)](HELP_FOOTER_MESSAGE)[_0x390488(0x7c)](_0x316690['kFLJf'])['demandCommand']()[_0x390488(0x8a)]()[_0x390488(0x7e)]()[_0x390488(0x86)](_0x316690[_0x390488(0x75)]);},exports[a16_0x4b7d40(0x85)]=function(_0x2c6d0c){};
1
+ const a16_0xce1ce5=a16_0x8dc2;(function(_0x17217d,_0x482b08){const _0x4a89b2=a16_0x8dc2,_0x142f21=_0x17217d();while(!![]){try{const _0x45693f=-parseInt(_0x4a89b2(0xa4))/0x1*(parseInt(_0x4a89b2(0xab))/0x2)+parseInt(_0x4a89b2(0x9c))/0x3+-parseInt(_0x4a89b2(0xa8))/0x4+-parseInt(_0x4a89b2(0xae))/0x5*(-parseInt(_0x4a89b2(0xa0))/0x6)+parseInt(_0x4a89b2(0xb1))/0x7+parseInt(_0x4a89b2(0xb0))/0x8*(-parseInt(_0x4a89b2(0xa9))/0x9)+-parseInt(_0x4a89b2(0xa5))/0xa;if(_0x45693f===_0x482b08)break;else _0x142f21['push'](_0x142f21['shift']());}catch(_0x1c6fe9){_0x142f21['push'](_0x142f21['shift']());}}}(a16_0x33fa,0xe361b));function a16_0x8dc2(_0x505981,_0x47f820){const _0x33fac3=a16_0x33fa();return a16_0x8dc2=function(_0x8dc212,_0x3f0a2e){_0x8dc212=_0x8dc212-0x9c;let _0x1cd899=_0x33fac3[_0x8dc212];return _0x1cd899;},a16_0x8dc2(_0x505981,_0x47f820);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0xce1ce5(0xa1));exports['command']=a16_0xce1ce5(0x9f),exports[a16_0xce1ce5(0x9d)]=a16_0xce1ce5(0xaf),exports[a16_0xce1ce5(0xaa)]=function(_0x5ea577){const _0x17dea7=a16_0xce1ce5,_0x4e4099={};_0x4e4099[_0x17dea7(0x9e)]='start_commands',_0x4e4099[_0x17dea7(0xad)]=_0x17dea7(0xa2);const _0x5d0aaf=_0x4e4099;return _0x5ea577[_0x17dea7(0xa3)](HELP_HEADER_MESSAGE[_0x17dea7(0x9f)])[_0x17dea7(0xa6)](HELP_FOOTER_MESSAGE)[_0x17dea7(0xac)](_0x5d0aaf[_0x17dea7(0x9e)])['demandCommand']()[_0x17dea7(0xa7)]()['strict']()[_0x17dea7(0xa2)](_0x5d0aaf[_0x17dea7(0xad)]);},exports['handler']=function(_0x597f5c){};function a16_0x33fa(){const _0x500b33=['recommendCommands','844772uHpWyC','2543652AMxRJN','builder','475364XibVoE','commandDir','amfGf','1673015jLQBRU','Start\x20an\x20existing\x20Automation\x20grid.','8LXVptU','7116004rnqcac','5417448syOaut','desc','JcbjD','start','24lqLLEM','../config/constants','help','usage','6tgGXVv','13095320iuGKpK','epilogue'];a16_0x33fa=function(){return _0x500b33;};return a16_0x33fa();}
@@ -1 +1 @@
1
- function a17_0x2fd8(_0x1bf4c5,_0x278c7d){const _0x53f6c0=a17_0x53f6();return a17_0x2fd8=function(_0x2fd839,_0x15332f){_0x2fd839=_0x2fd839-0xf2;let _0x46ec37=_0x53f6c0[_0x2fd839];return _0x46ec37;},a17_0x2fd8(_0x1bf4c5,_0x278c7d);}function a17_0x53f6(){const _0x1d67f9=['default','LMCtR','skipTlsCertVerify','16800804mukcqL','info','gridId','replace','cloudProvider','init-not-called','clusterName','username','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','TQeeP','XuSMo','123ydbrqC','builder','../../config/logger','options','pulQv','xrBLp','connectionTimeout','NbCTZ','body','skip-tls-cert-verify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','jSZbo','DNxfd','start-grid-called','message','grid-id','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','user','description','clusterRegion','9640QwBlGn','kBmbB','aIBjR','bstackAccesskey','2488JoCwRS','Skip\x20insecure\x20cert\x20verification.','bstackUsername','reconnecting-websocket','427345amTqae','epilogue','mEWmV','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','aBxNN','statusCode','start','wBJTG','Start\x20an\x20existing\x20Automation\x20grid.','../../utils/gridComponents','6nLFyPU','help','7552314WxXcNd','unauthorised','15056wHvfFA','password','ntBHr','Browserstack','tdJgt','server-error','HzymS','parse','Adding\x20Websocket\x20listeners','UCtcp','BrljA','XwSfe','stringify','name','existsSync','command','PmJah','error','type','823915MVWJDl','../../config/constants','boolean','addListeners','grid','18657YCsxmr','debug','desc','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','invalid-grid-id','ERROR','../../utils/instrumentationUtils','2gYZfAE','2354pWuamR','INFO','../../utils/createk8sClient','../../utils/webSocketUtils','ymQmt','exit','region'];a17_0x53f6=function(){return _0x1d67f9;};return a17_0x53f6();}const a17_0x51afa4=a17_0x2fd8;(function(_0x3df895,_0x2effcd){const _0x17f8c9=a17_0x2fd8,_0x181549=_0x3df895();while(!![]){try{const _0x1e79ba=-parseInt(_0x17f8c9(0x141))/0x1*(-parseInt(_0x17f8c9(0x10f))/0x2)+parseInt(_0x17f8c9(0x125))/0x3*(-parseInt(_0x17f8c9(0x14f))/0x4)+-parseInt(_0x17f8c9(0x103))/0x5+-parseInt(_0x17f8c9(0x14b))/0x6*(parseInt(_0x17f8c9(0x14d))/0x7)+parseInt(_0x17f8c9(0x13d))/0x8*(parseInt(_0x17f8c9(0x108))/0x9)+-parseInt(_0x17f8c9(0x139))/0xa*(parseInt(_0x17f8c9(0x110))/0xb)+parseInt(_0x17f8c9(0x11a))/0xc;if(_0x1e79ba===_0x2effcd)break;else _0x181549['push'](_0x181549['shift']());}catch(_0x4cd6ce){_0x181549['push'](_0x181549['shift']());}}}(a17_0x53f6,0xd3de2));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x51afa4(0x140)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x51afa4(0x104)),{logger}=require(a17_0x51afa4(0x127)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a17_0x51afa4(0x14a)),{sendInstrumentationEvent}=require(a17_0x51afa4(0x10e)),webSocketUtils=require(a17_0x51afa4(0x113)),{createK8sClient}=require(a17_0x51afa4(0x112)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a17_0x51afa4(0xff)]=a17_0x51afa4(0x107),exports[a17_0x51afa4(0x10a)]=a17_0x51afa4(0x149),exports[a17_0x51afa4(0x126)]=function(_0x1663e6){const _0x4237cb=a17_0x51afa4,_0x2b7a33={};_0x2b7a33[_0x4237cb(0x143)]=_0x4237cb(0x144),_0x2b7a33[_0x4237cb(0xf4)]='string',_0x2b7a33[_0x4237cb(0x123)]=_0x4237cb(0x13e),_0x2b7a33[_0x4237cb(0x124)]=_0x4237cb(0x105),_0x2b7a33['ntBHr']=_0x4237cb(0x14c);const _0x455d50=_0x2b7a33,_0x52a8eb={};_0x52a8eb['description']=_0x455d50['mEWmV'],_0x52a8eb[_0x4237cb(0x102)]=_0x455d50[_0x4237cb(0xf4)];const _0x452db0={};_0x452db0[_0x4237cb(0x137)]=_0x455d50['TQeeP'],_0x452db0['type']=_0x455d50[_0x4237cb(0x124)],_0x452db0[_0x4237cb(0x117)]=![];const _0x182b2c={};return _0x182b2c[_0x4237cb(0x134)]=_0x52a8eb,_0x182b2c[_0x4237cb(0x12e)]=_0x452db0,_0x1663e6['usage'](HELP_HEADER_MESSAGE[_0x4237cb(0x147)])[_0x4237cb(0x142)](HELP_FOOTER_MESSAGE)[_0x4237cb(0x128)](_0x182b2c)[_0x4237cb(0x14c)](_0x455d50[_0x4237cb(0xf2)])['argv'];},exports['handler']=async function(_0x11b301){const _0x3d1b05=a17_0x51afa4,_0x30fae6={'BvqOs':_0x3d1b05(0x135),'BrljA':function(_0x1e5184){return _0x1e5184();},'xrBLp':_0x3d1b05(0x10b),'DNxfd':function(_0x4b2d46,_0x243b9b,_0x5a9f0c,_0x49f172,_0x1bef10,_0x4bcc19,_0x434785){return _0x4b2d46(_0x243b9b,_0x5a9f0c,_0x49f172,_0x1bef10,_0x4bcc19,_0x434785);},'wBJTG':_0x3d1b05(0x132),'kBmbB':_0x3d1b05(0x11f),'ymQmt':'<UsernamePlaceholder>','aIBjR':'<PasswordPlaceholder>','HzymS':_0x3d1b05(0xf8),'pulQv':function(_0x49887b,_0x4e504c,_0x56652e,_0x29b0ba){return _0x49887b(_0x4e504c,_0x56652e,_0x29b0ba);},'PmJah':function(_0x216847,_0x148679,_0x3ad199,_0x3c4877,_0x671c0d,_0x4acbfe,_0x2e9c56){return _0x216847(_0x148679,_0x3ad199,_0x3c4877,_0x671c0d,_0x4acbfe,_0x2e9c56);},'jSZbo':function(_0x264897,_0x4c150a,_0x460515){return _0x264897(_0x4c150a,_0x460515);},'JERsl':function(_0x162162,_0x128a11,_0x3f3dd6){return _0x162162(_0x128a11,_0x3f3dd6);},'LMCtR':'Grid\x20started','UCtcp':function(_0x1df2a9,_0x15258a){return _0x1df2a9===_0x15258a;},'NbCTZ':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','QbSwI':function(_0x23278a,_0x4edd94,_0x10e3c8,_0x564fed,_0x3fb337,_0x41baae,_0x19ab5b){return _0x23278a(_0x4edd94,_0x10e3c8,_0x564fed,_0x3fb337,_0x41baae,_0x19ab5b);},'QiDbU':_0x3d1b05(0x14e),'aBxNN':_0x3d1b05(0x10c),'XwSfe':_0x3d1b05(0xf5)};let _0x25f2eb;try{!_0x11b301[_0x3d1b05(0x11c)]&&(logger[_0x3d1b05(0x101)](_0x30fae6['BvqOs']),process[_0x3d1b05(0x115)](0x1));!fs[_0x3d1b05(0xfe)](_0x30fae6[_0x3d1b05(0xfa)](getCredentialsPath))&&(logger[_0x3d1b05(0x101)](_0x30fae6[_0x3d1b05(0x12a)]),await _0x30fae6[_0x3d1b05(0x131)](sendInstrumentationEvent,_0x11b301,_0x30fae6[_0x3d1b05(0x148)],messageTypes[_0x3d1b05(0x10d)],_0x30fae6[_0x3d1b05(0x13a)],null,_0x11b301),process['exit'](0x1));logger[_0x3d1b05(0x11b)]('Starting\x20grid\x20'+_0x11b301['gridId']),await _0x30fae6[_0x3d1b05(0x131)](sendInstrumentationEvent,_0x11b301,_0x30fae6[_0x3d1b05(0x148)],messageTypes[_0x3d1b05(0x111)],null,null,_0x11b301);const _0x5c3edf=JSON[_0x3d1b05(0xf7)](fs['readFileSync'](_0x30fae6[_0x3d1b05(0xfa)](getCredentialsPath)));global_registry[_0x3d1b05(0x13f)]=_0x5c3edf[_0x3d1b05(0xf3)][_0x3d1b05(0x121)],global_registry[_0x3d1b05(0x13c)]=_0x5c3edf[_0x3d1b05(0xf3)][_0x3d1b05(0x150)];const _0x445d38=WS_ENDPOINT['replace'](_0x30fae6[_0x3d1b05(0x114)],_0x5c3edf['Browserstack'][_0x3d1b05(0x121)])[_0x3d1b05(0x11d)](_0x30fae6[_0x3d1b05(0x13b)],_0x5c3edf['Browserstack']['password']),_0x16d9fc={};_0x16d9fc['WebSocket']=ws,_0x16d9fc[_0x3d1b05(0x12b)]=0x36ee80,_0x25f2eb=new ReconnectingWebSocket(_0x445d38,[],_0x16d9fc),logger[_0x3d1b05(0x109)](_0x30fae6[_0x3d1b05(0xf6)]),webSocketUtils[_0x3d1b05(0x106)](_0x25f2eb,_0x11b301[_0x3d1b05(0x136)],_0x11b301[_0x3d1b05(0x150)]);const [_0x40e327,_0x1e41cf]=await _0x30fae6[_0x3d1b05(0x129)](getGridDetails,_0x5c3edf['Browserstack'][_0x3d1b05(0x121)],_0x5c3edf[_0x3d1b05(0xf3)][_0x3d1b05(0x150)],_0x11b301[_0x3d1b05(0x11c)]);if(_0x1e41cf){const _0x42006d=_0x1e41cf[_0x3d1b05(0x11b)];global_registry[_0x3d1b05(0x11e)]=_0x42006d[_0x3d1b05(0x11e)],global_registry[_0x3d1b05(0x138)]=_0x42006d[_0x3d1b05(0x116)],global_registry[_0x3d1b05(0x120)]=_0x42006d[_0x3d1b05(0x120)];const _0x20734e=await _0x30fae6['PmJah'](getCloudProviderObject,_0x42006d[_0x3d1b05(0x11e)],_0x42006d[_0x3d1b05(0x120)],_0x42006d[_0x3d1b05(0xfd)],_0x25f2eb,webSocketUtils,_0x11b301),[_0x2baab8,_0x5eaa51,_0x3399ac,_0x450388,_0x28a0f4,_0x4f6779]=await _0x30fae6[_0x3d1b05(0x130)](createK8sClient,_0x20734e,_0x11b301[_0x3d1b05(0x119)]);await _0x30fae6['JERsl'](scaleUpHubDeployment,_0x5eaa51,_0x42006d['name']),logger['info'](_0x30fae6[_0x3d1b05(0x118)]),process[_0x3d1b05(0x115)](0x0);}_0x30fae6[_0x3d1b05(0xf9)](_0x40e327['statusCode'],0x191)&&(logger['error'](_0x30fae6[_0x3d1b05(0x12c)]),await _0x30fae6['QbSwI'](sendInstrumentationEvent,_0x11b301,_0x30fae6[_0x3d1b05(0x148)],messageTypes[_0x3d1b05(0x10d)],_0x30fae6['QiDbU'],null,_0x11b301),process['exit'](0x1)),_0x30fae6['UCtcp'](_0x40e327[_0x3d1b05(0x146)],0x190)&&(logger[_0x3d1b05(0x101)](JSON[_0x3d1b05(0xf7)](_0x40e327[_0x3d1b05(0x12d)])[_0x3d1b05(0x133)]),await _0x30fae6['PmJah'](sendInstrumentationEvent,_0x11b301,_0x30fae6[_0x3d1b05(0x148)],messageTypes[_0x3d1b05(0x10d)],_0x30fae6[_0x3d1b05(0x145)],null,_0x11b301),process[_0x3d1b05(0x115)](0x1)),logger['error'](_0x3d1b05(0x12f)+JSON[_0x3d1b05(0xfc)](_0x40e327)),await _0x30fae6[_0x3d1b05(0x100)](sendInstrumentationEvent,_0x11b301,_0x30fae6[_0x3d1b05(0x148)],messageTypes[_0x3d1b05(0x10d)],_0x30fae6[_0x3d1b05(0xfb)],_0x40e327,_0x11b301),process[_0x3d1b05(0x115)](0x1);}catch(_0x3a5b1a){const _0x95cb93=_0x3d1b05(0x122)+_0x3a5b1a+'\x20\x0a'+JSON[_0x3d1b05(0xfc)](_0x3a5b1a['stack'])+'\x20';logger[_0x3d1b05(0x101)](_0x95cb93),process[_0x3d1b05(0x115)](0x1);}};
1
+ const a17_0x45ac52=a17_0x5559;(function(_0x2cd380,_0x1a44a3){const _0x5dfc8e=a17_0x5559,_0x43ddcb=_0x2cd380();while(!![]){try{const _0x326529=parseInt(_0x5dfc8e(0x143))/0x1*(parseInt(_0x5dfc8e(0x16e))/0x2)+parseInt(_0x5dfc8e(0x15a))/0x3*(parseInt(_0x5dfc8e(0x194))/0x4)+parseInt(_0x5dfc8e(0x17a))/0x5+parseInt(_0x5dfc8e(0x16a))/0x6*(parseInt(_0x5dfc8e(0x13c))/0x7)+parseInt(_0x5dfc8e(0x14d))/0x8+-parseInt(_0x5dfc8e(0x140))/0x9*(-parseInt(_0x5dfc8e(0x196))/0xa)+-parseInt(_0x5dfc8e(0x190))/0xb;if(_0x326529===_0x1a44a3)break;else _0x43ddcb['push'](_0x43ddcb['shift']());}catch(_0x596fb7){_0x43ddcb['push'](_0x43ddcb['shift']());}}}(a17_0x35fd,0xae33d));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x45ac52(0x16c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x45ac52(0x146)),{logger}=require(a17_0x45ac52(0x162)),{getCredentialsPath,getGridDetails}=require(a17_0x45ac52(0x186)),{scaleUpHubDeployment}=require(a17_0x45ac52(0x17e)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require(a17_0x45ac52(0x144)),{createK8sClient}=require(a17_0x45ac52(0x139)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a17_0x45ac52(0x160)]='grid',exports[a17_0x45ac52(0x169)]=a17_0x45ac52(0x149),exports[a17_0x45ac52(0x154)]=function(_0xb2d11a){const _0x10555a=a17_0x45ac52,_0x2aed9f={};_0x2aed9f['NPCzK']=_0x10555a(0x195),_0x2aed9f['ykYaD']=_0x10555a(0x193),_0x2aed9f[_0x10555a(0x13d)]=_0x10555a(0x171),_0x2aed9f['dvOEr']=_0x10555a(0x17f),_0x2aed9f[_0x10555a(0x18e)]=_0x10555a(0x15f);const _0x508dc7=_0x2aed9f,_0x6e36b8={};_0x6e36b8[_0x10555a(0x13e)]=_0x508dc7[_0x10555a(0x157)],_0x6e36b8[_0x10555a(0x153)]=_0x508dc7[_0x10555a(0x187)];const _0x2d7d1f={};_0x2d7d1f['description']=_0x508dc7['Monpb'],_0x2d7d1f[_0x10555a(0x153)]=_0x508dc7[_0x10555a(0x155)],_0x2d7d1f[_0x10555a(0x183)]=![];const _0x8fd231={};return _0x8fd231['grid-id']=_0x6e36b8,_0x8fd231[_0x10555a(0x14a)]=_0x2d7d1f,_0xb2d11a[_0x10555a(0x18b)](HELP_HEADER_MESSAGE[_0x10555a(0x18c)])[_0x10555a(0x145)](HELP_FOOTER_MESSAGE)[_0x10555a(0x173)](_0x8fd231)[_0x10555a(0x15f)](_0x508dc7[_0x10555a(0x18e)])['argv'];},exports['handler']=async function(_0x5e784d){const _0x48a6da=a17_0x45ac52,_0x3c0391={'ExjnE':_0x48a6da(0x15e),'leJjY':function(_0x3e325d){return _0x3e325d();},'JHyNX':_0x48a6da(0x14e),'abMTH':function(_0x3df811,_0x1a14a7,_0x4f4f89,_0x51d3b3,_0x5e9eff,_0x57b80b,_0x668c0f){return _0x3df811(_0x1a14a7,_0x4f4f89,_0x51d3b3,_0x5e9eff,_0x57b80b,_0x668c0f);},'gUSQO':'start-grid-called','AtzyG':_0x48a6da(0x147),'kbQMP':function(_0xf57a39,_0x1c6673,_0x27726a,_0x389e97,_0x66eda,_0xcaa178,_0x35c23b){return _0xf57a39(_0x1c6673,_0x27726a,_0x389e97,_0x66eda,_0xcaa178,_0x35c23b);},'HZsGW':function(_0x3b169e){return _0x3b169e();},'bddqu':'<UsernamePlaceholder>','ADCqj':_0x48a6da(0x179),'wYaXn':_0x48a6da(0x189),'fFpZm':function(_0x34ac11,_0x3041b9,_0xf5efd6,_0x5d2396){return _0x34ac11(_0x3041b9,_0xf5efd6,_0x5d2396);},'GNkms':function(_0x4007ca,_0x223f35,_0x23e3e0){return _0x4007ca(_0x223f35,_0x23e3e0);},'ngGpY':_0x48a6da(0x13a),'ZIRfH':function(_0x48e23b,_0x6aa186){return _0x48e23b===_0x6aa186;},'AQiZD':_0x48a6da(0x13b),'EEXDf':_0x48a6da(0x159),'OXIGL':_0x48a6da(0x14b),'Yetld':'server-error'};let _0x3e62e5;try{!_0x5e784d['gridId']&&(logger[_0x48a6da(0x163)](_0x3c0391[_0x48a6da(0x181)]),process[_0x48a6da(0x14c)](0x1));!fs[_0x48a6da(0x188)](_0x3c0391['leJjY'](getCredentialsPath))&&(logger['error'](_0x3c0391[_0x48a6da(0x148)]),await _0x3c0391[_0x48a6da(0x15d)](sendInstrumentationEvent,_0x5e784d,_0x3c0391[_0x48a6da(0x192)],messageTypes[_0x48a6da(0x167)],_0x3c0391[_0x48a6da(0x142)],null,_0x5e784d),process['exit'](0x1));logger['info'](_0x48a6da(0x15c)+_0x5e784d[_0x48a6da(0x17b)]),await _0x3c0391[_0x48a6da(0x170)](sendInstrumentationEvent,_0x5e784d,_0x3c0391[_0x48a6da(0x192)],messageTypes[_0x48a6da(0x16b)],null,null,_0x5e784d);const _0x4a9297=JSON[_0x48a6da(0x178)](fs[_0x48a6da(0x18a)](_0x3c0391[_0x48a6da(0x161)](getCredentialsPath)));global_registry['bstackUsername']=_0x4a9297[_0x48a6da(0x165)][_0x48a6da(0x13f)],global_registry['bstackAccesskey']=_0x4a9297[_0x48a6da(0x165)][_0x48a6da(0x185)];const _0x4d7d65=WS_ENDPOINT[_0x48a6da(0x166)](_0x3c0391[_0x48a6da(0x177)],_0x4a9297[_0x48a6da(0x165)][_0x48a6da(0x13f)])[_0x48a6da(0x166)](_0x3c0391[_0x48a6da(0x15b)],_0x4a9297[_0x48a6da(0x165)][_0x48a6da(0x185)]),_0x14574b={};_0x14574b[_0x48a6da(0x141)]=ws,_0x14574b[_0x48a6da(0x150)]=0x36ee80,_0x3e62e5=new ReconnectingWebSocket(_0x4d7d65,[],_0x14574b),logger[_0x48a6da(0x168)](_0x3c0391['wYaXn']),webSocketUtils[_0x48a6da(0x164)](_0x3e62e5,_0x5e784d[_0x48a6da(0x18f)],_0x5e784d['password']);const [_0x54b8ec,_0x4cb7fa]=await _0x3c0391['fFpZm'](getGridDetails,_0x4a9297[_0x48a6da(0x165)][_0x48a6da(0x13f)],_0x4a9297[_0x48a6da(0x165)][_0x48a6da(0x185)],_0x5e784d['gridId']);if(_0x4cb7fa){const _0x4b35cb=_0x4cb7fa['info'];global_registry[_0x48a6da(0x176)]=_0x4b35cb['cloudProvider'],global_registry['clusterRegion']=_0x4b35cb[_0x48a6da(0x16f)],global_registry[_0x48a6da(0x175)]=_0x4b35cb['clusterName'];const _0x51e996=await _0x3c0391[_0x48a6da(0x15d)](getCloudProviderObject,_0x4b35cb[_0x48a6da(0x176)],_0x4b35cb[_0x48a6da(0x175)],_0x4b35cb[_0x48a6da(0x14f)],_0x3e62e5,webSocketUtils,_0x5e784d),[_0x47c90f,_0x2102db,_0x25c870,_0x34b756,_0x246ddd,_0x24c1c7]=await _0x3c0391['GNkms'](createK8sClient,_0x51e996,_0x5e784d[_0x48a6da(0x182)]);await _0x3c0391[_0x48a6da(0x18d)](scaleUpHubDeployment,_0x2102db,_0x4b35cb[_0x48a6da(0x14f)]),logger[_0x48a6da(0x158)](_0x3c0391[_0x48a6da(0x151)]),process[_0x48a6da(0x14c)](0x0);}_0x3c0391[_0x48a6da(0x17c)](_0x54b8ec[_0x48a6da(0x184)],0x191)&&(logger[_0x48a6da(0x163)](_0x3c0391[_0x48a6da(0x152)]),await _0x3c0391[_0x48a6da(0x15d)](sendInstrumentationEvent,_0x5e784d,_0x3c0391[_0x48a6da(0x192)],messageTypes[_0x48a6da(0x167)],_0x3c0391[_0x48a6da(0x174)],null,_0x5e784d),process[_0x48a6da(0x14c)](0x1)),_0x3c0391[_0x48a6da(0x17c)](_0x54b8ec['statusCode'],0x190)&&(logger['error'](JSON[_0x48a6da(0x178)](_0x54b8ec[_0x48a6da(0x180)])[_0x48a6da(0x17d)]),await _0x3c0391[_0x48a6da(0x170)](sendInstrumentationEvent,_0x5e784d,_0x3c0391['gUSQO'],messageTypes[_0x48a6da(0x167)],_0x3c0391[_0x48a6da(0x156)],null,_0x5e784d),process[_0x48a6da(0x14c)](0x1)),logger[_0x48a6da(0x163)](_0x48a6da(0x172)+JSON[_0x48a6da(0x191)](_0x54b8ec)),await _0x3c0391['abMTH'](sendInstrumentationEvent,_0x5e784d,_0x3c0391[_0x48a6da(0x192)],messageTypes[_0x48a6da(0x167)],_0x3c0391['Yetld'],_0x54b8ec,_0x5e784d),process[_0x48a6da(0x14c)](0x1);}catch(_0x1f3476){const _0x290a5d=_0x48a6da(0x16d)+_0x1f3476+'\x20\x0a'+JSON['stringify'](_0x1f3476['stack'])+'\x20';logger['error'](_0x290a5d),process[_0x48a6da(0x14c)](0x1);}};function a17_0x5559(_0xb1c161,_0x496475){const _0x35fd53=a17_0x35fd();return a17_0x5559=function(_0x55594e,_0x5d3679){_0x55594e=_0x55594e-0x139;let _0x4394ec=_0x35fd53[_0x55594e];return _0x4394ec;},a17_0x5559(_0xb1c161,_0x496475);}function a17_0x35fd(){const _0x137739=['JHyNX','Start\x20an\x20existing\x20Automation\x20grid.','skip-tls-cert-verify','invalid-grid-id','exit','107536ayUhgx','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','name','connectionTimeout','ngGpY','AQiZD','type','builder','dvOEr','OXIGL','NPCzK','info','unauthorised','6hGIhdq','ADCqj','Starting\x20grid\x20','abMTH','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','help','command','HZsGW','../../config/logger','error','addListeners','Browserstack','replace','ERROR','debug','desc','97200KHGsRe','INFO','reconnecting-websocket','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','43322jDVmEB','region','kbQMP','Skip\x20insecure\x20cert\x20verification.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','options','EEXDf','clusterName','cloudProvider','bddqu','parse','<PasswordPlaceholder>','1788705bBekWt','gridId','ZIRfH','message','../../utils/gridComponents','boolean','body','ExjnE','skipTlsCertVerify','default','statusCode','password','../../utils/utilityMethods','ykYaD','existsSync','Adding\x20Websocket\x20listeners','readFileSync','usage','start','GNkms','pKRQj','user','24928981KsEHyQ','stringify','gUSQO','string','1009352Dpcani','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','3040qMSIsd','../../utils/createk8sClient','Grid\x20started','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','497wpDHwI','Monpb','description','username','14769IrqTRU','WebSocket','AtzyG','21PfCENt','../../utils/webSocketUtils','epilogue','../../config/constants','init-not-called'];a17_0x35fd=function(){return _0x137739;};return a17_0x35fd();}
@@ -1 +1 @@
1
- const a18_0x23e19f=a18_0x4baa;(function(_0x1bb2ec,_0x593dd8){const _0x3e6daa=a18_0x4baa,_0x5d5a9c=_0x1bb2ec();while(!![]){try{const _0x1983f6=-parseInt(_0x3e6daa(0x15f))/0x1*(-parseInt(_0x3e6daa(0x15e))/0x2)+parseInt(_0x3e6daa(0x162))/0x3*(parseInt(_0x3e6daa(0x165))/0x4)+parseInt(_0x3e6daa(0x163))/0x5*(-parseInt(_0x3e6daa(0x157))/0x6)+-parseInt(_0x3e6daa(0x161))/0x7*(-parseInt(_0x3e6daa(0x164))/0x8)+-parseInt(_0x3e6daa(0x154))/0x9*(-parseInt(_0x3e6daa(0x167))/0xa)+parseInt(_0x3e6daa(0x155))/0xb*(parseInt(_0x3e6daa(0x16b))/0xc)+parseInt(_0x3e6daa(0x16c))/0xd*(-parseInt(_0x3e6daa(0x15a))/0xe);if(_0x1983f6===_0x593dd8)break;else _0x5d5a9c['push'](_0x5d5a9c['shift']());}catch(_0x555be3){_0x5d5a9c['push'](_0x5d5a9c['shift']());}}}(a18_0x5634,0xdf44b));function a18_0x4baa(_0x4cbc2a,_0x450070){const _0x56344b=a18_0x5634();return a18_0x4baa=function(_0x4baa9e,_0x17c505){_0x4baa9e=_0x4baa9e-0x152;let _0x47312b=_0x56344b[_0x4baa9e];return _0x47312b;},a18_0x4baa(_0x4cbc2a,_0x450070);}function a18_0x5634(){const _0x2c8b2a=['40113oeafJE','9042xrHhKl','desc','282ELLtsJ','help','Stop\x20a\x20running\x20Automation\x20grid.','53649358wXtqQB','command','builder','strict','694Tspajd','5261gFEYyp','demandCommand','273441WKYxRC','2022HiMmRH','168715MegFmB','320gMOQGB','10668ATnsJA','epilogue','1640mQWwOA','commandDir','stop_commands','fRKdq','6072sYEVIV','13dfDPry','stop','../config/constants','fObAm','recommendCommands'];a18_0x5634=function(){return _0x2c8b2a;};return a18_0x5634();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x23e19f(0x16e));exports[a18_0x23e19f(0x15b)]=a18_0x23e19f(0x16d),exports[a18_0x23e19f(0x156)]=a18_0x23e19f(0x159),exports[a18_0x23e19f(0x15c)]=function(_0x33e52f){const _0x4de111=a18_0x23e19f,_0x5029b4={};_0x5029b4['fObAm']=_0x4de111(0x169),_0x5029b4[_0x4de111(0x16a)]=_0x4de111(0x158);const _0x4704af=_0x5029b4;return _0x33e52f['usage'](HELP_HEADER_MESSAGE['stop'])[_0x4de111(0x166)](HELP_FOOTER_MESSAGE)[_0x4de111(0x168)](_0x4704af[_0x4de111(0x152)])[_0x4de111(0x160)]()[_0x4de111(0x153)]()[_0x4de111(0x15d)]()['help'](_0x4704af['fRKdq']);},exports['handler']=function(_0x17096a){};
1
+ const a18_0x474cc3=a18_0x2565;(function(_0x52b7ff,_0x314696){const _0x5acdd2=a18_0x2565,_0x25adf6=_0x52b7ff();while(!![]){try{const _0x3a1ccd=-parseInt(_0x5acdd2(0x18a))/0x1+parseInt(_0x5acdd2(0x197))/0x2+-parseInt(_0x5acdd2(0x185))/0x3+-parseInt(_0x5acdd2(0x187))/0x4+-parseInt(_0x5acdd2(0x199))/0x5+parseInt(_0x5acdd2(0x183))/0x6*(-parseInt(_0x5acdd2(0x18b))/0x7)+parseInt(_0x5acdd2(0x193))/0x8;if(_0x3a1ccd===_0x314696)break;else _0x25adf6['push'](_0x25adf6['shift']());}catch(_0x30792f){_0x25adf6['push'](_0x25adf6['shift']());}}}(a18_0x5e06,0xcca02));function a18_0x5e06(){const _0x9d66e5=['lXNRR','help','1244152UWRgWp','strict','7388630wQxbrM','command','3587820thUXQD','epilogue','3978645puukoZ','commandDir','759324bbQMYE','demandCommand','usage','903496DpMSdX','7ClPJjl','builder','Stop\x20a\x20running\x20Automation\x20grid.','../config/constants','stop_commands','handler','recommendCommands','desc','37690464Aptdwo','QpPMA'];a18_0x5e06=function(){return _0x9d66e5;};return a18_0x5e06();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x474cc3(0x18e));function a18_0x2565(_0x24fc44,_0xcb8bf7){const _0x5e0622=a18_0x5e06();return a18_0x2565=function(_0x2565e8,_0xdf2c66){_0x2565e8=_0x2565e8-0x182;let _0xdf0113=_0x5e0622[_0x2565e8];return _0xdf0113;},a18_0x2565(_0x24fc44,_0xcb8bf7);}exports[a18_0x474cc3(0x182)]='stop',exports[a18_0x474cc3(0x192)]=a18_0x474cc3(0x18d),exports[a18_0x474cc3(0x18c)]=function(_0x521f2d){const _0x5102dc=a18_0x474cc3,_0x2fd020={};_0x2fd020[_0x5102dc(0x195)]=_0x5102dc(0x18f),_0x2fd020[_0x5102dc(0x194)]=_0x5102dc(0x196);const _0x53c881=_0x2fd020;return _0x521f2d[_0x5102dc(0x189)](HELP_HEADER_MESSAGE['stop'])[_0x5102dc(0x184)](HELP_FOOTER_MESSAGE)[_0x5102dc(0x186)](_0x53c881[_0x5102dc(0x195)])[_0x5102dc(0x188)]()[_0x5102dc(0x191)]()[_0x5102dc(0x198)]()['help'](_0x53c881[_0x5102dc(0x194)]);},exports[a18_0x474cc3(0x190)]=function(_0x4dcfc4){};
@@ -1 +1 @@
1
- const a19_0x2dcee3=a19_0x28fc;function a19_0x28fc(_0x98aab5,_0x5ace8c){const _0x34b00f=a19_0x34b0();return a19_0x28fc=function(_0x28fc6c,_0x50c792){_0x28fc6c=_0x28fc6c-0x12d;let _0x1a4f93=_0x34b00f[_0x28fc6c];return _0x1a4f93;},a19_0x28fc(_0x98aab5,_0x5ace8c);}(function(_0x8e2801,_0x1c4cd5){const _0x14fe52=a19_0x28fc,_0x4e94f7=_0x8e2801();while(!![]){try{const _0x2235f0=parseInt(_0x14fe52(0x168))/0x1+parseInt(_0x14fe52(0x169))/0x2*(-parseInt(_0x14fe52(0x14e))/0x3)+parseInt(_0x14fe52(0x141))/0x4*(parseInt(_0x14fe52(0x16b))/0x5)+-parseInt(_0x14fe52(0x159))/0x6+-parseInt(_0x14fe52(0x158))/0x7*(parseInt(_0x14fe52(0x186))/0x8)+-parseInt(_0x14fe52(0x142))/0x9*(-parseInt(_0x14fe52(0x164))/0xa)+parseInt(_0x14fe52(0x17d))/0xb;if(_0x2235f0===_0x1c4cd5)break;else _0x4e94f7['push'](_0x4e94f7['shift']());}catch(_0x2656b5){_0x4e94f7['push'](_0x4e94f7['shift']());}}}(a19_0x34b0,0x42380));function a19_0x34b0(){const _0x488dd0=['grid-id','2870934jcqQgr','existsSync','readFileSync','WebSocket','OzUkK','replace','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','kylft','options','2893832TYPEMm','../../cloudproviders/utils','bZIdE','../../utils/instrumentationUtils','PcUEl','exit','skipTlsCertVerify','cWPyo','TBEoI','boolean','region','WqUDG','password','../../utils/utilityMethods','stop','info','unauthorised','handler','argv','stringify','Adding\x20Websocket\x20listeners','debug','jIYol','init-not-called','<UsernamePlaceholder>','help','ERROR','statusCode','628SLMMUV','9tlBLWW','AdtQd','stop-grid-called','LIxpP','../../config/logger','default','username','Stopping\x20grid\x20','AGMlZ','server-error','clusterRegion','kxoUd','717YmWcgn','epilogue','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','gridId','aeIDc','../../utils/webSocketUtils','vLkXA','bstackUsername','kOiTu','builder','7JkXfTl','339630BeLlwy','invalid-grid-id','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','bstackAccesskey','error','type','LkMLs','cloudProvider','name','description','cXZLu','216490bgBdIf','Browserstack','UxNoK','skip-tls-cert-verify','485146MEIiGU','1322USRwzE','clusterName','2540FmRKtn','addListeners','IYmEp','Stop\x20a\x20running\x20Automation\x20grid.','command','cVAni','../../config/constants','Skip\x20insecure\x20cert\x20verification.','Grid\x20stoppped.','SsfcV','usage','parse','../../utils/gridComponents','connectionTimeout','string','reconnecting-websocket','user'];a19_0x34b0=function(){return _0x488dd0;};return a19_0x34b0();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x2dcee3(0x17a)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x2dcee3(0x171)),{logger}=require(a19_0x2dcee3(0x146)),{getCredentialsPath,getGridDetails}=require(a19_0x2dcee3(0x132)),{scaleDownHubDeployment}=require(a19_0x2dcee3(0x177)),{sendInstrumentationEvent}=require(a19_0x2dcee3(0x189)),webSocketUtils=require(a19_0x2dcee3(0x153)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x2dcee3(0x187));exports[a19_0x2dcee3(0x16f)]='grid',exports['desc']=a19_0x2dcee3(0x16e),exports[a19_0x2dcee3(0x157)]=function(_0x4f8150){const _0x3fad73=a19_0x2dcee3,_0x29ecb0={};_0x29ecb0[_0x3fad73(0x152)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x29ecb0['bZIdE']=_0x3fad73(0x179),_0x29ecb0['AGMlZ']=_0x3fad73(0x172),_0x29ecb0['TBEoI']=_0x3fad73(0x12e),_0x29ecb0[_0x3fad73(0x181)]=_0x3fad73(0x13e);const _0x50488f=_0x29ecb0,_0x6e68c={};_0x6e68c[_0x3fad73(0x162)]=_0x50488f[_0x3fad73(0x152)],_0x6e68c[_0x3fad73(0x15e)]=_0x50488f[_0x3fad73(0x188)];const _0x5bda16={};_0x5bda16[_0x3fad73(0x162)]=_0x50488f[_0x3fad73(0x14a)],_0x5bda16['type']=_0x50488f[_0x3fad73(0x12d)],_0x5bda16[_0x3fad73(0x147)]=![];const _0x2db9c2={};return _0x2db9c2[_0x3fad73(0x17c)]=_0x6e68c,_0x2db9c2[_0x3fad73(0x167)]=_0x5bda16,_0x4f8150[_0x3fad73(0x175)](HELP_HEADER_MESSAGE[_0x3fad73(0x133)])[_0x3fad73(0x14f)](HELP_FOOTER_MESSAGE)[_0x3fad73(0x185)](_0x2db9c2)[_0x3fad73(0x13e)](_0x50488f[_0x3fad73(0x181)])[_0x3fad73(0x137)];},exports[a19_0x2dcee3(0x136)]=async function(_0x265c05){const _0x1ef1a7=a19_0x2dcee3,_0x26181a={'WqUDG':_0x1ef1a7(0x15b),'vLkXA':function(_0x1ef932){return _0x1ef932();},'cXZLu':_0x1ef1a7(0x183),'PcUEl':function(_0x1faeb9,_0x4dd582,_0x4b2422,_0xb3c6b,_0x4ee103,_0x549c39,_0x38acef){return _0x1faeb9(_0x4dd582,_0x4b2422,_0xb3c6b,_0x4ee103,_0x549c39,_0x38acef);},'AdtQd':_0x1ef1a7(0x144),'VbOKL':_0x1ef1a7(0x13c),'kxoUd':function(_0x490b4c,_0x7de1aa,_0x2e336f,_0x3d339f,_0x20d81f,_0x4e3d5d,_0x5d9cf6){return _0x490b4c(_0x7de1aa,_0x2e336f,_0x3d339f,_0x20d81f,_0x4e3d5d,_0x5d9cf6);},'KrMXi':function(_0x4c2c0d){return _0x4c2c0d();},'UxNoK':_0x1ef1a7(0x13d),'IYmEp':'<PasswordPlaceholder>','DyCPS':_0x1ef1a7(0x139),'aDzEr':function(_0x10cd65,_0x2e75e0,_0x3a78e6,_0xc9df04){return _0x10cd65(_0x2e75e0,_0x3a78e6,_0xc9df04);},'cWPyo':function(_0x255b79,_0x4c4186,_0x21cf45){return _0x255b79(_0x4c4186,_0x21cf45);},'LkMLs':_0x1ef1a7(0x173),'LIxpP':function(_0x4b0ff3,_0x5df8e0){return _0x4b0ff3===_0x5df8e0;},'SsfcV':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','kOiTu':_0x1ef1a7(0x135),'cVAni':function(_0x38b8ff,_0x2ab28c){return _0x38b8ff===_0x2ab28c;},'jIYol':_0x1ef1a7(0x15a),'kylft':_0x1ef1a7(0x14b)};let _0x337edf;try{!_0x265c05[_0x1ef1a7(0x151)]&&(logger[_0x1ef1a7(0x15d)](_0x26181a[_0x1ef1a7(0x130)]),process[_0x1ef1a7(0x18b)](0x1));!fs[_0x1ef1a7(0x17e)](_0x26181a[_0x1ef1a7(0x154)](getCredentialsPath))&&(logger[_0x1ef1a7(0x15d)](_0x26181a[_0x1ef1a7(0x163)]),await _0x26181a[_0x1ef1a7(0x18a)](sendInstrumentationEvent,_0x265c05,_0x26181a['AdtQd'],messageTypes[_0x1ef1a7(0x13f)],_0x26181a['VbOKL'],null,_0x265c05),process[_0x1ef1a7(0x18b)](0x1));logger[_0x1ef1a7(0x134)](_0x1ef1a7(0x149)+_0x265c05[_0x1ef1a7(0x151)]),await _0x26181a[_0x1ef1a7(0x14d)](sendInstrumentationEvent,_0x265c05,_0x26181a[_0x1ef1a7(0x143)],messageTypes['INFO'],null,null,_0x265c05);const _0xeaba49=JSON[_0x1ef1a7(0x176)](fs[_0x1ef1a7(0x17f)](_0x26181a['KrMXi'](getCredentialsPath)));global_registry[_0x1ef1a7(0x155)]=_0xeaba49[_0x1ef1a7(0x165)][_0x1ef1a7(0x148)],global_registry[_0x1ef1a7(0x15c)]=_0xeaba49['Browserstack']['password'];const _0x3fc704=WS_ENDPOINT['replace'](_0x26181a[_0x1ef1a7(0x166)],_0xeaba49['Browserstack'][_0x1ef1a7(0x148)])[_0x1ef1a7(0x182)](_0x26181a[_0x1ef1a7(0x16d)],_0xeaba49[_0x1ef1a7(0x165)][_0x1ef1a7(0x131)]),_0x15e9ab={};_0x15e9ab[_0x1ef1a7(0x180)]=ws,_0x15e9ab[_0x1ef1a7(0x178)]=0x36ee80,_0x337edf=new ReconnectingWebSocket(_0x3fc704,[],_0x15e9ab),logger[_0x1ef1a7(0x13a)](_0x26181a['DyCPS']),webSocketUtils[_0x1ef1a7(0x16c)](_0x337edf,_0x265c05[_0x1ef1a7(0x17b)],_0x265c05['password']);const [_0x1ae8be,_0x149804]=await _0x26181a['aDzEr'](getGridDetails,_0xeaba49[_0x1ef1a7(0x165)][_0x1ef1a7(0x148)],_0xeaba49[_0x1ef1a7(0x165)][_0x1ef1a7(0x131)],_0x265c05['gridId']);if(_0x149804){const _0x323912=_0x149804[_0x1ef1a7(0x134)];global_registry[_0x1ef1a7(0x160)]=_0x323912[_0x1ef1a7(0x160)],global_registry[_0x1ef1a7(0x14c)]=_0x323912[_0x1ef1a7(0x12f)],global_registry[_0x1ef1a7(0x16a)]=_0x323912['clusterName'];const _0x4db2ae=await _0x26181a['PcUEl'](getCloudProviderObject,_0x323912[_0x1ef1a7(0x160)],_0x323912[_0x1ef1a7(0x16a)],_0x323912[_0x1ef1a7(0x161)],_0x337edf,webSocketUtils,_0x265c05),[_0x42f31c,_0x4401a5,_0x54e767,_0x4c80d2,_0x45c0da,_0x4ea394]=await _0x26181a[_0x1ef1a7(0x18d)](createK8sClient,_0x4db2ae,_0x265c05[_0x1ef1a7(0x18c)]);await _0x26181a[_0x1ef1a7(0x18d)](scaleDownHubDeployment,_0x4401a5,_0x323912[_0x1ef1a7(0x161)]),logger[_0x1ef1a7(0x134)](_0x26181a[_0x1ef1a7(0x15f)]),process[_0x1ef1a7(0x18b)](0x0);}_0x26181a[_0x1ef1a7(0x145)](_0x1ae8be[_0x1ef1a7(0x140)],0x191)&&(logger['error'](_0x26181a[_0x1ef1a7(0x174)]),await _0x26181a['kxoUd'](sendInstrumentationEvent,_0x265c05,_0x26181a[_0x1ef1a7(0x143)],messageTypes[_0x1ef1a7(0x13f)],_0x26181a[_0x1ef1a7(0x156)],null,_0x265c05),process[_0x1ef1a7(0x18b)](0x1)),_0x26181a[_0x1ef1a7(0x170)](_0x1ae8be[_0x1ef1a7(0x140)],0x190)&&(logger[_0x1ef1a7(0x15d)](JSON[_0x1ef1a7(0x176)](_0x1ae8be['body'])['message']),await _0x26181a[_0x1ef1a7(0x14d)](sendInstrumentationEvent,_0x265c05,_0x26181a[_0x1ef1a7(0x143)],messageTypes[_0x1ef1a7(0x13f)],_0x26181a[_0x1ef1a7(0x13b)],null,_0x265c05),process[_0x1ef1a7(0x18b)](0x1)),logger[_0x1ef1a7(0x15d)](_0x1ef1a7(0x150)+JSON[_0x1ef1a7(0x138)](_0x1ae8be)),await _0x26181a[_0x1ef1a7(0x14d)](sendInstrumentationEvent,_0x265c05,_0x26181a[_0x1ef1a7(0x143)],messageTypes[_0x1ef1a7(0x13f)],_0x26181a[_0x1ef1a7(0x184)],_0x1ae8be,_0x265c05),process['exit'](0x1);}catch(_0x3682b5){const _0x2847d3='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x3682b5+'\x20\x0a'+JSON[_0x1ef1a7(0x138)](_0x3682b5['stack'])+'\x20';logger[_0x1ef1a7(0x15d)](_0x2847d3),process['exit'](0x1);}};
1
+ const a19_0x416f6b=a19_0x14ef;function a19_0x14ef(_0x860a21,_0x215f1c){const _0x3ead9b=a19_0x3ead();return a19_0x14ef=function(_0x14efe9,_0x5de34e){_0x14efe9=_0x14efe9-0x85;let _0x2d96ce=_0x3ead9b[_0x14efe9];return _0x2d96ce;},a19_0x14ef(_0x860a21,_0x215f1c);}function a19_0x3ead(){const _0x4b075f=['2739IGsZCC','Adding\x20Websocket\x20listeners','grid','YLCge','SAcGK','Grid\x20stoppped.','CzNdn','info','JwyQE','bstackAccesskey','../../cloudproviders/utils','563boaPSo','kuuSG','string','clusterRegion','message','YUQZK','XixRP','ERROR','existsSync','JMaab','username','KtACo','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','../../config/logger','2530829NiGJix','lXayF','xXsxw','cloudProvider','debug','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','epilogue','stringify','EqzIs','skipTlsCertVerify','Dbknk','jfQIz','wdeDg','command','clusterName','name','stop-grid-called','parse','handler','exit','../../utils/instrumentationUtils','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','reconnecting-websocket','ZVXDr','grid-id','HUlLP','usage','../../utils/createk8sClient','boolean','readFileSync','22ULEJVw','1697193ieOszk','statusCode','argv','<PasswordPlaceholder>','XBdCj','CJONB','connectionTimeout','init-not-called','Stopping\x20grid\x20','skip-tls-cert-verify','stack','2561170UMXWWI','../../config/constants','password','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','GygFJ','1064mvysvE','region','unauthorised','850uaKwFd','type','eurtJ','body','465680unONtT','eCQda','gridId','BGdiF','nqhdg','<UsernamePlaceholder>','../../utils/webSocketUtils','10yTImxe','cRrYk','xesFS','346680aFUnKO','description','smqom','../../utils/gridComponents','error','Skip\x20insecure\x20cert\x20verification.','replace','help','Browserstack','Stop\x20a\x20running\x20Automation\x20grid.','INFO'];a19_0x3ead=function(){return _0x4b075f;};return a19_0x3ead();}(function(_0x5232a6,_0x235d34){const _0x1cf9e4=a19_0x14ef,_0x17025a=_0x5232a6();while(!![]){try{const _0x1ea5a2=-parseInt(_0x1cf9e4(0x9b))/0x1*(-parseInt(_0x1cf9e4(0xdb))/0x2)+-parseInt(_0x1cf9e4(0x90))/0x3*(-parseInt(_0x1cf9e4(0xd8))/0x4)+-parseInt(_0x1cf9e4(0xe6))/0x5*(parseInt(_0x1cf9e4(0x85))/0x6)+-parseInt(_0x1cf9e4(0xa9))/0x7+-parseInt(_0x1cf9e4(0xdf))/0x8+-parseInt(_0x1cf9e4(0xc8))/0x9+-parseInt(_0x1cf9e4(0xd3))/0xa*(-parseInt(_0x1cf9e4(0xc7))/0xb);if(_0x1ea5a2===_0x235d34)break;else _0x17025a['push'](_0x17025a['shift']());}catch(_0x4d13e2){_0x17025a['push'](_0x17025a['shift']());}}}(a19_0x3ead,0x42089));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x416f6b(0xbf)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x416f6b(0xd4)),{logger}=require(a19_0x416f6b(0xa8)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require(a19_0x416f6b(0x88)),{sendInstrumentationEvent}=require(a19_0x416f6b(0xbd)),webSocketUtils=require(a19_0x416f6b(0xe5)),{createK8sClient}=require(a19_0x416f6b(0xc4)),{getCloudProviderObject}=require(a19_0x416f6b(0x9a));exports[a19_0x416f6b(0xb6)]=a19_0x416f6b(0x92),exports['desc']=a19_0x416f6b(0x8e),exports['builder']=function(_0x2bf610){const _0x26aab0=a19_0x416f6b,_0x1d6096={};_0x1d6096[_0x26aab0(0xd7)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x1d6096['JwyQE']=_0x26aab0(0x9d),_0x1d6096['lXayF']=_0x26aab0(0x8a),_0x1d6096['kuuSG']=_0x26aab0(0xc5),_0x1d6096[_0x26aab0(0xe3)]='help';const _0x4933b9=_0x1d6096,_0x415a2d={};_0x415a2d['description']=_0x4933b9[_0x26aab0(0xd7)],_0x415a2d[_0x26aab0(0xdc)]=_0x4933b9[_0x26aab0(0x98)];const _0x4b9f4a={};_0x4b9f4a[_0x26aab0(0x86)]=_0x4933b9[_0x26aab0(0xaa)],_0x4b9f4a[_0x26aab0(0xdc)]=_0x4933b9[_0x26aab0(0x9c)],_0x4b9f4a['default']=![];const _0x4f9089={};return _0x4f9089[_0x26aab0(0xc1)]=_0x415a2d,_0x4f9089[_0x26aab0(0xd1)]=_0x4b9f4a,_0x2bf610[_0x26aab0(0xc3)](HELP_HEADER_MESSAGE['stop'])[_0x26aab0(0xaf)](HELP_FOOTER_MESSAGE)['options'](_0x4f9089)[_0x26aab0(0x8c)](_0x4933b9[_0x26aab0(0xe3)])[_0x26aab0(0xca)];},exports[a19_0x416f6b(0xbb)]=async function(_0x23bd05){const _0x3cc31d=a19_0x416f6b,_0x275c8e={'wdeDg':_0x3cc31d(0xa7),'KtACo':function(_0xaaa828){return _0xaaa828();},'pppHg':_0x3cc31d(0xbe),'ZVXDr':function(_0x4dbc0c,_0x3032e3,_0x25a93a,_0x227bc3,_0x458082,_0x370567,_0x51a4fa){return _0x4dbc0c(_0x3032e3,_0x25a93a,_0x227bc3,_0x458082,_0x370567,_0x51a4fa);},'CzNdn':_0x3cc31d(0xb9),'SAcGK':_0x3cc31d(0xcf),'HUlLP':function(_0x41b675,_0x1bc73a,_0x2b6665,_0x2d63f2,_0x2baa06,_0x5a47e1,_0x49eb90){return _0x41b675(_0x1bc73a,_0x2b6665,_0x2d63f2,_0x2baa06,_0x5a47e1,_0x49eb90);},'CJONB':function(_0x528c0c){return _0x528c0c();},'cRrYk':_0x3cc31d(0xe4),'smqom':_0x3cc31d(0xcb),'eCQda':_0x3cc31d(0x91),'eurtJ':function(_0x6f7368,_0x4f0814,_0x9ec022,_0x59356f){return _0x6f7368(_0x4f0814,_0x9ec022,_0x59356f);},'xesFS':function(_0xcf8745,_0x359c79,_0x18f061,_0x572bdf,_0x57c19f,_0x111220,_0x159868){return _0xcf8745(_0x359c79,_0x18f061,_0x572bdf,_0x57c19f,_0x111220,_0x159868);},'XixRP':function(_0x3264df,_0x43aaaa,_0x375230){return _0x3264df(_0x43aaaa,_0x375230);},'JMaab':_0x3cc31d(0x95),'Dbknk':function(_0x53a656,_0x190def){return _0x53a656===_0x190def;},'YUQZK':_0x3cc31d(0xae),'EqzIs':_0x3cc31d(0xda),'XBdCj':function(_0x3d5687,_0x48d514){return _0x3d5687===_0x48d514;},'jfQIz':function(_0x32ed96,_0x3b8019,_0xe6e32,_0x482075,_0x574734,_0x4bdbfb,_0x3a8168){return _0x32ed96(_0x3b8019,_0xe6e32,_0x482075,_0x574734,_0x4bdbfb,_0x3a8168);},'xXsxw':'invalid-grid-id','BGdiF':function(_0x1587e7,_0x3a3462,_0x2e14bc,_0x5b297f,_0x19b9fe,_0x39b459,_0x39a13d){return _0x1587e7(_0x3a3462,_0x2e14bc,_0x5b297f,_0x19b9fe,_0x39b459,_0x39a13d);},'YLCge':'server-error'};let _0x4f194d;try{!_0x23bd05['gridId']&&(logger[_0x3cc31d(0x89)](_0x275c8e[_0x3cc31d(0xb5)]),process[_0x3cc31d(0xbc)](0x1));!fs[_0x3cc31d(0xa3)](_0x275c8e[_0x3cc31d(0xa6)](getCredentialsPath))&&(logger[_0x3cc31d(0x89)](_0x275c8e['pppHg']),await _0x275c8e[_0x3cc31d(0xc0)](sendInstrumentationEvent,_0x23bd05,_0x275c8e['CzNdn'],messageTypes['ERROR'],_0x275c8e[_0x3cc31d(0x94)],null,_0x23bd05),process[_0x3cc31d(0xbc)](0x1));logger[_0x3cc31d(0x97)](_0x3cc31d(0xd0)+_0x23bd05[_0x3cc31d(0xe1)]),await _0x275c8e[_0x3cc31d(0xc2)](sendInstrumentationEvent,_0x23bd05,_0x275c8e[_0x3cc31d(0x96)],messageTypes[_0x3cc31d(0x8f)],null,null,_0x23bd05);const _0xc2ac5d=JSON[_0x3cc31d(0xba)](fs[_0x3cc31d(0xc6)](_0x275c8e[_0x3cc31d(0xcd)](getCredentialsPath)));global_registry['bstackUsername']=_0xc2ac5d[_0x3cc31d(0x8d)][_0x3cc31d(0xa5)],global_registry[_0x3cc31d(0x99)]=_0xc2ac5d['Browserstack']['password'];const _0x1dec90=WS_ENDPOINT[_0x3cc31d(0x8b)](_0x275c8e[_0x3cc31d(0xe7)],_0xc2ac5d['Browserstack'][_0x3cc31d(0xa5)])[_0x3cc31d(0x8b)](_0x275c8e[_0x3cc31d(0x87)],_0xc2ac5d[_0x3cc31d(0x8d)][_0x3cc31d(0xd5)]),_0x32c91e={};_0x32c91e['WebSocket']=ws,_0x32c91e[_0x3cc31d(0xce)]=0x36ee80,_0x4f194d=new ReconnectingWebSocket(_0x1dec90,[],_0x32c91e),logger[_0x3cc31d(0xad)](_0x275c8e[_0x3cc31d(0xe0)]),webSocketUtils['addListeners'](_0x4f194d,_0x23bd05['user'],_0x23bd05[_0x3cc31d(0xd5)]);const [_0x47f89e,_0x5cead1]=await _0x275c8e[_0x3cc31d(0xdd)](getGridDetails,_0xc2ac5d['Browserstack'][_0x3cc31d(0xa5)],_0xc2ac5d['Browserstack'][_0x3cc31d(0xd5)],_0x23bd05[_0x3cc31d(0xe1)]);if(_0x5cead1){const _0x4bd5c7=_0x5cead1[_0x3cc31d(0x97)];global_registry[_0x3cc31d(0xac)]=_0x4bd5c7['cloudProvider'],global_registry[_0x3cc31d(0x9e)]=_0x4bd5c7[_0x3cc31d(0xd9)],global_registry[_0x3cc31d(0xb7)]=_0x4bd5c7[_0x3cc31d(0xb7)];const _0x23bd74=await _0x275c8e[_0x3cc31d(0xe8)](getCloudProviderObject,_0x4bd5c7[_0x3cc31d(0xac)],_0x4bd5c7['clusterName'],_0x4bd5c7[_0x3cc31d(0xb8)],_0x4f194d,webSocketUtils,_0x23bd05),[_0x1db393,_0x481c5c,_0x30afb6,_0x55c1b8,_0xf14549,_0x54d0ef]=await _0x275c8e[_0x3cc31d(0xa1)](createK8sClient,_0x23bd74,_0x23bd05[_0x3cc31d(0xb2)]);await _0x275c8e[_0x3cc31d(0xa1)](scaleDownHubDeployment,_0x481c5c,_0x4bd5c7[_0x3cc31d(0xb8)]),logger['info'](_0x275c8e[_0x3cc31d(0xa4)]),process[_0x3cc31d(0xbc)](0x0);}_0x275c8e[_0x3cc31d(0xb3)](_0x47f89e[_0x3cc31d(0xc9)],0x191)&&(logger[_0x3cc31d(0x89)](_0x275c8e[_0x3cc31d(0xa0)]),await _0x275c8e[_0x3cc31d(0xc2)](sendInstrumentationEvent,_0x23bd05,_0x275c8e[_0x3cc31d(0x96)],messageTypes[_0x3cc31d(0xa2)],_0x275c8e[_0x3cc31d(0xb1)],null,_0x23bd05),process[_0x3cc31d(0xbc)](0x1)),_0x275c8e[_0x3cc31d(0xcc)](_0x47f89e[_0x3cc31d(0xc9)],0x190)&&(logger[_0x3cc31d(0x89)](JSON['parse'](_0x47f89e[_0x3cc31d(0xde)])[_0x3cc31d(0x9f)]),await _0x275c8e[_0x3cc31d(0xb4)](sendInstrumentationEvent,_0x23bd05,_0x275c8e[_0x3cc31d(0x96)],messageTypes[_0x3cc31d(0xa2)],_0x275c8e[_0x3cc31d(0xab)],null,_0x23bd05),process[_0x3cc31d(0xbc)](0x1)),logger[_0x3cc31d(0x89)](_0x3cc31d(0xd6)+JSON['stringify'](_0x47f89e)),await _0x275c8e[_0x3cc31d(0xe2)](sendInstrumentationEvent,_0x23bd05,_0x275c8e[_0x3cc31d(0x96)],messageTypes[_0x3cc31d(0xa2)],_0x275c8e[_0x3cc31d(0x93)],_0x47f89e,_0x23bd05),process[_0x3cc31d(0xbc)](0x1);}catch(_0x5d0ed9){const _0x519064='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x5d0ed9+'\x20\x0a'+JSON[_0x3cc31d(0xb0)](_0x5d0ed9[_0x3cc31d(0xd2)])+'\x20';logger[_0x3cc31d(0x89)](_0x519064),process[_0x3cc31d(0xbc)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x244864=a20_0x5069;(function(_0xd469ae,_0x3cf1fe){const _0x470109=a20_0x5069,_0x100ee2=_0xd469ae();while(!![]){try{const _0x5231c5=parseInt(_0x470109(0x12d))/0x1*(-parseInt(_0x470109(0x120))/0x2)+-parseInt(_0x470109(0xed))/0x3+-parseInt(_0x470109(0x136))/0x4*(parseInt(_0x470109(0xf4))/0x5)+parseInt(_0x470109(0xfb))/0x6*(parseInt(_0x470109(0x12e))/0x7)+parseInt(_0x470109(0x133))/0x8*(-parseInt(_0x470109(0x128))/0x9)+parseInt(_0x470109(0x111))/0xa*(parseInt(_0x470109(0x105))/0xb)+parseInt(_0x470109(0x10f))/0xc;if(_0x5231c5===_0x3cf1fe)break;else _0x100ee2['push'](_0x100ee2['shift']());}catch(_0x4a8d60){_0x100ee2['push'](_0x100ee2['shift']());}}}(a20_0x404c,0x9e848),require(a20_0x244864(0xfc))[a20_0x244864(0x100)](),exports[a20_0x244864(0xf7)]=process[a20_0x244864(0x119)][a20_0x244864(0xf7)]||a20_0x244864(0x116),exports[a20_0x244864(0x134)]=process['env'][a20_0x244864(0x134)]||'api.browserstack.com',exports[a20_0x244864(0x10c)]=process[a20_0x244864(0x119)][a20_0x244864(0x10c)]||a20_0x244864(0xe8),exports[a20_0x244864(0x102)]=a20_0x244864(0x112)+this[a20_0x244864(0x10c)]+a20_0x244864(0x110),exports['CP_CONFIG_FILE']='credentials',exports['IAM_USER_NAME']=a20_0x244864(0xfa),exports[a20_0x244864(0xe6)]=a20_0x244864(0xec),exports['AWS']=a20_0x244864(0xee),exports[a20_0x244864(0x118)]=a20_0x244864(0x104),exports['CLUSTER_AUTOSCALER_STACK_NAME']='BSTACK-ATS-CLUSTER-AUTOSCALER',exports[a20_0x244864(0x108)]=a20_0x244864(0xf8),exports[a20_0x244864(0xef)]=a20_0x244864(0xe4),exports[a20_0x244864(0x121)]=a20_0x244864(0x139));const a20_0xd55634={};a20_0xd55634[a20_0x244864(0x11b)]=a20_0x244864(0xf0),a20_0xd55634[a20_0x244864(0x126)]=a20_0x244864(0x11a);const a20_0x3a0843={};a20_0x3a0843['Key']=a20_0x244864(0x13a),a20_0x3a0843[a20_0x244864(0x126)]='BrowserStack-Automate-TurboScale';const common_hst_tags_list=[a20_0xd55634,a20_0x3a0843];if(process[a20_0x244864(0x119)][a20_0x244864(0xf2)]){const parsedTags=process[a20_0x244864(0x119)][a20_0x244864(0xf2)][a20_0x244864(0x125)](',');parsedTags[a20_0x244864(0x13c)](_0x1b1fbf=>{const _0x2ab057=a20_0x244864,_0x37dbfd=_0x1b1fbf[_0x2ab057(0x125)](':'),_0x3bc0b4={};_0x3bc0b4[_0x2ab057(0x11b)]=_0x37dbfd[0x0],_0x3bc0b4['Value']=_0x37dbfd[0x1],common_hst_tags_list[_0x2ab057(0xf3)](_0x3bc0b4);});}exports[a20_0x244864(0xe9)]=common_hst_tags_list;const a20_0x34a91c={};function a20_0x404c(){const _0x373436=['\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','28326552OMSDmi','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','4510JPZFLI','wss://','global_registry','gridProfile','success','grid.browserstack.com','start','CLUSTER_DEP_STACK_NAME','env','BrowserStack','Key','init','connect','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','80566YSZXJs','GCP','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','split','Value','WARNING','65916XQDZEV','REDACTED','AWS','RAW_ARGS_REGEX','SUPPORTED_CLOUD_PROVIDERS','25YXLiBm','385xWQdpc','root','delete','HELP_HEADER_MESSAGE','stop','688MKNTLJ','BS_API_URL','grid','217588uvqHZI','HELP_FOOTER_MESSAGE','BrowserStack-Automate-TurboScale','gcp','browserstack:service','[REDACTED]','forEach','gridUrl','LINK_MESSAGE','create','CLI_RUN_STARTED','azure','HST_CLUSTER_TAGS','DEFAULT_GRID_NAME','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','grid-api.browserstack.com','COMMON_HST_TAGS','GRID_URL','list','high-scale-grid','2339670FEzyLE','aws','AZURE','browserstack:managedBy','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','TURBOSCALE_CUSTOM_TAGS','push','60dDAPNn','info','error','DASHBOARD_ENDPOINT','browserstack-turboscale-grid','configure','BrowserStackIAMUser','25674aZNwZX','dotenv','unknown','NULL','messageTypes','config','WS_EVENTS','WS_ENDPOINT','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','BSTACK-ATS-CLUSTER','27390jkpkMo','CLI_RUN_FINISHED','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','TURBOSCALE_DEPLOYMENT','UNKNOWN','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','AG_API_URL','log'];a20_0x404c=function(){return _0x373436;};return a20_0x404c();}function a20_0x5069(_0x22ea14,_0x507949){const _0x404c57=a20_0x404c();return a20_0x5069=function(_0x50699e,_0x347b48){_0x50699e=_0x50699e-0xe2;let _0x40988a=_0x404c57[_0x50699e];return _0x40988a;},a20_0x5069(_0x22ea14,_0x507949);}a20_0x34a91c['browserstack:managedBy']='BrowserStack',a20_0x34a91c[a20_0x244864(0x13a)]=a20_0x244864(0x138),exports[a20_0x244864(0xe5)]=a20_0x34a91c,exports[a20_0x244864(0x12c)]=[this[a20_0x244864(0x12a)]];const a20_0x3d7ba8={};a20_0x3d7ba8['LOG']=a20_0x244864(0x10d),a20_0x3d7ba8['RESOURCES']='resourceInfo',a20_0x3d7ba8[a20_0x244864(0xea)]=a20_0x244864(0x13d),a20_0x3d7ba8[a20_0x244864(0xe3)]='cliRunStarted',a20_0x3d7ba8[a20_0x244864(0x106)]='cliRunFinished',exports[a20_0x244864(0x101)]=a20_0x3d7ba8,exports[a20_0x244864(0x113)]={},exports[a20_0x244864(0x13e)]=a20_0x244864(0x123);const a20_0x79c9a1={};a20_0x79c9a1[a20_0x244864(0x12f)]=a20_0x244864(0x11f)+this['LINK_MESSAGE'],a20_0x79c9a1[a20_0x244864(0x11c)]=a20_0x244864(0xf1)+this[a20_0x244864(0x13e)],a20_0x79c9a1[a20_0x244864(0xf9)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.'+this[a20_0x244864(0x13e)],a20_0x79c9a1[a20_0x244864(0xe2)]=a20_0x244864(0x103)+this[a20_0x244864(0x13e)],a20_0x79c9a1[a20_0x244864(0xeb)]={},a20_0x79c9a1[a20_0x244864(0x130)]=a20_0x244864(0x107)+this[a20_0x244864(0x13e)],a20_0x79c9a1[a20_0x244864(0x11d)]=a20_0x244864(0xe7)+this[a20_0x244864(0x13e)],a20_0x79c9a1[a20_0x244864(0x117)]=a20_0x244864(0x10b)+this[a20_0x244864(0x13e)],a20_0x79c9a1[a20_0x244864(0x132)]=a20_0x244864(0x10a)+this[a20_0x244864(0x13e)],a20_0x79c9a1[a20_0x244864(0xeb)][a20_0x244864(0x12f)]=a20_0x244864(0x10e)+this[a20_0x244864(0x13e)],a20_0x79c9a1[a20_0x244864(0xeb)][a20_0x244864(0x135)]=a20_0x244864(0x124)+this['LINK_MESSAGE'],a20_0x79c9a1[a20_0x244864(0xeb)][a20_0x244864(0x114)]=a20_0x244864(0x11e)+this[a20_0x244864(0x13e)],exports[a20_0x244864(0x131)]=a20_0x79c9a1,exports[a20_0x244864(0x137)]=a20_0x244864(0x122);const a20_0x22c47f={};a20_0x22c47f['SUCCESS']=a20_0x244864(0x115),a20_0x22c47f['ERROR']=a20_0x244864(0xf6),a20_0x22c47f['INFO']=a20_0x244864(0xf5),a20_0x22c47f[a20_0x244864(0x127)]='warning',a20_0x22c47f[a20_0x244864(0x109)]=a20_0x244864(0xfd),a20_0x22c47f[a20_0x244864(0xfe)]=null,exports[a20_0x244864(0xff)]=a20_0x22c47f,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x244864(0x12b)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x244864(0x129)]=a20_0x244864(0x13b);
1
+ const a20_0x572f3c=a20_0x190e;(function(_0x1803e9,_0x3ddd05){const _0x4d9b1f=a20_0x190e,_0x36c004=_0x1803e9();while(!![]){try{const _0x5cd8d6=-parseInt(_0x4d9b1f(0xd4))/0x1*(parseInt(_0x4d9b1f(0xa6))/0x2)+-parseInt(_0x4d9b1f(0xc8))/0x3+parseInt(_0x4d9b1f(0xaf))/0x4+-parseInt(_0x4d9b1f(0xe7))/0x5*(parseInt(_0x4d9b1f(0xdd))/0x6)+-parseInt(_0x4d9b1f(0xd9))/0x7+parseInt(_0x4d9b1f(0xb9))/0x8+parseInt(_0x4d9b1f(0xed))/0x9;if(_0x5cd8d6===_0x3ddd05)break;else _0x36c004['push'](_0x36c004['shift']());}catch(_0x126ffd){_0x36c004['push'](_0x36c004['shift']());}}}(a20_0xa4d5,0x6da7b),require('dotenv')[a20_0x572f3c(0xda)](),exports[a20_0x572f3c(0xef)]=process[a20_0x572f3c(0xac)][a20_0x572f3c(0xef)]||a20_0x572f3c(0xa1),exports[a20_0x572f3c(0xea)]=process[a20_0x572f3c(0xac)]['BS_API_URL']||a20_0x572f3c(0xbf),exports[a20_0x572f3c(0xe3)]=process[a20_0x572f3c(0xac)][a20_0x572f3c(0xe3)]||a20_0x572f3c(0xa3),exports[a20_0x572f3c(0xb6)]='wss://'+this[a20_0x572f3c(0xe3)]+a20_0x572f3c(0xa9),exports['CP_CONFIG_FILE']=a20_0x572f3c(0xb4),exports[a20_0x572f3c(0xd7)]='BrowserStackIAMUser',exports['DEFAULT_GRID_NAME']='high-scale-grid',exports[a20_0x572f3c(0xcb)]=a20_0x572f3c(0xd2),exports[a20_0x572f3c(0xb2)]=a20_0x572f3c(0xa0),exports['CLUSTER_AUTOSCALER_STACK_NAME']=a20_0x572f3c(0xbb),exports[a20_0x572f3c(0xc2)]=a20_0x572f3c(0xde),exports['TURBOSCALE_DEPLOYMENT']=a20_0x572f3c(0xc9),exports[a20_0x572f3c(0xc7)]=a20_0x572f3c(0xab),exports['GCP']=a20_0x572f3c(0xad));const a20_0x28d711={};a20_0x28d711[a20_0x572f3c(0xe9)]=a20_0x572f3c(0xbd),a20_0x28d711[a20_0x572f3c(0xa2)]=a20_0x572f3c(0xbc);const a20_0x370365={};a20_0x370365[a20_0x572f3c(0xe9)]=a20_0x572f3c(0xb5),a20_0x370365['Value']=a20_0x572f3c(0xb0);const common_hst_tags_list=[a20_0x28d711,a20_0x370365];if(process[a20_0x572f3c(0xac)][a20_0x572f3c(0xaa)]){const parsedTags=process[a20_0x572f3c(0xac)]['TURBOSCALE_CUSTOM_TAGS']['split'](',');parsedTags[a20_0x572f3c(0xd3)](_0x2e6ec3=>{const _0x55659e=a20_0x572f3c,_0x33f92c=_0x2e6ec3[_0x55659e(0xe1)](':'),_0xdabd5={};_0xdabd5[_0x55659e(0xe9)]=_0x33f92c[0x0],_0xdabd5[_0x55659e(0xa2)]=_0x33f92c[0x1],common_hst_tags_list[_0x55659e(0xa7)](_0xdabd5);});}exports['COMMON_HST_TAGS']=common_hst_tags_list;const a20_0x514b96={};a20_0x514b96[a20_0x572f3c(0xbd)]=a20_0x572f3c(0xbc),a20_0x514b96['browserstack:service']=a20_0x572f3c(0xb0),exports[a20_0x572f3c(0xdb)]=a20_0x514b96,exports[a20_0x572f3c(0xa8)]=[this[a20_0x572f3c(0xcb)]];function a20_0xa4d5(){const _0x330e64=['config','HST_CLUSTER_TAGS','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','93894VxIojP','BSTACK-ATS-CLUSTER-HUB-HA','RAW_ARGS_REGEX','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','split','warning','AG_API_URL','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','LINK_MESSAGE','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','145QSlHuW','info','Key','BS_API_URL','configure','CLI_RUN_FINISHED','11998935ioJJWe','unknown','DASHBOARD_ENDPOINT','init','create','BSTACK-ATS-CLUSTER','grid.browserstack.com','Value','grid-api.browserstack.com','SUCCESS','grid','18nsQAnI','push','SUPPORTED_CLOUD_PROVIDERS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','TURBOSCALE_CUSTOM_TAGS','azure','env','gcp','INFO','378700eUTMEE','BrowserStack-Automate-TurboScale','gridProfile','CLUSTER_DEP_STACK_NAME','gridUrl','credentials','browserstack:service','WS_ENDPOINT','RESOURCES','success','2498280GNgSav','delete','BSTACK-ATS-CLUSTER-AUTOSCALER','BrowserStack','browserstack:managedBy','list','api.browserstack.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','resourceInfo','CLUSTER_HUB_HA_STACK_NAME','root','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','cliRunFinished','cliRunStarted','AZURE','543507shRqRF','browserstack-turboscale-grid','ERROR','AWS','HELP_HEADER_MESSAGE','GRID_URL','CLI_RUN_STARTED','HELP_FOOTER_MESSAGE','global_registry','CLI_ARGS_REGEX','aws','forEach','17496BKXKOp','[REDACTED]','LOG','IAM_USER_NAME','start','3490018mcAnOU'];a20_0xa4d5=function(){return _0x330e64;};return a20_0xa4d5();}const a20_0x216158={};function a20_0x190e(_0xf40dd3,_0x462212){const _0xa4d514=a20_0xa4d5();return a20_0x190e=function(_0x190eac,_0x3897c5){_0x190eac=_0x190eac-0x9f;let _0x18a905=_0xa4d514[_0x190eac];return _0x18a905;},a20_0x190e(_0xf40dd3,_0x462212);}a20_0x216158[a20_0x572f3c(0xd6)]='log',a20_0x216158[a20_0x572f3c(0xb7)]=a20_0x572f3c(0xc1),a20_0x216158[a20_0x572f3c(0xcd)]=a20_0x572f3c(0xb3),a20_0x216158[a20_0x572f3c(0xce)]=a20_0x572f3c(0xc6),a20_0x216158[a20_0x572f3c(0xec)]=a20_0x572f3c(0xc5),exports['WS_EVENTS']=a20_0x216158,exports[a20_0x572f3c(0xd0)]={},exports[a20_0x572f3c(0xe5)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a20_0x31b85d={};a20_0x31b85d[a20_0x572f3c(0xc3)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a20_0x572f3c(0xe5)],a20_0x31b85d[a20_0x572f3c(0xf0)]=a20_0x572f3c(0xc0)+this[a20_0x572f3c(0xe5)],a20_0x31b85d[a20_0x572f3c(0xeb)]=a20_0x572f3c(0xe0)+this[a20_0x572f3c(0xe5)],a20_0x31b85d[a20_0x572f3c(0x9f)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a20_0x572f3c(0xe5)],a20_0x31b85d[a20_0x572f3c(0xbe)]={},a20_0x31b85d[a20_0x572f3c(0xba)]='\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.'+this['LINK_MESSAGE'],a20_0x31b85d['connect']='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a20_0x572f3c(0xe5)],a20_0x31b85d[a20_0x572f3c(0xd8)]=a20_0x572f3c(0xe4)+this['LINK_MESSAGE'],a20_0x31b85d['stop']=a20_0x572f3c(0xdc)+this[a20_0x572f3c(0xe5)],a20_0x31b85d[a20_0x572f3c(0xbe)][a20_0x572f3c(0xc3)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.'+this[a20_0x572f3c(0xe5)],a20_0x31b85d[a20_0x572f3c(0xbe)][a20_0x572f3c(0xa5)]=a20_0x572f3c(0xc4)+this[a20_0x572f3c(0xe5)],a20_0x31b85d[a20_0x572f3c(0xbe)][a20_0x572f3c(0xb1)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this['LINK_MESSAGE'],exports[a20_0x572f3c(0xcc)]=a20_0x31b85d,exports[a20_0x572f3c(0xcf)]=a20_0x572f3c(0xe6);const a20_0x76e9ed={};a20_0x76e9ed[a20_0x572f3c(0xa4)]=a20_0x572f3c(0xb8),a20_0x76e9ed[a20_0x572f3c(0xca)]='error',a20_0x76e9ed[a20_0x572f3c(0xae)]=a20_0x572f3c(0xe8),a20_0x76e9ed['WARNING']=a20_0x572f3c(0xe2),a20_0x76e9ed['UNKNOWN']=a20_0x572f3c(0xee),a20_0x76e9ed['NULL']=null,exports['messageTypes']=a20_0x76e9ed,exports[a20_0x572f3c(0xd1)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x572f3c(0xdf)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports['REDACTED']=a20_0x572f3c(0xd5);
@@ -1 +1 @@
1
- const a21_0x33d701=a21_0x66f0;(function(_0xc77b76,_0x141e4d){const _0x3d77a1=a21_0x66f0,_0x32553d=_0xc77b76();while(!![]){try{const _0x3f2b8e=-parseInt(_0x3d77a1(0x1b3))/0x1+parseInt(_0x3d77a1(0x1b5))/0x2*(-parseInt(_0x3d77a1(0x1c3))/0x3)+-parseInt(_0x3d77a1(0x1bc))/0x4+-parseInt(_0x3d77a1(0x1b7))/0x5+-parseInt(_0x3d77a1(0x1c1))/0x6*(-parseInt(_0x3d77a1(0x1c4))/0x7)+-parseInt(_0x3d77a1(0x1c5))/0x8*(parseInt(_0x3d77a1(0x1b2))/0x9)+parseInt(_0x3d77a1(0x1b4))/0xa;if(_0x3f2b8e===_0x141e4d)break;else _0x32553d['push'](_0x32553d['shift']());}catch(_0x2eb5c7){_0x32553d['push'](_0x32553d['shift']());}}}(a21_0x42c8,0x74f16));function a21_0x42c8(){const _0x48821e=['printf','442335yvCygE','winston','timestamp','events.log','level','1379904bsQibH','Console','usage.log','colorize','debug','234jCfkIC','combine','183477Dmxxdk','146783xVPFqd','176SGhTuK','File','existsSync','console.info','log','createLogger','mkdirSync','message','transports','name','\x20-\x20','format','fileLogger','logger','join','YYYY-MM-DD\x20HH:mm:ss','217233LbWbBG','483481twcaLl','11703040jsQrJe','2owmZGG'];a21_0x42c8=function(){return _0x48821e;};return a21_0x42c8();}const winston=require(a21_0x33d701(0x1b8)),fs=require('fs'),path=require('path'),logDir=a21_0x33d701(0x1a6);!fs[a21_0x33d701(0x1a4)](logDir)&&fs[a21_0x33d701(0x1a8)](logDir);const a21_0x8b0d9e={};a21_0x8b0d9e[a21_0x33d701(0x1ad)]=a21_0x33d701(0x1b1);function a21_0x66f0(_0x47a96d,_0x24514f){const _0x42c8ef=a21_0x42c8();return a21_0x66f0=function(_0x66f0f3,_0x96a8a){_0x66f0f3=_0x66f0f3-0x1a3;let _0x35e7c2=_0x42c8ef[_0x66f0f3];return _0x35e7c2;},a21_0x66f0(_0x47a96d,_0x24514f);}const a21_0x394f39={};a21_0x394f39[a21_0x33d701(0x1bb)]=!![];const a21_0x1ebb96={};a21_0x1ebb96[a21_0x33d701(0x1ab)]=a21_0x33d701(0x1a5),exports[a21_0x33d701(0x1af)]=new winston[(a21_0x33d701(0x1a7))]({'format':winston['format'][a21_0x33d701(0x1c2)](winston[a21_0x33d701(0x1ad)][a21_0x33d701(0x1b9)](a21_0x8b0d9e),winston['format'][a21_0x33d701(0x1bf)](a21_0x394f39),winston[a21_0x33d701(0x1ad)][a21_0x33d701(0x1b6)](_0x55f90a=>_0x55f90a[a21_0x33d701(0x1b9)]+a21_0x33d701(0x1ac)+_0x55f90a['level']+':\x20'+_0x55f90a[a21_0x33d701(0x1a9)])),'transports':[new winston[(a21_0x33d701(0x1aa))][(a21_0x33d701(0x1bd))](a21_0x1ebb96),new winston[(a21_0x33d701(0x1aa))][(a21_0x33d701(0x1a3))]({'filename':path[a21_0x33d701(0x1b0)](logDir,a21_0x33d701(0x1ba)),'level':a21_0x33d701(0x1c0)})]});const winstonFileLoggerParams={'transports':[new winston['transports']['File']({'filename':path[a21_0x33d701(0x1b0)](logDir,a21_0x33d701(0x1be)),'level':a21_0x33d701(0x1c0)})]};exports[a21_0x33d701(0x1ae)]=new winston[(a21_0x33d701(0x1a7))](winstonFileLoggerParams);
1
+ const a21_0xbca5f2=a21_0x4e13;function a21_0x5961(){const _0x200b2b=['usage.log','YYYY-MM-DD\x20HH:mm:ss','2136680dUtkBf','colorize','format','4748qUUQFW','6qzUtyJ','createLogger','mkdirSync','49275tuDQNr','winston','\x20-\x20','transports','363uUVWUI','3027514zyRnxy','debug','7870808aRQBmn','File','console.info','name','timestamp','92GLvbGI','message','level','logger','198368DRjiRl','434335XZBYaP','join','90fXwAyf','printf','events.log','Console'];a21_0x5961=function(){return _0x200b2b;};return a21_0x5961();}(function(_0x422b73,_0x3fa199){const _0x5d1b02=a21_0x4e13,_0x16ec21=_0x422b73();while(!![]){try{const _0x494ebe=-parseInt(_0x5d1b02(0xaf))/0x1+parseInt(_0x5d1b02(0xba))/0x2*(-parseInt(_0x5d1b02(0xc2))/0x3)+-parseInt(_0x5d1b02(0xaa))/0x4*(parseInt(_0x5d1b02(0xbe))/0x5)+parseInt(_0x5d1b02(0xbb))/0x6*(parseInt(_0x5d1b02(0xc3))/0x7)+parseInt(_0x5d1b02(0xae))/0x8*(parseInt(_0x5d1b02(0xb1))/0x9)+-parseInt(_0x5d1b02(0xb7))/0xa+parseInt(_0x5d1b02(0xc5))/0xb;if(_0x494ebe===_0x3fa199)break;else _0x16ec21['push'](_0x16ec21['shift']());}catch(_0x2d404b){_0x16ec21['push'](_0x16ec21['shift']());}}}(a21_0x5961,0x39254));function a21_0x4e13(_0x5ada58,_0x5d8044){const _0x59619b=a21_0x5961();return a21_0x4e13=function(_0x4e13a1,_0x523b69){_0x4e13a1=_0x4e13a1-0xaa;let _0x4adf6c=_0x59619b[_0x4e13a1];return _0x4adf6c;},a21_0x4e13(_0x5ada58,_0x5d8044);}const winston=require(a21_0xbca5f2(0xbf)),fs=require('fs'),path=require('path'),logDir='log';!fs['existsSync'](logDir)&&fs[a21_0xbca5f2(0xbd)](logDir);const a21_0x392e26={};a21_0x392e26[a21_0xbca5f2(0xb9)]=a21_0xbca5f2(0xb6);const a21_0x204f47={};a21_0x204f47[a21_0xbca5f2(0xac)]=!![];const a21_0x278abc={};a21_0x278abc[a21_0xbca5f2(0xc8)]=a21_0xbca5f2(0xc7),exports[a21_0xbca5f2(0xad)]=new winston[(a21_0xbca5f2(0xbc))]({'format':winston[a21_0xbca5f2(0xb9)]['combine'](winston[a21_0xbca5f2(0xb9)][a21_0xbca5f2(0xc9)](a21_0x392e26),winston[a21_0xbca5f2(0xb9)][a21_0xbca5f2(0xb8)](a21_0x204f47),winston[a21_0xbca5f2(0xb9)][a21_0xbca5f2(0xb2)](_0x411870=>_0x411870[a21_0xbca5f2(0xc9)]+a21_0xbca5f2(0xc0)+_0x411870[a21_0xbca5f2(0xac)]+':\x20'+_0x411870[a21_0xbca5f2(0xab)])),'transports':[new winston[(a21_0xbca5f2(0xc1))][(a21_0xbca5f2(0xb4))](a21_0x278abc),new winston[(a21_0xbca5f2(0xc1))][(a21_0xbca5f2(0xc6))]({'filename':path[a21_0xbca5f2(0xb0)](logDir,a21_0xbca5f2(0xb3)),'level':a21_0xbca5f2(0xc4)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0xbca5f2(0xc1))][(a21_0xbca5f2(0xc6))]({'filename':path[a21_0xbca5f2(0xb0)](logDir,a21_0xbca5f2(0xb5)),'level':a21_0xbca5f2(0xc4)})]};exports['fileLogger']=new winston[(a21_0xbca5f2(0xbc))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0x12af3f=a22_0x7669;(function(_0x5a1799,_0x53e925){const _0x5d2b76=a22_0x7669,_0x54ccec=_0x5a1799();while(!![]){try{const _0x3364f1=-parseInt(_0x5d2b76(0x12d))/0x1*(-parseInt(_0x5d2b76(0x123))/0x2)+parseInt(_0x5d2b76(0x121))/0x3+-parseInt(_0x5d2b76(0x125))/0x4+parseInt(_0x5d2b76(0x124))/0x5*(-parseInt(_0x5d2b76(0x11c))/0x6)+-parseInt(_0x5d2b76(0x128))/0x7*(-parseInt(_0x5d2b76(0x11f))/0x8)+-parseInt(_0x5d2b76(0x11e))/0x9*(parseInt(_0x5d2b76(0x11b))/0xa)+parseInt(_0x5d2b76(0x120))/0xb*(parseInt(_0x5d2b76(0x12b))/0xc);if(_0x3364f1===_0x53e925)break;else _0x54ccec['push'](_0x54ccec['shift']());}catch(_0x7ccb7d){_0x54ccec['push'](_0x54ccec['shift']());}}}(a22_0x3b0e,0x32907));function a22_0x7669(_0x425d1a,_0x4629f5){const _0x3b0ef1=a22_0x3b0e();return a22_0x7669=function(_0x76690e,_0x12b508){_0x76690e=_0x76690e-0x11a;let _0x3c13dc=_0x3b0ef1[_0x76690e];return _0x3c13dc;},a22_0x7669(_0x425d1a,_0x4629f5);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a22_0x12af3f(0x12c)][a22_0x12af3f(0x11a)]=0x1;function run(_0x22f1ba){const _0x293296=a22_0x12af3f,_0x46dcd3={};_0x46dcd3[_0x293296(0x122)]=_0x293296(0x129),_0x46dcd3[_0x293296(0x11d)]=_0x293296(0x126);const _0x46cdf5=_0x46dcd3;_0x22f1ba[_0x293296(0x12a)](HELP_HEADER_MESSAGE[_0x293296(0x127)])['commandDir'](_0x46cdf5[_0x293296(0x122)])['demandCommand']()[_0x293296(0x126)](_0x46cdf5[_0x293296(0x11d)])['epilogue'](HELP_FOOTER_MESSAGE);}function a22_0x3b0e(){const _0x5c87fe=['281252yqxAFf','help','root','1251131LJBVpT','commands','usage','281904nLqRhb','env','8FzGKzB','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','830wQaQXr','561318EUtkzW','zDeLS','10845mSFIDR','8trfXcc','44ejpfyb','618954FnAaRR','VnWSk','68158lxAxPw','20KAOniN'];a22_0x3b0e=function(){return _0x5c87fe;};return a22_0x3b0e();}module['exports']=run;
2
+ 'use strict';const a22_0x4241e2=a22_0x1d1f;(function(_0x3a7775,_0x5a8954){const _0x3c0e5b=a22_0x1d1f,_0x2e3ebd=_0x3a7775();while(!![]){try{const _0x5a0a31=-parseInt(_0x3c0e5b(0x109))/0x1*(parseInt(_0x3c0e5b(0x102))/0x2)+-parseInt(_0x3c0e5b(0x108))/0x3+parseInt(_0x3c0e5b(0x107))/0x4*(-parseInt(_0x3c0e5b(0xfe))/0x5)+-parseInt(_0x3c0e5b(0xfd))/0x6+-parseInt(_0x3c0e5b(0xff))/0x7*(-parseInt(_0x3c0e5b(0x101))/0x8)+-parseInt(_0x3c0e5b(0x100))/0x9+parseInt(_0x3c0e5b(0x105))/0xa;if(_0x5a0a31===_0x5a8954)break;else _0x2e3ebd['push'](_0x2e3ebd['shift']());}catch(_0x5e7cce){_0x2e3ebd['push'](_0x2e3ebd['shift']());}}}(a22_0x4b83,0x2724e));function a22_0x1d1f(_0x102e71,_0x20c5cf){const _0x4b8318=a22_0x4b83();return a22_0x1d1f=function(_0x1d1fc3,_0x566409){_0x1d1fc3=_0x1d1fc3-0xfb;let _0x31de4f=_0x4b8318[_0x1d1fc3];return _0x31de4f;},a22_0x1d1f(_0x102e71,_0x20c5cf);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x4241e2(0x103));process[a22_0x4241e2(0x104)]['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function run(_0x303b29){const _0x3447c5=a22_0x4241e2,_0x30fb6b={};_0x30fb6b[_0x3447c5(0x10c)]='commands',_0x30fb6b[_0x3447c5(0x10b)]='help';const _0x21bcfc=_0x30fb6b;_0x303b29['usage'](HELP_HEADER_MESSAGE['root'])[_0x3447c5(0x10a)](_0x21bcfc[_0x3447c5(0x10c)])[_0x3447c5(0x10d)]()[_0x3447c5(0x106)](_0x21bcfc[_0x3447c5(0x10b)])[_0x3447c5(0xfc)](HELP_FOOTER_MESSAGE);}module[a22_0x4241e2(0xfb)]=run;function a22_0x4b83(){const _0x138f07=['160788SROgVp','529068bonoUU','4397EgpHJq','commandDir','ySTTo','ZIwAN','demandCommand','exports','epilogue','941610FBGbQn','20RMKoGy','7BHzBhp','1357569SKZqpv','2514952RShuNS','46AAcvEM','./config/constants','env','5920160yRHrSz','help'];a22_0x4b83=function(){return _0x138f07;};return a22_0x4b83();}
@@ -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