@sparrowai/sparrow-mcp 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/scripts/mcp-test/mcp-client.js +1 -1
  3. package/dist/scripts/test-runner/check-failed-tests.js +1 -1
  4. package/dist/scripts/test-runner/compare-responses.js +1 -1
  5. package/dist/scripts/test-runner/standalone-test-fixed-header.js +1 -1
  6. package/dist/scripts/test-runner/standalone-test.js +1 -1
  7. package/dist/src/config/appConfig.js +1 -1
  8. package/dist/src/config/constants.js +1 -1
  9. package/dist/src/controllers/__tests__/analysis.controller.test.js +1 -1
  10. package/dist/src/controllers/__tests__/sast.controller.test.js +1 -1
  11. package/dist/src/controllers/__tests__/sca.controller.test.js +1 -1
  12. package/dist/src/controllers/__tests__/security.controller.test.js +1 -1
  13. package/dist/src/controllers/__tests__/system.controller.test.js +1 -1
  14. package/dist/src/controllers/analysis.controller.js +1 -1
  15. package/dist/src/controllers/sast.controller.js +1 -1
  16. package/dist/src/controllers/sca.controller.js +1 -1
  17. package/dist/src/controllers/security.controller.js +1 -1
  18. package/dist/src/controllers/system.controller.js +1 -1
  19. package/dist/src/schemas/tool.schemas.js +1 -1
  20. package/dist/src/server.js +1 -1
  21. package/dist/src/services/__tests__/checker.service.test.js +1 -1
  22. package/dist/src/services/__tests__/llm.service.test.js +1 -1
  23. package/dist/src/services/__tests__/s3.service.test.js +1 -1
  24. package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
  25. package/dist/src/services/analysis.service.js +1 -1
  26. package/dist/src/services/checker.service.js +1 -1
  27. package/dist/src/services/llm/AnthropicProvider.js +1 -1
  28. package/dist/src/services/llm/BedrockProvider.js +1 -1
  29. package/dist/src/services/llm/GeminiProvider.js +1 -1
  30. package/dist/src/services/llm/LLMFactory.js +1 -1
  31. package/dist/src/services/llm/LLMProvider.js +1 -1
  32. package/dist/src/services/llm/OllamaProvider.js +1 -1
  33. package/dist/src/services/llm/OpenAIProvider.js +1 -1
  34. package/dist/src/services/llm.service.js +1 -1
  35. package/dist/src/services/s3.service.js +1 -1
  36. package/dist/src/services/sparrow.service.js +1 -1
  37. package/dist/src/types/types.js +1 -1
  38. package/dist/src/utils/__tests__/crypto.util.test.js +1 -1
  39. package/dist/src/utils/__tests__/diff.util.test.js +1 -1
  40. package/dist/src/utils/__tests__/fileManager.test.js +1 -1
  41. package/dist/src/utils/__tests__/fileManagerSecure.test.js +1 -1
  42. package/dist/src/utils/__tests__/logger.test.js +1 -1
  43. package/dist/src/utils/crypto.util.js +1 -1
  44. package/dist/src/utils/diff.util.js +1 -1
  45. package/dist/src/utils/fileManager.js +1 -1
  46. package/dist/src/utils/fileManagerSecure.js +1 -1
  47. package/dist/src/utils/logger.js +1 -1
  48. package/package.json +2 -1
