browserstack-node-sdk 1.34.3 → 1.34.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x3f300f=a3_0x5210;(function(_0x3d9b86,_0x50e719){const _0x42e099=a3_0x5210,_0xc93939=_0x3d9b86();while(!![]){try{const _0x5673c7=-parseInt(_0x42e099(0x241))/0x1+parseInt(_0x42e099(0x1be))/0x2+parseInt(_0x42e099(0x2ba))/0x3+parseInt(_0x42e099(0x197))/0x4+-parseInt(_0x42e099(0x19c))/0x5*(-parseInt(_0x42e099(0x28e))/0x6)+-parseInt(_0x42e099(0x178))/0x7+-parseInt(_0x42e099(0x18a))/0x8;if(_0x5673c7===_0x50e719)break;else _0xc93939['push'](_0xc93939['shift']());}catch(_0x2917f1){_0xc93939['push'](_0xc93939['shift']());}}}(a3_0x4ae5,0x4f619));const fs=require('fs'),path=require(a3_0x3f300f(0x199)),got=require(a3_0x3f300f(0x1ef)),util=require(a3_0x3f300f(0x28b)),cp=require('child_process'),{google}=require('googleapis'),compute=require(a3_0x3f300f(0x19d)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x3f300f(0x1d1))['v3'],{logger}=require(a3_0x3f300f(0x1de)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require(a3_0x3f300f(0x29f)),{deleteRoutingDeps,deleteAgent}=require(a3_0x3f300f(0x1e2)),{inputConfirmation,closeInput}=require(a3_0x3f300f(0x261)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x3f300f(0x2b5));class GoogleCloudProvider extends CloudProvider{constructor(_0xeb246e,_0x19e8e7,_0x462e76,_0x5361b8){const _0x120c50=a3_0x3f300f,_0x313037={};_0x313037['TKVUy']=_0x120c50(0x177),_0x313037[_0x120c50(0x2aa)]=_0x120c50(0x24d),_0x313037[_0x120c50(0x243)]=_0x120c50(0x2a2);const _0x30301b=_0x313037,_0x2030de=_0x30301b[_0x120c50(0x2b7)][_0x120c50(0x180)]('|');let _0x453b5e=0x0;while(!![]){switch(_0x2030de[_0x453b5e++]){case'0':this[_0x120c50(0x272)]=_0x30301b[_0x120c50(0x2aa)];continue;case'1':this[_0x120c50(0x2bc)]=null;continue;case'2':this[_0x120c50(0x1a0)]=null;continue;case'3':this[_0x120c50(0x19e)]=null;continue;case'4':this[_0x120c50(0x1ad)]=null;continue;case'5':super(GCP,_0xeb246e,_0x19e8e7,_0x462e76,_0x5361b8);continue;case'6':this[_0x120c50(0x282)]=null;continue;case'7':this[_0x120c50(0x1e7)]=_0x30301b[_0x120c50(0x243)];continue;case'8':this['resourcemanagerClient']=null;continue;}break;}}async[a3_0x3f300f(0x284)](){const _0x37b7bd=a3_0x3f300f;this[_0x37b7bd(0x2c6)](this[_0x37b7bd(0x275)]);}async[a3_0x3f300f(0x1e8)](){const _0x56bfd5=a3_0x3f300f;await super[_0x56bfd5(0x1e8)]();const _0x1410ae=this[_0x56bfd5(0x282)],_0x8d8460={};_0x8d8460[_0x56bfd5(0x27d)]=_0x1410ae,this[_0x56bfd5(0x2bc)]=new container['v1'][(_0x56bfd5(0x166))](_0x8d8460);const _0x11af6b={};_0x11af6b[_0x56bfd5(0x27d)]=_0x1410ae,this[_0x56bfd5(0x1a0)]=new compute['v1'][(_0x56bfd5(0x23c))](_0x11af6b);const _0x54b4dc={};return _0x54b4dc['keyFile']=_0x1410ae,this[_0x56bfd5(0x19f)]=new ProjectsClient(_0x54b4dc),this[_0x56bfd5(0x19e)]=google[_0x56bfd5(0x26a)]('v1'),this;}async[a3_0x3f300f(0x1b7)](_0x807405,_0x2b572c){const _0x36a127=a3_0x3f300f,_0x3ffe9a={'vOPMK':function(_0x45059f,_0x48a12a){return _0x45059f(_0x48a12a);},'QsuFv':_0x36a127(0x1d0),'ukPuO':function(_0x26deca){return _0x26deca();},'ovoCf':_0x36a127(0x18f)},_0x10f0fb=await _0x3ffe9a[_0x36a127(0x269)](_0x807405,_0x3ffe9a[_0x36a127(0x246)]);let _0x16edb3=await fs[_0x36a127(0x273)](_0x10f0fb);_0x16edb3=_0x16edb3[_0x36a127(0x2ab)]();const _0x3c1613=_0x3ffe9a[_0x36a127(0x182)](getDirForConfig),_0x2b6f69=path[_0x36a127(0x226)](_0x3c1613,_0x3ffe9a[_0x36a127(0x1db)]);fs[_0x36a127(0x1e3)](_0x2b6f69,_0x16edb3),this[_0x36a127(0x282)]=_0x2b6f69;const _0x1c4548={};return _0x1c4548['keyFile']=_0x2b6f69,_0x2b572c[_0x36a127(0x1d7)][GCP]=_0x1c4548,_0x16edb3=JSON[_0x36a127(0x253)](_0x16edb3),this[_0x36a127(0x1ad)]=_0x16edb3['project_id'],_0x2b572c;}async[a3_0x3f300f(0x23a)](_0x51e4a8){const _0x182e8e=a3_0x3f300f;this[_0x182e8e(0x282)]=_0x51e4a8[this[_0x182e8e(0x173)]][_0x182e8e(0x27d)];let _0x3587d5=await fs[_0x182e8e(0x273)](this[_0x182e8e(0x282)]);_0x3587d5=JSON[_0x182e8e(0x253)](_0x3587d5),this['projectId']=_0x3587d5['project_id'];}[a3_0x3f300f(0x1c4)](_0x5e24bf){const _0x454df1=a3_0x3f300f;return _0x5e24bf[_0x454df1(0x17a)][_0x454df1(0x1df)][_0x454df1(0x245)][0x0]['ip'];}async[a3_0x3f300f(0x196)](){const _0x38e0ad=a3_0x3f300f,_0x5101b9={};_0x5101b9[_0x38e0ad(0x258)]=_0x38e0ad(0x1ce),_0x5101b9[_0x38e0ad(0x1a6)]=_0x38e0ad(0x1f6),_0x5101b9[_0x38e0ad(0x264)]=function(_0x426b54,_0x1c665a){return _0x426b54===_0x1c665a;},_0x5101b9['uqoKF']='VxJUb',_0x5101b9[_0x38e0ad(0x2c7)]=_0x38e0ad(0x1c8),_0x5101b9[_0x38e0ad(0x25b)]=function(_0x34f482,_0x5012ae){return _0x34f482!==_0x5012ae;},_0x5101b9['qlrWa']=_0x38e0ad(0x25e),_0x5101b9[_0x38e0ad(0x27b)]='BjzGb',_0x5101b9['tZCtl']=function(_0x32741c,_0x239f93){return _0x32741c===_0x239f93;},_0x5101b9[_0x38e0ad(0x172)]='browserstack',_0x5101b9[_0x38e0ad(0x268)]=_0x38e0ad(0x18c);const _0x43586e=_0x5101b9;try{if(_0x43586e[_0x38e0ad(0x264)](_0x43586e[_0x38e0ad(0x198)],_0x43586e[_0x38e0ad(0x2c7)])){_0x3d3e9d['info'](_0x43586e[_0x38e0ad(0x258)]);throw _0x5cd9ce;}else{const _0x405dbd=await this[_0x38e0ad(0x294)]();if(_0x405dbd[0x0]?.[_0x38e0ad(0x281)]?.[_0x38e0ad(0x2ae)]){if(_0x43586e['dpLhf'](_0x43586e[_0x38e0ad(0x2c5)],_0x43586e['VspDS'])){const _0x1bb217=_0x405dbd[0x0]?.['resourceLabels']?.[_0x38e0ad(0x2ae)];return _0x1bb217&&_0x43586e[_0x38e0ad(0x230)](_0x1bb217[_0x38e0ad(0x26c)](),_0x43586e[_0x38e0ad(0x172)]);}else _0x591274[_0x38e0ad(0x20e)](_0x43586e[_0x38e0ad(0x1a6)]),_0x5bf908[_0x38e0ad(0x1e1)](0x1);}}}catch(_0x4f5c06){return _0x43586e[_0x38e0ad(0x230)](_0x43586e[_0x38e0ad(0x268)],_0x43586e[_0x38e0ad(0x268)])?![]:!![];}return![];}async[a3_0x3f300f(0x16c)](){const _0x2df545=a3_0x3f300f,_0x2eceb6={'nCffD':function(_0x546f57,_0x3b79bd){return _0x546f57===_0x3b79bd;},'WIfWz':_0x2df545(0x225),'rpYpq':function(_0x1c93eb,_0x1247f0){return _0x1c93eb-_0x1247f0;},'SWwQO':_0x2df545(0x218),'KtOpf':'gcpresources','fIAdQ':_0x2df545(0x186),'QEBIm':_0x2df545(0x228),'dDxPh':function(_0x319d04,_0x2a61bb){return _0x319d04!==_0x2a61bb;},'SbCmy':_0x2df545(0x1bf),'BzHUF':_0x2df545(0x28f),'mRRZn':'aVaWj','GuwRZ':_0x2df545(0x2b2),'hbSbQ':'FpcWu','ZtRah':'ahJFt','aUzGx':'XqWPy','KzCbS':function(_0x2406a4,_0x56f978){return _0x2406a4!==_0x56f978;},'ShAUr':_0x2df545(0x260),'zvRCt':function(_0x396789,_0x200dde){return _0x396789>_0x200dde;},'VDgft':function(_0x101864,_0xb11800){return _0x101864===_0xb11800;},'dAEns':_0x2df545(0x20f),'Bzccy':'MqWzy','otfNK':function(_0x1dce65,_0x1e6c7c){return _0x1dce65<_0x1e6c7c;},'rmDII':_0x2df545(0x22c),'oruQd':'bkRnI','GjTnz':function(_0x765f33,_0x44a5d5){return _0x765f33+_0x44a5d5;},'mQwiO':function(_0x2e37f9,_0xa17198){return _0x2e37f9(_0xa17198);},'WCJfP':_0x2df545(0x1a5),'pEnuR':function(_0x277794,_0x27009a){return _0x277794(_0x27009a);},'uvCcK':function(_0x3164c9,_0x24ebe5){return _0x3164c9<=_0x24ebe5;},'ILJOx':function(_0x2c567a,_0x340993){return _0x2c567a>_0x340993;},'fXsjA':_0x2df545(0x1b3),'nPwZC':_0x2df545(0x1f6),'GtueH':function(_0x55181d){return _0x55181d();},'IXVMq':function(_0x3b534b,_0x299a0f){return _0x3b534b-_0x299a0f;},'dTVkt':function(_0x11f60d,_0x38ec30){return _0x11f60d===_0x38ec30;},'oXdhB':_0x2df545(0x185),'fEhUv':'Lzhzr'};this[_0x2df545(0x220)]();let _0x579cd3=await fs[_0x2df545(0x273)](path[_0x2df545(0x226)](__dirname,'..',_0x2eceb6[_0x2df545(0x18d)],_0x2eceb6['KtOpf'],_0x2eceb6[_0x2df545(0x168)]),_0x2eceb6[_0x2df545(0x29e)]);_0x579cd3=JSON[_0x2df545(0x253)](_0x579cd3);let _0x454ac7=[global_registry[_0x2df545(0x1d3)]];if(_0x2eceb6[_0x2df545(0x22d)](_0x579cd3[global_registry['clusterRegion']],undefined)){if(_0x2eceb6['dDxPh'](_0x2eceb6['SbCmy'],_0x2eceb6['BzHUF']))_0x454ac7=_0x454ac7[_0x2df545(0x19a)](_0x579cd3[global_registry[_0x2df545(0x1d3)]]);else return![];}const _0x40b85c=[];for await(const _0x56d52e of _0x454ac7){if(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6['mRRZn'],_0x2eceb6[_0x2df545(0x191)])){const _0x3fffed={};_0x3fffed[_0x2df545(0x21e)]=_0x2df545(0x1c0)+this[_0x2df545(0x1ad)]+_0x2df545(0x1d9)+_0x56d52e;const _0x1469e7=_0x3fffed,_0x3f8108=await this[_0x2df545(0x2bc)][_0x2df545(0x2a4)](_0x1469e7);for(const _0x451acd of _0x3f8108[0x0]['clusters']){if(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6[_0x2df545(0x1f4)],_0x2eceb6[_0x2df545(0x239)]))for(const _0x27e289 of _0x314cac[_0x2df545(0x1d2)]['accounts']){if(_0x2eceb6['nCffD'](_0x27e289?.['name'],_0x2df545(0x1c0)+this[_0x2df545(0x1ad)]+_0x2df545(0x2b8)+this[_0x2df545(0x272)]+'@'+this[_0x2df545(0x1ad)]+_0x2df545(0x1ff)))return!![];}else _0x2eceb6[_0x2df545(0x23b)](_0x451acd[_0x2df545(0x2ad)],this[_0x2df545(0x29b)])&&(_0x2eceb6[_0x2df545(0x22d)](_0x2eceb6[_0x2df545(0x270)],_0x2eceb6[_0x2df545(0x270)])?_0x287106[_0x2df545(0x1f2)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x2df545(0x29b)]+_0x2df545(0x280)+_0x5e2880[_0x2df545(0x1d3)]+_0x2df545(0x244)):_0x40b85c[_0x2df545(0x283)](_0x56d52e));}}else return[!![],_0xa7645d];}const _0x832e95=_0x40b85c['length'];if(_0x2eceb6[_0x2df545(0x23b)](_0x832e95,0x1)){if(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6[_0x2df545(0x290)],_0x2eceb6[_0x2df545(0x290)]))return _0x2eceb6[_0x2df545(0x181)](global_registry['clusterRegion'],_0x40b85c[0x0])&&(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6[_0x2df545(0x1e0)],_0x2eceb6[_0x2df545(0x1e0)])?(global_registry[_0x2df545(0x1d3)]=_0x40b85c[0x0],this[_0x2df545(0x16e)]()):_0x24c0e5[_0x2df545(0x293)](_0x2eceb6[_0x2df545(0x242)])),!![];else{const _0x1c4acf=_0x2df545(0x262)+this[_0x2df545(0x1ad)]+_0x2df545(0x1bb)+_0x1968d1['clusterRegion']+_0x2df545(0x274)+_0xb3421a[0x0];if(_0x2eceb6[_0x2df545(0x23b)](_0x1c4acf,_0x5e38f5))return[!![],_0xc3d90b];}}else{if(_0x2eceb6[_0x2df545(0x15f)](_0x832e95,0x1)){if(_0x2eceb6[_0x2df545(0x287)](_0x2eceb6[_0x2df545(0x2a9)],_0x2eceb6[_0x2df545(0x2c4)]))_0x2eceb6[_0x2df545(0x23b)](_0x2cb52f[_0x2df545(0x2ad)],this[_0x2df545(0x29b)])&&_0x5b3108[_0x2df545(0x283)](_0x28a8da);else{console[_0x2df545(0x271)](_0x2df545(0x2bb)+this[_0x2df545(0x29b)]+_0x2df545(0x1f0));for(let _0x1fe338=0x0;_0x2eceb6[_0x2df545(0x235)](_0x1fe338,_0x832e95);_0x1fe338+=0x1){_0x2eceb6['KzCbS'](_0x2eceb6[_0x2df545(0x1aa)],_0x2eceb6[_0x2df545(0x25d)])?console[_0x2df545(0x271)]('['+_0x2eceb6[_0x2df545(0x24c)](_0x1fe338,0x1)+']\x20'+_0x40b85c[_0x1fe338]):(_0x39af23['clusterRegion']=_0x27f87b[_0x2eceb6[_0x2df545(0x1a4)](_0x157041,0x1)],this[_0x2df545(0x16e)]());}const _0x5ac9a2=await _0x2eceb6[_0x2df545(0x29a)](inputConfirmation,_0x2eceb6[_0x2df545(0x285)]),_0x364a09=_0x2eceb6[_0x2df545(0x23e)](Number,_0x5ac9a2);(_0x2eceb6['pEnuR'](isNaN,_0x364a09)||_0x2eceb6[_0x2df545(0x249)](_0x364a09,0x0)||_0x2eceb6['ILJOx'](_0x364a09,_0x832e95))&&(_0x2eceb6['KzCbS'](_0x2eceb6['fXsjA'],_0x2eceb6[_0x2df545(0x1a9)])?this[_0x2df545(0x2c6)](this[_0x2df545(0x275)]):(console[_0x2df545(0x20e)](_0x2eceb6[_0x2df545(0x1dd)]),process[_0x2df545(0x1e1)](0x1)));_0x2eceb6[_0x2df545(0x28c)](closeInput),logger[_0x2df545(0x293)]('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x40b85c[_0x2eceb6[_0x2df545(0x16d)](_0x364a09,0x1)]);if(_0x2eceb6[_0x2df545(0x22d)](global_registry[_0x2df545(0x1d3)],_0x40b85c[_0x2eceb6['rpYpq'](_0x364a09,0x1)])){if(_0x2eceb6['dTVkt'](_0x2eceb6[_0x2df545(0x276)],_0x2eceb6['fEhUv']))return![];else global_registry[_0x2df545(0x1d3)]=_0x40b85c[_0x2eceb6[_0x2df545(0x16d)](_0x364a09,0x1)],this['updateClusterRegion']();}return!![];}}}return![];}async['getClusterInfo'](){const _0x1c75b8=a3_0x3f300f,_0x22763b=await this[_0x1c75b8(0x2bc)]['getCluster']({'name':_0x1c75b8(0x1c0)+this[_0x1c75b8(0x1ad)]+_0x1c75b8(0x1d9)+global_registry[_0x1c75b8(0x1d3)]+_0x1c75b8(0x17d)+this[_0x1c75b8(0x29b)]});return _0x22763b;}async[a3_0x3f300f(0x2be)](){const _0xa199db=a3_0x3f300f,_0x2bacb3={};_0x2bacb3[_0xa199db(0x193)]=_0xa199db(0x1f8),_0x2bacb3['DEFEx']=_0xa199db(0x218),_0x2bacb3['lAxFT']=_0xa199db(0x167),_0x2bacb3[_0xa199db(0x1c5)]=_0xa199db(0x1cd);const _0x5588c8=_0x2bacb3;cp[_0xa199db(0x1f2)](_0x5588c8[_0xa199db(0x193)]),cp['exec'](_0xa199db(0x2b9)+this[_0xa199db(0x282)]);const _0xb37622=await this[_0xa199db(0x294)](),_0x3e655d=_0xa199db(0x2c3)+this[_0xa199db(0x1ad)]+'_'+global_registry[_0xa199db(0x1d3)]+'_'+this[_0xa199db(0x29b)];let _0x105094=await fs[_0xa199db(0x273)](path[_0xa199db(0x226)](__dirname,'..',_0x5588c8[_0xa199db(0x1e5)],_0x5588c8[_0xa199db(0x234)],_0x5588c8[_0xa199db(0x1c5)]));return _0x105094=_0x105094[_0xa199db(0x2ab)](),_0x105094=_0x105094[_0xa199db(0x215)](/<CLUSTER_NAME>/g,_0x3e655d),_0x105094=_0x105094[_0xa199db(0x215)](/<CLUSTER_URL>/g,'https://'+_0xb37622[0x0][_0xa199db(0x206)]),_0x105094=_0x105094[_0xa199db(0x215)](/<CERTIFICATE_DATA>/g,_0xb37622[0x0]['masterAuth'][_0xa199db(0x24e)]),_0x105094;}async[a3_0x3f300f(0x160)](){const _0x17fc3a=a3_0x3f300f,_0x1d2631={};_0x1d2631[_0x17fc3a(0x19b)]=function(_0x19be84,_0x58628b){return _0x19be84+_0x58628b;},_0x1d2631[_0x17fc3a(0x238)]=function(_0x52d7ee,_0x1689e4){return _0x52d7ee!==_0x1689e4;},_0x1d2631[_0x17fc3a(0x171)]='https://www.googleapis.com/auth/cloud-platform',_0x1d2631[_0x17fc3a(0x2b6)]=function(_0x78a863,_0x5aa073){return _0x78a863===_0x5aa073;},_0x1d2631[_0x17fc3a(0x24b)]=_0x17fc3a(0x203),_0x1d2631[_0x17fc3a(0x163)]='VdZCe',_0x1d2631['yplxM']=_0x17fc3a(0x16f),_0x1d2631[_0x17fc3a(0x1ae)]=function(_0x3b2066,_0x2743d0){return _0x3b2066===_0x2743d0;},_0x1d2631['kpFym']=function(_0x126d62,_0x530328){return _0x126d62!==_0x530328;},_0x1d2631['VvQSb']=_0x17fc3a(0x1a8),_0x1d2631[_0x17fc3a(0x291)]=_0x17fc3a(0x187);const _0x5445b7=_0x1d2631,_0x3453e8={};_0x3453e8['scopes']=[_0x5445b7['MkwcY']],_0x3453e8[_0x17fc3a(0x27d)]=this[_0x17fc3a(0x282)];const _0x5ccf80=await google['auth']['getClient'](_0x3453e8),_0x134b76=await this[_0x17fc3a(0x19e)][_0x17fc3a(0x221)][_0x17fc3a(0x1f9)][_0x17fc3a(0x188)]({'name':'projects/'+this[_0x17fc3a(0x1ad)],'auth':_0x5ccf80});if(_0x134b76?.[_0x17fc3a(0x1d2)]?.[_0x17fc3a(0x21d)]){if(_0x5445b7[_0x17fc3a(0x2b6)](_0x5445b7[_0x17fc3a(0x24b)],_0x5445b7[_0x17fc3a(0x163)]))_0x1bf49a['log']('['+_0x5445b7[_0x17fc3a(0x19b)](_0x5b543d,0x1)+']\x20'+_0x2d9f37[_0x54a1b1]);else for(const _0x115c2e of _0x134b76[_0x17fc3a(0x1d2)][_0x17fc3a(0x21d)]){if(_0x5445b7[_0x17fc3a(0x2b6)](_0x5445b7[_0x17fc3a(0x299)],_0x5445b7[_0x17fc3a(0x299)])){if(_0x5445b7['pJsmq'](_0x115c2e?.[_0x17fc3a(0x2ad)],_0x17fc3a(0x1c0)+this[_0x17fc3a(0x1ad)]+'/serviceAccounts/'+this[_0x17fc3a(0x272)]+'@'+this['projectId']+'.iam.gserviceaccount.com'))return _0x5445b7[_0x17fc3a(0x20a)](_0x5445b7['VvQSb'],_0x5445b7[_0x17fc3a(0x291)])?!![]:(_0x5445b7[_0x17fc3a(0x238)](_0x5f3758[_0x17fc3a(0x1d3)],_0x2978ba[0x0])&&(_0x9775b8[_0x17fc3a(0x1d3)]=_0x5cdffa[0x0],this[_0x17fc3a(0x16e)]()),!![]);}else return _0x491872['status']['loadBalancer'][_0x17fc3a(0x245)][0x0]['ip'];}}return![];}async[a3_0x3f300f(0x213)](){const _0x4eba6b=a3_0x3f300f,_0x57e27b={};_0x57e27b[_0x4eba6b(0x1fd)]=function(_0x2d9242,_0x576e17){return _0x2d9242===_0x576e17;},_0x57e27b[_0x4eba6b(0x232)]=_0x4eba6b(0x23d),_0x57e27b[_0x4eba6b(0x1f7)]=function(_0x7374fa,_0x23f6aa){return _0x7374fa!==_0x23f6aa;},_0x57e27b[_0x4eba6b(0x1da)]=_0x4eba6b(0x1fc),_0x57e27b[_0x4eba6b(0x1a3)]=_0x4eba6b(0x279),_0x57e27b[_0x4eba6b(0x22b)]=_0x4eba6b(0x165),_0x57e27b[_0x4eba6b(0x1e9)]=_0x4eba6b(0x26d),_0x57e27b['zlJxO']=_0x4eba6b(0x219),_0x57e27b['CqMeN']=_0x4eba6b(0x1ec),_0x57e27b[_0x4eba6b(0x217)]=_0x4eba6b(0x1ee),_0x57e27b[_0x4eba6b(0x212)]=_0x4eba6b(0x2b4),_0x57e27b[_0x4eba6b(0x21c)]=_0x4eba6b(0x297),_0x57e27b['VZqPL']=_0x4eba6b(0x21a),_0x57e27b[_0x4eba6b(0x29c)]=_0x4eba6b(0x278),_0x57e27b[_0x4eba6b(0x164)]=_0x4eba6b(0x1b5),_0x57e27b[_0x4eba6b(0x192)]=_0x4eba6b(0x2a5),_0x57e27b[_0x4eba6b(0x202)]='storage.buckets.list',_0x57e27b['tvsnW']=_0x4eba6b(0x162),_0x57e27b[_0x4eba6b(0x288)]=_0x4eba6b(0x210),_0x57e27b[_0x4eba6b(0x28d)]=_0x4eba6b(0x16a),_0x57e27b['xHGzx']=_0x4eba6b(0x26b),_0x57e27b['xUnpP']=_0x4eba6b(0x1bc),_0x57e27b['MIdai']=_0x4eba6b(0x259),_0x57e27b[_0x4eba6b(0x1eb)]=_0x4eba6b(0x190),_0x57e27b[_0x4eba6b(0x18b)]=_0x4eba6b(0x1cb),_0x57e27b[_0x4eba6b(0x1ac)]='storage.objects.create',_0x57e27b[_0x4eba6b(0x1f5)]='storage.objects.delete',_0x57e27b['SmHjW']=_0x4eba6b(0x229),_0x57e27b['TmjeV']='storage.objects.getIamPolicy',_0x57e27b[_0x4eba6b(0x24a)]=_0x4eba6b(0x255),_0x57e27b['GAqHA']=_0x4eba6b(0x227),_0x57e27b[_0x4eba6b(0x236)]=_0x4eba6b(0x2a3),_0x57e27b[_0x4eba6b(0x233)]=_0x4eba6b(0x240),_0x57e27b[_0x4eba6b(0x205)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x20203c=_0x57e27b,_0xe4b2e9=await this['checkServiceAccount']();if(_0xe4b2e9){if(_0x20203c[_0x4eba6b(0x1f7)](_0x20203c[_0x4eba6b(0x1da)],_0x20203c[_0x4eba6b(0x1a3)])){logger['info'](_0x20203c['wPflb']);return;}else{const _0x4e6328=_0x400879[0x0]?.['resourceLabels']?.['managedby'];return _0x4e6328&&_0x20203c[_0x4eba6b(0x1fd)](_0x4e6328['toLowerCase'](),_0x20203c[_0x4eba6b(0x232)]);}}logger['info'](_0x20203c[_0x4eba6b(0x1e9)]);const _0x1d01ec={};_0x1d01ec[_0x4eba6b(0x201)]=[_0x20203c[_0x4eba6b(0x1b4)]],_0x1d01ec[_0x4eba6b(0x27d)]=this[_0x4eba6b(0x282)];const _0x4513b3=await google['auth']['getClient'](_0x1d01ec),_0x45b0d6={};_0x45b0d6[_0x4eba6b(0x250)]=[_0x20203c[_0x4eba6b(0x252)],_0x20203c[_0x4eba6b(0x217)],_0x20203c['DWJPm'],_0x20203c['gvxQK'],_0x20203c[_0x4eba6b(0x22f)],_0x20203c[_0x4eba6b(0x29c)],_0x20203c[_0x4eba6b(0x164)],_0x20203c[_0x4eba6b(0x192)],_0x20203c[_0x4eba6b(0x202)],_0x20203c[_0x4eba6b(0x247)],_0x20203c['BHMbH'],_0x20203c[_0x4eba6b(0x28d)],_0x20203c[_0x4eba6b(0x209)],_0x20203c[_0x4eba6b(0x2bf)],_0x20203c['MIdai'],_0x20203c[_0x4eba6b(0x1eb)],_0x20203c[_0x4eba6b(0x18b)],_0x20203c[_0x4eba6b(0x1ac)],_0x20203c[_0x4eba6b(0x1f5)],_0x20203c['SmHjW'],_0x20203c[_0x4eba6b(0x1cc)],_0x20203c[_0x4eba6b(0x24a)],_0x20203c[_0x4eba6b(0x1e6)],_0x20203c[_0x4eba6b(0x236)]],_0x45b0d6[_0x4eba6b(0x25c)]=_0x20203c[_0x4eba6b(0x233)],await this[_0x4eba6b(0x19e)][_0x4eba6b(0x17f)]['roles'][_0x4eba6b(0x200)]({'parent':_0x4eba6b(0x1c0)+this[_0x4eba6b(0x1ad)],'requestBody':{'role':_0x45b0d6,'roleId':this['customRoleName']},'auth':_0x4513b3});const _0x2dda4a={};_0x2dda4a[_0x4eba6b(0x2ad)]=_0x4eba6b(0x1c0)+this[_0x4eba6b(0x1ad)],_0x2dda4a['requestBody']={},_0x2dda4a[_0x4eba6b(0x237)]=_0x4513b3,_0x2dda4a['requestBody']['accountId']=this[_0x4eba6b(0x272)];const _0x1b327a=_0x2dda4a;await this['iamClient'][_0x4eba6b(0x221)][_0x4eba6b(0x1f9)][_0x4eba6b(0x200)](_0x1b327a);let _0x502f93=await this[_0x4eba6b(0x19f)]['getIamPolicy']({'resource':_0x4eba6b(0x1c0)+this[_0x4eba6b(0x1ad)]});_0x502f93=_0x502f93[0x0]['bindings'];const _0x452619={};_0x452619[_0x4eba6b(0x170)]=_0x4eba6b(0x1c0)+this['projectId']+_0x4eba6b(0x1b0)+this[_0x4eba6b(0x1e7)],_0x452619[_0x4eba6b(0x204)]=[_0x4eba6b(0x296)+this[_0x4eba6b(0x272)]+'@'+this[_0x4eba6b(0x1ad)]+_0x4eba6b(0x1ff)],_0x502f93[_0x4eba6b(0x283)](_0x452619);const _0x1cf6c3={};_0x1cf6c3[_0x4eba6b(0x222)]=_0x502f93,await this[_0x4eba6b(0x19f)][_0x4eba6b(0x1ea)]({'resource':'projects/'+this[_0x4eba6b(0x1ad)],'policy':_0x1cf6c3}),logger['info'](_0x20203c[_0x4eba6b(0x205)]);}async['setupNewCluster'](_0x1d7136=a3_0x3f300f(0x21b),_0x6cd5df=[a3_0x3f300f(0x21b)]){const _0x167496=a3_0x3f300f,_0x47f62e={};_0x47f62e[_0x167496(0x28a)]=_0x167496(0x1ca),_0x47f62e[_0x167496(0x2a8)]=_0x167496(0x2b0),_0x47f62e['zfIuU']=_0x167496(0x267);const _0x45f4a6=_0x47f62e,_0x15e57f=_0x45f4a6['oAArm'][_0x167496(0x180)]('|');let _0x41371c=0x0;while(!![]){switch(_0x15e57f[_0x41371c++]){case'0':const _0xee34c7={};_0xee34c7[_0x167496(0x207)]=WS_EVENTS['LOG'],_0xee34c7[_0x167496(0x1c7)]=_0x45f4a6[_0x167496(0x2a8)],this['webSocketUtils'][_0x167496(0x1b6)](this[_0x167496(0x275)],_0xee34c7);continue;case'1':await this[_0x167496(0x292)](_0x1d7136,_0x6cd5df);continue;case'2':await this['updateWindowsNodeGroup']();continue;case'3':await this[_0x167496(0x213)]();continue;case'4':logger[_0x167496(0x293)](_0x45f4a6[_0x167496(0x223)]);continue;case'5':return!![];}break;}}async['createCluster'](_0x26efb3=a3_0x3f300f(0x21b),_0x55fe0b=[a3_0x3f300f(0x21b)]){const _0x298d7b=a3_0x3f300f,_0x271dd5={};_0x271dd5[_0x298d7b(0x2b1)]=function(_0x2b7475,_0x350959){return _0x2b7475===_0x350959;},_0x271dd5['Jlshj']=_0x298d7b(0x17e),_0x271dd5['ocVow']=_0x298d7b(0x1c2),_0x271dd5['OESWY']=_0x298d7b(0x248),_0x271dd5[_0x298d7b(0x1fe)]='templates',_0x271dd5['RAjXN']=_0x298d7b(0x167),_0x271dd5[_0x298d7b(0x25a)]=_0x298d7b(0x20c),_0x271dd5['SNJoJ']=_0x298d7b(0x228),_0x271dd5[_0x298d7b(0x1a7)]=_0x298d7b(0x186),_0x271dd5[_0x298d7b(0x179)]=function(_0x2b4ffd,_0x445c71){return _0x2b4ffd*_0x445c71;},_0x271dd5['siPEI']=function(_0x261b34,_0x5d46f5){return _0x261b34===_0x5d46f5;},_0x271dd5['HpwSo']=_0x298d7b(0x1c9),_0x271dd5[_0x298d7b(0x16b)]=_0x298d7b(0x27f),_0x271dd5[_0x298d7b(0x27a)]=function(_0x3911b3,_0x5a017c){return _0x3911b3!==_0x5a017c;},_0x271dd5['nqfGY']=_0x298d7b(0x1c3),_0x271dd5[_0x298d7b(0x161)]=_0x298d7b(0x211),_0x271dd5['eiaVU']=function(_0xe28883,_0x1dd0e2){return _0xe28883===_0x1dd0e2;},_0x271dd5[_0x298d7b(0x1a2)]=_0x298d7b(0x175),_0x271dd5[_0x298d7b(0x1d5)]=_0x298d7b(0x225);const _0x3848da=_0x271dd5;try{if(_0x3848da[_0x298d7b(0x2b1)](_0x3848da[_0x298d7b(0x15e)],_0x3848da['ocVow']))return!![];else{logger[_0x298d7b(0x293)](_0x3848da[_0x298d7b(0x22e)]);let _0x465875=await fs[_0x298d7b(0x273)](path[_0x298d7b(0x226)](__dirname,'..',_0x3848da[_0x298d7b(0x1fe)],_0x3848da[_0x298d7b(0x257)],_0x3848da[_0x298d7b(0x25a)]),_0x3848da[_0x298d7b(0x1f1)]);_0x465875=JSON[_0x298d7b(0x253)](_0x465875);let _0x261a76=await fs[_0x298d7b(0x273)](path[_0x298d7b(0x226)](__dirname,'..',_0x3848da[_0x298d7b(0x1fe)],_0x3848da[_0x298d7b(0x257)],_0x3848da[_0x298d7b(0x1a7)]),_0x3848da[_0x298d7b(0x1f1)]);_0x261a76=JSON['parse'](_0x261a76),_0x465875[_0x298d7b(0x2ad)]=this['clusterName'],_0x465875[_0x298d7b(0x208)][0x0][_0x298d7b(0x1d6)][_0x298d7b(0x216)]=global_registry[_0x298d7b(0x298)],_0x465875[_0x298d7b(0x208)][0x1]['config'][_0x298d7b(0x216)]=global_registry[_0x298d7b(0x298)],_0x465875[_0x298d7b(0x208)][0x0][_0x298d7b(0x1d6)][_0x298d7b(0x189)]=this['serviceAccountName']+'@'+this[_0x298d7b(0x1ad)]+_0x298d7b(0x1ff),_0x465875['nodePools'][0x1][_0x298d7b(0x1d6)][_0x298d7b(0x189)]=this[_0x298d7b(0x272)]+'@'+this[_0x298d7b(0x1ad)]+_0x298d7b(0x1ff),_0x465875[_0x298d7b(0x208)][0x0][_0x298d7b(0x194)][_0x298d7b(0x1a1)]=global_registry['minNodes'],_0x465875['nodePools'][0x1][_0x298d7b(0x194)][_0x298d7b(0x1a1)]=0x0,_0x465875['nodePools'][0x0]['autoscaling'][_0x298d7b(0x20b)]=global_registry[_0x298d7b(0x27c)],_0x465875['nodePools'][0x1][_0x298d7b(0x194)][_0x298d7b(0x20b)]=global_registry['maxNodes'],_0x465875[_0x298d7b(0x295)]=global_registry[_0x298d7b(0x1d3)],_0x465875[_0x298d7b(0x184)]=[_0x261a76[global_registry['clusterRegion']][0x0]],_0x465875[_0x298d7b(0x29d)]=_0x298d7b(0x1c0)+this[_0x298d7b(0x1ad)]+_0x298d7b(0x231)+_0x26efb3,_0x465875[_0x298d7b(0x266)]=_0x298d7b(0x1c0)+this[_0x298d7b(0x1ad)]+'/regions/'+global_registry[_0x298d7b(0x1d3)]+_0x298d7b(0x274)+_0x55fe0b[0x0];const _0x839d6d=await this[_0x298d7b(0x2bc)]['createCluster']({'cluster':_0x465875,'parent':'projects/'+this['projectId']+_0x298d7b(0x1d9)+global_registry[_0x298d7b(0x1d3)]});await this[_0x298d7b(0x174)][_0x298d7b(0x26e)](_0x3848da[_0x298d7b(0x179)](_0x3848da[_0x298d7b(0x179)](0x7,0x3c),0x3e8));}}catch(_0x1f0143){if(_0x3848da[_0x298d7b(0x20d)](_0x3848da['HpwSo'],_0x3848da[_0x298d7b(0x16b)]))_0x149697=_0x343330[_0x298d7b(0x19a)](_0x18efa7[_0x52756a[_0x298d7b(0x1d3)]]);else{const _0x4d0dbe=await this[_0x298d7b(0x16c)]();_0x4d0dbe?_0x3848da[_0x298d7b(0x27a)](_0x3848da[_0x298d7b(0x256)],_0x3848da[_0x298d7b(0x256)])?_0x2c719c['push'](_0x25c3bb):(logger['info'](_0x3848da[_0x298d7b(0x161)],_0x1f0143['stack']),await this[_0x298d7b(0x1b1)]()):_0x3848da[_0x298d7b(0x277)](_0x3848da[_0x298d7b(0x1a2)],_0x3848da['AtFBp'])?logger[_0x298d7b(0x293)](_0x3848da[_0x298d7b(0x1d5)]):_0x1e8b8d[_0x298d7b(0x183)][_0x298d7b(0x283)](_0x1d799c);throw _0x1f0143;}}}async[a3_0x3f300f(0x2c0)](){const _0x558156=a3_0x3f300f;cp[_0x558156(0x1f2)](_0x558156(0x1d8)+this['clusterName']+_0x558156(0x280)+global_registry[_0x558156(0x1d3)]+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x3f300f(0x1b1)](_0x35adc2,_0x5440eb){const _0x1c4a4d=a3_0x3f300f,_0x553459={'QdurW':function(_0x1adfa1,_0x11f4a6){return _0x1adfa1===_0x11f4a6;},'ATMBd':_0x1c4a4d(0x2a0),'KFUqc':function(_0x31c8bb,_0x48715a){return _0x31c8bb(_0x48715a);},'PoNIx':function(_0x2a51b4,_0xecc72a){return _0x2a51b4(_0xecc72a);},'PqkSR':_0x1c4a4d(0x1ba),'dQcEw':function(_0x573d36,_0xa18352){return _0x573d36===_0xa18352;},'ATZFa':_0x1c4a4d(0x2a7),'QYWGI':function(_0x20ea15,_0x1aa321){return _0x20ea15!==_0x1aa321;},'yjqRE':_0x1c4a4d(0x289),'ixjfL':'KweSs','lMmck':_0x1c4a4d(0x17b),'gAZax':function(_0x28bb8e,_0xccc000){return _0x28bb8e===_0xccc000;},'EFsee':_0x1c4a4d(0x1cf),'KEdlV':'FRIxd','cDMua':_0x1c4a4d(0x1ce)};try{if(_0x553459[_0x1c4a4d(0x1b8)](_0x553459[_0x1c4a4d(0x1fb)],_0x553459[_0x1c4a4d(0x1fb)])){await _0x553459['KFUqc'](deleteAgent,_0x35adc2),await _0x553459[_0x1c4a4d(0x1af)](deleteRoutingDeps,_0x35adc2),logger[_0x1c4a4d(0x293)](_0x1c4a4d(0x25f)+this['clusterName']);const _0x27a2d7=await this[_0x1c4a4d(0x2bc)]['deleteCluster']({'name':_0x1c4a4d(0x1c0)+this[_0x1c4a4d(0x1ad)]+'/locations/'+global_registry[_0x1c4a4d(0x1d3)]+'/clusters/'+this[_0x1c4a4d(0x29b)]});if(_0x553459[_0x1c4a4d(0x1b8)](_0x27a2d7[0x0]?.[_0x1c4a4d(0x17a)],_0x553459['PqkSR'])||_0x553459['dQcEw'](_0x27a2d7[0x0]?.[_0x1c4a4d(0x17a)],_0x553459[_0x1c4a4d(0x2af)]))return _0x553459['QYWGI'](_0x553459[_0x1c4a4d(0x263)],_0x553459['ixjfL'])?!![]:!![];logger[_0x1c4a4d(0x293)](_0x553459[_0x1c4a4d(0x2b3)]);}else return _0x4c4b95[_0x1c4a4d(0x20e)](_0x1c4a4d(0x214)+_0x5e39d2+_0x1c4a4d(0x2c1)+_0x409ba8),[![],[]];}catch(_0x18e6bf){if(_0x553459[_0x1c4a4d(0x2a6)](_0x553459['EFsee'],_0x553459[_0x1c4a4d(0x1fa)]))_0x347a9e[_0x1c4a4d(0x1d3)]=_0x2fc38e[0x0],this[_0x1c4a4d(0x16e)]();else{logger[_0x1c4a4d(0x293)](_0x553459[_0x1c4a4d(0x17c)]);throw _0x18e6bf;}}}async['isVPCPresent'](_0x541820){const _0xcd2009=a3_0x3f300f,_0x51d689={};_0x51d689[_0xcd2009(0x1ed)]=function(_0x139cb6,_0x400636){return _0x139cb6===_0x400636;},_0x51d689[_0xcd2009(0x1e4)]=_0xcd2009(0x165),_0x51d689[_0xcd2009(0x1bd)]=function(_0x5eeaa5,_0xcb7f51){return _0x5eeaa5!==_0xcb7f51;},_0x51d689[_0xcd2009(0x169)]='KhtiS',_0x51d689[_0xcd2009(0x254)]=function(_0x234ec7,_0x52ff21){return _0x234ec7>_0x52ff21;},_0x51d689[_0xcd2009(0x1c1)]=function(_0x484133,_0x3e8731){return _0x484133===_0x3e8731;},_0x51d689['jGego']=function(_0x4b300b,_0x392509){return _0x4b300b===_0x392509;},_0x51d689[_0xcd2009(0x1b2)]='RgaCf',_0x51d689[_0xcd2009(0x265)]=_0xcd2009(0x1ab);const _0x559748=_0x51d689;try{if(_0x559748[_0xcd2009(0x1bd)](_0x559748[_0xcd2009(0x169)],_0x559748[_0xcd2009(0x169)])){if(_0x559748[_0xcd2009(0x1ed)](_0x1a9de1?.['name'],_0xcd2009(0x1c0)+this[_0xcd2009(0x1ad)]+'/serviceAccounts/'+this[_0xcd2009(0x272)]+'@'+this['projectId']+_0xcd2009(0x1ff)))return!![];}else{const _0x13a656=await this['networkClient']['get']({'project':this['projectId'],'network':_0x541820});if(_0x559748['kYzJP'](_0x13a656[_0xcd2009(0x27e)],0x0)&&_0x559748['llFNu'](_0x13a656[0x0]['name'],_0x541820)){if(_0x559748[_0xcd2009(0x1c6)](_0x559748[_0xcd2009(0x1b2)],_0x559748['GTsnk'])){_0x327c22[_0xcd2009(0x293)](_0x559748[_0xcd2009(0x1e4)]);return;}else return!![];}}}catch(_0x45cd11){return![];}return![];}async['isSubnetsValid'](_0x50cd10,_0x400092){const _0x507990=a3_0x3f300f,_0x20bba8={};_0x20bba8[_0x507990(0x224)]=function(_0x4067a2,_0x5c2ed4){return _0x4067a2===_0x5c2ed4;};const _0x292fba=_0x20bba8;try{const _0xb4abce=await this[_0x507990(0x1a0)][_0x507990(0x2bd)]({'project':this[_0x507990(0x1ad)],'network':_0x400092});for(const _0x444866 of _0xb4abce[0x0][_0x507990(0x1b9)]){const _0x339466=_0x507990(0x262)+this[_0x507990(0x1ad)]+_0x507990(0x1bb)+global_registry[_0x507990(0x1d3)]+_0x507990(0x274)+_0x50cd10[0x0];if(_0x292fba[_0x507990(0x224)](_0x339466,_0x444866))return[!![],_0x50cd10];}}catch(_0x305025){return logger[_0x507990(0x20e)](_0x507990(0x214)+_0x50cd10+'.\x20Error:\x20'+_0x305025),[![],[]];}return[![],[]];}async[a3_0x3f300f(0x2c6)](){const _0x567ecf=a3_0x3f300f,_0x1dcc50=await this['networkClient'][_0x567ecf(0x188)]({'project':this['projectId']}),_0x4f1652={};_0x4f1652[_0x567ecf(0x1dc)]=global_registry[_0x567ecf(0x18e)],_0x4f1652[_0x567ecf(0x286)]=global_registry[_0x567ecf(0x21f)],_0x4f1652['cloudProvider']=GCP,_0x4f1652[_0x567ecf(0x183)]=[];const _0x1b6405=_0x4f1652;for(const _0x1e6c92 of _0x1dcc50){_0x1b6405[_0x567ecf(0x183)][_0x567ecf(0x283)](_0x1e6c92);}const _0x2f8bba={};_0x2f8bba[_0x567ecf(0x207)]=WS_EVENTS[_0x567ecf(0x2a1)],_0x2f8bba['message']=_0x1b6405,this[_0x567ecf(0x174)]['sendEventToBackend'](this[_0x567ecf(0x275)],_0x2f8bba);}async['updateClusterRegion'](){const _0x598644=a3_0x3f300f,_0x4d516a={'JZSiR':function(_0x3a4b00,_0x2899a0,_0x5f2093){return _0x3a4b00(_0x2899a0,_0x5f2093);},'yfqeg':_0x598644(0x195),'eIOFu':_0x598644(0x24f)},_0x3a5df5=_0x598644(0x176)+AG_API_URL+_0x598644(0x22a),_0x124079={};_0x124079[_0x598644(0x2ac)]=global_registry[_0x598644(0x1f3)];const _0x59494f={};_0x59494f[_0x598644(0x23f)]=global_registry['clusterRegion'];const _0x219c7e={'searchParams':_0x124079,'json':_0x59494f,'headers':_0x4d516a[_0x598644(0x2c2)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x598644(0x21f)]),'method':_0x4d516a[_0x598644(0x26f)],'responseType':_0x4d516a[_0x598644(0x251)],'throwHttpErrors':![]},_0x373bb8=await _0x4d516a[_0x598644(0x2c2)](got,_0x3a5df5,_0x219c7e);}}function a3_0x5210(_0x3a4b5e,_0x41003d){const _0x4ae566=a3_0x4ae5();return a3_0x5210=function(_0x5210f7,_0x102b7f){_0x5210f7=_0x5210f7-0x15e;let _0x3e8f78=_0x4ae566[_0x5210f7];return _0x3e8f78;},a3_0x5210(_0x3a4b5e,_0x41003d);}function a3_0x4ae5(){const _0x5cf423=['MkwcY','nNSSn','cloudProviderName','webSocketUtils','yKuiD','https://','5|1|2|8|3|6|4|7|0','2454942zVmnQx','YjsHu','status','Cluster\x20deletion\x20completed','cDMua','/clusters/','TBynE','organizations','split','KzCbS','ukPuO','vpcInfo','locations','XZqlc','regionmap.json','mFoWL','list','serviceAccount','3016888TVDIxQ','SRVgd','itqeW','SWwQO','bstackUsername','gcp_credentials.json','storage.multipartUploads.list','mRRZn','cFdxU','mljSG','autoscaling','PUT','isBrowserstackCluster','1006520DRSSQE','uqoKF','path','concat','KTmOw','109195aIFDwy','@google-cloud/compute','iamClient','resourcemanagerClient','networkClient','minNodeCount','AtFBp','dAiia','rpYpq','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','MnTgu','ddhoP','zBADb','fXsjA','rmDII','ZafaJ','yDeSX','projectId','pJsmq','PoNIx','/roles/','deleteCluster','bgcCA','xUOwr','zlJxO','storage.buckets.getIamPolicy','sendEventToBackend','getUserInput','QdurW','subnetworks','RUNNING','/regions/','storage.multipartUploads.abort','ygYKI','393960ogcyZl','rurrk','projects/','llFNu','Nppts','SAEnK','getGridHostname','XZiXc','jGego','message','btynS','bwGxU','0|4|3|1|2|5','storage.multipartUploads.listParts','TmjeV','KubeConfigTemplate.yaml','GKE\x20Cluster\x20deletion\x20failed','ogagR','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','@google-cloud/resource-manager','data','clusterRegion','GoogleCloudProvider','XJDjJ','config','cloudProvider','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','/locations/','VjloO','ovoCf','username','nPwZC','../config/logger','loadBalancer','ShAUr','exit','../utils/gridComponents','writeFileSync','xAcBc','DEFEx','GAqHA','customRoleName','init','dfeNL','setIamPolicy','PTOjc','iam.serviceAccounts.signBlob','SwkCT','storage.buckets.create','got','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','SNJoJ','execSync','gridProfileId','GuwRZ','GTZAR','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','kPBsD','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','serviceAccounts','KEdlV','ATMBd','miLmo','xksGw','wCRuX','.iam.gserviceaccount.com','create','scopes','NxVdw','iiupw','members','iUQmf','endpoint','type','nodePools','xHGzx','kpFym','maxNodeCount','gkecluster.json','siPEI','error','rurnZ','storage.buckets.listTagBindings','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','DWJPm','setupServiceAccount','Cannot\x20find\x20subnets\x20','replace','machineType','wIxNW','templates','https://www.googleapis.com/auth/cloud-platform','storage.buckets.deleteTagBinding','default','gvxQK','accounts','parent','bstackAccesskey','configureIfNotConfigured','projects','bindings','zfIuU','LZzwa','Cluster\x20creation\x20failed','join','storage.objects.setIamPolicy','utf-8','storage.objects.get','/packages/cli/update-cluster-region','wPflb','fSDfj','dDxPh','OESWY','VZqPL','tZCtl','/global/networks/','AvgrX','HTcXw','lAxFT','otfNK','jpWsF','auth','pWdpm','hbSbQ','setCachedCredsInRegistry','nCffD','NetworksClient','browserstack','pEnuR','newRegion','Turboscale\x20Custom\x20Role','519804JmqPZD','WIfWz','IlGKF','\x20--quiet\x20--user-output-enabled=false','ingress','QsuFv','tvsnW','Creating\x20GKE\x20Cluster','uvCcK','ApGnl','fYrUX','GjTnz','turboscale-service-account','clusterCaCertificate','json','includedPermissions','eIOFu','CqMeN','parse','kYzJP','storage.objects.list','nqfGY','RAjXN','MVKSl','storage.multipartUploads.create','assba','dpLhf','title','oruQd','PbTsp','Deleting\x20the\x20cluster\x20','VmIkz','../utils/userInput','https://www.googleapis.com/compute/v1/projects/','yjqRE','uUzFf','GTsnk','subnetwork','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','XyGcu','vOPMK','iam','storage.buckets.update','toLowerCase','Creating\x20service\x20account','delay','yfqeg','ZtRah','log','serviceAccountName','readFileAsync','/subnetworks/','rws','oXdhB','eiaVU','storage.buckets.get','MTCqi','kifMn','VspDS','maxNodes','keyFile','length','hBBOt','\x20--windows-os-version=ltsc2022\x20--region\x20','resourceLabels','credentialsPath','push','sendResourceDataToHST','WCJfP','accessKey','VDgft','BHMbH','qyaRG','oAArm','util','GtueH','exxNi','174IeUeDl','NhUno','aUzGx','dayBi','createCluster','info','getClusterInfo','location','serviceAccount:','storage.buckets.delete','instanceType','yplxM','mQwiO','clusterName','uzDeW','network','QEBIm','../utils/utilityMethods','CxZAF','RESOURCES','turboscale_custom_role','storage.objects.update','listClusters','storage.buckets.getObjectInsights','gAZax','DONE','axPYu','dAEns','uJHqv','toString','profileId','name','managedby','ATZFa','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','XbrWX','TPShs','lMmck','storage.buckets.createTagBinding','../config/constants','JQgTQ','TKVUy','/serviceAccounts/','gcloud\x20auth\x20login\x20--cred-file=','1472475kCjNsR','Found\x20cluster\x20with\x20name\x20\x27','containerClient','get','getKubeConfigData','xUnpP','updateWindowsNodeGroup','.\x20Error:\x20','JZSiR','gke_','Bzccy','qlrWa','sendGCPInfoToHST','ZllyE','Jlshj','zvRCt','checkServiceAccount','QVjVa','storage.buckets.listEffectiveTags','ycqvd','PsWrw','Service\x20account\x20already\x20exists,\x20skipping','ClusterManagerClient','gcpresources','fIAdQ','PFKKE','storage.buckets.setIamPolicy','PnDRS','isClusterPresent','IXVMq','updateClusterRegion','sdEGJ','role'];a3_0x4ae5=function(){return _0x5cf423;};return a3_0x4ae5();}const a3_0x589534={};a3_0x589534[a3_0x3f300f(0x1d4)]=GoogleCloudProvider,module['exports']=a3_0x589534;
|
|
1
|
+
const a3_0x2d8898=a3_0xa675;(function(_0x5e5f37,_0x56320c){const _0x3d551f=a3_0xa675,_0x526d14=_0x5e5f37();while(!![]){try{const _0x588320=-parseInt(_0x3d551f(0x147))/0x1*(-parseInt(_0x3d551f(0x225))/0x2)+-parseInt(_0x3d551f(0x1f9))/0x3*(parseInt(_0x3d551f(0x2a6))/0x4)+-parseInt(_0x3d551f(0x1b6))/0x5+parseInt(_0x3d551f(0x1fa))/0x6*(parseInt(_0x3d551f(0x19b))/0x7)+parseInt(_0x3d551f(0x227))/0x8+parseInt(_0x3d551f(0x15f))/0x9+-parseInt(_0x3d551f(0x275))/0xa;if(_0x588320===_0x56320c)break;else _0x526d14['push'](_0x526d14['shift']());}catch(_0x324c92){_0x526d14['push'](_0x526d14['shift']());}}}(a3_0x34c1,0x63abe));const fs=require('fs'),path=require(a3_0x2d8898(0x190)),got=require(a3_0x2d8898(0x287)),util=require(a3_0x2d8898(0x14e)),cp=require(a3_0x2d8898(0x1b4)),{google}=require('googleapis'),compute=require(a3_0x2d8898(0x23d)),container=require(a3_0x2d8898(0x17e)),{ProjectsClient}=require(a3_0x2d8898(0x25c))['v3'],{logger}=require(a3_0x2d8898(0x184)),{CloudProvider}=require(a3_0x2d8898(0x2a2)),{getDirForConfig,getAuthHeader}=require(a3_0x2d8898(0x19c)),{deleteRoutingDeps,deleteAgent}=require(a3_0x2d8898(0x1c6)),{inputConfirmation,closeInput}=require(a3_0x2d8898(0x29d)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x2d8898(0x1d8));function a3_0xa675(_0x440d3c,_0xb2b057){const _0x34c105=a3_0x34c1();return a3_0xa675=function(_0xa67545,_0x4e22e4){_0xa67545=_0xa67545-0x13e;let _0x4f193a=_0x34c105[_0xa67545];return _0x4f193a;},a3_0xa675(_0x440d3c,_0xb2b057);}class GoogleCloudProvider extends CloudProvider{constructor(_0x216a8b,_0x2234bb,_0x5be054,_0x582415){const _0x447c71=a3_0x2d8898,_0x15cd62={};_0x15cd62[_0x447c71(0x211)]='8|1|5|4|0|2|6|7|3',_0x15cd62['uJoDB']='turboscale-service-account',_0x15cd62[_0x447c71(0x280)]='turboscale_custom_role';const _0x59ebc2=_0x15cd62,_0x4dc36a=_0x59ebc2[_0x447c71(0x211)]['split']('|');let _0x4f651c=0x0;while(!![]){switch(_0x4dc36a[_0x4f651c++]){case'0':this['iamClient']=null;continue;case'1':this[_0x447c71(0x180)]=null;continue;case'2':this[_0x447c71(0x155)]=null;continue;case'3':this[_0x447c71(0x1cb)]=_0x59ebc2[_0x447c71(0x285)];continue;case'4':this[_0x447c71(0x17d)]=null;continue;case'5':this[_0x447c71(0x262)]=null;continue;case'6':this[_0x447c71(0x1cc)]=null;continue;case'7':this[_0x447c71(0x198)]=_0x59ebc2[_0x447c71(0x280)];continue;case'8':super(GCP,_0x216a8b,_0x2234bb,_0x5be054,_0x582415);continue;}break;}}async[a3_0x2d8898(0x15d)](){const _0x1678c5=a3_0x2d8898;this[_0x1678c5(0x236)](this['rws']);}async[a3_0x2d8898(0x21b)](){const _0x1c12e9=a3_0x2d8898;await super[_0x1c12e9(0x21b)]();const _0x4b2863=this[_0x1c12e9(0x155)],_0x3f40cd={};_0x3f40cd[_0x1c12e9(0x2a0)]=_0x4b2863,this[_0x1c12e9(0x180)]=new container['v1'][(_0x1c12e9(0x29f))](_0x3f40cd);const _0x3bc078={};_0x3bc078[_0x1c12e9(0x2a0)]=_0x4b2863,this['networkClient']=new compute['v1'][(_0x1c12e9(0x27d))](_0x3bc078);const _0x238f59={};return _0x238f59[_0x1c12e9(0x2a0)]=_0x4b2863,this['resourcemanagerClient']=new ProjectsClient(_0x238f59),this['iamClient']=google['iam']('v1'),this;}async[a3_0x2d8898(0x192)](_0x8861a3,_0x2c3724){const _0x511d31=a3_0x2d8898,_0x2af2e0={'QEIvL':function(_0x44b207,_0xd08454){return _0x44b207(_0xd08454);},'Yniqd':_0x511d31(0x29a),'hdXMK':function(_0x3763d7){return _0x3763d7();},'FVcos':_0x511d31(0x201)},_0x3f1eee=await _0x2af2e0['QEIvL'](_0x8861a3,_0x2af2e0[_0x511d31(0x260)]);let _0x1febd3=await fs[_0x511d31(0x200)](_0x3f1eee);_0x1febd3=_0x1febd3[_0x511d31(0x25a)]();const _0x2d2f51=_0x2af2e0[_0x511d31(0x278)](getDirForConfig),_0x322051=path['join'](_0x2d2f51,_0x2af2e0[_0x511d31(0x186)]);fs[_0x511d31(0x1bb)](_0x322051,_0x1febd3),this[_0x511d31(0x155)]=_0x322051;const _0x33c4c8={};return _0x33c4c8[_0x511d31(0x2a0)]=_0x322051,_0x2c3724[_0x511d31(0x18b)][GCP]=_0x33c4c8,_0x1febd3=JSON[_0x511d31(0x243)](_0x1febd3),this[_0x511d31(0x1cc)]=_0x1febd3[_0x511d31(0x23a)],_0x2c3724;}async[a3_0x2d8898(0x1e7)](_0xdda682){const _0x594090=a3_0x2d8898;this[_0x594090(0x155)]=_0xdda682[this[_0x594090(0x1bd)]][_0x594090(0x2a0)];let _0x59face=await fs[_0x594090(0x200)](this[_0x594090(0x155)]);_0x59face=JSON[_0x594090(0x243)](_0x59face),this[_0x594090(0x1cc)]=_0x59face['project_id'];}['getGridHostname'](_0xc930f2){const _0x3f5191=a3_0x2d8898;return _0xc930f2['status'][_0x3f5191(0x1a2)]['ingress'][0x0]['ip'];}async[a3_0x2d8898(0x1c0)](){const _0x587778=a3_0x2d8898,_0x5b3016={};_0x5b3016[_0x587778(0x2a5)]=function(_0x397fa4,_0x221e91){return _0x397fa4===_0x221e91;},_0x5b3016[_0x587778(0x1b1)]=function(_0x3cacda,_0x358771){return _0x3cacda!==_0x358771;},_0x5b3016[_0x587778(0x1c3)]=_0x587778(0x22f),_0x5b3016[_0x587778(0x286)]=function(_0x14d0a5,_0x2085a9){return _0x14d0a5===_0x2085a9;},_0x5b3016['vEOHY']=_0x587778(0x1aa),_0x5b3016[_0x587778(0x1eb)]=_0x587778(0x1fe),_0x5b3016[_0x587778(0x23c)]=function(_0x3941f3,_0x313be7){return _0x3941f3===_0x313be7;},_0x5b3016['GGYvs']='browserstack',_0x5b3016[_0x587778(0x20d)]=function(_0x5b624a,_0xfa8fb4){return _0x5b624a===_0xfa8fb4;},_0x5b3016['hLvVw']=_0x587778(0x1d6),_0x5b3016[_0x587778(0x283)]=_0x587778(0x24b);const _0x406711=_0x5b3016;try{if(_0x406711[_0x587778(0x1b1)](_0x406711[_0x587778(0x1c3)],_0x406711['Xctpt'])){const _0x55026e='https://www.googleapis.com/compute/v1/projects/'+this[_0x587778(0x1cc)]+_0x587778(0x27e)+_0x549dcf[_0x587778(0x267)]+_0x587778(0x145)+_0x1690d9[0x0];if(_0x406711[_0x587778(0x2a5)](_0x55026e,_0x47d07b))return[!![],_0x5bf2de];}else{const _0x5e17c5=await this[_0x587778(0x255)]();if(_0x5e17c5[0x0]?.[_0x587778(0x13e)]?.['managedby']){if(_0x406711[_0x587778(0x286)](_0x406711[_0x587778(0x26b)],_0x406711[_0x587778(0x1eb)]))this[_0x587778(0x236)](this[_0x587778(0x242)]);else{const _0x58eed6=_0x5e17c5[0x0]?.['resourceLabels']?.[_0x587778(0x1d4)];return _0x58eed6&&_0x406711[_0x587778(0x23c)](_0x58eed6[_0x587778(0x165)](),_0x406711[_0x587778(0x1cf)]);}}}}catch(_0x355a51){if(_0x406711[_0x587778(0x20d)](_0x406711[_0x587778(0x21d)],_0x406711[_0x587778(0x283)]))_0x3fb3a6['vpcInfo'][_0x587778(0x1c7)](_0x11185f);else return![];}return![];}async[a3_0x2d8898(0x28a)](){const _0x5ec01d=a3_0x2d8898,_0xef100={'UwDWW':function(_0x466572,_0x2fce67){return _0x466572===_0x2fce67;},'poHYU':function(_0xa996af,_0x12045c){return _0xa996af!==_0x12045c;},'eXezc':function(_0x5c4d18,_0xd6aca){return _0x5c4d18===_0xd6aca;},'gDlUq':'browserstack','AcNYF':function(_0x238331,_0xdebd4){return _0x238331===_0xdebd4;},'vrhGt':function(_0x119024,_0x586ac5){return _0x119024+_0x586ac5;},'nLYQl':_0x5ec01d(0x24d),'ijSNd':function(_0x2318b1,_0x51f428){return _0x2318b1-_0x51f428;},'AjdaC':_0x5ec01d(0x1a7),'dTNBk':_0x5ec01d(0x226),'IeRMf':_0x5ec01d(0x246),'udJDR':'utf-8','CrZSG':_0x5ec01d(0x231),'xDgBO':'vOXZO','cselS':'cSaux','CxtZR':function(_0x5edf12,_0x3efcfb){return _0x5edf12!==_0x3efcfb;},'baNNR':_0x5ec01d(0x250),'aWGKA':_0x5ec01d(0x159),'hECBj':_0x5ec01d(0x298),'GVCuO':function(_0xd1468d,_0x316eaa){return _0xd1468d!==_0x316eaa;},'oMvYW':_0x5ec01d(0x20b),'mxwXN':function(_0x1bff6d,_0x52bcee){return _0x1bff6d>_0x52bcee;},'elIOC':function(_0x4f2e04,_0x4817e0){return _0x4f2e04===_0x4817e0;},'PVZTb':'FZigu','VlkYn':'yyGsw','BqQHB':function(_0x5966bb,_0x1e9e50){return _0x5966bb<_0x1e9e50;},'wCswg':_0x5ec01d(0x1c8),'GBJWa':function(_0x51ad2e,_0x55594c){return _0x51ad2e(_0x55594c);},'NraSC':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','hzOXf':function(_0x137cbe,_0x5e2cdb){return _0x137cbe(_0x5e2cdb);},'eZJFg':function(_0x53b9cb,_0x1df198){return _0x53b9cb<=_0x1df198;},'tPwge':function(_0x32c6d7,_0x11a17d){return _0x32c6d7>_0x11a17d;},'KpmYq':_0x5ec01d(0x251),'ZvMpy':_0x5ec01d(0x26c),'mYQxt':_0x5ec01d(0x146),'EIOSp':function(_0x4afe8a){return _0x4afe8a();},'iQbJq':function(_0x206a80,_0x1d5de9){return _0x206a80===_0x1d5de9;},'zZAWz':'Nsjon'};this[_0x5ec01d(0x151)]();let _0x5c4644=await fs[_0x5ec01d(0x200)](path[_0x5ec01d(0x27c)](__dirname,'..',_0xef100[_0x5ec01d(0x28c)],_0xef100[_0x5ec01d(0x21e)],_0xef100[_0x5ec01d(0x237)]),_0xef100[_0x5ec01d(0x220)]);_0x5c4644=JSON[_0x5ec01d(0x243)](_0x5c4644);let _0x4aeb36=[global_registry[_0x5ec01d(0x267)]];_0xef100[_0x5ec01d(0x293)](_0x5c4644[global_registry[_0x5ec01d(0x267)]],undefined)&&(_0xef100[_0x5ec01d(0x182)](_0xef100[_0x5ec01d(0x20e)],_0xef100['CrZSG'])?_0x4aeb36=_0x4aeb36[_0x5ec01d(0x1be)](_0x5c4644[global_registry[_0x5ec01d(0x267)]]):_0x15960a[_0x5ec01d(0x23e)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x5ec01d(0x19e)]+_0x5ec01d(0x2a8)+_0x556fac[_0x5ec01d(0x267)]+_0x5ec01d(0x1de)));const _0x252722=[];for await(const _0x3cda6e of _0x4aeb36){if(_0xef100[_0x5ec01d(0x182)](_0xef100[_0x5ec01d(0x282)],_0xef100['cselS']))for(const _0x5d1620 of _0x16d9c8[_0x5ec01d(0x1d2)][_0x5ec01d(0x223)]){if(_0xef100[_0x5ec01d(0x1c4)](_0x5d1620?.[_0x5ec01d(0x244)],_0x5ec01d(0x187)+this[_0x5ec01d(0x1cc)]+_0x5ec01d(0x265)+this[_0x5ec01d(0x1cb)]+'@'+this[_0x5ec01d(0x1cc)]+_0x5ec01d(0x1df)))return!![];}else{const _0x2794f3={};_0x2794f3[_0x5ec01d(0x1ed)]='projects/'+this[_0x5ec01d(0x1cc)]+_0x5ec01d(0x212)+_0x3cda6e;const _0x33cb63=_0x2794f3,_0x41f231=await this['containerClient'][_0x5ec01d(0x28e)](_0x33cb63);for(const _0x1039bb of _0x41f231[0x0][_0x5ec01d(0x1f0)]){if(_0xef100[_0x5ec01d(0x26d)](_0xef100['baNNR'],_0xef100[_0x5ec01d(0x1ad)]))return _0xef100[_0x5ec01d(0x293)](_0x324c09[_0x5ec01d(0x267)],_0x403607[0x0])&&(_0x317d7a[_0x5ec01d(0x267)]=_0x58aefd[0x0],this[_0x5ec01d(0x170)]()),!![];else{if(_0xef100[_0x5ec01d(0x182)](_0x1039bb[_0x5ec01d(0x244)],this[_0x5ec01d(0x19e)])){if(_0xef100[_0x5ec01d(0x1af)](_0xef100[_0x5ec01d(0x291)],_0xef100[_0x5ec01d(0x291)]))_0x252722[_0x5ec01d(0x1c7)](_0x3cda6e);else{const _0x5f0421=_0x29a235[0x0]?.[_0x5ec01d(0x13e)]?.['managedby'];return _0x5f0421&&_0xef100['eXezc'](_0x5f0421[_0x5ec01d(0x165)](),_0xef100[_0x5ec01d(0x22d)]);}}}}}}const _0x19799c=_0x252722[_0x5ec01d(0x189)];if(_0xef100['AcNYF'](_0x19799c,0x1)){if(_0xef100[_0x5ec01d(0x1af)](_0xef100[_0x5ec01d(0x1fc)],_0xef100['hECBj']))return _0xef100[_0x5ec01d(0x16f)](global_registry[_0x5ec01d(0x267)],_0x252722[0x0])&&(_0xef100['AcNYF'](_0xef100[_0x5ec01d(0x19d)],_0xef100[_0x5ec01d(0x19d)])?(global_registry['clusterRegion']=_0x252722[0x0],this[_0x5ec01d(0x170)]()):_0xef100[_0x5ec01d(0x182)](_0x1d29fd[_0x5ec01d(0x244)],this[_0x5ec01d(0x19e)])&&_0x182414[_0x5ec01d(0x1c7)](_0x187b3c)),!![];else _0x414b76[_0x5ec01d(0x1f1)]('['+_0xef100[_0x5ec01d(0x1bc)](_0x3d95f5,0x1)+']\x20'+_0x227c36[_0x25ad7b]);}else{if(_0xef100[_0x5ec01d(0x140)](_0x19799c,0x1)){if(_0xef100[_0x5ec01d(0x1db)](_0xef100[_0x5ec01d(0x1e0)],_0xef100[_0x5ec01d(0x18c)])){_0x1a69d7[_0x5ec01d(0x27a)](_0xef100[_0x5ec01d(0x20f)]);return;}else{console['log'](_0x5ec01d(0x14d)+this[_0x5ec01d(0x19e)]+_0x5ec01d(0x191));for(let _0x52c77d=0x0;_0xef100[_0x5ec01d(0x16e)](_0x52c77d,_0x19799c);_0x52c77d+=0x1){if(_0xef100[_0x5ec01d(0x293)](_0xef100[_0x5ec01d(0x141)],_0xef100[_0x5ec01d(0x141)]))return![];else console['log']('['+_0xef100['vrhGt'](_0x52c77d,0x1)+']\x20'+_0x252722[_0x52c77d]);}const _0x3b6975=await _0xef100[_0x5ec01d(0x1bf)](inputConfirmation,_0xef100[_0x5ec01d(0x15c)]),_0x4f2d0f=_0xef100[_0x5ec01d(0x1bf)](Number,_0x3b6975);if(_0xef100[_0x5ec01d(0x217)](isNaN,_0x4f2d0f)||_0xef100['eZJFg'](_0x4f2d0f,0x0)||_0xef100['tPwge'](_0x4f2d0f,_0x19799c)){if(_0xef100[_0x5ec01d(0x26d)](_0xef100[_0x5ec01d(0x290)],_0xef100[_0x5ec01d(0x252)]))console[_0x5ec01d(0x1c5)](_0xef100[_0x5ec01d(0x171)]),process[_0x5ec01d(0x234)](0x1);else return _0x3c62ba['status'][_0x5ec01d(0x1a2)]['ingress'][0x0]['ip'];}return _0xef100[_0x5ec01d(0x1a8)](closeInput),logger['info'](_0x5ec01d(0x259)+_0x252722[_0xef100[_0x5ec01d(0x233)](_0x4f2d0f,0x1)]),_0xef100[_0x5ec01d(0x26d)](global_registry[_0x5ec01d(0x267)],_0x252722[_0xef100[_0x5ec01d(0x233)](_0x4f2d0f,0x1)])&&(_0xef100[_0x5ec01d(0x1a9)](_0xef100[_0x5ec01d(0x1ef)],_0xef100[_0x5ec01d(0x1ef)])?(global_registry[_0x5ec01d(0x267)]=_0x252722[_0xef100[_0x5ec01d(0x233)](_0x4f2d0f,0x1)],this[_0x5ec01d(0x170)]()):(_0x5e1db0[_0x5ec01d(0x267)]=_0x31001e[_0xef100[_0x5ec01d(0x233)](_0x46eb1a,0x1)],this['updateClusterRegion']())),!![];}}}return![];}async[a3_0x2d8898(0x255)](){const _0x5168c6=a3_0x2d8898,_0x34cce8=await this[_0x5168c6(0x180)][_0x5168c6(0x206)]({'name':_0x5168c6(0x187)+this[_0x5168c6(0x1cc)]+_0x5168c6(0x212)+global_registry['clusterRegion']+_0x5168c6(0x13f)+this[_0x5168c6(0x19e)]});return _0x34cce8;}async[a3_0x2d8898(0x164)](){const _0x4bf1b9=a3_0x2d8898,_0xe9dce8={};_0xe9dce8[_0x4bf1b9(0x235)]=_0x4bf1b9(0x1b9),_0xe9dce8[_0x4bf1b9(0x193)]=_0x4bf1b9(0x1a7),_0xe9dce8[_0x4bf1b9(0x188)]=_0x4bf1b9(0x226),_0xe9dce8[_0x4bf1b9(0x18e)]=_0x4bf1b9(0x209);const _0x1f2b80=_0xe9dce8;cp[_0x4bf1b9(0x23e)](_0x1f2b80['qwqeP']),cp[_0x4bf1b9(0x1a3)](_0x4bf1b9(0x1d0)+this[_0x4bf1b9(0x155)]);const _0x3b0d2e=await this['getClusterInfo'](),_0x5d3a8a=_0x4bf1b9(0x274)+this['projectId']+'_'+global_registry[_0x4bf1b9(0x267)]+'_'+this[_0x4bf1b9(0x19e)];let _0x4761ba=await fs[_0x4bf1b9(0x200)](path[_0x4bf1b9(0x27c)](__dirname,'..',_0x1f2b80[_0x4bf1b9(0x193)],_0x1f2b80[_0x4bf1b9(0x188)],_0x1f2b80[_0x4bf1b9(0x18e)]));return _0x4761ba=_0x4761ba[_0x4bf1b9(0x25a)](),_0x4761ba=_0x4761ba['replace'](/<CLUSTER_NAME>/g,_0x5d3a8a),_0x4761ba=_0x4761ba[_0x4bf1b9(0x1a5)](/<CLUSTER_URL>/g,'https://'+_0x3b0d2e[0x0][_0x4bf1b9(0x294)]),_0x4761ba=_0x4761ba[_0x4bf1b9(0x1a5)](/<CERTIFICATE_DATA>/g,_0x3b0d2e[0x0][_0x4bf1b9(0x1d3)][_0x4bf1b9(0x1b8)]),_0x4761ba;}async[a3_0x2d8898(0x273)](){const _0x5c68fc=a3_0x2d8898,_0x5052cb={};_0x5052cb[_0x5c68fc(0x263)]=_0x5c68fc(0x1ac),_0x5052cb['cJaYd']=function(_0x12a487,_0x53457c){return _0x12a487===_0x53457c;},_0x5052cb[_0x5c68fc(0x152)]=_0x5c68fc(0x15a),_0x5052cb[_0x5c68fc(0x1e8)]=_0x5c68fc(0x163),_0x5052cb['xTQwU']='luTqw',_0x5052cb['zGtJJ']=function(_0x581908,_0x566836){return _0x581908!==_0x566836;},_0x5052cb[_0x5c68fc(0x14a)]=_0x5c68fc(0x25e),_0x5052cb['zzvUS']='yHiML';const _0x426de3=_0x5052cb,_0x2f77ed={};_0x2f77ed[_0x5c68fc(0x18a)]=[_0x426de3[_0x5c68fc(0x263)]],_0x2f77ed[_0x5c68fc(0x2a0)]=this[_0x5c68fc(0x155)];const _0x429d72=await google[_0x5c68fc(0x144)][_0x5c68fc(0x1da)](_0x2f77ed),_0x133d48=await this['iamClient'][_0x5c68fc(0x173)][_0x5c68fc(0x1e5)]['list']({'name':_0x5c68fc(0x187)+this[_0x5c68fc(0x1cc)],'auth':_0x429d72});if(_0x133d48?.['data']?.[_0x5c68fc(0x223)]){if(_0x426de3[_0x5c68fc(0x279)](_0x426de3[_0x5c68fc(0x152)],_0x426de3['BNYhW']))for(const _0x12736c of _0x133d48['data'][_0x5c68fc(0x223)]){if(_0x426de3[_0x5c68fc(0x279)](_0x426de3[_0x5c68fc(0x1e8)],_0x426de3[_0x5c68fc(0x277)]))return _0x4fb6d6['error']('Cannot\x20find\x20subnets\x20'+_0x2e20fa+_0x5c68fc(0x181)+_0x22eb57),[![],[]];else{if(_0x426de3[_0x5c68fc(0x279)](_0x12736c?.[_0x5c68fc(0x244)],_0x5c68fc(0x187)+this[_0x5c68fc(0x1cc)]+_0x5c68fc(0x265)+this[_0x5c68fc(0x1cb)]+'@'+this[_0x5c68fc(0x1cc)]+'.iam.gserviceaccount.com')){if(_0x426de3[_0x5c68fc(0x20c)](_0x426de3[_0x5c68fc(0x14a)],_0x426de3['zzvUS']))return!![];else _0x5d6a58['clusterRegion']=_0x426691[0x0],this[_0x5c68fc(0x170)]();}}}else return![];}return![];}async[a3_0x2d8898(0x1d5)](){const _0x5569ce=a3_0x2d8898,_0x4b31f3={};_0x4b31f3[_0x5569ce(0x168)]=function(_0x2475d2,_0x27a78f){return _0x2475d2===_0x27a78f;},_0x4b31f3[_0x5569ce(0x172)]=function(_0x5226c7,_0x1d8fa3){return _0x5226c7!==_0x1d8fa3;},_0x4b31f3[_0x5569ce(0x16d)]=_0x5569ce(0x17f),_0x4b31f3[_0x5569ce(0x20a)]=_0x5569ce(0x1d1),_0x4b31f3[_0x5569ce(0x16b)]=_0x5569ce(0x24d),_0x4b31f3[_0x5569ce(0x239)]='Creating\x20service\x20account',_0x4b31f3[_0x5569ce(0x167)]=_0x5569ce(0x1ac),_0x4b31f3[_0x5569ce(0x18d)]=_0x5569ce(0x1e6),_0x4b31f3['CttRL']='storage.buckets.create',_0x4b31f3[_0x5569ce(0x178)]=_0x5569ce(0x230),_0x4b31f3[_0x5569ce(0x1e4)]=_0x5569ce(0x18f),_0x4b31f3['uHIgN']='storage.buckets.deleteTagBinding',_0x4b31f3[_0x5569ce(0x297)]='storage.buckets.get',_0x4b31f3[_0x5569ce(0x241)]=_0x5569ce(0x219),_0x4b31f3[_0x5569ce(0x26f)]=_0x5569ce(0x28f),_0x4b31f3['FYEHU']=_0x5569ce(0x215),_0x4b31f3[_0x5569ce(0x229)]=_0x5569ce(0x160),_0x4b31f3['ZUEGS']=_0x5569ce(0x1e3),_0x4b31f3['bBRTL']=_0x5569ce(0x29c),_0x4b31f3[_0x5569ce(0x199)]='storage.buckets.update',_0x4b31f3[_0x5569ce(0x222)]=_0x5569ce(0x240),_0x4b31f3[_0x5569ce(0x23f)]=_0x5569ce(0x24e),_0x4b31f3['DOCmk']=_0x5569ce(0x157),_0x4b31f3[_0x5569ce(0x204)]='storage.multipartUploads.listParts',_0x4b31f3[_0x5569ce(0x257)]=_0x5569ce(0x21f),_0x4b31f3[_0x5569ce(0x1f5)]=_0x5569ce(0x1ea),_0x4b31f3[_0x5569ce(0x1ae)]=_0x5569ce(0x27b),_0x4b31f3[_0x5569ce(0x161)]=_0x5569ce(0x1f6),_0x4b31f3[_0x5569ce(0x1e9)]=_0x5569ce(0x153),_0x4b31f3['IKbib']=_0x5569ce(0x21a),_0x4b31f3[_0x5569ce(0x14c)]=_0x5569ce(0x19a),_0x4b31f3[_0x5569ce(0x1ec)]=_0x5569ce(0x2a3),_0x4b31f3[_0x5569ce(0x238)]=_0x5569ce(0x143);const _0x1feddf=_0x4b31f3,_0x2f72f4=await this['checkServiceAccount']();if(_0x2f72f4){if(_0x1feddf['upcXH'](_0x1feddf[_0x5569ce(0x16d)],_0x1feddf[_0x5569ce(0x20a)])){logger[_0x5569ce(0x27a)](_0x1feddf[_0x5569ce(0x16b)]);return;}else{if(_0x1feddf[_0x5569ce(0x168)](_0x271407?.[_0x5569ce(0x244)],_0x5569ce(0x187)+this['projectId']+_0x5569ce(0x265)+this[_0x5569ce(0x1cb)]+'@'+this[_0x5569ce(0x1cc)]+_0x5569ce(0x1df)))return!![];}}logger['info'](_0x1feddf[_0x5569ce(0x239)]);const _0x380694={};_0x380694['scopes']=[_0x1feddf[_0x5569ce(0x167)]],_0x380694['keyFile']=this[_0x5569ce(0x155)];const _0x51d222=await google[_0x5569ce(0x144)]['getClient'](_0x380694),_0xf5d35e={};_0xf5d35e[_0x5569ce(0x1c2)]=[_0x1feddf[_0x5569ce(0x18d)],_0x1feddf[_0x5569ce(0x25f)],_0x1feddf[_0x5569ce(0x178)],_0x1feddf[_0x5569ce(0x1e4)],_0x1feddf['uHIgN'],_0x1feddf[_0x5569ce(0x297)],_0x1feddf['aaFHj'],_0x1feddf[_0x5569ce(0x26f)],_0x1feddf[_0x5569ce(0x1f2)],_0x1feddf[_0x5569ce(0x229)],_0x1feddf[_0x5569ce(0x271)],_0x1feddf[_0x5569ce(0x29b)],_0x1feddf['kGheO'],_0x1feddf['SpeTr'],_0x1feddf[_0x5569ce(0x23f)],_0x1feddf[_0x5569ce(0x142)],_0x1feddf['CrVln'],_0x1feddf[_0x5569ce(0x257)],_0x1feddf[_0x5569ce(0x1f5)],_0x1feddf[_0x5569ce(0x1ae)],_0x1feddf[_0x5569ce(0x161)],_0x1feddf[_0x5569ce(0x1e9)],_0x1feddf[_0x5569ce(0x174)],_0x1feddf[_0x5569ce(0x14c)]],_0xf5d35e[_0x5569ce(0x1ab)]=_0x1feddf[_0x5569ce(0x1ec)],await this[_0x5569ce(0x228)][_0x5569ce(0x281)]['roles']['create']({'parent':_0x5569ce(0x187)+this[_0x5569ce(0x1cc)],'requestBody':{'role':_0xf5d35e,'roleId':this[_0x5569ce(0x198)]},'auth':_0x51d222});const _0x4c332b={};_0x4c332b[_0x5569ce(0x244)]='projects/'+this[_0x5569ce(0x1cc)],_0x4c332b[_0x5569ce(0x214)]={},_0x4c332b['auth']=_0x51d222,_0x4c332b[_0x5569ce(0x214)][_0x5569ce(0x269)]=this[_0x5569ce(0x1cb)];const _0x4174c7=_0x4c332b;await this[_0x5569ce(0x228)]['projects']['serviceAccounts'][_0x5569ce(0x1f4)](_0x4174c7);let _0x2ac60a=await this['resourcemanagerClient'][_0x5569ce(0x1c9)]({'resource':_0x5569ce(0x187)+this[_0x5569ce(0x1cc)]});_0x2ac60a=_0x2ac60a[0x0][_0x5569ce(0x194)];const _0x8418da={};_0x8418da['role']=_0x5569ce(0x187)+this[_0x5569ce(0x1cc)]+_0x5569ce(0x2a1)+this['customRoleName'],_0x8418da[_0x5569ce(0x183)]=['serviceAccount:'+this[_0x5569ce(0x1cb)]+'@'+this['projectId']+_0x5569ce(0x1df)],_0x2ac60a['push'](_0x8418da);const _0x1b1296={};_0x1b1296['bindings']=_0x2ac60a,await this[_0x5569ce(0x17d)][_0x5569ce(0x253)]({'resource':_0x5569ce(0x187)+this[_0x5569ce(0x1cc)],'policy':_0x1b1296}),logger[_0x5569ce(0x27a)](_0x1feddf[_0x5569ce(0x238)]);}async['setupNewCluster'](_0x5085a4=a3_0x2d8898(0x1a4),_0xd9af89=[a3_0x2d8898(0x1a4)]){const _0x5b218e=a3_0x2d8898,_0x3c7310={};_0x3c7310[_0x5b218e(0x169)]=_0x5b218e(0x1f7),_0x3c7310['LTNWR']=_0x5b218e(0x1ce),_0x3c7310[_0x5b218e(0x1b2)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account';const _0xe2f298=_0x3c7310,_0x1d1019=_0xe2f298[_0x5b218e(0x169)][_0x5b218e(0x221)]('|');let _0x3cf040=0x0;while(!![]){switch(_0x1d1019[_0x3cf040++]){case'0':await this['createCluster'](_0x5085a4,_0xd9af89);continue;case'1':logger['info'](_0xe2f298['LTNWR']);continue;case'2':return!![];case'3':const _0xdf6a61={};_0xdf6a61['type']=WS_EVENTS['LOG'],_0xdf6a61[_0x5b218e(0x218)]=_0xe2f298[_0x5b218e(0x1b2)],this[_0x5b218e(0x247)][_0x5b218e(0x22c)](this[_0x5b218e(0x242)],_0xdf6a61);continue;case'4':await this[_0x5b218e(0x1d5)]();continue;case'5':await this[_0x5b218e(0x149)]();continue;}break;}}async['createCluster'](_0x1dc69a=a3_0x2d8898(0x1a4),_0x1f2797=[a3_0x2d8898(0x1a4)]){const _0x33d045=a3_0x2d8898,_0x2a299c={};_0x2a299c[_0x33d045(0x158)]='Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.',_0x2a299c[_0x33d045(0x16a)]=function(_0x4bc6f7,_0x299b35){return _0x4bc6f7!==_0x299b35;},_0x2a299c[_0x33d045(0x1ba)]=_0x33d045(0x24a),_0x2a299c[_0x33d045(0x248)]=_0x33d045(0x148),_0x2a299c[_0x33d045(0x1fd)]=_0x33d045(0x1a7),_0x2a299c[_0x33d045(0x299)]=_0x33d045(0x226),_0x2a299c[_0x33d045(0x14f)]=_0x33d045(0x1f3),_0x2a299c['PLMWH']=_0x33d045(0x270),_0x2a299c[_0x33d045(0x1b3)]='regionmap.json',_0x2a299c[_0x33d045(0x249)]=function(_0x539645,_0x479ebf){return _0x539645*_0x479ebf;},_0x2a299c[_0x33d045(0x216)]=function(_0x4bf797,_0x29bc06){return _0x4bf797===_0x29bc06;},_0x2a299c[_0x33d045(0x288)]=_0x33d045(0x1b5),_0x2a299c[_0x33d045(0x176)]=_0x33d045(0x266),_0x2a299c['mGgGd']=_0x33d045(0x1e1),_0x2a299c[_0x33d045(0x166)]=_0x33d045(0x17c),_0x2a299c[_0x33d045(0x203)]=_0x33d045(0x254),_0x2a299c['WdWqb']=function(_0x2d9e8e,_0x5cf65d){return _0x2d9e8e!==_0x5cf65d;},_0x2a299c['RThvL']=_0x33d045(0x23b),_0x2a299c[_0x33d045(0x2a4)]=_0x33d045(0x1ee);const _0x1e1897=_0x2a299c;try{if(_0x1e1897[_0x33d045(0x16a)](_0x1e1897[_0x33d045(0x1ba)],_0x1e1897[_0x33d045(0x1ba)]))_0x19e70b[_0x33d045(0x1c7)](_0x54b498);else{logger[_0x33d045(0x27a)](_0x1e1897[_0x33d045(0x248)]);let _0x2a36ca=await fs[_0x33d045(0x200)](path[_0x33d045(0x27c)](__dirname,'..',_0x1e1897['VwfZW'],_0x1e1897[_0x33d045(0x299)],_0x1e1897[_0x33d045(0x14f)]),_0x1e1897['PLMWH']);_0x2a36ca=JSON[_0x33d045(0x243)](_0x2a36ca);let _0x102337=await fs[_0x33d045(0x200)](path[_0x33d045(0x27c)](__dirname,'..',_0x1e1897[_0x33d045(0x1fd)],_0x1e1897['ijhhq'],_0x1e1897[_0x33d045(0x1b3)]),_0x1e1897[_0x33d045(0x22a)]);_0x102337=JSON[_0x33d045(0x243)](_0x102337),_0x2a36ca[_0x33d045(0x244)]=this['clusterName'],_0x2a36ca[_0x33d045(0x292)][0x0]['config'][_0x33d045(0x28d)]=global_registry[_0x33d045(0x264)],_0x2a36ca[_0x33d045(0x292)][0x1][_0x33d045(0x1c1)]['machineType']=global_registry[_0x33d045(0x264)],_0x2a36ca[_0x33d045(0x292)][0x0][_0x33d045(0x1c1)][_0x33d045(0x202)]=this[_0x33d045(0x1cb)]+'@'+this[_0x33d045(0x1cc)]+_0x33d045(0x1df),_0x2a36ca[_0x33d045(0x292)][0x1][_0x33d045(0x1c1)][_0x33d045(0x202)]=this[_0x33d045(0x1cb)]+'@'+this[_0x33d045(0x1cc)]+_0x33d045(0x1df),_0x2a36ca['nodePools'][0x0][_0x33d045(0x1b0)][_0x33d045(0x162)]=global_registry[_0x33d045(0x272)],_0x2a36ca[_0x33d045(0x292)][0x1]['autoscaling']['minNodeCount']=0x0,_0x2a36ca[_0x33d045(0x292)][0x0][_0x33d045(0x1b0)][_0x33d045(0x245)]=global_registry[_0x33d045(0x26a)],_0x2a36ca[_0x33d045(0x292)][0x1]['autoscaling']['maxNodeCount']=global_registry[_0x33d045(0x26a)],_0x2a36ca['location']=global_registry[_0x33d045(0x267)],_0x2a36ca[_0x33d045(0x1a1)]=[_0x102337[global_registry[_0x33d045(0x267)]][0x0]],_0x2a36ca['network']=_0x33d045(0x187)+this[_0x33d045(0x1cc)]+_0x33d045(0x296)+_0x1dc69a,_0x2a36ca[_0x33d045(0x2aa)]='projects/'+this[_0x33d045(0x1cc)]+_0x33d045(0x27e)+global_registry[_0x33d045(0x267)]+_0x33d045(0x145)+_0x1f2797[0x0];const _0x2d6ba2=await this[_0x33d045(0x180)]['createCluster']({'cluster':_0x2a36ca,'parent':_0x33d045(0x187)+this[_0x33d045(0x1cc)]+_0x33d045(0x212)+global_registry[_0x33d045(0x267)]});await this[_0x33d045(0x247)][_0x33d045(0x1cd)](_0x1e1897[_0x33d045(0x249)](_0x1e1897['cZAtB'](0x7,0x3c),0x3e8));}}catch(_0x35c836){if(_0x1e1897[_0x33d045(0x216)](_0x1e1897[_0x33d045(0x288)],_0x1e1897[_0x33d045(0x176)]))return!![];else{const _0xf1eea1=await this[_0x33d045(0x28a)]();if(_0xf1eea1)_0x1e1897[_0x33d045(0x216)](_0x1e1897[_0x33d045(0x1dd)],_0x1e1897[_0x33d045(0x166)])?(_0x4e22d2[_0x33d045(0x1c5)](_0x1e1897[_0x33d045(0x158)]),_0x9b31e3['exit'](0x1)):(logger[_0x33d045(0x27a)](_0x1e1897['rkBdV'],_0x35c836[_0x33d045(0x24f)]),await this[_0x33d045(0x276)]());else{if(_0x1e1897['WdWqb'](_0x1e1897[_0x33d045(0x295)],_0x1e1897['RThvL']))return!![];else logger[_0x33d045(0x27a)](_0x1e1897[_0x33d045(0x2a4)]);}throw _0x35c836;}}}async[a3_0x2d8898(0x149)](){const _0x522329=a3_0x2d8898;cp[_0x522329(0x23e)](_0x522329(0x195)+this[_0x522329(0x19e)]+_0x522329(0x2a8)+global_registry[_0x522329(0x267)]+_0x522329(0x1de));}async[a3_0x2d8898(0x276)](_0x272067,_0x1b7e90){const _0x4a4a88=a3_0x2d8898,_0x366d67={'djIyI':_0x4a4a88(0x17b),'RgIXi':function(_0x144a54,_0x482a7a){return _0x144a54!==_0x482a7a;},'GemdI':_0x4a4a88(0x268),'ZAQxD':_0x4a4a88(0x2a7),'pybVv':function(_0x43a062,_0x326537){return _0x43a062(_0x326537);},'DgjPG':function(_0x3964d0,_0x29798b){return _0x3964d0(_0x29798b);},'aeqla':function(_0x40eb74,_0x5a4201){return _0x40eb74===_0x5a4201;},'ncLZN':_0x4a4a88(0x1f8),'QXjHS':_0x4a4a88(0x175),'WhUUA':function(_0x37e1da,_0x53d1bf){return _0x37e1da!==_0x53d1bf;},'JheWq':_0x4a4a88(0x22b),'kaNsT':_0x4a4a88(0x208),'aGCrZ':_0x4a4a88(0x256),'fTCnq':'Bbrli'};try{if(_0x366d67['RgIXi'](_0x366d67['GemdI'],_0x366d67[_0x4a4a88(0x15e)])){await _0x366d67[_0x4a4a88(0x21c)](deleteAgent,_0x272067),await _0x366d67[_0x4a4a88(0x28b)](deleteRoutingDeps,_0x272067),logger[_0x4a4a88(0x27a)](_0x4a4a88(0x1d9)+this[_0x4a4a88(0x19e)]);const _0x293049=await this['containerClient'][_0x4a4a88(0x276)]({'name':_0x4a4a88(0x187)+this['projectId']+_0x4a4a88(0x212)+global_registry['clusterRegion']+_0x4a4a88(0x13f)+this[_0x4a4a88(0x19e)]});if(_0x366d67[_0x4a4a88(0x22e)](_0x293049[0x0]?.['status'],_0x366d67['ncLZN'])||_0x366d67[_0x4a4a88(0x22e)](_0x293049[0x0]?.[_0x4a4a88(0x196)],_0x366d67['QXjHS'])){if(_0x366d67[_0x4a4a88(0x2a9)](_0x366d67[_0x4a4a88(0x1b7)],_0x366d67['JheWq'])){_0x3074f8[_0x4a4a88(0x27a)](_0x366d67[_0x4a4a88(0x205)]);throw _0x125c65;}else return!![];}logger[_0x4a4a88(0x27a)](_0x366d67[_0x4a4a88(0x1a0)]);}else _0x508fd1=_0x5de8f6['concat'](_0x1f33a2[_0x52f08e[_0x4a4a88(0x267)]]);}catch(_0xe9ee5b){if(_0x366d67[_0x4a4a88(0x22e)](_0x366d67[_0x4a4a88(0x26e)],_0x366d67[_0x4a4a88(0x1ff)]))return[!![],_0x1f40a0];else{logger[_0x4a4a88(0x27a)](_0x366d67[_0x4a4a88(0x205)]);throw _0xe9ee5b;}}}async['isVPCPresent'](_0x487771){const _0x304d91=a3_0x2d8898,_0xcb9c16={};_0xcb9c16[_0x304d91(0x210)]=_0x304d91(0x1ee),_0xcb9c16[_0x304d91(0x177)]=function(_0x5503fa,_0x3582ea){return _0x5503fa===_0x3582ea;},_0xcb9c16[_0x304d91(0x1a6)]=_0x304d91(0x14b),_0xcb9c16[_0x304d91(0x27f)]=function(_0x1f5290,_0x2c646d){return _0x1f5290>_0x2c646d;},_0xcb9c16[_0x304d91(0x154)]=function(_0x3643b9,_0x18d80a){return _0x3643b9===_0x18d80a;},_0xcb9c16[_0x304d91(0x1ca)]=function(_0x557c4c,_0x18d5b7){return _0x557c4c!==_0x18d5b7;},_0xcb9c16[_0x304d91(0x1d7)]=_0x304d91(0x150);const _0x8cc19a=_0xcb9c16;try{if(_0x8cc19a[_0x304d91(0x177)](_0x8cc19a[_0x304d91(0x1a6)],_0x8cc19a['WrOIB'])){const _0x11b590=await this['networkClient'][_0x304d91(0x1e2)]({'project':this[_0x304d91(0x1cc)],'network':_0x487771});if(_0x8cc19a[_0x304d91(0x27f)](_0x11b590['length'],0x0)&&_0x8cc19a[_0x304d91(0x154)](_0x11b590[0x0][_0x304d91(0x244)],_0x487771))return _0x8cc19a[_0x304d91(0x1ca)](_0x8cc19a['Dzysd'],_0x8cc19a[_0x304d91(0x1d7)])?!![]:!![];}else _0x537e7b[_0x304d91(0x27a)](_0x8cc19a[_0x304d91(0x210)]);}catch(_0x2d6559){return![];}return![];}async['isSubnetsValid'](_0x95b3ef,_0x47e18a){const _0x1279e9=a3_0x2d8898,_0x451966={};_0x451966['GpoBE']=function(_0x24aece,_0x1e8d65){return _0x24aece===_0x1e8d65;};const _0x12fae1=_0x451966;try{const _0xca2b46=await this[_0x1279e9(0x262)][_0x1279e9(0x1e2)]({'project':this[_0x1279e9(0x1cc)],'network':_0x47e18a});for(const _0x1a137a of _0xca2b46[0x0][_0x1279e9(0x17a)]){const _0x4c580c=_0x1279e9(0x1fb)+this[_0x1279e9(0x1cc)]+_0x1279e9(0x27e)+global_registry['clusterRegion']+_0x1279e9(0x145)+_0x95b3ef[0x0];if(_0x12fae1[_0x1279e9(0x179)](_0x4c580c,_0x1a137a))return[!![],_0x95b3ef];}}catch(_0x1386a1){return logger['error'](_0x1279e9(0x261)+_0x95b3ef+_0x1279e9(0x181)+_0x1386a1),[![],[]];}return[![],[]];}async[a3_0x2d8898(0x236)](){const _0xbb352f=a3_0x2d8898,_0x29d99b=await this['networkClient']['list']({'project':this[_0xbb352f(0x1cc)]}),_0x1e9f97={};_0x1e9f97['username']=global_registry[_0xbb352f(0x16c)],_0x1e9f97[_0xbb352f(0x197)]=global_registry[_0xbb352f(0x1dc)],_0x1e9f97['cloudProvider']=GCP,_0x1e9f97[_0xbb352f(0x185)]=[];const _0x3eae13=_0x1e9f97;for(const _0x28e72d of _0x29d99b){_0x3eae13[_0xbb352f(0x185)][_0xbb352f(0x1c7)](_0x28e72d);}const _0x17ee93={};_0x17ee93[_0xbb352f(0x284)]=WS_EVENTS[_0xbb352f(0x19f)],_0x17ee93['message']=_0x3eae13,this[_0xbb352f(0x247)][_0xbb352f(0x22c)](this['rws'],_0x17ee93);}async[a3_0x2d8898(0x170)](){const _0x26c7f9=a3_0x2d8898,_0x164bb0={'GtSQy':function(_0x46ae8c,_0x1727da,_0xd9ee07){return _0x46ae8c(_0x1727da,_0xd9ee07);},'Tpwfk':_0x26c7f9(0x224),'GkhzN':_0x26c7f9(0x207),'VLIqK':function(_0x32388b,_0x1248bd,_0x4daff5){return _0x32388b(_0x1248bd,_0x4daff5);}},_0x2679ed=_0x26c7f9(0x24c)+AG_API_URL+_0x26c7f9(0x25d),_0x2e73fc={};_0x2e73fc['profileId']=global_registry[_0x26c7f9(0x29e)];const _0xfd4b8={};_0xfd4b8[_0x26c7f9(0x232)]=global_registry['clusterRegion'];const _0x3dab00={'searchParams':_0x2e73fc,'json':_0xfd4b8,'headers':_0x164bb0[_0x26c7f9(0x15b)](getAuthHeader,global_registry[_0x26c7f9(0x16c)],global_registry[_0x26c7f9(0x1dc)]),'method':_0x164bb0[_0x26c7f9(0x289)],'responseType':_0x164bb0[_0x26c7f9(0x258)],'throwHttpErrors':![]},_0x468c12=await _0x164bb0[_0x26c7f9(0x156)](got,_0x2679ed,_0x3dab00);}}function a3_0x34c1(){const _0x139386=['CxtZR','aGCrZ','VlUSF','utf-8','ZUEGS','minNodes','checkServiceAccount','gke_','14021950UvWGZM','deleteCluster','xTQwU','hdXMK','cJaYd','info','storage.objects.get','join','NetworksClient','/regions/','pnThD','QEBDM','organizations','xDgBO','tMdFP','type','uJoDB','xacxI','got','lcGTt','Tpwfk','isClusterPresent','DgjPG','AjdaC','machineType','listClusters','storage.buckets.getObjectInsights','KpmYq','aWGKA','nodePools','poHYU','endpoint','RThvL','/global/networks/','CPcVf','hYpVF','ijhhq','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','bBRTL','storage.buckets.setIamPolicy','../utils/userInput','gridProfileId','ClusterManagerClient','keyFile','/roles/','./CloudProvider','Turboscale\x20Custom\x20Role','IdbnW','UdOPI','4vDrBFq','ixPsj','\x20--windows-os-version=ltsc2022\x20--region\x20','WhUUA','subnetwork','resourceLabels','/clusters/','mxwXN','wCswg','DOCmk','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','auth','/subnetworks/','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','1ULZnep','Creating\x20GKE\x20Cluster','updateWindowsNodeGroup','QkfJl','Rptkg','CpZrq','Found\x20cluster\x20with\x20name\x20\x27','util','GOFcW','sFoRS','configureIfNotConfigured','BNYhW','storage.objects.list','zgGqf','credentialsPath','VLIqK','storage.multipartUploads.list','bCqpe','lCUsD','Yipyp','GtSQy','NraSC','sendResourceDataToHST','ZAQxD','6609915WUqPHl','storage.buckets.listEffectiveTags','uFLDo','minNodeCount','svdEq','getKubeConfigData','toLowerCase','xedEn','cyveY','RhFru','mpMdt','ebrGl','lpkiC','bstackUsername','UpeMP','BqQHB','GVCuO','updateClusterRegion','mYQxt','upcXH','projects','IKbib','DONE','aDxmT','EoRJq','MrWsb','GpoBE','subnetworks','GKE\x20Cluster\x20deletion\x20failed','bqIJw','resourcemanagerClient','@google-cloud/container','ZHEdn','containerClient','.\x20Error:\x20','AcNYF','members','../config/logger','vpcInfo','FVcos','projects/','MPFzs','length','scopes','cloudProvider','VlkYn','ifqDd','UguRM','storage.buckets.delete','path','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','getUserInput','QPWib','bindings','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','status','accessKey','customRoleName','kGheO','storage.objects.update','235403nRitov','../utils/utilityMethods','oMvYW','clusterName','RESOURCES','kaNsT','locations','loadBalancer','exec','default','replace','WrOIB','templates','EIOSp','iQbJq','ClmfM','title','https://www.googleapis.com/auth/cloud-platform','baNNR','ciqzn','eXezc','autoscaling','octRo','DyAUR','VZXsT','child_process','GNnDA','3532845MznxWs','JheWq','clusterCaCertificate','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','VgWUn','writeFileSync','vrhGt','cloudProviderName','concat','GBJWa','isBrowserstackCluster','config','includedPermissions','Xctpt','UwDWW','error','../utils/gridComponents','push','ZJbtp','getIamPolicy','aNsyt','serviceAccountName','projectId','delay','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','GGYvs','gcloud\x20auth\x20login\x20--cred-file=','egMfq','data','masterAuth','managedby','setupServiceAccount','aZaxj','Dzysd','../config/constants','Deleting\x20the\x20cluster\x20','getClient','elIOC','bstackAccesskey','mGgGd','\x20--quiet\x20--user-output-enabled=false','.iam.gserviceaccount.com','PVZTb','Emiyl','get','storage.buckets.listTagBindings','LeNRF','serviceAccounts','iam.serviceAccounts.signBlob','setCachedCredsInRegistry','nUyoy','TtsiA','storage.objects.delete','HEHwY','oHCJC','parent','Cluster\x20creation\x20failed','zZAWz','clusters','log','FYEHU','gkecluster.json','create','vJiHP','storage.objects.getIamPolicy','3|1|4|0|5|2','RUNNING','137955FuGJcy','66tPEHFo','https://www.googleapis.com/compute/v1/projects/','hECBj','VwfZW','eYBeV','fTCnq','readFileAsync','gcp_credentials.json','serviceAccount','rkBdV','CrVln','djIyI','getCluster','json','Cluster\x20deletion\x20completed','KubeConfigTemplate.yaml','GAUYb','cFJja','zGtJJ','xnPJm','CrZSG','nLYQl','VqDlZ','xkcri','/locations/','exports','requestBody','storage.buckets.list','EByun','hzOXf','message','storage.buckets.getIamPolicy','storage.objects.setIamPolicy','init','pybVv','hLvVw','dTNBk','storage.objects.create','udJDR','split','SpeTr','accounts','PUT','1359278PDzTTd','gcpresources','6232080PgWTuT','iamClient','kxUaW','PLMWH','tpZQA','sendEventToBackend','gDlUq','aeqla','KedfE','storage.buckets.createTagBinding','wmjwm','newRegion','ijSNd','exit','qwqeP','sendGCPInfoToHST','IeRMf','tAhxY','QiWdq','project_id','OYfaz','rsGSc','@google-cloud/compute','execSync','nhHNW','storage.multipartUploads.abort','aaFHj','rws','parse','name','maxNodeCount','regionmap.json','webSocketUtils','oIdfD','cZAtB','ENFuC','nnGRV','https://','Service\x20account\x20already\x20exists,\x20skipping','storage.multipartUploads.create','stack','oApLM','Ssrsl','ZvMpy','setIamPolicy','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','getClusterInfo','vVPze','UFrOM','GkhzN','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','toString','GoogleCloudProvider','@google-cloud/resource-manager','/packages/cli/update-cluster-region','ALwgQ','CttRL','Yniqd','Cannot\x20find\x20subnets\x20','networkClient','qGweq','instanceType','/serviceAccounts/','ZUrYU','clusterRegion','JMJeP','accountId','maxNodes','vEOHY','vfNWV'];a3_0x34c1=function(){return _0x139386;};return a3_0x34c1();}const a3_0x1df684={};a3_0x1df684[a3_0x2d8898(0x25b)]=GoogleCloudProvider,module[a3_0x2d8898(0x213)]=a3_0x1df684;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x4f412f=a4_0x567b;(function(_0xf52e45,_0x5bc86f){const _0x248737=a4_0x567b,_0x2a9d1b=_0xf52e45();while(!![]){try{const _0x1dedfd=parseInt(_0x248737(0xed))/0x1*(parseInt(_0x248737(0xf2))/0x2)+-parseInt(_0x248737(0xfa))/0x3+-parseInt(_0x248737(0xfc))/0x4+parseInt(_0x248737(0xef))/0x5*(parseInt(_0x248737(0x105))/0x6)+-parseInt(_0x248737(0x106))/0x7*(parseInt(_0x248737(0x103))/0x8)+parseInt(_0x248737(0xff))/0x9+-parseInt(_0x248737(0xfe))/0xa;if(_0x1dedfd===_0x5bc86f)break;else _0x2a9d1b['push'](_0x2a9d1b['shift']());}catch(_0x3b2086){_0x2a9d1b['push'](_0x2a9d1b['shift']());}}}(a4_0xf0a6,0x4e4b0));function a4_0x567b(_0x405d9a,_0x139b85){const _0xf0a60c=a4_0xf0a6();return a4_0x567b=function(_0x567b7a,_0x54968d){_0x567b7a=_0x567b7a-0xea;let _0x27f7b6=_0xf0a60c[_0x567b7a];return _0x27f7b6;},a4_0x567b(_0x405d9a,_0x139b85);}const {AWSCloudProvider}=require(a4_0x4f412f(0x101)),{GoogleCloudProvider}=require(a4_0x4f412f(0xf4)),{installAzurePackages}=require('../utils/utilityMethods'),{AWS,AZURE,GCP,messageTypes}=require(a4_0x4f412f(0xf5)),{sendInstrumentationEvent}=require(a4_0x4f412f(0xf8)),{logger}=require('../config/logger');function a4_0xf0a6(){const _0x410d87=['versions','47856SjejWj','grid-spawning-failed','1670576azRzSA','FhPlC','4233140hPgzcn','4995972MJoJjT','veaUp','./AWS','node','184dBvnpd','init','502986SAhpvS','23681MXGyqJ','eGfGI','BFjMp','CTiAF','1DSqveQ','./Azure','10cIdvEM','getCloudProviderObject','error','1065274YpYAut','Current\x20Node.js\x20version\x20','./GoogleCloudProvider','../config/constants','exit','Unknown\x20cloud\x20provider\x20found\x20-\x20','../utils/instrumentationUtils'];a4_0xf0a6=function(){return _0x410d87;};return a4_0xf0a6();}exports[a4_0x4f412f(0xf0)]=async(_0x313bc1,_0x2b58a8,_0x1b8704,_0x30a486,_0x157db5,_0xcec9c4)=>{const _0x1edb9b=a4_0x4f412f,_0x53c80d={'pZUyZ':function(_0x1c10e2){return _0x1c10e2();},'veaUp':function(_0x4cf526,_0x34d9c7){return _0x4cf526(_0x34d9c7);},'CTiAF':_0x1edb9b(0xee),'FhPlC':function(_0x14a084,_0x3c5915,_0x5964c8,_0x24bf50,_0x375b05,_0xf8ab18,_0x2cff68){return _0x14a084(_0x3c5915,_0x5964c8,_0x24bf50,_0x375b05,_0xf8ab18,_0x2cff68);},'BFjMp':'create-grid-called','eGfGI':_0x1edb9b(0xfb)};switch(_0x313bc1){case AWS:{const _0x36ca0b=new AWSCloudProvider(_0x2b58a8,_0x1b8704,_0x30a486,_0x157db5);return await _0x36ca0b[_0x1edb9b(0x104)]();}case GCP:{const _0x21b624=new GoogleCloudProvider(_0x2b58a8,_0x1b8704,_0x30a486,_0x157db5);return await _0x21b624[_0x1edb9b(0x104)]();}case AZURE:{try{await _0x53c80d['pZUyZ'](installAzurePackages);const {AzureCloudProvider:_0x31942a}=_0x53c80d[_0x1edb9b(0x100)](require,_0x53c80d[_0x1edb9b(0xec)]),_0x346e9e=new _0x31942a(_0x2b58a8,_0x1b8704,_0x30a486,_0x157db5);return await _0x346e9e[_0x1edb9b(0x104)]();}catch(_0x3bdfc7){const _0x32592c=_0x1edb9b(0xf3)+process[_0x1edb9b(0xf9)][_0x1edb9b(0x102)]+'\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure';logger[_0x1edb9b(0xf1)](_0x32592c);const _0x57d131={};_0x57d131[_0x1edb9b(0xf1)]=_0x32592c,await _0x53c80d[_0x1edb9b(0xfd)](sendInstrumentationEvent,_0xcec9c4,_0x53c80d[_0x1edb9b(0xeb)],messageTypes['ERROR'],_0x53c80d[_0x1edb9b(0xea)],_0x57d131,_0xcec9c4),process[_0x1edb9b(0xf6)](0x1);}}default:logger[_0x1edb9b(0xf1)](_0x1edb9b(0xf7)+_0x313bc1),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x358dd1=a5_0x2dc9;(function(_0x5159bd,_0x526466){const _0x1b2210=a5_0x2dc9,_0x18098c=_0x5159bd();while(!![]){try{const _0x5dd969=parseInt(_0x1b2210(0x1b6))/0x1+parseInt(_0x1b2210(0x1c8))/0x2+-parseInt(_0x1b2210(0x1ce))/0x3+parseInt(_0x1b2210(0x1c3))/0x4*(-parseInt(_0x1b2210(0x1bb))/0x5)+-parseInt(_0x1b2210(0x1a9))/0x6+-parseInt(_0x1b2210(0x189))/0x7+-parseInt(_0x1b2210(0x19f))/0x8*(-parseInt(_0x1b2210(0x1c2))/0x9);if(_0x5dd969===_0x526466)break;else _0x18098c['push'](_0x18098c['shift']());}catch(_0x335e3b){_0x18098c['push'](_0x18098c['shift']());}}}(a5_0x2b46,0x302c9));const fs=require('fs'),got=require(a5_0x358dd1(0x1a5)),{v4:uuidv4}=require(a5_0x358dd1(0x193)),{inputConfirmation,closeInput}=require(a5_0x358dd1(0x197)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x358dd1(0x1da)),{getCredentialsPath,getAuthHeader}=require(a5_0x358dd1(0x1b7)),{sendInstrumentationEvent}=require(a5_0x358dd1(0x1dd));function a5_0x2dc9(_0xa89fa,_0x205ef4){const _0x2b46c5=a5_0x2b46();return a5_0x2dc9=function(_0x2dc969,_0x408544){_0x2dc969=_0x2dc969-0x179;let _0x564869=_0x2b46c5[_0x2dc969];return _0x564869;},a5_0x2dc9(_0xa89fa,_0x205ef4);}exports['command']=a5_0x358dd1(0x1be),exports[a5_0x358dd1(0x1ca)]=a5_0x358dd1(0x19d),exports[a5_0x358dd1(0x1ae)]=function(_0x136d24){const _0x5bc06f=a5_0x358dd1,_0xdb63d7={};_0xdb63d7[_0x5bc06f(0x19c)]=_0x5bc06f(0x181);const _0x153238=_0xdb63d7;return _0x136d24[_0x5bc06f(0x1d9)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)['help'](_0x153238[_0x5bc06f(0x19c)])[_0x5bc06f(0x1de)]()[_0x5bc06f(0x1a1)]()[_0x5bc06f(0x1d2)];},exports['handler']=async function(_0x548eae){const _0x5ce34e=a5_0x358dd1,_0x34c0a3={'Lpjfm':function(_0x45fca0){return _0x45fca0();},'TjPlV':function(_0x3ad494){return _0x3ad494();},'WNTRO':_0x5ce34e(0x1c6),'KZkel':function(_0x3ba7d6,_0x5c4425,_0x5b3778,_0x197e55,_0x295e70,_0x540506,_0x1931d1){return _0x3ba7d6(_0x5c4425,_0x5b3778,_0x197e55,_0x295e70,_0x540506,_0x1931d1);},'nndgH':'configure-called','pOaFi':_0x5ce34e(0x188),'TIKKt':function(_0x13d0b4,_0x5d1b67,_0x37ed71,_0x106bf2,_0x894adb,_0x59af37,_0x1ce74f){return _0x13d0b4(_0x5d1b67,_0x37ed71,_0x106bf2,_0x894adb,_0x59af37,_0x1ce74f);},'OVETr':function(_0x4cea08){return _0x4cea08();},'vJzaK':_0x5ce34e(0x1d6),'jSWEm':function(_0x132222,_0x3ee66e,_0x565045){return _0x132222(_0x3ee66e,_0x565045);},'DkhnB':function(_0x2b9249,_0x51af31,_0x48cebe){return _0x2b9249(_0x51af31,_0x48cebe);},'caTZG':function(_0x508992,_0xf5c24){return _0x508992!==_0xf5c24;},'tHUbl':function(_0x2b7cee,_0x348ff1){return _0x2b7cee===_0x348ff1;},'pnaHS':_0x5ce34e(0x1a0),'QOOgp':_0x5ce34e(0x1bc),'foLjc':function(_0x45e370,_0x2f24f8){return _0x45e370(_0x2f24f8);},'cfhVT':_0x5ce34e(0x17b),'uBwxS':function(_0x4efeb1,_0x4c97cd){return _0x4efeb1===_0x4c97cd;},'ILAPr':function(_0x6891d3,_0x153c44){return _0x6891d3===_0x153c44;},'cpUnc':function(_0x3c2d72,_0x596420){return _0x3c2d72===_0x596420;},'oFdYx':_0x5ce34e(0x17f),'TofeI':_0x5ce34e(0x1d0),'XWasG':_0x5ce34e(0x1bd),'MjOMH':function(_0xecdcff,_0x27a94e){return _0xecdcff<_0x27a94e;},'JuFnR':function(_0x4f55e2,_0x457d19){return _0x4f55e2+_0x457d19;},'hcyjq':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','nzcnK':function(_0x5c4bf5,_0x2f56da){return _0x5c4bf5(_0x2f56da);},'DDvkH':function(_0xe3c7f4,_0x5e5142){return _0xe3c7f4(_0x5e5142);},'SOTdi':function(_0x157aa8,_0x4d01aa){return _0x157aa8<=_0x4d01aa;},'iTlPY':function(_0x2fcd2e,_0x499fd9){return _0x2fcd2e>_0x499fd9;},'PFJug':_0x5ce34e(0x1ba),'udCKZ':function(_0x219998){return _0x219998();},'INHjK':function(_0x5e291d,_0x4baf68){return _0x5e291d-_0x4baf68;},'ogDCH':_0x5ce34e(0x1a8),'HpVTw':_0x5ce34e(0x1db),'BboRN':function(_0x1d1856,_0x4c0e7c,_0x1bf4e5){return _0x1d1856(_0x4c0e7c,_0x1bf4e5);},'eWNjO':function(_0x12b119,_0xe5069f){return _0x12b119!==_0xe5069f;},'nPeOE':function(_0x20e398,_0x1c2a39){return _0x20e398!==_0x1c2a39;},'DwJGi':_0x5ce34e(0x191),'HcwMd':function(_0x465ab2,_0x341204){return _0x465ab2===_0x341204;},'QilfQ':'Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','vtnzy':_0x5ce34e(0x183),'yfxUn':function(_0x1779df,_0x3d3a73,_0x1a4c2c,_0x5354e8,_0x3f60a3,_0x59729d,_0x171764){return _0x1779df(_0x3d3a73,_0x1a4c2c,_0x5354e8,_0x3f60a3,_0x59729d,_0x171764);},'HQkhq':_0x5ce34e(0x17c),'tTGeA':_0x5ce34e(0x1dc),'iGwHv':function(_0x5101fd,_0x4d8968,_0x1536e7,_0x3a1c23,_0x545ce7,_0x54b4d3,_0x5c2f38){return _0x5101fd(_0x4d8968,_0x1536e7,_0x3a1c23,_0x545ce7,_0x54b4d3,_0x5c2f38);},'WGQRO':function(_0x17c059,_0x87b307,_0x3faff7,_0x4f17ea,_0x14b4bd,_0x5a3fd3,_0x51ca1a){return _0x17c059(_0x87b307,_0x3faff7,_0x4f17ea,_0x14b4bd,_0x5a3fd3,_0x51ca1a);},'VXjWJ':function(_0x57a194,_0xa7784f,_0x1a50cd,_0x2e9d5b,_0x783c3b,_0x3b67c4,_0x1a7813){return _0x57a194(_0xa7784f,_0x1a50cd,_0x2e9d5b,_0x783c3b,_0x3b67c4,_0x1a7813);},'axqjz':_0x5ce34e(0x19a)};try{global_registry['requestId']=_0x34c0a3[_0x5ce34e(0x1a3)](uuidv4);const _0x22a6bb=_0x5ce34e(0x1b3)+AG_API_URL+'/packages/cli/configure';!fs[_0x5ce34e(0x1a4)](_0x34c0a3[_0x5ce34e(0x1af)](getCredentialsPath))&&(console['error'](_0x34c0a3[_0x5ce34e(0x1d8)]),await _0x34c0a3[_0x5ce34e(0x1b4)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x184)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1));await _0x34c0a3[_0x5ce34e(0x18e)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x1cb)],null,null,_0x548eae);const _0x58b300=JSON['parse'](fs[_0x5ce34e(0x1a7)](_0x34c0a3[_0x5ce34e(0x1df)](getCredentialsPath))),_0x25892f={'method':_0x34c0a3['vJzaK'],'headers':_0x34c0a3[_0x5ce34e(0x1b0)](getAuthHeader,_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1cd)],_0x58b300['Browserstack'][_0x5ce34e(0x1a2)]),'throwHttpErrors':![]},_0x21ec90=await _0x34c0a3['DkhnB'](got,_0x22a6bb,_0x25892f);if(_0x34c0a3['caTZG'](_0x21ec90,null)&&_0x34c0a3[_0x5ce34e(0x1e1)](_0x21ec90,undefined)&&_0x34c0a3[_0x5ce34e(0x1ad)](_0x21ec90[_0x5ce34e(0x17d)],0xc8)){const _0xebed5=JSON['parse'](_0x21ec90[_0x5ce34e(0x1ac)]);console[_0x5ce34e(0x194)](_0x34c0a3[_0x5ce34e(0x1ab)]),console['log'](_0x34c0a3[_0x5ce34e(0x18b)]),console[_0x5ce34e(0x194)](_0x5ce34e(0x1aa)+_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1cd)]),console['log'](_0x5ce34e(0x1c0)+_0xebed5[_0x5ce34e(0x187)][_0x5ce34e(0x195)]);const _0x1b57d4=await _0x34c0a3[_0x5ce34e(0x1cc)](inputConfirmation,_0x34c0a3['cfhVT']);(_0x34c0a3[_0x5ce34e(0x17e)](_0x1b57d4,undefined)||_0x34c0a3[_0x5ce34e(0x18a)](_0x1b57d4,null)||!(_0x34c0a3['cpUnc'](_0x1b57d4[_0x5ce34e(0x1b2)](),'y')||_0x34c0a3[_0x5ce34e(0x17e)](_0x1b57d4['toLowerCase'](),'n')))&&(console['error'](_0x34c0a3[_0x5ce34e(0x1b5)]),await _0x34c0a3['TIKKt'](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3['TofeI'],null,_0x548eae),process['exit'](0x1));_0x34c0a3[_0x5ce34e(0x18a)](_0x1b57d4['toLowerCase'](),'n')&&process[_0x5ce34e(0x1d5)](0x0);console[_0x5ce34e(0x194)](_0x34c0a3[_0x5ce34e(0x18f)]);const _0x76004d=_0xebed5[_0x5ce34e(0x1e0)][_0x5ce34e(0x1d7)];for(let _0x4fdd17=0x0;_0x34c0a3['MjOMH'](_0x4fdd17,_0x76004d);_0x4fdd17+=0x1){console[_0x5ce34e(0x194)]('['+_0x34c0a3[_0x5ce34e(0x180)](_0x4fdd17,0x1)+']\x20'+_0xebed5['list'][_0x4fdd17]['name']);}const _0xdbfd5b=await _0x34c0a3['foLjc'](inputConfirmation,_0x34c0a3[_0x5ce34e(0x1c4)]),_0x2362c6=_0x34c0a3['nzcnK'](Number,_0xdbfd5b);(_0x34c0a3[_0x5ce34e(0x179)](isNaN,_0x2362c6)||_0x34c0a3[_0x5ce34e(0x1d1)](_0x2362c6,0x0)||_0x34c0a3['iTlPY'](_0x2362c6,_0x76004d))&&(console[_0x5ce34e(0x1d4)](_0x34c0a3[_0x5ce34e(0x1b5)]),await _0x34c0a3[_0x5ce34e(0x1b4)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes['ERROR'],_0x34c0a3[_0x5ce34e(0x19b)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1));_0x34c0a3['udCKZ'](closeInput);const _0x294d32=_0xebed5['list'][_0x34c0a3[_0x5ce34e(0x198)](_0x2362c6,0x1)]['id'],_0xf338cd={};_0xf338cd[_0x5ce34e(0x1b9)]=_0x294d32;const _0xd14662={'method':_0x34c0a3[_0x5ce34e(0x19e)],'headers':_0x34c0a3[_0x5ce34e(0x199)](getAuthHeader,_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1cd)],_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1a2)]),'json':_0xf338cd,'responseType':_0x34c0a3[_0x5ce34e(0x192)],'throwHttpErrors':![]},_0x2be90c=await _0x34c0a3['BboRN'](got,_0x22a6bb,_0xd14662);_0x34c0a3[_0x5ce34e(0x1bf)](_0x2be90c,null)&&_0x34c0a3[_0x5ce34e(0x182)](_0x2be90c,undefined)&&_0x34c0a3[_0x5ce34e(0x18a)](_0x2be90c['statusCode'],0xc8)&&(console['log'](_0x34c0a3['DwJGi']),process[_0x5ce34e(0x1d5)](0x0)),_0x34c0a3[_0x5ce34e(0x190)](_0x2be90c[_0x5ce34e(0x17d)],0x191)&&(console[_0x5ce34e(0x1d4)](_0x34c0a3[_0x5ce34e(0x1d3)]),await _0x34c0a3[_0x5ce34e(0x1b4)](sendInstrumentationEvent,_0x548eae,_0x34c0a3['nndgH'],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1c7)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1)),console[_0x5ce34e(0x1d4)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x5ce34e(0x196)](_0x2be90c)),await _0x34c0a3[_0x5ce34e(0x18d)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1c9)],_0x2be90c,_0x548eae),process['exit'](0x1);}_0x34c0a3[_0x5ce34e(0x190)](_0x21ec90['statusCode'],0x191)&&(console[_0x5ce34e(0x1d4)](_0x34c0a3[_0x5ce34e(0x1b8)]),await _0x34c0a3[_0x5ce34e(0x1a6)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1c7)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1)),console[_0x5ce34e(0x1d4)](_0x5ce34e(0x18c)+JSON[_0x5ce34e(0x196)](_0x21ec90)),await _0x34c0a3[_0x5ce34e(0x1c1)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3['HQkhq'],_0x21ec90,_0x548eae),process['exit'](0x1);}catch(_0x205d94){console[_0x5ce34e(0x1d4)](_0x5ce34e(0x1b1)+_0x205d94[_0x5ce34e(0x17a)]),await _0x34c0a3[_0x5ce34e(0x186)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1e2)],_0x205d94,_0x548eae),process[_0x5ce34e(0x1d5)](0x1);}};function a5_0x2b46(){const _0x6fc5c9=['got','iGwHv','readFileSync','PUT','1374402uBRdOB','\x20\x20username:\x20','pnaHS','body','tHUbl','builder','TjPlV','jSWEm','Failed\x20to\x20configure\x20resources!\x20Error:\x20','toLowerCase','https://','KZkel','oFdYx','106955syCMFU','../utils/utilityMethods','tTGeA','profileId','invalid-selection','104610pNBeAV','core:','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','configure','eWNjO','\x20\x20grid-profile:\x20','WGQRO','315TcKbmU','12FFDqGU','hcyjq','nndgH','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vtnzy','91728TIfBmd','HQkhq','desc','INFO','foLjc','username','482307KlWgyb','Browserstack','invalid-input','SOTdi','argv','QilfQ','error','exit','GET','length','WNTRO','usage','../config/constants','json','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../utils/instrumentationUtils','recommendCommands','OVETr','list','caTZG','axqjz','DDvkH','stack','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','server-error','statusCode','uBwxS','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','JuFnR','help','nPeOE','unauthorised','pOaFi','ERROR','VXjWJ','active','init-not-called','885437OsSKYV','ILAPr','QOOgp','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','yfxUn','TIKKt','XWasG','HcwMd','Updated\x20default\x20Grid\x20Profile\x20successfully','HpVTw','uuid','log','name','stringify','../utils/userInput','INHjK','DkhnB','unknown-error','PFJug','isbeI','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','ogDCH','142536LXJnRu','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','strict','password','Lpjfm','existsSync'];a5_0x2b46=function(){return _0x6fc5c9;};return a5_0x2b46();}
|
|
1
|
+
function a5_0x5a9a(_0x2ce8ea,_0x3df596){const _0x5bf583=a5_0x5bf5();return a5_0x5a9a=function(_0x5a9a23,_0x21e6a8){_0x5a9a23=_0x5a9a23-0x188;let _0x13fd13=_0x5bf583[_0x5a9a23];return _0x13fd13;},a5_0x5a9a(_0x2ce8ea,_0x3df596);}const a5_0x59a2f4=a5_0x5a9a;(function(_0x22159b,_0x5905cd){const _0x962908=a5_0x5a9a,_0x644cd6=_0x22159b();while(!![]){try{const _0x181594=parseInt(_0x962908(0x1de))/0x1+-parseInt(_0x962908(0x1b8))/0x2+-parseInt(_0x962908(0x1ed))/0x3+parseInt(_0x962908(0x1be))/0x4*(parseInt(_0x962908(0x1ec))/0x5)+parseInt(_0x962908(0x1cd))/0x6*(parseInt(_0x962908(0x1aa))/0x7)+-parseInt(_0x962908(0x18b))/0x8*(parseInt(_0x962908(0x1e0))/0x9)+parseInt(_0x962908(0x1e8))/0xa*(parseInt(_0x962908(0x18e))/0xb);if(_0x181594===_0x5905cd)break;else _0x644cd6['push'](_0x644cd6['shift']());}catch(_0x2e4714){_0x644cd6['push'](_0x644cd6['shift']());}}}(a5_0x5bf5,0x3cb88));const fs=require('fs'),got=require(a5_0x59a2f4(0x1a7)),{v4:uuidv4}=require(a5_0x59a2f4(0x1a5)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x59a2f4(0x18c)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a5_0x59a2f4(0x1da)]=a5_0x59a2f4(0x1ef),exports[a5_0x59a2f4(0x1dc)]=a5_0x59a2f4(0x1a0),exports[a5_0x59a2f4(0x1ae)]=function(_0x12cf2d){const _0x537938=a5_0x59a2f4,_0x374a63={};_0x374a63[_0x537938(0x1df)]=_0x537938(0x188);const _0x305399=_0x374a63;return _0x12cf2d[_0x537938(0x1c3)](HELP_HEADER_MESSAGE[_0x537938(0x1ef)])[_0x537938(0x1a6)](HELP_FOOTER_MESSAGE)[_0x537938(0x188)](_0x305399[_0x537938(0x1df)])[_0x537938(0x1d1)]()['strict']()[_0x537938(0x1a4)];},exports[a5_0x59a2f4(0x19a)]=async function(_0x1184b8){const _0x2d2815=a5_0x59a2f4,_0x473039={'WAZfV':function(_0x4a1d50){return _0x4a1d50();},'BflKs':_0x2d2815(0x1bc),'FYBIQ':function(_0x93c271,_0x7a96b6,_0x3aa3f5,_0x26cbe4,_0x27684e,_0x1a2a4b,_0x149856){return _0x93c271(_0x7a96b6,_0x3aa3f5,_0x26cbe4,_0x27684e,_0x1a2a4b,_0x149856);},'vHWEy':_0x2d2815(0x189),'Jzrwz':_0x2d2815(0x19e),'JiRTa':_0x2d2815(0x1e3),'gqPJa':function(_0x23e89d,_0x17e568,_0x515601){return _0x23e89d(_0x17e568,_0x515601);},'rqKHm':function(_0x4282bb,_0x43491f){return _0x4282bb!==_0x43491f;},'MlYhr':function(_0x54582e,_0x3de676){return _0x54582e===_0x3de676;},'RMubI':_0x2d2815(0x1d4),'QvhSi':_0x2d2815(0x1d9),'sBPwk':function(_0x12dc0b,_0x42d5ff){return _0x12dc0b(_0x42d5ff);},'geiET':_0x2d2815(0x1ab),'LgeBk':function(_0x59e128,_0x487825){return _0x59e128===_0x487825;},'vbNpy':function(_0x3e9b43,_0x570194){return _0x3e9b43===_0x570194;},'dDxKY':function(_0x1e974b,_0xed241){return _0x1e974b===_0xed241;},'euZMw':_0x2d2815(0x1eb),'MvOSA':_0x2d2815(0x1b4),'JQaqM':_0x2d2815(0x19b),'WDYxh':function(_0x4bf5be,_0xbac8f3){return _0x4bf5be<_0xbac8f3;},'UDFDX':function(_0x1bd22e,_0x54fb6d){return _0x1bd22e+_0x54fb6d;},'FCKao':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','PlUqh':function(_0x2cd2cd,_0x2a5e42){return _0x2cd2cd<=_0x2a5e42;},'BiYDa':function(_0x4d380e,_0xe5a245){return _0x4d380e>_0xe5a245;},'YUxZI':function(_0x4e9995,_0x2d055e,_0x501819,_0x482ca1,_0x173ed9,_0x26db39,_0x483a98){return _0x4e9995(_0x2d055e,_0x501819,_0x482ca1,_0x173ed9,_0x26db39,_0x483a98);},'VdJqK':'invalid-selection','kfzXr':function(_0x252978,_0x55a64d){return _0x252978-_0x55a64d;},'yffwy':_0x2d2815(0x1ca),'egvHD':_0x2d2815(0x1a2),'vWqSa':function(_0x4be796,_0x2f696b){return _0x4be796!==_0x2f696b;},'VgNsB':function(_0x5ab2b6,_0x1c394c){return _0x5ab2b6!==_0x1c394c;},'zWqAp':_0x2d2815(0x1ee),'oTZcm':_0x2d2815(0x1a3),'dXQiQ':function(_0x63e183,_0x28a163,_0x4a822b,_0x30f59b,_0x268176,_0x609a14,_0x5f2c66){return _0x63e183(_0x28a163,_0x4a822b,_0x30f59b,_0x268176,_0x609a14,_0x5f2c66);},'xoFph':_0x2d2815(0x19f),'saWXT':_0x2d2815(0x1bd),'bUhxa':_0x2d2815(0x1b7),'DVoqc':_0x2d2815(0x19c)};try{global_registry[_0x2d2815(0x1c1)]=_0x473039[_0x2d2815(0x1e5)](uuidv4);const _0x315645='https://'+AG_API_URL+_0x2d2815(0x1a1);!fs[_0x2d2815(0x1d3)](_0x473039[_0x2d2815(0x1e5)](getCredentialsPath))&&(console[_0x2d2815(0x1b5)](_0x473039[_0x2d2815(0x1e2)]),await _0x473039[_0x2d2815(0x1dd)](sendInstrumentationEvent,_0x1184b8,_0x473039[_0x2d2815(0x195)],messageTypes[_0x2d2815(0x199)],_0x473039[_0x2d2815(0x1e6)],null,_0x1184b8),process[_0x2d2815(0x1d5)](0x1));await _0x473039[_0x2d2815(0x1dd)](sendInstrumentationEvent,_0x1184b8,_0x473039[_0x2d2815(0x195)],messageTypes['INFO'],null,null,_0x1184b8);const _0x4b1bb2=JSON[_0x2d2815(0x1ea)](fs[_0x2d2815(0x1c6)](_0x473039[_0x2d2815(0x1e5)](getCredentialsPath))),_0x18460f={'method':_0x473039[_0x2d2815(0x1b1)],'headers':_0x473039[_0x2d2815(0x1b0)](getAuthHeader,_0x4b1bb2[_0x2d2815(0x190)][_0x2d2815(0x1ba)],_0x4b1bb2[_0x2d2815(0x190)]['password']),'throwHttpErrors':![]},_0x334b72=await _0x473039[_0x2d2815(0x1b0)](got,_0x315645,_0x18460f);if(_0x473039[_0x2d2815(0x1b9)](_0x334b72,null)&&_0x473039[_0x2d2815(0x1b9)](_0x334b72,undefined)&&_0x473039[_0x2d2815(0x1d0)](_0x334b72[_0x2d2815(0x1c2)],0xc8)){const _0x2fcc89=JSON[_0x2d2815(0x1ea)](_0x334b72[_0x2d2815(0x1c9)]);console[_0x2d2815(0x191)](_0x473039['RMubI']),console[_0x2d2815(0x191)](_0x473039['QvhSi']),console['log'](_0x2d2815(0x18f)+_0x4b1bb2[_0x2d2815(0x190)][_0x2d2815(0x1ba)]),console[_0x2d2815(0x191)](_0x2d2815(0x18a)+_0x2fcc89[_0x2d2815(0x194)][_0x2d2815(0x198)]);const _0x50a72b=await _0x473039['sBPwk'](inputConfirmation,_0x473039[_0x2d2815(0x1ad)]);(_0x473039[_0x2d2815(0x1d0)](_0x50a72b,undefined)||_0x473039['LgeBk'](_0x50a72b,null)||!(_0x473039[_0x2d2815(0x197)](_0x50a72b[_0x2d2815(0x1a8)](),'y')||_0x473039['dDxKY'](_0x50a72b[_0x2d2815(0x1a8)](),'n')))&&(console['error'](_0x473039[_0x2d2815(0x1cb)]),await _0x473039['FYBIQ'](sendInstrumentationEvent,_0x1184b8,_0x473039[_0x2d2815(0x195)],messageTypes['ERROR'],_0x473039[_0x2d2815(0x1c0)],null,_0x1184b8),process[_0x2d2815(0x1d5)](0x1));_0x473039['vbNpy'](_0x50a72b[_0x2d2815(0x1a8)](),'n')&&process[_0x2d2815(0x1d5)](0x0);console[_0x2d2815(0x191)](_0x473039[_0x2d2815(0x196)]);const _0x889847=_0x2fcc89[_0x2d2815(0x1b2)][_0x2d2815(0x1c5)];for(let _0x29d36b=0x0;_0x473039[_0x2d2815(0x1ac)](_0x29d36b,_0x889847);_0x29d36b+=0x1){console[_0x2d2815(0x191)]('['+_0x473039[_0x2d2815(0x19d)](_0x29d36b,0x1)+']\x20'+_0x2fcc89[_0x2d2815(0x1b2)][_0x29d36b][_0x2d2815(0x198)]);}const _0x438dce=await _0x473039['sBPwk'](inputConfirmation,_0x473039[_0x2d2815(0x1a9)]),_0x467c58=_0x473039['sBPwk'](Number,_0x438dce);(_0x473039[_0x2d2815(0x1af)](isNaN,_0x467c58)||_0x473039[_0x2d2815(0x1c4)](_0x467c58,0x0)||_0x473039[_0x2d2815(0x1e1)](_0x467c58,_0x889847))&&(console[_0x2d2815(0x1b5)](_0x473039[_0x2d2815(0x1cb)]),await _0x473039['YUxZI'](sendInstrumentationEvent,_0x1184b8,_0x473039[_0x2d2815(0x195)],messageTypes[_0x2d2815(0x199)],_0x473039[_0x2d2815(0x1e7)],null,_0x1184b8),process[_0x2d2815(0x1d5)](0x1));_0x473039[_0x2d2815(0x1e5)](closeInput);const _0x11e6e2=_0x2fcc89[_0x2d2815(0x1b2)][_0x473039[_0x2d2815(0x1e9)](_0x467c58,0x1)]['id'],_0x12f15e={};_0x12f15e[_0x2d2815(0x1bb)]=_0x11e6e2;const _0x36453b={'method':_0x473039['yffwy'],'headers':_0x473039[_0x2d2815(0x1b0)](getAuthHeader,_0x4b1bb2['Browserstack'][_0x2d2815(0x1ba)],_0x4b1bb2[_0x2d2815(0x190)]['password']),'json':_0x12f15e,'responseType':_0x473039[_0x2d2815(0x1d6)],'throwHttpErrors':![]},_0x3102ef=await _0x473039['gqPJa'](got,_0x315645,_0x36453b);_0x473039[_0x2d2815(0x1d2)](_0x3102ef,null)&&_0x473039[_0x2d2815(0x1b3)](_0x3102ef,undefined)&&_0x473039[_0x2d2815(0x1cf)](_0x3102ef[_0x2d2815(0x1c2)],0xc8)&&(console['log'](_0x473039[_0x2d2815(0x1c8)]),process[_0x2d2815(0x1d5)](0x0)),_0x473039[_0x2d2815(0x1d0)](_0x3102ef[_0x2d2815(0x1c2)],0x191)&&(console[_0x2d2815(0x1b5)](_0x473039[_0x2d2815(0x1e4)]),await _0x473039['dXQiQ'](sendInstrumentationEvent,_0x1184b8,_0x473039[_0x2d2815(0x195)],messageTypes[_0x2d2815(0x199)],_0x473039[_0x2d2815(0x193)],null,_0x1184b8),process['exit'](0x1)),console[_0x2d2815(0x1b5)](_0x2d2815(0x1c7)+JSON[_0x2d2815(0x1db)](_0x3102ef)),await _0x473039[_0x2d2815(0x1d8)](sendInstrumentationEvent,_0x1184b8,_0x473039['vHWEy'],messageTypes['ERROR'],_0x473039[_0x2d2815(0x18d)],_0x3102ef,_0x1184b8),process[_0x2d2815(0x1d5)](0x1);}_0x473039[_0x2d2815(0x1d0)](_0x334b72['statusCode'],0x191)&&(console[_0x2d2815(0x1b5)](_0x473039[_0x2d2815(0x1d7)]),await _0x473039[_0x2d2815(0x1bf)](sendInstrumentationEvent,_0x1184b8,_0x473039[_0x2d2815(0x195)],messageTypes[_0x2d2815(0x199)],_0x473039[_0x2d2815(0x193)],null,_0x1184b8),process[_0x2d2815(0x1d5)](0x1)),console[_0x2d2815(0x1b5)](_0x2d2815(0x1ce)+JSON['stringify'](_0x334b72)),await _0x473039['FYBIQ'](sendInstrumentationEvent,_0x1184b8,_0x473039[_0x2d2815(0x195)],messageTypes[_0x2d2815(0x199)],_0x473039[_0x2d2815(0x18d)],_0x334b72,_0x1184b8),process[_0x2d2815(0x1d5)](0x1);}catch(_0x4b1a50){console[_0x2d2815(0x1b5)](_0x2d2815(0x1cc)+_0x4b1a50[_0x2d2815(0x192)]),await _0x473039[_0x2d2815(0x1dd)](sendInstrumentationEvent,_0x1184b8,_0x473039['vHWEy'],messageTypes['ERROR'],_0x473039[_0x2d2815(0x1b6)],_0x4b1a50,_0x1184b8),process[_0x2d2815(0x1d5)](0x1);}};function a5_0x5bf5(){const _0x316115=['geiET','builder','sBPwk','gqPJa','JiRTa','list','VgNsB','invalid-input','error','DVoqc','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','711698WOkLtn','rqKHm','username','profileId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','server-error','92188gyuLdO','YUxZI','MvOSA','requestId','statusCode','usage','PlUqh','length','readFileSync','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','zWqAp','body','PUT','euZMw','Failed\x20to\x20configure\x20resources!\x20Error:\x20','2658TLnhYi','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','dDxKY','MlYhr','recommendCommands','vWqSa','existsSync','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','exit','egvHD','bUhxa','dXQiQ','core:','command','stringify','desc','FYBIQ','434451IrFEGI','FmPPB','74574lSlBxN','BiYDa','BflKs','GET','oTZcm','WAZfV','Jzrwz','VdJqK','30MkjyPR','kfzXr','parse','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','40XKBHUK','147747feObfX','Updated\x20default\x20Grid\x20Profile\x20successfully','configure','help','configure-called','\x20\x20grid-profile:\x20','264BjeiLX','../config/constants','saWXT','224499aYNYaR','\x20\x20username:\x20','Browserstack','log','stack','xoFph','active','vHWEy','JQaqM','vbNpy','name','ERROR','handler','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','unknown-error','UDFDX','init-not-called','unauthorised','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','/packages/cli/configure','json','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','argv','uuid','epilogue','got','toLowerCase','FCKao','3906mAQluI','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','WDYxh'];a5_0x5bf5=function(){return _0x316115;};return a5_0x5bf5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x17a0(_0x5b8b20,_0x464957){const _0x3ffb3f=a6_0x3ffb();return a6_0x17a0=function(_0x17a0b6,_0x75cce4){_0x17a0b6=_0x17a0b6-0xde;let _0x23e358=_0x3ffb3f[_0x17a0b6];return _0x23e358;},a6_0x17a0(_0x5b8b20,_0x464957);}const a6_0x49d85c=a6_0x17a0;(function(_0x2121fd,_0x2c8eb8){const _0xc3686a=a6_0x17a0,_0x2ce65b=_0x2121fd();while(!![]){try{const _0x33c1c0=parseInt(_0xc3686a(0xde))/0x1*(parseInt(_0xc3686a(0xee))/0x2)+parseInt(_0xc3686a(0xe7))/0x3*(-parseInt(_0xc3686a(0xef))/0x4)+parseInt(_0xc3686a(0xec))/0x5+parseInt(_0xc3686a(0xf4))/0x6*(-parseInt(_0xc3686a(0xe4))/0x7)+-parseInt(_0xc3686a(0xf2))/0x8*(-parseInt(_0xc3686a(0xeb))/0x9)+-parseInt(_0xc3686a(0xe2))/0xa+-parseInt(_0xc3686a(0xe3))/0xb;if(_0x33c1c0===_0x2c8eb8)break;else _0x2ce65b['push'](_0x2ce65b['shift']());}catch(_0x4b3862){_0x2ce65b['push'](_0x2ce65b['shift']());}}}(a6_0x3ffb,0x1b6e2));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a6_0x49d85c(0xed)]='connect',exports[a6_0x49d85c(0xea)]=a6_0x49d85c(0xf3),exports['builder']=function(_0x2409d0){const _0x403958=a6_0x49d85c,_0x3f5234={};_0x3f5234['CivCK']=_0x403958(0xf1),_0x3f5234[_0x403958(0xe6)]=_0x403958(0xe5);const _0x5984fb=_0x3f5234;return _0x2409d0[_0x403958(0xe1)](HELP_HEADER_MESSAGE[_0x403958(0xe9)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x403958(0xf5)](_0x5984fb['CivCK'])[_0x403958(0xdf)]()[_0x403958(0xe8)]()[_0x403958(0xe0)]()[_0x403958(0xe5)](_0x5984fb['lsybh']);},exports[a6_0x49d85c(0xf0)]=function(_0x3efde8){};function a6_0x3ffb(){const _0x213a3d=['connect_commands','1629752DgUJtT','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','194658LFLkcS','commandDir','1fDbuKz','demandCommand','strict','usage','488220JWeEHo','1169597UwNyac','7ydMuPx','help','lsybh','12696JgtWbJ','recommendCommands','connect','desc','9eSlPyk','823940gRyNQt','command','66014NGCzuS','96nEwvBB','handler'];a6_0x3ffb=function(){return _0x213a3d;};return a6_0x3ffb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x3b79d6=a7_0x4db8;(function(_0x19bba9,_0x1e04a3){const _0x4d1706=a7_0x4db8,_0x25f08b=_0x19bba9();while(!![]){try{const _0x45d774=parseInt(_0x4d1706(0x12a))/0x1*(parseInt(_0x4d1706(0x101))/0x2)+parseInt(_0x4d1706(0x124))/0x3+-parseInt(_0x4d1706(0x11e))/0x4*(-parseInt(_0x4d1706(0xde))/0x5)+parseInt(_0x4d1706(0xf9))/0x6*(-parseInt(_0x4d1706(0x110))/0x7)+-parseInt(_0x4d1706(0xd7))/0x8+parseInt(_0x4d1706(0xf1))/0x9+parseInt(_0x4d1706(0xd9))/0xa;if(_0x45d774===_0x1e04a3)break;else _0x25f08b['push'](_0x25f08b['shift']());}catch(_0x5ce815){_0x25f08b['push'](_0x25f08b['shift']());}}}(a7_0x57a3,0x75f82));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x3b79d6(0xe5)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x3b79d6(0xfc));function a7_0x4db8(_0x3cd2e2,_0x2d6eeb){const _0x57a333=a7_0x57a3();return a7_0x4db8=function(_0x4db8e3,_0x12f8d6){_0x4db8e3=_0x4db8e3-0xce;let _0x42970e=_0x57a333[_0x4db8e3];return _0x42970e;},a7_0x4db8(_0x3cd2e2,_0x2d6eeb);}function a7_0x57a3(){const _0x13ce70=['jmLCe','sZagc','QCJou','wcBBC','ATkbJ','zXeBV','36bDmhZd','JROlI','eFGJx','desc','RpZdt','vFBzo','1466010JNLLVD','dIVeK','advance-options','type','UpwJp','mYlvN','305587UtHFdC','Advance\x20options\x20for\x20Browserstack\x20Local','argv','EXmtg','ATFUe','customRepeaters','rWrOm','usage','LOagz','options','FVLwk','info','bstackAccesskey','epilogue','ZXoCn','grid','isRunning','BlDBh','7546640eMENph','lEUeB','4984600WxPBaL','NqynJ','handler','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','nAtIb','78695mxAEgV','beforeExit','MRclU','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','help','GmEBE','UvgOr','../../config/logger','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','OYNva','bstack-accesskey','DJUcJ','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','aSvZg','error','demandOption','RVYVu','IASYk','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','5505246fxYpgN','GHXlh','create','jPlIT','gridId','Grid\x20type:\x20Trial','PsVjz','DxYHp','247812cRfkxl','SxUPA','hkfBR','../../utils/utilityMethods','Pass\x20the\x20ID\x20of\x20the\x20Grid','FiNJT','QqDYu','browserStackLocalOptions','2ACDvSs','GcZjQ','mEqvF','IywRW','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','true','description','FQVop','exit','ODSwg','rdpPb','DKDHK','accessKey','qdfuC','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','105CPGRDq','isTrialGrid','TahaT','vguiU','bstack-username','grid-id','GXpSz','string'];a7_0x57a3=function(){return _0x13ce70;};return a7_0x57a3();}exports['command']=a7_0x3b79d6(0xd4),exports[a7_0x3b79d6(0x121)]=a7_0x3b79d6(0xf0),exports['builder']=_0x23390a=>{const _0x175254=a7_0x3b79d6,_0x164c45={};_0x164c45[_0x175254(0x10e)]=_0x175254(0xe6),_0x164c45['UvgOr']=_0x175254(0x117),_0x164c45['IywRW']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x164c45[_0x175254(0xcf)]=_0x175254(0xfd),_0x164c45[_0x175254(0xe7)]=_0x175254(0x105),_0x164c45[_0x175254(0x112)]=_0x175254(0x12b),_0x164c45['DxYHp']=_0x175254(0xe2);const _0x2cd0cf=_0x164c45,_0x1a5d95={};_0x1a5d95['description']=_0x2cd0cf[_0x175254(0x10e)],_0x1a5d95[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x325557={};_0x325557[_0x175254(0x107)]=_0x2cd0cf[_0x175254(0x104)],_0x325557[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x3ab7d7={};_0x3ab7d7[_0x175254(0xed)]=!![],_0x3ab7d7[_0x175254(0x107)]=_0x2cd0cf[_0x175254(0xcf)],_0x3ab7d7[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x31002d={};_0x31002d[_0x175254(0x107)]=_0x2cd0cf['OYNva'],_0x31002d['type']=_0x2cd0cf[_0x175254(0xe4)];const _0x412de4={};_0x412de4[_0x175254(0x107)]=_0x2cd0cf[_0x175254(0x112)],_0x412de4[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x11e14b={};return _0x11e14b['bstack-username']=_0x1a5d95,_0x11e14b[_0x175254(0xe8)]=_0x325557,_0x11e14b['grid-id']=_0x3ab7d7,_0x11e14b['use-staging']=_0x31002d,_0x11e14b[_0x175254(0x126)]=_0x412de4,_0x23390a[_0x175254(0x131)](HELP_HEADER_MESSAGE[_0x175254(0xf3)])[_0x175254(0xd2)](HELP_FOOTER_MESSAGE)[_0x175254(0xce)](_0x11e14b)[_0x175254(0xe2)](_0x2cd0cf[_0x175254(0xf8)])[_0x175254(0x12c)];},exports[a7_0x3b79d6(0xdb)]=async _0x2f3c4c=>{const _0x5ff7c=a7_0x3b79d6,_0x362762={'ATFUe':function(_0x1df997,_0x122f8f){return _0x1df997(_0x122f8f);},'ODSwg':_0x5ff7c(0xdc),'DJUcJ':function(_0x164dd3,_0x1955a7){return _0x164dd3!==_0x1955a7;},'dIVeK':_0x5ff7c(0xdd),'mEqvF':_0x5ff7c(0x10f),'jmLCe':_0x5ff7c(0xe6),'QCJou':_0x5ff7c(0x117),'NqynJ':_0x5ff7c(0xe1),'JROlI':'Pass\x20the\x20ID\x20of\x20the\x20Grid','GHXlh':_0x5ff7c(0x105),'sZagc':_0x5ff7c(0x12b),'ATkbJ':_0x5ff7c(0xe2),'vguiU':function(_0x534a5c,_0x81d90e){return _0x534a5c===_0x81d90e;},'GcZjQ':function(_0x26fac5,_0x530c3a){return _0x26fac5(_0x530c3a);},'EXmtg':_0x5ff7c(0xea),'fkiFU':function(_0x527325,_0xa31340){return _0x527325!==_0xa31340;},'DKDHK':_0x5ff7c(0x128),'rWrOm':function(_0x2fb491,_0x3916f4){return _0x2fb491===_0x3916f4;},'RVYVu':function(_0x3426ec,_0x39d193){return _0x3426ec(_0x39d193);},'GmEBE':function(_0x4e647f,_0x1e45e7){return _0x4e647f(_0x1e45e7);},'mYlvN':_0x5ff7c(0xdf),'MRclU':'SIGINT','hkfBR':'SIGTERM','FiNJT':'We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','IASYk':function(_0x542a81,_0x153e6c,_0x3f6553){return _0x542a81(_0x153e6c,_0x3f6553);},'rdpPb':function(_0x1ee472,_0x5cdf57){return _0x1ee472&&_0x5cdf57;},'FQVop':_0x5ff7c(0x11d),'RNgav':function(_0x18fb6c,_0xa44b3a,_0x13501f,_0x15a0ba){return _0x18fb6c(_0xa44b3a,_0x13501f,_0x15a0ba);},'lEUeB':'PepJs','BlDBh':'PAFHp','SxUPA':function(_0xf202b,_0xb5d57b){return _0xf202b(_0xb5d57b);},'LOagz':_0x5ff7c(0x106),'dzWGq':_0x5ff7c(0x11b),'GXpSz':_0x5ff7c(0xf7),'ZXoCn':_0x5ff7c(0xf6),'eFGJx':_0x5ff7c(0xf4),'vFBzo':_0x5ff7c(0xeb),'GQUvo':_0x5ff7c(0x122)};let _0x9c2435=_0x2f3c4c['bstackUsername'],_0x44ba4e=_0x2f3c4c[_0x5ff7c(0xd1)];const _0x23e2aa=_0x2f3c4c['advanceOptions'],_0x23dd1e=_0x3ba6a3=>{const _0x369fcf=_0x5ff7c,_0x1fb5e8={'fGofQ':function(_0x76474,_0x2fd897){const _0x3c7ed2=a7_0x4db8;return _0x362762[_0x3c7ed2(0x12e)](_0x76474,_0x2fd897);},'QqDYu':_0x362762[_0x369fcf(0x10a)]};_0x362762[_0x369fcf(0xe9)](_0x362762[_0x369fcf(0x125)],_0x362762[_0x369fcf(0x125)])?_0x1fb5e8['fGofQ'](_0x17fd8d,_0x1fb5e8[_0x369fcf(0xff)]):(logger[_0x369fcf(0xec)](_0x3ba6a3),process[_0x369fcf(0x109)](0x1));};[_0x9c2435,_0x44ba4e]=_0x362762[_0x5ff7c(0xef)](fetchOrUpdateUserConfig,_0x9c2435,_0x44ba4e);!_0x362762[_0x5ff7c(0x10b)](_0x9c2435,_0x44ba4e)&&(_0x362762[_0x5ff7c(0xe9)](_0x362762[_0x5ff7c(0x108)],_0x362762[_0x5ff7c(0x108)])?_0x362762[_0x5ff7c(0x12e)](_0xb67a79,_0x362762[_0x5ff7c(0x103)]):_0x362762[_0x5ff7c(0x102)](_0x23dd1e,_0x362762[_0x5ff7c(0x10a)]));const _0xc848c1=_0x2f3c4c[_0x5ff7c(0xf5)],[_0xc5e3e3,_0x13aada]=await _0x362762['RNgav'](getGridDetails,_0x9c2435,_0x44ba4e,_0xc848c1);if(!_0x13aada){if(_0x362762['fkiFU'](_0x362762[_0x5ff7c(0xd8)],_0x362762[_0x5ff7c(0xd6)]))_0x362762[_0x5ff7c(0xfa)](_0x23dd1e,_0x362762[_0x5ff7c(0x12d)]);else{const _0x21ec02={};_0x21ec02[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0x118)],_0x21ec02[_0x5ff7c(0x127)]=_0x362762['QCJou'];const _0x5efbec={};_0x5efbec[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0xda)],_0x5efbec[_0x5ff7c(0x127)]=_0x362762['QCJou'];const _0x30f863={};_0x30f863[_0x5ff7c(0xed)]=!![],_0x30f863[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0x11f)],_0x30f863[_0x5ff7c(0x127)]=_0x362762[_0x5ff7c(0x11a)];const _0x138f8e={};_0x138f8e[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0xf2)],_0x138f8e[_0x5ff7c(0x127)]=_0x362762['QCJou'];const _0x1e8a99={};_0x1e8a99[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0x119)],_0x1e8a99[_0x5ff7c(0x127)]=_0x362762[_0x5ff7c(0x11a)];const _0x306424={};return _0x306424[_0x5ff7c(0x114)]=_0x21ec02,_0x306424[_0x5ff7c(0xe8)]=_0x5efbec,_0x306424[_0x5ff7c(0x115)]=_0x30f863,_0x306424['use-staging']=_0x138f8e,_0x306424[_0x5ff7c(0x126)]=_0x1e8a99,_0x51b430[_0x5ff7c(0x131)](_0x275ac4[_0x5ff7c(0xf3)])[_0x5ff7c(0xd2)](_0x3d1eef)[_0x5ff7c(0xce)](_0x306424)[_0x5ff7c(0xe2)](_0x362762[_0x5ff7c(0x11c)])[_0x5ff7c(0x12c)];}}const _0xc82276=_0x362762[_0x5ff7c(0x130)](_0x2f3c4c['useStaging'],_0x362762[_0x5ff7c(0x132)])?!![]:![];if(_0x13aada&&_0x13aada[_0x5ff7c(0x111)]&&_0xc82276){if(_0x362762[_0x5ff7c(0x130)](_0x362762['dzWGq'],_0x362762[_0x5ff7c(0x116)]))_0x54e8e9++,_0x362762[_0x5ff7c(0x113)](_0x530d31,0x1)&&_0x580d87&&_0x515759[_0x5ff7c(0xd5)]()&&_0x362762[_0x5ff7c(0x102)](_0x2471d7,_0xe2a085);else{let _0x580d6f=_0x362762[_0x5ff7c(0xd3)];logger[_0x5ff7c(0xd0)](_0x580d6f);try{if(_0x362762[_0x5ff7c(0xe9)](_0x362762[_0x5ff7c(0x120)],_0x362762[_0x5ff7c(0x120)]))_0x362762['GcZjQ'](_0x9a4e03,_0x362762['EXmtg']);else{const _0x4b86a4={};_0x4b86a4[_0x5ff7c(0x10d)]=_0x44ba4e,_0x4b86a4[_0x5ff7c(0x12f)]=_0x13aada[_0x5ff7c(0x12f)],_0x4b86a4[_0x5ff7c(0x100)]=_0x23e2aa;const _0x1b595f=_0x4b86a4,_0x3fee5c=_0x362762['GmEBE'](startLocalBinarySync,_0x1b595f);let _0x562812=0x0;const _0x4ef0e9=async()=>{const _0x2ecb91=_0x5ff7c;_0x362762['fkiFU'](_0x362762[_0x2ecb91(0x10c)],_0x362762[_0x2ecb91(0x10c)])?(_0x4e3aac[_0x2ecb91(0xec)](_0x2139c7),_0xd31c63['exit'](0x1)):(_0x562812++,_0x362762[_0x2ecb91(0x130)](_0x562812,0x1)&&_0x3fee5c&&_0x3fee5c[_0x2ecb91(0xd5)]()&&_0x362762[_0x2ecb91(0xee)](stopLocalBinary,_0x3fee5c));};process['on'](_0x362762[_0x5ff7c(0x129)],_0x4ef0e9),process['on'](_0x362762[_0x5ff7c(0xe0)],_0x4ef0e9),process['on'](_0x362762['hkfBR'],_0x4ef0e9),_0x580d6f=_0x362762[_0x5ff7c(0xfe)],logger[_0x5ff7c(0xd0)](_0x580d6f);}}catch(_0x245bb3){if(_0x362762[_0x5ff7c(0x130)](_0x362762[_0x5ff7c(0x123)],_0x362762['GQUvo'])){const _0x2f2555={};_0x2f2555['accessKey']=_0x2d9cdc,_0x2f2555[_0x5ff7c(0x12f)]=_0x48278b[_0x5ff7c(0x12f)],_0x2f2555[_0x5ff7c(0x100)]=_0x53e3cf;const _0x12d6de=_0x2f2555,_0x5aa507=_0x362762['GcZjQ'](_0x566a71,_0x12d6de);let _0xa4aacb=0x0;const _0x1e5c99=async()=>{const _0x34871d=_0x5ff7c;_0xa4aacb++,_0x362762[_0x34871d(0x130)](_0xa4aacb,0x1)&&_0x5aa507&&_0x5aa507['isRunning']()&&_0x362762[_0x34871d(0xe3)](_0x1069d0,_0x5aa507);};_0x7ec49b['on'](_0x362762[_0x5ff7c(0x129)],_0x1e5c99),_0x262156['on'](_0x362762[_0x5ff7c(0xe0)],_0x1e5c99),_0x3085a9['on'](_0x362762[_0x5ff7c(0xfb)],_0x1e5c99),_0xd7dbed=_0x362762[_0x5ff7c(0xfe)],_0x22fc1b[_0x5ff7c(0xd0)](_0x3352cb);}else _0x362762[_0x5ff7c(0x12e)](_0x23dd1e,_0x362762[_0x5ff7c(0x103)]);}}}process[_0x5ff7c(0x109)](0x0);};
|
|
1
|
+
const a7_0x5103df=a7_0x4758;function a7_0x460f(){const _0x5b267e=['tyxcz','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','bstack-accesskey','error','10155117pOYcfr','1196446AVyKkF','ZxyPO','JTngA','8570118SWlDUi','NmCPl','iWLjH','ObpjY','help','hhHmn','GNGlV','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','desc','SIGTERM','NayJY','HFfpe','EhRbn','OiUYP','customRepeaters','njWmO','argv','use-staging','TFTpX','LtNuP','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','Grid\x20type:\x20Trial','LZrRW','browserStackLocalOptions','demandOption','useStaging','AVkMi','advanceOptions','1112406CDyLyN','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','bstackAccesskey','CFxcL','command','FrHKE','tsKaQ','vmOBO','scCRr','grid','options','sOzdp','SIGINT','KzUwA','bEGDL','TLQaY','NcQfj','MIPVo','XVooT','../../utils/utilityMethods','JAGWK','DQNLq','beforeExit','MkdoO','exit','iIXJo','Makde','TSHQs','isRunning','PlVid','../../config/logger','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','UOYaA','type','Pass\x20the\x20ID\x20of\x20the\x20Grid','true','YXAtG','3020065JROjVz','534867nCpcLy','UiOZo','ViMJB','etURz','description','GOtXe','21382648wLNEVU','gSRdm','grid-id','UGVXT','epilogue','accessKey','Advance\x20options\x20for\x20Browserstack\x20Local','ohORp','gridId','12cczAgk','info','create','builder','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','yIEuC','scNsC','WDewj','usage','bstackUsername','Dehft','ZEJKd','mTtJg'];a7_0x460f=function(){return _0x5b267e;};return a7_0x460f();}(function(_0x130a07,_0x3fed12){const _0x27cc75=a7_0x4758,_0x158a7d=_0x130a07();while(!![]){try{const _0x3ac591=-parseInt(_0x27cc75(0x1f2))/0x1+parseInt(_0x27cc75(0x1d3))/0x2+-parseInt(_0x27cc75(0x218))/0x3+parseInt(_0x27cc75(0x227))/0x4*(parseInt(_0x27cc75(0x217))/0x5)+-parseInt(_0x27cc75(0x1d6))/0x6+-parseInt(_0x27cc75(0x1d2))/0x7+parseInt(_0x27cc75(0x21e))/0x8;if(_0x3ac591===_0x3fed12)break;else _0x158a7d['push'](_0x158a7d['shift']());}catch(_0xb2af7d){_0x158a7d['push'](_0x158a7d['shift']());}}}(a7_0x460f,0xdefa2));function a7_0x4758(_0x4bf898,_0x1fd80){const _0x460f0b=a7_0x460f();return a7_0x4758=function(_0x4758aa,_0x53fd8e){_0x4758aa=_0x4758aa-0x1c3;let _0x2701fb=_0x460f0b[_0x4758aa];return _0x2701fb;},a7_0x4758(_0x4bf898,_0x1fd80);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x5103df(0x210)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x5103df(0x205));exports[a7_0x5103df(0x1f6)]=a7_0x5103df(0x1fb),exports[a7_0x5103df(0x1de)]=a7_0x5103df(0x1cf),exports[a7_0x5103df(0x1c4)]=_0x59efd7=>{const _0x2da8d9=a7_0x5103df,_0x4ad03d={};_0x4ad03d[_0x2da8d9(0x20c)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x4ad03d['yIEuC']='string',_0x4ad03d[_0x2da8d9(0x219)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x4ad03d[_0x2da8d9(0x209)]=_0x2da8d9(0x214),_0x4ad03d[_0x2da8d9(0x1e5)]=_0x2da8d9(0x211),_0x4ad03d[_0x2da8d9(0x1e1)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x4ad03d['bEGDL']=_0x2da8d9(0x1da);const _0x43c658=_0x4ad03d,_0x378478={};_0x378478[_0x2da8d9(0x21c)]=_0x43c658['Makde'],_0x378478['type']=_0x43c658[_0x2da8d9(0x1c6)];const _0x196cba={};_0x196cba['description']=_0x43c658[_0x2da8d9(0x219)],_0x196cba[_0x2da8d9(0x213)]=_0x43c658[_0x2da8d9(0x1c6)];const _0x2b5f12={};_0x2b5f12[_0x2da8d9(0x1ee)]=!![],_0x2b5f12[_0x2da8d9(0x21c)]=_0x43c658[_0x2da8d9(0x209)],_0x2b5f12[_0x2da8d9(0x213)]=_0x43c658['yIEuC'];const _0x1e52e7={};_0x1e52e7[_0x2da8d9(0x21c)]=_0x43c658[_0x2da8d9(0x1e5)],_0x1e52e7[_0x2da8d9(0x213)]=_0x43c658[_0x2da8d9(0x1c6)];const _0x521c09={};_0x521c09['description']=_0x43c658[_0x2da8d9(0x1e1)],_0x521c09[_0x2da8d9(0x213)]=_0x43c658[_0x2da8d9(0x1c6)];const _0x33c082={};return _0x33c082['bstack-username']=_0x378478,_0x33c082['bstack-accesskey']=_0x196cba,_0x33c082[_0x2da8d9(0x220)]=_0x2b5f12,_0x33c082[_0x2da8d9(0x1e7)]=_0x1e52e7,_0x33c082['advance-options']=_0x521c09,_0x59efd7['usage'](HELP_HEADER_MESSAGE[_0x2da8d9(0x1c3)])[_0x2da8d9(0x222)](HELP_FOOTER_MESSAGE)[_0x2da8d9(0x1fc)](_0x33c082)[_0x2da8d9(0x1da)](_0x43c658[_0x2da8d9(0x200)])[_0x2da8d9(0x1e6)];},exports['handler']=async _0x20db82=>{const _0x5bc943=a7_0x5103df,_0x25f7f4={'ohORp':function(_0x41aeb3,_0x5afb31){return _0x41aeb3(_0x5afb31);},'KzUwA':_0x5bc943(0x1c5),'ViMJB':function(_0x24473a,_0x3aa3d6){return _0x24473a===_0x3aa3d6;},'EhRbn':_0x5bc943(0x21d),'Dehft':'ttOyf','WDewj':function(_0x578aaa,_0x570b5a){return _0x578aaa(_0x570b5a);},'OiUYP':_0x5bc943(0x208),'YXAtG':_0x5bc943(0x1fe),'NayJY':_0x5bc943(0x1df),'JTngA':_0x5bc943(0x1ea),'AVkMi':function(_0x39f0d5,_0x3bfbce){return _0x39f0d5(_0x3bfbce);},'hhHmn':'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','APkrZ':_0x5bc943(0x1eb),'ZxyPO':function(_0x4343d2,_0x5a4dfb){return _0x4343d2(_0x5a4dfb);},'etURz':_0x5bc943(0x1f3),'gSRdm':_0x5bc943(0x1d9),'UOYaA':function(_0x56baae,_0x24af0e){return _0x56baae(_0x24af0e);},'scCRr':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZEJKd':'string','XVooT':_0x5bc943(0x1dd),'iIXJo':'Pass\x20the\x20ID\x20of\x20the\x20Grid','qedVr':_0x5bc943(0x211),'GNGlV':_0x5bc943(0x224),'PlVid':'help','sOzdp':function(_0x46341f,_0xc74967){return _0x46341f===_0xc74967;},'MiCPE':function(_0x1cfcb1,_0x1e48fd,_0x19cf40){return _0x1cfcb1(_0x1e48fd,_0x19cf40);},'TLQaY':function(_0x4b3ff8,_0x4181c3){return _0x4b3ff8&&_0x4181c3;},'NcQfj':function(_0x38fb0a,_0x2a8ffd){return _0x38fb0a!==_0x2a8ffd;},'JAGWK':_0x5bc943(0x1e8),'tsKaQ':'LtIzT','eHJnP':function(_0x46c778,_0x22ccfe,_0x47beb3,_0x4de019){return _0x46c778(_0x22ccfe,_0x47beb3,_0x4de019);},'BfSvC':function(_0x3f0e32,_0x1c4372){return _0x3f0e32!==_0x1c4372;},'MIPVo':'jlAqb','eKtZY':function(_0x1802cc,_0x421460){return _0x1802cc(_0x421460);},'mTtJg':_0x5bc943(0x215),'LtNuP':function(_0x3c821f,_0x2adb92){return _0x3c821f!==_0x2adb92;},'vmOBO':_0x5bc943(0x20d),'tyxcz':'fYFLI','NmCPl':function(_0x1326bf,_0x225854){return _0x1326bf!==_0x225854;},'iWLjH':_0x5bc943(0x1c7),'UGVXT':function(_0x438385,_0x467ae4){return _0x438385(_0x467ae4);}};let _0x1ad7fe=_0x20db82[_0x5bc943(0x1ca)],_0x2e7981=_0x20db82[_0x5bc943(0x1f4)];const _0x5d10fa=_0x20db82[_0x5bc943(0x1f1)],_0x512cbe=_0x464db1=>{const _0x23ed76=_0x5bc943;_0x25f7f4['ViMJB'](_0x25f7f4[_0x23ed76(0x1e2)],_0x25f7f4[_0x23ed76(0x1cb)])?_0x25f7f4[_0x23ed76(0x225)](_0x1e0041,_0x25f7f4['KzUwA']):(logger[_0x23ed76(0x1d1)](_0x464db1),process[_0x23ed76(0x20a)](0x1));};[_0x1ad7fe,_0x2e7981]=_0x25f7f4['MiCPE'](fetchOrUpdateUserConfig,_0x1ad7fe,_0x2e7981);if(!_0x25f7f4[_0x5bc943(0x201)](_0x1ad7fe,_0x2e7981)){if(_0x25f7f4[_0x5bc943(0x202)](_0x25f7f4[_0x5bc943(0x206)],_0x25f7f4[_0x5bc943(0x1f8)]))_0x25f7f4[_0x5bc943(0x1c8)](_0x512cbe,_0x25f7f4[_0x5bc943(0x1db)]);else{const _0x46f09e={'CFxcL':function(_0x4cde0c,_0x936cfd){const _0x6168da=_0x5bc943;return _0x25f7f4[_0x6168da(0x21a)](_0x4cde0c,_0x936cfd);},'FrHKE':function(_0x13f5da,_0x301c56){const _0x47e936=_0x5bc943;return _0x25f7f4[_0x47e936(0x225)](_0x13f5da,_0x301c56);}},_0x249d67={};_0x249d67[_0x5bc943(0x223)]=_0x313fa7,_0x249d67[_0x5bc943(0x1e4)]=_0x259d15['customRepeaters'],_0x249d67[_0x5bc943(0x1ed)]=_0x55793f;const _0x51b898=_0x249d67,_0x43073f=_0x25f7f4[_0x5bc943(0x1c8)](_0x2c6270,_0x51b898);let _0x2a0be3=0x0;const _0x55f056=async()=>{const _0x200f73=_0x5bc943;_0x2a0be3++,_0x46f09e[_0x200f73(0x1f5)](_0x2a0be3,0x1)&&_0x43073f&&_0x43073f[_0x200f73(0x20e)]()&&_0x46f09e[_0x200f73(0x1f7)](_0x6457b8,_0x43073f);};_0x5359d3['on'](_0x25f7f4['OiUYP'],_0x55f056),_0x20a280['on'](_0x25f7f4[_0x5bc943(0x216)],_0x55f056),_0x846317['on'](_0x25f7f4[_0x5bc943(0x1e0)],_0x55f056),_0x5430c5=_0x25f7f4[_0x5bc943(0x1d5)],_0x2fbf9b[_0x5bc943(0x228)](_0x469ff8);}}const _0x3ee89=_0x20db82[_0x5bc943(0x226)],[_0x2a12b1,_0x3a613e]=await _0x25f7f4['eHJnP'](getGridDetails,_0x1ad7fe,_0x2e7981,_0x3ee89);!_0x3a613e&&(_0x25f7f4['BfSvC'](_0x25f7f4[_0x5bc943(0x203)],_0x25f7f4[_0x5bc943(0x203)])?_0x25f7f4[_0x5bc943(0x1f0)](_0x52c446,_0x25f7f4[_0x5bc943(0x1db)]):_0x25f7f4['eKtZY'](_0x512cbe,_0x25f7f4[_0x5bc943(0x21b)]));const _0x4b238b=_0x25f7f4['sOzdp'](_0x20db82[_0x5bc943(0x1ef)],_0x25f7f4[_0x5bc943(0x1cd)])?!![]:![];if(_0x3a613e&&_0x3a613e['isTrialGrid']&&_0x4b238b){if(_0x25f7f4[_0x5bc943(0x1e9)](_0x25f7f4[_0x5bc943(0x1f9)],_0x25f7f4[_0x5bc943(0x1f9)])){let _0x4e6887=_0x25f7f4['APkrZ'];_0x47b8cd[_0x5bc943(0x228)](_0x4e6887);try{const _0x1a2004={};_0x1a2004['accessKey']=_0x414e7a,_0x1a2004['customRepeaters']=_0x7850d0['customRepeaters'],_0x1a2004[_0x5bc943(0x1ed)]=_0x554078;const _0x47e502=_0x1a2004,_0x332df2=_0x25f7f4[_0x5bc943(0x1d4)](_0x176613,_0x47e502);let _0x49287f=0x0;const _0x42021d=async()=>{const _0xd18f1=_0x5bc943;_0x49287f++,_0x25f7f4['ViMJB'](_0x49287f,0x1)&&_0x332df2&&_0x332df2[_0xd18f1(0x20e)]()&&_0x25f7f4[_0xd18f1(0x1c8)](_0x1431dd,_0x332df2);};_0x26f404['on'](_0x25f7f4[_0x5bc943(0x1e3)],_0x42021d),_0x288e7d['on'](_0x25f7f4[_0x5bc943(0x216)],_0x42021d),_0x44c53d['on'](_0x25f7f4[_0x5bc943(0x1e0)],_0x42021d),_0x4e6887=_0x25f7f4[_0x5bc943(0x1d5)],_0x362dd1['info'](_0x4e6887);}catch(_0x3e897f){_0x25f7f4[_0x5bc943(0x1f0)](_0x19a4b1,_0x25f7f4['KzUwA']);}}else{let _0x45e120=_0x25f7f4['APkrZ'];logger[_0x5bc943(0x228)](_0x45e120);try{if(_0x25f7f4['ViMJB'](_0x25f7f4[_0x5bc943(0x1ce)],_0x25f7f4[_0x5bc943(0x1ce)])){const _0x1a52b8={};_0x1a52b8[_0x5bc943(0x223)]=_0x2e7981,_0x1a52b8[_0x5bc943(0x1e4)]=_0x3a613e[_0x5bc943(0x1e4)],_0x1a52b8[_0x5bc943(0x1ed)]=_0x5d10fa;const _0x27be45=_0x1a52b8,_0x43d16d=_0x25f7f4[_0x5bc943(0x225)](startLocalBinarySync,_0x27be45);let _0x58eb73=0x0;const _0x1f6ecb=async()=>{const _0x263cde=_0x5bc943,_0x55d7b4={'DQNLq':function(_0x56cec6,_0x10b8a5){const _0x451fce=a7_0x4758;return _0x25f7f4[_0x451fce(0x1c8)](_0x56cec6,_0x10b8a5);},'LZrRW':_0x25f7f4['etURz']};_0x25f7f4[_0x263cde(0x21a)](_0x25f7f4[_0x263cde(0x21f)],_0x25f7f4['gSRdm'])?(_0x58eb73++,_0x25f7f4[_0x263cde(0x21a)](_0x58eb73,0x1)&&_0x43d16d&&_0x43d16d['isRunning']()&&_0x25f7f4[_0x263cde(0x212)](stopLocalBinary,_0x43d16d)):_0x55d7b4[_0x263cde(0x207)](_0x4d5ca6,_0x55d7b4[_0x263cde(0x1ec)]);};process['on'](_0x25f7f4[_0x5bc943(0x1e3)],_0x1f6ecb),process['on'](_0x25f7f4[_0x5bc943(0x216)],_0x1f6ecb),process['on'](_0x25f7f4['NayJY'],_0x1f6ecb),_0x45e120=_0x25f7f4[_0x5bc943(0x1d5)],logger[_0x5bc943(0x228)](_0x45e120);}else{const _0x57f412={};_0x57f412[_0x5bc943(0x21c)]=_0x25f7f4[_0x5bc943(0x1fa)],_0x57f412['type']=_0x25f7f4['ZEJKd'];const _0x4a5f25={};_0x4a5f25['description']=_0x25f7f4[_0x5bc943(0x204)],_0x4a5f25[_0x5bc943(0x213)]=_0x25f7f4[_0x5bc943(0x1cc)];const _0x4af032={};_0x4af032[_0x5bc943(0x1ee)]=!![],_0x4af032['description']=_0x25f7f4[_0x5bc943(0x20b)],_0x4af032[_0x5bc943(0x213)]=_0x25f7f4[_0x5bc943(0x1cc)];const _0xbe7f30={};_0xbe7f30['description']=_0x25f7f4['qedVr'],_0xbe7f30[_0x5bc943(0x213)]=_0x25f7f4['ZEJKd'];const _0x33e8b9={};_0x33e8b9[_0x5bc943(0x21c)]=_0x25f7f4[_0x5bc943(0x1dc)],_0x33e8b9[_0x5bc943(0x213)]=_0x25f7f4[_0x5bc943(0x1cc)];const _0x3c5703={};return _0x3c5703['bstack-username']=_0x57f412,_0x3c5703[_0x5bc943(0x1d0)]=_0x4a5f25,_0x3c5703['grid-id']=_0x4af032,_0x3c5703[_0x5bc943(0x1e7)]=_0xbe7f30,_0x3c5703['advance-options']=_0x33e8b9,_0x289ae5[_0x5bc943(0x1c9)](_0x5e421a['create'])[_0x5bc943(0x222)](_0x4ef4e2)[_0x5bc943(0x1fc)](_0x3c5703)[_0x5bc943(0x1da)](_0x25f7f4[_0x5bc943(0x20f)])[_0x5bc943(0x1e6)];}}catch(_0x57a0c7){_0x25f7f4[_0x5bc943(0x1d7)](_0x25f7f4[_0x5bc943(0x1d8)],_0x25f7f4['iWLjH'])?(_0x110e3e++,_0x25f7f4[_0x5bc943(0x1fd)](_0x116b19,0x1)&&_0x4e2a81&&_0x1d8706['isRunning']()&&_0x25f7f4[_0x5bc943(0x1f0)](_0x21710b,_0x44fcd3)):_0x25f7f4[_0x5bc943(0x221)](_0x512cbe,_0x25f7f4[_0x5bc943(0x1ff)]);}}}process[_0x5bc943(0x20a)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0x5144(_0xa8d376,_0x11b9be){const _0x44324a=a8_0x4432();return a8_0x5144=function(_0x514484,_0x318c17){_0x514484=_0x514484-0x1e2;let _0x29202d=_0x44324a[_0x514484];return _0x29202d;},a8_0x5144(_0xa8d376,_0x11b9be);}const a8_0x2b36d7=a8_0x5144;function a8_0x4432(){const _0x4a5762=['demandCommand','2595384Qkauja','441146HKkeks','24FIryaR','3895641BHqTvs','MKNFk','648uzKmnd','commandDir','78886vXzLmN','11641XsQwEz','create_commands','create','handler','recommendCommands','builder','strict','13670ZtOBdf','zvNHo','1920YwMImN','6668690CdOqUW','usage','22VRWjhF','command'];a8_0x4432=function(){return _0x4a5762;};return a8_0x4432();}(function(_0x117f39,_0x10e243){const _0x40eec4=a8_0x5144,_0x57809c=_0x117f39();while(!![]){try{const _0x3c83f6=parseInt(_0x40eec4(0x1ec))/0x1+parseInt(_0x40eec4(0x1f2))/0x2*(parseInt(_0x40eec4(0x1ed))/0x3)+parseInt(_0x40eec4(0x1f0))/0x4*(parseInt(_0x40eec4(0x1e3))/0x5)+-parseInt(_0x40eec4(0x1e5))/0x6*(-parseInt(_0x40eec4(0x1f3))/0x7)+parseInt(_0x40eec4(0x1eb))/0x8+-parseInt(_0x40eec4(0x1ee))/0x9+parseInt(_0x40eec4(0x1e6))/0xa*(-parseInt(_0x40eec4(0x1e8))/0xb);if(_0x3c83f6===_0x10e243)break;else _0x57809c['push'](_0x57809c['shift']());}catch(_0x1e99bb){_0x57809c['push'](_0x57809c['shift']());}}}(a8_0x4432,0x46b3a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a8_0x2b36d7(0x1e9)]='create',exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a8_0x2b36d7(0x1f8)]=function(_0x3c8a12){const _0x203622=a8_0x2b36d7,_0x446caa={};_0x446caa[_0x203622(0x1ef)]=_0x203622(0x1f4),_0x446caa[_0x203622(0x1e4)]='help';const _0x7db97b=_0x446caa;return _0x3c8a12[_0x203622(0x1e7)](HELP_HEADER_MESSAGE[_0x203622(0x1f5)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x203622(0x1f1)](_0x7db97b[_0x203622(0x1ef)])[_0x203622(0x1ea)]()[_0x203622(0x1f7)]()[_0x203622(0x1e2)]()['help'](_0x7db97b[_0x203622(0x1e4)]);},exports[a8_0x2b36d7(0x1f6)]=function(_0x2cd4af){};
|