@sparrowai/sparrow-mcp 1.1.12 → 1.1.13

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.js +1 -1
  16. package/dist/src/controllers/sca.controller.js +1 -1
  17. package/dist/src/controllers/security.controller.js +1 -1
  18. package/dist/src/controllers/system.controller.js +1 -1
  19. package/dist/src/schemas/tool.schemas.js +1 -1
  20. package/dist/src/server.js +1 -1
  21. package/dist/src/services/__tests__/analysis.remediation.spec.d.ts +1 -0
  22. package/dist/src/services/__tests__/analysis.remediation.spec.js +1 -0
  23. package/dist/src/services/__tests__/analysis.remediation.test.js +1 -1
  24. package/dist/src/services/__tests__/analysis.service.sca.test.js +1 -1
  25. package/dist/src/services/__tests__/analysis.service.test.js +1 -1
  26. package/dist/src/services/__tests__/checker.service.test.js +1 -1
  27. package/dist/src/services/__tests__/llm.service.test.js +1 -1
  28. package/dist/src/services/__tests__/s3.service.test.js +1 -1
  29. package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
  30. package/dist/src/services/analysis.service.js +1 -1
  31. package/dist/src/services/checker.service.js +1 -1
  32. package/dist/src/services/llm/AnthropicProvider.js +1 -1
  33. package/dist/src/services/llm/BedrockProvider.js +1 -1
  34. package/dist/src/services/llm/GeminiProvider.js +1 -1
  35. package/dist/src/services/llm/LLMFactory.js +1 -1
  36. package/dist/src/services/llm/LLMProvider.js +1 -1
  37. package/dist/src/services/llm/OllamaProvider.js +1 -1
  38. package/dist/src/services/llm/OpenAIProvider.js +1 -1
  39. package/dist/src/services/llm.service.js +1 -1
  40. package/dist/src/services/s3.service.js +1 -1
  41. package/dist/src/services/sparrow.service.js +1 -1
  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_0x502255=a12_0x24ec;(function(_0xf5bce3,_0x550547){const _0x504c96=a12_0x24ec,_0x4ae15d=_0xf5bce3();while(!![]){try{const _0x2a9207=parseInt(_0x504c96(0xe6))/0x1+parseInt(_0x504c96(0xfc))/0x2+parseInt(_0x504c96(0xf7))/0x3*(parseInt(_0x504c96(0x157))/0x4)+parseInt(_0x504c96(0x174))/0x5+-parseInt(_0x504c96(0xe2))/0x6*(parseInt(_0x504c96(0x155))/0x7)+-parseInt(_0x504c96(0x164))/0x8*(parseInt(_0x504c96(0xfb))/0x9)+-parseInt(_0x504c96(0x128))/0xa;if(_0x2a9207===_0x550547)break;else _0x4ae15d['push'](_0x4ae15d['shift']());}catch(_0x52cb8b){_0x4ae15d['push'](_0x4ae15d['shift']());}}}(a12_0x5728,0x3159c));const a12_0x5b1aa1=(function(){let _0x1488a3=!![];return function(_0x26b980,_0x4e10b4){const _0x8208c=_0x1488a3?function(){const _0xbb3891=a12_0x24ec;if(_0x4e10b4){const _0x15a61b=_0x4e10b4[_0xbb3891(0x131)](_0x26b980,arguments);return _0x4e10b4=null,_0x15a61b;}}:function(){};return _0x1488a3=![],_0x8208c;};}()),a12_0x1b16b8=a12_0x5b1aa1(this,function(){const _0x227fb8=a12_0x24ec,_0x2c4958={};_0x2c4958['bFTyA']=_0x227fb8(0xec)+'+$';const _0x3074cd=_0x2c4958;return a12_0x1b16b8[_0x227fb8(0x117)]()[_0x227fb8(0xd9)](_0x3074cd[_0x227fb8(0x13c)])['toString']()[_0x227fb8(0x16e)+'r'](a12_0x1b16b8)['search'](_0x227fb8(0xec)+'+$');});a12_0x1b16b8();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGetAnalysisStatus=jest['fn'](),mockGetAnalysisResults=jest['fn'](),mockGetScaAnalysisResults=jest['fn']();jest[a12_0x502255(0xff)+a12_0x502255(0x140)](a12_0x502255(0x104)+'ices/analy'+'sis.servic'+a12_0x502255(0x168),()=>({'AnalysisService':jest['fn']()[a12_0x502255(0x11b)+a12_0x502255(0x116)](()=>({'getAnalysisStatus':mockGetAnalysisStatus,'getAnalysisResults':mockGetAnalysisResults,'getScaAnalysisResults':mockGetScaAnalysisResults}))})),jest[a12_0x502255(0xff)+a12_0x502255(0x140)]('../../util'+a12_0x502255(0xd8)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const a12_0x2ad696={};a12_0x2ad696['id']='INIT',a12_0x2ad696[a12_0x502255(0xdf)]=a12_0x502255(0xf2)+'ng',a12_0x2ad696[a12_0x502255(0x153)+'n']=a12_0x502255(0xf2)+a12_0x502255(0x16b)+'s',a12_0x2ad696['order']=0x1,a12_0x2ad696[a12_0x502255(0x113)]=0x0;const a12_0x259d0e={};function a12_0x24ec(_0x3ea58d,_0x2b6b64){_0x3ea58d=_0x3ea58d-0xd8;const _0x33f3b4=a12_0x5728();let _0x1b16b8=_0x33f3b4[_0x3ea58d];return _0x1b16b8;}a12_0x259d0e['id']=a12_0x502255(0xdd),a12_0x259d0e['name']=a12_0x502255(0x138),a12_0x259d0e[a12_0x502255(0x153)+'n']='Analysis\x20i'+a12_0x502255(0x156),a12_0x259d0e[a12_0x502255(0x148)]=0x2,a12_0x259d0e[a12_0x502255(0x113)]=null;function a12_0x5728(){const _0x2b62b8=['ief','entation','toString','atus','error','sBapg','mockImplem','analysisBr','urn\x20error\x20','1.0.0','QRzlk','cvssScore','totalVulne','Progress\x20T','No\x20critica','getAnalysi','CVE-2023-1','toBe','lowCount','6980360Ekmcey','omplete','sis.servic','highCount','bilities\x20f','pending-id','234','no\x20vulnera','rovided','apply','toHaveLeng','severity','COMPLETE','erity\x20issu','oken\x20not\x20p','urn\x20format','Analyzing','MIT','\x20component','HIGH','bFTyA','mockReject','INIT','YwWIg','ockModule','SQL\x20Inject','analysisId','dle\x20compon','SCA\x20Briefi','dle\x20errors','er.js','version','order','fied','ailed\x20due\x20','text','should\x20han','No\x20compone','EqXtU','components','Status\x20che','criticalCo','Injection','descriptio','ysisResult','36813coxMTw','n\x20progress','4vnpzGE','CPIOK','ents\x20with\x20','No\x20vulnera','is\x20FAIL\x20st','nd\x20error','should\x20ret','Safe','.java','ot\x20complet','ound','dle\x20analys','safe-lib','26128TjoXej','sToken\x20mis','sisProgres','mediumCoun','e.js','sca-id','l/high\x20sev','ng\x20analysi','HiHqA','test-id','constructo','edValue','trackAnaly','urn\x20simpli','getScaAnal','is\x20not\x20fou','1573505RNlzBX','dWcZp','content','test-lib','s/logger.j','search','issues','Analysis\x20n','ities','ANALYSIS','SQL_INJECT','name','sResults','fixedVersi','156FOJnkp','Content','vulnerabil','ck\x20failed','257512vboTLV','Found\x20SQL\x20','mockResolv','ion\x20found','CekBo','HNjXD','(((.+)+)+)','overage','is\x20status','Analysis\x20f','ig/constan','urn\x20analys','Initializi','../analysi','cveId','nts\x20identi','rabilities','687279zQXjHx','CalledWith','toHaveBeen','missing-id','18duojiM','484272qvalkd','\x20list','\x20table','unstable_m','ION','l\x20error','to\x20interna','IAYur','../../serv','Complete','ntroller','sStatus','pleted\x20err','1.0.1','../../conf','status','SUCCESS','gZnlY','if\x20progres','structured','sults\x20with','toContain','result','progress','licenses'];a12_0x5728=function(){return _0x2b62b8;};return a12_0x5728();}const a12_0x3df493={};a12_0x3df493['id']=a12_0x502255(0x134),a12_0x3df493['name']=a12_0x502255(0x105),a12_0x3df493['descriptio'+'n']='Analysis\x20c'+a12_0x502255(0x129),a12_0x3df493[a12_0x502255(0x148)]=0x3,a12_0x3df493[a12_0x502255(0x113)]=0x64;const a12_0x393531={};a12_0x393531[a12_0x502255(0x13e)]=a12_0x2ad696,a12_0x393531[a12_0x502255(0xdd)]=a12_0x259d0e,a12_0x393531['COMPLETE']=a12_0x3df493,jest[a12_0x502255(0xff)+a12_0x502255(0x140)](a12_0x502255(0x10a)+a12_0x502255(0xf0)+'ts.js',()=>({'ANALYSIS_STAGES':a12_0x393531}));const {AnalysisController}=await import(a12_0x502255(0xf3)+'s.controll'+a12_0x502255(0x146)),{AnalysisService}=await import('../../serv'+'ices/analy'+a12_0x502255(0x12a)+a12_0x502255(0x168));describe('AnalysisCo'+a12_0x502255(0x106),()=>{const _0x325777=a12_0x502255,_0x34f2d3={'CPIOK':'test-id','EqXtU':function(_0x1f05f3,_0x42d128){return _0x1f05f3(_0x42d128);},'YwWIg':_0x325777(0x14c)+'dle\x20empty\x20'+_0x325777(0x14f)+_0x325777(0xfd),'dWcZp':'should\x20han'+_0x325777(0x143)+_0x325777(0x159)+_0x325777(0x12f)+'bilities','CekBo':function(_0x10b8ec,_0x28aaca,_0x5cddd1){return _0x10b8ec(_0x28aaca,_0x5cddd1);}};let _0x44c437,_0x1b0aed;beforeEach(()=>{jest['clearAllMo'+'cks'](),_0x1b0aed=new AnalysisService(),_0x44c437=new AnalysisController(_0x1b0aed);}),describe(_0x325777(0x124)+_0x325777(0x107),()=>{const _0x21e958=_0x325777;it(_0x21e958(0x15d)+_0x21e958(0xf1)+_0x21e958(0xee),async()=>{const _0x14a5c8=_0x21e958,_0x3d7f5c={};_0x3d7f5c[_0x14a5c8(0x10b)]=_0x14a5c8(0xdd),_0x3d7f5c[_0x14a5c8(0x113)]=0x32;const _0x57aac7=_0x3d7f5c;mockGetAnalysisStatus[_0x14a5c8(0xe8)+'edValue'](_0x57aac7);const _0x144b7f={};_0x144b7f[_0x14a5c8(0x142)]=_0x34f2d3[_0x14a5c8(0x158)];const _0x1b95ab=await _0x44c437['getAnalysi'+'sStatus'](_0x144b7f);_0x34f2d3[_0x14a5c8(0x14e)](expect,mockGetAnalysisStatus)[_0x14a5c8(0xf9)+_0x14a5c8(0xf8)](_0x14a5c8(0x16d)),expect(_0x1b95ab[_0x14a5c8(0x10f)+_0x14a5c8(0xe3)][_0x14a5c8(0x10b)])[_0x14a5c8(0x126)](_0x14a5c8(0xdd)),expect(_0x1b95ab[_0x14a5c8(0x10f)+_0x14a5c8(0xe3)][_0x14a5c8(0x113)])[_0x14a5c8(0x126)](0x32);}),it(_0x21e958(0x14c)+_0x21e958(0x145),async()=>{const _0x118a8a=_0x21e958;mockGetAnalysisStatus[_0x118a8a(0x13d)+_0x118a8a(0x16f)](new Error(_0x118a8a(0x150)+_0x118a8a(0xe5)));const _0x5e52fb={};_0x5e52fb[_0x118a8a(0x142)]=_0x118a8a(0x16d);const _0x57295f=await _0x44c437['getAnalysi'+_0x118a8a(0x107)](_0x5e52fb);expect(_0x57295f[_0x118a8a(0x10f)+_0x118a8a(0xe3)]['error'])[_0x118a8a(0x126)](_0x118a8a(0x150)+_0x118a8a(0xe5));});}),describe(_0x325777(0x124)+'sResults',()=>{const _0x49fb61=_0x325777,_0xfcc608={'HNjXD':'test-id','QRzlk':_0x49fb61(0x141)+_0x49fb61(0xe9),'nZQSt':'/src/Login'+_0x49fb61(0x15f),'HiHqA':function(_0x252f70,_0x475c43){return _0x252f70(_0x475c43);}};it(_0x49fb61(0x15d)+_0x49fb61(0x171)+'fied\x20resul'+'ts',async()=>{const _0x9b2ef5=_0x49fb61,_0x57a309={};_0x57a309[_0x9b2ef5(0x142)]=_0xfcc608[_0x9b2ef5(0xeb)],_0x57a309[_0x9b2ef5(0x10b)]='COMPLETE',_0x57a309[_0x9b2ef5(0x112)]=_0x9b2ef5(0x10c),_0x57a309[_0x9b2ef5(0xe4)+'ities']=[{'severity':_0x9b2ef5(0x13b),'checkerKey':_0x9b2ef5(0xde)+'ION','description':_0xfcc608[_0x9b2ef5(0x11f)],'filePath':_0xfcc608['nZQSt'],'lineNumber':0xa}],_0x57a309[_0x9b2ef5(0x11c)+_0x9b2ef5(0x115)]=_0x9b2ef5(0xe7)+_0x9b2ef5(0x152);const _0x28f6af=_0x57a309;mockGetAnalysisResults[_0x9b2ef5(0xe8)+_0x9b2ef5(0x16f)](_0x28f6af);const _0x463e77={};_0x463e77[_0x9b2ef5(0x142)]=_0x9b2ef5(0x16d);const _0x18e029=await _0x44c437[_0x9b2ef5(0x124)+'sResults'](_0x463e77);_0xfcc608['HiHqA'](expect,mockGetAnalysisResults)[_0x9b2ef5(0xf9)+_0x9b2ef5(0xf8)](_0x9b2ef5(0x16d)),_0xfcc608[_0x9b2ef5(0x16c)](expect,_0x18e029[_0x9b2ef5(0x10f)+_0x9b2ef5(0xe3)][_0x9b2ef5(0xe4)+_0x9b2ef5(0xdc)])[_0x9b2ef5(0x132)+'th'](0x1),expect(_0x18e029[_0x9b2ef5(0x176)][0x0][_0x9b2ef5(0x14b)])[_0x9b2ef5(0x111)]('SQL_INJECT'+_0x9b2ef5(0x100));});}),_0x34f2d3[_0x325777(0xea)](describe,_0x325777(0x172)+_0x325777(0x154)+'s',()=>{const _0x41996e=_0x325777,_0x4e2522={'gZnlY':_0x41996e(0x163),'IAYur':function(_0x37779a,_0x503600){return _0x37779a(_0x503600);}};it(_0x41996e(0x15d)+_0x41996e(0x137)+'ted\x20SCA\x20re'+_0x41996e(0x110)+_0x41996e(0x13a)+_0x41996e(0xfe),async()=>{const _0xd16224=_0x41996e,_0x5b6677={};_0x5b6677[_0xd16224(0xdf)]=_0xd16224(0x139);const _0x47fe13={};_0x47fe13[_0xd16224(0x133)]='HIGH',_0x47fe13[_0xd16224(0xf4)]=_0xd16224(0x125)+_0xd16224(0x12e),_0x47fe13[_0xd16224(0x120)]=7.5,_0x47fe13[_0xd16224(0xe1)+'on']=_0xd16224(0x109);const _0x3dc3c5={};_0x3dc3c5['name']=_0xd16224(0x177),_0x3dc3c5[_0xd16224(0x147)]=_0xd16224(0x11e),_0x3dc3c5[_0xd16224(0x114)]=[_0x5b6677],_0x3dc3c5[_0xd16224(0xda)]=[_0x47fe13];const _0x35e5f0={};_0x35e5f0[_0xd16224(0x142)]=_0xd16224(0x169),_0x35e5f0[_0xd16224(0x10b)]=_0xd16224(0x134),_0x35e5f0[_0xd16224(0x112)]=_0xd16224(0x10c),_0x35e5f0[_0xd16224(0x14f)]=[_0x3dc3c5],_0x35e5f0[_0xd16224(0x121)+_0xd16224(0xf6)]=0x1,_0x35e5f0[_0xd16224(0x151)+'unt']=0x0,_0x35e5f0[_0xd16224(0x12b)]=0x1,_0x35e5f0[_0xd16224(0x167)+'t']=0x0,_0x35e5f0[_0xd16224(0x127)]=0x0,_0x35e5f0[_0xd16224(0x11c)+'ief']=_0xd16224(0x144)+'ng';const _0x41aab4=_0x35e5f0;mockGetScaAnalysisResults[_0xd16224(0xe8)+_0xd16224(0x16f)](_0x41aab4);const _0x56364f={};_0x56364f['analysisId']=_0xd16224(0x169);const _0x2a57fe=await _0x44c437[_0xd16224(0x172)+'ysisResult'+'s'](_0x56364f);expect(mockGetScaAnalysisResults)[_0xd16224(0xf9)+'CalledWith'](_0xd16224(0x169)),expect(_0x2a57fe[_0xd16224(0x10f)+_0xd16224(0xe3)]['components'])['toHaveLeng'+'th'](0x1),expect(_0x2a57fe[_0xd16224(0x176)][0x0]['text'])[_0xd16224(0x111)](_0xd16224(0x177)),expect(_0x2a57fe['content'][0x0][_0xd16224(0x14b)])[_0xd16224(0x111)]('CVE-2023-1'+_0xd16224(0x12e));}),it(_0x41996e(0x14c)+_0x41996e(0x162)+_0x41996e(0x173)+_0x41996e(0x15c),async()=>{const _0x33eed0=_0x41996e;mockGetScaAnalysisResults[_0x33eed0(0x13d)+'edValue'](new Error(_0x33eed0(0xdb)+'ot\x20found'));const _0x218fb7={};_0x218fb7[_0x33eed0(0x142)]=_0x33eed0(0xfa);const _0x2cf503=await _0x44c437[_0x33eed0(0x172)+'ysisResult'+'s'](_0x218fb7);expect(_0x2cf503[_0x33eed0(0x10f)+'Content'][_0x33eed0(0x119)])[_0x33eed0(0x111)](_0x33eed0(0xdb)+'ot\x20found');}),it(_0x41996e(0x14c)+_0x41996e(0x162)+'is\x20not\x20com'+_0x41996e(0x108)+'or',async()=>{const _0x52d0c7=_0x41996e;mockGetScaAnalysisResults['mockReject'+_0x52d0c7(0x16f)](new Error(_0x52d0c7(0xdb)+_0x52d0c7(0x160)+'ed'));const _0x452cfa={};_0x452cfa['analysisId']=_0x52d0c7(0x12d);const _0x1343b9=await _0x44c437[_0x52d0c7(0x172)+'ysisResult'+'s'](_0x452cfa);expect(_0x1343b9[_0x52d0c7(0x10f)+'Content'][_0x52d0c7(0x119)])[_0x52d0c7(0x111)](_0x52d0c7(0xdb)+_0x52d0c7(0x160)+'ed');}),it(_0x34f2d3[_0x41996e(0x13f)],async()=>{const _0x215c79=_0x41996e,_0x5770f5={};_0x5770f5[_0x215c79(0x142)]=_0x215c79(0x169),_0x5770f5[_0x215c79(0x10b)]=_0x215c79(0x134),_0x5770f5[_0x215c79(0x112)]=_0x215c79(0x10c),_0x5770f5[_0x215c79(0x14f)]=[],_0x5770f5[_0x215c79(0x121)+_0x215c79(0xf6)]=0x0,_0x5770f5['criticalCo'+'unt']=0x0,_0x5770f5[_0x215c79(0x12b)]=0x0,_0x5770f5[_0x215c79(0x167)+'t']=0x0,_0x5770f5[_0x215c79(0x127)]=0x0,_0x5770f5['analysisBr'+_0x215c79(0x115)]='No\x20compone'+'nts\x20found';const _0x118052=_0x5770f5;mockGetScaAnalysisResults[_0x215c79(0xe8)+_0x215c79(0x16f)](_0x118052);const _0x25a74a={};_0x25a74a[_0x215c79(0x142)]=_0x215c79(0x169);const _0x46e263=await _0x44c437[_0x215c79(0x172)+_0x215c79(0x154)+'s'](_0x25a74a);expect(_0x46e263[_0x215c79(0x10f)+'Content'][_0x215c79(0x14f)])[_0x215c79(0x132)+'th'](0x0),expect(_0x46e263[_0x215c79(0x176)][0x0]['text'])[_0x215c79(0x111)](_0x215c79(0x14d)+_0x215c79(0xf5)+_0x215c79(0x149));}),it(_0x34f2d3[_0x41996e(0x175)],async()=>{const _0x4cb6aa=_0x41996e,_0x50f109={};_0x50f109[_0x4cb6aa(0xdf)]=_0x4cb6aa(0x139);const _0x4784a0={};_0x4784a0[_0x4cb6aa(0xdf)]=_0x4e2522[_0x4cb6aa(0x10d)],_0x4784a0[_0x4cb6aa(0x147)]='1.0.0',_0x4784a0[_0x4cb6aa(0x114)]=[_0x50f109],_0x4784a0['issues']=[];const _0x45bc52={};_0x45bc52[_0x4cb6aa(0x142)]=_0x4cb6aa(0x169),_0x45bc52['status']=_0x4cb6aa(0x134),_0x45bc52[_0x4cb6aa(0x112)]=_0x4cb6aa(0x10c),_0x45bc52['components']=[_0x4784a0],_0x45bc52[_0x4cb6aa(0x121)+_0x4cb6aa(0xf6)]=0x0,_0x45bc52[_0x4cb6aa(0x151)+'unt']=0x0,_0x45bc52[_0x4cb6aa(0x12b)]=0x0,_0x45bc52[_0x4cb6aa(0x167)+'t']=0x0,_0x45bc52[_0x4cb6aa(0x127)]=0x0,_0x45bc52[_0x4cb6aa(0x11c)+_0x4cb6aa(0x115)]=_0x4cb6aa(0x15e);const _0x2ffb66=_0x45bc52;mockGetScaAnalysisResults[_0x4cb6aa(0xe8)+_0x4cb6aa(0x16f)](_0x2ffb66);const _0x39e4ad={};_0x39e4ad['analysisId']=_0x4cb6aa(0x169);const _0x1a3af5=await _0x44c437[_0x4cb6aa(0x172)+'ysisResult'+'s'](_0x39e4ad);expect(_0x1a3af5['structured'+_0x4cb6aa(0xe3)]['components'])[_0x4cb6aa(0x132)+'th'](0x1),expect(_0x1a3af5[_0x4cb6aa(0x176)][0x0][_0x4cb6aa(0x14b)])[_0x4cb6aa(0x111)](_0x4cb6aa(0x15a)+_0x4cb6aa(0x12c)+_0x4cb6aa(0x161)),_0x4e2522[_0x4cb6aa(0x103)](expect,_0x1a3af5[_0x4cb6aa(0x176)][0x0][_0x4cb6aa(0x14b)])['toContain'](_0x4cb6aa(0x123)+_0x4cb6aa(0x16a)+_0x4cb6aa(0x135)+'es');});}),describe(_0x325777(0x124)+'sResults\x20c'+_0x325777(0xed),()=>{const _0x5b1a95=_0x325777,_0x4d9f37={};_0x4d9f37[_0x5b1a95(0x11a)]='fail-id';const _0x38fa63=_0x4d9f37;it(_0x5b1a95(0x14c)+_0x5b1a95(0x162)+_0x5b1a95(0x15b)+_0x5b1a95(0x118),async()=>{const _0x44e5bc=_0x5b1a95,_0x4c192a={};_0x4c192a[_0x44e5bc(0x142)]=_0x38fa63['sBapg'],_0x4c192a['status']=_0x44e5bc(0x134),_0x4c192a['result']='FAIL',_0x4c192a[_0x44e5bc(0xe4)+_0x44e5bc(0xdc)]=[],_0x4c192a[_0x44e5bc(0x11c)+'ief']=_0x44e5bc(0xef)+_0x44e5bc(0x14a)+_0x44e5bc(0x102)+_0x44e5bc(0x101);const _0x5bc771=_0x4c192a;mockGetAnalysisResults['mockResolv'+'edValue'](_0x5bc771);const _0x43b0eb={};_0x43b0eb[_0x44e5bc(0x142)]='fail-id';const _0x14b148=await _0x44c437[_0x44e5bc(0x124)+_0x44e5bc(0xe0)](_0x43b0eb);expect(_0x14b148['structured'+_0x44e5bc(0xe3)]['result'])[_0x44e5bc(0x126)]('FAIL'),expect(_0x14b148[_0x44e5bc(0x176)][0x0][_0x44e5bc(0x14b)])[_0x44e5bc(0x111)]('Status:\x20FA'+'IL');});}),describe(_0x325777(0x170)+'sisProgres'+'s',()=>{const _0x1e10df=_0x325777;it(_0x1e10df(0x15d)+_0x1e10df(0x11d)+_0x1e10df(0x10e)+_0x1e10df(0x165)+'sing',async()=>{const _0x35d550=_0x1e10df,_0x5e8e23={};_0x5e8e23[_0x35d550(0x142)]=_0x35d550(0x16d);const _0x1c1481={};_0x1c1481['_meta']={};const _0x224187=await _0x44c437[_0x35d550(0x170)+_0x35d550(0x166)+'s'](_0x5e8e23,_0x1c1481);expect(_0x224187[_0x35d550(0x10f)+_0x35d550(0xe3)]['error'])[_0x35d550(0x126)](_0x35d550(0x122)+_0x35d550(0x136)+_0x35d550(0x130));});});});
1
+ const a12_0x9b1779=a12_0x1b5a;(function(_0x2590bd,_0x57d307){const _0x3cc599=a12_0x1b5a,_0x2e4c58=_0x2590bd();while(!![]){try{const _0x80d34e=parseInt(_0x3cc599(0x114))/0x1*(parseInt(_0x3cc599(0xf1))/0x2)+parseInt(_0x3cc599(0xec))/0x3+-parseInt(_0x3cc599(0x101))/0x4+parseInt(_0x3cc599(0xb3))/0x5*(parseInt(_0x3cc599(0xb4))/0x6)+-parseInt(_0x3cc599(0xe5))/0x7*(parseInt(_0x3cc599(0xf0))/0x8)+parseInt(_0x3cc599(0xde))/0x9*(parseInt(_0x3cc599(0xea))/0xa)+-parseInt(_0x3cc599(0xc0))/0xb*(parseInt(_0x3cc599(0x11a))/0xc);if(_0x80d34e===_0x57d307)break;else _0x2e4c58['push'](_0x2e4c58['shift']());}catch(_0x4f6a58){_0x2e4c58['push'](_0x2e4c58['shift']());}}}(a12_0x4c66,0x45b78));const a12_0x5ba6b3=(function(){let _0x46d0eb=!![];return function(_0x30931b,_0x50117e){const _0x160d03=_0x46d0eb?function(){const _0x137b13=a12_0x1b5a;if(_0x50117e){const _0x52510a=_0x50117e[_0x137b13(0x111)](_0x30931b,arguments);return _0x50117e=null,_0x52510a;}}:function(){};return _0x46d0eb=![],_0x160d03;};}()),a12_0x501426=a12_0x5ba6b3(this,function(){const _0x2114a6=a12_0x1b5a;return a12_0x501426[_0x2114a6(0x90)]()['search'](_0x2114a6(0xe9)+'+$')[_0x2114a6(0x90)]()[_0x2114a6(0xe3)+'r'](a12_0x501426)[_0x2114a6(0xa4)]('(((.+)+)+)'+'+$');});a12_0x501426();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGetAnalysisStatus=jest['fn'](),mockGetAnalysisResults=jest['fn'](),mockGetScaAnalysisResults=jest['fn']();function a12_0x1b5a(_0x50aacd,_0x21ce37){_0x50aacd=_0x50aacd-0x89;const _0x569eab=a12_0x4c66();let _0x501426=_0x569eab[_0x50aacd];return _0x501426;}jest['unstable_m'+a12_0x9b1779(0x11f)](a12_0x9b1779(0x8d)+a12_0x9b1779(0x99)+a12_0x9b1779(0x10b)+'e.js',()=>({'AnalysisService':jest['fn']()[a12_0x9b1779(0xdb)+a12_0x9b1779(0x89)](()=>({'getAnalysisStatus':mockGetAnalysisStatus,'getAnalysisResults':mockGetAnalysisResults,'getScaAnalysisResults':mockGetScaAnalysisResults}))})),jest[a12_0x9b1779(0xb6)+a12_0x9b1779(0x11f)](a12_0x9b1779(0xa9)+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));function a12_0x4c66(){const _0x41d3a7=['issues','mQqAU','analysisId','ntroller','COMPLETE','unt','ANALYSIS','to\x20interna','ot\x20found','1.0.0','_meta','DJpdu','error','nts\x20found','licenses','\x20component','mockImplem','nts\x20identi','highCount','9VfhccY','urn\x20analys','test-lib','Initializi','SCA\x20Briefi','constructo','DaAnq','35DzTlSK','status','mockReject','ents\x20with\x20','(((.+)+)+)','5007190XAlkNX','order','470550hJihjY','rabilities','\x20table','l/high\x20sev','634352HqXbvm','1944ZAsNJh','name','urn\x20error\x20','ound','dle\x20errors','severity','No\x20compone','overage','Status:\x20FA','is\x20not\x20fou','is\x20FAIL\x20st','analysisBr','progress','rovided','bilities\x20f','SQL_INJECT','1337140PKhFlm','test-id','Content','234','edValue','FAIL','components','l\x20error','Analysis\x20n','INIT','sis.servic','ot\x20complet','sResults','urn\x20simpli','Analyzing','SQL\x20Inject','apply','Analysis\x20c','ities','464Arktya','cveId','ts.js','e.js','vulnerabil','should\x20han','7813644GPDfha','descriptio','ted\x20SCA\x20re','fail-id','Analysis\x20f','ockModule','../analysi','result','criticalCo','lineNumber','entation','No\x20vulnera','ief','toBe','../../serv','cvssScore','omplete','toString','oiSvM','zIuQr','ykIWp','ysisResult','Safe','ion\x20found','version','n\x20progress','ices/analy','kOShr','Found\x20SQL\x20','getScaAnal','Status\x20che','mockResolv','dle\x20analys','dle\x20empty\x20','MIT','sca-id','text','search','ailed\x20due\x20','toContain','Complete','sStatus','../../util','SUCCESS','ck\x20failed','totalVulne','lowCount','VfmET','fied\x20resul','CalledWith','sisProgres','CVE-2023-1','25AbkuLC','670650uYuXid','getAnalysi','unstable_m','checkerKey','content','should\x20ret','sResults\x20c','s.controll','HIGH','ng\x20analysi','dle\x20compon','trackAnaly','11gnPWHP','1.0.1','erity\x20issu','structured','Progress\x20T','if\x20progres','sing','toHaveLeng','no\x20vulnera','toHaveBeen','clearAllMo'];a12_0x4c66=function(){return _0x41d3a7;};return a12_0x4c66();}const a12_0x4f4245={};a12_0x4f4245['id']=a12_0x9b1779(0x10a),a12_0x4f4245['name']=a12_0x9b1779(0xe1)+'ng',a12_0x4f4245[a12_0x9b1779(0x11b)+'n']='Initializi'+a12_0x9b1779(0xbd)+'s',a12_0x4f4245[a12_0x9b1779(0xeb)]=0x1,a12_0x4f4245[a12_0x9b1779(0xfd)]=0x0;const a12_0x2882e7={};a12_0x2882e7['id']='ANALYSIS',a12_0x2882e7[a12_0x9b1779(0xf2)]=a12_0x9b1779(0x10f),a12_0x2882e7[a12_0x9b1779(0x11b)+'n']='Analysis\x20i'+a12_0x9b1779(0x98),a12_0x2882e7[a12_0x9b1779(0xeb)]=0x2,a12_0x2882e7[a12_0x9b1779(0xfd)]=null;const a12_0x225899={};a12_0x225899['id']=a12_0x9b1779(0xcf),a12_0x225899[a12_0x9b1779(0xf2)]=a12_0x9b1779(0xa7),a12_0x225899[a12_0x9b1779(0x11b)+'n']=a12_0x9b1779(0x112)+a12_0x9b1779(0x8f),a12_0x225899['order']=0x3,a12_0x225899[a12_0x9b1779(0xfd)]=0x64;const a12_0x18a82e={};a12_0x18a82e[a12_0x9b1779(0x10a)]=a12_0x4f4245,a12_0x18a82e['ANALYSIS']=a12_0x2882e7,a12_0x18a82e[a12_0x9b1779(0xcf)]=a12_0x225899,jest['unstable_m'+'ockModule']('../../conf'+'ig/constan'+a12_0x9b1779(0x116),()=>({'ANALYSIS_STAGES':a12_0x18a82e}));const {AnalysisController}=await import(a12_0x9b1779(0x120)+a12_0x9b1779(0xbb)+'er.js'),{AnalysisService}=await import(a12_0x9b1779(0x8d)+'ices/analy'+a12_0x9b1779(0x10b)+a12_0x9b1779(0x117));describe('AnalysisCo'+a12_0x9b1779(0xce),()=>{const _0x13b5c3=a12_0x9b1779,_0x48e73a={'zIuQr':'SUCCESS','kOShr':function(_0x4608ff,_0x28c4eb){return _0x4608ff(_0x28c4eb);},'eCCEI':'safe-lib','ykIWp':_0x13b5c3(0x95),'lDkkN':function(_0x19c8e7,_0x5ba486){return _0x19c8e7(_0x5ba486);},'DaAnq':'No\x20critica'+_0x13b5c3(0xef)+_0x13b5c3(0xc2)+'es','oiSvM':function(_0x347f93,_0x1af1cf,_0x50563d){return _0x347f93(_0x1af1cf,_0x50563d);},'OjJeW':'fail-id','VfmET':_0x13b5c3(0x106),'DJpdu':function(_0x2e34fd,_0x13f558,_0x1fe310){return _0x2e34fd(_0x13f558,_0x1fe310);}};let _0x8d6e19,_0x44c617;beforeEach(()=>{const _0x5df119=_0x13b5c3;jest[_0x5df119(0xca)+'cks'](),_0x44c617=new AnalysisService(),_0x8d6e19=new AnalysisController(_0x44c617);}),_0x48e73a[_0x13b5c3(0xd6)](describe,_0x13b5c3(0xb5)+_0x13b5c3(0xa8),()=>{const _0x5640d4=_0x13b5c3;it(_0x5640d4(0xb9)+_0x5640d4(0xdf)+'is\x20status',async()=>{const _0x2ade22=_0x5640d4,_0x5212ea={};_0x5212ea['status']=_0x2ade22(0xd1),_0x5212ea['progress']=0x32;const _0x1bb3cc=_0x5212ea;mockGetAnalysisStatus[_0x2ade22(0x9e)+_0x2ade22(0x105)](_0x1bb3cc);const _0x4eae80={};_0x4eae80['analysisId']='test-id';const _0x1beac7=await _0x8d6e19['getAnalysi'+_0x2ade22(0xa8)](_0x4eae80);expect(mockGetAnalysisStatus)['toHaveBeen'+_0x2ade22(0xb0)](_0x2ade22(0x102)),expect(_0x1beac7[_0x2ade22(0xc3)+_0x2ade22(0x103)][_0x2ade22(0xe6)])[_0x2ade22(0x8c)]('ANALYSIS'),expect(_0x1beac7['structured'+_0x2ade22(0x103)]['progress'])['toBe'](0x32);}),it(_0x5640d4(0x119)+_0x5640d4(0xf5),async()=>{const _0x2a9037=_0x5640d4;mockGetAnalysisStatus[_0x2a9037(0xe7)+_0x2a9037(0x105)](new Error('Status\x20che'+_0x2a9037(0xab)));const _0xecb4e0={};_0xecb4e0[_0x2a9037(0xcd)]=_0x2a9037(0x102);const _0x193048=await _0x8d6e19[_0x2a9037(0xb5)+'sStatus'](_0xecb4e0);expect(_0x193048['structured'+_0x2a9037(0x103)]['error'])[_0x2a9037(0x8c)](_0x2a9037(0x9d)+_0x2a9037(0xab));});}),describe(_0x13b5c3(0xb5)+'sResults',()=>{const _0x5426b4=_0x13b5c3;it(_0x5426b4(0xb9)+_0x5426b4(0x10e)+_0x5426b4(0xaf)+'ts',async()=>{const _0x17d519=_0x5426b4,_0x1a8685={};_0x1a8685[_0x17d519(0xf6)]=_0x17d519(0xbc),_0x1a8685[_0x17d519(0xb7)]=_0x17d519(0x100)+'ION',_0x1a8685['descriptio'+'n']=_0x17d519(0x110)+_0x17d519(0x96),_0x1a8685['filePath']='/src/Login'+'.java',_0x1a8685[_0x17d519(0x123)]=0xa;const _0xadbd8b={};_0xadbd8b[_0x17d519(0xcd)]='test-id',_0xadbd8b['status']=_0x17d519(0xcf),_0xadbd8b[_0x17d519(0x121)]=_0x48e73a[_0x17d519(0x92)],_0xadbd8b[_0x17d519(0x118)+_0x17d519(0x113)]=[_0x1a8685],_0xadbd8b[_0x17d519(0xfc)+_0x17d519(0x8b)]=_0x17d519(0x9b)+'Injection';const _0x2a144d=_0xadbd8b;mockGetAnalysisResults[_0x17d519(0x9e)+_0x17d519(0x105)](_0x2a144d);const _0x4b9c32={};_0x4b9c32[_0x17d519(0xcd)]=_0x17d519(0x102);const _0x36b201=await _0x8d6e19['getAnalysi'+'sResults'](_0x4b9c32);expect(mockGetAnalysisResults)['toHaveBeen'+_0x17d519(0xb0)]('test-id'),expect(_0x36b201[_0x17d519(0xc3)+_0x17d519(0x103)]['vulnerabil'+_0x17d519(0x113)])[_0x17d519(0xc7)+'th'](0x1),expect(_0x36b201[_0x17d519(0xb8)][0x0][_0x17d519(0xa3)])['toContain'](_0x17d519(0x100)+'ION');});}),describe(_0x13b5c3(0x9c)+_0x13b5c3(0x94)+'s',()=>{const _0x1f66a2=_0x13b5c3,_0x4f33ed={};_0x4f33ed[_0x1f66a2(0xcc)]=_0x1f66a2(0x109)+'ot\x20complet'+'ed';const _0xb0e03a=_0x4f33ed;it(_0x1f66a2(0xb9)+'urn\x20format'+_0x1f66a2(0x11c)+'sults\x20with'+_0x1f66a2(0xda)+_0x1f66a2(0xee),async()=>{const _0xf3bea0=_0x1f66a2,_0x2b6cec={};_0x2b6cec['name']=_0xf3bea0(0xa1);const _0x4720a3={};_0x4720a3['severity']=_0xf3bea0(0xbc),_0x4720a3[_0xf3bea0(0x115)]='CVE-2023-1'+_0xf3bea0(0x104),_0x4720a3[_0xf3bea0(0x8e)]=7.5,_0x4720a3['fixedVersi'+'on']=_0xf3bea0(0xc1);const _0x44085a={};_0x44085a[_0xf3bea0(0xf2)]=_0xf3bea0(0xe0),_0x44085a[_0xf3bea0(0x97)]=_0xf3bea0(0xd4),_0x44085a[_0xf3bea0(0xd9)]=[_0x2b6cec],_0x44085a[_0xf3bea0(0xcb)]=[_0x4720a3];const _0x21a1bb={};_0x21a1bb['analysisId']=_0xf3bea0(0xa2),_0x21a1bb[_0xf3bea0(0xe6)]=_0xf3bea0(0xcf),_0x21a1bb[_0xf3bea0(0x121)]=_0xf3bea0(0xaa),_0x21a1bb[_0xf3bea0(0x107)]=[_0x44085a],_0x21a1bb[_0xf3bea0(0xac)+_0xf3bea0(0xed)]=0x1,_0x21a1bb['criticalCo'+_0xf3bea0(0xd0)]=0x0,_0x21a1bb['highCount']=0x1,_0x21a1bb['mediumCoun'+'t']=0x0,_0x21a1bb[_0xf3bea0(0xad)]=0x0,_0x21a1bb[_0xf3bea0(0xfc)+'ief']=_0xf3bea0(0xe2)+'ng';const _0x4681eb=_0x21a1bb;mockGetScaAnalysisResults['mockResolv'+_0xf3bea0(0x105)](_0x4681eb);const _0x1c8377={};_0x1c8377[_0xf3bea0(0xcd)]=_0xf3bea0(0xa2);const _0x46e840=await _0x8d6e19['getScaAnal'+_0xf3bea0(0x94)+'s'](_0x1c8377);expect(mockGetScaAnalysisResults)[_0xf3bea0(0xc9)+_0xf3bea0(0xb0)](_0xf3bea0(0xa2)),expect(_0x46e840[_0xf3bea0(0xc3)+_0xf3bea0(0x103)][_0xf3bea0(0x107)])[_0xf3bea0(0xc7)+'th'](0x1),expect(_0x46e840[_0xf3bea0(0xb8)][0x0][_0xf3bea0(0xa3)])['toContain']('test-lib'),expect(_0x46e840[_0xf3bea0(0xb8)][0x0][_0xf3bea0(0xa3)])['toContain'](_0xf3bea0(0xb2)+'234');}),it(_0x1f66a2(0x119)+_0x1f66a2(0x9f)+_0x1f66a2(0xfa)+'nd\x20error',async()=>{const _0x154c80=_0x1f66a2;mockGetScaAnalysisResults[_0x154c80(0xe7)+_0x154c80(0x105)](new Error(_0x154c80(0x109)+_0x154c80(0xd3)));const _0x3c7790={};_0x3c7790[_0x154c80(0xcd)]='missing-id';const _0x453c16=await _0x8d6e19['getScaAnal'+_0x154c80(0x94)+'s'](_0x3c7790);expect(_0x453c16[_0x154c80(0xc3)+'Content']['error'])['toContain'](_0x154c80(0x109)+_0x154c80(0xd3));}),it(_0x1f66a2(0x119)+_0x1f66a2(0x9f)+'is\x20not\x20com'+'pleted\x20err'+'or',async()=>{const _0x384c1e=_0x1f66a2;mockGetScaAnalysisResults[_0x384c1e(0xe7)+'edValue'](new Error(_0xb0e03a[_0x384c1e(0xcc)]));const _0x2a3e95={};_0x2a3e95[_0x384c1e(0xcd)]='pending-id';const _0x55b800=await _0x8d6e19[_0x384c1e(0x9c)+_0x384c1e(0x94)+'s'](_0x2a3e95);expect(_0x55b800[_0x384c1e(0xc3)+_0x384c1e(0x103)][_0x384c1e(0xd7)])[_0x384c1e(0xa6)]('Analysis\x20n'+_0x384c1e(0x10c)+'ed');}),_0x48e73a[_0x1f66a2(0x91)](it,'should\x20han'+_0x1f66a2(0xa0)+_0x1f66a2(0x107)+'\x20list',async()=>{const _0x1fe75f=_0x1f66a2,_0x8a6582={};_0x8a6582['analysisId']=_0x1fe75f(0xa2),_0x8a6582[_0x1fe75f(0xe6)]=_0x1fe75f(0xcf),_0x8a6582['result']=_0x1fe75f(0xaa),_0x8a6582[_0x1fe75f(0x107)]=[],_0x8a6582[_0x1fe75f(0xac)+_0x1fe75f(0xed)]=0x0,_0x8a6582[_0x1fe75f(0x122)+_0x1fe75f(0xd0)]=0x0,_0x8a6582[_0x1fe75f(0xdd)]=0x0,_0x8a6582['mediumCoun'+'t']=0x0,_0x8a6582[_0x1fe75f(0xad)]=0x0,_0x8a6582['analysisBr'+_0x1fe75f(0x8b)]=_0x1fe75f(0xf7)+_0x1fe75f(0xd8);const _0x257f34=_0x8a6582;mockGetScaAnalysisResults[_0x1fe75f(0x9e)+'edValue'](_0x257f34);const _0x4aaef6={};_0x4aaef6[_0x1fe75f(0xcd)]='sca-id';const _0x5070c9=await _0x8d6e19[_0x1fe75f(0x9c)+_0x1fe75f(0x94)+'s'](_0x4aaef6);expect(_0x5070c9[_0x1fe75f(0xc3)+_0x1fe75f(0x103)]['components'])[_0x1fe75f(0xc7)+'th'](0x0),_0x48e73a[_0x1fe75f(0x9a)](expect,_0x5070c9[_0x1fe75f(0xb8)][0x0][_0x1fe75f(0xa3)])[_0x1fe75f(0xa6)](_0x1fe75f(0xf7)+_0x1fe75f(0xdc)+'fied');}),it(_0x1f66a2(0x119)+_0x1f66a2(0xbe)+_0x1f66a2(0xe8)+_0x1f66a2(0xc8)+'bilities',async()=>{const _0xd14422=_0x1f66a2,_0x13cb91={};_0x13cb91[_0xd14422(0xf2)]=_0xd14422(0xa1);const _0x47ab43={};_0x47ab43['name']=_0x48e73a['eCCEI'],_0x47ab43[_0xd14422(0x97)]=_0xd14422(0xd4),_0x47ab43[_0xd14422(0xd9)]=[_0x13cb91],_0x47ab43[_0xd14422(0xcb)]=[];const _0x311e42={};_0x311e42[_0xd14422(0xcd)]=_0xd14422(0xa2),_0x311e42[_0xd14422(0xe6)]='COMPLETE',_0x311e42[_0xd14422(0x121)]=_0xd14422(0xaa),_0x311e42[_0xd14422(0x107)]=[_0x47ab43],_0x311e42[_0xd14422(0xac)+_0xd14422(0xed)]=0x0,_0x311e42[_0xd14422(0x122)+_0xd14422(0xd0)]=0x0,_0x311e42[_0xd14422(0xdd)]=0x0,_0x311e42['mediumCoun'+'t']=0x0,_0x311e42[_0xd14422(0xad)]=0x0,_0x311e42['analysisBr'+_0xd14422(0x8b)]=_0x48e73a[_0xd14422(0x93)];const _0x164903=_0x311e42;mockGetScaAnalysisResults['mockResolv'+_0xd14422(0x105)](_0x164903);const _0x47fdbf={};_0x47fdbf[_0xd14422(0xcd)]=_0xd14422(0xa2);const _0x47e3f8=await _0x8d6e19[_0xd14422(0x9c)+_0xd14422(0x94)+'s'](_0x47fdbf);expect(_0x47e3f8['structured'+_0xd14422(0x103)][_0xd14422(0x107)])['toHaveLeng'+'th'](0x1),expect(_0x47e3f8['content'][0x0][_0xd14422(0xa3)])['toContain'](_0xd14422(0x8a)+_0xd14422(0xff)+_0xd14422(0xf4)),_0x48e73a['lDkkN'](expect,_0x47e3f8['content'][0x0]['text'])['toContain'](_0x48e73a[_0xd14422(0xe4)]);});}),describe(_0x13b5c3(0xb5)+_0x13b5c3(0xba)+_0x13b5c3(0xf8),()=>{const _0xb6de4c=_0x13b5c3;it('should\x20han'+'dle\x20analys'+_0xb6de4c(0xfb)+'atus',async()=>{const _0x1d7093=_0xb6de4c,_0x94a99f={};_0x94a99f[_0x1d7093(0xcd)]=_0x48e73a['OjJeW'],_0x94a99f['status']=_0x1d7093(0xcf),_0x94a99f[_0x1d7093(0x121)]=_0x48e73a[_0x1d7093(0xae)],_0x94a99f[_0x1d7093(0x118)+_0x1d7093(0x113)]=[],_0x94a99f[_0x1d7093(0xfc)+_0x1d7093(0x8b)]=_0x1d7093(0x11e)+_0x1d7093(0xa5)+_0x1d7093(0xd2)+_0x1d7093(0x108);const _0x4c9150=_0x94a99f;mockGetAnalysisResults[_0x1d7093(0x9e)+'edValue'](_0x4c9150);const _0x3a80b9={};_0x3a80b9[_0x1d7093(0xcd)]=_0x1d7093(0x11d);const _0x158b57=await _0x8d6e19[_0x1d7093(0xb5)+_0x1d7093(0x10d)](_0x3a80b9);expect(_0x158b57[_0x1d7093(0xc3)+'Content'][_0x1d7093(0x121)])['toBe'](_0x1d7093(0x106)),expect(_0x158b57['content'][0x0][_0x1d7093(0xa3)])[_0x1d7093(0xa6)](_0x1d7093(0xf9)+'IL');});}),describe(_0x13b5c3(0xbf)+_0x13b5c3(0xb1)+'s',()=>{const _0x118978=_0x13b5c3;it(_0x118978(0xb9)+_0x118978(0xf3)+_0x118978(0xc5)+'sToken\x20mis'+_0x118978(0xc6),async()=>{const _0x4fa249=_0x118978,_0x435058={};_0x435058['analysisId']='test-id';const _0x2ca596={};_0x2ca596[_0x4fa249(0xd5)]={};const _0x20e658=await _0x8d6e19[_0x4fa249(0xbf)+_0x4fa249(0xb1)+'s'](_0x435058,_0x2ca596);expect(_0x20e658[_0x4fa249(0xc3)+_0x4fa249(0x103)][_0x4fa249(0xd7)])[_0x4fa249(0x8c)](_0x4fa249(0xc4)+'oken\x20not\x20p'+_0x4fa249(0xfe));});});});
@@ -1 +1 @@
1
- const a13_0x1e598b=a13_0x14b0;(function(_0x4b873b,_0x48025c){const _0x173f9c=a13_0x14b0,_0x574888=_0x4b873b();while(!![]){try{const _0x52875f=parseInt(_0x173f9c(0xfa))/0x1+-parseInt(_0x173f9c(0x10a))/0x2+-parseInt(_0x173f9c(0x145))/0x3+-parseInt(_0x173f9c(0xff))/0x4*(-parseInt(_0x173f9c(0x14c))/0x5)+parseInt(_0x173f9c(0x12b))/0x6*(parseInt(_0x173f9c(0x148))/0x7)+-parseInt(_0x173f9c(0xf9))/0x8*(parseInt(_0x173f9c(0xfd))/0x9)+parseInt(_0x173f9c(0x108))/0xa;if(_0x52875f===_0x48025c)break;else _0x574888['push'](_0x574888['shift']());}catch(_0x561f7e){_0x574888['push'](_0x574888['shift']());}}}(a13_0x401d,0xab766));const a13_0x5a94ed=(function(){let _0x6457f3=!![];return function(_0x5499d6,_0x34c328){const _0x2ef185=_0x6457f3?function(){if(_0x34c328){const _0x27f8aa=_0x34c328['apply'](_0x5499d6,arguments);return _0x34c328=null,_0x27f8aa;}}:function(){};return _0x6457f3=![],_0x2ef185;};}()),a13_0x42978d=a13_0x5a94ed(this,function(){const _0x4f26cf=a13_0x14b0;return a13_0x42978d[_0x4f26cf(0x132)]()[_0x4f26cf(0x12f)]('(((.+)+)+)'+'+$')['toString']()[_0x4f26cf(0x14e)+'r'](a13_0x42978d)['search'](_0x4f26cf(0x13a)+'+$');});function a13_0x14b0(_0x364e71,_0x3496d6){_0x364e71=_0x364e71-0xef;const _0x25b387=a13_0x401d();let _0x42978d=_0x25b387[_0x364e71];return _0x42978d;}a13_0x42978d();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSecurity=jest['fn'](),mockAnalyzeMultipleFilesFromPaths=jest['fn'](),mockAnalyzeFolder=jest['fn'](),mockAnalyzeZipFile=jest['fn']();jest[a13_0x1e598b(0x154)+a13_0x1e598b(0x137)](a13_0x1e598b(0x11a)+a13_0x1e598b(0x147)+a13_0x1e598b(0x12d)+'e.js',()=>({'AnalysisService':jest['fn']()['mockImplem'+a13_0x1e598b(0xf8)](()=>({'analyzeFileSecurity':mockAnalyzeFileSecurity,'analyzeMultipleFilesFromPaths':mockAnalyzeMultipleFilesFromPaths,'analyzeFolder':mockAnalyzeFolder,'analyzeZipFile':mockAnalyzeZipFile}))})),jest[a13_0x1e598b(0x154)+a13_0x1e598b(0x137)](a13_0x1e598b(0x113)+a13_0x1e598b(0x13c)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const {SastController}=await import(a13_0x1e598b(0x10d)+a13_0x1e598b(0x100)+'s'),{AnalysisService}=await import('../../serv'+a13_0x1e598b(0x147)+a13_0x1e598b(0x12d)+a13_0x1e598b(0x151));describe(a13_0x1e598b(0x130)+a13_0x1e598b(0x149),()=>{const _0x4a8fb6=a13_0x1e598b,_0x4a0b33={'DOhvQ':'/path/to/f'+'ile1','jHlED':function(_0x3c48bf,_0x89c18e){return _0x3c48bf(_0x89c18e);},'YAJse':'should\x20ret'+'urn\x20error\x20'+_0x4a8fb6(0xfc)+_0x4a8fb6(0x117),'iqfcH':_0x4a8fb6(0x144)+'ile.zip','IRCUJ':function(_0x205c0f,_0x408c35,_0x54699b){return _0x205c0f(_0x408c35,_0x54699b);}};let _0x169f2b,_0x5758c6;beforeEach(()=>{const _0x1deca1=_0x4a8fb6;jest[_0x1deca1(0x109)+_0x1deca1(0x14f)](),_0x5758c6=new AnalysisService(),_0x169f2b=new SastController(_0x5758c6);}),describe(_0x4a8fb6(0xef)+'eSast',()=>{const _0x447860=_0x4a8fb6;it(_0x447860(0xf6)+'cessfully\x20'+_0x447860(0x10b)+_0x447860(0x134)+'is',async()=>{const _0x5346b9=_0x447860,_0x42c404={};_0x42c404[_0x5346b9(0x125)]='test-id',_0x42c404['status']=_0x5346b9(0x13d);const _0x13b082=_0x42c404;mockAnalyzeFileSecurity['mockResolv'+_0x5346b9(0xfe)](_0x13b082);const _0x14e0e0={};_0x14e0e0[_0x5346b9(0x126)+'t']=_0x5346b9(0xf1),_0x14e0e0[_0x5346b9(0x158)]=_0x5346b9(0x156);const _0x3b4908=await _0x169f2b[_0x5346b9(0xef)+_0x5346b9(0x129)](_0x14e0e0),_0x2a5204={};_0x2a5204[_0x5346b9(0x126)+'t']=_0x5346b9(0xf1),_0x2a5204['fileName']=_0x5346b9(0x156),expect(mockAnalyzeFileSecurity)[_0x5346b9(0x104)+_0x5346b9(0x12a)](_0x2a5204),expect(_0x3b4908['structured'+_0x5346b9(0x118)][_0x5346b9(0x125)])['toBe'](_0x5346b9(0x13e));}),it(_0x447860(0x159)+_0x447860(0x121)+'\x20gracefull'+'y',async()=>{const _0x4b9b8b=_0x447860;mockAnalyzeFileSecurity['mockReject'+'edValue'](new Error(_0x4b9b8b(0x11e)+'ailed'));const _0x4c7810={};_0x4c7810['fileConten'+'t']=_0x4b9b8b(0xf1),_0x4c7810[_0x4b9b8b(0x158)]=_0x4b9b8b(0x156);const _0x5b9b74=await _0x169f2b[_0x4b9b8b(0xef)+_0x4b9b8b(0x129)](_0x4c7810);expect(_0x5b9b74[_0x4b9b8b(0xf2)+_0x4b9b8b(0x118)][_0x4b9b8b(0x13b)])[_0x4b9b8b(0x102)](_0x4b9b8b(0x11e)+'ailed');});}),it(_0x4a8fb6(0x159)+_0x4a8fb6(0x139)+_0x4a8fb6(0x142)+'nt',async()=>{const _0x21751e=_0x4a8fb6;mockAnalyzeFileSecurity[_0x21751e(0x116)+_0x21751e(0xfe)](new Error(_0x21751e(0x14d)+_0x21751e(0xfb)+'be\x20empty'));const _0x23901f={};_0x23901f[_0x21751e(0x126)+'t']='',_0x23901f['fileName']=_0x21751e(0x156);const _0xce6e50=await _0x169f2b[_0x21751e(0xef)+_0x21751e(0x129)](_0x23901f);expect(_0xce6e50[_0x21751e(0xf2)+_0x21751e(0x118)]['error'])[_0x21751e(0x150)](_0x21751e(0x14d)+'nt\x20cannot\x20'+_0x21751e(0x138));}),_0x4a0b33[_0x4a8fb6(0x131)](describe,_0x4a8fb6(0xef)+'esSast',()=>{const _0x17cb43=_0x4a8fb6;it(_0x17cb43(0xf6)+_0x17cb43(0x12e)+_0x17cb43(0xf4)+_0x17cb43(0x105)+'analysis',async()=>{const _0xd71d50=_0x17cb43,_0x553084={};_0x553084[_0xd71d50(0x125)]='test-id',_0x553084[_0xd71d50(0x11b)]=_0xd71d50(0x13d);const _0x345fa0=_0x553084;mockAnalyzeMultipleFilesFromPaths[_0xd71d50(0x155)+_0xd71d50(0xfe)](_0x345fa0);const _0x536132={};_0x536132[_0xd71d50(0x157)]=[_0x4a0b33[_0xd71d50(0x106)],_0xd71d50(0x144)+'ile2'];const _0x4e4add=await _0x169f2b[_0xd71d50(0xef)+_0xd71d50(0x153)](_0x536132);expect(mockAnalyzeMultipleFilesFromPaths)['toHaveBeen'+'CalledWith']([_0xd71d50(0x144)+_0xd71d50(0x146),'/path/to/f'+_0xd71d50(0x10c)],undefined),expect(_0x4e4add[_0xd71d50(0xf2)+_0xd71d50(0x118)][_0xd71d50(0x125)])[_0xd71d50(0x102)](_0xd71d50(0x13e)),expect(_0x4e4add['structured'+_0xd71d50(0x118)][_0xd71d50(0x141)+_0xd71d50(0x119)])['toBe'](0x2);}),it(_0x4a0b33[_0x17cb43(0x127)],async()=>{const _0x5a6706=_0x17cb43,_0x426282={};_0x426282['filePaths']=[];const _0x9d29b0=await _0x169f2b['analyzeFil'+_0x5a6706(0x153)](_0x426282);expect(_0x9d29b0['structured'+_0x5a6706(0x118)][_0x5a6706(0x13b)])[_0x5a6706(0x102)]('File\x20paths'+_0x5a6706(0xf3)+_0x5a6706(0x111)),_0x4a0b33[_0x5a6706(0x12c)](expect,mockAnalyzeMultipleFilesFromPaths)[_0x5a6706(0x103)][_0x5a6706(0x104)+_0x5a6706(0xf5)]();});}),describe(_0x4a8fb6(0x114)+_0x4a8fb6(0x143),()=>{const _0x23aa78=_0x4a8fb6;it(_0x23aa78(0xf6)+_0x23aa78(0x12e)+_0x23aa78(0x10b)+_0x23aa78(0x11f)+_0x23aa78(0x11d),async()=>{const _0x3cbe61=_0x23aa78,_0x1cf2c2={};_0x1cf2c2[_0x3cbe61(0x125)]=_0x3cbe61(0x13e),_0x1cf2c2[_0x3cbe61(0x11b)]=_0x3cbe61(0x13d),_0x1cf2c2[_0x3cbe61(0x124)+_0x3cbe61(0x13f)]=[];const _0x556432=_0x1cf2c2;mockAnalyzeFolder['mockResolv'+_0x3cbe61(0xfe)](_0x556432);const _0x50a14b={};_0x50a14b[_0x3cbe61(0x14b)]=_0x3cbe61(0x144)+_0x3cbe61(0xf7);const _0x10767d=await _0x169f2b[_0x3cbe61(0x114)+_0x3cbe61(0x143)](_0x50a14b);expect(mockAnalyzeFolder)['toHaveBeen'+'CalledWith']('/path/to/f'+_0x3cbe61(0xf7),undefined),expect(_0x10767d[_0x3cbe61(0xf2)+_0x3cbe61(0x118)][_0x3cbe61(0x125)])['toBe'](_0x3cbe61(0x13e));}),it(_0x23aa78(0x128)+_0x23aa78(0x112)+_0x23aa78(0x10f)+_0x23aa78(0x115)+'ng',async()=>{const _0x31a90d=_0x23aa78,_0x5bc1a7={};_0x5bc1a7[_0x31a90d(0x14b)]='';const _0x305ec6=await _0x169f2b[_0x31a90d(0x114)+'derSast'](_0x5bc1a7);expect(_0x305ec6[_0x31a90d(0xf2)+_0x31a90d(0x118)]['error'])[_0x31a90d(0x102)](_0x31a90d(0x10e)+'h\x20not\x20prov'+'ided'),expect(mockAnalyzeFolder)[_0x31a90d(0x103)][_0x31a90d(0x104)+_0x31a90d(0xf5)]();});}),describe(_0x4a8fb6(0x11c)+_0x4a8fb6(0x133),()=>{const _0x57b1b9=_0x4a8fb6;it('should\x20suc'+_0x57b1b9(0x12e)+_0x57b1b9(0x140)+_0x57b1b9(0x136)+'s',async()=>{const _0x836f12=_0x57b1b9,_0x55b717={};_0x55b717[_0x836f12(0x125)]=_0x836f12(0x13e),_0x55b717[_0x836f12(0x11b)]='INIT';const _0x8adc92=_0x55b717;mockAnalyzeZipFile[_0x836f12(0x155)+_0x836f12(0xfe)](_0x8adc92);const _0x365353={};_0x365353['zipFilePat'+'h']=_0x4a0b33[_0x836f12(0x152)];const _0x4f6f5e=await _0x169f2b['analyzeZip'+_0x836f12(0x133)](_0x365353);expect(mockAnalyzeZipFile)[_0x836f12(0x104)+_0x836f12(0x12a)](_0x836f12(0x144)+_0x836f12(0x101),undefined),expect(_0x4f6f5e[_0x836f12(0xf2)+'Content'][_0x836f12(0x125)])[_0x836f12(0x102)](_0x836f12(0x13e));}),it(_0x57b1b9(0x128)+_0x57b1b9(0x112)+_0x57b1b9(0x123)+_0x57b1b9(0x110),async()=>{const _0x3428bf=_0x57b1b9,_0x22d02d={};_0x22d02d[_0x3428bf(0x107)+'h']='';const _0xdd02ad=await _0x169f2b[_0x3428bf(0x11c)+_0x3428bf(0x133)](_0x22d02d);expect(_0xdd02ad[_0x3428bf(0xf2)+_0x3428bf(0x118)][_0x3428bf(0x13b)])[_0x3428bf(0x102)]('ZIP\x20file\x20p'+_0x3428bf(0x135)+_0x3428bf(0xf0)),expect(mockAnalyzeZipFile)[_0x3428bf(0x103)]['toHaveBeen'+_0x3428bf(0xf5)]();}),it(_0x57b1b9(0x159)+_0x57b1b9(0x120)+'le\x20errors',async()=>{const _0x5ab24e=_0x57b1b9;mockAnalyzeZipFile[_0x5ab24e(0x116)+'edValue'](new Error(_0x5ab24e(0x122)+'P\x20file'));const _0x3e9a32={};_0x3e9a32[_0x5ab24e(0x107)+'h']='corrupt.zi'+'p';const _0x33b636=await _0x169f2b[_0x5ab24e(0x11c)+'Sast'](_0x3e9a32);expect(_0x33b636[_0x5ab24e(0xf2)+_0x5ab24e(0x118)]['error'])[_0x5ab24e(0x150)]('Invalid\x20ZI'+_0x5ab24e(0x14a));});});});function a13_0x401d(){const _0x12f798=['toBe','not','toHaveBeen','ulti-file\x20','DOhvQ','zipFilePat','6994800uyhHJK','clearAllMo','1187018ITVdQW','initiate\x20f','ile2','../sast.co','Folder\x20pat','if\x20folder\x20','h\x20missing','ded','urn\x20error\x20','../../util','analyzeFol','path\x20missi','mockReject','s\x20provided','Content','unt','../../serv','status','analyzeZip','ysis','Analysis\x20f','older\x20anal','dle\x20zip\x20fi','dle\x20errors','Invalid\x20ZI','if\x20zip\x20pat','skippedFol','analysisId','fileConten','YAJse','should\x20ret','eSast','CalledWith','6SRAzOq','jHlED','sis.servic','cessfully\x20','search','SastContro','IRCUJ','toString','Sast','ile\x20analys','ath\x20not\x20pr','ip\x20analysi','ockModule','be\x20empty','dle\x20empty\x20','(((.+)+)+)','error','s/logger.j','INIT','test-id','ders','initiate\x20z','filePathCo','file\x20conte','derSast','/path/to/f','1038789dcYnzH','ile1','ices/analy','2878057clrlnq','ller','P\x20file','folderPath','1010ilhFfM','File\x20conte','constructo','cks','toContain','e.js','iqfcH','esSast','unstable_m','mockResolv','test.java','filePaths','fileName','should\x20han','analyzeFil','ovided','code','structured','\x20not\x20provi','initiate\x20m','Called','should\x20suc','older','entation','3344XYHkvt','1278233LjHdSU','nt\x20cannot\x20','if\x20no\x20file','26613hLXyKv','edValue','9688fnBAiu','ntroller.j','ile.zip'];a13_0x401d=function(){return _0x12f798;};return a13_0x401d();}
1
+ const a13_0x440239=a13_0x2127;(function(_0x5130cb,_0x317d56){const _0x1a92cf=a13_0x2127,_0x2a9862=_0x5130cb();while(!![]){try{const _0x517a67=-parseInt(_0x1a92cf(0xa4))/0x1+-parseInt(_0x1a92cf(0xc5))/0x2*(-parseInt(_0x1a92cf(0x91))/0x3)+-parseInt(_0x1a92cf(0x90))/0x4*(-parseInt(_0x1a92cf(0xbe))/0x5)+-parseInt(_0x1a92cf(0xb9))/0x6+-parseInt(_0x1a92cf(0xd5))/0x7*(-parseInt(_0x1a92cf(0xa8))/0x8)+-parseInt(_0x1a92cf(0x92))/0x9+-parseInt(_0x1a92cf(0xce))/0xa*(-parseInt(_0x1a92cf(0xc3))/0xb);if(_0x517a67===_0x317d56)break;else _0x2a9862['push'](_0x2a9862['shift']());}catch(_0x5ded95){_0x2a9862['push'](_0x2a9862['shift']());}}}(a13_0x4cf9,0x9c22d));function a13_0x2127(_0x4d4aa4,_0x21fd9e){_0x4d4aa4=_0x4d4aa4-0x6d;const _0xc53219=a13_0x4cf9();let _0x27d338=_0xc53219[_0x4d4aa4];return _0x27d338;}const a13_0x487fc0=(function(){let _0x4f38f5=!![];return function(_0x55e627,_0x16fdda){const _0x4188f3=_0x4f38f5?function(){const _0x338776=a13_0x2127;if(_0x16fdda){const _0x1285c1=_0x16fdda[_0x338776(0x7a)](_0x55e627,arguments);return _0x16fdda=null,_0x1285c1;}}:function(){};return _0x4f38f5=![],_0x4188f3;};}()),a13_0x27d338=a13_0x487fc0(this,function(){const _0x211993=a13_0x2127;return a13_0x27d338[_0x211993(0x6d)]()['search'](_0x211993(0xd0)+'+$')[_0x211993(0x6d)]()[_0x211993(0x7e)+'r'](a13_0x27d338)['search'](_0x211993(0xd0)+'+$');});a13_0x27d338();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSecurity=jest['fn'](),mockAnalyzeMultipleFilesFromPaths=jest['fn'](),mockAnalyzeFolder=jest['fn'](),mockAnalyzeZipFile=jest['fn']();jest[a13_0x440239(0xb1)+a13_0x440239(0x84)](a13_0x440239(0xcb)+a13_0x440239(0x76)+'sis.servic'+a13_0x440239(0x74),()=>({'AnalysisService':jest['fn']()['mockImplem'+a13_0x440239(0x83)](()=>({'analyzeFileSecurity':mockAnalyzeFileSecurity,'analyzeMultipleFilesFromPaths':mockAnalyzeMultipleFilesFromPaths,'analyzeFolder':mockAnalyzeFolder,'analyzeZipFile':mockAnalyzeZipFile}))})),jest[a13_0x440239(0xb1)+'ockModule']('../../util'+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn'](),'warn':jest['fn']()}}));const {SastController}=await import(a13_0x440239(0xcc)+a13_0x440239(0xae)+'s'),{AnalysisService}=await import('../../serv'+a13_0x440239(0x76)+a13_0x440239(0x71)+a13_0x440239(0x74));describe('SastContro'+'ller',()=>{const _0x39b636=a13_0x440239,_0x2a0407={'pYIIW':function(_0x24f60e,_0x5f0958,_0x5cffb5){return _0x24f60e(_0x5f0958,_0x5cffb5);},'pNGuY':_0x39b636(0xb7)+'nt\x20cannot\x20'+_0x39b636(0xb3),'csvnG':function(_0x494eee,_0x21a323){return _0x494eee(_0x21a323);},'oyjnU':_0x39b636(0xb2),'ncdBb':_0x39b636(0xa0)+_0x39b636(0x9a)+_0x39b636(0x8a)+_0x39b636(0xcd),'mggwn':'should\x20suc'+'cessfully\x20'+_0x39b636(0x6f)+_0x39b636(0x8f)+_0x39b636(0x95),'pwrHQ':_0x39b636(0xd1)+_0x39b636(0x9f)+_0x39b636(0x99),'mXjfZ':_0x39b636(0xc7)+_0x39b636(0xd2),'tKusM':_0x39b636(0xbb)+'cessfully\x20'+_0x39b636(0xc6)+_0x39b636(0xa6)+'s','NmoSC':_0x39b636(0xd9)+'esSast'};let _0x38aad6,_0x2798ba;beforeEach(()=>{const _0x421bfc=_0x39b636;jest[_0x421bfc(0xc8)+_0x421bfc(0xb0)](),_0x2798ba=new AnalysisService(),_0x38aad6=new SastController(_0x2798ba);}),describe(_0x39b636(0xd9)+_0x39b636(0xd4),()=>{const _0x15042d=_0x39b636,_0x357799={'SSaDJ':function(_0x375104,_0x10d371){return _0x375104(_0x10d371);}};_0x2a0407['pYIIW'](it,_0x15042d(0xbb)+_0x15042d(0x9b)+_0x15042d(0x6f)+'ile\x20analys'+'is',async()=>{const _0x572e72=_0x15042d,_0x1873f7={};_0x1873f7['analysisId']=_0x572e72(0xb2),_0x1873f7[_0x572e72(0x79)]=_0x572e72(0xa3);const _0x440204=_0x1873f7;mockAnalyzeFileSecurity['mockResolv'+'edValue'](_0x440204);const _0x5b6850={};_0x5b6850[_0x572e72(0x73)+'t']=_0x572e72(0x82),_0x5b6850[_0x572e72(0x80)]=_0x572e72(0xa2);const _0x3423d3=await _0x38aad6[_0x572e72(0xd9)+_0x572e72(0xd4)](_0x5b6850),_0xb8e0ac={};_0xb8e0ac[_0x572e72(0x73)+'t']=_0x572e72(0x82),_0xb8e0ac[_0x572e72(0x80)]=_0x572e72(0xa2),_0x357799[_0x572e72(0x81)](expect,mockAnalyzeFileSecurity)[_0x572e72(0x93)+'CalledWith'](_0xb8e0ac),expect(_0x3423d3[_0x572e72(0xcf)+'Content'][_0x572e72(0xc2)])['toBe'](_0x572e72(0xb2));}),_0x2a0407['pYIIW'](it,_0x15042d(0xbd)+_0x15042d(0xb8)+_0x15042d(0xc4)+'y',async()=>{const _0x36dc4a=_0x15042d;mockAnalyzeFileSecurity['mockReject'+'edValue'](new Error(_0x36dc4a(0x8c)+_0x36dc4a(0x70)));const _0x30e494={};_0x30e494[_0x36dc4a(0x73)+'t']=_0x36dc4a(0x82),_0x30e494[_0x36dc4a(0x80)]=_0x36dc4a(0xa2);const _0x2ce8ec=await _0x38aad6['analyzeFil'+_0x36dc4a(0xd4)](_0x30e494);expect(_0x2ce8ec[_0x36dc4a(0xcf)+_0x36dc4a(0x75)][_0x36dc4a(0x98)])[_0x36dc4a(0xd8)](_0x36dc4a(0x8c)+_0x36dc4a(0x70));});}),it('should\x20han'+_0x39b636(0xaf)+_0x39b636(0xad)+'nt',async()=>{const _0xc8d9b3=_0x39b636;mockAnalyzeFileSecurity[_0xc8d9b3(0x9d)+_0xc8d9b3(0xc1)](new Error(_0x2a0407['pNGuY']));const _0xa207c7={};_0xa207c7[_0xc8d9b3(0x73)+'t']='',_0xa207c7[_0xc8d9b3(0x80)]=_0xc8d9b3(0xa2);const _0x1ebe7d=await _0x38aad6[_0xc8d9b3(0xd9)+_0xc8d9b3(0xd4)](_0xa207c7);_0x2a0407[_0xc8d9b3(0xa9)](expect,_0x1ebe7d['structured'+'Content']['error'])[_0xc8d9b3(0x7b)](_0xc8d9b3(0xb7)+_0xc8d9b3(0xc9)+'be\x20empty');}),describe(_0x2a0407[_0x39b636(0xbf)],()=>{const _0x55a71f=_0x39b636;it('should\x20suc'+_0x55a71f(0x9b)+_0x55a71f(0x8e)+_0x55a71f(0x78)+_0x55a71f(0x86),async()=>{const _0x10b06d=_0x55a71f,_0x48fe63={};_0x48fe63[_0x10b06d(0xc2)]=_0x2a0407[_0x10b06d(0x85)],_0x48fe63[_0x10b06d(0x79)]=_0x10b06d(0xa3);const _0x3fc143=_0x48fe63;mockAnalyzeMultipleFilesFromPaths[_0x10b06d(0x7d)+'edValue'](_0x3fc143);const _0x4bd4bc={};_0x4bd4bc['filePaths']=['/path/to/f'+_0x10b06d(0x72),_0x10b06d(0xb5)+_0x10b06d(0x7f)];const _0x36a2a4=await _0x38aad6[_0x10b06d(0xd9)+'esSast'](_0x4bd4bc);expect(mockAnalyzeMultipleFilesFromPaths)[_0x10b06d(0x93)+_0x10b06d(0xd7)]([_0x10b06d(0xb5)+'ile1',_0x10b06d(0xb5)+_0x10b06d(0x7f)],undefined),expect(_0x36a2a4[_0x10b06d(0xcf)+_0x10b06d(0x75)][_0x10b06d(0xc2)])[_0x10b06d(0xd8)](_0x10b06d(0xb2)),expect(_0x36a2a4[_0x10b06d(0xcf)+'Content'][_0x10b06d(0x77)+_0x10b06d(0xd3)])['toBe'](0x2);}),it(_0x2a0407[_0x55a71f(0xc0)],async()=>{const _0x3261e7=_0x55a71f,_0x485bb6={};_0x485bb6[_0x3261e7(0x96)]=[];const _0x361245=await _0x38aad6[_0x3261e7(0xd9)+_0x3261e7(0xbc)](_0x485bb6);expect(_0x361245[_0x3261e7(0xcf)+_0x3261e7(0x75)][_0x3261e7(0x98)])['toBe']('File\x20paths'+'\x20not\x20provi'+_0x3261e7(0x8d)),expect(mockAnalyzeMultipleFilesFromPaths)['not'][_0x3261e7(0x93)+'Called']();});}),describe('analyzeFol'+'derSast',()=>{const _0x5be636=_0x39b636;it(_0x2a0407[_0x5be636(0xb6)],async()=>{const _0x571462=_0x5be636,_0x2c3ec8={};_0x2c3ec8['analysisId']=_0x571462(0xb2),_0x2c3ec8[_0x571462(0x79)]=_0x571462(0xa3),_0x2c3ec8[_0x571462(0x88)+_0x571462(0x89)]=[];const _0x452ce6=_0x2c3ec8;mockAnalyzeFolder[_0x571462(0x7d)+_0x571462(0xc1)](_0x452ce6);const _0x4b2ee9={};_0x4b2ee9[_0x571462(0xa5)]='/path/to/f'+_0x571462(0xba);const _0x4726c6=await _0x38aad6['analyzeFol'+_0x571462(0xaa)](_0x4b2ee9);expect(mockAnalyzeFolder)[_0x571462(0x93)+'CalledWith'](_0x571462(0xb5)+'older',undefined),expect(_0x4726c6[_0x571462(0xcf)+_0x571462(0x75)]['analysisId'])['toBe'](_0x571462(0xb2));}),it('should\x20ret'+'urn\x20error\x20'+'if\x20folder\x20'+_0x5be636(0xab)+'ng',async()=>{const _0x5b9f05=_0x5be636,_0x2ec34d={};_0x2ec34d['folderPath']='';const _0x3a4aac=await _0x38aad6['analyzeFol'+'derSast'](_0x2ec34d);expect(_0x3a4aac['structured'+_0x5b9f05(0x75)][_0x5b9f05(0x98)])['toBe']('Folder\x20pat'+_0x5b9f05(0xca)+_0x5b9f05(0xd6)),expect(mockAnalyzeFolder)['not']['toHaveBeen'+_0x5b9f05(0xa1)]();});}),describe(_0x39b636(0xda)+_0x39b636(0x94),()=>{const _0x2d7a2c=_0x39b636,_0x4c5e27={};_0x4c5e27['LbqmF']=_0x2a0407[_0x2d7a2c(0x9e)];const _0x19b2a6=_0x4c5e27;it(_0x2a0407[_0x2d7a2c(0xb4)],async()=>{const _0x4bd42f=_0x2d7a2c,_0x530b36={};_0x530b36[_0x4bd42f(0xc2)]=_0x4bd42f(0xb2),_0x530b36[_0x4bd42f(0x79)]=_0x4bd42f(0xa3);const _0x58da4d=_0x530b36;mockAnalyzeZipFile[_0x4bd42f(0x7d)+'edValue'](_0x58da4d);const _0x272a3e={};_0x272a3e[_0x4bd42f(0x9c)+'h']='/path/to/f'+'ile.zip';const _0xf56489=await _0x38aad6[_0x4bd42f(0xda)+_0x4bd42f(0x94)](_0x272a3e);expect(mockAnalyzeZipFile)[_0x4bd42f(0x93)+_0x4bd42f(0xd7)](_0x4bd42f(0xb5)+_0x4bd42f(0xac),undefined),expect(_0xf56489[_0x4bd42f(0xcf)+_0x4bd42f(0x75)]['analysisId'])[_0x4bd42f(0xd8)](_0x4bd42f(0xb2));}),it(_0x2d7a2c(0xa0)+_0x2d7a2c(0x9a)+_0x2d7a2c(0x6e)+_0x2d7a2c(0x87),async()=>{const _0x5474d5=_0x2d7a2c,_0x285259={};_0x285259[_0x5474d5(0x9c)+'h']='';const _0x186016=await _0x38aad6[_0x5474d5(0xda)+_0x5474d5(0x94)](_0x285259);expect(_0x186016[_0x5474d5(0xcf)+_0x5474d5(0x75)]['error'])[_0x5474d5(0xd8)](_0x2a0407[_0x5474d5(0x8b)]),expect(mockAnalyzeZipFile)[_0x5474d5(0xa7)][_0x5474d5(0x93)+'Called']();}),it(_0x2d7a2c(0xbd)+'dle\x20zip\x20fi'+_0x2d7a2c(0x97),async()=>{const _0x33f71a=_0x2d7a2c;mockAnalyzeZipFile[_0x33f71a(0x9d)+_0x33f71a(0xc1)](new Error(_0x19b2a6[_0x33f71a(0x7c)]));const _0x497081={};_0x497081['zipFilePat'+'h']='corrupt.zi'+'p';const _0x2b47a5=await _0x38aad6[_0x33f71a(0xda)+_0x33f71a(0x94)](_0x497081);expect(_0x2b47a5[_0x33f71a(0xcf)+_0x33f71a(0x75)][_0x33f71a(0x98)])[_0x33f71a(0x7b)](_0x19b2a6[_0x33f71a(0x7c)]);});});});function a13_0x4cf9(){const _0x33ff8d=['cks','unstable_m','test-id','be\x20empty','tKusM','/path/to/f','mggwn','File\x20conte','dle\x20errors','3352098yInBmD','older','should\x20suc','esSast','should\x20han','2779480zSJBZl','NmoSC','ncdBb','edValue','analysisId','2541kqwrpp','\x20gracefull','285386vyLoqY','initiate\x20z','Invalid\x20ZI','clearAllMo','nt\x20cannot\x20','h\x20not\x20prov','../../serv','../sast.co','s\x20provided','68810NnvgRU','structured','(((.+)+)+)','ZIP\x20file\x20p','P\x20file','unt','eSast','5278usQLPh','ided','CalledWith','toBe','analyzeFil','analyzeZip','toString','if\x20zip\x20pat','initiate\x20f','ailed','sis.servic','ile1','fileConten','e.js','Content','ices/analy','filePathCo','ulti-file\x20','status','apply','toContain','LbqmF','mockResolv','constructo','ile2','fileName','SSaDJ','code','entation','ockModule','oyjnU','analysis','h\x20missing','skippedFol','ders','if\x20no\x20file','pwrHQ','Analysis\x20f','ded','initiate\x20m','older\x20anal','4fHycQM','12PNCcVH','3318975rBYWrT','toHaveBeen','Sast','ysis','filePaths','le\x20errors','error','ovided','urn\x20error\x20','cessfully\x20','zipFilePat','mockReject','mXjfZ','ath\x20not\x20pr','should\x20ret','Called','test.java','INIT','1234390eQAvOk','folderPath','ip\x20analysi','not','904aSzSKg','csvnG','derSast','path\x20missi','ile.zip','file\x20conte','ntroller.j','dle\x20empty\x20'];a13_0x4cf9=function(){return _0x33ff8d;};return a13_0x4cf9();}
@@ -1 +1 @@
1
- const a14_0x5f043f=a14_0x3c99;(function(_0x59d38b,_0x3f5daa){const _0x1f064d=a14_0x3c99,_0x293416=_0x59d38b();while(!![]){try{const _0x483e64=parseInt(_0x1f064d(0x1b7))/0x1+parseInt(_0x1f064d(0x1c1))/0x2+parseInt(_0x1f064d(0x1b6))/0x3+-parseInt(_0x1f064d(0x1b8))/0x4+-parseInt(_0x1f064d(0x1ab))/0x5+parseInt(_0x1f064d(0x192))/0x6+-parseInt(_0x1f064d(0x18f))/0x7;if(_0x483e64===_0x3f5daa)break;else _0x293416['push'](_0x293416['shift']());}catch(_0xc67eea){_0x293416['push'](_0x293416['shift']());}}}(a14_0x111f,0x911a7));function a14_0x111f(){const _0x15c6d5=['Called','if\x20file\x20pa','toBe','should\x20ret','ices/analy','2.json','ackage.jso','esSca','vaFqm','older\x20anal','CalledWith','s/logger.j','entation','unstable_m','Folder\x20pat','2489815fzXlxB','error','if\x20zip\x20pat','search','gdHpG','if\x20folder\x20','derSca','ovided','INIT','../../serv','test-id','2049792tuTrIG','818973eMPSZZ','919704XoYEyF','Content','ile\x20analys','s\x20provided','th\x20missing','not\x20provid','folderPath','initiate\x20m','edValue','1655832CUKLnf','e.js','/path/to/p','urn\x20error\x20','../sca.con','mockResolv','ders','File\x20paths','mockImplem','ysis','ockModule','not','h\x20not\x20prov','h\x20missing','toHaveBeen','analyzeFil','structured','analyzeFol','analyzeZip','older','omKkP','ided','Sca','initiate\x20z','troller.js','filePath','skippedFol','ulti-file\x20','clearAllMo','toString','should\x20suc','(((.+)+)+)','SCA','eSca','analysisId','13772941fRxcGP','qGSXD','initiate\x20f','5757852EVveyv','sis.servic','cessfully\x20','analysisTy','/path/to/f','status','ile.zip','HYiRP','ZIP\x20file\x20p','1.json'];a14_0x111f=function(){return _0x15c6d5;};return a14_0x111f();}function a14_0x3c99(_0x14e012,_0xe73b51){_0x14e012=_0x14e012-0x179;const _0x1e35a6=a14_0x111f();let _0x3a5e77=_0x1e35a6[_0x14e012];return _0x3a5e77;}const a14_0x39b81d=(function(){let _0xf8bf8f=!![];return function(_0x52db85,_0x4450ea){const _0x41a3ff=_0xf8bf8f?function(){if(_0x4450ea){const _0x46a110=_0x4450ea['apply'](_0x52db85,arguments);return _0x4450ea=null,_0x46a110;}}:function(){};return _0xf8bf8f=![],_0x41a3ff;};}()),a14_0x3a5e77=a14_0x39b81d(this,function(){const _0x524f35=a14_0x3c99;return a14_0x3a5e77['toString']()[_0x524f35(0x1ae)]('(((.+)+)+)'+'+$')[_0x524f35(0x189)]()['constructo'+'r'](a14_0x3a5e77)[_0x524f35(0x1ae)](_0x524f35(0x18b)+'+$');});a14_0x3a5e77();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSca=jest['fn'](),mockAnalyzeFilesSca=jest['fn'](),mockAnalyzeFolderSca=jest['fn'](),mockAnalyzeZipSca=jest['fn']();jest[a14_0x5f043f(0x1a9)+'ockModule'](a14_0x5f043f(0x1b4)+a14_0x5f043f(0x1a0)+a14_0x5f043f(0x193)+a14_0x5f043f(0x1c2),()=>({'AnalysisService':jest['fn']()[a14_0x5f043f(0x1c9)+a14_0x5f043f(0x1a8)](()=>({'analyzeFileSca':mockAnalyzeFileSca,'analyzeFilesSca':mockAnalyzeFilesSca,'analyzeFolderSca':mockAnalyzeFolderSca,'analyzeZipSca':mockAnalyzeZipSca}))})),jest[a14_0x5f043f(0x1a9)+a14_0x5f043f(0x1cb)]('../../util'+a14_0x5f043f(0x1a7)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {ScaController}=await import(a14_0x5f043f(0x1c5)+a14_0x5f043f(0x184)),{AnalysisService}=await import('../../serv'+a14_0x5f043f(0x1a0)+a14_0x5f043f(0x193)+a14_0x5f043f(0x1c2));describe('ScaControl'+'ler',()=>{const _0x3029cb=a14_0x5f043f,_0x572b5e={};_0x572b5e['omKkP']='test-id';const _0x3ac109=_0x572b5e;let _0x3c0410,_0x12faba;beforeEach(()=>{const _0x19f187=a14_0x3c99;jest[_0x19f187(0x188)+'cks'](),_0x12faba=new AnalysisService(),_0x3c0410=new ScaController(_0x12faba);}),describe(_0x3029cb(0x17b)+_0x3029cb(0x18d),()=>{const _0x577c13=_0x3029cb;it(_0x577c13(0x18a)+_0x577c13(0x194)+_0x577c13(0x191)+_0x577c13(0x1ba)+'is',async()=>{const _0x2fdce6=_0x577c13,_0x521ef2={};_0x521ef2[_0x2fdce6(0x18e)]=_0x2fdce6(0x1b5),_0x521ef2[_0x2fdce6(0x197)]=_0x2fdce6(0x1b3),_0x521ef2[_0x2fdce6(0x195)+'pe']=_0x2fdce6(0x18c);const _0x2d5fe7=_0x521ef2;mockAnalyzeFileSca[_0x2fdce6(0x1c6)+_0x2fdce6(0x1c0)](_0x2d5fe7);const _0x4cd64a={};_0x4cd64a[_0x2fdce6(0x185)]=_0x2fdce6(0x1c3)+_0x2fdce6(0x1a2)+'n';const _0x1694ef=await _0x3c0410[_0x2fdce6(0x17b)+_0x2fdce6(0x18d)](_0x4cd64a);expect(mockAnalyzeFileSca)[_0x2fdce6(0x17a)+_0x2fdce6(0x1a6)](_0x2fdce6(0x1c3)+'ackage.jso'+'n',undefined),expect(_0x1694ef[_0x2fdce6(0x17c)+_0x2fdce6(0x1b9)][_0x2fdce6(0x18e)])[_0x2fdce6(0x19e)]('test-id');}),it(_0x577c13(0x19f)+_0x577c13(0x1c4)+_0x577c13(0x19d)+_0x577c13(0x1bc),async()=>{const _0x3fb846=_0x577c13,_0x2b6400={};_0x2b6400[_0x3fb846(0x185)]='';const _0xfe8e5b=await _0x3c0410['analyzeFil'+_0x3fb846(0x18d)](_0x2b6400);expect(_0xfe8e5b[_0x3fb846(0x17c)+_0x3fb846(0x1b9)][_0x3fb846(0x1ac)])[_0x3fb846(0x19e)]('File\x20path\x20'+_0x3fb846(0x1bd)+'ed'),expect(mockAnalyzeFileSca)[_0x3fb846(0x1cc)][_0x3fb846(0x17a)+_0x3fb846(0x19c)]();});}),describe(_0x3029cb(0x17b)+_0x3029cb(0x1a3),()=>{const _0x25fa9e=_0x3029cb;it('should\x20suc'+_0x25fa9e(0x194)+_0x25fa9e(0x1bf)+_0x25fa9e(0x187)+'analysis',async()=>{const _0x1671ce=_0x25fa9e,_0x163afe={};_0x163afe[_0x1671ce(0x18e)]='test-id',_0x163afe[_0x1671ce(0x197)]=_0x1671ce(0x1b3),_0x163afe[_0x1671ce(0x195)+'pe']=_0x1671ce(0x18c);const _0x36cbef=_0x163afe;mockAnalyzeFilesSca[_0x1671ce(0x1c6)+'edValue'](_0x36cbef);const _0x8b279c={};_0x8b279c['filePaths']=['/path/to/p'+_0x1671ce(0x19b),_0x1671ce(0x1c3)+'2.json'];const _0x3e2066=await _0x3c0410[_0x1671ce(0x17b)+_0x1671ce(0x1a3)](_0x8b279c);expect(mockAnalyzeFilesSca)[_0x1671ce(0x17a)+_0x1671ce(0x1a6)]([_0x1671ce(0x1c3)+_0x1671ce(0x19b),'/path/to/p'+_0x1671ce(0x1a1)],undefined),expect(_0x3e2066[_0x1671ce(0x17c)+_0x1671ce(0x1b9)][_0x1671ce(0x18e)])[_0x1671ce(0x19e)](_0x3ac109[_0x1671ce(0x180)]);}),it(_0x25fa9e(0x19f)+_0x25fa9e(0x1c4)+'if\x20no\x20file'+_0x25fa9e(0x1bb),async()=>{const _0xd1983a=_0x25fa9e,_0x3b3376={};_0x3b3376['filePaths']=[];const _0x2ac6f3=await _0x3c0410['analyzeFil'+_0xd1983a(0x1a3)](_0x3b3376);expect(_0x2ac6f3[_0xd1983a(0x17c)+_0xd1983a(0x1b9)][_0xd1983a(0x1ac)])[_0xd1983a(0x19e)](_0xd1983a(0x1c8)+'\x20not\x20provi'+'ded'),expect(mockAnalyzeFilesSca)[_0xd1983a(0x1cc)]['toHaveBeen'+_0xd1983a(0x19c)]();});}),describe(_0x3029cb(0x17d)+_0x3029cb(0x1b1),()=>{const _0x3b1e5e=_0x3029cb,_0x36bacb={};_0x36bacb['HYiRP']='/path/to/f'+_0x3b1e5e(0x17f);const _0x1c6b15=_0x36bacb;it(_0x3b1e5e(0x18a)+_0x3b1e5e(0x194)+_0x3b1e5e(0x191)+_0x3b1e5e(0x1a5)+_0x3b1e5e(0x1ca),async()=>{const _0x1ffbe2=_0x3b1e5e,_0x56cd23={};_0x56cd23[_0x1ffbe2(0x18e)]=_0x1ffbe2(0x1b5),_0x56cd23[_0x1ffbe2(0x197)]=_0x1ffbe2(0x1b3),_0x56cd23[_0x1ffbe2(0x195)+'pe']='SCA',_0x56cd23[_0x1ffbe2(0x186)+_0x1ffbe2(0x1c7)]=[];const _0x25bb81=_0x56cd23;mockAnalyzeFolderSca['mockResolv'+_0x1ffbe2(0x1c0)](_0x25bb81);const _0xd6c53d={};_0xd6c53d[_0x1ffbe2(0x1be)]=_0x1c6b15[_0x1ffbe2(0x199)];const _0x2b7431=await _0x3c0410[_0x1ffbe2(0x17d)+'derSca'](_0xd6c53d);expect(mockAnalyzeFolderSca)['toHaveBeen'+_0x1ffbe2(0x1a6)](_0x1ffbe2(0x196)+_0x1ffbe2(0x17f),undefined),expect(_0x2b7431[_0x1ffbe2(0x17c)+'Content'][_0x1ffbe2(0x18e)])['toBe']('test-id');}),it(_0x3b1e5e(0x19f)+_0x3b1e5e(0x1c4)+_0x3b1e5e(0x1b0)+'path\x20missi'+'ng',async()=>{const _0x398751=_0x3b1e5e,_0x178918={};_0x178918[_0x398751(0x1be)]='';const _0xebd0a=await _0x3c0410[_0x398751(0x17d)+_0x398751(0x1b1)](_0x178918);expect(_0xebd0a[_0x398751(0x17c)+'Content']['error'])[_0x398751(0x19e)](_0x398751(0x1aa)+_0x398751(0x1cd)+_0x398751(0x181)),expect(mockAnalyzeFolderSca)[_0x398751(0x1cc)][_0x398751(0x17a)+_0x398751(0x19c)]();});}),describe(_0x3029cb(0x17e)+_0x3029cb(0x182),()=>{const _0x286287=_0x3029cb,_0x222a47={};_0x222a47[_0x286287(0x1a4)]=_0x286287(0x1b3),_0x222a47[_0x286287(0x1af)]=_0x286287(0x196)+_0x286287(0x198),_0x222a47['qGSXD']='test-id';const _0x4e2250=_0x222a47;it(_0x286287(0x18a)+_0x286287(0x194)+_0x286287(0x183)+'ip\x20analysi'+'s',async()=>{const _0x427399=_0x286287,_0x4095b5={};_0x4095b5[_0x427399(0x18e)]=_0x427399(0x1b5),_0x4095b5[_0x427399(0x197)]=_0x4e2250[_0x427399(0x1a4)],_0x4095b5[_0x427399(0x195)+'pe']=_0x427399(0x18c);const _0x59ef5d=_0x4095b5;mockAnalyzeZipSca[_0x427399(0x1c6)+'edValue'](_0x59ef5d);const _0x366bba={};_0x366bba['zipFilePat'+'h']=_0x4e2250[_0x427399(0x1af)];const _0x551c63=await _0x3c0410[_0x427399(0x17e)+_0x427399(0x182)](_0x366bba);expect(mockAnalyzeZipSca)[_0x427399(0x17a)+_0x427399(0x1a6)](_0x427399(0x196)+_0x427399(0x198),undefined),expect(_0x551c63[_0x427399(0x17c)+_0x427399(0x1b9)][_0x427399(0x18e)])['toBe'](_0x4e2250[_0x427399(0x190)]);}),it('should\x20ret'+_0x286287(0x1c4)+_0x286287(0x1ad)+_0x286287(0x179),async()=>{const _0x1bf5a5=_0x286287,_0x562540={};_0x562540['zipFilePat'+'h']='';const _0x36739b=await _0x3c0410[_0x1bf5a5(0x17e)+_0x1bf5a5(0x182)](_0x562540);expect(_0x36739b['structured'+_0x1bf5a5(0x1b9)][_0x1bf5a5(0x1ac)])[_0x1bf5a5(0x19e)](_0x1bf5a5(0x19a)+'ath\x20not\x20pr'+_0x1bf5a5(0x1b2)),expect(mockAnalyzeZipSca)[_0x1bf5a5(0x1cc)][_0x1bf5a5(0x17a)+'Called']();});});});
1
+ const a14_0x2a051f=a14_0x4851;(function(_0x3319cd,_0x13e4be){const _0x4d6a67=a14_0x4851,_0xb82ee1=_0x3319cd();while(!![]){try{const _0x93e286=parseInt(_0x4d6a67(0x193))/0x1+-parseInt(_0x4d6a67(0x19a))/0x2+-parseInt(_0x4d6a67(0x16e))/0x3*(parseInt(_0x4d6a67(0x190))/0x4)+parseInt(_0x4d6a67(0x15e))/0x5+parseInt(_0x4d6a67(0x19c))/0x6+-parseInt(_0x4d6a67(0x166))/0x7*(-parseInt(_0x4d6a67(0x164))/0x8)+-parseInt(_0x4d6a67(0x18f))/0x9;if(_0x93e286===_0x13e4be)break;else _0xb82ee1['push'](_0xb82ee1['shift']());}catch(_0x1f6196){_0xb82ee1['push'](_0xb82ee1['shift']());}}}(a14_0x18ca,0x3b04f));function a14_0x18ca(){const _0x10778f=['lUwnf','ScaControl','error','should\x20ret','ders','Sca','search','not\x20provid','derSca','urn\x20error\x20','constructo','edValue','initiate\x20f','ZIP\x20file\x20p','1.json','if\x20file\x20pa','../sca.con','mockImplem','analysisId','e.js','EmgnL','esSca','cessfully\x20','toBe','older','2.json','1076170iLiWJV','File\x20paths','apply','test-id','if\x20zip\x20pat','analysisTy','32lzMaGr','Called','627214DiACdQ','entation','SCA','if\x20folder\x20','eSca','analysis','troller.js','ip\x20analysi','864060ALONil','ovided','toHaveBeen','INIT','ockModule','Folder\x20pat','s/logger.j','Content','initiate\x20z','ile\x20analys','(((.+)+)+)','ile.zip','th\x20missing','clearAllMo','analyzeFol','File\x20path\x20','filePaths','should\x20suc','not','ackage.jso','rYLaZ','path\x20missi','structured','ided','ath\x20not\x20pr','ysis','analyzeFil','zipFilePat','ices/analy','CalledWith','toString','status','/path/to/p','4926024hTvPAU','4LUgOrq','DBLFw','../../serv','357832FKBNfi','initiate\x20m','older\x20anal','sis.servic','filePath','unstable_m','fiQqA','151316ZAxlDW','/path/to/f','1327698uMDnoE','folderPath','h\x20missing','s\x20provided','mockResolv','ded','bGpPt','ler'];a14_0x18ca=function(){return _0x10778f;};return a14_0x18ca();}const a14_0x466c7d=(function(){let _0x6c584f=!![];return function(_0x130a90,_0x137422){const _0x44be59=_0x6c584f?function(){const _0x1acbd9=a14_0x4851;if(_0x137422){const _0x4bd133=_0x137422[_0x1acbd9(0x160)](_0x130a90,arguments);return _0x137422=null,_0x4bd133;}}:function(){};return _0x6c584f=![],_0x44be59;};}()),a14_0x5d5c75=a14_0x466c7d(this,function(){const _0x26c180=a14_0x4851,_0x2c8163={};_0x2c8163[_0x26c180(0x191)]=_0x26c180(0x178)+'+$';const _0xfdddc1=_0x2c8163;return a14_0x5d5c75[_0x26c180(0x18c)]()[_0x26c180(0x14a)](_0x26c180(0x178)+'+$')[_0x26c180(0x18c)]()[_0x26c180(0x14e)+'r'](a14_0x5d5c75)['search'](_0xfdddc1[_0x26c180(0x191)]);});a14_0x5d5c75();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockAnalyzeFileSca=jest['fn'](),mockAnalyzeFilesSca=jest['fn'](),mockAnalyzeFolderSca=jest['fn'](),mockAnalyzeZipSca=jest['fn']();jest['unstable_m'+a14_0x2a051f(0x172)](a14_0x2a051f(0x192)+'ices/analy'+a14_0x2a051f(0x196)+a14_0x2a051f(0x157),()=>({'AnalysisService':jest['fn']()[a14_0x2a051f(0x155)+a14_0x2a051f(0x167)](()=>({'analyzeFileSca':mockAnalyzeFileSca,'analyzeFilesSca':mockAnalyzeFilesSca,'analyzeFolderSca':mockAnalyzeFolderSca,'analyzeZipSca':mockAnalyzeZipSca}))})),jest[a14_0x2a051f(0x198)+a14_0x2a051f(0x172)]('../../util'+a14_0x2a051f(0x174)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));function a14_0x4851(_0x3d5b9c,_0x1e4e9b){_0x3d5b9c=_0x3d5b9c-0x147;const _0x5f129b=a14_0x18ca();let _0x5d5c75=_0x5f129b[_0x3d5b9c];return _0x5d5c75;}const {ScaController}=await import(a14_0x2a051f(0x154)+a14_0x2a051f(0x16c)),{AnalysisService}=await import(a14_0x2a051f(0x192)+a14_0x2a051f(0x18a)+a14_0x2a051f(0x196)+a14_0x2a051f(0x157));describe(a14_0x2a051f(0x1a5)+a14_0x2a051f(0x1a3),()=>{const _0x1f0c32=a14_0x2a051f,_0xfd6a52={'EmgnL':function(_0x185d85,_0x24c99f,_0xcbdf81){return _0x185d85(_0x24c99f,_0xcbdf81);},'bGpPt':_0x1f0c32(0x161),'lUwnf':function(_0x2ca41d,_0xecd41){return _0x2ca41d(_0xecd41);},'fiQqA':'should\x20ret'+_0x1f0c32(0x14d)+_0x1f0c32(0x162)+_0x1f0c32(0x19e),'rYLaZ':function(_0x189fe2,_0x185b1a,_0x2e91fc){return _0x189fe2(_0x185b1a,_0x2e91fc);}};let _0x4e4872,_0x36f664;beforeEach(()=>{const _0x16ecd8=_0x1f0c32;jest[_0x16ecd8(0x17b)+'cks'](),_0x36f664=new AnalysisService(),_0x4e4872=new ScaController(_0x36f664);}),describe(_0x1f0c32(0x188)+'eSca',()=>{const _0xc8e373=_0x1f0c32;_0xfd6a52[_0xc8e373(0x158)](it,_0xc8e373(0x17f)+_0xc8e373(0x15a)+'initiate\x20f'+_0xc8e373(0x177)+'is',async()=>{const _0x35b489=_0xc8e373,_0x2739e0={};_0x2739e0[_0x35b489(0x156)]=_0x35b489(0x161),_0x2739e0[_0x35b489(0x18d)]='INIT',_0x2739e0[_0x35b489(0x163)+'pe']=_0x35b489(0x168);const _0x9b6ec2=_0x2739e0;mockAnalyzeFileSca[_0x35b489(0x1a0)+_0x35b489(0x14f)](_0x9b6ec2);const _0x566f3e={};_0x566f3e[_0x35b489(0x197)]=_0x35b489(0x18e)+_0x35b489(0x181)+'n';const _0x498b59=await _0x4e4872[_0x35b489(0x188)+_0x35b489(0x16a)](_0x566f3e);expect(mockAnalyzeFileSca)[_0x35b489(0x170)+_0x35b489(0x18b)](_0x35b489(0x18e)+'ackage.jso'+'n',undefined),expect(_0x498b59[_0x35b489(0x184)+_0x35b489(0x175)][_0x35b489(0x156)])['toBe'](_0x35b489(0x161));}),it(_0xc8e373(0x147)+_0xc8e373(0x14d)+_0xc8e373(0x153)+_0xc8e373(0x17a),async()=>{const _0x3cf3e1=_0xc8e373,_0x2486b0={};_0x2486b0['filePath']='';const _0x2de381=await _0x4e4872[_0x3cf3e1(0x188)+_0x3cf3e1(0x16a)](_0x2486b0);expect(_0x2de381[_0x3cf3e1(0x184)+_0x3cf3e1(0x175)][_0x3cf3e1(0x1a6)])[_0x3cf3e1(0x15b)](_0x3cf3e1(0x17d)+_0x3cf3e1(0x14b)+'ed'),expect(mockAnalyzeFileSca)[_0x3cf3e1(0x180)][_0x3cf3e1(0x170)+_0x3cf3e1(0x165)]();});}),_0xfd6a52[_0x1f0c32(0x182)](describe,_0x1f0c32(0x188)+_0x1f0c32(0x159),()=>{const _0x239a26=_0x1f0c32;it('should\x20suc'+_0x239a26(0x15a)+_0x239a26(0x194)+'ulti-file\x20'+_0x239a26(0x16b),async()=>{const _0x2ac158=_0x239a26,_0x36b169={};_0x36b169['analysisId']='test-id',_0x36b169[_0x2ac158(0x18d)]='INIT',_0x36b169[_0x2ac158(0x163)+'pe']=_0x2ac158(0x168);const _0x5e09fd=_0x36b169;mockAnalyzeFilesSca[_0x2ac158(0x1a0)+_0x2ac158(0x14f)](_0x5e09fd);const _0x3aca19={};_0x3aca19[_0x2ac158(0x17e)]=[_0x2ac158(0x18e)+'1.json','/path/to/p'+_0x2ac158(0x15d)];const _0x358437=await _0x4e4872['analyzeFil'+'esSca'](_0x3aca19);expect(mockAnalyzeFilesSca)['toHaveBeen'+_0x2ac158(0x18b)]([_0x2ac158(0x18e)+_0x2ac158(0x152),_0x2ac158(0x18e)+_0x2ac158(0x15d)],undefined),expect(_0x358437[_0x2ac158(0x184)+_0x2ac158(0x175)][_0x2ac158(0x156)])[_0x2ac158(0x15b)](_0x2ac158(0x161));}),it(_0x239a26(0x147)+_0x239a26(0x14d)+'if\x20no\x20file'+_0x239a26(0x19f),async()=>{const _0x447a25=_0x239a26,_0x3b1175={};_0x3b1175[_0x447a25(0x17e)]=[];const _0x11816d=await _0x4e4872[_0x447a25(0x188)+_0x447a25(0x159)](_0x3b1175);expect(_0x11816d[_0x447a25(0x184)+_0x447a25(0x175)][_0x447a25(0x1a6)])[_0x447a25(0x15b)](_0x447a25(0x15f)+'\x20not\x20provi'+_0x447a25(0x1a1)),expect(mockAnalyzeFilesSca)['not'][_0x447a25(0x170)+'Called']();});}),describe(_0x1f0c32(0x17c)+_0x1f0c32(0x14c),()=>{const _0x517f96=_0x1f0c32;it(_0x517f96(0x17f)+'cessfully\x20'+_0x517f96(0x150)+_0x517f96(0x195)+_0x517f96(0x187),async()=>{const _0x3322ce=_0x517f96,_0x1d3368={};_0x1d3368[_0x3322ce(0x156)]=_0x3322ce(0x161),_0x1d3368[_0x3322ce(0x18d)]=_0x3322ce(0x171),_0x1d3368[_0x3322ce(0x163)+'pe']=_0x3322ce(0x168),_0x1d3368['skippedFol'+_0x3322ce(0x148)]=[];const _0x422e12=_0x1d3368;mockAnalyzeFolderSca[_0x3322ce(0x1a0)+_0x3322ce(0x14f)](_0x422e12);const _0x44d717={};_0x44d717[_0x3322ce(0x19d)]=_0x3322ce(0x19b)+_0x3322ce(0x15c);const _0x2a1c70=await _0x4e4872[_0x3322ce(0x17c)+'derSca'](_0x44d717);expect(mockAnalyzeFolderSca)[_0x3322ce(0x170)+_0x3322ce(0x18b)](_0x3322ce(0x19b)+_0x3322ce(0x15c),undefined),expect(_0x2a1c70[_0x3322ce(0x184)+'Content']['analysisId'])[_0x3322ce(0x15b)](_0xfd6a52[_0x3322ce(0x1a2)]);}),it(_0x517f96(0x147)+'urn\x20error\x20'+_0x517f96(0x169)+_0x517f96(0x183)+'ng',async()=>{const _0x2941ea=_0x517f96,_0x4a55a2={};_0x4a55a2[_0x2941ea(0x19d)]='';const _0x5dc16d=await _0x4e4872['analyzeFol'+_0x2941ea(0x14c)](_0x4a55a2);expect(_0x5dc16d[_0x2941ea(0x184)+_0x2941ea(0x175)]['error'])[_0x2941ea(0x15b)](_0x2941ea(0x173)+'h\x20not\x20prov'+_0x2941ea(0x185)),expect(mockAnalyzeFolderSca)['not'][_0x2941ea(0x170)+'Called']();});}),describe('analyzeZip'+_0x1f0c32(0x149),()=>{const _0x452947=_0x1f0c32;it(_0x452947(0x17f)+_0x452947(0x15a)+_0x452947(0x176)+_0x452947(0x16d)+'s',async()=>{const _0x585558=_0x452947,_0x3ee065={};_0x3ee065['analysisId']='test-id',_0x3ee065['status']=_0x585558(0x171),_0x3ee065[_0x585558(0x163)+'pe']=_0x585558(0x168);const _0x1a3e0f=_0x3ee065;mockAnalyzeZipSca[_0x585558(0x1a0)+_0x585558(0x14f)](_0x1a3e0f);const _0xee331={};_0xee331[_0x585558(0x189)+'h']=_0x585558(0x19b)+_0x585558(0x179);const _0x5dc82c=await _0x4e4872['analyzeZip'+_0x585558(0x149)](_0xee331);_0xfd6a52[_0x585558(0x1a4)](expect,mockAnalyzeZipSca)[_0x585558(0x170)+_0x585558(0x18b)]('/path/to/f'+'ile.zip',undefined),expect(_0x5dc82c[_0x585558(0x184)+_0x585558(0x175)][_0x585558(0x156)])[_0x585558(0x15b)](_0x585558(0x161));}),it(_0xfd6a52[_0x452947(0x199)],async()=>{const _0x14055a=_0x452947,_0x5c7d41={};_0x5c7d41[_0x14055a(0x189)+'h']='';const _0x4e94de=await _0x4e4872['analyzeZip'+'Sca'](_0x5c7d41);expect(_0x4e94de[_0x14055a(0x184)+_0x14055a(0x175)][_0x14055a(0x1a6)])[_0x14055a(0x15b)](_0x14055a(0x151)+_0x14055a(0x186)+_0x14055a(0x16f)),expect(mockAnalyzeZipSca)[_0x14055a(0x180)][_0x14055a(0x170)+_0x14055a(0x165)]();});});});
@@ -1 +1 @@
1
- const a15_0x126ccb=a15_0x3a98;(function(_0x11cd10,_0x3e3538){const _0x136cba=a15_0x3a98,_0x3d5e99=_0x11cd10();while(!![]){try{const _0x6af14f=parseInt(_0x136cba(0x15d))/0x1+-parseInt(_0x136cba(0x17a))/0x2*(parseInt(_0x136cba(0x170))/0x3)+-parseInt(_0x136cba(0x16a))/0x4*(-parseInt(_0x136cba(0x188))/0x5)+parseInt(_0x136cba(0x189))/0x6*(-parseInt(_0x136cba(0x173))/0x7)+parseInt(_0x136cba(0x165))/0x8*(-parseInt(_0x136cba(0x153))/0x9)+parseInt(_0x136cba(0x161))/0xa+parseInt(_0x136cba(0x164))/0xb;if(_0x6af14f===_0x3e3538)break;else _0x3d5e99['push'](_0x3d5e99['shift']());}catch(_0x483827){_0x3d5e99['push'](_0x3d5e99['shift']());}}}(a15_0x2d3a,0xe4792));const a15_0x5ebc17=(function(){let _0x5281cb=!![];return function(_0x514b78,_0x241aed){const _0x16aada=_0x5281cb?function(){const _0x9be413=a15_0x3a98;if(_0x241aed){const _0x38313d=_0x241aed[_0x9be413(0x179)](_0x514b78,arguments);return _0x241aed=null,_0x38313d;}}:function(){};return _0x5281cb=![],_0x16aada;};}()),a15_0x3dcaf1=a15_0x5ebc17(this,function(){const _0x4bafb6=a15_0x3a98;return a15_0x3dcaf1[_0x4bafb6(0x15e)]()[_0x4bafb6(0x14e)]('(((.+)+)+)'+'+$')[_0x4bafb6(0x15e)]()[_0x4bafb6(0x14d)+'r'](a15_0x3dcaf1)['search'](_0x4bafb6(0x15c)+'+$');});a15_0x3dcaf1();import{jest,describe,it,expect,beforeEach}from'@jest/globals';function a15_0x2d3a(){const _0x38b867=['129XNRBoL','\x20failed','ure','28jnClNO','rvice\x20fail','../securit','clearAllMo','ices/analy','fileConten','apply','59438JVBbua','edValue','SecurityCo','urn\x20secure','../../serv','generateSe','secure\x20cod','e\x20generati','should\x20ret','toBe','Content','toHaveBeen','ode','../../util','5cWVJLp','1430988FBqvQZ','cks','mockResolv','constructo','search','structured','unstable_m','on\x20failed','dle\x20errors','2552328HtkSkw','diff','ockModule','e.js','y.controll','entation','should\x20han','secureCode','error','(((.+)+)+)','467873DWaZXK','toString','ntroller','\x20code\x20and\x20','3147010ebjOIu','cureCode','analysisId','13917684HEmeIt','8SPwCPd','sis.servic','ZExok','Secure\x20cod','original\x20c','5614036kIMxJc','mockImplem','YNBrA','Brief','test-id','mockReject'];a15_0x2d3a=function(){return _0x38b867;};return a15_0x2d3a();}const mockGenerateSecureCodeFromAnalysis=jest['fn']();jest[a15_0x126ccb(0x150)+a15_0x126ccb(0x155)](a15_0x126ccb(0x17e)+a15_0x126ccb(0x177)+a15_0x126ccb(0x166)+a15_0x126ccb(0x156),()=>({'AnalysisService':jest['fn']()[a15_0x126ccb(0x16b)+a15_0x126ccb(0x158)](()=>({'generateSecureCodeFromAnalysis':mockGenerateSecureCodeFromAnalysis}))})),jest[a15_0x126ccb(0x150)+a15_0x126ccb(0x155)](a15_0x126ccb(0x187)+'s/logger.j'+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));function a15_0x3a98(_0x4ed99b,_0x316e32){_0x4ed99b=_0x4ed99b-0x14d;const _0x11e6a0=a15_0x2d3a();let _0x3dcaf1=_0x11e6a0[_0x4ed99b];return _0x3dcaf1;}const {SecurityController}=await import(a15_0x126ccb(0x175)+a15_0x126ccb(0x157)+'er.js'),{AnalysisService}=await import(a15_0x126ccb(0x17e)+'ices/analy'+'sis.servic'+a15_0x126ccb(0x156));describe(a15_0x126ccb(0x17c)+a15_0x126ccb(0x15f),()=>{const _0x3d7433=a15_0x126ccb,_0x54910a={'ZExok':_0x3d7433(0x169)+_0x3d7433(0x186),'GHYoW':_0x3d7433(0x16e),'YNBrA':function(_0x218887,_0x2be83a,_0x525ba6){return _0x218887(_0x2be83a,_0x525ba6);}};let _0x48bfea,_0x2d52d8;beforeEach(()=>{const _0x5c1956=_0x3d7433;jest[_0x5c1956(0x176)+_0x5c1956(0x18a)](),_0x2d52d8=new AnalysisService(),_0x48bfea=new SecurityController(_0x2d52d8);}),describe(_0x3d7433(0x17f)+'cureCode',()=>{const _0xa8208a=_0x3d7433;_0x54910a[_0xa8208a(0x16c)](it,_0xa8208a(0x182)+_0xa8208a(0x17d)+_0xa8208a(0x160)+'diff',async()=>{const _0x5b5af0=_0xa8208a,_0x51ff67={};_0x51ff67[_0x5b5af0(0x15a)]=_0x5b5af0(0x180)+'e',_0x51ff67[_0x5b5af0(0x15a)+_0x5b5af0(0x16d)]='brief',_0x51ff67[_0x5b5af0(0x154)]='diff';const _0x5301b3=_0x51ff67;mockGenerateSecureCodeFromAnalysis[_0x5b5af0(0x18b)+'edValue'](_0x5301b3);const _0x1275a={};_0x1275a[_0x5b5af0(0x163)]=_0x5b5af0(0x16e),_0x1275a[_0x5b5af0(0x178)+'t']=_0x54910a[_0x5b5af0(0x167)];const _0x3959ec=await _0x48bfea[_0x5b5af0(0x17f)+_0x5b5af0(0x162)](_0x1275a);expect(mockGenerateSecureCodeFromAnalysis)[_0x5b5af0(0x185)+'CalledWith'](_0x54910a['GHYoW'],_0x54910a[_0x5b5af0(0x167)]),expect(_0x3959ec[_0x5b5af0(0x14f)+_0x5b5af0(0x184)]['secureCode'])[_0x5b5af0(0x183)](_0x5b5af0(0x180)+'e'),expect(_0x3959ec['structured'+_0x5b5af0(0x184)]['diff'])[_0x5b5af0(0x183)](_0x5b5af0(0x154));}),it(_0xa8208a(0x159)+_0xa8208a(0x152),async()=>{const _0x5eb20b=_0xa8208a;mockGenerateSecureCodeFromAnalysis[_0x5eb20b(0x16f)+'edValue'](new Error('Generation'+'\x20failed'));const _0x882463={};_0x882463['analysisId']=_0x5eb20b(0x16e),_0x882463[_0x5eb20b(0x178)+'t']='code';const _0xe5c469=await _0x48bfea[_0x5eb20b(0x17f)+_0x5eb20b(0x162)](_0x882463);expect(_0xe5c469['structured'+_0x5eb20b(0x184)][_0x5eb20b(0x15b)])[_0x5eb20b(0x183)]('Generation'+_0x5eb20b(0x171));});}),it('should\x20han'+'dle\x20LLM\x20se'+_0x3d7433(0x174)+_0x3d7433(0x172),async()=>{const _0xaab2e9=_0x3d7433;mockGenerateSecureCodeFromAnalysis['mockReject'+_0xaab2e9(0x17b)](new Error(_0xaab2e9(0x168)+_0xaab2e9(0x181)+_0xaab2e9(0x151)));const _0x4680e1={};_0x4680e1[_0xaab2e9(0x163)]=_0xaab2e9(0x16e),_0x4680e1[_0xaab2e9(0x178)+'t']='code';const _0x447296=await _0x48bfea['generateSe'+_0xaab2e9(0x162)](_0x4680e1);expect(_0x447296['structured'+_0xaab2e9(0x184)][_0xaab2e9(0x15b)])['toContain'](_0xaab2e9(0x168)+_0xaab2e9(0x181)+_0xaab2e9(0x151));});});
1
+ const a15_0x1e569e=a15_0x518d;(function(_0x3b3f0d,_0x1e1373){const _0x2f7a22=a15_0x518d,_0xe165ae=_0x3b3f0d();while(!![]){try{const _0x1855b3=-parseInt(_0x2f7a22(0x86))/0x1+parseInt(_0x2f7a22(0x79))/0x2+parseInt(_0x2f7a22(0x97))/0x3+parseInt(_0x2f7a22(0xb1))/0x4+-parseInt(_0x2f7a22(0x98))/0x5*(parseInt(_0x2f7a22(0x75))/0x6)+parseInt(_0x2f7a22(0x7f))/0x7*(-parseInt(_0x2f7a22(0xa1))/0x8)+parseInt(_0x2f7a22(0x9b))/0x9;if(_0x1855b3===_0x1e1373)break;else _0xe165ae['push'](_0xe165ae['shift']());}catch(_0x1c0bc5){_0xe165ae['push'](_0xe165ae['shift']());}}}(a15_0x4b18,0xb9c45));function a15_0x518d(_0x1635d4,_0x5a749c){_0x1635d4=_0x1635d4-0x73;const _0x5a77b3=a15_0x4b18();let _0x272147=_0x5a77b3[_0x1635d4];return _0x272147;}const a15_0x23a961=(function(){let _0x21201f=!![];return function(_0x5a483a,_0x442d25){const _0x47b426=_0x21201f?function(){const _0x1ada3a=a15_0x518d;if(_0x442d25){const _0x6a1966=_0x442d25[_0x1ada3a(0x9e)](_0x5a483a,arguments);return _0x442d25=null,_0x6a1966;}}:function(){};return _0x21201f=![],_0x47b426;};}()),a15_0x272147=a15_0x23a961(this,function(){const _0xff5614=a15_0x518d;return a15_0x272147['toString']()[_0xff5614(0xb2)](_0xff5614(0x8d)+'+$')['toString']()['constructo'+'r'](a15_0x272147)[_0xff5614(0xb2)](_0xff5614(0x8d)+'+$');});a15_0x272147();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockGenerateSecureCodeFromAnalysis=jest['fn']();jest[a15_0x1e569e(0x7b)+a15_0x1e569e(0x7c)](a15_0x1e569e(0xa7)+'ices/analy'+a15_0x1e569e(0x93)+a15_0x1e569e(0x77),()=>({'AnalysisService':jest['fn']()[a15_0x1e569e(0x85)+a15_0x1e569e(0x82)](()=>({'generateSecureCodeFromAnalysis':mockGenerateSecureCodeFromAnalysis}))})),jest[a15_0x1e569e(0x7b)+a15_0x1e569e(0x7c)](a15_0x1e569e(0x83)+a15_0x1e569e(0x89)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SecurityController}=await import(a15_0x1e569e(0x8c)+a15_0x1e569e(0xac)+a15_0x1e569e(0x94)),{AnalysisService}=await import(a15_0x1e569e(0xa7)+a15_0x1e569e(0x95)+a15_0x1e569e(0x93)+a15_0x1e569e(0x77));describe(a15_0x1e569e(0xa9)+a15_0x1e569e(0x84),()=>{const _0x369288=a15_0x1e569e,_0x2b7128={};_0x2b7128[_0x369288(0x7e)]=_0x369288(0x96),_0x2b7128[_0x369288(0x9d)]='Generation'+_0x369288(0xae),_0x2b7128['bXRGV']=_0x369288(0xa0)+_0x369288(0x9a)+_0x369288(0x92);const _0x3901aa=_0x2b7128;let _0x569dd2,_0x21ae5b;beforeEach(()=>{const _0x179ac3=_0x369288;jest['clearAllMo'+_0x179ac3(0x81)](),_0x21ae5b=new AnalysisService(),_0x569dd2=new SecurityController(_0x21ae5b);}),describe('generateSe'+_0x369288(0xa6),()=>{const _0x7c1e02=_0x369288,_0x43e97a={'joPru':_0x7c1e02(0xa3)+'e','ztDrh':_0x7c1e02(0x78),'yFPeE':_0x3901aa['dfmzm'],'noFHL':function(_0x1e2727,_0x1ebbdc){return _0x1e2727(_0x1ebbdc);},'ZrzWv':_0x3901aa[_0x7c1e02(0x9d)]};it('should\x20ret'+_0x7c1e02(0x90)+_0x7c1e02(0xa2)+_0x7c1e02(0x96),async()=>{const _0x56ea1a=_0x7c1e02,_0x6449cf={};_0x6449cf[_0x56ea1a(0x9c)]=_0x43e97a['joPru'],_0x6449cf[_0x56ea1a(0x9c)+_0x56ea1a(0x8a)]=_0x43e97a[_0x56ea1a(0x8e)],_0x6449cf[_0x56ea1a(0x96)]=_0x43e97a[_0x56ea1a(0xb5)];const _0x32da7e=_0x6449cf;mockGenerateSecureCodeFromAnalysis[_0x56ea1a(0x9f)+'edValue'](_0x32da7e);const _0x559fb6={};_0x559fb6[_0x56ea1a(0xb6)]=_0x56ea1a(0x80),_0x559fb6[_0x56ea1a(0xb0)+'t']='original\x20c'+_0x56ea1a(0x99);const _0x39e2a6=await _0x569dd2[_0x56ea1a(0xa5)+_0x56ea1a(0xa6)](_0x559fb6);_0x43e97a[_0x56ea1a(0xa8)](expect,mockGenerateSecureCodeFromAnalysis)[_0x56ea1a(0xad)+'CalledWith'](_0x56ea1a(0x80),_0x56ea1a(0xab)+'ode'),expect(_0x39e2a6[_0x56ea1a(0xb3)+_0x56ea1a(0x74)][_0x56ea1a(0x9c)])[_0x56ea1a(0x87)](_0x56ea1a(0xa3)+'e'),expect(_0x39e2a6[_0x56ea1a(0xb3)+_0x56ea1a(0x74)][_0x56ea1a(0x96)])['toBe'](_0x43e97a[_0x56ea1a(0xb5)]);}),it(_0x7c1e02(0x88)+_0x7c1e02(0xaa),async()=>{const _0x426e8f=_0x7c1e02;mockGenerateSecureCodeFromAnalysis['mockReject'+_0x426e8f(0x8b)](new Error(_0x43e97a[_0x426e8f(0x7d)]));const _0x5b1a6f={};_0x5b1a6f['analysisId']=_0x426e8f(0x80),_0x5b1a6f[_0x426e8f(0xb0)+'t']=_0x426e8f(0xa4);const _0x1cd4f1=await _0x569dd2[_0x426e8f(0xa5)+_0x426e8f(0xa6)](_0x5b1a6f);expect(_0x1cd4f1[_0x426e8f(0xb3)+_0x426e8f(0x74)]['error'])[_0x426e8f(0x87)](_0x426e8f(0xaf)+_0x426e8f(0xae));});}),it(_0x369288(0x88)+'dle\x20LLM\x20se'+_0x369288(0x91)+_0x369288(0x7a),async()=>{const _0x488626=_0x369288;mockGenerateSecureCodeFromAnalysis[_0x488626(0xb4)+_0x488626(0x8b)](new Error(_0x3901aa[_0x488626(0x76)]));const _0x10b37b={};_0x10b37b[_0x488626(0xb6)]=_0x488626(0x80),_0x10b37b[_0x488626(0xb0)+'t']=_0x488626(0xa4);const _0x28e3af=await _0x569dd2[_0x488626(0xa5)+_0x488626(0xa6)](_0x10b37b);expect(_0x28e3af[_0x488626(0xb3)+_0x488626(0x74)][_0x488626(0x8f)])[_0x488626(0x73)](_0x488626(0xa0)+_0x488626(0x9a)+_0x488626(0x92));});});function a15_0x4b18(){const _0x20baf7=['secureCode','XQJnp','apply','mockResolv','Secure\x20cod','8giAiAq','\x20code\x20and\x20','secure\x20cod','code','generateSe','cureCode','../../serv','noFHL','SecurityCo','dle\x20errors','original\x20c','y.controll','toHaveBeen','\x20failed','Generation','fileConten','2777652MdDzjt','search','structured','mockReject','yFPeE','analysisId','toContain','Content','82470iuWHVz','bXRGV','e.js','brief','2538870aOuRZX','ure','unstable_m','ockModule','ZrzWv','dfmzm','8486261WjTYyZ','test-id','cks','entation','../../util','ntroller','mockImplem','1082381SPGtVm','toBe','should\x20han','s/logger.j','Brief','edValue','../securit','(((.+)+)+)','ztDrh','error','urn\x20secure','rvice\x20fail','on\x20failed','sis.servic','er.js','ices/analy','diff','1606818foBeXd','265sEbCbK','ode','e\x20generati','11561724GJTeua'];a15_0x4b18=function(){return _0x20baf7;};return a15_0x4b18();}
@@ -1 +1 @@
1
- const a16_0x4adbb6=a16_0x5923;function a16_0x5923(_0x235830,_0x1d4068){_0x235830=_0x235830-0x85;const _0x5a7dd1=a16_0x3989();let _0x405f33=_0x5a7dd1[_0x235830];return _0x405f33;}(function(_0x5db9f7,_0x108df0){const _0x29c10d=a16_0x5923,_0x42c05d=_0x5db9f7();while(!![]){try{const _0x2f5ae0=-parseInt(_0x29c10d(0x99))/0x1+-parseInt(_0x29c10d(0x96))/0x2+-parseInt(_0x29c10d(0x9a))/0x3*(parseInt(_0x29c10d(0x8f))/0x4)+parseInt(_0x29c10d(0x91))/0x5*(-parseInt(_0x29c10d(0x87))/0x6)+parseInt(_0x29c10d(0x89))/0x7+parseInt(_0x29c10d(0x97))/0x8+parseInt(_0x29c10d(0x90))/0x9;if(_0x2f5ae0===_0x108df0)break;else _0x42c05d['push'](_0x42c05d['shift']());}catch(_0x1c715d){_0x42c05d['push'](_0x42c05d['shift']());}}}(a16_0x3989,0xd66a7));const a16_0x403ac5=(function(){let _0x587be8=!![];return function(_0x47b894,_0x5620dd){const _0x54b4df=_0x587be8?function(){const _0x318dff=a16_0x5923;if(_0x5620dd){const _0x1a7746=_0x5620dd[_0x318dff(0x9f)](_0x47b894,arguments);return _0x5620dd=null,_0x1a7746;}}:function(){};return _0x587be8=![],_0x54b4df;};}()),a16_0x405f33=a16_0x403ac5(this,function(){const _0x157c9c=a16_0x5923;return a16_0x405f33[_0x157c9c(0x88)]()['search'](_0x157c9c(0x8e)+'+$')[_0x157c9c(0x88)]()[_0x157c9c(0x9c)+'r'](a16_0x405f33)[_0x157c9c(0x9b)](_0x157c9c(0x8e)+'+$');});a16_0x405f33();import{jest,describe,it,expect,beforeEach}from'@jest/globals';jest[a16_0x4adbb6(0x86)+a16_0x4adbb6(0x9d)](a16_0x4adbb6(0x8a)+a16_0x4adbb6(0x94)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SystemController}=await import(a16_0x4adbb6(0x93)+a16_0x4adbb6(0x9e)+a16_0x4adbb6(0xa0));function a16_0x3989(){const _0x416911=['constructo','ockModule','controller','apply','.js','instantiab','unstable_m','2742906RGzCpV','toString','2776900znvFgn','../../util','ceOf','clearAllMo','roller','(((.+)+)+)','3184772NoUGGM','35388225UMyKEQ','5gBzRAy','SystemCont','../system.','s/logger.j','toBeInstan','3037122LkQisD','4519912TobePN','cks','1243562pScBBT','3iYopdj','search'];a16_0x3989=function(){return _0x416911;};return a16_0x3989();}describe(a16_0x4adbb6(0x92)+a16_0x4adbb6(0x8d),()=>{const _0x1cecb6=a16_0x4adbb6;let _0x4b8fd2;beforeEach(()=>{const _0x46298d=a16_0x5923;jest[_0x46298d(0x8c)+_0x46298d(0x98)](),_0x4b8fd2=new SystemController();}),it('should\x20be\x20'+_0x1cecb6(0x85)+'le',()=>{const _0x3fa334=_0x1cecb6;expect(_0x4b8fd2)[_0x3fa334(0x95)+_0x3fa334(0x8b)](SystemController);});});
1
+ const a16_0x267072=a16_0x3bbf;(function(_0x2b7bbb,_0x484de1){const _0x380b91=a16_0x3bbf,_0x2c242f=_0x2b7bbb();while(!![]){try{const _0x6e1653=-parseInt(_0x380b91(0xca))/0x1+-parseInt(_0x380b91(0xcb))/0x2+-parseInt(_0x380b91(0xce))/0x3+-parseInt(_0x380b91(0xbb))/0x4*(parseInt(_0x380b91(0xc0))/0x5)+-parseInt(_0x380b91(0xd0))/0x6*(parseInt(_0x380b91(0xb7))/0x7)+-parseInt(_0x380b91(0xb9))/0x8*(-parseInt(_0x380b91(0xba))/0x9)+parseInt(_0x380b91(0xc8))/0xa;if(_0x6e1653===_0x484de1)break;else _0x2c242f['push'](_0x2c242f['shift']());}catch(_0x1b86e7){_0x2c242f['push'](_0x2c242f['shift']());}}}(a16_0x2db4,0x5b1e3));const a16_0x473b1e=(function(){let _0x282aff=!![];return function(_0x15c3fd,_0x533026){const _0x545ada=_0x282aff?function(){const _0x274898=a16_0x3bbf;if(_0x533026){const _0x1f063c=_0x533026[_0x274898(0xc2)](_0x15c3fd,arguments);return _0x533026=null,_0x1f063c;}}:function(){};return _0x282aff=![],_0x545ada;};}()),a16_0x55845c=a16_0x473b1e(this,function(){const _0x4d6d78=a16_0x3bbf,_0x529a87={};_0x529a87['gwzNY']='(((.+)+)+)'+'+$';const _0x567d63=_0x529a87;return a16_0x55845c[_0x4d6d78(0xbe)]()[_0x4d6d78(0xc4)](_0x567d63[_0x4d6d78(0xcd)])['toString']()[_0x4d6d78(0xc3)+'r'](a16_0x55845c)[_0x4d6d78(0xc4)](_0x567d63[_0x4d6d78(0xcd)]);});a16_0x55845c();function a16_0x2db4(){const _0x40107b=['FJKxM','8dFMLeK','3802581fZBuGG','156xHpfEV','../../util','controller','toString','ockModule','62030CHrbmh','cks','apply','constructo','search','clearAllMo','instantiab','.js','22535480VqwgXg','s/logger.j','697800sjfuQx','1008084lDevfr','unstable_m','gwzNY','380811mlICrO','roller','30CsnQCj','SystemCont','686315tkfgJp'];a16_0x2db4=function(){return _0x40107b;};return a16_0x2db4();}function a16_0x3bbf(_0x10566e,_0x17f358){_0x10566e=_0x10566e-0xb6;const _0x53894d=a16_0x2db4();let _0x55845c=_0x53894d[_0x10566e];return _0x55845c;}import{jest,describe,it,expect,beforeEach}from'@jest/globals';jest[a16_0x267072(0xcc)+a16_0x267072(0xbf)](a16_0x267072(0xbc)+a16_0x267072(0xc9)+'s',()=>({'logger':{'info':jest['fn'](),'error':jest['fn']()}}));const {SystemController}=await import('../system.'+a16_0x267072(0xbd)+a16_0x267072(0xc7));describe(a16_0x267072(0xb6)+a16_0x267072(0xcf),()=>{const _0x208d33=a16_0x267072,_0x123851={};_0x123851[_0x208d33(0xb8)]='should\x20be\x20'+_0x208d33(0xc6)+'le';const _0x5c66a2=_0x123851;let _0x5602ba;beforeEach(()=>{const _0x1f8f50=_0x208d33;jest[_0x1f8f50(0xc5)+_0x1f8f50(0xc1)](),_0x5602ba=new SystemController();}),it(_0x5c66a2[_0x208d33(0xb8)],()=>{expect(_0x5602ba)['toBeInstan'+'ceOf'](SystemController);});});
@@ -1 +1 @@
1
- const a7_0x1e00e8=a7_0x2160;(function(_0x349b1,_0x392bfa){const _0x1fc650=a7_0x2160,_0x34a7ed=_0x349b1();while(!![]){try{const _0x481820=parseInt(_0x1fc650(0x236))/0x1*(parseInt(_0x1fc650(0x31b))/0x2)+parseInt(_0x1fc650(0x24b))/0x3*(-parseInt(_0x1fc650(0x2ee))/0x4)+parseInt(_0x1fc650(0x222))/0x5+parseInt(_0x1fc650(0x23e))/0x6*(-parseInt(_0x1fc650(0x2d2))/0x7)+parseInt(_0x1fc650(0x223))/0x8+parseInt(_0x1fc650(0x249))/0x9*(parseInt(_0x1fc650(0x1f7))/0xa)+parseInt(_0x1fc650(0x232))/0xb;if(_0x481820===_0x392bfa)break;else _0x34a7ed['push'](_0x34a7ed['shift']());}catch(_0x137097){_0x34a7ed['push'](_0x34a7ed['shift']());}}}(a7_0xb84b,0xbc92d));const a7_0x13989f=(function(){let _0x2e25e5=!![];return function(_0x51d897,_0x21965c){const _0x375b8=_0x2e25e5?function(){const _0x46293c=a7_0x2160;if(_0x21965c){const _0x51bb87=_0x21965c[_0x46293c(0x258)](_0x51d897,arguments);return _0x21965c=null,_0x51bb87;}}:function(){};return _0x2e25e5=![],_0x375b8;};}()),a7_0x38c757=a7_0x13989f(this,function(){const _0x487f0e=a7_0x2160;return a7_0x38c757['toString']()['search'](_0x487f0e(0x244)+'+$')[_0x487f0e(0x25d)]()[_0x487f0e(0x234)+'r'](a7_0x38c757)['search'](_0x487f0e(0x244)+'+$');});a7_0x38c757();import{logger}from'../utils/logger.js';import{ANALYSIS_STAGES}from'../config/constants.js';function a7_0x2160(_0x1ee7b5,_0x466110){_0x1ee7b5=_0x1ee7b5-0x1ea;const _0x749c02=a7_0xb84b();let _0x38c757=_0x749c02[_0x1ee7b5];return _0x38c757;}export class AnalysisController{['analysisSe'+a7_0x1e00e8(0x266)];constructor(_0x1163d1){const _0x145e54=a7_0x1e00e8;this[_0x145e54(0x2f9)+_0x145e54(0x266)]=_0x1163d1;}async['getAnalysi'+a7_0x1e00e8(0x275)]({analysisId:_0x5912d6}){const _0x56f2af=a7_0x1e00e8;try{logger['info']('Analysis\x20s'+_0x56f2af(0x30f)+_0x56f2af(0x304)+_0x5912d6);const _0x3acf97=await this[_0x56f2af(0x2f9)+_0x56f2af(0x266)][_0x56f2af(0x21b)+_0x56f2af(0x275)](_0x5912d6),_0x186b5b=_0x3acf97[_0x56f2af(0x256)]===_0x56f2af(0x2e1)&&_0x3acf97['result']?_0x3acf97[_0x56f2af(0x2b8)]:_0x3acf97[_0x56f2af(0x256)],_0x4ad9b5={};_0x4ad9b5[_0x56f2af(0x259)]=_0x56f2af(0x24f),_0x4ad9b5[_0x56f2af(0x24f)]='Analysis\x20S'+_0x56f2af(0x2f5)+_0x186b5b+(_0x56f2af(0x2ac)+'\x20')+(_0x3acf97[_0x56f2af(0x30d)]||0x0)+(_0x56f2af(0x23b)+'\x20')+(_0x3acf97[_0x56f2af(0x273)]||_0x56f2af(0x2fc));const _0x4fe888={};_0x4fe888[_0x56f2af(0x227)]=_0x5912d6,_0x4fe888[_0x56f2af(0x256)]=_0x186b5b,_0x4fe888[_0x56f2af(0x2b8)]=_0x3acf97[_0x56f2af(0x2b8)],_0x4fe888[_0x56f2af(0x30d)]=_0x3acf97['progress'],_0x4fe888[_0x56f2af(0x273)]=_0x3acf97['message'];const _0x12fdb3={};return _0x12fdb3['content']=[_0x4ad9b5],_0x12fdb3[_0x56f2af(0x2e7)+'Content']=_0x4fe888,_0x12fdb3;}catch(_0x4222f3){logger[_0x56f2af(0x2db)](_0x56f2af(0x2c9)+'tatus\x20chec'+_0x56f2af(0x2be),_0x4222f3);const _0x330cbb={};_0x330cbb['type']='text',_0x330cbb[_0x56f2af(0x24f)]=_0x56f2af(0x23c)+_0x56f2af(0x268)+_0x56f2af(0x2cd)+'\x20'+(_0x4222f3 instanceof Error?_0x4222f3[_0x56f2af(0x273)]:'Unknown\x20er'+_0x56f2af(0x287));const _0x7868ed={};_0x7868ed['error']=_0x4222f3 instanceof Error?_0x4222f3[_0x56f2af(0x273)]:'Unknown\x20er'+'ror';const _0x23d1a8={};return _0x23d1a8[_0x56f2af(0x22f)]=[_0x330cbb],_0x23d1a8[_0x56f2af(0x2e7)+_0x56f2af(0x209)]=_0x7868ed,_0x23d1a8;}}async[a7_0x1e00e8(0x21b)+a7_0x1e00e8(0x2ab)]({analysisId:_0xb20e78}){const _0x47a076=a7_0x1e00e8;try{logger[_0x47a076(0x26e)](_0x47a076(0x269)+_0x47a076(0x220)+_0x47a076(0x1fe)+_0xb20e78);const _0x299e34=await this[_0x47a076(0x2f9)+'rvice'][_0x47a076(0x21b)+'sResults'](_0xb20e78),_0x5ca749=_0x299e34[_0x47a076(0x2b8)]??_0x299e34[_0x47a076(0x256)];if(_0x299e34['toolType']===_0x47a076(0x257)){const _0x6c8833=_0x299e34,_0x1cb75f=_0x47a076(0x1f0)+_0x47a076(0x22b)+'n\x20|\x20Licens'+'e\x20|\x20Vulner'+_0x47a076(0x276)+'(C/H/M/L)\x20'+'|\x0a|-------'+_0x47a076(0x23f)+_0x47a076(0x23f)+'----|-----'+_0x47a076(0x2ff)+_0x47a076(0x2ff)+'--|',_0x484bbe=_0x6c8833['components'][_0x47a076(0x323)](_0x3721af=>{const _0x54d806=_0x47a076,_0x50154c=_0x3721af[_0x54d806(0x315)][_0x54d806(0x29b)]>0x0?_0x3721af['licenses'][_0x54d806(0x323)](_0x258d94=>_0x258d94['name'])[_0x54d806(0x247)](',\x20'):_0x54d806(0x2b3),_0x3692d6=_0x3721af['issues'][_0x54d806(0x2c5)](_0x798af9=>_0x798af9[_0x54d806(0x23a)]===_0x54d806(0x2c6))[_0x54d806(0x29b)],_0x3c336a=_0x3721af['issues'][_0x54d806(0x2c5)](_0x51fe06=>_0x51fe06['severity']===_0x54d806(0x319))[_0x54d806(0x29b)],_0x2f1442=_0x3721af[_0x54d806(0x294)][_0x54d806(0x2c5)](_0x1621a6=>_0x1621a6['severity']===_0x54d806(0x28f))[_0x54d806(0x29b)],_0x1708c0=_0x3721af[_0x54d806(0x294)][_0x54d806(0x2c5)](_0x974b99=>_0x974b99[_0x54d806(0x23a)]===_0x54d806(0x2dd))[_0x54d806(0x29b)],_0x254ca3=_0x3692d6+_0x3c336a+_0x2f1442+_0x1708c0+'\x20('+_0x3692d6+'/'+_0x3c336a+'/'+_0x2f1442+'/'+_0x1708c0+')';return'|\x20'+_0x3721af[_0x54d806(0x202)]+_0x54d806(0x25f)+_0x3721af[_0x54d806(0x1f8)]+_0x54d806(0x25f)+_0x50154c+'\x20|\x20'+_0x254ca3+'\x20|';})['join']('\x0a'),_0x575a5a=_0x6c8833[_0x47a076(0x279)][_0x47a076(0x29b)]>0x0?_0x1cb75f+'\x0a'+_0x484bbe:_0x47a076(0x240)+'nts\x20identi'+_0x47a076(0x2b7),_0x592c29=_0x6c8833[_0x47a076(0x279)][_0x47a076(0x2c5)](_0x47953e=>_0x47953e[_0x47a076(0x294)][_0x47a076(0x29b)]>0x0)[_0x47a076(0x323)](_0x4e1768=>{const _0x2a2a8d=_0x47a076,_0x591a66=_0x4e1768[_0x2a2a8d(0x294)][_0x2a2a8d(0x323)]((_0x324800,_0x16887d)=>{const _0x27a0ef=_0x2a2a8d;let _0x5cda1e=_0x27a0ef(0x261)+(_0x16887d+0x1)+_0x27a0ef(0x27f)+_0x324800[_0x27a0ef(0x23a)]+_0x27a0ef(0x252)+_0x324800[_0x27a0ef(0x2ba)]+'**';if(_0x324800['cvssScore'])_0x5cda1e+=_0x27a0ef(0x31a)+_0x324800[_0x27a0ef(0x2bb)]+')';if(_0x324800[_0x27a0ef(0x2a6)+'n'])_0x5cda1e+='\x0a\x20\x20\x20\x20\x20\x20-\x20'+_0x324800['descriptio'+'n'];if(_0x324800[_0x27a0ef(0x320)+'on'])_0x5cda1e+='\x0a\x20\x20\x20\x20\x20\x20-\x20F'+'ixed\x20in:\x20'+_0x324800[_0x27a0ef(0x320)+'on'];return _0x5cda1e;})[_0x2a2a8d(0x247)]('\x0a');return _0x2a2a8d(0x32b)+_0x4e1768[_0x2a2a8d(0x202)]+'@'+_0x4e1768['version']+'\x0a'+_0x591a66;})[_0x47a076(0x247)]('\x0a\x0a'),_0x2d88da=('\x0a#\x20SCA\x20Ana'+_0x47a076(0x21f)+_0x47a076(0x2b4)+_0x47a076(0x2d7)+_0x47a076(0x283)+_0x47a076(0x212)+_0x47a076(0x2ad)+'|--------|'+_0x47a076(0x2eb)+_0x47a076(0x214)+_0x47a076(0x208)+_0x6c8833[_0x47a076(0x227)]+(_0x47a076(0x28d)+_0x47a076(0x2aa))+_0x5ca749+('\x20|\x0a|\x20Compo'+'nents\x20|\x20')+_0x6c8833[_0x47a076(0x279)][_0x47a076(0x29b)]+(_0x47a076(0x251)+_0x47a076(0x231)+_0x47a076(0x267))+_0x6c8833[_0x47a076(0x2fb)+_0x47a076(0x324)]+(_0x47a076(0x20e)+'cal\x20|\x20')+_0x6c8833['criticalCo'+'unt']+(_0x47a076(0x2bf)+'|\x20')+_0x6c8833['highCount']+('\x20|\x0a|\x20Mediu'+_0x47a076(0x300))+_0x6c8833[_0x47a076(0x31c)+'t']+(_0x47a076(0x2e2)+'\x20')+_0x6c8833[_0x47a076(0x308)]+(_0x47a076(0x1eb)+'lysis\x20Brie'+'fing\x0a')+_0x6c8833['analysisBr'+'ief']+(_0x47a076(0x2a0)+_0x47a076(0x29e)+_0x47a076(0x28c))+_0x575a5a+('\x0a\x0a##\x20Vulne'+_0x47a076(0x27a)+'etails\x0a')+(_0x592c29||_0x47a076(0x1fa)+_0x47a076(0x2bd)+_0x47a076(0x30e))+'\x0a')[_0x47a076(0x2fa)](),_0xeba092={};_0xeba092['type']=_0x47a076(0x24f),_0xeba092[_0x47a076(0x24f)]=_0x2d88da;const _0x9c17d7={};return _0x9c17d7['content']=[_0xeba092],_0x9c17d7[_0x47a076(0x2e7)+_0x47a076(0x209)]=_0x6c8833,_0x9c17d7;}const _0x741192=0x7a120,_0x2cd4cb=(_0x4b259e,_0x3c7252)=>{const _0x5b785c=_0x47a076;if(_0x4b259e[_0x5b785c(0x29b)]<=_0x3c7252)return _0x4b259e;return _0x4b259e[_0x5b785c(0x29f)](0x0,_0x3c7252)+(_0x5b785c(0x1f6)+'wing\x20'+_0x3c7252+'\x20of\x20'+_0x4b259e[_0x5b785c(0x29b)]+('\x20character'+'s)'));},_0x392b76=_0x299e34['vulnerabil'+_0x47a076(0x328)][_0x47a076(0x323)]((_0x249049,_0x2b0b32)=>{const _0x1c2cf4=_0x47a076,_0x21a102=_0x249049[_0x1c2cf4(0x2ce)+'o']?.[_0x1c2cf4(0x202)]||_0x249049[_0x1c2cf4(0x2d3)],_0x5221e7=_0x249049[_0x1c2cf4(0x2ce)+'o']?.[_0x1c2cf4(0x2a6)+'n']||_0x249049[_0x1c2cf4(0x2a6)+'n'],_0x3aabd1=_0x249049['checkerInf'+'o']?.[_0x1c2cf4(0x22c)]&&_0x249049[_0x1c2cf4(0x2ce)+'o']['compliance'][_0x1c2cf4(0x29b)]>0x0?_0x1c2cf4(0x26b)+'언스:\x20'+_0x249049[_0x1c2cf4(0x2ce)+'o']['compliance'][_0x1c2cf4(0x323)](_0x30066c=>''+_0x30066c['reference']['name']+(_0x30066c['reference'][_0x1c2cf4(0x1f8)]?'\x20('+_0x30066c[_0x1c2cf4(0x22d)][_0x1c2cf4(0x1f8)]+')':''))[_0x1c2cf4(0x247)](',\x20'):'';return _0x2b0b32+0x1+_0x1c2cf4(0x27f)+_0x249049[_0x1c2cf4(0x23a)]+']\x20**'+_0x21a102+_0x1c2cf4(0x250)+_0x249049[_0x1c2cf4(0x2d3)]+(_0x1c2cf4(0x28e)+'\x20')+_0x5221e7+(_0x249049[_0x1c2cf4(0x2cb)]?_0x1c2cf4(0x1f5)+_0x249049[_0x1c2cf4(0x2cb)]+(_0x249049['lineNumber']?':'+_0x249049[_0x1c2cf4(0x282)]:''):'')+_0x3aabd1;})[_0x47a076(0x247)]('\x0a\x0a'),_0x49a4c2=(_0x47a076(0x1fb)+_0x47a076(0x1f2)+_0x47a076(0x2a7)+_0x47a076(0x285)+_0x47a076(0x24a)+_0x47a076(0x229)+_0x47a076(0x32a)+_0x299e34[_0x47a076(0x227)]+(_0x47a076(0x26a)+'\x20')+_0x5ca749+(_0x47a076(0x326)+'\x20')+(_0x299e34['result']||_0x47a076(0x2fc))+(_0x47a076(0x265)+_0x47a076(0x2ef)+_0x47a076(0x296))+_0x299e34[_0x47a076(0x31f)+_0x47a076(0x328)][_0x47a076(0x29b)]+('\x0a\x0a##\x20Analy'+_0x47a076(0x31d)+'ng\x0a')+_0x2cd4cb(_0x299e34[_0x47a076(0x2ed)+_0x47a076(0x2d5)]||'',_0x741192)+(_0x47a076(0x314)+'vered\x20Vuln'+_0x47a076(0x218)+'s\x0a')+_0x2cd4cb(_0x392b76,_0x741192)+_0x47a076(0x27d))['trim'](),_0x305598={'analysisId':_0x299e34[_0x47a076(0x227)],'status':_0x5ca749,'result':_0x299e34[_0x47a076(0x2b8)],'vulnerabilities':_0x299e34[_0x47a076(0x31f)+_0x47a076(0x328)],'analysisBrief':_0x299e34[_0x47a076(0x2ed)+_0x47a076(0x2d5)]?_0x2cd4cb(_0x299e34[_0x47a076(0x2ed)+_0x47a076(0x2d5)],_0x741192):''},_0x408e4d={};_0x408e4d[_0x47a076(0x259)]=_0x47a076(0x24f),_0x408e4d[_0x47a076(0x24f)]=_0x49a4c2;const _0xc5032d={};return _0xc5032d[_0x47a076(0x22f)]=[_0x408e4d],_0xc5032d[_0x47a076(0x2e7)+_0x47a076(0x209)]=_0x305598,_0xc5032d;}catch(_0x443623){logger[_0x47a076(0x2db)](_0x47a076(0x23c)+'get\x20analys'+_0x47a076(0x303)+':',_0x443623);const _0x583146=_0x443623 instanceof Error?_0x443623['message']:_0x47a076(0x20a)+'ror',_0x599da6={};_0x599da6[_0x47a076(0x259)]=_0x47a076(0x24f),_0x599da6['text']=_0x47a076(0x23c)+_0x47a076(0x268)+'is\x20results'+':\x20'+_0x583146;const _0x3fa609={};_0x3fa609['error']=_0x583146;const _0x43dd72={};return _0x43dd72[_0x47a076(0x22f)]=[_0x599da6],_0x43dd72[_0x47a076(0x2e7)+_0x47a076(0x209)]=_0x3fa609,_0x43dd72[_0x47a076(0x2bc)]=!![],_0x43dd72;}}async[a7_0x1e00e8(0x299)+a7_0x1e00e8(0x2d6)+'s']({analysisId:_0x2c32c2}){const _0x29f272=a7_0x1e00e8,_0x1a999d={};_0x1a999d[_0x29f272(0x31e)]=function(_0x3a4fa1,_0x3b5bbb){return _0x3a4fa1||_0x3b5bbb;},_0x1a999d['YfUFo']=_0x29f272(0x262)+_0x29f272(0x2de)+_0x29f272(0x28b)+_0x29f272(0x26f)+'ng\x20immedia'+_0x29f272(0x238),_0x1a999d['KKnkg']=function(_0x111f24,_0x42f116){return _0x111f24!==_0x42f116;},_0x1a999d[_0x29f272(0x278)]=function(_0x2a7042,_0x186772){return _0x2a7042 instanceof _0x186772;},_0x1a999d[_0x29f272(0x2f0)]=_0x29f272(0x24f);const _0x57da52=_0x1a999d;try{logger[_0x29f272(0x26e)]('SCA\x20analys'+_0x29f272(0x303)+'\x20requested'+':\x20'+_0x2c32c2);const _0x2e3430=await this[_0x29f272(0x2f9)+_0x29f272(0x266)]['getScaAnal'+'ysisResult'+'s'](_0x2c32c2),_0x215ca6=_0x2e3430[_0x29f272(0x2b8)]??_0x2e3430[_0x29f272(0x256)],_0xedfd4e='|\x20Componen'+_0x29f272(0x22b)+_0x29f272(0x2f7)+'e\x20|\x20Vulner'+'abilities\x20'+'(C/H/M/L/T'+_0x29f272(0x225)+_0x29f272(0x32f)+_0x29f272(0x32f)+'------|---'+'----------'+_0x29f272(0x2ff)+'------|',_0x12b92c=_0x2e3430['components']['map'](_0x5ee107=>{const _0x30b10f=_0x29f272,_0x4b6d1d=_0x5ee107['licenses'][_0x30b10f(0x29b)]>0x0?_0x5ee107[_0x30b10f(0x315)][_0x30b10f(0x323)](_0x12ec8e=>_0x12ec8e[_0x30b10f(0x202)])[_0x30b10f(0x247)](',\x20'):_0x30b10f(0x2b3),_0x3772d0=_0x5ee107[_0x30b10f(0x294)][_0x30b10f(0x2c5)](_0x14667f=>_0x14667f[_0x30b10f(0x23a)]===_0x30b10f(0x2c6))['length'],_0x51eba4=_0x5ee107[_0x30b10f(0x294)][_0x30b10f(0x2c5)](_0x49402d=>_0x49402d['severity']==='HIGH')[_0x30b10f(0x29b)],_0x4a17f4=_0x5ee107[_0x30b10f(0x294)][_0x30b10f(0x2c5)](_0x57ce36=>_0x57ce36[_0x30b10f(0x23a)]===_0x30b10f(0x28f))[_0x30b10f(0x29b)],_0x5450bb=_0x5ee107[_0x30b10f(0x294)][_0x30b10f(0x2c5)](_0x5bc73f=>_0x5bc73f[_0x30b10f(0x23a)]===_0x30b10f(0x2dd))[_0x30b10f(0x29b)],_0x57b3e7=_0x5ee107[_0x30b10f(0x294)][_0x30b10f(0x2c5)](_0x1d48c6=>_0x1d48c6[_0x30b10f(0x23a)]===_0x30b10f(0x2c7))[_0x30b10f(0x29b)],_0x1ead79=_0x3772d0+_0x51eba4+_0x4a17f4+_0x5450bb+_0x57b3e7+'\x20('+_0x3772d0+'/'+_0x51eba4+'/'+_0x4a17f4+'/'+_0x5450bb+'/'+_0x57b3e7+')';return'|\x20'+_0x5ee107[_0x30b10f(0x202)]+_0x30b10f(0x25f)+_0x5ee107[_0x30b10f(0x1f8)]+_0x30b10f(0x25f)+_0x4b6d1d+_0x30b10f(0x25f)+_0x1ead79+'\x20|';})[_0x29f272(0x247)]('\x0a'),_0x46283f=_0x2e3430[_0x29f272(0x279)][_0x29f272(0x29b)]>0x0?_0xedfd4e+'\x0a'+_0x12b92c:_0x29f272(0x240)+_0x29f272(0x306)+_0x29f272(0x2b7),_0x504dd0=_0x2e3430[_0x29f272(0x279)][_0x29f272(0x2c5)](_0x5ed475=>_0x5ed475[_0x29f272(0x294)][_0x29f272(0x29b)]>0x0)[_0x29f272(0x323)](_0xd9007a=>{const _0xd87a6c=_0x29f272,_0x59cb27=_0xd9007a['issues'][_0xd87a6c(0x323)]((_0x10c754,_0x45b7c7)=>{const _0x2d061c=_0xd87a6c;let _0x521647=_0x2d061c(0x261)+(_0x45b7c7+0x1)+_0x2d061c(0x27f)+_0x10c754['severity']+_0x2d061c(0x252)+_0x10c754[_0x2d061c(0x2ba)]+'**';if(_0x10c754[_0x2d061c(0x2bb)])_0x521647+=_0x2d061c(0x31a)+_0x10c754[_0x2d061c(0x2bb)]+')';if(_0x10c754['descriptio'+'n'])_0x521647+=_0x2d061c(0x20f)+_0x10c754['descriptio'+'n'];if(_0x10c754[_0x2d061c(0x320)+'on'])_0x521647+=_0x2d061c(0x200)+_0x2d061c(0x2e4)+_0x10c754[_0x2d061c(0x320)+'on'];return _0x521647;})[_0xd87a6c(0x247)]('\x0a');return'###\x20'+_0xd9007a[_0xd87a6c(0x202)]+'@'+_0xd9007a[_0xd87a6c(0x1f8)]+'\x0a'+_0x59cb27;})[_0x29f272(0x247)]('\x0a\x0a'),_0x12115f=_0x2e3430['components']['filter'](_0x5f463d=>_0x5f463d[_0x29f272(0x294)][_0x29f272(0x29c)](_0x757535=>_0x757535[_0x29f272(0x23a)]===_0x29f272(0x2c6)||_0x757535[_0x29f272(0x23a)]==='HIGH'))[_0x29f272(0x323)](_0x303b96=>{const _0x320f9c=_0x29f272,_0x3ce5df=_0x303b96[_0x320f9c(0x294)][_0x320f9c(0x2e8)](_0x58a214=>_0x58a214['severity']===_0x320f9c(0x2c6)||_0x58a214[_0x320f9c(0x23a)]===_0x320f9c(0x319)),_0x356f63=_0x3ce5df?.[_0x320f9c(0x320)+'on']||_0x320f9c(0x32c);return _0x320f9c(0x241)+_0x303b96[_0x320f9c(0x202)]+(_0x320f9c(0x21d)+_0x320f9c(0x2e0))+_0x303b96['version']+_0x320f9c(0x1f3)+_0x356f63+'`';})[_0x29f272(0x247)]('\x0a'),_0x122623=(_0x29f272(0x20b)+_0x29f272(0x21f)+_0x29f272(0x233)+_0x29f272(0x32e)+_0x29f272(0x26c)+_0x29f272(0x2dc)+_0x29f272(0x24c)+_0x29f272(0x2b2)+'sis\x20ID\x20|\x20'+_0x2e3430[_0x29f272(0x227)]+(_0x29f272(0x28d)+_0x29f272(0x2aa))+_0x215ca6+(_0x29f272(0x2a4)+_0x29f272(0x284))+_0x2e3430[_0x29f272(0x279)]['length']+(_0x29f272(0x251)+_0x29f272(0x231)+_0x29f272(0x267))+_0x2e3430[_0x29f272(0x2fb)+_0x29f272(0x324)]+('\x20|\x0a|\x20Criti'+'cal\x20|\x20')+_0x2e3430[_0x29f272(0x2c0)+_0x29f272(0x25c)]+(_0x29f272(0x2bf)+'|\x20')+_0x2e3430[_0x29f272(0x22e)]+(_0x29f272(0x30a)+_0x29f272(0x300))+_0x2e3430[_0x29f272(0x31c)+'t']+(_0x29f272(0x1ee)+_0x29f272(0x1ff))+_0x2e3430['lowCount']+(_0x29f272(0x327)+_0x29f272(0x289))+(_0x2e3430[_0x29f272(0x1ea)+'nt']||0x0)+('\x20|\x0a\x0a##\x20Ana'+_0x29f272(0x29a)+_0x29f272(0x322))+_0x2e3430['analysisBr'+'ief']+(_0x29f272(0x2a0)+'nent\x20Detai'+'ls\x0a')+_0x46283f+(_0x29f272(0x280)+_0x29f272(0x27a)+_0x29f272(0x2df))+(_0x504dd0||_0x29f272(0x1fa)+_0x29f272(0x2bd)+'ound.')+(_0x29f272(0x1fd)+_0x29f272(0x272)+_0x29f272(0x310))+_0x57da52['eYWqh'](_0x12115f,_0x57da52['YfUFo'])+'\x0a\x20\x20\x20\x20\x20\x20')[_0x29f272(0x2fa)](),_0x130cab={};_0x130cab[_0x29f272(0x227)]=_0x2e3430['analysisId'],_0x130cab['status']=_0x215ca6,_0x130cab[_0x29f272(0x2b8)]=_0x2e3430[_0x29f272(0x2b8)],_0x130cab[_0x29f272(0x279)]=_0x2e3430['components'],_0x130cab[_0x29f272(0x2fb)+'rabilities']=_0x2e3430[_0x29f272(0x2fb)+_0x29f272(0x324)],_0x130cab[_0x29f272(0x2c0)+'unt']=_0x2e3430['criticalCo'+_0x29f272(0x25c)],_0x130cab[_0x29f272(0x22e)]=_0x2e3430[_0x29f272(0x22e)],_0x130cab[_0x29f272(0x31c)+'t']=_0x2e3430[_0x29f272(0x31c)+'t'],_0x130cab[_0x29f272(0x308)]=_0x2e3430[_0x29f272(0x308)],_0x130cab[_0x29f272(0x2ed)+_0x29f272(0x2d5)]=_0x2e3430[_0x29f272(0x2ed)+_0x29f272(0x2d5)];const _0x3b3521=_0x130cab,_0x5e9e6e={};_0x5e9e6e[_0x29f272(0x259)]='text',_0x5e9e6e[_0x29f272(0x24f)]=_0x122623;const _0x77753a={};return _0x77753a[_0x29f272(0x22f)]=[_0x5e9e6e],_0x77753a[_0x29f272(0x2e7)+_0x29f272(0x209)]=_0x3b3521,_0x77753a;}catch(_0x2abb31){if(_0x57da52[_0x29f272(0x213)](_0x29f272(0x2b5),_0x29f272(0x2b5))){const _0x12652b=_0x46a25b instanceof _0xfc657f?_0x59b8c2[_0x29f272(0x273)]:_0x29f272(0x20a)+_0x29f272(0x287);return _0x12652b[_0x29f272(0x2a3)](_0x29f272(0x203)+'ken')||_0x12652b[_0x29f272(0x2a3)](_0x29f272(0x253)+_0x29f272(0x205))||_0x12652b['includes']('expired\x20to'+'ken')||_0x12652b[_0x29f272(0x2c2)+'e']()[_0x29f272(0x2a3)]('token')?(_0x40f26e=![],_0x4fee2c[_0x29f272(0x293)](_0x29f272(0x2f4)+_0x29f272(0x2e3)+'\x20longer\x20va'+'lid,\x20stopp'+_0x29f272(0x1ec)+_0x29f272(0x301)+'ations:\x20'+_0x12652b)):_0x52eaf2[_0x29f272(0x293)](_0x29f272(0x307)+_0x29f272(0x23d)+'n\x20failed\x20('+_0x29f272(0x215)+_0x29f272(0x24e)+_0x12652b),![];}else{logger[_0x29f272(0x2db)](_0x29f272(0x23c)+_0x29f272(0x248)+_0x29f272(0x217)+_0x29f272(0x305),_0x2abb31);const _0x15ada0=_0x57da52[_0x29f272(0x278)](_0x2abb31,Error)?_0x2abb31['message']:_0x29f272(0x20a)+_0x29f272(0x287),_0x5376b1={};_0x5376b1[_0x29f272(0x259)]=_0x57da52[_0x29f272(0x2f0)],_0x5376b1['text']=_0x29f272(0x23c)+'get\x20SCA\x20an'+_0x29f272(0x217)+_0x29f272(0x1f4)+_0x15ada0;const _0x1a1364={};_0x1a1364['error']=_0x15ada0;const _0x495d79={};return _0x495d79[_0x29f272(0x22f)]=[_0x5376b1],_0x495d79[_0x29f272(0x2e7)+_0x29f272(0x209)]=_0x1a1364,_0x495d79['isError']=!![],_0x495d79;}}}async[a7_0x1e00e8(0x221)+a7_0x1e00e8(0x2f1)+'s']({analysisId:_0xa5b4fc,intervalMs:intervalMs=0xbb8,maxWaitMs:maxWaitMs=0x7530},_0x4a9932){const _0xe087cc=a7_0x1e00e8,_0x5c60a8={'xOgnf':function(_0x25021e,_0x529147){return _0x25021e!==_0x529147;},'rLoXj':_0xe087cc(0x21e)+_0xe087cc(0x205),'FdRjT':_0xe087cc(0x316),'XrNzI':function(_0x3fafc4,_0x3ed5eb){return _0x3fafc4(_0x3ed5eb);},'AfjHM':function(_0x2a7017,_0x44c206){return _0x2a7017===_0x44c206;},'VPkTU':_0xe087cc(0x2e1),'bklMv':_0xe087cc(0x1f9)+'Analysis\x20c'+_0xe087cc(0x211)+_0xe087cc(0x2d0)+'y.','NVSVb':_0xe087cc(0x201),'ARrjd':_0xe087cc(0x260)+_0xe087cc(0x2ae)+'ss','VfTNl':function(_0x5ea655,_0x5076dd){return _0x5ea655===_0x5076dd;},'ihYAj':function(_0x2187ac,_0x403789){return _0x2187ac/_0x403789;},'tucmq':function(_0x20f766,_0x389aa8){return _0x20f766 instanceof _0x389aa8;}};try{const _0x57b608=_0x4a9932['_meta']?.[_0xe087cc(0x235)+_0xe087cc(0x205)];if(!_0x57b608){const _0x328e65={};_0x328e65['type']=_0xe087cc(0x24f),_0x328e65[_0xe087cc(0x24f)]=_0xe087cc(0x2fd)+_0xe087cc(0x1ed)+_0xe087cc(0x2c1)+_0xe087cc(0x270)+_0xe087cc(0x2c4)+_0xe087cc(0x329)+_0xe087cc(0x2d1)+'.';const _0x2bb234={};_0x2bb234[_0xe087cc(0x2db)]=_0xe087cc(0x2fd)+_0xe087cc(0x1ed)+_0xe087cc(0x309);const _0x1cfe96={};return _0x1cfe96['content']=[_0x328e65],_0x1cfe96[_0xe087cc(0x2e7)+_0xe087cc(0x209)]=_0x2bb234,_0x1cfe96;}logger[_0xe087cc(0x26e)](_0xe087cc(0x20d)+_0xe087cc(0x2a1)+_0xe087cc(0x239)+'rted:\x20'+_0xa5b4fc);const _0x1df84e=ANALYSIS_STAGES;let _0x579665=Object[_0xe087cc(0x30b)](_0x1df84e)[_0xe087cc(0x29b)],_0xb3386a=null,_0x256d0f=0x0,_0x5a4884=!![];const _0x393e2d=Date['now'](),_0x3d5e53=async _0x2dfb71=>{const _0x27506c=_0xe087cc;if(_0x5c60a8[_0x27506c(0x288)](_0x27506c(0x24d),_0x27506c(0x24d)))_0x55896d[_0x27506c(0x26e)](_0x27506c(0x246)+_0x27506c(0x313)+_0x27506c(0x2ec)+_0xd02b35);else{if(!_0x5a4884)return![];try{return await _0x4a9932[_0x27506c(0x2b6)+_0x27506c(0x2f3)](_0x2dfb71),!![];}catch(_0x1c2cc9){const _0x3bede6=_0x1c2cc9 instanceof Error?_0x1c2cc9[_0x27506c(0x273)]:_0x27506c(0x20a)+_0x27506c(0x287);return _0x3bede6[_0x27506c(0x2a3)](_0x27506c(0x203)+_0x27506c(0x205))||_0x3bede6['includes']('invalid\x20to'+_0x27506c(0x205))||_0x3bede6['includes'](_0x5c60a8['rLoXj'])||_0x3bede6[_0x27506c(0x2c2)+'e']()[_0x27506c(0x2a3)](_0x5c60a8[_0x27506c(0x219)])?(_0x5a4884=![],logger['warn'](_0x27506c(0x2f4)+_0x27506c(0x2e3)+_0x27506c(0x2e5)+_0x27506c(0x206)+_0x27506c(0x1ec)+_0x27506c(0x301)+_0x27506c(0x2a8)+_0x3bede6)):logger[_0x27506c(0x293)](_0x27506c(0x307)+_0x27506c(0x23d)+_0x27506c(0x245)+_0x27506c(0x215)+_0x27506c(0x24e)+_0x3bede6),![];}}};while(!![]){try{const _0xff2bcd=await this[_0xe087cc(0x2f9)+_0xe087cc(0x266)][_0xe087cc(0x21b)+_0xe087cc(0x275)](_0xa5b4fc),_0x51afb5=String(_0xff2bcd[_0xe087cc(0x256)])[_0xe087cc(0x30c)+'e'](),_0x39a528=_0x5c60a8[_0xe087cc(0x29d)](String,_0xff2bcd[_0xe087cc(0x256)])['toUpperCas'+'e'](),_0x1f10be=_0x5c60a8[_0xe087cc(0x2b9)](_0x39a528,_0x5c60a8[_0xe087cc(0x263)])&&_0xff2bcd[_0xe087cc(0x2b8)]?_0x5c60a8[_0xe087cc(0x29d)](String,_0xff2bcd[_0xe087cc(0x2b8)])['toUpperCas'+'e']():_0x51afb5;if(_0xb3386a!==_0x51afb5){_0xb3386a=_0x51afb5;if(_0x39a528===_0xe087cc(0x2e1)||_0x51afb5==='FAIL'||_0x51afb5===_0xe087cc(0x243)){let _0x362192,_0x2bc377;if(_0x39a528===_0xe087cc(0x2e1)){const _0x223b45=_0xff2bcd[_0xe087cc(0x2b8)]?_0x5c60a8[_0xe087cc(0x29d)](String,_0xff2bcd['result'])[_0xe087cc(0x30c)+'e']():undefined;_0x2bc377=_0x223b45||_0xe087cc(0x2e1);if(_0x223b45===_0xe087cc(0x2a9))_0x362192=_0x5c60a8[_0xe087cc(0x2da)];else{if(_0x5c60a8[_0xe087cc(0x2b9)](_0x223b45,_0x5c60a8[_0xe087cc(0x2fe)]))_0x362192=_0xe087cc(0x311)+_0xe087cc(0x1f1)+'ed\x20to\x20comp'+_0xe087cc(0x254)+_0xe087cc(0x321);else{if(_0x223b45===_0xe087cc(0x2f8))_0x362192=_0xe087cc(0x290)+'lysis\x20was\x20'+'stopped\x20by'+'\x20request.';else{if(_0xe087cc(0x210)!==_0xe087cc(0x2af))_0x362192=_0xe087cc(0x27e)+_0xe087cc(0x214)+'completed.',_0x2bc377=_0x5c60a8[_0xe087cc(0x263)];else{const _0x276362=_0x1e4f93[_0xe087cc(0x294)]['find'](_0x591f21=>_0x591f21[_0xe087cc(0x23a)]===_0xe087cc(0x2c6)||_0x591f21['severity']===_0xe087cc(0x319)),_0x4fd75a=_0x276362?.[_0xe087cc(0x320)+'on']||_0xe087cc(0x32c);return _0xe087cc(0x241)+_0x529f92[_0xe087cc(0x202)]+(_0xe087cc(0x21d)+_0xe087cc(0x2e0))+_0x4337b8[_0xe087cc(0x1f8)]+_0xe087cc(0x1f3)+_0x4fd75a+'`';}}}}}else _0x362192='['+_0x51afb5+(_0xe087cc(0x277)+_0xe087cc(0x242)),_0x2bc377=_0x51afb5;const _0x496f44={'method':_0x5c60a8[_0xe087cc(0x2e9)],'params':{'progressToken':typeof _0x57b608===_0xe087cc(0x207)?_0x57b608:String(_0x57b608),'progress':_0x51afb5===_0xe087cc(0x2e1)?0x64:0x0,'message':_0x362192,'total':0x64}};await _0x3d5e53(_0x496f44);_0x39a528==='COMPLETE'?logger[_0xe087cc(0x26e)](_0xe087cc(0x292)+_0xe087cc(0x20c)+'s\x20updated:'+'\x20'+_0x2bc377):logger[_0xe087cc(0x26e)](_0xe087cc(0x246)+'ailed\x20with'+'\x20status:\x20'+_0x2bc377);const _0x4e3edf={};_0x4e3edf['type']=_0xe087cc(0x24f),_0x4e3edf[_0xe087cc(0x24f)]=_0xe087cc(0x2a2)+_0xe087cc(0x204)+_0xe087cc(0x216)+_0xe087cc(0x2d9)+_0xa5b4fc+(_0xe087cc(0x26d)+_0xe087cc(0x2d4))+_0x2bc377;const _0x503487={};_0x503487[_0xe087cc(0x227)]=_0xa5b4fc,_0x503487[_0xe087cc(0x256)]=_0x2bc377,_0x503487[_0xe087cc(0x2b8)]=_0xff2bcd[_0xe087cc(0x2b8)],_0x503487[_0xe087cc(0x25e)]=!![];const _0x9210ad={};return _0x9210ad[_0xe087cc(0x22f)]=[_0x4e3edf],_0x9210ad[_0xe087cc(0x2e7)+_0xe087cc(0x209)]=_0x503487,_0x9210ad;}const _0x27be5d=_0x1df84e[_0x51afb5];if(_0x27be5d){const _0x2e4603={};_0x2e4603[_0xe087cc(0x228)]=0x64;const _0x26dbd2={'method':'notificati'+_0xe087cc(0x2ae)+'ss','params':{'progressToken':typeof _0x57b608===_0xe087cc(0x207)?_0x57b608:String(_0x57b608),'progress':_0x27be5d[_0xe087cc(0x30d)]!==null?_0x27be5d['progress']:_0x51afb5===_0xe087cc(0x295)?_0x256d0f:_0x27be5d[_0xe087cc(0x2c8)],'message':'['+_0x27be5d['id']+']\x20'+_0x27be5d['descriptio'+'n'],'total':_0x579665,..._0x27be5d['progress']!==null&&_0x51afb5==='ANALYSIS'&&_0x2e4603}};await _0x3d5e53(_0x26dbd2),_0x5a4884&&logger[_0xe087cc(0x26e)](_0xe087cc(0x2c9)+'tatus\x20upda'+_0xe087cc(0x1ef)+_0x27be5d['id']+'\x20('+_0x27be5d[_0xe087cc(0x202)]+')');}else{const _0x419720={'method':'notificati'+_0xe087cc(0x2ae)+'ss','params':{'progressToken':typeof _0x57b608===_0xe087cc(0x207)?_0x57b608:String(_0x57b608),'progress':0x1,'total':0x1,'message':'['+_0x51afb5+(_0xe087cc(0x277)+'\x20in\x20progre'+_0xe087cc(0x2c3))}};await _0x3d5e53(_0x419720);}}else{if(_0x5c60a8[_0xe087cc(0x25a)](_0x51afb5,_0xe087cc(0x295))){if(_0xff2bcd[_0xe087cc(0x30d)]!==undefined&&_0xff2bcd[_0xe087cc(0x30d)]!==null){_0x256d0f=_0xff2bcd['progress'];const _0x1aa26d=_0x1df84e[_0x51afb5],_0x5ba3d5={'method':_0xe087cc(0x260)+_0xe087cc(0x2ae)+'ss','params':{'progressToken':typeof _0x57b608===_0xe087cc(0x207)?_0x57b608:String(_0x57b608),'progress':_0x1aa26d[_0xe087cc(0x2c8)],'total':_0x579665,'message':_0xe087cc(0x281)+_0xe087cc(0x214)+_0xe087cc(0x230)+_0xe087cc(0x291)+_0x256d0f+'%'}};await _0x3d5e53(_0x5ba3d5);}}}!_0x5a4884&&logger[_0xe087cc(0x26e)](_0xe087cc(0x2f4)+'oken\x20is\x20in'+_0xe087cc(0x298)+_0xe087cc(0x25b)+'atus\x20check'+_0xe087cc(0x2b1)+_0xe087cc(0x260)+_0xe087cc(0x27c));await new Promise(_0x2f3955=>setTimeout(_0x2f3955,intervalMs));const _0x2959ca=Date[_0xe087cc(0x274)]()-_0x393e2d;if(_0x2959ca>=maxWaitMs){logger[_0xe087cc(0x26e)](_0xe087cc(0x20d)+_0xe087cc(0x2a1)+_0xe087cc(0x21a)+_0xe087cc(0x226)+_0xe087cc(0x312)+maxWaitMs+_0xe087cc(0x2f6)+_0xa5b4fc);const _0x59f7be={'method':'notificati'+'ons/progre'+'ss','params':{'progressToken':typeof _0x57b608===_0xe087cc(0x207)?_0x57b608:String(_0x57b608),'progress':_0x256d0f||0x1,'total':0x64,'message':'['+(_0xb3386a||_0xe087cc(0x1fc)+'S')+(_0xe087cc(0x264)+_0xe087cc(0x28a)+_0xe087cc(0x2cc))+Math[_0xe087cc(0x32d)](_0x2959ca/0x3e8)+(_0xe087cc(0x2d8)+_0xe087cc(0x325)+_0xe087cc(0x2b0)+_0xe087cc(0x2e6))}};return await _0x3d5e53(_0x59f7be),{'content':[{'type':'text','text':_0xe087cc(0x2cf)+'s\x20still\x20in'+_0xe087cc(0x255)+_0xe087cc(0x2ea)+_0xb3386a+(_0xe087cc(0x224)+'g\x20paused\x20a'+_0xe087cc(0x27b))+Math[_0xe087cc(0x32d)](_0x5c60a8[_0xe087cc(0x317)](_0x2959ca,0x3e8))+(_0xe087cc(0x2f2)+'call\x20track'+_0xe087cc(0x22a)+'progress\x20a'+_0xe087cc(0x302)+_0xe087cc(0x21c)+'itoring\x20if'+'\x20needed.')}],'structuredContent':{'analysisId':_0xa5b4fc,'status':_0xb3386a,'completed':![],'elapsedMs':_0x2959ca}};}}catch(_0x171877){logger['error'](_0xe087cc(0x2a5)+_0xe087cc(0x318)+_0xe087cc(0x286)+'\x20('+_0xa5b4fc+'):',_0x171877),await new Promise(_0xd1fca8=>setTimeout(_0xd1fca8,intervalMs));}}}catch(_0x17fbcc){logger[_0xe087cc(0x2db)](_0xe087cc(0x20d)+_0xe087cc(0x2a1)+_0xe087cc(0x237)+_0xe087cc(0x297),_0x17fbcc);const _0x1aa679={};return _0x1aa679[_0xe087cc(0x259)]='text',_0x1aa679[_0xe087cc(0x24f)]=_0xe087cc(0x20d)+_0xe087cc(0x2a1)+'acking\x20fai'+_0xe087cc(0x271)+(_0x17fbcc instanceof Error?_0x17fbcc[_0xe087cc(0x273)]:_0xe087cc(0x20a)+_0xe087cc(0x287)),{'content':[_0x1aa679],'structuredContent':{'error':_0x5c60a8[_0xe087cc(0x2ca)](_0x17fbcc,Error)?_0x17fbcc[_0xe087cc(0x273)]:_0xe087cc(0x20a)+'ror'},'isError':!![]};}}}function a7_0xb84b(){const _0x3d143a=['tatus:\x20','ms):\x20','n\x20|\x20Licens','STOP','analysisSe','trim','totalVulne','N/A','Progress\x20T','NVSVb','----------','m\x20|\x20','ss\x20notific','gain\x20to\x20co','is\x20results','ested:\x20','ults:','nts\x20identi','Progress\x20n','lowCount','rovided','\x20|\x0a|\x20Mediu','keys','toUpperCas','progress','ound.','tatus\x20requ','de\x0a','[FAIL]\x20Ana','itMs\x20(','ailed\x20with','\x0a\x0a##\x20Disco','licenses','token','ihYAj','king\x20analy','HIGH','\x20(CVSS:\x20','178xnUGGE','mediumCoun','sis\x20Briefi','eYWqh','vulnerabil','fixedVersi','rly.','fing\x0a','map','rabilities','s\x20is\x20still','\x0a-\x20Result:','\x20|\x0a266:\x20|\x20','ities','rt\x20progres','s\x20ID:\x20','###\x20','latest','round','mary\x0a|\x20Met','------|---','trivialCou','\x20|\x0a\x0a##\x20Ana','ing\x20progre','oken\x20not\x20p','\x20|\x0a265:\x20|\x20','ted:\x20','|\x20Componen','lysis\x20fail','y\x20Analysis','`\x20to\x20`','ults:\x20','\x0a\x20\x20\x20-\x20파일:\x20','\x0a\x0a...\x20(Sho','10VmtWnG','version','[SUCCESS]\x20','No\x20vulnera','\x0a#\x20Securit','IN_PROGRES','\x0a\x0a##\x20Remed','uested:\x20','Low\x20|\x20','\x0a\x20\x20\x20\x20\x20\x20-\x20F','FAIL','name','unknown\x20to','ompleted.\x0a','ken','lid,\x20stopp','string','ID\x20|\x20','Content','Unknown\x20er','\x0a#\x20SCA\x20Ana','ysis\x20statu','Analysis\x20p','\x20|\x0a|\x20Criti','\x0a\x20\x20\x20\x20\x20\x20-\x20','wyyzY','ompleted\x20s','\x0a|\x20Metric\x20','KKnkg','\x20Analysis\x20','will\x20retry','Analysis\x20I','alysis\x20res','erabilitie','FdRjT','acking\x20rea','getAnalysi','ntinue\x20mon','**:\x20Update','expired\x20to','lysis\x20Repo','esults\x20req','trackAnaly','2186775WRVWOp','2346736fkVbxV',').\x0aTrackin',')\x20|\x0a|-----','ched\x20maxWa','analysisId','total','\x0a-\x20Analysi','_analysis_','t\x20|\x20Versio','compliance','reference','highCount','content','in\x20progres','\x20Vulnerabi','1119888lzESag','rt\x0a\x0a##\x20Sum','constructo','progressTo','4821JKCyVO','acking\x20fai','te\x20action.','acking\x20sta','severity','%\x0aMessage:','Failed\x20to\x20','otificatio','1255728jSRaCd','----|-----','No\x20compone','-\x20**','\x20failed.','FAILED','(((.+)+)+)','n\x20failed\x20(','Analysis\x20f','join','get\x20SCA\x20an','5832027fqfYWk','s\x20Overview','538953dWDeCI','---|------','pEqkc','):\x20','text','**\x20(','\x20|\x0a|\x20Total',']\x20**','invalid\x20to','lete\x20prope','\x20progress\x20','status','SCA','apply','type','VfTNl','tinuing\x20st','unt','toString','completed','\x20|\x20','notificati','\x20\x20\x20','No\x20critica','VPkTU',']\x20Tracking','\x0a-\x20Vulnera','rvice','lities\x20|\x20','get\x20analys','Analysis\x20r','\x0a-\x20Status:','\x0a\x20\x20\x20-\x20컴플라이','ric\x20|\x20Valu','\x0aFinal\x20Sta','info','es\x20requiri','he\x20client\x20','led:\x20','iation\x20Gui','message','now','sStatus','abilities\x20',']\x20Analysis','sithS','components','rability\x20D','fter\x20','ons','\x0a\x20\x20\x20\x20\x20\x20','[COMPLETE]','.\x20[','\x0a\x0a##\x20Vulne','[ANALYSIS]','lineNumber','##\x20Summary','nents\x20|\x20','##\x20Analysi','sis\x20status','ror','xOgnf','Trivial\x20|\x20','\x20paused\x20af','erity\x20issu','ls\x0a','\x20|\x0a|\x20Statu',')\x0a\x20\x20\x20-\x20설명:','MEDIUM','[STOP]\x20Ana','s:\x20','Final\x20anal','warn','issues','ANALYSIS','ound:\x20','led:','valid,\x20con','getScaAnal','lysis\x20Brie','length','some','XrNzI','nent\x20Detai','substring','\x0a\x0a##\x20Compo','rogress\x20tr','Analysis\x20c','includes','\x20|\x0a|\x20Compo','Error\x20chec','descriptio','\x20Results\x0a\x0a','ations:\x20','SUCCESS','s\x20|\x20','sResults','\x0aProgress:','|\x20Value\x20|\x0a','ons/progre','lffIs','\x20in\x20progre','s\x20without\x20','-|\x0a|\x20Analy','Unknown','rt\x20(Auto-D','wtVaa','sendNotifi','fied.','result','AfjHM','cveId','cvssScore','isError','bilities\x20f','k\x20failed:','\x20|\x0a|\x20High\x20','criticalCo','rovided.\x20T','toLowerCas','ss...','must\x20suppo','filter','CRITICAL','TRIVIAL','order','Analysis\x20s','tucmq','filePath','ter\x20','is\x20status:','checkerInf','Analysis\x20i','uccessfull','s\x20tracking','14sMNVqK','checkerKey','tus:\x20','ief','ysisResult','etected)\x0a\x0a','s.\x20Analysi','D:\x20','bklMv','error','e\x20|\x0a|-----','LOW','l/high\x20sev','etails\x0a','\x20from\x20`','COMPLETE','\x20|\x0a|\x20Low\x20|','oken\x20is\x20no','ixed\x20in:\x20','\x20longer\x20va','ss.','structured','find','ARrjd','(Status:\x20','-------|\x0a|','\x20status:\x20','analysisBr','16FZZimi','bilities\x20F','rKhaN','sisProgres','s.\x0aPlease\x20','cation','Progress\x20t'];a7_0xb84b=function(){return _0x3d143a;};return a7_0xb84b();}
1
+ const a7_0x383507=a7_0xd6ef;(function(_0x2d6c4b,_0x5ab206){const _0x2043ab=a7_0xd6ef,_0x1f2ecc=_0x2d6c4b();while(!![]){try{const _0x28915d=parseInt(_0x2043ab(0x192))/0x1*(-parseInt(_0x2043ab(0x124))/0x2)+parseInt(_0x2043ab(0xd0))/0x3+parseInt(_0x2043ab(0x1c6))/0x4+parseInt(_0x2043ab(0x1ef))/0x5*(-parseInt(_0x2043ab(0x1c9))/0x6)+parseInt(_0x2043ab(0x1d0))/0x7+-parseInt(_0x2043ab(0x1e2))/0x8+parseInt(_0x2043ab(0x1e5))/0x9*(parseInt(_0x2043ab(0x108))/0xa);if(_0x28915d===_0x5ab206)break;else _0x1f2ecc['push'](_0x1f2ecc['shift']());}catch(_0x491a25){_0x1f2ecc['push'](_0x1f2ecc['shift']());}}}(a7_0x24ff,0xf278a));function a7_0xd6ef(_0x433de9,_0x25b241){_0x433de9=_0x433de9-0xcb;const _0x50c34b=a7_0x24ff();let _0x1e5df8=_0x50c34b[_0x433de9];return _0x1e5df8;}const a7_0x4778fd=(function(){let _0x4d2354=!![];return function(_0x48f262,_0x580cac){const _0x529b26=_0x4d2354?function(){const _0x466b73=a7_0xd6ef;if(_0x580cac){const _0xb21abe=_0x580cac[_0x466b73(0x15b)](_0x48f262,arguments);return _0x580cac=null,_0xb21abe;}}:function(){};return _0x4d2354=![],_0x529b26;};}()),a7_0x1e5df8=a7_0x4778fd(this,function(){const _0x4ade64=a7_0xd6ef;return a7_0x1e5df8['toString']()[_0x4ade64(0x19f)]('(((.+)+)+)'+'+$')[_0x4ade64(0xef)]()[_0x4ade64(0x1e3)+'r'](a7_0x1e5df8)['search'](_0x4ade64(0x1f6)+'+$');});a7_0x1e5df8();import{logger}from'../utils/logger.js';import{ANALYSIS_STAGES}from'../config/constants.js';export class AnalysisController{[a7_0x383507(0x1da)+a7_0x383507(0x12c)];constructor(_0xeead0a){const _0x2d0dcf=a7_0x383507;this[_0x2d0dcf(0x1da)+_0x2d0dcf(0x12c)]=_0xeead0a;}async[a7_0x383507(0x13f)+a7_0x383507(0xf9)]({analysisId:_0x4c8912}){const _0x158341=a7_0x383507,_0x1e98ef={};_0x1e98ef[_0x158341(0x150)]=function(_0x5ba4fe,_0x53075d){return _0x5ba4fe instanceof _0x53075d;};const _0x3bb637=_0x1e98ef;try{logger[_0x158341(0x14e)](_0x158341(0x1c0)+'tatus\x20requ'+_0x158341(0x174)+_0x4c8912);const _0x493d04=await this[_0x158341(0x1da)+_0x158341(0x12c)][_0x158341(0x13f)+_0x158341(0xf9)](_0x4c8912),_0x299862=_0x493d04['status']==='COMPLETE'&&_0x493d04[_0x158341(0x14f)]?_0x493d04[_0x158341(0x14f)]:_0x493d04[_0x158341(0x139)],_0x40d3e7={};_0x40d3e7[_0x158341(0x12b)]='text',_0x40d3e7[_0x158341(0x10f)]=_0x158341(0x135)+_0x158341(0x197)+_0x299862+(_0x158341(0x1c7)+'\x20')+(_0x493d04[_0x158341(0xdd)]||0x0)+(_0x158341(0x1b2)+'\x20')+(_0x493d04['message']||_0x158341(0xcb));const _0x33e749={};_0x33e749['analysisId']=_0x4c8912,_0x33e749[_0x158341(0x139)]=_0x299862,_0x33e749['result']=_0x493d04['result'],_0x33e749[_0x158341(0xdd)]=_0x493d04[_0x158341(0xdd)],_0x33e749['message']=_0x493d04[_0x158341(0x1e8)];const _0x2c47f5={};return _0x2c47f5[_0x158341(0x14b)]=[_0x40d3e7],_0x2c47f5[_0x158341(0x117)+'Content']=_0x33e749,_0x2c47f5;}catch(_0x51ef3a){return logger[_0x158341(0x169)](_0x158341(0x1c0)+_0x158341(0x186)+_0x158341(0x13a),_0x51ef3a),{'content':[{'type':'text','text':_0x158341(0xfc)+_0x158341(0x145)+_0x158341(0x1d1)+'\x20'+(_0x3bb637[_0x158341(0x150)](_0x51ef3a,Error)?_0x51ef3a['message']:_0x158341(0xdf)+_0x158341(0x143))}],'structuredContent':{'error':_0x51ef3a instanceof Error?_0x51ef3a[_0x158341(0x1e8)]:'Unknown\x20er'+_0x158341(0x143)}};}}async[a7_0x383507(0x13f)+'sResults']({analysisId:_0x19b95e}){const _0x3910e4=a7_0x383507,_0x8c459e={'Fkwcr':function(_0x1b91a4,_0x365845){return _0x1b91a4+_0x365845;},'Zwrnw':function(_0x58ed28,_0x4f1f28){return _0x58ed28>_0x4f1f28;},'RizWl':_0x3910e4(0xec)+_0x3910e4(0x133)+_0x3910e4(0xd1),'WKXmT':function(_0x3a82db,_0x4d9fb7){return _0x3a82db||_0x4d9fb7;},'ZjrXy':function(_0x22a1ab,_0xf61897,_0x3908ed){return _0x22a1ab(_0xf61897,_0x3908ed);},'gbcqB':function(_0x3917b6,_0x3d78ad){return _0x3917b6 instanceof _0x3d78ad;},'UQfFG':'text'};try{logger['info'](_0x3910e4(0x131)+_0x3910e4(0xd3)+'uested:\x20'+_0x19b95e);const _0x4537b4=await this[_0x3910e4(0x1da)+'rvice'][_0x3910e4(0x13f)+_0x3910e4(0x1b8)](_0x19b95e),_0x310def=_0x4537b4[_0x3910e4(0x14f)]??_0x4537b4[_0x3910e4(0x139)];if(_0x4537b4[_0x3910e4(0x104)]===_0x3910e4(0xf7)){const _0x54ea5e=_0x4537b4,_0x5790ef=_0x3910e4(0x1a1)+_0x3910e4(0xda)+_0x3910e4(0x122)+'e\x20|\x20Vulner'+_0x3910e4(0x1ce)+_0x3910e4(0x17e)+_0x3910e4(0x168)+_0x3910e4(0x1f5)+_0x3910e4(0x1f5)+_0x3910e4(0x1f5)+_0x3910e4(0x165)+'----------'+_0x3910e4(0x1c4),_0x17c15d=_0x54ea5e[_0x3910e4(0x10d)][_0x3910e4(0x132)](_0x31897b=>{const _0x3c7b1d=_0x3910e4,_0x1d3fa8=_0x31897b[_0x3c7b1d(0xea)][_0x3c7b1d(0x129)]>0x0?_0x31897b[_0x3c7b1d(0xea)][_0x3c7b1d(0x132)](_0xb42b84=>_0xb42b84[_0x3c7b1d(0x176)])[_0x3c7b1d(0x120)](',\x20'):_0x3c7b1d(0x102),_0x14a7fd=_0x31897b[_0x3c7b1d(0x1ed)][_0x3c7b1d(0x12f)](_0x5f0d08=>_0x5f0d08[_0x3c7b1d(0x1c1)]===_0x3c7b1d(0x119))[_0x3c7b1d(0x129)],_0x44d022=_0x31897b[_0x3c7b1d(0x1ed)][_0x3c7b1d(0x12f)](_0x3f5900=>_0x3f5900[_0x3c7b1d(0x1c1)]==='HIGH')[_0x3c7b1d(0x129)],_0x535330=_0x31897b[_0x3c7b1d(0x1ed)][_0x3c7b1d(0x12f)](_0x53f524=>_0x53f524[_0x3c7b1d(0x1c1)]==='MEDIUM')[_0x3c7b1d(0x129)],_0x21728e=_0x31897b[_0x3c7b1d(0x1ed)][_0x3c7b1d(0x12f)](_0x517576=>_0x517576['severity']===_0x3c7b1d(0x178))['length'],_0x3421ba=_0x8c459e['Fkwcr'](_0x14a7fd+_0x44d022,_0x535330)+_0x21728e+'\x20('+_0x14a7fd+'/'+_0x44d022+'/'+_0x535330+'/'+_0x21728e+')';return'|\x20'+_0x31897b['name']+_0x3c7b1d(0x134)+_0x31897b[_0x3c7b1d(0x136)]+_0x3c7b1d(0x134)+_0x1d3fa8+_0x3c7b1d(0x134)+_0x3421ba+'\x20|';})[_0x3910e4(0x120)]('\x0a'),_0x1b65d3=_0x8c459e[_0x3910e4(0x19a)](_0x54ea5e[_0x3910e4(0x10d)][_0x3910e4(0x129)],0x0)?_0x5790ef+'\x0a'+_0x17c15d:_0x8c459e['RizWl'],_0x2be3e1=_0x54ea5e[_0x3910e4(0x10d)][_0x3910e4(0x12f)](_0x35ea52=>_0x35ea52['issues']['length']>0x0)[_0x3910e4(0x132)](_0x2f623a=>{const _0x3af7a7=_0x3910e4,_0x5197cf=_0x2f623a[_0x3af7a7(0x1ed)][_0x3af7a7(0x132)]((_0x3cf530,_0x3b4e98)=>{const _0xae8570=_0x3af7a7;let _0x50b898=_0xae8570(0x1ab)+(_0x3b4e98+0x1)+_0xae8570(0x109)+_0x3cf530[_0xae8570(0x1c1)]+_0xae8570(0x126)+_0x3cf530[_0xae8570(0x1a0)]+'**';if(_0x3cf530[_0xae8570(0x1de)])_0x50b898+=_0xae8570(0x1ee)+_0x3cf530[_0xae8570(0x1de)]+')';if(_0x3cf530[_0xae8570(0x1ac)+'n'])_0x50b898+=_0xae8570(0xd8)+_0x3cf530[_0xae8570(0x1ac)+'n'];if(_0x3cf530['fixedVersi'+'on'])_0x50b898+='\x0a\x20\x20\x20\x20\x20\x20-\x20F'+_0xae8570(0x1bc)+_0x3cf530[_0xae8570(0x181)+'on'];return _0x50b898;})[_0x3af7a7(0x120)]('\x0a');return _0x3af7a7(0x144)+_0x2f623a[_0x3af7a7(0x176)]+'@'+_0x2f623a[_0x3af7a7(0x136)]+'\x0a'+_0x5197cf;})[_0x3910e4(0x120)]('\x0a\x0a'),_0x39dd42=('\x0a#\x20SCA\x20Ana'+'lysis\x20Repo'+_0x3910e4(0x17f)+'etected)\x0a\x0a'+_0x3910e4(0x1ea)+_0x3910e4(0x10b)+'|\x20Value\x20|\x0a'+_0x3910e4(0x18b)+'-------|\x0a|'+_0x3910e4(0x1d8)+_0x3910e4(0x191)+_0x54ea5e[_0x3910e4(0x1ec)]+(_0x3910e4(0x166)+_0x3910e4(0x138))+_0x310def+(_0x3910e4(0x17a)+_0x3910e4(0x153))+_0x54ea5e[_0x3910e4(0x10d)][_0x3910e4(0x129)]+('\x20|\x0a|\x20Total'+_0x3910e4(0x164)+'lities\x20|\x20')+_0x54ea5e[_0x3910e4(0x1d2)+_0x3910e4(0x113)]+(_0x3910e4(0xd2)+'cal\x20|\x20')+_0x54ea5e[_0x3910e4(0x1f3)+_0x3910e4(0x183)]+(_0x3910e4(0x1cb)+'|\x20')+_0x54ea5e[_0x3910e4(0x111)]+(_0x3910e4(0x116)+_0x3910e4(0xdc))+_0x54ea5e['mediumCoun'+'t']+(_0x3910e4(0x162)+'\x20')+_0x54ea5e[_0x3910e4(0x163)]+(_0x3910e4(0x1e4)+_0x3910e4(0x130)+_0x3910e4(0x1e7))+_0x54ea5e['analysisBr'+_0x3910e4(0x1e0)]+(_0x3910e4(0xed)+_0x3910e4(0x158)+_0x3910e4(0x12d))+_0x1b65d3+(_0x3910e4(0x112)+_0x3910e4(0x18d)+_0x3910e4(0x16b))+_0x8c459e[_0x3910e4(0x1cc)](_0x2be3e1,_0x3910e4(0x148)+_0x3910e4(0x203)+_0x3910e4(0x100))+'\x0a')[_0x3910e4(0x189)](),_0x46b1f5={};_0x46b1f5[_0x3910e4(0x12b)]=_0x3910e4(0x10f),_0x46b1f5[_0x3910e4(0x10f)]=_0x39dd42;const _0x2f1cf8={};return _0x2f1cf8['content']=[_0x46b1f5],_0x2f1cf8[_0x3910e4(0x117)+_0x3910e4(0x106)]=_0x54ea5e,_0x2f1cf8;}const _0x34afc5=0x7a120,_0x1efab8=(_0x44ff61,_0x2030ec)=>{const _0x32e539=_0x3910e4;if(_0x44ff61['length']<=_0x2030ec)return _0x44ff61;return _0x44ff61[_0x32e539(0xfa)](0x0,_0x2030ec)+(_0x32e539(0x170)+_0x32e539(0x1bf)+_0x2030ec+_0x32e539(0x19b)+_0x44ff61['length']+(_0x32e539(0x195)+'s)'));},_0x1b051c=_0x4537b4[_0x3910e4(0xe2)+'ities'][_0x3910e4(0x132)]((_0x351745,_0x8cbdd8)=>{const _0x9535d2=_0x3910e4,_0x56731a=_0x351745[_0x9535d2(0xe1)+'o']?.[_0x9535d2(0x176)]||_0x351745[_0x9535d2(0x1b0)],_0x3e1922=_0x351745[_0x9535d2(0xe1)+'o']?.[_0x9535d2(0x1ac)+'n']||_0x351745['descriptio'+'n'],_0x4b8467=_0x351745[_0x9535d2(0xe1)+'o']?.[_0x9535d2(0x175)]&&_0x351745[_0x9535d2(0xe1)+'o'][_0x9535d2(0x175)]['length']>0x0?'\x0a\x20\x20\x20-\x20컴플라이'+_0x9535d2(0x152)+_0x351745[_0x9535d2(0xe1)+'o'][_0x9535d2(0x175)][_0x9535d2(0x132)](_0x59786d=>''+_0x59786d['reference'][_0x9535d2(0x176)]+(_0x59786d[_0x9535d2(0xf5)]['version']?'\x20('+_0x59786d['reference'][_0x9535d2(0x136)]+')':''))['join'](',\x20'):'';return _0x8cbdd8+0x1+_0x9535d2(0x109)+_0x351745[_0x9535d2(0x1c1)]+_0x9535d2(0x126)+_0x56731a+_0x9535d2(0xfb)+_0x351745[_0x9535d2(0x1b0)]+(_0x9535d2(0x1ae)+'\x20')+_0x3e1922+(_0x351745[_0x9535d2(0x147)]?_0x9535d2(0x141)+_0x351745[_0x9535d2(0x147)]+(_0x351745[_0x9535d2(0x103)]?':'+_0x351745[_0x9535d2(0x103)]:''):'')+_0x4b8467;})[_0x3910e4(0x120)]('\x0a\x0a'),_0x4fe3f0=(_0x3910e4(0x159)+_0x3910e4(0x1fe)+'\x20Results\x0a\x0a'+_0x3910e4(0x1c3)+_0x3910e4(0x1ba)+_0x3910e4(0x127)+'s\x20ID:\x20'+_0x4537b4[_0x3910e4(0x1ec)]+(_0x3910e4(0xf3)+'\x20')+_0x310def+(_0x3910e4(0x172)+'\x20')+(_0x4537b4[_0x3910e4(0x14f)]||_0x3910e4(0xcb))+(_0x3910e4(0x140)+'bilities\x20F'+_0x3910e4(0x1a4))+_0x4537b4[_0x3910e4(0xe2)+'ities'][_0x3910e4(0x129)]+('\x0a\x0a##\x20Analy'+_0x3910e4(0x12e)+_0x3910e4(0x13b))+_0x8c459e[_0x3910e4(0x184)](_0x1efab8,_0x4537b4[_0x3910e4(0xf2)+'ief']||'',_0x34afc5)+(_0x3910e4(0x1ca)+_0x3910e4(0x114)+_0x3910e4(0x202)+'s\x0a')+_0x1efab8(_0x1b051c,_0x34afc5)+_0x3910e4(0x1a2))[_0x3910e4(0x189)](),_0x5d92cf={'analysisId':_0x4537b4['analysisId'],'status':_0x310def,'result':_0x4537b4[_0x3910e4(0x14f)],'vulnerabilities':_0x4537b4['vulnerabil'+_0x3910e4(0x123)],'analysisBrief':_0x4537b4[_0x3910e4(0xf2)+_0x3910e4(0x1e0)]?_0x1efab8(_0x4537b4['analysisBr'+_0x3910e4(0x1e0)],_0x34afc5):''},_0x4ee509={};_0x4ee509[_0x3910e4(0x12b)]='text',_0x4ee509['text']=_0x4fe3f0;const _0x2841e9={};return _0x2841e9[_0x3910e4(0x14b)]=[_0x4ee509],_0x2841e9['structured'+'Content']=_0x5d92cf,_0x2841e9;}catch(_0x5bdbf4){logger[_0x3910e4(0x169)]('Failed\x20to\x20'+'get\x20analys'+'is\x20results'+':',_0x5bdbf4);const _0xc3a00d=_0x8c459e[_0x3910e4(0x1db)](_0x5bdbf4,Error)?_0x5bdbf4[_0x3910e4(0x1e8)]:_0x3910e4(0xdf)+_0x3910e4(0x143),_0x24ab26={};_0x24ab26[_0x3910e4(0x12b)]=_0x8c459e[_0x3910e4(0x1cf)],_0x24ab26['text']='Failed\x20to\x20'+'get\x20analys'+'is\x20results'+':\x20'+_0xc3a00d;const _0x3d5b4b={};_0x3d5b4b[_0x3910e4(0x169)]=_0xc3a00d;const _0x1d7776={};return _0x1d7776[_0x3910e4(0x14b)]=[_0x24ab26],_0x1d7776['structured'+'Content']=_0x3d5b4b,_0x1d7776[_0x3910e4(0x161)]=!![],_0x1d7776;}}async[a7_0x383507(0x1d4)+a7_0x383507(0x1e9)+'s']({analysisId:_0x2a490d}){const _0xb885a0=a7_0x383507,_0x411f84={};_0x411f84[_0xb885a0(0x1bb)]='Unknown\x20er'+'ror';const _0x227920=_0x411f84;try{logger[_0xb885a0(0x14e)]('SCA\x20analys'+_0xb885a0(0x1aa)+_0xb885a0(0x14a)+':\x20'+_0x2a490d);const _0xbc3be5=await this[_0xb885a0(0x1da)+_0xb885a0(0x12c)][_0xb885a0(0x1d4)+'ysisResult'+'s'](_0x2a490d),_0x435be8=_0xbc3be5[_0xb885a0(0x14f)]??_0xbc3be5[_0xb885a0(0x139)],_0x3a6304=_0xb885a0(0x1a1)+_0xb885a0(0xda)+_0xb885a0(0x122)+'e\x20|\x20Vulner'+_0xb885a0(0x1ce)+'(C/H/M/L/T'+_0xb885a0(0x146)+'------|---'+_0xb885a0(0xee)+_0xb885a0(0xee)+_0xb885a0(0x165)+_0xb885a0(0x165)+_0xb885a0(0x180),_0x1953e6=_0xbc3be5['components'][_0xb885a0(0x132)](_0x55bca7=>{const _0x33a9f2=_0xb885a0,_0x4cbfbd=_0x55bca7[_0x33a9f2(0xea)][_0x33a9f2(0x129)]>0x0?_0x55bca7['licenses'][_0x33a9f2(0x132)](_0x33726e=>_0x33726e[_0x33a9f2(0x176)])[_0x33a9f2(0x120)](',\x20'):_0x33a9f2(0x102),_0xbcb107=_0x55bca7[_0x33a9f2(0x1ed)][_0x33a9f2(0x12f)](_0x59da5=>_0x59da5['severity']==='CRITICAL')[_0x33a9f2(0x129)],_0x285a23=_0x55bca7['issues'][_0x33a9f2(0x12f)](_0x53e2ea=>_0x53e2ea[_0x33a9f2(0x1c1)]==='HIGH')[_0x33a9f2(0x129)],_0x504d2f=_0x55bca7[_0x33a9f2(0x1ed)][_0x33a9f2(0x12f)](_0x422c26=>_0x422c26[_0x33a9f2(0x1c1)]===_0x33a9f2(0xfe))['length'],_0x86c47f=_0x55bca7[_0x33a9f2(0x1ed)]['filter'](_0xc65e45=>_0xc65e45[_0x33a9f2(0x1c1)]===_0x33a9f2(0x178))['length'],_0x1a0bd7=_0x55bca7[_0x33a9f2(0x1ed)]['filter'](_0x467885=>_0x467885[_0x33a9f2(0x1c1)]===_0x33a9f2(0xce))[_0x33a9f2(0x129)],_0x49e5c2=_0xbcb107+_0x285a23+_0x504d2f+_0x86c47f+_0x1a0bd7+'\x20('+_0xbcb107+'/'+_0x285a23+'/'+_0x504d2f+'/'+_0x86c47f+'/'+_0x1a0bd7+')';return'|\x20'+_0x55bca7['name']+_0x33a9f2(0x134)+_0x55bca7[_0x33a9f2(0x136)]+_0x33a9f2(0x134)+_0x4cbfbd+'\x20|\x20'+_0x49e5c2+'\x20|';})[_0xb885a0(0x120)]('\x0a'),_0x128ac5=_0xbc3be5[_0xb885a0(0x10d)]['length']>0x0?_0x3a6304+'\x0a'+_0x1953e6:_0xb885a0(0xec)+_0xb885a0(0x133)+_0xb885a0(0xd1),_0x5348a4=_0xbc3be5['components'][_0xb885a0(0x12f)](_0x29b021=>_0x29b021[_0xb885a0(0x1ed)][_0xb885a0(0x129)]>0x0)[_0xb885a0(0x132)](_0x517ffa=>{const _0x47ebf4=_0xb885a0,_0x213844=_0x517ffa[_0x47ebf4(0x1ed)][_0x47ebf4(0x132)]((_0x11d19d,_0x8fcf24)=>{const _0x295140=_0x47ebf4;let _0x4fdba7=_0x295140(0x1ab)+(_0x8fcf24+0x1)+_0x295140(0x109)+_0x11d19d[_0x295140(0x1c1)]+_0x295140(0x126)+_0x11d19d[_0x295140(0x1a0)]+'**';if(_0x11d19d[_0x295140(0x1de)])_0x4fdba7+=_0x295140(0x1ee)+_0x11d19d[_0x295140(0x1de)]+')';if(_0x11d19d[_0x295140(0x1ac)+'n'])_0x4fdba7+=_0x295140(0xd8)+_0x11d19d[_0x295140(0x1ac)+'n'];if(_0x11d19d['fixedVersi'+'on'])_0x4fdba7+=_0x295140(0xf6)+'ixed\x20in:\x20'+_0x11d19d[_0x295140(0x181)+'on'];return _0x4fdba7;})['join']('\x0a');return _0x47ebf4(0x144)+_0x517ffa[_0x47ebf4(0x176)]+'@'+_0x517ffa[_0x47ebf4(0x136)]+'\x0a'+_0x213844;})[_0xb885a0(0x120)]('\x0a\x0a'),_0x145da0=_0xbc3be5[_0xb885a0(0x10d)][_0xb885a0(0x12f)](_0x25011d=>_0x25011d[_0xb885a0(0x1ed)][_0xb885a0(0x1b7)](_0x190468=>_0x190468['severity']==='CRITICAL'||_0x190468[_0xb885a0(0x1c1)]===_0xb885a0(0xcf)))[_0xb885a0(0x132)](_0x3919b6=>{const _0x37a8ae=_0xb885a0,_0x2145db=_0x3919b6[_0x37a8ae(0x1ed)][_0x37a8ae(0x11e)](_0x50f373=>_0x50f373['severity']===_0x37a8ae(0x119)||_0x50f373[_0x37a8ae(0x1c1)]==='HIGH'),_0x383bc6=_0x2145db?.['fixedVersi'+'on']||_0x37a8ae(0xf4);return _0x37a8ae(0x1fc)+_0x3919b6['name']+(_0x37a8ae(0x188)+'\x20from\x20`')+_0x3919b6[_0x37a8ae(0x136)]+'`\x20to\x20`'+_0x383bc6+'`';})['join']('\x0a'),_0x5bf36d=(_0xb885a0(0x1e1)+'lysis\x20Repo'+_0xb885a0(0x156)+_0xb885a0(0x1cd)+_0xb885a0(0x157)+'e\x20|\x0a|-----'+_0xb885a0(0x17b)+'-|\x0a|\x20Analy'+_0xb885a0(0x15e)+_0xbc3be5[_0xb885a0(0x1ec)]+(_0xb885a0(0x166)+_0xb885a0(0x138))+_0x435be8+(_0xb885a0(0x17a)+_0xb885a0(0x153))+_0xbc3be5['components'][_0xb885a0(0x129)]+(_0xb885a0(0x193)+_0xb885a0(0x164)+_0xb885a0(0xf8))+_0xbc3be5['totalVulne'+_0xb885a0(0x113)]+('\x20|\x0a|\x20Criti'+_0xb885a0(0x1a9))+_0xbc3be5[_0xb885a0(0x1f3)+_0xb885a0(0x183)]+(_0xb885a0(0x1cb)+'|\x20')+_0xbc3be5[_0xb885a0(0x111)]+(_0xb885a0(0x116)+_0xb885a0(0xdc))+_0xbc3be5[_0xb885a0(0x1b9)+'t']+(_0xb885a0(0x1c8)+'Low\x20|\x20')+_0xbc3be5[_0xb885a0(0x163)]+(_0xb885a0(0x1dc)+_0xb885a0(0x1b3))+(_0xbc3be5[_0xb885a0(0x1d9)+'nt']||0x0)+(_0xb885a0(0x1e4)+_0xb885a0(0x130)+_0xb885a0(0x1e7))+_0xbc3be5[_0xb885a0(0xf2)+_0xb885a0(0x1e0)]+(_0xb885a0(0xed)+_0xb885a0(0x158)+_0xb885a0(0x12d))+_0x128ac5+('\x0a\x0a##\x20Vulne'+_0xb885a0(0x18d)+_0xb885a0(0x16b))+(_0x5348a4||_0xb885a0(0x148)+_0xb885a0(0x203)+_0xb885a0(0x100))+('\x0a\x0a##\x20Remed'+'iation\x20Gui'+_0xb885a0(0x171))+(_0x145da0||_0xb885a0(0xe5)+'l/high\x20sev'+_0xb885a0(0x1b5)+'es\x20requiri'+_0xb885a0(0xd7)+_0xb885a0(0x13c))+_0xb885a0(0x1a2))[_0xb885a0(0x189)](),_0x456176={};_0x456176['analysisId']=_0xbc3be5[_0xb885a0(0x1ec)],_0x456176[_0xb885a0(0x139)]=_0x435be8,_0x456176[_0xb885a0(0x14f)]=_0xbc3be5[_0xb885a0(0x14f)],_0x456176[_0xb885a0(0x10d)]=_0xbc3be5['components'],_0x456176[_0xb885a0(0x1d2)+_0xb885a0(0x113)]=_0xbc3be5[_0xb885a0(0x1d2)+'rabilities'],_0x456176['criticalCo'+'unt']=_0xbc3be5['criticalCo'+'unt'],_0x456176[_0xb885a0(0x111)]=_0xbc3be5['highCount'],_0x456176[_0xb885a0(0x1b9)+'t']=_0xbc3be5[_0xb885a0(0x1b9)+'t'],_0x456176[_0xb885a0(0x163)]=_0xbc3be5['lowCount'],_0x456176[_0xb885a0(0xf2)+_0xb885a0(0x1e0)]=_0xbc3be5[_0xb885a0(0xf2)+_0xb885a0(0x1e0)];const _0x9629e4=_0x456176,_0x4a2d69={};_0x4a2d69[_0xb885a0(0x12b)]=_0xb885a0(0x10f),_0x4a2d69[_0xb885a0(0x10f)]=_0x5bf36d;const _0xfb07c1={};return _0xfb07c1[_0xb885a0(0x14b)]=[_0x4a2d69],_0xfb07c1[_0xb885a0(0x117)+_0xb885a0(0x106)]=_0x9629e4,_0xfb07c1;}catch(_0x5e9ea0){logger[_0xb885a0(0x169)](_0xb885a0(0xfc)+'get\x20SCA\x20an'+_0xb885a0(0x149)+_0xb885a0(0x19e),_0x5e9ea0);const _0x135f8a=_0x5e9ea0 instanceof Error?_0x5e9ea0['message']:_0x227920[_0xb885a0(0x1bb)],_0x5cb54a={};_0x5cb54a['type']=_0xb885a0(0x10f),_0x5cb54a[_0xb885a0(0x10f)]='Failed\x20to\x20'+_0xb885a0(0x15d)+_0xb885a0(0x149)+_0xb885a0(0x110)+_0x135f8a;const _0x390bed={};_0x390bed[_0xb885a0(0x169)]=_0x135f8a;const _0x5a3708={};return _0x5a3708['content']=[_0x5cb54a],_0x5a3708[_0xb885a0(0x117)+_0xb885a0(0x106)]=_0x390bed,_0x5a3708[_0xb885a0(0x161)]=!![],_0x5a3708;}}async[a7_0x383507(0x18f)+a7_0x383507(0x16a)+'s']({analysisId:_0x52b8a1,intervalMs:intervalMs=0xbb8,maxWaitMs:maxWaitMs=0x7530},_0x223535){const _0x26f092=a7_0x383507,_0xddf1d3={};_0xddf1d3['bJLbV']=function(_0x5b3a28,_0x1f29ce){return _0x5b3a28 instanceof _0x1f29ce;},_0xddf1d3['qFEzJ']=_0x26f092(0x185),_0xddf1d3['GkdZJ']=_0x26f092(0x14d)+_0x26f092(0x1d8)+'completed.',_0xddf1d3['mEjFZ']=function(_0x4e7384,_0x5dccc0){return _0x4e7384===_0x5dccc0;},_0xddf1d3[_0x26f092(0x19d)]=_0x26f092(0x16c),_0xddf1d3[_0x26f092(0x1f1)]=function(_0x203809,_0x12f83a){return _0x203809!==_0x12f83a;},_0xddf1d3['VAatK']=_0x26f092(0x10f),_0xddf1d3[_0x26f092(0x15f)]=_0x26f092(0x1f9)+_0x26f092(0x15c)+_0x26f092(0x1bd)+_0x26f092(0x201);const _0x128e85=_0xddf1d3;try{const _0x424fb7=_0x223535[_0x26f092(0x1f4)]?.[_0x26f092(0x13e)+_0x26f092(0x15a)];if(!_0x424fb7){const _0x377a11={};_0x377a11[_0x26f092(0x12b)]=_0x26f092(0x10f),_0x377a11[_0x26f092(0x10f)]=_0x26f092(0x10e)+_0x26f092(0x115)+_0x26f092(0xe6)+'he\x20client\x20'+_0x26f092(0xeb)+'rt\x20progres'+'s\x20tracking'+'.';const _0x257dee={};_0x257dee[_0x26f092(0x169)]=_0x26f092(0x10e)+_0x26f092(0x115)+'rovided';const _0x435e60={};return _0x435e60[_0x26f092(0x14b)]=[_0x377a11],_0x435e60[_0x26f092(0x117)+_0x26f092(0x106)]=_0x257dee,_0x435e60;}logger[_0x26f092(0x14e)]('Analysis\x20p'+_0x26f092(0x15c)+'acking\x20sta'+'rted:\x20'+_0x52b8a1);const _0x112718=ANALYSIS_STAGES;let _0x30856d=Object[_0x26f092(0x11c)](_0x112718)[_0x26f092(0x129)],_0x3fe983=null,_0x1b3127=0x0,_0x209ed6=!![];const _0x4446b5=Date[_0x26f092(0xff)](),_0x69c5a2=async _0x47fe41=>{const _0x4bc4cb=_0x26f092;if(!_0x209ed6)return![];try{return await _0x223535[_0x4bc4cb(0x11a)+_0x4bc4cb(0xf0)](_0x47fe41),!![];}catch(_0x2604d9){const _0x5692bf=_0x128e85[_0x4bc4cb(0x11b)](_0x2604d9,Error)?_0x2604d9['message']:_0x4bc4cb(0xdf)+_0x4bc4cb(0x143);return _0x5692bf[_0x4bc4cb(0x199)](_0x4bc4cb(0x137)+_0x4bc4cb(0x15a))||_0x5692bf[_0x4bc4cb(0x199)](_0x4bc4cb(0x177)+_0x4bc4cb(0x15a))||_0x5692bf['includes'](_0x4bc4cb(0x190)+_0x4bc4cb(0x15a))||_0x5692bf[_0x4bc4cb(0x1af)+'e']()[_0x4bc4cb(0x199)](_0x4bc4cb(0x105))?(_0x209ed6=![],logger[_0x4bc4cb(0x1b4)](_0x4bc4cb(0x125)+_0x4bc4cb(0x1d6)+'\x20longer\x20va'+_0x4bc4cb(0x1a6)+_0x4bc4cb(0x18a)+_0x4bc4cb(0x198)+_0x4bc4cb(0x1dd)+_0x5692bf)):logger[_0x4bc4cb(0x1b4)](_0x4bc4cb(0x11d)+_0x4bc4cb(0xcd)+'n\x20failed\x20('+_0x4bc4cb(0x154)+_0x4bc4cb(0x1b1)+_0x5692bf),![];}};while(!![]){try{const _0x23259b=await this[_0x26f092(0x1da)+_0x26f092(0x12c)][_0x26f092(0x13f)+_0x26f092(0xf9)](_0x52b8a1),_0x48f98c=String(_0x23259b[_0x26f092(0x139)])['toUpperCas'+'e'](),_0x1cb108=String(_0x23259b['status'])['toUpperCas'+'e'](),_0xab68a7=_0x1cb108==='COMPLETE'&&_0x23259b[_0x26f092(0x14f)]?String(_0x23259b['result'])[_0x26f092(0x16f)+'e']():_0x48f98c;if(_0x3fe983!==_0x48f98c){_0x3fe983=_0x48f98c;if(_0x1cb108===_0x26f092(0x16c)||_0x48f98c===_0x26f092(0x1e6)||_0x48f98c===_0x128e85['qFEzJ']){let _0x438f6e,_0x18db55;if(_0x1cb108==='COMPLETE'){const _0x115382=_0x23259b['result']?String(_0x23259b[_0x26f092(0x14f)])['toUpperCas'+'e']():undefined;_0x18db55=_0x115382||_0x26f092(0x16c);if(_0x115382==='SUCCESS')_0x438f6e=_0x26f092(0x160)+_0x26f092(0xe4)+'ompleted\x20s'+_0x26f092(0x196)+'y.';else{if(_0x115382===_0x26f092(0x1e6))_0x438f6e=_0x26f092(0x1a5)+_0x26f092(0x18e)+_0x26f092(0x187)+_0x26f092(0xf1)+_0x26f092(0xd6);else _0x115382===_0x26f092(0x1a7)?_0x438f6e=_0x26f092(0x1ad)+'lysis\x20was\x20'+_0x26f092(0x128)+_0x26f092(0xe7):(_0x438f6e=_0x128e85[_0x26f092(0x142)],_0x18db55=_0x26f092(0x16c));}}else _0x438f6e='['+_0x48f98c+(_0x26f092(0x121)+_0x26f092(0x1b6)),_0x18db55=_0x48f98c;const _0x59401a={'method':_0x26f092(0xd5)+_0x26f092(0x12a)+'ss','params':{'progressToken':_0x128e85[_0x26f092(0x1a8)](typeof _0x424fb7,_0x26f092(0x151))?_0x424fb7:String(_0x424fb7),'progress':_0x48f98c===_0x26f092(0x16c)?0x64:0x0,'message':_0x438f6e,'total':0x64}};await _0x69c5a2(_0x59401a);_0x1cb108===_0x128e85['NFkOV']?logger[_0x26f092(0x14e)](_0x26f092(0xe3)+_0x26f092(0x182)+_0x26f092(0x194)+'\x20'+_0x18db55):logger[_0x26f092(0x14e)]('Analysis\x20f'+'ailed\x20with'+_0x26f092(0x1be)+_0x18db55);const _0x537886={};_0x537886[_0x26f092(0x12b)]=_0x26f092(0x10f),_0x537886[_0x26f092(0x10f)]='Analysis\x20c'+'ompleted.\x0a'+_0x26f092(0x1f8)+_0x26f092(0x1ff)+_0x52b8a1+(_0x26f092(0x1d5)+_0x26f092(0x1c2))+_0x18db55;const _0x2f595b={};_0x2f595b[_0x26f092(0x1ec)]=_0x52b8a1,_0x2f595b['status']=_0x18db55,_0x2f595b[_0x26f092(0x14f)]=_0x23259b[_0x26f092(0x14f)],_0x2f595b[_0x26f092(0xdb)]=!![];const _0x1366f1={};return _0x1366f1[_0x26f092(0x14b)]=[_0x537886],_0x1366f1[_0x26f092(0x117)+_0x26f092(0x106)]=_0x2f595b,_0x1366f1;}const _0x24fcdb=_0x112718[_0x48f98c];if(_0x24fcdb){const _0x343e83={};_0x343e83[_0x26f092(0x17c)]=0x64;const _0x407f6d={'method':_0x26f092(0xd5)+_0x26f092(0x12a)+'ss','params':{'progressToken':typeof _0x424fb7==='string'?_0x424fb7:String(_0x424fb7),'progress':_0x24fcdb[_0x26f092(0xdd)]!==null?_0x24fcdb[_0x26f092(0xdd)]:_0x48f98c===_0x26f092(0x16d)?_0x1b3127:_0x24fcdb[_0x26f092(0x155)],'message':'['+_0x24fcdb['id']+']\x20'+_0x24fcdb[_0x26f092(0x1ac)+'n'],'total':_0x30856d,..._0x24fcdb[_0x26f092(0xdd)]!==null&&_0x48f98c===_0x26f092(0x16d)&&_0x343e83}};await _0x69c5a2(_0x407f6d),_0x209ed6&&logger[_0x26f092(0x14e)]('Analysis\x20s'+_0x26f092(0x1df)+_0x26f092(0x1fa)+_0x24fcdb['id']+'\x20('+_0x24fcdb[_0x26f092(0x176)]+')');}else{const _0x38876e={'method':_0x26f092(0xd5)+_0x26f092(0x12a)+'ss','params':{'progressToken':typeof _0x424fb7===_0x26f092(0x151)?_0x424fb7:String(_0x424fb7),'progress':0x1,'total':0x1,'message':'['+_0x48f98c+(_0x26f092(0x121)+_0x26f092(0x1d7)+'ss...')}};await _0x69c5a2(_0x38876e);}}else{if(_0x48f98c===_0x26f092(0x16d)){if(_0x128e85['FKBoz'](_0x23259b[_0x26f092(0xdd)],undefined)&&_0x23259b[_0x26f092(0xdd)]!==null){_0x1b3127=_0x23259b[_0x26f092(0xdd)];const _0x121fdb=_0x112718[_0x48f98c],_0x378b34={'method':_0x26f092(0xd5)+'ons/progre'+'ss','params':{'progressToken':typeof _0x424fb7===_0x26f092(0x151)?_0x424fb7:String(_0x424fb7),'progress':_0x121fdb[_0x26f092(0x155)],'total':_0x30856d,'message':_0x26f092(0xe0)+_0x26f092(0x1d8)+_0x26f092(0x167)+_0x26f092(0x1f2)+_0x1b3127+'%'}};await _0x69c5a2(_0x378b34);}}}!_0x209ed6&&logger[_0x26f092(0x14e)](_0x26f092(0x125)+'oken\x20is\x20in'+_0x26f092(0x1eb)+_0x26f092(0x200)+_0x26f092(0x1c5)+_0x26f092(0x107)+_0x26f092(0xd5)+_0x26f092(0x1fd));await new Promise(_0x166c5a=>setTimeout(_0x166c5a,intervalMs));const _0x4976bd=Date[_0x26f092(0xff)]()-_0x4446b5;if(_0x4976bd>=maxWaitMs){logger['info'](_0x26f092(0x1f9)+'rogress\x20tr'+'acking\x20rea'+_0x26f092(0x10c)+_0x26f092(0x118)+maxWaitMs+_0x26f092(0x1a3)+_0x52b8a1);const _0x3d6a6c={'method':_0x26f092(0xd5)+_0x26f092(0x12a)+'ss','params':{'progressToken':typeof _0x424fb7===_0x26f092(0x151)?_0x424fb7:String(_0x424fb7),'progress':_0x1b3127||0x1,'total':0x64,'message':'['+(_0x3fe983||_0x26f092(0x16e)+'S')+(_0x26f092(0xe9)+_0x26f092(0x173)+_0x26f092(0x10a))+Math[_0x26f092(0x14c)](_0x4976bd/0x3e8)+(_0x26f092(0x1f0)+'s\x20is\x20still'+_0x26f092(0x1d7)+_0x26f092(0xde))}};return await _0x69c5a2(_0x3d6a6c),{'content':[{'type':_0x128e85['VAatK'],'text':'Analysis\x20i'+'s\x20still\x20in'+'\x20progress\x20'+_0x26f092(0x13d)+_0x3fe983+(_0x26f092(0xd9)+_0x26f092(0x11f)+_0x26f092(0xcc))+Math[_0x26f092(0x14c)](_0x4976bd/0x3e8)+(_0x26f092(0x1fb)+_0x26f092(0x17d)+_0x26f092(0x101)+_0x26f092(0x1d3)+_0x26f092(0x18c)+_0x26f092(0x1f7)+_0x26f092(0xe8)+_0x26f092(0xd4))}],'structuredContent':{'analysisId':_0x52b8a1,'status':_0x3fe983,'completed':![],'elapsedMs':_0x4976bd}};}}catch(_0x5f013a){logger['error']('Error\x20chec'+_0x26f092(0x19c)+_0x26f092(0x179)+'\x20('+_0x52b8a1+'):',_0x5f013a),await new Promise(_0x567409=>setTimeout(_0x567409,intervalMs));}}}catch(_0x14d652){logger[_0x26f092(0x169)](_0x128e85[_0x26f092(0x15f)],_0x14d652);const _0x331607={};return _0x331607[_0x26f092(0x12b)]=_0x26f092(0x10f),_0x331607[_0x26f092(0x10f)]='Analysis\x20p'+_0x26f092(0x15c)+_0x26f092(0x1bd)+_0x26f092(0xfd)+(_0x14d652 instanceof Error?_0x14d652[_0x26f092(0x1e8)]:_0x26f092(0xdf)+_0x26f092(0x143)),{'content':[_0x331607],'structuredContent':{'error':_0x128e85[_0x26f092(0x11b)](_0x14d652,Error)?_0x14d652[_0x26f092(0x1e8)]:'Unknown\x20er'+_0x26f092(0x143)},'isError':!![]};}}}function a7_0x24ff(){const _0x139480=['lete\x20prope','analysisBr','\x0a-\x20Status:','latest','reference','\x0a\x20\x20\x20\x20\x20\x20-\x20F','SCA','lities\x20|\x20','sStatus','substring','**\x20(','Failed\x20to\x20','led:\x20','MEDIUM','now','ound.','_analysis_','Unknown','lineNumber','toolType','token','Content','s\x20without\x20','490030tEHGVG','.\x20[','ter\x20','\x0a|\x20Metric\x20','ched\x20maxWa','components','Progress\x20T','text','ults:\x20','highCount','\x0a\x0a##\x20Vulne','rabilities','vered\x20Vuln','oken\x20not\x20p','\x20|\x0a|\x20Mediu','structured','itMs\x20(','CRITICAL','sendNotifi','bJLbV','keys','Progress\x20n','find','g\x20paused\x20a','join',']\x20Analysis','n\x20|\x20Licens','ities','36NDndMx','Progress\x20t',']\x20**','\x0a-\x20Analysi','stopped\x20by','length','ons/progre','type','rvice','ls\x0a','sis\x20Briefi','filter','lysis\x20Brie','Analysis\x20r','map','nts\x20identi','\x20|\x20','Analysis\x20S','version','unknown\x20to','s\x20|\x20','status','k\x20failed:','ng\x0a','te\x20action.','(Status:\x20','progressTo','getAnalysi','\x0a-\x20Vulnera','\x0a\x20\x20\x20-\x20파일:\x20','GkdZJ','ror','###\x20','get\x20analys',')\x20|\x0a|-----','filePath','No\x20vulnera','alysis\x20res','\x20requested','content','round','[COMPLETE]','info','result','EamsT','string','언스:\x20','nents\x20|\x20','will\x20retry','order','rt\x0a\x0a##\x20Sum','ric\x20|\x20Valu','nent\x20Detai','\x0a#\x20Securit','ken','apply','rogress\x20tr','get\x20SCA\x20an','sis\x20ID\x20|\x20','NuVeq','[SUCCESS]\x20','isError','\x20|\x0a|\x20Low\x20|','lowCount','\x20Vulnerabi','----------','\x20|\x0a|\x20Statu','in\x20progres','|\x0a|-------','error','sisProgres','etails\x0a','COMPLETE','ANALYSIS','IN_PROGRES','toUpperCas','\x0a\x0a...\x20(Sho','de\x0a','\x0a-\x20Result:','\x20paused\x20af','ested:\x20','compliance','name','invalid\x20to','LOW','sis\x20status','\x20|\x0a|\x20Compo','---|------','total','call\x20track','(C/H/M/L)\x20','rt\x20(Auto-D','------|','fixedVersi','ysis\x20statu','unt','ZjrXy','FAILED','tatus\x20chec','ed\x20to\x20comp','**:\x20Update','trim','ing\x20progre','|--------|','gain\x20to\x20co','rability\x20D','lysis\x20fail','trackAnaly','expired\x20to','ID\x20|\x20','98666WOhlmW','\x20|\x0a|\x20Total','s\x20updated:','\x20character','uccessfull','tatus:\x20','ss\x20notific','includes','Zwrnw','\x20of\x20','king\x20analy','NFkOV','ults:','search','cveId','|\x20Componen','\x0a\x20\x20\x20\x20\x20\x20','ms):\x20','ound:\x20','[FAIL]\x20Ana','lid,\x20stopp','STOP','mEjFZ','cal\x20|\x20','is\x20results','\x20\x20\x20','descriptio','[STOP]\x20Ana',')\x0a\x20\x20\x20-\x20설명:','toLowerCas','checkerKey','):\x20','%\x0aMessage:','Trivial\x20|\x20','warn','erity\x20issu','\x20failed.','some','sResults','mediumCoun','s\x20Overview','gspdc','ixed\x20in:\x20','acking\x20fai','\x20status:\x20','wing\x20','Analysis\x20s','severity','tus:\x20','##\x20Analysi','--|','atus\x20check','7475508mvQxEz','\x0aProgress:','\x20|\x0a265:\x20|\x20','1734OFvfYK','\x0a\x0a##\x20Disco','\x20|\x0a|\x20High\x20','WKXmT','mary\x0a|\x20Met','abilities\x20','UQfFG','10754674UoPSRp','is\x20status:','totalVulne','progress\x20a','getScaAnal','\x0aFinal\x20Sta','oken\x20is\x20no','\x20in\x20progre','\x20Analysis\x20','trivialCou','analysisSe','gbcqB','\x20|\x0a266:\x20|\x20','ations:\x20','cvssScore','tatus\x20upda','ief','\x0a#\x20SCA\x20Ana','3801696TOeKXl','constructo','\x20|\x0a\x0a##\x20Ana','9vWaHXb','FAIL','fing\x0a','message','ysisResult','##\x20Summary','valid,\x20con','analysisId','issues','\x20(CVSS:\x20','8975LhgUTT','s.\x20Analysi','FKBoz','s:\x20','criticalCo','_meta','----|-----','(((.+)+)+)','ntinue\x20mon','Analysis\x20I','Analysis\x20p','ted:\x20','s.\x0aPlease\x20','-\x20**','ons','y\x20Analysis','D:\x20','tinuing\x20st','led:','erabilitie','bilities\x20f','N/A','fter\x20','otificatio','TRIVIAL','HIGH','926565mYLaYd','fied.','\x20|\x0a|\x20Criti','esults\x20req','\x20needed.','notificati','rly.','ng\x20immedia','\x0a\x20\x20\x20\x20\x20\x20-\x20',').\x0aTrackin','t\x20|\x20Versio','completed','m\x20|\x20','progress','ss.','Unknown\x20er','[ANALYSIS]','checkerInf','vulnerabil','Final\x20anal','Analysis\x20c','No\x20critica','rovided.\x20T','\x20request.','itoring\x20if',']\x20Tracking','licenses','must\x20suppo','No\x20compone','\x0a\x0a##\x20Compo','------|---','toString','cation'];a7_0x24ff=function(){return _0x139480;};return a7_0x24ff();}
@@ -1 +1 @@
1
- function a8_0x3d60(_0x108399,_0x451450){_0x108399=_0x108399-0x1e4;const _0xfde57d=a8_0x4f36();let _0x51b4ac=_0xfde57d[_0x108399];return _0x51b4ac;}const a8_0x15c751=a8_0x3d60;(function(_0x2f25d6,_0x4cee74){const _0x24e382=a8_0x3d60,_0x25ea5d=_0x2f25d6();while(!![]){try{const _0x506cae=parseInt(_0x24e382(0x203))/0x1*(parseInt(_0x24e382(0x255))/0x2)+-parseInt(_0x24e382(0x216))/0x3*(-parseInt(_0x24e382(0x219))/0x4)+-parseInt(_0x24e382(0x22f))/0x5+parseInt(_0x24e382(0x24a))/0x6+-parseInt(_0x24e382(0x1fc))/0x7*(parseInt(_0x24e382(0x21b))/0x8)+parseInt(_0x24e382(0x236))/0x9*(parseInt(_0x24e382(0x22b))/0xa)+parseInt(_0x24e382(0x1f9))/0xb*(parseInt(_0x24e382(0x256))/0xc);if(_0x506cae===_0x4cee74)break;else _0x25ea5d['push'](_0x25ea5d['shift']());}catch(_0x27dce5){_0x25ea5d['push'](_0x25ea5d['shift']());}}}(a8_0x4f36,0xe5e86));const a8_0x271832=(function(){let _0x303ce6=!![];return function(_0x1d0832,_0x52dc72){const _0x29e4cc=_0x303ce6?function(){const _0x24e351=a8_0x3d60;if(_0x52dc72){const _0x19d3a0=_0x52dc72[_0x24e351(0x248)](_0x1d0832,arguments);return _0x52dc72=null,_0x19d3a0;}}:function(){};return _0x303ce6=![],_0x29e4cc;};}()),a8_0x51b4ac=a8_0x271832(this,function(){const _0x11a0c9=a8_0x3d60;return a8_0x51b4ac['toString']()[_0x11a0c9(0x249)](_0x11a0c9(0x254)+'+$')[_0x11a0c9(0x1e5)]()[_0x11a0c9(0x205)+'r'](a8_0x51b4ac)[_0x11a0c9(0x249)](_0x11a0c9(0x254)+'+$');});a8_0x51b4ac();import{logger}from'../utils/logger.js';function a8_0x4f36(){const _0x2d453d=['type','unt','length','Content','o\x20analyze.','skippedFol','\x0aAnalysis\x20','DwCMG','Unknown\x20er','apply','search','10282950hAapWS','folderPath','peuGE','analyzeFol','파일\x20확장자가\x20없습','\x20file\x20path','rvice','at\x20least\x20o','ity\x20analys','aths\x20array','(((.+)+)+)','2jkQlcC','576SlNQTR','quest\x20fail','toString','s\x20started.','analyzeZip','ded','ided.','FromPaths','Multi-file','join','Empty\x20file','ath\x20not\x20pr','Folder\x20pat','rts\x20files\x20','\x20content\x20-','eSast','ne\x20file\x20pa','content','No\x20files\x20t','ecurity\x20an','analyzeMul','h\x20not\x20prov','254177jYrXUY','ror','is\x20failed:','2884nbAQmr','analyzeFil','sions','\x0aNumber\x20of','analysis\x20f','ZIP\x20file\x20p','\x20analysis\x20','432233LjAsgp','structured','constructo','analysisSe','s:\x20','tipleFiles','WNvvi','info','quested:\x20','Folder\x20sec','sted:\x20','File\x20paths','\x20The\x20fileP','text','status','ID:\x20','ided','습니다.\x20분석할\x20코','Security\x20a','1626936TzGQwA','ysis\x20faile','match','4ZtCdtO','only\x20suppo','34288BbvCcJ','ailed:','fileName','esSast','File','ed:\x20','red\x20-\x20SAST','th.','message','led:','filePathCo','folders\x20(','File\x20secur','zipFilePat','with\x20exten','trim','3790KBQkmN','\x20security\x20','File\x20exten','Sast','5690525jclFUw','드를\x20제공해주세요.','AiIOp','\x20파일만\x20지원합니다','\x20not\x20provi','ders','urity\x20anal','1143IdMuDs','error','nalysis\x20ha','nalysis\x20re','analysisId','\x0a\x0aSkipped\x20','\x0aStatus:\x20','der','ysis\x20reque'];a8_0x4f36=function(){return _0x2d453d;};return a8_0x4f36();}export class SastController{[a8_0x15c751(0x206)+a8_0x15c751(0x250)];constructor(_0x32e259){const _0x129a79=a8_0x15c751;this[_0x129a79(0x206)+_0x129a79(0x250)]=_0x32e259;}async[a8_0x15c751(0x1fd)+a8_0x15c751(0x1f2)]({fileContent:_0x4d7d13,fileName:_0x4f6785,memo:_0x2ac7d9}){const _0xa672f0=a8_0x15c751;try{logger[_0xa672f0(0x20a)](_0xa672f0(0x215)+_0xa672f0(0x239)+_0xa672f0(0x20b)+_0x4f6785);if(!_0x4d7d13||_0x4d7d13[_0xa672f0(0x22a)]()[_0xa672f0(0x241)]===0x0){const _0x2ab943={};_0x2ab943[_0xa672f0(0x23f)]=_0xa672f0(0x210),_0x2ab943['text']='파일\x20내용이\x20비어있'+_0xa672f0(0x214)+_0xa672f0(0x230);const _0x8d59a6={};_0x8d59a6['error']=_0xa672f0(0x1ed)+_0xa672f0(0x1f1)+'\x20no\x20code\x20t'+'o\x20analyze';const _0xc8b68a={};return _0xc8b68a[_0xa672f0(0x1f4)]=[_0x2ab943],_0xc8b68a[_0xa672f0(0x204)+'Content']=_0x8d59a6,_0xc8b68a;}const _0x3acbcd=_0x4f6785[_0xa672f0(0x218)](/\.([^.]+)$/);if(!_0x3acbcd||_0x3acbcd[0x1][_0xa672f0(0x241)]===0x0){const _0x4ba51f={};_0x4ba51f[_0xa672f0(0x23f)]=_0xa672f0(0x210),_0x4ba51f[_0xa672f0(0x210)]=_0xa672f0(0x24e)+'니다.\x20SAST\x20분'+'석은\x20확장자가\x20있는'+_0xa672f0(0x232)+'.';const _0x5c0e26={};_0x5c0e26[_0xa672f0(0x237)]=_0xa672f0(0x22d)+'sion\x20requi'+_0xa672f0(0x221)+_0xa672f0(0x202)+_0xa672f0(0x21a)+_0xa672f0(0x1f0)+_0xa672f0(0x229)+_0xa672f0(0x1fe);const _0xab14b6={};return _0xab14b6[_0xa672f0(0x1f4)]=[_0x4ba51f],_0xab14b6[_0xa672f0(0x204)+_0xa672f0(0x242)]=_0x5c0e26,_0xab14b6;}const _0x5e9e26={};_0x5e9e26['fileConten'+'t']=_0x4d7d13,_0x5e9e26[_0xa672f0(0x21d)]=_0x4f6785,_0x5e9e26['memo']=_0x2ac7d9;const _0x130d94=await this[_0xa672f0(0x206)+'rvice']['analyzeFil'+'eSecurity'](_0x5e9e26),_0x12d31d={};_0x12d31d[_0xa672f0(0x23f)]=_0xa672f0(0x210),_0x12d31d[_0xa672f0(0x210)]=_0xa672f0(0x215)+_0xa672f0(0x238)+_0xa672f0(0x1e6)+'\x0aAnalysis\x20'+_0xa672f0(0x212)+_0x130d94[_0xa672f0(0x23a)];const _0x1cebe3={};_0x1cebe3[_0xa672f0(0x23a)]=_0x130d94['analysisId'],_0x1cebe3['status']=_0x130d94[_0xa672f0(0x211)];const _0x3b0c89={};return _0x3b0c89[_0xa672f0(0x1f4)]=[_0x12d31d],_0x3b0c89[_0xa672f0(0x204)+_0xa672f0(0x242)]=_0x1cebe3,_0x3b0c89;}catch(_0x2214c3){logger['error'](_0xa672f0(0x227)+_0xa672f0(0x252)+_0xa672f0(0x1fb),_0x2214c3);const _0x1290ea={};_0x1290ea[_0xa672f0(0x23f)]=_0xa672f0(0x210),_0x1290ea[_0xa672f0(0x210)]='Security\x20a'+'nalysis\x20re'+_0xa672f0(0x1e4)+'ed:\x20'+(_0x2214c3 instanceof Error?_0x2214c3[_0xa672f0(0x223)]:_0xa672f0(0x247)+_0xa672f0(0x1fa));const _0x1054cd={};_0x1054cd[_0xa672f0(0x237)]=_0x2214c3 instanceof Error?_0x2214c3[_0xa672f0(0x223)]:_0xa672f0(0x247)+_0xa672f0(0x1fa);const _0xe2d716={};return _0xe2d716['content']=[_0x1290ea],_0xe2d716[_0xa672f0(0x204)+_0xa672f0(0x242)]=_0x1054cd,_0xe2d716;}}async[a8_0x15c751(0x1fd)+a8_0x15c751(0x21e)]({filePaths:_0x22e80c,zipFileName:_0x4d07ff,memo:_0x38d5fd}){const _0x177100=a8_0x15c751,_0x12ed3a={};_0x12ed3a['WNvvi']=_0x177100(0x20e)+_0x177100(0x233)+_0x177100(0x1e8);const _0x6e6596=_0x12ed3a;try{if(!_0x22e80c||_0x22e80c[_0x177100(0x241)]===0x0){const _0x1b1b79={};_0x1b1b79[_0x177100(0x23f)]=_0x177100(0x210),_0x1b1b79[_0x177100(0x210)]=_0x177100(0x1f5)+_0x177100(0x243)+_0x177100(0x20f)+_0x177100(0x253)+'\x20requires\x20'+_0x177100(0x251)+_0x177100(0x1f3)+_0x177100(0x222);const _0x4e99e6={};_0x4e99e6[_0x177100(0x237)]=_0x6e6596[_0x177100(0x209)];const _0x1bb6df={};return _0x1bb6df[_0x177100(0x1f4)]=[_0x1b1b79],_0x1bb6df[_0x177100(0x204)+'Content']=_0x4e99e6,_0x1bb6df;}logger['info'](_0x177100(0x1eb)+'\x20security\x20'+'analysis\x20r'+'equested:\x20'+_0x22e80c['length']+(_0x177100(0x24f)+'s'));const _0x34090a=await this[_0x177100(0x206)+_0x177100(0x250)][_0x177100(0x1f7)+_0x177100(0x208)+_0x177100(0x1ea)](_0x22e80c,_0x4d07ff,_0x38d5fd),_0x5f4202=_0x177100(0x215)+_0x177100(0x238)+'s\x20started.'+_0x177100(0x1ff)+'\x20file\x20path'+_0x177100(0x207)+_0x22e80c[_0x177100(0x241)]+('\x0aAnalysis\x20'+_0x177100(0x212))+_0x34090a[_0x177100(0x23a)]+'\x0aStatus:\x20'+_0x34090a[_0x177100(0x211)],_0xaa6a5c={};_0xaa6a5c[_0x177100(0x23f)]='text',_0xaa6a5c[_0x177100(0x210)]=_0x5f4202;const _0x2da134={};_0x2da134[_0x177100(0x23a)]=_0x34090a[_0x177100(0x23a)],_0x2da134[_0x177100(0x211)]=_0x34090a[_0x177100(0x211)],_0x2da134[_0x177100(0x225)+_0x177100(0x240)]=_0x22e80c[_0x177100(0x241)];const _0x23471d={};return _0x23471d[_0x177100(0x1f4)]=[_0xaa6a5c],_0x23471d[_0x177100(0x204)+_0x177100(0x242)]=_0x2da134,_0x23471d;}catch(_0x18b5e0){logger[_0x177100(0x237)](_0x177100(0x1eb)+_0x177100(0x22c)+_0x177100(0x200)+_0x177100(0x21c),_0x18b5e0);const _0x16ad9a={};_0x16ad9a['type']=_0x177100(0x210),_0x16ad9a['text']=_0x177100(0x215)+_0x177100(0x239)+_0x177100(0x1e4)+_0x177100(0x220)+(_0x18b5e0 instanceof Error?_0x18b5e0['message']:'Unknown\x20er'+'ror');const _0xccbeec={};_0xccbeec[_0x177100(0x237)]=_0x18b5e0 instanceof Error?_0x18b5e0[_0x177100(0x223)]:_0x177100(0x247)+_0x177100(0x1fa);const _0x3b43b9={};return _0x3b43b9[_0x177100(0x1f4)]=[_0x16ad9a],_0x3b43b9[_0x177100(0x204)+'Content']=_0xccbeec,_0x3b43b9;}}async[a8_0x15c751(0x24d)+'derSast']({folderPath:_0x2c01e5,zipFileName:_0x5d4fd9,memo:_0x250334}){const _0x36b5f2=a8_0x15c751,_0xa9a67c={};_0xa9a67c[_0x36b5f2(0x24c)]=function(_0xa85830,_0x2267ac){return _0xa85830===_0x2267ac;},_0xa9a67c[_0x36b5f2(0x231)]=_0x36b5f2(0x247)+'ror';const _0x23802c=_0xa9a67c;try{if(!_0x2c01e5||_0x23802c['peuGE'](_0x2c01e5['trim']()[_0x36b5f2(0x241)],0x0)){const _0x1d09e0={};_0x1d09e0[_0x36b5f2(0x23f)]='text',_0x1d09e0[_0x36b5f2(0x210)]=_0x36b5f2(0x1ef)+_0x36b5f2(0x1f8)+_0x36b5f2(0x1e9);const _0x4c0440={};_0x4c0440['error']=_0x36b5f2(0x1ef)+'h\x20not\x20prov'+_0x36b5f2(0x213);const _0x3c7e27={};return _0x3c7e27[_0x36b5f2(0x1f4)]=[_0x1d09e0],_0x3c7e27[_0x36b5f2(0x204)+_0x36b5f2(0x242)]=_0x4c0440,_0x3c7e27;}logger['info'](_0x36b5f2(0x20c)+'urity\x20anal'+_0x36b5f2(0x23e)+_0x36b5f2(0x20d)+_0x2c01e5);const _0x2e6e1c=await this['analysisSe'+_0x36b5f2(0x250)][_0x36b5f2(0x24d)+_0x36b5f2(0x23d)](_0x2c01e5,_0x5d4fd9,_0x250334);let _0x18898a=_0x36b5f2(0x215)+'nalysis\x20ha'+_0x36b5f2(0x1e6)+'\x0aFolder:\x20'+_0x2c01e5+(_0x36b5f2(0x245)+_0x36b5f2(0x212))+_0x2e6e1c[_0x36b5f2(0x23a)]+_0x36b5f2(0x23c)+_0x2e6e1c[_0x36b5f2(0x211)];_0x2e6e1c[_0x36b5f2(0x244)+_0x36b5f2(0x234)]&&_0x2e6e1c[_0x36b5f2(0x244)+'ders'][_0x36b5f2(0x241)]>0x0&&(_0x18898a+=_0x36b5f2(0x23b)+_0x36b5f2(0x226)+_0x2e6e1c[_0x36b5f2(0x244)+_0x36b5f2(0x234)][_0x36b5f2(0x241)]+'):\x20'+_0x2e6e1c[_0x36b5f2(0x244)+_0x36b5f2(0x234)][_0x36b5f2(0x1ec)](',\x20'));const _0x1eeb07={};_0x1eeb07['type']=_0x36b5f2(0x210),_0x1eeb07['text']=_0x18898a;const _0x3c873f={};_0x3c873f[_0x36b5f2(0x23a)]=_0x2e6e1c[_0x36b5f2(0x23a)],_0x3c873f[_0x36b5f2(0x211)]=_0x2e6e1c['status'],_0x3c873f[_0x36b5f2(0x24b)]=_0x2c01e5,_0x3c873f[_0x36b5f2(0x244)+_0x36b5f2(0x234)]=_0x2e6e1c['skippedFol'+_0x36b5f2(0x234)];const _0x2ee24c={};return _0x2ee24c[_0x36b5f2(0x1f4)]=[_0x1eeb07],_0x2ee24c[_0x36b5f2(0x204)+_0x36b5f2(0x242)]=_0x3c873f,_0x2ee24c;}catch(_0x1ffb95){logger[_0x36b5f2(0x237)](_0x36b5f2(0x20c)+_0x36b5f2(0x235)+_0x36b5f2(0x217)+'d:',_0x1ffb95);const _0x5168ca={};_0x5168ca[_0x36b5f2(0x23f)]='text',_0x5168ca[_0x36b5f2(0x210)]=_0x36b5f2(0x215)+_0x36b5f2(0x239)+_0x36b5f2(0x1e4)+'ed:\x20'+(_0x1ffb95 instanceof Error?_0x1ffb95[_0x36b5f2(0x223)]:_0x23802c[_0x36b5f2(0x231)]);const _0x4829c5={};_0x4829c5[_0x36b5f2(0x237)]=_0x1ffb95 instanceof Error?_0x1ffb95[_0x36b5f2(0x223)]:_0x36b5f2(0x247)+_0x36b5f2(0x1fa);const _0x3ef662={};return _0x3ef662[_0x36b5f2(0x1f4)]=[_0x5168ca],_0x3ef662['structured'+_0x36b5f2(0x242)]=_0x4829c5,_0x3ef662;}}async['analyzeZip'+a8_0x15c751(0x22e)]({zipFilePath:_0x281781,zipFileName:_0x4a775c,memo:_0x4211d4}){const _0x228168=a8_0x15c751,_0x54cf6b={};_0x54cf6b['DwCMG']='ZIP\x20file\x20s'+_0x228168(0x1f6)+'alysis\x20fai'+_0x228168(0x224),_0x54cf6b['JCwLD']=_0x228168(0x247)+'ror';const _0x17e38b=_0x54cf6b;try{if(!_0x281781||_0x281781[_0x228168(0x22a)]()['length']===0x0){const _0x1e9900={};_0x1e9900[_0x228168(0x23f)]=_0x228168(0x210),_0x1e9900[_0x228168(0x210)]=_0x228168(0x201)+'ath\x20not\x20pr'+'ovided.';const _0x375ab3={};_0x375ab3['error']=_0x228168(0x201)+_0x228168(0x1ee)+'ovided';const _0x288e66={};return _0x288e66[_0x228168(0x1f4)]=[_0x1e9900],_0x288e66[_0x228168(0x204)+_0x228168(0x242)]=_0x375ab3,_0x288e66;}logger[_0x228168(0x20a)]('ZIP\x20file\x20s'+_0x228168(0x1f6)+'alysis\x20req'+'uested:\x20'+_0x281781);const _0x652b42=await this[_0x228168(0x206)+_0x228168(0x250)][_0x228168(0x1e7)+_0x228168(0x21f)](_0x281781,_0x4a775c,_0x4211d4),_0x48e13b=_0x228168(0x215)+_0x228168(0x238)+_0x228168(0x1e6)+'\x0aZIP\x20File:'+'\x20'+_0x281781+(_0x228168(0x245)+_0x228168(0x212))+_0x652b42[_0x228168(0x23a)]+'\x0aStatus:\x20'+_0x652b42['status'],_0x46196a={};_0x46196a['type']='text',_0x46196a[_0x228168(0x210)]=_0x48e13b;const _0x13ebda={};_0x13ebda[_0x228168(0x23a)]=_0x652b42[_0x228168(0x23a)],_0x13ebda['status']=_0x652b42[_0x228168(0x211)],_0x13ebda[_0x228168(0x228)+'h']=_0x281781;const _0x43317b={};return _0x43317b[_0x228168(0x1f4)]=[_0x46196a],_0x43317b['structured'+_0x228168(0x242)]=_0x13ebda,_0x43317b;}catch(_0x4f4c2b){logger[_0x228168(0x237)](_0x17e38b[_0x228168(0x246)],_0x4f4c2b);const _0x327d0d={};_0x327d0d['type']=_0x228168(0x210),_0x327d0d[_0x228168(0x210)]=_0x228168(0x215)+'nalysis\x20re'+'quest\x20fail'+'ed:\x20'+(_0x4f4c2b instanceof Error?_0x4f4c2b[_0x228168(0x223)]:_0x17e38b['JCwLD']);const _0x24ea1e={};_0x24ea1e[_0x228168(0x237)]=_0x4f4c2b instanceof Error?_0x4f4c2b[_0x228168(0x223)]:_0x228168(0x247)+'ror';const _0xcf34f5={};return _0xcf34f5['content']=[_0x327d0d],_0xcf34f5[_0x228168(0x204)+'Content']=_0x24ea1e,_0xcf34f5;}}}
1
+ function a8_0xf103(_0x21939,_0x4f28d4){_0x21939=_0x21939-0x1b6;const _0x2c65ad=a8_0x208c();let _0x2656ba=_0x2c65ad[_0x21939];return _0x2656ba;}const a8_0x1cf2fd=a8_0xf103;(function(_0x13dda6,_0x14f8ea){const _0x179d5d=a8_0xf103,_0x433a7b=_0x13dda6();while(!![]){try{const _0x1b784d=parseInt(_0x179d5d(0x1fc))/0x1+-parseInt(_0x179d5d(0x1ce))/0x2+-parseInt(_0x179d5d(0x1dc))/0x3+parseInt(_0x179d5d(0x1f6))/0x4*(parseInt(_0x179d5d(0x21f))/0x5)+parseInt(_0x179d5d(0x210))/0x6*(parseInt(_0x179d5d(0x21a))/0x7)+-parseInt(_0x179d5d(0x1da))/0x8*(parseInt(_0x179d5d(0x1e0))/0x9)+parseInt(_0x179d5d(0x1f1))/0xa;if(_0x1b784d===_0x14f8ea)break;else _0x433a7b['push'](_0x433a7b['shift']());}catch(_0x331d4b){_0x433a7b['push'](_0x433a7b['shift']());}}}(a8_0x208c,0x4c7e5));const a8_0x157e0b=(function(){let _0x403902=!![];return function(_0x2a599b,_0x252ffa){const _0x3847e0=_0x403902?function(){const _0x37e773=a8_0xf103;if(_0x252ffa){const _0x12772d=_0x252ffa[_0x37e773(0x21c)](_0x2a599b,arguments);return _0x252ffa=null,_0x12772d;}}:function(){};return _0x403902=![],_0x3847e0;};}()),a8_0x2656ba=a8_0x157e0b(this,function(){const _0x252f5e=a8_0xf103;return a8_0x2656ba[_0x252f5e(0x212)]()[_0x252f5e(0x1d4)](_0x252f5e(0x1fb)+'+$')[_0x252f5e(0x212)]()['constructo'+'r'](a8_0x2656ba)[_0x252f5e(0x1d4)]('(((.+)+)+)'+'+$');});a8_0x2656ba();import{logger}from'../utils/logger.js';export class SastController{[a8_0x1cf2fd(0x1de)+a8_0x1cf2fd(0x1ba)];constructor(_0x2032f5){const _0x8ea76b=a8_0x1cf2fd;this[_0x8ea76b(0x1de)+_0x8ea76b(0x1ba)]=_0x2032f5;}async['analyzeFil'+'eSast']({fileContent:_0x29798a,fileName:_0x1e5ff8,memo:_0x595716}){const _0x5b2c73=a8_0x1cf2fd,_0x2b2f72={};_0x2b2f72[_0x5b2c73(0x1d5)]='Empty\x20file'+_0x5b2c73(0x219)+_0x5b2c73(0x1f0)+_0x5b2c73(0x20b),_0x2b2f72['TXFJe']=function(_0x15b376,_0x5191b4){return _0x15b376 instanceof _0x5191b4;};const _0x7eb4a2=_0x2b2f72;try{logger[_0x5b2c73(0x1f4)](_0x5b2c73(0x221)+_0x5b2c73(0x1cf)+'quested:\x20'+_0x1e5ff8);if(!_0x29798a||_0x29798a[_0x5b2c73(0x1d3)]()[_0x5b2c73(0x217)]===0x0){const _0x1077b3={};_0x1077b3['type']='text',_0x1077b3[_0x5b2c73(0x1cd)]=_0x5b2c73(0x205)+_0x5b2c73(0x1e4)+_0x5b2c73(0x1d2);const _0x4396d8={};_0x4396d8['error']=_0x7eb4a2[_0x5b2c73(0x1d5)];const _0x34e6e3={};return _0x34e6e3[_0x5b2c73(0x21e)]=[_0x1077b3],_0x34e6e3[_0x5b2c73(0x200)+_0x5b2c73(0x1ea)]=_0x4396d8,_0x34e6e3;}const _0x2cbe04=_0x1e5ff8['match'](/\.([^.]+)$/);if(!_0x2cbe04||_0x2cbe04[0x1][_0x5b2c73(0x217)]===0x0){const _0x2a37dc={};_0x2a37dc[_0x5b2c73(0x203)]='text',_0x2a37dc[_0x5b2c73(0x1cd)]='파일\x20확장자가\x20없습'+_0x5b2c73(0x1c2)+_0x5b2c73(0x208)+_0x5b2c73(0x1e7)+'.';const _0x35a41d={};_0x35a41d[_0x5b2c73(0x207)]='File\x20exten'+'sion\x20requi'+_0x5b2c73(0x1be)+_0x5b2c73(0x1e1)+_0x5b2c73(0x1e6)+'rts\x20files\x20'+_0x5b2c73(0x211)+_0x5b2c73(0x1f2);const _0x5e98d7={};return _0x5e98d7['content']=[_0x2a37dc],_0x5e98d7[_0x5b2c73(0x200)+_0x5b2c73(0x1ea)]=_0x35a41d,_0x5e98d7;}const _0x55050b={};_0x55050b[_0x5b2c73(0x1d8)+'t']=_0x29798a,_0x55050b[_0x5b2c73(0x1d9)]=_0x1e5ff8,_0x55050b[_0x5b2c73(0x1b8)]=_0x595716;const _0x24d506=await this[_0x5b2c73(0x1de)+_0x5b2c73(0x1ba)][_0x5b2c73(0x1cb)+_0x5b2c73(0x1eb)](_0x55050b),_0x2470b5={};_0x2470b5['type']=_0x5b2c73(0x1cd),_0x2470b5['text']=_0x5b2c73(0x221)+_0x5b2c73(0x1e8)+_0x5b2c73(0x1df)+'\x0aAnalysis\x20'+'ID:\x20'+_0x24d506[_0x5b2c73(0x216)];const _0x332a26={};_0x332a26[_0x5b2c73(0x216)]=_0x24d506[_0x5b2c73(0x216)],_0x332a26[_0x5b2c73(0x224)]=_0x24d506[_0x5b2c73(0x224)];const _0x2e804a={};return _0x2e804a[_0x5b2c73(0x21e)]=[_0x2470b5],_0x2e804a[_0x5b2c73(0x200)+_0x5b2c73(0x1ea)]=_0x332a26,_0x2e804a;}catch(_0x389fbe){logger[_0x5b2c73(0x207)](_0x5b2c73(0x215)+_0x5b2c73(0x223)+_0x5b2c73(0x20f),_0x389fbe);const _0x103ec0={};return _0x103ec0[_0x5b2c73(0x203)]=_0x5b2c73(0x1cd),_0x103ec0[_0x5b2c73(0x1cd)]=_0x5b2c73(0x221)+_0x5b2c73(0x1cf)+_0x5b2c73(0x1ec)+_0x5b2c73(0x1fe)+(_0x389fbe instanceof Error?_0x389fbe['message']:_0x5b2c73(0x21b)+_0x5b2c73(0x1d1)),{'content':[_0x103ec0],'structuredContent':{'error':_0x7eb4a2[_0x5b2c73(0x1f9)](_0x389fbe,Error)?_0x389fbe[_0x5b2c73(0x20e)]:_0x5b2c73(0x21b)+'ror'}};}}async['analyzeFil'+a8_0x1cf2fd(0x202)]({filePaths:_0xa8b66d,zipFileName:_0x3146fb,memo:_0x1c4503}){const _0xe0ff8b=a8_0x1cf2fd;try{if(!_0xa8b66d||_0xa8b66d[_0xe0ff8b(0x217)]===0x0){const _0x59c985={};_0x59c985['type']=_0xe0ff8b(0x1cd),_0x59c985[_0xe0ff8b(0x1cd)]=_0xe0ff8b(0x225)+'o\x20analyze.'+_0xe0ff8b(0x1c0)+'aths\x20array'+'\x20requires\x20'+_0xe0ff8b(0x1c9)+_0xe0ff8b(0x209)+_0xe0ff8b(0x1f8);const _0x141ba0={};_0x141ba0[_0xe0ff8b(0x207)]=_0xe0ff8b(0x1bd)+_0xe0ff8b(0x1fd)+_0xe0ff8b(0x20d);const _0xd85645={};return _0xd85645[_0xe0ff8b(0x21e)]=[_0x59c985],_0xd85645['structured'+'Content']=_0x141ba0,_0xd85645;}logger[_0xe0ff8b(0x1f4)](_0xe0ff8b(0x222)+_0xe0ff8b(0x1b7)+_0xe0ff8b(0x1bf)+_0xe0ff8b(0x228)+_0xa8b66d['length']+(_0xe0ff8b(0x1c8)+'s'));const _0x5b4cf6=await this['analysisSe'+'rvice'][_0xe0ff8b(0x20a)+_0xe0ff8b(0x1ed)+_0xe0ff8b(0x201)](_0xa8b66d,_0x3146fb,_0x1c4503),_0x42c232='Security\x20a'+_0xe0ff8b(0x1e8)+_0xe0ff8b(0x1df)+_0xe0ff8b(0x1db)+'\x20file\x20path'+_0xe0ff8b(0x1c7)+_0xa8b66d[_0xe0ff8b(0x217)]+(_0xe0ff8b(0x227)+_0xe0ff8b(0x1c3))+_0x5b4cf6[_0xe0ff8b(0x216)]+_0xe0ff8b(0x21d)+_0x5b4cf6['status'],_0x5119bb={};_0x5119bb['type']=_0xe0ff8b(0x1cd),_0x5119bb[_0xe0ff8b(0x1cd)]=_0x42c232;const _0x46da87={};_0x46da87[_0xe0ff8b(0x216)]=_0x5b4cf6[_0xe0ff8b(0x216)],_0x46da87['status']=_0x5b4cf6[_0xe0ff8b(0x224)],_0x46da87[_0xe0ff8b(0x204)+'unt']=_0xa8b66d['length'];const _0x1d9431={};return _0x1d9431[_0xe0ff8b(0x21e)]=[_0x5119bb],_0x1d9431['structured'+_0xe0ff8b(0x1ea)]=_0x46da87,_0x1d9431;}catch(_0x2b3dab){logger['error'](_0xe0ff8b(0x222)+_0xe0ff8b(0x1b7)+_0xe0ff8b(0x20c)+_0xe0ff8b(0x1e2),_0x2b3dab);const _0x25b61e={};_0x25b61e[_0xe0ff8b(0x203)]='text',_0x25b61e['text']='Security\x20a'+_0xe0ff8b(0x1cf)+_0xe0ff8b(0x1ec)+_0xe0ff8b(0x1fe)+(_0x2b3dab instanceof Error?_0x2b3dab[_0xe0ff8b(0x20e)]:_0xe0ff8b(0x21b)+_0xe0ff8b(0x1d1));const _0x198164={};_0x198164[_0xe0ff8b(0x207)]=_0x2b3dab instanceof Error?_0x2b3dab[_0xe0ff8b(0x20e)]:_0xe0ff8b(0x21b)+_0xe0ff8b(0x1d1);const _0x1155c9={};return _0x1155c9[_0xe0ff8b(0x21e)]=[_0x25b61e],_0x1155c9[_0xe0ff8b(0x200)+_0xe0ff8b(0x1ea)]=_0x198164,_0x1155c9;}}async['analyzeFol'+a8_0x1cf2fd(0x1e5)]({folderPath:_0x183a65,zipFileName:_0x334502,memo:_0x37d29c}){const _0x491db3=a8_0x1cf2fd,_0xe2c7bd={};_0xe2c7bd[_0x491db3(0x1e3)]=_0x491db3(0x1b9)+'h\x20not\x20prov'+_0x491db3(0x218);const _0x37696=_0xe2c7bd;try{if(!_0x183a65||_0x183a65[_0x491db3(0x1d3)]()['length']===0x0){const _0x488c56={};_0x488c56['type']=_0x491db3(0x1cd),_0x488c56[_0x491db3(0x1cd)]=_0x491db3(0x1b9)+_0x491db3(0x220)+_0x491db3(0x1bb);const _0x31c23e={};_0x31c23e[_0x491db3(0x207)]=_0x37696['qitxF'];const _0x2bb1c2={};return _0x2bb1c2[_0x491db3(0x21e)]=[_0x488c56],_0x2bb1c2[_0x491db3(0x200)+_0x491db3(0x1ea)]=_0x31c23e,_0x2bb1c2;}logger[_0x491db3(0x1f4)]('Folder\x20sec'+_0x491db3(0x1ff)+'ysis\x20reque'+_0x491db3(0x226)+_0x183a65);const _0x313616=await this[_0x491db3(0x1de)+_0x491db3(0x1ba)][_0x491db3(0x1f5)+'der'](_0x183a65,_0x334502,_0x37d29c);let _0x5a86b6='Security\x20a'+'nalysis\x20ha'+_0x491db3(0x1df)+'\x0aFolder:\x20'+_0x183a65+('\x0aAnalysis\x20'+'ID:\x20')+_0x313616[_0x491db3(0x216)]+'\x0aStatus:\x20'+_0x313616[_0x491db3(0x224)];_0x313616[_0x491db3(0x1f7)+_0x491db3(0x1c5)]&&_0x313616[_0x491db3(0x1f7)+'ders'][_0x491db3(0x217)]>0x0&&(_0x5a86b6+=_0x491db3(0x1e9)+_0x491db3(0x1c4)+_0x313616['skippedFol'+_0x491db3(0x1c5)][_0x491db3(0x217)]+_0x491db3(0x1f3)+_0x313616[_0x491db3(0x1f7)+_0x491db3(0x1c5)][_0x491db3(0x1c6)](',\x20'));const _0x59bc07={};_0x59bc07[_0x491db3(0x203)]=_0x491db3(0x1cd),_0x59bc07['text']=_0x5a86b6;const _0x3e46c2={};_0x3e46c2[_0x491db3(0x216)]=_0x313616[_0x491db3(0x216)],_0x3e46c2[_0x491db3(0x224)]=_0x313616[_0x491db3(0x224)],_0x3e46c2[_0x491db3(0x1bc)]=_0x183a65,_0x3e46c2[_0x491db3(0x1f7)+'ders']=_0x313616[_0x491db3(0x1f7)+_0x491db3(0x1c5)];const _0x228c41={};return _0x228c41[_0x491db3(0x21e)]=[_0x59bc07],_0x228c41[_0x491db3(0x200)+'Content']=_0x3e46c2,_0x228c41;}catch(_0x3ff7af){logger['error'](_0x491db3(0x206)+'urity\x20anal'+'ysis\x20faile'+'d:',_0x3ff7af);const _0x15bb1d={};_0x15bb1d[_0x491db3(0x203)]=_0x491db3(0x1cd),_0x15bb1d[_0x491db3(0x1cd)]=_0x491db3(0x221)+_0x491db3(0x1cf)+_0x491db3(0x1ec)+_0x491db3(0x1fe)+(_0x3ff7af instanceof Error?_0x3ff7af[_0x491db3(0x20e)]:_0x491db3(0x21b)+_0x491db3(0x1d1));const _0x3aac0d={};_0x3aac0d[_0x491db3(0x207)]=_0x3ff7af instanceof Error?_0x3ff7af['message']:_0x491db3(0x21b)+_0x491db3(0x1d1);const _0x2f9529={};return _0x2f9529[_0x491db3(0x21e)]=[_0x15bb1d],_0x2f9529[_0x491db3(0x200)+'Content']=_0x3aac0d,_0x2f9529;}}async[a8_0x1cf2fd(0x1c1)+'Sast']({zipFilePath:_0x4665e2,zipFileName:_0x209163,memo:_0x26330b}){const _0x54dd60=a8_0x1cf2fd,_0x14b88a={};_0x14b88a[_0x54dd60(0x1d0)]=_0x54dd60(0x214)+_0x54dd60(0x1b6)+_0x54dd60(0x213)+_0x54dd60(0x229);const _0x1fd0aa=_0x14b88a;try{if(!_0x4665e2||_0x4665e2[_0x54dd60(0x1d3)]()['length']===0x0){const _0x1d94aa={};_0x1d94aa['type']=_0x54dd60(0x1cd),_0x1d94aa[_0x54dd60(0x1cd)]='ZIP\x20file\x20p'+_0x54dd60(0x1d6)+_0x54dd60(0x1ee);const _0x2aa363={};_0x2aa363[_0x54dd60(0x207)]=_0x54dd60(0x1fa)+_0x54dd60(0x1d6)+'ovided';const _0x8af36={};return _0x8af36[_0x54dd60(0x21e)]=[_0x1d94aa],_0x8af36['structured'+_0x54dd60(0x1ea)]=_0x2aa363,_0x8af36;}logger[_0x54dd60(0x1f4)](_0x54dd60(0x214)+_0x54dd60(0x1b6)+_0x54dd60(0x1ca)+_0x54dd60(0x1ef)+_0x4665e2);const _0x3361af=await this['analysisSe'+_0x54dd60(0x1ba)]['analyzeZip'+_0x54dd60(0x1dd)](_0x4665e2,_0x209163,_0x26330b),_0x421434=_0x54dd60(0x221)+'nalysis\x20ha'+_0x54dd60(0x1df)+_0x54dd60(0x1d7)+'\x20'+_0x4665e2+(_0x54dd60(0x227)+_0x54dd60(0x1c3))+_0x3361af[_0x54dd60(0x216)]+_0x54dd60(0x21d)+_0x3361af[_0x54dd60(0x224)],_0x5df6d1={};_0x5df6d1[_0x54dd60(0x203)]=_0x54dd60(0x1cd),_0x5df6d1[_0x54dd60(0x1cd)]=_0x421434;const _0x4fa938={};_0x4fa938[_0x54dd60(0x216)]=_0x3361af[_0x54dd60(0x216)],_0x4fa938[_0x54dd60(0x224)]=_0x3361af[_0x54dd60(0x224)],_0x4fa938[_0x54dd60(0x1cc)+'h']=_0x4665e2;const _0x4ad0b6={};return _0x4ad0b6[_0x54dd60(0x21e)]=[_0x5df6d1],_0x4ad0b6['structured'+_0x54dd60(0x1ea)]=_0x4fa938,_0x4ad0b6;}catch(_0x1f9473){logger[_0x54dd60(0x207)](_0x1fd0aa[_0x54dd60(0x1d0)],_0x1f9473);const _0x1f6fde={};_0x1f6fde[_0x54dd60(0x203)]=_0x54dd60(0x1cd),_0x1f6fde[_0x54dd60(0x1cd)]=_0x54dd60(0x221)+_0x54dd60(0x1cf)+_0x54dd60(0x1ec)+_0x54dd60(0x1fe)+(_0x1f9473 instanceof Error?_0x1f9473[_0x54dd60(0x20e)]:_0x54dd60(0x21b)+_0x54dd60(0x1d1));const _0x51e1fd={};_0x51e1fd['error']=_0x1f9473 instanceof Error?_0x1f9473[_0x54dd60(0x20e)]:'Unknown\x20er'+'ror';const _0x281f88={};return _0x281f88[_0x54dd60(0x21e)]=[_0x1f6fde],_0x281f88['structured'+_0x54dd60(0x1ea)]=_0x51e1fd,_0x281f88;}}}function a8_0x208c(){const _0x286084=['tipleFiles','ovided.','uested:\x20','\x20no\x20code\x20t','4394740nTwDHa','sions','):\x20','info','analyzeFol','128NclvnO','skippedFol','th.','TXFJe','ZIP\x20file\x20p','(((.+)+)+)','459817CQEuok','\x20not\x20provi','ed:\x20','urity\x20anal','structured','FromPaths','esSast','type','filePathCo','파일\x20내용이\x20비어있','Folder\x20sec','error','석은\x20확장자가\x20있는','ne\x20file\x20pa','analyzeMul','o\x20analyze','analysis\x20f','ded','message','is\x20failed:','42FXTMvx','with\x20exten','toString','alysis\x20fai','ZIP\x20file\x20s','File\x20secur','analysisId','length','ided','\x20content\x20-','248647WxguqA','Unknown\x20er','apply','\x0aStatus:\x20','content','20940bBMVrX','h\x20not\x20prov','Security\x20a','Multi-file','ity\x20analys','status','No\x20files\x20t','sted:\x20','\x0aAnalysis\x20','equested:\x20','led:','ecurity\x20an','\x20security\x20','memo','Folder\x20pat','rvice','ided.','folderPath','File\x20paths','red\x20-\x20SAST','analysis\x20r','\x20The\x20fileP','analyzeZip','니다.\x20SAST\x20분','ID:\x20','folders\x20(','ders','join','s:\x20','\x20file\x20path','at\x20least\x20o','alysis\x20req','analyzeFil','zipFilePat','text','176898GbKikN','nalysis\x20re','GeArk','ror','드를\x20제공해주세요.','trim','search','TTHPU','ath\x20not\x20pr','\x0aZIP\x20File:','fileConten','fileName','1184cRooup','\x0aNumber\x20of','1647336WGRTbW','File','analysisSe','s\x20started.','20133lLuXkk','\x20analysis\x20','ailed:','qitxF','습니다.\x20분석할\x20코','derSast','only\x20suppo','\x20파일만\x20지원합니다','nalysis\x20ha','\x0a\x0aSkipped\x20','Content','eSecurity','quest\x20fail'];a8_0x208c=function(){return _0x286084;};return a8_0x208c();}