browserstack-node-sdk 1.32.2 → 1.32.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/templates/nginx/helper.yaml +12 -12
  25. package/ats/src/templates/nginx/pods-and-services.yaml +35 -22
  26. package/ats/src/templates/nginx/private-pods-and-services.yaml +13 -8
  27. package/ats/src/utils/AWSUtils.js +1 -1
  28. package/ats/src/utils/createAutoscalerStack.js +1 -1
  29. package/ats/src/utils/createClusterStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteStack.js +1 -1
  32. package/ats/src/utils/gridComponents.js +1 -1
  33. package/ats/src/utils/hstUtils.js +1 -1
  34. package/ats/src/utils/instrumentationUtils.js +1 -1
  35. package/ats/src/utils/userInput.js +1 -1
  36. package/ats/src/utils/utilityMethods.js +1 -1
  37. package/ats/src/utils/webSocketUtils.js +1 -1
  38. package/package.json +1 -1
  39. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  40. package/src/bin/codeceptjs/command.js +1 -1
  41. package/src/bin/codeceptjs/helper.js +1 -1
  42. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  43. package/src/bin/cucumber-js/command.js +1 -1
  44. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  45. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  46. package/src/bin/cucumber-js/test.setup.js +1 -1
  47. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  48. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  49. package/src/bin/jest/command.js +1 -1
  50. package/src/bin/jest/customImplements/customCircus.js +1 -1
  51. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  52. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  53. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  54. package/src/bin/jest/jest.setup.js +1 -1
  55. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  56. package/src/bin/jest/test-observability/helper.js +1 -1
  57. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  58. package/src/bin/jest/test-observability/test-details.js +1 -1
  59. package/src/bin/jest/test_before.setup.js +1 -1
  60. package/src/bin/launcher/launcher.js +1 -1
  61. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  62. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  63. package/src/bin/mocha/command.js +1 -1
  64. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  65. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  66. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  67. package/src/bin/mocha/test.setup.js +1 -1
  68. package/src/bin/nightwatch/command.js +1 -1
  69. package/src/bin/playwright/accessibility-helper.js +1 -1
  70. package/src/bin/playwright/command.js +1 -1
  71. package/src/bin/playwright/globalSetup.js +1 -1
  72. package/src/bin/playwright/mock-process.js +1 -1
  73. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  74. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  75. package/src/bin/playwright/reporter/reporter.js +1 -1
  76. package/src/bin/playwright/reporter/test-details.js +1 -1
  77. package/src/bin/playwright/sessionDetails.js +1 -1
  78. package/src/bin/runner.js +1 -1
  79. package/src/bin/setup.js +1 -1
  80. package/src/bin/test-runner/index.js +1 -1
  81. package/src/bin/test-runner/runTest.js +1 -1
  82. package/src/bin/test-runner/testWorker.js +1 -1
  83. package/src/bin/utils/constants.js +1 -1
  84. package/src/bin/utils/log4jsAppender.js +1 -1
  85. package/src/bin/utils/logPatcher.js +1 -1
  86. package/src/bin/utils/logReportingAPI.js +1 -1
  87. package/src/bin/vanilla-js/command.js +1 -1
  88. package/src/browserStackSdk.js +1 -1
  89. package/src/helpers/BrowserStackSetup.js +1 -1
  90. package/src/helpers/accessibility-automation/constants.js +1 -1
  91. package/src/helpers/accessibility-automation/helper.js +1 -1
  92. package/src/helpers/accessibility-automation/scripts.js +1 -1
  93. package/src/helpers/ats/constants.js +1 -1
  94. package/src/helpers/ats/helper.js +1 -1
  95. package/src/helpers/capsMapping.js +1 -1
  96. package/src/helpers/globals.js +1 -1
  97. package/src/helpers/helper.js +1 -1
  98. package/src/helpers/logger.js +1 -1
  99. package/src/helpers/patchHelpers.js +1 -1
  100. package/src/helpers/percy/Percy.js +1 -1
  101. package/src/helpers/percy/PercyBinary.js +1 -1
  102. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  103. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  104. package/src/helpers/percy/PercySDK.js +1 -1
  105. package/src/helpers/percy/index.js +1 -1
  106. package/src/helpers/percy/utils.js +1 -1
  107. package/src/helpers/performance-tester.js +1 -1
  108. package/src/helpers/request-spy.js +1 -1
  109. package/src/helpers/setKeepAlive.js +1 -1
  110. package/src/helpers/test-observability/constants.js +1 -1
  111. package/src/helpers/test-observability/error-handler.js +1 -1
  112. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  113. package/src/helpers/test-observability/sessionHandler.js +1 -1
  114. package/src/helpers/test-observability/utils.js +1 -1
  115. package/src/helpers/w3cMapping.js +1 -1
  116. package/src/hubAllocationMethods.js +1 -1
  117. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x3697(){const _0x24d032=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grids','stringify','../../utils/instrumentationUtils','6507yxdmnZ','boolean','QCrXP','WJLvj','CnAoj','init-not-called','xdpTh','54132INmOQW','grid-id','builder','username','1055115ZQZCIi','Failed\x20to\x20list\x20resources!\x20Error:\x20','14gJGYHh','unauthorised','allGrids','readFileSync','AsYHI','error','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','kGjNV','help','zAwjX','sEYQa','AnAgW','server-error','PmCqy','2398RLXhzr','grid-name','description','pjeRn','name','GET','body','ERROR','TRvEK','parse','got','desc','nFPgo','requestId','https://','GdMrc','all-grids','queued','stack','XnHAl','running','ZEHZs','PlzrQ','table','bstackAccesskey','2010JfOPqE','21119DNGUYq','INFO','uuid','10912fMufqI','unknown-error','push','KSzma','rNvAB','368QHLGTw','GBVQF','list-grids-called','280GDVIEK','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','argv','../../config/constants','/packages/cli/get-all-grids','cluster-name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','password','vIdwO','list','KWSwv','exit','kOCTV','ecDAj','log','type','Browserstack','command','mgcGp','status','statusCode','options','1583400qnPnuO','epilogue','sGSxT','2551OhfNwa'];a15_0x3697=function(){return _0x24d032;};return a15_0x3697();}const a15_0x1968d2=a15_0x556b;(function(_0x36f7ea,_0x1151ab){const _0x3f6699=a15_0x556b,_0x5b612f=_0x36f7ea();while(!![]){try{const _0x457c9b=parseInt(_0x3f6699(0x14e))/0x1*(-parseInt(_0x3f6699(0x160))/0x2)+-parseInt(_0x3f6699(0x15e))/0x3+parseInt(_0x3f6699(0x18b))/0x4*(-parseInt(_0x3f6699(0x193))/0x5)+-parseInt(_0x3f6699(0x14b))/0x6+parseInt(_0x3f6699(0x188))/0x7*(parseInt(_0x3f6699(0x190))/0x8)+parseInt(_0x3f6699(0x153))/0x9*(-parseInt(_0x3f6699(0x187))/0xa)+parseInt(_0x3f6699(0x16e))/0xb*(parseInt(_0x3f6699(0x15a))/0xc);if(_0x457c9b===_0x1151ab)break;else _0x5b612f['push'](_0x5b612f['shift']());}catch(_0x49234e){_0x5b612f['push'](_0x5b612f['shift']());}}}(a15_0x3697,0x2e8a3));const fs=require('fs'),got=require(a15_0x1968d2(0x178)),{table}=require(a15_0x1968d2(0x185)),{v4:uuidv4}=require(a15_0x1968d2(0x18a)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1968d2(0x196)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x1968d2(0x152));function a15_0x556b(_0x5c6a7d,_0x2ab216){const _0x369781=a15_0x3697();return a15_0x556b=function(_0x556bcf,_0x362a27){_0x556bcf=_0x556bcf-0x149;let _0x16087b=_0x369781[_0x556bcf];return _0x16087b;},a15_0x556b(_0x5c6a7d,_0x2ab216);}exports[a15_0x1968d2(0x1a4)]=a15_0x1968d2(0x150),exports[a15_0x1968d2(0x179)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0x1968d2(0x15c)]=function(_0x3d674d){const _0x276892=a15_0x1968d2,_0x124a32={};_0x124a32[_0x276892(0x19d)]=_0x276892(0x194),_0x124a32[_0x276892(0x167)]=_0x276892(0x154),_0x124a32[_0x276892(0x181)]=_0x276892(0x168);const _0x2ef608=_0x124a32,_0x42d665={};_0x42d665[_0x276892(0x170)]=_0x2ef608[_0x276892(0x19d)],_0x42d665[_0x276892(0x1a2)]=_0x2ef608[_0x276892(0x167)];const _0x1fe049={};return _0x1fe049[_0x276892(0x17e)]=_0x42d665,_0x3d674d['usage'](HELP_HEADER_MESSAGE[_0x276892(0x19c)]['grid'])[_0x276892(0x14c)](HELP_FOOTER_MESSAGE)[_0x276892(0x14a)](_0x1fe049)[_0x276892(0x168)](_0x2ef608[_0x276892(0x181)])[_0x276892(0x195)];},exports['handler']=async function(_0x2a0d4b){const _0x4ed841=a15_0x1968d2,_0x49f81b={'CnAoj':function(_0x4dfe00){return _0x4dfe00();},'mgcGp':function(_0x2a0c0b){return _0x2a0c0b();},'WJLvj':_0x4ed841(0x14f),'AsYHI':function(_0x58a485,_0x4fcb16,_0x1e9647,_0xfdb8be,_0x5e3877,_0x1ed28c,_0x23cc6c){return _0x58a485(_0x4fcb16,_0x1e9647,_0xfdb8be,_0x5e3877,_0x1ed28c,_0x23cc6c);},'KSzma':_0x4ed841(0x192),'AnAgW':_0x4ed841(0x158),'vyBdd':function(_0x4a22e8){return _0x4a22e8();},'GdMrc':_0x4ed841(0x173),'MIrwN':function(_0x7a2c42,_0x3570ca,_0x1fc28f){return _0x7a2c42(_0x3570ca,_0x1fc28f);},'PlzrQ':function(_0x4c05c5,_0x593c75,_0x50099b){return _0x4c05c5(_0x593c75,_0x50099b);},'ZEHZs':function(_0x5f1a55,_0x506fa6){return _0x5f1a55!==_0x506fa6;},'zAwjX':function(_0x474a37,_0x1c48c4){return _0x474a37!==_0x1c48c4;},'vIdwO':function(_0x569787,_0x27e651){return _0x569787===_0x27e651;},'ecDAj':'\x0aFound\x20the\x20following\x20grids:\x0a','sEYQa':_0x4ed841(0x15b),'VPqro':_0x4ed841(0x16f),'rNvAB':'status','GBVQF':_0x4ed841(0x182),'PmCqy':_0x4ed841(0x17f),'TRvEK':_0x4ed841(0x198),'nFPgo':function(_0xc56db5,_0x1b8cf6){return _0xc56db5(_0x1b8cf6);},'kOCTV':function(_0x3f6190,_0x59090e,_0x209a32,_0x3b62e7,_0x50ace4,_0xd97f99,_0x578915){return _0x3f6190(_0x59090e,_0x209a32,_0x3b62e7,_0x50ace4,_0xd97f99,_0x578915);},'pjeRn':_0x4ed841(0x161),'QCrXP':function(_0x1b96c3,_0x5bc089,_0x3ab96e,_0x29ef1b,_0x2b63a6,_0x290daa,_0x4e7f01){return _0x1b96c3(_0x5bc089,_0x3ab96e,_0x29ef1b,_0x2b63a6,_0x290daa,_0x4e7f01);},'sGSxT':_0x4ed841(0x16c),'xdpTh':_0x4ed841(0x18c)};try{global_registry[_0x4ed841(0x17b)]=_0x49f81b[_0x4ed841(0x157)](uuidv4);!fs['existsSync'](_0x49f81b[_0x4ed841(0x1a5)](getCredentialsPath))&&(console[_0x4ed841(0x165)](_0x49f81b[_0x4ed841(0x156)]),await _0x49f81b[_0x4ed841(0x164)](sendInstrumentationEvent,_0x2a0d4b,_0x49f81b[_0x4ed841(0x18e)],messageTypes[_0x4ed841(0x175)],_0x49f81b[_0x4ed841(0x16b)],null,_0x2a0d4b),process[_0x4ed841(0x19e)](0x1));const _0x14a82=JSON[_0x4ed841(0x177)](fs[_0x4ed841(0x163)](_0x49f81b['vyBdd'](getCredentialsPath)));let _0x826037=_0x4ed841(0x17c)+AG_API_URL+'/packages/cli/get-grids';_0x2a0d4b[_0x4ed841(0x162)]&&(_0x826037=_0x4ed841(0x17c)+AG_API_URL+_0x4ed841(0x197));const _0x597bff={'method':_0x49f81b[_0x4ed841(0x17d)],'headers':_0x49f81b['MIrwN'](getAuthHeader,_0x14a82[_0x4ed841(0x1a3)]['username'],_0x14a82['Browserstack'][_0x4ed841(0x19a)])};global_registry['bstackUsername']=_0x14a82['Browserstack'][_0x4ed841(0x15d)],global_registry[_0x4ed841(0x186)]=_0x14a82[_0x4ed841(0x1a3)]['password'],_0x49f81b[_0x4ed841(0x164)](sendInstrumentationEvent,_0x2a0d4b,_0x49f81b['KSzma'],messageTypes[_0x4ed841(0x189)],null,null,_0x2a0d4b);const _0x1d79c5=await _0x49f81b[_0x4ed841(0x184)](got,_0x826037,_0x597bff);if(_0x49f81b[_0x4ed841(0x183)](_0x1d79c5,null)&&_0x49f81b[_0x4ed841(0x169)](_0x1d79c5,undefined)&&_0x49f81b[_0x4ed841(0x19b)](_0x1d79c5[_0x4ed841(0x149)],0xc8)){const _0x33f8bc=JSON[_0x4ed841(0x177)](_0x1d79c5[_0x4ed841(0x174)]);console[_0x4ed841(0x1a1)](_0x49f81b[_0x4ed841(0x1a0)]);const _0x5ef95c=[];_0x5ef95c[_0x4ed841(0x18d)]([_0x49f81b[_0x4ed841(0x16a)],_0x49f81b['VPqro'],_0x49f81b[_0x4ed841(0x18f)],_0x49f81b[_0x4ed841(0x191)],_0x49f81b[_0x4ed841(0x16d)],_0x49f81b[_0x4ed841(0x176)]]),_0x33f8bc['forEach'](_0x2b1b75=>{const _0x490ed5=_0x4ed841;_0x5ef95c['push']([_0x2b1b75['id'],_0x2b1b75[_0x490ed5(0x172)],_0x2b1b75[_0x490ed5(0x1a6)],_0x2b1b75[_0x490ed5(0x182)],_0x2b1b75[_0x490ed5(0x17f)],_0x2b1b75['clusterName']]);}),console[_0x4ed841(0x1a1)](_0x49f81b[_0x4ed841(0x17a)](table,_0x5ef95c)),process[_0x4ed841(0x19e)](0x0);}_0x49f81b[_0x4ed841(0x19b)](_0x1d79c5[_0x4ed841(0x149)],0x191)&&(console['error'](_0x4ed841(0x199)),await _0x49f81b[_0x4ed841(0x19f)](sendInstrumentationEvent,_0x2a0d4b,_0x49f81b['KSzma'],messageTypes['ERROR'],_0x49f81b[_0x4ed841(0x171)],null,_0x2a0d4b),process['exit'](0x1)),console[_0x4ed841(0x165)](_0x4ed841(0x166)+JSON[_0x4ed841(0x151)](_0x1d79c5)),await _0x49f81b[_0x4ed841(0x155)](sendInstrumentationEvent,_0x2a0d4b,_0x49f81b['KSzma'],messageTypes[_0x4ed841(0x175)],_0x49f81b[_0x4ed841(0x14d)],_0x1d79c5,_0x2a0d4b),process[_0x4ed841(0x19e)](0x1);}catch(_0x76f9ca){console['error'](_0x4ed841(0x15f)+_0x76f9ca[_0x4ed841(0x180)]),await _0x49f81b['kOCTV'](sendInstrumentationEvent,_0x2a0d4b,_0x49f81b['KSzma'],messageTypes['ERROR'],_0x49f81b[_0x4ed841(0x159)],_0x76f9ca,_0x2a0d4b),process[_0x4ed841(0x19e)](0x1);}};
1
+ const a15_0x352b4e=a15_0x4e00;(function(_0x59d731,_0x46d8bf){const _0x4099f4=a15_0x4e00,_0x238162=_0x59d731();while(!![]){try{const _0x12e5b6=-parseInt(_0x4099f4(0x1ae))/0x1+parseInt(_0x4099f4(0x18a))/0x2+parseInt(_0x4099f4(0x170))/0x3*(parseInt(_0x4099f4(0x197))/0x4)+parseInt(_0x4099f4(0x16d))/0x5+parseInt(_0x4099f4(0x172))/0x6*(-parseInt(_0x4099f4(0x183))/0x7)+parseInt(_0x4099f4(0x1af))/0x8+parseInt(_0x4099f4(0x168))/0x9*(-parseInt(_0x4099f4(0x1b6))/0xa);if(_0x12e5b6===_0x46d8bf)break;else _0x238162['push'](_0x238162['shift']());}catch(_0x97490d){_0x238162['push'](_0x238162['shift']());}}}(a15_0x5eae,0xd4cf6));const fs=require('fs'),got=require(a15_0x352b4e(0x1ac)),{table}=require(a15_0x352b4e(0x194)),{v4:uuidv4}=require(a15_0x352b4e(0x19e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x352b4e(0x188)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x4e00(_0x1fed07,_0x1118f3){const _0x5eaef8=a15_0x5eae();return a15_0x4e00=function(_0x4e0083,_0xb63392){_0x4e0083=_0x4e0083-0x162;let _0x132664=_0x5eaef8[_0x4e0083];return _0x132664;},a15_0x4e00(_0x1fed07,_0x1118f3);}exports[a15_0x352b4e(0x17f)]=a15_0x352b4e(0x1a8),exports['desc']=a15_0x352b4e(0x163),exports[a15_0x352b4e(0x178)]=function(_0x34f6e2){const _0x5f528a=a15_0x352b4e,_0x4bb775={};_0x4bb775[_0x5f528a(0x189)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x4bb775[_0x5f528a(0x1a1)]='boolean',_0x4bb775['jDqwK']=_0x5f528a(0x16f);const _0x652dae=_0x4bb775,_0x95f1bb={};_0x95f1bb[_0x5f528a(0x199)]=_0x652dae[_0x5f528a(0x189)],_0x95f1bb['type']=_0x652dae[_0x5f528a(0x1a1)];const _0x571d8c={};return _0x571d8c[_0x5f528a(0x1ad)]=_0x95f1bb,_0x34f6e2['usage'](HELP_HEADER_MESSAGE[_0x5f528a(0x1aa)][_0x5f528a(0x1b8)])[_0x5f528a(0x193)](HELP_FOOTER_MESSAGE)[_0x5f528a(0x1b0)](_0x571d8c)[_0x5f528a(0x16f)](_0x652dae[_0x5f528a(0x169)])[_0x5f528a(0x18d)];},exports[a15_0x352b4e(0x16c)]=async function(_0x1befd2){const _0x35c8a4=a15_0x352b4e,_0x16641c={'IoGNz':function(_0xb9e608){return _0xb9e608();},'hzJDg':function(_0x2ac4ee){return _0x2ac4ee();},'WiAsO':_0x35c8a4(0x16a),'HUMUY':function(_0x5dd7bf,_0x13d68e,_0x4633b7,_0x413446,_0x129d70,_0x1a90bd,_0x5a31b2){return _0x5dd7bf(_0x13d68e,_0x4633b7,_0x413446,_0x129d70,_0x1a90bd,_0x5a31b2);},'QYVzr':_0x35c8a4(0x177),'lnpsB':_0x35c8a4(0x162),'JUnzJ':function(_0x4fb81d){return _0x4fb81d();},'ZDgYC':_0x35c8a4(0x18b),'szwNX':function(_0x420a09,_0x4d4f09,_0xae3880){return _0x420a09(_0x4d4f09,_0xae3880);},'bMfTP':function(_0x4cbabc,_0x433346,_0x474f99){return _0x4cbabc(_0x433346,_0x474f99);},'NUkxO':function(_0x220937,_0x5024cc){return _0x220937!==_0x5024cc;},'kqECR':function(_0x498a14,_0x13c931){return _0x498a14!==_0x13c931;},'oVIUN':function(_0x536beb,_0x5cbbba){return _0x536beb===_0x5cbbba;},'tJAXX':'\x0aFound\x20the\x20following\x20grids:\x0a','GntDw':_0x35c8a4(0x184),'TQCfh':_0x35c8a4(0x185),'Opawg':_0x35c8a4(0x171),'OMJWv':'running','tsvKD':_0x35c8a4(0x165),'rzwtg':_0x35c8a4(0x19a),'niMFp':function(_0x244d30,_0x6470cd){return _0x244d30(_0x6470cd);},'kghUj':_0x35c8a4(0x173),'JYPRJ':_0x35c8a4(0x187),'pxYNa':function(_0x1bd792,_0xf8b61d,_0x1f7a1b,_0x1d8c78,_0xdbffa2,_0x425afc,_0x416073){return _0x1bd792(_0xf8b61d,_0x1f7a1b,_0x1d8c78,_0xdbffa2,_0x425afc,_0x416073);},'CqCWW':_0x35c8a4(0x1ab)};try{global_registry[_0x35c8a4(0x19c)]=_0x16641c[_0x35c8a4(0x1a3)](uuidv4);!fs[_0x35c8a4(0x198)](_0x16641c[_0x35c8a4(0x1a4)](getCredentialsPath))&&(console['error'](_0x16641c[_0x35c8a4(0x174)]),await _0x16641c[_0x35c8a4(0x18f)](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes['ERROR'],_0x16641c[_0x35c8a4(0x1b3)],null,_0x1befd2),process[_0x35c8a4(0x190)](0x1));const _0x45976b=JSON[_0x35c8a4(0x186)](fs['readFileSync'](_0x16641c[_0x35c8a4(0x1b7)](getCredentialsPath)));let _0x3fb54a='https://'+AG_API_URL+_0x35c8a4(0x17d);_0x1befd2[_0x35c8a4(0x195)]&&(_0x3fb54a=_0x35c8a4(0x191)+AG_API_URL+'/packages/cli/get-all-grids');const _0x21698d={'method':_0x16641c[_0x35c8a4(0x1a2)],'headers':_0x16641c[_0x35c8a4(0x16b)](getAuthHeader,_0x45976b[_0x35c8a4(0x1a0)][_0x35c8a4(0x1a9)],_0x45976b['Browserstack'][_0x35c8a4(0x167)])};global_registry['bstackUsername']=_0x45976b['Browserstack']['username'],global_registry[_0x35c8a4(0x1b4)]=_0x45976b[_0x35c8a4(0x1a0)][_0x35c8a4(0x167)],_0x16641c[_0x35c8a4(0x18f)](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes['INFO'],null,null,_0x1befd2);const _0x2242c7=await _0x16641c[_0x35c8a4(0x18c)](got,_0x3fb54a,_0x21698d);if(_0x16641c[_0x35c8a4(0x19b)](_0x2242c7,null)&&_0x16641c[_0x35c8a4(0x196)](_0x2242c7,undefined)&&_0x16641c[_0x35c8a4(0x17a)](_0x2242c7[_0x35c8a4(0x179)],0xc8)){const _0x2a98df=JSON['parse'](_0x2242c7['body']);console['log'](_0x16641c[_0x35c8a4(0x181)]);const _0x42654d=[];_0x42654d[_0x35c8a4(0x17c)]([_0x16641c[_0x35c8a4(0x176)],_0x16641c[_0x35c8a4(0x166)],_0x16641c['Opawg'],_0x16641c['OMJWv'],_0x16641c[_0x35c8a4(0x17b)],_0x16641c[_0x35c8a4(0x164)]]),_0x2a98df['forEach'](_0x37de8f=>{const _0x46b236=_0x35c8a4;_0x42654d[_0x46b236(0x17c)]([_0x37de8f['id'],_0x37de8f[_0x46b236(0x1a7)],_0x37de8f[_0x46b236(0x171)],_0x37de8f[_0x46b236(0x19f)],_0x37de8f[_0x46b236(0x165)],_0x37de8f[_0x46b236(0x1b1)]]);}),console['log'](_0x16641c[_0x35c8a4(0x16e)](table,_0x42654d)),process[_0x35c8a4(0x190)](0x0);}_0x16641c[_0x35c8a4(0x17a)](_0x2242c7[_0x35c8a4(0x179)],0x191)&&(console[_0x35c8a4(0x1b5)](_0x35c8a4(0x18e)),await _0x16641c['HUMUY'](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes[_0x35c8a4(0x1b2)],_0x16641c[_0x35c8a4(0x180)],null,_0x1befd2),process[_0x35c8a4(0x190)](0x1)),console[_0x35c8a4(0x1b5)](_0x35c8a4(0x1a6)+JSON[_0x35c8a4(0x17e)](_0x2242c7)),await _0x16641c[_0x35c8a4(0x18f)](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes[_0x35c8a4(0x1b2)],_0x16641c[_0x35c8a4(0x192)],_0x2242c7,_0x1befd2),process[_0x35c8a4(0x190)](0x1);}catch(_0xc80ed8){console[_0x35c8a4(0x1b5)](_0x35c8a4(0x19d)+_0xc80ed8['stack']),await _0x16641c[_0x35c8a4(0x1a5)](sendInstrumentationEvent,_0x1befd2,_0x16641c['QYVzr'],messageTypes[_0x35c8a4(0x1b2)],_0x16641c[_0x35c8a4(0x175)],_0xc80ed8,_0x1befd2),process[_0x35c8a4(0x190)](0x1);}};function a15_0x5eae(){const _0x1ace0a=['argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','HUMUY','exit','https://','JYPRJ','epilogue','table','allGrids','kqECR','94292iBTUHd','existsSync','description','cluster-name','NUkxO','requestId','Failed\x20to\x20list\x20resources!\x20Error:\x20','uuid','running','Browserstack','oafSV','ZDgYC','IoGNz','hzJDg','pxYNa','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','name','grids','username','list','unknown-error','got','all-grids','420751IpOdtq','10005096ILYBQi','options','clusterName','ERROR','lnpsB','bstackAccesskey','error','9050TdqqBC','JUnzJ','grid','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','rzwtg','queued','TQCfh','password','5247hdqGCZ','jDqwK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','szwNX','handler','4996125qBdHRT','niMFp','help','3BhvfuG','status','8788482DBvlax','unauthorised','WiAsO','CqCWW','GntDw','list-grids-called','builder','statusCode','oVIUN','tsvKD','push','/packages/cli/get-grids','stringify','command','kghUj','tJAXX','QYVzr','7bJKXdQ','grid-id','grid-name','parse','server-error','../../utils/utilityMethods','zXjPA','2022696fmgple','GET','bMfTP'];a15_0x5eae=function(){return _0x1ace0a;};return a15_0x5eae();}
@@ -1 +1 @@
1
- const a16_0x4de8a0=a16_0x5d23;(function(_0x4ea68b,_0x28992b){const _0x101200=a16_0x5d23,_0x298fde=_0x4ea68b();while(!![]){try{const _0x41dffe=-parseInt(_0x101200(0x1ae))/0x1*(parseInt(_0x101200(0x1b4))/0x2)+-parseInt(_0x101200(0x1b1))/0x3*(-parseInt(_0x101200(0x1c5))/0x4)+parseInt(_0x101200(0x1c1))/0x5*(-parseInt(_0x101200(0x1ba))/0x6)+parseInt(_0x101200(0x1b7))/0x7*(parseInt(_0x101200(0x1b0))/0x8)+-parseInt(_0x101200(0x1ad))/0x9+-parseInt(_0x101200(0x1be))/0xa*(-parseInt(_0x101200(0x1c0))/0xb)+parseInt(_0x101200(0x1af))/0xc*(-parseInt(_0x101200(0x1bb))/0xd);if(_0x41dffe===_0x28992b)break;else _0x298fde['push'](_0x298fde['shift']());}catch(_0x5d947c){_0x298fde['push'](_0x298fde['shift']());}}}(a16_0x52fd,0x71d92));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x5d23(_0x41b26f,_0x2d35e9){const _0x52fd5a=a16_0x52fd();return a16_0x5d23=function(_0x5d23bd,_0x185d5b){_0x5d23bd=_0x5d23bd-0x1ac;let _0x1d032f=_0x52fd5a[_0x5d23bd];return _0x1d032f;},a16_0x5d23(_0x41b26f,_0x2d35e9);}function a16_0x52fd(){const _0x52a9a9=['150646ORPdMN','155796mxcBMv','23464EDSEsh','995586bBSnbh','desc','help','2slzTah','start','XzGYo','917TFIBQQ','recommendCommands','strict','102054nkfjFR','104QxPwTW','builder','start_commands','786020lIQuqp','Start\x20an\x20existing\x20Automation\x20grid.','44aVBGbC','80TeQsjS','demandCommand','usage','epilogue','4THRwJS','ontcc','commandDir','337653jOOTEA'];a16_0x52fd=function(){return _0x52a9a9;};return a16_0x52fd();}exports['command']='start',exports[a16_0x4de8a0(0x1b2)]=a16_0x4de8a0(0x1bf),exports[a16_0x4de8a0(0x1bc)]=function(_0x571903){const _0x2eff49=a16_0x4de8a0,_0x514d9d={};_0x514d9d[_0x2eff49(0x1c6)]=_0x2eff49(0x1bd),_0x514d9d[_0x2eff49(0x1b6)]=_0x2eff49(0x1b3);const _0x4e23a9=_0x514d9d;return _0x571903[_0x2eff49(0x1c3)](HELP_HEADER_MESSAGE[_0x2eff49(0x1b5)])[_0x2eff49(0x1c4)](HELP_FOOTER_MESSAGE)[_0x2eff49(0x1ac)](_0x4e23a9[_0x2eff49(0x1c6)])[_0x2eff49(0x1c2)]()[_0x2eff49(0x1b8)]()[_0x2eff49(0x1b9)]()[_0x2eff49(0x1b3)](_0x4e23a9[_0x2eff49(0x1b6)]);},exports['handler']=function(_0xb3ee6c){};
1
+ function a16_0x5ea5(_0x11741d,_0x39ae84){const _0x1d05e1=a16_0x1d05();return a16_0x5ea5=function(_0x5ea54f,_0x828e29){_0x5ea54f=_0x5ea54f-0x6b;let _0x460edb=_0x1d05e1[_0x5ea54f];return _0x460edb;},a16_0x5ea5(_0x11741d,_0x39ae84);}const a16_0x5941db=a16_0x5ea5;(function(_0x52f632,_0x154702){const _0x2f4443=a16_0x5ea5,_0x38d7a6=_0x52f632();while(!![]){try{const _0x566ea5=-parseInt(_0x2f4443(0x6b))/0x1+-parseInt(_0x2f4443(0x81))/0x2*(parseInt(_0x2f4443(0x6d))/0x3)+parseInt(_0x2f4443(0x7d))/0x4+parseInt(_0x2f4443(0x71))/0x5*(parseInt(_0x2f4443(0x74))/0x6)+parseInt(_0x2f4443(0x7c))/0x7+-parseInt(_0x2f4443(0x75))/0x8*(parseInt(_0x2f4443(0x70))/0x9)+parseInt(_0x2f4443(0x77))/0xa*(-parseInt(_0x2f4443(0x79))/0xb);if(_0x566ea5===_0x154702)break;else _0x38d7a6['push'](_0x38d7a6['shift']());}catch(_0x4540a4){_0x38d7a6['push'](_0x38d7a6['shift']());}}}(a16_0x1d05,0x5b0ac));function a16_0x1d05(){const _0x40dd14=['builder','457512oEhCGd','usage','demandCommand','3153850GIniwb','1998412wyJPfv','AdoIU','strict','help','202HkCtDC','QoKmU','241365mqREpx','start_commands','15591KfRetL','command','Start\x20an\x20existing\x20Automation\x20grid.','2603169DePMLj','29570wUgEMk','../config/constants','commandDir','654MPnbGX','8IhXeLX','start','40hNvpuG'];a16_0x1d05=function(){return _0x40dd14;};return a16_0x1d05();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5941db(0x72));exports[a16_0x5941db(0x6e)]=a16_0x5941db(0x76),exports['desc']=a16_0x5941db(0x6f),exports[a16_0x5941db(0x78)]=function(_0x56c0ce){const _0x5c7adb=a16_0x5941db,_0x1a4a30={};_0x1a4a30[_0x5c7adb(0x7e)]=_0x5c7adb(0x6c),_0x1a4a30[_0x5c7adb(0x82)]=_0x5c7adb(0x80);const _0xc82ed0=_0x1a4a30;return _0x56c0ce[_0x5c7adb(0x7a)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5c7adb(0x73)](_0xc82ed0[_0x5c7adb(0x7e)])[_0x5c7adb(0x7b)]()['recommendCommands']()[_0x5c7adb(0x7f)]()[_0x5c7adb(0x80)](_0xc82ed0[_0x5c7adb(0x82)]);},exports['handler']=function(_0x299e1c){};
@@ -1 +1 @@
1
- function a17_0x4781(_0x303302,_0x5ddd3c){const _0x23f095=a17_0x23f0();return a17_0x4781=function(_0x47819b,_0x12f85d){_0x47819b=_0x47819b-0x14b;let _0x45ad00=_0x23f095[_0x47819b];return _0x45ad00;},a17_0x4781(_0x303302,_0x5ddd3c);}const a17_0x1fce98=a17_0x4781;(function(_0x106646,_0xb7b342){const _0x2f6fc5=a17_0x4781,_0x2fbb15=_0x106646();while(!![]){try{const _0x2915f9=-parseInt(_0x2f6fc5(0x17c))/0x1*(parseInt(_0x2f6fc5(0x164))/0x2)+parseInt(_0x2f6fc5(0x192))/0x3*(-parseInt(_0x2f6fc5(0x187))/0x4)+parseInt(_0x2f6fc5(0x197))/0x5+-parseInt(_0x2f6fc5(0x186))/0x6*(-parseInt(_0x2f6fc5(0x18f))/0x7)+parseInt(_0x2f6fc5(0x199))/0x8+parseInt(_0x2f6fc5(0x189))/0x9*(-parseInt(_0x2f6fc5(0x159))/0xa)+parseInt(_0x2f6fc5(0x16d))/0xb;if(_0x2915f9===_0xb7b342)break;else _0x2fbb15['push'](_0x2fbb15['shift']());}catch(_0x1bc81b){_0x2fbb15['push'](_0x2fbb15['shift']());}}}(a17_0x23f0,0x98036));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x1fce98(0x188)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a17_0x1fce98(0x190)),{sendInstrumentationEvent}=require(a17_0x1fce98(0x18b)),webSocketUtils=require(a17_0x1fce98(0x16b)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a17_0x1fce98(0x19b));function a17_0x23f0(){const _0x555d8b=['invalid-grid-id','help','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','existsSync','ERROR','clusterRegion','../../utils/webSocketUtils','jfHZX','4963761akXEaI','parse','usage','user','replace','name','Adding\x20Websocket\x20listeners','options','exit','<UsernamePlaceholder>','start','error','stack','gridId','zEsSJ','511jnELbb','unauthorised','fkZHz','connectionTimeout','moRym','INFO','bstackAccesskey','readFileSync','<PasswordPlaceholder>','HrCVe','6659154FCwQZC','135712IdZMKX','reconnecting-websocket','45XZrsZz','LEvYR','../../utils/instrumentationUtils','EKahs','EzyBX','grid','7WWrsAn','../../utils/gridComponents','GxlGJ','27vdIhSg','Browserstack','description','command','password','2223410fkEYpe','desc','5729176rbrkib','bstackUsername','../../cloudproviders/utils','qnvuD','clusterName','Grid\x20started','configureIfNotConfigured','GURHU','zIDSH','start-grid-called','hWHNT','fetchLocalCreds','addListeners','WebSocket','cmOsS','xwRhD','stringify','cloudProvider','SekTw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','region','init-not-called','1829020bGmmsE','nTQWW','Start\x20an\x20existing\x20Automation\x20grid.','string','Starting\x20grid\x20','vkWSi','builder','NDAOS','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','statusCode','3442mQcbdP'];a17_0x23f0=function(){return _0x555d8b;};return a17_0x23f0();}exports[a17_0x1fce98(0x195)]=a17_0x1fce98(0x18e),exports[a17_0x1fce98(0x198)]=a17_0x1fce98(0x15b),exports[a17_0x1fce98(0x15f)]=function(_0x549151){const _0x4228d8=a17_0x1fce98,_0x1006a6={};_0x1006a6[_0x4228d8(0x14b)]=_0x4228d8(0x167),_0x1006a6['NDAOS']=_0x4228d8(0x15c),_0x1006a6[_0x4228d8(0x16c)]=_0x4228d8(0x166);const _0x1398b2=_0x1006a6,_0x3d38df={};_0x3d38df[_0x4228d8(0x194)]=_0x1398b2[_0x4228d8(0x14b)],_0x3d38df['type']=_0x1398b2[_0x4228d8(0x160)];const _0x31b855={};return _0x31b855['grid-id']=_0x3d38df,_0x549151[_0x4228d8(0x16f)](HELP_HEADER_MESSAGE[_0x4228d8(0x177)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4228d8(0x174)](_0x31b855)[_0x4228d8(0x166)](_0x1398b2['jfHZX'])['argv'];},exports['handler']=async function(_0x4c3f92){const _0x2051e2=a17_0x1fce98,_0x1b83e4={'cmOsS':_0x2051e2(0x156),'GxlGJ':function(_0x4dd255){return _0x4dd255();},'aBeyQ':_0x2051e2(0x161),'xwRhD':function(_0x4d4a68,_0x14b80b,_0x4e722e,_0x342a96,_0x11b704,_0x1d1de8,_0x795ad7){return _0x4d4a68(_0x14b80b,_0x4e722e,_0x342a96,_0x11b704,_0x1d1de8,_0x795ad7);},'nTQWW':_0x2051e2(0x1a2),'jOKvl':_0x2051e2(0x158),'EzyBX':function(_0x4c151d){return _0x4c151d();},'fkZHz':_0x2051e2(0x176),'GURHU':_0x2051e2(0x184),'zEsSJ':_0x2051e2(0x173),'HrCVe':function(_0x283a1a,_0x25b63c,_0x272b97,_0xb89c75){return _0x283a1a(_0x25b63c,_0x272b97,_0xb89c75);},'qnvuD':function(_0x129176,_0x275fc7,_0x2b3f61,_0x40492c,_0x54e836,_0x386a3c){return _0x129176(_0x275fc7,_0x2b3f61,_0x40492c,_0x54e836,_0x386a3c);},'XjiXY':function(_0x4c2d97,_0x134169){return _0x4c2d97(_0x134169);},'SekTw':function(_0x274d7b,_0x15a115,_0x1cebf8){return _0x274d7b(_0x15a115,_0x1cebf8);},'zIDSH':_0x2051e2(0x19e),'vkWSi':function(_0x3f202b,_0x4ff76b){return _0x3f202b===_0x4ff76b;},'EKahs':function(_0x497674,_0x28d55a,_0x1a3c7c,_0x2cf7d8,_0x37e58c,_0x343ba4,_0x250ed8){return _0x497674(_0x28d55a,_0x1a3c7c,_0x2cf7d8,_0x37e58c,_0x343ba4,_0x250ed8);},'moRym':_0x2051e2(0x17d),'OaiSB':function(_0x1fe007,_0x2bcd14){return _0x1fe007===_0x2bcd14;},'yFQaC':function(_0x5ca7f0,_0x4bf8c7,_0x1699c1,_0x4af287,_0x3e9a5d,_0x12e29b,_0x31af27){return _0x5ca7f0(_0x4bf8c7,_0x1699c1,_0x4af287,_0x3e9a5d,_0x12e29b,_0x31af27);},'rPPXJ':_0x2051e2(0x165),'ZknFb':function(_0xa2a7b8,_0x5c2988,_0x5c2810,_0xf4ea73,_0x2e1b64,_0x1e661c,_0x174085){return _0xa2a7b8(_0x5c2988,_0x5c2810,_0xf4ea73,_0x2e1b64,_0x1e661c,_0x174085);},'LEvYR':'server-error'};let _0xe671fb;try{!_0x4c3f92['gridId']&&(logger[_0x2051e2(0x178)](_0x1b83e4[_0x2051e2(0x14f)]),process['exit'](0x1));!fs[_0x2051e2(0x168)](_0x1b83e4[_0x2051e2(0x191)](getCredentialsPath))&&(logger[_0x2051e2(0x178)](_0x1b83e4['aBeyQ']),await _0x1b83e4[_0x2051e2(0x150)](sendInstrumentationEvent,_0x4c3f92,_0x1b83e4[_0x2051e2(0x15a)],messageTypes[_0x2051e2(0x169)],_0x1b83e4['jOKvl'],null,_0x4c3f92),process[_0x2051e2(0x175)](0x1));logger['info'](_0x2051e2(0x15d)+_0x4c3f92['gridId']),await _0x1b83e4[_0x2051e2(0x150)](sendInstrumentationEvent,_0x4c3f92,_0x1b83e4['nTQWW'],messageTypes[_0x2051e2(0x181)],null,null,_0x4c3f92);const _0x3c66b0=JSON[_0x2051e2(0x16e)](fs[_0x2051e2(0x183)](_0x1b83e4[_0x2051e2(0x18d)](getCredentialsPath)));global_registry[_0x2051e2(0x19a)]=_0x3c66b0[_0x2051e2(0x193)][_0x2051e2(0x162)],global_registry[_0x2051e2(0x182)]=_0x3c66b0[_0x2051e2(0x193)][_0x2051e2(0x196)];const _0x35a99b=WS_ENDPOINT['replace'](_0x1b83e4[_0x2051e2(0x17e)],_0x3c66b0[_0x2051e2(0x193)]['username'])[_0x2051e2(0x171)](_0x1b83e4[_0x2051e2(0x1a0)],_0x3c66b0[_0x2051e2(0x193)]['password']),_0x486995={};_0x486995[_0x2051e2(0x14e)]=ws,_0x486995[_0x2051e2(0x17f)]=0x36ee80,_0xe671fb=new ReconnectingWebSocket(_0x35a99b,[],_0x486995),logger['debug'](_0x1b83e4[_0x2051e2(0x17b)]),webSocketUtils[_0x2051e2(0x14d)](_0xe671fb,_0x4c3f92[_0x2051e2(0x170)],_0x4c3f92[_0x2051e2(0x196)]);const [_0x5e20e2,_0x5a97f7]=await _0x1b83e4[_0x2051e2(0x185)](getGridDetails,_0x3c66b0[_0x2051e2(0x193)]['username'],_0x3c66b0['Browserstack']['password'],_0x4c3f92[_0x2051e2(0x17a)]);if(_0x5a97f7){const _0x1a86a0=_0x5a97f7[_0x2051e2(0x155)];global_registry[_0x2051e2(0x152)]=_0x1a86a0[_0x2051e2(0x152)],global_registry[_0x2051e2(0x16a)]=_0x1a86a0[_0x2051e2(0x157)],global_registry[_0x2051e2(0x19d)]=_0x1a86a0[_0x2051e2(0x19d)];const _0x3d6364=_0x1b83e4[_0x2051e2(0x19c)](getCloudProviderObject,_0x1a86a0[_0x2051e2(0x152)],_0x1a86a0[_0x2051e2(0x19d)],_0x1a86a0[_0x2051e2(0x172)],_0xe671fb,webSocketUtils),_0x5f4853=_0x3c66b0[_0x2051e2(0x152)]||{};await _0x3d6364[_0x2051e2(0x14c)](_0x5f4853),_0x3d6364[_0x2051e2(0x19f)]();const [_0x2b1e88,_0x355acc,_0x22133e,_0x67669f,_0x626377,_0x2c6028]=await _0x1b83e4['XjiXY'](createK8sClient,_0x3d6364);await _0x1b83e4[_0x2051e2(0x153)](scaleUpHubDeployment,_0x355acc,_0x1a86a0[_0x2051e2(0x172)]),logger['info'](_0x1b83e4[_0x2051e2(0x1a1)]),process[_0x2051e2(0x175)](0x0);}_0x1b83e4[_0x2051e2(0x15e)](_0x5e20e2[_0x2051e2(0x163)],0x191)&&(logger[_0x2051e2(0x178)](_0x2051e2(0x154)),await _0x1b83e4[_0x2051e2(0x18c)](sendInstrumentationEvent,_0x4c3f92,_0x1b83e4[_0x2051e2(0x15a)],messageTypes['ERROR'],_0x1b83e4[_0x2051e2(0x180)],null,_0x4c3f92),process[_0x2051e2(0x175)](0x1)),_0x1b83e4['OaiSB'](_0x5e20e2[_0x2051e2(0x163)],0x190)&&(logger[_0x2051e2(0x178)](JSON['parse'](_0x5e20e2['body'])['message']),await _0x1b83e4['yFQaC'](sendInstrumentationEvent,_0x4c3f92,_0x1b83e4[_0x2051e2(0x15a)],messageTypes[_0x2051e2(0x169)],_0x1b83e4['rPPXJ'],null,_0x4c3f92),process['exit'](0x1)),logger[_0x2051e2(0x178)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x2051e2(0x151)](_0x5e20e2)),await _0x1b83e4['ZknFb'](sendInstrumentationEvent,_0x4c3f92,_0x1b83e4[_0x2051e2(0x15a)],messageTypes[_0x2051e2(0x169)],_0x1b83e4[_0x2051e2(0x18a)],_0x5e20e2,_0x4c3f92),process[_0x2051e2(0x175)](0x1);}catch(_0x501c46){const _0x2c585b='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x501c46+'\x20\x0a'+JSON[_0x2051e2(0x151)](_0x501c46[_0x2051e2(0x179)])+'\x20';logger[_0x2051e2(0x178)](_0x2c585b),process['exit'](0x1);}};
1
+ function a17_0x4b43(_0x4e3763,_0x3566ae){const _0x48476c=a17_0x4847();return a17_0x4b43=function(_0x4b43ed,_0x2402ad){_0x4b43ed=_0x4b43ed-0x157;let _0x5dfcf1=_0x48476c[_0x4b43ed];return _0x5dfcf1;},a17_0x4b43(_0x4e3763,_0x3566ae);}const a17_0x4b42ea=a17_0x4b43;function a17_0x4847(){const _0x320468=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','eeXSl','clusterRegion','JAjqu','clusterName','MOaHZ','479748pQYHCr','../../utils/instrumentationUtils','WhRFG','gridId','145vahbpI','grid-id','reconnecting-websocket','bstackUsername','configureIfNotConfigured','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ztDyb','12624DtDrlG','50GlDtPR','stringify','desc','1868988zYEGwz','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','command','type','TpGuI','GCkgZ','help','start','statusCode','WebSocket','options','handler','server-error','name','error','../../cloudproviders/utils','VZAKR','xvFps','niQFZ','99432UKxFjw','exit','hEGyO','region','body','invalid-grid-id','1701813ILCxOy','../../utils/webSocketUtils','XGTjI','2441889VMbkka','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Adding\x20Websocket\x20listeners','start-grid-called','readFileSync','831234mGkaLS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','PBRWX','Browserstack','info','akpeM','hDTMX','password','addListeners','init-not-called','debug','Start\x20an\x20existing\x20Automation\x20grid.','parse','8DZOvSW','49DIiypg','ERROR','cloudProvider','string','user','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Grid\x20started','username','unauthorised','epilogue','ixkDw','<UsernamePlaceholder>','fEXkL'];a17_0x4847=function(){return _0x320468;};return a17_0x4847();}(function(_0x31bc6a,_0x38205a){const _0xe3d236=a17_0x4b43,_0x47435d=_0x31bc6a();while(!![]){try{const _0xc2badf=parseInt(_0xe3d236(0x188))/0x1+parseInt(_0xe3d236(0x163))/0x2+parseInt(_0xe3d236(0x180))/0x3+-parseInt(_0xe3d236(0x17a))/0x4*(-parseInt(_0xe3d236(0x15b))/0x5)+-parseInt(_0xe3d236(0x157))/0x6*(parseInt(_0xe3d236(0x196))/0x7)+-parseInt(_0xe3d236(0x195))/0x8*(parseInt(_0xe3d236(0x183))/0x9)+-parseInt(_0xe3d236(0x164))/0xa*(parseInt(_0xe3d236(0x167))/0xb);if(_0xc2badf===_0x38205a)break;else _0x47435d['push'](_0x47435d['shift']());}catch(_0x3c9051){_0x47435d['push'](_0x47435d['shift']());}}}(a17_0x4847,0x6cacc));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x4b42ea(0x15d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a17_0x4b42ea(0x158)),webSocketUtils=require(a17_0x4b42ea(0x181)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a17_0x4b42ea(0x176));exports[a17_0x4b42ea(0x169)]='grid',exports[a17_0x4b42ea(0x166)]=a17_0x4b42ea(0x193),exports['builder']=function(_0x2e2969){const _0x2ac76f=a17_0x4b42ea,_0x5af838={};_0x5af838[_0x2ac76f(0x18e)]=_0x2ac76f(0x184),_0x5af838['VZAKR']=_0x2ac76f(0x199),_0x5af838['ztDyb']=_0x2ac76f(0x16d);const _0x3824a1=_0x5af838,_0x25dd1d={};_0x25dd1d['description']=_0x3824a1[_0x2ac76f(0x18e)],_0x25dd1d[_0x2ac76f(0x16a)]=_0x3824a1[_0x2ac76f(0x177)];const _0x2cf2f9={};return _0x2cf2f9[_0x2ac76f(0x15c)]=_0x25dd1d,_0x2e2969['usage'](HELP_HEADER_MESSAGE[_0x2ac76f(0x16e)])[_0x2ac76f(0x1a0)](HELP_FOOTER_MESSAGE)[_0x2ac76f(0x171)](_0x2cf2f9)[_0x2ac76f(0x16d)](_0x3824a1[_0x2ac76f(0x162)])['argv'];},exports[a17_0x4b42ea(0x172)]=async function(_0x4306f7){const _0x78a84f=a17_0x4b42ea,_0x2922ad={'MOaHZ':_0x78a84f(0x19c),'akpeM':function(_0x4371d1){return _0x4371d1();},'ixkDw':_0x78a84f(0x161),'hEGyO':function(_0x5d3648,_0x1a8c80,_0x36fe90,_0x187dde,_0x254fce,_0x15fbb8,_0x437795){return _0x5d3648(_0x1a8c80,_0x36fe90,_0x187dde,_0x254fce,_0x15fbb8,_0x437795);},'PBRWX':_0x78a84f(0x186),'niQFZ':_0x78a84f(0x191),'fEXkL':_0x78a84f(0x1a2),'kGSoW':'<PasswordPlaceholder>','pzwfC':_0x78a84f(0x185),'XGTjI':function(_0x15a61b,_0x475efa,_0x220c32,_0x222420){return _0x15a61b(_0x475efa,_0x220c32,_0x222420);},'GCkgZ':function(_0x1e695c,_0x225aca,_0x1eb1af,_0x1d528d,_0x295a00,_0x4dba32){return _0x1e695c(_0x225aca,_0x1eb1af,_0x1d528d,_0x295a00,_0x4dba32);},'Eenqu':function(_0xf88697,_0x1fe36c){return _0xf88697(_0x1fe36c);},'jdtAY':function(_0x9cd5c,_0x156bab,_0x57e31f){return _0x9cd5c(_0x156bab,_0x57e31f);},'JAjqu':_0x78a84f(0x19d),'WhRFG':function(_0x3f2818,_0x13e012){return _0x3f2818===_0x13e012;},'xvFps':function(_0x557d47,_0x318893,_0x163c4b,_0x2590a4,_0x5662e4,_0x2c17c3,_0x4413cf){return _0x557d47(_0x318893,_0x163c4b,_0x2590a4,_0x5662e4,_0x2c17c3,_0x4413cf);},'eeXSl':_0x78a84f(0x19f),'rJEhB':function(_0x34e9bb,_0x1fd9f6){return _0x34e9bb===_0x1fd9f6;},'WJqOA':_0x78a84f(0x17f),'TpGuI':_0x78a84f(0x173)};let _0x58cc3b;try{!_0x4306f7[_0x78a84f(0x15a)]&&(logger[_0x78a84f(0x175)](_0x2922ad[_0x78a84f(0x1a9)]),process[_0x78a84f(0x17b)](0x1));!fs['existsSync'](_0x2922ad[_0x78a84f(0x18d)](getCredentialsPath))&&(logger[_0x78a84f(0x175)](_0x2922ad[_0x78a84f(0x1a1)]),await _0x2922ad['hEGyO'](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes[_0x78a84f(0x197)],_0x2922ad[_0x78a84f(0x179)],null,_0x4306f7),process[_0x78a84f(0x17b)](0x1));logger[_0x78a84f(0x18c)]('Starting\x20grid\x20'+_0x4306f7[_0x78a84f(0x15a)]),await _0x2922ad[_0x78a84f(0x17c)](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes[_0x78a84f(0x160)],null,null,_0x4306f7);const _0x151634=JSON[_0x78a84f(0x194)](fs[_0x78a84f(0x187)](_0x2922ad['akpeM'](getCredentialsPath)));global_registry[_0x78a84f(0x15e)]=_0x151634[_0x78a84f(0x18b)][_0x78a84f(0x19e)],global_registry['bstackAccesskey']=_0x151634[_0x78a84f(0x18b)]['password'];const _0x5276a6=WS_ENDPOINT['replace'](_0x2922ad[_0x78a84f(0x1a3)],_0x151634[_0x78a84f(0x18b)][_0x78a84f(0x19e)])['replace'](_0x2922ad['kGSoW'],_0x151634[_0x78a84f(0x18b)][_0x78a84f(0x18f)]),_0xd5b106={};_0xd5b106[_0x78a84f(0x170)]=ws,_0xd5b106[_0x78a84f(0x19b)]=0x36ee80,_0x58cc3b=new ReconnectingWebSocket(_0x5276a6,[],_0xd5b106),logger[_0x78a84f(0x192)](_0x2922ad['pzwfC']),webSocketUtils[_0x78a84f(0x190)](_0x58cc3b,_0x4306f7[_0x78a84f(0x19a)],_0x4306f7[_0x78a84f(0x18f)]);const [_0x3d7cbb,_0xc54b58]=await _0x2922ad[_0x78a84f(0x182)](getGridDetails,_0x151634['Browserstack'][_0x78a84f(0x19e)],_0x151634['Browserstack'][_0x78a84f(0x18f)],_0x4306f7[_0x78a84f(0x15a)]);if(_0xc54b58){const _0x2d47a4=_0xc54b58[_0x78a84f(0x18c)];global_registry[_0x78a84f(0x198)]=_0x2d47a4[_0x78a84f(0x198)],global_registry[_0x78a84f(0x1a6)]=_0x2d47a4[_0x78a84f(0x17d)],global_registry[_0x78a84f(0x1a8)]=_0x2d47a4[_0x78a84f(0x1a8)];const _0x5833df=_0x2922ad[_0x78a84f(0x16c)](getCloudProviderObject,_0x2d47a4[_0x78a84f(0x198)],_0x2d47a4[_0x78a84f(0x1a8)],_0x2d47a4[_0x78a84f(0x174)],_0x58cc3b,webSocketUtils),_0x5d6ffb=_0x151634[_0x78a84f(0x198)]||{};await _0x5833df['fetchLocalCreds'](_0x5d6ffb),_0x5833df[_0x78a84f(0x15f)]();const [_0xcfed60,_0x2a19f5,_0x1a83c9,_0x48c57d,_0x17f590,_0x79cd8a]=await _0x2922ad['Eenqu'](createK8sClient,_0x5833df);await _0x2922ad['jdtAY'](scaleUpHubDeployment,_0x2a19f5,_0x2d47a4['name']),logger['info'](_0x2922ad[_0x78a84f(0x1a7)]),process['exit'](0x0);}_0x2922ad[_0x78a84f(0x159)](_0x3d7cbb[_0x78a84f(0x16f)],0x191)&&(logger[_0x78a84f(0x175)](_0x78a84f(0x1a4)),await _0x2922ad[_0x78a84f(0x178)](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes[_0x78a84f(0x197)],_0x2922ad[_0x78a84f(0x1a5)],null,_0x4306f7),process[_0x78a84f(0x17b)](0x1)),_0x2922ad['rJEhB'](_0x3d7cbb[_0x78a84f(0x16f)],0x190)&&(logger[_0x78a84f(0x175)](JSON[_0x78a84f(0x194)](_0x3d7cbb[_0x78a84f(0x17e)])['message']),await _0x2922ad['xvFps'](sendInstrumentationEvent,_0x4306f7,_0x2922ad['PBRWX'],messageTypes['ERROR'],_0x2922ad['WJqOA'],null,_0x4306f7),process[_0x78a84f(0x17b)](0x1)),logger[_0x78a84f(0x175)](_0x78a84f(0x189)+JSON[_0x78a84f(0x165)](_0x3d7cbb)),await _0x2922ad[_0x78a84f(0x17c)](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes['ERROR'],_0x2922ad[_0x78a84f(0x16b)],_0x3d7cbb,_0x4306f7),process['exit'](0x1);}catch(_0x202fe9){const _0x16d26d=_0x78a84f(0x168)+_0x202fe9+'\x20\x0a'+JSON[_0x78a84f(0x165)](_0x202fe9['stack'])+'\x20';logger[_0x78a84f(0x175)](_0x16d26d),process[_0x78a84f(0x17b)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x22fb0a=a18_0x489a;function a18_0x489a(_0x4100bb,_0x4fcc36){const _0x1ff44f=a18_0x1ff4();return a18_0x489a=function(_0x489a79,_0x5c3858){_0x489a79=_0x489a79-0x17a;let _0x49673b=_0x1ff44f[_0x489a79];return _0x49673b;},a18_0x489a(_0x4100bb,_0x4fcc36);}(function(_0x40cf2c,_0x4aee80){const _0x833b1d=a18_0x489a,_0x59fc88=_0x40cf2c();while(!![]){try{const _0x1eeaeb=-parseInt(_0x833b1d(0x194))/0x1*(parseInt(_0x833b1d(0x17e))/0x2)+-parseInt(_0x833b1d(0x189))/0x3*(parseInt(_0x833b1d(0x17b))/0x4)+-parseInt(_0x833b1d(0x193))/0x5+parseInt(_0x833b1d(0x192))/0x6+-parseInt(_0x833b1d(0x186))/0x7*(parseInt(_0x833b1d(0x188))/0x8)+parseInt(_0x833b1d(0x184))/0x9*(parseInt(_0x833b1d(0x17a))/0xa)+parseInt(_0x833b1d(0x18b))/0xb;if(_0x1eeaeb===_0x4aee80)break;else _0x59fc88['push'](_0x59fc88['shift']());}catch(_0x159e79){_0x59fc88['push'](_0x59fc88['shift']());}}}(a18_0x1ff4,0x683b9));function a18_0x1ff4(){const _0x373dcc=['DEHJT','stop','9XxSoLV','commandDir','7tsgtpb','help','2090656OoABNh','114297wbiohy','builder','10857990YBUFuz','../config/constants','command','stop_commands','usage','epilogue','Stop\x20a\x20running\x20Automation\x20grid.','4738356GMYdjd','4147935cJqeRn','821EbJnAY','5868710nEEqwr','32XqUaeQ','desc','strict','1318HJOVuY','bBOOK','recommendCommands','handler'];a18_0x1ff4=function(){return _0x373dcc;};return a18_0x1ff4();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x22fb0a(0x18c));exports[a18_0x22fb0a(0x18d)]=a18_0x22fb0a(0x183),exports[a18_0x22fb0a(0x17c)]=a18_0x22fb0a(0x191),exports[a18_0x22fb0a(0x18a)]=function(_0x44257c){const _0x158d91=a18_0x22fb0a,_0xd9b54e={};_0xd9b54e[_0x158d91(0x17f)]=_0x158d91(0x18e),_0xd9b54e[_0x158d91(0x182)]=_0x158d91(0x187);const _0x326d59=_0xd9b54e;return _0x44257c[_0x158d91(0x18f)](HELP_HEADER_MESSAGE[_0x158d91(0x183)])[_0x158d91(0x190)](HELP_FOOTER_MESSAGE)[_0x158d91(0x185)](_0x326d59['bBOOK'])['demandCommand']()[_0x158d91(0x180)]()[_0x158d91(0x17d)]()[_0x158d91(0x187)](_0x326d59[_0x158d91(0x182)]);},exports[a18_0x22fb0a(0x181)]=function(_0x49712c){};
1
+ const a18_0x494944=a18_0x104e;(function(_0x345297,_0x4e1094){const _0x4de0b8=a18_0x104e,_0x1a6c4c=_0x345297();while(!![]){try{const _0x54c850=-parseInt(_0x4de0b8(0xfd))/0x1*(-parseInt(_0x4de0b8(0x103))/0x2)+-parseInt(_0x4de0b8(0x107))/0x3*(-parseInt(_0x4de0b8(0xfe))/0x4)+parseInt(_0x4de0b8(0xf9))/0x5+parseInt(_0x4de0b8(0x104))/0x6*(parseInt(_0x4de0b8(0xfc))/0x7)+-parseInt(_0x4de0b8(0xfb))/0x8+-parseInt(_0x4de0b8(0x10b))/0x9+parseInt(_0x4de0b8(0x102))/0xa*(-parseInt(_0x4de0b8(0x110))/0xb);if(_0x54c850===_0x4e1094)break;else _0x1a6c4c['push'](_0x1a6c4c['shift']());}catch(_0xbe979c){_0x1a6c4c['push'](_0x1a6c4c['shift']());}}}(a18_0xca46,0xb85cf));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x494944(0x106));function a18_0x104e(_0x23935a,_0x1854a6){const _0xca4669=a18_0xca46();return a18_0x104e=function(_0x104e38,_0x55b5b9){_0x104e38=_0x104e38-0xf7;let _0x2a67e1=_0xca4669[_0x104e38];return _0x2a67e1;},a18_0x104e(_0x23935a,_0x1854a6);}function a18_0xca46(){const _0x36b5c3=['23487BbOAsD','epilogue','WuGaA','commandDir','2977641pofaVC','recommendCommands','handler','demandCommand','JsDDX','278069NkTGIu','Stop\x20a\x20running\x20Automation\x20grid.','stop','6397145EVnIPK','help','6739488qOVsVn','8713649TqizMt','124719HEcPwP','356biFWmJ','usage','builder','stop_commands','610YPHHFA','4jYLwnO','6NaQEOX','command','../config/constants'];a18_0xca46=function(){return _0x36b5c3;};return a18_0xca46();}exports[a18_0x494944(0x105)]=a18_0x494944(0xf8),exports['desc']=a18_0x494944(0xf7),exports[a18_0x494944(0x100)]=function(_0x38f914){const _0x367b5b=a18_0x494944,_0x575b6f={};_0x575b6f[_0x367b5b(0x10f)]=_0x367b5b(0x101),_0x575b6f[_0x367b5b(0x109)]='help';const _0x52b0cb=_0x575b6f;return _0x38f914[_0x367b5b(0xff)](HELP_HEADER_MESSAGE['stop'])[_0x367b5b(0x108)](HELP_FOOTER_MESSAGE)[_0x367b5b(0x10a)](_0x52b0cb[_0x367b5b(0x10f)])[_0x367b5b(0x10e)]()[_0x367b5b(0x10c)]()['strict']()[_0x367b5b(0xfa)](_0x52b0cb[_0x367b5b(0x109)]);},exports[a18_0x494944(0x10d)]=function(_0xb4648b){};
@@ -1 +1 @@
1
- function a19_0x3963(_0xb1f1f5,_0xb744a){const _0x43d2e8=a19_0x43d2();return a19_0x3963=function(_0x3963f4,_0x5c0894){_0x3963f4=_0x3963f4-0x169;let _0x560070=_0x43d2e8[_0x3963f4];return _0x560070;},a19_0x3963(_0xb1f1f5,_0xb744a);}const a19_0x3d8162=a19_0x3963;(function(_0x3fb359,_0x4dcf1d){const _0x1bdc4b=a19_0x3963,_0x54d6ba=_0x3fb359();while(!![]){try{const _0x27f564=parseInt(_0x1bdc4b(0x175))/0x1+-parseInt(_0x1bdc4b(0x187))/0x2*(parseInt(_0x1bdc4b(0x18d))/0x3)+-parseInt(_0x1bdc4b(0x1a8))/0x4+parseInt(_0x1bdc4b(0x1b1))/0x5+-parseInt(_0x1bdc4b(0x1aa))/0x6*(-parseInt(_0x1bdc4b(0x171))/0x7)+-parseInt(_0x1bdc4b(0x18c))/0x8+parseInt(_0x1bdc4b(0x1ab))/0x9;if(_0x27f564===_0x4dcf1d)break;else _0x54d6ba['push'](_0x54d6ba['shift']());}catch(_0x53fc4c){_0x54d6ba['push'](_0x54d6ba['shift']());}}}(a19_0x43d2,0xb7f37));function a19_0x43d2(){const _0x4e54ca=['INFO','../../utils/instrumentationUtils','SkOGK','type','parse','usage','693582bJDoko','bstackUsername','connectionTimeout','clusterName','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','4892528PoFiSW','9cCcLjW','configureIfNotConfigured','replace','desc','CpQep','xNBgG','user','region','yoGRv','argv','stringify','name','LGobe','stop-grid-called','Stopping\x20grid\x20','Browserstack','help','reconnecting-websocket','message','grid-id','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YIgfu','aNHAf','existsSync','stop','cloudProvider','../../utils/webSocketUtils','3413656QRqtVW','Stop\x20a\x20running\x20Automation\x20grid.','58272uNUVcB','11807928EPmYBV','hxSvK','statusCode','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','WebSocket','Adding\x20Websocket\x20listeners','1915025gtkexo','grid','info','invalid-grid-id','string','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','addListeners','body','../../config/constants','stack','enHaf','clusterRegion','CdGtm','ERROR','exit','command','epilogue','handler','NAQVq','tWHWr','error','623VWUzQi','../../utils/createk8sClient','server-error','yWhou','699451AyCRgp','username','DeZJJ','gFqQS','readFileSync','BSkVU','gridId','PuGIv','dMqfW','../../cloudproviders/utils','password','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a19_0x43d2=function(){return _0x4e54ca;};return a19_0x43d2();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x3d8162(0x19e)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x3d8162(0x1b9)),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x3d8162(0x182)),webSocketUtils=require(a19_0x3d8162(0x1a7)),{createK8sClient}=require(a19_0x3d8162(0x172)),{getCloudProviderObject}=require(a19_0x3d8162(0x17e));exports[a19_0x3d8162(0x16b)]=a19_0x3d8162(0x1b2),exports[a19_0x3d8162(0x190)]=a19_0x3d8162(0x1a9),exports['builder']=function(_0x44ea21){const _0x291857=a19_0x3d8162,_0x5448c8={};_0x5448c8['CpQep']=_0x291857(0x1b6),_0x5448c8[_0x291857(0x178)]=_0x291857(0x1b5),_0x5448c8[_0x291857(0x16e)]=_0x291857(0x19d);const _0x26815d=_0x5448c8,_0x5bde59={};_0x5bde59['description']=_0x26815d[_0x291857(0x191)],_0x5bde59[_0x291857(0x184)]=_0x26815d[_0x291857(0x178)];const _0x407c19={};return _0x407c19[_0x291857(0x1a0)]=_0x5bde59,_0x44ea21[_0x291857(0x186)](HELP_HEADER_MESSAGE[_0x291857(0x1a5)])[_0x291857(0x16c)](HELP_FOOTER_MESSAGE)['options'](_0x407c19)[_0x291857(0x19d)](_0x26815d[_0x291857(0x16e)])[_0x291857(0x196)];},exports[a19_0x3d8162(0x16d)]=async function(_0xe3111a){const _0xecc9f5=a19_0x3d8162,_0x5b5458={'hDVWI':_0xecc9f5(0x1ae),'tWHWr':function(_0x4b8db7){return _0x4b8db7();},'hxSvK':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','xNBgG':function(_0xd8d0a3,_0x290a82,_0xe61532,_0x539301,_0x2eff57,_0x26d0fe,_0xd1477){return _0xd8d0a3(_0x290a82,_0xe61532,_0x539301,_0x2eff57,_0x26d0fe,_0xd1477);},'yoGRv':_0xecc9f5(0x19a),'VGgBq':'init-not-called','iTvSM':'<UsernamePlaceholder>','PuGIv':'<PasswordPlaceholder>','CdGtm':_0xecc9f5(0x1b0),'aNHAf':function(_0x1ef665,_0x34bddb,_0x5d5780,_0x24655c){return _0x1ef665(_0x34bddb,_0x5d5780,_0x24655c);},'enHaf':function(_0x4e26fc,_0x5d1218,_0xf02988,_0x5ddde9,_0x2aee02,_0x1cae88){return _0x4e26fc(_0x5d1218,_0xf02988,_0x5ddde9,_0x2aee02,_0x1cae88);},'SkOGK':function(_0x37c02a,_0x5f4d8f){return _0x37c02a(_0x5f4d8f);},'BSkVU':function(_0x13c733,_0x44a3ef,_0x4f9a5c){return _0x13c733(_0x44a3ef,_0x4f9a5c);},'dMqfW':'Grid\x20stoppped.','DeZJJ':function(_0x2c5359,_0x957c6){return _0x2c5359===_0x957c6;},'LGobe':function(_0x527ace,_0x57112c,_0x305684,_0x35c727,_0x1d92a9,_0x1162d0,_0x52352f){return _0x527ace(_0x57112c,_0x305684,_0x35c727,_0x1d92a9,_0x1162d0,_0x52352f);},'yWhou':'unauthorised','fREnY':_0xecc9f5(0x1b4),'YIgfu':_0xecc9f5(0x173)};let _0x449c79;try{!_0xe3111a['gridId']&&(logger[_0xecc9f5(0x170)](_0x5b5458['hDVWI']),process[_0xecc9f5(0x16a)](0x1));!fs[_0xecc9f5(0x1a4)](_0x5b5458[_0xecc9f5(0x16f)](getCredentialsPath))&&(logger[_0xecc9f5(0x170)](_0x5b5458[_0xecc9f5(0x1ac)]),await _0x5b5458['xNBgG'](sendInstrumentationEvent,_0xe3111a,_0x5b5458[_0xecc9f5(0x195)],messageTypes[_0xecc9f5(0x169)],_0x5b5458['VGgBq'],null,_0xe3111a),process[_0xecc9f5(0x16a)](0x1));logger[_0xecc9f5(0x1b3)](_0xecc9f5(0x19b)+_0xe3111a[_0xecc9f5(0x17b)]),await _0x5b5458[_0xecc9f5(0x192)](sendInstrumentationEvent,_0xe3111a,_0x5b5458[_0xecc9f5(0x195)],messageTypes[_0xecc9f5(0x181)],null,null,_0xe3111a);const _0x533221=JSON['parse'](fs[_0xecc9f5(0x179)](_0x5b5458[_0xecc9f5(0x16f)](getCredentialsPath)));global_registry[_0xecc9f5(0x188)]=_0x533221['Browserstack'][_0xecc9f5(0x176)],global_registry['bstackAccesskey']=_0x533221[_0xecc9f5(0x19c)][_0xecc9f5(0x17f)];const _0x5242fa=WS_ENDPOINT['replace'](_0x5b5458['iTvSM'],_0x533221['Browserstack'][_0xecc9f5(0x176)])[_0xecc9f5(0x18f)](_0x5b5458[_0xecc9f5(0x17c)],_0x533221[_0xecc9f5(0x19c)]['password']),_0xe80063={};_0xe80063[_0xecc9f5(0x1af)]=ws,_0xe80063[_0xecc9f5(0x189)]=0x36ee80,_0x449c79=new ReconnectingWebSocket(_0x5242fa,[],_0xe80063),logger['debug'](_0x5b5458[_0xecc9f5(0x1bd)]),webSocketUtils[_0xecc9f5(0x1b7)](_0x449c79,_0xe3111a[_0xecc9f5(0x193)],_0xe3111a[_0xecc9f5(0x17f)]);const [_0x1edc0c,_0x2953c2]=await _0x5b5458[_0xecc9f5(0x1a3)](getGridDetails,_0x533221[_0xecc9f5(0x19c)][_0xecc9f5(0x176)],_0x533221[_0xecc9f5(0x19c)][_0xecc9f5(0x17f)],_0xe3111a['gridId']);if(_0x2953c2){const _0x16e2ba=_0x2953c2[_0xecc9f5(0x1b3)];global_registry['cloudProvider']=_0x16e2ba[_0xecc9f5(0x1a6)],global_registry[_0xecc9f5(0x1bc)]=_0x16e2ba[_0xecc9f5(0x194)],global_registry[_0xecc9f5(0x18a)]=_0x16e2ba[_0xecc9f5(0x18a)];const _0x4ef76b=_0x5b5458[_0xecc9f5(0x1bb)](getCloudProviderObject,_0x16e2ba[_0xecc9f5(0x1a6)],_0x16e2ba[_0xecc9f5(0x18a)],_0x16e2ba[_0xecc9f5(0x198)],_0x449c79,webSocketUtils),_0x2522bb=_0x533221[_0xecc9f5(0x1a6)]||{};await _0x4ef76b['fetchLocalCreds'](_0x2522bb),_0x4ef76b[_0xecc9f5(0x18e)]();const [_0x162730,_0x260a67,_0x618520,_0x199e12,_0x18b237,_0x16bf59]=await _0x5b5458[_0xecc9f5(0x183)](createK8sClient,_0x4ef76b);await _0x5b5458[_0xecc9f5(0x17a)](scaleDownHubDeployment,_0x260a67,_0x16e2ba[_0xecc9f5(0x198)]),logger[_0xecc9f5(0x1b3)](_0x5b5458[_0xecc9f5(0x17d)]),process['exit'](0x0);}_0x5b5458[_0xecc9f5(0x177)](_0x1edc0c[_0xecc9f5(0x1ad)],0x191)&&(logger['error'](_0xecc9f5(0x1a1)),await _0x5b5458['LGobe'](sendInstrumentationEvent,_0xe3111a,_0x5b5458['yoGRv'],messageTypes['ERROR'],_0x5b5458[_0xecc9f5(0x174)],null,_0xe3111a),process['exit'](0x1)),_0x5b5458[_0xecc9f5(0x177)](_0x1edc0c[_0xecc9f5(0x1ad)],0x190)&&(logger['error'](JSON[_0xecc9f5(0x185)](_0x1edc0c[_0xecc9f5(0x1b8)])[_0xecc9f5(0x19f)]),await _0x5b5458[_0xecc9f5(0x199)](sendInstrumentationEvent,_0xe3111a,_0x5b5458[_0xecc9f5(0x195)],messageTypes[_0xecc9f5(0x169)],_0x5b5458['fREnY'],null,_0xe3111a),process[_0xecc9f5(0x16a)](0x1)),logger['error'](_0xecc9f5(0x180)+JSON[_0xecc9f5(0x197)](_0x1edc0c)),await _0x5b5458['LGobe'](sendInstrumentationEvent,_0xe3111a,_0x5b5458[_0xecc9f5(0x195)],messageTypes[_0xecc9f5(0x169)],_0x5b5458[_0xecc9f5(0x1a2)],_0x1edc0c,_0xe3111a),process['exit'](0x1);}catch(_0x57baa6){const _0x420640=_0xecc9f5(0x18b)+_0x57baa6+'\x20\x0a'+JSON[_0xecc9f5(0x197)](_0x57baa6[_0xecc9f5(0x1ba)])+'\x20';logger[_0xecc9f5(0x170)](_0x420640),process[_0xecc9f5(0x16a)](0x1);}};
1
+ const a19_0x1bea43=a19_0x2915;function a19_0x2915(_0x26f249,_0x2d6364){const _0x340049=a19_0x3400();return a19_0x2915=function(_0x291527,_0x2cfd5c){_0x291527=_0x291527-0x69;let _0x15f1b2=_0x340049[_0x291527];return _0x15f1b2;},a19_0x2915(_0x26f249,_0x2d6364);}(function(_0x4cabd9,_0x2171e4){const _0x2fe3d4=a19_0x2915,_0x236897=_0x4cabd9();while(!![]){try{const _0x29537f=-parseInt(_0x2fe3d4(0xc0))/0x1*(-parseInt(_0x2fe3d4(0x8e))/0x2)+parseInt(_0x2fe3d4(0xa0))/0x3+-parseInt(_0x2fe3d4(0x6b))/0x4+-parseInt(_0x2fe3d4(0xb1))/0x5*(-parseInt(_0x2fe3d4(0x69))/0x6)+-parseInt(_0x2fe3d4(0xae))/0x7*(-parseInt(_0x2fe3d4(0xbb))/0x8)+parseInt(_0x2fe3d4(0xab))/0x9*(parseInt(_0x2fe3d4(0xba))/0xa)+-parseInt(_0x2fe3d4(0xa9))/0xb;if(_0x29537f===_0x2171e4)break;else _0x236897['push'](_0x236897['shift']());}catch(_0xc43aa3){_0x236897['push'](_0x236897['shift']());}}}(a19_0x3400,0x8bddb));function a19_0x3400(){const _0x54d76f=['ESBIu','paCLD','clusterName','configureIfNotConfigured','type','czeNZ','TVaum','../../utils/instrumentationUtils','../../utils/webSocketUtils','../../utils/gridComponents','help','name','RfHTd','string','parse','POaeX','username','<PasswordPlaceholder>','GWOLX','ZqVfC','1193678flXTkf','addListeners','builder','invalid-grid-id','NOZGP','bstackAccesskey','Stop\x20a\x20running\x20Automation\x20grid.','Stopping\x20grid\x20','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','replace','exit','message','handler','../../config/logger','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stack','488988GRQlyS','oVhVP','stop-grid-called','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','EqKzf','command','oZDWw','xYBtK','usage','28466207ycCzRw','info','39555RSJvZC','stringify','stop','98RJRCgV','csbyT','description','14365DBXzEK','epilogue','body','init-not-called','debug','ERROR','vvPdI','server-error','vWtEj','2110qkMnuh','586424KnMeVS','tNsyY','readFileSync','gYGen','../../utils/createk8sClient','1yxFLth','xgpuQ','Browserstack','region','PTSiw','cloudProvider','JkYdW','INFO','1362tYXWBb','argv','819460ffyEJe','options','grid-id','clusterRegion','iShyt','Adding\x20Websocket\x20listeners','reconnecting-websocket','gridId','error','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','user','UkAvI','statusCode','UAkNx','wDCRG'];a19_0x3400=function(){return _0x54d76f;};return a19_0x3400();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1bea43(0x71)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x1bea43(0x9d)),{getCredentialsPath,getGridDetails}=require(a19_0x1bea43(0x98)),{scaleDownHubDeployment}=require(a19_0x1bea43(0x83)),{sendInstrumentationEvent}=require(a19_0x1bea43(0x81)),webSocketUtils=require(a19_0x1bea43(0x82)),{createK8sClient}=require(a19_0x1bea43(0xbf)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x1bea43(0xa5)]='grid',exports['desc']=a19_0x1bea43(0x94),exports[a19_0x1bea43(0x90)]=function(_0x320222){const _0x7abf27=a19_0x1bea43,_0xb2b9ce={};_0xb2b9ce[_0x7abf27(0x6f)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0xb2b9ce[_0x7abf27(0x7a)]=_0x7abf27(0x87),_0xb2b9ce[_0x7abf27(0xbc)]=_0x7abf27(0x84);const _0x350a35=_0xb2b9ce,_0x1df4c7={};_0x1df4c7[_0x7abf27(0xb0)]=_0x350a35[_0x7abf27(0x6f)],_0x1df4c7[_0x7abf27(0x7e)]=_0x350a35[_0x7abf27(0x7a)];const _0xc72b0e={};return _0xc72b0e[_0x7abf27(0x6d)]=_0x1df4c7,_0x320222[_0x7abf27(0xa8)](HELP_HEADER_MESSAGE[_0x7abf27(0xad)])[_0x7abf27(0xb2)](HELP_FOOTER_MESSAGE)[_0x7abf27(0x6c)](_0xc72b0e)[_0x7abf27(0x84)](_0x350a35[_0x7abf27(0xbc)])[_0x7abf27(0x6a)];},exports[a19_0x1bea43(0x9c)]=async function(_0x5860e4){const _0x4df33a=a19_0x1bea43,_0x53b755={'UAkNx':_0x4df33a(0x74),'PTSiw':function(_0x57d532){return _0x57d532();},'xYBtK':_0x4df33a(0x97),'wDCRG':function(_0x3ff215,_0x36c558,_0x26efd8,_0xd98572,_0x43a40c,_0x422f4f,_0x57b203){return _0x3ff215(_0x36c558,_0x26efd8,_0xd98572,_0x43a40c,_0x422f4f,_0x57b203);},'gYGen':_0x4df33a(0xa2),'paCLD':_0x4df33a(0xb4),'vvPdI':function(_0x3b8e5e,_0x3e095,_0x2e65e2,_0x3d3118,_0x598ab0,_0x31280d,_0x3618ea){return _0x3b8e5e(_0x3e095,_0x2e65e2,_0x3d3118,_0x598ab0,_0x31280d,_0x3618ea);},'RfHTd':'<UsernamePlaceholder>','oVhVP':_0x4df33a(0x8b),'czeNZ':_0x4df33a(0x70),'xgpuQ':function(_0x2624c2,_0x35dbd,_0x2db13c,_0x5271f3){return _0x2624c2(_0x35dbd,_0x2db13c,_0x5271f3);},'NOZGP':function(_0x1c2be8,_0x21d2b4,_0x3f43c8,_0x3e7de0,_0x9faf1,_0x570435){return _0x1c2be8(_0x21d2b4,_0x3f43c8,_0x3e7de0,_0x9faf1,_0x570435);},'UkAvI':function(_0x46c424,_0xc25bdf){return _0x46c424(_0xc25bdf);},'POaeX':function(_0x216807,_0x13b981,_0x2cbfbd){return _0x216807(_0x13b981,_0x2cbfbd);},'TVaum':'Grid\x20stoppped.','EqKzf':function(_0x42faa3,_0x20f4d5){return _0x42faa3===_0x20f4d5;},'vWtEj':function(_0xe8eda6,_0x9b995b,_0x2bd36d,_0x18d276,_0x553cf6,_0x1aa07e,_0x43ed44){return _0xe8eda6(_0x9b995b,_0x2bd36d,_0x18d276,_0x553cf6,_0x1aa07e,_0x43ed44);},'csbyT':'unauthorised','ZqVfC':function(_0x3c488b,_0x4fb6ba){return _0x3c488b===_0x4fb6ba;},'oZDWw':_0x4df33a(0x91),'GWOLX':function(_0x378039,_0x4555a1,_0x4139e9,_0x202592,_0x26906b,_0x205ad,_0x85ee2d){return _0x378039(_0x4555a1,_0x4139e9,_0x202592,_0x26906b,_0x205ad,_0x85ee2d);},'JkYdW':_0x4df33a(0xb8)};let _0x15407b;try{!_0x5860e4['gridId']&&(logger[_0x4df33a(0x73)](_0x53b755[_0x4df33a(0x78)]),process[_0x4df33a(0x9a)](0x1));!fs['existsSync'](_0x53b755[_0x4df33a(0xc4)](getCredentialsPath))&&(logger[_0x4df33a(0x73)](_0x53b755[_0x4df33a(0xa7)]),await _0x53b755[_0x4df33a(0x79)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes[_0x4df33a(0xb6)],_0x53b755[_0x4df33a(0x7b)],null,_0x5860e4),process[_0x4df33a(0x9a)](0x1));logger['info'](_0x4df33a(0x95)+_0x5860e4[_0x4df33a(0x72)]),await _0x53b755[_0x4df33a(0xb7)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes[_0x4df33a(0xc7)],null,null,_0x5860e4);const _0x292171=JSON[_0x4df33a(0x88)](fs[_0x4df33a(0xbd)](_0x53b755[_0x4df33a(0xc4)](getCredentialsPath)));global_registry['bstackUsername']=_0x292171[_0x4df33a(0xc2)][_0x4df33a(0x8a)],global_registry[_0x4df33a(0x93)]=_0x292171[_0x4df33a(0xc2)]['password'];const _0x53b3af=WS_ENDPOINT[_0x4df33a(0x99)](_0x53b755[_0x4df33a(0x86)],_0x292171['Browserstack'][_0x4df33a(0x8a)])[_0x4df33a(0x99)](_0x53b755[_0x4df33a(0xa1)],_0x292171['Browserstack']['password']),_0x46f4b8={};_0x46f4b8['WebSocket']=ws,_0x46f4b8['connectionTimeout']=0x36ee80,_0x15407b=new ReconnectingWebSocket(_0x53b3af,[],_0x46f4b8),logger[_0x4df33a(0xb5)](_0x53b755[_0x4df33a(0x7f)]),webSocketUtils[_0x4df33a(0x8f)](_0x15407b,_0x5860e4[_0x4df33a(0x75)],_0x5860e4['password']);const [_0x4f1a26,_0x4b55b6]=await _0x53b755[_0x4df33a(0xc1)](getGridDetails,_0x292171[_0x4df33a(0xc2)][_0x4df33a(0x8a)],_0x292171[_0x4df33a(0xc2)][_0x4df33a(0x96)],_0x5860e4[_0x4df33a(0x72)]);if(_0x4b55b6){const _0x5e8862=_0x4b55b6[_0x4df33a(0xaa)];global_registry[_0x4df33a(0xc5)]=_0x5e8862[_0x4df33a(0xc5)],global_registry[_0x4df33a(0x6e)]=_0x5e8862[_0x4df33a(0xc3)],global_registry[_0x4df33a(0x7c)]=_0x5e8862[_0x4df33a(0x7c)];const _0x2678a0=_0x53b755[_0x4df33a(0x92)](getCloudProviderObject,_0x5e8862['cloudProvider'],_0x5e8862[_0x4df33a(0x7c)],_0x5e8862['name'],_0x15407b,webSocketUtils),_0x69a6bc=_0x292171[_0x4df33a(0xc5)]||{};await _0x2678a0['fetchLocalCreds'](_0x69a6bc),_0x2678a0[_0x4df33a(0x7d)]();const [_0x1adc48,_0x1f7a85,_0x2f8623,_0x2f969b,_0x1f8ce0,_0x5d34e0]=await _0x53b755[_0x4df33a(0x76)](createK8sClient,_0x2678a0);await _0x53b755[_0x4df33a(0x89)](scaleDownHubDeployment,_0x1f7a85,_0x5e8862[_0x4df33a(0x85)]),logger['info'](_0x53b755[_0x4df33a(0x80)]),process[_0x4df33a(0x9a)](0x0);}_0x53b755[_0x4df33a(0xa4)](_0x4f1a26[_0x4df33a(0x77)],0x191)&&(logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x53b755[_0x4df33a(0xb9)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes['ERROR'],_0x53b755[_0x4df33a(0xaf)],null,_0x5860e4),process[_0x4df33a(0x9a)](0x1)),_0x53b755[_0x4df33a(0x8d)](_0x4f1a26[_0x4df33a(0x77)],0x190)&&(logger[_0x4df33a(0x73)](JSON[_0x4df33a(0x88)](_0x4f1a26[_0x4df33a(0xb3)])[_0x4df33a(0x9b)]),await _0x53b755[_0x4df33a(0x79)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes[_0x4df33a(0xb6)],_0x53b755[_0x4df33a(0xa6)],null,_0x5860e4),process[_0x4df33a(0x9a)](0x1)),logger[_0x4df33a(0x73)](_0x4df33a(0x9e)+JSON[_0x4df33a(0xac)](_0x4f1a26)),await _0x53b755[_0x4df33a(0x8c)](sendInstrumentationEvent,_0x5860e4,_0x53b755['gYGen'],messageTypes[_0x4df33a(0xb6)],_0x53b755[_0x4df33a(0xc6)],_0x4f1a26,_0x5860e4),process[_0x4df33a(0x9a)](0x1);}catch(_0x303bef){const _0x3ef169=_0x4df33a(0xa3)+_0x303bef+'\x20\x0a'+JSON[_0x4df33a(0xac)](_0x303bef[_0x4df33a(0x9f)])+'\x20';logger[_0x4df33a(0x73)](_0x3ef169),process[_0x4df33a(0x9a)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x3e6ed4=a20_0x43aa;(function(_0x1901f3,_0xf206ac){const _0x5ca46d=a20_0x43aa,_0x296ef4=_0x1901f3();while(!![]){try{const _0x5ea5e4=-parseInt(_0x5ca46d(0x13a))/0x1*(parseInt(_0x5ca46d(0x158))/0x2)+parseInt(_0x5ca46d(0x14f))/0x3*(parseInt(_0x5ca46d(0x14c))/0x4)+-parseInt(_0x5ca46d(0x150))/0x5*(parseInt(_0x5ca46d(0x16e))/0x6)+parseInt(_0x5ca46d(0x172))/0x7*(parseInt(_0x5ca46d(0x162))/0x8)+-parseInt(_0x5ca46d(0x156))/0x9*(-parseInt(_0x5ca46d(0x133))/0xa)+parseInt(_0x5ca46d(0x171))/0xb+-parseInt(_0x5ca46d(0x16c))/0xc;if(_0x5ea5e4===_0xf206ac)break;else _0x296ef4['push'](_0x296ef4['shift']());}catch(_0x4698b0){_0x296ef4['push'](_0x296ef4['shift']());}}}(a20_0x46e5,0xc87a1),require(a20_0x3e6ed4(0x147))['config'](),exports[a20_0x3e6ed4(0x149)]=process[a20_0x3e6ed4(0x130)][a20_0x3e6ed4(0x149)]||'grid.browserstack.com',exports[a20_0x3e6ed4(0x128)]=process['env'][a20_0x3e6ed4(0x128)]||a20_0x3e6ed4(0x17a),exports[a20_0x3e6ed4(0x145)]=process[a20_0x3e6ed4(0x130)][a20_0x3e6ed4(0x145)]||'grid-api.browserstack.com',exports[a20_0x3e6ed4(0x16f)]='wss://'+this[a20_0x3e6ed4(0x145)]+a20_0x3e6ed4(0x165),exports[a20_0x3e6ed4(0x160)]=a20_0x3e6ed4(0x161),exports[a20_0x3e6ed4(0x136)]=a20_0x3e6ed4(0x126),exports['DEFAULT_GRID_NAME']=a20_0x3e6ed4(0x148));const timestamp=new Date()['getTime']();exports[a20_0x3e6ed4(0x15d)]=a20_0x3e6ed4(0x167),exports['CLUSTER_DEP_STACK_NAME']=a20_0x3e6ed4(0x13f)+timestamp,exports['CLUSTER_AUTOSCALER_STACK_NAME']=a20_0x3e6ed4(0x13c)+timestamp,exports[a20_0x3e6ed4(0x173)]=a20_0x3e6ed4(0x13b),exports[a20_0x3e6ed4(0x152)]=a20_0x3e6ed4(0x125);const a20_0x575738={};a20_0x575738[a20_0x3e6ed4(0x140)]=a20_0x3e6ed4(0x170),a20_0x575738[a20_0x3e6ed4(0x178)]=a20_0x3e6ed4(0x14d);const a20_0x567449={};a20_0x567449['Key']=a20_0x3e6ed4(0x15e),a20_0x567449[a20_0x3e6ed4(0x178)]=a20_0x3e6ed4(0x153),exports[a20_0x3e6ed4(0x157)]=[a20_0x575738,a20_0x567449];const a20_0x2083c7={};a20_0x2083c7[a20_0x3e6ed4(0x170)]=a20_0x3e6ed4(0x14d),a20_0x2083c7[a20_0x3e6ed4(0x15e)]='BrowserStack-Automate-TurboScale',exports[a20_0x3e6ed4(0x141)]=a20_0x2083c7,exports[a20_0x3e6ed4(0x14b)]=[this[a20_0x3e6ed4(0x15d)]];const a20_0x507468={};function a20_0x46e5(){const _0x35c942=['NULL','messageTypes','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','delete','AWS','browserstack:service','ERROR','CP_CONFIG_FILE','credentials','916280jmciwX','cliRunFinished','init','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','list','aws','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','log','REDACTED','6352356hFqnzC','SUCCESS','211398hXpDBA','WS_ENDPOINT','browserstack:managedBy','14993044yUftFy','28jEoGTs','AZURE','CLI_ARGS_REGEX','gridUrl','configure','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','Value','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','api.browserstack.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','gcp','BrowserStackIAMUser','RAW_ARGS_REGEX','BS_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','root','HELP_FOOTER_MESSAGE','WS_EVENTS','success','resourceInfo','create','env','LINK_MESSAGE','cliRunStarted','30XuQpvL','gridProfile','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','IAM_USER_NAME','[REDACTED]','stop','RESOURCES','265mtKLyg','azure','BSTACK-ATS-CLUSTER-AUTOSCALER-','info','CLI_RUN_FINISHED','BSTACK-ATS-CLUSTER-','Key','HST_CLUSTER_TAGS','GRID_URL','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','warning','AG_API_URL','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','dotenv','high-scale-grid','DASHBOARD_ENDPOINT','global_registry','SUPPORTED_CLOUD_PROVIDERS','4NEhsWr','BrowserStack','connect','742548IzCGGA','155nNUcwX','INFO','GCP','BrowserStack-Automate-TurboScale','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','LOG','4823757EeBNfM','COMMON_HST_TAGS','9312lSqlQd'];a20_0x46e5=function(){return _0x35c942;};return a20_0x46e5();}a20_0x507468[a20_0x3e6ed4(0x155)]=a20_0x3e6ed4(0x16a),a20_0x507468[a20_0x3e6ed4(0x139)]=a20_0x3e6ed4(0x12e),a20_0x507468[a20_0x3e6ed4(0x142)]=a20_0x3e6ed4(0x175),a20_0x507468[a20_0x3e6ed4(0x168)]=a20_0x3e6ed4(0x132),a20_0x507468[a20_0x3e6ed4(0x13e)]=a20_0x3e6ed4(0x163),exports[a20_0x3e6ed4(0x12c)]=a20_0x507468,exports[a20_0x3e6ed4(0x14a)]={},exports[a20_0x3e6ed4(0x131)]=a20_0x3e6ed4(0x135);const a20_0x39f942={};function a20_0x43aa(_0x7c7a86,_0x1efbb5){const _0x46e544=a20_0x46e5();return a20_0x43aa=function(_0x43aab1,_0x4112fb){_0x43aab1=_0x43aab1-0x125;let _0x35821d=_0x46e544[_0x43aab1];return _0x35821d;},a20_0x43aa(_0x7c7a86,_0x1efbb5);}a20_0x39f942['root']=a20_0x3e6ed4(0x15b)+this[a20_0x3e6ed4(0x131)],a20_0x39f942[a20_0x3e6ed4(0x164)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a20_0x3e6ed4(0x131)],a20_0x39f942[a20_0x3e6ed4(0x176)]=a20_0x3e6ed4(0x17b)+this[a20_0x3e6ed4(0x131)],a20_0x39f942[a20_0x3e6ed4(0x12f)]='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a20_0x3e6ed4(0x131)],a20_0x39f942[a20_0x3e6ed4(0x166)]={},a20_0x39f942[a20_0x3e6ed4(0x15c)]=a20_0x3e6ed4(0x154)+this[a20_0x3e6ed4(0x131)],a20_0x39f942[a20_0x3e6ed4(0x14e)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a20_0x3e6ed4(0x131)],a20_0x39f942['start']=a20_0x3e6ed4(0x177)+this[a20_0x3e6ed4(0x131)],a20_0x39f942[a20_0x3e6ed4(0x138)]=a20_0x3e6ed4(0x143)+this[a20_0x3e6ed4(0x131)],a20_0x39f942[a20_0x3e6ed4(0x166)][a20_0x3e6ed4(0x12a)]=a20_0x3e6ed4(0x169)+this[a20_0x3e6ed4(0x131)],a20_0x39f942[a20_0x3e6ed4(0x166)]['grid']=a20_0x3e6ed4(0x146)+this[a20_0x3e6ed4(0x131)],a20_0x39f942[a20_0x3e6ed4(0x166)][a20_0x3e6ed4(0x134)]=a20_0x3e6ed4(0x129)+this[a20_0x3e6ed4(0x131)],exports['HELP_HEADER_MESSAGE']=a20_0x39f942,exports[a20_0x3e6ed4(0x12b)]=a20_0x3e6ed4(0x179);const a20_0x9cb60d={};a20_0x9cb60d[a20_0x3e6ed4(0x16d)]=a20_0x3e6ed4(0x12d),a20_0x9cb60d[a20_0x3e6ed4(0x15f)]='error',a20_0x9cb60d[a20_0x3e6ed4(0x151)]=a20_0x3e6ed4(0x13d),a20_0x9cb60d['WARNING']=a20_0x3e6ed4(0x144),a20_0x9cb60d['UNKNOWN']='unknown',a20_0x9cb60d[a20_0x3e6ed4(0x159)]=null,exports[a20_0x3e6ed4(0x15a)]=a20_0x9cb60d,exports[a20_0x3e6ed4(0x174)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x3e6ed4(0x127)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x3e6ed4(0x16b)]=a20_0x3e6ed4(0x137);
1
+ const a20_0x51b4fc=a20_0x33d6;(function(_0x335f52,_0x5d5b34){const _0x3f648d=a20_0x33d6,_0x47be98=_0x335f52();while(!![]){try{const _0x5d91ae=-parseInt(_0x3f648d(0x221))/0x1*(parseInt(_0x3f648d(0x1e8))/0x2)+parseInt(_0x3f648d(0x20c))/0x3*(parseInt(_0x3f648d(0x1f4))/0x4)+parseInt(_0x3f648d(0x1fb))/0x5*(-parseInt(_0x3f648d(0x22b))/0x6)+parseInt(_0x3f648d(0x1de))/0x7*(parseInt(_0x3f648d(0x1f2))/0x8)+parseInt(_0x3f648d(0x20a))/0x9*(parseInt(_0x3f648d(0x1ee))/0xa)+parseInt(_0x3f648d(0x1da))/0xb+-parseInt(_0x3f648d(0x1f8))/0xc;if(_0x5d91ae===_0x5d5b34)break;else _0x47be98['push'](_0x47be98['shift']());}catch(_0x1fc8ad){_0x47be98['push'](_0x47be98['shift']());}}}(a20_0x1161,0xbc81b),require(a20_0x51b4fc(0x1f6))[a20_0x51b4fc(0x1fc)](),exports[a20_0x51b4fc(0x1e5)]=process[a20_0x51b4fc(0x222)][a20_0x51b4fc(0x1e5)]||a20_0x51b4fc(0x200),exports['BS_API_URL']=process['env']['BS_API_URL']||a20_0x51b4fc(0x220),exports[a20_0x51b4fc(0x217)]=process[a20_0x51b4fc(0x222)]['AG_API_URL']||a20_0x51b4fc(0x1e1),exports[a20_0x51b4fc(0x1dc)]='wss://'+this[a20_0x51b4fc(0x217)]+a20_0x51b4fc(0x21f),exports[a20_0x51b4fc(0x20e)]='credentials',exports[a20_0x51b4fc(0x204)]='BrowserStackIAMUser',exports[a20_0x51b4fc(0x202)]=a20_0x51b4fc(0x1f3));const timestamp=new Date()[a20_0x51b4fc(0x1d9)]();function a20_0x1161(){const _0x495959=['2xUYfoN','HELP_HEADER_MESSAGE','gcp','grid','CLI_RUN_FINISHED','CLI_ARGS_REGEX','1485130kelIrr','start','gridProfile','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','8GWNCDK','high-scale-grid','5072020aRvTrx','AZURE','dotenv','RESOURCES','8649780nnURfK','create','init','436785kKvVAp','config','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','[REDACTED]','REDACTED','grid.browserstack.com','info','DEFAULT_GRID_NAME','browserstack:service','IAM_USER_NAME','ERROR','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','HST_CLUSTER_TAGS','CLI_RUN_STARTED','BSTACK-ATS-CLUSTER-','54VRQQnP','Key','3tqzNIk','WS_EVENTS','CP_CONFIG_FILE','NULL','log','cliRunStarted','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','warning','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','aws','AG_API_URL','LOG','root','azure','AWS','INFO','Value','browserstack-turboscale-grid','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','api.browserstack.com','1461842fyVuPH','env','resourceInfo','CLUSTER_AUTOSCALER_STACK_NAME','unknown','browserstack:managedBy','LINK_MESSAGE','WARNING','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BrowserStack-Automate-TurboScale','30krWTCH','getTime','7138549zVBPQp','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','WS_ENDPOINT','cliRunFinished','4084661qNJOJT','CLUSTER_DEP_STACK_NAME','list','grid-api.browserstack.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack','DASHBOARD_ENDPOINT','TURBOSCALE_DEPLOYMENT','SUCCESS'];a20_0x1161=function(){return _0x495959;};return a20_0x1161();}exports[a20_0x51b4fc(0x21b)]=a20_0x51b4fc(0x216),exports[a20_0x51b4fc(0x1df)]=a20_0x51b4fc(0x209)+timestamp,exports[a20_0x51b4fc(0x224)]='BSTACK-ATS-CLUSTER-AUTOSCALER-'+timestamp,exports[a20_0x51b4fc(0x1e6)]=a20_0x51b4fc(0x21e),exports[a20_0x51b4fc(0x1f5)]=a20_0x51b4fc(0x21a),exports['GCP']=a20_0x51b4fc(0x1ea);const a20_0x7d9c07={};function a20_0x33d6(_0x3edef8,_0x175ec2){const _0x11612f=a20_0x1161();return a20_0x33d6=function(_0x33d616,_0x6c7022){_0x33d616=_0x33d616-0x1d9;let _0x6e4e7d=_0x11612f[_0x33d616];return _0x6e4e7d;},a20_0x33d6(_0x3edef8,_0x175ec2);}a20_0x7d9c07[a20_0x51b4fc(0x20b)]=a20_0x51b4fc(0x226),a20_0x7d9c07[a20_0x51b4fc(0x21d)]=a20_0x51b4fc(0x1e4);const a20_0x595ff3={};a20_0x595ff3[a20_0x51b4fc(0x20b)]=a20_0x51b4fc(0x203),a20_0x595ff3[a20_0x51b4fc(0x21d)]='BrowserStack-Automate-TurboScale',exports['COMMON_HST_TAGS']=[a20_0x7d9c07,a20_0x595ff3];const a20_0x4c9546={};a20_0x4c9546[a20_0x51b4fc(0x226)]=a20_0x51b4fc(0x1e4),a20_0x4c9546['browserstack:service']=a20_0x51b4fc(0x22a),exports[a20_0x51b4fc(0x207)]=a20_0x4c9546,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a20_0x48142b={};a20_0x48142b[a20_0x51b4fc(0x218)]=a20_0x51b4fc(0x210),a20_0x48142b[a20_0x51b4fc(0x1f7)]=a20_0x51b4fc(0x223),a20_0x48142b['GRID_URL']='gridUrl',a20_0x48142b[a20_0x51b4fc(0x208)]=a20_0x51b4fc(0x211),a20_0x48142b[a20_0x51b4fc(0x1ec)]=a20_0x51b4fc(0x1dd),exports[a20_0x51b4fc(0x20d)]=a20_0x48142b,exports['global_registry']={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a20_0x7fd77d={};a20_0x7fd77d['root']=a20_0x51b4fc(0x213)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1fa)]=a20_0x51b4fc(0x1e2)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d['configure']=a20_0x51b4fc(0x229)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1f9)]=a20_0x51b4fc(0x212)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1e0)]={},a20_0x7fd77d['delete']=a20_0x51b4fc(0x1fd)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d['connect']=a20_0x51b4fc(0x1e3)+this['LINK_MESSAGE'],a20_0x7fd77d[a20_0x51b4fc(0x1ef)]=a20_0x51b4fc(0x215)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d['stop']=a20_0x51b4fc(0x206)+this['LINK_MESSAGE'],a20_0x7fd77d[a20_0x51b4fc(0x1e0)][a20_0x51b4fc(0x219)]=a20_0x51b4fc(0x1f1)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1e0)][a20_0x51b4fc(0x1eb)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1e0)][a20_0x51b4fc(0x1f0)]=a20_0x51b4fc(0x1db)+this['LINK_MESSAGE'],exports[a20_0x51b4fc(0x1e9)]=a20_0x7fd77d,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a20_0x2b1d71={};a20_0x2b1d71[a20_0x51b4fc(0x1e7)]='success',a20_0x2b1d71[a20_0x51b4fc(0x205)]='error',a20_0x2b1d71[a20_0x51b4fc(0x21c)]=a20_0x51b4fc(0x201),a20_0x2b1d71[a20_0x51b4fc(0x228)]=a20_0x51b4fc(0x214),a20_0x2b1d71['UNKNOWN']=a20_0x51b4fc(0x225),a20_0x2b1d71[a20_0x51b4fc(0x20f)]=null,exports['messageTypes']=a20_0x2b1d71,exports[a20_0x51b4fc(0x1ed)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x51b4fc(0x1ff)]=a20_0x51b4fc(0x1fe);
@@ -1 +1 @@
1
- const a21_0x7e126c=a21_0x2adb;(function(_0x206ed4,_0x503748){const _0x2ae0a1=a21_0x2adb,_0xa24719=_0x206ed4();while(!![]){try{const _0x33f2ec=-parseInt(_0x2ae0a1(0x107))/0x1*(-parseInt(_0x2ae0a1(0x11f))/0x2)+-parseInt(_0x2ae0a1(0x11d))/0x3+-parseInt(_0x2ae0a1(0x11b))/0x4+-parseInt(_0x2ae0a1(0x109))/0x5+parseInt(_0x2ae0a1(0x104))/0x6+-parseInt(_0x2ae0a1(0x117))/0x7*(-parseInt(_0x2ae0a1(0x114))/0x8)+-parseInt(_0x2ae0a1(0x115))/0x9*(-parseInt(_0x2ae0a1(0x10e))/0xa);if(_0x33f2ec===_0x503748)break;else _0xa24719['push'](_0xa24719['shift']());}catch(_0x3632b7){_0xa24719['push'](_0xa24719['shift']());}}}(a21_0x5a11,0xe1bb9));function a21_0x2adb(_0x3d141e,_0x31de44){const _0x5a11e6=a21_0x5a11();return a21_0x2adb=function(_0x2adbfe,_0x3dfe10){_0x2adbfe=_0x2adbfe-0x104;let _0x59859d=_0x5a11e6[_0x2adbfe];return _0x59859d;},a21_0x2adb(_0x3d141e,_0x31de44);}const winston=require(a21_0x7e126c(0x10d)),fs=require('fs'),path=require(a21_0x7e126c(0x11c)),logDir=a21_0x7e126c(0x108);!fs['existsSync'](logDir)&&fs['mkdirSync'](logDir);const a21_0x118d7a={};a21_0x118d7a['format']=a21_0x7e126c(0x118);const a21_0x5b01ac={};a21_0x5b01ac[a21_0x7e126c(0x10a)]=!![];const a21_0x403937={};a21_0x403937[a21_0x7e126c(0x111)]=a21_0x7e126c(0x106),exports[a21_0x7e126c(0x119)]=new winston[(a21_0x7e126c(0x116))]({'format':winston[a21_0x7e126c(0x105)]['combine'](winston['format']['timestamp'](a21_0x118d7a),winston[a21_0x7e126c(0x105)][a21_0x7e126c(0x10b)](a21_0x5b01ac),winston['format']['printf'](_0x2dfa41=>_0x2dfa41[a21_0x7e126c(0x110)]+'\x20-\x20'+_0x2dfa41[a21_0x7e126c(0x10a)]+':\x20'+_0x2dfa41[a21_0x7e126c(0x10f)])),'transports':[new winston['transports']['Console'](a21_0x403937),new winston[(a21_0x7e126c(0x11a))][(a21_0x7e126c(0x112))]({'filename':path[a21_0x7e126c(0x10c)](logDir,'events.log'),'level':a21_0x7e126c(0x113)})]});function a21_0x5a11(){const _0x2cdaf5=['2513LOKBLa','YYYY-MM-DD\x20HH:mm:ss','logger','transports','5088828gIUNul','path','674001ZvLeeP','usage.log','39356iDlWxn','fileLogger','6337476swdQBL','format','console.info','47bCXJYW','log','3449360KSNrZe','level','colorize','join','winston','20QMFrtT','message','timestamp','name','File','debug','22072VSuLKV','628893XtMRCJ','createLogger'];a21_0x5a11=function(){return _0x2cdaf5;};return a21_0x5a11();}const winstonFileLoggerParams={'transports':[new winston['transports'][(a21_0x7e126c(0x112))]({'filename':path[a21_0x7e126c(0x10c)](logDir,a21_0x7e126c(0x11e)),'level':a21_0x7e126c(0x113)})]};exports[a21_0x7e126c(0x120)]=new winston['createLogger'](winstonFileLoggerParams);
1
+ const a21_0x5a005f=a21_0x3072;(function(_0x5bfac4,_0x35d0c3){const _0x328eb1=a21_0x3072,_0x71aefc=_0x5bfac4();while(!![]){try{const _0x2c2444=-parseInt(_0x328eb1(0x174))/0x1*(parseInt(_0x328eb1(0x17f))/0x2)+parseInt(_0x328eb1(0x176))/0x3*(parseInt(_0x328eb1(0x177))/0x4)+-parseInt(_0x328eb1(0x185))/0x5*(-parseInt(_0x328eb1(0x184))/0x6)+parseInt(_0x328eb1(0x16d))/0x7+-parseInt(_0x328eb1(0x180))/0x8+parseInt(_0x328eb1(0x178))/0x9*(-parseInt(_0x328eb1(0x170))/0xa)+-parseInt(_0x328eb1(0x182))/0xb;if(_0x2c2444===_0x35d0c3)break;else _0x71aefc['push'](_0x71aefc['shift']());}catch(_0x4e6ba7){_0x71aefc['push'](_0x71aefc['shift']());}}}(a21_0x214d,0x1ac71));const winston=require(a21_0x5a005f(0x17e)),fs=require('fs'),path=require(a21_0x5a005f(0x181)),logDir='log';!fs[a21_0x5a005f(0x183)](logDir)&&fs[a21_0x5a005f(0x187)](logDir);const a21_0x5bcbb4={};a21_0x5bcbb4[a21_0x5a005f(0x172)]='YYYY-MM-DD\x20HH:mm:ss';function a21_0x214d(){const _0x37c4bc=['message','1307117QtTsrG','colorize','printf','27510dTqRqZ','fileLogger','format','debug','21666SAEHlh','\x20-\x20','144480EMJIUl','16bAZwrx','657lXQdVx','Console','console.info','events.log','timestamp','transports','winston','2BcoJUC','689536SRErJY','path','827497lHfQyf','existsSync','685308eBWgKK','5FiXOCw','level','mkdirSync','createLogger','File','join'];a21_0x214d=function(){return _0x37c4bc;};return a21_0x214d();}const a21_0xf2a1ac={};a21_0xf2a1ac[a21_0x5a005f(0x186)]=!![];const a21_0x3ae7f6={};function a21_0x3072(_0x136bb3,_0x44401d){const _0x214dcf=a21_0x214d();return a21_0x3072=function(_0x3072e7,_0x42b3c3){_0x3072e7=_0x3072e7-0x169;let _0x10febb=_0x214dcf[_0x3072e7];return _0x10febb;},a21_0x3072(_0x136bb3,_0x44401d);}a21_0x3ae7f6['name']=a21_0x5a005f(0x17a),exports['logger']=new winston['createLogger']({'format':winston[a21_0x5a005f(0x172)]['combine'](winston['format'][a21_0x5a005f(0x17c)](a21_0x5bcbb4),winston[a21_0x5a005f(0x172)][a21_0x5a005f(0x16e)](a21_0xf2a1ac),winston[a21_0x5a005f(0x172)][a21_0x5a005f(0x16f)](_0x16a8fd=>_0x16a8fd[a21_0x5a005f(0x17c)]+a21_0x5a005f(0x175)+_0x16a8fd[a21_0x5a005f(0x186)]+':\x20'+_0x16a8fd[a21_0x5a005f(0x16c)])),'transports':[new winston[(a21_0x5a005f(0x17d))][(a21_0x5a005f(0x179))](a21_0x3ae7f6),new winston[(a21_0x5a005f(0x17d))][(a21_0x5a005f(0x16a))]({'filename':path[a21_0x5a005f(0x16b)](logDir,a21_0x5a005f(0x17b)),'level':a21_0x5a005f(0x173)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x5a005f(0x17d))][(a21_0x5a005f(0x16a))]({'filename':path['join'](logDir,'usage.log'),'level':a21_0x5a005f(0x173)})]};exports[a21_0x5a005f(0x171)]=new winston[(a21_0x5a005f(0x169))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0x1cb7af=a22_0x405d;(function(_0x220116,_0x2a4388){const _0x443a09=a22_0x405d,_0x5ec853=_0x220116();while(!![]){try{const _0x1a55bc=-parseInt(_0x443a09(0xe1))/0x1*(-parseInt(_0x443a09(0xd9))/0x2)+-parseInt(_0x443a09(0xd7))/0x3*(parseInt(_0x443a09(0xe4))/0x4)+parseInt(_0x443a09(0xdd))/0x5*(parseInt(_0x443a09(0xea))/0x6)+parseInt(_0x443a09(0xda))/0x7*(parseInt(_0x443a09(0xe0))/0x8)+parseInt(_0x443a09(0xed))/0x9*(parseInt(_0x443a09(0xde))/0xa)+-parseInt(_0x443a09(0xec))/0xb+parseInt(_0x443a09(0xe3))/0xc*(-parseInt(_0x443a09(0xe6))/0xd);if(_0x1a55bc===_0x2a4388)break;else _0x5ec853['push'](_0x5ec853['shift']());}catch(_0x1860c3){_0x5ec853['push'](_0x5ec853['shift']());}}}(a22_0x5b8a,0x3c203));function a22_0x5b8a(){const _0x46d6b8=['24YkHiSd','8MpwDcS','TpRcG','2471053iTSFSW','env','usage','commands','871242SIjhKM','Zrvaz','2067285axCRlr','20673WeBCUJ','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','root','640314WnzijM','exports','3386ysVNJI','7bcIAQJ','demandCommand','./config/constants','5lHdopw','1790zcZkGz','help','3122368neZqSy','174esoQKR','epilogue'];a22_0x5b8a=function(){return _0x46d6b8;};return a22_0x5b8a();}function a22_0x405d(_0x5a1019,_0x2a5587){const _0x5b8aeb=a22_0x5b8a();return a22_0x405d=function(_0x405d5d,_0x4d0d68){_0x405d5d=_0x405d5d-0xd7;let _0x7a2406=_0x5b8aeb[_0x405d5d];return _0x7a2406;},a22_0x405d(_0x5a1019,_0x2a5587);}const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x1cb7af(0xdc));process[a22_0x1cb7af(0xe7)][a22_0x1cb7af(0xee)]=0x1;function run(_0x5018b2){const _0x3f9823=a22_0x1cb7af,_0x21784c={};_0x21784c[_0x3f9823(0xeb)]=_0x3f9823(0xe9),_0x21784c[_0x3f9823(0xe5)]=_0x3f9823(0xdf);const _0x4d2646=_0x21784c;_0x5018b2[_0x3f9823(0xe8)](HELP_HEADER_MESSAGE[_0x3f9823(0xef)])['commandDir'](_0x4d2646[_0x3f9823(0xeb)])[_0x3f9823(0xdb)]()['help'](_0x4d2646[_0x3f9823(0xe5)])[_0x3f9823(0xe2)](HELP_FOOTER_MESSAGE);}module[a22_0x1cb7af(0xd8)]=run;
2
+ 'use strict';const a22_0xe53443=a22_0x3eb8;function a22_0x3eb8(_0x15e2f7,_0x56d44a){const _0x304288=a22_0x3042();return a22_0x3eb8=function(_0x3eb8e9,_0x20eb9f){_0x3eb8e9=_0x3eb8e9-0xb6;let _0x2255be=_0x304288[_0x3eb8e9];return _0x2255be;},a22_0x3eb8(_0x15e2f7,_0x56d44a);}(function(_0x556818,_0x345af0){const _0x2e5035=a22_0x3eb8,_0x7b6be8=_0x556818();while(!![]){try{const _0x4c043a=parseInt(_0x2e5035(0xb6))/0x1+parseInt(_0x2e5035(0xca))/0x2+parseInt(_0x2e5035(0xcb))/0x3+parseInt(_0x2e5035(0xbe))/0x4*(-parseInt(_0x2e5035(0xc7))/0x5)+-parseInt(_0x2e5035(0xc0))/0x6*(parseInt(_0x2e5035(0xb8))/0x7)+parseInt(_0x2e5035(0xba))/0x8+parseInt(_0x2e5035(0xb7))/0x9;if(_0x4c043a===_0x345af0)break;else _0x7b6be8['push'](_0x7b6be8['shift']());}catch(_0xfc1666){_0x7b6be8['push'](_0x7b6be8['shift']());}}}(a22_0x3042,0x2274f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0xe53443(0xb9));process[a22_0xe53443(0xbc)][a22_0xe53443(0xbb)]=0x1;function run(_0x21bd2b){const _0x385396=a22_0xe53443,_0xfc361d={};_0xfc361d[_0x385396(0xc1)]=_0x385396(0xc2),_0xfc361d[_0x385396(0xbd)]=_0x385396(0xc8);const _0x3086e3=_0xfc361d;_0x21bd2b[_0x385396(0xc6)](HELP_HEADER_MESSAGE[_0x385396(0xc9)])[_0x385396(0xc5)](_0x3086e3[_0x385396(0xc1)])[_0x385396(0xc3)]()[_0x385396(0xc8)](_0x3086e3[_0x385396(0xbd)])[_0x385396(0xc4)](HELP_FOOTER_MESSAGE);}function a22_0x3042(){const _0x59f94d=['1123632aWjyxM','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','env','TCWvp','176LICmov','exports','270aXTDzk','cErvH','commands','demandCommand','epilogue','commandDir','usage','18430FrDvgz','help','root','175448sBPXpb','735456dErPcp','77840KhiEVM','261711IrgGru','43078eRUNRu','./config/constants'];a22_0x3042=function(){return _0x59f94d;};return a22_0x3042();}module[a22_0xe53443(0xbf)]=run;
@@ -15,7 +15,7 @@ metadata:
15
15
  app.kubernetes.io/instance: ingress-nginx
16
16
  app.kubernetes.io/name: ingress-nginx
17
17
  app.kubernetes.io/part-of: ingress-nginx
18
- app.kubernetes.io/version: 1.8.2
18
+ app.kubernetes.io/version: 1.10.0
19
19
  name: ingress-nginx
20
20
  namespace: ingress-nginx
21
21
  ---
@@ -27,7 +27,7 @@ metadata:
27
27
  app.kubernetes.io/instance: ingress-nginx
28
28
  app.kubernetes.io/name: ingress-nginx
29
29
  app.kubernetes.io/part-of: ingress-nginx
30
- app.kubernetes.io/version: 1.8.2
30
+ app.kubernetes.io/version: 1.10.0
31
31
  name: ingress-nginx-admission
32
32
  namespace: ingress-nginx
33
33
  ---
@@ -39,7 +39,7 @@ metadata:
39
39
  app.kubernetes.io/instance: ingress-nginx
40
40
  app.kubernetes.io/name: ingress-nginx
41
41
  app.kubernetes.io/part-of: ingress-nginx
42
- app.kubernetes.io/version: 1.8.2
42
+ app.kubernetes.io/version: 1.10.0
43
43
  name: ingress-nginx
44
44
  namespace: ingress-nginx
45
45
  rules:
@@ -129,7 +129,7 @@ metadata:
129
129
  app.kubernetes.io/instance: ingress-nginx
130
130
  app.kubernetes.io/name: ingress-nginx
131
131
  app.kubernetes.io/part-of: ingress-nginx
132
- app.kubernetes.io/version: 1.8.2
132
+ app.kubernetes.io/version: 1.10.0
133
133
  name: ingress-nginx-admission
134
134
  namespace: ingress-nginx
135
135
  rules:
@@ -148,7 +148,7 @@ metadata:
148
148
  app.kubernetes.io/instance: ingress-nginx
149
149
  app.kubernetes.io/name: ingress-nginx
150
150
  app.kubernetes.io/part-of: ingress-nginx
151
- app.kubernetes.io/version: 1.8.2
151
+ app.kubernetes.io/version: 1.10.0
152
152
  name: ingress-nginx
153
153
  rules:
154
154
  - apiGroups:
@@ -230,7 +230,7 @@ metadata:
230
230
  app.kubernetes.io/instance: ingress-nginx
231
231
  app.kubernetes.io/name: ingress-nginx
232
232
  app.kubernetes.io/part-of: ingress-nginx
233
- app.kubernetes.io/version: 1.8.2
233
+ app.kubernetes.io/version: 1.10.0
234
234
  name: ingress-nginx-admission
235
235
  rules:
236
236
  - apiGroups:
@@ -249,7 +249,7 @@ metadata:
249
249
  app.kubernetes.io/instance: ingress-nginx
250
250
  app.kubernetes.io/name: ingress-nginx
251
251
  app.kubernetes.io/part-of: ingress-nginx
252
- app.kubernetes.io/version: 1.8.2
252
+ app.kubernetes.io/version: 1.10.0
253
253
  name: ingress-nginx
254
254
  namespace: ingress-nginx
255
255
  roleRef:
@@ -269,7 +269,7 @@ metadata:
269
269
  app.kubernetes.io/instance: ingress-nginx
270
270
  app.kubernetes.io/name: ingress-nginx
271
271
  app.kubernetes.io/part-of: ingress-nginx
272
- app.kubernetes.io/version: 1.8.2
272
+ app.kubernetes.io/version: 1.10.0
273
273
  name: ingress-nginx-admission
274
274
  namespace: ingress-nginx
275
275
  roleRef:
@@ -288,7 +288,7 @@ metadata:
288
288
  app.kubernetes.io/instance: ingress-nginx
289
289
  app.kubernetes.io/name: ingress-nginx
290
290
  app.kubernetes.io/part-of: ingress-nginx
291
- app.kubernetes.io/version: 1.8.2
291
+ app.kubernetes.io/version: 1.10.0
292
292
  name: ingress-nginx
293
293
  roleRef:
294
294
  apiGroup: rbac.authorization.k8s.io
@@ -307,7 +307,7 @@ metadata:
307
307
  app.kubernetes.io/instance: ingress-nginx
308
308
  app.kubernetes.io/name: ingress-nginx
309
309
  app.kubernetes.io/part-of: ingress-nginx
310
- app.kubernetes.io/version: 1.8.2
310
+ app.kubernetes.io/version: 1.10.0
311
311
  name: ingress-nginx-admission
312
312
  roleRef:
313
313
  apiGroup: rbac.authorization.k8s.io
@@ -320,7 +320,7 @@ subjects:
320
320
  ---
321
321
  apiVersion: v1
322
322
  data:
323
- allow-snippet-annotations: "true"
323
+ allow-snippet-annotations: "false"
324
324
  kind: ConfigMap
325
325
  metadata:
326
326
  labels:
@@ -328,6 +328,6 @@ metadata:
328
328
  app.kubernetes.io/instance: ingress-nginx
329
329
  app.kubernetes.io/name: ingress-nginx
330
330
  app.kubernetes.io/part-of: ingress-nginx
331
- app.kubernetes.io/version: 1.8.2
331
+ app.kubernetes.io/version: 1.10.0
332
332
  name: ingress-nginx-controller
333
333
  namespace: ingress-nginx