browserstack-node-sdk 1.31.18 → 1.31.19

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 (111) 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/autoscaler-role-creation.yaml +2 -2
  25. package/ats/src/templates/hub-deployment.yaml +2 -0
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createk8sClient.js +1 -1
  30. package/ats/src/utils/deleteStack.js +1 -1
  31. package/ats/src/utils/gridComponents.js +1 -1
  32. package/ats/src/utils/hstUtils.js +1 -1
  33. package/ats/src/utils/instrumentationUtils.js +1 -1
  34. package/ats/src/utils/userInput.js +1 -1
  35. package/ats/src/utils/utilityMethods.js +1 -1
  36. package/ats/src/utils/webSocketUtils.js +1 -1
  37. package/package.json +1 -1
  38. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  39. package/src/bin/codeceptjs/command.js +1 -1
  40. package/src/bin/cucumber-js/command.js +1 -1
  41. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  43. package/src/bin/cucumber-js/test.setup.js +1 -1
  44. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  45. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  46. package/src/bin/jest/command.js +1 -1
  47. package/src/bin/jest/customImplements/customCircus.js +1 -1
  48. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  49. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  50. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  51. package/src/bin/jest/jest.setup.js +1 -1
  52. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  53. package/src/bin/jest/test-observability/helper.js +1 -1
  54. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  55. package/src/bin/jest/test-observability/test-details.js +1 -1
  56. package/src/bin/jest/test_before.setup.js +1 -1
  57. package/src/bin/launcher/launcher.js +1 -1
  58. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  59. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  60. package/src/bin/mocha/command.js +1 -1
  61. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  62. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  63. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  64. package/src/bin/mocha/test.setup.js +1 -1
  65. package/src/bin/nightwatch/command.js +1 -1
  66. package/src/bin/playwright/accessibility-helper.js +1 -1
  67. package/src/bin/playwright/command.js +1 -1
  68. package/src/bin/playwright/globalSetup.js +1 -1
  69. package/src/bin/playwright/mock-process.js +1 -1
  70. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  71. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  72. package/src/bin/playwright/reporter/reporter.js +1 -1
  73. package/src/bin/playwright/reporter/test-details.js +1 -1
  74. package/src/bin/runner.js +1 -1
  75. package/src/bin/setup.js +1 -1
  76. package/src/bin/test-runner/index.js +1 -1
  77. package/src/bin/test-runner/runTest.js +1 -1
  78. package/src/bin/test-runner/testWorker.js +1 -1
  79. package/src/bin/utils/constants.js +1 -1
  80. package/src/bin/utils/log4jsAppender.js +1 -1
  81. package/src/bin/utils/logPatcher.js +1 -1
  82. package/src/bin/utils/logReportingAPI.js +1 -1
  83. package/src/bin/vanilla-js/command.js +1 -1
  84. package/src/browserStackSdk.js +1 -1
  85. package/src/helpers/BrowserStackSetup.js +1 -1
  86. package/src/helpers/accessibility-automation/constants.js +1 -1
  87. package/src/helpers/accessibility-automation/helper.js +1 -1
  88. package/src/helpers/ats/constants.js +1 -1
  89. package/src/helpers/ats/helper.js +1 -1
  90. package/src/helpers/capsMapping.js +1 -1
  91. package/src/helpers/helper.js +1 -1
  92. package/src/helpers/logger.js +1 -1
  93. package/src/helpers/patchHelpers.js +1 -1
  94. package/src/helpers/percy/Percy.js +1 -1
  95. package/src/helpers/percy/PercyBinary.js +1 -1
  96. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  97. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  98. package/src/helpers/percy/PercySDK.js +1 -1
  99. package/src/helpers/percy/index.js +1 -1
  100. package/src/helpers/percy/utils.js +1 -1
  101. package/src/helpers/performance-tester.js +1 -1
  102. package/src/helpers/request-spy.js +1 -1
  103. package/src/helpers/setKeepAlive.js +1 -1
  104. package/src/helpers/test-observability/constants.js +1 -1
  105. package/src/helpers/test-observability/error-handler.js +1 -1
  106. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  107. package/src/helpers/test-observability/sessionHandler.js +1 -1
  108. package/src/helpers/test-observability/utils.js +1 -1
  109. package/src/helpers/w3cMapping.js +1 -1
  110. package/src/hubAllocationMethods.js +1 -1
  111. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a15_0x4558(_0x2b3b5b,_0x4448d2){const _0xd1447d=a15_0xd144();return a15_0x4558=function(_0x455821,_0xcf89e8){_0x455821=_0x455821-0x126;let _0x545749=_0xd1447d[_0x455821];return _0x545749;},a15_0x4558(_0x2b3b5b,_0x4448d2);}const a15_0x1cf7e1=a15_0x4558;function a15_0xd144(){const _0x186057=['grid-name','30onswGY','Failed\x20to\x20list\x20resources!\x20Error:\x20','argv','/packages/cli/get-all-grids','grids','unknown-error','statusCode','mZYdQ','DSzBk','bstackUsername','821064JFPnUH','https://','cluster-name','MeqTe','username','sfkLL','all-grids','running','../../utils/utilityMethods','builder','165011vYRpAa','help','37930yShOCY','Browserstack','server-error','handler','qlsnS','IMyGQ','push','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','bstackAccesskey','470XbvRig','name','YpdrS','uuid','status','GET','yseiG','iduoO','readFileSync','list','ErsyB','9JRDZxD','zZKIp','eGSsj','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','tiXOn','password','allGrids','queued','body','description','snqnI','grid-id','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','CnPYz','/packages/cli/get-grids','error','ERROR','parse','339612DIXGYk','3851148DUTnNP','init-not-called','log','../../config/constants','command','INFO','exit','grid','RIDzY','5925078toOdkB','762608vufwUE','\x0aFound\x20the\x20following\x20grids:\x0a','7aJDQGF','usage','desc','unauthorised','SJZMA','stringify','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','clusterName','crgAD','qxiwJ','boolean','RawTe','DOluk','existsSync','epilogue','rceUc'];a15_0xd144=function(){return _0x186057;};return a15_0xd144();}(function(_0x46580c,_0x20c39b){const _0x4edad6=a15_0x4558,_0x25e141=_0x46580c();while(!![]){try{const _0x324710=parseInt(_0x4edad6(0x16f))/0x1+-parseInt(_0x4edad6(0x13e))/0x2*(parseInt(_0x4edad6(0x152))/0x3)+parseInt(_0x4edad6(0x164))/0x4*(parseInt(_0x4edad6(0x128))/0x5)+parseInt(_0x4edad6(0x165))/0x6+parseInt(_0x4edad6(0x171))/0x7*(-parseInt(_0x4edad6(0x132))/0x8)+-parseInt(_0x4edad6(0x16e))/0x9+parseInt(_0x4edad6(0x147))/0xa*(-parseInt(_0x4edad6(0x13c))/0xb);if(_0x324710===_0x20c39b)break;else _0x25e141['push'](_0x25e141['shift']());}catch(_0x5c07c9){_0x25e141['push'](_0x25e141['shift']());}}}(a15_0xd144,0x5f737));const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a15_0x1cf7e1(0x14a)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x1cf7e1(0x168)),{getCredentialsPath,getAuthHeader}=require(a15_0x1cf7e1(0x13a)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a15_0x1cf7e1(0x169)]=a15_0x1cf7e1(0x12c),exports[a15_0x1cf7e1(0x173)]=a15_0x1cf7e1(0x177),exports[a15_0x1cf7e1(0x13b)]=function(_0x3c24ac){const _0x6facf1=a15_0x1cf7e1,_0x3f9100={};_0x3f9100['XKCiC']=_0x6facf1(0x15e),_0x3f9100[_0x6facf1(0x156)]=_0x6facf1(0x17b),_0x3f9100[_0x6facf1(0x151)]=_0x6facf1(0x13d);const _0x327909=_0x3f9100,_0x2cee81={};_0x2cee81[_0x6facf1(0x15b)]=_0x327909['XKCiC'],_0x2cee81['type']=_0x327909['tiXOn'];const _0x2e5ebd={};return _0x2e5ebd[_0x6facf1(0x138)]=_0x2cee81,_0x3c24ac[_0x6facf1(0x172)](HELP_HEADER_MESSAGE[_0x6facf1(0x150)][_0x6facf1(0x16c)])[_0x6facf1(0x17f)](HELP_FOOTER_MESSAGE)['options'](_0x2e5ebd)[_0x6facf1(0x13d)](_0x327909['ErsyB'])[_0x6facf1(0x12a)];},exports[a15_0x1cf7e1(0x141)]=async function(_0xe1d59f){const _0x3350dd=a15_0x1cf7e1,_0xcef568={'iduoO':function(_0x4842a6){return _0x4842a6();},'sfkLL':function(_0x11e817){return _0x11e817();},'eGSsj':_0x3350dd(0x155),'mZYdQ':function(_0x5c6d00,_0xaeab2f,_0x5b5f96,_0x1295df,_0x52b3cd,_0x686091,_0x153559){return _0x5c6d00(_0xaeab2f,_0x5b5f96,_0x1295df,_0x52b3cd,_0x686091,_0x153559);},'zZKIp':'list-grids-called','DOluk':_0x3350dd(0x166),'crgAD':_0x3350dd(0x14c),'HVAMl':function(_0x1558bd,_0x423dfb,_0x399aff){return _0x1558bd(_0x423dfb,_0x399aff);},'MeqTe':function(_0x512815,_0x5aa795,_0x485fbe,_0x4b2c78,_0x1c8dc8,_0x41c42a,_0x2e472e){return _0x512815(_0x5aa795,_0x485fbe,_0x4b2c78,_0x1c8dc8,_0x41c42a,_0x2e472e);},'snqnI':function(_0x5ca021,_0x2c18c8,_0x16b24d){return _0x5ca021(_0x2c18c8,_0x16b24d);},'SJZMA':function(_0x4c300b,_0x5e0f54){return _0x4c300b!==_0x5e0f54;},'rceUc':function(_0x5f12cc,_0x9b1e05){return _0x5f12cc!==_0x9b1e05;},'qxiwJ':function(_0x330d42,_0x4e8cce){return _0x330d42===_0x4e8cce;},'YpdrS':_0x3350dd(0x170),'IMyGQ':_0x3350dd(0x15d),'RIDzY':_0x3350dd(0x127),'qlsnS':_0x3350dd(0x14b),'qJNfd':'running','tLQbO':_0x3350dd(0x159),'TTZXd':_0x3350dd(0x134),'rHOoN':function(_0x4ce8c3,_0x1a14ec){return _0x4ce8c3(_0x1a14ec);},'uyzIq':_0x3350dd(0x174),'CnPYz':function(_0x112e3a,_0x4427df,_0x2d67e1,_0x26050c,_0x43dfa6,_0x48dd7e,_0x162f84){return _0x112e3a(_0x4427df,_0x2d67e1,_0x26050c,_0x43dfa6,_0x48dd7e,_0x162f84);},'yseiG':_0x3350dd(0x140),'DSzBk':function(_0x34741a,_0x2dd669,_0x59e37e,_0x47e1f0,_0x389a28,_0xaa214e,_0x2d7d6d){return _0x34741a(_0x2dd669,_0x59e37e,_0x47e1f0,_0x389a28,_0xaa214e,_0x2d7d6d);},'RawTe':_0x3350dd(0x12d)};try{global_registry['requestId']=_0xcef568[_0x3350dd(0x14e)](uuidv4);!fs[_0x3350dd(0x17e)](_0xcef568[_0x3350dd(0x137)](getCredentialsPath))&&(console[_0x3350dd(0x161)](_0xcef568[_0x3350dd(0x154)]),await _0xcef568[_0x3350dd(0x12f)](sendInstrumentationEvent,_0xe1d59f,_0xcef568[_0x3350dd(0x153)],messageTypes['ERROR'],_0xcef568[_0x3350dd(0x17d)],null,_0xe1d59f),process[_0x3350dd(0x16b)](0x1));const _0x26cbeb=JSON[_0x3350dd(0x163)](fs[_0x3350dd(0x14f)](_0xcef568[_0x3350dd(0x137)](getCredentialsPath)));let _0xf17421='https://'+AG_API_URL+_0x3350dd(0x160);_0xe1d59f[_0x3350dd(0x158)]&&(_0xf17421=_0x3350dd(0x133)+AG_API_URL+_0x3350dd(0x12b));const _0x48c352={'method':_0xcef568[_0x3350dd(0x179)],'headers':_0xcef568['HVAMl'](getAuthHeader,_0x26cbeb['Browserstack'][_0x3350dd(0x136)],_0x26cbeb[_0x3350dd(0x13f)][_0x3350dd(0x157)])};global_registry[_0x3350dd(0x131)]=_0x26cbeb['Browserstack'][_0x3350dd(0x136)],global_registry[_0x3350dd(0x146)]=_0x26cbeb[_0x3350dd(0x13f)]['password'],_0xcef568[_0x3350dd(0x135)](sendInstrumentationEvent,_0xe1d59f,_0xcef568[_0x3350dd(0x153)],messageTypes[_0x3350dd(0x16a)],null,null,_0xe1d59f);const _0x3e6eea=await _0xcef568[_0x3350dd(0x15c)](got,_0xf17421,_0x48c352);if(_0xcef568[_0x3350dd(0x175)](_0x3e6eea,null)&&_0xcef568[_0x3350dd(0x126)](_0x3e6eea,undefined)&&_0xcef568[_0x3350dd(0x17a)](_0x3e6eea[_0x3350dd(0x12e)],0xc8)){const _0x1a3c33=JSON[_0x3350dd(0x163)](_0x3e6eea[_0x3350dd(0x15a)]);console[_0x3350dd(0x167)](_0xcef568[_0x3350dd(0x149)]);const _0x50f071=[];_0x50f071[_0x3350dd(0x144)]([_0xcef568[_0x3350dd(0x143)],_0xcef568[_0x3350dd(0x16d)],_0xcef568[_0x3350dd(0x142)],_0xcef568['qJNfd'],_0xcef568['tLQbO'],_0xcef568['TTZXd']]),_0x1a3c33['forEach'](_0x3eb740=>{const _0x3d77ed=_0x3350dd;_0x50f071['push']([_0x3eb740['id'],_0x3eb740[_0x3d77ed(0x148)],_0x3eb740[_0x3d77ed(0x14b)],_0x3eb740[_0x3d77ed(0x139)],_0x3eb740[_0x3d77ed(0x159)],_0x3eb740[_0x3d77ed(0x178)]]);}),console[_0x3350dd(0x167)](_0xcef568['rHOoN'](table,_0x50f071)),process[_0x3350dd(0x16b)](0x0);}_0xcef568['qxiwJ'](_0x3e6eea[_0x3350dd(0x12e)],0x191)&&(console['error'](_0x3350dd(0x145)),await _0xcef568[_0x3350dd(0x135)](sendInstrumentationEvent,_0xe1d59f,_0xcef568['zZKIp'],messageTypes['ERROR'],_0xcef568['uyzIq'],null,_0xe1d59f),process[_0x3350dd(0x16b)](0x1)),console[_0x3350dd(0x161)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3350dd(0x176)](_0x3e6eea)),await _0xcef568[_0x3350dd(0x15f)](sendInstrumentationEvent,_0xe1d59f,_0xcef568[_0x3350dd(0x153)],messageTypes[_0x3350dd(0x162)],_0xcef568[_0x3350dd(0x14d)],_0x3e6eea,_0xe1d59f),process[_0x3350dd(0x16b)](0x1);}catch(_0x589189){console[_0x3350dd(0x161)](_0x3350dd(0x129)+_0x589189['stack']),await _0xcef568[_0x3350dd(0x130)](sendInstrumentationEvent,_0xe1d59f,_0xcef568['zZKIp'],messageTypes[_0x3350dd(0x162)],_0xcef568[_0x3350dd(0x17c)],_0x589189,_0xe1d59f),process[_0x3350dd(0x16b)](0x1);}};
