@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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/scripts/mcp-test/mcp-client.js +1 -1
- package/dist/scripts/test-runner/check-failed-tests.js +1 -1
- package/dist/scripts/test-runner/compare-responses.js +1 -1
- package/dist/scripts/test-runner/standalone-test-fixed-header.js +1 -1
- package/dist/scripts/test-runner/standalone-test.js +1 -1
- package/dist/src/config/appConfig.js +1 -1
- package/dist/src/config/constants.js +1 -1
- package/dist/src/controllers/__tests__/analysis.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/sast.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/sca.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/security.controller.test.js +1 -1
- package/dist/src/controllers/__tests__/system.controller.test.js +1 -1
- package/dist/src/controllers/analysis.controller.js +1 -1
- package/dist/src/controllers/sast.controller.js +1 -1
- package/dist/src/controllers/sca.controller.js +1 -1
- package/dist/src/controllers/security.controller.js +1 -1
- package/dist/src/controllers/system.controller.js +1 -1
- package/dist/src/schemas/tool.schemas.js +1 -1
- package/dist/src/server.js +1 -1
- package/dist/src/services/__tests__/analysis.remediation.spec.d.ts +1 -0
- package/dist/src/services/__tests__/analysis.remediation.spec.js +1 -0
- package/dist/src/services/__tests__/analysis.remediation.test.js +1 -1
- package/dist/src/services/__tests__/analysis.service.sca.test.js +1 -1
- package/dist/src/services/__tests__/analysis.service.test.js +1 -1
- package/dist/src/services/__tests__/checker.service.test.js +1 -1
- package/dist/src/services/__tests__/llm.service.test.js +1 -1
- package/dist/src/services/__tests__/s3.service.test.js +1 -1
- package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
- package/dist/src/services/analysis.service.js +1 -1
- package/dist/src/services/checker.service.js +1 -1
- package/dist/src/services/llm/AnthropicProvider.js +1 -1
- package/dist/src/services/llm/BedrockProvider.js +1 -1
- package/dist/src/services/llm/GeminiProvider.js +1 -1
- package/dist/src/services/llm/LLMFactory.js +1 -1
- package/dist/src/services/llm/LLMProvider.js +1 -1
- package/dist/src/services/llm/OllamaProvider.js +1 -1
- package/dist/src/services/llm/OpenAIProvider.js +1 -1
- package/dist/src/services/llm.service.js +1 -1
- package/dist/src/services/s3.service.js +1 -1
- package/dist/src/services/sparrow.service.js +1 -1
- package/dist/src/types/types.js +1 -1
- package/dist/src/utils/__tests__/crypto.util.test.js +1 -1
- package/dist/src/utils/__tests__/diff.util.test.js +1 -1
- package/dist/src/utils/__tests__/fileManager.test.js +1 -1
- package/dist/src/utils/__tests__/fileManagerSecure.test.js +1 -1
- package/dist/src/utils/__tests__/logger.test.js +1 -1
- package/dist/src/utils/crypto.util.js +1 -1
- package/dist/src/utils/diff.util.js +1 -1
- package/dist/src/utils/fileManager.js +1 -1
- package/dist/src/utils/fileManagerSecure.js +1 -1
- package/dist/src/utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a30_0x497ead=a30_0x5c3d;(function(_0x2eb0b5,_0xc5302b){const _0x401161=a30_0x5c3d,_0x43bf12=_0x2eb0b5();while(!![]){try{const _0x5095b6=parseInt(_0x401161(0x29a))/0x1*(parseInt(_0x401161(0x250))/0x2)+-parseInt(_0x401161(0x28c))/0x3+-parseInt(_0x401161(0x208))/0x4*(parseInt(_0x401161(0x281))/0x5)+-parseInt(_0x401161(0x1eb))/0x6*(-parseInt(_0x401161(0x232))/0x7)+-parseInt(_0x401161(0x290))/0x8+-parseInt(_0x401161(0x297))/0x9*(-parseInt(_0x401161(0x295))/0xa)+-parseInt(_0x401161(0x205))/0xb*(parseInt(_0x401161(0x291))/0xc);if(_0x5095b6===_0xc5302b)break;else _0x43bf12['push'](_0x43bf12['shift']());}catch(_0x1e5530){_0x43bf12['push'](_0x43bf12['shift']());}}}(a30_0x2e3d,0x5137f));const a30_0x5ebce2=(function(){let _0x2b403d=!![];return function(_0x5cec18,_0x4bc9fb){const _0x4423fa=_0x2b403d?function(){const _0x17464b=a30_0x5c3d;if(_0x4bc9fb){const _0x18fe37=_0x4bc9fb[_0x17464b(0x24a)](_0x5cec18,arguments);return _0x4bc9fb=null,_0x18fe37;}}:function(){};return _0x2b403d=![],_0x4423fa;};}()),a30_0x7d0b3e=a30_0x5ebce2(this,function(){const _0x102363=a30_0x5c3d;return a30_0x7d0b3e[_0x102363(0x23c)]()['search'](_0x102363(0x1e0)+'+$')[_0x102363(0x23c)]()[_0x102363(0x21b)+'r'](a30_0x7d0b3e)['search']('(((.+)+)+)'+'+$');});a30_0x7d0b3e();import a30_0x4c9c07 from'axios';import a30_0x5d0d42 from'adm-zip';import a30_0x535c57 from'fs';import a30_0x291451 from'path';function a30_0x5c3d(_0x3a21ac,_0x5e8258){_0x3a21ac=_0x3a21ac-0x1ce;const _0x117b53=a30_0x2e3d();let _0x7d0b3e=_0x117b53[_0x3a21ac];return _0x7d0b3e;}import{appConfig}from'../config/appConfig.js';import{logger}from'../utils/logger.js';import{decryptInternal}from'../utils/crypto.util.js';const ENCRYPTED_ACCESS_KEY_ID=a30_0x497ead(0x2b1)+'JaKD4uJUEZ'+a30_0x497ead(0x249),ENCRYPTED_SECRET_ACCESS_KEY=a30_0x497ead(0x2b0)+a30_0x497ead(0x20e)+a30_0x497ead(0x253)+'A1PA0SHi0K'+'HRknHVVUYw'+a30_0x497ead(0x23a),ENCRYPTED_BUCKET_NAME=a30_0x497ead(0x234)+a30_0x497ead(0x292),STORAGE_REGION_DEFAULT=a30_0x497ead(0x27a)+'st-2',DEFAULT_SBOM_TYPES=[a30_0x497ead(0x1fa),a30_0x497ead(0x227)+'N',a30_0x497ead(0x261)+a30_0x497ead(0x268),a30_0x497ead(0x2bc),a30_0x497ead(0x265),a30_0x497ead(0x27c)+'N',a30_0x497ead(0x1ff)+'EADSHEET',a30_0x497ead(0x228),'SPDX30_JSO'+'N',a30_0x497ead(0x211)+'4',a30_0x497ead(0x211)+'5',a30_0x497ead(0x211)+'6',a30_0x497ead(0x2b6)];export class SparrowService{[a30_0x497ead(0x2a1)];[a30_0x497ead(0x21c)];constructor(){const _0x300947=a30_0x497ead;this[_0x300947(0x2a1)]=appConfig[_0x300947(0x25d)]['baseUrl'],this['apiKey']=appConfig[_0x300947(0x25d)][_0x300947(0x21c)];}['getDecrypt'+a30_0x497ead(0x28e)+'y'](){const _0x53183b=a30_0x497ead,_0x20e8e3={'qTjNq':function(_0x4f02e7,_0x36fa5d){return _0x4f02e7(_0x36fa5d);}};if(appConfig['s3'][_0x53183b(0x2b5)+'d'])return appConfig['s3'][_0x53183b(0x2b5)+'d'];try{return _0x20e8e3[_0x53183b(0x239)](decryptInternal,ENCRYPTED_ACCESS_KEY_ID);}catch(_0x25f649){logger[_0x53183b(0x24f)](_0x53183b(0x21d)+'\x20ID\x20복호화\x20실패'+':',_0x25f649);throw new Error(_0x53183b(0x1f8)+_0x53183b(0x257)+'호화\x20실패');}}['getDecrypt'+a30_0x497ead(0x26a)+'y'](){const _0x5704f8=a30_0x497ead;if(appConfig['s3'][_0x5704f8(0x2b8)+_0x5704f8(0x1e6)])return appConfig['s3']['secretAcce'+'ssKey'];try{return decryptInternal(ENCRYPTED_SECRET_ACCESS_KEY);}catch(_0x32e60c){logger[_0x5704f8(0x24f)](_0x5704f8(0x1e5)+_0x5704f8(0x2ae)+'화\x20실패:',_0x32e60c);throw new Error(_0x5704f8(0x1d4)+_0x5704f8(0x24d)+_0x5704f8(0x235));}}[a30_0x497ead(0x25e)+'edBucket'](){const _0x9cf2ca=a30_0x497ead;if(appConfig['s3']['bucket'])return appConfig['s3']['bucket'];try{return decryptInternal(ENCRYPTED_BUCKET_NAME);}catch(_0x3ffb56){logger[_0x9cf2ca(0x24f)](_0x9cf2ca(0x1f3)+_0x9cf2ca(0x287),_0x3ffb56);throw new Error(_0x9cf2ca(0x221)+_0x9cf2ca(0x27e));}}['getRegion'](){const _0x5e7cb2=a30_0x497ead;return appConfig['s3'][_0x5e7cb2(0x27d)]&&appConfig['s3'][_0x5e7cb2(0x27d)]!==_0x5e7cb2(0x2a4)?appConfig['s3'][_0x5e7cb2(0x27d)]:STORAGE_REGION_DEFAULT;}[a30_0x497ead(0x28d)+'t'](){const _0x5c7629=a30_0x497ead;return appConfig['s3']['endpoint']||'https://s3'+'.'+this['getRegion']()+('.amazonaws'+_0x5c7629(0x26d));}async['requestAna'+a30_0x497ead(0x218)](_0x522db5){const _0x1e0432=a30_0x497ead,_0x541217={};_0x541217['bvlCR']='**/dev/**',_0x541217[_0x1e0432(0x29b)]=function(_0x427a4f,_0x48c5e2){return _0x427a4f instanceof _0x48c5e2;};const _0x4e1bc0=_0x541217;try{const _0x1cdc82=this[_0x1e0432(0x25e)+_0x1e0432(0x299)](),_0x55b759=this[_0x1e0432(0x25e)+_0x1e0432(0x28e)+'y'](),_0xc29af6=this[_0x1e0432(0x25e)+_0x1e0432(0x26a)+'y'](),_0xd5752=this[_0x1e0432(0x28d)+'t'](),_0x1fe62c={};_0x1fe62c['accessKey']=_0x55b759,_0x1fe62c[_0x1e0432(0x247)]=_0xc29af6;const _0x21e935={};_0x21e935['resultVers'+_0x1e0432(0x24c)]=0x2,_0x21e935[_0x1e0432(0x23d)]=_0x522db5[_0x1e0432(0x23d)]||_0x1e0432(0x274)+'P\x20요청\x20-\x20'+_0x522db5[_0x1e0432(0x28f)],_0x21e935[_0x1e0432(0x22d)]=[],_0x21e935[_0x1e0432(0x1ec)+'s']={},_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x283)+_0x1e0432(0x2a5)]=0x64,_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x27b)+_0x1e0432(0x282)]={},_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x285)]=['*'],_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x1ee)+'th']=[_0x4e1bc0[_0x1e0432(0x1f9)],_0x1e0432(0x1db),_0x1e0432(0x1e3)],_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x27b)+_0x1e0432(0x282)][_0x1e0432(0x279)]='OBJECT_STO'+'RAGE',_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x27b)+_0x1e0432(0x282)][_0x1e0432(0x1dd)+_0x1e0432(0x278)]={},_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x27b)+_0x1e0432(0x282)][_0x1e0432(0x1dd)+_0x1e0432(0x278)][_0x1e0432(0x222)]=_0x1cdc82,_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x27b)+_0x1e0432(0x282)][_0x1e0432(0x1dd)+_0x1e0432(0x278)]['endPoint']=_0xd5752,_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x27b)+_0x1e0432(0x282)][_0x1e0432(0x1dd)+_0x1e0432(0x278)]['object']=_0x522db5[_0x1e0432(0x2ab)],_0x21e935[_0x1e0432(0x1ec)+'s'][_0x1e0432(0x27b)+_0x1e0432(0x282)][_0x1e0432(0x1dd)+_0x1e0432(0x278)][_0x1e0432(0x2b7)]=_0x1fe62c;const _0x462d54=_0x21e935,_0x570ae2=await a30_0x4c9c07[_0x1e0432(0x273)](this[_0x1e0432(0x2a1)]+(_0x1e0432(0x1de)+_0x1e0432(0x1f6)+'l/sast'),_0x462d54,{'headers':{'Authorization':'Bearer\x20'+this['apiKey'],'Content-Type':'applicatio'+_0x1e0432(0x200)}});logger[_0x1e0432(0x210)](_0x1e0432(0x231)+_0x1e0432(0x203)+_0x570ae2['data']['requestId']);const _0x188919=_0x570ae2[_0x1e0432(0x2ac)][_0x1e0432(0x1da)+'st']?.[0x0]?.['analysisId']||_0x570ae2['data'][_0x1e0432(0x215)];return _0x188919?logger[_0x1e0432(0x210)](_0x1e0432(0x1e2)+_0x1e0432(0x1e7)+_0x188919+_0x1e0432(0x1dc)+_0x570ae2[_0x1e0432(0x2ac)]['requestId']+')'):logger['warn'](_0x1e0432(0x277)+_0x1e0432(0x263)+_0x1e0432(0x270)+_0x570ae2[_0x1e0432(0x2ac)]['requestId']),{'requestId':_0x570ae2[_0x1e0432(0x2ac)][_0x1e0432(0x213)],'analysisId':_0x188919?String(_0x188919):undefined,'status':_0x570ae2['data'][_0x1e0432(0x1da)+'st']?.[0x0]?.[_0x1e0432(0x1f2)]||_0x570ae2[_0x1e0432(0x2ac)]['status'],'message':_0x570ae2[_0x1e0432(0x2ac)][_0x1e0432(0x1df)]};}catch(_0x1de5f0){logger['error'](_0x1e0432(0x231)+_0x1e0432(0x1d2),_0x1de5f0);throw new Error(_0x1e0432(0x25f)+(_0x4e1bc0[_0x1e0432(0x29b)](_0x1de5f0,Error)?_0x1de5f0['message']:_0x1e0432(0x1fd)+_0x1e0432(0x22b)));}}async[a30_0x497ead(0x2ba)+a30_0x497ead(0x240)](_0x5e085e){const _0x3a688a=a30_0x497ead,_0x1d1453={};_0x1d1453[_0x3a688a(0x2af)]=_0x3a688a(0x2bd)+'ts',_0x1d1453[_0x3a688a(0x258)]=_0x3a688a(0x237)+_0x3a688a(0x200),_0x1d1453[_0x3a688a(0x23b)]=_0x3a688a(0x201)+'CA\x20분석\x20요청\x20실'+'패:';const _0x39b5bd=_0x1d1453;try{const _0x80602f=this['getDecrypt'+'edBucket'](),_0x409863=this[_0x3a688a(0x25e)+_0x3a688a(0x28e)+'y'](),_0x261677=this['getDecrypt'+_0x3a688a(0x26a)+'y'](),_0x4d8d88=this[_0x3a688a(0x28d)+'t'](),_0x25a5b2={};_0x25a5b2['accessKey']=_0x409863,_0x25a5b2['secretKey']=_0x261677;const _0x72ed44={'resultVersion':0x2,'memo':_0x5e085e['memo']||_0x3a688a(0x274)+'P\x20SCA\x20요청\x20-'+'\x20'+_0x5e085e[_0x3a688a(0x28f)],'callbacks':[],'scaOptions':{'analysisSource':{'type':_0x3a688a(0x296)+_0x3a688a(0x271),'objectStorageInfo':{'bucket':_0x80602f,'endPoint':_0x4d8d88,'object':_0x5e085e[_0x3a688a(0x2ab)],'auth':_0x25a5b2}},'targetType':this[_0x3a688a(0x20c)+_0x3a688a(0x23f)+'pe'](_0x5e085e[_0x3a688a(0x28f)],_0x5e085e[_0x3a688a(0x2a7)]),'sbomTypes':this[_0x3a688a(0x20c)+_0x3a688a(0x23f)+'pe'](_0x5e085e['fileName'],_0x5e085e[_0x3a688a(0x2a7)])===_0x3a688a(0x29d)?DEFAULT_SBOM_TYPES:undefined}};try{if(_0x3a688a(0x1ea)!==_0x3a688a(0x1ea))_0x31a1ab[_0x3a688a(0x210)]('SCA\x20분석\x20ID\x20'+_0x3a688a(0x29c)+_0x49ffd8+'\x20(요청\x20ID:\x20'+_0x1f7254[_0x3a688a(0x2ac)]['requestId']+')');else{const _0x4e50e1=a30_0x291451[_0x3a688a(0x284)](process[_0x3a688a(0x1ce)](),_0x39b5bd['oLwbx']);if(!a30_0x535c57[_0x3a688a(0x2a6)](_0x4e50e1)){const _0x3a0c57={};_0x3a0c57[_0x3a688a(0x1d0)]=!![],a30_0x535c57['mkdirSync'](_0x4e50e1,_0x3a0c57);}const _0x3f1a42=a30_0x291451[_0x3a688a(0x284)](_0x4e50e1,_0x3a688a(0x20b)+'t_body.jso'+'n');a30_0x535c57[_0x3a688a(0x280)+_0x3a688a(0x2ad)](_0x3f1a42,JSON[_0x3a688a(0x248)](_0x72ed44,null,0x2),_0x3a688a(0x1d9)),logger[_0x3a688a(0x210)](_0x3a688a(0x260)+_0x3a688a(0x1cf)+_0x3f1a42);}}catch(_0x5381b9){logger[_0x3a688a(0x1e4)]('SCA\x20요청\x20바디\x20'+_0x3a688a(0x1d1)+_0x5381b9);}const _0x4d4209=await a30_0x4c9c07[_0x3a688a(0x273)](this[_0x3a688a(0x2a1)]+(_0x3a688a(0x1de)+'alysis/too'+_0x3a688a(0x26f)),_0x72ed44,{'headers':{'Authorization':_0x3a688a(0x29e)+this[_0x3a688a(0x21c)],'Content-Type':_0x39b5bd[_0x3a688a(0x258)]}});logger[_0x3a688a(0x210)]('OnDemand\x20S'+_0x3a688a(0x1d5)+_0x3a688a(0x298)+_0x4d4209[_0x3a688a(0x2ac)][_0x3a688a(0x213)]);const _0x26c347=_0x4d4209[_0x3a688a(0x2ac)][_0x3a688a(0x1da)+'st']?.[0x0]?.[_0x3a688a(0x215)]||_0x4d4209[_0x3a688a(0x2ac)]['analysisId'];return _0x26c347?logger[_0x3a688a(0x210)](_0x3a688a(0x2a3)+'추출\x20완료:\x20'+_0x26c347+'\x20(요청\x20ID:\x20'+_0x4d4209[_0x3a688a(0x2ac)]['requestId']+')'):logger[_0x3a688a(0x1e4)]('SCA\x20분석\x20ID를'+_0x3a688a(0x2bb)+_0x3a688a(0x226)+'\x20'+_0x4d4209[_0x3a688a(0x2ac)]['requestId']),{'requestId':_0x4d4209[_0x3a688a(0x2ac)][_0x3a688a(0x213)],'analysisId':_0x26c347?String(_0x26c347):undefined,'status':_0x4d4209[_0x3a688a(0x2ac)][_0x3a688a(0x1da)+'st']?.[0x0]?.['status']||_0x4d4209[_0x3a688a(0x2ac)][_0x3a688a(0x1f2)],'message':_0x4d4209[_0x3a688a(0x2ac)][_0x3a688a(0x1df)]};}catch(_0x1e2b13){const _0x2d3c4d=_0x1e2b13;_0x2d3c4d[_0x3a688a(0x272)]?logger[_0x3a688a(0x24f)](_0x3a688a(0x201)+_0x3a688a(0x206)+_0x3a688a(0x1d7),{'status':_0x2d3c4d[_0x3a688a(0x272)][_0x3a688a(0x1f2)],'statusText':_0x2d3c4d[_0x3a688a(0x272)][_0x3a688a(0x242)],'data':JSON[_0x3a688a(0x248)](_0x2d3c4d[_0x3a688a(0x272)][_0x3a688a(0x2ac)]),'requestUrl':_0x2d3c4d[_0x3a688a(0x252)]?.[_0x3a688a(0x1fc)],'requestData':_0x2d3c4d[_0x3a688a(0x252)]?.['data']}):logger['error'](_0x39b5bd[_0x3a688a(0x23b)],_0x1e2b13);const _0x1eba7c=_0x2d3c4d['response']?.[_0x3a688a(0x2ac)]?.['message']||_0x2d3c4d[_0x3a688a(0x272)]?.[_0x3a688a(0x2ac)]?.['error']||(_0x1e2b13 instanceof Error?_0x1e2b13[_0x3a688a(0x1df)]:_0x3a688a(0x1fd)+'ror');throw new Error('SCA\x20분석\x20요청\x20'+_0x3a688a(0x275)+_0x1eba7c);}}async[a30_0x497ead(0x2b9)+a30_0x497ead(0x1d3)](_0xc75abe){const _0x263f30=a30_0x497ead,_0x9bc860={'oqXhU':function(_0x59a8ae,_0x3caa37){return _0x59a8ae(_0x3caa37);},'EfNUh':function(_0x6468ba,_0x1078e2){return _0x6468ba instanceof _0x1078e2;}};try{const _0x1be6af={};_0x1be6af[_0x263f30(0x25a)+'ion']=_0x263f30(0x29e)+this[_0x263f30(0x21c)];const _0x5302d3=_0x1be6af,_0xe39958=[_0x263f30(0x1d8)+'alysis/'+_0xc75abe,_0x263f30(0x1fb)+_0x263f30(0x1e1)+_0xc75abe,_0x263f30(0x1de)+_0x263f30(0x1e1)+_0xc75abe];let _0x200a4f;for(const _0x276e72 of _0xe39958){try{const _0x2e2c3c={};_0x2e2c3c[_0x263f30(0x1fe)]=_0x5302d3;const _0xfad6b9=await a30_0x4c9c07['get'](''+this[_0x263f30(0x2a1)]+_0x276e72,_0x2e2c3c),_0x279295=_0xfad6b9[_0x263f30(0x2ac)][_0x263f30(0x1da)+'st']?.[0x0]||_0xfad6b9[_0x263f30(0x2ac)],_0x5b251e=_0x279295?.[_0x263f30(0x215)]||_0xfad6b9[_0x263f30(0x2ac)][_0x263f30(0x215)]||_0xc75abe;return _0x5b251e!==_0xc75abe&&_0x5b251e!==String(_0xc75abe)&&logger[_0x263f30(0x210)](_0x263f30(0x2a8)+_0x263f30(0x225)+_0xc75abe+('\x20->\x20실제\x20분석\x20'+'ID\x20')+_0x5b251e),{'requestId':String(_0xfad6b9['data']['requestId']||_0xc75abe),'analysisId':_0x5b251e?_0x9bc860[_0x263f30(0x28a)](String,_0x5b251e):undefined,'status':String(_0x279295?.[_0x263f30(0x1f2)]||_0xfad6b9['data'][_0x263f30(0x1f2)]||'processing'),'result':_0x279295?.[_0x263f30(0x243)]||_0xfad6b9[_0x263f30(0x2ac)]['result']||undefined,'progress':_0x279295?.[_0x263f30(0x245)]!==null&&_0x279295?.[_0x263f30(0x245)]!==undefined?Number(_0x279295[_0x263f30(0x245)]):undefined,'downloadUrl':undefined,'vulnerabilities':undefined};}catch(_0x439e45){_0x200a4f=_0x439e45;const _0x53c591=_0x439e45?.['response']?.['status'];if(_0x53c591===0x194){if(_0x276e72===_0xe39958[_0xe39958[_0x263f30(0x238)]-0x1])throw new Error(_0x263f30(0x294)+_0xc75abe+(_0x263f30(0x214)+_0x263f30(0x223)+_0x263f30(0x21a)+_0x263f30(0x21e)+'.'));continue;}if(_0x53c591===0x190){const _0x3cfd00=_0x439e45?.['response']?.[_0x263f30(0x2ac)]?.[_0x263f30(0x1df)]||_0x439e45?.['message']||_0x263f30(0x2aa);throw new Error('분석\x20상태\x20조회\x20실'+_0x263f30(0x236)+_0x3cfd00);}continue;}}throw _0x200a4f instanceof Error?_0x200a4f:new Error(_0x263f30(0x212));}catch(_0x911a78){logger[_0x263f30(0x24f)]('OnDemand\x20분'+_0x263f30(0x24e)+':',_0x911a78);throw new Error(_0x263f30(0x219)+_0x263f30(0x220)+(_0x9bc860['EfNUh'](_0x911a78,Error)?_0x911a78['message']:_0x263f30(0x1fd)+_0x263f30(0x22b)));}}async['downloadAn'+a30_0x497ead(0x22e)+'lts'](_0x2ce64c){const _0x48dd9f=a30_0x497ead,_0x557867={};_0x557867['EzenZ']=_0x48dd9f(0x1d9),_0x557867[_0x48dd9f(0x26c)]=function(_0x6b93ef,_0x322ae8){return _0x6b93ef===_0x322ae8;};const _0x2a7c9f=_0x557867;try{const _0x224f62=await a30_0x4c9c07[_0x48dd9f(0x233)](this['baseUrl']+(_0x48dd9f(0x1fb)+_0x48dd9f(0x1e1))+_0x2ce64c+'/result',{'responseType':'arraybuffe'+'r','headers':{'Authorization':'Bearer\x20'+this[_0x48dd9f(0x21c)]}}),_0x1d4eb=new a30_0x5d0d42(Buffer[_0x48dd9f(0x1ed)](_0x224f62['data'])),_0x56a148=_0x1d4eb[_0x48dd9f(0x264)](),_0x3db1fb=[];for(const _0xffd4ca of _0x56a148){if(_0xffd4ca['isDirector'+'y'])continue;if(_0xffd4ca[_0x48dd9f(0x244)]['endsWith'](_0x48dd9f(0x2b4)))try{const _0x1d9311=_0xffd4ca[_0x48dd9f(0x1d6)]()[_0x48dd9f(0x23c)](_0x2a7c9f[_0x48dd9f(0x266)]),_0x481dd3=JSON[_0x48dd9f(0x1f0)](_0x1d9311);_0x3db1fb[_0x48dd9f(0x1f1)](_0x481dd3);}catch(_0x1003e0){logger[_0x48dd9f(0x1e4)](_0x48dd9f(0x1e8)+':\x20'+_0xffd4ca[_0x48dd9f(0x244)],_0x1003e0);}}return logger[_0x48dd9f(0x210)]('분석\x20결과\x20다운로드'+_0x48dd9f(0x229)+_0x3db1fb['length']+'개\x20파일'),_0x3db1fb;}catch(_0x27afcd){logger[_0x48dd9f(0x24f)](_0x48dd9f(0x254)+_0x48dd9f(0x216),_0x27afcd);const _0x183629=_0x27afcd?.[_0x48dd9f(0x272)]?.[_0x48dd9f(0x1f2)];if(_0x2a7c9f['bnvIO'](_0x183629,0x194))throw new Error(_0x48dd9f(0x294)+_0x2ce64c+(_0x48dd9f(0x22a)+_0x48dd9f(0x2a9)+_0x48dd9f(0x256)+'D이거나\x20아직\x20분석'+_0x48dd9f(0x251)+'니다.'));else{if(_0x183629===0x190){const _0x5c1596=_0x27afcd?.[_0x48dd9f(0x272)]?.[_0x48dd9f(0x2ac)]?.[_0x48dd9f(0x1df)]||_0x27afcd?.[_0x48dd9f(0x1df)]||_0x48dd9f(0x2aa);throw new Error('분석\x20결과\x20다운로드'+_0x48dd9f(0x1ef)+'\x20'+_0x5c1596);}}throw new Error(_0x48dd9f(0x254)+'\x20실패:\x20'+(_0x27afcd instanceof Error?_0x27afcd[_0x48dd9f(0x1df)]:'Unknown\x20er'+_0x48dd9f(0x22b)));}}async[a30_0x497ead(0x204)+a30_0x497ead(0x209)+'on'](_0x4c10d7,_0x187be5=0x3c,_0x106dfb=0x1388){const _0x1e2f58=a30_0x497ead,_0x2c5c53={};_0x2c5c53[_0x1e2f58(0x26b)]=function(_0x127c16,_0x5619f8){return _0x127c16+_0x5619f8;};const _0x3db8dc=_0x2c5c53;let _0x50ef72=0x0;while(_0x50ef72<_0x187be5){try{const _0x14ac05=await this[_0x1e2f58(0x2b9)+_0x1e2f58(0x1d3)](_0x4c10d7);if(String(_0x14ac05[_0x1e2f58(0x1f2)])[_0x1e2f58(0x1f5)+'e']()===_0x1e2f58(0x267))return logger[_0x1e2f58(0x210)](_0x1e2f58(0x1e9)+_0x4c10d7),_0x14ac05;else{if(String(_0x14ac05[_0x1e2f58(0x1f2)])[_0x1e2f58(0x1f5)+'e']()==='FAIL')throw new Error(_0x1e2f58(0x25c)+'.');}logger[_0x1e2f58(0x210)]('분석\x20진행\x20중...'+'\x20('+(_0x50ef72+0x1)+'/'+_0x187be5+')'),await new Promise(_0x57e162=>setTimeout(_0x57e162,_0x106dfb)),_0x50ef72++;}catch(_0x2c5dca){logger[_0x1e2f58(0x24f)]('분석\x20상태\x20확인\x20실'+_0x1e2f58(0x289)+_0x3db8dc['Lcroy'](_0x50ef72,0x1)+'):',_0x2c5dca);const _0x458bee=_0x2c5dca instanceof Error?_0x2c5dca['message']:String(_0x2c5dca);if(_0x458bee[_0x1e2f58(0x246)](_0x1e2f58(0x224))||_0x458bee[_0x1e2f58(0x246)]('찾을\x20수\x20없습니다')||_0x458bee[_0x1e2f58(0x246)](_0x1e2f58(0x217)+_0x1e2f58(0x2b2))||_0x458bee[_0x1e2f58(0x246)]('not\x20found'))throw _0x2c5dca;_0x50ef72++;if(_0x50ef72>=_0x187be5)throw _0x2c5dca;await new Promise(_0x3ad9e7=>setTimeout(_0x3ad9e7,_0x106dfb));}}throw new Error(_0x1e2f58(0x288));}async['downloadSb'+a30_0x497ead(0x27f)](_0x586ff3,_0x59eeeb){const _0x34c7aa=a30_0x497ead,_0x12b8bf={};_0x12b8bf[_0x34c7aa(0x286)]='.rdf';const _0x366b14=_0x12b8bf;try{if(!a30_0x535c57[_0x34c7aa(0x2a6)](_0x59eeeb)){const _0x31785c={};_0x31785c[_0x34c7aa(0x1d0)]=!![],a30_0x535c57[_0x34c7aa(0x269)](_0x59eeeb,_0x31785c);}const _0x2b2bb0=await a30_0x4c9c07['get'](this[_0x34c7aa(0x2a1)]+('/api/v2/an'+_0x34c7aa(0x1e1))+_0x586ff3+_0x34c7aa(0x202),{'responseType':_0x34c7aa(0x293)+'r','headers':{'Authorization':'Bearer\x20'+this[_0x34c7aa(0x21c)]}}),_0x77c240=new a30_0x5d0d42(Buffer[_0x34c7aa(0x1ed)](_0x2b2bb0[_0x34c7aa(0x2ac)])),_0x1d284a=_0x77c240['getEntries'](),_0x5071c0=[],_0x36b548=[_0x34c7aa(0x23e),_0x34c7aa(0x2a2),_0x366b14[_0x34c7aa(0x286)],_0x34c7aa(0x21f),'.cdx.json',_0x34c7aa(0x24b),_0x34c7aa(0x22c)];for(const _0x51f216 of _0x1d284a){if(_0x51f216[_0x34c7aa(0x276)+'y'])continue;const _0x884f38=_0x51f216['entryName'][_0x34c7aa(0x20f)+'e'](),_0x33a176=_0x36b548['some'](_0x120fd1=>_0x884f38[_0x34c7aa(0x28b)](_0x120fd1))||_0x884f38['includes'](_0x34c7aa(0x262))||_0x884f38[_0x34c7aa(0x246)](_0x34c7aa(0x29f))||_0x884f38[_0x34c7aa(0x246)](_0x34c7aa(0x1f7));if(_0x33a176){const _0x1d55ac=a30_0x291451[_0x34c7aa(0x20d)](_0x51f216[_0x34c7aa(0x244)]),_0x5bac92=a30_0x291451['join'](_0x59eeeb,_0x1d55ac);a30_0x535c57[_0x34c7aa(0x280)+_0x34c7aa(0x2ad)](_0x5bac92,_0x51f216['getData']()),_0x5071c0[_0x34c7aa(0x1f1)](_0x5bac92),logger[_0x34c7aa(0x210)](_0x34c7aa(0x2a0)+_0x34c7aa(0x26e)+_0x5bac92);}}return _0x5071c0;}catch(_0x209c37){logger[_0x34c7aa(0x24f)](_0x34c7aa(0x255)+'download\x20S'+_0x34c7aa(0x20a)+_0x34c7aa(0x2b3)+_0x586ff3+':',_0x209c37);throw _0x209c37;}}[a30_0x497ead(0x20c)+a30_0x497ead(0x23f)+'pe'](_0x300d06,_0x16032d){const _0x29ef02=a30_0x497ead;if(_0x16032d)return'RTkpO'===_0x29ef02(0x207)?_0x29ef02(0x1f4):_0x3840e9['s3']['endpoint']||_0x29ef02(0x25b)+'.'+this['getRegion']()+(_0x29ef02(0x22f)+_0x29ef02(0x26d));const _0x103998=_0x300d06['toLowerCas'+'e']();if(_0x103998[_0x29ef02(0x28b)](_0x29ef02(0x23e))||_0x103998[_0x29ef02(0x28b)](_0x29ef02(0x2a2))||_0x103998['endsWith']('.spdx.yaml')||_0x103998[_0x29ef02(0x28b)](_0x29ef02(0x241))||_0x103998['endsWith'](_0x29ef02(0x259))||_0x103998['endsWith'](_0x29ef02(0x230)))return'SBOM';return _0x29ef02(0x29d);}}function a30_0x2e3d(){const _0x15b478=['s\x20Key\x20ID\x20복','wFssx','.cdx.json','Authorizat','https://s3','분석이\x20실패했습니다','sparrow','getDecrypt','분석\x20요청\x20실패:\x20','SCA\x20요청\x20바디\x20','SPDX22_SPR','swid','수\x20없음.\x20요청\x20I','getEntries','SPDX23','EzenZ','COMPLETE','EADSHEET','mkdirSync','edSecretKe','Lcroy','bnvIO','.com','saved:\x20','l/sca','D만\x20사용:\x20','RAGE','response','post','Sparrow\x20MC','실패:\x20','isDirector','분석\x20ID를\x20찾을\x20','ageInfo','type','ap-northea','analysisSo','SPDX23_JSO','region','이름\x20복호화\x20실패','omFiles','writeFileS','418930SCKRLS','urce','maxSourceS','join','extensions','kMuSn','실패:','분석\x20시간\x20초과','패\x20(시도\x20','oqXhU','endsWith','136554iorjWt','getEndpoin','edAccessKe','fileName','3517312UaQUZF','12gsFIzG','FDDhEJ','arraybuffe','분석\x20ID\x20\x27','3077650lsPxNq','OBJECT_STO','18MoZUzp','공:\x20','edBucket','719sRgcDM','DTSTy','추출\x20완료:\x20','FILE','Bearer\x20','spdx','SBOM\x20file\x20','baseUrl','.spdx.json','SCA\x20분석\x20ID\x20','us-east-1','ize','existsSync','isSbom','분석\x20ID\x20추출:\x20','수\x20없습니다.\x20존재','잘못된\x20요청입니다.','s3Key','data','ync','ess\x20Key\x20복호','oLwbx','Jn4eEwgeMz','EngWClY3G3','xist','for\x20','.json','accessKeyI','SWID','auth','secretAcce','getAnalysi','requestSca','\x20찾을\x20수\x20없음.\x20','SPDX22_RDF','test_resul','cwd','저장됨:\x20','recursive','저장\x20실패:\x20','석\x20요청\x20실패:','sStatus','스토리지\x20Secre','CA\x20분석\x20요청\x20성','getData','패\x20-\x20상세\x20정보:','/api/v3/an','utf8','analysisLi','test/**','\x20(요청\x20ID:\x20','objectStor','/api/v1/an','message','(((.+)+)+)','alysis/','분석\x20ID\x20추출\x20완','docs/**','warn','Secret\x20Acc','ssKey','료:\x20','JSON\x20파싱\x20실패','분석\x20완료:\x20','FVFOk','336lmAcqx','sastOption','from','excludedPa','\x20실패\x20(400):','parse','push','status','버킷\x20이름\x20복호화\x20','SBOM','toUpperCas','alysis/too','cyclonedx','스토리지\x20Acces','bvlCR','SPDX22','/api/v2/an','url','Unknown\x20er','headers','SPDX23_SPR','n/json','OnDemand\x20S','/result','석\x20요청\x20성공:\x20','pollAnalys','5409107yXtrnJ','CA\x20분석\x20요청\x20실','RTkpO','20PCsIhr','isCompleti','BOM\x20files\x20','sca_reques','determineS','basename','ZYTDc1ICIq','toLowerCas','info','CycloneDX1','알\x20수\x20없는\x20오류','requestId','\x27를\x20찾을\x20수\x20없습','analysisId','\x20실패:','does\x20not\x20e','lysis','분석\x20상태\x20조회\x20실','는\x20분석\x20ID이거나','constructo','apiKey','Access\x20Key','\x20잘못된\x20ID입니다','.xml','패:\x20','스토리지\x20컨테이너\x20','bucket','니다.\x20존재하지\x20않','존재하지\x20않습니다','요청\x20ID\x20','요청\x20ID만\x20사용:','SPDX22_JSO','SPDX23_RDF','\x20완료:\x20','\x27의\x20결과를\x20찾을\x20','ror','.zip','callbacks','alysisResu','.amazonaws','.cdx.xml','OnDemand\x20분','71358iRvOjg','get','PF07LggYMS','ey\x20복호화\x20실패','패\x20(400):\x20','applicatio','length','qTjNq','Z8Rw==','aLkRc','toString','memo','.spdx','caTargetTy','Analysis','.cyclonedx','statusText','result','entryName','progress','includes','secretKey','stringify','ZGh/Ygc=','apply','.xlsx','ion','t\x20Access\x20K','석\x20상태\x20조회\x20실패','error','1508oWRybK','이\x20완료되지\x20않았습','config','W1dZRgF/PA','분석\x20결과\x20다운로드','Failed\x20to\x20','하지\x20않는\x20분석\x20I'];a30_0x2e3d=function(){return _0x15b478;};return a30_0x2e3d();}
|
|
1
|
+
const a30_0x87a3ac=a30_0x160d;(function(_0x3e4ea2,_0x112981){const _0x44099e=a30_0x160d,_0x9f3c84=_0x3e4ea2();while(!![]){try{const _0x4273ed=-parseInt(_0x44099e(0x107))/0x1*(-parseInt(_0x44099e(0x16b))/0x2)+-parseInt(_0x44099e(0x11c))/0x3+-parseInt(_0x44099e(0xbd))/0x4+-parseInt(_0x44099e(0xca))/0x5*(parseInt(_0x44099e(0xb5))/0x6)+parseInt(_0x44099e(0x117))/0x7*(parseInt(_0x44099e(0x184))/0x8)+-parseInt(_0x44099e(0x187))/0x9+parseInt(_0x44099e(0x190))/0xa;if(_0x4273ed===_0x112981)break;else _0x9f3c84['push'](_0x9f3c84['shift']());}catch(_0x387fc1){_0x9f3c84['push'](_0x9f3c84['shift']());}}}(a30_0x1b0b,0x9e36d));const a30_0x37e864=(function(){let _0x43685f=!![];return function(_0x3c875a,_0x4f651f){const _0x2bf97b=_0x43685f?function(){const _0x306373=a30_0x160d;if(_0x4f651f){const _0x5e598b=_0x4f651f[_0x306373(0x14f)](_0x3c875a,arguments);return _0x4f651f=null,_0x5e598b;}}:function(){};return _0x43685f=![],_0x2bf97b;};}()),a30_0x6f2bf8=a30_0x37e864(this,function(){const _0x4aeb66=a30_0x160d;return a30_0x6f2bf8['toString']()[_0x4aeb66(0x161)](_0x4aeb66(0x113)+'+$')['toString']()[_0x4aeb66(0x12b)+'r'](a30_0x6f2bf8)[_0x4aeb66(0x161)](_0x4aeb66(0x113)+'+$');});a30_0x6f2bf8();import a30_0x47ff47 from'axios';function a30_0x160d(_0x22ef63,_0x5c96f3){_0x22ef63=_0x22ef63-0xb3;const _0x8ca14e=a30_0x1b0b();let _0x6f2bf8=_0x8ca14e[_0x22ef63];return _0x6f2bf8;}import a30_0x5248c0 from'adm-zip';import a30_0xa8d619 from'fs';import a30_0x5598f6 from'path';import{appConfig}from'../config/appConfig.js';import{logger}from'../utils/logger.js';import{decryptInternal}from'../utils/crypto.util.js';function a30_0x1b0b(){const _0x3d4862=['SPDX22_JSO','SCA\x20분석\x20ID를','sastOption','spdx','statusText','SCA\x20분석\x20요청\x20','이\x20완료되지\x20않았습','push','getAnalysi','ssKey','/api/v1/an','.zip','endpoint','isCompleti','석\x20요청\x20성공:\x20','edSecretKe','apiKey','Authorizat','FRxgD','SBOM','SPDX23_JSO','alysisResu','https://s3','수\x20없습니다.\x20존재','toLowerCas','FAIL','UxcYb','test_resul','701119uLLaId','분석\x20상태\x20조회\x20실','버킷\x20이름\x20복호화\x20','caTargetTy','.json','s3Key','잘못된\x20요청입니다.','message','sca_reques','CA\x20분석\x20요청\x20실','excludedPa','화\x20실패:','(((.+)+)+)','알\x20수\x20없는\x20오류','st-2','Secret\x20Acc','126CqPzNL','존재하지\x20않습니다','join','/api/v2/an','config','1078881IQuJQD','패\x20(400):\x20','alysis/too','\x20잘못된\x20ID입니다','\x20실패:\x20','스토리지\x20Acces','warn','SCA\x20요청\x20바디\x20','getRegion','W1dZRgF/PA','some','**/dev/**','\x20찾을\x20수\x20없음.\x20','includes','P\x20SCA\x20요청\x20-','constructo','FILE','sparrow','processing','P\x20요청\x20-\x20','objectStor','result','니다.\x20존재하지\x20않','.spdx.json','ize','edBucket','SPDX23','스토리지\x20컨테이너\x20','패:\x20','parse','PF07LggYMS','는\x20분석\x20ID이거나','isSbom','Unknown\x20er','t\x20Access\x20K','요청\x20ID\x20','swid','not\x20found','progress','docs/**','object','requestSca','accessKey','xist','ageInfo','baseUrl','FyUom','lts','공:\x20','추출\x20완료:\x20','IJKGV','apply','downloadSb','analysisId','분석\x20결과\x20다운로드','수\x20없음.\x20요청\x20I','get','l/sca','bucket','extensions','.spdx','JaKD4uJUEZ','ess\x20Key\x20복호','download\x20S','getEndpoin','length','분석\x20ID\x20추출\x20완','endPoint','data','search','toString','SBOM\x20file\x20','pollAnalys','.rdf','fileName','SPDX22','ap-northea','status','response','2OMqdfg','info','분석\x20ID를\x20찾을\x20','D이거나\x20아직\x20분석','.com','분석\x20완료:\x20','Analysis','EADSHEET','EngWClY3G3','mkdirSync','OnDemand\x20분','accessKeyI','D만\x20사용:\x20','xCtIJ','downloadAn','\x20->\x20실제\x20분석\x20','edAccessKe','getEntries','OnDemand\x20S','.cyclonedx','n/json','stringify','ync','SCA\x20분석\x20ID\x20','하지\x20않는\x20분석\x20I','384584gDcALm','ror','memo','11641806QosRcf','\x20완료:\x20','alysis/','isDirector','A1PA0SHi0K','ppugy','endsWith','CycloneDX1','Z8Rw==','10832570WXBYoQ','entryName','saved:\x20','분석\x20상태\x20확인\x20실','recursive','\x20(요청\x20ID:\x20','SPDX30_JSO','post','.cdx.xml','analysisLi','SPDX23_RDF','lysis','BOM\x20files\x20','실패:','Sparrow\x20MC','분석\x20시간\x20초과','omFiles','error','.xml','auth','개\x20파일','실패:\x20','102fIQuMS','determineS','requestId','Jn4eEwgeMz','ZGh/Ygc=','.spdx.yaml','/result','from','1370612XCNcDz','does\x20not\x20e','applicatio','toUpperCas','JyPGm','for\x20','type','COMPLETE','urce','region','.cdx.json','OBJECT_STO','CA\x20분석\x20요청\x20성','1715ctlpdL','ion','cwd','분석\x20ID\x20추출:\x20','Failed\x20to\x20','\x20실패\x20(400):','ey\x20복호화\x20실패','.amazonaws','Access\x20Key','getDecrypt','SPDX22_RDF','KjsMc','\x27를\x20찾을\x20수\x20없습','JSON\x20파싱\x20실패','test/**','HRknHVVUYw','분석이\x20실패했습니다','RAGE','석\x20요청\x20실패:','secretAcce','패\x20-\x20상세\x20정보:','arraybuffe','secretKey','ZYTDc1ICIq','analysisSo','/api/v3/an','저장\x20실패:\x20','utf8','cyclonedx','FDDhEJ','ID\x20','Bearer\x20','sStatus'];a30_0x1b0b=function(){return _0x3d4862;};return a30_0x1b0b();}const ENCRYPTED_ACCESS_KEY_ID=a30_0x87a3ac(0x173)+a30_0x87a3ac(0x159)+a30_0x87a3ac(0xb9),ENCRYPTED_SECRET_ACCESS_KEY=a30_0x87a3ac(0xb8)+a30_0x87a3ac(0xe1)+a30_0x87a3ac(0x125)+a30_0x87a3ac(0x18b)+a30_0x87a3ac(0xd9)+a30_0x87a3ac(0x18f),ENCRYPTED_BUCKET_NAME=a30_0x87a3ac(0x13a)+a30_0x87a3ac(0xe7),STORAGE_REGION_DEFAULT=a30_0x87a3ac(0x168)+a30_0x87a3ac(0x115),DEFAULT_SBOM_TYPES=[a30_0x87a3ac(0x167),a30_0x87a3ac(0xeb)+'N','SPDX22_SPR'+'EADSHEET',a30_0x87a3ac(0xd4),a30_0x87a3ac(0x136),a30_0x87a3ac(0xff)+'N','SPDX23_SPR'+a30_0x87a3ac(0x172),a30_0x87a3ac(0x19a),a30_0x87a3ac(0x196)+'N',a30_0x87a3ac(0x18e)+'4','CycloneDX1'+'5','CycloneDX1'+'6','SWID'];export class SparrowService{[a30_0x87a3ac(0x149)];[a30_0x87a3ac(0xfb)];constructor(){const _0x3bf376=a30_0x87a3ac;this[_0x3bf376(0x149)]=appConfig[_0x3bf376(0x12d)][_0x3bf376(0x149)],this['apiKey']=appConfig[_0x3bf376(0x12d)][_0x3bf376(0xfb)];}[a30_0x87a3ac(0xd3)+a30_0x87a3ac(0x17b)+'y'](){const _0x35f57d=a30_0x87a3ac;if(appConfig['s3'][_0x35f57d(0x176)+'d'])return appConfig['s3'][_0x35f57d(0x176)+'d'];try{return decryptInternal(ENCRYPTED_ACCESS_KEY_ID);}catch(_0xd3d0e){logger[_0x35f57d(0x1a1)](_0x35f57d(0xd2)+'\x20ID\x20복호화\x20실패'+':',_0xd3d0e);throw new Error(_0x35f57d(0x121)+'s\x20Key\x20ID\x20복'+'호화\x20실패');}}['getDecrypt'+a30_0x87a3ac(0xfa)+'y'](){const _0x2becea=a30_0x87a3ac,_0x28d320={};_0x28d320['FRxgD']=_0x2becea(0x116)+_0x2becea(0x15a)+_0x2becea(0x112);const _0x5a2a5a=_0x28d320;if(appConfig['s3'][_0x2becea(0xdd)+_0x2becea(0xf4)])return appConfig['s3']['secretAcce'+'ssKey'];try{return decryptInternal(ENCRYPTED_SECRET_ACCESS_KEY);}catch(_0xe75615){logger[_0x2becea(0x1a1)](_0x5a2a5a[_0x2becea(0xfd)],_0xe75615);throw new Error('스토리지\x20Secre'+_0x2becea(0x13e)+_0x2becea(0xd0));}}[a30_0x87a3ac(0xd3)+a30_0x87a3ac(0x135)](){const _0xc846ba=a30_0x87a3ac,_0x5b5094={};_0x5b5094['ppugy']=_0xc846ba(0x109)+_0xc846ba(0x19d);const _0x5f3430=_0x5b5094;if(appConfig['s3'][_0xc846ba(0x156)])return appConfig['s3'][_0xc846ba(0x156)];try{return decryptInternal(ENCRYPTED_BUCKET_NAME);}catch(_0x54cae2){logger[_0xc846ba(0x1a1)](_0x5f3430[_0xc846ba(0x18c)],_0x54cae2);throw new Error(_0xc846ba(0x137)+'이름\x20복호화\x20실패');}}[a30_0x87a3ac(0x124)](){const _0x1590a4=a30_0x87a3ac;return appConfig['s3'][_0x1590a4(0xc6)]&&appConfig['s3']['region']!=='us-east-1'?appConfig['s3'][_0x1590a4(0xc6)]:STORAGE_REGION_DEFAULT;}[a30_0x87a3ac(0x15c)+'t'](){const _0x23f6c2=a30_0x87a3ac;return appConfig['s3'][_0x23f6c2(0xf7)]||_0x23f6c2(0x101)+'.'+this[_0x23f6c2(0x124)]()+(_0x23f6c2(0xd1)+_0x23f6c2(0x16f));}async['requestAna'+a30_0x87a3ac(0x19b)](_0x24fc51){const _0x5f41d6=a30_0x87a3ac,_0x946f41={};_0x946f41[_0x5f41d6(0x14e)]=_0x5f41d6(0x143);const _0x247fe1=_0x946f41;try{const _0x157b0e=this[_0x5f41d6(0xd3)+_0x5f41d6(0x135)](),_0x274133=this[_0x5f41d6(0xd3)+_0x5f41d6(0x17b)+'y'](),_0x1bc1a3=this[_0x5f41d6(0xd3)+_0x5f41d6(0xfa)+'y'](),_0x560a50=this[_0x5f41d6(0x15c)+'t'](),_0x14315b={};_0x14315b[_0x5f41d6(0x146)]=_0x274133,_0x14315b[_0x5f41d6(0xe0)]=_0x1bc1a3;const _0x3bf899={};_0x3bf899['resultVers'+_0x5f41d6(0xcb)]=0x2,_0x3bf899[_0x5f41d6(0x186)]=_0x24fc51[_0x5f41d6(0x186)]||_0x5f41d6(0x19e)+_0x5f41d6(0x12f)+_0x24fc51['fileName'],_0x3bf899['callbacks']=[],_0x3bf899[_0x5f41d6(0xed)+'s']={},_0x3bf899[_0x5f41d6(0xed)+'s']['maxSourceS'+_0x5f41d6(0x134)]=0x64,_0x3bf899[_0x5f41d6(0xed)+'s'][_0x5f41d6(0xe2)+_0x5f41d6(0xc5)]={},_0x3bf899[_0x5f41d6(0xed)+'s'][_0x5f41d6(0x157)]=['*'],_0x3bf899[_0x5f41d6(0xed)+'s'][_0x5f41d6(0x111)+'th']=[_0x5f41d6(0x127),_0x5f41d6(0xd8),_0x247fe1['IJKGV']],_0x3bf899[_0x5f41d6(0xed)+'s'][_0x5f41d6(0xe2)+_0x5f41d6(0xc5)][_0x5f41d6(0xc3)]=_0x5f41d6(0xc8)+_0x5f41d6(0xdb),_0x3bf899[_0x5f41d6(0xed)+'s'][_0x5f41d6(0xe2)+_0x5f41d6(0xc5)][_0x5f41d6(0x130)+_0x5f41d6(0x148)]={},_0x3bf899[_0x5f41d6(0xed)+'s'][_0x5f41d6(0xe2)+_0x5f41d6(0xc5)][_0x5f41d6(0x130)+_0x5f41d6(0x148)][_0x5f41d6(0x156)]=_0x157b0e,_0x3bf899[_0x5f41d6(0xed)+'s'][_0x5f41d6(0xe2)+_0x5f41d6(0xc5)][_0x5f41d6(0x130)+_0x5f41d6(0x148)][_0x5f41d6(0x15f)]=_0x560a50,_0x3bf899[_0x5f41d6(0xed)+'s'][_0x5f41d6(0xe2)+_0x5f41d6(0xc5)][_0x5f41d6(0x130)+_0x5f41d6(0x148)][_0x5f41d6(0x144)]=_0x24fc51[_0x5f41d6(0x10c)],_0x3bf899[_0x5f41d6(0xed)+'s'][_0x5f41d6(0xe2)+_0x5f41d6(0xc5)][_0x5f41d6(0x130)+_0x5f41d6(0x148)][_0x5f41d6(0x1a3)]=_0x14315b;const _0x4c3050=_0x3bf899,_0x5d22e8=await a30_0x47ff47['post'](this[_0x5f41d6(0x149)]+(_0x5f41d6(0xf5)+_0x5f41d6(0x11e)+'l/sast'),_0x4c3050,{'headers':{'Authorization':_0x5f41d6(0xe9)+this[_0x5f41d6(0xfb)],'Content-Type':'applicatio'+_0x5f41d6(0x17f)}});logger['info'](_0x5f41d6(0x175)+_0x5f41d6(0xf9)+_0x5d22e8[_0x5f41d6(0x160)]['requestId']);const _0x2aec83=_0x5d22e8[_0x5f41d6(0x160)][_0x5f41d6(0x199)+'st']?.[0x0]?.['analysisId']||_0x5d22e8[_0x5f41d6(0x160)]['analysisId'];return _0x2aec83?logger[_0x5f41d6(0x16c)](_0x5f41d6(0x15e)+'료:\x20'+_0x2aec83+_0x5f41d6(0x195)+_0x5d22e8[_0x5f41d6(0x160)][_0x5f41d6(0xb7)]+')'):logger[_0x5f41d6(0x122)](_0x5f41d6(0x16d)+_0x5f41d6(0x153)+_0x5f41d6(0x177)+_0x5d22e8[_0x5f41d6(0x160)][_0x5f41d6(0xb7)]),{'requestId':_0x5d22e8[_0x5f41d6(0x160)]['requestId'],'analysisId':_0x2aec83?String(_0x2aec83):undefined,'status':_0x5d22e8[_0x5f41d6(0x160)][_0x5f41d6(0x199)+'st']?.[0x0]?.[_0x5f41d6(0x169)]||_0x5d22e8['data'][_0x5f41d6(0x169)],'message':_0x5d22e8[_0x5f41d6(0x160)]['message']};}catch(_0x2b91ea){logger[_0x5f41d6(0x1a1)](_0x5f41d6(0x175)+_0x5f41d6(0xdc),_0x2b91ea);throw new Error('분석\x20요청\x20실패:\x20'+(_0x2b91ea instanceof Error?_0x2b91ea['message']:_0x5f41d6(0x13d)+'ror'));}}async[a30_0x87a3ac(0x145)+a30_0x87a3ac(0x171)](_0x317e4d){const _0x482674=a30_0x87a3ac,_0x272592={};_0x272592[_0x482674(0x14a)]=_0x482674(0xe5);const _0x5842fb=_0x272592;try{const _0x45b528=this[_0x482674(0xd3)+_0x482674(0x135)](),_0x5c9e43=this[_0x482674(0xd3)+_0x482674(0x17b)+'y'](),_0x56b3ee=this['getDecrypt'+'edSecretKe'+'y'](),_0x392775=this[_0x482674(0x15c)+'t'](),_0x2707db={};_0x2707db['accessKey']=_0x5c9e43,_0x2707db[_0x482674(0xe0)]=_0x56b3ee;const _0x5657d5={'resultVersion':0x2,'memo':_0x317e4d[_0x482674(0x186)]||_0x482674(0x19e)+_0x482674(0x12a)+'\x20'+_0x317e4d['fileName'],'callbacks':[],'scaOptions':{'analysisSource':{'type':'OBJECT_STO'+_0x482674(0xdb),'objectStorageInfo':{'bucket':_0x45b528,'endPoint':_0x392775,'object':_0x317e4d[_0x482674(0x10c)],'auth':_0x2707db}},'targetType':this[_0x482674(0xb6)+_0x482674(0x10a)+'pe'](_0x317e4d[_0x482674(0x166)],_0x317e4d[_0x482674(0x13c)]),'sbomTypes':this['determineS'+_0x482674(0x10a)+'pe'](_0x317e4d[_0x482674(0x166)],_0x317e4d['isSbom'])===_0x482674(0x12c)?DEFAULT_SBOM_TYPES:undefined}};try{const _0x2f905a=a30_0x5598f6['join'](process[_0x482674(0xcc)](),_0x482674(0x106)+'ts');if(!a30_0xa8d619['existsSync'](_0x2f905a)){const _0x553b3e={};_0x553b3e['recursive']=!![],a30_0xa8d619[_0x482674(0x174)](_0x2f905a,_0x553b3e);}const _0x476582=a30_0x5598f6[_0x482674(0x119)](_0x2f905a,_0x482674(0x10f)+'t_body.jso'+'n');a30_0xa8d619['writeFileS'+_0x482674(0x181)](_0x476582,JSON[_0x482674(0x180)](_0x5657d5,null,0x2),_0x5842fb[_0x482674(0x14a)]),logger[_0x482674(0x16c)](_0x482674(0x123)+'저장됨:\x20'+_0x476582);}catch(_0x43c61b){logger['warn'](_0x482674(0x123)+_0x482674(0xe4)+_0x43c61b);}const _0x9427e6=await a30_0x47ff47[_0x482674(0x197)](this['baseUrl']+(_0x482674(0xf5)+_0x482674(0x11e)+_0x482674(0x155)),_0x5657d5,{'headers':{'Authorization':_0x482674(0xe9)+this[_0x482674(0xfb)],'Content-Type':_0x482674(0xbf)+_0x482674(0x17f)}});logger[_0x482674(0x16c)](_0x482674(0x17d)+_0x482674(0xc9)+_0x482674(0x14c)+_0x9427e6[_0x482674(0x160)]['requestId']);const _0x445159=_0x9427e6['data'][_0x482674(0x199)+'st']?.[0x0]?.[_0x482674(0x151)]||_0x9427e6[_0x482674(0x160)][_0x482674(0x151)];return _0x445159?logger[_0x482674(0x16c)](_0x482674(0x182)+_0x482674(0x14d)+_0x445159+_0x482674(0x195)+_0x9427e6[_0x482674(0x160)][_0x482674(0xb7)]+')'):logger[_0x482674(0x122)](_0x482674(0xec)+_0x482674(0x128)+'요청\x20ID만\x20사용:'+'\x20'+_0x9427e6[_0x482674(0x160)][_0x482674(0xb7)]),{'requestId':_0x9427e6[_0x482674(0x160)][_0x482674(0xb7)],'analysisId':_0x445159?String(_0x445159):undefined,'status':_0x9427e6[_0x482674(0x160)][_0x482674(0x199)+'st']?.[0x0]?.[_0x482674(0x169)]||_0x9427e6[_0x482674(0x160)][_0x482674(0x169)],'message':_0x9427e6['data'][_0x482674(0x10e)]};}catch(_0x1f73f5){const _0x5e6e14=_0x1f73f5;_0x5e6e14[_0x482674(0x16a)]?logger[_0x482674(0x1a1)](_0x482674(0x17d)+_0x482674(0x110)+_0x482674(0xde),{'status':_0x5e6e14['response'][_0x482674(0x169)],'statusText':_0x5e6e14['response'][_0x482674(0xef)],'data':JSON[_0x482674(0x180)](_0x5e6e14['response'][_0x482674(0x160)]),'requestUrl':_0x5e6e14[_0x482674(0x11b)]?.['url'],'requestData':_0x5e6e14[_0x482674(0x11b)]?.[_0x482674(0x160)]}):logger[_0x482674(0x1a1)](_0x482674(0x17d)+_0x482674(0x110)+'패:',_0x1f73f5);const _0x3abe2c=_0x5e6e14[_0x482674(0x16a)]?.[_0x482674(0x160)]?.[_0x482674(0x10e)]||_0x5e6e14[_0x482674(0x16a)]?.[_0x482674(0x160)]?.[_0x482674(0x1a1)]||(_0x1f73f5 instanceof Error?_0x1f73f5['message']:_0x482674(0x13d)+_0x482674(0x185));throw new Error(_0x482674(0xf0)+_0x482674(0xb4)+_0x3abe2c);}}async[a30_0x87a3ac(0xf3)+a30_0x87a3ac(0xea)](_0x219c25){const _0xcbc121=a30_0x87a3ac;try{const _0x1d1d2c={};_0x1d1d2c[_0xcbc121(0xfc)+_0xcbc121(0xcb)]=_0xcbc121(0xe9)+this[_0xcbc121(0xfb)];const _0x49c35c=_0x1d1d2c,_0x24f56c=[_0xcbc121(0xe3)+_0xcbc121(0x189)+_0x219c25,_0xcbc121(0x11a)+_0xcbc121(0x189)+_0x219c25,_0xcbc121(0xf5)+_0xcbc121(0x189)+_0x219c25];let _0x88a282;for(const _0x2a2489 of _0x24f56c){try{const _0x21efb8={};_0x21efb8['headers']=_0x49c35c;const _0x1b8020=await a30_0x47ff47[_0xcbc121(0x154)](''+this['baseUrl']+_0x2a2489,_0x21efb8),_0x4393e2=_0x1b8020['data']['analysisLi'+'st']?.[0x0]||_0x1b8020[_0xcbc121(0x160)],_0x2db8c0=_0x4393e2?.[_0xcbc121(0x151)]||_0x1b8020[_0xcbc121(0x160)]['analysisId']||_0x219c25;return _0x2db8c0!==_0x219c25&&_0x2db8c0!==String(_0x219c25)&&logger[_0xcbc121(0x16c)](_0xcbc121(0xcd)+_0xcbc121(0x13f)+_0x219c25+(_0xcbc121(0x17a)+_0xcbc121(0xe8))+_0x2db8c0),{'requestId':String(_0x1b8020[_0xcbc121(0x160)][_0xcbc121(0xb7)]||_0x219c25),'analysisId':_0x2db8c0?String(_0x2db8c0):undefined,'status':String(_0x4393e2?.[_0xcbc121(0x169)]||_0x1b8020['data'][_0xcbc121(0x169)]||_0xcbc121(0x12e)),'result':_0x4393e2?.[_0xcbc121(0x131)]||_0x1b8020[_0xcbc121(0x160)][_0xcbc121(0x131)]||undefined,'progress':_0x4393e2?.[_0xcbc121(0x142)]!==null&&_0x4393e2?.[_0xcbc121(0x142)]!==undefined?Number(_0x4393e2[_0xcbc121(0x142)]):undefined,'downloadUrl':undefined,'vulnerabilities':undefined};}catch(_0x34274c){_0x88a282=_0x34274c;const _0x517c79=_0x34274c?.[_0xcbc121(0x16a)]?.['status'];if(_0x517c79===0x194){if(_0x2a2489===_0x24f56c[_0x24f56c[_0xcbc121(0x15d)]-0x1])throw new Error('분석\x20ID\x20\x27'+_0x219c25+(_0xcbc121(0xd6)+_0xcbc121(0x132)+_0xcbc121(0x13b)+_0xcbc121(0x11f)+'.'));continue;}if(_0x517c79===0x190){const _0xc90cb1=_0x34274c?.['response']?.[_0xcbc121(0x160)]?.['message']||_0x34274c?.[_0xcbc121(0x10e)]||_0xcbc121(0x10d);throw new Error(_0xcbc121(0x108)+_0xcbc121(0x11d)+_0xc90cb1);}continue;}}throw _0x88a282 instanceof Error?_0x88a282:new Error(_0xcbc121(0x114));}catch(_0x5369fc){logger[_0xcbc121(0x1a1)](_0xcbc121(0x175)+'석\x20상태\x20조회\x20실패'+':',_0x5369fc);throw new Error(_0xcbc121(0x108)+_0xcbc121(0x138)+(_0x5369fc instanceof Error?_0x5369fc[_0xcbc121(0x10e)]:_0xcbc121(0x13d)+_0xcbc121(0x185)));}}async[a30_0x87a3ac(0x179)+a30_0x87a3ac(0x100)+a30_0x87a3ac(0x14b)](_0x2df5ef){const _0x524989=a30_0x87a3ac;try{const _0x1198e0=await a30_0x47ff47[_0x524989(0x154)](this[_0x524989(0x149)]+(_0x524989(0x11a)+_0x524989(0x189))+_0x2df5ef+_0x524989(0xbb),{'responseType':_0x524989(0xdf)+'r','headers':{'Authorization':_0x524989(0xe9)+this[_0x524989(0xfb)]}}),_0x4e3435=new a30_0x5248c0(Buffer[_0x524989(0xbc)](_0x1198e0[_0x524989(0x160)])),_0x470c38=_0x4e3435[_0x524989(0x17c)](),_0x2a9afc=[];for(const _0x2dbd3a of _0x470c38){if(_0x2dbd3a[_0x524989(0x18a)+'y'])continue;if(_0x2dbd3a[_0x524989(0x191)][_0x524989(0x18d)](_0x524989(0x10b)))try{const _0xd8bbb8=_0x2dbd3a['getData']()[_0x524989(0x162)](_0x524989(0xe5)),_0x32b55c=JSON[_0x524989(0x139)](_0xd8bbb8);_0x2a9afc['push'](_0x32b55c);}catch(_0x2c35ce){logger[_0x524989(0x122)](_0x524989(0xd7)+':\x20'+_0x2dbd3a[_0x524989(0x191)],_0x2c35ce);}}return logger['info'](_0x524989(0x152)+_0x524989(0x188)+_0x2a9afc[_0x524989(0x15d)]+_0x524989(0xb3)),_0x2a9afc;}catch(_0x510099){logger[_0x524989(0x1a1)]('분석\x20결과\x20다운로드'+'\x20실패:',_0x510099);const _0x283d22=_0x510099?.[_0x524989(0x16a)]?.[_0x524989(0x169)];if(_0x283d22===0x194)throw new Error('분석\x20ID\x20\x27'+_0x2df5ef+('\x27의\x20결과를\x20찾을\x20'+_0x524989(0x102)+_0x524989(0x183)+_0x524989(0x16e)+_0x524989(0xf1)+'니다.'));else{if(_0x283d22===0x190){const _0x465b2b=_0x510099?.['response']?.[_0x524989(0x160)]?.[_0x524989(0x10e)]||_0x510099?.[_0x524989(0x10e)]||_0x524989(0x10d);throw new Error('분석\x20결과\x20다운로드'+_0x524989(0xcf)+'\x20'+_0x465b2b);}}throw new Error(_0x524989(0x152)+_0x524989(0x120)+(_0x510099 instanceof Error?_0x510099['message']:_0x524989(0x13d)+_0x524989(0x185)));}}async[a30_0x87a3ac(0x164)+a30_0x87a3ac(0xf8)+'on'](_0x356837,_0x514739=0x3c,_0x421e68=0x1388){const _0x2a648b=a30_0x87a3ac,_0x305d9d={};_0x305d9d[_0x2a648b(0x178)]=function(_0x40af6e,_0x110eb6){return _0x40af6e<_0x110eb6;},_0x305d9d['KjsMc']=_0x2a648b(0x104),_0x305d9d[_0x2a648b(0x105)]=_0x2a648b(0xda)+'.',_0x305d9d[_0x2a648b(0xc1)]='찾을\x20수\x20없습니다';const _0xb3b124=_0x305d9d;let _0x98293b=0x0;while(_0xb3b124[_0x2a648b(0x178)](_0x98293b,_0x514739)){try{const _0x240ebb=await this[_0x2a648b(0xf3)+_0x2a648b(0xea)](_0x356837);if(String(_0x240ebb[_0x2a648b(0x169)])[_0x2a648b(0xc0)+'e']()===_0x2a648b(0xc4))return logger[_0x2a648b(0x16c)](_0x2a648b(0x170)+_0x356837),_0x240ebb;else{if(String(_0x240ebb[_0x2a648b(0x169)])[_0x2a648b(0xc0)+'e']()===_0xb3b124[_0x2a648b(0xd5)]){if('gOOSi'==='BFCmf')return _0x12bfc7['s3'][_0x2a648b(0xdd)+_0x2a648b(0xf4)];else throw new Error(_0xb3b124['UxcYb']);}}logger[_0x2a648b(0x16c)]('분석\x20진행\x20중...'+'\x20('+(_0x98293b+0x1)+'/'+_0x514739+')'),await new Promise(_0x2eef96=>setTimeout(_0x2eef96,_0x421e68)),_0x98293b++;}catch(_0x2c27d8){logger['error'](_0x2a648b(0x193)+'패\x20(시도\x20'+(_0x98293b+0x1)+'):',_0x2c27d8);const _0x65d8cc=_0x2c27d8 instanceof Error?_0x2c27d8['message']:String(_0x2c27d8);if(_0x65d8cc[_0x2a648b(0x129)](_0x2a648b(0x118))||_0x65d8cc[_0x2a648b(0x129)](_0xb3b124[_0x2a648b(0xc1)])||_0x65d8cc[_0x2a648b(0x129)](_0x2a648b(0xbe)+_0x2a648b(0x147))||_0x65d8cc[_0x2a648b(0x129)](_0x2a648b(0x141)))throw _0x2c27d8;_0x98293b++;if(_0x98293b>=_0x514739)throw _0x2c27d8;await new Promise(_0x3c189d=>setTimeout(_0x3c189d,_0x421e68));}}throw new Error(_0x2a648b(0x19f));}async[a30_0x87a3ac(0x150)+a30_0x87a3ac(0x1a0)](_0x5320fa,_0x245a02){const _0x5a4f29=a30_0x87a3ac;try{if(!a30_0xa8d619['existsSync'](_0x245a02)){const _0x2c3d2f={};_0x2c3d2f[_0x5a4f29(0x194)]=!![],a30_0xa8d619['mkdirSync'](_0x245a02,_0x2c3d2f);}const _0x3b978a=await a30_0x47ff47[_0x5a4f29(0x154)](this[_0x5a4f29(0x149)]+(_0x5a4f29(0x11a)+_0x5a4f29(0x189))+_0x5320fa+_0x5a4f29(0xbb),{'responseType':_0x5a4f29(0xdf)+'r','headers':{'Authorization':_0x5a4f29(0xe9)+this[_0x5a4f29(0xfb)]}}),_0x249fed=new a30_0x5248c0(Buffer[_0x5a4f29(0xbc)](_0x3b978a[_0x5a4f29(0x160)])),_0xe1ebc2=_0x249fed[_0x5a4f29(0x17c)](),_0x4c47d9=[],_0x5273d1=['.spdx','.spdx.json',_0x5a4f29(0x165),_0x5a4f29(0x1a2),_0x5a4f29(0xc7),'.xlsx',_0x5a4f29(0xf6)];for(const _0x278235 of _0xe1ebc2){if(_0x278235[_0x5a4f29(0x18a)+'y'])continue;const _0x1fe0a5=_0x278235[_0x5a4f29(0x191)][_0x5a4f29(0x103)+'e'](),_0x987c13=_0x5273d1[_0x5a4f29(0x126)](_0x18eaa6=>_0x1fe0a5[_0x5a4f29(0x18d)](_0x18eaa6))||_0x1fe0a5[_0x5a4f29(0x129)](_0x5a4f29(0x140))||_0x1fe0a5[_0x5a4f29(0x129)](_0x5a4f29(0xee))||_0x1fe0a5[_0x5a4f29(0x129)](_0x5a4f29(0xe6));if(_0x987c13){const _0x1b2746=a30_0x5598f6['basename'](_0x278235['entryName']),_0x2637d3=a30_0x5598f6['join'](_0x245a02,_0x1b2746);a30_0xa8d619['writeFileS'+_0x5a4f29(0x181)](_0x2637d3,_0x278235['getData']()),_0x4c47d9[_0x5a4f29(0xf2)](_0x2637d3),logger[_0x5a4f29(0x16c)](_0x5a4f29(0x163)+_0x5a4f29(0x192)+_0x2637d3);}}return _0x4c47d9;}catch(_0x34936c){logger[_0x5a4f29(0x1a1)](_0x5a4f29(0xce)+_0x5a4f29(0x15b)+_0x5a4f29(0x19c)+_0x5a4f29(0xc2)+_0x5320fa+':',_0x34936c);throw _0x34936c;}}[a30_0x87a3ac(0xb6)+a30_0x87a3ac(0x10a)+'pe'](_0x19ecf1,_0x18e388){const _0x5f485b=a30_0x87a3ac;if(_0x18e388)return'SBOM';const _0x222595=_0x19ecf1[_0x5f485b(0x103)+'e']();if(_0x222595['endsWith'](_0x5f485b(0x158))||_0x222595[_0x5f485b(0x18d)](_0x5f485b(0x133))||_0x222595[_0x5f485b(0x18d)](_0x5f485b(0xba))||_0x222595[_0x5f485b(0x18d)](_0x5f485b(0x17e))||_0x222595['endsWith'](_0x5f485b(0xc7))||_0x222595[_0x5f485b(0x18d)](_0x5f485b(0x198)))return _0x5f485b(0xfe);return _0x5f485b(0x12c);}}
|
package/dist/src/types/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57bd0d,_0x468c07){var _0x3b21e4=a39_0x4bb9,_0x10d199=_0x57bd0d();while(!![]){try{var _0x5974e4=-parseInt(_0x3b21e4(0x1e8))/0x1*(-parseInt(_0x3b21e4(0x1ea))/0x2)+-parseInt(_0x3b21e4(0x1e7))/0x3+-parseInt(_0x3b21e4(0x1ec))/0x4+parseInt(_0x3b21e4(0x1eb))/0x5*(parseInt(_0x3b21e4(0x1e6))/0x6)+parseInt(_0x3b21e4(0x1e4))/0x7+parseInt(_0x3b21e4(0x1e1))/0x8*(parseInt(_0x3b21e4(0x1df))/0x9)+-parseInt(_0x3b21e4(0x1e9))/0xa;if(_0x5974e4===_0x468c07)break;else _0x10d199['push'](_0x10d199['shift']());}catch(_0x254de1){_0x10d199['push'](_0x10d199['shift']());}}}(a39_0x514d,0xf4149));var a39_0x44c63d=(function(){var _0x4b7cc7=!![];return function(_0x5c3355,_0x107dea){var _0x3073ef=_0x4b7cc7?function(){var _0x586861=a39_0x4bb9;if(_0x107dea){var _0x2b8e8d=_0x107dea[_0x586861(0x1e5)](_0x5c3355,arguments);return _0x107dea=null,_0x2b8e8d;}}:function(){};return _0x4b7cc7=![],_0x3073ef;};}()),a39_0x2624f3=a39_0x44c63d(this,function(){var _0x1757ce=a39_0x4bb9;return a39_0x2624f3[_0x1757ce(0x1e2)]()['search'](_0x1757ce(0x1e0)+'+$')[_0x1757ce(0x1e2)]()['constructo'+'r'](a39_0x2624f3)[_0x1757ce(0x1e3)]('(((.+)+)+)'+'+$');});function a39_0x514d(){var _0x2f3f66=['11655259INMzdH','apply','6whKWQw','320160vrJKyn','1103arfPNV','20364290yEBFDH','886dyqqmL','531100JUryoD','4217428IDaHqK','7461KAIElB','(((.+)+)+)','18696cgEXXD','toString','search'];a39_0x514d=function(){return _0x2f3f66;};return a39_0x514d();}a39_0x2624f3();function a39_0x4bb9(_0x1d31cc,_0x20f76e){_0x1d31cc=_0x1d31cc-0x1df;var _0x16a1e4=a39_0x514d();var _0x2624f3=_0x16a1e4[_0x1d31cc];return _0x2624f3;}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x292ec9=a45_0x3619;(function(_0x52d307,_0x41aa08){const _0x5851e3=a45_0x3619,_0x13ec7f=_0x52d307();while(!![]){try{const _0x336898=-parseInt(_0x5851e3(0x128))/0x1+-parseInt(_0x5851e3(0x122))/0x2*(-parseInt(_0x5851e3(0x12e))/0x3)+parseInt(_0x5851e3(0x133))/0x4*(-parseInt(_0x5851e3(0x111))/0x5)+-parseInt(_0x5851e3(0x109))/0x6*(-parseInt(_0x5851e3(0x12d))/0x7)+-parseInt(_0x5851e3(0x118))/0x8+-parseInt(_0x5851e3(0x13b))/0x9*(-parseInt(_0x5851e3(0x127))/0xa)+parseInt(_0x5851e3(0x10e))/0xb;if(_0x336898===_0x41aa08)break;else _0x13ec7f['push'](_0x13ec7f['shift']());}catch(_0x18f0e2){_0x13ec7f['push'](_0x13ec7f['shift']());}}}(a45_0x28b2,0x49710));const a45_0x5aca46=(function(){let _0x21677f=!![];return function(_0x43338a,_0x2fa750){const _0x286fec=_0x21677f?function(){const _0x261e02=a45_0x3619;if(_0x2fa750){const _0x42bbb0=_0x2fa750[_0x261e02(0x115)](_0x43338a,arguments);return _0x2fa750=null,_0x42bbb0;}}:function(){};return _0x21677f=![],_0x286fec;};}()),a45_0x4406cb=a45_0x5aca46(this,function(){const _0x3eed0e=a45_0x3619;return a45_0x4406cb[_0x3eed0e(0x117)]()['search'](_0x3eed0e(0x114)+'+$')['toString']()[_0x3eed0e(0x125)+'r'](a45_0x4406cb)['search'](_0x3eed0e(0x114)+'+$');});a45_0x4406cb();import{encryptString,decryptString,decryptInternal}from'../crypto.util.js';function a45_0x28b2(){const _0x2282bc=['should\x20dec','l\x20to\x20decry','age','7cRuzDB','3Etried','not','wrong-key','Secret\x20Dat','should\x20han','6824FZgyLJ','key1','Hello,\x20Wor','ong\x20key','dle\x20empty\x20','Internal\x20S','correct-ke','rypt\x20and\x20d','63ixASEQ','yptString','ecrypt\x20a\x20s','ecret\x20Mess','rs\x20and\x20uni','Hello\x20@#$%','encrypted\x20','833010yAyaVP','strings','toBe','tring','JbTvE','6680784ZqBZly','rypt_2024','t\x20for\x20diff','1760sHtjqb','^&*()\x20한글\x20🚀','dle\x20specia','(((.+)+)+)','apply','duce\x20diffe','toString','2517840aGjgTF','rectly\x20enc','should\x20fai','ld!','decryptInt','XClCm','nternal\x20ke','ing\x20&\x20decr','pt\x20with\x20wr','should\x20pro','873426ebzqWc','test-secre','CryptoUtil','constructo','ernal','494790PSHVGw','313187iTejeH','rent\x20outpu'];a45_0x28b2=function(){return _0x2282bc;};return a45_0x28b2();}function a45_0x3619(_0x3ae8c3,_0xb7cc83){_0x3ae8c3=_0x3ae8c3-0x105;const _0x36f496=a45_0x28b2();let _0x4406cb=_0x36f496[_0x3ae8c3];return _0x4406cb;}describe(a45_0x292ec9(0x124),()=>{const _0x1f48ba=a45_0x292ec9,_0x3c24dd={'VVMbR':function(_0x9e9203,_0x21ed18,_0x2a095b){return _0x9e9203(_0x21ed18,_0x2a095b);},'JbTvE':function(_0x38cbd5,_0x9c5cc9){return _0x38cbd5(_0x9c5cc9);}},_0x1f639f=_0x1f48ba(0x123)+'t-key',_0x40255b='S3_Key_Enc'+_0x1f48ba(0x10f);describe('encryptStr'+_0x1f48ba(0x11f)+_0x1f48ba(0x13c),()=>{const _0x3a933b=_0x1f48ba,_0x3e2701={};_0x3e2701[_0x3a933b(0x11d)]=_0x3a933b(0x107)+_0x3a933b(0x112);const _0x251a95=_0x3e2701;it('should\x20cor'+_0x3a933b(0x119)+_0x3a933b(0x13a)+_0x3a933b(0x13d)+_0x3a933b(0x10c),()=>{const _0x381242=_0x3a933b,_0x43a28e=_0x381242(0x135)+_0x381242(0x11b),_0x3a6f90=encryptString(_0x43a28e,_0x1f639f),_0x2d5755=decryptString(_0x3a6f90,_0x1f639f);expect(_0x2d5755)[_0x381242(0x10b)](_0x43a28e),expect(_0x3a6f90)['not']['toBe'](_0x43a28e);}),it(_0x3a933b(0x132)+_0x3a933b(0x137)+_0x3a933b(0x10a),()=>{const _0x5d9290='',_0x2febbf=encryptString(_0x5d9290,_0x1f639f),_0x302913=decryptString(_0x2febbf,_0x1f639f);expect(_0x302913)['toBe'](_0x5d9290);}),it(_0x3a933b(0x132)+_0x3a933b(0x113)+'l\x20characte'+_0x3a933b(0x106)+'code',()=>{const _0x2cab4b=_0x3a933b,_0x123ee4=_0x251a95[_0x2cab4b(0x11d)],_0x2e7936=encryptString(_0x123ee4,_0x1f639f),_0x676b57=decryptString(_0x2e7936,_0x1f639f);expect(_0x676b57)[_0x2cab4b(0x10b)](_0x123ee4);}),it(_0x3a933b(0x121)+_0x3a933b(0x116)+_0x3a933b(0x129)+_0x3a933b(0x110)+'erent\x20keys',()=>{const _0x45b924=_0x3a933b,_0x515664='Secret\x20Dat'+'a',_0x12c5dd=encryptString(_0x515664,_0x45b924(0x134)),_0x2002b3=encryptString(_0x515664,'key2');expect(_0x12c5dd)[_0x45b924(0x12f)][_0x45b924(0x10b)](_0x2002b3);}),it(_0x3a933b(0x11a)+_0x3a933b(0x12b)+_0x3a933b(0x120)+_0x3a933b(0x136),()=>{const _0x45d970=_0x3a933b,_0x4c40f4=_0x45d970(0x131)+'a',_0x1f2c10=_0x3c24dd['VVMbR'](encryptString,_0x4c40f4,_0x45d970(0x139)+'y'),_0x375717=decryptString(_0x1f2c10,_0x45d970(0x130));_0x3c24dd[_0x45d970(0x10d)](expect,_0x375717)[_0x45d970(0x12f)]['toBe'](_0x4c40f4);});}),describe(_0x1f48ba(0x11c)+_0x1f48ba(0x126),()=>{const _0x59c0d4=_0x1f48ba,_0x513f40={'pOFvD':function(_0x55e360,_0x2601fa,_0x158270){return _0x55e360(_0x2601fa,_0x158270);}};it(_0x59c0d4(0x12a)+'rypt\x20data\x20'+_0x59c0d4(0x108)+'with\x20the\x20i'+_0x59c0d4(0x11e)+'y',()=>{const _0x461107=_0x59c0d4,_0x51bfe2=_0x461107(0x138)+_0x461107(0x105)+_0x461107(0x12c),_0x476e12=_0x513f40['pOFvD'](encryptString,_0x51bfe2,_0x40255b),_0x499dc5=decryptInternal(_0x476e12);expect(_0x499dc5)['toBe'](_0x51bfe2);});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x5e730c=a46_0x57b1;function a46_0x57b1(_0x393f14,_0x55b636){_0x393f14=_0x393f14-0x1eb;const _0x491734=a46_0x1806();let _0x23f39f=_0x491734[_0x393f14];return _0x23f39f;}(function(_0x12c3a3,_0x8dbb35){const _0x3ee1cd=a46_0x57b1,_0x3e8ccd=_0x12c3a3();while(!![]){try{const _0x51ef02=parseInt(_0x3ee1cd(0x21e))/0x1+parseInt(_0x3ee1cd(0x223))/0x2+parseInt(_0x3ee1cd(0x1f6))/0x3+parseInt(_0x3ee1cd(0x233))/0x4*(-parseInt(_0x3ee1cd(0x202))/0x5)+parseInt(_0x3ee1cd(0x23b))/0x6+parseInt(_0x3ee1cd(0x23f))/0x7*(parseInt(_0x3ee1cd(0x1fc))/0x8)+-parseInt(_0x3ee1cd(0x234))/0x9*(parseInt(_0x3ee1cd(0x1f9))/0xa);if(_0x51ef02===_0x8dbb35)break;else _0x3e8ccd['push'](_0x3e8ccd['shift']());}catch(_0x5be45d){_0x3e8ccd['push'](_0x3e8ccd['shift']());}}}(a46_0x1806,0x3c456));const a46_0x5102e8=(function(){let _0x165fcb=!![];return function(_0x3a95ae,_0x3e2ab9){const _0x1192d1=_0x165fcb?function(){const _0x95906a=a46_0x57b1;if(_0x3e2ab9){const _0x3f3611=_0x3e2ab9[_0x95906a(0x1fb)](_0x3a95ae,arguments);return _0x3e2ab9=null,_0x3f3611;}}:function(){};return _0x165fcb=![],_0x1192d1;};}()),a46_0x23f39f=a46_0x5102e8(this,function(){const _0x5a0bfb=a46_0x57b1,_0x2e0102={};_0x2e0102[_0x5a0bfb(0x205)]=_0x5a0bfb(0x20a)+'+$';const _0x50246b=_0x2e0102;return a46_0x23f39f['toString']()[_0x5a0bfb(0x209)](_0x5a0bfb(0x20a)+'+$')[_0x5a0bfb(0x1f8)]()[_0x5a0bfb(0x20e)+'r'](a46_0x23f39f)['search'](_0x50246b['tpZSw']);});a46_0x23f39f();import{DiffUtil}from'../diff.util.js';function a46_0x1806(){const _0x4ffeff=['zyJQt','search','(((.+)+)+)','=\x20\x22SELECT\x20','should\x20gen','\x20\x20\x20\x20\x20\x20\x20\x20ps','constructo','\x20id=\x27\x22\x20+\x20i','dle\x20identi','Login.java','should\x20cor','A\x0aB\x0aC','+MODIFIED','cal\x20code','edStatemen','mhBZs','ute();\x0a\x20\x20\x20','tring\x20quer','+++\x20안전한\x20코드','\x20id=?\x22;','pstmt.exec','Wlohu','143134RiuvaM','should\x20han','rect\x20ident','startsWith','*\x20FROM\x20use','821534pIeFSF','ng\x20pw)\x20{\x0a\x20','ify\x20change','}\x0a}','toBe','generateUn','\x20\x20\x20\x20\x20stmt.','t(query);\x0a','ss\x20Login\x20{','ing\x20query\x20','+\x20\x20\x20\x20\x20\x20\x20\x20S','ehkXn','d=\x27\x22\x20+\x20id\x20','ified\x20diff','toContain','string','3984zvjCPr','7938711OiXyan','d\x20+\x20\x22\x27\x22;','ery);\x0a\x20\x20\x20\x20','+\x20\x22\x27\x22;\x0a\x20\x20\x20','rent\x20conte','\x20\x20\x20\x20\x20\x20\x20Str','tely\x20diffe','2659500dHqoHq','dle\x20comple','erate\x20a\x20si','+++\x20b/','6181AdykKS','sers\x20WHERE','T\x20*\x20FROM\x20u','slice','\x0a\x20\x20\x20\x20publi','g\x20id,\x20Stri','rs\x20WHERE\x20i','split','\x20}\x0a}','ogin(Strin','rsWoc','mple\x20diff\x20','754671KZZMsy','generateDi','toString','10VBIQOm','A\x0aMODIFIED','apply','440bLyidI','forEach','erate\x20a\x20un','c\x20void\x20doL','-\x20\x20\x20\x20\x20\x20\x20\x20S','GNcDW','845aBVUNl','y\x20=\x20\x22SELEC','\x20format','tpZSw','DiffUtil','execute(qu'];a46_0x1806=function(){return _0x4ffeff;};return a46_0x1806();}describe(a46_0x5e730c(0x206),()=>{const _0x3fb1ed=a46_0x5e730c,_0x400953={'mhBZs':_0x3fb1ed(0x22d)+'tring\x20quer'+_0x3fb1ed(0x203)+_0x3fb1ed(0x1ec)+_0x3fb1ed(0x1eb)+_0x3fb1ed(0x21b),'ehkXn':function(_0x1b4460,_0x147bf3){return _0x1b4460(_0x147bf3);},'zyJQt':_0x3fb1ed(0x214),'rsWoc':_0x3fb1ed(0x212)+_0x3fb1ed(0x220)+_0x3fb1ed(0x225)+'s','Wlohu':'generateDi'+'ff','MLOHS':function(_0x447956,_0x43df80,_0x69d0f2){return _0x447956(_0x43df80,_0x69d0f2);}},_0x49ff5f='public\x20cla'+'ss\x20Login\x20{'+'\x0a\x20\x20\x20\x20publi'+_0x3fb1ed(0x1ff)+_0x3fb1ed(0x1f3)+_0x3fb1ed(0x1ef)+_0x3fb1ed(0x224)+_0x3fb1ed(0x239)+_0x3fb1ed(0x22c)+'=\x20\x22SELECT\x20'+_0x3fb1ed(0x222)+_0x3fb1ed(0x1f0)+_0x3fb1ed(0x22f)+_0x3fb1ed(0x237)+_0x3fb1ed(0x229)+_0x3fb1ed(0x207)+_0x3fb1ed(0x236)+_0x3fb1ed(0x226),_0x5692e6='public\x20cla'+_0x3fb1ed(0x22b)+_0x3fb1ed(0x1ee)+_0x3fb1ed(0x1ff)+'ogin(Strin'+_0x3fb1ed(0x1ef)+_0x3fb1ed(0x224)+_0x3fb1ed(0x239)+_0x3fb1ed(0x22c)+_0x3fb1ed(0x20b)+_0x3fb1ed(0x222)+_0x3fb1ed(0x1f0)+'d=?\x22;\x0a\x20\x20\x20\x20'+'\x20\x20\x20\x20Prepar'+_0x3fb1ed(0x216)+'t\x20pstmt\x20=\x20'+'conn.prepa'+'reStatemen'+_0x3fb1ed(0x22a)+_0x3fb1ed(0x20d)+'tmt.setStr'+'ing(1,\x20id)'+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3fb1ed(0x21c)+_0x3fb1ed(0x218)+_0x3fb1ed(0x1f2);describe(_0x400953[_0x3fb1ed(0x21d)],()=>{const _0x12e1f6=_0x3fb1ed,_0x33149b={};_0x33149b[_0x12e1f6(0x201)]=_0x400953[_0x12e1f6(0x217)];const _0x17b9f1=_0x33149b;it('should\x20gen'+_0x12e1f6(0x23d)+_0x12e1f6(0x1f5)+_0x12e1f6(0x232),()=>{const _0x364bff=_0x12e1f6,_0x545a9e=DiffUtil[_0x364bff(0x1f7)+'ff'](_0x49ff5f,_0x5692e6);expect(_0x545a9e)['toContain']('---\x20원본\x20코드'),expect(_0x545a9e)[_0x364bff(0x231)](_0x364bff(0x21a)),expect(_0x545a9e)[_0x364bff(0x231)](_0x364bff(0x200)+_0x364bff(0x219)+_0x364bff(0x203)+_0x364bff(0x1ec)+_0x364bff(0x1eb)+_0x364bff(0x20f)+_0x364bff(0x235)),expect(_0x545a9e)[_0x364bff(0x231)](_0x17b9f1[_0x364bff(0x201)]);}),it(_0x12e1f6(0x21f)+_0x12e1f6(0x210)+_0x12e1f6(0x215),()=>{const _0x1ed73f=_0x12e1f6,_0x1cf0fe=DiffUtil[_0x1ed73f(0x1f7)+'ff'](_0x49ff5f,_0x49ff5f),_0x7082f1=_0x1cf0fe[_0x1ed73f(0x1f1)]('\x0a'),_0x552ca9=_0x7082f1[_0x1ed73f(0x1ed)](0x3);_0x552ca9[_0x1ed73f(0x1fd)](_0x32f978=>{const _0x1de61d=_0x1ed73f;expect(_0x32f978['startsWith']('-'))[_0x1de61d(0x227)](![]),expect(_0x32f978[_0x1de61d(0x221)]('+'))['toBe'](![]);});});}),describe(_0x3fb1ed(0x228)+'ifiedDiff',()=>{const _0x3b9992=_0x3fb1ed;it(_0x3b9992(0x20c)+_0x3b9992(0x1fe)+_0x3b9992(0x230)+_0x3b9992(0x204),()=>{const _0x58c333=_0x3b9992,_0x772917=_0x58c333(0x211),_0x226ad9=DiffUtil['generateUn'+'ifiedDiff'](_0x49ff5f,_0x5692e6,_0x772917);expect(_0x226ad9)[_0x58c333(0x231)]('---\x20a/'+_0x772917),expect(_0x226ad9)[_0x58c333(0x231)](_0x58c333(0x23e)+_0x772917),expect(_0x226ad9)[_0x58c333(0x231)]('@@');});}),_0x400953['MLOHS'](describe,'computeHun'+'ks',()=>{const _0x594095=_0x3fb1ed;it(_0x400953[_0x594095(0x1f4)],()=>{const _0x5a0199=_0x594095,_0x27d7e2=DiffUtil['generateUn'+'ifiedDiff'](_0x5a0199(0x213),_0x5a0199(0x1fa)+'\x0aC');_0x400953[_0x5a0199(0x22e)](expect,_0x27d7e2)['toContain']('-B'),expect(_0x27d7e2)[_0x5a0199(0x231)](_0x400953[_0x5a0199(0x208)]);}),it(_0x594095(0x21f)+_0x594095(0x23c)+_0x594095(0x23a)+_0x594095(0x238)+'nt',()=>{const _0x267420=_0x594095,_0xee72a3=DiffUtil[_0x267420(0x228)+'ifiedDiff']('A','B');expect(_0xee72a3)['toContain']('-A'),expect(_0xee72a3)['toContain']('+B');});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a47_0x1e98(_0x3df53e,_0x1a0718){_0x3df53e=_0x3df53e-0x9c;const _0x3e583a=a47_0x512b();let _0x41eab8=_0x3e583a[_0x3df53e];return _0x41eab8;}const a47_0x5462ba=a47_0x1e98;function a47_0x512b(){const _0x1a270f=['4164yjlNPA','2142830HeSfvp','../fileMan','\x20to\x20file','toString','apply','stringCont','ync','test.txt','CalledWith','Value','search','readFileSy','toHaveBeen','1519325ANLaFD','content','mockReturn','ager.js','toBe','should\x20del','should\x20not','writeFile','utf-8','exists','3021376UmcIzu','unlinkSync','writeFileS','17356878SuVihQ','le\x20if\x20not\x20','1498850kYFJQP','\x20delete\x20fi','4636Pntczn','zTvnn','tent','FileManage','existsSync','/base/dir','deleteFile','3244171VVpnrW','readFile','aining','18hpRTOL','uDpmp','(((.+)+)+)','Called','d\x20file\x20con','not','cks'];a47_0x512b=function(){return _0x1a270f;};return a47_0x512b();}(function(_0x534427,_0x59e449){const _0x2d4964=a47_0x1e98,_0x5c6d2a=_0x534427();while(!![]){try{const _0x16de97=parseInt(_0x2d4964(0xc7))/0x1+parseInt(_0x2d4964(0xab))/0x2+parseInt(_0x2d4964(0xaa))/0x3*(parseInt(_0x2d4964(0xc9))/0x4)+-parseInt(_0x2d4964(0xb8))/0x5+parseInt(_0x2d4964(0xa3))/0x6*(-parseInt(_0x2d4964(0xa0))/0x7)+parseInt(_0x2d4964(0xc2))/0x8+-parseInt(_0x2d4964(0xc5))/0x9;if(_0x16de97===_0x59e449)break;else _0x5c6d2a['push'](_0x5c6d2a['shift']());}catch(_0xc06a10){_0x5c6d2a['push'](_0x5c6d2a['shift']());}}}(a47_0x512b,0xe3fe7));const a47_0x32fbfd=(function(){let _0x54009f=!![];return function(_0x2d6369,_0xebd74d){const _0x4e1181=_0x54009f?function(){const _0x7128bc=a47_0x1e98;if(_0xebd74d){const _0x15fd40=_0xebd74d[_0x7128bc(0xaf)](_0x2d6369,arguments);return _0xebd74d=null,_0x15fd40;}}:function(){};return _0x54009f=![],_0x4e1181;};}()),a47_0x41eab8=a47_0x32fbfd(this,function(){const _0x25fd73=a47_0x1e98;return a47_0x41eab8[_0x25fd73(0xae)]()['search']('(((.+)+)+)'+'+$')[_0x25fd73(0xae)]()['constructo'+'r'](a47_0x41eab8)[_0x25fd73(0xb5)](_0x25fd73(0xa5)+'+$');});a47_0x41eab8();import{jest,describe,it,expect,beforeEach}from'@jest/globals';const mockReadFileSync=jest['fn'](),mockWriteFileSync=jest['fn'](),mockExistsSync=jest['fn'](),mockUnlinkSync=jest['fn'](),a47_0xb763f3={};a47_0xb763f3[a47_0x5462ba(0xb6)+'nc']=mockReadFileSync,a47_0xb763f3[a47_0x5462ba(0xc4)+a47_0x5462ba(0xb1)]=mockWriteFileSync,a47_0xb763f3[a47_0x5462ba(0x9d)]=mockExistsSync,a47_0xb763f3[a47_0x5462ba(0xc3)]=mockUnlinkSync,jest['unstable_m'+'ockModule']('fs',()=>({'default':a47_0xb763f3,'readFileSync':mockReadFileSync,'writeFileSync':mockWriteFileSync,'existsSync':mockExistsSync,'unlinkSync':mockUnlinkSync}));const {FileManager}=await import(a47_0x5462ba(0xac)+a47_0x5462ba(0xbb));describe(a47_0x5462ba(0x9c)+'r',()=>{const _0x36b2ce=a47_0x5462ba,_0x551e7a={};_0x551e7a[_0x36b2ce(0xa4)]=_0x36b2ce(0xb2);const _0x4ff266=_0x551e7a;let _0xc2e3a2;const _0x5a2d4c=_0x36b2ce(0x9e);beforeEach(()=>{const _0x42361f=_0x36b2ce;jest['clearAllMo'+_0x42361f(0xa9)](),_0xc2e3a2=new FileManager(_0x5a2d4c);}),describe(_0x36b2ce(0xa1),()=>{const _0x24ba84=_0x36b2ce,_0x2f1b8d={};_0x2f1b8d['zTvnn']='test.txt';const _0x763d2b=_0x2f1b8d;it('should\x20rea'+_0x24ba84(0xa7)+_0x24ba84(0xcb),()=>{const _0x1e1c26=_0x24ba84;mockReadFileSync[_0x1e1c26(0xba)+_0x1e1c26(0xb4)](_0x1e1c26(0xb9));const _0x195cd2=_0xc2e3a2[_0x1e1c26(0xa1)](_0x763d2b[_0x1e1c26(0xca)]);expect(_0x195cd2)[_0x1e1c26(0xbc)](_0x1e1c26(0xb9)),expect(mockReadFileSync)['toHaveBeen'+_0x1e1c26(0xb3)](expect[_0x1e1c26(0xb0)+_0x1e1c26(0xa2)](_0x1e1c26(0xb2)),_0x1e1c26(0xc0));});}),describe('writeFile',()=>{const _0x21e2f6=_0x36b2ce;it('should\x20wri'+'te\x20content'+_0x21e2f6(0xad),()=>{const _0x464e83=_0x21e2f6;_0xc2e3a2[_0x464e83(0xbf)](_0x4ff266[_0x464e83(0xa4)],'content'),expect(mockWriteFileSync)[_0x464e83(0xb7)+_0x464e83(0xb3)](expect[_0x464e83(0xb0)+_0x464e83(0xa2)](_0x4ff266[_0x464e83(0xa4)]),_0x464e83(0xb9),_0x464e83(0xc0));});}),describe(_0x36b2ce(0x9f),()=>{const _0x268fcf=_0x36b2ce;it(_0x268fcf(0xbd)+'ete\x20file\x20i'+'f\x20exists',()=>{const _0x55f2b6=_0x268fcf;mockExistsSync['mockReturn'+_0x55f2b6(0xb4)](!![]),_0xc2e3a2['deleteFile'](_0x55f2b6(0xb2)),expect(mockUnlinkSync)[_0x55f2b6(0xb7)+_0x55f2b6(0xa6)]();}),it(_0x268fcf(0xbe)+_0x268fcf(0xc8)+_0x268fcf(0xc6)+_0x268fcf(0xc1),()=>{const _0x27455c=_0x268fcf;mockExistsSync[_0x27455c(0xba)+_0x27455c(0xb4)](![]),_0xc2e3a2[_0x27455c(0x9f)](_0x27455c(0xb2)),expect(mockUnlinkSync)[_0x27455c(0xa8)][_0x27455c(0xb7)+'Called']();});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a48_0x391a8c=a48_0x3b54;(function(_0x211584,_0x20129f){const _0x42820e=a48_0x3b54,_0x5696b2=_0x211584();while(!![]){try{const _0xa847f3=-parseInt(_0x42820e(0xe9))/0x1*(-parseInt(_0x42820e(0xea))/0x2)+-parseInt(_0x42820e(0xe4))/0x3*(-parseInt(_0x42820e(0xbe))/0x4)+-parseInt(_0x42820e(0xc5))/0x5+-parseInt(_0x42820e(0xd7))/0x6*(parseInt(_0x42820e(0xba))/0x7)+parseInt(_0x42820e(0xc1))/0x8*(-parseInt(_0x42820e(0xd6))/0x9)+-parseInt(_0x42820e(0xc3))/0xa*(-parseInt(_0x42820e(0xe2))/0xb)+parseInt(_0x42820e(0xe0))/0xc;if(_0xa847f3===_0x20129f)break;else _0x5696b2['push'](_0x5696b2['shift']());}catch(_0x41c431){_0x5696b2['push'](_0x5696b2['shift']());}}}(a48_0x99ed,0xf0eb0));const a48_0x252537=(function(){let _0x3653d1=!![];return function(_0x43b6a6,_0x30599c){const _0x2dfb19=_0x3653d1?function(){if(_0x30599c){const _0x3b1694=_0x30599c['apply'](_0x43b6a6,arguments);return _0x30599c=null,_0x3b1694;}}:function(){};return _0x3653d1=![],_0x2dfb19;};}()),a48_0x4ab5f7=a48_0x252537(this,function(){const _0x71c925=a48_0x3b54;return a48_0x4ab5f7[_0x71c925(0xdb)]()['search'](_0x71c925(0xcd)+'+$')[_0x71c925(0xdb)]()[_0x71c925(0xdc)+'r'](a48_0x4ab5f7)['search'](_0x71c925(0xcd)+'+$');});a48_0x4ab5f7();import{jest,describe,it,expect,beforeEach}from'@jest/globals';import a48_0x9ad140 from'path';const mockReadFileSync=jest['fn'](),mockWriteFileSync=jest['fn'](),mockExistsSync=jest['fn'](),mockUnlinkSync=jest['fn'](),a48_0x2af38b={};a48_0x2af38b[a48_0x391a8c(0xbb)+'nc']=mockReadFileSync,a48_0x2af38b[a48_0x391a8c(0xc6)+'ync']=mockWriteFileSync,a48_0x2af38b[a48_0x391a8c(0xc9)]=mockExistsSync,a48_0x2af38b[a48_0x391a8c(0xe3)]=mockUnlinkSync,jest['unstable_m'+'ockModule']('fs',()=>({'default':a48_0x2af38b,'readFileSync':mockReadFileSync,'writeFileSync':mockWriteFileSync,'existsSync':mockExistsSync,'unlinkSync':mockUnlinkSync}));function a48_0x3b54(_0x36f619,_0x25d6b1){_0x36f619=_0x36f619-0xb9;const _0xd1851f=a48_0x99ed();let _0x4ab5f7=_0xd1851f[_0x36f619];return _0x4ab5f7;}function a48_0x99ed(){const _0x5a0207=['should\x20thr','readFile','existsSync','../hack.tx','ied','toBe','(((.+)+)+)','mockReturn','../fileMan','cks','.js','passwd','../../etc/','resolve','clearAllMo','18eEQkxu','6MdVnlf','r\x20(Secure)','Access\x20den','writeFile','toString','constructo','versal','yGmIV','Value','13798212DXUSDa','test.txt','2671306ugtNVx','unlinkSync','3yqGZRJ','OHLbT','should\x20rea','toHaveBeen','ow\x20error\x20o','416648elMeyu','8IUEcKV','/base/dir','Called','4781112WTxQzC','readFileSy','n\x20path\x20tra','agerSecure','2013348YJvlLD','FileManage','te\x20file\x20se','6749752LiSclE','cBoJw','10TIYwBP','content','1026860DdtLcU','writeFileS'];a48_0x99ed=function(){return _0x5a0207;};return a48_0x99ed();}const {FileManager}=await import(a48_0x391a8c(0xcf)+a48_0x391a8c(0xbd)+a48_0x391a8c(0xd1));describe(a48_0x391a8c(0xbf)+a48_0x391a8c(0xd8),()=>{const _0x5279ff=a48_0x391a8c,_0x2a5940={'TFzWy':function(_0x20f6af,_0x5ee264,_0x4ea0c2){return _0x20f6af(_0x5ee264,_0x4ea0c2);},'cBoJw':_0x5279ff(0xc4),'OHLbT':function(_0x5b883c,_0x410876,_0x3644a0){return _0x5b883c(_0x410876,_0x3644a0);}};let _0x45a5cf;const _0x595c3a=a48_0x9ad140[_0x5279ff(0xd4)](_0x5279ff(0xeb));beforeEach(()=>{const _0x8a7f9=_0x5279ff;jest[_0x8a7f9(0xd5)+_0x8a7f9(0xd0)](),_0x45a5cf=new FileManager(_0x595c3a);}),_0x2a5940[_0x5279ff(0xe5)](describe,'readFile',()=>{const _0x17af26=_0x5279ff;it(_0x17af26(0xe6)+'d\x20file\x20sec'+'urely',()=>{const _0x1f0ecd=_0x17af26;mockReadFileSync[_0x1f0ecd(0xce)+_0x1f0ecd(0xdf)]('content');const _0x5ecd6b=_0x45a5cf[_0x1f0ecd(0xc8)](_0x1f0ecd(0xe1));expect(_0x5ecd6b)[_0x1f0ecd(0xcc)]('content');}),_0x2a5940['TFzWy'](it,'should\x20thr'+_0x17af26(0xe8)+_0x17af26(0xbc)+'versal',()=>{const _0x5c41c6=_0x17af26;expect(()=>{const _0x4e6332=a48_0x3b54;_0x45a5cf[_0x4e6332(0xc8)](_0x4e6332(0xd3)+_0x4e6332(0xd2));})['toThrow'](_0x5c41c6(0xd9)+_0x5c41c6(0xcb));});}),describe(_0x5279ff(0xda),()=>{const _0x37c75b=_0x5279ff;it('should\x20wri'+_0x37c75b(0xc0)+'curely',()=>{const _0x4ba288=_0x37c75b;_0x45a5cf[_0x4ba288(0xda)]('test.txt',_0x2a5940[_0x4ba288(0xc2)]),expect(mockWriteFileSync)[_0x4ba288(0xe7)+_0x4ba288(0xb9)]();}),it(_0x37c75b(0xc7)+'ow\x20error\x20o'+_0x37c75b(0xbc)+_0x37c75b(0xdd),()=>{const _0x46b992=_0x37c75b;'yGmIV'!==_0x46b992(0xde)?_0x1d4366[_0x46b992(0xc8)]('../../etc/'+_0x46b992(0xd2)):expect(()=>{const _0x5b2f37=_0x46b992;_0x45a5cf[_0x5b2f37(0xda)](_0x5b2f37(0xca)+'t',_0x5b2f37(0xc4));})['toThrow'](_0x46b992(0xd9)+'ied');});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a49_0x1d00d2=a49_0x58ae;(function(_0x32917e,_0x405bbd){const _0x4d4468=a49_0x58ae,_0x51cd14=_0x32917e();while(!![]){try{const _0x285eca=-parseInt(_0x4d4468(0x1f9))/0x1*(parseInt(_0x4d4468(0x20a))/0x2)+-parseInt(_0x4d4468(0x1ef))/0x3*(-parseInt(_0x4d4468(0x20b))/0x4)+parseInt(_0x4d4468(0x1fb))/0x5*(parseInt(_0x4d4468(0x204))/0x6)+parseInt(_0x4d4468(0x1ed))/0x7*(-parseInt(_0x4d4468(0x1f2))/0x8)+parseInt(_0x4d4468(0x1fc))/0x9*(-parseInt(_0x4d4468(0x208))/0xa)+-parseInt(_0x4d4468(0x1f7))/0xb+parseInt(_0x4d4468(0x1f1))/0xc*(parseInt(_0x4d4468(0x1ec))/0xd);if(_0x285eca===_0x405bbd)break;else _0x51cd14['push'](_0x51cd14['shift']());}catch(_0x2bb2e0){_0x51cd14['push'](_0x51cd14['shift']());}}}(a49_0x1997,0xae409));const a49_0x350343=(function(){let _0x2af377=!![];return function(_0x578d75,_0x1c0c66){const _0x2f3eaf=_0x2af377?function(){if(_0x1c0c66){const _0x32bb82=_0x1c0c66['apply'](_0x578d75,arguments);return _0x1c0c66=null,_0x32bb82;}}:function(){};return _0x2af377=![],_0x2f3eaf;};}()),a49_0x272861=a49_0x350343(this,function(){const _0x54c916=a49_0x58ae;return a49_0x272861[_0x54c916(0x1f4)]()[_0x54c916(0x1fd)](_0x54c916(0x203)+'+$')[_0x54c916(0x1f4)]()[_0x54c916(0x1f6)+'r'](a49_0x272861)[_0x54c916(0x1fd)](_0x54c916(0x203)+'+$');});a49_0x272861();function a49_0x58ae(_0x3e136c,_0x1e89c3){_0x3e136c=_0x3e136c-0x1ec;const _0x24612f=a49_0x1997();let _0x272861=_0x24612f[_0x3e136c];return _0x272861;}import{jest,describe,it,expect}from'@jest/globals';const mockInfo=jest['fn'](),mockWarn=jest['fn'](),mockError=jest['fn'](),mockDebug=jest['fn'](),mockLogger={'info':mockInfo,'warn':mockWarn,'error':mockError,'debug':mockDebug,'add':jest['fn']()},mockCreateLogger=jest['fn'](()=>mockLogger),mockTransports={'Console':jest['fn'](),'File':jest['fn']()},mockFormat={'combine':jest['fn'](),'timestamp':jest['fn'](),'printf':jest['fn'](),'colorize':jest['fn'](),'simple':jest['fn'](),'errors':jest['fn'](),'json':jest['fn']()},a49_0x5a5c71={};a49_0x5a5c71[a49_0x1d00d2(0x1f8)+'er']=mockCreateLogger,a49_0x5a5c71[a49_0x1d00d2(0x202)]=mockTransports,a49_0x5a5c71['format']=mockFormat,jest[a49_0x1d00d2(0x207)+a49_0x1d00d2(0x200)](a49_0x1d00d2(0x1fe),()=>({'default':a49_0x5a5c71,'createLogger':mockCreateLogger,'transports':mockTransports,'format':mockFormat}));function a49_0x1997(){const _0x40d6f5=['unstable_m','705940hlpaJZ','error','215928SDsDLR','51292MgpoHU','should\x20log','Called','../logger.','toBeDefine','377ZcqboE','6093031KCFbzJ','test\x20info','309rwxNMR','toHaveBeen','842196qTAfFh','8TiHyzN','\x20info','toString','should\x20be\x20','constructo','10858958EJhdZW','createLogg','10vMTnuh','Logger','170eCZUys','126zAoHdp','search','winston','XoiEF','ockModule','CalledWith','transports','(((.+)+)+)','226452DrRaKT','initialize','NOwSh'];a49_0x1997=function(){return _0x40d6f5;};return a49_0x1997();}const {logger}=await import(a49_0x1d00d2(0x20e)+'js');describe(a49_0x1d00d2(0x1fa),()=>{const _0x51c053=a49_0x1d00d2,_0x530457={'XoiEF':'test\x20error','NOwSh':function(_0x5c4f4a,_0x52493c){return _0x5c4f4a(_0x52493c);}};it(_0x51c053(0x1f5)+_0x51c053(0x205)+'d',()=>{const _0x4fdc10=_0x51c053;expect(logger)[_0x4fdc10(0x20f)+'d'](),expect(mockCreateLogger)[_0x4fdc10(0x1f0)+_0x4fdc10(0x20d)]();}),it(_0x51c053(0x20c)+_0x51c053(0x1f3),()=>{const _0x5eeffa=_0x51c053;logger['info'](_0x5eeffa(0x1ee)),expect(mockInfo)[_0x5eeffa(0x1f0)+_0x5eeffa(0x201)](_0x5eeffa(0x1ee));}),it(_0x51c053(0x20c)+'\x20error',()=>{const _0x3c17ea=_0x51c053;logger[_0x3c17ea(0x209)](_0x530457[_0x3c17ea(0x1ff)]),_0x530457[_0x3c17ea(0x206)](expect,mockError)[_0x3c17ea(0x1f0)+'CalledWith']('test\x20error');});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1642b4,_0x304fb9){const _0x5cb9b8=a40_0x3734,_0x3eb5c4=_0x1642b4();while(!![]){try{const _0x5c5b75=parseInt(_0x5cb9b8(0x72))/0x1+parseInt(_0x5cb9b8(0x86))/0x2+-parseInt(_0x5cb9b8(0x78))/0x3+parseInt(_0x5cb9b8(0x75))/0x4*(-parseInt(_0x5cb9b8(0x76))/0x5)+-parseInt(_0x5cb9b8(0x7f))/0x6*(parseInt(_0x5cb9b8(0x80))/0x7)+-parseInt(_0x5cb9b8(0x85))/0x8+parseInt(_0x5cb9b8(0x7b))/0x9*(parseInt(_0x5cb9b8(0x82))/0xa);if(_0x5c5b75===_0x304fb9)break;else _0x3eb5c4['push'](_0x3eb5c4['shift']());}catch(_0x1d026e){_0x3eb5c4['push'](_0x3eb5c4['shift']());}}}(a40_0x5d27,0xa14b8));const a40_0x2c3768=(function(){let _0x1d3b27=!![];return function(_0x3309f7,_0x168c33){const _0x415509=_0x1d3b27?function(){const _0x58dc3b=a40_0x3734;if(_0x168c33){const _0xf0dd82=_0x168c33[_0x58dc3b(0x81)](_0x3309f7,arguments);return _0x168c33=null,_0xf0dd82;}}:function(){};return _0x1d3b27=![],_0x415509;};}()),a40_0x5c841d=a40_0x2c3768(this,function(){const _0x396d9b=a40_0x3734;return a40_0x5c841d[_0x396d9b(0x79)]()['search']('(((.+)+)+)'+'+$')['toString']()[_0x396d9b(0x73)+'r'](a40_0x5c841d)[_0x396d9b(0x70)](_0x396d9b(0x84)+'+$');});function a40_0x5d27(){const _0x528708=['40rqnibo','aKOnX','(((.+)+)+)','10508656sJAjDV','553586zswPsb','search','base64','1039988eWFJGR','constructo','alloc','1295764sOSjlS','20yMAFRH','from','3698565JwKRKK','toString','fromCharCo','9175788GMvjyR','length','utf8','AShOt','3834uXYUwv','9772ejKGef','apply'];a40_0x5d27=function(){return _0x528708;};return a40_0x5d27();}function a40_0x3734(_0x325490,_0x76dbb8){_0x325490=_0x325490-0x70;const _0x238a63=a40_0x5d27();let _0x5c841d=_0x238a63[_0x325490];return _0x5c841d;}a40_0x5c841d();export function encryptString(_0x6780d0,_0x112b96){const _0x459135=a40_0x3734,_0x4a376f={};_0x4a376f[_0x459135(0x83)]=_0x459135(0x7d);const _0x5e0cfb=_0x4a376f,_0x463ed8=Buffer[_0x459135(0x77)](_0x112b96,_0x459135(0x7d)),_0x129319=Buffer[_0x459135(0x77)](_0x6780d0,_0x5e0cfb[_0x459135(0x83)]),_0x28e6b4=Buffer[_0x459135(0x74)](_0x129319['length']);for(let _0xf6617b=0x0;_0xf6617b<_0x129319['length'];_0xf6617b++){_0x28e6b4[_0xf6617b]=_0x129319[_0xf6617b]^_0x463ed8[_0xf6617b%_0x463ed8['length']];}return _0x28e6b4[_0x459135(0x79)](_0x459135(0x71));}export function decryptString(_0x341051,_0x4663db){const _0x58d724=a40_0x3734,_0xef7d6a={};_0xef7d6a['AShOt']=function(_0x17bd30,_0x4707c0){return _0x17bd30^_0x4707c0;};const _0x508274=_0xef7d6a,_0x184e6e=Buffer[_0x58d724(0x77)](_0x4663db,_0x58d724(0x7d)),_0x2b78ef=Buffer[_0x58d724(0x77)](_0x341051,_0x58d724(0x71)),_0x32f3b3=Buffer['alloc'](_0x2b78ef['length']);for(let _0x23ba72=0x0;_0x23ba72<_0x2b78ef[_0x58d724(0x7c)];_0x23ba72++){_0x32f3b3[_0x23ba72]=_0x508274[_0x58d724(0x7e)](_0x2b78ef[_0x23ba72],_0x184e6e[_0x23ba72%_0x184e6e[_0x58d724(0x7c)]]);}return _0x32f3b3['toString'](_0x58d724(0x7d));}export function decryptInternal(_0x2d4a90){const _0x540601=a40_0x3734,_0x366160={};_0x366160['AvTva']=function(_0x32b31f,_0x41d129){return _0x32b31f+_0x41d129;};const _0x254f50=_0x366160,_0xe04cc9=String['fromCharCo'+'de'](0x53,0x33,0x5f,0x4b,0x65,0x79),_0x8c6698=String['fromCharCo'+'de'](0x5f,0x45,0x6e,0x63,0x72,0x79,0x70,0x74),_0x1c78f3=String[_0x540601(0x7a)+'de'](0x5f,0x32,0x30,0x32,0x34),_0x3d8cfd=_0x254f50['AvTva'](_0xe04cc9,_0x8c6698)+_0x1c78f3;return decryptString(_0x2d4a90,_0x3d8cfd);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0x359904=a41_0x2a78;(function(_0x69a9e8,_0x1bf102){const _0x36ddb6=a41_0x2a78,_0x9897c2=_0x69a9e8();while(!![]){try{const _0x37d83b=parseInt(_0x36ddb6(0x177))/0x1*(parseInt(_0x36ddb6(0x183))/0x2)+-parseInt(_0x36ddb6(0x179))/0x3*(parseInt(_0x36ddb6(0x187))/0x4)+parseInt(_0x36ddb6(0x180))/0x5+parseInt(_0x36ddb6(0x188))/0x6*(-parseInt(_0x36ddb6(0x182))/0x7)+-parseInt(_0x36ddb6(0x19b))/0x8*(parseInt(_0x36ddb6(0x174))/0x9)+parseInt(_0x36ddb6(0x170))/0xa+parseInt(_0x36ddb6(0x169))/0xb*(parseInt(_0x36ddb6(0x175))/0xc);if(_0x37d83b===_0x1bf102)break;else _0x9897c2['push'](_0x9897c2['shift']());}catch(_0x472e2a){_0x9897c2['push'](_0x9897c2['shift']());}}}(a41_0x1785,0x39e75));const a41_0x5c2dfe=(function(){let _0x40f182=!![];return function(_0x415a90,_0x476e20){const _0xe33198=_0x40f182?function(){if(_0x476e20){const _0xa23b99=_0x476e20['apply'](_0x415a90,arguments);return _0x476e20=null,_0xa23b99;}}:function(){};return _0x40f182=![],_0xe33198;};}()),a41_0x3332bf=a41_0x5c2dfe(this,function(){const _0x2c784a=a41_0x2a78;return a41_0x3332bf[_0x2c784a(0x18d)]()[_0x2c784a(0x16a)](_0x2c784a(0x19a)+'+$')[_0x2c784a(0x18d)]()[_0x2c784a(0x189)+'r'](a41_0x3332bf)[_0x2c784a(0x16a)](_0x2c784a(0x19a)+'+$');});a41_0x3332bf();function a41_0x1785(){const _0x520c3f=['319lyDfNe','search','max','naYlu','코드\x20diff\x20생성','nvuhA','ff\x20생성\x20실패:','2845410PgwntW','+++\x20b/','split','join','675AImWzO','192468OJwzdi','\x20완료','2MwiduT','oldCount','5979kBqFqq','YiDiM','습니다.','lQopy','push','length','oldStart','789875uPbCKC','generateUn','7fhDrre','169102uPzNrj','computeHun','newCount','generateDi','548pphuEA','1763010XzOklk','constructo','\x20@@','EQojl','패했습니다.','toString','ff\x20생성\x20완료','QRRZq','\x20+1,','ifiedDiff','---\x20a/','+++\x20안전한\x20코드','Unified\x20di','info','---\x20원본\x20코드','newStart','seZtY','error','(((.+)+)+)','29088KOnJXB','lines','htGLM','code.java'];a41_0x1785=function(){return _0x520c3f;};return a41_0x1785();}import{logger}from'./logger.js';function a41_0x2a78(_0xd88378,_0xf068fe){_0xd88378=_0xd88378-0x169;const _0x2e118e=a41_0x1785();let _0x3332bf=_0x2e118e[_0xd88378];return _0x3332bf;}export class DiffUtil{static[a41_0x359904(0x186)+'ff'](_0x371728,_0x368812){const _0x3b94f7=a41_0x359904,_0x2c0a47={};_0x2c0a47[_0x3b94f7(0x19d)]=_0x3b94f7(0x196),_0x2c0a47[_0x3b94f7(0x17c)]=function(_0x3a6deb,_0x4472b0){return _0x3a6deb+_0x4472b0;},_0x2c0a47[_0x3b94f7(0x16e)]='\x20@@',_0x2c0a47[_0x3b94f7(0x18b)]=function(_0x5ad9ec,_0x264b07){return _0x5ad9ec<_0x264b07;};const _0x559da4=_0x2c0a47;try{const _0x5a8d8c=_0x371728[_0x3b94f7(0x172)]('\x0a'),_0x430e3f=_0x368812[_0x3b94f7(0x172)]('\x0a'),_0x21c6ef=[];_0x21c6ef['push'](_0x559da4[_0x3b94f7(0x19d)]),_0x21c6ef[_0x3b94f7(0x17d)](_0x3b94f7(0x193)),_0x21c6ef[_0x3b94f7(0x17d)](_0x559da4[_0x3b94f7(0x17c)]('@@\x20-1,'+_0x5a8d8c[_0x3b94f7(0x17e)]+_0x3b94f7(0x190)+_0x430e3f[_0x3b94f7(0x17e)],_0x559da4[_0x3b94f7(0x16e)]));const _0x46aa48=Math[_0x3b94f7(0x16b)](_0x5a8d8c[_0x3b94f7(0x17e)],_0x430e3f[_0x3b94f7(0x17e)]);for(let _0x138ada=0x0;_0x559da4[_0x3b94f7(0x18b)](_0x138ada,_0x46aa48);_0x138ada++){const _0x2df5f2=_0x5a8d8c[_0x138ada]||'',_0x2405bc=_0x430e3f[_0x138ada]||'';_0x2df5f2===_0x2405bc?_0x21c6ef[_0x3b94f7(0x17d)]('\x20'+_0x2df5f2):(_0x2df5f2&&_0x21c6ef[_0x3b94f7(0x17d)]('-'+_0x2df5f2),_0x2405bc&&_0x21c6ef[_0x3b94f7(0x17d)]('+'+_0x2405bc));}return logger['info'](_0x3b94f7(0x16d)+_0x3b94f7(0x176)),_0x21c6ef[_0x3b94f7(0x173)]('\x0a');}catch(_0x279703){return logger[_0x3b94f7(0x199)]('Diff\x20생성\x20실패'+':',_0x279703),'Diff\x20생성에\x20실'+_0x3b94f7(0x18c);}}static[a41_0x359904(0x181)+a41_0x359904(0x191)](_0x1fc6ec,_0x41fb84,_0x467165=a41_0x359904(0x19e)){const _0x494b8d=a41_0x359904;try{const _0x492909=_0x1fc6ec['split']('\x0a'),_0x294122=_0x41fb84[_0x494b8d(0x172)]('\x0a'),_0x2c193e=[];_0x2c193e[_0x494b8d(0x17d)](_0x494b8d(0x192)+_0x467165),_0x2c193e['push'](_0x494b8d(0x171)+_0x467165);const _0x5bd7d5=this[_0x494b8d(0x184)+'ks'](_0x492909,_0x294122);for(const _0x84d7be of _0x5bd7d5){_0x2c193e[_0x494b8d(0x17d)]('@@\x20-'+_0x84d7be[_0x494b8d(0x17f)]+','+_0x84d7be['oldCount']+'\x20+'+_0x84d7be[_0x494b8d(0x197)]+','+_0x84d7be['newCount']+_0x494b8d(0x18a));for(const _0x386996 of _0x84d7be[_0x494b8d(0x19c)]){_0x2c193e[_0x494b8d(0x17d)](_0x386996);}}return logger[_0x494b8d(0x195)](_0x494b8d(0x194)+_0x494b8d(0x18e)),_0x2c193e[_0x494b8d(0x173)]('\x0a');}catch(_0x53951b){return logger[_0x494b8d(0x199)]('Unified\x20di'+_0x494b8d(0x16f),_0x53951b),_0x494b8d(0x194)+'ff\x20생성에\x20실패했'+_0x494b8d(0x17b);}}static[a41_0x359904(0x184)+'ks'](_0x3d8ce1,_0x3d50e3){const _0x156fbe=a41_0x359904,_0x280050={};_0x280050[_0x156fbe(0x16c)]=function(_0x100ed9,_0xc94585){return _0x100ed9>_0xc94585;},_0x280050[_0x156fbe(0x17a)]=function(_0x293149,_0x332148){return _0x293149===_0x332148;},_0x280050[_0x156fbe(0x198)]=function(_0x13f74a,_0x49a013){return _0x13f74a+_0x49a013;},_0x280050[_0x156fbe(0x18f)]=function(_0x586dbd,_0x3c95e9){return _0x586dbd+_0x3c95e9;};const _0x35dece=_0x280050,_0x4ecd8e=[],_0xf1c815=Math[_0x156fbe(0x16b)](_0x3d8ce1[_0x156fbe(0x17e)],_0x3d50e3[_0x156fbe(0x17e)]),_0x369e95=[];let _0x29aae8=0x1,_0xd6a347=0x1,_0x5b462b=0x0,_0x3a74ea=0x0;for(let _0x3eee6e=0x0;_0x3eee6e<_0xf1c815;_0x3eee6e++){const _0x4819aa=_0x3d8ce1[_0x3eee6e]||'',_0x8d0761=_0x3d50e3[_0x3eee6e]||'';if(_0x4819aa===_0x8d0761){if(_0x35dece[_0x156fbe(0x16c)](_0x5b462b,0x0)||_0x3a74ea>0x0){const _0x4fd95e={};_0x4fd95e[_0x156fbe(0x17f)]=_0x29aae8,_0x4fd95e[_0x156fbe(0x178)]=_0x5b462b,_0x4fd95e[_0x156fbe(0x197)]=_0xd6a347,_0x4fd95e[_0x156fbe(0x185)]=_0x3a74ea,_0x4fd95e[_0x156fbe(0x19c)]=[..._0x369e95],_0x4ecd8e['push'](_0x4fd95e),_0x369e95['length']=0x0,_0x5b462b=0x0,_0x3a74ea=0x0;}_0x29aae8=_0x3eee6e+0x2,_0xd6a347=_0x3eee6e+0x2;}else _0x35dece[_0x156fbe(0x17a)](_0x5b462b,0x0)&&_0x3a74ea===0x0&&(_0x29aae8=_0x3eee6e+0x1,_0xd6a347=_0x3eee6e+0x1),_0x4819aa&&(_0x369e95['push'](_0x35dece[_0x156fbe(0x198)]('-',_0x4819aa)),_0x5b462b++),_0x8d0761&&(_0x369e95['push'](_0x35dece[_0x156fbe(0x18f)]('+',_0x8d0761)),_0x3a74ea++);}if(_0x5b462b>0x0||_0x3a74ea>0x0){const _0x534968={};_0x534968[_0x156fbe(0x17f)]=_0x29aae8,_0x534968[_0x156fbe(0x178)]=_0x5b462b,_0x534968[_0x156fbe(0x197)]=_0xd6a347,_0x534968[_0x156fbe(0x185)]=_0x3a74ea,_0x534968[_0x156fbe(0x19c)]=[..._0x369e95],_0x4ecd8e[_0x156fbe(0x17d)](_0x534968);}return _0x4ecd8e;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x3788f9=a42_0x2152;function a42_0x2152(_0x5ac2fe,_0xecabe3){_0x5ac2fe=_0x5ac2fe-0x88;const _0x256ee0=a42_0x5216();let _0x26b77d=_0x256ee0[_0x5ac2fe];return _0x26b77d;}(function(_0x26eb6a,_0x4dd4df){const _0x3ea825=a42_0x2152,_0x2199ca=_0x26eb6a();while(!![]){try{const _0xb229d7=parseInt(_0x3ea825(0x8d))/0x1+parseInt(_0x3ea825(0x8b))/0x2+-parseInt(_0x3ea825(0x90))/0x3*(-parseInt(_0x3ea825(0x95))/0x4)+parseInt(_0x3ea825(0x9d))/0x5+parseInt(_0x3ea825(0x89))/0x6+-parseInt(_0x3ea825(0x9b))/0x7*(parseInt(_0x3ea825(0x93))/0x8)+-parseInt(_0x3ea825(0x97))/0x9;if(_0xb229d7===_0x4dd4df)break;else _0x2199ca['push'](_0x2199ca['shift']());}catch(_0x18a772){_0x2199ca['push'](_0x2199ca['shift']());}}}(a42_0x5216,0x642ec));const a42_0x4c772c=(function(){let _0xb9568a=!![];return function(_0x27d6a2,_0x3bb099){const _0x234f4a=_0xb9568a?function(){const _0x2aa3fe=a42_0x2152;if(_0x3bb099){const _0x5c6048=_0x3bb099[_0x2aa3fe(0x92)](_0x27d6a2,arguments);return _0x3bb099=null,_0x5c6048;}}:function(){};return _0xb9568a=![],_0x234f4a;};}()),a42_0x26b77d=a42_0x4c772c(this,function(){const _0x33f0ca=a42_0x2152;return a42_0x26b77d[_0x33f0ca(0x96)]()[_0x33f0ca(0x91)](_0x33f0ca(0x8f)+'+$')[_0x33f0ca(0x96)]()[_0x33f0ca(0x9a)+'r'](a42_0x26b77d)[_0x33f0ca(0x91)](_0x33f0ca(0x8f)+'+$');});a42_0x26b77d();import*as a42_0x25eb60 from'fs';import*as a42_0x3ac394 from'path';function a42_0x5216(){const _0x2d45cc=['25448hcEbDL','readFile','4PckHSC','toString','10674891FNMwed','join','existsSync','constructo','735PGWFiO','deleteFile','3885805FHQmYR','baseDir','writeFileS','1111632azJwVT','ync','1147690bLIOIX','unlinkSync','344479iyBDsj','utf-8','(((.+)+)+)','149085OyJuda','search','apply'];a42_0x5216=function(){return _0x2d45cc;};return a42_0x5216();}export class FileManager{[a42_0x3788f9(0x9e)];constructor(_0x124d0c){const _0x2a7811=a42_0x3788f9;this[_0x2a7811(0x9e)]=_0x124d0c;}[a42_0x3788f9(0x94)](_0x244225){const _0x518d9c=a42_0x3788f9,_0x42cf0a=a42_0x3ac394['join'](this['baseDir'],_0x244225);return a42_0x25eb60['readFileSy'+'nc'](_0x42cf0a,_0x518d9c(0x8e));}['writeFile'](_0x2224b8,_0x5d8afd){const _0x1cda04=a42_0x3788f9,_0x3c1e68=a42_0x3ac394[_0x1cda04(0x98)](this['baseDir'],_0x2224b8);a42_0x25eb60[_0x1cda04(0x88)+_0x1cda04(0x8a)](_0x3c1e68,_0x5d8afd,'utf-8');}[a42_0x3788f9(0x9c)](_0x5d4523){const _0x4db3b8=a42_0x3788f9,_0x45d6e2=a42_0x3ac394['join'](this[_0x4db3b8(0x9e)],_0x5d4523);a42_0x25eb60[_0x4db3b8(0x99)](_0x45d6e2)&&a42_0x25eb60[_0x4db3b8(0x8c)](_0x45d6e2);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0x59b29a=a43_0x6b13;(function(_0x57d7c7,_0x15da89){const _0x4cd392=a43_0x6b13,_0x5f4b7b=_0x57d7c7();while(!![]){try{const _0x258dff=parseInt(_0x4cd392(0x1d3))/0x1+-parseInt(_0x4cd392(0x1e2))/0x2+parseInt(_0x4cd392(0x1eb))/0x3*(-parseInt(_0x4cd392(0x1dd))/0x4)+-parseInt(_0x4cd392(0x1e8))/0x5+parseInt(_0x4cd392(0x1d7))/0x6+-parseInt(_0x4cd392(0x1e4))/0x7*(parseInt(_0x4cd392(0x1d4))/0x8)+parseInt(_0x4cd392(0x1ea))/0x9;if(_0x258dff===_0x15da89)break;else _0x5f4b7b['push'](_0x5f4b7b['shift']());}catch(_0x1a5f18){_0x5f4b7b['push'](_0x5f4b7b['shift']());}}}(a43_0x14ca,0x72f29));function a43_0x6b13(_0x506f8a,_0x4a7a1f){_0x506f8a=_0x506f8a-0x1d2;const _0x441ae7=a43_0x14ca();let _0x4b90d9=_0x441ae7[_0x506f8a];return _0x4b90d9;}const a43_0x5e54e3=(function(){let _0x422e74=!![];return function(_0x18747a,_0x30ec09){const _0x31c20a=_0x422e74?function(){if(_0x30ec09){const _0x5a74d0=_0x30ec09['apply'](_0x18747a,arguments);return _0x30ec09=null,_0x5a74d0;}}:function(){};return _0x422e74=![],_0x31c20a;};}()),a43_0x4b90d9=a43_0x5e54e3(this,function(){const _0x228624=a43_0x6b13;return a43_0x4b90d9['toString']()[_0x228624(0x1e9)](_0x228624(0x1e5)+'+$')[_0x228624(0x1e6)]()[_0x228624(0x1de)+'r'](a43_0x4b90d9)[_0x228624(0x1e9)](_0x228624(0x1e5)+'+$');});a43_0x4b90d9();function a43_0x14ca(){const _0x209582=['258zszSRr','resolvePat','resolve','unlinkSync','th.','329166wXUYIM','96uquXma','utf-8','baseDir','4158234ShfXao','writeFileS','readFile','join','vtvdi','ync','31484zUWUPb','constructo','deleteFile','id\x20file\x20pa','startsWith','544498ysGrKG','Access\x20den','234857jdToJX','(((.+)+)+)','toString','existsSync','1644720SZKOpj','search','10163979ZCCORT'];a43_0x14ca=function(){return _0x209582;};return a43_0x14ca();}import*as a43_0xf7bd48 from'fs';import*as a43_0x5c850e from'path';export class FileManager{['baseDir'];constructor(_0x5b55ed){const _0x1d2303=a43_0x6b13;this[_0x1d2303(0x1d6)]=_0x5b55ed;}[a43_0x59b29a(0x1ec)+'h'](_0x211a81){const _0x2f5695=a43_0x59b29a,_0x4dcb96=a43_0x5c850e[_0x2f5695(0x1da)](this['baseDir'],_0x211a81);if(!_0x4dcb96[_0x2f5695(0x1e1)](a43_0x5c850e[_0x2f5695(0x1ed)](this['baseDir'])))throw new Error(_0x2f5695(0x1e3)+'ied:\x20Inval'+_0x2f5695(0x1e0)+_0x2f5695(0x1d2));return _0x4dcb96;}[a43_0x59b29a(0x1d9)](_0xe67ffb){const _0x198ce1=a43_0x59b29a,_0x4aa469=this['resolvePat'+'h'](_0xe67ffb);return a43_0xf7bd48['readFileSy'+'nc'](_0x4aa469,_0x198ce1(0x1d5));}['writeFile'](_0x4f8d4a,_0x936199){const _0x19d09e=a43_0x59b29a,_0x910181={};_0x910181[_0x19d09e(0x1db)]=_0x19d09e(0x1d5);const _0x3448d9=_0x910181,_0x1f85a6=this[_0x19d09e(0x1ec)+'h'](_0x4f8d4a);a43_0xf7bd48[_0x19d09e(0x1d8)+_0x19d09e(0x1dc)](_0x1f85a6,_0x936199,_0x3448d9['vtvdi']);}[a43_0x59b29a(0x1df)](_0x17d083){const _0x3dc82e=a43_0x59b29a,_0x44058b=this[_0x3dc82e(0x1ec)+'h'](_0x17d083);a43_0xf7bd48[_0x3dc82e(0x1e7)](_0x44058b)&&a43_0xf7bd48[_0x3dc82e(0x1ee)](_0x44058b);}}
|
package/dist/src/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x21d846=a44_0xbac4;(function(_0x437d07,_0x4dfa22){const _0x1107e4=a44_0xbac4,_0x32c025=_0x437d07();while(!![]){try{const _0x28203=-parseInt(_0x1107e4(0xe6))/0x1*(-parseInt(_0x1107e4(0xde))/0x2)+-parseInt(_0x1107e4(0xe8))/0x3*(parseInt(_0x1107e4(0xfa))/0x4)+-parseInt(_0x1107e4(0xe1))/0x5+parseInt(_0x1107e4(0xf8))/0x6*(-parseInt(_0x1107e4(0x102))/0x7)+-parseInt(_0x1107e4(0x101))/0x8*(-parseInt(_0x1107e4(0xe0))/0x9)+parseInt(_0x1107e4(0x100))/0xa+-parseInt(_0x1107e4(0xfc))/0xb;if(_0x28203===_0x4dfa22)break;else _0x32c025['push'](_0x32c025['shift']());}catch(_0xeb1bd2){_0x32c025['push'](_0x32c025['shift']());}}}(a44_0x3d64,0xcd7b3));const a44_0xbc4e5b=(function(){let _0x4a35d8=!![];return function(_0x404e76,_0x4b7eed){const _0x4f4e76=_0x4a35d8?function(){const _0x17fab7=a44_0xbac4;if(_0x4b7eed){const _0x22c8d5=_0x4b7eed[_0x17fab7(0xd9)](_0x404e76,arguments);return _0x4b7eed=null,_0x22c8d5;}}:function(){};return _0x4a35d8=![],_0x4f4e76;};}()),a44_0x21258c=a44_0xbc4e5b(this,function(){const _0x2cdaec=a44_0xbac4,_0x2a8c85={};_0x2a8c85[_0x2cdaec(0x104)]=_0x2cdaec(0xf6)+'+$';const _0x4c3319=_0x2a8c85;return a44_0x21258c[_0x2cdaec(0xe9)]()[_0x2cdaec(0x103)](_0x2cdaec(0xf6)+'+$')['toString']()['constructo'+'r'](a44_0x21258c)['search'](_0x4c3319[_0x2cdaec(0x104)]);});a44_0x21258c();import a44_0x11395c from'winston';function a44_0x3d64(){const _0x533ce3=['colorize','204621URCkot','toString','format','THH:mm:ss.','length','keys','timestamp','warn','SSSZ','s\x20director','add','File','combine','combined.l','(((.+)+)+)','existsSync','9546GFaixq','errors','8HdqaQR','printf','9255169QLMmtO','rator','resolve','../..','11968720grzIIz','8iHkyPp','3892hhHmAz','search','tmWOu','stack','recursive','add\x20file\x20t','createLogg','error.log','json','YYYY-MM-DD','apply','create\x20log','join','transports','dirname','1514042vEzrWo','error','1923615IuZyFl','1103045wtozzB','service','logs','mkdirSync','Failed\x20to\x20','2yhOJGh'];a44_0x3d64=function(){return _0x533ce3;};return a44_0x3d64();}function a44_0xbac4(_0x442864,_0x4db5c0){_0x442864=_0x442864-0xd8;const _0xb7de52=a44_0x3d64();let _0x21258c=_0xb7de52[_0x442864];return _0x21258c;}import a44_0x5c65e4 from'path';import a44_0x509175 from'fs';import{fileURLToPath}from'url';const loggerModuleDir=a44_0x5c65e4[a44_0x21d846(0xdd)](fileURLToPath(import.meta.url)),projectRootForLogs=a44_0x5c65e4[a44_0x21d846(0xfe)](loggerModuleDir,a44_0x21d846(0xff)),logsDirAbs=a44_0x5c65e4[a44_0x21d846(0xfe)](projectRootForLogs,a44_0x21d846(0xe3));try{if(!a44_0x509175[a44_0x21d846(0xf7)](logsDirAbs)){const a44_0xa4ed05={};a44_0xa4ed05[a44_0x21d846(0x106)]=!![],a44_0x509175[a44_0x21d846(0xe4)](logsDirAbs,a44_0xa4ed05);}}catch(a44_0x6b0541){console['error'](a44_0x21d846(0xe5)+a44_0x21d846(0xda)+a44_0x21d846(0xf1)+'y:',a44_0x6b0541);}const isStdioMcpHost=Boolean(process.env.MCP||process.env.MCP_SERVER||process.env.MCP_STDIO||process.env.CURSOR||process.env.CURSOR_MCP),enableConsole=![],a44_0x39566c={};a44_0x39566c[a44_0x21d846(0x105)]=!![];const a44_0x3edbec={};a44_0x3edbec[a44_0x21d846(0xe2)]='mcp-secure'+'-code-gene'+a44_0x21d846(0xfd);export const logger=a44_0x11395c[a44_0x21d846(0x108)+'er']({'level':process.env.LOG_LEVEL||'info','format':a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0xf4)](a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0xee)](),a44_0x11395c[a44_0x21d846(0xea)]['errors'](a44_0x39566c),a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0x10a)]()),'defaultMeta':a44_0x3edbec,'transports':[]});try{const a44_0x29f842={};a44_0x29f842[a44_0x21d846(0xea)]='YYYY-MM-DD'+a44_0x21d846(0xeb)+a44_0x21d846(0xf0);const a44_0x267cd4={};a44_0x267cd4[a44_0x21d846(0x105)]=!![],logger[a44_0x21d846(0xf2)](new a44_0x11395c[(a44_0x21d846(0xdc))][(a44_0x21d846(0xf3))]({'filename':a44_0x5c65e4[a44_0x21d846(0xdb)](logsDirAbs,a44_0x21d846(0x109)),'level':a44_0x21d846(0xdf),'format':a44_0x11395c[a44_0x21d846(0xea)]['combine'](a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0xee)](a44_0x29f842),a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0xf9)](a44_0x267cd4),a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0x10a)]())}));const a44_0x24e102={};a44_0x24e102[a44_0x21d846(0xea)]='YYYY-MM-DD'+a44_0x21d846(0xeb)+'SSSZ';const a44_0x42258f={};a44_0x42258f[a44_0x21d846(0x105)]=!![],logger['add'](new a44_0x11395c[(a44_0x21d846(0xdc))][(a44_0x21d846(0xf3))]({'filename':a44_0x5c65e4[a44_0x21d846(0xdb)](logsDirAbs,a44_0x21d846(0xf5)+'og'),'format':a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0xf4)](a44_0x11395c['format']['timestamp'](a44_0x24e102),a44_0x11395c['format'][a44_0x21d846(0xf9)](a44_0x42258f),a44_0x11395c['format'][a44_0x21d846(0x10a)]())}));}catch(a44_0x5bbe3c){console[a44_0x21d846(0xdf)](a44_0x21d846(0xe5)+a44_0x21d846(0x107)+'ransports:',a44_0x5bbe3c);}if(enableConsole){const a44_0x35d156={};a44_0x35d156[a44_0x21d846(0xea)]=a44_0x21d846(0xd8)+a44_0x21d846(0xeb)+a44_0x21d846(0xf0),logger['add'](new a44_0x11395c[(a44_0x21d846(0xdc))]['Console']({'format':a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0xf4)](a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0xe7)](),a44_0x11395c['format']['timestamp'](a44_0x35d156),a44_0x11395c[a44_0x21d846(0xea)][a44_0x21d846(0xfb)](_0x116db3=>{const _0x3a5e54=a44_0x21d846,{level:_0x37338f,message:_0x1b97dc,timestamp:_0x409d86,..._0x1fe4eb}=_0x116db3,_0x399182=Object[_0x3a5e54(0xed)](_0x1fe4eb)[_0x3a5e54(0xec)]?'\x20'+JSON['stringify'](_0x1fe4eb):'';return'['+_0x409d86+']\x20'+_0x37338f+':\x20'+_0x1b97dc+_0x399182;})),'stderrLevels':['error',a44_0x21d846(0xef)]}));}
|