@sparrowai/sparrow-mcp 1.1.6 → 1.1.8

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 (53) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/scripts/mcp-test/mcp-client.js +1 -1
  3. package/dist/scripts/test-runner/check-failed-tests.js +1 -1
  4. package/dist/scripts/test-runner/compare-responses.js +1 -1
  5. package/dist/scripts/test-runner/standalone-test-fixed-header.js +1 -1
  6. package/dist/scripts/test-runner/standalone-test.js +1 -1
  7. package/dist/src/config/appConfig.js +1 -1
  8. package/dist/src/config/constants.js +1 -1
  9. package/dist/src/controllers/__tests__/analysis.controller.test.js +1 -1
  10. package/dist/src/controllers/__tests__/sast.controller.test.js +1 -1
  11. package/dist/src/controllers/__tests__/sca.controller.test.js +1 -1
  12. package/dist/src/controllers/__tests__/security.controller.test.js +1 -1
  13. package/dist/src/controllers/__tests__/system.controller.test.js +1 -1
  14. package/dist/src/controllers/analysis.controller.js +1 -1
  15. package/dist/src/controllers/sast.controller.d.ts +8 -4
  16. package/dist/src/controllers/sast.controller.js +1 -1
  17. package/dist/src/controllers/sca.controller.d.ts +8 -4
  18. package/dist/src/controllers/sca.controller.js +1 -1
  19. package/dist/src/controllers/security.controller.js +1 -1
  20. package/dist/src/controllers/system.controller.js +1 -1
  21. package/dist/src/schemas/tool.schemas.d.ts +8 -0
  22. package/dist/src/schemas/tool.schemas.js +1 -1
  23. package/dist/src/server.js +1 -1
  24. package/dist/src/services/__tests__/checker.service.test.js +1 -1
  25. package/dist/src/services/__tests__/llm.service.test.js +1 -1
  26. package/dist/src/services/__tests__/s3.service.test.js +1 -1
  27. package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
  28. package/dist/src/services/analysis.service.d.ts +20 -23
  29. package/dist/src/services/analysis.service.js +1 -1
  30. package/dist/src/services/checker.service.js +1 -1
  31. package/dist/src/services/llm/AnthropicProvider.js +1 -1
  32. package/dist/src/services/llm/BedrockProvider.js +1 -1
  33. package/dist/src/services/llm/GeminiProvider.js +1 -1
  34. package/dist/src/services/llm/LLMFactory.js +1 -1
  35. package/dist/src/services/llm/LLMProvider.js +1 -1
  36. package/dist/src/services/llm/OllamaProvider.js +1 -1
  37. package/dist/src/services/llm/OpenAIProvider.js +1 -1
  38. package/dist/src/services/llm.service.js +1 -1
  39. package/dist/src/services/s3.service.js +1 -1
  40. package/dist/src/services/sparrow.service.js +1 -1
  41. package/dist/src/types/types.d.ts +5 -0
  42. package/dist/src/types/types.js +1 -1
  43. package/dist/src/utils/__tests__/crypto.util.test.js +1 -1
  44. package/dist/src/utils/__tests__/diff.util.test.js +1 -1
  45. package/dist/src/utils/__tests__/fileManager.test.js +1 -1
  46. package/dist/src/utils/__tests__/fileManagerSecure.test.js +1 -1
  47. package/dist/src/utils/__tests__/logger.test.js +1 -1
  48. package/dist/src/utils/crypto.util.js +1 -1
  49. package/dist/src/utils/diff.util.js +1 -1
  50. package/dist/src/utils/fileManager.js +1 -1
  51. package/dist/src/utils/fileManagerSecure.js +1 -1
  52. package/dist/src/utils/logger.js +1 -1
  53. package/package.json +1 -1
