browserstack-node-sdk 1.34.24 → 1.34.25
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/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.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/patchHelper.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 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3_0x161e(){const _0x37c0eb=['gpiyp','getClient','iam','autoscaling','wLfzX','gGIPo','ivyWy','iam.serviceAccounts.signBlob','LCbih','qGwZB','WWrLX','vVeYe','wfeTY','CjYjy','browserstack','storage.objects.setIamPolicy','serviceAccounts','mCeuV','DZNcU','storage.buckets.listEffectiveTags','vosCj','ajhGP','tjSlU','oFwsG','exports','XDybQ','cMHdq','ZxBPw','serviceAccount','TgYDB','ingress','eaWYC','nhthn','hhddQ','uAnJf','KubeConfigTemplate.yaml','JVGNQ','stack','dvKNC','vsXJt','mZxdh','templates','Cluster\x20creation\x20failed','got','\x20--windows-os-version=ltsc2022\x20--region\x20','child_process','iEyni','ExgdP','serviceAccountName','1241228XsKQDB','/packages/cli/update-cluster-region','getUserInput','ZHRQp','listClusters','bstackUsername','customRoleName','turboscale_custom_role','aJikX','/serviceAccounts/','hReGp','KQksm','BtNdL','NOLmX','LYdIu','username','storage.multipartUploads.abort','isSubnetsValid','XlBqb','Deleting\x20the\x20cluster\x20','oXtZH','qCJRs','parse','281MsSZqc','svhKV','minNodes','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','GKE\x20Cluster\x20deletion\x20failed','https://','VDGaB','containerClient','Oyrdw','requestBody','gkecluster.json','oJIBW','default','lalrD','NWpTh','message','createCluster','storage.objects.create','wCbHM','Rezte','BqnvH','fMAyo','split','push','gWqlV','RxFyg','vdwah','bXJyk','minNodeCount','AzVMF','storage.buckets.setIamPolicy','rws','vupJr','accountId','Cannot\x20find\x20subnets\x20','create','path','regionmap.json','@google-cloud/resource-manager','YPKqr','GfSTv','LOG','exit','SaoQG','info','PUT','organizations','rEpHx','init','sendGCPInfoToHST','accessKey','https://www.googleapis.com/compute/v1/projects/','get','rhuAu','../utils/userInput','storage.buckets.delete','iSqGn','UNQTm','BRjyq','uCDky','status','uLOXJ','chKAr','BELcJ','concat','NvTfn','loadBalancer','ZxZmF','cWdps','zTWDJ','YJZLj','AJHMk','.iam.gserviceaccount.com','delay','resourcemanagerClient','Zpdzv','projectId','length','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','bkHIl','isVPCPresent','storage.objects.get','checkServiceAccount','.\x20Error:\x20','projects/','YCcmb','xjOYS','Hfqzj','tcjqP','gCiYG','managedby','list','clusters','PjWsl','readFileAsync','dvdvM','murFu','clusterRegion','cloudProvider','resourceLabels','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','projects','includedPermissions','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','ZooZN','subnetworks','fflXK','NXBYD','getCluster','ICrJc','wpEzq','dHJnB','roles','nSLAa','googleapis','config','YDmCg','TDcKJ','MhLNh','hXSvf','OmgCA','NpFyv','cqnzO','iamClient','join','oioNV','/subnetworks/','Creating\x20service\x20account','gcloud\x20auth\x20login\x20--cred-file=','Civno','anPGc','sIXsu','\x20--quiet\x20--user-output-enabled=false','keyFile','AoEnP','2798ZJAlYv','bindings','YmQdJ','profileId','credentialsPath','ekFiH','joyPI','1704AZPemZ','networkClient','dqbtS','aNgJG','../utils/utilityMethods','dyxov','machineType','newRegion','name','EUujI','dZtrW','DUQWj','44076MMDtnx','/global/networks/','335uUsCyR','VPTaI','deleteCluster','LtaVQ','43912SPzHyP','toLowerCase','/locations/','IcXfM','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','https://www.googleapis.com/auth/cloud-platform','error','updateClusterRegion','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','sendEventToBackend','cloudProviderName','gRgEt','CyFHQ','vpcInfo','8QYUJdm','Service\x20account\x20already\x20exists,\x20skipping','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','KkqKP','gTnvC','wZuDT','log','1709421uRDDCM','serviceAccount:','UtkzY','GoogleCloudProvider','storage.buckets.create','sendResourceDataToHST','cLqeI','XYpga','DONE','JTgPG','zLvgi','auth','ysiAC','json','kncAi','@google-cloud/compute','turboscale-service-account','tBkWf','storage.objects.getIamPolicy','storage.buckets.listTagBindings','storage.buckets.deleteTagBinding','getIamPolicy','execSync','setCachedCredsInRegistry','storage.buckets.createTagBinding','scopes','storage.buckets.getObjectInsights','getKubeConfigData','../config/logger','QFnuK','nZFBy','storage.buckets.update','storage.multipartUploads.listParts','nFnuH','HFAAb','RUNNING','maxNodeCount','nodePools','clusterName','AtzkS','storage.objects.update','LSXlV','storage.objects.delete','3521952gIYdcw','Cluster\x20deletion\x20completed','data','jpzIj','fXUnA','hVNSm','clusterCaCertificate','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','NetworksClient','osnhP','HgUzO','storage.buckets.list','XAtbz','getClusterInfo','xyBqE','replace','setupServiceAccount','qQQWJ','IXpLN','zJhIu','Yevpl','XOsOF','HZuqt','isClusterPresent','WcPIY','util','accounts','Creating\x20GKE\x20Cluster','type','gcpresources','mCEsS','ljMnk','storage.multipartUploads.create','318123HzPOmv','ILtqk','maYwR','hlOHH','sBCsD','PwgZS','ytDsY','exHHd','dTziE','hecpZ','/regions/','/clusters/','xmDVB','XIDzT','gmJBe','gcp_credentials.json','location','MOjHx','zPhsi','setIamPolicy','190BHuaNx','network','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','title','setupNewCluster','Tvpsu','KELjc','Found\x20cluster\x20with\x20name\x20\x27','updateWindowsNodeGroup','inhUM','xRLJV','bstackAccesskey','@google-cloud/container','isBrowserstackCluster','subnetwork','rEgiA','SWAdx','jxfPh','getGridHostname','zfCKu','gridProfileId','ClusterManagerClient','webSocketUtils','ANquW','utf-8','project_id','parent','exec'];a3_0x161e=function(){return _0x37c0eb;};return a3_0x161e();}const a3_0x53fa0a=a3_0x45f8;function a3_0x45f8(_0x718d52,_0x18e664){const _0x161ec0=a3_0x161e();return a3_0x45f8=function(_0x45f8c0,_0x11df7c){_0x45f8c0=_0x45f8c0-0xc1;let _0x46fba3=_0x161ec0[_0x45f8c0];return _0x46fba3;},a3_0x45f8(_0x718d52,_0x18e664);}(function(_0x331a45,_0x8abfb6){const _0xfe96f5=a3_0x45f8,_0x51a24e=_0x331a45();while(!![]){try{const _0x2b7af5=parseInt(_0xfe96f5(0x220))/0x1*(-parseInt(_0xfe96f5(0x12e))/0x2)+parseInt(_0xfe96f5(0x15c))/0x3+parseInt(_0xfe96f5(0x209))/0x4+-parseInt(_0xfe96f5(0x143))/0x5*(parseInt(_0xfe96f5(0x141))/0x6)+parseInt(_0xfe96f5(0x187))/0x7*(parseInt(_0xfe96f5(0x155))/0x8)+-parseInt(_0xfe96f5(0x1a8))/0x9*(-parseInt(_0xfe96f5(0x1bc))/0xa)+parseInt(_0xfe96f5(0x147))/0xb*(-parseInt(_0xfe96f5(0x135))/0xc);if(_0x2b7af5===_0x8abfb6)break;else _0x51a24e['push'](_0x51a24e['shift']());}catch(_0x23179a){_0x51a24e['push'](_0x51a24e['shift']());}}}(a3_0x161e,0x93236));const fs=require('fs'),path=require(a3_0x53fa0a(0xcb)),got=require(a3_0x53fa0a(0x203)),util=require(a3_0x53fa0a(0x1a0)),cp=require(a3_0x53fa0a(0x205)),{google}=require(a3_0x53fa0a(0x119)),compute=require(a3_0x53fa0a(0x16b)),container=require(a3_0x53fa0a(0x1c8)),{ProjectsClient}=require(a3_0x53fa0a(0xcd))['v3'],{logger}=require(a3_0x53fa0a(0x178)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require(a3_0x53fa0a(0x139)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0x53fa0a(0xdd)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require('../config/constants');class GoogleCloudProvider extends CloudProvider{constructor(_0x5979f8,_0xd1befc,_0xf2ec76,_0x3b4e5a){const _0x30edf2=a3_0x53fa0a,_0x321281={};_0x321281[_0x30edf2(0x1ad)]='1|8|2|4|7|3|5|0|6',_0x321281[_0x30edf2(0x120)]=_0x30edf2(0x210),_0x321281[_0x30edf2(0x190)]=_0x30edf2(0x16c);const _0x2254c6=_0x321281,_0x4c3677=_0x2254c6[_0x30edf2(0x1ad)][_0x30edf2(0x236)]('|');let _0x2165f2=0x0;while(!![]){switch(_0x4c3677[_0x2165f2++]){case'0':this[_0x30edf2(0x20f)]=_0x2254c6[_0x30edf2(0x120)];continue;case'1':super(GCP,_0x5979f8,_0xd1befc,_0xf2ec76,_0x3b4e5a);continue;case'2':this[_0x30edf2(0x136)]=null;continue;case'3':this[_0x30edf2(0x132)]=null;continue;case'4':this[_0x30edf2(0xf1)]=null;continue;case'5':this[_0x30edf2(0xf3)]=null;continue;case'6':this[_0x30edf2(0x208)]=_0x2254c6[_0x30edf2(0x190)];continue;case'7':this['iamClient']=null;continue;case'8':this[_0x30edf2(0x227)]=null;continue;}break;}}async[a3_0x53fa0a(0x161)](){const _0x2d0926=a3_0x53fa0a;this[_0x2d0926(0xd8)](this[_0x2d0926(0xc6)]);}async[a3_0x53fa0a(0xd7)](){const _0x4d749e=a3_0x53fa0a;await super[_0x4d749e(0xd7)]();const _0x5e6557=this[_0x4d749e(0x132)],_0x2a98cb={};_0x2a98cb[_0x4d749e(0x12c)]=_0x5e6557,this[_0x4d749e(0x227)]=new container['v1'][(_0x4d749e(0x1d1))](_0x2a98cb);const _0x426d34={};_0x426d34['keyFile']=_0x5e6557,this[_0x4d749e(0x136)]=new compute['v1'][(_0x4d749e(0x18f))](_0x426d34);const _0x7095ec={};return _0x7095ec['keyFile']=_0x5e6557,this[_0x4d749e(0xf1)]=new ProjectsClient(_0x7095ec),this['iamClient']=google[_0x4d749e(0x1da)]('v1'),this;}async[a3_0x53fa0a(0x20b)](_0x436d2f,_0x146fce){const _0x4597c0=a3_0x53fa0a,_0xf7bc18={'MOjHx':function(_0x14037b,_0x142003){return _0x14037b(_0x142003);},'hVNSm':'Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','nFnuH':function(_0x3a3688){return _0x3a3688();},'DZNcU':_0x4597c0(0x1b7)},_0x245a8d=await _0xf7bc18[_0x4597c0(0x1b9)](_0x436d2f,_0xf7bc18[_0x4597c0(0x18c)]);let _0xe9caf7=await fs[_0x4597c0(0x105)](_0x245a8d);_0xe9caf7=_0xe9caf7['toString']();const _0x3a40a4=_0xf7bc18[_0x4597c0(0x17d)](getDirForConfig),_0x58e61b=path[_0x4597c0(0x123)](_0x3a40a4,_0xf7bc18[_0x4597c0(0x1ea)]);fs['writeFileSync'](_0x58e61b,_0xe9caf7),this['credentialsPath']=_0x58e61b;const _0x319ed3={};return _0x319ed3[_0x4597c0(0x12c)]=_0x58e61b,_0x146fce[_0x4597c0(0x109)][GCP]=_0x319ed3,_0xe9caf7=JSON['parse'](_0xe9caf7),this[_0x4597c0(0xf3)]=_0xe9caf7['project_id'],_0x146fce;}async[a3_0x53fa0a(0x173)](_0x51deb4){const _0x247a9e=a3_0x53fa0a;this[_0x247a9e(0x132)]=_0x51deb4[this[_0x247a9e(0x151)]][_0x247a9e(0x12c)];let _0x200e7c=await fs[_0x247a9e(0x105)](this[_0x247a9e(0x132)]);_0x200e7c=JSON[_0x247a9e(0x21f)](_0x200e7c),this[_0x247a9e(0xf3)]=_0x200e7c[_0x247a9e(0x1d5)];}[a3_0x53fa0a(0x1ce)](_0x24f34f){const _0x1ba956=a3_0x53fa0a;return _0x24f34f[_0x1ba956(0xe3)][_0x1ba956(0xe9)][_0x1ba956(0x1f6)][0x0]['ip'];}async[a3_0x53fa0a(0x1c9)](){const _0x2765af=a3_0x53fa0a,_0x53818c={};_0x53818c[_0x2765af(0x217)]=_0x2765af(0x22c),_0x53818c[_0x2765af(0xdc)]=function(_0x243e1a,_0x203fe5){return _0x243e1a+_0x203fe5;},_0x53818c['ILtqk']='GKE\x20Cluster\x20deletion\x20failed',_0x53818c[_0x2765af(0x17e)]=function(_0x2d187f,_0x2fa8f0){return _0x2d187f!==_0x2fa8f0;},_0x53818c[_0x2765af(0x1fa)]=_0x2765af(0x198),_0x53818c[_0x2765af(0x112)]=function(_0x160916,_0x343282){return _0x160916===_0x343282;},_0x53818c['ytDsY']='TvWiY',_0x53818c[_0x2765af(0x129)]=function(_0x3c6b1b,_0x429a9a){return _0x3c6b1b===_0x429a9a;},_0x53818c['ajhGP']=_0x2765af(0x1e6),_0x53818c['hhddQ']=function(_0x41eecd,_0x2daf65){return _0x41eecd!==_0x2daf65;},_0x53818c[_0x2765af(0x195)]=_0x2765af(0x118),_0x53818c['qGwZB']=_0x2765af(0x107);const _0x8ce047=_0x53818c;try{if(_0x8ce047[_0x2765af(0x17e)](_0x8ce047[_0x2765af(0x1fa)],_0x8ce047[_0x2765af(0x1fa)]))_0x365df1=_0x8ce047['LYdIu'];else{const _0x4c5be8=await this[_0x2765af(0x194)]();if(_0x4c5be8[0x0]?.['resourceLabels']?.[_0x2765af(0x101)]){if(_0x8ce047[_0x2765af(0x112)](_0x8ce047[_0x2765af(0x1ae)],_0x8ce047['ytDsY'])){const _0x2ea80e=_0x4c5be8[0x0]?.[_0x2765af(0x10a)]?.[_0x2765af(0x101)];return _0x2ea80e&&_0x8ce047['anPGc'](_0x2ea80e['toLowerCase'](),_0x8ce047[_0x2765af(0x1ed)]);}else _0x13fa01[_0x2765af(0x15b)]('['+_0x8ce047[_0x2765af(0xdc)](_0x19f0e1,0x1)+']\x20'+_0x2956ff[_0x211563]);}}}catch(_0xfe73cd){if(_0x8ce047[_0x2765af(0x1f9)](_0x8ce047['xyBqE'],_0x8ce047[_0x2765af(0x1e1)]))return![];else{_0x547aa7[_0x2765af(0xd3)](_0x8ce047[_0x2765af(0x1a9)]);throw _0x51214c;}}return![];}async[a3_0x53fa0a(0x19e)](){const _0x435585=a3_0x53fa0a,_0x1e985b={'HZuqt':function(_0x5c985e,_0x268488){return _0x5c985e!==_0x268488;},'aJikX':_0x435585(0x14f),'hxcQE':function(_0x5cb4f2,_0x4b7649){return _0x5cb4f2-_0x4b7649;},'lWWws':function(_0x346bc5,_0x1c3e53){return _0x346bc5===_0x1c3e53;},'lcUTR':_0x435585(0x201),'eJdDl':'gcpresources','tcjqP':_0x435585(0xcc),'yWXyi':_0x435585(0x1d4),'JVGNQ':function(_0x5e8536,_0x4b5236){return _0x5e8536!==_0x4b5236;},'BqnvH':function(_0x31004c,_0x568183){return _0x31004c===_0x568183;},'JVolw':_0x435585(0x238),'XDybQ':_0x435585(0x206),'vERwh':_0x435585(0x1ff),'CyFHQ':'InWyF','hReGp':_0x435585(0xed),'fflXK':'KHjna','AtzkS':function(_0x2e396c,_0xc4aa3c){return _0x2e396c===_0xc4aa3c;},'Zpdzv':function(_0x510494,_0x12e80f){return _0x510494===_0x12e80f;},'Tvpsu':_0x435585(0x17a),'Rezte':_0x435585(0x216),'ExgdP':_0x435585(0xf6),'KELjc':function(_0x3562cc,_0x283dc7){return _0x3562cc>_0x283dc7;},'JTgPG':function(_0x4a3832,_0x150fd5){return _0x4a3832===_0x150fd5;},'AzVMF':_0x435585(0x1d3),'JVMEp':_0x435585(0x1dd),'UtkzY':function(_0x253ad9,_0x1b9f51){return _0x253ad9<_0x1b9f51;},'AoEnP':'lkWyb','dvdvM':function(_0x1db01d,_0x4db290){return _0x1db01d+_0x4db290;},'HgUzO':function(_0x480cd4,_0x2ed272){return _0x480cd4(_0x2ed272);},'ljMnk':_0x435585(0x10b),'DCkWB':function(_0x211813,_0x55b51d){return _0x211813(_0x55b51d);},'dHJnB':function(_0x1452d9,_0x193e6f){return _0x1452d9<=_0x193e6f;},'rEgiA':'avrEB','zJhIu':function(_0x3a741e){return _0x3a741e();},'VDGaB':function(_0x6b7146,_0x2c5214){return _0x6b7146-_0x2c5214;},'vosCj':function(_0x44a95d,_0x4929fe){return _0x44a95d!==_0x4929fe;},'cqnzO':function(_0x24bb30,_0xee640e){return _0x24bb30-_0xee640e;},'oFwsG':'eGWMX','mZxdh':'DKUiX'};let _0x1a62d3=await fs[_0x435585(0x105)](path[_0x435585(0x123)](__dirname,'..',_0x1e985b['lcUTR'],_0x1e985b['eJdDl'],_0x1e985b[_0x435585(0xff)]),_0x1e985b['yWXyi']);_0x1a62d3=JSON[_0x435585(0x21f)](_0x1a62d3);let _0x48a920=[global_registry[_0x435585(0x108)]];if(_0x1e985b['JVGNQ'](_0x1a62d3[global_registry[_0x435585(0x108)]],undefined)){if(_0x1e985b[_0x435585(0x234)](_0x1e985b['JVolw'],_0x1e985b[_0x435585(0x1f1)]))return![];else _0x48a920=_0x48a920['concat'](_0x1a62d3[global_registry[_0x435585(0x108)]]);}const _0x219c0f=[];for await(const _0x956e46 of _0x48a920){if(_0x1e985b[_0x435585(0x234)](_0x1e985b['vERwh'],_0x1e985b[_0x435585(0x153)]))_0x5c4753['vpcInfo']['push'](_0x13d5be);else{const _0x13d819={};_0x13d819[_0x435585(0x1d6)]=_0x435585(0xfb)+this[_0x435585(0xf3)]+_0x435585(0x149)+_0x956e46;const _0x55bf18=_0x13d819,_0x207c12=await this[_0x435585(0x227)][_0x435585(0x20d)](_0x55bf18);for(const _0x3c354c of _0x207c12[0x0][_0x435585(0x103)]){_0x1e985b[_0x435585(0x234)](_0x1e985b[_0x435585(0x213)],_0x1e985b[_0x435585(0x111)])?(_0x4bfef9[_0x435585(0x108)]=_0x3e789f[0x0],this['updateClusterRegion']()):_0x1e985b[_0x435585(0x183)](_0x3c354c[_0x435585(0x13d)],this['clusterName'])&&(_0x1e985b[_0x435585(0xf2)](_0x1e985b[_0x435585(0x1c1)],_0x1e985b[_0x435585(0x1c1)])?_0x219c0f[_0x435585(0x237)](_0x956e46):this[_0x435585(0xd8)](this[_0x435585(0xc6)]));}}}const _0x5d0a97=_0x219c0f[_0x435585(0xf4)];if(_0x1e985b['AtzkS'](_0x5d0a97,0x1)){if(_0x1e985b[_0x435585(0x1fc)](_0x1e985b[_0x435585(0x233)],_0x1e985b[_0x435585(0x233)]))return _0x2e309d['status']['loadBalancer'][_0x435585(0x1f6)][0x0]['ip'];else{if(_0x1e985b[_0x435585(0x19d)](global_registry['clusterRegion'],_0x219c0f[0x0])){if(_0x1e985b[_0x435585(0x1fc)](_0x1e985b[_0x435585(0x207)],_0x1e985b['ExgdP']))return _0x1e985b[_0x435585(0x19d)](_0x4d180c['clusterRegion'],_0x4e3652[0x0])&&(_0x309219['clusterRegion']=_0x514c17[0x0],this[_0x435585(0x14e)]()),!![];else global_registry['clusterRegion']=_0x219c0f[0x0],this[_0x435585(0x14e)]();}return!![];}}else{if(_0x1e985b['KELjc'](_0x5d0a97,0x1)){if(_0x1e985b[_0x435585(0x165)](_0x1e985b[_0x435585(0xc4)],_0x1e985b['JVMEp']))_0x8f42ed['execSync'](_0x435585(0x1be)+this['clusterName']+_0x435585(0x204)+_0x17a7b4[_0x435585(0x108)]+'\x20--quiet\x20--user-output-enabled=false');else{console[_0x435585(0x15b)](_0x435585(0x1c3)+this[_0x435585(0x182)]+_0x435585(0xf5));for(let _0x12e46b=0x0;_0x1e985b[_0x435585(0x15e)](_0x12e46b,_0x5d0a97);_0x12e46b+=0x1){_0x1e985b[_0x435585(0x234)](_0x1e985b[_0x435585(0x12d)],_0x1e985b[_0x435585(0x12d)])?console[_0x435585(0x15b)]('['+_0x1e985b[_0x435585(0x106)](_0x12e46b,0x1)+']\x20'+_0x219c0f[_0x12e46b]):(_0x8b7255[_0x435585(0x14d)](_0x1e985b[_0x435585(0x211)]),_0x4a8665[_0x435585(0xd1)](0x1));}const _0x41bc89=await _0x1e985b[_0x435585(0x191)](inputConfirmation,_0x1e985b[_0x435585(0x1a6)]),_0x59c8ff=_0x1e985b[_0x435585(0x191)](Number,_0x41bc89);(_0x1e985b['DCkWB'](isNaN,_0x59c8ff)||_0x1e985b[_0x435585(0x116)](_0x59c8ff,0x0)||_0x1e985b[_0x435585(0x1c2)](_0x59c8ff,_0x5d0a97))&&(_0x1e985b['HZuqt'](_0x1e985b['rEgiA'],_0x1e985b[_0x435585(0x1cb)])?(_0x41d825[_0x435585(0x108)]=_0x3b981e[_0x1e985b['hxcQE'](_0x4c9823,0x1)],this[_0x435585(0x14e)]()):(console[_0x435585(0x14d)](_0x1e985b['aJikX']),process[_0x435585(0xd1)](0x1)));_0x1e985b[_0x435585(0x19a)](closeInput),logger['info'](_0x435585(0x18e)+_0x219c0f[_0x1e985b[_0x435585(0x226)](_0x59c8ff,0x1)]);if(_0x1e985b[_0x435585(0x1ec)](global_registry['clusterRegion'],_0x219c0f[_0x1e985b[_0x435585(0x121)](_0x59c8ff,0x1)])){if(_0x1e985b['AtzkS'](_0x1e985b[_0x435585(0x1ef)],_0x1e985b[_0x435585(0x200)])){const _0x117af8=_0x435585(0xda)+this['projectId']+'/regions/'+_0xa07529[_0x435585(0x108)]+_0x435585(0x125)+_0x328cac[0x0];if(_0x1e985b['lWWws'](_0x117af8,_0x1250df))return[!![],_0x164e0b];}else global_registry['clusterRegion']=_0x219c0f[_0x1e985b[_0x435585(0x121)](_0x59c8ff,0x1)],this[_0x435585(0x14e)]();}return!![];}}}return![];}async['getClusterInfo'](){const _0x50ff1d=a3_0x53fa0a,_0x9c8e76=await this[_0x50ff1d(0x227)][_0x50ff1d(0x113)]({'name':_0x50ff1d(0xfb)+this[_0x50ff1d(0xf3)]+'/locations/'+global_registry[_0x50ff1d(0x108)]+'/clusters/'+this[_0x50ff1d(0x182)]});return _0x9c8e76;}async[a3_0x53fa0a(0x177)](){const _0x570573=a3_0x53fa0a,_0x4d0daf={};_0x4d0daf[_0x570573(0x1f7)]=_0x570573(0x14b),_0x4d0daf['mCeuV']=_0x570573(0x201),_0x4d0daf['yuVIU']=_0x570573(0x1a4),_0x4d0daf[_0x570573(0x152)]=_0x570573(0x1fb);const _0x4736ae=_0x4d0daf;cp[_0x570573(0x172)](_0x4736ae[_0x570573(0x1f7)]),cp[_0x570573(0x1d7)](_0x570573(0x127)+this[_0x570573(0x132)]);const _0x511c92=await this[_0x570573(0x194)](),_0x2592b8='gke_'+this[_0x570573(0xf3)]+'_'+global_registry[_0x570573(0x108)]+'_'+this[_0x570573(0x182)];let _0x4a88e9=await fs['readFileAsync'](path[_0x570573(0x123)](__dirname,'..',_0x4736ae[_0x570573(0x1e9)],_0x4736ae['yuVIU'],_0x4736ae['gRgEt']));return _0x4a88e9=_0x4a88e9['toString'](),_0x4a88e9=_0x4a88e9[_0x570573(0x196)](/<CLUSTER_NAME>/g,_0x2592b8),_0x4a88e9=_0x4a88e9[_0x570573(0x196)](/<CLUSTER_URL>/g,_0x570573(0x225)+_0x511c92[0x0]['endpoint']),_0x4a88e9=_0x4a88e9['replace'](/<CERTIFICATE_DATA>/g,_0x511c92[0x0]['masterAuth'][_0x570573(0x18d)]),_0x4a88e9;}async[a3_0x53fa0a(0xf9)](){const _0x17d8b3=a3_0x53fa0a,_0x444ea6={};_0x444ea6[_0x17d8b3(0xd2)]='Service\x20account\x20already\x20exists,\x20skipping',_0x444ea6['qCJRs']=function(_0x4886c2,_0x5d57d4){return _0x4886c2===_0x5d57d4;},_0x444ea6[_0x17d8b3(0x221)]=_0x17d8b3(0x14c),_0x444ea6[_0x17d8b3(0x134)]='QKcSm',_0x444ea6[_0x17d8b3(0x18a)]='cyMsf',_0x444ea6[_0x17d8b3(0x1cc)]=_0x17d8b3(0x100),_0x444ea6['CjYjy']=_0x17d8b3(0x1b4),_0x444ea6[_0x17d8b3(0xe8)]=function(_0x4a45bc,_0x50a307){return _0x4a45bc===_0x50a307;},_0x444ea6[_0x17d8b3(0x22d)]=function(_0x4dafc6,_0x20d5a5){return _0x4dafc6!==_0x20d5a5;},_0x444ea6['gpiyp']=_0x17d8b3(0x1ee);const _0x88860e=_0x444ea6,_0x26b318={};_0x26b318[_0x17d8b3(0x175)]=[_0x88860e[_0x17d8b3(0x221)]],_0x26b318[_0x17d8b3(0x12c)]=this[_0x17d8b3(0x132)];const _0x230d70=await google['auth']['getClient'](_0x26b318),_0x2034c5=await this[_0x17d8b3(0x122)][_0x17d8b3(0x10c)][_0x17d8b3(0x1e8)]['list']({'name':_0x17d8b3(0xfb)+this[_0x17d8b3(0xf3)],'auth':_0x230d70});if(_0x2034c5?.[_0x17d8b3(0x189)]?.['accounts']){if(_0x88860e[_0x17d8b3(0x21e)](_0x88860e[_0x17d8b3(0x134)],_0x88860e[_0x17d8b3(0x18a)])){_0x4d1499['info'](_0x88860e[_0x17d8b3(0xd2)]);return;}else for(const _0x560e9b of _0x2034c5['data'][_0x17d8b3(0x1a1)]){if(_0x88860e[_0x17d8b3(0x21e)](_0x88860e[_0x17d8b3(0x1cc)],_0x88860e[_0x17d8b3(0x1e5)]))for(const _0x38b2c6 of _0x1f60dd[_0x17d8b3(0x189)][_0x17d8b3(0x1a1)]){if(_0x88860e[_0x17d8b3(0x21e)](_0x38b2c6?.[_0x17d8b3(0x13d)],_0x17d8b3(0xfb)+this['projectId']+_0x17d8b3(0x212)+this['serviceAccountName']+'@'+this[_0x17d8b3(0xf3)]+_0x17d8b3(0xef)))return!![];}else{if(_0x88860e['NvTfn'](_0x560e9b?.[_0x17d8b3(0x13d)],_0x17d8b3(0xfb)+this[_0x17d8b3(0xf3)]+_0x17d8b3(0x212)+this[_0x17d8b3(0x208)]+'@'+this[_0x17d8b3(0xf3)]+'.iam.gserviceaccount.com'))return _0x88860e[_0x17d8b3(0x22d)](_0x88860e[_0x17d8b3(0x1d8)],_0x88860e[_0x17d8b3(0x1d8)])?[!![],_0x533c60]:!![];}}}return![];}async[a3_0x53fa0a(0x197)](){const _0x472da2=a3_0x53fa0a,_0x28784c={};_0x28784c[_0x472da2(0x1fe)]=function(_0x3ad891,_0x1100bd){return _0x3ad891!==_0x1100bd;},_0x28784c[_0x472da2(0xe5)]=_0x472da2(0x1b0),_0x28784c[_0x472da2(0x193)]='jaltf',_0x28784c[_0x472da2(0xce)]=_0x472da2(0x156),_0x28784c['LtaVQ']=_0x472da2(0x126),_0x28784c[_0x472da2(0x144)]='https://www.googleapis.com/auth/cloud-platform',_0x28784c[_0x472da2(0x1dc)]=_0x472da2(0x1df),_0x28784c[_0x472da2(0x11b)]=_0x472da2(0x160),_0x28784c['XlBqb']=_0x472da2(0x174),_0x28784c[_0x472da2(0x19f)]=_0x472da2(0xde),_0x28784c[_0x472da2(0x1e4)]=_0x472da2(0x170),_0x28784c[_0x472da2(0x235)]='storage.buckets.get',_0x28784c[_0x472da2(0x1aa)]='storage.buckets.getIamPolicy',_0x28784c[_0x472da2(0x13a)]=_0x472da2(0x176),_0x28784c[_0x472da2(0x1af)]=_0x472da2(0x192),_0x28784c['gTnvC']=_0x472da2(0x1eb),_0x28784c[_0x472da2(0x166)]=_0x472da2(0x16f),_0x28784c[_0x472da2(0xd6)]=_0x472da2(0xc5),_0x28784c[_0x472da2(0x10f)]=_0x472da2(0x17b),_0x28784c[_0x472da2(0x1cf)]=_0x472da2(0x219),_0x28784c[_0x472da2(0x1b6)]=_0x472da2(0x1a7),_0x28784c['hlOHH']='storage.multipartUploads.list',_0x28784c['AJHMk']=_0x472da2(0x17c),_0x28784c['Yevpl']=_0x472da2(0x231),_0x28784c[_0x472da2(0xeb)]=_0x472da2(0x186),_0x28784c[_0x472da2(0x239)]=_0x472da2(0xf8),_0x28784c[_0x472da2(0xfe)]=_0x472da2(0x16e),_0x28784c[_0x472da2(0x1f3)]='storage.objects.list',_0x28784c[_0x472da2(0xea)]=_0x472da2(0x1e7),_0x28784c[_0x472da2(0x1c5)]=_0x472da2(0x184),_0x28784c['cMHdq']='Turboscale\x20Custom\x20Role',_0x28784c[_0x472da2(0x12a)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x30e7e3=_0x28784c,_0x4c9e3f=await this[_0x472da2(0xf9)]();if(_0x4c9e3f){if(_0x30e7e3[_0x472da2(0x1fe)](_0x30e7e3[_0x472da2(0xe5)],_0x30e7e3['XAtbz'])){logger['info'](_0x30e7e3[_0x472da2(0xce)]);return;}else return!![];}logger[_0x472da2(0xd3)](_0x30e7e3[_0x472da2(0x146)]);const _0x233b61={};_0x233b61[_0x472da2(0x175)]=[_0x30e7e3[_0x472da2(0x144)]],_0x233b61[_0x472da2(0x12c)]=this[_0x472da2(0x132)];const _0x225ee2=await google['auth'][_0x472da2(0x1d9)](_0x233b61),_0x2c02c2={};_0x2c02c2[_0x472da2(0x10d)]=[_0x30e7e3[_0x472da2(0x1dc)],_0x30e7e3['YDmCg'],_0x30e7e3[_0x472da2(0x21b)],_0x30e7e3[_0x472da2(0x19f)],_0x30e7e3['wfeTY'],_0x30e7e3['fMAyo'],_0x30e7e3['maYwR'],_0x30e7e3[_0x472da2(0x13a)],_0x30e7e3[_0x472da2(0x1af)],_0x30e7e3[_0x472da2(0x159)],_0x30e7e3[_0x472da2(0x166)],_0x30e7e3[_0x472da2(0xd6)],_0x30e7e3['ZooZN'],_0x30e7e3[_0x472da2(0x1cf)],_0x30e7e3[_0x472da2(0x1b6)],_0x30e7e3[_0x472da2(0x1ab)],_0x30e7e3[_0x472da2(0xee)],_0x30e7e3[_0x472da2(0x19b)],_0x30e7e3[_0x472da2(0xeb)],_0x30e7e3[_0x472da2(0x239)],_0x30e7e3[_0x472da2(0xfe)],_0x30e7e3[_0x472da2(0x1f3)],_0x30e7e3[_0x472da2(0xea)],_0x30e7e3['inhUM']],_0x2c02c2[_0x472da2(0x1bf)]=_0x30e7e3[_0x472da2(0x1f2)],await this['iamClient'][_0x472da2(0xd5)][_0x472da2(0x117)][_0x472da2(0xca)]({'parent':_0x472da2(0xfb)+this['projectId'],'requestBody':{'role':_0x2c02c2,'roleId':this[_0x472da2(0x20f)]},'auth':_0x225ee2});const _0x32476f={};_0x32476f[_0x472da2(0x13d)]=_0x472da2(0xfb)+this[_0x472da2(0xf3)],_0x32476f[_0x472da2(0x229)]={},_0x32476f[_0x472da2(0x167)]=_0x225ee2,_0x32476f[_0x472da2(0x229)][_0x472da2(0xc8)]=this['serviceAccountName'];const _0x3e603e=_0x32476f;await this[_0x472da2(0x122)][_0x472da2(0x10c)][_0x472da2(0x1e8)][_0x472da2(0xca)](_0x3e603e);let _0x1570a1=await this[_0x472da2(0xf1)][_0x472da2(0x171)]({'resource':_0x472da2(0xfb)+this[_0x472da2(0xf3)]});_0x1570a1=_0x1570a1[0x0][_0x472da2(0x12f)];const _0x5723bc={};_0x5723bc['role']=_0x472da2(0xfb)+this[_0x472da2(0xf3)]+'/roles/'+this['customRoleName'],_0x5723bc['members']=[_0x472da2(0x15d)+this['serviceAccountName']+'@'+this['projectId']+_0x472da2(0xef)],_0x1570a1[_0x472da2(0x237)](_0x5723bc);const _0x34672f={};_0x34672f['bindings']=_0x1570a1,await this[_0x472da2(0xf1)][_0x472da2(0x1bb)]({'resource':'projects/'+this[_0x472da2(0xf3)],'policy':_0x34672f}),logger['info'](_0x30e7e3['sIXsu']);}async[a3_0x53fa0a(0x1c0)](_0x476b5a=a3_0x53fa0a(0x22c),_0x15d2ba=['default']){const _0xdbc706=a3_0x53fa0a,_0x195e16={};_0x195e16[_0xdbc706(0x163)]=_0xdbc706(0x223),_0x195e16[_0xdbc706(0xe6)]=_0xdbc706(0x10e),_0x195e16['OmgCA']=function(_0x464635,_0xa916f2){return _0x464635===_0xa916f2;},_0x195e16[_0xdbc706(0xe4)]='isPXs',_0x195e16['ZHRQp']='default',_0x195e16[_0xdbc706(0x162)]=function(_0xebea2d,_0xcb5682){return _0xebea2d!==_0xcb5682;},_0x195e16[_0xdbc706(0x215)]='uzpUj',_0x195e16[_0xdbc706(0x15a)]=_0xdbc706(0x1e3);const _0x1b199c=_0x195e16,_0x5dad15={};_0x5dad15[_0xdbc706(0x1a3)]=WS_EVENTS[_0xdbc706(0xd0)],_0x5dad15[_0xdbc706(0x22f)]=_0x1b199c['XYpga'],this['webSocketUtils']['sendEventToBackend'](this[_0xdbc706(0xc6)],_0x5dad15),logger[_0xdbc706(0xd3)](_0x1b199c[_0xdbc706(0xe6)]);!_0x476b5a&&(_0x1b199c[_0xdbc706(0x11f)](_0x1b199c[_0xdbc706(0xe4)],_0x1b199c[_0xdbc706(0xe4)])?_0x476b5a=_0x1b199c[_0xdbc706(0x20c)]:_0x129f0e['push'](_0x1cbc11));if(!_0x15d2ba||_0x1b199c['OmgCA'](_0x15d2ba['length'],0x0)){if(_0x1b199c[_0xdbc706(0x162)](_0x1b199c[_0xdbc706(0x215)],_0x1b199c[_0xdbc706(0x15a)]))_0x15d2ba=[_0x1b199c[_0xdbc706(0x20c)]];else return!![];}return await this[_0xdbc706(0x197)](),await this[_0xdbc706(0x230)](_0x476b5a,_0x15d2ba),await this[_0xdbc706(0x1c4)](),!![];}async[a3_0x53fa0a(0x230)](_0x5ee1ff=a3_0x53fa0a(0x22c),_0x88a2d=[a3_0x53fa0a(0x22c)]){const _0x18106c=a3_0x53fa0a,_0xb8956a={};_0xb8956a['DUQWj']=function(_0x1969e1,_0x2b6572){return _0x1969e1===_0x2b6572;},_0xb8956a[_0x18106c(0xe1)]=_0x18106c(0x19c),_0xb8956a['NWpTh']=_0x18106c(0x21d),_0xb8956a['QFnuK']=_0x18106c(0x1a2),_0xb8956a['iSqGn']=_0x18106c(0x201),_0xb8956a[_0x18106c(0x11d)]=_0x18106c(0x1a4),_0xb8956a[_0x18106c(0x168)]=_0x18106c(0x22a),_0xb8956a[_0x18106c(0x1e2)]='utf-8',_0xb8956a[_0x18106c(0x232)]=_0x18106c(0xcc),_0xb8956a[_0x18106c(0x22b)]=function(_0x284043,_0xa5b338){return _0x284043*_0xa5b338;},_0xb8956a[_0x18106c(0x1c6)]=function(_0x4f9549,_0x4554c9){return _0x4f9549===_0x4554c9;},_0xb8956a['hecpZ']=_0x18106c(0xc7),_0xb8956a[_0x18106c(0x1f8)]=_0x18106c(0x18b),_0xb8956a['IcXfM']=_0x18106c(0x1cd),_0xb8956a[_0x18106c(0xe0)]=_0x18106c(0x157),_0xb8956a['iAlSj']=function(_0x3a6ccf,_0x4db590){return _0x3a6ccf!==_0x4db590;},_0xb8956a[_0x18106c(0xec)]=_0x18106c(0xcf),_0xb8956a[_0x18106c(0x1ac)]=_0x18106c(0x202);const _0x4d04af=_0xb8956a;try{if(_0x4d04af['DUQWj'](_0x4d04af['BRjyq'],_0x4d04af[_0x18106c(0x22e)]))return!![];else{logger[_0x18106c(0xd3)](_0x4d04af[_0x18106c(0x179)]);let _0x365528=await fs['readFileAsync'](path[_0x18106c(0x123)](__dirname,'..',_0x4d04af[_0x18106c(0xdf)],_0x4d04af['MhLNh'],_0x4d04af['ysiAC']),_0x4d04af[_0x18106c(0x1e2)]);_0x365528=JSON['parse'](_0x365528);let _0x119ace=await fs['readFileAsync'](path[_0x18106c(0x123)](__dirname,'..',_0x4d04af[_0x18106c(0xdf)],_0x4d04af[_0x18106c(0x11d)],_0x4d04af[_0x18106c(0x232)]),_0x4d04af[_0x18106c(0x1e2)]);_0x119ace=JSON['parse'](_0x119ace),_0x365528[_0x18106c(0x13d)]=this[_0x18106c(0x182)],_0x365528[_0x18106c(0x181)][0x0][_0x18106c(0x11a)]['machineType']=global_registry['instanceType'],_0x365528[_0x18106c(0x181)][0x1][_0x18106c(0x11a)][_0x18106c(0x13b)]=global_registry['instanceType'],_0x365528[_0x18106c(0x181)][0x0]['config'][_0x18106c(0x1f4)]=this[_0x18106c(0x208)]+'@'+this[_0x18106c(0xf3)]+_0x18106c(0xef),_0x365528[_0x18106c(0x181)][0x1][_0x18106c(0x11a)][_0x18106c(0x1f4)]=this[_0x18106c(0x208)]+'@'+this[_0x18106c(0xf3)]+_0x18106c(0xef),_0x365528[_0x18106c(0x181)][0x0][_0x18106c(0x1db)]['minNodeCount']=global_registry[_0x18106c(0x222)],_0x365528[_0x18106c(0x181)][0x1][_0x18106c(0x1db)][_0x18106c(0xc3)]=0x0,_0x365528[_0x18106c(0x181)][0x0][_0x18106c(0x1db)]['maxNodeCount']=global_registry['maxNodes'],_0x365528[_0x18106c(0x181)][0x1][_0x18106c(0x1db)][_0x18106c(0x180)]=global_registry['maxNodes'],_0x365528[_0x18106c(0x1b8)]=global_registry[_0x18106c(0x108)],_0x365528['locations']=[_0x119ace[global_registry[_0x18106c(0x108)]][0x0]],_0x365528[_0x18106c(0x1bd)]=_0x18106c(0xfb)+this[_0x18106c(0xf3)]+_0x18106c(0x142)+_0x5ee1ff,_0x365528[_0x18106c(0x1ca)]=_0x18106c(0xfb)+this[_0x18106c(0xf3)]+'/regions/'+global_registry[_0x18106c(0x108)]+_0x18106c(0x125)+_0x88a2d[0x0];const _0x20d808=await this[_0x18106c(0x227)][_0x18106c(0x230)]({'cluster':_0x365528,'parent':'projects/'+this['projectId']+'/locations/'+global_registry[_0x18106c(0x108)]});await this[_0x18106c(0x1d2)][_0x18106c(0xf0)](_0x4d04af[_0x18106c(0x22b)](_0x4d04af[_0x18106c(0x22b)](0x7,0x3c),0x3e8));}}catch(_0xfb31e7){if(_0x4d04af[_0x18106c(0x1c6)](_0x4d04af[_0x18106c(0x1b1)],_0x4d04af['nhthn']))_0x36d26a=_0x6a790f[_0x18106c(0xe7)](_0x53c096[_0x27a6cc['clusterRegion']]);else{const _0x630c4e=await this[_0x18106c(0x19e)]();if(_0x630c4e){if(_0x4d04af[_0x18106c(0x140)](_0x4d04af[_0x18106c(0x14a)],_0x4d04af[_0x18106c(0x14a)]))logger[_0x18106c(0xd3)](_0x4d04af[_0x18106c(0xe0)],_0xfb31e7[_0x18106c(0x1fd)]),await this[_0x18106c(0x145)]();else return![];}else{if(_0x4d04af['iAlSj'](_0x4d04af[_0x18106c(0xec)],_0x4d04af['zTWDJ']))return _0x3c79ae[_0x18106c(0x14d)](_0x18106c(0xc9)+_0x2bb44f+_0x18106c(0xfa)+_0xcbb1f),[![],[]];else logger[_0x18106c(0xd3)](_0x4d04af[_0x18106c(0x1ac)]);}throw _0xfb31e7;}}}async[a3_0x53fa0a(0x1c4)](){const _0x380e8a=a3_0x53fa0a;cp[_0x380e8a(0x172)](_0x380e8a(0x1be)+this[_0x380e8a(0x182)]+_0x380e8a(0x204)+global_registry[_0x380e8a(0x108)]+_0x380e8a(0x12b));}async[a3_0x53fa0a(0x145)](_0x37134e,_0x21a1ea){const _0x36369d=a3_0x53fa0a,_0x46a27d={'mCEsS':function(_0x218fc6,_0x3f775d){return _0x218fc6===_0x3f775d;},'TgYDB':function(_0x318c50,_0x58c4d4){return _0x318c50===_0x58c4d4;},'oioNV':_0x36369d(0x1e6),'vfQbk':function(_0x1bbbe4,_0x509db8){return _0x1bbbe4!==_0x509db8;},'iDcYK':_0x36369d(0x13f),'YmQdJ':_0x36369d(0x185),'RFNjT':function(_0x51120e,_0x151e8d){return _0x51120e(_0x151e8d);},'TDcKJ':function(_0x4819d5,_0x11c7a0){return _0x4819d5(_0x11c7a0);},'ICrJc':function(_0x13483c,_0xb820b2){return _0x13483c===_0xb820b2;},'kncAi':_0x36369d(0x17f),'zPhsi':function(_0x52d7f2,_0x333ce6){return _0x52d7f2===_0x333ce6;},'uCDky':_0x36369d(0x164),'vmkLp':function(_0x14952c,_0x282b15){return _0x14952c!==_0x282b15;},'XIDzT':_0x36369d(0x133),'aNgJG':_0x36369d(0x188),'LCbih':_0x36369d(0xfc),'xjOYS':_0x36369d(0x224)};try{if(_0x46a27d['vfQbk'](_0x46a27d['iDcYK'],_0x46a27d[_0x36369d(0x130)])){await _0x46a27d['RFNjT'](deleteAgent,_0x37134e),await _0x46a27d[_0x36369d(0x11c)](deleteRoutingDeps,_0x37134e),logger[_0x36369d(0xd3)](_0x36369d(0x21c)+this[_0x36369d(0x182)]);const _0x12d29e=await this['containerClient'][_0x36369d(0x145)]({'name':_0x36369d(0xfb)+this[_0x36369d(0xf3)]+_0x36369d(0x149)+global_registry[_0x36369d(0x108)]+_0x36369d(0x1b3)+this['clusterName']});if(_0x46a27d[_0x36369d(0x114)](_0x12d29e[0x0]?.['status'],_0x46a27d[_0x36369d(0x16a)])||_0x46a27d[_0x36369d(0x1ba)](_0x12d29e[0x0]?.[_0x36369d(0xe3)],_0x46a27d[_0x36369d(0xe2)])){if(_0x46a27d['vmkLp'](_0x46a27d['XIDzT'],_0x46a27d[_0x36369d(0x1b5)])){if(_0x46a27d[_0x36369d(0x1a5)](_0x306e6f?.[_0x36369d(0x13d)],'projects/'+this[_0x36369d(0xf3)]+_0x36369d(0x212)+this['serviceAccountName']+'@'+this[_0x36369d(0xf3)]+'.iam.gserviceaccount.com'))return!![];}else return!![];}logger[_0x36369d(0xd3)](_0x46a27d[_0x36369d(0x138)]);}else _0x46a27d[_0x36369d(0x1a5)](_0x18885b[_0x36369d(0x13d)],this[_0x36369d(0x182)])&&_0x4f49b4[_0x36369d(0x237)](_0x4650ed);}catch(_0x25856b){if(_0x46a27d[_0x36369d(0x114)](_0x46a27d[_0x36369d(0x1e0)],_0x46a27d[_0x36369d(0x1e0)])){logger[_0x36369d(0xd3)](_0x46a27d[_0x36369d(0xfd)]);throw _0x25856b;}else{const _0x386ded=_0x2c7a57[0x0]?.[_0x36369d(0x10a)]?.[_0x36369d(0x101)];return _0x386ded&&_0x46a27d[_0x36369d(0x1f5)](_0x386ded[_0x36369d(0x148)](),_0x46a27d[_0x36369d(0x124)]);}}}async[a3_0x53fa0a(0xf7)](_0x3d7653){const _0x2a41b6=a3_0x53fa0a,_0xae1a7b={};_0xae1a7b[_0x2a41b6(0x228)]=_0x2a41b6(0x22c),_0xae1a7b[_0x2a41b6(0x137)]=_0x2a41b6(0x202),_0xae1a7b[_0x2a41b6(0xc2)]=function(_0x1e0ce9,_0xb84682){return _0x1e0ce9===_0xb84682;},_0xae1a7b[_0x2a41b6(0x1de)]=_0x2a41b6(0x11e),_0xae1a7b[_0x2a41b6(0x16d)]=_0x2a41b6(0x104),_0xae1a7b[_0x2a41b6(0x214)]=function(_0x558407,_0xd34f){return _0x558407>_0xd34f;},_0xae1a7b[_0x2a41b6(0xc1)]=function(_0x1c7a1d,_0x355456){return _0x1c7a1d===_0x355456;},_0xae1a7b[_0x2a41b6(0x13e)]=function(_0x55020d,_0x1838b0){return _0x55020d!==_0x1838b0;},_0xae1a7b[_0x2a41b6(0x199)]='VumQj';const _0x1418c=_0xae1a7b;try{if(_0x1418c[_0x2a41b6(0xc2)](_0x1418c[_0x2a41b6(0x1de)],_0x1418c[_0x2a41b6(0x16d)]))_0x2166e8=[_0x1418c[_0x2a41b6(0x228)]];else{const _0x32aacf=await this[_0x2a41b6(0x136)]['get']({'project':this['projectId'],'network':_0x3d7653});if(_0x1418c[_0x2a41b6(0x214)](_0x32aacf['length'],0x0)&&_0x1418c['vdwah'](_0x32aacf[0x0]['name'],_0x3d7653)){if(_0x1418c[_0x2a41b6(0x13e)](_0x1418c[_0x2a41b6(0x199)],_0x1418c[_0x2a41b6(0x199)]))_0x25588d[_0x2a41b6(0xd3)](_0x1418c[_0x2a41b6(0x137)]);else return!![];}}}catch(_0x462043){return![];}return![];}async[a3_0x53fa0a(0x21a)](_0x28f027,_0x54ad24){const _0x526a22=a3_0x53fa0a,_0x2b6b0b={};_0x2b6b0b[_0x526a22(0x128)]=function(_0x5ba5d7,_0x2825cb){return _0x5ba5d7===_0x2825cb;};const _0x42c664=_0x2b6b0b;try{const _0x4656e0=await this[_0x526a22(0x136)][_0x526a22(0xdb)]({'project':this[_0x526a22(0xf3)],'network':_0x54ad24});for(const _0x37ae94 of _0x4656e0[0x0][_0x526a22(0x110)]){const _0x2fff8d=_0x526a22(0xda)+this['projectId']+_0x526a22(0x1b2)+global_registry[_0x526a22(0x108)]+_0x526a22(0x125)+_0x28f027[0x0];if(_0x42c664[_0x526a22(0x128)](_0x2fff8d,_0x37ae94))return[!![],_0x28f027];}}catch(_0x32f375){return logger[_0x526a22(0x14d)](_0x526a22(0xc9)+_0x28f027+_0x526a22(0xfa)+_0x32f375),[![],[]];}return[![],[]];}async[a3_0x53fa0a(0xd8)](){const _0x51d4ae=a3_0x53fa0a,_0x4d7271=await this[_0x51d4ae(0x136)][_0x51d4ae(0x102)]({'project':this[_0x51d4ae(0xf3)]}),_0x1d6a87={};_0x1d6a87[_0x51d4ae(0x218)]=global_registry['bstackUsername'],_0x1d6a87[_0x51d4ae(0xd9)]=global_registry[_0x51d4ae(0x1c7)],_0x1d6a87[_0x51d4ae(0x109)]=GCP,_0x1d6a87[_0x51d4ae(0x154)]=[];const _0x50739b=_0x1d6a87;for(const _0x575fa5 of _0x4d7271){_0x50739b[_0x51d4ae(0x154)][_0x51d4ae(0x237)](_0x575fa5);}const _0x38a6aa={};_0x38a6aa[_0x51d4ae(0x1a3)]=WS_EVENTS['RESOURCES'],_0x38a6aa[_0x51d4ae(0x22f)]=_0x50739b,this['webSocketUtils'][_0x51d4ae(0x150)](this[_0x51d4ae(0xc6)],_0x38a6aa);}async[a3_0x53fa0a(0x14e)](){const _0x1d01fd=a3_0x53fa0a,_0xc8cb58={'BNRgo':function(_0x5363c6,_0x559172,_0x111141){return _0x5363c6(_0x559172,_0x111141);},'wpEzq':_0x1d01fd(0xd4),'xHLkj':_0x1d01fd(0x169),'KkqKP':function(_0x4568f1,_0x59bfc8,_0xb204){return _0x4568f1(_0x59bfc8,_0xb204);}},_0x37d55f=_0x1d01fd(0x225)+AG_API_URL+_0x1d01fd(0x20a),_0x986402={};_0x986402[_0x1d01fd(0x131)]=global_registry[_0x1d01fd(0x1d0)];const _0x41a07f={};_0x41a07f[_0x1d01fd(0x13c)]=global_registry[_0x1d01fd(0x108)];const _0x25c17d={'searchParams':_0x986402,'json':_0x41a07f,'headers':_0xc8cb58['BNRgo'](getAuthHeader,global_registry[_0x1d01fd(0x20e)],global_registry['bstackAccesskey']),'method':_0xc8cb58[_0x1d01fd(0x115)],'responseType':_0xc8cb58['xHLkj'],'throwHttpErrors':![]},_0x472c65=await _0xc8cb58[_0x1d01fd(0x158)](got,_0x37d55f,_0x25c17d);}}const a3_0x40bcf9={};a3_0x40bcf9[a3_0x53fa0a(0x15f)]=GoogleCloudProvider,module[a3_0x53fa0a(0x1f0)]=a3_0x40bcf9;
|
|
1
|
+
const a3_0x1adf32=a3_0x223f;(function(_0x470bdd,_0x1c5fe7){const _0x72a058=a3_0x223f,_0x4f49b7=_0x470bdd();while(!![]){try{const _0x305563=-parseInt(_0x72a058(0x1df))/0x1+parseInt(_0x72a058(0x2d0))/0x2*(-parseInt(_0x72a058(0x243))/0x3)+-parseInt(_0x72a058(0x1f1))/0x4*(parseInt(_0x72a058(0x1e6))/0x5)+parseInt(_0x72a058(0x2bd))/0x6+parseInt(_0x72a058(0x248))/0x7+parseInt(_0x72a058(0x2bc))/0x8+-parseInt(_0x72a058(0x219))/0x9*(-parseInt(_0x72a058(0x29f))/0xa);if(_0x305563===_0x1c5fe7)break;else _0x4f49b7['push'](_0x4f49b7['shift']());}catch(_0x46610c){_0x4f49b7['push'](_0x4f49b7['shift']());}}}(a3_0x2340,0x8313a));function a3_0x2340(){const _0x56402d=['uMQNU','JwSxa','aoMjv','utf-8','FTEQD','IaIlG','setIamPolicy','rJuYI','isVPCPresent','Dpqps','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','uEzIg','xKbtl','gcpresources','parse','ffuqG','yRSPg','nSyCI','gCUgp','ziifw','accounts','ingress','FmGrx','zJwyT','push','serviceAccounts','dTDxf','@google-cloud/container','profileId','child_process','exit','length','../config/logger','edfQU','writeFileSync','sqXTQ','storage.buckets.delete','dSNBt','GrZZj','dsmbi','.\x20Error:\x20','JZqmm','googleapis','/subnetworks/','WjuVt','storage.objects.list','managedby','BsDZj','oXaDa','ANKUk','networkClient','ZLUjY','znXOA','getClusterInfo','AkDhF','giHAK','message','getIamPolicy','project_id','BRfBK','zvOPH','25240dToIDp','minNodeCount','VjqtM','jVYXS','SEZaV','iKiNY','json','isSubnetsValid','pusFV','vWBun','requestBody','7|5|3|4|2|1|8|6|0','jPrQj','Cannot\x20find\x20subnets\x20','checkServiceAccount','../config/constants','Service\x20account\x20already\x20exists,\x20skipping','tdtTv','BDMag','getKubeConfigData','locations','role','createCluster','\x20--quiet\x20--user-output-enabled=false','resourceLabels','templates','maxNodeCount','loadBalancer','default','5809736KccZqQ','258246aKzEOE','sQwwR','/locations/','suhZv','gke_','join','kOuov','KHaIL','LMedA','maxNodes','ClusterManagerClient','execSync','NfgQI','xBuFU','updateWindowsNodeGroup','RESOURCES','ZMMuX','DwjxM','listClusters','5712TWAZwM','iam','eFkgB','serviceAccountName','Qkbqn','isClusterPresent','TgVxZ','BuZht','serviceAccount','create','sCpcn','WvDIr','regionmap.json','/global/networks/','MdcJK','readFileAsync','GEsZY','bstackAccesskey','replace','network','Creating\x20GKE\x20Cluster','mmVuP','dTIoG','DWpLA','cloudProviderName','zxDnX','webSocketUtils','QyHIh','autoscaling','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','vpcInfo','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','dhkZa','VdJPx','kCqYC','setupServiceAccount','xdHug','JQXqE','VTGMV','https://www.googleapis.com/auth/cloud-platform','gWefv','storage.objects.getIamPolicy','RJZCe','toLowerCase','UtTjJ','Cluster\x20deletion\x20completed','getUserInput','XWcRB','hftia','YkDyE','/serviceAccounts/','zGTqa','members','mbwyO','.iam.gserviceaccount.com','NOPtL','storage.buckets.getIamPolicy','turboscale_custom_role','qtMIZ','OMvrk','projects','clusterCaCertificate','title','browserstack','bfOTe','bindings','vPeGJ','jYBbv','ZWcPH','type','sendGCPInfoToHST','newRegion','storage.multipartUploads.create','ptQpV','DEWrV','clusters','Vbjrw','FKyPZ','subnetwork','MCZcX','projectId','got','config','abzRo','name','DBBeD','uJsoe','storage.buckets.createTagBinding','sendResourceDataToHST','bKxPo','KIBuM','https://','storage.objects.delete','storage.buckets.listTagBindings','ZHtAq','containerClient','pWCxw','oIGuh','KubeConfigTemplate.yaml','gridProfileId','@google-cloud/resource-manager','hyAOY','RUNNING','HDOgQ','roles','split','QijaZ','concat','YhCGA','plQTu','getClient','clusterRegion','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','kUxWI','scopes','qjMQH','DBhng','PUT','WMEHS','yYcYe','@google-cloud/compute','getCluster','data','masterAuth','exec','GIVaf','WlQeg','storage.objects.setIamPolicy','LqcFv','accessKey','/regions/','UDSup','UFJfx','/clusters/','keyFile','jLjQh','location','652956WPHRjQ','tbPMv','iDyns','xiGvZ','storage.buckets.getObjectInsights','SJUKI','delay','5405gJNkvS','NetworksClient','Turboscale\x20Custom\x20Role','storage.multipartUploads.abort','\x20--windows-os-version=ltsc2022\x20--region\x20','HDsKd','GKE\x20Cluster\x20deletion\x20failed','uuwZF','/roles/','turboscale-service-account','Cxnwy','3552FEMWcx','obViP','cLiXN','ANpxl','jOXBD','jnaMM','credentialsPath','auth','VvRwj','zHpSb','iam.serviceAccounts.signBlob','instanceType','QKFcV','WPkhT','UDSNf','accountId','udzty','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','NGZyK','sendEventToBackend','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','IxPPE','storage.buckets.update','setCachedCredsInRegistry','storage.multipartUploads.list','projects/','stack','exports','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','customRoleName','GQXey','JiBKo','gSGKM','storage.buckets.setIamPolicy','organizations','lFkvm','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','Found\x20cluster\x20with\x20name\x20\x27','QaClj','5436LecaHj','fUbxG','aooee','init','storage.objects.get','krwHt','tDwHm','RFUFm','wZSnD','NhQIZ','list','info','IPzlz','juRaT','get','WmcBk','uAuhd','tXDPP','btEze','../utils/utilityMethods','serviceAccount:','Zzcne','ejLum','xsUcp','clusterName','rKYSV','storage.buckets.deleteTagBinding','storage.multipartUploads.listParts','SKRAg','deleteCluster','xpPWk','DHVeQ','getGridHostname','WaLCS','AxnEa','log','CQDnx','oEqvr','nodePools','glymG','yqgDo','cYaqb','807fUDQbT','yeYrB','YOWoy','util','wgcbj','4369988pwYRHe','rws','updateClusterRegion','ZczbN','EIhba','DONE','RZIoU','gKDmL','feorC','iamClient','FmQdY','isBrowserstackCluster','status','error','../utils/gridComponents','resourcemanagerClient','parent','username','storage.objects.update','path','machineType','gkecluster.json','tWmIK','yGFfs','endpoint','ryQBw'];a3_0x2340=function(){return _0x56402d;};return a3_0x2340();}const fs=require('fs'),path=require(a3_0x1adf32(0x25b)),got=require(a3_0x1adf32(0x321)),util=require(a3_0x1adf32(0x246)),cp=require(a3_0x1adf32(0x27f)),{google}=require(a3_0x1adf32(0x28c)),compute=require(a3_0x1adf32(0x1ce)),container=require(a3_0x1adf32(0x27d)),{ProjectsClient}=require(a3_0x1adf32(0x334))['v3'],{logger}=require(a3_0x1adf32(0x282)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require(a3_0x1adf32(0x22c)),{deleteRoutingDeps,deleteAgent}=require(a3_0x1adf32(0x256)),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x1adf32(0x2ae));class GoogleCloudProvider extends CloudProvider{constructor(_0x21dac9,_0x503bdd,_0x1e16aa,_0x4675ed){const _0xe78845=a3_0x1adf32,_0x3ba8af={};_0x3ba8af[_0xe78845(0x1f9)]=_0xe78845(0x2aa),_0x3ba8af['tdtTv']=_0xe78845(0x1ef),_0x3ba8af[_0xe78845(0x285)]=_0xe78845(0x309);const _0x21ee86=_0x3ba8af,_0x3fdb48=_0x21ee86['VvRwj'][_0xe78845(0x339)]('|');let _0x156a63=0x0;while(!![]){switch(_0x3fdb48[_0x156a63++]){case'0':this['serviceAccountName']=_0x21ee86[_0xe78845(0x2b0)];continue;case'1':this[_0xe78845(0x1f7)]=null;continue;case'2':this[_0xe78845(0x251)]=null;continue;case'3':this[_0xe78845(0x294)]=null;continue;case'4':this['resourcemanagerClient']=null;continue;case'5':this[_0xe78845(0x32f)]=null;continue;case'6':this[_0xe78845(0x20f)]=_0x21ee86[_0xe78845(0x285)];continue;case'7':super(GCP,_0x21dac9,_0x503bdd,_0x1e16aa,_0x4675ed);continue;case'8':this['projectId']=null;continue;}break;}}async[a3_0x1adf32(0x328)](){const _0x43dba4=a3_0x1adf32;this[_0x43dba4(0x316)](this[_0x43dba4(0x249)]);}async['init'](){const _0x50cbd3=a3_0x1adf32;await super[_0x50cbd3(0x21c)]();const _0x2a2ea1=this['credentialsPath'],_0x7eb211={};_0x7eb211[_0x50cbd3(0x1dc)]=_0x2a2ea1,this[_0x50cbd3(0x32f)]=new container['v1'][(_0x50cbd3(0x2c7))](_0x7eb211);const _0x4f7b70={};_0x4f7b70[_0x50cbd3(0x1dc)]=_0x2a2ea1,this[_0x50cbd3(0x294)]=new compute['v1'][(_0x50cbd3(0x1e7))](_0x4f7b70);const _0x53b74a={};return _0x53b74a[_0x50cbd3(0x1dc)]=_0x2a2ea1,this['resourcemanagerClient']=new ProjectsClient(_0x53b74a),this[_0x50cbd3(0x251)]=google[_0x50cbd3(0x2d1)]('v1'),this;}async[a3_0x1adf32(0x2fe)](_0x274efc,_0x3e2046){const _0x1ba60d=a3_0x1adf32,_0x1ee609={'OAuPq':function(_0x1b362e,_0x5af877){return _0x1b362e(_0x5af877);},'kOuov':_0x1ba60d(0x216),'NfgQI':function(_0x3a37b1){return _0x3a37b1();},'kCqYC':'gcp_credentials.json'},_0x3a23c3=await _0x1ee609['OAuPq'](_0x274efc,_0x1ee609[_0x1ba60d(0x2c3)]);let _0x434be8=await fs['readFileAsync'](_0x3a23c3);_0x434be8=_0x434be8['toString']();const _0x1e5e65=_0x1ee609[_0x1ba60d(0x2c9)](getDirForConfig),_0x2a3ffc=path[_0x1ba60d(0x2c2)](_0x1e5e65,_0x1ee609[_0x1ba60d(0x2f2)]);fs[_0x1ba60d(0x284)](_0x2a3ffc,_0x434be8),this[_0x1ba60d(0x1f7)]=_0x2a3ffc;const _0x1c3307={};return _0x1c3307[_0x1ba60d(0x1dc)]=_0x2a3ffc,_0x3e2046['cloudProvider'][GCP]=_0x1c3307,_0x434be8=JSON[_0x1ba60d(0x270)](_0x434be8),this[_0x1ba60d(0x320)]=_0x434be8[_0x1ba60d(0x29c)],_0x3e2046;}async[a3_0x1adf32(0x208)](_0x35a9c3){const _0x47f06d=a3_0x1adf32;this[_0x47f06d(0x1f7)]=_0x35a9c3[this[_0x47f06d(0x2e8)]][_0x47f06d(0x1dc)];let _0x1671f8=await fs[_0x47f06d(0x2df)](this[_0x47f06d(0x1f7)]);_0x1671f8=JSON[_0x47f06d(0x270)](_0x1671f8),this['projectId']=_0x1671f8[_0x47f06d(0x29c)];}[a3_0x1adf32(0x239)](_0x427662){const _0x1b5761=a3_0x1adf32;return _0x427662[_0x1b5761(0x254)][_0x1b5761(0x2ba)][_0x1b5761(0x277)][0x0]['ip'];}async[a3_0x1adf32(0x253)](){const _0x3e4f17=a3_0x1adf32,_0x56a6ca={};_0x56a6ca[_0x3e4f17(0x26b)]=_0x3e4f17(0x1ec),_0x56a6ca[_0x3e4f17(0x323)]=_0x3e4f17(0x2af),_0x56a6ca[_0x3e4f17(0x235)]=function(_0x2929c9,_0x5eeca1){return _0x2929c9!==_0x5eeca1;},_0x56a6ca[_0x3e4f17(0x2ab)]=_0x3e4f17(0x291),_0x56a6ca[_0x3e4f17(0x1c9)]=function(_0x5b55ab,_0x521b0a){return _0x5b55ab===_0x521b0a;},_0x56a6ca['wgcbj']=_0x3e4f17(0x288),_0x56a6ca['XWcRB']=function(_0x172ea2,_0x533f7f){return _0x172ea2===_0x533f7f;},_0x56a6ca[_0x3e4f17(0x1f4)]=_0x3e4f17(0x30f),_0x56a6ca[_0x3e4f17(0x2d6)]=function(_0x14f2f4,_0x371e99){return _0x14f2f4===_0x371e99;},_0x56a6ca[_0x3e4f17(0x313)]=_0x3e4f17(0x26d);const _0x28a373=_0x56a6ca;try{if(_0x28a373[_0x3e4f17(0x235)](_0x28a373[_0x3e4f17(0x2ab)],_0x28a373[_0x3e4f17(0x2ab)])){_0x58c38e[_0x3e4f17(0x224)](_0x28a373[_0x3e4f17(0x26b)]);throw _0x4d8769;}else{const _0x3d1585=await this[_0x3e4f17(0x297)]();if(_0x3d1585[0x0]?.[_0x3e4f17(0x2b7)]?.[_0x3e4f17(0x290)]){if(_0x28a373[_0x3e4f17(0x1c9)](_0x28a373[_0x3e4f17(0x247)],_0x28a373['wgcbj'])){const _0x49039f=_0x3d1585[0x0]?.[_0x3e4f17(0x2b7)]?.[_0x3e4f17(0x290)];return _0x49039f&&_0x28a373[_0x3e4f17(0x2ff)](_0x49039f[_0x3e4f17(0x2fb)](),_0x28a373[_0x3e4f17(0x1f4)]);}else return!![];}}}catch(_0x4d5942){if(_0x28a373[_0x3e4f17(0x2d6)](_0x28a373['jYBbv'],_0x28a373[_0x3e4f17(0x313)]))return![];else{_0x5d1357[_0x3e4f17(0x224)](_0x28a373[_0x3e4f17(0x323)]);return;}}return![];}async[a3_0x1adf32(0x2d5)](){const _0x593ce4=a3_0x1adf32,_0x1dd607={'tXDPP':function(_0x7508a2,_0x3998d1){return _0x7508a2===_0x3998d1;},'KGkzm':function(_0x327179,_0x4a33c8){return _0x327179+_0x4a33c8;},'giHAK':_0x593ce4(0x2bb),'WPkhT':function(_0x51dd34,_0x1d9dba){return _0x51dd34===_0x1d9dba;},'ZMMuX':'Cluster\x20creation\x20failed','yRSPg':_0x593ce4(0x2b8),'hftia':_0x593ce4(0x26f),'zGTqa':_0x593ce4(0x2dc),'suhZv':_0x593ce4(0x265),'dsmbi':function(_0x11e6e7,_0x262083){return _0x11e6e7!==_0x262083;},'uJsoe':function(_0x77d69c,_0x33d350){return _0x77d69c!==_0x33d350;},'gSGKM':_0x593ce4(0x2ca),'xpPWk':_0x593ce4(0x24e),'Zzcne':function(_0x412b3b,_0xeeed4f){return _0x412b3b===_0xeeed4f;},'xNcag':_0x593ce4(0x31a),'GIVaf':_0x593ce4(0x240),'GEsZY':_0x593ce4(0x24c),'zHpSb':_0x593ce4(0x331),'zJwyT':_0x593ce4(0x1ed),'WaLCS':function(_0x8b898,_0x2b2454){return _0x8b898===_0x2b2454;},'jOXBD':_0x593ce4(0x1c7),'pusFV':function(_0x371b2c,_0x30bd42){return _0x371b2c>_0x30bd42;},'vWBun':_0x593ce4(0x244),'aoMjv':function(_0x2ab2f9,_0x1a9f4a){return _0x2ab2f9<_0x1a9f4a;},'znXOA':_0x593ce4(0x252),'LJgcC':_0x593ce4(0x1f0),'jVYXS':function(_0x25dd91,_0x5dbf36){return _0x25dd91+_0x5dbf36;},'ZHtAq':function(_0x22a4a2,_0x5ce80c){return _0x22a4a2(_0x5ce80c);},'gCUgp':_0x593ce4(0x205),'VjqtM':function(_0x29ce95,_0x2b324d){return _0x29ce95(_0x2b324d);},'NhQIZ':function(_0xf4b6a8,_0x32f99f){return _0xf4b6a8<=_0x32f99f;},'ZWcPH':function(_0xaeaf14,_0x11276c){return _0xaeaf14===_0x11276c;},'DHVeQ':_0x593ce4(0x2ce),'FmGrx':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','aooee':function(_0x2e8621){return _0x2e8621();},'WvDIr':function(_0x55a8da,_0x273a6a){return _0x55a8da-_0x273a6a;},'GQfMK':_0x593ce4(0x1d9),'YOWoy':'cvVWX'};let _0x4cd30b=await fs[_0x593ce4(0x2df)](path[_0x593ce4(0x2c2)](__dirname,'..',_0x1dd607[_0x593ce4(0x272)],_0x1dd607[_0x593ce4(0x300)],_0x1dd607[_0x593ce4(0x303)]),_0x1dd607[_0x593ce4(0x2c0)]);_0x4cd30b=JSON[_0x593ce4(0x270)](_0x4cd30b);let _0x3027d2=[global_registry['clusterRegion']];if(_0x1dd607[_0x593ce4(0x289)](_0x4cd30b[global_registry[_0x593ce4(0x33f)]],undefined)){if(_0x1dd607[_0x593ce4(0x326)](_0x1dd607[_0x593ce4(0x212)],_0x1dd607[_0x593ce4(0x212)]))return _0x399fec[_0x593ce4(0x255)](_0x593ce4(0x2ac)+_0xabe540+'.\x20Error:\x20'+_0x1f633f),[![],[]];else _0x3027d2=_0x3027d2[_0x593ce4(0x33b)](_0x4cd30b[global_registry[_0x593ce4(0x33f)]]);}const _0x33c7c6=[];for await(const _0x8d7c7 of _0x3027d2){if(_0x1dd607['WPkhT'](_0x1dd607[_0x593ce4(0x237)],_0x1dd607[_0x593ce4(0x237)])){const _0x7a2b0={};_0x7a2b0[_0x593ce4(0x258)]=_0x593ce4(0x20a)+this[_0x593ce4(0x320)]+_0x593ce4(0x2bf)+_0x8d7c7;const _0x10306b=_0x7a2b0,_0x43850b=await this[_0x593ce4(0x32f)][_0x593ce4(0x2cf)](_0x10306b);for(const _0x295e63 of _0x43850b[0x0][_0x593ce4(0x31b)]){if(_0x1dd607[_0x593ce4(0x22e)](_0x1dd607['xNcag'],_0x1dd607[_0x593ce4(0x1d3)])){const _0x1cd13b='https://www.googleapis.com/compute/v1/projects/'+this[_0x593ce4(0x320)]+'/regions/'+_0xbbddb4[_0x593ce4(0x33f)]+_0x593ce4(0x28d)+_0x1d4644[0x0];if(_0x1dd607[_0x593ce4(0x22a)](_0x1cd13b,_0x3f5b0a))return[!![],_0x559269];}else _0x1dd607[_0x593ce4(0x22a)](_0x295e63[_0x593ce4(0x324)],this[_0x593ce4(0x231)])&&(_0x1dd607[_0x593ce4(0x1fe)](_0x1dd607[_0x593ce4(0x2e0)],_0x1dd607[_0x593ce4(0x2e0)])?_0x33c7c6[_0x593ce4(0x27a)](_0x8d7c7):this[_0x593ce4(0x316)](this['rws']));}}else _0x260ca2[_0x593ce4(0x23c)]('['+_0x1dd607['KGkzm'](_0x50ae8f,0x1)+']\x20'+_0xb42aef[_0x9e91ef]);}const _0x57b977=_0x33c7c6[_0x593ce4(0x281)];if(_0x1dd607[_0x593ce4(0x22e)](_0x57b977,0x1)){if(_0x1dd607['dsmbi'](_0x1dd607[_0x593ce4(0x1fa)],_0x1dd607[_0x593ce4(0x279)]))return _0x1dd607[_0x593ce4(0x289)](global_registry['clusterRegion'],_0x33c7c6[0x0])&&(_0x1dd607[_0x593ce4(0x23a)](_0x1dd607[_0x593ce4(0x1f5)],_0x1dd607[_0x593ce4(0x1f5)])?(global_registry[_0x593ce4(0x33f)]=_0x33c7c6[0x0],this[_0x593ce4(0x24a)]()):_0x5a0702=[_0x1dd607[_0x593ce4(0x299)]]),!![];else _0x1dd607[_0x593ce4(0x1fe)](_0x2118e8[_0x593ce4(0x324)],this[_0x593ce4(0x231)])&&_0x27ff0b[_0x593ce4(0x27a)](_0x2acc5f);}else{if(_0x1dd607[_0x593ce4(0x2a7)](_0x57b977,0x1)){if(_0x1dd607[_0x593ce4(0x23a)](_0x1dd607[_0x593ce4(0x2a8)],_0x1dd607[_0x593ce4(0x2a8)])){console['log'](_0x593ce4(0x217)+this['clusterName']+_0x593ce4(0x2ef));for(let _0x2465b7=0x0;_0x1dd607[_0x593ce4(0x264)](_0x2465b7,_0x57b977);_0x2465b7+=0x1){_0x1dd607[_0x593ce4(0x1fe)](_0x1dd607[_0x593ce4(0x296)],_0x1dd607['LJgcC'])?_0x35a617['vpcInfo'][_0x593ce4(0x27a)](_0x5eb43d):console['log']('['+_0x1dd607[_0x593ce4(0x2a2)](_0x2465b7,0x1)+']\x20'+_0x33c7c6[_0x2465b7]);}const _0xe5fb3c=await _0x1dd607[_0x593ce4(0x32e)](inputConfirmation,_0x1dd607[_0x593ce4(0x274)]),_0x30c6db=_0x1dd607['VjqtM'](Number,_0xe5fb3c);return(_0x1dd607[_0x593ce4(0x2a1)](isNaN,_0x30c6db)||_0x1dd607[_0x593ce4(0x222)](_0x30c6db,0x0)||_0x1dd607[_0x593ce4(0x2a7)](_0x30c6db,_0x57b977))&&(_0x1dd607[_0x593ce4(0x314)](_0x1dd607[_0x593ce4(0x238)],_0x1dd607[_0x593ce4(0x238)])?(console['error'](_0x1dd607[_0x593ce4(0x278)]),process[_0x593ce4(0x280)](0x1)):_0x256cbb['info'](_0x1dd607[_0x593ce4(0x2cd)])),_0x1dd607[_0x593ce4(0x21b)](closeInput),logger[_0x593ce4(0x224)](_0x593ce4(0x26c)+_0x33c7c6[_0x1dd607[_0x593ce4(0x2db)](_0x30c6db,0x1)]),_0x1dd607[_0x593ce4(0x326)](global_registry[_0x593ce4(0x33f)],_0x33c7c6[_0x1dd607['WvDIr'](_0x30c6db,0x1)])&&(_0x1dd607[_0x593ce4(0x326)](_0x1dd607['GQfMK'],_0x1dd607[_0x593ce4(0x245)])?(global_registry[_0x593ce4(0x33f)]=_0x33c7c6[_0x1dd607['WvDIr'](_0x30c6db,0x1)],this['updateClusterRegion']()):(_0x521d00[_0x593ce4(0x33f)]=_0x398692[0x0],this[_0x593ce4(0x24a)]())),!![];}else return[!![],_0x5e1b42];}}return![];}async['getClusterInfo'](){const _0x1fa2d8=a3_0x1adf32,_0x44a57d=await this[_0x1fa2d8(0x32f)][_0x1fa2d8(0x1cf)]({'name':_0x1fa2d8(0x20a)+this[_0x1fa2d8(0x320)]+_0x1fa2d8(0x2bf)+global_registry['clusterRegion']+_0x1fa2d8(0x1db)+this[_0x1fa2d8(0x231)]});return _0x44a57d;}async[a3_0x1adf32(0x2b2)](){const _0x154939=a3_0x1adf32,_0x288688={};_0x288688['CsakL']=_0x154939(0x1c6),_0x288688[_0x154939(0x2fa)]='templates',_0x288688[_0x154939(0x21e)]=_0x154939(0x26f),_0x288688[_0x154939(0x22b)]=_0x154939(0x332);const _0x373e19=_0x288688;cp[_0x154939(0x2c8)](_0x373e19['CsakL']),cp[_0x154939(0x1d2)]('gcloud\x20auth\x20login\x20--cred-file='+this['credentialsPath']);const _0x53d172=await this[_0x154939(0x297)](),_0x3485d9=_0x154939(0x2c1)+this[_0x154939(0x320)]+'_'+global_registry['clusterRegion']+'_'+this['clusterName'];let _0x400e6f=await fs[_0x154939(0x2df)](path[_0x154939(0x2c2)](__dirname,'..',_0x373e19[_0x154939(0x2fa)],_0x373e19['krwHt'],_0x373e19[_0x154939(0x22b)]));return _0x400e6f=_0x400e6f['toString'](),_0x400e6f=_0x400e6f['replace'](/<CLUSTER_NAME>/g,_0x3485d9),_0x400e6f=_0x400e6f[_0x154939(0x2e2)](/<CLUSTER_URL>/g,'https://'+_0x53d172[0x0][_0x154939(0x260)]),_0x400e6f=_0x400e6f[_0x154939(0x2e2)](/<CERTIFICATE_DATA>/g,_0x53d172[0x0][_0x154939(0x1d1)][_0x154939(0x30d)]),_0x400e6f;}async[a3_0x1adf32(0x2ad)](){const _0x36eb14=a3_0x1adf32,_0x59f4e3={};_0x59f4e3[_0x36eb14(0x1e2)]=_0x36eb14(0x20e),_0x59f4e3[_0x36eb14(0x2d4)]=_0x36eb14(0x2f7),_0x59f4e3[_0x36eb14(0x1f6)]=function(_0xac39ca,_0x323554){return _0xac39ca!==_0x323554;},_0x59f4e3['yGFfs']=_0x36eb14(0x2fc),_0x59f4e3[_0x36eb14(0x31d)]=_0x36eb14(0x2e7),_0x59f4e3['vPeGJ']='HmUNX',_0x59f4e3[_0x36eb14(0x33d)]=function(_0xdfb9b3,_0x3faf8c){return _0xdfb9b3===_0x3faf8c;},_0x59f4e3['Vbjrw']='JVgDs',_0x59f4e3[_0x36eb14(0x301)]=_0x36eb14(0x211);const _0x5b9da6=_0x59f4e3,_0x91122a={};_0x91122a[_0x36eb14(0x1c8)]=[_0x5b9da6[_0x36eb14(0x2d4)]],_0x91122a['keyFile']=this[_0x36eb14(0x1f7)];const _0x7badfd=await google[_0x36eb14(0x1f8)][_0x36eb14(0x33e)](_0x91122a),_0x14af05=await this[_0x36eb14(0x251)][_0x36eb14(0x30c)][_0x36eb14(0x27b)][_0x36eb14(0x223)]({'name':_0x36eb14(0x20a)+this[_0x36eb14(0x320)],'auth':_0x7badfd});if(_0x14af05?.[_0x36eb14(0x1d0)]?.[_0x36eb14(0x276)]){if(_0x5b9da6['jnaMM'](_0x5b9da6[_0x36eb14(0x25f)],_0x5b9da6[_0x36eb14(0x25f)]))_0x397935['error'](_0x5b9da6['xiGvZ']),_0x4dcbf5[_0x36eb14(0x280)](0x1);else for(const _0x734915 of _0x14af05['data']['accounts']){if(_0x5b9da6[_0x36eb14(0x1f6)](_0x5b9da6[_0x36eb14(0x31d)],_0x5b9da6[_0x36eb14(0x312)])){if(_0x5b9da6[_0x36eb14(0x33d)](_0x734915?.[_0x36eb14(0x324)],_0x36eb14(0x20a)+this[_0x36eb14(0x320)]+_0x36eb14(0x302)+this[_0x36eb14(0x2d3)]+'@'+this[_0x36eb14(0x320)]+_0x36eb14(0x306))){if(_0x5b9da6[_0x36eb14(0x33d)](_0x5b9da6[_0x36eb14(0x31c)],_0x5b9da6[_0x36eb14(0x301)]))_0x4717ff=_0x17220d[_0x36eb14(0x33b)](_0x482805[_0x165b19[_0x36eb14(0x33f)]]);else return!![];}}else return _0x47cafb[_0x36eb14(0x254)][_0x36eb14(0x2ba)]['ingress'][0x0]['ip'];}}return![];}async[a3_0x1adf32(0x2f3)](){const _0x37f27b=a3_0x1adf32,_0xed073d={};_0xed073d[_0x37f27b(0x221)]=function(_0x561708,_0x20d3bf){return _0x561708===_0x20d3bf;},_0xed073d['juRaT']='aWbhl',_0xed073d[_0x37f27b(0x2e5)]='loUVE',_0xed073d[_0x37f27b(0x33a)]=_0x37f27b(0x2af),_0xed073d['ffuqG']='Creating\x20service\x20account',_0xed073d[_0x37f27b(0x295)]='https://www.googleapis.com/auth/cloud-platform',_0xed073d[_0x37f27b(0x2de)]=_0x37f27b(0x1fb),_0xed073d['rJuYI']='storage.buckets.create',_0xed073d['JwSxa']=_0x37f27b(0x327),_0xed073d[_0x37f27b(0x220)]=_0x37f27b(0x286),_0xed073d[_0x37f27b(0x1d4)]=_0x37f27b(0x233),_0xed073d[_0x37f27b(0x2be)]='storage.buckets.get',_0xed073d[_0x37f27b(0x218)]=_0x37f27b(0x308),_0xed073d[_0x37f27b(0x283)]=_0x37f27b(0x1e3),_0xed073d[_0x37f27b(0x307)]='storage.buckets.list',_0xed073d['lrXNz']='storage.buckets.listEffectiveTags',_0xed073d['vtBWr']=_0x37f27b(0x32d),_0xed073d[_0x37f27b(0x210)]=_0x37f27b(0x213),_0xed073d['OMvrk']=_0x37f27b(0x207),_0xed073d[_0x37f27b(0x21a)]=_0x37f27b(0x1e9),_0xed073d[_0x37f27b(0x1e4)]=_0x37f27b(0x318),_0xed073d['sCpcn']=_0x37f27b(0x209),_0xed073d[_0x37f27b(0x1e0)]=_0x37f27b(0x234),_0xed073d[_0x37f27b(0x30a)]='storage.objects.create',_0xed073d['bKxPo']=_0x37f27b(0x32c),_0xed073d[_0x37f27b(0x305)]=_0x37f27b(0x21d),_0xed073d[_0x37f27b(0x32a)]=_0x37f27b(0x2f9),_0xed073d[_0x37f27b(0x2e6)]=_0x37f27b(0x28f),_0xed073d[_0x37f27b(0x2f6)]=_0x37f27b(0x1d5),_0xed073d[_0x37f27b(0x29e)]=_0x37f27b(0x25a),_0xed073d[_0x37f27b(0x335)]=_0x37f27b(0x1e8),_0xed073d[_0x37f27b(0x28b)]=_0x37f27b(0x2ed);const _0xf914fc=_0xed073d,_0x141c2f=await this[_0x37f27b(0x2ad)]();if(_0x141c2f){if(_0xf914fc[_0x37f27b(0x221)](_0xf914fc[_0x37f27b(0x226)],_0xf914fc[_0x37f27b(0x2e5)]))_0x4e985d[_0x37f27b(0x27a)](_0x563649);else{logger[_0x37f27b(0x224)](_0xf914fc[_0x37f27b(0x33a)]);return;}}logger[_0x37f27b(0x224)](_0xf914fc[_0x37f27b(0x271)]);const _0x215bbb={};_0x215bbb[_0x37f27b(0x1c8)]=[_0xf914fc[_0x37f27b(0x295)]],_0x215bbb[_0x37f27b(0x1dc)]=this[_0x37f27b(0x1f7)];const _0x53a54c=await google[_0x37f27b(0x1f8)][_0x37f27b(0x33e)](_0x215bbb),_0x2c7570={};_0x2c7570['includedPermissions']=[_0xf914fc['MdcJK'],_0xf914fc[_0x37f27b(0x269)],_0xf914fc[_0x37f27b(0x263)],_0xf914fc[_0x37f27b(0x220)],_0xf914fc[_0x37f27b(0x1d4)],_0xf914fc[_0x37f27b(0x2be)],_0xf914fc[_0x37f27b(0x218)],_0xf914fc[_0x37f27b(0x283)],_0xf914fc[_0x37f27b(0x307)],_0xf914fc['lrXNz'],_0xf914fc['vtBWr'],_0xf914fc[_0x37f27b(0x210)],_0xf914fc[_0x37f27b(0x30b)],_0xf914fc[_0x37f27b(0x21a)],_0xf914fc[_0x37f27b(0x1e4)],_0xf914fc[_0x37f27b(0x2da)],_0xf914fc['tbPMv'],_0xf914fc['qtMIZ'],_0xf914fc[_0x37f27b(0x329)],_0xf914fc[_0x37f27b(0x305)],_0xf914fc[_0x37f27b(0x32a)],_0xf914fc[_0x37f27b(0x2e6)],_0xf914fc['VTGMV'],_0xf914fc[_0x37f27b(0x29e)]],_0x2c7570[_0x37f27b(0x30e)]=_0xf914fc[_0x37f27b(0x335)],await this[_0x37f27b(0x251)][_0x37f27b(0x214)][_0x37f27b(0x338)][_0x37f27b(0x2d9)]({'parent':'projects/'+this['projectId'],'requestBody':{'role':_0x2c7570,'roleId':this[_0x37f27b(0x20f)]},'auth':_0x53a54c});const _0x11165e={};_0x11165e[_0x37f27b(0x324)]='projects/'+this[_0x37f27b(0x320)],_0x11165e[_0x37f27b(0x2a9)]={},_0x11165e[_0x37f27b(0x1f8)]=_0x53a54c,_0x11165e[_0x37f27b(0x2a9)][_0x37f27b(0x200)]=this['serviceAccountName'];const _0x91928e=_0x11165e;await this[_0x37f27b(0x251)][_0x37f27b(0x30c)][_0x37f27b(0x27b)]['create'](_0x91928e);let _0x9ba5f=await this[_0x37f27b(0x257)][_0x37f27b(0x29b)]({'resource':_0x37f27b(0x20a)+this['projectId']});_0x9ba5f=_0x9ba5f[0x0]['bindings'];const _0x1d1671={};_0x1d1671[_0x37f27b(0x2b4)]=_0x37f27b(0x20a)+this['projectId']+_0x37f27b(0x1ee)+this[_0x37f27b(0x20f)],_0x1d1671[_0x37f27b(0x304)]=[_0x37f27b(0x22d)+this[_0x37f27b(0x2d3)]+'@'+this[_0x37f27b(0x320)]+_0x37f27b(0x306)],_0x9ba5f[_0x37f27b(0x27a)](_0x1d1671);const _0x223564={};_0x223564[_0x37f27b(0x311)]=_0x9ba5f,await this['resourcemanagerClient'][_0x37f27b(0x268)]({'resource':'projects/'+this[_0x37f27b(0x320)],'policy':_0x223564}),logger['info'](_0xf914fc[_0x37f27b(0x28b)]);}async['setupNewCluster'](_0x531252='default',_0x4857f2=[a3_0x1adf32(0x2bb)]){const _0x2cf9a9=a3_0x1adf32,_0x482d16={};_0x482d16[_0x2cf9a9(0x232)]=function(_0x3fc445,_0x496e94){return _0x3fc445-_0x496e94;},_0x482d16[_0x2cf9a9(0x1dd)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x482d16[_0x2cf9a9(0x230)]=_0x2cf9a9(0x20d),_0x482d16['oEqvr']=function(_0x3ff27b,_0x25ef9f){return _0x3ff27b!==_0x25ef9f;},_0x482d16[_0x2cf9a9(0x2f0)]=_0x2cf9a9(0x337),_0x482d16[_0x2cf9a9(0x2b1)]=_0x2cf9a9(0x2bb),_0x482d16[_0x2cf9a9(0x1f3)]=function(_0x2a5349,_0x402180){return _0x2a5349===_0x402180;},_0x482d16[_0x2cf9a9(0x22f)]=function(_0x25687a,_0x2a3f22){return _0x25687a===_0x2a3f22;},_0x482d16[_0x2cf9a9(0x262)]=_0x2cf9a9(0x261);const _0x530272=_0x482d16,_0x3224b1={};_0x3224b1['type']=WS_EVENTS['LOG'],_0x3224b1[_0x2cf9a9(0x29a)]=_0x530272[_0x2cf9a9(0x1dd)],this[_0x2cf9a9(0x2ea)][_0x2cf9a9(0x204)](this['rws'],_0x3224b1),logger[_0x2cf9a9(0x224)](_0x530272[_0x2cf9a9(0x230)]);if(!_0x531252){if(_0x530272[_0x2cf9a9(0x23e)](_0x530272['dhkZa'],_0x530272[_0x2cf9a9(0x2f0)]))return![];else _0x531252=_0x530272['BDMag'];}return(!_0x4857f2||_0x530272[_0x2cf9a9(0x1f3)](_0x4857f2['length'],0x0))&&(_0x530272[_0x2cf9a9(0x22f)](_0x530272['uMQNU'],_0x530272[_0x2cf9a9(0x262)])?_0x4857f2=[_0x530272[_0x2cf9a9(0x2b1)]]:(_0x28483f['clusterRegion']=_0x2c420e[_0x530272[_0x2cf9a9(0x232)](_0x458e9e,0x1)],this[_0x2cf9a9(0x24a)]())),await this[_0x2cf9a9(0x2f3)](),await this['createCluster'](_0x531252,_0x4857f2),await this[_0x2cf9a9(0x2cb)](),!![];}async[a3_0x1adf32(0x2b5)](_0x4c787d=a3_0x1adf32(0x2bb),_0x40f00a=[a3_0x1adf32(0x2bb)]){const _0x345047=a3_0x1adf32,_0x46c6de={};_0x46c6de[_0x345047(0x319)]=function(_0x131876,_0x5e93c8){return _0x131876===_0x5e93c8;},_0x46c6de[_0x345047(0x2c4)]='browserstack',_0x46c6de[_0x345047(0x1d6)]='default',_0x46c6de[_0x345047(0x273)]='vlAIt',_0x46c6de[_0x345047(0x225)]=_0x345047(0x228),_0x46c6de[_0x345047(0x215)]=_0x345047(0x2e4),_0x46c6de['dTDxf']=_0x345047(0x2b8),_0x46c6de[_0x345047(0x2f5)]=_0x345047(0x26f),_0x46c6de[_0x345047(0x2a3)]=_0x345047(0x25d),_0x46c6de[_0x345047(0x201)]=_0x345047(0x265),_0x46c6de[_0x345047(0x1cc)]='regionmap.json',_0x46c6de[_0x345047(0x292)]=function(_0x1c6ae7,_0x3f5f56){return _0x1c6ae7*_0x3f5f56;},_0x46c6de[_0x345047(0x229)]=function(_0x2c831d,_0x502a0e){return _0x2c831d!==_0x502a0e;},_0x46c6de[_0x345047(0x2c5)]=_0x345047(0x1eb),_0x46c6de[_0x345047(0x1da)]=_0x345047(0x325),_0x46c6de['CQDnx']=function(_0x370182,_0x564fef){return _0x370182!==_0x564fef;},_0x46c6de[_0x345047(0x2a4)]=_0x345047(0x1f2),_0x46c6de[_0x345047(0x1ca)]=_0x345047(0x202),_0x46c6de[_0x345047(0x203)]=_0x345047(0x310),_0x46c6de['cYaqb']=_0x345047(0x23b),_0x46c6de['yYcYe']='Cluster\x20creation\x20failed';const _0x17d8e4=_0x46c6de;try{if(_0x17d8e4[_0x345047(0x319)](_0x17d8e4[_0x345047(0x273)],_0x17d8e4[_0x345047(0x225)]))_0x172536['execSync']('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x345047(0x231)]+_0x345047(0x1ea)+_0x4efc03[_0x345047(0x33f)]+'\x20--quiet\x20--user-output-enabled=false');else{logger[_0x345047(0x224)](_0x17d8e4['lFkvm']);let _0xdffaf5=await fs[_0x345047(0x2df)](path[_0x345047(0x2c2)](__dirname,'..',_0x17d8e4['dTDxf'],_0x17d8e4[_0x345047(0x2f5)],_0x17d8e4['SEZaV']),_0x17d8e4[_0x345047(0x201)]);_0xdffaf5=JSON['parse'](_0xdffaf5);let _0x3d9075=await fs[_0x345047(0x2df)](path[_0x345047(0x2c2)](__dirname,'..',_0x17d8e4[_0x345047(0x27c)],_0x17d8e4['JQXqE'],_0x17d8e4[_0x345047(0x1cc)]),_0x17d8e4['udzty']);_0x3d9075=JSON[_0x345047(0x270)](_0x3d9075),_0xdffaf5[_0x345047(0x324)]=this[_0x345047(0x231)],_0xdffaf5['nodePools'][0x0][_0x345047(0x322)][_0x345047(0x25c)]=global_registry[_0x345047(0x1fc)],_0xdffaf5['nodePools'][0x1][_0x345047(0x322)][_0x345047(0x25c)]=global_registry[_0x345047(0x1fc)],_0xdffaf5['nodePools'][0x0][_0x345047(0x322)][_0x345047(0x2d8)]=this['serviceAccountName']+'@'+this[_0x345047(0x320)]+'.iam.gserviceaccount.com',_0xdffaf5[_0x345047(0x23f)][0x1][_0x345047(0x322)][_0x345047(0x2d8)]=this['serviceAccountName']+'@'+this['projectId']+_0x345047(0x306),_0xdffaf5['nodePools'][0x0][_0x345047(0x2ec)][_0x345047(0x2a0)]=global_registry['minNodes'],_0xdffaf5[_0x345047(0x23f)][0x1][_0x345047(0x2ec)][_0x345047(0x2a0)]=0x0,_0xdffaf5[_0x345047(0x23f)][0x0][_0x345047(0x2ec)][_0x345047(0x2b9)]=global_registry[_0x345047(0x2c6)],_0xdffaf5['nodePools'][0x1]['autoscaling'][_0x345047(0x2b9)]=global_registry[_0x345047(0x2c6)],_0xdffaf5[_0x345047(0x1de)]=global_registry[_0x345047(0x33f)],_0xdffaf5[_0x345047(0x2b3)]=[_0x3d9075[global_registry[_0x345047(0x33f)]][0x0]],_0xdffaf5[_0x345047(0x2e3)]='projects/'+this[_0x345047(0x320)]+_0x345047(0x2dd)+_0x4c787d,_0xdffaf5[_0x345047(0x31e)]='projects/'+this[_0x345047(0x320)]+_0x345047(0x1d8)+global_registry['clusterRegion']+_0x345047(0x28d)+_0x40f00a[0x0];const _0x5883e3=await this['containerClient'][_0x345047(0x2b5)]({'cluster':_0xdffaf5,'parent':_0x345047(0x20a)+this['projectId']+'/locations/'+global_registry[_0x345047(0x33f)]});await this[_0x345047(0x2ea)][_0x345047(0x1e5)](_0x17d8e4['oXaDa'](_0x17d8e4[_0x345047(0x292)](0x7,0x3c),0x3e8));}}catch(_0x4e6e4b){if(_0x17d8e4['uAuhd'](_0x17d8e4[_0x345047(0x2c5)],_0x17d8e4['UFJfx'])){const _0x59b9d3=await this[_0x345047(0x2d5)]();if(_0x59b9d3){if(_0x17d8e4['CQDnx'](_0x17d8e4[_0x345047(0x2a4)],_0x17d8e4[_0x345047(0x2a4)]))return!![];else logger['info'](_0x17d8e4[_0x345047(0x1ca)],_0x4e6e4b[_0x345047(0x20b)]),await this['deleteCluster']();}else{if(_0x17d8e4[_0x345047(0x23d)](_0x17d8e4[_0x345047(0x203)],_0x17d8e4[_0x345047(0x242)]))logger[_0x345047(0x224)](_0x17d8e4[_0x345047(0x1cd)]);else{const _0x2f1308=_0x112090[0x0]?.[_0x345047(0x2b7)]?.['managedby'];return _0x2f1308&&_0x17d8e4['ptQpV'](_0x2f1308[_0x345047(0x2fb)](),_0x17d8e4[_0x345047(0x2c4)]);}}throw _0x4e6e4b;}else _0x3c20f5=_0x17d8e4[_0x345047(0x1d6)];}}async[a3_0x1adf32(0x2cb)](){const _0x2ff0e9=a3_0x1adf32;cp[_0x2ff0e9(0x2c8)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this['clusterName']+_0x2ff0e9(0x1ea)+global_registry[_0x2ff0e9(0x33f)]+_0x2ff0e9(0x2b6));}async[a3_0x1adf32(0x236)](_0x27ace5,_0x23519f){const _0x20618f=a3_0x1adf32,_0x8c7e7={'ANKUk':function(_0x47fce1,_0x5bf690){return _0x47fce1!==_0x5bf690;},'MCZcX':'vPiMn','xdHug':function(_0x2dce44,_0x15ac9f){return _0x2dce44(_0x15ac9f);},'WyCOo':function(_0x523bec,_0x63905e){return _0x523bec(_0x63905e);},'eFkgB':function(_0x386eee,_0x205c27){return _0x386eee===_0x205c27;},'feorC':_0x20618f(0x336),'iDyns':function(_0x538451,_0x16085c){return _0x538451===_0x16085c;},'PkaAa':_0x20618f(0x24d),'YhCGA':_0x20618f(0x21f),'gWefv':_0x20618f(0x24f),'IxPPE':_0x20618f(0x2fd),'BRfBK':_0x20618f(0x2eb),'tWmIK':_0x20618f(0x1ec)};try{if(_0x8c7e7[_0x20618f(0x293)](_0x8c7e7['MCZcX'],_0x8c7e7[_0x20618f(0x31f)]))return!![];else{await _0x8c7e7[_0x20618f(0x2f4)](deleteAgent,_0x27ace5),await _0x8c7e7['WyCOo'](deleteRoutingDeps,_0x27ace5),logger[_0x20618f(0x224)]('Deleting\x20the\x20cluster\x20'+this[_0x20618f(0x231)]);const _0x386216=await this['containerClient'][_0x20618f(0x236)]({'name':_0x20618f(0x20a)+this[_0x20618f(0x320)]+_0x20618f(0x2bf)+global_registry[_0x20618f(0x33f)]+'/clusters/'+this['clusterName']});if(_0x8c7e7[_0x20618f(0x2d2)](_0x386216[0x0]?.[_0x20618f(0x254)],_0x8c7e7[_0x20618f(0x250)])||_0x8c7e7[_0x20618f(0x1e1)](_0x386216[0x0]?.['status'],_0x8c7e7['PkaAa']))return _0x8c7e7[_0x20618f(0x1e1)](_0x8c7e7[_0x20618f(0x33c)],_0x8c7e7[_0x20618f(0x2f8)])?![]:!![];logger[_0x20618f(0x224)](_0x8c7e7[_0x20618f(0x206)]);}}catch(_0x350cd){if(_0x8c7e7[_0x20618f(0x293)](_0x8c7e7[_0x20618f(0x29d)],_0x8c7e7[_0x20618f(0x29d)]))return _0x8c7e7['ANKUk'](_0x42e791[_0x20618f(0x33f)],_0x332d41[0x0])&&(_0x2cd870[_0x20618f(0x33f)]=_0x44e90e[0x0],this[_0x20618f(0x24a)]()),!![];else{logger[_0x20618f(0x224)](_0x8c7e7[_0x20618f(0x25e)]);throw _0x350cd;}}}async[a3_0x1adf32(0x26a)](_0xb208df){const _0x21a3fa=a3_0x1adf32,_0x573eb8={};_0x573eb8['yqgDo']=function(_0x4d648e,_0x4e584b){return _0x4d648e===_0x4e584b;},_0x573eb8[_0x21a3fa(0x267)]=function(_0x1b800c,_0x3e25f8){return _0x1b800c===_0x3e25f8;},_0x573eb8[_0x21a3fa(0x266)]=function(_0x58e947,_0x484044){return _0x58e947!==_0x484044;},_0x573eb8['VdJPx']='NWlKa',_0x573eb8[_0x21a3fa(0x26e)]=_0x21a3fa(0x275),_0x573eb8['UDSNf']=function(_0x2cac14,_0x49f0a4){return _0x2cac14>_0x49f0a4;},_0x573eb8['AkDhF']=function(_0x8cc6d3,_0x3cd022){return _0x8cc6d3===_0x3cd022;},_0x573eb8[_0x21a3fa(0x2d7)]=function(_0x2e612b,_0x24a7a2){return _0x2e612b!==_0x24a7a2;},_0x573eb8[_0x21a3fa(0x28e)]='rQMbi',_0x573eb8['pWCxw']=_0x21a3fa(0x1fd);const _0x1f7c34=_0x573eb8;try{if(_0x1f7c34[_0x21a3fa(0x266)](_0x1f7c34[_0x21a3fa(0x2f1)],_0x1f7c34[_0x21a3fa(0x26e)])){const _0x46aa13=await this[_0x21a3fa(0x294)][_0x21a3fa(0x227)]({'project':this[_0x21a3fa(0x320)],'network':_0xb208df});if(_0x1f7c34[_0x21a3fa(0x1ff)](_0x46aa13[_0x21a3fa(0x281)],0x0)&&_0x1f7c34[_0x21a3fa(0x298)](_0x46aa13[0x0][_0x21a3fa(0x324)],_0xb208df)){if(_0x1f7c34[_0x21a3fa(0x2d7)](_0x1f7c34['WjuVt'],_0x1f7c34[_0x21a3fa(0x330)]))return!![];else{if(_0x1f7c34[_0x21a3fa(0x241)](_0x46f9bf?.[_0x21a3fa(0x324)],_0x21a3fa(0x20a)+this[_0x21a3fa(0x320)]+_0x21a3fa(0x302)+this[_0x21a3fa(0x2d3)]+'@'+this[_0x21a3fa(0x320)]+_0x21a3fa(0x306)))return!![];}}}else for(const _0x28c89a of _0x493395[_0x21a3fa(0x1d0)]['accounts']){if(_0x1f7c34[_0x21a3fa(0x267)](_0x28c89a?.['name'],_0x21a3fa(0x20a)+this[_0x21a3fa(0x320)]+_0x21a3fa(0x302)+this[_0x21a3fa(0x2d3)]+'@'+this[_0x21a3fa(0x320)]+'.iam.gserviceaccount.com'))return!![];}}catch(_0x38f2f1){return![];}return![];}async[a3_0x1adf32(0x2a6)](_0x28dbc1,_0x371dc2){const _0x17b2df=a3_0x1adf32,_0x3c00d5={};_0x3c00d5[_0x17b2df(0x2e9)]=function(_0xc7f12,_0x337f91){return _0xc7f12===_0x337f91;};const _0xc94928=_0x3c00d5;try{const _0x3871e3=await this[_0x17b2df(0x294)][_0x17b2df(0x227)]({'project':this[_0x17b2df(0x320)],'network':_0x371dc2});for(const _0x54199d of _0x3871e3[0x0]['subnetworks']){const _0x40f9b9='https://www.googleapis.com/compute/v1/projects/'+this['projectId']+_0x17b2df(0x1d8)+global_registry[_0x17b2df(0x33f)]+_0x17b2df(0x28d)+_0x28dbc1[0x0];if(_0xc94928[_0x17b2df(0x2e9)](_0x40f9b9,_0x54199d))return[!![],_0x28dbc1];}}catch(_0x114115){return logger[_0x17b2df(0x255)](_0x17b2df(0x2ac)+_0x28dbc1+_0x17b2df(0x28a)+_0x114115),[![],[]];}return[![],[]];}async['sendGCPInfoToHST'](){const _0x3aeb52=a3_0x1adf32,_0x4c0d2b=await this['networkClient']['list']({'project':this[_0x3aeb52(0x320)]}),_0x51e650={};_0x51e650[_0x3aeb52(0x259)]=global_registry['bstackUsername'],_0x51e650[_0x3aeb52(0x1d7)]=global_registry[_0x3aeb52(0x2e1)],_0x51e650['cloudProvider']=GCP,_0x51e650[_0x3aeb52(0x2ee)]=[];const _0x1f0952=_0x51e650;for(const _0x2522a8 of _0x4c0d2b){_0x1f0952[_0x3aeb52(0x2ee)][_0x3aeb52(0x27a)](_0x2522a8);}const _0x3eaf09={};_0x3eaf09[_0x3aeb52(0x315)]=WS_EVENTS[_0x3aeb52(0x2cc)],_0x3eaf09[_0x3aeb52(0x29a)]=_0x1f0952,this[_0x3aeb52(0x2ea)][_0x3aeb52(0x204)](this[_0x3aeb52(0x249)],_0x3eaf09);}async[a3_0x1adf32(0x24a)](){const _0x290a6e=a3_0x1adf32,_0x5aa541={'dSNBt':function(_0x18f83b,_0x1dc6d5,_0x50dd80){return _0x18f83b(_0x1dc6d5,_0x50dd80);},'XKiIV':_0x290a6e(0x1cb),'Yfgrm':_0x290a6e(0x2a5),'ZczbN':function(_0x47d42f,_0x27c3f5,_0x25cbd0){return _0x47d42f(_0x27c3f5,_0x25cbd0);}},_0x20dfcf=_0x290a6e(0x32b)+AG_API_URL+'/packages/cli/update-cluster-region',_0x42da7d={};_0x42da7d[_0x290a6e(0x27e)]=global_registry[_0x290a6e(0x333)];const _0x50313e={};_0x50313e[_0x290a6e(0x317)]=global_registry['clusterRegion'];const _0x56aafd={'searchParams':_0x42da7d,'json':_0x50313e,'headers':_0x5aa541[_0x290a6e(0x287)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x290a6e(0x2e1)]),'method':_0x5aa541['XKiIV'],'responseType':_0x5aa541['Yfgrm'],'throwHttpErrors':![]},_0x4dfa76=await _0x5aa541[_0x290a6e(0x24b)](got,_0x20dfcf,_0x56aafd);}}const a3_0x2ab573={};function a3_0x223f(_0x1eadd4,_0x2e108f){const _0x2340b5=a3_0x2340();return a3_0x223f=function(_0x223f0f,_0x54dcd2){_0x223f0f=_0x223f0f-0x1c6;let _0x1ca48d=_0x2340b5[_0x223f0f];return _0x1ca48d;},a3_0x223f(_0x1eadd4,_0x2e108f);}a3_0x2ab573['GoogleCloudProvider']=GoogleCloudProvider,module[a3_0x1adf32(0x20c)]=a3_0x2ab573;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a4_0x341b(_0xbcd9b6,_0x33d392){const _0x55af56=a4_0x55af();return a4_0x341b=function(_0x341bd3,_0x4ef0a8){_0x341bd3=_0x341bd3-0x6a;let _0x2837fd=_0x55af56[_0x341bd3];return _0x2837fd;},a4_0x341b(_0xbcd9b6,_0x33d392);}const a4_0x26311c=a4_0x341b;(function(_0x4b08c0,_0x312b6f){const _0x1ec2c5=a4_0x341b,_0x25260a=_0x4b08c0();while(!![]){try{const _0x29e9ca=-parseInt(_0x1ec2c5(0x77))/0x1*(-parseInt(_0x1ec2c5(0x7c))/0x2)+parseInt(_0x1ec2c5(0x6b))/0x3*(-parseInt(_0x1ec2c5(0x86))/0x4)+parseInt(_0x1ec2c5(0x6d))/0x5*(parseInt(_0x1ec2c5(0x7e))/0x6)+parseInt(_0x1ec2c5(0x6c))/0x7*(parseInt(_0x1ec2c5(0x72))/0x8)+-parseInt(_0x1ec2c5(0x70))/0x9+-parseInt(_0x1ec2c5(0x78))/0xa*(parseInt(_0x1ec2c5(0x76))/0xb)+parseInt(_0x1ec2c5(0x85))/0xc;if(_0x29e9ca===_0x312b6f)break;else _0x25260a['push'](_0x25260a['shift']());}catch(_0x5e048a){_0x25260a['push'](_0x25260a['shift']());}}}(a4_0x55af,0xeb12a));const {AWSCloudProvider}=require(a4_0x26311c(0x88)),{GoogleCloudProvider}=require(a4_0x26311c(0x83)),{installAzurePackages}=require(a4_0x26311c(0x71)),{AWS,AZURE,GCP,messageTypes}=require('../config/constants'),{sendInstrumentationEvent}=require(a4_0x26311c(0x73)),{logger}=require('../config/logger');function a4_0x55af(){const _0x40f9e1=['10379745bXwXAG','../utils/utilityMethods','48GTyhjV','../utils/instrumentationUtils','mBvsK','message','7513XnvYVA','26211QFegfI','11360hRSrWE',',\x20stacktrace:\x20','UGdlp','getCloudProviderObject','44RrcsXS','./Azure','72HxTKji','stack','node','exit','SfBUj','./GoogleCloudProvider','init','8426880LqehBk','912788gWwfwu','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','./AWS','error','9TqkIrf','799036XcQZQe','672030wmMmAR','anRpz','ERROR'];a4_0x55af=function(){return _0x40f9e1;};return a4_0x55af();}exports[a4_0x26311c(0x7b)]=async(_0x3d340e,_0x86021f,_0x2338e7,_0x324ae5,_0x4895cd,_0x3e3466)=>{const _0xa5739d=a4_0x26311c,_0xdf933d={'UGdlp':function(_0x55b052){return _0x55b052();},'SfBUj':function(_0x2baa72,_0x5be5bf){return _0x2baa72(_0x5be5bf);},'kJphd':_0xa5739d(0x7d),'mBvsK':function(_0x1fde6f,_0x4c5c14,_0x3e0370,_0x247d3a,_0x33a166,_0x1faef1,_0x306d28){return _0x1fde6f(_0x4c5c14,_0x3e0370,_0x247d3a,_0x33a166,_0x1faef1,_0x306d28);},'anRpz':'create-grid-called','uZcaT':'grid-spawning-failed'};switch(_0x3d340e){case AWS:{const _0x4066ad=new AWSCloudProvider(_0x86021f,_0x2338e7,_0x324ae5,_0x4895cd);return await _0x4066ad[_0xa5739d(0x84)]();}case GCP:{const _0x247d47=new GoogleCloudProvider(_0x86021f,_0x2338e7,_0x324ae5,_0x4895cd);return await _0x247d47[_0xa5739d(0x84)]();}case AZURE:{try{await _0xdf933d[_0xa5739d(0x7a)](installAzurePackages);const {AzureCloudProvider:_0x5d5108}=_0xdf933d[_0xa5739d(0x82)](require,_0xdf933d['kJphd']),_0x14a602=new _0x5d5108(_0x86021f,_0x2338e7,_0x324ae5,_0x4895cd);return await _0x14a602['init']();}catch(_0x4ae678){const _0x1d8638='Current\x20Node.js\x20version\x20'+process['versions'][_0xa5739d(0x80)]+_0xa5739d(0x87)+_0x4ae678[_0xa5739d(0x75)]+_0xa5739d(0x79)+_0x4ae678[_0xa5739d(0x7f)];logger[_0xa5739d(0x6a)](_0x1d8638);const _0x4ace99={};_0x4ace99[_0xa5739d(0x6a)]=_0x1d8638,await _0xdf933d[_0xa5739d(0x74)](sendInstrumentationEvent,_0x3e3466,_0xdf933d[_0xa5739d(0x6e)],messageTypes[_0xa5739d(0x6f)],_0xdf933d['uZcaT'],_0x4ace99,_0x3e3466),process[_0xa5739d(0x81)](0x1);}}default:logger[_0xa5739d(0x6a)]('Unknown\x20cloud\x20provider\x20found\x20-\x20'+_0x3d340e),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a5_0x548b(){const _0x438992=['91SOzmUz','DPeWc','server-error','SGnVG','4346309AVpecV','desc','muRwT','HjBoJ','HxFpw','configure','89230YWkZiM','uuid','Uorrv','78084NlrUtA','kHvnk','hfYxZ','core:','dxmQB','log','ERROR','hPRjy','GET','LhIHW','tcpOf','command','argv','BygMP','body','invalid-selection','zsJfV','aopvD','unknown-error','help','SNJrG','vmqmD','statusCode','PerPj','194776NRHIee','recommendCommands','zrNog','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','zFxFs','stringify','aPXtN','bOpwR','username','fFQkr','hPvrx','anHDi','tagDM','1169410HFFESQ','GtZva','wPHyy','got','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','VRTgJ','lwzXs','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','name','unauthorised','handler','epilogue','\x20\x20username:\x20','\x20\x20grid-profile:\x20','108LuwOmM','error','toLowerCase','NVdtI','usage','3947334PxQPWv','5FlnFgL','wTRyO','2050148qQkqgH','/packages/cli/configure','NCyer','existsSync','vUrqo','1377qZKkRJ','../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','xpGrb','exit','LbHae','CZDfP','../utils/userInput','lIbjc','stack','list','../config/constants','QXeVy','Browserstack','parse'];a5_0x548b=function(){return _0x438992;};return a5_0x548b();}const a5_0x553c7d=a5_0x57b2;function a5_0x57b2(_0x27f9c6,_0x3fdb46){const _0x548bf6=a5_0x548b();return a5_0x57b2=function(_0x57b26a,_0x398a41){_0x57b26a=_0x57b26a-0xc5;let _0xc3d254=_0x548bf6[_0x57b26a];return _0xc3d254;},a5_0x57b2(_0x27f9c6,_0x3fdb46);}(function(_0x281d02,_0x3ee73d){const _0x430089=a5_0x57b2,_0x2061e5=_0x281d02();while(!![]){try{const _0x2f4441=-parseInt(_0x430089(0xc8))/0x1+-parseInt(_0x430089(0xff))/0x2*(-parseInt(_0x430089(0xd6))/0x3)+parseInt(_0x430089(0xde))/0x4*(parseInt(_0x430089(0xdc))/0x5)+-parseInt(_0x430089(0xdb))/0x6+parseInt(_0x430089(0xf2))/0x7*(-parseInt(_0x430089(0x117))/0x8)+parseInt(_0x430089(0xe3))/0x9*(parseInt(_0x430089(0xfc))/0xa)+-parseInt(_0x430089(0xf6))/0xb;if(_0x2f4441===_0x3ee73d)break;else _0x2061e5['push'](_0x2061e5['shift']());}catch(_0x1cb74a){_0x2061e5['push'](_0x2061e5['shift']());}}}(a5_0x548b,0xb5b93));const fs=require('fs'),got=require(a5_0x553c7d(0xcb)),{v4:uuidv4}=require(a5_0x553c7d(0xfd)),{inputConfirmation,closeInput}=require(a5_0x553c7d(0xea)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x553c7d(0xee)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0x553c7d(0xe4));exports[a5_0x553c7d(0x10a)]=a5_0x553c7d(0xfb),exports[a5_0x553c7d(0xf7)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports['builder']=function(_0x133457){const _0x198842=a5_0x553c7d,_0x338fcf={};_0x338fcf[_0x198842(0xca)]=_0x198842(0x112);const _0x1ec509=_0x338fcf;return _0x133457[_0x198842(0xda)](HELP_HEADER_MESSAGE[_0x198842(0xfb)])[_0x198842(0xd3)](HELP_FOOTER_MESSAGE)[_0x198842(0x112)](_0x1ec509[_0x198842(0xca)])[_0x198842(0x118)]()['strict']()[_0x198842(0x10b)];},exports[a5_0x553c7d(0xd2)]=async function(_0xa3732b){const _0x32e3b3=a5_0x553c7d,_0x499601={'vmqmD':function(_0x4cc5ee){return _0x4cc5ee();},'tagDM':function(_0x4198da){return _0x4198da();},'CZDfP':_0x32e3b3(0x11b),'zFxFs':function(_0x4d39bb,_0xa8a00e,_0x8b72c9,_0x285446,_0x2948f3,_0x595cc2,_0x56a02a){return _0x4d39bb(_0xa8a00e,_0x8b72c9,_0x285446,_0x2948f3,_0x595cc2,_0x56a02a);},'HjBoJ':'configure-called','QXeVy':'init-not-called','muRwT':_0x32e3b3(0x107),'bOpwR':function(_0x590bbf,_0xc35987,_0x4190a1){return _0x590bbf(_0xc35987,_0x4190a1);},'PerPj':function(_0x346bd9,_0x49ed46){return _0x346bd9!==_0x49ed46;},'kHvnk':function(_0x3f42a3,_0x42a269){return _0x3f42a3!==_0x42a269;},'fFQkr':function(_0x2252fb,_0x49a2f4){return _0x2252fb===_0x49a2f4;},'hPvrx':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','aopvD':_0x32e3b3(0x102),'HxFpw':function(_0x4de4a4,_0x38d561){return _0x4de4a4(_0x38d561);},'anHDi':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','tcpOf':function(_0x8ec8f,_0x7e9603){return _0x8ec8f===_0x7e9603;},'RqCnd':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','xpGrb':'invalid-input','aPXtN':_0x32e3b3(0x11a),'QLshV':function(_0x5aa25e,_0x2e4983){return _0x5aa25e<_0x2e4983;},'ySaIi':function(_0x14186a,_0x432395){return _0x14186a+_0x432395;},'lIbjc':function(_0x327839,_0x520980){return _0x327839(_0x520980);},'NVdtI':_0x32e3b3(0xcf),'GtZva':function(_0x329973,_0xdc564a){return _0x329973<=_0xdc564a;},'VRTgJ':function(_0x2c8910,_0xb4cf3c){return _0x2c8910>_0xb4cf3c;},'Uorrv':function(_0x14baf1,_0x73c9a2,_0x2a21e0,_0x472880,_0x2d247b,_0x4b0f59,_0x1cb819){return _0x14baf1(_0x73c9a2,_0x2a21e0,_0x472880,_0x2d247b,_0x4b0f59,_0x1cb819);},'SNJrG':_0x32e3b3(0x10e),'AOqWc':function(_0x2e1ff2,_0x360b22){return _0x2e1ff2-_0x360b22;},'zsJfV':'PUT','dxmQB':function(_0xda8324,_0x1d051c,_0x11417c){return _0xda8324(_0x1d051c,_0x11417c);},'NCyer':'json','wTRyO':function(_0x47a16a,_0x22960f){return _0x47a16a!==_0x22960f;},'lwzXs':function(_0x1d9141,_0x19fad7){return _0x1d9141!==_0x19fad7;},'BygMP':function(_0x3b9eca,_0x360035){return _0x3b9eca===_0x360035;},'hPRjy':'Updated\x20default\x20Grid\x20Profile\x20successfully','DPeWc':'Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','SGnVG':_0x32e3b3(0xd1),'zrNog':function(_0x22a2dc,_0x464aab,_0x59e470,_0x506226,_0x1a576a,_0x29249e,_0x232da4){return _0x22a2dc(_0x464aab,_0x59e470,_0x506226,_0x1a576a,_0x29249e,_0x232da4);},'LhIHW':_0x32e3b3(0xf4),'LbHae':function(_0x222c5d,_0x561b01){return _0x222c5d===_0x561b01;},'nWnra':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hfYxZ':function(_0x4b13cc,_0x2a980a,_0x429da9,_0x333b67,_0x55e0c6,_0x3ccf2e,_0x2fd4cb){return _0x4b13cc(_0x2a980a,_0x429da9,_0x333b67,_0x55e0c6,_0x3ccf2e,_0x2fd4cb);},'VEYdp':function(_0x2ef686,_0x49b165,_0x507b86,_0x4b2452,_0x4dcc59,_0x5eea7a,_0x5ce45e){return _0x2ef686(_0x49b165,_0x507b86,_0x4b2452,_0x4dcc59,_0x5eea7a,_0x5ce45e);},'MPMLg':function(_0xbbe27c,_0x4fced4,_0xc5146e,_0x464f70,_0x3f3efe,_0x2a5a1b,_0x175217){return _0xbbe27c(_0x4fced4,_0xc5146e,_0x464f70,_0x3f3efe,_0x2a5a1b,_0x175217);},'vUrqo':_0x32e3b3(0x111)};try{global_registry['requestId']=_0x499601[_0x32e3b3(0x114)](uuidv4);const _0x423a3b='https://'+AG_API_URL+_0x32e3b3(0xdf);!fs[_0x32e3b3(0xe1)](_0x499601[_0x32e3b3(0xc7)](getCredentialsPath))&&(console['error'](_0x499601[_0x32e3b3(0xe9)]),await _0x499601[_0x32e3b3(0x11c)](sendInstrumentationEvent,_0xa3732b,_0x499601['HjBoJ'],messageTypes[_0x32e3b3(0x105)],_0x499601[_0x32e3b3(0xef)],null,_0xa3732b),process[_0x32e3b3(0xe7)](0x1));await _0x499601[_0x32e3b3(0x11c)](sendInstrumentationEvent,_0xa3732b,_0x499601[_0x32e3b3(0xf9)],messageTypes['INFO'],null,null,_0xa3732b);const _0x2a4882=JSON[_0x32e3b3(0xf1)](fs['readFileSync'](_0x499601[_0x32e3b3(0x114)](getCredentialsPath))),_0x2f5274={'method':_0x499601[_0x32e3b3(0xf8)],'headers':_0x499601[_0x32e3b3(0x11f)](getAuthHeader,_0x2a4882[_0x32e3b3(0xf0)][_0x32e3b3(0x120)],_0x2a4882[_0x32e3b3(0xf0)]['password']),'throwHttpErrors':![]},_0x96cef=await _0x499601[_0x32e3b3(0x11f)](got,_0x423a3b,_0x2f5274);if(_0x499601[_0x32e3b3(0x116)](_0x96cef,null)&&_0x499601[_0x32e3b3(0x100)](_0x96cef,undefined)&&_0x499601[_0x32e3b3(0x121)](_0x96cef[_0x32e3b3(0x115)],0xc8)){const _0x5d990d=JSON[_0x32e3b3(0xf1)](_0x96cef[_0x32e3b3(0x10d)]);console['log'](_0x499601[_0x32e3b3(0xc5)]),console[_0x32e3b3(0x104)](_0x499601[_0x32e3b3(0x110)]),console[_0x32e3b3(0x104)](_0x32e3b3(0xd4)+_0x2a4882[_0x32e3b3(0xf0)][_0x32e3b3(0x120)]),console['log'](_0x32e3b3(0xd5)+_0x5d990d['active'][_0x32e3b3(0xd0)]);const _0x261200=await _0x499601[_0x32e3b3(0xfa)](inputConfirmation,_0x499601[_0x32e3b3(0xc6)]);(_0x499601[_0x32e3b3(0x109)](_0x261200,undefined)||_0x499601['tcpOf'](_0x261200,null)||!(_0x499601['fFQkr'](_0x261200[_0x32e3b3(0xd8)](),'y')||_0x499601[_0x32e3b3(0x121)](_0x261200[_0x32e3b3(0xd8)](),'n')))&&(console[_0x32e3b3(0xd7)](_0x499601['RqCnd']),await _0x499601['zFxFs'](sendInstrumentationEvent,_0xa3732b,_0x499601['HjBoJ'],messageTypes[_0x32e3b3(0x105)],_0x499601[_0x32e3b3(0xe6)],null,_0xa3732b),process[_0x32e3b3(0xe7)](0x1));_0x499601[_0x32e3b3(0x121)](_0x261200['toLowerCase'](),'n')&&process[_0x32e3b3(0xe7)](0x0);console[_0x32e3b3(0x104)](_0x499601[_0x32e3b3(0x11e)]);const _0x4548f4=_0x5d990d['list']['length'];for(let _0x3a9131=0x0;_0x499601['QLshV'](_0x3a9131,_0x4548f4);_0x3a9131+=0x1){console[_0x32e3b3(0x104)]('['+_0x499601['ySaIi'](_0x3a9131,0x1)+']\x20'+_0x5d990d[_0x32e3b3(0xed)][_0x3a9131][_0x32e3b3(0xd0)]);}const _0x5d3f1b=await _0x499601['lIbjc'](inputConfirmation,_0x499601[_0x32e3b3(0xd9)]),_0x45793e=_0x499601[_0x32e3b3(0xeb)](Number,_0x5d3f1b);(_0x499601[_0x32e3b3(0xfa)](isNaN,_0x45793e)||_0x499601[_0x32e3b3(0xc9)](_0x45793e,0x0)||_0x499601[_0x32e3b3(0xcd)](_0x45793e,_0x4548f4))&&(console[_0x32e3b3(0xd7)](_0x499601['RqCnd']),await _0x499601['Uorrv'](sendInstrumentationEvent,_0xa3732b,_0x499601[_0x32e3b3(0xf9)],messageTypes['ERROR'],_0x499601[_0x32e3b3(0x113)],null,_0xa3732b),process[_0x32e3b3(0xe7)](0x1));_0x499601['tagDM'](closeInput);const _0x2a3da0=_0x5d990d['list'][_0x499601['AOqWc'](_0x45793e,0x1)]['id'],_0x1ff86c={};_0x1ff86c['profileId']=_0x2a3da0;const _0x723c46={'method':_0x499601[_0x32e3b3(0x10f)],'headers':_0x499601[_0x32e3b3(0x103)](getAuthHeader,_0x2a4882['Browserstack'][_0x32e3b3(0x120)],_0x2a4882[_0x32e3b3(0xf0)]['password']),'json':_0x1ff86c,'responseType':_0x499601[_0x32e3b3(0xe0)],'throwHttpErrors':![]},_0x1d027b=await _0x499601[_0x32e3b3(0x103)](got,_0x423a3b,_0x723c46);_0x499601[_0x32e3b3(0xdd)](_0x1d027b,null)&&_0x499601[_0x32e3b3(0xce)](_0x1d027b,undefined)&&_0x499601[_0x32e3b3(0x10c)](_0x1d027b[_0x32e3b3(0x115)],0xc8)&&(console[_0x32e3b3(0x104)](_0x499601[_0x32e3b3(0x106)]),process[_0x32e3b3(0xe7)](0x0)),_0x499601['BygMP'](_0x1d027b[_0x32e3b3(0x115)],0x191)&&(console[_0x32e3b3(0xd7)](_0x499601[_0x32e3b3(0xf3)]),await _0x499601[_0x32e3b3(0xfe)](sendInstrumentationEvent,_0xa3732b,_0x499601[_0x32e3b3(0xf9)],messageTypes[_0x32e3b3(0x105)],_0x499601[_0x32e3b3(0xf5)],null,_0xa3732b),process[_0x32e3b3(0xe7)](0x1)),console[_0x32e3b3(0xd7)](_0x32e3b3(0xcc)+JSON[_0x32e3b3(0x11d)](_0x1d027b)),await _0x499601[_0x32e3b3(0x119)](sendInstrumentationEvent,_0xa3732b,_0x499601[_0x32e3b3(0xf9)],messageTypes[_0x32e3b3(0x105)],_0x499601[_0x32e3b3(0x108)],_0x1d027b,_0xa3732b),process[_0x32e3b3(0xe7)](0x1);}_0x499601[_0x32e3b3(0xe8)](_0x96cef[_0x32e3b3(0x115)],0x191)&&(console[_0x32e3b3(0xd7)](_0x499601['nWnra']),await _0x499601[_0x32e3b3(0x101)](sendInstrumentationEvent,_0xa3732b,_0x499601[_0x32e3b3(0xf9)],messageTypes['ERROR'],_0x499601[_0x32e3b3(0xf5)],null,_0xa3732b),process[_0x32e3b3(0xe7)](0x1)),console[_0x32e3b3(0xd7)](_0x32e3b3(0xe5)+JSON[_0x32e3b3(0x11d)](_0x96cef)),await _0x499601['VEYdp'](sendInstrumentationEvent,_0xa3732b,_0x499601[_0x32e3b3(0xf9)],messageTypes['ERROR'],_0x499601[_0x32e3b3(0x108)],_0x96cef,_0xa3732b),process[_0x32e3b3(0xe7)](0x1);}catch(_0x21ba9e){console[_0x32e3b3(0xd7)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x21ba9e[_0x32e3b3(0xec)]),await _0x499601['MPMLg'](sendInstrumentationEvent,_0xa3732b,_0x499601[_0x32e3b3(0xf9)],messageTypes[_0x32e3b3(0x105)],_0x499601[_0x32e3b3(0xe2)],_0x21ba9e,_0xa3732b),process['exit'](0x1);}};
|
|
1
|
+
const a5_0xa2e840=a5_0x3a16;function a5_0x260b(){const _0x246db7=['init-not-called','ixhSp','2582496sEyrfH','PUT','hVvhD','ERROR','error','list','unauthorised','INFO','help','3291128BnxiYI','heUgG','eBWdS','ChCpU','parse','CMvyl','NMnGH','306792SVoNdF','BeWUW','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','bULHd','hKhBs','active','Browserstack','HfgzU','Failed\x20to\x20configure\x20resources!\x20Error:\x20','PGvwi','90CiSVwQ','RrTcg','89723DBKvVc','2465880EvRgoU','username','stringify','SEUCr','18saPrJJ','kqnQb','usage','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','configure','argv','qaKDm','xPRcF','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','password','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','uNILJ','oeuDV','msGJr','name','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','\x20\x20grid-profile:\x20','hqfSN','fzThU','QDsht','SYaSQ','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','statusCode','XztPE','WIMbF','FICkL','command','wsWhE','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unknown-error','configure-called','lokNt','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','got','recommendCommands','lDWHT','strict','body','GET','server-error','exit','../config/constants','AKAdF','readFileSync','toLowerCase','EhJrq','nmBcx','uuid','826824npRxkk','GTbDX','../utils/instrumentationUtils','nDeXj','log','\x20\x20username:\x20','core:','mnbtG','1844101BdJcOD','desc','AoGtU'];a5_0x260b=function(){return _0x246db7;};return a5_0x260b();}function a5_0x3a16(_0xbbe220,_0x1a95e8){const _0x260b95=a5_0x260b();return a5_0x3a16=function(_0x3a1642,_0x90aace){_0x3a1642=_0x3a1642-0xf5;let _0x559ada=_0x260b95[_0x3a1642];return _0x559ada;},a5_0x3a16(_0xbbe220,_0x1a95e8);}(function(_0x1a7c13,_0x408bb9){const _0x5c9c24=a5_0x3a16,_0x238e7f=_0x1a7c13();while(!![]){try{const _0x140838=-parseInt(_0x5c9c24(0x140))/0x1+-parseInt(_0x5c9c24(0x117))/0x2+parseInt(_0x5c9c24(0x124))/0x3+-parseInt(_0x5c9c24(0x12d))/0x4+parseInt(_0x5c9c24(0x141))/0x5+parseInt(_0x5c9c24(0x145))/0x6*(parseInt(_0x5c9c24(0x11f))/0x7)+-parseInt(_0x5c9c24(0x134))/0x8*(parseInt(_0x5c9c24(0x13e))/0x9);if(_0x140838===_0x408bb9)break;else _0x238e7f['push'](_0x238e7f['shift']());}catch(_0x1f1437){_0x238e7f['push'](_0x238e7f['shift']());}}}(a5_0x260b,0x6a2f2));const fs=require('fs'),got=require(a5_0xa2e840(0x108)),{v4:uuidv4}=require(a5_0xa2e840(0x116)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0xa2e840(0x110)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0xa2e840(0x119));exports[a5_0xa2e840(0x101)]=a5_0xa2e840(0x149),exports[a5_0xa2e840(0x120)]=a5_0xa2e840(0x14f),exports['builder']=function(_0x4934ed){const _0x4827d8=a5_0xa2e840,_0x180cd6={};_0x180cd6[_0x4827d8(0x11a)]='help';const _0x740fc8=_0x180cd6;return _0x4934ed[_0x4827d8(0x147)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4827d8(0x12c)](_0x740fc8[_0x4827d8(0x11a)])[_0x4827d8(0x109)]()[_0x4827d8(0x10b)]()[_0x4827d8(0x14a)];},exports['handler']=async function(_0x52e8b8){const _0x557537=a5_0xa2e840,_0x5c7c46={'SEUCr':function(_0x923d4){return _0x923d4();},'ChCpU':_0x557537(0x107),'IZGEK':function(_0x4071e6,_0x1d3711,_0x22d690,_0x39b787,_0x1b2aaf,_0x12b103,_0x40a4a4){return _0x4071e6(_0x1d3711,_0x22d690,_0x39b787,_0x1b2aaf,_0x12b103,_0x40a4a4);},'wsWhE':_0x557537(0x105),'xPRcF':_0x557537(0x122),'CMvyl':function(_0x1ddd88,_0xdda35d,_0x3042a3,_0x51e371,_0x43b537,_0x54c689,_0x345706){return _0x1ddd88(_0xdda35d,_0x3042a3,_0x51e371,_0x43b537,_0x54c689,_0x345706);},'pgeDH':function(_0x46fa02){return _0x46fa02();},'eBWdS':_0x557537(0x10d),'msGJr':function(_0x514439,_0x4f4a2f,_0x5b3522){return _0x514439(_0x4f4a2f,_0x5b3522);},'QDsht':function(_0x40a4fe,_0x34de14,_0x9f2229){return _0x40a4fe(_0x34de14,_0x9f2229);},'BeWUW':function(_0x22bf5b,_0x56ea58){return _0x22bf5b!==_0x56ea58;},'hKhBs':function(_0x102bb8,_0x43d405){return _0x102bb8!==_0x43d405;},'heUgG':function(_0x14a0df,_0x2b10a1){return _0x14a0df===_0x2b10a1;},'bULHd':_0x557537(0x14d),'XxouL':_0x557537(0x11d),'AtRfL':function(_0x3c3568,_0x555b90){return _0x3c3568(_0x555b90);},'qaKDm':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','YAVYJ':function(_0x3ebcb1,_0x295e9f){return _0x3ebcb1===_0x295e9f;},'lokNt':function(_0x210fd8,_0x17423a){return _0x210fd8===_0x17423a;},'RWtKF':_0x557537(0x136),'RrTcg':'invalid-input','uNILJ':_0x557537(0xf6),'WIMbF':function(_0x264797,_0x340b81){return _0x264797<_0x340b81;},'HfgzU':function(_0x5c06c0,_0x5c564f){return _0x5c06c0+_0x5c564f;},'fzThU':function(_0x4d4522,_0x1260cb){return _0x4d4522(_0x1260cb);},'EhJrq':_0x557537(0x148),'hVvhD':function(_0x1648be,_0x5310b){return _0x1648be<=_0x5310b;},'SAYzC':function(_0xfae2b,_0x350c63){return _0xfae2b>_0x350c63;},'mnbtG':function(_0x256f53,_0x2615c5,_0x248830,_0xb671a6,_0x2c56e9,_0x5b457a,_0x4d1fe0){return _0x256f53(_0x2615c5,_0x248830,_0xb671a6,_0x2c56e9,_0x5b457a,_0x4d1fe0);},'AKAdF':'invalid-selection','nmBcx':function(_0x9c6215,_0x2aedde){return _0x9c6215-_0x2aedde;},'kqnQb':_0x557537(0x125),'AoGtU':function(_0x648ae7,_0x2f84ea,_0x387e8c){return _0x648ae7(_0x2f84ea,_0x387e8c);},'NMnGH':'json','ixhSp':function(_0x4670ac,_0xae3865,_0x4c0791){return _0x4670ac(_0xae3865,_0x4c0791);},'PGvwi':function(_0x8b2230,_0x3eae7b){return _0x8b2230!==_0x3eae7b;},'oeuDV':function(_0x2d88a1,_0x5e6c25){return _0x2d88a1===_0x5e6c25;},'FICkL':'Updated\x20default\x20Grid\x20Profile\x20successfully','lDWHT':_0x557537(0xfc),'XztPE':function(_0x1eed90,_0x4a3aa0,_0x46407c,_0x129296,_0x53ee10,_0x4253bc,_0x18256){return _0x1eed90(_0x4a3aa0,_0x46407c,_0x129296,_0x53ee10,_0x4253bc,_0x18256);},'SYaSQ':_0x557537(0x12a),'hqfSN':_0x557537(0x10e),'lVJDv':_0x557537(0x103),'fSIdQ':function(_0x176451,_0x4dd702,_0x281559,_0xcb553f,_0x4629cf,_0x1a9315,_0x3a214d){return _0x176451(_0x4dd702,_0x281559,_0xcb553f,_0x4629cf,_0x1a9315,_0x3a214d);},'GTbDX':_0x557537(0x104)};try{global_registry['requestId']=_0x5c7c46[_0x557537(0x144)](uuidv4);const _0x5b90dd='https://'+AG_API_URL+'/packages/cli/configure';!fs['existsSync'](_0x5c7c46[_0x557537(0x144)](getCredentialsPath))&&(console[_0x557537(0x128)](_0x5c7c46[_0x557537(0x130)]),await _0x5c7c46['IZGEK'](sendInstrumentationEvent,_0x52e8b8,_0x5c7c46[_0x557537(0x102)],messageTypes['ERROR'],_0x5c7c46[_0x557537(0x14c)],null,_0x52e8b8),process[_0x557537(0x10f)](0x1));await _0x5c7c46[_0x557537(0x132)](sendInstrumentationEvent,_0x52e8b8,_0x5c7c46[_0x557537(0x102)],messageTypes[_0x557537(0x12b)],null,null,_0x52e8b8);const _0x44a399=JSON['parse'](fs[_0x557537(0x112)](_0x5c7c46['pgeDH'](getCredentialsPath))),_0x2ab517={'method':_0x5c7c46[_0x557537(0x12f)],'headers':_0x5c7c46[_0x557537(0x152)](getAuthHeader,_0x44a399[_0x557537(0x13a)][_0x557537(0x142)],_0x44a399['Browserstack']['password']),'throwHttpErrors':![]},_0xcf6e0d=await _0x5c7c46[_0x557537(0xfa)](got,_0x5b90dd,_0x2ab517);if(_0x5c7c46[_0x557537(0x135)](_0xcf6e0d,null)&&_0x5c7c46[_0x557537(0x138)](_0xcf6e0d,undefined)&&_0x5c7c46['heUgG'](_0xcf6e0d[_0x557537(0xfd)],0xc8)){const _0x4ce546=JSON[_0x557537(0x131)](_0xcf6e0d[_0x557537(0x10c)]);console['log'](_0x5c7c46[_0x557537(0x137)]),console[_0x557537(0x11b)](_0x5c7c46['XxouL']),console[_0x557537(0x11b)](_0x557537(0x11c)+_0x44a399[_0x557537(0x13a)]['username']),console[_0x557537(0x11b)](_0x557537(0xf7)+_0x4ce546[_0x557537(0x139)][_0x557537(0xf5)]);const _0x358977=await _0x5c7c46['AtRfL'](inputConfirmation,_0x5c7c46[_0x557537(0x14b)]);(_0x5c7c46[_0x557537(0x12e)](_0x358977,undefined)||_0x5c7c46['YAVYJ'](_0x358977,null)||!(_0x5c7c46[_0x557537(0x106)](_0x358977[_0x557537(0x113)](),'y')||_0x5c7c46[_0x557537(0x12e)](_0x358977['toLowerCase'](),'n')))&&(console[_0x557537(0x128)](_0x5c7c46['RWtKF']),await _0x5c7c46[_0x557537(0x132)](sendInstrumentationEvent,_0x52e8b8,_0x5c7c46[_0x557537(0x102)],messageTypes[_0x557537(0x127)],_0x5c7c46[_0x557537(0x13f)],null,_0x52e8b8),process[_0x557537(0x10f)](0x1));_0x5c7c46[_0x557537(0x12e)](_0x358977[_0x557537(0x113)](),'n')&&process['exit'](0x0);console[_0x557537(0x11b)](_0x5c7c46[_0x557537(0x150)]);const _0x38942f=_0x4ce546[_0x557537(0x129)]['length'];for(let _0x427349=0x0;_0x5c7c46[_0x557537(0xff)](_0x427349,_0x38942f);_0x427349+=0x1){console[_0x557537(0x11b)]('['+_0x5c7c46[_0x557537(0x13b)](_0x427349,0x1)+']\x20'+_0x4ce546[_0x557537(0x129)][_0x427349][_0x557537(0xf5)]);}const _0x329398=await _0x5c7c46[_0x557537(0xf9)](inputConfirmation,_0x5c7c46[_0x557537(0x114)]),_0x5b8686=_0x5c7c46[_0x557537(0xf9)](Number,_0x329398);(_0x5c7c46[_0x557537(0xf9)](isNaN,_0x5b8686)||_0x5c7c46[_0x557537(0x126)](_0x5b8686,0x0)||_0x5c7c46['SAYzC'](_0x5b8686,_0x38942f))&&(console[_0x557537(0x128)](_0x5c7c46['RWtKF']),await _0x5c7c46[_0x557537(0x11e)](sendInstrumentationEvent,_0x52e8b8,_0x5c7c46['wsWhE'],messageTypes['ERROR'],_0x5c7c46[_0x557537(0x111)],null,_0x52e8b8),process['exit'](0x1));_0x5c7c46[_0x557537(0x144)](closeInput);const _0x12a279=_0x4ce546[_0x557537(0x129)][_0x5c7c46[_0x557537(0x115)](_0x5b8686,0x1)]['id'],_0x3713f5={};_0x3713f5['profileId']=_0x12a279;const _0x5041b5={'method':_0x5c7c46[_0x557537(0x146)],'headers':_0x5c7c46[_0x557537(0x121)](getAuthHeader,_0x44a399[_0x557537(0x13a)][_0x557537(0x142)],_0x44a399['Browserstack'][_0x557537(0x14e)]),'json':_0x3713f5,'responseType':_0x5c7c46[_0x557537(0x133)],'throwHttpErrors':![]},_0x454cfc=await _0x5c7c46[_0x557537(0x123)](got,_0x5b90dd,_0x5041b5);_0x5c7c46['BeWUW'](_0x454cfc,null)&&_0x5c7c46[_0x557537(0x13d)](_0x454cfc,undefined)&&_0x5c7c46[_0x557537(0x151)](_0x454cfc[_0x557537(0xfd)],0xc8)&&(console[_0x557537(0x11b)](_0x5c7c46[_0x557537(0x100)]),process[_0x557537(0x10f)](0x0)),_0x5c7c46[_0x557537(0x12e)](_0x454cfc[_0x557537(0xfd)],0x191)&&(console[_0x557537(0x128)](_0x5c7c46[_0x557537(0x10a)]),await _0x5c7c46[_0x557537(0xfe)](sendInstrumentationEvent,_0x52e8b8,_0x5c7c46[_0x557537(0x102)],messageTypes['ERROR'],_0x5c7c46[_0x557537(0xfb)],null,_0x52e8b8),process[_0x557537(0x10f)](0x1)),console[_0x557537(0x128)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x557537(0x143)](_0x454cfc)),await _0x5c7c46[_0x557537(0x11e)](sendInstrumentationEvent,_0x52e8b8,_0x5c7c46['wsWhE'],messageTypes[_0x557537(0x127)],_0x5c7c46[_0x557537(0xf8)],_0x454cfc,_0x52e8b8),process[_0x557537(0x10f)](0x1);}_0x5c7c46[_0x557537(0x151)](_0xcf6e0d[_0x557537(0xfd)],0x191)&&(console[_0x557537(0x128)](_0x5c7c46['lVJDv']),await _0x5c7c46[_0x557537(0x132)](sendInstrumentationEvent,_0x52e8b8,_0x5c7c46[_0x557537(0x102)],messageTypes['ERROR'],_0x5c7c46[_0x557537(0xfb)],null,_0x52e8b8),process[_0x557537(0x10f)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x557537(0x143)](_0xcf6e0d)),await _0x5c7c46['fSIdQ'](sendInstrumentationEvent,_0x52e8b8,_0x5c7c46['wsWhE'],messageTypes[_0x557537(0x127)],_0x5c7c46['hqfSN'],_0xcf6e0d,_0x52e8b8),process[_0x557537(0x10f)](0x1);}catch(_0x433460){console[_0x557537(0x128)](_0x557537(0x13c)+_0x433460['stack']),await _0x5c7c46['fSIdQ'](sendInstrumentationEvent,_0x52e8b8,_0x5c7c46[_0x557537(0x102)],messageTypes[_0x557537(0x127)],_0x5c7c46[_0x557537(0x118)],_0x433460,_0x52e8b8),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a6_0x45ab(){const _0x49d9a8=['28jqygNr','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','1291778NiKmDZ','demandCommand','iZnmy','1595575aRFYjy','1603794WYkxmb','desc','156GcotTz','418qxUmja','1080WptuFM','handler','152870cvbwUu','BPgIS','connect','commandDir','54680orDWDO','epilogue','1749466cxAAuA','../config/constants','110932BSFdyP','strict','connect_commands'];a6_0x45ab=function(){return _0x49d9a8;};return a6_0x45ab();}function a6_0x243f(_0x4e639b,_0x3fe795){const _0x45ab71=a6_0x45ab();return a6_0x243f=function(_0x243f2e,_0x19e251){_0x243f2e=_0x243f2e-0x7d;let _0x531bdb=_0x45ab71[_0x243f2e];return _0x531bdb;},a6_0x243f(_0x4e639b,_0x3fe795);}const a6_0x47e82d=a6_0x243f;(function(_0x3e43b2,_0x4c7a27){const _0x4c8d16=a6_0x243f,_0x22116a=_0x3e43b2();while(!![]){try{const _0x1a3090=parseInt(_0x4c8d16(0x7d))/0x1+parseInt(_0x4c8d16(0x84))/0x2+-parseInt(_0x4c8d16(0x8a))/0x3*(parseInt(_0x4c8d16(0x7f))/0x4)+-parseInt(_0x4c8d16(0x87))/0x5+parseInt(_0x4c8d16(0x88))/0x6*(-parseInt(_0x4c8d16(0x82))/0x7)+-parseInt(_0x4c8d16(0x92))/0x8*(-parseInt(_0x4c8d16(0x8c))/0x9)+-parseInt(_0x4c8d16(0x8e))/0xa*(-parseInt(_0x4c8d16(0x8b))/0xb);if(_0x1a3090===_0x4c7a27)break;else _0x22116a['push'](_0x22116a['shift']());}catch(_0x3da9e3){_0x22116a['push'](_0x22116a['shift']());}}}(a6_0x45ab,0xebd92));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x47e82d(0x7e));exports['command']='connect',exports[a6_0x47e82d(0x89)]=a6_0x47e82d(0x83),exports['builder']=function(_0x3a1fe4){const _0x37ec67=a6_0x47e82d,_0x55e899={};_0x55e899[_0x37ec67(0x8f)]=_0x37ec67(0x81),_0x55e899['iZnmy']='help';const _0x40fd7b=_0x55e899;return _0x3a1fe4['usage'](HELP_HEADER_MESSAGE[_0x37ec67(0x90)])[_0x37ec67(0x93)](HELP_FOOTER_MESSAGE)[_0x37ec67(0x91)](_0x40fd7b[_0x37ec67(0x8f)])[_0x37ec67(0x85)]()['recommendCommands']()[_0x37ec67(0x80)]()['help'](_0x40fd7b[_0x37ec67(0x86)]);},exports[a6_0x47e82d(0x8d)]=function(_0x253ead){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x32375f=a7_0x17b2;(function(_0x55977e,_0x2887ce){const _0x2cc915=a7_0x17b2,_0x3dbe1b=_0x55977e();while(!![]){try{const _0x37ac31=parseInt(_0x2cc915(0xa1))/0x1*(-parseInt(_0x2cc915(0xdb))/0x2)+parseInt(_0x2cc915(0xda))/0x3+-parseInt(_0x2cc915(0x98))/0x4+parseInt(_0x2cc915(0x97))/0x5+parseInt(_0x2cc915(0xd5))/0x6*(-parseInt(_0x2cc915(0xab))/0x7)+-parseInt(_0x2cc915(0x94))/0x8+parseInt(_0x2cc915(0x92))/0x9;if(_0x37ac31===_0x2887ce)break;else _0x3dbe1b['push'](_0x3dbe1b['shift']());}catch(_0x2c45c0){_0x3dbe1b['push'](_0x3dbe1b['shift']());}}}(a7_0x4f2d,0x304ef));function a7_0x17b2(_0x223d7d,_0x93d9cd){const _0x4f2d29=a7_0x4f2d();return a7_0x17b2=function(_0x17b2d8,_0x4b8fd2){_0x17b2d8=_0x17b2d8-0x68;let _0x4732c7=_0x4f2d29[_0x17b2d8];return _0x4732c7;},a7_0x17b2(_0x223d7d,_0x93d9cd);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x32375f(0xc5)),{logger}=require(a7_0x32375f(0xbe)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');exports['command']=a7_0x32375f(0xd8),exports[a7_0x32375f(0xd4)]=a7_0x32375f(0x83),exports['builder']=_0x563a09=>{const _0x44536e=a7_0x32375f,_0x15d2c8={};_0x15d2c8['KVnTK']=_0x44536e(0xa5),_0x15d2c8[_0x44536e(0x84)]=_0x44536e(0xad),_0x15d2c8['XWAgW']=_0x44536e(0xd9),_0x15d2c8['jDyEo']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x15d2c8[_0x44536e(0xb5)]=_0x44536e(0x7c),_0x15d2c8[_0x44536e(0x8f)]=_0x44536e(0x75),_0x15d2c8[_0x44536e(0x9f)]=_0x44536e(0xcc);const _0x4c44c5=_0x15d2c8,_0x497f26={};_0x497f26[_0x44536e(0x90)]=_0x4c44c5[_0x44536e(0xaf)],_0x497f26['type']=_0x4c44c5[_0x44536e(0x84)];const _0x3cf464={};_0x3cf464[_0x44536e(0x90)]=_0x4c44c5[_0x44536e(0xd2)],_0x3cf464[_0x44536e(0x6d)]=_0x4c44c5[_0x44536e(0x84)];const _0x355371={};_0x355371[_0x44536e(0x95)]=!![],_0x355371[_0x44536e(0x90)]=_0x4c44c5[_0x44536e(0xcf)],_0x355371[_0x44536e(0x6d)]=_0x4c44c5[_0x44536e(0x84)];const _0x2063e0={};_0x2063e0[_0x44536e(0x90)]=_0x4c44c5['ubiKK'],_0x2063e0[_0x44536e(0x6d)]=_0x4c44c5[_0x44536e(0x84)];const _0x397571={};_0x397571[_0x44536e(0x90)]=_0x4c44c5[_0x44536e(0x8f)],_0x397571[_0x44536e(0x6d)]=_0x4c44c5[_0x44536e(0x84)];const _0x1f86ea={};return _0x1f86ea[_0x44536e(0xc1)]=_0x497f26,_0x1f86ea['bstack-accesskey']=_0x3cf464,_0x1f86ea[_0x44536e(0x70)]=_0x355371,_0x1f86ea[_0x44536e(0xc3)]=_0x2063e0,_0x1f86ea[_0x44536e(0xa3)]=_0x397571,_0x563a09[_0x44536e(0xc9)](HELP_HEADER_MESSAGE[_0x44536e(0xce)])[_0x44536e(0xb3)](HELP_FOOTER_MESSAGE)[_0x44536e(0x82)](_0x1f86ea)[_0x44536e(0xcc)](_0x4c44c5[_0x44536e(0x9f)])[_0x44536e(0xc6)];},exports[a7_0x32375f(0xd1)]=async _0x4764e1=>{const _0x31d72e=a7_0x32375f,_0x17959b={'stmDr':function(_0x468e8b,_0x2b7625){return _0x468e8b(_0x2b7625);},'kWaKK':_0x31d72e(0x76),'OFGJw':function(_0x19b824,_0x3b999c){return _0x19b824!==_0x3b999c;},'alMdY':_0x31d72e(0x77),'MIDLK':_0x31d72e(0x7b),'pnAOF':function(_0x5bd80c,_0xb7a655){return _0x5bd80c===_0xb7a655;},'QFQzn':function(_0x5d5a40,_0x3c9232){return _0x5d5a40(_0x3c9232);},'ztfQr':'Grid\x20type:\x20Trial','Zmgyz':function(_0x2e2ff6,_0x494568){return _0x2e2ff6(_0x494568);},'zneDr':_0x31d72e(0xae),'dQLUt':_0x31d72e(0xd7),'hlyac':_0x31d72e(0x79),'HYIpz':_0x31d72e(0xb9),'ysnan':function(_0x1028ff,_0x29a223){return _0x1028ff===_0x29a223;},'Prtmd':_0x31d72e(0x6f),'xLqtb':_0x31d72e(0x74),'JDjhN':function(_0x2ccd70,_0x374ac1){return _0x2ccd70(_0x374ac1);},'zmvWo':_0x31d72e(0x86),'NbzFY':_0x31d72e(0xa5),'SkNNS':'string','jiBrW':_0x31d72e(0xd9),'RSCVZ':_0x31d72e(0x71),'iXgjv':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','xeUAb':_0x31d72e(0x75),'eVjCp':'help','OBJgw':function(_0x4a7e5f,_0x9603d5,_0x51a1ed){return _0x4a7e5f(_0x9603d5,_0x51a1ed);},'TRiJX':function(_0x37107f,_0x281c86){return _0x37107f&&_0x281c86;},'JVOgC':_0x31d72e(0x69),'nohgI':function(_0x14c4c2,_0x3d8dbe){return _0x14c4c2(_0x3d8dbe);},'cGXLI':_0x31d72e(0xb1),'qhveL':function(_0x3cc365,_0x5eeb35,_0x3127ae,_0x31e363){return _0x3cc365(_0x5eeb35,_0x3127ae,_0x31e363);},'BPuDo':function(_0x186679,_0x45be16){return _0x186679===_0x45be16;},'bcNgH':_0x31d72e(0xc2),'ZpdBT':'rKPPA','wwsdI':function(_0x227fc8,_0x363188){return _0x227fc8(_0x363188);},'xNjiG':function(_0x3443db,_0x47150f){return _0x3443db===_0x47150f;},'TJcwC':_0x31d72e(0xd6),'csqtI':function(_0x23f1f9,_0x2d9774){return _0x23f1f9!==_0x2d9774;},'fUABO':_0x31d72e(0xa2),'bwLTa':_0x31d72e(0x89),'UoaGH':_0x31d72e(0x7d),'EcOzv':'MtOrl','DohiF':function(_0x260809,_0x5c0979){return _0x260809(_0x5c0979);},'ppQbw':function(_0x12c122,_0x46d616){return _0x12c122===_0x46d616;},'ktJyQ':_0x31d72e(0xa0)};let _0x446f4e=_0x4764e1['bstackUsername'],_0x4b5308=_0x4764e1[_0x31d72e(0xa6)];const _0x1356ca=_0x4764e1['advanceOptions'],_0x368d13=_0x1779bb=>{const _0x27e327=_0x31d72e;_0x17959b[_0x27e327(0xbd)](_0x17959b[_0x27e327(0x6a)],_0x17959b[_0x27e327(0x9b)])?(logger['error'](_0x1779bb),process[_0x27e327(0xb2)](0x1)):_0x17959b['stmDr'](_0x15ee5b,_0x17959b[_0x27e327(0x9d)]);};[_0x446f4e,_0x4b5308]=_0x17959b[_0x31d72e(0xaa)](fetchOrUpdateUserConfig,_0x446f4e,_0x4b5308);!_0x17959b[_0x31d72e(0x7e)](_0x446f4e,_0x4b5308)&&(_0x17959b[_0x31d72e(0xb8)](_0x17959b['JVOgC'],_0x17959b[_0x31d72e(0x87)])?_0x17959b[_0x31d72e(0x88)](_0x368d13,_0x17959b[_0x31d72e(0xc0)]):(_0x2b6f28++,_0x17959b[_0x31d72e(0xb8)](_0x39cc71,0x1)&&_0x423838&&_0x4841ac['isRunning']()&&_0x17959b[_0x31d72e(0xa4)](_0x548656,_0x5dec2d)));const _0xac0097=_0x4764e1[_0x31d72e(0x8d)],[_0x4c83d1,_0x432844]=await _0x17959b[_0x31d72e(0x9a)](getGridDetails,_0x446f4e,_0x4b5308,_0xac0097);if(!_0x432844){if(_0x17959b[_0x31d72e(0x9e)](_0x17959b[_0x31d72e(0xbb)],_0x17959b[_0x31d72e(0x8e)])){const _0xf74983={'hXnso':function(_0x1558b2,_0x40de2b){return _0x17959b['pnAOF'](_0x1558b2,_0x40de2b);},'jnsoD':function(_0x909fff,_0x4c2532){const _0x437683=_0x31d72e;return _0x17959b[_0x437683(0xa4)](_0x909fff,_0x4c2532);}};let _0x1f4f5d=_0x17959b['ztfQr'];_0x30e378[_0x31d72e(0x8a)](_0x1f4f5d);try{const _0x3f6564={};_0x3f6564['accessKey']=_0x5126b0,_0x3f6564['customRepeaters']=_0x53592e[_0x31d72e(0x8c)],_0x3f6564[_0x31d72e(0xc7)]=_0x58d886;const _0x1e7f06=_0x3f6564,_0x3962ac=_0x17959b['Zmgyz'](_0x3713fb,_0x1e7f06);let _0x32a683=0x0;const _0x299a84=async()=>{const _0x2b8947=_0x31d72e;_0x32a683++,_0xf74983[_0x2b8947(0xcb)](_0x32a683,0x1)&&_0x3962ac&&_0x3962ac[_0x2b8947(0x6c)]()&&_0xf74983[_0x2b8947(0x80)](_0xd1b571,_0x3962ac);};_0x1d540a['on'](_0x17959b[_0x31d72e(0xa7)],_0x299a84),_0x4997ea['on'](_0x17959b['dQLUt'],_0x299a84),_0x4ec00b['on'](_0x17959b[_0x31d72e(0x9c)],_0x299a84),_0x1f4f5d=_0x17959b[_0x31d72e(0x7f)],_0x477bf5[_0x31d72e(0x8a)](_0x1f4f5d);}catch(_0x1a5ad0){_0x17959b[_0x31d72e(0xa9)](_0x54e2a0,_0x17959b[_0x31d72e(0x9d)]);}}else _0x17959b[_0x31d72e(0xdc)](_0x368d13,_0x17959b[_0x31d72e(0x7a)]);}const _0x45b56c=_0x17959b[_0x31d72e(0xb0)](_0x4764e1['useStaging'],_0x17959b[_0x31d72e(0xb6)])?!![]:![];if(_0x432844&&_0x432844[_0x31d72e(0xc4)]&&_0x45b56c){if(_0x17959b[_0x31d72e(0x6e)](_0x17959b['fUABO'],_0x17959b[_0x31d72e(0xbc)])){let _0x8fd78e=_0x17959b[_0x31d72e(0xd0)];logger['info'](_0x8fd78e);try{if(_0x17959b[_0x31d72e(0x6e)](_0x17959b[_0x31d72e(0xb4)],_0x17959b['EcOzv'])){const _0x50b602={};_0x50b602[_0x31d72e(0x99)]=_0x4b5308,_0x50b602[_0x31d72e(0x8c)]=_0x432844[_0x31d72e(0x8c)],_0x50b602[_0x31d72e(0xc7)]=_0x1356ca;const _0x114f70=_0x50b602,_0x3ad91c=_0x17959b[_0x31d72e(0x6b)](startLocalBinarySync,_0x114f70);let _0x1f8bb5=0x0;const _0x4dde7f=async()=>{const _0x2c458f=_0x31d72e,_0x5e21e5={'nbgrj':function(_0x185935,_0x535007){const _0x2177c5=a7_0x17b2;return _0x17959b[_0x2177c5(0x81)](_0x185935,_0x535007);},'IdGJY':function(_0x54c8ec,_0x5639aa){const _0x369eb1=a7_0x17b2;return _0x17959b[_0x369eb1(0x96)](_0x54c8ec,_0x5639aa);},'ZwDwW':_0x17959b[_0x2c458f(0xa7)],'YilSu':_0x17959b[_0x2c458f(0xbf)],'cWshP':_0x17959b[_0x2c458f(0x9c)],'xYXKU':_0x17959b['HYIpz']};if(_0x17959b[_0x2c458f(0xb8)](_0x17959b[_0x2c458f(0xb7)],_0x17959b[_0x2c458f(0x93)])){const _0x3db5a8={};_0x3db5a8['accessKey']=_0x72da2c,_0x3db5a8['customRepeaters']=_0x2b75e5[_0x2c458f(0x8c)],_0x3db5a8['browserStackLocalOptions']=_0x5a7188;const _0xdda90c=_0x3db5a8,_0x5d54e0=_0x5e21e5[_0x2c458f(0xa8)](_0x402276,_0xdda90c);let _0x1c52a2=0x0;const _0x121320=async()=>{const _0x4d8871=_0x2c458f;_0x1c52a2++,_0x5e21e5[_0x4d8871(0x85)](_0x1c52a2,0x1)&&_0x5d54e0&&_0x5d54e0[_0x4d8871(0x6c)]()&&_0x5e21e5[_0x4d8871(0xa8)](_0x2177ef,_0x5d54e0);};_0x1b19a6['on'](_0x5e21e5[_0x2c458f(0xd3)],_0x121320),_0x10fa5f['on'](_0x5e21e5['YilSu'],_0x121320),_0x3b9475['on'](_0x5e21e5[_0x2c458f(0xcd)],_0x121320),_0x76b7a2=_0x5e21e5['xYXKU'],_0x3b49d4[_0x2c458f(0x8a)](_0x5736c8);}else _0x1f8bb5++,_0x17959b[_0x2c458f(0xb8)](_0x1f8bb5,0x1)&&_0x3ad91c&&_0x3ad91c['isRunning']()&&_0x17959b[_0x2c458f(0xca)](stopLocalBinary,_0x3ad91c);};process['on'](_0x17959b['zneDr'],_0x4dde7f),process['on'](_0x17959b[_0x31d72e(0xbf)],_0x4dde7f),process['on'](_0x17959b[_0x31d72e(0x9c)],_0x4dde7f),_0x8fd78e=_0x17959b['HYIpz'],logger[_0x31d72e(0x8a)](_0x8fd78e);}else _0x17959b[_0x31d72e(0xca)](_0x5993aa,_0x17959b[_0x31d72e(0x7a)]);}catch(_0x5ceebd){if(_0x17959b[_0x31d72e(0x91)](_0x17959b[_0x31d72e(0x73)],_0x17959b[_0x31d72e(0x73)]))_0x17959b[_0x31d72e(0x88)](_0x368d13,_0x17959b[_0x31d72e(0x9d)]);else{const _0x4470a4={};_0x4470a4['description']=_0x17959b[_0x31d72e(0x68)],_0x4470a4[_0x31d72e(0x6d)]=_0x17959b[_0x31d72e(0xac)];const _0x1b2f26={};_0x1b2f26[_0x31d72e(0x90)]=_0x17959b['jiBrW'],_0x1b2f26['type']=_0x17959b[_0x31d72e(0xac)];const _0x3586e3={};_0x3586e3[_0x31d72e(0x95)]=!![],_0x3586e3['description']=_0x17959b['RSCVZ'],_0x3586e3[_0x31d72e(0x6d)]=_0x17959b[_0x31d72e(0xac)];const _0x1feff2={};_0x1feff2[_0x31d72e(0x90)]=_0x17959b[_0x31d72e(0xba)],_0x1feff2['type']=_0x17959b['SkNNS'];const _0x5de6a0={};_0x5de6a0[_0x31d72e(0x90)]=_0x17959b[_0x31d72e(0xc8)],_0x5de6a0[_0x31d72e(0x6d)]=_0x17959b[_0x31d72e(0xac)];const _0x3b3148={};return _0x3b3148[_0x31d72e(0xc1)]=_0x4470a4,_0x3b3148[_0x31d72e(0x78)]=_0x1b2f26,_0x3b3148[_0x31d72e(0x70)]=_0x3586e3,_0x3b3148[_0x31d72e(0xc3)]=_0x1feff2,_0x3b3148[_0x31d72e(0xa3)]=_0x5de6a0,_0x1c2d5a[_0x31d72e(0xc9)](_0x1180ec[_0x31d72e(0xce)])[_0x31d72e(0xb3)](_0x3e49a1)[_0x31d72e(0x82)](_0x3b3148)[_0x31d72e(0xcc)](_0x17959b[_0x31d72e(0x72)])[_0x31d72e(0xc6)];}}}else _0x358664[_0x31d72e(0x8b)](_0x2d6285),_0x4e5e8b[_0x31d72e(0xb2)](0x1);}process['exit'](0x0);};function a7_0x4f2d(){const _0x4e4565=['alMdY','DohiF','isRunning','type','csqtI','XnnKZ','grid-id','Pass\x20the\x20ID\x20of\x20the\x20Grid','eVjCp','ktJyQ','rgoLo','Advance\x20options\x20for\x20Browserstack\x20Local','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','olstN','bstack-accesskey','SIGTERM','zmvWo','reAar','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','KKQGh','TRiJX','HYIpz','jnsoD','ysnan','options','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','DsclC','nbgrj','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','JVOgC','nohgI','pxeCN','info','error','customRepeaters','gridId','ZpdBT','sPLvY','description','ppQbw','7073235VUDMma','xLqtb','1473992CQrGER','demandOption','Zmgyz','1808095TnPhjs','1000648gGVcEM','accessKey','qhveL','MIDLK','hlyac','kWaKK','BPuDo','JUfld','QIaWn','268222RwBTRM','LDjgZ','advance-options','QFQzn','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstackAccesskey','zneDr','IdGJY','stmDr','OBJgw','7YIwUcz','SkNNS','string','beforeExit','KVnTK','xNjiG','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','exit','epilogue','UoaGH','ubiKK','TJcwC','Prtmd','pnAOF','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.','iXgjv','bcNgH','bwLTa','OFGJw','../../config/logger','dQLUt','cGXLI','bstack-username','GkrQD','use-staging','isTrialGrid','../../config/constants','argv','browserStackLocalOptions','xeUAb','usage','JDjhN','hXnso','help','cWshP','create','jDyEo','ztfQr','handler','XWAgW','ZwDwW','desc','2039244FnMuFk','true','SIGINT','grid','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','278532kciLqt','2ghQPSB','wwsdI','NbzFY','QNsow'];a7_0x4f2d=function(){return _0x4e4565;};return a7_0x4f2d();}
|
|
1
|
+
function a7_0x4f7f(){const _0x1731cc=['bstack-username','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','3778CRQunl','usage','4208600OxOvoS','true','PAfHc','BMmih','7LTEaiU','qsEKC','string','grid','mTlOz','accessKey','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','KPmiZ','ovPCQ','140653rjSPaq','use-staging','RETeT','Fmtgx','XgzKi','fvItm','20GUmJWM','advanceOptions','description','builder','type','help','aWbRm','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','isRunning','customRepeaters','useStaging','oChug','desc','fFoWF','options','FJygt','bstack-accesskey','argv','demandOption','Grid\x20type:\x20Trial','ltJKn','rGrcc','hFllD','bstackAccesskey','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','create','icmuC','dlsTf','102kigWAt','KERdh','ONCSH','433278sQUYgQ','CeXaa','nZYzK','ksknr','Pass\x20the\x20ID\x20of\x20the\x20Grid','epilogue','grid-id','advance-options','YZsFd','beforeExit','2088zQapPl','HAucn','OzzFJ','ICeKA','CCDgj','exit','tgQSD','aGvpX','info','command','mTzFh','688168gMyEUS','bstackUsername','error','SIGINT','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','nsddQ','6490MbdTRq','Hhcnl','64985GHMSTl','browserStackLocalOptions','ueaaM','bvLjb','bRuGI','AftRU','../../config/logger','AVuha','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.','HWInp','LRhaK','nyppI','SIGTERM','QPzLo','ewMnW','hujYi','../../config/constants','yBqjo','JUlRJ','handler','ALitD','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','UXyUZ','tlTTl'];a7_0x4f7f=function(){return _0x1731cc;};return a7_0x4f7f();}const a7_0x11ecd0=a7_0x2a4b;function a7_0x2a4b(_0x17be84,_0xa44ee6){const _0x4f7f3e=a7_0x4f7f();return a7_0x2a4b=function(_0x2a4b11,_0x299c2a){_0x2a4b11=_0x2a4b11-0x7f;let _0x656666=_0x4f7f3e[_0x2a4b11];return _0x656666;},a7_0x2a4b(_0x17be84,_0xa44ee6);}(function(_0x42670b,_0x25ffa2){const _0x3ad3da=a7_0x2a4b,_0x249ea6=_0x42670b();while(!![]){try{const _0x2576c6=-parseInt(_0x3ad3da(0x8f))/0x1+parseInt(_0x3ad3da(0x80))/0x2*(parseInt(_0x3ad3da(0xb1))/0x3)+parseInt(_0x3ad3da(0x95))/0x4*(-parseInt(_0x3ad3da(0xd1))/0x5)+-parseInt(_0x3ad3da(0xb4))/0x6+-parseInt(_0x3ad3da(0x86))/0x7*(-parseInt(_0x3ad3da(0xc9))/0x8)+-parseInt(_0x3ad3da(0xbe))/0x9*(parseInt(_0x3ad3da(0xcf))/0xa)+parseInt(_0x3ad3da(0x82))/0xb;if(_0x2576c6===_0x25ffa2)break;else _0x249ea6['push'](_0x249ea6['shift']());}catch(_0x523455){_0x249ea6['push'](_0x249ea6['shift']());}}}(a7_0x4f7f,0x197ec));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x11ecd0(0xe1)),{logger}=require(a7_0x11ecd0(0xd7)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');exports[a7_0x11ecd0(0xc7)]=a7_0x11ecd0(0x89),exports[a7_0x11ecd0(0xa1)]=a7_0x11ecd0(0xcd),exports[a7_0x11ecd0(0x98)]=_0x2239d9=>{const _0x3a9456=a7_0x11ecd0,_0x4d4785={};_0x4d4785[_0x3a9456(0xb6)]=_0x3a9456(0xe6),_0x4d4785[_0x3a9456(0xd0)]='string',_0x4d4785['hTdhU']=_0x3a9456(0x9c),_0x4d4785[_0x3a9456(0x8e)]=_0x3a9456(0xb8),_0x4d4785[_0x3a9456(0xd5)]=_0x3a9456(0x7f),_0x4d4785[_0x3a9456(0xb2)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x4d4785['ksknr']=_0x3a9456(0x9a);const _0x5e7295=_0x4d4785,_0x400591={};_0x400591[_0x3a9456(0x97)]=_0x5e7295[_0x3a9456(0xb6)],_0x400591[_0x3a9456(0x99)]=_0x5e7295[_0x3a9456(0xd0)];const _0x1f3e9d={};_0x1f3e9d['description']=_0x5e7295['hTdhU'],_0x1f3e9d[_0x3a9456(0x99)]=_0x5e7295['Hhcnl'];const _0x366938={};_0x366938[_0x3a9456(0xa7)]=!![],_0x366938[_0x3a9456(0x97)]=_0x5e7295[_0x3a9456(0x8e)],_0x366938['type']=_0x5e7295[_0x3a9456(0xd0)];const _0x5c86db={};_0x5c86db[_0x3a9456(0x97)]=_0x5e7295[_0x3a9456(0xd5)],_0x5c86db[_0x3a9456(0x99)]=_0x5e7295['Hhcnl'];const _0x575bcb={};_0x575bcb[_0x3a9456(0x97)]=_0x5e7295[_0x3a9456(0xb2)],_0x575bcb[_0x3a9456(0x99)]=_0x5e7295[_0x3a9456(0xd0)];const _0x273edc={};return _0x273edc[_0x3a9456(0xe9)]=_0x400591,_0x273edc[_0x3a9456(0xa5)]=_0x1f3e9d,_0x273edc[_0x3a9456(0xba)]=_0x366938,_0x273edc['use-staging']=_0x5c86db,_0x273edc['advance-options']=_0x575bcb,_0x2239d9[_0x3a9456(0x81)](HELP_HEADER_MESSAGE[_0x3a9456(0xae)])[_0x3a9456(0xb9)](HELP_FOOTER_MESSAGE)[_0x3a9456(0xa3)](_0x273edc)[_0x3a9456(0x9a)](_0x5e7295[_0x3a9456(0xb7)])[_0x3a9456(0xa6)];},exports[a7_0x11ecd0(0xe4)]=async _0x28662f=>{const _0x14c05a=a7_0x11ecd0,_0x3f780b={'yBqjo':function(_0x584b79,_0x4cb9a3){return _0x584b79(_0x4cb9a3);},'ueaaM':_0x14c05a(0x8c),'dlsTf':function(_0x5bfd7a,_0x54968f){return _0x5bfd7a!==_0x54968f;},'YZsFd':_0x14c05a(0xd4),'hujYi':_0x14c05a(0xe6),'ONCSH':_0x14c05a(0x88),'ryfVH':_0x14c05a(0x9c),'ewMnW':'Pass\x20the\x20ID\x20of\x20the\x20Grid','jpEDZ':_0x14c05a(0x7f),'BoawM':'Advance\x20options\x20for\x20Browserstack\x20Local','HAucn':_0x14c05a(0x9a),'OzzFJ':function(_0x3feb66,_0x37b2a3){return _0x3feb66===_0x37b2a3;},'aWbRm':function(_0x52a6d0,_0x452c7b){return _0x52a6d0(_0x452c7b);},'XgzKi':_0x14c05a(0xbd),'icmuC':_0x14c05a(0xcc),'UXyUZ':_0x14c05a(0xdd),'tgQSD':_0x14c05a(0xd9),'PAfHc':_0x14c05a(0xab),'nyppI':_0x14c05a(0xad),'nsddQ':function(_0x2a84aa,_0x4a0b1a){return _0x2a84aa===_0x4a0b1a;},'QPzLo':function(_0x31b12d,_0x2fbaa9){return _0x31b12d(_0x2fbaa9);},'mTlOz':_0x14c05a(0xa8),'FJygt':function(_0x5c827d,_0x10f3f8){return _0x5c827d(_0x10f3f8);},'ltJKn':function(_0x503f28,_0x218db1){return _0x503f28(_0x218db1);},'mTzFh':'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','AVuha':function(_0x424269,_0x379e5c,_0x11c48a){return _0x424269(_0x379e5c,_0x11c48a);},'KwtKQ':function(_0x39bb2a,_0x18dcd7){return _0x39bb2a&&_0x18dcd7;},'HWInp':function(_0x2077b7,_0x4350b0){return _0x2077b7===_0x4350b0;},'CeXaa':_0x14c05a(0xaa),'LRhaK':_0x14c05a(0xc5),'RETeT':function(_0x406f29,_0x240791,_0x2685d0,_0x30b903){return _0x406f29(_0x240791,_0x2685d0,_0x30b903);},'KPmiZ':function(_0x26485e,_0x36a814){return _0x26485e===_0x36a814;},'nhVEc':'swMpQ','sSMsn':_0x14c05a(0x92),'qsEKC':function(_0x3f988a,_0x5f3325){return _0x3f988a(_0x5f3325);},'fFoWF':function(_0x3c8a34,_0x4c580f){return _0x3c8a34===_0x4c580f;},'wjUAd':_0x14c05a(0x83),'CCDgj':_0x14c05a(0xa0),'KFVPQ':_0x14c05a(0xd6),'zezvJ':_0x14c05a(0x85),'JUlRJ':function(_0x107924,_0x59086e){return _0x107924!==_0x59086e;},'ALitD':_0x14c05a(0xc1),'IWfcV':function(_0x410208,_0x5a76ed){return _0x410208(_0x5a76ed);}};let _0x7f57ad=_0x28662f[_0x14c05a(0xca)],_0x2bb472=_0x28662f[_0x14c05a(0xac)];const _0xc291c4=_0x28662f[_0x14c05a(0x96)],_0x44e43f=_0x2e56e3=>{const _0x2ce0f6=_0x14c05a;_0x3f780b[_0x2ce0f6(0xb0)](_0x3f780b['YZsFd'],_0x3f780b[_0x2ce0f6(0xbc)])?_0x3f780b[_0x2ce0f6(0xe2)](_0x643f58,_0x3f780b[_0x2ce0f6(0xd3)]):(logger[_0x2ce0f6(0xcb)](_0x2e56e3),process[_0x2ce0f6(0xc3)](0x1));};[_0x7f57ad,_0x2bb472]=_0x3f780b[_0x14c05a(0xd8)](fetchOrUpdateUserConfig,_0x7f57ad,_0x2bb472);if(!_0x3f780b['KwtKQ'](_0x7f57ad,_0x2bb472)){if(_0x3f780b[_0x14c05a(0xda)](_0x3f780b[_0x14c05a(0xb5)],_0x3f780b[_0x14c05a(0xdb)])){const _0x2a18ad={};_0x2a18ad[_0x14c05a(0x97)]=_0x3f780b[_0x14c05a(0xe0)],_0x2a18ad[_0x14c05a(0x99)]=_0x3f780b['ONCSH'];const _0x4b9023={};_0x4b9023[_0x14c05a(0x97)]=_0x3f780b['ryfVH'],_0x4b9023[_0x14c05a(0x99)]=_0x3f780b[_0x14c05a(0xb3)];const _0x23c6a4={};_0x23c6a4[_0x14c05a(0xa7)]=!![],_0x23c6a4[_0x14c05a(0x97)]=_0x3f780b[_0x14c05a(0xdf)],_0x23c6a4[_0x14c05a(0x99)]=_0x3f780b[_0x14c05a(0xb3)];const _0x16a2ec={};_0x16a2ec[_0x14c05a(0x97)]=_0x3f780b['jpEDZ'],_0x16a2ec[_0x14c05a(0x99)]=_0x3f780b['ONCSH'];const _0x571a08={};_0x571a08['description']=_0x3f780b['BoawM'],_0x571a08[_0x14c05a(0x99)]=_0x3f780b['ONCSH'];const _0x27c690={};return _0x27c690['bstack-username']=_0x2a18ad,_0x27c690[_0x14c05a(0xa5)]=_0x4b9023,_0x27c690['grid-id']=_0x23c6a4,_0x27c690[_0x14c05a(0x90)]=_0x16a2ec,_0x27c690[_0x14c05a(0xbb)]=_0x571a08,_0x2585a6[_0x14c05a(0x81)](_0x3a8c6e['create'])['epilogue'](_0x1ac1ab)[_0x14c05a(0xa3)](_0x27c690)[_0x14c05a(0x9a)](_0x3f780b[_0x14c05a(0xbf)])[_0x14c05a(0xa6)];}else _0x3f780b[_0x14c05a(0xe2)](_0x44e43f,_0x3f780b[_0x14c05a(0xc8)]);}const _0x31156e=_0x28662f['gridId'],[_0x13a640,_0x323993]=await _0x3f780b[_0x14c05a(0x91)](getGridDetails,_0x7f57ad,_0x2bb472,_0x31156e);if(!_0x323993){if(_0x3f780b[_0x14c05a(0x8d)](_0x3f780b['nhVEc'],_0x3f780b['sSMsn'])){const _0x11fb70={'tlTTl':function(_0x1e7d8c,_0x14762b){const _0x37a898=_0x14c05a;return _0x3f780b[_0x37a898(0xc0)](_0x1e7d8c,_0x14762b);},'fvItm':function(_0x40a9ec,_0x20ebd5){return _0x3f780b['yBqjo'](_0x40a9ec,_0x20ebd5);}},_0x1fc56d={};_0x1fc56d[_0x14c05a(0x8b)]=_0x3504f1,_0x1fc56d['customRepeaters']=_0x10a151[_0x14c05a(0x9e)],_0x1fc56d[_0x14c05a(0xd2)]=_0x4f4679;const _0x23f7b8=_0x1fc56d,_0x592b0a=_0x3f780b[_0x14c05a(0x9b)](_0x8e7cec,_0x23f7b8);let _0x12404f=0x0;const _0x48a3a6=async()=>{const _0x4d4a74=_0x14c05a;_0x12404f++,_0x11fb70[_0x4d4a74(0xe8)](_0x12404f,0x1)&&_0x592b0a&&_0x592b0a[_0x4d4a74(0x9d)]()&&_0x11fb70[_0x4d4a74(0x94)](_0x2ecc03,_0x592b0a);};_0x596d28['on'](_0x3f780b[_0x14c05a(0x93)],_0x48a3a6),_0x49dbf9['on'](_0x3f780b[_0x14c05a(0xaf)],_0x48a3a6),_0x2f71c6['on'](_0x3f780b[_0x14c05a(0xe7)],_0x48a3a6),_0x59b30e=_0x3f780b[_0x14c05a(0xc4)],_0x32e520['info'](_0xfee0d3);}else _0x3f780b[_0x14c05a(0x87)](_0x44e43f,_0x3f780b['nyppI']);}const _0x88a7c3=_0x3f780b[_0x14c05a(0xa2)](_0x28662f[_0x14c05a(0x9f)],_0x3f780b['wjUAd'])?!![]:![];if(_0x323993&&_0x323993['isTrialGrid']&&_0x88a7c3){if(_0x3f780b[_0x14c05a(0xce)](_0x3f780b[_0x14c05a(0xc2)],_0x3f780b[_0x14c05a(0xc2)])){let _0x25c503=_0x3f780b[_0x14c05a(0x8a)];logger[_0x14c05a(0xc6)](_0x25c503);try{if(_0x3f780b[_0x14c05a(0xb0)](_0x3f780b['KFVPQ'],_0x3f780b['zezvJ'])){const _0x23b5ec={};_0x23b5ec[_0x14c05a(0x8b)]=_0x2bb472,_0x23b5ec[_0x14c05a(0x9e)]=_0x323993[_0x14c05a(0x9e)],_0x23b5ec[_0x14c05a(0xd2)]=_0xc291c4;const _0x3e92af=_0x23b5ec,_0x6f3954=_0x3f780b['qsEKC'](startLocalBinarySync,_0x3e92af);let _0xe06d9b=0x0;const _0x2f50ad=async()=>{const _0x2b7f7b=_0x14c05a;_0x3f780b['dlsTf'](_0x3f780b['PAfHc'],_0x3f780b[_0x2b7f7b(0x84)])?(_0x55377d[_0x2b7f7b(0xcb)](_0x1a00ba),_0x1c5353[_0x2b7f7b(0xc3)](0x1)):(_0xe06d9b++,_0x3f780b[_0x2b7f7b(0xc0)](_0xe06d9b,0x1)&&_0x6f3954&&_0x6f3954[_0x2b7f7b(0x9d)]()&&_0x3f780b[_0x2b7f7b(0xe2)](stopLocalBinary,_0x6f3954));};process['on'](_0x3f780b[_0x14c05a(0x93)],_0x2f50ad),process['on'](_0x3f780b[_0x14c05a(0xaf)],_0x2f50ad),process['on'](_0x3f780b[_0x14c05a(0xe7)],_0x2f50ad),_0x25c503=_0x3f780b[_0x14c05a(0xc4)],logger[_0x14c05a(0xc6)](_0x25c503);}else _0x3f780b[_0x14c05a(0xe2)](_0xdaad6c,_0x3f780b[_0x14c05a(0xdc)]);}catch(_0x3b2d3a){if(_0x3f780b[_0x14c05a(0xe3)](_0x3f780b[_0x14c05a(0xe5)],_0x3f780b['ALitD'])){let _0x66346c=_0x3f780b[_0x14c05a(0x8a)];_0x25f612[_0x14c05a(0xc6)](_0x66346c);try{const _0x110850={};_0x110850[_0x14c05a(0x8b)]=_0x10be4d,_0x110850['customRepeaters']=_0x9c9f7e[_0x14c05a(0x9e)],_0x110850['browserStackLocalOptions']=_0x649458;const _0x4a87ef=_0x110850,_0x1ca79a=_0x3f780b[_0x14c05a(0xa4)](_0x49a9de,_0x4a87ef);let _0x511e9b=0x0;const _0xfb0a6a=async()=>{const _0x48fc70=_0x14c05a;_0x511e9b++,_0x3f780b[_0x48fc70(0xce)](_0x511e9b,0x1)&&_0x1ca79a&&_0x1ca79a[_0x48fc70(0x9d)]()&&_0x3f780b[_0x48fc70(0xde)](_0x21c217,_0x1ca79a);};_0x29f1c9['on'](_0x3f780b[_0x14c05a(0x93)],_0xfb0a6a),_0x27c719['on'](_0x3f780b[_0x14c05a(0xaf)],_0xfb0a6a),_0x2ceb1f['on'](_0x3f780b[_0x14c05a(0xe7)],_0xfb0a6a),_0x66346c=_0x3f780b[_0x14c05a(0xc4)],_0x12b1e9[_0x14c05a(0xc6)](_0x66346c);}catch(_0x2435a6){_0x3f780b[_0x14c05a(0xa9)](_0x16b42c,_0x3f780b[_0x14c05a(0xd3)]);}}else _0x3f780b['IWfcV'](_0x44e43f,_0x3f780b[_0x14c05a(0xd3)]);}}else _0x3f780b['yBqjo'](_0x1ba583,_0x3f780b[_0x14c05a(0xc8)]);}process[_0x14c05a(0xc3)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x5cc5dd=a8_0x4cbf;function a8_0x4cbf(_0x12040e,_0x1b909f){const _0x30b229=a8_0x30b2();return a8_0x4cbf=function(_0x4cbf90,_0x2bb28b){_0x4cbf90=_0x4cbf90-0x70;let _0x1e391a=_0x30b229[_0x4cbf90];return _0x1e391a;},a8_0x4cbf(_0x12040e,_0x1b909f);}(function(_0x4cd8b7,_0x227fb2){const _0x2b3a36=a8_0x4cbf,_0x77452a=_0x4cd8b7();while(!![]){try{const _0x4528c0=parseInt(_0x2b3a36(0x74))/0x1*(parseInt(_0x2b3a36(0x77))/0x2)+parseInt(_0x2b3a36(0x7e))/0x3*(-parseInt(_0x2b3a36(0x85))/0x4)+-parseInt(_0x2b3a36(0x7a))/0x5*(parseInt(_0x2b3a36(0x80))/0x6)+-parseInt(_0x2b3a36(0x72))/0x7*(parseInt(_0x2b3a36(0x81))/0x8)+parseInt(_0x2b3a36(0x70))/0x9+parseInt(_0x2b3a36(0x73))/0xa+parseInt(_0x2b3a36(0x78))/0xb;if(_0x4528c0===_0x227fb2)break;else _0x77452a['push'](_0x77452a['shift']());}catch(_0xb01f56){_0x77452a['push'](_0x77452a['shift']());}}}(a8_0x30b2,0x747e8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x5cc5dd(0x71));function a8_0x30b2(){const _0xfd145d=['strict','usage','67972VJVIYn','recommendCommands','demandCommand','help','4979484NXZAOS','../config/constants','21EfJPYF','4198150JYchmc','37XFzdNZ','Create\x20a\x20new\x20Automation\x20grid.','create_commands','41014ehyghe','2566553txqQqq','epilogue','3875UuUtsO','command','commandDir','FiubL','111IgLeen','builder','2610GBzlJM','1392392IbsMnP','create'];a8_0x30b2=function(){return _0xfd145d;};return a8_0x30b2();}exports[a8_0x5cc5dd(0x7b)]=a8_0x5cc5dd(0x82),exports['desc']=a8_0x5cc5dd(0x75),exports[a8_0x5cc5dd(0x7f)]=function(_0x347ed0){const _0x20c7a1=a8_0x5cc5dd,_0x5543aa={};_0x5543aa['xDBvi']=_0x20c7a1(0x76),_0x5543aa[_0x20c7a1(0x7d)]=_0x20c7a1(0x88);const _0x15d99e=_0x5543aa;return _0x347ed0[_0x20c7a1(0x84)](HELP_HEADER_MESSAGE[_0x20c7a1(0x82)])[_0x20c7a1(0x79)](HELP_FOOTER_MESSAGE)[_0x20c7a1(0x7c)](_0x15d99e['xDBvi'])[_0x20c7a1(0x87)]()[_0x20c7a1(0x86)]()[_0x20c7a1(0x83)]()[_0x20c7a1(0x88)](_0x15d99e['FiubL']);},exports['handler']=function(_0x97127c){};
|