@@ -1 +1 @@
1
- const a12_0x3cbfe6=a12_0x58aa;(function(_0x3ab560,_0x3e1488){const _0x5bfd18=a12_0x58aa,_0x175a3a=_0x3ab560();while(!![]){try{const _0x5213d3=parseInt(_0x5bfd18(0x1d7))/0x1+parseInt(_0x5bfd18(0x168))/0x2*(parseInt(_0x5bfd18(0x1ae))/0x3)+parseInt(_0x5bfd18(0x152))/0x4+-parseInt(_0x5bfd18(0x188))/0x5+parseInt(_0x5bfd18(0x173))/0x6*(parseInt(_0x5bfd18(0x1dd))/0x7)+parseInt(_0x5bfd18(0x1cd))/0x8+-parseInt(_0x5bfd18(0x195))/0x9*(parseInt(_0x5bfd18(0x1ba))/0xa);if(_0x5213d3===_0x3e1488)break;else _0x175a3a['push'](_0x175a3a['shift']());}catch(_0x3d1ea4){_0x175a3a['push'](_0x175a3a['shift']());}}}(a12_0x46a9,0x27bb2));const a12_0x36577f=(function(){let _0x549ea5=!![];return function(_0x286fd6,_0x2369db){const _0x3c7b60=_0x549ea5?function(){const _0x547857=a12_0x58aa;if(_0x2369db){const _0x284d56=_0x2369db[_0x547857(0x1b7)](_0x286fd6,arguments);return _0x2369db=null,_0x284d56;}}:function(){};return _0x549ea5=![],_0x3c7b60;};}()),a12_0x3fa17b=a12_0x36577f(this,function(){const _0x393955=a12_0x58aa;return a12_0x3fa17b[_0x393955(0x142)]()['search'](_0x393955(0x1a8)+'+$')[_0x393955(0x142)]()[_0x393955(0x15f)+'r'](a12_0x3fa17b)[_0x393955(0x161)](_0x393955(0x1a8)+'+$');});function a12_0x46a9(){const _0x30ca28=['CalledWith','MIT','3bcMFAo','Status:\x20FA','s.controll','fied','Injection','order','fied\x20resul','erity\x20issu','overage','apply','bilities','fXMxa','344210qxiVLZ','COMPLETE','error','ck\x20failed','licenses','ANALYSIS','content','descriptio','ot\x20found','SCA\x20Briefi','nts\x20identi','ound','entation','status','nd\x20error','234','CVE-2023-1','Complete','dle\x20compon','2054048yWTxoe','ntroller','Tpdfv','SQL_INJECT','Analyzing','dle\x20errors','should\x20ret','FAIL','cvssScore','oken\x20not\x20p','263775OPXbEr','DyhnO','urn\x20analys','name','getAnalysi','Found\x20SQL\x20','21GcVipB','SQL\x20Inject','ices/analy','toString','test-id','ysisResult','sisProgres','sca-id','components','sis.servic','progress','criticalCo','sing','dle\x20analys','MpgvT','\x20table','mockResolv','sToken\x20mis','toContain','771680qchnmm','../../conf','getScaAnal','structured','ailed\x20due\x20','analysisBr','if\x20progres','aAQAr','e.js','l\x20error','urn\x20format','mockImplem','sults\x20with','constructo','_meta','search','cks','AeZdj','1.0.1','ief','.java','fixedVersi','323482lkpPRA','n\x20progress','sResults\x20c','unstable_m','analysisId','unt','dle\x20empty\x20','highCount','severity','Analysis\x20n','trackAnaly','36978tAIHVB','result','version','Progress\x20T','INIT','text','fail-id','No\x20compone','../analysi','ng\x20analysi','is\x20not\x20fou','should\x20han','ig/constan','XWTYc','issues','toBe','omplete','ZaVrj','bilities\x20f','AnalysisCo','clearAllMo','728930oQCAgn','ities','xlJdx','Initializi','../../serv','lowCount','\x20list','1.0.0','vulnerabil','pending-id','toHaveBeen','czIkf','toHaveLeng','153sXnmsj','ot\x20complet','test-lib','rabilities','edValue','/src/Login','Status\x20che','cveId','Analysis\x20f','totalVulne','ted\x20SCA\x20re','SUCCESS','sStatus','iRJjf','Analysis\x20c','safe-lib','mockReject','../../util','to\x20interna','(((.+)+)+)','ockModule','Content','HIGH'];a12_0x46a9=function(){return _0x30ca28;};return a12_0x46a9();}a12_0x3fa17b();import{jest,describe,it,expect,beforeEach}from'@jest/globals';function a12_0x58aa(_0x2dad13,_0x2b227e){_0x2dad13=_0x2dad13-0x140;const _0x2829bc=a12_0x46a9();let _0x3fa17b=_0x2829bc[_0x2dad13];return _0x3fa17b;}const mockGetAnalysisStatus=jest['fn'](),mockGetAnalysisResults=jest['fn'](),mockGetScaAnalysisResults=jest['fn']();jest[a12_0x3cbfe6(0x16b)+a12_0x3cbfe6(0x1a9)](a12_0x3cbfe6(0x18c)+a12_0x3cbfe6(0x141)+a12_0x3cbfe6(0x148)+a12_0x3cbfe6(0x15a),()=>({'AnalysisService':jest['fn']()[a12_0x3cbfe6(0x15d)+a12_0x3cbfe6(0x1c6)](()=>({'getAnalysisStatus':mockGetAnalysisStatus,'getAnalysisResults':mockGetAnalysisResults,'getScaAnalysisResults':mockGetScaAnalysisResults}))})),jest[a12_0x3cbfe6(0x16b)+'ockModule'](a12_0x3cbfe6(0x1a6)+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const a12_0x56eb34={};a12_0x56eb34['id']=a12_0x3cbfe6(0x177),a12_0x56eb34[a12_0x3cbfe6(0x1da)]=a12_0x3cbfe6(0x18b)+'ng',a12_0x56eb34[a12_0x3cbfe6(0x1c1)+'n']='Initializi'+a12_0x3cbfe6(0x17c)+'s',a12_0x56eb34[a12_0x3cbfe6(0x1b3)]=0x1,a12_0x56eb34[a12_0x3cbfe6(0x149)]=0x0;const a12_0x5f4adf={};a12_0x5f4adf['id']=a12_0x3cbfe6(0x1bf),a12_0x5f4adf[a12_0x3cbfe6(0x1da)]=a12_0x3cbfe6(0x1d1),a12_0x5f4adf['descriptio'+'n']='Analysis\x20i'+a12_0x3cbfe6(0x169),a12_0x5f4adf['order']=0x2,a12_0x5f4adf[a12_0x3cbfe6(0x149)]=null;const a12_0x8406bc={};a12_0x8406bc['id']=a12_0x3cbfe6(0x1bb),a12_0x8406bc[a12_0x3cbfe6(0x1da)]=a12_0x3cbfe6(0x1cb),a12_0x8406bc[a12_0x3cbfe6(0x1c1)+'n']=a12_0x3cbfe6(0x1a3)+a12_0x3cbfe6(0x183),a12_0x8406bc[a12_0x3cbfe6(0x1b3)]=0x3,a12_0x8406bc[a12_0x3cbfe6(0x149)]=0x64;const a12_0x23ba33={};a12_0x23ba33[a12_0x3cbfe6(0x177)]=a12_0x56eb34,a12_0x23ba33[a12_0x3cbfe6(0x1bf)]=a12_0x5f4adf,a12_0x23ba33[a12_0x3cbfe6(0x1bb)]=a12_0x8406bc,jest[a12_0x3cbfe6(0x16b)+a12_0x3cbfe6(0x1a9)](a12_0x3cbfe6(0x153)+a12_0x3cbfe6(0x17f)+'ts.js',()=>({'ANALYSIS_STAGES':a12_0x23ba33}));const {AnalysisController}=await import(a12_0x3cbfe6(0x17b)+a12_0x3cbfe6(0x1b0)+'er.js'),{AnalysisService}=await import(a12_0x3cbfe6(0x18c)+'ices/analy'+a12_0x3cbfe6(0x148)+a12_0x3cbfe6(0x15a));describe(a12_0x3cbfe6(0x186)+a12_0x3cbfe6(0x1ce),()=>{const _0x25347a=a12_0x3cbfe6,_0x9d30ad={'MpgvT':'SQL_INJECT'+'ION','fXMxa':_0x25347a(0x1ad),'DyhnO':function(_0x34d621,_0x285c2b){return _0x34d621(_0x285c2b);},'XWTYc':'missing-id','xlJdx':'trackAnaly'+_0x25347a(0x145)+'s'};let _0x3de0c6,_0x544dee;beforeEach(()=>{const _0x1d81c7=_0x25347a;jest[_0x1d81c7(0x187)+_0x1d81c7(0x162)](),_0x544dee=new AnalysisService(),_0x3de0c6=new AnalysisController(_0x544dee);}),describe(_0x25347a(0x1db)+_0x25347a(0x1a1),()=>{const _0x317f9b=_0x25347a;it(_0x317f9b(0x1d3)+_0x317f9b(0x1d9)+'is\x20status',async()=>{const _0x1ef02c=_0x317f9b,_0x3f84ae={};_0x3f84ae[_0x1ef02c(0x1c7)]='ANALYSIS',_0x3f84ae[_0x1ef02c(0x149)]=0x32;const _0x1ec12d=_0x3f84ae;mockGetAnalysisStatus[_0x1ef02c(0x14f)+_0x1ef02c(0x199)](_0x1ec12d);const _0x4fe848={};_0x4fe848[_0x1ef02c(0x16c)]=_0x1ef02c(0x143);const _0x5ddd99=await _0x3de0c6[_0x1ef02c(0x1db)+'sStatus'](_0x4fe848);expect(mockGetAnalysisStatus)[_0x1ef02c(0x192)+_0x1ef02c(0x1ac)](_0x1ef02c(0x143)),expect(_0x5ddd99[_0x1ef02c(0x155)+_0x1ef02c(0x1aa)][_0x1ef02c(0x1c7)])[_0x1ef02c(0x182)](_0x1ef02c(0x1bf)),expect(_0x5ddd99[_0x1ef02c(0x155)+_0x1ef02c(0x1aa)][_0x1ef02c(0x149)])[_0x1ef02c(0x182)](0x32);}),it(_0x317f9b(0x17e)+_0x317f9b(0x1d2),async()=>{const _0x20eaa2=_0x317f9b;mockGetAnalysisStatus[_0x20eaa2(0x1a5)+_0x20eaa2(0x199)](new Error(_0x20eaa2(0x19b)+_0x20eaa2(0x1bd)));const _0x4b7c18={};_0x4b7c18[_0x20eaa2(0x16c)]=_0x20eaa2(0x143);const _0x3a7c9a=await _0x3de0c6['getAnalysi'+_0x20eaa2(0x1a1)](_0x4b7c18);expect(_0x3a7c9a[_0x20eaa2(0x155)+_0x20eaa2(0x1aa)][_0x20eaa2(0x1bc)])[_0x20eaa2(0x182)](_0x20eaa2(0x19b)+'ck\x20failed');});}),describe(_0x25347a(0x1db)+'sResults',()=>{const _0x51455a=_0x25347a,_0x44d87d={};_0x44d87d['AeZdj']='test-id',_0x44d87d['Tpdfv']=_0x9d30ad[_0x51455a(0x14d)],_0x44d87d[_0x51455a(0x1a2)]=_0x51455a(0x1dc)+_0x51455a(0x1b2);const _0x5919cd=_0x44d87d;it(_0x51455a(0x1d3)+'urn\x20simpli'+_0x51455a(0x1b4)+'ts',async()=>{const _0x46eb99=_0x51455a,_0x3ab6a1={};_0x3ab6a1['analysisId']=_0x5919cd[_0x46eb99(0x163)],_0x3ab6a1[_0x46eb99(0x1c7)]=_0x46eb99(0x1bb),_0x3ab6a1[_0x46eb99(0x174)]=_0x46eb99(0x1a0),_0x3ab6a1[_0x46eb99(0x190)+_0x46eb99(0x189)]=[{'severity':_0x46eb99(0x1ab),'checkerKey':_0x5919cd[_0x46eb99(0x1cf)],'description':_0x46eb99(0x140)+'ion\x20found','filePath':_0x46eb99(0x19a)+_0x46eb99(0x166),'lineNumber':0xa}],_0x3ab6a1[_0x46eb99(0x157)+_0x46eb99(0x165)]=_0x5919cd['iRJjf'];const _0x146553=_0x3ab6a1;mockGetAnalysisResults[_0x46eb99(0x14f)+_0x46eb99(0x199)](_0x146553);const _0x23b1f4={};_0x23b1f4[_0x46eb99(0x16c)]=_0x46eb99(0x143);const _0x5635c3=await _0x3de0c6[_0x46eb99(0x1db)+'sResults'](_0x23b1f4);expect(mockGetAnalysisResults)['toHaveBeen'+_0x46eb99(0x1ac)]('test-id'),expect(_0x5635c3[_0x46eb99(0x155)+_0x46eb99(0x1aa)][_0x46eb99(0x190)+_0x46eb99(0x189)])[_0x46eb99(0x194)+'th'](0x1),expect(_0x5635c3[_0x46eb99(0x1c0)][0x0][_0x46eb99(0x178)])[_0x46eb99(0x151)](_0x46eb99(0x1d0)+'ION');});}),describe('getScaAnal'+'ysisResult'+'s',()=>{const _0x52e219=_0x25347a,_0xfe4c8b={};_0xfe4c8b[_0x52e219(0x193)]=_0x52e219(0x17a)+'nts\x20found',_0xfe4c8b[_0x52e219(0x159)]='sca-id';const _0x19904a=_0xfe4c8b;it(_0x52e219(0x1d3)+_0x52e219(0x15c)+_0x52e219(0x19f)+_0x52e219(0x15e)+'\x20component'+_0x52e219(0x14e),async()=>{const _0x27aca9=_0x52e219,_0x4a5624={};_0x4a5624[_0x27aca9(0x1da)]=_0x9d30ad[_0x27aca9(0x1b9)];const _0x8d3cf2={};_0x8d3cf2[_0x27aca9(0x170)]=_0x27aca9(0x1ab),_0x8d3cf2[_0x27aca9(0x19c)]=_0x27aca9(0x1ca)+'234',_0x8d3cf2[_0x27aca9(0x1d5)]=7.5,_0x8d3cf2[_0x27aca9(0x167)+'on']=_0x27aca9(0x164);const _0x3fec1d={};_0x3fec1d[_0x27aca9(0x1da)]=_0x27aca9(0x197),_0x3fec1d[_0x27aca9(0x175)]=_0x27aca9(0x18f),_0x3fec1d[_0x27aca9(0x1be)]=[_0x4a5624],_0x3fec1d['issues']=[_0x8d3cf2];const _0x213378={};_0x213378[_0x27aca9(0x16c)]=_0x27aca9(0x146),_0x213378[_0x27aca9(0x1c7)]=_0x27aca9(0x1bb),_0x213378[_0x27aca9(0x174)]='SUCCESS',_0x213378[_0x27aca9(0x147)]=[_0x3fec1d],_0x213378['totalVulne'+_0x27aca9(0x198)]=0x1,_0x213378[_0x27aca9(0x14a)+'unt']=0x0,_0x213378[_0x27aca9(0x16f)]=0x1,_0x213378['mediumCoun'+'t']=0x0,_0x213378[_0x27aca9(0x18d)]=0x0,_0x213378[_0x27aca9(0x157)+'ief']=_0x27aca9(0x1c3)+'ng';const _0x240551=_0x213378;mockGetScaAnalysisResults['mockResolv'+'edValue'](_0x240551);const _0x3301f7={};_0x3301f7[_0x27aca9(0x16c)]=_0x27aca9(0x146);const _0x335833=await _0x3de0c6[_0x27aca9(0x154)+_0x27aca9(0x144)+'s'](_0x3301f7);expect(mockGetScaAnalysisResults)[_0x27aca9(0x192)+_0x27aca9(0x1ac)](_0x27aca9(0x146)),expect(_0x335833[_0x27aca9(0x155)+'Content']['components'])['toHaveLeng'+'th'](0x1),_0x9d30ad[_0x27aca9(0x1d8)](expect,_0x335833[_0x27aca9(0x1c0)][0x0]['text'])[_0x27aca9(0x151)](_0x27aca9(0x197)),expect(_0x335833[_0x27aca9(0x1c0)][0x0][_0x27aca9(0x178)])[_0x27aca9(0x151)](_0x27aca9(0x1ca)+_0x27aca9(0x1c9));}),it('should\x20han'+_0x52e219(0x14c)+_0x52e219(0x17d)+_0x52e219(0x1c8),async()=>{const _0x353578=_0x52e219;mockGetScaAnalysisResults[_0x353578(0x1a5)+_0x353578(0x199)](new Error(_0x353578(0x171)+_0x353578(0x1c2)));const _0x51b190={};_0x51b190[_0x353578(0x16c)]=_0x9d30ad[_0x353578(0x180)];const _0x17213d=await _0x3de0c6[_0x353578(0x154)+'ysisResult'+'s'](_0x51b190);expect(_0x17213d[_0x353578(0x155)+_0x353578(0x1aa)][_0x353578(0x1bc)])['toContain']('Analysis\x20n'+_0x353578(0x1c2));}),it(_0x52e219(0x17e)+'dle\x20analys'+'is\x20not\x20com'+'pleted\x20err'+'or',async()=>{const _0x577da6=_0x52e219;mockGetScaAnalysisResults[_0x577da6(0x1a5)+_0x577da6(0x199)](new Error(_0x577da6(0x171)+'ot\x20complet'+'ed'));const _0x57c175={};_0x57c175[_0x577da6(0x16c)]=_0x577da6(0x191);const _0x499e82=await _0x3de0c6[_0x577da6(0x154)+'ysisResult'+'s'](_0x57c175);expect(_0x499e82[_0x577da6(0x155)+'Content'][_0x577da6(0x1bc)])['toContain'](_0x577da6(0x171)+_0x577da6(0x196)+'ed');}),it(_0x52e219(0x17e)+_0x52e219(0x16e)+_0x52e219(0x147)+_0x52e219(0x18e),async()=>{const _0x677b1e=_0x52e219,_0x4a93fa={};_0x4a93fa['analysisId']=_0x677b1e(0x146),_0x4a93fa[_0x677b1e(0x1c7)]=_0x677b1e(0x1bb),_0x4a93fa[_0x677b1e(0x174)]=_0x677b1e(0x1a0),_0x4a93fa[_0x677b1e(0x147)]=[],_0x4a93fa[_0x677b1e(0x19e)+_0x677b1e(0x198)]=0x0,_0x4a93fa[_0x677b1e(0x14a)+'unt']=0x0,_0x4a93fa[_0x677b1e(0x16f)]=0x0,_0x4a93fa['mediumCoun'+'t']=0x0,_0x4a93fa[_0x677b1e(0x18d)]=0x0,_0x4a93fa[_0x677b1e(0x157)+_0x677b1e(0x165)]=_0x19904a['czIkf'];const _0x21ba40=_0x4a93fa;mockGetScaAnalysisResults[_0x677b1e(0x14f)+'edValue'](_0x21ba40);const _0x2f06fb={};_0x2f06fb['analysisId']=_0x19904a['aAQAr'];const _0x4114bf=await _0x3de0c6['getScaAnal'+_0x677b1e(0x144)+'s'](_0x2f06fb);expect(_0x4114bf['structured'+_0x677b1e(0x1aa)]['components'])['toHaveLeng'+'th'](0x0),expect(_0x4114bf[_0x677b1e(0x1c0)][0x0][_0x677b1e(0x178)])[_0x677b1e(0x151)](_0x677b1e(0x17a)+_0x677b1e(0x1c4)+_0x677b1e(0x1b1));}),it(_0x52e219(0x17e)+_0x52e219(0x1cc)+'ents\x20with\x20'+'no\x20vulnera'+_0x52e219(0x1b8),async()=>{const _0x3973c9=_0x52e219,_0x4085d1={};_0x4085d1[_0x3973c9(0x1da)]=_0x3973c9(0x1ad);const _0x37cccb={};_0x37cccb[_0x3973c9(0x1da)]=_0x3973c9(0x1a4),_0x37cccb[_0x3973c9(0x175)]=_0x3973c9(0x18f),_0x37cccb[_0x3973c9(0x1be)]=[_0x4085d1],_0x37cccb[_0x3973c9(0x181)]=[];const _0x393956={};_0x393956['analysisId']=_0x3973c9(0x146),_0x393956['status']=_0x3973c9(0x1bb),_0x393956[_0x3973c9(0x174)]=_0x3973c9(0x1a0),_0x393956[_0x3973c9(0x147)]=[_0x37cccb],_0x393956[_0x3973c9(0x19e)+_0x3973c9(0x198)]=0x0,_0x393956[_0x3973c9(0x14a)+_0x3973c9(0x16d)]=0x0,_0x393956['highCount']=0x0,_0x393956['mediumCoun'+'t']=0x0,_0x393956['lowCount']=0x0,_0x393956['analysisBr'+'ief']='Safe';const _0x2b07c6=_0x393956;mockGetScaAnalysisResults['mockResolv'+'edValue'](_0x2b07c6);const _0x490024={};_0x490024[_0x3973c9(0x16c)]=_0x3973c9(0x146);const _0x34edd4=await _0x3de0c6[_0x3973c9(0x154)+_0x3973c9(0x144)+'s'](_0x490024);expect(_0x34edd4[_0x3973c9(0x155)+'Content']['components'])[_0x3973c9(0x194)+'th'](0x1),expect(_0x34edd4[_0x3973c9(0x1c0)][0x0][_0x3973c9(0x178)])[_0x3973c9(0x151)]('No\x20vulnera'+_0x3973c9(0x185)+_0x3973c9(0x1c5)),expect(_0x34edd4[_0x3973c9(0x1c0)][0x0][_0x3973c9(0x178)])[_0x3973c9(0x151)]('No\x20critica'+'l/high\x20sev'+_0x3973c9(0x1b5)+'es');});}),describe(_0x25347a(0x1db)+_0x25347a(0x16a)+_0x25347a(0x1b6),()=>{const _0xcf4b5c=_0x25347a,_0x546b2f={};_0x546b2f[_0xcf4b5c(0x184)]=_0xcf4b5c(0x1d4);const _0x3d73e2=_0x546b2f;it(_0xcf4b5c(0x17e)+'dle\x20analys'+'is\x20FAIL\x20st'+'atus',async()=>{const _0x335db4=_0xcf4b5c,_0x2b4a25={};_0x2b4a25[_0x335db4(0x16c)]=_0x335db4(0x179),_0x2b4a25['status']=_0x335db4(0x1bb),_0x2b4a25[_0x335db4(0x174)]=_0x335db4(0x1d4),_0x2b4a25[_0x335db4(0x190)+'ities']=[],_0x2b4a25[_0x335db4(0x157)+_0x335db4(0x165)]=_0x335db4(0x19d)+_0x335db4(0x156)+_0x335db4(0x1a7)+_0x335db4(0x15b);const _0x461051=_0x2b4a25;mockGetAnalysisResults[_0x335db4(0x14f)+_0x335db4(0x199)](_0x461051);const _0x203a3f={};_0x203a3f['analysisId']='fail-id';const _0x2f24e0=await _0x3de0c6[_0x335db4(0x1db)+'sResults'](_0x203a3f);expect(_0x2f24e0['structured'+_0x335db4(0x1aa)]['result'])[_0x335db4(0x182)](_0x3d73e2[_0x335db4(0x184)]),expect(_0x2f24e0[_0x335db4(0x1c0)][0x0]['text'])['toContain'](_0x335db4(0x1af)+'IL');});}),describe(_0x9d30ad[_0x25347a(0x18a)],()=>{const _0x562011=_0x25347a;it(_0x562011(0x1d3)+'urn\x20error\x20'+_0x562011(0x158)+_0x562011(0x150)+_0x562011(0x14b),async()=>{const _0x56eab5=_0x562011,_0x43be3e={};_0x43be3e['analysisId']=_0x56eab5(0x143);const _0x327399={};_0x327399[_0x56eab5(0x160)]={};const _0x2fca26=await _0x3de0c6[_0x56eab5(0x172)+_0x56eab5(0x145)+'s'](_0x43be3e,_0x327399);expect(_0x2fca26[_0x56eab5(0x155)+_0x56eab5(0x1aa)][_0x56eab5(0x1bc)])[_0x56eab5(0x182)](_0x56eab5(0x176)+_0x56eab5(0x1d6)+'rovided');});});});
1
+ const a12_0x41d4f7=a12_0x15fb;(function(_0x5eb867,_0x48d408){const _0x47d80f=a12_0x15fb,_0x365629=_0x5eb867();while(!![]){try{const _0xf50174=parseInt(_0x47d80f(0x168))/0x1*(-parseInt(_0x47d80f(0x14b))/0x2)+-parseInt(_0x47d80f(0x18b))/0x3*(-parseInt(_0x47d80f(0x1b2))/0x4)+-parseInt(_0x47d80f(0x137))/0x5+-parseInt(_0x47d80f(0x138))/0x6+-parseInt(_0x47d80f(0x1be))/0x7*(-parseInt(_0x47d80f(0x170))/0x8)+-parseInt(_0x47d80f(0x15d))/0x9+parseInt(_0x47d80f(0x13a))/0xa;if(_0xf50174===_0x48d408)break;else _0x365629['push'](_0x365629['shift']());}catch(_0x3a442e){_0x365629['push'](_0x365629['shift']());}}}(a12_0x4cf6,0x60d52));const a12_0x166c36=(function(){let _0x5dc5cc=!![];return function(_0x101143,_0x736e73){const _0x59bce3=_0x5dc5cc?function(){const _0xf675f3=a12_0x15fb;if(_0x736e73){const _0x5ecf48=_0x736e73[_0xf675f3(0x1ac)](_0x101143,arguments);return _0x736e73=null,_0x5ecf48;}}:function(){};return _0x5dc5cc=![],_0x59bce3;};}()),a12_0x1e1952=a12_0x166c36(this,function(){const _0x55a9b5=a12_0x15fb;return a12_0x1e1952[_0x55a9b5(0x19c)]()['search'](_0x55a9b5(0x196)+'+$')[_0x55a9b5(0x19c)]()[_0x55a9b5(0x134)+'r'](a12_0x1e1952)['search'](_0x55a9b5(0x196)+'+$');});function a12_0x4cf6(){const _0x17869a=['to\x20interna','sults\x20with','14zivCHA','edValue','test-lib','text','mediumCoun','er.js','COMPLETE','progress','clearAllMo','dle\x20errors','cveId','s.controll','ntroller','CalledWith','overage','ailed\x20due\x20','sResults','analysisBr','toContain','constructo','Status\x20che','sStatus','3332295aNiFjG','3362670HQVWEc','unt','17941870hEQqRm','omplete','../../serv','Analysis\x20f','sing','dle\x20compon','result','ezBCU','vulnerabil','sResults\x20c','e.js','No\x20critica','toHaveBeen','cks','ound','urn\x20analys','rabilities','753070wXAlLL','nts\x20found','rKAKq','sZjqo','bilities\x20f','../../util','urn\x20format','trackAnaly','ion\x20found','sFvdb','../analysi','content','atus','severity','ng\x20analysi','should\x20ret','missing-id','Analysis\x20n','3252753voitpQ','SQL_INJECT','ION','highCount','xOELd','FAIL','/src/Login','TACuC','sToken\x20mis','sis.servic','ities','1cMkBuk','mockReject','should\x20han','getAnalysi','safe-lib','descriptio','pending-id','cvssScore','558160ZLUKiZ','sisProgres','CVE-2023-1','ts.js','yRsZM','ockModule','n\x20progress','nts\x20identi','sca-id','rovided','ief','fied','lowCount','../../conf','mockImplem','toBe','HIGH','ig/constan','l/high\x20sev','dle\x20empty\x20','urn\x20error\x20','Progress\x20T','mockResolv','ANALYSIS','Initializi','ot\x20found','INIT','9RnuxSa','urn\x20simpli','s/logger.j','oken\x20not\x20p','pleted\x20err','status','ysisResult','analysisId','fail-id','structured','issues','(((.+)+)+)','order','entation','Analyzing','components','is\x20not\x20fou','toString','version','1.0.0','getScaAnal','test-id','ck\x20failed','name','licenses','SUCCESS','dle\x20analys','SQL\x20Inject','unstable_m','gpNTO','is\x20FAIL\x20st','234','Injection','apply','error','_meta','AnalysisCo','totalVulne','toHaveLeng','570340WRaNOj','criticalCo','Content','ices/analy','\x20component','Status:\x20FA','filePath','mHKAx','\x20table','ot\x20complet'];a12_0x4cf6=function(){return _0x17869a;};return a12_0x4cf6();}a12_0x1e1952();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGetAnalysisStatus=jest['fn'](),mockGetAnalysisResults=jest['fn'](),mockGetScaAnalysisResults=jest['fn']();jest['unstable_m'+'ockModule'](a12_0x41d4f7(0x13c)+a12_0x41d4f7(0x1b5)+a12_0x41d4f7(0x166)+a12_0x41d4f7(0x144),()=>({'AnalysisService':jest['fn']()[a12_0x41d4f7(0x17e)+a12_0x41d4f7(0x198)](()=>({'getAnalysisStatus':mockGetAnalysisStatus,'getAnalysisResults':mockGetAnalysisResults,'getScaAnalysisResults':mockGetScaAnalysisResults}))})),jest[a12_0x41d4f7(0x1a7)+a12_0x41d4f7(0x175)](a12_0x41d4f7(0x150)+a12_0x41d4f7(0x18d)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const a12_0x17cd02={};a12_0x17cd02['id']='INIT',a12_0x17cd02['name']=a12_0x41d4f7(0x188)+'ng',a12_0x17cd02['descriptio'+'n']=a12_0x41d4f7(0x188)+a12_0x41d4f7(0x159)+'s',a12_0x17cd02[a12_0x41d4f7(0x197)]=0x1,a12_0x17cd02['progress']=0x0;const a12_0x38fe63={};function a12_0x15fb(_0x2f5cff,_0x49f1b7){_0x2f5cff=_0x2f5cff-0x128;const _0x3c771d=a12_0x4cf6();let _0x1e1952=_0x3c771d[_0x2f5cff];return _0x1e1952;}a12_0x38fe63['id']=a12_0x41d4f7(0x187),a12_0x38fe63[a12_0x41d4f7(0x1a2)]=a12_0x41d4f7(0x199),a12_0x38fe63[a12_0x41d4f7(0x16d)+'n']='Analysis\x20i'+a12_0x41d4f7(0x176),a12_0x38fe63['order']=0x2,a12_0x38fe63[a12_0x41d4f7(0x128)]=null;const a12_0x37e22d={};a12_0x37e22d['id']=a12_0x41d4f7(0x1c4),a12_0x37e22d[a12_0x41d4f7(0x1a2)]='Complete',a12_0x37e22d[a12_0x41d4f7(0x16d)+'n']='Analysis\x20c'+a12_0x41d4f7(0x13b),a12_0x37e22d[a12_0x41d4f7(0x197)]=0x3,a12_0x37e22d[a12_0x41d4f7(0x128)]=0x64;const a12_0x4dda2b={};a12_0x4dda2b[a12_0x41d4f7(0x18a)]=a12_0x17cd02,a12_0x4dda2b[a12_0x41d4f7(0x187)]=a12_0x38fe63,a12_0x4dda2b[a12_0x41d4f7(0x1c4)]=a12_0x37e22d,jest[a12_0x41d4f7(0x1a7)+a12_0x41d4f7(0x175)](a12_0x41d4f7(0x17d)+a12_0x41d4f7(0x181)+a12_0x41d4f7(0x173),()=>({'ANALYSIS_STAGES':a12_0x4dda2b}));const {AnalysisController}=await import(a12_0x41d4f7(0x155)+a12_0x41d4f7(0x12c)+a12_0x41d4f7(0x1c3)),{AnalysisService}=await import(a12_0x41d4f7(0x13c)+'ices/analy'+a12_0x41d4f7(0x166)+a12_0x41d4f7(0x144));describe(a12_0x41d4f7(0x1af)+a12_0x41d4f7(0x12d),()=>{const _0x333dc9=a12_0x41d4f7,_0x208162={'rKAKq':function(_0x3d0dab,_0x2593d2){return _0x3d0dab(_0x2593d2);},'mHKAx':_0x333dc9(0x178),'sZjqo':function(_0x2b4948,_0x256c64){return _0x2b4948(_0x256c64);},'ezBCU':_0x333dc9(0x15c)+_0x333dc9(0x189),'xOELd':_0x333dc9(0x145)+_0x333dc9(0x182)+'erity\x20issu'+'es','sFvdb':function(_0x18a723,_0x1a5f9c,_0x45c045){return _0x18a723(_0x1a5f9c,_0x45c045);},'TACuC':function(_0x2b98d1,_0x1b9692,_0x3024ab){return _0x2b98d1(_0x1b9692,_0x3024ab);}};let _0x1cfc5a,_0x635855;beforeEach(()=>{const _0x1f178f=_0x333dc9;jest[_0x1f178f(0x129)+_0x1f178f(0x147)](),_0x635855=new AnalysisService(),_0x1cfc5a=new AnalysisController(_0x635855);}),describe(_0x333dc9(0x16b)+_0x333dc9(0x136),()=>{const _0x226d5b=_0x333dc9;it(_0x226d5b(0x15a)+_0x226d5b(0x149)+'is\x20status',async()=>{const _0x344606=_0x226d5b,_0x1f2af9={};_0x1f2af9[_0x344606(0x190)]=_0x344606(0x187),_0x1f2af9[_0x344606(0x128)]=0x32;const _0xccdc13=_0x1f2af9;mockGetAnalysisStatus[_0x344606(0x186)+'edValue'](_0xccdc13);const _0x4a514c={};_0x4a514c['analysisId']='test-id';const _0x5d5712=await _0x1cfc5a[_0x344606(0x16b)+_0x344606(0x136)](_0x4a514c);expect(mockGetAnalysisStatus)[_0x344606(0x146)+_0x344606(0x12e)](_0x344606(0x1a0)),expect(_0x5d5712[_0x344606(0x194)+_0x344606(0x1b4)]['status'])[_0x344606(0x17f)](_0x344606(0x187)),_0x208162[_0x344606(0x14d)](expect,_0x5d5712[_0x344606(0x194)+_0x344606(0x1b4)][_0x344606(0x128)])['toBe'](0x32);}),it(_0x226d5b(0x16a)+_0x226d5b(0x12a),async()=>{const _0x50f9f3=_0x226d5b;mockGetAnalysisStatus[_0x50f9f3(0x169)+_0x50f9f3(0x1bf)](new Error('Status\x20che'+_0x50f9f3(0x1a1)));const _0x577a48={};_0x577a48['analysisId']='test-id';const _0x193637=await _0x1cfc5a[_0x50f9f3(0x16b)+_0x50f9f3(0x136)](_0x577a48);expect(_0x193637[_0x50f9f3(0x194)+_0x50f9f3(0x1b4)][_0x50f9f3(0x1ad)])[_0x50f9f3(0x17f)](_0x50f9f3(0x135)+_0x50f9f3(0x1a1));});}),describe(_0x333dc9(0x16b)+'sResults',()=>{const _0x11fd76=_0x333dc9;it(_0x11fd76(0x15a)+_0x11fd76(0x18c)+'fied\x20resul'+'ts',async()=>{const _0x21b280=_0x11fd76,_0x2c5ddd={};_0x2c5ddd['severity']=_0x21b280(0x180),_0x2c5ddd['checkerKey']=_0x21b280(0x15e)+_0x21b280(0x15f),_0x2c5ddd[_0x21b280(0x16d)+'n']=_0x21b280(0x1a6)+_0x21b280(0x153),_0x2c5ddd[_0x21b280(0x1b8)]=_0x21b280(0x163)+'.java',_0x2c5ddd['lineNumber']=0xa;const _0x553016={};_0x553016['analysisId']='test-id',_0x553016[_0x21b280(0x190)]=_0x21b280(0x1c4),_0x553016[_0x21b280(0x140)]='SUCCESS',_0x553016[_0x21b280(0x142)+'ities']=[_0x2c5ddd],_0x553016[_0x21b280(0x132)+_0x21b280(0x17a)]='Found\x20SQL\x20'+_0x21b280(0x1ab);const _0xdd2282=_0x553016;mockGetAnalysisResults[_0x21b280(0x186)+'edValue'](_0xdd2282);const _0x5db6e5={};_0x5db6e5[_0x21b280(0x192)]=_0x21b280(0x1a0);const _0x30a8cb=await _0x1cfc5a[_0x21b280(0x16b)+_0x21b280(0x131)](_0x5db6e5);expect(mockGetAnalysisResults)[_0x21b280(0x146)+_0x21b280(0x12e)]('test-id'),expect(_0x30a8cb['structured'+_0x21b280(0x1b4)][_0x21b280(0x142)+_0x21b280(0x167)])[_0x21b280(0x1b1)+'th'](0x1),expect(_0x30a8cb['content'][0x0][_0x21b280(0x1c1)])[_0x21b280(0x133)](_0x21b280(0x15e)+_0x21b280(0x15f));});}),describe('getScaAnal'+_0x333dc9(0x191)+'s',()=>{const _0x573048=_0x333dc9;it(_0x573048(0x15a)+_0x573048(0x151)+'ted\x20SCA\x20re'+_0x573048(0x1bd)+_0x573048(0x1b6)+_0x573048(0x1ba),async()=>{const _0x4e2cf5=_0x573048,_0x94b09a={};_0x94b09a['name']='MIT';const _0x3594d9={};_0x3594d9[_0x4e2cf5(0x158)]=_0x4e2cf5(0x180),_0x3594d9[_0x4e2cf5(0x12b)]=_0x4e2cf5(0x172)+_0x4e2cf5(0x1aa),_0x3594d9[_0x4e2cf5(0x16f)]=7.5,_0x3594d9['fixedVersi'+'on']='1.0.1';const _0x56605e={};_0x56605e[_0x4e2cf5(0x1a2)]=_0x4e2cf5(0x1c0),_0x56605e['version']='1.0.0',_0x56605e[_0x4e2cf5(0x1a3)]=[_0x94b09a],_0x56605e[_0x4e2cf5(0x195)]=[_0x3594d9];const _0x332fda={};_0x332fda[_0x4e2cf5(0x192)]='sca-id',_0x332fda['status']='COMPLETE',_0x332fda[_0x4e2cf5(0x140)]='SUCCESS',_0x332fda['components']=[_0x56605e],_0x332fda[_0x4e2cf5(0x1b0)+'rabilities']=0x1,_0x332fda[_0x4e2cf5(0x1b3)+_0x4e2cf5(0x139)]=0x0,_0x332fda[_0x4e2cf5(0x160)]=0x1,_0x332fda[_0x4e2cf5(0x1c2)+'t']=0x0,_0x332fda[_0x4e2cf5(0x17c)]=0x0,_0x332fda[_0x4e2cf5(0x132)+_0x4e2cf5(0x17a)]='SCA\x20Briefi'+'ng';const _0x5510cc=_0x332fda;mockGetScaAnalysisResults[_0x4e2cf5(0x186)+_0x4e2cf5(0x1bf)](_0x5510cc);const _0x38689a={};_0x38689a[_0x4e2cf5(0x192)]=_0x208162[_0x4e2cf5(0x1b9)];const _0x44c295=await _0x1cfc5a[_0x4e2cf5(0x19f)+_0x4e2cf5(0x191)+'s'](_0x38689a);expect(mockGetScaAnalysisResults)[_0x4e2cf5(0x146)+_0x4e2cf5(0x12e)](_0x4e2cf5(0x178)),_0x208162[_0x4e2cf5(0x14e)](expect,_0x44c295['structured'+'Content'][_0x4e2cf5(0x19a)])[_0x4e2cf5(0x1b1)+'th'](0x1),expect(_0x44c295[_0x4e2cf5(0x156)][0x0]['text'])[_0x4e2cf5(0x133)]('test-lib'),expect(_0x44c295[_0x4e2cf5(0x156)][0x0][_0x4e2cf5(0x1c1)])['toContain'](_0x4e2cf5(0x172)+_0x4e2cf5(0x1aa));}),it(_0x573048(0x16a)+'dle\x20analys'+_0x573048(0x19b)+'nd\x20error',async()=>{const _0x488ed3=_0x573048;mockGetScaAnalysisResults['mockReject'+_0x488ed3(0x1bf)](new Error(_0x208162[_0x488ed3(0x141)]));const _0x49f8bf={};_0x49f8bf[_0x488ed3(0x192)]=_0x488ed3(0x15b);const _0x3f8ec7=await _0x1cfc5a[_0x488ed3(0x19f)+_0x488ed3(0x191)+'s'](_0x49f8bf);expect(_0x3f8ec7[_0x488ed3(0x194)+'Content'][_0x488ed3(0x1ad)])[_0x488ed3(0x133)](_0x488ed3(0x15c)+_0x488ed3(0x189));}),_0x208162[_0x573048(0x154)](it,_0x573048(0x16a)+'dle\x20analys'+'is\x20not\x20com'+_0x573048(0x18f)+'or',async()=>{const _0x328aab=_0x573048;mockGetScaAnalysisResults[_0x328aab(0x169)+'edValue'](new Error('Analysis\x20n'+_0x328aab(0x1bb)+'ed'));const _0x795dba={};_0x795dba['analysisId']=_0x328aab(0x16e);const _0x444de6=await _0x1cfc5a[_0x328aab(0x19f)+_0x328aab(0x191)+'s'](_0x795dba);expect(_0x444de6[_0x328aab(0x194)+_0x328aab(0x1b4)][_0x328aab(0x1ad)])[_0x328aab(0x133)](_0x328aab(0x15c)+_0x328aab(0x1bb)+'ed');}),_0x208162[_0x573048(0x164)](it,_0x573048(0x16a)+_0x573048(0x183)+_0x573048(0x19a)+'\x20list',async()=>{const _0x15e4c6=_0x573048,_0x3b8d2b={};_0x3b8d2b[_0x15e4c6(0x192)]=_0x15e4c6(0x178),_0x3b8d2b[_0x15e4c6(0x190)]=_0x15e4c6(0x1c4),_0x3b8d2b[_0x15e4c6(0x140)]=_0x15e4c6(0x1a4),_0x3b8d2b[_0x15e4c6(0x19a)]=[],_0x3b8d2b['totalVulne'+_0x15e4c6(0x14a)]=0x0,_0x3b8d2b[_0x15e4c6(0x1b3)+'unt']=0x0,_0x3b8d2b[_0x15e4c6(0x160)]=0x0,_0x3b8d2b[_0x15e4c6(0x1c2)+'t']=0x0,_0x3b8d2b['lowCount']=0x0,_0x3b8d2b[_0x15e4c6(0x132)+_0x15e4c6(0x17a)]='No\x20compone'+_0x15e4c6(0x14c);const _0x443e74=_0x3b8d2b;mockGetScaAnalysisResults[_0x15e4c6(0x186)+'edValue'](_0x443e74);const _0x5694b4={};_0x5694b4['analysisId']='sca-id';const _0x27b10b=await _0x1cfc5a[_0x15e4c6(0x19f)+_0x15e4c6(0x191)+'s'](_0x5694b4);expect(_0x27b10b[_0x15e4c6(0x194)+_0x15e4c6(0x1b4)][_0x15e4c6(0x19a)])[_0x15e4c6(0x1b1)+'th'](0x0),expect(_0x27b10b[_0x15e4c6(0x156)][0x0]['text'])[_0x15e4c6(0x133)]('No\x20compone'+_0x15e4c6(0x177)+_0x15e4c6(0x17b));}),it(_0x573048(0x16a)+_0x573048(0x13f)+'ents\x20with\x20'+'no\x20vulnera'+'bilities',async()=>{const _0x2958f3=_0x573048,_0x2b191c={};_0x2b191c['name']='MIT';const _0x55a44e={};_0x55a44e[_0x2958f3(0x1a2)]=_0x2958f3(0x16c),_0x55a44e[_0x2958f3(0x19d)]=_0x2958f3(0x19e),_0x55a44e['licenses']=[_0x2b191c],_0x55a44e[_0x2958f3(0x195)]=[];const _0x2a1695={};_0x2a1695[_0x2958f3(0x192)]=_0x2958f3(0x178),_0x2a1695[_0x2958f3(0x190)]=_0x2958f3(0x1c4),_0x2a1695[_0x2958f3(0x140)]=_0x2958f3(0x1a4),_0x2a1695[_0x2958f3(0x19a)]=[_0x55a44e],_0x2a1695[_0x2958f3(0x1b0)+'rabilities']=0x0,_0x2a1695[_0x2958f3(0x1b3)+_0x2958f3(0x139)]=0x0,_0x2a1695[_0x2958f3(0x160)]=0x0,_0x2a1695[_0x2958f3(0x1c2)+'t']=0x0,_0x2a1695['lowCount']=0x0,_0x2a1695['analysisBr'+'ief']='Safe';const _0x1d1439=_0x2a1695;mockGetScaAnalysisResults[_0x2958f3(0x186)+_0x2958f3(0x1bf)](_0x1d1439);const _0x428e40={};_0x428e40[_0x2958f3(0x192)]='sca-id';const _0x580c11=await _0x1cfc5a[_0x2958f3(0x19f)+'ysisResult'+'s'](_0x428e40);expect(_0x580c11['structured'+_0x2958f3(0x1b4)][_0x2958f3(0x19a)])[_0x2958f3(0x1b1)+'th'](0x1),expect(_0x580c11[_0x2958f3(0x156)][0x0][_0x2958f3(0x1c1)])[_0x2958f3(0x133)]('No\x20vulnera'+_0x2958f3(0x14f)+_0x2958f3(0x148)),expect(_0x580c11[_0x2958f3(0x156)][0x0][_0x2958f3(0x1c1)])[_0x2958f3(0x133)](_0x208162[_0x2958f3(0x161)]);});}),describe(_0x333dc9(0x16b)+_0x333dc9(0x143)+_0x333dc9(0x12f),()=>{const _0x2b5606=_0x333dc9,_0x145fcf={};_0x145fcf[_0x2b5606(0x174)]='COMPLETE',_0x145fcf['gpNTO']=_0x2b5606(0x13d)+_0x2b5606(0x130)+_0x2b5606(0x1bc)+'l\x20error';const _0x193561=_0x145fcf;it('should\x20han'+_0x2b5606(0x1a5)+_0x2b5606(0x1a9)+_0x2b5606(0x157),async()=>{const _0x383493=_0x2b5606,_0xb410f4={};_0xb410f4[_0x383493(0x192)]=_0x383493(0x193),_0xb410f4[_0x383493(0x190)]=_0x193561['yRsZM'],_0xb410f4[_0x383493(0x140)]=_0x383493(0x162),_0xb410f4[_0x383493(0x142)+'ities']=[],_0xb410f4[_0x383493(0x132)+_0x383493(0x17a)]=_0x193561[_0x383493(0x1a8)];const _0x4e1517=_0xb410f4;mockGetAnalysisResults[_0x383493(0x186)+'edValue'](_0x4e1517);const _0x4b09cb={};_0x4b09cb[_0x383493(0x192)]=_0x383493(0x193);const _0x3e0f7d=await _0x1cfc5a[_0x383493(0x16b)+_0x383493(0x131)](_0x4b09cb);expect(_0x3e0f7d[_0x383493(0x194)+'Content'][_0x383493(0x140)])['toBe'](_0x383493(0x162)),expect(_0x3e0f7d[_0x383493(0x156)][0x0][_0x383493(0x1c1)])['toContain'](_0x383493(0x1b7)+'IL');});}),describe('trackAnaly'+_0x333dc9(0x171)+'s',()=>{const _0xed9914=_0x333dc9;it(_0xed9914(0x15a)+_0xed9914(0x184)+'if\x20progres'+_0xed9914(0x165)+_0xed9914(0x13e),async()=>{const _0xcd1d40=_0xed9914,_0x253c1c={};_0x253c1c['analysisId']=_0xcd1d40(0x1a0);const _0x4c8fa5={};_0x4c8fa5[_0xcd1d40(0x1ae)]={};const _0x366a17=await _0x1cfc5a[_0xcd1d40(0x152)+_0xcd1d40(0x171)+'s'](_0x253c1c,_0x4c8fa5);expect(_0x366a17[_0xcd1d40(0x194)+'Content'][_0xcd1d40(0x1ad)])[_0xcd1d40(0x17f)](_0xcd1d40(0x185)+_0xcd1d40(0x18e)+_0xcd1d40(0x179));});});});
@@ -1 +1 @@
1
- const a13_0xd3b33e=a13_0x52c6;(function(_0x366436,_0x3cc551){const _0x3d1ece=a13_0x52c6,_0x19c0a0=_0x366436();while(!![]){try{const _0x31db09=-parseInt(_0x3d1ece(0xad))/0x1+-parseInt(_0x3d1ece(0x91))/0x2+-parseInt(_0x3d1ece(0x96))/0x3+-parseInt(_0x3d1ece(0x72))/0x4*(parseInt(_0x3d1ece(0xb6))/0x5)+parseInt(_0x3d1ece(0x6e))/0x6+parseInt(_0x3d1ece(0x99))/0x7+parseInt(_0x3d1ece(0x80))/0x8*(parseInt(_0x3d1ece(0xa4))/0x9);if(_0x31db09===_0x3cc551)break;else _0x19c0a0['push'](_0x19c0a0['shift']());}catch(_0x3bf598){_0x19c0a0['push'](_0x19c0a0['shift']());}}}(a13_0x4f1f,0x65f18));const a13_0x24eb76=(function(){let _0xded4ba=!![];return function(_0x23008a,_0x324cf1){const _0x3276dd=_0xded4ba?function(){const _0x5bc98a=a13_0x52c6;if(_0x324cf1){const _0x5dfe94=_0x324cf1[_0x5bc98a(0x6d)](_0x23008a,arguments);return _0x324cf1=null,_0x5dfe94;}}:function(){};return _0xded4ba=![],_0x3276dd;};}()),a13_0x2e26d6=a13_0x24eb76(this,function(){const _0x4195f0=a13_0x52c6;return a13_0x2e26d6[_0x4195f0(0xaa)]()[_0x4195f0(0x8c)](_0x4195f0(0xa2)+'+$')[_0x4195f0(0xaa)]()['constructo'+'r'](a13_0x2e26d6)[_0x4195f0(0x8c)](_0x4195f0(0xa2)+'+$');});function a13_0x52c6(_0x45a462,_0x1b5edc){_0x45a462=_0x45a462-0x66;const _0x2aa734=a13_0x4f1f();let _0x2e26d6=_0x2aa734[_0x45a462];return _0x2e26d6;}a13_0x2e26d6();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSecurity=jest['fn'](),mockAnalyzeMultipleFilesFromPaths=jest['fn'](),mockAnalyzeFolder=jest['fn'](),mockAnalyzeZipFile=jest['fn']();jest[a13_0xd3b33e(0x7a)+a13_0xd3b33e(0x79)]('../../serv'+a13_0xd3b33e(0xc6)+a13_0xd3b33e(0x98)+a13_0xd3b33e(0xac),()=>({'AnalysisService':jest['fn']()[a13_0xd3b33e(0x8a)+a13_0xd3b33e(0xc7)](()=>({'analyzeFileSecurity':mockAnalyzeFileSecurity,'analyzeMultipleFilesFromPaths':mockAnalyzeMultipleFilesFromPaths,'analyzeFolder':mockAnalyzeFolder,'analyzeZipFile':mockAnalyzeZipFile}))})),jest['unstable_m'+a13_0xd3b33e(0x79)](a13_0xd3b33e(0x9e)+a13_0xd3b33e(0xaf)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const {SastController}=await import(a13_0xd3b33e(0x66)+a13_0xd3b33e(0x8d)+'s'),{AnalysisService}=await import(a13_0xd3b33e(0x77)+a13_0xd3b33e(0xc6)+a13_0xd3b33e(0x98)+'e.js');describe('SastContro'+a13_0xd3b33e(0x74),()=>{const _0x18aadf=a13_0xd3b33e,_0x4d046e={'RBqjx':_0x18aadf(0xb0),'XoAgf':function(_0x13f030,_0x32ed11,_0x1f8350){return _0x13f030(_0x32ed11,_0x1f8350);},'mKJqt':_0x18aadf(0xc8)+_0x18aadf(0x92)+_0x18aadf(0xa9),'SziWr':_0x18aadf(0xa6)+'\x20not\x20provi'+_0x18aadf(0xba),'rUxMS':function(_0x10d45a,_0x3995ea){return _0x10d45a(_0x3995ea);},'audhH':_0x18aadf(0x7c),'rzpEV':function(_0x208b74,_0x458d99){return _0x208b74(_0x458d99);},'OrfKs':_0x18aadf(0xce)+'derSast'};let _0x1d587f,_0x2707d2;beforeEach(()=>{const _0x3af84e=_0x18aadf;jest[_0x3af84e(0xc9)+_0x3af84e(0x67)](),_0x2707d2=new AnalysisService(),_0x1d587f=new SastController(_0x2707d2);}),describe(_0x18aadf(0x90)+_0x18aadf(0xa0),()=>{const _0x4668b2=_0x18aadf;_0x4d046e[_0x4668b2(0x89)](it,_0x4668b2(0x69)+_0x4668b2(0x9c)+_0x4668b2(0xca)+_0x4668b2(0xb2)+'is',async()=>{const _0x74a853=_0x4668b2,_0x566eb2={};_0x566eb2[_0x74a853(0x83)]=_0x74a853(0x7c),_0x566eb2[_0x74a853(0x8e)]=_0x74a853(0xb3);const _0x242138=_0x566eb2;mockAnalyzeFileSecurity[_0x74a853(0x87)+_0x74a853(0x76)](_0x242138);const _0x1015bb={};_0x1015bb[_0x74a853(0xb5)+'t']=_0x74a853(0x9f),_0x1015bb[_0x74a853(0x73)]=_0x4d046e[_0x74a853(0xb7)];const _0x1cfbd6=await _0x1d587f['analyzeFil'+_0x74a853(0xa0)](_0x1015bb),_0x920a46={};_0x920a46[_0x74a853(0xb5)+'t']=_0x74a853(0x9f),_0x920a46[_0x74a853(0x73)]=_0x74a853(0xb0),expect(mockAnalyzeFileSecurity)['toHaveBeen'+_0x74a853(0xcd)](_0x920a46),expect(_0x1cfbd6[_0x74a853(0x71)+_0x74a853(0x6c)]['analysisId'])['toBe'](_0x74a853(0x7c));}),it('should\x20han'+_0x4668b2(0x82)+_0x4668b2(0x7b)+'y',async()=>{const _0x29d012=_0x4668b2;mockAnalyzeFileSecurity[_0x29d012(0xcb)+_0x29d012(0x76)](new Error(_0x29d012(0xbb)+_0x29d012(0x9a)));const _0x556997={};_0x556997[_0x29d012(0xb5)+'t']='code',_0x556997[_0x29d012(0x73)]=_0x29d012(0xb0);const _0x59ce44=await _0x1d587f[_0x29d012(0x90)+_0x29d012(0xa0)](_0x556997);expect(_0x59ce44[_0x29d012(0x71)+_0x29d012(0x6c)]['error'])[_0x29d012(0xc3)](_0x29d012(0xbb)+_0x29d012(0x9a));});}),it('should\x20han'+_0x18aadf(0x9b)+'file\x20conte'+'nt',async()=>{const _0x33479b=_0x18aadf;mockAnalyzeFileSecurity[_0x33479b(0xcb)+_0x33479b(0x76)](new Error(_0x4d046e[_0x33479b(0xa8)]));const _0x397d4d={};_0x397d4d['fileConten'+'t']='',_0x397d4d['fileName']=_0x33479b(0xb0);const _0x45da70=await _0x1d587f[_0x33479b(0x90)+'eSast'](_0x397d4d);expect(_0x45da70['structured'+_0x33479b(0x6c)][_0x33479b(0xa7)])[_0x33479b(0xc1)](_0x33479b(0xc8)+_0x33479b(0x92)+_0x33479b(0xa9));}),describe(_0x18aadf(0x90)+'esSast',()=>{const _0x1fd677=_0x18aadf;it(_0x1fd677(0x69)+_0x1fd677(0x9c)+'initiate\x20m'+_0x1fd677(0xb9)+_0x1fd677(0xb1),async()=>{const _0x5b7725=_0x1fd677,_0x51b6ff={};_0x51b6ff['analysisId']=_0x5b7725(0x7c),_0x51b6ff[_0x5b7725(0x8e)]=_0x5b7725(0xb3);const _0x4ac5d5=_0x51b6ff;mockAnalyzeMultipleFilesFromPaths['mockResolv'+'edValue'](_0x4ac5d5);const _0x59a909={};_0x59a909['filePaths']=[_0x5b7725(0xc0)+'ile1',_0x5b7725(0xc0)+_0x5b7725(0xa3)];const _0x2cdb6c=await _0x1d587f['analyzeFil'+_0x5b7725(0x88)](_0x59a909);expect(mockAnalyzeMultipleFilesFromPaths)[_0x5b7725(0xbc)+_0x5b7725(0xcd)](['/path/to/f'+'ile1',_0x5b7725(0xc0)+_0x5b7725(0xa3)],undefined),expect(_0x2cdb6c[_0x5b7725(0x71)+'Content'][_0x5b7725(0x83)])['toBe']('test-id'),expect(_0x2cdb6c[_0x5b7725(0x71)+_0x5b7725(0x6c)][_0x5b7725(0x68)+_0x5b7725(0x94)])[_0x5b7725(0xc3)](0x2);}),it(_0x1fd677(0xbe)+'urn\x20error\x20'+_0x1fd677(0x70)+_0x1fd677(0x97),async()=>{const _0x50b3df=_0x1fd677,_0x5809af={};_0x5809af['filePaths']=[];const _0x197c65=await _0x1d587f[_0x50b3df(0x90)+_0x50b3df(0x88)](_0x5809af);expect(_0x197c65[_0x50b3df(0x71)+_0x50b3df(0x6c)]['error'])[_0x50b3df(0xc3)](_0x4d046e[_0x50b3df(0x6b)]),expect(mockAnalyzeMultipleFilesFromPaths)[_0x50b3df(0xa5)][_0x50b3df(0xbc)+'Called']();});}),describe(_0x4d046e[_0x18aadf(0xb8)],()=>{const _0x2fbc06=_0x18aadf,_0x198e2d={'GaLQj':'INIT','nxZlB':function(_0x438089,_0x24dbbc){const _0x47823e=a13_0x52c6;return _0x4d046e[_0x47823e(0x7f)](_0x438089,_0x24dbbc);}};it(_0x2fbc06(0x69)+_0x2fbc06(0x9c)+'initiate\x20f'+'older\x20anal'+_0x2fbc06(0xcc),async()=>{const _0x469966=_0x2fbc06,_0x5812a6={};_0x5812a6[_0x469966(0x83)]='test-id',_0x5812a6[_0x469966(0x8e)]=_0x198e2d[_0x469966(0x8f)],_0x5812a6[_0x469966(0xc4)+_0x469966(0x9d)]=[];const _0x3e3a7a=_0x5812a6;mockAnalyzeFolder['mockResolv'+'edValue'](_0x3e3a7a);const _0x34d71a={};_0x34d71a[_0x469966(0xc2)]=_0x469966(0xc0)+_0x469966(0x93);const _0x3f3b3f=await _0x1d587f[_0x469966(0xce)+_0x469966(0x86)](_0x34d71a);expect(mockAnalyzeFolder)['toHaveBeen'+_0x469966(0xcd)]('/path/to/f'+_0x469966(0x93),undefined),_0x198e2d[_0x469966(0xd0)](expect,_0x3f3b3f[_0x469966(0x71)+_0x469966(0x6c)][_0x469966(0x83)])[_0x469966(0xc3)](_0x469966(0x7c));}),it(_0x2fbc06(0xbe)+_0x2fbc06(0x6a)+'if\x20folder\x20'+_0x2fbc06(0x7e)+'ng',async()=>{const _0x472eea=_0x2fbc06,_0x284825={};_0x284825[_0x472eea(0xc2)]='';const _0x1b2a59=await _0x1d587f[_0x472eea(0xce)+_0x472eea(0x86)](_0x284825);expect(_0x1b2a59['structured'+_0x472eea(0x6c)]['error'])[_0x472eea(0xc3)]('Folder\x20pat'+_0x472eea(0x81)+_0x472eea(0xab)),expect(mockAnalyzeFolder)[_0x472eea(0xa5)][_0x472eea(0xbc)+_0x472eea(0x8b)]();});}),describe(_0x18aadf(0xbf)+_0x18aadf(0xbd),()=>{const _0x562d40=_0x18aadf;it(_0x562d40(0x69)+'cessfully\x20'+_0x562d40(0x95)+'ip\x20analysi'+'s',async()=>{const _0x1d0da9=_0x562d40,_0x5a1264={};_0x5a1264[_0x1d0da9(0x83)]=_0x4d046e[_0x1d0da9(0x85)],_0x5a1264[_0x1d0da9(0x8e)]=_0x1d0da9(0xb3);const _0x1f243f=_0x5a1264;mockAnalyzeZipFile[_0x1d0da9(0x87)+_0x1d0da9(0x76)](_0x1f243f);const _0x176a22={};_0x176a22['zipFilePat'+'h']='/path/to/f'+_0x1d0da9(0x7d);const _0x4a11e5=await _0x1d587f[_0x1d0da9(0xbf)+_0x1d0da9(0xbd)](_0x176a22);expect(mockAnalyzeZipFile)[_0x1d0da9(0xbc)+_0x1d0da9(0xcd)]('/path/to/f'+'ile.zip',undefined),_0x4d046e['rzpEV'](expect,_0x4a11e5['structured'+_0x1d0da9(0x6c)]['analysisId'])[_0x1d0da9(0xc3)]('test-id');}),it(_0x562d40(0xbe)+'urn\x20error\x20'+_0x562d40(0x84)+'h\x20missing',async()=>{const _0xf362c2=_0x562d40,_0x30e266={};_0x30e266[_0xf362c2(0xae)+'h']='';const _0x20c8be=await _0x1d587f[_0xf362c2(0xbf)+_0xf362c2(0xbd)](_0x30e266);expect(_0x20c8be[_0xf362c2(0x71)+_0xf362c2(0x6c)][_0xf362c2(0xa7)])[_0xf362c2(0xc3)]('ZIP\x20file\x20p'+_0xf362c2(0x78)+_0xf362c2(0x75)),expect(mockAnalyzeZipFile)[_0xf362c2(0xa5)][_0xf362c2(0xbc)+_0xf362c2(0x8b)]();}),it(_0x562d40(0x6f)+'dle\x20zip\x20fi'+_0x562d40(0xc5),async()=>{const _0x15c930=_0x562d40;mockAnalyzeZipFile[_0x15c930(0xcb)+_0x15c930(0x76)](new Error(_0x15c930(0xcf)+'P\x20file'));const _0x14ce08={};_0x14ce08[_0x15c930(0xae)+'h']=_0x15c930(0xb4)+'p';const _0x4dbb1a=await _0x1d587f[_0x15c930(0xbf)+_0x15c930(0xbd)](_0x14ce08);expect(_0x4dbb1a['structured'+_0x15c930(0x6c)]['error'])[_0x15c930(0xc1)]('Invalid\x20ZI'+_0x15c930(0xa1));});});});function a13_0x4f1f(){const _0x5edb4b=['be\x20empty','toString','ided','e.js','825572Dcfzbe','zipFilePat','s/logger.j','test.java','analysis','ile\x20analys','INIT','corrupt.zi','fileConten','25nYXIuR','RBqjx','OrfKs','ulti-file\x20','ded','Analysis\x20f','toHaveBeen','Sast','should\x20ret','analyzeZip','/path/to/f','toContain','folderPath','toBe','skippedFol','le\x20errors','ices/analy','entation','File\x20conte','clearAllMo','initiate\x20f','mockReject','ysis','CalledWith','analyzeFol','Invalid\x20ZI','nxZlB','../sast.co','cks','filePathCo','should\x20suc','urn\x20error\x20','SziWr','Content','apply','974934FhPlmn','should\x20han','if\x20no\x20file','structured','665776DcVDVd','fileName','ller','ovided','edValue','../../serv','ath\x20not\x20pr','ockModule','unstable_m','\x20gracefull','test-id','ile.zip','path\x20missi','rUxMS','643640vVWHjk','h\x20not\x20prov','dle\x20errors','analysisId','if\x20zip\x20pat','audhH','derSast','mockResolv','esSast','XoAgf','mockImplem','Called','search','ntroller.j','status','GaLQj','analyzeFil','810942RyktTr','nt\x20cannot\x20','older','unt','initiate\x20z','857829GgutlW','s\x20provided','sis.servic','5839869XaSPEX','ailed','dle\x20empty\x20','cessfully\x20','ders','../../util','code','eSast','P\x20file','(((.+)+)+)','ile2','198qscWml','not','File\x20paths','error','mKJqt'];a13_0x4f1f=function(){return _0x5edb4b;};return a13_0x4f1f();}
1
+ const a13_0x222b61=a13_0x202c;(function(_0x2ca7cf,_0x588d8d){const _0xa1b85b=a13_0x202c,_0x2ded69=_0x2ca7cf();while(!![]){try{const _0x502729=parseInt(_0xa1b85b(0x205))/0x1+parseInt(_0xa1b85b(0x1f7))/0x2+-parseInt(_0xa1b85b(0x235))/0x3+parseInt(_0xa1b85b(0x1d5))/0x4+-parseInt(_0xa1b85b(0x1eb))/0x5*(parseInt(_0xa1b85b(0x1d6))/0x6)+-parseInt(_0xa1b85b(0x226))/0x7*(parseInt(_0xa1b85b(0x1f5))/0x8)+parseInt(_0xa1b85b(0x227))/0x9;if(_0x502729===_0x588d8d)break;else _0x2ded69['push'](_0x2ded69['shift']());}catch(_0x182fde){_0x2ded69['push'](_0x2ded69['shift']());}}}(a13_0x2b71,0xd12c4));const a13_0x5e02c7=(function(){let _0x5b34e6=!![];return function(_0x32456e,_0x597192){const _0x574fc6=_0x5b34e6?function(){const _0x3c9df6=a13_0x202c;if(_0x597192){const _0x34b1b2=_0x597192[_0x3c9df6(0x1ec)](_0x32456e,arguments);return _0x597192=null,_0x34b1b2;}}:function(){};return _0x5b34e6=![],_0x574fc6;};}()),a13_0x3b32ff=a13_0x5e02c7(this,function(){const _0x134d3a=a13_0x202c,_0x2807a3={};_0x2807a3[_0x134d3a(0x206)]='(((.+)+)+)'+'+$';const _0x55efb3=_0x2807a3;return a13_0x3b32ff[_0x134d3a(0x22a)]()[_0x134d3a(0x201)]('(((.+)+)+)'+'+$')[_0x134d3a(0x22a)]()[_0x134d3a(0x232)+'r'](a13_0x3b32ff)[_0x134d3a(0x201)](_0x55efb3[_0x134d3a(0x206)]);});a13_0x3b32ff();function a13_0x2b71(){const _0x4ac32b=['kCtKR','folderPath','\x20not\x20provi','fileConten','test.java','dle\x20zip\x20fi','older','should\x20ret','h\x20not\x20prov','older\x20anal','mockImplem','ders','status','structured','file\x20conte','fileName','edValue','Sast','derSast','ile.zip','test-id','P\x20file','be\x20empty','File\x20conte','if\x20folder\x20','unstable_m','toHaveBeen','toContain','cessfully\x20','Called','analyzeFol','ovided','406fkUlKC','7379748TqLoRp','initiate\x20z','mockResolv','toString','zipFilePat','error','ip\x20analysi','ided','analysis','analysisId','SastContro','constructo','koZkQ','initiate\x20m','4828773EhGqDB','ysis','esSast','ailed','eSast','\x20gracefull','e.js','entation','code','3069148lPfvYe','2490PZIdqE','s\x20provided','urn\x20error\x20','not','mockReject','analyzeZip','INIT','le\x20errors','CalledWith','Invalid\x20ZI','ockModule','should\x20suc','wIpIL','ded','unt','../../serv','filePathCo','cks','ile\x20analys','ile2','toBe','8095zkrXde','apply','ntroller.j','filePaths','dle\x20empty\x20','analyzeFil','skippedFol','wWPis','Content','/path/to/f','73768EKyfJX','ller','1985690ZlZqQw','h\x20missing','Folder\x20pat','if\x20zip\x20pat','dle\x20errors','ices/analy','Analysis\x20f','should\x20han','ulti-file\x20','s/logger.j','search','sis.servic','TxCXd','../../util','1092962FzBnFI'];a13_0x2b71=function(){return _0x4ac32b;};return a13_0x2b71();}function a13_0x202c(_0x34bafe,_0x114d0f){_0x34bafe=_0x34bafe-0x1d3;const _0x4eeb73=a13_0x2b71();let _0x3b32ff=_0x4eeb73[_0x34bafe];return _0x3b32ff;}import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSecurity=jest['fn'](),mockAnalyzeMultipleFilesFromPaths=jest['fn'](),mockAnalyzeFolder=jest['fn'](),mockAnalyzeZipFile=jest['fn']();jest[a13_0x222b61(0x21f)+a13_0x222b61(0x1e0)](a13_0x222b61(0x1e5)+a13_0x222b61(0x1fc)+a13_0x222b61(0x202)+a13_0x222b61(0x23b),()=>({'AnalysisService':jest['fn']()[a13_0x222b61(0x210)+a13_0x222b61(0x1d3)](()=>({'analyzeFileSecurity':mockAnalyzeFileSecurity,'analyzeMultipleFilesFromPaths':mockAnalyzeMultipleFilesFromPaths,'analyzeFolder':mockAnalyzeFolder,'analyzeZipFile':mockAnalyzeZipFile}))})),jest[a13_0x222b61(0x21f)+a13_0x222b61(0x1e0)](a13_0x222b61(0x204)+a13_0x222b61(0x200)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const {SastController}=await import('../sast.co'+a13_0x222b61(0x1ed)+'s'),{AnalysisService}=await import(a13_0x222b61(0x1e5)+a13_0x222b61(0x1fc)+a13_0x222b61(0x202)+'e.js');describe(a13_0x222b61(0x231)+a13_0x222b61(0x1f6),()=>{const _0x39965b=a13_0x222b61,_0x52d091={};_0x52d091[_0x39965b(0x203)]=_0x39965b(0x1f4)+_0x39965b(0x219),_0x52d091[_0x39965b(0x233)]=_0x39965b(0x1db)+_0x39965b(0x217);const _0xb4f208=_0x52d091;let _0x3ae245,_0xd27c;beforeEach(()=>{const _0x1a70f3=_0x39965b;jest['clearAllMo'+_0x1a70f3(0x1e7)](),_0xd27c=new AnalysisService(),_0x3ae245=new SastController(_0xd27c);}),describe('analyzeFil'+_0x39965b(0x239),()=>{const _0x44bce7=_0x39965b,_0x2030b1={};_0x2030b1[_0x44bce7(0x1f2)]='Analysis\x20f'+_0x44bce7(0x238);const _0x367349=_0x2030b1;it(_0x44bce7(0x1e1)+'cessfully\x20'+'initiate\x20f'+_0x44bce7(0x1e8)+'is',async()=>{const _0x5df07a=_0x44bce7,_0xa6f5de={};_0xa6f5de[_0x5df07a(0x230)]='test-id',_0xa6f5de['status']=_0x5df07a(0x1dc);const _0x456d25=_0xa6f5de;mockAnalyzeFileSecurity[_0x5df07a(0x229)+_0x5df07a(0x216)](_0x456d25);const _0x1db524={};_0x1db524[_0x5df07a(0x209)+'t']=_0x5df07a(0x1d4),_0x1db524[_0x5df07a(0x215)]=_0x5df07a(0x20a);const _0x170dd3=await _0x3ae245[_0x5df07a(0x1f0)+_0x5df07a(0x239)](_0x1db524),_0x1c0c01={};_0x1c0c01[_0x5df07a(0x209)+'t']=_0x5df07a(0x1d4),_0x1c0c01[_0x5df07a(0x215)]=_0x5df07a(0x20a),expect(mockAnalyzeFileSecurity)[_0x5df07a(0x220)+'CalledWith'](_0x1c0c01),expect(_0x170dd3['structured'+'Content'][_0x5df07a(0x230)])['toBe'](_0x5df07a(0x21a));}),it(_0x44bce7(0x1fe)+_0x44bce7(0x1fb)+_0x44bce7(0x23a)+'y',async()=>{const _0x3594b5=_0x44bce7;mockAnalyzeFileSecurity['mockReject'+_0x3594b5(0x216)](new Error(_0x367349['wWPis']));const _0x3a33e2={};_0x3a33e2[_0x3594b5(0x209)+'t']=_0x3594b5(0x1d4),_0x3a33e2[_0x3594b5(0x215)]=_0x3594b5(0x20a);const _0x3ba522=await _0x3ae245['analyzeFil'+_0x3594b5(0x239)](_0x3a33e2);expect(_0x3ba522[_0x3594b5(0x213)+_0x3594b5(0x1f3)][_0x3594b5(0x22c)])[_0x3594b5(0x1ea)](_0x3594b5(0x1fd)+_0x3594b5(0x238));});}),it(_0x39965b(0x1fe)+_0x39965b(0x1ef)+_0x39965b(0x214)+'nt',async()=>{const _0x178cb1=_0x39965b;mockAnalyzeFileSecurity[_0x178cb1(0x1da)+'edValue'](new Error(_0x178cb1(0x21d)+'nt\x20cannot\x20'+_0x178cb1(0x21c)));const _0xb22cc5={};_0xb22cc5[_0x178cb1(0x209)+'t']='',_0xb22cc5[_0x178cb1(0x215)]=_0x178cb1(0x20a);const _0x30e4d4=await _0x3ae245[_0x178cb1(0x1f0)+_0x178cb1(0x239)](_0xb22cc5);expect(_0x30e4d4[_0x178cb1(0x213)+_0x178cb1(0x1f3)][_0x178cb1(0x22c)])[_0x178cb1(0x221)]('File\x20conte'+'nt\x20cannot\x20'+'be\x20empty');}),describe(_0x39965b(0x1f0)+_0x39965b(0x237),()=>{const _0xaede85=_0x39965b;it(_0xaede85(0x1e1)+_0xaede85(0x222)+_0xaede85(0x234)+_0xaede85(0x1ff)+_0xaede85(0x22f),async()=>{const _0x719383=_0xaede85,_0x2bcff5={};_0x2bcff5[_0x719383(0x230)]='test-id',_0x2bcff5[_0x719383(0x212)]=_0x719383(0x1dc);const _0x3e59cf=_0x2bcff5;mockAnalyzeMultipleFilesFromPaths[_0x719383(0x229)+_0x719383(0x216)](_0x3e59cf);const _0x2d20ce={};_0x2d20ce[_0x719383(0x1ee)]=['/path/to/f'+'ile1',_0x719383(0x1f4)+'ile2'];const _0x32be72=await _0x3ae245[_0x719383(0x1f0)+_0x719383(0x237)](_0x2d20ce);expect(mockAnalyzeMultipleFilesFromPaths)['toHaveBeen'+_0x719383(0x1de)]([_0x719383(0x1f4)+'ile1','/path/to/f'+_0x719383(0x1e9)],undefined),expect(_0x32be72[_0x719383(0x213)+'Content'][_0x719383(0x230)])[_0x719383(0x1ea)](_0x719383(0x21a)),expect(_0x32be72[_0x719383(0x213)+'Content'][_0x719383(0x1e6)+_0x719383(0x1e4)])[_0x719383(0x1ea)](0x2);}),it('should\x20ret'+_0xaede85(0x1d8)+'if\x20no\x20file'+_0xaede85(0x1d7),async()=>{const _0x460e22=_0xaede85,_0xcfa299={};_0xcfa299[_0x460e22(0x1ee)]=[];const _0x47e88e=await _0x3ae245[_0x460e22(0x1f0)+_0x460e22(0x237)](_0xcfa299);expect(_0x47e88e[_0x460e22(0x213)+_0x460e22(0x1f3)][_0x460e22(0x22c)])['toBe']('File\x20paths'+_0x460e22(0x208)+_0x460e22(0x1e3)),expect(mockAnalyzeMultipleFilesFromPaths)[_0x460e22(0x1d9)]['toHaveBeen'+_0x460e22(0x223)]();});}),describe(_0x39965b(0x224)+_0x39965b(0x218),()=>{const _0x45e7ad=_0x39965b,_0x4666dc={'mDXyD':function(_0x4b43df,_0x4cf6f0){return _0x4b43df(_0x4cf6f0);},'wIpIL':function(_0x53ea56,_0x2dc3f7){return _0x53ea56(_0x2dc3f7);}};it(_0x45e7ad(0x1e1)+_0x45e7ad(0x222)+'initiate\x20f'+_0x45e7ad(0x20f)+_0x45e7ad(0x236),async()=>{const _0x42f3c9=_0x45e7ad,_0x51530e={};_0x51530e['analysisId']=_0x42f3c9(0x21a),_0x51530e['status']=_0x42f3c9(0x1dc),_0x51530e[_0x42f3c9(0x1f1)+_0x42f3c9(0x211)]=[];const _0x224a08=_0x51530e;mockAnalyzeFolder[_0x42f3c9(0x229)+_0x42f3c9(0x216)](_0x224a08);const _0x3b966a={};_0x3b966a[_0x42f3c9(0x207)]=_0x42f3c9(0x1f4)+_0x42f3c9(0x20c);const _0x1fb00c=await _0x3ae245['analyzeFol'+'derSast'](_0x3b966a);expect(mockAnalyzeFolder)['toHaveBeen'+_0x42f3c9(0x1de)]('/path/to/f'+_0x42f3c9(0x20c),undefined),expect(_0x1fb00c['structured'+_0x42f3c9(0x1f3)][_0x42f3c9(0x230)])[_0x42f3c9(0x1ea)]('test-id');}),it(_0x45e7ad(0x20d)+_0x45e7ad(0x1d8)+_0x45e7ad(0x21e)+'path\x20missi'+'ng',async()=>{const _0x4521cf=_0x45e7ad,_0x3c2f7d={};_0x3c2f7d[_0x4521cf(0x207)]='';const _0x342439=await _0x3ae245[_0x4521cf(0x224)+_0x4521cf(0x218)](_0x3c2f7d);_0x4666dc['mDXyD'](expect,_0x342439[_0x4521cf(0x213)+'Content'][_0x4521cf(0x22c)])[_0x4521cf(0x1ea)](_0x4521cf(0x1f9)+_0x4521cf(0x20e)+_0x4521cf(0x22e)),_0x4666dc[_0x4521cf(0x1e2)](expect,mockAnalyzeFolder)[_0x4521cf(0x1d9)][_0x4521cf(0x220)+'Called']();});}),describe(_0xb4f208[_0x39965b(0x233)],()=>{const _0xd98a71=_0x39965b;it(_0xd98a71(0x1e1)+_0xd98a71(0x222)+_0xd98a71(0x228)+_0xd98a71(0x22d)+'s',async()=>{const _0x415da9=_0xd98a71,_0x123bae={};_0x123bae[_0x415da9(0x230)]=_0x415da9(0x21a),_0x123bae[_0x415da9(0x212)]=_0x415da9(0x1dc);const _0x296fac=_0x123bae;mockAnalyzeZipFile[_0x415da9(0x229)+_0x415da9(0x216)](_0x296fac);const _0x1e9113={};_0x1e9113[_0x415da9(0x22b)+'h']=_0xb4f208[_0x415da9(0x203)];const _0x24667a=await _0x3ae245[_0x415da9(0x1db)+'Sast'](_0x1e9113);expect(mockAnalyzeZipFile)[_0x415da9(0x220)+'CalledWith'](_0x415da9(0x1f4)+'ile.zip',undefined),expect(_0x24667a['structured'+_0x415da9(0x1f3)][_0x415da9(0x230)])['toBe']('test-id');}),it(_0xd98a71(0x20d)+_0xd98a71(0x1d8)+_0xd98a71(0x1fa)+_0xd98a71(0x1f8),async()=>{const _0x5ab082=_0xd98a71,_0x65a3b7={};_0x65a3b7['zipFilePat'+'h']='';const _0x269047=await _0x3ae245[_0x5ab082(0x1db)+'Sast'](_0x65a3b7);expect(_0x269047[_0x5ab082(0x213)+_0x5ab082(0x1f3)][_0x5ab082(0x22c)])[_0x5ab082(0x1ea)]('ZIP\x20file\x20p'+'ath\x20not\x20pr'+_0x5ab082(0x225)),expect(mockAnalyzeZipFile)['not'][_0x5ab082(0x220)+'Called']();}),it(_0xd98a71(0x1fe)+_0xd98a71(0x20b)+_0xd98a71(0x1dd),async()=>{const _0xe505d4=_0xd98a71;mockAnalyzeZipFile[_0xe505d4(0x1da)+_0xe505d4(0x216)](new Error(_0xe505d4(0x1df)+_0xe505d4(0x21b)));const _0x45895a={};_0x45895a['zipFilePat'+'h']='corrupt.zi'+'p';const _0x469718=await _0x3ae245[_0xe505d4(0x1db)+_0xe505d4(0x217)](_0x45895a);expect(_0x469718['structured'+_0xe505d4(0x1f3)][_0xe505d4(0x22c)])[_0xe505d4(0x221)](_0xe505d4(0x1df)+_0xe505d4(0x21b));});});});
@@ -1 +1 @@
1
- const a14_0x205286=a14_0x36fb;(function(_0x1c1b3e,_0x559b19){const _0x59e8e4=a14_0x36fb,_0x120cf7=_0x1c1b3e();while(!![]){try{const _0x336b27=-parseInt(_0x59e8e4(0x15e))/0x1*(parseInt(_0x59e8e4(0x1a5))/0x2)+parseInt(_0x59e8e4(0x173))/0x3+parseInt(_0x59e8e4(0x170))/0x4+parseInt(_0x59e8e4(0x19e))/0x5+parseInt(_0x59e8e4(0x196))/0x6+parseInt(_0x59e8e4(0x18e))/0x7*(parseInt(_0x59e8e4(0x161))/0x8)+-parseInt(_0x59e8e4(0x1ad))/0x9*(parseInt(_0x59e8e4(0x162))/0xa);if(_0x336b27===_0x559b19)break;else _0x120cf7['push'](_0x120cf7['shift']());}catch(_0x502683){_0x120cf7['push'](_0x120cf7['shift']());}}}(a14_0xcef6,0x802a6));const a14_0x148ecc=(function(){let _0x231714=!![];return function(_0x4f21ca,_0x4c61d3){const _0x21eb1c=_0x231714?function(){if(_0x4c61d3){const _0x26cb40=_0x4c61d3['apply'](_0x4f21ca,arguments);return _0x4c61d3=null,_0x26cb40;}}:function(){};return _0x231714=![],_0x21eb1c;};}()),a14_0x56ae9a=a14_0x148ecc(this,function(){const _0x3d151b=a14_0x36fb;return a14_0x56ae9a[_0x3d151b(0x188)]()['search'](_0x3d151b(0x1a0)+'+$')['toString']()['constructo'+'r'](a14_0x56ae9a)[_0x3d151b(0x157)](_0x3d151b(0x1a0)+'+$');});a14_0x56ae9a();function a14_0xcef6(){const _0x33fceb=['urn\x20error\x20','edValue','path\x20missi','ockModule','keTLK','if\x20no\x20file','../../serv','2113880QnirIv','derSca','(((.+)+)+)','folderPath','status','th\x20missing','ices/analy','28978rRhoFC','initiate\x20f','CalledWith','Content','toHaveBeen','ZIP\x20file\x20p','ath\x20not\x20pr','filePath','220491VdJqMG','xxKTN','File\x20paths','AetmA','cks','ile\x20analys','should\x20ret','analyzeFil','toBe','ScaControl','Sca','search','ded','/path/to/p','sis.servic','mockResolv','s/logger.j','Called','3SQhduX','2.json','HeuHs','304400BLEbzT','850OEFlMw','unstable_m','skippedFol','/path/to/f','ders','analysisId','filePaths','h\x20not\x20prov','esSca','test-id','ip\x20analysi','eSca','\x20not\x20provi','if\x20folder\x20','2163648BnRScK','INIT','FrHlG','2339109WtzUUa','e.js','analyzeFol','1.json','h\x20missing','troller.js','mockImplem','../../util','analyzeZip','bPuKb','older\x20anal','s\x20provided','older','analysisTy','initiate\x20m','structured','entation','error','cUBFh','SCA','ovided','toString','if\x20zip\x20pat','not','ulti-file\x20','ackage.jso','ysis','28fkkCux','should\x20suc','cessfully\x20','not\x20provid','Folder\x20pat','ile.zip','if\x20file\x20pa','ler','4531542RqpgAG'];a14_0xcef6=function(){return _0x33fceb;};return a14_0xcef6();}import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSca=jest['fn'](),mockAnalyzeFilesSca=jest['fn'](),mockAnalyzeFolderSca=jest['fn'](),mockAnalyzeZipSca=jest['fn']();jest[a14_0x205286(0x163)+'ockModule'](a14_0x205286(0x19d)+a14_0x205286(0x1a4)+a14_0x205286(0x15a)+'e.js',()=>({'AnalysisService':jest['fn']()[a14_0x205286(0x179)+a14_0x205286(0x183)](()=>({'analyzeFileSca':mockAnalyzeFileSca,'analyzeFilesSca':mockAnalyzeFilesSca,'analyzeFolderSca':mockAnalyzeFolderSca,'analyzeZipSca':mockAnalyzeZipSca}))})),jest[a14_0x205286(0x163)+a14_0x205286(0x19a)](a14_0x205286(0x17a)+a14_0x205286(0x15c)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {ScaController}=await import('../sca.con'+a14_0x205286(0x178)),{AnalysisService}=await import(a14_0x205286(0x19d)+a14_0x205286(0x1a4)+'sis.servic'+a14_0x205286(0x174));function a14_0x36fb(_0x46f54b,_0x315ee2){_0x46f54b=_0x46f54b-0x14d;const _0x37fc4b=a14_0xcef6();let _0x56ae9a=_0x37fc4b[_0x46f54b];return _0x56ae9a;}describe(a14_0x205286(0x155)+a14_0x205286(0x195),()=>{const _0x209c2a=a14_0x205286,_0x131159={'cUBFh':_0x209c2a(0x159)+'1.json','keTLK':function(_0x551286,_0x3d4aee){return _0x551286(_0x3d4aee);},'HeuHs':function(_0xe9ff54,_0x4a9bdb,_0x50b3d3){return _0xe9ff54(_0x4a9bdb,_0x50b3d3);}};let _0x59a75b,_0x4cafac;beforeEach(()=>{const _0x484a97=_0x209c2a;jest['clearAllMo'+_0x484a97(0x150)](),_0x4cafac=new AnalysisService(),_0x59a75b=new ScaController(_0x4cafac);}),describe('analyzeFil'+'eSca',()=>{const _0x49acee=_0x209c2a,_0x272f71={};_0x272f71[_0x49acee(0x172)]=_0x49acee(0x16b);const _0xd8e985=_0x272f71;it(_0x49acee(0x18f)+'cessfully\x20'+_0x49acee(0x1a6)+_0x49acee(0x151)+'is',async()=>{const _0x821192=_0x49acee,_0x44f476={};_0x44f476[_0x821192(0x167)]=_0x821192(0x16b),_0x44f476[_0x821192(0x1a2)]=_0x821192(0x171),_0x44f476[_0x821192(0x180)+'pe']=_0x821192(0x186);const _0x3f393e=_0x44f476;mockAnalyzeFileSca[_0x821192(0x15b)+_0x821192(0x198)](_0x3f393e);const _0x16020e={};_0x16020e[_0x821192(0x1ac)]='/path/to/p'+_0x821192(0x18c)+'n';const _0x7bee97=await _0x59a75b[_0x821192(0x153)+'eSca'](_0x16020e);expect(mockAnalyzeFileSca)['toHaveBeen'+_0x821192(0x1a7)]('/path/to/p'+_0x821192(0x18c)+'n',undefined),expect(_0x7bee97[_0x821192(0x182)+_0x821192(0x1a8)][_0x821192(0x167)])[_0x821192(0x154)](_0xd8e985[_0x821192(0x172)]);}),it(_0x49acee(0x152)+_0x49acee(0x197)+_0x49acee(0x194)+_0x49acee(0x1a3),async()=>{const _0x4ddf30=_0x49acee,_0x50ee70={};_0x50ee70[_0x4ddf30(0x1ac)]='';const _0x4d47f6=await _0x59a75b['analyzeFil'+_0x4ddf30(0x16d)](_0x50ee70);expect(_0x4d47f6['structured'+'Content']['error'])[_0x4ddf30(0x154)]('File\x20path\x20'+_0x4ddf30(0x191)+'ed'),expect(mockAnalyzeFileSca)[_0x4ddf30(0x18a)][_0x4ddf30(0x1a9)+_0x4ddf30(0x15d)]();});}),describe(_0x209c2a(0x153)+_0x209c2a(0x16a),()=>{const _0x5cf0f2=_0x209c2a,_0x389474={};_0x389474[_0x5cf0f2(0x17c)]=_0x131159[_0x5cf0f2(0x185)];const _0x66627c=_0x389474;it(_0x5cf0f2(0x18f)+_0x5cf0f2(0x190)+_0x5cf0f2(0x181)+_0x5cf0f2(0x18b)+'analysis',async()=>{const _0x54afa4=_0x5cf0f2,_0x3ae8c3={};_0x3ae8c3[_0x54afa4(0x167)]='test-id',_0x3ae8c3[_0x54afa4(0x1a2)]='INIT',_0x3ae8c3[_0x54afa4(0x180)+'pe']='SCA';const _0x10cdba=_0x3ae8c3;mockAnalyzeFilesSca['mockResolv'+_0x54afa4(0x198)](_0x10cdba);const _0x250199={};_0x250199['filePaths']=[_0x54afa4(0x159)+_0x54afa4(0x176),'/path/to/p'+_0x54afa4(0x15f)];const _0x54b48a=await _0x59a75b[_0x54afa4(0x153)+_0x54afa4(0x16a)](_0x250199);expect(mockAnalyzeFilesSca)[_0x54afa4(0x1a9)+_0x54afa4(0x1a7)]([_0x66627c['bPuKb'],_0x54afa4(0x159)+_0x54afa4(0x15f)],undefined),expect(_0x54b48a[_0x54afa4(0x182)+_0x54afa4(0x1a8)][_0x54afa4(0x167)])['toBe'](_0x54afa4(0x16b));}),it(_0x5cf0f2(0x152)+'urn\x20error\x20'+_0x5cf0f2(0x19c)+_0x5cf0f2(0x17e),async()=>{const _0x4ad993=_0x5cf0f2,_0x4fb664={};_0x4fb664[_0x4ad993(0x168)]=[];const _0x2334be=await _0x59a75b[_0x4ad993(0x153)+'esSca'](_0x4fb664);expect(_0x2334be['structured'+_0x4ad993(0x1a8)][_0x4ad993(0x184)])[_0x4ad993(0x154)](_0x4ad993(0x14e)+_0x4ad993(0x16e)+_0x4ad993(0x158)),expect(mockAnalyzeFilesSca)[_0x4ad993(0x18a)][_0x4ad993(0x1a9)+'Called']();});}),_0x131159[_0x209c2a(0x160)](describe,_0x209c2a(0x175)+_0x209c2a(0x19f),()=>{const _0x104bfe=_0x209c2a,_0xd564a5={};_0xd564a5[_0x104bfe(0x14d)]=_0x104bfe(0x171);const _0x369d43=_0xd564a5;it('should\x20suc'+_0x104bfe(0x190)+'initiate\x20f'+_0x104bfe(0x17d)+_0x104bfe(0x18d),async()=>{const _0x34cba1=_0x104bfe,_0x12e1f6={};_0x12e1f6[_0x34cba1(0x167)]=_0x34cba1(0x16b),_0x12e1f6[_0x34cba1(0x1a2)]=_0x369d43[_0x34cba1(0x14d)],_0x12e1f6['analysisTy'+'pe']=_0x34cba1(0x186),_0x12e1f6[_0x34cba1(0x164)+_0x34cba1(0x166)]=[];const _0x459472=_0x12e1f6;mockAnalyzeFolderSca[_0x34cba1(0x15b)+'edValue'](_0x459472);const _0x32280e={};_0x32280e[_0x34cba1(0x1a1)]=_0x34cba1(0x165)+_0x34cba1(0x17f);const _0x49edc7=await _0x59a75b[_0x34cba1(0x175)+_0x34cba1(0x19f)](_0x32280e);expect(mockAnalyzeFolderSca)[_0x34cba1(0x1a9)+'CalledWith']('/path/to/f'+_0x34cba1(0x17f),undefined),expect(_0x49edc7[_0x34cba1(0x182)+'Content'][_0x34cba1(0x167)])[_0x34cba1(0x154)]('test-id');}),it(_0x104bfe(0x152)+'urn\x20error\x20'+_0x104bfe(0x16f)+_0x104bfe(0x199)+'ng',async()=>{const _0x28ffd5=_0x104bfe,_0x3cdaa0={};_0x3cdaa0[_0x28ffd5(0x1a1)]='';const _0x533b0f=await _0x59a75b[_0x28ffd5(0x175)+_0x28ffd5(0x19f)](_0x3cdaa0);expect(_0x533b0f[_0x28ffd5(0x182)+_0x28ffd5(0x1a8)]['error'])[_0x28ffd5(0x154)](_0x28ffd5(0x192)+_0x28ffd5(0x169)+'ided'),expect(mockAnalyzeFolderSca)['not']['toHaveBeen'+_0x28ffd5(0x15d)]();});}),describe('analyzeZip'+_0x209c2a(0x156),()=>{const _0x538afc=_0x209c2a,_0x83b379={};_0x83b379[_0x538afc(0x14f)]=_0x538afc(0x171);const _0x1f173c=_0x83b379;it('should\x20suc'+_0x538afc(0x190)+'initiate\x20z'+_0x538afc(0x16c)+'s',async()=>{const _0x1df67f=_0x538afc,_0x49c0b6={};_0x49c0b6['analysisId']=_0x1df67f(0x16b),_0x49c0b6[_0x1df67f(0x1a2)]=_0x1f173c['AetmA'],_0x49c0b6[_0x1df67f(0x180)+'pe']=_0x1df67f(0x186);const _0x52bf51=_0x49c0b6;mockAnalyzeZipSca[_0x1df67f(0x15b)+'edValue'](_0x52bf51);const _0x59b0b9={};_0x59b0b9['zipFilePat'+'h']=_0x1df67f(0x165)+_0x1df67f(0x193);const _0x461b3d=await _0x59a75b[_0x1df67f(0x17b)+_0x1df67f(0x156)](_0x59b0b9);expect(mockAnalyzeZipSca)[_0x1df67f(0x1a9)+_0x1df67f(0x1a7)](_0x1df67f(0x165)+_0x1df67f(0x193),undefined),expect(_0x461b3d[_0x1df67f(0x182)+_0x1df67f(0x1a8)]['analysisId'])[_0x1df67f(0x154)](_0x1df67f(0x16b));}),it('should\x20ret'+_0x538afc(0x197)+_0x538afc(0x189)+_0x538afc(0x177),async()=>{const _0x3010f2=_0x538afc,_0x555621={};_0x555621['zipFilePat'+'h']='';const _0x263c80=await _0x59a75b[_0x3010f2(0x17b)+_0x3010f2(0x156)](_0x555621);_0x131159[_0x3010f2(0x19b)](expect,_0x263c80[_0x3010f2(0x182)+'Content'][_0x3010f2(0x184)])[_0x3010f2(0x154)](_0x3010f2(0x1aa)+_0x3010f2(0x1ab)+_0x3010f2(0x187)),expect(mockAnalyzeZipSca)[_0x3010f2(0x18a)][_0x3010f2(0x1a9)+_0x3010f2(0x15d)]();});});});
1
+ const a14_0x4d5002=a14_0x5821;(function(_0x247002,_0x1427be){const _0x4bd15e=a14_0x5821,_0x407cdd=_0x247002();while(!![]){try{const _0x299eba=-parseInt(_0x4bd15e(0x17c))/0x1+parseInt(_0x4bd15e(0x18a))/0x2*(parseInt(_0x4bd15e(0x1a8))/0x3)+parseInt(_0x4bd15e(0x181))/0x4+parseInt(_0x4bd15e(0x191))/0x5*(-parseInt(_0x4bd15e(0x1a2))/0x6)+parseInt(_0x4bd15e(0x19d))/0x7+-parseInt(_0x4bd15e(0x1ae))/0x8+-parseInt(_0x4bd15e(0x189))/0x9*(-parseInt(_0x4bd15e(0x1b5))/0xa);if(_0x299eba===_0x1427be)break;else _0x407cdd['push'](_0x407cdd['shift']());}catch(_0x4ca520){_0x407cdd['push'](_0x407cdd['shift']());}}}(a14_0x55e6,0x83362));const a14_0x39df18=(function(){let _0x1af6d8=!![];return function(_0x3329d3,_0x172de0){const _0x1ca4cb=_0x1af6d8?function(){const _0x7b269d=a14_0x5821;if(_0x172de0){const _0x3db581=_0x172de0[_0x7b269d(0x179)](_0x3329d3,arguments);return _0x172de0=null,_0x3db581;}}:function(){};return _0x1af6d8=![],_0x1ca4cb;};}()),a14_0x518098=a14_0x39df18(this,function(){const _0x57813d=a14_0x5821;return a14_0x518098[_0x57813d(0x166)]()['search']('(((.+)+)+)'+'+$')[_0x57813d(0x166)]()['constructo'+'r'](a14_0x518098)[_0x57813d(0x1a0)](_0x57813d(0x197)+'+$');});a14_0x518098();function a14_0x55e6(){const _0x2b75c5=['2.json','analysisId','edValue','esSca','9vdMlrd','2VOYPxC','if\x20no\x20file','toBe','cks','not\x20provid','RhhPm','ockModule','4970qvnzRY','filePath','ided','if\x20folder\x20','../../serv','skippedFol','(((.+)+)+)','/path/to/p','SCA','sis.servic','ANLnJ','ovided','2653868ZJWfTP','mockResolv','clearAllMo','search','unstable_m','2682ZovujH','ders','urn\x20error\x20','h\x20not\x20prov','should\x20suc','../../util','451191RKgXbL','derSca','ile\x20analys','UXFIK','rCKoW','s/logger.j','7632120feblRp','ile.zip','initiate\x20m','ackage.jso','e.js','analyzeZip','troller.js','7746370lyujIs','\x20not\x20provi','folderPath','should\x20ret','initiate\x20f','toHaveBeen','INIT','zipFilePat','XPDdD','eSca','toString','ices/analy','if\x20zip\x20pat','analyzeFil','cessfully\x20','1.json','ysis','h\x20missing','CalledWith','Sca','path\x20missi','Content','status','test-id','initiate\x20z','Folder\x20pat','analysisTy','not','ulti-file\x20','apply','structured','analyzeFol','402965Siwllo','wXiuX','../sca.con','entation','error','4138328OpzOxs','/path/to/f','older\x20anal','Called'];a14_0x55e6=function(){return _0x2b75c5;};return a14_0x55e6();}function a14_0x5821(_0x150291,_0x556018){_0x150291=_0x150291-0x161;const _0x165057=a14_0x55e6();let _0x518098=_0x165057[_0x150291];return _0x518098;}import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSca=jest['fn'](),mockAnalyzeFilesSca=jest['fn'](),mockAnalyzeFolderSca=jest['fn'](),mockAnalyzeZipSca=jest['fn']();jest[a14_0x4d5002(0x1a1)+a14_0x4d5002(0x190)](a14_0x4d5002(0x195)+a14_0x4d5002(0x167)+a14_0x4d5002(0x19a)+a14_0x4d5002(0x1b2),()=>({'AnalysisService':jest['fn']()['mockImplem'+a14_0x4d5002(0x17f)](()=>({'analyzeFileSca':mockAnalyzeFileSca,'analyzeFilesSca':mockAnalyzeFilesSca,'analyzeFolderSca':mockAnalyzeFolderSca,'analyzeZipSca':mockAnalyzeZipSca}))})),jest[a14_0x4d5002(0x1a1)+a14_0x4d5002(0x190)](a14_0x4d5002(0x1a7)+a14_0x4d5002(0x1ad)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {ScaController}=await import(a14_0x4d5002(0x17e)+a14_0x4d5002(0x1b4)),{AnalysisService}=await import(a14_0x4d5002(0x195)+a14_0x4d5002(0x167)+a14_0x4d5002(0x19a)+a14_0x4d5002(0x1b2));describe('ScaControl'+'ler',()=>{const _0x10ef25=a14_0x4d5002,_0x2f4d86={'XPDdD':'/path/to/p'+'ackage.jso'+'n','ANLnJ':function(_0x2dc103,_0x12472d){return _0x2dc103(_0x12472d);},'LlOpr':function(_0x4f9edc,_0x5a7848){return _0x4f9edc(_0x5a7848);},'wXiuX':function(_0x27b165,_0x1bf1ba){return _0x27b165(_0x1bf1ba);},'UXFIK':_0x10ef25(0x175)+_0x10ef25(0x1a5)+_0x10ef25(0x193)};let _0x57a791,_0x273ef6;beforeEach(()=>{const _0x5aa577=_0x10ef25;jest[_0x5aa577(0x19f)+_0x5aa577(0x18d)](),_0x273ef6=new AnalysisService(),_0x57a791=new ScaController(_0x273ef6);}),describe(_0x10ef25(0x169)+'eSca',()=>{const _0x2a0a21=_0x10ef25;it(_0x2a0a21(0x1a6)+_0x2a0a21(0x16a)+_0x2a0a21(0x1b9)+_0x2a0a21(0x1aa)+'is',async()=>{const _0x2c84b6=_0x2a0a21,_0x195ee3={};_0x195ee3[_0x2c84b6(0x186)]='test-id',_0x195ee3[_0x2c84b6(0x172)]=_0x2c84b6(0x162),_0x195ee3['analysisTy'+'pe']='SCA';const _0x250427=_0x195ee3;mockAnalyzeFileSca[_0x2c84b6(0x19e)+_0x2c84b6(0x187)](_0x250427);const _0x33ce4e={};_0x33ce4e['filePath']=_0x2c84b6(0x198)+_0x2c84b6(0x1b1)+'n';const _0xc59c06=await _0x57a791[_0x2c84b6(0x169)+_0x2c84b6(0x165)](_0x33ce4e);expect(mockAnalyzeFileSca)[_0x2c84b6(0x161)+_0x2c84b6(0x16e)](_0x2f4d86[_0x2c84b6(0x164)],undefined),expect(_0xc59c06[_0x2c84b6(0x17a)+_0x2c84b6(0x171)][_0x2c84b6(0x186)])[_0x2c84b6(0x18c)]('test-id');}),it(_0x2a0a21(0x1b8)+_0x2a0a21(0x1a4)+'if\x20file\x20pa'+'th\x20missing',async()=>{const _0xbf3c5f=_0x2a0a21,_0x50f699={};_0x50f699[_0xbf3c5f(0x192)]='';const _0x4a5a6e=await _0x57a791[_0xbf3c5f(0x169)+_0xbf3c5f(0x165)](_0x50f699);_0x2f4d86[_0xbf3c5f(0x19b)](expect,_0x4a5a6e[_0xbf3c5f(0x17a)+'Content']['error'])[_0xbf3c5f(0x18c)]('File\x20path\x20'+_0xbf3c5f(0x18e)+'ed'),expect(mockAnalyzeFileSca)['not']['toHaveBeen'+_0xbf3c5f(0x184)]();});}),describe(_0x10ef25(0x169)+_0x10ef25(0x188),()=>{const _0x4f22ce=_0x10ef25,_0x2b7486={'RhhPm':function(_0x3a8de6,_0xf284c9){return _0x2f4d86['LlOpr'](_0x3a8de6,_0xf284c9);},'rCKoW':function(_0x5c28b7,_0x372df8){const _0x59e16a=a14_0x5821;return _0x2f4d86[_0x59e16a(0x19b)](_0x5c28b7,_0x372df8);}};it(_0x4f22ce(0x1a6)+_0x4f22ce(0x16a)+_0x4f22ce(0x1b0)+_0x4f22ce(0x178)+'analysis',async()=>{const _0x4c431b=_0x4f22ce,_0x192890={};_0x192890[_0x4c431b(0x186)]='test-id',_0x192890[_0x4c431b(0x172)]=_0x4c431b(0x162),_0x192890[_0x4c431b(0x176)+'pe']=_0x4c431b(0x199);const _0x286efa=_0x192890;mockAnalyzeFilesSca['mockResolv'+'edValue'](_0x286efa);const _0x1b598e={};_0x1b598e['filePaths']=[_0x4c431b(0x198)+'1.json',_0x4c431b(0x198)+_0x4c431b(0x185)];const _0x2f86fb=await _0x57a791['analyzeFil'+_0x4c431b(0x188)](_0x1b598e);_0x2b7486['RhhPm'](expect,mockAnalyzeFilesSca)[_0x4c431b(0x161)+_0x4c431b(0x16e)]([_0x4c431b(0x198)+_0x4c431b(0x16b),_0x4c431b(0x198)+_0x4c431b(0x185)],undefined),_0x2b7486[_0x4c431b(0x18f)](expect,_0x2f86fb[_0x4c431b(0x17a)+_0x4c431b(0x171)]['analysisId'])[_0x4c431b(0x18c)](_0x4c431b(0x173));}),it(_0x4f22ce(0x1b8)+_0x4f22ce(0x1a4)+_0x4f22ce(0x18b)+'s\x20provided',async()=>{const _0x1e96af=_0x4f22ce,_0x20aeb0={};_0x20aeb0['filePaths']=[];const _0x1829cc=await _0x57a791[_0x1e96af(0x169)+_0x1e96af(0x188)](_0x20aeb0);expect(_0x1829cc[_0x1e96af(0x17a)+_0x1e96af(0x171)]['error'])[_0x1e96af(0x18c)]('File\x20paths'+_0x1e96af(0x1b6)+'ded'),_0x2b7486[_0x1e96af(0x1ac)](expect,mockAnalyzeFilesSca)[_0x1e96af(0x177)][_0x1e96af(0x161)+_0x1e96af(0x184)]();});}),describe(_0x10ef25(0x17b)+_0x10ef25(0x1a9),()=>{const _0x18e511=_0x10ef25;it(_0x18e511(0x1a6)+'cessfully\x20'+_0x18e511(0x1b9)+_0x18e511(0x183)+_0x18e511(0x16c),async()=>{const _0x39c288=_0x18e511,_0x431f41={};_0x431f41[_0x39c288(0x186)]=_0x39c288(0x173),_0x431f41[_0x39c288(0x172)]=_0x39c288(0x162),_0x431f41['analysisTy'+'pe']=_0x39c288(0x199),_0x431f41[_0x39c288(0x196)+_0x39c288(0x1a3)]=[];const _0x5c3be0=_0x431f41;mockAnalyzeFolderSca['mockResolv'+_0x39c288(0x187)](_0x5c3be0);const _0x220b02={};_0x220b02[_0x39c288(0x1b7)]=_0x39c288(0x182)+'older';const _0x2dcc0d=await _0x57a791[_0x39c288(0x17b)+_0x39c288(0x1a9)](_0x220b02);expect(mockAnalyzeFolderSca)['toHaveBeen'+'CalledWith'](_0x39c288(0x182)+'older',undefined),expect(_0x2dcc0d[_0x39c288(0x17a)+_0x39c288(0x171)][_0x39c288(0x186)])[_0x39c288(0x18c)](_0x39c288(0x173));}),it(_0x18e511(0x1b8)+_0x18e511(0x1a4)+_0x18e511(0x194)+_0x18e511(0x170)+'ng',async()=>{const _0x49f7f3=_0x18e511,_0x3a51ac={};_0x3a51ac[_0x49f7f3(0x1b7)]='';const _0x5b2f7d=await _0x57a791['analyzeFol'+_0x49f7f3(0x1a9)](_0x3a51ac);_0x2f4d86[_0x49f7f3(0x17d)](expect,_0x5b2f7d['structured'+'Content'][_0x49f7f3(0x180)])[_0x49f7f3(0x18c)](_0x2f4d86[_0x49f7f3(0x1ab)]),expect(mockAnalyzeFolderSca)[_0x49f7f3(0x177)]['toHaveBeen'+'Called']();});}),describe('analyzeZip'+'Sca',()=>{const _0x1823ce=_0x10ef25;it(_0x1823ce(0x1a6)+_0x1823ce(0x16a)+_0x1823ce(0x174)+'ip\x20analysi'+'s',async()=>{const _0x7cbb25=_0x1823ce,_0x49f539={};_0x49f539['analysisId']=_0x7cbb25(0x173),_0x49f539['status']=_0x7cbb25(0x162),_0x49f539[_0x7cbb25(0x176)+'pe']=_0x7cbb25(0x199);const _0x23f19b=_0x49f539;mockAnalyzeZipSca['mockResolv'+'edValue'](_0x23f19b);const _0x4eedb2={};_0x4eedb2[_0x7cbb25(0x163)+'h']=_0x7cbb25(0x182)+_0x7cbb25(0x1af);const _0x536648=await _0x57a791[_0x7cbb25(0x1b3)+_0x7cbb25(0x16f)](_0x4eedb2);expect(mockAnalyzeZipSca)[_0x7cbb25(0x161)+_0x7cbb25(0x16e)](_0x7cbb25(0x182)+'ile.zip',undefined),expect(_0x536648[_0x7cbb25(0x17a)+_0x7cbb25(0x171)][_0x7cbb25(0x186)])[_0x7cbb25(0x18c)](_0x7cbb25(0x173));}),it(_0x1823ce(0x1b8)+_0x1823ce(0x1a4)+_0x1823ce(0x168)+_0x1823ce(0x16d),async()=>{const _0x319cac=_0x1823ce,_0x162a75={};_0x162a75[_0x319cac(0x163)+'h']='';const _0x352cee=await _0x57a791[_0x319cac(0x1b3)+'Sca'](_0x162a75);_0x2f4d86['wXiuX'](expect,_0x352cee[_0x319cac(0x17a)+_0x319cac(0x171)][_0x319cac(0x180)])[_0x319cac(0x18c)]('ZIP\x20file\x20p'+'ath\x20not\x20pr'+_0x319cac(0x19c)),expect(mockAnalyzeZipSca)[_0x319cac(0x177)]['toHaveBeen'+_0x319cac(0x184)]();});});});
@@ -1 +1 @@
1
- const a15_0x2748d0=a15_0x14e3;function a15_0x14e3(_0x2748da,_0x2f54ef){_0x2748da=_0x2748da-0x118;const _0x96405c=a15_0x1dca();let _0x46674b=_0x96405c[_0x2748da];return _0x46674b;}function a15_0x1dca(){const _0x3d8b0c=['toContain','5YrtJpQ','../../util','toBe','2905960MOowzS','on\x20failed','KADJq','ode','CalledWith','y.controll','s/logger.j','SecurityCo','(((.+)+)+)','35pOHLRc','\x20failed','entation','../../serv','search','cureCode','secure\x20cod','ockModule','fileConten','diff','mockImplem','e.js','structured','cks','SBvFy','8535888kjUYtS','code','94391MFqrMg','ices/analy','rvice\x20fail','er.js','../securit','732UKDLmA','Brief','test-id','sis.servic','constructo','clearAllMo','should\x20han','1097532fCbmRk','brief','apply','Secure\x20cod','\x20code\x20and\x20','toString','12764fvgryJ','e\x20generati','Content','urn\x20secure','192Weggpr','should\x20ret','1611AhOqoL','error','Generation','mockResolv','generateSe','analysisId','secureCode','ntroller','45520FLBFlT','1684376CfyJiS','mockReject','edValue'];a15_0x1dca=function(){return _0x3d8b0c;};return a15_0x1dca();}(function(_0x213844,_0x1d5a65){const _0x371c87=a15_0x14e3,_0x5268c5=_0x213844();while(!![]){try{const _0x1db274=parseInt(_0x371c87(0x121))/0x1*(-parseInt(_0x371c87(0x11d))/0x2)+parseInt(_0x371c87(0x159))/0x3+parseInt(_0x371c87(0x133))/0x4*(parseInt(_0x371c87(0x130))/0x5)+-parseInt(_0x371c87(0x14b))/0x6+-parseInt(_0x371c87(0x13c))/0x7*(-parseInt(_0x371c87(0x12c))/0x8)+parseInt(_0x371c87(0x123))/0x9*(parseInt(_0x371c87(0x12b))/0xa)+-parseInt(_0x371c87(0x14d))/0xb*(-parseInt(_0x371c87(0x152))/0xc);if(_0x1db274===_0x1d5a65)break;else _0x5268c5['push'](_0x5268c5['shift']());}catch(_0x7125d){_0x5268c5['push'](_0x5268c5['shift']());}}}(a15_0x1dca,0xcbefe));const a15_0x388910=(function(){let _0x4b25e1=!![];return function(_0x5cbc8d,_0x572608){const _0x4dafc7=_0x4b25e1?function(){const _0x24d154=a15_0x14e3;if(_0x572608){const _0x40bded=_0x572608[_0x24d154(0x119)](_0x5cbc8d,arguments);return _0x572608=null,_0x40bded;}}:function(){};return _0x4b25e1=![],_0x4dafc7;};}()),a15_0x46674b=a15_0x388910(this,function(){const _0x395532=a15_0x14e3;return a15_0x46674b[_0x395532(0x11c)]()[_0x395532(0x140)]('(((.+)+)+)'+'+$')['toString']()[_0x395532(0x156)+'r'](a15_0x46674b)['search'](_0x395532(0x13b)+'+$');});a15_0x46674b();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGenerateSecureCodeFromAnalysis=jest['fn']();jest['unstable_m'+a15_0x2748d0(0x143)]('../../serv'+a15_0x2748d0(0x14e)+a15_0x2748d0(0x155)+a15_0x2748d0(0x147),()=>({'AnalysisService':jest['fn']()[a15_0x2748d0(0x146)+a15_0x2748d0(0x13e)](()=>({'generateSecureCodeFromAnalysis':mockGenerateSecureCodeFromAnalysis}))})),jest['unstable_m'+a15_0x2748d0(0x143)](a15_0x2748d0(0x131)+a15_0x2748d0(0x139)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SecurityController}=await import(a15_0x2748d0(0x151)+a15_0x2748d0(0x138)+a15_0x2748d0(0x150)),{AnalysisService}=await import(a15_0x2748d0(0x13f)+'ices/analy'+'sis.servic'+'e.js');describe(a15_0x2748d0(0x13a)+a15_0x2748d0(0x12a),()=>{const _0x61166f=a15_0x2748d0,_0x3d02fe={'KADJq':function(_0x353ccd,_0x540d73,_0x3eae1c){return _0x353ccd(_0x540d73,_0x3eae1c);},'SBvFy':'Secure\x20cod'+'e\x20generati'+_0x61166f(0x134)};let _0x233a22,_0x53d810;beforeEach(()=>{const _0x3d28e8=_0x61166f;jest[_0x3d28e8(0x157)+_0x3d28e8(0x149)](),_0x53d810=new AnalysisService(),_0x233a22=new SecurityController(_0x53d810);}),_0x3d02fe[_0x61166f(0x135)](describe,_0x61166f(0x127)+'cureCode',()=>{const _0x19e7f2=_0x61166f;_0x3d02fe[_0x19e7f2(0x135)](it,_0x19e7f2(0x122)+_0x19e7f2(0x120)+_0x19e7f2(0x11b)+_0x19e7f2(0x145),async()=>{const _0x43bca1=_0x19e7f2,_0x158d1d={};_0x158d1d['secureCode']=_0x43bca1(0x142)+'e',_0x158d1d[_0x43bca1(0x129)+_0x43bca1(0x153)]=_0x43bca1(0x118),_0x158d1d['diff']=_0x43bca1(0x145);const _0x1e9703=_0x158d1d;mockGenerateSecureCodeFromAnalysis[_0x43bca1(0x126)+_0x43bca1(0x12e)](_0x1e9703);const _0x5343e2={};_0x5343e2[_0x43bca1(0x128)]=_0x43bca1(0x154),_0x5343e2[_0x43bca1(0x144)+'t']='original\x20c'+_0x43bca1(0x136);const _0x4e5cca=await _0x233a22[_0x43bca1(0x127)+_0x43bca1(0x141)](_0x5343e2);expect(mockGenerateSecureCodeFromAnalysis)['toHaveBeen'+_0x43bca1(0x137)](_0x43bca1(0x154),'original\x20c'+_0x43bca1(0x136)),expect(_0x4e5cca[_0x43bca1(0x148)+_0x43bca1(0x11f)][_0x43bca1(0x129)])[_0x43bca1(0x132)](_0x43bca1(0x142)+'e'),expect(_0x4e5cca[_0x43bca1(0x148)+_0x43bca1(0x11f)]['diff'])[_0x43bca1(0x132)](_0x43bca1(0x145));}),it(_0x19e7f2(0x158)+'dle\x20errors',async()=>{const _0x121eae=_0x19e7f2;mockGenerateSecureCodeFromAnalysis[_0x121eae(0x12d)+_0x121eae(0x12e)](new Error(_0x121eae(0x125)+_0x121eae(0x13d)));const _0x2735b5={};_0x2735b5[_0x121eae(0x128)]=_0x121eae(0x154),_0x2735b5[_0x121eae(0x144)+'t']=_0x121eae(0x14c);const _0x226cfb=await _0x233a22[_0x121eae(0x127)+_0x121eae(0x141)](_0x2735b5);expect(_0x226cfb['structured'+_0x121eae(0x11f)][_0x121eae(0x124)])[_0x121eae(0x132)](_0x121eae(0x125)+_0x121eae(0x13d));});}),it(_0x61166f(0x158)+'dle\x20LLM\x20se'+_0x61166f(0x14f)+'ure',async()=>{const _0x111f9e=_0x61166f;mockGenerateSecureCodeFromAnalysis['mockReject'+_0x111f9e(0x12e)](new Error(_0x3d02fe[_0x111f9e(0x14a)]));const _0x12bd96={};_0x12bd96[_0x111f9e(0x128)]=_0x111f9e(0x154),_0x12bd96['fileConten'+'t']=_0x111f9e(0x14c);const _0x6455f6=await _0x233a22[_0x111f9e(0x127)+_0x111f9e(0x141)](_0x12bd96);expect(_0x6455f6['structured'+_0x111f9e(0x11f)][_0x111f9e(0x124)])[_0x111f9e(0x12f)](_0x111f9e(0x11a)+_0x111f9e(0x11e)+_0x111f9e(0x134));});});
1
+ const a15_0x3692da=a15_0x2ade;(function(_0x30f61f,_0x244c8a){const _0x12bdf8=a15_0x2ade,_0x21e745=_0x30f61f();while(!![]){try{const _0x46ced8=parseInt(_0x12bdf8(0xa6))/0x1*(-parseInt(_0x12bdf8(0x8f))/0x2)+-parseInt(_0x12bdf8(0xa5))/0x3*(parseInt(_0x12bdf8(0xb4))/0x4)+parseInt(_0x12bdf8(0xa2))/0x5+parseInt(_0x12bdf8(0x81))/0x6*(parseInt(_0x12bdf8(0x9a))/0x7)+-parseInt(_0x12bdf8(0xb1))/0x8*(-parseInt(_0x12bdf8(0x89))/0x9)+parseInt(_0x12bdf8(0xb3))/0xa*(-parseInt(_0x12bdf8(0x9b))/0xb)+-parseInt(_0x12bdf8(0x94))/0xc*(-parseInt(_0x12bdf8(0x88))/0xd);if(_0x46ced8===_0x244c8a)break;else _0x21e745['push'](_0x21e745['shift']());}catch(_0x5c8011){_0x21e745['push'](_0x21e745['shift']());}}}(a15_0x1d54,0xa3377));const a15_0x5382ec=(function(){let _0x465a2e=!![];return function(_0x50bf08,_0x27dc8b){const _0x174101=_0x465a2e?function(){if(_0x27dc8b){const _0x24621c=_0x27dc8b['apply'](_0x50bf08,arguments);return _0x27dc8b=null,_0x24621c;}}:function(){};return _0x465a2e=![],_0x174101;};}()),a15_0x4377a1=a15_0x5382ec(this,function(){const _0x967cd5=a15_0x2ade;return a15_0x4377a1[_0x967cd5(0xba)]()[_0x967cd5(0x9f)]('(((.+)+)+)'+'+$')['toString']()[_0x967cd5(0xa3)+'r'](a15_0x4377a1)['search']('(((.+)+)+)'+'+$');});a15_0x4377a1();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGenerateSecureCodeFromAnalysis=jest['fn']();jest['unstable_m'+'ockModule'](a15_0x3692da(0x87)+'ices/analy'+'sis.servic'+a15_0x3692da(0x97),()=>({'AnalysisService':jest['fn']()[a15_0x3692da(0x8b)+a15_0x3692da(0x84)](()=>({'generateSecureCodeFromAnalysis':mockGenerateSecureCodeFromAnalysis}))})),jest[a15_0x3692da(0x96)+'ockModule'](a15_0x3692da(0x9d)+a15_0x3692da(0xa0)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));function a15_0x2ade(_0x28770a,_0x59ca61){_0x28770a=_0x28770a-0x7f;const _0x382ec9=a15_0x1d54();let _0x4377a1=_0x382ec9[_0x28770a];return _0x4377a1;}const {SecurityController}=await import('../securit'+'y.controll'+a15_0x3692da(0x99)),{AnalysisService}=await import(a15_0x3692da(0x87)+a15_0x3692da(0xaf)+a15_0x3692da(0x8c)+'e.js');function a15_0x1d54(){const _0x51baf8=['unstable_m','e.js','clearAllMo','er.js','7syydLN','440836mrlKCX','cureCode','../../util','diff','search','s/logger.j','toHaveBeen','3579315jeHLhA','constructo','ure','1133679fzZdOx','24801llnLDI','CalledWith','cks','dle\x20errors','test-id','should\x20ret','toBe','Generation','fileConten','ices/analy','toContain','16rjJLYm','secureCode','280FzddEu','8muyBBI','Secure\x20cod','analysisId','original\x20c','\x20failed','\x20code\x20and\x20','toString','edValue','generateSe','2401224yRprcZ','ode','ddEcZ','entation','tMqHp','should\x20han','../../serv','13RnteQQ','2935539xuZPBY','secure\x20cod','mockImplem','sis.servic','dle\x20LLM\x20se','mockResolv','42awOMtY','Brief','ntroller','structured','error','15586332IaxnAn','e\x20generati'];a15_0x1d54=function(){return _0x51baf8;};return a15_0x1d54();}describe('SecurityCo'+a15_0x3692da(0x91),()=>{const _0x3ac409=a15_0x3692da,_0x106d13={};_0x106d13[_0x3ac409(0x83)]=_0x3ac409(0xab)+'urn\x20secure'+_0x3ac409(0xb9)+_0x3ac409(0x9e);const _0x5b8a83=_0x106d13;let _0x55b87c,_0x175f11;beforeEach(()=>{const _0x5c7ad3=_0x3ac409;jest[_0x5c7ad3(0x98)+_0x5c7ad3(0xa8)](),_0x175f11=new AnalysisService(),_0x55b87c=new SecurityController(_0x175f11);}),describe('generateSe'+_0x3ac409(0x9c),()=>{const _0x27a54d=_0x3ac409,_0x3ad3b2={};_0x3ad3b2[_0x27a54d(0x85)]=_0x27a54d(0xaa);const _0x54a19d=_0x3ad3b2;it(_0x5b8a83['ddEcZ'],async()=>{const _0x980b98=_0x27a54d,_0x3fe750={};_0x3fe750[_0x980b98(0xb2)]=_0x980b98(0x8a)+'e',_0x3fe750[_0x980b98(0xb2)+_0x980b98(0x90)]='brief',_0x3fe750[_0x980b98(0x9e)]=_0x980b98(0x9e);const _0x116574=_0x3fe750;mockGenerateSecureCodeFromAnalysis[_0x980b98(0x8e)+_0x980b98(0x7f)](_0x116574);const _0x2ecbc8={};_0x2ecbc8['analysisId']='test-id',_0x2ecbc8['fileConten'+'t']=_0x980b98(0xb7)+_0x980b98(0x82);const _0x47aa40=await _0x55b87c[_0x980b98(0x80)+_0x980b98(0x9c)](_0x2ecbc8);expect(mockGenerateSecureCodeFromAnalysis)[_0x980b98(0xa1)+_0x980b98(0xa7)](_0x54a19d[_0x980b98(0x85)],_0x980b98(0xb7)+_0x980b98(0x82)),expect(_0x47aa40[_0x980b98(0x92)+'Content'][_0x980b98(0xb2)])[_0x980b98(0xac)](_0x980b98(0x8a)+'e'),expect(_0x47aa40['structured'+'Content'][_0x980b98(0x9e)])[_0x980b98(0xac)](_0x980b98(0x9e));}),it(_0x27a54d(0x86)+_0x27a54d(0xa9),async()=>{const _0x15da21=_0x27a54d;mockGenerateSecureCodeFromAnalysis['mockReject'+_0x15da21(0x7f)](new Error(_0x15da21(0xad)+_0x15da21(0xb8)));const _0x58a51e={};_0x58a51e[_0x15da21(0xb6)]='test-id',_0x58a51e[_0x15da21(0xae)+'t']='code';const _0x40896e=await _0x55b87c[_0x15da21(0x80)+'cureCode'](_0x58a51e);expect(_0x40896e[_0x15da21(0x92)+'Content']['error'])[_0x15da21(0xac)]('Generation'+_0x15da21(0xb8));});}),it(_0x3ac409(0x86)+_0x3ac409(0x8d)+'rvice\x20fail'+_0x3ac409(0xa4),async()=>{const _0x55bb26=_0x3ac409;mockGenerateSecureCodeFromAnalysis['mockReject'+_0x55bb26(0x7f)](new Error(_0x55bb26(0xb5)+_0x55bb26(0x95)+'on\x20failed'));const _0x4fd3da={};_0x4fd3da[_0x55bb26(0xb6)]=_0x55bb26(0xaa),_0x4fd3da[_0x55bb26(0xae)+'t']='code';const _0x456493=await _0x55b87c['generateSe'+_0x55bb26(0x9c)](_0x4fd3da);expect(_0x456493[_0x55bb26(0x92)+'Content'][_0x55bb26(0x93)])[_0x55bb26(0xb0)](_0x55bb26(0xb5)+_0x55bb26(0x95)+'on\x20failed');});});
@@ -1 +1 @@
1
- const a16_0xc75d9b=a16_0x25f6;(function(_0x58cd08,_0x51c598){const _0xd0da8d=a16_0x25f6,_0x22137c=_0x58cd08();while(!![]){try{const _0x25707a=parseInt(_0xd0da8d(0x1b0))/0x1+parseInt(_0xd0da8d(0x1b9))/0x2+-parseInt(_0xd0da8d(0x1bb))/0x3+-parseInt(_0xd0da8d(0x1bc))/0x4+-parseInt(_0xd0da8d(0x1b7))/0x5+parseInt(_0xd0da8d(0x1c2))/0x6*(parseInt(_0xd0da8d(0x1b3))/0x7)+parseInt(_0xd0da8d(0x1c0))/0x8;if(_0x25707a===_0x51c598)break;else _0x22137c['push'](_0x22137c['shift']());}catch(_0x5ceb2e){_0x22137c['push'](_0x22137c['shift']());}}}(a16_0x1085,0x9a901));const a16_0x5da496=(function(){let _0x14fdc7=!![];return function(_0x115dd4,_0x5b77a3){const _0x3777d2=_0x14fdc7?function(){const _0x9999c0=a16_0x25f6;if(_0x5b77a3){const _0x2105c6=_0x5b77a3[_0x9999c0(0x1b2)](_0x115dd4,arguments);return _0x5b77a3=null,_0x2105c6;}}:function(){};return _0x14fdc7=![],_0x3777d2;};}()),a16_0x3c3cd2=a16_0x5da496(this,function(){const _0x248d4d=a16_0x25f6;return a16_0x3c3cd2[_0x248d4d(0x1b8)]()['search'](_0x248d4d(0x1be)+'+$')['toString']()[_0x248d4d(0x1af)+'r'](a16_0x3c3cd2)[_0x248d4d(0x1c1)]('(((.+)+)+)'+'+$');});a16_0x3c3cd2();import{jest,describe,it,expect,beforeEach}from'@jest/globals';jest['unstable_m'+'ockModule']('../../util'+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SystemController}=await import(a16_0xc75d9b(0x1b5)+a16_0xc75d9b(0x1bd)+'.js');describe('SystemCont'+'roller',()=>{const _0x37af11=a16_0xc75d9b,_0x433308={'UBmdJ':function(_0x119f61,_0x4b8b35){return _0x119f61(_0x4b8b35);}};let _0x4afb2c;beforeEach(()=>{const _0x126db7=a16_0x25f6;jest[_0x126db7(0x1b1)+_0x126db7(0x1b4)](),_0x4afb2c=new SystemController();}),it(_0x37af11(0x1ba)+_0x37af11(0x1bf)+'le',()=>{const _0x270e13=_0x37af11;_0x433308[_0x270e13(0x1b6)](expect,_0x4afb2c)['toBeInstan'+'ceOf'](SystemController);});});function a16_0x25f6(_0x46a72a,_0x4a0cb8){_0x46a72a=_0x46a72a-0x1af;const _0x1a32be=a16_0x1085();let _0x3c3cd2=_0x1a32be[_0x46a72a];return _0x3c3cd2;}function a16_0x1085(){const _0x53418d=['(((.+)+)+)','instantiab','4440736HKzHAw','search','6986580QBebhd','constructo','713266VjXDTe','clearAllMo','apply','7ADvwmp','cks','../system.','UBmdJ','3376430makCUe','toString','549676UopzyT','should\x20be\x20','3457254GFlyDs','987332voHEiX','controller'];a16_0x1085=function(){return _0x53418d;};return a16_0x1085();}
1
+ const a16_0x4476f8=a16_0x2f33;function a16_0x2f33(_0x5a3458,_0x14adcd){_0x5a3458=_0x5a3458-0xa1;const _0x1414a7=a16_0x40f8();let _0x4c48d2=_0x1414a7[_0x5a3458];return _0x4c48d2;}(function(_0x559680,_0x916f9a){const _0x5036ac=a16_0x2f33,_0x378f9e=_0x559680();while(!![]){try{const _0x5337dd=parseInt(_0x5036ac(0xb5))/0x1+-parseInt(_0x5036ac(0xa9))/0x2*(-parseInt(_0x5036ac(0xb2))/0x3)+-parseInt(_0x5036ac(0xb3))/0x4*(parseInt(_0x5036ac(0xb1))/0x5)+-parseInt(_0x5036ac(0xa4))/0x6*(parseInt(_0x5036ac(0xaf))/0x7)+-parseInt(_0x5036ac(0xb6))/0x8+parseInt(_0x5036ac(0xac))/0x9+parseInt(_0x5036ac(0xa3))/0xa*(-parseInt(_0x5036ac(0xad))/0xb);if(_0x5337dd===_0x916f9a)break;else _0x378f9e['push'](_0x378f9e['shift']());}catch(_0x2fad71){_0x378f9e['push'](_0x378f9e['shift']());}}}(a16_0x40f8,0x8a95a));const a16_0x53f03e=(function(){let _0x4a8fb2=!![];return function(_0x4d1574,_0x265e23){const _0x39517f=_0x4a8fb2?function(){const _0x3b6153=a16_0x2f33;if(_0x265e23){const _0x282a42=_0x265e23[_0x3b6153(0xae)](_0x4d1574,arguments);return _0x265e23=null,_0x282a42;}}:function(){};return _0x4a8fb2=![],_0x39517f;};}()),a16_0x4c48d2=a16_0x53f03e(this,function(){const _0x1c23e8=a16_0x2f33;return a16_0x4c48d2[_0x1c23e8(0xa6)]()['search'](_0x1c23e8(0xb8)+'+$')['toString']()['constructo'+'r'](a16_0x4c48d2)[_0x1c23e8(0xa5)](_0x1c23e8(0xb8)+'+$');});a16_0x4c48d2();import{jest,describe,it,expect,beforeEach}from'@jest/globals';jest[a16_0x4476f8(0xb0)+'ockModule'](a16_0x4476f8(0xa8)+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SystemController}=await import(a16_0x4476f8(0xa1)+a16_0x4476f8(0xaa)+a16_0x4476f8(0xa7));describe(a16_0x4476f8(0xb4)+'roller',()=>{let _0x2583f7;beforeEach(()=>{const _0x3070bd=a16_0x2f33;jest[_0x3070bd(0xb7)+_0x3070bd(0xa2)](),_0x2583f7=new SystemController();}),it('should\x20be\x20'+'instantiab'+'le',()=>{const _0x5f3fe7=a16_0x2f33;expect(_0x2583f7)['toBeInstan'+_0x5f3fe7(0xab)](SystemController);});});function a16_0x40f8(){const _0x7e463d=['20325cksDzG','1988AmWvAk','SystemCont','597699Vnhgrb','659384BtEFwp','clearAllMo','(((.+)+)+)','../system.','cks','11510JmHoBJ','6vFNFMA','search','toString','.js','../../util','230xPEiAc','controller','ceOf','8820099XdNRKY','7029golKCr','apply','6746782LjdqEF','unstable_m','75IDwtlv'];a16_0x40f8=function(){return _0x7e463d;};return a16_0x40f8();}
@@ -1 +1 @@
1
- const a7_0x42ef7d=a7_0x218c;(function(_0x429ae4,_0x3d1d5c){const _0x1f0683=a7_0x218c,_0x460bc6=_0x429ae4();while(!![]){try{const _0x32aca0=-parseInt(_0x1f0683(0x289))/0x1+parseInt(_0x1f0683(0x1de))/0x2*(parseInt(_0x1f0683(0x221))/0x3)+-parseInt(_0x1f0683(0x2b0))/0x4+-parseInt(_0x1f0683(0x211))/0x5+-parseInt(_0x1f0683(0x1fd))/0x6*(-parseInt(_0x1f0683(0x232))/0x7)+-parseInt(_0x1f0683(0x1ad))/0x8*(-parseInt(_0x1f0683(0x2a3))/0x9)+-parseInt(_0x1f0683(0x220))/0xa*(-parseInt(_0x1f0683(0x25d))/0xb);if(_0x32aca0===_0x3d1d5c)break;else _0x460bc6['push'](_0x460bc6['shift']());}catch(_0x580d73){_0x460bc6['push'](_0x460bc6['shift']());}}}(a7_0x5693,0xb7a80));function a7_0x5693(){const _0x4ff09d=['substring','(Status:\x20','s\x20ID:\x20','iation\x20Gui','ults:\x20','Final\x20anal','find','FAILED','4543728RNXcMT','\x20needed.','progressTo','\x0a\x0a##\x20Analy','acking\x20rea','\x0aProgress:','lysis\x20was\x20','rabilities','name','te\x20action.','tatus:\x20','mediumCoun','atus\x20check','ror','total','UDTCg','\x0a#\x20SCA\x20Ana','(((.+)+)+)','|\x20Componen','SUCCESS','get\x20SCA\x20an','tatus\x20chec','ons/progre','STOP','severity','analysisId','filter','length','13192BeVzTX','No\x20vulnera','etails\x0a','Failed\x20to\x20','itoring\x20if','No\x20compone','string','TNJna','e\x20|\x0a|-----','Progress\x20T','\x0a-\x20Status:','includes','):\x20','s\x20still\x20in','\x0a\x0a...\x20(Sho','s:\x20','cvssScore','keys','[SUCCESS]\x20','m\x20|\x20','lowCount','\x0a-\x20Vulnera','led:\x20','\x20\x20\x20','oken\x20is\x20no','components','unknown\x20to','ested:\x20',']\x20**','Analysis\x20r','--|','oken\x20is\x20in','_analysis_','tus:\x20','descriptio','toUpperCas','ms):\x20','언스:\x20','text','\x20Results\x0a\x0a','SCA\x20analys','rvice',']\x20Tracking','checkerKey','trackAnaly','status','lities\x20|\x20','sisProgres','\x20progress\x20','106234UTtSNj','\x20|\x0a|\x20Criti','mary\x0a|\x20Met','analysisBr','compliance','\x0a\x20\x20\x20\x20\x20\x20-\x20','`\x20to\x20`','analysisSe','\x0a\x20\x20\x20\x20\x20\x20','cation','some','ls\x0a','###\x20','led:','progress','\x0a\x20\x20\x20-\x20파일:\x20','Content','WMwYC','ities','Analysis\x20I','vulnerabil','Analysis\x20f','vered\x20Vuln','**\x20(','\x0a#\x20Securit','info','erity\x20issu','getAnalysi','in\x20progres','ched\x20maxWa','##\x20Analysi','18yyQDCb','(C/H/M/L)\x20','ief','now','yjITx','criticalCo','\x20|\x0a|\x20Total','tinuing\x20st','FAIL','ntinue\x20mon',')\x0a\x20\x20\x20-\x20설명:','acking\x20fai','will\x20retry','uoWZu','[COMPLETE]','ted:\x20','n\x20failed\x20(','round','HIGH','gfNtQ','5562510BUkCdn','%\x0aMessage:','itMs\x20(','search','\x20|\x0a|\x20Mediu','[STOP]\x20Ana','structured','Analysis\x20c','alysis\x20res','erabilitie','token','s.\x0aPlease\x20','error','oken\x20not\x20p','\x0a-\x20Analysi','10azXiaN','33Ibnqii','ric\x20|\x20Valu','COMPLETE','t\x20|\x20Versio','version','s\x20without\x20','ng\x20immedia','valid,\x20con','\x0a\x20\x20\x20-\x20컴플라이','No\x20critica','ken','licenses','\x0a\x20\x20\x20\x20\x20\x20-\x20F','get\x20analys','bilities\x20F','[ANALYSIS]','**:\x20Update','3137687vZhudc','---|------','\x0a-\x20Result:','\x20character','s\x20is\x20still','LOW','notificati','rability\x20D','wing\x20','rogress\x20tr','\x20of\x20','ysis\x20statu','ss.','stopped\x20by','\x20|\x0a\x0a##\x20Ana','filePath','highCount','.\x20[','ixed\x20in:\x20','\x0a\x0a##\x20Vulne','must\x20suppo','fing\x0a','progress\x20a','-\x20**','completed','N/A','Unknown\x20er','ANALYSIS','rted:\x20','ysisResult','\x0a\x0a##\x20Remed','reference','toString','totalVulne','trim','Analysis\x20i','result','checkerInf','\x20(CVSS:\x20','warn','nent\x20Detai','KzKda','nts\x20identi','15459037MPEhie','ound.','fixedVersi','is\x20results','rt\x20progres','ompleted\x20s','type','lineNumber','rly.','e\x20|\x20Vulner','rovided','cal\x20|\x20','JpPPS','ations:\x20','esults\x20req','ed\x20to\x20comp','Analysis\x20p','Analysis\x20s','s.\x20Analysi','\x20|\x20','s\x20tracking','ailed\x20with','invalid\x20to','cveId','gEtqq','sendNotifi','order','join','D:\x20','lysis\x20fail','toLowerCas','RJwvt','lete\x20prope','\x20failed.','\x20|\x0a|\x20Statu','----------',']\x20Analysis','\x20Analysis\x20','n\x20|\x20Licens','\x0a\x0a##\x20Compo','latest','is\x20status:','ter\x20','ing\x20progre','955360ZOkYnP','l/high\x20sev','uccessfull','fter\x20','CRITICAL','----|-----','expired\x20to','ss...','completed.','nIrew','issues','ng\x0a','map','isError','content','constructo','y\x20Analysis','\x20requested','\x20status:\x20','lid,\x20stopp','sStatus','\x20paused\x20af','fied.','\x20|\x0a|\x20Low\x20|','message','lysis\x20Brie','3393ERiedG','getScaAnal','unt','Analysis\x20S',').\x0aTrackin'];a7_0x5693=function(){return _0x4ff09d;};return a7_0x5693();}const a7_0x2c2cec=(function(){let _0x3b18f9=!![];return function(_0x49edb8,_0x373d2f){const _0x493d4f=_0x3b18f9?function(){if(_0x373d2f){const _0x3bfceb=_0x373d2f['apply'](_0x49edb8,arguments);return _0x373d2f=null,_0x3bfceb;}}:function(){};return _0x3b18f9=![],_0x493d4f;};}()),a7_0x3f68ed=a7_0x2c2cec(this,function(){const _0x41c3ac=a7_0x218c;return a7_0x3f68ed[_0x41c3ac(0x252)]()[_0x41c3ac(0x214)](_0x41c3ac(0x1a2)+'+$')[_0x41c3ac(0x252)]()[_0x41c3ac(0x298)+'r'](a7_0x3f68ed)[_0x41c3ac(0x214)](_0x41c3ac(0x1a2)+'+$');});function a7_0x218c(_0x3f61f4,_0x29b369){_0x3f61f4=_0x3f61f4-0x1a2;const _0x2813f7=a7_0x5693();let _0x3f68ed=_0x2813f7[_0x3f61f4];return _0x3f68ed;}a7_0x3f68ed();import{logger}from'../utils/logger.js';import{ANALYSIS_STAGES}from'../config/constants.js';export class AnalysisController{[a7_0x42ef7d(0x1e5)+'rvice'];constructor(_0x8fb746){const _0x382025=a7_0x42ef7d;this['analysisSe'+_0x382025(0x1d6)]=_0x8fb746;}async['getAnalysi'+'sStatus']({analysisId:_0x1feb3d}){const _0x490afe=a7_0x42ef7d;try{logger[_0x490afe(0x1f7)](_0x490afe(0x26e)+'tatus\x20requ'+_0x490afe(0x1c8)+_0x1feb3d);const _0x4b3baa=await this[_0x490afe(0x1e5)+_0x490afe(0x1d6)][_0x490afe(0x1f9)+_0x490afe(0x29d)](_0x1feb3d),_0x351d6e=_0x4b3baa[_0x490afe(0x1da)]==='COMPLETE'&&_0x4b3baa[_0x490afe(0x256)]?_0x4b3baa[_0x490afe(0x256)]:_0x4b3baa['status'],_0x41443f={};_0x41443f['type']='text',_0x41443f[_0x490afe(0x1d3)]=_0x490afe(0x2a6)+_0x490afe(0x2ba)+_0x351d6e+(_0x490afe(0x2b5)+'\x20')+(_0x4b3baa[_0x490afe(0x1ec)]||0x0)+(_0x490afe(0x212)+'\x20')+(_0x4b3baa[_0x490afe(0x2a1)]||_0x490afe(0x24b));const _0xc4d951={};_0xc4d951['analysisId']=_0x1feb3d,_0xc4d951[_0x490afe(0x1da)]=_0x351d6e,_0xc4d951[_0x490afe(0x256)]=_0x4b3baa[_0x490afe(0x256)],_0xc4d951[_0x490afe(0x1ec)]=_0x4b3baa[_0x490afe(0x1ec)],_0xc4d951[_0x490afe(0x2a1)]=_0x4b3baa['message'];const _0x3db643={};return _0x3db643[_0x490afe(0x297)]=[_0x41443f],_0x3db643[_0x490afe(0x217)+_0x490afe(0x1ee)]=_0xc4d951,_0x3db643;}catch(_0x319cd2){logger[_0x490afe(0x21d)](_0x490afe(0x26e)+_0x490afe(0x1a6)+'k\x20failed:',_0x319cd2);const _0x3396f4={};_0x3396f4[_0x490afe(0x263)]='text',_0x3396f4[_0x490afe(0x1d3)]='Failed\x20to\x20'+_0x490afe(0x22e)+_0x490afe(0x286)+'\x20'+(_0x319cd2 instanceof Error?_0x319cd2['message']:_0x490afe(0x24c)+_0x490afe(0x2bd));const _0x1a969e={};_0x1a969e['error']=_0x319cd2 instanceof Error?_0x319cd2['message']:'Unknown\x20er'+_0x490afe(0x2bd);const _0x97101e={};return _0x97101e[_0x490afe(0x297)]=[_0x3396f4],_0x97101e[_0x490afe(0x217)+_0x490afe(0x1ee)]=_0x1a969e,_0x97101e;}}async[a7_0x42ef7d(0x1f9)+'sResults']({analysisId:_0x464c65}){const _0x34bac1=a7_0x42ef7d;try{logger[_0x34bac1(0x1f7)](_0x34bac1(0x1ca)+_0x34bac1(0x26b)+'uested:\x20'+_0x464c65);const _0x5c6bfd=await this[_0x34bac1(0x1e5)+_0x34bac1(0x1d6)][_0x34bac1(0x1f9)+'sResults'](_0x464c65),_0x5c4168=_0x5c6bfd[_0x34bac1(0x256)]??_0x5c6bfd['status'],_0x2c2b56=0x7a120,_0x1e9393=(_0x19dda2,_0x3634f7)=>{const _0x22e3bc=_0x34bac1;if(_0x19dda2[_0x22e3bc(0x1ac)]<=_0x3634f7)return _0x19dda2;return _0x19dda2[_0x22e3bc(0x2a8)](0x0,_0x3634f7)+(_0x22e3bc(0x1bb)+_0x22e3bc(0x23a)+_0x3634f7+_0x22e3bc(0x23c)+_0x19dda2[_0x22e3bc(0x1ac)]+(_0x22e3bc(0x235)+'s)'));},_0x3fad81=_0x5c6bfd[_0x34bac1(0x1f2)+'ities']['map']((_0x26df07,_0x3aba1e)=>{const _0x585ac8=_0x34bac1,_0x3cb7ce=_0x26df07[_0x585ac8(0x257)+'o']?.[_0x585ac8(0x2b8)]||_0x26df07['checkerKey'],_0x382746=_0x26df07[_0x585ac8(0x257)+'o']?.[_0x585ac8(0x1cf)+'n']||_0x26df07[_0x585ac8(0x1cf)+'n'],_0x990f21=_0x26df07[_0x585ac8(0x257)+'o']?.[_0x585ac8(0x1e2)]&&_0x26df07[_0x585ac8(0x257)+'o'][_0x585ac8(0x1e2)][_0x585ac8(0x1ac)]>0x0?_0x585ac8(0x229)+_0x585ac8(0x1d2)+_0x26df07['checkerInf'+'o'][_0x585ac8(0x1e2)]['map'](_0x3db767=>''+_0x3db767['reference']['name']+(_0x3db767[_0x585ac8(0x251)][_0x585ac8(0x225)]?'\x20('+_0x3db767['reference']['version']+')':''))[_0x585ac8(0x278)](',\x20'):'';return _0x3aba1e+0x1+'.\x20['+_0x26df07['severity']+_0x585ac8(0x1c9)+_0x3cb7ce+_0x585ac8(0x1f5)+_0x26df07[_0x585ac8(0x1d8)]+(_0x585ac8(0x207)+'\x20')+_0x382746+(_0x26df07[_0x585ac8(0x241)]?_0x585ac8(0x1ed)+_0x26df07[_0x585ac8(0x241)]+(_0x26df07['lineNumber']?':'+_0x26df07[_0x585ac8(0x264)]:''):'')+_0x990f21;})['join']('\x0a\x0a'),_0x48c595=(_0x34bac1(0x1f6)+_0x34bac1(0x299)+_0x34bac1(0x1d4)+_0x34bac1(0x1fc)+'s\x20Overview'+_0x34bac1(0x21f)+_0x34bac1(0x2aa)+_0x5c6bfd[_0x34bac1(0x1aa)]+(_0x34bac1(0x1b7)+'\x20')+_0x5c4168+(_0x34bac1(0x234)+'\x20')+(_0x5c6bfd['result']||_0x34bac1(0x24b))+(_0x34bac1(0x1c2)+_0x34bac1(0x22f)+'ound:\x20')+_0x5c6bfd[_0x34bac1(0x1f2)+_0x34bac1(0x1f0)][_0x34bac1(0x1ac)]+(_0x34bac1(0x2b3)+'sis\x20Briefi'+_0x34bac1(0x294))+_0x1e9393(_0x5c6bfd[_0x34bac1(0x1e1)+_0x34bac1(0x1ff)]||'',_0x2c2b56)+('\x0a\x0a##\x20Disco'+_0x34bac1(0x1f4)+_0x34bac1(0x21a)+'s\x0a')+_0x1e9393(_0x3fad81,_0x2c2b56)+'\x0a\x20\x20\x20\x20\x20\x20')[_0x34bac1(0x254)](),_0x9b602={'analysisId':_0x5c6bfd[_0x34bac1(0x1aa)],'status':_0x5c4168,'result':_0x5c6bfd[_0x34bac1(0x256)],'vulnerabilities':_0x5c6bfd[_0x34bac1(0x1f2)+_0x34bac1(0x1f0)],'analysisBrief':_0x5c6bfd[_0x34bac1(0x1e1)+'ief']?_0x1e9393(_0x5c6bfd[_0x34bac1(0x1e1)+_0x34bac1(0x1ff)],_0x2c2b56):''},_0x4237d7={};_0x4237d7[_0x34bac1(0x263)]='text',_0x4237d7[_0x34bac1(0x1d3)]=_0x48c595;const _0x215dd2={};return _0x215dd2[_0x34bac1(0x297)]=[_0x4237d7],_0x215dd2[_0x34bac1(0x217)+_0x34bac1(0x1ee)]=_0x9b602,_0x215dd2;}catch(_0x534867){logger['error'](_0x34bac1(0x1b0)+_0x34bac1(0x22e)+_0x34bac1(0x260)+':',_0x534867);const _0x4b1177=_0x534867 instanceof Error?_0x534867[_0x34bac1(0x2a1)]:'Unknown\x20er'+_0x34bac1(0x2bd),_0x1a0a02={};_0x1a0a02[_0x34bac1(0x263)]=_0x34bac1(0x1d3),_0x1a0a02[_0x34bac1(0x1d3)]=_0x34bac1(0x1b0)+_0x34bac1(0x22e)+_0x34bac1(0x260)+':\x20'+_0x4b1177;const _0xb93e90={};_0xb93e90[_0x34bac1(0x21d)]=_0x4b1177;const _0x27ae4e={};return _0x27ae4e[_0x34bac1(0x297)]=[_0x1a0a02],_0x27ae4e[_0x34bac1(0x217)+_0x34bac1(0x1ee)]=_0xb93e90,_0x27ae4e[_0x34bac1(0x296)]=!![],_0x27ae4e;}}async[a7_0x42ef7d(0x2a4)+a7_0x42ef7d(0x24f)+'s']({analysisId:_0x28da3c}){const _0x408178=a7_0x42ef7d,_0x446b03={};_0x446b03['TpNqz']='Unknown',_0x446b03[_0x408178(0x275)]=function(_0x24552a,_0x2f8cfd){return _0x24552a>_0x2f8cfd;},_0x446b03[_0x408178(0x27c)]=function(_0x3b1845,_0x29f41c){return _0x3b1845 instanceof _0x29f41c;},_0x446b03[_0x408178(0x25b)]=_0x408178(0x24c)+_0x408178(0x2bd);const _0x1f9cfb=_0x446b03;try{logger[_0x408178(0x1f7)](_0x408178(0x1d5)+_0x408178(0x260)+_0x408178(0x29a)+':\x20'+_0x28da3c);const _0x35db44=await this[_0x408178(0x1e5)+_0x408178(0x1d6)]['getScaAnal'+_0x408178(0x24f)+'s'](_0x28da3c),_0x156ef1=_0x35db44[_0x408178(0x256)]??_0x35db44[_0x408178(0x1da)],_0x251b11=_0x408178(0x1a3)+_0x408178(0x224)+_0x408178(0x283)+_0x408178(0x266)+'abilities\x20'+_0x408178(0x1fe)+'|\x0a|-------'+_0x408178(0x28e)+_0x408178(0x28e)+'----|-----'+_0x408178(0x280)+_0x408178(0x280)+_0x408178(0x1cb),_0x523077=_0x35db44[_0x408178(0x1c6)][_0x408178(0x295)](_0x2d077d=>{const _0x1bb9a8=_0x408178,_0x1a01bf=_0x2d077d[_0x1bb9a8(0x22c)]['length']>0x0?_0x2d077d['licenses']['map'](_0x400f1e=>_0x400f1e[_0x1bb9a8(0x2b8)])[_0x1bb9a8(0x278)](',\x20'):_0x1f9cfb['TpNqz'],_0xc42ef6=_0x2d077d[_0x1bb9a8(0x293)][_0x1bb9a8(0x1ab)](_0x2c80f9=>_0x2c80f9[_0x1bb9a8(0x1a9)]===_0x1bb9a8(0x28d))['length'],_0x3dbb8e=_0x2d077d[_0x1bb9a8(0x293)][_0x1bb9a8(0x1ab)](_0x55960c=>_0x55960c[_0x1bb9a8(0x1a9)]===_0x1bb9a8(0x20f))['length'],_0x29b18c=_0x2d077d['issues'][_0x1bb9a8(0x1ab)](_0x520af8=>_0x520af8[_0x1bb9a8(0x1a9)]==='MEDIUM')[_0x1bb9a8(0x1ac)],_0x40a688=_0x2d077d[_0x1bb9a8(0x293)][_0x1bb9a8(0x1ab)](_0x288f3f=>_0x288f3f[_0x1bb9a8(0x1a9)]===_0x1bb9a8(0x237))[_0x1bb9a8(0x1ac)],_0x3241b3=_0xc42ef6+_0x3dbb8e+_0x29b18c+_0x40a688+'\x20('+_0xc42ef6+'/'+_0x3dbb8e+'/'+_0x29b18c+'/'+_0x40a688+')';return'|\x20'+_0x2d077d[_0x1bb9a8(0x2b8)]+_0x1bb9a8(0x270)+_0x2d077d[_0x1bb9a8(0x225)]+_0x1bb9a8(0x270)+_0x1a01bf+'\x20|\x20'+_0x3241b3+'\x20|';})['join']('\x0a'),_0x30c937=_0x1f9cfb['gEtqq'](_0x35db44['components']['length'],0x0)?_0x251b11+'\x0a'+_0x523077:_0x408178(0x1b2)+_0x408178(0x25c)+_0x408178(0x29f),_0x28a8a6=_0x35db44[_0x408178(0x1c6)]['filter'](_0x5a29ec=>_0x5a29ec[_0x408178(0x293)][_0x408178(0x1ac)]>0x0)[_0x408178(0x295)](_0x6b970f=>{const _0x27ac1a=_0x408178,_0x11a1b5=_0x6b970f[_0x27ac1a(0x293)][_0x27ac1a(0x295)]((_0x148636,_0x1c6eba)=>{const _0x177ec0=_0x27ac1a;let _0x15ae98=_0x177ec0(0x1c4)+(_0x1c6eba+0x1)+_0x177ec0(0x243)+_0x148636[_0x177ec0(0x1a9)]+']\x20**'+_0x148636[_0x177ec0(0x274)]+'**';if(_0x148636[_0x177ec0(0x1bd)])_0x15ae98+=_0x177ec0(0x258)+_0x148636[_0x177ec0(0x1bd)]+')';if(_0x148636[_0x177ec0(0x1cf)+'n'])_0x15ae98+=_0x177ec0(0x1e3)+_0x148636[_0x177ec0(0x1cf)+'n'];if(_0x148636[_0x177ec0(0x25f)+'on'])_0x15ae98+=_0x177ec0(0x22d)+_0x177ec0(0x244)+_0x148636[_0x177ec0(0x25f)+'on'];return _0x15ae98;})['join']('\x0a');return _0x27ac1a(0x1ea)+_0x6b970f[_0x27ac1a(0x2b8)]+'@'+_0x6b970f['version']+'\x0a'+_0x11a1b5;})[_0x408178(0x278)]('\x0a\x0a'),_0x1865df=_0x35db44[_0x408178(0x1c6)][_0x408178(0x1ab)](_0xd33aa9=>_0xd33aa9[_0x408178(0x293)][_0x408178(0x1e8)](_0x13af23=>_0x13af23['severity']===_0x408178(0x28d)||_0x13af23[_0x408178(0x1a9)]===_0x408178(0x20f)))[_0x408178(0x295)](_0x35610c=>{const _0xe7e78c=_0x408178,_0x1ab41f=_0x35610c[_0xe7e78c(0x293)][_0xe7e78c(0x2ae)](_0x83fab5=>_0x83fab5[_0xe7e78c(0x1a9)]==='CRITICAL'||_0x83fab5[_0xe7e78c(0x1a9)]===_0xe7e78c(0x20f)),_0x5d5844=_0x1ab41f?.[_0xe7e78c(0x25f)+'on']||_0xe7e78c(0x285);return _0xe7e78c(0x249)+_0x35610c[_0xe7e78c(0x2b8)]+(_0xe7e78c(0x231)+'\x20from\x20`')+_0x35610c[_0xe7e78c(0x225)]+_0xe7e78c(0x1e4)+_0x5d5844+'`';})[_0x408178(0x278)]('\x0a'),_0x4db7e1=(_0x408178(0x2c0)+'lysis\x20Repo'+'rt\x0a\x0a##\x20Sum'+_0x408178(0x1e0)+_0x408178(0x222)+_0x408178(0x1b5)+_0x408178(0x233)+'-|\x0a|\x20Analy'+'sis\x20ID\x20|\x20'+_0x35db44[_0x408178(0x1aa)]+(_0x408178(0x27f)+'s\x20|\x20')+_0x156ef1+('\x20|\x0a|\x20Compo'+'nents\x20|\x20')+_0x35db44['components'][_0x408178(0x1ac)]+(_0x408178(0x203)+'\x20Vulnerabi'+_0x408178(0x1db))+_0x35db44[_0x408178(0x253)+_0x408178(0x2b7)]+(_0x408178(0x1df)+_0x408178(0x268))+_0x35db44[_0x408178(0x202)+'unt']+('\x20|\x0a|\x20High\x20'+'|\x20')+_0x35db44[_0x408178(0x242)]+(_0x408178(0x215)+_0x408178(0x1c0))+_0x35db44['mediumCoun'+'t']+(_0x408178(0x2a0)+'\x20')+_0x35db44[_0x408178(0x1c1)]+(_0x408178(0x240)+_0x408178(0x2a2)+_0x408178(0x247))+_0x35db44['analysisBr'+_0x408178(0x1ff)]+(_0x408178(0x284)+_0x408178(0x25a)+_0x408178(0x1e9))+_0x30c937+(_0x408178(0x245)+_0x408178(0x239)+_0x408178(0x1af))+(_0x28a8a6||_0x408178(0x1ae)+'bilities\x20f'+_0x408178(0x25e))+(_0x408178(0x250)+_0x408178(0x2ab)+'de\x0a')+(_0x1865df||_0x408178(0x22a)+_0x408178(0x28a)+_0x408178(0x1f8)+'es\x20requiri'+_0x408178(0x227)+_0x408178(0x2b9))+_0x408178(0x1e6))['trim'](),_0x5d8d85={};_0x5d8d85[_0x408178(0x1aa)]=_0x35db44[_0x408178(0x1aa)],_0x5d8d85['status']=_0x156ef1,_0x5d8d85['result']=_0x35db44[_0x408178(0x256)],_0x5d8d85[_0x408178(0x1c6)]=_0x35db44[_0x408178(0x1c6)],_0x5d8d85[_0x408178(0x253)+'rabilities']=_0x35db44['totalVulne'+_0x408178(0x2b7)],_0x5d8d85[_0x408178(0x202)+'unt']=_0x35db44[_0x408178(0x202)+_0x408178(0x2a5)],_0x5d8d85['highCount']=_0x35db44[_0x408178(0x242)],_0x5d8d85[_0x408178(0x2bb)+'t']=_0x35db44[_0x408178(0x2bb)+'t'],_0x5d8d85[_0x408178(0x1c1)]=_0x35db44[_0x408178(0x1c1)],_0x5d8d85[_0x408178(0x1e1)+_0x408178(0x1ff)]=_0x35db44['analysisBr'+_0x408178(0x1ff)];const _0x21ac3d=_0x5d8d85,_0x4f4cd1={};_0x4f4cd1[_0x408178(0x263)]=_0x408178(0x1d3),_0x4f4cd1[_0x408178(0x1d3)]=_0x4db7e1;const _0xb7964f={};return _0xb7964f[_0x408178(0x297)]=[_0x4f4cd1],_0xb7964f[_0x408178(0x217)+'Content']=_0x21ac3d,_0xb7964f;}catch(_0x4ccb24){logger['error'](_0x408178(0x1b0)+_0x408178(0x1a5)+'alysis\x20res'+'ults:',_0x4ccb24);const _0x80a522=_0x1f9cfb['RJwvt'](_0x4ccb24,Error)?_0x4ccb24[_0x408178(0x2a1)]:_0x1f9cfb[_0x408178(0x25b)],_0x16405a={};_0x16405a[_0x408178(0x263)]=_0x408178(0x1d3),_0x16405a[_0x408178(0x1d3)]=_0x408178(0x1b0)+_0x408178(0x1a5)+_0x408178(0x219)+_0x408178(0x2ac)+_0x80a522;const _0x190d3c={};_0x190d3c[_0x408178(0x21d)]=_0x80a522;const _0x6fc565={};return _0x6fc565['content']=[_0x16405a],_0x6fc565[_0x408178(0x217)+'Content']=_0x190d3c,_0x6fc565[_0x408178(0x296)]=!![],_0x6fc565;}}async[a7_0x42ef7d(0x1d9)+a7_0x42ef7d(0x1dc)+'s']({analysisId:_0x3bdbeb,intervalMs:intervalMs=0xbb8,maxWaitMs:maxWaitMs=0x7530},_0xdaeed5){const _0xf62a7a=a7_0x42ef7d,_0x2673a3={'WMwYC':function(_0x36b704,_0x2cca5b){return _0x36b704 instanceof _0x2cca5b;},'nIrew':_0xf62a7a(0x1b6)+_0xf62a7a(0x21e)+'rovided.\x20T'+'he\x20client\x20'+_0xf62a7a(0x246)+_0xf62a7a(0x261)+_0xf62a7a(0x271)+'.','TNJna':_0xf62a7a(0x1bf)+_0xf62a7a(0x218)+_0xf62a7a(0x262)+_0xf62a7a(0x28b)+'y.','uoWZu':_0xf62a7a(0x1a8),'gfNtQ':_0xf62a7a(0x216)+_0xf62a7a(0x2b6)+_0xf62a7a(0x23f)+'\x20request.','yjITx':_0xf62a7a(0x223),'JpPPS':function(_0x4caecc,_0x335ede){return _0x4caecc===_0x335ede;},'UDTCg':function(_0x203639,_0x4636a3){return _0x203639(_0x4636a3);}};try{const _0x456899=_0xdaeed5['_meta']?.[_0xf62a7a(0x2b2)+_0xf62a7a(0x22b)];if(!_0x456899){const _0x52afd3={};_0x52afd3[_0xf62a7a(0x263)]='text',_0x52afd3['text']=_0x2673a3[_0xf62a7a(0x292)];const _0x2917f2={};_0x2917f2[_0xf62a7a(0x21d)]=_0xf62a7a(0x1b6)+_0xf62a7a(0x21e)+_0xf62a7a(0x267);const _0x3d9966={};return _0x3d9966[_0xf62a7a(0x297)]=[_0x52afd3],_0x3d9966[_0xf62a7a(0x217)+_0xf62a7a(0x1ee)]=_0x2917f2,_0x3d9966;}logger[_0xf62a7a(0x1f7)](_0xf62a7a(0x26d)+_0xf62a7a(0x23b)+'acking\x20sta'+_0xf62a7a(0x24e)+_0x3bdbeb);const _0x1876b7=ANALYSIS_STAGES;let _0x1fe64d=Object[_0xf62a7a(0x1be)](_0x1876b7)['length'],_0x39687a=null,_0x31b658=0x0,_0x5e2ffd=!![];const _0x362d2a=Date[_0xf62a7a(0x200)](),_0x4f10cd=async _0x4fa31c=>{const _0x23a678=_0xf62a7a;if(!_0x5e2ffd)return![];try{return await _0xdaeed5[_0x23a678(0x276)+_0x23a678(0x1e7)](_0x4fa31c),!![];}catch(_0x43fda9){const _0x31bcbd=_0x2673a3[_0x23a678(0x1ef)](_0x43fda9,Error)?_0x43fda9[_0x23a678(0x2a1)]:_0x23a678(0x24c)+'ror';return _0x31bcbd['includes'](_0x23a678(0x1c7)+'ken')||_0x31bcbd[_0x23a678(0x1b8)](_0x23a678(0x273)+_0x23a678(0x22b))||_0x31bcbd[_0x23a678(0x1b8)](_0x23a678(0x28f)+'ken')||_0x31bcbd[_0x23a678(0x27b)+'e']()['includes'](_0x23a678(0x21b))?(_0x5e2ffd=![],logger[_0x23a678(0x259)]('Progress\x20t'+_0x23a678(0x1c5)+'\x20longer\x20va'+_0x23a678(0x29c)+_0x23a678(0x288)+'ss\x20notific'+_0x23a678(0x26a)+_0x31bcbd)):logger[_0x23a678(0x259)]('Progress\x20n'+'otificatio'+_0x23a678(0x20d)+_0x23a678(0x209)+_0x23a678(0x1b9)+_0x31bcbd),![];}};while(!![]){try{const _0x3bb936=await this[_0xf62a7a(0x1e5)+_0xf62a7a(0x1d6)][_0xf62a7a(0x1f9)+_0xf62a7a(0x29d)](_0x3bdbeb),_0x23f733=String(_0x3bb936['status'])[_0xf62a7a(0x1d0)+'e'](),_0x154521=String(_0x3bb936['status'])[_0xf62a7a(0x1d0)+'e'](),_0x1bff1d=_0x154521===_0xf62a7a(0x223)&&_0x3bb936[_0xf62a7a(0x256)]?String(_0x3bb936['result'])['toUpperCas'+'e']():_0x23f733;if(_0x39687a!==_0x23f733){_0x39687a=_0x23f733;if(_0x154521===_0xf62a7a(0x223)||_0x23f733===_0xf62a7a(0x205)||_0x23f733===_0xf62a7a(0x2af)){let _0x396919,_0x350de8;if(_0x154521===_0xf62a7a(0x223)){const _0x1ad779=_0x3bb936[_0xf62a7a(0x256)]?String(_0x3bb936['result'])[_0xf62a7a(0x1d0)+'e']():undefined;_0x350de8=_0x1ad779||_0xf62a7a(0x223);if(_0x1ad779===_0xf62a7a(0x1a4))_0x396919=_0x2673a3[_0xf62a7a(0x1b4)];else{if(_0x1ad779===_0xf62a7a(0x205))_0x396919='[FAIL]\x20Ana'+_0xf62a7a(0x27a)+_0xf62a7a(0x26c)+_0xf62a7a(0x27d)+_0xf62a7a(0x265);else _0x1ad779===_0x2673a3[_0xf62a7a(0x20a)]?_0x396919=_0x2673a3[_0xf62a7a(0x210)]:(_0x396919=_0xf62a7a(0x20b)+_0xf62a7a(0x282)+_0xf62a7a(0x291),_0x350de8=_0x2673a3[_0xf62a7a(0x201)]);}}else _0x396919='['+_0x23f733+(_0xf62a7a(0x281)+_0xf62a7a(0x27e)),_0x350de8=_0x23f733;const _0x20bfad={'method':_0xf62a7a(0x238)+_0xf62a7a(0x1a7)+'ss','params':{'progressToken':typeof _0x456899===_0xf62a7a(0x1b3)?_0x456899:String(_0x456899),'progress':_0x2673a3[_0xf62a7a(0x269)](_0x23f733,_0xf62a7a(0x223))?0x64:0x0,'message':_0x396919,'total':0x64}};await _0x4f10cd(_0x20bfad);_0x154521===_0xf62a7a(0x223)?logger[_0xf62a7a(0x1f7)](_0xf62a7a(0x2ad)+_0xf62a7a(0x23d)+'s\x20updated:'+'\x20'+_0x350de8):logger[_0xf62a7a(0x1f7)](_0xf62a7a(0x1f3)+_0xf62a7a(0x272)+_0xf62a7a(0x29b)+_0x350de8);const _0x15d3a7={};_0x15d3a7['type']=_0xf62a7a(0x1d3),_0x15d3a7[_0xf62a7a(0x1d3)]=_0xf62a7a(0x218)+'ompleted.\x0a'+_0xf62a7a(0x1f1)+_0xf62a7a(0x279)+_0x3bdbeb+('\x0aFinal\x20Sta'+_0xf62a7a(0x1ce))+_0x350de8;const _0x4c2f93={};_0x4c2f93[_0xf62a7a(0x1aa)]=_0x3bdbeb,_0x4c2f93[_0xf62a7a(0x1da)]=_0x350de8,_0x4c2f93[_0xf62a7a(0x256)]=_0x3bb936[_0xf62a7a(0x256)],_0x4c2f93[_0xf62a7a(0x24a)]=!![];const _0x5cc5b5={};return _0x5cc5b5['content']=[_0x15d3a7],_0x5cc5b5['structured'+_0xf62a7a(0x1ee)]=_0x4c2f93,_0x5cc5b5;}const _0x18bd58=_0x1876b7[_0x23f733];if(_0x18bd58){const _0x35af63={};_0x35af63[_0xf62a7a(0x2be)]=0x64;const _0x122035={'method':'notificati'+_0xf62a7a(0x1a7)+'ss','params':{'progressToken':typeof _0x456899===_0xf62a7a(0x1b3)?_0x456899:_0x2673a3[_0xf62a7a(0x2bf)](String,_0x456899),'progress':_0x18bd58[_0xf62a7a(0x1ec)]!==null?_0x18bd58[_0xf62a7a(0x1ec)]:_0x23f733==='ANALYSIS'?_0x31b658:_0x18bd58[_0xf62a7a(0x277)],'message':'['+_0x18bd58['id']+']\x20'+_0x18bd58[_0xf62a7a(0x1cf)+'n'],'total':_0x1fe64d,..._0x18bd58[_0xf62a7a(0x1ec)]!==null&&_0x23f733===_0xf62a7a(0x24d)&&_0x35af63}};await _0x4f10cd(_0x122035),_0x5e2ffd&&logger[_0xf62a7a(0x1f7)](_0xf62a7a(0x26e)+'tatus\x20upda'+_0xf62a7a(0x20c)+_0x18bd58['id']+'\x20('+_0x18bd58['name']+')');}else{const _0x1a0520={'method':_0xf62a7a(0x238)+_0xf62a7a(0x1a7)+'ss','params':{'progressToken':typeof _0x456899==='string'?_0x456899:String(_0x456899),'progress':0x1,'total':0x1,'message':'['+_0x23f733+(']\x20Analysis'+'\x20in\x20progre'+_0xf62a7a(0x290))}};await _0x4f10cd(_0x1a0520);}}else{if(_0x23f733===_0xf62a7a(0x24d)){if(_0x3bb936[_0xf62a7a(0x1ec)]!==undefined&&_0x3bb936[_0xf62a7a(0x1ec)]!==null){_0x31b658=_0x3bb936['progress'];const _0x21c333=_0x1876b7[_0x23f733],_0x2c0701={'method':'notificati'+_0xf62a7a(0x1a7)+'ss','params':{'progressToken':typeof _0x456899==='string'?_0x456899:String(_0x456899),'progress':_0x21c333[_0xf62a7a(0x277)],'total':_0x1fe64d,'message':_0xf62a7a(0x230)+_0xf62a7a(0x282)+_0xf62a7a(0x1fa)+_0xf62a7a(0x1bc)+_0x31b658+'%'}};await _0x4f10cd(_0x2c0701);}}}!_0x5e2ffd&&logger[_0xf62a7a(0x1f7)]('Progress\x20t'+_0xf62a7a(0x1cc)+_0xf62a7a(0x228)+_0xf62a7a(0x204)+_0xf62a7a(0x2bc)+_0xf62a7a(0x226)+'notificati'+'ons');await new Promise(_0x2094e2=>setTimeout(_0x2094e2,intervalMs));const _0x3cf70d=Date[_0xf62a7a(0x200)]()-_0x362d2a;if(_0x3cf70d>=maxWaitMs){logger[_0xf62a7a(0x1f7)](_0xf62a7a(0x26d)+_0xf62a7a(0x23b)+_0xf62a7a(0x2b4)+_0xf62a7a(0x1fb)+_0xf62a7a(0x213)+maxWaitMs+_0xf62a7a(0x1d1)+_0x3bdbeb);const _0x20ef91={'method':_0xf62a7a(0x238)+_0xf62a7a(0x1a7)+'ss','params':{'progressToken':typeof _0x456899===_0xf62a7a(0x1b3)?_0x456899:String(_0x456899),'progress':_0x31b658||0x1,'total':0x64,'message':'['+(_0x39687a||'IN_PROGRES'+'S')+(_0xf62a7a(0x1d7)+_0xf62a7a(0x29e)+_0xf62a7a(0x287))+Math[_0xf62a7a(0x20e)](_0x3cf70d/0x3e8)+(_0xf62a7a(0x26f)+_0xf62a7a(0x236)+'\x20in\x20progre'+_0xf62a7a(0x23e))}};return await _0x4f10cd(_0x20ef91),{'content':[{'type':'text','text':_0xf62a7a(0x255)+_0xf62a7a(0x1ba)+_0xf62a7a(0x1dd)+_0xf62a7a(0x2a9)+_0x39687a+(_0xf62a7a(0x2a7)+'g\x20paused\x20a'+_0xf62a7a(0x28c))+Math[_0xf62a7a(0x20e)](_0x3cf70d/0x3e8)+(_0xf62a7a(0x21c)+'call\x20track'+_0xf62a7a(0x1cd)+_0xf62a7a(0x248)+'gain\x20to\x20co'+_0xf62a7a(0x206)+_0xf62a7a(0x1b1)+_0xf62a7a(0x2b1))}],'structuredContent':{'analysisId':_0x3bdbeb,'status':_0x39687a,'completed':![],'elapsedMs':_0x3cf70d}};}}catch(_0x4dd446){logger[_0xf62a7a(0x21d)]('Error\x20chec'+'king\x20analy'+'sis\x20status'+'\x20('+_0x3bdbeb+'):',_0x4dd446),await new Promise(_0x39f406=>setTimeout(_0x39f406,intervalMs));}}}catch(_0x41126f){logger[_0xf62a7a(0x21d)](_0xf62a7a(0x26d)+_0xf62a7a(0x23b)+'acking\x20fai'+_0xf62a7a(0x1eb),_0x41126f);const _0x493d4e={};_0x493d4e[_0xf62a7a(0x263)]=_0xf62a7a(0x1d3),_0x493d4e[_0xf62a7a(0x1d3)]=_0xf62a7a(0x26d)+_0xf62a7a(0x23b)+_0xf62a7a(0x208)+_0xf62a7a(0x1c3)+(_0x41126f instanceof Error?_0x41126f[_0xf62a7a(0x2a1)]:'Unknown\x20er'+'ror');const _0x58e67a={};_0x58e67a[_0xf62a7a(0x21d)]=_0x41126f instanceof Error?_0x41126f[_0xf62a7a(0x2a1)]:_0xf62a7a(0x24c)+_0xf62a7a(0x2bd);const _0x112d35={};return _0x112d35[_0xf62a7a(0x297)]=[_0x493d4e],_0x112d35[_0xf62a7a(0x217)+'Content']=_0x58e67a,_0x112d35[_0xf62a7a(0x296)]=!![],_0x112d35;}}}
1
+ const a7_0x2620f7=a7_0x5b02;(function(_0x169fe2,_0x159e4a){const _0xd8d3dd=a7_0x5b02,_0x314835=_0x169fe2();while(!![]){try{const _0x19152f=-parseInt(_0xd8d3dd(0x130))/0x1+-parseInt(_0xd8d3dd(0x14d))/0x2*(parseInt(_0xd8d3dd(0x1f4))/0x3)+-parseInt(_0xd8d3dd(0x11f))/0x4*(-parseInt(_0xd8d3dd(0x140))/0x5)+parseInt(_0xd8d3dd(0x1f8))/0x6+-parseInt(_0xd8d3dd(0x226))/0x7*(-parseInt(_0xd8d3dd(0x1c9))/0x8)+parseInt(_0xd8d3dd(0x11a))/0x9*(parseInt(_0xd8d3dd(0x1fb))/0xa)+-parseInt(_0xd8d3dd(0x1bb))/0xb;if(_0x19152f===_0x159e4a)break;else _0x314835['push'](_0x314835['shift']());}catch(_0x34f8aa){_0x314835['push'](_0x314835['shift']());}}}(a7_0x1b61,0x22659));function a7_0x5b02(_0x1932ae,_0x426d43){_0x1932ae=_0x1932ae-0x112;const _0x16ff64=a7_0x1b61();let _0x7b71fa=_0x16ff64[_0x1932ae];return _0x7b71fa;}const a7_0x4d9091=(function(){let _0x136982=!![];return function(_0x4ea1e7,_0x514e47){const _0x5c06e9=a7_0x5b02;if('pwYrt'!==_0x5c06e9(0x1be))_0x22a427='[FAIL]\x20Ana'+_0x5c06e9(0x1f1)+'ed\x20to\x20comp'+_0x5c06e9(0x146)+_0x5c06e9(0x17f);else{const _0x548b12=_0x136982?function(){const _0x252b93=_0x5c06e9;if(_0x514e47){const _0x40e944=_0x514e47[_0x252b93(0x1ab)](_0x4ea1e7,arguments);return _0x514e47=null,_0x40e944;}}:function(){};return _0x136982=![],_0x548b12;}};}()),a7_0x7b71fa=a7_0x4d9091(this,function(){const _0x371308=a7_0x5b02;return a7_0x7b71fa[_0x371308(0x182)]()[_0x371308(0x17a)](_0x371308(0x173)+'+$')['toString']()[_0x371308(0x1cb)+'r'](a7_0x7b71fa)[_0x371308(0x17a)](_0x371308(0x173)+'+$');});a7_0x7b71fa();function a7_0x1b61(){const _0x10bd45=['VlJkz','erabilitie','bilities\x20f','Unknown\x20er','\x20|\x0a|\x20Total','nts\x20identi','acking\x20sta','es\x20requiri','ons/progre','atus\x20check','cal\x20|\x20','COMPLETE','info','de\x0a','IN_PROGRES','\x0a\x20\x20\x20\x20\x20\x20','toUpperCas','|\x0a|-------','progress\x20a','checkerInf','rovided.\x20T','y\x20Analysis','Analysis\x20I','\x0a\x0a##\x20Analy','\x20|\x0a|\x20Low\x20|','----|-----','\x20request.','ror','\x0a-\x20Vulnera','MEDIUM','CRITICAL','totalVulne','issues','analysisSe','status','ailed\x20with','led:\x20','(((.+)+)+)','\x0a\x0a##\x20Disco','SCA\x20analys','\x20\x20\x20','fing\x0a','Error\x20chec','[FAIL]\x20Ana','search','find','lineNumber','will\x20retry','Progress\x20n','rly.','ities','cation','toString','getAnalysi','s\x20ID:\x20','highCount','Analysis\x20s','uested:\x20','gain\x20to\x20co','acking\x20rea','\x0a\x0a##\x20Remed','No\x20critica','MXqgL','filter','rt\x0a\x0a##\x20Sum','substring','call\x20track','components','now','\x0a\x20\x20\x20\x20\x20\x20-\x20','sStatus','invalid\x20to','trackAnaly','vulnerabil','[STOP]\x20Ana','version','D:\x20','\x20|\x0a|\x20Statu','\x20longer\x20va','itMs\x20(','\x0aProgress:','type','No\x20compone','oken\x20is\x20in','completed.','Analysis\x20p','[ANALYSIS]','rovided','rvTKD','oken\x20is\x20no','is\x20results','ons','\x20Vulnerabi','apply','otificatio','rogress\x20tr','ing\x20progre','toLowerCas','tatus\x20upda','lowCount','g\x20paused\x20a','ms):\x20','is\x20status:','licenses','n\x20failed\x20(','content','Kabvn','\x20|\x20','lid,\x20stopp','2363581AXmzln','\x0a-\x20Analysi','N/A','pwYrt','fixedVersi','warn','mediumCoun','led:','checkerKey','s\x20updated:','sisProgres','vered\x20Vuln','ss\x20notific','\x0a\x0a...\x20(Sho','92744kAHFgR','\x0a\x0a##\x20Vulne','constructo',']\x20**','ested:\x20','expired\x20to','get\x20SCA\x20an','rability\x20D','ed\x20to\x20comp','includes','Final\x20anal','ANALYSIS','dCcTD','reference','ken','ysisResult','itoring\x20if','getScaAnal','**:\x20Update','total','latest','ss.','\x20|\x0a|\x20Mediu','.\x20[','some',']\x20Tracking','message','acking\x20fai','\x20|\x0a|\x20Compo','s\x20is\x20still','ng\x20immedia','ric\x20|\x20Valu','---|------','\x20of\x20','text','###\x20','----------','m\x20|\x20','\x0a\x20\x20\x20-\x20컴플라이','result','lysis\x20fail','tus:\x20','):\x20','48LeUmar','analysisId','progress','get\x20analys','999024EyrpBx','\x20(CVSS:\x20','ted:\x20','87930gcBQki','\x20in\x20progre','rabilities','Progress\x20t','\x0a\x20\x20\x20\x20\x20\x20-\x20F','HIGH','%\x0aMessage:','string','valid,\x20con','s\x20tracking','\x0a-\x20Status:','rvice','t\x20|\x20Versio','Analysis\x20r','s:\x20','FAIL','s\x20Overview','erity\x20issu','tatus\x20chec','ound:\x20','\x20progress\x20','ss...','s\x20without\x20','name','-|\x0a|\x20Analy','alysis\x20res','\x0a-\x20Result:','\x0a#\x20Securit','tatus:\x20','ief','Progress\x20T','ter\x20',').\x0aTrackin','map','mary\x0a|\x20Met','filePath','descriptio','HWMgl','\x20paused\x20af','Unknown','ntinue\x20mon','criticalCo','bilities\x20F','7Dmrfhc','Content','analysisBr',')\x0a\x20\x20\x20-\x20설명:',']\x20Analysis','ound.','join','isError','\x0a\x0a##\x20Compo','Failed\x20to\x20','ations:\x20','uccessfull','36ZjBLdL','progressTo','ng\x0a','error','ults:\x20','50272UQxelK','ixed\x20in:\x20','te\x20action.','keys','king\x20analy','severity','(Status:\x20','k\x20failed:','언스:\x20','fied.','iation\x20Gui','in\x20progres','Analysis\x20S','notificati','completed','GTuqG','sResults','98901EELwgk','oken\x20not\x20p','structured','\x20|\x0a|\x20High\x20','FtsOY','s\x20|\x20','\x20Analysis\x20','lysis\x20was\x20','\x20from\x20`','[SUCCESS]\x20','sis\x20ID\x20|\x20','unt','compliance','\x20character','LOW','_analysis_','110SrzXEc','\x20|\x0a|\x20Criti','--|','round','Analysis\x20c','length','lete\x20prope','ysis\x20statu','\x20needed.','ls\x0a','rted:\x20','sendNotifi','he\x20client\x20','4388mCleyc'];a7_0x1b61=function(){return _0x10bd45;};return a7_0x1b61();}import{logger}from'../utils/logger.js';import{ANALYSIS_STAGES}from'../config/constants.js';export class AnalysisController{[a7_0x2620f7(0x16f)+'rvice'];constructor(_0x31ce2d){const _0x546603=a7_0x2620f7;this[_0x546603(0x16f)+_0x546603(0x206)]=_0x31ce2d;}async[a7_0x2620f7(0x183)+a7_0x2620f7(0x194)]({analysisId:_0x2d2061}){const _0xb12e0b=a7_0x2620f7;try{logger[_0xb12e0b(0x15a)](_0xb12e0b(0x186)+'tatus\x20requ'+_0xb12e0b(0x1cd)+_0x2d2061);const _0x1aa07e=await this[_0xb12e0b(0x16f)+_0xb12e0b(0x206)]['getAnalysi'+_0xb12e0b(0x194)](_0x2d2061),_0x2073d7=_0x1aa07e[_0xb12e0b(0x170)]==='COMPLETE'&&_0x1aa07e[_0xb12e0b(0x1f0)]?_0x1aa07e[_0xb12e0b(0x1f0)]:_0x1aa07e[_0xb12e0b(0x170)],_0x5f4e1c={};_0x5f4e1c['type']=_0xb12e0b(0x1eb),_0x5f4e1c[_0xb12e0b(0x1eb)]=_0xb12e0b(0x12b)+_0xb12e0b(0x217)+_0x2073d7+(_0xb12e0b(0x19e)+'\x20')+(_0x1aa07e[_0xb12e0b(0x1f6)]||0x0)+(_0xb12e0b(0x201)+'\x20')+(_0x1aa07e[_0xb12e0b(0x1e3)]||_0xb12e0b(0x1bd));const _0x2e83ca={};_0x2e83ca['analysisId']=_0x2d2061,_0x2e83ca[_0xb12e0b(0x170)]=_0x2073d7,_0x2e83ca[_0xb12e0b(0x1f0)]=_0x1aa07e[_0xb12e0b(0x1f0)],_0x2e83ca['progress']=_0x1aa07e['progress'],_0x2e83ca[_0xb12e0b(0x1e3)]=_0x1aa07e['message'];const _0x5ab515={};return _0x5ab515[_0xb12e0b(0x1b7)]=[_0x5f4e1c],_0x5ab515['structured'+_0xb12e0b(0x227)]=_0x2e83ca,_0x5ab515;}catch(_0x4593f1){logger[_0xb12e0b(0x11d)](_0xb12e0b(0x186)+_0xb12e0b(0x20d)+_0xb12e0b(0x126),_0x4593f1);const _0x46be83={};_0x46be83[_0xb12e0b(0x19f)]=_0xb12e0b(0x1eb),_0x46be83[_0xb12e0b(0x1eb)]=_0xb12e0b(0x117)+'get\x20analys'+_0xb12e0b(0x1b4)+'\x20'+(_0x4593f1 instanceof Error?_0x4593f1[_0xb12e0b(0x1e3)]:_0xb12e0b(0x151)+_0xb12e0b(0x169));const _0x183518={};_0x183518[_0xb12e0b(0x11d)]=_0x4593f1 instanceof Error?_0x4593f1[_0xb12e0b(0x1e3)]:'Unknown\x20er'+_0xb12e0b(0x169);const _0x3f5fcb={};return _0x3f5fcb[_0xb12e0b(0x1b7)]=[_0x46be83],_0x3f5fcb['structured'+_0xb12e0b(0x227)]=_0x183518,_0x3f5fcb;}}async[a7_0x2620f7(0x183)+a7_0x2620f7(0x12f)]({analysisId:_0x38cec4}){const _0xc88c6c=a7_0x2620f7,_0x1bf037={};_0x1bf037['RPzyp']=function(_0x513fa8,_0x4ca4b0){return _0x513fa8 instanceof _0x4ca4b0;};const _0x3dfc76=_0x1bf037;try{logger[_0xc88c6c(0x15a)](_0xc88c6c(0x208)+'esults\x20req'+_0xc88c6c(0x187)+_0x38cec4);const _0x12b373=await this['analysisSe'+_0xc88c6c(0x206)][_0xc88c6c(0x183)+_0xc88c6c(0x12f)](_0x38cec4),_0x5b21f1=_0x12b373[_0xc88c6c(0x1f0)]??_0x12b373[_0xc88c6c(0x170)],_0x12f693=0x7a120,_0x243e5a=(_0x2118a8,_0x1bbd62)=>{const _0xc81399=_0xc88c6c;if(_0x2118a8[_0xc81399(0x145)]<=_0x1bbd62)return _0x2118a8;return _0x2118a8[_0xc81399(0x18f)](0x0,_0x1bbd62)+(_0xc81399(0x1c8)+'wing\x20'+_0x1bbd62+_0xc81399(0x1ea)+_0x2118a8[_0xc81399(0x145)]+(_0xc81399(0x13d)+'s)'));},_0x17ea4f=_0x12b373['vulnerabil'+_0xc88c6c(0x180)][_0xc88c6c(0x21c)]((_0x15fc27,_0x4691e6)=>{const _0x262f0b=_0xc88c6c,_0x32f20f=_0x15fc27[_0x262f0b(0x161)+'o']?.[_0x262f0b(0x212)]||_0x15fc27[_0x262f0b(0x1c3)],_0x3181a1=_0x15fc27[_0x262f0b(0x161)+'o']?.[_0x262f0b(0x21f)+'n']||_0x15fc27['descriptio'+'n'],_0x1b7eba=_0x15fc27[_0x262f0b(0x161)+'o']?.[_0x262f0b(0x13c)]&&_0x15fc27[_0x262f0b(0x161)+'o'][_0x262f0b(0x13c)][_0x262f0b(0x145)]>0x0?_0x262f0b(0x1ef)+_0x262f0b(0x127)+_0x15fc27[_0x262f0b(0x161)+'o'][_0x262f0b(0x13c)][_0x262f0b(0x21c)](_0x25f599=>''+_0x25f599['reference'][_0x262f0b(0x212)]+(_0x25f599[_0x262f0b(0x1d6)][_0x262f0b(0x199)]?'\x20('+_0x25f599[_0x262f0b(0x1d6)]['version']+')':''))[_0x262f0b(0x114)](',\x20'):'';return _0x4691e6+0x1+'.\x20['+_0x15fc27[_0x262f0b(0x124)]+']\x20**'+_0x32f20f+'**\x20('+_0x15fc27[_0x262f0b(0x1c3)]+(_0x262f0b(0x229)+'\x20')+_0x3181a1+(_0x15fc27['filePath']?'\x0a\x20\x20\x20-\x20파일:\x20'+_0x15fc27[_0x262f0b(0x21e)]+(_0x15fc27[_0x262f0b(0x17c)]?':'+_0x15fc27[_0x262f0b(0x17c)]:''):'')+_0x1b7eba;})['join']('\x0a\x0a'),_0x36ec37=(_0xc88c6c(0x216)+_0xc88c6c(0x163)+'\x20Results\x0a\x0a'+'##\x20Analysi'+_0xc88c6c(0x20b)+_0xc88c6c(0x1bc)+_0xc88c6c(0x184)+_0x12b373[_0xc88c6c(0x1f5)]+(_0xc88c6c(0x205)+'\x20')+_0x5b21f1+(_0xc88c6c(0x215)+'\x20')+(_0x12b373[_0xc88c6c(0x1f0)]||_0xc88c6c(0x1bd))+(_0xc88c6c(0x16a)+_0xc88c6c(0x225)+_0xc88c6c(0x20e))+_0x12b373[_0xc88c6c(0x197)+'ities'][_0xc88c6c(0x145)]+(_0xc88c6c(0x165)+'sis\x20Briefi'+_0xc88c6c(0x11c))+_0x243e5a(_0x12b373[_0xc88c6c(0x228)+_0xc88c6c(0x218)]||'',_0x12f693)+(_0xc88c6c(0x174)+_0xc88c6c(0x1c6)+_0xc88c6c(0x14f)+'s\x0a')+_0x243e5a(_0x17ea4f,_0x12f693)+_0xc88c6c(0x15d))['trim'](),_0x221a76={'analysisId':_0x12b373[_0xc88c6c(0x1f5)],'status':_0x5b21f1,'result':_0x12b373[_0xc88c6c(0x1f0)],'vulnerabilities':_0x12b373[_0xc88c6c(0x197)+_0xc88c6c(0x180)],'analysisBrief':_0x12b373[_0xc88c6c(0x228)+_0xc88c6c(0x218)]?_0x243e5a(_0x12b373[_0xc88c6c(0x228)+_0xc88c6c(0x218)],_0x12f693):''},_0x31edde={};_0x31edde[_0xc88c6c(0x19f)]='text',_0x31edde[_0xc88c6c(0x1eb)]=_0x36ec37;const _0x275cfd={};return _0x275cfd[_0xc88c6c(0x1b7)]=[_0x31edde],_0x275cfd[_0xc88c6c(0x132)+_0xc88c6c(0x227)]=_0x221a76,_0x275cfd;}catch(_0x528a2c){logger['error'](_0xc88c6c(0x117)+_0xc88c6c(0x1f7)+_0xc88c6c(0x1a8)+':',_0x528a2c);const _0x184f4e=_0x3dfc76['RPzyp'](_0x528a2c,Error)?_0x528a2c['message']:_0xc88c6c(0x151)+_0xc88c6c(0x169),_0x493330={};_0x493330[_0xc88c6c(0x19f)]=_0xc88c6c(0x1eb),_0x493330[_0xc88c6c(0x1eb)]=_0xc88c6c(0x117)+_0xc88c6c(0x1f7)+_0xc88c6c(0x1a8)+':\x20'+_0x184f4e;const _0x2a9893={};_0x2a9893[_0xc88c6c(0x11d)]=_0x184f4e;const _0x4f981a={};return _0x4f981a[_0xc88c6c(0x1b7)]=[_0x493330],_0x4f981a[_0xc88c6c(0x132)+'Content']=_0x2a9893,_0x4f981a[_0xc88c6c(0x115)]=!![],_0x4f981a;}}async[a7_0x2620f7(0x1da)+a7_0x2620f7(0x1d8)+'s']({analysisId:_0x11ac35}){const _0x43a170=a7_0x2620f7;try{logger[_0x43a170(0x15a)](_0x43a170(0x175)+_0x43a170(0x1a8)+'\x20requested'+':\x20'+_0x11ac35);const _0x5c07bc=await this['analysisSe'+'rvice'][_0x43a170(0x1da)+_0x43a170(0x1d8)+'s'](_0x11ac35),_0x35b1ad=_0x5c07bc[_0x43a170(0x1f0)]??_0x5c07bc[_0x43a170(0x170)],_0x137337='|\x20Componen'+_0x43a170(0x207)+'n\x20|\x20Licens'+'e\x20|\x20Vulner'+'abilities\x20'+'(C/H/M/L)\x20'+_0x43a170(0x15f)+_0x43a170(0x167)+_0x43a170(0x167)+'----|-----'+_0x43a170(0x1ed)+_0x43a170(0x1ed)+_0x43a170(0x142),_0x504107=_0x5c07bc[_0x43a170(0x191)][_0x43a170(0x21c)](_0x322ffd=>{const _0x12bd09=_0x43a170,_0x273e7b=_0x322ffd[_0x12bd09(0x1b5)][_0x12bd09(0x145)]>0x0?_0x322ffd[_0x12bd09(0x1b5)][_0x12bd09(0x21c)](_0x80f3ec=>_0x80f3ec[_0x12bd09(0x212)])['join'](',\x20'):_0x12bd09(0x222),_0xa2f093=_0x322ffd['issues'][_0x12bd09(0x18d)](_0x2fa866=>_0x2fa866[_0x12bd09(0x124)]===_0x12bd09(0x16c))[_0x12bd09(0x145)],_0x485957=_0x322ffd[_0x12bd09(0x16e)][_0x12bd09(0x18d)](_0xf7c7ae=>_0xf7c7ae[_0x12bd09(0x124)]===_0x12bd09(0x200))[_0x12bd09(0x145)],_0x549bcb=_0x322ffd[_0x12bd09(0x16e)][_0x12bd09(0x18d)](_0x17069b=>_0x17069b[_0x12bd09(0x124)]===_0x12bd09(0x16b))[_0x12bd09(0x145)],_0x189953=_0x322ffd[_0x12bd09(0x16e)][_0x12bd09(0x18d)](_0x27f5fb=>_0x27f5fb['severity']===_0x12bd09(0x13e))['length'],_0x25b17c=_0xa2f093+_0x485957+_0x549bcb+_0x189953+'\x20('+_0xa2f093+'/'+_0x485957+'/'+_0x549bcb+'/'+_0x189953+')';return'|\x20'+_0x322ffd[_0x12bd09(0x212)]+'\x20|\x20'+_0x322ffd[_0x12bd09(0x199)]+'\x20|\x20'+_0x273e7b+_0x12bd09(0x1b9)+_0x25b17c+'\x20|';})[_0x43a170(0x114)]('\x0a'),_0x4354c0=_0x5c07bc['components'][_0x43a170(0x145)]>0x0?_0x137337+'\x0a'+_0x504107:_0x43a170(0x1a0)+_0x43a170(0x153)+_0x43a170(0x128),_0x57a9da=_0x5c07bc['components'][_0x43a170(0x18d)](_0x32ecb0=>_0x32ecb0[_0x43a170(0x16e)][_0x43a170(0x145)]>0x0)['map'](_0x3035d0=>{const _0x11b4b9=_0x43a170;if(_0x11b4b9(0x1b8)===_0x11b4b9(0x12e)){const _0x415218=_0x326baa[_0x11b4b9(0x16e)][_0x11b4b9(0x17b)](_0xbd0dbb=>_0xbd0dbb[_0x11b4b9(0x124)]===_0x11b4b9(0x16c)||_0xbd0dbb[_0x11b4b9(0x124)]==='HIGH'),_0x375eee=_0x415218?.['fixedVersi'+'on']||_0x11b4b9(0x1dd);return'-\x20**'+_0x7d7c69[_0x11b4b9(0x212)]+('**:\x20Update'+_0x11b4b9(0x138))+_0x4c0c70[_0x11b4b9(0x199)]+'`\x20to\x20`'+_0x375eee+'`';}else{const _0x5850fc=_0x3035d0[_0x11b4b9(0x16e)][_0x11b4b9(0x21c)]((_0x22d04f,_0x3f6927)=>{const _0x3e4294=_0x11b4b9;let _0x11d292=_0x3e4294(0x176)+(_0x3f6927+0x1)+_0x3e4294(0x1e0)+_0x22d04f[_0x3e4294(0x124)]+_0x3e4294(0x1cc)+_0x22d04f['cveId']+'**';if(_0x22d04f['cvssScore'])_0x11d292+=_0x3e4294(0x1f9)+_0x22d04f['cvssScore']+')';if(_0x22d04f[_0x3e4294(0x21f)+'n'])_0x11d292+=_0x3e4294(0x193)+_0x22d04f['descriptio'+'n'];if(_0x22d04f[_0x3e4294(0x1bf)+'on'])_0x11d292+=_0x3e4294(0x1ff)+_0x3e4294(0x120)+_0x22d04f[_0x3e4294(0x1bf)+'on'];return _0x11d292;})['join']('\x0a');return _0x11b4b9(0x1ec)+_0x3035d0[_0x11b4b9(0x212)]+'@'+_0x3035d0[_0x11b4b9(0x199)]+'\x0a'+_0x5850fc;}})[_0x43a170(0x114)]('\x0a\x0a'),_0x48440d=_0x5c07bc[_0x43a170(0x191)][_0x43a170(0x18d)](_0x3ef4d6=>_0x3ef4d6[_0x43a170(0x16e)][_0x43a170(0x1e1)](_0x514d53=>_0x514d53[_0x43a170(0x124)]===_0x43a170(0x16c)||_0x514d53['severity']===_0x43a170(0x200)))[_0x43a170(0x21c)](_0x4770e1=>{const _0xdc479a=_0x43a170,_0x9d438b=_0x4770e1[_0xdc479a(0x16e)]['find'](_0x3eb964=>_0x3eb964[_0xdc479a(0x124)]===_0xdc479a(0x16c)||_0x3eb964[_0xdc479a(0x124)]==='HIGH'),_0x4a132c=_0x9d438b?.[_0xdc479a(0x1bf)+'on']||'latest';return'-\x20**'+_0x4770e1[_0xdc479a(0x212)]+(_0xdc479a(0x1db)+_0xdc479a(0x138))+_0x4770e1[_0xdc479a(0x199)]+'`\x20to\x20`'+_0x4a132c+'`';})[_0x43a170(0x114)]('\x0a'),_0x53b72f=('\x0a#\x20SCA\x20Ana'+'lysis\x20Repo'+_0x43a170(0x18e)+_0x43a170(0x21d)+_0x43a170(0x1e8)+'e\x20|\x0a|-----'+_0x43a170(0x1e9)+_0x43a170(0x213)+_0x43a170(0x13a)+_0x5c07bc['analysisId']+(_0x43a170(0x19b)+_0x43a170(0x135))+_0x35b1ad+(_0x43a170(0x1e5)+'nents\x20|\x20')+_0x5c07bc['components'][_0x43a170(0x145)]+(_0x43a170(0x152)+_0x43a170(0x1aa)+'lities\x20|\x20')+_0x5c07bc[_0x43a170(0x16d)+'rabilities']+(_0x43a170(0x141)+_0x43a170(0x158))+_0x5c07bc['criticalCo'+_0x43a170(0x13b)]+(_0x43a170(0x133)+'|\x20')+_0x5c07bc[_0x43a170(0x185)]+(_0x43a170(0x1df)+_0x43a170(0x1ee))+_0x5c07bc[_0x43a170(0x1c1)+'t']+(_0x43a170(0x166)+'\x20')+_0x5c07bc['lowCount']+('\x20|\x0a\x0a##\x20Ana'+'lysis\x20Brie'+_0x43a170(0x177))+_0x5c07bc[_0x43a170(0x228)+_0x43a170(0x218)]+(_0x43a170(0x116)+'nent\x20Detai'+_0x43a170(0x149))+_0x4354c0+(_0x43a170(0x1ca)+_0x43a170(0x1d0)+'etails\x0a')+(_0x57a9da||'No\x20vulnera'+_0x43a170(0x150)+_0x43a170(0x113))+(_0x43a170(0x18a)+_0x43a170(0x129)+_0x43a170(0x15b))+(_0x48440d||_0x43a170(0x18b)+'l/high\x20sev'+_0x43a170(0x20c)+_0x43a170(0x155)+_0x43a170(0x1e7)+_0x43a170(0x121))+'\x0a\x20\x20\x20\x20\x20\x20')['trim'](),_0x3476b8={};_0x3476b8[_0x43a170(0x1f5)]=_0x5c07bc['analysisId'],_0x3476b8[_0x43a170(0x170)]=_0x35b1ad,_0x3476b8[_0x43a170(0x1f0)]=_0x5c07bc['result'],_0x3476b8[_0x43a170(0x191)]=_0x5c07bc[_0x43a170(0x191)],_0x3476b8[_0x43a170(0x16d)+_0x43a170(0x1fd)]=_0x5c07bc['totalVulne'+_0x43a170(0x1fd)],_0x3476b8[_0x43a170(0x224)+'unt']=_0x5c07bc[_0x43a170(0x224)+_0x43a170(0x13b)],_0x3476b8[_0x43a170(0x185)]=_0x5c07bc['highCount'],_0x3476b8['mediumCoun'+'t']=_0x5c07bc[_0x43a170(0x1c1)+'t'],_0x3476b8['lowCount']=_0x5c07bc[_0x43a170(0x1b1)],_0x3476b8['analysisBr'+_0x43a170(0x218)]=_0x5c07bc[_0x43a170(0x228)+_0x43a170(0x218)];const _0x3d1e29=_0x3476b8,_0x4ea11b={};_0x4ea11b[_0x43a170(0x19f)]=_0x43a170(0x1eb),_0x4ea11b[_0x43a170(0x1eb)]=_0x53b72f;const _0x209f3e={};return _0x209f3e[_0x43a170(0x1b7)]=[_0x4ea11b],_0x209f3e[_0x43a170(0x132)+_0x43a170(0x227)]=_0x3d1e29,_0x209f3e;}catch(_0x233f67){logger[_0x43a170(0x11d)]('Failed\x20to\x20'+_0x43a170(0x1cf)+_0x43a170(0x214)+'ults:',_0x233f67);const _0x438cd4=_0x233f67 instanceof Error?_0x233f67[_0x43a170(0x1e3)]:_0x43a170(0x151)+'ror',_0x4b845e={};_0x4b845e[_0x43a170(0x19f)]='text',_0x4b845e[_0x43a170(0x1eb)]='Failed\x20to\x20'+'get\x20SCA\x20an'+_0x43a170(0x214)+_0x43a170(0x11e)+_0x438cd4;const _0x170ba8={};_0x170ba8['error']=_0x438cd4;const _0x3a2f31={};return _0x3a2f31[_0x43a170(0x1b7)]=[_0x4b845e],_0x3a2f31[_0x43a170(0x132)+_0x43a170(0x227)]=_0x170ba8,_0x3a2f31[_0x43a170(0x115)]=!![],_0x3a2f31;}}async[a7_0x2620f7(0x196)+a7_0x2620f7(0x1c5)+'s']({analysisId:_0x3d75af,intervalMs:intervalMs=0xbb8,maxWaitMs:maxWaitMs=0x7530},_0x47a866){const _0x612250=a7_0x2620f7,_0x2e7012={'HWMgl':function(_0x404bb2,_0x45e119){return _0x404bb2(_0x45e119);},'MXqgL':_0x612250(0x159),'lbWgd':_0x612250(0x139)+_0x612250(0x144)+'ompleted\x20s'+_0x612250(0x119)+'y.','dCcTD':function(_0x29a873,_0x5e9137){return _0x29a873(_0x5e9137);},'rvTKD':function(_0x49a664,_0x4ca2e6){return _0x49a664===_0x4ca2e6;},'FtsOY':_0x612250(0x202),'VlJkz':function(_0x51641d,_0x4b9b5e){return _0x51641d-_0x4b9b5e;}};try{const _0x5a1135=_0x47a866['_meta']?.[_0x612250(0x11b)+_0x612250(0x1d7)];if(!_0x5a1135){const _0x152aba={};_0x152aba[_0x612250(0x19f)]='text',_0x152aba[_0x612250(0x1eb)]=_0x612250(0x219)+_0x612250(0x131)+_0x612250(0x162)+_0x612250(0x14c)+'must\x20suppo'+'rt\x20progres'+_0x612250(0x204)+'.';const _0x2153ce={};_0x2153ce['error']=_0x612250(0x219)+_0x612250(0x131)+_0x612250(0x1a5);const _0x423e51={};return _0x423e51['content']=[_0x152aba],_0x423e51['structured'+'Content']=_0x2153ce,_0x423e51;}logger['info']('Analysis\x20p'+_0x612250(0x1ad)+_0x612250(0x154)+_0x612250(0x14a)+_0x3d75af);const _0x12bf33=ANALYSIS_STAGES;let _0x30fc48=Object[_0x612250(0x122)](_0x12bf33)[_0x612250(0x145)],_0x15d5b3=null,_0x802767=0x0,_0x45ea18=!![];const _0x5a77f5=Date[_0x612250(0x192)](),_0x5d2411=async _0x42f035=>{const _0x9b205f=_0x612250;if(!_0x45ea18)return![];try{return await _0x47a866[_0x9b205f(0x14b)+_0x9b205f(0x181)](_0x42f035),!![];}catch(_0x133238){const _0xa81b2b=_0x133238 instanceof Error?_0x133238['message']:_0x9b205f(0x151)+_0x9b205f(0x169);return _0xa81b2b[_0x9b205f(0x1d2)]('unknown\x20to'+'ken')||_0xa81b2b[_0x9b205f(0x1d2)](_0x9b205f(0x195)+_0x9b205f(0x1d7))||_0xa81b2b[_0x9b205f(0x1d2)](_0x9b205f(0x1ce)+'ken')||_0xa81b2b[_0x9b205f(0x1af)+'e']()[_0x9b205f(0x1d2)]('token')?(_0x45ea18=![],logger[_0x9b205f(0x1c0)](_0x9b205f(0x1fe)+_0x9b205f(0x1a7)+_0x9b205f(0x19c)+_0x9b205f(0x1ba)+_0x9b205f(0x1ae)+_0x9b205f(0x1c7)+_0x9b205f(0x118)+_0xa81b2b)):logger[_0x9b205f(0x1c0)](_0x9b205f(0x17e)+_0x9b205f(0x1ac)+_0x9b205f(0x1b6)+_0x9b205f(0x17d)+_0x9b205f(0x1f3)+_0xa81b2b),![];}};while(!![]){try{const _0x3faf39=await this[_0x612250(0x16f)+_0x612250(0x206)][_0x612250(0x183)+_0x612250(0x194)](_0x3d75af),_0x50aa1c=_0x2e7012[_0x612250(0x220)](String,_0x3faf39[_0x612250(0x170)])[_0x612250(0x15e)+'e'](),_0x4414e9=String(_0x3faf39['status'])[_0x612250(0x15e)+'e'](),_0x571df5=_0x4414e9===_0x2e7012[_0x612250(0x18c)]&&_0x3faf39[_0x612250(0x1f0)]?String(_0x3faf39[_0x612250(0x1f0)])[_0x612250(0x15e)+'e']():_0x50aa1c;if(_0x15d5b3!==_0x50aa1c){_0x15d5b3=_0x50aa1c;if(_0x4414e9===_0x612250(0x159)||_0x50aa1c==='FAIL'||_0x50aa1c==='FAILED'){let _0x56671b,_0x81e241;if(_0x4414e9==='COMPLETE'){const _0x562b7d=_0x3faf39[_0x612250(0x1f0)]?String(_0x3faf39[_0x612250(0x1f0)])['toUpperCas'+'e']():undefined;_0x81e241=_0x562b7d||_0x612250(0x159);if(_0x562b7d==='SUCCESS')_0x56671b=_0x2e7012['lbWgd'];else{if(_0x562b7d===_0x612250(0x20a))_0x56671b=_0x612250(0x179)+'lysis\x20fail'+_0x612250(0x1d1)+_0x612250(0x146)+_0x612250(0x17f);else _0x562b7d==='STOP'?_0x56671b=_0x612250(0x198)+_0x612250(0x137)+'stopped\x20by'+_0x612250(0x168):(_0x56671b='[COMPLETE]'+'\x20Analysis\x20'+_0x612250(0x1a2),_0x81e241=_0x612250(0x159));}}else _0x56671b='['+_0x50aa1c+(_0x612250(0x112)+'\x20failed.'),_0x81e241=_0x50aa1c;const _0x26a3d7={'method':_0x612250(0x12c)+_0x612250(0x156)+'ss','params':{'progressToken':typeof _0x5a1135===_0x612250(0x202)?_0x5a1135:String(_0x5a1135),'progress':_0x50aa1c===_0x612250(0x159)?0x64:0x0,'message':_0x56671b,'total':0x64}};await _0x5d2411(_0x26a3d7);_0x4414e9===_0x612250(0x159)?logger[_0x612250(0x15a)](_0x612250(0x1d3)+_0x612250(0x147)+_0x612250(0x1c4)+'\x20'+_0x81e241):logger['info']('Analysis\x20f'+_0x612250(0x171)+'\x20status:\x20'+_0x81e241);const _0x9350e8={};_0x9350e8[_0x612250(0x19f)]=_0x612250(0x1eb),_0x9350e8[_0x612250(0x1eb)]=_0x612250(0x144)+'ompleted.\x0a'+_0x612250(0x164)+_0x612250(0x19a)+_0x3d75af+('\x0aFinal\x20Sta'+_0x612250(0x1f2))+_0x81e241;const _0x36c659={};_0x36c659[_0x612250(0x1f5)]=_0x3d75af,_0x36c659[_0x612250(0x170)]=_0x81e241,_0x36c659[_0x612250(0x1f0)]=_0x3faf39[_0x612250(0x1f0)],_0x36c659[_0x612250(0x12d)]=!![];const _0x13f523={};return _0x13f523[_0x612250(0x1b7)]=[_0x9350e8],_0x13f523[_0x612250(0x132)+_0x612250(0x227)]=_0x36c659,_0x13f523;}const _0x2fa6ef=_0x12bf33[_0x50aa1c];if(_0x2fa6ef){const _0x190c40={};_0x190c40[_0x612250(0x1dc)]=0x64;const _0x71d6a2={'method':_0x612250(0x12c)+_0x612250(0x156)+'ss','params':{'progressToken':typeof _0x5a1135==='string'?_0x5a1135:_0x2e7012[_0x612250(0x220)](String,_0x5a1135),'progress':_0x2fa6ef[_0x612250(0x1f6)]!==null?_0x2fa6ef[_0x612250(0x1f6)]:_0x50aa1c===_0x612250(0x1d4)?_0x802767:_0x2fa6ef['order'],'message':'['+_0x2fa6ef['id']+']\x20'+_0x2fa6ef[_0x612250(0x21f)+'n'],'total':_0x30fc48,..._0x2fa6ef[_0x612250(0x1f6)]!==null&&_0x50aa1c===_0x612250(0x1d4)&&_0x190c40}};await _0x5d2411(_0x71d6a2),_0x45ea18&&logger['info'](_0x612250(0x186)+_0x612250(0x1b0)+_0x612250(0x1fa)+_0x2fa6ef['id']+'\x20('+_0x2fa6ef[_0x612250(0x212)]+')');}else{const _0x689932={'method':_0x612250(0x12c)+_0x612250(0x156)+'ss','params':{'progressToken':typeof _0x5a1135===_0x612250(0x202)?_0x5a1135:String(_0x5a1135),'progress':0x1,'total':0x1,'message':'['+_0x50aa1c+(_0x612250(0x112)+_0x612250(0x1fc)+_0x612250(0x210))}};await _0x2e7012[_0x612250(0x1d5)](_0x5d2411,_0x689932);}}else{if(_0x50aa1c===_0x612250(0x1d4)){if(_0x3faf39[_0x612250(0x1f6)]!==undefined&&_0x3faf39['progress']!==null){_0x802767=_0x3faf39[_0x612250(0x1f6)];const _0xe0704e=_0x12bf33[_0x50aa1c],_0x2428c5={'method':_0x612250(0x12c)+'ons/progre'+'ss','params':{'progressToken':_0x2e7012[_0x612250(0x1a6)](typeof _0x5a1135,_0x2e7012[_0x612250(0x134)])?_0x5a1135:String(_0x5a1135),'progress':_0xe0704e['order'],'total':_0x30fc48,'message':_0x612250(0x1a4)+_0x612250(0x136)+_0x612250(0x12a)+_0x612250(0x209)+_0x802767+'%'}};await _0x5d2411(_0x2428c5);}}}!_0x45ea18&&logger[_0x612250(0x15a)](_0x612250(0x1fe)+_0x612250(0x1a1)+_0x612250(0x203)+'tinuing\x20st'+_0x612250(0x157)+_0x612250(0x211)+_0x612250(0x12c)+_0x612250(0x1a9));await new Promise(_0x27f7d3=>setTimeout(_0x27f7d3,intervalMs));const _0x17e8e7=_0x2e7012[_0x612250(0x14e)](Date['now'](),_0x5a77f5);if(_0x17e8e7>=maxWaitMs){logger[_0x612250(0x15a)]('Analysis\x20p'+'rogress\x20tr'+_0x612250(0x189)+'ched\x20maxWa'+_0x612250(0x19d)+maxWaitMs+_0x612250(0x1b3)+_0x3d75af);const _0x26b221={'method':_0x612250(0x12c)+_0x612250(0x156)+'ss','params':{'progressToken':typeof _0x5a1135===_0x2e7012[_0x612250(0x134)]?_0x5a1135:String(_0x5a1135),'progress':_0x802767||0x1,'total':0x64,'message':'['+(_0x15d5b3||_0x612250(0x15c)+'S')+(_0x612250(0x1e2)+_0x612250(0x221)+_0x612250(0x21a))+Math[_0x612250(0x143)](_0x17e8e7/0x3e8)+('s.\x20Analysi'+_0x612250(0x1e6)+'\x20in\x20progre'+_0x612250(0x1de))}};return await _0x5d2411(_0x26b221),{'content':[{'type':'text','text':'Analysis\x20i'+'s\x20still\x20in'+_0x612250(0x20f)+_0x612250(0x125)+_0x15d5b3+(_0x612250(0x21b)+_0x612250(0x1b2)+'fter\x20')+Math[_0x612250(0x143)](_0x17e8e7/0x3e8)+('s.\x0aPlease\x20'+_0x612250(0x190)+_0x612250(0x13f)+_0x612250(0x160)+_0x612250(0x188)+_0x612250(0x223)+_0x612250(0x1d9)+_0x612250(0x148))}],'structuredContent':{'analysisId':_0x3d75af,'status':_0x15d5b3,'completed':![],'elapsedMs':_0x17e8e7}};}}catch(_0x3a3e0a){logger[_0x612250(0x11d)](_0x612250(0x178)+_0x612250(0x123)+'sis\x20status'+'\x20('+_0x3d75af+'):',_0x3a3e0a),await new Promise(_0x2b3f8a=>setTimeout(_0x2b3f8a,intervalMs));}}}catch(_0x3a8e88){logger[_0x612250(0x11d)]('Analysis\x20p'+_0x612250(0x1ad)+_0x612250(0x1e4)+_0x612250(0x1c2),_0x3a8e88);const _0x59b3a3={};_0x59b3a3[_0x612250(0x19f)]=_0x612250(0x1eb),_0x59b3a3[_0x612250(0x1eb)]=_0x612250(0x1a3)+_0x612250(0x1ad)+_0x612250(0x1e4)+_0x612250(0x172)+(_0x3a8e88 instanceof Error?_0x3a8e88['message']:_0x612250(0x151)+_0x612250(0x169));const _0x1c4333={};_0x1c4333[_0x612250(0x11d)]=_0x3a8e88 instanceof Error?_0x3a8e88[_0x612250(0x1e3)]:_0x612250(0x151)+_0x612250(0x169);const _0x37cbce={};return _0x37cbce[_0x612250(0x1b7)]=[_0x59b3a3],_0x37cbce[_0x612250(0x132)+_0x612250(0x227)]=_0x1c4333,_0x37cbce[_0x612250(0x115)]=!![],_0x37cbce;}}}
@@ -1 +1 @@
1
- const a8_0x226829=a8_0x2eba;function a8_0x14de(){const _0x53425f=['s\x20started.','only\x20suppo','analysisSe','ne\x20file\x20pa','ovided','Multi-file','analysisId','analyzeFil','esSast','67046tLGTjD','quested:\x20','(((.+)+)+)','\x0aFolder:\x20','join','rvice','31106ZUVsvh','석은\x20확장자가\x20있는','quest\x20fail','ed:\x20','\x20analysis\x20','at\x20least\x20o','trim','apply','445311XnRXgC','5nabSNv','urity\x20anal','eSecurity','red\x20-\x20SAST','derSast','nalysis\x20re','is\x20failed:','습니다.\x20분석할\x20코','769962rrtqPq','analysis\x20f','드를\x20제공해주세요.','):\x20','equested:\x20','No\x20files\x20t','sJxBL','\x20content\x20-','\x20requires\x20','ror','4370620DaekYt','info','\x20The\x20fileP','text','ity\x20analys','1107648eqSLFQ','der','Security\x20a','\x0a\x0aSkipped\x20','\x0aStatus:\x20','3ExfLaL','zySMG','uested:\x20','led:','o\x20analyze.','sion\x20requi','\x0aZIP\x20File:','h\x20not\x20prov','ided.','File\x20paths','analyzeZip','content','3lSQvrL','rts\x20files\x20','ysis\x20reque','ZIP\x20file\x20s','vyRnk','fileName','analyzeFol','Content','ath\x20not\x20pr','length','sted:\x20','\x20file\x20path','message','nalysis\x20ha','structured','\x20security\x20','type','status','Empty\x20file','File','ided','th.','\x20no\x20code\x20t','search','alysis\x20fai','ID:\x20','analyzeMul','constructo','ovided.','s:\x20','skippedFol','toString','tipleFiles','Unknown\x20er','error','ded','Sast','1004396URKqEw','ysis\x20faile','\x20파일만\x20지원합니다','Folder\x20pat','ZIP\x20file\x20p','ders','파일\x20내용이\x20비어있','folders\x20(','ayPGL','\x0aAnalysis\x20','fileConten','\x0aNumber\x20of','Folder\x20sec','filePathCo','FromPaths','QHCAE','sions'];a8_0x14de=function(){return _0x53425f;};return a8_0x14de();}(function(_0xb0fc8,_0x5bac31){const _0x555f59=a8_0x2eba,_0x255513=_0xb0fc8();while(!![]){try{const _0x318bd3=-parseInt(_0x555f59(0xf2))/0x1*(-parseInt(_0x555f59(0x143))/0x2)+parseInt(_0x555f59(0xfe))/0x3*(parseInt(_0x555f59(0x123))/0x4)+-parseInt(_0x555f59(0x14c))/0x5*(-parseInt(_0x555f59(0x154))/0x6)+parseInt(_0x555f59(0x13d))/0x7+parseInt(_0x555f59(0xed))/0x8+parseInt(_0x555f59(0x14b))/0x9+-parseInt(_0x555f59(0x15e))/0xa;if(_0x318bd3===_0x5bac31)break;else _0x255513['push'](_0x255513['shift']());}catch(_0x1ef270){_0x255513['push'](_0x255513['shift']());}}}(a8_0x14de,0x2d8a8));const a8_0x53fa98=(function(){let _0xbc6965=!![];return function(_0x224102,_0x312f8c){const _0x2df10a=_0xbc6965?function(){const _0x25340a=a8_0x2eba;if(_0x312f8c){const _0x4d895d=_0x312f8c[_0x25340a(0x14a)](_0x224102,arguments);return _0x312f8c=null,_0x4d895d;}}:function(){};return _0xbc6965=![],_0x2df10a;};}()),a8_0x59e4e3=a8_0x53fa98(this,function(){const _0x79be28=a8_0x2eba;return a8_0x59e4e3[_0x79be28(0x11d)]()[_0x79be28(0x115)]('(((.+)+)+)'+'+$')['toString']()[_0x79be28(0x119)+'r'](a8_0x59e4e3)[_0x79be28(0x115)](_0x79be28(0x13f)+'+$');});function a8_0x2eba(_0x194f78,_0x566d9d){_0x194f78=_0x194f78-0xed;const _0x239f63=a8_0x14de();let _0x59e4e3=_0x239f63[_0x194f78];return _0x59e4e3;}a8_0x59e4e3();import{logger}from'../utils/logger.js';export class SastController{[a8_0x226829(0x136)+a8_0x226829(0x142)];constructor(_0x216e6f){const _0x9d373c=a8_0x226829;this['analysisSe'+_0x9d373c(0x142)]=_0x216e6f;}async[a8_0x226829(0x13b)+'eSast']({fileContent:_0x1d35be,fileName:_0x4c7f71}){const _0x176f70=a8_0x226829,_0x385a5b={};_0x385a5b[_0x176f70(0x102)]=function(_0x53f107,_0x262371){return _0x53f107===_0x262371;};const _0x1768d1=_0x385a5b;try{logger[_0x176f70(0x15f)](_0x176f70(0xef)+'nalysis\x20re'+_0x176f70(0x13e)+_0x4c7f71);if(!_0x1d35be||_0x1d35be[_0x176f70(0x149)]()[_0x176f70(0x107)]===0x0){const _0x549e55={};_0x549e55[_0x176f70(0x10e)]=_0x176f70(0x161),_0x549e55[_0x176f70(0x161)]=_0x176f70(0x129)+_0x176f70(0x153)+_0x176f70(0x156);const _0x27b8ab={};_0x27b8ab[_0x176f70(0x120)]=_0x176f70(0x110)+_0x176f70(0x15b)+_0x176f70(0x114)+'o\x20analyze';const _0x3f4091={};return _0x3f4091[_0x176f70(0xfd)]=[_0x549e55],_0x3f4091['structured'+_0x176f70(0x105)]=_0x27b8ab,_0x3f4091;}const _0x25ac75=_0x4c7f71['match'](/\.([^.]+)$/);if(!_0x25ac75||_0x1768d1['vyRnk'](_0x25ac75[0x1]['length'],0x0)){const _0x40cc34={};_0x40cc34[_0x176f70(0x10e)]=_0x176f70(0x161),_0x40cc34[_0x176f70(0x161)]='파일\x20확장자가\x20없습'+'니다.\x20SAST\x20분'+_0x176f70(0x144)+_0x176f70(0x125)+'.';const _0x4909b6={};_0x4909b6[_0x176f70(0x120)]='File\x20exten'+_0x176f70(0xf7)+_0x176f70(0x14f)+_0x176f70(0x147)+_0x176f70(0x135)+_0x176f70(0xff)+'with\x20exten'+_0x176f70(0x133);const _0x362442={};return _0x362442[_0x176f70(0xfd)]=[_0x40cc34],_0x362442[_0x176f70(0x10c)+_0x176f70(0x105)]=_0x4909b6,_0x362442;}const _0x32d569={};_0x32d569[_0x176f70(0x12d)+'t']=_0x1d35be,_0x32d569[_0x176f70(0x103)]=_0x4c7f71;const _0x57df80=await this[_0x176f70(0x136)+'rvice'][_0x176f70(0x13b)+_0x176f70(0x14e)](_0x32d569),_0x1d2d1a={};_0x1d2d1a[_0x176f70(0x10e)]=_0x176f70(0x161),_0x1d2d1a['text']=_0x176f70(0xef)+_0x176f70(0x10b)+_0x176f70(0x134)+'\x0aAnalysis\x20'+'ID:\x20'+_0x57df80[_0x176f70(0x13a)];const _0x27925e={};_0x27925e[_0x176f70(0x13a)]=_0x57df80[_0x176f70(0x13a)],_0x27925e['status']=_0x57df80[_0x176f70(0x10f)];const _0x29e79d={};return _0x29e79d['content']=[_0x1d2d1a],_0x29e79d['structured'+_0x176f70(0x105)]=_0x27925e,_0x29e79d;}catch(_0x4b8844){logger[_0x176f70(0x120)]('File\x20secur'+_0x176f70(0x162)+_0x176f70(0x152),_0x4b8844);const _0x404ca0={};_0x404ca0[_0x176f70(0x10e)]=_0x176f70(0x161),_0x404ca0[_0x176f70(0x161)]=_0x176f70(0xef)+_0x176f70(0x151)+_0x176f70(0x145)+_0x176f70(0x146)+(_0x4b8844 instanceof Error?_0x4b8844['message']:_0x176f70(0x11f)+'ror');const _0x52fef3={};_0x52fef3[_0x176f70(0x120)]=_0x4b8844 instanceof Error?_0x4b8844[_0x176f70(0x10a)]:_0x176f70(0x11f)+'ror';const _0x4d46f3={};return _0x4d46f3[_0x176f70(0xfd)]=[_0x404ca0],_0x4d46f3[_0x176f70(0x10c)+_0x176f70(0x105)]=_0x52fef3,_0x4d46f3;}}async['analyzeFil'+a8_0x226829(0x13c)]({filePaths:_0x4797f6,zipFileName:_0x55a7bd}){const _0x518ebd=a8_0x226829,_0x1f31a3={};_0x1f31a3[_0x518ebd(0x132)]=function(_0x54e736,_0x1f5740){return _0x54e736===_0x1f5740;},_0x1f31a3[_0x518ebd(0x15a)]=function(_0x181006,_0x55f0de){return _0x181006 instanceof _0x55f0de;};const _0x122cfe=_0x1f31a3;try{if(!_0x4797f6||_0x122cfe[_0x518ebd(0x132)](_0x4797f6[_0x518ebd(0x107)],0x0)){const _0x61ce9={};_0x61ce9[_0x518ebd(0x10e)]=_0x518ebd(0x161),_0x61ce9['text']=_0x518ebd(0x159)+_0x518ebd(0xf6)+_0x518ebd(0x160)+'aths\x20array'+_0x518ebd(0x15c)+_0x518ebd(0x148)+_0x518ebd(0x137)+_0x518ebd(0x113);const _0x4f85fe={};_0x4f85fe['error']=_0x518ebd(0xfb)+'\x20not\x20provi'+_0x518ebd(0x121);const _0x4d433f={};return _0x4d433f[_0x518ebd(0xfd)]=[_0x61ce9],_0x4d433f[_0x518ebd(0x10c)+_0x518ebd(0x105)]=_0x4f85fe,_0x4d433f;}logger[_0x518ebd(0x15f)](_0x518ebd(0x139)+'\x20security\x20'+'analysis\x20r'+_0x518ebd(0x158)+_0x4797f6[_0x518ebd(0x107)]+(_0x518ebd(0x109)+'s'));const _0x15e8bd=await this['analysisSe'+'rvice'][_0x518ebd(0x118)+_0x518ebd(0x11e)+_0x518ebd(0x131)](_0x4797f6,_0x55a7bd),_0x3a119f=_0x518ebd(0xef)+_0x518ebd(0x10b)+'s\x20started.'+_0x518ebd(0x12e)+_0x518ebd(0x109)+_0x518ebd(0x11b)+_0x4797f6[_0x518ebd(0x107)]+(_0x518ebd(0x12c)+_0x518ebd(0x117))+_0x15e8bd['analysisId']+_0x518ebd(0xf1)+_0x15e8bd[_0x518ebd(0x10f)],_0x3b6930={};_0x3b6930[_0x518ebd(0x10e)]=_0x518ebd(0x161),_0x3b6930[_0x518ebd(0x161)]=_0x3a119f;const _0x39883e={};_0x39883e[_0x518ebd(0x13a)]=_0x15e8bd[_0x518ebd(0x13a)],_0x39883e['status']=_0x15e8bd['status'],_0x39883e[_0x518ebd(0x130)+'unt']=_0x4797f6['length'];const _0x10431d={};return _0x10431d[_0x518ebd(0xfd)]=[_0x3b6930],_0x10431d[_0x518ebd(0x10c)+_0x518ebd(0x105)]=_0x39883e,_0x10431d;}catch(_0x403c11){logger['error'](_0x518ebd(0x139)+_0x518ebd(0x10d)+_0x518ebd(0x155)+'ailed:',_0x403c11);const _0x502a87={};return _0x502a87[_0x518ebd(0x10e)]=_0x518ebd(0x161),_0x502a87[_0x518ebd(0x161)]=_0x518ebd(0xef)+_0x518ebd(0x151)+'quest\x20fail'+_0x518ebd(0x146)+(_0x403c11 instanceof Error?_0x403c11['message']:_0x518ebd(0x11f)+_0x518ebd(0x15d)),{'content':[_0x502a87],'structuredContent':{'error':_0x122cfe[_0x518ebd(0x15a)](_0x403c11,Error)?_0x403c11[_0x518ebd(0x10a)]:'Unknown\x20er'+_0x518ebd(0x15d)}};}}async[a8_0x226829(0x104)+a8_0x226829(0x150)]({folderPath:_0x274527,zipFileName:_0xda6e24}){const _0x4b9468=a8_0x226829,_0x4e5232={};_0x4e5232[_0x4b9468(0xf3)]=_0x4b9468(0x126)+'h\x20not\x20prov'+_0x4b9468(0xfa);const _0x3ce608=_0x4e5232;try{if(!_0x274527||_0x274527[_0x4b9468(0x149)]()[_0x4b9468(0x107)]===0x0){const _0xa8aea0={};_0xa8aea0['type']=_0x4b9468(0x161),_0xa8aea0[_0x4b9468(0x161)]=_0x3ce608[_0x4b9468(0xf3)];const _0x181715={};_0x181715[_0x4b9468(0x120)]=_0x4b9468(0x126)+_0x4b9468(0xf9)+_0x4b9468(0x112);const _0x385c8f={};return _0x385c8f['content']=[_0xa8aea0],_0x385c8f[_0x4b9468(0x10c)+_0x4b9468(0x105)]=_0x181715,_0x385c8f;}logger['info'](_0x4b9468(0x12f)+_0x4b9468(0x14d)+_0x4b9468(0x100)+_0x4b9468(0x108)+_0x274527);const _0x2b036b=await this[_0x4b9468(0x136)+_0x4b9468(0x142)][_0x4b9468(0x104)+_0x4b9468(0xee)](_0x274527,_0xda6e24);let _0x33e0cf=_0x4b9468(0xef)+'nalysis\x20ha'+_0x4b9468(0x134)+_0x4b9468(0x140)+_0x274527+(_0x4b9468(0x12c)+'ID:\x20')+_0x2b036b[_0x4b9468(0x13a)]+_0x4b9468(0xf1)+_0x2b036b[_0x4b9468(0x10f)];_0x2b036b[_0x4b9468(0x11c)+_0x4b9468(0x128)]&&_0x2b036b[_0x4b9468(0x11c)+_0x4b9468(0x128)][_0x4b9468(0x107)]>0x0&&(_0x33e0cf+=_0x4b9468(0xf0)+_0x4b9468(0x12a)+_0x2b036b['skippedFol'+_0x4b9468(0x128)][_0x4b9468(0x107)]+_0x4b9468(0x157)+_0x2b036b[_0x4b9468(0x11c)+_0x4b9468(0x128)][_0x4b9468(0x141)](',\x20'));const _0x2eab4f={};_0x2eab4f['type']=_0x4b9468(0x161),_0x2eab4f[_0x4b9468(0x161)]=_0x33e0cf;const _0xe47ed3={};_0xe47ed3[_0x4b9468(0x13a)]=_0x2b036b[_0x4b9468(0x13a)],_0xe47ed3[_0x4b9468(0x10f)]=_0x2b036b[_0x4b9468(0x10f)],_0xe47ed3['folderPath']=_0x274527,_0xe47ed3[_0x4b9468(0x11c)+'ders']=_0x2b036b['skippedFol'+'ders'];const _0x4f02a8={};return _0x4f02a8[_0x4b9468(0xfd)]=[_0x2eab4f],_0x4f02a8[_0x4b9468(0x10c)+_0x4b9468(0x105)]=_0xe47ed3,_0x4f02a8;}catch(_0x2147cd){logger[_0x4b9468(0x120)](_0x4b9468(0x12f)+'urity\x20anal'+_0x4b9468(0x124)+'d:',_0x2147cd);const _0x1ead17={};_0x1ead17[_0x4b9468(0x10e)]=_0x4b9468(0x161),_0x1ead17[_0x4b9468(0x161)]=_0x4b9468(0xef)+_0x4b9468(0x151)+_0x4b9468(0x145)+'ed:\x20'+(_0x2147cd instanceof Error?_0x2147cd[_0x4b9468(0x10a)]:_0x4b9468(0x11f)+_0x4b9468(0x15d));const _0x1e94a5={};_0x1e94a5['error']=_0x2147cd instanceof Error?_0x2147cd[_0x4b9468(0x10a)]:_0x4b9468(0x11f)+'ror';const _0x48957b={};return _0x48957b[_0x4b9468(0xfd)]=[_0x1ead17],_0x48957b[_0x4b9468(0x10c)+'Content']=_0x1e94a5,_0x48957b;}}async[a8_0x226829(0xfc)+a8_0x226829(0x122)]({zipFilePath:_0x318092,zipFileName:_0x479d7f}){const _0x353a01=a8_0x226829,_0x3306e4={};_0x3306e4[_0x353a01(0x12b)]='ZIP\x20file\x20p'+_0x353a01(0x106)+_0x353a01(0x138);const _0x4c828e=_0x3306e4;try{if(!_0x318092||_0x318092['trim']()[_0x353a01(0x107)]===0x0){const _0x5beb0e={};_0x5beb0e[_0x353a01(0x10e)]=_0x353a01(0x161),_0x5beb0e[_0x353a01(0x161)]=_0x353a01(0x127)+_0x353a01(0x106)+_0x353a01(0x11a);const _0x597e81={};_0x597e81[_0x353a01(0x120)]=_0x4c828e[_0x353a01(0x12b)];const _0xeec65d={};return _0xeec65d['content']=[_0x5beb0e],_0xeec65d[_0x353a01(0x10c)+_0x353a01(0x105)]=_0x597e81,_0xeec65d;}logger[_0x353a01(0x15f)](_0x353a01(0x101)+'ecurity\x20an'+'alysis\x20req'+_0x353a01(0xf4)+_0x318092);const _0x30da00=await this[_0x353a01(0x136)+_0x353a01(0x142)][_0x353a01(0xfc)+_0x353a01(0x111)](_0x318092,_0x479d7f),_0x24dde1='Security\x20a'+'nalysis\x20ha'+'s\x20started.'+_0x353a01(0xf8)+'\x20'+_0x318092+(_0x353a01(0x12c)+'ID:\x20')+_0x30da00['analysisId']+_0x353a01(0xf1)+_0x30da00['status'],_0x33c018={};_0x33c018[_0x353a01(0x10e)]=_0x353a01(0x161),_0x33c018[_0x353a01(0x161)]=_0x24dde1;const _0x24748b={};_0x24748b['analysisId']=_0x30da00['analysisId'],_0x24748b[_0x353a01(0x10f)]=_0x30da00['status'],_0x24748b['zipFilePat'+'h']=_0x318092;const _0xc95c1c={};return _0xc95c1c['content']=[_0x33c018],_0xc95c1c[_0x353a01(0x10c)+'Content']=_0x24748b,_0xc95c1c;}catch(_0x1105fb){logger['error'](_0x353a01(0x101)+'ecurity\x20an'+_0x353a01(0x116)+_0x353a01(0xf5),_0x1105fb);const _0x35184d={};_0x35184d['type']='text',_0x35184d[_0x353a01(0x161)]=_0x353a01(0xef)+_0x353a01(0x151)+_0x353a01(0x145)+_0x353a01(0x146)+(_0x1105fb instanceof Error?_0x1105fb['message']:'Unknown\x20er'+_0x353a01(0x15d));const _0x276e94={};_0x276e94[_0x353a01(0x120)]=_0x1105fb instanceof Error?_0x1105fb[_0x353a01(0x10a)]:_0x353a01(0x11f)+_0x353a01(0x15d);const _0x274e3e={};return _0x274e3e[_0x353a01(0xfd)]=[_0x35184d],_0x274e3e['structured'+'Content']=_0x276e94,_0x274e3e;}}}
1
+ const a8_0x3be647=a8_0x12c1;(function(_0x39d726,_0x5c8504){const _0x2a96d3=a8_0x12c1,_0x3d7f66=_0x39d726();while(!![]){try{const _0x3b1e6a=-parseInt(_0x2a96d3(0x248))/0x1*(-parseInt(_0x2a96d3(0x20c))/0x2)+parseInt(_0x2a96d3(0x231))/0x3+parseInt(_0x2a96d3(0x213))/0x4*(parseInt(_0x2a96d3(0x1fb))/0x5)+-parseInt(_0x2a96d3(0x1f2))/0x6+parseInt(_0x2a96d3(0x1df))/0x7+parseInt(_0x2a96d3(0x1de))/0x8+-parseInt(_0x2a96d3(0x225))/0x9;if(_0x3b1e6a===_0x5c8504)break;else _0x3d7f66['push'](_0x3d7f66['shift']());}catch(_0x2da01b){_0x3d7f66['push'](_0x3d7f66['shift']());}}}(a8_0x3a6e,0xaa078));const a8_0x101b22=(function(){let _0x435cbf=!![];return function(_0x48d859,_0x3a7d52){const _0x5744d9=_0x435cbf?function(){if(_0x3a7d52){const _0x4007bb=_0x3a7d52['apply'](_0x48d859,arguments);return _0x3a7d52=null,_0x4007bb;}}:function(){};return _0x435cbf=![],_0x5744d9;};}()),a8_0x2d14e0=a8_0x101b22(this,function(){const _0x8da0ba=a8_0x12c1;return a8_0x2d14e0['toString']()[_0x8da0ba(0x1e0)](_0x8da0ba(0x1e6)+'+$')['toString']()[_0x8da0ba(0x208)+'r'](a8_0x2d14e0)['search'](_0x8da0ba(0x1e6)+'+$');});function a8_0x3a6e(){const _0x5d5a7a=['derSast','error','analysis\x20r','\x20file\x20path','analysis\x20f','analysisId','Security\x20a','eSast','\x0a\x0aSkipped\x20','8561560KEtZLT','4623934jSzYyN','search','trim','folderPath','nalysis\x20re','eSecurity','ided','(((.+)+)+)','type','status','ror','rts\x20files\x20','ity\x20analys','sted:\x20','urity\x20anal','Empty\x20file','\x0aAnalysis\x20','ZIP\x20file\x20p','파일\x20확장자가\x20없습','4478424nryVeD','analysisSe','XTTeo','\x20The\x20fileP','h\x20not\x20prov','alysis\x20fai','TyWZE','ded','Folder\x20pat','240iImqiy','only\x20suppo','\x20security\x20','o\x20analyze.','\x20content\x20-','Multi-file','파일\x20내용이\x20비어있','jbIRJ','File\x20paths','ne\x20file\x20pa','\x0aZIP\x20File:','s:\x20','ecurity\x20an','constructo','red\x20-\x20SAST','text','File\x20exten','621854QRaZzi','content','No\x20files\x20t','quest\x20fail','ath\x20not\x20pr','o\x20analyze','folders\x20(','90604MFVbWp','nalysis\x20ha','\x0aFolder:\x20','join','esSast','니다.\x20SAST\x20분','Content','skippedFol','드를\x20제공해주세요.','is\x20failed:','fileName','ed:\x20','analyzeZip','ID:\x20','):\x20','WJkKp','info','analyzeFil','32775399UqYKpE','ailed:','Unknown\x20er','\x20not\x20provi','FromPaths','File','analyzeMul','th.','ders','\x0aStatus:\x20','sion\x20requi','uested:\x20','3068526PAJtDG','\x20requires\x20','message','ZIP\x20file\x20s','der','\x20파일만\x20지원합니다','with\x20exten','structured','석은\x20확장자가\x20있는','ovided.','quested:\x20','led:','analyzeFol','\x0aNumber\x20of','match','ovided','length','ysis\x20faile','Folder\x20sec','Sast','zipFilePat','rvice','ysis\x20reque','4CSUumc','s\x20started.','sions','File\x20secur','ided.','at\x20least\x20o'];a8_0x3a6e=function(){return _0x5d5a7a;};return a8_0x3a6e();}a8_0x2d14e0();function a8_0x12c1(_0x385ab9,_0x369f64){_0x385ab9=_0x385ab9-0x1d0;const _0x5ac374=a8_0x3a6e();let _0x2d14e0=_0x5ac374[_0x385ab9];return _0x2d14e0;}import{logger}from'../utils/logger.js';export class SastController{['analysisSe'+a8_0x3be647(0x246)];constructor(_0x3db027){const _0xe696f6=a8_0x3be647;this[_0xe696f6(0x1f3)+_0xe696f6(0x246)]=_0x3db027;}async[a8_0x3be647(0x224)+a8_0x3be647(0x1dc)]({fileContent:_0x7831cf,fileName:_0x11d56b}){const _0x38cbf7=a8_0x3be647;try{logger[_0x38cbf7(0x223)](_0x38cbf7(0x1db)+_0x38cbf7(0x1e3)+_0x38cbf7(0x23b)+_0x11d56b);if(!_0x7831cf||_0x7831cf['trim']()['length']===0x0){const _0xf2df82={};_0xf2df82['type']=_0x38cbf7(0x20a),_0xf2df82[_0x38cbf7(0x20a)]=_0x38cbf7(0x201)+'습니다.\x20분석할\x20코'+_0x38cbf7(0x21b);const _0xe467e1={};_0xe467e1[_0x38cbf7(0x1d6)]=_0x38cbf7(0x1ee)+_0x38cbf7(0x1ff)+'\x20no\x20code\x20t'+_0x38cbf7(0x211);const _0x3bb9c1={};return _0x3bb9c1[_0x38cbf7(0x20d)]=[_0xf2df82],_0x3bb9c1[_0x38cbf7(0x238)+_0x38cbf7(0x219)]=_0xe467e1,_0x3bb9c1;}const _0x21e47e=_0x11d56b[_0x38cbf7(0x23f)](/\.([^.]+)$/);if(!_0x21e47e||_0x21e47e[0x1][_0x38cbf7(0x241)]===0x0){const _0x10bd16={};_0x10bd16[_0x38cbf7(0x1e7)]=_0x38cbf7(0x20a),_0x10bd16[_0x38cbf7(0x20a)]=_0x38cbf7(0x1f1)+_0x38cbf7(0x218)+_0x38cbf7(0x239)+_0x38cbf7(0x236)+'.';const _0x3443c2={};_0x3443c2['error']=_0x38cbf7(0x20b)+_0x38cbf7(0x22f)+_0x38cbf7(0x209)+'\x20analysis\x20'+_0x38cbf7(0x1fc)+_0x38cbf7(0x1ea)+_0x38cbf7(0x237)+_0x38cbf7(0x1d1);const _0x485043={};return _0x485043[_0x38cbf7(0x20d)]=[_0x10bd16],_0x485043['structured'+_0x38cbf7(0x219)]=_0x3443c2,_0x485043;}const _0x265986={};_0x265986['fileConten'+'t']=_0x7831cf,_0x265986[_0x38cbf7(0x21d)]=_0x11d56b;const _0x3e1c13=await this[_0x38cbf7(0x1f3)+_0x38cbf7(0x246)][_0x38cbf7(0x224)+_0x38cbf7(0x1e4)](_0x265986),_0x3f0269={};_0x3f0269['type']=_0x38cbf7(0x20a),_0x3f0269[_0x38cbf7(0x20a)]=_0x38cbf7(0x1db)+_0x38cbf7(0x214)+_0x38cbf7(0x1d0)+_0x38cbf7(0x1ef)+_0x38cbf7(0x220)+_0x3e1c13[_0x38cbf7(0x1da)];const _0xbeb438={};_0xbeb438['analysisId']=_0x3e1c13[_0x38cbf7(0x1da)],_0xbeb438[_0x38cbf7(0x1e8)]=_0x3e1c13[_0x38cbf7(0x1e8)];const _0x4088d3={};return _0x4088d3[_0x38cbf7(0x20d)]=[_0x3f0269],_0x4088d3['structured'+_0x38cbf7(0x219)]=_0xbeb438,_0x4088d3;}catch(_0x42cc60){logger[_0x38cbf7(0x1d6)](_0x38cbf7(0x1d2)+'ity\x20analys'+_0x38cbf7(0x21c),_0x42cc60);const _0x5087d8={};_0x5087d8[_0x38cbf7(0x1e7)]=_0x38cbf7(0x20a),_0x5087d8[_0x38cbf7(0x20a)]=_0x38cbf7(0x1db)+'nalysis\x20re'+'quest\x20fail'+'ed:\x20'+(_0x42cc60 instanceof Error?_0x42cc60['message']:_0x38cbf7(0x227)+_0x38cbf7(0x1e9));const _0x329ad4={};_0x329ad4[_0x38cbf7(0x1d6)]=_0x42cc60 instanceof Error?_0x42cc60[_0x38cbf7(0x233)]:_0x38cbf7(0x227)+_0x38cbf7(0x1e9);const _0x5df99c={};return _0x5df99c['content']=[_0x5087d8],_0x5df99c[_0x38cbf7(0x238)+'Content']=_0x329ad4,_0x5df99c;}}async[a8_0x3be647(0x224)+a8_0x3be647(0x217)]({filePaths:_0x8ccb35,zipFileName:_0x5adfb2}){const _0x1ea678=a8_0x3be647,_0x5222fc={};_0x5222fc[_0x1ea678(0x1f8)]=_0x1ea678(0x20a),_0x5222fc[_0x1ea678(0x222)]=_0x1ea678(0x20e)+_0x1ea678(0x1fe)+_0x1ea678(0x1f5)+'aths\x20array'+_0x1ea678(0x232)+_0x1ea678(0x1d4)+_0x1ea678(0x204)+_0x1ea678(0x22c);const _0x11b2cb=_0x5222fc;try{if(!_0x8ccb35||_0x8ccb35['length']===0x0){const _0x4908aa={};_0x4908aa[_0x1ea678(0x1e7)]=_0x11b2cb[_0x1ea678(0x1f8)],_0x4908aa['text']=_0x11b2cb[_0x1ea678(0x222)];const _0x5131d1={};_0x5131d1[_0x1ea678(0x1d6)]=_0x1ea678(0x203)+_0x1ea678(0x228)+_0x1ea678(0x1f9);const _0x322da4={};return _0x322da4['content']=[_0x4908aa],_0x322da4[_0x1ea678(0x238)+_0x1ea678(0x219)]=_0x5131d1,_0x322da4;}logger[_0x1ea678(0x223)](_0x1ea678(0x200)+_0x1ea678(0x1fd)+_0x1ea678(0x1d7)+'equested:\x20'+_0x8ccb35['length']+(_0x1ea678(0x1d8)+'s'));const _0xdd78da=await this[_0x1ea678(0x1f3)+_0x1ea678(0x246)][_0x1ea678(0x22b)+'tipleFiles'+_0x1ea678(0x229)](_0x8ccb35,_0x5adfb2),_0x962451='Security\x20a'+_0x1ea678(0x214)+_0x1ea678(0x1d0)+_0x1ea678(0x23e)+'\x20file\x20path'+_0x1ea678(0x206)+_0x8ccb35['length']+(_0x1ea678(0x1ef)+_0x1ea678(0x220))+_0xdd78da[_0x1ea678(0x1da)]+_0x1ea678(0x22e)+_0xdd78da[_0x1ea678(0x1e8)],_0x32b58d={};_0x32b58d[_0x1ea678(0x1e7)]='text',_0x32b58d['text']=_0x962451;const _0x2d8da8={};_0x2d8da8[_0x1ea678(0x1da)]=_0xdd78da[_0x1ea678(0x1da)],_0x2d8da8['status']=_0xdd78da[_0x1ea678(0x1e8)],_0x2d8da8['filePathCo'+'unt']=_0x8ccb35[_0x1ea678(0x241)];const _0x90c036={};return _0x90c036[_0x1ea678(0x20d)]=[_0x32b58d],_0x90c036[_0x1ea678(0x238)+_0x1ea678(0x219)]=_0x2d8da8,_0x90c036;}catch(_0x179eca){logger['error'](_0x1ea678(0x200)+_0x1ea678(0x1fd)+_0x1ea678(0x1d9)+_0x1ea678(0x226),_0x179eca);const _0x51c37c={};_0x51c37c['type']=_0x1ea678(0x20a),_0x51c37c[_0x1ea678(0x20a)]='Security\x20a'+_0x1ea678(0x1e3)+_0x1ea678(0x20f)+_0x1ea678(0x21e)+(_0x179eca instanceof Error?_0x179eca[_0x1ea678(0x233)]:'Unknown\x20er'+_0x1ea678(0x1e9));const _0x8869d2={};_0x8869d2[_0x1ea678(0x1d6)]=_0x179eca instanceof Error?_0x179eca[_0x1ea678(0x233)]:_0x1ea678(0x227)+_0x1ea678(0x1e9);const _0x54a472={};return _0x54a472[_0x1ea678(0x20d)]=[_0x51c37c],_0x54a472[_0x1ea678(0x238)+_0x1ea678(0x219)]=_0x8869d2,_0x54a472;}}async[a8_0x3be647(0x23d)+a8_0x3be647(0x1d5)]({folderPath:_0x14a0f8,zipFileName:_0x8b2d92}){const _0x1b04cf=a8_0x3be647,_0x1dde39={};_0x1dde39['Psukg']=_0x1b04cf(0x227)+_0x1b04cf(0x1e9),_0x1dde39[_0x1b04cf(0x202)]=function(_0x585303,_0x58ef43){return _0x585303!==_0x58ef43;};const _0x57612c=_0x1dde39;try{if(!_0x14a0f8||_0x14a0f8[_0x1b04cf(0x1e1)]()[_0x1b04cf(0x241)]===0x0){if(_0x57612c[_0x1b04cf(0x202)](_0x1b04cf(0x1f4),_0x1b04cf(0x1f4))){_0x3c88b6[_0x1b04cf(0x1d6)](_0x1b04cf(0x1d2)+_0x1b04cf(0x1eb)+_0x1b04cf(0x21c),_0x1d1b09);const _0x49aa51={};_0x49aa51[_0x1b04cf(0x1e7)]=_0x1b04cf(0x20a),_0x49aa51['text']=_0x1b04cf(0x1db)+_0x1b04cf(0x1e3)+'quest\x20fail'+_0x1b04cf(0x21e)+(_0x194548 instanceof _0x35c45a?_0x33137e['message']:WlVtng['Psukg']);const _0x5ad2f1={};_0x5ad2f1[_0x1b04cf(0x1d6)]=_0xda815d instanceof _0x59db1a?_0x55b36a[_0x1b04cf(0x233)]:'Unknown\x20er'+_0x1b04cf(0x1e9);const _0x2178aa={};return _0x2178aa[_0x1b04cf(0x20d)]=[_0x49aa51],_0x2178aa[_0x1b04cf(0x238)+_0x1b04cf(0x219)]=_0x5ad2f1,_0x2178aa;}else{const _0x16809d={};_0x16809d[_0x1b04cf(0x1e7)]='text',_0x16809d['text']='Folder\x20pat'+'h\x20not\x20prov'+_0x1b04cf(0x1d3);const _0x5e11a6={};_0x5e11a6[_0x1b04cf(0x1d6)]=_0x1b04cf(0x1fa)+_0x1b04cf(0x1f6)+_0x1b04cf(0x1e5);const _0x1562c0={};return _0x1562c0[_0x1b04cf(0x20d)]=[_0x16809d],_0x1562c0[_0x1b04cf(0x238)+_0x1b04cf(0x219)]=_0x5e11a6,_0x1562c0;}}logger[_0x1b04cf(0x223)](_0x1b04cf(0x243)+'urity\x20anal'+_0x1b04cf(0x247)+_0x1b04cf(0x1ec)+_0x14a0f8);const _0x473db4=await this[_0x1b04cf(0x1f3)+_0x1b04cf(0x246)][_0x1b04cf(0x23d)+_0x1b04cf(0x235)](_0x14a0f8,_0x8b2d92);let _0x5ac5f9=_0x1b04cf(0x1db)+_0x1b04cf(0x214)+_0x1b04cf(0x1d0)+_0x1b04cf(0x215)+_0x14a0f8+(_0x1b04cf(0x1ef)+_0x1b04cf(0x220))+_0x473db4['analysisId']+_0x1b04cf(0x22e)+_0x473db4[_0x1b04cf(0x1e8)];_0x473db4[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)]&&_0x473db4[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)][_0x1b04cf(0x241)]>0x0&&(_0x5ac5f9+=_0x1b04cf(0x1dd)+_0x1b04cf(0x212)+_0x473db4[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)][_0x1b04cf(0x241)]+_0x1b04cf(0x221)+_0x473db4['skippedFol'+_0x1b04cf(0x22d)][_0x1b04cf(0x216)](',\x20'));const _0x315e02={};_0x315e02[_0x1b04cf(0x1e7)]='text',_0x315e02[_0x1b04cf(0x20a)]=_0x5ac5f9;const _0x3ca132={};_0x3ca132[_0x1b04cf(0x1da)]=_0x473db4[_0x1b04cf(0x1da)],_0x3ca132['status']=_0x473db4[_0x1b04cf(0x1e8)],_0x3ca132[_0x1b04cf(0x1e2)]=_0x14a0f8,_0x3ca132[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)]=_0x473db4[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)];const _0x572048={};return _0x572048[_0x1b04cf(0x20d)]=[_0x315e02],_0x572048[_0x1b04cf(0x238)+_0x1b04cf(0x219)]=_0x3ca132,_0x572048;}catch(_0x20e927){logger[_0x1b04cf(0x1d6)](_0x1b04cf(0x243)+_0x1b04cf(0x1ed)+_0x1b04cf(0x242)+'d:',_0x20e927);const _0x1c81fb={};_0x1c81fb['type']=_0x1b04cf(0x20a),_0x1c81fb[_0x1b04cf(0x20a)]=_0x1b04cf(0x1db)+_0x1b04cf(0x1e3)+_0x1b04cf(0x20f)+'ed:\x20'+(_0x20e927 instanceof Error?_0x20e927[_0x1b04cf(0x233)]:_0x57612c['Psukg']);const _0x1a209f={};_0x1a209f[_0x1b04cf(0x1d6)]=_0x20e927 instanceof Error?_0x20e927['message']:_0x1b04cf(0x227)+'ror';const _0x4783b6={};return _0x4783b6[_0x1b04cf(0x20d)]=[_0x1c81fb],_0x4783b6['structured'+_0x1b04cf(0x219)]=_0x1a209f,_0x4783b6;}}async['analyzeZip'+a8_0x3be647(0x244)]({zipFilePath:_0x207768,zipFileName:_0x50fe6e}){const _0xaacd6c=a8_0x3be647;try{if(!_0x207768||_0x207768[_0xaacd6c(0x1e1)]()[_0xaacd6c(0x241)]===0x0){const _0xab19bd={};_0xab19bd[_0xaacd6c(0x1e7)]=_0xaacd6c(0x20a),_0xab19bd[_0xaacd6c(0x20a)]=_0xaacd6c(0x1f0)+_0xaacd6c(0x210)+_0xaacd6c(0x23a);const _0x639141={};_0x639141[_0xaacd6c(0x1d6)]=_0xaacd6c(0x1f0)+_0xaacd6c(0x210)+_0xaacd6c(0x240);const _0x54758a={};return _0x54758a[_0xaacd6c(0x20d)]=[_0xab19bd],_0x54758a[_0xaacd6c(0x238)+'Content']=_0x639141,_0x54758a;}logger[_0xaacd6c(0x223)](_0xaacd6c(0x234)+_0xaacd6c(0x207)+'alysis\x20req'+_0xaacd6c(0x230)+_0x207768);const _0x5ed581=await this[_0xaacd6c(0x1f3)+'rvice'][_0xaacd6c(0x21f)+_0xaacd6c(0x22a)](_0x207768,_0x50fe6e),_0x159730=_0xaacd6c(0x1db)+_0xaacd6c(0x214)+_0xaacd6c(0x1d0)+_0xaacd6c(0x205)+'\x20'+_0x207768+(_0xaacd6c(0x1ef)+'ID:\x20')+_0x5ed581[_0xaacd6c(0x1da)]+_0xaacd6c(0x22e)+_0x5ed581[_0xaacd6c(0x1e8)],_0x4bbd08={};_0x4bbd08[_0xaacd6c(0x1e7)]=_0xaacd6c(0x20a),_0x4bbd08[_0xaacd6c(0x20a)]=_0x159730;const _0x186b12={};_0x186b12[_0xaacd6c(0x1da)]=_0x5ed581['analysisId'],_0x186b12[_0xaacd6c(0x1e8)]=_0x5ed581['status'],_0x186b12[_0xaacd6c(0x245)+'h']=_0x207768;const _0x3e4184={};return _0x3e4184[_0xaacd6c(0x20d)]=[_0x4bbd08],_0x3e4184['structured'+_0xaacd6c(0x219)]=_0x186b12,_0x3e4184;}catch(_0x53e47e){logger['error'](_0xaacd6c(0x234)+'ecurity\x20an'+_0xaacd6c(0x1f7)+_0xaacd6c(0x23c),_0x53e47e);const _0x44d164={};_0x44d164['type']=_0xaacd6c(0x20a),_0x44d164[_0xaacd6c(0x20a)]=_0xaacd6c(0x1db)+_0xaacd6c(0x1e3)+_0xaacd6c(0x20f)+_0xaacd6c(0x21e)+(_0x53e47e instanceof Error?_0x53e47e['message']:_0xaacd6c(0x227)+_0xaacd6c(0x1e9));const _0x46bc57={};_0x46bc57['error']=_0x53e47e instanceof Error?_0x53e47e[_0xaacd6c(0x233)]:_0xaacd6c(0x227)+_0xaacd6c(0x1e9);const _0x4ba120={};return _0x4ba120[_0xaacd6c(0x20d)]=[_0x44d164],_0x4ba120[_0xaacd6c(0x238)+_0xaacd6c(0x219)]=_0x46bc57,_0x4ba120;}}}