@sparrowai/sparrow-mcp 1.1.3 → 1.1.5

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 (47) hide show
  1. package/dist/scripts/mcp-test/mcp-client.js +1 -1
  2. package/dist/scripts/test-runner/check-failed-tests.js +1 -1
  3. package/dist/scripts/test-runner/compare-responses.js +1 -1
  4. package/dist/scripts/test-runner/standalone-test-fixed-header.js +1 -1
  5. package/dist/scripts/test-runner/standalone-test.js +1 -1
  6. package/dist/src/config/appConfig.js +1 -1
  7. package/dist/src/config/constants.js +1 -1
  8. package/dist/src/controllers/__tests__/analysis.controller.test.js +1 -1
  9. package/dist/src/controllers/__tests__/sast.controller.test.js +1 -1
  10. package/dist/src/controllers/__tests__/sca.controller.test.js +1 -1
  11. package/dist/src/controllers/__tests__/security.controller.test.js +1 -1
  12. package/dist/src/controllers/__tests__/system.controller.test.js +1 -1
  13. package/dist/src/controllers/analysis.controller.js +1 -1
  14. package/dist/src/controllers/sast.controller.js +1 -1
  15. package/dist/src/controllers/sca.controller.js +1 -1
  16. package/dist/src/controllers/security.controller.js +1 -1
  17. package/dist/src/controllers/system.controller.js +1 -1
  18. package/dist/src/schemas/tool.schemas.js +1 -1
  19. package/dist/src/server.js +1 -1
  20. package/dist/src/services/__tests__/checker.service.test.js +1 -1
  21. package/dist/src/services/__tests__/llm.service.test.js +1 -1
  22. package/dist/src/services/__tests__/s3.service.test.js +1 -1
  23. package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
  24. package/dist/src/services/analysis.service.js +1 -1
  25. package/dist/src/services/checker.service.js +1 -1
  26. package/dist/src/services/llm/AnthropicProvider.js +1 -1
  27. package/dist/src/services/llm/BedrockProvider.js +1 -1
  28. package/dist/src/services/llm/GeminiProvider.js +1 -1
  29. package/dist/src/services/llm/LLMFactory.js +1 -1
  30. package/dist/src/services/llm/LLMProvider.js +1 -1
  31. package/dist/src/services/llm/OllamaProvider.js +1 -1
  32. package/dist/src/services/llm/OpenAIProvider.js +1 -1
  33. package/dist/src/services/llm.service.js +1 -1
  34. package/dist/src/services/s3.service.js +1 -1
  35. package/dist/src/services/sparrow.service.js +1 -1
  36. package/dist/src/types/types.js +1 -1
  37. package/dist/src/utils/__tests__/crypto.util.test.js +1 -1
  38. package/dist/src/utils/__tests__/diff.util.test.js +1 -1
  39. package/dist/src/utils/__tests__/fileManager.test.js +1 -1
  40. package/dist/src/utils/__tests__/fileManagerSecure.test.js +1 -1
  41. package/dist/src/utils/__tests__/logger.test.js +1 -1
  42. package/dist/src/utils/crypto.util.js +1 -1
  43. package/dist/src/utils/diff.util.js +1 -1
  44. package/dist/src/utils/fileManager.js +1 -1
  45. package/dist/src/utils/fileManagerSecure.js +1 -1
  46. package/dist/src/utils/logger.js +1 -1
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- function a12_0x10d6(){const _0x582cbd=['progress','ents\x20with\x20','dle\x20analys','COMPLETE','pleted\x20err','Progress\x20T','CalledWith','toHaveBeen','HjYcZ','ng\x20analysi','mockReject','nts\x20identi','clearAllMo','Zqefh','sisProgres','Content','ig/constan','234','issues','Complete','Analysis\x20n','er.js','ices/analy','oken\x20not\x20p','mockResolv','TkKvw','overage','ysisResult','(((.+)+)+)','toContain','1591072USrhnv','edValue','lineNumber','119765GGnQZp','text','2144988tKxokn','1237690IGKRde','unstable_m','9NLuZBG','8PjxPSK','ts.js','structured','s/logger.j','toBe','bilities\x20f','components','atus','unt','RdIQr','is\x20not\x20fou','toString','ities','nts\x20found','ound','trackAnaly','entation','ted\x20SCA\x20re','criticalCo','\x20component','246CdCnZg','fied','\x20list','/src/Login','ANALYSIS','RXGSM','fied\x20resul','Analysis\x20f','analysisId','error','sStatus','ief','ockModule','checkerKey','is\x20not\x20com','fail-id','should\x20ret','No\x20compone','INIT','ntroller','\x20table','SCA\x20Briefi','cvssScore','is\x20FAIL\x20st','severity','dle\x20empty\x20','result','sResults','s.controll','../../serv','eMDxS','urn\x20error\x20','search','e.js','urn\x20format','descriptio','Analysis\x20i','analysisBr','sToken\x20mis','975971yTGyws','1108722WqTgUG','pending-id','content','status','bilities','SUCCESS','rabilities','omplete','fixedVersi','SQL_INJECT','ck\x20failed','toHaveLeng','1.0.0','cks','Initializi','WgVDs','urn\x20simpli','apply','to\x20interna','sis.servic','constructo','ion\x20found','Status\x20che','HIGH','mockImplem','5165281MXUJdX','should\x20han','mediumCoun','getAnalysi','CVE-2023-1','../../conf','n\x20progress','1.0.1','ot\x20found','rovided','lowCount','Found\x20SQL\x20','sults\x20with','MIT','ION','licenses','4fVtGyA','getScaAnal','vulnerabil','sca-id','l/high\x20sev','highCount','test-id','ot\x20complet','ailed\x20due\x20','dle\x20errors','test-lib','cveId','sing','No\x20critica','Status:\x20FA','dle\x20compon','order','AnalysisCo','nd\x20error','name','totalVulne'];a12_0x10d6=function(){return _0x582cbd;};return a12_0x10d6();}const a12_0x40c251=a12_0x2bf3;(function(_0x917f65,_0x3db9bb){const _0x300a47=a12_0x2bf3,_0xf6c647=_0x917f65();while(!![]){try{const _0x4ef9e6=-parseInt(_0x300a47(0x212))/0x1+parseInt(_0x300a47(0x23c))/0x2*(parseInt(_0x300a47(0x213))/0x3)+-parseInt(_0x300a47(0x274))/0x4+parseInt(_0x300a47(0x272))/0x5*(parseInt(_0x300a47(0x28c))/0x6)+-parseInt(_0x300a47(0x26f))/0x7*(parseInt(_0x300a47(0x278))/0x8)+parseInt(_0x300a47(0x277))/0x9*(parseInt(_0x300a47(0x275))/0xa)+parseInt(_0x300a47(0x22c))/0xb;if(_0x4ef9e6===_0x3db9bb)break;else _0xf6c647['push'](_0xf6c647['shift']());}catch(_0x2c4a68){_0xf6c647['push'](_0xf6c647['shift']());}}}(a12_0x10d6,0x8c647));const a12_0x255098=(function(){let _0x26aafa=!![];return function(_0x2ecf7f,_0x41bae8){const _0x173057=_0x26aafa?function(){const _0x4d3bee=a12_0x2bf3;if(_0x41bae8){const _0x363592=_0x41bae8[_0x4d3bee(0x224)](_0x2ecf7f,arguments);return _0x41bae8=null,_0x363592;}}:function(){};return _0x26aafa=![],_0x173057;};}()),a12_0x44ccfb=a12_0x255098(this,function(){const _0x19ccbb=a12_0x2bf3;return a12_0x44ccfb[_0x19ccbb(0x283)]()[_0x19ccbb(0x20b)]('(((.+)+)+)'+'+$')[_0x19ccbb(0x283)]()[_0x19ccbb(0x227)+'r'](a12_0x44ccfb)[_0x19ccbb(0x20b)](_0x19ccbb(0x26d)+'+$');});a12_0x44ccfb();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGetAnalysisStatus=jest['fn'](),mockGetAnalysisResults=jest['fn'](),mockGetScaAnalysisResults=jest['fn']();jest['unstable_m'+a12_0x40c251(0x1f7)](a12_0x40c251(0x208)+'ices/analy'+a12_0x40c251(0x226)+a12_0x40c251(0x20c),()=>({'AnalysisService':jest['fn']()[a12_0x40c251(0x22b)+a12_0x40c251(0x288)](()=>({'getAnalysisStatus':mockGetAnalysisStatus,'getAnalysisResults':mockGetAnalysisResults,'getScaAnalysisResults':mockGetScaAnalysisResults}))})),jest[a12_0x40c251(0x276)+a12_0x40c251(0x1f7)]('../../util'+a12_0x40c251(0x27b)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const a12_0x4c8e2f={};function a12_0x2bf3(_0xfad6e2,_0x351f8f){_0xfad6e2=_0xfad6e2-0x1ee;const _0x599508=a12_0x10d6();let _0x44ccfb=_0x599508[_0xfad6e2];return _0x44ccfb;}a12_0x4c8e2f['id']=a12_0x40c251(0x1fd),a12_0x4c8e2f[a12_0x40c251(0x24f)]=a12_0x40c251(0x221)+'ng',a12_0x4c8e2f['descriptio'+'n']=a12_0x40c251(0x221)+a12_0x40c251(0x25a)+'s',a12_0x4c8e2f[a12_0x40c251(0x24c)]=0x1,a12_0x4c8e2f[a12_0x40c251(0x251)]=0x0;const a12_0x5cf7f5={};a12_0x5cf7f5['id']=a12_0x40c251(0x1ef),a12_0x5cf7f5[a12_0x40c251(0x24f)]='Analyzing',a12_0x5cf7f5[a12_0x40c251(0x20e)+'n']=a12_0x40c251(0x20f)+a12_0x40c251(0x232),a12_0x5cf7f5[a12_0x40c251(0x24c)]=0x2,a12_0x5cf7f5[a12_0x40c251(0x251)]=null;const a12_0x4e1d36={};a12_0x4e1d36['id']=a12_0x40c251(0x254),a12_0x4e1d36[a12_0x40c251(0x24f)]=a12_0x40c251(0x264),a12_0x4e1d36[a12_0x40c251(0x20e)+'n']='Analysis\x20c'+a12_0x40c251(0x21a),a12_0x4e1d36['order']=0x3,a12_0x4e1d36[a12_0x40c251(0x251)]=0x64;const a12_0x4921cf={};a12_0x4921cf[a12_0x40c251(0x1fd)]=a12_0x4c8e2f,a12_0x4921cf[a12_0x40c251(0x1ef)]=a12_0x5cf7f5,a12_0x4921cf[a12_0x40c251(0x254)]=a12_0x4e1d36,jest[a12_0x40c251(0x276)+'ockModule'](a12_0x40c251(0x231)+a12_0x40c251(0x261)+a12_0x40c251(0x279),()=>({'ANALYSIS_STAGES':a12_0x4921cf}));const {AnalysisController}=await import('../analysi'+a12_0x40c251(0x207)+a12_0x40c251(0x266)),{AnalysisService}=await import(a12_0x40c251(0x208)+a12_0x40c251(0x267)+'sis.servic'+'e.js');describe(a12_0x40c251(0x24d)+a12_0x40c251(0x1fe),()=>{const _0x1ce95a=a12_0x40c251,_0x120b11={'eMDxS':_0x1ce95a(0x1fb)+_0x1ce95a(0x223)+_0x1ce95a(0x1f1)+'ts','Zqefh':_0x1ce95a(0x254),'RXGSM':_0x1ce95a(0x22d)+_0x1ce95a(0x253)+_0x1ce95a(0x282)+_0x1ce95a(0x24e),'WgVDs':function(_0x41436a,_0xc9dd4a,_0xaef0da){return _0x41436a(_0xc9dd4a,_0xaef0da);},'RdIQr':_0x1ce95a(0x23d)+_0x1ce95a(0x26c)+'s'};let _0x4e0506,_0x570cfb;beforeEach(()=>{const _0x52aac9=_0x1ce95a;jest[_0x52aac9(0x25d)+_0x52aac9(0x220)](),_0x570cfb=new AnalysisService(),_0x4e0506=new AnalysisController(_0x570cfb);}),describe(_0x1ce95a(0x22f)+_0x1ce95a(0x1f5),()=>{const _0x292a8f=_0x1ce95a;it(_0x292a8f(0x1fb)+'urn\x20analys'+'is\x20status',async()=>{const _0x3bd0f2=_0x292a8f,_0x572e1b={};_0x572e1b[_0x3bd0f2(0x216)]=_0x3bd0f2(0x1ef),_0x572e1b[_0x3bd0f2(0x251)]=0x32;const _0x2c10ba=_0x572e1b;mockGetAnalysisStatus[_0x3bd0f2(0x269)+'edValue'](_0x2c10ba);const _0x346272={};_0x346272[_0x3bd0f2(0x1f3)]='test-id';const _0x4d6a0a=await _0x4e0506[_0x3bd0f2(0x22f)+_0x3bd0f2(0x1f5)](_0x346272);expect(mockGetAnalysisStatus)[_0x3bd0f2(0x258)+'CalledWith'](_0x3bd0f2(0x242)),expect(_0x4d6a0a[_0x3bd0f2(0x27a)+_0x3bd0f2(0x260)][_0x3bd0f2(0x216)])[_0x3bd0f2(0x27c)]('ANALYSIS'),expect(_0x4d6a0a[_0x3bd0f2(0x27a)+_0x3bd0f2(0x260)][_0x3bd0f2(0x251)])[_0x3bd0f2(0x27c)](0x32);}),it(_0x292a8f(0x22d)+_0x292a8f(0x245),async()=>{const _0x1b90fe=_0x292a8f;mockGetAnalysisStatus[_0x1b90fe(0x25b)+_0x1b90fe(0x270)](new Error(_0x1b90fe(0x229)+_0x1b90fe(0x21d)));const _0xfa06d1={};_0xfa06d1[_0x1b90fe(0x1f3)]=_0x1b90fe(0x242);const _0xc5129b=await _0x4e0506[_0x1b90fe(0x22f)+'sStatus'](_0xfa06d1);expect(_0xc5129b[_0x1b90fe(0x27a)+_0x1b90fe(0x260)]['error'])[_0x1b90fe(0x27c)](_0x1b90fe(0x229)+'ck\x20failed');});}),describe('getAnalysi'+_0x1ce95a(0x206),()=>{const _0x30ec65=_0x1ce95a;it(_0x120b11[_0x30ec65(0x209)],async()=>{const _0x1ea7b8=_0x30ec65,_0xb2a0a6={};_0xb2a0a6[_0x1ea7b8(0x203)]=_0x1ea7b8(0x22a),_0xb2a0a6[_0x1ea7b8(0x1f8)]=_0x1ea7b8(0x21c)+_0x1ea7b8(0x23a),_0xb2a0a6[_0x1ea7b8(0x20e)+'n']='SQL\x20Inject'+_0x1ea7b8(0x228),_0xb2a0a6['filePath']=_0x1ea7b8(0x1ee)+'.java',_0xb2a0a6[_0x1ea7b8(0x271)]=0xa;const _0x277426={};_0x277426[_0x1ea7b8(0x1f3)]='test-id',_0x277426['status']='COMPLETE',_0x277426[_0x1ea7b8(0x205)]='SUCCESS',_0x277426[_0x1ea7b8(0x23e)+'ities']=[_0xb2a0a6],_0x277426['analysisBr'+_0x1ea7b8(0x1f6)]=_0x1ea7b8(0x237)+'Injection';const _0x23cf23=_0x277426;mockGetAnalysisResults[_0x1ea7b8(0x269)+'edValue'](_0x23cf23);const _0x2ef265={};_0x2ef265[_0x1ea7b8(0x1f3)]=_0x1ea7b8(0x242);const _0x5524ce=await _0x4e0506[_0x1ea7b8(0x22f)+_0x1ea7b8(0x206)](_0x2ef265);expect(mockGetAnalysisResults)['toHaveBeen'+_0x1ea7b8(0x257)](_0x1ea7b8(0x242)),expect(_0x5524ce[_0x1ea7b8(0x27a)+_0x1ea7b8(0x260)][_0x1ea7b8(0x23e)+_0x1ea7b8(0x284)])[_0x1ea7b8(0x21e)+'th'](0x1),expect(_0x5524ce['content'][0x0]['text'])[_0x1ea7b8(0x26e)](_0x1ea7b8(0x21c)+_0x1ea7b8(0x23a));});}),_0x120b11[_0x1ce95a(0x222)](describe,_0x120b11[_0x1ce95a(0x281)],()=>{const _0x5ddaa9=_0x1ce95a,_0x1d3b01={};_0x1d3b01['HjYcZ']=_0x120b11[_0x5ddaa9(0x25e)],_0x1d3b01[_0x5ddaa9(0x26a)]='safe-lib';const _0x5169f3=_0x1d3b01;it(_0x5ddaa9(0x1fb)+_0x5ddaa9(0x20d)+_0x5ddaa9(0x289)+_0x5ddaa9(0x238)+_0x5ddaa9(0x28b)+_0x5ddaa9(0x1ff),async()=>{const _0xb51e12=_0x5ddaa9,_0x257d8d={};_0x257d8d[_0xb51e12(0x24f)]='MIT';const _0x4201a3={};_0x4201a3['severity']=_0xb51e12(0x22a),_0x4201a3[_0xb51e12(0x247)]=_0xb51e12(0x230)+_0xb51e12(0x262),_0x4201a3[_0xb51e12(0x201)]=7.5,_0x4201a3[_0xb51e12(0x21b)+'on']=_0xb51e12(0x233);const _0x381ad8={};_0x381ad8['name']=_0xb51e12(0x246),_0x381ad8['version']='1.0.0',_0x381ad8[_0xb51e12(0x23b)]=[_0x257d8d],_0x381ad8[_0xb51e12(0x263)]=[_0x4201a3];const _0x5f2c1d={};_0x5f2c1d[_0xb51e12(0x1f3)]=_0xb51e12(0x23f),_0x5f2c1d[_0xb51e12(0x216)]=_0xb51e12(0x254),_0x5f2c1d[_0xb51e12(0x205)]=_0xb51e12(0x218),_0x5f2c1d['components']=[_0x381ad8],_0x5f2c1d[_0xb51e12(0x250)+'rabilities']=0x1,_0x5f2c1d['criticalCo'+_0xb51e12(0x280)]=0x0,_0x5f2c1d['highCount']=0x1,_0x5f2c1d['mediumCoun'+'t']=0x0,_0x5f2c1d[_0xb51e12(0x236)]=0x0,_0x5f2c1d['analysisBr'+_0xb51e12(0x1f6)]=_0xb51e12(0x200)+'ng';const _0x4f6241=_0x5f2c1d;mockGetScaAnalysisResults[_0xb51e12(0x269)+_0xb51e12(0x270)](_0x4f6241);const _0xc1e991={};_0xc1e991[_0xb51e12(0x1f3)]=_0xb51e12(0x23f);const _0x3a891a=await _0x4e0506[_0xb51e12(0x23d)+_0xb51e12(0x26c)+'s'](_0xc1e991);expect(mockGetScaAnalysisResults)[_0xb51e12(0x258)+_0xb51e12(0x257)](_0xb51e12(0x23f)),expect(_0x3a891a['structured'+'Content']['components'])[_0xb51e12(0x21e)+'th'](0x1),expect(_0x3a891a['content'][0x0][_0xb51e12(0x273)])[_0xb51e12(0x26e)](_0xb51e12(0x246)),expect(_0x3a891a[_0xb51e12(0x215)][0x0][_0xb51e12(0x273)])['toContain'](_0xb51e12(0x230)+'234');}),it(_0x120b11[_0x5ddaa9(0x1f0)],async()=>{const _0x263784=_0x5ddaa9;mockGetScaAnalysisResults['mockReject'+_0x263784(0x270)](new Error(_0x263784(0x265)+_0x263784(0x234)));const _0x3a3038={};_0x3a3038[_0x263784(0x1f3)]='missing-id';const _0x857f41=await _0x4e0506[_0x263784(0x23d)+_0x263784(0x26c)+'s'](_0x3a3038);expect(_0x857f41['structured'+_0x263784(0x260)][_0x263784(0x1f4)])[_0x263784(0x26e)](_0x263784(0x265)+_0x263784(0x234));}),it(_0x5ddaa9(0x22d)+_0x5ddaa9(0x253)+_0x5ddaa9(0x1f9)+_0x5ddaa9(0x255)+'or',async()=>{const _0x1b4d88=_0x5ddaa9;mockGetScaAnalysisResults[_0x1b4d88(0x25b)+_0x1b4d88(0x270)](new Error(_0x1b4d88(0x265)+_0x1b4d88(0x243)+'ed'));const _0x135d1a={};_0x135d1a[_0x1b4d88(0x1f3)]=_0x1b4d88(0x214);const _0x253633=await _0x4e0506[_0x1b4d88(0x23d)+'ysisResult'+'s'](_0x135d1a);expect(_0x253633['structured'+_0x1b4d88(0x260)][_0x1b4d88(0x1f4)])[_0x1b4d88(0x26e)](_0x1b4d88(0x265)+'ot\x20complet'+'ed');}),_0x120b11['WgVDs'](it,_0x5ddaa9(0x22d)+_0x5ddaa9(0x204)+_0x5ddaa9(0x27e)+_0x5ddaa9(0x28e),async()=>{const _0x179a58=_0x5ddaa9,_0x284007={};_0x284007[_0x179a58(0x1f3)]=_0x179a58(0x23f),_0x284007[_0x179a58(0x216)]=_0x5169f3[_0x179a58(0x259)],_0x284007[_0x179a58(0x205)]='SUCCESS',_0x284007['components']=[],_0x284007[_0x179a58(0x250)+_0x179a58(0x219)]=0x0,_0x284007[_0x179a58(0x28a)+_0x179a58(0x280)]=0x0,_0x284007[_0x179a58(0x241)]=0x0,_0x284007[_0x179a58(0x22e)+'t']=0x0,_0x284007[_0x179a58(0x236)]=0x0,_0x284007[_0x179a58(0x210)+'ief']=_0x179a58(0x1fc)+_0x179a58(0x285);const _0x5aceed=_0x284007;mockGetScaAnalysisResults[_0x179a58(0x269)+_0x179a58(0x270)](_0x5aceed);const _0x45b568={};_0x45b568['analysisId']=_0x179a58(0x23f);const _0x5b45ec=await _0x4e0506[_0x179a58(0x23d)+_0x179a58(0x26c)+'s'](_0x45b568);expect(_0x5b45ec[_0x179a58(0x27a)+_0x179a58(0x260)][_0x179a58(0x27e)])[_0x179a58(0x21e)+'th'](0x0),expect(_0x5b45ec[_0x179a58(0x215)][0x0][_0x179a58(0x273)])[_0x179a58(0x26e)]('No\x20compone'+_0x179a58(0x25c)+_0x179a58(0x28d));}),it(_0x5ddaa9(0x22d)+_0x5ddaa9(0x24b)+_0x5ddaa9(0x252)+'no\x20vulnera'+_0x5ddaa9(0x217),async()=>{const _0x3fc59e=_0x5ddaa9,_0x373306={};_0x373306[_0x3fc59e(0x24f)]=_0x3fc59e(0x239);const _0x4e4ed6={};_0x4e4ed6[_0x3fc59e(0x24f)]=_0x5169f3[_0x3fc59e(0x26a)],_0x4e4ed6['version']=_0x3fc59e(0x21f),_0x4e4ed6[_0x3fc59e(0x23b)]=[_0x373306],_0x4e4ed6[_0x3fc59e(0x263)]=[];const _0x103d95={};_0x103d95['analysisId']=_0x3fc59e(0x23f),_0x103d95[_0x3fc59e(0x216)]=_0x3fc59e(0x254),_0x103d95[_0x3fc59e(0x205)]=_0x3fc59e(0x218),_0x103d95[_0x3fc59e(0x27e)]=[_0x4e4ed6],_0x103d95[_0x3fc59e(0x250)+'rabilities']=0x0,_0x103d95['criticalCo'+_0x3fc59e(0x280)]=0x0,_0x103d95[_0x3fc59e(0x241)]=0x0,_0x103d95[_0x3fc59e(0x22e)+'t']=0x0,_0x103d95[_0x3fc59e(0x236)]=0x0,_0x103d95[_0x3fc59e(0x210)+'ief']='Safe';const _0x2cd0cc=_0x103d95;mockGetScaAnalysisResults[_0x3fc59e(0x269)+_0x3fc59e(0x270)](_0x2cd0cc);const _0x240e49={};_0x240e49[_0x3fc59e(0x1f3)]=_0x3fc59e(0x23f);const _0x373664=await _0x4e0506['getScaAnal'+'ysisResult'+'s'](_0x240e49);expect(_0x373664['structured'+_0x3fc59e(0x260)][_0x3fc59e(0x27e)])[_0x3fc59e(0x21e)+'th'](0x1),expect(_0x373664[_0x3fc59e(0x215)][0x0][_0x3fc59e(0x273)])[_0x3fc59e(0x26e)]('No\x20vulnera'+_0x3fc59e(0x27d)+_0x3fc59e(0x286)),expect(_0x373664['content'][0x0][_0x3fc59e(0x273)])['toContain'](_0x3fc59e(0x249)+_0x3fc59e(0x240)+'erity\x20issu'+'es');});}),describe(_0x1ce95a(0x22f)+'sResults\x20c'+_0x1ce95a(0x26b),()=>{const _0x29682c=_0x1ce95a;it(_0x29682c(0x22d)+'dle\x20analys'+_0x29682c(0x202)+_0x29682c(0x27f),async()=>{const _0x173434=_0x29682c,_0x5d327b={};_0x5d327b[_0x173434(0x1f3)]=_0x173434(0x1fa),_0x5d327b[_0x173434(0x216)]=_0x173434(0x254),_0x5d327b[_0x173434(0x205)]='FAIL',_0x5d327b[_0x173434(0x23e)+_0x173434(0x284)]=[],_0x5d327b[_0x173434(0x210)+_0x173434(0x1f6)]=_0x173434(0x1f2)+_0x173434(0x244)+_0x173434(0x225)+'l\x20error';const _0x2ee30c=_0x5d327b;mockGetAnalysisResults[_0x173434(0x269)+_0x173434(0x270)](_0x2ee30c);const _0x2c2871={};_0x2c2871[_0x173434(0x1f3)]=_0x173434(0x1fa);const _0x500342=await _0x4e0506[_0x173434(0x22f)+_0x173434(0x206)](_0x2c2871);expect(_0x500342[_0x173434(0x27a)+_0x173434(0x260)][_0x173434(0x205)])[_0x173434(0x27c)]('FAIL'),expect(_0x500342[_0x173434(0x215)][0x0][_0x173434(0x273)])[_0x173434(0x26e)](_0x173434(0x24a)+'IL');});}),_0x120b11['WgVDs'](describe,'trackAnaly'+_0x1ce95a(0x25f)+'s',()=>{const _0x5449cd=_0x1ce95a,_0x391881={'iDXaY':function(_0x15e93a,_0x49707d){return _0x15e93a(_0x49707d);}};it('should\x20ret'+_0x5449cd(0x20a)+'if\x20progres'+_0x5449cd(0x211)+_0x5449cd(0x248),async()=>{const _0x26f23c=_0x5449cd,_0x34acdf={};_0x34acdf[_0x26f23c(0x1f3)]=_0x26f23c(0x242);const _0x424bba={};_0x424bba['_meta']={};const _0x2ededa=await _0x4e0506[_0x26f23c(0x287)+_0x26f23c(0x25f)+'s'](_0x34acdf,_0x424bba);_0x391881['iDXaY'](expect,_0x2ededa[_0x26f23c(0x27a)+_0x26f23c(0x260)][_0x26f23c(0x1f4)])[_0x26f23c(0x27c)](_0x26f23c(0x256)+_0x26f23c(0x268)+_0x26f23c(0x235));});});});
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 +1 @@
1
- const a13_0x55fb30=a13_0x1935;(function(_0x44b252,_0x17c2eb){const _0x3caf38=a13_0x1935,_0x4b836f=_0x44b252();while(!![]){try{const _0x570815=parseInt(_0x3caf38(0xd9))/0x1*(parseInt(_0x3caf38(0xb5))/0x2)+-parseInt(_0x3caf38(0xd2))/0x3*(parseInt(_0x3caf38(0xb9))/0x4)+-parseInt(_0x3caf38(0xb8))/0x5*(-parseInt(_0x3caf38(0xd8))/0x6)+-parseInt(_0x3caf38(0xf0))/0x7+-parseInt(_0x3caf38(0xed))/0x8*(parseInt(_0x3caf38(0xf9))/0x9)+-parseInt(_0x3caf38(0x102))/0xa+parseInt(_0x3caf38(0x119))/0xb;if(_0x570815===_0x17c2eb)break;else _0x4b836f['push'](_0x4b836f['shift']());}catch(_0x17e9bd){_0x4b836f['push'](_0x4b836f['shift']());}}}(a13_0x23ab,0x91f88));function a13_0x1935(_0x1c0be2,_0x583de1){_0x1c0be2=_0x1c0be2-0xb1;const _0x2f5153=a13_0x23ab();let _0x18319a=_0x2f5153[_0x1c0be2];return _0x18319a;}const a13_0x21cd73=(function(){let _0x5a858c=!![];return function(_0x5de247,_0x4c4faf){const _0x4c9a27=_0x5a858c?function(){const _0x2fb60c=a13_0x1935;if(_0x4c4faf){const _0x3e8dfa=_0x4c4faf[_0x2fb60c(0xc7)](_0x5de247,arguments);return _0x4c4faf=null,_0x3e8dfa;}}:function(){};return _0x5a858c=![],_0x4c9a27;};}()),a13_0x18319a=a13_0x21cd73(this,function(){const _0x2738ed=a13_0x1935;return a13_0x18319a[_0x2738ed(0xea)]()[_0x2738ed(0xc4)](_0x2738ed(0x101)+'+$')[_0x2738ed(0xea)]()[_0x2738ed(0xf6)+'r'](a13_0x18319a)[_0x2738ed(0xc4)](_0x2738ed(0x101)+'+$');});a13_0x18319a();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSecurity=jest['fn'](),mockAnalyzeMultipleFilesFromPaths=jest['fn'](),mockAnalyzeFolder=jest['fn'](),mockAnalyzeZipFile=jest['fn']();jest[a13_0x55fb30(0x10e)+a13_0x55fb30(0xb2)](a13_0x55fb30(0xf8)+a13_0x55fb30(0x11a)+'sis.servic'+a13_0x55fb30(0xcf),()=>({'AnalysisService':jest['fn']()['mockImplem'+a13_0x55fb30(0xc8)](()=>({'analyzeFileSecurity':mockAnalyzeFileSecurity,'analyzeMultipleFilesFromPaths':mockAnalyzeMultipleFilesFromPaths,'analyzeFolder':mockAnalyzeFolder,'analyzeZipFile':mockAnalyzeZipFile}))})),jest[a13_0x55fb30(0x10e)+a13_0x55fb30(0xb2)](a13_0x55fb30(0x10d)+a13_0x55fb30(0xe7)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const {SastController}=await import('../sast.co'+a13_0x55fb30(0xf5)+'s'),{AnalysisService}=await import(a13_0x55fb30(0xf8)+a13_0x55fb30(0x11a)+a13_0x55fb30(0xe5)+a13_0x55fb30(0xcf));function a13_0x23ab(){const _0x5eccc2=['2316ldLPNq','esSast','Sast','folderPath','INIT','filePaths','sKOpG','ZIP\x20file\x20p','analyzeFil','ile\x20analys','edValue','search','if\x20no\x20file','toContain','apply','entation','\x20not\x20provi','ovided','h\x20not\x20prov','ICJyI','fileName','should\x20ret','e.js','Analysis\x20f','File\x20paths','4413uZkqfR','ile1','urn\x20error\x20','analysis','wNqDf','initiate\x20f','876FAYJNQ','812263vWIbvw','mockResolv','ile.zip','older','analysisId','should\x20suc','File\x20conte','ller','structured','ders','mockReject','XDuZA','sis.servic','path\x20missi','s/logger.j','code','Content','toString','le\x20errors','P\x20file','261032YaNhML','file\x20conte','ath\x20not\x20pr','638456YZbBmY','\x20gracefull','dle\x20empty\x20','be\x20empty','analyzeFol','ntroller.j','constructo','Invalid\x20ZI','../../serv','243BkScSy','h\x20missing','eSast','cessfully\x20','not','/path/to/f','zipFilePat','analyzeZip','(((.+)+)+)','8528890TvPNKL','test.java','should\x20han','toHaveBeen','derSast','test-id','initiate\x20m','dle\x20zip\x20fi','error','toBe','PrIst','../../util','unstable_m','ile2','cks','ip\x20analysi','fileConten','s\x20provided','ysis','CalledWith','status','Folder\x20pat','ided','18056104kvMzJn','ices/analy','Called','ailed','ockModule','clearAllMo','ulti-file\x20','2sdOfJz','dle\x20errors','nt\x20cannot\x20','28115fXDVxg'];a13_0x23ab=function(){return _0x5eccc2;};return a13_0x23ab();}describe('SastContro'+a13_0x55fb30(0xe0),()=>{const _0x3511d5=a13_0x55fb30,_0x518406={'unEQQ':function(_0x281e1d,_0x40cedd){return _0x281e1d(_0x40cedd);},'ICJyI':function(_0x2093be,_0xf3fe9c,_0x2fae93){return _0x2093be(_0xf3fe9c,_0x2fae93);}};let _0x409012,_0x302d61;beforeEach(()=>{const _0x396c7d=a13_0x1935;jest[_0x396c7d(0xb3)+_0x396c7d(0x110)](),_0x302d61=new AnalysisService(),_0x409012=new SastController(_0x302d61);}),describe(_0x3511d5(0xc1)+_0x3511d5(0xfb),()=>{const _0x280985=_0x3511d5;_0x518406[_0x280985(0xcc)](it,'should\x20suc'+_0x280985(0xfc)+'initiate\x20f'+_0x280985(0xc2)+'is',async()=>{const _0x3125a7=_0x280985,_0x7c03c6={};_0x7c03c6[_0x3125a7(0xdd)]=_0x3125a7(0x107),_0x7c03c6[_0x3125a7(0x116)]='INIT';const _0x569657=_0x7c03c6;mockAnalyzeFileSecurity[_0x3125a7(0xda)+_0x3125a7(0xc3)](_0x569657);const _0x39c6f3={};_0x39c6f3[_0x3125a7(0x112)+'t']=_0x3125a7(0xe8),_0x39c6f3[_0x3125a7(0xcd)]='test.java';const _0x17384d=await _0x409012['analyzeFil'+'eSast'](_0x39c6f3),_0x2646d9={};_0x2646d9['fileConten'+'t']='code',_0x2646d9[_0x3125a7(0xcd)]=_0x3125a7(0x103),expect(mockAnalyzeFileSecurity)[_0x3125a7(0x105)+_0x3125a7(0x115)](_0x2646d9),_0x518406['unEQQ'](expect,_0x17384d[_0x3125a7(0xe1)+_0x3125a7(0xe9)][_0x3125a7(0xdd)])[_0x3125a7(0x10b)](_0x3125a7(0x107));}),it(_0x280985(0x104)+_0x280985(0xb6)+_0x280985(0xf1)+'y',async()=>{const _0x1c655f=_0x280985;mockAnalyzeFileSecurity[_0x1c655f(0xe3)+_0x1c655f(0xc3)](new Error('Analysis\x20f'+_0x1c655f(0xb1)));const _0x501b9f={};_0x501b9f[_0x1c655f(0x112)+'t']='code',_0x501b9f[_0x1c655f(0xcd)]=_0x1c655f(0x103);const _0x5e003b=await _0x409012[_0x1c655f(0xc1)+_0x1c655f(0xfb)](_0x501b9f);expect(_0x5e003b[_0x1c655f(0xe1)+_0x1c655f(0xe9)][_0x1c655f(0x10a)])[_0x1c655f(0x10b)](_0x1c655f(0xd0)+_0x1c655f(0xb1));});}),it(_0x3511d5(0x104)+_0x3511d5(0xf2)+_0x3511d5(0xee)+'nt',async()=>{const _0x579c9f=_0x3511d5;mockAnalyzeFileSecurity[_0x579c9f(0xe3)+_0x579c9f(0xc3)](new Error(_0x579c9f(0xdf)+_0x579c9f(0xb7)+_0x579c9f(0xf3)));const _0x43156b={};_0x43156b[_0x579c9f(0x112)+'t']='',_0x43156b[_0x579c9f(0xcd)]=_0x579c9f(0x103);const _0x357d92=await _0x409012[_0x579c9f(0xc1)+_0x579c9f(0xfb)](_0x43156b);expect(_0x357d92[_0x579c9f(0xe1)+_0x579c9f(0xe9)][_0x579c9f(0x10a)])[_0x579c9f(0xc6)](_0x579c9f(0xdf)+_0x579c9f(0xb7)+_0x579c9f(0xf3));}),describe(_0x3511d5(0xc1)+_0x3511d5(0xba),()=>{const _0x2a2f77=_0x3511d5,_0x49506b={'sKOpG':_0x2a2f77(0xfe)+_0x2a2f77(0xd3),'XDuZA':function(_0x57de55,_0x327ce8){return _0x57de55(_0x327ce8);},'PrIst':function(_0x20283b,_0x15b14a){return _0x20283b(_0x15b14a);}};it(_0x2a2f77(0xde)+_0x2a2f77(0xfc)+_0x2a2f77(0x108)+_0x2a2f77(0xb4)+_0x2a2f77(0xd5),async()=>{const _0x5b0ecd=_0x2a2f77,_0x489333={};_0x489333[_0x5b0ecd(0xdd)]=_0x5b0ecd(0x107),_0x489333['status']='INIT';const _0x25a23b=_0x489333;mockAnalyzeMultipleFilesFromPaths[_0x5b0ecd(0xda)+_0x5b0ecd(0xc3)](_0x25a23b);const _0x10619e={};_0x10619e['filePaths']=[_0x49506b[_0x5b0ecd(0xbf)],'/path/to/f'+_0x5b0ecd(0x10f)];const _0x416242=await _0x409012[_0x5b0ecd(0xc1)+_0x5b0ecd(0xba)](_0x10619e);expect(mockAnalyzeMultipleFilesFromPaths)['toHaveBeen'+_0x5b0ecd(0x115)](['/path/to/f'+'ile1',_0x5b0ecd(0xfe)+_0x5b0ecd(0x10f)],undefined),expect(_0x416242[_0x5b0ecd(0xe1)+_0x5b0ecd(0xe9)]['analysisId'])['toBe'](_0x5b0ecd(0x107)),_0x49506b[_0x5b0ecd(0xe4)](expect,_0x416242['structured'+'Content']['filePathCo'+'unt'])['toBe'](0x2);}),it(_0x2a2f77(0xce)+_0x2a2f77(0xd4)+_0x2a2f77(0xc5)+_0x2a2f77(0x113),async()=>{const _0x1377a8=_0x2a2f77,_0x12a1af={};_0x12a1af[_0x1377a8(0xbe)]=[];const _0x39cd6b=await _0x409012[_0x1377a8(0xc1)+'esSast'](_0x12a1af);_0x49506b[_0x1377a8(0x10c)](expect,_0x39cd6b[_0x1377a8(0xe1)+'Content'][_0x1377a8(0x10a)])[_0x1377a8(0x10b)](_0x1377a8(0xd1)+_0x1377a8(0xc9)+'ded'),expect(mockAnalyzeMultipleFilesFromPaths)[_0x1377a8(0xfd)][_0x1377a8(0x105)+_0x1377a8(0x11b)]();});}),describe(_0x3511d5(0xf4)+'derSast',()=>{const _0x4f3217=_0x3511d5;_0x518406[_0x4f3217(0xcc)](it,_0x4f3217(0xde)+_0x4f3217(0xfc)+_0x4f3217(0xd7)+'older\x20anal'+_0x4f3217(0x114),async()=>{const _0x4a1e5c=_0x4f3217,_0x2ed34a={};_0x2ed34a[_0x4a1e5c(0xdd)]=_0x4a1e5c(0x107),_0x2ed34a['status']='INIT',_0x2ed34a['skippedFol'+_0x4a1e5c(0xe2)]=[];const _0x131c30=_0x2ed34a;mockAnalyzeFolder['mockResolv'+_0x4a1e5c(0xc3)](_0x131c30);const _0x4cd3f2={};_0x4cd3f2[_0x4a1e5c(0xbc)]='/path/to/f'+_0x4a1e5c(0xdc);const _0x5eb412=await _0x409012[_0x4a1e5c(0xf4)+_0x4a1e5c(0x106)](_0x4cd3f2);expect(mockAnalyzeFolder)['toHaveBeen'+_0x4a1e5c(0x115)](_0x4a1e5c(0xfe)+_0x4a1e5c(0xdc),undefined),expect(_0x5eb412[_0x4a1e5c(0xe1)+_0x4a1e5c(0xe9)]['analysisId'])['toBe'](_0x4a1e5c(0x107));}),it(_0x4f3217(0xce)+_0x4f3217(0xd4)+'if\x20folder\x20'+_0x4f3217(0xe6)+'ng',async()=>{const _0x2c0a7f=_0x4f3217,_0x288edf={};_0x288edf[_0x2c0a7f(0xbc)]='';const _0x5131b3=await _0x409012[_0x2c0a7f(0xf4)+_0x2c0a7f(0x106)](_0x288edf);expect(_0x5131b3[_0x2c0a7f(0xe1)+_0x2c0a7f(0xe9)]['error'])['toBe'](_0x2c0a7f(0x117)+_0x2c0a7f(0xcb)+_0x2c0a7f(0x118)),expect(mockAnalyzeFolder)['not']['toHaveBeen'+_0x2c0a7f(0x11b)]();});}),describe(_0x3511d5(0x100)+_0x3511d5(0xbb),()=>{const _0x21ca41=_0x3511d5,_0x1dd8dd={'TODcP':'/path/to/f'+_0x21ca41(0xdb),'wNqDf':function(_0x5f31d9,_0x23abcb){return _0x5f31d9(_0x23abcb);}};it(_0x21ca41(0xde)+_0x21ca41(0xfc)+'initiate\x20z'+_0x21ca41(0x111)+'s',async()=>{const _0xd69059=_0x21ca41,_0x248ec3={};_0x248ec3[_0xd69059(0xdd)]='test-id',_0x248ec3[_0xd69059(0x116)]=_0xd69059(0xbd);const _0x26338a=_0x248ec3;mockAnalyzeZipFile['mockResolv'+_0xd69059(0xc3)](_0x26338a);const _0xd92c64={};_0xd92c64[_0xd69059(0xff)+'h']='/path/to/f'+'ile.zip';const _0x5a45d9=await _0x409012[_0xd69059(0x100)+_0xd69059(0xbb)](_0xd92c64);expect(mockAnalyzeZipFile)[_0xd69059(0x105)+_0xd69059(0x115)](_0x1dd8dd['TODcP'],undefined),_0x1dd8dd[_0xd69059(0xd6)](expect,_0x5a45d9[_0xd69059(0xe1)+_0xd69059(0xe9)][_0xd69059(0xdd)])['toBe'](_0xd69059(0x107));}),it('should\x20ret'+_0x21ca41(0xd4)+'if\x20zip\x20pat'+_0x21ca41(0xfa),async()=>{const _0x10b284=_0x21ca41,_0x1225b2={};_0x1225b2['zipFilePat'+'h']='';const _0x1151cd=await _0x409012[_0x10b284(0x100)+_0x10b284(0xbb)](_0x1225b2);expect(_0x1151cd[_0x10b284(0xe1)+_0x10b284(0xe9)]['error'])['toBe'](_0x10b284(0xc0)+_0x10b284(0xef)+_0x10b284(0xca)),expect(mockAnalyzeZipFile)[_0x10b284(0xfd)][_0x10b284(0x105)+_0x10b284(0x11b)]();}),it(_0x21ca41(0x104)+_0x21ca41(0x109)+_0x21ca41(0xeb),async()=>{const _0x394176=_0x21ca41;mockAnalyzeZipFile[_0x394176(0xe3)+_0x394176(0xc3)](new Error('Invalid\x20ZI'+_0x394176(0xec)));const _0x42e76f={};_0x42e76f[_0x394176(0xff)+'h']='corrupt.zi'+'p';const _0x1b443d=await _0x409012[_0x394176(0x100)+_0x394176(0xbb)](_0x42e76f);expect(_0x1b443d[_0x394176(0xe1)+_0x394176(0xe9)]['error'])['toContain'](_0x394176(0xf7)+'P\x20file');});});});
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 +1 @@
1
- const a14_0x1a6be5=a14_0x1602;function a14_0x1602(_0x58e362,_0x14d1af){_0x58e362=_0x58e362-0xaf;const _0x399e70=a14_0x2b74();let _0x578306=_0x399e70[_0x58e362];return _0x578306;}(function(_0x386e17,_0x44a47c){const _0x5527c6=a14_0x1602,_0x44bd9d=_0x386e17();while(!![]){try{const _0x16e83b=-parseInt(_0x5527c6(0xdf))/0x1*(parseInt(_0x5527c6(0xc6))/0x2)+-parseInt(_0x5527c6(0xf6))/0x3+-parseInt(_0x5527c6(0xcb))/0x4*(parseInt(_0x5527c6(0x104))/0x5)+-parseInt(_0x5527c6(0xfe))/0x6+parseInt(_0x5527c6(0xc1))/0x7+parseInt(_0x5527c6(0xf4))/0x8+-parseInt(_0x5527c6(0x106))/0x9*(-parseInt(_0x5527c6(0xe7))/0xa);if(_0x16e83b===_0x44a47c)break;else _0x44bd9d['push'](_0x44bd9d['shift']());}catch(_0x1c57d3){_0x44bd9d['push'](_0x44bd9d['shift']());}}}(a14_0x2b74,0x6feb6));const a14_0x2ba01a=(function(){let _0x25fd13=!![];return function(_0x451bf5,_0x1c869d){const _0x545d37=_0x25fd13?function(){const _0x7c951a=a14_0x1602;if(_0x1c869d){const _0x3bd64f=_0x1c869d[_0x7c951a(0xb1)](_0x451bf5,arguments);return _0x1c869d=null,_0x3bd64f;}}:function(){};return _0x25fd13=![],_0x545d37;};}()),a14_0x578306=a14_0x2ba01a(this,function(){const _0x1ee603=a14_0x1602;return a14_0x578306['toString']()[_0x1ee603(0xb8)]('(((.+)+)+)'+'+$')[_0x1ee603(0xe2)]()[_0x1ee603(0xed)+'r'](a14_0x578306)[_0x1ee603(0xb8)](_0x1ee603(0xe4)+'+$');});a14_0x578306();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSca=jest['fn'](),mockAnalyzeFilesSca=jest['fn'](),mockAnalyzeFolderSca=jest['fn'](),mockAnalyzeZipSca=jest['fn']();function a14_0x2b74(){const _0x4e1f19=['2.json','h\x20not\x20prov','search','VTize','structured','ackage.jso','toBe','should\x20suc','1.json','status','clearAllMo','1689779cXNJAD','toHaveBeen','ices/analy','../sca.con','Called','2996LXbUdN','../../serv','cessfully\x20','File\x20path\x20','ders','36yUQRjo','if\x20file\x20pa','edValue','ip\x20analysi','test-id','s/logger.j','ath\x20not\x20pr','error','folderPath','mCTyG','CalledWith','cks','entation','cvMaH','skippedFol','e.js','File\x20paths','s\x20provided','ile\x20analys','/path/to/f','398AiIFbM','INIT','BRsIz','toString','if\x20no\x20file','(((.+)+)+)','eSca','unstable_m','108670mnNRqz','initiate\x20z','QTuDb','zipFilePat','ockModule','initiate\x20f','constructo','derSca','SCA','/path/to/p','not','analyzeZip','wWnFW','3548112DQLsmc','analysisId','790371CERRHV','Sca','filePaths','if\x20folder\x20','ded','ppQvU','urn\x20error\x20','esSca','5110848WEOcYb','th\x20missing','ScaControl','initiate\x20m','ysis','analyzeFil','14185cwIkyr','sis.servic','1251SoNoVd','filePath','not\x20provid','ler','mockResolv','Content','ided','ovided','apply','analysisTy','should\x20ret','mockImplem','older'];a14_0x2b74=function(){return _0x4e1f19;};return a14_0x2b74();}jest[a14_0x1a6be5(0xe6)+a14_0x1a6be5(0xeb)](a14_0x1a6be5(0xc7)+a14_0x1a6be5(0xc3)+a14_0x1a6be5(0x105)+a14_0x1a6be5(0xda),()=>({'AnalysisService':jest['fn']()[a14_0x1a6be5(0xb4)+a14_0x1a6be5(0xd7)](()=>({'analyzeFileSca':mockAnalyzeFileSca,'analyzeFilesSca':mockAnalyzeFilesSca,'analyzeFolderSca':mockAnalyzeFolderSca,'analyzeZipSca':mockAnalyzeZipSca}))})),jest[a14_0x1a6be5(0xe6)+a14_0x1a6be5(0xeb)]('../../util'+a14_0x1a6be5(0xd0)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {ScaController}=await import(a14_0x1a6be5(0xc4)+'troller.js'),{AnalysisService}=await import(a14_0x1a6be5(0xc7)+a14_0x1a6be5(0xc3)+a14_0x1a6be5(0x105)+a14_0x1a6be5(0xda));describe(a14_0x1a6be5(0x100)+a14_0x1a6be5(0x109),()=>{const _0x594f55=a14_0x1a6be5,_0x47d02b={'VTize':_0x594f55(0xb3)+'urn\x20error\x20'+_0x594f55(0xe3)+_0x594f55(0xdc),'mCTyG':'Folder\x20pat'+_0x594f55(0xb7)+_0x594f55(0xaf),'wWnFW':function(_0x30cb01,_0x220092,_0x1ff9a2){return _0x30cb01(_0x220092,_0x1ff9a2);},'Cyuwv':function(_0x26e1f2,_0x296ab0){return _0x26e1f2(_0x296ab0);},'plOXr':function(_0x105c43,_0x4cfb02){return _0x105c43(_0x4cfb02);},'ppQvU':_0x594f55(0xf2)+_0x594f55(0xf7)};let _0x535d5c,_0x1b3b1b;_0x47d02b['plOXr'](beforeEach,()=>{const _0x2357b1=_0x594f55;jest[_0x2357b1(0xc0)+_0x2357b1(0xd6)](),_0x1b3b1b=new AnalysisService(),_0x535d5c=new ScaController(_0x1b3b1b);}),describe(_0x594f55(0x103)+_0x594f55(0xe5),()=>{const _0x55b741=_0x594f55,_0x48a80e={};_0x48a80e[_0x55b741(0xd8)]=_0x55b741(0xc9)+_0x55b741(0x108)+'ed';const _0x5f0462=_0x48a80e;it(_0x55b741(0xbd)+_0x55b741(0xc8)+_0x55b741(0xec)+_0x55b741(0xdd)+'is',async()=>{const _0x77c39f=_0x55b741,_0x2e377b={};_0x2e377b['analysisId']=_0x77c39f(0xcf),_0x2e377b[_0x77c39f(0xbf)]='INIT',_0x2e377b[_0x77c39f(0xb2)+'pe']=_0x77c39f(0xef);const _0x13dbb4=_0x2e377b;mockAnalyzeFileSca[_0x77c39f(0x10a)+'edValue'](_0x13dbb4);const _0xdcf287={};_0xdcf287[_0x77c39f(0x107)]=_0x77c39f(0xf0)+_0x77c39f(0xbb)+'n';const _0x5de4ba=await _0x535d5c[_0x77c39f(0x103)+_0x77c39f(0xe5)](_0xdcf287);expect(mockAnalyzeFileSca)[_0x77c39f(0xc2)+_0x77c39f(0xd5)](_0x77c39f(0xf0)+'ackage.jso'+'n',undefined),expect(_0x5de4ba['structured'+'Content']['analysisId'])[_0x77c39f(0xbc)](_0x77c39f(0xcf));}),it(_0x55b741(0xb3)+_0x55b741(0xfc)+_0x55b741(0xcc)+_0x55b741(0xff),async()=>{const _0x3b855c=_0x55b741,_0x28252a={};_0x28252a[_0x3b855c(0x107)]='';const _0x53d152=await _0x535d5c[_0x3b855c(0x103)+_0x3b855c(0xe5)](_0x28252a);expect(_0x53d152['structured'+_0x3b855c(0x10b)][_0x3b855c(0xd2)])[_0x3b855c(0xbc)](_0x5f0462['cvMaH']),expect(mockAnalyzeFileSca)[_0x3b855c(0xf1)]['toHaveBeen'+_0x3b855c(0xc5)]();});}),describe(_0x594f55(0x103)+_0x594f55(0xfd),()=>{const _0x15ef03=_0x594f55,_0x190eec={'BRsIz':_0x15ef03(0xe0),'QTuDb':function(_0x517958,_0x4bb3aa){return _0x517958(_0x4bb3aa);}};it(_0x15ef03(0xbd)+_0x15ef03(0xc8)+_0x15ef03(0x101)+'ulti-file\x20'+'analysis',async()=>{const _0x15e39e=_0x15ef03,_0x2aa977={};_0x2aa977[_0x15e39e(0xf5)]=_0x15e39e(0xcf),_0x2aa977[_0x15e39e(0xbf)]=_0x190eec[_0x15e39e(0xe1)],_0x2aa977[_0x15e39e(0xb2)+'pe']='SCA';const _0x3a8dfc=_0x2aa977;mockAnalyzeFilesSca[_0x15e39e(0x10a)+_0x15e39e(0xcd)](_0x3a8dfc);const _0x5b69f9={};_0x5b69f9['filePaths']=[_0x15e39e(0xf0)+'1.json','/path/to/p'+'2.json'];const _0xfc4a76=await _0x535d5c['analyzeFil'+_0x15e39e(0xfd)](_0x5b69f9);_0x190eec[_0x15e39e(0xe9)](expect,mockAnalyzeFilesSca)[_0x15e39e(0xc2)+'CalledWith']([_0x15e39e(0xf0)+_0x15e39e(0xbe),_0x15e39e(0xf0)+_0x15e39e(0xb6)],undefined),_0x190eec['QTuDb'](expect,_0xfc4a76[_0x15e39e(0xba)+_0x15e39e(0x10b)]['analysisId'])[_0x15e39e(0xbc)](_0x15e39e(0xcf));}),it(_0x47d02b[_0x15ef03(0xb9)],async()=>{const _0x1f0a86=_0x15ef03,_0x6b1285={};_0x6b1285[_0x1f0a86(0xf8)]=[];const _0x26daba=await _0x535d5c[_0x1f0a86(0x103)+_0x1f0a86(0xfd)](_0x6b1285);expect(_0x26daba['structured'+_0x1f0a86(0x10b)][_0x1f0a86(0xd2)])[_0x1f0a86(0xbc)](_0x1f0a86(0xdb)+'\x20not\x20provi'+_0x1f0a86(0xfa)),expect(mockAnalyzeFilesSca)[_0x1f0a86(0xf1)][_0x1f0a86(0xc2)+_0x1f0a86(0xc5)]();});}),describe('analyzeFol'+_0x594f55(0xee),()=>{const _0x323470=_0x594f55;_0x47d02b[_0x323470(0xf3)](it,_0x323470(0xbd)+_0x323470(0xc8)+_0x323470(0xec)+'older\x20anal'+_0x323470(0x102),async()=>{const _0x59e385=_0x323470,_0x34b61e={};_0x34b61e[_0x59e385(0xf5)]=_0x59e385(0xcf),_0x34b61e[_0x59e385(0xbf)]=_0x59e385(0xe0),_0x34b61e['analysisTy'+'pe']=_0x59e385(0xef),_0x34b61e[_0x59e385(0xd9)+_0x59e385(0xca)]=[];const _0x24e607=_0x34b61e;mockAnalyzeFolderSca[_0x59e385(0x10a)+_0x59e385(0xcd)](_0x24e607);const _0x464346={};_0x464346[_0x59e385(0xd3)]=_0x59e385(0xde)+_0x59e385(0xb5);const _0x10b165=await _0x535d5c['analyzeFol'+_0x59e385(0xee)](_0x464346);expect(mockAnalyzeFolderSca)[_0x59e385(0xc2)+_0x59e385(0xd5)](_0x59e385(0xde)+_0x59e385(0xb5),undefined),expect(_0x10b165[_0x59e385(0xba)+_0x59e385(0x10b)][_0x59e385(0xf5)])[_0x59e385(0xbc)](_0x59e385(0xcf));}),it('should\x20ret'+_0x323470(0xfc)+_0x323470(0xf9)+'path\x20missi'+'ng',async()=>{const _0x233e43=_0x323470,_0x599f90={};_0x599f90['folderPath']='';const _0xb1f6cd=await _0x535d5c['analyzeFol'+_0x233e43(0xee)](_0x599f90);expect(_0xb1f6cd[_0x233e43(0xba)+'Content'][_0x233e43(0xd2)])[_0x233e43(0xbc)](_0x47d02b[_0x233e43(0xd4)]),expect(mockAnalyzeFolderSca)[_0x233e43(0xf1)][_0x233e43(0xc2)+'Called']();});}),describe(_0x47d02b[_0x594f55(0xfb)],()=>{const _0x4e5073=_0x594f55;it('should\x20suc'+'cessfully\x20'+_0x4e5073(0xe8)+_0x4e5073(0xce)+'s',async()=>{const _0x4e8572=_0x4e5073,_0x2199bf={};_0x2199bf[_0x4e8572(0xf5)]='test-id',_0x2199bf['status']=_0x4e8572(0xe0),_0x2199bf[_0x4e8572(0xb2)+'pe']=_0x4e8572(0xef);const _0x17ac73=_0x2199bf;mockAnalyzeZipSca[_0x4e8572(0x10a)+_0x4e8572(0xcd)](_0x17ac73);const _0x507f9d={};_0x507f9d['zipFilePat'+'h']=_0x4e8572(0xde)+'ile.zip';const _0x1f2d9b=await _0x535d5c[_0x4e8572(0xf2)+_0x4e8572(0xf7)](_0x507f9d);expect(mockAnalyzeZipSca)[_0x4e8572(0xc2)+_0x4e8572(0xd5)](_0x4e8572(0xde)+'ile.zip',undefined),_0x47d02b['Cyuwv'](expect,_0x1f2d9b['structured'+_0x4e8572(0x10b)][_0x4e8572(0xf5)])[_0x4e8572(0xbc)]('test-id');}),it(_0x4e5073(0xb3)+_0x4e5073(0xfc)+'if\x20zip\x20pat'+'h\x20missing',async()=>{const _0x4bf169=_0x4e5073,_0xc0fe5e={};_0xc0fe5e[_0x4bf169(0xea)+'h']='';const _0xb417d6=await _0x535d5c[_0x4bf169(0xf2)+_0x4bf169(0xf7)](_0xc0fe5e);expect(_0xb417d6[_0x4bf169(0xba)+_0x4bf169(0x10b)][_0x4bf169(0xd2)])['toBe']('ZIP\x20file\x20p'+_0x4bf169(0xd1)+_0x4bf169(0xb0)),expect(mockAnalyzeZipSca)[_0x4bf169(0xf1)][_0x4bf169(0xc2)+_0x4bf169(0xc5)]();});});});
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 +1 @@
1
- const a15_0x739f81=a15_0xf78d;(function(_0x3fa6a9,_0x304b61){const _0x34ae8e=a15_0xf78d,_0x192fe0=_0x3fa6a9();while(!![]){try{const _0x532579=parseInt(_0x34ae8e(0xc1))/0x1*(parseInt(_0x34ae8e(0xcd))/0x2)+-parseInt(_0x34ae8e(0xde))/0x3*(-parseInt(_0x34ae8e(0xe4))/0x4)+parseInt(_0x34ae8e(0xcc))/0x5*(-parseInt(_0x34ae8e(0xf9))/0x6)+parseInt(_0x34ae8e(0xc6))/0x7*(parseInt(_0x34ae8e(0xf2))/0x8)+-parseInt(_0x34ae8e(0xd1))/0x9+-parseInt(_0x34ae8e(0xf6))/0xa+-parseInt(_0x34ae8e(0xec))/0xb*(-parseInt(_0x34ae8e(0xfb))/0xc);if(_0x532579===_0x304b61)break;else _0x192fe0['push'](_0x192fe0['shift']());}catch(_0x184327){_0x192fe0['push'](_0x192fe0['shift']());}}}(a15_0x56c5,0xbec5c));const a15_0x50b60a=(function(){let _0xc53f18=!![];return function(_0x26dfb8,_0x41cdcd){const _0x4b69a5=_0xc53f18?function(){if(_0x41cdcd){const _0x2eadee=_0x41cdcd['apply'](_0x26dfb8,arguments);return _0x41cdcd=null,_0x2eadee;}}:function(){};return _0xc53f18=![],_0x4b69a5;};}()),a15_0x350b03=a15_0x50b60a(this,function(){const _0x2ff45d=a15_0xf78d;return a15_0x350b03[_0x2ff45d(0xf8)]()[_0x2ff45d(0xe2)](_0x2ff45d(0xe5)+'+$')[_0x2ff45d(0xf8)]()[_0x2ff45d(0xe7)+'r'](a15_0x350b03)[_0x2ff45d(0xe2)](_0x2ff45d(0xe5)+'+$');});function a15_0xf78d(_0x3b863c,_0x5c3e80){_0x3b863c=_0x3b863c-0xc0;const _0x1dc81c=a15_0x56c5();let _0x350b03=_0x1dc81c[_0x3b863c];return _0x350b03;}a15_0x350b03();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGenerateSecureCodeFromAnalysis=jest['fn']();function a15_0x56c5(){const _0x14593a=['12OEIzKj','brief','ntroller','secure\x20cod','311UAQwRZ','toBe','should\x20han','urn\x20secure','dle\x20LLM\x20se','1827ihZmSz','generateSe','eQTca','e\x20generati','ockModule','analysisId','2340370xHBrAF','4456UReEZT','e.js','code','sis.servic','9649791UchXxx','Content','structured','../../serv','on\x20failed','ices/analy','edValue','HkVbR','SecurityCo','mockReject','\x20failed','../securit','diff','2222061OPUPcM','ure','mockImplem','error','search','toContain','4xoDhZy','(((.+)+)+)','Generation','constructo','secureCode','dle\x20errors','fileConten','ode','1206040AhiIyE','unstable_m','CalledWith','Secure\x20cod','cureCode','original\x20c','40480IKPqez','test-id','s/logger.j','mhEVi','5422180znuduT','clearAllMo','toString','6wEbwfG','mockResolv'];a15_0x56c5=function(){return _0x14593a;};return a15_0x56c5();}jest[a15_0x739f81(0xed)+a15_0x739f81(0xca)](a15_0x739f81(0xd4)+'ices/analy'+a15_0x739f81(0xd0)+a15_0x739f81(0xce),()=>({'AnalysisService':jest['fn']()[a15_0x739f81(0xe0)+'entation'](()=>({'generateSecureCodeFromAnalysis':mockGenerateSecureCodeFromAnalysis}))})),jest['unstable_m'+'ockModule']('../../util'+a15_0x739f81(0xf4)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SecurityController}=await import(a15_0x739f81(0xdc)+'y.controll'+'er.js'),{AnalysisService}=await import(a15_0x739f81(0xd4)+a15_0x739f81(0xd6)+a15_0x739f81(0xd0)+'e.js');describe(a15_0x739f81(0xd9)+a15_0x739f81(0xfd),()=>{const _0x17c6b2=a15_0x739f81,_0x4c52f1={'eQTca':function(_0x42bbeb,_0x2aa7b8,_0x46fea3){return _0x42bbeb(_0x2aa7b8,_0x46fea3);},'mhEVi':_0x17c6b2(0xc7)+'cureCode'};let _0x3f6d2a,_0x4072b2;beforeEach(()=>{const _0x1161c3=_0x17c6b2;jest[_0x1161c3(0xf7)+'cks'](),_0x4072b2=new AnalysisService(),_0x3f6d2a=new SecurityController(_0x4072b2);}),_0x4c52f1[_0x17c6b2(0xc8)](describe,_0x4c52f1[_0x17c6b2(0xf5)],()=>{const _0x177954=_0x17c6b2,_0x392d1d={'HkVbR':function(_0x1608e5,_0x38ffb5){return _0x1608e5(_0x38ffb5);}};it('should\x20ret'+_0x177954(0xc4)+'\x20code\x20and\x20'+_0x177954(0xdd),async()=>{const _0x1913a8=_0x177954,_0x3c71fa={};_0x3c71fa[_0x1913a8(0xe8)]='secure\x20cod'+'e',_0x3c71fa[_0x1913a8(0xe8)+'Brief']=_0x1913a8(0xfc),_0x3c71fa[_0x1913a8(0xdd)]=_0x1913a8(0xdd);const _0x24d5fb=_0x3c71fa;mockGenerateSecureCodeFromAnalysis[_0x1913a8(0xfa)+_0x1913a8(0xd7)](_0x24d5fb);const _0x2ce31b={};_0x2ce31b['analysisId']=_0x1913a8(0xf3),_0x2ce31b['fileConten'+'t']=_0x1913a8(0xf1)+'ode';const _0x393535=await _0x3f6d2a['generateSe'+_0x1913a8(0xf0)](_0x2ce31b);_0x392d1d[_0x1913a8(0xd8)](expect,mockGenerateSecureCodeFromAnalysis)['toHaveBeen'+_0x1913a8(0xee)]('test-id',_0x1913a8(0xf1)+_0x1913a8(0xeb)),expect(_0x393535['structured'+_0x1913a8(0xd2)]['secureCode'])[_0x1913a8(0xc2)](_0x1913a8(0xc0)+'e'),expect(_0x393535[_0x1913a8(0xd3)+_0x1913a8(0xd2)][_0x1913a8(0xdd)])[_0x1913a8(0xc2)](_0x1913a8(0xdd));}),it(_0x177954(0xc3)+_0x177954(0xe9),async()=>{const _0x436851=_0x177954;mockGenerateSecureCodeFromAnalysis[_0x436851(0xda)+_0x436851(0xd7)](new Error('Generation'+_0x436851(0xdb)));const _0xafb350={};_0xafb350[_0x436851(0xcb)]=_0x436851(0xf3),_0xafb350[_0x436851(0xea)+'t']=_0x436851(0xcf);const _0x35b1c9=await _0x3f6d2a[_0x436851(0xc7)+_0x436851(0xf0)](_0xafb350);expect(_0x35b1c9[_0x436851(0xd3)+_0x436851(0xd2)][_0x436851(0xe1)])[_0x436851(0xc2)](_0x436851(0xe6)+_0x436851(0xdb));});}),it(_0x17c6b2(0xc3)+_0x17c6b2(0xc5)+'rvice\x20fail'+_0x17c6b2(0xdf),async()=>{const _0x240393=_0x17c6b2;mockGenerateSecureCodeFromAnalysis['mockReject'+_0x240393(0xd7)](new Error(_0x240393(0xef)+_0x240393(0xc9)+_0x240393(0xd5)));const _0x423153={};_0x423153[_0x240393(0xcb)]='test-id',_0x423153[_0x240393(0xea)+'t']=_0x240393(0xcf);const _0x2abdb1=await _0x3f6d2a['generateSe'+_0x240393(0xf0)](_0x423153);expect(_0x2abdb1['structured'+_0x240393(0xd2)][_0x240393(0xe1)])[_0x240393(0xe3)]('Secure\x20cod'+_0x240393(0xc9)+_0x240393(0xd5));});});
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 +1 @@
1
- const a16_0x361327=a16_0x54c9;(function(_0x27be20,_0x262b87){const _0x29a111=a16_0x54c9,_0x5f145b=_0x27be20();while(!![]){try{const _0x63b88d=-parseInt(_0x29a111(0x10f))/0x1*(-parseInt(_0x29a111(0x115))/0x2)+parseInt(_0x29a111(0x10b))/0x3*(-parseInt(_0x29a111(0x11e))/0x4)+-parseInt(_0x29a111(0x107))/0x5*(parseInt(_0x29a111(0x112))/0x6)+-parseInt(_0x29a111(0x11a))/0x7*(parseInt(_0x29a111(0x114))/0x8)+-parseInt(_0x29a111(0x117))/0x9+parseInt(_0x29a111(0x10e))/0xa*(parseInt(_0x29a111(0x121))/0xb)+parseInt(_0x29a111(0x11c))/0xc*(parseInt(_0x29a111(0x122))/0xd);if(_0x63b88d===_0x262b87)break;else _0x5f145b['push'](_0x5f145b['shift']());}catch(_0x5e2a38){_0x5f145b['push'](_0x5f145b['shift']());}}}(a16_0x4f3b,0xb577a));const a16_0x3f81a5=(function(){let _0x4a3bda=!![];return function(_0x53e21a,_0x46ef99){const _0x51ee1e=_0x4a3bda?function(){const _0x1b674c=a16_0x54c9;if(_0x46ef99){const _0x49776e=_0x46ef99[_0x1b674c(0x11b)](_0x53e21a,arguments);return _0x46ef99=null,_0x49776e;}}:function(){};return _0x4a3bda=![],_0x51ee1e;};}()),a16_0x55dac4=a16_0x3f81a5(this,function(){const _0x2959c3=a16_0x54c9;return a16_0x55dac4[_0x2959c3(0x10c)]()[_0x2959c3(0x111)](_0x2959c3(0x10d)+'+$')['toString']()[_0x2959c3(0x124)+'r'](a16_0x55dac4)['search'](_0x2959c3(0x10d)+'+$');});a16_0x55dac4();function a16_0x4f3b(){const _0x1af879=['9585909GfoKzH','CjwXt','controller','7UNnfoC','apply','31584UBuECO','roller','1361204RJobUC','should\x20be\x20','cks','9031BYfwch','14326uMIiIr','.js','constructo','ceOf','unstable_m','235355gpOryH','toBeInstan','instantiab','clearAllMo','12NMtjXv','toString','(((.+)+)+)','4860HWXuNn','6297OnDdqK','../../util','search','6jYNRQY','ockModule','9075224sTwdxF','334LqkJfe','SystemCont'];a16_0x4f3b=function(){return _0x1af879;};return a16_0x4f3b();}import{jest,describe,it,expect,beforeEach}from'@jest/globals';function a16_0x54c9(_0x41f0f0,_0x3617c8){_0x41f0f0=_0x41f0f0-0x105;const _0x2c0268=a16_0x4f3b();let _0x55dac4=_0x2c0268[_0x41f0f0];return _0x55dac4;}jest[a16_0x361327(0x106)+a16_0x361327(0x113)](a16_0x361327(0x110)+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SystemController}=await import('../system.'+a16_0x361327(0x119)+a16_0x361327(0x123));describe(a16_0x361327(0x116)+a16_0x361327(0x11d),()=>{const _0x1f2280=a16_0x361327,_0x22f969={'CjwXt':function(_0xa6b7bb,_0x2838ca){return _0xa6b7bb(_0x2838ca);}};let _0xd14dca;beforeEach(()=>{const _0x4c1043=a16_0x54c9;jest[_0x4c1043(0x10a)+_0x4c1043(0x120)](),_0xd14dca=new SystemController();}),it(_0x1f2280(0x11f)+_0x1f2280(0x109)+'le',()=>{const _0x271056=_0x1f2280;_0x22f969[_0x271056(0x118)](expect,_0xd14dca)[_0x271056(0x108)+_0x271056(0x105)](SystemController);});});
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 +1 @@
1
- const a7_0x154a40=a7_0x2c9d;function a7_0x1912(){const _0x471035=['acking\x20rea','N/A','y\x20Analysis','rvice','Progress\x20n','ons/progre','ric\x20|\x20Valu','562SmjzRO','lid,\x20stopp','\x20needed.','BIvSe','Failed\x20to\x20','ms):\x20','get\x20analys','eYMOG','\x20|\x20','\x20character','ailed\x20with','[FAIL]\x20Ana','m\x20|\x20','s\x20still\x20in','nents\x20|\x20','\x0aFinal\x20Sta','Analysis\x20I','-\x20**','progress','trackAnaly','\x0a-\x20Vulnera','sis\x20status','rogress\x20tr','##\x20Analysi',')\x0a\x20\x20\x20-\x20설명:','total','mediumCoun','----|-----',']\x20Analysis','n\x20failed\x20(','text','sResults','IN_PROGRES','Unknown\x20er','invalid\x20to','structured','itMs\x20(','checkerInf','analysisSe','\x0a\x20\x20\x20-\x20컴플라이','[ANALYSIS]','oken\x20not\x20p','unknown\x20to','Progress\x20T','4ndVKFX','call\x20track','\x20in\x20progre','[COMPLETE]','ief','\x0a\x20\x20\x20-\x20파일:\x20','\x20|\x0a|\x20Mediu','led:\x20','led:','ound:\x20','length','Analysis\x20p','sXUem','oken\x20is\x20in','ng\x0a','fied.','alysis\x20res','etails\x0a','PkhVf','_meta','(Status:\x20','gain\x20to\x20co','nent\x20Detai','will\x20retry','\x20(CVSS:\x20','rt\x20progres','string','licenses','335082CmvZuY','ing\x20progre','cJRYJ','completed','stopped\x20by','\x20paused\x20af','FAILED','progressTo','LOW','isError','Error\x20chec','ities','\x20|\x0a|\x20Compo','constructo','):\x20','issues','rted:\x20','MEDIUM','content','t\x20|\x20Versio','cation','\x0a#\x20Securit','245919eDelEw','result','k\x20failed:',').\x0aTrackin','Analysis\x20f','te\x20action.','rabilities','_analysis_','notificati','lineNumber','ss.','FAIL','completed.','components','ysis\x20statu','\x0a\x0a...\x20(Sho','HIGH',']\x20**','-|\x0a|\x20Analy','\x20|\x0a|\x20Low\x20|','includes','D:\x20','erity\x20issu','uested:\x20','order','COMPLETE','lete\x20prope','round','[SUCCESS]\x20','10547360kkRgPv','\x20|\x0a|\x20Statu','rly.','sis\x20ID\x20|\x20','\x0a\x0a##\x20Compo','n\x20|\x20Licens','highCount','qTFMR','compliance','iation\x20Gui','name','ults:','reference','ng\x20immedia','5175604ObdDQc','HGRJd','No\x20compone','descriptio','trim','fixedVersi','(((.+)+)+)','rability\x20D','15598210ghbyNn','vulnerabil','ken','Analysis\x20r','getScaAnal','\x20requested','Analysis\x20c','5756WypeQK','warn','getAnalysi','sStatus','No\x20critica','\x0a\x0a##\x20Analy','toLowerCas','lysis\x20was\x20','s\x20ID:\x20','\x0a\x20\x20\x20\x20\x20\x20','lities\x20|\x20','Analysis\x20S','\x0a\x0a##\x20Remed','find','king\x20analy','unt','ons','CRITICAL','tatus:\x20','criticalCo','acking\x20fai','status','e\x20|\x20Vulner','\x20|\x0a|\x20High\x20','\x0a\x20\x20\x20\x20\x20\x20-\x20','Final\x20anal','severity','apply','11WxXYaO','tinuing\x20st','is\x20status:','Analysis\x20i','\x20Analysis\x20','erabilitie','ANALYSIS','g\x20paused\x20a','\x20longer\x20va','cvssScore','token','analysisBr','s\x20without\x20','No\x20vulnera','`\x20to\x20`','lowCount','ompleted.\x0a','fing\x0a','SUCCESS','\x0a#\x20SCA\x20Ana','now','lysis\x20Brie','###\x20','error','atus\x20check','2049534INOaxm','\x0a-\x20Analysi','rt\x0a\x0a##\x20Sum','\x0a\x20\x20\x20\x20\x20\x20-\x20F','valid,\x20con','analysisId','\x20Vulnerabi','message','\x20|\x0a\x0a##\x20Ana','\x20|\x0a|\x20Total','search','Analysis\x20s','otificatio','s\x20tracking','filter','\x20Results\x0a\x0a','toUpperCas','.\x20[','ror','tphkY','checkerKey','join','Progress\x20t','\x20|\x0a|\x20Criti','latest','언스:\x20','Unknown','in\x20progres','tatus\x20chec','filePath','|\x20Componen','l/high\x20sev','toString','\x20failed.','substring','is\x20results','keys','\x0a-\x20Status:','----------','some','10fxcvbt','s\x20is\x20still','lysis\x20fail','get\x20SCA\x20an','dgnyS','ound.','type','info','\x0a\x0a##\x20Disco','bilities\x20f','map','Content','ss...','ixed\x20in:\x20','SCA\x20analys','nts\x20identi','totalVulne','lysis\x20Repo','cal\x20|\x20','|\x0a|-------','**:\x20Update','\x0aProgress:','bilities\x20F','ntinue\x20mon','he\x20client\x20','version','wing\x20','fter\x20'];a7_0x1912=function(){return _0x471035;};return a7_0x1912();}(function(_0x4cc7f3,_0x503fb3){const _0x29c0a2=a7_0x2c9d,_0x533638=_0x4cc7f3();while(!![]){try{const _0x1a3025=-parseInt(_0x29c0a2(0x1ed))/0x1*(-parseInt(_0x29c0a2(0x155))/0x2)+parseInt(_0x29c0a2(0x1b3))/0x3*(parseInt(_0x29c0a2(0x181))/0x4)+-parseInt(_0x29c0a2(0x132))/0x5*(parseInt(_0x29c0a2(0x19d))/0x6)+-parseInt(_0x29c0a2(0x1de))/0x7+-parseInt(_0x29c0a2(0x1d0))/0x8+-parseInt(_0x29c0a2(0x10a))/0x9+-parseInt(_0x29c0a2(0x1e6))/0xa*(-parseInt(_0x29c0a2(0xf1))/0xb);if(_0x1a3025===_0x503fb3)break;else _0x533638['push'](_0x533638['shift']());}catch(_0x11a6e0){_0x533638['push'](_0x533638['shift']());}}}(a7_0x1912,0xd2742));function a7_0x2c9d(_0x3b16a,_0xdbbac4){_0x3b16a=_0x3b16a-0xf0;const _0x4bc3a5=a7_0x1912();let _0x24c06b=_0x4bc3a5[_0x3b16a];return _0x24c06b;}const a7_0x36199d=(function(){let _0x679bfd=!![];return function(_0x1ad22f,_0x8de183){const _0x26304d=_0x679bfd?function(){const _0x3ec4ca=a7_0x2c9d;if(_0x8de183){const _0x2911fd=_0x8de183[_0x3ec4ca(0xf0)](_0x1ad22f,arguments);return _0x8de183=null,_0x2911fd;}}:function(){};return _0x679bfd=![],_0x26304d;};}()),a7_0x24c06b=a7_0x36199d(this,function(){const _0x357fec=a7_0x2c9d,_0x30e5d5={};_0x30e5d5[_0x357fec(0x11d)]=_0x357fec(0x1e4)+'+$';const _0x486764=_0x30e5d5;return a7_0x24c06b[_0x357fec(0x12a)]()[_0x357fec(0x114)](_0x486764[_0x357fec(0x11d)])[_0x357fec(0x12a)]()[_0x357fec(0x1aa)+'r'](a7_0x24c06b)[_0x357fec(0x114)](_0x357fec(0x1e4)+'+$');});a7_0x24c06b();import{logger}from'../utils/logger.js';import{ANALYSIS_STAGES}from'../config/constants.js';export class AnalysisController{[a7_0x154a40(0x17b)+'rvice'];constructor(_0x54d4c0){const _0x448d25=a7_0x154a40;this[_0x448d25(0x17b)+_0x448d25(0x151)]=_0x54d4c0;}async[a7_0x154a40(0x1ef)+a7_0x154a40(0x1f0)]({analysisId:_0x379cfb}){const _0x29e40c=a7_0x154a40,_0x2f39f6={};_0x2f39f6[_0x29e40c(0x1df)]=function(_0xd1ab9c,_0x3cace4){return _0xd1ab9c instanceof _0x3cace4;};const _0x281b85=_0x2f39f6;try{logger[_0x29e40c(0x139)]('Analysis\x20s'+'tatus\x20requ'+'ested:\x20'+_0x379cfb);const _0x35298e=await this['analysisSe'+_0x29e40c(0x151)]['getAnalysi'+'sStatus'](_0x379cfb),_0x175d32=_0x35298e[_0x29e40c(0x202)]===_0x29e40c(0x1cc)&&_0x35298e['result']?_0x35298e['result']:_0x35298e['status'],_0x4e2b73={};_0x4e2b73[_0x29e40c(0x138)]=_0x29e40c(0x173),_0x4e2b73[_0x29e40c(0x173)]=_0x29e40c(0x1f8)+_0x29e40c(0x1ff)+_0x175d32+(_0x29e40c(0x147)+'\x20')+(_0x35298e['progress']||0x0)+('%\x0aMessage:'+'\x20')+(_0x35298e[_0x29e40c(0x111)]||'N/A');const _0x306be3={};_0x306be3[_0x29e40c(0x10f)]=_0x379cfb,_0x306be3[_0x29e40c(0x202)]=_0x175d32,_0x306be3['result']=_0x35298e[_0x29e40c(0x1b4)],_0x306be3[_0x29e40c(0x167)]=_0x35298e[_0x29e40c(0x167)],_0x306be3[_0x29e40c(0x111)]=_0x35298e[_0x29e40c(0x111)];const _0x3a7fc1={};return _0x3a7fc1['content']=[_0x4e2b73],_0x3a7fc1[_0x29e40c(0x178)+'Content']=_0x306be3,_0x3a7fc1;}catch(_0x1f7fee){logger[_0x29e40c(0x108)](_0x29e40c(0x115)+_0x29e40c(0x126)+_0x29e40c(0x1b5),_0x1f7fee);const _0x3f79cd={};return _0x3f79cd[_0x29e40c(0x138)]=_0x29e40c(0x173),_0x3f79cd[_0x29e40c(0x173)]=_0x29e40c(0x159)+_0x29e40c(0x15b)+_0x29e40c(0xf3)+'\x20'+(_0x1f7fee instanceof Error?_0x1f7fee['message']:'Unknown\x20er'+_0x29e40c(0x11c)),{'content':[_0x3f79cd],'structuredContent':{'error':_0x281b85[_0x29e40c(0x1df)](_0x1f7fee,Error)?_0x1f7fee['message']:_0x29e40c(0x176)+'ror'}};}}async[a7_0x154a40(0x1ef)+a7_0x154a40(0x174)]({analysisId:_0x1f7ac4}){const _0x3913ff=a7_0x154a40,_0x18024e={};_0x18024e[_0x3913ff(0x19f)]=function(_0x154615,_0x38dfec){return _0x154615+_0x38dfec;};const _0xe57f06=_0x18024e;try{logger[_0x3913ff(0x139)](_0x3913ff(0x1e9)+'esults\x20req'+_0x3913ff(0x1ca)+_0x1f7ac4);const _0x5b4136=await this[_0x3913ff(0x17b)+_0x3913ff(0x151)]['getAnalysi'+_0x3913ff(0x174)](_0x1f7ac4),_0x30ad84=_0x5b4136[_0x3913ff(0x1b4)]??_0x5b4136[_0x3913ff(0x202)],_0x38f3d5=0x7a120,_0x1c0c43=(_0x47843d,_0x225d34)=>{const _0xe25cae=_0x3913ff;if(_0x47843d[_0xe25cae(0x18b)]<=_0x225d34)return _0x47843d;return _0x47843d[_0xe25cae(0x12c)](0x0,_0x225d34)+(_0xe25cae(0x1c2)+_0xe25cae(0x14c)+_0x225d34+'\x20of\x20'+_0x47843d[_0xe25cae(0x18b)]+(_0xe25cae(0x15e)+'s)'));},_0x3fbc5d=_0x5b4136[_0x3913ff(0x1e7)+'ities'][_0x3913ff(0x13c)]((_0x2a5fcc,_0xfeb73c)=>{const _0x5519f7=_0x3913ff,_0x331a19=_0x2a5fcc[_0x5519f7(0x17a)+'o']?.[_0x5519f7(0x1da)]||_0x2a5fcc[_0x5519f7(0x11e)],_0x1cd60c=_0x2a5fcc[_0x5519f7(0x17a)+'o']?.[_0x5519f7(0x1e1)+'n']||_0x2a5fcc[_0x5519f7(0x1e1)+'n'],_0x17074f=_0x2a5fcc['checkerInf'+'o']?.['compliance']&&_0x2a5fcc[_0x5519f7(0x17a)+'o'][_0x5519f7(0x1d8)][_0x5519f7(0x18b)]>0x0?_0x5519f7(0x17c)+_0x5519f7(0x123)+_0x2a5fcc[_0x5519f7(0x17a)+'o'][_0x5519f7(0x1d8)][_0x5519f7(0x13c)](_0x3b3238=>''+_0x3b3238[_0x5519f7(0x1dc)][_0x5519f7(0x1da)]+(_0x3b3238[_0x5519f7(0x1dc)][_0x5519f7(0x14b)]?'\x20('+_0x3b3238['reference'][_0x5519f7(0x14b)]+')':''))[_0x5519f7(0x11f)](',\x20'):'';return _0xe57f06[_0x5519f7(0x19f)](_0xfeb73c,0x1)+_0x5519f7(0x11b)+_0x2a5fcc[_0x5519f7(0x207)]+']\x20**'+_0x331a19+'**\x20('+_0x2a5fcc[_0x5519f7(0x11e)]+(_0x5519f7(0x16d)+'\x20')+_0x1cd60c+(_0x2a5fcc[_0x5519f7(0x127)]?_0x5519f7(0x186)+_0x2a5fcc[_0x5519f7(0x127)]+(_0x2a5fcc[_0x5519f7(0x1bc)]?':'+_0x2a5fcc[_0x5519f7(0x1bc)]:''):'')+_0x17074f;})[_0x3913ff(0x11f)]('\x0a\x0a'),_0x388721=(_0x3913ff(0x1b2)+_0x3913ff(0x150)+_0x3913ff(0x119)+_0x3913ff(0x16c)+'s\x20Overview'+_0x3913ff(0x10b)+_0x3913ff(0x1f5)+_0x5b4136[_0x3913ff(0x10f)]+(_0x3913ff(0x12f)+'\x20')+_0x30ad84+('\x0a-\x20Result:'+'\x20')+(_0x5b4136[_0x3913ff(0x1b4)]||_0x3913ff(0x14f))+(_0x3913ff(0x169)+_0x3913ff(0x148)+_0x3913ff(0x18a))+_0x5b4136[_0x3913ff(0x1e7)+_0x3913ff(0x1a8)][_0x3913ff(0x18b)]+(_0x3913ff(0x1f2)+'sis\x20Briefi'+_0x3913ff(0x18f))+_0x1c0c43(_0x5b4136[_0x3913ff(0xfc)+_0x3913ff(0x185)]||'',_0x38f3d5)+(_0x3913ff(0x13a)+'vered\x20Vuln'+_0x3913ff(0xf6)+'s\x0a')+_0x1c0c43(_0x3fbc5d,_0x38f3d5)+'\x0a\x20\x20\x20\x20\x20\x20')['trim'](),_0x43c65b={'analysisId':_0x5b4136[_0x3913ff(0x10f)],'status':_0x30ad84,'result':_0x5b4136['result'],'vulnerabilities':_0x5b4136[_0x3913ff(0x1e7)+_0x3913ff(0x1a8)],'analysisBrief':_0x5b4136[_0x3913ff(0xfc)+_0x3913ff(0x185)]?_0x1c0c43(_0x5b4136['analysisBr'+'ief'],_0x38f3d5):''},_0x1311e1={};_0x1311e1[_0x3913ff(0x138)]=_0x3913ff(0x173),_0x1311e1['text']=_0x388721;const _0x5614f7={};return _0x5614f7[_0x3913ff(0x1af)]=[_0x1311e1],_0x5614f7[_0x3913ff(0x178)+_0x3913ff(0x13d)]=_0x43c65b,_0x5614f7;}catch(_0x282136){logger['error'](_0x3913ff(0x159)+_0x3913ff(0x15b)+_0x3913ff(0x12d)+':',_0x282136);const _0xac1801=_0x282136 instanceof Error?_0x282136[_0x3913ff(0x111)]:_0x3913ff(0x176)+_0x3913ff(0x11c),_0x4c8f06={};_0x4c8f06[_0x3913ff(0x138)]=_0x3913ff(0x173),_0x4c8f06[_0x3913ff(0x173)]=_0x3913ff(0x159)+_0x3913ff(0x15b)+'is\x20results'+':\x20'+_0xac1801;const _0xb6a1fa={};_0xb6a1fa[_0x3913ff(0x108)]=_0xac1801;const _0x1b3f84={};return _0x1b3f84[_0x3913ff(0x1af)]=[_0x4c8f06],_0x1b3f84[_0x3913ff(0x178)+_0x3913ff(0x13d)]=_0xb6a1fa,_0x1b3f84[_0x3913ff(0x1a6)]=!![],_0x1b3f84;}}async[a7_0x154a40(0x1ea)+'ysisResult'+'s']({analysisId:_0x2e0683}){const _0x48417e=a7_0x154a40,_0x45aa8e={};_0x45aa8e['PkhVf']=_0x48417e(0x159)+'get\x20SCA\x20an'+'alysis\x20res'+_0x48417e(0x1db);const _0x28a782=_0x45aa8e;try{logger['info'](_0x48417e(0x140)+_0x48417e(0x12d)+_0x48417e(0x1eb)+':\x20'+_0x2e0683);const _0x2d9c01=await this[_0x48417e(0x17b)+_0x48417e(0x151)][_0x48417e(0x1ea)+'ysisResult'+'s'](_0x2e0683),_0x3db38e=_0x2d9c01[_0x48417e(0x1b4)]??_0x2d9c01[_0x48417e(0x202)],_0x789ed9=_0x48417e(0x128)+_0x48417e(0x1b0)+_0x48417e(0x1d5)+_0x48417e(0x203)+'abilities\x20'+'(C/H/M/L)\x20'+_0x48417e(0x145)+_0x48417e(0x170)+_0x48417e(0x170)+_0x48417e(0x170)+'----------'+_0x48417e(0x130)+'--|',_0x57ec8a=_0x2d9c01[_0x48417e(0x1c0)]['map'](_0x3d6d61=>{const _0x868046=_0x48417e,_0x3460a0=_0x3d6d61[_0x868046(0x19c)]['length']>0x0?_0x3d6d61[_0x868046(0x19c)]['map'](_0x589a5a=>_0x589a5a[_0x868046(0x1da)])['join'](',\x20'):_0x868046(0x124),_0x29637d=_0x3d6d61['issues'][_0x868046(0x118)](_0x18e081=>_0x18e081[_0x868046(0x207)]==='CRITICAL')[_0x868046(0x18b)],_0x1dc20f=_0x3d6d61[_0x868046(0x1ac)][_0x868046(0x118)](_0x35dc87=>_0x35dc87[_0x868046(0x207)]===_0x868046(0x1c3))['length'],_0x4b33dc=_0x3d6d61[_0x868046(0x1ac)][_0x868046(0x118)](_0x522c95=>_0x522c95[_0x868046(0x207)]===_0x868046(0x1ae))[_0x868046(0x18b)],_0x56df40=_0x3d6d61['issues']['filter'](_0x5360fc=>_0x5360fc[_0x868046(0x207)]===_0x868046(0x1a5))[_0x868046(0x18b)],_0x199b9a=_0x29637d+_0x1dc20f+_0x4b33dc+_0x56df40+'\x20('+_0x29637d+'/'+_0x1dc20f+'/'+_0x4b33dc+'/'+_0x56df40+')';return'|\x20'+_0x3d6d61['name']+_0x868046(0x15d)+_0x3d6d61[_0x868046(0x14b)]+'\x20|\x20'+_0x3460a0+_0x868046(0x15d)+_0x199b9a+'\x20|';})[_0x48417e(0x11f)]('\x0a'),_0x31bdc7=_0x2d9c01[_0x48417e(0x1c0)]['length']>0x0?_0x789ed9+'\x0a'+_0x57ec8a:_0x48417e(0x1e0)+_0x48417e(0x141)+_0x48417e(0x190),_0x58ebad=_0x2d9c01[_0x48417e(0x1c0)][_0x48417e(0x118)](_0x5cea25=>_0x5cea25[_0x48417e(0x1ac)]['length']>0x0)[_0x48417e(0x13c)](_0x1e1595=>{const _0x26c565=_0x48417e,_0x4ddc04=_0x1e1595[_0x26c565(0x1ac)][_0x26c565(0x13c)]((_0x4669fe,_0x2e7859)=>{const _0x32aec8=_0x26c565;let _0xc61ec8='\x20\x20\x20'+(_0x2e7859+0x1)+_0x32aec8(0x11b)+_0x4669fe['severity']+_0x32aec8(0x1c4)+_0x4669fe['cveId']+'**';if(_0x4669fe[_0x32aec8(0xfa)])_0xc61ec8+=_0x32aec8(0x199)+_0x4669fe[_0x32aec8(0xfa)]+')';if(_0x4669fe[_0x32aec8(0x1e1)+'n'])_0xc61ec8+=_0x32aec8(0x205)+_0x4669fe[_0x32aec8(0x1e1)+'n'];if(_0x4669fe[_0x32aec8(0x1e3)+'on'])_0xc61ec8+=_0x32aec8(0x10d)+_0x32aec8(0x13f)+_0x4669fe['fixedVersi'+'on'];return _0xc61ec8;})[_0x26c565(0x11f)]('\x0a');return _0x26c565(0x107)+_0x1e1595[_0x26c565(0x1da)]+'@'+_0x1e1595[_0x26c565(0x14b)]+'\x0a'+_0x4ddc04;})[_0x48417e(0x11f)]('\x0a\x0a'),_0x3e787c=_0x2d9c01[_0x48417e(0x1c0)]['filter'](_0x4344b6=>_0x4344b6['issues'][_0x48417e(0x131)](_0x6d9673=>_0x6d9673[_0x48417e(0x207)]===_0x48417e(0x1fe)||_0x6d9673[_0x48417e(0x207)]===_0x48417e(0x1c3)))[_0x48417e(0x13c)](_0x2009c6=>{const _0x181080=_0x48417e,_0x2ba5e6=_0x2009c6[_0x181080(0x1ac)][_0x181080(0x1fa)](_0xfcf6e9=>_0xfcf6e9[_0x181080(0x207)]===_0x181080(0x1fe)||_0xfcf6e9[_0x181080(0x207)]===_0x181080(0x1c3)),_0x1c4d9e=_0x2ba5e6?.[_0x181080(0x1e3)+'on']||_0x181080(0x122);return _0x181080(0x166)+_0x2009c6['name']+(_0x181080(0x146)+'\x20from\x20`')+_0x2009c6[_0x181080(0x14b)]+_0x181080(0xff)+_0x1c4d9e+'`';})[_0x48417e(0x11f)]('\x0a'),_0x3a38e4=(_0x48417e(0x104)+_0x48417e(0x143)+_0x48417e(0x10c)+'mary\x0a|\x20Met'+_0x48417e(0x154)+'e\x20|\x0a|-----'+'---|------'+_0x48417e(0x1c5)+_0x48417e(0x1d3)+_0x2d9c01['analysisId']+(_0x48417e(0x1d1)+'s\x20|\x20')+_0x3db38e+(_0x48417e(0x1a9)+_0x48417e(0x163))+_0x2d9c01['components']['length']+(_0x48417e(0x113)+_0x48417e(0x110)+_0x48417e(0x1f7))+_0x2d9c01['totalVulne'+'rabilities']+(_0x48417e(0x121)+_0x48417e(0x144))+_0x2d9c01[_0x48417e(0x200)+'unt']+(_0x48417e(0x204)+'|\x20')+_0x2d9c01[_0x48417e(0x1d6)]+(_0x48417e(0x187)+_0x48417e(0x161))+_0x2d9c01['mediumCoun'+'t']+(_0x48417e(0x1c6)+'\x20')+_0x2d9c01['lowCount']+(_0x48417e(0x112)+_0x48417e(0x106)+_0x48417e(0x102))+_0x2d9c01[_0x48417e(0xfc)+_0x48417e(0x185)]+(_0x48417e(0x1d4)+_0x48417e(0x197)+'ls\x0a')+_0x31bdc7+('\x0a\x0a##\x20Vulne'+_0x48417e(0x1e5)+_0x48417e(0x192))+(_0x58ebad||_0x48417e(0xfe)+_0x48417e(0x13b)+_0x48417e(0x137))+(_0x48417e(0x1f9)+_0x48417e(0x1d9)+'de\x0a')+(_0x3e787c||_0x48417e(0x1f1)+_0x48417e(0x129)+_0x48417e(0x1c9)+'es\x20requiri'+_0x48417e(0x1dd)+_0x48417e(0x1b8))+_0x48417e(0x1f6))[_0x48417e(0x1e2)](),_0x3553ed={};_0x3553ed[_0x48417e(0x10f)]=_0x2d9c01[_0x48417e(0x10f)],_0x3553ed[_0x48417e(0x202)]=_0x3db38e,_0x3553ed[_0x48417e(0x1b4)]=_0x2d9c01[_0x48417e(0x1b4)],_0x3553ed[_0x48417e(0x1c0)]=_0x2d9c01[_0x48417e(0x1c0)],_0x3553ed[_0x48417e(0x142)+_0x48417e(0x1b9)]=_0x2d9c01[_0x48417e(0x142)+'rabilities'],_0x3553ed[_0x48417e(0x200)+_0x48417e(0x1fc)]=_0x2d9c01[_0x48417e(0x200)+_0x48417e(0x1fc)],_0x3553ed[_0x48417e(0x1d6)]=_0x2d9c01[_0x48417e(0x1d6)],_0x3553ed[_0x48417e(0x16f)+'t']=_0x2d9c01[_0x48417e(0x16f)+'t'],_0x3553ed[_0x48417e(0x100)]=_0x2d9c01[_0x48417e(0x100)],_0x3553ed['analysisBr'+_0x48417e(0x185)]=_0x2d9c01[_0x48417e(0xfc)+_0x48417e(0x185)];const _0x35dd82=_0x3553ed,_0x130a55={};_0x130a55[_0x48417e(0x138)]=_0x48417e(0x173),_0x130a55[_0x48417e(0x173)]=_0x3a38e4;const _0x2b8ae8={};return _0x2b8ae8[_0x48417e(0x1af)]=[_0x130a55],_0x2b8ae8[_0x48417e(0x178)+_0x48417e(0x13d)]=_0x35dd82,_0x2b8ae8;}catch(_0x5baa9d){logger['error'](_0x28a782[_0x48417e(0x193)],_0x5baa9d);const _0x3b77e3=_0x5baa9d instanceof Error?_0x5baa9d[_0x48417e(0x111)]:'Unknown\x20er'+_0x48417e(0x11c),_0x175f47={};_0x175f47[_0x48417e(0x138)]=_0x48417e(0x173),_0x175f47['text']=_0x48417e(0x159)+_0x48417e(0x135)+_0x48417e(0x191)+'ults:\x20'+_0x3b77e3;const _0x5e9ca5={};_0x5e9ca5['error']=_0x3b77e3;const _0xd3f55={};return _0xd3f55[_0x48417e(0x1af)]=[_0x175f47],_0xd3f55[_0x48417e(0x178)+_0x48417e(0x13d)]=_0x5e9ca5,_0xd3f55['isError']=!![],_0xd3f55;}}async[a7_0x154a40(0x168)+'sisProgres'+'s']({analysisId:_0x524c5a,intervalMs:intervalMs=0xbb8,maxWaitMs:maxWaitMs=0x7530},_0x419915){const _0x45d0ee=a7_0x154a40,_0x3283f5={'BIvSe':function(_0x4aa15d,_0x151e4a){return _0x4aa15d(_0x151e4a);},'dgnyS':'COMPLETE','Mubpu':_0x45d0ee(0x1be),'sXUem':function(_0x13cafa,_0x513b22){return _0x13cafa===_0x513b22;},'eYMOG':'[STOP]\x20Ana'+_0x45d0ee(0x1f4)+_0x45d0ee(0x1a1)+'\x20request.','qTFMR':_0x45d0ee(0x19b),'pijai':'notificati'+_0x45d0ee(0x153)+'ss','pkZCc':_0x45d0ee(0x175)+'S'};try{const _0x155349=_0x419915[_0x45d0ee(0x194)]?.[_0x45d0ee(0x1a4)+_0x45d0ee(0x1e8)];if(!_0x155349){const _0x4b3cac={};_0x4b3cac[_0x45d0ee(0x138)]=_0x45d0ee(0x173),_0x4b3cac[_0x45d0ee(0x173)]=_0x45d0ee(0x180)+_0x45d0ee(0x17e)+'rovided.\x20T'+_0x45d0ee(0x14a)+'must\x20suppo'+_0x45d0ee(0x19a)+_0x45d0ee(0x117)+'.';const _0x1f1819={};_0x1f1819[_0x45d0ee(0x108)]=_0x45d0ee(0x180)+_0x45d0ee(0x17e)+'rovided';const _0x24e6dc={};return _0x24e6dc[_0x45d0ee(0x1af)]=[_0x4b3cac],_0x24e6dc[_0x45d0ee(0x178)+_0x45d0ee(0x13d)]=_0x1f1819,_0x24e6dc;}logger['info'](_0x45d0ee(0x18c)+_0x45d0ee(0x16b)+'acking\x20sta'+_0x45d0ee(0x1ad)+_0x524c5a);const _0x32e8c6=ANALYSIS_STAGES;let _0x32271d=Object[_0x45d0ee(0x12e)](_0x32e8c6)[_0x45d0ee(0x18b)],_0x3a034b=null,_0x4cedbd=0x0,_0x49e22e=!![];const _0x2088df=Date[_0x45d0ee(0x105)](),_0x4e4441=async _0x19bbac=>{const _0x593312=_0x45d0ee;if(!_0x49e22e)return![];try{return await _0x419915['sendNotifi'+_0x593312(0x1b1)](_0x19bbac),!![];}catch(_0x8712fd){const _0x540060=_0x8712fd instanceof Error?_0x8712fd[_0x593312(0x111)]:_0x593312(0x176)+_0x593312(0x11c);return _0x540060[_0x593312(0x1c7)](_0x593312(0x17f)+'ken')||_0x540060[_0x593312(0x1c7)](_0x593312(0x177)+_0x593312(0x1e8))||_0x540060['includes']('expired\x20to'+_0x593312(0x1e8))||_0x540060[_0x593312(0x1f3)+'e']()[_0x593312(0x1c7)](_0x593312(0xfb))?(_0x49e22e=![],logger[_0x593312(0x1ee)](_0x593312(0x120)+'oken\x20is\x20no'+_0x593312(0xf9)+_0x593312(0x156)+_0x593312(0x19e)+'ss\x20notific'+'ations:\x20'+_0x540060)):logger[_0x593312(0x1ee)](_0x593312(0x152)+_0x593312(0x116)+_0x593312(0x172)+_0x593312(0x198)+_0x593312(0x1ab)+_0x540060),![];}};while(!![]){try{const _0x19f7a5=await this[_0x45d0ee(0x17b)+_0x45d0ee(0x151)][_0x45d0ee(0x1ef)+_0x45d0ee(0x1f0)](_0x524c5a),_0x13b07a=_0x3283f5[_0x45d0ee(0x158)](String,_0x19f7a5[_0x45d0ee(0x202)])[_0x45d0ee(0x11a)+'e'](),_0x8fcbbf=String(_0x19f7a5[_0x45d0ee(0x202)])[_0x45d0ee(0x11a)+'e'](),_0x3d1d82=_0x8fcbbf===_0x3283f5[_0x45d0ee(0x136)]&&_0x19f7a5[_0x45d0ee(0x1b4)]?String(_0x19f7a5['result'])[_0x45d0ee(0x11a)+'e']():_0x13b07a;if(_0x3a034b!==_0x13b07a){_0x3a034b=_0x13b07a;if(_0x8fcbbf===_0x45d0ee(0x1cc)||_0x13b07a===_0x3283f5['Mubpu']||_0x13b07a===_0x45d0ee(0x1a3)){let _0x54d6f7,_0x364a16;if(_0x8fcbbf===_0x45d0ee(0x1cc)){const _0x89942e=_0x19f7a5[_0x45d0ee(0x1b4)]?String(_0x19f7a5[_0x45d0ee(0x1b4)])[_0x45d0ee(0x11a)+'e']():undefined;_0x364a16=_0x89942e||_0x45d0ee(0x1cc);if(_0x89942e===_0x45d0ee(0x103))_0x54d6f7=_0x45d0ee(0x1cf)+'Analysis\x20c'+'ompleted\x20s'+'uccessfull'+'y.';else{if(_0x3283f5[_0x45d0ee(0x18d)](_0x89942e,'FAIL'))_0x54d6f7=_0x45d0ee(0x160)+_0x45d0ee(0x134)+'ed\x20to\x20comp'+_0x45d0ee(0x1cd)+_0x45d0ee(0x1d2);else _0x89942e==='STOP'?_0x54d6f7=_0x3283f5[_0x45d0ee(0x15c)]:(_0x54d6f7=_0x45d0ee(0x184)+_0x45d0ee(0xf5)+_0x45d0ee(0x1bf),_0x364a16=_0x3283f5[_0x45d0ee(0x136)]);}}else _0x54d6f7='['+_0x13b07a+(_0x45d0ee(0x171)+_0x45d0ee(0x12b)),_0x364a16=_0x13b07a;const _0x19e176={'method':_0x45d0ee(0x1bb)+_0x45d0ee(0x153)+'ss','params':{'progressToken':typeof _0x155349===_0x45d0ee(0x19b)?_0x155349:String(_0x155349),'progress':_0x13b07a==='COMPLETE'?0x64:0x0,'message':_0x54d6f7,'total':0x64}};await _0x4e4441(_0x19e176);_0x8fcbbf===_0x45d0ee(0x1cc)?logger[_0x45d0ee(0x139)](_0x45d0ee(0x206)+_0x45d0ee(0x1c1)+'s\x20updated:'+'\x20'+_0x364a16):logger[_0x45d0ee(0x139)](_0x45d0ee(0x1b7)+_0x45d0ee(0x15f)+'\x20status:\x20'+_0x364a16);const _0x4828de={};_0x4828de[_0x45d0ee(0x138)]=_0x45d0ee(0x173),_0x4828de['text']=_0x45d0ee(0x1ec)+_0x45d0ee(0x101)+_0x45d0ee(0x165)+_0x45d0ee(0x1c8)+_0x524c5a+(_0x45d0ee(0x164)+'tus:\x20')+_0x364a16;const _0x584d66={};_0x584d66[_0x45d0ee(0x10f)]=_0x524c5a,_0x584d66['status']=_0x364a16,_0x584d66[_0x45d0ee(0x1b4)]=_0x19f7a5[_0x45d0ee(0x1b4)],_0x584d66[_0x45d0ee(0x1a0)]=!![];const _0x109e15={};return _0x109e15[_0x45d0ee(0x1af)]=[_0x4828de],_0x109e15[_0x45d0ee(0x178)+_0x45d0ee(0x13d)]=_0x584d66,_0x109e15;}const _0x4f27e9=_0x32e8c6[_0x13b07a];if(_0x4f27e9){const _0x5721c7={};_0x5721c7[_0x45d0ee(0x16e)]=0x64;const _0x1de663={'method':_0x45d0ee(0x1bb)+'ons/progre'+'ss','params':{'progressToken':typeof _0x155349===_0x3283f5[_0x45d0ee(0x1d7)]?_0x155349:String(_0x155349),'progress':_0x4f27e9['progress']!==null?_0x4f27e9[_0x45d0ee(0x167)]:_0x13b07a===_0x45d0ee(0xf7)?_0x4cedbd:_0x4f27e9[_0x45d0ee(0x1cb)],'message':'['+_0x4f27e9['id']+']\x20'+_0x4f27e9['descriptio'+'n'],'total':_0x32271d,..._0x4f27e9['progress']!==null&&_0x13b07a===_0x45d0ee(0xf7)&&_0x5721c7}};await _0x4e4441(_0x1de663),_0x49e22e&&logger[_0x45d0ee(0x139)](_0x45d0ee(0x115)+'tatus\x20upda'+'ted:\x20'+_0x4f27e9['id']+'\x20('+_0x4f27e9[_0x45d0ee(0x1da)]+')');}else{const _0x3e3fe6={'method':_0x45d0ee(0x1bb)+_0x45d0ee(0x153)+'ss','params':{'progressToken':typeof _0x155349===_0x45d0ee(0x19b)?_0x155349:String(_0x155349),'progress':0x1,'total':0x1,'message':'['+_0x13b07a+(']\x20Analysis'+_0x45d0ee(0x183)+_0x45d0ee(0x13e))}};await _0x4e4441(_0x3e3fe6);}}else{if(_0x13b07a===_0x45d0ee(0xf7)){if(_0x19f7a5[_0x45d0ee(0x167)]!==undefined&&_0x19f7a5[_0x45d0ee(0x167)]!==null){_0x4cedbd=_0x19f7a5[_0x45d0ee(0x167)];const _0x465e8f=_0x32e8c6[_0x13b07a],_0x15215d={'method':_0x3283f5['pijai'],'params':{'progressToken':typeof _0x155349===_0x45d0ee(0x19b)?_0x155349:String(_0x155349),'progress':_0x465e8f[_0x45d0ee(0x1cb)],'total':_0x32271d,'message':_0x45d0ee(0x17d)+_0x45d0ee(0xf5)+_0x45d0ee(0x125)+'s:\x20'+_0x4cedbd+'%'}};await _0x4e4441(_0x15215d);}}}!_0x49e22e&&logger[_0x45d0ee(0x139)](_0x45d0ee(0x120)+_0x45d0ee(0x18e)+_0x45d0ee(0x10e)+_0x45d0ee(0xf2)+_0x45d0ee(0x109)+_0x45d0ee(0xfd)+_0x45d0ee(0x1bb)+_0x45d0ee(0x1fd));await new Promise(_0x3be96e=>setTimeout(_0x3be96e,intervalMs));const _0x2c044b=Date[_0x45d0ee(0x105)]()-_0x2088df;if(_0x2c044b>=maxWaitMs){logger[_0x45d0ee(0x139)](_0x45d0ee(0x18c)+_0x45d0ee(0x16b)+_0x45d0ee(0x14e)+'ched\x20maxWa'+_0x45d0ee(0x179)+maxWaitMs+_0x45d0ee(0x15a)+_0x524c5a);const _0x2b51d8={'method':'notificati'+_0x45d0ee(0x153)+'ss','params':{'progressToken':typeof _0x155349===_0x45d0ee(0x19b)?_0x155349:String(_0x155349),'progress':_0x4cedbd||0x1,'total':0x64,'message':'['+(_0x3a034b||_0x3283f5['pkZCc'])+(']\x20Tracking'+_0x45d0ee(0x1a2)+'ter\x20')+Math[_0x45d0ee(0x1ce)](_0x2c044b/0x3e8)+('s.\x20Analysi'+_0x45d0ee(0x133)+_0x45d0ee(0x183)+_0x45d0ee(0x1bd))}};return await _0x4e4441(_0x2b51d8),{'content':[{'type':_0x45d0ee(0x173),'text':_0x45d0ee(0xf4)+_0x45d0ee(0x162)+'\x20progress\x20'+_0x45d0ee(0x195)+_0x3a034b+(_0x45d0ee(0x1b6)+_0x45d0ee(0xf8)+_0x45d0ee(0x14d))+Math[_0x45d0ee(0x1ce)](_0x2c044b/0x3e8)+('s.\x0aPlease\x20'+_0x45d0ee(0x182)+_0x45d0ee(0x1ba)+'progress\x20a'+_0x45d0ee(0x196)+_0x45d0ee(0x149)+'itoring\x20if'+_0x45d0ee(0x157))}],'structuredContent':{'analysisId':_0x524c5a,'status':_0x3a034b,'completed':![],'elapsedMs':_0x2c044b}};}}catch(_0x44bd28){logger[_0x45d0ee(0x108)](_0x45d0ee(0x1a7)+_0x45d0ee(0x1fb)+_0x45d0ee(0x16a)+'\x20('+_0x524c5a+'):',_0x44bd28),await new Promise(_0x46bf42=>setTimeout(_0x46bf42,intervalMs));}}}catch(_0x213bfe){logger[_0x45d0ee(0x108)]('Analysis\x20p'+_0x45d0ee(0x16b)+_0x45d0ee(0x201)+_0x45d0ee(0x189),_0x213bfe);const _0x54a48d={};_0x54a48d[_0x45d0ee(0x138)]=_0x45d0ee(0x173),_0x54a48d[_0x45d0ee(0x173)]=_0x45d0ee(0x18c)+_0x45d0ee(0x16b)+_0x45d0ee(0x201)+_0x45d0ee(0x188)+(_0x213bfe instanceof Error?_0x213bfe[_0x45d0ee(0x111)]:_0x45d0ee(0x176)+_0x45d0ee(0x11c));const _0x59676c={};_0x59676c[_0x45d0ee(0x108)]=_0x213bfe instanceof Error?_0x213bfe['message']:_0x45d0ee(0x176)+_0x45d0ee(0x11c);const _0x2e41b1={};return _0x2e41b1['content']=[_0x54a48d],_0x2e41b1[_0x45d0ee(0x178)+_0x45d0ee(0x13d)]=_0x59676c,_0x2e41b1[_0x45d0ee(0x1a6)]=!![],_0x2e41b1;}}}
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 +1 @@
1
- const a8_0x1f4129=a8_0x5d7d;function a8_0x3236(){const _0x1346e3=['zipFilePat','fileName','\x20not\x20provi','\x0aZIP\x20File:','h\x20not\x20prov','o\x20analyze.','oYDxG','ecurity\x20an','structured','analyzeFil','Folder\x20pat','드를\x20제공해주세요.','info','analysisId','147100tWNDFS','ded','der','unt','analysis\x20f','filePathCo','folders\x20(','quested:\x20','sion\x20requi','Unknown\x20er','length','text','sions','\x0aStatus:\x20','apply','ne\x20file\x20pa','ror','File\x20secur','s\x20started.','File','error','242gQTZUF','is\x20failed:','Content','462hcvqpu','\x20파일만\x20지원합니다','Folder\x20sec','ZIP\x20file\x20s','alysis\x20req','(((.+)+)+)','tipleFiles','\x0a\x0aSkipped\x20','):\x20','analysis\x20r','quest\x20fail','rts\x20files\x20','only\x20suppo','o\x20analyze','fileConten','equested:\x20','Sast','\x0aNumber\x20of','\x0aFolder:\x20','esSast','ath\x20not\x20pr','\x20The\x20fileP','s:\x20','ders','toString','status','파일\x20내용이\x20비어있','alysis\x20fai','Security\x20a','derSast','analyzeZip','urity\x20anal','search','\x0aAnalysis\x20','sted:\x20','at\x20least\x20o','File\x20exten','ided','10603uLgDhV','uested:\x20','nalysis\x20re','\x20analysis\x20','\x20no\x20code\x20t','rvice','Empty\x20file','ovided','ZIP\x20file\x20p','\x20file\x20path','aths\x20array','465021HGRvhw','content','match','24NQoVxL','trim','816515waQPoy','with\x20exten','analyzeFol','288310LlUIvu','ovided.','니다.\x20SAST\x20분','type','Multi-file','gVXbx','6onkMDC','237240mnhgzP','ID:\x20','analysisSe','skippedFol','파일\x20확장자가\x20없습','\x20security\x20','nalysis\x20ha','File\x20paths','th.','message','1468dBddxa','ed:\x20','join','red\x20-\x20SAST'];a8_0x3236=function(){return _0x1346e3;};return a8_0x3236();}function a8_0x5d7d(_0x4a4a80,_0x9b16d4){_0x4a4a80=_0x4a4a80-0x18e;const _0x5037a8=a8_0x3236();let _0xd6955e=_0x5037a8[_0x4a4a80];return _0xd6955e;}(function(_0x40bf0f,_0x5625e4){const _0x12fa39=a8_0x5d7d,_0x4a095a=_0x40bf0f();while(!![]){try{const _0x4f3066=-parseInt(_0x12fa39(0x1d0))/0x1*(parseInt(_0x12fa39(0x1de))/0x2)+-parseInt(_0x12fa39(0x1aa))/0x3*(parseInt(_0x12fa39(0x1f4))/0x4)+parseInt(_0x12fa39(0x1e3))/0x5*(-parseInt(_0x12fa39(0x1e9))/0x6)+parseInt(_0x12fa39(0x1e0))/0x7+-parseInt(_0x12fa39(0x1ea))/0x8+-parseInt(_0x12fa39(0x1db))/0x9+-parseInt(_0x12fa39(0x192))/0xa*(-parseInt(_0x12fa39(0x1a7))/0xb);if(_0x4f3066===_0x5625e4)break;else _0x4a095a['push'](_0x4a095a['shift']());}catch(_0x5e35bf){_0x4a095a['push'](_0x4a095a['shift']());}}}(a8_0x3236,0x1cb15));const a8_0x51ed42=(function(){let _0x3eac80=!![];return function(_0x5a4c78,_0x398e84){const _0x51592b=_0x3eac80?function(){const _0x207110=a8_0x5d7d;if(_0x398e84){const _0x32fe12=_0x398e84[_0x207110(0x1a0)](_0x5a4c78,arguments);return _0x398e84=null,_0x32fe12;}}:function(){};return _0x3eac80=![],_0x51592b;};}()),a8_0xd6955e=a8_0x51ed42(this,function(){const _0x46d5b3=a8_0x5d7d;return a8_0xd6955e[_0x46d5b3(0x1c2)]()[_0x46d5b3(0x1ca)](_0x46d5b3(0x1af)+'+$')['toString']()['constructo'+'r'](a8_0xd6955e)[_0x46d5b3(0x1ca)](_0x46d5b3(0x1af)+'+$');});a8_0xd6955e();import{logger}from'../utils/logger.js';export class SastController{[a8_0x1f4129(0x1ec)+a8_0x1f4129(0x1d5)];constructor(_0x24414e){const _0x246ca0=a8_0x1f4129;this[_0x246ca0(0x1ec)+_0x246ca0(0x1d5)]=_0x24414e;}async['analyzeFil'+'eSast']({fileContent:_0x9da043,fileName:_0x124b38}){const _0x17b254=a8_0x1f4129;try{logger[_0x17b254(0x190)]('Security\x20a'+_0x17b254(0x1d2)+_0x17b254(0x199)+_0x124b38);if(!_0x9da043||_0x9da043['trim']()['length']===0x0){const _0x280a30={};_0x280a30[_0x17b254(0x1e6)]=_0x17b254(0x19d),_0x280a30[_0x17b254(0x19d)]=_0x17b254(0x1c4)+'습니다.\x20분석할\x20코'+_0x17b254(0x18f);const _0x3f6213={};_0x3f6213[_0x17b254(0x1a6)]=_0x17b254(0x1d6)+'\x20content\x20-'+_0x17b254(0x1d4)+_0x17b254(0x1b7);const _0x3f4584={};return _0x3f4584['content']=[_0x280a30],_0x3f4584[_0x17b254(0x200)+_0x17b254(0x1a9)]=_0x3f6213,_0x3f4584;}const _0x534015=_0x124b38[_0x17b254(0x1dd)](/\.([^.]+)$/);if(!_0x534015||_0x534015[0x1]['length']===0x0){const _0x369022={};_0x369022['type']='text',_0x369022[_0x17b254(0x19d)]=_0x17b254(0x1ee)+_0x17b254(0x1e5)+'석은\x20확장자가\x20있는'+_0x17b254(0x1ab)+'.';const _0x4066ae={};_0x4066ae[_0x17b254(0x1a6)]=_0x17b254(0x1ce)+_0x17b254(0x19a)+_0x17b254(0x1f7)+_0x17b254(0x1d3)+_0x17b254(0x1b6)+_0x17b254(0x1b5)+_0x17b254(0x1e1)+_0x17b254(0x19e);const _0x5460c1={};return _0x5460c1[_0x17b254(0x1dc)]=[_0x369022],_0x5460c1['structured'+'Content']=_0x4066ae,_0x5460c1;}const _0x2750b6={};_0x2750b6[_0x17b254(0x1b8)+'t']=_0x9da043,_0x2750b6[_0x17b254(0x1f9)]=_0x124b38;const _0x531af5=await this['analysisSe'+_0x17b254(0x1d5)][_0x17b254(0x201)+'eSecurity'](_0x2750b6),_0x1fcd99={};_0x1fcd99[_0x17b254(0x1e6)]='text',_0x1fcd99[_0x17b254(0x19d)]='Security\x20a'+_0x17b254(0x1f0)+_0x17b254(0x1a4)+'\x0aAnalysis\x20'+'ID:\x20'+_0x531af5[_0x17b254(0x191)];const _0x4eceac={};_0x4eceac[_0x17b254(0x191)]=_0x531af5[_0x17b254(0x191)],_0x4eceac['status']=_0x531af5['status'];const _0x8a30e={};return _0x8a30e['content']=[_0x1fcd99],_0x8a30e[_0x17b254(0x200)+_0x17b254(0x1a9)]=_0x4eceac,_0x8a30e;}catch(_0x204adf){logger[_0x17b254(0x1a6)](_0x17b254(0x1a3)+'ity\x20analys'+_0x17b254(0x1a8),_0x204adf);const _0x57674d={};_0x57674d[_0x17b254(0x1e6)]='text',_0x57674d[_0x17b254(0x19d)]='Security\x20a'+_0x17b254(0x1d2)+'quest\x20fail'+_0x17b254(0x1f5)+(_0x204adf instanceof Error?_0x204adf['message']:_0x17b254(0x19b)+_0x17b254(0x1a2));const _0x551076={};_0x551076['error']=_0x204adf instanceof Error?_0x204adf[_0x17b254(0x1f3)]:_0x17b254(0x19b)+_0x17b254(0x1a2);const _0x1f912a={};return _0x1f912a[_0x17b254(0x1dc)]=[_0x57674d],_0x1f912a[_0x17b254(0x200)+_0x17b254(0x1a9)]=_0x551076,_0x1f912a;}}async['analyzeFil'+a8_0x1f4129(0x1bd)]({filePaths:_0xe26864,zipFileName:_0x517bdc}){const _0x3f098a=a8_0x1f4129,_0x5ccb4f={};_0x5ccb4f['oYDxG']=function(_0x525bc0,_0x268226){return _0x525bc0 instanceof _0x268226;};const _0x40a54e=_0x5ccb4f;try{if(!_0xe26864||_0xe26864['length']===0x0){const _0x334a17={};_0x334a17[_0x3f098a(0x1e6)]=_0x3f098a(0x19d),_0x334a17[_0x3f098a(0x19d)]='No\x20files\x20t'+_0x3f098a(0x1fd)+_0x3f098a(0x1bf)+_0x3f098a(0x1da)+'\x20requires\x20'+_0x3f098a(0x1cd)+_0x3f098a(0x1a1)+_0x3f098a(0x1f2);const _0x3fd2e0={};_0x3fd2e0[_0x3f098a(0x1a6)]=_0x3f098a(0x1f1)+_0x3f098a(0x1fa)+_0x3f098a(0x193);const _0x5c26a4={};return _0x5c26a4[_0x3f098a(0x1dc)]=[_0x334a17],_0x5c26a4[_0x3f098a(0x200)+_0x3f098a(0x1a9)]=_0x3fd2e0,_0x5c26a4;}logger[_0x3f098a(0x190)](_0x3f098a(0x1e7)+_0x3f098a(0x1ef)+_0x3f098a(0x1b3)+_0x3f098a(0x1b9)+_0xe26864['length']+('\x20file\x20path'+'s'));const _0xd230a7=await this[_0x3f098a(0x1ec)+'rvice']['analyzeMul'+_0x3f098a(0x1b0)+'FromPaths'](_0xe26864,_0x517bdc),_0x3ac7f1=_0x3f098a(0x1c6)+'nalysis\x20ha'+_0x3f098a(0x1a4)+_0x3f098a(0x1bb)+_0x3f098a(0x1d9)+_0x3f098a(0x1c0)+_0xe26864['length']+('\x0aAnalysis\x20'+'ID:\x20')+_0xd230a7[_0x3f098a(0x191)]+_0x3f098a(0x19f)+_0xd230a7[_0x3f098a(0x1c3)],_0x42d018={};_0x42d018[_0x3f098a(0x1e6)]=_0x3f098a(0x19d),_0x42d018[_0x3f098a(0x19d)]=_0x3ac7f1;const _0x3e828c={};_0x3e828c[_0x3f098a(0x191)]=_0xd230a7[_0x3f098a(0x191)],_0x3e828c[_0x3f098a(0x1c3)]=_0xd230a7[_0x3f098a(0x1c3)],_0x3e828c[_0x3f098a(0x197)+_0x3f098a(0x195)]=_0xe26864[_0x3f098a(0x19c)];const _0x2cf00e={};return _0x2cf00e[_0x3f098a(0x1dc)]=[_0x42d018],_0x2cf00e[_0x3f098a(0x200)+'Content']=_0x3e828c,_0x2cf00e;}catch(_0x192739){return logger[_0x3f098a(0x1a6)](_0x3f098a(0x1e7)+_0x3f098a(0x1ef)+_0x3f098a(0x196)+'ailed:',_0x192739),{'content':[{'type':_0x3f098a(0x19d),'text':_0x3f098a(0x1c6)+_0x3f098a(0x1d2)+_0x3f098a(0x1b4)+'ed:\x20'+(_0x40a54e[_0x3f098a(0x1fe)](_0x192739,Error)?_0x192739['message']:_0x3f098a(0x19b)+_0x3f098a(0x1a2))}],'structuredContent':{'error':_0x192739 instanceof Error?_0x192739[_0x3f098a(0x1f3)]:'Unknown\x20er'+_0x3f098a(0x1a2)}};}}async['analyzeFol'+a8_0x1f4129(0x1c7)]({folderPath:_0xcd5003,zipFileName:_0x1c87cd}){const _0xa555a2=a8_0x1f4129;try{if(!_0xcd5003||_0xcd5003[_0xa555a2(0x1df)]()[_0xa555a2(0x19c)]===0x0){const _0x5e5675={};_0x5e5675[_0xa555a2(0x1e6)]=_0xa555a2(0x19d),_0x5e5675[_0xa555a2(0x19d)]=_0xa555a2(0x18e)+_0xa555a2(0x1fc)+'ided.';const _0x2cb137={};_0x2cb137[_0xa555a2(0x1a6)]=_0xa555a2(0x18e)+_0xa555a2(0x1fc)+_0xa555a2(0x1cf);const _0xccd35e={};return _0xccd35e[_0xa555a2(0x1dc)]=[_0x5e5675],_0xccd35e['structured'+_0xa555a2(0x1a9)]=_0x2cb137,_0xccd35e;}logger[_0xa555a2(0x190)](_0xa555a2(0x1ac)+'urity\x20anal'+'ysis\x20reque'+_0xa555a2(0x1cc)+_0xcd5003);const _0x291e6c=await this[_0xa555a2(0x1ec)+'rvice'][_0xa555a2(0x1e2)+_0xa555a2(0x194)](_0xcd5003,_0x1c87cd);let _0x2d70f3=_0xa555a2(0x1c6)+_0xa555a2(0x1f0)+_0xa555a2(0x1a4)+_0xa555a2(0x1bc)+_0xcd5003+(_0xa555a2(0x1cb)+_0xa555a2(0x1eb))+_0x291e6c[_0xa555a2(0x191)]+_0xa555a2(0x19f)+_0x291e6c[_0xa555a2(0x1c3)];_0x291e6c[_0xa555a2(0x1ed)+_0xa555a2(0x1c1)]&&_0x291e6c[_0xa555a2(0x1ed)+'ders']['length']>0x0&&(_0x2d70f3+=_0xa555a2(0x1b1)+_0xa555a2(0x198)+_0x291e6c[_0xa555a2(0x1ed)+_0xa555a2(0x1c1)]['length']+_0xa555a2(0x1b2)+_0x291e6c[_0xa555a2(0x1ed)+_0xa555a2(0x1c1)][_0xa555a2(0x1f6)](',\x20'));const _0x50b0f5={};_0x50b0f5[_0xa555a2(0x1e6)]='text',_0x50b0f5[_0xa555a2(0x19d)]=_0x2d70f3;const _0x13cc90={};_0x13cc90[_0xa555a2(0x191)]=_0x291e6c['analysisId'],_0x13cc90[_0xa555a2(0x1c3)]=_0x291e6c[_0xa555a2(0x1c3)],_0x13cc90['folderPath']=_0xcd5003,_0x13cc90[_0xa555a2(0x1ed)+_0xa555a2(0x1c1)]=_0x291e6c['skippedFol'+'ders'];const _0x2599d5={};return _0x2599d5[_0xa555a2(0x1dc)]=[_0x50b0f5],_0x2599d5[_0xa555a2(0x200)+'Content']=_0x13cc90,_0x2599d5;}catch(_0x3080b9){logger[_0xa555a2(0x1a6)](_0xa555a2(0x1ac)+_0xa555a2(0x1c9)+'ysis\x20faile'+'d:',_0x3080b9);const _0x48a916={};_0x48a916['type']=_0xa555a2(0x19d),_0x48a916[_0xa555a2(0x19d)]=_0xa555a2(0x1c6)+_0xa555a2(0x1d2)+_0xa555a2(0x1b4)+_0xa555a2(0x1f5)+(_0x3080b9 instanceof Error?_0x3080b9['message']:_0xa555a2(0x19b)+_0xa555a2(0x1a2));const _0x3c3961={};_0x3c3961['error']=_0x3080b9 instanceof Error?_0x3080b9['message']:_0xa555a2(0x19b)+_0xa555a2(0x1a2);const _0x235d18={};return _0x235d18['content']=[_0x48a916],_0x235d18['structured'+_0xa555a2(0x1a9)]=_0x3c3961,_0x235d18;}}async[a8_0x1f4129(0x1c8)+a8_0x1f4129(0x1ba)]({zipFilePath:_0x3682d7,zipFileName:_0x1f3524}){const _0x2e0b2c=a8_0x1f4129,_0x4077c5={};_0x4077c5[_0x2e0b2c(0x1e8)]='ZIP\x20file\x20p'+_0x2e0b2c(0x1be)+_0x2e0b2c(0x1d7);const _0x1289db=_0x4077c5;try{if(!_0x3682d7||_0x3682d7[_0x2e0b2c(0x1df)]()[_0x2e0b2c(0x19c)]===0x0){const _0x3b3f79={};_0x3b3f79[_0x2e0b2c(0x1e6)]='text',_0x3b3f79['text']=_0x2e0b2c(0x1d8)+'ath\x20not\x20pr'+_0x2e0b2c(0x1e4);const _0x4b2e03={};_0x4b2e03['error']=_0x1289db['gVXbx'];const _0x62ce85={};return _0x62ce85[_0x2e0b2c(0x1dc)]=[_0x3b3f79],_0x62ce85[_0x2e0b2c(0x200)+_0x2e0b2c(0x1a9)]=_0x4b2e03,_0x62ce85;}logger[_0x2e0b2c(0x190)](_0x2e0b2c(0x1ad)+_0x2e0b2c(0x1ff)+_0x2e0b2c(0x1ae)+_0x2e0b2c(0x1d1)+_0x3682d7);const _0x19affb=await this[_0x2e0b2c(0x1ec)+'rvice'][_0x2e0b2c(0x1c8)+_0x2e0b2c(0x1a5)](_0x3682d7,_0x1f3524),_0x43c69d=_0x2e0b2c(0x1c6)+_0x2e0b2c(0x1f0)+'s\x20started.'+_0x2e0b2c(0x1fb)+'\x20'+_0x3682d7+('\x0aAnalysis\x20'+_0x2e0b2c(0x1eb))+_0x19affb['analysisId']+_0x2e0b2c(0x19f)+_0x19affb[_0x2e0b2c(0x1c3)],_0x2f85d5={};_0x2f85d5[_0x2e0b2c(0x1e6)]=_0x2e0b2c(0x19d),_0x2f85d5[_0x2e0b2c(0x19d)]=_0x43c69d;const _0x1bc9c3={};_0x1bc9c3[_0x2e0b2c(0x191)]=_0x19affb[_0x2e0b2c(0x191)],_0x1bc9c3[_0x2e0b2c(0x1c3)]=_0x19affb['status'],_0x1bc9c3[_0x2e0b2c(0x1f8)+'h']=_0x3682d7;const _0x552c8a={};return _0x552c8a['content']=[_0x2f85d5],_0x552c8a['structured'+_0x2e0b2c(0x1a9)]=_0x1bc9c3,_0x552c8a;}catch(_0x241a2b){logger['error'](_0x2e0b2c(0x1ad)+_0x2e0b2c(0x1ff)+_0x2e0b2c(0x1c5)+'led:',_0x241a2b);const _0x592835={};_0x592835['type']=_0x2e0b2c(0x19d),_0x592835[_0x2e0b2c(0x19d)]=_0x2e0b2c(0x1c6)+_0x2e0b2c(0x1d2)+_0x2e0b2c(0x1b4)+_0x2e0b2c(0x1f5)+(_0x241a2b instanceof Error?_0x241a2b[_0x2e0b2c(0x1f3)]:'Unknown\x20er'+_0x2e0b2c(0x1a2));const _0x311a91={};_0x311a91[_0x2e0b2c(0x1a6)]=_0x241a2b instanceof Error?_0x241a2b[_0x2e0b2c(0x1f3)]:_0x2e0b2c(0x19b)+_0x2e0b2c(0x1a2);const _0x585339={};return _0x585339[_0x2e0b2c(0x1dc)]=[_0x592835],_0x585339['structured'+_0x2e0b2c(0x1a9)]=_0x311a91,_0x585339;}}}
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;}}}