browserstack-node-sdk 1.32.4 → 1.32.5

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 (114) 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/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  37. package/src/bin/codeceptjs/command.js +1 -1
  38. package/src/bin/codeceptjs/helper.js +1 -1
  39. package/src/bin/codeceptjs/o11yHelper.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/playwright/sessionDetails.js +1 -1
  75. package/src/bin/runner.js +1 -1
  76. package/src/bin/setup.js +1 -1
  77. package/src/bin/test-runner/index.js +1 -1
  78. package/src/bin/test-runner/runTest.js +1 -1
  79. package/src/bin/test-runner/testWorker.js +1 -1
  80. package/src/bin/utils/constants.js +1 -1
  81. package/src/bin/utils/log4jsAppender.js +1 -1
  82. package/src/bin/utils/logPatcher.js +1 -1
  83. package/src/bin/utils/logReportingAPI.js +1 -1
  84. package/src/bin/vanilla-js/command.js +1 -1
  85. package/src/browserStackSdk.js +1 -1
  86. package/src/helpers/BrowserStackSetup.js +1 -1
  87. package/src/helpers/accessibility-automation/constants.js +1 -1
  88. package/src/helpers/accessibility-automation/helper.js +1 -1
  89. package/src/helpers/accessibility-automation/scripts.js +1 -1
  90. package/src/helpers/ats/constants.js +1 -1
  91. package/src/helpers/ats/helper.js +1 -1
  92. package/src/helpers/capsMapping.js +1 -1
  93. package/src/helpers/globals.js +1 -1
  94. package/src/helpers/helper.js +1 -1
  95. package/src/helpers/logger.js +1 -1
  96. package/src/helpers/patchHelpers.js +1 -1
  97. package/src/helpers/percy/Percy.js +1 -1
  98. package/src/helpers/percy/PercyBinary.js +1 -1
  99. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  100. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  101. package/src/helpers/percy/PercySDK.js +1 -1
  102. package/src/helpers/percy/index.js +1 -1
  103. package/src/helpers/percy/utils.js +1 -1
  104. package/src/helpers/performance-tester.js +1 -1
  105. package/src/helpers/request-spy.js +1 -1
  106. package/src/helpers/setKeepAlive.js +1 -1
  107. package/src/helpers/test-observability/constants.js +1 -1
  108. package/src/helpers/test-observability/error-handler.js +1 -1
  109. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  110. package/src/helpers/test-observability/sessionHandler.js +1 -1
  111. package/src/helpers/test-observability/utils.js +1 -1
  112. package/src/helpers/w3cMapping.js +1 -1
  113. package/src/hubAllocationMethods.js +1 -1
  114. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a15_0x352b4e=a15_0x4e00;(function(_0x59d731,_0x46d8bf){const _0x4099f4=a15_0x4e00,_0x238162=_0x59d731();while(!![]){try{const _0x12e5b6=-parseInt(_0x4099f4(0x1ae))/0x1+parseInt(_0x4099f4(0x18a))/0x2+parseInt(_0x4099f4(0x170))/0x3*(parseInt(_0x4099f4(0x197))/0x4)+parseInt(_0x4099f4(0x16d))/0x5+parseInt(_0x4099f4(0x172))/0x6*(-parseInt(_0x4099f4(0x183))/0x7)+parseInt(_0x4099f4(0x1af))/0x8+parseInt(_0x4099f4(0x168))/0x9*(-parseInt(_0x4099f4(0x1b6))/0xa);if(_0x12e5b6===_0x46d8bf)break;else _0x238162['push'](_0x238162['shift']());}catch(_0x97490d){_0x238162['push'](_0x238162['shift']());}}}(a15_0x5eae,0xd4cf6));const fs=require('fs'),got=require(a15_0x352b4e(0x1ac)),{table}=require(a15_0x352b4e(0x194)),{v4:uuidv4}=require(a15_0x352b4e(0x19e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x352b4e(0x188)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a15_0x4e00(_0x1fed07,_0x1118f3){const _0x5eaef8=a15_0x5eae();return a15_0x4e00=function(_0x4e0083,_0xb63392){_0x4e0083=_0x4e0083-0x162;let _0x132664=_0x5eaef8[_0x4e0083];return _0x132664;},a15_0x4e00(_0x1fed07,_0x1118f3);}exports[a15_0x352b4e(0x17f)]=a15_0x352b4e(0x1a8),exports['desc']=a15_0x352b4e(0x163),exports[a15_0x352b4e(0x178)]=function(_0x34f6e2){const _0x5f528a=a15_0x352b4e,_0x4bb775={};_0x4bb775[_0x5f528a(0x189)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x4bb775[_0x5f528a(0x1a1)]='boolean',_0x4bb775['jDqwK']=_0x5f528a(0x16f);const _0x652dae=_0x4bb775,_0x95f1bb={};_0x95f1bb[_0x5f528a(0x199)]=_0x652dae[_0x5f528a(0x189)],_0x95f1bb['type']=_0x652dae[_0x5f528a(0x1a1)];const _0x571d8c={};return _0x571d8c[_0x5f528a(0x1ad)]=_0x95f1bb,_0x34f6e2['usage'](HELP_HEADER_MESSAGE[_0x5f528a(0x1aa)][_0x5f528a(0x1b8)])[_0x5f528a(0x193)](HELP_FOOTER_MESSAGE)[_0x5f528a(0x1b0)](_0x571d8c)[_0x5f528a(0x16f)](_0x652dae[_0x5f528a(0x169)])[_0x5f528a(0x18d)];},exports[a15_0x352b4e(0x16c)]=async function(_0x1befd2){const _0x35c8a4=a15_0x352b4e,_0x16641c={'IoGNz':function(_0xb9e608){return _0xb9e608();},'hzJDg':function(_0x2ac4ee){return _0x2ac4ee();},'WiAsO':_0x35c8a4(0x16a),'HUMUY':function(_0x5dd7bf,_0x13d68e,_0x4633b7,_0x413446,_0x129d70,_0x1a90bd,_0x5a31b2){return _0x5dd7bf(_0x13d68e,_0x4633b7,_0x413446,_0x129d70,_0x1a90bd,_0x5a31b2);},'QYVzr':_0x35c8a4(0x177),'lnpsB':_0x35c8a4(0x162),'JUnzJ':function(_0x4fb81d){return _0x4fb81d();},'ZDgYC':_0x35c8a4(0x18b),'szwNX':function(_0x420a09,_0x4d4f09,_0xae3880){return _0x420a09(_0x4d4f09,_0xae3880);},'bMfTP':function(_0x4cbabc,_0x433346,_0x474f99){return _0x4cbabc(_0x433346,_0x474f99);},'NUkxO':function(_0x220937,_0x5024cc){return _0x220937!==_0x5024cc;},'kqECR':function(_0x498a14,_0x13c931){return _0x498a14!==_0x13c931;},'oVIUN':function(_0x536beb,_0x5cbbba){return _0x536beb===_0x5cbbba;},'tJAXX':'\x0aFound\x20the\x20following\x20grids:\x0a','GntDw':_0x35c8a4(0x184),'TQCfh':_0x35c8a4(0x185),'Opawg':_0x35c8a4(0x171),'OMJWv':'running','tsvKD':_0x35c8a4(0x165),'rzwtg':_0x35c8a4(0x19a),'niMFp':function(_0x244d30,_0x6470cd){return _0x244d30(_0x6470cd);},'kghUj':_0x35c8a4(0x173),'JYPRJ':_0x35c8a4(0x187),'pxYNa':function(_0x1bd792,_0xf8b61d,_0x1f7a1b,_0x1d8c78,_0xdbffa2,_0x425afc,_0x416073){return _0x1bd792(_0xf8b61d,_0x1f7a1b,_0x1d8c78,_0xdbffa2,_0x425afc,_0x416073);},'CqCWW':_0x35c8a4(0x1ab)};try{global_registry[_0x35c8a4(0x19c)]=_0x16641c[_0x35c8a4(0x1a3)](uuidv4);!fs[_0x35c8a4(0x198)](_0x16641c[_0x35c8a4(0x1a4)](getCredentialsPath))&&(console['error'](_0x16641c[_0x35c8a4(0x174)]),await _0x16641c[_0x35c8a4(0x18f)](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes['ERROR'],_0x16641c[_0x35c8a4(0x1b3)],null,_0x1befd2),process[_0x35c8a4(0x190)](0x1));const _0x45976b=JSON[_0x35c8a4(0x186)](fs['readFileSync'](_0x16641c[_0x35c8a4(0x1b7)](getCredentialsPath)));let _0x3fb54a='https://'+AG_API_URL+_0x35c8a4(0x17d);_0x1befd2[_0x35c8a4(0x195)]&&(_0x3fb54a=_0x35c8a4(0x191)+AG_API_URL+'/packages/cli/get-all-grids');const _0x21698d={'method':_0x16641c[_0x35c8a4(0x1a2)],'headers':_0x16641c[_0x35c8a4(0x16b)](getAuthHeader,_0x45976b[_0x35c8a4(0x1a0)][_0x35c8a4(0x1a9)],_0x45976b['Browserstack'][_0x35c8a4(0x167)])};global_registry['bstackUsername']=_0x45976b['Browserstack']['username'],global_registry[_0x35c8a4(0x1b4)]=_0x45976b[_0x35c8a4(0x1a0)][_0x35c8a4(0x167)],_0x16641c[_0x35c8a4(0x18f)](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes['INFO'],null,null,_0x1befd2);const _0x2242c7=await _0x16641c[_0x35c8a4(0x18c)](got,_0x3fb54a,_0x21698d);if(_0x16641c[_0x35c8a4(0x19b)](_0x2242c7,null)&&_0x16641c[_0x35c8a4(0x196)](_0x2242c7,undefined)&&_0x16641c[_0x35c8a4(0x17a)](_0x2242c7[_0x35c8a4(0x179)],0xc8)){const _0x2a98df=JSON['parse'](_0x2242c7['body']);console['log'](_0x16641c[_0x35c8a4(0x181)]);const _0x42654d=[];_0x42654d[_0x35c8a4(0x17c)]([_0x16641c[_0x35c8a4(0x176)],_0x16641c[_0x35c8a4(0x166)],_0x16641c['Opawg'],_0x16641c['OMJWv'],_0x16641c[_0x35c8a4(0x17b)],_0x16641c[_0x35c8a4(0x164)]]),_0x2a98df['forEach'](_0x37de8f=>{const _0x46b236=_0x35c8a4;_0x42654d[_0x46b236(0x17c)]([_0x37de8f['id'],_0x37de8f[_0x46b236(0x1a7)],_0x37de8f[_0x46b236(0x171)],_0x37de8f[_0x46b236(0x19f)],_0x37de8f[_0x46b236(0x165)],_0x37de8f[_0x46b236(0x1b1)]]);}),console['log'](_0x16641c[_0x35c8a4(0x16e)](table,_0x42654d)),process[_0x35c8a4(0x190)](0x0);}_0x16641c[_0x35c8a4(0x17a)](_0x2242c7[_0x35c8a4(0x179)],0x191)&&(console[_0x35c8a4(0x1b5)](_0x35c8a4(0x18e)),await _0x16641c['HUMUY'](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes[_0x35c8a4(0x1b2)],_0x16641c[_0x35c8a4(0x180)],null,_0x1befd2),process[_0x35c8a4(0x190)](0x1)),console[_0x35c8a4(0x1b5)](_0x35c8a4(0x1a6)+JSON[_0x35c8a4(0x17e)](_0x2242c7)),await _0x16641c[_0x35c8a4(0x18f)](sendInstrumentationEvent,_0x1befd2,_0x16641c[_0x35c8a4(0x182)],messageTypes[_0x35c8a4(0x1b2)],_0x16641c[_0x35c8a4(0x192)],_0x2242c7,_0x1befd2),process[_0x35c8a4(0x190)](0x1);}catch(_0xc80ed8){console[_0x35c8a4(0x1b5)](_0x35c8a4(0x19d)+_0xc80ed8['stack']),await _0x16641c[_0x35c8a4(0x1a5)](sendInstrumentationEvent,_0x1befd2,_0x16641c['QYVzr'],messageTypes[_0x35c8a4(0x1b2)],_0x16641c[_0x35c8a4(0x175)],_0xc80ed8,_0x1befd2),process[_0x35c8a4(0x190)](0x1);}};function a15_0x5eae(){const _0x1ace0a=['argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','HUMUY','exit','https://','JYPRJ','epilogue','table','allGrids','kqECR','94292iBTUHd','existsSync','description','cluster-name','NUkxO','requestId','Failed\x20to\x20list\x20resources!\x20Error:\x20','uuid','running','Browserstack','oafSV','ZDgYC','IoGNz','hzJDg','pxYNa','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','name','grids','username','list','unknown-error','got','all-grids','420751IpOdtq','10005096ILYBQi','options','clusterName','ERROR','lnpsB','bstackAccesskey','error','9050TdqqBC','JUnzJ','grid','init-not-called','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','rzwtg','queued','TQCfh','password','5247hdqGCZ','jDqwK','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','szwNX','handler','4996125qBdHRT','niMFp','help','3BhvfuG','status','8788482DBvlax','unauthorised','WiAsO','CqCWW','GntDw','list-grids-called','builder','statusCode','oVIUN','tsvKD','push','/packages/cli/get-grids','stringify','command','kghUj','tJAXX','QYVzr','7bJKXdQ','grid-id','grid-name','parse','server-error','../../utils/utilityMethods','zXjPA','2022696fmgple','GET','bMfTP'];a15_0x5eae=function(){return _0x1ace0a;};return a15_0x5eae();}
1
+ const a15_0x518d48=a15_0x10e0;function a15_0x10e0(_0x1091c1,_0x5c9c49){const _0xca429=a15_0xca42();return a15_0x10e0=function(_0x10e0af,_0x8aee17){_0x10e0af=_0x10e0af-0xd6;let _0x218f9a=_0xca429[_0x10e0af];return _0x218f9a;},a15_0x10e0(_0x1091c1,_0x5c9c49);}(function(_0x43e3e2,_0x363ede){const _0x142531=a15_0x10e0,_0x48d1e7=_0x43e3e2();while(!![]){try{const _0x52f2d1=-parseInt(_0x142531(0xd8))/0x1+-parseInt(_0x142531(0x10a))/0x2*(parseInt(_0x142531(0xee))/0x3)+parseInt(_0x142531(0x121))/0x4*(parseInt(_0x142531(0xe5))/0x5)+parseInt(_0x142531(0xdc))/0x6+parseInt(_0x142531(0x125))/0x7+parseInt(_0x142531(0xf3))/0x8+parseInt(_0x142531(0xf0))/0x9*(-parseInt(_0x142531(0xfa))/0xa);if(_0x52f2d1===_0x363ede)break;else _0x48d1e7['push'](_0x48d1e7['shift']());}catch(_0x47f59f){_0x48d1e7['push'](_0x48d1e7['shift']());}}}(a15_0xca42,0x325f6));const fs=require('fs'),got=require(a15_0x518d48(0xec)),{table}=require(a15_0x518d48(0x114)),{v4:uuidv4}=require(a15_0x518d48(0x101)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require(a15_0x518d48(0x11e)),{sendInstrumentationEvent}=require(a15_0x518d48(0xe7));function a15_0xca42(){const _0x2a1d7a=['forEach','KKYFg','grid','IHYWK','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','builder','79328txjkRb','name','help','TxOMp','911832RFnxMe','body','cluster-name','ZWQDl','aCemO','allGrids','readFileSync','server-error','boolean','5FpcSNC','grid-name','../../utils/instrumentationUtils','description','grid-id','Failed\x20to\x20list\x20resources!\x20Error:\x20','username','got','stack','247818KahvFw','list','42831kgwJfn','Iqvws','type','1640152AUMuAV','epilogue','requestId','zugPQ','\x0aFound\x20the\x20following\x20grids:\x0a','log','error','670CbQLtR','WGHaQ','EOXBt','VIiCG','uvfxq','list-grids-called','feSyL','uuid','wCKrz','AuJZV','desc','handler','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','tnlbf','options','EcgPx','2opIywc','uFAME','Browserstack','grids','push','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ERROR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','clusterName','statusCode','table','usage','CLZFe','queued','IxRUT','mANsf','password','bgFzF','unknown-error','running','../../utils/utilityMethods','hoOJr','exit','779440qmlVTi','IMCBi','/packages/cli/get-all-grids','/packages/cli/get-grids','946834PJfXuY','status','bstackAccesskey','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','FzyfX','vAuyi','nCsDS','xXoWn','GKdAW','https://','parse','INFO','init-not-called'];a15_0xca42=function(){return _0x2a1d7a;};return a15_0xca42();}exports['command']=a15_0x518d48(0x10d),exports[a15_0x518d48(0x104)]=a15_0x518d48(0xd6),exports[a15_0x518d48(0xd7)]=function(_0x196d1e){const _0x1df059=a15_0x518d48,_0x278d39={};_0x278d39[_0x1df059(0x129)]=_0x1df059(0x128),_0x278d39[_0x1df059(0x10b)]=_0x1df059(0xe4),_0x278d39[_0x1df059(0xfc)]=_0x1df059(0xda);const _0x52f2cf=_0x278d39,_0x18026d={};_0x18026d[_0x1df059(0xe8)]=_0x52f2cf[_0x1df059(0x129)],_0x18026d[_0x1df059(0xf2)]=_0x52f2cf[_0x1df059(0x10b)];const _0x2b8d58={};return _0x2b8d58['all-grids']=_0x18026d,_0x196d1e[_0x1df059(0x115)](HELP_HEADER_MESSAGE[_0x1df059(0xef)][_0x1df059(0x134)])[_0x1df059(0xf4)](HELP_FOOTER_MESSAGE)[_0x1df059(0x108)](_0x2b8d58)[_0x1df059(0xda)](_0x52f2cf[_0x1df059(0xfc)])['argv'];},exports[a15_0x518d48(0x105)]=async function(_0x5eab75){const _0x2ac79f=a15_0x518d48,_0x4de9ab={'IHYWK':function(_0x355b24){return _0x355b24();},'EcgPx':function(_0x74c2e9){return _0x74c2e9();},'TBLCB':_0x2ac79f(0x111),'KKYFg':function(_0x972d2e,_0x1bc9c9,_0x53bec5,_0xd284f6,_0x470371,_0x474493,_0x336585){return _0x972d2e(_0x1bc9c9,_0x53bec5,_0xd284f6,_0x470371,_0x474493,_0x336585);},'zugPQ':_0x2ac79f(0xff),'WGHaQ':_0x2ac79f(0x131),'GKdAW':function(_0x29ef0b){return _0x29ef0b();},'TxOMp':'GET','ZWQDl':function(_0x10a6ad,_0xff2b1,_0x1f2ee6){return _0x10a6ad(_0xff2b1,_0x1f2ee6);},'tnlbf':function(_0x34f5ff,_0x325d1c,_0x2f0f4f,_0x75cd11,_0x2a6a4c,_0x16d176,_0x5d1c34){return _0x34f5ff(_0x325d1c,_0x2f0f4f,_0x75cd11,_0x2a6a4c,_0x16d176,_0x5d1c34);},'IMCBi':function(_0x371ccf,_0x509895,_0x4f5758){return _0x371ccf(_0x509895,_0x4f5758);},'uvfxq':function(_0x20a842,_0x1c5ba4){return _0x20a842!==_0x1c5ba4;},'baPSN':function(_0x38d12b,_0x4acf81){return _0x38d12b!==_0x4acf81;},'bgFzF':function(_0x65f201,_0x4fa9d7){return _0x65f201===_0x4fa9d7;},'vAuyi':_0x2ac79f(0xf7),'mANsf':_0x2ac79f(0xe9),'aCemO':_0x2ac79f(0xe6),'IxRUT':_0x2ac79f(0x126),'Iqvws':_0x2ac79f(0x11d),'nCsDS':_0x2ac79f(0x117),'xXoWn':_0x2ac79f(0xde),'CLZFe':function(_0x18edbd,_0x423596){return _0x18edbd(_0x423596);},'hoOJr':function(_0x385104,_0x204fb8){return _0x385104===_0x204fb8;},'AuJZV':'unauthorised','VIiCG':_0x2ac79f(0xe3),'feSyL':function(_0x782b43,_0x3cd815,_0x45766a,_0x33cbd3,_0x270ae4,_0x12d666,_0x1bb92b){return _0x782b43(_0x3cd815,_0x45766a,_0x33cbd3,_0x270ae4,_0x12d666,_0x1bb92b);},'wCKrz':_0x2ac79f(0x11c)};try{global_registry[_0x2ac79f(0xf5)]=_0x4de9ab[_0x2ac79f(0x135)](uuidv4);!fs['existsSync'](_0x4de9ab[_0x2ac79f(0x109)](getCredentialsPath))&&(console[_0x2ac79f(0xf9)](_0x4de9ab['TBLCB']),await _0x4de9ab['KKYFg'](sendInstrumentationEvent,_0x5eab75,_0x4de9ab[_0x2ac79f(0xf6)],messageTypes[_0x2ac79f(0x110)],_0x4de9ab[_0x2ac79f(0xfb)],null,_0x5eab75),process[_0x2ac79f(0x120)](0x1));const _0x5d797a=JSON['parse'](fs[_0x2ac79f(0xe2)](_0x4de9ab[_0x2ac79f(0x12d)](getCredentialsPath)));let _0x519df2=_0x2ac79f(0x12e)+AG_API_URL+_0x2ac79f(0x124);_0x5eab75[_0x2ac79f(0xe1)]&&(_0x519df2=_0x2ac79f(0x12e)+AG_API_URL+_0x2ac79f(0x123));const _0x5c42fa={'method':_0x4de9ab[_0x2ac79f(0xdb)],'headers':_0x4de9ab[_0x2ac79f(0xdf)](getAuthHeader,_0x5d797a[_0x2ac79f(0x10c)][_0x2ac79f(0xeb)],_0x5d797a[_0x2ac79f(0x10c)][_0x2ac79f(0x11a)])};global_registry['bstackUsername']=_0x5d797a['Browserstack'][_0x2ac79f(0xeb)],global_registry[_0x2ac79f(0x127)]=_0x5d797a[_0x2ac79f(0x10c)][_0x2ac79f(0x11a)],_0x4de9ab[_0x2ac79f(0x107)](sendInstrumentationEvent,_0x5eab75,_0x4de9ab[_0x2ac79f(0xf6)],messageTypes[_0x2ac79f(0x130)],null,null,_0x5eab75);const _0x5575ac=await _0x4de9ab[_0x2ac79f(0x122)](got,_0x519df2,_0x5c42fa);if(_0x4de9ab[_0x2ac79f(0xfe)](_0x5575ac,null)&&_0x4de9ab['baPSN'](_0x5575ac,undefined)&&_0x4de9ab[_0x2ac79f(0x11b)](_0x5575ac['statusCode'],0xc8)){const _0x429aa4=JSON[_0x2ac79f(0x12f)](_0x5575ac[_0x2ac79f(0xdd)]);console[_0x2ac79f(0xf8)](_0x4de9ab[_0x2ac79f(0x12a)]);const _0x2c2ac9=[];_0x2c2ac9[_0x2ac79f(0x10e)]([_0x4de9ab[_0x2ac79f(0x119)],_0x4de9ab[_0x2ac79f(0xe0)],_0x4de9ab[_0x2ac79f(0x118)],_0x4de9ab[_0x2ac79f(0xf1)],_0x4de9ab[_0x2ac79f(0x12b)],_0x4de9ab[_0x2ac79f(0x12c)]]),_0x429aa4[_0x2ac79f(0x132)](_0x5e16ba=>{const _0x1aa8d6=_0x2ac79f;_0x2c2ac9['push']([_0x5e16ba['id'],_0x5e16ba[_0x1aa8d6(0xd9)],_0x5e16ba[_0x1aa8d6(0x126)],_0x5e16ba[_0x1aa8d6(0x11d)],_0x5e16ba['queued'],_0x5e16ba[_0x1aa8d6(0x112)]]);}),console['log'](_0x4de9ab[_0x2ac79f(0x116)](table,_0x2c2ac9)),process[_0x2ac79f(0x120)](0x0);}_0x4de9ab[_0x2ac79f(0x11f)](_0x5575ac[_0x2ac79f(0x113)],0x191)&&(console[_0x2ac79f(0xf9)](_0x2ac79f(0x10f)),await _0x4de9ab[_0x2ac79f(0x133)](sendInstrumentationEvent,_0x5eab75,_0x4de9ab[_0x2ac79f(0xf6)],messageTypes['ERROR'],_0x4de9ab[_0x2ac79f(0x103)],null,_0x5eab75),process['exit'](0x1)),console[_0x2ac79f(0xf9)](_0x2ac79f(0x106)+JSON['stringify'](_0x5575ac)),await _0x4de9ab[_0x2ac79f(0x133)](sendInstrumentationEvent,_0x5eab75,_0x4de9ab[_0x2ac79f(0xf6)],messageTypes[_0x2ac79f(0x110)],_0x4de9ab[_0x2ac79f(0xfd)],_0x5575ac,_0x5eab75),process[_0x2ac79f(0x120)](0x1);}catch(_0x43724c){console[_0x2ac79f(0xf9)](_0x2ac79f(0xea)+_0x43724c[_0x2ac79f(0xed)]),await _0x4de9ab[_0x2ac79f(0x100)](sendInstrumentationEvent,_0x5eab75,_0x4de9ab['zugPQ'],messageTypes[_0x2ac79f(0x110)],_0x4de9ab[_0x2ac79f(0x102)],_0x43724c,_0x5eab75),process[_0x2ac79f(0x120)](0x1);}};
@@ -1 +1 @@
1
- function a16_0x5ea5(_0x11741d,_0x39ae84){const _0x1d05e1=a16_0x1d05();return a16_0x5ea5=function(_0x5ea54f,_0x828e29){_0x5ea54f=_0x5ea54f-0x6b;let _0x460edb=_0x1d05e1[_0x5ea54f];return _0x460edb;},a16_0x5ea5(_0x11741d,_0x39ae84);}const a16_0x5941db=a16_0x5ea5;(function(_0x52f632,_0x154702){const _0x2f4443=a16_0x5ea5,_0x38d7a6=_0x52f632();while(!![]){try{const _0x566ea5=-parseInt(_0x2f4443(0x6b))/0x1+-parseInt(_0x2f4443(0x81))/0x2*(parseInt(_0x2f4443(0x6d))/0x3)+parseInt(_0x2f4443(0x7d))/0x4+parseInt(_0x2f4443(0x71))/0x5*(parseInt(_0x2f4443(0x74))/0x6)+parseInt(_0x2f4443(0x7c))/0x7+-parseInt(_0x2f4443(0x75))/0x8*(parseInt(_0x2f4443(0x70))/0x9)+parseInt(_0x2f4443(0x77))/0xa*(-parseInt(_0x2f4443(0x79))/0xb);if(_0x566ea5===_0x154702)break;else _0x38d7a6['push'](_0x38d7a6['shift']());}catch(_0x4540a4){_0x38d7a6['push'](_0x38d7a6['shift']());}}}(a16_0x1d05,0x5b0ac));function a16_0x1d05(){const _0x40dd14=['builder','457512oEhCGd','usage','demandCommand','3153850GIniwb','1998412wyJPfv','AdoIU','strict','help','202HkCtDC','QoKmU','241365mqREpx','start_commands','15591KfRetL','command','Start\x20an\x20existing\x20Automation\x20grid.','2603169DePMLj','29570wUgEMk','../config/constants','commandDir','654MPnbGX','8IhXeLX','start','40hNvpuG'];a16_0x1d05=function(){return _0x40dd14;};return a16_0x1d05();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a16_0x5941db(0x72));exports[a16_0x5941db(0x6e)]=a16_0x5941db(0x76),exports['desc']=a16_0x5941db(0x6f),exports[a16_0x5941db(0x78)]=function(_0x56c0ce){const _0x5c7adb=a16_0x5941db,_0x1a4a30={};_0x1a4a30[_0x5c7adb(0x7e)]=_0x5c7adb(0x6c),_0x1a4a30[_0x5c7adb(0x82)]=_0x5c7adb(0x80);const _0xc82ed0=_0x1a4a30;return _0x56c0ce[_0x5c7adb(0x7a)](HELP_HEADER_MESSAGE['start'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5c7adb(0x73)](_0xc82ed0[_0x5c7adb(0x7e)])[_0x5c7adb(0x7b)]()['recommendCommands']()[_0x5c7adb(0x7f)]()[_0x5c7adb(0x80)](_0xc82ed0[_0x5c7adb(0x82)]);},exports['handler']=function(_0x299e1c){};
1
+ const a16_0x49ce54=a16_0x3892;(function(_0xb504e5,_0x3e217c){const _0x1ed760=a16_0x3892,_0x16ddf2=_0xb504e5();while(!![]){try{const _0x3ff5c0=parseInt(_0x1ed760(0x102))/0x1*(-parseInt(_0x1ed760(0xfb))/0x2)+parseInt(_0x1ed760(0xff))/0x3+parseInt(_0x1ed760(0xfa))/0x4+-parseInt(_0x1ed760(0x103))/0x5+-parseInt(_0x1ed760(0x108))/0x6*(-parseInt(_0x1ed760(0x107))/0x7)+-parseInt(_0x1ed760(0xf7))/0x8+-parseInt(_0x1ed760(0x104))/0x9*(parseInt(_0x1ed760(0x106))/0xa);if(_0x3ff5c0===_0x3e217c)break;else _0x16ddf2['push'](_0x16ddf2['shift']());}catch(_0x598d3c){_0x16ddf2['push'](_0x16ddf2['shift']());}}}(a16_0x1771,0xf06d0));function a16_0x1771(){const _0x234fbd=['726435UOzqdD','epilogue','40gvYzUS','214599nUJZUP','378ivzumC','handler','start','12978488AuoMnJ','start_commands','demandCommand','3532012tvkTmK','2631022gapCWR','strict','usage','commandDir','4803240BKcBna','builder','TOpDP','1TFQSCJ','850040HIvHam'];a16_0x1771=function(){return _0x234fbd;};return a16_0x1771();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a16_0x3892(_0x1a8961,_0x2701c0){const _0x17713f=a16_0x1771();return a16_0x3892=function(_0x3892ae,_0x1c4552){_0x3892ae=_0x3892ae-0xf5;let _0x5e6de1=_0x17713f[_0x3892ae];return _0x5e6de1;},a16_0x3892(_0x1a8961,_0x2701c0);}exports['command']='start',exports['desc']='Start\x20an\x20existing\x20Automation\x20grid.',exports[a16_0x49ce54(0x100)]=function(_0x49f971){const _0x396b3b=a16_0x49ce54,_0x4e033e={};_0x4e033e['kjnEn']=_0x396b3b(0xf8),_0x4e033e[_0x396b3b(0x101)]='help';const _0xf52059=_0x4e033e;return _0x49f971[_0x396b3b(0xfd)](HELP_HEADER_MESSAGE[_0x396b3b(0xf6)])[_0x396b3b(0x105)](HELP_FOOTER_MESSAGE)[_0x396b3b(0xfe)](_0xf52059['kjnEn'])[_0x396b3b(0xf9)]()['recommendCommands']()[_0x396b3b(0xfc)]()['help'](_0xf52059['TOpDP']);},exports[a16_0x49ce54(0xf5)]=function(_0x512c33){};
@@ -1 +1 @@
1
- function a17_0x4b43(_0x4e3763,_0x3566ae){const _0x48476c=a17_0x4847();return a17_0x4b43=function(_0x4b43ed,_0x2402ad){_0x4b43ed=_0x4b43ed-0x157;let _0x5dfcf1=_0x48476c[_0x4b43ed];return _0x5dfcf1;},a17_0x4b43(_0x4e3763,_0x3566ae);}const a17_0x4b42ea=a17_0x4b43;function a17_0x4847(){const _0x320468=['Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','eeXSl','clusterRegion','JAjqu','clusterName','MOaHZ','479748pQYHCr','../../utils/instrumentationUtils','WhRFG','gridId','145vahbpI','grid-id','reconnecting-websocket','bstackUsername','configureIfNotConfigured','INFO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ztDyb','12624DtDrlG','50GlDtPR','stringify','desc','1868988zYEGwz','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','command','type','TpGuI','GCkgZ','help','start','statusCode','WebSocket','options','handler','server-error','name','error','../../cloudproviders/utils','VZAKR','xvFps','niQFZ','99432UKxFjw','exit','hEGyO','region','body','invalid-grid-id','1701813ILCxOy','../../utils/webSocketUtils','XGTjI','2441889VMbkka','Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.','Adding\x20Websocket\x20listeners','start-grid-called','readFileSync','831234mGkaLS','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','PBRWX','Browserstack','info','akpeM','hDTMX','password','addListeners','init-not-called','debug','Start\x20an\x20existing\x20Automation\x20grid.','parse','8DZOvSW','49DIiypg','ERROR','cloudProvider','string','user','connectionTimeout','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','Grid\x20started','username','unauthorised','epilogue','ixkDw','<UsernamePlaceholder>','fEXkL'];a17_0x4847=function(){return _0x320468;};return a17_0x4847();}(function(_0x31bc6a,_0x38205a){const _0xe3d236=a17_0x4b43,_0x47435d=_0x31bc6a();while(!![]){try{const _0xc2badf=parseInt(_0xe3d236(0x188))/0x1+parseInt(_0xe3d236(0x163))/0x2+parseInt(_0xe3d236(0x180))/0x3+-parseInt(_0xe3d236(0x17a))/0x4*(-parseInt(_0xe3d236(0x15b))/0x5)+-parseInt(_0xe3d236(0x157))/0x6*(parseInt(_0xe3d236(0x196))/0x7)+-parseInt(_0xe3d236(0x195))/0x8*(parseInt(_0xe3d236(0x183))/0x9)+-parseInt(_0xe3d236(0x164))/0xa*(parseInt(_0xe3d236(0x167))/0xb);if(_0xc2badf===_0x38205a)break;else _0x47435d['push'](_0x47435d['shift']());}catch(_0x3c9051){_0x47435d['push'](_0x47435d['shift']());}}}(a17_0x4847,0x6cacc));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a17_0x4b42ea(0x15d)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a17_0x4b42ea(0x158)),webSocketUtils=require(a17_0x4b42ea(0x181)),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require(a17_0x4b42ea(0x176));exports[a17_0x4b42ea(0x169)]='grid',exports[a17_0x4b42ea(0x166)]=a17_0x4b42ea(0x193),exports['builder']=function(_0x2e2969){const _0x2ac76f=a17_0x4b42ea,_0x5af838={};_0x5af838[_0x2ac76f(0x18e)]=_0x2ac76f(0x184),_0x5af838['VZAKR']=_0x2ac76f(0x199),_0x5af838['ztDyb']=_0x2ac76f(0x16d);const _0x3824a1=_0x5af838,_0x25dd1d={};_0x25dd1d['description']=_0x3824a1[_0x2ac76f(0x18e)],_0x25dd1d[_0x2ac76f(0x16a)]=_0x3824a1[_0x2ac76f(0x177)];const _0x2cf2f9={};return _0x2cf2f9[_0x2ac76f(0x15c)]=_0x25dd1d,_0x2e2969['usage'](HELP_HEADER_MESSAGE[_0x2ac76f(0x16e)])[_0x2ac76f(0x1a0)](HELP_FOOTER_MESSAGE)[_0x2ac76f(0x171)](_0x2cf2f9)[_0x2ac76f(0x16d)](_0x3824a1[_0x2ac76f(0x162)])['argv'];},exports[a17_0x4b42ea(0x172)]=async function(_0x4306f7){const _0x78a84f=a17_0x4b42ea,_0x2922ad={'MOaHZ':_0x78a84f(0x19c),'akpeM':function(_0x4371d1){return _0x4371d1();},'ixkDw':_0x78a84f(0x161),'hEGyO':function(_0x5d3648,_0x1a8c80,_0x36fe90,_0x187dde,_0x254fce,_0x15fbb8,_0x437795){return _0x5d3648(_0x1a8c80,_0x36fe90,_0x187dde,_0x254fce,_0x15fbb8,_0x437795);},'PBRWX':_0x78a84f(0x186),'niQFZ':_0x78a84f(0x191),'fEXkL':_0x78a84f(0x1a2),'kGSoW':'<PasswordPlaceholder>','pzwfC':_0x78a84f(0x185),'XGTjI':function(_0x15a61b,_0x475efa,_0x220c32,_0x222420){return _0x15a61b(_0x475efa,_0x220c32,_0x222420);},'GCkgZ':function(_0x1e695c,_0x225aca,_0x1eb1af,_0x1d528d,_0x295a00,_0x4dba32){return _0x1e695c(_0x225aca,_0x1eb1af,_0x1d528d,_0x295a00,_0x4dba32);},'Eenqu':function(_0xf88697,_0x1fe36c){return _0xf88697(_0x1fe36c);},'jdtAY':function(_0x9cd5c,_0x156bab,_0x57e31f){return _0x9cd5c(_0x156bab,_0x57e31f);},'JAjqu':_0x78a84f(0x19d),'WhRFG':function(_0x3f2818,_0x13e012){return _0x3f2818===_0x13e012;},'xvFps':function(_0x557d47,_0x318893,_0x163c4b,_0x2590a4,_0x5662e4,_0x2c17c3,_0x4413cf){return _0x557d47(_0x318893,_0x163c4b,_0x2590a4,_0x5662e4,_0x2c17c3,_0x4413cf);},'eeXSl':_0x78a84f(0x19f),'rJEhB':function(_0x34e9bb,_0x1fd9f6){return _0x34e9bb===_0x1fd9f6;},'WJqOA':_0x78a84f(0x17f),'TpGuI':_0x78a84f(0x173)};let _0x58cc3b;try{!_0x4306f7[_0x78a84f(0x15a)]&&(logger[_0x78a84f(0x175)](_0x2922ad[_0x78a84f(0x1a9)]),process[_0x78a84f(0x17b)](0x1));!fs['existsSync'](_0x2922ad[_0x78a84f(0x18d)](getCredentialsPath))&&(logger[_0x78a84f(0x175)](_0x2922ad[_0x78a84f(0x1a1)]),await _0x2922ad['hEGyO'](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes[_0x78a84f(0x197)],_0x2922ad[_0x78a84f(0x179)],null,_0x4306f7),process[_0x78a84f(0x17b)](0x1));logger[_0x78a84f(0x18c)]('Starting\x20grid\x20'+_0x4306f7[_0x78a84f(0x15a)]),await _0x2922ad[_0x78a84f(0x17c)](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes[_0x78a84f(0x160)],null,null,_0x4306f7);const _0x151634=JSON[_0x78a84f(0x194)](fs[_0x78a84f(0x187)](_0x2922ad['akpeM'](getCredentialsPath)));global_registry[_0x78a84f(0x15e)]=_0x151634[_0x78a84f(0x18b)][_0x78a84f(0x19e)],global_registry['bstackAccesskey']=_0x151634[_0x78a84f(0x18b)]['password'];const _0x5276a6=WS_ENDPOINT['replace'](_0x2922ad[_0x78a84f(0x1a3)],_0x151634[_0x78a84f(0x18b)][_0x78a84f(0x19e)])['replace'](_0x2922ad['kGSoW'],_0x151634[_0x78a84f(0x18b)][_0x78a84f(0x18f)]),_0xd5b106={};_0xd5b106[_0x78a84f(0x170)]=ws,_0xd5b106[_0x78a84f(0x19b)]=0x36ee80,_0x58cc3b=new ReconnectingWebSocket(_0x5276a6,[],_0xd5b106),logger[_0x78a84f(0x192)](_0x2922ad['pzwfC']),webSocketUtils[_0x78a84f(0x190)](_0x58cc3b,_0x4306f7[_0x78a84f(0x19a)],_0x4306f7[_0x78a84f(0x18f)]);const [_0x3d7cbb,_0xc54b58]=await _0x2922ad[_0x78a84f(0x182)](getGridDetails,_0x151634['Browserstack'][_0x78a84f(0x19e)],_0x151634['Browserstack'][_0x78a84f(0x18f)],_0x4306f7[_0x78a84f(0x15a)]);if(_0xc54b58){const _0x2d47a4=_0xc54b58[_0x78a84f(0x18c)];global_registry[_0x78a84f(0x198)]=_0x2d47a4[_0x78a84f(0x198)],global_registry[_0x78a84f(0x1a6)]=_0x2d47a4[_0x78a84f(0x17d)],global_registry[_0x78a84f(0x1a8)]=_0x2d47a4[_0x78a84f(0x1a8)];const _0x5833df=_0x2922ad[_0x78a84f(0x16c)](getCloudProviderObject,_0x2d47a4[_0x78a84f(0x198)],_0x2d47a4[_0x78a84f(0x1a8)],_0x2d47a4[_0x78a84f(0x174)],_0x58cc3b,webSocketUtils),_0x5d6ffb=_0x151634[_0x78a84f(0x198)]||{};await _0x5833df['fetchLocalCreds'](_0x5d6ffb),_0x5833df[_0x78a84f(0x15f)]();const [_0xcfed60,_0x2a19f5,_0x1a83c9,_0x48c57d,_0x17f590,_0x79cd8a]=await _0x2922ad['Eenqu'](createK8sClient,_0x5833df);await _0x2922ad['jdtAY'](scaleUpHubDeployment,_0x2a19f5,_0x2d47a4['name']),logger['info'](_0x2922ad[_0x78a84f(0x1a7)]),process['exit'](0x0);}_0x2922ad[_0x78a84f(0x159)](_0x3d7cbb[_0x78a84f(0x16f)],0x191)&&(logger[_0x78a84f(0x175)](_0x78a84f(0x1a4)),await _0x2922ad[_0x78a84f(0x178)](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes[_0x78a84f(0x197)],_0x2922ad[_0x78a84f(0x1a5)],null,_0x4306f7),process[_0x78a84f(0x17b)](0x1)),_0x2922ad['rJEhB'](_0x3d7cbb[_0x78a84f(0x16f)],0x190)&&(logger[_0x78a84f(0x175)](JSON[_0x78a84f(0x194)](_0x3d7cbb[_0x78a84f(0x17e)])['message']),await _0x2922ad['xvFps'](sendInstrumentationEvent,_0x4306f7,_0x2922ad['PBRWX'],messageTypes['ERROR'],_0x2922ad['WJqOA'],null,_0x4306f7),process[_0x78a84f(0x17b)](0x1)),logger[_0x78a84f(0x175)](_0x78a84f(0x189)+JSON[_0x78a84f(0x165)](_0x3d7cbb)),await _0x2922ad[_0x78a84f(0x17c)](sendInstrumentationEvent,_0x4306f7,_0x2922ad[_0x78a84f(0x18a)],messageTypes['ERROR'],_0x2922ad[_0x78a84f(0x16b)],_0x3d7cbb,_0x4306f7),process['exit'](0x1);}catch(_0x202fe9){const _0x16d26d=_0x78a84f(0x168)+_0x202fe9+'\x20\x0a'+JSON[_0x78a84f(0x165)](_0x202fe9['stack'])+'\x20';logger[_0x78a84f(0x175)](_0x16d26d),process[_0x78a84f(0x17b)](0x1);}};
1
+ function a17_0x3356(_0x4db5e9,_0x42f78a){const _0x46682e=a17_0x4668();return a17_0x3356=function(_0x3356ec,_0xe6c3f3){_0x3356ec=_0x3356ec-0x104;let _0x1f708c=_0x46682e[_0x3356ec];return _0x1f708c;},a17_0x3356(_0x4db5e9,_0x42f78a);}function a17_0x4668(){const _0x24b7d8=['info','16956dCtSJM','cZnGE','stringify','WebSocket','usage','message','existsSync','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','yMOAV','connectionTimeout','Jorip','ERROR','options','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20start','805152BxmISK','username','39196330AvKVfu','fetchLocalCreds','password','cloudProvider','statusCode','14216nAzeHF','start-grid-called','replace','name','Browserstack','IinlI','configureIfNotConfigured','clusterName','start','description','PjyWo','uUCOI','6606tPPrOA','bZKOi','926346pqdXnB','wEtFF','../../utils/createk8sClient','SCJwo','init-not-called','help','handler','1057wSBYDc','clusterRegion','region','gridId','2363145ADJHNV','APXgS','kdFRU','EgaUg','../../config/logger','<PasswordPlaceholder>','addListeners','body','grid-id','error','NlXYS','nOOJH','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','readFileSync','../../config/constants','INFO','server-error','exit','<UsernamePlaceholder>','50556aNpYxR','Unable\x20to\x20start\x20the\x20Grid!\x20Error:\x20','type','VcUoC','Start\x20an\x20existing\x20Automation\x20grid.','745ubfTxi','FwQAV','bstackAccesskey','Starting\x20grid\x20','debug','../../utils/utilityMethods','xcfmp','builder'];a17_0x4668=function(){return _0x24b7d8;};return a17_0x4668();}const a17_0x5b2eeb=a17_0x3356;(function(_0x192119,_0x2f8a98){const _0x18ae98=a17_0x3356,_0x30954e=_0x192119();while(!![]){try{const _0x130737=-parseInt(_0x18ae98(0x135))/0x1+parseInt(_0x18ae98(0x120))/0x2+-parseInt(_0x18ae98(0x140))/0x3+-parseInt(_0x18ae98(0x112))/0x4*(-parseInt(_0x18ae98(0x109))/0x5)+-parseInt(_0x18ae98(0x104))/0x6*(parseInt(_0x18ae98(0x13c))/0x7)+parseInt(_0x18ae98(0x127))/0x8*(-parseInt(_0x18ae98(0x133))/0x9)+parseInt(_0x18ae98(0x122))/0xa;if(_0x130737===_0x2f8a98)break;else _0x30954e['push'](_0x30954e['shift']());}catch(_0x24591f){_0x30954e['push'](_0x30954e['shift']());}}}(a17_0x4668,0xa1e4b));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require(a17_0x5b2eeb(0x14f)),{logger}=require(a17_0x5b2eeb(0x144)),{getCredentialsPath,getGridDetails}=require(a17_0x5b2eeb(0x10e)),{scaleUpHubDeployment}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require(a17_0x5b2eeb(0x137)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports['command']='grid',exports['desc']=a17_0x5b2eeb(0x108),exports[a17_0x5b2eeb(0x110)]=function(_0x49d4e6){const _0x1996be=a17_0x5b2eeb,_0x424205={};_0x424205['QzmxE']='Pass\x20the\x20ID\x20of\x20the\x20existing\x20Automation\x20grid\x20you\x20want\x20to\x20start.',_0x424205[_0x1996be(0x14b)]='string',_0x424205[_0x1996be(0x12c)]='help';const _0x2022cb=_0x424205,_0x49d65d={};_0x49d65d[_0x1996be(0x130)]=_0x2022cb['QzmxE'],_0x49d65d[_0x1996be(0x106)]=_0x2022cb['nOOJH'];const _0x312c4e={};return _0x312c4e[_0x1996be(0x148)]=_0x49d65d,_0x49d4e6[_0x1996be(0x116)](HELP_HEADER_MESSAGE[_0x1996be(0x12f)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1996be(0x11e)](_0x312c4e)[_0x1996be(0x13a)](_0x2022cb[_0x1996be(0x12c)])['argv'];},exports[a17_0x5b2eeb(0x13b)]=async function(_0x539545){const _0x535840=a17_0x5b2eeb,_0x578f1e={'EgaUg':_0x535840(0x11f),'NlXYS':function(_0x211617){return _0x211617();},'PjyWo':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EZyyo':function(_0x5e90fe,_0xc15369,_0x19a309,_0x4064e8,_0x45e7f4,_0xc99bf6,_0x493478){return _0x5e90fe(_0xc15369,_0x19a309,_0x4064e8,_0x45e7f4,_0xc99bf6,_0x493478);},'VcUoC':_0x535840(0x128),'xcfmp':_0x535840(0x139),'SCJwo':function(_0x591f9a,_0x5b06f4,_0x4d571c,_0x423b8e,_0x3e3c67,_0x19712c,_0xed474d){return _0x591f9a(_0x5b06f4,_0x4d571c,_0x423b8e,_0x3e3c67,_0x19712c,_0xed474d);},'uUCOI':_0x535840(0x153),'Jorip':_0x535840(0x145),'qFkhV':'Adding\x20Websocket\x20listeners','qnouX':function(_0x1ceb2d,_0x4f3c6e,_0x576622,_0x34e844){return _0x1ceb2d(_0x4f3c6e,_0x576622,_0x34e844);},'CIYdA':function(_0x5176e4,_0x2266ab,_0x5e20b6,_0x2e6869,_0xc205c6,_0x5b64f1){return _0x5176e4(_0x2266ab,_0x5e20b6,_0x2e6869,_0xc205c6,_0x5b64f1);},'cZnGE':function(_0x5ef225,_0x1c8085){return _0x5ef225(_0x1c8085);},'wEtFF':function(_0x5c8a69,_0x31c700,_0x45cac6){return _0x5c8a69(_0x31c700,_0x45cac6);},'FHYgM':'Grid\x20started','kdFRU':function(_0x5cc861,_0x5cecf0){return _0x5cc861===_0x5cecf0;},'BRUxh':function(_0x3f2f25,_0xbc9542,_0x18b0a5,_0x5c437f,_0x4b7f71,_0x52ad7f,_0x1dcc4b){return _0x3f2f25(_0xbc9542,_0x18b0a5,_0x5c437f,_0x4b7f71,_0x52ad7f,_0x1dcc4b);},'OACFy':'unauthorised','FwQAV':function(_0x1748f0,_0x2362ed){return _0x1748f0===_0x2362ed;},'APXgS':function(_0x4a15e1,_0x97eb37,_0x721603,_0x47bfbc,_0x5dabbb,_0x578666,_0x269b1e){return _0x4a15e1(_0x97eb37,_0x721603,_0x47bfbc,_0x5dabbb,_0x578666,_0x269b1e);},'yMOAV':'invalid-grid-id','Ksrql':function(_0x2f6ac5,_0x348e75,_0x4f53e5,_0x478159,_0x1ad864,_0xbb6d7c,_0x147260){return _0x2f6ac5(_0x348e75,_0x4f53e5,_0x478159,_0x1ad864,_0xbb6d7c,_0x147260);},'bZKOi':_0x535840(0x151)};let _0x1ff111;try{!_0x539545[_0x535840(0x13f)]&&(logger[_0x535840(0x149)](_0x578f1e[_0x535840(0x143)]),process[_0x535840(0x152)](0x1));!fs[_0x535840(0x118)](_0x578f1e['NlXYS'](getCredentialsPath))&&(logger[_0x535840(0x149)](_0x578f1e[_0x535840(0x131)]),await _0x578f1e['EZyyo'](sendInstrumentationEvent,_0x539545,_0x578f1e[_0x535840(0x107)],messageTypes[_0x535840(0x11d)],_0x578f1e[_0x535840(0x10f)],null,_0x539545),process[_0x535840(0x152)](0x1));logger[_0x535840(0x111)](_0x535840(0x10c)+_0x539545[_0x535840(0x13f)]),await _0x578f1e[_0x535840(0x138)](sendInstrumentationEvent,_0x539545,_0x578f1e['VcUoC'],messageTypes[_0x535840(0x150)],null,null,_0x539545);const _0x3d721c=JSON[_0x535840(0x14c)](fs[_0x535840(0x14e)](_0x578f1e[_0x535840(0x14a)](getCredentialsPath)));global_registry['bstackUsername']=_0x3d721c[_0x535840(0x12b)][_0x535840(0x121)],global_registry[_0x535840(0x10b)]=_0x3d721c[_0x535840(0x12b)][_0x535840(0x124)];const _0x390377=WS_ENDPOINT[_0x535840(0x129)](_0x578f1e[_0x535840(0x132)],_0x3d721c[_0x535840(0x12b)][_0x535840(0x121)])[_0x535840(0x129)](_0x578f1e[_0x535840(0x11c)],_0x3d721c['Browserstack']['password']),_0x36984c={};_0x36984c[_0x535840(0x115)]=ws,_0x36984c[_0x535840(0x11b)]=0x36ee80,_0x1ff111=new ReconnectingWebSocket(_0x390377,[],_0x36984c),logger[_0x535840(0x10d)](_0x578f1e['qFkhV']),webSocketUtils[_0x535840(0x146)](_0x1ff111,_0x539545['user'],_0x539545[_0x535840(0x124)]);const [_0x58a0cc,_0x4b3143]=await _0x578f1e['qnouX'](getGridDetails,_0x3d721c[_0x535840(0x12b)][_0x535840(0x121)],_0x3d721c[_0x535840(0x12b)][_0x535840(0x124)],_0x539545[_0x535840(0x13f)]);if(_0x4b3143){const _0x28a09c=_0x4b3143['info'];global_registry[_0x535840(0x125)]=_0x28a09c['cloudProvider'],global_registry[_0x535840(0x13d)]=_0x28a09c[_0x535840(0x13e)],global_registry[_0x535840(0x12e)]=_0x28a09c[_0x535840(0x12e)];const _0x53719d=_0x578f1e['CIYdA'](getCloudProviderObject,_0x28a09c['cloudProvider'],_0x28a09c[_0x535840(0x12e)],_0x28a09c[_0x535840(0x12a)],_0x1ff111,webSocketUtils),_0x2bc666=_0x3d721c[_0x535840(0x125)]||{};await _0x53719d[_0x535840(0x123)](_0x2bc666),_0x53719d[_0x535840(0x12d)]();const [_0xa3cc4,_0x4fe024,_0x4239c2,_0x296297,_0x3e47bd,_0x34bece]=await _0x578f1e[_0x535840(0x113)](createK8sClient,_0x53719d);await _0x578f1e[_0x535840(0x136)](scaleUpHubDeployment,_0x4fe024,_0x28a09c[_0x535840(0x12a)]),logger[_0x535840(0x111)](_0x578f1e['FHYgM']),process[_0x535840(0x152)](0x0);}_0x578f1e[_0x535840(0x142)](_0x58a0cc['statusCode'],0x191)&&(logger[_0x535840(0x149)](_0x535840(0x119)),await _0x578f1e['BRUxh'](sendInstrumentationEvent,_0x539545,_0x578f1e[_0x535840(0x107)],messageTypes[_0x535840(0x11d)],_0x578f1e['OACFy'],null,_0x539545),process['exit'](0x1)),_0x578f1e[_0x535840(0x10a)](_0x58a0cc[_0x535840(0x126)],0x190)&&(logger[_0x535840(0x149)](JSON['parse'](_0x58a0cc[_0x535840(0x147)])[_0x535840(0x117)]),await _0x578f1e[_0x535840(0x141)](sendInstrumentationEvent,_0x539545,_0x578f1e['VcUoC'],messageTypes[_0x535840(0x11d)],_0x578f1e[_0x535840(0x11a)],null,_0x539545),process[_0x535840(0x152)](0x1)),logger[_0x535840(0x149)](_0x535840(0x14d)+JSON['stringify'](_0x58a0cc)),await _0x578f1e['Ksrql'](sendInstrumentationEvent,_0x539545,_0x578f1e[_0x535840(0x107)],messageTypes[_0x535840(0x11d)],_0x578f1e[_0x535840(0x134)],_0x58a0cc,_0x539545),process[_0x535840(0x152)](0x1);}catch(_0x18379f){const _0x344b87=_0x535840(0x105)+_0x18379f+'\x20\x0a'+JSON[_0x535840(0x114)](_0x18379f['stack'])+'\x20';logger[_0x535840(0x149)](_0x344b87),process[_0x535840(0x152)](0x1);}};
@@ -1 +1 @@
1
- const a18_0x494944=a18_0x104e;(function(_0x345297,_0x4e1094){const _0x4de0b8=a18_0x104e,_0x1a6c4c=_0x345297();while(!![]){try{const _0x54c850=-parseInt(_0x4de0b8(0xfd))/0x1*(-parseInt(_0x4de0b8(0x103))/0x2)+-parseInt(_0x4de0b8(0x107))/0x3*(-parseInt(_0x4de0b8(0xfe))/0x4)+parseInt(_0x4de0b8(0xf9))/0x5+parseInt(_0x4de0b8(0x104))/0x6*(parseInt(_0x4de0b8(0xfc))/0x7)+-parseInt(_0x4de0b8(0xfb))/0x8+-parseInt(_0x4de0b8(0x10b))/0x9+parseInt(_0x4de0b8(0x102))/0xa*(-parseInt(_0x4de0b8(0x110))/0xb);if(_0x54c850===_0x4e1094)break;else _0x1a6c4c['push'](_0x1a6c4c['shift']());}catch(_0xbe979c){_0x1a6c4c['push'](_0x1a6c4c['shift']());}}}(a18_0xca46,0xb85cf));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a18_0x494944(0x106));function a18_0x104e(_0x23935a,_0x1854a6){const _0xca4669=a18_0xca46();return a18_0x104e=function(_0x104e38,_0x55b5b9){_0x104e38=_0x104e38-0xf7;let _0x2a67e1=_0xca4669[_0x104e38];return _0x2a67e1;},a18_0x104e(_0x23935a,_0x1854a6);}function a18_0xca46(){const _0x36b5c3=['23487BbOAsD','epilogue','WuGaA','commandDir','2977641pofaVC','recommendCommands','handler','demandCommand','JsDDX','278069NkTGIu','Stop\x20a\x20running\x20Automation\x20grid.','stop','6397145EVnIPK','help','6739488qOVsVn','8713649TqizMt','124719HEcPwP','356biFWmJ','usage','builder','stop_commands','610YPHHFA','4jYLwnO','6NaQEOX','command','../config/constants'];a18_0xca46=function(){return _0x36b5c3;};return a18_0xca46();}exports[a18_0x494944(0x105)]=a18_0x494944(0xf8),exports['desc']=a18_0x494944(0xf7),exports[a18_0x494944(0x100)]=function(_0x38f914){const _0x367b5b=a18_0x494944,_0x575b6f={};_0x575b6f[_0x367b5b(0x10f)]=_0x367b5b(0x101),_0x575b6f[_0x367b5b(0x109)]='help';const _0x52b0cb=_0x575b6f;return _0x38f914[_0x367b5b(0xff)](HELP_HEADER_MESSAGE['stop'])[_0x367b5b(0x108)](HELP_FOOTER_MESSAGE)[_0x367b5b(0x10a)](_0x52b0cb[_0x367b5b(0x10f)])[_0x367b5b(0x10e)]()[_0x367b5b(0x10c)]()['strict']()[_0x367b5b(0xfa)](_0x52b0cb[_0x367b5b(0x109)]);},exports[a18_0x494944(0x10d)]=function(_0xb4648b){};
1
+ const a18_0x43160e=a18_0x2c49;(function(_0x2c4229,_0x29413f){const _0x49c890=a18_0x2c49,_0x25fa84=_0x2c4229();while(!![]){try{const _0x26d048=-parseInt(_0x49c890(0x1f9))/0x1+parseInt(_0x49c890(0x200))/0x2*(-parseInt(_0x49c890(0x1ff))/0x3)+-parseInt(_0x49c890(0x1fb))/0x4*(-parseInt(_0x49c890(0x1fa))/0x5)+parseInt(_0x49c890(0x1ec))/0x6*(-parseInt(_0x49c890(0x1f8))/0x7)+-parseInt(_0x49c890(0x1f1))/0x8*(parseInt(_0x49c890(0x1fd))/0x9)+parseInt(_0x49c890(0x1f7))/0xa*(-parseInt(_0x49c890(0x1ee))/0xb)+parseInt(_0x49c890(0x1f3))/0xc;if(_0x26d048===_0x29413f)break;else _0x25fa84['push'](_0x25fa84['shift']());}catch(_0xc207c8){_0x25fa84['push'](_0x25fa84['shift']());}}}(a18_0x424a,0x27832));function a18_0x2c49(_0x497a1c,_0x34c888){const _0x424af5=a18_0x424a();return a18_0x2c49=function(_0x2c49fc,_0x3cea17){_0x2c49fc=_0x2c49fc-0x1ea;let _0x470d0e=_0x424af5[_0x2c49fc];return _0x470d0e;},a18_0x2c49(_0x497a1c,_0x34c888);}function a18_0x424a(){const _0x401d1d=['demandCommand','2733741YttQNz','epilogue','78chZUsZ','18348WUSsbi','help','Stop\x20a\x20running\x20Automation\x20grid.','usage','handler','378bGYHxv','ZEtNJ','1793KCIDcQ','builder','commandDir','8aIHPIP','hHhVu','13413408OeZORX','strict','stop_commands','stop','13970nYfbZV','4291YzIejE','253526WKrLoY','530935FAtRIH','4lrVwmc'];a18_0x424a=function(){return _0x401d1d;};return a18_0x424a();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a18_0x43160e(0x1f6),exports['desc']=a18_0x43160e(0x202),exports[a18_0x43160e(0x1ef)]=function(_0x4e76c5){const _0x37f169=a18_0x43160e,_0x40dcfb={};_0x40dcfb[_0x37f169(0x1f2)]=_0x37f169(0x1f5),_0x40dcfb[_0x37f169(0x1ed)]=_0x37f169(0x201);const _0x405216=_0x40dcfb;return _0x4e76c5[_0x37f169(0x1ea)](HELP_HEADER_MESSAGE[_0x37f169(0x1f6)])[_0x37f169(0x1fe)](HELP_FOOTER_MESSAGE)[_0x37f169(0x1f0)](_0x405216[_0x37f169(0x1f2)])[_0x37f169(0x1fc)]()['recommendCommands']()[_0x37f169(0x1f4)]()[_0x37f169(0x201)](_0x405216[_0x37f169(0x1ed)]);},exports[a18_0x43160e(0x1eb)]=function(_0x3f33ab){};
@@ -1 +1 @@
1
- const a19_0x1bea43=a19_0x2915;function a19_0x2915(_0x26f249,_0x2d6364){const _0x340049=a19_0x3400();return a19_0x2915=function(_0x291527,_0x2cfd5c){_0x291527=_0x291527-0x69;let _0x15f1b2=_0x340049[_0x291527];return _0x15f1b2;},a19_0x2915(_0x26f249,_0x2d6364);}(function(_0x4cabd9,_0x2171e4){const _0x2fe3d4=a19_0x2915,_0x236897=_0x4cabd9();while(!![]){try{const _0x29537f=-parseInt(_0x2fe3d4(0xc0))/0x1*(-parseInt(_0x2fe3d4(0x8e))/0x2)+parseInt(_0x2fe3d4(0xa0))/0x3+-parseInt(_0x2fe3d4(0x6b))/0x4+-parseInt(_0x2fe3d4(0xb1))/0x5*(-parseInt(_0x2fe3d4(0x69))/0x6)+-parseInt(_0x2fe3d4(0xae))/0x7*(-parseInt(_0x2fe3d4(0xbb))/0x8)+parseInt(_0x2fe3d4(0xab))/0x9*(parseInt(_0x2fe3d4(0xba))/0xa)+-parseInt(_0x2fe3d4(0xa9))/0xb;if(_0x29537f===_0x2171e4)break;else _0x236897['push'](_0x236897['shift']());}catch(_0xc43aa3){_0x236897['push'](_0x236897['shift']());}}}(a19_0x3400,0x8bddb));function a19_0x3400(){const _0x54d76f=['ESBIu','paCLD','clusterName','configureIfNotConfigured','type','czeNZ','TVaum','../../utils/instrumentationUtils','../../utils/webSocketUtils','../../utils/gridComponents','help','name','RfHTd','string','parse','POaeX','username','<PasswordPlaceholder>','GWOLX','ZqVfC','1193678flXTkf','addListeners','builder','invalid-grid-id','NOZGP','bstackAccesskey','Stop\x20a\x20running\x20Automation\x20grid.','Stopping\x20grid\x20','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../../utils/utilityMethods','replace','exit','message','handler','../../config/logger','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stack','488988GRQlyS','oVhVP','stop-grid-called','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','EqKzf','command','oZDWw','xYBtK','usage','28466207ycCzRw','info','39555RSJvZC','stringify','stop','98RJRCgV','csbyT','description','14365DBXzEK','epilogue','body','init-not-called','debug','ERROR','vvPdI','server-error','vWtEj','2110qkMnuh','586424KnMeVS','tNsyY','readFileSync','gYGen','../../utils/createk8sClient','1yxFLth','xgpuQ','Browserstack','region','PTSiw','cloudProvider','JkYdW','INFO','1362tYXWBb','argv','819460ffyEJe','options','grid-id','clusterRegion','iShyt','Adding\x20Websocket\x20listeners','reconnecting-websocket','gridId','error','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','user','UkAvI','statusCode','UAkNx','wDCRG'];a19_0x3400=function(){return _0x54d76f;};return a19_0x3400();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x1bea43(0x71)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x1bea43(0x9d)),{getCredentialsPath,getGridDetails}=require(a19_0x1bea43(0x98)),{scaleDownHubDeployment}=require(a19_0x1bea43(0x83)),{sendInstrumentationEvent}=require(a19_0x1bea43(0x81)),webSocketUtils=require(a19_0x1bea43(0x82)),{createK8sClient}=require(a19_0x1bea43(0xbf)),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x1bea43(0xa5)]='grid',exports['desc']=a19_0x1bea43(0x94),exports[a19_0x1bea43(0x90)]=function(_0x320222){const _0x7abf27=a19_0x1bea43,_0xb2b9ce={};_0xb2b9ce[_0x7abf27(0x6f)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0xb2b9ce[_0x7abf27(0x7a)]=_0x7abf27(0x87),_0xb2b9ce[_0x7abf27(0xbc)]=_0x7abf27(0x84);const _0x350a35=_0xb2b9ce,_0x1df4c7={};_0x1df4c7[_0x7abf27(0xb0)]=_0x350a35[_0x7abf27(0x6f)],_0x1df4c7[_0x7abf27(0x7e)]=_0x350a35[_0x7abf27(0x7a)];const _0xc72b0e={};return _0xc72b0e[_0x7abf27(0x6d)]=_0x1df4c7,_0x320222[_0x7abf27(0xa8)](HELP_HEADER_MESSAGE[_0x7abf27(0xad)])[_0x7abf27(0xb2)](HELP_FOOTER_MESSAGE)[_0x7abf27(0x6c)](_0xc72b0e)[_0x7abf27(0x84)](_0x350a35[_0x7abf27(0xbc)])[_0x7abf27(0x6a)];},exports[a19_0x1bea43(0x9c)]=async function(_0x5860e4){const _0x4df33a=a19_0x1bea43,_0x53b755={'UAkNx':_0x4df33a(0x74),'PTSiw':function(_0x57d532){return _0x57d532();},'xYBtK':_0x4df33a(0x97),'wDCRG':function(_0x3ff215,_0x36c558,_0x26efd8,_0xd98572,_0x43a40c,_0x422f4f,_0x57b203){return _0x3ff215(_0x36c558,_0x26efd8,_0xd98572,_0x43a40c,_0x422f4f,_0x57b203);},'gYGen':_0x4df33a(0xa2),'paCLD':_0x4df33a(0xb4),'vvPdI':function(_0x3b8e5e,_0x3e095,_0x2e65e2,_0x3d3118,_0x598ab0,_0x31280d,_0x3618ea){return _0x3b8e5e(_0x3e095,_0x2e65e2,_0x3d3118,_0x598ab0,_0x31280d,_0x3618ea);},'RfHTd':'<UsernamePlaceholder>','oVhVP':_0x4df33a(0x8b),'czeNZ':_0x4df33a(0x70),'xgpuQ':function(_0x2624c2,_0x35dbd,_0x2db13c,_0x5271f3){return _0x2624c2(_0x35dbd,_0x2db13c,_0x5271f3);},'NOZGP':function(_0x1c2be8,_0x21d2b4,_0x3f43c8,_0x3e7de0,_0x9faf1,_0x570435){return _0x1c2be8(_0x21d2b4,_0x3f43c8,_0x3e7de0,_0x9faf1,_0x570435);},'UkAvI':function(_0x46c424,_0xc25bdf){return _0x46c424(_0xc25bdf);},'POaeX':function(_0x216807,_0x13b981,_0x2cbfbd){return _0x216807(_0x13b981,_0x2cbfbd);},'TVaum':'Grid\x20stoppped.','EqKzf':function(_0x42faa3,_0x20f4d5){return _0x42faa3===_0x20f4d5;},'vWtEj':function(_0xe8eda6,_0x9b995b,_0x2bd36d,_0x18d276,_0x553cf6,_0x1aa07e,_0x43ed44){return _0xe8eda6(_0x9b995b,_0x2bd36d,_0x18d276,_0x553cf6,_0x1aa07e,_0x43ed44);},'csbyT':'unauthorised','ZqVfC':function(_0x3c488b,_0x4fb6ba){return _0x3c488b===_0x4fb6ba;},'oZDWw':_0x4df33a(0x91),'GWOLX':function(_0x378039,_0x4555a1,_0x4139e9,_0x202592,_0x26906b,_0x205ad,_0x85ee2d){return _0x378039(_0x4555a1,_0x4139e9,_0x202592,_0x26906b,_0x205ad,_0x85ee2d);},'JkYdW':_0x4df33a(0xb8)};let _0x15407b;try{!_0x5860e4['gridId']&&(logger[_0x4df33a(0x73)](_0x53b755[_0x4df33a(0x78)]),process[_0x4df33a(0x9a)](0x1));!fs['existsSync'](_0x53b755[_0x4df33a(0xc4)](getCredentialsPath))&&(logger[_0x4df33a(0x73)](_0x53b755[_0x4df33a(0xa7)]),await _0x53b755[_0x4df33a(0x79)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes[_0x4df33a(0xb6)],_0x53b755[_0x4df33a(0x7b)],null,_0x5860e4),process[_0x4df33a(0x9a)](0x1));logger['info'](_0x4df33a(0x95)+_0x5860e4[_0x4df33a(0x72)]),await _0x53b755[_0x4df33a(0xb7)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes[_0x4df33a(0xc7)],null,null,_0x5860e4);const _0x292171=JSON[_0x4df33a(0x88)](fs[_0x4df33a(0xbd)](_0x53b755[_0x4df33a(0xc4)](getCredentialsPath)));global_registry['bstackUsername']=_0x292171[_0x4df33a(0xc2)][_0x4df33a(0x8a)],global_registry[_0x4df33a(0x93)]=_0x292171[_0x4df33a(0xc2)]['password'];const _0x53b3af=WS_ENDPOINT[_0x4df33a(0x99)](_0x53b755[_0x4df33a(0x86)],_0x292171['Browserstack'][_0x4df33a(0x8a)])[_0x4df33a(0x99)](_0x53b755[_0x4df33a(0xa1)],_0x292171['Browserstack']['password']),_0x46f4b8={};_0x46f4b8['WebSocket']=ws,_0x46f4b8['connectionTimeout']=0x36ee80,_0x15407b=new ReconnectingWebSocket(_0x53b3af,[],_0x46f4b8),logger[_0x4df33a(0xb5)](_0x53b755[_0x4df33a(0x7f)]),webSocketUtils[_0x4df33a(0x8f)](_0x15407b,_0x5860e4[_0x4df33a(0x75)],_0x5860e4['password']);const [_0x4f1a26,_0x4b55b6]=await _0x53b755[_0x4df33a(0xc1)](getGridDetails,_0x292171[_0x4df33a(0xc2)][_0x4df33a(0x8a)],_0x292171[_0x4df33a(0xc2)][_0x4df33a(0x96)],_0x5860e4[_0x4df33a(0x72)]);if(_0x4b55b6){const _0x5e8862=_0x4b55b6[_0x4df33a(0xaa)];global_registry[_0x4df33a(0xc5)]=_0x5e8862[_0x4df33a(0xc5)],global_registry[_0x4df33a(0x6e)]=_0x5e8862[_0x4df33a(0xc3)],global_registry[_0x4df33a(0x7c)]=_0x5e8862[_0x4df33a(0x7c)];const _0x2678a0=_0x53b755[_0x4df33a(0x92)](getCloudProviderObject,_0x5e8862['cloudProvider'],_0x5e8862[_0x4df33a(0x7c)],_0x5e8862['name'],_0x15407b,webSocketUtils),_0x69a6bc=_0x292171[_0x4df33a(0xc5)]||{};await _0x2678a0['fetchLocalCreds'](_0x69a6bc),_0x2678a0[_0x4df33a(0x7d)]();const [_0x1adc48,_0x1f7a85,_0x2f8623,_0x2f969b,_0x1f8ce0,_0x5d34e0]=await _0x53b755[_0x4df33a(0x76)](createK8sClient,_0x2678a0);await _0x53b755[_0x4df33a(0x89)](scaleDownHubDeployment,_0x1f7a85,_0x5e8862[_0x4df33a(0x85)]),logger['info'](_0x53b755[_0x4df33a(0x80)]),process[_0x4df33a(0x9a)](0x0);}_0x53b755[_0x4df33a(0xa4)](_0x4f1a26[_0x4df33a(0x77)],0x191)&&(logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x53b755[_0x4df33a(0xb9)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes['ERROR'],_0x53b755[_0x4df33a(0xaf)],null,_0x5860e4),process[_0x4df33a(0x9a)](0x1)),_0x53b755[_0x4df33a(0x8d)](_0x4f1a26[_0x4df33a(0x77)],0x190)&&(logger[_0x4df33a(0x73)](JSON[_0x4df33a(0x88)](_0x4f1a26[_0x4df33a(0xb3)])[_0x4df33a(0x9b)]),await _0x53b755[_0x4df33a(0x79)](sendInstrumentationEvent,_0x5860e4,_0x53b755[_0x4df33a(0xbe)],messageTypes[_0x4df33a(0xb6)],_0x53b755[_0x4df33a(0xa6)],null,_0x5860e4),process[_0x4df33a(0x9a)](0x1)),logger[_0x4df33a(0x73)](_0x4df33a(0x9e)+JSON[_0x4df33a(0xac)](_0x4f1a26)),await _0x53b755[_0x4df33a(0x8c)](sendInstrumentationEvent,_0x5860e4,_0x53b755['gYGen'],messageTypes[_0x4df33a(0xb6)],_0x53b755[_0x4df33a(0xc6)],_0x4f1a26,_0x5860e4),process[_0x4df33a(0x9a)](0x1);}catch(_0x303bef){const _0x3ef169=_0x4df33a(0xa3)+_0x303bef+'\x20\x0a'+JSON[_0x4df33a(0xac)](_0x303bef[_0x4df33a(0x9f)])+'\x20';logger[_0x4df33a(0x73)](_0x3ef169),process[_0x4df33a(0x9a)](0x1);}};
1
+ const a19_0x512f9e=a19_0x5f58;(function(_0x4fc8c2,_0x184278){const _0x5ddbe7=a19_0x5f58,_0x51445f=_0x4fc8c2();while(!![]){try{const _0x36568e=-parseInt(_0x5ddbe7(0xce))/0x1*(parseInt(_0x5ddbe7(0xc8))/0x2)+-parseInt(_0x5ddbe7(0xe5))/0x3*(parseInt(_0x5ddbe7(0xbe))/0x4)+parseInt(_0x5ddbe7(0xcb))/0x5*(parseInt(_0x5ddbe7(0xfa))/0x6)+parseInt(_0x5ddbe7(0xd6))/0x7*(parseInt(_0x5ddbe7(0x102))/0x8)+-parseInt(_0x5ddbe7(0xac))/0x9+parseInt(_0x5ddbe7(0xbf))/0xa*(-parseInt(_0x5ddbe7(0x101))/0xb)+parseInt(_0x5ddbe7(0xe9))/0xc*(parseInt(_0x5ddbe7(0xe0))/0xd);if(_0x36568e===_0x184278)break;else _0x51445f['push'](_0x51445f['shift']());}catch(_0x34c45f){_0x51445f['push'](_0x51445f['shift']());}}}(a19_0x2165,0xc058f));function a19_0x5f58(_0x1e8734,_0x42b88f){const _0x2165e5=a19_0x2165();return a19_0x5f58=function(_0x5f5890,_0x4f936e){_0x5f5890=_0x5f5890-0xa8;let _0x534299=_0x2165e5[_0x5f5890];return _0x534299;},a19_0x5f58(_0x1e8734,_0x42b88f);}function a19_0x2165(){const _0x424e1d=['invalid-grid-id','existsSync','874301PSzYHb','error','options','xWykq','server-error','readFileSync','argv','exit','41671HxWiXJ','fDnPY','bstackAccesskey','parse','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','handler','eVdHH','clusterName','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','AQHQI','52OhaQuH','Adding\x20Websocket\x20listeners','htirc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','168aFKxCe','description','YokJf','bstackUsername','4712544dAGQAD','statusCode','user','connectionTimeout','replace','yEmCE','VFtkv','grid-id','command','../../utils/utilityMethods','name','unauthorised','ERROR','Stop\x20a\x20running\x20Automation\x20grid.','reconnecting-websocket','HuptQ','desc','6MfOIoT','WebSocket','<UsernamePlaceholder>','xbihH','username','usage','Unable\x20to\x20stop\x20the\x20Grid!\x20Error:\x20','22BfiohU','1992VhwRVm','stop','FLllC','clusterRegion','../../utils/instrumentationUtils','FtMme','type','12631473sXEKoo','dtgqi','Please\x20provide\x20ID\x20of\x20the\x20grid\x20to\x20stop','fetchLocalCreds','epilogue','FvpGm','qeLbZ','region','stop-grid-called','body','string','UypRz','OOIUP','password','cloudProvider','../../config/logger','builder','XZPEJ','4376gHUwWY','6201610ZVqALb','info','Browserstack','Grid\x20stoppped.','<PasswordPlaceholder>','pzxal','gridId','configureIfNotConfigured','../../utils/gridComponents','2pHwZrJ','Stopping\x20grid\x20','help','6570470suOQpH'];a19_0x2165=function(){return _0x424e1d;};return a19_0x2165();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a19_0x512f9e(0xf7)),{global_registry,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,WS_ENDPOINT,messageTypes}=require('../../config/constants'),{logger}=require(a19_0x512f9e(0xbb)),{getCredentialsPath,getGridDetails}=require(a19_0x512f9e(0xf2)),{scaleDownHubDeployment}=require(a19_0x512f9e(0xc7)),{sendInstrumentationEvent}=require(a19_0x512f9e(0xa9)),webSocketUtils=require('../../utils/webSocketUtils'),{createK8sClient}=require('../../utils/createk8sClient'),{getCloudProviderObject}=require('../../cloudproviders/utils');exports[a19_0x512f9e(0xf1)]='grid',exports[a19_0x512f9e(0xf9)]=a19_0x512f9e(0xf6),exports[a19_0x512f9e(0xbc)]=function(_0xba6245){const _0x48e4a8=a19_0x512f9e,_0x196e7b={};_0x196e7b[_0x48e4a8(0xb2)]='Pass\x20the\x20ID\x20of\x20the\x20running\x20Automation\x20grid\x20you\x20want\x20to\x20stop.',_0x196e7b[_0x48e4a8(0xad)]=_0x48e4a8(0xb6),_0x196e7b['AQHQI']=_0x48e4a8(0xca);const _0x3439ff=_0x196e7b,_0x1e56c6={};_0x1e56c6[_0x48e4a8(0xe6)]=_0x3439ff[_0x48e4a8(0xb2)],_0x1e56c6[_0x48e4a8(0xab)]=_0x3439ff[_0x48e4a8(0xad)];const _0x36d38d={};return _0x36d38d[_0x48e4a8(0xf0)]=_0x1e56c6,_0xba6245[_0x48e4a8(0xff)](HELP_HEADER_MESSAGE[_0x48e4a8(0x103)])[_0x48e4a8(0xb0)](HELP_FOOTER_MESSAGE)[_0x48e4a8(0xd0)](_0x36d38d)[_0x48e4a8(0xca)](_0x3439ff[_0x48e4a8(0xdf)])[_0x48e4a8(0xd4)];},exports[a19_0x512f9e(0xdb)]=async function(_0x5f0da3){const _0x16dcc2=a19_0x512f9e,_0x34bce9={'xbihH':_0x16dcc2(0xae),'htirc':function(_0x4f2838){return _0x4f2838();},'liLIf':_0x16dcc2(0xde),'FtMme':function(_0xf10ccc,_0x96ff9,_0x3520b3,_0x5d73c7,_0x35c5d7,_0x4617f0,_0x16d54a){return _0xf10ccc(_0x96ff9,_0x3520b3,_0x5d73c7,_0x35c5d7,_0x4617f0,_0x16d54a);},'YokJf':_0x16dcc2(0xb4),'XZPEJ':'init-not-called','UypRz':function(_0x4841f5,_0x457588,_0x3f5f33,_0x5b5397,_0x47adc4,_0x1689c1,_0x37641c){return _0x4841f5(_0x457588,_0x3f5f33,_0x5b5397,_0x47adc4,_0x1689c1,_0x37641c);},'HuptQ':_0x16dcc2(0xfc),'FvpGm':_0x16dcc2(0xc3),'OOIUP':_0x16dcc2(0xe1),'xWykq':function(_0x1e4d9e,_0x49c6fc,_0x43994f,_0x2ac22c){return _0x1e4d9e(_0x49c6fc,_0x43994f,_0x2ac22c);},'rUpdT':function(_0x1d7873,_0x58a286,_0x45e28d,_0x5099cb,_0x49c054,_0x25892d){return _0x1d7873(_0x58a286,_0x45e28d,_0x5099cb,_0x49c054,_0x25892d);},'wLJTf':function(_0x23f586,_0x161d19){return _0x23f586(_0x161d19);},'duEbA':function(_0x1f3379,_0x1c25d7,_0x50a4f3){return _0x1f3379(_0x1c25d7,_0x50a4f3);},'mowcw':_0x16dcc2(0xc2),'VFtkv':function(_0x15920c,_0x58d6e9){return _0x15920c===_0x58d6e9;},'FLllC':function(_0x59aca7,_0x1d6476,_0x33be5f,_0x463ead,_0xa8b878,_0x1f6381,_0x4ec78e){return _0x59aca7(_0x1d6476,_0x33be5f,_0x463ead,_0xa8b878,_0x1f6381,_0x4ec78e);},'RmHdN':_0x16dcc2(0xf4),'yEmCE':function(_0xd1385,_0x54bf98){return _0xd1385===_0x54bf98;},'eVdHH':function(_0x22cc7e,_0x193319,_0x2e0bbc,_0x355ffe,_0x4d5787,_0x13fcf7,_0x4164f8){return _0x22cc7e(_0x193319,_0x2e0bbc,_0x355ffe,_0x4d5787,_0x13fcf7,_0x4164f8);},'fDnPY':_0x16dcc2(0xcc),'pzxal':_0x16dcc2(0xd2)};let _0x3849fb;try{!_0x5f0da3[_0x16dcc2(0xc5)]&&(logger[_0x16dcc2(0xcf)](_0x34bce9[_0x16dcc2(0xfd)]),process[_0x16dcc2(0xd5)](0x1));!fs[_0x16dcc2(0xcd)](_0x34bce9[_0x16dcc2(0xe2)](getCredentialsPath))&&(logger[_0x16dcc2(0xcf)](_0x34bce9['liLIf']),await _0x34bce9[_0x16dcc2(0xaa)](sendInstrumentationEvent,_0x5f0da3,_0x34bce9['YokJf'],messageTypes[_0x16dcc2(0xf5)],_0x34bce9[_0x16dcc2(0xbd)],null,_0x5f0da3),process[_0x16dcc2(0xd5)](0x1));logger[_0x16dcc2(0xc0)](_0x16dcc2(0xc9)+_0x5f0da3[_0x16dcc2(0xc5)]),await _0x34bce9[_0x16dcc2(0xb7)](sendInstrumentationEvent,_0x5f0da3,_0x34bce9[_0x16dcc2(0xe7)],messageTypes['INFO'],null,null,_0x5f0da3);const _0x35f3a3=JSON[_0x16dcc2(0xd9)](fs[_0x16dcc2(0xd3)](_0x34bce9['htirc'](getCredentialsPath)));global_registry[_0x16dcc2(0xe8)]=_0x35f3a3[_0x16dcc2(0xc1)]['username'],global_registry[_0x16dcc2(0xd8)]=_0x35f3a3[_0x16dcc2(0xc1)][_0x16dcc2(0xb9)];const _0x378b4b=WS_ENDPOINT[_0x16dcc2(0xed)](_0x34bce9[_0x16dcc2(0xf8)],_0x35f3a3['Browserstack'][_0x16dcc2(0xfe)])['replace'](_0x34bce9[_0x16dcc2(0xb1)],_0x35f3a3[_0x16dcc2(0xc1)][_0x16dcc2(0xb9)]),_0x13b5be={};_0x13b5be[_0x16dcc2(0xfb)]=ws,_0x13b5be[_0x16dcc2(0xec)]=0x36ee80,_0x3849fb=new ReconnectingWebSocket(_0x378b4b,[],_0x13b5be),logger['debug'](_0x34bce9[_0x16dcc2(0xb8)]),webSocketUtils['addListeners'](_0x3849fb,_0x5f0da3[_0x16dcc2(0xeb)],_0x5f0da3[_0x16dcc2(0xb9)]);const [_0x160f26,_0x4ad85f]=await _0x34bce9[_0x16dcc2(0xd1)](getGridDetails,_0x35f3a3[_0x16dcc2(0xc1)][_0x16dcc2(0xfe)],_0x35f3a3['Browserstack']['password'],_0x5f0da3[_0x16dcc2(0xc5)]);if(_0x4ad85f){const _0x42a994=_0x4ad85f[_0x16dcc2(0xc0)];global_registry[_0x16dcc2(0xba)]=_0x42a994[_0x16dcc2(0xba)],global_registry[_0x16dcc2(0xa8)]=_0x42a994[_0x16dcc2(0xb3)],global_registry[_0x16dcc2(0xdd)]=_0x42a994['clusterName'];const _0x5102d3=_0x34bce9['rUpdT'](getCloudProviderObject,_0x42a994[_0x16dcc2(0xba)],_0x42a994[_0x16dcc2(0xdd)],_0x42a994['name'],_0x3849fb,webSocketUtils),_0x4aa77a=_0x35f3a3['cloudProvider']||{};await _0x5102d3[_0x16dcc2(0xaf)](_0x4aa77a),_0x5102d3[_0x16dcc2(0xc6)]();const [_0x14ef2f,_0x22e412,_0x5417d5,_0x56e1d9,_0x4237d6,_0x4048dd]=await _0x34bce9['wLJTf'](createK8sClient,_0x5102d3);await _0x34bce9['duEbA'](scaleDownHubDeployment,_0x22e412,_0x42a994[_0x16dcc2(0xf3)]),logger[_0x16dcc2(0xc0)](_0x34bce9['mowcw']),process[_0x16dcc2(0xd5)](0x0);}_0x34bce9[_0x16dcc2(0xef)](_0x160f26[_0x16dcc2(0xea)],0x191)&&(logger['error'](_0x16dcc2(0xda)),await _0x34bce9[_0x16dcc2(0x104)](sendInstrumentationEvent,_0x5f0da3,_0x34bce9[_0x16dcc2(0xe7)],messageTypes[_0x16dcc2(0xf5)],_0x34bce9['RmHdN'],null,_0x5f0da3),process['exit'](0x1)),_0x34bce9[_0x16dcc2(0xee)](_0x160f26['statusCode'],0x190)&&(logger[_0x16dcc2(0xcf)](JSON['parse'](_0x160f26[_0x16dcc2(0xb5)])['message']),await _0x34bce9[_0x16dcc2(0xdc)](sendInstrumentationEvent,_0x5f0da3,_0x34bce9[_0x16dcc2(0xe7)],messageTypes[_0x16dcc2(0xf5)],_0x34bce9[_0x16dcc2(0xd7)],null,_0x5f0da3),process[_0x16dcc2(0xd5)](0x1)),logger['error'](_0x16dcc2(0xe3)+JSON[_0x16dcc2(0xe4)](_0x160f26)),await _0x34bce9['eVdHH'](sendInstrumentationEvent,_0x5f0da3,_0x34bce9[_0x16dcc2(0xe7)],messageTypes['ERROR'],_0x34bce9[_0x16dcc2(0xc4)],_0x160f26,_0x5f0da3),process[_0x16dcc2(0xd5)](0x1);}catch(_0x23a58a){const _0x275e0a=_0x16dcc2(0x100)+_0x23a58a+'\x20\x0a'+JSON[_0x16dcc2(0xe4)](_0x23a58a['stack'])+'\x20';logger[_0x16dcc2(0xcf)](_0x275e0a),process[_0x16dcc2(0xd5)](0x1);}};
@@ -1 +1 @@
1
- const a20_0x51b4fc=a20_0x33d6;(function(_0x335f52,_0x5d5b34){const _0x3f648d=a20_0x33d6,_0x47be98=_0x335f52();while(!![]){try{const _0x5d91ae=-parseInt(_0x3f648d(0x221))/0x1*(parseInt(_0x3f648d(0x1e8))/0x2)+parseInt(_0x3f648d(0x20c))/0x3*(parseInt(_0x3f648d(0x1f4))/0x4)+parseInt(_0x3f648d(0x1fb))/0x5*(-parseInt(_0x3f648d(0x22b))/0x6)+parseInt(_0x3f648d(0x1de))/0x7*(parseInt(_0x3f648d(0x1f2))/0x8)+parseInt(_0x3f648d(0x20a))/0x9*(parseInt(_0x3f648d(0x1ee))/0xa)+parseInt(_0x3f648d(0x1da))/0xb+-parseInt(_0x3f648d(0x1f8))/0xc;if(_0x5d91ae===_0x5d5b34)break;else _0x47be98['push'](_0x47be98['shift']());}catch(_0x1fc8ad){_0x47be98['push'](_0x47be98['shift']());}}}(a20_0x1161,0xbc81b),require(a20_0x51b4fc(0x1f6))[a20_0x51b4fc(0x1fc)](),exports[a20_0x51b4fc(0x1e5)]=process[a20_0x51b4fc(0x222)][a20_0x51b4fc(0x1e5)]||a20_0x51b4fc(0x200),exports['BS_API_URL']=process['env']['BS_API_URL']||a20_0x51b4fc(0x220),exports[a20_0x51b4fc(0x217)]=process[a20_0x51b4fc(0x222)]['AG_API_URL']||a20_0x51b4fc(0x1e1),exports[a20_0x51b4fc(0x1dc)]='wss://'+this[a20_0x51b4fc(0x217)]+a20_0x51b4fc(0x21f),exports[a20_0x51b4fc(0x20e)]='credentials',exports[a20_0x51b4fc(0x204)]='BrowserStackIAMUser',exports[a20_0x51b4fc(0x202)]=a20_0x51b4fc(0x1f3));const timestamp=new Date()[a20_0x51b4fc(0x1d9)]();function a20_0x1161(){const _0x495959=['2xUYfoN','HELP_HEADER_MESSAGE','gcp','grid','CLI_RUN_FINISHED','CLI_ARGS_REGEX','1485130kelIrr','start','gridProfile','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','8GWNCDK','high-scale-grid','5072020aRvTrx','AZURE','dotenv','RESOURCES','8649780nnURfK','create','init','436785kKvVAp','config','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','[REDACTED]','REDACTED','grid.browserstack.com','info','DEFAULT_GRID_NAME','browserstack:service','IAM_USER_NAME','ERROR','\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.','HST_CLUSTER_TAGS','CLI_RUN_STARTED','BSTACK-ATS-CLUSTER-','54VRQQnP','Key','3tqzNIk','WS_EVENTS','CP_CONFIG_FILE','NULL','log','cliRunStarted','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','warning','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','aws','AG_API_URL','LOG','root','azure','AWS','INFO','Value','browserstack-turboscale-grid','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','api.browserstack.com','1461842fyVuPH','env','resourceInfo','CLUSTER_AUTOSCALER_STACK_NAME','unknown','browserstack:managedBy','LINK_MESSAGE','WARNING','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','BrowserStack-Automate-TurboScale','30krWTCH','getTime','7138549zVBPQp','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','WS_ENDPOINT','cliRunFinished','4084661qNJOJT','CLUSTER_DEP_STACK_NAME','list','grid-api.browserstack.com','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','BrowserStack','DASHBOARD_ENDPOINT','TURBOSCALE_DEPLOYMENT','SUCCESS'];a20_0x1161=function(){return _0x495959;};return a20_0x1161();}exports[a20_0x51b4fc(0x21b)]=a20_0x51b4fc(0x216),exports[a20_0x51b4fc(0x1df)]=a20_0x51b4fc(0x209)+timestamp,exports[a20_0x51b4fc(0x224)]='BSTACK-ATS-CLUSTER-AUTOSCALER-'+timestamp,exports[a20_0x51b4fc(0x1e6)]=a20_0x51b4fc(0x21e),exports[a20_0x51b4fc(0x1f5)]=a20_0x51b4fc(0x21a),exports['GCP']=a20_0x51b4fc(0x1ea);const a20_0x7d9c07={};function a20_0x33d6(_0x3edef8,_0x175ec2){const _0x11612f=a20_0x1161();return a20_0x33d6=function(_0x33d616,_0x6c7022){_0x33d616=_0x33d616-0x1d9;let _0x6e4e7d=_0x11612f[_0x33d616];return _0x6e4e7d;},a20_0x33d6(_0x3edef8,_0x175ec2);}a20_0x7d9c07[a20_0x51b4fc(0x20b)]=a20_0x51b4fc(0x226),a20_0x7d9c07[a20_0x51b4fc(0x21d)]=a20_0x51b4fc(0x1e4);const a20_0x595ff3={};a20_0x595ff3[a20_0x51b4fc(0x20b)]=a20_0x51b4fc(0x203),a20_0x595ff3[a20_0x51b4fc(0x21d)]='BrowserStack-Automate-TurboScale',exports['COMMON_HST_TAGS']=[a20_0x7d9c07,a20_0x595ff3];const a20_0x4c9546={};a20_0x4c9546[a20_0x51b4fc(0x226)]=a20_0x51b4fc(0x1e4),a20_0x4c9546['browserstack:service']=a20_0x51b4fc(0x22a),exports[a20_0x51b4fc(0x207)]=a20_0x4c9546,exports['SUPPORTED_CLOUD_PROVIDERS']=[this['AWS']];const a20_0x48142b={};a20_0x48142b[a20_0x51b4fc(0x218)]=a20_0x51b4fc(0x210),a20_0x48142b[a20_0x51b4fc(0x1f7)]=a20_0x51b4fc(0x223),a20_0x48142b['GRID_URL']='gridUrl',a20_0x48142b[a20_0x51b4fc(0x208)]=a20_0x51b4fc(0x211),a20_0x48142b[a20_0x51b4fc(0x1ec)]=a20_0x51b4fc(0x1dd),exports[a20_0x51b4fc(0x20d)]=a20_0x48142b,exports['global_registry']={},exports['LINK_MESSAGE']='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';const a20_0x7fd77d={};a20_0x7fd77d['root']=a20_0x51b4fc(0x213)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1fa)]=a20_0x51b4fc(0x1e2)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d['configure']=a20_0x51b4fc(0x229)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1f9)]=a20_0x51b4fc(0x212)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1e0)]={},a20_0x7fd77d['delete']=a20_0x51b4fc(0x1fd)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d['connect']=a20_0x51b4fc(0x1e3)+this['LINK_MESSAGE'],a20_0x7fd77d[a20_0x51b4fc(0x1ef)]=a20_0x51b4fc(0x215)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d['stop']=a20_0x51b4fc(0x206)+this['LINK_MESSAGE'],a20_0x7fd77d[a20_0x51b4fc(0x1e0)][a20_0x51b4fc(0x219)]=a20_0x51b4fc(0x1f1)+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1e0)][a20_0x51b4fc(0x1eb)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x51b4fc(0x227)],a20_0x7fd77d[a20_0x51b4fc(0x1e0)][a20_0x51b4fc(0x1f0)]=a20_0x51b4fc(0x1db)+this['LINK_MESSAGE'],exports[a20_0x51b4fc(0x1e9)]=a20_0x7fd77d,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.';const a20_0x2b1d71={};a20_0x2b1d71[a20_0x51b4fc(0x1e7)]='success',a20_0x2b1d71[a20_0x51b4fc(0x205)]='error',a20_0x2b1d71[a20_0x51b4fc(0x21c)]=a20_0x51b4fc(0x201),a20_0x2b1d71[a20_0x51b4fc(0x228)]=a20_0x51b4fc(0x214),a20_0x2b1d71['UNKNOWN']=a20_0x51b4fc(0x225),a20_0x2b1d71[a20_0x51b4fc(0x20f)]=null,exports['messageTypes']=a20_0x2b1d71,exports[a20_0x51b4fc(0x1ed)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports['RAW_ARGS_REGEX']=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x51b4fc(0x1ff)]=a20_0x51b4fc(0x1fe);
1
+ const a20_0x3e1670=a20_0x4552;(function(_0x30527,_0x31a207){const _0x3ad4cc=a20_0x4552,_0x4141d5=_0x30527();while(!![]){try{const _0x3d3d60=-parseInt(_0x3ad4cc(0x168))/0x1*(parseInt(_0x3ad4cc(0x123))/0x2)+parseInt(_0x3ad4cc(0x154))/0x3*(-parseInt(_0x3ad4cc(0x141))/0x4)+-parseInt(_0x3ad4cc(0x11f))/0x5+-parseInt(_0x3ad4cc(0x12f))/0x6+parseInt(_0x3ad4cc(0x138))/0x7+-parseInt(_0x3ad4cc(0x172))/0x8+parseInt(_0x3ad4cc(0x120))/0x9;if(_0x3d3d60===_0x31a207)break;else _0x4141d5['push'](_0x4141d5['shift']());}catch(_0x51defc){_0x4141d5['push'](_0x4141d5['shift']());}}}(a20_0x1fc0,0xb9f31),require(a20_0x3e1670(0x14e))[a20_0x3e1670(0x174)](),exports[a20_0x3e1670(0x135)]=process[a20_0x3e1670(0x160)]['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports['BS_API_URL']=process[a20_0x3e1670(0x160)]['BS_API_URL']||a20_0x3e1670(0x145),exports[a20_0x3e1670(0x126)]=process['env']['AG_API_URL']||a20_0x3e1670(0x124),exports[a20_0x3e1670(0x171)]=a20_0x3e1670(0x122)+this[a20_0x3e1670(0x126)]+a20_0x3e1670(0x162),exports[a20_0x3e1670(0x15f)]='credentials',exports[a20_0x3e1670(0x146)]=a20_0x3e1670(0x134),exports['DEFAULT_GRID_NAME']=a20_0x3e1670(0x139));const timestamp=new Date()[a20_0x3e1670(0x12b)]();exports[a20_0x3e1670(0x13f)]='aws',exports[a20_0x3e1670(0x16b)]=a20_0x3e1670(0x142)+timestamp,exports[a20_0x3e1670(0x13a)]=a20_0x3e1670(0x132)+timestamp,exports[a20_0x3e1670(0x12a)]=a20_0x3e1670(0x169),exports[a20_0x3e1670(0x16a)]=a20_0x3e1670(0x125),exports[a20_0x3e1670(0x12d)]=a20_0x3e1670(0x140);const a20_0x1251b9={};a20_0x1251b9[a20_0x3e1670(0x153)]='browserstack:managedBy',a20_0x1251b9[a20_0x3e1670(0x16d)]=a20_0x3e1670(0x133);const a20_0x450dff={};a20_0x450dff[a20_0x3e1670(0x153)]=a20_0x3e1670(0x156),a20_0x450dff[a20_0x3e1670(0x16d)]=a20_0x3e1670(0x173),exports[a20_0x3e1670(0x155)]=[a20_0x1251b9,a20_0x450dff];function a20_0x4552(_0x2f5c8f,_0x34a365){const _0x1fc007=a20_0x1fc0();return a20_0x4552=function(_0x455258,_0x2225f8){_0x455258=_0x455258-0x11f;let _0xcea6a6=_0x1fc007[_0x455258];return _0xcea6a6;},a20_0x4552(_0x2f5c8f,_0x34a365);}const a20_0x2862a7={};a20_0x2862a7[a20_0x3e1670(0x14c)]=a20_0x3e1670(0x133),a20_0x2862a7[a20_0x3e1670(0x156)]=a20_0x3e1670(0x173),exports[a20_0x3e1670(0x14b)]=a20_0x2862a7,exports[a20_0x3e1670(0x149)]=[this[a20_0x3e1670(0x13f)]];const a20_0xc283a={};function a20_0x1fc0(){const _0x12d118=['browserstack:managedBy','root','dotenv','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','GRID_URL','cliRunStarted','RAW_ARGS_REGEX','Key','26664BysPFx','COMMON_HST_TAGS','browserstack:service','warning','error','resourceInfo','CLI_RUN_STARTED','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20TurboScale.','grid','start','CLI_RUN_FINISHED','CP_CONFIG_FILE','env','REDACTED','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','LINK_MESSAGE','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','list','gridProfile','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','2077CrXoMh','browserstack-turboscale-grid','AZURE','CLUSTER_DEP_STACK_NAME','HELP_HEADER_MESSAGE','Value','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','[REDACTED]','global_registry','WS_ENDPOINT','3689656iHNKoy','BrowserStack-Automate-TurboScale','config','4809660fPCHAj','25620696eLWwev','HELP_FOOTER_MESSAGE','wss://','1396lZvzTC','grid-api.browserstack.com','azure','AG_API_URL','connect','create','WARNING','TURBOSCALE_DEPLOYMENT','getTime','\x0aThis\x20will\x20start\x20an\x20existing\x20Automation\x20grid.','GCP','cliRunFinished','496410WqHcrr','WS_EVENTS','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20TurboScale.','BSTACK-ATS-CLUSTER-AUTOSCALER-','BrowserStack','BrowserStackIAMUser','DASHBOARD_ENDPOINT','messageTypes','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','9204475aRlcFu','high-scale-grid','CLUSTER_AUTOSCALER_STACK_NAME','NULL','success','delete','info','AWS','gcp','200JhccNN','BSTACK-ATS-CLUSTER-','CLI_ARGS_REGEX','ERROR','api.browserstack.com','IAM_USER_NAME','INFO','init','SUPPORTED_CLOUD_PROVIDERS','SUCCESS','HST_CLUSTER_TAGS'];a20_0x1fc0=function(){return _0x12d118;};return a20_0x1fc0();}a20_0xc283a['LOG']='log',a20_0xc283a['RESOURCES']=a20_0x3e1670(0x159),a20_0xc283a[a20_0x3e1670(0x150)]='gridUrl',a20_0xc283a[a20_0x3e1670(0x15a)]=a20_0x3e1670(0x151),a20_0xc283a[a20_0x3e1670(0x15e)]=a20_0x3e1670(0x12e),exports[a20_0x3e1670(0x130)]=a20_0xc283a,exports[a20_0x3e1670(0x170)]={},exports[a20_0x3e1670(0x163)]=a20_0x3e1670(0x137);const a20_0x55b022={};a20_0x55b022[a20_0x3e1670(0x14d)]=a20_0x3e1670(0x167)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x148)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this[a20_0x3e1670(0x163)],a20_0x55b022['configure']=a20_0x3e1670(0x14f)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x128)]=a20_0x3e1670(0x164)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x165)]={},a20_0x55b022[a20_0x3e1670(0x13d)]=a20_0x3e1670(0x16e)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x127)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x15d)]=a20_0x3e1670(0x12c)+this[a20_0x3e1670(0x163)],a20_0x55b022['stop']='\x0aThis\x20will\x20stop\x20a\x20running\x20Automation\x20grid.'+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x165)][a20_0x3e1670(0x14d)]=a20_0x3e1670(0x15b)+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x165)][a20_0x3e1670(0x15c)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.'+this[a20_0x3e1670(0x163)],a20_0x55b022[a20_0x3e1670(0x165)][a20_0x3e1670(0x166)]='\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.'+this[a20_0x3e1670(0x163)],exports[a20_0x3e1670(0x16c)]=a20_0x55b022,exports[a20_0x3e1670(0x121)]=a20_0x3e1670(0x131);const a20_0x218328={};a20_0x218328[a20_0x3e1670(0x14a)]=a20_0x3e1670(0x13c),a20_0x218328[a20_0x3e1670(0x144)]=a20_0x3e1670(0x158),a20_0x218328[a20_0x3e1670(0x147)]=a20_0x3e1670(0x13e),a20_0x218328[a20_0x3e1670(0x129)]=a20_0x3e1670(0x157),a20_0x218328['UNKNOWN']='unknown',a20_0x218328[a20_0x3e1670(0x13b)]=null,exports[a20_0x3e1670(0x136)]=a20_0x218328,exports[a20_0x3e1670(0x143)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a20_0x3e1670(0x152)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a20_0x3e1670(0x161)]=a20_0x3e1670(0x16f);
@@ -1 +1 @@
1
- const a21_0x5a005f=a21_0x3072;(function(_0x5bfac4,_0x35d0c3){const _0x328eb1=a21_0x3072,_0x71aefc=_0x5bfac4();while(!![]){try{const _0x2c2444=-parseInt(_0x328eb1(0x174))/0x1*(parseInt(_0x328eb1(0x17f))/0x2)+parseInt(_0x328eb1(0x176))/0x3*(parseInt(_0x328eb1(0x177))/0x4)+-parseInt(_0x328eb1(0x185))/0x5*(-parseInt(_0x328eb1(0x184))/0x6)+parseInt(_0x328eb1(0x16d))/0x7+-parseInt(_0x328eb1(0x180))/0x8+parseInt(_0x328eb1(0x178))/0x9*(-parseInt(_0x328eb1(0x170))/0xa)+-parseInt(_0x328eb1(0x182))/0xb;if(_0x2c2444===_0x35d0c3)break;else _0x71aefc['push'](_0x71aefc['shift']());}catch(_0x4e6ba7){_0x71aefc['push'](_0x71aefc['shift']());}}}(a21_0x214d,0x1ac71));const winston=require(a21_0x5a005f(0x17e)),fs=require('fs'),path=require(a21_0x5a005f(0x181)),logDir='log';!fs[a21_0x5a005f(0x183)](logDir)&&fs[a21_0x5a005f(0x187)](logDir);const a21_0x5bcbb4={};a21_0x5bcbb4[a21_0x5a005f(0x172)]='YYYY-MM-DD\x20HH:mm:ss';function a21_0x214d(){const _0x37c4bc=['message','1307117QtTsrG','colorize','printf','27510dTqRqZ','fileLogger','format','debug','21666SAEHlh','\x20-\x20','144480EMJIUl','16bAZwrx','657lXQdVx','Console','console.info','events.log','timestamp','transports','winston','2BcoJUC','689536SRErJY','path','827497lHfQyf','existsSync','685308eBWgKK','5FiXOCw','level','mkdirSync','createLogger','File','join'];a21_0x214d=function(){return _0x37c4bc;};return a21_0x214d();}const a21_0xf2a1ac={};a21_0xf2a1ac[a21_0x5a005f(0x186)]=!![];const a21_0x3ae7f6={};function a21_0x3072(_0x136bb3,_0x44401d){const _0x214dcf=a21_0x214d();return a21_0x3072=function(_0x3072e7,_0x42b3c3){_0x3072e7=_0x3072e7-0x169;let _0x10febb=_0x214dcf[_0x3072e7];return _0x10febb;},a21_0x3072(_0x136bb3,_0x44401d);}a21_0x3ae7f6['name']=a21_0x5a005f(0x17a),exports['logger']=new winston['createLogger']({'format':winston[a21_0x5a005f(0x172)]['combine'](winston['format'][a21_0x5a005f(0x17c)](a21_0x5bcbb4),winston[a21_0x5a005f(0x172)][a21_0x5a005f(0x16e)](a21_0xf2a1ac),winston[a21_0x5a005f(0x172)][a21_0x5a005f(0x16f)](_0x16a8fd=>_0x16a8fd[a21_0x5a005f(0x17c)]+a21_0x5a005f(0x175)+_0x16a8fd[a21_0x5a005f(0x186)]+':\x20'+_0x16a8fd[a21_0x5a005f(0x16c)])),'transports':[new winston[(a21_0x5a005f(0x17d))][(a21_0x5a005f(0x179))](a21_0x3ae7f6),new winston[(a21_0x5a005f(0x17d))][(a21_0x5a005f(0x16a))]({'filename':path[a21_0x5a005f(0x16b)](logDir,a21_0x5a005f(0x17b)),'level':a21_0x5a005f(0x173)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x5a005f(0x17d))][(a21_0x5a005f(0x16a))]({'filename':path['join'](logDir,'usage.log'),'level':a21_0x5a005f(0x173)})]};exports[a21_0x5a005f(0x171)]=new winston[(a21_0x5a005f(0x169))](winstonFileLoggerParams);
1
+ const a21_0x3754ff=a21_0x34f2;(function(_0x891a61,_0x34c09f){const _0x3122b2=a21_0x34f2,_0x454deb=_0x891a61();while(!![]){try{const _0x3e6296=-parseInt(_0x3122b2(0x119))/0x1+-parseInt(_0x3122b2(0x10b))/0x2+-parseInt(_0x3122b2(0x10e))/0x3+parseInt(_0x3122b2(0x111))/0x4+-parseInt(_0x3122b2(0x107))/0x5*(-parseInt(_0x3122b2(0x113))/0x6)+-parseInt(_0x3122b2(0x11d))/0x7+parseInt(_0x3122b2(0x11b))/0x8;if(_0x3e6296===_0x34c09f)break;else _0x454deb['push'](_0x454deb['shift']());}catch(_0x47a4e7){_0x454deb['push'](_0x454deb['shift']());}}}(a21_0x35cd,0x8164a));function a21_0x34f2(_0xc4daee,_0x181fb0){const _0x35cda4=a21_0x35cd();return a21_0x34f2=function(_0x34f2c1,_0x1b7b93){_0x34f2c1=_0x34f2c1-0x100;let _0x29b15c=_0x35cda4[_0x34f2c1];return _0x29b15c;},a21_0x34f2(_0xc4daee,_0x181fb0);}function a21_0x35cd(){const _0x382672=['transports','name','1839264WMERtZ','fileLogger','Console','2942358gVrune','colorize','debug','2809020vntBKE','printf','762noZTuw','mkdirSync','logger','format','combine','timestamp','195931BPEzVt','YYYY-MM-DD\x20HH:mm:ss','12483832yfMuYI','winston','4178244EwrNXq','existsSync','level','message','console.info','events.log','createLogger','File','37815pzBFPs','\x20-\x20'];a21_0x35cd=function(){return _0x382672;};return a21_0x35cd();}const winston=require(a21_0x3754ff(0x11c)),fs=require('fs'),path=require('path'),logDir='log';!fs[a21_0x3754ff(0x100)](logDir)&&fs[a21_0x3754ff(0x114)](logDir);const a21_0x4c95ee={};a21_0x4c95ee[a21_0x3754ff(0x116)]=a21_0x3754ff(0x11a);const a21_0xfcdc4e={};a21_0xfcdc4e[a21_0x3754ff(0x101)]=!![];const a21_0x4b8c85={};a21_0x4b8c85[a21_0x3754ff(0x10a)]=a21_0x3754ff(0x103),exports[a21_0x3754ff(0x115)]=new winston['createLogger']({'format':winston[a21_0x3754ff(0x116)][a21_0x3754ff(0x117)](winston[a21_0x3754ff(0x116)][a21_0x3754ff(0x118)](a21_0x4c95ee),winston[a21_0x3754ff(0x116)][a21_0x3754ff(0x10f)](a21_0xfcdc4e),winston[a21_0x3754ff(0x116)][a21_0x3754ff(0x112)](_0x483d0e=>_0x483d0e[a21_0x3754ff(0x118)]+a21_0x3754ff(0x108)+_0x483d0e[a21_0x3754ff(0x101)]+':\x20'+_0x483d0e[a21_0x3754ff(0x102)])),'transports':[new winston[(a21_0x3754ff(0x109))][(a21_0x3754ff(0x10d))](a21_0x4b8c85),new winston['transports'][(a21_0x3754ff(0x106))]({'filename':path['join'](logDir,a21_0x3754ff(0x104)),'level':a21_0x3754ff(0x110)})]});const winstonFileLoggerParams={'transports':[new winston[(a21_0x3754ff(0x109))][(a21_0x3754ff(0x106))]({'filename':path['join'](logDir,'usage.log'),'level':a21_0x3754ff(0x110)})]};exports[a21_0x3754ff(0x10c)]=new winston[(a21_0x3754ff(0x105))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a22_0xe53443=a22_0x3eb8;function a22_0x3eb8(_0x15e2f7,_0x56d44a){const _0x304288=a22_0x3042();return a22_0x3eb8=function(_0x3eb8e9,_0x20eb9f){_0x3eb8e9=_0x3eb8e9-0xb6;let _0x2255be=_0x304288[_0x3eb8e9];return _0x2255be;},a22_0x3eb8(_0x15e2f7,_0x56d44a);}(function(_0x556818,_0x345af0){const _0x2e5035=a22_0x3eb8,_0x7b6be8=_0x556818();while(!![]){try{const _0x4c043a=parseInt(_0x2e5035(0xb6))/0x1+parseInt(_0x2e5035(0xca))/0x2+parseInt(_0x2e5035(0xcb))/0x3+parseInt(_0x2e5035(0xbe))/0x4*(-parseInt(_0x2e5035(0xc7))/0x5)+-parseInt(_0x2e5035(0xc0))/0x6*(parseInt(_0x2e5035(0xb8))/0x7)+parseInt(_0x2e5035(0xba))/0x8+parseInt(_0x2e5035(0xb7))/0x9;if(_0x4c043a===_0x345af0)break;else _0x7b6be8['push'](_0x7b6be8['shift']());}catch(_0xfc1666){_0x7b6be8['push'](_0x7b6be8['shift']());}}}(a22_0x3042,0x2274f));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0xe53443(0xb9));process[a22_0xe53443(0xbc)][a22_0xe53443(0xbb)]=0x1;function run(_0x21bd2b){const _0x385396=a22_0xe53443,_0xfc361d={};_0xfc361d[_0x385396(0xc1)]=_0x385396(0xc2),_0xfc361d[_0x385396(0xbd)]=_0x385396(0xc8);const _0x3086e3=_0xfc361d;_0x21bd2b[_0x385396(0xc6)](HELP_HEADER_MESSAGE[_0x385396(0xc9)])[_0x385396(0xc5)](_0x3086e3[_0x385396(0xc1)])[_0x385396(0xc3)]()[_0x385396(0xc8)](_0x3086e3[_0x385396(0xbd)])[_0x385396(0xc4)](HELP_FOOTER_MESSAGE);}function a22_0x3042(){const _0x59f94d=['1123632aWjyxM','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','env','TCWvp','176LICmov','exports','270aXTDzk','cErvH','commands','demandCommand','epilogue','commandDir','usage','18430FrDvgz','help','root','175448sBPXpb','735456dErPcp','77840KhiEVM','261711IrgGru','43078eRUNRu','./config/constants'];a22_0x3042=function(){return _0x59f94d;};return a22_0x3042();}module[a22_0xe53443(0xbf)]=run;
2
+ 'use strict';const a22_0x16b141=a22_0x346b;function a22_0x346b(_0x56ee28,_0x4ffe99){const _0x50c4d4=a22_0x50c4();return a22_0x346b=function(_0x346b1d,_0x585f6d){_0x346b1d=_0x346b1d-0x1ef;let _0x1a7edc=_0x50c4d4[_0x346b1d];return _0x1a7edc;},a22_0x346b(_0x56ee28,_0x4ffe99);}(function(_0x4b6e29,_0x574f13){const _0x5a0c16=a22_0x346b,_0x1a4426=_0x4b6e29();while(!![]){try{const _0x51469f=-parseInt(_0x5a0c16(0x1fa))/0x1+-parseInt(_0x5a0c16(0x1f3))/0x2*(-parseInt(_0x5a0c16(0x1f7))/0x3)+-parseInt(_0x5a0c16(0x203))/0x4*(parseInt(_0x5a0c16(0x201))/0x5)+-parseInt(_0x5a0c16(0x1f4))/0x6*(-parseInt(_0x5a0c16(0x1f0))/0x7)+-parseInt(_0x5a0c16(0x1f1))/0x8*(-parseInt(_0x5a0c16(0x1fd))/0x9)+parseInt(_0x5a0c16(0x1ef))/0xa+parseInt(_0x5a0c16(0x1fc))/0xb*(-parseInt(_0x5a0c16(0x1fb))/0xc);if(_0x51469f===_0x574f13)break;else _0x1a4426['push'](_0x1a4426['shift']());}catch(_0x451dd1){_0x1a4426['push'](_0x1a4426['shift']());}}}(a22_0x50c4,0x8f138));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a22_0x16b141(0x202));process['env']['AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE']=0x1;function a22_0x50c4(){const _0x1a9e5b=['6336012kmqjhR','usage','help','16005rSPEhZ','DVggD','root','14833QrNryb','36OWJIiz','4405566ZJSpZG','1080351QfyqsI','demandCommand','exports','epilogue','15550RTjUwt','./config/constants','316FoOcAP','yDEuo','317760GAQjRO','7VrfYqs','16oSUInI','commands','270PswirR'];a22_0x50c4=function(){return _0x1a9e5b;};return a22_0x50c4();}function run(_0x3b5a00){const _0x1ec38b=a22_0x16b141,_0x23a769={};_0x23a769['yDEuo']=_0x1ec38b(0x1f2),_0x23a769[_0x1ec38b(0x1f8)]=_0x1ec38b(0x1f6);const _0x514a8b=_0x23a769;_0x3b5a00[_0x1ec38b(0x1f5)](HELP_HEADER_MESSAGE[_0x1ec38b(0x1f9)])['commandDir'](_0x514a8b[_0x1ec38b(0x204)])[_0x1ec38b(0x1fe)]()[_0x1ec38b(0x1f6)](_0x514a8b['DVggD'])[_0x1ec38b(0x200)](HELP_FOOTER_MESSAGE);}module[a22_0x16b141(0x1ff)]=run;
@@ -1 +1 @@
1
- const a23_0x1487d4=a23_0x4ee5;function a23_0x4ee5(_0x114856,_0x40934e){const _0x54ddf4=a23_0x54dd();return a23_0x4ee5=function(_0x4ee51b,_0x1267eb){_0x4ee51b=_0x4ee51b-0xb5;let _0x3512d5=_0x54ddf4[_0x4ee51b];return _0x3512d5;},a23_0x4ee5(_0x114856,_0x40934e);}(function(_0x27fe14,_0x554969){const _0x153ee1=a23_0x4ee5,_0x5eff20=_0x27fe14();while(!![]){try{const _0x15b32e=-parseInt(_0x153ee1(0xea))/0x1+-parseInt(_0x153ee1(0xf1))/0x2+parseInt(_0x153ee1(0xf7))/0x3*(parseInt(_0x153ee1(0xe7))/0x4)+parseInt(_0x153ee1(0x100))/0x5+parseInt(_0x153ee1(0xc7))/0x6*(-parseInt(_0x153ee1(0xcd))/0x7)+-parseInt(_0x153ee1(0x12f))/0x8+parseInt(_0x153ee1(0xdf))/0x9;if(_0x15b32e===_0x554969)break;else _0x5eff20['push'](_0x5eff20['shift']());}catch(_0x492ca8){_0x5eff20['push'](_0x5eff20['shift']());}}}(a23_0x54dd,0xb644d));const awsSDK=require('aws-sdk'),{logger}=require(a23_0x1487d4(0xe6));exports[a23_0x1487d4(0x120)]=_0x2e36c9=>{const _0x3b30f9=a23_0x1487d4,_0x23990c={'SAEHc':function(_0x15ff2c,_0x9e1971){return _0x15ff2c(_0x9e1971);},'uokoq':_0x3b30f9(0xc3),'JqCWG':function(_0x2989a7,_0x58ee86){return _0x2989a7(_0x58ee86);},'XVZpf':function(_0x4753a1,_0x14bd34){return _0x4753a1!==_0x14bd34;},'mBJsb':_0x3b30f9(0x108),'ljdYl':'Sgohy','qZUvo':function(_0x5df31e,_0x3b8723){return _0x5df31e!==_0x3b8723;},'YVzka':_0x3b30f9(0x12a)};return new Promise((_0x111ce5,_0x5e499c)=>{const _0x1e0535=_0x3b30f9,_0x22fc2e={'fbDWg':function(_0x3f9de1,_0x5ec6a9){const _0x3192c6=a23_0x4ee5;return _0x23990c[_0x3192c6(0x13c)](_0x3f9de1,_0x5ec6a9);},'EDmam':_0x23990c[_0x1e0535(0x105)],'LoqeH':function(_0x42ac77,_0x45c734){return _0x23990c['JqCWG'](_0x42ac77,_0x45c734);},'dvHSS':function(_0x4e84ab,_0x2c2207){return _0x23990c['XVZpf'](_0x4e84ab,_0x2c2207);},'BlMoM':_0x23990c['mBJsb'],'KQFPL':_0x23990c[_0x1e0535(0xd3)]};if(_0x23990c[_0x1e0535(0x106)](_0x23990c[_0x1e0535(0x11a)],_0x23990c['YVzka'])){const _0x53b1c1={'tqdQe':function(_0x2ed2e1,_0x12c70b){return _0x22fc2e['fbDWg'](_0x2ed2e1,_0x12c70b);}},_0x2271ca={};_0x2271ca['apiVersion']=_0x22fc2e[_0x1e0535(0x103)],_0x2271ca[_0x1e0535(0x12c)]=_0x43cde3;const _0x283f52=new _0x2bfbf2[(_0x1e0535(0x132))](_0x2271ca);_0x283f52[_0x1e0535(0x140)]()['promise']()['then'](_0x46e94f=>{_0x53b1c1['tqdQe'](_0x3adf57,_0x46e94f);})[_0x1e0535(0xdc)](_0x17742f=>{const _0x2d0475=_0x1e0535;_0x5895d5[_0x2d0475(0xe0)](_0x2d0475(0x129)+_0x17742f),_0x53b1c1[_0x2d0475(0x139)](_0x1b735e,_0x17742f);});}else{const _0x7e8b39={};_0x7e8b39[_0x1e0535(0x10e)]=_0x23990c[_0x1e0535(0x105)],_0x7e8b39[_0x1e0535(0x12c)]=_0x2e36c9;const _0x41ce5f=new awsSDK[(_0x1e0535(0x132))](_0x7e8b39);_0x41ce5f[_0x1e0535(0x101)]()['promise']()[_0x1e0535(0x13d)](_0x3cef7a=>{const _0x115ebe=_0x1e0535,_0x4e5510={'RWciQ':function(_0x3104a3,_0xfa0072){return _0x22fc2e['fbDWg'](_0x3104a3,_0xfa0072);},'JxSTf':function(_0x490fa7,_0x269caf){const _0x5d4a0b=a23_0x4ee5;return _0x22fc2e[_0x5d4a0b(0x118)](_0x490fa7,_0x269caf);},'EARWD':_0x22fc2e[_0x115ebe(0x103)]};if(_0x22fc2e[_0x115ebe(0xf9)](_0x22fc2e[_0x115ebe(0xef)],_0x22fc2e[_0x115ebe(0xef)]))return new _0x2b5988((_0x5a6e2b,_0x46ee12)=>{const _0x548769=_0x115ebe,_0x5c3ee7={'sLvsz':function(_0x4b2393,_0x234f8c){const _0x3e5feb=a23_0x4ee5;return _0x4e5510[_0x3e5feb(0xcb)](_0x4b2393,_0x234f8c);},'NKgiS':function(_0x4ed3f4,_0xd5ef73){const _0x328c5e=a23_0x4ee5;return _0x4e5510[_0x328c5e(0x11f)](_0x4ed3f4,_0xd5ef73);}},_0x1e3b63={};_0x1e3b63[_0x548769(0x10e)]=_0x4e5510[_0x548769(0xca)],_0x1e3b63[_0x548769(0x12c)]=_0x3a051b;const _0x1e065d=new _0x38de6a[(_0x548769(0x132))](_0x1e3b63);_0x1e065d['describeSubnets']()['promise']()[_0x548769(0x13d)](_0x1db136=>{const _0x52995a=_0x548769;_0x5c3ee7[_0x52995a(0x14b)](_0x5a6e2b,_0x1db136);})['catch'](_0xd8a6f6=>{const _0xbe535f=_0x548769;_0x39a5a6[_0xbe535f(0xe0)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0xd8a6f6),_0x5c3ee7[_0xbe535f(0xc6)](_0x46ee12,_0xd8a6f6);});});else _0x22fc2e[_0x115ebe(0x118)](_0x111ce5,_0x3cef7a);})[_0x1e0535(0xdc)](_0x262b23=>{const _0x30da9f=_0x1e0535,_0x3fcd20={'veRpD':function(_0x428e54,_0xc56782){return _0x22fc2e['LoqeH'](_0x428e54,_0xc56782);}};_0x22fc2e[_0x30da9f(0xf9)](_0x22fc2e[_0x30da9f(0xd7)],_0x22fc2e['KQFPL'])?(_0x27899e[_0x30da9f(0xe0)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x467252),_0x3fcd20['veRpD'](_0x3da478,_0x20c99b)):(logger[_0x30da9f(0xe0)](_0x30da9f(0xc8)+_0x262b23),_0x22fc2e[_0x30da9f(0x13f)](_0x5e499c,_0x262b23));});}});},exports['isBucketPresent']=_0xdc45d2=>{const _0x4e283a=a23_0x1487d4,_0x4a2467={'FDsnE':function(_0x57a718,_0x231908){return _0x57a718===_0x231908;},'zcxMQ':_0x4e283a(0x109),'qWzAD':function(_0x2e2bbe,_0xdb7e7a){return _0x2e2bbe(_0xdb7e7a);},'rVWJy':function(_0x1c05d5,_0x45bc3f){return _0x1c05d5(_0x45bc3f);},'SEjva':_0x4e283a(0xc3),'ywIfV':function(_0x610e7,_0x36ac99){return _0x610e7===_0x36ac99;},'EoROd':_0x4e283a(0xd8),'hDRJG':function(_0x5a475c,_0x9bdef9){return _0x5a475c(_0x9bdef9);},'SrlXf':_0x4e283a(0x149),'OnEII':_0x4e283a(0xee)},_0x3515f9=new awsSDK['S3']();return new Promise((_0x41fcc6,_0x346d48)=>{const _0x1acceb=_0x4e283a,_0x3bc761={'eJJtj':function(_0x3d28bb,_0x3fcac8){const _0x12d42e=a23_0x4ee5;return _0x4a2467[_0x12d42e(0x115)](_0x3d28bb,_0x3fcac8);},'tYAPH':_0x4a2467['SEjva'],'xcpyU':function(_0x269418,_0x1d5a31){return _0x4a2467['ywIfV'](_0x269418,_0x1d5a31);},'yHSkL':_0x4a2467['EoROd'],'fdIUB':function(_0x28d6a1,_0xfc86c4){const _0x4499a8=a23_0x4ee5;return _0x4a2467[_0x4499a8(0x115)](_0x28d6a1,_0xfc86c4);},'bGbFr':function(_0x4af0d8,_0x4361ed){return _0x4a2467['hDRJG'](_0x4af0d8,_0x4361ed);}};if(_0x4a2467[_0x1acceb(0xd6)](_0x4a2467[_0x1acceb(0xbb)],_0x4a2467[_0x1acceb(0xfd)]))_0x3bc761['eJJtj'](_0x214dd4,_0x5b1df0[_0x1acceb(0xf5)]);else{const _0xd583c5={};_0xd583c5[_0x1acceb(0x125)]=_0xdc45d2,_0x3515f9[_0x1acceb(0xfe)](_0xd583c5)['promise']()[_0x1acceb(0x13d)](_0x339a8a=>{const _0xd8cbde=_0x1acceb;if(_0x3bc761[_0xd8cbde(0x131)](_0x3bc761[_0xd8cbde(0xe2)],_0x3bc761['yHSkL']))logger[_0xd8cbde(0xcf)](_0xd8cbde(0x11b)+_0xdc45d2+_0xd8cbde(0xdd)),_0x3bc761['fdIUB'](_0x41fcc6,!![]);else{const _0x2e4971={'cCSmD':function(_0x4c57ed,_0x439734){return _0x3bc761['eJJtj'](_0x4c57ed,_0x439734);}},_0x53d4e8={};_0x53d4e8[_0xd8cbde(0x10e)]=_0x3bc761[_0xd8cbde(0x10b)],_0x53d4e8[_0xd8cbde(0x12c)]=_0x57198b;const _0x5e1b69=new _0x51cb60[(_0xd8cbde(0x132))](_0x53d4e8);_0x5e1b69['describeVpcs']()[_0xd8cbde(0xde)]()[_0xd8cbde(0x13d)](_0x59e3a6=>{_0x2e4971['cCSmD'](_0xd180dd,_0x59e3a6);})[_0xd8cbde(0xdc)](_0x4a9138=>{const _0x3ebbf7=_0xd8cbde;_0x4806bb[_0x3ebbf7(0xe0)](_0x3ebbf7(0xc8)+_0x4a9138),_0x2e4971['cCSmD'](_0x48aa85,_0x4a9138);});}})[_0x1acceb(0xdc)](()=>{const _0xe4e9ae=_0x1acceb;_0x4a2467[_0xe4e9ae(0xd4)](_0x4a2467[_0xe4e9ae(0x113)],_0x4a2467['zcxMQ'])?(logger[_0xe4e9ae(0xc4)](_0xe4e9ae(0x11b)+_0xdc45d2+_0xe4e9ae(0xf4)),_0x4a2467[_0xe4e9ae(0xfc)](_0x41fcc6,![])):_0x3bc761[_0xe4e9ae(0x128)](_0x3a1fe4,_0x1f2ab3);});}});},exports['fetchSubnets']=_0x245cc3=>{const _0x4e8553=a23_0x1487d4,_0x52dbf8={'eWtnv':function(_0x3e7117,_0x5a748c){return _0x3e7117(_0x5a748c);},'JZear':function(_0xfecf26,_0x5cd6cf){return _0xfecf26(_0x5cd6cf);},'JDNUy':'2016-11-15','PcNlc':function(_0x2cb5cc,_0x1ca624){return _0x2cb5cc===_0x1ca624;},'RaxXv':_0x4e8553(0x144),'xYCRA':_0x4e8553(0xd5),'asBZX':function(_0x31a911,_0x49f27e){return _0x31a911!==_0x49f27e;},'SbVGU':_0x4e8553(0xb6),'fIETS':_0x4e8553(0x133),'qHUCH':'sMeZP','HPUnh':_0x4e8553(0x135)};return new Promise((_0x5d4249,_0x3e15a0)=>{const _0x590c85=_0x4e8553,_0x27dfeb={'tNPGU':function(_0x117efa,_0x127e90){const _0x11d134=a23_0x4ee5;return _0x52dbf8[_0x11d134(0x116)](_0x117efa,_0x127e90);},'TuePv':_0x52dbf8[_0x590c85(0x11c)],'HJrVK':function(_0x5cd7c4,_0x2fc0df){const _0x4ed53a=_0x590c85;return _0x52dbf8[_0x4ed53a(0x137)](_0x5cd7c4,_0x2fc0df);},'dYtOU':_0x52dbf8[_0x590c85(0x126)],'qvMmv':_0x52dbf8[_0x590c85(0xc9)],'YPrUO':function(_0x4ec5b7,_0x9c96c7){const _0x2106b1=_0x590c85;return _0x52dbf8[_0x2106b1(0x116)](_0x4ec5b7,_0x9c96c7);},'PLUqT':function(_0x9ffca6,_0x557432){const _0x5f25d7=_0x590c85;return _0x52dbf8[_0x5f25d7(0x11d)](_0x9ffca6,_0x557432);},'JXjnL':_0x52dbf8[_0x590c85(0x143)],'nEihZ':_0x52dbf8[_0x590c85(0xff)]};if(_0x52dbf8['PcNlc'](_0x52dbf8[_0x590c85(0xbf)],_0x52dbf8[_0x590c85(0x147)]))_0x52dbf8[_0x590c85(0xbd)](_0x56d3bb,_0x1187af);else{const _0x273448={};_0x273448[_0x590c85(0x10e)]=_0x52dbf8[_0x590c85(0x11c)],_0x273448[_0x590c85(0x12c)]=_0x245cc3;const _0x8e1e68=new awsSDK['EC2'](_0x273448);_0x8e1e68[_0x590c85(0x140)]()['promise']()[_0x590c85(0x13d)](_0x130180=>{const _0x53cac0=_0x590c85,_0x4762b6={'Ichhd':function(_0x313277,_0x1de608){return _0x27dfeb['tNPGU'](_0x313277,_0x1de608);},'rwhAZ':function(_0x3cb42f,_0x127372){const _0x528074=a23_0x4ee5;return _0x27dfeb[_0x528074(0xc1)](_0x3cb42f,_0x127372);},'FkfNU':_0x27dfeb['TuePv']};if(_0x27dfeb['HJrVK'](_0x27dfeb[_0x53cac0(0xec)],_0x27dfeb[_0x53cac0(0x14a)])){const _0x1e652a={'gYaQi':function(_0x3df954,_0x40ddf6){const _0x3b4028=_0x53cac0;return _0x4762b6[_0x3b4028(0x145)](_0x3df954,_0x40ddf6);}},_0x18bb0a={};_0x18bb0a[_0x53cac0(0x10e)]=_0x4762b6[_0x53cac0(0x13e)],_0x18bb0a[_0x53cac0(0x12c)]=_0x21a0de;const _0x1ce197=new _0x16f517['EC2'](_0x18bb0a);_0x1ce197[_0x53cac0(0x12d)]()[_0x53cac0(0xde)]()['then'](_0x30897e=>{const _0x1387be=_0x53cac0;_0x1e652a[_0x1387be(0x13b)](_0x4af5a6,_0x30897e);})['catch'](_0xb11283=>{const _0x4f2034=_0x53cac0;_0x4b16ba['error'](_0x4f2034(0x102)+_0xb11283),_0x4762b6['Ichhd'](_0x539984,_0xb11283);});}else _0x27dfeb[_0x53cac0(0x114)](_0x5d4249,_0x130180);})[_0x590c85(0xdc)](_0x550337=>{const _0x3063fe=_0x590c85,_0x427eed={'meClh':function(_0x675cad,_0x240264){const _0x3cdb1c=a23_0x4ee5;return _0x27dfeb[_0x3cdb1c(0x114)](_0x675cad,_0x240264);}};if(_0x27dfeb['PLUqT'](_0x27dfeb['JXjnL'],_0x27dfeb[_0x3063fe(0x14d)]))logger[_0x3063fe(0xe0)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x550337),_0x27dfeb[_0x3063fe(0xc1)](_0x3e15a0,_0x550337);else{const _0x5117f2={'HWyVw':function(_0x5afec8,_0x300894){const _0x189333=_0x3063fe;return _0x427eed[_0x189333(0xd0)](_0x5afec8,_0x300894);}},_0x2e9bea=new _0x16ea98['S3']();return new _0x43b796((_0x29ff47,_0x2d9977)=>{const _0x37160e=_0x3063fe,_0x482d80={};_0x482d80[_0x37160e(0x125)]=_0x3cc44b,_0x2e9bea[_0x37160e(0xfe)](_0x482d80)[_0x37160e(0xde)]()[_0x37160e(0x13d)](_0x589f34=>{const _0x575369=_0x37160e;_0x4c528b[_0x575369(0xcf)](_0x575369(0x11b)+_0x1eb573+_0x575369(0xdd)),_0x5117f2[_0x575369(0x134)](_0x29ff47,!![]);})[_0x37160e(0xdc)](()=>{const _0x3bc7e9=_0x37160e;_0x54a618[_0x3bc7e9(0xc4)](_0x3bc7e9(0x11b)+_0x526682+_0x3bc7e9(0xf4)),_0x5117f2[_0x3bc7e9(0x134)](_0x29ff47,![]);});});}});}});},exports['fetchSecurityGroups']=_0x59878e=>{const _0x2f9fb1=a23_0x1487d4,_0x4432fe={'TWgsf':function(_0x16e80a,_0x2aebc4){return _0x16e80a(_0x2aebc4);},'HaWdJ':'2016-11-15','uKGuA':function(_0xac80a2,_0x5f226d){return _0xac80a2===_0x5f226d;},'UuIFR':_0x2f9fb1(0x110),'BqIMq':_0x2f9fb1(0xb9),'SYDam':function(_0x4cf8e7,_0x1a6981){return _0x4cf8e7(_0x1a6981);},'Urged':function(_0xe1d5f,_0x5cdf3d){return _0xe1d5f!==_0x5cdf3d;},'RpiSU':_0x2f9fb1(0xbe),'UTEuy':_0x2f9fb1(0xf0),'JDLwY':function(_0x49b130,_0x8a743){return _0x49b130(_0x8a743);},'HjDwe':_0x2f9fb1(0x119)};return new Promise((_0x67c737,_0x15d16d)=>{const _0xb24d63=_0x2f9fb1,_0x55a62a={'tHOaT':function(_0x5e4ab7,_0x4fb5fe){return _0x4432fe['TWgsf'](_0x5e4ab7,_0x4fb5fe);},'SpzaE':_0x4432fe[_0xb24d63(0x130)],'rLhTT':function(_0x449b39,_0xa12a2f){const _0x2c8e87=_0xb24d63;return _0x4432fe[_0x2c8e87(0x136)](_0x449b39,_0xa12a2f);},'zkdme':_0x4432fe[_0xb24d63(0xeb)],'vUADL':_0x4432fe[_0xb24d63(0x11e)],'gomvQ':function(_0x450a7b,_0x4c71a9){return _0x4432fe['SYDam'](_0x450a7b,_0x4c71a9);},'wXCng':function(_0x1f363b,_0x5d73dc){return _0x4432fe['Urged'](_0x1f363b,_0x5d73dc);},'xuZpM':_0x4432fe[_0xb24d63(0x148)],'pjMvj':_0x4432fe[_0xb24d63(0xda)],'HZqhR':function(_0x1febbb,_0x4a796e){return _0x4432fe['JDLwY'](_0x1febbb,_0x4a796e);}};if(_0x4432fe[_0xb24d63(0x136)](_0x4432fe[_0xb24d63(0x138)],_0x4432fe['HjDwe'])){const _0x23e5f8={};_0x23e5f8[_0xb24d63(0x10e)]=_0x4432fe[_0xb24d63(0x130)],_0x23e5f8[_0xb24d63(0x12c)]=_0x59878e;const _0x289c93=new awsSDK[(_0xb24d63(0x132))](_0x23e5f8);_0x289c93[_0xb24d63(0x12d)]()[_0xb24d63(0xde)]()['then'](_0x496ff6=>{const _0x31a6fa=_0xb24d63,_0x28458a={'bwSWO':function(_0x5ccf12,_0x5e095d){return _0x55a62a['tHOaT'](_0x5ccf12,_0x5e095d);},'EgNWb':_0x55a62a[_0x31a6fa(0x124)]};if(_0x55a62a[_0x31a6fa(0x10d)](_0x55a62a['zkdme'],_0x55a62a[_0x31a6fa(0x121)])){const _0x56e452={'rFvpy':function(_0x280d9a,_0x5d5a6a){const _0x1d876f=_0x31a6fa;return _0x28458a[_0x1d876f(0x12e)](_0x280d9a,_0x5d5a6a);},'jiajd':function(_0x4412a1,_0x306264){const _0x3c2b70=_0x31a6fa;return _0x28458a[_0x3c2b70(0x12e)](_0x4412a1,_0x306264);},'aqeyI':_0x28458a[_0x31a6fa(0xbc)]};return new _0x4e64cf((_0x59b00b,_0x15c08f)=>{const _0x4b679a=_0x31a6fa,_0x5750bf={};_0x5750bf['apiVersion']=_0x56e452['aqeyI'],_0x5750bf[_0x4b679a(0x12c)]=_0xa27544;const _0xd02705=new _0x5c388b['EC2'](_0x5750bf);_0xd02705[_0x4b679a(0x12d)]()['promise']()[_0x4b679a(0x13d)](_0x15ea21=>{const _0x1b1637=_0x4b679a;_0x56e452[_0x1b1637(0xfb)](_0x59b00b,_0x15ea21);})['catch'](_0x502eb5=>{const _0x3cb568=_0x4b679a;_0x3ae338[_0x3cb568(0xe0)](_0x3cb568(0x102)+_0x502eb5),_0x56e452[_0x3cb568(0xce)](_0x15c08f,_0x502eb5);});});}else _0x55a62a[_0x31a6fa(0x123)](_0x67c737,_0x496ff6);})[_0xb24d63(0xdc)](_0x22b20a=>{const _0x312b4a=_0xb24d63;if(_0x55a62a['wXCng'](_0x55a62a[_0x312b4a(0x112)],_0x55a62a[_0x312b4a(0xb5)]))logger['error'](_0x312b4a(0x102)+_0x22b20a),_0x55a62a['HZqhR'](_0x15d16d,_0x22b20a);else{const _0x57b985={'duoUh':function(_0x312efc,_0x492cec){const _0x39f955=_0x312b4a;return _0x55a62a[_0x39f955(0x142)](_0x312efc,_0x492cec);},'IyhBO':_0x55a62a[_0x312b4a(0x124)]};return new _0x40978e((_0x3c7e68,_0x2c0147)=>{const _0x5e8334=_0x312b4a,_0x1e9b56={};_0x1e9b56[_0x5e8334(0x10e)]=_0x57b985[_0x5e8334(0xe8)],_0x1e9b56[_0x5e8334(0x12c)]=_0x2b5477;const _0x5d1ae7=new _0x200d41[(_0x5e8334(0x132))](_0x1e9b56);_0x5d1ae7['describeVpcs']()['promise']()[_0x5e8334(0x13d)](_0x1b451a=>{const _0x4fdd14=_0x5e8334;_0x57b985[_0x4fdd14(0x12b)](_0x3c7e68,_0x1b451a);})[_0x5e8334(0xdc)](_0xecd93=>{const _0x51f095=_0x5e8334;_0xeb304e[_0x51f095(0xe0)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0xecd93),_0x57b985[_0x51f095(0x12b)](_0x2c0147,_0xecd93);});});}});}else _0x5bd3e5[_0xb24d63(0xe0)](_0xb24d63(0x117)+_0x4e789e),_0x4432fe[_0xb24d63(0xf3)](_0x56a6b5,_0x43f457);});},exports[a23_0x1487d4(0xb8)]=()=>{const _0x5b1ab8=a23_0x1487d4,_0xbfb26f={'auodE':function(_0x230f84,_0x549d2c){return _0x230f84(_0x549d2c);},'OzOfo':function(_0x33896e,_0x38493b){return _0x33896e!==_0x38493b;},'yfIJL':function(_0x452b9f,_0x279d01){return _0x452b9f(_0x279d01);},'HBCtY':function(_0x2e4b54,_0x442544){return _0x2e4b54===_0x442544;},'nIEiY':_0x5b1ab8(0xf6),'jehnu':_0x5b1ab8(0x14c),'NhUrm':function(_0xc47a4a,_0x321103){return _0xc47a4a!==_0x321103;},'xbFOE':function(_0x425044,_0x4a2cc0){return _0x425044!==_0x4a2cc0;},'iveRk':function(_0xb44fa7,_0xb3ef64){return _0xb44fa7===_0xb3ef64;},'bcJZA':_0x5b1ab8(0x10f),'NWqOc':_0x5b1ab8(0xfa),'RbnVz':function(_0x2bca05,_0x487dd5){return _0x2bca05!==_0x487dd5;},'TWzHF':_0x5b1ab8(0xe9),'WWYKd':function(_0xf31538,_0x3549cf){return _0xf31538(_0x3549cf);},'jTsQg':function(_0x605838,_0x1b0e64){return _0x605838!==_0x1b0e64;},'UBtCP':_0x5b1ab8(0x10a),'GgVUj':_0x5b1ab8(0x111),'XeHVp':function(_0x209e4b,_0x37e949){return _0x209e4b!==_0x37e949;},'GJfwc':_0x5b1ab8(0xe4),'YhoUO':_0x5b1ab8(0xc3)};return new Promise((_0x3e9bec,_0x4cc24c)=>{const _0x394b64=_0x5b1ab8,_0x518fd9={'SzwmD':function(_0x1352d1,_0x66c053){const _0x435658=a23_0x4ee5;return _0xbfb26f[_0x435658(0x107)](_0x1352d1,_0x66c053);},'wQsCB':function(_0x2e074e,_0x5c2025){const _0x4e1340=a23_0x4ee5;return _0xbfb26f[_0x4e1340(0xdb)](_0x2e074e,_0x5c2025);},'tkaOQ':_0xbfb26f[_0x394b64(0x146)],'TMgAz':_0xbfb26f[_0x394b64(0xb7)]};if(_0xbfb26f[_0x394b64(0x13a)](_0xbfb26f[_0x394b64(0xf8)],_0xbfb26f[_0x394b64(0xf8)]))_0x518fd9[_0x394b64(0xe5)](_0x11a067,_0x47f338);else{const _0x1f2978={};_0x1f2978[_0x394b64(0x10e)]=_0xbfb26f[_0x394b64(0xed)];const _0x253103=new awsSDK[(_0x394b64(0x132))](_0x1f2978);_0x253103['describeRegions']()[_0x394b64(0xde)]()['then']((_0x2677a0,_0x476ea8)=>{const _0x20fe90=_0x394b64,_0x7e5fe8={'dEwMx':function(_0x2310b1,_0xf82a40){const _0x250125=a23_0x4ee5;return _0xbfb26f[_0x250125(0x107)](_0x2310b1,_0xf82a40);},'YTucJ':function(_0x3e4e76,_0x335033){const _0x552972=a23_0x4ee5;return _0xbfb26f[_0x552972(0xd2)](_0x3e4e76,_0x335033);},'OWyxy':function(_0xb0f763,_0x530eba){const _0x22aa6a=a23_0x4ee5;return _0xbfb26f[_0x22aa6a(0xcc)](_0xb0f763,_0x530eba);}};if(_0xbfb26f[_0x20fe90(0xd1)](_0xbfb26f['nIEiY'],_0xbfb26f[_0x20fe90(0x10c)])){const _0x11dc05={'JhclP':function(_0x158193,_0x3b484c){const _0x2cdab1=_0x20fe90;return _0x518fd9[_0x2cdab1(0xe5)](_0x158193,_0x3b484c);}},_0x348f73={};_0x348f73[_0x20fe90(0x125)]=_0x1b622b,_0x43f347[_0x20fe90(0xfe)](_0x348f73)[_0x20fe90(0xde)]()[_0x20fe90(0x13d)](_0x5060f7=>{const _0x3b11c6=_0x20fe90;_0x5c20f4[_0x3b11c6(0xcf)](_0x3b11c6(0x11b)+_0x5401be+_0x3b11c6(0xdd)),_0x7e5fe8[_0x3b11c6(0xe3)](_0x3d4d84,!![]);})[_0x20fe90(0xdc)](()=>{const _0x4f978a=_0x20fe90;_0x195f73['info'](_0x4f978a(0x11b)+_0x3daac4+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x11dc05['JhclP'](_0x771444,![]);});}else _0xbfb26f[_0x20fe90(0x122)](_0x2677a0,undefined)&&_0xbfb26f[_0x20fe90(0x104)](_0x2677a0[_0x20fe90(0xf5)],undefined)?_0xbfb26f[_0x20fe90(0xc5)](_0xbfb26f[_0x20fe90(0xba)],_0xbfb26f[_0x20fe90(0xc0)])?_0x7e5fe8[_0x20fe90(0xd9)](_0x5568e2,_0x11a9cf)&&_0x7e5fe8[_0x20fe90(0xd9)](_0x41f959[_0x20fe90(0xf5)],_0x55c92c)?_0x7e5fe8[_0x20fe90(0x141)](_0x3e6b20,_0xde55ab[_0x20fe90(0xf5)]):_0x7e5fe8[_0x20fe90(0x141)](_0x307fba,{}):_0xbfb26f[_0x20fe90(0xcc)](_0x3e9bec,_0x2677a0[_0x20fe90(0xf5)]):_0xbfb26f[_0x20fe90(0xc2)](_0xbfb26f['TWzHF'],_0xbfb26f['TWzHF'])?(_0x495787[_0x20fe90(0xe0)](_0x20fe90(0x129)+_0x49389e),_0x518fd9[_0x20fe90(0xe5)](_0x38101e,_0x35abc3)):_0xbfb26f[_0x20fe90(0xf2)](_0x3e9bec,{});})[_0x394b64(0xdc)](_0xe052ef=>{const _0x32791a=_0x394b64;_0x518fd9['wQsCB'](_0x518fd9[_0x32791a(0xe1)],_0x518fd9['TMgAz'])?(logger[_0x32791a(0xe0)](_0x32791a(0x117)+_0xe052ef),_0x518fd9[_0x32791a(0xe5)](_0x4cc24c,_0xe052ef)):_0x518fd9['SzwmD'](_0x3f9c64,{});});}});},exports[a23_0x1487d4(0x127)]=awsSDK;function a23_0x54dd(){const _0x3d01bc=['2111800XOnQll','WWYKd','TWgsf','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','Regions','usweB','3yAzhXw','GJfwc','dvHSS','JUUxG','rFvpy','qWzAD','OnEII','headBucket','fIETS','3432385SAHVKG','describeVpcs','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','EDmam','xbFOE','uokoq','qZUvo','auodE','Qajfr','mCHEG','fpXOl','tYAPH','jehnu','rLhTT','apiVersion','cUhRh','LhhVc','wwjRE','xuZpM','zcxMQ','YPrUO','rVWJy','JZear','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','LoqeH','LvSJN','YVzka','Bucket:\x20','JDNUy','asBZX','BqIMq','JxSTf','fetchVPCs','vUADL','NhUrm','tHOaT','SpzaE','Bucket','RaxXv','awsObj','bGbFr','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','tNOSu','duoUh','region','describeSecurityGroups','bwSWO','1568520ZYhEYB','HaWdJ','xcpyU','EC2','bZpqu','HWyVw','VNCBw','uKGuA','PcNlc','HjDwe','tqdQe','XeHVp','gYaQi','SAEHc','then','FkfNU','fbDWg','describeSubnets','OWyxy','gomvQ','SbVGU','TJfpy','rwhAZ','UBtCP','HPUnh','RpiSU','MMJjW','qvMmv','sLvsz','SjxfK','nEihZ','pjMvj','OCvGG','GgVUj','getAWSRegions','jRnQV','bcJZA','SrlXf','EgNWb','eWtnv','FvmsH','qHUCH','NWqOc','tNPGU','RbnVz','2016-11-15','info','iveRk','NKgiS','570RUQwGE','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','xYCRA','EARWD','RWciQ','yfIJL','14441ZCFuWp','jiajd','warn','meClh','HBCtY','OzOfo','ljdYl','FDsnE','CjNAT','ywIfV','KQFPL','VSmuA','YTucJ','UTEuy','jTsQg','catch','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','promise','18476379IOqyZx','error','tkaOQ','yHSkL','dEwMx','xcYtK','SzwmD','../config/logger','1737340XOTIBI','IyhBO','AnbFF','979220lNsapw','UuIFR','dYtOU','YhoUO','zuHCo','BlMoM','JJKhK'];a23_0x54dd=function(){return _0x3d01bc;};return a23_0x54dd();}
1
+ const a23_0x4bd577=a23_0x2661;(function(_0xf20fc2,_0x937088){const _0x100b04=a23_0x2661,_0x5cddc4=_0xf20fc2();while(!![]){try{const _0x5336a6=parseInt(_0x100b04(0x14f))/0x1*(parseInt(_0x100b04(0x11d))/0x2)+-parseInt(_0x100b04(0x113))/0x3*(-parseInt(_0x100b04(0x122))/0x4)+-parseInt(_0x100b04(0xcf))/0x5+-parseInt(_0x100b04(0x123))/0x6*(parseInt(_0x100b04(0xd3))/0x7)+-parseInt(_0x100b04(0xd6))/0x8*(-parseInt(_0x100b04(0xdf))/0x9)+-parseInt(_0x100b04(0xfa))/0xa*(parseInt(_0x100b04(0x13e))/0xb)+parseInt(_0x100b04(0xee))/0xc;if(_0x5336a6===_0x937088)break;else _0x5cddc4['push'](_0x5cddc4['shift']());}catch(_0x339cf7){_0x5cddc4['push'](_0x5cddc4['shift']());}}}(a23_0x5769,0xa126f));function a23_0x2661(_0x5d4602,_0x3d7cda){const _0x57698f=a23_0x5769();return a23_0x2661=function(_0x26610f,_0x5360ed){_0x26610f=_0x26610f-0xc9;let _0xfb2197=_0x57698f[_0x26610f];return _0xfb2197;},a23_0x2661(_0x5d4602,_0x3d7cda);}const awsSDK=require(a23_0x4bd577(0x109)),{logger}=require(a23_0x4bd577(0xdb));exports[a23_0x4bd577(0x141)]=_0x20c51e=>{const _0x142517=a23_0x4bd577,_0x4fc092={'EfkXt':function(_0x6c004d,_0x4305fa){return _0x6c004d(_0x4305fa);},'qlBWT':function(_0x5c288e,_0xca086e){return _0x5c288e(_0xca086e);},'EhdZs':'2016-11-15','FcCsh':function(_0x17177f,_0x47ffe3){return _0x17177f===_0x47ffe3;},'STUBN':_0x142517(0x10c),'jvbYt':function(_0x395481,_0x2901db){return _0x395481(_0x2901db);},'vOKTM':function(_0x31a1bc,_0x174a7b){return _0x31a1bc(_0x174a7b);},'mrHWv':function(_0x375ee8,_0x2c2fff){return _0x375ee8!==_0x2c2fff;},'hJEmH':_0x142517(0xca),'IGbax':_0x142517(0xd4),'JboEJ':function(_0x4888b1,_0x59c6a2){return _0x4888b1(_0x59c6a2);},'QXppk':_0x142517(0xf9)};return new Promise((_0x495e34,_0x247c39)=>{const _0x1664bc=_0x142517,_0xfd92ae={'NdytD':function(_0x2bd175,_0x192db9){const _0x588611=a23_0x2661;return _0x4fc092[_0x588611(0xec)](_0x2bd175,_0x192db9);},'HDyXH':_0x4fc092['EhdZs'],'NcoDl':function(_0x2413d2,_0x19e0d6){const _0x10af05=a23_0x2661;return _0x4fc092[_0x10af05(0x10a)](_0x2413d2,_0x19e0d6);},'JUXtS':_0x4fc092[_0x1664bc(0x103)],'KsqeR':function(_0x2088f0,_0x1958e3){const _0x4a8bcb=_0x1664bc;return _0x4fc092[_0x4a8bcb(0x12f)](_0x2088f0,_0x1958e3);},'YWpBx':function(_0x1224c1,_0x3ae4b4){const _0xbc8881=_0x1664bc;return _0x4fc092[_0xbc8881(0x148)](_0x1224c1,_0x3ae4b4);},'jtNDn':function(_0x1428fa,_0x2e649b){const _0x45c988=_0x1664bc;return _0x4fc092[_0x45c988(0xfd)](_0x1428fa,_0x2e649b);},'scoNr':_0x4fc092[_0x1664bc(0x134)],'ThBxp':_0x4fc092[_0x1664bc(0xde)],'tJQwn':function(_0x3f80ae,_0x2a391e){const _0x27b686=_0x1664bc;return _0x4fc092[_0x27b686(0x12c)](_0x3f80ae,_0x2a391e);}};if(_0x4fc092['FcCsh'](_0x4fc092[_0x1664bc(0x132)],_0x4fc092[_0x1664bc(0x132)])){const _0x56cd1b={};_0x56cd1b['apiVersion']=_0x4fc092['EhdZs'],_0x56cd1b[_0x1664bc(0x107)]=_0x20c51e;const _0x52cf08=new awsSDK[(_0x1664bc(0x119))](_0x56cd1b);_0x52cf08[_0x1664bc(0x11a)]()[_0x1664bc(0x125)]()[_0x1664bc(0xe1)](_0x2ee990=>{const _0x5e3688=_0x1664bc,_0x3a84cb={'Hrfyd':function(_0x36ae91,_0x5619d0){const _0x270715=a23_0x2661;return _0xfd92ae[_0x270715(0x104)](_0x36ae91,_0x5619d0);},'dnPjD':function(_0x279fb7,_0x422e44){const _0x5f3ec6=a23_0x2661;return _0xfd92ae[_0x5f3ec6(0x104)](_0x279fb7,_0x422e44);},'HLnCt':_0xfd92ae['HDyXH']};if(_0xfd92ae[_0x5e3688(0x11f)](_0xfd92ae[_0x5e3688(0x147)],_0xfd92ae[_0x5e3688(0x147)]))_0xfd92ae[_0x5e3688(0x104)](_0x495e34,_0x2ee990);else{const _0x2cc576={'xqMkA':function(_0x575889,_0x4ab368){const _0x3818c0=_0x5e3688;return _0x3a84cb[_0x3818c0(0x157)](_0x575889,_0x4ab368);}},_0x2164c8={};_0x2164c8[_0x5e3688(0xe4)]=_0x3a84cb[_0x5e3688(0xf1)],_0x2164c8[_0x5e3688(0x107)]=_0x31421b;const _0xd37d28=new _0x4a9f55[(_0x5e3688(0x119))](_0x2164c8);_0xd37d28[_0x5e3688(0xcb)]()[_0x5e3688(0x125)]()[_0x5e3688(0xe1)](_0x3c291b=>{const _0x516f92=_0x5e3688;_0x3a84cb[_0x516f92(0x133)](_0x592a26,_0x3c291b);})[_0x5e3688(0xef)](_0x2118ed=>{const _0x79108=_0x5e3688;_0x555bbf[_0x79108(0x13d)](_0x79108(0xff)+_0x2118ed),_0x2cc576['xqMkA'](_0x52fe66,_0x2118ed);});}})[_0x1664bc(0xef)](_0x8f2d91=>{const _0x45746b=_0x1664bc;if(_0xfd92ae[_0x45746b(0x128)](_0xfd92ae[_0x45746b(0x11e)],_0xfd92ae['ThBxp']))logger[_0x45746b(0x13d)](_0x45746b(0x159)+_0x8f2d91),_0xfd92ae['tJQwn'](_0x247c39,_0x8f2d91);else{const _0x5962e0={'jyzMN':function(_0x46336d,_0x49152c){const _0x4a0efa=_0x45746b;return _0xfd92ae[_0x4a0efa(0x13b)](_0x46336d,_0x49152c);},'hykan':function(_0x229861,_0x3a4982){const _0x35fff1=_0x45746b;return _0xfd92ae[_0x35fff1(0x12a)](_0x229861,_0x3a4982);}},_0x38b7a2={};_0x38b7a2[_0x45746b(0xe4)]=_0xfd92ae[_0x45746b(0x12e)],_0x38b7a2[_0x45746b(0x107)]=_0x5f1c63;const _0x4c5e69=new _0x532488[(_0x45746b(0x119))](_0x38b7a2);_0x4c5e69['describeSubnets']()[_0x45746b(0x125)]()['then'](_0x41c10e=>{_0x5962e0['jyzMN'](_0x335494,_0x41c10e);})[_0x45746b(0xef)](_0x2bc415=>{const _0x3f51b8=_0x45746b;_0x4a4d5b[_0x3f51b8(0x13d)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x2bc415),_0x5962e0[_0x3f51b8(0x111)](_0x3c0604,_0x2bc415);});}});}else _0x3aaf89[_0x1664bc(0x13d)](_0x1664bc(0x159)+_0x5491d1),_0x4fc092['EfkXt'](_0x30eb10,_0x2329c4);});},exports[a23_0x4bd577(0xd1)]=_0x388588=>{const _0xbfe464=a23_0x4bd577,_0x4740f4={'oHWEj':function(_0x4548b2,_0x1a7c90){return _0x4548b2(_0x1a7c90);},'jTLXn':_0xbfe464(0xf7),'RwMzC':function(_0x4488db,_0x3b5ccd){return _0x4488db!==_0x3b5ccd;},'wyLec':'hdkuO','RrLKx':'PolUF','bWkoG':_0xbfe464(0x131),'PpWIU':function(_0x1a2804,_0x133ec9){return _0x1a2804(_0x133ec9);},'lXTSx':function(_0x4ca9ff,_0x4c3531){return _0x4ca9ff(_0x4c3531);},'eWzGT':function(_0x10534b,_0x2462e6){return _0x10534b(_0x2462e6);},'BYCVo':function(_0x522c86,_0x3349bc){return _0x522c86===_0x3349bc;},'UKely':_0xbfe464(0xd8)},_0x398e23=new awsSDK['S3']();return new Promise((_0x5bce77,_0x4cef6c)=>{const _0x22956e=_0xbfe464,_0x3b96bd={'fYHKi':function(_0x3aca2e,_0x1123be){return _0x4740f4['eWzGT'](_0x3aca2e,_0x1123be);}};if(_0x4740f4[_0x22956e(0x10b)](_0x4740f4[_0x22956e(0x114)],_0x4740f4[_0x22956e(0x114)])){const _0x16eb30={};_0x16eb30[_0x22956e(0x152)]=_0x388588,_0x398e23[_0x22956e(0xed)](_0x16eb30)['promise']()['then'](_0x28587f=>{const _0x303da3=_0x22956e,_0x6a9eec={'nhiNW':function(_0x568d5b,_0x35d205){const _0x130245=a23_0x2661;return _0x4740f4[_0x130245(0x156)](_0x568d5b,_0x35d205);},'EPsmv':_0x4740f4['jTLXn']};if(_0x4740f4[_0x303da3(0x138)](_0x4740f4[_0x303da3(0xf2)],_0x4740f4[_0x303da3(0x14e)]))logger[_0x303da3(0xe5)](_0x303da3(0x13a)+_0x388588+_0x303da3(0x126)),_0x4740f4['oHWEj'](_0x5bce77,!![]);else{const _0x3e6699={'xwmtG':function(_0x4acca2,_0x1cfdad){return _0x3b96bd['fYHKi'](_0x4acca2,_0x1cfdad);}};return new _0x56bbfe((_0x252df7,_0x460348)=>{const _0x47947d=_0x303da3,_0x2bda2e={'DRAiY':function(_0x19691f,_0x2b0805){const _0x43b2bb=a23_0x2661;return _0x6a9eec[_0x43b2bb(0x14c)](_0x19691f,_0x2b0805);}},_0x54c1ec={};_0x54c1ec[_0x47947d(0xe4)]=_0x6a9eec[_0x47947d(0x145)],_0x54c1ec[_0x47947d(0x107)]=_0x46d229;const _0x10a886=new _0x23304e['EC2'](_0x54c1ec);_0x10a886[_0x47947d(0xcb)]()[_0x47947d(0x125)]()['then'](_0x5ca98f=>{_0x2bda2e['DRAiY'](_0x252df7,_0x5ca98f);})[_0x47947d(0xef)](_0x452a4e=>{const _0x405091=_0x47947d;_0x5aebaa[_0x405091(0x13d)](_0x405091(0xff)+_0x452a4e),_0x3e6699['xwmtG'](_0x460348,_0x452a4e);});});}})['catch'](()=>{const _0x1dacc1=_0x22956e,_0x4e0340={'sOChs':function(_0x3dbac6,_0x562b08){return _0x4740f4['oHWEj'](_0x3dbac6,_0x562b08);}};_0x4740f4[_0x1dacc1(0x138)](_0x4740f4[_0x1dacc1(0x105)],_0x4740f4[_0x1dacc1(0x105)])?(_0x35031c[_0x1dacc1(0xfe)](_0x1dacc1(0x13a)+_0x381686+_0x1dacc1(0xda)),_0x4e0340[_0x1dacc1(0xf5)](_0xd178bf,![])):(logger['info'](_0x1dacc1(0x13a)+_0x388588+_0x1dacc1(0xda)),_0x4740f4[_0x1dacc1(0xd2)](_0x5bce77,![]));});}else{const _0x215ccd={'OGWHR':function(_0x4e6de6,_0x2b8e69){const _0x3403dd=_0x22956e;return _0x4740f4[_0x3403dd(0xcc)](_0x4e6de6,_0x2b8e69);},'KzcUH':_0x4740f4['jTLXn']};return new _0x325ec5((_0x5e393b,_0x4d7446)=>{const _0x3802a7=_0x22956e,_0x2f3149={'xCesn':function(_0x45c130,_0x48aba1){const _0x22ff9e=a23_0x2661;return _0x215ccd[_0x22ff9e(0x136)](_0x45c130,_0x48aba1);}},_0x2c6b3c={};_0x2c6b3c[_0x3802a7(0xe4)]=_0x215ccd[_0x3802a7(0x13c)],_0x2c6b3c[_0x3802a7(0x107)]=_0x11a23f;const _0x4ee65b=new _0x4ab2c8[(_0x3802a7(0x119))](_0x2c6b3c);_0x4ee65b[_0x3802a7(0x11a)]()['promise']()[_0x3802a7(0xe1)](_0x34af12=>{_0x2f3149['xCesn'](_0x5e393b,_0x34af12);})[_0x3802a7(0xef)](_0x20cf78=>{const _0x547cfc=_0x3802a7;_0x5741b4[_0x547cfc(0x13d)](_0x547cfc(0x159)+_0x20cf78),_0x215ccd[_0x547cfc(0x136)](_0x4d7446,_0x20cf78);});});}});},exports[a23_0x4bd577(0x140)]=_0x4f88f2=>{const _0x5080ff=a23_0x4bd577,_0x1fd525={'eaFxR':function(_0x2c47d1,_0x35786c){return _0x2c47d1(_0x35786c);},'tGUHN':'2016-11-15','vrsvK':function(_0x90bc14,_0x5de77e){return _0x90bc14!==_0x5de77e;},'aMiun':function(_0x43fe2b,_0x5b7f6d){return _0x43fe2b(_0x5b7f6d);},'wriHr':function(_0x1baca8,_0x2684a9){return _0x1baca8===_0x2684a9;},'oUeFo':_0x5080ff(0x127),'GwlJQ':_0x5080ff(0x14d),'GmFJR':_0x5080ff(0xf0),'RlhcI':function(_0x3916d8,_0x2fbdb9){return _0x3916d8===_0x2fbdb9;},'djCUv':_0x5080ff(0x149),'wMfWF':_0x5080ff(0xf8)};return new Promise((_0x2016fb,_0x14084f)=>{const _0x2ab715=_0x5080ff,_0x382771={'fzwHc':function(_0x557e94,_0x1fd19a){const _0x267a19=a23_0x2661;return _0x1fd525[_0x267a19(0x129)](_0x557e94,_0x1fd19a);},'jOwhl':function(_0xb9f436,_0x4cc650){const _0xa16d6d=a23_0x2661;return _0x1fd525[_0xa16d6d(0x129)](_0xb9f436,_0x4cc650);},'orTos':_0x1fd525['tGUHN'],'TZQjH':function(_0x5d668e,_0x2662fd){return _0x1fd525['vrsvK'](_0x5d668e,_0x2662fd);},'JFhYX':function(_0x43613e,_0x3c9bc5){const _0x56b03e=a23_0x2661;return _0x1fd525[_0x56b03e(0xc9)](_0x43613e,_0x3c9bc5);},'brGXB':function(_0x256e57,_0x29b689){return _0x1fd525['aMiun'](_0x256e57,_0x29b689);},'fsYKa':function(_0x467e86,_0xa510f3){const _0x13d473=a23_0x2661;return _0x1fd525[_0x13d473(0x143)](_0x467e86,_0xa510f3);},'DnUcX':_0x1fd525[_0x2ab715(0xfb)],'JEGPj':function(_0x2c87e6,_0x29497d){const _0x3f159f=_0x2ab715;return _0x1fd525[_0x3f159f(0x146)](_0x2c87e6,_0x29497d);},'ITbAW':function(_0x4fe29c,_0x58a9ac){const _0x22a29d=_0x2ab715;return _0x1fd525[_0x22a29d(0xc9)](_0x4fe29c,_0x58a9ac);},'SNxQx':_0x1fd525['GwlJQ'],'lSsEo':_0x1fd525['GmFJR']};if(_0x1fd525[_0x2ab715(0x106)](_0x1fd525[_0x2ab715(0xfc)],_0x1fd525[_0x2ab715(0x11b)]))return new _0xc40590((_0x2e9dc9,_0x637db7)=>{const _0x2aff81=_0x2ab715,_0x13af50={'ZYpaq':function(_0x5d7c7f,_0x45499e){return _0x382771['fzwHc'](_0x5d7c7f,_0x45499e);},'lOWBx':function(_0x4cda8c,_0x1a6a99){const _0xf65517=a23_0x2661;return _0x382771[_0xf65517(0x101)](_0x4cda8c,_0x1a6a99);}},_0x5172b5={};_0x5172b5[_0x2aff81(0xe4)]=_0x382771[_0x2aff81(0x151)],_0x5172b5[_0x2aff81(0x107)]=_0x450125;const _0x121f5f=new _0x5f1945['EC2'](_0x5172b5);_0x121f5f[_0x2aff81(0x12d)]()['promise']()[_0x2aff81(0xe1)](_0x2c6071=>{_0x13af50['ZYpaq'](_0x2e9dc9,_0x2c6071);})[_0x2aff81(0xef)](_0x2c60f5=>{const _0x2a74a1=_0x2aff81;_0x2f7608[_0x2a74a1(0x13d)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x2c60f5),_0x13af50[_0x2a74a1(0x139)](_0x637db7,_0x2c60f5);});});else{const _0x5c94a0={};_0x5c94a0['apiVersion']=_0x1fd525['tGUHN'],_0x5c94a0[_0x2ab715(0x107)]=_0x4f88f2;const _0xb234a8=new awsSDK[(_0x2ab715(0x119))](_0x5c94a0);_0xb234a8[_0x2ab715(0x12d)]()['promise']()[_0x2ab715(0xe1)](_0x193a56=>{const _0x42ffd3=_0x2ab715;_0x382771[_0x42ffd3(0x14a)](_0x382771['DnUcX'],_0x382771[_0x42ffd3(0xcd)])?_0x382771['JEGPj'](_0x2016fb,_0x193a56):_0x382771[_0x42ffd3(0xe6)](_0x492e9e,_0x59c404)&&_0x382771[_0x42ffd3(0x150)](_0x3bc012[_0x42ffd3(0xdc)],_0x532a21)?_0x382771[_0x42ffd3(0xd7)](_0x4a5e11,_0x13cf3a['Regions']):_0x382771[_0x42ffd3(0xd9)](_0x510d1f,{});})[_0x2ab715(0xef)](_0x5db9eb=>{const _0x414ba8=_0x2ab715;_0x382771[_0x414ba8(0x10e)](_0x382771[_0x414ba8(0x10f)],_0x382771[_0x414ba8(0x15a)])?(logger[_0x414ba8(0x13d)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x5db9eb),_0x382771['JEGPj'](_0x14084f,_0x5db9eb)):(_0x41cb35[_0x414ba8(0x13d)]('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x4a0783),_0x382771['jOwhl'](_0x346703,_0x4d8aad));});}});},exports['fetchSecurityGroups']=_0x10fe59=>{const _0x2b09ca=a23_0x4bd577,_0x592ee2={'KJpRw':function(_0x1e98ba,_0x3fafed){return _0x1e98ba(_0x3fafed);},'ZBaBU':function(_0x494341,_0x395555){return _0x494341(_0x395555);},'IRzIW':function(_0x5e17ea,_0x57972a){return _0x5e17ea!==_0x57972a;},'MMaoh':_0x2b09ca(0x142),'pWxLR':function(_0x41d8a4,_0x240d76){return _0x41d8a4(_0x240d76);},'WfjWK':function(_0x4ea963,_0x3e3d04){return _0x4ea963(_0x3e3d04);},'ZSBdh':function(_0x5b6070,_0x2a17ab){return _0x5b6070===_0x2a17ab;},'diyDN':_0x2b09ca(0x110),'UQNnv':function(_0x51cb04,_0x1be160){return _0x51cb04===_0x1be160;},'IyUhQ':_0x2b09ca(0xe9),'SliMD':_0x2b09ca(0xf7)};return new Promise((_0x14a34a,_0x3b073b)=>{const _0x27487b=_0x2b09ca,_0x1809e6={'SQBZY':function(_0x4cc3bd,_0x48558c){return _0x592ee2['ZBaBU'](_0x4cc3bd,_0x48558c);},'MnMEC':function(_0x39e45b,_0x4d2e51){const _0x183dbc=a23_0x2661;return _0x592ee2[_0x183dbc(0x124)](_0x39e45b,_0x4d2e51);},'souPF':_0x592ee2[_0x27487b(0xdd)],'LBGvz':function(_0xa9b54d,_0x4ad515){return _0x592ee2['pWxLR'](_0xa9b54d,_0x4ad515);},'IcZcs':function(_0x1657f7,_0x887a){const _0x15d205=_0x27487b;return _0x592ee2[_0x15d205(0x153)](_0x1657f7,_0x887a);},'LmFyb':function(_0x30aab5,_0x48e729){const _0x31fa42=_0x27487b;return _0x592ee2[_0x31fa42(0x115)](_0x30aab5,_0x48e729);},'qdoqJ':_0x592ee2['diyDN']};if(_0x592ee2[_0x27487b(0x130)](_0x592ee2[_0x27487b(0x13f)],_0x592ee2[_0x27487b(0x13f)])){const _0x2025d0={};_0x2025d0[_0x27487b(0xe4)]=_0x592ee2['SliMD'],_0x2025d0['region']=_0x10fe59;const _0x225500=new awsSDK[(_0x27487b(0x119))](_0x2025d0);_0x225500[_0x27487b(0xcb)]()[_0x27487b(0x125)]()[_0x27487b(0xe1)](_0x3ac162=>{const _0x1a723a=_0x27487b,_0x4bf832={'gLvus':function(_0x4ba73b,_0x2b3cb5){const _0x7d6a71=a23_0x2661;return _0x1809e6[_0x7d6a71(0x137)](_0x4ba73b,_0x2b3cb5);}};_0x1809e6[_0x1a723a(0xd5)](_0x1809e6['souPF'],_0x1809e6['souPF'])?_0x4bf832['gLvus'](_0x48113a,_0x461172):_0x1809e6[_0x1a723a(0xce)](_0x14a34a,_0x3ac162);})['catch'](_0xaee780=>{const _0x5ad6bb=_0x27487b;_0x1809e6[_0x5ad6bb(0x11c)](_0x1809e6[_0x5ad6bb(0xd0)],_0x1809e6[_0x5ad6bb(0xd0)])?(logger[_0x5ad6bb(0x13d)](_0x5ad6bb(0xff)+_0xaee780),_0x1809e6['IcZcs'](_0x3b073b,_0xaee780)):_0x1809e6[_0x5ad6bb(0x144)](_0x48125e,_0x4e3df7);});}else _0x592ee2[_0x27487b(0x120)](_0x25d937,_0x5cfb5e[_0x27487b(0xdc)]);});},exports['getAWSRegions']=()=>{const _0xd71c56=a23_0x4bd577,_0x54fb1e={'JWDWv':function(_0x561b13,_0x4887b0){return _0x561b13(_0x4887b0);},'FOVMj':function(_0x5e3b68,_0x57a793){return _0x5e3b68(_0x57a793);},'xGlLC':function(_0x368ee1,_0x4904e2){return _0x368ee1!==_0x4904e2;},'ZGvTO':_0xd71c56(0x100),'FvkBx':function(_0x2bda15,_0x22c7a3){return _0x2bda15===_0x22c7a3;},'PlEoL':_0xd71c56(0xe3),'wyczn':function(_0x29d3f9,_0x35fd7c){return _0x29d3f9(_0x35fd7c);},'Vhxho':_0xd71c56(0xf6),'XBMBh':function(_0x1c5f07,_0x44ed9f){return _0x1c5f07(_0x44ed9f);},'gQDMf':function(_0x518d75,_0x25424e){return _0x518d75!==_0x25424e;},'lroPw':'leeUc','UrUIx':function(_0x88867f,_0x1a61e6){return _0x88867f===_0x1a61e6;},'abEfS':'MRumu','DoiIl':'2016-11-15'};return new Promise((_0x75b502,_0x3c7e4b)=>{const _0x326eba=_0xd71c56,_0x54da05={'XXOnJ':function(_0x3c5153,_0x3b6346){const _0x2b6d90=a23_0x2661;return _0x54fb1e[_0x2b6d90(0x118)](_0x3c5153,_0x3b6346);},'FMuDt':function(_0x3d5d72,_0x5c8515){return _0x54fb1e['gQDMf'](_0x3d5d72,_0x5c8515);},'uOTvj':_0x54fb1e[_0x326eba(0xe0)]};if(_0x54fb1e['UrUIx'](_0x54fb1e[_0x326eba(0x116)],_0x54fb1e[_0x326eba(0x116)])){const _0x20b6bc={};_0x20b6bc[_0x326eba(0xe4)]=_0x54fb1e['DoiIl'];const _0x460975=new awsSDK['EC2'](_0x20b6bc);_0x460975[_0x326eba(0x108)]()[_0x326eba(0x125)]()[_0x326eba(0xe1)]((_0x1956e2,_0x482ec9)=>{const _0x343ac8=_0x326eba,_0x5b553f={'IxaHN':function(_0x3d5ffa,_0x592f7e){const _0x2e5316=a23_0x2661;return _0x54fb1e[_0x2e5316(0x14b)](_0x3d5ffa,_0x592f7e);},'vNMng':function(_0x55052a,_0x2a9026){const _0x1bc390=a23_0x2661;return _0x54fb1e[_0x1bc390(0x12b)](_0x55052a,_0x2a9026);},'qDErC':function(_0x1dcdb7,_0x4b9ef8){const _0x48ab56=a23_0x2661;return _0x54fb1e[_0x48ab56(0x14b)](_0x1dcdb7,_0x4b9ef8);}};if(_0x54fb1e['xGlLC'](_0x54fb1e[_0x343ac8(0x112)],_0x54fb1e['ZGvTO']))_0x380647[_0x343ac8(0xe5)](_0x343ac8(0x13a)+_0x1e3a5a+_0x343ac8(0x126)),_0x5b553f[_0x343ac8(0x102)](_0x528fc8,!![]);else{if(_0x54fb1e[_0x343ac8(0x135)](_0x1956e2,undefined)&&_0x54fb1e[_0x343ac8(0x135)](_0x1956e2['Regions'],undefined)){if(_0x54fb1e['FvkBx'](_0x54fb1e[_0x343ac8(0xf4)],_0x54fb1e[_0x343ac8(0xf4)]))_0x54fb1e[_0x343ac8(0xe8)](_0x75b502,_0x1956e2[_0x343ac8(0xdc)]);else{const _0x2b40fd={'aXTAl':function(_0x8c6050,_0x1cc807){const _0x15f4bb=_0x343ac8;return _0x5b553f[_0x15f4bb(0x102)](_0x8c6050,_0x1cc807);},'oBFgx':function(_0x4246b6,_0x5118ab){const _0x1d7992=_0x343ac8;return _0x5b553f[_0x1d7992(0xea)](_0x4246b6,_0x5118ab);}},_0x2bc0ee=new _0x3e4b2a['S3']();return new _0xb431cb((_0xfa305f,_0x1d0f1c)=>{const _0x58c8d2=_0x343ac8,_0x5243b8={};_0x5243b8['Bucket']=_0x1905e6,_0x2bc0ee['headBucket'](_0x5243b8)[_0x58c8d2(0x125)]()['then'](_0x43ae78=>{const _0xf4b6d7=_0x58c8d2;_0x4a02c5[_0xf4b6d7(0xe5)]('Bucket:\x20'+_0x4c3cc0+'\x20already\x20exists.\x20Skipping\x20Bucket\x20creation'),_0x2b40fd[_0xf4b6d7(0x155)](_0xfa305f,!![]);})[_0x58c8d2(0xef)](()=>{const _0x4cc698=_0x58c8d2;_0x3059e3[_0x4cc698(0xfe)]('Bucket:\x20'+_0xacf86d+_0x4cc698(0xda)),_0x2b40fd[_0x4cc698(0xe2)](_0xfa305f,![]);});});}}else{if(_0x54fb1e[_0x343ac8(0x135)](_0x54fb1e[_0x343ac8(0x117)],_0x54fb1e[_0x343ac8(0x117)])){const _0x327028={};_0x327028[_0x343ac8(0x152)]=_0xf48fa6,_0x1e769f[_0x343ac8(0xed)](_0x327028)['promise']()[_0x343ac8(0xe1)](_0x188a2d=>{const _0x1b74c0=_0x343ac8;_0x29e637[_0x1b74c0(0xe5)](_0x1b74c0(0x13a)+_0xb841a9+_0x1b74c0(0x126)),_0x5b553f['qDErC'](_0x4592d5,!![]);})['catch'](()=>{const _0x13ab21=_0x343ac8;_0x208fee[_0x13ab21(0xfe)]('Bucket:\x20'+_0x3df2a7+_0x13ab21(0xda)),_0x5b553f[_0x13ab21(0x121)](_0x203de2,![]);});}else _0x54fb1e[_0x343ac8(0x14b)](_0x75b502,{});}}})[_0x326eba(0xef)](_0x647ebe=>{const _0xb4f647=_0x326eba;_0x54da05[_0xb4f647(0x158)](_0x54da05[_0xb4f647(0x154)],_0x54da05[_0xb4f647(0x154)])?_0x54da05[_0xb4f647(0xf3)](_0x116ff4,_0x3552d3):(logger[_0xb4f647(0x13d)](_0xb4f647(0x10d)+_0x647ebe),_0x54da05[_0xb4f647(0xf3)](_0x3c7e4b,_0x647ebe));});}else _0x54394c[_0x326eba(0x13d)](_0x326eba(0xe7)+_0x4a4f4c),_0x54fb1e[_0x326eba(0x12b)](_0x1d7c49,_0x7eeda2);});},exports[a23_0x4bd577(0xeb)]=awsSDK;function a23_0x5769(){const _0x10ddaf=['FOVMj','JboEJ','describeSubnets','HDyXH','jvbYt','UQNnv','bGuGs','QXppk','Hrfyd','hJEmH','xGlLC','OGWHR','SQBZY','RwMzC','lOWBx','Bucket:\x20','KsqeR','KzcUH','error','319kxXRrE','IyUhQ','fetchSubnets','fetchVPCs','bHFIZ','wriHr','IcZcs','EPsmv','aMiun','JUXtS','vOKTM','gWUrv','fsYKa','JWDWv','nhiNW','daOtU','RrLKx','326195CTNOwm','JFhYX','orTos','Bucket','WfjWK','uOTvj','aXTAl','oHWEj','dnPjD','FMuDt','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','lSsEo','vrsvK','VCoda','describeSecurityGroups','lXTSx','DnUcX','LBGvz','1114070pDxoWI','qdoqJ','isBucketPresent','PpWIU','918386ojLULR','dgsUN','MnMEC','15472cdfYAP','fzwHc','wUGeb','brGXB','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','../config/logger','Regions','MMaoh','IGbax','6066KbvPLV','lroPw','then','oBFgx','TZXNQ','apiVersion','warn','TZQjH','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','wyczn','PSFgE','vNMng','awsObj','qlBWT','headBucket','1386144AzrhiG','catch','edKna','HLnCt','wyLec','XXOnJ','PlEoL','sOChs','fcuEC','2016-11-15','gKeDK','jdJDy','165190ZiGPvf','oUeFo','djCUv','mrHWv','info','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','MWwxl','jOwhl','IxaHN','STUBN','NdytD','bWkoG','RlhcI','region','describeRegions','aws-sdk','FcCsh','BYCVo','xshfv','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','ITbAW','SNxQx','rxYUc','hykan','ZGvTO','3gnNDYM','UKely','ZSBdh','abEfS','Vhxho','XBMBh','EC2','describeVpcs','wMfWF','LmFyb','2VuNNYz','scoNr','NcoDl','KJpRw','qDErC','41260tkbOXR','18FrnCGw','IRzIW','promise','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','WKDKt','jtNDn','eaFxR','YWpBx'];a23_0x5769=function(){return _0x10ddaf;};return a23_0x5769();}
@@ -1 +1 @@
1
- function a24_0x2f26(_0x5cd824,_0x4d2997){const _0x117390=a24_0x1173();return a24_0x2f26=function(_0x2f26f7,_0x10977b){_0x2f26f7=_0x2f26f7-0x161;let _0x565969=_0x117390[_0x2f26f7];return _0x565969;},a24_0x2f26(_0x5cd824,_0x4d2997);}function a24_0x1173(){const _0x45c8bf=['toString','Parameters','NArHZ','yxtyh','waitFor','./AWSUtils','js-yaml','valueOf','browserstack:cluster','WyvJE','readFileAsync','Properties','stringify','LBNya','createStack','12677292NUVgyK','DELETE','jcSCw','promise','bluebird','BzosD','DBPBW','Resources','6774985rWpjbU','utf-8','3774786jRPXIA','kVhyH','templates','6dzGJkG','apiVersion','bPOjJ','CAPABILITY_NAMED_IAM','StackId','Key','OnFailure','2010-05-15','Value','TemplateBody','push','js-yaml-cloudformation-schema','2vIGQuy','promisifyAll','2290939TNCbNa','browserstack:creationDate','987560nPyVLa','4836888DonXuG','ClusterName','1095494dRgNrT','8qPvdRW','Tags','schema','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete'];a24_0x1173=function(){return _0x45c8bf;};return a24_0x1173();}const a24_0x26d76e=a24_0x2f26;(function(_0x190c6b,_0x3745f6){const _0x1c0e6d=a24_0x2f26,_0xbf6e42=_0x190c6b();while(!![]){try{const _0x45a916=parseInt(_0x1c0e6d(0x18b))/0x1*(parseInt(_0x1c0e6d(0x192))/0x2)+-parseInt(_0x1c0e6d(0x17c))/0x3+parseInt(_0x1c0e6d(0x190))/0x4+-parseInt(_0x1c0e6d(0x17a))/0x5*(-parseInt(_0x1c0e6d(0x17f))/0x6)+parseInt(_0x1c0e6d(0x18d))/0x7*(-parseInt(_0x1c0e6d(0x193))/0x8)+-parseInt(_0x1c0e6d(0x172))/0x9+parseInt(_0x1c0e6d(0x18f))/0xa;if(_0x45a916===_0x3745f6)break;else _0xbf6e42['push'](_0xbf6e42['shift']());}catch(_0x33f895){_0xbf6e42['push'](_0xbf6e42['shift']());}}}(a24_0x1173,0xba9b6));const fs=require('fs'),path=require('path'),yaml=require(a24_0x26d76e(0x169)),{CLOUDFORMATION_SCHEMA}=require(a24_0x26d76e(0x18a)),Promise=require(a24_0x26d76e(0x176)),AWS=require(a24_0x26d76e(0x168))['awsObj'],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require('../config/constants'),{logger}=require('../config/logger');Promise[a24_0x26d76e(0x18c)](fs),addAutoscalerTags=async(_0x55a07b,_0x4dc085,_0x2c72c1)=>{const _0x2f62dd=a24_0x26d76e;for(let _0x231e9e in _0x55a07b[_0x2f62dd(0x179)]){_0x55a07b['Resources'][_0x231e9e][_0x2f62dd(0x16e)]&&_0x55a07b[_0x2f62dd(0x179)][_0x231e9e]['Properties'][_0x2f62dd(0x194)]&&_0x55a07b[_0x2f62dd(0x179)][_0x231e9e][_0x2f62dd(0x16e)]['Tags'][_0x2f62dd(0x189)](..._0x2c72c1);}},exports['createAutoscalerStack']=async _0x11ceb5=>{const _0xea3571=a24_0x26d76e,_0x91428d={'FwKGX':_0xea3571(0x16b),'WyvJE':_0xea3571(0x18e),'LBNya':_0xea3571(0x186),'qEeaB':_0xea3571(0x17e),'yxtyh':'autoscaler-role-creation.yaml','DBPBW':_0xea3571(0x17b),'bPOjJ':function(_0x7cfecf,_0x519009,_0xb0f4e1,_0x479df3){return _0x7cfecf(_0x519009,_0xb0f4e1,_0x479df3);},'BzosD':_0xea3571(0x173),'NArHZ':_0xea3571(0x191),'jcSCw':_0xea3571(0x182),'kVhyH':'stackCreateComplete'},_0x4b3746=COMMON_HST_TAGS,_0x58fa79={};_0x58fa79[_0xea3571(0x184)]=_0x91428d['FwKGX'],_0x58fa79[_0xea3571(0x187)]=_0x11ceb5,_0x4b3746[_0xea3571(0x189)](_0x58fa79),_0x4b3746[_0xea3571(0x189)]({'Key':_0x91428d[_0xea3571(0x16c)],'Value':new Date()[_0xea3571(0x16a)]()[_0xea3571(0x163)]()});const _0x316188={};_0x316188[_0xea3571(0x180)]=_0x91428d[_0xea3571(0x170)];const _0x396c1d=new AWS['CloudFormation'](_0x316188),_0x304349=await fs[_0xea3571(0x16d)](path['join'](__dirname,'..',_0x91428d['qEeaB'],_0x91428d[_0xea3571(0x166)]),_0x91428d[_0xea3571(0x178)]),_0x265a7b={};_0x265a7b[_0xea3571(0x161)]=CLOUDFORMATION_SCHEMA;const _0x11bc08=yaml['load'](_0x304349,_0x265a7b);_0x91428d[_0xea3571(0x181)](addAutoscalerTags,_0x11bc08,_0x11ceb5,_0x4b3746);const _0x533ded=JSON[_0xea3571(0x16f)](_0x11bc08),_0x1859ac={};_0x1859ac['StackName']=CLUSTER_AUTOSCALER_STACK_NAME,_0x1859ac[_0xea3571(0x185)]=_0x91428d[_0xea3571(0x177)],_0x1859ac[_0xea3571(0x188)]=_0x533ded,_0x1859ac[_0xea3571(0x164)]=[{'ParameterKey':_0x91428d[_0xea3571(0x165)],'ParameterValue':_0x11ceb5}],_0x1859ac['Capabilities']=[_0x91428d[_0xea3571(0x174)]],_0x1859ac[_0xea3571(0x194)]=_0x4b3746;const _0x4096a6=_0x1859ac,_0x559121=await _0x396c1d[_0xea3571(0x171)](_0x4096a6)[_0xea3571(0x175)]();logger['debug'](_0xea3571(0x162));const _0x1791e8={};return _0x1791e8['StackName']=_0x559121[_0xea3571(0x183)],_0x396c1d[_0xea3571(0x167)](_0x91428d[_0xea3571(0x17d)],_0x1791e8)['promise']();};
1
+ function a24_0x1db2(_0xdce79b,_0x4980fe){const _0x32b04d=a24_0x32b0();return a24_0x1db2=function(_0x1db25f,_0x12791b){_0x1db25f=_0x1db25f-0xf3;let _0x3fa529=_0x32b04d[_0x1db25f];return _0x3fa529;},a24_0x1db2(_0xdce79b,_0x4980fe);}const a24_0x21dd2f=a24_0x1db2;(function(_0x12fe2f,_0x5ceaf9){const _0x76d48e=a24_0x1db2,_0x319284=_0x12fe2f();while(!![]){try{const _0x363e19=-parseInt(_0x76d48e(0x120))/0x1*(-parseInt(_0x76d48e(0x101))/0x2)+-parseInt(_0x76d48e(0x124))/0x3+-parseInt(_0x76d48e(0x11f))/0x4+-parseInt(_0x76d48e(0xf7))/0x5+parseInt(_0x76d48e(0x117))/0x6*(-parseInt(_0x76d48e(0x121))/0x7)+-parseInt(_0x76d48e(0x118))/0x8+parseInt(_0x76d48e(0x103))/0x9;if(_0x363e19===_0x5ceaf9)break;else _0x319284['push'](_0x319284['shift']());}catch(_0x209364){_0x319284['push'](_0x319284['shift']());}}}(a24_0x32b0,0xa9163));function a24_0x32b0(){const _0xf53c42=['shwmN','xkRHn','browserstack:creationDate','4723180mPXKEa','1XQZPIV','7jMbiwd','fewTY','schema','376194vVkYeM','readFileAsync','apiVersion','toString','stringify','valueOf','5000220sbyRZg','../config/constants','autoscaler-role-creation.yaml','OnFailure','TemplateBody','StackId','awsObj','2010-05-15','join','browserstack:cluster','385370Zjkbcn','Properties','37736235vmJiEA','zYyeO','waitFor','createStack','Key','promisifyAll','CAPABILITY_NAMED_IAM','js-yaml-cloudformation-schema','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','Tags','bYDnu','Capabilities','debug','promise','StackName','utf-8','SxBJa','HsPaz','push','Resources','1540308zsBmIA','9040528gpXdSM','../config/logger','aJtGB','ClusterName'];a24_0x32b0=function(){return _0xf53c42;};return a24_0x32b0();}const fs=require('fs'),path=require('path'),yaml=require('js-yaml'),{CLOUDFORMATION_SCHEMA}=require(a24_0x21dd2f(0x10a)),Promise=require('bluebird'),AWS=require('./AWSUtils')[a24_0x21dd2f(0xfd)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a24_0x21dd2f(0xf8)),{logger}=require(a24_0x21dd2f(0x119));Promise[a24_0x21dd2f(0x108)](fs),addAutoscalerTags=async(_0x34f6a1,_0x283c06,_0x5c53bd)=>{const _0x4f7533=a24_0x21dd2f;for(let _0x384d17 in _0x34f6a1[_0x4f7533(0x116)]){_0x34f6a1[_0x4f7533(0x116)][_0x384d17]['Properties']&&_0x34f6a1[_0x4f7533(0x116)][_0x384d17][_0x4f7533(0x102)][_0x4f7533(0x10c)]&&_0x34f6a1['Resources'][_0x384d17][_0x4f7533(0x102)][_0x4f7533(0x10c)]['push'](..._0x5c53bd);}},exports['createAutoscalerStack']=async _0x3d9ee6=>{const _0x461150=a24_0x21dd2f,_0x233e95={'shwmN':_0x461150(0x100),'SxBJa':_0x461150(0x11e),'xkRHn':_0x461150(0xfe),'MBEUh':'templates','bYDnu':_0x461150(0xf9),'aJtGB':_0x461150(0x112),'HsPaz':function(_0x2b4009,_0x38d1aa,_0x2d59b1,_0x2e86bb){return _0x2b4009(_0x38d1aa,_0x2d59b1,_0x2e86bb);},'KRzCe':'DELETE','zYyeO':_0x461150(0x11b),'nLtDz':_0x461150(0x109),'fewTY':'stackCreateComplete'},_0x2695cb=COMMON_HST_TAGS,_0xb3d40e={};_0xb3d40e[_0x461150(0x107)]=_0x233e95[_0x461150(0x11c)],_0xb3d40e['Value']=_0x3d9ee6,_0x2695cb[_0x461150(0x115)](_0xb3d40e),_0x2695cb['push']({'Key':_0x233e95[_0x461150(0x113)],'Value':new Date()[_0x461150(0xf6)]()[_0x461150(0xf4)]()});const _0x27edb1={};_0x27edb1[_0x461150(0xf3)]=_0x233e95[_0x461150(0x11d)];const _0x32cd05=new AWS['CloudFormation'](_0x27edb1),_0x1321e4=await fs[_0x461150(0x125)](path[_0x461150(0xff)](__dirname,'..',_0x233e95['MBEUh'],_0x233e95[_0x461150(0x10d)]),_0x233e95[_0x461150(0x11a)]),_0x51d9eb={};_0x51d9eb[_0x461150(0x123)]=CLOUDFORMATION_SCHEMA;const _0x1ee67e=yaml['load'](_0x1321e4,_0x51d9eb);_0x233e95[_0x461150(0x114)](addAutoscalerTags,_0x1ee67e,_0x3d9ee6,_0x2695cb);const _0x196289=JSON[_0x461150(0xf5)](_0x1ee67e),_0x138666={};_0x138666[_0x461150(0x111)]=CLUSTER_AUTOSCALER_STACK_NAME,_0x138666[_0x461150(0xfa)]=_0x233e95['KRzCe'],_0x138666[_0x461150(0xfb)]=_0x196289,_0x138666['Parameters']=[{'ParameterKey':_0x233e95[_0x461150(0x104)],'ParameterValue':_0x3d9ee6}],_0x138666[_0x461150(0x10e)]=[_0x233e95['nLtDz']],_0x138666[_0x461150(0x10c)]=_0x2695cb;const _0x35a3ce=_0x138666,_0x530aa4=await _0x32cd05[_0x461150(0x106)](_0x35a3ce)[_0x461150(0x110)]();logger[_0x461150(0x10f)](_0x461150(0x10b));const _0x147d9c={};return _0x147d9c[_0x461150(0x111)]=_0x530aa4[_0x461150(0xfc)],_0x32cd05[_0x461150(0x105)](_0x233e95[_0x461150(0x122)],_0x147d9c)[_0x461150(0x110)]();};