1
+ function a15_0x1240(){const _0x2954a7=['231WYIgIa','desc','type','command','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Tgqil','398678MmeoCo','ERROR','username','epilogue','GET','4039570dZImdC','help','queued','/packages/cli/get-all-grids','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','statusCode','https://','options','YgZxE','builder','/packages/cli/get-grids','HDggt','XkmPy','error','FcUuv','allGrids','72JWaosI','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','log','all-grids','ZMnZO','Browserstack','OkbWJ','cluster-name','zWddh','bstackAccesskey','876828fQddpL','323121Oyxuqk','grid','INFO','push','description','unknown-error','yvhsY','unauthorised','bstackUsername','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZoSDT','JWqGR','../../config/constants','name','argv','boolean','stack','forEach','server-error','1288zidTuB','SAkbh','table','parse','../../utils/instrumentationUtils','uuid','2547lKbisz','nslKH','list','51944tOpmYp','password','stringify','12248bpLeCf','requestId','grid-name','WusPv','XvgZy','JdHKv','55aPmcHN','exit','existsSync','Failed\x20to\x20list\x20resources!\x20Error:\x20','CmWWo','jMwwA','running','handler','body','11ZeNkJe','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','got','iWMse','usage','iORCM','VBQZW','list-grids-called','VBawk','status','ckitr','WOnio','mVxNt','221pAcEGG'];a15_0x1240=function(){return _0x2954a7;};return a15_0x1240();}const a15_0x263ca9=a15_0x50e4;function a15_0x50e4(_0x37f563,_0x22c2e1){const _0x124042=a15_0x1240();return a15_0x50e4=function(_0x50e4d6,_0x3b223f){_0x50e4d6=_0x50e4d6-0x66;let _0x3d7d57=_0x124042[_0x50e4d6];return _0x3d7d57;},a15_0x50e4(_0x37f563,_0x22c2e1);}(function(_0x3f8c48,_0x26d68e){const _0x5b50b6=a15_0x50e4,_0x32df1c=_0x3f8c48();while(!![]){try{const _0xbb8b7=-parseInt(_0x5b50b6(0x68))/0x1+-parseInt(_0x5b50b6(0x87))/0x2*(parseInt(_0x5b50b6(0xa4))/0x3)+parseInt(_0x5b50b6(0x84))/0x4*(parseInt(_0x5b50b6(0x8d))/0x5)+-parseInt(_0x5b50b6(0xbf))/0x6*(parseInt(_0x5b50b6(0xaa))/0x7)+parseInt(_0x5b50b6(0x7b))/0x8*(parseInt(_0x5b50b6(0x81))/0x9)+parseInt(_0x5b50b6(0xaf))/0xa*(parseInt(_0x5b50b6(0x96))/0xb)+parseInt(_0x5b50b6(0x67))/0xc*(parseInt(_0x5b50b6(0xa3))/0xd);if(_0xbb8b7===_0x26d68e)break;else _0x32df1c['push'](_0x32df1c['shift']());}catch(_0x9e691c){_0x32df1c['push'](_0x32df1c['shift']());}}}(a15_0x1240,0x57046));const fs=require('fs'),got=require(a15_0x263ca9(0x98)),{table}=require(a15_0x263ca9(0x7d)),{v4:uuidv4}=require(a15_0x263ca9(0x80)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x263ca9(0x74)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x263ca9(0x7f));exports[a15_0x263ca9(0xa7)]='grids',exports[a15_0x263ca9(0xa5)]=a15_0x263ca9(0xc0),exports[a15_0x263ca9(0xb8)]=function(_0x252cfe){const _0x4e2742=a15_0x263ca9,_0x36611={};_0x36611[_0x4e2742(0xb7)]=_0x4e2742(0xb3),_0x36611[_0x4e2742(0xbd)]=_0x4e2742(0x77),_0x36611[_0x4e2742(0x9c)]=_0x4e2742(0xb0);const _0x21ece6=_0x36611,_0xe1832f={};_0xe1832f[_0x4e2742(0x6c)]=_0x21ece6[_0x4e2742(0xb7)],_0xe1832f[_0x4e2742(0xa6)]=_0x21ece6[_0x4e2742(0xbd)];const _0x18ef29={};return _0x18ef29[_0x4e2742(0xc2)]=_0xe1832f,_0x252cfe[_0x4e2742(0x9a)](HELP_HEADER_MESSAGE[_0x4e2742(0x83)][_0x4e2742(0x69)])[_0x4e2742(0xad)](HELP_FOOTER_MESSAGE)[_0x4e2742(0xb6)](_0x18ef29)['help'](_0x21ece6[_0x4e2742(0x9c)])[_0x4e2742(0x76)];},exports[a15_0x263ca9(0x94)]=async function(_0x1ebce5){const _0x3afd01=a15_0x263ca9,_0x2ba7ea={'nslKH':function(_0x42ae9f){return _0x42ae9f();},'XkmPy':function(_0xcd5988){return _0xcd5988();},'bCenZ':_0x3afd01(0xa8),'VBawk':function(_0x217327,_0x530cca,_0x291a11,_0x2b5cf7,_0x1f3e33,_0x2cf8d2,_0x165466){return _0x217327(_0x530cca,_0x291a11,_0x2b5cf7,_0x1f3e33,_0x2cf8d2,_0x165466);},'iWMse':_0x3afd01(0x9d),'WOnio':'init-not-called','WusPv':_0x3afd01(0xae),'yvhsY':function(_0x47ff33,_0x3188b3,_0x11ac59){return _0x47ff33(_0x3188b3,_0x11ac59);},'Tgqil':function(_0x54192b,_0x2d4733,_0x34df8c,_0x2f83f5,_0x5c6bd4,_0xe9f8e9,_0x1a0183){return _0x54192b(_0x2d4733,_0x34df8c,_0x2f83f5,_0x5c6bd4,_0xe9f8e9,_0x1a0183);},'JWqGR':function(_0x51e18e,_0x3eedc1){return _0x51e18e!==_0x3eedc1;},'jMwwA':function(_0x56cca5,_0x4dd6b2){return _0x56cca5!==_0x4dd6b2;},'SAkbh':function(_0x279a5b,_0x4cd59e){return _0x279a5b===_0x4cd59e;},'CmWWo':'\x0aFound\x20the\x20following\x20grids:\x0a','ckitr':'grid-id','OkbWJ':_0x3afd01(0x89),'ZMnZO':_0x3afd01(0x9f),'XvgZy':_0x3afd01(0x93),'IFCqN':_0x3afd01(0xb1),'iORCM':_0x3afd01(0xc6),'HDggt':function(_0x48a2e0,_0x11afab){return _0x48a2e0(_0x11afab);},'ZoSDT':function(_0x560ed1,_0x120603){return _0x560ed1===_0x120603;},'zWddh':function(_0x1e8815,_0x47c21d,_0x211b05,_0x5180f7,_0xeef933,_0xf34d09,_0x18db97){return _0x1e8815(_0x47c21d,_0x211b05,_0x5180f7,_0xeef933,_0xf34d09,_0x18db97);},'jsXyx':_0x3afd01(0x6f),'JdHKv':_0x3afd01(0x7a),'mVxNt':_0x3afd01(0x6d)};try{global_registry[_0x3afd01(0x88)]=_0x2ba7ea[_0x3afd01(0x82)](uuidv4);!fs[_0x3afd01(0x8f)](_0x2ba7ea[_0x3afd01(0xbb)](getCredentialsPath))&&(console['error'](_0x2ba7ea['bCenZ']),await _0x2ba7ea['VBawk'](sendInstrumentationEvent,_0x1ebce5,_0x2ba7ea[_0x3afd01(0x99)],messageTypes[_0x3afd01(0xab)],_0x2ba7ea[_0x3afd01(0xa1)],null,_0x1ebce5),process['exit'](0x1));const _0x14687d=JSON[_0x3afd01(0x7e)](fs['readFileSync'](_0x2ba7ea['XkmPy'](getCredentialsPath)));let _0x3cc1bf=_0x3afd01(0xb5)+AG_API_URL+_0x3afd01(0xb9);_0x1ebce5[_0x3afd01(0xbe)]&&(_0x3cc1bf=_0x3afd01(0xb5)+AG_API_URL+_0x3afd01(0xb2));const _0x3225d5={'method':_0x2ba7ea[_0x3afd01(0x8a)],'headers':_0x2ba7ea['yvhsY'](getAuthHeader,_0x14687d[_0x3afd01(0xc4)][_0x3afd01(0xac)],_0x14687d[_0x3afd01(0xc4)]['password'])};global_registry[_0x3afd01(0x70)]=_0x14687d[_0x3afd01(0xc4)][_0x3afd01(0xac)],global_registry[_0x3afd01(0x66)]=_0x14687d['Browserstack'][_0x3afd01(0x85)],_0x2ba7ea[_0x3afd01(0xa9)](sendInstrumentationEvent,_0x1ebce5,_0x2ba7ea[_0x3afd01(0x99)],messageTypes[_0x3afd01(0x6a)],null,null,_0x1ebce5);const _0x1a1165=await _0x2ba7ea[_0x3afd01(0x6e)](got,_0x3cc1bf,_0x3225d5);if(_0x2ba7ea[_0x3afd01(0x73)](_0x1a1165,null)&&_0x2ba7ea[_0x3afd01(0x92)](_0x1a1165,undefined)&&_0x2ba7ea[_0x3afd01(0x7c)](_0x1a1165['statusCode'],0xc8)){const _0x1da981=JSON[_0x3afd01(0x7e)](_0x1a1165[_0x3afd01(0x95)]);console[_0x3afd01(0xc1)](_0x2ba7ea[_0x3afd01(0x91)]);const _0x11bc47=[];_0x11bc47['push']([_0x2ba7ea[_0x3afd01(0xa0)],_0x2ba7ea[_0x3afd01(0xc5)],_0x2ba7ea[_0x3afd01(0xc3)],_0x2ba7ea[_0x3afd01(0x8b)],_0x2ba7ea['IFCqN'],_0x2ba7ea[_0x3afd01(0x9b)]]),_0x1da981[_0x3afd01(0x79)](_0x52ab68=>{const _0x3a8183=_0x3afd01;_0x11bc47[_0x3a8183(0x6b)]([_0x52ab68['id'],_0x52ab68[_0x3a8183(0x75)],_0x52ab68[_0x3a8183(0x9f)],_0x52ab68[_0x3a8183(0x93)],_0x52ab68[_0x3a8183(0xb1)],_0x52ab68['clusterName']]);}),console['log'](_0x2ba7ea[_0x3afd01(0xba)](table,_0x11bc47)),process['exit'](0x0);}_0x2ba7ea[_0x3afd01(0x72)](_0x1a1165[_0x3afd01(0xb4)],0x191)&&(console[_0x3afd01(0xbc)](_0x3afd01(0x71)),await _0x2ba7ea[_0x3afd01(0xc7)](sendInstrumentationEvent,_0x1ebce5,_0x2ba7ea[_0x3afd01(0x99)],messageTypes[_0x3afd01(0xab)],_0x2ba7ea['jsXyx'],null,_0x1ebce5),process[_0x3afd01(0x8e)](0x1)),console[_0x3afd01(0xbc)](_0x3afd01(0x97)+JSON[_0x3afd01(0x86)](_0x1a1165)),await _0x2ba7ea[_0x3afd01(0x9e)](sendInstrumentationEvent,_0x1ebce5,_0x2ba7ea['iWMse'],messageTypes[_0x3afd01(0xab)],_0x2ba7ea[_0x3afd01(0x8c)],_0x1a1165,_0x1ebce5),process[_0x3afd01(0x8e)](0x1);}catch(_0x52952d){console[_0x3afd01(0xbc)](_0x3afd01(0x90)+_0x52952d[_0x3afd01(0x78)]),await _0x2ba7ea['zWddh'](sendInstrumentationEvent,_0x1ebce5,_0x2ba7ea['iWMse'],messageTypes[_0x3afd01(0xab)],_0x2ba7ea[_0x3afd01(0xa2)],_0x52952d,_0x1ebce5),process[_0x3afd01(0x8e)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x11b5(_0x1fa8ef,_0x4d55ea){const _0x14231c=a16_0x1423();return a16_0x11b5=function(_0x11b5fb,_0x3a467d){_0x11b5fb=_0x11b5fb-0x90;let _0x255013=_0x14231c[_0x11b5fb];return _0x255013;},a16_0x11b5(_0x1fa8ef,_0x4d55ea);}const a16_0x24b212=a16_0x11b5;(function(_0x107002,_0x32cb9c){const _0x1387b2=a16_0x11b5,_0x464293=_0x107002();while(!![]){try{const _0x42ccc4=-parseInt(_0x1387b2(0xa3))/0x1+-parseInt(_0x1387b2(0xa0))/0x2+parseInt(_0x1387b2(0x9e))/0x3*(parseInt(_0x1387b2(0x92))/0x4)+parseInt(_0x1387b2(0x95))/0x5*(parseInt(_0x1387b2(0xa5))/0x6)+-parseInt(_0x1387b2(0x9d))/0x7+-parseInt(_0x1387b2(0x9f))/0x8+parseInt(_0x1387b2(0xa1))/0x9*(parseInt(_0x1387b2(0x99))/0xa);if(_0x42ccc4===_0x32cb9c)break;else _0x464293['push'](_0x464293['shift']());}catch(_0x750a19){_0x464293['push'](_0x464293['shift']());}}}(a16_0x1423,0x6c171));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x24b212(0xa2));exports[a16_0x24b212(0x98)]=a16_0x24b212(0x9b),exports[a16_0x24b212(0x96)]=a16_0x24b212(0x94),exports['builder']=function(_0x416a5a){const _0x44eb02=a16_0x24b212,_0x113f07={};_0x113f07[_0x44eb02(0x91)]=_0x44eb02(0xa4),_0x113f07[_0x44eb02(0x97)]=_0x44eb02(0x9a);const _0x7e0f9d=_0x113f07;return _0x416a5a[_0x44eb02(0x90)](HELP_HEADER_MESSAGE[_0x44eb02(0x9b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x44eb02(0x9c)](_0x7e0f9d[_0x44eb02(0x91)])['demandCommand']()['recommendCommands']()[_0x44eb02(0xa6)]()['help'](_0x7e0f9d[_0x44eb02(0x97)]);},exports[a16_0x24b212(0x93)]=function(_0x1843a0){};function a16_0x1423(){const _0x6b35b=['12480120GrjBcU','help','start','commandDir','4804268gDFsTQ','51vIfSRR','4463168ZYFQJY','104008FZxqqP','9TpDnTJ','../config/constants','376259CEvkpC','start_commands','2350002fIwlPq','strict','usage','jkIoT','111892ljpgAK','handler','Start\x20an\x20existing\x20Automation\x20grid.','5Nnbhcu','desc','HLkFn','command'];a16_0x1423=function(){return _0x6b35b;};return a16_0x1423();}
1
+ const a16_0x4a67f6=a16_0x30bf;(function(_0x36751a,_0x2affbc){const _0x2f9800=a16_0x30bf,_0x20b1e6=_0x36751a();while(!![]){try{const _0x23b4f7=parseInt(_0x2f9800(0x12e))/0x1+-parseInt(_0x2f9800(0x124))/0x2+-parseInt(_0x2f9800(0x12c))/0x3*(-parseInt(_0x2f9800(0x116))/0x4)+parseInt(_0x2f9800(0x120))/0x5*(parseInt(_0x2f9800(0x125))/0x6)+-parseInt(_0x2f9800(0x11e))/0x7*(-parseInt(_0x2f9800(0x12a))/0x8)+parseInt(_0x2f9800(0x127))/0x9+-parseInt(_0x2f9800(0x119))/0xa;if(_0x23b4f7===_0x2affbc)break;else _0x20b1e6['push'](_0x20b1e6['shift']());}catch(_0x48188c){_0x20b1e6['push'](_0x20b1e6['shift']());}}}(a16_0x5221,0xe9d19));function a16_0x30bf(_0x4b2163,_0x2380fd){const _0x5221f2=a16_0x5221();return a16_0x30bf=function(_0x30bfd8,_0x1501bc){_0x30bfd8=_0x30bfd8-0x115;let _0x544021=_0x5221f2[_0x30bfd8];return _0x544021;},a16_0x30bf(_0x4b2163,_0x2380fd);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x4a67f6(0x126));function a16_0x5221(){const _0x3d8d42=['commandDir','35224FuCsjg','6eEQxOb','../config/constants','815454DTSvif','demandCommand','recommendCommands','2515840ZxrRBs','desc','4721721UrFXRV','help','1649866LMGTdt','handler','4lFnYAc','strict','pmFhN','61175480lYlMhA','epilogue','command','builder','yXUrR','42qYDVve','usage','9458110gVJRAA','start','start_commands'];a16_0x5221=function(){return _0x3d8d42;};return a16_0x5221();}exports[a16_0x4a67f6(0x11b)]='start',exports[a16_0x4a67f6(0x12b)]='Start\x20an\x20existing\x20Automation\x20grid.',exports[a16_0x4a67f6(0x11c)]=function(_0x5c8ef0){const _0x5a475f=a16_0x4a67f6,_0x3cd844={};_0x3cd844['pmFhN']=_0x5a475f(0x122),_0x3cd844[_0x5a475f(0x11d)]=_0x5a475f(0x12d);const _0x289b88=_0x3cd844;return _0x5c8ef0[_0x5a475f(0x11f)](HELP_HEADER_MESSAGE[_0x5a475f(0x121)])[_0x5a475f(0x11a)](HELP_FOOTER_MESSAGE)[_0x5a475f(0x123)](_0x289b88[_0x5a475f(0x118)])[_0x5a475f(0x128)]()[_0x5a475f(0x129)]()[_0x5a475f(0x117)]()[_0x5a475f(0x12d)](_0x289b88[_0x5a475f(0x11d)]);},exports[a16_0x4a67f6(0x115)]=function(_0x3713a1){};
@@ -1 +1 @@
1
- const a17_0x3d2b05=a17_0x10d3;(function(_0x20e7e7,_0x5c8841){const _0x38175f=a17_0x10d3,_0x1ddea9=_0x20e7e7();while(!![]){try{const _0x9f6af5=parseInt(_0x38175f(0xdd))/0x1+parseInt(_0x38175f(0x99))/0x2*(-parseInt(_0x38175f(0x93))/0x3)+parseInt(_0x38175f(0xd4))/0x4+-parseInt(_0x38175f(0xbd))/0x5*(-parseInt(_0x38175f(0xb2))/0x6)+parseInt(_0x38175f(0xa8))/0x7+-parseInt(_0x38175f(0xb7))/0x8+-parseInt(_0x38175f(0xce))/0x9;if(_0x9f6af5===_0x5c8841)break;else _0x1ddea9['push'](_0x1ddea9['shift']());}catch(_0x55707f){_0x1ddea9['push'](_0x1ddea9['shift']());}}}(a17_0x53a6,0x28ead));function a17_0x53a6(){const _0xe6351d=['unauthorised','fetchLocalCreds','../../utils/webSocketUtils','replace','cloudProvider','IbVtD','../../cloudproviders/utils','clusterRegion','pYkGX','options','../../utils/createk8sClient','<PasswordPlaceholder>','../../config/logger','mmeFL','132393yACdrO','nazWN','IUDHd','UUSJJ','exit','stringify','2IojUZJ','../../config/constants','fVurV','configureIfNotConfigured','<UsernamePlaceholder>','reconnecting-websocket','gMYEA','GcRNw','password','grid-id','message','INFO','start-grid-called','body','WebSocket','393302Wyropj','user','statusCode','Browserstack','description','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','debug','clusterName','112278OrUUvS','username','oleRe','rPXJI','TTOoR','1523824XBClkt','Starting\x20grid\x20','error','init-not-called','readFileSync','name','75IRVuGy','help','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','HvPkH','addListeners','start','grid','invalid-grid-id','../../utils/gridComponents','info','bstackAccesskey','server-error','xHVtk','PaBwP','gridId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','IxWOz','2529495wpWGxv','argv','string','region','Adding\x20Websocket\x20listeners','parse','326008cMNtzz','ERROR','njcOq','bstackUsername','builder','../../utils/instrumentationUtils','command','JszJq','bgNPk','264878spoEsb'];a17_0x53a6=function(){return _0xe6351d;};return a17_0x53a6();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x3d2b05(0x9e)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x3d2b05(0x9a)),{logger}=require(a17_0x3d2b05(0x91)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require(a17_0x3d2b05(0xc5)),{sendInstrumentationEvent}=require(a17_0x3d2b05(0xd9)),webSocketUtils=require(a17_0x3d2b05(0xe0)),{createK8sClient}=require(a17_0x3d2b05(0x8f)),{getCloudProviderObject}=require(a17_0x3d2b05(0x8b));function a17_0x10d3(_0x4e3c98,_0x409ba3){const _0x53a600=a17_0x53a6();return a17_0x10d3=function(_0x10d343,_0x32924a){_0x10d343=_0x10d343-0x88;let _0x940113=_0x53a600[_0x10d343];return _0x940113;},a17_0x10d3(_0x4e3c98,_0x409ba3);}exports[a17_0x3d2b05(0xda)]=a17_0x3d2b05(0xc3),exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a17_0x3d2b05(0xd8)]=function(_0x143e43){const _0x20b55b=a17_0x3d2b05,_0x2bdaf1={};_0x2bdaf1['rPXJI']=_0x20b55b(0xaf),_0x2bdaf1['oleRe']=_0x20b55b(0xd0),_0x2bdaf1[_0x20b55b(0xca)]='help';const _0x206e89=_0x2bdaf1,_0x51c673={};_0x51c673[_0x20b55b(0xac)]=_0x206e89[_0x20b55b(0xb5)],_0x51c673['type']=_0x206e89[_0x20b55b(0xb4)];const _0x3b3b48={};return _0x3b3b48[_0x20b55b(0xa2)]=_0x51c673,_0x143e43['usage'](HELP_HEADER_MESSAGE[_0x20b55b(0xc2)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x20b55b(0x8e)](_0x3b3b48)[_0x20b55b(0xbe)](_0x206e89[_0x20b55b(0xca)])[_0x20b55b(0xcf)];},exports['handler']=async function(_0x23e884){const _0x41de51=a17_0x3d2b05,_0x290147={'UUSJJ':_0x41de51(0xbf),'TTOoR':function(_0x4a400f){return _0x4a400f();},'njcOq':_0x41de51(0xcc),'gMYEA':function(_0x10f39e,_0x163fd1,_0x1013dd,_0x487694,_0x13621b,_0x2db34f,_0x54799e){return _0x10f39e(_0x163fd1,_0x1013dd,_0x487694,_0x13621b,_0x2db34f,_0x54799e);},'HvPkH':_0x41de51(0xa5),'JszJq':_0x41de51(0xba),'IxWOz':_0x41de51(0x9d),'GcRNw':_0x41de51(0x90),'pYkGX':_0x41de51(0xd2),'nazWN':function(_0x33a7c2,_0xea58b6,_0x3731a7,_0xeb6c53){return _0x33a7c2(_0xea58b6,_0x3731a7,_0xeb6c53);},'YktYZ':function(_0x9d42a8,_0x5d6091,_0x105233,_0x31fa3f,_0x1ee3a7,_0xf21451){return _0x9d42a8(_0x5d6091,_0x105233,_0x31fa3f,_0x1ee3a7,_0xf21451);},'xHVtk':function(_0x1119bd,_0x56ffe6){return _0x1119bd(_0x56ffe6);},'IbVtD':function(_0x284d6c,_0x19191c,_0x5be3d7){return _0x284d6c(_0x19191c,_0x5be3d7);},'bgNPk':'Grid\x20started','sncyg':function(_0x3a0616,_0x31345d){return _0x3a0616===_0x31345d;},'SWIqS':_0x41de51(0xde),'mmeFL':function(_0x1f5cef,_0xe02271,_0x3f9179,_0x3dc50b,_0x3f42ff,_0x3b43c1,_0x1a19e6){return _0x1f5cef(_0xe02271,_0x3f9179,_0x3dc50b,_0x3f42ff,_0x3b43c1,_0x1a19e6);},'fVurV':_0x41de51(0xc4),'IUDHd':_0x41de51(0xc8)};let _0x38fbe8;try{!_0x23e884[_0x41de51(0xcb)]&&(logger[_0x41de51(0xb9)](_0x290147[_0x41de51(0x96)]),process[_0x41de51(0x97)](0x1));!fs['existsSync'](_0x290147[_0x41de51(0xb6)](getCredentialsPath))&&(logger[_0x41de51(0xb9)](_0x290147[_0x41de51(0xd6)]),await _0x290147[_0x41de51(0x9f)](sendInstrumentationEvent,_0x23e884,_0x290147[_0x41de51(0xc0)],messageTypes['ERROR'],_0x290147[_0x41de51(0xdb)],null,_0x23e884),process[_0x41de51(0x97)](0x1));logger[_0x41de51(0xc6)](_0x41de51(0xb8)+_0x23e884[_0x41de51(0xcb)]),await _0x290147[_0x41de51(0x9f)](sendInstrumentationEvent,_0x23e884,_0x290147[_0x41de51(0xc0)],messageTypes[_0x41de51(0xa4)],null,null,_0x23e884);const _0xf86a51=JSON[_0x41de51(0xd3)](fs[_0x41de51(0xbb)](_0x290147[_0x41de51(0xb6)](getCredentialsPath)));global_registry[_0x41de51(0xd7)]=_0xf86a51['Browserstack'][_0x41de51(0xb3)],global_registry[_0x41de51(0xc7)]=_0xf86a51[_0x41de51(0xab)][_0x41de51(0xa1)];const _0x4731f8=WS_ENDPOINT[_0x41de51(0x88)](_0x290147[_0x41de51(0xcd)],_0xf86a51['Browserstack'][_0x41de51(0xb3)])[_0x41de51(0x88)](_0x290147[_0x41de51(0xa0)],_0xf86a51['Browserstack'][_0x41de51(0xa1)]),_0x5d587b={};_0x5d587b[_0x41de51(0xa7)]=ws,_0x5d587b['connectionTimeout']=0x36ee80,_0x38fbe8=new ReconnectingWebSocket(_0x4731f8,[],_0x5d587b),logger[_0x41de51(0xb0)](_0x290147[_0x41de51(0x8d)]),webSocketUtils[_0x41de51(0xc1)](_0x38fbe8,_0x23e884[_0x41de51(0xa9)],_0x23e884[_0x41de51(0xa1)]);const [_0x52cdaf,_0x2b7151]=await _0x290147[_0x41de51(0x94)](getGridDetails,_0xf86a51[_0x41de51(0xab)][_0x41de51(0xb3)],_0xf86a51[_0x41de51(0xab)][_0x41de51(0xa1)],_0x23e884['gridId']);if(_0x2b7151){const _0x5a9158=_0x2b7151[_0x41de51(0xc6)];global_registry['cloudProvider']=_0x5a9158[_0x41de51(0x89)],global_registry[_0x41de51(0x8c)]=_0x5a9158[_0x41de51(0xd1)],global_registry['clusterName']=_0x5a9158[_0x41de51(0xb1)];const _0x3cc048=_0x290147['YktYZ'](getCloudProviderObject,_0x5a9158[_0x41de51(0x89)],_0x5a9158[_0x41de51(0xb1)],_0x5a9158['name'],_0x38fbe8,webSocketUtils),_0x5db420=_0xf86a51[_0x41de51(0x89)]||{};await _0x3cc048[_0x41de51(0xdf)](_0x5db420),_0x3cc048[_0x41de51(0x9c)]();const [_0x34377f,_0x5c06e6,_0x17e26e,_0xe31735,_0x53afef,_0x45c222]=await _0x290147[_0x41de51(0xc9)](createK8sClient,_0x3cc048);await _0x290147[_0x41de51(0x8a)](scaleUpHubDeployment,_0x5c06e6,_0x5a9158[_0x41de51(0xbc)]),logger[_0x41de51(0xc6)](_0x290147[_0x41de51(0xdc)]),process['exit'](0x0);}_0x290147['sncyg'](_0x52cdaf[_0x41de51(0xaa)],0x191)&&(logger[_0x41de51(0xb9)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x290147['gMYEA'](sendInstrumentationEvent,_0x23e884,_0x290147[_0x41de51(0xc0)],messageTypes[_0x41de51(0xd5)],_0x290147['SWIqS'],null,_0x23e884),process[_0x41de51(0x97)](0x1)),_0x290147['sncyg'](_0x52cdaf[_0x41de51(0xaa)],0x190)&&(logger[_0x41de51(0xb9)](JSON[_0x41de51(0xd3)](_0x52cdaf[_0x41de51(0xa6)])[_0x41de51(0xa3)]),await _0x290147[_0x41de51(0x92)](sendInstrumentationEvent,_0x23e884,_0x290147[_0x41de51(0xc0)],messageTypes[_0x41de51(0xd5)],_0x290147[_0x41de51(0x9b)],null,_0x23e884),process[_0x41de51(0x97)](0x1)),logger['error'](_0x41de51(0xae)+JSON[_0x41de51(0x98)](_0x52cdaf)),await _0x290147['mmeFL'](sendInstrumentationEvent,_0x23e884,_0x290147['HvPkH'],messageTypes[_0x41de51(0xd5)],_0x290147[_0x41de51(0x95)],_0x52cdaf,_0x23e884),process[_0x41de51(0x97)](0x1);}catch(_0x3ec657){const _0x2e924c='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x3ec657+'\x20\x0a'+JSON[_0x41de51(0x98)](_0x3ec657[_0x41de51(0xad)])+'\x20';logger['error'](_0x2e924c),process[_0x41de51(0x97)](0x1);}};
1
+ function a17_0x2063(_0x70e8d5,_0x1219bd){const _0x3d62ac=a17_0x3d62();return a17_0x2063=function(_0x206326,_0x59b37a){_0x206326=_0x206326-0x11f;let _0x23e570=_0x3d62ac[_0x206326];return _0x23e570;},a17_0x2063(_0x70e8d5,_0x1219bd);}function a17_0x3d62(){const _0x20b93d=['statusCode','5pJBiXc','OsRWH','configureIfNotConfigured','../../utils/createk8sClient','unauthorised','xcCIK','483JBNtle','107344WECLPF','username','debug','../../config/logger','parse','../../utils/utilityMethods','message','addListeners','command','26004dPBmvf','52968113zzOJkL','iPYFA','grid-id','sypkL','<UsernamePlaceholder>','handler','RqttO','stack','<PasswordPlaceholder>','name','YeQcy','usage','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','server-error','426400MTXyRi','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ERROR','Browserstack','readFileSync','../../utils/webSocketUtils','Starting\x20grid\x20','cloudProvider','oDjkj','gridId','bstackUsername','info','../../utils/gridComponents','Grid\x20started','connectionTimeout','eQUlD','clusterName','1440902UQOXem','options','144pofcFk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','string','../../cloudproviders/utils','epilogue','Start\x20an\x20existing\x20Automation\x20grid.','existsSync','clusterRegion','2929926FEnUhc','pnFQb','DptJL','exit','replace','../../utils/instrumentationUtils','help','fetchLocalCreds','WebSocket','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','pVHiZ','stringify','372ngofsD','zKkOA','user','XbFyM','INFO','ESZbf','tnAMV','start','Adding\x20Websocket\x20listeners','sjkgC','DLzlq','description','error','TQhcS','OODpG','VNIrS','password','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','body','reconnecting-websocket','2720956GOsrBr','AZNtT'];a17_0x3d62=function(){return _0x20b93d;};return a17_0x3d62();}const a17_0x36ceee=a17_0x2063;(function(_0x155647,_0x4a9132){const _0x3399c9=a17_0x2063,_0x3eed19=_0x155647();while(!![]){try{const _0x3ef3dd=-parseInt(_0x3399c9(0x13c))/0x1+-parseInt(_0x3399c9(0x166))/0x2+parseInt(_0x3399c9(0x152))/0x3*(parseInt(_0x3399c9(0x179))/0x4)+parseInt(_0x3399c9(0x169))/0x5*(-parseInt(_0x3399c9(0x146))/0x6)+-parseInt(_0x3399c9(0x16f))/0x7*(parseInt(_0x3399c9(0x170))/0x8)+-parseInt(_0x3399c9(0x13e))/0x9*(parseInt(_0x3399c9(0x12b))/0xa)+parseInt(_0x3399c9(0x17a))/0xb;if(_0x3ef3dd===_0x4a9132)break;else _0x3eed19['push'](_0x3eed19['shift']());}catch(_0x1ad56c){_0x3eed19['push'](_0x3eed19['shift']());}}}(a17_0x3d62,0xb0aa8));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x36ceee(0x165)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a17_0x36ceee(0x173)),{getCredentialsPath,getGridDetails}=require(a17_0x36ceee(0x175)),{scaleUpHubDeployment}=require(a17_0x36ceee(0x137)),{sendInstrumentationEvent}=require(a17_0x36ceee(0x14b)),webSocketUtils=require(a17_0x36ceee(0x130)),{createK8sClient}=require(a17_0x36ceee(0x16c)),{getCloudProviderObject}=require(a17_0x36ceee(0x141));exports[a17_0x36ceee(0x178)]='grid',exports['desc']=a17_0x36ceee(0x143),exports['builder']=function(_0x3f2c58){const _0x376fad=a17_0x36ceee,_0x5102ab={};_0x5102ab[_0x376fad(0x150)]=_0x376fad(0x129),_0x5102ab['zKkOA']=_0x376fad(0x140),_0x5102ab[_0x376fad(0x147)]=_0x376fad(0x14c);const _0x3424de=_0x5102ab,_0x662283={};_0x662283[_0x376fad(0x15d)]=_0x3424de['pVHiZ'],_0x662283['type']=_0x3424de[_0x376fad(0x153)];const _0x1a3a37={};return _0x1a3a37[_0x376fad(0x11f)]=_0x662283,_0x3f2c58[_0x376fad(0x128)](HELP_HEADER_MESSAGE[_0x376fad(0x159)])[_0x376fad(0x142)](HELP_FOOTER_MESSAGE)[_0x376fad(0x13d)](_0x1a3a37)['help'](_0x3424de['pnFQb'])['argv'];},exports[a17_0x36ceee(0x122)]=async function(_0x456273){const _0x1b3f90=a17_0x36ceee,_0x66e6fc={'DptJL':_0x1b3f90(0x163),'TQhcS':function(_0x409930){return _0x409930();},'sypkL':_0x1b3f90(0x12c),'RqttO':function(_0x2254c9,_0x1def5b,_0x1d4142,_0x42ad0b,_0x3b1809,_0x5cda79,_0x570cd8){return _0x2254c9(_0x1def5b,_0x1d4142,_0x42ad0b,_0x3b1809,_0x5cda79,_0x570cd8);},'AZNtT':'start-grid-called','irawV':'init-not-called','MyTtH':function(_0x461236,_0x5e6442,_0x4da019,_0x55c4a9,_0xf2aa1,_0x5e10cc,_0x509712){return _0x461236(_0x5e6442,_0x4da019,_0x55c4a9,_0xf2aa1,_0x5e10cc,_0x509712);},'YeQcy':_0x1b3f90(0x121),'OsRWH':_0x1b3f90(0x125),'eQUlD':_0x1b3f90(0x15a),'iPYFA':function(_0x2b1a6b,_0x9053dd,_0x2537a8,_0x35d56f){return _0x2b1a6b(_0x9053dd,_0x2537a8,_0x35d56f);},'ESZbf':function(_0x18f1b5,_0x212bd3,_0x5c588c,_0x169daa,_0x540553,_0x287193){return _0x18f1b5(_0x212bd3,_0x5c588c,_0x169daa,_0x540553,_0x287193);},'sjkgC':function(_0x24cf66,_0x2fda81){return _0x24cf66(_0x2fda81);},'DLzlq':function(_0x146b6d,_0x3c30f6,_0x425c76){return _0x146b6d(_0x3c30f6,_0x425c76);},'XbFyM':_0x1b3f90(0x138),'oDjkj':function(_0x26bac0,_0x2df5f1){return _0x26bac0===_0x2df5f1;},'xcCIK':_0x1b3f90(0x16d),'VNIrS':function(_0x5cb968,_0x119413,_0x18e080,_0x3c3abc,_0x163e7a,_0xd0a17a,_0x411a6a){return _0x5cb968(_0x119413,_0x18e080,_0x3c3abc,_0x163e7a,_0xd0a17a,_0x411a6a);},'wKEVe':'invalid-grid-id','OODpG':function(_0x58ec57,_0x2b6c64,_0x3ef456,_0x42ad7d,_0x59faf3,_0x388aaa,_0x110208){return _0x58ec57(_0x2b6c64,_0x3ef456,_0x42ad7d,_0x59faf3,_0x388aaa,_0x110208);},'tnAMV':_0x1b3f90(0x12a)};let _0xc05045;try{!_0x456273[_0x1b3f90(0x134)]&&(logger['error'](_0x66e6fc[_0x1b3f90(0x148)]),process[_0x1b3f90(0x149)](0x1));!fs[_0x1b3f90(0x144)](_0x66e6fc[_0x1b3f90(0x15f)](getCredentialsPath))&&(logger[_0x1b3f90(0x15e)](_0x66e6fc[_0x1b3f90(0x120)]),await _0x66e6fc[_0x1b3f90(0x123)](sendInstrumentationEvent,_0x456273,_0x66e6fc['AZNtT'],messageTypes[_0x1b3f90(0x12d)],_0x66e6fc['irawV'],null,_0x456273),process[_0x1b3f90(0x149)](0x1));logger[_0x1b3f90(0x136)](_0x1b3f90(0x131)+_0x456273[_0x1b3f90(0x134)]),await _0x66e6fc['MyTtH'](sendInstrumentationEvent,_0x456273,_0x66e6fc[_0x1b3f90(0x167)],messageTypes[_0x1b3f90(0x156)],null,null,_0x456273);const _0x4dec01=JSON['parse'](fs[_0x1b3f90(0x12f)](_0x66e6fc[_0x1b3f90(0x15f)](getCredentialsPath)));global_registry[_0x1b3f90(0x135)]=_0x4dec01['Browserstack']['username'],global_registry['bstackAccesskey']=_0x4dec01[_0x1b3f90(0x12e)][_0x1b3f90(0x162)];const _0x10da46=WS_ENDPOINT[_0x1b3f90(0x14a)](_0x66e6fc[_0x1b3f90(0x127)],_0x4dec01[_0x1b3f90(0x12e)][_0x1b3f90(0x171)])[_0x1b3f90(0x14a)](_0x66e6fc[_0x1b3f90(0x16a)],_0x4dec01[_0x1b3f90(0x12e)]['password']),_0x4a4c5b={};_0x4a4c5b[_0x1b3f90(0x14e)]=ws,_0x4a4c5b[_0x1b3f90(0x139)]=0x36ee80,_0xc05045=new ReconnectingWebSocket(_0x10da46,[],_0x4a4c5b),logger[_0x1b3f90(0x172)](_0x66e6fc[_0x1b3f90(0x13a)]),webSocketUtils[_0x1b3f90(0x177)](_0xc05045,_0x456273[_0x1b3f90(0x154)],_0x456273[_0x1b3f90(0x162)]);const [_0x246b32,_0x499ec2]=await _0x66e6fc[_0x1b3f90(0x17b)](getGridDetails,_0x4dec01[_0x1b3f90(0x12e)][_0x1b3f90(0x171)],_0x4dec01['Browserstack'][_0x1b3f90(0x162)],_0x456273['gridId']);if(_0x499ec2){const _0x1dd693=_0x499ec2['info'];global_registry[_0x1b3f90(0x132)]=_0x1dd693[_0x1b3f90(0x132)],global_registry[_0x1b3f90(0x145)]=_0x1dd693['region'],global_registry[_0x1b3f90(0x13b)]=_0x1dd693[_0x1b3f90(0x13b)];const _0x47b078=_0x66e6fc[_0x1b3f90(0x157)](getCloudProviderObject,_0x1dd693['cloudProvider'],_0x1dd693['clusterName'],_0x1dd693[_0x1b3f90(0x126)],_0xc05045,webSocketUtils),_0x494782=_0x4dec01[_0x1b3f90(0x132)]||{};await _0x47b078[_0x1b3f90(0x14d)](_0x494782),_0x47b078[_0x1b3f90(0x16b)]();const [_0x133a98,_0x33e1e1,_0x1826f0,_0x3e0ab5,_0x5efb05,_0x585e31]=await _0x66e6fc[_0x1b3f90(0x15b)](createK8sClient,_0x47b078);await _0x66e6fc[_0x1b3f90(0x15c)](scaleUpHubDeployment,_0x33e1e1,_0x1dd693[_0x1b3f90(0x126)]),logger['info'](_0x66e6fc[_0x1b3f90(0x155)]),process[_0x1b3f90(0x149)](0x0);}_0x66e6fc[_0x1b3f90(0x133)](_0x246b32[_0x1b3f90(0x168)],0x191)&&(logger[_0x1b3f90(0x15e)](_0x1b3f90(0x13f)),await _0x66e6fc[_0x1b3f90(0x123)](sendInstrumentationEvent,_0x456273,_0x66e6fc[_0x1b3f90(0x167)],messageTypes['ERROR'],_0x66e6fc[_0x1b3f90(0x16e)],null,_0x456273),process[_0x1b3f90(0x149)](0x1)),_0x66e6fc['oDjkj'](_0x246b32['statusCode'],0x190)&&(logger[_0x1b3f90(0x15e)](JSON[_0x1b3f90(0x174)](_0x246b32[_0x1b3f90(0x164)])[_0x1b3f90(0x176)]),await _0x66e6fc[_0x1b3f90(0x161)](sendInstrumentationEvent,_0x456273,_0x66e6fc[_0x1b3f90(0x167)],messageTypes[_0x1b3f90(0x12d)],_0x66e6fc['wKEVe'],null,_0x456273),process[_0x1b3f90(0x149)](0x1)),logger[_0x1b3f90(0x15e)](_0x1b3f90(0x14f)+JSON[_0x1b3f90(0x151)](_0x246b32)),await _0x66e6fc[_0x1b3f90(0x160)](sendInstrumentationEvent,_0x456273,_0x66e6fc[_0x1b3f90(0x167)],messageTypes[_0x1b3f90(0x12d)],_0x66e6fc[_0x1b3f90(0x158)],_0x246b32,_0x456273),process[_0x1b3f90(0x149)](0x1);}catch(_0x295478){const _0xe5c4da='Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20'+_0x295478+'\x20\x0a'+JSON[_0x1b3f90(0x151)](_0x295478[_0x1b3f90(0x124)])+'\x20';logger[_0x1b3f90(0x15e)](_0xe5c4da),process[_0x1b3f90(0x149)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x28a9f1=a18_0x453e;(function(_0x499332,_0x4206bb){const _0x7eeef3=a18_0x453e,_0x10f9a5=_0x499332();while(!![]){try{const _0x30194e=parseInt(_0x7eeef3(0x150))/0x1+parseInt(_0x7eeef3(0x15c))/0x2*(-parseInt(_0x7eeef3(0x15b))/0x3)+-parseInt(_0x7eeef3(0x159))/0x4+-parseInt(_0x7eeef3(0x14e))/0x5*(-parseInt(_0x7eeef3(0x147))/0x6)+parseInt(_0x7eeef3(0x143))/0x7*(-parseInt(_0x7eeef3(0x14d))/0x8)+parseInt(_0x7eeef3(0x14c))/0x9*(-parseInt(_0x7eeef3(0x155))/0xa)+-parseInt(_0x7eeef3(0x145))/0xb*(parseInt(_0x7eeef3(0x142))/0xc);if(_0x30194e===_0x4206bb)break;else _0x10f9a5['push'](_0x10f9a5['shift']());}catch(_0x2abf40){_0x10f9a5['push'](_0x10f9a5['shift']());}}}(a18_0xa089,0xecb6a));function a18_0x453e(_0x33706c,_0x378c12){const _0xa0896f=a18_0xa089();return a18_0x453e=function(_0x453e8d,_0x581d12){_0x453e8d=_0x453e8d-0x141;let _0x4fc0a5=_0xa0896f[_0x453e8d];return _0x4fc0a5;},a18_0x453e(_0x33706c,_0x378c12);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x28a9f1(0x14f));exports[a18_0x28a9f1(0x156)]=a18_0x28a9f1(0x15a),exports[a18_0x28a9f1(0x14a)]=a18_0x28a9f1(0x146),exports[a18_0x28a9f1(0x151)]=function(_0x381821){const _0x5d95f1=a18_0x28a9f1,_0x1bb36a={};_0x1bb36a[_0x5d95f1(0x14b)]=_0x5d95f1(0x141),_0x1bb36a[_0x5d95f1(0x148)]=_0x5d95f1(0x149);const _0x25ebf8=_0x1bb36a;return _0x381821[_0x5d95f1(0x153)](HELP_HEADER_MESSAGE[_0x5d95f1(0x15a)])[_0x5d95f1(0x152)](HELP_FOOTER_MESSAGE)[_0x5d95f1(0x144)](_0x25ebf8[_0x5d95f1(0x14b)])[_0x5d95f1(0x157)]()[_0x5d95f1(0x154)]()[_0x5d95f1(0x158)]()[_0x5d95f1(0x149)](_0x25ebf8[_0x5d95f1(0x148)]);},exports['handler']=function(_0x3f7680){};function a18_0xa089(){const _0x5487a5=['commandDir','363xufyfr','Stop\x20a\x20running\x20Automation\x20grid.','6Ervsvg','WbcSI','help','desc','CfEZU','45nOCXJw','1576KaYEbN','6928015COiLua','../config/constants','1577455eWteyF','builder','epilogue','usage','recommendCommands','668730XGjfrT','command','demandCommand','strict','1056548JXMVWw','stop','102ePicSX','6308aYvlMZ','stop_commands','235380rjBxnK','22757clUMkg'];a18_0xa089=function(){return _0x5487a5;};return a18_0xa089();}
1
+ function a18_0x1796(_0x477024,_0x261465){const _0xad1a87=a18_0xad1a();return a18_0x1796=function(_0x179613,_0x184b33){_0x179613=_0x179613-0x1d4;let _0xa4dabd=_0xad1a87[_0x179613];return _0xa4dabd;},a18_0x1796(_0x477024,_0x261465);}const a18_0x43c984=a18_0x1796;function a18_0xad1a(){const _0x5e7dff=['3360273tOfWKv','builder','13966340NMnRrP','3052144mPtmUf','epilogue','commandDir','388gzyjTJ','demandCommand','11UwOgdd','gXZXu','stop_commands','MRWxg','stop','usage','9hqrbMs','31116mzFrZq','9763nqtPIG','handler','2309394WFxJIx','command','5SayOhC','Stop\x20a\x20running\x20Automation\x20grid.','help','98195fGWdzC','desc','14QEhMqK','../config/constants','11934dwLtQw'];a18_0xad1a=function(){return _0x5e7dff;};return a18_0xad1a();}(function(_0x2b20c8,_0x12221e){const _0x43f3c7=a18_0x1796,_0x28125b=_0x2b20c8();while(!![]){try{const _0x554d91=parseInt(_0x43f3c7(0x1e2))/0x1*(-parseInt(_0x43f3c7(0x1e4))/0x2)+-parseInt(_0x43f3c7(0x1e6))/0x3*(-parseInt(_0x43f3c7(0x1ed))/0x4)+parseInt(_0x43f3c7(0x1df))/0x5*(-parseInt(_0x43f3c7(0x1dd))/0x6)+parseInt(_0x43f3c7(0x1e7))/0x7+-parseInt(_0x43f3c7(0x1ea))/0x8*(-parseInt(_0x43f3c7(0x1d9))/0x9)+-parseInt(_0x43f3c7(0x1e9))/0xa*(parseInt(_0x43f3c7(0x1ef))/0xb)+-parseInt(_0x43f3c7(0x1da))/0xc*(-parseInt(_0x43f3c7(0x1db))/0xd);if(_0x554d91===_0x12221e)break;else _0x28125b['push'](_0x28125b['shift']());}catch(_0x5a1201){_0x28125b['push'](_0x28125b['shift']());}}}(a18_0xad1a,0xb136c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x43c984(0x1e5));exports[a18_0x43c984(0x1de)]=a18_0x43c984(0x1d7),exports[a18_0x43c984(0x1e3)]=a18_0x43c984(0x1e0),exports[a18_0x43c984(0x1e8)]=function(_0x7a2bcb){const _0x2b416c=a18_0x43c984,_0x3bae61={};_0x3bae61['gXZXu']=_0x2b416c(0x1d5),_0x3bae61[_0x2b416c(0x1d6)]='help';const _0x50ca6e=_0x3bae61;return _0x7a2bcb[_0x2b416c(0x1d8)](HELP_HEADER_MESSAGE[_0x2b416c(0x1d7)])[_0x2b416c(0x1eb)](HELP_FOOTER_MESSAGE)[_0x2b416c(0x1ec)](_0x50ca6e[_0x2b416c(0x1d4)])[_0x2b416c(0x1ee)]()['recommendCommands']()['strict']()[_0x2b416c(0x1e1)](_0x50ca6e[_0x2b416c(0x1d6)]);},exports[a18_0x43c984(0x1dc)]=function(_0x11f6c2){};
@@ -1 +1 @@
1
- function a19_0x464d(){const _0xa7324=['server-error','existsSync','152jINakF','user','statusCode','Eyvhf','../../utils/instrumentationUtils','argv','help','replace','epilogue','ERROR','builder','clusterRegion','pMaSK','configureIfNotConfigured','invalid-grid-id','body','1344245NRnfXv','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','9390620rDtoBJ','grid-id','gridId','143631bgPtJE','../../utils/utilityMethods','1491876iagQVK','../../cloudproviders/utils','jARfy','reconnecting-websocket','VaCsL','Adding\x20Websocket\x20listeners','region','Browserstack','290EDdikX','unauthorised','error','password','KlJra','stop','../../utils/webSocketUtils','usage','name','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','MLYoe','vAKOv','INFO','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','fetchLocalCreds','../../config/logger','username','Stop\x20a\x20running\x20Automation\x20grid.','type','info','ENLlW','DFNkf','bstackAccesskey','eWXlA','cloudProvider','stack','stringify','command','debug','oUlyt','hpJyj','wDKmt','grid','clusterName','description','../../config/constants','WebSocket','lfVmz','595065iqswXx','bstackUsername','96mooabh','JrYpH','hSZqi','gpWrQ','39980BPoMsJ','string','qRYeP','GQfOF','1023XBntKt','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','mstSY'];a19_0x464d=function(){return _0xa7324;};return a19_0x464d();}const a19_0x5350b6=a19_0x33b5;(function(_0x402237,_0x27f468){const _0xd8580d=a19_0x33b5,_0x1deaff=_0x402237();while(!![]){try{const _0x5e33d1=parseInt(_0xd8580d(0xe4))/0x1*(-parseInt(_0xd8580d(0x10b))/0x2)+-parseInt(_0xd8580d(0xda))/0x3+parseInt(_0xd8580d(0xea))/0x4*(-parseInt(_0xd8580d(0xe0))/0x5)+parseInt(_0xd8580d(0x103))/0x6+-parseInt(_0xd8580d(0xfa))/0x7+-parseInt(_0xd8580d(0xdc))/0x8*(parseInt(_0xd8580d(0x101))/0x9)+parseInt(_0xd8580d(0xfe))/0xa;if(_0x5e33d1===_0x27f468)break;else _0x1deaff['push'](_0x1deaff['shift']());}catch(_0xcf8d1f){_0x1deaff['push'](_0x1deaff['shift']());}}}(a19_0x464d,0x2581b));function a19_0x33b5(_0x20a9ce,_0xf79504){const _0x464d02=a19_0x464d();return a19_0x33b5=function(_0x33b526,_0x3bcb8c){_0x33b526=_0x33b526-0xcc;let _0x4c758f=_0x464d02[_0x33b526];return _0x4c758f;},a19_0x33b5(_0x20a9ce,_0xf79504);}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x5350b6(0x106)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x5350b6(0xd7)),{logger}=require(a19_0x5350b6(0x11a)),{getCredentialsPath,getGridDetails}=require(a19_0x5350b6(0x102)),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x5350b6(0xee)),webSocketUtils=require(a19_0x5350b6(0x111)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a19_0x5350b6(0x104));exports[a19_0x5350b6(0xcf)]=a19_0x5350b6(0xd4),exports['desc']=a19_0x5350b6(0x11c),exports[a19_0x5350b6(0xf4)]=function(_0x1a118c){const _0x596477=a19_0x5350b6,_0x2fcb6a={};_0x2fcb6a[_0x596477(0x120)]=_0x596477(0x118),_0x2fcb6a[_0x596477(0xde)]=_0x596477(0xe1),_0x2fcb6a['vAKOv']=_0x596477(0xf0);const _0x130d51=_0x2fcb6a,_0x484022={};_0x484022[_0x596477(0xd6)]=_0x130d51[_0x596477(0x120)],_0x484022[_0x596477(0x11d)]=_0x130d51[_0x596477(0xde)];const _0x3a9534={};return _0x3a9534[_0x596477(0xff)]=_0x484022,_0x1a118c[_0x596477(0x112)](HELP_HEADER_MESSAGE[_0x596477(0x110)])[_0x596477(0xf2)](HELP_FOOTER_MESSAGE)['options'](_0x3a9534)[_0x596477(0xf0)](_0x130d51[_0x596477(0x116)])[_0x596477(0xef)];},exports['handler']=async function(_0x2a50a6){const _0x19da07=a19_0x5350b6,_0x44d13a={'eWXlA':'Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','qRYeP':function(_0x24497f){return _0x24497f();},'wDKmt':_0x19da07(0xe5),'oUlyt':function(_0x5a123f,_0x3643ed,_0x1680df,_0xe12d40,_0x1796d5,_0x4903dd,_0xcc44df){return _0x5a123f(_0x3643ed,_0x1680df,_0xe12d40,_0x1796d5,_0x4903dd,_0xcc44df);},'pMaSK':'stop-grid-called','jARfy':'init-not-called','CtYSJ':function(_0x4188bd,_0x2ee686,_0x20fa3e,_0x42d9a2,_0xfe26a,_0x597307,_0x1aeb96){return _0x4188bd(_0x2ee686,_0x20fa3e,_0x42d9a2,_0xfe26a,_0x597307,_0x1aeb96);},'mstSY':'<UsernamePlaceholder>','MLYoe':'<PasswordPlaceholder>','GQfOF':_0x19da07(0x108),'VaCsL':function(_0x4f0471,_0x177400,_0x340ec6,_0x11b368){return _0x4f0471(_0x177400,_0x340ec6,_0x11b368);},'Eyvhf':function(_0x159ccf,_0x49864d,_0x46a155,_0x56c198,_0x20934a,_0x444b3e){return _0x159ccf(_0x49864d,_0x46a155,_0x56c198,_0x20934a,_0x444b3e);},'ENLlW':function(_0x1d23ba,_0x1a94d3){return _0x1d23ba(_0x1a94d3);},'gpWrQ':function(_0x9aa927,_0x30bb48,_0xcaddaf){return _0x9aa927(_0x30bb48,_0xcaddaf);},'hpJyj':'Grid\x20stoppped.','kPZkJ':function(_0x4586f2,_0x1264ec){return _0x4586f2===_0x1264ec;},'KlJra':_0x19da07(0x10c),'lfVmz':function(_0xe2a4e9,_0x22732b){return _0xe2a4e9===_0x22732b;},'fvStO':function(_0x544844,_0x4b84be,_0x5a8a11,_0x11a8ac,_0x4e9629,_0x12a654,_0x26bac2){return _0x544844(_0x4b84be,_0x5a8a11,_0x11a8ac,_0x4e9629,_0x12a654,_0x26bac2);},'OxfWN':_0x19da07(0xf8),'YpTqn':function(_0x1e068f,_0x319f72,_0x633dc5,_0x32c6f2,_0x44def1,_0x13f71c,_0x31e32b){return _0x1e068f(_0x319f72,_0x633dc5,_0x32c6f2,_0x44def1,_0x13f71c,_0x31e32b);},'JrYpH':_0x19da07(0xe8)};let _0x5d9c1d;try{!_0x2a50a6[_0x19da07(0x100)]&&(logger[_0x19da07(0x10d)](_0x44d13a[_0x19da07(0x122)]),process[_0x19da07(0xe6)](0x1));!fs[_0x19da07(0xe9)](_0x44d13a[_0x19da07(0xe2)](getCredentialsPath))&&(logger[_0x19da07(0x10d)](_0x44d13a[_0x19da07(0xd3)]),await _0x44d13a[_0x19da07(0xd1)](sendInstrumentationEvent,_0x2a50a6,_0x44d13a['pMaSK'],messageTypes['ERROR'],_0x44d13a[_0x19da07(0x105)],null,_0x2a50a6),process[_0x19da07(0xe6)](0x1));logger[_0x19da07(0x11e)]('Stopping\x20grid\x20'+_0x2a50a6['gridId']),await _0x44d13a['CtYSJ'](sendInstrumentationEvent,_0x2a50a6,_0x44d13a['pMaSK'],messageTypes[_0x19da07(0x117)],null,null,_0x2a50a6);const _0x14d8e6=JSON[_0x19da07(0xfb)](fs['readFileSync'](_0x44d13a['qRYeP'](getCredentialsPath)));global_registry[_0x19da07(0xdb)]=_0x14d8e6[_0x19da07(0x10a)]['username'],global_registry[_0x19da07(0x121)]=_0x14d8e6[_0x19da07(0x10a)]['password'];const _0x294626=WS_ENDPOINT[_0x19da07(0xf1)](_0x44d13a[_0x19da07(0xe7)],_0x14d8e6[_0x19da07(0x10a)][_0x19da07(0x11b)])['replace'](_0x44d13a[_0x19da07(0x115)],_0x14d8e6[_0x19da07(0x10a)]['password']),_0x3a8097={};_0x3a8097[_0x19da07(0xd8)]=ws,_0x3a8097['connectionTimeout']=0x36ee80,_0x5d9c1d=new ReconnectingWebSocket(_0x294626,[],_0x3a8097),logger[_0x19da07(0xd0)](_0x44d13a[_0x19da07(0xe3)]),webSocketUtils['addListeners'](_0x5d9c1d,_0x2a50a6[_0x19da07(0xeb)],_0x2a50a6['password']);const [_0x41b2da,_0x224e55]=await _0x44d13a[_0x19da07(0x107)](getGridDetails,_0x14d8e6['Browserstack'][_0x19da07(0x11b)],_0x14d8e6[_0x19da07(0x10a)][_0x19da07(0x10e)],_0x2a50a6['gridId']);if(_0x224e55){const _0x5a3ffb=_0x224e55['info'];global_registry[_0x19da07(0xcc)]=_0x5a3ffb[_0x19da07(0xcc)],global_registry[_0x19da07(0xf5)]=_0x5a3ffb[_0x19da07(0x109)],global_registry['clusterName']=_0x5a3ffb[_0x19da07(0xd5)];const _0x137fb8=_0x44d13a[_0x19da07(0xed)](getCloudProviderObject,_0x5a3ffb[_0x19da07(0xcc)],_0x5a3ffb[_0x19da07(0xd5)],_0x5a3ffb[_0x19da07(0x113)],_0x5d9c1d,webSocketUtils),_0xbfad3=_0x14d8e6[_0x19da07(0xcc)]||{};await _0x137fb8[_0x19da07(0x119)](_0xbfad3),_0x137fb8[_0x19da07(0xf7)]();const [_0x20b133,_0x18015b,_0x2c34e4,_0x2d72b2,_0x19bb9d,_0xcd45ef]=await _0x44d13a[_0x19da07(0x11f)](createK8sClient,_0x137fb8);await _0x44d13a[_0x19da07(0xdf)](scaleDownHubDeployment,_0x18015b,_0x5a3ffb[_0x19da07(0x113)]),logger['info'](_0x44d13a[_0x19da07(0xd2)]),process[_0x19da07(0xe6)](0x0);}_0x44d13a['kPZkJ'](_0x41b2da[_0x19da07(0xec)],0x191)&&(logger['error'](_0x19da07(0xfc)),await _0x44d13a['oUlyt'](sendInstrumentationEvent,_0x2a50a6,_0x44d13a[_0x19da07(0xf6)],messageTypes[_0x19da07(0xf3)],_0x44d13a[_0x19da07(0x10f)],null,_0x2a50a6),process[_0x19da07(0xe6)](0x1)),_0x44d13a[_0x19da07(0xd9)](_0x41b2da[_0x19da07(0xec)],0x190)&&(logger[_0x19da07(0x10d)](JSON['parse'](_0x41b2da[_0x19da07(0xf9)])['message']),await _0x44d13a['fvStO'](sendInstrumentationEvent,_0x2a50a6,_0x44d13a[_0x19da07(0xf6)],messageTypes[_0x19da07(0xf3)],_0x44d13a['OxfWN'],null,_0x2a50a6),process[_0x19da07(0xe6)](0x1)),logger['error'](_0x19da07(0x114)+JSON[_0x19da07(0xce)](_0x41b2da)),await _0x44d13a['YpTqn'](sendInstrumentationEvent,_0x2a50a6,_0x44d13a[_0x19da07(0xf6)],messageTypes[_0x19da07(0xf3)],_0x44d13a[_0x19da07(0xdd)],_0x41b2da,_0x2a50a6),process[_0x19da07(0xe6)](0x1);}catch(_0x2c2fb4){const _0x35eef0=_0x19da07(0xfd)+_0x2c2fb4+'\x20\x0a'+JSON[_0x19da07(0xce)](_0x2c2fb4[_0x19da07(0xcd)])+'\x20';logger['error'](_0x35eef0),process[_0x19da07(0xe6)](0x1);}};
1
+ const a19_0x399788=a19_0x4817;function a19_0x4817(_0x3c4dcc,_0x25e30c){const _0x34dada=a19_0x34da();return a19_0x4817=function(_0x48176f,_0x445e3c){_0x48176f=_0x48176f-0x177;let _0x186bee=_0x34dada[_0x48176f];return _0x186bee;},a19_0x4817(_0x3c4dcc,_0x25e30c);}(function(_0x4156a4,_0x1710c9){const _0x35006d=a19_0x4817,_0xa51c48=_0x4156a4();while(!![]){try{const _0x82aa8a=-parseInt(_0x35006d(0x1cb))/0x1*(parseInt(_0x35006d(0x192))/0x2)+parseInt(_0x35006d(0x1c3))/0x3+-parseInt(_0x35006d(0x18c))/0x4*(parseInt(_0x35006d(0x17a))/0x5)+parseInt(_0x35006d(0x183))/0x6+parseInt(_0x35006d(0x1b4))/0x7*(parseInt(_0x35006d(0x17c))/0x8)+-parseInt(_0x35006d(0x191))/0x9+-parseInt(_0x35006d(0x182))/0xa;if(_0x82aa8a===_0x1710c9)break;else _0xa51c48['push'](_0xa51c48['shift']());}catch(_0x55014f){_0xa51c48['push'](_0xa51c48['shift']());}}}(a19_0x34da,0x43fd5));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x399788(0x19c)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a19_0x399788(0x197)),{logger}=require(a19_0x399788(0x1bf)),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleDownHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a19_0x399788(0x193)),webSocketUtils=require(a19_0x399788(0x1bb)),{createK8sClient}=require(a19_0x399788(0x1a8)),{getCloudProviderObject}=require(a19_0x399788(0x19b));function a19_0x34da(){const _0x4142d4=['uqtwI','stack','handler','cBZSq','existsSync','1jcQTFO','<UsernamePlaceholder>','options','grid-id','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hBCEp','addListeners','375430WFfjWM','description','8AgWqMK','klHiL','builder','epilogue','bstackUsername','Stop\x20a\x20running\x20Automation\x20grid.','2476670QIlEbp','2703120Zshnld','info','unauthorised','init-not-called','bTUtO','cxrKs','ERROR','DZTZV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','4VNJZJo','Browserstack','tTOYo','server-error','stop-grid-called','3213198iwoXiP','85354pNoyyG','../../utils/instrumentationUtils','configureIfNotConfigured','region','error','../../config/constants','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','replace','clusterRegion','../../cloudproviders/utils','reconnecting-websocket','argv','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','bstackAccesskey','username','body','readFileSync','exit','Grid\x20stoppped.','gridId','Adding\x20Websocket\x20listeners','TQVhv','../../utils/createk8sClient','name','OHsRw','pYobR','PJaxf','clusterName','WdpHC','wDjST','grid','CnHXH','message','invalid-grid-id','42049NsuBbm','WebSocket','stop','cloudProvider','INFO','command','stringify','../../utils/webSocketUtils','usage','statusCode','help','../../config/logger','password','desc','type','1633230QhtNsW','Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.','Stopping\x20grid\x20'];a19_0x34da=function(){return _0x4142d4;};return a19_0x34da();}exports[a19_0x399788(0x1b9)]=a19_0x399788(0x1b0),exports[a19_0x399788(0x1c1)]=a19_0x399788(0x181),exports[a19_0x399788(0x17e)]=function(_0x173414){const _0x3dd7ba=a19_0x399788,_0x2fa192={};_0x2fa192[_0x3dd7ba(0x1b1)]=_0x3dd7ba(0x1c4),_0x2fa192[_0x3dd7ba(0x1aa)]='string',_0x2fa192[_0x3dd7ba(0x178)]=_0x3dd7ba(0x1be);const _0x3c74ab=_0x2fa192,_0x17067a={};_0x17067a[_0x3dd7ba(0x17b)]=_0x3c74ab['CnHXH'],_0x17067a[_0x3dd7ba(0x1c2)]=_0x3c74ab[_0x3dd7ba(0x1aa)];const _0x13d9b5={};return _0x13d9b5[_0x3dd7ba(0x1ce)]=_0x17067a,_0x173414[_0x3dd7ba(0x1bc)](HELP_HEADER_MESSAGE[_0x3dd7ba(0x1b6)])[_0x3dd7ba(0x17f)](HELP_FOOTER_MESSAGE)[_0x3dd7ba(0x1cd)](_0x13d9b5)[_0x3dd7ba(0x1be)](_0x3c74ab[_0x3dd7ba(0x178)])[_0x3dd7ba(0x19d)];},exports[a19_0x399788(0x1c8)]=async function(_0x20a7b9){const _0x3cfb0a=a19_0x399788,_0x7be795={'cBZSq':_0x3cfb0a(0x19e),'bTUtO':function(_0xc02625){return _0xc02625();},'wDjST':_0x3cfb0a(0x177),'WdpHC':function(_0x3df78d,_0x6bb84a,_0x1f2fc7,_0x116ef0,_0x50081b,_0x1f68c5,_0x15a137){return _0x3df78d(_0x6bb84a,_0x1f2fc7,_0x116ef0,_0x50081b,_0x1f68c5,_0x15a137);},'PJaxf':_0x3cfb0a(0x190),'BbEwe':_0x3cfb0a(0x186),'uqtwI':_0x3cfb0a(0x1cc),'pYobR':'<PasswordPlaceholder>','klHiL':_0x3cfb0a(0x1a6),'IBlfs':function(_0x2f4ce2,_0x382762,_0x4161db,_0x2cb17a){return _0x2f4ce2(_0x382762,_0x4161db,_0x2cb17a);},'DZTZV':function(_0x20c1b4,_0x137ecc,_0x467b37,_0x12deb6,_0x3d1e98,_0x2acf56){return _0x20c1b4(_0x137ecc,_0x467b37,_0x12deb6,_0x3d1e98,_0x2acf56);},'IWyMN':function(_0x15b377,_0x336875){return _0x15b377(_0x336875);},'cxrKs':function(_0x2bc5f7,_0x5a283c,_0xb99e22){return _0x2bc5f7(_0x5a283c,_0xb99e22);},'TQVhv':_0x3cfb0a(0x1a4),'qRVrf':function(_0x41259a,_0x18415b){return _0x41259a===_0x18415b;},'svnmD':_0x3cfb0a(0x185),'lGLwH':_0x3cfb0a(0x1b3),'tTOYo':function(_0x868dbb,_0x5f2c17,_0x53c92c,_0x20d4a1,_0x5d9ce8,_0x27c839,_0x33c67d){return _0x868dbb(_0x5f2c17,_0x53c92c,_0x20d4a1,_0x5d9ce8,_0x27c839,_0x33c67d);},'aMkpG':_0x3cfb0a(0x18f)};let _0x43a6c3;try{!_0x20a7b9[_0x3cfb0a(0x1a5)]&&(logger[_0x3cfb0a(0x196)](_0x7be795[_0x3cfb0a(0x1c9)]),process[_0x3cfb0a(0x1a3)](0x1));!fs[_0x3cfb0a(0x1ca)](_0x7be795[_0x3cfb0a(0x187)](getCredentialsPath))&&(logger[_0x3cfb0a(0x196)](_0x7be795[_0x3cfb0a(0x1af)]),await _0x7be795['WdpHC'](sendInstrumentationEvent,_0x20a7b9,_0x7be795[_0x3cfb0a(0x1ac)],messageTypes[_0x3cfb0a(0x189)],_0x7be795['BbEwe'],null,_0x20a7b9),process[_0x3cfb0a(0x1a3)](0x1));logger[_0x3cfb0a(0x184)](_0x3cfb0a(0x1c5)+_0x20a7b9[_0x3cfb0a(0x1a5)]),await _0x7be795[_0x3cfb0a(0x1ae)](sendInstrumentationEvent,_0x20a7b9,_0x7be795[_0x3cfb0a(0x1ac)],messageTypes[_0x3cfb0a(0x1b8)],null,null,_0x20a7b9);const _0x1c4192=JSON['parse'](fs[_0x3cfb0a(0x1a2)](_0x7be795['bTUtO'](getCredentialsPath)));global_registry[_0x3cfb0a(0x180)]=_0x1c4192[_0x3cfb0a(0x18d)]['username'],global_registry[_0x3cfb0a(0x19f)]=_0x1c4192[_0x3cfb0a(0x18d)][_0x3cfb0a(0x1c0)];const _0x53fcc4=WS_ENDPOINT[_0x3cfb0a(0x199)](_0x7be795[_0x3cfb0a(0x1c6)],_0x1c4192[_0x3cfb0a(0x18d)]['username'])[_0x3cfb0a(0x199)](_0x7be795[_0x3cfb0a(0x1ab)],_0x1c4192['Browserstack'][_0x3cfb0a(0x1c0)]),_0x2d0af9={};_0x2d0af9[_0x3cfb0a(0x1b5)]=ws,_0x2d0af9['connectionTimeout']=0x36ee80,_0x43a6c3=new ReconnectingWebSocket(_0x53fcc4,[],_0x2d0af9),logger['debug'](_0x7be795[_0x3cfb0a(0x17d)]),webSocketUtils[_0x3cfb0a(0x179)](_0x43a6c3,_0x20a7b9['user'],_0x20a7b9[_0x3cfb0a(0x1c0)]);const [_0x11c2f1,_0x598129]=await _0x7be795['IBlfs'](getGridDetails,_0x1c4192[_0x3cfb0a(0x18d)][_0x3cfb0a(0x1a0)],_0x1c4192[_0x3cfb0a(0x18d)][_0x3cfb0a(0x1c0)],_0x20a7b9[_0x3cfb0a(0x1a5)]);if(_0x598129){const _0x232305=_0x598129[_0x3cfb0a(0x184)];global_registry[_0x3cfb0a(0x1b7)]=_0x232305[_0x3cfb0a(0x1b7)],global_registry[_0x3cfb0a(0x19a)]=_0x232305[_0x3cfb0a(0x195)],global_registry['clusterName']=_0x232305[_0x3cfb0a(0x1ad)];const _0x1d411d=_0x7be795[_0x3cfb0a(0x18a)](getCloudProviderObject,_0x232305[_0x3cfb0a(0x1b7)],_0x232305[_0x3cfb0a(0x1ad)],_0x232305[_0x3cfb0a(0x1a9)],_0x43a6c3,webSocketUtils),_0x32e219=_0x1c4192[_0x3cfb0a(0x1b7)]||{};await _0x1d411d['fetchLocalCreds'](_0x32e219),_0x1d411d[_0x3cfb0a(0x194)]();const [_0x3ac0f4,_0x6006f8,_0x384ba2,_0x3c75cf,_0x4ed12d,_0x5d1ff5]=await _0x7be795['IWyMN'](createK8sClient,_0x1d411d);await _0x7be795[_0x3cfb0a(0x188)](scaleDownHubDeployment,_0x6006f8,_0x232305[_0x3cfb0a(0x1a9)]),logger['info'](_0x7be795[_0x3cfb0a(0x1a7)]),process['exit'](0x0);}_0x7be795['qRVrf'](_0x11c2f1[_0x3cfb0a(0x1bd)],0x191)&&(logger[_0x3cfb0a(0x196)](_0x3cfb0a(0x18b)),await _0x7be795[_0x3cfb0a(0x1ae)](sendInstrumentationEvent,_0x20a7b9,_0x7be795[_0x3cfb0a(0x1ac)],messageTypes[_0x3cfb0a(0x189)],_0x7be795['svnmD'],null,_0x20a7b9),process[_0x3cfb0a(0x1a3)](0x1)),_0x7be795['qRVrf'](_0x11c2f1[_0x3cfb0a(0x1bd)],0x190)&&(logger[_0x3cfb0a(0x196)](JSON['parse'](_0x11c2f1[_0x3cfb0a(0x1a1)])[_0x3cfb0a(0x1b2)]),await _0x7be795['WdpHC'](sendInstrumentationEvent,_0x20a7b9,_0x7be795[_0x3cfb0a(0x1ac)],messageTypes[_0x3cfb0a(0x189)],_0x7be795['lGLwH'],null,_0x20a7b9),process[_0x3cfb0a(0x1a3)](0x1)),logger[_0x3cfb0a(0x196)](_0x3cfb0a(0x198)+JSON[_0x3cfb0a(0x1ba)](_0x11c2f1)),await _0x7be795[_0x3cfb0a(0x18e)](sendInstrumentationEvent,_0x20a7b9,_0x7be795['PJaxf'],messageTypes['ERROR'],_0x7be795['aMkpG'],_0x11c2f1,_0x20a7b9),process['exit'](0x1);}catch(_0x47c5b0){const _0x5d5ffd='Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20'+_0x47c5b0+'\x20\x0a'+JSON['stringify'](_0x47c5b0[_0x3cfb0a(0x1c7)])+'\x20';logger['error'](_0x5d5ffd),process[_0x3cfb0a(0x1a3)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x5f3234=a20_0x295f;(function(_0x14fb22,_0x3be09b){const _0x21cc18=a20_0x295f,_0x3e1315=_0x14fb22();while(!![]){try{const _0x53b96b=parseInt(_0x21cc18(0xbe))/0x1*(parseInt(_0x21cc18(0x8f))/0x2)+-parseInt(_0x21cc18(0xaa))/0x3+-parseInt(_0x21cc18(0x84))/0x4*(-parseInt(_0x21cc18(0x9b))/0x5)+parseInt(_0x21cc18(0xb5))/0x6*(-parseInt(_0x21cc18(0xbd))/0x7)+parseInt(_0x21cc18(0x9e))/0x8+parseInt(_0x21cc18(0xa3))/0x9+parseInt(_0x21cc18(0xb8))/0xa*(-parseInt(_0x21cc18(0xa1))/0xb);if(_0x53b96b===_0x3be09b)break;else _0x3e1315['push'](_0x3e1315['shift']());}catch(_0x55a05f){_0x3e1315['push'](_0x3e1315['shift']());}}}(a20_0x2379,0x923f3),require(a20_0x5f3234(0xa5))[a20_0x5f3234(0x92)](),exports['DASHBOARD_ENDPOINT']=process[a20_0x5f3234(0x86)]['DASHBOARD_ENDPOINT']||a20_0x5f3234(0x96),exports[a20_0x5f3234(0xb6)]=process[a20_0x5f3234(0x86)][a20_0x5f3234(0xb6)]||a20_0x5f3234(0x8e),exports[a20_0x5f3234(0x97)]=process[a20_0x5f3234(0x86)][a20_0x5f3234(0x97)]||a20_0x5f3234(0x7b),exports['WS_ENDPOINT']='wss://'+this[a20_0x5f3234(0x97)]+a20_0x5f3234(0xad),exports[a20_0x5f3234(0x83)]='credentials',exports[a20_0x5f3234(0xb7)]='BrowserStackIAMUser',exports[a20_0x5f3234(0x76)]='high-scale-grid');const timestamp=new Date()['getTime']();function a20_0x2379(){const _0x38435a=['dotenv','azure','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','AWS','BrowserStack','2562930oaKPgF','cliRunFinished','root','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','CLUSTER_AUTOSCALER_STACK_NAME','stop','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','SUPPORTED_CLOUD_PROVIDERS','REDACTED','browserstack:service','498138tfBdIo','BS_API_URL','IAM_USER_NAME','30DkNTko','UNKNOWN','Key','GRID_URL','resourceInfo','35IgZwzf','29uHBswF','HELP_FOOTER_MESSAGE','grid','global_registry','ERROR','CLI_RUN_STARTED','GCP','DEFAULT_GRID_NAME','cliRunStarted','messageTypes','list','BrowserStack-Automate-TurboScale','grid-api.browserstack.com','SUCCESS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','success','browserstack:managedBy','info','CP_CONFIG_FILE','847744QGhKDp','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','env','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','log','LOG','WS_EVENTS','gcp','gridUrl','Value','api.browserstack.com','71426BBtoQL','configure','LINK_MESSAGE','config','AZURE','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','BSTACK-ATS-CLUSTER-','grid.browserstack.com','AG_API_URL','start','gridProfile','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','5UxvMfU','error','create','7630544PYODGv','CLUSTER_DEP_STACK_NAME','WARNING','3934799syJkwP','[REDACTED]','6661332jmaqBU','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'];a20_0x2379=function(){return _0x38435a;};return a20_0x2379();}exports[a20_0x5f3234(0xa8)]='aws',exports[a20_0x5f3234(0x9f)]=a20_0x5f3234(0x95)+timestamp,exports[a20_0x5f3234(0xae)]='BSTACK-ATS-CLUSTER-AUTOSCALER-'+timestamp,exports[a20_0x5f3234(0x93)]=a20_0x5f3234(0xa6),exports[a20_0x5f3234(0x75)]=a20_0x5f3234(0x8b);const a20_0x428b78={};function a20_0x295f(_0x1f335a,_0xc039ae){const _0x2379f4=a20_0x2379();return a20_0x295f=function(_0x295fc7,_0x180e9b){_0x295fc7=_0x295fc7-0x70;let _0x3cd925=_0x2379f4[_0x295fc7];return _0x3cd925;},a20_0x295f(_0x1f335a,_0xc039ae);}a20_0x428b78['Key']=a20_0x5f3234(0x81),a20_0x428b78[a20_0x5f3234(0x8d)]=a20_0x5f3234(0xa9);const a20_0x219090={};a20_0x219090[a20_0x5f3234(0xba)]=a20_0x5f3234(0xb4),a20_0x219090[a20_0x5f3234(0x8d)]='BrowserStack-Automate-TurboScale',exports['COMMON_HST_TAGS']=[a20_0x428b78,a20_0x219090];const a20_0x306c25={};a20_0x306c25[a20_0x5f3234(0x81)]=a20_0x5f3234(0xa9),a20_0x306c25[a20_0x5f3234(0xb4)]=a20_0x5f3234(0x7a),exports['HST_CLUSTER_TAGS']=a20_0x306c25,exports[a20_0x5f3234(0xb2)]=[this['AWS']];const a20_0x44f226={};a20_0x44f226[a20_0x5f3234(0x89)]=a20_0x5f3234(0x88),a20_0x44f226['RESOURCES']=a20_0x5f3234(0xbc),a20_0x44f226[a20_0x5f3234(0xbb)]=a20_0x5f3234(0x8c),a20_0x44f226[a20_0x5f3234(0x74)]=a20_0x5f3234(0x77),a20_0x44f226['CLI_RUN_FINISHED']=a20_0x5f3234(0xab),exports[a20_0x5f3234(0x8a)]=a20_0x44f226,exports[a20_0x5f3234(0x72)]={},exports['LINK_MESSAGE']=a20_0x5f3234(0xb1);const a20_0x5b91bd={};a20_0x5b91bd[a20_0x5f3234(0xac)]=a20_0x5f3234(0x9a)+this[a20_0x5f3234(0x91)],a20_0x5b91bd['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a20_0x5f3234(0x91)],a20_0x5b91bd[a20_0x5f3234(0x90)]=a20_0x5f3234(0x7f)+this[a20_0x5f3234(0x91)],a20_0x5b91bd[a20_0x5f3234(0x9d)]=a20_0x5f3234(0x85)+this['LINK_MESSAGE'],a20_0x5b91bd[a20_0x5f3234(0x79)]={},a20_0x5b91bd['delete']=a20_0x5f3234(0xb0)+this[a20_0x5f3234(0x91)],a20_0x5b91bd['connect']=a20_0x5f3234(0x87)+this[a20_0x5f3234(0x91)],a20_0x5b91bd[a20_0x5f3234(0x98)]=a20_0x5f3234(0xa7)+this[a20_0x5f3234(0x91)],a20_0x5b91bd[a20_0x5f3234(0xaf)]=a20_0x5f3234(0x7e)+this['LINK_MESSAGE'],a20_0x5b91bd[a20_0x5f3234(0x79)]['root']=a20_0x5f3234(0x94)+this[a20_0x5f3234(0x91)],a20_0x5b91bd[a20_0x5f3234(0x79)][a20_0x5f3234(0x71)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x5f3234(0x91)],a20_0x5b91bd[a20_0x5f3234(0x79)][a20_0x5f3234(0x99)]=a20_0x5f3234(0xa4)+this['LINK_MESSAGE'],exports['HELP_HEADER_MESSAGE']=a20_0x5b91bd,exports[a20_0x5f3234(0x70)]=a20_0x5f3234(0x7d);const a20_0x46cc2a={};a20_0x46cc2a[a20_0x5f3234(0x7c)]=a20_0x5f3234(0x80),a20_0x46cc2a[a20_0x5f3234(0x73)]=a20_0x5f3234(0x9c),a20_0x46cc2a['INFO']=a20_0x5f3234(0x82),a20_0x46cc2a[a20_0x5f3234(0xa0)]='warning',a20_0x46cc2a[a20_0x5f3234(0xb9)]='unknown',a20_0x46cc2a['NULL']=null,exports[a20_0x5f3234(0x78)]=a20_0x46cc2a,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x5f3234(0xb3)]=a20_0x5f3234(0xa2);
1
+ const a20_0x2f4a48=a20_0x2209;(function(_0x7b186e,_0x426f27){const _0x5f37aa=a20_0x2209,_0x4e0c45=_0x7b186e();while(!![]){try{const _0x548bf4=parseInt(_0x5f37aa(0x15f))/0x1+-parseInt(_0x5f37aa(0x155))/0x2*(parseInt(_0x5f37aa(0x137))/0x3)+-parseInt(_0x5f37aa(0x153))/0x4+-parseInt(_0x5f37aa(0x16e))/0x5*(-parseInt(_0x5f37aa(0x175))/0x6)+parseInt(_0x5f37aa(0x146))/0x7*(parseInt(_0x5f37aa(0x16c))/0x8)+parseInt(_0x5f37aa(0x145))/0x9*(-parseInt(_0x5f37aa(0x151))/0xa)+parseInt(_0x5f37aa(0x132))/0xb*(parseInt(_0x5f37aa(0x16b))/0xc);if(_0x548bf4===_0x426f27)break;else _0x4e0c45['push'](_0x4e0c45['shift']());}catch(_0x3f6582){_0x4e0c45['push'](_0x4e0c45['shift']());}}}(a20_0x18ef,0xe16ee),require(a20_0x2f4a48(0x166))[a20_0x2f4a48(0x139)](),exports[a20_0x2f4a48(0x15a)]=process[a20_0x2f4a48(0x136)]['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports[a20_0x2f4a48(0x178)]=process[a20_0x2f4a48(0x136)][a20_0x2f4a48(0x178)]||a20_0x2f4a48(0x138),exports[a20_0x2f4a48(0x156)]=process[a20_0x2f4a48(0x136)][a20_0x2f4a48(0x156)]||a20_0x2f4a48(0x152),exports[a20_0x2f4a48(0x135)]=a20_0x2f4a48(0x168)+this[a20_0x2f4a48(0x156)]+a20_0x2f4a48(0x174),exports[a20_0x2f4a48(0x17f)]=a20_0x2f4a48(0x17d),exports['IAM_USER_NAME']='BrowserStackIAMUser',exports[a20_0x2f4a48(0x163)]=a20_0x2f4a48(0x13b));const timestamp=new Date()[a20_0x2f4a48(0x147)]();exports[a20_0x2f4a48(0x149)]='aws',exports['CLUSTER_DEP_STACK_NAME']=a20_0x2f4a48(0x183)+timestamp,exports['CLUSTER_AUTOSCALER_STACK_NAME']=a20_0x2f4a48(0x180)+timestamp,exports[a20_0x2f4a48(0x173)]=a20_0x2f4a48(0x150),exports[a20_0x2f4a48(0x185)]='gcp';const a20_0x1c64aa={};a20_0x1c64aa[a20_0x2f4a48(0x14c)]='browserstack:managedBy',a20_0x1c64aa['Value']=a20_0x2f4a48(0x159);const a20_0x5cb3bf={};a20_0x5cb3bf[a20_0x2f4a48(0x14c)]=a20_0x2f4a48(0x148),a20_0x5cb3bf[a20_0x2f4a48(0x14d)]='BrowserStack-Automate-TurboScale',exports[a20_0x2f4a48(0x169)]=[a20_0x1c64aa,a20_0x5cb3bf];const a20_0x1ef6b={};function a20_0x18ef(){const _0x35b718=['Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','dotenv','configure','wss://','COMMON_HST_TAGS','info','534516TMShGt','32AdMNBo','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','1565KeSMLM','SUPPORTED_CLOUD_PROVIDERS','CLI_ARGS_REGEX','stop','REDACTED','AZURE','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','2286dmQgHI','BrowserStack-Automate-TurboScale','[REDACTED]','BS_API_URL','SUCCESS','connect','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','WS_EVENTS','credentials','gridProfile','CP_CONFIG_FILE','BSTACK-ATS-CLUSTER-AUTOSCALER-','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','BSTACK-ATS-CLUSTER-','error','GCP','cliRunFinished','NULL','RAW_ARGS_REGEX','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','737JXmQvh','root','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','WS_ENDPOINT','env','258eFrRIc','api.browserstack.com','config','browserstack:managedBy','high-scale-grid','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','list','LINK_MESSAGE','HST_CLUSTER_TAGS','ERROR','CLI_RUN_FINISHED','grid','unknown','18pqaMzl','743099lYmnDO','getTime','browserstack:service','AWS','gridUrl','HELP_HEADER_MESSAGE','Key','Value','resourceInfo','INFO','azure','6930800DxgNpf','grid-api.browserstack.com','6224936riLBAa','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','5652kFhXjN','AG_API_URL','log','warning','BrowserStack','DASHBOARD_ENDPOINT','cliRunStarted','create','GRID_URL','LOG','580542auYOGU','start','delete','HELP_FOOTER_MESSAGE','DEFAULT_GRID_NAME','UNKNOWN'];a20_0x18ef=function(){return _0x35b718;};return a20_0x18ef();}a20_0x1ef6b[a20_0x2f4a48(0x13a)]=a20_0x2f4a48(0x159),a20_0x1ef6b[a20_0x2f4a48(0x148)]=a20_0x2f4a48(0x176),exports[a20_0x2f4a48(0x140)]=a20_0x1ef6b,exports[a20_0x2f4a48(0x16f)]=[this[a20_0x2f4a48(0x149)]];const a20_0x417b34={};a20_0x417b34[a20_0x2f4a48(0x15e)]=a20_0x2f4a48(0x157),a20_0x417b34['RESOURCES']=a20_0x2f4a48(0x14e),a20_0x417b34[a20_0x2f4a48(0x15d)]=a20_0x2f4a48(0x14a),a20_0x417b34[a20_0x2f4a48(0x13c)]=a20_0x2f4a48(0x15b),a20_0x417b34[a20_0x2f4a48(0x142)]=a20_0x2f4a48(0x186),exports[a20_0x2f4a48(0x17c)]=a20_0x417b34,exports['global_registry']={},exports[a20_0x2f4a48(0x13f)]=a20_0x2f4a48(0x131);function a20_0x2209(_0x768e58,_0x56585d){const _0x18ef19=a20_0x18ef();return a20_0x2209=function(_0x2209ff,_0x34c049){_0x2209ff=_0x2209ff-0x130;let _0x22650e=_0x18ef19[_0x2209ff];return _0x22650e;},a20_0x2209(_0x768e58,_0x56585d);}const a20_0x847faa={};a20_0x847faa['root']=a20_0x2f4a48(0x154)+this[a20_0x2f4a48(0x13f)],a20_0x847faa['init']='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a20_0x2f4a48(0x13f)],a20_0x847faa[a20_0x2f4a48(0x167)]=a20_0x2f4a48(0x16d)+this['LINK_MESSAGE'],a20_0x847faa[a20_0x2f4a48(0x15c)]=a20_0x2f4a48(0x181)+this[a20_0x2f4a48(0x13f)],a20_0x847faa[a20_0x2f4a48(0x13e)]={},a20_0x847faa[a20_0x2f4a48(0x161)]=a20_0x2f4a48(0x134)+this[a20_0x2f4a48(0x13f)],a20_0x847faa[a20_0x2f4a48(0x17a)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a20_0x2f4a48(0x13f)],a20_0x847faa[a20_0x2f4a48(0x160)]='\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.'+this[a20_0x2f4a48(0x13f)],a20_0x847faa[a20_0x2f4a48(0x171)]=a20_0x2f4a48(0x182)+this[a20_0x2f4a48(0x13f)],a20_0x847faa[a20_0x2f4a48(0x13e)][a20_0x2f4a48(0x133)]=a20_0x2f4a48(0x13d)+this[a20_0x2f4a48(0x13f)],a20_0x847faa[a20_0x2f4a48(0x13e)][a20_0x2f4a48(0x143)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this['LINK_MESSAGE'],a20_0x847faa[a20_0x2f4a48(0x13e)][a20_0x2f4a48(0x17e)]=a20_0x2f4a48(0x17b)+this[a20_0x2f4a48(0x13f)],exports[a20_0x2f4a48(0x14b)]=a20_0x847faa,exports[a20_0x2f4a48(0x162)]=a20_0x2f4a48(0x165);const a20_0x3aa60d={};a20_0x3aa60d[a20_0x2f4a48(0x179)]='success',a20_0x3aa60d[a20_0x2f4a48(0x141)]=a20_0x2f4a48(0x184),a20_0x3aa60d[a20_0x2f4a48(0x14f)]=a20_0x2f4a48(0x16a),a20_0x3aa60d['WARNING']=a20_0x2f4a48(0x158),a20_0x3aa60d[a20_0x2f4a48(0x164)]=a20_0x2f4a48(0x144),a20_0x3aa60d[a20_0x2f4a48(0x187)]=null,exports['messageTypes']=a20_0x3aa60d,exports[a20_0x2f4a48(0x170)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x2f4a48(0x130)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x2f4a48(0x172)]=a20_0x2f4a48(0x177);
@@ -1 +1 @@
1
- const a21_0x21a10e=a21_0x5520;(function(_0x1780d0,_0x4d60d0){const _0x312578=a21_0x5520,_0x5c96b7=_0x1780d0();while(!![]){try{const _0x5c0ea0=parseInt(_0x312578(0x192))/0x1+-parseInt(_0x312578(0x197))/0x2*(-parseInt(_0x312578(0x181))/0x3)+parseInt(_0x312578(0x198))/0x4*(-parseInt(_0x312578(0x180))/0x5)+-parseInt(_0x312578(0x183))/0x6+parseInt(_0x312578(0x18a))/0x7*(-parseInt(_0x312578(0x19d))/0x8)+parseInt(_0x312578(0x18d))/0x9+-parseInt(_0x312578(0x19e))/0xa*(parseInt(_0x312578(0x190))/0xb);if(_0x5c0ea0===_0x4d60d0)break;else _0x5c96b7['push'](_0x5c96b7['shift']());}catch(_0x4c4792){_0x5c96b7['push'](_0x5c96b7['shift']());}}}(a21_0x5536,0x7882f));const winston=require('winston'),fs=require('fs'),path=require(a21_0x21a10e(0x191)),logDir=a21_0x21a10e(0x185);!fs[a21_0x21a10e(0x194)](logDir)&&fs[a21_0x21a10e(0x189)](logDir);const a21_0x2791bc={};a21_0x2791bc['format']='YYYY-MM-DD\x20HH:mm:ss';function a21_0x5536(){const _0x5678dc=['File','log','format','colorize','timestamp','mkdirSync','1883benKba','createLogger','name','2226501htxUyM','level','logger','165mFsyPZ','path','929999KgnmDu','usage.log','existsSync','join','message','94yVaqYl','12TwIiok','console.info','Console','fileLogger','transports','12584IAhLna','402140DZOhDN','423070HYlFnX','48021GAfemF','events.log','935478pqttNq'];a21_0x5536=function(){return _0x5678dc;};return a21_0x5536();}const a21_0x35b98f={};a21_0x35b98f['level']=!![];const a21_0x363f44={};function a21_0x5520(_0x133e80,_0x1b325d){const _0x5536d5=a21_0x5536();return a21_0x5520=function(_0x552062,_0x55df18){_0x552062=_0x552062-0x180;let _0x164338=_0x5536d5[_0x552062];return _0x164338;},a21_0x5520(_0x133e80,_0x1b325d);}a21_0x363f44[a21_0x21a10e(0x18c)]=a21_0x21a10e(0x199),exports[a21_0x21a10e(0x18f)]=new winston[(a21_0x21a10e(0x18b))]({'format':winston[a21_0x21a10e(0x186)]['combine'](winston[a21_0x21a10e(0x186)][a21_0x21a10e(0x188)](a21_0x2791bc),winston['format'][a21_0x21a10e(0x187)](a21_0x35b98f),winston[a21_0x21a10e(0x186)]['printf'](_0x55b0ed=>_0x55b0ed[a21_0x21a10e(0x188)]+'\x20-\x20'+_0x55b0ed[a21_0x21a10e(0x18e)]+':\x20'+_0x55b0ed[a21_0x21a10e(0x196)])),'transports':[new winston[(a21_0x21a10e(0x19c))][(a21_0x21a10e(0x19a))](a21_0x363f44),new winston[(a21_0x21a10e(0x19c))]['File']({'filename':path[a21_0x21a10e(0x195)](logDir,a21_0x21a10e(0x182)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x21a10e(0x19c))][(a21_0x21a10e(0x184))]({'filename':path[a21_0x21a10e(0x195)](logDir,a21_0x21a10e(0x193)),'level':'debug'})]};exports[a21_0x21a10e(0x19b)]=new winston[(a21_0x21a10e(0x18b))](winstonFileLoggerParams);
1
+ const a21_0x279f92=a21_0x426f;(function(_0x43283c,_0x31a429){const _0x44ab31=a21_0x426f,_0xb66d86=_0x43283c();while(!![]){try{const _0x22fc9d=parseInt(_0x44ab31(0xca))/0x1*(-parseInt(_0x44ab31(0xbf))/0x2)+-parseInt(_0x44ab31(0xb5))/0x3+parseInt(_0x44ab31(0xc3))/0x4+parseInt(_0x44ab31(0xc9))/0x5+-parseInt(_0x44ab31(0xb2))/0x6+-parseInt(_0x44ab31(0xb4))/0x7+parseInt(_0x44ab31(0xc2))/0x8;if(_0x22fc9d===_0x31a429)break;else _0xb66d86['push'](_0xb66d86['shift']());}catch(_0x2cdf9b){_0xb66d86['push'](_0xb66d86['shift']());}}}(a21_0x242f,0x78017));const winston=require(a21_0x279f92(0xb6)),fs=require('fs'),path=require(a21_0x279f92(0xc8)),logDir='log';!fs[a21_0x279f92(0xb1)](logDir)&&fs['mkdirSync'](logDir);const a21_0x5c4301={};a21_0x5c4301[a21_0x279f92(0xba)]=a21_0x279f92(0xc4);const a21_0x44a431={};a21_0x44a431['level']=!![];function a21_0x426f(_0x3cacbc,_0x241c2d){const _0x242ffe=a21_0x242f();return a21_0x426f=function(_0x426f7,_0x5757ea){_0x426f7=_0x426f7-0xb0;let _0x1111f0=_0x242ffe[_0x426f7];return _0x1111f0;},a21_0x426f(_0x3cacbc,_0x241c2d);}function a21_0x242f(){const _0x49dc90=['level','existsSync','3151440CYIPkX','timestamp','466627gjhlXR','2826456VPjRLZ','winston','printf','message','join','format','createLogger','File','debug','colorize','13598ArIUhj','combine','console.info','10834672Akggkt','3363940ivhQFI','YYYY-MM-DD\x20HH:mm:ss','fileLogger','transports','usage.log','path','2142945bSjDYd','88EImdFo','events.log','Console','name'];a21_0x242f=function(){return _0x49dc90;};return a21_0x242f();}const a21_0x3af086={};a21_0x3af086[a21_0x279f92(0xcd)]=a21_0x279f92(0xc1),exports['logger']=new winston[(a21_0x279f92(0xbb))]({'format':winston[a21_0x279f92(0xba)][a21_0x279f92(0xc0)](winston[a21_0x279f92(0xba)][a21_0x279f92(0xb3)](a21_0x5c4301),winston[a21_0x279f92(0xba)][a21_0x279f92(0xbe)](a21_0x44a431),winston[a21_0x279f92(0xba)][a21_0x279f92(0xb7)](_0x4813f1=>_0x4813f1[a21_0x279f92(0xb3)]+'\x20-\x20'+_0x4813f1[a21_0x279f92(0xb0)]+':\x20'+_0x4813f1[a21_0x279f92(0xb8)])),'transports':[new winston[(a21_0x279f92(0xc6))][(a21_0x279f92(0xcc))](a21_0x3af086),new winston['transports'][(a21_0x279f92(0xbc))]({'filename':path[a21_0x279f92(0xb9)](logDir,a21_0x279f92(0xcb)),'level':a21_0x279f92(0xbd)})]});const winstonFileLoggerParams={'transports':[new winston['transports'][(a21_0x279f92(0xbc))]({'filename':path[a21_0x279f92(0xb9)](logDir,a21_0x279f92(0xc7)),'level':a21_0x279f92(0xbd)})]};exports[a21_0x279f92(0xc5)]=new winston[(a21_0x279f92(0xbb))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0x30b272=a22_0x307d;(function(_0x1b9fa8,_0x5b14a1){const _0xecf470=a22_0x307d,_0x485344=_0x1b9fa8();while(!![]){try{const _0x3500c3=parseInt(_0xecf470(0xf2))/0x1*(parseInt(_0xecf470(0xfb))/0x2)+-parseInt(_0xecf470(0xef))/0x3+-parseInt(_0xecf470(0xf3))/0x4+parseInt(_0xecf470(0xeb))/0x5+-parseInt(_0xecf470(0xfd))/0x6+-parseInt(_0xecf470(0xf9))/0x7+parseInt(_0xecf470(0xfa))/0x8;if(_0x3500c3===_0x5b14a1)break;else _0x485344['push'](_0x485344['shift']());}catch(_0xe21f6c){_0x485344['push'](_0x485344['shift']());}}}(a22_0x4c86,0xbb296));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x30b272(0xee));process[a22_0x30b272(0xf4)][a22_0x30b272(0xf7)]=0x1;function a22_0x4c86(){const _0x250d3a=['epilogue','4369590FlQdjz','exports','commands','./config/constants','2300820WqKvmD','usage','root','2cRqrBZ','4588484YQkEJD','env','help','qYBOe','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','demandCommand','774375sizLKT','13589768WlWyeh','966372oWJcqG','commandDir','4486266YGeNRL','jOuvf'];a22_0x4c86=function(){return _0x250d3a;};return a22_0x4c86();}function a22_0x307d(_0x53910a,_0x4136da){const _0x4c86e5=a22_0x4c86();return a22_0x307d=function(_0x307dde,_0x5d1f2c){_0x307dde=_0x307dde-0xe9;let _0x1e8e73=_0x4c86e5[_0x307dde];return _0x1e8e73;},a22_0x307d(_0x53910a,_0x4136da);}function run(_0x100bd6){const _0x445232=a22_0x30b272,_0x3ed7f0={};_0x3ed7f0[_0x445232(0xf6)]=_0x445232(0xed),_0x3ed7f0[_0x445232(0xe9)]=_0x445232(0xf5);const _0x3c6893=_0x3ed7f0;_0x100bd6[_0x445232(0xf0)](HELP_HEADER_MESSAGE[_0x445232(0xf1)])[_0x445232(0xfc)](_0x3c6893[_0x445232(0xf6)])[_0x445232(0xf8)]()[_0x445232(0xf5)](_0x3c6893['jOuvf'])[_0x445232(0xea)](HELP_FOOTER_MESSAGE);}module[a22_0x30b272(0xec)]=run;
2
+ 'use strict';function a22_0x5cca(_0x51bbe6,_0x3f7a22){const _0x24fdee=a22_0x24fd();return a22_0x5cca=function(_0x5ccadf,_0xb4d158){_0x5ccadf=_0x5ccadf-0x113;let _0x46d0c4=_0x24fdee[_0x5ccadf];return _0x46d0c4;},a22_0x5cca(_0x51bbe6,_0x3f7a22);}const a22_0x4de6ff=a22_0x5cca;(function(_0x47f814,_0x4aef5c){const _0x24ac61=a22_0x5cca,_0x2a15cc=_0x47f814();while(!![]){try{const _0x4e13c7=parseInt(_0x24ac61(0x115))/0x1*(parseInt(_0x24ac61(0x118))/0x2)+parseInt(_0x24ac61(0x129))/0x3+-parseInt(_0x24ac61(0x119))/0x4+-parseInt(_0x24ac61(0x11e))/0x5*(-parseInt(_0x24ac61(0x113))/0x6)+parseInt(_0x24ac61(0x11b))/0x7+parseInt(_0x24ac61(0x116))/0x8*(-parseInt(_0x24ac61(0x124))/0x9)+parseInt(_0x24ac61(0x127))/0xa*(-parseInt(_0x24ac61(0x11a))/0xb);if(_0x4e13c7===_0x4aef5c)break;else _0x2a15cc['push'](_0x2a15cc['shift']());}catch(_0x4b6e2d){_0x2a15cc['push'](_0x2a15cc['shift']());}}}(a22_0x24fd,0x2b389));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x4de6ff(0x121));process[a22_0x4de6ff(0x125)][a22_0x4de6ff(0x120)]=0x1;function a22_0x24fd(){const _0x4bb6eb=['help','50ofQpVP','demandCommand','577173UtiQYy','6ctuZQh','exports','69754UqIVge','128zMNKVI','root','4aHhffl','328188RtRUDQ','812207pwLUkK','933331jjBrZn','usage','YSqAU','1566445YvElWz','commandDir','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','./config/constants','epilogue','commands','84519dvGyzE','env'];a22_0x24fd=function(){return _0x4bb6eb;};return a22_0x24fd();}function run(_0x4162c8){const _0x251cbe=a22_0x4de6ff,_0x324f4a={};_0x324f4a['YSqAU']=_0x251cbe(0x123),_0x324f4a['kzRDZ']='help';const _0x63ec2=_0x324f4a;_0x4162c8[_0x251cbe(0x11c)](HELP_HEADER_MESSAGE[_0x251cbe(0x117)])[_0x251cbe(0x11f)](_0x63ec2[_0x251cbe(0x11d)])[_0x251cbe(0x128)]()[_0x251cbe(0x126)](_0x63ec2['kzRDZ'])[_0x251cbe(0x122)](HELP_FOOTER_MESSAGE);}module[a22_0x4de6ff(0x114)]=run;
@@ -19,7 +19,7 @@ Resources:
19
19
  ClusterOIDCURLFunction:
20
20
  Type: AWS::Lambda::Function
21
21
  Properties:
22
- Runtime: python3.7
22
+ Runtime: python3.12
23
23
  Handler: index.lambda_handler
24
24
  MemorySize: 128
25
25
  Role: !GetAtt ClusterOIDCLambdaExecutionRole.Arn
@@ -61,7 +61,7 @@ Resources:
61
61
  ClusterOIDCProviderFunction:
62
62
  Type: AWS::Lambda::Function
63
63
  Properties:
64
- Runtime: python3.7
64
+ Runtime: python3.12
65
65
  Handler: index.lambda_handler
66
66
  MemorySize: 128
67
67
  Role: !GetAtt ClusterOIDCLambdaExecutionRole.Arn
@@ -16,6 +16,8 @@ spec:
16
16
  metadata:
17
17
  labels:
18
18
  name: browserstack-turboscale-grid
19
+ annotations:
20
+ "cluster-autoscaler.kubernetes.io/safe-to-evict": "false"
19
21
  spec:
20
22
  nodeSelector:
21
23
  kubernetes.io/os: linux
@@ -1 +1 @@
1
- function a23_0x4478(_0x2eb6ae,_0xd7a5d0){const _0x174601=a23_0x1746();return a23_0x4478=function(_0x44783e,_0x4325ce){_0x44783e=_0x44783e-0x1aa;let _0x16e922=_0x174601[_0x44783e];return _0x16e922;},a23_0x4478(_0x2eb6ae,_0xd7a5d0);}const a23_0x215444=a23_0x4478;(function(_0xdd9ffb,_0x3d50e6){const _0xa56c32=a23_0x4478,_0x5409bd=_0xdd9ffb();while(!![]){try{const _0x35dfc4=parseInt(_0xa56c32(0x1eb))/0x1*(parseInt(_0xa56c32(0x1b1))/0x2)+-parseInt(_0xa56c32(0x22c))/0x3*(-parseInt(_0xa56c32(0x20c))/0x4)+-parseInt(_0xa56c32(0x1b9))/0x5*(-parseInt(_0xa56c32(0x1de))/0x6)+parseInt(_0xa56c32(0x1cd))/0x7*(parseInt(_0xa56c32(0x1bf))/0x8)+-parseInt(_0xa56c32(0x210))/0x9+-parseInt(_0xa56c32(0x1ae))/0xa*(-parseInt(_0xa56c32(0x1fe))/0xb)+-parseInt(_0xa56c32(0x1cc))/0xc;if(_0x35dfc4===_0x3d50e6)break;else _0x5409bd['push'](_0x5409bd['shift']());}catch(_0x330444){_0x5409bd['push'](_0x5409bd['shift']());}}}(a23_0x1746,0x7f20f));const awsSDK=require(a23_0x215444(0x202)),{logger}=require('../config/logger');function a23_0x1746(){const _0x1600dc=['tODTe','ZDewL','MIPGt','then','Bucket','hYTUO','gTOOv','KzYYC','jKMrU','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','KLFjO','describeVpcs','qEKxq','sOufj','PvfpA','xHNfl','418EThath','yazEV','fetchSecurityGroups','EBWhS','aws-sdk','ylRCC','jYOCY','tbKmI','HdYET','qLlgl','mYbtH','eRebJ','Xnnoe','EnFDp','3062712VSkraN','describeRegions','ugOnt','2016-11-15','2418435DvdByq','WkpOQ','DgQYl','Ujpux','Bucket:\x20','wlWNC','MJQkX','XNYcX','ccpDq','info','TsXOD','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','GwtJJ','aIiDm','NcShB','kgQlX','getAWSRegions','QjmPo','QdMzM','cDCdN','describeSecurityGroups','MOXtJ','NKywT','aOrCf','Pbivs','beToz','TGpzr','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','3vTxRjL','catch','HtByw','qwJSV','GlbQY','diCgY','VJknu','fMARu','fuQoC','siPQR','ReBaw','YtEgL','qXnTa','246670AevlCk','qxNeD','region','34274xXffRh','PKWWK','XIpbe','vVRhv','warn','uxnVT','pWChi','iMvlt','3795915nrwkEu','xDzlz','headBucket','rOohE','daAkm','lkrBu','1883992cJRkVD','qWKGB','gRiYK','QCOzz','NuKXh','pTtKP','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','caGuM','error','gTmDZ','awsObj','kpIeU','uLrqQ','30866352iTgkca','14iQkqjz','IEZmY','oFlkw','YcTdn','jQTdb','unuIF','NwusH','nLyLG','Regions','FszDn','pkxGy','FZEne','mjSrA','apiVersion','UkqHC','rApXD','isBucketPresent','6lEYqSN','AAtRe','OmJco','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','kRmfv','nnbbV','KAzTN','MGQZw','ZbGJX','gpIVg','EC2','promise','SKjkx','25OPRmDr','SYyVH','fetchVPCs'];a23_0x1746=function(){return _0x1600dc;};return a23_0x1746();}exports[a23_0x215444(0x1ed)]=_0x3ab8e6=>{const _0x4b649b=a23_0x215444,_0x5eb928={'FZEne':function(_0x563158,_0x132661){return _0x563158(_0x132661);},'unuIF':_0x4b649b(0x20f),'xDzlz':function(_0x691bbd,_0x2440ac){return _0x691bbd===_0x2440ac;},'qwJSV':'DFyja','kgQlX':'hrYCC','MJQkX':function(_0x8b92d2,_0x2990e5){return _0x8b92d2(_0x2990e5);},'qLlgl':function(_0x3cab9e,_0x41da0e){return _0x3cab9e!==_0x41da0e;},'siPQR':_0x4b649b(0x1ec),'pTtKP':'RcYZV'};return new Promise((_0x17c026,_0x522c07)=>{const _0x558b2e=_0x4b649b,_0x4f7af0={'FszDn':function(_0x22b52e,_0x44b7fe){const _0x5b870e=a23_0x4478;return _0x5eb928[_0x5b870e(0x207)](_0x22b52e,_0x44b7fe);},'WkpOQ':function(_0x2c85c0,_0x5b8a55){const _0x340e79=a23_0x4478;return _0x5eb928[_0x340e79(0x216)](_0x2c85c0,_0x5b8a55);},'nkhhK':function(_0x3a0434,_0x21fd30){const _0x4b434c=a23_0x4478;return _0x5eb928[_0x4b434c(0x1ba)](_0x3a0434,_0x21fd30);},'jKMrU':_0x5eb928[_0x558b2e(0x1aa)]};if(_0x5eb928[_0x558b2e(0x1ba)](_0x5eb928[_0x558b2e(0x1c4)],_0x5eb928['pTtKP'])){const _0x2e0fb7={};_0x2e0fb7[_0x558b2e(0x1da)]=_0x5eb928[_0x558b2e(0x1d2)],_0x2e0fb7[_0x558b2e(0x1b0)]=_0x3ab8e6;const _0x332da2=new awsSDK['EC2'](_0x2e0fb7);_0x332da2[_0x558b2e(0x1f9)]()[_0x558b2e(0x1e9)]()[_0x558b2e(0x1f1)](_0x140a79=>{const _0x295f47=_0x558b2e;_0x4f7af0['nkhhK'](_0x4f7af0[_0x295f47(0x1f6)],_0x4f7af0[_0x295f47(0x1f6)])?_0x4f7af0[_0x295f47(0x211)](_0x17c026,_0x140a79):_0x4f7af0['FszDn'](_0xf0e61a,_0xbb5294)&&_0x4f7af0[_0x295f47(0x1d6)](_0x7b4dbc[_0x295f47(0x1d5)],_0x45c0a6)?_0x4f7af0[_0x295f47(0x211)](_0x2fa6fe,_0x3e5775[_0x295f47(0x1d5)]):_0x4f7af0['WkpOQ'](_0x4acc1e,{});})[_0x558b2e(0x22d)](_0x256308=>{const _0x304805=_0x558b2e,_0x28977f={'Ujpux':function(_0x3d86d6,_0x27cd44){const _0x45fec5=a23_0x4478;return _0x5eb928[_0x45fec5(0x1d8)](_0x3d86d6,_0x27cd44);},'qXnTa':_0x5eb928[_0x304805(0x1d2)]};if(_0x5eb928[_0x304805(0x1ba)](_0x5eb928[_0x304805(0x22f)],_0x5eb928[_0x304805(0x21f)]))return new _0x203b75((_0x45383d,_0x213195)=>{const _0x380be2=_0x304805,_0x90bf75={'aOrCf':function(_0x5b2bbe,_0x293e39){const _0x5d1ccb=a23_0x4478;return _0x28977f[_0x5d1ccb(0x213)](_0x5b2bbe,_0x293e39);},'DRuXT':function(_0x5ea123,_0x2f05f3){const _0x13404a=a23_0x4478;return _0x28977f[_0x13404a(0x213)](_0x5ea123,_0x2f05f3);}},_0x4750fb={};_0x4750fb['apiVersion']=_0x28977f[_0x380be2(0x1ad)],_0x4750fb[_0x380be2(0x1b0)]=_0x54017f;const _0x49b06f=new _0x533f6f[(_0x380be2(0x1e8))](_0x4750fb);_0x49b06f[_0x380be2(0x224)]()[_0x380be2(0x1e9)]()[_0x380be2(0x1f1)](_0xf27b04=>{const _0x479481=_0x380be2;_0x90bf75[_0x479481(0x227)](_0x45383d,_0xf27b04);})[_0x380be2(0x22d)](_0x51dea6=>{const _0x53f153=_0x380be2;_0xfcf3da[_0x53f153(0x1c7)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x51dea6),_0x90bf75['DRuXT'](_0x213195,_0x51dea6);});});else logger[_0x304805(0x1c7)](_0x304805(0x1f7)+_0x256308),_0x5eb928[_0x304805(0x216)](_0x522c07,_0x256308);});}else{const _0x4f7717={'EBWhS':function(_0x53da63,_0x391080){const _0x409266=_0x558b2e;return _0x5eb928[_0x409266(0x1d8)](_0x53da63,_0x391080);}},_0x1f8ef7={};_0x1f8ef7[_0x558b2e(0x1da)]=_0x5eb928[_0x558b2e(0x1d2)],_0x1f8ef7[_0x558b2e(0x1b0)]=_0x3a2f19;const _0x179137=new _0x2ea375[(_0x558b2e(0x1e8))](_0x1f8ef7);_0x179137['describeSubnets']()['promise']()[_0x558b2e(0x1f1)](_0x2c8a0a=>{const _0x98a391=_0x558b2e;_0x4f7af0[_0x98a391(0x211)](_0x46f227,_0x2c8a0a);})[_0x558b2e(0x22d)](_0x4cf8eb=>{const _0x9a74f1=_0x558b2e;_0x4bc097[_0x9a74f1(0x1c7)](_0x9a74f1(0x1e1)+_0x4cf8eb),_0x4f7717[_0x9a74f1(0x201)](_0x1eb8f6,_0x4cf8eb);});}});},exports[a23_0x215444(0x1dd)]=_0x252f36=>{const _0x18b671=a23_0x215444,_0x5b9130={'Pbivs':function(_0x20b5dd,_0xa88cb6){return _0x20b5dd(_0xa88cb6);},'FGmzf':function(_0x37a22a,_0x1a69f6){return _0x37a22a!==_0x1a69f6;},'OmJco':_0x18b671(0x22e),'tcwdd':function(_0x4a9dc1,_0x3ba4b2){return _0x4a9dc1(_0x3ba4b2);},'PKWWK':function(_0xfca10f,_0x258dfc){return _0xfca10f(_0x258dfc);},'NNwnQ':'2016-11-15','aIiDm':function(_0x40cefa,_0x3249fd){return _0x40cefa===_0x3249fd;},'jQTdb':_0x18b671(0x1bd),'NAOWO':_0x18b671(0x1e3),'vRvto':function(_0x37b4f1,_0x1523ce){return _0x37b4f1!==_0x1523ce;},'lkrBu':_0x18b671(0x1ff)},_0x4b47bb=new awsSDK['S3']();return new Promise((_0x5dbc23,_0x3f6567)=>{const _0x18ac0e=_0x18b671,_0x201f14={'QdMzM':function(_0x48aa6c,_0x537d93){const _0x18e5bc=a23_0x4478;return _0x5b9130[_0x18e5bc(0x1b2)](_0x48aa6c,_0x537d93);},'hYTUO':_0x5b9130['NNwnQ'],'idLTJ':function(_0x338683,_0xbaf4c2){const _0x54bd63=a23_0x4478;return _0x5b9130[_0x54bd63(0x1b2)](_0x338683,_0xbaf4c2);},'EnFDp':function(_0x324ea2,_0x347fcd){const _0x1660c6=a23_0x4478;return _0x5b9130[_0x1660c6(0x21d)](_0x324ea2,_0x347fcd);},'QiAyj':_0x5b9130[_0x18ac0e(0x1d1)],'sOufj':_0x5b9130['NAOWO']};if(_0x5b9130['vRvto'](_0x5b9130[_0x18ac0e(0x1be)],_0x5b9130[_0x18ac0e(0x1be)]))_0x5b9130[_0x18ac0e(0x228)](_0x3a3f37,{});else{const _0x3a9a18={};_0x3a9a18[_0x18ac0e(0x1f2)]=_0x252f36,_0x4b47bb[_0x18ac0e(0x1bb)](_0x3a9a18)[_0x18ac0e(0x1e9)]()[_0x18ac0e(0x1f1)](_0xd2a07e=>{const _0x2deb10=_0x18ac0e,_0x560510={'MGQZw':function(_0x53782c,_0x52ec20){const _0x3d00b2=a23_0x4478;return _0x201f14[_0x3d00b2(0x222)](_0x53782c,_0x52ec20);},'mjSrA':_0x201f14[_0x2deb10(0x1f3)],'kRmfv':function(_0x31f334,_0x1d1385){return _0x201f14['idLTJ'](_0x31f334,_0x1d1385);}};if(_0x201f14[_0x2deb10(0x20b)](_0x201f14['QiAyj'],_0x201f14[_0x2deb10(0x1fb)])){const _0x2c0a3a={'mYbtH':function(_0x24504e,_0x106e09){const _0x35ee41=_0x2deb10;return _0x560510[_0x35ee41(0x1e2)](_0x24504e,_0x106e09);}};return new _0x2c07b5((_0x132cf5,_0x33826b)=>{const _0x1d46dd=_0x2deb10,_0x455295={'wlWNC':function(_0x28bf70,_0x4bee45){const _0x49c951=a23_0x4478;return _0x560510[_0x49c951(0x1e5)](_0x28bf70,_0x4bee45);}},_0x49171e={};_0x49171e[_0x1d46dd(0x1da)]=_0x560510[_0x1d46dd(0x1d9)],_0x49171e[_0x1d46dd(0x1b0)]=_0x53819b;const _0x315207=new _0x52b5f6[(_0x1d46dd(0x1e8))](_0x49171e);_0x315207['describeVpcs']()[_0x1d46dd(0x1e9)]()[_0x1d46dd(0x1f1)](_0x356120=>{const _0x16f937=_0x1d46dd;_0x2c0a3a[_0x16f937(0x208)](_0x132cf5,_0x356120);})['catch'](_0x37a1d0=>{const _0x95f6d8=_0x1d46dd;_0x1208c0['error'](_0x95f6d8(0x1f7)+_0x37a1d0),_0x455295[_0x95f6d8(0x215)](_0x33826b,_0x37a1d0);});});}else logger[_0x2deb10(0x1b5)](_0x2deb10(0x214)+_0x252f36+_0x2deb10(0x22b)),_0x201f14[_0x2deb10(0x222)](_0x5dbc23,!![]);})['catch'](()=>{const _0xdda42=_0x18ac0e;_0x5b9130['FGmzf'](_0x5b9130['OmJco'],_0x5b9130[_0xdda42(0x1e0)])?_0x201f14[_0xdda42(0x222)](_0x2c9b41,_0x1eb30e):(logger[_0xdda42(0x219)](_0xdda42(0x214)+_0x252f36+_0xdda42(0x21b)),_0x5b9130['tcwdd'](_0x5dbc23,![]));});}});},exports['fetchSubnets']=_0x6607b1=>{const _0x5d19a1=a23_0x215444,_0xe03ba7={'rOohE':function(_0x442958,_0x314cd2){return _0x442958!==_0x314cd2;},'XNYcX':'XlXuK','ccpDq':function(_0x5cf05f,_0x42c51e){return _0x5cf05f(_0x42c51e);},'tbKmI':function(_0x53407f,_0x2574fe){return _0x53407f===_0x2574fe;},'qWKGB':_0x5d19a1(0x1d7),'YtEgL':_0x5d19a1(0x1c3),'jYOCY':function(_0x565c95,_0x122892){return _0x565c95(_0x122892);},'VJknu':function(_0x769a10,_0x2bfd11){return _0x769a10(_0x2bfd11);},'DgQYl':_0x5d19a1(0x1f0),'TsXOD':'OsbwN','Xnnoe':_0x5d19a1(0x20f)};return new Promise((_0x588892,_0x2e834b)=>{const _0x3f8b06=_0x5d19a1,_0x208420={'gTOOv':function(_0x5b58cd,_0x5f52a3){return _0xe03ba7['ccpDq'](_0x5b58cd,_0x5f52a3);},'GwtJJ':function(_0x341fc8,_0x38d4b4){const _0x5ccc55=a23_0x4478;return _0xe03ba7[_0x5ccc55(0x232)](_0x341fc8,_0x38d4b4);}};if(_0xe03ba7[_0x3f8b06(0x1bc)](_0xe03ba7[_0x3f8b06(0x212)],_0xe03ba7[_0x3f8b06(0x21a)])){const _0x557237={};_0x557237[_0x3f8b06(0x1da)]=_0xe03ba7[_0x3f8b06(0x20a)],_0x557237['region']=_0x6607b1;const _0x2d18fc=new awsSDK['EC2'](_0x557237);_0x2d18fc['describeSubnets']()[_0x3f8b06(0x1e9)]()['then'](_0x16dec9=>{const _0x803e41=_0x3f8b06;_0xe03ba7[_0x803e41(0x1bc)](_0xe03ba7[_0x803e41(0x217)],_0xe03ba7['XNYcX'])?_0x208420[_0x803e41(0x1f4)](_0x45d985,_0x1ec46c['Regions']):_0xe03ba7[_0x803e41(0x218)](_0x588892,_0x16dec9);})['catch'](_0xff3f00=>{const _0x48a715=_0x3f8b06;_0xe03ba7[_0x48a715(0x205)](_0xe03ba7[_0x48a715(0x1c0)],_0xe03ba7[_0x48a715(0x1ac)])?_0x208420[_0x48a715(0x21c)](_0x338f1c,_0xb26c71):(logger['error']('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0xff3f00),_0xe03ba7[_0x48a715(0x204)](_0x2e834b,_0xff3f00));});}else _0x208420[_0x3f8b06(0x1f4)](_0x3b5abb,_0x49c9eb);});},exports[a23_0x215444(0x200)]=_0x23d970=>{const _0x3ba03=a23_0x215444,_0x19a67c={'rApXD':function(_0xb43fb8,_0x1049f6){return _0xb43fb8(_0x1049f6);},'fMARu':function(_0x3f41f6,_0x329365){return _0x3f41f6(_0x329365);},'liztp':function(_0x433929,_0x2ab8cb){return _0x433929!==_0x2ab8cb;},'luKCL':_0x3ba03(0x1fa),'SKjkx':_0x3ba03(0x1ef),'HdYET':_0x3ba03(0x1b3),'oFlkw':function(_0x4abc31,_0x31e3b6){return _0x4abc31(_0x31e3b6);},'UkqHC':function(_0x5e7d33,_0x1afc8d){return _0x5e7d33===_0x1afc8d;},'pUXuB':_0x3ba03(0x1fc),'tODTe':_0x3ba03(0x1e7),'ZbGJX':_0x3ba03(0x20f)};return new Promise((_0x5c609a,_0x44878b)=>{const _0x197284=_0x3ba03,_0x42885f={'iMvlt':function(_0x2dc2d9,_0x51c0d7){const _0x131636=a23_0x4478;return _0x19a67c[_0x131636(0x233)](_0x2dc2d9,_0x51c0d7);},'NcShB':function(_0x166907,_0x2c8e55){return _0x19a67c['liztp'](_0x166907,_0x2c8e55);},'rnjVO':_0x19a67c[_0x197284(0x206)],'eRebJ':function(_0x53d9ee,_0x582864){const _0x112d5f=_0x197284;return _0x19a67c[_0x112d5f(0x1cf)](_0x53d9ee,_0x582864);}};if(_0x19a67c[_0x197284(0x1db)](_0x19a67c['pUXuB'],_0x19a67c[_0x197284(0x1ee)]))_0x1b2004[_0x197284(0x219)]('Bucket:\x20'+_0x84efcd+_0x197284(0x21b)),_0x42885f[_0x197284(0x1b8)](_0x18738c,![]);else{const _0x1078cf={};_0x1078cf[_0x197284(0x1da)]=_0x19a67c[_0x197284(0x1e6)],_0x1078cf[_0x197284(0x1b0)]=_0x23d970;const _0x55f942=new awsSDK[(_0x197284(0x1e8))](_0x1078cf);_0x55f942['describeSecurityGroups']()[_0x197284(0x1e9)]()['then'](_0x140f7e=>{const _0x41e1ca=_0x197284,_0x428a6b={'QjmPo':function(_0x1d9ad3,_0x51da4a){const _0x4ff98f=a23_0x4478;return _0x19a67c[_0x4ff98f(0x1dc)](_0x1d9ad3,_0x51da4a);},'caGuM':function(_0x3c38a2,_0x22b54a){const _0x5ee53b=a23_0x4478;return _0x19a67c[_0x5ee53b(0x233)](_0x3c38a2,_0x22b54a);}};if(_0x19a67c['liztp'](_0x19a67c['luKCL'],_0x19a67c[_0x41e1ca(0x1ea)]))_0x19a67c[_0x41e1ca(0x233)](_0x5c609a,_0x140f7e);else{const _0x5e25fe={};_0x5e25fe['Bucket']=_0x57cf44,_0x56e925['headBucket'](_0x5e25fe)[_0x41e1ca(0x1e9)]()[_0x41e1ca(0x1f1)](_0x34f99c=>{const _0x8f43c3=_0x41e1ca;_0x2e32ef[_0x8f43c3(0x1b5)]('Bucket:\x20'+_0x5e1c2b+_0x8f43c3(0x22b)),_0x428a6b[_0x8f43c3(0x221)](_0x34f379,!![]);})[_0x41e1ca(0x22d)](()=>{const _0x4d008d=_0x41e1ca;_0x4871dd['info'](_0x4d008d(0x214)+_0x503eaf+_0x4d008d(0x21b)),_0x428a6b[_0x4d008d(0x1c6)](_0x2ae32e,![]);});}})[_0x197284(0x22d)](_0x467705=>{const _0x6d4744=_0x197284;_0x42885f[_0x6d4744(0x21e)](_0x42885f['rnjVO'],_0x42885f['rnjVO'])?(_0xd91ee7[_0x6d4744(0x1c7)](_0x6d4744(0x1c5)+_0x5c6b3e),_0x42885f[_0x6d4744(0x1b8)](_0x4cf3e2,_0x542a41)):(logger[_0x6d4744(0x1c7)](_0x6d4744(0x1c5)+_0x467705),_0x42885f[_0x6d4744(0x209)](_0x44878b,_0x467705));});}});},exports[a23_0x215444(0x220)]=()=>{const _0x13bc46=a23_0x215444,_0x2f682e={'YcTdn':function(_0x10c628,_0x5d2073){return _0x10c628(_0x5d2073);},'KzYYC':function(_0x467639,_0x3b1a49){return _0x467639(_0x3b1a49);},'MOXtJ':'2016-11-15','TGpzr':function(_0x218da6,_0x1e7ff4){return _0x218da6!==_0x1e7ff4;},'cDCdN':_0x13bc46(0x234),'beToz':function(_0x27e3ed,_0x5db0aa){return _0x27e3ed!==_0x5db0aa;},'gRiYK':_0x13bc46(0x1ca),'gTmDZ':_0x13bc46(0x1ce),'nLyLG':_0x13bc46(0x1b6),'AAtRe':function(_0x288474,_0xe70769){return _0x288474===_0xe70769;},'diCgY':_0x13bc46(0x203),'vVRhv':_0x13bc46(0x1cb)};return new Promise((_0x5a1f0f,_0x33ce2e)=>{const _0x5c3841=_0x13bc46,_0x181f4c={'pWChi':_0x2f682e[_0x5c3841(0x225)],'ReBaw':function(_0x556c49,_0xb7303c){const _0x2153a7=_0x5c3841;return _0x2f682e[_0x2153a7(0x1f5)](_0x556c49,_0xb7303c);},'NwusH':function(_0x363f87,_0x7df5eb){const _0x1542ca=_0x5c3841;return _0x2f682e[_0x1542ca(0x1d0)](_0x363f87,_0x7df5eb);},'CUdOf':function(_0x2f6745,_0x347647){const _0x50e2bb=_0x5c3841;return _0x2f682e[_0x50e2bb(0x1df)](_0x2f6745,_0x347647);},'QCOzz':_0x2f682e[_0x5c3841(0x231)]};if(_0x2f682e[_0x5c3841(0x22a)](_0x2f682e['vVRhv'],_0x2f682e[_0x5c3841(0x1b4)])){const _0x529c2c={'KLFjO':function(_0x24ecbc,_0x3edccb){const _0x4d3751=_0x5c3841;return _0x2f682e[_0x4d3751(0x1d0)](_0x24ecbc,_0x3edccb);},'KAzTN':function(_0xe3dddb,_0x366f4b){const _0x49f9cb=_0x5c3841;return _0x2f682e[_0x49f9cb(0x1d0)](_0xe3dddb,_0x366f4b);}},_0x56688a=new _0x7eefdb['S3']();return new _0x63b3b3((_0x33fe57,_0x1b55dc)=>{const _0x5f752e=_0x5c3841,_0x13b419={};_0x13b419[_0x5f752e(0x1f2)]=_0x3cf53a,_0x56688a[_0x5f752e(0x1bb)](_0x13b419)[_0x5f752e(0x1e9)]()[_0x5f752e(0x1f1)](_0x1b57ed=>{const _0x55f47f=_0x5f752e;_0x826452[_0x55f47f(0x1b5)](_0x55f47f(0x214)+_0x2aa34a+_0x55f47f(0x22b)),_0x529c2c[_0x55f47f(0x1f8)](_0x33fe57,!![]);})[_0x5f752e(0x22d)](()=>{const _0x285939=_0x5f752e;_0xf0b745[_0x285939(0x219)](_0x285939(0x214)+_0x209b23+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x529c2c[_0x285939(0x1e4)](_0x33fe57,![]);});});}else{const _0x5920ed={};_0x5920ed[_0x5c3841(0x1da)]=_0x2f682e['MOXtJ'];const _0x13a06c=new awsSDK['EC2'](_0x5920ed);_0x13a06c[_0x5c3841(0x20d)]()['promise']()[_0x5c3841(0x1f1)]((_0x1bfeeb,_0x39e3d4)=>{const _0x34d51a=_0x5c3841,_0x451375={'OXZZB':function(_0x168ad1,_0x4f3b8e){return _0x2f682e['KzYYC'](_0x168ad1,_0x4f3b8e);},'xHNfl':function(_0x3f2327,_0x3e5a54){return _0x2f682e['KzYYC'](_0x3f2327,_0x3e5a54);},'ugOnt':function(_0x358680,_0x171025){const _0x1e925a=a23_0x4478;return _0x2f682e[_0x1e925a(0x1f5)](_0x358680,_0x171025);},'qxNeD':_0x2f682e['MOXtJ']};if(_0x2f682e['TGpzr'](_0x2f682e[_0x34d51a(0x223)],_0x2f682e[_0x34d51a(0x223)])){const _0x154408={};_0x154408[_0x34d51a(0x1da)]=_0x181f4c[_0x34d51a(0x1b7)],_0x154408['region']=_0x5a823b;const _0x541a8d=new _0x25eadb[(_0x34d51a(0x1e8))](_0x154408);_0x541a8d[_0x34d51a(0x224)]()[_0x34d51a(0x1e9)]()['then'](_0x2e2d62=>{_0x451375['OXZZB'](_0xdffbb4,_0x2e2d62);})[_0x34d51a(0x22d)](_0x5b03d6=>{const _0x3b4a50=_0x34d51a;_0x1f11c0[_0x3b4a50(0x1c7)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x5b03d6),_0x451375[_0x3b4a50(0x1fd)](_0x50dcb6,_0x5b03d6);});}else{if(_0x2f682e[_0x34d51a(0x22a)](_0x1bfeeb,undefined)&&_0x2f682e[_0x34d51a(0x229)](_0x1bfeeb[_0x34d51a(0x1d5)],undefined)){if(_0x2f682e[_0x34d51a(0x229)](_0x2f682e[_0x34d51a(0x1c1)],_0x2f682e[_0x34d51a(0x1c1)])){const _0x3ee578={'NKywT':function(_0x300543,_0x28e160){const _0x365c7a=_0x34d51a;return _0x451375[_0x365c7a(0x20e)](_0x300543,_0x28e160);}},_0xc2585f={};_0xc2585f[_0x34d51a(0x1da)]=_0x451375[_0x34d51a(0x1af)],_0xc2585f['region']=_0x15cca8;const _0x1666ee=new _0x16b6f9['EC2'](_0xc2585f);_0x1666ee[_0x34d51a(0x1f9)]()['promise']()['then'](_0x17517c=>{const _0x2ccc4c=_0x34d51a;_0x3ee578[_0x2ccc4c(0x226)](_0x3b559a,_0x17517c);})[_0x34d51a(0x22d)](_0x101d2a=>{const _0x4e2a7a=_0x34d51a;_0x397a4a[_0x4e2a7a(0x1c7)](_0x4e2a7a(0x1f7)+_0x101d2a),_0x3ee578[_0x4e2a7a(0x226)](_0x1a5dc2,_0x101d2a);});}else _0x2f682e[_0x34d51a(0x1d0)](_0x5a1f0f,_0x1bfeeb[_0x34d51a(0x1d5)]);}else _0x2f682e[_0x34d51a(0x229)](_0x2f682e[_0x34d51a(0x1c8)],_0x2f682e[_0x34d51a(0x1d4)])?_0x2f682e['YcTdn'](_0x5a1f0f,{}):(_0x5ed764[_0x34d51a(0x1c7)]('Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20'+_0x59ddbe),_0x181f4c[_0x34d51a(0x1ab)](_0x5157b3,_0x2cb025));}})['catch'](_0x5476bf=>{const _0x19ecf1=_0x5c3841,_0x55d23d={'GlbQY':function(_0x8a816b,_0x496c75){const _0x4d090b=a23_0x4478;return _0x181f4c[_0x4d090b(0x1d3)](_0x8a816b,_0x496c75);}};_0x181f4c['CUdOf'](_0x181f4c[_0x19ecf1(0x1c2)],_0x181f4c['QCOzz'])?(logger[_0x19ecf1(0x1c7)]('Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20'+_0x5476bf),_0x181f4c[_0x19ecf1(0x1d3)](_0x33ce2e,_0x5476bf)):(_0x414f0a['warn'](_0x19ecf1(0x214)+_0x2e217f+_0x19ecf1(0x22b)),_0x55d23d[_0x19ecf1(0x230)](_0x9e9cec,!![]));});}});},exports[a23_0x215444(0x1c9)]=awsSDK;
1
+ const a23_0x52d913=a23_0x42d3;function a23_0x42d3(_0x512833,_0x1661de){const _0x30858f=a23_0x3085();return a23_0x42d3=function(_0x42d3e4,_0x5fbf52){_0x42d3e4=_0x42d3e4-0x75;let _0x5e0cda=_0x30858f[_0x42d3e4];return _0x5e0cda;},a23_0x42d3(_0x512833,_0x1661de);}function a23_0x3085(){const _0x39fc1c=['WkWMn','error','HYfxr','snjrm','promise','aws-sdk','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','info','IBtWr','QmycU','hkSNQ','vDcsb','describeSecurityGroups','1684647iXQbRY','mkMHV','fmBmC','XTnrd','catch','eoeka','xyLLC','../config/logger','998JZGDex','20718wsJOjO','getAWSRegions','mESRk','SWxRX','mEGij','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','WDSCs','vlinz','HLtqO','DBZnq','twqPU','dhMmR','cUdmJ','pUZiE','eNEoS','QVmcq','sYLvj','80630TVLQng','Sbkwd','iMlpz','RCXnA','Shlmi','Iyfdw','KdRbS','vVyqH','oMuhd','806337kvcfbv','rLFGp','EMxUP','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','VfsnO','plXEV','kLWEC','NhpQd','aXUOq','describeRegions','eQHNj','CHVVy','znfVf','siwlx','qUJGY','dnXmT','then','IuFtN','mwpRD','180NOMcwB','RLpTN','TRBJC','PCEyS','rVkWd','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','bGvHU','WKvWo','EWfvf','isBucketPresent','1183424FPWloK','IcvHn','IuidZ','fetchSecurityGroups','SAqaA','jEDBW','hoFyt','epaDv','ZpgXu','GKxjP','ejcQg','yLNRW','gToIv','eQjPh','Bucket:\x20','zufwk','HyRMk','aJRDz','TuBoW','LJnyK','apiVersion','headBucket','region','LRddk','NKFIO','2016-11-15','dxqQB','OSUDN','UDnBi','warn','oqGqx','fetchVPCs','MsAio','Regions','EIIja','EC2','CzquR','59yDctGf','uRLDp','OLtbz','TbyLO','DMDGc','vFRGf','IMUBt','ERutS','kvXet','xaWas','nxccU','AFRtl','qHhLZ','describeVpcs','eXXVK','Bucket','60hkqIXx','MUKhM','Zhhkq','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','neOJa','VVGSz','MIGMd','ULLcz','describeSubnets','YBIhf','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','UCXqG','DHFTB','RRnkg','YkaHP','mIvkV','3vwCxxR','479260hOyZsM','QrwjF','hVBwj','ADkAo','ydRKG','dlree'];a23_0x3085=function(){return _0x39fc1c;};return a23_0x3085();}(function(_0x22486c,_0x4b2162){const _0x51b1d7=a23_0x42d3,_0x1e658f=_0x22486c();while(!![]){try{const _0x599a8b=parseInt(_0x51b1d7(0x94))/0x1*(-parseInt(_0x51b1d7(0xd0))/0x2)+-parseInt(_0x51b1d7(0xb4))/0x3*(-parseInt(_0x51b1d7(0xb5))/0x4)+parseInt(_0x51b1d7(0xa4))/0x5*(-parseInt(_0x51b1d7(0xd1))/0x6)+-parseInt(_0x51b1d7(0xeb))/0x7+-parseInt(_0x51b1d7(0x108))/0x8+parseInt(_0x51b1d7(0xc8))/0x9+-parseInt(_0x51b1d7(0xfe))/0xa*(-parseInt(_0x51b1d7(0xe2))/0xb);if(_0x599a8b===_0x4b2162)break;else _0x1e658f['push'](_0x1e658f['shift']());}catch(_0x450587){_0x1e658f['push'](_0x1e658f['shift']());}}}(a23_0x3085,0x199ee));const awsSDK=require(a23_0x52d913(0xc0)),{logger}=require(a23_0x52d913(0xcf));exports[a23_0x52d913(0x8e)]=_0xf0847f=>{const _0x2a32fb=a23_0x52d913,_0x5bae8={'MSVoM':function(_0x42a55d,_0x2e38b5){return _0x42a55d===_0x2e38b5;},'KdRbS':_0x2a32fb(0xad),'vDcsb':_0x2a32fb(0xef),'mEGij':function(_0x464146,_0x5e0c18){return _0x464146(_0x5e0c18);},'HYfxr':function(_0x251d26,_0x3fe469){return _0x251d26(_0x3fe469);},'qHhLZ':function(_0x2783ac,_0x347443){return _0x2783ac!==_0x347443;},'UCXqG':_0x2a32fb(0x9a),'neOJa':function(_0x51eefc,_0x442b28){return _0x51eefc(_0x442b28);},'LRddk':function(_0x448466,_0x45b984){return _0x448466(_0x45b984);},'vVyqH':function(_0x134591,_0x2e16c8){return _0x134591===_0x2e16c8;},'EePtr':_0x2a32fb(0x91),'MUKhM':_0x2a32fb(0x9c),'TbyLO':_0x2a32fb(0x88)};return new Promise((_0x48ae58,_0x5ced84)=>{const _0x3f344f=_0x2a32fb,_0x31c24d={'ejcQg':function(_0x2e632f,_0x546672){const _0x370177=a23_0x42d3;return _0x5bae8[_0x370177(0xa0)](_0x2e632f,_0x546672);},'AFRtl':function(_0x281a0f,_0x30de3d){const _0x2263da=a23_0x42d3;return _0x5bae8[_0x2263da(0xa8)](_0x281a0f,_0x30de3d);},'GKxjP':function(_0x1e2a09,_0x2eb67f){const _0x3e5c1d=a23_0x42d3;return _0x5bae8[_0x3e5c1d(0x86)](_0x1e2a09,_0x2eb67f);}};if(_0x5bae8[_0x3f344f(0xe9)](_0x5bae8['EePtr'],_0x5bae8[_0x3f344f(0xa5)]))_0x31c24d[_0x3f344f(0x79)](_0x13ca01,_0x18b0a4)&&_0x31c24d[_0x3f344f(0x79)](_0x30c0b9[_0x3f344f(0x90)],_0x5cb8f1)?_0x31c24d[_0x3f344f(0x9f)](_0x249b36,_0x29aab9['Regions']):_0x31c24d[_0x3f344f(0x78)](_0x5111c7,{});else{const _0x275161={};_0x275161[_0x3f344f(0x83)]=_0x5bae8[_0x3f344f(0x97)],_0x275161[_0x3f344f(0x85)]=_0xf0847f;const _0x3f2562=new awsSDK[(_0x3f344f(0x92))](_0x275161);_0x3f2562['describeVpcs']()[_0x3f344f(0xbf)]()[_0x3f344f(0xfb)](_0x583b80=>{const _0x2313ee=_0x3f344f;_0x5bae8['MSVoM'](_0x5bae8[_0x2313ee(0xe8)],_0x5bae8[_0x2313ee(0xc6)])?(_0x372bd1['error'](_0x2313ee(0xd6)+_0x424f34),_0x31c24d['AFRtl'](_0xaabc93,_0x1df0f4)):_0x5bae8[_0x2313ee(0xd5)](_0x48ae58,_0x583b80);})[_0x3f344f(0xcc)](_0x2dbe67=>{const _0x5515e5=_0x3f344f,_0x349a56={'Sbkwd':function(_0x3b7324,_0x37bb1f){const _0x2e0ce9=a23_0x42d3;return _0x5bae8[_0x2e0ce9(0xbd)](_0x3b7324,_0x37bb1f);}};if(_0x5bae8[_0x5515e5(0xa0)](_0x5bae8[_0x5515e5(0xaf)],_0x5bae8[_0x5515e5(0xaf)])){const _0x28a76b={};_0x28a76b['Bucket']=_0x3d2597,_0x2d10cc[_0x5515e5(0x84)](_0x28a76b)['promise']()[_0x5515e5(0xfb)](_0x531ba0=>{const _0xcfb041=_0x5515e5;_0x309543[_0xcfb041(0x8c)](_0xcfb041(0x7d)+_0xe9046a+_0xcfb041(0xc1)),_0x349a56[_0xcfb041(0xe3)](_0x2ccee6,!![]);})[_0x5515e5(0xcc)](()=>{const _0xacc07a=_0x5515e5;_0x21b522[_0xacc07a(0xc2)](_0xacc07a(0x7d)+_0x43ae31+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x349a56['Sbkwd'](_0x526d17,![]);});}else logger[_0x5515e5(0xbc)](_0x5515e5(0x103)+_0x2dbe67),_0x5bae8['mEGij'](_0x5ced84,_0x2dbe67);});}});},exports[a23_0x52d913(0x107)]=_0x426157=>{const _0x3c0ed3=a23_0x52d913,_0x652375={'WKvWo':function(_0x20c097,_0x1959fa){return _0x20c097(_0x1959fa);},'bGvHU':function(_0x286d75,_0x4896ee){return _0x286d75===_0x4896ee;},'gToIv':_0x3c0ed3(0x8b),'hVBwj':_0x3c0ed3(0x88),'dnXmT':function(_0x2914eb,_0x5553da){return _0x2914eb!==_0x5553da;},'HLtqO':_0x3c0ed3(0x9d),'IBtWr':function(_0x3b4c7a,_0xec38ab){return _0x3b4c7a(_0xec38ab);},'QTSPx':function(_0x26861e,_0x8e351d){return _0x26861e!==_0x8e351d;},'RRnkg':_0x3c0ed3(0xdf),'ADkAo':_0x3c0ed3(0xd3)},_0x5ac069=new awsSDK['S3']();return new Promise((_0x13069a,_0x40c744)=>{const _0x322167=_0x3c0ed3,_0x39cd94={'HyRMk':function(_0x53e8e3,_0x137c40){const _0x3797df=a23_0x42d3;return _0x652375[_0x3797df(0x105)](_0x53e8e3,_0x137c40);},'vFRGf':_0x652375[_0x322167(0xb7)],'PLxil':function(_0x1e6879,_0x30b201){const _0x4321f1=_0x322167;return _0x652375[_0x4321f1(0xfa)](_0x1e6879,_0x30b201);},'LJnyK':_0x652375[_0x322167(0xd9)],'TRBJC':function(_0x4079c4,_0x5510e3){const _0x2db29e=_0x322167;return _0x652375[_0x2db29e(0xc3)](_0x4079c4,_0x5510e3);}};if(_0x652375['QTSPx'](_0x652375[_0x322167(0xb1)],_0x652375[_0x322167(0xb8)])){const _0x2ddf9f={};_0x2ddf9f[_0x322167(0xa3)]=_0x426157,_0x5ac069[_0x322167(0x84)](_0x2ddf9f)[_0x322167(0xbf)]()[_0x322167(0xfb)](_0x367b02=>{const _0x163ed0=_0x322167,_0xba572b={'QlVqv':function(_0x27acc5,_0x4399a3){const _0x4e61ad=a23_0x42d3;return _0x652375[_0x4e61ad(0x105)](_0x27acc5,_0x4399a3);}};_0x652375[_0x163ed0(0x104)](_0x652375[_0x163ed0(0x7b)],_0x652375[_0x163ed0(0x7b)])?(logger[_0x163ed0(0x8c)](_0x163ed0(0x7d)+_0x426157+_0x163ed0(0xc1)),_0x652375['WKvWo'](_0x13069a,!![])):(_0x70d281[_0x163ed0(0x8c)](_0x163ed0(0x7d)+_0x2b518b+_0x163ed0(0xc1)),_0xba572b['QlVqv'](_0x502b70,!![]));})[_0x322167(0xcc)](()=>{const _0x302fe3=_0x322167,_0x52d6f9={'wufGs':function(_0x260e2d,_0x5655c8){const _0x248146=a23_0x42d3;return _0x39cd94[_0x248146(0x7f)](_0x260e2d,_0x5655c8);},'pUZiE':_0x39cd94[_0x302fe3(0x99)]};if(_0x39cd94['PLxil'](_0x39cd94[_0x302fe3(0x82)],_0x39cd94['LJnyK'])){const _0x295a61={'nxccU':function(_0x11b8f8,_0xc519e2){return _0x52d6f9['wufGs'](_0x11b8f8,_0xc519e2);},'vlinz':_0x52d6f9[_0x302fe3(0xde)]};return new _0x25a7fa((_0x459f84,_0x590312)=>{const _0x2fc132=_0x302fe3,_0x33e155={};_0x33e155[_0x2fc132(0x83)]=_0x295a61[_0x2fc132(0xd8)],_0x33e155[_0x2fc132(0x85)]=_0x197717;const _0x3d0b5e=new _0x29f006[(_0x2fc132(0x92))](_0x33e155);_0x3d0b5e[_0x2fc132(0xc7)]()[_0x2fc132(0xbf)]()[_0x2fc132(0xfb)](_0x550091=>{_0x295a61['nxccU'](_0x459f84,_0x550091);})[_0x2fc132(0xcc)](_0x7d788=>{const _0x1a7cba=_0x2fc132;_0x17ad03[_0x1a7cba(0xbc)](_0x1a7cba(0xa7)+_0x7d788),_0x295a61[_0x1a7cba(0x9e)](_0x590312,_0x7d788);});});}else logger[_0x302fe3(0xc2)](_0x302fe3(0x7d)+_0x426157+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x39cd94[_0x302fe3(0x100)](_0x13069a,![]);});}else{const _0x428ad2={'iMlpz':function(_0xcc7a2b,_0x18b07d){return _0x39cd94['TRBJC'](_0xcc7a2b,_0x18b07d);},'yUicS':function(_0x29948f,_0x6a5dca){return _0x39cd94['TRBJC'](_0x29948f,_0x6a5dca);}},_0xf48268={};_0xf48268[_0x322167(0x83)]=_0x39cd94['vFRGf'],_0xf48268[_0x322167(0x85)]=_0x4f3b3e;const _0x11c66d=new _0x863fec[(_0x322167(0x92))](_0xf48268);_0x11c66d[_0x322167(0xc7)]()[_0x322167(0xbf)]()['then'](_0x35c122=>{const _0x5c2332=_0x322167;_0x428ad2[_0x5c2332(0xe4)](_0xc4e540,_0x35c122);})[_0x322167(0xcc)](_0x38c595=>{const _0x199843=_0x322167;_0xdb8d97[_0x199843(0xbc)](_0x199843(0xa7)+_0x38c595),_0x428ad2['yUicS'](_0x111b8c,_0x38c595);});}});},exports['fetchSubnets']=_0x5bba57=>{const _0x15f96b=a23_0x52d913,_0x3a152a={'Dhnfj':function(_0xe049ac,_0x1c3eee){return _0xe049ac(_0x1c3eee);},'TVSjG':function(_0x418d19,_0x1168e9){return _0x418d19(_0x1168e9);},'snjrm':function(_0x4006ac,_0x3d8f2b){return _0x4006ac===_0x3d8f2b;},'yLNRW':_0x15f96b(0xf2),'dlree':_0x15f96b(0xed),'hkSNQ':_0x15f96b(0x88),'tNGNB':function(_0x43369e,_0x48f696){return _0x43369e===_0x48f696;},'PcJyE':_0x15f96b(0xb3),'aJRDz':'dBhOp','epaDv':function(_0x139a89,_0x25c0bf){return _0x139a89===_0x25c0bf;},'IuidZ':_0x15f96b(0xdc),'DmDaw':_0x15f96b(0x95)};return new Promise((_0x11bd02,_0x3dacdb)=>{const _0x4e4713=_0x15f96b,_0x3f84ff={'dxqQB':function(_0x5e1cd4,_0x55f61e){return _0x3a152a['Dhnfj'](_0x5e1cd4,_0x55f61e);},'Zhhkq':function(_0xfe4d19,_0x3503cd){return _0x3a152a['TVSjG'](_0xfe4d19,_0x3503cd);},'aXUOq':function(_0x1cc28a,_0x1b9497){const _0x491a7c=a23_0x42d3;return _0x3a152a[_0x491a7c(0xbe)](_0x1cc28a,_0x1b9497);},'TuBoW':_0x3a152a[_0x4e4713(0x7a)],'rVkWd':_0x3a152a[_0x4e4713(0xba)],'mkMHV':_0x3a152a[_0x4e4713(0xc5)],'zufwk':function(_0x3eed13,_0x11b9f5){return _0x3a152a['tNGNB'](_0x3eed13,_0x11b9f5);},'ERutS':_0x3a152a['PcJyE'],'Shlmi':_0x3a152a[_0x4e4713(0x80)]};if(_0x3a152a[_0x4e4713(0x76)](_0x3a152a[_0x4e4713(0x10a)],_0x3a152a['DmDaw'])){const _0x3359a9={'xyLLC':function(_0x9a5829,_0x594c25){const _0x8bdd93=_0x4e4713;return _0x3f84ff[_0x8bdd93(0x89)](_0x9a5829,_0x594c25);}},_0x557684=new _0x483d9f['S3']();return new _0x84c61f((_0x45a024,_0x23d49b)=>{const _0x12b951=_0x4e4713,_0x298a67={'jEDBW':function(_0x4228dd,_0x44ad0c){const _0x46158d=a23_0x42d3;return _0x3359a9[_0x46158d(0xce)](_0x4228dd,_0x44ad0c);}},_0x59cce3={};_0x59cce3[_0x12b951(0xa3)]=_0xd54c51,_0x557684[_0x12b951(0x84)](_0x59cce3)[_0x12b951(0xbf)]()[_0x12b951(0xfb)](_0x31adc8=>{const _0x5b468e=_0x12b951;_0x57dec0['warn'](_0x5b468e(0x7d)+_0x39f2ed+_0x5b468e(0xc1)),_0x3359a9[_0x5b468e(0xce)](_0x45a024,!![]);})[_0x12b951(0xcc)](()=>{const _0x19494d=_0x12b951;_0x1abe36['info'](_0x19494d(0x7d)+_0x6e8c39+_0x19494d(0xee)),_0x298a67[_0x19494d(0x10d)](_0x45a024,![]);});});}else{const _0x4e7c25={};_0x4e7c25[_0x4e4713(0x83)]=_0x3a152a[_0x4e4713(0xc5)],_0x4e7c25[_0x4e4713(0x85)]=_0x5bba57;const _0x2b0e35=new awsSDK[(_0x4e4713(0x92))](_0x4e7c25);_0x2b0e35[_0x4e4713(0xac)]()[_0x4e4713(0xbf)]()[_0x4e4713(0xfb)](_0x4ce966=>{const _0x5d49c6=_0x4e4713;_0x3f84ff[_0x5d49c6(0xf3)](_0x3f84ff[_0x5d49c6(0x81)],_0x3f84ff[_0x5d49c6(0x102)])?_0x3f84ff[_0x5d49c6(0xa6)](_0x2c3af9,_0x48fe64):_0x3f84ff[_0x5d49c6(0x89)](_0x11bd02,_0x4ce966);})[_0x4e4713(0xcc)](_0x247404=>{const _0x2e5a01=_0x4e4713,_0x2d4879={'YkaHP':function(_0x68ea11,_0xad89fb){const _0x68e0e0=a23_0x42d3;return _0x3f84ff[_0x68e0e0(0x89)](_0x68ea11,_0xad89fb);},'wGaEm':_0x3f84ff[_0x2e5a01(0xc9)]};if(_0x3f84ff[_0x2e5a01(0x7e)](_0x3f84ff[_0x2e5a01(0x9b)],_0x3f84ff[_0x2e5a01(0xe6)]))return new _0x5e15a9((_0xe743f0,_0x576a63)=>{const _0xc3d10c=_0x2e5a01,_0x2e9e31={'YLiOv':function(_0x73fc0,_0x4be66d){const _0x5d37ed=a23_0x42d3;return _0x2d4879[_0x5d37ed(0xb2)](_0x73fc0,_0x4be66d);}},_0x16cc90={};_0x16cc90['apiVersion']=_0x2d4879['wGaEm'],_0x16cc90[_0xc3d10c(0x85)]=_0x305c57;const _0x702714=new _0x373ddc[(_0xc3d10c(0x92))](_0x16cc90);_0x702714['describeVpcs']()[_0xc3d10c(0xbf)]()[_0xc3d10c(0xfb)](_0x53533d=>{_0x2e9e31['YLiOv'](_0xe743f0,_0x53533d);})[_0xc3d10c(0xcc)](_0x43273c=>{const _0x7109c7=_0xc3d10c;_0x3448ca[_0x7109c7(0xbc)](_0x7109c7(0x103)+_0x43273c),_0x2e9e31['YLiOv'](_0x576a63,_0x43273c);});});else logger[_0x2e5a01(0xbc)](_0x2e5a01(0xae)+_0x247404),_0x3f84ff[_0x2e5a01(0xa6)](_0x3dacdb,_0x247404);});}});},exports[a23_0x52d913(0x10b)]=_0x128fea=>{const _0x2f7839=a23_0x52d913,_0x1758e6={'QmycU':function(_0x5f5cdc,_0x2a9a67){return _0x5f5cdc===_0x2a9a67;},'RCXnA':'rxyNq','plXEV':function(_0x3e91d4,_0x44ca60){return _0x3e91d4(_0x44ca60);},'DMDGc':function(_0x349fbe,_0x371303){return _0x349fbe(_0x371303);},'eXXVK':function(_0x51e956,_0x3617b4){return _0x51e956===_0x3617b4;},'MIGMd':'oYuHj','dkBHo':function(_0x13003a,_0x2426a4){return _0x13003a(_0x2426a4);},'XTnrd':function(_0x14285c,_0x158bf6){return _0x14285c!==_0x158bf6;},'QrwjF':_0x2f7839(0xf7),'OLtbz':_0x2f7839(0x88)};return new Promise((_0x3ba7b1,_0x505d45)=>{const _0x21b0e1=_0x2f7839,_0x311d0b={'SWxRX':function(_0x108cc2,_0x5a2497){const _0x38de0a=a23_0x42d3;return _0x1758e6[_0x38de0a(0x98)](_0x108cc2,_0x5a2497);},'cpOcf':function(_0x3b05cc,_0x4d9fd2){return _0x1758e6['DMDGc'](_0x3b05cc,_0x4d9fd2);},'twqPU':function(_0x4dbd47,_0x15544e){const _0x45e569=a23_0x42d3;return _0x1758e6[_0x45e569(0xa2)](_0x4dbd47,_0x15544e);},'oqGqx':_0x1758e6[_0x21b0e1(0xaa)],'qUJGY':function(_0x4860f6,_0xd5fe1a){return _0x1758e6['dkBHo'](_0x4860f6,_0xd5fe1a);}};if(_0x1758e6[_0x21b0e1(0xcb)](_0x1758e6['QrwjF'],_0x1758e6[_0x21b0e1(0xb6)]))_0x338ffb[_0x21b0e1(0xbc)](_0x21b0e1(0xa7)+_0x24bfd7),_0x311d0b[_0x21b0e1(0xd4)](_0x249761,_0x4a3183);else{const _0x6d9c6a={};_0x6d9c6a['apiVersion']=_0x1758e6[_0x21b0e1(0x96)],_0x6d9c6a[_0x21b0e1(0x85)]=_0x128fea;const _0x7f60ca=new awsSDK['EC2'](_0x6d9c6a);_0x7f60ca[_0x21b0e1(0xc7)]()[_0x21b0e1(0xbf)]()[_0x21b0e1(0xfb)](_0x5da828=>{const _0xcda3c7=_0x21b0e1,_0x595af2={'IcvHn':function(_0x1575b4,_0x4ea351){return _0x311d0b['cpOcf'](_0x1575b4,_0x4ea351);}};_0x311d0b[_0xcda3c7(0xdb)](_0x311d0b[_0xcda3c7(0x8d)],_0x311d0b['oqGqx'])?_0x311d0b[_0xcda3c7(0xd4)](_0x3ba7b1,_0x5da828):_0x595af2[_0xcda3c7(0x109)](_0x2703e6,_0x23c853[_0xcda3c7(0x90)]);})[_0x21b0e1(0xcc)](_0x536b97=>{const _0x1af596=_0x21b0e1;_0x1758e6[_0x1af596(0xc4)](_0x1758e6[_0x1af596(0xe5)],_0x1758e6[_0x1af596(0xe5)])?(logger[_0x1af596(0xbc)](_0x1af596(0xa7)+_0x536b97),_0x1758e6[_0x1af596(0xf0)](_0x505d45,_0x536b97)):_0x311d0b[_0x1af596(0xf9)](_0x22eea9,_0x454c93);});}});},exports[a23_0x52d913(0xd2)]=()=>{const _0x7f4d8a=a23_0x52d913,_0x3894b6={'cUdmJ':function(_0x40fb85,_0x27efe9){return _0x40fb85(_0x27efe9);},'hoFyt':'2016-11-15','uVNBF':function(_0x2ea16b,_0x2d6df3){return _0x2ea16b!==_0x2d6df3;},'WDSCs':_0x7f4d8a(0xab),'RLpTN':'RMcsQ','ydRKG':function(_0x10d924,_0x40e44b){return _0x10d924!==_0x40e44b;},'eoeka':function(_0x3c2435,_0x21ed55){return _0x3c2435!==_0x21ed55;},'SAqaA':function(_0x10c541,_0x2cff04){return _0x10c541!==_0x2cff04;},'UPMRJ':_0x7f4d8a(0x8a),'CHVVy':_0x7f4d8a(0xec),'DHFTB':function(_0x1a49fd,_0x4ac9fe){return _0x1a49fd(_0x4ac9fe);},'CzquR':function(_0x1ddc8e,_0x3b0327){return _0x1ddc8e===_0x3b0327;},'VVGSz':_0x7f4d8a(0xfc),'EWfvf':'kdDUj','oMuhd':_0x7f4d8a(0xbb),'eQjPh':function(_0x212d43,_0x5d7b5d){return _0x212d43(_0x5d7b5d);},'kLWEC':function(_0x3ac1b0,_0x245aba){return _0x3ac1b0===_0x245aba;},'NKFIO':_0x7f4d8a(0xe1)};return new Promise((_0x4df59c,_0x49bdb7)=>{const _0xb02c2e=_0x7f4d8a,_0x4c1e17={'PCEyS':function(_0x474af0,_0x5e075d){const _0x510b17=a23_0x42d3;return _0x3894b6[_0x510b17(0xdd)](_0x474af0,_0x5e075d);},'siwlx':_0x3894b6[_0xb02c2e(0x75)],'eQHNj':function(_0x1dcce4,_0xa7aa28){const _0x135cec=_0xb02c2e;return _0x3894b6[_0x135cec(0x7c)](_0x1dcce4,_0xa7aa28);}};if(_0x3894b6[_0xb02c2e(0xf1)](_0x3894b6[_0xb02c2e(0x87)],_0x3894b6[_0xb02c2e(0x87)])){const _0x3fef68={};_0x3fef68['apiVersion']=_0x3894b6['hoFyt'];const _0x3b5ee5=new awsSDK['EC2'](_0x3fef68);_0x3b5ee5[_0xb02c2e(0xf4)]()[_0xb02c2e(0xbf)]()[_0xb02c2e(0xfb)]((_0x3fabad,_0x863abc)=>{const _0x26f0bd=_0xb02c2e,_0x571cd1={'DBZnq':function(_0x4d424e,_0x276705){const _0x4303e4=a23_0x42d3;return _0x3894b6[_0x4303e4(0xdd)](_0x4d424e,_0x276705);},'QVmcq':function(_0x1df7a9,_0x167afa){return _0x3894b6['cUdmJ'](_0x1df7a9,_0x167afa);},'mwpRD':_0x3894b6[_0x26f0bd(0x75)]};if(_0x3894b6['uVNBF'](_0x3894b6[_0x26f0bd(0xd7)],_0x3894b6[_0x26f0bd(0xff)]))_0x3894b6[_0x26f0bd(0xb9)](_0x3fabad,undefined)&&_0x3894b6[_0x26f0bd(0xcd)](_0x3fabad[_0x26f0bd(0x90)],undefined)?_0x3894b6[_0x26f0bd(0x10c)](_0x3894b6['UPMRJ'],_0x3894b6[_0x26f0bd(0xf6)])?_0x3894b6[_0x26f0bd(0xb0)](_0x4df59c,_0x3fabad[_0x26f0bd(0x90)]):(_0x49aa78[_0x26f0bd(0xc2)]('Bucket:\x20'+_0x2db117+_0x26f0bd(0xee)),_0x571cd1[_0x26f0bd(0xda)](_0x581376,![])):_0x3894b6[_0x26f0bd(0x93)](_0x3894b6[_0x26f0bd(0xa9)],_0x3894b6[_0x26f0bd(0x106)])?(_0x5909a4['error'](_0x26f0bd(0x103)+_0x199d74),_0x571cd1['DBZnq'](_0x183882,_0x1cc35d)):_0x3894b6['DHFTB'](_0x4df59c,{});else{const _0x2544f4={'fmBmC':function(_0x1f5655,_0x5a566a){const _0x1882db=_0x26f0bd;return _0x571cd1[_0x1882db(0xda)](_0x1f5655,_0x5a566a);}},_0x3ab458={};_0x3ab458[_0x26f0bd(0x83)]=_0x571cd1[_0x26f0bd(0xfd)],_0x3ab458[_0x26f0bd(0x85)]=_0x5cd145;const _0x2a184b=new _0x3cc1d6['EC2'](_0x3ab458);_0x2a184b[_0x26f0bd(0xa1)]()['promise']()[_0x26f0bd(0xfb)](_0x339837=>{const _0x858541=_0x26f0bd;_0x571cd1[_0x858541(0xe0)](_0x58cbcd,_0x339837);})[_0x26f0bd(0xcc)](_0x4b48d=>{const _0x93cb41=_0x26f0bd;_0x2189f5['error'](_0x93cb41(0x103)+_0x4b48d),_0x2544f4[_0x93cb41(0xca)](_0x86bbea,_0x4b48d);});}})[_0xb02c2e(0xcc)](_0x22727e=>{const _0x22fab1=_0xb02c2e;if(_0x3894b6[_0x22fab1(0x93)](_0x3894b6['oMuhd'],_0x3894b6[_0x22fab1(0xea)]))logger['error'](_0x22fab1(0xd6)+_0x22727e),_0x3894b6[_0x22fab1(0x7c)](_0x49bdb7,_0x22727e);else{const _0x23a05c={'ZpgXu':function(_0x280790,_0x4ed542){const _0x1d1d0c=_0x22fab1;return _0x4c1e17[_0x1d1d0c(0x101)](_0x280790,_0x4ed542);},'Iyfdw':function(_0x4ef2a9,_0x1acac2){return _0x4c1e17['PCEyS'](_0x4ef2a9,_0x1acac2);},'MsAio':_0x4c1e17[_0x22fab1(0xf8)]};return new _0xf79037((_0x250de2,_0x189f71)=>{const _0x5f17cc=_0x22fab1,_0x517780={'inoeZ':function(_0xf42a60,_0x41550a){const _0x483ff8=a23_0x42d3;return _0x23a05c[_0x483ff8(0xe7)](_0xf42a60,_0x41550a);}},_0x4746bc={};_0x4746bc[_0x5f17cc(0x83)]=_0x23a05c[_0x5f17cc(0x8f)],_0x4746bc[_0x5f17cc(0x85)]=_0x1c8acb;const _0x46ed96=new _0x254863[(_0x5f17cc(0x92))](_0x4746bc);_0x46ed96['describeSubnets']()[_0x5f17cc(0xbf)]()[_0x5f17cc(0xfb)](_0xefb97d=>{_0x517780['inoeZ'](_0x250de2,_0xefb97d);})[_0x5f17cc(0xcc)](_0x8f7e85=>{const _0xe95468=_0x5f17cc;_0x2b3391[_0xe95468(0xbc)](_0xe95468(0xae)+_0x8f7e85),_0x23a05c[_0xe95468(0x77)](_0x189f71,_0x8f7e85);});});}});}else{const _0xc7c9ca={};_0xc7c9ca['apiVersion']=_0x3894b6[_0xb02c2e(0x75)],_0xc7c9ca[_0xb02c2e(0x85)]=_0x3ad402;const _0x2c9b53=new _0x387ed4[(_0xb02c2e(0x92))](_0xc7c9ca);_0x2c9b53[_0xb02c2e(0xac)]()[_0xb02c2e(0xbf)]()['then'](_0x2bec2c=>{const _0x5ad7fa=_0xb02c2e;_0x4c1e17[_0x5ad7fa(0xf5)](_0x57d13d,_0x2bec2c);})[_0xb02c2e(0xcc)](_0x20c2be=>{const _0x4d474d=_0xb02c2e;_0x285ee5[_0x4d474d(0xbc)](_0x4d474d(0xae)+_0x20c2be),_0x4c1e17[_0x4d474d(0x101)](_0x1f93b5,_0x20c2be);});}});},exports['awsObj']=awsSDK;
@@ -1 +1 @@
1
- const a24_0x6e846e=a24_0xf9a0;(function(_0x59c9c1,_0x4ec8fa){const _0x2d2072=a24_0xf9a0,_0x1a1749=_0x59c9c1();while(!![]){try{const _0x1f57eb=-parseInt(_0x2d2072(0x16c))/0x1*(-parseInt(_0x2d2072(0x17b))/0x2)+-parseInt(_0x2d2072(0x17f))/0x3+parseInt(_0x2d2072(0x15e))/0x4+-parseInt(_0x2d2072(0x161))/0x5+-parseInt(_0x2d2072(0x159))/0x6+parseInt(_0x2d2072(0x184))/0x7*(-parseInt(_0x2d2072(0x170))/0x8)+parseInt(_0x2d2072(0x175))/0x9*(parseInt(_0x2d2072(0x157))/0xa);if(_0x1f57eb===_0x4ec8fa)break;else _0x1a1749['push'](_0x1a1749['shift']());}catch(_0x193e4b){_0x1a1749['push'](_0x1a1749['shift']());}}}(a24_0x46cb,0xb2334));const fs=require('fs'),path=require(a24_0x6e846e(0x178)),yaml=require(a24_0x6e846e(0x183)),{CLOUDFORMATION_SCHEMA}=require('js-yaml-cloudformation-schema'),Promise=require(a24_0x6e846e(0x173)),AWS=require(a24_0x6e846e(0x177))[a24_0x6e846e(0x15b)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require('../config/constants'),{logger}=require(a24_0x6e846e(0x16f));Promise[a24_0x6e846e(0x17e)](fs),addAutoscalerTags=async(_0x1e38d3,_0x5bc89c,_0x483555)=>{const _0x34fd9f=a24_0x6e846e;for(let _0x59d87f in _0x1e38d3['Resources']){_0x1e38d3[_0x34fd9f(0x17c)][_0x59d87f]['Properties']&&_0x1e38d3['Resources'][_0x59d87f][_0x34fd9f(0x172)]['Tags']&&_0x1e38d3[_0x34fd9f(0x17c)][_0x59d87f]['Properties'][_0x34fd9f(0x168)]['push'](..._0x483555);}},exports[a24_0x6e846e(0x182)]=async _0x82487e=>{const _0xf27eb6=a24_0x6e846e,_0x4186fc={'cGyju':_0xf27eb6(0x17a),'CyACg':_0xf27eb6(0x164),'PMlQH':'2010-05-15','QEpSc':'templates','oLZGC':_0xf27eb6(0x16a),'mdFnC':_0xf27eb6(0x171),'fgpoG':function(_0x5c5cfc,_0x7516cd,_0x450967,_0x186928){return _0x5c5cfc(_0x7516cd,_0x450967,_0x186928);},'AsJNR':'DELETE','oKbNq':_0xf27eb6(0x16b),'SasDO':_0xf27eb6(0x158),'fvhXN':_0xf27eb6(0x181)},_0x3fbcff=COMMON_HST_TAGS,_0x4c937c={};_0x4c937c['Key']=_0x4186fc[_0xf27eb6(0x166)],_0x4c937c[_0xf27eb6(0x15f)]=_0x82487e,_0x3fbcff['push'](_0x4c937c),_0x3fbcff[_0xf27eb6(0x165)]({'Key':_0x4186fc['CyACg'],'Value':new Date()['valueOf']()[_0xf27eb6(0x154)]()});const _0x51b990={};_0x51b990[_0xf27eb6(0x155)]=_0x4186fc[_0xf27eb6(0x15c)];const _0x2593c9=new AWS[(_0xf27eb6(0x169))](_0x51b990),_0xe08497=await fs['readFileAsync'](path['join'](__dirname,'..',_0x4186fc[_0xf27eb6(0x187)],_0x4186fc[_0xf27eb6(0x180)]),_0x4186fc['mdFnC']),_0x140d95={};_0x140d95[_0xf27eb6(0x174)]=CLOUDFORMATION_SCHEMA;const _0x429a59=yaml[_0xf27eb6(0x162)](_0xe08497,_0x140d95);_0x4186fc[_0xf27eb6(0x163)](addAutoscalerTags,_0x429a59,_0x82487e,_0x3fbcff);const _0x23fba5=JSON[_0xf27eb6(0x15a)](_0x429a59),_0x247162={};_0x247162[_0xf27eb6(0x160)]=CLUSTER_AUTOSCALER_STACK_NAME,_0x247162[_0xf27eb6(0x176)]=_0x4186fc[_0xf27eb6(0x185)],_0x247162[_0xf27eb6(0x188)]=_0x23fba5,_0x247162[_0xf27eb6(0x186)]=[{'ParameterKey':_0x4186fc['oKbNq'],'ParameterValue':_0x82487e}],_0x247162[_0xf27eb6(0x167)]=[_0x4186fc[_0xf27eb6(0x153)]],_0x247162[_0xf27eb6(0x168)]=_0x3fbcff;const _0x4c6104=_0x247162,_0x452420=await _0x2593c9['createStack'](_0x4c6104)['promise']();logger[_0xf27eb6(0x16d)](_0xf27eb6(0x15d));const _0x2ff4f7={};return _0x2ff4f7[_0xf27eb6(0x160)]=_0x452420[_0xf27eb6(0x17d)],_0x2593c9[_0xf27eb6(0x179)](_0x4186fc[_0xf27eb6(0x156)],_0x2ff4f7)[_0xf27eb6(0x16e)]();};function a24_0xf9a0(_0x1ffa07,_0x2909ec){const _0x46cb73=a24_0x46cb();return a24_0xf9a0=function(_0xf9a058,_0x34985f){_0xf9a058=_0xf9a058-0x153;let _0x2c348d=_0x46cb73[_0xf9a058];return _0x2c348d;},a24_0xf9a0(_0x1ffa07,_0x2909ec);}function a24_0x46cb(){const _0x4e907f=['createAutoscalerStack','js-yaml','10976gwMmWQ','AsJNR','Parameters','QEpSc','TemplateBody','SasDO','toString','apiVersion','fvhXN','184740exorYo','CAPABILITY_NAMED_IAM','5486190OqIMKn','stringify','awsObj','PMlQH','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','430764fLEkqk','Value','StackName','2298895hzGMSx','load','fgpoG','browserstack:creationDate','push','cGyju','Capabilities','Tags','CloudFormation','autoscaler-role-creation.yaml','ClusterName','1187171WeqDTg','debug','promise','../config/logger','24imNuUu','utf-8','Properties','bluebird','schema','1089GaQkLd','OnFailure','./AWSUtils','path','waitFor','browserstack:cluster','2RXpdgv','Resources','StackId','promisifyAll','4264380maBAjj','oLZGC','stackCreateComplete'];a24_0x46cb=function(){return _0x4e907f;};return a24_0x46cb();}
1
+ const a24_0x180941=a24_0x23a9;function a24_0x23a9(_0x49fdd4,_0x5411e8){const _0x3c6522=a24_0x3c65();return a24_0x23a9=function(_0x23a976,_0x3ab8c3){_0x23a976=_0x23a976-0x116;let _0x46fb3c=_0x3c6522[_0x23a976];return _0x46fb3c;},a24_0x23a9(_0x49fdd4,_0x5411e8);}(function(_0x514f12,_0x4902cb){const _0x47284e=a24_0x23a9,_0x3c7c87=_0x514f12();while(!![]){try{const _0x48cb21=parseInt(_0x47284e(0x149))/0x1+parseInt(_0x47284e(0x126))/0x2+-parseInt(_0x47284e(0x11d))/0x3+-parseInt(_0x47284e(0x12c))/0x4*(-parseInt(_0x47284e(0x141))/0x5)+-parseInt(_0x47284e(0x13c))/0x6+-parseInt(_0x47284e(0x13a))/0x7*(-parseInt(_0x47284e(0x12e))/0x8)+-parseInt(_0x47284e(0x12f))/0x9*(parseInt(_0x47284e(0x140))/0xa);if(_0x48cb21===_0x4902cb)break;else _0x3c7c87['push'](_0x3c7c87['shift']());}catch(_0x5d2162){_0x3c7c87['push'](_0x3c7c87['shift']());}}}(a24_0x3c65,0x97368));const fs=require('fs'),path=require(a24_0x180941(0x145)),yaml=require(a24_0x180941(0x14d)),{CLOUDFORMATION_SCHEMA}=require('js-yaml-cloudformation-schema'),Promise=require(a24_0x180941(0x14a)),AWS=require('./AWSUtils')[a24_0x180941(0x12a)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a24_0x180941(0x123)),{logger}=require(a24_0x180941(0x13e));function a24_0x3c65(){const _0x3ae917=['push','1065400sicIKe','bluebird','templates','ClusterName','js-yaml','TGGFf','neIWI','Value','debug','createStack','toString','promisifyAll','3042429UFjXLy','utf-8','load','autoscaler-role-creation.yaml','waitFor','CloudFormation','../config/constants','Tags','Key','1127872VqjZxx','DELETE','iiSEb','CAPABILITY_NAMED_IAM','awsObj','promise','356TKbknO','Parameters','3278024vWWuwe','3474jKtWyT','Capabilities','createAutoscalerStack','xPPhs','gdxNQ','TemplateBody','OnFailure','stringify','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','Properties','2010-05-15','21gUBSeo','apiVersion','1365678RmgOPK','valueOf','../config/logger','Resources','32590wLPNIo','14635EBCcMD','StackName','BFHfs','aQPlY','path','StackId','join'];a24_0x3c65=function(){return _0x3ae917;};return a24_0x3c65();}Promise[a24_0x180941(0x11c)](fs),addAutoscalerTags=async(_0x4e3579,_0x4ac3f5,_0x36c55c)=>{const _0x213d03=a24_0x180941;for(let _0x49c546 in _0x4e3579['Resources']){_0x4e3579[_0x213d03(0x13f)][_0x49c546]['Properties']&&_0x4e3579[_0x213d03(0x13f)][_0x49c546]['Properties']['Tags']&&_0x4e3579['Resources'][_0x49c546][_0x213d03(0x138)][_0x213d03(0x124)][_0x213d03(0x148)](..._0x36c55c);}},exports[a24_0x180941(0x131)]=async _0x448ac1=>{const _0x36f168=a24_0x180941,_0x4eb53c={'gdxNQ':'browserstack:cluster','WPhxh':'browserstack:creationDate','BFHfs':_0x36f168(0x139),'xPPhs':_0x36f168(0x14b),'NwOov':_0x36f168(0x120),'neIWI':_0x36f168(0x11e),'qXvUk':function(_0x560330,_0x12df79,_0x52b3df,_0x395a97){return _0x560330(_0x12df79,_0x52b3df,_0x395a97);},'iiSEb':_0x36f168(0x127),'lMiNV':_0x36f168(0x14c),'aQPlY':_0x36f168(0x129),'TGGFf':'stackCreateComplete'},_0x57a5c0=COMMON_HST_TAGS,_0x240ce8={};_0x240ce8[_0x36f168(0x125)]=_0x4eb53c[_0x36f168(0x133)],_0x240ce8[_0x36f168(0x118)]=_0x448ac1,_0x57a5c0[_0x36f168(0x148)](_0x240ce8),_0x57a5c0[_0x36f168(0x148)]({'Key':_0x4eb53c['WPhxh'],'Value':new Date()[_0x36f168(0x13d)]()[_0x36f168(0x11b)]()});const _0x21c9bc={};_0x21c9bc[_0x36f168(0x13b)]=_0x4eb53c[_0x36f168(0x143)];const _0x5d25a0=new AWS[(_0x36f168(0x122))](_0x21c9bc),_0x751213=await fs['readFileAsync'](path[_0x36f168(0x147)](__dirname,'..',_0x4eb53c[_0x36f168(0x132)],_0x4eb53c['NwOov']),_0x4eb53c[_0x36f168(0x117)]),_0xffa876={};_0xffa876['schema']=CLOUDFORMATION_SCHEMA;const _0x4a1ddf=yaml[_0x36f168(0x11f)](_0x751213,_0xffa876);_0x4eb53c['qXvUk'](addAutoscalerTags,_0x4a1ddf,_0x448ac1,_0x57a5c0);const _0x363ffa=JSON[_0x36f168(0x136)](_0x4a1ddf),_0x1dea7d={};_0x1dea7d[_0x36f168(0x142)]=CLUSTER_AUTOSCALER_STACK_NAME,_0x1dea7d[_0x36f168(0x135)]=_0x4eb53c[_0x36f168(0x128)],_0x1dea7d[_0x36f168(0x134)]=_0x363ffa,_0x1dea7d[_0x36f168(0x12d)]=[{'ParameterKey':_0x4eb53c['lMiNV'],'ParameterValue':_0x448ac1}],_0x1dea7d[_0x36f168(0x130)]=[_0x4eb53c[_0x36f168(0x144)]],_0x1dea7d[_0x36f168(0x124)]=_0x57a5c0;const _0x15a3cc=_0x1dea7d,_0x410025=await _0x5d25a0[_0x36f168(0x11a)](_0x15a3cc)['promise']();logger[_0x36f168(0x119)](_0x36f168(0x137));const _0x27484e={};return _0x27484e[_0x36f168(0x142)]=_0x410025[_0x36f168(0x146)],_0x5d25a0[_0x36f168(0x121)](_0x4eb53c[_0x36f168(0x116)],_0x27484e)[_0x36f168(0x12b)]();};