@@ -1 +1 @@
1
- const a12_0x41d4f7=a12_0x15fb;(function(_0x5eb867,_0x48d408){const _0x47d80f=a12_0x15fb,_0x365629=_0x5eb867();while(!![]){try{const _0xf50174=parseInt(_0x47d80f(0x168))/0x1*(-parseInt(_0x47d80f(0x14b))/0x2)+-parseInt(_0x47d80f(0x18b))/0x3*(-parseInt(_0x47d80f(0x1b2))/0x4)+-parseInt(_0x47d80f(0x137))/0x5+-parseInt(_0x47d80f(0x138))/0x6+-parseInt(_0x47d80f(0x1be))/0x7*(-parseInt(_0x47d80f(0x170))/0x8)+-parseInt(_0x47d80f(0x15d))/0x9+parseInt(_0x47d80f(0x13a))/0xa;if(_0xf50174===_0x48d408)break;else _0x365629['push'](_0x365629['shift']());}catch(_0x3a442e){_0x365629['push'](_0x365629['shift']());}}}(a12_0x4cf6,0x60d52));const a12_0x166c36=(function(){let _0x5dc5cc=!![];return function(_0x101143,_0x736e73){const _0x59bce3=_0x5dc5cc?function(){const _0xf675f3=a12_0x15fb;if(_0x736e73){const _0x5ecf48=_0x736e73[_0xf675f3(0x1ac)](_0x101143,arguments);return _0x736e73=null,_0x5ecf48;}}:function(){};return _0x5dc5cc=![],_0x59bce3;};}()),a12_0x1e1952=a12_0x166c36(this,function(){const _0x55a9b5=a12_0x15fb;return a12_0x1e1952[_0x55a9b5(0x19c)]()['search'](_0x55a9b5(0x196)+'+$')[_0x55a9b5(0x19c)]()[_0x55a9b5(0x134)+'r'](a12_0x1e1952)['search'](_0x55a9b5(0x196)+'+$');});function a12_0x4cf6(){const _0x17869a=['to\x20interna','sults\x20with','14zivCHA','edValue','test-lib','text','mediumCoun','er.js','COMPLETE','progress','clearAllMo','dle\x20errors','cveId','s.controll','ntroller','CalledWith','overage','ailed\x20due\x20','sResults','analysisBr','toContain','constructo','Status\x20che','sStatus','3332295aNiFjG','3362670HQVWEc','unt','17941870hEQqRm','omplete','../../serv','Analysis\x20f','sing','dle\x20compon','result','ezBCU','vulnerabil','sResults\x20c','e.js','No\x20critica','toHaveBeen','cks','ound','urn\x20analys','rabilities','753070wXAlLL','nts\x20found','rKAKq','sZjqo','bilities\x20f','../../util','urn\x20format','trackAnaly','ion\x20found','sFvdb','../analysi','content','atus','severity','ng\x20analysi','should\x20ret','missing-id','Analysis\x20n','3252753voitpQ','SQL_INJECT','ION','highCount','xOELd','FAIL','/src/Login','TACuC','sToken\x20mis','sis.servic','ities','1cMkBuk','mockReject','should\x20han','getAnalysi','safe-lib','descriptio','pending-id','cvssScore','558160ZLUKiZ','sisProgres','CVE-2023-1','ts.js','yRsZM','ockModule','n\x20progress','nts\x20identi','sca-id','rovided','ief','fied','lowCount','../../conf','mockImplem','toBe','HIGH','ig/constan','l/high\x20sev','dle\x20empty\x20','urn\x20error\x20','Progress\x20T','mockResolv','ANALYSIS','Initializi','ot\x20found','INIT','9RnuxSa','urn\x20simpli','s/logger.j','oken\x20not\x20p','pleted\x20err','status','ysisResult','analysisId','fail-id','structured','issues','(((.+)+)+)','order','entation','Analyzing','components','is\x20not\x20fou','toString','version','1.0.0','getScaAnal','test-id','ck\x20failed','name','licenses','SUCCESS','dle\x20analys','SQL\x20Inject','unstable_m','gpNTO','is\x20FAIL\x20st','234','Injection','apply','error','_meta','AnalysisCo','totalVulne','toHaveLeng','570340WRaNOj','criticalCo','Content','ices/analy','\x20component','Status:\x20FA','filePath','mHKAx','\x20table','ot\x20complet'];a12_0x4cf6=function(){return _0x17869a;};return a12_0x4cf6();}a12_0x1e1952();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGetAnalysisStatus=jest['fn'](),mockGetAnalysisResults=jest['fn'](),mockGetScaAnalysisResults=jest['fn']();jest['unstable_m'+'ockModule'](a12_0x41d4f7(0x13c)+a12_0x41d4f7(0x1b5)+a12_0x41d4f7(0x166)+a12_0x41d4f7(0x144),()=>({'AnalysisService':jest['fn']()[a12_0x41d4f7(0x17e)+a12_0x41d4f7(0x198)](()=>({'getAnalysisStatus':mockGetAnalysisStatus,'getAnalysisResults':mockGetAnalysisResults,'getScaAnalysisResults':mockGetScaAnalysisResults}))})),jest[a12_0x41d4f7(0x1a7)+a12_0x41d4f7(0x175)](a12_0x41d4f7(0x150)+a12_0x41d4f7(0x18d)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const a12_0x17cd02={};a12_0x17cd02['id']='INIT',a12_0x17cd02['name']=a12_0x41d4f7(0x188)+'ng',a12_0x17cd02['descriptio'+'n']=a12_0x41d4f7(0x188)+a12_0x41d4f7(0x159)+'s',a12_0x17cd02[a12_0x41d4f7(0x197)]=0x1,a12_0x17cd02['progress']=0x0;const a12_0x38fe63={};function a12_0x15fb(_0x2f5cff,_0x49f1b7){_0x2f5cff=_0x2f5cff-0x128;const _0x3c771d=a12_0x4cf6();let _0x1e1952=_0x3c771d[_0x2f5cff];return _0x1e1952;}a12_0x38fe63['id']=a12_0x41d4f7(0x187),a12_0x38fe63[a12_0x41d4f7(0x1a2)]=a12_0x41d4f7(0x199),a12_0x38fe63[a12_0x41d4f7(0x16d)+'n']='Analysis\x20i'+a12_0x41d4f7(0x176),a12_0x38fe63['order']=0x2,a12_0x38fe63[a12_0x41d4f7(0x128)]=null;const a12_0x37e22d={};a12_0x37e22d['id']=a12_0x41d4f7(0x1c4),a12_0x37e22d[a12_0x41d4f7(0x1a2)]='Complete',a12_0x37e22d[a12_0x41d4f7(0x16d)+'n']='Analysis\x20c'+a12_0x41d4f7(0x13b),a12_0x37e22d[a12_0x41d4f7(0x197)]=0x3,a12_0x37e22d[a12_0x41d4f7(0x128)]=0x64;const a12_0x4dda2b={};a12_0x4dda2b[a12_0x41d4f7(0x18a)]=a12_0x17cd02,a12_0x4dda2b[a12_0x41d4f7(0x187)]=a12_0x38fe63,a12_0x4dda2b[a12_0x41d4f7(0x1c4)]=a12_0x37e22d,jest[a12_0x41d4f7(0x1a7)+a12_0x41d4f7(0x175)](a12_0x41d4f7(0x17d)+a12_0x41d4f7(0x181)+a12_0x41d4f7(0x173),()=>({'ANALYSIS_STAGES':a12_0x4dda2b}));const {AnalysisController}=await import(a12_0x41d4f7(0x155)+a12_0x41d4f7(0x12c)+a12_0x41d4f7(0x1c3)),{AnalysisService}=await import(a12_0x41d4f7(0x13c)+'ices/analy'+a12_0x41d4f7(0x166)+a12_0x41d4f7(0x144));describe(a12_0x41d4f7(0x1af)+a12_0x41d4f7(0x12d),()=>{const _0x333dc9=a12_0x41d4f7,_0x208162={'rKAKq':function(_0x3d0dab,_0x2593d2){return _0x3d0dab(_0x2593d2);},'mHKAx':_0x333dc9(0x178),'sZjqo':function(_0x2b4948,_0x256c64){return _0x2b4948(_0x256c64);},'ezBCU':_0x333dc9(0x15c)+_0x333dc9(0x189),'xOELd':_0x333dc9(0x145)+_0x333dc9(0x182)+'erity\x20issu'+'es','sFvdb':function(_0x18a723,_0x1a5f9c,_0x45c045){return _0x18a723(_0x1a5f9c,_0x45c045);},'TACuC':function(_0x2b98d1,_0x1b9692,_0x3024ab){return _0x2b98d1(_0x1b9692,_0x3024ab);}};let _0x1cfc5a,_0x635855;beforeEach(()=>{const _0x1f178f=_0x333dc9;jest[_0x1f178f(0x129)+_0x1f178f(0x147)](),_0x635855=new AnalysisService(),_0x1cfc5a=new AnalysisController(_0x635855);}),describe(_0x333dc9(0x16b)+_0x333dc9(0x136),()=>{const _0x226d5b=_0x333dc9;it(_0x226d5b(0x15a)+_0x226d5b(0x149)+'is\x20status',async()=>{const _0x344606=_0x226d5b,_0x1f2af9={};_0x1f2af9[_0x344606(0x190)]=_0x344606(0x187),_0x1f2af9[_0x344606(0x128)]=0x32;const _0xccdc13=_0x1f2af9;mockGetAnalysisStatus[_0x344606(0x186)+'edValue'](_0xccdc13);const _0x4a514c={};_0x4a514c['analysisId']='test-id';const _0x5d5712=await _0x1cfc5a[_0x344606(0x16b)+_0x344606(0x136)](_0x4a514c);expect(mockGetAnalysisStatus)[_0x344606(0x146)+_0x344606(0x12e)](_0x344606(0x1a0)),expect(_0x5d5712[_0x344606(0x194)+_0x344606(0x1b4)]['status'])[_0x344606(0x17f)](_0x344606(0x187)),_0x208162[_0x344606(0x14d)](expect,_0x5d5712[_0x344606(0x194)+_0x344606(0x1b4)][_0x344606(0x128)])['toBe'](0x32);}),it(_0x226d5b(0x16a)+_0x226d5b(0x12a),async()=>{const _0x50f9f3=_0x226d5b;mockGetAnalysisStatus[_0x50f9f3(0x169)+_0x50f9f3(0x1bf)](new Error('Status\x20che'+_0x50f9f3(0x1a1)));const _0x577a48={};_0x577a48['analysisId']='test-id';const _0x193637=await _0x1cfc5a[_0x50f9f3(0x16b)+_0x50f9f3(0x136)](_0x577a48);expect(_0x193637[_0x50f9f3(0x194)+_0x50f9f3(0x1b4)][_0x50f9f3(0x1ad)])[_0x50f9f3(0x17f)](_0x50f9f3(0x135)+_0x50f9f3(0x1a1));});}),describe(_0x333dc9(0x16b)+'sResults',()=>{const _0x11fd76=_0x333dc9;it(_0x11fd76(0x15a)+_0x11fd76(0x18c)+'fied\x20resul'+'ts',async()=>{const _0x21b280=_0x11fd76,_0x2c5ddd={};_0x2c5ddd['severity']=_0x21b280(0x180),_0x2c5ddd['checkerKey']=_0x21b280(0x15e)+_0x21b280(0x15f),_0x2c5ddd[_0x21b280(0x16d)+'n']=_0x21b280(0x1a6)+_0x21b280(0x153),_0x2c5ddd[_0x21b280(0x1b8)]=_0x21b280(0x163)+'.java',_0x2c5ddd['lineNumber']=0xa;const _0x553016={};_0x553016['analysisId']='test-id',_0x553016[_0x21b280(0x190)]=_0x21b280(0x1c4),_0x553016[_0x21b280(0x140)]='SUCCESS',_0x553016[_0x21b280(0x142)+'ities']=[_0x2c5ddd],_0x553016[_0x21b280(0x132)+_0x21b280(0x17a)]='Found\x20SQL\x20'+_0x21b280(0x1ab);const _0xdd2282=_0x553016;mockGetAnalysisResults[_0x21b280(0x186)+'edValue'](_0xdd2282);const _0x5db6e5={};_0x5db6e5[_0x21b280(0x192)]=_0x21b280(0x1a0);const _0x30a8cb=await _0x1cfc5a[_0x21b280(0x16b)+_0x21b280(0x131)](_0x5db6e5);expect(mockGetAnalysisResults)[_0x21b280(0x146)+_0x21b280(0x12e)]('test-id'),expect(_0x30a8cb['structured'+_0x21b280(0x1b4)][_0x21b280(0x142)+_0x21b280(0x167)])[_0x21b280(0x1b1)+'th'](0x1),expect(_0x30a8cb['content'][0x0][_0x21b280(0x1c1)])[_0x21b280(0x133)](_0x21b280(0x15e)+_0x21b280(0x15f));});}),describe('getScaAnal'+_0x333dc9(0x191)+'s',()=>{const _0x573048=_0x333dc9;it(_0x573048(0x15a)+_0x573048(0x151)+'ted\x20SCA\x20re'+_0x573048(0x1bd)+_0x573048(0x1b6)+_0x573048(0x1ba),async()=>{const _0x4e2cf5=_0x573048,_0x94b09a={};_0x94b09a['name']='MIT';const _0x3594d9={};_0x3594d9[_0x4e2cf5(0x158)]=_0x4e2cf5(0x180),_0x3594d9[_0x4e2cf5(0x12b)]=_0x4e2cf5(0x172)+_0x4e2cf5(0x1aa),_0x3594d9[_0x4e2cf5(0x16f)]=7.5,_0x3594d9['fixedVersi'+'on']='1.0.1';const _0x56605e={};_0x56605e[_0x4e2cf5(0x1a2)]=_0x4e2cf5(0x1c0),_0x56605e['version']='1.0.0',_0x56605e[_0x4e2cf5(0x1a3)]=[_0x94b09a],_0x56605e[_0x4e2cf5(0x195)]=[_0x3594d9];const _0x332fda={};_0x332fda[_0x4e2cf5(0x192)]='sca-id',_0x332fda['status']='COMPLETE',_0x332fda[_0x4e2cf5(0x140)]='SUCCESS',_0x332fda['components']=[_0x56605e],_0x332fda[_0x4e2cf5(0x1b0)+'rabilities']=0x1,_0x332fda[_0x4e2cf5(0x1b3)+_0x4e2cf5(0x139)]=0x0,_0x332fda[_0x4e2cf5(0x160)]=0x1,_0x332fda[_0x4e2cf5(0x1c2)+'t']=0x0,_0x332fda[_0x4e2cf5(0x17c)]=0x0,_0x332fda[_0x4e2cf5(0x132)+_0x4e2cf5(0x17a)]='SCA\x20Briefi'+'ng';const _0x5510cc=_0x332fda;mockGetScaAnalysisResults[_0x4e2cf5(0x186)+_0x4e2cf5(0x1bf)](_0x5510cc);const _0x38689a={};_0x38689a[_0x4e2cf5(0x192)]=_0x208162[_0x4e2cf5(0x1b9)];const _0x44c295=await _0x1cfc5a[_0x4e2cf5(0x19f)+_0x4e2cf5(0x191)+'s'](_0x38689a);expect(mockGetScaAnalysisResults)[_0x4e2cf5(0x146)+_0x4e2cf5(0x12e)](_0x4e2cf5(0x178)),_0x208162[_0x4e2cf5(0x14e)](expect,_0x44c295['structured'+'Content'][_0x4e2cf5(0x19a)])[_0x4e2cf5(0x1b1)+'th'](0x1),expect(_0x44c295[_0x4e2cf5(0x156)][0x0]['text'])[_0x4e2cf5(0x133)]('test-lib'),expect(_0x44c295[_0x4e2cf5(0x156)][0x0][_0x4e2cf5(0x1c1)])['toContain'](_0x4e2cf5(0x172)+_0x4e2cf5(0x1aa));}),it(_0x573048(0x16a)+'dle\x20analys'+_0x573048(0x19b)+'nd\x20error',async()=>{const _0x488ed3=_0x573048;mockGetScaAnalysisResults['mockReject'+_0x488ed3(0x1bf)](new Error(_0x208162[_0x488ed3(0x141)]));const _0x49f8bf={};_0x49f8bf[_0x488ed3(0x192)]=_0x488ed3(0x15b);const _0x3f8ec7=await _0x1cfc5a[_0x488ed3(0x19f)+_0x488ed3(0x191)+'s'](_0x49f8bf);expect(_0x3f8ec7[_0x488ed3(0x194)+'Content'][_0x488ed3(0x1ad)])[_0x488ed3(0x133)](_0x488ed3(0x15c)+_0x488ed3(0x189));}),_0x208162[_0x573048(0x154)](it,_0x573048(0x16a)+'dle\x20analys'+'is\x20not\x20com'+_0x573048(0x18f)+'or',async()=>{const _0x328aab=_0x573048;mockGetScaAnalysisResults[_0x328aab(0x169)+'edValue'](new Error('Analysis\x20n'+_0x328aab(0x1bb)+'ed'));const _0x795dba={};_0x795dba['analysisId']=_0x328aab(0x16e);const _0x444de6=await _0x1cfc5a[_0x328aab(0x19f)+_0x328aab(0x191)+'s'](_0x795dba);expect(_0x444de6[_0x328aab(0x194)+_0x328aab(0x1b4)][_0x328aab(0x1ad)])[_0x328aab(0x133)](_0x328aab(0x15c)+_0x328aab(0x1bb)+'ed');}),_0x208162[_0x573048(0x164)](it,_0x573048(0x16a)+_0x573048(0x183)+_0x573048(0x19a)+'\x20list',async()=>{const _0x15e4c6=_0x573048,_0x3b8d2b={};_0x3b8d2b[_0x15e4c6(0x192)]=_0x15e4c6(0x178),_0x3b8d2b[_0x15e4c6(0x190)]=_0x15e4c6(0x1c4),_0x3b8d2b[_0x15e4c6(0x140)]=_0x15e4c6(0x1a4),_0x3b8d2b[_0x15e4c6(0x19a)]=[],_0x3b8d2b['totalVulne'+_0x15e4c6(0x14a)]=0x0,_0x3b8d2b[_0x15e4c6(0x1b3)+'unt']=0x0,_0x3b8d2b[_0x15e4c6(0x160)]=0x0,_0x3b8d2b[_0x15e4c6(0x1c2)+'t']=0x0,_0x3b8d2b['lowCount']=0x0,_0x3b8d2b[_0x15e4c6(0x132)+_0x15e4c6(0x17a)]='No\x20compone'+_0x15e4c6(0x14c);const _0x443e74=_0x3b8d2b;mockGetScaAnalysisResults[_0x15e4c6(0x186)+'edValue'](_0x443e74);const _0x5694b4={};_0x5694b4['analysisId']='sca-id';const _0x27b10b=await _0x1cfc5a[_0x15e4c6(0x19f)+_0x15e4c6(0x191)+'s'](_0x5694b4);expect(_0x27b10b[_0x15e4c6(0x194)+_0x15e4c6(0x1b4)][_0x15e4c6(0x19a)])[_0x15e4c6(0x1b1)+'th'](0x0),expect(_0x27b10b[_0x15e4c6(0x156)][0x0]['text'])[_0x15e4c6(0x133)]('No\x20compone'+_0x15e4c6(0x177)+_0x15e4c6(0x17b));}),it(_0x573048(0x16a)+_0x573048(0x13f)+'ents\x20with\x20'+'no\x20vulnera'+'bilities',async()=>{const _0x2958f3=_0x573048,_0x2b191c={};_0x2b191c['name']='MIT';const _0x55a44e={};_0x55a44e[_0x2958f3(0x1a2)]=_0x2958f3(0x16c),_0x55a44e[_0x2958f3(0x19d)]=_0x2958f3(0x19e),_0x55a44e['licenses']=[_0x2b191c],_0x55a44e[_0x2958f3(0x195)]=[];const _0x2a1695={};_0x2a1695[_0x2958f3(0x192)]=_0x2958f3(0x178),_0x2a1695[_0x2958f3(0x190)]=_0x2958f3(0x1c4),_0x2a1695[_0x2958f3(0x140)]=_0x2958f3(0x1a4),_0x2a1695[_0x2958f3(0x19a)]=[_0x55a44e],_0x2a1695[_0x2958f3(0x1b0)+'rabilities']=0x0,_0x2a1695[_0x2958f3(0x1b3)+_0x2958f3(0x139)]=0x0,_0x2a1695[_0x2958f3(0x160)]=0x0,_0x2a1695[_0x2958f3(0x1c2)+'t']=0x0,_0x2a1695['lowCount']=0x0,_0x2a1695['analysisBr'+'ief']='Safe';const _0x1d1439=_0x2a1695;mockGetScaAnalysisResults[_0x2958f3(0x186)+_0x2958f3(0x1bf)](_0x1d1439);const _0x428e40={};_0x428e40[_0x2958f3(0x192)]='sca-id';const _0x580c11=await _0x1cfc5a[_0x2958f3(0x19f)+'ysisResult'+'s'](_0x428e40);expect(_0x580c11['structured'+_0x2958f3(0x1b4)][_0x2958f3(0x19a)])[_0x2958f3(0x1b1)+'th'](0x1),expect(_0x580c11[_0x2958f3(0x156)][0x0][_0x2958f3(0x1c1)])[_0x2958f3(0x133)]('No\x20vulnera'+_0x2958f3(0x14f)+_0x2958f3(0x148)),expect(_0x580c11[_0x2958f3(0x156)][0x0][_0x2958f3(0x1c1)])[_0x2958f3(0x133)](_0x208162[_0x2958f3(0x161)]);});}),describe(_0x333dc9(0x16b)+_0x333dc9(0x143)+_0x333dc9(0x12f),()=>{const _0x2b5606=_0x333dc9,_0x145fcf={};_0x145fcf[_0x2b5606(0x174)]='COMPLETE',_0x145fcf['gpNTO']=_0x2b5606(0x13d)+_0x2b5606(0x130)+_0x2b5606(0x1bc)+'l\x20error';const _0x193561=_0x145fcf;it('should\x20han'+_0x2b5606(0x1a5)+_0x2b5606(0x1a9)+_0x2b5606(0x157),async()=>{const _0x383493=_0x2b5606,_0xb410f4={};_0xb410f4[_0x383493(0x192)]=_0x383493(0x193),_0xb410f4[_0x383493(0x190)]=_0x193561['yRsZM'],_0xb410f4[_0x383493(0x140)]=_0x383493(0x162),_0xb410f4[_0x383493(0x142)+'ities']=[],_0xb410f4[_0x383493(0x132)+_0x383493(0x17a)]=_0x193561[_0x383493(0x1a8)];const _0x4e1517=_0xb410f4;mockGetAnalysisResults[_0x383493(0x186)+'edValue'](_0x4e1517);const _0x4b09cb={};_0x4b09cb[_0x383493(0x192)]=_0x383493(0x193);const _0x3e0f7d=await _0x1cfc5a[_0x383493(0x16b)+_0x383493(0x131)](_0x4b09cb);expect(_0x3e0f7d[_0x383493(0x194)+'Content'][_0x383493(0x140)])['toBe'](_0x383493(0x162)),expect(_0x3e0f7d[_0x383493(0x156)][0x0][_0x383493(0x1c1)])['toContain'](_0x383493(0x1b7)+'IL');});}),describe('trackAnaly'+_0x333dc9(0x171)+'s',()=>{const _0xed9914=_0x333dc9;it(_0xed9914(0x15a)+_0xed9914(0x184)+'if\x20progres'+_0xed9914(0x165)+_0xed9914(0x13e),async()=>{const _0xcd1d40=_0xed9914,_0x253c1c={};_0x253c1c['analysisId']=_0xcd1d40(0x1a0);const _0x4c8fa5={};_0x4c8fa5[_0xcd1d40(0x1ae)]={};const _0x366a17=await _0x1cfc5a[_0xcd1d40(0x152)+_0xcd1d40(0x171)+'s'](_0x253c1c,_0x4c8fa5);expect(_0x366a17[_0xcd1d40(0x194)+'Content'][_0xcd1d40(0x1ad)])[_0xcd1d40(0x17f)](_0xcd1d40(0x185)+_0xcd1d40(0x18e)+_0xcd1d40(0x179));});});});
1
+ const a12_0x1911aa=a12_0x1348;(function(_0x3b20cc,_0x198a21){const _0x125113=a12_0x1348,_0x36d6bb=_0x3b20cc();while(!![]){try{const _0x1cc062=parseInt(_0x125113(0xa1))/0x1+-parseInt(_0x125113(0xf3))/0x2+-parseInt(_0x125113(0xfe))/0x3*(-parseInt(_0x125113(0x128))/0x4)+parseInt(_0x125113(0xff))/0x5+parseInt(_0x125113(0xbe))/0x6*(-parseInt(_0x125113(0xb3))/0x7)+parseInt(_0x125113(0x118))/0x8*(parseInt(_0x125113(0xdd))/0x9)+parseInt(_0x125113(0xf6))/0xa*(-parseInt(_0x125113(0x11d))/0xb);if(_0x1cc062===_0x198a21)break;else _0x36d6bb['push'](_0x36d6bb['shift']());}catch(_0x3633a6){_0x36d6bb['push'](_0x36d6bb['shift']());}}}(a12_0x4ff1,0xba111));const a12_0x597b85=(function(){let _0x42976e=!![];return function(_0x1690da,_0xabbf9a){const _0x5ddf47=_0x42976e?function(){if(_0xabbf9a){const _0x181d7a=_0xabbf9a['apply'](_0x1690da,arguments);return _0xabbf9a=null,_0x181d7a;}}:function(){};return _0x42976e=![],_0x5ddf47;};}()),a12_0x4a91ae=a12_0x597b85(this,function(){const _0x2d65ea=a12_0x1348;return a12_0x4a91ae[_0x2d65ea(0x127)]()[_0x2d65ea(0x105)](_0x2d65ea(0xa4)+'+$')[_0x2d65ea(0x127)]()[_0x2d65ea(0xd1)+'r'](a12_0x4a91ae)[_0x2d65ea(0x105)]('(((.+)+)+)'+'+$');});a12_0x4a91ae();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGetAnalysisStatus=jest['fn'](),mockGetAnalysisResults=jest['fn'](),mockGetScaAnalysisResults=jest['fn']();jest[a12_0x1911aa(0xc5)+a12_0x1911aa(0x129)](a12_0x1911aa(0xfc)+a12_0x1911aa(0x10d)+a12_0x1911aa(0x10e)+a12_0x1911aa(0x10c),()=>({'AnalysisService':jest['fn']()['mockImplem'+a12_0x1911aa(0xe3)](()=>({'getAnalysisStatus':mockGetAnalysisStatus,'getAnalysisResults':mockGetAnalysisResults,'getScaAnalysisResults':mockGetScaAnalysisResults}))})),jest[a12_0x1911aa(0xc5)+'ockModule'](a12_0x1911aa(0x106)+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));function a12_0x1348(_0x4b0fa9,_0xaeacb5){_0x4b0fa9=_0x4b0fa9-0x98;const _0x2dd146=a12_0x4ff1();let _0x4a91ae=_0x2dd146[_0x4b0fa9];return _0x4a91ae;}const a12_0x2cd555={};a12_0x2cd555['id']=a12_0x1911aa(0xef),a12_0x2cd555[a12_0x1911aa(0x12d)]=a12_0x1911aa(0xb0)+'ng',a12_0x2cd555['descriptio'+'n']='Initializi'+a12_0x1911aa(0xcf)+'s',a12_0x2cd555['order']=0x1,a12_0x2cd555['progress']=0x0;function a12_0x4ff1(){const _0x2a52b8=['bilities\x20f','getAnalysi','MIT','name','Progress\x20T','sca-id','l/high\x20sev','ysisResult','Analysis\x20i','is\x20not\x20fou','\x20component','\x20list','criticalCo','ities','severity','cveId','CVE-2023-1','toHaveLeng','sToken\x20mis','ig/constan','1474722wAqMGB','error','ief','(((.+)+)+)','FAIL','licenses','version','toContain','DCTEy','clearAllMo','Injection','_meta','234','CalledWith','rabilities','Initializi','Content','Analysis\x20f','9133194eYPiPh','overage','vulnerabil','lineNumber','ot\x20found','omplete','components','unt','text','analysisId','urn\x20format','6HgfJtx','sStatus','fail-id','should\x20han','bEnvF','mockResolv','sResults','unstable_m','fixedVersi','fied\x20resul','1.0.0','nts\x20identi','ailed\x20due\x20','QSquv','atus','toBe','Analysis\x20c','ng\x20analysi','edValue','constructo','if\x20progres','bQevD','No\x20critica','dle\x20analys','should\x20ret','SCA\x20Briefi','checkerKey','AnalysisCo','no\x20vulnera','ANALYSIS','bilities','9BUGpHT','toHaveBeen','SUCCESS','Analyzing','highCount','No\x20vulnera','entation','urn\x20simpli','lowCount','kFbxt','ents\x20with\x20','to\x20interna','SQL\x20Inject','Complete','mediumCoun','ion\x20found','No\x20compone','dle\x20compon','INIT','trackAnaly','result','test-id','66314NGmePz','HIGH','zCjvf','26150XLZoWJ','mockReject','s.controll','structured','sResults\x20c','1.0.1','../../serv','is\x20FAIL\x20st','283755ccPOzN','6102385cDFUHU','../../conf','nts\x20found','ot\x20complet','dle\x20empty\x20','missing-id','search','../../util','SQL_INJECT','progress','analysisBr','IUGPx','COMPLETE','e.js','ices/analy','sis.servic','Safe','Analysis\x20n','is\x20not\x20com','ION','nd\x20error','status','ntroller','cvssScore','totalVulne','1406472jrRIPG','gOMoD','ck\x20failed','content','sults\x20with','3641kQWiwz','sing','getScaAnal','issues','sisProgres','urn\x20analys','test-lib','Status\x20che','WhoQu','descriptio','toString','4lkuYrc','ockModule'];a12_0x4ff1=function(){return _0x2a52b8;};return a12_0x4ff1();}const a12_0x6f2658={};a12_0x6f2658['id']=a12_0x1911aa(0xdb),a12_0x6f2658[a12_0x1911aa(0x12d)]=a12_0x1911aa(0xe0),a12_0x6f2658[a12_0x1911aa(0x126)+'n']=a12_0x1911aa(0x132)+'n\x20progress',a12_0x6f2658['order']=0x2,a12_0x6f2658[a12_0x1911aa(0x108)]=null;const a12_0x327687={};a12_0x327687['id']=a12_0x1911aa(0x10b),a12_0x327687['name']=a12_0x1911aa(0xea),a12_0x327687[a12_0x1911aa(0x126)+'n']=a12_0x1911aa(0xce)+a12_0x1911aa(0xb8),a12_0x327687['order']=0x3,a12_0x327687[a12_0x1911aa(0x108)]=0x64;const a12_0x3a1d81={};a12_0x3a1d81['INIT']=a12_0x2cd555,a12_0x3a1d81[a12_0x1911aa(0xdb)]=a12_0x6f2658,a12_0x3a1d81[a12_0x1911aa(0x10b)]=a12_0x327687,jest[a12_0x1911aa(0xc5)+'ockModule'](a12_0x1911aa(0x100)+a12_0x1911aa(0xa0)+'ts.js',()=>({'ANALYSIS_STAGES':a12_0x3a1d81}));const {AnalysisController}=await import('../analysi'+a12_0x1911aa(0xf8)+'er.js'),{AnalysisService}=await import(a12_0x1911aa(0xfc)+'ices/analy'+'sis.servic'+a12_0x1911aa(0x10c));describe(a12_0x1911aa(0xd9)+a12_0x1911aa(0x115),()=>{const _0x35e8ce=a12_0x1911aa,_0x32ef47={'DCTEy':_0x35e8ce(0xdb),'GpJrS':function(_0x345a33,_0x1d93ad){return _0x345a33(_0x1d93ad);},'kFbxt':_0x35e8ce(0xf4),'ArDBL':_0x35e8ce(0xed)+_0x35e8ce(0x101),'zCjvf':'should\x20han'+_0x35e8ce(0xd5)+_0x35e8ce(0x111)+'pleted\x20err'+'or','WhoQu':function(_0xa2df71,_0x15b44b,_0x434b5c){return _0xa2df71(_0x15b44b,_0x434b5c);},'QSquv':_0x35e8ce(0x12b)+'sResults'};let _0x15766a,_0x5b35ce;beforeEach(()=>{const _0x206ba4=_0x35e8ce;jest[_0x206ba4(0xaa)+'cks'](),_0x5b35ce=new AnalysisService(),_0x15766a=new AnalysisController(_0x5b35ce);}),describe(_0x35e8ce(0x12b)+_0x35e8ce(0xbf),()=>{const _0x5660d6=_0x35e8ce;it(_0x5660d6(0xd6)+_0x5660d6(0x122)+'is\x20status',async()=>{const _0xdec963=_0x5660d6,_0x257c5d={};_0x257c5d[_0xdec963(0x114)]=_0x32ef47[_0xdec963(0xa9)],_0x257c5d[_0xdec963(0x108)]=0x32;const _0x169ea4=_0x257c5d;mockGetAnalysisStatus[_0xdec963(0xc3)+_0xdec963(0xd0)](_0x169ea4);const _0x290dc6={};_0x290dc6[_0xdec963(0xbc)]=_0xdec963(0xf2);const _0x315350=await _0x15766a[_0xdec963(0x12b)+_0xdec963(0xbf)](_0x290dc6);expect(mockGetAnalysisStatus)[_0xdec963(0xde)+_0xdec963(0xae)](_0xdec963(0xf2)),_0x32ef47['GpJrS'](expect,_0x315350['structured'+'Content']['status'])[_0xdec963(0xcd)](_0xdec963(0xdb)),expect(_0x315350['structured'+_0xdec963(0xb1)][_0xdec963(0x108)])[_0xdec963(0xcd)](0x32);}),it(_0x5660d6(0xc1)+'dle\x20errors',async()=>{const _0xa6a815=_0x5660d6;mockGetAnalysisStatus['mockReject'+_0xa6a815(0xd0)](new Error(_0xa6a815(0x124)+_0xa6a815(0x11a)));const _0x138e74={};_0x138e74[_0xa6a815(0xbc)]=_0xa6a815(0xf2);const _0x36e6b9=await _0x15766a[_0xa6a815(0x12b)+_0xa6a815(0xbf)](_0x138e74);expect(_0x36e6b9['structured'+_0xa6a815(0xb1)][_0xa6a815(0xa2)])[_0xa6a815(0xcd)](_0xa6a815(0x124)+_0xa6a815(0x11a));});}),_0x32ef47[_0x35e8ce(0x125)](describe,_0x32ef47[_0x35e8ce(0xcb)],()=>{const _0x1b46b9=_0x35e8ce;it(_0x1b46b9(0xd6)+_0x1b46b9(0xe4)+_0x1b46b9(0xc7)+'ts',async()=>{const _0x2eb4cc=_0x1b46b9,_0x1c9b25={};_0x1c9b25['severity']=_0x32ef47[_0x2eb4cc(0xe6)],_0x1c9b25[_0x2eb4cc(0xd8)]=_0x2eb4cc(0x107)+_0x2eb4cc(0x112),_0x1c9b25[_0x2eb4cc(0x126)+'n']=_0x2eb4cc(0xe9)+_0x2eb4cc(0xec),_0x1c9b25['filePath']='/src/Login'+'.java',_0x1c9b25[_0x2eb4cc(0xb6)]=0xa;const _0x2038bb={};_0x2038bb[_0x2eb4cc(0xbc)]=_0x2eb4cc(0xf2),_0x2038bb[_0x2eb4cc(0x114)]=_0x2eb4cc(0x10b),_0x2038bb[_0x2eb4cc(0xf1)]=_0x2eb4cc(0xdf),_0x2038bb[_0x2eb4cc(0xb5)+_0x2eb4cc(0x9a)]=[_0x1c9b25],_0x2038bb[_0x2eb4cc(0x109)+'ief']='Found\x20SQL\x20'+_0x2eb4cc(0xab);const _0x976eff=_0x2038bb;mockGetAnalysisResults[_0x2eb4cc(0xc3)+_0x2eb4cc(0xd0)](_0x976eff);const _0x1ce9d4={};_0x1ce9d4[_0x2eb4cc(0xbc)]=_0x2eb4cc(0xf2);const _0x3286af=await _0x15766a[_0x2eb4cc(0x12b)+_0x2eb4cc(0xc4)](_0x1ce9d4);expect(mockGetAnalysisResults)[_0x2eb4cc(0xde)+_0x2eb4cc(0xae)](_0x2eb4cc(0xf2)),expect(_0x3286af['structured'+'Content'][_0x2eb4cc(0xb5)+'ities'])['toHaveLeng'+'th'](0x1),expect(_0x3286af[_0x2eb4cc(0x11b)][0x0][_0x2eb4cc(0xbb)])[_0x2eb4cc(0xa8)](_0x2eb4cc(0x107)+_0x2eb4cc(0x112));});}),describe(_0x35e8ce(0x11f)+_0x35e8ce(0x131)+'s',()=>{const _0x1688a6=_0x35e8ce,_0x24b304={};_0x24b304['IUGPx']=_0x1688a6(0x123),_0x24b304[_0x1688a6(0xd3)]=_0x1688a6(0xdf);const _0x9b2ddb=_0x24b304;it(_0x1688a6(0xd6)+_0x1688a6(0xbd)+'ted\x20SCA\x20re'+_0x1688a6(0x11c)+_0x1688a6(0x134)+'\x20table',async()=>{const _0x1d5f21=_0x1688a6,_0x304861={};_0x304861[_0x1d5f21(0x12d)]='MIT';const _0x2e254d={};_0x2e254d[_0x1d5f21(0x9b)]=_0x1d5f21(0xf4),_0x2e254d[_0x1d5f21(0x9c)]=_0x1d5f21(0x9d)+_0x1d5f21(0xad),_0x2e254d[_0x1d5f21(0x116)]=7.5,_0x2e254d[_0x1d5f21(0xc6)+'on']=_0x1d5f21(0xfb);const _0x5474fe={};_0x5474fe[_0x1d5f21(0x12d)]=_0x1d5f21(0x123),_0x5474fe[_0x1d5f21(0xa7)]=_0x1d5f21(0xc8),_0x5474fe[_0x1d5f21(0xa6)]=[_0x304861],_0x5474fe[_0x1d5f21(0x120)]=[_0x2e254d];const _0x2b378f={};_0x2b378f['analysisId']=_0x1d5f21(0x12f),_0x2b378f[_0x1d5f21(0x114)]='COMPLETE',_0x2b378f[_0x1d5f21(0xf1)]=_0x1d5f21(0xdf),_0x2b378f[_0x1d5f21(0xb9)]=[_0x5474fe],_0x2b378f[_0x1d5f21(0x117)+_0x1d5f21(0xaf)]=0x1,_0x2b378f[_0x1d5f21(0x99)+_0x1d5f21(0xba)]=0x0,_0x2b378f[_0x1d5f21(0xe1)]=0x1,_0x2b378f['mediumCoun'+'t']=0x0,_0x2b378f[_0x1d5f21(0xe5)]=0x0,_0x2b378f[_0x1d5f21(0x109)+_0x1d5f21(0xa3)]=_0x1d5f21(0xd7)+'ng';const _0x107f51=_0x2b378f;mockGetScaAnalysisResults['mockResolv'+_0x1d5f21(0xd0)](_0x107f51);const _0x650dc2={};_0x650dc2[_0x1d5f21(0xbc)]='sca-id';const _0x1c5e1f=await _0x15766a['getScaAnal'+'ysisResult'+'s'](_0x650dc2);expect(mockGetScaAnalysisResults)[_0x1d5f21(0xde)+'CalledWith'](_0x1d5f21(0x12f)),expect(_0x1c5e1f[_0x1d5f21(0xf9)+'Content']['components'])[_0x1d5f21(0x9e)+'th'](0x1),expect(_0x1c5e1f[_0x1d5f21(0x11b)][0x0][_0x1d5f21(0xbb)])['toContain'](_0x9b2ddb[_0x1d5f21(0x10a)]),expect(_0x1c5e1f[_0x1d5f21(0x11b)][0x0][_0x1d5f21(0xbb)])[_0x1d5f21(0xa8)](_0x1d5f21(0x9d)+_0x1d5f21(0xad));}),it(_0x1688a6(0xc1)+'dle\x20analys'+_0x1688a6(0x133)+_0x1688a6(0x113),async()=>{const _0x5decec=_0x1688a6;mockGetScaAnalysisResults[_0x5decec(0xf7)+_0x5decec(0xd0)](new Error('Analysis\x20n'+_0x5decec(0xb7)));const _0xe29046={};_0xe29046[_0x5decec(0xbc)]=_0x5decec(0x104);const _0x487827=await _0x15766a[_0x5decec(0x11f)+_0x5decec(0x131)+'s'](_0xe29046);expect(_0x487827[_0x5decec(0xf9)+_0x5decec(0xb1)][_0x5decec(0xa2)])['toContain'](_0x5decec(0x110)+_0x5decec(0xb7));}),it(_0x32ef47[_0x1688a6(0xf5)],async()=>{const _0x4159da=_0x1688a6;mockGetScaAnalysisResults[_0x4159da(0xf7)+_0x4159da(0xd0)](new Error('Analysis\x20n'+_0x4159da(0x102)+'ed'));const _0x4c6aaa={};_0x4c6aaa[_0x4159da(0xbc)]='pending-id';const _0x56e284=await _0x15766a['getScaAnal'+'ysisResult'+'s'](_0x4c6aaa);expect(_0x56e284[_0x4159da(0xf9)+_0x4159da(0xb1)][_0x4159da(0xa2)])[_0x4159da(0xa8)](_0x4159da(0x110)+_0x4159da(0x102)+'ed');}),it('should\x20han'+_0x1688a6(0x103)+'components'+_0x1688a6(0x98),async()=>{const _0x44519f=_0x1688a6,_0x312a3d={};_0x312a3d[_0x44519f(0xbc)]=_0x44519f(0x12f),_0x312a3d['status']='COMPLETE',_0x312a3d[_0x44519f(0xf1)]='SUCCESS',_0x312a3d[_0x44519f(0xb9)]=[],_0x312a3d[_0x44519f(0x117)+_0x44519f(0xaf)]=0x0,_0x312a3d[_0x44519f(0x99)+_0x44519f(0xba)]=0x0,_0x312a3d[_0x44519f(0xe1)]=0x0,_0x312a3d['mediumCoun'+'t']=0x0,_0x312a3d[_0x44519f(0xe5)]=0x0,_0x312a3d[_0x44519f(0x109)+_0x44519f(0xa3)]=_0x32ef47['ArDBL'];const _0x24a028=_0x312a3d;mockGetScaAnalysisResults[_0x44519f(0xc3)+_0x44519f(0xd0)](_0x24a028);const _0x2ff00f={};_0x2ff00f[_0x44519f(0xbc)]=_0x44519f(0x12f);const _0x260e8e=await _0x15766a['getScaAnal'+'ysisResult'+'s'](_0x2ff00f);expect(_0x260e8e[_0x44519f(0xf9)+'Content'][_0x44519f(0xb9)])['toHaveLeng'+'th'](0x0),expect(_0x260e8e[_0x44519f(0x11b)][0x0][_0x44519f(0xbb)])[_0x44519f(0xa8)](_0x44519f(0xed)+_0x44519f(0xc9)+'fied');}),it(_0x1688a6(0xc1)+_0x1688a6(0xee)+_0x1688a6(0xe7)+_0x1688a6(0xda)+_0x1688a6(0xdc),async()=>{const _0x36cdb7=_0x1688a6,_0x548e93={};_0x548e93[_0x36cdb7(0x12d)]=_0x36cdb7(0x12c);const _0x17625b={};_0x17625b[_0x36cdb7(0x12d)]='safe-lib',_0x17625b['version']=_0x36cdb7(0xc8),_0x17625b['licenses']=[_0x548e93],_0x17625b['issues']=[];const _0x1971c7={};_0x1971c7[_0x36cdb7(0xbc)]=_0x36cdb7(0x12f),_0x1971c7[_0x36cdb7(0x114)]=_0x36cdb7(0x10b),_0x1971c7[_0x36cdb7(0xf1)]=_0x9b2ddb['bQevD'],_0x1971c7[_0x36cdb7(0xb9)]=[_0x17625b],_0x1971c7[_0x36cdb7(0x117)+'rabilities']=0x0,_0x1971c7[_0x36cdb7(0x99)+_0x36cdb7(0xba)]=0x0,_0x1971c7[_0x36cdb7(0xe1)]=0x0,_0x1971c7[_0x36cdb7(0xeb)+'t']=0x0,_0x1971c7[_0x36cdb7(0xe5)]=0x0,_0x1971c7[_0x36cdb7(0x109)+_0x36cdb7(0xa3)]=_0x36cdb7(0x10f);const _0x571603=_0x1971c7;mockGetScaAnalysisResults[_0x36cdb7(0xc3)+'edValue'](_0x571603);const _0x4126c3={};_0x4126c3['analysisId']=_0x36cdb7(0x12f);const _0x27b0b8=await _0x15766a[_0x36cdb7(0x11f)+'ysisResult'+'s'](_0x4126c3);expect(_0x27b0b8[_0x36cdb7(0xf9)+_0x36cdb7(0xb1)][_0x36cdb7(0xb9)])['toHaveLeng'+'th'](0x1),expect(_0x27b0b8[_0x36cdb7(0x11b)][0x0][_0x36cdb7(0xbb)])[_0x36cdb7(0xa8)](_0x36cdb7(0xe2)+_0x36cdb7(0x12a)+'ound'),expect(_0x27b0b8['content'][0x0][_0x36cdb7(0xbb)])[_0x36cdb7(0xa8)](_0x36cdb7(0xd4)+_0x36cdb7(0x130)+'erity\x20issu'+'es');});}),describe('getAnalysi'+_0x35e8ce(0xfa)+_0x35e8ce(0xb4),()=>{const _0x442791=_0x35e8ce,_0x132908={};_0x132908[_0x442791(0x119)]=_0x442791(0xc0),_0x132908[_0x442791(0xc2)]='Status:\x20FA'+'IL';const _0x56af34=_0x132908;it(_0x442791(0xc1)+_0x442791(0xd5)+_0x442791(0xfd)+_0x442791(0xcc),async()=>{const _0x4a0ff1=_0x442791,_0x4c4ae8={};_0x4c4ae8[_0x4a0ff1(0xbc)]=_0x4a0ff1(0xc0),_0x4c4ae8[_0x4a0ff1(0x114)]='COMPLETE',_0x4c4ae8[_0x4a0ff1(0xf1)]=_0x4a0ff1(0xa5),_0x4c4ae8[_0x4a0ff1(0xb5)+_0x4a0ff1(0x9a)]=[],_0x4c4ae8[_0x4a0ff1(0x109)+_0x4a0ff1(0xa3)]=_0x4a0ff1(0xb2)+_0x4a0ff1(0xca)+_0x4a0ff1(0xe8)+'l\x20error';const _0x114871=_0x4c4ae8;mockGetAnalysisResults['mockResolv'+_0x4a0ff1(0xd0)](_0x114871);const _0x5f3cc9={};_0x5f3cc9[_0x4a0ff1(0xbc)]=_0x56af34[_0x4a0ff1(0x119)];const _0x5a9a74=await _0x15766a['getAnalysi'+'sResults'](_0x5f3cc9);expect(_0x5a9a74['structured'+_0x4a0ff1(0xb1)][_0x4a0ff1(0xf1)])[_0x4a0ff1(0xcd)](_0x4a0ff1(0xa5)),expect(_0x5a9a74[_0x4a0ff1(0x11b)][0x0]['text'])[_0x4a0ff1(0xa8)](_0x56af34['bEnvF']);});}),describe('trackAnaly'+'sisProgres'+'s',()=>{const _0x1a1375=_0x35e8ce;it(_0x1a1375(0xd6)+'urn\x20error\x20'+_0x1a1375(0xd2)+_0x1a1375(0x9f)+_0x1a1375(0x11e),async()=>{const _0x8a4d8b=_0x1a1375,_0xdc7b4f={};_0xdc7b4f[_0x8a4d8b(0xbc)]=_0x8a4d8b(0xf2);const _0x5d900f={};_0x5d900f[_0x8a4d8b(0xac)]={};const _0x1da45e=await _0x15766a[_0x8a4d8b(0xf0)+_0x8a4d8b(0x121)+'s'](_0xdc7b4f,_0x5d900f);expect(_0x1da45e[_0x8a4d8b(0xf9)+_0x8a4d8b(0xb1)][_0x8a4d8b(0xa2)])[_0x8a4d8b(0xcd)](_0x8a4d8b(0x12e)+'oken\x20not\x20p'+'rovided');});});});
@@ -1 +1 @@
1
- const a13_0x222b61=a13_0x202c;(function(_0x2ca7cf,_0x588d8d){const _0xa1b85b=a13_0x202c,_0x2ded69=_0x2ca7cf();while(!![]){try{const _0x502729=parseInt(_0xa1b85b(0x205))/0x1+parseInt(_0xa1b85b(0x1f7))/0x2+-parseInt(_0xa1b85b(0x235))/0x3+parseInt(_0xa1b85b(0x1d5))/0x4+-parseInt(_0xa1b85b(0x1eb))/0x5*(parseInt(_0xa1b85b(0x1d6))/0x6)+-parseInt(_0xa1b85b(0x226))/0x7*(parseInt(_0xa1b85b(0x1f5))/0x8)+parseInt(_0xa1b85b(0x227))/0x9;if(_0x502729===_0x588d8d)break;else _0x2ded69['push'](_0x2ded69['shift']());}catch(_0x182fde){_0x2ded69['push'](_0x2ded69['shift']());}}}(a13_0x2b71,0xd12c4));const a13_0x5e02c7=(function(){let _0x5b34e6=!![];return function(_0x32456e,_0x597192){const _0x574fc6=_0x5b34e6?function(){const _0x3c9df6=a13_0x202c;if(_0x597192){const _0x34b1b2=_0x597192[_0x3c9df6(0x1ec)](_0x32456e,arguments);return _0x597192=null,_0x34b1b2;}}:function(){};return _0x5b34e6=![],_0x574fc6;};}()),a13_0x3b32ff=a13_0x5e02c7(this,function(){const _0x134d3a=a13_0x202c,_0x2807a3={};_0x2807a3[_0x134d3a(0x206)]='(((.+)+)+)'+'+$';const _0x55efb3=_0x2807a3;return a13_0x3b32ff[_0x134d3a(0x22a)]()[_0x134d3a(0x201)]('(((.+)+)+)'+'+$')[_0x134d3a(0x22a)]()[_0x134d3a(0x232)+'r'](a13_0x3b32ff)[_0x134d3a(0x201)](_0x55efb3[_0x134d3a(0x206)]);});a13_0x3b32ff();function a13_0x2b71(){const _0x4ac32b=['kCtKR','folderPath','\x20not\x20provi','fileConten','test.java','dle\x20zip\x20fi','older','should\x20ret','h\x20not\x20prov','older\x20anal','mockImplem','ders','status','structured','file\x20conte','fileName','edValue','Sast','derSast','ile.zip','test-id','P\x20file','be\x20empty','File\x20conte','if\x20folder\x20','unstable_m','toHaveBeen','toContain','cessfully\x20','Called','analyzeFol','ovided','406fkUlKC','7379748TqLoRp','initiate\x20z','mockResolv','toString','zipFilePat','error','ip\x20analysi','ided','analysis','analysisId','SastContro','constructo','koZkQ','initiate\x20m','4828773EhGqDB','ysis','esSast','ailed','eSast','\x20gracefull','e.js','entation','code','3069148lPfvYe','2490PZIdqE','s\x20provided','urn\x20error\x20','not','mockReject','analyzeZip','INIT','le\x20errors','CalledWith','Invalid\x20ZI','ockModule','should\x20suc','wIpIL','ded','unt','../../serv','filePathCo','cks','ile\x20analys','ile2','toBe','8095zkrXde','apply','ntroller.j','filePaths','dle\x20empty\x20','analyzeFil','skippedFol','wWPis','Content','/path/to/f','73768EKyfJX','ller','1985690ZlZqQw','h\x20missing','Folder\x20pat','if\x20zip\x20pat','dle\x20errors','ices/analy','Analysis\x20f','should\x20han','ulti-file\x20','s/logger.j','search','sis.servic','TxCXd','../../util','1092962FzBnFI'];a13_0x2b71=function(){return _0x4ac32b;};return a13_0x2b71();}function a13_0x202c(_0x34bafe,_0x114d0f){_0x34bafe=_0x34bafe-0x1d3;const _0x4eeb73=a13_0x2b71();let _0x3b32ff=_0x4eeb73[_0x34bafe];return _0x3b32ff;}import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSecurity=jest['fn'](),mockAnalyzeMultipleFilesFromPaths=jest['fn'](),mockAnalyzeFolder=jest['fn'](),mockAnalyzeZipFile=jest['fn']();jest[a13_0x222b61(0x21f)+a13_0x222b61(0x1e0)](a13_0x222b61(0x1e5)+a13_0x222b61(0x1fc)+a13_0x222b61(0x202)+a13_0x222b61(0x23b),()=>({'AnalysisService':jest['fn']()[a13_0x222b61(0x210)+a13_0x222b61(0x1d3)](()=>({'analyzeFileSecurity':mockAnalyzeFileSecurity,'analyzeMultipleFilesFromPaths':mockAnalyzeMultipleFilesFromPaths,'analyzeFolder':mockAnalyzeFolder,'analyzeZipFile':mockAnalyzeZipFile}))})),jest[a13_0x222b61(0x21f)+a13_0x222b61(0x1e0)](a13_0x222b61(0x204)+a13_0x222b61(0x200)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const {SastController}=await import('../sast.co'+a13_0x222b61(0x1ed)+'s'),{AnalysisService}=await import(a13_0x222b61(0x1e5)+a13_0x222b61(0x1fc)+a13_0x222b61(0x202)+'e.js');describe(a13_0x222b61(0x231)+a13_0x222b61(0x1f6),()=>{const _0x39965b=a13_0x222b61,_0x52d091={};_0x52d091[_0x39965b(0x203)]=_0x39965b(0x1f4)+_0x39965b(0x219),_0x52d091[_0x39965b(0x233)]=_0x39965b(0x1db)+_0x39965b(0x217);const _0xb4f208=_0x52d091;let _0x3ae245,_0xd27c;beforeEach(()=>{const _0x1a70f3=_0x39965b;jest['clearAllMo'+_0x1a70f3(0x1e7)](),_0xd27c=new AnalysisService(),_0x3ae245=new SastController(_0xd27c);}),describe('analyzeFil'+_0x39965b(0x239),()=>{const _0x44bce7=_0x39965b,_0x2030b1={};_0x2030b1[_0x44bce7(0x1f2)]='Analysis\x20f'+_0x44bce7(0x238);const _0x367349=_0x2030b1;it(_0x44bce7(0x1e1)+'cessfully\x20'+'initiate\x20f'+_0x44bce7(0x1e8)+'is',async()=>{const _0x5df07a=_0x44bce7,_0xa6f5de={};_0xa6f5de[_0x5df07a(0x230)]='test-id',_0xa6f5de['status']=_0x5df07a(0x1dc);const _0x456d25=_0xa6f5de;mockAnalyzeFileSecurity[_0x5df07a(0x229)+_0x5df07a(0x216)](_0x456d25);const _0x1db524={};_0x1db524[_0x5df07a(0x209)+'t']=_0x5df07a(0x1d4),_0x1db524[_0x5df07a(0x215)]=_0x5df07a(0x20a);const _0x170dd3=await _0x3ae245[_0x5df07a(0x1f0)+_0x5df07a(0x239)](_0x1db524),_0x1c0c01={};_0x1c0c01[_0x5df07a(0x209)+'t']=_0x5df07a(0x1d4),_0x1c0c01[_0x5df07a(0x215)]=_0x5df07a(0x20a),expect(mockAnalyzeFileSecurity)[_0x5df07a(0x220)+'CalledWith'](_0x1c0c01),expect(_0x170dd3['structured'+'Content'][_0x5df07a(0x230)])['toBe'](_0x5df07a(0x21a));}),it(_0x44bce7(0x1fe)+_0x44bce7(0x1fb)+_0x44bce7(0x23a)+'y',async()=>{const _0x3594b5=_0x44bce7;mockAnalyzeFileSecurity['mockReject'+_0x3594b5(0x216)](new Error(_0x367349['wWPis']));const _0x3a33e2={};_0x3a33e2[_0x3594b5(0x209)+'t']=_0x3594b5(0x1d4),_0x3a33e2[_0x3594b5(0x215)]=_0x3594b5(0x20a);const _0x3ba522=await _0x3ae245['analyzeFil'+_0x3594b5(0x239)](_0x3a33e2);expect(_0x3ba522[_0x3594b5(0x213)+_0x3594b5(0x1f3)][_0x3594b5(0x22c)])[_0x3594b5(0x1ea)](_0x3594b5(0x1fd)+_0x3594b5(0x238));});}),it(_0x39965b(0x1fe)+_0x39965b(0x1ef)+_0x39965b(0x214)+'nt',async()=>{const _0x178cb1=_0x39965b;mockAnalyzeFileSecurity[_0x178cb1(0x1da)+'edValue'](new Error(_0x178cb1(0x21d)+'nt\x20cannot\x20'+_0x178cb1(0x21c)));const _0xb22cc5={};_0xb22cc5[_0x178cb1(0x209)+'t']='',_0xb22cc5[_0x178cb1(0x215)]=_0x178cb1(0x20a);const _0x30e4d4=await _0x3ae245[_0x178cb1(0x1f0)+_0x178cb1(0x239)](_0xb22cc5);expect(_0x30e4d4[_0x178cb1(0x213)+_0x178cb1(0x1f3)][_0x178cb1(0x22c)])[_0x178cb1(0x221)]('File\x20conte'+'nt\x20cannot\x20'+'be\x20empty');}),describe(_0x39965b(0x1f0)+_0x39965b(0x237),()=>{const _0xaede85=_0x39965b;it(_0xaede85(0x1e1)+_0xaede85(0x222)+_0xaede85(0x234)+_0xaede85(0x1ff)+_0xaede85(0x22f),async()=>{const _0x719383=_0xaede85,_0x2bcff5={};_0x2bcff5[_0x719383(0x230)]='test-id',_0x2bcff5[_0x719383(0x212)]=_0x719383(0x1dc);const _0x3e59cf=_0x2bcff5;mockAnalyzeMultipleFilesFromPaths[_0x719383(0x229)+_0x719383(0x216)](_0x3e59cf);const _0x2d20ce={};_0x2d20ce[_0x719383(0x1ee)]=['/path/to/f'+'ile1',_0x719383(0x1f4)+'ile2'];const _0x32be72=await _0x3ae245[_0x719383(0x1f0)+_0x719383(0x237)](_0x2d20ce);expect(mockAnalyzeMultipleFilesFromPaths)['toHaveBeen'+_0x719383(0x1de)]([_0x719383(0x1f4)+'ile1','/path/to/f'+_0x719383(0x1e9)],undefined),expect(_0x32be72[_0x719383(0x213)+'Content'][_0x719383(0x230)])[_0x719383(0x1ea)](_0x719383(0x21a)),expect(_0x32be72[_0x719383(0x213)+'Content'][_0x719383(0x1e6)+_0x719383(0x1e4)])[_0x719383(0x1ea)](0x2);}),it('should\x20ret'+_0xaede85(0x1d8)+'if\x20no\x20file'+_0xaede85(0x1d7),async()=>{const _0x460e22=_0xaede85,_0xcfa299={};_0xcfa299[_0x460e22(0x1ee)]=[];const _0x47e88e=await _0x3ae245[_0x460e22(0x1f0)+_0x460e22(0x237)](_0xcfa299);expect(_0x47e88e[_0x460e22(0x213)+_0x460e22(0x1f3)][_0x460e22(0x22c)])['toBe']('File\x20paths'+_0x460e22(0x208)+_0x460e22(0x1e3)),expect(mockAnalyzeMultipleFilesFromPaths)[_0x460e22(0x1d9)]['toHaveBeen'+_0x460e22(0x223)]();});}),describe(_0x39965b(0x224)+_0x39965b(0x218),()=>{const _0x45e7ad=_0x39965b,_0x4666dc={'mDXyD':function(_0x4b43df,_0x4cf6f0){return _0x4b43df(_0x4cf6f0);},'wIpIL':function(_0x53ea56,_0x2dc3f7){return _0x53ea56(_0x2dc3f7);}};it(_0x45e7ad(0x1e1)+_0x45e7ad(0x222)+'initiate\x20f'+_0x45e7ad(0x20f)+_0x45e7ad(0x236),async()=>{const _0x42f3c9=_0x45e7ad,_0x51530e={};_0x51530e['analysisId']=_0x42f3c9(0x21a),_0x51530e['status']=_0x42f3c9(0x1dc),_0x51530e[_0x42f3c9(0x1f1)+_0x42f3c9(0x211)]=[];const _0x224a08=_0x51530e;mockAnalyzeFolder[_0x42f3c9(0x229)+_0x42f3c9(0x216)](_0x224a08);const _0x3b966a={};_0x3b966a[_0x42f3c9(0x207)]=_0x42f3c9(0x1f4)+_0x42f3c9(0x20c);const _0x1fb00c=await _0x3ae245['analyzeFol'+'derSast'](_0x3b966a);expect(mockAnalyzeFolder)['toHaveBeen'+_0x42f3c9(0x1de)]('/path/to/f'+_0x42f3c9(0x20c),undefined),expect(_0x1fb00c['structured'+_0x42f3c9(0x1f3)][_0x42f3c9(0x230)])[_0x42f3c9(0x1ea)]('test-id');}),it(_0x45e7ad(0x20d)+_0x45e7ad(0x1d8)+_0x45e7ad(0x21e)+'path\x20missi'+'ng',async()=>{const _0x4521cf=_0x45e7ad,_0x3c2f7d={};_0x3c2f7d[_0x4521cf(0x207)]='';const _0x342439=await _0x3ae245[_0x4521cf(0x224)+_0x4521cf(0x218)](_0x3c2f7d);_0x4666dc['mDXyD'](expect,_0x342439[_0x4521cf(0x213)+'Content'][_0x4521cf(0x22c)])[_0x4521cf(0x1ea)](_0x4521cf(0x1f9)+_0x4521cf(0x20e)+_0x4521cf(0x22e)),_0x4666dc[_0x4521cf(0x1e2)](expect,mockAnalyzeFolder)[_0x4521cf(0x1d9)][_0x4521cf(0x220)+'Called']();});}),describe(_0xb4f208[_0x39965b(0x233)],()=>{const _0xd98a71=_0x39965b;it(_0xd98a71(0x1e1)+_0xd98a71(0x222)+_0xd98a71(0x228)+_0xd98a71(0x22d)+'s',async()=>{const _0x415da9=_0xd98a71,_0x123bae={};_0x123bae[_0x415da9(0x230)]=_0x415da9(0x21a),_0x123bae[_0x415da9(0x212)]=_0x415da9(0x1dc);const _0x296fac=_0x123bae;mockAnalyzeZipFile[_0x415da9(0x229)+_0x415da9(0x216)](_0x296fac);const _0x1e9113={};_0x1e9113[_0x415da9(0x22b)+'h']=_0xb4f208[_0x415da9(0x203)];const _0x24667a=await _0x3ae245[_0x415da9(0x1db)+'Sast'](_0x1e9113);expect(mockAnalyzeZipFile)[_0x415da9(0x220)+'CalledWith'](_0x415da9(0x1f4)+'ile.zip',undefined),expect(_0x24667a['structured'+_0x415da9(0x1f3)][_0x415da9(0x230)])['toBe']('test-id');}),it(_0xd98a71(0x20d)+_0xd98a71(0x1d8)+_0xd98a71(0x1fa)+_0xd98a71(0x1f8),async()=>{const _0x5ab082=_0xd98a71,_0x65a3b7={};_0x65a3b7['zipFilePat'+'h']='';const _0x269047=await _0x3ae245[_0x5ab082(0x1db)+'Sast'](_0x65a3b7);expect(_0x269047[_0x5ab082(0x213)+_0x5ab082(0x1f3)][_0x5ab082(0x22c)])[_0x5ab082(0x1ea)]('ZIP\x20file\x20p'+'ath\x20not\x20pr'+_0x5ab082(0x225)),expect(mockAnalyzeZipFile)['not'][_0x5ab082(0x220)+'Called']();}),it(_0xd98a71(0x1fe)+_0xd98a71(0x20b)+_0xd98a71(0x1dd),async()=>{const _0xe505d4=_0xd98a71;mockAnalyzeZipFile[_0xe505d4(0x1da)+_0xe505d4(0x216)](new Error(_0xe505d4(0x1df)+_0xe505d4(0x21b)));const _0x45895a={};_0x45895a['zipFilePat'+'h']='corrupt.zi'+'p';const _0x469718=await _0x3ae245[_0xe505d4(0x1db)+_0xe505d4(0x217)](_0x45895a);expect(_0x469718['structured'+_0xe505d4(0x1f3)][_0xe505d4(0x22c)])[_0xe505d4(0x221)](_0xe505d4(0x1df)+_0xe505d4(0x21b));});});});
1
+ const a13_0x2a444e=a13_0x1e6e;(function(_0x550e0f,_0x4af846){const _0x2a8c8b=a13_0x1e6e,_0x15150a=_0x550e0f();while(!![]){try{const _0x33c3b1=-parseInt(_0x2a8c8b(0x154))/0x1+parseInt(_0x2a8c8b(0x137))/0x2+parseInt(_0x2a8c8b(0x150))/0x3*(parseInt(_0x2a8c8b(0x146))/0x4)+-parseInt(_0x2a8c8b(0x152))/0x5*(-parseInt(_0x2a8c8b(0x122))/0x6)+parseInt(_0x2a8c8b(0x161))/0x7*(-parseInt(_0x2a8c8b(0x111))/0x8)+-parseInt(_0x2a8c8b(0x131))/0x9*(parseInt(_0x2a8c8b(0x132))/0xa)+parseInt(_0x2a8c8b(0x141))/0xb;if(_0x33c3b1===_0x4af846)break;else _0x15150a['push'](_0x15150a['shift']());}catch(_0x487b97){_0x15150a['push'](_0x15150a['shift']());}}}(a13_0x39ea,0xee0c1));const a13_0x845791=(function(){let _0x1f1c97=!![];return function(_0x5c7000,_0x588851){const _0x552f8d=_0x1f1c97?function(){const _0x81ae1d=a13_0x1e6e;if(_0x588851){const _0x53960d=_0x588851[_0x81ae1d(0x142)](_0x5c7000,arguments);return _0x588851=null,_0x53960d;}}:function(){};return _0x1f1c97=![],_0x552f8d;};}()),a13_0x1c9568=a13_0x845791(this,function(){const _0x19cb50=a13_0x1e6e,_0x457c30={};_0x457c30[_0x19cb50(0x16d)]=_0x19cb50(0x169)+'+$';const _0x127d52=_0x457c30;return a13_0x1c9568[_0x19cb50(0x170)]()[_0x19cb50(0x156)](_0x127d52['Eeuao'])['toString']()['constructo'+'r'](a13_0x1c9568)[_0x19cb50(0x156)](_0x19cb50(0x169)+'+$');});a13_0x1c9568();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSecurity=jest['fn'](),mockAnalyzeMultipleFilesFromPaths=jest['fn'](),mockAnalyzeFolder=jest['fn'](),mockAnalyzeZipFile=jest['fn']();jest[a13_0x2a444e(0x16f)+a13_0x2a444e(0x121)](a13_0x2a444e(0x11a)+a13_0x2a444e(0x124)+a13_0x2a444e(0x11b)+a13_0x2a444e(0x165),()=>({'AnalysisService':jest['fn']()['mockImplem'+'entation'](()=>({'analyzeFileSecurity':mockAnalyzeFileSecurity,'analyzeMultipleFilesFromPaths':mockAnalyzeMultipleFilesFromPaths,'analyzeFolder':mockAnalyzeFolder,'analyzeZipFile':mockAnalyzeZipFile}))})),jest[a13_0x2a444e(0x16f)+a13_0x2a444e(0x121)]('../../util'+a13_0x2a444e(0x12e)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const {SastController}=await import(a13_0x2a444e(0x127)+a13_0x2a444e(0x13a)+'s'),{AnalysisService}=await import('../../serv'+'ices/analy'+'sis.servic'+'e.js');function a13_0x1e6e(_0xfd13a4,_0x3307d4){_0xfd13a4=_0xfd13a4-0x110;const _0x4cbfb9=a13_0x39ea();let _0x1c9568=_0x4cbfb9[_0xfd13a4];return _0x1c9568;}function a13_0x39ea(){const _0x5dd8cd=['ZIP\x20file\x20p','initiate\x20f','fileConten','ided','32708478ydWxGb','apply','dle\x20errors','error','path\x20missi','1220412dXeUGJ','le\x20errors','initiate\x20z','should\x20han','h\x20not\x20prov','INIT','urn\x20error\x20','esSast','hFGBw','ile2','6bElCbC','Invalid\x20ZI','78205UtfJCR','toBe','1524455nzWaQv','Content','search','analysis','analysisId','folderPath','MLbmJ','ulti-file\x20','should\x20suc','clearAllMo','be\x20empty','CalledWith','mockReject','21VcBsZD','structured','toContain','EyOUR','e.js','ller','Called','P\x20file','(((.+)+)+)','eSast','should\x20ret','ygLuN','Eeuao','YxUYv','unstable_m','toString','OThDz','older\x20anal','toHaveBeen','File\x20conte','older','not','analyzeZip','ded','ile\x20analys','4429496XfYjCj','File\x20paths','ders','test-id','mockResolv','zipFilePat','file\x20conte','GGhTN','ysis','../../serv','sis.servic','/path/to/f','Analysis\x20f','Sast','unt','status','ockModule','90ugYyPL','derSast','ices/analy','if\x20no\x20file','edValue','../sast.co','\x20not\x20provi','ip\x20analysi','ile1','analyzeFil','test.java','dle\x20zip\x20fi','s/logger.j','analyzeFol','fileName','18HmtByf','3576530CgrloF','initiate\x20m','if\x20folder\x20','KDasy','code','2115088VWnxzI','skippedFol','cessfully\x20','ntroller.j','ile.zip','filePaths'];a13_0x39ea=function(){return _0x5dd8cd;};return a13_0x39ea();}describe('SastContro'+a13_0x2a444e(0x166),()=>{const _0x3ea69f=a13_0x2a444e,_0x7169e7={'MLbmJ':function(_0x1c2c34,_0x593f54,_0x49ffc4){return _0x1c2c34(_0x593f54,_0x49ffc4);},'GGhTN':'/path/to/f'+'older','ygLuN':_0x3ea69f(0x151)+_0x3ea69f(0x168),'hFGBw':function(_0x3b447a,_0x1761ad,_0x1265d4){return _0x3b447a(_0x1761ad,_0x1265d4);}};let _0x5b139e,_0x31ac43;beforeEach(()=>{const _0x494aff=_0x3ea69f;jest[_0x494aff(0x15d)+'cks'](),_0x31ac43=new AnalysisService(),_0x5b139e=new SastController(_0x31ac43);}),describe(_0x3ea69f(0x12b)+_0x3ea69f(0x16a),()=>{const _0x3faba0=_0x3ea69f,_0xa04e24={};_0xa04e24[_0x3faba0(0x164)]='code';const _0x46ab32=_0xa04e24;_0x7169e7[_0x3faba0(0x15a)](it,_0x3faba0(0x15c)+_0x3faba0(0x139)+'initiate\x20f'+_0x3faba0(0x110)+'is',async()=>{const _0x58bc87=_0x3faba0,_0x3c3186={};_0x3c3186[_0x58bc87(0x158)]=_0x58bc87(0x114),_0x3c3186['status']='INIT';const _0x54a5ab=_0x3c3186;mockAnalyzeFileSecurity[_0x58bc87(0x115)+_0x58bc87(0x126)](_0x54a5ab);const _0x1934a4={};_0x1934a4[_0x58bc87(0x13f)+'t']=_0x58bc87(0x136),_0x1934a4['fileName']=_0x58bc87(0x12c);const _0xa712b2=await _0x5b139e['analyzeFil'+_0x58bc87(0x16a)](_0x1934a4),_0x285bd4={};_0x285bd4[_0x58bc87(0x13f)+'t']=_0x46ab32[_0x58bc87(0x164)],_0x285bd4['fileName']=_0x58bc87(0x12c),expect(mockAnalyzeFileSecurity)['toHaveBeen'+_0x58bc87(0x15f)](_0x285bd4),expect(_0xa712b2[_0x58bc87(0x162)+'Content'][_0x58bc87(0x158)])['toBe']('test-id');}),it('should\x20han'+_0x3faba0(0x143)+'\x20gracefull'+'y',async()=>{const _0x331e52=_0x3faba0;mockAnalyzeFileSecurity[_0x331e52(0x160)+_0x331e52(0x126)](new Error(_0x331e52(0x11d)+'ailed'));const _0x1b08db={};_0x1b08db[_0x331e52(0x13f)+'t']='code',_0x1b08db[_0x331e52(0x130)]='test.java';const _0x2bd865=await _0x5b139e['analyzeFil'+'eSast'](_0x1b08db);expect(_0x2bd865[_0x331e52(0x162)+_0x331e52(0x155)][_0x331e52(0x144)])[_0x331e52(0x153)](_0x331e52(0x11d)+'ailed');});}),it(_0x3ea69f(0x149)+'dle\x20empty\x20'+_0x3ea69f(0x117)+'nt',async()=>{const _0x10b1eb=_0x3ea69f;mockAnalyzeFileSecurity[_0x10b1eb(0x160)+_0x10b1eb(0x126)](new Error(_0x10b1eb(0x174)+'nt\x20cannot\x20'+_0x10b1eb(0x15e)));const _0x110ce4={};_0x110ce4[_0x10b1eb(0x13f)+'t']='',_0x110ce4[_0x10b1eb(0x130)]=_0x10b1eb(0x12c);const _0x3b6299=await _0x5b139e[_0x10b1eb(0x12b)+'eSast'](_0x110ce4);expect(_0x3b6299[_0x10b1eb(0x162)+_0x10b1eb(0x155)][_0x10b1eb(0x144)])['toContain'](_0x10b1eb(0x174)+'nt\x20cannot\x20'+_0x10b1eb(0x15e));}),describe(_0x3ea69f(0x12b)+_0x3ea69f(0x14d),()=>{const _0x3104a6=_0x3ea69f,_0x2012e9={};_0x2012e9[_0x3104a6(0x171)]='test-id',_0x2012e9[_0x3104a6(0x16e)]=_0x3104a6(0x11c)+_0x3104a6(0x14f);const _0xaed391=_0x2012e9;it(_0x3104a6(0x15c)+'cessfully\x20'+_0x3104a6(0x133)+_0x3104a6(0x15b)+_0x3104a6(0x157),async()=>{const _0x644a80=_0x3104a6,_0x1b5bce={};_0x1b5bce[_0x644a80(0x158)]=_0xaed391[_0x644a80(0x171)],_0x1b5bce[_0x644a80(0x120)]='INIT';const _0x3c6028=_0x1b5bce;mockAnalyzeMultipleFilesFromPaths[_0x644a80(0x115)+_0x644a80(0x126)](_0x3c6028);const _0x495367={};_0x495367[_0x644a80(0x13c)]=[_0x644a80(0x11c)+_0x644a80(0x12a),_0xaed391[_0x644a80(0x16e)]];const _0x264639=await _0x5b139e[_0x644a80(0x12b)+_0x644a80(0x14d)](_0x495367);expect(mockAnalyzeMultipleFilesFromPaths)[_0x644a80(0x173)+_0x644a80(0x15f)]([_0x644a80(0x11c)+_0x644a80(0x12a),_0x644a80(0x11c)+_0x644a80(0x14f)],undefined),expect(_0x264639['structured'+'Content'][_0x644a80(0x158)])[_0x644a80(0x153)](_0xaed391[_0x644a80(0x171)]),expect(_0x264639['structured'+_0x644a80(0x155)]['filePathCo'+_0x644a80(0x11f)])[_0x644a80(0x153)](0x2);}),it(_0x3104a6(0x16b)+_0x3104a6(0x14c)+_0x3104a6(0x125)+'s\x20provided',async()=>{const _0x45ffbd=_0x3104a6,_0x1e1905={};_0x1e1905[_0x45ffbd(0x13c)]=[];const _0x4e70ad=await _0x5b139e[_0x45ffbd(0x12b)+'esSast'](_0x1e1905);expect(_0x4e70ad[_0x45ffbd(0x162)+'Content'][_0x45ffbd(0x144)])[_0x45ffbd(0x153)](_0x45ffbd(0x112)+_0x45ffbd(0x128)+_0x45ffbd(0x178)),expect(mockAnalyzeMultipleFilesFromPaths)[_0x45ffbd(0x176)]['toHaveBeen'+_0x45ffbd(0x167)]();});}),describe(_0x3ea69f(0x12f)+_0x3ea69f(0x123),()=>{const _0x25e4dc=_0x3ea69f;it(_0x25e4dc(0x15c)+_0x25e4dc(0x139)+_0x25e4dc(0x13e)+_0x25e4dc(0x172)+_0x25e4dc(0x119),async()=>{const _0xd7154f=_0x25e4dc,_0x997df4={};_0x997df4[_0xd7154f(0x158)]='test-id',_0x997df4['status']=_0xd7154f(0x14b),_0x997df4[_0xd7154f(0x138)+_0xd7154f(0x113)]=[];const _0x1bfb41=_0x997df4;mockAnalyzeFolder[_0xd7154f(0x115)+'edValue'](_0x1bfb41);const _0x573c8d={};_0x573c8d[_0xd7154f(0x159)]=_0x7169e7[_0xd7154f(0x118)];const _0x2c3c82=await _0x5b139e[_0xd7154f(0x12f)+_0xd7154f(0x123)](_0x573c8d);expect(mockAnalyzeFolder)[_0xd7154f(0x173)+_0xd7154f(0x15f)](_0xd7154f(0x11c)+_0xd7154f(0x175),undefined),expect(_0x2c3c82[_0xd7154f(0x162)+_0xd7154f(0x155)][_0xd7154f(0x158)])[_0xd7154f(0x153)](_0xd7154f(0x114));}),it(_0x25e4dc(0x16b)+_0x25e4dc(0x14c)+_0x25e4dc(0x134)+_0x25e4dc(0x145)+'ng',async()=>{const _0x51a5f4=_0x25e4dc,_0xa4954c={};_0xa4954c['folderPath']='';const _0x56033d=await _0x5b139e[_0x51a5f4(0x12f)+_0x51a5f4(0x123)](_0xa4954c);expect(_0x56033d[_0x51a5f4(0x162)+_0x51a5f4(0x155)][_0x51a5f4(0x144)])[_0x51a5f4(0x153)]('Folder\x20pat'+_0x51a5f4(0x14a)+_0x51a5f4(0x140)),expect(mockAnalyzeFolder)[_0x51a5f4(0x176)][_0x51a5f4(0x173)+_0x51a5f4(0x167)]();});}),describe('analyzeZip'+_0x3ea69f(0x11e),()=>{const _0x23090b=_0x3ea69f,_0x4473ac={'KDasy':function(_0x1e4063,_0x2c06e0){return _0x1e4063(_0x2c06e0);}};it(_0x23090b(0x15c)+_0x23090b(0x139)+_0x23090b(0x148)+_0x23090b(0x129)+'s',async()=>{const _0x590bc7=_0x23090b,_0x5088d5={};_0x5088d5[_0x590bc7(0x158)]='test-id',_0x5088d5[_0x590bc7(0x120)]=_0x590bc7(0x14b);const _0x40b9f3=_0x5088d5;mockAnalyzeZipFile[_0x590bc7(0x115)+_0x590bc7(0x126)](_0x40b9f3);const _0x370422={};_0x370422[_0x590bc7(0x116)+'h']='/path/to/f'+'ile.zip';const _0x49e4e2=await _0x5b139e['analyzeZip'+'Sast'](_0x370422);expect(mockAnalyzeZipFile)[_0x590bc7(0x173)+_0x590bc7(0x15f)]('/path/to/f'+_0x590bc7(0x13b),undefined),_0x4473ac[_0x590bc7(0x135)](expect,_0x49e4e2['structured'+'Content'][_0x590bc7(0x158)])[_0x590bc7(0x153)](_0x590bc7(0x114));}),_0x7169e7[_0x23090b(0x14e)](it,_0x23090b(0x16b)+_0x23090b(0x14c)+'if\x20zip\x20pat'+'h\x20missing',async()=>{const _0x2ff89a=_0x23090b,_0x4ba890={};_0x4ba890[_0x2ff89a(0x116)+'h']='';const _0x285ce9=await _0x5b139e[_0x2ff89a(0x177)+_0x2ff89a(0x11e)](_0x4ba890);expect(_0x285ce9[_0x2ff89a(0x162)+_0x2ff89a(0x155)]['error'])[_0x2ff89a(0x153)](_0x2ff89a(0x13d)+'ath\x20not\x20pr'+'ovided'),expect(mockAnalyzeZipFile)[_0x2ff89a(0x176)][_0x2ff89a(0x173)+'Called']();}),it(_0x23090b(0x149)+_0x23090b(0x12d)+_0x23090b(0x147),async()=>{const _0x2d0e16=_0x23090b;mockAnalyzeZipFile['mockReject'+'edValue'](new Error(_0x2d0e16(0x151)+'P\x20file'));const _0xb38093={};_0xb38093[_0x2d0e16(0x116)+'h']='corrupt.zi'+'p';const _0x24285d=await _0x5b139e['analyzeZip'+_0x2d0e16(0x11e)](_0xb38093);expect(_0x24285d['structured'+_0x2d0e16(0x155)][_0x2d0e16(0x144)])[_0x2d0e16(0x163)](_0x7169e7[_0x2d0e16(0x16c)]);});});});
@@ -1 +1 @@
1
- const a14_0x4d5002=a14_0x5821;(function(_0x247002,_0x1427be){const _0x4bd15e=a14_0x5821,_0x407cdd=_0x247002();while(!![]){try{const _0x299eba=-parseInt(_0x4bd15e(0x17c))/0x1+parseInt(_0x4bd15e(0x18a))/0x2*(parseInt(_0x4bd15e(0x1a8))/0x3)+parseInt(_0x4bd15e(0x181))/0x4+parseInt(_0x4bd15e(0x191))/0x5*(-parseInt(_0x4bd15e(0x1a2))/0x6)+parseInt(_0x4bd15e(0x19d))/0x7+-parseInt(_0x4bd15e(0x1ae))/0x8+-parseInt(_0x4bd15e(0x189))/0x9*(-parseInt(_0x4bd15e(0x1b5))/0xa);if(_0x299eba===_0x1427be)break;else _0x407cdd['push'](_0x407cdd['shift']());}catch(_0x4ca520){_0x407cdd['push'](_0x407cdd['shift']());}}}(a14_0x55e6,0x83362));const a14_0x39df18=(function(){let _0x1af6d8=!![];return function(_0x3329d3,_0x172de0){const _0x1ca4cb=_0x1af6d8?function(){const _0x7b269d=a14_0x5821;if(_0x172de0){const _0x3db581=_0x172de0[_0x7b269d(0x179)](_0x3329d3,arguments);return _0x172de0=null,_0x3db581;}}:function(){};return _0x1af6d8=![],_0x1ca4cb;};}()),a14_0x518098=a14_0x39df18(this,function(){const _0x57813d=a14_0x5821;return a14_0x518098[_0x57813d(0x166)]()['search']('(((.+)+)+)'+'+$')[_0x57813d(0x166)]()['constructo'+'r'](a14_0x518098)[_0x57813d(0x1a0)](_0x57813d(0x197)+'+$');});a14_0x518098();function a14_0x55e6(){const _0x2b75c5=['2.json','analysisId','edValue','esSca','9vdMlrd','2VOYPxC','if\x20no\x20file','toBe','cks','not\x20provid','RhhPm','ockModule','4970qvnzRY','filePath','ided','if\x20folder\x20','../../serv','skippedFol','(((.+)+)+)','/path/to/p','SCA','sis.servic','ANLnJ','ovided','2653868ZJWfTP','mockResolv','clearAllMo','search','unstable_m','2682ZovujH','ders','urn\x20error\x20','h\x20not\x20prov','should\x20suc','../../util','451191RKgXbL','derSca','ile\x20analys','UXFIK','rCKoW','s/logger.j','7632120feblRp','ile.zip','initiate\x20m','ackage.jso','e.js','analyzeZip','troller.js','7746370lyujIs','\x20not\x20provi','folderPath','should\x20ret','initiate\x20f','toHaveBeen','INIT','zipFilePat','XPDdD','eSca','toString','ices/analy','if\x20zip\x20pat','analyzeFil','cessfully\x20','1.json','ysis','h\x20missing','CalledWith','Sca','path\x20missi','Content','status','test-id','initiate\x20z','Folder\x20pat','analysisTy','not','ulti-file\x20','apply','structured','analyzeFol','402965Siwllo','wXiuX','../sca.con','entation','error','4138328OpzOxs','/path/to/f','older\x20anal','Called'];a14_0x55e6=function(){return _0x2b75c5;};return a14_0x55e6();}function a14_0x5821(_0x150291,_0x556018){_0x150291=_0x150291-0x161;const _0x165057=a14_0x55e6();let _0x518098=_0x165057[_0x150291];return _0x518098;}import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSca=jest['fn'](),mockAnalyzeFilesSca=jest['fn'](),mockAnalyzeFolderSca=jest['fn'](),mockAnalyzeZipSca=jest['fn']();jest[a14_0x4d5002(0x1a1)+a14_0x4d5002(0x190)](a14_0x4d5002(0x195)+a14_0x4d5002(0x167)+a14_0x4d5002(0x19a)+a14_0x4d5002(0x1b2),()=>({'AnalysisService':jest['fn']()['mockImplem'+a14_0x4d5002(0x17f)](()=>({'analyzeFileSca':mockAnalyzeFileSca,'analyzeFilesSca':mockAnalyzeFilesSca,'analyzeFolderSca':mockAnalyzeFolderSca,'analyzeZipSca':mockAnalyzeZipSca}))})),jest[a14_0x4d5002(0x1a1)+a14_0x4d5002(0x190)](a14_0x4d5002(0x1a7)+a14_0x4d5002(0x1ad)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {ScaController}=await import(a14_0x4d5002(0x17e)+a14_0x4d5002(0x1b4)),{AnalysisService}=await import(a14_0x4d5002(0x195)+a14_0x4d5002(0x167)+a14_0x4d5002(0x19a)+a14_0x4d5002(0x1b2));describe('ScaControl'+'ler',()=>{const _0x10ef25=a14_0x4d5002,_0x2f4d86={'XPDdD':'/path/to/p'+'ackage.jso'+'n','ANLnJ':function(_0x2dc103,_0x12472d){return _0x2dc103(_0x12472d);},'LlOpr':function(_0x4f9edc,_0x5a7848){return _0x4f9edc(_0x5a7848);},'wXiuX':function(_0x27b165,_0x1bf1ba){return _0x27b165(_0x1bf1ba);},'UXFIK':_0x10ef25(0x175)+_0x10ef25(0x1a5)+_0x10ef25(0x193)};let _0x57a791,_0x273ef6;beforeEach(()=>{const _0x5aa577=_0x10ef25;jest[_0x5aa577(0x19f)+_0x5aa577(0x18d)](),_0x273ef6=new AnalysisService(),_0x57a791=new ScaController(_0x273ef6);}),describe(_0x10ef25(0x169)+'eSca',()=>{const _0x2a0a21=_0x10ef25;it(_0x2a0a21(0x1a6)+_0x2a0a21(0x16a)+_0x2a0a21(0x1b9)+_0x2a0a21(0x1aa)+'is',async()=>{const _0x2c84b6=_0x2a0a21,_0x195ee3={};_0x195ee3[_0x2c84b6(0x186)]='test-id',_0x195ee3[_0x2c84b6(0x172)]=_0x2c84b6(0x162),_0x195ee3['analysisTy'+'pe']='SCA';const _0x250427=_0x195ee3;mockAnalyzeFileSca[_0x2c84b6(0x19e)+_0x2c84b6(0x187)](_0x250427);const _0x33ce4e={};_0x33ce4e['filePath']=_0x2c84b6(0x198)+_0x2c84b6(0x1b1)+'n';const _0xc59c06=await _0x57a791[_0x2c84b6(0x169)+_0x2c84b6(0x165)](_0x33ce4e);expect(mockAnalyzeFileSca)[_0x2c84b6(0x161)+_0x2c84b6(0x16e)](_0x2f4d86[_0x2c84b6(0x164)],undefined),expect(_0xc59c06[_0x2c84b6(0x17a)+_0x2c84b6(0x171)][_0x2c84b6(0x186)])[_0x2c84b6(0x18c)]('test-id');}),it(_0x2a0a21(0x1b8)+_0x2a0a21(0x1a4)+'if\x20file\x20pa'+'th\x20missing',async()=>{const _0xbf3c5f=_0x2a0a21,_0x50f699={};_0x50f699[_0xbf3c5f(0x192)]='';const _0x4a5a6e=await _0x57a791[_0xbf3c5f(0x169)+_0xbf3c5f(0x165)](_0x50f699);_0x2f4d86[_0xbf3c5f(0x19b)](expect,_0x4a5a6e[_0xbf3c5f(0x17a)+'Content']['error'])[_0xbf3c5f(0x18c)]('File\x20path\x20'+_0xbf3c5f(0x18e)+'ed'),expect(mockAnalyzeFileSca)['not']['toHaveBeen'+_0xbf3c5f(0x184)]();});}),describe(_0x10ef25(0x169)+_0x10ef25(0x188),()=>{const _0x4f22ce=_0x10ef25,_0x2b7486={'RhhPm':function(_0x3a8de6,_0xf284c9){return _0x2f4d86['LlOpr'](_0x3a8de6,_0xf284c9);},'rCKoW':function(_0x5c28b7,_0x372df8){const _0x59e16a=a14_0x5821;return _0x2f4d86[_0x59e16a(0x19b)](_0x5c28b7,_0x372df8);}};it(_0x4f22ce(0x1a6)+_0x4f22ce(0x16a)+_0x4f22ce(0x1b0)+_0x4f22ce(0x178)+'analysis',async()=>{const _0x4c431b=_0x4f22ce,_0x192890={};_0x192890[_0x4c431b(0x186)]='test-id',_0x192890[_0x4c431b(0x172)]=_0x4c431b(0x162),_0x192890[_0x4c431b(0x176)+'pe']=_0x4c431b(0x199);const _0x286efa=_0x192890;mockAnalyzeFilesSca['mockResolv'+'edValue'](_0x286efa);const _0x1b598e={};_0x1b598e['filePaths']=[_0x4c431b(0x198)+'1.json',_0x4c431b(0x198)+_0x4c431b(0x185)];const _0x2f86fb=await _0x57a791['analyzeFil'+_0x4c431b(0x188)](_0x1b598e);_0x2b7486['RhhPm'](expect,mockAnalyzeFilesSca)[_0x4c431b(0x161)+_0x4c431b(0x16e)]([_0x4c431b(0x198)+_0x4c431b(0x16b),_0x4c431b(0x198)+_0x4c431b(0x185)],undefined),_0x2b7486[_0x4c431b(0x18f)](expect,_0x2f86fb[_0x4c431b(0x17a)+_0x4c431b(0x171)]['analysisId'])[_0x4c431b(0x18c)](_0x4c431b(0x173));}),it(_0x4f22ce(0x1b8)+_0x4f22ce(0x1a4)+_0x4f22ce(0x18b)+'s\x20provided',async()=>{const _0x1e96af=_0x4f22ce,_0x20aeb0={};_0x20aeb0['filePaths']=[];const _0x1829cc=await _0x57a791[_0x1e96af(0x169)+_0x1e96af(0x188)](_0x20aeb0);expect(_0x1829cc[_0x1e96af(0x17a)+_0x1e96af(0x171)]['error'])[_0x1e96af(0x18c)]('File\x20paths'+_0x1e96af(0x1b6)+'ded'),_0x2b7486[_0x1e96af(0x1ac)](expect,mockAnalyzeFilesSca)[_0x1e96af(0x177)][_0x1e96af(0x161)+_0x1e96af(0x184)]();});}),describe(_0x10ef25(0x17b)+_0x10ef25(0x1a9),()=>{const _0x18e511=_0x10ef25;it(_0x18e511(0x1a6)+'cessfully\x20'+_0x18e511(0x1b9)+_0x18e511(0x183)+_0x18e511(0x16c),async()=>{const _0x39c288=_0x18e511,_0x431f41={};_0x431f41[_0x39c288(0x186)]=_0x39c288(0x173),_0x431f41[_0x39c288(0x172)]=_0x39c288(0x162),_0x431f41['analysisTy'+'pe']=_0x39c288(0x199),_0x431f41[_0x39c288(0x196)+_0x39c288(0x1a3)]=[];const _0x5c3be0=_0x431f41;mockAnalyzeFolderSca['mockResolv'+_0x39c288(0x187)](_0x5c3be0);const _0x220b02={};_0x220b02[_0x39c288(0x1b7)]=_0x39c288(0x182)+'older';const _0x2dcc0d=await _0x57a791[_0x39c288(0x17b)+_0x39c288(0x1a9)](_0x220b02);expect(mockAnalyzeFolderSca)['toHaveBeen'+'CalledWith'](_0x39c288(0x182)+'older',undefined),expect(_0x2dcc0d[_0x39c288(0x17a)+_0x39c288(0x171)][_0x39c288(0x186)])[_0x39c288(0x18c)](_0x39c288(0x173));}),it(_0x18e511(0x1b8)+_0x18e511(0x1a4)+_0x18e511(0x194)+_0x18e511(0x170)+'ng',async()=>{const _0x49f7f3=_0x18e511,_0x3a51ac={};_0x3a51ac[_0x49f7f3(0x1b7)]='';const _0x5b2f7d=await _0x57a791['analyzeFol'+_0x49f7f3(0x1a9)](_0x3a51ac);_0x2f4d86[_0x49f7f3(0x17d)](expect,_0x5b2f7d['structured'+'Content'][_0x49f7f3(0x180)])[_0x49f7f3(0x18c)](_0x2f4d86[_0x49f7f3(0x1ab)]),expect(mockAnalyzeFolderSca)[_0x49f7f3(0x177)]['toHaveBeen'+'Called']();});}),describe('analyzeZip'+'Sca',()=>{const _0x1823ce=_0x10ef25;it(_0x1823ce(0x1a6)+_0x1823ce(0x16a)+_0x1823ce(0x174)+'ip\x20analysi'+'s',async()=>{const _0x7cbb25=_0x1823ce,_0x49f539={};_0x49f539['analysisId']=_0x7cbb25(0x173),_0x49f539['status']=_0x7cbb25(0x162),_0x49f539[_0x7cbb25(0x176)+'pe']=_0x7cbb25(0x199);const _0x23f19b=_0x49f539;mockAnalyzeZipSca['mockResolv'+'edValue'](_0x23f19b);const _0x4eedb2={};_0x4eedb2[_0x7cbb25(0x163)+'h']=_0x7cbb25(0x182)+_0x7cbb25(0x1af);const _0x536648=await _0x57a791[_0x7cbb25(0x1b3)+_0x7cbb25(0x16f)](_0x4eedb2);expect(mockAnalyzeZipSca)[_0x7cbb25(0x161)+_0x7cbb25(0x16e)](_0x7cbb25(0x182)+'ile.zip',undefined),expect(_0x536648[_0x7cbb25(0x17a)+_0x7cbb25(0x171)][_0x7cbb25(0x186)])[_0x7cbb25(0x18c)](_0x7cbb25(0x173));}),it(_0x1823ce(0x1b8)+_0x1823ce(0x1a4)+_0x1823ce(0x168)+_0x1823ce(0x16d),async()=>{const _0x319cac=_0x1823ce,_0x162a75={};_0x162a75[_0x319cac(0x163)+'h']='';const _0x352cee=await _0x57a791[_0x319cac(0x1b3)+'Sca'](_0x162a75);_0x2f4d86['wXiuX'](expect,_0x352cee[_0x319cac(0x17a)+_0x319cac(0x171)][_0x319cac(0x180)])[_0x319cac(0x18c)]('ZIP\x20file\x20p'+'ath\x20not\x20pr'+_0x319cac(0x19c)),expect(mockAnalyzeZipSca)[_0x319cac(0x177)]['toHaveBeen'+_0x319cac(0x184)]();});});});
1
+ const a14_0x4bf4de=a14_0x672c;function a14_0x5d9a(){const _0x26c8fa=['232AWpPtY','h\x20not\x20prov','BvYVP','if\x20zip\x20pat','554052zBxAYr','21WAublx','ler','analysisTy','ysis','WlPEW','Content','search','239076HnWcvS','cks','analyzeFil','filePaths','older','if\x20no\x20file','590442YKkWwI','INIT','ZIP\x20file\x20p','analyzeZip','File\x20path\x20','Folder\x20pat','sis.servic','ile\x20analys','mockResolv','zdfwP','derSca','error','ockModule','filePath','eSca','576490ATGDBT','should\x20suc','analyzeFol','e.js','Sca','should\x20ret','fliwP','2.json','Qjvzv','test-id','structured','folderPath','initiate\x20m','1.json','\x20not\x20provi','urn\x20error\x20','th\x20missing','187ySQCYM','zipFilePat','ath\x20not\x20pr','File\x20paths','mockImplem','entation','s\x20provided','analysisId','toBe','ovided','troller.js','h\x20missing','status','1454018MxDRVL','gujXz','toHaveBeen','1cFWSoK','/path/to/f','665565OrLkOa','69170jdIYCx','unstable_m','KSCwx','edValue','ices/analy','ip\x20analysi','initiate\x20z','not\x20provid','ile.zip','Called','cessfully\x20','esSca','404FccLvc','apply','/path/to/p','iZuKv','CalledWith','not','(((.+)+)+)','ded','ScaControl','SCA','../../serv','initiate\x20f'];a14_0x5d9a=function(){return _0x26c8fa;};return a14_0x5d9a();}(function(_0x246c4a,_0x4282c0){const _0x517afb=a14_0x672c,_0x33f68d=_0x246c4a();while(!![]){try{const _0x29462a=-parseInt(_0x517afb(0x20c))/0x1*(-parseInt(_0x517afb(0x209))/0x2)+parseInt(_0x517afb(0x20e))/0x3+-parseInt(_0x517afb(0x21b))/0x4*(-parseInt(_0x517afb(0x20f))/0x5)+parseInt(_0x517afb(0x1dc))/0x6*(parseInt(_0x517afb(0x22c))/0x7)+parseInt(_0x517afb(0x227))/0x8*(-parseInt(_0x517afb(0x233))/0x9)+parseInt(_0x517afb(0x1eb))/0xa*(-parseInt(_0x517afb(0x1fc))/0xb)+-parseInt(_0x517afb(0x22b))/0xc;if(_0x29462a===_0x4282c0)break;else _0x33f68d['push'](_0x33f68d['shift']());}catch(_0x3caec6){_0x33f68d['push'](_0x33f68d['shift']());}}}(a14_0x5d9a,0xce3d7));const a14_0xca7469=(function(){let _0x545fac=!![];return function(_0x20c4e9,_0x526686){const _0x5d10c9=_0x545fac?function(){const _0x3bf2cb=a14_0x672c;if(_0x526686){const _0x4c35c1=_0x526686[_0x3bf2cb(0x21c)](_0x20c4e9,arguments);return _0x526686=null,_0x4c35c1;}}:function(){};return _0x545fac=![],_0x5d10c9;};}()),a14_0x3a8b5=a14_0xca7469(this,function(){const _0x4e85b3=a14_0x672c;return a14_0x3a8b5['toString']()[_0x4e85b3(0x232)](_0x4e85b3(0x221)+'+$')['toString']()['constructo'+'r'](a14_0x3a8b5)[_0x4e85b3(0x232)](_0x4e85b3(0x221)+'+$');});a14_0x3a8b5();import{jest,describe,it,expect,beforeEach}from'@jest/globals';function a14_0x672c(_0x24762e,_0x549043){_0x24762e=_0x24762e-0x1d9;const _0xc6dae4=a14_0x5d9a();let _0x3a8b5=_0xc6dae4[_0x24762e];return _0x3a8b5;}const mockAnalyzeFileSca=jest['fn'](),mockAnalyzeFilesSca=jest['fn'](),mockAnalyzeFolderSca=jest['fn'](),mockAnalyzeZipSca=jest['fn']();jest[a14_0x4bf4de(0x210)+a14_0x4bf4de(0x1e8)]('../../serv'+a14_0x4bf4de(0x213)+a14_0x4bf4de(0x1e2)+'e.js',()=>({'AnalysisService':jest['fn']()[a14_0x4bf4de(0x200)+a14_0x4bf4de(0x201)](()=>({'analyzeFileSca':mockAnalyzeFileSca,'analyzeFilesSca':mockAnalyzeFilesSca,'analyzeFolderSca':mockAnalyzeFolderSca,'analyzeZipSca':mockAnalyzeZipSca}))})),jest['unstable_m'+a14_0x4bf4de(0x1e8)]('../../util'+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {ScaController}=await import('../sca.con'+a14_0x4bf4de(0x206)),{AnalysisService}=await import(a14_0x4bf4de(0x225)+a14_0x4bf4de(0x213)+a14_0x4bf4de(0x1e2)+a14_0x4bf4de(0x1ee));describe(a14_0x4bf4de(0x223)+a14_0x4bf4de(0x22d),()=>{const _0x3be7de=a14_0x4bf4de,_0x2e787d={'gujXz':_0x3be7de(0x21d)+'ackage.jso'+'n','iZuKv':_0x3be7de(0x1f0)+'urn\x20error\x20'+'if\x20file\x20pa'+_0x3be7de(0x1fb),'BvYVP':function(_0x5553a4,_0x2c0704,_0x25f135){return _0x5553a4(_0x2c0704,_0x25f135);},'Qjvzv':_0x3be7de(0x1ec)+_0x3be7de(0x219)+_0x3be7de(0x215)+_0x3be7de(0x214)+'s'};let _0x43e63b,_0x1d276d;beforeEach(()=>{const _0x4feda1=_0x3be7de;jest['clearAllMo'+_0x4feda1(0x234)](),_0x1d276d=new AnalysisService(),_0x43e63b=new ScaController(_0x1d276d);}),describe(_0x3be7de(0x235)+_0x3be7de(0x1ea),()=>{const _0x1ae679=_0x3be7de,_0x4abea1={};_0x4abea1[_0x1ae679(0x230)]=_0x2e787d[_0x1ae679(0x20a)];const _0x44dbf3=_0x4abea1;it(_0x1ae679(0x1ec)+'cessfully\x20'+_0x1ae679(0x226)+_0x1ae679(0x1e3)+'is',async()=>{const _0x2b06ab=_0x1ae679,_0x38922a={};_0x38922a['analysisId']=_0x2b06ab(0x1f4),_0x38922a[_0x2b06ab(0x208)]=_0x2b06ab(0x1dd),_0x38922a['analysisTy'+'pe']=_0x2b06ab(0x224);const _0x11af6a=_0x38922a;mockAnalyzeFileSca[_0x2b06ab(0x1e4)+_0x2b06ab(0x212)](_0x11af6a);const _0x1cf913={};_0x1cf913[_0x2b06ab(0x1e9)]=_0x44dbf3[_0x2b06ab(0x230)];const _0x522419=await _0x43e63b[_0x2b06ab(0x235)+'eSca'](_0x1cf913);expect(mockAnalyzeFileSca)[_0x2b06ab(0x20b)+_0x2b06ab(0x21f)](_0x2b06ab(0x21d)+'ackage.jso'+'n',undefined),expect(_0x522419['structured'+_0x2b06ab(0x231)][_0x2b06ab(0x203)])[_0x2b06ab(0x204)](_0x2b06ab(0x1f4));}),it(_0x2e787d[_0x1ae679(0x21e)],async()=>{const _0x3a78c5=_0x1ae679,_0x5183e0={};_0x5183e0[_0x3a78c5(0x1e9)]='';const _0x31a323=await _0x43e63b[_0x3a78c5(0x235)+_0x3a78c5(0x1ea)](_0x5183e0);expect(_0x31a323[_0x3a78c5(0x1f5)+'Content'][_0x3a78c5(0x1e7)])[_0x3a78c5(0x204)](_0x3a78c5(0x1e0)+_0x3a78c5(0x216)+'ed'),expect(mockAnalyzeFileSca)[_0x3a78c5(0x220)][_0x3a78c5(0x20b)+'Called']();});}),describe(_0x3be7de(0x235)+_0x3be7de(0x21a),()=>{const _0x41aee1=_0x3be7de,_0x47f86b={};_0x47f86b[_0x41aee1(0x211)]='test-id';const _0x228acc=_0x47f86b;it('should\x20suc'+_0x41aee1(0x219)+_0x41aee1(0x1f7)+'ulti-file\x20'+'analysis',async()=>{const _0xdfd6f=_0x41aee1,_0x4ad6fb={};_0x4ad6fb[_0xdfd6f(0x203)]=_0xdfd6f(0x1f4),_0x4ad6fb[_0xdfd6f(0x208)]=_0xdfd6f(0x1dd),_0x4ad6fb['analysisTy'+'pe']=_0xdfd6f(0x224);const _0x2446e7=_0x4ad6fb;mockAnalyzeFilesSca[_0xdfd6f(0x1e4)+_0xdfd6f(0x212)](_0x2446e7);const _0x210634={};_0x210634[_0xdfd6f(0x1d9)]=[_0xdfd6f(0x21d)+_0xdfd6f(0x1f8),_0xdfd6f(0x21d)+_0xdfd6f(0x1f2)];const _0x58d988=await _0x43e63b['analyzeFil'+_0xdfd6f(0x21a)](_0x210634);expect(mockAnalyzeFilesSca)['toHaveBeen'+'CalledWith'](['/path/to/p'+'1.json',_0xdfd6f(0x21d)+_0xdfd6f(0x1f2)],undefined),expect(_0x58d988[_0xdfd6f(0x1f5)+_0xdfd6f(0x231)][_0xdfd6f(0x203)])[_0xdfd6f(0x204)](_0x228acc[_0xdfd6f(0x211)]);}),_0x2e787d[_0x41aee1(0x229)](it,'should\x20ret'+'urn\x20error\x20'+_0x41aee1(0x1db)+_0x41aee1(0x202),async()=>{const _0x303f7b=_0x41aee1,_0x2ab001={};_0x2ab001[_0x303f7b(0x1d9)]=[];const _0x5a6bad=await _0x43e63b[_0x303f7b(0x235)+'esSca'](_0x2ab001);expect(_0x5a6bad[_0x303f7b(0x1f5)+'Content'][_0x303f7b(0x1e7)])[_0x303f7b(0x204)](_0x303f7b(0x1ff)+_0x303f7b(0x1f9)+_0x303f7b(0x222)),expect(mockAnalyzeFilesSca)[_0x303f7b(0x220)]['toHaveBeen'+'Called']();});}),describe(_0x3be7de(0x1ed)+_0x3be7de(0x1e6),()=>{const _0x2a42e9=_0x3be7de,_0x1728f2={};_0x1728f2[_0x2a42e9(0x1e5)]=_0x2a42e9(0x1e1)+_0x2a42e9(0x228)+'ided';const _0x5865a8=_0x1728f2;it('should\x20suc'+_0x2a42e9(0x219)+_0x2a42e9(0x226)+'older\x20anal'+_0x2a42e9(0x22f),async()=>{const _0x29b2ed=_0x2a42e9,_0x1d8d80={};_0x1d8d80[_0x29b2ed(0x203)]=_0x29b2ed(0x1f4),_0x1d8d80['status']=_0x29b2ed(0x1dd),_0x1d8d80['analysisTy'+'pe']=_0x29b2ed(0x224),_0x1d8d80['skippedFol'+'ders']=[];const _0x3c9cee=_0x1d8d80;mockAnalyzeFolderSca[_0x29b2ed(0x1e4)+_0x29b2ed(0x212)](_0x3c9cee);const _0x27877e={};_0x27877e[_0x29b2ed(0x1f6)]=_0x29b2ed(0x20d)+_0x29b2ed(0x1da);const _0x1ffa3d=await _0x43e63b[_0x29b2ed(0x1ed)+_0x29b2ed(0x1e6)](_0x27877e);expect(mockAnalyzeFolderSca)[_0x29b2ed(0x20b)+_0x29b2ed(0x21f)]('/path/to/f'+_0x29b2ed(0x1da),undefined),expect(_0x1ffa3d[_0x29b2ed(0x1f5)+'Content'][_0x29b2ed(0x203)])[_0x29b2ed(0x204)](_0x29b2ed(0x1f4));}),it(_0x2a42e9(0x1f0)+'urn\x20error\x20'+'if\x20folder\x20'+'path\x20missi'+'ng',async()=>{const _0x34d674=_0x2a42e9,_0x31faa0={};_0x31faa0[_0x34d674(0x1f6)]='';const _0x1fc704=await _0x43e63b[_0x34d674(0x1ed)+_0x34d674(0x1e6)](_0x31faa0);expect(_0x1fc704[_0x34d674(0x1f5)+_0x34d674(0x231)][_0x34d674(0x1e7)])[_0x34d674(0x204)](_0x5865a8['zdfwP']),expect(mockAnalyzeFolderSca)[_0x34d674(0x220)][_0x34d674(0x20b)+_0x34d674(0x218)]();});}),describe(_0x3be7de(0x1df)+_0x3be7de(0x1ef),()=>{const _0x2c103e=_0x3be7de,_0x39a2bd={};_0x39a2bd[_0x2c103e(0x1f1)]=_0x2c103e(0x20d)+'ile.zip';const _0x5ba902=_0x39a2bd;_0x2e787d[_0x2c103e(0x229)](it,_0x2e787d[_0x2c103e(0x1f3)],async()=>{const _0x44b7fe=_0x2c103e,_0x507516={};_0x507516[_0x44b7fe(0x203)]='test-id',_0x507516[_0x44b7fe(0x208)]=_0x44b7fe(0x1dd),_0x507516[_0x44b7fe(0x22e)+'pe']=_0x44b7fe(0x224);const _0x20b93c=_0x507516;mockAnalyzeZipSca[_0x44b7fe(0x1e4)+_0x44b7fe(0x212)](_0x20b93c);const _0xe613c9={};_0xe613c9[_0x44b7fe(0x1fd)+'h']=_0x5ba902['fliwP'];const _0x4e1818=await _0x43e63b[_0x44b7fe(0x1df)+'Sca'](_0xe613c9);expect(mockAnalyzeZipSca)[_0x44b7fe(0x20b)+_0x44b7fe(0x21f)](_0x44b7fe(0x20d)+_0x44b7fe(0x217),undefined),expect(_0x4e1818[_0x44b7fe(0x1f5)+'Content'][_0x44b7fe(0x203)])['toBe']('test-id');}),it('should\x20ret'+_0x2c103e(0x1fa)+_0x2c103e(0x22a)+_0x2c103e(0x207),async()=>{const _0x261337=_0x2c103e,_0x3f312c={};_0x3f312c[_0x261337(0x1fd)+'h']='';const _0x481670=await _0x43e63b[_0x261337(0x1df)+_0x261337(0x1ef)](_0x3f312c);expect(_0x481670[_0x261337(0x1f5)+_0x261337(0x231)][_0x261337(0x1e7)])[_0x261337(0x204)](_0x261337(0x1de)+_0x261337(0x1fe)+_0x261337(0x205)),expect(mockAnalyzeZipSca)[_0x261337(0x220)][_0x261337(0x20b)+_0x261337(0x218)]();});});});
@@ -1 +1 @@
1
- const a15_0x3692da=a15_0x2ade;(function(_0x30f61f,_0x244c8a){const _0x12bdf8=a15_0x2ade,_0x21e745=_0x30f61f();while(!![]){try{const _0x46ced8=parseInt(_0x12bdf8(0xa6))/0x1*(-parseInt(_0x12bdf8(0x8f))/0x2)+-parseInt(_0x12bdf8(0xa5))/0x3*(parseInt(_0x12bdf8(0xb4))/0x4)+parseInt(_0x12bdf8(0xa2))/0x5+parseInt(_0x12bdf8(0x81))/0x6*(parseInt(_0x12bdf8(0x9a))/0x7)+-parseInt(_0x12bdf8(0xb1))/0x8*(-parseInt(_0x12bdf8(0x89))/0x9)+parseInt(_0x12bdf8(0xb3))/0xa*(-parseInt(_0x12bdf8(0x9b))/0xb)+-parseInt(_0x12bdf8(0x94))/0xc*(-parseInt(_0x12bdf8(0x88))/0xd);if(_0x46ced8===_0x244c8a)break;else _0x21e745['push'](_0x21e745['shift']());}catch(_0x5c8011){_0x21e745['push'](_0x21e745['shift']());}}}(a15_0x1d54,0xa3377));const a15_0x5382ec=(function(){let _0x465a2e=!![];return function(_0x50bf08,_0x27dc8b){const _0x174101=_0x465a2e?function(){if(_0x27dc8b){const _0x24621c=_0x27dc8b['apply'](_0x50bf08,arguments);return _0x27dc8b=null,_0x24621c;}}:function(){};return _0x465a2e=![],_0x174101;};}()),a15_0x4377a1=a15_0x5382ec(this,function(){const _0x967cd5=a15_0x2ade;return a15_0x4377a1[_0x967cd5(0xba)]()[_0x967cd5(0x9f)]('(((.+)+)+)'+'+$')['toString']()[_0x967cd5(0xa3)+'r'](a15_0x4377a1)['search']('(((.+)+)+)'+'+$');});a15_0x4377a1();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGenerateSecureCodeFromAnalysis=jest['fn']();jest['unstable_m'+'ockModule'](a15_0x3692da(0x87)+'ices/analy'+'sis.servic'+a15_0x3692da(0x97),()=>({'AnalysisService':jest['fn']()[a15_0x3692da(0x8b)+a15_0x3692da(0x84)](()=>({'generateSecureCodeFromAnalysis':mockGenerateSecureCodeFromAnalysis}))})),jest[a15_0x3692da(0x96)+'ockModule'](a15_0x3692da(0x9d)+a15_0x3692da(0xa0)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));function a15_0x2ade(_0x28770a,_0x59ca61){_0x28770a=_0x28770a-0x7f;const _0x382ec9=a15_0x1d54();let _0x4377a1=_0x382ec9[_0x28770a];return _0x4377a1;}const {SecurityController}=await import('../securit'+'y.controll'+a15_0x3692da(0x99)),{AnalysisService}=await import(a15_0x3692da(0x87)+a15_0x3692da(0xaf)+a15_0x3692da(0x8c)+'e.js');function a15_0x1d54(){const _0x51baf8=['unstable_m','e.js','clearAllMo','er.js','7syydLN','440836mrlKCX','cureCode','../../util','diff','search','s/logger.j','toHaveBeen','3579315jeHLhA','constructo','ure','1133679fzZdOx','24801llnLDI','CalledWith','cks','dle\x20errors','test-id','should\x20ret','toBe','Generation','fileConten','ices/analy','toContain','16rjJLYm','secureCode','280FzddEu','8muyBBI','Secure\x20cod','analysisId','original\x20c','\x20failed','\x20code\x20and\x20','toString','edValue','generateSe','2401224yRprcZ','ode','ddEcZ','entation','tMqHp','should\x20han','../../serv','13RnteQQ','2935539xuZPBY','secure\x20cod','mockImplem','sis.servic','dle\x20LLM\x20se','mockResolv','42awOMtY','Brief','ntroller','structured','error','15586332IaxnAn','e\x20generati'];a15_0x1d54=function(){return _0x51baf8;};return a15_0x1d54();}describe('SecurityCo'+a15_0x3692da(0x91),()=>{const _0x3ac409=a15_0x3692da,_0x106d13={};_0x106d13[_0x3ac409(0x83)]=_0x3ac409(0xab)+'urn\x20secure'+_0x3ac409(0xb9)+_0x3ac409(0x9e);const _0x5b8a83=_0x106d13;let _0x55b87c,_0x175f11;beforeEach(()=>{const _0x5c7ad3=_0x3ac409;jest[_0x5c7ad3(0x98)+_0x5c7ad3(0xa8)](),_0x175f11=new AnalysisService(),_0x55b87c=new SecurityController(_0x175f11);}),describe('generateSe'+_0x3ac409(0x9c),()=>{const _0x27a54d=_0x3ac409,_0x3ad3b2={};_0x3ad3b2[_0x27a54d(0x85)]=_0x27a54d(0xaa);const _0x54a19d=_0x3ad3b2;it(_0x5b8a83['ddEcZ'],async()=>{const _0x980b98=_0x27a54d,_0x3fe750={};_0x3fe750[_0x980b98(0xb2)]=_0x980b98(0x8a)+'e',_0x3fe750[_0x980b98(0xb2)+_0x980b98(0x90)]='brief',_0x3fe750[_0x980b98(0x9e)]=_0x980b98(0x9e);const _0x116574=_0x3fe750;mockGenerateSecureCodeFromAnalysis[_0x980b98(0x8e)+_0x980b98(0x7f)](_0x116574);const _0x2ecbc8={};_0x2ecbc8['analysisId']='test-id',_0x2ecbc8['fileConten'+'t']=_0x980b98(0xb7)+_0x980b98(0x82);const _0x47aa40=await _0x55b87c[_0x980b98(0x80)+_0x980b98(0x9c)](_0x2ecbc8);expect(mockGenerateSecureCodeFromAnalysis)[_0x980b98(0xa1)+_0x980b98(0xa7)](_0x54a19d[_0x980b98(0x85)],_0x980b98(0xb7)+_0x980b98(0x82)),expect(_0x47aa40[_0x980b98(0x92)+'Content'][_0x980b98(0xb2)])[_0x980b98(0xac)](_0x980b98(0x8a)+'e'),expect(_0x47aa40['structured'+'Content'][_0x980b98(0x9e)])[_0x980b98(0xac)](_0x980b98(0x9e));}),it(_0x27a54d(0x86)+_0x27a54d(0xa9),async()=>{const _0x15da21=_0x27a54d;mockGenerateSecureCodeFromAnalysis['mockReject'+_0x15da21(0x7f)](new Error(_0x15da21(0xad)+_0x15da21(0xb8)));const _0x58a51e={};_0x58a51e[_0x15da21(0xb6)]='test-id',_0x58a51e[_0x15da21(0xae)+'t']='code';const _0x40896e=await _0x55b87c[_0x15da21(0x80)+'cureCode'](_0x58a51e);expect(_0x40896e[_0x15da21(0x92)+'Content']['error'])[_0x15da21(0xac)]('Generation'+_0x15da21(0xb8));});}),it(_0x3ac409(0x86)+_0x3ac409(0x8d)+'rvice\x20fail'+_0x3ac409(0xa4),async()=>{const _0x55bb26=_0x3ac409;mockGenerateSecureCodeFromAnalysis['mockReject'+_0x55bb26(0x7f)](new Error(_0x55bb26(0xb5)+_0x55bb26(0x95)+'on\x20failed'));const _0x4fd3da={};_0x4fd3da[_0x55bb26(0xb6)]=_0x55bb26(0xaa),_0x4fd3da[_0x55bb26(0xae)+'t']='code';const _0x456493=await _0x55b87c['generateSe'+_0x55bb26(0x9c)](_0x4fd3da);expect(_0x456493[_0x55bb26(0x92)+'Content'][_0x55bb26(0x93)])[_0x55bb26(0xb0)](_0x55bb26(0xb5)+_0x55bb26(0x95)+'on\x20failed');});});
1
+ const a15_0x5369fc=a15_0x1e59;(function(_0x5df242,_0x46db5c){const _0x4302f4=a15_0x1e59,_0x1e6d10=_0x5df242();while(!![]){try{const _0x3444d4=-parseInt(_0x4302f4(0x180))/0x1+-parseInt(_0x4302f4(0x16b))/0x2+parseInt(_0x4302f4(0x161))/0x3+-parseInt(_0x4302f4(0x193))/0x4*(-parseInt(_0x4302f4(0x196))/0x5)+parseInt(_0x4302f4(0x171))/0x6+parseInt(_0x4302f4(0x184))/0x7+-parseInt(_0x4302f4(0x167))/0x8;if(_0x3444d4===_0x46db5c)break;else _0x1e6d10['push'](_0x1e6d10['shift']());}catch(_0x192f34){_0x1e6d10['push'](_0x1e6d10['shift']());}}}(a15_0x52e3,0x31a5f));const a15_0x1abe7e=(function(){let _0x1db766=!![];return function(_0x600d13,_0x282f4c){const _0x177e92=_0x1db766?function(){const _0x1225cd=a15_0x1e59;if(_0x282f4c){const _0x24a9a6=_0x282f4c[_0x1225cd(0x16e)](_0x600d13,arguments);return _0x282f4c=null,_0x24a9a6;}}:function(){};return _0x1db766=![],_0x177e92;};}()),a15_0x341d70=a15_0x1abe7e(this,function(){const _0x1b70ee=a15_0x1e59;return a15_0x341d70['toString']()['search'](_0x1b70ee(0x169)+'+$')[_0x1b70ee(0x181)]()[_0x1b70ee(0x15f)+'r'](a15_0x341d70)[_0x1b70ee(0x17c)](_0x1b70ee(0x169)+'+$');});a15_0x341d70();import{jest,describe,it,expect,beforeEach}from'@jest/globals';function a15_0x1e59(_0x18d6fd,_0x5bcacf){_0x18d6fd=_0x18d6fd-0x15c;const _0x2fb582=a15_0x52e3();let _0x341d70=_0x2fb582[_0x18d6fd];return _0x341d70;}function a15_0x52e3(){const _0x4ce100=['ure','\x20code\x20and\x20','search','original\x20c','../../serv','../securit','257793epiiKz','toString','../../util','dle\x20LLM\x20se','879788NkaOWJ','test-id','secure\x20cod','cks','fileConten','code','toBe','er.js','cureCode','secureCode','s/logger.j','edValue','generateSe','rvice\x20fail','urn\x20secure','12QoZZZI','toContain','unstable_m','545085zeNWzc','error','entation','Content','constructo','SecurityCo','729687KdgGKp','e.js','sis.servic','toHaveBeen','mockReject','dle\x20errors','1837104LqLKHV','brief','(((.+)+)+)','Generation','611878rpzAMq','clearAllMo','on\x20failed','apply','should\x20han','ices/analy','1804590zAWzDr','analysisId','CalledWith','structured','diff','\x20failed','mockResolv','e\x20generati','ode'];a15_0x52e3=function(){return _0x4ce100;};return a15_0x52e3();}const mockGenerateSecureCodeFromAnalysis=jest['fn']();jest['unstable_m'+'ockModule'](a15_0x5369fc(0x17e)+a15_0x5369fc(0x170)+a15_0x5369fc(0x163)+a15_0x5369fc(0x162),()=>({'AnalysisService':jest['fn']()['mockImplem'+a15_0x5369fc(0x15d)](()=>({'generateSecureCodeFromAnalysis':mockGenerateSecureCodeFromAnalysis}))})),jest[a15_0x5369fc(0x195)+'ockModule'](a15_0x5369fc(0x182)+a15_0x5369fc(0x18e)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SecurityController}=await import(a15_0x5369fc(0x17f)+'y.controll'+a15_0x5369fc(0x18b)),{AnalysisService}=await import(a15_0x5369fc(0x17e)+a15_0x5369fc(0x170)+'sis.servic'+'e.js');describe(a15_0x5369fc(0x160)+'ntroller',()=>{const _0x4a50c1=a15_0x5369fc,_0x540ff6={'SXwYR':function(_0x13509e,_0x2b69f2){return _0x13509e(_0x2b69f2);}};let _0xb7239,_0x5ab434;beforeEach(()=>{const _0x232fc9=a15_0x1e59;jest[_0x232fc9(0x16c)+_0x232fc9(0x187)](),_0x5ab434=new AnalysisService(),_0xb7239=new SecurityController(_0x5ab434);}),describe(_0x4a50c1(0x190)+'cureCode',()=>{const _0x3dbc78=_0x4a50c1;it('should\x20ret'+_0x3dbc78(0x192)+_0x3dbc78(0x17b)+_0x3dbc78(0x175),async()=>{const _0x53bf40=_0x3dbc78,_0x8f2f2d={};_0x8f2f2d[_0x53bf40(0x18d)]=_0x53bf40(0x186)+'e',_0x8f2f2d[_0x53bf40(0x18d)+'Brief']=_0x53bf40(0x168),_0x8f2f2d['diff']=_0x53bf40(0x175);const _0x3dfdc8=_0x8f2f2d;mockGenerateSecureCodeFromAnalysis[_0x53bf40(0x177)+_0x53bf40(0x18f)](_0x3dfdc8);const _0xa40c6a={};_0xa40c6a[_0x53bf40(0x172)]=_0x53bf40(0x185),_0xa40c6a[_0x53bf40(0x188)+'t']=_0x53bf40(0x17d)+_0x53bf40(0x179);const _0x2fec8a=await _0xb7239[_0x53bf40(0x190)+_0x53bf40(0x18c)](_0xa40c6a);expect(mockGenerateSecureCodeFromAnalysis)[_0x53bf40(0x164)+_0x53bf40(0x173)](_0x53bf40(0x185),_0x53bf40(0x17d)+_0x53bf40(0x179)),expect(_0x2fec8a[_0x53bf40(0x174)+_0x53bf40(0x15e)][_0x53bf40(0x18d)])[_0x53bf40(0x18a)](_0x53bf40(0x186)+'e'),_0x540ff6['SXwYR'](expect,_0x2fec8a['structured'+_0x53bf40(0x15e)]['diff'])[_0x53bf40(0x18a)]('diff');}),it(_0x3dbc78(0x16f)+_0x3dbc78(0x166),async()=>{const _0x5265bd=_0x3dbc78;mockGenerateSecureCodeFromAnalysis[_0x5265bd(0x165)+'edValue'](new Error(_0x5265bd(0x16a)+_0x5265bd(0x176)));const _0x534f62={};_0x534f62[_0x5265bd(0x172)]=_0x5265bd(0x185),_0x534f62[_0x5265bd(0x188)+'t']='code';const _0x1f1761=await _0xb7239[_0x5265bd(0x190)+_0x5265bd(0x18c)](_0x534f62);expect(_0x1f1761['structured'+_0x5265bd(0x15e)][_0x5265bd(0x15c)])[_0x5265bd(0x18a)](_0x5265bd(0x16a)+_0x5265bd(0x176));});}),it(_0x4a50c1(0x16f)+_0x4a50c1(0x183)+_0x4a50c1(0x191)+_0x4a50c1(0x17a),async()=>{const _0x47be1d=_0x4a50c1;mockGenerateSecureCodeFromAnalysis[_0x47be1d(0x165)+_0x47be1d(0x18f)](new Error('Secure\x20cod'+_0x47be1d(0x178)+_0x47be1d(0x16d)));const _0x2cc85b={};_0x2cc85b[_0x47be1d(0x172)]=_0x47be1d(0x185),_0x2cc85b[_0x47be1d(0x188)+'t']=_0x47be1d(0x189);const _0x59c9fd=await _0xb7239[_0x47be1d(0x190)+_0x47be1d(0x18c)](_0x2cc85b);expect(_0x59c9fd[_0x47be1d(0x174)+_0x47be1d(0x15e)]['error'])[_0x47be1d(0x194)]('Secure\x20cod'+_0x47be1d(0x178)+_0x47be1d(0x16d));});});
@@ -1 +1 @@
1
- const a16_0x4476f8=a16_0x2f33;function a16_0x2f33(_0x5a3458,_0x14adcd){_0x5a3458=_0x5a3458-0xa1;const _0x1414a7=a16_0x40f8();let _0x4c48d2=_0x1414a7[_0x5a3458];return _0x4c48d2;}(function(_0x559680,_0x916f9a){const _0x5036ac=a16_0x2f33,_0x378f9e=_0x559680();while(!![]){try{const _0x5337dd=parseInt(_0x5036ac(0xb5))/0x1+-parseInt(_0x5036ac(0xa9))/0x2*(-parseInt(_0x5036ac(0xb2))/0x3)+-parseInt(_0x5036ac(0xb3))/0x4*(parseInt(_0x5036ac(0xb1))/0x5)+-parseInt(_0x5036ac(0xa4))/0x6*(parseInt(_0x5036ac(0xaf))/0x7)+-parseInt(_0x5036ac(0xb6))/0x8+parseInt(_0x5036ac(0xac))/0x9+parseInt(_0x5036ac(0xa3))/0xa*(-parseInt(_0x5036ac(0xad))/0xb);if(_0x5337dd===_0x916f9a)break;else _0x378f9e['push'](_0x378f9e['shift']());}catch(_0x2fad71){_0x378f9e['push'](_0x378f9e['shift']());}}}(a16_0x40f8,0x8a95a));const a16_0x53f03e=(function(){let _0x4a8fb2=!![];return function(_0x4d1574,_0x265e23){const _0x39517f=_0x4a8fb2?function(){const _0x3b6153=a16_0x2f33;if(_0x265e23){const _0x282a42=_0x265e23[_0x3b6153(0xae)](_0x4d1574,arguments);return _0x265e23=null,_0x282a42;}}:function(){};return _0x4a8fb2=![],_0x39517f;};}()),a16_0x4c48d2=a16_0x53f03e(this,function(){const _0x1c23e8=a16_0x2f33;return a16_0x4c48d2[_0x1c23e8(0xa6)]()['search'](_0x1c23e8(0xb8)+'+$')['toString']()['constructo'+'r'](a16_0x4c48d2)[_0x1c23e8(0xa5)](_0x1c23e8(0xb8)+'+$');});a16_0x4c48d2();import{jest,describe,it,expect,beforeEach}from'@jest/globals';jest[a16_0x4476f8(0xb0)+'ockModule'](a16_0x4476f8(0xa8)+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SystemController}=await import(a16_0x4476f8(0xa1)+a16_0x4476f8(0xaa)+a16_0x4476f8(0xa7));describe(a16_0x4476f8(0xb4)+'roller',()=>{let _0x2583f7;beforeEach(()=>{const _0x3070bd=a16_0x2f33;jest[_0x3070bd(0xb7)+_0x3070bd(0xa2)](),_0x2583f7=new SystemController();}),it('should\x20be\x20'+'instantiab'+'le',()=>{const _0x5f3fe7=a16_0x2f33;expect(_0x2583f7)['toBeInstan'+_0x5f3fe7(0xab)](SystemController);});});function a16_0x40f8(){const _0x7e463d=['20325cksDzG','1988AmWvAk','SystemCont','597699Vnhgrb','659384BtEFwp','clearAllMo','(((.+)+)+)','../system.','cks','11510JmHoBJ','6vFNFMA','search','toString','.js','../../util','230xPEiAc','controller','ceOf','8820099XdNRKY','7029golKCr','apply','6746782LjdqEF','unstable_m','75IDwtlv'];a16_0x40f8=function(){return _0x7e463d;};return a16_0x40f8();}
1
+ const a16_0x50a427=a16_0x3231;(function(_0x5777ed,_0x31b6e4){const _0x5f555d=a16_0x3231,_0x4f3bbf=_0x5777ed();while(!![]){try{const _0x4a8cd0=-parseInt(_0x5f555d(0xfb))/0x1*(-parseInt(_0x5f555d(0xf8))/0x2)+parseInt(_0x5f555d(0x108))/0x3*(-parseInt(_0x5f555d(0x10a))/0x4)+parseInt(_0x5f555d(0x106))/0x5+parseInt(_0x5f555d(0x10b))/0x6*(-parseInt(_0x5f555d(0xf7))/0x7)+-parseInt(_0x5f555d(0xfd))/0x8*(-parseInt(_0x5f555d(0x10c))/0x9)+-parseInt(_0x5f555d(0xf6))/0xa*(-parseInt(_0x5f555d(0x104))/0xb)+parseInt(_0x5f555d(0x100))/0xc;if(_0x4a8cd0===_0x31b6e4)break;else _0x4f3bbf['push'](_0x4f3bbf['shift']());}catch(_0x121379){_0x4f3bbf['push'](_0x4f3bbf['shift']());}}}(a16_0x1bea,0x25c59));function a16_0x3231(_0x5c26a7,_0x3a71d0){_0x5c26a7=_0x5c26a7-0xf1;const _0x45f2bd=a16_0x1bea();let _0x123996=_0x45f2bd[_0x5c26a7];return _0x123996;}const a16_0x6408ca=(function(){let _0x42193b=!![];return function(_0x79d9ea,_0x40c7db){const _0x3e109c=_0x42193b?function(){if(_0x40c7db){const _0x3dd9c8=_0x40c7db['apply'](_0x79d9ea,arguments);return _0x40c7db=null,_0x3dd9c8;}}:function(){};return _0x42193b=![],_0x3e109c;};}()),a16_0x123996=a16_0x6408ca(this,function(){const _0x23bcfd=a16_0x3231;return a16_0x123996[_0x23bcfd(0xf3)]()['search'](_0x23bcfd(0x102)+'+$')['toString']()[_0x23bcfd(0xf4)+'r'](a16_0x123996)['search']('(((.+)+)+)'+'+$');});a16_0x123996();import{jest,describe,it,expect,beforeEach}from'@jest/globals';function a16_0x1bea(){const _0x1c8188=['should\x20be\x20','361070wMWyIk','SystemCont','8571eqZsBJ','../../util','284shZnSg','6IztXsB','83178WepeVk','.js','cks','instantiab','toString','constructo','unstable_m','863530BkLsfN','962486HWRGtr','29486HMjqaU','s/logger.j','toBeInstan','1cSIiYa','ockModule','144tbndNO','ceOf','roller','1864704lVCGzY','../system.','(((.+)+)+)','xLTLc','11giuNAf'];a16_0x1bea=function(){return _0x1c8188;};return a16_0x1bea();}jest[a16_0x50a427(0xf5)+a16_0x50a427(0xfc)](a16_0x50a427(0x109)+a16_0x50a427(0xf9)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SystemController}=await import(a16_0x50a427(0x101)+'controller'+a16_0x50a427(0x10d));describe(a16_0x50a427(0x107)+a16_0x50a427(0xff),()=>{const _0x241bdf=a16_0x50a427,_0x3d23c1={'xLTLc':function(_0x46e19a,_0x57205a){return _0x46e19a(_0x57205a);}};let _0x185392;beforeEach(()=>{const _0x4db0bf=a16_0x3231;jest['clearAllMo'+_0x4db0bf(0xf1)](),_0x185392=new SystemController();}),it(_0x241bdf(0x105)+_0x241bdf(0xf2)+'le',()=>{const _0x3697f0=_0x241bdf;_0x3d23c1[_0x3697f0(0x103)](expect,_0x185392)[_0x3697f0(0xfa)+_0x3697f0(0xfe)](SystemController);});});
@@ -1 +1 @@
1
- const a7_0x2620f7=a7_0x5b02;(function(_0x169fe2,_0x159e4a){const _0xd8d3dd=a7_0x5b02,_0x314835=_0x169fe2();while(!![]){try{const _0x19152f=-parseInt(_0xd8d3dd(0x130))/0x1+-parseInt(_0xd8d3dd(0x14d))/0x2*(parseInt(_0xd8d3dd(0x1f4))/0x3)+-parseInt(_0xd8d3dd(0x11f))/0x4*(-parseInt(_0xd8d3dd(0x140))/0x5)+parseInt(_0xd8d3dd(0x1f8))/0x6+-parseInt(_0xd8d3dd(0x226))/0x7*(-parseInt(_0xd8d3dd(0x1c9))/0x8)+parseInt(_0xd8d3dd(0x11a))/0x9*(parseInt(_0xd8d3dd(0x1fb))/0xa)+-parseInt(_0xd8d3dd(0x1bb))/0xb;if(_0x19152f===_0x159e4a)break;else _0x314835['push'](_0x314835['shift']());}catch(_0x34f8aa){_0x314835['push'](_0x314835['shift']());}}}(a7_0x1b61,0x22659));function a7_0x5b02(_0x1932ae,_0x426d43){_0x1932ae=_0x1932ae-0x112;const _0x16ff64=a7_0x1b61();let _0x7b71fa=_0x16ff64[_0x1932ae];return _0x7b71fa;}const a7_0x4d9091=(function(){let _0x136982=!![];return function(_0x4ea1e7,_0x514e47){const _0x5c06e9=a7_0x5b02;if('pwYrt'!==_0x5c06e9(0x1be))_0x22a427='[FAIL]\x20Ana'+_0x5c06e9(0x1f1)+'ed\x20to\x20comp'+_0x5c06e9(0x146)+_0x5c06e9(0x17f);else{const _0x548b12=_0x136982?function(){const _0x252b93=_0x5c06e9;if(_0x514e47){const _0x40e944=_0x514e47[_0x252b93(0x1ab)](_0x4ea1e7,arguments);return _0x514e47=null,_0x40e944;}}:function(){};return _0x136982=![],_0x548b12;}};}()),a7_0x7b71fa=a7_0x4d9091(this,function(){const _0x371308=a7_0x5b02;return a7_0x7b71fa[_0x371308(0x182)]()[_0x371308(0x17a)](_0x371308(0x173)+'+$')['toString']()[_0x371308(0x1cb)+'r'](a7_0x7b71fa)[_0x371308(0x17a)](_0x371308(0x173)+'+$');});a7_0x7b71fa();function a7_0x1b61(){const _0x10bd45=['VlJkz','erabilitie','bilities\x20f','Unknown\x20er','\x20|\x0a|\x20Total','nts\x20identi','acking\x20sta','es\x20requiri','ons/progre','atus\x20check','cal\x20|\x20','COMPLETE','info','de\x0a','IN_PROGRES','\x0a\x20\x20\x20\x20\x20\x20','toUpperCas','|\x0a|-------','progress\x20a','checkerInf','rovided.\x20T','y\x20Analysis','Analysis\x20I','\x0a\x0a##\x20Analy','\x20|\x0a|\x20Low\x20|','----|-----','\x20request.','ror','\x0a-\x20Vulnera','MEDIUM','CRITICAL','totalVulne','issues','analysisSe','status','ailed\x20with','led:\x20','(((.+)+)+)','\x0a\x0a##\x20Disco','SCA\x20analys','\x20\x20\x20','fing\x0a','Error\x20chec','[FAIL]\x20Ana','search','find','lineNumber','will\x20retry','Progress\x20n','rly.','ities','cation','toString','getAnalysi','s\x20ID:\x20','highCount','Analysis\x20s','uested:\x20','gain\x20to\x20co','acking\x20rea','\x0a\x0a##\x20Remed','No\x20critica','MXqgL','filter','rt\x0a\x0a##\x20Sum','substring','call\x20track','components','now','\x0a\x20\x20\x20\x20\x20\x20-\x20','sStatus','invalid\x20to','trackAnaly','vulnerabil','[STOP]\x20Ana','version','D:\x20','\x20|\x0a|\x20Statu','\x20longer\x20va','itMs\x20(','\x0aProgress:','type','No\x20compone','oken\x20is\x20in','completed.','Analysis\x20p','[ANALYSIS]','rovided','rvTKD','oken\x20is\x20no','is\x20results','ons','\x20Vulnerabi','apply','otificatio','rogress\x20tr','ing\x20progre','toLowerCas','tatus\x20upda','lowCount','g\x20paused\x20a','ms):\x20','is\x20status:','licenses','n\x20failed\x20(','content','Kabvn','\x20|\x20','lid,\x20stopp','2363581AXmzln','\x0a-\x20Analysi','N/A','pwYrt','fixedVersi','warn','mediumCoun','led:','checkerKey','s\x20updated:','sisProgres','vered\x20Vuln','ss\x20notific','\x0a\x0a...\x20(Sho','92744kAHFgR','\x0a\x0a##\x20Vulne','constructo',']\x20**','ested:\x20','expired\x20to','get\x20SCA\x20an','rability\x20D','ed\x20to\x20comp','includes','Final\x20anal','ANALYSIS','dCcTD','reference','ken','ysisResult','itoring\x20if','getScaAnal','**:\x20Update','total','latest','ss.','\x20|\x0a|\x20Mediu','.\x20[','some',']\x20Tracking','message','acking\x20fai','\x20|\x0a|\x20Compo','s\x20is\x20still','ng\x20immedia','ric\x20|\x20Valu','---|------','\x20of\x20','text','###\x20','----------','m\x20|\x20','\x0a\x20\x20\x20-\x20컴플라이','result','lysis\x20fail','tus:\x20','):\x20','48LeUmar','analysisId','progress','get\x20analys','999024EyrpBx','\x20(CVSS:\x20','ted:\x20','87930gcBQki','\x20in\x20progre','rabilities','Progress\x20t','\x0a\x20\x20\x20\x20\x20\x20-\x20F','HIGH','%\x0aMessage:','string','valid,\x20con','s\x20tracking','\x0a-\x20Status:','rvice','t\x20|\x20Versio','Analysis\x20r','s:\x20','FAIL','s\x20Overview','erity\x20issu','tatus\x20chec','ound:\x20','\x20progress\x20','ss...','s\x20without\x20','name','-|\x0a|\x20Analy','alysis\x20res','\x0a-\x20Result:','\x0a#\x20Securit','tatus:\x20','ief','Progress\x20T','ter\x20',').\x0aTrackin','map','mary\x0a|\x20Met','filePath','descriptio','HWMgl','\x20paused\x20af','Unknown','ntinue\x20mon','criticalCo','bilities\x20F','7Dmrfhc','Content','analysisBr',')\x0a\x20\x20\x20-\x20설명:',']\x20Analysis','ound.','join','isError','\x0a\x0a##\x20Compo','Failed\x20to\x20','ations:\x20','uccessfull','36ZjBLdL','progressTo','ng\x0a','error','ults:\x20','50272UQxelK','ixed\x20in:\x20','te\x20action.','keys','king\x20analy','severity','(Status:\x20','k\x20failed:','언스:\x20','fied.','iation\x20Gui','in\x20progres','Analysis\x20S','notificati','completed','GTuqG','sResults','98901EELwgk','oken\x20not\x20p','structured','\x20|\x0a|\x20High\x20','FtsOY','s\x20|\x20','\x20Analysis\x20','lysis\x20was\x20','\x20from\x20`','[SUCCESS]\x20','sis\x20ID\x20|\x20','unt','compliance','\x20character','LOW','_analysis_','110SrzXEc','\x20|\x0a|\x20Criti','--|','round','Analysis\x20c','length','lete\x20prope','ysis\x20statu','\x20needed.','ls\x0a','rted:\x20','sendNotifi','he\x20client\x20','4388mCleyc'];a7_0x1b61=function(){return _0x10bd45;};return a7_0x1b61();}import{logger}from'../utils/logger.js';import{ANALYSIS_STAGES}from'../config/constants.js';export class AnalysisController{[a7_0x2620f7(0x16f)+'rvice'];constructor(_0x31ce2d){const _0x546603=a7_0x2620f7;this[_0x546603(0x16f)+_0x546603(0x206)]=_0x31ce2d;}async[a7_0x2620f7(0x183)+a7_0x2620f7(0x194)]({analysisId:_0x2d2061}){const _0xb12e0b=a7_0x2620f7;try{logger[_0xb12e0b(0x15a)](_0xb12e0b(0x186)+'tatus\x20requ'+_0xb12e0b(0x1cd)+_0x2d2061);const _0x1aa07e=await this[_0xb12e0b(0x16f)+_0xb12e0b(0x206)]['getAnalysi'+_0xb12e0b(0x194)](_0x2d2061),_0x2073d7=_0x1aa07e[_0xb12e0b(0x170)]==='COMPLETE'&&_0x1aa07e[_0xb12e0b(0x1f0)]?_0x1aa07e[_0xb12e0b(0x1f0)]:_0x1aa07e[_0xb12e0b(0x170)],_0x5f4e1c={};_0x5f4e1c['type']=_0xb12e0b(0x1eb),_0x5f4e1c[_0xb12e0b(0x1eb)]=_0xb12e0b(0x12b)+_0xb12e0b(0x217)+_0x2073d7+(_0xb12e0b(0x19e)+'\x20')+(_0x1aa07e[_0xb12e0b(0x1f6)]||0x0)+(_0xb12e0b(0x201)+'\x20')+(_0x1aa07e[_0xb12e0b(0x1e3)]||_0xb12e0b(0x1bd));const _0x2e83ca={};_0x2e83ca['analysisId']=_0x2d2061,_0x2e83ca[_0xb12e0b(0x170)]=_0x2073d7,_0x2e83ca[_0xb12e0b(0x1f0)]=_0x1aa07e[_0xb12e0b(0x1f0)],_0x2e83ca['progress']=_0x1aa07e['progress'],_0x2e83ca[_0xb12e0b(0x1e3)]=_0x1aa07e['message'];const _0x5ab515={};return _0x5ab515[_0xb12e0b(0x1b7)]=[_0x5f4e1c],_0x5ab515['structured'+_0xb12e0b(0x227)]=_0x2e83ca,_0x5ab515;}catch(_0x4593f1){logger[_0xb12e0b(0x11d)](_0xb12e0b(0x186)+_0xb12e0b(0x20d)+_0xb12e0b(0x126),_0x4593f1);const _0x46be83={};_0x46be83[_0xb12e0b(0x19f)]=_0xb12e0b(0x1eb),_0x46be83[_0xb12e0b(0x1eb)]=_0xb12e0b(0x117)+'get\x20analys'+_0xb12e0b(0x1b4)+'\x20'+(_0x4593f1 instanceof Error?_0x4593f1[_0xb12e0b(0x1e3)]:_0xb12e0b(0x151)+_0xb12e0b(0x169));const _0x183518={};_0x183518[_0xb12e0b(0x11d)]=_0x4593f1 instanceof Error?_0x4593f1[_0xb12e0b(0x1e3)]:'Unknown\x20er'+_0xb12e0b(0x169);const _0x3f5fcb={};return _0x3f5fcb[_0xb12e0b(0x1b7)]=[_0x46be83],_0x3f5fcb['structured'+_0xb12e0b(0x227)]=_0x183518,_0x3f5fcb;}}async[a7_0x2620f7(0x183)+a7_0x2620f7(0x12f)]({analysisId:_0x38cec4}){const _0xc88c6c=a7_0x2620f7,_0x1bf037={};_0x1bf037['RPzyp']=function(_0x513fa8,_0x4ca4b0){return _0x513fa8 instanceof _0x4ca4b0;};const _0x3dfc76=_0x1bf037;try{logger[_0xc88c6c(0x15a)](_0xc88c6c(0x208)+'esults\x20req'+_0xc88c6c(0x187)+_0x38cec4);const _0x12b373=await this['analysisSe'+_0xc88c6c(0x206)][_0xc88c6c(0x183)+_0xc88c6c(0x12f)](_0x38cec4),_0x5b21f1=_0x12b373[_0xc88c6c(0x1f0)]??_0x12b373[_0xc88c6c(0x170)],_0x12f693=0x7a120,_0x243e5a=(_0x2118a8,_0x1bbd62)=>{const _0xc81399=_0xc88c6c;if(_0x2118a8[_0xc81399(0x145)]<=_0x1bbd62)return _0x2118a8;return _0x2118a8[_0xc81399(0x18f)](0x0,_0x1bbd62)+(_0xc81399(0x1c8)+'wing\x20'+_0x1bbd62+_0xc81399(0x1ea)+_0x2118a8[_0xc81399(0x145)]+(_0xc81399(0x13d)+'s)'));},_0x17ea4f=_0x12b373['vulnerabil'+_0xc88c6c(0x180)][_0xc88c6c(0x21c)]((_0x15fc27,_0x4691e6)=>{const _0x262f0b=_0xc88c6c,_0x32f20f=_0x15fc27[_0x262f0b(0x161)+'o']?.[_0x262f0b(0x212)]||_0x15fc27[_0x262f0b(0x1c3)],_0x3181a1=_0x15fc27[_0x262f0b(0x161)+'o']?.[_0x262f0b(0x21f)+'n']||_0x15fc27['descriptio'+'n'],_0x1b7eba=_0x15fc27[_0x262f0b(0x161)+'o']?.[_0x262f0b(0x13c)]&&_0x15fc27[_0x262f0b(0x161)+'o'][_0x262f0b(0x13c)][_0x262f0b(0x145)]>0x0?_0x262f0b(0x1ef)+_0x262f0b(0x127)+_0x15fc27[_0x262f0b(0x161)+'o'][_0x262f0b(0x13c)][_0x262f0b(0x21c)](_0x25f599=>''+_0x25f599['reference'][_0x262f0b(0x212)]+(_0x25f599[_0x262f0b(0x1d6)][_0x262f0b(0x199)]?'\x20('+_0x25f599[_0x262f0b(0x1d6)]['version']+')':''))[_0x262f0b(0x114)](',\x20'):'';return _0x4691e6+0x1+'.\x20['+_0x15fc27[_0x262f0b(0x124)]+']\x20**'+_0x32f20f+'**\x20('+_0x15fc27[_0x262f0b(0x1c3)]+(_0x262f0b(0x229)+'\x20')+_0x3181a1+(_0x15fc27['filePath']?'\x0a\x20\x20\x20-\x20파일:\x20'+_0x15fc27[_0x262f0b(0x21e)]+(_0x15fc27[_0x262f0b(0x17c)]?':'+_0x15fc27[_0x262f0b(0x17c)]:''):'')+_0x1b7eba;})['join']('\x0a\x0a'),_0x36ec37=(_0xc88c6c(0x216)+_0xc88c6c(0x163)+'\x20Results\x0a\x0a'+'##\x20Analysi'+_0xc88c6c(0x20b)+_0xc88c6c(0x1bc)+_0xc88c6c(0x184)+_0x12b373[_0xc88c6c(0x1f5)]+(_0xc88c6c(0x205)+'\x20')+_0x5b21f1+(_0xc88c6c(0x215)+'\x20')+(_0x12b373[_0xc88c6c(0x1f0)]||_0xc88c6c(0x1bd))+(_0xc88c6c(0x16a)+_0xc88c6c(0x225)+_0xc88c6c(0x20e))+_0x12b373[_0xc88c6c(0x197)+'ities'][_0xc88c6c(0x145)]+(_0xc88c6c(0x165)+'sis\x20Briefi'+_0xc88c6c(0x11c))+_0x243e5a(_0x12b373[_0xc88c6c(0x228)+_0xc88c6c(0x218)]||'',_0x12f693)+(_0xc88c6c(0x174)+_0xc88c6c(0x1c6)+_0xc88c6c(0x14f)+'s\x0a')+_0x243e5a(_0x17ea4f,_0x12f693)+_0xc88c6c(0x15d))['trim'](),_0x221a76={'analysisId':_0x12b373[_0xc88c6c(0x1f5)],'status':_0x5b21f1,'result':_0x12b373[_0xc88c6c(0x1f0)],'vulnerabilities':_0x12b373[_0xc88c6c(0x197)+_0xc88c6c(0x180)],'analysisBrief':_0x12b373[_0xc88c6c(0x228)+_0xc88c6c(0x218)]?_0x243e5a(_0x12b373[_0xc88c6c(0x228)+_0xc88c6c(0x218)],_0x12f693):''},_0x31edde={};_0x31edde[_0xc88c6c(0x19f)]='text',_0x31edde[_0xc88c6c(0x1eb)]=_0x36ec37;const _0x275cfd={};return _0x275cfd[_0xc88c6c(0x1b7)]=[_0x31edde],_0x275cfd[_0xc88c6c(0x132)+_0xc88c6c(0x227)]=_0x221a76,_0x275cfd;}catch(_0x528a2c){logger['error'](_0xc88c6c(0x117)+_0xc88c6c(0x1f7)+_0xc88c6c(0x1a8)+':',_0x528a2c);const _0x184f4e=_0x3dfc76['RPzyp'](_0x528a2c,Error)?_0x528a2c['message']:_0xc88c6c(0x151)+_0xc88c6c(0x169),_0x493330={};_0x493330[_0xc88c6c(0x19f)]=_0xc88c6c(0x1eb),_0x493330[_0xc88c6c(0x1eb)]=_0xc88c6c(0x117)+_0xc88c6c(0x1f7)+_0xc88c6c(0x1a8)+':\x20'+_0x184f4e;const _0x2a9893={};_0x2a9893[_0xc88c6c(0x11d)]=_0x184f4e;const _0x4f981a={};return _0x4f981a[_0xc88c6c(0x1b7)]=[_0x493330],_0x4f981a[_0xc88c6c(0x132)+'Content']=_0x2a9893,_0x4f981a[_0xc88c6c(0x115)]=!![],_0x4f981a;}}async[a7_0x2620f7(0x1da)+a7_0x2620f7(0x1d8)+'s']({analysisId:_0x11ac35}){const _0x43a170=a7_0x2620f7;try{logger[_0x43a170(0x15a)](_0x43a170(0x175)+_0x43a170(0x1a8)+'\x20requested'+':\x20'+_0x11ac35);const _0x5c07bc=await this['analysisSe'+'rvice'][_0x43a170(0x1da)+_0x43a170(0x1d8)+'s'](_0x11ac35),_0x35b1ad=_0x5c07bc[_0x43a170(0x1f0)]??_0x5c07bc[_0x43a170(0x170)],_0x137337='|\x20Componen'+_0x43a170(0x207)+'n\x20|\x20Licens'+'e\x20|\x20Vulner'+'abilities\x20'+'(C/H/M/L)\x20'+_0x43a170(0x15f)+_0x43a170(0x167)+_0x43a170(0x167)+'----|-----'+_0x43a170(0x1ed)+_0x43a170(0x1ed)+_0x43a170(0x142),_0x504107=_0x5c07bc[_0x43a170(0x191)][_0x43a170(0x21c)](_0x322ffd=>{const _0x12bd09=_0x43a170,_0x273e7b=_0x322ffd[_0x12bd09(0x1b5)][_0x12bd09(0x145)]>0x0?_0x322ffd[_0x12bd09(0x1b5)][_0x12bd09(0x21c)](_0x80f3ec=>_0x80f3ec[_0x12bd09(0x212)])['join'](',\x20'):_0x12bd09(0x222),_0xa2f093=_0x322ffd['issues'][_0x12bd09(0x18d)](_0x2fa866=>_0x2fa866[_0x12bd09(0x124)]===_0x12bd09(0x16c))[_0x12bd09(0x145)],_0x485957=_0x322ffd[_0x12bd09(0x16e)][_0x12bd09(0x18d)](_0xf7c7ae=>_0xf7c7ae[_0x12bd09(0x124)]===_0x12bd09(0x200))[_0x12bd09(0x145)],_0x549bcb=_0x322ffd[_0x12bd09(0x16e)][_0x12bd09(0x18d)](_0x17069b=>_0x17069b[_0x12bd09(0x124)]===_0x12bd09(0x16b))[_0x12bd09(0x145)],_0x189953=_0x322ffd[_0x12bd09(0x16e)][_0x12bd09(0x18d)](_0x27f5fb=>_0x27f5fb['severity']===_0x12bd09(0x13e))['length'],_0x25b17c=_0xa2f093+_0x485957+_0x549bcb+_0x189953+'\x20('+_0xa2f093+'/'+_0x485957+'/'+_0x549bcb+'/'+_0x189953+')';return'|\x20'+_0x322ffd[_0x12bd09(0x212)]+'\x20|\x20'+_0x322ffd[_0x12bd09(0x199)]+'\x20|\x20'+_0x273e7b+_0x12bd09(0x1b9)+_0x25b17c+'\x20|';})[_0x43a170(0x114)]('\x0a'),_0x4354c0=_0x5c07bc['components'][_0x43a170(0x145)]>0x0?_0x137337+'\x0a'+_0x504107:_0x43a170(0x1a0)+_0x43a170(0x153)+_0x43a170(0x128),_0x57a9da=_0x5c07bc['components'][_0x43a170(0x18d)](_0x32ecb0=>_0x32ecb0[_0x43a170(0x16e)][_0x43a170(0x145)]>0x0)['map'](_0x3035d0=>{const _0x11b4b9=_0x43a170;if(_0x11b4b9(0x1b8)===_0x11b4b9(0x12e)){const _0x415218=_0x326baa[_0x11b4b9(0x16e)][_0x11b4b9(0x17b)](_0xbd0dbb=>_0xbd0dbb[_0x11b4b9(0x124)]===_0x11b4b9(0x16c)||_0xbd0dbb[_0x11b4b9(0x124)]==='HIGH'),_0x375eee=_0x415218?.['fixedVersi'+'on']||_0x11b4b9(0x1dd);return'-\x20**'+_0x7d7c69[_0x11b4b9(0x212)]+('**:\x20Update'+_0x11b4b9(0x138))+_0x4c0c70[_0x11b4b9(0x199)]+'`\x20to\x20`'+_0x375eee+'`';}else{const _0x5850fc=_0x3035d0[_0x11b4b9(0x16e)][_0x11b4b9(0x21c)]((_0x22d04f,_0x3f6927)=>{const _0x3e4294=_0x11b4b9;let _0x11d292=_0x3e4294(0x176)+(_0x3f6927+0x1)+_0x3e4294(0x1e0)+_0x22d04f[_0x3e4294(0x124)]+_0x3e4294(0x1cc)+_0x22d04f['cveId']+'**';if(_0x22d04f['cvssScore'])_0x11d292+=_0x3e4294(0x1f9)+_0x22d04f['cvssScore']+')';if(_0x22d04f[_0x3e4294(0x21f)+'n'])_0x11d292+=_0x3e4294(0x193)+_0x22d04f['descriptio'+'n'];if(_0x22d04f[_0x3e4294(0x1bf)+'on'])_0x11d292+=_0x3e4294(0x1ff)+_0x3e4294(0x120)+_0x22d04f[_0x3e4294(0x1bf)+'on'];return _0x11d292;})['join']('\x0a');return _0x11b4b9(0x1ec)+_0x3035d0[_0x11b4b9(0x212)]+'@'+_0x3035d0[_0x11b4b9(0x199)]+'\x0a'+_0x5850fc;}})[_0x43a170(0x114)]('\x0a\x0a'),_0x48440d=_0x5c07bc[_0x43a170(0x191)][_0x43a170(0x18d)](_0x3ef4d6=>_0x3ef4d6[_0x43a170(0x16e)][_0x43a170(0x1e1)](_0x514d53=>_0x514d53[_0x43a170(0x124)]===_0x43a170(0x16c)||_0x514d53['severity']===_0x43a170(0x200)))[_0x43a170(0x21c)](_0x4770e1=>{const _0xdc479a=_0x43a170,_0x9d438b=_0x4770e1[_0xdc479a(0x16e)]['find'](_0x3eb964=>_0x3eb964[_0xdc479a(0x124)]===_0xdc479a(0x16c)||_0x3eb964[_0xdc479a(0x124)]==='HIGH'),_0x4a132c=_0x9d438b?.[_0xdc479a(0x1bf)+'on']||'latest';return'-\x20**'+_0x4770e1[_0xdc479a(0x212)]+(_0xdc479a(0x1db)+_0xdc479a(0x138))+_0x4770e1[_0xdc479a(0x199)]+'`\x20to\x20`'+_0x4a132c+'`';})[_0x43a170(0x114)]('\x0a'),_0x53b72f=('\x0a#\x20SCA\x20Ana'+'lysis\x20Repo'+_0x43a170(0x18e)+_0x43a170(0x21d)+_0x43a170(0x1e8)+'e\x20|\x0a|-----'+_0x43a170(0x1e9)+_0x43a170(0x213)+_0x43a170(0x13a)+_0x5c07bc['analysisId']+(_0x43a170(0x19b)+_0x43a170(0x135))+_0x35b1ad+(_0x43a170(0x1e5)+'nents\x20|\x20')+_0x5c07bc['components'][_0x43a170(0x145)]+(_0x43a170(0x152)+_0x43a170(0x1aa)+'lities\x20|\x20')+_0x5c07bc[_0x43a170(0x16d)+'rabilities']+(_0x43a170(0x141)+_0x43a170(0x158))+_0x5c07bc['criticalCo'+_0x43a170(0x13b)]+(_0x43a170(0x133)+'|\x20')+_0x5c07bc[_0x43a170(0x185)]+(_0x43a170(0x1df)+_0x43a170(0x1ee))+_0x5c07bc[_0x43a170(0x1c1)+'t']+(_0x43a170(0x166)+'\x20')+_0x5c07bc['lowCount']+('\x20|\x0a\x0a##\x20Ana'+'lysis\x20Brie'+_0x43a170(0x177))+_0x5c07bc[_0x43a170(0x228)+_0x43a170(0x218)]+(_0x43a170(0x116)+'nent\x20Detai'+_0x43a170(0x149))+_0x4354c0+(_0x43a170(0x1ca)+_0x43a170(0x1d0)+'etails\x0a')+(_0x57a9da||'No\x20vulnera'+_0x43a170(0x150)+_0x43a170(0x113))+(_0x43a170(0x18a)+_0x43a170(0x129)+_0x43a170(0x15b))+(_0x48440d||_0x43a170(0x18b)+'l/high\x20sev'+_0x43a170(0x20c)+_0x43a170(0x155)+_0x43a170(0x1e7)+_0x43a170(0x121))+'\x0a\x20\x20\x20\x20\x20\x20')['trim'](),_0x3476b8={};_0x3476b8[_0x43a170(0x1f5)]=_0x5c07bc['analysisId'],_0x3476b8[_0x43a170(0x170)]=_0x35b1ad,_0x3476b8[_0x43a170(0x1f0)]=_0x5c07bc['result'],_0x3476b8[_0x43a170(0x191)]=_0x5c07bc[_0x43a170(0x191)],_0x3476b8[_0x43a170(0x16d)+_0x43a170(0x1fd)]=_0x5c07bc['totalVulne'+_0x43a170(0x1fd)],_0x3476b8[_0x43a170(0x224)+'unt']=_0x5c07bc[_0x43a170(0x224)+_0x43a170(0x13b)],_0x3476b8[_0x43a170(0x185)]=_0x5c07bc['highCount'],_0x3476b8['mediumCoun'+'t']=_0x5c07bc[_0x43a170(0x1c1)+'t'],_0x3476b8['lowCount']=_0x5c07bc[_0x43a170(0x1b1)],_0x3476b8['analysisBr'+_0x43a170(0x218)]=_0x5c07bc[_0x43a170(0x228)+_0x43a170(0x218)];const _0x3d1e29=_0x3476b8,_0x4ea11b={};_0x4ea11b[_0x43a170(0x19f)]=_0x43a170(0x1eb),_0x4ea11b[_0x43a170(0x1eb)]=_0x53b72f;const _0x209f3e={};return _0x209f3e[_0x43a170(0x1b7)]=[_0x4ea11b],_0x209f3e[_0x43a170(0x132)+_0x43a170(0x227)]=_0x3d1e29,_0x209f3e;}catch(_0x233f67){logger[_0x43a170(0x11d)]('Failed\x20to\x20'+_0x43a170(0x1cf)+_0x43a170(0x214)+'ults:',_0x233f67);const _0x438cd4=_0x233f67 instanceof Error?_0x233f67[_0x43a170(0x1e3)]:_0x43a170(0x151)+'ror',_0x4b845e={};_0x4b845e[_0x43a170(0x19f)]='text',_0x4b845e[_0x43a170(0x1eb)]='Failed\x20to\x20'+'get\x20SCA\x20an'+_0x43a170(0x214)+_0x43a170(0x11e)+_0x438cd4;const _0x170ba8={};_0x170ba8['error']=_0x438cd4;const _0x3a2f31={};return _0x3a2f31[_0x43a170(0x1b7)]=[_0x4b845e],_0x3a2f31[_0x43a170(0x132)+_0x43a170(0x227)]=_0x170ba8,_0x3a2f31[_0x43a170(0x115)]=!![],_0x3a2f31;}}async[a7_0x2620f7(0x196)+a7_0x2620f7(0x1c5)+'s']({analysisId:_0x3d75af,intervalMs:intervalMs=0xbb8,maxWaitMs:maxWaitMs=0x7530},_0x47a866){const _0x612250=a7_0x2620f7,_0x2e7012={'HWMgl':function(_0x404bb2,_0x45e119){return _0x404bb2(_0x45e119);},'MXqgL':_0x612250(0x159),'lbWgd':_0x612250(0x139)+_0x612250(0x144)+'ompleted\x20s'+_0x612250(0x119)+'y.','dCcTD':function(_0x29a873,_0x5e9137){return _0x29a873(_0x5e9137);},'rvTKD':function(_0x49a664,_0x4ca2e6){return _0x49a664===_0x4ca2e6;},'FtsOY':_0x612250(0x202),'VlJkz':function(_0x51641d,_0x4b9b5e){return _0x51641d-_0x4b9b5e;}};try{const _0x5a1135=_0x47a866['_meta']?.[_0x612250(0x11b)+_0x612250(0x1d7)];if(!_0x5a1135){const _0x152aba={};_0x152aba[_0x612250(0x19f)]='text',_0x152aba[_0x612250(0x1eb)]=_0x612250(0x219)+_0x612250(0x131)+_0x612250(0x162)+_0x612250(0x14c)+'must\x20suppo'+'rt\x20progres'+_0x612250(0x204)+'.';const _0x2153ce={};_0x2153ce['error']=_0x612250(0x219)+_0x612250(0x131)+_0x612250(0x1a5);const _0x423e51={};return _0x423e51['content']=[_0x152aba],_0x423e51['structured'+'Content']=_0x2153ce,_0x423e51;}logger['info']('Analysis\x20p'+_0x612250(0x1ad)+_0x612250(0x154)+_0x612250(0x14a)+_0x3d75af);const _0x12bf33=ANALYSIS_STAGES;let _0x30fc48=Object[_0x612250(0x122)](_0x12bf33)[_0x612250(0x145)],_0x15d5b3=null,_0x802767=0x0,_0x45ea18=!![];const _0x5a77f5=Date[_0x612250(0x192)](),_0x5d2411=async _0x42f035=>{const _0x9b205f=_0x612250;if(!_0x45ea18)return![];try{return await _0x47a866[_0x9b205f(0x14b)+_0x9b205f(0x181)](_0x42f035),!![];}catch(_0x133238){const _0xa81b2b=_0x133238 instanceof Error?_0x133238['message']:_0x9b205f(0x151)+_0x9b205f(0x169);return _0xa81b2b[_0x9b205f(0x1d2)]('unknown\x20to'+'ken')||_0xa81b2b[_0x9b205f(0x1d2)](_0x9b205f(0x195)+_0x9b205f(0x1d7))||_0xa81b2b[_0x9b205f(0x1d2)](_0x9b205f(0x1ce)+'ken')||_0xa81b2b[_0x9b205f(0x1af)+'e']()[_0x9b205f(0x1d2)]('token')?(_0x45ea18=![],logger[_0x9b205f(0x1c0)](_0x9b205f(0x1fe)+_0x9b205f(0x1a7)+_0x9b205f(0x19c)+_0x9b205f(0x1ba)+_0x9b205f(0x1ae)+_0x9b205f(0x1c7)+_0x9b205f(0x118)+_0xa81b2b)):logger[_0x9b205f(0x1c0)](_0x9b205f(0x17e)+_0x9b205f(0x1ac)+_0x9b205f(0x1b6)+_0x9b205f(0x17d)+_0x9b205f(0x1f3)+_0xa81b2b),![];}};while(!![]){try{const _0x3faf39=await this[_0x612250(0x16f)+_0x612250(0x206)][_0x612250(0x183)+_0x612250(0x194)](_0x3d75af),_0x50aa1c=_0x2e7012[_0x612250(0x220)](String,_0x3faf39[_0x612250(0x170)])[_0x612250(0x15e)+'e'](),_0x4414e9=String(_0x3faf39['status'])[_0x612250(0x15e)+'e'](),_0x571df5=_0x4414e9===_0x2e7012[_0x612250(0x18c)]&&_0x3faf39[_0x612250(0x1f0)]?String(_0x3faf39[_0x612250(0x1f0)])[_0x612250(0x15e)+'e']():_0x50aa1c;if(_0x15d5b3!==_0x50aa1c){_0x15d5b3=_0x50aa1c;if(_0x4414e9===_0x612250(0x159)||_0x50aa1c==='FAIL'||_0x50aa1c==='FAILED'){let _0x56671b,_0x81e241;if(_0x4414e9==='COMPLETE'){const _0x562b7d=_0x3faf39[_0x612250(0x1f0)]?String(_0x3faf39[_0x612250(0x1f0)])['toUpperCas'+'e']():undefined;_0x81e241=_0x562b7d||_0x612250(0x159);if(_0x562b7d==='SUCCESS')_0x56671b=_0x2e7012['lbWgd'];else{if(_0x562b7d===_0x612250(0x20a))_0x56671b=_0x612250(0x179)+'lysis\x20fail'+_0x612250(0x1d1)+_0x612250(0x146)+_0x612250(0x17f);else _0x562b7d==='STOP'?_0x56671b=_0x612250(0x198)+_0x612250(0x137)+'stopped\x20by'+_0x612250(0x168):(_0x56671b='[COMPLETE]'+'\x20Analysis\x20'+_0x612250(0x1a2),_0x81e241=_0x612250(0x159));}}else _0x56671b='['+_0x50aa1c+(_0x612250(0x112)+'\x20failed.'),_0x81e241=_0x50aa1c;const _0x26a3d7={'method':_0x612250(0x12c)+_0x612250(0x156)+'ss','params':{'progressToken':typeof _0x5a1135===_0x612250(0x202)?_0x5a1135:String(_0x5a1135),'progress':_0x50aa1c===_0x612250(0x159)?0x64:0x0,'message':_0x56671b,'total':0x64}};await _0x5d2411(_0x26a3d7);_0x4414e9===_0x612250(0x159)?logger[_0x612250(0x15a)](_0x612250(0x1d3)+_0x612250(0x147)+_0x612250(0x1c4)+'\x20'+_0x81e241):logger['info']('Analysis\x20f'+_0x612250(0x171)+'\x20status:\x20'+_0x81e241);const _0x9350e8={};_0x9350e8[_0x612250(0x19f)]=_0x612250(0x1eb),_0x9350e8[_0x612250(0x1eb)]=_0x612250(0x144)+'ompleted.\x0a'+_0x612250(0x164)+_0x612250(0x19a)+_0x3d75af+('\x0aFinal\x20Sta'+_0x612250(0x1f2))+_0x81e241;const _0x36c659={};_0x36c659[_0x612250(0x1f5)]=_0x3d75af,_0x36c659[_0x612250(0x170)]=_0x81e241,_0x36c659[_0x612250(0x1f0)]=_0x3faf39[_0x612250(0x1f0)],_0x36c659[_0x612250(0x12d)]=!![];const _0x13f523={};return _0x13f523[_0x612250(0x1b7)]=[_0x9350e8],_0x13f523[_0x612250(0x132)+_0x612250(0x227)]=_0x36c659,_0x13f523;}const _0x2fa6ef=_0x12bf33[_0x50aa1c];if(_0x2fa6ef){const _0x190c40={};_0x190c40[_0x612250(0x1dc)]=0x64;const _0x71d6a2={'method':_0x612250(0x12c)+_0x612250(0x156)+'ss','params':{'progressToken':typeof _0x5a1135==='string'?_0x5a1135:_0x2e7012[_0x612250(0x220)](String,_0x5a1135),'progress':_0x2fa6ef[_0x612250(0x1f6)]!==null?_0x2fa6ef[_0x612250(0x1f6)]:_0x50aa1c===_0x612250(0x1d4)?_0x802767:_0x2fa6ef['order'],'message':'['+_0x2fa6ef['id']+']\x20'+_0x2fa6ef[_0x612250(0x21f)+'n'],'total':_0x30fc48,..._0x2fa6ef[_0x612250(0x1f6)]!==null&&_0x50aa1c===_0x612250(0x1d4)&&_0x190c40}};await _0x5d2411(_0x71d6a2),_0x45ea18&&logger['info'](_0x612250(0x186)+_0x612250(0x1b0)+_0x612250(0x1fa)+_0x2fa6ef['id']+'\x20('+_0x2fa6ef[_0x612250(0x212)]+')');}else{const _0x689932={'method':_0x612250(0x12c)+_0x612250(0x156)+'ss','params':{'progressToken':typeof _0x5a1135===_0x612250(0x202)?_0x5a1135:String(_0x5a1135),'progress':0x1,'total':0x1,'message':'['+_0x50aa1c+(_0x612250(0x112)+_0x612250(0x1fc)+_0x612250(0x210))}};await _0x2e7012[_0x612250(0x1d5)](_0x5d2411,_0x689932);}}else{if(_0x50aa1c===_0x612250(0x1d4)){if(_0x3faf39[_0x612250(0x1f6)]!==undefined&&_0x3faf39['progress']!==null){_0x802767=_0x3faf39[_0x612250(0x1f6)];const _0xe0704e=_0x12bf33[_0x50aa1c],_0x2428c5={'method':_0x612250(0x12c)+'ons/progre'+'ss','params':{'progressToken':_0x2e7012[_0x612250(0x1a6)](typeof _0x5a1135,_0x2e7012[_0x612250(0x134)])?_0x5a1135:String(_0x5a1135),'progress':_0xe0704e['order'],'total':_0x30fc48,'message':_0x612250(0x1a4)+_0x612250(0x136)+_0x612250(0x12a)+_0x612250(0x209)+_0x802767+'%'}};await _0x5d2411(_0x2428c5);}}}!_0x45ea18&&logger[_0x612250(0x15a)](_0x612250(0x1fe)+_0x612250(0x1a1)+_0x612250(0x203)+'tinuing\x20st'+_0x612250(0x157)+_0x612250(0x211)+_0x612250(0x12c)+_0x612250(0x1a9));await new Promise(_0x27f7d3=>setTimeout(_0x27f7d3,intervalMs));const _0x17e8e7=_0x2e7012[_0x612250(0x14e)](Date['now'](),_0x5a77f5);if(_0x17e8e7>=maxWaitMs){logger[_0x612250(0x15a)]('Analysis\x20p'+'rogress\x20tr'+_0x612250(0x189)+'ched\x20maxWa'+_0x612250(0x19d)+maxWaitMs+_0x612250(0x1b3)+_0x3d75af);const _0x26b221={'method':_0x612250(0x12c)+_0x612250(0x156)+'ss','params':{'progressToken':typeof _0x5a1135===_0x2e7012[_0x612250(0x134)]?_0x5a1135:String(_0x5a1135),'progress':_0x802767||0x1,'total':0x64,'message':'['+(_0x15d5b3||_0x612250(0x15c)+'S')+(_0x612250(0x1e2)+_0x612250(0x221)+_0x612250(0x21a))+Math[_0x612250(0x143)](_0x17e8e7/0x3e8)+('s.\x20Analysi'+_0x612250(0x1e6)+'\x20in\x20progre'+_0x612250(0x1de))}};return await _0x5d2411(_0x26b221),{'content':[{'type':'text','text':'Analysis\x20i'+'s\x20still\x20in'+_0x612250(0x20f)+_0x612250(0x125)+_0x15d5b3+(_0x612250(0x21b)+_0x612250(0x1b2)+'fter\x20')+Math[_0x612250(0x143)](_0x17e8e7/0x3e8)+('s.\x0aPlease\x20'+_0x612250(0x190)+_0x612250(0x13f)+_0x612250(0x160)+_0x612250(0x188)+_0x612250(0x223)+_0x612250(0x1d9)+_0x612250(0x148))}],'structuredContent':{'analysisId':_0x3d75af,'status':_0x15d5b3,'completed':![],'elapsedMs':_0x17e8e7}};}}catch(_0x3a3e0a){logger[_0x612250(0x11d)](_0x612250(0x178)+_0x612250(0x123)+'sis\x20status'+'\x20('+_0x3d75af+'):',_0x3a3e0a),await new Promise(_0x2b3f8a=>setTimeout(_0x2b3f8a,intervalMs));}}}catch(_0x3a8e88){logger[_0x612250(0x11d)]('Analysis\x20p'+_0x612250(0x1ad)+_0x612250(0x1e4)+_0x612250(0x1c2),_0x3a8e88);const _0x59b3a3={};_0x59b3a3[_0x612250(0x19f)]=_0x612250(0x1eb),_0x59b3a3[_0x612250(0x1eb)]=_0x612250(0x1a3)+_0x612250(0x1ad)+_0x612250(0x1e4)+_0x612250(0x172)+(_0x3a8e88 instanceof Error?_0x3a8e88['message']:_0x612250(0x151)+_0x612250(0x169));const _0x1c4333={};_0x1c4333[_0x612250(0x11d)]=_0x3a8e88 instanceof Error?_0x3a8e88[_0x612250(0x1e3)]:_0x612250(0x151)+_0x612250(0x169);const _0x37cbce={};return _0x37cbce[_0x612250(0x1b7)]=[_0x59b3a3],_0x37cbce[_0x612250(0x132)+_0x612250(0x227)]=_0x1c4333,_0x37cbce[_0x612250(0x115)]=!![],_0x37cbce;}}}
1
+ function a7_0x3025(_0x46a63a,_0x58b326){_0x46a63a=_0x46a63a-0x198;const _0x1cbf0c=a7_0x5308();let _0x38e890=_0x1cbf0c[_0x46a63a];return _0x38e890;}const a7_0x34f754=a7_0x3025;(function(_0x138882,_0x9afa1){const _0x44bd47=a7_0x3025,_0x262468=_0x138882();while(!![]){try{const _0x2eeae8=-parseInt(_0x44bd47(0x20a))/0x1*(-parseInt(_0x44bd47(0x1bd))/0x2)+-parseInt(_0x44bd47(0x2b0))/0x3+-parseInt(_0x44bd47(0x294))/0x4+-parseInt(_0x44bd47(0x21d))/0x5+parseInt(_0x44bd47(0x23c))/0x6*(-parseInt(_0x44bd47(0x299))/0x7)+-parseInt(_0x44bd47(0x2ae))/0x8*(-parseInt(_0x44bd47(0x26e))/0x9)+parseInt(_0x44bd47(0x25b))/0xa*(parseInt(_0x44bd47(0x237))/0xb);if(_0x2eeae8===_0x9afa1)break;else _0x262468['push'](_0x262468['shift']());}catch(_0xaba336){_0x262468['push'](_0x262468['shift']());}}}(a7_0x5308,0x9f4b6));const a7_0x1ae4cb=(function(){let _0x4e272a=!![];return function(_0xa1a1c,_0x41ad69){const _0x52750d=_0x4e272a?function(){if(_0x41ad69){const _0x213853=_0x41ad69['apply'](_0xa1a1c,arguments);return _0x41ad69=null,_0x213853;}}:function(){};return _0x4e272a=![],_0x52750d;};}()),a7_0x38e890=a7_0x1ae4cb(this,function(){const _0xd2e37f=a7_0x3025;return a7_0x38e890['toString']()[_0xd2e37f(0x198)]('(((.+)+)+)'+'+$')[_0xd2e37f(0x26b)]()['constructo'+'r'](a7_0x38e890)['search'](_0xd2e37f(0x1af)+'+$');});a7_0x38e890();import{logger}from'../utils/logger.js';import{ANALYSIS_STAGES}from'../config/constants.js';function a7_0x5308(){const _0x4711e0=['token','trackAnaly','_analysis_','CTdqE',']\x20Analysis','SmTaB','\x20needed.','\x20progress\x20','\x0a\x0a...\x20(Sho','s\x20ID:\x20','string','valid,\x20con','4463410VUuWCd','HIGH','analysisSe','compliance','ng\x0a','ailed\x20with','length','Progress\x20n','\x20|\x0a|\x20High\x20','analysisBr','fied.','in\x20progres','.\x20[','structured',')\x0a\x20\x20\x20-\x20설명:','fixedVersi','\x0a-\x20Status:','ons/progre','itMs\x20(','tatus\x20chec','SUCCESS','rt\x0a\x0a##\x20Sum','nents\x20|\x20','lete\x20prope','ted:\x20','sis\x20Briefi','4924546QgfSiZ','highCount','No\x20vulnera','\x20|\x0a|\x20Total','\x20paused\x20af','516GlTDdN','_meta','\x0a\x0a##\x20Compo','(Status:\x20','\x20\x20\x20','version','\x20|\x0a\x0a##\x20Ana','cation','some','ompleted.\x0a','\x20|\x0a|\x20Statu','**\x20(','COMPLETE','led:','reference','s.\x20Analysi','oken\x20not\x20p','isError','Analysis\x20s','progress','find','oken\x20is\x20no','\x0a\x0a##\x20Remed','rted:\x20','DDFhz','s:\x20','severity','sisProgres','\x20longer\x20va','\x20failed.','UpdRw','40GaXlIC','invalid\x20to','[COMPLETE]','get\x20analys','\x20from\x20`','Final\x20anal','FAILED','alysis\x20res','unt','fing\x0a','k\x20failed:','filePath','result','cal\x20|\x20','\x20|\x0a|\x20Criti','\x0a\x0a##\x20Analy','toString','Progress\x20T','will\x20retry','1836wlAwxt','trim','round','descriptio','[FAIL]\x20Ana','toUpperCas','content','name','rogress\x20tr','text','\x0a-\x20Result:','-\x20**','vulnerabil','ief','getAnalysi','te\x20action.','lineNumber','t\x20|\x20Versio','rabilities','toLowerCas','checkerInf','lities\x20|\x20','MEDIUM','warn','checkerKey','rvice','order','join','get\x20SCA\x20an','s\x20|\x20','s\x20is\x20still','issues','progress\x20a','ing\x20progre','sStatus','[ANALYSIS]','ched\x20maxWa','ANALYSIS','3245312SABNuu','acking\x20rea','ysisResult','erity\x20issu','N/A','11739jXGKxp','ixed\x20in:\x20','\x0a\x20\x20\x20\x20\x20\x20','STOP','Failed\x20to\x20','getScaAnal','ms):\x20','IN_PROGRES','Analysis\x20f','sendNotifi','is\x20results','WWFIK','rability\x20D','error','tinuing\x20st','\x0a\x0a##\x20Disco','`\x20to\x20`','\x20status:\x20','\x20in\x20progre','n\x20|\x20Licens','e\x20|\x0a|-----','12776IXkLkW','rt\x20progres','326985uduhNP','iation\x20Gui','\x20requested','ested:\x20','keys','search','\x0a\x20\x20\x20\x20\x20\x20-\x20','Error\x20chec','\x20(CVSS:\x20','(C/H/M/L)\x20','\x0a\x20\x20\x20\x20\x20\x20-\x20F','ls\x0a','\x0a-\x20Vulnera','otificatio','ons','mediumCoun','D:\x20','ed\x20to\x20comp','vered\x20Vuln','\x20|\x20','ss...','oken\x20is\x20in','acking\x20sta','\x0aProgress:','led:\x20','sis\x20status','status','|\x20Componen','(((.+)+)+)','Content','\x20request.','s\x20Overview','g\x20paused\x20a','must\x20suppo','completed.','includes','ss\x20notific','s\x20tracking','total','components','s\x20without\x20','tatus\x20upda','10EUfeio','lid,\x20stopp','Unknown\x20er','FAIL','uested:\x20','lysis\x20fail',').\x0aTrackin','No\x20critica','----|-----','l/high\x20sev','s\x20updated:','now','):\x20','---|------','abilities\x20','substring','nts\x20identi','Progress\x20t','he\x20client\x20','\x0a\x20\x20\x20-\x20컴플라이','n\x20failed\x20(','uctgW','[SUCCESS]\x20','call\x20track','ysis\x20statu','tus:\x20','ng\x20immedia','Analysis\x20c','lowCount','atus\x20check','message','ompleted\x20s','ss.','|\x0a|-------',']\x20**','uccessfull','notificati','ound.','\x20Analysis\x20','de\x0a','--|','vTXSG','map','언스:\x20','\x20Results\x0a\x0a','samwZ','info','criticalCo','ults:\x20','###\x20','ound:\x20','analysisId','[STOP]\x20Ana','CRITICAL','ror','wing\x20','gain\x20to\x20co','bcQHC','\x0a\x20\x20\x20-\x20파일:\x20','esults\x20req','filter','\x0a#\x20Securit','mary\x0a|\x20Met','\x20|\x0a|\x20Compo','bilities\x20f','\x20|\x0a|\x20Mediu','ken','completed','\x20Vulnerabi','sResults','ter\x20','ric\x20|\x20Valu','type','lysis\x20Repo',']\x20Tracking','acking\x20fai','es\x20requiri','98633pximhc','etails\x0a','Analysis\x20p','sis\x20ID\x20|\x20','JqNQI','Unknown','cvssScore'];a7_0x5308=function(){return _0x4711e0;};return a7_0x5308();}export class AnalysisController{['analysisSe'+a7_0x34f754(0x287)];constructor(_0x207943){const _0x26a928=a7_0x34f754;this['analysisSe'+_0x26a928(0x287)]=_0x207943;}async['getAnalysi'+a7_0x34f754(0x290)]({analysisId:_0x5b8095}){const _0x22cbdc=a7_0x34f754,_0x1086c5={};_0x1086c5[_0x22cbdc(0x1d2)]=function(_0x585515,_0x4ac207){return _0x585515===_0x4ac207;};const _0x9b2b7f=_0x1086c5;try{if('SmTaB'!==_0x22cbdc(0x216)){if(_0x2bd6eb['length']<=_0x359b42)return _0x3b0745;return _0x56b8d0['substring'](0x0,_0x1485ce)+(_0x22cbdc(0x219)+_0x22cbdc(0x1f4)+_0x22c6c6+'\x20of\x20'+_0x400aa4[_0x22cbdc(0x223)]+('\x20character'+'s)'));}else{logger['info'](_0x22cbdc(0x24e)+'tatus\x20requ'+_0x22cbdc(0x2b3)+_0x5b8095);const _0x40acc2=await this[_0x22cbdc(0x21f)+_0x22cbdc(0x287)][_0x22cbdc(0x27c)+'sStatus'](_0x5b8095),_0x470cae=_0x9b2b7f[_0x22cbdc(0x1d2)](_0x40acc2[_0x22cbdc(0x1ad)],'COMPLETE')&&_0x40acc2[_0x22cbdc(0x267)]?_0x40acc2[_0x22cbdc(0x267)]:_0x40acc2[_0x22cbdc(0x1ad)],_0x54abd8={};_0x54abd8[_0x22cbdc(0x205)]=_0x22cbdc(0x277),_0x54abd8[_0x22cbdc(0x277)]='Analysis\x20S'+'tatus:\x20'+_0x470cae+(_0x22cbdc(0x1aa)+'\x20')+(_0x40acc2[_0x22cbdc(0x24f)]||0x0)+('%\x0aMessage:'+'\x20')+(_0x40acc2[_0x22cbdc(0x1db)]||_0x22cbdc(0x298));const _0x20d98b={};_0x20d98b[_0x22cbdc(0x1f0)]=_0x5b8095,_0x20d98b[_0x22cbdc(0x1ad)]=_0x470cae,_0x20d98b[_0x22cbdc(0x267)]=_0x40acc2[_0x22cbdc(0x267)],_0x20d98b[_0x22cbdc(0x24f)]=_0x40acc2['progress'],_0x20d98b[_0x22cbdc(0x1db)]=_0x40acc2[_0x22cbdc(0x1db)];const _0x27b802={};return _0x27b802[_0x22cbdc(0x274)]=[_0x54abd8],_0x27b802[_0x22cbdc(0x22a)+_0x22cbdc(0x1b0)]=_0x20d98b,_0x27b802;}}catch(_0x27afc2){logger[_0x22cbdc(0x2a6)](_0x22cbdc(0x24e)+_0x22cbdc(0x230)+_0x22cbdc(0x265),_0x27afc2);const _0x25caff={};_0x25caff[_0x22cbdc(0x205)]=_0x22cbdc(0x277),_0x25caff['text']='Failed\x20to\x20'+_0x22cbdc(0x25e)+'is\x20status:'+'\x20'+(_0x27afc2 instanceof Error?_0x27afc2[_0x22cbdc(0x1db)]:'Unknown\x20er'+_0x22cbdc(0x1f3));const _0x58a637={};_0x58a637[_0x22cbdc(0x2a6)]=_0x27afc2 instanceof Error?_0x27afc2[_0x22cbdc(0x1db)]:_0x22cbdc(0x1bf)+_0x22cbdc(0x1f3);const _0x3fddc3={};return _0x3fddc3['content']=[_0x25caff],_0x3fddc3[_0x22cbdc(0x22a)+_0x22cbdc(0x1b0)]=_0x58a637,_0x3fddc3;}}async[a7_0x34f754(0x27c)+'sResults']({analysisId:_0x2ee473}){const _0x30ed17=a7_0x34f754;try{logger[_0x30ed17(0x1eb)]('Analysis\x20r'+_0x30ed17(0x1f8)+_0x30ed17(0x1c1)+_0x2ee473);const _0xcfb0ae=await this[_0x30ed17(0x21f)+_0x30ed17(0x287)][_0x30ed17(0x27c)+_0x30ed17(0x202)](_0x2ee473),_0x5997c5=_0xcfb0ae[_0x30ed17(0x267)]??_0xcfb0ae['status'],_0xb25d6a=0x7a120,_0x44062a=(_0x42d932,_0x11ff80)=>{const _0x22cee3=_0x30ed17;if(_0x42d932[_0x22cee3(0x223)]<=_0x11ff80)return _0x42d932;return _0x42d932[_0x22cee3(0x1cc)](0x0,_0x11ff80)+(_0x22cee3(0x219)+'wing\x20'+_0x11ff80+'\x20of\x20'+_0x42d932[_0x22cee3(0x223)]+('\x20character'+'s)'));},_0x3b6c49=_0xcfb0ae[_0x30ed17(0x27a)+'ities'][_0x30ed17(0x1e7)]((_0x13ff20,_0x264ad1)=>{const _0x1981e9=_0x30ed17,_0xac8e28=_0x13ff20['checkerInf'+'o']?.[_0x1981e9(0x275)]||_0x13ff20[_0x1981e9(0x286)],_0x30fc89=_0x13ff20[_0x1981e9(0x282)+'o']?.[_0x1981e9(0x271)+'n']||_0x13ff20[_0x1981e9(0x271)+'n'],_0x366e71=_0x13ff20[_0x1981e9(0x282)+'o']?.[_0x1981e9(0x220)]&&_0x13ff20['checkerInf'+'o'][_0x1981e9(0x220)][_0x1981e9(0x223)]>0x0?_0x1981e9(0x1d0)+_0x1981e9(0x1e8)+_0x13ff20[_0x1981e9(0x282)+'o']['compliance'][_0x1981e9(0x1e7)](_0x27938c=>''+_0x27938c['reference'][_0x1981e9(0x275)]+(_0x27938c[_0x1981e9(0x24a)][_0x1981e9(0x241)]?'\x20('+_0x27938c[_0x1981e9(0x24a)]['version']+')':''))[_0x1981e9(0x289)](',\x20'):'';return _0x264ad1+0x1+'.\x20['+_0x13ff20[_0x1981e9(0x256)]+_0x1981e9(0x1df)+_0xac8e28+_0x1981e9(0x247)+_0x13ff20[_0x1981e9(0x286)]+(_0x1981e9(0x22b)+'\x20')+_0x30fc89+(_0x13ff20[_0x1981e9(0x266)]?_0x1981e9(0x1f7)+_0x13ff20[_0x1981e9(0x266)]+(_0x13ff20[_0x1981e9(0x27e)]?':'+_0x13ff20['lineNumber']:''):'')+_0x366e71;})['join']('\x0a\x0a'),_0x2559c6=(_0x30ed17(0x1fa)+'y\x20Analysis'+_0x30ed17(0x1e9)+'##\x20Analysi'+_0x30ed17(0x1b2)+'\x0a-\x20Analysi'+_0x30ed17(0x21a)+_0xcfb0ae['analysisId']+(_0x30ed17(0x22d)+'\x20')+_0x5997c5+(_0x30ed17(0x278)+'\x20')+(_0xcfb0ae[_0x30ed17(0x267)]||_0x30ed17(0x298))+(_0x30ed17(0x19f)+'bilities\x20F'+_0x30ed17(0x1ef))+_0xcfb0ae[_0x30ed17(0x27a)+'ities'][_0x30ed17(0x223)]+(_0x30ed17(0x26a)+_0x30ed17(0x236)+_0x30ed17(0x221))+_0x44062a(_0xcfb0ae[_0x30ed17(0x226)+'ief']||'',_0xb25d6a)+(_0x30ed17(0x2a8)+_0x30ed17(0x1a5)+'erabilitie'+'s\x0a')+_0x44062a(_0x3b6c49,_0xb25d6a)+'\x0a\x20\x20\x20\x20\x20\x20')[_0x30ed17(0x26f)](),_0x3a3cd4={'analysisId':_0xcfb0ae[_0x30ed17(0x1f0)],'status':_0x5997c5,'result':_0xcfb0ae[_0x30ed17(0x267)],'vulnerabilities':_0xcfb0ae[_0x30ed17(0x27a)+'ities'],'analysisBrief':_0xcfb0ae[_0x30ed17(0x226)+_0x30ed17(0x27b)]?_0x44062a(_0xcfb0ae['analysisBr'+_0x30ed17(0x27b)],_0xb25d6a):''},_0x474b88={};_0x474b88[_0x30ed17(0x205)]=_0x30ed17(0x277),_0x474b88[_0x30ed17(0x277)]=_0x2559c6;const _0x296671={};return _0x296671[_0x30ed17(0x274)]=[_0x474b88],_0x296671[_0x30ed17(0x22a)+'Content']=_0x3a3cd4,_0x296671;}catch(_0x42c7ee){logger[_0x30ed17(0x2a6)](_0x30ed17(0x29d)+_0x30ed17(0x25e)+_0x30ed17(0x2a3)+':',_0x42c7ee);const _0x4566c5=_0x42c7ee instanceof Error?_0x42c7ee[_0x30ed17(0x1db)]:'Unknown\x20er'+_0x30ed17(0x1f3),_0x55ce20={};_0x55ce20[_0x30ed17(0x205)]=_0x30ed17(0x277),_0x55ce20[_0x30ed17(0x277)]=_0x30ed17(0x29d)+_0x30ed17(0x25e)+_0x30ed17(0x2a3)+':\x20'+_0x4566c5;const _0x13ef01={};_0x13ef01[_0x30ed17(0x2a6)]=_0x4566c5;const _0x4f78c3={};return _0x4f78c3[_0x30ed17(0x274)]=[_0x55ce20],_0x4f78c3['structured'+'Content']=_0x13ef01,_0x4f78c3['isError']=!![],_0x4f78c3;}}async[a7_0x34f754(0x29e)+a7_0x34f754(0x296)+'s']({analysisId:_0x295752}){const _0x20fe1f=a7_0x34f754,_0x349392={};_0x349392['samwZ']=_0x20fe1f(0x1c4)+_0x20fe1f(0x1c6)+_0x20fe1f(0x297)+_0x20fe1f(0x209)+_0x20fe1f(0x1d7)+_0x20fe1f(0x27d);const _0x583235=_0x349392;try{logger[_0x20fe1f(0x1eb)]('SCA\x20analys'+_0x20fe1f(0x2a3)+_0x20fe1f(0x2b2)+':\x20'+_0x295752);const _0x3f4f1a=await this[_0x20fe1f(0x21f)+'rvice'][_0x20fe1f(0x29e)+_0x20fe1f(0x296)+'s'](_0x295752),_0x1be97a=_0x3f4f1a[_0x20fe1f(0x267)]??_0x3f4f1a[_0x20fe1f(0x1ad)],_0x274b15=_0x20fe1f(0x1ae)+_0x20fe1f(0x27f)+_0x20fe1f(0x2ac)+'e\x20|\x20Vulner'+_0x20fe1f(0x1cb)+_0x20fe1f(0x19c)+_0x20fe1f(0x1de)+_0x20fe1f(0x1c5)+_0x20fe1f(0x1c5)+_0x20fe1f(0x1c5)+'----------'+'----------'+_0x20fe1f(0x1e5),_0x568ab0=_0x3f4f1a[_0x20fe1f(0x1ba)]['map'](_0x2d1525=>{const _0x4d65a6=_0x20fe1f,_0x459605=_0x2d1525['licenses'][_0x4d65a6(0x223)]>0x0?_0x2d1525['licenses'][_0x4d65a6(0x1e7)](_0x2adc3d=>_0x2adc3d[_0x4d65a6(0x275)])['join'](',\x20'):_0x4d65a6(0x20f),_0x148c4c=_0x2d1525[_0x4d65a6(0x28d)][_0x4d65a6(0x1f9)](_0x26fa58=>_0x26fa58[_0x4d65a6(0x256)]===_0x4d65a6(0x1f2))[_0x4d65a6(0x223)],_0x3cd88f=_0x2d1525[_0x4d65a6(0x28d)][_0x4d65a6(0x1f9)](_0x4e9e08=>_0x4e9e08[_0x4d65a6(0x256)]===_0x4d65a6(0x21e))[_0x4d65a6(0x223)],_0x2ab985=_0x2d1525[_0x4d65a6(0x28d)][_0x4d65a6(0x1f9)](_0x347861=>_0x347861['severity']===_0x4d65a6(0x284))[_0x4d65a6(0x223)],_0x40344a=_0x2d1525[_0x4d65a6(0x28d)][_0x4d65a6(0x1f9)](_0x638d25=>_0x638d25[_0x4d65a6(0x256)]==='LOW')[_0x4d65a6(0x223)],_0x46e4db=_0x148c4c+_0x3cd88f+_0x2ab985+_0x40344a+'\x20('+_0x148c4c+'/'+_0x3cd88f+'/'+_0x2ab985+'/'+_0x40344a+')';return'|\x20'+_0x2d1525[_0x4d65a6(0x275)]+_0x4d65a6(0x1a6)+_0x2d1525[_0x4d65a6(0x241)]+_0x4d65a6(0x1a6)+_0x459605+_0x4d65a6(0x1a6)+_0x46e4db+'\x20|';})['join']('\x0a'),_0x45b048=_0x3f4f1a[_0x20fe1f(0x1ba)]['length']>0x0?_0x274b15+'\x0a'+_0x568ab0:'No\x20compone'+_0x20fe1f(0x1cd)+_0x20fe1f(0x227),_0x24a46e=_0x3f4f1a['components'][_0x20fe1f(0x1f9)](_0x405c8b=>_0x405c8b['issues']['length']>0x0)[_0x20fe1f(0x1e7)](_0x13ccb3=>{const _0x1440ed=_0x20fe1f,_0x5abfab=_0x13ccb3['issues']['map']((_0x24231c,_0x2fcf85)=>{const _0x44dde0=a7_0x3025;let _0x10cf75=_0x44dde0(0x240)+(_0x2fcf85+0x1)+_0x44dde0(0x229)+_0x24231c[_0x44dde0(0x256)]+_0x44dde0(0x1df)+_0x24231c['cveId']+'**';if(_0x24231c[_0x44dde0(0x210)])_0x10cf75+=_0x44dde0(0x19b)+_0x24231c[_0x44dde0(0x210)]+')';if(_0x24231c[_0x44dde0(0x271)+'n'])_0x10cf75+=_0x44dde0(0x199)+_0x24231c[_0x44dde0(0x271)+'n'];if(_0x24231c[_0x44dde0(0x22c)+'on'])_0x10cf75+=_0x44dde0(0x19d)+_0x44dde0(0x29a)+_0x24231c[_0x44dde0(0x22c)+'on'];return _0x10cf75;})['join']('\x0a');return _0x1440ed(0x1ee)+_0x13ccb3[_0x1440ed(0x275)]+'@'+_0x13ccb3[_0x1440ed(0x241)]+'\x0a'+_0x5abfab;})['join']('\x0a\x0a'),_0x344907=_0x3f4f1a[_0x20fe1f(0x1ba)][_0x20fe1f(0x1f9)](_0x30a9f2=>_0x30a9f2[_0x20fe1f(0x28d)][_0x20fe1f(0x244)](_0x4f8500=>_0x4f8500[_0x20fe1f(0x256)]===_0x20fe1f(0x1f2)||_0x4f8500[_0x20fe1f(0x256)]===_0x20fe1f(0x21e)))['map'](_0x361689=>{const _0x1bc9f2=_0x20fe1f,_0x288027=_0x361689[_0x1bc9f2(0x28d)][_0x1bc9f2(0x250)](_0x5955ca=>_0x5955ca['severity']==='CRITICAL'||_0x5955ca[_0x1bc9f2(0x256)]===_0x1bc9f2(0x21e)),_0x333217=_0x288027?.['fixedVersi'+'on']||'latest';return _0x1bc9f2(0x279)+_0x361689[_0x1bc9f2(0x275)]+('**:\x20Update'+_0x1bc9f2(0x25f))+_0x361689['version']+_0x1bc9f2(0x2a9)+_0x333217+'`';})[_0x20fe1f(0x289)]('\x0a'),_0x134d9a=('\x0a#\x20SCA\x20Ana'+_0x20fe1f(0x206)+_0x20fe1f(0x232)+_0x20fe1f(0x1fb)+_0x20fe1f(0x204)+_0x20fe1f(0x2ad)+_0x20fe1f(0x1ca)+'-|\x0a|\x20Analy'+_0x20fe1f(0x20d)+_0x3f4f1a[_0x20fe1f(0x1f0)]+(_0x20fe1f(0x246)+_0x20fe1f(0x28b))+_0x1be97a+(_0x20fe1f(0x1fc)+_0x20fe1f(0x233))+_0x3f4f1a[_0x20fe1f(0x1ba)][_0x20fe1f(0x223)]+(_0x20fe1f(0x23a)+_0x20fe1f(0x201)+_0x20fe1f(0x283))+_0x3f4f1a['totalVulne'+_0x20fe1f(0x280)]+(_0x20fe1f(0x269)+_0x20fe1f(0x268))+_0x3f4f1a[_0x20fe1f(0x1ec)+_0x20fe1f(0x263)]+(_0x20fe1f(0x225)+'|\x20')+_0x3f4f1a[_0x20fe1f(0x238)]+(_0x20fe1f(0x1fe)+'m\x20|\x20')+_0x3f4f1a[_0x20fe1f(0x1a2)+'t']+('\x20|\x0a|\x20Low\x20|'+'\x20')+_0x3f4f1a[_0x20fe1f(0x1d9)]+(_0x20fe1f(0x242)+'lysis\x20Brie'+_0x20fe1f(0x264))+_0x3f4f1a[_0x20fe1f(0x226)+_0x20fe1f(0x27b)]+(_0x20fe1f(0x23e)+'nent\x20Detai'+_0x20fe1f(0x19e))+_0x45b048+('\x0a\x0a##\x20Vulne'+_0x20fe1f(0x2a5)+_0x20fe1f(0x20b))+(_0x24a46e||_0x20fe1f(0x239)+_0x20fe1f(0x1fd)+_0x20fe1f(0x1e2))+(_0x20fe1f(0x252)+_0x20fe1f(0x2b1)+_0x20fe1f(0x1e4))+(_0x344907||_0x583235[_0x20fe1f(0x1ea)])+_0x20fe1f(0x29b))[_0x20fe1f(0x26f)](),_0x901566={};_0x901566[_0x20fe1f(0x1f0)]=_0x3f4f1a['analysisId'],_0x901566[_0x20fe1f(0x1ad)]=_0x1be97a,_0x901566[_0x20fe1f(0x267)]=_0x3f4f1a['result'],_0x901566['components']=_0x3f4f1a['components'],_0x901566['totalVulne'+_0x20fe1f(0x280)]=_0x3f4f1a['totalVulne'+_0x20fe1f(0x280)],_0x901566[_0x20fe1f(0x1ec)+_0x20fe1f(0x263)]=_0x3f4f1a[_0x20fe1f(0x1ec)+'unt'],_0x901566['highCount']=_0x3f4f1a[_0x20fe1f(0x238)],_0x901566['mediumCoun'+'t']=_0x3f4f1a['mediumCoun'+'t'],_0x901566[_0x20fe1f(0x1d9)]=_0x3f4f1a[_0x20fe1f(0x1d9)],_0x901566[_0x20fe1f(0x226)+'ief']=_0x3f4f1a[_0x20fe1f(0x226)+_0x20fe1f(0x27b)];const _0x53f3a6=_0x901566,_0x2a4b13={};_0x2a4b13['type']=_0x20fe1f(0x277),_0x2a4b13['text']=_0x134d9a;const _0x9ac991={};return _0x9ac991[_0x20fe1f(0x274)]=[_0x2a4b13],_0x9ac991['structured'+'Content']=_0x53f3a6,_0x9ac991;}catch(_0xc73586){logger[_0x20fe1f(0x2a6)](_0x20fe1f(0x29d)+_0x20fe1f(0x28a)+_0x20fe1f(0x262)+'ults:',_0xc73586);const _0x350cc3=_0xc73586 instanceof Error?_0xc73586[_0x20fe1f(0x1db)]:_0x20fe1f(0x1bf)+_0x20fe1f(0x1f3),_0x4b2cb1={};_0x4b2cb1[_0x20fe1f(0x205)]=_0x20fe1f(0x277),_0x4b2cb1[_0x20fe1f(0x277)]='Failed\x20to\x20'+_0x20fe1f(0x28a)+_0x20fe1f(0x262)+_0x20fe1f(0x1ed)+_0x350cc3;const _0x55548e={};_0x55548e['error']=_0x350cc3;const _0x56e036={};return _0x56e036[_0x20fe1f(0x274)]=[_0x4b2cb1],_0x56e036[_0x20fe1f(0x22a)+_0x20fe1f(0x1b0)]=_0x55548e,_0x56e036[_0x20fe1f(0x24d)]=!![],_0x56e036;}}async[a7_0x34f754(0x212)+a7_0x34f754(0x257)+'s']({analysisId:_0x54e01d,intervalMs:intervalMs=0xbb8,maxWaitMs:maxWaitMs=0x7530},_0x24bd67){const _0x353d9f=a7_0x34f754,_0x3f6140={'vTXSG':function(_0x4c5a34,_0x186b66){return _0x4c5a34(_0x186b66);},'JqNQI':_0x353d9f(0x1c0),'DDFhz':function(_0x59ad69,_0x31cc6f){return _0x59ad69===_0x31cc6f;},'CTdqE':function(_0x3c410c,_0x201c66){return _0x3c410c(_0x201c66);},'WWFIK':function(_0x2acf4f,_0x20715b){return _0x2acf4f-_0x20715b;},'bcQHC':_0x353d9f(0x1e1)+'ons/progre'+'ss','UpdRw':_0x353d9f(0x20c)+'rogress\x20tr'+_0x353d9f(0x208)+_0x353d9f(0x249)};try{const _0x479ae6=_0x24bd67[_0x353d9f(0x23d)]?.['progressTo'+_0x353d9f(0x1ff)];if(!_0x479ae6){const _0x96d9e8={};_0x96d9e8[_0x353d9f(0x205)]='text',_0x96d9e8[_0x353d9f(0x277)]=_0x353d9f(0x26c)+_0x353d9f(0x24c)+'rovided.\x20T'+_0x353d9f(0x1cf)+_0x353d9f(0x1b4)+_0x353d9f(0x2af)+_0x353d9f(0x1b8)+'.';const _0x3a8699={};_0x3a8699[_0x353d9f(0x2a6)]='Progress\x20T'+'oken\x20not\x20p'+'rovided';const _0x4ceb63={};return _0x4ceb63[_0x353d9f(0x274)]=[_0x96d9e8],_0x4ceb63['structured'+_0x353d9f(0x1b0)]=_0x3a8699,_0x4ceb63;}logger[_0x353d9f(0x1eb)](_0x353d9f(0x20c)+_0x353d9f(0x276)+_0x353d9f(0x1a9)+_0x353d9f(0x253)+_0x54e01d);const _0x36f687=ANALYSIS_STAGES;let _0x1d07e6=Object[_0x353d9f(0x2b4)](_0x36f687)['length'],_0x4d2116=null,_0x3ceae0=0x0,_0x31f81f=!![];const _0x3fc165=Date[_0x353d9f(0x1c8)](),_0x2788f0=async _0x4f3bf7=>{const _0x588a5d=_0x353d9f;if(!_0x31f81f)return![];try{return await _0x24bd67[_0x588a5d(0x2a2)+_0x588a5d(0x243)](_0x4f3bf7),!![];}catch(_0x5cf02d){const _0x5f0974=_0x5cf02d instanceof Error?_0x5cf02d[_0x588a5d(0x1db)]:_0x588a5d(0x1bf)+_0x588a5d(0x1f3);return _0x5f0974[_0x588a5d(0x1b6)]('unknown\x20to'+'ken')||_0x5f0974[_0x588a5d(0x1b6)](_0x588a5d(0x25c)+_0x588a5d(0x1ff))||_0x5f0974[_0x588a5d(0x1b6)]('expired\x20to'+_0x588a5d(0x1ff))||_0x5f0974[_0x588a5d(0x281)+'e']()[_0x588a5d(0x1b6)](_0x588a5d(0x211))?(_0x31f81f=![],logger['warn'](_0x588a5d(0x1ce)+_0x588a5d(0x251)+_0x588a5d(0x258)+_0x588a5d(0x1be)+_0x588a5d(0x28f)+_0x588a5d(0x1b7)+'ations:\x20'+_0x5f0974)):logger[_0x588a5d(0x285)](_0x588a5d(0x224)+_0x588a5d(0x1a0)+_0x588a5d(0x1d1)+_0x588a5d(0x26d)+_0x588a5d(0x1c9)+_0x5f0974),![];}};while(!![]){try{const _0x3f4c28=await this['analysisSe'+_0x353d9f(0x287)][_0x353d9f(0x27c)+'sStatus'](_0x54e01d),_0x13868e=String(_0x3f4c28[_0x353d9f(0x1ad)])[_0x353d9f(0x273)+'e'](),_0x3ed34f=String(_0x3f4c28[_0x353d9f(0x1ad)])[_0x353d9f(0x273)+'e'](),_0x414d44=_0x3ed34f===_0x353d9f(0x248)&&_0x3f4c28['result']?_0x3f6140[_0x353d9f(0x1e6)](String,_0x3f4c28[_0x353d9f(0x267)])[_0x353d9f(0x273)+'e']():_0x13868e;if(_0x4d2116!==_0x13868e){_0x4d2116=_0x13868e;if(_0x3ed34f===_0x353d9f(0x248)||_0x13868e===_0x3f6140[_0x353d9f(0x20e)]||_0x13868e===_0x353d9f(0x261)){let _0x2c81b6,_0x3de24c;if(_0x3ed34f==='COMPLETE'){const _0x30d8ea=_0x3f4c28['result']?String(_0x3f4c28[_0x353d9f(0x267)])[_0x353d9f(0x273)+'e']():undefined;_0x3de24c=_0x30d8ea||'COMPLETE';if(_0x30d8ea===_0x353d9f(0x231))_0x2c81b6=_0x353d9f(0x1d3)+_0x353d9f(0x1d8)+_0x353d9f(0x1dc)+_0x353d9f(0x1e0)+'y.';else{if(_0x30d8ea===_0x353d9f(0x1c0))_0x2c81b6=_0x353d9f(0x272)+_0x353d9f(0x1c2)+_0x353d9f(0x1a4)+_0x353d9f(0x234)+'rly.';else _0x30d8ea===_0x353d9f(0x29c)?_0x2c81b6=_0x353d9f(0x1f1)+'lysis\x20was\x20'+'stopped\x20by'+_0x353d9f(0x1b1):(_0x2c81b6=_0x353d9f(0x25d)+_0x353d9f(0x1e3)+_0x353d9f(0x1b5),_0x3de24c=_0x353d9f(0x248));}}else _0x2c81b6='['+_0x13868e+(']\x20Analysis'+_0x353d9f(0x259)),_0x3de24c=_0x13868e;const _0x25268e={'method':'notificati'+'ons/progre'+'ss','params':{'progressToken':typeof _0x479ae6===_0x353d9f(0x21b)?_0x479ae6:String(_0x479ae6),'progress':_0x3f6140[_0x353d9f(0x254)](_0x13868e,_0x353d9f(0x248))?0x64:0x0,'message':_0x2c81b6,'total':0x64}};await _0x2788f0(_0x25268e);_0x3ed34f==='COMPLETE'?logger[_0x353d9f(0x1eb)](_0x353d9f(0x260)+_0x353d9f(0x1d5)+_0x353d9f(0x1c7)+'\x20'+_0x3de24c):logger['info'](_0x353d9f(0x2a1)+_0x353d9f(0x222)+_0x353d9f(0x2aa)+_0x3de24c);const _0x278d40={};_0x278d40[_0x353d9f(0x205)]=_0x353d9f(0x277),_0x278d40[_0x353d9f(0x277)]=_0x353d9f(0x1d8)+_0x353d9f(0x245)+'Analysis\x20I'+_0x353d9f(0x1a3)+_0x54e01d+('\x0aFinal\x20Sta'+_0x353d9f(0x1d6))+_0x3de24c;const _0x1e89a3={};_0x1e89a3['analysisId']=_0x54e01d,_0x1e89a3[_0x353d9f(0x1ad)]=_0x3de24c,_0x1e89a3['result']=_0x3f4c28[_0x353d9f(0x267)],_0x1e89a3[_0x353d9f(0x200)]=!![];const _0x20de9c={};return _0x20de9c[_0x353d9f(0x274)]=[_0x278d40],_0x20de9c[_0x353d9f(0x22a)+_0x353d9f(0x1b0)]=_0x1e89a3,_0x20de9c;}const _0x4b5a20=_0x36f687[_0x13868e];if(_0x4b5a20){const _0x3a6939={};_0x3a6939[_0x353d9f(0x1b9)]=0x64;const _0x5e765b={'method':_0x353d9f(0x1e1)+'ons/progre'+'ss','params':{'progressToken':typeof _0x479ae6===_0x353d9f(0x21b)?_0x479ae6:String(_0x479ae6),'progress':_0x4b5a20[_0x353d9f(0x24f)]!==null?_0x4b5a20[_0x353d9f(0x24f)]:_0x13868e===_0x353d9f(0x293)?_0x3ceae0:_0x4b5a20[_0x353d9f(0x288)],'message':'['+_0x4b5a20['id']+']\x20'+_0x4b5a20[_0x353d9f(0x271)+'n'],'total':_0x1d07e6,..._0x4b5a20[_0x353d9f(0x24f)]!==null&&_0x13868e===_0x353d9f(0x293)&&_0x3a6939}};await _0x2788f0(_0x5e765b),_0x31f81f&&logger[_0x353d9f(0x1eb)](_0x353d9f(0x24e)+_0x353d9f(0x1bc)+_0x353d9f(0x235)+_0x4b5a20['id']+'\x20('+_0x4b5a20[_0x353d9f(0x275)]+')');}else{const _0x23cf80={'method':'notificati'+_0x353d9f(0x22e)+'ss','params':{'progressToken':typeof _0x479ae6===_0x353d9f(0x21b)?_0x479ae6:String(_0x479ae6),'progress':0x1,'total':0x1,'message':'['+_0x13868e+(_0x353d9f(0x215)+'\x20in\x20progre'+_0x353d9f(0x1a7))}};await _0x2788f0(_0x23cf80);}}else{if(_0x13868e===_0x353d9f(0x293)){if(_0x3f4c28['progress']!==undefined&&_0x3f4c28[_0x353d9f(0x24f)]!==null){_0x3ceae0=_0x3f4c28[_0x353d9f(0x24f)];const _0x1f128e=_0x36f687[_0x13868e],_0x571e2d={'method':_0x353d9f(0x1e1)+_0x353d9f(0x22e)+'ss','params':{'progressToken':typeof _0x479ae6==='string'?_0x479ae6:_0x3f6140[_0x353d9f(0x214)](String,_0x479ae6),'progress':_0x1f128e[_0x353d9f(0x288)],'total':_0x1d07e6,'message':_0x353d9f(0x291)+_0x353d9f(0x1e3)+_0x353d9f(0x228)+_0x353d9f(0x255)+_0x3ceae0+'%'}};await _0x2788f0(_0x571e2d);}}}!_0x31f81f&&logger['info'](_0x353d9f(0x1ce)+_0x353d9f(0x1a8)+_0x353d9f(0x21c)+_0x353d9f(0x2a7)+_0x353d9f(0x1da)+_0x353d9f(0x1bb)+'notificati'+_0x353d9f(0x1a1));await new Promise(_0x438e36=>setTimeout(_0x438e36,intervalMs));const _0xb44684=_0x3f6140[_0x353d9f(0x2a4)](Date[_0x353d9f(0x1c8)](),_0x3fc165);if(_0xb44684>=maxWaitMs){logger[_0x353d9f(0x1eb)](_0x353d9f(0x20c)+_0x353d9f(0x276)+_0x353d9f(0x295)+_0x353d9f(0x292)+_0x353d9f(0x22f)+maxWaitMs+_0x353d9f(0x29f)+_0x54e01d);const _0x23c0df={'method':_0x3f6140[_0x353d9f(0x1f6)],'params':{'progressToken':typeof _0x479ae6===_0x353d9f(0x21b)?_0x479ae6:String(_0x479ae6),'progress':_0x3ceae0||0x1,'total':0x64,'message':'['+(_0x4d2116||_0x353d9f(0x2a0)+'S')+(_0x353d9f(0x207)+_0x353d9f(0x23b)+_0x353d9f(0x203))+Math[_0x353d9f(0x270)](_0xb44684/0x3e8)+(_0x353d9f(0x24b)+_0x353d9f(0x28c)+_0x353d9f(0x2ab)+_0x353d9f(0x1dd))}};return await _0x2788f0(_0x23c0df),{'content':[{'type':_0x353d9f(0x277),'text':'Analysis\x20i'+'s\x20still\x20in'+_0x353d9f(0x218)+_0x353d9f(0x23f)+_0x4d2116+(_0x353d9f(0x1c3)+_0x353d9f(0x1b3)+'fter\x20')+Math[_0x353d9f(0x270)](_0xb44684/0x3e8)+('s.\x0aPlease\x20'+_0x353d9f(0x1d4)+_0x353d9f(0x213)+_0x353d9f(0x28e)+_0x353d9f(0x1f5)+'ntinue\x20mon'+'itoring\x20if'+_0x353d9f(0x217))}],'structuredContent':{'analysisId':_0x54e01d,'status':_0x4d2116,'completed':![],'elapsedMs':_0xb44684}};}}catch(_0x19c654){logger[_0x353d9f(0x2a6)](_0x353d9f(0x19a)+'king\x20analy'+_0x353d9f(0x1ac)+'\x20('+_0x54e01d+'):',_0x19c654),await new Promise(_0x491b70=>setTimeout(_0x491b70,intervalMs));}}}catch(_0x46ced8){logger['error'](_0x3f6140[_0x353d9f(0x25a)],_0x46ced8);const _0x42240b={};_0x42240b[_0x353d9f(0x205)]=_0x353d9f(0x277),_0x42240b[_0x353d9f(0x277)]=_0x353d9f(0x20c)+_0x353d9f(0x276)+_0x353d9f(0x208)+_0x353d9f(0x1ab)+(_0x46ced8 instanceof Error?_0x46ced8[_0x353d9f(0x1db)]:'Unknown\x20er'+_0x353d9f(0x1f3));const _0x48316d={};_0x48316d[_0x353d9f(0x2a6)]=_0x46ced8 instanceof Error?_0x46ced8['message']:_0x353d9f(0x1bf)+_0x353d9f(0x1f3);const _0x540d57={};return _0x540d57[_0x353d9f(0x274)]=[_0x42240b],_0x540d57['structured'+_0x353d9f(0x1b0)]=_0x48316d,_0x540d57[_0x353d9f(0x24d)]=!![],_0x540d57;}}}
@@ -2,9 +2,10 @@ import { AnalysisService } from '../services/analysis.service.js';
2
2
  export declare class SastController {
3
3
  private analysisService;
4
4
  constructor(analysisService: AnalysisService);
5
- analyzeFileSast({ fileContent, fileName }: {
5
+ analyzeFileSast({ fileContent, fileName, memo }: {
6
6
  fileContent: string;
7
7
  fileName: string;
8
+ memo?: string;
8
9
  }): Promise<{
9
10
  content: {
10
11
  type: "text";
@@ -26,9 +27,10 @@ export declare class SastController {
26
27
  error?: undefined;
27
28
  };
28
29
  }>;
29
- analyzeFilesSast({ filePaths, zipFileName }: {
30
+ analyzeFilesSast({ filePaths, zipFileName, memo }: {
30
31
  filePaths: string[];
31
32
  zipFileName?: string;
33
+ memo?: string;
32
34
  }): Promise<{
33
35
  content: {
34
36
  type: "text";
@@ -52,9 +54,10 @@ export declare class SastController {
52
54
  error?: undefined;
53
55
  };
54
56
  }>;
55
- analyzeFolderSast({ folderPath, zipFileName }: {
57
+ analyzeFolderSast({ folderPath, zipFileName, memo }: {
56
58
  folderPath: string;
57
59
  zipFileName?: string;
60
+ memo?: string;
58
61
  }): Promise<{
59
62
  content: {
60
63
  type: "text";
@@ -80,9 +83,10 @@ export declare class SastController {
80
83
  error?: undefined;
81
84
  };
82
85
  }>;
83
- analyzeZipSast({ zipFilePath, zipFileName }: {
86
+ analyzeZipSast({ zipFilePath, zipFileName, memo }: {
84
87
  zipFilePath: string;
85
88
  zipFileName?: string;
89
+ memo?: string;
86
90
  }): Promise<{
87
91
  content: {
88
92
  type: "text";
@@ -1 +1 @@
1
- const a8_0x3be647=a8_0x12c1;(function(_0x39d726,_0x5c8504){const _0x2a96d3=a8_0x12c1,_0x3d7f66=_0x39d726();while(!![]){try{const _0x3b1e6a=-parseInt(_0x2a96d3(0x248))/0x1*(-parseInt(_0x2a96d3(0x20c))/0x2)+parseInt(_0x2a96d3(0x231))/0x3+parseInt(_0x2a96d3(0x213))/0x4*(parseInt(_0x2a96d3(0x1fb))/0x5)+-parseInt(_0x2a96d3(0x1f2))/0x6+parseInt(_0x2a96d3(0x1df))/0x7+parseInt(_0x2a96d3(0x1de))/0x8+-parseInt(_0x2a96d3(0x225))/0x9;if(_0x3b1e6a===_0x5c8504)break;else _0x3d7f66['push'](_0x3d7f66['shift']());}catch(_0x2da01b){_0x3d7f66['push'](_0x3d7f66['shift']());}}}(a8_0x3a6e,0xaa078));const a8_0x101b22=(function(){let _0x435cbf=!![];return function(_0x48d859,_0x3a7d52){const _0x5744d9=_0x435cbf?function(){if(_0x3a7d52){const _0x4007bb=_0x3a7d52['apply'](_0x48d859,arguments);return _0x3a7d52=null,_0x4007bb;}}:function(){};return _0x435cbf=![],_0x5744d9;};}()),a8_0x2d14e0=a8_0x101b22(this,function(){const _0x8da0ba=a8_0x12c1;return a8_0x2d14e0['toString']()[_0x8da0ba(0x1e0)](_0x8da0ba(0x1e6)+'+$')['toString']()[_0x8da0ba(0x208)+'r'](a8_0x2d14e0)['search'](_0x8da0ba(0x1e6)+'+$');});function a8_0x3a6e(){const _0x5d5a7a=['derSast','error','analysis\x20r','\x20file\x20path','analysis\x20f','analysisId','Security\x20a','eSast','\x0a\x0aSkipped\x20','8561560KEtZLT','4623934jSzYyN','search','trim','folderPath','nalysis\x20re','eSecurity','ided','(((.+)+)+)','type','status','ror','rts\x20files\x20','ity\x20analys','sted:\x20','urity\x20anal','Empty\x20file','\x0aAnalysis\x20','ZIP\x20file\x20p','파일\x20확장자가\x20없습','4478424nryVeD','analysisSe','XTTeo','\x20The\x20fileP','h\x20not\x20prov','alysis\x20fai','TyWZE','ded','Folder\x20pat','240iImqiy','only\x20suppo','\x20security\x20','o\x20analyze.','\x20content\x20-','Multi-file','파일\x20내용이\x20비어있','jbIRJ','File\x20paths','ne\x20file\x20pa','\x0aZIP\x20File:','s:\x20','ecurity\x20an','constructo','red\x20-\x20SAST','text','File\x20exten','621854QRaZzi','content','No\x20files\x20t','quest\x20fail','ath\x20not\x20pr','o\x20analyze','folders\x20(','90604MFVbWp','nalysis\x20ha','\x0aFolder:\x20','join','esSast','니다.\x20SAST\x20분','Content','skippedFol','드를\x20제공해주세요.','is\x20failed:','fileName','ed:\x20','analyzeZip','ID:\x20','):\x20','WJkKp','info','analyzeFil','32775399UqYKpE','ailed:','Unknown\x20er','\x20not\x20provi','FromPaths','File','analyzeMul','th.','ders','\x0aStatus:\x20','sion\x20requi','uested:\x20','3068526PAJtDG','\x20requires\x20','message','ZIP\x20file\x20s','der','\x20파일만\x20지원합니다','with\x20exten','structured','석은\x20확장자가\x20있는','ovided.','quested:\x20','led:','analyzeFol','\x0aNumber\x20of','match','ovided','length','ysis\x20faile','Folder\x20sec','Sast','zipFilePat','rvice','ysis\x20reque','4CSUumc','s\x20started.','sions','File\x20secur','ided.','at\x20least\x20o'];a8_0x3a6e=function(){return _0x5d5a7a;};return a8_0x3a6e();}a8_0x2d14e0();function a8_0x12c1(_0x385ab9,_0x369f64){_0x385ab9=_0x385ab9-0x1d0;const _0x5ac374=a8_0x3a6e();let _0x2d14e0=_0x5ac374[_0x385ab9];return _0x2d14e0;}import{logger}from'../utils/logger.js';export class SastController{['analysisSe'+a8_0x3be647(0x246)];constructor(_0x3db027){const _0xe696f6=a8_0x3be647;this[_0xe696f6(0x1f3)+_0xe696f6(0x246)]=_0x3db027;}async[a8_0x3be647(0x224)+a8_0x3be647(0x1dc)]({fileContent:_0x7831cf,fileName:_0x11d56b}){const _0x38cbf7=a8_0x3be647;try{logger[_0x38cbf7(0x223)](_0x38cbf7(0x1db)+_0x38cbf7(0x1e3)+_0x38cbf7(0x23b)+_0x11d56b);if(!_0x7831cf||_0x7831cf['trim']()['length']===0x0){const _0xf2df82={};_0xf2df82['type']=_0x38cbf7(0x20a),_0xf2df82[_0x38cbf7(0x20a)]=_0x38cbf7(0x201)+'습니다.\x20분석할\x20코'+_0x38cbf7(0x21b);const _0xe467e1={};_0xe467e1[_0x38cbf7(0x1d6)]=_0x38cbf7(0x1ee)+_0x38cbf7(0x1ff)+'\x20no\x20code\x20t'+_0x38cbf7(0x211);const _0x3bb9c1={};return _0x3bb9c1[_0x38cbf7(0x20d)]=[_0xf2df82],_0x3bb9c1[_0x38cbf7(0x238)+_0x38cbf7(0x219)]=_0xe467e1,_0x3bb9c1;}const _0x21e47e=_0x11d56b[_0x38cbf7(0x23f)](/\.([^.]+)$/);if(!_0x21e47e||_0x21e47e[0x1][_0x38cbf7(0x241)]===0x0){const _0x10bd16={};_0x10bd16[_0x38cbf7(0x1e7)]=_0x38cbf7(0x20a),_0x10bd16[_0x38cbf7(0x20a)]=_0x38cbf7(0x1f1)+_0x38cbf7(0x218)+_0x38cbf7(0x239)+_0x38cbf7(0x236)+'.';const _0x3443c2={};_0x3443c2['error']=_0x38cbf7(0x20b)+_0x38cbf7(0x22f)+_0x38cbf7(0x209)+'\x20analysis\x20'+_0x38cbf7(0x1fc)+_0x38cbf7(0x1ea)+_0x38cbf7(0x237)+_0x38cbf7(0x1d1);const _0x485043={};return _0x485043[_0x38cbf7(0x20d)]=[_0x10bd16],_0x485043['structured'+_0x38cbf7(0x219)]=_0x3443c2,_0x485043;}const _0x265986={};_0x265986['fileConten'+'t']=_0x7831cf,_0x265986[_0x38cbf7(0x21d)]=_0x11d56b;const _0x3e1c13=await this[_0x38cbf7(0x1f3)+_0x38cbf7(0x246)][_0x38cbf7(0x224)+_0x38cbf7(0x1e4)](_0x265986),_0x3f0269={};_0x3f0269['type']=_0x38cbf7(0x20a),_0x3f0269[_0x38cbf7(0x20a)]=_0x38cbf7(0x1db)+_0x38cbf7(0x214)+_0x38cbf7(0x1d0)+_0x38cbf7(0x1ef)+_0x38cbf7(0x220)+_0x3e1c13[_0x38cbf7(0x1da)];const _0xbeb438={};_0xbeb438['analysisId']=_0x3e1c13[_0x38cbf7(0x1da)],_0xbeb438[_0x38cbf7(0x1e8)]=_0x3e1c13[_0x38cbf7(0x1e8)];const _0x4088d3={};return _0x4088d3[_0x38cbf7(0x20d)]=[_0x3f0269],_0x4088d3['structured'+_0x38cbf7(0x219)]=_0xbeb438,_0x4088d3;}catch(_0x42cc60){logger[_0x38cbf7(0x1d6)](_0x38cbf7(0x1d2)+'ity\x20analys'+_0x38cbf7(0x21c),_0x42cc60);const _0x5087d8={};_0x5087d8[_0x38cbf7(0x1e7)]=_0x38cbf7(0x20a),_0x5087d8[_0x38cbf7(0x20a)]=_0x38cbf7(0x1db)+'nalysis\x20re'+'quest\x20fail'+'ed:\x20'+(_0x42cc60 instanceof Error?_0x42cc60['message']:_0x38cbf7(0x227)+_0x38cbf7(0x1e9));const _0x329ad4={};_0x329ad4[_0x38cbf7(0x1d6)]=_0x42cc60 instanceof Error?_0x42cc60[_0x38cbf7(0x233)]:_0x38cbf7(0x227)+_0x38cbf7(0x1e9);const _0x5df99c={};return _0x5df99c['content']=[_0x5087d8],_0x5df99c[_0x38cbf7(0x238)+'Content']=_0x329ad4,_0x5df99c;}}async[a8_0x3be647(0x224)+a8_0x3be647(0x217)]({filePaths:_0x8ccb35,zipFileName:_0x5adfb2}){const _0x1ea678=a8_0x3be647,_0x5222fc={};_0x5222fc[_0x1ea678(0x1f8)]=_0x1ea678(0x20a),_0x5222fc[_0x1ea678(0x222)]=_0x1ea678(0x20e)+_0x1ea678(0x1fe)+_0x1ea678(0x1f5)+'aths\x20array'+_0x1ea678(0x232)+_0x1ea678(0x1d4)+_0x1ea678(0x204)+_0x1ea678(0x22c);const _0x11b2cb=_0x5222fc;try{if(!_0x8ccb35||_0x8ccb35['length']===0x0){const _0x4908aa={};_0x4908aa[_0x1ea678(0x1e7)]=_0x11b2cb[_0x1ea678(0x1f8)],_0x4908aa['text']=_0x11b2cb[_0x1ea678(0x222)];const _0x5131d1={};_0x5131d1[_0x1ea678(0x1d6)]=_0x1ea678(0x203)+_0x1ea678(0x228)+_0x1ea678(0x1f9);const _0x322da4={};return _0x322da4['content']=[_0x4908aa],_0x322da4[_0x1ea678(0x238)+_0x1ea678(0x219)]=_0x5131d1,_0x322da4;}logger[_0x1ea678(0x223)](_0x1ea678(0x200)+_0x1ea678(0x1fd)+_0x1ea678(0x1d7)+'equested:\x20'+_0x8ccb35['length']+(_0x1ea678(0x1d8)+'s'));const _0xdd78da=await this[_0x1ea678(0x1f3)+_0x1ea678(0x246)][_0x1ea678(0x22b)+'tipleFiles'+_0x1ea678(0x229)](_0x8ccb35,_0x5adfb2),_0x962451='Security\x20a'+_0x1ea678(0x214)+_0x1ea678(0x1d0)+_0x1ea678(0x23e)+'\x20file\x20path'+_0x1ea678(0x206)+_0x8ccb35['length']+(_0x1ea678(0x1ef)+_0x1ea678(0x220))+_0xdd78da[_0x1ea678(0x1da)]+_0x1ea678(0x22e)+_0xdd78da[_0x1ea678(0x1e8)],_0x32b58d={};_0x32b58d[_0x1ea678(0x1e7)]='text',_0x32b58d['text']=_0x962451;const _0x2d8da8={};_0x2d8da8[_0x1ea678(0x1da)]=_0xdd78da[_0x1ea678(0x1da)],_0x2d8da8['status']=_0xdd78da[_0x1ea678(0x1e8)],_0x2d8da8['filePathCo'+'unt']=_0x8ccb35[_0x1ea678(0x241)];const _0x90c036={};return _0x90c036[_0x1ea678(0x20d)]=[_0x32b58d],_0x90c036[_0x1ea678(0x238)+_0x1ea678(0x219)]=_0x2d8da8,_0x90c036;}catch(_0x179eca){logger['error'](_0x1ea678(0x200)+_0x1ea678(0x1fd)+_0x1ea678(0x1d9)+_0x1ea678(0x226),_0x179eca);const _0x51c37c={};_0x51c37c['type']=_0x1ea678(0x20a),_0x51c37c[_0x1ea678(0x20a)]='Security\x20a'+_0x1ea678(0x1e3)+_0x1ea678(0x20f)+_0x1ea678(0x21e)+(_0x179eca instanceof Error?_0x179eca[_0x1ea678(0x233)]:'Unknown\x20er'+_0x1ea678(0x1e9));const _0x8869d2={};_0x8869d2[_0x1ea678(0x1d6)]=_0x179eca instanceof Error?_0x179eca[_0x1ea678(0x233)]:_0x1ea678(0x227)+_0x1ea678(0x1e9);const _0x54a472={};return _0x54a472[_0x1ea678(0x20d)]=[_0x51c37c],_0x54a472[_0x1ea678(0x238)+_0x1ea678(0x219)]=_0x8869d2,_0x54a472;}}async[a8_0x3be647(0x23d)+a8_0x3be647(0x1d5)]({folderPath:_0x14a0f8,zipFileName:_0x8b2d92}){const _0x1b04cf=a8_0x3be647,_0x1dde39={};_0x1dde39['Psukg']=_0x1b04cf(0x227)+_0x1b04cf(0x1e9),_0x1dde39[_0x1b04cf(0x202)]=function(_0x585303,_0x58ef43){return _0x585303!==_0x58ef43;};const _0x57612c=_0x1dde39;try{if(!_0x14a0f8||_0x14a0f8[_0x1b04cf(0x1e1)]()[_0x1b04cf(0x241)]===0x0){if(_0x57612c[_0x1b04cf(0x202)](_0x1b04cf(0x1f4),_0x1b04cf(0x1f4))){_0x3c88b6[_0x1b04cf(0x1d6)](_0x1b04cf(0x1d2)+_0x1b04cf(0x1eb)+_0x1b04cf(0x21c),_0x1d1b09);const _0x49aa51={};_0x49aa51[_0x1b04cf(0x1e7)]=_0x1b04cf(0x20a),_0x49aa51['text']=_0x1b04cf(0x1db)+_0x1b04cf(0x1e3)+'quest\x20fail'+_0x1b04cf(0x21e)+(_0x194548 instanceof _0x35c45a?_0x33137e['message']:WlVtng['Psukg']);const _0x5ad2f1={};_0x5ad2f1[_0x1b04cf(0x1d6)]=_0xda815d instanceof _0x59db1a?_0x55b36a[_0x1b04cf(0x233)]:'Unknown\x20er'+_0x1b04cf(0x1e9);const _0x2178aa={};return _0x2178aa[_0x1b04cf(0x20d)]=[_0x49aa51],_0x2178aa[_0x1b04cf(0x238)+_0x1b04cf(0x219)]=_0x5ad2f1,_0x2178aa;}else{const _0x16809d={};_0x16809d[_0x1b04cf(0x1e7)]='text',_0x16809d['text']='Folder\x20pat'+'h\x20not\x20prov'+_0x1b04cf(0x1d3);const _0x5e11a6={};_0x5e11a6[_0x1b04cf(0x1d6)]=_0x1b04cf(0x1fa)+_0x1b04cf(0x1f6)+_0x1b04cf(0x1e5);const _0x1562c0={};return _0x1562c0[_0x1b04cf(0x20d)]=[_0x16809d],_0x1562c0[_0x1b04cf(0x238)+_0x1b04cf(0x219)]=_0x5e11a6,_0x1562c0;}}logger[_0x1b04cf(0x223)](_0x1b04cf(0x243)+'urity\x20anal'+_0x1b04cf(0x247)+_0x1b04cf(0x1ec)+_0x14a0f8);const _0x473db4=await this[_0x1b04cf(0x1f3)+_0x1b04cf(0x246)][_0x1b04cf(0x23d)+_0x1b04cf(0x235)](_0x14a0f8,_0x8b2d92);let _0x5ac5f9=_0x1b04cf(0x1db)+_0x1b04cf(0x214)+_0x1b04cf(0x1d0)+_0x1b04cf(0x215)+_0x14a0f8+(_0x1b04cf(0x1ef)+_0x1b04cf(0x220))+_0x473db4['analysisId']+_0x1b04cf(0x22e)+_0x473db4[_0x1b04cf(0x1e8)];_0x473db4[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)]&&_0x473db4[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)][_0x1b04cf(0x241)]>0x0&&(_0x5ac5f9+=_0x1b04cf(0x1dd)+_0x1b04cf(0x212)+_0x473db4[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)][_0x1b04cf(0x241)]+_0x1b04cf(0x221)+_0x473db4['skippedFol'+_0x1b04cf(0x22d)][_0x1b04cf(0x216)](',\x20'));const _0x315e02={};_0x315e02[_0x1b04cf(0x1e7)]='text',_0x315e02[_0x1b04cf(0x20a)]=_0x5ac5f9;const _0x3ca132={};_0x3ca132[_0x1b04cf(0x1da)]=_0x473db4[_0x1b04cf(0x1da)],_0x3ca132['status']=_0x473db4[_0x1b04cf(0x1e8)],_0x3ca132[_0x1b04cf(0x1e2)]=_0x14a0f8,_0x3ca132[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)]=_0x473db4[_0x1b04cf(0x21a)+_0x1b04cf(0x22d)];const _0x572048={};return _0x572048[_0x1b04cf(0x20d)]=[_0x315e02],_0x572048[_0x1b04cf(0x238)+_0x1b04cf(0x219)]=_0x3ca132,_0x572048;}catch(_0x20e927){logger[_0x1b04cf(0x1d6)](_0x1b04cf(0x243)+_0x1b04cf(0x1ed)+_0x1b04cf(0x242)+'d:',_0x20e927);const _0x1c81fb={};_0x1c81fb['type']=_0x1b04cf(0x20a),_0x1c81fb[_0x1b04cf(0x20a)]=_0x1b04cf(0x1db)+_0x1b04cf(0x1e3)+_0x1b04cf(0x20f)+'ed:\x20'+(_0x20e927 instanceof Error?_0x20e927[_0x1b04cf(0x233)]:_0x57612c['Psukg']);const _0x1a209f={};_0x1a209f[_0x1b04cf(0x1d6)]=_0x20e927 instanceof Error?_0x20e927['message']:_0x1b04cf(0x227)+'ror';const _0x4783b6={};return _0x4783b6[_0x1b04cf(0x20d)]=[_0x1c81fb],_0x4783b6['structured'+_0x1b04cf(0x219)]=_0x1a209f,_0x4783b6;}}async['analyzeZip'+a8_0x3be647(0x244)]({zipFilePath:_0x207768,zipFileName:_0x50fe6e}){const _0xaacd6c=a8_0x3be647;try{if(!_0x207768||_0x207768[_0xaacd6c(0x1e1)]()[_0xaacd6c(0x241)]===0x0){const _0xab19bd={};_0xab19bd[_0xaacd6c(0x1e7)]=_0xaacd6c(0x20a),_0xab19bd[_0xaacd6c(0x20a)]=_0xaacd6c(0x1f0)+_0xaacd6c(0x210)+_0xaacd6c(0x23a);const _0x639141={};_0x639141[_0xaacd6c(0x1d6)]=_0xaacd6c(0x1f0)+_0xaacd6c(0x210)+_0xaacd6c(0x240);const _0x54758a={};return _0x54758a[_0xaacd6c(0x20d)]=[_0xab19bd],_0x54758a[_0xaacd6c(0x238)+'Content']=_0x639141,_0x54758a;}logger[_0xaacd6c(0x223)](_0xaacd6c(0x234)+_0xaacd6c(0x207)+'alysis\x20req'+_0xaacd6c(0x230)+_0x207768);const _0x5ed581=await this[_0xaacd6c(0x1f3)+'rvice'][_0xaacd6c(0x21f)+_0xaacd6c(0x22a)](_0x207768,_0x50fe6e),_0x159730=_0xaacd6c(0x1db)+_0xaacd6c(0x214)+_0xaacd6c(0x1d0)+_0xaacd6c(0x205)+'\x20'+_0x207768+(_0xaacd6c(0x1ef)+'ID:\x20')+_0x5ed581[_0xaacd6c(0x1da)]+_0xaacd6c(0x22e)+_0x5ed581[_0xaacd6c(0x1e8)],_0x4bbd08={};_0x4bbd08[_0xaacd6c(0x1e7)]=_0xaacd6c(0x20a),_0x4bbd08[_0xaacd6c(0x20a)]=_0x159730;const _0x186b12={};_0x186b12[_0xaacd6c(0x1da)]=_0x5ed581['analysisId'],_0x186b12[_0xaacd6c(0x1e8)]=_0x5ed581['status'],_0x186b12[_0xaacd6c(0x245)+'h']=_0x207768;const _0x3e4184={};return _0x3e4184[_0xaacd6c(0x20d)]=[_0x4bbd08],_0x3e4184['structured'+_0xaacd6c(0x219)]=_0x186b12,_0x3e4184;}catch(_0x53e47e){logger['error'](_0xaacd6c(0x234)+'ecurity\x20an'+_0xaacd6c(0x1f7)+_0xaacd6c(0x23c),_0x53e47e);const _0x44d164={};_0x44d164['type']=_0xaacd6c(0x20a),_0x44d164[_0xaacd6c(0x20a)]=_0xaacd6c(0x1db)+_0xaacd6c(0x1e3)+_0xaacd6c(0x20f)+_0xaacd6c(0x21e)+(_0x53e47e instanceof Error?_0x53e47e['message']:_0xaacd6c(0x227)+_0xaacd6c(0x1e9));const _0x46bc57={};_0x46bc57['error']=_0x53e47e instanceof Error?_0x53e47e[_0xaacd6c(0x233)]:_0xaacd6c(0x227)+_0xaacd6c(0x1e9);const _0x4ba120={};return _0x4ba120[_0xaacd6c(0x20d)]=[_0x44d164],_0x4ba120[_0xaacd6c(0x238)+_0xaacd6c(0x219)]=_0x46bc57,_0x4ba120;}}}
1
+ const a8_0x5234d8=a8_0x5f2f;(function(_0x4987d4,_0x504863){const _0x4e5c10=a8_0x5f2f,_0x1da6c8=_0x4987d4();while(!![]){try{const _0x2fcad5=-parseInt(_0x4e5c10(0xdc))/0x1+-parseInt(_0x4e5c10(0x8f))/0x2+-parseInt(_0x4e5c10(0xc6))/0x3+parseInt(_0x4e5c10(0xc0))/0x4*(-parseInt(_0x4e5c10(0x78))/0x5)+parseInt(_0x4e5c10(0x9c))/0x6+-parseInt(_0x4e5c10(0x97))/0x7+parseInt(_0x4e5c10(0x88))/0x8*(parseInt(_0x4e5c10(0x83))/0x9);if(_0x2fcad5===_0x504863)break;else _0x1da6c8['push'](_0x1da6c8['shift']());}catch(_0x568f1f){_0x1da6c8['push'](_0x1da6c8['shift']());}}}(a8_0x49fd,0x43ba7));const a8_0x3e95c8=(function(){let _0x14720e=!![];return function(_0x670962,_0x3245ca){const _0x429b54=_0x14720e?function(){if(_0x3245ca){const _0x19d76e=_0x3245ca['apply'](_0x670962,arguments);return _0x3245ca=null,_0x19d76e;}}:function(){};return _0x14720e=![],_0x429b54;};}()),a8_0x11e041=a8_0x3e95c8(this,function(){const _0x19fc13=a8_0x5f2f;return a8_0x11e041[_0x19fc13(0xe2)]()[_0x19fc13(0xa7)](_0x19fc13(0xc1)+'+$')[_0x19fc13(0xe2)]()[_0x19fc13(0xcf)+'r'](a8_0x11e041)[_0x19fc13(0xa7)](_0x19fc13(0xc1)+'+$');});a8_0x11e041();function a8_0x49fd(){const _0x54892f=['파일\x20확장자가\x20없습','FromPaths','53949CBvHRJ','analysisSe','GLMmn','Davgx','message','with\x20exten','led:','der','s\x20started.','constructo','ovided','Content','ZIP\x20file\x20p','error','\x20파일만\x20지원합니다','rNqzr','\x20no\x20code\x20t','folderPath','ror','ysis\x20faile','zipFilePat','is\x20failed:','65825CvqTMv','\x20file\x20path','join','trim','s:\x20','folders\x20(','toString','니다.\x20SAST\x20분','analyzeZip','rvice','5300mfvQvp','파일\x20내용이\x20비어있','analyzeFol','alysis\x20req','석은\x20확장자가\x20있는','ity\x20analys','\x20The\x20fileP','analyzeMul','\x0aZIP\x20File:','Sast','ailed:','11871Njscjh','structured','nalysis\x20re','\x0aFolder:\x20','ID:\x20','6824MWrqOL','equested:\x20','urity\x20anal','\x0a\x0aSkipped\x20','h\x20not\x20prov','nalysis\x20ha','analyzeFil','890088ZlkDkb','sion\x20requi','\x20requires\x20','analysis\x20f','CTwxz','type','content','ed:\x20','1004073SZcvFE','ders','memo','fileConten','Multi-file','1071834tlDaUE','\x20not\x20provi','\x0aStatus:\x20','length','ZIP\x20file\x20s','Empty\x20file','ysis\x20reque','text','습니다.\x20분석할\x20코','ovided.','skippedFol','search','rts\x20files\x20','\x20security\x20','status','Security\x20a','Unknown\x20er','quested:\x20','red\x20-\x20SAST','ne\x20file\x20pa','info','sions','ath\x20not\x20pr','\x0aAnalysis\x20','analysisId','eSast','Folder\x20sec','o\x20analyze','드를\x20제공해주세요.','tipleFiles','\x20analysis\x20','derSast','File\x20paths','Folder\x20pat','quest\x20fail','uested:\x20','1336ZFPRMk','(((.+)+)+)','ecurity\x20an','match'];a8_0x49fd=function(){return _0x54892f;};return a8_0x49fd();}function a8_0x5f2f(_0x58b40d,_0x4f6f49){_0x58b40d=_0x58b40d-0x78;const _0x23c97c=a8_0x49fd();let _0x11e041=_0x23c97c[_0x58b40d];return _0x11e041;}import{logger}from'../utils/logger.js';export class SastController{[a8_0x5234d8(0xc7)+a8_0x5234d8(0xe5)];constructor(_0x2e436f){const _0x1065ef=a8_0x5234d8;this[_0x1065ef(0xc7)+_0x1065ef(0xe5)]=_0x2e436f;}async[a8_0x5234d8(0x8e)+a8_0x5234d8(0xb5)]({fileContent:_0x271716,fileName:_0x312970,memo:_0xdaa48a}){const _0x28e866=a8_0x5234d8,_0x5e4cea={};_0x5e4cea[_0x28e866(0xc9)]='File\x20exten'+_0x28e866(0x90)+_0x28e866(0xae)+_0x28e866(0xba)+'only\x20suppo'+_0x28e866(0xa8)+_0x28e866(0xcb)+_0x28e866(0xb1),_0x5e4cea['SzvGt']='File\x20secur'+_0x28e866(0x7d)+_0x28e866(0xdb);const _0x3eae45=_0x5e4cea;try{logger['info'](_0x28e866(0xab)+_0x28e866(0x85)+_0x28e866(0xad)+_0x312970);if(!_0x271716||_0x271716[_0x28e866(0xdf)]()[_0x28e866(0x9f)]===0x0){const _0x2d79b9={};_0x2d79b9[_0x28e866(0x94)]=_0x28e866(0xa3),_0x2d79b9['text']=_0x28e866(0x79)+_0x28e866(0xa4)+_0x28e866(0xb8);const _0x4d790a={};_0x4d790a[_0x28e866(0xd3)]=_0x28e866(0xa1)+'\x20content\x20-'+_0x28e866(0xd6)+_0x28e866(0xb7);const _0x421b04={};return _0x421b04['content']=[_0x2d79b9],_0x421b04[_0x28e866(0x84)+'Content']=_0x4d790a,_0x421b04;}const _0x1ca312=_0x312970[_0x28e866(0xc3)](/\.([^.]+)$/);if(!_0x1ca312||_0x1ca312[0x1][_0x28e866(0x9f)]===0x0){const _0x2d91fd={};_0x2d91fd['type']=_0x28e866(0xa3),_0x2d91fd[_0x28e866(0xa3)]=_0x28e866(0xc4)+_0x28e866(0xe3)+_0x28e866(0x7c)+_0x28e866(0xd4)+'.';const _0x2c2fc5={};_0x2c2fc5['error']=_0x3eae45['Davgx'];const _0x55658e={};return _0x55658e[_0x28e866(0x95)]=[_0x2d91fd],_0x55658e[_0x28e866(0x84)+_0x28e866(0xd1)]=_0x2c2fc5,_0x55658e;}const _0x4e94bc={};_0x4e94bc[_0x28e866(0x9a)+'t']=_0x271716,_0x4e94bc['fileName']=_0x312970,_0x4e94bc[_0x28e866(0x99)]=_0xdaa48a;const _0xab6882=await this[_0x28e866(0xc7)+'rvice'][_0x28e866(0x8e)+'eSecurity'](_0x4e94bc),_0x2b25bd={};_0x2b25bd[_0x28e866(0x94)]=_0x28e866(0xa3),_0x2b25bd['text']=_0x28e866(0xab)+_0x28e866(0x8d)+_0x28e866(0xce)+_0x28e866(0xb3)+_0x28e866(0x87)+_0xab6882[_0x28e866(0xb4)];const _0x366ddd={};_0x366ddd[_0x28e866(0xb4)]=_0xab6882[_0x28e866(0xb4)],_0x366ddd[_0x28e866(0xaa)]=_0xab6882['status'];const _0x213cc7={};return _0x213cc7[_0x28e866(0x95)]=[_0x2b25bd],_0x213cc7['structured'+_0x28e866(0xd1)]=_0x366ddd,_0x213cc7;}catch(_0x51e98e){logger[_0x28e866(0xd3)](_0x3eae45['SzvGt'],_0x51e98e);const _0x1b78b6={};_0x1b78b6[_0x28e866(0x94)]=_0x28e866(0xa3),_0x1b78b6[_0x28e866(0xa3)]=_0x28e866(0xab)+_0x28e866(0x85)+_0x28e866(0xbe)+_0x28e866(0x96)+(_0x51e98e instanceof Error?_0x51e98e[_0x28e866(0xca)]:_0x28e866(0xac)+_0x28e866(0xd8));const _0x17deb3={};_0x17deb3['error']=_0x51e98e instanceof Error?_0x51e98e[_0x28e866(0xca)]:'Unknown\x20er'+_0x28e866(0xd8);const _0x383a2e={};return _0x383a2e['content']=[_0x1b78b6],_0x383a2e['structured'+_0x28e866(0xd1)]=_0x17deb3,_0x383a2e;}}async[a8_0x5234d8(0x8e)+'esSast']({filePaths:_0x18d71f,zipFileName:_0x772da2,memo:_0x221231}){const _0x345271=a8_0x5234d8;try{if(!_0x18d71f||_0x18d71f[_0x345271(0x9f)]===0x0){const _0x20c623={};_0x20c623[_0x345271(0x94)]=_0x345271(0xa3),_0x20c623[_0x345271(0xa3)]='No\x20files\x20t'+'o\x20analyze.'+_0x345271(0x7e)+'aths\x20array'+_0x345271(0x91)+'at\x20least\x20o'+_0x345271(0xaf)+'th.';const _0x1cef4b={};_0x1cef4b['error']=_0x345271(0xbc)+_0x345271(0x9d)+'ded';const _0x291dc9={};return _0x291dc9['content']=[_0x20c623],_0x291dc9[_0x345271(0x84)+'Content']=_0x1cef4b,_0x291dc9;}logger[_0x345271(0xb0)]('Multi-file'+_0x345271(0xa9)+'analysis\x20r'+_0x345271(0x89)+_0x18d71f[_0x345271(0x9f)]+('\x20file\x20path'+'s'));const _0x2ccce5=await this[_0x345271(0xc7)+_0x345271(0xe5)][_0x345271(0x7f)+_0x345271(0xb9)+_0x345271(0xc5)](_0x18d71f,_0x772da2,_0x221231),_0x59a5c7=_0x345271(0xab)+'nalysis\x20ha'+_0x345271(0xce)+'\x0aNumber\x20of'+_0x345271(0xdd)+_0x345271(0xe0)+_0x18d71f['length']+(_0x345271(0xb3)+_0x345271(0x87))+_0x2ccce5[_0x345271(0xb4)]+_0x345271(0x9e)+_0x2ccce5[_0x345271(0xaa)],_0x25d0e1={};_0x25d0e1[_0x345271(0x94)]=_0x345271(0xa3),_0x25d0e1[_0x345271(0xa3)]=_0x59a5c7;const _0x3b4a40={};_0x3b4a40['analysisId']=_0x2ccce5[_0x345271(0xb4)],_0x3b4a40[_0x345271(0xaa)]=_0x2ccce5[_0x345271(0xaa)],_0x3b4a40['filePathCo'+'unt']=_0x18d71f[_0x345271(0x9f)];const _0x2a31a3={};return _0x2a31a3[_0x345271(0x95)]=[_0x25d0e1],_0x2a31a3[_0x345271(0x84)+'Content']=_0x3b4a40,_0x2a31a3;}catch(_0x52c03e){logger[_0x345271(0xd3)](_0x345271(0x9b)+_0x345271(0xa9)+_0x345271(0x92)+_0x345271(0x82),_0x52c03e);const _0x587e16={};_0x587e16['type']=_0x345271(0xa3),_0x587e16[_0x345271(0xa3)]=_0x345271(0xab)+_0x345271(0x85)+'quest\x20fail'+'ed:\x20'+(_0x52c03e instanceof Error?_0x52c03e[_0x345271(0xca)]:_0x345271(0xac)+'ror');const _0x36e422={};_0x36e422[_0x345271(0xd3)]=_0x52c03e instanceof Error?_0x52c03e[_0x345271(0xca)]:_0x345271(0xac)+_0x345271(0xd8);const _0x37c346={};return _0x37c346['content']=[_0x587e16],_0x37c346[_0x345271(0x84)+_0x345271(0xd1)]=_0x36e422,_0x37c346;}}async['analyzeFol'+a8_0x5234d8(0xbb)]({folderPath:_0x2ca4dd,zipFileName:_0x366fea,memo:_0x3d5a51}){const _0x5b0f36=a8_0x5234d8,_0x2ddd1b={};_0x2ddd1b[_0x5b0f36(0x93)]=_0x5b0f36(0xac)+_0x5b0f36(0xd8);const _0x51e79f=_0x2ddd1b;try{if(!_0x2ca4dd||_0x2ca4dd[_0x5b0f36(0xdf)]()[_0x5b0f36(0x9f)]===0x0){const _0x4c3f1e={};_0x4c3f1e[_0x5b0f36(0x94)]=_0x5b0f36(0xa3),_0x4c3f1e[_0x5b0f36(0xa3)]=_0x5b0f36(0xbd)+'h\x20not\x20prov'+'ided.';const _0x4d9e6a={};_0x4d9e6a[_0x5b0f36(0xd3)]=_0x5b0f36(0xbd)+_0x5b0f36(0x8c)+'ided';const _0x1cccec={};return _0x1cccec['content']=[_0x4c3f1e],_0x1cccec[_0x5b0f36(0x84)+'Content']=_0x4d9e6a,_0x1cccec;}logger[_0x5b0f36(0xb0)](_0x5b0f36(0xb6)+_0x5b0f36(0x8a)+_0x5b0f36(0xa2)+'sted:\x20'+_0x2ca4dd);const _0x220ced=await this[_0x5b0f36(0xc7)+_0x5b0f36(0xe5)][_0x5b0f36(0x7a)+_0x5b0f36(0xcd)](_0x2ca4dd,_0x366fea,_0x3d5a51);let _0x3d3d54=_0x5b0f36(0xab)+_0x5b0f36(0x8d)+'s\x20started.'+_0x5b0f36(0x86)+_0x2ca4dd+(_0x5b0f36(0xb3)+_0x5b0f36(0x87))+_0x220ced['analysisId']+_0x5b0f36(0x9e)+_0x220ced[_0x5b0f36(0xaa)];_0x220ced['skippedFol'+_0x5b0f36(0x98)]&&_0x220ced[_0x5b0f36(0xa6)+_0x5b0f36(0x98)][_0x5b0f36(0x9f)]>0x0&&(_0x3d3d54+=_0x5b0f36(0x8b)+_0x5b0f36(0xe1)+_0x220ced[_0x5b0f36(0xa6)+_0x5b0f36(0x98)][_0x5b0f36(0x9f)]+'):\x20'+_0x220ced[_0x5b0f36(0xa6)+_0x5b0f36(0x98)][_0x5b0f36(0xde)](',\x20'));const _0x58921d={};_0x58921d[_0x5b0f36(0x94)]=_0x5b0f36(0xa3),_0x58921d[_0x5b0f36(0xa3)]=_0x3d3d54;const _0x3f29a5={};_0x3f29a5['analysisId']=_0x220ced[_0x5b0f36(0xb4)],_0x3f29a5[_0x5b0f36(0xaa)]=_0x220ced['status'],_0x3f29a5[_0x5b0f36(0xd7)]=_0x2ca4dd,_0x3f29a5['skippedFol'+_0x5b0f36(0x98)]=_0x220ced['skippedFol'+_0x5b0f36(0x98)];const _0x26e256={};return _0x26e256['content']=[_0x58921d],_0x26e256[_0x5b0f36(0x84)+_0x5b0f36(0xd1)]=_0x3f29a5,_0x26e256;}catch(_0x205626){logger[_0x5b0f36(0xd3)](_0x5b0f36(0xb6)+_0x5b0f36(0x8a)+_0x5b0f36(0xd9)+'d:',_0x205626);const _0x351785={};_0x351785[_0x5b0f36(0x94)]=_0x5b0f36(0xa3),_0x351785[_0x5b0f36(0xa3)]=_0x5b0f36(0xab)+'nalysis\x20re'+'quest\x20fail'+_0x5b0f36(0x96)+(_0x205626 instanceof Error?_0x205626[_0x5b0f36(0xca)]:_0x51e79f[_0x5b0f36(0x93)]);const _0x1ddc76={};_0x1ddc76[_0x5b0f36(0xd3)]=_0x205626 instanceof Error?_0x205626['message']:'Unknown\x20er'+'ror';const _0x262d6e={};return _0x262d6e['content']=[_0x351785],_0x262d6e[_0x5b0f36(0x84)+_0x5b0f36(0xd1)]=_0x1ddc76,_0x262d6e;}}async[a8_0x5234d8(0xe4)+a8_0x5234d8(0x81)]({zipFilePath:_0x3ccd53,zipFileName:_0x58da69,memo:_0x2adea2}){const _0x31c30c=a8_0x5234d8,_0x4518b5={};_0x4518b5['GLMmn']='text',_0x4518b5[_0x31c30c(0xd5)]=_0x31c30c(0xd2)+_0x31c30c(0xb2)+_0x31c30c(0xa5);const _0x1be099=_0x4518b5;try{if(!_0x3ccd53||_0x3ccd53[_0x31c30c(0xdf)]()['length']===0x0){const _0x359c77={};_0x359c77[_0x31c30c(0x94)]=_0x1be099[_0x31c30c(0xc8)],_0x359c77['text']=_0x1be099['rNqzr'];const _0x2c5d79={};_0x2c5d79[_0x31c30c(0xd3)]=_0x31c30c(0xd2)+_0x31c30c(0xb2)+_0x31c30c(0xd0);const _0x4f54d4={};return _0x4f54d4[_0x31c30c(0x95)]=[_0x359c77],_0x4f54d4[_0x31c30c(0x84)+_0x31c30c(0xd1)]=_0x2c5d79,_0x4f54d4;}logger['info'](_0x31c30c(0xa0)+_0x31c30c(0xc2)+_0x31c30c(0x7b)+_0x31c30c(0xbf)+_0x3ccd53);const _0xc99b29=await this[_0x31c30c(0xc7)+_0x31c30c(0xe5)][_0x31c30c(0xe4)+'File'](_0x3ccd53,_0x58da69,_0x2adea2),_0x4211e6=_0x31c30c(0xab)+_0x31c30c(0x8d)+'s\x20started.'+_0x31c30c(0x80)+'\x20'+_0x3ccd53+(_0x31c30c(0xb3)+'ID:\x20')+_0xc99b29[_0x31c30c(0xb4)]+'\x0aStatus:\x20'+_0xc99b29['status'],_0x43f3ef={};_0x43f3ef[_0x31c30c(0x94)]=_0x31c30c(0xa3),_0x43f3ef[_0x31c30c(0xa3)]=_0x4211e6;const _0x3a4a6d={};_0x3a4a6d[_0x31c30c(0xb4)]=_0xc99b29[_0x31c30c(0xb4)],_0x3a4a6d[_0x31c30c(0xaa)]=_0xc99b29[_0x31c30c(0xaa)],_0x3a4a6d[_0x31c30c(0xda)+'h']=_0x3ccd53;const _0x57a1a8={};return _0x57a1a8['content']=[_0x43f3ef],_0x57a1a8[_0x31c30c(0x84)+_0x31c30c(0xd1)]=_0x3a4a6d,_0x57a1a8;}catch(_0x711307){logger[_0x31c30c(0xd3)](_0x31c30c(0xa0)+_0x31c30c(0xc2)+'alysis\x20fai'+_0x31c30c(0xcc),_0x711307);const _0x58fccb={};_0x58fccb['type']='text',_0x58fccb[_0x31c30c(0xa3)]=_0x31c30c(0xab)+_0x31c30c(0x85)+_0x31c30c(0xbe)+'ed:\x20'+(_0x711307 instanceof Error?_0x711307['message']:'Unknown\x20er'+_0x31c30c(0xd8));const _0x253666={};_0x253666[_0x31c30c(0xd3)]=_0x711307 instanceof Error?_0x711307['message']:'Unknown\x20er'+_0x31c30c(0xd8);const _0x578259={};return _0x578259[_0x31c30c(0x95)]=[_0x58fccb],_0x578259[_0x31c30c(0x84)+'Content']=_0x253666,_0x578259;}}}