browserstack-node-sdk 1.25.0 → 1.25.2

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 (82) hide show
  1. package/ats/src/commands/configure.js +1 -1
  2. package/ats/src/commands/connect.js +1 -1
  3. package/ats/src/commands/connect_commands/grid.js +1 -1
  4. package/ats/src/commands/create.js +1 -1
  5. package/ats/src/commands/create_commands/grid.js +1 -1
  6. package/ats/src/commands/delete.js +1 -1
  7. package/ats/src/commands/delete_commands/grid.js +1 -1
  8. package/ats/src/commands/init.js +1 -1
  9. package/ats/src/commands/list.js +1 -1
  10. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  11. package/ats/src/commands/list_commands/grids.js +1 -1
  12. package/ats/src/config/constants.js +1 -1
  13. package/ats/src/config/logger.js +1 -1
  14. package/ats/src/index.js +1 -1
  15. package/ats/src/utils/AWSUtils.js +1 -1
  16. package/ats/src/utils/createAutoscalerStack.js +1 -1
  17. package/ats/src/utils/createClusterStack.js +1 -1
  18. package/ats/src/utils/createk8sClient.js +1 -1
  19. package/ats/src/utils/deleteStack.js +1 -1
  20. package/ats/src/utils/gridComponents.js +1 -1
  21. package/ats/src/utils/hstUtils.js +1 -1
  22. package/ats/src/utils/instrumentationUtils.js +1 -1
  23. package/ats/src/utils/userInput.js +1 -1
  24. package/ats/src/utils/utilityMethods.js +1 -1
  25. package/ats/src/utils/webSocketUtils.js +1 -1
  26. package/browserstack.pw.yml.sample +78 -0
  27. package/package.json +1 -1
  28. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  29. package/src/bin/codeceptjs/command.js +1 -1
  30. package/src/bin/cucumber-js/command.js +1 -1
  31. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  32. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  33. package/src/bin/cucumber-js/test.setup.js +1 -1
  34. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  35. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  36. package/src/bin/jest/command.js +1 -1
  37. package/src/bin/jest/customEnvironment.js +1 -1
  38. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  39. package/src/bin/jest/jest.setup.js +1 -1
  40. package/src/bin/jest/test_before.setup.js +1 -1
  41. package/src/bin/launcher/launcher.js +1 -1
  42. package/src/bin/mocha/accessibility-automation/constants.js +1 -1
  43. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  44. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  45. package/src/bin/mocha/command.js +1 -1
  46. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  47. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  48. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  49. package/src/bin/mocha/test.setup.js +1 -1
  50. package/src/bin/nightwatch/command.js +1 -1
  51. package/src/bin/playwright/command.js +1 -1
  52. package/src/bin/playwright/globalSetup.js +1 -1
  53. package/src/bin/playwright/mock-process.js +1 -1
  54. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  55. package/src/bin/playwright/reporter/reporter.js +1 -1
  56. package/src/bin/playwright/reporter/test-details.js +1 -1
  57. package/src/bin/runner.js +1 -1
  58. package/src/bin/setup.js +1 -1
  59. package/src/bin/test-runner/index.js +1 -1
  60. package/src/bin/test-runner/runTest.js +1 -1
  61. package/src/bin/test-runner/testWorker.js +1 -1
  62. package/src/bin/utils/constants.js +1 -1
  63. package/src/bin/utils/log4jsAppender.js +1 -1
  64. package/src/bin/utils/logPatcher.js +1 -1
  65. package/src/bin/utils/logReportingAPI.js +1 -1
  66. package/src/bin/vanilla-js/command.js +1 -1
  67. package/src/helpers/BrowserStackSetup.js +1 -1
  68. package/src/helpers/capsMapping.js +1 -1
  69. package/src/helpers/helper.js +1 -1
  70. package/src/helpers/logger.js +1 -1
  71. package/src/helpers/patchHelpers.js +1 -1
  72. package/src/helpers/request-spy.js +1 -1
  73. package/src/helpers/setKeepAlive.js +1 -1
  74. package/src/helpers/test-observability/constants.js +1 -1
  75. package/src/helpers/test-observability/error-handler.js +1 -1
  76. package/src/helpers/test-observability/performance-tester.js +1 -1
  77. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  78. package/src/helpers/test-observability/sessionHandler.js +1 -1
  79. package/src/helpers/test-observability/utils.js +1 -1
  80. package/src/helpers/w3cMapping.js +1 -1
  81. package/src/hubAllocationMethods.js +1 -1
  82. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a8_0x1ac2(_0x2d83ce,_0x32a142){const _0x15e9a8=a8_0x15e9();return a8_0x1ac2=function(_0x1ac297,_0x3b2880){_0x1ac297=_0x1ac297-0xde;let _0x484677=_0x15e9a8[_0x1ac297];return _0x484677;},a8_0x1ac2(_0x2d83ce,_0x32a142);}function a8_0x15e9(){const _0x2641e7=['demandCommand','list','15096SqDXgo','9aKQCBe','commandDir','10ecaPxb','help','1564010cohjkb','../config/constants','VoPKK','3118670GvMSBf','recommendCommands','desc','1305520qlVVjE','handler','85sUupvl','usage','243440PIfYYW','PPjUN','epilogue','6657iXsikh','builder','42773dgruqM','strict','root'];a8_0x15e9=function(){return _0x2641e7;};return a8_0x15e9();}const a8_0x3ee39e=a8_0x1ac2;(function(_0x206f10,_0x4125d7){const _0x108c7d=a8_0x1ac2,_0x2f91f5=_0x206f10();while(!![]){try{const _0x3a69b2=-parseInt(_0x108c7d(0xe5))/0x1*(parseInt(_0x108c7d(0xed))/0x2)+-parseInt(_0x108c7d(0xe3))/0x3+parseInt(_0x108c7d(0xe0))/0x4+-parseInt(_0x108c7d(0xde))/0x5*(-parseInt(_0x108c7d(0xea))/0x6)+-parseInt(_0x108c7d(0xef))/0x7+parseInt(_0x108c7d(0xf5))/0x8+parseInt(_0x108c7d(0xeb))/0x9*(parseInt(_0x108c7d(0xf2))/0xa);if(_0x3a69b2===_0x4125d7)break;else _0x2f91f5['push'](_0x2f91f5['shift']());}catch(_0x742d93){_0x2f91f5['push'](_0x2f91f5['shift']());}}}(a8_0x15e9,0x21fa7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x3ee39e(0xf0));exports['command']=a8_0x3ee39e(0xe9),exports[a8_0x3ee39e(0xf4)]='List\x20down\x20the\x20Grid\x20resources.',exports[a8_0x3ee39e(0xe4)]=function(_0x356ee1){const _0x1b58c5=a8_0x3ee39e,_0x3a99b0={};_0x3a99b0[_0x1b58c5(0xf1)]='list_commands',_0x3a99b0[_0x1b58c5(0xe1)]='help';const _0x3b60d1=_0x3a99b0;return _0x356ee1[_0x1b58c5(0xec)](_0x3b60d1[_0x1b58c5(0xf1)])[_0x1b58c5(0xe8)]()[_0x1b58c5(0xdf)](HELP_HEADER_MESSAGE[_0x1b58c5(0xe9)][_0x1b58c5(0xe7)])[_0x1b58c5(0xe2)](HELP_FOOTER_MESSAGE)[_0x1b58c5(0xf3)]()[_0x1b58c5(0xe6)]()[_0x1b58c5(0xee)](_0x3b60d1['PPjUN']);},exports[a8_0x3ee39e(0xf6)]=function(_0x1820b9){};
1
+ function a8_0x3cd1(_0x4c45f9,_0x37f665){const _0x1c5f14=a8_0x1c5f();return a8_0x3cd1=function(_0x3cd1b5,_0x79dc48){_0x3cd1b5=_0x3cd1b5-0x7f;let _0x3e2205=_0x1c5f14[_0x3cd1b5];return _0x3e2205;},a8_0x3cd1(_0x4c45f9,_0x37f665);}const a8_0x42838b=a8_0x3cd1;(function(_0x16aec0,_0x495bc0){const _0x4de167=a8_0x3cd1,_0x2f93a1=_0x16aec0();while(!![]){try{const _0x3e2e36=parseInt(_0x4de167(0x99))/0x1*(parseInt(_0x4de167(0x9b))/0x2)+-parseInt(_0x4de167(0x8b))/0x3*(parseInt(_0x4de167(0x83))/0x4)+parseInt(_0x4de167(0x95))/0x5*(parseInt(_0x4de167(0x88))/0x6)+parseInt(_0x4de167(0x8f))/0x7*(parseInt(_0x4de167(0x91))/0x8)+parseInt(_0x4de167(0x81))/0x9*(-parseInt(_0x4de167(0x97))/0xa)+-parseInt(_0x4de167(0x86))/0xb*(parseInt(_0x4de167(0x8c))/0xc)+parseInt(_0x4de167(0x7f))/0xd;if(_0x3e2e36===_0x495bc0)break;else _0x2f93a1['push'](_0x2f93a1['shift']());}catch(_0x2fee39){_0x2f93a1['push'](_0x2f93a1['shift']());}}}(a8_0x1c5f,0x19bc9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a8_0x42838b(0x92)]=a8_0x42838b(0x8a),exports[a8_0x42838b(0x84)]=a8_0x42838b(0x90),exports['builder']=function(_0x2247e7){const _0x4b154e=a8_0x42838b,_0x2cce46={};_0x2cce46[_0x4b154e(0x96)]=_0x4b154e(0x8d),_0x2cce46['FiELi']='help';const _0x4afffb=_0x2cce46;return _0x2247e7[_0x4b154e(0x85)](_0x4afffb[_0x4b154e(0x96)])[_0x4b154e(0x8e)]()[_0x4b154e(0x94)](HELP_HEADER_MESSAGE['list'][_0x4b154e(0x9a)])[_0x4b154e(0x98)](HELP_FOOTER_MESSAGE)[_0x4b154e(0x82)]()[_0x4b154e(0x87)]()[_0x4b154e(0x93)](_0x4afffb[_0x4b154e(0x89)]);},exports[a8_0x42838b(0x80)]=function(_0xba1d79){};function a8_0x1c5f(){const _0x57dcdc=['XIoUy','7970rMPwgL','epilogue','1028BIQmjs','root','130rJUfbm','2994043fBIzAP','handler','1152WcqRWO','recommendCommands','4eWhVys','desc','commandDir','1045OUFzud','strict','12948nouBSt','FiELi','list','522579mpCqHy','3540JOMdpd','list_commands','demandCommand','70ANAYBq','List\x20down\x20the\x20Grid\x20resources.','46856sHvPMM','command','help','usage','125MYhbVj'];a8_0x1c5f=function(){return _0x57dcdc;};return a8_0x1c5f();}
@@ -1 +1 @@
1
- const a9_0x419a05=a9_0x2f7c;function a9_0x516b(){const _0x15dacb=['grid-profile-name','all-grid-profiles','../../utils/instrumentationUtils','options','description','request','Iuwnp','server-error','desc','bstackUsername','cloudProvider','3315795rEzUyl','mHnDT','Browserstack','statusCode','1730iTxhtR','parse','unauthorised','/packages/cli/get-grid-profiles','method','region','util','error','help','Failed\x20to\x20list\x20resources!\x20Error:\x20','hRgKG','36949UDJZdu','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','existsSync','1269564KmyPar','274605KFjmBp','hObnd','84YrxqWh','kRlek','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unknown-error','epilogue','stringify','aQGIB','boolean','push','password','15597xXIdWi','uuid','16AidBxR','140prlzHD','grid-profiles','handler','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','log','ERROR','ymgUx','XFDig','slDXu','usage','1087263JlMcxP','username','GzGTw','exit','stack','vpCjQ','85812clxFmz','rSIjU','allGridProfiles','GET','INFO','GttYt','promisify','LrwPk','auth','lxMwq','table','concurrency','zZgOj','JvMVP','hQgjE'];a9_0x516b=function(){return _0x15dacb;};return a9_0x516b();}function a9_0x2f7c(_0x270b7f,_0x4f8fe0){const _0x516b0c=a9_0x516b();return a9_0x2f7c=function(_0x2f7c58,_0x58f290){_0x2f7c58=_0x2f7c58-0x187;let _0x55bc67=_0x516b0c[_0x2f7c58];return _0x55bc67;},a9_0x2f7c(_0x270b7f,_0x4f8fe0);}(function(_0x16d2b4,_0x1b5942){const _0x1974fa=a9_0x2f7c,_0xff9fb0=_0x16d2b4();while(!![]){try{const _0x356bb3=parseInt(_0x1974fa(0x1a8))/0x1+parseInt(_0x1974fa(0x1a7))/0x2+parseInt(_0x1974fa(0x1b5))/0x3*(-parseInt(_0x1974fa(0x1aa))/0x4)+-parseInt(_0x1974fa(0x1b8))/0x5*(-parseInt(_0x1974fa(0x1c8))/0x6)+-parseInt(_0x1974fa(0x195))/0x7+parseInt(_0x1974fa(0x1b7))/0x8*(parseInt(_0x1974fa(0x1c2))/0x9)+-parseInt(_0x1974fa(0x199))/0xa*(parseInt(_0x1974fa(0x1a4))/0xb);if(_0x356bb3===_0x1b5942)break;else _0xff9fb0['push'](_0xff9fb0['shift']());}catch(_0x12e5b6){_0xff9fb0['push'](_0xff9fb0['shift']());}}}(a9_0x516b,0x5e99e));const fs=require('fs'),util=require(a9_0x419a05(0x19f)),request=require(a9_0x419a05(0x18f)),{table}=require(a9_0x419a05(0x1d2)),{v4:uuidv4}=require(a9_0x419a05(0x1b6)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a9_0x419a05(0x18c)),promisifiedRequest=util[a9_0x419a05(0x1ce)](request);exports['command']=a9_0x419a05(0x1b9),exports[a9_0x419a05(0x192)]=a9_0x419a05(0x1ac),exports['builder']=function(_0x3c679d){const _0x52c226=a9_0x419a05,_0x80b8ac={};_0x80b8ac['hObnd']=_0x52c226(0x1bb),_0x80b8ac[_0x52c226(0x1be)]=_0x52c226(0x1b2),_0x80b8ac[_0x52c226(0x188)]=_0x52c226(0x1a1);const _0x25225d=_0x80b8ac,_0x4e22ff={};_0x4e22ff[_0x52c226(0x18e)]=_0x25225d[_0x52c226(0x1a9)],_0x4e22ff['type']=_0x25225d[_0x52c226(0x1be)];const _0x3ec5dd={};return _0x3ec5dd[_0x52c226(0x18b)]=_0x4e22ff,_0x3c679d[_0x52c226(0x1c1)](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x52c226(0x1af)](HELP_FOOTER_MESSAGE)[_0x52c226(0x18d)](_0x3ec5dd)[_0x52c226(0x1a1)](_0x25225d[_0x52c226(0x188)])['argv'];},exports[a9_0x419a05(0x1ba)]=async function(_0x16c075){const _0x23cb39=a9_0x419a05,_0x5db004={'GlSjM':function(_0x81a679){return _0x81a679();},'imEgH':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','XFDig':function(_0x2fc891,_0x2f1b36,_0x203726,_0x53a273,_0x379b3a,_0x56e352,_0x3aa6bb){return _0x2fc891(_0x2f1b36,_0x203726,_0x53a273,_0x379b3a,_0x56e352,_0x3aa6bb);},'aQGIB':'list-grid-profiles-called','vpCjQ':'init-not-called','slDXu':function(_0x5baa20,_0x1591df,_0x2cf095,_0xe4b771,_0x142bc5,_0x4d6247,_0x138be3){return _0x5baa20(_0x1591df,_0x2cf095,_0xe4b771,_0x142bc5,_0x4d6247,_0x138be3);},'LrwPk':function(_0x5de8cd){return _0x5de8cd();},'zZgOj':_0x23cb39(0x1cb),'Iuwnp':function(_0x4109ff,_0x1730da){return _0x4109ff(_0x1730da);},'CEYts':function(_0x1e013f,_0x1ce938){return _0x1e013f!==_0x1ce938;},'mHnDT':function(_0x42d12c,_0xab7fdc){return _0x42d12c!==_0xab7fdc;},'lxMwq':function(_0x43e8b4,_0x114cf7){return _0x43e8b4===_0x114cf7;},'hRgKG':_0x23cb39(0x1a5),'hQgjE':_0x23cb39(0x18a),'GttYt':'cloud-provider','kRlek':_0x23cb39(0x19e),'RctKi':'concurrency','pImRD':function(_0x126085,_0x1c491f,_0x57154f,_0x3fbc4e,_0x1e5540,_0x1703ee,_0x59a310){return _0x126085(_0x1c491f,_0x57154f,_0x3fbc4e,_0x1e5540,_0x1703ee,_0x59a310);},'TIWKQ':_0x23cb39(0x19b),'rSIjU':function(_0x43e720,_0x1ceb94,_0x5dd663,_0x41ef44,_0x1b7c25,_0x5dde56,_0x15fc0b){return _0x43e720(_0x1ceb94,_0x5dd663,_0x41ef44,_0x1b7c25,_0x5dde56,_0x15fc0b);},'GzGTw':_0x23cb39(0x191),'fozmW':_0x23cb39(0x1ae)};try{global_registry['requestId']=_0x5db004['GlSjM'](uuidv4);let _0x361395='https://'+AG_API_URL+_0x23cb39(0x19c);_0x16c075[_0x23cb39(0x1ca)]&&(_0x361395='https://'+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x23cb39(0x1a6)](_0x5db004['GlSjM'](getCredentialsPath))&&(console[_0x23cb39(0x1a0)](_0x5db004['imEgH']),await _0x5db004[_0x23cb39(0x1bf)](sendInstrumentationEvent,_0x16c075,_0x5db004[_0x23cb39(0x1b1)],messageTypes[_0x23cb39(0x1bd)],_0x5db004[_0x23cb39(0x1c7)],null,_0x16c075),process[_0x23cb39(0x1c5)](0x1));_0x5db004[_0x23cb39(0x1c0)](sendInstrumentationEvent,_0x16c075,_0x5db004[_0x23cb39(0x1b1)],messageTypes[_0x23cb39(0x1cc)],null,null,_0x16c075);const _0x46a2df=JSON[_0x23cb39(0x19a)](fs['readFileSync'](_0x5db004[_0x23cb39(0x1cf)](getCredentialsPath))),_0x417e24={};_0x417e24[_0x23cb39(0x1c3)]=_0x46a2df[_0x23cb39(0x197)]['username'],_0x417e24[_0x23cb39(0x1b4)]=_0x46a2df['Browserstack'][_0x23cb39(0x1b4)];const _0x27b9bd={};_0x27b9bd['url']=_0x361395,_0x27b9bd[_0x23cb39(0x19d)]=_0x5db004[_0x23cb39(0x187)],_0x27b9bd[_0x23cb39(0x1d0)]=_0x417e24;const _0x14a795=_0x27b9bd;global_registry[_0x23cb39(0x193)]=_0x46a2df[_0x23cb39(0x197)][_0x23cb39(0x1c3)],global_registry['bstackAccesskey']=_0x46a2df[_0x23cb39(0x197)][_0x23cb39(0x1b4)];const _0x3d177a=await _0x5db004[_0x23cb39(0x190)](promisifiedRequest,_0x14a795);if(_0x5db004['CEYts'](_0x3d177a,null)&&_0x5db004[_0x23cb39(0x196)](_0x3d177a,undefined)&&_0x5db004[_0x23cb39(0x1d1)](_0x3d177a['statusCode'],0xc8)){const _0x5cf553=JSON[_0x23cb39(0x19a)](_0x3d177a['body']);console['log'](_0x5db004[_0x23cb39(0x1a3)]);const _0x40960e=[];_0x40960e['push']([_0x5db004[_0x23cb39(0x189)],_0x5db004[_0x23cb39(0x1cd)],_0x5db004[_0x23cb39(0x1ab)],_0x5db004['RctKi']]),_0x5cf553['forEach'](_0x367677=>{const _0xf17b07=_0x23cb39;_0x40960e[_0xf17b07(0x1b3)]([_0x367677['name'],_0x367677[_0xf17b07(0x194)],_0x367677[_0xf17b07(0x19e)],_0x367677[_0xf17b07(0x1d3)]]);}),console[_0x23cb39(0x1bc)](_0x5db004[_0x23cb39(0x190)](table,_0x40960e)),process['exit'](0x0);}_0x5db004[_0x23cb39(0x1d1)](_0x3d177a[_0x23cb39(0x198)],0x191)&&(console['error'](_0x23cb39(0x1ad)),await _0x5db004['pImRD'](sendInstrumentationEvent,_0x16c075,_0x5db004[_0x23cb39(0x1b1)],messageTypes[_0x23cb39(0x1bd)],_0x5db004['TIWKQ'],null,_0x16c075),process[_0x23cb39(0x1c5)](0x1)),console[_0x23cb39(0x1a0)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x23cb39(0x1b0)](_0x3d177a)),await _0x5db004[_0x23cb39(0x1c9)](sendInstrumentationEvent,_0x16c075,_0x5db004['aQGIB'],messageTypes[_0x23cb39(0x1bd)],_0x5db004[_0x23cb39(0x1c4)],_0x3d177a,_0x16c075),process[_0x23cb39(0x1c5)](0x1);}catch(_0x2eebac){console[_0x23cb39(0x1a0)](_0x23cb39(0x1a2)+_0x2eebac[_0x23cb39(0x1c6)]),await _0x5db004[_0x23cb39(0x1c9)](sendInstrumentationEvent,_0x16c075,_0x5db004[_0x23cb39(0x1b1)],messageTypes[_0x23cb39(0x1bd)],_0x5db004['fozmW'],_0x2eebac,_0x16c075),process['exit'](0x1);}};
1
+ const a9_0x14873a=a9_0x3c92;(function(_0x388070,_0x4c4607){const _0x28b81a=a9_0x3c92,_0x35fd95=_0x388070();while(!![]){try{const _0x40ca80=-parseInt(_0x28b81a(0x12a))/0x1*(-parseInt(_0x28b81a(0xe0))/0x2)+parseInt(_0x28b81a(0x119))/0x3+-parseInt(_0x28b81a(0x118))/0x4*(parseInt(_0x28b81a(0xf7))/0x5)+-parseInt(_0x28b81a(0xe1))/0x6*(parseInt(_0x28b81a(0x127))/0x7)+-parseInt(_0x28b81a(0xf1))/0x8*(-parseInt(_0x28b81a(0xdc))/0x9)+parseInt(_0x28b81a(0x10b))/0xa+-parseInt(_0x28b81a(0xeb))/0xb*(parseInt(_0x28b81a(0x117))/0xc);if(_0x40ca80===_0x4c4607)break;else _0x35fd95['push'](_0x35fd95['shift']());}catch(_0x4ad80f){_0x35fd95['push'](_0x35fd95['shift']());}}}(a9_0x2696,0xdf7d1));function a9_0x2696(){const _0x228a81=['4rEywwZ','3203775csbVvD','table','util','list-grid-profiles-called','dUTkw','boolean','PGBTN','log','RwOVq','region','method','https://','etjjt','error','7CuHEVI','lWBvZ','BMVzc','1JvRBhx','init-not-called','desc','command','RdvFt','server-error','9RKqFkL','argv','handler','exKHV','1677794FwTlls','3327438LpShCc','existsSync','bGQvl','forEach','help','push','KrGHR','readFileSync','Axkoo','/packages/cli/get-grid-profiles','59708tXfNLp','AcADw','usage','type','hqeee','concurrency','12312008qqBWej','wzDbt','password','gIdkX','description','name','6600020ngZOnA','grid-profile-name','RQUjI','ERROR','ZFShb','INFO','all-grid-profiles','request','username','GET','auth','../../utils/utilityMethods','builder','GskFk','../../config/constants','EDkKk','bstackAccesskey','HZclh','zKhMC','VGJiZ','2777790CovtgC','uuid','statusCode','options','stringify','parse','exit','Browserstack','promisify','gridProfile','/packages/cli/get-all-grid-profiles','requestId','2064hNpDTv'];a9_0x2696=function(){return _0x228a81;};return a9_0x2696();}function a9_0x3c92(_0x357c66,_0x4b0a6c){const _0x26968b=a9_0x2696();return a9_0x3c92=function(_0x3c92e8,_0x3ed496){_0x3c92e8=_0x3c92e8-0xd9;let _0x305f4e=_0x26968b[_0x3c92e8];return _0x305f4e;},a9_0x3c92(_0x357c66,_0x4b0a6c);}const fs=require('fs'),util=require(a9_0x14873a(0x11b)),request=require(a9_0x14873a(0xfe)),{table}=require(a9_0x14873a(0x11a)),{v4:uuidv4}=require(a9_0x14873a(0x10c)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a9_0x14873a(0x105)),{getCredentialsPath}=require(a9_0x14873a(0x102)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a9_0x14873a(0x113)](request);exports[a9_0x14873a(0xd9)]='grid-profiles',exports[a9_0x14873a(0x12c)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a9_0x14873a(0x103)]=function(_0x288cc0){const _0x2eda11=a9_0x14873a,_0x30676d={};_0x30676d['VGJiZ']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x30676d[_0x2eda11(0xf4)]=_0x2eda11(0x11e),_0x30676d[_0x2eda11(0x121)]='help';const _0x255443=_0x30676d,_0x5d9bad={};_0x5d9bad[_0x2eda11(0xf5)]=_0x255443[_0x2eda11(0x10a)],_0x5d9bad[_0x2eda11(0xee)]=_0x255443[_0x2eda11(0xf4)];const _0x580268={};return _0x580268[_0x2eda11(0xfd)]=_0x5d9bad,_0x288cc0[_0x2eda11(0xed)](HELP_HEADER_MESSAGE['list'][_0x2eda11(0x114)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2eda11(0x10e)](_0x580268)[_0x2eda11(0xe5)](_0x255443[_0x2eda11(0x121)])[_0x2eda11(0xdd)];},exports[a9_0x14873a(0xde)]=async function(_0x186391){const _0xca5e6f=a9_0x14873a,_0xdfb543={'GskFk':function(_0x4b3dde){return _0x4b3dde();},'bGQvl':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exKHV':function(_0x14da8e,_0x23c0d9,_0x3779e3,_0x4f12c1,_0x4048e2,_0x4a479f,_0x4c4e2c){return _0x14da8e(_0x23c0d9,_0x3779e3,_0x4f12c1,_0x4048e2,_0x4a479f,_0x4c4e2c);},'etjjt':_0xca5e6f(0x11c),'RdvFt':_0xca5e6f(0x12b),'hqeee':function(_0x16106a,_0x2444e8,_0x27e45c,_0xb05a49,_0x31c87f,_0x584458,_0x4e60b4){return _0x16106a(_0x2444e8,_0x27e45c,_0xb05a49,_0x31c87f,_0x584458,_0x4e60b4);},'wzDbt':function(_0x3ba214){return _0x3ba214();},'EQDtz':_0xca5e6f(0x100),'PGBTN':function(_0x4b7d58,_0x5d2046){return _0x4b7d58(_0x5d2046);},'KrGHR':function(_0x1fc494,_0x48169d){return _0x1fc494!==_0x48169d;},'Axkoo':function(_0xa22042,_0x526f51){return _0xa22042===_0x526f51;},'BMVzc':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','uiXbb':_0xca5e6f(0xf8),'zKhMC':'cloud-provider','buDJX':_0xca5e6f(0x122),'ZFShb':_0xca5e6f(0xf0),'EDkKk':function(_0xa11064,_0x1c3c42){return _0xa11064(_0x1c3c42);},'dUTkw':function(_0xfac230,_0x1098f5,_0x29fdaf,_0x40d843,_0x570895,_0x31087a,_0x4d62dc){return _0xfac230(_0x1098f5,_0x29fdaf,_0x40d843,_0x570895,_0x31087a,_0x4d62dc);},'RQUjI':'unauthorised','AcADw':_0xca5e6f(0xdb),'HZclh':function(_0x15be09,_0x5e7413,_0x10f31a,_0x319242,_0x1f204a,_0x33f98a,_0xaf8e6e){return _0x15be09(_0x5e7413,_0x10f31a,_0x319242,_0x1f204a,_0x33f98a,_0xaf8e6e);},'lWBvZ':'unknown-error'};try{global_registry[_0xca5e6f(0x116)]=_0xdfb543[_0xca5e6f(0x104)](uuidv4);let _0x4661dc=_0xca5e6f(0x124)+AG_API_URL+_0xca5e6f(0xea);_0x186391['allGridProfiles']&&(_0x4661dc=_0xca5e6f(0x124)+AG_API_URL+_0xca5e6f(0x115));!fs[_0xca5e6f(0xe2)](_0xdfb543[_0xca5e6f(0x104)](getCredentialsPath))&&(console[_0xca5e6f(0x126)](_0xdfb543[_0xca5e6f(0xe3)]),await _0xdfb543[_0xca5e6f(0xdf)](sendInstrumentationEvent,_0x186391,_0xdfb543[_0xca5e6f(0x125)],messageTypes['ERROR'],_0xdfb543[_0xca5e6f(0xda)],null,_0x186391),process['exit'](0x1));_0xdfb543[_0xca5e6f(0xef)](sendInstrumentationEvent,_0x186391,_0xdfb543[_0xca5e6f(0x125)],messageTypes[_0xca5e6f(0xfc)],null,null,_0x186391);const _0x21c545=JSON[_0xca5e6f(0x110)](fs[_0xca5e6f(0xe8)](_0xdfb543[_0xca5e6f(0xf2)](getCredentialsPath))),_0x212239={};_0x212239[_0xca5e6f(0xff)]=_0x21c545[_0xca5e6f(0x112)][_0xca5e6f(0xff)],_0x212239['password']=_0x21c545[_0xca5e6f(0x112)][_0xca5e6f(0xf3)];const _0x3ad12a={};_0x3ad12a['url']=_0x4661dc,_0x3ad12a[_0xca5e6f(0x123)]=_0xdfb543['EQDtz'],_0x3ad12a[_0xca5e6f(0x101)]=_0x212239;const _0x46b7ce=_0x3ad12a;global_registry['bstackUsername']=_0x21c545[_0xca5e6f(0x112)][_0xca5e6f(0xff)],global_registry[_0xca5e6f(0x107)]=_0x21c545[_0xca5e6f(0x112)][_0xca5e6f(0xf3)];const _0x4c81c8=await _0xdfb543[_0xca5e6f(0x11f)](promisifiedRequest,_0x46b7ce);if(_0xdfb543[_0xca5e6f(0xe7)](_0x4c81c8,null)&&_0xdfb543[_0xca5e6f(0xe7)](_0x4c81c8,undefined)&&_0xdfb543[_0xca5e6f(0xe9)](_0x4c81c8[_0xca5e6f(0x10d)],0xc8)){const _0x5699ae=JSON[_0xca5e6f(0x110)](_0x4c81c8['body']);console[_0xca5e6f(0x120)](_0xdfb543[_0xca5e6f(0x129)]);const _0x486195=[];_0x486195['push']([_0xdfb543['uiXbb'],_0xdfb543[_0xca5e6f(0x109)],_0xdfb543['buDJX'],_0xdfb543[_0xca5e6f(0xfb)]]),_0x5699ae[_0xca5e6f(0xe4)](_0x5cff4f=>{const _0x3828a9=_0xca5e6f;_0x486195[_0x3828a9(0xe6)]([_0x5cff4f[_0x3828a9(0xf6)],_0x5cff4f['cloudProvider'],_0x5cff4f['region'],_0x5cff4f[_0x3828a9(0xf0)]]);}),console['log'](_0xdfb543[_0xca5e6f(0x106)](table,_0x486195)),process[_0xca5e6f(0x111)](0x0);}_0xdfb543['Axkoo'](_0x4c81c8[_0xca5e6f(0x10d)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0xdfb543[_0xca5e6f(0x11d)](sendInstrumentationEvent,_0x186391,_0xdfb543['etjjt'],messageTypes[_0xca5e6f(0xfa)],_0xdfb543[_0xca5e6f(0xf9)],null,_0x186391),process[_0xca5e6f(0x111)](0x1)),console[_0xca5e6f(0x126)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0xca5e6f(0x10f)](_0x4c81c8)),await _0xdfb543[_0xca5e6f(0x11d)](sendInstrumentationEvent,_0x186391,_0xdfb543[_0xca5e6f(0x125)],messageTypes[_0xca5e6f(0xfa)],_0xdfb543[_0xca5e6f(0xec)],_0x4c81c8,_0x186391),process[_0xca5e6f(0x111)](0x1);}catch(_0x482783){console[_0xca5e6f(0x126)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x482783['stack']),await _0xdfb543[_0xca5e6f(0x108)](sendInstrumentationEvent,_0x186391,_0xdfb543[_0xca5e6f(0x125)],messageTypes[_0xca5e6f(0xfa)],_0xdfb543[_0xca5e6f(0x128)],_0x482783,_0x186391),process[_0xca5e6f(0x111)](0x1);}};
@@ -1 +1 @@
1
- const a10_0x3b703d=a10_0x1f2b;function a10_0x21d4(){const _0x3119fd=['https://','readFileSync','4842140UGuMQe','cYqXx','push','body','DOpCH','grid-name','parse','unknown-error','1125063wwFIvQ','requestId','3IpQTZe','lfMZI','gUNhf','rqgYG','error','35gcyEGC','log','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','options','usage','argv','955368odYqwv','grid','cPBLP','GET','../../config/constants','xENbK','grids','2108955CqznZI','\x0aFound\x20the\x20following\x20grids:\x0a','queued','zbFLX','boolean','cYjTR','4tOSNMF','dXVvK','INFO','../../utils/utilityMethods','cluster-name','name','stack','unauthorised','handler','yXtkd','22qzzFIq','../../utils/instrumentationUtils','clusterName','XecCb','319348eHMFKC','method','description','url','Uqhjd','help','allGrids','password','username','exit','forEach','TMvCn','type','bstackAccesskey','RAkcs','LSmdE','statusCode','list','AYqix','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Browserstack','status','bstackUsername','init-not-called','yHplp','ERROR','611516MsDsiH','auth','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','stringify','2167314lrZZjj'];a10_0x21d4=function(){return _0x3119fd;};return a10_0x21d4();}(function(_0x220ea6,_0x15e39c){const _0x40c4e3=a10_0x1f2b,_0x5bf00b=_0x220ea6();while(!![]){try{const _0x338a4c=parseInt(_0x40c4e3(0x20a))/0x1+parseInt(_0x40c4e3(0x224))/0x2*(parseInt(_0x40c4e3(0x236))/0x3)+parseInt(_0x40c4e3(0x1fc))/0x4*(-parseInt(_0x40c4e3(0x1f6))/0x5)+-parseInt(_0x40c4e3(0x229))/0x6+parseInt(_0x40c4e3(0x23b))/0x7*(-parseInt(_0x40c4e3(0x1ef))/0x8)+parseInt(_0x40c4e3(0x234))/0x9+-parseInt(_0x40c4e3(0x22c))/0xa*(-parseInt(_0x40c4e3(0x206))/0xb);if(_0x338a4c===_0x15e39c)break;else _0x5bf00b['push'](_0x5bf00b['shift']());}catch(_0x2114ab){_0x5bf00b['push'](_0x5bf00b['shift']());}}}(a10_0x21d4,0x529fa));const fs=require('fs'),util=require('util'),request=require('request'),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a10_0x3b703d(0x1f3)),{getCredentialsPath}=require(a10_0x3b703d(0x1ff)),{sendInstrumentationEvent}=require(a10_0x3b703d(0x207)),promisifiedRequest=util['promisify'](request);function a10_0x1f2b(_0x51fbe4,_0x1a5276){const _0x21d4eb=a10_0x21d4();return a10_0x1f2b=function(_0x1f2b33,_0x341a39){_0x1f2b33=_0x1f2b33-0x1ec;let _0x17120b=_0x21d4eb[_0x1f2b33];return _0x17120b;},a10_0x1f2b(_0x51fbe4,_0x1a5276);}exports['command']=a10_0x3b703d(0x1f5),exports['desc']=a10_0x3b703d(0x226),exports['builder']=function(_0x1abbd9){const _0x564cde=a10_0x3b703d,_0x9f3965={};_0x9f3965[_0x564cde(0x1f1)]=_0x564cde(0x23d),_0x9f3965[_0x564cde(0x218)]=_0x564cde(0x1fa),_0x9f3965['AYqix']='help';const _0x3199cc=_0x9f3965,_0x308222={};_0x308222[_0x564cde(0x20c)]=_0x3199cc[_0x564cde(0x1f1)],_0x308222[_0x564cde(0x216)]=_0x3199cc['RAkcs'];const _0xbc8f1c={};return _0xbc8f1c['all-grids']=_0x308222,_0x1abbd9[_0x564cde(0x1ed)](HELP_HEADER_MESSAGE[_0x564cde(0x21b)][_0x564cde(0x1f0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x564cde(0x1ec)](_0xbc8f1c)[_0x564cde(0x20f)](_0x3199cc[_0x564cde(0x21c)])[_0x564cde(0x1ee)];},exports[a10_0x3b703d(0x204)]=async function(_0xe19261){const _0x102b55=a10_0x3b703d,_0x462da7={'DOpCH':function(_0x25c8d4){return _0x25c8d4();},'TbYuD':_0x102b55(0x21d),'TMvCn':function(_0x50e0f5,_0x1c9716,_0x1e7182,_0x31b455,_0xd6db37,_0x350db5,_0x7e26fe){return _0x50e0f5(_0x1c9716,_0x1e7182,_0x31b455,_0xd6db37,_0x350db5,_0x7e26fe);},'cYqXx':'list-grids-called','bYNPK':_0x102b55(0x221),'IgRsC':_0x102b55(0x1f2),'rqgYG':function(_0x32af8c,_0x16f815){return _0x32af8c(_0x16f815);},'cYjTR':function(_0x34e70c,_0x445e87){return _0x34e70c!==_0x445e87;},'hHgUE':function(_0x27eb81,_0x276c1f){return _0x27eb81===_0x276c1f;},'gUNhf':_0x102b55(0x1f7),'dXVvK':'grid-id','XecCb':_0x102b55(0x231),'Uqhjd':_0x102b55(0x21f),'HPPvI':'running','LSmdE':_0x102b55(0x1f8),'zbFLX':_0x102b55(0x200),'yHplp':function(_0xf129a7,_0x44841a){return _0xf129a7(_0x44841a);},'Leidp':function(_0x2fca25,_0x475da4){return _0x2fca25===_0x475da4;},'lfMZI':function(_0x581539,_0x1b1d23,_0x2e8e08,_0x3d42d8,_0x2e31dd,_0x37bb5d,_0x4fca5b){return _0x581539(_0x1b1d23,_0x2e8e08,_0x3d42d8,_0x2e31dd,_0x37bb5d,_0x4fca5b);},'xSYgb':_0x102b55(0x203),'xENbK':'server-error','yXtkd':_0x102b55(0x233)};try{global_registry[_0x102b55(0x235)]=_0x462da7[_0x102b55(0x230)](uuidv4);!fs['existsSync'](_0x462da7[_0x102b55(0x230)](getCredentialsPath))&&(console['error'](_0x462da7['TbYuD']),await _0x462da7['TMvCn'](sendInstrumentationEvent,_0xe19261,_0x462da7[_0x102b55(0x22d)],messageTypes[_0x102b55(0x223)],_0x462da7['bYNPK'],null,_0xe19261),process[_0x102b55(0x213)](0x1));const _0x5c5e8b=JSON[_0x102b55(0x232)](fs[_0x102b55(0x22b)](_0x462da7[_0x102b55(0x230)](getCredentialsPath)));let _0x46e30a=_0x102b55(0x22a)+AG_API_URL+'/packages/cli/get-grids';_0xe19261[_0x102b55(0x210)]&&(_0x46e30a=_0x102b55(0x22a)+AG_API_URL+'/packages/cli/get-all-grids');const _0x40e697={};_0x40e697[_0x102b55(0x212)]=_0x5c5e8b[_0x102b55(0x21e)]['username'],_0x40e697[_0x102b55(0x211)]=_0x5c5e8b[_0x102b55(0x21e)][_0x102b55(0x211)];const _0x32e4b9={};_0x32e4b9[_0x102b55(0x20d)]=_0x46e30a,_0x32e4b9[_0x102b55(0x20b)]=_0x462da7['IgRsC'],_0x32e4b9[_0x102b55(0x225)]=_0x40e697;const _0x555241=_0x32e4b9;global_registry[_0x102b55(0x220)]=_0x5c5e8b[_0x102b55(0x21e)]['username'],global_registry[_0x102b55(0x217)]=_0x5c5e8b[_0x102b55(0x21e)][_0x102b55(0x211)],_0x462da7[_0x102b55(0x215)](sendInstrumentationEvent,_0xe19261,_0x462da7[_0x102b55(0x22d)],messageTypes[_0x102b55(0x1fe)],null,null,_0xe19261);const _0x5dcc03=await _0x462da7[_0x102b55(0x239)](promisifiedRequest,_0x555241);if(_0x462da7['cYjTR'](_0x5dcc03,null)&&_0x462da7[_0x102b55(0x1fb)](_0x5dcc03,undefined)&&_0x462da7['hHgUE'](_0x5dcc03['statusCode'],0xc8)){const _0x9a3dfa=JSON[_0x102b55(0x232)](_0x5dcc03[_0x102b55(0x22f)]);console[_0x102b55(0x23c)](_0x462da7[_0x102b55(0x238)]);const _0x2aec82=[];_0x2aec82[_0x102b55(0x22e)]([_0x462da7[_0x102b55(0x1fd)],_0x462da7[_0x102b55(0x209)],_0x462da7[_0x102b55(0x20e)],_0x462da7['HPPvI'],_0x462da7[_0x102b55(0x219)],_0x462da7[_0x102b55(0x1f9)]]),_0x9a3dfa[_0x102b55(0x214)](_0x24cc6f=>{const _0x497482=_0x102b55;_0x2aec82[_0x497482(0x22e)]([_0x24cc6f['id'],_0x24cc6f[_0x497482(0x201)],_0x24cc6f[_0x497482(0x21f)],_0x24cc6f['running'],_0x24cc6f[_0x497482(0x1f8)],_0x24cc6f[_0x497482(0x208)]]);}),console[_0x102b55(0x23c)](_0x462da7[_0x102b55(0x222)](table,_0x2aec82)),process['exit'](0x0);}_0x462da7['Leidp'](_0x5dcc03[_0x102b55(0x21a)],0x191)&&(console[_0x102b55(0x23a)](_0x102b55(0x227)),await _0x462da7['lfMZI'](sendInstrumentationEvent,_0xe19261,_0x462da7[_0x102b55(0x22d)],messageTypes['ERROR'],_0x462da7['xSYgb'],null,_0xe19261),process['exit'](0x1)),console[_0x102b55(0x23a)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x102b55(0x228)](_0x5dcc03)),await _0x462da7[_0x102b55(0x237)](sendInstrumentationEvent,_0xe19261,_0x462da7[_0x102b55(0x22d)],messageTypes['ERROR'],_0x462da7[_0x102b55(0x1f4)],_0x5dcc03,_0xe19261),process[_0x102b55(0x213)](0x1);}catch(_0x4411ac){console[_0x102b55(0x23a)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x4411ac[_0x102b55(0x202)]),await _0x462da7[_0x102b55(0x215)](sendInstrumentationEvent,_0xe19261,_0x462da7[_0x102b55(0x22d)],messageTypes[_0x102b55(0x223)],_0x462da7[_0x102b55(0x205)],_0x4411ac,_0xe19261),process[_0x102b55(0x213)](0x1);}};
1
+ const a10_0x1757d8=a10_0xa202;function a10_0xa202(_0x4a1211,_0x50a96a){const _0x30b232=a10_0x30b2();return a10_0xa202=function(_0xa20299,_0x159302){_0xa20299=_0xa20299-0x15f;let _0xcbd68c=_0x30b232[_0xa20299];return _0xcbd68c;},a10_0xa202(_0x4a1211,_0x50a96a);}(function(_0x36ea7e,_0x297feb){const _0x5658e3=a10_0xa202,_0x58acaf=_0x36ea7e();while(!![]){try{const _0x48d160=-parseInt(_0x5658e3(0x19e))/0x1+-parseInt(_0x5658e3(0x186))/0x2+parseInt(_0x5658e3(0x1af))/0x3*(parseInt(_0x5658e3(0x163))/0x4)+parseInt(_0x5658e3(0x1a7))/0x5+-parseInt(_0x5658e3(0x196))/0x6*(parseInt(_0x5658e3(0x183))/0x7)+-parseInt(_0x5658e3(0x182))/0x8+parseInt(_0x5658e3(0x195))/0x9;if(_0x48d160===_0x297feb)break;else _0x58acaf['push'](_0x58acaf['shift']());}catch(_0x256206){_0x58acaf['push'](_0x58acaf['shift']());}}}(a10_0x30b2,0xc5392));function a10_0x30b2(){const _0x1a331c=['epilogue','grid-id','body','xyduU','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/utilityMethods','KUGdN','queued','INFO','stringify','usage','mvSGC','ehCSu','running','/packages/cli/get-grids','8429280aANnvb','1554308XZszXx','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','2550336WweKfE','username','jPLTz','../../utils/instrumentationUtils','status','table','\x0aFound\x20the\x20following\x20grids:\x0a','type','boolean','parse','desc','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','uuid','server-error','allGrids','36079686wzhXwn','6DHMDlo','push','statusCode','vzKgO','description','all-grids','OYmKN','https://','1242806JHwaQI','help','ZIRZr','builder','paHeE','zpXbu','kMbpe','GET','clusterName','254200TRcZXP','readFileSync','util','SpSlz','AbUhC','XayFQ','Browserstack','options','3mjZeWM','aWBPc','zgVIp','list-grids-called','grid','request','poCIq','cnhgs','Failed\x20to\x20list\x20resources!\x20Error:\x20','method','grid-name','promisify','wjdVv','exit','url','2167240FmtsiE','XChIp','/packages/cli/get-all-grids','password','error','unknown-error','log','ERROR','bstackAccesskey','bstackUsername','mmJlF','name','../../config/constants','auth','existsSync','stack'];a10_0x30b2=function(){return _0x1a331c;};return a10_0x30b2();}const fs=require('fs'),util=require(a10_0x1757d8(0x1a9)),request=require(a10_0x1757d8(0x1b4)),{table}=require(a10_0x1757d8(0x18b)),{v4:uuidv4}=require(a10_0x1757d8(0x192)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a10_0x1757d8(0x16f)),{getCredentialsPath}=require(a10_0x1757d8(0x178)),{sendInstrumentationEvent}=require(a10_0x1757d8(0x189)),promisifiedRequest=util[a10_0x1757d8(0x15f)](request);exports['command']='grids',exports[a10_0x1757d8(0x190)]=a10_0x1757d8(0x184),exports[a10_0x1757d8(0x1a1)]=function(_0x16b4d2){const _0x4538c3=a10_0x1757d8,_0x175bb9={};_0x175bb9[_0x4538c3(0x188)]=_0x4538c3(0x191),_0x175bb9['aWBPc']=_0x4538c3(0x18e),_0x175bb9[_0x4538c3(0x1b6)]=_0x4538c3(0x19f);const _0x499037=_0x175bb9,_0x51919f={};_0x51919f[_0x4538c3(0x19a)]=_0x499037[_0x4538c3(0x188)],_0x51919f[_0x4538c3(0x18d)]=_0x499037[_0x4538c3(0x1b0)];const _0x268b9a={};return _0x268b9a[_0x4538c3(0x19b)]=_0x51919f,_0x16b4d2[_0x4538c3(0x17d)](HELP_HEADER_MESSAGE['list'][_0x4538c3(0x1b3)])[_0x4538c3(0x173)](HELP_FOOTER_MESSAGE)[_0x4538c3(0x1ae)](_0x268b9a)[_0x4538c3(0x19f)](_0x499037[_0x4538c3(0x1b6)])['argv'];},exports['handler']=async function(_0x1d8ae1){const _0x4ea8f0=a10_0x1757d8,_0x5935c4={'xyduU':function(_0x4399bb){return _0x4399bb();},'kMbpe':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','mmJlF':function(_0x13abb1,_0x293415,_0x3342da,_0x3b5505,_0x1927c1,_0x2009a8,_0x23c250){return _0x13abb1(_0x293415,_0x3342da,_0x3b5505,_0x1927c1,_0x2009a8,_0x23c250);},'paHeE':_0x4ea8f0(0x1b2),'wbGck':'init-not-called','wjdVv':_0x4ea8f0(0x1a5),'poCIq':function(_0x247abe,_0x28e852,_0x10d593,_0xbdc39a,_0x58759c,_0x27ae54,_0x410e06){return _0x247abe(_0x28e852,_0x10d593,_0xbdc39a,_0x58759c,_0x27ae54,_0x410e06);},'OYmKN':function(_0x14fcf1,_0x5aece5){return _0x14fcf1(_0x5aece5);},'ehCSu':function(_0x520947,_0x4ad8fe){return _0x520947!==_0x4ad8fe;},'XayFQ':function(_0x34d1e4,_0x196da6){return _0x34d1e4===_0x196da6;},'anpBS':_0x4ea8f0(0x18c),'AbUhC':_0x4ea8f0(0x174),'vzKgO':_0x4ea8f0(0x1b9),'SpSlz':_0x4ea8f0(0x18a),'bXEyi':_0x4ea8f0(0x180),'XChIp':_0x4ea8f0(0x17a),'zpXbu':'cluster-name','gWELD':function(_0x38303e,_0x408093){return _0x38303e(_0x408093);},'mvSGC':function(_0x328577,_0x168fb3){return _0x328577===_0x168fb3;},'KUGdN':function(_0x5a6b19,_0x46da31,_0x58a263,_0x41260f,_0x4e8aab,_0x2930c2,_0x2b9d0f){return _0x5a6b19(_0x46da31,_0x58a263,_0x41260f,_0x4e8aab,_0x2930c2,_0x2b9d0f);},'UYnVK':'unauthorised','zgVIp':_0x4ea8f0(0x193),'ZIRZr':_0x4ea8f0(0x168)};try{global_registry['requestId']=_0x5935c4[_0x4ea8f0(0x176)](uuidv4);!fs[_0x4ea8f0(0x171)](_0x5935c4[_0x4ea8f0(0x176)](getCredentialsPath))&&(console[_0x4ea8f0(0x167)](_0x5935c4[_0x4ea8f0(0x1a4)]),await _0x5935c4[_0x4ea8f0(0x16d)](sendInstrumentationEvent,_0x1d8ae1,_0x5935c4[_0x4ea8f0(0x1a2)],messageTypes[_0x4ea8f0(0x16a)],_0x5935c4['wbGck'],null,_0x1d8ae1),process[_0x4ea8f0(0x161)](0x1));const _0x2ab00a=JSON[_0x4ea8f0(0x18f)](fs[_0x4ea8f0(0x1a8)](_0x5935c4['xyduU'](getCredentialsPath)));let _0x323406=_0x4ea8f0(0x19d)+AG_API_URL+_0x4ea8f0(0x181);_0x1d8ae1[_0x4ea8f0(0x194)]&&(_0x323406=_0x4ea8f0(0x19d)+AG_API_URL+_0x4ea8f0(0x165));const _0x35c150={};_0x35c150[_0x4ea8f0(0x187)]=_0x2ab00a[_0x4ea8f0(0x1ad)][_0x4ea8f0(0x187)],_0x35c150[_0x4ea8f0(0x166)]=_0x2ab00a[_0x4ea8f0(0x1ad)][_0x4ea8f0(0x166)];const _0x9ae9c1={};_0x9ae9c1[_0x4ea8f0(0x162)]=_0x323406,_0x9ae9c1[_0x4ea8f0(0x1b8)]=_0x5935c4[_0x4ea8f0(0x160)],_0x9ae9c1[_0x4ea8f0(0x170)]=_0x35c150;const _0x421211=_0x9ae9c1;global_registry[_0x4ea8f0(0x16c)]=_0x2ab00a['Browserstack'][_0x4ea8f0(0x187)],global_registry[_0x4ea8f0(0x16b)]=_0x2ab00a[_0x4ea8f0(0x1ad)][_0x4ea8f0(0x166)],_0x5935c4[_0x4ea8f0(0x1b5)](sendInstrumentationEvent,_0x1d8ae1,_0x5935c4[_0x4ea8f0(0x1a2)],messageTypes[_0x4ea8f0(0x17b)],null,null,_0x1d8ae1);const _0x573f48=await _0x5935c4[_0x4ea8f0(0x19c)](promisifiedRequest,_0x421211);if(_0x5935c4[_0x4ea8f0(0x17f)](_0x573f48,null)&&_0x5935c4[_0x4ea8f0(0x17f)](_0x573f48,undefined)&&_0x5935c4[_0x4ea8f0(0x1ac)](_0x573f48['statusCode'],0xc8)){const _0x7c439f=JSON[_0x4ea8f0(0x18f)](_0x573f48[_0x4ea8f0(0x175)]);console[_0x4ea8f0(0x169)](_0x5935c4['anpBS']);const _0x17ca31=[];_0x17ca31[_0x4ea8f0(0x197)]([_0x5935c4[_0x4ea8f0(0x1ab)],_0x5935c4[_0x4ea8f0(0x199)],_0x5935c4[_0x4ea8f0(0x1aa)],_0x5935c4['bXEyi'],_0x5935c4[_0x4ea8f0(0x164)],_0x5935c4[_0x4ea8f0(0x1a3)]]),_0x7c439f['forEach'](_0x32d26f=>{const _0x14a689=_0x4ea8f0;_0x17ca31[_0x14a689(0x197)]([_0x32d26f['id'],_0x32d26f[_0x14a689(0x16e)],_0x32d26f[_0x14a689(0x18a)],_0x32d26f[_0x14a689(0x180)],_0x32d26f[_0x14a689(0x17a)],_0x32d26f[_0x14a689(0x1a6)]]);}),console[_0x4ea8f0(0x169)](_0x5935c4['gWELD'](table,_0x17ca31)),process[_0x4ea8f0(0x161)](0x0);}_0x5935c4[_0x4ea8f0(0x17e)](_0x573f48[_0x4ea8f0(0x198)],0x191)&&(console[_0x4ea8f0(0x167)](_0x4ea8f0(0x185)),await _0x5935c4['KUGdN'](sendInstrumentationEvent,_0x1d8ae1,_0x5935c4[_0x4ea8f0(0x1a2)],messageTypes[_0x4ea8f0(0x16a)],_0x5935c4['UYnVK'],null,_0x1d8ae1),process[_0x4ea8f0(0x161)](0x1)),console[_0x4ea8f0(0x167)](_0x4ea8f0(0x177)+JSON[_0x4ea8f0(0x17c)](_0x573f48)),await _0x5935c4[_0x4ea8f0(0x179)](sendInstrumentationEvent,_0x1d8ae1,_0x5935c4['paHeE'],messageTypes[_0x4ea8f0(0x16a)],_0x5935c4[_0x4ea8f0(0x1b1)],_0x573f48,_0x1d8ae1),process[_0x4ea8f0(0x161)](0x1);}catch(_0x12b135){console['error'](_0x4ea8f0(0x1b7)+_0x12b135[_0x4ea8f0(0x172)]),await _0x5935c4['poCIq'](sendInstrumentationEvent,_0x1d8ae1,_0x5935c4[_0x4ea8f0(0x1a2)],messageTypes['ERROR'],_0x5935c4[_0x4ea8f0(0x1a0)],_0x12b135,_0x1d8ae1),process[_0x4ea8f0(0x161)](0x1);}};
@@ -1 +1 @@
1
- var a11_0x4b78e2=a11_0x1c13;(function(_0x551077,_0x148085){var _0x1963fe=a11_0x1c13,_0x20e115=_0x551077();while(!![]){try{var _0x592551=parseInt(_0x1963fe(0xec))/0x1*(-parseInt(_0x1963fe(0xc5))/0x2)+-parseInt(_0x1963fe(0xc7))/0x3+parseInt(_0x1963fe(0x107))/0x4*(-parseInt(_0x1963fe(0xc0))/0x5)+-parseInt(_0x1963fe(0xfc))/0x6+parseInt(_0x1963fe(0xf9))/0x7+-parseInt(_0x1963fe(0x108))/0x8*(parseInt(_0x1963fe(0x104))/0x9)+parseInt(_0x1963fe(0xcb))/0xa;if(_0x592551===_0x148085)break;else _0x20e115['push'](_0x20e115['shift']());}catch(_0x2f8fba){_0x20e115['push'](_0x20e115['shift']());}}}(a11_0x90d9,0x1f42a),require(a11_0x4b78e2(0xdc))[a11_0x4b78e2(0x10d)](),exports[a11_0x4b78e2(0xed)]=process[a11_0x4b78e2(0xfd)]['DASHBOARD_ENDPOINT']||a11_0x4b78e2(0xe5),exports['BS_API_URL']=process[a11_0x4b78e2(0xfd)][a11_0x4b78e2(0x102)]||a11_0x4b78e2(0xc4),exports[a11_0x4b78e2(0xc6)]=process[a11_0x4b78e2(0xfd)]['AG_API_URL']||'grid-api.browserstack.com',exports['WS_ENDPOINT']='wss://'+this[a11_0x4b78e2(0xc6)]+a11_0x4b78e2(0xf7),exports[a11_0x4b78e2(0xfa)]=a11_0x4b78e2(0xe2),exports[a11_0x4b78e2(0xf3)]=a11_0x4b78e2(0x10e),exports[a11_0x4b78e2(0xfb)]=a11_0x4b78e2(0x103),exports[a11_0x4b78e2(0x100)]='aws',exports['CLUSTER_DEP_STACK_NAME']='BSTACK-ATS-CLUSTER',exports[a11_0x4b78e2(0xcd)]='BSTACK-ATS-CLUSTER-AUTOSCALER');var a11_0x235f53={};a11_0x235f53[a11_0x4b78e2(0xe3)]=a11_0x4b78e2(0xe1),a11_0x235f53[a11_0x4b78e2(0xe8)]=a11_0x4b78e2(0xde);var a11_0x53f05b={};function a11_0x90d9(){var _0x47bc08=['RESOURCES','error','CLI_ARGS_REGEX','dotenv','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','BrowserStack','cliRunStarted','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','browserstack:managedBy','credentials','Key','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','grid.browserstack.com','INFO','connect','Value','WARNING','./instanceTypes.json','gridUrl','1802HPdHos','DASHBOARD_ENDPOINT','RAW_ARGS_REGEX','resourceInfo','SUCCESS','success','\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli','IAM_USER_NAME','HELP_FOOTER_MESSAGE','browserstack:service','AWS_INSTANCE_TYPE_LIST','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','list','43043UGmbRr','CP_CONFIG_FILE','DEFAULT_GRID_NAME','977562LVTwSR','env','\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.','Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20{TurboScale}.','AWS','HELP_HEADER_MESSAGE','BS_API_URL','high-scale-grid','76851kHJZLW','unknown','REDACTED','462052KtFrTk','8IavdUx','\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.','[REDACTED]','BrowserStack-Automate-TurboScale','configure','config','BrowserStackIAMUser','5BrAnzY','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20{TurboScale}.','LINK_MESSAGE','NULL','api.browserstack.com','252sVkhnW','AG_API_URL','33993UbREmV','info','WS_EVENTS','global_registry','6472550jSnNGa','CLI_RUN_FINISHED','CLUSTER_AUTOSCALER_STACK_NAME','warning','messageTypes','ERROR','UNKNOWN','COMMON_HST_TAGS','\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.','HST_CLUSTER_TAGS','init','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','log','cliRunFinished'];a11_0x90d9=function(){return _0x47bc08;};return a11_0x90d9();}a11_0x53f05b[a11_0x4b78e2(0xe3)]='browserstack:service',a11_0x53f05b['Value']='BrowserStack-Automate-TurboScale',exports[a11_0x4b78e2(0xd2)]=[a11_0x235f53,a11_0x53f05b];function a11_0x1c13(_0x10c174,_0x47cc6f){var _0x90d966=a11_0x90d9();return a11_0x1c13=function(_0x1c13b3,_0x548198){_0x1c13b3=_0x1c13b3-0xc0;var _0x4ce1df=_0x90d966[_0x1c13b3];return _0x4ce1df;},a11_0x1c13(_0x10c174,_0x47cc6f);}var a11_0x4503d3={};a11_0x4503d3['browserstack:managedBy']=a11_0x4b78e2(0xde),a11_0x4503d3[a11_0x4b78e2(0xf5)]=a11_0x4b78e2(0x10b),exports[a11_0x4b78e2(0xd4)]=a11_0x4503d3,exports['SUPPORTED_CLOUD_PROVIDERS']=[this[a11_0x4b78e2(0x100)]];var a11_0x8e1263={};a11_0x8e1263['LOG']=a11_0x4b78e2(0xd7),a11_0x8e1263[a11_0x4b78e2(0xd9)]=a11_0x4b78e2(0xef),a11_0x8e1263['GRID_URL']=a11_0x4b78e2(0xeb),a11_0x8e1263['CLI_RUN_STARTED']=a11_0x4b78e2(0xdf),a11_0x8e1263[a11_0x4b78e2(0xcc)]=a11_0x4b78e2(0xd8),exports[a11_0x4b78e2(0xc9)]=a11_0x8e1263,exports[a11_0x4b78e2(0xca)]={},exports['LINK_MESSAGE']=a11_0x4b78e2(0xf2);var a11_0x439ce9={};a11_0x439ce9['root']=a11_0x4b78e2(0x109)+this[a11_0x4b78e2(0xc2)],a11_0x439ce9[a11_0x4b78e2(0xd5)]='\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.'+this['LINK_MESSAGE'],a11_0x439ce9[a11_0x4b78e2(0x10c)]=a11_0x4b78e2(0xe0)+this[a11_0x4b78e2(0xc2)],a11_0x439ce9['create']=a11_0x4b78e2(0xd3)+this[a11_0x4b78e2(0xc2)],a11_0x439ce9[a11_0x4b78e2(0xf8)]={},a11_0x439ce9['delete']=a11_0x4b78e2(0xdd)+this[a11_0x4b78e2(0xc2)],a11_0x439ce9[a11_0x4b78e2(0xe7)]=a11_0x4b78e2(0xfe)+this[a11_0x4b78e2(0xc2)],a11_0x439ce9[a11_0x4b78e2(0xf8)]['root']=a11_0x4b78e2(0xc1)+this[a11_0x4b78e2(0xc2)],a11_0x439ce9[a11_0x4b78e2(0xf8)]['grid']=a11_0x4b78e2(0xe4)+this['LINK_MESSAGE'],a11_0x439ce9[a11_0x4b78e2(0xf8)]['gridProfile']=a11_0x4b78e2(0xd6)+this[a11_0x4b78e2(0xc2)],exports[a11_0x4b78e2(0x101)]=a11_0x439ce9,exports[a11_0x4b78e2(0xf4)]=a11_0x4b78e2(0xff);var a11_0x25789={};a11_0x25789[a11_0x4b78e2(0xf0)]=a11_0x4b78e2(0xf1),a11_0x25789[a11_0x4b78e2(0xd0)]=a11_0x4b78e2(0xda),a11_0x25789[a11_0x4b78e2(0xe6)]=a11_0x4b78e2(0xc8),a11_0x25789[a11_0x4b78e2(0xe9)]=a11_0x4b78e2(0xce),a11_0x25789[a11_0x4b78e2(0xd1)]=a11_0x4b78e2(0x105),a11_0x25789[a11_0x4b78e2(0xc3)]=null,exports[a11_0x4b78e2(0xcf)]=a11_0x25789,exports[a11_0x4b78e2(0xdb)]=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a11_0x4b78e2(0xee)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a11_0x4b78e2(0x106)]=a11_0x4b78e2(0x10a),exports[a11_0x4b78e2(0xf6)]=require(a11_0x4b78e2(0xea));
1
+ var a11_0x241c62=a11_0x36f7;function a11_0x36f7(_0x41565b,_0xe6f9e2){var _0x348297=a11_0x3482();return a11_0x36f7=function(_0x36f7be,_0xf3d5d1){_0x36f7be=_0x36f7be-0x124;var _0x54ee27=_0x348297[_0x36f7be];return _0x54ee27;},a11_0x36f7(_0x41565b,_0xe6f9e2);}(function(_0x508a0d,_0x71fe48){var _0x4a777f=a11_0x36f7,_0x404991=_0x508a0d();while(!![]){try{var _0x12dda0=parseInt(_0x4a777f(0x16a))/0x1+-parseInt(_0x4a777f(0x152))/0x2*(-parseInt(_0x4a777f(0x14a))/0x3)+-parseInt(_0x4a777f(0x15c))/0x4*(parseInt(_0x4a777f(0x146))/0x5)+-parseInt(_0x4a777f(0x13f))/0x6+-parseInt(_0x4a777f(0x16d))/0x7*(parseInt(_0x4a777f(0x168))/0x8)+parseInt(_0x4a777f(0x16b))/0x9*(parseInt(_0x4a777f(0x138))/0xa)+parseInt(_0x4a777f(0x16e))/0xb*(parseInt(_0x4a777f(0x12a))/0xc);if(_0x12dda0===_0x71fe48)break;else _0x404991['push'](_0x404991['shift']());}catch(_0x228f80){_0x404991['push'](_0x404991['shift']());}}}(a11_0x3482,0x6c7c5),require(a11_0x241c62(0x151))[a11_0x241c62(0x127)](),exports['DASHBOARD_ENDPOINT']=process[a11_0x241c62(0x129)]['DASHBOARD_ENDPOINT']||'grid.browserstack.com',exports['BS_API_URL']=process[a11_0x241c62(0x129)][a11_0x241c62(0x171)]||a11_0x241c62(0x163),exports[a11_0x241c62(0x158)]=process[a11_0x241c62(0x129)][a11_0x241c62(0x158)]||a11_0x241c62(0x141),exports[a11_0x241c62(0x134)]='wss://'+this[a11_0x241c62(0x158)]+a11_0x241c62(0x148),exports[a11_0x241c62(0x13d)]=a11_0x241c62(0x136),exports[a11_0x241c62(0x13c)]=a11_0x241c62(0x150),exports[a11_0x241c62(0x15a)]=a11_0x241c62(0x124),exports[a11_0x241c62(0x12d)]=a11_0x241c62(0x16f),exports['CLUSTER_DEP_STACK_NAME']=a11_0x241c62(0x130),exports[a11_0x241c62(0x131)]='BSTACK-ATS-CLUSTER-AUTOSCALER');var a11_0x519b43={};a11_0x519b43[a11_0x241c62(0x154)]=a11_0x241c62(0x15f),a11_0x519b43[a11_0x241c62(0x135)]=a11_0x241c62(0x12e);var a11_0x3391d5={};a11_0x3391d5[a11_0x241c62(0x154)]=a11_0x241c62(0x13a),a11_0x3391d5[a11_0x241c62(0x135)]=a11_0x241c62(0x159),exports[a11_0x241c62(0x165)]=[a11_0x519b43,a11_0x3391d5];var a11_0x57d517={};a11_0x57d517[a11_0x241c62(0x15f)]='BrowserStack',a11_0x57d517[a11_0x241c62(0x13a)]=a11_0x241c62(0x159),exports[a11_0x241c62(0x140)]=a11_0x57d517,exports[a11_0x241c62(0x147)]=[this['AWS']];var a11_0x2f4b99={};a11_0x2f4b99['LOG']=a11_0x241c62(0x160),a11_0x2f4b99[a11_0x241c62(0x166)]=a11_0x241c62(0x13b),a11_0x2f4b99[a11_0x241c62(0x128)]=a11_0x241c62(0x145),a11_0x2f4b99['CLI_RUN_STARTED']=a11_0x241c62(0x139),a11_0x2f4b99[a11_0x241c62(0x153)]='cliRunFinished',exports[a11_0x241c62(0x170)]=a11_0x2f4b99,exports[a11_0x241c62(0x13e)]={},exports[a11_0x241c62(0x143)]='\x0a\x0aFind\x20more\x20information\x20at:\x20https://browserstack.com/docs/automate-turboscale/references/browserstack-cli';var a11_0x285eee={};a11_0x285eee[a11_0x241c62(0x12b)]='\x0aCreate\x20and\x20Manage\x20scalable\x20browser\x20automation\x20grids\x20for\x20Functional\x20Testing.'+this[a11_0x241c62(0x143)],a11_0x285eee[a11_0x241c62(0x14c)]=a11_0x241c62(0x162)+this[a11_0x241c62(0x143)],a11_0x285eee[a11_0x241c62(0x167)]=a11_0x241c62(0x161)+this[a11_0x241c62(0x143)],a11_0x285eee['create']='\x0aThis\x20will\x20help\x20create\x20a\x20new\x20Automation\x20grid.'+this[a11_0x241c62(0x143)],a11_0x285eee[a11_0x241c62(0x15d)]={},a11_0x285eee[a11_0x241c62(0x137)]=a11_0x241c62(0x15e)+this[a11_0x241c62(0x143)],a11_0x285eee[a11_0x241c62(0x149)]='\x0aThis\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC.'+this[a11_0x241c62(0x143)],a11_0x285eee[a11_0x241c62(0x15d)][a11_0x241c62(0x12b)]=a11_0x241c62(0x156)+this['LINK_MESSAGE'],a11_0x285eee[a11_0x241c62(0x15d)][a11_0x241c62(0x169)]=a11_0x241c62(0x133)+this[a11_0x241c62(0x143)],a11_0x285eee[a11_0x241c62(0x15d)][a11_0x241c62(0x14d)]=a11_0x241c62(0x155)+this['LINK_MESSAGE'],exports[a11_0x241c62(0x14f)]=a11_0x285eee,exports['HELP_FOOTER_MESSAGE']='Use\x20\x22browserstack-cli\x20ats\x20<command_group>\x20-h/--help\x22\x20for\x20more\x20options\x20available\x20about\x20Automate\x20{TurboScale}.';function a11_0x3482(){var _0x2a38b7=['Value','credentials','delete','8770fzLDFY','cliRunStarted','browserstack:service','resourceInfo','IAM_USER_NAME','CP_CONFIG_FILE','global_registry','5069436WTgDmx','HST_CLUSTER_TAGS','grid-api.browserstack.com','NULL','LINK_MESSAGE','warning','gridUrl','1128845EFEXcd','SUPPORTED_CLOUD_PROVIDERS','/ws?username=<UsernamePlaceholder>&password=<PasswordPlaceholder>','connect','12CuICZd','AWS_INSTANCE_TYPE_LIST','init','gridProfile','error','HELP_HEADER_MESSAGE','BrowserStackIAMUser','dotenv','225486uFeVIU','CLI_RUN_FINISHED','Key','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grid\x20profiles\x20created.','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20resources\x20created\x20on\x20Automate\x20{TurboScale}.','UNKNOWN','AG_API_URL','BrowserStack-Automate-TurboScale','DEFAULT_GRID_NAME','INFO','12apApzD','list','\x0aThis\x20will\x20help\x20delete\x20the\x20Automation\x20grid.','browserstack:managedBy','log','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20configuration\x20of\x20BrowserStack\x20CLI.','\x0aThis\x20command\x20will\x20take\x20you\x20through\x20the\x20initialisation\x20of\x20BrowserStack\x20CLI.','api.browserstack.com','messageTypes','COMMON_HST_TAGS','RESOURCES','configure','1392BBraTP','grid','160641wYiuxM','8631xXRyhh','./instanceTypes.json','27713aDwIsN','11Itxflg','aws','WS_EVENTS','BS_API_URL','high-scale-grid','RAW_ARGS_REGEX','REDACTED','config','GRID_URL','env','14433360hrZuyO','root','ERROR','AWS','BrowserStack','unknown','BSTACK-ATS-CLUSTER','CLUSTER_AUTOSCALER_STACK_NAME','SUCCESS','\x0aThis\x20command\x20will\x20list\x20down\x20the\x20grids\x20created.','WS_ENDPOINT'];a11_0x3482=function(){return _0x2a38b7;};return a11_0x3482();}var a11_0x52abb9={};a11_0x52abb9[a11_0x241c62(0x132)]='success',a11_0x52abb9[a11_0x241c62(0x12c)]=a11_0x241c62(0x14e),a11_0x52abb9[a11_0x241c62(0x15b)]='info',a11_0x52abb9['WARNING']=a11_0x241c62(0x144),a11_0x52abb9[a11_0x241c62(0x157)]=a11_0x241c62(0x12f),a11_0x52abb9[a11_0x241c62(0x142)]=null,exports[a11_0x241c62(0x164)]=a11_0x52abb9,exports['CLI_ARGS_REGEX']=/(?<=("u"|"username"|"k"|"key") *: *)"[^,}]*/g,exports[a11_0x241c62(0x125)]=/(?<=("-u"|"-username"|"-k"|"-key") *, *)"[^,\]]*/g,exports[a11_0x241c62(0x126)]='[REDACTED]',exports[a11_0x241c62(0x14b)]=require(a11_0x241c62(0x16c));
@@ -1 +1 @@
1
- function a12_0x27a9(_0x47f3f3,_0x4b7996){const _0x12e428=a12_0x12e4();return a12_0x27a9=function(_0x27a912,_0x3ba528){_0x27a912=_0x27a912-0xb4;let _0x22e03b=_0x12e428[_0x27a912];return _0x22e03b;},a12_0x27a9(_0x47f3f3,_0x4b7996);}function a12_0x12e4(){const _0x491ebf=['transports','\x20-\x20','YYYY-MM-DD\x20HH:mm:ss','createLogger','log','936HmEjTI','File','usage.log','combine','level','existsSync','3045790cRUnfW','2HMhReO','colorize','events.log','debug','7Vqsiqc','join','mkdirSync','path','472130PIaTMt','12mrhRxa','console.info','message','147460PEuWVR','winston','fileLogger','38018673KMgYIv','format','name','7385608SyIOyu','4758885LWzfrM','printf','1537784Lanlow'];a12_0x12e4=function(){return _0x491ebf;};return a12_0x12e4();}const a12_0x1019c2=a12_0x27a9;(function(_0x11ac9c,_0x3333cb){const _0x1f026f=a12_0x27a9,_0x1ac7f7=_0x11ac9c();while(!![]){try{const _0x525a66=-parseInt(_0x1f026f(0xc6))/0x1*(-parseInt(_0x1f026f(0xbe))/0x2)+parseInt(_0x1f026f(0xd1))/0x3+parseInt(_0x1f026f(0xd3))/0x4+-parseInt(_0x1f026f(0xbd))/0x5*(-parseInt(_0x1f026f(0xc7))/0x6)+-parseInt(_0x1f026f(0xc2))/0x7*(parseInt(_0x1f026f(0xd0))/0x8)+parseInt(_0x1f026f(0xb7))/0x9*(parseInt(_0x1f026f(0xca))/0xa)+-parseInt(_0x1f026f(0xcd))/0xb;if(_0x525a66===_0x3333cb)break;else _0x1ac7f7['push'](_0x1ac7f7['shift']());}catch(_0x389743){_0x1ac7f7['push'](_0x1ac7f7['shift']());}}}(a12_0x12e4,0xc70df));const winston=require(a12_0x1019c2(0xcb)),fs=require('fs'),path=require(a12_0x1019c2(0xc5)),logDir=a12_0x1019c2(0xb6);!fs[a12_0x1019c2(0xbc)](logDir)&&fs[a12_0x1019c2(0xc4)](logDir);const a12_0x448059={};a12_0x448059[a12_0x1019c2(0xce)]=a12_0x1019c2(0xb4);const a12_0x18a3ad={};a12_0x18a3ad['level']=!![];const a12_0x264133={};a12_0x264133[a12_0x1019c2(0xcf)]=a12_0x1019c2(0xc8),exports['logger']=new winston[(a12_0x1019c2(0xb5))]({'format':winston[a12_0x1019c2(0xce)][a12_0x1019c2(0xba)](winston[a12_0x1019c2(0xce)]['timestamp'](a12_0x448059),winston[a12_0x1019c2(0xce)][a12_0x1019c2(0xbf)](a12_0x18a3ad),winston[a12_0x1019c2(0xce)][a12_0x1019c2(0xd2)](_0x18b4fd=>_0x18b4fd['timestamp']+a12_0x1019c2(0xd5)+_0x18b4fd[a12_0x1019c2(0xbb)]+':\x20'+_0x18b4fd[a12_0x1019c2(0xc9)])),'transports':[new winston[(a12_0x1019c2(0xd4))]['Console'](a12_0x264133),new winston[(a12_0x1019c2(0xd4))][(a12_0x1019c2(0xb8))]({'filename':path[a12_0x1019c2(0xc3)](logDir,a12_0x1019c2(0xc0)),'level':a12_0x1019c2(0xc1)})]});const winstonFileLoggerParams={'transports':[new winston[(a12_0x1019c2(0xd4))]['File']({'filename':path[a12_0x1019c2(0xc3)](logDir,a12_0x1019c2(0xb9)),'level':a12_0x1019c2(0xc1)})]};exports[a12_0x1019c2(0xcc)]=new winston[(a12_0x1019c2(0xb5))](winstonFileLoggerParams);
1
+ const a12_0x41c73a=a12_0x4317;(function(_0x18f21b,_0x1f113d){const _0x1c4ec2=a12_0x4317,_0x95c862=_0x18f21b();while(!![]){try{const _0x5ccd98=parseInt(_0x1c4ec2(0x13a))/0x1*(-parseInt(_0x1c4ec2(0x148))/0x2)+-parseInt(_0x1c4ec2(0x149))/0x3+parseInt(_0x1c4ec2(0x13f))/0x4+-parseInt(_0x1c4ec2(0x155))/0x5*(-parseInt(_0x1c4ec2(0x154))/0x6)+-parseInt(_0x1c4ec2(0x146))/0x7+-parseInt(_0x1c4ec2(0x13e))/0x8+-parseInt(_0x1c4ec2(0x13d))/0x9*(-parseInt(_0x1c4ec2(0x151))/0xa);if(_0x5ccd98===_0x1f113d)break;else _0x95c862['push'](_0x95c862['shift']());}catch(_0xb7136c){_0x95c862['push'](_0x95c862['shift']());}}}(a12_0x4e37,0x49712));const winston=require(a12_0x41c73a(0x13c)),fs=require('fs'),path=require('path'),logDir=a12_0x41c73a(0x14d);!fs[a12_0x41c73a(0x14f)](logDir)&&fs[a12_0x41c73a(0x147)](logDir);const a12_0x3fdd54={};function a12_0x4e37(){const _0x4be602=['YYYY-MM-DD\x20HH:mm:ss','\x20-\x20','1bhggrU','events.log','winston','12593547NHvvUm','4173496KRYuWI','1760820NRfWZV','timestamp','File','transports','colorize','level','message','2875614aWDrkj','mkdirSync','1104842sXBnlD','748158aXpToi','createLogger','logger','format','log','console.info','existsSync','name','10XdUrNI','combine','debug','6USgqhg','978130ENiKJb','usage.log'];a12_0x4e37=function(){return _0x4be602;};return a12_0x4e37();}a12_0x3fdd54[a12_0x41c73a(0x14c)]=a12_0x41c73a(0x138);function a12_0x4317(_0x34d810,_0x3182da){const _0x4e373c=a12_0x4e37();return a12_0x4317=function(_0x43179e,_0x324308){_0x43179e=_0x43179e-0x137;let _0x51ffb5=_0x4e373c[_0x43179e];return _0x51ffb5;},a12_0x4317(_0x34d810,_0x3182da);}const a12_0x49f612={};a12_0x49f612[a12_0x41c73a(0x144)]=!![];const a12_0x53fc78={};a12_0x53fc78[a12_0x41c73a(0x150)]=a12_0x41c73a(0x14e),exports[a12_0x41c73a(0x14b)]=new winston['createLogger']({'format':winston[a12_0x41c73a(0x14c)][a12_0x41c73a(0x152)](winston[a12_0x41c73a(0x14c)][a12_0x41c73a(0x140)](a12_0x3fdd54),winston['format'][a12_0x41c73a(0x143)](a12_0x49f612),winston[a12_0x41c73a(0x14c)]['printf'](_0x22e887=>_0x22e887[a12_0x41c73a(0x140)]+a12_0x41c73a(0x139)+_0x22e887[a12_0x41c73a(0x144)]+':\x20'+_0x22e887[a12_0x41c73a(0x145)])),'transports':[new winston[(a12_0x41c73a(0x142))]['Console'](a12_0x53fc78),new winston[(a12_0x41c73a(0x142))]['File']({'filename':path['join'](logDir,a12_0x41c73a(0x13b)),'level':'debug'})]});const winstonFileLoggerParams={'transports':[new winston[(a12_0x41c73a(0x142))][(a12_0x41c73a(0x141))]({'filename':path['join'](logDir,a12_0x41c73a(0x137)),'level':a12_0x41c73a(0x153)})]};exports['fileLogger']=new winston[(a12_0x41c73a(0x14a))](winstonFileLoggerParams);
package/ats/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a13_0x3e0ee6=a13_0x31f3;(function(_0x4e3372,_0x5a0fee){const _0x2154f7=a13_0x31f3,_0x18995a=_0x4e3372();while(!![]){try{const _0x389111=parseInt(_0x2154f7(0x104))/0x1*(parseInt(_0x2154f7(0x107))/0x2)+-parseInt(_0x2154f7(0x101))/0x3+parseInt(_0x2154f7(0x10b))/0x4+parseInt(_0x2154f7(0xff))/0x5*(-parseInt(_0x2154f7(0x102))/0x6)+-parseInt(_0x2154f7(0x10c))/0x7*(-parseInt(_0x2154f7(0x103))/0x8)+parseInt(_0x2154f7(0x10e))/0x9+parseInt(_0x2154f7(0xfe))/0xa*(parseInt(_0x2154f7(0x10d))/0xb);if(_0x389111===_0x5a0fee)break;else _0x18995a['push'](_0x18995a['shift']());}catch(_0x47f1d7){_0x18995a['push'](_0x18995a['shift']());}}}(a13_0x51c9,0x9db7a));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require('./config/constants');process[a13_0x3e0ee6(0x100)][a13_0x3e0ee6(0x105)]=0x1;function a13_0x31f3(_0x5151f0,_0x2ba3a3){const _0x51c94e=a13_0x51c9();return a13_0x31f3=function(_0x31f34c,_0x4e7619){_0x31f34c=_0x31f34c-0xfc;let _0x2a44fe=_0x51c94e[_0x31f34c];return _0x2a44fe;},a13_0x31f3(_0x5151f0,_0x2ba3a3);}function run(_0x4162e7){const _0x997bea=a13_0x3e0ee6,_0x167480={};_0x167480[_0x997bea(0x106)]='commands',_0x167480[_0x997bea(0x10f)]=_0x997bea(0x108);const _0x59dd40=_0x167480;_0x4162e7[_0x997bea(0x109)](HELP_HEADER_MESSAGE[_0x997bea(0x10a)])[_0x997bea(0xfc)](_0x59dd40[_0x997bea(0x106)])['demandCommand']()[_0x997bea(0x108)](_0x59dd40['UGiPO'])['epilogue'](HELP_FOOTER_MESSAGE);}function a13_0x51c9(){const _0x2db12d=['828876VAiBno','55376zlFPte','59123JcceuO','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','qHwSq','2tEuNgX','help','usage','root','179544HXlWfA','49tySSQE','231cqXweE','1407042qXyfem','UGiPO','commandDir','exports','760070eLYgSM','35anzyMo','env','875748DNnZbO'];a13_0x51c9=function(){return _0x2db12d;};return a13_0x51c9();}module[a13_0x3e0ee6(0xfd)]=run;
2
+ 'use strict';const a13_0x104c11=a13_0x5599;(function(_0x45b2d6,_0x28a2d1){const _0x21d96f=a13_0x5599,_0x54b722=_0x45b2d6();while(!![]){try{const _0x4fed65=parseInt(_0x21d96f(0x1db))/0x1+-parseInt(_0x21d96f(0x1d5))/0x2*(parseInt(_0x21d96f(0x1d7))/0x3)+-parseInt(_0x21d96f(0x1dd))/0x4+-parseInt(_0x21d96f(0x1dc))/0x5+parseInt(_0x21d96f(0x1d2))/0x6+parseInt(_0x21d96f(0x1d6))/0x7*(parseInt(_0x21d96f(0x1d3))/0x8)+parseInt(_0x21d96f(0x1de))/0x9*(parseInt(_0x21d96f(0x1df))/0xa);if(_0x4fed65===_0x28a2d1)break;else _0x54b722['push'](_0x54b722['shift']());}catch(_0x5058d8){_0x54b722['push'](_0x54b722['shift']());}}}(a13_0x29e5,0x847ea));const {HELP_FOOTER_MESSAGE,HELP_HEADER_MESSAGE}=require(a13_0x104c11(0x1e4));process[a13_0x104c11(0x1e5)][a13_0x104c11(0x1d8)]=0x1;function a13_0x29e5(){const _0x2ea2d4=['1828603CBvFpR','93HCcjUW','AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE','epilogue','commands','280801mNrgSS','4112325jySiXg','2164884OKnEum','15095439llblff','10kdvoTz','jmaKF','kuHJg','root','commandDir','./config/constants','env','help','983364tUsfyh','8wusJxB','demandCommand','30762fNrSJR'];a13_0x29e5=function(){return _0x2ea2d4;};return a13_0x29e5();}function run(_0x28f85b){const _0x389065=a13_0x104c11,_0x5c56c2={};_0x5c56c2[_0x389065(0x1e0)]=_0x389065(0x1da),_0x5c56c2[_0x389065(0x1e1)]='help';const _0x422ef9=_0x5c56c2;_0x28f85b['usage'](HELP_HEADER_MESSAGE[_0x389065(0x1e2)])[_0x389065(0x1e3)](_0x422ef9['jmaKF'])[_0x389065(0x1d4)]()[_0x389065(0x1d1)](_0x422ef9[_0x389065(0x1e1)])[_0x389065(0x1d9)](HELP_FOOTER_MESSAGE);}function a13_0x5599(_0x1c6fbc,_0x31b729){const _0x29e509=a13_0x29e5();return a13_0x5599=function(_0x5599a4,_0x549c32){_0x5599a4=_0x5599a4-0x1d1;let _0x4523be=_0x29e509[_0x5599a4];return _0x4523be;},a13_0x5599(_0x1c6fbc,_0x31b729);}module['exports']=run;
@@ -1 +1 @@
1
- function a14_0x4118(_0x51471e,_0x3b967e){const _0x1bb3bf=a14_0x1bb3();return a14_0x4118=function(_0x411866,_0x544cef){_0x411866=_0x411866-0xd3;let _0xaf7f2a=_0x1bb3bf[_0x411866];return _0xaf7f2a;},a14_0x4118(_0x51471e,_0x3b967e);}const a14_0x3af802=a14_0x4118;(function(_0x2b1c82,_0x14cf66){const _0x42215a=a14_0x4118,_0x5a5b20=_0x2b1c82();while(!![]){try{const _0x4fa46f=-parseInt(_0x42215a(0xda))/0x1*(-parseInt(_0x42215a(0x13b))/0x2)+-parseInt(_0x42215a(0x121))/0x3+-parseInt(_0x42215a(0x11c))/0x4+parseInt(_0x42215a(0x106))/0x5*(parseInt(_0x42215a(0x130))/0x6)+parseInt(_0x42215a(0x151))/0x7+parseInt(_0x42215a(0x168))/0x8+-parseInt(_0x42215a(0x155))/0x9*(parseInt(_0x42215a(0x1be))/0xa);if(_0x4fa46f===_0x14cf66)break;else _0x5a5b20['push'](_0x5a5b20['shift']());}catch(_0xfdde8){_0x5a5b20['push'](_0x5a5b20['shift']());}}}(a14_0x1bb3,0x68c75));const fs=require('fs'),yaml=require(a14_0x3af802(0x16c)),path=require(a14_0x3af802(0x18b)),awsSDK=require(a14_0x3af802(0x115)),{AWS,global_registry}=require(a14_0x3af802(0x1eb)),{logger}=require(a14_0x3af802(0x1e4));exports[a14_0x3af802(0x167)]=()=>{const _0x406982=a14_0x3af802,_0x5c0a29={'WxtNH':function(_0x37e42f,_0x2cee1c){return _0x37e42f(_0x2cee1c);},'lIjWB':function(_0x251e9c,_0x511345){return _0x251e9c!==_0x511345;},'tvFeO':'uLASF','GFWWo':'Oxght'};if(!this['isAWSConfigured']()){if(_0x5c0a29[_0x406982(0x1da)](_0x5c0a29[_0x406982(0x199)],_0x5c0a29[_0x406982(0x135)]))this[_0x406982(0x16e)]();else return this[_0x406982(0x167)](),_0x5c0a29['WxtNH'](_0x1bbf32,_0x3adbdd);}},exports[a14_0x3af802(0x1ac)]=async(_0x7d2795,_0x54b419)=>{const _0x442510=a14_0x3af802,_0x59888d={'MUXYR':function(_0x305943,_0x1cf29d){return _0x305943(_0x1cf29d);},'Dhvmt':'2016-11-15','VRRNJ':function(_0x45c018,_0x5ba0c6){return _0x45c018(_0x5ba0c6);},'jYfdW':function(_0x36f990,_0x146fd1){return _0x36f990!==_0x146fd1;},'ZYrel':_0x442510(0x1b2),'rjAly':function(_0x3ac2db,_0x13ef29){return _0x3ac2db(_0x13ef29);}};if(_0x59888d[_0x442510(0x129)](isAWS,_0x7d2795)){if(_0x59888d[_0x442510(0xf4)](_0x59888d[_0x442510(0x1e7)],_0x59888d[_0x442510(0x1e7)])){const _0x15f4e3={'XZKjF':function(_0x19b746,_0x41343a){const _0xc833c0=_0x442510;return _0x59888d[_0xc833c0(0x129)](_0x19b746,_0x41343a);}};return new _0x1b4141((_0x376d05,_0x1161eb)=>{const _0x3115d2=_0x442510,_0x1299b8={'DsxPK':function(_0x346e12,_0x8cf0a6){const _0x2eef87=a14_0x4118;return _0x59888d[_0x2eef87(0x17c)](_0x346e12,_0x8cf0a6);}},_0x48d8e6={};_0x48d8e6[_0x3115d2(0xf6)]=_0x59888d[_0x3115d2(0xe4)],_0x48d8e6['region']=_0x2662d3;const _0xab42c9=new _0x48abe6[(_0x3115d2(0x15e))](_0x48d8e6);_0xab42c9['describeVpcs']()[_0x3115d2(0x1cd)]()[_0x3115d2(0x194)](_0x29dbf0=>{const _0x5dee55=_0x3115d2;_0x15f4e3[_0x5dee55(0x1b3)](_0x376d05,_0x29dbf0);})[_0x3115d2(0x1a0)](_0x4a3900=>{const _0x1b8d7f=_0x3115d2;_0x275043[_0x1b8d7f(0xf3)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x4a3900),_0x1299b8[_0x1b8d7f(0x119)](_0x1161eb,_0x4a3900);});});}else return this[_0x442510(0x167)](),_0x59888d[_0x442510(0x145)](checkAWSClusterCreated,_0x54b419);}},exports[a14_0x3af802(0x17f)]=async _0x482853=>{const _0x5027cf=a14_0x3af802,_0x524f6a={};_0x524f6a[_0x5027cf(0x1a4)]=_0x5027cf(0x186);const _0x326476=_0x524f6a,_0x572527={};_0x572527['apiVersion']=_0x326476[_0x5027cf(0x1a4)];const _0x31e835=new awsSDK[(_0x5027cf(0x15d))](_0x572527),_0x88423c={};return _0x88423c['name']=_0x482853,_0x31e835[_0x5027cf(0x1f4)](_0x88423c)[_0x5027cf(0x1cd)]();},exports['createAuthConfigMap']=async _0x41986d=>{const _0x518e2c=a14_0x3af802,_0x4cee83={};_0x4cee83[_0x518e2c(0x13c)]=_0x518e2c(0x202),_0x4cee83[_0x518e2c(0x17e)]=_0x518e2c(0x197),_0x4cee83[_0x518e2c(0x181)]=_0x518e2c(0xed),_0x4cee83[_0x518e2c(0x161)]=_0x518e2c(0x14b);const _0x399068=_0x4cee83,_0x455e6e=await fs[_0x518e2c(0xf2)](path[_0x518e2c(0x153)](__dirname,'..',_0x399068[_0x518e2c(0x13c)],_0x399068['LmPis']),_0x399068[_0x518e2c(0x181)]),_0x5685a0=yaml[_0x518e2c(0x10b)](_0x455e6e);return _0x5685a0[_0x518e2c(0xfc)][_0x518e2c(0x158)]=_0x5685a0[_0x518e2c(0xfc)][_0x518e2c(0x158)][_0x518e2c(0x125)](_0x399068['FETjc'],_0x41986d),_0x5685a0;},exports[a14_0x3af802(0x11a)]=async(_0x39bd6b,_0x4cc3ad)=>{const _0x2e882c=a14_0x3af802,_0x2bfdf4={};_0x2bfdf4[_0x2e882c(0x1fe)]=_0x2e882c(0x186);const _0x4e2f5a=_0x2bfdf4,_0x277376={};_0x277376['apiVersion']=_0x4e2f5a[_0x2e882c(0x1fe)];const _0x440cbb=new awsSDK['EKS'](_0x277376),_0x55d5f9={};return _0x55d5f9[_0x2e882c(0x13a)]=_0x39bd6b,_0x55d5f9['nodegroupName']=_0x4cc3ad,_0x440cbb[_0x2e882c(0x104)](_0x55d5f9)[_0x2e882c(0x1cd)]();};function a14_0x1bb3(){const _0x200655=['lUDmc','Regions','JKLZO','DsxPK','getNodeGroupInfo','Aubik','1920628qMxzHD','fpuJF','ZdNGW','cloudProviderSecretKey','ityOY','726894zhyTLu','ojySY','clusters','uHWSn','replace','tIteh','tJdLy','push','VRRNJ','mtkrC','eRiXH','jNJRs','Tdsag','kqllh','soJsD','42LxvoXu','MNYEv','cmAXC','mGXVB','ybBVI','GFWWo','BIsmh','iWswY','enDDI','JRVQN','clusterName','1150406twKHVZ','dJpNG','hBZXu','\x20in\x20region\x20','XWhSs','XNxTV','byUhG','NaGio','ZJEoX','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','rjAly','update','vikHL','IUiwL','IWlxA','FQWBQ','<ARN>','UFFJZ','tkBUM','QSzrP','jRnuN','GWnkz','2919721SdFBFO','vJkmj','join','LHNWt','39942ohXKUY','aVXpW','isBucketPresent','mapRoles','DkWjE','ksPcF','UYNWc','VGAaR','EKS','EC2','ywZUe','SEuWs','FETjc','HYoQU','UtvyR','MAfHT','ykWeF','JMeuN','configureAWSIfNotConfigured','2969976FYgEjS','yPxUI','nlgAR','qkayx','js-yaml','MpwvR','setAWSConfig','iIfQQ','Tofjd','GDHAq','cloudProviderAccessKey','bqZGe','xHDzY','uQAkK','OVqLJ','HOCnn','HIdDv','region','rrzcW','roBGa','MUXYR','MBeug','LmPis','getClusterInfo','nESnk','pMslc','Cannot\x20find\x20subnets\x20','bzVpk','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','LDXPt','2017-11-01','XnsvZ','LcOmL','zqHAu','Cannot\x20find\x20VPC\x20','path','gLwPr','qxOYP','pQsVd','describeVpcs','includes','LvQwa','tGkvk','GiGqY','then','JCqFT','DzPfp','aws-auth-cm.yaml','WKuDg','tvFeO','tjkIW','gTgHC','NmdaD','Nbrpj','OwYAJ','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','catch','hNbZM','ztexf','iXyPh','DOeCD','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','KBcdJ','2016-11-15','fetchSecurityGroups','mhMLB','HyxTc','cvxSN','isClusterPresent','UuSKT','Subnets','SubnetId','GtPmc','GTWaN','JgMyt','XZKjF','QZKdY','vKZtK','okHSI','AOXCi','REAsY','tcnbr','KEYSa','YFjVO','listClusters','WdoaL','690PfDaIk','SBsZL','KcCuM','secretAccessKey','UuvbE','qEcAJ','eVmCA','NFMVl','TJQJT','gASPX','YgcNW','warn','IVaAc','YIhDh','UHSYB','promise','syWmB','epBlu','sZkqW','describeSubnets','OmMmJ','tAaHh','FLfcm','fBdko','JTMKt','WiNUX','isAWSConfigured','jEBii','lIjWB','DOmVX','clusterRegion','describeSecurityGroups','aaPVh','nwMaR','qUyRb','kIzNm','AWjuc','tmkHf','../config/logger','Bucket','rqLkI','ZYrel','Filters','eXktI','QcuNb','../config/constants','jlxAR','OhTfx','GHHlo','vMdoN','CqbfM','aKGNv','FmIVP','tjyqw','describeCluster','znarl','ifsyL','wePtj','HfMTz','mUebg','mjhQB','awsConfigSet','UVPOq','bUSNy','WbppO','info','ffWyz','tOnCu','templates','GJLRd','HgBqc','QWhAI','nLRqO','VGOEt','PJfOG','sQmBu','forEach','PhUES','bZRuS','1WfzuRx','SUsBD','every','Values','config','ktwWV','dRNtQ','BJRAz','nMJcS','lMiyk','Dhvmt','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','ANXBg','rMLqP','MvsZP','WqkXf','Benar','olKNR','TyNeP','utf-8','yOSqW','kdVPU','Bucket:\x20','awsObj','readFileAsync','error','jYfdW','nUAVQ','apiVersion','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','lvgUu','qGMDt','swSRr','ZJeTG','data','VpcIds','LHIkl','URwRh','vmcvE','IcZvQ','Name','LEhOW','describeNodegroup','SgnBp','67355DUTNNu','DlpTJ','accessKeyId','CLQlo','YbfjY','load','vxvlY','lpwdc','kxyrU','.\x20Error:\x20','AGDlZ','headBucket','QZibZ','.\x20Please\x20Check\x20and\x20try\x20again','gqEDj','aws-sdk'];a14_0x1bb3=function(){return _0x200655;};return a14_0x1bb3();}const isAWS=_0x282656=>{const _0x1516bb=a14_0x3af802,_0x4a88fe={'SgnBp':function(_0x3b6b9d,_0x402b12){return _0x3b6b9d(_0x402b12);},'WqkXf':_0x1516bb(0x1a7),'kqllh':function(_0x1a4ceb,_0x6e1f6f){return _0x1a4ceb===_0x6e1f6f;},'ztexf':function(_0xed7f57,_0x4519b9){return _0xed7f57!==_0x4519b9;},'FQWBQ':_0x1516bb(0xff),'kIzNm':_0x1516bb(0x1bb)};if(_0x4a88fe[_0x1516bb(0x12e)](_0x282656,AWS)){if(_0x4a88fe[_0x1516bb(0x1a2)](_0x4a88fe[_0x1516bb(0x14a)],_0x4a88fe[_0x1516bb(0x1e1)]))return!![];else{const _0x4aa500={'AOXCi':function(_0x3b52fb,_0x4b70d6){const _0x30947c=_0x1516bb;return _0x4a88fe[_0x30947c(0x105)](_0x3b52fb,_0x4b70d6);},'bUSNy':_0x4a88fe[_0x1516bb(0xe9)]};return new _0x36c520((_0xf8ef6,_0x2bc716)=>{const _0x1e4d24=_0x1516bb,_0xd4d827={'YgcNW':function(_0x45f9b5,_0x35f24e){const _0x5bc9ac=a14_0x4118;return _0x4aa500[_0x5bc9ac(0x1b7)](_0x45f9b5,_0x35f24e);}},_0x5df612={};_0x5df612[_0x1e4d24(0xf6)]=_0x4aa500[_0x1e4d24(0x1fd)],_0x5df612[_0x1e4d24(0x179)]=_0x3d5349;const _0x54ac03=new _0x29a976[(_0x1e4d24(0x15e))](_0x5df612);_0x54ac03[_0x1e4d24(0x1d1)]()[_0x1e4d24(0x1cd)]()[_0x1e4d24(0x194)](_0x37f375=>{_0x4aa500['AOXCi'](_0xf8ef6,_0x37f375);})[_0x1e4d24(0x1a0)](_0x14b0a6=>{const _0x1b277b=_0x1e4d24;_0x31b3c6['error'](_0x1b277b(0x19f)+_0x14b0a6),_0xd4d827[_0x1b277b(0x1c8)](_0x2bc716,_0x14b0a6);});});}}return![];},checkAWSClusterCreated=_0x5873e8=>{const _0x4c974d=a14_0x3af802,_0x37e6df={'PJfOG':function(_0x49932b,_0x2460f4){return _0x49932b(_0x2460f4);},'aVXpW':function(_0x3a50eb,_0x41eeaf){return _0x3a50eb===_0x41eeaf;},'IxfNs':_0x4c974d(0x1e3),'ityOY':'nuqwR','uKCBk':function(_0x3a5b65,_0x189c1a){return _0x3a5b65===_0x189c1a;},'czTEJ':'YxWBr','rqLkI':_0x4c974d(0x183),'vxvlY':function(_0xcdab07,_0x2a7adc){return _0xcdab07(_0x2a7adc);},'SSwre':function(_0x30dc29,_0x6933f1){return _0x30dc29(_0x6933f1);},'aKGNv':function(_0xa6f4d1,_0x52a98e){return _0xa6f4d1(_0x52a98e);},'UFFJZ':function(_0x3dc6f0,_0x14ba32){return _0x3dc6f0!==_0x14ba32;},'QcuNb':'qxMbz','TJQJT':'oMyKe','QZKdY':function(_0x4c3aa8,_0x6cdb){return _0x4c3aa8(_0x6cdb);},'YscNH':_0x4c974d(0x1d9),'oCOBs':'2017-11-01'};return new Promise((_0x28d73f,_0x411251)=>{const _0x1b9c55=_0x4c974d,_0xd957cd={'ZJeTG':function(_0x1d51c,_0x85ff6){const _0x20fcb7=a14_0x4118;return _0x37e6df[_0x20fcb7(0x1f1)](_0x1d51c,_0x85ff6);},'XnsvZ':function(_0x29e2e1,_0x4b3d6a){const _0x1eef50=a14_0x4118;return _0x37e6df[_0x1eef50(0x14c)](_0x29e2e1,_0x4b3d6a);},'bqZGe':_0x37e6df[_0x1b9c55(0x1ea)],'yzFUn':_0x37e6df[_0x1b9c55(0x1c6)],'NJXxj':function(_0xf857,_0x1fb98b){const _0x16fada=_0x1b9c55;return _0x37e6df[_0x16fada(0x1b4)](_0xf857,_0x1fb98b);}};if(_0x37e6df[_0x1b9c55(0x156)](_0x37e6df['YscNH'],_0x37e6df['YscNH'])){const _0x31a9f3={};_0x31a9f3[_0x1b9c55(0xf6)]=_0x37e6df['oCOBs'];const _0x420bcf=new awsSDK[(_0x1b9c55(0x15d))](_0x31a9f3);_0x420bcf[_0x1b9c55(0x1bc)]()['promise']()['then'](_0x5ae21d=>{const _0x42f564=_0x1b9c55,_0xb09486={'KEYSa':function(_0x3e9812,_0x5b8d10){const _0x2e3778=a14_0x4118;return _0x37e6df[_0x2e3778(0xd5)](_0x3e9812,_0x5b8d10);}};_0x37e6df[_0x42f564(0x156)](_0x37e6df['IxfNs'],_0x37e6df[_0x42f564(0x120)])?_0xd957cd[_0x42f564(0xfb)](_0x490490,_0xb79758):(_0x5ae21d[_0x42f564(0x123)]['includes'](_0x5873e8)&&(_0x37e6df['uKCBk'](_0x37e6df['czTEJ'],_0x37e6df[_0x42f564(0x1e6)])?(_0x26383f[_0x42f564(0xf3)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x5b01c4),_0xb09486[_0x42f564(0x1ba)](_0x2a8e5d,_0x2e86f3)):_0x37e6df[_0x42f564(0x10c)](_0x28d73f,!![])),_0x37e6df['SSwre'](_0x28d73f,![]));})['catch'](_0x584716=>{const _0x48ae2c=_0x1b9c55;if(_0xd957cd[_0x48ae2c(0x187)](_0xd957cd[_0x48ae2c(0x173)],_0xd957cd['yzFUn']))logger[_0x48ae2c(0xf3)](_0x584716),_0xd957cd['NJXxj'](_0x411251,_0x584716);else return _0x4f5c79[_0x48ae2c(0x190)](_0x46ceb0)?!![]:(_0x7b303a[_0x48ae2c(0x128)](_0x54bfb8),![]);});}else{const _0x7d3c86={};_0x7d3c86[_0x1b9c55(0x179)]=_0x44468d[_0x1b9c55(0x1dc)],_0x7d3c86[_0x1b9c55(0x108)]=_0x5d8ad9[_0x1b9c55(0x172)],_0x7d3c86[_0x1b9c55(0x1c1)]=_0x55983b[_0x1b9c55(0x11f)],_0x32921c[_0x1b9c55(0xde)][_0x1b9c55(0x146)](_0x7d3c86),_0x3feb14[_0x1b9c55(0x1fb)]=!![];}});};exports['fetchVPCs']=_0x5dae8f=>{const _0xb43665=a14_0x3af802,_0x4cff3e={'HyxTc':function(_0x2864dc,_0x5a0429){return _0x2864dc(_0x5a0429);},'REAsY':function(_0x47e383,_0x4047c9){return _0x47e383===_0x4047c9;},'qUyRb':_0xb43665(0x11b),'nMJcS':_0xb43665(0x143),'SBsZL':function(_0x39130e,_0x183c11){return _0x39130e(_0x183c11);},'eVmCA':function(_0x3a7aaa,_0x1e6918){return _0x3a7aaa===_0x1e6918;},'YbfjY':'wjmhY','iXyPh':_0xb43665(0x16d),'cmAXC':function(_0x2abd67,_0x4729df){return _0x2abd67!==_0x4729df;},'ZdNGW':_0xb43665(0xea),'LEhOW':_0xb43665(0x1c2),'hBZXu':'2016-11-15'};return new Promise((_0x1f8ed8,_0x2d8396)=>{const _0x223841=_0xb43665,_0x2cfaab={'UYNWc':function(_0x574e29,_0x587ef3){const _0x18d5d7=a14_0x4118;return _0x4cff3e[_0x18d5d7(0x1c4)](_0x574e29,_0x587ef3);},'WfyPj':_0x4cff3e[_0x223841(0x10a)],'okHSI':_0x4cff3e[_0x223841(0x1a3)],'GiGqY':function(_0x56aecd,_0x5a8889){const _0x208de6=_0x223841;return _0x4cff3e[_0x208de6(0x1bf)](_0x56aecd,_0x5a8889);}};if(_0x4cff3e[_0x223841(0x132)](_0x4cff3e[_0x223841(0x11e)],_0x4cff3e[_0x223841(0x103)])){const _0x24759b={};_0x24759b[_0x223841(0xf6)]=_0x4cff3e[_0x223841(0x13d)],_0x24759b[_0x223841(0x179)]=_0x5dae8f;const _0x17f391=new awsSDK[(_0x223841(0x15e))](_0x24759b);_0x17f391[_0x223841(0x18f)]()[_0x223841(0x1cd)]()['then'](_0x1f0303=>{const _0x4ad699=_0x223841,_0x363772={'mGXVB':function(_0xa8aca9,_0x462d2b){const _0xa2a843=a14_0x4118;return _0x4cff3e[_0xa2a843(0x1aa)](_0xa8aca9,_0x462d2b);}};if(_0x4cff3e[_0x4ad699(0x1b8)](_0x4cff3e[_0x4ad699(0x1e0)],_0x4cff3e[_0x4ad699(0xe2)])){const _0x3842c6={'SEuWs':function(_0x42aad0,_0x26308e){const _0x354300=_0x4ad699;return _0x363772[_0x354300(0x133)](_0x42aad0,_0x26308e);}},_0x17c21c=new _0x1423c2['S3']();return new _0x22f1a2((_0x13d0c2,_0x3d8cfc)=>{const _0x39539e=_0x4ad699,_0x23ffe5={'IcZvQ':function(_0x2961ca,_0x3e2d16){const _0x3d53f2=a14_0x4118;return _0x3842c6[_0x3d53f2(0x160)](_0x2961ca,_0x3e2d16);}},_0x8ec903={};_0x8ec903[_0x39539e(0x1e5)]=_0x31903e,_0x17c21c['headBucket'](_0x8ec903)[_0x39539e(0x1cd)]()[_0x39539e(0x194)](_0x1ec6b7=>{const _0x17b908=_0x39539e;_0x5029a7[_0x17b908(0x1c9)]('Bucket:\x20'+_0x23bd96+_0x17b908(0x1a5)),_0x23ffe5[_0x17b908(0x101)](_0x13d0c2,!![]);})[_0x39539e(0x1a0)](()=>{const _0x1bfeb0=_0x39539e;_0x84f131[_0x1bfeb0(0x1ff)](_0x1bfeb0(0xf0)+_0x2dd514+_0x1bfeb0(0x144)),_0x23ffe5[_0x1bfeb0(0x101)](_0x13d0c2,![]);});});}else _0x4cff3e[_0x4ad699(0x1bf)](_0x1f8ed8,_0x1f0303);})['catch'](_0xf0fbe6=>{const _0x3ef8af=_0x223841;if(_0x2cfaab[_0x3ef8af(0x15b)](_0x2cfaab['WfyPj'],_0x2cfaab[_0x3ef8af(0x1b6)]))return!![];else logger['error'](_0x3ef8af(0xe5)+_0xf0fbe6),_0x2cfaab['GiGqY'](_0x2d8396,_0xf0fbe6);});}else _0x506fbf[_0x223841(0x1c9)](_0x223841(0xf0)+_0x122b8d+_0x223841(0x1a5)),_0x2cfaab[_0x223841(0x193)](_0x9e7d3f,!![]);});},exports['isVPCPresent']=(_0x1f4acd,_0x3684ed)=>{const _0x5572b6=a14_0x3af802,_0x1431d4={'vikHL':function(_0x45c712,_0x4f1175){return _0x45c712===_0x4f1175;},'HYoQU':_0x5572b6(0x201),'lUDmc':_0x5572b6(0x138),'DJGvX':function(_0xcdcad3,_0x5f1a62){return _0xcdcad3(_0x5f1a62);},'GDHAq':function(_0x5296e8,_0x43f3e5){return _0x5296e8!==_0x43f3e5;},'IUiwL':_0x5572b6(0x18e),'UuSKT':_0x5572b6(0x198),'aaPVh':function(_0x142463,_0x5b208b){return _0x142463(_0x5b208b);},'eHFNk':function(_0x5dfe36,_0x37ab56){return _0x5dfe36(_0x37ab56);},'DOmVX':function(_0x4284ab,_0x3aaa1b){return _0x4284ab!==_0x3aaa1b;},'FLfcm':function(_0x1fccf3,_0x5c3745){return _0x1fccf3(_0x5c3745);},'tjyqw':function(_0x7dbb27,_0x306ec9){return _0x7dbb27===_0x306ec9;},'IVaAc':_0x5572b6(0x1bd),'lMiyk':_0x5572b6(0x1a7)},_0x3e5d63={};_0x3e5d63[_0x5572b6(0xfd)]=[_0x1f4acd];let _0x54afa1=_0x3e5d63;return new Promise((_0x3e90aa,_0x61d1b)=>{const _0x48c12a=_0x5572b6,_0x375e87={'ANXBg':function(_0x22ff28,_0x1ee10f){const _0x3898e7=a14_0x4118;return _0x1431d4[_0x3898e7(0x1db)](_0x22ff28,_0x1ee10f);},'jRnuN':function(_0x13056e,_0x61864c){const _0x27482d=a14_0x4118;return _0x1431d4[_0x27482d(0x171)](_0x13056e,_0x61864c);},'UVPOq':function(_0x17f04a,_0xb202b3){const _0x49af71=a14_0x4118;return _0x1431d4[_0x49af71(0x1d4)](_0x17f04a,_0xb202b3);}};if(_0x1431d4[_0x48c12a(0x1f3)](_0x1431d4[_0x48c12a(0x1ca)],_0x1431d4[_0x48c12a(0x1ca)])){const _0x242fb8={};_0x242fb8[_0x48c12a(0xf6)]=_0x1431d4[_0x48c12a(0xe3)],_0x242fb8[_0x48c12a(0x179)]=_0x3684ed;const _0x1b7433=new awsSDK[(_0x48c12a(0x15e))](_0x242fb8);_0x1b7433['describeVpcs'](_0x54afa1)[_0x48c12a(0x1cd)]()[_0x48c12a(0x194)](_0x215859=>{const _0x2df321=_0x48c12a;_0x1431d4[_0x2df321(0x147)](_0x1431d4[_0x2df321(0x162)],_0x1431d4[_0x2df321(0x116)])?!this[_0x2df321(0x1d8)]()&&this[_0x2df321(0x16e)]():_0x1431d4['DJGvX'](_0x3e90aa,!![]);})[_0x48c12a(0x1a0)](_0x5f4380=>{const _0x3746c7=_0x48c12a;_0x1431d4[_0x3746c7(0x171)](_0x1431d4[_0x3746c7(0x148)],_0x1431d4[_0x3746c7(0x1ad)])?(logger[_0x3746c7(0xf3)](_0x3746c7(0x18a)+_0x1f4acd+'\x20in\x20region\x20'+_0x3684ed+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x1431d4[_0x3746c7(0x1de)](_0x3e90aa,![])):_0x375e87[_0x3746c7(0xe6)](_0x2609d8,_0x27e8a8)&&_0x375e87[_0x3746c7(0x14f)](_0x1d17f8[_0x3746c7(0x117)],_0x56e2f0)?_0x375e87['UVPOq'](_0x3d13e4,_0x208b38[_0x3746c7(0x117)]):_0x375e87[_0x3746c7(0x1fc)](_0x30b7fe,{});});}else _0x156ed9[_0x48c12a(0x1ff)](_0x48c12a(0xf0)+_0x284b8a+'\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket'),_0x1431d4['eHFNk'](_0x3baa95,![]);});},exports['isSubnetsValid']=(_0x104ddd,_0x2aef9d,_0x141986)=>{const _0x3ac4b7=a14_0x3af802,_0x4ac418={'iIfQQ':function(_0x1f20fa,_0x5e88e2){return _0x1f20fa(_0x5e88e2);},'MAfHT':function(_0x5f2948,_0x376309){return _0x5f2948!==_0x376309;},'LvQwa':_0x3ac4b7(0x142),'ifsyL':'2016-11-15','Mfvat':_0x3ac4b7(0x1df),'QSzrP':_0x3ac4b7(0x169),'vMdoN':_0x3ac4b7(0x185),'jjdyG':function(_0x1847d4,_0x599806){return _0x1847d4===_0x599806;},'IdXvv':_0x3ac4b7(0xd8),'OwYAJ':_0x3ac4b7(0x1ab),'mCYVZ':_0x3ac4b7(0x1fa),'MBeug':'hadsR','IWlxA':function(_0x4bb4b2,_0x1394db){return _0x4bb4b2(_0x1394db);},'xGWOt':_0x3ac4b7(0x141),'KmjCt':function(_0x19d68e,_0x55809c){return _0x19d68e===_0x55809c;},'YSKHg':_0x3ac4b7(0xd4),'rMLqP':_0x3ac4b7(0xe0),'VGAaR':'vpc-id'},_0x48fde5={};_0x48fde5[_0x3ac4b7(0x102)]=_0x4ac418[_0x3ac4b7(0x15c)],_0x48fde5[_0x3ac4b7(0xdd)]=[_0x2aef9d];const _0x2e3781={};_0x2e3781[_0x3ac4b7(0x1e8)]=[_0x48fde5];let _0x56fdf9=_0x2e3781;return new Promise((_0x422376,_0x268d6a)=>{const _0x407cdf=_0x3ac4b7,_0x4552c6={'SUsBD':function(_0x4546a3,_0x949421){const _0x26b281=a14_0x4118;return _0x4ac418[_0x26b281(0x16f)](_0x4546a3,_0x949421);},'HgBqc':function(_0x1de85a,_0x262a35){const _0x35b016=a14_0x4118;return _0x4ac418[_0x35b016(0x164)](_0x1de85a,_0x262a35);},'fzsDM':_0x4ac418[_0x407cdf(0x191)],'GJLRd':_0x4ac418['ifsyL'],'LHNWt':_0x4ac418['Mfvat'],'JpKLg':function(_0x473737,_0x58291f){const _0x3d160a=_0x407cdf;return _0x4ac418[_0x3d160a(0x164)](_0x473737,_0x58291f);},'CqbfM':_0x4ac418[_0x407cdf(0x14e)],'LcOmL':_0x4ac418[_0x407cdf(0x1ef)],'PYLey':function(_0x26850d,_0x4a1ff0){return _0x4ac418['jjdyG'](_0x26850d,_0x4a1ff0);},'tIteh':_0x4ac418['IdXvv'],'zJgfJ':_0x4ac418[_0x407cdf(0x19e)],'GtPmc':_0x4ac418['mCYVZ'],'PnssD':_0x4ac418[_0x407cdf(0x17d)],'LHIkl':function(_0x472076,_0x3820c0){const _0x607b95=_0x407cdf;return _0x4ac418[_0x607b95(0x149)](_0x472076,_0x3820c0);},'qlsjn':function(_0x345c6c,_0x1c4a74){return _0x4ac418['MAfHT'](_0x345c6c,_0x1c4a74);},'KcCuM':_0x4ac418['xGWOt']};if(_0x4ac418['KmjCt'](_0x4ac418['YSKHg'],_0x4ac418[_0x407cdf(0xe7)]))_0x55b535[_0x407cdf(0xf3)](_0x407cdf(0xf7)+_0x156ac3),_0x4552c6[_0x407cdf(0xdb)](_0xe77bce,_0x1df755);else{const _0x2f7fd3={};_0x2f7fd3[_0x407cdf(0xf6)]=_0x4ac418[_0x407cdf(0x1f6)],_0x2f7fd3[_0x407cdf(0x179)]=_0x141986;const _0x253307=new awsSDK[(_0x407cdf(0x15e))](_0x2f7fd3);_0x253307['describeSubnets'](_0x56fdf9)[_0x407cdf(0x1cd)]()[_0x407cdf(0x194)](_0x3d49a3=>{const _0x44d8a2=_0x407cdf,_0x479d09={'ybBVI':function(_0x30226c,_0x5b95bf){const _0x521945=a14_0x4118;return _0x4552c6[_0x521945(0x204)](_0x30226c,_0x5b95bf);},'pHSWO':_0x4552c6['fzsDM'],'ktwWV':function(_0x3f0b3f,_0x73cb65){return _0x4552c6['SUsBD'](_0x3f0b3f,_0x73cb65);},'zqHAu':_0x4552c6[_0x44d8a2(0x203)],'vKZtK':function(_0x47b2e3,_0x4b5dcf){const _0x3acdec=_0x44d8a2;return _0x4552c6[_0x3acdec(0xdb)](_0x47b2e3,_0x4b5dcf);},'fpuJF':_0x4552c6[_0x44d8a2(0x154)],'BJRAz':function(_0x5e796b,_0x46e0cb){return _0x4552c6['JpKLg'](_0x5e796b,_0x46e0cb);},'roBGa':_0x4552c6[_0x44d8a2(0x1f0)],'QZibZ':_0x4552c6[_0x44d8a2(0x188)],'tcnbr':function(_0x533451,_0x31b18e){return _0x4552c6['PYLey'](_0x533451,_0x31b18e);},'JKLZO':_0x4552c6[_0x44d8a2(0x126)],'ywZUe':_0x4552c6['zJgfJ'],'fBdko':function(_0x5eb537,_0x28b199){const _0x1d5975=_0x44d8a2;return _0x4552c6[_0x1d5975(0xdb)](_0x5eb537,_0x28b199);}};if(_0x4552c6['HgBqc'](_0x4552c6[_0x44d8a2(0x1b0)],_0x4552c6['PnssD'])){const _0x1fa18a=[],_0x4a1eef=[];_0x3d49a3[_0x44d8a2(0x1ae)][_0x44d8a2(0xd7)](_0x2345d2=>{const _0x44f65e=_0x44d8a2;_0x479d09[_0x44f65e(0x134)](_0x479d09['pHSWO'],_0x479d09['pHSWO'])?this[_0x44f65e(0x16e)]():_0x1fa18a[_0x44f65e(0x128)](_0x2345d2[_0x44f65e(0x1af)]);});const _0x87f579=_0x104ddd[_0x44d8a2(0xdc)](_0xfbc4e8=>{const _0x75aff6=_0x44d8a2,_0x52c36c={'syWmB':function(_0x5ef9a7,_0x22f04f){const _0x17bf9c=a14_0x4118;return _0x479d09[_0x17bf9c(0xdf)](_0x5ef9a7,_0x22f04f);},'NLhBf':_0x479d09[_0x75aff6(0x189)],'HfMTz':function(_0x42a80e,_0x375ec9){const _0x50bfb6=_0x75aff6;return _0x479d09[_0x50bfb6(0x1b5)](_0x42a80e,_0x375ec9);}};if(_0x479d09[_0x75aff6(0x134)](_0x479d09['fpuJF'],_0x479d09[_0x75aff6(0x11d)])){const _0x592032={'gqEDj':function(_0x2d52f3,_0x2e7b28){return _0x52c36c['syWmB'](_0x2d52f3,_0x2e7b28);},'pSvEr':_0x52c36c['NLhBf']};return new _0xb54f7a((_0x17cbc1,_0x5a3b76)=>{const _0x1bb84f=_0x75aff6,_0x32cffd={'vBWhi':function(_0x22a6b6,_0x1129ac){return _0x592032['gqEDj'](_0x22a6b6,_0x1129ac);},'nUAVQ':function(_0x554457,_0x20d43f){const _0x34fd75=a14_0x4118;return _0x592032[_0x34fd75(0x114)](_0x554457,_0x20d43f);}},_0x473020={};_0x473020['apiVersion']=_0x592032['pSvEr'],_0x473020[_0x1bb84f(0x179)]=_0x3ecd10;const _0x20cac4=new _0x501202['EC2'](_0x473020);_0x20cac4[_0x1bb84f(0x1dd)]()[_0x1bb84f(0x1cd)]()[_0x1bb84f(0x194)](_0x20c800=>{_0x32cffd['vBWhi'](_0x17cbc1,_0x20c800);})[_0x1bb84f(0x1a0)](_0x4af47e=>{const _0x525b68=_0x1bb84f;_0xbfcd37['error'](_0x525b68(0xf7)+_0x4af47e),_0x32cffd[_0x525b68(0xf5)](_0x5a3b76,_0x4af47e);});});}else{if(_0x1fa18a[_0x75aff6(0x190)](_0xfbc4e8)){if(_0x479d09[_0x75aff6(0xe1)](_0x479d09[_0x75aff6(0x17b)],_0x479d09[_0x75aff6(0x112)]))return!![];else{const _0x230739={'sTkdT':function(_0x3dc33f,_0x5eda3d){const _0x5cf461=_0x75aff6;return _0x479d09[_0x5cf461(0xdf)](_0x3dc33f,_0x5eda3d);}},_0x191eb8={};_0x191eb8[_0x75aff6(0xf6)]=_0x479d09['zqHAu'],_0x191eb8[_0x75aff6(0x179)]=_0x2fb27c;const _0x253140=new _0x4a0dba[(_0x75aff6(0x15e))](_0x191eb8);_0x253140[_0x75aff6(0x18f)]()['promise']()['then'](_0x217e48=>{const _0x33bdd3=_0x75aff6;_0x52c36c[_0x33bdd3(0x1ce)](_0x2551d3,_0x217e48);})[_0x75aff6(0x1a0)](_0x48d39d=>{const _0x2af4de=_0x75aff6;_0x284ce8[_0x2af4de(0xf3)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x48d39d),_0x230739['sTkdT'](_0x43050a,_0x48d39d);});}}else{if(_0x479d09[_0x75aff6(0x1b9)](_0x479d09[_0x75aff6(0x118)],_0x479d09[_0x75aff6(0x15f)]))_0x52c36c[_0x75aff6(0x1f8)](_0x13eb8e,_0x28f621);else return _0x4a1eef[_0x75aff6(0x128)](_0xfbc4e8),![];}}});_0x4552c6[_0x44d8a2(0xfe)](_0x422376,[_0x87f579,_0x4a1eef]);}else _0x143d07[_0x44d8a2(0xf3)](_0x44d8a2(0x19f)+_0x44ca25),_0x479d09[_0x44d8a2(0x1d5)](_0x5615b6,_0x17c2fb);})[_0x407cdf(0x1a0)](_0x56ccd1=>{const _0x3cdfbc=_0x407cdf;_0x4552c6['qlsjn'](_0x4552c6['KcCuM'],_0x4552c6[_0x3cdfbc(0x1c0)])?_0x4552c6[_0x3cdfbc(0xfe)](_0x5b3c65,_0x41f7ba[_0x3cdfbc(0x117)]):(logger[_0x3cdfbc(0xf3)](_0x3cdfbc(0x182)+_0x2aef9d+_0x3cdfbc(0x13e)+_0x141986+_0x3cdfbc(0x10f)+_0x56ccd1),_0x4552c6[_0x3cdfbc(0xdb)](_0x422376,[![],[]]));});}});},exports[a14_0x3af802(0x157)]=_0x2034ad=>{const _0x1b59ee=a14_0x3af802,_0x422738={'eRiXH':function(_0x297499,_0x50daa1){return _0x297499!==_0x50daa1;},'HOCnn':_0x1b59ee(0x178),'BSOEj':'UOmvU','XWhSs':function(_0x2683b8,_0x2daaee){return _0x2683b8(_0x2daaee);},'nLRqO':function(_0x181b25,_0x2bb8dd){return _0x181b25===_0x2bb8dd;},'xHDzY':_0x1b59ee(0xf9),'nlgAR':_0x1b59ee(0x1a1),'qxOYP':function(_0x34091e,_0x51f761){return _0x34091e(_0x51f761);},'mUebg':function(_0x4fd7d6,_0x492440){return _0x4fd7d6(_0x492440);},'gTgHC':function(_0x50e3fd,_0x1d4bbf){return _0x50e3fd===_0x1d4bbf;},'NfMiM':function(_0x550616,_0x39f918){return _0x550616===_0x39f918;},'ykWeF':_0x1b59ee(0x122)},_0x88751=new awsSDK['S3']();return new Promise((_0x278862,_0x8e15e5)=>{const _0x5aef95=_0x1b59ee,_0x1d37fd={'Tofjd':function(_0x5c0ba0,_0xf183c1){const _0x154293=a14_0x4118;return _0x422738[_0x154293(0x1f9)](_0x5c0ba0,_0xf183c1);},'XoiHf':function(_0xb9ea32,_0x34965e){const _0x1775ca=a14_0x4118;return _0x422738[_0x1775ca(0x19b)](_0xb9ea32,_0x34965e);}};if(_0x422738['NfMiM'](_0x422738[_0x5aef95(0x165)],_0x422738['ykWeF'])){const _0x3f7626={};_0x3f7626[_0x5aef95(0x1e5)]=_0x2034ad,_0x88751[_0x5aef95(0x111)](_0x3f7626)['promise']()[_0x5aef95(0x194)](_0x7deee3=>{const _0x56e472=_0x5aef95;_0x422738[_0x56e472(0x12b)](_0x422738[_0x56e472(0x177)],_0x422738['BSOEj'])?(logger[_0x56e472(0x1c9)](_0x56e472(0xf0)+_0x2034ad+_0x56e472(0x1a5)),_0x422738[_0x56e472(0x13f)](_0x278862,!![])):(_0x115fa7[_0x56e472(0x123)]['includes'](_0x23f1a8)&&_0x1d37fd[_0x56e472(0x170)](_0x3f3906,!![]),_0x1d37fd['Tofjd'](_0x1d6562,![]));})[_0x5aef95(0x1a0)](()=>{const _0x27db97=_0x5aef95;if(_0x422738[_0x27db97(0xd3)](_0x422738[_0x27db97(0x174)],_0x422738[_0x27db97(0x16a)]))return _0x1d37fd['XoiHf'](_0x4a50e9[_0x27db97(0x1fb)],!![]);else logger[_0x27db97(0x1ff)](_0x27db97(0xf0)+_0x2034ad+_0x27db97(0x144)),_0x422738[_0x27db97(0x18d)](_0x278862,![]);});}else _0x1d37fd['Tofjd'](_0x1e9454,{});});},exports['fetchSubnets']=_0x1a4599=>{const _0x2d7ace=a14_0x3af802,_0x10093d={'gASPX':function(_0x1b3767,_0xb18e93){return _0x1b3767(_0xb18e93);},'lpwdc':_0x2d7ace(0x1a7),'OVqLJ':function(_0x5572b7,_0x3ed2f8){return _0x5572b7===_0x3ed2f8;},'FNASg':_0x2d7ace(0x1d7),'olKNR':function(_0x39e437,_0x3940d1){return _0x39e437(_0x3940d1);},'JMeuN':'pSfKZ','ksPcF':function(_0x47afb3,_0x1c42fc){return _0x47afb3(_0x1c42fc);},'XPJSP':function(_0x10bae7,_0x181935){return _0x10bae7!==_0x181935;},'OmMmJ':_0x2d7ace(0x195),'bGlFO':_0x2d7ace(0x1cc)};return new Promise((_0x3b26e7,_0x5c22c1)=>{const _0x7ed57f=_0x2d7ace,_0x78f747={'LeaNm':function(_0x57fe6b,_0xc27327){return _0x10093d['gASPX'](_0x57fe6b,_0xc27327);},'DzPfp':_0x10093d[_0x7ed57f(0x10d)],'XNxTV':function(_0x401c06,_0x79e591){const _0xa0e278=_0x7ed57f;return _0x10093d[_0xa0e278(0x176)](_0x401c06,_0x79e591);},'CLQlo':_0x10093d['FNASg'],'mtkrC':function(_0x1a76bb,_0x219b05){const _0x41a114=_0x7ed57f;return _0x10093d[_0x41a114(0xeb)](_0x1a76bb,_0x219b05);},'BIsmh':function(_0x16a0d3,_0x46bafa){const _0x5ec566=_0x7ed57f;return _0x10093d[_0x5ec566(0x176)](_0x16a0d3,_0x46bafa);},'YIhDh':_0x10093d[_0x7ed57f(0x166)],'MNYEv':function(_0x1cdddc,_0xf79b7f){const _0x4e8771=_0x7ed57f;return _0x10093d[_0x4e8771(0x15a)](_0x1cdddc,_0xf79b7f);}};if(_0x10093d['XPJSP'](_0x10093d[_0x7ed57f(0x1d2)],_0x10093d['bGlFO'])){const _0x5aeb5e={};_0x5aeb5e[_0x7ed57f(0xf6)]=_0x10093d[_0x7ed57f(0x10d)],_0x5aeb5e['region']=_0x1a4599;const _0x534f56=new awsSDK[(_0x7ed57f(0x15e))](_0x5aeb5e);_0x534f56['describeSubnets']()['promise']()[_0x7ed57f(0x194)](_0x28cc52=>{const _0x151cff=_0x7ed57f,_0x32c697={'JRVQN':function(_0x3328ec,_0x1774ea){return _0x78f747['LeaNm'](_0x3328ec,_0x1774ea);},'UtvyR':_0x78f747[_0x151cff(0x196)]};if(_0x78f747[_0x151cff(0x140)](_0x78f747[_0x151cff(0x109)],_0x78f747['CLQlo']))_0x78f747[_0x151cff(0x12a)](_0x3b26e7,_0x28cc52);else{const _0x4558f1={'epBlu':function(_0xd3fcc6,_0x39148f){const _0xe28caa=_0x151cff;return _0x32c697[_0xe28caa(0x139)](_0xd3fcc6,_0x39148f);}},_0x31fbd4={};_0x31fbd4[_0x151cff(0xf6)]=_0x32c697[_0x151cff(0x163)],_0x31fbd4[_0x151cff(0x179)]=_0xce79c2;const _0x4b78a9=new _0x216eae[(_0x151cff(0x15e))](_0x31fbd4);_0x4b78a9[_0x151cff(0x1d1)]()[_0x151cff(0x1cd)]()[_0x151cff(0x194)](_0x6f63a7=>{const _0x33a556=_0x151cff;_0x4558f1[_0x33a556(0x1cf)](_0xc471d5,_0x6f63a7);})[_0x151cff(0x1a0)](_0x301645=>{const _0x172934=_0x151cff;_0x2ecec8[_0x172934(0xf3)](_0x172934(0x19f)+_0x301645),_0x4558f1[_0x172934(0x1cf)](_0x4e0ea8,_0x301645);});}})[_0x7ed57f(0x1a0)](_0x569c95=>{const _0xefe077=_0x7ed57f,_0x255e09={'sZkqW':function(_0x2318e5,_0xb6d66a){return _0x78f747['LeaNm'](_0x2318e5,_0xb6d66a);}};_0x78f747[_0xefe077(0x136)](_0x78f747[_0xefe077(0x1cb)],_0x78f747[_0xefe077(0x1cb)])?(logger[_0xefe077(0xf3)](_0xefe077(0x19f)+_0x569c95),_0x78f747[_0xefe077(0x131)](_0x5c22c1,_0x569c95)):(_0x314542[_0xefe077(0xf3)](_0xefe077(0x18a)+_0x5b7b11+'\x20in\x20region\x20'+_0x4a09fa+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x255e09[_0xefe077(0x1d0)](_0x2bb04d,![]));});}else _0x5562ac[_0x7ed57f(0xf3)](_0x7ed57f(0x184)+_0x559364),_0x10093d[_0x7ed57f(0x1c7)](_0xab1a4a,_0x4cc98c);});},exports[a14_0x3af802(0x1a8)]=_0x1abe08=>{const _0x4d5d7c=a14_0x3af802,_0x4ea31b={'MvsZP':function(_0x155ddd,_0x408933){return _0x155ddd(_0x408933);},'oGvkx':function(_0x40ae39,_0x43c9b0){return _0x40ae39(_0x43c9b0);},'Tdsag':function(_0x3ee9cd,_0xf9d53d){return _0x3ee9cd!==_0xf9d53d;},'sQmBu':_0x4d5d7c(0x152),'ivYRu':function(_0xd77f72,_0x3d72d5){return _0xd77f72(_0x3d72d5);},'GWnkz':function(_0xf0f733,_0x3ea613){return _0xf0f733===_0x3ea613;},'GTWaN':'WanRB','DkWjE':_0x4d5d7c(0x192),'vIQfk':_0x4d5d7c(0x107),'soJsD':_0x4d5d7c(0x1ec),'lvgUu':_0x4d5d7c(0x1a7)};return new Promise((_0x3a31c1,_0x3688f1)=>{const _0x4f97d8=_0x4d5d7c,_0x18ce11={'uQAkK':function(_0xda2bdf,_0x25e2d8){return _0x4ea31b['oGvkx'](_0xda2bdf,_0x25e2d8);},'tkBUM':function(_0x3ef77f,_0x34f1e6){const _0x4a39fd=a14_0x4118;return _0x4ea31b[_0x4a39fd(0x12d)](_0x3ef77f,_0x34f1e6);},'bZRuS':_0x4ea31b[_0x4f97d8(0xd6)],'nESnk':function(_0x375f36,_0x1d2720){const _0x897475=_0x4f97d8;return _0x4ea31b[_0x897475(0xe8)](_0x375f36,_0x1d2720);},'NmdaD':function(_0xac2818,_0x586b8a){return _0x4ea31b['ivYRu'](_0xac2818,_0x586b8a);},'gLwPr':function(_0x2e6ed6,_0xfce7e5){const _0x36e76a=_0x4f97d8;return _0x4ea31b[_0x36e76a(0x150)](_0x2e6ed6,_0xfce7e5);},'ffWyz':_0x4ea31b[_0x4f97d8(0x1b1)],'goPUL':_0x4ea31b[_0x4f97d8(0x159)]};if(_0x4ea31b[_0x4f97d8(0x150)](_0x4ea31b['vIQfk'],_0x4ea31b[_0x4f97d8(0x12f)]))_0x4ea31b[_0x4f97d8(0xe8)](_0x266433,!![]);else{const _0x90f4f8={};_0x90f4f8[_0x4f97d8(0xf6)]=_0x4ea31b[_0x4f97d8(0xf8)],_0x90f4f8[_0x4f97d8(0x179)]=_0x1abe08;const _0x2322d2=new awsSDK[(_0x4f97d8(0x15e))](_0x90f4f8);_0x2322d2['describeSecurityGroups']()[_0x4f97d8(0x1cd)]()[_0x4f97d8(0x194)](_0x1450a3=>{const _0x3582c4=_0x4f97d8,_0x36fe33={'yOSqW':function(_0x432faf,_0x1adfd9){const _0x3589d1=a14_0x4118;return _0x18ce11[_0x3589d1(0x175)](_0x432faf,_0x1adfd9);}};_0x18ce11[_0x3582c4(0x14d)](_0x18ce11['bZRuS'],_0x18ce11[_0x3582c4(0xd9)])?_0x36fe33[_0x3582c4(0xee)](_0x3b8b7c,_0x18c32e):_0x18ce11[_0x3582c4(0x180)](_0x3a31c1,_0x1450a3);})[_0x4f97d8(0x1a0)](_0x3cd49f=>{const _0x450238=_0x4f97d8;if(_0x18ce11[_0x450238(0x18c)](_0x18ce11[_0x450238(0x200)],_0x18ce11['goPUL'])){const _0x480864={'kdVPU':function(_0x101338,_0x2581dd){const _0x3d862a=_0x450238;return _0x18ce11[_0x3d862a(0x19c)](_0x101338,_0x2581dd);}},_0x25a029={};_0x25a029[_0x450238(0x1e5)]=_0x59bc5c,_0x2a67a2[_0x450238(0x111)](_0x25a029)[_0x450238(0x1cd)]()[_0x450238(0x194)](_0x35e4a3=>{const _0x325f22=_0x450238;_0x1bbe18[_0x325f22(0x1c9)](_0x325f22(0xf0)+_0x1f26aa+'\x20already\x20exists.\x20Skipping\x20Bucket\x20creation'),_0x480864[_0x325f22(0xef)](_0x14cb59,!![]);})[_0x450238(0x1a0)](()=>{const _0x20d125=_0x450238;_0x383b8e[_0x20d125(0x1ff)](_0x20d125(0xf0)+_0x36edbf+_0x20d125(0x144)),_0x480864[_0x20d125(0xef)](_0x42b1a9,![]);});}else logger[_0x450238(0xf3)](_0x450238(0xf7)+_0x3cd49f),_0x18ce11[_0x450238(0x175)](_0x3688f1,_0x3cd49f);});}});},exports['getAWSRegions']=()=>{const _0x55096c=a14_0x3af802,_0x4905fe={'tAaHh':function(_0x39d116,_0x16054f){return _0x39d116!==_0x16054f;},'uHWSn':'NqKut','AWjuc':_0x55096c(0x127),'eXktI':function(_0x106b61,_0x3281cf){return _0x106b61!==_0x3281cf;},'znarl':_0x55096c(0x1f2),'iWswY':function(_0x13b1f9,_0x5718bb){return _0x13b1f9(_0x5718bb);},'NFMVl':function(_0x1393b7,_0x23ae85){return _0x1393b7===_0x23ae85;},'qEcAJ':'zqkBJ','KBcdJ':'TBaXv','hVCfU':function(_0x3446ce,_0x55138b){return _0x3446ce(_0x55138b);},'TyNeP':'2016-11-15','BuJxN':_0x55096c(0x186),'GHHlo':_0x55096c(0x19a),'swSRr':function(_0x2c5b6,_0xc6e3fd){return _0x2c5b6===_0xc6e3fd;},'QWhAI':_0x55096c(0x110)};return new Promise((_0x592193,_0x265616)=>{const _0x36643c=_0x55096c,_0xdbf6ac={'wePtj':function(_0x3f0475,_0x49d058){return _0x4905fe['hVCfU'](_0x3f0475,_0x49d058);},'OhTfx':_0x4905fe['TyNeP'],'WlgwS':function(_0x5ac36f,_0x4c900d){const _0x1dcae8=a14_0x4118;return _0x4905fe[_0x1dcae8(0x1c5)](_0x5ac36f,_0x4c900d);},'rrzcW':_0x4905fe['BuJxN'],'mhMLB':function(_0x214db7,_0x55f84a){const _0x43c296=a14_0x4118;return _0x4905fe[_0x43c296(0x1c5)](_0x214db7,_0x55f84a);},'JTMKt':_0x4905fe[_0x36643c(0x1ee)]};if(_0x4905fe[_0x36643c(0xfa)](_0x4905fe[_0x36643c(0x205)],_0x4905fe[_0x36643c(0x205)])){const _0x1c1fe6={};_0x1c1fe6[_0x36643c(0xf6)]=_0x4905fe[_0x36643c(0xec)];const _0x5808b7=new awsSDK[(_0x36643c(0x15e))](_0x1c1fe6);_0x5808b7['describeRegions']()[_0x36643c(0x1cd)]()[_0x36643c(0x194)]((_0x3441d7,_0x5a20aa)=>{const _0xca35e=_0x36643c;if(_0x4905fe[_0xca35e(0x1d3)](_0x4905fe[_0xca35e(0x124)],_0x4905fe[_0xca35e(0x1e2)])){if(_0x4905fe[_0xca35e(0x1e9)](_0x3441d7,undefined)&&_0x4905fe['tAaHh'](_0x3441d7[_0xca35e(0x117)],undefined)){if(_0x4905fe[_0xca35e(0x1e9)](_0x4905fe[_0xca35e(0x1f5)],_0x4905fe[_0xca35e(0x1f5)])){const _0x2f1545={'kxyrU':function(_0x31c829,_0x40487a){const _0x4edca6=_0xca35e;return _0xdbf6ac[_0x4edca6(0x1f7)](_0x31c829,_0x40487a);},'qkayx':_0xdbf6ac[_0xca35e(0x1ed)]},_0x1ce9e9={};_0x1ce9e9[_0xca35e(0xfd)]=[_0x36cfac];let _0x3d5a9c=_0x1ce9e9;return new _0xef733d((_0x23406b,_0x4336c4)=>{const _0x1d6f8e=_0xca35e,_0x254f8a={'Nbrpj':function(_0x4e8c99,_0x353185){const _0x24e5c8=a14_0x4118;return _0x2f1545[_0x24e5c8(0x10e)](_0x4e8c99,_0x353185);}},_0x582af5={};_0x582af5[_0x1d6f8e(0xf6)]=_0x2f1545[_0x1d6f8e(0x16b)],_0x582af5[_0x1d6f8e(0x179)]=_0x38cb08;const _0x45ac58=new _0x42dd5c[(_0x1d6f8e(0x15e))](_0x582af5);_0x45ac58['describeVpcs'](_0x3d5a9c)[_0x1d6f8e(0x1cd)]()['then'](_0x41bdd9=>{const _0x16bbce=_0x1d6f8e;_0x254f8a[_0x16bbce(0x19d)](_0x23406b,!![]);})[_0x1d6f8e(0x1a0)](_0x38ed2b=>{const _0x397c08=_0x1d6f8e;_0x54af0f['error'](_0x397c08(0x18a)+_0x119444+_0x397c08(0x13e)+_0x2d4499+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x2f1545[_0x397c08(0x10e)](_0x23406b,![]);});});}else _0x4905fe['iWswY'](_0x592193,_0x3441d7['Regions']);}else{if(_0x4905fe['NFMVl'](_0x4905fe[_0xca35e(0x1c3)],_0x4905fe[_0xca35e(0x1a6)])){const _0x16cffe={'jNJRs':function(_0x4c6ca2,_0x5ecf69){const _0x2be3c6=_0xca35e;return _0xdbf6ac[_0x2be3c6(0x1f7)](_0x4c6ca2,_0x5ecf69);}},_0x23ec19={};_0x23ec19[_0xca35e(0xf6)]=_0xdbf6ac[_0xca35e(0x1ed)],_0x23ec19[_0xca35e(0x179)]=_0xb2744d;const _0x270eb0=new _0x4bc186['EC2'](_0x23ec19);_0x270eb0[_0xca35e(0x18f)](_0x598d95)['promise']()[_0xca35e(0x194)](_0xbac0c5=>{const _0x3896dc=_0xca35e;_0x16cffe[_0x3896dc(0x12c)](_0x12dd7b,!![]);})[_0xca35e(0x1a0)](_0x409272=>{const _0x20301f=_0xca35e;_0x2d0c08[_0x20301f(0xf3)]('Cannot\x20find\x20VPC\x20'+_0x1d10a1+_0x20301f(0x13e)+_0x171062+_0x20301f(0x113)),_0x16cffe[_0x20301f(0x12c)](_0x3816ed,![]);});}else _0x4905fe[_0xca35e(0x137)](_0x592193,{});}}else{if(_0xdbf6ac['WlgwS'](_0x35cb4d,_0x4ae6ba))return!![];return![];}})[_0x36643c(0x1a0)](_0x5efe07=>{const _0x47300a=_0x36643c;if(_0xdbf6ac[_0x47300a(0x1a9)](_0xdbf6ac[_0x47300a(0x1d6)],_0xdbf6ac[_0x47300a(0x1d6)]))logger[_0x47300a(0xf3)](_0x47300a(0x184)+_0x5efe07),_0xdbf6ac['wePtj'](_0x265616,_0x5efe07);else{const _0x102e3d={};_0x102e3d[_0x47300a(0xf6)]=_0xdbf6ac[_0x47300a(0x17a)];const _0x442ec7=new _0x2d68dd[(_0x47300a(0x15d))](_0x102e3d),_0x31d4e9={};return _0x31d4e9['clusterName']=_0x38c0f2,_0x31d4e9['nodegroupName']=_0x74dacc,_0x442ec7['describeNodegroup'](_0x31d4e9)['promise']();}});}else return!![];});},exports['isAWSConfigured']=()=>{const _0x40dac6=a14_0x3af802,_0x361103={};_0x361103[_0x40dac6(0x100)]=function(_0x2df506,_0x26991e){return _0x2df506===_0x26991e;};const _0x4ffd23=_0x361103;return _0x4ffd23[_0x40dac6(0x100)](global_registry[_0x40dac6(0x1fb)],!![]);},exports[a14_0x3af802(0x16e)]=()=>{const _0x4668ec=a14_0x3af802,_0x4beb77={};_0x4beb77[_0x4668ec(0x179)]=global_registry[_0x4668ec(0x1dc)],_0x4beb77[_0x4668ec(0x108)]=global_registry[_0x4668ec(0x172)],_0x4beb77[_0x4668ec(0x1c1)]=global_registry[_0x4668ec(0x11f)],awsSDK['config'][_0x4668ec(0x146)](_0x4beb77),global_registry[_0x4668ec(0x1fb)]=!![];},exports[a14_0x3af802(0xf1)]=awsSDK;
1
+ function a14_0x4afe(_0x5836c3,_0x854c0b){const _0x5524ac=a14_0x5524();return a14_0x4afe=function(_0x4afe42,_0x53a1cd){_0x4afe42=_0x4afe42-0x1ef;let _0x576c45=_0x5524ac[_0x4afe42];return _0x576c45;},a14_0x4afe(_0x5836c3,_0x854c0b);}const a14_0x18b6c2=a14_0x4afe;(function(_0x45233a,_0xfe7521){const _0x27c2ba=a14_0x4afe,_0x3239c3=_0x45233a();while(!![]){try{const _0x38bd99=parseInt(_0x27c2ba(0x216))/0x1+parseInt(_0x27c2ba(0x25a))/0x2*(parseInt(_0x27c2ba(0x30a))/0x3)+parseInt(_0x27c2ba(0x1fb))/0x4*(-parseInt(_0x27c2ba(0x2e6))/0x5)+-parseInt(_0x27c2ba(0x26a))/0x6*(parseInt(_0x27c2ba(0x313))/0x7)+-parseInt(_0x27c2ba(0x2a1))/0x8+-parseInt(_0x27c2ba(0x2d7))/0x9+parseInt(_0x27c2ba(0x2ec))/0xa;if(_0x38bd99===_0xfe7521)break;else _0x3239c3['push'](_0x3239c3['shift']());}catch(_0xc8cbf7){_0x3239c3['push'](_0x3239c3['shift']());}}}(a14_0x5524,0xb7588));function a14_0x5524(){const _0x5b175=['rQjTL','JznUd','mJTwX','zKUGY','NwfBf','EC2','11327922rwjRNR','dRKtg','yaCSR','then','KtyYj','Regions','promise','SUvwC','isAWSConfigured','ErbdM','IVENR','join','VQSjO','\x20already\x20exists.\x20Skipping\x20Bucket\x20creation','NQjZM','866935XDXIWf','BpoWB','xTLmb','AJkmD','YXvbF','../config/constants','26991020BoFCFD','KLXlr','gzBBZ','aUavS','PLwFE','ZSbhY','update','isBucketPresent','gyxqp','oZbrH','rJkVe','PGBIA','itDGX','ITgyF','<ARN>','tBIxH','Clnyh','vfaMY','templates','lUjhn','ekZYc','vhLfY','QnehG','apiVersion','secretAccessKey','bELCl','MXMmK','readFileAsync','OzEXm','js-yaml','2265ZCCbFT','QPepG','ZWbQo','yXMji','describeCluster','dTtSx','.\x20Please\x20Check\x20and\x20try\x20again','GMOQo','PVSaL','20902vFJBDn','oEnuH','UAYyX','error','includes','CITMp','aws-sdk','epttT','sxQRm','BntKi','hoEoW','tlknd','GssAf','vZIAr','Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20','bEXRN','gZrof','gMORt','describeNodegroup','Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20','Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20','mapRoles','isVPCPresent','ZPntj','clusterRegion','IUZMp','sNNHa','nWZkX','32mhlDCm','ayiGV','elUaz','JiFKO','DDiDA','YuLaP','uufph','Subnets','DIYVr','fetchVPCs','Mfmce','RxKrO','tFPul','Name','ZAqLj','EiuBF','YzGwz','describeSubnets','lsmXO','tbKTC','zoApW','RzzjO','replace','CluMV','OiVRz','PQhXH','QqTUU','868828GUHLOd','TPiAf','zXJxl','getClusterInfo','RqngU','KZwQB','lSTGP','forEach','Filters','getNodeGroupInfo','RHTbK','EKS','ctWgf','LYSLP','MELmC','DZrCI','AeeTV','qDBis','describeVpcs','warn','sgxpO','TCNUo','AaIbs','DMMZr','RKpMu','SubnetId','yzXtJ','yvyfC','vHTse','EwNRL','aVVoQ','vnywD','tTZPM','QqZxQ','NCaFm','createAuthConfigMap','AHvOp','fetchSecurityGroups','RMFUl','VpcIds','awsConfigSet','describeRegions','Efjos','afTCX','dFJvY','hMqOG','BZiPv','qywNl','ssJDp','EsRtQ','USFlV','\x20in\x20region\x20','pZeGa','JyXCX','YeElH','Umvrb','UcsrJ','Bucket:\x20','ZUUpm','accessKeyId','EGkrJ','AWSPt','ikKiN','Cannot\x20find\x20VPC\x20','Vvjcl','DOaqk','allbs','RYTaq','3858BtjRdy','HRVFf','VFSiX','data','GvnoR','dlPQL','SomiD','mSxjf','wpbci','MPhMV','KDnTK','iywzp','ASVOg','bxyFs','cloudProviderAccessKey','eAoUg','588DcIYgq','IYcjQ','catch','setAWSConfig','CYngY','2016-11-15','qnpuc','ueiim','RKgWo','ltbNm','XXhUM','config','NrJfs','Bucket','KJwOT','bxFEF','aaWtz','APIiX','ZuFbd','isClusterPresent','\x20does\x20not\x20exist.\x20Adding\x20it\x20to\x20CloudFormation\x20to\x20create\x20the\x20bucket','every','PWiez','MEnve','gBczs','GKNOY','WMfFZ','uUPPX','describeSecurityGroups','fglPS','AQlFG','dcQta','aOqde','VmepA','KSoaw','waBUg','Fstbt','iwiAE','WrovE','info','ymaul','uYdVA','QbOQU','AVOFQ','clusters','xAWTr','TMDrG','vpc-id','fjyAa','chdxC','PuoYL','aIqwK','cloudProviderSecretKey','ADTMX','JBSEf','10679672kHVZxO','YKqqD','.\x20Error:\x20','getAWSRegions','DrbKB','rnTYc','GkAdo','zqcGx','sUgnN','configureAWSIfNotConfigured','lCiVH','hZnGa','Cannot\x20find\x20subnets\x20','waJLm','PFVFY','APqpi','yMerE','headBucket','EyGJN','Failed\x20to\x20fetch\x20AWS\x20Regions\x20due\x20to\x20error:\x20','2017-11-01','MWrgy','ntLfq','fDaZr','ytRhx','MAjId','hTPEw','region','oiqpE','nodegroupName','PegCg','UvEIF','CdhHy','push','qRxcx','NBhxj','iyCHK','NuShz','xfQml','eFLtk','TtBkd','awsObj','oeyFE','rjoeG','fjFpg','AwYft','TnVaF','fVNBH'];a14_0x5524=function(){return _0x5b175;};return a14_0x5524();}const fs=require('fs'),yaml=require(a14_0x18b6c2(0x309)),path=require('path'),awsSDK=require(a14_0x18b6c2(0x319)),{AWS,global_registry}=require(a14_0x18b6c2(0x2eb)),{logger}=require('../config/logger');exports[a14_0x18b6c2(0x2aa)]=()=>{const _0x53e426=a14_0x18b6c2,_0x373c85={'jRoWi':function(_0x5d7b74,_0x3e6c55){return _0x5d7b74(_0x3e6c55);},'ZSbhY':function(_0x5627e9,_0x1b1cf7){return _0x5627e9===_0x1b1cf7;},'lAgMT':'TnZfb','GMOQo':_0x53e426(0x2b7)};!this[_0x53e426(0x2df)]()&&(_0x373c85[_0x53e426(0x2f1)](_0x373c85['lAgMT'],_0x373c85[_0x53e426(0x311)])?_0x373c85['jRoWi'](_0x4bf190,_0xc8c86b):this[_0x53e426(0x26d)]());},exports[a14_0x18b6c2(0x27d)]=async(_0x7fbe9e,_0x15ea7c)=>{const _0x6c84f3=a14_0x18b6c2,_0x5de3f9={'MELmC':function(_0x1d0ec3,_0x35bc72){return _0x1d0ec3===_0x35bc72;},'WZFld':function(_0x59594b,_0x121c29){return _0x59594b(_0x121c29);},'waBUg':function(_0x3b473b,_0x480300){return _0x3b473b===_0x480300;},'sfmkP':_0x6c84f3(0x24a),'tlknd':_0x6c84f3(0x226),'EsRtQ':function(_0x3e8fce,_0x296fb4){return _0x3e8fce(_0x296fb4);}};if(_0x5de3f9['WZFld'](isAWS,_0x7fbe9e)){if(_0x5de3f9[_0x6c84f3(0x28d)](_0x5de3f9['sfmkP'],_0x5de3f9[_0x6c84f3(0x31e)])){if(_0x5de3f9[_0x6c84f3(0x224)](_0x352df9,_0x3c7f2c))return!![];return![];}else return this[_0x6c84f3(0x2aa)](),_0x5de3f9[_0x6c84f3(0x247)](checkAWSClusterCreated,_0x15ea7c);}},exports[a14_0x18b6c2(0x219)]=async _0xe66e32=>{const _0xf084c1=a14_0x18b6c2,_0x4cdbe0={};_0x4cdbe0[_0xf084c1(0x287)]='2017-11-01';const _0x42d24f=_0x4cdbe0,_0x2dd05b={};_0x2dd05b[_0xf084c1(0x303)]=_0x42d24f[_0xf084c1(0x287)];const _0x18d286=new awsSDK['EKS'](_0x2dd05b),_0x125db8={};return _0x125db8['name']=_0xe66e32,_0x18d286[_0xf084c1(0x30e)](_0x125db8)[_0xf084c1(0x2dd)]();},exports[a14_0x18b6c2(0x239)]=async _0x2be5fe=>{const _0x25e057=a14_0x18b6c2,_0x24058c={};_0x24058c[_0x25e057(0x205)]=_0x25e057(0x2fe),_0x24058c[_0x25e057(0x22c)]='aws-auth-cm.yaml',_0x24058c[_0x25e057(0x2e8)]='utf-8',_0x24058c[_0x25e057(0x31f)]=_0x25e057(0x2fa);const _0x317e73=_0x24058c,_0x264f25=await fs[_0x25e057(0x307)](path[_0x25e057(0x2e2)](__dirname,'..',_0x317e73[_0x25e057(0x205)],_0x317e73[_0x25e057(0x22c)]),_0x317e73['xTLmb']),_0x1c82ac=yaml['load'](_0x264f25);return _0x1c82ac[_0x25e057(0x25d)][_0x25e057(0x1f4)]=_0x1c82ac[_0x25e057(0x25d)][_0x25e057(0x1f4)][_0x25e057(0x211)](_0x317e73['GssAf'],_0x2be5fe),_0x1c82ac;},exports[a14_0x18b6c2(0x21f)]=async(_0x1855ba,_0x3936d8)=>{const _0x341d62=a14_0x18b6c2,_0x251c3a={};_0x251c3a[_0x341d62(0x25e)]=_0x341d62(0x2b5);const _0x485b3a=_0x251c3a,_0x50c7d8={};_0x50c7d8[_0x341d62(0x303)]=_0x485b3a['GvnoR'];const _0x3c1fbf=new awsSDK[(_0x341d62(0x221))](_0x50c7d8),_0x49e761={};return _0x49e761['clusterName']=_0x1855ba,_0x49e761[_0x341d62(0x2be)]=_0x3936d8,_0x3c1fbf[_0x341d62(0x1f1)](_0x49e761)[_0x341d62(0x2dd)]();};const isAWS=_0x4b881c=>{const _0x1b6809=a14_0x18b6c2,_0x527849={'qlYRm':function(_0x1b3167,_0x37da3a){return _0x1b3167(_0x37da3a);},'hZnGa':function(_0x5dd9ab,_0x489467){return _0x5dd9ab===_0x489467;},'UvEIF':function(_0x5cd8a9,_0x436c80){return _0x5cd8a9!==_0x436c80;},'TMDrG':'GwurQ'};if(_0x527849[_0x1b6809(0x2ac)](_0x4b881c,AWS)){if(_0x527849[_0x1b6809(0x2c0)](_0x527849[_0x1b6809(0x298)],_0x527849[_0x1b6809(0x298)]))_0x527849['qlYRm'](_0x8417db,{});else return!![];}return![];},checkAWSClusterCreated=_0x375a13=>{const _0x5e0f12=a14_0x18b6c2,_0x14c865={'sxQRm':function(_0x14e5c1,_0x399913){return _0x14e5c1(_0x399913);},'qDBis':function(_0x4f8cd1,_0x1e29b8){return _0x4f8cd1===_0x1e29b8;},'KZwQB':_0x5e0f12(0x278),'RxKrO':_0x5e0f12(0x256),'UcsrJ':function(_0x2d0315,_0x37705f){return _0x2d0315===_0x37705f;},'eAoUg':_0x5e0f12(0x233),'ctWgf':'2016-11-15','VIXbq':function(_0x33cf88,_0xe93f93){return _0x33cf88!==_0xe93f93;},'bxyFs':'OccDx','RmjwN':_0x5e0f12(0x258),'qywNl':function(_0x10f1b6,_0x4ec825){return _0x10f1b6(_0x4ec825);},'AHvOp':_0x5e0f12(0x2b5),'QnehG':function(_0x2b784c,_0x3fceee){return _0x2b784c===_0x3fceee;},'AWSPt':_0x5e0f12(0x27a)};return new Promise((_0x1be980,_0x58faf9)=>{const _0x402ad8=_0x5e0f12,_0x479d43={'QqZxQ':function(_0x560715,_0x392f15){const _0x452c29=a14_0x4afe;return _0x14c865[_0x452c29(0x31b)](_0x560715,_0x392f15);},'lUjhn':_0x14c865[_0x402ad8(0x222)],'YKqqD':function(_0x2cb9e6,_0x51d22c){return _0x14c865['sxQRm'](_0x2cb9e6,_0x51d22c);},'mJTwX':function(_0xeec92c,_0x59a7f4){return _0x14c865['VIXbq'](_0xeec92c,_0x59a7f4);},'wyjHE':_0x14c865[_0x402ad8(0x267)],'ZSMho':_0x14c865['RmjwN'],'RKgWo':function(_0x2e97fd,_0x3c897c){const _0x4a5809=_0x402ad8;return _0x14c865[_0x4a5809(0x245)](_0x2e97fd,_0x3c897c);},'DrbKB':_0x14c865[_0x402ad8(0x23a)]};if(_0x14c865[_0x402ad8(0x302)](_0x14c865[_0x402ad8(0x253)],_0x14c865[_0x402ad8(0x253)])){const _0x1e6442={};_0x1e6442['apiVersion']=_0x14c865[_0x402ad8(0x23a)];const _0x29d44c=new awsSDK[(_0x402ad8(0x221))](_0x1e6442);_0x29d44c['listClusters']()[_0x402ad8(0x2dd)]()[_0x402ad8(0x2da)](_0x2e239b=>{const _0x300028=_0x402ad8,_0x448068={'rQjTL':function(_0x181966,_0x226226){const _0x24e1ed=a14_0x4afe;return _0x14c865[_0x24e1ed(0x31b)](_0x181966,_0x226226);}};if(_0x14c865[_0x300028(0x227)](_0x14c865[_0x300028(0x21b)],_0x14c865[_0x300028(0x206)])){const _0x17cc3a={'MMuCB':function(_0x4969d4,_0x633f05){const _0x289d38=_0x300028;return _0x479d43[_0x289d38(0x237)](_0x4969d4,_0x633f05);}},_0x5d1579={};_0x5d1579['apiVersion']=_0x479d43[_0x300028(0x2ff)],_0x5d1579[_0x300028(0x2bc)]=_0x43f9c7;const _0x383599=new _0x479fce[(_0x300028(0x2d6))](_0x5d1579);_0x383599[_0x300028(0x286)]()['promise']()[_0x300028(0x2da)](_0x12f1b8=>{_0x17cc3a['MMuCB'](_0x42e155,_0x12f1b8);})['catch'](_0x43c70c=>{const _0x38e675=_0x300028;_0x4ef946[_0x38e675(0x316)](_0x38e675(0x1f3)+_0x43c70c),_0x448068[_0x38e675(0x2d1)](_0x3695f8,_0x43c70c);});}else _0x2e239b[_0x300028(0x296)]['includes'](_0x375a13)&&(_0x14c865[_0x300028(0x24e)](_0x14c865['eAoUg'],_0x14c865[_0x300028(0x269)])?_0x14c865[_0x300028(0x31b)](_0x1be980,!![]):(_0x89c077['error'](_0x501061),_0x479d43['QqZxQ'](_0x34ee73,_0x5d8b67))),_0x14c865[_0x300028(0x31b)](_0x1be980,![]);})[_0x402ad8(0x26c)](_0x3e3bad=>{const _0x10e026=_0x402ad8;_0x479d43[_0x10e026(0x2d3)](_0x479d43['wyjHE'],_0x479d43['ZSMho'])?(logger[_0x10e026(0x316)](_0x3e3bad),_0x479d43[_0x10e026(0x272)](_0x58faf9,_0x3e3bad)):_0x479d43[_0x10e026(0x2a2)](_0x33087e,!![]);});}else{const _0x2dccf1={};_0x2dccf1[_0x402ad8(0x303)]=_0x479d43[_0x402ad8(0x2a5)];const _0x2deb14=new _0x549836[(_0x402ad8(0x221))](_0x2dccf1),_0x135373={};return _0x135373['name']=_0x394baf,_0x2deb14[_0x402ad8(0x30e)](_0x135373)[_0x402ad8(0x2dd)]();}});};exports[a14_0x18b6c2(0x204)]=_0x4879e0=>{const _0x26228b=a14_0x18b6c2,_0x3abecc={'yXMji':function(_0x44ef08,_0x47880b){return _0x44ef08===_0x47880b;},'gZrof':_0x26228b(0x248),'SUvwC':function(_0x2b4011,_0x4472da){return _0x2b4011(_0x4472da);},'rJkVe':function(_0x21cdb8,_0x578b7f){return _0x21cdb8(_0x578b7f);},'APIiX':function(_0x372247,_0x39b079){return _0x372247!==_0x39b079;},'oeyFE':'FNNcN','vhLfY':'VCAYq','sUgnN':_0x26228b(0x25b),'bELCl':_0x26228b(0x26f)};return new Promise((_0x3d32a2,_0x539807)=>{const _0x4c7460=_0x26228b,_0x4505b1={'ErbdM':function(_0x19613b,_0x3d559f){const _0x3227cd=a14_0x4afe;return _0x3abecc[_0x3227cd(0x27b)](_0x19613b,_0x3d559f);},'xfQml':_0x3abecc[_0x4c7460(0x2cb)],'ssJDp':_0x3abecc[_0x4c7460(0x301)],'EGkrJ':function(_0x351a38,_0x435ede){const _0x464bdf=_0x4c7460;return _0x3abecc[_0x464bdf(0x2f6)](_0x351a38,_0x435ede);}};if(_0x3abecc[_0x4c7460(0x30d)](_0x3abecc['sUgnN'],_0x3abecc[_0x4c7460(0x2a9)])){const _0x47a97b={};_0x47a97b[_0x4c7460(0x303)]=_0x3abecc[_0x4c7460(0x305)],_0x47a97b[_0x4c7460(0x2bc)]=_0x4879e0;const _0x1a29ba=new awsSDK[(_0x4c7460(0x2d6))](_0x47a97b);_0x1a29ba[_0x4c7460(0x228)]()['promise']()[_0x4c7460(0x2da)](_0x56e86c=>{const _0x3eb7b9=_0x4c7460;_0x3abecc[_0x3eb7b9(0x30d)](_0x3abecc[_0x3eb7b9(0x1ef)],_0x3abecc[_0x3eb7b9(0x1ef)])?_0x3abecc[_0x3eb7b9(0x2de)](_0x3d32a2,_0x56e86c):_0x24d084[_0x3eb7b9(0x2c2)](_0x53b926[_0x3eb7b9(0x22f)]);})[_0x4c7460(0x26c)](_0x419574=>{const _0x42e5b7=_0x4c7460;if(_0x4505b1[_0x42e5b7(0x2e0)](_0x4505b1[_0x42e5b7(0x2c7)],_0x4505b1[_0x42e5b7(0x246)]))logger[_0x42e5b7(0x316)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0x419574),_0x4505b1['EGkrJ'](_0x539807,_0x419574);else{const _0x2a6bbb={};_0x2a6bbb['region']=_0x5a9026[_0x42e5b7(0x1f7)],_0x2a6bbb['accessKeyId']=_0x10e554[_0x42e5b7(0x268)],_0x2a6bbb[_0x42e5b7(0x304)]=_0x207f44['cloudProviderSecretKey'],_0x5280a6[_0x42e5b7(0x275)][_0x42e5b7(0x2f2)](_0x2a6bbb),_0x44830c['awsConfigSet']=!![];}});}else{const _0x13685={'rsoKz':function(_0x2043f2,_0x3dac36){const _0x579677=_0x4c7460;return _0x3abecc[_0x579677(0x2f6)](_0x2043f2,_0x3dac36);}},_0x231a07=new _0x350913['S3']();return new _0x3b74e1((_0x5ceb0a,_0x107ddc)=>{const _0x5ca6fc=_0x4c7460,_0x134087={'VpFGF':function(_0x34cf63,_0x11d3b7){const _0x33066f=a14_0x4afe;return _0x4505b1[_0x33066f(0x252)](_0x34cf63,_0x11d3b7);}},_0x16100f={};_0x16100f[_0x5ca6fc(0x277)]=_0x59ea30,_0x231a07['headBucket'](_0x16100f)[_0x5ca6fc(0x2dd)]()['then'](_0x2973fa=>{const _0x492178=_0x5ca6fc;_0x318327[_0x492178(0x229)](_0x492178(0x24f)+_0x585b4a+_0x492178(0x2e4)),_0x134087['VpFGF'](_0x5ceb0a,!![]);})[_0x5ca6fc(0x26c)](()=>{const _0x5ae405=_0x5ca6fc;_0x144d6a[_0x5ae405(0x291)](_0x5ae405(0x24f)+_0x5d8f7c+_0x5ae405(0x27e)),_0x13685['rsoKz'](_0x5ceb0a,![]);});});}});},exports[a14_0x18b6c2(0x1f5)]=(_0x2d0e7e,_0x588fee)=>{const _0x14df9e=a14_0x18b6c2,_0xe196c8={'aIqwK':function(_0x573a8b,_0x47f7eb){return _0x573a8b(_0x47f7eb);},'gCTWs':function(_0x431cae,_0x21c11f){return _0x431cae===_0x21c11f;},'RzzjO':_0x14df9e(0x2cf),'iwiAE':function(_0x50fdf3,_0x5c2fb8){return _0x50fdf3(_0x5c2fb8);},'vnywD':_0x14df9e(0x26f),'PVSaL':function(_0x2eec69,_0x1d6c46){return _0x2eec69(_0x1d6c46);},'VQSjO':function(_0x10bcf4,_0x5031e6){return _0x10bcf4!==_0x5031e6;},'lsmXO':_0x14df9e(0x2b1),'wOvnw':'qMala','vwUbF':_0x14df9e(0x207)},_0x4e203c={};_0x4e203c[_0x14df9e(0x23d)]=[_0x2d0e7e];let _0x17c6dc=_0x4e203c;return new Promise((_0x49f4d1,_0x2b3134)=>{const _0x314fc5=_0x14df9e,_0x10f99b={'UAYyX':function(_0x5974a5,_0x3995d9){const _0x58c889=a14_0x4afe;return _0xe196c8[_0x58c889(0x28f)](_0x5974a5,_0x3995d9);},'AwYft':_0xe196c8['vnywD'],'JznUd':function(_0x2a8df4,_0x14a3b8){const _0x4a9b05=a14_0x4afe;return _0xe196c8[_0x4a9b05(0x312)](_0x2a8df4,_0x14a3b8);},'oEnuH':function(_0x26a9b8,_0x24bb4f){const _0x3268e9=a14_0x4afe;return _0xe196c8[_0x3268e9(0x2e3)](_0x26a9b8,_0x24bb4f);},'EUTYd':_0xe196c8[_0x314fc5(0x20d)],'WrovE':_0xe196c8['wOvnw']};if(_0xe196c8[_0x314fc5(0x2e3)](_0xe196c8['vwUbF'],_0xe196c8['vwUbF']))_0x3e8e5a[_0x314fc5(0x316)](_0x314fc5(0x1f2)+_0x51e5e4),_0x10f99b[_0x314fc5(0x315)](_0x4f4435,_0x5e8569);else{const _0x2f31f6={};_0x2f31f6[_0x314fc5(0x303)]=_0xe196c8[_0x314fc5(0x235)],_0x2f31f6['region']=_0x588fee;const _0x2472c1=new awsSDK['EC2'](_0x2f31f6);_0x2472c1['describeVpcs'](_0x17c6dc)[_0x314fc5(0x2dd)]()[_0x314fc5(0x2da)](_0x25246b=>{const _0x4d95c1=_0x314fc5,_0x5f5dfe={'hTPEw':function(_0x1808f9,_0x3bd881){const _0x802315=a14_0x4afe;return _0x10f99b[_0x802315(0x2d2)](_0x1808f9,_0x3bd881);}};if(_0x10f99b[_0x4d95c1(0x314)](_0x10f99b['EUTYd'],_0x10f99b[_0x4d95c1(0x290)]))_0x10f99b[_0x4d95c1(0x2d2)](_0x49f4d1,!![]);else{const _0x14b8c3={'WMfFZ':function(_0x3d75d9,_0x1d3019){const _0x1af524=_0x4d95c1;return _0x10f99b[_0x1af524(0x315)](_0x3d75d9,_0x1d3019);}},_0x23f6ed={};_0x23f6ed[_0x4d95c1(0x303)]=_0x10f99b[_0x4d95c1(0x2ce)],_0x23f6ed[_0x4d95c1(0x2bc)]=_0x891c43;const _0x26f2c8=new _0x398475[(_0x4d95c1(0x2d6))](_0x23f6ed);_0x26f2c8['describeSubnets']()['promise']()['then'](_0x1b52a8=>{const _0x21c919=_0x4d95c1;_0x5f5dfe[_0x21c919(0x2bb)](_0xfa4050,_0x1b52a8);})[_0x4d95c1(0x26c)](_0x19c55f=>{const _0x5a9c45=_0x4d95c1;_0x52e268[_0x5a9c45(0x316)](_0x5a9c45(0x321)+_0x19c55f),_0x14b8c3[_0x5a9c45(0x284)](_0x39134a,_0x19c55f);});}})['catch'](_0x16982b=>{const _0x22e7ae=_0x314fc5,_0x578618={'vfaMY':function(_0x53b7b4,_0x2e9427){const _0x5ead65=a14_0x4afe;return _0xe196c8[_0x5ead65(0x29d)](_0x53b7b4,_0x2e9427);}};if(_0xe196c8['gCTWs'](_0xe196c8[_0x22e7ae(0x210)],_0xe196c8[_0x22e7ae(0x210)]))logger[_0x22e7ae(0x316)](_0x22e7ae(0x255)+_0x2d0e7e+_0x22e7ae(0x249)+_0x588fee+_0x22e7ae(0x310)),_0xe196c8[_0x22e7ae(0x28f)](_0x49f4d1,![]);else return this[_0x22e7ae(0x2aa)](),_0x578618[_0x22e7ae(0x2fd)](_0x4e7de8,_0x31de3e);});}});},exports['isSubnetsValid']=(_0x34fa20,_0x8d95b7,_0x5f55f4)=>{const _0x3e21e7=a14_0x18b6c2,_0x2b6686={'KtyYj':function(_0x2a54f7,_0xb788a0){return _0x2a54f7(_0xb788a0);},'hMqOG':_0x3e21e7(0x2b5),'dlPQL':function(_0x5e9989,_0x4e96c4){return _0x5e9989!==_0x4e96c4;},'JiFKO':_0x3e21e7(0x2b9),'mcLUE':_0x3e21e7(0x22d),'NCaFm':function(_0x196580,_0x4cf4b5){return _0x196580(_0x4cf4b5);},'wpbci':_0x3e21e7(0x26f),'gyxqp':_0x3e21e7(0x271),'epttT':_0x3e21e7(0x282),'tBIxH':'bdSZs','KSoaw':'wEdKD','YzGwz':'dQHnC','mjByJ':function(_0xcc7740,_0x374288){return _0xcc7740===_0x374288;},'tTZPM':_0x3e21e7(0x265),'MWrgy':function(_0x4720b6,_0x38cfaf){return _0x4720b6===_0x38cfaf;},'uPbmx':'VSJSN','TSyUK':'NGwpy','PuoYL':function(_0x4b44c8,_0x5ca3b5){return _0x4b44c8(_0x5ca3b5);},'vZIAr':function(_0x58078f,_0x16c1b3){return _0x58078f!==_0x16c1b3;},'ZUUpm':_0x3e21e7(0x2c8),'VFSiX':_0x3e21e7(0x299)},_0x151023={};_0x151023[_0x3e21e7(0x208)]=_0x2b6686[_0x3e21e7(0x25c)],_0x151023['Values']=[_0x8d95b7];const _0x1cc211={};_0x1cc211[_0x3e21e7(0x21e)]=[_0x151023];let _0x363809=_0x1cc211;return new Promise((_0x5df06c,_0x394564)=>{const _0x6b41ad=_0x3e21e7,_0x184569={'sgxpO':function(_0x52b5b5,_0x309c36){return _0x2b6686['KtyYj'](_0x52b5b5,_0x309c36);},'PQhXH':function(_0x17ed06,_0x4e42a4){const _0x25383b=a14_0x4afe;return _0x2b6686[_0x25383b(0x238)](_0x17ed06,_0x4e42a4);},'SxeER':_0x2b6686[_0x6b41ad(0x262)],'TtBkd':function(_0x3358b9,_0x2a66fd){const _0x363729=_0x6b41ad;return _0x2b6686[_0x363729(0x25f)](_0x3358b9,_0x2a66fd);},'ADTMX':_0x2b6686[_0x6b41ad(0x2f4)],'ITgyF':_0x2b6686[_0x6b41ad(0x31a)],'EyGJN':_0x2b6686[_0x6b41ad(0x2fb)],'NuShz':_0x2b6686[_0x6b41ad(0x28c)],'XLLHa':_0x2b6686[_0x6b41ad(0x20b)],'JyXCX':function(_0x1b7a07,_0x3e2b0c){return _0x2b6686['mjByJ'](_0x1b7a07,_0x3e2b0c);},'xiilD':_0x2b6686[_0x6b41ad(0x236)],'NUnIB':function(_0x5c2c54,_0x50ca48){const _0x33aea2=_0x6b41ad;return _0x2b6686[_0x33aea2(0x2b6)](_0x5c2c54,_0x50ca48);},'MEnve':_0x2b6686['uPbmx'],'TCNUo':_0x2b6686['TSyUK'],'YhxTd':function(_0x562c5e,_0x4fe3d2){const _0x5356b0=_0x6b41ad;return _0x2b6686[_0x5356b0(0x29c)](_0x562c5e,_0x4fe3d2);}};if(_0x2b6686[_0x6b41ad(0x320)](_0x2b6686[_0x6b41ad(0x250)],_0x2b6686[_0x6b41ad(0x250)]))_0x184569[_0x6b41ad(0x22a)](_0x53df6a,_0x4e6a8e[_0x6b41ad(0x2dc)]);else{const _0x700920={};_0x700920[_0x6b41ad(0x303)]=_0x2b6686[_0x6b41ad(0x262)],_0x700920[_0x6b41ad(0x2bc)]=_0x5f55f4;const _0x437dfc=new awsSDK[(_0x6b41ad(0x2d6))](_0x700920);_0x437dfc[_0x6b41ad(0x20c)](_0x363809)[_0x6b41ad(0x2dd)]()[_0x6b41ad(0x2da)](_0x4a5092=>{const _0x123088=_0x6b41ad,_0x11a968={'gzBBZ':function(_0x7ccab1,_0x2c08b7){const _0x29167a=a14_0x4afe;return _0x184569[_0x29167a(0x214)](_0x7ccab1,_0x2c08b7);},'PFVFY':function(_0x233603,_0x4cf11d){const _0x462555=a14_0x4afe;return _0x184569[_0x462555(0x214)](_0x233603,_0x4cf11d);},'yvyfC':_0x184569['SxeER'],'NSzgW':function(_0x4f4e96,_0x3a46fd){return _0x184569['sgxpO'](_0x4f4e96,_0x3a46fd);},'ZAqLj':function(_0x2173e4,_0x4fec03){const _0x41291b=a14_0x4afe;return _0x184569[_0x41291b(0x22a)](_0x2173e4,_0x4fec03);},'qRxcx':function(_0x20eeb6,_0x2df19d){const _0x43b74d=a14_0x4afe;return _0x184569[_0x43b74d(0x2c9)](_0x20eeb6,_0x2df19d);},'Fstbt':_0x184569[_0x123088(0x29f)],'qnpuc':_0x184569[_0x123088(0x2f9)],'aUavS':function(_0x2beb9f,_0x1d9805){const _0x3d1ae8=_0x123088;return _0x184569[_0x3d1ae8(0x2c9)](_0x2beb9f,_0x1d9805);},'RHTbK':_0x184569[_0x123088(0x2b3)],'CluMV':function(_0x184f73,_0x1f0755){const _0x4b7cb7=_0x123088;return _0x184569[_0x4b7cb7(0x2c9)](_0x184f73,_0x1f0755);},'YuLaP':_0x184569[_0x123088(0x2c6)],'MHAbN':_0x184569['XLLHa'],'BntKi':function(_0x5ed720,_0x464a97){const _0x18dafb=_0x123088;return _0x184569[_0x18dafb(0x24b)](_0x5ed720,_0x464a97);},'dFJvY':_0x184569['xiilD']};if(_0x184569['NUnIB'](_0x184569[_0x123088(0x281)],_0x184569[_0x123088(0x22b)])){const _0xeb5680={'aOqde':function(_0x3a420b,_0x2578e9){const _0x422bbe=_0x123088;return _0x11a968[_0x422bbe(0x2ee)](_0x3a420b,_0x2578e9);},'BpoWB':function(_0x126410,_0x179665){const _0x2d4cc7=_0x123088;return _0x11a968[_0x2d4cc7(0x2af)](_0x126410,_0x179665);},'GkAdo':_0x11a968[_0x123088(0x231)]};return new _0x50e42a((_0x2eb3f4,_0x4a0c8a)=>{const _0x31cae2=_0x123088,_0x3495a7={};_0x3495a7['apiVersion']=_0xeb5680[_0x31cae2(0x2a7)],_0x3495a7[_0x31cae2(0x2bc)]=_0x3372c4;const _0x21eeac=new _0x17015b[(_0x31cae2(0x2d6))](_0x3495a7);_0x21eeac[_0x31cae2(0x20c)]()[_0x31cae2(0x2dd)]()['then'](_0x37abe6=>{const _0x5d80c7=_0x31cae2;_0xeb5680[_0x5d80c7(0x28a)](_0x2eb3f4,_0x37abe6);})[_0x31cae2(0x26c)](_0x45dc64=>{const _0x4f3ac9=_0x31cae2;_0x5d2f00[_0x4f3ac9(0x316)](_0x4f3ac9(0x321)+_0x45dc64),_0xeb5680[_0x4f3ac9(0x2e7)](_0x4a0c8a,_0x45dc64);});});}else{const _0x41609f=[],_0x407fd9=[];_0x4a5092[_0x123088(0x202)][_0x123088(0x21d)](_0x4ace90=>{const _0x33d38b=_0x123088,_0x32dc84={'ZUdcS':function(_0xdeb98c,_0x4d3435){const _0x53762b=a14_0x4afe;return _0x11a968[_0x53762b(0x209)](_0xdeb98c,_0x4d3435);}};if(_0x11a968[_0x33d38b(0x2c3)](_0x11a968[_0x33d38b(0x28e)],_0x11a968[_0x33d38b(0x270)]))_0x41609f[_0x33d38b(0x2c2)](_0x4ace90[_0x33d38b(0x22f)]);else{const _0x23e03f={'iyCHK':function(_0x1092d0,_0x3156d0){return _0x11a968['NSzgW'](_0x1092d0,_0x3156d0);}},_0x15462b={};_0x15462b[_0x33d38b(0x303)]=_0x11a968[_0x33d38b(0x231)],_0x15462b[_0x33d38b(0x2bc)]=_0x42bd87;const _0x10b0d4=new _0x208a3b[(_0x33d38b(0x2d6))](_0x15462b);_0x10b0d4[_0x33d38b(0x228)]()[_0x33d38b(0x2dd)]()['then'](_0x54af74=>{const _0x252874=_0x33d38b;_0x23e03f[_0x252874(0x2c5)](_0x1d282a,_0x54af74);})[_0x33d38b(0x26c)](_0xb9bd27=>{const _0x5cb0a6=_0x33d38b;_0x42fc9f[_0x5cb0a6(0x316)]('Failed\x20to\x20fetch\x20VPCs\x20due\x20to\x20error:\x20'+_0xb9bd27),_0x32dc84['ZUdcS'](_0x5c72d1,_0xb9bd27);});}});const _0x38ac26=_0x34fa20[_0x123088(0x27f)](_0x3cc153=>{const _0x55c212=_0x123088,_0x2713a5={'PWiez':function(_0x3a361c,_0x4885e1){return _0x11a968['gzBBZ'](_0x3a361c,_0x4885e1);}};if(_0x11a968[_0x55c212(0x2ef)](_0x11a968[_0x55c212(0x220)],_0x11a968[_0x55c212(0x220)]))_0x34aaa2['warn'](_0x55c212(0x24f)+_0x308a61+_0x55c212(0x2e4)),_0x2713a5['PWiez'](_0x279381,!![]);else{if(_0x41609f[_0x55c212(0x317)](_0x3cc153)){if(_0x11a968[_0x55c212(0x212)](_0x11a968[_0x55c212(0x200)],_0x11a968['MHAbN']))return!![];else{const _0x1ac4e6={};_0x1ac4e6[_0x55c212(0x277)]=_0x4d2566,_0x4dde42[_0x55c212(0x2b2)](_0x1ac4e6)[_0x55c212(0x2dd)]()[_0x55c212(0x2da)](_0x29fd16=>{const _0x2bdb92=_0x55c212;_0x44e320[_0x2bdb92(0x229)]('Bucket:\x20'+_0x7cab8e+_0x2bdb92(0x2e4)),_0x2713a5['PWiez'](_0x2287b2,!![]);})['catch'](()=>{const _0x25db67=_0x55c212;_0x4de85c[_0x25db67(0x291)]('Bucket:\x20'+_0x475b2b+_0x25db67(0x27e)),_0x2713a5[_0x25db67(0x280)](_0x3f0b0e,![]);});}}else return _0x11a968[_0x55c212(0x31c)](_0x11a968[_0x55c212(0x242)],_0x11a968[_0x55c212(0x242)])?(_0x407fd9[_0x55c212(0x2c2)](_0x3cc153),![]):_0x43e57c[_0x55c212(0x317)](_0x5bf293)?!![]:(_0x2bf828['push'](_0x56ab6a),![]);}});_0x184569['YhxTd'](_0x5df06c,[_0x38ac26,_0x407fd9]);}})[_0x6b41ad(0x26c)](_0x2d42f3=>{const _0xac0572=_0x6b41ad,_0x34b192={'rjoeG':function(_0x335a31,_0x540b83){const _0x2c0717=a14_0x4afe;return _0x2b6686[_0x2c0717(0x2db)](_0x335a31,_0x540b83);},'XXhUM':_0x2b6686[_0xac0572(0x243)]};if(_0x2b6686['dlPQL'](_0x2b6686[_0xac0572(0x1fe)],_0x2b6686['mcLUE']))logger[_0xac0572(0x316)](_0xac0572(0x2ad)+_0x8d95b7+_0xac0572(0x249)+_0x5f55f4+_0xac0572(0x2a3)+_0x2d42f3),_0x2b6686[_0xac0572(0x2db)](_0x5df06c,[![],[]]);else{const _0x3a3290={'cfNwR':function(_0x4c251d,_0xca930a){return _0x34b192['rjoeG'](_0x4c251d,_0xca930a);}},_0x2a796b={};_0x2a796b[_0xac0572(0x303)]=_0x34b192[_0xac0572(0x274)];const _0x5da6b7=new _0x293dc8[(_0xac0572(0x221))](_0x2a796b);_0x5da6b7['listClusters']()[_0xac0572(0x2dd)]()['then'](_0x1aaee5=>{const _0x46ff8a=_0xac0572;_0x1aaee5[_0x46ff8a(0x296)][_0x46ff8a(0x317)](_0xfbfac)&&_0x34b192[_0x46ff8a(0x2cc)](_0x25a725,!![]),_0x34b192[_0x46ff8a(0x2cc)](_0x214e94,![]);})[_0xac0572(0x26c)](_0x3f9b85=>{_0x229113['error'](_0x3f9b85),_0x3a3290['cfNwR'](_0x14c095,_0x3f9b85);});}});}});},exports[a14_0x18b6c2(0x2f3)]=_0x17e3fc=>{const _0xf6b550=a14_0x18b6c2,_0x55f514={'CYngY':function(_0x252ad1,_0x331cc6){return _0x252ad1(_0x331cc6);},'elUaz':function(_0x5b6650,_0x5706cd){return _0x5b6650!==_0x5706cd;},'PegCg':_0xf6b550(0x2e1),'AJkmD':function(_0x1a56ce,_0x2b8e3f){return _0x1a56ce(_0x2b8e3f);},'IjXSK':function(_0x86ad0,_0x202f14){return _0x86ad0!==_0x202f14;},'LgnBU':_0xf6b550(0x217),'QxZHu':_0xf6b550(0x1fc),'aVVoQ':function(_0x41eb2b,_0xe17793){return _0x41eb2b!==_0xe17793;},'CITMp':'AdhQy'},_0x4f1558=new awsSDK['S3']();return new Promise((_0x4d3a53,_0x51b6e7)=>{const _0x3c2d38=_0xf6b550,_0x4c04de={'zqcGx':function(_0x49605c,_0x19afd2){const _0x38e2c1=a14_0x4afe;return _0x55f514[_0x38e2c1(0x26e)](_0x49605c,_0x19afd2);},'MAjId':function(_0x8897a8,_0x3bf81d){return _0x55f514['IjXSK'](_0x8897a8,_0x3bf81d);},'uUPPX':_0x55f514['LgnBU'],'ZWbQo':_0x55f514['QxZHu'],'ASVOg':function(_0x573a1a,_0x14a681){const _0x5d2157=a14_0x4afe;return _0x55f514[_0x5d2157(0x2e9)](_0x573a1a,_0x14a681);}};if(_0x55f514[_0x3c2d38(0x234)](_0x55f514[_0x3c2d38(0x318)],_0x55f514[_0x3c2d38(0x318)]))_0x3fe538['info'](_0x3c2d38(0x24f)+_0x261aee+_0x3c2d38(0x27e)),_0x55f514[_0x3c2d38(0x26e)](_0x29ab73,![]);else{const _0x4a0757={};_0x4a0757['Bucket']=_0x17e3fc,_0x4f1558[_0x3c2d38(0x2b2)](_0x4a0757)[_0x3c2d38(0x2dd)]()[_0x3c2d38(0x2da)](_0x230110=>{const _0x43f5ce=_0x3c2d38,_0x53bdf4={'hoEoW':function(_0x5a214c,_0x177c41){const _0x3b90e9=a14_0x4afe;return _0x4c04de[_0x3b90e9(0x2a8)](_0x5a214c,_0x177c41);}};_0x4c04de[_0x43f5ce(0x2ba)](_0x4c04de[_0x43f5ce(0x285)],_0x4c04de[_0x43f5ce(0x30c)])?(logger[_0x43f5ce(0x229)](_0x43f5ce(0x24f)+_0x17e3fc+'\x20already\x20exists.\x20Skipping\x20Bucket\x20creation'),_0x4c04de[_0x43f5ce(0x266)](_0x4d3a53,!![])):_0x53bdf4[_0x43f5ce(0x31d)](_0x3925ef,!![]);})[_0x3c2d38(0x26c)](()=>{const _0x462eb5=_0x3c2d38,_0x2f1977={'fDaZr':function(_0x60c5a5,_0x20c440){const _0x5ad37c=a14_0x4afe;return _0x55f514[_0x5ad37c(0x26e)](_0x60c5a5,_0x20c440);}};_0x55f514[_0x462eb5(0x1fd)](_0x55f514[_0x462eb5(0x2bf)],_0x55f514['PegCg'])?(_0x33166c[_0x462eb5(0x296)][_0x462eb5(0x317)](_0x4cb1ac)&&_0x2f1977[_0x462eb5(0x2b8)](_0x3daa27,!![]),_0x2f1977['fDaZr'](_0x420e23,![])):(logger[_0x462eb5(0x291)](_0x462eb5(0x24f)+_0x17e3fc+_0x462eb5(0x27e)),_0x55f514[_0x462eb5(0x2e9)](_0x4d3a53,![]));});}});},exports['fetchSubnets']=_0x337fd7=>{const _0x273f21=a14_0x18b6c2,_0x4c4270={'JBSEf':function(_0x3c55ba,_0x443dd8){return _0x3c55ba(_0x443dd8);},'mSxjf':_0x273f21(0x26f),'uufph':function(_0x5ae3cb,_0x29b13b){return _0x5ae3cb!==_0x29b13b;},'lCiVH':_0x273f21(0x29a),'RMFUl':_0x273f21(0x2a6),'zoApW':_0x273f21(0x30b),'IUZMp':function(_0x4b3c4c,_0x113920){return _0x4b3c4c===_0x113920;},'gMORt':_0x273f21(0x322)};return new Promise((_0x3b5652,_0x3a22d5)=>{const _0x1199f1=_0x273f21,_0x8e8ac2={'RKpMu':function(_0x2e11ae,_0x5a7d6e){const _0x303f93=a14_0x4afe;return _0x4c4270[_0x303f93(0x2a0)](_0x2e11ae,_0x5a7d6e);},'nuOfa':_0x4c4270['mSxjf'],'lMVSL':function(_0x34c8c3,_0x39191a){const _0x4d14f3=a14_0x4afe;return _0x4c4270[_0x4d14f3(0x201)](_0x34c8c3,_0x39191a);},'GKNOY':_0x4c4270[_0x1199f1(0x2ab)],'oiqpE':_0x4c4270[_0x1199f1(0x23c)],'KDnTK':function(_0x2a1044,_0x283a64){const _0x3810e5=_0x1199f1;return _0x4c4270[_0x3810e5(0x2a0)](_0x2a1044,_0x283a64);},'Clnyh':function(_0x5cb1a9,_0x4f6646){const _0x368f72=_0x1199f1;return _0x4c4270[_0x368f72(0x201)](_0x5cb1a9,_0x4f6646);},'AQlFG':_0x4c4270[_0x1199f1(0x20f)],'BZiPv':function(_0x163253,_0x1ed78c){const _0x31a054=_0x1199f1;return _0x4c4270[_0x31a054(0x2a0)](_0x163253,_0x1ed78c);},'MPhMV':function(_0x127497,_0x5cb1bf){const _0x52a0c0=_0x1199f1;return _0x4c4270[_0x52a0c0(0x2a0)](_0x127497,_0x5cb1bf);}};if(_0x4c4270[_0x1199f1(0x1f8)](_0x4c4270[_0x1199f1(0x1f0)],_0x4c4270[_0x1199f1(0x1f0)])){const _0x5515c3={};_0x5515c3[_0x1199f1(0x303)]=_0x4c4270[_0x1199f1(0x261)],_0x5515c3['region']=_0x337fd7;const _0x5cb0a7=new awsSDK[(_0x1199f1(0x2d6))](_0x5515c3);_0x5cb0a7[_0x1199f1(0x20c)]()['promise']()[_0x1199f1(0x2da)](_0x271838=>{const _0x42be40=_0x1199f1,_0x18f6ca={'EiuBF':function(_0x563be8,_0x5e0a1d){const _0x3f83c6=a14_0x4afe;return _0x8e8ac2[_0x3f83c6(0x22e)](_0x563be8,_0x5e0a1d);},'ymaul':_0x8e8ac2['nuOfa']};if(_0x8e8ac2['lMVSL'](_0x8e8ac2[_0x42be40(0x283)],_0x8e8ac2[_0x42be40(0x2bd)]))_0x8e8ac2[_0x42be40(0x22e)](_0x3b5652,_0x271838);else{const _0x18b51c={'ivDdv':function(_0x27ff6a,_0x1448d4){return _0x8e8ac2['RKpMu'](_0x27ff6a,_0x1448d4);}},_0x2789a1={};_0x2789a1['VpcIds']=[_0x1f5e03];let _0x5af57d=_0x2789a1;return new _0x3bf7e0((_0xffc5f7,_0x406f35)=>{const _0x439340=_0x42be40,_0x154584={'KLXlr':function(_0x1a9663,_0x4e842d){const _0x32126a=a14_0x4afe;return _0x18f6ca[_0x32126a(0x20a)](_0x1a9663,_0x4e842d);}},_0x2563aa={};_0x2563aa[_0x439340(0x303)]=_0x18f6ca[_0x439340(0x292)],_0x2563aa[_0x439340(0x2bc)]=_0x4202c9;const _0x1ee94d=new _0x44cd82[(_0x439340(0x2d6))](_0x2563aa);_0x1ee94d[_0x439340(0x228)](_0x5af57d)[_0x439340(0x2dd)]()[_0x439340(0x2da)](_0x6e62ef=>{_0x18b51c['ivDdv'](_0xffc5f7,!![]);})[_0x439340(0x26c)](_0x137819=>{const _0x3bb642=_0x439340;_0x1c08ff[_0x3bb642(0x316)](_0x3bb642(0x255)+_0x13c65b+_0x3bb642(0x249)+_0x3d8d8b+_0x3bb642(0x310)),_0x154584[_0x3bb642(0x2ed)](_0xffc5f7,![]);});});}})[_0x1199f1(0x26c)](_0x2a99a1=>{const _0x4c3882=_0x1199f1;_0x8e8ac2[_0x4c3882(0x2fc)](_0x8e8ac2[_0x4c3882(0x288)],_0x8e8ac2[_0x4c3882(0x288)])?_0x8e8ac2[_0x4c3882(0x264)](_0x1ac2e6,_0xd01c5c):(logger[_0x4c3882(0x316)]('Failed\x20to\x20fetch\x20subnets\x20due\x20to\x20error:\x20'+_0x2a99a1),_0x8e8ac2[_0x4c3882(0x244)](_0x3a22d5,_0x2a99a1));});}else _0x53fb3a[_0x1199f1(0x316)](_0x1199f1(0x321)+_0x1f3d66),_0x8e8ac2[_0x1199f1(0x263)](_0x220061,_0x1d505c);});},exports[a14_0x18b6c2(0x23b)]=_0x2fd6da=>{const _0x19b67b=a14_0x18b6c2,_0x5be4d0={'vSkwA':function(_0x132b22,_0x5dd553){return _0x132b22!==_0x5dd553;},'RYTaq':_0x19b67b(0x232),'sNNHa':function(_0x5cbd91,_0x3da74a){return _0x5cbd91(_0x3da74a);},'CdhHy':function(_0x288ea2,_0x504d92){return _0x288ea2(_0x504d92);},'DIYVr':function(_0xe8f3f2,_0x3a5c2c){return _0xe8f3f2!==_0x3a5c2c;},'EwPiQ':'ebWrj','zKUGY':'BClvg','afTCX':function(_0x59e725,_0xd8aa9){return _0x59e725===_0xd8aa9;},'ikKiN':function(_0x24f6e4,_0x18eb9b){return _0x24f6e4===_0x18eb9b;},'qPxTe':_0x19b67b(0x279),'tbKTC':_0x19b67b(0x26f)};return new Promise((_0x9bc7e0,_0x13d780)=>{const _0x45f342=_0x19b67b,_0x2a26c6={'fVNBH':function(_0x1f307d,_0x394c36){const _0x3ec017=a14_0x4afe;return _0x5be4d0[_0x3ec017(0x2c1)](_0x1f307d,_0x394c36);},'IhbDs':function(_0x3cf786,_0x9cafb1){const _0x5787c0=a14_0x4afe;return _0x5be4d0[_0x5787c0(0x203)](_0x3cf786,_0x9cafb1);},'QqTUU':_0x5be4d0['EwPiQ'],'ltbNm':_0x5be4d0[_0x45f342(0x2d4)],'LYSLP':function(_0x344ee1,_0x2831a6){const _0x1566f7=_0x45f342;return _0x5be4d0[_0x1566f7(0x241)](_0x344ee1,_0x2831a6);}};if(_0x5be4d0[_0x45f342(0x254)](_0x5be4d0['qPxTe'],_0x5be4d0['qPxTe'])){const _0x15ea86={};_0x15ea86[_0x45f342(0x303)]=_0x5be4d0[_0x45f342(0x20e)],_0x15ea86[_0x45f342(0x2bc)]=_0x2fd6da;const _0x5162e2=new awsSDK[(_0x45f342(0x2d6))](_0x15ea86);_0x5162e2[_0x45f342(0x286)]()[_0x45f342(0x2dd)]()[_0x45f342(0x2da)](_0x74241=>{const _0x17398f=_0x45f342;if(_0x5be4d0['vSkwA'](_0x5be4d0['RYTaq'],_0x5be4d0[_0x17398f(0x259)])){if(_0x2a26c6['fVNBH'](_0x51324a,_0x3fa6c6))return this[_0x17398f(0x2aa)](),_0x2a26c6['fVNBH'](_0x134a0c,_0x33f473);}else _0x5be4d0[_0x17398f(0x1f9)](_0x9bc7e0,_0x74241);})[_0x45f342(0x26c)](_0x4920ee=>{const _0xa0a8b1=_0x45f342;_0x2a26c6['IhbDs'](_0x2a26c6[_0xa0a8b1(0x215)],_0x2a26c6[_0xa0a8b1(0x273)])?(logger['error'](_0xa0a8b1(0x1f3)+_0x4920ee),_0x2a26c6[_0xa0a8b1(0x2d0)](_0x13d780,_0x4920ee)):this['setAWSConfig']();});}else return _0x2a26c6[_0x45f342(0x223)](_0x58de7a[_0x45f342(0x23e)],!![]);});},exports[a14_0x18b6c2(0x2a4)]=()=>{const _0x3519c7=a14_0x18b6c2,_0x59b127={'lUouK':function(_0x17d7c5,_0x2b466d){return _0x17d7c5(_0x2b466d);},'PGBIA':function(_0x110706,_0x2d0cdf){return _0x110706(_0x2d0cdf);},'VmepA':_0x3519c7(0x26f),'ZuFbd':function(_0x59adf8,_0x18e5f6){return _0x59adf8(_0x18e5f6);},'waJLm':function(_0x35a8cb,_0x53b8ee){return _0x35a8cb===_0x53b8ee;},'xAWTr':_0x3519c7(0x295),'XjtxE':_0x3519c7(0x1ff),'DZrCI':function(_0x3dbcb1,_0x35fabd){return _0x3dbcb1!==_0x35fabd;},'IYcjQ':function(_0x23248b,_0x330eb3){return _0x23248b===_0x330eb3;},'oZbrH':_0x3519c7(0x293),'hwHQX':_0x3519c7(0x230),'akLOP':_0x3519c7(0x306),'CKezy':function(_0x5c1fdb,_0x42293d){return _0x5c1fdb(_0x42293d);},'YXvbF':_0x3519c7(0x21c),'NvrWX':_0x3519c7(0x213),'chdxC':function(_0x3766ed,_0x3d8ce4){return _0x3766ed===_0x3d8ce4;},'NwfBf':_0x3519c7(0x2f0),'Mxzat':_0x3519c7(0x300)};return new Promise((_0x35951b,_0xf35eb7)=>{const _0x3c09f9=_0x3519c7,_0x525238={'UKqYL':function(_0x5ebd4f,_0x329f45){return _0x59b127['lUouK'](_0x5ebd4f,_0x329f45);},'QbOQU':function(_0x16a03f,_0x2c5e69){const _0x94338a=a14_0x4afe;return _0x59b127[_0x94338a(0x2f7)](_0x16a03f,_0x2c5e69);},'NQjZM':_0x59b127[_0x3c09f9(0x28b)],'yaCSR':function(_0x124727,_0x4afee9){const _0x2b2cb2=_0x3c09f9;return _0x59b127[_0x2b2cb2(0x27c)](_0x124727,_0x4afee9);},'dcQta':function(_0x286482,_0x2318ed){const _0x54b3fe=_0x3c09f9;return _0x59b127[_0x54b3fe(0x2ae)](_0x286482,_0x2318ed);},'nWZkX':_0x59b127[_0x3c09f9(0x297)],'JMbsx':_0x59b127['XjtxE'],'dRKtg':function(_0x89fd56,_0x15bb36){const _0x2a7b22=_0x3c09f9;return _0x59b127[_0x2a7b22(0x225)](_0x89fd56,_0x15bb36);},'Efjos':function(_0x5866d4,_0x3cacd8){const _0x2b9a42=_0x3c09f9;return _0x59b127[_0x2b9a42(0x26b)](_0x5866d4,_0x3cacd8);},'kdgIo':_0x59b127[_0x3c09f9(0x2f5)],'SrzfA':_0x59b127['hwHQX'],'NrJfs':_0x59b127['akLOP'],'RqngU':function(_0xf3bf33,_0x1b4118){return _0x59b127['CKezy'](_0xf3bf33,_0x1b4118);},'itDGX':function(_0x5cbfec,_0xbb77d3){return _0x59b127['waJLm'](_0x5cbfec,_0xbb77d3);},'DOaqk':_0x59b127[_0x3c09f9(0x2ea)],'ZdErm':_0x59b127['NvrWX']};if(_0x59b127[_0x3c09f9(0x29b)](_0x59b127[_0x3c09f9(0x2d5)],_0x59b127['Mxzat']))_0x592455['error'](_0x3c09f9(0x255)+_0x5d3522+'\x20in\x20region\x20'+_0x1c6d02+_0x3c09f9(0x310)),_0x525238['UKqYL'](_0x3463ad,![]);else{const _0x22fa71={};_0x22fa71[_0x3c09f9(0x303)]=_0x59b127[_0x3c09f9(0x28b)];const _0x4b2204=new awsSDK[(_0x3c09f9(0x2d6))](_0x22fa71);_0x4b2204[_0x3c09f9(0x23f)]()['promise']()[_0x3c09f9(0x2da)]((_0x53aec5,_0x2d2c43)=>{const _0x53d6ac=_0x3c09f9,_0x54c9b9={'OzEXm':function(_0x222576,_0x5346c2){return _0x525238['UKqYL'](_0x222576,_0x5346c2);},'NBhxj':_0x525238[_0x53d6ac(0x2e5)],'APqpi':function(_0xc98362,_0x5c2970){const _0x3eee9d=_0x53d6ac;return _0x525238[_0x3eee9d(0x2d9)](_0xc98362,_0x5c2970);}};if(_0x525238[_0x53d6ac(0x289)](_0x525238[_0x53d6ac(0x1fa)],_0x525238['JMbsx'])){const _0x5365b1={'zXJxl':function(_0x42a2e2,_0x2d5d61){const _0x22de5a=_0x53d6ac;return _0x54c9b9[_0x22de5a(0x2b0)](_0x42a2e2,_0x2d5d61);}};return new _0x4496a9((_0x4c917d,_0x399eb9)=>{const _0x4590cc=_0x53d6ac,_0x1666a5={'YeElH':function(_0x39c8f8,_0x2e3390){const _0x221a72=a14_0x4afe;return _0x54c9b9[_0x221a72(0x308)](_0x39c8f8,_0x2e3390);}},_0xa60eaa={};_0xa60eaa['apiVersion']=_0x54c9b9[_0x4590cc(0x2c4)],_0xa60eaa[_0x4590cc(0x2bc)]=_0x52a6c5;const _0x4a9525=new _0x26a967[(_0x4590cc(0x2d6))](_0xa60eaa);_0x4a9525[_0x4590cc(0x286)]()['promise']()[_0x4590cc(0x2da)](_0x230e26=>{const _0x1a0c01=_0x4590cc;_0x5365b1[_0x1a0c01(0x218)](_0x4c917d,_0x230e26);})['catch'](_0x478d4c=>{const _0x5738bc=_0x4590cc;_0x2b49a0[_0x5738bc(0x316)](_0x5738bc(0x1f3)+_0x478d4c),_0x1666a5[_0x5738bc(0x24c)](_0x399eb9,_0x478d4c);});});}else{if(_0x525238[_0x53d6ac(0x2d8)](_0x53aec5,undefined)&&_0x525238[_0x53d6ac(0x2d8)](_0x53aec5['Regions'],undefined))_0x525238[_0x53d6ac(0x240)](_0x525238['kdgIo'],_0x525238['SrzfA'])?(_0x4e2126['error']('Failed\x20to\x20fetch\x20Security\x20Groups\x20due\x20to\x20error:\x20'+_0x344107),_0x525238[_0x53d6ac(0x294)](_0x4ec2d5,_0x2a8b4f)):_0x525238[_0x53d6ac(0x294)](_0x35951b,_0x53aec5[_0x53d6ac(0x2dc)]);else{if(_0x525238[_0x53d6ac(0x2d8)](_0x525238[_0x53d6ac(0x276)],_0x525238[_0x53d6ac(0x276)]))return _0x2f660b['push'](_0x25aca4),![];else _0x525238[_0x53d6ac(0x21a)](_0x35951b,{});}}})[_0x3c09f9(0x26c)](_0x300975=>{const _0xf9789a=_0x3c09f9;if(_0x525238[_0xf9789a(0x2f8)](_0x525238[_0xf9789a(0x257)],_0x525238['ZdErm'])){const _0xd48bcb={'fjFpg':function(_0x23d8a4,_0x1e4f80){const _0x258ef1=_0xf9789a;return _0x525238[_0x258ef1(0x294)](_0x23d8a4,_0x1e4f80);},'ZPntj':function(_0x2db69e,_0x4b6931){const _0x41d220=_0xf9789a;return _0x525238[_0x41d220(0x294)](_0x2db69e,_0x4b6931);},'SomiD':_0x525238['NQjZM']};return new _0x3ae0bd((_0x186afe,_0xf8cff5)=>{const _0x4a5ec0=_0xf9789a,_0xf106a9={'Umvrb':function(_0x3dcedd,_0x477b76){const _0x455e56=a14_0x4afe;return _0xd48bcb[_0x455e56(0x1f6)](_0x3dcedd,_0x477b76);}},_0xe3df05={};_0xe3df05['apiVersion']=_0xd48bcb[_0x4a5ec0(0x260)],_0xe3df05[_0x4a5ec0(0x2bc)]=_0x6bf15b;const _0xbfea5f=new _0xfceeb[(_0x4a5ec0(0x2d6))](_0xe3df05);_0xbfea5f['describeVpcs']()[_0x4a5ec0(0x2dd)]()[_0x4a5ec0(0x2da)](_0x5744ad=>{const _0x1ea46d=_0x4a5ec0;_0xd48bcb[_0x1ea46d(0x2cd)](_0x186afe,_0x5744ad);})[_0x4a5ec0(0x26c)](_0x5d243d=>{const _0x285d6a=_0x4a5ec0;_0x41463c['error'](_0x285d6a(0x1f2)+_0x5d243d),_0xf106a9[_0x285d6a(0x24d)](_0xf8cff5,_0x5d243d);});});}else logger['error'](_0xf9789a(0x2b4)+_0x300975),_0x525238[_0xf9789a(0x2d9)](_0xf35eb7,_0x300975);});}});},exports[a14_0x18b6c2(0x2df)]=()=>{const _0x5bae33=a14_0x18b6c2,_0x24eb5f={};_0x24eb5f[_0x5bae33(0x30f)]=function(_0x33e3f9,_0xd52bb0){return _0x33e3f9===_0xd52bb0;};const _0x1c48f1=_0x24eb5f;return _0x1c48f1[_0x5bae33(0x30f)](global_registry[_0x5bae33(0x23e)],!![]);},exports[a14_0x18b6c2(0x26d)]=()=>{const _0x199bbd=a14_0x18b6c2,_0x36b5f5={};_0x36b5f5['region']=global_registry['clusterRegion'],_0x36b5f5[_0x199bbd(0x251)]=global_registry[_0x199bbd(0x268)],_0x36b5f5[_0x199bbd(0x304)]=global_registry[_0x199bbd(0x29e)],awsSDK['config'][_0x199bbd(0x2f2)](_0x36b5f5),global_registry['awsConfigSet']=!![];},exports[a14_0x18b6c2(0x2ca)]=awsSDK;
@@ -1 +1 @@
1
- function a15_0x5c8c(_0x5431a7,_0xe652be){const _0x59bbae=a15_0x59bb();return a15_0x5c8c=function(_0x5c8c95,_0x311da9){_0x5c8c95=_0x5c8c95-0xf6;let _0x401ee4=_0x59bbae[_0x5c8c95];return _0x401ee4;},a15_0x5c8c(_0x5431a7,_0xe652be);}const a15_0x57da4f=a15_0x5c8c;(function(_0x5ba83a,_0x57749f){const _0x553a34=a15_0x5c8c,_0x7c94b3=_0x5ba83a();while(!![]){try{const _0x29a1f1=parseInt(_0x553a34(0x110))/0x1*(-parseInt(_0x553a34(0x11d))/0x2)+parseInt(_0x553a34(0x121))/0x3+parseInt(_0x553a34(0x108))/0x4+-parseInt(_0x553a34(0x120))/0x5*(parseInt(_0x553a34(0xfd))/0x6)+-parseInt(_0x553a34(0x117))/0x7*(parseInt(_0x553a34(0x12b))/0x8)+-parseInt(_0x553a34(0x116))/0x9*(parseInt(_0x553a34(0x10a))/0xa)+parseInt(_0x553a34(0x12c))/0xb*(parseInt(_0x553a34(0x12e))/0xc);if(_0x29a1f1===_0x57749f)break;else _0x7c94b3['push'](_0x7c94b3['shift']());}catch(_0x2e329e){_0x7c94b3['push'](_0x7c94b3['shift']());}}}(a15_0x59bb,0x7e856));const fs=require('fs'),path=require(a15_0x57da4f(0xfb)),yaml=require(a15_0x57da4f(0x10b)),{CLOUDFORMATION_SCHEMA}=require(a15_0x57da4f(0x11f)),Promise=require('bluebird'),AWS=require('./AWSUtils')[a15_0x57da4f(0xf6)],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a15_0x57da4f(0x113)),{logger}=require(a15_0x57da4f(0xfa));Promise[a15_0x57da4f(0x100)](fs),addAutoscalerTags=async(_0x40660e,_0x2db165,_0x4bc719)=>{const _0x3d6948=a15_0x57da4f;for(let _0x52ada2 in _0x40660e[_0x3d6948(0x104)]){_0x40660e['Resources'][_0x52ada2][_0x3d6948(0x103)]&&_0x40660e[_0x3d6948(0x104)][_0x52ada2][_0x3d6948(0x103)]['Tags']&&_0x40660e[_0x3d6948(0x104)][_0x52ada2][_0x3d6948(0x103)][_0x3d6948(0x11b)][_0x3d6948(0x10d)](..._0x4bc719);}},exports[a15_0x57da4f(0x112)]=async _0x4d04ca=>{const _0x1f37bb=a15_0x57da4f,_0xfe6b3={'oKKUB':_0x1f37bb(0x106),'TSoot':'browserstack:creationDate','LTMPg':_0x1f37bb(0x101),'uXaNt':_0x1f37bb(0x10c),'ajaAH':'autoscaler-role-creation.yaml','UrCep':'utf-8','HAOGI':function(_0x13aa54,_0x189d11,_0x2055d4,_0x148df9){return _0x13aa54(_0x189d11,_0x2055d4,_0x148df9);},'KAKVS':'DELETE','tSVsQ':_0x1f37bb(0x128),'ORNgf':_0x1f37bb(0xf9),'OPNrs':_0x1f37bb(0x115)},_0x4fb0d3=COMMON_HST_TAGS,_0x4a0b95={};_0x4a0b95[_0x1f37bb(0x111)]=_0xfe6b3[_0x1f37bb(0xff)],_0x4a0b95[_0x1f37bb(0x10f)]=_0x4d04ca,_0x4fb0d3[_0x1f37bb(0x10d)](_0x4a0b95),_0x4fb0d3[_0x1f37bb(0x10d)]({'Key':_0xfe6b3['TSoot'],'Value':new Date()[_0x1f37bb(0x124)]()[_0x1f37bb(0x118)]()});const _0x22d53b={};_0x22d53b[_0x1f37bb(0xf8)]=_0xfe6b3[_0x1f37bb(0x12d)];const _0x5558a3=new AWS[(_0x1f37bb(0x102))](_0x22d53b),_0x4ae65b=await fs[_0x1f37bb(0x114)](path['join'](__dirname,'..',_0xfe6b3[_0x1f37bb(0x126)],_0xfe6b3['ajaAH']),_0xfe6b3[_0x1f37bb(0x119)]),_0x1f0a45={};_0x1f0a45[_0x1f37bb(0x109)]=CLOUDFORMATION_SCHEMA;const _0x2c7fe7=yaml[_0x1f37bb(0xfe)](_0x4ae65b,_0x1f0a45);_0xfe6b3[_0x1f37bb(0x105)](addAutoscalerTags,_0x2c7fe7,_0x4d04ca,_0x4fb0d3);const _0x50d3e4=JSON[_0x1f37bb(0x12a)](_0x2c7fe7),_0xa44fe9={};_0xa44fe9['StackName']=CLUSTER_AUTOSCALER_STACK_NAME,_0xa44fe9[_0x1f37bb(0x11a)]=_0xfe6b3['KAKVS'],_0xa44fe9[_0x1f37bb(0x11e)]=_0x50d3e4,_0xa44fe9[_0x1f37bb(0x125)]=[{'ParameterKey':_0xfe6b3[_0x1f37bb(0x107)],'ParameterValue':_0x4d04ca}],_0xa44fe9[_0x1f37bb(0x11c)]=[_0xfe6b3[_0x1f37bb(0xfc)]],_0xa44fe9[_0x1f37bb(0x11b)]=_0x4fb0d3;const _0xe4d146=_0xa44fe9,_0x5ce7c2=await _0x5558a3[_0x1f37bb(0x127)](_0xe4d146)['promise']();logger[_0x1f37bb(0x10e)](_0x1f37bb(0xf7));const _0x594b99={};return _0x594b99[_0x1f37bb(0x123)]=_0x5ce7c2[_0x1f37bb(0x129)],_0x5558a3['waitFor'](_0xfe6b3[_0x1f37bb(0x122)],_0x594b99)['promise']();};function a15_0x59bb(){const _0x48bbd1=['4046080HNtDBh','schema','10mtUGnL','js-yaml','templates','push','debug','Value','199mWEVTV','Key','createAutoscalerStack','../config/constants','readFileAsync','stackCreateComplete','3731742HsyfTH','14917ZrpQNN','toString','UrCep','OnFailure','Tags','Capabilities','8662sbBdNT','TemplateBody','js-yaml-cloudformation-schema','5zGHCwU','1881936BZhUcy','OPNrs','StackName','valueOf','Parameters','uXaNt','createStack','ClusterName','StackId','stringify','152ahNNMJ','11OONAeB','LTMPg','6657204iJqpcr','awsObj','Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete','apiVersion','CAPABILITY_NAMED_IAM','../config/logger','path','ORNgf','2150238bRpYwf','load','oKKUB','promisifyAll','2010-05-15','CloudFormation','Properties','Resources','HAOGI','browserstack:cluster','tSVsQ'];a15_0x59bb=function(){return _0x48bbd1;};return a15_0x59bb();}
1
+ const a15_0x32491c=a15_0x1ce3;(function(_0x524573,_0x3a7533){const _0x3c90e6=a15_0x1ce3,_0x394b56=_0x524573();while(!![]){try{const _0x81026c=-parseInt(_0x3c90e6(0xc6))/0x1+parseInt(_0x3c90e6(0xa7))/0x2+parseInt(_0x3c90e6(0xa5))/0x3*(-parseInt(_0x3c90e6(0xc0))/0x4)+-parseInt(_0x3c90e6(0xa0))/0x5*(parseInt(_0x3c90e6(0xc3))/0x6)+-parseInt(_0x3c90e6(0xca))/0x7+-parseInt(_0x3c90e6(0xad))/0x8*(parseInt(_0x3c90e6(0xc1))/0x9)+parseInt(_0x3c90e6(0xae))/0xa;if(_0x81026c===_0x3a7533)break;else _0x394b56['push'](_0x394b56['shift']());}catch(_0x852a22){_0x394b56['push'](_0x394b56['shift']());}}}(a15_0x4302,0xd8688));function a15_0x4302(){const _0x17d0e2=['promise','templates','VfsyX','Capabilities','YqTVd','PoswM','jkvYk','../config/constants','Key','zZenW','StackId','path','utf-8','schema','createAutoscalerStack','2010-05-15','8PsGzbj','154629UIbGJe','debug','41730TDvoBf','StackName','Parameters','1695297SKBUzX','ClusterName','load','Resources','10870111pIulcV','js-yaml-cloudformation-schema','stackCreateComplete','OnFailure','wDnCa','browserstack:creationDate','MgJDh','195nopuhE','join','promisifyAll','apiVersion','waitFor','2216751nnFtjz','js-yaml','867096TueetM','Properties','Tags','push','DELETE','SoPLm','184VKbjIX','58452720auWbvZ','bluebird'];a15_0x4302=function(){return _0x17d0e2;};return a15_0x4302();}function a15_0x1ce3(_0xa0e2e4,_0x14e1b1){const _0x43022f=a15_0x4302();return a15_0x1ce3=function(_0x1ce38b,_0x3a30b8){_0x1ce38b=_0x1ce38b-0x9d;let _0x168f58=_0x43022f[_0x1ce38b];return _0x168f58;},a15_0x1ce3(_0xa0e2e4,_0x14e1b1);}const fs=require('fs'),path=require(a15_0x32491c(0xbb)),yaml=require(a15_0x32491c(0xa6)),{CLOUDFORMATION_SCHEMA}=require(a15_0x32491c(0xcb)),Promise=require(a15_0x32491c(0xaf)),AWS=require('./AWSUtils')['awsObj'],{CLUSTER_AUTOSCALER_STACK_NAME,COMMON_HST_TAGS}=require(a15_0x32491c(0xb7)),{logger}=require('../config/logger');Promise[a15_0x32491c(0xa2)](fs),addAutoscalerTags=async(_0x1791f5,_0x494b05,_0x483a6a)=>{const _0x502779=a15_0x32491c;for(let _0x12c43e in _0x1791f5[_0x502779(0xc9)]){_0x1791f5[_0x502779(0xc9)][_0x12c43e][_0x502779(0xa8)]&&_0x1791f5[_0x502779(0xc9)][_0x12c43e][_0x502779(0xa8)][_0x502779(0xa9)]&&_0x1791f5[_0x502779(0xc9)][_0x12c43e][_0x502779(0xa8)]['Tags'][_0x502779(0xaa)](..._0x483a6a);}},exports[a15_0x32491c(0xbe)]=async _0x1130af=>{const _0x44e51e=a15_0x32491c,_0x45613f={'gPacJ':'browserstack:cluster','zZenW':_0x44e51e(0x9e),'SoPLm':_0x44e51e(0xbf),'fvhHc':_0x44e51e(0xb1),'jkvYk':'autoscaler-role-creation.yaml','VfsyX':_0x44e51e(0xbc),'PoswM':function(_0x139b54,_0x436704,_0x5d2a7e,_0x772de8){return _0x139b54(_0x436704,_0x5d2a7e,_0x772de8);},'YqTVd':_0x44e51e(0xab),'MgJDh':_0x44e51e(0xc7),'WzuPK':'CAPABILITY_NAMED_IAM','wDnCa':_0x44e51e(0xcc)},_0x1503a0=COMMON_HST_TAGS,_0x3c527a={};_0x3c527a[_0x44e51e(0xb8)]=_0x45613f['gPacJ'],_0x3c527a['Value']=_0x1130af,_0x1503a0[_0x44e51e(0xaa)](_0x3c527a),_0x1503a0[_0x44e51e(0xaa)]({'Key':_0x45613f[_0x44e51e(0xb9)],'Value':new Date()['valueOf']()['toString']()});const _0x41eb8d={};_0x41eb8d[_0x44e51e(0xa3)]=_0x45613f[_0x44e51e(0xac)];const _0x7003f8=new AWS['CloudFormation'](_0x41eb8d),_0x4c7add=await fs['readFileAsync'](path[_0x44e51e(0xa1)](__dirname,'..',_0x45613f['fvhHc'],_0x45613f[_0x44e51e(0xb6)]),_0x45613f[_0x44e51e(0xb2)]),_0x549755={};_0x549755[_0x44e51e(0xbd)]=CLOUDFORMATION_SCHEMA;const _0x58765c=yaml[_0x44e51e(0xc8)](_0x4c7add,_0x549755);_0x45613f[_0x44e51e(0xb5)](addAutoscalerTags,_0x58765c,_0x1130af,_0x1503a0);const _0x494b90=JSON['stringify'](_0x58765c),_0x4a0dee={};_0x4a0dee[_0x44e51e(0xc4)]=CLUSTER_AUTOSCALER_STACK_NAME,_0x4a0dee[_0x44e51e(0xcd)]=_0x45613f[_0x44e51e(0xb4)],_0x4a0dee['TemplateBody']=_0x494b90,_0x4a0dee[_0x44e51e(0xc5)]=[{'ParameterKey':_0x45613f[_0x44e51e(0x9f)],'ParameterValue':_0x1130af}],_0x4a0dee[_0x44e51e(0xb3)]=[_0x45613f['WzuPK']],_0x4a0dee[_0x44e51e(0xa9)]=_0x1503a0;const _0x156034=_0x4a0dee,_0x316a25=await _0x7003f8['createStack'](_0x156034)['promise']();logger[_0x44e51e(0xc2)]('Waiting\x20for\x20CloudFormation\x20stack\x20to\x20complete');const _0x3e2b9c={};return _0x3e2b9c[_0x44e51e(0xc4)]=_0x316a25[_0x44e51e(0xba)],_0x7003f8[_0x44e51e(0xa4)](_0x45613f[_0x44e51e(0x9d)],_0x3e2b9c)[_0x44e51e(0xb0)]();};