browserstack-node-sdk 1.34.48 → 1.34.50
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/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.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/permissions/AWS.json +85 -0
- package/ats/src/permissions/AZURE.json +33 -0
- package/ats/src/permissions/GCP.json +19 -0
- 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/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.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/metadata.js +1 -0
- 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/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.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
|
-
const a79_0x18eb8c=a79_0x2c47;function a79_0x2c47(_0x45f8f1,_0x32f302){const _0x572df6=a79_0x572d();return a79_0x2c47=function(_0x2c4755,_0x4e27f6){_0x2c4755=_0x2c4755-0xa5;let _0x1cc4d7=_0x572df6[_0x2c4755];return _0x1cc4d7;},a79_0x2c47(_0x45f8f1,_0x32f302);}(function(_0x153fa9,_0x9d17de){const _0x5c6989=a79_0x2c47,_0x1514a3=_0x153fa9();while(!![]){try{const _0x28bea8=-parseInt(_0x5c6989(0x134))/0x1*(-parseInt(_0x5c6989(0x143))/0x2)+parseInt(_0x5c6989(0xd6))/0x3*(-parseInt(_0x5c6989(0x122))/0x4)+-parseInt(_0x5c6989(0xf5))/0x5+-parseInt(_0x5c6989(0xad))/0x6*(-parseInt(_0x5c6989(0xbc))/0x7)+-parseInt(_0x5c6989(0x110))/0x8*(-parseInt(_0x5c6989(0xdf))/0x9)+parseInt(_0x5c6989(0x108))/0xa+parseInt(_0x5c6989(0xcb))/0xb*(-parseInt(_0x5c6989(0xeb))/0xc);if(_0x28bea8===_0x9d17de)break;else _0x1514a3['push'](_0x1514a3['shift']());}catch(_0x234892){_0x1514a3['push'](_0x1514a3['shift']());}}}(a79_0x572d,0x2c06e));const fs=require('fs'),fsPromise=require(a79_0x18eb8c(0xc2)),{performance,PerformanceObserver}=require(a79_0x18eb8c(0xe1)),path=require(a79_0x18eb8c(0xde)),util=require(a79_0x18eb8c(0x107)),logger=require('../logger')[a79_0x18eb8c(0x10d)],{getProcessId,sleep,debug,getTestName}=require(a79_0x18eb8c(0xd1));class PerformanceTester{static [a79_0x18eb8c(0x140)];static ['_events']=[];static ['_measureEvents']=[];static [a79_0x18eb8c(0x12b)]=[];static [a79_0x18eb8c(0x12d)]=![];static [a79_0x18eb8c(0x100)]=a79_0x18eb8c(0x11a);static [a79_0x18eb8c(0x144)]=process[a79_0x18eb8c(0xda)]['browserStackCwd']?path['join'](process[a79_0x18eb8c(0xda)][a79_0x18eb8c(0xb3)],this[a79_0x18eb8c(0x100)]):path[a79_0x18eb8c(0x11d)](process[a79_0x18eb8c(0x12e)](),a79_0x18eb8c(0x125),this['jsonReportDirName']);static ['errorReportDirName']=process[a79_0x18eb8c(0xda)]['browserStackCwd']?path[a79_0x18eb8c(0x11d)](process['env'][a79_0x18eb8c(0xb3)],'error-report'):path['join'](process[a79_0x18eb8c(0x12e)](),a79_0x18eb8c(0xf6));static ['jsonReportFileName']=this[a79_0x18eb8c(0x144)]+a79_0x18eb8c(0x12c)+getProcessId()+a79_0x18eb8c(0x145);static [a79_0x18eb8c(0xbe)]=this[a79_0x18eb8c(0xa7)]+a79_0x18eb8c(0xe5)+getProcessId()+'.json';static [a79_0x18eb8c(0x133)]={};static [a79_0x18eb8c(0xc0)]={};static[a79_0x18eb8c(0x126)](_0x2c5ed1=this['jsonReportDirPath']+a79_0x18eb8c(0x12c)+getProcessId()+a79_0x18eb8c(0x145),_0x40ef04=this[a79_0x18eb8c(0xa7)]+'/error-report-'+getProcessId()+a79_0x18eb8c(0x145)){const _0x4f830b=a79_0x18eb8c,_0x403651={};_0x403651[_0x4f830b(0x118)]=function(_0x60bcd1,_0x597da6){return _0x60bcd1===_0x597da6;},_0x403651[_0x4f830b(0xee)]=_0x4f830b(0xf9),_0x403651[_0x4f830b(0x10f)]=function(_0x27f6f6,_0xa1c985){return _0x27f6f6+_0xa1c985;},_0x403651[_0x4f830b(0xab)]=_0x4f830b(0xdb),_0x403651[_0x4f830b(0x141)]=_0x4f830b(0xc8);const _0x12ec9b=_0x403651;try{!fs[_0x4f830b(0xfa)](this[_0x4f830b(0x144)])&&fs[_0x4f830b(0xd3)](this[_0x4f830b(0x144)]);}catch(_0xc00024){logger[_0x4f830b(0xb7)](_0x12ec9b['ozBrP'](_0x12ec9b[_0x4f830b(0xab)],_0xc00024));}if(this[_0x4f830b(0x12d)]||!this[_0x4f830b(0xd2)]())return;this[_0x4f830b(0x140)]=new PerformanceObserver(_0x35976c=>{const _0x29db7c=_0x4f830b;_0x35976c[_0x29db7c(0xfb)]()[_0x29db7c(0xaa)](_0x2eb9d0=>{const _0x46d763=_0x29db7c;if(_0x12ec9b[_0x46d763(0x118)](_0x2eb9d0[_0x46d763(0xa6)],_0x12ec9b['JVlsr'])){let _0x2fb746={};if(_0x2eb9d0['toJSON'])_0x2fb746=_0x2eb9d0[_0x46d763(0xc1)]();else for(const _0x2498ce in _0x2eb9d0){_0x2fb746[_0x2498ce]=_0x2eb9d0[_0x2498ce];}this[_0x46d763(0x133)][_0x2eb9d0[_0x46d763(0xd8)]]&&(_0x2fb746=Object['assign'](_0x2fb746,this['details'][_0x2eb9d0[_0x46d763(0xd8)]])),delete this['details'][_0x2eb9d0['name']],this[_0x46d763(0xcd)][_0x46d763(0xd9)](_0x2fb746);}else this['_events'][_0x46d763(0xd9)](_0x2eb9d0);});});const _0x421ab6={};_0x421ab6[_0x4f830b(0xd5)]=!![],_0x421ab6[_0x4f830b(0x121)]=[_0x12ec9b[_0x4f830b(0x141)],_0x12ec9b[_0x4f830b(0xee)]],this[_0x4f830b(0x140)][_0x4f830b(0x103)](_0x421ab6),this[_0x4f830b(0x12d)]=!![],this[_0x4f830b(0xe2)]=_0x2c5ed1,this[_0x4f830b(0xbe)]=_0x40ef04;}static[a79_0x18eb8c(0xf2)](){return performance;}static[a79_0x18eb8c(0xbf)](_0xdca4f9,_0x1e59a3){const _0x794e0e=a79_0x18eb8c,_0xacb32={};_0xacb32[_0x794e0e(0x127)]=function(_0x2d94ce,_0x46b9d5){return _0x2d94ce+_0x46b9d5;},_0xacb32[_0x794e0e(0x105)]=function(_0xaf7f4b,_0xc2a17c){return _0xaf7f4b||_0xc2a17c;},_0xacb32[_0x794e0e(0xfd)]=function(_0x4c5100,_0xd2a3ee){return _0x4c5100===_0xd2a3ee;};const _0xb100b3=_0xacb32,_0x443d32={};if(!_0xdca4f9||_0xb100b3[_0x794e0e(0xfd)](_0xdca4f9[_0x794e0e(0x120)],0x0))return;_0xdca4f9[_0x794e0e(0xe8)](_0x276c68=>{const _0x29113d=_0x794e0e;!_0x443d32[_0x276c68['name']]&&(_0x443d32[_0x276c68[_0x29113d(0xd8)]]=0x0),_0x443d32[_0x276c68[_0x29113d(0xd8)]]+=_0x276c68['duration'];});const _0x434efd=_0x1e59a3[_0x794e0e(0x106)]((_0x2a380f,_0x139ed3)=>{const _0x5eafa5=_0x794e0e;return _0xb100b3['TaKOr'](_0x443d32[_0x139ed3],_0xb100b3[_0x5eafa5(0x105)](_0x2a380f,0x0));},0x0);return _0x434efd;}static async['calculateTimesFromMultipleFiles'](_0x4914b4,_0x2e4501){const _0x58cf24=a79_0x18eb8c,_0x34105e={'lhcHZ':function(_0x4a8335,_0x18c913){return _0x4a8335+_0x18c913;},'SAUDS':function(_0x32c4ab,_0x451263){return _0x32c4ab||_0x451263;},'oFNMr':function(_0x2cb90a,_0x4a6cfa){return _0x2cb90a===_0x4a6cfa;},'QIleQ':function(_0x19dfc2,_0x9ccdba){return _0x19dfc2(_0x9ccdba);},'hURVw':function(_0x1bb559,_0x5523ab){return _0x1bb559(_0x5523ab);}};if(!_0x4914b4||_0x34105e[_0x58cf24(0x137)](_0x4914b4[_0x58cf24(0x120)],0x0))return 0x0;const _0x820ed=[];for(const _0x1443bd of _0x4914b4){const _0x19a75d=path[_0x58cf24(0x11d)]('.',_0x1443bd);try{const _0xa59d62=this[_0x58cf24(0xf7)](_0x19a75d);_0xa59d62[_0x58cf24(0xe8)](_0x13fa8a=>{const _0x1d1b3a=_0x58cf24;!_0x820ed[_0x13fa8a['name']]&&(_0x820ed[_0x13fa8a[_0x1d1b3a(0xd8)]]=0x0),_0x820ed[_0x13fa8a[_0x1d1b3a(0xd8)]]+=_0x13fa8a[_0x1d1b3a(0xf0)];});}catch(_0x1f40a6){_0x34105e[_0x58cf24(0x138)](debug,_0x58cf24(0xef)+_0x1f40a6[_0x58cf24(0xb8)]());}}const _0x511515=_0x2e4501[_0x58cf24(0x106)]((_0x522a43,_0x1b9f94)=>{const _0x2ebf36=_0x58cf24;return _0x34105e[_0x2ebf36(0x135)](_0x820ed[_0x1b9f94],_0x34105e[_0x2ebf36(0x13b)](_0x522a43,0x0));},0x0);return _0x34105e[_0x58cf24(0xed)](debug,'Time\x20for\x20'+_0x2e4501+_0x58cf24(0xb2)+_0x511515),_0x511515;}static[a79_0x18eb8c(0xf7)](_0x1ce650){const _0x4f9c19=a79_0x18eb8c;if(!fs[_0x4f9c19(0xfa)](_0x1ce650))return[];return JSON['parse'](fs[_0x4f9c19(0xca)](_0x1ce650)['toString']());}static async[a79_0x18eb8c(0xac)](_0x3ec90d=a79_0x18eb8c(0xa9),_0x420f88=null){const _0x2e0e8b=a79_0x18eb8c,_0x14024f={'Znlzr':function(_0x317485,_0x280599){return _0x317485(_0x280599);},'VDFus':function(_0x3ec022,_0xbcae11){return _0x3ec022(_0xbcae11);}};if(!this['started'])return;await _0x14024f[_0x2e0e8b(0xc4)](sleep,0x1e),this[_0x2e0e8b(0x140)]['disconnect'](),this[_0x2e0e8b(0x12d)]=![],this[_0x2e0e8b(0xcf)](this[_0x2e0e8b(0x11e)]);const _0x5b0b1d=this[_0x2e0e8b(0x101)](this[_0x2e0e8b(0x11e)]),_0x3d60fa=path['join'](process['cwd'](),_0x3ec90d);fs[_0x2e0e8b(0x13a)](_0x3d60fa,_0x5b0b1d,_0x35db4d=>{const _0x24c768=_0x2e0e8b;if(_0x35db4d){_0x14024f[_0x24c768(0x116)](debug,_0x24c768(0x124)+_0x35db4d[_0x24c768(0xb8)]());return;}_0x14024f[_0x24c768(0x116)](debug,_0x24c768(0xbd)+_0x3d60fa);});if(_0x420f88)return this[_0x2e0e8b(0xbf)](this['_events'],_0x420f88);}static[a79_0x18eb8c(0x101)](_0x395877){const _0x3b9710=a79_0x18eb8c,_0x1b0f9d={};_0x1b0f9d['sPOYI']=_0x3b9710(0x117),_0x1b0f9d[_0x3b9710(0x13c)]='<h1>Performance\x20Report</h1>',_0x1b0f9d['rUcBM']='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x1b0f9d['pnclF']=_0x3b9710(0xd4);const _0x9bf64a=_0x1b0f9d;let _0x310d53=_0x9bf64a['sPOYI'];return _0x310d53+=_0x9bf64a[_0x3b9710(0x13c)],_0x310d53+=_0x9bf64a['rUcBM'],_0x395877[_0x3b9710(0xaa)](_0x35f891=>{const _0x52d715=_0x3b9710;_0x310d53+=_0x52d715(0x109)+_0x35f891['name']+_0x52d715(0xae)+_0x35f891[_0x52d715(0xf0)]+'</td></tr>';}),_0x310d53+=_0x9bf64a['pnclF'],_0x310d53;}static[a79_0x18eb8c(0xcf)](_0x313537){const _0x16fdde=a79_0x18eb8c;if(!this[_0x16fdde(0xe2)])return;const _0xf95e34={};_0x313537[_0x16fdde(0xe8)](_0x432ecd=>{const _0x1c3852=_0x16fdde;!_0xf95e34[_0x432ecd[_0x1c3852(0xd8)]]&&(_0xf95e34[_0x432ecd[_0x1c3852(0xd8)]]=0x0),_0xf95e34[_0x432ecd[_0x1c3852(0xd8)]]+=_0x432ecd['duration'];});const _0x416e3c=Object[_0x16fdde(0x123)](_0xf95e34)['map'](([_0x38c03b,_0x29b3ee])=>{const _0x239faa=_0x16fdde,_0x29d17e={};return _0x29d17e[_0x239faa(0xd8)]=_0x38c03b,_0x29d17e['duration']=_0x29b3ee,_0x29d17e;});fs['writeFileSync'](this[_0x16fdde(0xe2)],JSON[_0x16fdde(0x11b)](_0x416e3c));}static[a79_0x18eb8c(0xd2)](){const _0x3897f6=a79_0x18eb8c,_0x5e3282={};_0x5e3282[_0x3897f6(0xb1)]=function(_0x47db12,_0x31af43){return _0x47db12===_0x31af43;},_0x5e3282[_0x3897f6(0xf1)]='false';const _0x47e2dc=_0x5e3282;return!_0x47e2dc[_0x3897f6(0xb1)](process[_0x3897f6(0xda)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x47e2dc[_0x3897f6(0xf1)]);}static[a79_0x18eb8c(0xf9)](_0x337300,_0x52ee6b,_0x55adfc=null,_0x1cd767={},_0x5001f0=null){const _0x3fc07b=a79_0x18eb8c,_0x33f23a={'vkLXu':function(_0x11f80d,_0x58b435){return _0x11f80d(_0x58b435);},'ujOyu':function(_0x156cbb,_0x21f3fb){return _0x156cbb instanceof _0x21f3fb;}};try{if(this[_0x3fc07b(0x12d)]&&this[_0x3fc07b(0xd2)]()){let _0x3679b0=_0x337300;_0x55adfc&&(_0x3679b0=_0x337300+'['+JSON[_0x3fc07b(0x11b)](_0x55adfc)+']');PerformanceTester['start'](_0x3679b0),this[_0x3fc07b(0x133)]&&(this['details'][_0x3679b0]=_0x1cd767);try{const _0xffc177=_0x52ee6b[_0x3fc07b(0xba)](null,_0x5001f0);if(_0x33f23a['ujOyu'](_0xffc177,Promise))return new Promise((_0x1d4e7c,_0x1a3846)=>{const _0x410c92=_0x3fc07b;_0xffc177[_0x410c92(0x114)](_0x221e6d=>{const _0x4428c7=_0x410c92;PerformanceTester[_0x4428c7(0x13f)](_0x3679b0),_0x33f23a['vkLXu'](_0x1d4e7c,_0x221e6d);})[_0x410c92(0x136)](_0x51e589=>{const _0x37aa54=_0x410c92;PerformanceTester[_0x37aa54(0x13f)](_0x3679b0,![],util[_0x37aa54(0xe3)](_0x51e589)),_0x33f23a[_0x37aa54(0x13e)](_0x1a3846,_0x51e589);});});;return PerformanceTester['end'](_0x3679b0),_0xffc177;}catch(_0x5d4a7f){PerformanceTester[_0x3fc07b(0x13f)](_0x3679b0,![],util['format'](_0x5d4a7f));throw _0x5d4a7f;}};return _0x52ee6b[_0x3fc07b(0xba)](null,_0x5001f0);}catch(_0x228d58){return _0x52ee6b['apply'](null,_0x5001f0);}}static[a79_0x18eb8c(0xb6)](_0x23a61b,_0x51d38e,_0x242d7b={}){const _0xabf618=a79_0x18eb8c,_0x48e2b9={'IMdBG':function(_0x3e9789){return _0x3e9789();}},_0xfc6394=this;return _0x242d7b[_0xabf618(0xc9)]=_0x48e2b9[_0xabf618(0xc5)](getProcessId),_0x242d7b[_0xabf618(0xf8)]=_0x48e2b9[_0xabf618(0xc5)](getTestName),_0x242d7b['platform']=global[_0xabf618(0x10e)]&&global[_0xabf618(0x10e)][_0xabf618(0x10a)],function(){const _0x471516=_0xabf618,_0x5e44cc=[_0x23a61b,_0x51d38e,null,_0x242d7b][_0x471516(0x11c)](arguments);return _0xfc6394[_0x471516(0xf9)][_0x471516(0xba)](_0xfc6394,_0x5e44cc);};}static[a79_0x18eb8c(0x104)](){const _0xcd5c9d=a79_0x18eb8c,_0x2d716c=/(^.*)\[(.*)\]$/,_0xd26f39={},_0x321d58={},_0x108027=[],_0x318aec=this[_0xcd5c9d(0xcd)][_0xcd5c9d(0xfe)](0x0,this[_0xcd5c9d(0xcd)][_0xcd5c9d(0x120)]);for(const _0x1b6950 of _0x318aec){const _0x4e1524=_0x1b6950[_0xcd5c9d(0xd8)][_0xcd5c9d(0xf4)](_0x2d716c),_0x516843=Object[_0xcd5c9d(0x129)]({},_0x1b6950);_0x4e1524&&(_0x516843[_0xcd5c9d(0xd8)]=_0x4e1524[0x1],_0x516843[_0xcd5c9d(0x128)]=JSON[_0xcd5c9d(0xec)](_0x4e1524[0x2])),_0x108027['push'](_0x516843);}return _0x108027;}static[a79_0x18eb8c(0xdd)](){const _0x2ff13c=a79_0x18eb8c,_0x4b546d={};_0x4b546d[_0x2ff13c(0x10b)]=function(_0x1acebe,_0x2b7e0e){return _0x1acebe+_0x2b7e0e;},_0x4b546d['lVNJs']='Error\x20while\x20removing\x20files:\x20',_0x4b546d[_0x2ff13c(0xdc)]=function(_0x5f0cff,_0x2684d7){return _0x5f0cff===_0x2684d7;};const _0x20f903=_0x4b546d;try{if(fs['existsSync'](this['jsonReportDirPath'])){const _0x3e907c=fs[_0x2ff13c(0xe9)](this[_0x2ff13c(0x144)]);for(const _0x3a8d29 of _0x3e907c){fs['unlinkSync'](path[_0x2ff13c(0x11d)](this[_0x2ff13c(0x144)],_0x3a8d29));}}}catch(_0x31c185){logger[_0x2ff13c(0xb7)](_0x20f903[_0x2ff13c(0x10b)](_0x20f903[_0x2ff13c(0x11f)],_0x31c185));}if(_0x20f903[_0x2ff13c(0xdc)](this[_0x2ff13c(0xcd)]['length'],0x0))return;const _0x1951e3=this[_0x2ff13c(0x104)](),_0x2fdfbb=JSON[_0x2ff13c(0x11b)](_0x1951e3),_0x53e70f=_0x20f903[_0x2ff13c(0x10b)](_0x2fdfbb[_0x2ff13c(0xb5)](0x1,-0x1),',');fs[_0x2ff13c(0xc7)](this['jsonReportFileName'],_0x53e70f);}static async[a79_0x18eb8c(0xea)](){const _0x2e1675=a79_0x18eb8c,_0x448747={};_0x448747[_0x2e1675(0x112)]=function(_0x3ebded,_0x329648){return _0x3ebded===_0x329648;},_0x448747['Hgoqj']=function(_0x3e442a,_0xe31c1c){return _0x3e442a>_0xe31c1c;};const _0x47934d=_0x448747;if(!this[_0x2e1675(0x12d)]||_0x47934d[_0x2e1675(0x112)](this[_0x2e1675(0xcd)][_0x2e1675(0x120)],0x0))return[];if(!fs[_0x2e1675(0xfa)](this['jsonReportDirPath']))return this[_0x2e1675(0xcd)];const _0x2ea7bd=(await fsPromise[_0x2e1675(0x132)](this['jsonReportDirPath']))['map'](_0x20f04c=>path[_0x2e1675(0x130)](this[_0x2e1675(0x144)],_0x20f04c));let _0x3656c7=(await Promise['all'](_0x2ea7bd['map'](_0x2fb19e=>fsPromise[_0x2e1675(0x12a)](_0x2fb19e,'utf-8'))))[_0x2e1675(0xe8)](_0x438138=>'['+_0x438138[_0x2e1675(0xb5)](0x0,-0x1)+']')[_0x2e1675(0xe8)](_0x32d097=>JSON[_0x2e1675(0xec)](_0x32d097))['flat']();return _0x47934d['Hgoqj'](this[_0x2e1675(0xcd)][_0x2e1675(0x120)],0x0)&&(_0x3656c7=_0x3656c7[_0x2e1675(0x11c)](this[_0x2e1675(0x104)]())),this['_observer'][_0x2e1675(0x115)](),_0x3656c7;}static[a79_0x18eb8c(0x13d)](){const _0x1fa1e2=a79_0x18eb8c,_0x2ee54e={};_0x2ee54e[_0x1fa1e2(0xb4)]=function(_0x20c64f,_0x3914e0){return _0x20c64f===_0x3914e0;},_0x2ee54e[_0x1fa1e2(0xa5)]=function(_0x47aa7d,_0x207a25){return _0x47aa7d+_0x207a25;};const _0x221ef5=_0x2ee54e;if(_0x221ef5[_0x1fa1e2(0xb4)](this[_0x1fa1e2(0x12b)]['length'],0x0))return;const _0x1a669f=JSON[_0x1fa1e2(0x11b)](this[_0x1fa1e2(0x12b)]),_0x364eed=_0x221ef5[_0x1fa1e2(0xa5)](_0x1a669f[_0x1fa1e2(0xb5)](0x1,-0x1),',');fs['appendFileSync'](this[_0x1fa1e2(0xbb)],_0x364eed);}static['finalizeErrors'](){const _0x30dccc=a79_0x18eb8c,_0x26a02b={};_0x26a02b[_0x30dccc(0xa8)]=function(_0x5af83c,_0x5dea02){return _0x5af83c>_0x5dea02;};const _0x31a4f1=_0x26a02b;if(!fs[_0x30dccc(0xfa)](this[_0x30dccc(0xbe)]))return this[_0x30dccc(0x12b)];let _0x5ae5fe=fs['readFileSync'](this[_0x30dccc(0xbe)])[_0x30dccc(0xb8)]();_0x5ae5fe='['+_0x5ae5fe[_0x30dccc(0xb5)](0x0,-0x1)+']';let _0x514115=JSON[_0x30dccc(0xec)](_0x5ae5fe);return _0x31a4f1[_0x30dccc(0xa8)](this[_0x30dccc(0x12b)][_0x30dccc(0x120)],0x0)&&(_0x514115=_0x514115[_0x30dccc(0x11c)](this['_errorEvents'])),fs[_0x30dccc(0x139)](this[_0x30dccc(0xbe)]),_0x514115;}static[a79_0x18eb8c(0xce)](_0x57402e){const _0x3a99d4=a79_0x18eb8c;if(!this[_0x3a99d4(0xd2)]())return;this[_0x3a99d4(0x12b)][_0x3a99d4(0xd9)]({'message':_0x57402e['message'],'trace':_0x57402e[_0x3a99d4(0xff)],'code':_0x57402e[_0x3a99d4(0xd0)]||null,'time':new Date()});}static[a79_0x18eb8c(0x102)](){const _0x583f80=a79_0x18eb8c;try{if(!this[_0x583f80(0xd2)]())return;this[_0x583f80(0x140)][_0x583f80(0x115)](),this[_0x583f80(0xdd)](),this[_0x583f80(0x13d)]();}catch(_0x5b4c4f){logger[_0x583f80(0xb7)](_0x583f80(0xd7)+util[_0x583f80(0xe3)](_0x5b4c4f));}}static async[a79_0x18eb8c(0xaf)](){const _0x28324c=a79_0x18eb8c,_0x35f28c={'qOeQr':function(_0x214321,_0x3c6580){return _0x214321(_0x3c6580);}};await _0x35f28c[_0x28324c(0xe4)](sleep,0x1e);const _0x5ac077=await this[_0x28324c(0xea)](),_0x4cbaf5=this[_0x28324c(0xc6)]();if(!this[_0x28324c(0xd2)]()){const _0x47403c={};return _0x47403c[_0x28324c(0x142)]=[],_0x47403c[_0x28324c(0x111)]=[],_0x47403c;}const _0x5c0ec2={};return _0x5c0ec2['measures']=_0x5ac077,_0x5c0ec2[_0x28324c(0x111)]=_0x4cbaf5,_0x5c0ec2;}static[a79_0x18eb8c(0xc3)](_0xba8477){const _0x490715=a79_0x18eb8c,_0x47fa1a={};_0x47fa1a[_0x490715(0xb9)]=function(_0xc5add1,_0x50809e){return _0xc5add1+_0x50809e;},_0x47fa1a[_0x490715(0x113)]='-start';const _0x2b6309=_0x47fa1a,_0x239e6e=_0x2b6309[_0x490715(0xb9)](_0xba8477,_0x2b6309[_0x490715(0x113)]);if(this[_0x490715(0xc0)][_0x239e6e])return;performance[_0x490715(0xf3)](_0x239e6e),this[_0x490715(0xc0)][_0x239e6e]=0x1;}static[a79_0x18eb8c(0x13f)](_0x35c8a2,_0x37b29e=!![],_0x960d79=null,_0x398fd3={}){const _0x27bbf8=a79_0x18eb8c,_0x229b3={'vRhPz':function(_0xfe7d81,_0x283ef0){return _0xfe7d81+_0x283ef0;},'HagUn':_0x27bbf8(0xe7),'pILES':'-start','BHgse':function(_0x53aaeb,_0x5e7f7f){return _0x53aaeb+_0x5e7f7f;},'qODGs':function(_0x277998){return _0x277998();},'UOUEP':function(_0xcafa95){return _0xcafa95();}};performance[_0x27bbf8(0xf3)](_0x229b3[_0x27bbf8(0x131)](_0x35c8a2,_0x229b3['HagUn'])),performance[_0x27bbf8(0xf9)](_0x35c8a2,_0x229b3[_0x27bbf8(0x131)](_0x35c8a2,_0x229b3[_0x27bbf8(0x119)]),_0x229b3[_0x27bbf8(0xcc)](_0x35c8a2,_0x229b3[_0x27bbf8(0xb0)]));const _0x599fed={};_0x599fed[_0x27bbf8(0x12f)]=_0x37b29e,_0x599fed[_0x27bbf8(0xfc)]=_0x960d79,this[_0x27bbf8(0x133)][_0x35c8a2]=Object['assign'](_0x599fed,Object[_0x27bbf8(0x129)](Object[_0x27bbf8(0x129)]({'worker':_0x229b3[_0x27bbf8(0xe0)](getProcessId),'platform':global[_0x27bbf8(0x10e)]&&global[_0x27bbf8(0x10e)]['index'],'testName':_0x229b3[_0x27bbf8(0x10c)](getTestName)},_0x398fd3),this[_0x27bbf8(0x133)][_0x35c8a2]||{}));}}function a79_0x572d(){const _0x579bd1=['IMdBG','finalizeErrors','appendFileSync','function','worker','readFileSync','44iOBPBq','BHgse','_measureEvents','captureError','generateJSON','code','../processHelper','isEnabled','mkdirSync','</tbody></table></body></html>','buffered','591unoogt','Error\x20stopping\x20monitoring\x20','name','push','env','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','LYGbN','pushPerfMeasures','path','9rCJqXx','qODGs','perf_hooks','jsonReportFileName','format','qOeQr','/error-report-','exports','-end','map','readdirSync','finalizePerfMeasures','1986636QKfePc','parse','hURVw','JVlsr','Error\x20in\x20doing\x20csv\x20operations:\x20','duration','vktEG','getPerformance','mark','match','559255fgOjny','error-report','getEventsFromJSON','testName','measure','existsSync','getEntries','failure','MvcHN','splice','stack','jsonReportDirName','generateHTMLReport','stopMonitoring','observe','getCleanedPerfEvents','RecEk','reduce','util','3011870nqITGA','<tr><td>','index','Gxikq','UOUEP','winstonLogger','__platformCaps','ozBrP','2744968XcvCqF','errors','Rmutb','BDVbU','then','disconnect','Znlzr','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','kKMDl','pILES','performance-report','stringify','concat','join','_events','lVNJs','length','entryTypes','1516SYoLOS','entries','Error\x20in\x20writing\x20html\x20','log','startMonitoring','TaKOr','meta','assign','readFile','_errorEvents','/performance-report-','started','cwd','success','resolve','vRhPz','readdir','details','30232gWqPhV','lhcHZ','catch','oFNMr','QIleQ','unlinkSync','writeFile','SAUDS','DgUTG','pushErrors','vkLXu','end','_observer','yTOZG','measures','10fVvTXR','jsonReportDirPath','.json','XkETC','entryType','errorReportDirName','IIapj','performance-own.html','forEach','ARiam','stopAndGenerate','72YHilyc','</td><td>','finalize','HagUn','YZTDu','\x20for\x20all\x20processes\x20is\x20','browserStackCwd','QwQtw','slice','measureWrapper','debug','toString','nlmpn','apply','errorFile','136262MwgYup','Performance\x20report\x20is\x20at\x20','errorReportFileName','calculateTimeFromEvents','eventsMap','toJSON','fs/promises','start','VDFus'];a79_0x572d=function(){return _0x579bd1;};return a79_0x572d();}module[a79_0x18eb8c(0xe6)]=PerformanceTester;
|
|
1
|
+
const a80_0x42a82a=a80_0x58f3;function a80_0x58f3(_0x6f2916,_0x37ee0e){const _0x421b34=a80_0x421b();return a80_0x58f3=function(_0x58f393,_0x4a2379){_0x58f393=_0x58f393-0xc7;let _0x5eda34=_0x421b34[_0x58f393];return _0x5eda34;},a80_0x58f3(_0x6f2916,_0x37ee0e);}(function(_0x40b011,_0x40f998){const _0x130516=a80_0x58f3,_0x379de9=_0x40b011();while(!![]){try{const _0x1c5516=-parseInt(_0x130516(0x15d))/0x1*(-parseInt(_0x130516(0xe8))/0x2)+-parseInt(_0x130516(0x136))/0x3+-parseInt(_0x130516(0xdd))/0x4+parseInt(_0x130516(0x142))/0x5+-parseInt(_0x130516(0x13d))/0x6*(parseInt(_0x130516(0x13b))/0x7)+-parseInt(_0x130516(0xcb))/0x8+parseInt(_0x130516(0xd8))/0x9;if(_0x1c5516===_0x40f998)break;else _0x379de9['push'](_0x379de9['shift']());}catch(_0x39acaa){_0x379de9['push'](_0x379de9['shift']());}}}(a80_0x421b,0xc0731));function a80_0x421b(){const _0x26bb99=['Performance\x20report\x20is\x20at\x20','__platformCaps','Error\x20while\x20removing\x20files:\x20','name','entryTypes','pDzhi','mjSlq','measures','FckQg','winstonLogger','pushPerfMeasures','gJdva','FIVkV','.json','parse','finalizePerfMeasures','disconnect','end','writeFile','stopMonitoring','buffered','resolve','stringify','code','push','wBqhO','dxtAt','join','index','_measureEvents','function','reduce','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','CyTZx','ndKWR','readdirSync','assign','UBMrP','captureError','WQHZl','errors','getCleanedPerfEvents','\x20for\x20all\x20processes\x20is\x20','<tr><td>','cwd','MfDHU','entryType','IjlZF','finalizeErrors','929883BwaxRf','measure','unlinkSync','browserStackCwd','performance-report','7Woeqym','QkvVp','43422JYpheE','HdWMV','vjxqY','mkdirSync','CVgAi','6611995OaXjYN','errorFile','debug','readFileSync','MmCPx','flat','finalize','existsSync','meta','msisG','jCDhw','LrbkH','platform','VDXxm','YYHXQ','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','isEnabled','utVVt','BROWSERSTACK_SDK_INSTRUMENTATION','all','env','Time\x20for\x20','then','Wgiie','path','jsonReportFileName','errorReportDirName','1wPxkia','BFMRr','Error\x20in\x20writing\x20html\x20','eventsMap','dBWJr','fs/promises','getEventsFromJSON','readFile','observe','DaWIx','DksFN','../logger','stopAndGenerate','9024408vZulEd','appendFileSync','slice','WDwRc','stack','readdir','XQYaI','_events','perf_hooks','concat','jsonReportDirPath','forEach','calculateTimeFromEvents','11884212gQkxkn','failure','format','generateJSON','success','5512360YXqOWp','DXuCI','hpnsW','toString','writeFileSync','map','mark','apply','start','vgYIS','/performance-report-','1937490vSxNbG','calculateTimesFromMultipleFiles','getPerformance','error-report','generateHTMLReport','_errorEvents','_observer','SAXFb','bQsRX','jujRs','IIufd','log','catch','details','<h1>Performance\x20Report</h1>','length','utf-8','-end','errorReportFileName','started','jsonReportDirName','uAHvo','match','-start','Error\x20in\x20doing\x20csv\x20operations:\x20','../processHelper','kzPNf','duration','pushErrors'];a80_0x421b=function(){return _0x26bb99;};return a80_0x421b();}const fs=require('fs'),fsPromise=require(a80_0x42a82a(0x162)),{performance,PerformanceObserver}=require(a80_0x42a82a(0xd3)),path=require(a80_0x42a82a(0x15a)),util=require('util'),logger=require(a80_0x42a82a(0xc9))[a80_0x42a82a(0x10e)],{getProcessId,sleep,debug,getTestName}=require(a80_0x42a82a(0x101));class PerformanceTester{static [a80_0x42a82a(0xee)];static [a80_0x42a82a(0xd2)]=[];static [a80_0x42a82a(0x122)]=[];static [a80_0x42a82a(0xed)]=[];static [a80_0x42a82a(0xfb)]=![];static [a80_0x42a82a(0xfc)]=a80_0x42a82a(0x13a);static [a80_0x42a82a(0xd5)]=process[a80_0x42a82a(0x156)]['browserStackCwd']?path[a80_0x42a82a(0x120)](process[a80_0x42a82a(0x156)][a80_0x42a82a(0x139)],this[a80_0x42a82a(0xfc)]):path[a80_0x42a82a(0x120)](process[a80_0x42a82a(0x131)](),a80_0x42a82a(0xf3),this[a80_0x42a82a(0xfc)]);static [a80_0x42a82a(0x15c)]=process[a80_0x42a82a(0x156)][a80_0x42a82a(0x139)]?path[a80_0x42a82a(0x120)](process[a80_0x42a82a(0x156)]['browserStackCwd'],a80_0x42a82a(0xeb)):path[a80_0x42a82a(0x120)](process[a80_0x42a82a(0x131)](),a80_0x42a82a(0xeb));static [a80_0x42a82a(0x15b)]=this[a80_0x42a82a(0xd5)]+a80_0x42a82a(0xe7)+getProcessId()+a80_0x42a82a(0x112);static [a80_0x42a82a(0xfa)]=this[a80_0x42a82a(0x15c)]+'/error-report-'+getProcessId()+a80_0x42a82a(0x112);static [a80_0x42a82a(0xf5)]={};static [a80_0x42a82a(0x160)]={};static['startMonitoring'](_0x1e1bcc=this[a80_0x42a82a(0xd5)]+a80_0x42a82a(0xe7)+getProcessId()+a80_0x42a82a(0x112),_0x1b0959=this[a80_0x42a82a(0x15c)]+'/error-report-'+getProcessId()+'.json'){const _0x187e2f=a80_0x42a82a,_0x53cbdd={};_0x53cbdd['YYHXQ']=function(_0x157fa8,_0x4323ad){return _0x157fa8===_0x4323ad;},_0x53cbdd[_0x187e2f(0x141)]='measure',_0x53cbdd[_0x187e2f(0xf2)]=function(_0x2face0,_0x32eff7){return _0x2face0+_0x32eff7;},_0x53cbdd[_0x187e2f(0xef)]=_0x187e2f(0x151),_0x53cbdd[_0x187e2f(0x102)]=_0x187e2f(0x123);const _0x232129=_0x53cbdd;try{!fs[_0x187e2f(0x149)](this[_0x187e2f(0xd5)])&&fs[_0x187e2f(0x140)](this[_0x187e2f(0xd5)]);}catch(_0x2eb925){logger[_0x187e2f(0x144)](_0x232129[_0x187e2f(0xf2)](_0x232129[_0x187e2f(0xef)],_0x2eb925));}if(this[_0x187e2f(0xfb)]||!this[_0x187e2f(0x152)]())return;this[_0x187e2f(0xee)]=new PerformanceObserver(_0x13c870=>{const _0x4cb30b=_0x187e2f,_0x5bfff1={'kGKnB':function(_0x3fbfdd,_0x48a06b){const _0xd2503b=a80_0x58f3;return _0x232129[_0xd2503b(0x150)](_0x3fbfdd,_0x48a06b);},'IjlZF':_0x232129[_0x4cb30b(0x141)]};_0x13c870['getEntries']()[_0x4cb30b(0xd6)](_0x2ddf37=>{const _0x4324bc=_0x4cb30b;if(_0x5bfff1['kGKnB'](_0x2ddf37[_0x4324bc(0x133)],_0x5bfff1[_0x4324bc(0x134)])){let _0x508153={};if(_0x2ddf37['toJSON'])_0x508153=_0x2ddf37['toJSON']();else for(const _0x330301 in _0x2ddf37){_0x508153[_0x330301]=_0x2ddf37[_0x330301];}this['details'][_0x2ddf37[_0x4324bc(0x108)]]&&(_0x508153=Object[_0x4324bc(0x129)](_0x508153,this[_0x4324bc(0xf5)][_0x2ddf37[_0x4324bc(0x108)]])),delete this['details'][_0x2ddf37['name']],this[_0x4324bc(0x122)][_0x4324bc(0x11d)](_0x508153);}else this[_0x4324bc(0xd2)]['push'](_0x2ddf37);});});const _0x24fad4={};_0x24fad4[_0x187e2f(0x119)]=!![],_0x24fad4[_0x187e2f(0x109)]=[_0x232129['kzPNf'],_0x232129[_0x187e2f(0x141)]],this['_observer'][_0x187e2f(0x165)](_0x24fad4),this[_0x187e2f(0xfb)]=!![],this[_0x187e2f(0x15b)]=_0x1e1bcc,this[_0x187e2f(0xfa)]=_0x1b0959;}static[a80_0x42a82a(0xea)](){return performance;}static[a80_0x42a82a(0xd7)](_0x55482d,_0x17515d){const _0x2f845f=a80_0x42a82a,_0x586da4={};_0x586da4[_0x2f845f(0xc8)]=function(_0x27f01a,_0x3d0e9e){return _0x27f01a+_0x3d0e9e;},_0x586da4[_0x2f845f(0x11f)]=function(_0xe775fd,_0x884216){return _0xe775fd||_0x884216;},_0x586da4[_0x2f845f(0xde)]=function(_0x59ce1c,_0x3b5f98){return _0x59ce1c===_0x3b5f98;};const _0x27a2fa=_0x586da4,_0x375bde={};if(!_0x55482d||_0x27a2fa[_0x2f845f(0xde)](_0x55482d[_0x2f845f(0xf7)],0x0))return;_0x55482d[_0x2f845f(0xe2)](_0x214112=>{const _0x4704ad=_0x2f845f;!_0x375bde[_0x214112['name']]&&(_0x375bde[_0x214112[_0x4704ad(0x108)]]=0x0),_0x375bde[_0x214112[_0x4704ad(0x108)]]+=_0x214112['duration'];});const _0x4acd9e=_0x17515d[_0x2f845f(0x124)]((_0xae8c81,_0x4ce34d)=>{const _0x10d167=_0x2f845f;return _0x27a2fa[_0x10d167(0xc8)](_0x375bde[_0x4ce34d],_0x27a2fa[_0x10d167(0x11f)](_0xae8c81,0x0));},0x0);return _0x4acd9e;}static async[a80_0x42a82a(0xe9)](_0x326b2b,_0x2fb24d){const _0x336fb8=a80_0x42a82a,_0x356e0c={'ouXAq':function(_0x5e6691,_0x54a0bd){return _0x5e6691+_0x54a0bd;},'FckQg':function(_0x2b0bc2,_0x22c5bb){return _0x2b0bc2||_0x22c5bb;},'MmCPx':function(_0x23f286,_0x196b44){return _0x23f286===_0x196b44;},'uAHvo':function(_0xbcc9b3,_0x5e43cc){return _0xbcc9b3(_0x5e43cc);},'FIVkV':function(_0x4112b2,_0x990542){return _0x4112b2(_0x990542);}};if(!_0x326b2b||_0x356e0c[_0x336fb8(0x146)](_0x326b2b['length'],0x0))return 0x0;const _0x19e45b=[];for(const _0x4c4e76 of _0x326b2b){const _0x5c2afc=path[_0x336fb8(0x120)]('.',_0x4c4e76);try{const _0xdf5731=this[_0x336fb8(0x163)](_0x5c2afc);_0xdf5731['map'](_0x47710c=>{const _0x34e905=_0x336fb8;!_0x19e45b[_0x47710c[_0x34e905(0x108)]]&&(_0x19e45b[_0x47710c['name']]=0x0),_0x19e45b[_0x47710c[_0x34e905(0x108)]]+=_0x47710c[_0x34e905(0x103)];});}catch(_0x5e8a9e){_0x356e0c[_0x336fb8(0xfd)](debug,_0x336fb8(0x100)+_0x5e8a9e[_0x336fb8(0xe0)]());}}const _0x5dfa18=_0x2fb24d[_0x336fb8(0x124)]((_0x2954f9,_0x51467d)=>{const _0x364157=_0x336fb8;return _0x356e0c['ouXAq'](_0x19e45b[_0x51467d],_0x356e0c[_0x364157(0x10d)](_0x2954f9,0x0));},0x0);return _0x356e0c[_0x336fb8(0x111)](debug,_0x336fb8(0x157)+_0x2fb24d+_0x336fb8(0x12f)+_0x5dfa18),_0x5dfa18;}static[a80_0x42a82a(0x163)](_0x1eb780){const _0x19b594=a80_0x42a82a;if(!fs['existsSync'](_0x1eb780))return[];return JSON[_0x19b594(0x113)](fs[_0x19b594(0x145)](_0x1eb780)[_0x19b594(0xe0)]());}static async[a80_0x42a82a(0xca)](_0x357fb4='performance-own.html',_0x4041bc=null){const _0x2187ad=a80_0x42a82a,_0x37d620={'msisG':function(_0x5d805a,_0x33831f){return _0x5d805a(_0x33831f);},'XBekQ':function(_0x5721d3,_0x3ecbcc){return _0x5721d3(_0x3ecbcc);}};if(!this[_0x2187ad(0xfb)])return;await _0x37d620[_0x2187ad(0x14b)](sleep,0x1e),this[_0x2187ad(0xee)]['disconnect'](),this[_0x2187ad(0xfb)]=![],this['generateJSON'](this[_0x2187ad(0xd2)]);const _0x3eaaa8=this[_0x2187ad(0xec)](this[_0x2187ad(0xd2)]),_0x45b725=path[_0x2187ad(0x120)](process[_0x2187ad(0x131)](),_0x357fb4);fs[_0x2187ad(0x117)](_0x45b725,_0x3eaaa8,_0xf708e4=>{const _0x9e3537=_0x2187ad;if(_0xf708e4){_0x37d620[_0x9e3537(0x14b)](debug,_0x9e3537(0x15f)+_0xf708e4['toString']());return;}_0x37d620['XBekQ'](debug,_0x9e3537(0x105)+_0x45b725);});if(_0x4041bc)return this[_0x2187ad(0xd7)](this[_0x2187ad(0xd2)],_0x4041bc);}static[a80_0x42a82a(0xec)](_0x53ef63){const _0xa923c0=a80_0x42a82a,_0x2e716b={};_0x2e716b['dBWJr']='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x2e716b['utVVt']=_0xa923c0(0xf6),_0x2e716b[_0xa923c0(0x110)]=_0xa923c0(0x125),_0x2e716b[_0xa923c0(0xdf)]='</tbody></table></body></html>';const _0x3f122e=_0x2e716b;let _0x2bbd43=_0x3f122e[_0xa923c0(0x161)];return _0x2bbd43+=_0x3f122e[_0xa923c0(0x153)],_0x2bbd43+=_0x3f122e[_0xa923c0(0x110)],_0x53ef63[_0xa923c0(0xd6)](_0x593e7b=>{const _0x2d3f28=_0xa923c0;_0x2bbd43+=_0x2d3f28(0x130)+_0x593e7b[_0x2d3f28(0x108)]+'</td><td>'+_0x593e7b[_0x2d3f28(0x103)]+'</td></tr>';}),_0x2bbd43+=_0x3f122e[_0xa923c0(0xdf)],_0x2bbd43;}static[a80_0x42a82a(0xdb)](_0x190490){const _0x536f=a80_0x42a82a;if(!this[_0x536f(0x15b)])return;const _0x2385f5={};_0x190490[_0x536f(0xe2)](_0x2e711e=>{const _0x3e45d7=_0x536f;!_0x2385f5[_0x2e711e[_0x3e45d7(0x108)]]&&(_0x2385f5[_0x2e711e[_0x3e45d7(0x108)]]=0x0),_0x2385f5[_0x2e711e[_0x3e45d7(0x108)]]+=_0x2e711e['duration'];});const _0x3d835a=Object['entries'](_0x2385f5)['map'](([_0x4b1a20,_0x4f2d36])=>{const _0xcecc4d=_0x536f,_0x5b3fd2={};return _0x5b3fd2[_0xcecc4d(0x108)]=_0x4b1a20,_0x5b3fd2[_0xcecc4d(0x103)]=_0x4f2d36,_0x5b3fd2;});fs[_0x536f(0xe1)](this[_0x536f(0x15b)],JSON[_0x536f(0x11b)](_0x3d835a));}static[a80_0x42a82a(0x152)](){const _0x1e4652=a80_0x42a82a,_0x34c998={};_0x34c998[_0x1e4652(0x13c)]=function(_0x493d40,_0x424ab9){return _0x493d40===_0x424ab9;},_0x34c998[_0x1e4652(0x12a)]='false';const _0x5626b9=_0x34c998;return!_0x5626b9[_0x1e4652(0x13c)](process[_0x1e4652(0x156)][_0x1e4652(0x154)],_0x5626b9[_0x1e4652(0x12a)]);}static[a80_0x42a82a(0x137)](_0x3d32a9,_0x46e8d0,_0x42b58a=null,_0x55ad26={},_0x2eccf9=null){const _0x3300ed=a80_0x42a82a,_0x1cd90d={'HdWMV':function(_0x3500dc,_0x1c8407){return _0x3500dc(_0x1c8407);},'NUuGr':function(_0x8b393,_0x2c6620){return _0x8b393(_0x2c6620);},'WQHZl':function(_0x16d335,_0x19e2fc){return _0x16d335 instanceof _0x19e2fc;}};try{if(this[_0x3300ed(0xfb)]&&this[_0x3300ed(0x152)]()){let _0x240394=_0x3d32a9;_0x42b58a&&(_0x240394=_0x3d32a9+'['+JSON[_0x3300ed(0x11b)](_0x42b58a)+']');PerformanceTester[_0x3300ed(0xe5)](_0x240394),this[_0x3300ed(0xf5)]&&(this['details'][_0x240394]=_0x55ad26);try{const _0x2abddc=_0x46e8d0['apply'](null,_0x2eccf9);if(_0x1cd90d[_0x3300ed(0x12c)](_0x2abddc,Promise))return new Promise((_0x52f560,_0x4a6f6f)=>{const _0x4f1825=_0x3300ed,_0x48ec80={'vjxqY':function(_0x45f190,_0x458d77){return _0x1cd90d['NUuGr'](_0x45f190,_0x458d77);}};_0x2abddc[_0x4f1825(0x158)](_0x5b9bee=>{const _0x4cb7ab=_0x4f1825;PerformanceTester[_0x4cb7ab(0x116)](_0x240394),_0x48ec80[_0x4cb7ab(0x13f)](_0x52f560,_0x5b9bee);})[_0x4f1825(0xf4)](_0x2de91e=>{const _0x4e35f2=_0x4f1825;PerformanceTester[_0x4e35f2(0x116)](_0x240394,![],util[_0x4e35f2(0xda)](_0x2de91e)),_0x1cd90d[_0x4e35f2(0x13e)](_0x4a6f6f,_0x2de91e);});});;return PerformanceTester[_0x3300ed(0x116)](_0x240394),_0x2abddc;}catch(_0x5da32d){PerformanceTester[_0x3300ed(0x116)](_0x240394,![],util[_0x3300ed(0xda)](_0x5da32d));throw _0x5da32d;}};return _0x46e8d0[_0x3300ed(0xe4)](null,_0x2eccf9);}catch(_0x14bcab){return _0x46e8d0[_0x3300ed(0xe4)](null,_0x2eccf9);}}static['measureWrapper'](_0x48a2d5,_0x3a142,_0x1ce80a={}){const _0x4d5b76=a80_0x42a82a,_0x5104c8={'jujRs':function(_0x4a5b36){return _0x4a5b36();},'jCDhw':function(_0x29e41b){return _0x29e41b();}},_0x1e0014=this;return _0x1ce80a['worker']=_0x5104c8[_0x4d5b76(0xf1)](getProcessId),_0x1ce80a['testName']=_0x5104c8[_0x4d5b76(0x14c)](getTestName),_0x1ce80a[_0x4d5b76(0x14e)]=global[_0x4d5b76(0x106)]&&global[_0x4d5b76(0x106)]['index'],function(){const _0x4984c6=_0x4d5b76,_0x1c6bdb=[_0x48a2d5,_0x3a142,null,_0x1ce80a][_0x4984c6(0xd4)](arguments);return _0x1e0014['measure']['apply'](_0x1e0014,_0x1c6bdb);};}static['getCleanedPerfEvents'](){const _0x3afe9a=a80_0x42a82a,_0x1eae5c=/(^.*)\[(.*)\]$/,_0x2770d4={},_0x4fb46b={},_0x5dbd12=[],_0x412650=this[_0x3afe9a(0x122)]['splice'](0x0,this[_0x3afe9a(0x122)][_0x3afe9a(0xf7)]);for(const _0x2d7402 of _0x412650){const _0x3e5792=_0x2d7402[_0x3afe9a(0x108)][_0x3afe9a(0xfe)](_0x1eae5c),_0x4eced1=Object[_0x3afe9a(0x129)]({},_0x2d7402);_0x3e5792&&(_0x4eced1[_0x3afe9a(0x108)]=_0x3e5792[0x1],_0x4eced1[_0x3afe9a(0x14a)]=JSON['parse'](_0x3e5792[0x2])),_0x5dbd12['push'](_0x4eced1);}return _0x5dbd12;}static[a80_0x42a82a(0x10f)](){const _0x41ff40=a80_0x42a82a,_0x5d0794={};_0x5d0794[_0x41ff40(0x14f)]=function(_0x45b5db,_0x4cd73d){return _0x45b5db+_0x4cd73d;},_0x5d0794[_0x41ff40(0x11e)]=_0x41ff40(0x107),_0x5d0794['XQYaI']=function(_0x5cdd9e,_0x4ea6fc){return _0x5cdd9e===_0x4ea6fc;};const _0x28f7fc=_0x5d0794;try{if(fs['existsSync'](this['jsonReportDirPath'])){const _0x305d30=fs[_0x41ff40(0x128)](this[_0x41ff40(0xd5)]);for(const _0xf63f99 of _0x305d30){fs[_0x41ff40(0x138)](path[_0x41ff40(0x120)](this['jsonReportDirPath'],_0xf63f99));}}}catch(_0x355cfa){logger[_0x41ff40(0x144)](_0x28f7fc[_0x41ff40(0x14f)](_0x28f7fc[_0x41ff40(0x11e)],_0x355cfa));}if(_0x28f7fc[_0x41ff40(0xd1)](this[_0x41ff40(0x122)][_0x41ff40(0xf7)],0x0))return;const _0x1083e0=this[_0x41ff40(0x12e)](),_0x11dc14=JSON[_0x41ff40(0x11b)](_0x1083e0),_0x53ea55=_0x28f7fc[_0x41ff40(0x14f)](_0x11dc14[_0x41ff40(0xcd)](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x53ea55);}static async[a80_0x42a82a(0x114)](){const _0x1e527d=a80_0x42a82a,_0x37cbad={};_0x37cbad[_0x1e527d(0x10a)]=function(_0x23f2c3,_0x188fcb){return _0x23f2c3===_0x188fcb;},_0x37cbad[_0x1e527d(0xce)]=function(_0x2be5f5,_0x44c873){return _0x2be5f5>_0x44c873;};const _0xa1abf6=_0x37cbad;if(!this['started']||_0xa1abf6[_0x1e527d(0x10a)](this[_0x1e527d(0x122)][_0x1e527d(0xf7)],0x0))return[];if(!fs['existsSync'](this[_0x1e527d(0xd5)]))return this[_0x1e527d(0x122)];const _0x5240f2=(await fsPromise[_0x1e527d(0xd0)](this[_0x1e527d(0xd5)]))['map'](_0x3a937f=>path[_0x1e527d(0x11a)](this[_0x1e527d(0xd5)],_0x3a937f));let _0x201c92=(await Promise[_0x1e527d(0x155)](_0x5240f2['map'](_0x108457=>fsPromise[_0x1e527d(0x164)](_0x108457,_0x1e527d(0xf8)))))[_0x1e527d(0xe2)](_0x3b8131=>'['+_0x3b8131[_0x1e527d(0xcd)](0x0,-0x1)+']')[_0x1e527d(0xe2)](_0x17eb77=>JSON[_0x1e527d(0x113)](_0x17eb77))[_0x1e527d(0x147)]();return _0xa1abf6[_0x1e527d(0xce)](this[_0x1e527d(0x122)][_0x1e527d(0xf7)],0x0)&&(_0x201c92=_0x201c92['concat'](this[_0x1e527d(0x12e)]())),this[_0x1e527d(0xee)][_0x1e527d(0x115)](),_0x201c92;}static[a80_0x42a82a(0x104)](){const _0x5270e7=a80_0x42a82a,_0x5e986e={};_0x5e986e[_0x5270e7(0x14d)]=function(_0x8f1865,_0x3d62ca){return _0x8f1865===_0x3d62ca;},_0x5e986e[_0x5270e7(0x132)]=function(_0x11b734,_0x5c43ec){return _0x11b734+_0x5c43ec;};const _0x3179a1=_0x5e986e;if(_0x3179a1[_0x5270e7(0x14d)](this[_0x5270e7(0xed)]['length'],0x0))return;const _0x1fe1c0=JSON[_0x5270e7(0x11b)](this[_0x5270e7(0xed)]),_0x4bba97=_0x3179a1[_0x5270e7(0x132)](_0x1fe1c0[_0x5270e7(0xcd)](0x1,-0x1),',');fs[_0x5270e7(0xcc)](this[_0x5270e7(0x143)],_0x4bba97);}static['finalizeErrors'](){const _0x4222fb=a80_0x42a82a,_0x23a25d={};_0x23a25d[_0x4222fb(0xc7)]=function(_0x5a4edb,_0x21a772){return _0x5a4edb>_0x21a772;};const _0x452a13=_0x23a25d;if(!fs[_0x4222fb(0x149)](this[_0x4222fb(0xfa)]))return this[_0x4222fb(0xed)];let _0x3642fb=fs[_0x4222fb(0x145)](this[_0x4222fb(0xfa)])['toString']();_0x3642fb='['+_0x3642fb[_0x4222fb(0xcd)](0x0,-0x1)+']';let _0x583e8b=JSON[_0x4222fb(0x113)](_0x3642fb);return _0x452a13['DaWIx'](this['_errorEvents'][_0x4222fb(0xf7)],0x0)&&(_0x583e8b=_0x583e8b[_0x4222fb(0xd4)](this[_0x4222fb(0xed)])),fs[_0x4222fb(0x138)](this['errorReportFileName']),_0x583e8b;}static[a80_0x42a82a(0x12b)](_0x489ab2){const _0x3599d6=a80_0x42a82a;if(!this[_0x3599d6(0x152)]())return;this[_0x3599d6(0xed)][_0x3599d6(0x11d)]({'message':_0x489ab2['message'],'trace':_0x489ab2[_0x3599d6(0xcf)],'code':_0x489ab2[_0x3599d6(0x11c)]||null,'time':new Date()});}static[a80_0x42a82a(0x118)](){const _0x1c7143=a80_0x42a82a;try{if(!this[_0x1c7143(0x152)]())return;this[_0x1c7143(0xee)][_0x1c7143(0x115)](),this[_0x1c7143(0x10f)](),this[_0x1c7143(0x104)]();}catch(_0x39abce){logger[_0x1c7143(0x144)]('Error\x20stopping\x20monitoring\x20'+util['format'](_0x39abce));}}static async[a80_0x42a82a(0x148)](){const _0x57f1a0=a80_0x42a82a,_0x3b165c={'mjSlq':function(_0x30242b,_0x36cd54){return _0x30242b(_0x36cd54);}};await _0x3b165c[_0x57f1a0(0x10b)](sleep,0x1e);const _0x4cbde5=await this[_0x57f1a0(0x114)](),_0x35a651=this[_0x57f1a0(0x135)]();if(!this[_0x57f1a0(0x152)]()){const _0x206835={};return _0x206835[_0x57f1a0(0x10c)]=[],_0x206835['errors']=[],_0x206835;}const _0x2064cc={};return _0x2064cc[_0x57f1a0(0x10c)]=_0x4cbde5,_0x2064cc[_0x57f1a0(0x12d)]=_0x35a651,_0x2064cc;}static[a80_0x42a82a(0xe5)](_0x5140f8){const _0x4601a1=a80_0x42a82a,_0x48ac86={};_0x48ac86[_0x4601a1(0xe6)]=function(_0x395877,_0x1bd334){return _0x395877+_0x1bd334;},_0x48ac86[_0x4601a1(0x159)]=_0x4601a1(0xff);const _0x258ffa=_0x48ac86,_0xb2a337=_0x258ffa[_0x4601a1(0xe6)](_0x5140f8,_0x258ffa[_0x4601a1(0x159)]);if(this[_0x4601a1(0x160)][_0xb2a337])return;performance['mark'](_0xb2a337),this['eventsMap'][_0xb2a337]=0x1;}static[a80_0x42a82a(0x116)](_0x2d4358,_0x1e8568=!![],_0x36528b=null,_0x56f8e6={}){const _0x3afb91=a80_0x42a82a,_0x38097c={'CyTZx':function(_0x407d67,_0x15bcc2){return _0x407d67+_0x15bcc2;},'sguiD':_0x3afb91(0xf9),'bQsRX':function(_0x32871e,_0x2e8774){return _0x32871e+_0x2e8774;},'WoTve':_0x3afb91(0xff),'ndKWR':function(_0x4bf873,_0x55df1b){return _0x4bf873+_0x55df1b;},'BFMRr':function(_0x4a2946){return _0x4a2946();},'kEhEw':function(_0x6e99ba){return _0x6e99ba();}};performance[_0x3afb91(0xe3)](_0x38097c[_0x3afb91(0x126)](_0x2d4358,_0x38097c['sguiD'])),performance[_0x3afb91(0x137)](_0x2d4358,_0x38097c[_0x3afb91(0xf0)](_0x2d4358,_0x38097c['WoTve']),_0x38097c[_0x3afb91(0x127)](_0x2d4358,_0x38097c['sguiD']));const _0x325f5d={};_0x325f5d[_0x3afb91(0xdc)]=_0x1e8568,_0x325f5d[_0x3afb91(0xd9)]=_0x36528b,this[_0x3afb91(0xf5)][_0x2d4358]=Object['assign'](_0x325f5d,Object[_0x3afb91(0x129)](Object[_0x3afb91(0x129)]({'worker':_0x38097c[_0x3afb91(0x15e)](getProcessId),'platform':global[_0x3afb91(0x106)]&&global[_0x3afb91(0x106)][_0x3afb91(0x121)],'testName':_0x38097c['kEhEw'](getTestName)},_0x56f8e6),this[_0x3afb91(0xf5)][_0x2d4358]||{}));}}module['exports']=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x317ff6=a81_0xc95d;function a81_0x47d5(){const _0x5c9b1a=['./test-observability/constants','toISOString','999nQDYRg','BZZdN','browserstackTestName','true','5cuODdx','275462XWJrOH','401085xdcjKC','250QQVpNQ','threadId','69656McDNDe','5979LbyrOv','pid','getGlobal','log','worker_threads','tzICf','1904660rpLOtr','1156PGFTGC','][\x20OBSERVABILITY\x20]\x20','iRxDS','debug','7927815UytHfI','getProcessId','3105834NAaRFq','getTestName','BROWSERSTACK_OBSERVABILITY_DEBUG'];a81_0x47d5=function(){return _0x5c9b1a;};return a81_0x47d5();}(function(_0x1a0c2a,_0x4a5f28){const _0x1446cb=a81_0xc95d,_0x112210=_0x1a0c2a();while(!![]){try{const _0x2757d2=parseInt(_0x1446cb(0x1ee))/0x1+parseInt(_0x1446cb(0x1f8))/0x2+parseInt(_0x1446cb(0x1f2))/0x3*(parseInt(_0x1446cb(0x1f9))/0x4)+-parseInt(_0x1446cb(0x1ec))/0x5*(parseInt(_0x1446cb(0x1ff))/0x6)+-parseInt(_0x1446cb(0x1fd))/0x7+-parseInt(_0x1446cb(0x1f1))/0x8*(-parseInt(_0x1446cb(0x204))/0x9)+-parseInt(_0x1446cb(0x1ef))/0xa*(parseInt(_0x1446cb(0x1ed))/0xb);if(_0x2757d2===_0x4a5f28)break;else _0x112210['push'](_0x112210['shift']());}catch(_0x49d985){_0x112210['push'](_0x112210['shift']());}}}(a81_0x47d5,0x97473));const worker=require(a81_0x317ff6(0x1f6)),{fileLogger}=require('./logger'),{consoleHolder}=require(a81_0x317ff6(0x202)),globals=require('./globals');function a81_0xc95d(_0x10a38c,_0x42bedb){const _0x47d596=a81_0x47d5();return a81_0xc95d=function(_0xc95de9,_0x48b214){_0xc95de9=_0xc95de9-0x1eb;let _0x262b3c=_0x47d596[_0xc95de9];return _0x262b3c;},a81_0xc95d(_0x10a38c,_0x42bedb);}exports[a81_0x317ff6(0x1fe)]=()=>{const _0x663edc=a81_0x317ff6;return process[_0x663edc(0x1f3)]+'-'+worker[_0x663edc(0x1f0)];},exports[a81_0x317ff6(0x200)]=()=>{const _0x2be9ad=a81_0x317ff6,_0xf17e30={};_0xf17e30[_0x2be9ad(0x1fb)]=_0x2be9ad(0x206);const _0x104832=_0xf17e30;return globals[_0x2be9ad(0x1f4)](_0x104832[_0x2be9ad(0x1fb)]);},exports['sleep']=(_0x7b6f2f=0x64)=>new Promise(_0x320612=>setTimeout(_0x320612,_0x7b6f2f)),exports[a81_0x317ff6(0x1fc)]=_0x4694ab=>{const _0x22a660=a81_0x317ff6,_0x5703ce={};_0x5703ce[_0x22a660(0x1f7)]=function(_0x39be73,_0x202972){return _0x39be73===_0x202972;},_0x5703ce[_0x22a660(0x205)]=_0x22a660(0x1eb);const _0x1d6b00=_0x5703ce;fileLogger[_0x22a660(0x1fc)]('['+new Date()['toISOString']()+_0x22a660(0x1fa)+_0x4694ab),(_0x1d6b00[_0x22a660(0x1f7)](process['env'][_0x22a660(0x201)],_0x1d6b00[_0x22a660(0x205)])||_0x1d6b00['tzICf'](process['env'][_0x22a660(0x201)],'1'))&&consoleHolder[_0x22a660(0x1f5)]('\x0a['+new Date()[_0x22a660(0x203)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x4694ab+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x5464f2=a82_0x1cd5;(function(_0x4efdc6,_0x1d4ab3){const _0x2560f6=a82_0x1cd5,_0x1e144e=_0x4efdc6();while(!![]){try{const _0x17c557=-parseInt(_0x2560f6(0xbc))/0x1+-parseInt(_0x2560f6(0xd0))/0x2+-parseInt(_0x2560f6(0xc9))/0x3*(parseInt(_0x2560f6(0xc3))/0x4)+-parseInt(_0x2560f6(0xb8))/0x5*(parseInt(_0x2560f6(0xcc))/0x6)+parseInt(_0x2560f6(0xce))/0x7+parseInt(_0x2560f6(0xb5))/0x8+parseInt(_0x2560f6(0xbd))/0x9*(parseInt(_0x2560f6(0xe1))/0xa);if(_0x17c557===_0x1d4ab3)break;else _0x1e144e['push'](_0x1e144e['shift']());}catch(_0x98cb75){_0x1e144e['push'](_0x1e144e['shift']());}}}(a82_0x3be5,0x7a019));const http=require(a82_0x5464f2(0xb3)),https=require(a82_0x5464f2(0xc2)),monkeypatch=require('monkeypatch');function a82_0x1cd5(_0x312c5d,_0x3d4eda){const _0x3be5eb=a82_0x3be5();return a82_0x1cd5=function(_0x1cd54f,_0x9ab8c9){_0x1cd54f=_0x1cd54f-0xac;let _0x5c9bc1=_0x3be5eb[_0x1cd54f];return _0x5c9bc1;},a82_0x1cd5(_0x312c5d,_0x3d4eda);}function spy(_0xc3fc05){const _0x2e3695=a82_0x5464f2,_0x1039c9={'mCFqp':function(_0x1ac15b,_0x295d14,_0x437bae){return _0x1ac15b(_0x295d14,_0x437bae);},'gMgkc':'error','FnaRs':function(_0x16d001,..._0x2b380b){return _0x16d001(..._0x2b380b);},'CutYk':function(_0x139385,_0x262baa){return _0x139385 instanceof _0x262baa;},'zbaZv':function(_0x47e6b1,_0x26b431){return _0x47e6b1===_0x26b431;},'ciCHd':_0x2e3695(0xb7),'NsTaz':function(_0xeb75b5,_0x13d86c){return _0xeb75b5-_0x13d86c;},'PwGdd':function(_0x142822,_0x197e31,_0x5cc99a){return _0x142822(_0x197e31,_0x5cc99a);},'EghrL':_0x2e3695(0xd1),'ZfvKy':_0x2e3695(0xb6),'sBTMg':function(_0x291003,_0x7b210a,_0x1906e8,_0x3e7ab1){return _0x291003(_0x7b210a,_0x1906e8,_0x3e7ab1);},'RJaXk':_0x2e3695(0xde),'qCWEa':function(_0x4baa20,_0x267bfe,_0x3fde16,_0x18b1fc){return _0x4baa20(_0x267bfe,_0x3fde16,_0x18b1fc);},'XoyLs':_0x2e3695(0xd8)},_0x66fb33=function(){const _0x23882b=_0x2e3695,_0x27bc6e={'QGGAe':function(_0x5d10b0,_0x3785e9){const _0x5e5c4c=a82_0x1cd5;return _0x1039c9[_0x5e5c4c(0xcf)](_0x5d10b0,_0x3785e9);},'GLfvA':function(_0xac0dc6,_0x47dacc){const _0x2a38e2=a82_0x1cd5;return _0x1039c9[_0x2a38e2(0xc4)](_0xac0dc6,_0x47dacc);},'TxPhu':_0x1039c9[_0x23882b(0xd6)],'annaR':function(_0x2e8b7a,_0x55999b){const _0x3db4d5=_0x23882b;return _0x1039c9[_0x3db4d5(0xbb)](_0x2e8b7a,_0x55999b);},'DbhVt':function(_0x293740,_0x534dbc,_0x382780){const _0x2c2370=_0x23882b;return _0x1039c9[_0x2c2370(0xba)](_0x293740,_0x534dbc,_0x382780);},'EsilU':_0x1039c9[_0x23882b(0xe0)]},_0x203621=arguments[0x0],_0x5a1618=Array[_0x23882b(0xdb)]['slice'][_0x23882b(0xca)](arguments,0x1),_0x891aea=_0x203621[_0x23882b(0xdd)](this,_0x5a1618);let _0x3cbbcf=Date[_0x23882b(0xbf)](),_0x4c1666;const _0x42e780={};_0x5a1618['forEach'](_0x5503ab=>{const _0x8d66ee=_0x23882b;if(_0x27bc6e[_0x8d66ee(0xd5)](_0x5503ab,URL)){const _0x130592={};_0x130592[_0x8d66ee(0xd4)]=_0x5503ab,Object['assign'](_0x42e780,_0x130592);}else _0x27bc6e['GLfvA'](typeof _0x5503ab,_0x27bc6e[_0x8d66ee(0xb0)])&&Object[_0x8d66ee(0xc0)](_0x42e780,_0x5503ab);});const _0x34f774=_0x26b03=>{const _0xb87ea0=_0x23882b,_0x154f09={};_0x154f09[_0xb87ea0(0xcb)]=_0x42e780['host']||_0x42e780[_0xb87ea0(0xb9)]||_0x42e780[_0xb87ea0(0xd4)]&&(_0x42e780[_0xb87ea0(0xd4)][_0xb87ea0(0xcb)]||_0x42e780[_0xb87ea0(0xd4)][_0xb87ea0(0xb9)]),_0x154f09['path']=_0x42e780[_0xb87ea0(0xd7)]||_0x42e780[_0xb87ea0(0xd4)]&&_0x42e780[_0xb87ea0(0xd4)][_0xb87ea0(0xc7)],_0x154f09[_0xb87ea0(0xb4)]=_0x42e780[_0xb87ea0(0xb4)],_0x154f09[_0xb87ea0(0xda)]=_0x42e780['headers'],_0x1039c9[_0xb87ea0(0xb2)](_0xc3fc05,_0x26b03,_0x154f09);};return _0x891aea['once'](_0x1039c9[_0x23882b(0xb1)],_0x3c6eac=>{const _0x423592=_0x23882b,_0x1a3eb6=_0x27bc6e[_0x423592(0xcd)](Date[_0x423592(0xbf)](),_0x3cbbcf),_0x267903={};_0x267903[_0x423592(0xb9)]=_0x42e780[_0x423592(0xcb)]||_0x42e780[_0x423592(0xb9)]||_0x42e780['url']&&(_0x42e780['url'][_0x423592(0xcb)]||_0x42e780[_0x423592(0xd4)][_0x423592(0xb9)]),_0x267903[_0x423592(0xd7)]=_0x42e780['path']||_0x42e780[_0x423592(0xd4)]&&_0x42e780['url'][_0x423592(0xc7)],_0x267903[_0x423592(0xb4)]=_0x42e780[_0x423592(0xb4)],_0x267903[_0x423592(0xda)]=_0x42e780['headers'],_0x267903[_0x423592(0xd2)]=_0x3c6eac['statusCode'],_0x267903[_0x423592(0xc1)]=_0x1a3eb6,_0x27bc6e[_0x423592(0xd3)](_0xc3fc05,null,_0x267903),_0x4c1666[_0x423592(0xc8)](_0x27bc6e['EsilU'],_0x34f774);}),_0x891aea['on'](_0x1039c9[_0x23882b(0xc6)],_0x52897f=>{const _0xa1fcc=_0x23882b;_0x4c1666=_0x52897f,_0x52897f[_0xa1fcc(0xd9)](_0x1039c9[_0xa1fcc(0xe0)],_0x34f774);}),_0x1039c9[_0x23882b(0xdc)](monkeypatch,_0x891aea,_0x1039c9[_0x23882b(0xae)],(_0x34b49f,..._0x493848)=>{const _0x423d17=_0x23882b;_0x3cbbcf=Date[_0x423d17(0xbf)](),_0x1039c9[_0x423d17(0xbe)](_0x34b49f,..._0x493848);}),_0x891aea;};_0x1039c9[_0x2e3695(0xad)](monkeypatch,http,_0x1039c9[_0x2e3695(0xac)],_0x66fb33),_0x1039c9[_0x2e3695(0xad)](monkeypatch,https,_0x1039c9[_0x2e3695(0xac)],_0x66fb33);}function restore(){const _0x437b19=a82_0x5464f2;http['request'][_0x437b19(0xc5)](),https[_0x437b19(0xd8)][_0x437b19(0xc5)]();}function a82_0x3be5(){const _0x1f39a7=['prototype','sBTMg','apply','end','spy','gMgkc','10qbtpxl','XoyLs','qCWEa','RJaXk','restore','TxPhu','EghrL','mCFqp','http','method','1689352AiORBs','socket','object','320535TvXntw','hostname','PwGdd','NsTaz','212952kkCjYi','11321253EqgVPx','FnaRs','now','assign','duration_ms','https','299228iLWZzS','zbaZv','unpatch','ZfvKy','pathname','removeListener','3xqocnJ','call','host','54kOwAdp','annaR','2402043QAXmje','CutYk','895552rOLeoC','response','status_code','DbhVt','url','QGGAe','ciCHd','path','request','once','headers'];a82_0x3be5=function(){return _0x1f39a7;};return a82_0x3be5();}const a82_0x98d12d={};a82_0x98d12d[a82_0x5464f2(0xdf)]=spy,a82_0x98d12d[a82_0x5464f2(0xaf)]=restore,module['exports']=a82_0x98d12d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a83_0x40e1ae=a83_0x2a29;function a83_0x4d0e(){const _0x48089d=['Agent','https:','5816yczeAN','hasOwnProperty','tJZfs','./performance/performance-tester','7327024FOjeBF','KEEP_ALIVE','https','exports','NsZiP','http','ILbkA','28325280SWeany','QZVFF','760465eSGxhS','keepAliveMsecs','138fZcuvp','protocol','keepAlive','70LBZAnP','GvluC','agent','165641UrGGwG','UZoXz','prototype','globalAgent','2468652kGQsPE','FlxWE','2746395UfIPaW','FDGAQ','request','2yaPSDB'];a83_0x4d0e=function(){return _0x48089d;};return a83_0x4d0e();}function a83_0x2a29(_0x564d00,_0xbda576){const _0x4d0ef2=a83_0x4d0e();return a83_0x2a29=function(_0x2a2992,_0x1285bc){_0x2a2992=_0x2a2992-0x1d7;let _0x4e22b2=_0x4d0ef2[_0x2a2992];return _0x4e22b2;},a83_0x2a29(_0x564d00,_0xbda576);}(function(_0x125c16,_0x12cc3e){const _0x50cdab=a83_0x2a29,_0x1fa866=_0x125c16();while(!![]){try{const _0x1edcec=-parseInt(_0x50cdab(0x1e2))/0x1*(-parseInt(_0x50cdab(0x1f3))/0x2)+parseInt(_0x50cdab(0x1ee))/0x3+parseInt(_0x50cdab(0x1f6))/0x4*(-parseInt(_0x50cdab(0x1e7))/0x5)+-parseInt(_0x50cdab(0x1e4))/0x6*(-parseInt(_0x50cdab(0x1ea))/0x7)+parseInt(_0x50cdab(0x1d9))/0x8+parseInt(_0x50cdab(0x1f0))/0x9+-parseInt(_0x50cdab(0x1e0))/0xa;if(_0x1edcec===_0x12cc3e)break;else _0x1fa866['push'](_0x1fa866['shift']());}catch(_0x3f96ca){_0x1fa866['push'](_0x1fa866['shift']());}}}(a83_0x4d0e,0x79083));const PerformanceTester=require(a83_0x40e1ae(0x1d8)),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');module[a83_0x40e1ae(0x1dc)]=PerformanceTester['measureWrapper'](PerformanceEvents[a83_0x40e1ae(0x1da)],function(){const _0x7c5ef8=a83_0x40e1ae,_0x3da801={'tJZfs':function(_0x13725c,_0x233ace){return _0x13725c===_0x233ace;},'JpUKL':_0x7c5ef8(0x1f5),'NsZiP':_0x7c5ef8(0x1e9),'UZoXz':function(_0x21d6fc,_0x673e0a,_0x62ad3d){return _0x21d6fc(_0x673e0a,_0x62ad3d);},'iicPB':function(_0x41d7dc,_0x326cf6){return _0x41d7dc(_0x326cf6);},'ILbkA':_0x7c5ef8(0x1de),'QZVFF':function(_0x4d2525,_0x15ed80){return _0x4d2525(_0x15ed80);},'FlxWE':_0x7c5ef8(0x1db),'GvluC':function(_0x38b1d2,_0x1a61c1){return _0x38b1d2*_0x1a61c1;},'FDGAQ':_0x7c5ef8(0x1e6)},_0x1f2630=_0x3da801['iicPB'](require,_0x3da801[_0x7c5ef8(0x1df)]),_0x8a4920=_0x3da801[_0x7c5ef8(0x1e1)](require,_0x3da801[_0x7c5ef8(0x1ef)]),_0x407d2d=_0x3da801[_0x7c5ef8(0x1e8)](0x1e,0x3e8);if(_0x1f2630[_0x7c5ef8(0x1ed)]&&Object[_0x7c5ef8(0x1ec)][_0x7c5ef8(0x1f7)]['call'](_0x1f2630['globalAgent'],_0x3da801[_0x7c5ef8(0x1f1)]))_0x1f2630['globalAgent']['keepAlive']=!![],_0x8a4920[_0x7c5ef8(0x1ed)][_0x7c5ef8(0x1e6)]=!![],_0x1f2630[_0x7c5ef8(0x1ed)]['keepAliveMsecs']=_0x407d2d,_0x8a4920[_0x7c5ef8(0x1ed)][_0x7c5ef8(0x1e3)]=_0x407d2d;else{const _0x18741e={};_0x18741e[_0x7c5ef8(0x1e6)]=!![],_0x18741e[_0x7c5ef8(0x1e3)]=_0x407d2d;const _0x8ad74d=new _0x1f2630[(_0x7c5ef8(0x1f4))](_0x18741e),_0x283057={};_0x283057['keepAlive']=!![],_0x283057[_0x7c5ef8(0x1e3)]=_0x407d2d;const _0x3844ba=new _0x8a4920[(_0x7c5ef8(0x1f4))](_0x283057),_0x3d94a7=_0x1f2630['request'],_0x4edac5=_0x8a4920[_0x7c5ef8(0x1f2)];_0x1f2630['request']=function(_0x49bbad,_0x311a48){const _0x4338fb=_0x7c5ef8;if(_0x3da801[_0x4338fb(0x1d7)](_0x49bbad[_0x4338fb(0x1e5)],_0x3da801['JpUKL']))return _0x49bbad[_0x3da801[_0x4338fb(0x1dd)]]=_0x3844ba,_0x3da801[_0x4338fb(0x1eb)](_0x4edac5,_0x49bbad,_0x311a48);return _0x49bbad[_0x3da801[_0x4338fb(0x1dd)]]=_0x8ad74d,_0x3da801[_0x4338fb(0x1eb)](_0x3d94a7,_0x49bbad,_0x311a48);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a84_0x4ace8e=a84_0x217b;function a84_0x217b(_0x2026f9,_0x4824eb){var _0x15f58a=a84_0x15f5();return a84_0x217b=function(_0x217b82,_0xf079e7){_0x217b82=_0x217b82-0x17e;var _0x304f78=_0x15f58a[_0x217b82];return _0x304f78;},a84_0x217b(_0x2026f9,_0x4824eb);}(function(_0x56afd5,_0x192e27){var _0x4fcaff=a84_0x217b,_0x253739=_0x56afd5();while(!![]){try{var _0x530610=-parseInt(_0x4fcaff(0x18c))/0x1*(parseInt(_0x4fcaff(0x18e))/0x2)+parseInt(_0x4fcaff(0x180))/0x3*(-parseInt(_0x4fcaff(0x182))/0x4)+-parseInt(_0x4fcaff(0x187))/0x5*(-parseInt(_0x4fcaff(0x181))/0x6)+parseInt(_0x4fcaff(0x194))/0x7*(parseInt(_0x4fcaff(0x192))/0x8)+-parseInt(_0x4fcaff(0x185))/0x9+-parseInt(_0x4fcaff(0x18b))/0xa*(parseInt(_0x4fcaff(0x191))/0xb)+parseInt(_0x4fcaff(0x190))/0xc;if(_0x530610===_0x192e27)break;else _0x253739['push'](_0x253739['shift']());}catch(_0xac2b97){_0x253739['push'](_0x253739['shift']());}}}(a84_0x15f5,0x1d484));function a84_0x15f5(){var _0x14a4c8=['8bKlTuB','https://upload-observability.browserstack.com','1675317jGsCKC','exports','.obs_test_details','https://collector-observability.browserstack.com','Playwright','CUCUMBER','upload-attachments','PLAYWRIGHT','39sMcGGJ','198132VAcUsu','20176hTxang','MOCHA','api/v1/screenshots','2079369ICKDBt','mocha','5GBosRu','jest','JEST','codeceptjs','70iNboTm','219LsjNHX','api/v1/event','314cHDnUM','cucumber','2428428QNsIte','37378FEonBT'];a84_0x15f5=function(){return _0x14a4c8;};return a84_0x15f5();}var a84_0x804438={};a84_0x804438[a84_0x4ace8e(0x17f)]=a84_0x4ace8e(0x198),a84_0x804438[a84_0x4ace8e(0x183)]=a84_0x4ace8e(0x186),a84_0x804438['CODECEPT']=a84_0x4ace8e(0x18a),a84_0x804438[a84_0x4ace8e(0x189)]=a84_0x4ace8e(0x188),a84_0x804438[a84_0x4ace8e(0x199)]=a84_0x4ace8e(0x18f),module[a84_0x4ace8e(0x195)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a84_0x4ace8e(0x197),'OBSERVABILITY_UPLOAD_API_URL':a84_0x4ace8e(0x193),'EVENT_ENDPOINT':a84_0x4ace8e(0x18d),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a84_0x4ace8e(0x184),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0x4ace8e(0x17e),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'MAX_ALLOWED_PLAYWRIGHT_TRACE_SIZE':0x64*0x400*0x400,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':a84_0x4ace8e(0x196),'FRAMEWORKS':a84_0x804438};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a84_0x3f68(_0x3f063b,_0x202237){const _0x49a62a=a84_0x49a6();return a84_0x3f68=function(_0x3f68df,_0x4ea3dc){_0x3f68df=_0x3f68df-0x85;let _0x2b8d46=_0x49a62a[_0x3f68df];return _0x2b8d46;},a84_0x3f68(_0x3f063b,_0x202237);}const a84_0x177ec7=a84_0x3f68;(function(_0x3c5180,_0x5a1675){const _0x56a28b=a84_0x3f68,_0x23a06c=_0x3c5180();while(!![]){try{const _0x82ee17=parseInt(_0x56a28b(0x8c))/0x1+-parseInt(_0x56a28b(0xc3))/0x2*(-parseInt(_0x56a28b(0xba))/0x3)+parseInt(_0x56a28b(0xd6))/0x4*(-parseInt(_0x56a28b(0xd5))/0x5)+-parseInt(_0x56a28b(0xbe))/0x6+-parseInt(_0x56a28b(0xd9))/0x7*(parseInt(_0x56a28b(0xf1))/0x8)+parseInt(_0x56a28b(0xd4))/0x9*(-parseInt(_0x56a28b(0x96))/0xa)+-parseInt(_0x56a28b(0xd7))/0xb*(-parseInt(_0x56a28b(0xa9))/0xc);if(_0x82ee17===_0x5a1675)break;else _0x23a06c['push'](_0x23a06c['shift']());}catch(_0x417a71){_0x23a06c['push'](_0x23a06c['shift']());}}}(a84_0x49a6,0x87f56));const util=require('util'),PerformanceTester=require(a84_0x177ec7(0x9f)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require(a84_0x177ec7(0xa4)),o11yErrorHandler=(_0x173a7c,_0x37031c='',_0x284828=[''],_0x4d77d6=![])=>{const _0x273c97={'FqRDN':function(_0x332a01,_0x12c145){return _0x332a01(_0x12c145);},'GJcbi':function(_0x110098,_0x1e0152,_0x43c3a0){return _0x110098(_0x1e0152,_0x43c3a0);},'MmrDw':function(_0x39b2e2,_0x5dbf71){return _0x39b2e2 instanceof _0x5dbf71;},'dCvVV':function(_0x4e00fb,_0x4f4295,_0x4a9ccd,_0x2544d6,_0x275a9c){return _0x4e00fb(_0x4f4295,_0x4a9ccd,_0x2544d6,_0x275a9c);}};return function(..._0x4d149f){const _0x53b600=a84_0x3f68;try{let _0xb559cd=_0x173a7c;process[_0x53b600(0xb4)][_0x53b600(0xbf)]&&(_0xb559cd=PerformanceTester['getPerformance']()['timerify'](_0xb559cd));_0x4d77d6&&_0x273c97[_0x53b600(0xad)](trace,_0x53b600(0xe2)+_0x37031c+_0x53b600(0xa6)+process[_0x53b600(0xe6)]+_0x53b600(0x95)+_0x273c97[_0x53b600(0xe5)](nestedKeyValue,arguments[0x0],_0x284828));const _0x2cb4ab=_0xb559cd[_0x53b600(0x89)](null,arguments);_0x4d77d6&&_0x273c97[_0x53b600(0xad)](trace,_0x53b600(0x92)+_0x37031c+_0x53b600(0xa6)+process[_0x53b600(0xe6)]+_0x53b600(0x95)+_0x273c97[_0x53b600(0xe5)](nestedKeyValue,arguments[0x0],_0x284828));if(_0x273c97['MmrDw'](_0x2cb4ab,Promise))return _0x2cb4ab[_0x53b600(0xbc)](_0x4df313=>processError(_0x4df313,_0x173a7c,_0x4d149f,_0x37031c));return _0x2cb4ab;}catch(_0x5ab76d){_0x273c97['dCvVV'](processError,_0x5ab76d,_0x173a7c,_0x4d149f,_0x37031c);}};},o11yClassErrorHandler=(_0x1c321c,_0x12ad6f,_0x3e4e1e='')=>{const _0x4cceb5=a84_0x177ec7,_0x3b7367={'fdHZd':function(_0xb5e9a2,_0x505de3){return _0xb5e9a2 instanceof _0x505de3;},'QRtXL':function(_0x1d1019,_0xc7e0ae,_0x12a18e,_0x166a92,_0x5677cc){return _0x1d1019(_0xc7e0ae,_0x12a18e,_0x166a92,_0x5677cc);},'iyukt':function(_0x550670,_0x223897){return _0x550670===_0x223897;},'uFINM':'function','xytPb':function(_0x1ed71b,_0x2a4338){return _0x1ed71b!==_0x2a4338;},'bmITz':'constructor','inxmc':function(_0x365156,_0x3f99db){return _0x365156<_0x3f99db;}},_0x3235e3=_0x1c321c[_0x4cceb5(0xde)];if(_0x3b7367[_0x4cceb5(0xd3)](Object[_0x4cceb5(0xa3)](_0x3235e3)[_0x4cceb5(0xa2)],0x2))return _0x1c321c;return Object[_0x4cceb5(0xa3)](_0x3235e3)[_0x4cceb5(0xd0)](_0x4d1b7e=>{const _0x928bd5=_0x4cceb5,_0x4e14cb={'kiyre':function(_0x381ae6,_0x4f8564){const _0x285c11=a84_0x3f68;return _0x3b7367[_0x285c11(0x9d)](_0x381ae6,_0x4f8564);},'UEKkL':function(_0x58a015,_0x2184dd,_0x3cb285,_0xaa734d,_0x46a163){const _0x48c396=a84_0x3f68;return _0x3b7367[_0x48c396(0xd8)](_0x58a015,_0x2184dd,_0x3cb285,_0xaa734d,_0x46a163);}};if(!(_0x12ad6f&&_0x12ad6f[_0x928bd5(0x8f)](_0x4d1b7e)))return;const _0xbdb3c7=_0x3235e3[_0x4d1b7e];_0x3b7367['iyukt'](typeof _0xbdb3c7,_0x3b7367['uFINM'])&&_0x3b7367['xytPb'](_0x4d1b7e,_0x3b7367[_0x928bd5(0xb5)])&&Object['defineProperty'](_0x3235e3,_0x4d1b7e,{'writable':!![],'value':function(..._0x51c304){const _0x4bc588=_0x928bd5;try{const _0x3adb9b=(process[_0x4bc588(0xb4)][_0x4bc588(0xbf)]?PerformanceTester[_0x4bc588(0xb0)]()[_0x4bc588(0xeb)](_0xbdb3c7):_0xbdb3c7)['call'](this,..._0x51c304);if(_0x4e14cb[_0x4bc588(0xe7)](_0x3adb9b,Promise))return _0x3adb9b[_0x4bc588(0xbc)](_0x567fb4=>processError(_0x567fb4,_0xbdb3c7,_0x51c304,_0x3e4e1e));return _0x3adb9b;}catch(_0x2311cc){_0x4e14cb[_0x4bc588(0xb7)](processError,_0x2311cc,_0xbdb3c7,_0x51c304,_0x3e4e1e);}}});}),_0x1c321c;};function processError(_0x222418,_0x14e12f,_0x284584,_0x2600c6){const _0x55a8da=a84_0x177ec7,_0x2324c7={'ZekPK':function(_0x594f22,_0x29c378){return _0x594f22(_0x29c378);}};_0x2324c7[_0x55a8da(0xdb)](debug,_0x55a8da(0xda)+_0x14e12f[_0x55a8da(0xdc)]+_0x55a8da(0x98)+_0x2600c6+_0x55a8da(0xbb)+_0x222418+_0x55a8da(0x94)+_0x284584+'.'),PerformanceTester['captureError'](_0x222418);let _0x23d9ba;try{_0x23d9ba=JSON[_0x55a8da(0xed)](_0x284584);}catch(_0x3b7ede){const _0x3da62c={};_0x3da62c['depth']=0x2,_0x23d9ba=util[_0x55a8da(0x8b)](_0x284584,_0x3da62c);}CrashReporter[_0x55a8da(0xcf)](_0x55a8da(0xda)+_0x14e12f[_0x55a8da(0xdc)]+_0x55a8da(0x98)+_0x2600c6+'.\x20Error\x20-\x20'+_0x222418+_0x55a8da(0x94)+_0x23d9ba+'.',_0x222418&&_0x222418['stack']);}class CrashReporter{static ['userConfig']={};static [a84_0x177ec7(0xb2)];static ['frameworkDetails']={};static[a84_0x177ec7(0xe1)](_0x22510e,_0x3723c6,_0x4ed78d=null){const _0x12e559=a84_0x177ec7,_0x5ab584={'PTORh':function(_0x365a61,_0x2fed8f){return _0x365a61(_0x2fed8f);},'uWVZS':function(_0xbb2f58,_0x4d7867){return _0xbb2f58(_0x4d7867);}},_0x5bcccb=_0x22510e[_0x12e559(0xc7)],_0x29f7c6=_0x22510e['frameworkVersion'];!_0x4ed78d&&(_0x4ed78d=_0x5ab584[_0x12e559(0xcb)](getBrowserStackConfig,_0x5bcccb));!_0x29f7c6&&_0x5ab584[_0x12e559(0xb6)](getFrameworkVersion,_0x5bcccb);const _0xa0beed={};_0xa0beed[_0x12e559(0xc7)]=_0x5bcccb,_0xa0beed[_0x12e559(0x97)]=_0x29f7c6,this['setAllDetails'](_0xa0beed,_0x3723c6,_0x5ab584[_0x12e559(0xcb)](getUserCredentials,_0x4ed78d));}static[a84_0x177ec7(0x91)](_0x4454d8,_0x57464d){const _0x24fbb6=a84_0x177ec7,_0x20c412={};_0x20c412['username']=_0x4454d8,_0x20c412['accessKey']=_0x57464d,this[_0x24fbb6(0xb2)]=_0x20c412,process[_0x24fbb6(0xb4)][_0x24fbb6(0xcd)]=JSON[_0x24fbb6(0xed)](this[_0x24fbb6(0xb2)]);}static[a84_0x177ec7(0x8e)](){const _0xc042df=a84_0x177ec7,_0x91ccb7={'zpYUf':function(_0x47659b,_0x25848e){return _0x47659b(_0x25848e);}};if(!this[_0xc042df(0xb2)]&&process[_0xc042df(0xb4)][_0xc042df(0xcd)])try{this[_0xc042df(0xb2)]=JSON[_0xc042df(0xd2)](process[_0xc042df(0xb4)]['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x5346f5){_0x91ccb7['zpYUf'](debug,_0xc042df(0xc6)+_0x5346f5[_0xc042df(0x8a)]());}return this[_0xc042df(0xb2)];}static[a84_0x177ec7(0xd1)](_0xacb448){const _0x23d6a0=a84_0x177ec7;this['userConfig']=this[_0x23d6a0(0xdd)](_0xacb448),process[_0x23d6a0(0xb4)][_0x23d6a0(0xc4)]=JSON['stringify'](this['userConfig']);}static[a84_0x177ec7(0xc2)](){const _0x10cb0f=a84_0x177ec7,_0x5bba93={'AqJoP':function(_0x77669f,_0x3ba61e){return _0x77669f===_0x3ba61e;},'SaVJn':function(_0x8c37f1,_0x462f42){return _0x8c37f1(_0x462f42);}};if(_0x5bba93['AqJoP'](Object['keys'](this[_0x10cb0f(0xca)])[_0x10cb0f(0xa2)],0x0)&&process[_0x10cb0f(0xb4)][_0x10cb0f(0xc4)])try{this[_0x10cb0f(0xca)]=JSON[_0x10cb0f(0xd2)](process[_0x10cb0f(0xb4)]['USER_CONFIG_FOR_REPORTING']);}catch(_0x140eb7){_0x5bba93[_0x10cb0f(0xce)](debug,_0x10cb0f(0xc9)+_0x140eb7['toString']()),this[_0x10cb0f(0xca)]={};}return this[_0x10cb0f(0xca)];}static['setFrameworkDetails'](_0x51979b){const _0x265d75=a84_0x177ec7;this['frameworkDetails']=_0x51979b,process['env'][_0x265d75(0x9e)]=JSON[_0x265d75(0xed)](this[_0x265d75(0xae)]);}static['getFramework'](){const _0x4c727e=a84_0x177ec7,_0xb41ed7={'rbHEs':function(_0x4f365c,_0x46d5f1){return _0x4f365c===_0x46d5f1;},'dwDJP':function(_0x4faa09,_0x5505cd){return _0x4faa09(_0x5505cd);}};if(_0xb41ed7[_0x4c727e(0x87)](Object['keys'](this['frameworkDetails'])[_0x4c727e(0xa2)],0x0)&&process[_0x4c727e(0xb4)][_0x4c727e(0x9e)])try{this[_0x4c727e(0xae)]=JSON['parse'](process[_0x4c727e(0xb4)][_0x4c727e(0x9e)]);}catch(_0x267339){_0xb41ed7[_0x4c727e(0xa7)](debug,_0x4c727e(0xc6)+_0x267339['toString']());}return this[_0x4c727e(0xae)];}static[a84_0x177ec7(0xef)](_0x1d179b,_0x211a49,_0x45bccc){const _0x399f5b=a84_0x177ec7;_0x1d179b&&this[_0x399f5b(0x93)](_0x1d179b),_0x211a49&&this[_0x399f5b(0xd1)](_0x211a49),_0x45bccc&&this[_0x399f5b(0x91)](_0x45bccc[_0x399f5b(0x86)],_0x45bccc['accessKey']);}static async[a84_0x177ec7(0xcf)](_0x50e024,_0x41f346){const _0x420b3d=a84_0x177ec7,_0x525b68={'UFtwV':function(_0x48e160,_0x546777){return _0x48e160(_0x546777);},'XqsSj':function(_0x42575c,_0x39e8da){return _0x42575c(_0x39e8da);},'noyyg':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','XpDEl':function(_0x5913cc){return _0x5913cc();},'NlXJU':_0x420b3d(0xe3),'sztXe':_0x420b3d(0xf0),'FppFM':_0x420b3d(0xea),'EGgla':function(_0x4406c2,_0x9e5753,_0x19dfe3,_0x28c944,_0x425e0b,_0x54fd6c){return _0x4406c2(_0x9e5753,_0x19dfe3,_0x28c944,_0x425e0b,_0x54fd6c);},'olsvk':_0x420b3d(0xb9)};this[_0x420b3d(0x8e)]();if(!this[_0x420b3d(0xb2)])return _0x525b68[_0x420b3d(0xb3)](debug,_0x525b68['noyyg']);this['getConfig'](),this[_0x420b3d(0xa1)]();const _0x1ba764={'hashed_id':process[_0x420b3d(0xb4)][_0x420b3d(0xe9)],'observability_version':{'sdkVersion':_0x525b68[_0x420b3d(0x90)](getAgentVersion),'frameworkName':this[_0x420b3d(0xae)][_0x420b3d(0xc7)],'frameworkVersion':this['frameworkDetails'][_0x420b3d(0x97)]},'exception':{'error':_0x50e024[_0x420b3d(0x8a)](),'stackTrace':_0x41f346},'config':this['userConfig']},_0x18f9f3=_0x525b68[_0x420b3d(0xaa)],_0x5afc75={};_0x5afc75[_0x420b3d(0x86)]=this[_0x420b3d(0xb2)][_0x420b3d(0x86)],_0x5afc75[_0x420b3d(0x88)]=this[_0x420b3d(0xb2)][_0x420b3d(0xcc)];const _0x48dda9={};_0x48dda9[_0x420b3d(0xc1)]=_0x525b68['sztXe'],_0x48dda9[_0x420b3d(0xb1)]=_0x525b68['FppFM'];const _0x7e7298={};_0x7e7298['auth']=_0x5afc75,_0x7e7298[_0x420b3d(0xbd)]=_0x48dda9;const _0x3c52b3=_0x7e7298;_0x525b68[_0x420b3d(0xee)](nodeRequest,_0x525b68[_0x420b3d(0xec)],_0x18f9f3,_0x1ba764,_0x3c52b3,![])[_0x420b3d(0xa5)](_0x315068=>{const _0x2f6812=_0x420b3d;_0x525b68['UFtwV'](debug,_0x2f6812(0x99)+JSON[_0x2f6812(0xed)](_0x315068));})[_0x420b3d(0xbc)](_0x3a7315=>{const _0x3f22f7=_0x420b3d;_0x525b68[_0x3f22f7(0xc8)](debug,_0x3f22f7(0x9c)+util[_0x3f22f7(0xaf)](_0x3a7315));});}static[a84_0x177ec7(0xa8)](_0x5cea1e){const _0x180873=a84_0x177ec7,_0x35cacc={};_0x35cacc['GCXNp']=_0x180873(0xe8),_0x35cacc[_0x180873(0x9a)]=_0x180873(0x86),_0x35cacc['Dnqlu']=_0x180873(0xe4),_0x35cacc[_0x180873(0xe0)]=_0x180873(0xcc),_0x35cacc[_0x180873(0xc0)]=_0x180873(0x88),_0x35cacc[_0x180873(0x9b)]=function(_0x2200e1,_0x3279b4){return _0x2200e1===_0x3279b4;},_0x35cacc[_0x180873(0x85)]=_0x180873(0xac);const _0x2f2e42=_0x35cacc;if(!_0x5cea1e)return;const _0x50b878=[_0x2f2e42['GCXNp'],_0x2f2e42[_0x180873(0x9a)],_0x2f2e42[_0x180873(0xdf)],_0x2f2e42[_0x180873(0xe0)],_0x2f2e42[_0x180873(0xc0)]];for(const _0x1faed8 in _0x5cea1e){if(_0x50b878['includes'](_0x1faed8[_0x180873(0xb8)]()))delete _0x5cea1e[_0x1faed8];else _0x2f2e42[_0x180873(0x9b)](typeof _0x5cea1e[_0x1faed8],_0x2f2e42[_0x180873(0x85)])&&this[_0x180873(0xa8)](_0x5cea1e[_0x1faed8]);}}static[a84_0x177ec7(0xdd)](_0x3687f2){const _0x1129bf=a84_0x177ec7,_0x1e8477=JSON[_0x1129bf(0xd2)](JSON[_0x1129bf(0xed)](_0x3687f2));return this['recursivelyDeletePIIKeysFromObject'](_0x1e8477),_0x1e8477;}}function a84_0x49a6(){const _0x3192cb=['setAllDetails','application/json','335656EaqULQ','nqugU','username','rbHEs','password','apply','toString','inspect','959473gheyBc','exports','getCredentials','includes','XpDEl','setCredentials','Finished\x20::\x20','setFrameworkDetails','.\x20Args\x20-\x20',',\x20Argument\x20-\x20','3290lQrJAY','frameworkVersion','\x20--\x20','[Crash_Report_Upload]\x20Success\x20response:\x20','ejOnl','gZwqr','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','fdHZd','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','../performance/performance-tester','o11yClassErrorHandler','getFramework','length','getOwnPropertyNames','../helper','then',',\x20PID\x20-\x20','dwDJP','recursivelyDeletePIIKeysFromObject','15305220sDTwQi','NlXJU','CrashReporter','object','FqRDN','frameworkDetails','format','getPerformance','X-BSTACK-TESTOPS','credentials','XqsSj','env','bmITz','uWVZS','UEKkL','toLowerCase','POST','572853bCpYii','.\x20Error\x20-\x20','catch','headers','1515210uPUDxA','BROWSERSTACK_O11Y_PERF_MEASUREMENT','GxikS','Content-Type','getConfig','6ZWzztL','USER_CONFIG_FOR_REPORTING','o11yErrorHandler','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','frameworkName','UFtwV','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','userConfig','PTORh','accessKey','CREDENTIALS_FOR_CRASH_REPORTING','SaVJn','uploadCrashReport','forEach','setConfigDetails','parse','inxmc','18261KzbrMW','10oqGZMG','1738544CsCaZZ','11tVQswe','QRtXL','77XsDcMW','Error\x20in\x20executing\x20','ZekPK','name','filterPII','prototype','Dnqlu','KEeDg','initialize','Started\x20::\x20','/api/v1/analytics','key','GJcbi','pid','kiyre','user','BS_TESTOPS_BUILD_HASHED_ID','true','timerify','olsvk','stringify','EGgla'];a84_0x49a6=function(){return _0x3192cb;};return a84_0x49a6();}const a84_0xd83f00={};a84_0xd83f00[a84_0x177ec7(0xc5)]=o11yErrorHandler,a84_0xd83f00[a84_0x177ec7(0xa0)]=o11yClassErrorHandler,a84_0xd83f00[a84_0x177ec7(0xab)]=CrashReporter,module[a84_0x177ec7(0x8d)]=a84_0xd83f00;
|
|
1
|
+
const a85_0x1421e1=a85_0x57ea;function a85_0x1170(){const _0x3128b6=['BS_TESTOPS_BUILD_HASHED_ID','user','username','exports','QbQRv','1167012TAVhkE','true','o11yClassErrorHandler','../helper','CREDENTIALS_FOR_CRASH_REPORTING','.\x20Error\x20-\x20','5233152pURstq','.\x20Args\x20-\x20','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','util','NIEcr','keys','apply','mWJRu','accessKey','depth','timerify','OlXdT','aGSGD','setConfigDetails','2061DveKAw','catch','\x20--\x20','env','toString','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','call','hJKUI','pid',',\x20PID\x20-\x20','frameworkVersion','captureError','Error\x20in\x20executing\x20','./utils','getConfig','DwyBT','name','Finished\x20::\x20','NXuvj','stack','6fsJVjG','gOOAO','setCredentials','inspect','MdEDJ','MMJtq','recursivelyDeletePIIKeysFromObject','setAllDetails','POST','BROWSERSTACK_O11Y_PERF_MEASUREMENT','GZlMN','xiMnS','format','192994BPUuQl','AtMLz','initialize','1690qlBZVs','pzIze','parse','PeSAN','jKRAF','6dKmNuY','uploadCrashReport','constructor','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','getCredentials','includes','/api/v1/analytics','SbrVG','Wibqx',',\x20Argument\x20-\x20','NAlci','userConfig','USER_CONFIG_FOR_REPORTING','QwHIP','then','getFramework','credentials','defineProperty','7085155ZUAJbu','CrashReporter','stringify','VQeYr','frameworkName','toLowerCase','158832QRMePS','Content-Type','ctlAV','filterPII','password','CyEBk','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','SRNAb','length','[Crash_Report_Upload]\x20Success\x20response:\x20','setFrameworkDetails','5138685CnNtAO','o11yErrorHandler','htykx','pYiBZ','frameworkDetails','getOwnPropertyNames'];a85_0x1170=function(){return _0x3128b6;};return a85_0x1170();}(function(_0x21f797,_0x46dd5a){const _0x479977=a85_0x57ea,_0x5249e1=_0x21f797();while(!![]){try{const _0x5117f6=-parseInt(_0x479977(0xbf))/0x1+parseInt(_0x479977(0x9f))/0x2*(-parseInt(_0x479977(0xa7))/0x3)+parseInt(_0x479977(0xd5))/0x4+-parseInt(_0x479977(0xca))/0x5+-parseInt(_0x479977(0x92))/0x6*(-parseInt(_0x479977(0xb9))/0x7)+parseInt(_0x479977(0xdb))/0x8+-parseInt(_0x479977(0xe9))/0x9*(parseInt(_0x479977(0xa2))/0xa);if(_0x5117f6===_0x46dd5a)break;else _0x5249e1['push'](_0x5249e1['shift']());}catch(_0x24672a){_0x5249e1['push'](_0x5249e1['shift']());}}}(a85_0x1170,0x83c96));const util=require(a85_0x1421e1(0xde)),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a85_0x1421e1(0xf6)),{getAgentVersion,nestedKeyValue}=require(a85_0x1421e1(0xd8)),o11yErrorHandler=(_0x26b637,_0x7b599a='',_0x4a0b69=[''],_0x2fef82=![])=>{const _0x28b955={'MdEDJ':function(_0x194f4c,_0x7bc0a7){return _0x194f4c(_0x7bc0a7);},'pYiBZ':function(_0x3e8cf9,_0x14a561,_0x37734f){return _0x3e8cf9(_0x14a561,_0x37734f);},'QbQRv':function(_0x4130e0,_0x57fb54){return _0x4130e0 instanceof _0x57fb54;},'ZyNTP':function(_0x37a234,_0xc58dc9,_0x2cb8ca,_0xd88225,_0x5a72d1){return _0x37a234(_0xc58dc9,_0x2cb8ca,_0xd88225,_0x5a72d1);}};return function(..._0x250aa1){const _0x32e9c0=a85_0x57ea;try{let _0x10b1f5=_0x26b637;process['env']['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(_0x10b1f5=PerformanceTester['getPerformance']()[_0x32e9c0(0xe5)](_0x10b1f5));_0x2fef82&&_0x28b955[_0x32e9c0(0x96)](trace,'Started\x20::\x20'+_0x7b599a+_0x32e9c0(0xf2)+process[_0x32e9c0(0xf1)]+_0x32e9c0(0xb0)+_0x28b955['pYiBZ'](nestedKeyValue,arguments[0x0],_0x4a0b69));const _0x5ee394=_0x10b1f5[_0x32e9c0(0xe1)](null,arguments);_0x2fef82&&_0x28b955[_0x32e9c0(0x96)](trace,_0x32e9c0(0x8f)+_0x7b599a+_0x32e9c0(0xf2)+process[_0x32e9c0(0xf1)]+',\x20Argument\x20-\x20'+_0x28b955[_0x32e9c0(0xcd)](nestedKeyValue,arguments[0x0],_0x4a0b69));if(_0x28b955[_0x32e9c0(0xd4)](_0x5ee394,Promise))return _0x5ee394[_0x32e9c0(0xea)](_0x4a2ffd=>processError(_0x4a2ffd,_0x26b637,_0x250aa1,_0x7b599a));return _0x5ee394;}catch(_0x15712c){_0x28b955['ZyNTP'](processError,_0x15712c,_0x26b637,_0x250aa1,_0x7b599a);}};},o11yClassErrorHandler=(_0x53423f,_0x598141,_0x2e5727='')=>{const _0x2e1109=a85_0x1421e1,_0x13cb03={'PeSAN':function(_0x12da36,_0x1cef2e){return _0x12da36 instanceof _0x1cef2e;},'htykx':function(_0x5d1293,_0x220005,_0x54ff13,_0xaf87c9,_0x488974){return _0x5d1293(_0x220005,_0x54ff13,_0xaf87c9,_0x488974);},'VQeYr':function(_0x14c6fe,_0x55de98){return _0x14c6fe===_0x55de98;},'xiMnS':'function','Twudv':function(_0x42cdb1,_0x5f384c){return _0x42cdb1!==_0x5f384c;},'RzNTB':_0x2e1109(0xa9),'cIabK':function(_0x2fbb20,_0x4f6725){return _0x2fbb20<_0x4f6725;}},_0x3473d8=_0x53423f['prototype'];if(_0x13cb03['cIabK'](Object[_0x2e1109(0xcf)](_0x3473d8)[_0x2e1109(0xc7)],0x2))return _0x53423f;return Object[_0x2e1109(0xcf)](_0x3473d8)['forEach'](_0x1e40d4=>{const _0xc935e1=_0x2e1109;if(!(_0x598141&&_0x598141[_0xc935e1(0xac)](_0x1e40d4)))return;const _0x2e09b7=_0x3473d8[_0x1e40d4];_0x13cb03[_0xc935e1(0xbc)](typeof _0x2e09b7,_0x13cb03[_0xc935e1(0x9d)])&&_0x13cb03['Twudv'](_0x1e40d4,_0x13cb03['RzNTB'])&&Object[_0xc935e1(0xb8)](_0x3473d8,_0x1e40d4,{'writable':!![],'value':function(..._0xd0b71c){const _0x3a4a45=_0xc935e1;try{const _0x28bfe0=(process[_0x3a4a45(0xec)][_0x3a4a45(0x9b)]?PerformanceTester['getPerformance']()[_0x3a4a45(0xe5)](_0x2e09b7):_0x2e09b7)[_0x3a4a45(0xef)](this,..._0xd0b71c);if(_0x13cb03[_0x3a4a45(0xa5)](_0x28bfe0,Promise))return _0x28bfe0[_0x3a4a45(0xea)](_0x5c3a47=>processError(_0x5c3a47,_0x2e09b7,_0xd0b71c,_0x2e5727));return _0x28bfe0;}catch(_0x58d98f){_0x13cb03[_0x3a4a45(0xcc)](processError,_0x58d98f,_0x2e09b7,_0xd0b71c,_0x2e5727);}}});}),_0x53423f;};function processError(_0x4bbd41,_0x1eba74,_0x48153c,_0x4fa7d5){const _0x1034d7=a85_0x1421e1,_0x51f818={'CyEBk':function(_0x5d3387,_0x43dd54){return _0x5d3387(_0x43dd54);}};_0x51f818[_0x1034d7(0xc4)](debug,_0x1034d7(0xf5)+_0x1eba74[_0x1034d7(0x8e)]+_0x1034d7(0xeb)+_0x4fa7d5+_0x1034d7(0xda)+_0x4bbd41+_0x1034d7(0xdc)+_0x48153c+'.'),PerformanceTester[_0x1034d7(0xf4)](_0x4bbd41);let _0xc37351;try{_0xc37351=JSON['stringify'](_0x48153c);}catch(_0x23d6e2){const _0x5b739e={};_0x5b739e[_0x1034d7(0xe4)]=0x2,_0xc37351=util[_0x1034d7(0x95)](_0x48153c,_0x5b739e);}CrashReporter[_0x1034d7(0xa8)]('Error\x20in\x20executing\x20'+_0x1eba74[_0x1034d7(0x8e)]+_0x1034d7(0xeb)+_0x4fa7d5+_0x1034d7(0xda)+_0x4bbd41+_0x1034d7(0xdc)+_0xc37351+'.',_0x4bbd41&&_0x4bbd41[_0x1034d7(0x91)]);}class CrashReporter{static [a85_0x1421e1(0xb2)]={};static ['credentials'];static [a85_0x1421e1(0xce)]={};static[a85_0x1421e1(0xa1)](_0x32f693,_0x46ceab,_0x471f31=null){const _0xb116bb=a85_0x1421e1,_0xf3c2e9={'NXuvj':function(_0x4b1720,_0x2f5eb7){return _0x4b1720(_0x2f5eb7);}},_0x50a715=_0x32f693['frameworkName'],_0x1b82e5=_0x32f693['frameworkVersion'];!_0x471f31&&(_0x471f31=_0xf3c2e9[_0xb116bb(0x90)](getBrowserStackConfig,_0x50a715));!_0x1b82e5&&_0xf3c2e9['NXuvj'](getFrameworkVersion,_0x50a715);const _0x112091={};_0x112091[_0xb116bb(0xbd)]=_0x50a715,_0x112091[_0xb116bb(0xf3)]=_0x1b82e5,this[_0xb116bb(0x99)](_0x112091,_0x46ceab,_0xf3c2e9[_0xb116bb(0x90)](getUserCredentials,_0x471f31));}static[a85_0x1421e1(0x94)](_0x6227a4,_0x1054f9){const _0x416018=a85_0x1421e1,_0x5a923c={};_0x5a923c[_0x416018(0xd2)]=_0x6227a4,_0x5a923c['accessKey']=_0x1054f9,this[_0x416018(0xb7)]=_0x5a923c,process['env'][_0x416018(0xd9)]=JSON[_0x416018(0xbb)](this['credentials']);}static['getCredentials'](){const _0x482f7d=a85_0x1421e1,_0xf7ed35={'OlXdT':function(_0xd2327a,_0x4c1f21){return _0xd2327a(_0x4c1f21);}};if(!this[_0x482f7d(0xb7)]&&process[_0x482f7d(0xec)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x482f7d(0xb7)]=JSON[_0x482f7d(0xa4)](process[_0x482f7d(0xec)][_0x482f7d(0xd9)]);}catch(_0x1c73d6){_0xf7ed35[_0x482f7d(0xe6)](debug,_0x482f7d(0xaa)+_0x1c73d6[_0x482f7d(0xed)]());}return this[_0x482f7d(0xb7)];}static[a85_0x1421e1(0xe8)](_0xf69b41){const _0x28c648=a85_0x1421e1;this[_0x28c648(0xb2)]=this[_0x28c648(0xc2)](_0xf69b41),process[_0x28c648(0xec)][_0x28c648(0xb3)]=JSON[_0x28c648(0xbb)](this[_0x28c648(0xb2)]);}static[a85_0x1421e1(0xf7)](){const _0x240ac2=a85_0x1421e1,_0x2a7e37={'mWJRu':function(_0x353e43,_0x15c305){return _0x353e43===_0x15c305;},'ctlAV':function(_0x52bc53,_0x4ea806){return _0x52bc53(_0x4ea806);}};if(_0x2a7e37[_0x240ac2(0xe2)](Object[_0x240ac2(0xe0)](this[_0x240ac2(0xb2)])[_0x240ac2(0xc7)],0x0)&&process[_0x240ac2(0xec)][_0x240ac2(0xb3)])try{this[_0x240ac2(0xb2)]=JSON[_0x240ac2(0xa4)](process[_0x240ac2(0xec)][_0x240ac2(0xb3)]);}catch(_0xa7d72d){_0x2a7e37[_0x240ac2(0xc1)](debug,'Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20'+_0xa7d72d[_0x240ac2(0xed)]()),this['userConfig']={};}return this[_0x240ac2(0xb2)];}static[a85_0x1421e1(0xc9)](_0x4a9fb7){const _0x3ee830=a85_0x1421e1;this[_0x3ee830(0xce)]=_0x4a9fb7,process[_0x3ee830(0xec)][_0x3ee830(0xc5)]=JSON[_0x3ee830(0xbb)](this[_0x3ee830(0xce)]);}static[a85_0x1421e1(0xb6)](){const _0x46ded6=a85_0x1421e1,_0x1b9e11={'NIEcr':function(_0x36df62,_0x4149a3){return _0x36df62===_0x4149a3;},'jKRAF':function(_0x647e18,_0x19cc8c){return _0x647e18(_0x19cc8c);}};if(_0x1b9e11[_0x46ded6(0xdf)](Object['keys'](this[_0x46ded6(0xce)])['length'],0x0)&&process[_0x46ded6(0xec)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x46ded6(0xce)]=JSON[_0x46ded6(0xa4)](process['env'][_0x46ded6(0xc5)]);}catch(_0x2052f4){_0x1b9e11[_0x46ded6(0xa6)](debug,_0x46ded6(0xaa)+_0x2052f4[_0x46ded6(0xed)]());}return this[_0x46ded6(0xce)];}static['setAllDetails'](_0xba5e49,_0x4cea8e,_0x1ff4e4){const _0x2115ef=a85_0x1421e1;_0xba5e49&&this['setFrameworkDetails'](_0xba5e49),_0x4cea8e&&this[_0x2115ef(0xe8)](_0x4cea8e),_0x1ff4e4&&this['setCredentials'](_0x1ff4e4[_0x2115ef(0xd2)],_0x1ff4e4[_0x2115ef(0xe3)]);}static async['uploadCrashReport'](_0x5307ee,_0x26537c){const _0x54eb0c=a85_0x1421e1,_0x4fccf5={'gOOAO':function(_0x4ea15e,_0x169172){return _0x4ea15e(_0x169172);},'SbrVG':_0x54eb0c(0xee),'hJKUI':function(_0x5f1a51){return _0x5f1a51();},'MMJtq':_0x54eb0c(0xad),'GZlMN':'application/json','tUKDg':_0x54eb0c(0xd6),'QwHIP':function(_0x2e39f4,_0x471846,_0xb95022,_0x33cd18,_0xe4e814,_0x27e95e){return _0x2e39f4(_0x471846,_0xb95022,_0x33cd18,_0xe4e814,_0x27e95e);},'qvewa':_0x54eb0c(0x9a)};this[_0x54eb0c(0xab)]();if(!this['credentials'])return _0x4fccf5[_0x54eb0c(0x93)](debug,_0x4fccf5[_0x54eb0c(0xae)]);this['getConfig'](),this['getFramework']();const _0x13674a={'hashed_id':process[_0x54eb0c(0xec)][_0x54eb0c(0xd0)],'observability_version':{'sdkVersion':_0x4fccf5[_0x54eb0c(0xf0)](getAgentVersion),'frameworkName':this['frameworkDetails'][_0x54eb0c(0xbd)],'frameworkVersion':this[_0x54eb0c(0xce)][_0x54eb0c(0xf3)]},'exception':{'error':_0x5307ee['toString'](),'stackTrace':_0x26537c},'config':this[_0x54eb0c(0xb2)]},_0x80afcf=_0x4fccf5[_0x54eb0c(0x97)],_0x3e954b={};_0x3e954b[_0x54eb0c(0xd2)]=this['credentials'][_0x54eb0c(0xd2)],_0x3e954b[_0x54eb0c(0xc3)]=this[_0x54eb0c(0xb7)][_0x54eb0c(0xe3)];const _0x33f6e4={};_0x33f6e4[_0x54eb0c(0xc0)]=_0x4fccf5[_0x54eb0c(0x9c)],_0x33f6e4['X-BSTACK-TESTOPS']=_0x4fccf5['tUKDg'];const _0x402bb4={};_0x402bb4['auth']=_0x3e954b,_0x402bb4['headers']=_0x33f6e4;const _0x1e6b53=_0x402bb4;_0x4fccf5[_0x54eb0c(0xb4)](nodeRequest,_0x4fccf5['qvewa'],_0x80afcf,_0x13674a,_0x1e6b53,![])[_0x54eb0c(0xb5)](_0x2b79e3=>{const _0x216930=_0x54eb0c;_0x4fccf5['gOOAO'](debug,_0x216930(0xc8)+JSON[_0x216930(0xbb)](_0x2b79e3));})[_0x54eb0c(0xea)](_0x2117a3=>{const _0x51f445=_0x54eb0c;_0x4fccf5[_0x51f445(0x93)](debug,_0x51f445(0xdd)+util[_0x51f445(0x9e)](_0x2117a3));});}static[a85_0x1421e1(0x98)](_0x29df87){const _0x1ba69f=a85_0x1421e1,_0x2c9357={};_0x2c9357[_0x1ba69f(0xa0)]=_0x1ba69f(0xd1),_0x2c9357[_0x1ba69f(0xe7)]=_0x1ba69f(0xd2),_0x2c9357[_0x1ba69f(0xa3)]='key',_0x2c9357[_0x1ba69f(0xaf)]='accessKey',_0x2c9357[_0x1ba69f(0xc6)]='password',_0x2c9357[_0x1ba69f(0x8d)]=function(_0x4867b9,_0x4cf8e7){return _0x4867b9===_0x4cf8e7;},_0x2c9357[_0x1ba69f(0xb1)]='object';const _0x54887a=_0x2c9357;if(!_0x29df87)return;const _0x1c7aa7=[_0x54887a['AtMLz'],_0x54887a[_0x1ba69f(0xe7)],_0x54887a['pzIze'],_0x54887a[_0x1ba69f(0xaf)],_0x54887a[_0x1ba69f(0xc6)]];for(const _0x647e31 in _0x29df87){if(_0x1c7aa7[_0x1ba69f(0xac)](_0x647e31[_0x1ba69f(0xbe)]()))delete _0x29df87[_0x647e31];else _0x54887a[_0x1ba69f(0x8d)](typeof _0x29df87[_0x647e31],_0x54887a[_0x1ba69f(0xb1)])&&this['recursivelyDeletePIIKeysFromObject'](_0x29df87[_0x647e31]);}}static[a85_0x1421e1(0xc2)](_0xfa7252){const _0x444846=a85_0x1421e1,_0xb1caf7=JSON[_0x444846(0xa4)](JSON['stringify'](_0xfa7252));return this['recursivelyDeletePIIKeysFromObject'](_0xb1caf7),_0xb1caf7;}}function a85_0x57ea(_0x1ee98e,_0x4ea946){const _0x11701a=a85_0x1170();return a85_0x57ea=function(_0x57eac8,_0x2a6b32){_0x57eac8=_0x57eac8-0x8d;let _0x3e25fd=_0x11701a[_0x57eac8];return _0x3e25fd;},a85_0x57ea(_0x1ee98e,_0x4ea946);}const a85_0x398e8c={};a85_0x398e8c[a85_0x1421e1(0xcb)]=o11yErrorHandler,a85_0x398e8c[a85_0x1421e1(0xd7)]=o11yClassErrorHandler,a85_0x398e8c[a85_0x1421e1(0xba)]=CrashReporter,module[a85_0x1421e1(0xd3)]=a85_0x398e8c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x3da21d=a85_0x4b78;(function(_0x5b6ba1,_0x20bb90){const _0x5c6816=a85_0x4b78,_0x4ba4e2=_0x5b6ba1();while(!![]){try{const _0xead0dd=parseInt(_0x5c6816(0x1d4))/0x1*(-parseInt(_0x5c6816(0x202))/0x2)+-parseInt(_0x5c6816(0x1ba))/0x3+-parseInt(_0x5c6816(0x1b7))/0x4*(-parseInt(_0x5c6816(0x1f6))/0x5)+parseInt(_0x5c6816(0x1c0))/0x6*(-parseInt(_0x5c6816(0x204))/0x7)+parseInt(_0x5c6816(0x1b4))/0x8+-parseInt(_0x5c6816(0x1dc))/0x9*(parseInt(_0x5c6816(0x217))/0xa)+parseInt(_0x5c6816(0x1ee))/0xb;if(_0xead0dd===_0x20bb90)break;else _0x4ba4e2['push'](_0x4ba4e2['shift']());}catch(_0x4ffb38){_0x4ba4e2['push'](_0x4ba4e2['shift']());}}}(a85_0x2ae2,0x2e416));function a85_0x4b78(_0x3bf25f,_0x355808){const _0x2ae224=a85_0x2ae2();return a85_0x4b78=function(_0x4b78f8,_0x484319){_0x4b78f8=_0x4b78f8-0x1ac;let _0xc7d5ba=_0x2ae224[_0x4b78f8];return _0xc7d5ba;},a85_0x4b78(_0x3bf25f,_0x355808);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x3da21d(0x216)),{nestedKeyValue}=require(a85_0x3da21d(0x1c5)),util=require(a85_0x3da21d(0x1cb));class RequestQueueHandler{static [a85_0x3da21d(0x1c9)];['pendingUploads']=0x0;constructor(){const _0x2242f4=a85_0x3da21d,_0x1d9ec7={};_0x1d9ec7[_0x2242f4(0x1b6)]='5|6|0|4|1|2|3',_0x1d9ec7[_0x2242f4(0x1f1)]=_0x2242f4(0x1e5),_0x1d9ec7['gTyRs']=_0x2242f4(0x1c4),_0x1d9ec7['hIxNc']=_0x2242f4(0x206),_0x1d9ec7[_0x2242f4(0x1fb)]=_0x2242f4(0x1fa),_0x1d9ec7[_0x2242f4(0x1eb)]=_0x2242f4(0x21e),_0x1d9ec7['PFGUt']=_0x2242f4(0x1c8),_0x1d9ec7[_0x2242f4(0x21d)]='HookRunFinished',_0x1d9ec7['FHkCD']=_0x2242f4(0x1ed),_0x1d9ec7[_0x2242f4(0x213)]=_0x2242f4(0x1cc),_0x1d9ec7[_0x2242f4(0x1ca)]=_0x2242f4(0x1f8);const _0x49bd59=_0x1d9ec7,_0x38ba8c=_0x49bd59[_0x2242f4(0x1b6)][_0x2242f4(0x1da)]('|');let _0x55cee0=0x0;while(!![]){switch(_0x38ba8c[_0x55cee0++]){case'0':this[_0x2242f4(0x1ea)]=_0x49bd59['daOxD'];continue;case'1':this[_0x2242f4(0x21c)]=_0x49bd59['gTyRs'];continue;case'2':this['BATCH_EVENT_TYPES']=[_0x49bd59['hIxNc'],_0x49bd59[_0x2242f4(0x1fb)],_0x49bd59[_0x2242f4(0x1eb)],_0x49bd59[_0x2242f4(0x1d0)],_0x49bd59['kSTgJ'],_0x49bd59[_0x2242f4(0x205)],_0x49bd59[_0x2242f4(0x213)]];continue;case'3':this[_0x2242f4(0x218)]=null;continue;case'4':this['screenshotEventUrl']=_0x49bd59[_0x2242f4(0x1ca)];continue;case'5':this['queue']=[];continue;case'6':this['started']=![];continue;}break;}}static[a85_0x3da21d(0x1e4)](){const _0x466fe0=a85_0x3da21d;return!RequestQueueHandler[_0x466fe0(0x1c9)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler[_0x466fe0(0x1c9)];}[a85_0x3da21d(0x1ce)]=()=>{const _0x914a1f=a85_0x3da21d;!this['started']&&(this[_0x914a1f(0x1e6)]=!![],this[_0x914a1f(0x1b5)]());};[a85_0x3da21d(0x1ff)]=_0x4dc47f=>{const _0x2240c3=a85_0x3da21d,_0x59c0dc={'XoafN':function(_0x327b50,_0x11f0dd){return _0x327b50===_0x11f0dd;},'XrpYj':'TEST_SCREENSHOT','jhggo':function(_0x2ade13,_0x4b0700){return _0x2ade13>_0x4b0700;},'yltIv':_0x2240c3(0x1f9),'avuys':function(_0x454fcb,_0x3e3be7){return _0x454fcb!==_0x3e3be7;},'fOIGq':'TestRunFinished','CvWdp':function(_0x2ea772,_0x175af4){return _0x2ea772(_0x175af4);},'mHmtT':_0x2240c3(0x1d2)};if(this[_0x2240c3(0x20a)]['includes'](_0x4dc47f[_0x2240c3(0x1d1)])){if(_0x4dc47f[_0x2240c3(0x1d7)]&&_0x4dc47f[_0x2240c3(0x1d7)][0x0]&&_0x59c0dc[_0x2240c3(0x1cd)](_0x4dc47f['logs'][0x0][_0x2240c3(0x21f)],_0x59c0dc[_0x2240c3(0x1c6)])){const _0x176b5b={};return _0x176b5b[_0x2240c3(0x1c7)]=!![],_0x176b5b[_0x2240c3(0x215)]=[_0x4dc47f],_0x176b5b[_0x2240c3(0x1ec)]=this[_0x2240c3(0x1b0)],_0x176b5b;}if(_0x4dc47f['logs']&&_0x59c0dc['jhggo'](_0x4dc47f[_0x2240c3(0x1d7)][_0x2240c3(0x1f7)],0x0)&&_0x59c0dc[_0x2240c3(0x1cd)](_0x4dc47f[_0x2240c3(0x1d7)][0x0][_0x2240c3(0x21f)],_0x59c0dc[_0x2240c3(0x200)])&&_0x59c0dc[_0x2240c3(0x1bb)](_0x4dc47f['event_type'],_0x59c0dc[_0x2240c3(0x1f0)])){const _0x3bd001={};return _0x3bd001['shouldProceed']=!![],_0x3bd001[_0x2240c3(0x215)]=[_0x4dc47f],_0x3bd001[_0x2240c3(0x1ec)]=this[_0x2240c3(0x21c)],_0x3bd001;}this[_0x2240c3(0x1b9)][_0x2240c3(0x1db)](_0x4dc47f);let _0x5805b9=null;const _0x4c830f=this[_0x2240c3(0x1c7)]();_0x4c830f&&(_0x59c0dc['CvWdp'](trace,_0x59c0dc[_0x2240c3(0x1d5)]),_0x5805b9=this['queue'][_0x2240c3(0x201)](0x0,BATCH_SIZE),this[_0x2240c3(0x1b9)][_0x2240c3(0x1f5)](0x0,BATCH_SIZE),this[_0x2240c3(0x20b)]());const _0x30243d={};return _0x30243d['shouldProceed']=_0x4c830f,_0x30243d[_0x2240c3(0x215)]=_0x5805b9,_0x30243d[_0x2240c3(0x1ec)]=this[_0x2240c3(0x1ea)],_0x30243d;}const _0x4bbd7b={};return _0x4bbd7b[_0x2240c3(0x1c7)]=!![],_0x4bbd7b;};[a85_0x3da21d(0x1e7)]=async()=>{const _0x1c536e=a85_0x3da21d,_0x524c93={'NAORF':'REMOVING','xoFyP':function(_0x1eb2cf,_0x2e1a91){return _0x1eb2cf>_0x2e1a91;},'ocTeC':'Shutdown-Queue','yNOQo':function(_0x51d96e,_0x252e11){return _0x51d96e>_0x252e11;},'xWwXj':function(_0x1362ae,_0x43030d){return _0x1362ae(_0x43030d);}};await this[_0x1c536e(0x1df)](),this[_0x1c536e(0x211)](_0x524c93[_0x1c536e(0x208)]);while(_0x524c93[_0x1c536e(0x1ae)](this[_0x1c536e(0x1b9)][_0x1c536e(0x1f7)],0x0)){const _0x5c65e4=this[_0x1c536e(0x1b9)]['slice'](0x0,BATCH_SIZE);this[_0x1c536e(0x1b9)]['splice'](0x0,BATCH_SIZE),await this[_0x1c536e(0x1bf)](this[_0x1c536e(0x1ea)],_0x524c93[_0x1c536e(0x1de)],_0x5c65e4);}_0x524c93[_0x1c536e(0x1b2)](this['pendingUploads'],0x0)&&_0x524c93[_0x1c536e(0x1d6)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x1c536e(0x207)]);};[a85_0x3da21d(0x1bf)]=async(_0x470eec,_0x38a421,_0xc590b8)=>{const _0x564f69=a85_0x3da21d,_0x363801={'UccST':function(_0xba0733,_0x3f5eb4){return _0xba0733(_0x3f5eb4);},'EpdKa':_0x564f69(0x1ad),'MZtCy':function(_0x421450){return _0x421450();},'ruKVU':function(_0x14439a,_0x2f6721,_0x2e7a56,_0x43d0a8,_0x136021){return _0x14439a(_0x2f6721,_0x2e7a56,_0x43d0a8,_0x136021);},'zNHUW':'POST','bPOsz':function(_0x302391,_0x45c33e){return _0x302391(_0x45c33e);},'xHSnc':function(_0x193551,_0x4a36bf){return _0x193551-_0x4a36bf;},'lSGBr':function(_0x257d47,_0x17319b){return _0x257d47(_0x17319b);},'llSes':function(_0x13f657,_0x5a10d0){return _0x13f657(_0x5a10d0);}};let _0x1a93cf='';try{_0x1a93cf=_0xc590b8[_0x564f69(0x1be)](_0x3328cd=>'\x27'+_0x3328cd[_0x564f69(0x1d1)]+'\x27:'+(nestedKeyValue(_0x3328cd,[_0x564f69(0x21b),_0x564f69(0x1b8)])||nestedKeyValue(_0x3328cd,[_0x564f69(0x1e1),_0x564f69(0x1b8)])))['join'](','),_0x363801[_0x564f69(0x1cf)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x38a421+_0x564f69(0x214)+Buffer[_0x564f69(0x212)](util[_0x564f69(0x1ef)]('%j',_0xc590b8),_0x363801[_0x564f69(0x209)])+_0x564f69(0x20f)+_0x1a93cf);}catch(_0x35f813){_0x363801[_0x564f69(0x1cf)](debug,_0x564f69(0x1f2)+util[_0x564f69(0x1ef)](_0x35f813)+'}');}const _0x326374={'headers':_0x363801[_0x564f69(0x1c1)](getDefaultHeaders)};try{const _0x441654=await _0x363801[_0x564f69(0x1bd)](nodeRequest,_0x363801[_0x564f69(0x1b1)],_0x470eec,_0xc590b8,_0x326374);if(_0x441654[_0x564f69(0x1f3)]['error']){const _0x566225={};_0x566225[_0x564f69(0x1fd)]=_0x441654[_0x564f69(0x1f3)][_0x564f69(0x1d9)];throw _0x566225;}else _0x363801[_0x564f69(0x1bc)](debug,_0x38a421+'\x20event\x20successful\x20for\x20events\x20'+_0x1a93cf+_0x564f69(0x1f4)+util[_0x564f69(0x1ef)]('%j',_0x441654[_0x564f69(0x1f3)])),this['pendingUploads']=Math[_0x564f69(0x1af)](0x0,_0x363801[_0x564f69(0x1e0)](this[_0x564f69(0x207)],_0xc590b8[_0x564f69(0x1f7)]));}catch(_0x3b1c00){_0x3b1c00['response']?_0x363801[_0x564f69(0x20c)](debug,_0x564f69(0x1dd)+_0x38a421+_0x564f69(0x21a)+_0x3b1c00['response']['status']+'\x20'+_0x3b1c00[_0x564f69(0x1d8)][_0x564f69(0x1fc)]+'\x20'+util[_0x564f69(0x1ef)]('%j',_0x3b1c00[_0x564f69(0x1d8)])):_0x363801[_0x564f69(0x1d3)](debug,_0x564f69(0x1dd)+_0x38a421+_0x564f69(0x21a)+(_0x3b1c00['message']||_0x3b1c00)),this['pendingUploads']=Math[_0x564f69(0x1af)](0x0,_0x363801['xHSnc'](this[_0x564f69(0x207)],_0xc590b8[_0x564f69(0x1f7)]));}};[a85_0x3da21d(0x1b5)]=()=>{const _0x3f8002=a85_0x3da21d,_0x74bcbb={'OfKUy':function(_0x560e0a,_0x3657ea){return _0x560e0a>_0x3657ea;},'FWywh':function(_0x178d2a,_0x2a5868){return _0x178d2a(_0x2a5868);},'VEniI':'Interval-Queue','AMLel':function(_0x6ffad8,_0x155617){return _0x6ffad8(_0x155617);},'PadVx':function(_0x57def2,_0x4a158d,_0x3bbf4c){return _0x57def2(_0x4a158d,_0x3bbf4c);}};this['pollEventBatchInterval']=_0x74bcbb[_0x3f8002(0x1c3)](setInterval,async()=>{const _0x240f88=_0x3f8002;if(_0x74bcbb[_0x240f88(0x20e)](this['queue'][_0x240f88(0x1f7)],0x0)){_0x74bcbb['FWywh'](trace,_0x240f88(0x219)+this[_0x240f88(0x1b9)][_0x240f88(0x1f7)]);const _0x34392e=this[_0x240f88(0x1b9)][_0x240f88(0x201)](0x0,BATCH_SIZE);this[_0x240f88(0x1b9)]['splice'](0x0,BATCH_SIZE),await this[_0x240f88(0x1bf)](this['eventUrl'],_0x74bcbb['VEniI'],_0x34392e),_0x74bcbb[_0x240f88(0x1e8)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this[_0x240f88(0x1b9)][_0x240f88(0x1f7)]);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x3fbfbe=a85_0x3da21d,_0x18b138={};_0x18b138[_0x3fbfbe(0x1ac)]=_0x3fbfbe(0x20d);const _0x1a459b=_0x18b138;this[_0x3fbfbe(0x211)](_0x1a459b['erzbj']),this[_0x3fbfbe(0x1b5)]();};['removeEventBatchPolling']=_0x1d0ca7=>{const _0x321b8c=a85_0x3da21d,_0x4a252b={'qMEJJ':function(_0x1c0844,_0x1efe83){return _0x1c0844(_0x1efe83);},'bEbsD':function(_0x1a0842,_0x54036f){return _0x1a0842===_0x54036f;},'EIVJb':_0x321b8c(0x1fe)};this[_0x321b8c(0x218)]&&(_0x4a252b[_0x321b8c(0x210)](clearInterval,this[_0x321b8c(0x218)]),this[_0x321b8c(0x218)]=null,_0x4a252b['bEbsD'](_0x1d0ca7,_0x4a252b[_0x321b8c(0x1e3)])&&(this[_0x321b8c(0x1e6)]=![]));};[a85_0x3da21d(0x1c7)]=()=>{const _0x3ba7c2=a85_0x3da21d,_0x261ffa={};_0x261ffa[_0x3ba7c2(0x1e2)]=function(_0x44a15c,_0x13357c){return _0x44a15c>=_0x13357c;};const _0x4aad05=_0x261ffa;return _0x4aad05['EekSq'](this[_0x3ba7c2(0x1b9)][_0x3ba7c2(0x1f7)],BATCH_SIZE);};async[a85_0x3da21d(0x1df)](_0x4267a7=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x490349=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x4dd804=a85_0x3da21d,_0x2414f4={'FQVuu':function(_0x564f18,_0x2ec39b){return _0x564f18<=_0x2ec39b;},'suYsK':function(_0x391274,_0x503018){return _0x391274(_0x503018);},'fickO':function(_0x4d12a2,_0x2d6fb9){return _0x4d12a2-_0x2d6fb9;}};if(_0x2414f4[_0x4dd804(0x1b3)](this[_0x4dd804(0x207)],0x0)||_0x2414f4['FQVuu'](_0x4267a7,0x0))return;return await _0x2414f4[_0x4dd804(0x1c2)](sleep,_0x490349),this['uploadPending'](_0x2414f4[_0x4dd804(0x203)](_0x4267a7,_0x490349));}}module[a85_0x3da21d(0x1e9)]=RequestQueueHandler;function a85_0x2ae2(){const _0x5d7e7f=['OfKUy','\x20bytes.\x20Events\x20are\x20','qMEJJ','removeEventBatchPolling','byteLength','UUtDs','.\x20Request\x20Size\x20-\x20','proceedWithData','./utils','790eBRQsF','pollEventBatchInterval','Processing\x20events.\x20Queue\x20Length\x20-\x20','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','test_run','uploadAttachmentUrl','kSTgJ','TestRunFinished','kind','erzbj','utf8','xoFyP','max','screenshotEventUrl','zNHUW','yNOQo','FQVuu','1823552iWLTCA','startEventBatchPolling','jTFRc','29776kVxWop','uuid','queue','329268tIDOIF','avuys','bPOsz','ruKVU','map','batchAndPostEvents','149538emKdXV','MZtCy','suYsK','PadVx','upload-attachments','../helper','XrpYj','shouldProceed','TestRunSkipped','instance','lAxnn','util','HookRunStarted','XoafN','start','UccST','PFGUt','event_type','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','llSes','102sKQxgI','mHmtT','xWwXj','logs','response','error','split','push','28881OuCoOv','EXCEPTION\x20IN\x20','ocTeC','uploadPending','xHSnc','hook_run','EekSq','EIVJb','getInstance','api/v1/batch','started','shutdown','AMLel','exports','eventUrl','OqhXk','proceedWithUrl','TestRunStarted','1703273AuyByS','format','fOIGq','daOxD','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','data','\x20--\x20','splice','215RqqrfD','length','api/v1/screenshots','TEST_ATTACHMENT','CBTSessionCreated','FvyZQ','statusText','message','REMOVING','add','yltIv','slice','12qbHAdv','fickO','42vrPkdI','FHkCD','LogCreated','pendingUploads','NAORF','EpdKa','BATCH_EVENT_TYPES','resetEventBatchPolling','lSGBr','RESETTING'];a85_0x2ae2=function(){return _0x5d7e7f;};return a85_0x2ae2();}
|
|
1
|
+
function a86_0x2eed(){const _0x3d1437=['KaiGM','queue','REMOVING','slice','pollEventBatchInterval','4|3|1|6|5|2|0','swwhc','event_type','includes','18SYvcat','vzQyo','154244ZFvIEA','Interval-Queue','dyEXq','nYKMH','1804216nnQyVT','ZposY','CBTSessionCreated','282nTtHZH','TEST_SCREENSHOT','join','message','kind','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','status','oFpgr','wNVCK','Zpyft','uploadAttachmentUrl','3035xNzIXA','hook_run','VAVGA','jONdM','uploadPending','util','hdabC','test_run','oMCnA','XpMdv','started','sHQxP','data','utf8','max','mthnl','api/v1/batch','3242eHwscw','HookRunFinished','LogCreated','JBbpL','TestRunSkipped','proceedWithUrl','logs','batchAndPostEvents','statusText','EjYNw','\x20event\x20successful\x20for\x20events\x20','9880244KhEEOZ','eventUrl','NWWpC','EXCEPTION\x20IN\x20','vaSHe','uPRdq','DBdra','QeKCJ','instance','uuid','response','TestRunFinished','screenshotEventUrl','push','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','267456UGYDfa','splice','shouldProceed','BgaXg','removeEventBatchPolling','BqbRY','proceedWithData','pendingUploads','CEUrN','Shutdown-Queue','xLfRt','HookRunStarted','POST','BrWQy','HfQId','TEST_ATTACHMENT','NruLK','1838280HJodMP','39RIFAHT','map','3PTyJXW','\x20bytes.\x20Events\x20are\x20','format','poeUA','TestRunStarted','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','\x20--\x20','YNMCZ','error','start','startEventBatchPolling','length','ZaugG','api/v1/screenshots','upload-attachments','vhxYZ'];a86_0x2eed=function(){return _0x3d1437;};return a86_0x2eed();}const a86_0xf9126f=a86_0x44aa;(function(_0x583d1d,_0x32ea8a){const _0x34495a=a86_0x44aa,_0x4d954a=_0x583d1d();while(!![]){try{const _0x5e051a=parseInt(_0x34495a(0xda))/0x1*(parseInt(_0x34495a(0x118))/0x2)+-parseInt(_0x34495a(0xd8))/0x3*(-parseInt(_0x34495a(0xf5))/0x4)+-parseInt(_0x34495a(0x107))/0x5*(-parseInt(_0x34495a(0xfc))/0x6)+parseInt(_0x34495a(0xc6))/0x7+-parseInt(_0x34495a(0xf9))/0x8*(-parseInt(_0x34495a(0xf3))/0x9)+parseInt(_0x34495a(0xd7))/0xa+-parseInt(_0x34495a(0xb7))/0xb;if(_0x5e051a===_0x32ea8a)break;else _0x4d954a['push'](_0x4d954a['shift']());}catch(_0x5a1bfd){_0x4d954a['push'](_0x4d954a['shift']());}}}(a86_0x2eed,0x4b943));function a86_0x44aa(_0x32edcf,_0xc73367){const _0x2eed13=a86_0x2eed();return a86_0x44aa=function(_0x44aaf9,_0x153b08){_0x44aaf9=_0x44aaf9-0xb6;let _0x5aafa2=_0x2eed13[_0x44aaf9];return _0x5aafa2;},a86_0x44aa(_0x32edcf,_0xc73367);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require('../helper'),util=require(a86_0xf9126f(0x10c));class RequestQueueHandler{static [a86_0xf9126f(0xbf)];[a86_0xf9126f(0xcd)]=0x0;constructor(){const _0x1424ab=a86_0xf9126f,_0x36b3ab={};_0x36b3ab[_0x1424ab(0xbb)]=_0x1424ab(0xef),_0x36b3ab[_0x1424ab(0xe6)]=_0x1424ab(0x117),_0x36b3ab[_0x1424ab(0xe9)]=_0x1424ab(0x11a),_0x36b3ab[_0x1424ab(0xce)]=_0x1424ab(0xfb),_0x36b3ab[_0x1424ab(0x10d)]=_0x1424ab(0xc2),_0x36b3ab['mthnl']=_0x1424ab(0x11c),_0x36b3ab['ZposY']=_0x1424ab(0x119),_0x36b3ab[_0x1424ab(0x121)]=_0x1424ab(0xde),_0x36b3ab[_0x1424ab(0xc9)]=_0x1424ab(0xd1),_0x36b3ab[_0x1424ab(0x112)]=_0x1424ab(0xe8),_0x36b3ab['dyEXq']=_0x1424ab(0xe7);const _0x5efca3=_0x36b3ab,_0x111b63=_0x5efca3[_0x1424ab(0xbb)]['split']('|');let _0x3dc96a=0x0;while(!![]){switch(_0x111b63[_0x3dc96a++]){case'0':this[_0x1424ab(0xee)]=null;continue;case'1':this[_0x1424ab(0xb8)]=_0x5efca3[_0x1424ab(0xe6)];continue;case'2':this['BATCH_EVENT_TYPES']=[_0x5efca3[_0x1424ab(0xe9)],_0x5efca3[_0x1424ab(0xce)],_0x5efca3['hdabC'],_0x5efca3[_0x1424ab(0x116)],_0x5efca3[_0x1424ab(0xfa)],_0x5efca3[_0x1424ab(0x121)],_0x5efca3[_0x1424ab(0xc9)]];continue;case'3':this[_0x1424ab(0x111)]=![];continue;case'4':this['queue']=[];continue;case'5':this[_0x1424ab(0x106)]=_0x5efca3[_0x1424ab(0x112)];continue;case'6':this[_0x1424ab(0xc3)]=_0x5efca3[_0x1424ab(0xf7)];continue;}break;}}static['getInstance'](){const _0x5bd2a8=a86_0xf9126f;return!RequestQueueHandler[_0x5bd2a8(0xbf)]&&(RequestQueueHandler[_0x5bd2a8(0xbf)]=new RequestQueueHandler()),RequestQueueHandler[_0x5bd2a8(0xbf)];}[a86_0xf9126f(0xe3)]=()=>{const _0x4eb489=a86_0xf9126f;!this[_0x4eb489(0x111)]&&(this[_0x4eb489(0x111)]=!![],this[_0x4eb489(0xe4)]());};['add']=_0x161b73=>{const _0x4a22c7=a86_0xf9126f,_0x1126f2={'XpMdv':function(_0x335965,_0xbce90e){return _0x335965===_0xbce90e;},'BqbRY':_0x4a22c7(0xfd),'xLfRt':function(_0x113929,_0xbd7bab){return _0x113929>_0xbd7bab;},'HfQId':_0x4a22c7(0xd5),'oFpgr':function(_0x5aa465,_0x5e9322){return _0x5aa465!==_0x5e9322;},'LxaHl':_0x4a22c7(0xc2),'CpqVf':function(_0x8a16eb,_0x118c04){return _0x8a16eb(_0x118c04);},'wegCf':_0x4a22c7(0x101)};if(this['BATCH_EVENT_TYPES'][_0x4a22c7(0xf2)](_0x161b73[_0x4a22c7(0xf1)])){if(_0x161b73[_0x4a22c7(0x11e)]&&_0x161b73[_0x4a22c7(0x11e)][0x0]&&_0x1126f2[_0x4a22c7(0x110)](_0x161b73[_0x4a22c7(0x11e)][0x0]['kind'],_0x1126f2[_0x4a22c7(0xcb)])){const _0x444f15={};return _0x444f15[_0x4a22c7(0xc8)]=!![],_0x444f15[_0x4a22c7(0xcc)]=[_0x161b73],_0x444f15[_0x4a22c7(0x11d)]=this[_0x4a22c7(0xc3)],_0x444f15;}if(_0x161b73[_0x4a22c7(0x11e)]&&_0x1126f2[_0x4a22c7(0xd0)](_0x161b73[_0x4a22c7(0x11e)][_0x4a22c7(0xe5)],0x0)&&_0x1126f2['XpMdv'](_0x161b73[_0x4a22c7(0x11e)][0x0][_0x4a22c7(0x100)],_0x1126f2[_0x4a22c7(0xd4)])&&_0x1126f2[_0x4a22c7(0x103)](_0x161b73[_0x4a22c7(0xf1)],_0x1126f2['LxaHl'])){const _0x161e51={};return _0x161e51['shouldProceed']=!![],_0x161e51[_0x4a22c7(0xcc)]=[_0x161b73],_0x161e51['proceedWithUrl']=this[_0x4a22c7(0x106)],_0x161e51;}this[_0x4a22c7(0xeb)][_0x4a22c7(0xc4)](_0x161b73);let _0xd4dea1=null;const _0x1d0034=this[_0x4a22c7(0xc8)]();_0x1d0034&&(_0x1126f2['CpqVf'](trace,_0x1126f2['wegCf']),_0xd4dea1=this['queue'][_0x4a22c7(0xed)](0x0,BATCH_SIZE),this[_0x4a22c7(0xeb)][_0x4a22c7(0xc7)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x340b41={};return _0x340b41[_0x4a22c7(0xc8)]=_0x1d0034,_0x340b41[_0x4a22c7(0xcc)]=_0xd4dea1,_0x340b41['proceedWithUrl']=this[_0x4a22c7(0xb8)],_0x340b41;}const _0x295dc8={};return _0x295dc8[_0x4a22c7(0xc8)]=!![],_0x295dc8;};['shutdown']=async()=>{const _0x2ff187=a86_0xf9126f,_0x2c4939={'poeUA':_0x2ff187(0xec),'Zpyft':function(_0x118b4f,_0x5c641e){return _0x118b4f>_0x5c641e;},'IRPeO':_0x2ff187(0xcf),'BrWQy':function(_0x555a40,_0x429442){return _0x555a40>_0x429442;},'oMCnA':function(_0x41e213,_0x2b0576){return _0x41e213(_0x2b0576);}};await this[_0x2ff187(0x10b)](),this[_0x2ff187(0xca)](_0x2c4939[_0x2ff187(0xdd)]);while(_0x2c4939[_0x2ff187(0x105)](this[_0x2ff187(0xeb)]['length'],0x0)){const _0x36dad2=this[_0x2ff187(0xeb)][_0x2ff187(0xed)](0x0,BATCH_SIZE);this[_0x2ff187(0xeb)][_0x2ff187(0xc7)](0x0,BATCH_SIZE),await this[_0x2ff187(0x11f)](this[_0x2ff187(0xb8)],_0x2c4939['IRPeO'],_0x36dad2);}_0x2c4939[_0x2ff187(0xd3)](this[_0x2ff187(0xcd)],0x0)&&_0x2c4939[_0x2ff187(0x10f)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x2ff187(0xcd)]);};['batchAndPostEvents']=async(_0x3309ee,_0x32302c,_0x14abb7)=>{const _0x11c084=a86_0xf9126f,_0x5780c7={'DBdra':function(_0x32b337,_0x4e3392){return _0x32b337(_0x4e3392);},'wXtqL':_0x11c084(0x114),'ZpxoD':function(_0x1d34ec){return _0x1d34ec();},'swwhc':function(_0x1dec2a,_0x1ae77c,_0x1668a9,_0x5bf6cb,_0x57a370){return _0x1dec2a(_0x1ae77c,_0x1668a9,_0x5bf6cb,_0x57a370);},'VAVGA':_0x11c084(0xd2),'mgEHu':function(_0x5d043a,_0x5a8342){return _0x5d043a-_0x5a8342;},'QeKCJ':function(_0x28737d,_0x1eab3e){return _0x28737d(_0x1eab3e);},'jONdM':function(_0x49e2bb,_0x10ea79){return _0x49e2bb-_0x10ea79;}};let _0x12205f='';try{_0x12205f=_0x14abb7[_0x11c084(0xd9)](_0xe2ba5e=>'\x27'+_0xe2ba5e['event_type']+'\x27:'+(nestedKeyValue(_0xe2ba5e,[_0x11c084(0x10e),_0x11c084(0xc0)])||nestedKeyValue(_0xe2ba5e,[_0x11c084(0x108),_0x11c084(0xc0)])))[_0x11c084(0xfe)](','),_0x5780c7[_0x11c084(0xbd)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x32302c+'.\x20Request\x20Size\x20-\x20'+Buffer['byteLength'](util[_0x11c084(0xdc)]('%j',_0x14abb7),_0x5780c7['wXtqL'])+_0x11c084(0xdb)+_0x12205f);}catch(_0x20d557){_0x5780c7[_0x11c084(0xbd)](debug,_0x11c084(0xdf)+util[_0x11c084(0xdc)](_0x20d557)+'}');}const _0x499756={'headers':_0x5780c7['ZpxoD'](getDefaultHeaders)};try{const _0x4b4c4e=await _0x5780c7[_0x11c084(0xf0)](nodeRequest,_0x5780c7[_0x11c084(0x109)],_0x3309ee,_0x14abb7,_0x499756);if(_0x4b4c4e[_0x11c084(0x113)][_0x11c084(0xe2)]){const _0x56786b={};_0x56786b[_0x11c084(0xff)]=_0x4b4c4e['data'][_0x11c084(0xe2)];throw _0x56786b;}else _0x5780c7[_0x11c084(0xbd)](debug,_0x32302c+_0x11c084(0xb6)+_0x12205f+_0x11c084(0xe0)+util['format']('%j',_0x4b4c4e[_0x11c084(0x113)])),this[_0x11c084(0xcd)]=Math[_0x11c084(0x115)](0x0,_0x5780c7['mgEHu'](this[_0x11c084(0xcd)],_0x14abb7[_0x11c084(0xe5)]));}catch(_0x5cd566){_0x5cd566[_0x11c084(0xc1)]?_0x5780c7[_0x11c084(0xbe)](debug,_0x11c084(0xba)+_0x32302c+_0x11c084(0xc5)+_0x5cd566[_0x11c084(0xc1)][_0x11c084(0x102)]+'\x20'+_0x5cd566['response'][_0x11c084(0x120)]+'\x20'+util[_0x11c084(0xdc)]('%j',_0x5cd566[_0x11c084(0xc1)])):_0x5780c7[_0x11c084(0xbe)](debug,_0x11c084(0xba)+_0x32302c+_0x11c084(0xc5)+(_0x5cd566['message']||_0x5cd566)),this[_0x11c084(0xcd)]=Math['max'](0x0,_0x5780c7[_0x11c084(0x10a)](this[_0x11c084(0xcd)],_0x14abb7[_0x11c084(0xe5)]));}};[a86_0xf9126f(0xe4)]=()=>{const _0x1843dc=a86_0xf9126f,_0x1d4f1b={'lLlHg':function(_0x38e78f,_0x44f3f1){return _0x38e78f>_0x44f3f1;},'uPRdq':function(_0x3d9393,_0x3c2fff){return _0x3d9393(_0x3c2fff);},'MBPQN':_0x1843dc(0xf6),'KaiGM':function(_0xc396f9,_0x5365e9){return _0xc396f9(_0x5365e9);},'JBbpL':function(_0x5ae92e,_0x3a1e,_0x195bb8){return _0x5ae92e(_0x3a1e,_0x195bb8);}};this[_0x1843dc(0xee)]=_0x1d4f1b[_0x1843dc(0x11b)](setInterval,async()=>{const _0x54c4d1=_0x1843dc;if(_0x1d4f1b['lLlHg'](this['queue'][_0x54c4d1(0xe5)],0x0)){_0x1d4f1b[_0x54c4d1(0xbc)](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x54c4d1(0xeb)][_0x54c4d1(0xe5)]);const _0x1ed038=this[_0x54c4d1(0xeb)][_0x54c4d1(0xed)](0x0,BATCH_SIZE);this['queue'][_0x54c4d1(0xc7)](0x0,BATCH_SIZE),await this[_0x54c4d1(0x11f)](this[_0x54c4d1(0xb8)],_0x1d4f1b['MBPQN'],_0x1ed038),_0x1d4f1b[_0x54c4d1(0xea)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this['queue']['length']);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x72bdb=a86_0xf9126f,_0x40584e={};_0x40584e[_0x72bdb(0x104)]='RESETTING';const _0x1986f6=_0x40584e;this[_0x72bdb(0xca)](_0x1986f6[_0x72bdb(0x104)]),this[_0x72bdb(0xe4)]();};[a86_0xf9126f(0xca)]=_0x2d293e=>{const _0x415923=a86_0xf9126f,_0x56edff={'NWWpC':function(_0x584d89,_0x53e49d){return _0x584d89(_0x53e49d);},'NskpU':function(_0x84de04,_0x5460df){return _0x84de04===_0x5460df;},'nYKMH':'REMOVING'};this[_0x415923(0xee)]&&(_0x56edff[_0x415923(0xb9)](clearInterval,this['pollEventBatchInterval']),this['pollEventBatchInterval']=null,_0x56edff['NskpU'](_0x2d293e,_0x56edff[_0x415923(0xf8)])&&(this[_0x415923(0x111)]=![]));};[a86_0xf9126f(0xc8)]=()=>{const _0x51e45a=a86_0xf9126f,_0x2066af={};_0x2066af[_0x51e45a(0xd6)]=function(_0x32cfdb,_0x141728){return _0x32cfdb>=_0x141728;};const _0x4470a6=_0x2066af;return _0x4470a6[_0x51e45a(0xd6)](this[_0x51e45a(0xeb)][_0x51e45a(0xe5)],BATCH_SIZE);};async[a86_0xf9126f(0x10b)](_0x468e55=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x286a1e=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x45edcc=a86_0xf9126f,_0x2af28b={'fWLDR':function(_0x2e222d,_0x515606){return _0x2e222d<=_0x515606;},'YNMCZ':function(_0xc57190,_0x5323cc){return _0xc57190<=_0x5323cc;},'vzQyo':function(_0x4647cf,_0x55c853){return _0x4647cf(_0x55c853);},'JEFDs':function(_0x3cdaec,_0x2199aa){return _0x3cdaec-_0x2199aa;}};if(_0x2af28b['fWLDR'](this[_0x45edcc(0xcd)],0x0)||_0x2af28b[_0x45edcc(0xe1)](_0x468e55,0x0))return;return await _0x2af28b[_0x45edcc(0xf4)](sleep,_0x286a1e),this[_0x45edcc(0x10b)](_0x2af28b['JEFDs'](_0x468e55,_0x286a1e));}}module['exports']=RequestQueueHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a86_0x4d92(_0x402e23,_0x5c74aa){const _0xff4bc2=a86_0xff4b();return a86_0x4d92=function(_0x4d924c,_0x113faf){_0x4d924c=_0x4d924c-0xec;let _0x1cd7ad=_0xff4bc2[_0x4d924c];return _0x1cd7ad;},a86_0x4d92(_0x402e23,_0x5c74aa);}const a86_0x3b47d2=a86_0x4d92;(function(_0x4ac01b,_0x316bde){const _0x5d9431=a86_0x4d92,_0x1198ac=_0x4ac01b();while(!![]){try{const _0x915f77=parseInt(_0x5d9431(0x179))/0x1*(-parseInt(_0x5d9431(0x141))/0x2)+parseInt(_0x5d9431(0x169))/0x3+parseInt(_0x5d9431(0x164))/0x4*(-parseInt(_0x5d9431(0x18e))/0x5)+-parseInt(_0x5d9431(0x110))/0x6+-parseInt(_0x5d9431(0x16b))/0x7*(-parseInt(_0x5d9431(0x108))/0x8)+parseInt(_0x5d9431(0x18a))/0x9*(-parseInt(_0x5d9431(0x124))/0xa)+parseInt(_0x5d9431(0x12e))/0xb;if(_0x915f77===_0x316bde)break;else _0x1198ac['push'](_0x1198ac['shift']());}catch(_0x71c6d5){_0x1198ac['push'](_0x1198ac['shift']());}}}(a86_0xff4b,0x2ba64));const bsSetupHelper=require(a86_0x3b47d2(0x162)),path=require(a86_0x3b47d2(0x156)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a86_0x3b47d2(0x136)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x3b47d2(0x17c)),RequestQueueHandler=require(a86_0x3b47d2(0x128)),logger=require(a86_0x3b47d2(0x10a))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x3b47d2(0x14f)),util=require(a86_0x3b47d2(0x13f));function a86_0xff4b(){const _0x4879ae=['1cnlnvZ','VGURG','pBOhX','./constants','stringify','format','BROWSERSTACK_TESTHUB_JWT','nkDsw','quXKZ','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','KSuKQ','requestQueueHandler','TAsyv','json','Retry\x20runs\x20exceeded','frameworkName','fBSIX','16281VTeZzj','data','username','ERROR_ACCESS_DENIED','5WApMwv','TestRunFinished','fQahW','JSbGq','CyVSH','pREOe',']\x20event\x20successful!','kxggO','BS_A11Y_JWT','getLogTag','xBBhO','Batch-Queue','SCAkD','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','event_type','LogCreated','app','Test_Skipped_Upload','XfYtN','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','flsbS','BmHvk','\x20retry\x20runs\x20exceeded','AZwHt','EBcLB','JifJf','XnfLm','browserstackAutomation','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','FjFbk','info','api/v1/builds','ERROR_SDK_DEPRECATED','uuid','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Test_End_Upload','toString','Hook_End_Upload','IZiBB','5240Znrlzv','getUserName','../logger','kColJ','launch','ZRVns','EsGRa','BS_TESTOPS_BUILD_COMPLETED','2070684qHdgaT','logs','ysuVA','response','POST','JvyUK','sendEventData','status','BROWSERSTACK_TESTHUB_UUID','nsfHH','WngKi','HMlfr','yOoeU','getHostInfo','ERROR_INVALID_CREDENTIALS','env','oDFQr','cwd','exports','cfhqP','1370xXYiwN','sendTraceZip','build_hashed_id','eZYnn','./requestQueueHandler','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','MhEio','getInstance','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','FRFaj','6785680wSviJh','bgyQN','projectName','debug','basename','Processing\x20event\x20-\x20\x27','test_run','layHH','./utils','eEyWe','BROWSERSTACK_RERUN','woggG','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','lAptE','statusText','success','length','util','OgrOL','1766UBXscm','false','sYeVx','HookRunFinished','NdJYk','headers','BS_TESTOPS_JWT','max','Content-Type','eventUrl','null','includes','allow_screenshots','api/v1/event','../../helpers/testhub/utils','JskHk','YtBpf','nestedKeyValue','KXCvc','ypGrC','uploadEventData','path','test_run_uuid','EXCEPTION\x20IN\x20','RbFEH','VbJCM','password','X-BSTACK-TESTOPS','hook_run','KNLsd','getAgentVersion','BROWSERSTACK_BUILD_RUN_IDENTIFIER','jwt','../helper','TxaxM','1060460DxGvuI','Bearer\x20','DJXeL','getCiInfo','true','667164ROQFie','Authorization','2121fCpIIP','start','BS_TESTOPS_BUILD_HASHED_ID','getAccessKey','Thdzg','Sending\x20trace\x20zip\x20for\x20test:\x20','Test_Start_Upload','HPPRb','iVXvu','error','pendingUploads','waitForBuildStatus','JaBKu','message'];a86_0xff4b=function(){return _0x4879ae;};return a86_0xff4b();}class SessionHandler{static [a86_0x3b47d2(0x184)]=RequestQueueHandler[a86_0x3b47d2(0x12b)]();static async[a86_0x3b47d2(0x10c)](_0x384386,_0x465cec){const _0xab097f=a86_0x3b47d2,_0x223ca3={'kColJ':function(_0xde5bd1,_0x1ee72d){return _0xde5bd1||_0x1ee72d;},'sYeVx':function(_0x2762b3,_0x15b577){return _0x2762b3===_0x15b577;},'RbFEH':function(_0x53ceae,_0x4c63c9){return _0x53ceae(_0x4c63c9);},'VGURG':_0xab097f(0x12c),'fBSIX':_0xab097f(0x142),'WngKi':_0xab097f(0x186),'Thdzg':function(_0x2379de,_0x521c20,_0x3abe3c,_0x52e3ee,_0x1e28b9){return _0x2379de(_0x521c20,_0x3abe3c,_0x52e3ee,_0x1e28b9);},'uHAad':_0xab097f(0x114),'TAsyv':_0xab097f(0x100),'JskHk':function(_0x5b66b1,_0x22c239){return _0x5b66b1(_0x22c239);},'BwACu':'Build\x20creation\x20successful!','XfYtN':function(_0x2ad3dd){return _0x2ad3dd();},'KXCvc':'true','TxaxM':_0xab097f(0x14b),'XnfLm':function(_0x205f03,_0x25b93a){return _0x205f03(_0x25b93a);},'YtBpf':_0xab097f(0x11e),'flsbS':_0xab097f(0x18d),'layHH':_0xab097f(0x101)},_0x303606=bsSetupHelper[_0xab097f(0x109)](_0x384386),_0x4eac0a=bsSetupHelper[_0xab097f(0x16e)](_0x384386),_0x8f2573=_0x223ca3[_0xab097f(0x10b)](_0x303606,'')+':'+_0x223ca3[_0xab097f(0x10b)](_0x4eac0a,'');if(_0x223ca3[_0xab097f(0x143)](_0x8f2573,':'))return _0x223ca3[_0xab097f(0x159)](debug,_0x223ca3[_0xab097f(0x17a)]),process['env'][_0xab097f(0x10f)]=_0x223ca3[_0xab097f(0x189)],[null,null];let _0xc0c7e4=![],_0x497022=![];if(_0x384386[_0xab097f(0xfc)]&&_0x384386[_0xab097f(0xf1)])_0x497022=!![];else _0x384386['browserstackAutomation']&&(_0xc0c7e4=!![]);try{const _0x5bb249={'format':_0x223ca3[_0xab097f(0x11a)],'project_name':_0x384386[_0xab097f(0x130)]||'','name':_0x384386['buildName']||path[_0xab097f(0x132)](path['resolve'](process[_0xab097f(0x121)]())),'build_identifier':_0x384386['buildIdentifier'],'description':_0x384386['buildDescription']||'','start_time':new Date()['toISOString'](),'tags':_0x223ca3[_0xab097f(0x159)](getCustomTags,_0x384386),'host_info':bsSetupHelper[_0xab097f(0x11d)](),'ci_info':bsSetupHelper[_0xab097f(0x167)](),'build_run_identifier':process['env'][_0xab097f(0x160)],'failed_tests_rerun':process[_0xab097f(0x11f)][_0xab097f(0x138)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x465cec[_0xab097f(0x188)],'frameworkVersion':_0x465cec['frameworkVersion'],'sdkVersion':bsSetupHelper[_0xab097f(0x15f)]()},'product_map':_0x223ca3[_0xab097f(0x159)](getProductMap,_0x384386)},_0x134304={};_0x134304[_0xab097f(0x18c)]=_0x303606,_0x134304[_0xab097f(0x15b)]=_0x4eac0a;const _0x1d699c={'auth':_0x134304,'headers':_0x223ca3[_0xab097f(0x159)](getDefaultHeaders,![])},_0x1840df=await _0x223ca3[_0xab097f(0x16f)](nodeRequest,_0x223ca3['uHAad'],_0x223ca3[_0xab097f(0x185)],_0x5bb249,_0x1d699c);_0x223ca3[_0xab097f(0x150)](debug,_0x223ca3['BwACu']);const _0x34173c=_0x1840df[_0xab097f(0x18b)];_0x34173c[_0xab097f(0x126)]&&(process[_0xab097f(0x11f)][_0xab097f(0x118)]=_0x34173c[_0xab097f(0x126)]);if(_0x223ca3[_0xab097f(0xf3)](isTestObservabilitySession)){process[_0xab097f(0x11f)]['BS_TESTOPS_BUILD_COMPLETED']=_0x223ca3[_0xab097f(0x153)];if(_0x34173c[_0xab097f(0x161)]){process['env'][_0xab097f(0x147)]=_0x34173c['jwt'];const _0x55d4be={};_0x55d4be[_0xab097f(0x18c)]=_0x303606,_0x55d4be[_0xab097f(0x15b)]=_0x4eac0a,process[_0xab097f(0x11f)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0xab097f(0x17d)](_0x55d4be);}_0x34173c['build_hashed_id']&&(process[_0xab097f(0x11f)][_0xab097f(0x16d)]=_0x34173c[_0xab097f(0x126)]),_0x34173c[_0xab097f(0x14d)]&&(process[_0xab097f(0x11f)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x34173c[_0xab097f(0x14d)][_0xab097f(0x105)]());}return[_0x1840df[_0xab097f(0x18b)]['jwt'],_0x1840df['data'][_0xab097f(0x126)],_0x1840df[_0xab097f(0x18b)][_0xab097f(0x14d)]];}catch(_0x1d9aa1){process[_0xab097f(0x11f)]['BROWSERSTACK_TESTHUB_UUID']=_0x223ca3[_0xab097f(0x163)],process['env'][_0xab097f(0x10f)]=_0x223ca3[_0xab097f(0x189)],process[_0xab097f(0x11f)][_0xab097f(0x147)]=_0x223ca3[_0xab097f(0x163)],process['env'][_0xab097f(0x16d)]=_0x223ca3[_0xab097f(0x163)],process['env']['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x223ca3[_0xab097f(0x163)];_0x1d9aa1['response']?_0x223ca3[_0xab097f(0xfb)](debug,_0xab097f(0x103)+_0x1d9aa1['response'][_0xab097f(0x117)]+'\x20'+_0x1d9aa1['response'][_0xab097f(0x13c)]+'\x20'+JSON[_0xab097f(0x17d)](_0x1d9aa1[_0xab097f(0x113)][_0xab097f(0x18b)])):_0x223ca3[_0xab097f(0xfb)](debug,_0xab097f(0x103)+(_0x1d9aa1[_0xab097f(0x178)]||_0x1d9aa1));if(_0x1d9aa1&&_0x1d9aa1[_0xab097f(0x178)]){const _0x4057e7=_0x1d9aa1[_0xab097f(0x178)];switch(_0x1d9aa1['errorType']){case _0x223ca3[_0xab097f(0x151)]:logger[_0xab097f(0x174)](_0x4057e7);break;case _0x223ca3[_0xab097f(0xf5)]:logger[_0xab097f(0xff)](_0x4057e7);break;case _0x223ca3[_0xab097f(0x135)]:logger['error'](_0x4057e7);break;default:logger[_0xab097f(0x174)](_0x4057e7);}}else console['info'](_0xab097f(0x129)+_0x1d9aa1);return[null,null,null];}}static async[a86_0x3b47d2(0x176)](){const _0x3c6a03=a86_0x3b47d2,_0x3d351d={'fQahW':_0x3c6a03(0x168),'MhEio':_0x3c6a03(0x142),'AZwHt':function(_0x29c5f1,_0x399ed1){return _0x29c5f1(_0x399ed1);}},_0x558e97=process[_0x3c6a03(0x11f)][_0x3c6a03(0x10f)];if([_0x3d351d[_0x3c6a03(0x190)],_0x3d351d[_0x3c6a03(0x12a)]][_0x3c6a03(0x14c)](_0x558e97))return;while([_0x3d351d[_0x3c6a03(0x190)],_0x3d351d[_0x3c6a03(0x12a)]][_0x3c6a03(0x14c)](_0x558e97)){await _0x3d351d[_0x3c6a03(0xf8)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a86_0x3b47d2(0x197)](_0x27df87){const _0xbf0c39=a86_0x3b47d2,_0x3f5d77={};_0x3f5d77[_0xbf0c39(0x173)]=_0xbf0c39(0x171),_0x3f5d77[_0xbf0c39(0x154)]=_0xbf0c39(0x104),_0x3f5d77[_0xbf0c39(0x193)]=_0xbf0c39(0xf2),_0x3f5d77[_0xbf0c39(0x195)]='Log_Upload',_0x3f5d77[_0xbf0c39(0x115)]='Hook_Start_Upload',_0x3f5d77['BmHvk']=_0xbf0c39(0x106),_0x3f5d77[_0xbf0c39(0xed)]='CBT_Upload';const _0x3b038c=_0x3f5d77,_0x224258={};return _0x224258['TestRunStarted']=_0x3b038c[_0xbf0c39(0x173)],_0x224258[_0xbf0c39(0x18f)]=_0x3b038c[_0xbf0c39(0x154)],_0x224258['TestRunSkipped']=_0x3b038c['pREOe'],_0x224258[_0xbf0c39(0xf0)]=_0x3b038c['kxggO'],_0x224258['HookRunStarted']=_0x3b038c[_0xbf0c39(0x115)],_0x224258[_0xbf0c39(0x144)]=_0x3b038c[_0xbf0c39(0xf6)],_0x224258['CBTSessionCreated']=_0x3b038c[_0xbf0c39(0xed)],_0x224258[_0x27df87[_0xbf0c39(0xef)]];}static async[a86_0x3b47d2(0x116)](_0x32f4a7,_0x638a92=0x0,_0x5520a2=null){const _0x243b47=a86_0x3b47d2,_0x4265bb={'DJXeL':function(_0x1f3c13,_0x285b25){return _0x1f3c13===_0x285b25;},'lAptE':_0x243b47(0x125),'EsGRa':function(_0x102263,_0x33650e){return _0x102263!==_0x33650e;},'oDFQr':'application/json','quXKZ':_0x243b47(0x168),'IZiBB':function(_0x27bbcb,_0x44de58,_0x3d3cd2,_0x5b3397,_0x24c7ec){return _0x27bbcb(_0x44de58,_0x3d3cd2,_0x5b3397,_0x24c7ec);},'FjFbk':_0x243b47(0x114),'CyVSH':function(_0x38d250,_0x5f1624,_0x432795,_0x34fc07,_0x50979d){return _0x38d250(_0x5f1624,_0x432795,_0x34fc07,_0x50979d);},'yOoeU':function(_0x10beae,_0x1563c2){return _0x10beae(_0x1563c2);},'OgrOL':function(_0x8606fa,_0x3602bd){return _0x8606fa!==_0x3602bd;},'woggG':_0x243b47(0xec),'HPPRb':function(_0x31a9fe,_0x414c9c){return _0x31a9fe-_0x414c9c;},'qXTcE':function(_0x41f458,_0x2a84b7){return _0x41f458===_0x2a84b7;},'JifJf':_0x243b47(0x14e),'JSbGq':_0x243b47(0x13d),'EBcLB':function(_0x4440b6,_0x4d8d0f){return _0x4440b6(_0x4d8d0f);},'jSwMv':function(_0x2efe59,_0x12e4c9){return _0x2efe59!==_0x12e4c9;},'FRFaj':_0x243b47(0x174)};_0x4265bb[_0x243b47(0x166)](_0x5520a2,_0x4265bb['lAptE'])&&logger[_0x243b47(0x131)](_0x243b47(0x170)+_0x32f4a7[_0x243b47(0x111)][0x0][_0x243b47(0x157)]);const _0xdf8708=await this['getLogTag'](_0x32f4a7);let _0x53d73f=_0x32f4a7,_0x127b92=EVENT_ENDPOINT;_0x4265bb[_0x243b47(0x10e)](_0x5520a2,_0x4265bb[_0x243b47(0x13b)])&&this[_0x243b47(0x184)][_0x243b47(0x16c)]();const {shouldProceed:_0x4ea418,proceedWithData:_0x1bc86d,proceedWithUrl:_0x419a39}=this[_0x243b47(0x184)]['add'](_0x32f4a7);if(!_0x4ea418)return;else _0x1bc86d&&(_0x53d73f=_0x1bc86d,_0x127b92=_0x419a39);const _0x63e84a={};_0x63e84a[_0x243b47(0x16a)]=_0x243b47(0x165)+process[_0x243b47(0x11f)]['BROWSERSTACK_TESTHUB_JWT'],_0x63e84a[_0x243b47(0x149)]=_0x4265bb[_0x243b47(0x120)],_0x63e84a[_0x243b47(0x15c)]=_0x4265bb[_0x243b47(0x181)];const _0x499f35={};_0x499f35[_0x243b47(0x146)]=_0x63e84a;const _0x55b2e9=_0x499f35;let _0x30c498;try{_0x4265bb[_0x243b47(0x166)](_0x5520a2,_0x4265bb[_0x243b47(0x13b)])?(logger[_0x243b47(0x131)](_0x243b47(0xf4)+_0x32f4a7?.['logs'][0x0]?.[_0x243b47(0x157)]),_0x30c498=await _0x4265bb[_0x243b47(0x107)](asyncAwaitNodeReq,_0x4265bb[_0x243b47(0xfe)],_0x127b92,_0x53d73f,_0x55b2e9),logger[_0x243b47(0x131)]('Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20'+_0x32f4a7?.['logs'][0x0]?.[_0x243b47(0x157)])):_0x30c498=await _0x4265bb[_0x243b47(0x192)](nodeRequest,_0x4265bb[_0x243b47(0xfe)],_0x127b92,_0x53d73f,_0x55b2e9);if(_0x30c498[_0x243b47(0x18b)][_0x243b47(0x174)]){const _0xd31a61={};_0xd31a61[_0x243b47(0x178)]=_0x30c498['data'][_0x243b47(0x174)];throw _0xd31a61;}else{_0x4265bb[_0x243b47(0x11c)](debug,(_0x4265bb[_0x243b47(0x140)](_0x127b92,this[_0x243b47(0x184)][_0x243b47(0x14a)])?_0xdf8708:_0x4265bb['woggG'])+'['+_0x638a92+_0x243b47(0x194)),this['requestQueueHandler'][_0x243b47(0x175)]=Math[_0x243b47(0x148)](0x0,_0x4265bb[_0x243b47(0x172)](this[_0x243b47(0x184)][_0x243b47(0x175)],_0x4265bb['qXTcE'](_0x127b92,_0x4265bb[_0x243b47(0xfa)])?0x1:_0x53d73f[_0x243b47(0x13e)]));const _0x58946c={};return _0x58946c['status']=_0x4265bb[_0x243b47(0x191)],_0x58946c['message']='',_0x58946c;}}catch(_0x4f20c9){_0x4f20c9['response']?_0x4265bb[_0x243b47(0xf9)](debug,'EXCEPTION\x20IN\x20'+(_0x4265bb[_0x243b47(0x140)](_0x127b92,this[_0x243b47(0x184)][_0x243b47(0x14a)])?_0xdf8708:_0x4265bb[_0x243b47(0x139)])+_0x243b47(0xfd)+_0x4f20c9[_0x243b47(0x113)][_0x243b47(0x117)]+'\x20'+_0x4f20c9[_0x243b47(0x113)][_0x243b47(0x13c)]+'\x20'+util['format'](_0x4f20c9[_0x243b47(0x113)][_0x243b47(0x18b)])):_0x4265bb[_0x243b47(0x11c)](debug,'EXCEPTION\x20IN\x20'+(_0x4265bb['jSwMv'](_0x127b92,this[_0x243b47(0x184)][_0x243b47(0x14a)])?_0xdf8708:_0x4265bb[_0x243b47(0x139)])+_0x243b47(0xfd)+util[_0x243b47(0x17e)](_0x4f20c9));this[_0x243b47(0x184)][_0x243b47(0x175)]=Math[_0x243b47(0x148)](0x0,_0x4265bb[_0x243b47(0x172)](this['requestQueueHandler']['pendingUploads'],_0x4265bb['DJXeL'](_0x127b92,_0x4265bb[_0x243b47(0xfa)])?0x1:_0x53d73f[_0x243b47(0x13e)]));const _0x5bf17c={};return _0x5bf17c[_0x243b47(0x117)]=_0x4265bb[_0x243b47(0x12d)],_0x5bf17c['message']=_0x4f20c9[_0x243b47(0x178)]||(_0x4f20c9['response']?_0x4f20c9[_0x243b47(0x113)]['status']+':'+_0x4f20c9[_0x243b47(0x113)][_0x243b47(0x13c)]:_0x4f20c9),_0x5bf17c;}}static async[a86_0x3b47d2(0x155)](_0x9b4248,_0x4a319c=0x0){const _0x2d68b1=a86_0x3b47d2,_0x3be8d5={'eEyWe':function(_0x421ba7,_0x5a3cd3){return _0x421ba7+_0x5a3cd3;},'vWgpy':function(_0x412b72,_0x9478d){return _0x412b72(_0x9478d);},'KSuKQ':_0x2d68b1(0x134),'cfhqP':_0x2d68b1(0x102),'iLqfx':_0x2d68b1(0x15d),'VbJCM':function(_0x3af44b,_0x5f5187,_0x4cb126){return _0x3af44b(_0x5f5187,_0x4cb126);},'pBOhX':'uploadEventData','nkDsw':function(_0x5387ac,_0x2d9123){return _0x5387ac===_0x2d9123;},'xBBhO':function(_0xb3754a,_0x10362c){return _0xb3754a!==_0x10362c;},'HMlfr':'null','zWWFe':_0x2d68b1(0x168),'NdJYk':function(_0x3feaf5){return _0x3feaf5();},'bgyQN':function(_0x58bc13,_0x49466d){return _0x58bc13-_0x49466d;},'nsfHH':_0x2d68b1(0x174),'KNLsd':_0x2d68b1(0x13a),'ysuVA':function(_0x58fd7d,_0x2810e4){return _0x58fd7d>=_0x2810e4;},'JaBKu':function(_0x2668a1,_0x68221c){return _0x2668a1(_0x68221c);},'eZYnn':_0x2d68b1(0x187),'ZRVns':_0x2d68b1(0x142)},_0x3ec842=this[_0x2d68b1(0x197)](_0x9b4248);_0x3be8d5['vWgpy'](trace,_0x2d68b1(0x133)+_0x9b4248['event_type']+'\x27\x20'+(bsSetupHelper[_0x2d68b1(0x152)](_0x9b4248,[_0x3be8d5[_0x2d68b1(0x183)],_0x3be8d5[_0x2d68b1(0x123)]])||bsSetupHelper[_0x2d68b1(0x152)](_0x9b4248,[_0x3be8d5['iLqfx'],_0x3be8d5[_0x2d68b1(0x123)]])));if(!_0x3be8d5[_0x2d68b1(0x15a)](shouldProcessEventForTesthub,_0x9b4248[_0x2d68b1(0xef)],_0x3be8d5[_0x2d68b1(0x17b)]))return;_0x3be8d5[_0x2d68b1(0x180)](_0x4a319c,0x0)&&process['env']['BROWSERSTACK_TESTHUB_JWT']&&_0x3be8d5[_0x2d68b1(0x198)](process[_0x2d68b1(0x11f)][_0x2d68b1(0x17f)],_0x3be8d5[_0x2d68b1(0x11b)])&&(this[_0x2d68b1(0x184)][_0x2d68b1(0x175)]+=0x1);if(_0x3be8d5[_0x2d68b1(0x180)](process[_0x2d68b1(0x11f)][_0x2d68b1(0x10f)],_0x3be8d5['zWWFe'])||process[_0x2d68b1(0x11f)][_0x2d68b1(0x196)]||_0x3be8d5[_0x2d68b1(0x145)](isPercyBuild)){if(_0x3be8d5[_0x2d68b1(0x180)](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x3be8d5[_0x2d68b1(0x11b)])){_0x3be8d5['vWgpy'](debug,_0x2d68b1(0x158)+_0x3ec842+_0x2d68b1(0x182)),this['requestQueueHandler'][_0x2d68b1(0x175)]=Math[_0x2d68b1(0x148)](0x0,_0x3be8d5[_0x2d68b1(0x12f)](this['requestQueueHandler'][_0x2d68b1(0x175)],0x1));const _0x35e06e={};return _0x35e06e['status']=_0x3be8d5['nsfHH'],_0x35e06e[_0x2d68b1(0x178)]=_0x3be8d5[_0x2d68b1(0x15e)],_0x35e06e;}return await this['sendEventData'](_0x9b4248,_0x4a319c);}else{if(_0x3be8d5[_0x2d68b1(0x112)](_0x4a319c,0x5)){_0x3be8d5[_0x2d68b1(0x177)](debug,_0x2d68b1(0x158)+_0x3ec842+_0x2d68b1(0xee)+_0x3ec842+_0x2d68b1(0xf7));_0x3be8d5[_0x2d68b1(0x198)](process[_0x2d68b1(0x11f)][_0x2d68b1(0x17f)],_0x3be8d5[_0x2d68b1(0x11b)])&&(this[_0x2d68b1(0x184)][_0x2d68b1(0x175)]=Math[_0x2d68b1(0x148)](0x0,_0x3be8d5[_0x2d68b1(0x12f)](this[_0x2d68b1(0x184)]['pendingUploads'],0x1)));const _0x351639={};return _0x351639['status']=_0x3be8d5[_0x2d68b1(0x119)],_0x351639[_0x2d68b1(0x178)]=_0x3be8d5[_0x2d68b1(0x127)],_0x351639;}else _0x3be8d5[_0x2d68b1(0x198)](process[_0x2d68b1(0x11f)]['BS_TESTOPS_BUILD_COMPLETED'],_0x3be8d5[_0x2d68b1(0x10d)])&&_0x3be8d5[_0x2d68b1(0x15a)](setTimeout,()=>{const _0x1bcddf=_0x2d68b1;this['uploadEventData'](_0x9b4248,_0x3be8d5[_0x1bcddf(0x137)](_0x4a319c,0x1));},0x3e8);}}}module[a86_0x3b47d2(0x122)]=SessionHandler;
|
|
1
|
+
const a87_0x458a91=a87_0x58bb;(function(_0x86ad65,_0x246aea){const _0x25d728=a87_0x58bb,_0xc95ce0=_0x86ad65();while(!![]){try{const _0x2525ba=-parseInt(_0x25d728(0x1ae))/0x1*(-parseInt(_0x25d728(0x17a))/0x2)+-parseInt(_0x25d728(0x14e))/0x3*(parseInt(_0x25d728(0x1a4))/0x4)+-parseInt(_0x25d728(0x1c3))/0x5+parseInt(_0x25d728(0x1be))/0x6*(parseInt(_0x25d728(0x15e))/0x7)+parseInt(_0x25d728(0x151))/0x8+-parseInt(_0x25d728(0x186))/0x9*(parseInt(_0x25d728(0x1b7))/0xa)+-parseInt(_0x25d728(0x198))/0xb;if(_0x2525ba===_0x246aea)break;else _0xc95ce0['push'](_0xc95ce0['shift']());}catch(_0x33294f){_0xc95ce0['push'](_0xc95ce0['shift']());}}}(a87_0x8591,0xbd734));function a87_0x58bb(_0x156ec1,_0x2d395d){const _0x8591be=a87_0x8591();return a87_0x58bb=function(_0x58bb48,_0xecb535){_0x58bb48=_0x58bb48-0x14e;let _0xdf6e68=_0x8591be[_0x58bb48];return _0xdf6e68;},a87_0x58bb(_0x156ec1,_0x2d395d);}const bsSetupHelper=require('../helper'),path=require(a87_0x458a91(0x19d)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0x458a91(0x1b0)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0x458a91(0x1ec)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a87_0x458a91(0x177))[a87_0x458a91(0x1e1)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a87_0x458a91(0x1b2)),util=require('util');class SessionHandler{static [a87_0x458a91(0x192)]=RequestQueueHandler[a87_0x458a91(0x1fa)]();static async[a87_0x458a91(0x187)](_0x13f900,_0x6c4069){const _0x556389=a87_0x458a91,_0x573510={'YfdUu':function(_0x5838cd,_0x55342a){return _0x5838cd||_0x55342a;},'utjwH':function(_0x3cbee2,_0x1ddee2){return _0x3cbee2||_0x1ddee2;},'dwDji':function(_0xef8afb,_0x75ef16){return _0xef8afb===_0x75ef16;},'KBLcL':function(_0x5112d9,_0x153fb0){return _0x5112d9(_0x153fb0);},'BfUnb':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','CvalN':_0x556389(0x17c),'hMiXp':_0x556389(0x1bf),'UKElc':function(_0x54f6db,_0x258091){return _0x54f6db(_0x258091);},'GUTTa':function(_0x77f841,_0x5bdc22,_0x2fcaa7,_0x4f9c2c,_0x4261d3){return _0x77f841(_0x5bdc22,_0x2fcaa7,_0x4f9c2c,_0x4261d3);},'cvvfM':_0x556389(0x1d1),'PtNvs':'api/v1/builds','DKRgp':function(_0x5e8f60,_0x2b2f70){return _0x5e8f60(_0x2b2f70);},'DVUYr':'Build\x20creation\x20successful!','yHzPF':function(_0x106646){return _0x106646();},'BQaCw':_0x556389(0x1c6),'DRInE':'null','njvTf':_0x556389(0x1f3),'ynNLD':_0x556389(0x15f),'jWpbd':_0x556389(0x172)},_0x4fa969=bsSetupHelper[_0x556389(0x1dd)](_0x13f900),_0x6b5b5b=bsSetupHelper[_0x556389(0x1b1)](_0x13f900),_0x30516b=_0x573510[_0x556389(0x16c)](_0x4fa969,'')+':'+_0x573510[_0x556389(0x1b9)](_0x6b5b5b,'');if(_0x573510[_0x556389(0x18b)](_0x30516b,':'))return _0x573510[_0x556389(0x19a)](debug,_0x573510[_0x556389(0x1a5)]),process[_0x556389(0x19f)][_0x556389(0x1f6)]=_0x573510[_0x556389(0x163)],[null,null];let _0x5497ed=![],_0x1f60bc=![];if(_0x13f900[_0x556389(0x18a)]&&_0x13f900[_0x556389(0x16b)])_0x1f60bc=!![];else _0x13f900['browserstackAutomation']&&(_0x5497ed=!![]);try{const _0x1fb1b1={'format':_0x573510[_0x556389(0x1eb)],'project_name':_0x13f900[_0x556389(0x1f1)]||'','name':_0x13f900['buildName']||path[_0x556389(0x1d7)](path[_0x556389(0x1c2)](process[_0x556389(0x15c)]())),'build_identifier':_0x13f900[_0x556389(0x16e)],'description':_0x13f900[_0x556389(0x184)]||'','start_time':new Date()[_0x556389(0x175)](),'tags':_0x573510['KBLcL'](getCustomTags,_0x13f900),'host_info':bsSetupHelper[_0x556389(0x1d6)](),'ci_info':bsSetupHelper[_0x556389(0x1cf)](),'build_run_identifier':process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process['env'][_0x556389(0x1d9)]||![],'version_control':await bsSetupHelper[_0x556389(0x17b)](),'observability_version':{'frameworkName':_0x6c4069['frameworkName'],'frameworkVersion':_0x6c4069[_0x556389(0x15b)],'sdkVersion':bsSetupHelper[_0x556389(0x156)]()},'product_map':_0x573510[_0x556389(0x1c5)](getProductMap,_0x13f900)},_0x4583ec={};_0x4583ec[_0x556389(0x150)]=_0x4fa969,_0x4583ec[_0x556389(0x1b5)]=_0x6b5b5b;const _0x551e89={'auth':_0x4583ec,'headers':_0x573510['UKElc'](getDefaultHeaders,![])},_0x58786a=await _0x573510[_0x556389(0x1ad)](nodeRequest,_0x573510[_0x556389(0x162)],_0x573510['PtNvs'],_0x1fb1b1,_0x551e89);_0x573510['DKRgp'](debug,_0x573510['DVUYr']);const _0x3ef2cc=_0x58786a[_0x556389(0x1ac)];_0x3ef2cc[_0x556389(0x159)]&&(process[_0x556389(0x19f)][_0x556389(0x176)]=_0x3ef2cc[_0x556389(0x159)]);if(_0x573510['yHzPF'](isTestObservabilitySession)){process[_0x556389(0x19f)]['BS_TESTOPS_BUILD_COMPLETED']=_0x573510[_0x556389(0x1ce)];if(_0x3ef2cc[_0x556389(0x1cd)]){process[_0x556389(0x19f)][_0x556389(0x173)]=_0x3ef2cc[_0x556389(0x1cd)];const _0x4279a0={};_0x4279a0[_0x556389(0x150)]=_0x4fa969,_0x4279a0[_0x556389(0x1b5)]=_0x6b5b5b,process[_0x556389(0x19f)][_0x556389(0x1c8)]=JSON[_0x556389(0x1aa)](_0x4279a0);}_0x3ef2cc[_0x556389(0x159)]&&(process[_0x556389(0x19f)][_0x556389(0x1e3)]=_0x3ef2cc[_0x556389(0x159)]),_0x3ef2cc[_0x556389(0x16a)]&&(process[_0x556389(0x19f)][_0x556389(0x1e0)]=_0x3ef2cc['allow_screenshots'][_0x556389(0x1bc)]());}return[_0x58786a['data'][_0x556389(0x1cd)],_0x58786a[_0x556389(0x1ac)]['build_hashed_id'],_0x58786a['data']['allow_screenshots']];}catch(_0x49313a){process[_0x556389(0x19f)][_0x556389(0x176)]=_0x573510['DRInE'],process[_0x556389(0x19f)][_0x556389(0x1f6)]=_0x573510[_0x556389(0x163)],process['env'][_0x556389(0x173)]=_0x573510['DRInE'],process[_0x556389(0x19f)][_0x556389(0x1e3)]=_0x573510[_0x556389(0x1a7)],process[_0x556389(0x19f)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x573510[_0x556389(0x1a7)];_0x49313a[_0x556389(0x1df)]?_0x573510[_0x556389(0x1c5)](debug,_0x556389(0x179)+_0x49313a['response']['status']+'\x20'+_0x49313a[_0x556389(0x1df)][_0x556389(0x170)]+'\x20'+JSON[_0x556389(0x1aa)](_0x49313a[_0x556389(0x1df)]['data'])):_0x573510['DKRgp'](debug,_0x556389(0x179)+(_0x49313a['message']||_0x49313a));if(_0x49313a&&_0x49313a[_0x556389(0x191)]){const _0x2c76f8=_0x49313a[_0x556389(0x191)];switch(_0x49313a[_0x556389(0x17e)]){case _0x573510[_0x556389(0x19c)]:logger['error'](_0x2c76f8);break;case _0x573510[_0x556389(0x1a0)]:logger[_0x556389(0x153)](_0x2c76f8);break;case _0x573510[_0x556389(0x1bd)]:logger[_0x556389(0x1e2)](_0x2c76f8);break;default:logger[_0x556389(0x1e2)](_0x2c76f8);}}else console[_0x556389(0x153)]('Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20'+_0x49313a);return[null,null,null];}}static async[a87_0x458a91(0x1cb)](){const _0x344c27=a87_0x458a91,_0x54b691={'gawqy':_0x344c27(0x1c6),'BucZU':'false','JvmmZ':function(_0x56f316,_0xbca5ab){return _0x56f316(_0xbca5ab);}},_0x5efe46=process[_0x344c27(0x19f)][_0x344c27(0x1f6)];if([_0x54b691['gawqy'],_0x54b691['BucZU']][_0x344c27(0x1dc)](_0x5efe46))return;while([_0x54b691[_0x344c27(0x1b8)],_0x54b691[_0x344c27(0x1f2)]][_0x344c27(0x1dc)](_0x5efe46)){await _0x54b691[_0x344c27(0x1f5)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x458a91(0x1f0)](_0x1ba18e){const _0x17ffb2=a87_0x458a91,_0x12245e={};_0x12245e[_0x17ffb2(0x160)]=_0x17ffb2(0x15a),_0x12245e[_0x17ffb2(0x1ed)]=_0x17ffb2(0x18e),_0x12245e['xeHmI']=_0x17ffb2(0x16f),_0x12245e[_0x17ffb2(0x174)]=_0x17ffb2(0x18d),_0x12245e['gZVGY']=_0x17ffb2(0x1fb),_0x12245e['roaKD']='Hook_End_Upload',_0x12245e[_0x17ffb2(0x1a3)]=_0x17ffb2(0x166);const _0x3cc738=_0x12245e,_0x35d88a={};return _0x35d88a[_0x17ffb2(0x1d0)]=_0x3cc738[_0x17ffb2(0x160)],_0x35d88a[_0x17ffb2(0x155)]=_0x3cc738[_0x17ffb2(0x1ed)],_0x35d88a[_0x17ffb2(0x1c7)]=_0x3cc738[_0x17ffb2(0x1e9)],_0x35d88a['LogCreated']=_0x3cc738[_0x17ffb2(0x174)],_0x35d88a['HookRunStarted']=_0x3cc738['gZVGY'],_0x35d88a['HookRunFinished']=_0x3cc738[_0x17ffb2(0x193)],_0x35d88a[_0x17ffb2(0x1d2)]=_0x3cc738[_0x17ffb2(0x1a3)],_0x35d88a[_0x1ba18e[_0x17ffb2(0x167)]];}static async[a87_0x458a91(0x1ab)](_0xa6c8f3,_0xc60b3c=0x0,_0x2ee1d0=null){const _0x297737=a87_0x458a91,_0x175ee7={'QiFQN':function(_0x7288e9,_0x255b61){return _0x7288e9===_0x255b61;},'gnBjM':_0x297737(0x1f8),'UHObI':function(_0x372831,_0x27e345){return _0x372831!==_0x27e345;},'dkHmf':_0x297737(0x1a2),'NNFeZ':_0x297737(0x1c6),'upOIr':function(_0x4792b0,_0x3f3865){return _0x4792b0===_0x3f3865;},'ckaXM':function(_0x44a8f8,_0x33c481,_0x33d70a,_0x189bb4,_0xdb6dc0){return _0x44a8f8(_0x33c481,_0x33d70a,_0x189bb4,_0xdb6dc0);},'OyaQi':_0x297737(0x1d1),'MhQfS':function(_0x454ebf,_0x3d5df8,_0x39141f,_0xe5095c,_0x32816a){return _0x454ebf(_0x3d5df8,_0x39141f,_0xe5095c,_0x32816a);},'xXhpk':function(_0x5e3f11,_0x184993){return _0x5e3f11(_0x184993);},'WaRuq':function(_0x4a02a7,_0x2941df){return _0x4a02a7!==_0x2941df;},'DHPYs':'Batch-Queue','uSwZk':function(_0x118889,_0x466e7f){return _0x118889-_0x466e7f;},'pHUUq':function(_0x30c2ae,_0x28af2f){return _0x30c2ae===_0x28af2f;},'aplsO':_0x297737(0x1f7),'qomqv':_0x297737(0x182),'MwsqG':function(_0x267b8e,_0x556b43){return _0x267b8e(_0x556b43);},'dsJaJ':function(_0x22ac86,_0x1218a6){return _0x22ac86!==_0x1218a6;},'DiIMJ':function(_0x522979,_0x49fab4){return _0x522979!==_0x49fab4;},'hvmrR':_0x297737(0x1e2)};_0x175ee7[_0x297737(0x190)](_0x2ee1d0,_0x175ee7[_0x297737(0x1b3)])&&logger[_0x297737(0x1b6)](_0x297737(0x194)+_0xa6c8f3[_0x297737(0x158)][0x0][_0x297737(0x1d4)]);const _0x199fe8=await this[_0x297737(0x1f0)](_0xa6c8f3);let _0x356fb9=_0xa6c8f3,_0x39b4a3=EVENT_ENDPOINT;_0x175ee7[_0x297737(0x1c9)](_0x2ee1d0,_0x175ee7[_0x297737(0x1b3)])&&this[_0x297737(0x192)][_0x297737(0x180)]();const {shouldProceed:_0x27a5e4,proceedWithData:_0x11d5c7,proceedWithUrl:_0xe41e83}=this[_0x297737(0x192)][_0x297737(0x1cc)](_0xa6c8f3);if(!_0x27a5e4)return;else _0x11d5c7&&(_0x356fb9=_0x11d5c7,_0x39b4a3=_0xe41e83);const _0x55c649={};_0x55c649['Authorization']=_0x297737(0x1d5)+process[_0x297737(0x19f)][_0x297737(0x189)],_0x55c649['Content-Type']=_0x175ee7[_0x297737(0x1af)],_0x55c649[_0x297737(0x1fc)]=_0x175ee7[_0x297737(0x1da)];const _0x1e93c0={};_0x1e93c0['headers']=_0x55c649;const _0x1af132=_0x1e93c0;let _0x247a19;try{_0x175ee7[_0x297737(0x1d3)](_0x2ee1d0,_0x175ee7[_0x297737(0x1b3)])?(logger['debug'](_0x297737(0x1a8)+_0xa6c8f3?.[_0x297737(0x158)][0x0]?.[_0x297737(0x1d4)]),_0x247a19=await _0x175ee7[_0x297737(0x1e7)](asyncAwaitNodeReq,_0x175ee7['OyaQi'],_0x39b4a3,_0x356fb9,_0x1af132),logger[_0x297737(0x1b6)](_0x297737(0x1a6)+_0xa6c8f3?.['logs'][0x0]?.['test_run_uuid'])):_0x247a19=await _0x175ee7[_0x297737(0x197)](nodeRequest,_0x175ee7[_0x297737(0x171)],_0x39b4a3,_0x356fb9,_0x1af132);if(_0x247a19[_0x297737(0x1ac)][_0x297737(0x1e2)]){const _0x2136d4={};_0x2136d4['message']=_0x247a19[_0x297737(0x1ac)][_0x297737(0x1e2)];throw _0x2136d4;}else{_0x175ee7['xXhpk'](debug,(_0x175ee7['WaRuq'](_0x39b4a3,this[_0x297737(0x192)][_0x297737(0x16d)])?_0x199fe8:_0x175ee7[_0x297737(0x18f)])+'['+_0xc60b3c+_0x297737(0x1f4)),this[_0x297737(0x192)][_0x297737(0x1c0)]=Math['max'](0x0,_0x175ee7['uSwZk'](this[_0x297737(0x192)]['pendingUploads'],_0x175ee7[_0x297737(0x181)](_0x39b4a3,_0x175ee7[_0x297737(0x1a1)])?0x1:_0x356fb9[_0x297737(0x1d8)]));const _0x394972={};return _0x394972[_0x297737(0x168)]=_0x175ee7[_0x297737(0x188)],_0x394972[_0x297737(0x191)]='',_0x394972;}}catch(_0x460c16){_0x460c16['response']?_0x175ee7[_0x297737(0x1e4)](debug,_0x297737(0x17f)+(_0x175ee7[_0x297737(0x1db)](_0x39b4a3,this[_0x297737(0x192)][_0x297737(0x16d)])?_0x199fe8:_0x175ee7[_0x297737(0x18f)])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x460c16[_0x297737(0x1df)][_0x297737(0x168)]+'\x20'+_0x460c16[_0x297737(0x1df)][_0x297737(0x170)]+'\x20'+util[_0x297737(0x161)](_0x460c16['response']['data'])):_0x175ee7['MwsqG'](debug,_0x297737(0x17f)+(_0x175ee7[_0x297737(0x1e6)](_0x39b4a3,this[_0x297737(0x192)]['eventUrl'])?_0x199fe8:_0x175ee7[_0x297737(0x18f)])+_0x297737(0x185)+util['format'](_0x460c16));this[_0x297737(0x192)][_0x297737(0x1c0)]=Math[_0x297737(0x1a9)](0x0,_0x175ee7[_0x297737(0x1de)](this[_0x297737(0x192)]['pendingUploads'],_0x175ee7[_0x297737(0x190)](_0x39b4a3,_0x175ee7[_0x297737(0x1a1)])?0x1:_0x356fb9[_0x297737(0x1d8)]));const _0x53f039={};return _0x53f039[_0x297737(0x168)]=_0x175ee7[_0x297737(0x183)],_0x53f039[_0x297737(0x191)]=_0x460c16[_0x297737(0x191)]||(_0x460c16[_0x297737(0x1df)]?_0x460c16[_0x297737(0x1df)]['status']+':'+_0x460c16[_0x297737(0x1df)][_0x297737(0x170)]:_0x460c16),_0x53f039;}}static async[a87_0x458a91(0x165)](_0x281a0d,_0x47a251=0x0){const _0x706641=a87_0x458a91,_0x39bdf8={'NenrE':function(_0x550ec2,_0x31d989){return _0x550ec2+_0x31d989;},'TTucO':function(_0x22949a,_0xeb4afd){return _0x22949a(_0xeb4afd);},'SAYlb':_0x706641(0x152),'cHPfw':'uuid','VMdEe':_0x706641(0x154),'FEHWK':function(_0x4d07ee,_0x13f585,_0x1c01cd){return _0x4d07ee(_0x13f585,_0x1c01cd);},'McEwn':_0x706641(0x165),'EXiis':function(_0x41b2e5,_0x55c93f){return _0x41b2e5===_0x55c93f;},'oiReH':function(_0x187e09,_0x276fe3){return _0x187e09!==_0x276fe3;},'OtnGv':_0x706641(0x178),'ksQpA':_0x706641(0x1c6),'OYPEv':function(_0x5c7c9c){return _0x5c7c9c();},'cVtlb':function(_0x4c49f4,_0x48d421){return _0x4c49f4(_0x48d421);},'FTQPb':function(_0x1a9882,_0x1c0152){return _0x1a9882-_0x1c0152;},'ZPHeh':_0x706641(0x1e2),'ZwLdP':_0x706641(0x1ee),'KSQpS':function(_0xfdb8d,_0x17cb87){return _0xfdb8d>=_0x17cb87;},'CcJNi':function(_0x26a44a,_0x5009b7){return _0x26a44a(_0x5009b7);},'REMJc':_0x706641(0x1e8),'JBWGQ':function(_0x3658d0,_0x3f5618){return _0x3658d0!==_0x3f5618;},'OxtJp':_0x706641(0x17c),'gsumy':function(_0x43199e,_0x11842b,_0x32c1cb){return _0x43199e(_0x11842b,_0x32c1cb);}},_0x2d92d8=this[_0x706641(0x1f0)](_0x281a0d);_0x39bdf8[_0x706641(0x1b4)](trace,_0x706641(0x19e)+_0x281a0d['event_type']+'\x27\x20'+(bsSetupHelper[_0x706641(0x14f)](_0x281a0d,[_0x39bdf8[_0x706641(0x1ba)],_0x39bdf8['cHPfw']])||bsSetupHelper[_0x706641(0x14f)](_0x281a0d,[_0x39bdf8[_0x706641(0x1bb)],_0x39bdf8[_0x706641(0x199)]])));if(!_0x39bdf8[_0x706641(0x195)](shouldProcessEventForTesthub,_0x281a0d[_0x706641(0x167)],_0x39bdf8[_0x706641(0x19b)]))return;_0x39bdf8['EXiis'](_0x47a251,0x0)&&process[_0x706641(0x19f)][_0x706641(0x189)]&&_0x39bdf8[_0x706641(0x15d)](process[_0x706641(0x19f)][_0x706641(0x189)],_0x39bdf8[_0x706641(0x164)])&&(this['requestQueueHandler'][_0x706641(0x1c0)]+=0x1);if(_0x39bdf8['EXiis'](process[_0x706641(0x19f)][_0x706641(0x1f6)],_0x39bdf8[_0x706641(0x18c)])||process['env']['BS_A11Y_JWT']||_0x39bdf8[_0x706641(0x1ef)](isPercyBuild)){if(_0x39bdf8['EXiis'](process[_0x706641(0x19f)][_0x706641(0x189)],_0x39bdf8['OtnGv'])){_0x39bdf8['cVtlb'](debug,_0x706641(0x17f)+_0x2d92d8+_0x706641(0x1ca)),this['requestQueueHandler'][_0x706641(0x1c0)]=Math[_0x706641(0x1a9)](0x0,_0x39bdf8[_0x706641(0x157)](this[_0x706641(0x192)]['pendingUploads'],0x1));const _0x477e33={};return _0x477e33[_0x706641(0x168)]=_0x39bdf8['ZPHeh'],_0x477e33[_0x706641(0x191)]=_0x39bdf8['ZwLdP'],_0x477e33;}return await this[_0x706641(0x1ab)](_0x281a0d,_0x47a251);}else{if(_0x39bdf8['KSQpS'](_0x47a251,0x5)){_0x39bdf8[_0x706641(0x196)](debug,_0x706641(0x17f)+_0x2d92d8+_0x706641(0x1e5)+_0x2d92d8+'\x20retry\x20runs\x20exceeded');_0x39bdf8['oiReH'](process[_0x706641(0x19f)][_0x706641(0x189)],_0x39bdf8[_0x706641(0x164)])&&(this[_0x706641(0x192)][_0x706641(0x1c0)]=Math[_0x706641(0x1a9)](0x0,_0x39bdf8[_0x706641(0x157)](this[_0x706641(0x192)][_0x706641(0x1c0)],0x1)));const _0x58bb4d={};return _0x58bb4d['status']=_0x39bdf8[_0x706641(0x169)],_0x58bb4d[_0x706641(0x191)]=_0x39bdf8[_0x706641(0x17d)],_0x58bb4d;}else _0x39bdf8[_0x706641(0x1c1)](process[_0x706641(0x19f)][_0x706641(0x1f6)],_0x39bdf8['OxtJp'])&&_0x39bdf8[_0x706641(0x1ea)](setTimeout,()=>{const _0x2b771a=_0x706641;this[_0x2b771a(0x165)](_0x281a0d,_0x39bdf8[_0x2b771a(0x1f9)](_0x47a251,0x1));},0x3e8);}}}function a87_0x8591(){const _0x39db92=['YfdUu','eventUrl','buildIdentifier','Test_Skipped_Upload','statusText','OyaQi','ERROR_SDK_DEPRECATED','BS_TESTOPS_JWT','RTueq','toISOString','BROWSERSTACK_TESTHUB_UUID','../logger','null','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','24268NETSTG','getGitMetaData','false','REMJc','errorType','EXCEPTION\x20IN\x20','start','pHUUq','success','hvmrR','buildDescription','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','333000WwWjGS','launch','qomqv','BROWSERSTACK_TESTHUB_JWT','browserstackAutomation','dwDji','ksQpA','Log_Upload','Test_End_Upload','DHPYs','QiFQN','message','requestQueueHandler','roaKD','Sending\x20trace\x20zip\x20for\x20test:\x20','FEHWK','CcJNi','MhQfS','9128966pbHKpv','cHPfw','KBLcL','McEwn','njvTf','path','Processing\x20event\x20-\x20\x27','env','ynNLD','aplsO','application/json','SYtgc','20oiKLVk','BfUnb','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','DRInE','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','max','stringify','sendEventData','data','GUTTa','126nRjHJX','dkHmf','./utils','getAccessKey','../../helpers/testhub/utils','gnBjM','TTucO','password','debug','10jqOOlh','gawqy','utjwH','SAYlb','VMdEe','toString','jWpbd','46644KSssgp','json','pendingUploads','JBWGQ','resolve','3442665LTpzIg','exports','UKElc','true','TestRunSkipped','CREDENTIALS_FOR_CRASH_REPORTING','UHObI','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','waitForBuildStatus','add','jwt','BQaCw','getCiInfo','TestRunStarted','POST','CBTSessionCreated','upOIr','test_run_uuid','Bearer\x20','getHostInfo','basename','length','BROWSERSTACK_RERUN','NNFeZ','dsJaJ','includes','getUserName','uSwZk','response','BS_TESTOPS_ALLOW_SCREENSHOTS','winstonLogger','error','BS_TESTOPS_BUILD_HASHED_ID','MwsqG','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','DiIMJ','ckaXM','Retry\x20runs\x20exceeded','xeHmI','gsumy','hMiXp','./constants','hpWUm','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','OYPEv','getLogTag','projectName','BucZU','ERROR_INVALID_CREDENTIALS',']\x20event\x20successful!','JvmmZ','BS_TESTOPS_BUILD_COMPLETED','api/v1/event','sendTraceZip','NenrE','getInstance','Hook_Start_Upload','X-BSTACK-TESTOPS','145239jlRExo','nestedKeyValue','username','3941232KkjxxS','test_run','info','hook_run','TestRunFinished','getAgentVersion','FTQPb','logs','build_hashed_id','Test_Start_Upload','frameworkVersion','cwd','oiReH','497vQfEQe','ERROR_ACCESS_DENIED','Tfpbz','format','cvvfM','CvalN','OtnGv','uploadEventData','CBT_Upload','event_type','status','ZPHeh','allow_screenshots','app'];a87_0x8591=function(){return _0x39db92;};return a87_0x8591();}module[a87_0x458a91(0x1c4)]=SessionHandler;
|