browserstack-node-sdk 1.35.10 → 1.36.0
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/CFTemplates/aws-eks-cluster-dep.yaml +13 -1
- 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/templates/azureresources/akscluster.json +9 -1
- package/ats/src/templates/gcpresources/gkecluster.json +6 -2
- 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 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/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
|
-
function a80_0x5b18(_0x12633d,_0x4bf390){const _0x9ac3a0=a80_0x9ac3();return a80_0x5b18=function(_0x5b18f7,_0x237696){_0x5b18f7=_0x5b18f7-0xe1;let _0x55c9b7=_0x9ac3a0[_0x5b18f7];return _0x55c9b7;},a80_0x5b18(_0x12633d,_0x4bf390);}function a80_0x9ac3(){const _0x307b0f=['Error\x20in\x20writing\x20html\x20','nEfgB','errors','failure','OLXdI','fs/promises','appendFileSync','CpVnQ','stopMonitoring','platform','pushErrors','-start','length','name','match','measure','forEach','_measureEvents','getEventsFromJSON','CBcmF','index','WLLQT','<h1>Performance\x20Report</h1>','splice','hRLTy','finalizeErrors','writeFileSync','entryType','toString','errorReportFileName','util','cwd','readdirSync','stopAndGenerate','zFkYY','observe','function','perf_hooks','jsonReportDirPath','QRshW','2wmbYkm','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','captureError','calculateTimesFromMultipleFiles','mark','finalize','_events','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','reduce','548546TrzURm','disconnect','push','flpnP','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','generateHTMLReport','nwDwu','RVFAc','JflhI','52662630bPfEsR','10534680iNoBwF','_errorEvents','.json','314094eocPou','kpGcF','getPerformance','then','__platformCaps','PLlOj','AFpNL','success','generateJSON','readFile','end','readdir','assign','env','format','calculateTimeFromEvents','WnUOo','winstonLogger','mkdirSync','aJhHR','\x20for\x20all\x20processes\x20is\x20','kSJOu','isEnabled','utf-8','exports','Error\x20while\x20removing\x20files:\x20','/error-report-','5121760wVdFus','message','dKdnd','dekBZ','false','meta','tOKJc','existsSync','OTJJd','BAIqO','unlinkSync','readFileSync','PFntw','UNhpk','DGDqu','apply','entryTypes','details','</td><td>','measures','ydXXI','flat','startMonitoring','parse','catch','errorReportDirName','VcInE','joiTP','writeFile','finalizePerfMeasures','../processHelper','yYyGp','<tr><td>','OkFKS','/performance-report-','</td></tr>','../logger','203cSrLSa','toJSON','stringify','start','SgBUf','_observer','gxDhY','jsonReportFileName','performance-own.html','-end','21988SKstss','concat','jsonReportDirName','pushPerfMeasures','Error\x20stopping\x20monitoring\x20','eQXjo','all','qmOrZ','getCleanedPerfEvents','150492KWXJXB','map','abyNp','duration','started','join','BTPhB','testName','error-report','fJFtm','buffered','code','getEntries','resolve','1215jAoAcb','eventsMap','debug','slice'];a80_0x9ac3=function(){return _0x307b0f;};return a80_0x9ac3();}const a80_0x5cec23=a80_0x5b18;(function(_0x30a0e6,_0x276752){const _0x4374b6=a80_0x5b18,_0x4f34ad=_0x30a0e6();while(!![]){try{const _0x546d8c=parseInt(_0x4374b6(0x127))/0x1*(-parseInt(_0x4374b6(0x11e))/0x2)+-parseInt(_0x4374b6(0x134))/0x3+-parseInt(_0x4374b6(0x17e))/0x4*(parseInt(_0x4374b6(0xf2))/0x5)+-parseInt(_0x4374b6(0xe4))/0x6*(parseInt(_0x4374b6(0x174))/0x7)+-parseInt(_0x4374b6(0x14f))/0x8+-parseInt(_0x4374b6(0x131))/0x9+parseInt(_0x4374b6(0x130))/0xa;if(_0x546d8c===_0x276752)break;else _0x4f34ad['push'](_0x4f34ad['shift']());}catch(_0x1f636c){_0x4f34ad['push'](_0x4f34ad['shift']());}}}(a80_0x9ac3,0xb473a));const fs=require('fs'),fsPromise=require(a80_0x5cec23(0xfb)),{performance,PerformanceObserver}=require(a80_0x5cec23(0x11b)),path=require('path'),util=require(a80_0x5cec23(0x114)),logger=require(a80_0x5cec23(0x173))[a80_0x5cec23(0x145)],{getLogDir}=require(a80_0x5cec23(0x173)),{getProcessId,sleep,debug,getTestName}=require(a80_0x5cec23(0x16d));class PerformanceTester{static ['_observer'];static [a80_0x5cec23(0x124)]=[];static [a80_0x5cec23(0x107)]=[];static [a80_0x5cec23(0x132)]=[];static [a80_0x5cec23(0xe8)]=![];static [a80_0x5cec23(0x180)]='performance-report';static ['errorReportDirName']=process['env']['browserStackCwd']?path[a80_0x5cec23(0xe9)](process[a80_0x5cec23(0x141)]['browserStackCwd'],a80_0x5cec23(0xec)):path[a80_0x5cec23(0xe9)](process['cwd'](),a80_0x5cec23(0xec));static [a80_0x5cec23(0x113)]=this[a80_0x5cec23(0x168)]+a80_0x5cec23(0x14e)+getProcessId()+a80_0x5cec23(0x133);static [a80_0x5cec23(0x160)]={};static [a80_0x5cec23(0xf3)]={};static[a80_0x5cec23(0x165)](_0x441b8c,_0x38451a=this['errorReportDirName']+a80_0x5cec23(0x14e)+getProcessId()+a80_0x5cec23(0x133)){const _0x1efed8=a80_0x5cec23,_0x56ccf0={'yYyGp':function(_0x1a40fd,_0x5d9ded){return _0x1a40fd===_0x5d9ded;},'aJhHR':'measure','dKdnd':function(_0x770115){return _0x770115();},'fzkDz':function(_0x2ed63b){return _0x2ed63b();},'UNhpk':function(_0x8ab5a4,_0x18512f){return _0x8ab5a4+_0x18512f;},'eQXjo':_0x1efed8(0x11f),'CBcmF':_0x1efed8(0x11a)};try{this[_0x1efed8(0x11c)]=path[_0x1efed8(0xe9)](_0x56ccf0[_0x1efed8(0x151)](getLogDir),this[_0x1efed8(0x180)]),!_0x441b8c&&(_0x441b8c=this['jsonReportDirPath']+_0x1efed8(0x171)+_0x56ccf0['fzkDz'](getProcessId)+'.json'),!fs[_0x1efed8(0x156)](this['jsonReportDirPath'])&&fs[_0x1efed8(0x146)](this[_0x1efed8(0x11c)]);}catch(_0x360e5a){logger[_0x1efed8(0xf4)](_0x56ccf0[_0x1efed8(0x15c)](_0x56ccf0[_0x1efed8(0x183)],_0x360e5a));}if(this[_0x1efed8(0xe8)]||!this[_0x1efed8(0x14a)]())return;this[_0x1efed8(0x179)]=new PerformanceObserver(_0x40f78a=>{const _0x5842fc=_0x1efed8,_0x4d8b4c={'PKSJv':function(_0x13e0fa,_0x3b648b){const _0x4b4e4d=a80_0x5b18;return _0x56ccf0[_0x4b4e4d(0x16e)](_0x13e0fa,_0x3b648b);},'qmOrZ':_0x56ccf0[_0x5842fc(0x147)]};_0x40f78a[_0x5842fc(0xf0)]()[_0x5842fc(0x106)](_0x3817e3=>{const _0x511435=_0x5842fc;if(_0x4d8b4c['PKSJv'](_0x3817e3[_0x511435(0x111)],_0x4d8b4c[_0x511435(0xe2)])){let _0x3ca2da={};if(_0x3817e3[_0x511435(0x175)])_0x3ca2da=_0x3817e3[_0x511435(0x175)]();else for(const _0x4c6911 in _0x3817e3){_0x3ca2da[_0x4c6911]=_0x3817e3[_0x4c6911];}this[_0x511435(0x160)][_0x3817e3['name']]&&(_0x3ca2da=Object[_0x511435(0x140)](_0x3ca2da,this[_0x511435(0x160)][_0x3817e3[_0x511435(0x103)]])),delete this['details'][_0x3817e3['name']],this[_0x511435(0x107)][_0x511435(0x129)](_0x3ca2da);}else this[_0x511435(0x124)][_0x511435(0x129)](_0x3817e3);});});const _0x172785={};_0x172785[_0x1efed8(0xee)]=!![],_0x172785[_0x1efed8(0x15f)]=[_0x56ccf0[_0x1efed8(0x109)],_0x56ccf0[_0x1efed8(0x147)]],this[_0x1efed8(0x179)][_0x1efed8(0x119)](_0x172785),this['started']=!![],this[_0x1efed8(0x17b)]=_0x441b8c,this['errorReportFileName']=_0x38451a;}static[a80_0x5cec23(0x136)](){return performance;}static['calculateTimeFromEvents'](_0x5da1b5,_0x53971f){const _0x3c3b2c=a80_0x5cec23,_0x2e4bbb={};_0x2e4bbb[_0x3c3b2c(0xed)]=function(_0x58a1cc,_0x11ee36){return _0x58a1cc+_0x11ee36;},_0x2e4bbb[_0x3c3b2c(0xea)]=function(_0x3dc005,_0x599a67){return _0x3dc005||_0x599a67;},_0x2e4bbb[_0x3c3b2c(0x10b)]=function(_0x9b2cc5,_0x5b3015){return _0x9b2cc5===_0x5b3015;};const _0x1bf3c2=_0x2e4bbb,_0x3489ec={};if(!_0x5da1b5||_0x1bf3c2[_0x3c3b2c(0x10b)](_0x5da1b5['length'],0x0))return;_0x5da1b5[_0x3c3b2c(0xe5)](_0x4945d7=>{const _0x481b84=_0x3c3b2c;!_0x3489ec[_0x4945d7[_0x481b84(0x103)]]&&(_0x3489ec[_0x4945d7[_0x481b84(0x103)]]=0x0),_0x3489ec[_0x4945d7['name']]+=_0x4945d7[_0x481b84(0xe7)];});const _0x454631=_0x53971f[_0x3c3b2c(0x126)]((_0x104428,_0x353f6f)=>{const _0x440bbc=_0x3c3b2c;return _0x1bf3c2[_0x440bbc(0xed)](_0x3489ec[_0x353f6f],_0x1bf3c2[_0x440bbc(0xea)](_0x104428,0x0));},0x0);return _0x454631;}static async[a80_0x5cec23(0x121)](_0x6509fb,_0x4e1886){const _0x323611=a80_0x5cec23,_0x51890f={'ydXXI':function(_0x4780d2,_0x30dc1b){return _0x4780d2+_0x30dc1b;},'jfFUY':function(_0xfb3054,_0x1136c3){return _0xfb3054||_0x1136c3;},'JflhI':function(_0x1f6545,_0x4d1b67){return _0x1f6545===_0x4d1b67;},'UHNaU':function(_0x1e5336,_0x1a43dd){return _0x1e5336(_0x1a43dd);},'gxDhY':function(_0x41ba0b,_0x2c6d03){return _0x41ba0b(_0x2c6d03);}};if(!_0x6509fb||_0x51890f[_0x323611(0x12f)](_0x6509fb['length'],0x0))return 0x0;const _0x36e465=[];for(const _0x24b24a of _0x6509fb){const _0x32005e=path[_0x323611(0xe9)]('.',_0x24b24a);try{const _0x216133=this['getEventsFromJSON'](_0x32005e);_0x216133['map'](_0x3fc243=>{const _0x4c4c08=_0x323611;!_0x36e465[_0x3fc243[_0x4c4c08(0x103)]]&&(_0x36e465[_0x3fc243[_0x4c4c08(0x103)]]=0x0),_0x36e465[_0x3fc243[_0x4c4c08(0x103)]]+=_0x3fc243['duration'];});}catch(_0x47d09a){_0x51890f['UHNaU'](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x47d09a['toString']());}}const _0x165520=_0x4e1886[_0x323611(0x126)]((_0x577459,_0x1a2d8d)=>{const _0x4890f1=_0x323611;return _0x51890f[_0x4890f1(0x163)](_0x36e465[_0x1a2d8d],_0x51890f['jfFUY'](_0x577459,0x0));},0x0);return _0x51890f[_0x323611(0x17a)](debug,'Time\x20for\x20'+_0x4e1886+_0x323611(0x148)+_0x165520),_0x165520;}static[a80_0x5cec23(0x108)](_0xf9cb16){const _0x196087=a80_0x5cec23;if(_0xf9cb16){if(!fs['existsSync'](_0xf9cb16))return[];return JSON[_0x196087(0x166)](fs[_0x196087(0x15a)](_0xf9cb16)[_0x196087(0x112)]());}}static async[a80_0x5cec23(0x117)](_0xc80c3c=a80_0x5cec23(0x17c),_0xce3045=null){const _0x55f938=a80_0x5cec23,_0x23a70e={'AFpNL':function(_0x1cb7b7,_0x5be788){return _0x1cb7b7(_0x5be788);}};if(!this[_0x55f938(0xe8)])return;await _0x23a70e['AFpNL'](sleep,0x1e),this[_0x55f938(0x179)]['disconnect'](),this[_0x55f938(0xe8)]=![],this[_0x55f938(0x13c)](this['_events']);const _0x3e403f=this[_0x55f938(0x12c)](this[_0x55f938(0x124)]),_0x238b75=path[_0x55f938(0xe9)](process[_0x55f938(0x115)](),_0xc80c3c);fs[_0x55f938(0x16b)](_0x238b75,_0x3e403f,_0x43df82=>{const _0x340bd0=_0x55f938;if(_0x43df82){_0x23a70e[_0x340bd0(0x13a)](debug,_0x340bd0(0xf6)+_0x43df82[_0x340bd0(0x112)]());return;}_0x23a70e[_0x340bd0(0x13a)](debug,'Performance\x20report\x20is\x20at\x20'+_0x238b75);});if(_0xce3045)return this[_0x55f938(0x143)](this['_events'],_0xce3045);}static[a80_0x5cec23(0x12c)](_0x1bb182){const _0x18a904=a80_0x5cec23,_0x3a0271={};_0x3a0271['hRLTy']=_0x18a904(0x125),_0x3a0271[_0x18a904(0x155)]=_0x18a904(0x10c),_0x3a0271['NvHQa']=_0x18a904(0x12b),_0x3a0271[_0x18a904(0x11d)]='</tbody></table></body></html>';const _0x4c312d=_0x3a0271;let _0x40ed6c=_0x4c312d[_0x18a904(0x10e)];return _0x40ed6c+=_0x4c312d[_0x18a904(0x155)],_0x40ed6c+=_0x4c312d['NvHQa'],_0x1bb182['forEach'](_0x55b334=>{const _0x20dbf8=_0x18a904;_0x40ed6c+=_0x20dbf8(0x16f)+_0x55b334['name']+_0x20dbf8(0x161)+_0x55b334['duration']+_0x20dbf8(0x172);}),_0x40ed6c+=_0x4c312d[_0x18a904(0x11d)],_0x40ed6c;}static[a80_0x5cec23(0x13c)](_0x376efe){const _0x3b33bf=a80_0x5cec23;if(!this[_0x3b33bf(0x17b)])return;const _0x2a9266={};_0x376efe[_0x3b33bf(0xe5)](_0x561ed0=>{const _0x33fc37=_0x3b33bf;!_0x2a9266[_0x561ed0[_0x33fc37(0x103)]]&&(_0x2a9266[_0x561ed0[_0x33fc37(0x103)]]=0x0),_0x2a9266[_0x561ed0[_0x33fc37(0x103)]]+=_0x561ed0[_0x33fc37(0xe7)];});const _0x26c6de=Object['entries'](_0x2a9266)[_0x3b33bf(0xe5)](([_0x37a2e3,_0x17cb84])=>{const _0x17b271=_0x3b33bf,_0x256c06={};return _0x256c06[_0x17b271(0x103)]=_0x37a2e3,_0x256c06[_0x17b271(0xe7)]=_0x17cb84,_0x256c06;});fs[_0x3b33bf(0x110)](this['jsonReportFileName'],JSON['stringify'](_0x26c6de));}static['isEnabled'](){const _0x524abb=a80_0x5cec23,_0x30b40e={};_0x30b40e[_0x524abb(0x118)]=function(_0xa4d3e7,_0x2288a0){return _0xa4d3e7===_0x2288a0;},_0x30b40e[_0x524abb(0x144)]=_0x524abb(0x153);const _0x1ec129=_0x30b40e;return!_0x1ec129[_0x524abb(0x118)](process[_0x524abb(0x141)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x1ec129[_0x524abb(0x144)]);}static[a80_0x5cec23(0x105)](_0x35489c,_0x56194c,_0x53af84=null,_0x4417cd={},_0x5c21d8=null){const _0x4d524b=a80_0x5cec23,_0x44bdba={'OkFKS':function(_0x49e2a4,_0x6bd66f){return _0x49e2a4(_0x6bd66f);},'nwDwu':function(_0xb6715d,_0x888ac5){return _0xb6715d instanceof _0x888ac5;}};try{if(this[_0x4d524b(0xe8)]&&this['isEnabled']()){let _0x1bd71c=_0x35489c;_0x53af84&&(_0x1bd71c=_0x35489c+'['+JSON[_0x4d524b(0x176)](_0x53af84)+']');PerformanceTester['start'](_0x1bd71c),this[_0x4d524b(0x160)]&&(this[_0x4d524b(0x160)][_0x1bd71c]=_0x4417cd);try{const _0x330020=_0x56194c['apply'](null,_0x5c21d8);if(_0x44bdba[_0x4d524b(0x12d)](_0x330020,Promise))return new Promise((_0x4efb33,_0x10d26d)=>{const _0x4c579f=_0x4d524b,_0x228835={'OTJJd':function(_0xa0b464,_0x1754a1){const _0x5a60f7=a80_0x5b18;return _0x44bdba[_0x5a60f7(0x170)](_0xa0b464,_0x1754a1);}};_0x330020[_0x4c579f(0x137)](_0x5f190c=>{PerformanceTester['end'](_0x1bd71c),_0x228835['OTJJd'](_0x4efb33,_0x5f190c);})[_0x4c579f(0x167)](_0x414ac0=>{const _0x5a3a3a=_0x4c579f;PerformanceTester[_0x5a3a3a(0x13e)](_0x1bd71c,![],util[_0x5a3a3a(0x142)](_0x414ac0)),_0x228835[_0x5a3a3a(0x157)](_0x10d26d,_0x414ac0);});});;return PerformanceTester[_0x4d524b(0x13e)](_0x1bd71c),_0x330020;}catch(_0x154e5d){PerformanceTester[_0x4d524b(0x13e)](_0x1bd71c,![],util[_0x4d524b(0x142)](_0x154e5d));throw _0x154e5d;}};return _0x56194c[_0x4d524b(0x15e)](null,_0x5c21d8);}catch(_0x2eab55){return _0x56194c['apply'](null,_0x5c21d8);}}static['measureWrapper'](_0x559b67,_0x50d263,_0x59185f={}){const _0x2d78a1=a80_0x5cec23,_0x263cc6={'HStEf':function(_0x2ca4d1){return _0x2ca4d1();},'nEfgB':function(_0x574793){return _0x574793();}},_0xe7e496=this;return _0x59185f['worker']=_0x263cc6['HStEf'](getProcessId),_0x59185f[_0x2d78a1(0xeb)]=_0x263cc6[_0x2d78a1(0xf7)](getTestName),_0x59185f[_0x2d78a1(0xff)]=global[_0x2d78a1(0x138)]&&global[_0x2d78a1(0x138)][_0x2d78a1(0x10a)],function(){const _0x3be737=_0x2d78a1,_0x4b23a1=[_0x559b67,_0x50d263,null,_0x59185f][_0x3be737(0x17f)](arguments);return _0xe7e496[_0x3be737(0x105)][_0x3be737(0x15e)](_0xe7e496,_0x4b23a1);};}static['getCleanedPerfEvents'](){const _0x584900=a80_0x5cec23,_0x2481c0=/(^.*)\[(.*)\]$/,_0x15f490={},_0x156736={},_0x4c612c=[],_0x21c162=this[_0x584900(0x107)][_0x584900(0x10d)](0x0,this['_measureEvents'][_0x584900(0x102)]);for(const _0x387634 of _0x21c162){const _0x3c1ba3=_0x387634[_0x584900(0x103)][_0x584900(0x104)](_0x2481c0),_0x4ce551=Object[_0x584900(0x140)]({},_0x387634);_0x3c1ba3&&(_0x4ce551[_0x584900(0x103)]=_0x3c1ba3[0x1],_0x4ce551[_0x584900(0x154)]=JSON[_0x584900(0x166)](_0x3c1ba3[0x2])),_0x4c612c[_0x584900(0x129)](_0x4ce551);}return _0x4c612c;}static[a80_0x5cec23(0x181)](){const _0x3fffc4=a80_0x5cec23,_0x1e4361={'skYtQ':function(_0x30fed0){return _0x30fed0();},'BAIqO':function(_0x157486,_0x9859db){return _0x157486+_0x9859db;},'VcInE':_0x3fffc4(0x14d),'abyNp':function(_0x11e939,_0x2c5bcb){return _0x11e939===_0x2c5bcb;}};try{this[_0x3fffc4(0x11c)]=path[_0x3fffc4(0xe9)](_0x1e4361['skYtQ'](getLogDir),this[_0x3fffc4(0x180)]);if(fs[_0x3fffc4(0x156)](this[_0x3fffc4(0x11c)])){const _0x5eab80=fs[_0x3fffc4(0x116)](this[_0x3fffc4(0x11c)]);for(const _0x2fa35c of _0x5eab80){fs[_0x3fffc4(0x159)](path[_0x3fffc4(0xe9)](this[_0x3fffc4(0x11c)],_0x2fa35c));}}}catch(_0x3f5231){logger['debug'](_0x1e4361[_0x3fffc4(0x158)](_0x1e4361[_0x3fffc4(0x169)],_0x3f5231));}if(_0x1e4361[_0x3fffc4(0xe6)](this[_0x3fffc4(0x107)]['length'],0x0))return;const _0x5ac031=this[_0x3fffc4(0xe3)](),_0x92fac6=JSON['stringify'](_0x5ac031),_0x44569d=_0x1e4361[_0x3fffc4(0x158)](_0x92fac6[_0x3fffc4(0xf5)](0x1,-0x1),',');fs[_0x3fffc4(0xfc)](this['jsonReportFileName'],_0x44569d);}static async[a80_0x5cec23(0x16c)](){const _0x257e16=a80_0x5cec23,_0x12a2cb={'PFntw':function(_0x279378){return _0x279378();},'YnpdH':function(_0x48d1a6,_0x244da9){return _0x48d1a6===_0x244da9;},'dekBZ':function(_0x101d49,_0x12c71a){return _0x101d49>_0x12c71a;}};this['jsonReportDirPath']=path[_0x257e16(0xe9)](_0x12a2cb[_0x257e16(0x15b)](getLogDir),this[_0x257e16(0x180)]);if(!this[_0x257e16(0xe8)]||_0x12a2cb['YnpdH'](this['_measureEvents']['length'],0x0))return[];if(!fs['existsSync'](this['jsonReportDirPath']))return this[_0x257e16(0x107)];const _0x11dabc=(await fsPromise[_0x257e16(0x13f)](this['jsonReportDirPath']))[_0x257e16(0xe5)](_0x12cacc=>path[_0x257e16(0xf1)](this[_0x257e16(0x11c)],_0x12cacc));let _0xbd31cf=(await Promise[_0x257e16(0xe1)](_0x11dabc[_0x257e16(0xe5)](_0x3a891c=>fsPromise[_0x257e16(0x13d)](_0x3a891c,_0x257e16(0x14b)))))[_0x257e16(0xe5)](_0x2792df=>'['+_0x2792df[_0x257e16(0xf5)](0x0,-0x1)+']')[_0x257e16(0xe5)](_0x2c2b6e=>JSON[_0x257e16(0x166)](_0x2c2b6e))[_0x257e16(0x164)]();return _0x12a2cb[_0x257e16(0x152)](this[_0x257e16(0x107)][_0x257e16(0x102)],0x0)&&(_0xbd31cf=_0xbd31cf['concat'](this[_0x257e16(0xe3)]())),this[_0x257e16(0x179)][_0x257e16(0x128)](),_0xbd31cf;}static[a80_0x5cec23(0x100)](){const _0x4e4c88=a80_0x5cec23,_0x3e27c3={};_0x3e27c3[_0x4e4c88(0xfd)]=function(_0x101c6a,_0x1bd688){return _0x101c6a===_0x1bd688;},_0x3e27c3[_0x4e4c88(0x178)]=function(_0x699766,_0x568b10){return _0x699766+_0x568b10;};const _0x3340e9=_0x3e27c3;if(_0x3340e9['CpVnQ'](this[_0x4e4c88(0x132)][_0x4e4c88(0x102)],0x0))return;const _0x862a9=JSON[_0x4e4c88(0x176)](this[_0x4e4c88(0x132)]),_0x3c5cc2=_0x3340e9['SgBUf'](_0x862a9[_0x4e4c88(0xf5)](0x1,-0x1),',');fs[_0x4e4c88(0xfc)](this['errorFile'],_0x3c5cc2);}static[a80_0x5cec23(0x10f)](){const _0xd318a9=a80_0x5cec23,_0x1ef2ea={};_0x1ef2ea[_0xd318a9(0x12e)]=function(_0x184048,_0x41996d){return _0x184048>_0x41996d;};const _0x47a66e=_0x1ef2ea;if(this['errorReportFileName']){if(!fs[_0xd318a9(0x156)](this[_0xd318a9(0x113)]))return this[_0xd318a9(0x132)];let _0x5da928=fs[_0xd318a9(0x15a)](this[_0xd318a9(0x113)])[_0xd318a9(0x112)]();_0x5da928='['+_0x5da928[_0xd318a9(0xf5)](0x0,-0x1)+']';let _0x5535f9=JSON[_0xd318a9(0x166)](_0x5da928);return _0x47a66e[_0xd318a9(0x12e)](this[_0xd318a9(0x132)][_0xd318a9(0x102)],0x0)&&(_0x5535f9=_0x5535f9[_0xd318a9(0x17f)](this[_0xd318a9(0x132)])),fs['unlinkSync'](this['errorReportFileName']),_0x5535f9;}}static[a80_0x5cec23(0x120)](_0x52830e){const _0x344bee=a80_0x5cec23;if(!this['isEnabled']())return;this[_0x344bee(0x132)][_0x344bee(0x129)]({'message':_0x52830e[_0x344bee(0x150)],'trace':_0x52830e['stack'],'code':_0x52830e[_0x344bee(0xef)]||null,'time':new Date()});}static[a80_0x5cec23(0xfe)](){const _0xe379b8=a80_0x5cec23;try{if(!this[_0xe379b8(0x14a)]())return;this[_0xe379b8(0x179)][_0xe379b8(0x128)](),this[_0xe379b8(0x181)](),this[_0xe379b8(0x100)]();}catch(_0x329f56){logger[_0xe379b8(0xf4)](_0xe379b8(0x182)+util['format'](_0x329f56));}}static async[a80_0x5cec23(0x123)](){const _0x98837c=a80_0x5cec23,_0x468ef8={'kpGcF':function(_0x4f5f17,_0x188873){return _0x4f5f17(_0x188873);}};await _0x468ef8[_0x98837c(0x135)](sleep,0x1e);const _0x3a7711=await this[_0x98837c(0x16c)](),_0x5256ea=this[_0x98837c(0x10f)]();if(!this['isEnabled']()){const _0x3b9c7b={};return _0x3b9c7b[_0x98837c(0x162)]=[],_0x3b9c7b[_0x98837c(0xf8)]=[],_0x3b9c7b;}const _0x317c1a={};return _0x317c1a[_0x98837c(0x162)]=_0x3a7711,_0x317c1a[_0x98837c(0xf8)]=_0x5256ea,_0x317c1a;}static[a80_0x5cec23(0x177)](_0x2042b3){const _0x14e1c0=a80_0x5cec23,_0x39d187={};_0x39d187[_0x14e1c0(0xfa)]=function(_0x1ccc77,_0x16313a){return _0x1ccc77+_0x16313a;},_0x39d187[_0x14e1c0(0x149)]=_0x14e1c0(0x101);const _0x58ead4=_0x39d187,_0x3540bb=_0x58ead4[_0x14e1c0(0xfa)](_0x2042b3,_0x58ead4[_0x14e1c0(0x149)]);if(this['eventsMap'][_0x3540bb])return;performance[_0x14e1c0(0x122)](_0x3540bb),this[_0x14e1c0(0xf3)][_0x3540bb]=0x1;}static[a80_0x5cec23(0x13e)](_0xc37b41,_0x8128d1=!![],_0x1e6c12=null,_0x217531={}){const _0x5c7e89=a80_0x5cec23,_0x3ec933={'joiTP':function(_0x56756f,_0x3753af){return _0x56756f+_0x3753af;},'DGDqu':_0x5c7e89(0x17d),'nhzIL':_0x5c7e89(0x101),'PLlOj':function(_0x4e6b90,_0x7f51bb){return _0x4e6b90+_0x7f51bb;},'flpnP':function(_0x2978e3){return _0x2978e3();}};performance[_0x5c7e89(0x122)](_0x3ec933[_0x5c7e89(0x16a)](_0xc37b41,_0x3ec933[_0x5c7e89(0x15d)])),performance['measure'](_0xc37b41,_0x3ec933[_0x5c7e89(0x16a)](_0xc37b41,_0x3ec933['nhzIL']),_0x3ec933[_0x5c7e89(0x139)](_0xc37b41,_0x3ec933[_0x5c7e89(0x15d)]));const _0x1a8dcb={};_0x1a8dcb[_0x5c7e89(0x13b)]=_0x8128d1,_0x1a8dcb[_0x5c7e89(0xf9)]=_0x1e6c12,this[_0x5c7e89(0x160)][_0xc37b41]=Object[_0x5c7e89(0x140)](_0x1a8dcb,Object[_0x5c7e89(0x140)](Object[_0x5c7e89(0x140)]({'worker':_0x3ec933[_0x5c7e89(0x12a)](getProcessId),'platform':global['__platformCaps']&&global[_0x5c7e89(0x138)][_0x5c7e89(0x10a)],'testName':_0x3ec933[_0x5c7e89(0x12a)](getTestName)},_0x217531),this[_0x5c7e89(0x160)][_0xc37b41]||{}));}}module[a80_0x5cec23(0x14c)]=PerformanceTester;
|
|
1
|
+
function a80_0x4b17(_0x493182,_0x18b40c){const _0x3990c4=a80_0x3990();return a80_0x4b17=function(_0x4b178f,_0x522530){_0x4b178f=_0x4b178f-0xaa;let _0x342559=_0x3990c4[_0x4b178f];return _0x342559;},a80_0x4b17(_0x493182,_0x18b40c);}const a80_0x544633=a80_0x4b17;(function(_0x2bc478,_0x21e992){const _0xd1f52c=a80_0x4b17,_0xbcef3f=_0x2bc478();while(!![]){try{const _0x2c4a92=parseInt(_0xd1f52c(0xfe))/0x1*(-parseInt(_0xd1f52c(0x125))/0x2)+parseInt(_0xd1f52c(0xb9))/0x3+-parseInt(_0xd1f52c(0x10d))/0x4*(parseInt(_0xd1f52c(0x12e))/0x5)+-parseInt(_0xd1f52c(0x100))/0x6+-parseInt(_0xd1f52c(0xb6))/0x7*(-parseInt(_0xd1f52c(0x10e))/0x8)+-parseInt(_0xd1f52c(0x133))/0x9*(parseInt(_0xd1f52c(0xe6))/0xa)+parseInt(_0xd1f52c(0xe2))/0xb;if(_0x2c4a92===_0x21e992)break;else _0xbcef3f['push'](_0xbcef3f['shift']());}catch(_0xa977fb){_0xbcef3f['push'](_0xbcef3f['shift']());}}}(a80_0x3990,0xc0f39));const fs=require('fs'),fsPromise=require(a80_0x544633(0xe4)),{performance,PerformanceObserver}=require(a80_0x544633(0x148)),path=require('path'),util=require(a80_0x544633(0xe1)),logger=require(a80_0x544633(0x11d))['winstonLogger'],{getLogDir}=require(a80_0x544633(0x11d)),{getProcessId,sleep,debug,getTestName}=require('../processHelper');function a80_0x3990(){const _0x2c6fb6=['enSWO','existsSync','appendFileSync','exports','rpyNa','slice','finalizeErrors','toString','Error\x20while\x20removing\x20files:\x20','errorReportDirName','debug','LraUt','stopMonitoring','generateJSON','started','testName','getEventsFromJSON','236763LmqMDP','bVnPG','6947556YefdCn','TGKjP','/error-report-','entries','aXjVV','eRPZy','JOJBh','jsonReportDirName','qgbRD','</td></tr>','nCJSn','cquaU','function','4BKvOkH','952OXkeOj','entryType','Error\x20stopping\x20monitoring\x20','pushErrors','EzaOi','generateHTMLReport','message','.json','quAQi','<h1>Performance\x20Report</h1>','isEnabled','getCleanedPerfEvents','entryTypes','measure','match','../logger','readFile','<tr><td>','concat','JwNkH','eventsMap','ydYcT','qlGsy','10HFMKJJ','browserStackCwd','</td><td>','KAwCH','YYdSl','MutBu','-end','reduce','bISEX','7822795HXoqrY','env','map','end','jsonReportFileName','6643989rkBNXw','GCFoY','hbDwo','success','Error\x20in\x20writing\x20html\x20','HQvql','startMonitoring','yUWNR','parse','GqEBM','then','duration','pushPerfMeasures','\x20for\x20all\x20processes\x20is\x20','BROWSERSTACK_SDK_INSTRUMENTATION','_measureEvents','_observer','false','aCaCQ','_errorEvents','/performance-report-','perf_hooks','performance-report','calculateTimeFromEvents','__platformCaps','details','errors','vUqtj','performance-own.html','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','stopAndGenerate','Performance\x20report\x20is\x20at\x20','tzRue','cwd','stringify','19502jwaEVm','errorFile','jsonReportDirPath','2031012DxeNnX','join','utf-8','mkdirSync','getPerformance','apply','finalizePerfMeasures','_events','Eeylj','Time\x20for\x20','length','cpJEj','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','start','assign','failure','splice','ysUcV','getEntries','disconnect','error-report','name','stack','worker','all','readdir','QnKfK','toJSON','qUnPx','kKlpJ','mark','SxQIr','Error\x20in\x20doing\x20csv\x20operations:\x20','VARTd','ypJMv','index','cMccO','finalize','measureWrapper','YzzZV','util','48689432PFVDpR','measures','fs/promises','dHwWE','10mkZTyO','-start','errorReportFileName','unlinkSync','TJpdL','format','adzJS'];a80_0x3990=function(){return _0x2c6fb6;};return a80_0x3990();}class PerformanceTester{static [a80_0x544633(0x143)];static [a80_0x544633(0xc0)]=[];static [a80_0x544633(0x142)]=[];static ['_errorEvents']=[];static [a80_0x544633(0xfb)]=![];static [a80_0x544633(0x107)]=a80_0x544633(0x149);static ['errorReportDirName']=process['env'][a80_0x544633(0x126)]?path['join'](process['env'][a80_0x544633(0x126)],'error-report'):path[a80_0x544633(0xba)](process[a80_0x544633(0xb4)](),a80_0x544633(0xcd));static [a80_0x544633(0xe8)]=this[a80_0x544633(0xf6)]+a80_0x544633(0x102)+getProcessId()+'.json';static [a80_0x544633(0xac)]={};static ['eventsMap']={};static[a80_0x544633(0x139)](_0x442393,_0x43637f=this[a80_0x544633(0xf6)]+a80_0x544633(0x102)+getProcessId()+a80_0x544633(0x115)){const _0x276cc3=a80_0x544633,_0xb1572c={'TJpdL':function(_0x32b261,_0x237603){return _0x32b261===_0x237603;},'JwNkH':'measure','aXjVV':function(_0x2da2c2){return _0x2da2c2();},'kKlpJ':function(_0x589ed1,_0x550b92){return _0x589ed1+_0x550b92;},'nCJSn':'Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','qgbRD':_0x276cc3(0x10c)};try{this['jsonReportDirPath']=path[_0x276cc3(0xba)](_0xb1572c[_0x276cc3(0x104)](getLogDir),this[_0x276cc3(0x107)]),!_0x442393&&(_0x442393=this[_0x276cc3(0xb8)]+_0x276cc3(0x147)+_0xb1572c[_0x276cc3(0x104)](getProcessId)+'.json'),!fs['existsSync'](this[_0x276cc3(0xb8)])&&fs[_0x276cc3(0xbc)](this[_0x276cc3(0xb8)]);}catch(_0x209b86){logger[_0x276cc3(0xf7)](_0xb1572c[_0x276cc3(0xd6)](_0xb1572c[_0x276cc3(0x10a)],_0x209b86));}if(this['started']||!this[_0x276cc3(0x118)]())return;this[_0x276cc3(0x143)]=new PerformanceObserver(_0x3e5f52=>{const _0x39a07e=_0x276cc3,_0x298675={'MutBu':function(_0x7c0b1b,_0x3cbb1a){const _0xaff04d=a80_0x4b17;return _0xb1572c[_0xaff04d(0xea)](_0x7c0b1b,_0x3cbb1a);},'bVnPG':_0xb1572c[_0x39a07e(0x121)]};_0x3e5f52[_0x39a07e(0xcb)]()['forEach'](_0x571d2f=>{const _0x52ac1f=_0x39a07e;if(_0x298675[_0x52ac1f(0x12a)](_0x571d2f[_0x52ac1f(0x10f)],_0x298675[_0x52ac1f(0xff)])){let _0x3a7ed6={};if(_0x571d2f[_0x52ac1f(0xd4)])_0x3a7ed6=_0x571d2f[_0x52ac1f(0xd4)]();else for(const _0x2d7a5c in _0x571d2f){_0x3a7ed6[_0x2d7a5c]=_0x571d2f[_0x2d7a5c];}this[_0x52ac1f(0xac)][_0x571d2f['name']]&&(_0x3a7ed6=Object[_0x52ac1f(0xc7)](_0x3a7ed6,this[_0x52ac1f(0xac)][_0x571d2f[_0x52ac1f(0xce)]])),delete this[_0x52ac1f(0xac)][_0x571d2f[_0x52ac1f(0xce)]],this['_measureEvents']['push'](_0x3a7ed6);}else this['_events']['push'](_0x571d2f);});});const _0x4832a0={};_0x4832a0['buffered']=!![],_0x4832a0[_0x276cc3(0x11a)]=[_0xb1572c[_0x276cc3(0x108)],_0xb1572c[_0x276cc3(0x121)]],this[_0x276cc3(0x143)]['observe'](_0x4832a0),this[_0x276cc3(0xfb)]=!![],this[_0x276cc3(0x132)]=_0x442393,this[_0x276cc3(0xe8)]=_0x43637f;}static[a80_0x544633(0xbd)](){return performance;}static[a80_0x544633(0xaa)](_0x2ff631,_0x5729d6){const _0x20246b=a80_0x544633,_0xf794af={};_0xf794af['qUnPx']=function(_0x120cf5,_0x35f217){return _0x120cf5+_0x35f217;},_0xf794af[_0x20246b(0x10b)]=function(_0x84aa30,_0x14ac85){return _0x84aa30||_0x14ac85;},_0xf794af[_0x20246b(0xf8)]=function(_0x3a679e,_0x418ee9){return _0x3a679e===_0x418ee9;};const _0x480f81=_0xf794af,_0x2543af={};if(!_0x2ff631||_0x480f81['LraUt'](_0x2ff631[_0x20246b(0xc3)],0x0))return;_0x2ff631[_0x20246b(0x130)](_0x239227=>{const _0x440410=_0x20246b;!_0x2543af[_0x239227[_0x440410(0xce)]]&&(_0x2543af[_0x239227['name']]=0x0),_0x2543af[_0x239227[_0x440410(0xce)]]+=_0x239227[_0x440410(0x13e)];});const _0xcfcde6=_0x5729d6[_0x20246b(0x12c)]((_0x2a8559,_0x410270)=>{const _0xe0a2cf=_0x20246b;return _0x480f81[_0xe0a2cf(0xd5)](_0x2543af[_0x410270],_0x480f81[_0xe0a2cf(0x10b)](_0x2a8559,0x0));},0x0);return _0xcfcde6;}static async['calculateTimesFromMultipleFiles'](_0x4d6124,_0x451b0c){const _0xcf052c=a80_0x544633,_0x58a386={'Dlfoi':function(_0x31368d,_0x5dc5eb){return _0x31368d+_0x5dc5eb;},'bISEX':function(_0x2662af,_0xb8bf57){return _0x2662af||_0xb8bf57;},'ysUcV':function(_0x1dedf3,_0x5cb8ae){return _0x1dedf3===_0x5cb8ae;},'JOJBh':function(_0x50db35,_0x25cb60){return _0x50db35(_0x25cb60);}};if(!_0x4d6124||_0x58a386[_0xcf052c(0xca)](_0x4d6124[_0xcf052c(0xc3)],0x0))return 0x0;const _0x15b757=[];for(const _0x20b112 of _0x4d6124){const _0x28bfde=path[_0xcf052c(0xba)]('.',_0x20b112);try{const _0x2c939d=this[_0xcf052c(0xfd)](_0x28bfde);_0x2c939d[_0xcf052c(0x130)](_0x1c3eeb=>{const _0x468d04=_0xcf052c;!_0x15b757[_0x1c3eeb[_0x468d04(0xce)]]&&(_0x15b757[_0x1c3eeb[_0x468d04(0xce)]]=0x0),_0x15b757[_0x1c3eeb['name']]+=_0x1c3eeb[_0x468d04(0x13e)];});}catch(_0x444fba){_0x58a386[_0xcf052c(0x106)](debug,_0xcf052c(0xd9)+_0x444fba[_0xcf052c(0xf4)]());}}const _0x215de5=_0x451b0c['reduce']((_0x5e8c6a,_0x5b0640)=>{const _0x15cec9=_0xcf052c;return _0x58a386['Dlfoi'](_0x15b757[_0x5b0640],_0x58a386[_0x15cec9(0x12d)](_0x5e8c6a,0x0));},0x0);return _0x58a386[_0xcf052c(0x106)](debug,_0xcf052c(0xc2)+_0x451b0c+_0xcf052c(0x140)+_0x215de5),_0x215de5;}static[a80_0x544633(0xfd)](_0x57495f){const _0x1d3a32=a80_0x544633;if(_0x57495f){if(!fs[_0x1d3a32(0xee)](_0x57495f))return[];return JSON['parse'](fs['readFileSync'](_0x57495f)['toString']());}}static async[a80_0x544633(0xb1)](_0x4320b5=a80_0x544633(0xaf),_0x5b463d=null){const _0x4046a8=a80_0x544633,_0x437071={'VARTd':function(_0x246da0,_0x449df8){return _0x246da0(_0x449df8);},'DWtjH':function(_0x33bcd4,_0x29e127){return _0x33bcd4(_0x29e127);}};if(!this[_0x4046a8(0xfb)])return;await _0x437071['DWtjH'](sleep,0x1e),this[_0x4046a8(0x143)][_0x4046a8(0xcc)](),this[_0x4046a8(0xfb)]=![],this['generateJSON'](this['_events']);const _0x154a7f=this[_0x4046a8(0x113)](this[_0x4046a8(0xc0)]),_0x4c3238=path['join'](process[_0x4046a8(0xb4)](),_0x4320b5);fs['writeFile'](_0x4c3238,_0x154a7f,_0x293bd8=>{const _0x5d47a=_0x4046a8;if(_0x293bd8){_0x437071[_0x5d47a(0xda)](debug,_0x5d47a(0x137)+_0x293bd8[_0x5d47a(0xf4)]());return;}_0x437071[_0x5d47a(0xda)](debug,_0x5d47a(0xb2)+_0x4c3238);});if(_0x5b463d)return this[_0x4046a8(0xaa)](this['_events'],_0x5b463d);}static[a80_0x544633(0x113)](_0x3c63c7){const _0x1188ff=a80_0x544633,_0x176e6a={};_0x176e6a[_0x1188ff(0xb3)]=_0x1188ff(0xb0),_0x176e6a[_0x1188ff(0x124)]=_0x1188ff(0x117),_0x176e6a[_0x1188ff(0x145)]=_0x1188ff(0xc5),_0x176e6a['cpJEj']='</tbody></table></body></html>';const _0x138705=_0x176e6a;let _0x33ff87=_0x138705[_0x1188ff(0xb3)];return _0x33ff87+=_0x138705[_0x1188ff(0x124)],_0x33ff87+=_0x138705[_0x1188ff(0x145)],_0x3c63c7['forEach'](_0x1869f3=>{const _0x110295=_0x1188ff;_0x33ff87+=_0x110295(0x11f)+_0x1869f3[_0x110295(0xce)]+_0x110295(0x127)+_0x1869f3['duration']+_0x110295(0x109);}),_0x33ff87+=_0x138705[_0x1188ff(0xc4)],_0x33ff87;}static[a80_0x544633(0xfa)](_0x8d3ef2){const _0x2cd56f=a80_0x544633;if(!this['jsonReportFileName'])return;const _0x28a6ca={};_0x8d3ef2[_0x2cd56f(0x130)](_0x109da2=>{const _0x1ba469=_0x2cd56f;!_0x28a6ca[_0x109da2['name']]&&(_0x28a6ca[_0x109da2[_0x1ba469(0xce)]]=0x0),_0x28a6ca[_0x109da2[_0x1ba469(0xce)]]+=_0x109da2['duration'];});const _0x305623=Object[_0x2cd56f(0x103)](_0x28a6ca)['map'](([_0xa39e93,_0x341b10])=>{const _0xf4ea9e=_0x2cd56f,_0x422a0a={};return _0x422a0a[_0xf4ea9e(0xce)]=_0xa39e93,_0x422a0a['duration']=_0x341b10,_0x422a0a;});fs['writeFileSync'](this[_0x2cd56f(0x132)],JSON[_0x2cd56f(0xb5)](_0x305623));}static['isEnabled'](){const _0x41ab76=a80_0x544633,_0x533439={};_0x533439[_0x41ab76(0xdd)]=function(_0x31e94a,_0xe30376){return _0x31e94a===_0xe30376;},_0x533439[_0x41ab76(0xc1)]=_0x41ab76(0x144);const _0x47bfb3=_0x533439;return!_0x47bfb3[_0x41ab76(0xdd)](process[_0x41ab76(0x12f)][_0x41ab76(0x141)],_0x47bfb3[_0x41ab76(0xc1)]);}static[a80_0x544633(0x11b)](_0x28b71c,_0x111c14,_0x58e730=null,_0x462a6a={},_0x4b141e=null){const _0xc9999=a80_0x544633,_0x9694b2={'YYdSl':function(_0x5d5d85,_0x4bde59){return _0x5d5d85(_0x4bde59);},'TGKjP':function(_0x23aee2,_0x12f290){return _0x23aee2 instanceof _0x12f290;}};try{if(this[_0xc9999(0xfb)]&&this[_0xc9999(0x118)]()){let _0x237ba3=_0x28b71c;_0x58e730&&(_0x237ba3=_0x28b71c+'['+JSON[_0xc9999(0xb5)](_0x58e730)+']');PerformanceTester['start'](_0x237ba3),this[_0xc9999(0xac)]&&(this[_0xc9999(0xac)][_0x237ba3]=_0x462a6a);try{const _0xf06bfb=_0x111c14[_0xc9999(0xbe)](null,_0x4b141e);if(_0x9694b2[_0xc9999(0x101)](_0xf06bfb,Promise))return new Promise((_0x31fd4d,_0x52d686)=>{const _0x37befe=_0xc9999,_0x218764={'dHwWE':function(_0x9ae370,_0xa6168f){const _0x1f0cfa=a80_0x4b17;return _0x9694b2[_0x1f0cfa(0x129)](_0x9ae370,_0xa6168f);}};_0xf06bfb[_0x37befe(0x13d)](_0x308192=>{const _0x4f2f89=_0x37befe;PerformanceTester['end'](_0x237ba3),_0x218764[_0x4f2f89(0xe5)](_0x31fd4d,_0x308192);})['catch'](_0x1c0c97=>{const _0x1d0418=_0x37befe;PerformanceTester[_0x1d0418(0x131)](_0x237ba3,![],util[_0x1d0418(0xeb)](_0x1c0c97)),_0x218764[_0x1d0418(0xe5)](_0x52d686,_0x1c0c97);});});;return PerformanceTester[_0xc9999(0x131)](_0x237ba3),_0xf06bfb;}catch(_0x364630){PerformanceTester[_0xc9999(0x131)](_0x237ba3,![],util[_0xc9999(0xeb)](_0x364630));throw _0x364630;}};return _0x111c14[_0xc9999(0xbe)](null,_0x4b141e);}catch(_0x7d7523){return _0x111c14[_0xc9999(0xbe)](null,_0x4b141e);}}static[a80_0x544633(0xdf)](_0x56f890,_0xc2aee1,_0x16df9a={}){const _0x317d58=a80_0x544633,_0x327ff9={'YzzZV':function(_0x470506){return _0x470506();},'yUWNR':function(_0x1100e9){return _0x1100e9();}},_0xac7ddb=this;return _0x16df9a[_0x317d58(0xd0)]=_0x327ff9[_0x317d58(0xe0)](getProcessId),_0x16df9a[_0x317d58(0xfc)]=_0x327ff9[_0x317d58(0x13a)](getTestName),_0x16df9a['platform']=global[_0x317d58(0xab)]&&global[_0x317d58(0xab)][_0x317d58(0xdc)],function(){const _0x2bb7b1=_0x317d58,_0x44b505=[_0x56f890,_0xc2aee1,null,_0x16df9a][_0x2bb7b1(0x120)](arguments);return _0xac7ddb['measure'][_0x2bb7b1(0xbe)](_0xac7ddb,_0x44b505);};}static['getCleanedPerfEvents'](){const _0x343783=a80_0x544633,_0xf32f22=/(^.*)\[(.*)\]$/,_0xcdaaad={},_0x45ded6={},_0x1411fb=[],_0x18047a=this[_0x343783(0x142)][_0x343783(0xc9)](0x0,this['_measureEvents']['length']);for(const _0x3141f3 of _0x18047a){const _0x41e1e0=_0x3141f3[_0x343783(0xce)][_0x343783(0x11c)](_0xf32f22),_0x4d3a0a=Object['assign']({},_0x3141f3);_0x41e1e0&&(_0x4d3a0a['name']=_0x41e1e0[0x1],_0x4d3a0a['meta']=JSON[_0x343783(0x13b)](_0x41e1e0[0x2])),_0x1411fb['push'](_0x4d3a0a);}return _0x1411fb;}static[a80_0x544633(0x13f)](){const _0x1a9895=a80_0x544633,_0x3beb07={'GqEBM':function(_0x6f7993){return _0x6f7993();},'ydYcT':function(_0x13eb94,_0x5e0f90){return _0x13eb94+_0x5e0f90;},'adzJS':_0x1a9895(0xf5),'TxzKw':function(_0x102254,_0x57f034){return _0x102254===_0x57f034;}};try{this[_0x1a9895(0xb8)]=path['join'](_0x3beb07[_0x1a9895(0x13c)](getLogDir),this[_0x1a9895(0x107)]);if(fs['existsSync'](this[_0x1a9895(0xb8)])){const _0xe70e9a=fs['readdirSync'](this[_0x1a9895(0xb8)]);for(const _0xfde0a5 of _0xe70e9a){fs[_0x1a9895(0xe9)](path['join'](this[_0x1a9895(0xb8)],_0xfde0a5));}}}catch(_0x1a148c){logger[_0x1a9895(0xf7)](_0x3beb07[_0x1a9895(0x123)](_0x3beb07[_0x1a9895(0xec)],_0x1a148c));}if(_0x3beb07['TxzKw'](this[_0x1a9895(0x142)][_0x1a9895(0xc3)],0x0))return;const _0x40d14d=this[_0x1a9895(0x119)](),_0x36eee3=JSON[_0x1a9895(0xb5)](_0x40d14d),_0x4dd26d=_0x3beb07[_0x1a9895(0x123)](_0x36eee3['slice'](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x4dd26d);}static async[a80_0x544633(0xbf)](){const _0x293613=a80_0x544633,_0x31ed1d={'FqyAR':function(_0x52ea3c){return _0x52ea3c();},'KAwCH':function(_0x17d9ed,_0x266ca4){return _0x17d9ed===_0x266ca4;},'GCFoY':function(_0x117908,_0x97af4d){return _0x117908>_0x97af4d;}};this[_0x293613(0xb8)]=path['join'](_0x31ed1d['FqyAR'](getLogDir),this[_0x293613(0x107)]);if(!this[_0x293613(0xfb)]||_0x31ed1d[_0x293613(0x128)](this[_0x293613(0x142)]['length'],0x0))return[];if(!fs['existsSync'](this[_0x293613(0xb8)]))return this[_0x293613(0x142)];const _0x47f4e8=(await fsPromise[_0x293613(0xd2)](this[_0x293613(0xb8)]))['map'](_0x2a723c=>path['resolve'](this['jsonReportDirPath'],_0x2a723c));let _0x1d9bc5=(await Promise[_0x293613(0xd1)](_0x47f4e8[_0x293613(0x130)](_0x5f34ec=>fsPromise[_0x293613(0x11e)](_0x5f34ec,_0x293613(0xbb)))))[_0x293613(0x130)](_0x464b83=>'['+_0x464b83['slice'](0x0,-0x1)+']')['map'](_0x5613aa=>JSON[_0x293613(0x13b)](_0x5613aa))['flat']();return _0x31ed1d[_0x293613(0x134)](this[_0x293613(0x142)][_0x293613(0xc3)],0x0)&&(_0x1d9bc5=_0x1d9bc5[_0x293613(0x120)](this[_0x293613(0x119)]())),this[_0x293613(0x143)]['disconnect'](),_0x1d9bc5;}static[a80_0x544633(0x111)](){const _0x2bd6dc=a80_0x544633,_0x3b1c58={};_0x3b1c58[_0x2bd6dc(0xd8)]=function(_0x40e2cd,_0x46495c){return _0x40e2cd===_0x46495c;},_0x3b1c58[_0x2bd6dc(0x112)]=function(_0x15b991,_0x7dff84){return _0x15b991+_0x7dff84;};const _0x362c67=_0x3b1c58;if(_0x362c67[_0x2bd6dc(0xd8)](this[_0x2bd6dc(0x146)]['length'],0x0))return;const _0x573619=JSON[_0x2bd6dc(0xb5)](this[_0x2bd6dc(0x146)]),_0x4e09b2=_0x362c67['EzaOi'](_0x573619['slice'](0x1,-0x1),',');fs[_0x2bd6dc(0xef)](this[_0x2bd6dc(0xb7)],_0x4e09b2);}static['finalizeErrors'](){const _0x2196da=a80_0x544633,_0x45e7b2={};_0x45e7b2['mesNA']=function(_0x33d520,_0x5d794e){return _0x33d520>_0x5d794e;};const _0x96bd20=_0x45e7b2;if(this[_0x2196da(0xe8)]){if(!fs[_0x2196da(0xee)](this[_0x2196da(0xe8)]))return this[_0x2196da(0x146)];let _0x5ce08d=fs['readFileSync'](this[_0x2196da(0xe8)])[_0x2196da(0xf4)]();_0x5ce08d='['+_0x5ce08d[_0x2196da(0xf2)](0x0,-0x1)+']';let _0x1441f9=JSON['parse'](_0x5ce08d);return _0x96bd20['mesNA'](this[_0x2196da(0x146)][_0x2196da(0xc3)],0x0)&&(_0x1441f9=_0x1441f9[_0x2196da(0x120)](this['_errorEvents'])),fs[_0x2196da(0xe9)](this[_0x2196da(0xe8)]),_0x1441f9;}}static['captureError'](_0x5c9b0c){const _0x357a22=a80_0x544633;if(!this[_0x357a22(0x118)]())return;this[_0x357a22(0x146)]['push']({'message':_0x5c9b0c[_0x357a22(0x114)],'trace':_0x5c9b0c[_0x357a22(0xcf)],'code':_0x5c9b0c['code']||null,'time':new Date()});}static[a80_0x544633(0xf9)](){const _0x15fba8=a80_0x544633;try{if(!this[_0x15fba8(0x118)]())return;this[_0x15fba8(0x143)][_0x15fba8(0xcc)](),this[_0x15fba8(0x13f)](),this[_0x15fba8(0x111)]();}catch(_0x454445){logger[_0x15fba8(0xf7)](_0x15fba8(0x110)+util['format'](_0x454445));}}static async[a80_0x544633(0xde)](){const _0x508316=a80_0x544633,_0xd1d472={'HQvql':function(_0x47cf9e,_0x54bb4e){return _0x47cf9e(_0x54bb4e);}};await _0xd1d472[_0x508316(0x138)](sleep,0x1e);const _0x397b4a=await this['finalizePerfMeasures'](),_0x113a94=this[_0x508316(0xf3)]();if(!this[_0x508316(0x118)]()){const _0xaf35c5={};return _0xaf35c5[_0x508316(0xe3)]=[],_0xaf35c5[_0x508316(0xad)]=[],_0xaf35c5;}const _0x587b69={};return _0x587b69[_0x508316(0xe3)]=_0x397b4a,_0x587b69[_0x508316(0xad)]=_0x113a94,_0x587b69;}static[a80_0x544633(0xc6)](_0x1f7f3c){const _0x181b30=a80_0x544633,_0x10952b={};_0x10952b[_0x181b30(0xd3)]=function(_0x244cdf,_0x262aa5){return _0x244cdf+_0x262aa5;},_0x10952b[_0x181b30(0x116)]=_0x181b30(0xe7);const _0x3e4a1d=_0x10952b,_0x5bc6d4=_0x3e4a1d[_0x181b30(0xd3)](_0x1f7f3c,_0x3e4a1d[_0x181b30(0x116)]);if(this[_0x181b30(0x122)][_0x5bc6d4])return;performance['mark'](_0x5bc6d4),this[_0x181b30(0x122)][_0x5bc6d4]=0x1;}static[a80_0x544633(0x131)](_0x21d0e1,_0x11e1bf=!![],_0x20ef3a=null,_0x459776={}){const _0xbfbd88=a80_0x544633,_0x5104b6={'ypJMv':function(_0x4b5dec,_0x5f3116){return _0x4b5dec+_0x5f3116;},'enSWO':_0xbfbd88(0x12b),'vUqtj':function(_0x202e02,_0x403517){return _0x202e02+_0x403517;},'rpyNa':_0xbfbd88(0xe7),'hbDwo':function(_0x16dfb3){return _0x16dfb3();},'eRPZy':function(_0xfd9588){return _0xfd9588();}};performance[_0xbfbd88(0xd7)](_0x5104b6[_0xbfbd88(0xdb)](_0x21d0e1,_0x5104b6[_0xbfbd88(0xed)])),performance[_0xbfbd88(0x11b)](_0x21d0e1,_0x5104b6[_0xbfbd88(0xae)](_0x21d0e1,_0x5104b6[_0xbfbd88(0xf1)]),_0x5104b6[_0xbfbd88(0xdb)](_0x21d0e1,_0x5104b6[_0xbfbd88(0xed)]));const _0x32c4d4={};_0x32c4d4[_0xbfbd88(0x136)]=_0x11e1bf,_0x32c4d4[_0xbfbd88(0xc8)]=_0x20ef3a,this[_0xbfbd88(0xac)][_0x21d0e1]=Object[_0xbfbd88(0xc7)](_0x32c4d4,Object[_0xbfbd88(0xc7)](Object['assign']({'worker':_0x5104b6[_0xbfbd88(0x135)](getProcessId),'platform':global[_0xbfbd88(0xab)]&&global[_0xbfbd88(0xab)][_0xbfbd88(0xdc)],'testName':_0x5104b6[_0xbfbd88(0x105)](getTestName)},_0x459776),this['details'][_0x21d0e1]||{}));}}module[a80_0x544633(0xf0)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a81_0x405f(){const _0x276fb0=['438966aaJfSL','sleep','debug','browserstackTestName','threadId','44260LriFuh','./logger','1452446wiREMm','env','getGlobal','][\x20OBSERVABILITY\x20]\x20','pid','true','nsgHo','hbWAZ','getProcessId','getTestName','ThneU','3715836eNYoQJ','worker_threads','BROWSERSTACK_OBSERVABILITY_DEBUG','BZuXY','toISOString','400CCnXII','472792dyPxgk','826497qqsZqV','log','20710096zkZCZS','./test-observability/constants'];a81_0x405f=function(){return _0x276fb0;};return a81_0x405f();}function a81_0x4ccd(_0x3b0ceb,_0x16de4e){const _0x405ff6=a81_0x405f();return a81_0x4ccd=function(_0x4ccd26,_0x3786d4){_0x4ccd26=_0x4ccd26-0x67;let _0x755102=_0x405ff6[_0x4ccd26];return _0x755102;},a81_0x4ccd(_0x3b0ceb,_0x16de4e);}const a81_0x216e93=a81_0x4ccd;(function(_0x5338c6,_0x2edf06){const _0x1ea855=a81_0x4ccd,_0x1de312=_0x5338c6();while(!![]){try{const _0x321951=-parseInt(_0x1ea855(0x69))/0x1+-parseInt(_0x1ea855(0x7a))/0x2+-parseInt(_0x1ea855(0x74))/0x3+parseInt(_0x1ea855(0x67))/0x4*(parseInt(_0x1ea855(0x79))/0x5)+parseInt(_0x1ea855(0x7f))/0x6+parseInt(_0x1ea855(0x7b))/0x7+parseInt(_0x1ea855(0x7d))/0x8;if(_0x321951===_0x2edf06)break;else _0x1de312['push'](_0x1de312['shift']());}catch(_0x123c03){_0x1de312['push'](_0x1de312['shift']());}}}(a81_0x405f,0xb41cc));const worker=require(a81_0x216e93(0x75)),{fileLogger}=require(a81_0x216e93(0x68)),{consoleHolder}=require(a81_0x216e93(0x7e)),globals=require('./globals');exports[a81_0x216e93(0x71)]=()=>{const _0x47e691=a81_0x216e93;return process[_0x47e691(0x6d)]+'-'+worker[_0x47e691(0x83)];},exports[a81_0x216e93(0x72)]=()=>{const _0x485daa=a81_0x216e93,_0x3ad999={};_0x3ad999[_0x485daa(0x73)]=_0x485daa(0x82);const _0x347687=_0x3ad999;return globals[_0x485daa(0x6b)](_0x347687[_0x485daa(0x73)]);},exports[a81_0x216e93(0x80)]=(_0x2acca2=0x64)=>new Promise(_0x5b9a9f=>setTimeout(_0x5b9a9f,_0x2acca2)),exports[a81_0x216e93(0x81)]=_0x4eb856=>{const _0x34f068=a81_0x216e93,_0x2273f8={};_0x2273f8[_0x34f068(0x6f)]=function(_0x521125,_0x30f2c7){return _0x521125===_0x30f2c7;},_0x2273f8[_0x34f068(0x70)]=_0x34f068(0x6e),_0x2273f8[_0x34f068(0x77)]=function(_0x2e1962,_0x549dbf){return _0x2e1962===_0x549dbf;};const _0x58191b=_0x2273f8;fileLogger['debug']('['+new Date()[_0x34f068(0x78)]()+_0x34f068(0x6c)+_0x4eb856),(_0x58191b['nsgHo'](process[_0x34f068(0x6a)][_0x34f068(0x76)],_0x58191b[_0x34f068(0x70)])||_0x58191b['BZuXY'](process[_0x34f068(0x6a)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],'1'))&&consoleHolder[_0x34f068(0x7c)]('\x0a['+new Date()[_0x34f068(0x78)]()+_0x34f068(0x6c)+_0x4eb856+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a82_0x55ed81=a82_0x4ef1;function a82_0x4ef1(_0x3dd9f3,_0x21652a){const _0x829c65=a82_0x829c();return a82_0x4ef1=function(_0x4ef17f,_0x3eddb5){_0x4ef17f=_0x4ef17f-0x195;let _0x416d3a=_0x829c65[_0x4ef17f];return _0x416d3a;},a82_0x4ef1(_0x3dd9f3,_0x21652a);}(function(_0x5313fa,_0x23a195){const _0xb18908=a82_0x4ef1,_0x5251b0=_0x5313fa();while(!![]){try{const _0x47c529=-parseInt(_0xb18908(0x19b))/0x1*(-parseInt(_0xb18908(0x1c2))/0x2)+parseInt(_0xb18908(0x1a7))/0x3+parseInt(_0xb18908(0x196))/0x4+parseInt(_0xb18908(0x1a1))/0x5*(parseInt(_0xb18908(0x1ac))/0x6)+parseInt(_0xb18908(0x1b1))/0x7+-parseInt(_0xb18908(0x1a2))/0x8+-parseInt(_0xb18908(0x1b4))/0x9;if(_0x47c529===_0x23a195)break;else _0x5251b0['push'](_0x5251b0['shift']());}catch(_0x40a86c){_0x5251b0['push'](_0x5251b0['shift']());}}}(a82_0x829c,0x7415e));function a82_0x829c(){const _0x1b1fe0=['8890839jCQNNw','kpgzT','error','YgxkQ','forEach','PXhXs','unpatch','method','VmKad','LeixV','object','hostname','request','tAOod','285388yqaCeB','url','pathname','942064OCgyNY','now','GiAxY','http','socket','1uLhDJI','headers','end','QvFyj','drIji','monkeypatch','815bUSfmI','2620896KZGMTU','removeListener','exports','tBsvc','once','2331366TNcYlQ','Dnfxc','path','fwDuz','host','5862MNeseX','apply','DsRjd','assign','cNXrm','3334702KwJqNp','QeEKv','spy'];a82_0x829c=function(){return _0x1b1fe0;};return a82_0x829c();}const http=require(a82_0x55ed81(0x199)),https=require('https'),monkeypatch=require(a82_0x55ed81(0x1a0));function spy(_0x166b6b){const _0x376b38=a82_0x55ed81,_0x36b4a3={'drIji':function(_0x38f279,_0x392af8){return _0x38f279 instanceof _0x392af8;},'LeixV':function(_0x2d8c15,_0x2977d5){return _0x2d8c15===_0x2977d5;},'tAOod':_0x376b38(0x1be),'DnnBr':function(_0x1ffaff,_0x3f6438,_0x392ecb){return _0x1ffaff(_0x3f6438,_0x392ecb);},'XeSAc':function(_0x239a53,_0xaa75ca){return _0x239a53-_0xaa75ca;},'GiAxY':_0x376b38(0x1b6),'PXhXs':function(_0x22531b,..._0x35a8a3){return _0x22531b(..._0x35a8a3);},'fwDuz':'response','QvFyj':_0x376b38(0x19a),'Dnfxc':function(_0x58c6ad,_0x48c1ab,_0x58275b,_0x424dcb){return _0x58c6ad(_0x48c1ab,_0x58275b,_0x424dcb);},'JXUfC':_0x376b38(0x19d),'rxohd':function(_0xeae3ab,_0x3896b3,_0x176ab0,_0x2ab04d){return _0xeae3ab(_0x3896b3,_0x176ab0,_0x2ab04d);},'tBsvc':_0x376b38(0x1c0),'rUxML':function(_0x4ffc6b,_0xfcbed5,_0x1fd54c,_0x2e9fc9){return _0x4ffc6b(_0xfcbed5,_0x1fd54c,_0x2e9fc9);}},_0x2975fd=function(){const _0x5b15c6=_0x376b38,_0x58ad69={'VmKad':function(_0x188df4,_0xdea1f3){const _0x543066=a82_0x4ef1;return _0x36b4a3[_0x543066(0x19f)](_0x188df4,_0xdea1f3);},'YgxkQ':function(_0x33b77c,_0x45cae6){const _0x27df2=a82_0x4ef1;return _0x36b4a3[_0x27df2(0x1bd)](_0x33b77c,_0x45cae6);},'kpgzT':_0x36b4a3[_0x5b15c6(0x1c1)],'cNXrm':function(_0x1ee909,_0x22790d,_0x2183fb){return _0x36b4a3['DnnBr'](_0x1ee909,_0x22790d,_0x2183fb);},'svoAv':function(_0x29f75e,_0x1676f2){return _0x36b4a3['XeSAc'](_0x29f75e,_0x1676f2);},'DsRjd':_0x36b4a3[_0x5b15c6(0x198)],'QeEKv':function(_0x120a6a,..._0x549b86){const _0x2054d6=_0x5b15c6;return _0x36b4a3[_0x2054d6(0x1b9)](_0x120a6a,..._0x549b86);}},_0x58d9db=arguments[0x0],_0x4f1dc5=Array['prototype']['slice']['call'](arguments,0x1),_0x4e10f9=_0x58d9db[_0x5b15c6(0x1ad)](this,_0x4f1dc5);let _0x244d3b=Date[_0x5b15c6(0x197)](),_0x1f0014;const _0x3a411a={};_0x4f1dc5[_0x5b15c6(0x1b8)](_0x3cf242=>{const _0x2f61d2=_0x5b15c6;if(_0x58ad69[_0x2f61d2(0x1bc)](_0x3cf242,URL)){const _0x49ada2={};_0x49ada2[_0x2f61d2(0x1c3)]=_0x3cf242,Object[_0x2f61d2(0x1af)](_0x3a411a,_0x49ada2);}else _0x58ad69[_0x2f61d2(0x1b7)](typeof _0x3cf242,_0x58ad69[_0x2f61d2(0x1b5)])&&Object['assign'](_0x3a411a,_0x3cf242);});const _0x2193b3=_0x4339c9=>{const _0x2fb253=_0x5b15c6,_0x2a1930={};_0x2a1930[_0x2fb253(0x1ab)]=_0x3a411a[_0x2fb253(0x1ab)]||_0x3a411a[_0x2fb253(0x1bf)]||_0x3a411a[_0x2fb253(0x1c3)]&&(_0x3a411a[_0x2fb253(0x1c3)][_0x2fb253(0x1ab)]||_0x3a411a[_0x2fb253(0x1c3)]['hostname']),_0x2a1930[_0x2fb253(0x1a9)]=_0x3a411a[_0x2fb253(0x1a9)]||_0x3a411a[_0x2fb253(0x1c3)]&&_0x3a411a[_0x2fb253(0x1c3)][_0x2fb253(0x195)],_0x2a1930[_0x2fb253(0x1bb)]=_0x3a411a['method'],_0x2a1930[_0x2fb253(0x19c)]=_0x3a411a[_0x2fb253(0x19c)],_0x58ad69[_0x2fb253(0x1b0)](_0x166b6b,_0x4339c9,_0x2a1930);};return _0x4e10f9[_0x5b15c6(0x1a6)](_0x36b4a3[_0x5b15c6(0x1aa)],_0x1f902d=>{const _0x4941ec=_0x5b15c6,_0x492f6d=_0x58ad69['svoAv'](Date['now'](),_0x244d3b),_0x15e2a1={};_0x15e2a1['hostname']=_0x3a411a[_0x4941ec(0x1ab)]||_0x3a411a[_0x4941ec(0x1bf)]||_0x3a411a[_0x4941ec(0x1c3)]&&(_0x3a411a[_0x4941ec(0x1c3)][_0x4941ec(0x1ab)]||_0x3a411a[_0x4941ec(0x1c3)][_0x4941ec(0x1bf)]),_0x15e2a1['path']=_0x3a411a[_0x4941ec(0x1a9)]||_0x3a411a['url']&&_0x3a411a[_0x4941ec(0x1c3)][_0x4941ec(0x195)],_0x15e2a1[_0x4941ec(0x1bb)]=_0x3a411a[_0x4941ec(0x1bb)],_0x15e2a1[_0x4941ec(0x19c)]=_0x3a411a[_0x4941ec(0x19c)],_0x15e2a1['status_code']=_0x1f902d['statusCode'],_0x15e2a1['duration_ms']=_0x492f6d,_0x58ad69[_0x4941ec(0x1b0)](_0x166b6b,null,_0x15e2a1),_0x1f0014[_0x4941ec(0x1a3)](_0x58ad69['DsRjd'],_0x2193b3);}),_0x4e10f9['on'](_0x36b4a3[_0x5b15c6(0x19e)],_0xc140dd=>{const _0x4b5fa0=_0x5b15c6;_0x1f0014=_0xc140dd,_0xc140dd[_0x4b5fa0(0x1a6)](_0x58ad69[_0x4b5fa0(0x1ae)],_0x2193b3);}),_0x36b4a3[_0x5b15c6(0x1a8)](monkeypatch,_0x4e10f9,_0x36b4a3['JXUfC'],(_0x54489d,..._0x1b2bed)=>{const _0x4e4a47=_0x5b15c6;_0x244d3b=Date[_0x4e4a47(0x197)](),_0x58ad69[_0x4e4a47(0x1b2)](_0x54489d,..._0x1b2bed);}),_0x4e10f9;};_0x36b4a3['rxohd'](monkeypatch,http,_0x36b4a3[_0x376b38(0x1a5)],_0x2975fd),_0x36b4a3['rUxML'](monkeypatch,https,_0x36b4a3['tBsvc'],_0x2975fd);}function restore(){const _0x4e009a=a82_0x55ed81;http[_0x4e009a(0x1c0)][_0x4e009a(0x1ba)](),https[_0x4e009a(0x1c0)][_0x4e009a(0x1ba)]();}const a82_0x127307={};a82_0x127307[a82_0x55ed81(0x1b3)]=spy,a82_0x127307['restore']=restore,module[a82_0x55ed81(0x1a4)]=a82_0x127307;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a83_0x33f17c=a83_0x31d8;function a83_0x31d8(_0x2e3fa5,_0x4b3b46){const _0x533857=a83_0x5338();return a83_0x31d8=function(_0x31d8a4,_0x3d6647){_0x31d8a4=_0x31d8a4-0x1eb;let _0x170fa6=_0x533857[_0x31d8a4];return _0x170fa6;},a83_0x31d8(_0x2e3fa5,_0x4b3b46);}function a83_0x5338(){const _0x5e3f39=['4330885sHcaHC','ECsZm','keepAlive','agent','iTZmT','89796WXPXSs','prototype','KEEP_ALIVE','85000ukXwqC','request','1503588RJwnMK','1674906vhVAvu','2189ZYaPAB','globalAgent','28sUksNv','lBGoU','16SMOcHp','chKxw','measureWrapper','Agent','AKKRx','QNVlZ','9QoNlrS','255238nqgfrZ','hasOwnProperty','https','keepAliveMsecs','protocol','http','PrTgg','https:','UkUFP','8072472Tppawg','call','gQTTX'];a83_0x5338=function(){return _0x5e3f39;};return a83_0x5338();}(function(_0x471f2c,_0x4d5f98){const _0x25f63b=a83_0x31d8,_0x4d00d0=_0x471f2c();while(!![]){try{const _0x4bcf9f=parseInt(_0x25f63b(0x200))/0x1+-parseInt(_0x25f63b(0x20d))/0x2+-parseInt(_0x25f63b(0x1fb))/0x3*(parseInt(_0x25f63b(0x206))/0x4)+-parseInt(_0x25f63b(0x1f6))/0x5+parseInt(_0x25f63b(0x201))/0x6*(parseInt(_0x25f63b(0x204))/0x7)+-parseInt(_0x25f63b(0x1f3))/0x8*(-parseInt(_0x25f63b(0x20c))/0x9)+parseInt(_0x25f63b(0x1fe))/0xa*(-parseInt(_0x25f63b(0x202))/0xb);if(_0x4bcf9f===_0x4d5f98)break;else _0x4d00d0['push'](_0x4d00d0['shift']());}catch(_0x3303b6){_0x4d00d0['push'](_0x4d00d0['shift']());}}}(a83_0x5338,0xc93a3));const PerformanceTester=require('./performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');module['exports']=PerformanceTester[a83_0x33f17c(0x208)](PerformanceEvents[a83_0x33f17c(0x1fd)],function(){const _0x2b61d5=a83_0x33f17c,_0x359d67={'iTZmT':function(_0x3defea,_0x3576d3){return _0x3defea===_0x3576d3;},'chKxw':_0x2b61d5(0x1f1),'PrTgg':_0x2b61d5(0x1f9),'QNVlZ':function(_0x5a749c,_0x10d63d,_0x4a0761){return _0x5a749c(_0x10d63d,_0x4a0761);},'UkUFP':function(_0x2d3d48,_0x59f1aa,_0x3c96bd){return _0x2d3d48(_0x59f1aa,_0x3c96bd);},'WWpYs':function(_0x48fe5b,_0x1cdfac){return _0x48fe5b(_0x1cdfac);},'GRnCk':_0x2b61d5(0x1ef),'AKKRx':function(_0x4dcc25,_0x4e8f8a){return _0x4dcc25(_0x4e8f8a);},'lBGoU':_0x2b61d5(0x1ec),'gQTTX':function(_0x317ff4,_0xd55640){return _0x317ff4*_0xd55640;},'ECsZm':_0x2b61d5(0x1f8)},_0x320b4=_0x359d67['WWpYs'](require,_0x359d67['GRnCk']),_0x488599=_0x359d67[_0x2b61d5(0x20a)](require,_0x359d67[_0x2b61d5(0x205)]),_0x80e31a=_0x359d67[_0x2b61d5(0x1f5)](0x1e,0x3e8);if(_0x320b4[_0x2b61d5(0x203)]&&Object[_0x2b61d5(0x1fc)][_0x2b61d5(0x1eb)][_0x2b61d5(0x1f4)](_0x320b4['globalAgent'],_0x359d67[_0x2b61d5(0x1f7)]))_0x320b4[_0x2b61d5(0x203)][_0x2b61d5(0x1f8)]=!![],_0x488599[_0x2b61d5(0x203)]['keepAlive']=!![],_0x320b4[_0x2b61d5(0x203)][_0x2b61d5(0x1ed)]=_0x80e31a,_0x488599[_0x2b61d5(0x203)][_0x2b61d5(0x1ed)]=_0x80e31a;else{const _0x386cec={};_0x386cec[_0x2b61d5(0x1f8)]=!![],_0x386cec[_0x2b61d5(0x1ed)]=_0x80e31a;const _0x68bb77=new _0x320b4[(_0x2b61d5(0x209))](_0x386cec),_0x319b06={};_0x319b06[_0x2b61d5(0x1f8)]=!![],_0x319b06[_0x2b61d5(0x1ed)]=_0x80e31a;const _0x159be1=new _0x488599[(_0x2b61d5(0x209))](_0x319b06),_0x41f378=_0x320b4[_0x2b61d5(0x1ff)],_0x5c95ac=_0x488599['request'];_0x320b4['request']=function(_0xf9cda5,_0x50749f){const _0x2cf18e=_0x2b61d5;if(_0x359d67[_0x2cf18e(0x1fa)](_0xf9cda5[_0x2cf18e(0x1ee)],_0x359d67[_0x2cf18e(0x207)]))return _0xf9cda5[_0x359d67[_0x2cf18e(0x1f0)]]=_0x159be1,_0x359d67[_0x2cf18e(0x20b)](_0x5c95ac,_0xf9cda5,_0x50749f);return _0xf9cda5[_0x359d67[_0x2cf18e(0x1f0)]]=_0x68bb77,_0x359d67[_0x2cf18e(0x1f2)](_0x41f378,_0xf9cda5,_0x50749f);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a84_0x15f9(_0x1e02b8,_0x784314){var _0x2f057e=a84_0x2f05();return a84_0x15f9=function(_0x15f965,_0x41a5da){_0x15f965=_0x15f965-0x14d;var _0x248818=_0x2f057e[_0x15f965];return _0x248818;},a84_0x15f9(_0x1e02b8,_0x784314);}var a84_0x5905d6=a84_0x15f9;(function(_0x36c99d,_0x2b939d){var _0x3cb8a5=a84_0x15f9,_0x41be7e=_0x36c99d();while(!![]){try{var _0x2bcb85=-parseInt(_0x3cb8a5(0x157))/0x1+-parseInt(_0x3cb8a5(0x150))/0x2+-parseInt(_0x3cb8a5(0x156))/0x3*(parseInt(_0x3cb8a5(0x15f))/0x4)+parseInt(_0x3cb8a5(0x14d))/0x5+parseInt(_0x3cb8a5(0x159))/0x6*(-parseInt(_0x3cb8a5(0x163))/0x7)+-parseInt(_0x3cb8a5(0x15a))/0x8+parseInt(_0x3cb8a5(0x151))/0x9;if(_0x2bcb85===_0x2b939d)break;else _0x41be7e['push'](_0x41be7e['shift']());}catch(_0x3d0f0a){_0x41be7e['push'](_0x41be7e['shift']());}}}(a84_0x2f05,0x56b2e));function a84_0x2f05(){var _0x5a1a36=['https://collector-observability.browserstack.com','6mHMVLk','5292296zvJlfQ','CODECEPT_CUCUMBER','https://upload-observability.browserstack.com','mocha','codeceptjs','5708wgfBkS','api/v1/event','codeceptjs-cucumber','MOCHA','1155805JMMJKy','upload-attachments','2035525euizeH','CODECEPT','exports','1322300XQQhkI','17931564TAmNUZ','cucumber','jest','PLAYWRIGHT','api/v1/batch','1149QfhJVv','10040AKfHiA'];a84_0x2f05=function(){return _0x5a1a36;};return a84_0x2f05();}var a84_0x22f29d={};a84_0x22f29d[a84_0x5905d6(0x154)]='Playwright',a84_0x22f29d[a84_0x5905d6(0x162)]=a84_0x5905d6(0x15d),a84_0x22f29d[a84_0x5905d6(0x14e)]=a84_0x5905d6(0x15e),a84_0x22f29d[a84_0x5905d6(0x15b)]=a84_0x5905d6(0x161),a84_0x22f29d['JEST']=a84_0x5905d6(0x153),a84_0x22f29d['CUCUMBER']=a84_0x5905d6(0x152),module[a84_0x5905d6(0x14f)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a84_0x5905d6(0x158),'OBSERVABILITY_UPLOAD_API_URL':a84_0x5905d6(0x15c),'EVENT_ENDPOINT':a84_0x5905d6(0x160),'BATCH_ENDPOINT':a84_0x5905d6(0x155),'SCREENSHOT_ENDPOINT':'api/v1/screenshots','UPLOAD_ATTACHMENT_ENDPOINT':a84_0x5905d6(0x164),'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':'.obs_test_details','FRAMEWORKS':a84_0x22f29d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x105f8b=a85_0x36ab;function a85_0x36ab(_0x3768e2,_0xe2c570){const _0x51228b=a85_0x5122();return a85_0x36ab=function(_0x36abec,_0x3c7331){_0x36abec=_0x36abec-0x6f;let _0x517e34=_0x51228b[_0x36abec];return _0x517e34;},a85_0x36ab(_0x3768e2,_0xe2c570);}(function(_0x557ca3,_0x207247){const _0x5f0546=a85_0x36ab,_0x17f4ca=_0x557ca3();while(!![]){try{const _0x4bc2c3=-parseInt(_0x5f0546(0xd6))/0x1*(parseInt(_0x5f0546(0x7f))/0x2)+parseInt(_0x5f0546(0x76))/0x3+parseInt(_0x5f0546(0xa5))/0x4*(-parseInt(_0x5f0546(0xc3))/0x5)+-parseInt(_0x5f0546(0x9d))/0x6*(parseInt(_0x5f0546(0xd0))/0x7)+parseInt(_0x5f0546(0xba))/0x8*(parseInt(_0x5f0546(0xbc))/0x9)+parseInt(_0x5f0546(0x88))/0xa*(-parseInt(_0x5f0546(0xc6))/0xb)+parseInt(_0x5f0546(0x7e))/0xc*(parseInt(_0x5f0546(0xc2))/0xd);if(_0x4bc2c3===_0x207247)break;else _0x17f4ca['push'](_0x17f4ca['shift']());}catch(_0x5510e0){_0x17f4ca['push'](_0x17f4ca['shift']());}}}(a85_0x5122,0xdead5));function a85_0x5122(){const _0x1e461f=['then','username','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','BmctX','format','getFramework','function','defineProperty','2156930lStvTH','initialize','\x20--\x20','key','Zvdrf','stringify','.\x20Error\x20-\x20','length','CREDENTIALS_FOR_CRASH_REPORTING','Error\x20in\x20executing\x20','depth',',\x20PID\x20-\x20','getPerformance','WMAlm','POST','forEach','oTVfh','frameworkVersion','Finished\x20::\x20','env','setCredentials','6jJopKr','exports','UTcvV','accessKey','frameworkDetails','/api/v1/analytics','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','setConfigDetails','2497788nWRjej','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','keys','constructor','gFTiA','qqHTH','includes','parse','YMbPK','Started\x20::\x20','CrashReporter','gUhud','getOwnPropertyNames','rrkwZ','captureError','setFrameworkDetails','application/json','USER_CONFIG_FOR_REPORTING','X-BSTACK-TESTOPS',',\x20Argument\x20-\x20','toString','1287080pJxINj','timerify','45PBSsGK','wzXHI','Content-Type','QeueB','BzcQX','AGLSM','13fIfIDv','10jqjHyy','credentials','NhWNU','88jaPOpL','.\x20Args\x20-\x20','object','vEesv','password','recursivelyDeletePIIKeysFromObject','BROWSERSTACK_O11Y_PERF_MEASUREMENT','kIXGa','inspect','BeQpX','3718050BQyIML','WUfMx','UcYzo','wUzhj','filterPII','prototype','347222YmxNhs','XCTeF','o11yErrorHandler','jxMLM','wRhWz','stack','headers','bcbSq','gZJXh','getCredentials','user','setAllDetails','hTohN','MilzH','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','1474641JKiaPY','name','catch','RGDsm','frameworkName','getConfig','userConfig','SXlCj','45793740qGONFQ','4QcqKoc'];a85_0x5122=function(){return _0x1e461f;};return a85_0x5122();}const util=require('util'),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0x1f0275,_0x4baccd='',_0x260848=[''],_0x2e0082=![])=>{const _0x48b2be={'BmctX':function(_0x49bce3,_0x3d8974){return _0x49bce3(_0x3d8974);},'vEesv':function(_0x415603,_0x393754,_0x4d5412){return _0x415603(_0x393754,_0x4d5412);},'QaUWm':function(_0x523e47,_0x468690){return _0x523e47(_0x468690);},'qqHTH':function(_0x3b5e88,_0x22bd3e){return _0x3b5e88 instanceof _0x22bd3e;},'QeueB':function(_0x1717bb,_0x3d63e0,_0x4c3a03,_0x3bd408,_0x535b69){return _0x1717bb(_0x3d63e0,_0x4c3a03,_0x3bd408,_0x535b69);}};return function(..._0xc9ba6d){const _0x190fdc=a85_0x36ab;try{let _0x5d7162=_0x1f0275;process['env'][_0x190fdc(0xcc)]&&(_0x5d7162=PerformanceTester[_0x190fdc(0x94)]()[_0x190fdc(0xbb)](_0x5d7162));_0x2e0082&&_0x48b2be[_0x190fdc(0x83)](trace,_0x190fdc(0xae)+_0x4baccd+_0x190fdc(0x93)+process['pid']+_0x190fdc(0xb8)+_0x48b2be[_0x190fdc(0xc9)](nestedKeyValue,arguments[0x0],_0x260848));const _0x3a13f1=_0x5d7162['apply'](null,arguments);_0x2e0082&&_0x48b2be['QaUWm'](trace,_0x190fdc(0x9a)+_0x4baccd+_0x190fdc(0x93)+process['pid']+_0x190fdc(0xb8)+_0x48b2be['vEesv'](nestedKeyValue,arguments[0x0],_0x260848));if(_0x48b2be[_0x190fdc(0xaa)](_0x3a13f1,Promise))return _0x3a13f1['catch'](_0x30c090=>processError(_0x30c090,_0x1f0275,_0xc9ba6d,_0x4baccd));return _0x3a13f1;}catch(_0x48b29d){_0x48b2be[_0x190fdc(0xbf)](processError,_0x48b29d,_0x1f0275,_0xc9ba6d,_0x4baccd);}};},o11yClassErrorHandler=(_0x6b529a,_0x3b8fde,_0x3aef9a='')=>{const _0x57f738=a85_0x36ab,_0x455392={'bcbSq':function(_0x5732dd,_0x2b8ab0){return _0x5732dd instanceof _0x2b8ab0;},'VvkOj':function(_0xe32f02,_0x606712,_0x3c8937,_0x5cbc56,_0x410ea7){return _0xe32f02(_0x606712,_0x3c8937,_0x5cbc56,_0x410ea7);},'MilzH':function(_0x4bc1d2,_0x3aaea6){return _0x4bc1d2===_0x3aaea6;},'pWGkV':_0x57f738(0x86),'gUhud':function(_0x470e20,_0x1eb316){return _0x470e20!==_0x1eb316;},'AGLSM':_0x57f738(0xa8),'WUfMx':function(_0x17a139,_0x279a20){return _0x17a139<_0x279a20;}},_0xda1696=_0x6b529a[_0x57f738(0xd5)];if(_0x455392[_0x57f738(0xd1)](Object[_0x57f738(0xb1)](_0xda1696)[_0x57f738(0x8f)],0x2))return _0x6b529a;return Object['getOwnPropertyNames'](_0xda1696)[_0x57f738(0x97)](_0x3d28ff=>{const _0x384a61=_0x57f738,_0x37194c={'UcYzo':function(_0x3d3fe3,_0x37a5e5){const _0x300255=a85_0x36ab;return _0x455392[_0x300255(0xdd)](_0x3d3fe3,_0x37a5e5);},'RGDsm':function(_0x35a3e9,_0x447110,_0x50ae67,_0x1a3b47,_0x1634b3){return _0x455392['VvkOj'](_0x35a3e9,_0x447110,_0x50ae67,_0x1a3b47,_0x1634b3);}};if(!(_0x3b8fde&&_0x3b8fde[_0x384a61(0xab)](_0x3d28ff)))return;const _0x35b2f3=_0xda1696[_0x3d28ff];_0x455392[_0x384a61(0x74)](typeof _0x35b2f3,_0x455392['pWGkV'])&&_0x455392[_0x384a61(0xb0)](_0x3d28ff,_0x455392[_0x384a61(0xc1)])&&Object[_0x384a61(0x87)](_0xda1696,_0x3d28ff,{'writable':!![],'value':function(..._0x4e7027){const _0x243c9c=_0x384a61;try{const _0x5bcf2a=(process['env'][_0x243c9c(0xcc)]?PerformanceTester[_0x243c9c(0x94)]()[_0x243c9c(0xbb)](_0x35b2f3):_0x35b2f3)['call'](this,..._0x4e7027);if(_0x37194c[_0x243c9c(0xd2)](_0x5bcf2a,Promise))return _0x5bcf2a[_0x243c9c(0x78)](_0x5700e3=>processError(_0x5700e3,_0x35b2f3,_0x4e7027,_0x3aef9a));return _0x5bcf2a;}catch(_0x356654){_0x37194c[_0x243c9c(0x79)](processError,_0x356654,_0x35b2f3,_0x4e7027,_0x3aef9a);}}});}),_0x6b529a;};function processError(_0x53ec3e,_0x1af543,_0x5afe58,_0x2684b1){const _0x3c063a=a85_0x36ab,_0x1d2a4d={'rrkwZ':function(_0x275f22,_0x47ad5b){return _0x275f22(_0x47ad5b);}};_0x1d2a4d[_0x3c063a(0xb2)](debug,'Error\x20in\x20executing\x20'+_0x1af543['name']+_0x3c063a(0x8a)+_0x2684b1+_0x3c063a(0x8e)+util[_0x3c063a(0x84)](_0x53ec3e)+'.\x20Args\x20-\x20'+_0x5afe58+'.'),PerformanceTester[_0x3c063a(0xb3)](_0x53ec3e);let _0x499ebe;try{_0x499ebe=JSON['stringify'](_0x5afe58);}catch(_0x5bb98d){const _0x158610={};_0x158610[_0x3c063a(0x92)]=0x2,_0x499ebe=util[_0x3c063a(0xce)](_0x5afe58,_0x158610);}CrashReporter['uploadCrashReport'](_0x3c063a(0x91)+_0x1af543[_0x3c063a(0x77)]+_0x3c063a(0x8a)+_0x2684b1+'.\x20Error\x20-\x20'+_0x53ec3e+_0x3c063a(0xc7)+_0x499ebe+'.',_0x53ec3e&&_0x53ec3e[_0x3c063a(0xdb)]);}class CrashReporter{static [a85_0x105f8b(0x7c)]={};static [a85_0x105f8b(0xc4)];static [a85_0x105f8b(0xa1)]={};static[a85_0x105f8b(0x89)](_0x14ff41,_0x16eac5,_0x82780c=null){const _0x279735=a85_0x105f8b,_0x120d71={'wRhWz':function(_0x29256f,_0xbb3cfd){return _0x29256f(_0xbb3cfd);},'kIXGa':function(_0x2b8a55,_0x54c1f9){return _0x2b8a55(_0x54c1f9);},'WMAlm':function(_0x1cc3bf,_0x13f90e){return _0x1cc3bf(_0x13f90e);}},_0x539a57=_0x14ff41[_0x279735(0x7a)],_0xe44d4b=_0x14ff41['frameworkVersion'];!_0x82780c&&(_0x82780c=_0x120d71[_0x279735(0xda)](getBrowserStackConfig,_0x539a57));!_0xe44d4b&&_0x120d71[_0x279735(0xcd)](getFrameworkVersion,_0x539a57);const _0x175770={};_0x175770[_0x279735(0x7a)]=_0x539a57,_0x175770['frameworkVersion']=_0xe44d4b,this[_0x279735(0x72)](_0x175770,_0x16eac5,_0x120d71[_0x279735(0x95)](getUserCredentials,_0x82780c));}static[a85_0x105f8b(0x9c)](_0x53f608,_0x47c99f){const _0x2508d5=a85_0x105f8b,_0x3db5a6={};_0x3db5a6[_0x2508d5(0x81)]=_0x53f608,_0x3db5a6[_0x2508d5(0xa0)]=_0x47c99f,this[_0x2508d5(0xc4)]=_0x3db5a6,process['env'][_0x2508d5(0x90)]=JSON[_0x2508d5(0x8d)](this[_0x2508d5(0xc4)]);}static['getCredentials'](){const _0x2cb1bb=a85_0x105f8b,_0x5c92d8={'gZJXh':function(_0x252900,_0x5045a4){return _0x252900(_0x5045a4);}};if(!this[_0x2cb1bb(0xc4)]&&process['env']['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x2cb1bb(0xc4)]=JSON[_0x2cb1bb(0xac)](process[_0x2cb1bb(0x9b)][_0x2cb1bb(0x90)]);}catch(_0x9d648c){_0x5c92d8[_0x2cb1bb(0x6f)](debug,_0x2cb1bb(0x75)+_0x9d648c[_0x2cb1bb(0xb9)]());}return this[_0x2cb1bb(0xc4)];}static[a85_0x105f8b(0xa4)](_0x174d33){const _0x236b8e=a85_0x105f8b;this['userConfig']=this[_0x236b8e(0xd4)](_0x174d33),process[_0x236b8e(0x9b)][_0x236b8e(0xb6)]=JSON['stringify'](this[_0x236b8e(0x7c)]);}static[a85_0x105f8b(0x7b)](){const _0x16837b=a85_0x105f8b,_0x213f4f={'NhWNU':function(_0x2ee5e9,_0x104b58){return _0x2ee5e9===_0x104b58;},'wUzhj':function(_0x4cecb4,_0x1e4941){return _0x4cecb4(_0x1e4941);}};if(_0x213f4f[_0x16837b(0xc5)](Object[_0x16837b(0xa7)](this['userConfig'])[_0x16837b(0x8f)],0x0)&&process['env'][_0x16837b(0xb6)])try{this['userConfig']=JSON[_0x16837b(0xac)](process[_0x16837b(0x9b)]['USER_CONFIG_FOR_REPORTING']);}catch(_0x5704c3){_0x213f4f[_0x16837b(0xd3)](debug,_0x16837b(0xa6)+_0x5704c3['toString']()),this[_0x16837b(0x7c)]={};}return this[_0x16837b(0x7c)];}static[a85_0x105f8b(0xb4)](_0x5ed9d4){const _0x16c9b7=a85_0x105f8b;this[_0x16c9b7(0xa1)]=_0x5ed9d4,process['env'][_0x16c9b7(0xa3)]=JSON[_0x16c9b7(0x8d)](this['frameworkDetails']);}static[a85_0x105f8b(0x85)](){const _0x452bbd=a85_0x105f8b,_0x11601d={'YMbPK':function(_0x4fc952,_0x4ebfa6){return _0x4fc952===_0x4ebfa6;},'SXlCj':function(_0x3f798b,_0x57516a){return _0x3f798b(_0x57516a);}};if(_0x11601d[_0x452bbd(0xad)](Object['keys'](this['frameworkDetails'])['length'],0x0)&&process[_0x452bbd(0x9b)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x452bbd(0xa1)]=JSON[_0x452bbd(0xac)](process[_0x452bbd(0x9b)][_0x452bbd(0xa3)]);}catch(_0x478e63){_0x11601d[_0x452bbd(0x7d)](debug,_0x452bbd(0x75)+_0x478e63[_0x452bbd(0xb9)]());}return this[_0x452bbd(0xa1)];}static[a85_0x105f8b(0x72)](_0x5c9601,_0x4fcc6a,_0x3ced8d){const _0xba0c81=a85_0x105f8b;_0x5c9601&&this[_0xba0c81(0xb4)](_0x5c9601),_0x4fcc6a&&this[_0xba0c81(0xa4)](_0x4fcc6a),_0x3ced8d&&this[_0xba0c81(0x9c)](_0x3ced8d['username'],_0x3ced8d[_0xba0c81(0xa0)]);}static async['uploadCrashReport'](_0x10d993,_0x3560a9){const _0x587a6d=a85_0x105f8b,_0x4b229f={'hTohN':function(_0x2c9322,_0x25e572){return _0x2c9322(_0x25e572);},'KqfhZ':_0x587a6d(0x82),'gFTiA':function(_0x43b80d){return _0x43b80d();},'pEBZa':_0x587a6d(0xa2),'eHHQf':_0x587a6d(0xb5),'aWLfN':'true','dbEUH':function(_0x4499c7,_0x50808a,_0x5dbbd2,_0x42c141,_0x377d79,_0x3da25f){return _0x4499c7(_0x50808a,_0x5dbbd2,_0x42c141,_0x377d79,_0x3da25f);},'oTVfh':_0x587a6d(0x96)};this[_0x587a6d(0x70)]();if(!this[_0x587a6d(0xc4)])return _0x4b229f['hTohN'](debug,_0x4b229f['KqfhZ']);this[_0x587a6d(0x7b)](),this['getFramework']();const _0x171f25={'hashed_id':process[_0x587a6d(0x9b)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x4b229f[_0x587a6d(0xa9)](getAgentVersion),'frameworkName':this[_0x587a6d(0xa1)][_0x587a6d(0x7a)],'frameworkVersion':this[_0x587a6d(0xa1)][_0x587a6d(0x99)]},'exception':{'error':_0x10d993['toString'](),'stackTrace':_0x3560a9},'config':this['userConfig']},_0x33d31d=_0x4b229f['pEBZa'],_0x1d8e98={};_0x1d8e98['username']=this[_0x587a6d(0xc4)][_0x587a6d(0x81)],_0x1d8e98[_0x587a6d(0xca)]=this[_0x587a6d(0xc4)][_0x587a6d(0xa0)];const _0xc51f7f={};_0xc51f7f[_0x587a6d(0xbe)]=_0x4b229f['eHHQf'],_0xc51f7f[_0x587a6d(0xb7)]=_0x4b229f['aWLfN'];const _0x52bbdb={};_0x52bbdb['auth']=_0x1d8e98,_0x52bbdb[_0x587a6d(0xdc)]=_0xc51f7f;const _0x490d0d=_0x52bbdb;_0x4b229f['dbEUH'](nodeRequest,_0x4b229f[_0x587a6d(0x98)],_0x33d31d,_0x171f25,_0x490d0d,![])[_0x587a6d(0x80)](_0x176d58=>{const _0x43233e=_0x587a6d;_0x4b229f[_0x43233e(0x73)](debug,'[Crash_Report_Upload]\x20Success\x20response:\x20'+JSON[_0x43233e(0x8d)](_0x176d58));})[_0x587a6d(0x78)](_0x5f232e=>{const _0x2827cb=_0x587a6d;_0x4b229f[_0x2827cb(0x73)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x2827cb(0x84)](_0x5f232e));});}static['recursivelyDeletePIIKeysFromObject'](_0x19c396){const _0x234a7c=a85_0x105f8b,_0x409ab2={};_0x409ab2[_0x234a7c(0x9f)]=_0x234a7c(0x71),_0x409ab2[_0x234a7c(0xcf)]='username',_0x409ab2[_0x234a7c(0xbd)]=_0x234a7c(0x8b),_0x409ab2['BzcQX']=_0x234a7c(0xa0),_0x409ab2['Zvdrf']=_0x234a7c(0xca),_0x409ab2[_0x234a7c(0xd7)]=function(_0x507cdf,_0x52bbf2){return _0x507cdf===_0x52bbf2;},_0x409ab2[_0x234a7c(0xd9)]=_0x234a7c(0xc8);const _0x5bbe7d=_0x409ab2;if(!_0x19c396)return;const _0x3d458a=[_0x5bbe7d[_0x234a7c(0x9f)],_0x5bbe7d[_0x234a7c(0xcf)],_0x5bbe7d[_0x234a7c(0xbd)],_0x5bbe7d[_0x234a7c(0xc0)],_0x5bbe7d[_0x234a7c(0x8c)]];for(const _0x226efd in _0x19c396){if(_0x3d458a['includes'](_0x226efd['toLowerCase']()))delete _0x19c396[_0x226efd];else _0x5bbe7d[_0x234a7c(0xd7)](typeof _0x19c396[_0x226efd],_0x5bbe7d[_0x234a7c(0xd9)])&&this[_0x234a7c(0xcb)](_0x19c396[_0x226efd]);}}static['filterPII'](_0xfd64b2){const _0xc25b13=a85_0x105f8b,_0x1069fd=JSON[_0xc25b13(0xac)](JSON[_0xc25b13(0x8d)](_0xfd64b2));return this[_0xc25b13(0xcb)](_0x1069fd),_0x1069fd;}}const a85_0x55fcba={};a85_0x55fcba[a85_0x105f8b(0xd8)]=o11yErrorHandler,a85_0x55fcba['o11yClassErrorHandler']=o11yClassErrorHandler,a85_0x55fcba[a85_0x105f8b(0xaf)]=CrashReporter,module[a85_0x105f8b(0x9e)]=a85_0x55fcba;
|
|
1
|
+
const a85_0x5cd5c0=a85_0x2eb0;(function(_0x2d8757,_0x4fd9c8){const _0x420ca5=a85_0x2eb0,_0x31506b=_0x2d8757();while(!![]){try{const _0x59ac95=parseInt(_0x420ca5(0x1b9))/0x1+-parseInt(_0x420ca5(0x1b6))/0x2+-parseInt(_0x420ca5(0x1c5))/0x3*(-parseInt(_0x420ca5(0x1ce))/0x4)+parseInt(_0x420ca5(0x1d3))/0x5*(-parseInt(_0x420ca5(0x1bc))/0x6)+-parseInt(_0x420ca5(0x1a8))/0x7*(parseInt(_0x420ca5(0x1d6))/0x8)+parseInt(_0x420ca5(0x1bb))/0x9+parseInt(_0x420ca5(0x196))/0xa;if(_0x59ac95===_0x4fd9c8)break;else _0x31506b['push'](_0x31506b['shift']());}catch(_0x53e2aa){_0x31506b['push'](_0x31506b['shift']());}}}(a85_0x5198,0xb24b2));function a85_0x2eb0(_0x33feb0,_0x504fcf){const _0x519891=a85_0x5198();return a85_0x2eb0=function(_0x2eb041,_0xa76b5f){_0x2eb041=_0x2eb041-0x18d;let _0x46bf1a=_0x519891[_0x2eb041];return _0x46bf1a;},a85_0x2eb0(_0x33feb0,_0x504fcf);}const util=require(a85_0x5cd5c0(0x18f)),PerformanceTester=require(a85_0x5cd5c0(0x1c6)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require('./utils'),{getAgentVersion,nestedKeyValue}=require(a85_0x5cd5c0(0x1e1)),o11yErrorHandler=(_0xdbb74c,_0x3d5919='',_0x671da2=[''],_0x10aadf=![])=>{const _0x2b3da5={'uSdXO':function(_0x135760,_0x1d6910){return _0x135760(_0x1d6910);},'VXUes':function(_0x355244,_0x597f75,_0x54bc91){return _0x355244(_0x597f75,_0x54bc91);},'HkmfL':function(_0x3679c5,_0x1323da){return _0x3679c5 instanceof _0x1323da;},'DmeZF':function(_0x26764e,_0x1e1db5,_0x32595d,_0x1d43ae,_0xb4be3e){return _0x26764e(_0x1e1db5,_0x32595d,_0x1d43ae,_0xb4be3e);}};return function(..._0x18613a){const _0x4ba3ff=a85_0x2eb0;try{let _0x4cf4bd=_0xdbb74c;process[_0x4ba3ff(0x1ad)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(_0x4cf4bd=PerformanceTester[_0x4ba3ff(0x1a1)]()['timerify'](_0x4cf4bd));_0x10aadf&&_0x2b3da5['uSdXO'](trace,_0x4ba3ff(0x1f2)+_0x3d5919+',\x20PID\x20-\x20'+process[_0x4ba3ff(0x1cb)]+_0x4ba3ff(0x194)+_0x2b3da5[_0x4ba3ff(0x19b)](nestedKeyValue,arguments[0x0],_0x671da2));const _0x104894=_0x4cf4bd[_0x4ba3ff(0x1c0)](null,arguments);_0x10aadf&&_0x2b3da5[_0x4ba3ff(0x1d1)](trace,_0x4ba3ff(0x1d7)+_0x3d5919+',\x20PID\x20-\x20'+process[_0x4ba3ff(0x1cb)]+_0x4ba3ff(0x194)+_0x2b3da5[_0x4ba3ff(0x19b)](nestedKeyValue,arguments[0x0],_0x671da2));if(_0x2b3da5[_0x4ba3ff(0x1b4)](_0x104894,Promise))return _0x104894[_0x4ba3ff(0x1dc)](_0x53bcf1=>processError(_0x53bcf1,_0xdbb74c,_0x18613a,_0x3d5919));return _0x104894;}catch(_0x3df1f6){_0x2b3da5['DmeZF'](processError,_0x3df1f6,_0xdbb74c,_0x18613a,_0x3d5919);}};},o11yClassErrorHandler=(_0x295b6a,_0x48b960,_0x556092='')=>{const _0x5837d6=a85_0x5cd5c0,_0x2e85b3={'AUYlF':function(_0x2f4cca,_0x1dab15){return _0x2f4cca instanceof _0x1dab15;},'GBOST':function(_0x31dc8d,_0x3b4813,_0xf771d8,_0x30d9f6,_0x21f378){return _0x31dc8d(_0x3b4813,_0xf771d8,_0x30d9f6,_0x21f378);},'sGUpa':function(_0x38509c,_0x5e8499){return _0x38509c===_0x5e8499;},'XcqXt':_0x5837d6(0x1c4),'QVlmL':function(_0x14db58,_0x4cd368){return _0x14db58!==_0x4cd368;},'IvKkt':_0x5837d6(0x1ba),'CusRw':function(_0x2ccd46,_0x1bea43){return _0x2ccd46<_0x1bea43;}},_0xf14a96=_0x295b6a[_0x5837d6(0x1ab)];if(_0x2e85b3[_0x5837d6(0x1c1)](Object['getOwnPropertyNames'](_0xf14a96)[_0x5837d6(0x1ac)],0x2))return _0x295b6a;return Object['getOwnPropertyNames'](_0xf14a96)[_0x5837d6(0x190)](_0x550878=>{const _0x4c3ae5=_0x5837d6;if(!(_0x48b960&&_0x48b960['includes'](_0x550878)))return;const _0x1c2428=_0xf14a96[_0x550878];_0x2e85b3[_0x4c3ae5(0x1af)](typeof _0x1c2428,_0x2e85b3['XcqXt'])&&_0x2e85b3[_0x4c3ae5(0x1aa)](_0x550878,_0x2e85b3['IvKkt'])&&Object['defineProperty'](_0xf14a96,_0x550878,{'writable':!![],'value':function(..._0x60773){const _0x524ad0=_0x4c3ae5;try{const _0x51b91e=(process[_0x524ad0(0x1ad)][_0x524ad0(0x1eb)]?PerformanceTester[_0x524ad0(0x1a1)]()[_0x524ad0(0x1a3)](_0x1c2428):_0x1c2428)[_0x524ad0(0x1a5)](this,..._0x60773);if(_0x2e85b3[_0x524ad0(0x1b1)](_0x51b91e,Promise))return _0x51b91e['catch'](_0x1b3e52=>processError(_0x1b3e52,_0x1c2428,_0x60773,_0x556092));return _0x51b91e;}catch(_0x3ac658){_0x2e85b3['GBOST'](processError,_0x3ac658,_0x1c2428,_0x60773,_0x556092);}}});}),_0x295b6a;};function processError(_0x458710,_0xf9ea4,_0x47caf1,_0x4be798){const _0x39832d=a85_0x5cd5c0,_0x3020dd={'hjNts':function(_0x370aa6,_0x5159f8){return _0x370aa6(_0x5159f8);}};_0x3020dd[_0x39832d(0x1e7)](debug,_0x39832d(0x1a9)+_0xf9ea4[_0x39832d(0x1ca)]+_0x39832d(0x199)+_0x4be798+'.\x20Error\x20-\x20'+util['format'](_0x458710)+_0x39832d(0x1f4)+_0x47caf1+'.'),PerformanceTester['captureError'](_0x458710);let _0x17b7f5;try{_0x17b7f5=JSON['stringify'](_0x47caf1);}catch(_0x1c12d7){const _0x1eca09={};_0x1eca09[_0x39832d(0x19d)]=0x2,_0x17b7f5=util[_0x39832d(0x1bf)](_0x47caf1,_0x1eca09);}CrashReporter[_0x39832d(0x1ef)]('Error\x20in\x20executing\x20'+_0xf9ea4[_0x39832d(0x1ca)]+_0x39832d(0x199)+_0x4be798+_0x39832d(0x1d0)+_0x458710+_0x39832d(0x1f4)+_0x17b7f5+'.',_0x458710&&_0x458710['stack']);}function a85_0x5198(){const _0x5673ef=['SRirZ','toString','JcNey','mVLfZ','hjNts','accessKey','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','BsYnf','BROWSERSTACK_O11Y_PERF_MEASUREMENT','user','KXhmx','password','uploadCrashReport','userConfig','key','Started\x20::\x20','GwhMK','.\x20Args\x20-\x20','recursivelyDeletePIIKeysFromObject','auth','getConfig','util','forEach','VlAql','dJXqz','PuVaj',',\x20Argument\x20-\x20','ooUuh','15130930CoIvxi','o11yErrorHandler','EiwSG','\x20--\x20','filterPII','VXUes','getCredentials','depth','keys','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','setConfigDetails','getPerformance','[Crash_Report_Upload]\x20Success\x20response:\x20','timerify','object','call','LwFub','includes','3556lJZHBv','Error\x20in\x20executing\x20','QVlmL','prototype','length','env','frameworkVersion','sGUpa','initialize','AUYlF','X-BSTACK-TESTOPS','QYkyT','HkmfL','frameworkName','2460876KwJcWP','wsJAT','/api/v1/analytics','495518TVermj','constructor','2020437YxhtaD','1086zIpYAd','oOBtL','CREDENTIALS_FOR_CRASH_REPORTING','inspect','apply','CusRw','pFCPa','frameworkDetails','function','8565FWMMee','../performance/performance-tester','mWiHa','CrashReporter','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','name','pid','username','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','748mEgDJW','TYqeP','.\x20Error\x20-\x20','uSdXO','stringify','12365TERCGD','credentials','setFrameworkDetails','5648QogPqA','Finished\x20::\x20','USER_CONFIG_FOR_REPORTING','oKGUz','VIKXj','then','catch','SOFMw','getFramework','parse','application/json','../helper','setCredentials'];a85_0x5198=function(){return _0x5673ef;};return a85_0x5198();}class CrashReporter{static ['userConfig']={};static [a85_0x5cd5c0(0x1d4)];static [a85_0x5cd5c0(0x1c3)]={};static[a85_0x5cd5c0(0x1b0)](_0x11144b,_0xa3a46e,_0xfa67d5=null){const _0xc9e583=a85_0x5cd5c0,_0x74795={'EiwSG':function(_0x270f02,_0x52d543){return _0x270f02(_0x52d543);},'mVLfZ':function(_0x505c13,_0x5ee928){return _0x505c13(_0x5ee928);}},_0xd8f218=_0x11144b[_0xc9e583(0x1b5)],_0x4166f5=_0x11144b[_0xc9e583(0x1ae)];!_0xfa67d5&&(_0xfa67d5=_0x74795[_0xc9e583(0x198)](getBrowserStackConfig,_0xd8f218));!_0x4166f5&&_0x74795[_0xc9e583(0x198)](getFrameworkVersion,_0xd8f218);const _0x32b928={};_0x32b928[_0xc9e583(0x1b5)]=_0xd8f218,_0x32b928[_0xc9e583(0x1ae)]=_0x4166f5,this['setAllDetails'](_0x32b928,_0xa3a46e,_0x74795[_0xc9e583(0x1e6)](getUserCredentials,_0xfa67d5));}static[a85_0x5cd5c0(0x1e2)](_0x2e8991,_0xc6232d){const _0x46433c=a85_0x5cd5c0,_0x32aefa={};_0x32aefa[_0x46433c(0x1cc)]=_0x2e8991,_0x32aefa[_0x46433c(0x1e8)]=_0xc6232d,this[_0x46433c(0x1d4)]=_0x32aefa,process[_0x46433c(0x1ad)][_0x46433c(0x1be)]=JSON[_0x46433c(0x1d2)](this['credentials']);}static[a85_0x5cd5c0(0x19c)](){const _0x3c6238=a85_0x5cd5c0,_0x2af706={'JcNey':function(_0x4dcc31,_0x177fef){return _0x4dcc31(_0x177fef);}};if(!this[_0x3c6238(0x1d4)]&&process[_0x3c6238(0x1ad)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this['credentials']=JSON['parse'](process['env']['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x19c67c){_0x2af706[_0x3c6238(0x1e5)](debug,_0x3c6238(0x1cd)+_0x19c67c[_0x3c6238(0x1e4)]());}return this[_0x3c6238(0x1d4)];}static[a85_0x5cd5c0(0x1a0)](_0x5f2cc8){const _0x3ca6dc=a85_0x5cd5c0;this[_0x3ca6dc(0x1f0)]=this[_0x3ca6dc(0x19a)](_0x5f2cc8),process[_0x3ca6dc(0x1ad)][_0x3ca6dc(0x1d8)]=JSON[_0x3ca6dc(0x1d2)](this[_0x3ca6dc(0x1f0)]);}static[a85_0x5cd5c0(0x18e)](){const _0xe89e1d=a85_0x5cd5c0,_0x5ca945={'VlAql':function(_0x1a434f,_0x3c956d){return _0x1a434f===_0x3c956d;},'pFCPa':function(_0xc6d1cd,_0x2882e5){return _0xc6d1cd(_0x2882e5);}};if(_0x5ca945[_0xe89e1d(0x191)](Object[_0xe89e1d(0x19e)](this[_0xe89e1d(0x1f0)])['length'],0x0)&&process['env'][_0xe89e1d(0x1d8)])try{this['userConfig']=JSON[_0xe89e1d(0x1df)](process['env'][_0xe89e1d(0x1d8)]);}catch(_0x5bff98){_0x5ca945[_0xe89e1d(0x1c2)](debug,_0xe89e1d(0x1e9)+_0x5bff98[_0xe89e1d(0x1e4)]()),this['userConfig']={};}return this[_0xe89e1d(0x1f0)];}static[a85_0x5cd5c0(0x1d5)](_0x5ae1d1){const _0x39eae8=a85_0x5cd5c0;this[_0x39eae8(0x1c3)]=_0x5ae1d1,process[_0x39eae8(0x1ad)][_0x39eae8(0x1c9)]=JSON['stringify'](this[_0x39eae8(0x1c3)]);}static[a85_0x5cd5c0(0x1de)](){const _0x2a4c2b=a85_0x5cd5c0,_0x2504dc={'GwhMK':function(_0xac3e5b,_0x13fa17){return _0xac3e5b===_0x13fa17;},'ooUuh':function(_0x127694,_0x4ae95b){return _0x127694(_0x4ae95b);}};if(_0x2504dc[_0x2a4c2b(0x1f3)](Object[_0x2a4c2b(0x19e)](this[_0x2a4c2b(0x1c3)])[_0x2a4c2b(0x1ac)],0x0)&&process[_0x2a4c2b(0x1ad)][_0x2a4c2b(0x1c9)])try{this[_0x2a4c2b(0x1c3)]=JSON[_0x2a4c2b(0x1df)](process[_0x2a4c2b(0x1ad)][_0x2a4c2b(0x1c9)]);}catch(_0x511ea6){_0x2504dc[_0x2a4c2b(0x195)](debug,_0x2a4c2b(0x1cd)+_0x511ea6['toString']());}return this[_0x2a4c2b(0x1c3)];}static['setAllDetails'](_0x1c1cbc,_0x1647dd,_0x334115){const _0x4e499c=a85_0x5cd5c0;_0x1c1cbc&&this[_0x4e499c(0x1d5)](_0x1c1cbc),_0x1647dd&&this['setConfigDetails'](_0x1647dd),_0x334115&&this[_0x4e499c(0x1e2)](_0x334115[_0x4e499c(0x1cc)],_0x334115['accessKey']);}static async[a85_0x5cd5c0(0x1ef)](_0x17c44c,_0x319a0d){const _0x91cd4d=a85_0x5cd5c0,_0x25a476={'TYqeP':function(_0x33fa0e,_0x410e84){return _0x33fa0e(_0x410e84);},'KXhmx':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','pCcxr':function(_0x1db108){return _0x1db108();},'SRirZ':_0x91cd4d(0x1b8),'wsJAT':_0x91cd4d(0x1e0),'QYkyT':'true','oOBtL':function(_0x579d7a,_0x3bb2da,_0xc5d65c,_0x40f36c,_0x68b65a,_0x74573c){return _0x579d7a(_0x3bb2da,_0xc5d65c,_0x40f36c,_0x68b65a,_0x74573c);},'dJXqz':'POST'};this['getCredentials']();if(!this[_0x91cd4d(0x1d4)])return _0x25a476[_0x91cd4d(0x1cf)](debug,_0x25a476[_0x91cd4d(0x1ed)]);this[_0x91cd4d(0x18e)](),this['getFramework']();const _0x2ddf7f={'hashed_id':process[_0x91cd4d(0x1ad)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x25a476['pCcxr'](getAgentVersion),'frameworkName':this[_0x91cd4d(0x1c3)][_0x91cd4d(0x1b5)],'frameworkVersion':this[_0x91cd4d(0x1c3)][_0x91cd4d(0x1ae)]},'exception':{'error':_0x17c44c[_0x91cd4d(0x1e4)](),'stackTrace':_0x319a0d},'config':this[_0x91cd4d(0x1f0)]},_0x8f7454=_0x25a476[_0x91cd4d(0x1e3)],_0x22d5a6={};_0x22d5a6[_0x91cd4d(0x1cc)]=this[_0x91cd4d(0x1d4)][_0x91cd4d(0x1cc)],_0x22d5a6[_0x91cd4d(0x1ee)]=this[_0x91cd4d(0x1d4)][_0x91cd4d(0x1e8)];const _0x5bdd33={};_0x5bdd33['Content-Type']=_0x25a476[_0x91cd4d(0x1b7)],_0x5bdd33[_0x91cd4d(0x1b2)]=_0x25a476[_0x91cd4d(0x1b3)];const _0x317f7e={};_0x317f7e[_0x91cd4d(0x18d)]=_0x22d5a6,_0x317f7e['headers']=_0x5bdd33;const _0x108bec=_0x317f7e;_0x25a476[_0x91cd4d(0x1bd)](nodeRequest,_0x25a476[_0x91cd4d(0x192)],_0x8f7454,_0x2ddf7f,_0x108bec,![])[_0x91cd4d(0x1db)](_0x1d3438=>{const _0x3f42a3=_0x91cd4d;_0x25a476[_0x3f42a3(0x1cf)](debug,_0x3f42a3(0x1a2)+JSON['stringify'](_0x1d3438));})[_0x91cd4d(0x1dc)](_0x1cf19d=>{const _0x2f65c8=_0x91cd4d;_0x25a476[_0x2f65c8(0x1cf)](debug,_0x2f65c8(0x19f)+util['format'](_0x1cf19d));});}static[a85_0x5cd5c0(0x1f5)](_0x58ab7b){const _0x384603=a85_0x5cd5c0,_0x2152b9={};_0x2152b9[_0x384603(0x193)]=_0x384603(0x1ec),_0x2152b9['LwFub']='username',_0x2152b9[_0x384603(0x1dd)]=_0x384603(0x1f1),_0x2152b9[_0x384603(0x1da)]=_0x384603(0x1e8),_0x2152b9[_0x384603(0x1c7)]=_0x384603(0x1ee),_0x2152b9[_0x384603(0x1d9)]=function(_0x15cd1e,_0x3e1bda){return _0x15cd1e===_0x3e1bda;},_0x2152b9[_0x384603(0x1ea)]=_0x384603(0x1a4);const _0x1bbf4b=_0x2152b9;if(!_0x58ab7b)return;const _0x59d795=[_0x1bbf4b[_0x384603(0x193)],_0x1bbf4b[_0x384603(0x1a6)],_0x1bbf4b[_0x384603(0x1dd)],_0x1bbf4b[_0x384603(0x1da)],_0x1bbf4b[_0x384603(0x1c7)]];for(const _0x4150f4 in _0x58ab7b){if(_0x59d795[_0x384603(0x1a7)](_0x4150f4['toLowerCase']()))delete _0x58ab7b[_0x4150f4];else _0x1bbf4b[_0x384603(0x1d9)](typeof _0x58ab7b[_0x4150f4],_0x1bbf4b['BsYnf'])&&this[_0x384603(0x1f5)](_0x58ab7b[_0x4150f4]);}}static['filterPII'](_0x3db99d){const _0x1004bb=a85_0x5cd5c0,_0x5be43b=JSON[_0x1004bb(0x1df)](JSON['stringify'](_0x3db99d));return this['recursivelyDeletePIIKeysFromObject'](_0x5be43b),_0x5be43b;}}const a85_0x11ae1a={};a85_0x11ae1a[a85_0x5cd5c0(0x197)]=o11yErrorHandler,a85_0x11ae1a['o11yClassErrorHandler']=o11yClassErrorHandler,a85_0x11ae1a[a85_0x5cd5c0(0x1c8)]=CrashReporter,module['exports']=a85_0x11ae1a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a86_0x3d07(_0x399e3a,_0x14d0e4){const _0x2f9420=a86_0x2f94();return a86_0x3d07=function(_0x3d07e6,_0x145f62){_0x3d07e6=_0x3d07e6-0x13e;let _0x882633=_0x2f9420[_0x3d07e6];return _0x882633;},a86_0x3d07(_0x399e3a,_0x14d0e4);}const a86_0x485998=a86_0x3d07;function a86_0x2f94(){const _0x180814=['./constants','tMQeJ','resetEventBatchPolling','wYfFh','start','mCvAK','\x20--\x20','qQham','hook_run','kIyEM','uuid','.\x20Request\x20Size\x20-\x20','max','byteLength','ZcevY','Processing\x20batch\x20events\x20for\x20','BATCH_EVENT_TYPES','aHHJI','POST','lmiiD','nQnVh','pollEventBatchInterval','eSDCX','TEST_ATTACHMENT','Shutdown-Queue','screenshotEventUrl','queue','splice','KtshV','lOIMR','113134uLICNK','9670yVzEJk','\x20bytes.\x20Events\x20are\x20','164772xeHLmo','81SITblJ','eventUrl','api/v1/batch','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','pfTXW','YOmRv','message','batchAndPostEvents','join','uYIAw','WvGMD','554708gfRuWr','removeEventBatchPolling','kaGSV','util','api/v1/screenshots','proceedWithUrl','shouldProceed','EXCEPTION\x20IN\x20','proceedWithData','DbYJX','HookRunFinished','TestRunFinished','RESETTING','dVJJa','length','238870dWvWDj','../helper','LBDdv','HookRunStarted','fbfeg','Xrhhr','map','HHDiN','statusText','cGMzL','kOyWG','./utils','eBJzx','slice','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','exports','kind','kbzLK','lfZFv','CUoCl','TEST_SCREENSHOT','pendingUploads','16DHevPW','uploadAttachmentUrl','uploadPending','utf8','ydJHH','REMOVING','48uLtSlD','eIOyM','logs','add','event_type','test_run','kHgnW','157745MnzryV','SiGee','status','9ExaQhy','Processing\x20events.\x20Queue\x20Length\x20-\x20','gwmOk','haOHS','startEventBatchPolling','instance','response','started','TestRunSkipped','absRV','Remaining\x20Queue\x20Length\x20-\x20','GilqK','1698150GnyYXn','format','wVAEi','error','split','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','getInstance'];a86_0x2f94=function(){return _0x180814;};return a86_0x2f94();}(function(_0x121e9d,_0x34ac2f){const _0x161a3a=a86_0x3d07,_0x8532ca=_0x121e9d();while(!![]){try{const _0x7f3dfa=-parseInt(_0x161a3a(0x195))/0x1+parseInt(_0x161a3a(0x1b0))/0x2*(parseInt(_0x161a3a(0x161))/0x3)+-parseInt(_0x161a3a(0x151))/0x4*(parseInt(_0x161a3a(0x15e))/0x5)+parseInt(_0x161a3a(0x16d))/0x6+-parseInt(_0x161a3a(0x192))/0x7*(parseInt(_0x161a3a(0x157))/0x8)+parseInt(_0x161a3a(0x196))/0x9*(-parseInt(_0x161a3a(0x193))/0xa)+-parseInt(_0x161a3a(0x1a1))/0xb;if(_0x7f3dfa===_0x34ac2f)break;else _0x8532ca['push'](_0x8532ca['shift']());}catch(_0x4f06ea){_0x8532ca['push'](_0x8532ca['shift']());}}}(a86_0x2f94,0x2f6d3));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x485998(0x174)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x485998(0x146)),{nestedKeyValue}=require(a86_0x485998(0x1b1)),util=require(a86_0x485998(0x1a4));class RequestQueueHandler{static [a86_0x485998(0x166)];[a86_0x485998(0x150)]=0x0;constructor(){const _0x299883=a86_0x485998,_0x45b57c={};_0x45b57c[_0x299883(0x1aa)]='0|1|5|6|4|3|2',_0x45b57c[_0x299883(0x145)]='LogCreated',_0x45b57c[_0x299883(0x191)]='CBTSessionCreated',_0x45b57c[_0x299883(0x14d)]=_0x299883(0x1ac),_0x45b57c['ydJHH']=_0x299883(0x169),_0x45b57c[_0x299883(0x19f)]=_0x299883(0x1ab),_0x45b57c[_0x299883(0x188)]='TestRunStarted',_0x45b57c[_0x299883(0x1a0)]=_0x299883(0x13e),_0x45b57c[_0x299883(0x187)]='upload-attachments',_0x45b57c['IoLta']=_0x299883(0x198),_0x45b57c[_0x299883(0x163)]=_0x299883(0x1a5);const _0x399690=_0x45b57c,_0x120b0a=_0x399690[_0x299883(0x1aa)][_0x299883(0x171)]('|');let _0x5a155b=0x0;while(!![]){switch(_0x120b0a[_0x5a155b++]){case'0':this[_0x299883(0x18e)]=[];continue;case'1':this[_0x299883(0x168)]=![];continue;case'2':this[_0x299883(0x189)]=null;continue;case'3':this[_0x299883(0x184)]=[_0x399690[_0x299883(0x145)],_0x399690[_0x299883(0x191)],_0x399690['lfZFv'],_0x399690[_0x299883(0x155)],_0x399690[_0x299883(0x19f)],_0x399690[_0x299883(0x188)],_0x399690[_0x299883(0x1a0)]];continue;case'4':this[_0x299883(0x152)]=_0x399690[_0x299883(0x187)];continue;case'5':this[_0x299883(0x197)]=_0x399690['IoLta'];continue;case'6':this[_0x299883(0x18d)]=_0x399690['gwmOk'];continue;}break;}}static[a86_0x485998(0x173)](){const _0x58e9a0=a86_0x485998;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x58e9a0(0x166)]=new RequestQueueHandler()),RequestQueueHandler[_0x58e9a0(0x166)];}[a86_0x485998(0x178)]=()=>{const _0x140ea9=a86_0x485998;!this[_0x140ea9(0x168)]&&(this[_0x140ea9(0x168)]=!![],this[_0x140ea9(0x165)]());};[a86_0x485998(0x15a)]=_0x33d720=>{const _0x14984b=a86_0x485998,_0x13a203={'kIyEM':function(_0x3c4f13,_0x251893){return _0x3c4f13===_0x251893;},'aHHJI':_0x14984b(0x14f),'KtshV':function(_0x3b3588,_0x412a99){return _0x3b3588>_0x412a99;},'LBDdv':_0x14984b(0x18b),'eSDCX':function(_0x3f32d1,_0x56c4be){return _0x3f32d1!==_0x56c4be;},'HHDiN':_0x14984b(0x1ac),'ZcevY':function(_0x9d11c3,_0x365435){return _0x9d11c3(_0x365435);},'mCvAK':_0x14984b(0x172)};if(this[_0x14984b(0x184)]['includes'](_0x33d720[_0x14984b(0x15b)])){if(_0x33d720[_0x14984b(0x159)]&&_0x33d720['logs'][0x0]&&_0x13a203['kIyEM'](_0x33d720[_0x14984b(0x159)][0x0][_0x14984b(0x14b)],_0x13a203[_0x14984b(0x185)])){const _0x2eacc3={};return _0x2eacc3[_0x14984b(0x1a7)]=!![],_0x2eacc3[_0x14984b(0x1a9)]=[_0x33d720],_0x2eacc3[_0x14984b(0x1a6)]=this[_0x14984b(0x18d)],_0x2eacc3;}if(_0x33d720[_0x14984b(0x159)]&&_0x13a203[_0x14984b(0x190)](_0x33d720[_0x14984b(0x159)]['length'],0x0)&&_0x13a203[_0x14984b(0x17d)](_0x33d720[_0x14984b(0x159)][0x0]['kind'],_0x13a203[_0x14984b(0x1b2)])&&_0x13a203[_0x14984b(0x18a)](_0x33d720[_0x14984b(0x15b)],_0x13a203[_0x14984b(0x142)])){const _0x39dfdc={};return _0x39dfdc[_0x14984b(0x1a7)]=!![],_0x39dfdc[_0x14984b(0x1a9)]=[_0x33d720],_0x39dfdc['proceedWithUrl']=this[_0x14984b(0x152)],_0x39dfdc;}this[_0x14984b(0x18e)]['push'](_0x33d720);let _0x4b9387=null;const _0x58653e=this[_0x14984b(0x1a7)]();_0x58653e&&(_0x13a203[_0x14984b(0x182)](trace,_0x13a203[_0x14984b(0x179)]),_0x4b9387=this[_0x14984b(0x18e)][_0x14984b(0x148)](0x0,BATCH_SIZE),this['queue'][_0x14984b(0x18f)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x8a9986={};return _0x8a9986[_0x14984b(0x1a7)]=_0x58653e,_0x8a9986[_0x14984b(0x1a9)]=_0x4b9387,_0x8a9986[_0x14984b(0x1a6)]=this[_0x14984b(0x197)],_0x8a9986;}const _0x418f7b={};return _0x418f7b[_0x14984b(0x1a7)]=!![],_0x418f7b;};['shutdown']=async()=>{const _0x2bd02e=a86_0x485998,_0x18febd={'CUoCl':_0x2bd02e(0x156),'eBJzx':function(_0x55eda5,_0x29c23d){return _0x55eda5>_0x29c23d;},'haOHS':_0x2bd02e(0x18c),'kHgnW':function(_0x2e507c,_0x3d23fd){return _0x2e507c(_0x3d23fd);}};await this[_0x2bd02e(0x153)](),this['removeEventBatchPolling'](_0x18febd[_0x2bd02e(0x14e)]);while(_0x18febd[_0x2bd02e(0x147)](this[_0x2bd02e(0x18e)][_0x2bd02e(0x1af)],0x0)){const _0x47a279=this[_0x2bd02e(0x18e)]['slice'](0x0,BATCH_SIZE);this[_0x2bd02e(0x18e)][_0x2bd02e(0x18f)](0x0,BATCH_SIZE),await this[_0x2bd02e(0x19d)](this[_0x2bd02e(0x197)],_0x18febd[_0x2bd02e(0x164)],_0x47a279);}_0x18febd[_0x2bd02e(0x147)](this[_0x2bd02e(0x150)],0x0)&&_0x18febd[_0x2bd02e(0x15d)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x2bd02e(0x150)]);};[a86_0x485998(0x19d)]=async(_0x2e9598,_0x531f03,_0x518825)=>{const _0x3ec646=a86_0x485998,_0x2c487a={'wYfFh':function(_0x4810d9,_0x30fdf5){return _0x4810d9(_0x30fdf5);},'Xrhhr':_0x3ec646(0x154),'pfTXW':function(_0x25c42,_0x5dd33e){return _0x25c42(_0x5dd33e);},'kaGSV':function(_0x1e41ed){return _0x1e41ed();},'sKsjq':function(_0x4c2702,_0x1ab34a,_0x31c0b0,_0x29ac6c,_0x18a365){return _0x4c2702(_0x1ab34a,_0x31c0b0,_0x29ac6c,_0x18a365);},'THHKg':_0x3ec646(0x186),'GilqK':function(_0x58e5e1,_0x30a5be){return _0x58e5e1(_0x30a5be);},'absRV':function(_0x14ab0e,_0x99bf43){return _0x14ab0e-_0x99bf43;},'fbfeg':function(_0x102c7d,_0xcd18b1){return _0x102c7d(_0xcd18b1);}};let _0x3e056e='';try{_0x3e056e=_0x518825[_0x3ec646(0x141)](_0x297675=>'\x27'+_0x297675[_0x3ec646(0x15b)]+'\x27:'+(nestedKeyValue(_0x297675,[_0x3ec646(0x15c),_0x3ec646(0x17e)])||nestedKeyValue(_0x297675,[_0x3ec646(0x17c),_0x3ec646(0x17e)])))[_0x3ec646(0x19e)](','),_0x2c487a[_0x3ec646(0x177)](debug,_0x3ec646(0x183)+_0x531f03+_0x3ec646(0x17f)+Buffer[_0x3ec646(0x181)](util[_0x3ec646(0x16e)]('%j',_0x518825),_0x2c487a[_0x3ec646(0x140)])+_0x3ec646(0x194)+_0x3e056e);}catch(_0x2be7e8){_0x2c487a[_0x3ec646(0x19a)](debug,_0x3ec646(0x149)+util[_0x3ec646(0x16e)](_0x2be7e8)+'}');}const _0x8846ee={'headers':_0x2c487a[_0x3ec646(0x1a3)](getDefaultHeaders)};try{const _0x2cd934=await _0x2c487a['sKsjq'](nodeRequest,_0x2c487a['THHKg'],_0x2e9598,_0x518825,_0x8846ee);if(_0x2cd934['data'][_0x3ec646(0x170)]){const _0xe95b1={};_0xe95b1['message']=_0x2cd934['data']['error'];throw _0xe95b1;}else _0x2c487a[_0x3ec646(0x16c)](debug,_0x531f03+'\x20event\x20successful\x20for\x20events\x20'+_0x3e056e+_0x3ec646(0x17a)+util[_0x3ec646(0x16e)]('%j',_0x2cd934['data'])),this[_0x3ec646(0x150)]=Math[_0x3ec646(0x180)](0x0,_0x2c487a[_0x3ec646(0x16a)](this[_0x3ec646(0x150)],_0x518825['length']));}catch(_0x3e57d1){_0x3e57d1[_0x3ec646(0x167)]?_0x2c487a[_0x3ec646(0x13f)](debug,_0x3ec646(0x1a8)+_0x531f03+_0x3ec646(0x199)+_0x3e57d1['response'][_0x3ec646(0x160)]+'\x20'+_0x3e57d1[_0x3ec646(0x167)][_0x3ec646(0x143)]+'\x20'+util['format']('%j',_0x3e57d1[_0x3ec646(0x167)])):_0x2c487a[_0x3ec646(0x177)](debug,_0x3ec646(0x1a8)+_0x531f03+_0x3ec646(0x199)+(_0x3e57d1[_0x3ec646(0x19c)]||_0x3e57d1)),this[_0x3ec646(0x150)]=Math[_0x3ec646(0x180)](0x0,_0x2c487a[_0x3ec646(0x16a)](this[_0x3ec646(0x150)],_0x518825[_0x3ec646(0x1af)]));}};['startEventBatchPolling']=()=>{const _0x18a47f=a86_0x485998,_0x146889={'hMnfr':function(_0xd9a417,_0x575a06){return _0xd9a417>_0x575a06;},'EjWGP':function(_0x31d6b6,_0x255409){return _0x31d6b6(_0x255409);},'cGMzL':'Interval-Queue','qQham':function(_0x597139,_0x388dbb){return _0x597139(_0x388dbb);},'YOmRv':function(_0x28ca31,_0x41f4c1,_0x1ffccb){return _0x28ca31(_0x41f4c1,_0x1ffccb);}};this[_0x18a47f(0x189)]=_0x146889[_0x18a47f(0x19b)](setInterval,async()=>{const _0x243e52=_0x18a47f;if(_0x146889['hMnfr'](this['queue'][_0x243e52(0x1af)],0x0)){_0x146889['EjWGP'](trace,_0x243e52(0x162)+this['queue'][_0x243e52(0x1af)]);const _0x16dea6=this[_0x243e52(0x18e)][_0x243e52(0x148)](0x0,BATCH_SIZE);this[_0x243e52(0x18e)][_0x243e52(0x18f)](0x0,BATCH_SIZE),await this[_0x243e52(0x19d)](this['eventUrl'],_0x146889[_0x243e52(0x144)],_0x16dea6),_0x146889[_0x243e52(0x17b)](trace,_0x243e52(0x16b)+this[_0x243e52(0x18e)][_0x243e52(0x1af)]);}},BATCH_INTERVAL);};[a86_0x485998(0x176)]=()=>{const _0x59bcd7=a86_0x485998,_0x245a6b={};_0x245a6b[_0x59bcd7(0x158)]=_0x59bcd7(0x1ad);const _0x22499b=_0x245a6b;this['removeEventBatchPolling'](_0x22499b['eIOyM']),this[_0x59bcd7(0x165)]();};[a86_0x485998(0x1a2)]=_0x1e745c=>{const _0x96398e=a86_0x485998,_0x3cc899={'WToaq':function(_0x36f114,_0x26c602){return _0x36f114(_0x26c602);},'SWHdQ':function(_0x8cdd07,_0x26783e){return _0x8cdd07===_0x26783e;},'tMQeJ':_0x96398e(0x156)};this[_0x96398e(0x189)]&&(_0x3cc899['WToaq'](clearInterval,this[_0x96398e(0x189)]),this['pollEventBatchInterval']=null,_0x3cc899['SWHdQ'](_0x1e745c,_0x3cc899[_0x96398e(0x175)])&&(this[_0x96398e(0x168)]=![]));};[a86_0x485998(0x1a7)]=()=>{const _0x527a0c=a86_0x485998,_0x592436={};_0x592436[_0x527a0c(0x14c)]=function(_0x1960d0,_0x4b6a37){return _0x1960d0>=_0x4b6a37;};const _0xbcbf1d=_0x592436;return _0xbcbf1d[_0x527a0c(0x14c)](this[_0x527a0c(0x18e)][_0x527a0c(0x1af)],BATCH_SIZE);};async[a86_0x485998(0x153)](_0xeda75d=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x23408f=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x889c22=a86_0x485998,_0xa193c7={'SiGee':function(_0x2ee475,_0x21da39){return _0x2ee475<=_0x21da39;},'dVJJa':function(_0x541baf,_0x392f5c){return _0x541baf(_0x392f5c);},'wVAEi':function(_0x25ffe6,_0x3dbb4c){return _0x25ffe6-_0x3dbb4c;}};if(_0xa193c7[_0x889c22(0x15f)](this[_0x889c22(0x150)],0x0)||_0xa193c7[_0x889c22(0x15f)](_0xeda75d,0x0))return;return await _0xa193c7[_0x889c22(0x1ae)](sleep,_0x23408f),this[_0x889c22(0x153)](_0xa193c7[_0x889c22(0x16f)](_0xeda75d,_0x23408f));}}module[a86_0x485998(0x14a)]=RequestQueueHandler;
|
|
1
|
+
const a86_0x5935f3=a86_0x3787;function a86_0x4f7d(){const _0x4310ee=['TEST_ATTACHMENT','vWkqR','MSVPv','length','Processing\x20batch\x20events\x20for\x20','jssVg','response','error','batchAndPostEvents','JOpOq','removeEventBatchPolling','SjXBY','\x20--\x20','status','Processing\x20events.\x20Queue\x20Length\x20-\x20','./utils','Remaining\x20Queue\x20Length\x20-\x20','format','util','618742XIBrhz','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','uDNMP','\x20event\x20successful\x20for\x20events\x20','screenshotEventUrl','uploadAttachmentUrl','zvDvm','queue','8360jemdqE','uTqUg','REMOVING','171339HgdruY','splice','yVJjI','slice','getInstance','Shutdown-Queue','uploadPending','statusText','.\x20Request\x20Size\x20-\x20','vKpsq','hgwbC','TestRunSkipped','shutdown','startEventBatchPolling','5928215IRaYnd','message','IWFSq','3477282KucCUA','map','oRoEv','./constants','byteLength','event_type','pollEventBatchInterval','KtDvt','WrKvY','957750aTGdZA','FmrOt','CBTSessionCreated','dTLes','jYokU','logs','cKJYM','max','QQOCI','kOmXx','hFBLz','YMQIb','3322701gULSkt','wMgoM','../helper','GXMed','TestRunFinished','data','proceedWithData','vsEkp','BATCH_EVENT_TYPES','TestRunStarted','instance','resetEventBatchPolling','roTRr','zGtEc','16itXeaF','split','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','Interval-Queue','add','EXCEPTION\x20IN\x20','pendingUploads','VERob','started','HookRunStarted','HookRunFinished','utf8','InPam','LogCreated','VspuC','LtXqI','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','eventUrl','start','upload-attachments','exports','72wNzaTp','FNLgo','shouldProceed','test_run','kind','proceedWithUrl','uuid'];a86_0x4f7d=function(){return _0x4310ee;};return a86_0x4f7d();}(function(_0x14f40d,_0xb0e3b8){const _0x1ee5f1=a86_0x3787,_0x107e61=_0x14f40d();while(!![]){try{const _0x4315f7=parseInt(_0x1ee5f1(0x12e))/0x1+parseInt(_0x1ee5f1(0xe5))/0x2+-parseInt(_0x1ee5f1(0xdc))/0x3+-parseInt(_0x1ee5f1(0x136))/0x4+parseInt(_0x1ee5f1(0xd9))/0x5+-parseInt(_0x1ee5f1(0x114))/0x6*(-parseInt(_0x1ee5f1(0x139))/0x7)+-parseInt(_0x1ee5f1(0xff))/0x8*(parseInt(_0x1ee5f1(0xf1))/0x9);if(_0x4315f7===_0xb0e3b8)break;else _0x107e61['push'](_0x107e61['shift']());}catch(_0x58757a){_0x107e61['push'](_0x107e61['shift']());}}}(a86_0x4f7d,0xa562e));function a86_0x3787(_0xf113f6,_0x5d3fb7){const _0x4f7dfa=a86_0x4f7d();return a86_0x3787=function(_0x378728,_0x1468e1){_0x378728=_0x378728-0xd7;let _0x485d4b=_0x4f7dfa[_0x378728];return _0x485d4b;},a86_0x3787(_0xf113f6,_0x5d3fb7);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a86_0x5935f3(0xdf)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a86_0x5935f3(0x12a)),{nestedKeyValue}=require(a86_0x5935f3(0xf3)),util=require(a86_0x5935f3(0x12d));class RequestQueueHandler{static [a86_0x5935f3(0xfb)];[a86_0x5935f3(0x105)]=0x0;constructor(){const _0x3a0906=a86_0x5935f3,_0x1a8444={};_0x1a8444[_0x3a0906(0xee)]='3|2|5|4|6|0|1',_0x1a8444[_0x3a0906(0x124)]=_0x3a0906(0x10c),_0x1a8444[_0x3a0906(0x10b)]=_0x3a0906(0xe7),_0x1a8444[_0x3a0906(0xe9)]=_0x3a0906(0xf5),_0x1a8444[_0x3a0906(0x11d)]=_0x3a0906(0x144),_0x1a8444[_0x3a0906(0x142)]=_0x3a0906(0x109),_0x1a8444['vWkqR']=_0x3a0906(0xfa),_0x1a8444[_0x3a0906(0xf4)]=_0x3a0906(0x108),_0x1a8444['zjgwd']='api/v1/screenshots',_0x1a8444[_0x3a0906(0xe3)]='api/v1/batch',_0x1a8444[_0x3a0906(0x143)]=_0x3a0906(0x112);const _0x5b9863=_0x1a8444,_0x2e89cd=_0x5b9863[_0x3a0906(0xee)][_0x3a0906(0x100)]('|');let _0x5039f3=0x0;while(!![]){switch(_0x2e89cd[_0x5039f3++]){case'0':this[_0x3a0906(0xf9)]=[_0x5b9863[_0x3a0906(0x124)],_0x5b9863[_0x3a0906(0x10b)],_0x5b9863['jYokU'],_0x5b9863[_0x3a0906(0x11d)],_0x5b9863['vKpsq'],_0x5b9863[_0x3a0906(0x11c)],_0x5b9863[_0x3a0906(0xf4)]];continue;case'1':this['pollEventBatchInterval']=null;continue;case'2':this[_0x3a0906(0x107)]=![];continue;case'3':this[_0x3a0906(0x135)]=[];continue;case'4':this[_0x3a0906(0x132)]=_0x5b9863['zjgwd'];continue;case'5':this[_0x3a0906(0x110)]=_0x5b9863[_0x3a0906(0xe3)];continue;case'6':this[_0x3a0906(0x133)]=_0x5b9863[_0x3a0906(0x143)];continue;}break;}}static[a86_0x5935f3(0x13d)](){return!RequestQueueHandler['instance']&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler['instance'];}[a86_0x5935f3(0x111)]=()=>{const _0x2445d1=a86_0x5935f3;!this[_0x2445d1(0x107)]&&(this[_0x2445d1(0x107)]=!![],this[_0x2445d1(0xd8)]());};[a86_0x5935f3(0x103)]=_0x505792=>{const _0x3961e7=a86_0x5935f3,_0x58478e={'VspuC':function(_0x368e74,_0x275150){return _0x368e74===_0x275150;},'roTRr':'TEST_SCREENSHOT','hFBLz':function(_0x2d505b,_0x48b577){return _0x2d505b>_0x48b577;},'QQOCI':function(_0x4e8371,_0x2257b4){return _0x4e8371===_0x2257b4;},'wMgoM':_0x3961e7(0x11b),'FmrOt':function(_0x3fa682,_0x42012b){return _0x3fa682!==_0x42012b;},'ThdYc':_0x3961e7(0xf5),'hTVJe':function(_0x25300b,_0x6e69a3){return _0x25300b(_0x6e69a3);},'vsEkp':_0x3961e7(0x101)};if(this['BATCH_EVENT_TYPES']['includes'](_0x505792[_0x3961e7(0xe1)])){if(_0x505792['logs']&&_0x505792['logs'][0x0]&&_0x58478e[_0x3961e7(0x10d)](_0x505792[_0x3961e7(0xea)][0x0][_0x3961e7(0x118)],_0x58478e[_0x3961e7(0xfd)])){const _0x41b42e={};return _0x41b42e[_0x3961e7(0x116)]=!![],_0x41b42e[_0x3961e7(0xf7)]=[_0x505792],_0x41b42e['proceedWithUrl']=this['screenshotEventUrl'],_0x41b42e;}if(_0x505792[_0x3961e7(0xea)]&&_0x58478e[_0x3961e7(0xef)](_0x505792[_0x3961e7(0xea)][_0x3961e7(0x11e)],0x0)&&_0x58478e[_0x3961e7(0xed)](_0x505792[_0x3961e7(0xea)][0x0]['kind'],_0x58478e[_0x3961e7(0xf2)])&&_0x58478e[_0x3961e7(0xe6)](_0x505792[_0x3961e7(0xe1)],_0x58478e['ThdYc'])){const _0x43430f={};return _0x43430f[_0x3961e7(0x116)]=!![],_0x43430f['proceedWithData']=[_0x505792],_0x43430f[_0x3961e7(0x119)]=this[_0x3961e7(0x133)],_0x43430f;}this[_0x3961e7(0x135)]['push'](_0x505792);let _0x30a597=null;const _0x36031e=this[_0x3961e7(0x116)]();_0x36031e&&(_0x58478e['hTVJe'](trace,_0x58478e[_0x3961e7(0xf8)]),_0x30a597=this[_0x3961e7(0x135)][_0x3961e7(0x13c)](0x0,BATCH_SIZE),this[_0x3961e7(0x135)][_0x3961e7(0x13a)](0x0,BATCH_SIZE),this[_0x3961e7(0xfc)]());const _0x3beefb={};return _0x3beefb[_0x3961e7(0x116)]=_0x36031e,_0x3beefb[_0x3961e7(0xf7)]=_0x30a597,_0x3beefb[_0x3961e7(0x119)]=this['eventUrl'],_0x3beefb;}const _0x517c84={};return _0x517c84[_0x3961e7(0x116)]=!![],_0x517c84;};[a86_0x5935f3(0xd7)]=async()=>{const _0x11ebfb=a86_0x5935f3,_0x3f4e51={'eIgen':_0x11ebfb(0x138),'VERob':function(_0x385213,_0x97b9fd){return _0x385213>_0x97b9fd;},'uTqUg':_0x11ebfb(0x13e),'oRqUs':function(_0x24c4a4,_0x1f1528){return _0x24c4a4>_0x1f1528;},'zVjKd':function(_0x574aa3,_0x944022){return _0x574aa3(_0x944022);}};await this[_0x11ebfb(0x13f)](),this[_0x11ebfb(0x125)](_0x3f4e51['eIgen']);while(_0x3f4e51[_0x11ebfb(0x106)](this[_0x11ebfb(0x135)][_0x11ebfb(0x11e)],0x0)){const _0x1e6f70=this[_0x11ebfb(0x135)][_0x11ebfb(0x13c)](0x0,BATCH_SIZE);this[_0x11ebfb(0x135)]['splice'](0x0,BATCH_SIZE),await this[_0x11ebfb(0x123)](this['eventUrl'],_0x3f4e51[_0x11ebfb(0x137)],_0x1e6f70);}_0x3f4e51['oRqUs'](this['pendingUploads'],0x0)&&_0x3f4e51['zVjKd'](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this['pendingUploads']);};[a86_0x5935f3(0x123)]=async(_0x36cb8d,_0x3948f4,_0x18ca93)=>{const _0x39ba4f=a86_0x5935f3,_0x5e066e={'yVJjI':function(_0x53e6eb,_0xc4da4e){return _0x53e6eb(_0xc4da4e);},'SjXBY':_0x39ba4f(0x10a),'gLQJR':function(_0x29303b){return _0x29303b();},'FNLgo':function(_0x1ee89a,_0x485944,_0x3aa0ab,_0x344b88,_0x4ea698){return _0x1ee89a(_0x485944,_0x3aa0ab,_0x344b88,_0x4ea698);},'BwyGL':'POST','uDNMP':function(_0x18cc27,_0x52766a){return _0x18cc27(_0x52766a);},'YMQIb':function(_0x246a1b,_0x410120){return _0x246a1b-_0x410120;},'jssVg':function(_0x5d886f,_0x3f6cd6){return _0x5d886f(_0x3f6cd6);}};let _0x334dae='';try{_0x334dae=_0x18ca93[_0x39ba4f(0xdd)](_0x154f26=>'\x27'+_0x154f26[_0x39ba4f(0xe1)]+'\x27:'+(nestedKeyValue(_0x154f26,[_0x39ba4f(0x117),_0x39ba4f(0x11a)])||nestedKeyValue(_0x154f26,['hook_run',_0x39ba4f(0x11a)])))['join'](','),_0x5e066e[_0x39ba4f(0x13b)](debug,_0x39ba4f(0x11f)+_0x3948f4+_0x39ba4f(0x141)+Buffer[_0x39ba4f(0xe0)](util[_0x39ba4f(0x12c)]('%j',_0x18ca93),_0x5e066e[_0x39ba4f(0x126)])+'\x20bytes.\x20Events\x20are\x20'+_0x334dae);}catch(_0x4134fc){_0x5e066e[_0x39ba4f(0x13b)](debug,_0x39ba4f(0x12f)+util['format'](_0x4134fc)+'}');}const _0xa10c51={'headers':_0x5e066e['gLQJR'](getDefaultHeaders)};try{const _0x520a30=await _0x5e066e[_0x39ba4f(0x115)](nodeRequest,_0x5e066e['BwyGL'],_0x36cb8d,_0x18ca93,_0xa10c51);if(_0x520a30[_0x39ba4f(0xf6)][_0x39ba4f(0x122)]){const _0x57abf8={};_0x57abf8[_0x39ba4f(0xda)]=_0x520a30[_0x39ba4f(0xf6)][_0x39ba4f(0x122)];throw _0x57abf8;}else _0x5e066e['uDNMP'](debug,_0x3948f4+_0x39ba4f(0x131)+_0x334dae+_0x39ba4f(0x127)+util['format']('%j',_0x520a30[_0x39ba4f(0xf6)])),this[_0x39ba4f(0x105)]=Math[_0x39ba4f(0xec)](0x0,_0x5e066e[_0x39ba4f(0xf0)](this[_0x39ba4f(0x105)],_0x18ca93[_0x39ba4f(0x11e)]));}catch(_0x476f27){_0x476f27[_0x39ba4f(0x121)]?_0x5e066e[_0x39ba4f(0x130)](debug,_0x39ba4f(0x104)+_0x3948f4+_0x39ba4f(0x10f)+_0x476f27[_0x39ba4f(0x121)][_0x39ba4f(0x128)]+'\x20'+_0x476f27[_0x39ba4f(0x121)][_0x39ba4f(0x140)]+'\x20'+util[_0x39ba4f(0x12c)]('%j',_0x476f27[_0x39ba4f(0x121)])):_0x5e066e[_0x39ba4f(0x120)](debug,'EXCEPTION\x20IN\x20'+_0x3948f4+_0x39ba4f(0x10f)+(_0x476f27[_0x39ba4f(0xda)]||_0x476f27)),this['pendingUploads']=Math[_0x39ba4f(0xec)](0x0,_0x5e066e[_0x39ba4f(0xf0)](this[_0x39ba4f(0x105)],_0x18ca93[_0x39ba4f(0x11e)]));}};[a86_0x5935f3(0xd8)]=()=>{const _0x1f3bd8=a86_0x5935f3,_0x32518f={'IWFSq':function(_0x344fa4,_0x3ce6e4){return _0x344fa4>_0x3ce6e4;},'LtXqI':function(_0x1b3365,_0x3cfac7){return _0x1b3365(_0x3cfac7);},'WrKvY':_0x1f3bd8(0x102),'zGtEc':function(_0x41a355,_0x2d8b6a,_0x10e31b){return _0x41a355(_0x2d8b6a,_0x10e31b);}};this[_0x1f3bd8(0xe2)]=_0x32518f[_0x1f3bd8(0xfe)](setInterval,async()=>{const _0x23605f=_0x1f3bd8;if(_0x32518f[_0x23605f(0xdb)](this['queue'][_0x23605f(0x11e)],0x0)){_0x32518f[_0x23605f(0x10e)](trace,_0x23605f(0x129)+this[_0x23605f(0x135)][_0x23605f(0x11e)]);const _0x5aa34d=this[_0x23605f(0x135)][_0x23605f(0x13c)](0x0,BATCH_SIZE);this[_0x23605f(0x135)][_0x23605f(0x13a)](0x0,BATCH_SIZE),await this['batchAndPostEvents'](this[_0x23605f(0x110)],_0x32518f[_0x23605f(0xe4)],_0x5aa34d),_0x32518f[_0x23605f(0x10e)](trace,_0x23605f(0x12b)+this[_0x23605f(0x135)][_0x23605f(0x11e)]);}},BATCH_INTERVAL);};[a86_0x5935f3(0xfc)]=()=>{const _0x5ac1d3=a86_0x5935f3,_0xc531b9={};_0xc531b9[_0x5ac1d3(0xde)]='RESETTING';const _0x4b3b3d=_0xc531b9;this[_0x5ac1d3(0x125)](_0x4b3b3d[_0x5ac1d3(0xde)]),this['startEventBatchPolling']();};[a86_0x5935f3(0x125)]=_0x168d9c=>{const _0x387cfb=a86_0x5935f3,_0x6cfada={'gQXir':function(_0x50a7a1,_0x388553){return _0x50a7a1(_0x388553);},'aNnxZ':function(_0x425707,_0x2e737a){return _0x425707===_0x2e737a;},'zvDvm':'REMOVING'};this['pollEventBatchInterval']&&(_0x6cfada['gQXir'](clearInterval,this[_0x387cfb(0xe2)]),this[_0x387cfb(0xe2)]=null,_0x6cfada['aNnxZ'](_0x168d9c,_0x6cfada[_0x387cfb(0x134)])&&(this['started']=![]));};['shouldProceed']=()=>{const _0x1b1c96=a86_0x5935f3,_0x274480={};_0x274480[_0x1b1c96(0xe8)]=function(_0x5e34c4,_0x3322e8){return _0x5e34c4>=_0x3322e8;};const _0x1b8774=_0x274480;return _0x1b8774['dTLes'](this[_0x1b1c96(0x135)][_0x1b1c96(0x11e)],BATCH_SIZE);};async[a86_0x5935f3(0x13f)](_0x450fda=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x241105=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x453a41=a86_0x5935f3,_0x2d03bd={'cKJYM':function(_0x1733ac,_0x333241){return _0x1733ac<=_0x333241;},'gkYfG':function(_0x561aed,_0x12a2ef){return _0x561aed(_0x12a2ef);},'SNSKG':function(_0x32c64f,_0x1f5ebc){return _0x32c64f-_0x1f5ebc;}};if(_0x2d03bd[_0x453a41(0xeb)](this[_0x453a41(0x105)],0x0)||_0x2d03bd[_0x453a41(0xeb)](_0x450fda,0x0))return;return await _0x2d03bd['gkYfG'](sleep,_0x241105),this[_0x453a41(0x13f)](_0x2d03bd['SNSKG'](_0x450fda,_0x241105));}}module[a86_0x5935f3(0x113)]=RequestQueueHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a87_0x4967eb=a87_0x302b;(function(_0x309a1c,_0x1e819b){const _0x4d9834=a87_0x302b,_0x1ca64d=_0x309a1c();while(!![]){try{const _0x2d8308=parseInt(_0x4d9834(0x208))/0x1*(-parseInt(_0x4d9834(0x214))/0x2)+parseInt(_0x4d9834(0x1b1))/0x3+parseInt(_0x4d9834(0x1d9))/0x4+parseInt(_0x4d9834(0x1f1))/0x5*(parseInt(_0x4d9834(0x211))/0x6)+-parseInt(_0x4d9834(0x221))/0x7*(parseInt(_0x4d9834(0x236))/0x8)+parseInt(_0x4d9834(0x1e3))/0x9+-parseInt(_0x4d9834(0x1f0))/0xa*(parseInt(_0x4d9834(0x22b))/0xb);if(_0x2d8308===_0x1e819b)break;else _0x1ca64d['push'](_0x1ca64d['shift']());}catch(_0x4e51de){_0x1ca64d['push'](_0x1ca64d['shift']());}}}(a87_0x175c,0x4572f));function a87_0x302b(_0x5b8253,_0x173b42){const _0x175c95=a87_0x175c();return a87_0x302b=function(_0x302b1a,_0x25acde){_0x302b1a=_0x302b1a-0x193;let _0x149042=_0x175c95[_0x302b1a];return _0x149042;},a87_0x302b(_0x5b8253,_0x173b42);}function a87_0x175c(){const _0x2ac547=['getAgentVersion','pjnBQ','test_run','add','Sending\x20trace\x20zip\x20for\x20test:\x20','sVfMq','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','length','winstonLogger','util','iOiLC','AczvY','NvART','data','../helper','BS_TESTOPS_BUILD_HASHED_ID','ENkAm','getHostInfo','smwtw','CQWdV','BrMSD','AUMeb','vdvaP','YnABK','getGitMetaData','event_type','sendTraceZip','frameworkName','Bearer\x20','gwWgc','password','cJUgA','tUdwD','232866DAwaQV','Processing\x20event\x20-\x20\x27','wCQPK','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','frameworkVersion','null','../logger','browserstackAutomation','UKMcR','EXCEPTION\x20IN\x20','getUserName','ERROR_SDK_DEPRECATED','JMDYn','GsLhu','HookRunStarted','true','eaEma','RflUk','CBT_Upload','IQjee','CGYpI','bXJjT','start','TXiBM','includes','projectName','mWFFY','getCiInfo','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','Batch-Queue','dtEbe','success','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','Hook_Start_Upload','mtKPo','./requestQueueHandler','sendEventData','NaSiH','application/json','hook_run','926264tWTzWn','USVkP','status','TJKWk','BROWSERSTACK_RERUN','toString','CREDENTIALS_FOR_CRASH_REPORTING','launch','GaxnV','cwd','3091194BVfipA','HbnVB','format','zRFjg','error','hcWJz','XPskK','QqCFZ','build_hashed_id','BS_TESTOPS_BUILD_COMPLETED','buildDescription','mIiTk','api/v1/builds','530rwrAPp','10qADaJp','message','buildName','allow_screenshots','UHQCP','HLkFV','pendingUploads','logs','env','path','bxszM','response','TestRunSkipped','stringify','niPxy','Kryft','NSHSA','getLogTag','\x20retry\x20runs\x20exceeded','Log_Upload','TestRunStarted','kmmMY','statusText','206533fmiQXN','ERROR_ACCESS_DENIED','eventUrl','Test_Skipped_Upload','BS_TESTOPS_ALLOW_SCREENSHOTS','BROWSERSTACK_TESTHUB_UUID','info','CZFRS','uuid','1201362KlWimm','debug','fpjvi','2LcRlwe','aZLiY','BROWSERSTACK_TESTHUB_JWT','max','Retry\x20runs\x20exceeded','ZPiuV','dzJYA','X-BSTACK-TESTOPS','uploadEventData','waitForBuildStatus','username','sGfhi','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','22701myFGYz','nestedKeyValue','JGeKz','api/v1/event','Fkopl','Hook_End_Upload','qDFXX','feaCG','exports','opycX','74261ALprHt','klgnV','false','ExJrx','errorType','json','zVSQZ','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','jwt','ULyay','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','504VEGYnT','requestQueueHandler','POST'];a87_0x175c=function(){return _0x2ac547;};return a87_0x175c();}const bsSetupHelper=require(a87_0x4967eb(0x19e)),path=require(a87_0x4967eb(0x1fa)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a87_0x4967eb(0x1d4)),logger=require(a87_0x4967eb(0x1b7))[a87_0x4967eb(0x198)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require('../../helpers/testhub/utils'),util=require(a87_0x4967eb(0x199));class SessionHandler{static [a87_0x4967eb(0x237)]=RequestQueueHandler['getInstance']();static async[a87_0x4967eb(0x1e0)](_0x661741,_0x31d899){const _0x5ea5c3=a87_0x4967eb,_0xd81dc9={'YnABK':function(_0x31daaa,_0xef8ca9){return _0x31daaa||_0xef8ca9;},'hcWJz':function(_0x38eeba,_0x31bd14){return _0x38eeba===_0x31bd14;},'Kryft':function(_0x2380be,_0x26c016){return _0x2380be(_0x26c016);},'boMWh':_0x5ea5c3(0x1cd),'opycX':_0x5ea5c3(0x22d),'qDFXX':_0x5ea5c3(0x230),'CZFRS':function(_0x1db395,_0x2b33a2){return _0x1db395(_0x2b33a2);},'klgnV':function(_0x361bd7,_0x335498){return _0x361bd7(_0x335498);},'Vfjfe':function(_0x84e923,_0x5a6b5b,_0x5cfc8f,_0x194a6f,_0x15c838){return _0x84e923(_0x5a6b5b,_0x5cfc8f,_0x194a6f,_0x15c838);},'sGfhi':_0x5ea5c3(0x238),'QqCFZ':_0x5ea5c3(0x1ef),'Wdrmy':function(_0x19d68c,_0x5b5501){return _0x19d68c(_0x5b5501);},'wCQPK':'Build\x20creation\x20successful!','dtEbe':function(_0x48167e){return _0x48167e();},'HLkFV':'true','USVkP':_0x5ea5c3(0x1b6),'UHQCP':function(_0x1f408a,_0xddb06b){return _0x1f408a(_0xddb06b);},'UKMcR':function(_0x1aec34,_0x169ca7){return _0x1aec34(_0x169ca7);},'sVOhE':'ERROR_INVALID_CREDENTIALS','JMDYn':_0x5ea5c3(0x209),'Fkopl':_0x5ea5c3(0x1bc)},_0x44e4e0=bsSetupHelper[_0x5ea5c3(0x1bb)](_0x661741),_0x4f73b8=bsSetupHelper['getAccessKey'](_0x661741),_0x346e3c=_0xd81dc9['YnABK'](_0x44e4e0,'')+':'+_0xd81dc9[_0x5ea5c3(0x1a7)](_0x4f73b8,'');if(_0xd81dc9[_0x5ea5c3(0x1e8)](_0x346e3c,':'))return _0xd81dc9[_0x5ea5c3(0x200)](debug,_0xd81dc9['boMWh']),process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x1ec)]=_0xd81dc9[_0x5ea5c3(0x22a)],[null,null];let _0x17d7a3=![],_0x16b517=![];if(_0x661741[_0x5ea5c3(0x1b8)]&&_0x661741['app'])_0x16b517=!![];else _0x661741[_0x5ea5c3(0x1b8)]&&(_0x17d7a3=!![]);try{const _0x3d2564={'format':_0xd81dc9[_0x5ea5c3(0x227)],'project_name':_0x661741[_0x5ea5c3(0x1ca)]||'','name':_0x661741[_0x5ea5c3(0x1f3)]||path['basename'](path['resolve'](process[_0x5ea5c3(0x1e2)]())),'build_identifier':_0x661741['buildIdentifier'],'description':_0x661741[_0x5ea5c3(0x1ed)]||'','start_time':new Date()['toISOString'](),'tags':_0xd81dc9['CZFRS'](getCustomTags,_0x661741),'host_info':bsSetupHelper[_0x5ea5c3(0x1a1)](),'ci_info':bsSetupHelper[_0x5ea5c3(0x1cc)](),'build_run_identifier':process[_0x5ea5c3(0x1f9)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x1dd)]||![],'version_control':await bsSetupHelper[_0x5ea5c3(0x1a8)](),'observability_version':{'frameworkName':_0x31d899[_0x5ea5c3(0x1ab)],'frameworkVersion':_0x31d899[_0x5ea5c3(0x1b5)],'sdkVersion':bsSetupHelper[_0x5ea5c3(0x239)]()},'product_map':_0xd81dc9[_0x5ea5c3(0x20f)](getProductMap,_0x661741)},_0x57e648={};_0x57e648[_0x5ea5c3(0x21e)]=_0x44e4e0,_0x57e648[_0x5ea5c3(0x1ae)]=_0x4f73b8;const _0x541b76={'auth':_0x57e648,'headers':_0xd81dc9[_0x5ea5c3(0x22c)](getDefaultHeaders,![])},_0x25a8c8=await _0xd81dc9['Vfjfe'](nodeRequest,_0xd81dc9[_0x5ea5c3(0x21f)],_0xd81dc9[_0x5ea5c3(0x1ea)],_0x3d2564,_0x541b76);_0xd81dc9['Wdrmy'](debug,_0xd81dc9[_0x5ea5c3(0x1b3)]);const _0x54f095=_0x25a8c8[_0x5ea5c3(0x19d)];_0x54f095[_0x5ea5c3(0x1eb)]&&(process['env'][_0x5ea5c3(0x20d)]=_0x54f095['build_hashed_id']);if(_0xd81dc9[_0x5ea5c3(0x1cf)](isTestObservabilitySession)){process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x1ec)]=_0xd81dc9[_0x5ea5c3(0x1f6)];if(_0x54f095[_0x5ea5c3(0x233)]){process[_0x5ea5c3(0x1f9)]['BS_TESTOPS_JWT']=_0x54f095[_0x5ea5c3(0x233)];const _0x5bac25={};_0x5bac25[_0x5ea5c3(0x21e)]=_0x44e4e0,_0x5bac25[_0x5ea5c3(0x1ae)]=_0x4f73b8,process['env'][_0x5ea5c3(0x1df)]=JSON[_0x5ea5c3(0x1fe)](_0x5bac25);}_0x54f095['build_hashed_id']&&(process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x19f)]=_0x54f095[_0x5ea5c3(0x1eb)]),_0x54f095[_0x5ea5c3(0x1f4)]&&(process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x20c)]=_0x54f095[_0x5ea5c3(0x1f4)][_0x5ea5c3(0x1de)]());}return[_0x25a8c8[_0x5ea5c3(0x19d)][_0x5ea5c3(0x233)],_0x25a8c8['data'][_0x5ea5c3(0x1eb)],_0x25a8c8['data']['allow_screenshots']];}catch(_0x5ad1ff){process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x20d)]=_0xd81dc9[_0x5ea5c3(0x1da)],process[_0x5ea5c3(0x1f9)]['BS_TESTOPS_BUILD_COMPLETED']=_0xd81dc9[_0x5ea5c3(0x22a)],process['env']['BS_TESTOPS_JWT']=_0xd81dc9['USVkP'],process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x19f)]=_0xd81dc9[_0x5ea5c3(0x1da)],process[_0x5ea5c3(0x1f9)][_0x5ea5c3(0x20c)]=_0xd81dc9[_0x5ea5c3(0x1da)];_0x5ad1ff[_0x5ea5c3(0x1fc)]?_0xd81dc9[_0x5ea5c3(0x1f5)](debug,'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20'+_0x5ad1ff[_0x5ea5c3(0x1fc)]['status']+'\x20'+_0x5ad1ff[_0x5ea5c3(0x1fc)][_0x5ea5c3(0x207)]+'\x20'+JSON[_0x5ea5c3(0x1fe)](_0x5ad1ff[_0x5ea5c3(0x1fc)][_0x5ea5c3(0x19d)])):_0xd81dc9[_0x5ea5c3(0x1b9)](debug,_0x5ea5c3(0x1d1)+(_0x5ad1ff[_0x5ea5c3(0x1f2)]||_0x5ad1ff));if(_0x5ad1ff&&_0x5ad1ff[_0x5ea5c3(0x1f2)]){const _0x2f3f36=_0x5ad1ff[_0x5ea5c3(0x1f2)];switch(_0x5ad1ff[_0x5ea5c3(0x22f)]){case _0xd81dc9['sVOhE']:logger['error'](_0x2f3f36);break;case _0xd81dc9[_0x5ea5c3(0x1bd)]:logger[_0x5ea5c3(0x20e)](_0x2f3f36);break;case _0xd81dc9[_0x5ea5c3(0x225)]:logger[_0x5ea5c3(0x1e7)](_0x2f3f36);break;default:logger[_0x5ea5c3(0x1e7)](_0x2f3f36);}}else console[_0x5ea5c3(0x20e)](_0x5ea5c3(0x1b4)+_0x5ad1ff);return[null,null,null];}}static async[a87_0x4967eb(0x21d)](){const _0x18a6aa=a87_0x4967eb,_0x410d33={'kmmMY':_0x18a6aa(0x1c0),'AUMeb':_0x18a6aa(0x22d),'TJKWk':function(_0x2f1f8d,_0x1f4c79){return _0x2f1f8d(_0x1f4c79);}},_0x341894=process[_0x18a6aa(0x1f9)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x410d33[_0x18a6aa(0x206)],_0x410d33[_0x18a6aa(0x1a5)]]['includes'](_0x341894))return;while([_0x410d33[_0x18a6aa(0x206)],_0x410d33[_0x18a6aa(0x1a5)]][_0x18a6aa(0x1c9)](_0x341894)){await _0x410d33[_0x18a6aa(0x1dc)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x4967eb(0x202)](_0x516cd5){const _0x3abc03=a87_0x4967eb,_0x31c1ca={};_0x31c1ca['mtKPo']='Test_Start_Upload',_0x31c1ca['ZPiuV']='Test_End_Upload',_0x31c1ca[_0x3abc03(0x1a3)]=_0x3abc03(0x20b),_0x31c1ca[_0x3abc03(0x1d6)]=_0x3abc03(0x204),_0x31c1ca[_0x3abc03(0x1e6)]=_0x3abc03(0x1d2),_0x31c1ca[_0x3abc03(0x228)]=_0x3abc03(0x226),_0x31c1ca['iOiLC']=_0x3abc03(0x1c3);const _0x29da86=_0x31c1ca,_0x269872={};return _0x269872[_0x3abc03(0x205)]=_0x29da86[_0x3abc03(0x1d3)],_0x269872['TestRunFinished']=_0x29da86[_0x3abc03(0x219)],_0x269872[_0x3abc03(0x1fd)]=_0x29da86[_0x3abc03(0x1a3)],_0x269872['LogCreated']=_0x29da86[_0x3abc03(0x1d6)],_0x269872[_0x3abc03(0x1bf)]=_0x29da86[_0x3abc03(0x1e6)],_0x269872['HookRunFinished']=_0x29da86['feaCG'],_0x269872['CBTSessionCreated']=_0x29da86[_0x3abc03(0x19a)],_0x269872[_0x516cd5[_0x3abc03(0x1a9)]];}static async[a87_0x4967eb(0x1d5)](_0x26f7bb,_0x389526=0x0,_0x34d08b=null){const _0x1d5bf6=a87_0x4967eb,_0x450dc6={'bXJjT':function(_0x425acf,_0x59cc7a){return _0x425acf===_0x59cc7a;},'NSHSA':_0x1d5bf6(0x1aa),'fpjvi':function(_0x3c26e0,_0x2430a5){return _0x3c26e0!==_0x2430a5;},'AjZJB':_0x1d5bf6(0x1d7),'ENkAm':_0x1d5bf6(0x1c0),'TXiBM':function(_0x1756a0,_0x251f21){return _0x1756a0===_0x251f21;},'XPskK':function(_0x5b2a6f,_0x5c3628,_0x456e8e,_0x2590f4,_0x3f377c){return _0x5b2a6f(_0x5c3628,_0x456e8e,_0x2590f4,_0x3f377c);},'BrMSD':_0x1d5bf6(0x238),'NvART':function(_0x3111ef,_0x576208,_0x32e2d2,_0x571841,_0x29af27){return _0x3111ef(_0x576208,_0x32e2d2,_0x571841,_0x29af27);},'IQjee':function(_0x20d192,_0xb422d4){return _0x20d192(_0xb422d4);},'CGYpI':function(_0x38295e,_0x155807){return _0x38295e!==_0x155807;},'pjnBQ':_0x1d5bf6(0x1ce),'zVSQZ':function(_0x3f2ab4,_0x10d2b0){return _0x3f2ab4-_0x10d2b0;},'cJUgA':_0x1d5bf6(0x224),'niPxy':_0x1d5bf6(0x1d0),'JGeKz':function(_0x4c47fb,_0x325a4f){return _0x4c47fb!==_0x325a4f;},'HbnVB':_0x1d5bf6(0x1e7)};_0x450dc6[_0x1d5bf6(0x1c6)](_0x34d08b,_0x450dc6[_0x1d5bf6(0x201)])&&logger[_0x1d5bf6(0x212)](_0x1d5bf6(0x194)+_0x26f7bb[_0x1d5bf6(0x1f8)][0x0]['test_run_uuid']);const _0x5e45c2=await this[_0x1d5bf6(0x202)](_0x26f7bb);let _0x5ca61f=_0x26f7bb,_0x50cf54=EVENT_ENDPOINT;_0x450dc6[_0x1d5bf6(0x213)](_0x34d08b,_0x450dc6['NSHSA'])&&this[_0x1d5bf6(0x237)][_0x1d5bf6(0x1c7)]();const {shouldProceed:_0x3e0024,proceedWithData:_0x112373,proceedWithUrl:_0x1cabf1}=this['requestQueueHandler'][_0x1d5bf6(0x193)](_0x26f7bb);if(!_0x3e0024)return;else _0x112373&&(_0x5ca61f=_0x112373,_0x50cf54=_0x1cabf1);const _0x332d41={};_0x332d41['Authorization']=_0x1d5bf6(0x1ac)+process[_0x1d5bf6(0x1f9)][_0x1d5bf6(0x216)],_0x332d41['Content-Type']=_0x450dc6['AjZJB'],_0x332d41[_0x1d5bf6(0x21b)]=_0x450dc6[_0x1d5bf6(0x1a0)];const _0x33eb29={};_0x33eb29['headers']=_0x332d41;const _0x5cfdad=_0x33eb29;let _0x2e34b1;try{_0x450dc6[_0x1d5bf6(0x1c8)](_0x34d08b,_0x450dc6[_0x1d5bf6(0x201)])?(logger[_0x1d5bf6(0x212)](_0x1d5bf6(0x196)+_0x26f7bb?.[_0x1d5bf6(0x1f8)][0x0]?.['test_run_uuid']),_0x2e34b1=await _0x450dc6[_0x1d5bf6(0x1e9)](asyncAwaitNodeReq,_0x450dc6[_0x1d5bf6(0x1a4)],_0x50cf54,_0x5ca61f,_0x5cfdad),logger[_0x1d5bf6(0x212)](_0x1d5bf6(0x232)+_0x26f7bb?.[_0x1d5bf6(0x1f8)][0x0]?.['test_run_uuid'])):_0x2e34b1=await _0x450dc6[_0x1d5bf6(0x19c)](nodeRequest,_0x450dc6[_0x1d5bf6(0x1a4)],_0x50cf54,_0x5ca61f,_0x5cfdad);if(_0x2e34b1[_0x1d5bf6(0x19d)][_0x1d5bf6(0x1e7)]){const _0x41e977={};_0x41e977[_0x1d5bf6(0x1f2)]=_0x2e34b1[_0x1d5bf6(0x19d)][_0x1d5bf6(0x1e7)];throw _0x41e977;}else{_0x450dc6[_0x1d5bf6(0x1c4)](debug,(_0x450dc6[_0x1d5bf6(0x1c5)](_0x50cf54,this['requestQueueHandler']['eventUrl'])?_0x5e45c2:_0x450dc6[_0x1d5bf6(0x23a)])+'['+_0x389526+']\x20event\x20successful!'),this[_0x1d5bf6(0x237)]['pendingUploads']=Math[_0x1d5bf6(0x217)](0x0,_0x450dc6[_0x1d5bf6(0x231)](this[_0x1d5bf6(0x237)]['pendingUploads'],_0x450dc6[_0x1d5bf6(0x1c8)](_0x50cf54,_0x450dc6['cJUgA'])?0x1:_0x5ca61f[_0x1d5bf6(0x197)]));const _0x3dc0f9={};return _0x3dc0f9[_0x1d5bf6(0x1db)]=_0x450dc6[_0x1d5bf6(0x1ff)],_0x3dc0f9['message']='',_0x3dc0f9;}}catch(_0x4a9870){_0x4a9870['response']?_0x450dc6['IQjee'](debug,_0x1d5bf6(0x1ba)+(_0x450dc6[_0x1d5bf6(0x1c5)](_0x50cf54,this[_0x1d5bf6(0x237)][_0x1d5bf6(0x20a)])?_0x5e45c2:_0x450dc6[_0x1d5bf6(0x23a)])+_0x1d5bf6(0x235)+_0x4a9870[_0x1d5bf6(0x1fc)][_0x1d5bf6(0x1db)]+'\x20'+_0x4a9870[_0x1d5bf6(0x1fc)][_0x1d5bf6(0x207)]+'\x20'+util[_0x1d5bf6(0x1e5)](_0x4a9870[_0x1d5bf6(0x1fc)]['data'])):_0x450dc6[_0x1d5bf6(0x1c4)](debug,'EXCEPTION\x20IN\x20'+(_0x450dc6[_0x1d5bf6(0x223)](_0x50cf54,this[_0x1d5bf6(0x237)][_0x1d5bf6(0x20a)])?_0x5e45c2:_0x450dc6['pjnBQ'])+_0x1d5bf6(0x235)+util[_0x1d5bf6(0x1e5)](_0x4a9870));this['requestQueueHandler'][_0x1d5bf6(0x1f7)]=Math['max'](0x0,_0x450dc6[_0x1d5bf6(0x231)](this[_0x1d5bf6(0x237)][_0x1d5bf6(0x1f7)],_0x450dc6[_0x1d5bf6(0x1c8)](_0x50cf54,_0x450dc6[_0x1d5bf6(0x1af)])?0x1:_0x5ca61f['length']));const _0x368033={};return _0x368033['status']=_0x450dc6[_0x1d5bf6(0x1e4)],_0x368033[_0x1d5bf6(0x1f2)]=_0x4a9870[_0x1d5bf6(0x1f2)]||(_0x4a9870[_0x1d5bf6(0x1fc)]?_0x4a9870[_0x1d5bf6(0x1fc)]['status']+':'+_0x4a9870[_0x1d5bf6(0x1fc)][_0x1d5bf6(0x207)]:_0x4a9870),_0x368033;}}static async['uploadEventData'](_0xa409ec,_0x3171f6=0x0){const _0x390294=a87_0x4967eb,_0x26121f={'GsLhu':function(_0x1eff10,_0x19cbe0){return _0x1eff10+_0x19cbe0;},'ULyay':function(_0xc5f8f5,_0x48f947){return _0xc5f8f5(_0x48f947);},'AMRRt':_0x390294(0x23b),'RflUk':_0x390294(0x210),'tUdwD':_0x390294(0x1d8),'XDcST':function(_0x4da6ef,_0x5bff5e,_0x3f42ff){return _0x4da6ef(_0x5bff5e,_0x3f42ff);},'bxszM':_0x390294(0x21c),'mWFFY':function(_0x299c1d,_0x3b5c8a){return _0x299c1d===_0x3b5c8a;},'gwWgc':function(_0x5570b5,_0x470cbd){return _0x5570b5!==_0x470cbd;},'AczvY':_0x390294(0x1b6),'CnrQU':_0x390294(0x1c0),'aZLiY':function(_0x593b4e){return _0x593b4e();},'smwtw':function(_0x562021,_0x24011f){return _0x562021===_0x24011f;},'vdvaP':function(_0x389701,_0x494447){return _0x389701(_0x494447);},'GaxnV':function(_0x2004d2,_0x2c9418){return _0x2004d2-_0x2c9418;},'mIiTk':_0x390294(0x1e7),'ExJrx':_0x390294(0x220),'iFvTr':function(_0x51b387,_0x15a36d){return _0x51b387>=_0x15a36d;},'LXeKL':function(_0x22730f,_0x3918b7){return _0x22730f!==_0x3918b7;},'sVfMq':function(_0x2f0972,_0x3ae783){return _0x2f0972-_0x3ae783;},'dzJYA':_0x390294(0x218),'eaEma':_0x390294(0x22d),'KNqwV':function(_0x417a4e,_0x18fa69,_0x4bf58c){return _0x417a4e(_0x18fa69,_0x4bf58c);}},_0x54f786=this[_0x390294(0x202)](_0xa409ec);_0x26121f[_0x390294(0x234)](trace,_0x390294(0x1b2)+_0xa409ec['event_type']+'\x27\x20'+(bsSetupHelper[_0x390294(0x222)](_0xa409ec,[_0x26121f['AMRRt'],_0x26121f[_0x390294(0x1c2)]])||bsSetupHelper[_0x390294(0x222)](_0xa409ec,[_0x26121f[_0x390294(0x1b0)],_0x26121f['RflUk']])));if(!_0x26121f['XDcST'](shouldProcessEventForTesthub,_0xa409ec[_0x390294(0x1a9)],_0x26121f[_0x390294(0x1fb)]))return;_0x26121f['mWFFY'](_0x3171f6,0x0)&&process[_0x390294(0x1f9)][_0x390294(0x216)]&&_0x26121f[_0x390294(0x1ad)](process[_0x390294(0x1f9)][_0x390294(0x216)],_0x26121f[_0x390294(0x19b)])&&(this[_0x390294(0x237)]['pendingUploads']+=0x1);if(_0x26121f[_0x390294(0x1cb)](process[_0x390294(0x1f9)][_0x390294(0x1ec)],_0x26121f['CnrQU'])||process['env']['BS_A11Y_JWT']||_0x26121f[_0x390294(0x215)](isPercyBuild)){if(_0x26121f[_0x390294(0x1a2)](process[_0x390294(0x1f9)][_0x390294(0x216)],_0x26121f['AczvY'])){_0x26121f[_0x390294(0x1a6)](debug,_0x390294(0x1ba)+_0x54f786+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token'),this['requestQueueHandler']['pendingUploads']=Math['max'](0x0,_0x26121f[_0x390294(0x1e1)](this[_0x390294(0x237)][_0x390294(0x1f7)],0x1));const _0x723939={};return _0x723939[_0x390294(0x1db)]=_0x26121f[_0x390294(0x1ee)],_0x723939[_0x390294(0x1f2)]=_0x26121f[_0x390294(0x22e)],_0x723939;}return await this['sendEventData'](_0xa409ec,_0x3171f6);}else{if(_0x26121f['iFvTr'](_0x3171f6,0x5)){_0x26121f[_0x390294(0x234)](debug,_0x390294(0x1ba)+_0x54f786+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x54f786+_0x390294(0x203));_0x26121f['LXeKL'](process['env']['BROWSERSTACK_TESTHUB_JWT'],_0x26121f['AczvY'])&&(this[_0x390294(0x237)][_0x390294(0x1f7)]=Math[_0x390294(0x217)](0x0,_0x26121f[_0x390294(0x195)](this['requestQueueHandler']['pendingUploads'],0x1)));const _0x4d0b4d={};return _0x4d0b4d[_0x390294(0x1db)]=_0x26121f[_0x390294(0x1ee)],_0x4d0b4d['message']=_0x26121f[_0x390294(0x21a)],_0x4d0b4d;}else _0x26121f[_0x390294(0x1ad)](process[_0x390294(0x1f9)][_0x390294(0x1ec)],_0x26121f[_0x390294(0x1c1)])&&_0x26121f['KNqwV'](setTimeout,()=>{const _0x3aaa07=_0x390294;this[_0x3aaa07(0x21c)](_0xa409ec,_0x26121f[_0x3aaa07(0x1be)](_0x3171f6,0x1));},0x3e8);}}}module[a87_0x4967eb(0x229)]=SessionHandler;
|
|
1
|
+
const a87_0x4de5cc=a87_0x7ee2;(function(_0x318879,_0x2f3dff){const _0x1102ce=a87_0x7ee2,_0x523a79=_0x318879();while(!![]){try{const _0x36f600=parseInt(_0x1102ce(0x12c))/0x1*(parseInt(_0x1102ce(0x169))/0x2)+-parseInt(_0x1102ce(0x17a))/0x3+-parseInt(_0x1102ce(0x179))/0x4*(parseInt(_0x1102ce(0x129))/0x5)+parseInt(_0x1102ce(0x160))/0x6*(parseInt(_0x1102ce(0x132))/0x7)+parseInt(_0x1102ce(0x167))/0x8+parseInt(_0x1102ce(0x175))/0x9*(-parseInt(_0x1102ce(0x11f))/0xa)+-parseInt(_0x1102ce(0x126))/0xb;if(_0x36f600===_0x2f3dff)break;else _0x523a79['push'](_0x523a79['shift']());}catch(_0x535049){_0x523a79['push'](_0x523a79['shift']());}}}(a87_0x442c,0xe47be));function a87_0x7ee2(_0x25620d,_0x4fe027){const _0x442c83=a87_0x442c();return a87_0x7ee2=function(_0x7ee24d,_0x43b1c5){_0x7ee24d=_0x7ee24d-0x113;let _0x2cb538=_0x442c83[_0x7ee24d];return _0x2cb538;},a87_0x7ee2(_0x25620d,_0x4fe027);}const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a87_0x4de5cc(0x15b)),logger=require('../logger')['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a87_0x4de5cc(0x12a)),util=require('util');class SessionHandler{static [a87_0x4de5cc(0x178)]=RequestQueueHandler[a87_0x4de5cc(0x164)]();static async[a87_0x4de5cc(0x127)](_0x4f344b,_0x50ce91){const _0x345631=a87_0x4de5cc,_0x4d078d={'olvqj':function(_0x11814c,_0x7a62b4){return _0x11814c||_0x7a62b4;},'AUJmV':function(_0x26b3d3,_0x324607){return _0x26b3d3||_0x324607;},'jOyyg':function(_0x24b7f8,_0x4ed04e){return _0x24b7f8===_0x4ed04e;},'hZZnz':function(_0x1d1b16,_0x51ac45){return _0x1d1b16(_0x51ac45);},'LqCYU':_0x345631(0x115),'OMefY':_0x345631(0x15c),'TwCRX':'json','dquPl':function(_0x550a32,_0x5aac9f){return _0x550a32(_0x5aac9f);},'LvRkU':function(_0x4f6434,_0x5c2dc7,_0x1575e4,_0x116a09,_0x1a85f5){return _0x4f6434(_0x5c2dc7,_0x1575e4,_0x116a09,_0x1a85f5);},'HRIXm':'POST','cZxCn':_0x345631(0x1a1),'Mkgem':function(_0x4e8cfb,_0x879509){return _0x4e8cfb(_0x879509);},'RaUAP':_0x345631(0x14a),'OWNfO':function(_0x1c3ed2){return _0x1c3ed2();},'HZEiH':'true','kGzHH':_0x345631(0x1a5),'wkEqs':function(_0x19fd87,_0x444050){return _0x19fd87(_0x444050);},'hEzHi':_0x345631(0x19b),'bUroS':_0x345631(0x170),'ggkbE':_0x345631(0x16d)},_0xafce0d=bsSetupHelper[_0x345631(0x11b)](_0x4f344b),_0x33a716=bsSetupHelper[_0x345631(0x123)](_0x4f344b),_0xbc7fd8=_0x4d078d[_0x345631(0x153)](_0xafce0d,'')+':'+_0x4d078d[_0x345631(0x185)](_0x33a716,'');if(_0x4d078d[_0x345631(0x135)](_0xbc7fd8,':'))return _0x4d078d['hZZnz'](debug,_0x4d078d['LqCYU']),process[_0x345631(0x118)][_0x345631(0x19d)]=_0x4d078d['OMefY'],[null,null];let _0x610c58=![],_0x3a12fc=![];if(_0x4f344b[_0x345631(0x190)]&&_0x4f344b[_0x345631(0x13d)])_0x3a12fc=!![];else _0x4f344b['browserstackAutomation']&&(_0x610c58=!![]);try{const _0x17ece2={'format':_0x4d078d[_0x345631(0x157)],'project_name':_0x4f344b['projectName']||'','name':_0x4f344b[_0x345631(0x13b)]||path[_0x345631(0x173)](path[_0x345631(0x1af)](process[_0x345631(0x19e)]())),'build_identifier':_0x4f344b[_0x345631(0x162)],'description':_0x4f344b['buildDescription']||'','start_time':new Date()[_0x345631(0x1a7)](),'tags':_0x4d078d[_0x345631(0x1b0)](getCustomTags,_0x4f344b),'host_info':bsSetupHelper[_0x345631(0x15d)](),'ci_info':bsSetupHelper[_0x345631(0x142)](),'build_run_identifier':process[_0x345631(0x118)][_0x345631(0x19a)],'failed_tests_rerun':process['env'][_0x345631(0x1b3)]||![],'version_control':await bsSetupHelper[_0x345631(0x199)](),'observability_version':{'frameworkName':_0x50ce91[_0x345631(0x171)],'frameworkVersion':_0x50ce91[_0x345631(0x1a6)],'sdkVersion':bsSetupHelper[_0x345631(0x188)]()},'product_map':_0x4d078d[_0x345631(0x184)](getProductMap,_0x4f344b)},_0x5d9218={};_0x5d9218[_0x345631(0x1b8)]=_0xafce0d,_0x5d9218['password']=_0x33a716;const _0x5c65bd={'auth':_0x5d9218,'headers':_0x4d078d[_0x345631(0x1b0)](getDefaultHeaders,![])},_0x1f9c03=await _0x4d078d['LvRkU'](nodeRequest,_0x4d078d[_0x345631(0x11a)],_0x4d078d[_0x345631(0x18a)],_0x17ece2,_0x5c65bd);_0x4d078d[_0x345631(0x15e)](debug,_0x4d078d[_0x345631(0x19f)]);const _0x2f0125=_0x1f9c03['data'];_0x2f0125[_0x345631(0x18d)]&&(process[_0x345631(0x118)][_0x345631(0x150)]=_0x2f0125[_0x345631(0x18d)]);if(_0x4d078d[_0x345631(0x196)](isTestObservabilitySession)){process[_0x345631(0x118)][_0x345631(0x19d)]=_0x4d078d[_0x345631(0x165)];if(_0x2f0125['jwt']){process[_0x345631(0x118)][_0x345631(0x128)]=_0x2f0125[_0x345631(0x1b5)];const _0x4e0842={};_0x4e0842[_0x345631(0x1b8)]=_0xafce0d,_0x4e0842[_0x345631(0x12e)]=_0x33a716,process[_0x345631(0x118)][_0x345631(0x119)]=JSON[_0x345631(0x17f)](_0x4e0842);}_0x2f0125['build_hashed_id']&&(process['env']['BS_TESTOPS_BUILD_HASHED_ID']=_0x2f0125[_0x345631(0x18d)]),_0x2f0125['allow_screenshots']&&(process[_0x345631(0x118)][_0x345631(0x13a)]=_0x2f0125[_0x345631(0x122)][_0x345631(0x191)]());}return[_0x1f9c03['data'][_0x345631(0x1b5)],_0x1f9c03[_0x345631(0x130)][_0x345631(0x18d)],_0x1f9c03[_0x345631(0x130)][_0x345631(0x122)]];}catch(_0x251ebe){process[_0x345631(0x118)][_0x345631(0x150)]=_0x4d078d['kGzHH'],process[_0x345631(0x118)][_0x345631(0x19d)]=_0x4d078d[_0x345631(0x174)],process[_0x345631(0x118)]['BS_TESTOPS_JWT']=_0x4d078d[_0x345631(0x155)],process[_0x345631(0x118)][_0x345631(0x147)]=_0x4d078d['kGzHH'],process[_0x345631(0x118)][_0x345631(0x13a)]=_0x4d078d[_0x345631(0x155)];_0x251ebe[_0x345631(0x15a)]?_0x4d078d['hZZnz'](debug,_0x345631(0x172)+_0x251ebe[_0x345631(0x15a)]['status']+'\x20'+_0x251ebe['response'][_0x345631(0x1ab)]+'\x20'+JSON[_0x345631(0x17f)](_0x251ebe[_0x345631(0x15a)]['data'])):_0x4d078d['wkEqs'](debug,_0x345631(0x172)+(_0x251ebe['message']||_0x251ebe));if(_0x251ebe&&_0x251ebe[_0x345631(0x137)]){const _0x40d814=_0x251ebe['message'];switch(_0x251ebe[_0x345631(0x113)]){case _0x4d078d[_0x345631(0x156)]:logger['error'](_0x40d814);break;case _0x4d078d[_0x345631(0x12d)]:logger[_0x345631(0x148)](_0x40d814);break;case _0x4d078d[_0x345631(0x18c)]:logger[_0x345631(0x168)](_0x40d814);break;default:logger['error'](_0x40d814);}}else console[_0x345631(0x148)](_0x345631(0x1b2)+_0x251ebe);return[null,null,null];}}static async[a87_0x4de5cc(0x141)](){const _0x1d1b79=a87_0x4de5cc,_0x12b14c={'FXolc':_0x1d1b79(0x16a),'hSLxt':_0x1d1b79(0x15c),'XvTGF':function(_0x2929ea,_0x487c57){return _0x2929ea(_0x487c57);}},_0x18c4f2=process[_0x1d1b79(0x118)][_0x1d1b79(0x19d)];if([_0x12b14c[_0x1d1b79(0x145)],_0x12b14c[_0x1d1b79(0x152)]][_0x1d1b79(0x151)](_0x18c4f2))return;while([_0x12b14c[_0x1d1b79(0x145)],_0x12b14c[_0x1d1b79(0x152)]][_0x1d1b79(0x151)](_0x18c4f2)){await _0x12b14c[_0x1d1b79(0x18e)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x4de5cc(0x17d)](_0x43b509){const _0x404304=a87_0x4de5cc,_0x2168ac={};_0x2168ac['VqrwF']=_0x404304(0x1bb),_0x2168ac[_0x404304(0x11d)]=_0x404304(0x192),_0x2168ac['gjpGw']=_0x404304(0x11c),_0x2168ac[_0x404304(0x134)]=_0x404304(0x13f),_0x2168ac[_0x404304(0x1ad)]='Hook_Start_Upload',_0x2168ac['TnjDH']=_0x404304(0x16f),_0x2168ac[_0x404304(0x182)]='CBT_Upload';const _0x372b=_0x2168ac,_0x31aa2d={};return _0x31aa2d['TestRunStarted']=_0x372b[_0x404304(0x159)],_0x31aa2d[_0x404304(0x1a3)]=_0x372b[_0x404304(0x11d)],_0x31aa2d['TestRunSkipped']=_0x372b[_0x404304(0x183)],_0x31aa2d['LogCreated']=_0x372b['OebmC'],_0x31aa2d[_0x404304(0x161)]=_0x372b[_0x404304(0x1ad)],_0x31aa2d[_0x404304(0x180)]=_0x372b[_0x404304(0x177)],_0x31aa2d[_0x404304(0x197)]=_0x372b['TrcLQ'],_0x31aa2d[_0x43b509[_0x404304(0x149)]];}static async['sendEventData'](_0xc29852,_0x37090a=0x0,_0x469d9f=null){const _0x33b5d5=a87_0x4de5cc,_0x5253b9={'ZoFAq':function(_0x5c381a,_0x31e52d){return _0x5c381a===_0x31e52d;},'jSbFd':_0x33b5d5(0x13c),'EzLxL':function(_0x4b94d9,_0x5ee13c){return _0x4b94d9!==_0x5ee13c;},'zaZIj':_0x33b5d5(0x12b),'hIyiE':_0x33b5d5(0x16a),'AqpcN':function(_0x326c93,_0x3a795d,_0x411040,_0x438eb9,_0x10ff35){return _0x326c93(_0x3a795d,_0x411040,_0x438eb9,_0x10ff35);},'vAnMg':_0x33b5d5(0x195),'QnhDj':function(_0x5d6a92,_0x26f24a){return _0x5d6a92(_0x26f24a);},'fxPTb':function(_0x174b68,_0x2fb8bd){return _0x174b68!==_0x2fb8bd;},'JUKMi':_0x33b5d5(0x1aa),'xXSWR':function(_0x10189c,_0x48c3ec){return _0x10189c-_0x48c3ec;},'KAxdd':function(_0x6e73a4,_0x251adf){return _0x6e73a4===_0x251adf;},'oAlIY':_0x33b5d5(0x186),'JdZxR':_0x33b5d5(0x140),'KLkDF':function(_0x200966,_0x189fba){return _0x200966!==_0x189fba;},'xnnnc':function(_0x2caa0e,_0x28caae){return _0x2caa0e!==_0x28caae;},'jghfA':function(_0x11efde,_0x2dbe6b){return _0x11efde-_0x2dbe6b;},'HOpai':_0x33b5d5(0x168)};_0x5253b9[_0x33b5d5(0x146)](_0x469d9f,_0x5253b9[_0x33b5d5(0x187)])&&logger[_0x33b5d5(0x120)]('Sending\x20trace\x20zip\x20for\x20test:\x20'+_0xc29852[_0x33b5d5(0x17c)][0x0][_0x33b5d5(0x14f)]);const _0x593612=await this[_0x33b5d5(0x17d)](_0xc29852);let _0x27783e=_0xc29852,_0x18d215=EVENT_ENDPOINT;_0x5253b9[_0x33b5d5(0x17b)](_0x469d9f,_0x5253b9[_0x33b5d5(0x187)])&&this[_0x33b5d5(0x178)][_0x33b5d5(0x18f)]();const {shouldProceed:_0x50b404,proceedWithData:_0x338656,proceedWithUrl:_0x59b484}=this[_0x33b5d5(0x178)][_0x33b5d5(0x15f)](_0xc29852);if(!_0x50b404)return;else _0x338656&&(_0x27783e=_0x338656,_0x18d215=_0x59b484);const _0x1e50a0={};_0x1e50a0[_0x33b5d5(0x12f)]=_0x33b5d5(0x16e)+process[_0x33b5d5(0x118)][_0x33b5d5(0x198)],_0x1e50a0['Content-Type']=_0x5253b9[_0x33b5d5(0x14b)],_0x1e50a0['X-BSTACK-TESTOPS']=_0x5253b9['hIyiE'];const _0x404aa9={};_0x404aa9['headers']=_0x1e50a0;const _0x5971dc=_0x404aa9;let _0x1f4949;try{_0x5253b9[_0x33b5d5(0x146)](_0x469d9f,_0x5253b9['jSbFd'])?(logger[_0x33b5d5(0x120)]('Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20'+_0xc29852?.[_0x33b5d5(0x17c)][0x0]?.[_0x33b5d5(0x14f)]),_0x1f4949=await _0x5253b9[_0x33b5d5(0x14c)](asyncAwaitNodeReq,_0x5253b9['vAnMg'],_0x18d215,_0x27783e,_0x5971dc),logger[_0x33b5d5(0x120)](_0x33b5d5(0x1b4)+_0xc29852?.[_0x33b5d5(0x17c)][0x0]?.[_0x33b5d5(0x14f)])):_0x1f4949=await _0x5253b9['AqpcN'](nodeRequest,_0x5253b9[_0x33b5d5(0x1b1)],_0x18d215,_0x27783e,_0x5971dc);if(_0x1f4949[_0x33b5d5(0x130)][_0x33b5d5(0x168)]){const _0x2170e8={};_0x2170e8['message']=_0x1f4949['data'][_0x33b5d5(0x168)];throw _0x2170e8;}else{_0x5253b9['QnhDj'](debug,(_0x5253b9[_0x33b5d5(0x1ac)](_0x18d215,this['requestQueueHandler'][_0x33b5d5(0x176)])?_0x593612:_0x5253b9[_0x33b5d5(0x124)])+'['+_0x37090a+_0x33b5d5(0x121)),this[_0x33b5d5(0x178)][_0x33b5d5(0x163)]=Math[_0x33b5d5(0x1b9)](0x0,_0x5253b9[_0x33b5d5(0x1a2)](this[_0x33b5d5(0x178)]['pendingUploads'],_0x5253b9['KAxdd'](_0x18d215,_0x5253b9[_0x33b5d5(0x1a9)])?0x1:_0x27783e[_0x33b5d5(0x114)]));const _0x59cdf2={};return _0x59cdf2[_0x33b5d5(0x154)]=_0x5253b9[_0x33b5d5(0x136)],_0x59cdf2[_0x33b5d5(0x137)]='',_0x59cdf2;}}catch(_0x16312e){_0x16312e[_0x33b5d5(0x15a)]?_0x5253b9['QnhDj'](debug,_0x33b5d5(0x17e)+(_0x5253b9['KLkDF'](_0x18d215,this[_0x33b5d5(0x178)]['eventUrl'])?_0x593612:_0x5253b9[_0x33b5d5(0x124)])+_0x33b5d5(0x158)+_0x16312e[_0x33b5d5(0x15a)][_0x33b5d5(0x154)]+'\x20'+_0x16312e[_0x33b5d5(0x15a)][_0x33b5d5(0x1ab)]+'\x20'+util[_0x33b5d5(0x1ba)](_0x16312e[_0x33b5d5(0x15a)][_0x33b5d5(0x130)])):_0x5253b9[_0x33b5d5(0x116)](debug,_0x33b5d5(0x17e)+(_0x5253b9['xnnnc'](_0x18d215,this[_0x33b5d5(0x178)]['eventUrl'])?_0x593612:_0x5253b9['JUKMi'])+_0x33b5d5(0x158)+util['format'](_0x16312e));this[_0x33b5d5(0x178)][_0x33b5d5(0x163)]=Math['max'](0x0,_0x5253b9[_0x33b5d5(0x19c)](this[_0x33b5d5(0x178)]['pendingUploads'],_0x5253b9[_0x33b5d5(0x146)](_0x18d215,_0x5253b9[_0x33b5d5(0x1a9)])?0x1:_0x27783e['length']));const _0x56fd9b={};return _0x56fd9b['status']=_0x5253b9[_0x33b5d5(0x1ae)],_0x56fd9b[_0x33b5d5(0x137)]=_0x16312e[_0x33b5d5(0x137)]||(_0x16312e[_0x33b5d5(0x15a)]?_0x16312e['response'][_0x33b5d5(0x154)]+':'+_0x16312e[_0x33b5d5(0x15a)]['statusText']:_0x16312e),_0x56fd9b;}}static async['uploadEventData'](_0x49bcd5,_0x472355=0x0){const _0x1d053f=a87_0x4de5cc,_0x3e7d1c={'whiey':function(_0x380488,_0x4b3ba1){return _0x380488+_0x4b3ba1;},'lkpkX':function(_0x4b4f2d,_0x262599){return _0x4b4f2d(_0x262599);},'HOxxl':'test_run','nsaMs':_0x1d053f(0x18b),'cjcUK':'hook_run','XkLhY':function(_0x4b9cec,_0x3cbb98,_0x3ea51c){return _0x4b9cec(_0x3cbb98,_0x3ea51c);},'orKGT':_0x1d053f(0x125),'YZWro':function(_0x59dff5,_0x53ddf4){return _0x59dff5===_0x53ddf4;},'TqkvX':function(_0x52ae9e,_0x229161){return _0x52ae9e!==_0x229161;},'zYIEX':_0x1d053f(0x1a5),'RuoIt':_0x1d053f(0x16a),'eaNUy':function(_0x1dd569){return _0x1dd569();},'XjaNr':function(_0xc55d1,_0x379e61){return _0xc55d1(_0x379e61);},'WMgPJ':function(_0xae8fa1,_0x174bd2){return _0xae8fa1-_0x174bd2;},'nGFUJ':'error','aXnzk':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','dnaKd':function(_0x19b2b2,_0x455e39){return _0x19b2b2>=_0x455e39;},'qIpfC':function(_0x49ebc5,_0x301ee1){return _0x49ebc5-_0x301ee1;},'gVyix':_0x1d053f(0x14d),'Jtuxa':_0x1d053f(0x15c),'JfYYy':function(_0xe5ad50,_0x4d0528,_0x1efc16){return _0xe5ad50(_0x4d0528,_0x1efc16);}},_0x4e5bd5=this[_0x1d053f(0x17d)](_0x49bcd5);_0x3e7d1c[_0x1d053f(0x131)](trace,_0x1d053f(0x166)+_0x49bcd5['event_type']+'\x27\x20'+(bsSetupHelper[_0x1d053f(0x143)](_0x49bcd5,[_0x3e7d1c[_0x1d053f(0x1b7)],_0x3e7d1c['nsaMs']])||bsSetupHelper[_0x1d053f(0x143)](_0x49bcd5,[_0x3e7d1c[_0x1d053f(0x133)],_0x3e7d1c['nsaMs']])));if(!_0x3e7d1c[_0x1d053f(0x13e)](shouldProcessEventForTesthub,_0x49bcd5[_0x1d053f(0x149)],_0x3e7d1c['orKGT']))return;_0x3e7d1c[_0x1d053f(0x117)](_0x472355,0x0)&&process[_0x1d053f(0x118)]['BROWSERSTACK_TESTHUB_JWT']&&_0x3e7d1c['TqkvX'](process['env'][_0x1d053f(0x198)],_0x3e7d1c['zYIEX'])&&(this['requestQueueHandler']['pendingUploads']+=0x1);if(_0x3e7d1c[_0x1d053f(0x117)](process['env'][_0x1d053f(0x19d)],_0x3e7d1c[_0x1d053f(0x193)])||process[_0x1d053f(0x118)][_0x1d053f(0x11e)]||_0x3e7d1c['eaNUy'](isPercyBuild)){if(_0x3e7d1c['YZWro'](process[_0x1d053f(0x118)][_0x1d053f(0x198)],_0x3e7d1c[_0x1d053f(0x138)])){_0x3e7d1c['XjaNr'](debug,'EXCEPTION\x20IN\x20'+_0x4e5bd5+_0x1d053f(0x16b)),this[_0x1d053f(0x178)][_0x1d053f(0x163)]=Math['max'](0x0,_0x3e7d1c['WMgPJ'](this[_0x1d053f(0x178)][_0x1d053f(0x163)],0x1));const _0x445e2b={};return _0x445e2b['status']=_0x3e7d1c[_0x1d053f(0x1b6)],_0x445e2b[_0x1d053f(0x137)]=_0x3e7d1c[_0x1d053f(0x194)],_0x445e2b;}return await this[_0x1d053f(0x1a0)](_0x49bcd5,_0x472355);}else{if(_0x3e7d1c[_0x1d053f(0x181)](_0x472355,0x5)){_0x3e7d1c[_0x1d053f(0x131)](debug,_0x1d053f(0x17e)+_0x4e5bd5+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20'+_0x4e5bd5+_0x1d053f(0x189));_0x3e7d1c[_0x1d053f(0x144)](process['env'][_0x1d053f(0x198)],_0x3e7d1c[_0x1d053f(0x138)])&&(this[_0x1d053f(0x178)][_0x1d053f(0x163)]=Math[_0x1d053f(0x1b9)](0x0,_0x3e7d1c[_0x1d053f(0x16c)](this[_0x1d053f(0x178)][_0x1d053f(0x163)],0x1)));const _0x380282={};return _0x380282['status']=_0x3e7d1c[_0x1d053f(0x1b6)],_0x380282['message']=_0x3e7d1c[_0x1d053f(0x1a8)],_0x380282;}else _0x3e7d1c['TqkvX'](process[_0x1d053f(0x118)][_0x1d053f(0x19d)],_0x3e7d1c['Jtuxa'])&&_0x3e7d1c[_0x1d053f(0x1a4)](setTimeout,()=>{const _0x1a4124=_0x1d053f;this[_0x1a4124(0x125)](_0x49bcd5,_0x3e7d1c[_0x1a4124(0x14e)](_0x472355,0x1));},0x3e8);}}}function a87_0x442c(){const _0x2dc2df=['username','max','format','Test_Start_Upload','errorType','length','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','QnhDj','YZWro','env','CREDENTIALS_FOR_CRASH_REPORTING','HRIXm','getUserName','Test_Skipped_Upload','LnFca','BS_A11Y_JWT','2422750SbyDdd','debug',']\x20event\x20successful!','allow_screenshots','getAccessKey','JUKMi','uploadEventData','977526TpJOGB','launch','BS_TESTOPS_JWT','1213590NGfTkK','../../helpers/testhub/utils','application/json','195554zRCojQ','bUroS','password','Authorization','data','lkpkX','9692473EhAdjw','cjcUK','OebmC','jOyyg','JdZxR','message','zYIEX','exports','BS_TESTOPS_ALLOW_SCREENSHOTS','buildName','sendTraceZip','app','XkLhY','Log_Upload','success','waitForBuildStatus','getCiInfo','nestedKeyValue','TqkvX','FXolc','ZoFAq','BS_TESTOPS_BUILD_HASHED_ID','info','event_type','Build\x20creation\x20successful!','zaZIj','AqpcN','Retry\x20runs\x20exceeded','whiey','test_run_uuid','BROWSERSTACK_TESTHUB_UUID','includes','hSLxt','olvqj','status','kGzHH','hEzHi','TwCRX','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','VqrwF','response','./requestQueueHandler','false','getHostInfo','Mkgem','add','6zUkDto','HookRunStarted','buildIdentifier','pendingUploads','getInstance','HZEiH','Processing\x20event\x20-\x20\x27','10725064NRelUS','error','4hBMsUK','true','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','qIpfC','ERROR_SDK_DEPRECATED','Bearer\x20','Hook_End_Upload','ERROR_ACCESS_DENIED','frameworkName','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','basename','OMefY','18wABpAT','eventUrl','TnjDH','requestQueueHandler','8euWeTZ','3364974qZgnip','EzLxL','logs','getLogTag','EXCEPTION\x20IN\x20','stringify','HookRunFinished','dnaKd','TrcLQ','gjpGw','dquPl','AUJmV','api/v1/event','jSbFd','getAgentVersion','\x20retry\x20runs\x20exceeded','cZxCn','uuid','ggkbE','build_hashed_id','XvTGF','start','browserstackAutomation','toString','Test_End_Upload','RuoIt','aXnzk','POST','OWNfO','CBTSessionCreated','BROWSERSTACK_TESTHUB_JWT','getGitMetaData','BROWSERSTACK_BUILD_RUN_IDENTIFIER','ERROR_INVALID_CREDENTIALS','jghfA','BS_TESTOPS_BUILD_COMPLETED','cwd','RaUAP','sendEventData','api/v1/builds','xXSWR','TestRunFinished','JfYYy','null','frameworkVersion','toISOString','gVyix','oAlIY','Batch-Queue','statusText','fxPTb','qwbkc','HOpai','resolve','hZZnz','vAnMg','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','BROWSERSTACK_RERUN','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','jwt','nGFUJ','HOxxl'];a87_0x442c=function(){return _0x2dc2df;};return a87_0x442c();}module[a87_0x4de5cc(0x139)]=SessionHandler;
|