opclawtm 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of opclawtm might be problematic. Click here for more details.
- package/dist/bin/team-manager.js +35 -1
- package/dist/bin/team-setup.js +65 -1
- package/dist/bin/team-uninstall.js +90 -1
- package/dist/cli/commands/agent.command.js +223 -1
- package/dist/cli/commands/checklist.command.js +77 -1
- package/dist/cli/commands/dept.command.js +92 -1
- package/dist/cli/commands/document.command.js +146 -1
- package/dist/cli/commands/domain.command.js +97 -1
- package/dist/cli/commands/feishu.command.js +433 -1
- package/dist/cli/commands/job.command.js +168 -1
- package/dist/cli/commands/license.command.js +68 -1
- package/dist/cli/commands/message-failure.command.js +137 -1
- package/dist/cli/commands/message.command.js +129 -1
- package/dist/cli/commands/node.command.js +251 -1
- package/dist/cli/commands/role-flow.command.js +54 -1
- package/dist/cli/commands/skill-pack.command.js +137 -1
- package/dist/cli/commands/status.command.js +61 -1
- package/dist/cli/commands/task.command.js +402 -1
- package/dist/cli/commands/user.command.js +134 -1
- package/dist/cli/index.js +863 -1
- package/dist/cli/tui/index.js +470 -1
- package/dist/cli/tui/menus/agent-manage.menu.js +614 -1
- package/dist/cli/tui/menus/dept-manage.menu.js +299 -1
- package/dist/cli/tui/menus/domain-manage.menu.js +208 -1
- package/dist/cli/tui/menus/feishu.menu.js +1727 -1
- package/dist/cli/tui/menus/job-manage.menu.js +734 -1
- package/dist/cli/tui/menus/license.menu.js +164 -1
- package/dist/cli/tui/menus/main.menu.js +94 -1
- package/dist/cli/tui/menus/reset.menu.js +767 -1
- package/dist/cli/tui/menus/status.menu.js +123 -1
- package/dist/cli/tui/menus/task-manage.menu.js +129 -1
- package/dist/cli/tui/menus/team-create.menu.js +353 -1
- package/dist/config.js +74 -1
- package/dist/core/auth/index.js +22 -1
- package/dist/core/auth/middleware.js +456 -1
- package/dist/core/auth/storage.js +280 -1
- package/dist/core/models/types.js +9 -1
- package/dist/core/services/agent-template.service.js +88 -1
- package/dist/core/services/agent.service.js +381 -1
- package/dist/core/services/auth-profiles.service.js +220 -1
- package/dist/core/services/checklist.service.js +240 -1
- package/dist/core/services/config-tracker.service.js +1093 -1
- package/dist/core/services/crypto.service.js +377 -1
- package/dist/core/services/dept.service.js +260 -1
- package/dist/core/services/document.service.js +368 -1
- package/dist/core/services/domain.service.js +98 -1
- package/dist/core/services/feishu.service.js +165 -1
- package/dist/core/services/index.js +89 -1
- package/dist/core/services/job.service.js +190 -1
- package/dist/core/services/log.service.js +237 -1
- package/dist/core/services/message-failure.service.js +112 -1
- package/dist/core/services/message.service.js +374 -1
- package/dist/core/services/node.service.js +257 -1
- package/dist/core/services/openclaw-config.service.js +268 -1
- package/dist/core/services/preset-loader.service.js +379 -1
- package/dist/core/services/role-flow.service.js +47 -1
- package/dist/core/services/setup.service.js +336 -1
- package/dist/core/services/skill-pack.service.js +113 -1
- package/dist/core/services/task.service.js +397 -1
- package/dist/core/services/template.service.js +88 -1
- package/dist/core/services/user.service.js +111 -1
- package/dist/core/utils/agent-guide-generator.js +187 -1
- package/dist/core/utils/credentials-cleanup.js +256 -1
- package/dist/core/utils/index.js +462 -1
- package/dist/core/utils/openclaw-helper.js +1632 -1
- package/dist/core/utils/template-generator.js +170 -1
- package/dist/db/index.js +403 -1
- package/dist/db/repositories/agent-template.repo.js +108 -1
- package/dist/db/repositories/agent.repo.js +103 -1
- package/dist/db/repositories/base.repository.js +107 -1
- package/dist/db/repositories/company.repo.js +33 -1
- package/dist/db/repositories/config-change.repo.js +119 -1
- package/dist/db/repositories/dept.repo.js +66 -1
- package/dist/db/repositories/document.repo.js +51 -1
- package/dist/db/repositories/domain.repo.js +79 -1
- package/dist/db/repositories/index.js +81 -1
- package/dist/db/repositories/init-session.repo.js +112 -1
- package/dist/db/repositories/job.repo.js +119 -1
- package/dist/db/repositories/message-failure.repo.js +141 -1
- package/dist/db/repositories/message-log.repo.js +64 -1
- package/dist/db/repositories/node.repo.js +276 -1
- package/dist/db/repositories/role-flow.repo.js +83 -1
- package/dist/db/repositories/skill-pack.repo.js +149 -1
- package/dist/db/repositories/task.repo.js +381 -1
- package/dist/db/repositories/template.repo.js +66 -1
- package/dist/db/repositories/user.repo.js +75 -1
- package/package.json +1 -1
- package/resources/preset-data-hash.enc +1 -1
- package/resources/preset-data.enc +1 -1
|
@@ -1 +1,88 @@
|
|
|
1
|
-
'use strict';(function(_0x1c11b6,_0x271c32){const _0x15d779={_0x597a83:0x612,_0x3bdb1c:0x637,_0x235783:0x5f5,_0x26943c:0x54b,_0x3c473a:0x569,_0x5d702d:'vCzw',_0x18e67a:0x5c9,_0x520bd7:0x585,_0x52595b:0x551,_0x2e5929:'(1SZ',_0x1c7a35:0x547,_0x104aab:0x64a},_0x2353d3={_0x1b0c2a:0x3ac},_0x53ae04={_0x40b62f:0x344},_0x5111e5=_0x1c11b6();function _0x49c6f3(_0x321d93,_0x27773b,_0x59acaf,_0x1a86e6){return _0x3f26(_0x1a86e6-_0x53ae04._0x40b62f,_0x27773b);}function _0x108dd9(_0x222810,_0x2a5eff,_0xd90745,_0x561598){return _0x3f26(_0x222810-_0x2353d3._0x1b0c2a,_0x2a5eff);}while(!![]){try{const _0x537dc8=-parseInt(_0x108dd9(_0x15d779._0x597a83,'YIuC',_0x15d779._0x3bdb1c,_0x15d779._0x235783))/(0x18d*0x8+-0xd96+0x1*0x12f)+-parseInt(_0x49c6f3(0x585,'t0)u',0x60a,0x5c6))/(0x22f1+0x13cd+0x1*-0x36bc)+parseInt(_0x49c6f3(0x5fd,'XQVC',0x58d,0x5b5))/(-0x24d2+-0x1299+-0x21*-0x1ae)+parseInt(_0x49c6f3(_0x15d779._0x26943c,'dO!W',_0x15d779._0x3c473a,0x56e))/(0x801*0x4+0x17c5+0x1297*-0x3)+-parseInt(_0x108dd9(0x5f6,_0x15d779._0x5d702d,0x618,_0x15d779._0x18e67a))/(-0x886+-0x13ff*0x1+0x1c8a)+parseInt(_0x49c6f3(_0x15d779._0x520bd7,'u7MQ',_0x15d779._0x52595b,0x553))/(-0x1382+0x1f3f+-0xbb7)*(parseInt(_0x49c6f3(0x57b,_0x15d779._0x2e5929,_0x15d779._0x1c7a35,0x552))/(0x185a+-0xa71+-0x1*0xde2))+-parseInt(_0x108dd9(0x622,_0x15d779._0x5d702d,0x663,0x670))/(-0x7d7+0xb*0x1e9+-0xd24)*(-parseInt(_0x108dd9(0x610,'XQVC',0x602,_0x15d779._0x104aab))/(0x212f+0x1a66*0x1+-0x3b8c*0x1));if(_0x537dc8===_0x271c32)break;else _0x5111e5['push'](_0x5111e5['shift']());}catch(_0x31faf3){_0x5111e5['push'](_0x5111e5['shift']());}}}(_0x3ca4,-0x1*-0x13625+-0x60145*0x1+0x3245*0x43));function _0x3ca4(){const _0x510327=['WO/cLCkGmmoOWQ/dJG','WR7cP8o0g0ddTKlcIaH7','W4npW4ezW6tcK8kJWPv8BahcLG','yCosD8okEa','WRD2xKtdOSk9','W6dcGCkkf8o7','nZbqWQanjHSE','WQZdKCooW6VcH8kyW4T1jG','DCofW5xdNf5tgG','WRRcVJVdUgDUW4q','eZa+WRldK8odFSkQmLm','W5SUW4VcH8kKqxi','WPldN2pdJsxcUSoQWQOB','aCowWPpcR8kkWO7dHK5dW5S6WOG','mc1BWPyQlZ0jWRng','WO3cHNpdICohW4VdKmofWRJcUSkdWRW','vMZdQLhcQ8ogjfyuWOi','ve3cVGtcNa','WQBdUsujWRKXsW','dq/dG1NdN0OJc8oEgSo8FW','j8oKrSoBfXZcTIi','DNWdfHa','W63dVY7cMxRdGcNcUvO','twtdQN3cLa','W7jfW6mHlSoGm3igjqFdTmo2','WPLHWQ88WPJcLH7dLMi1','aCouWPxcQmkgWO/cTuHWW7a4WRVdQW','FXddQMjzWOK','oZXjWQKJWQhdNCk6DSkO','fcrvs25Xk8oVW4RcKsyTW5K','W6/cT8kDa8o3W6D7p8oEW50','W7mnWQ7dUGqyW5JcIq','WQaFWRrNESk/Dq','W6lcKYRdJ1O','vCoZW7ldT1u','W6pcPSkliSoZW7bX','FXtdRxBcTG','wSoAD8oMrY/cKwhcUSoY','yIRdJSkoW5bQbZTf','WRHKDahcT8o3r8o4bG','h8kNgru7','W7hdUCkWpCkvl0S','W5m5W47cNCkMqW','W7JdOM7dPCkOoCojWQjcWRiEd0K','y3JdG23cOctdL8oqbHy','qgesbG','WRPGyLpdS8kRqmoP','ueZcJG','hmkax2ldQCoeeGFdHuK','l0xcTZCEW57cV8keW5ZcLKf2','W7/cPdVdQLzoW7W','W63dVZtcH2VdLYpcRfRcNG','WPL8WQqPWONcNsS','xKRcKJ3cJGerjSoujW','5QIF5PYx5PQn5PAT5OIb5yIe','WQBdKCojW5RcN8kRW5C','lrS+WPldU8oEBmk2pvm','oCoSW6LLW74qWOpdKSoW','FW7dVLlcJ27dIw0qWQO','fIzVyGtcKa','WPbkWRieWRu','lYTiWQyJWPddUCkWy8kQ','sWBdRM17','W4RdGNiaW6e','WONcKGS','WPRdI1NdKYpcI8o8WQiFWOq','i8kbgqCf','g8kkuMtdTCoAeG','lJbnEGO','WOvBAGBcOq','W6RdRmobWPnNW5z7','W6FcQSkUg8oi','W67cTIKmW6DV','W4pdHSktmKSZWOS','ldvpDbBdKNrzrCoz','W6xdRmo5WR18','WQtcSc7cOSo+ASkE','h+w3JowUR+wDHG','nmoUW6vYW7W','dfTllsNcOZ0sldOlWPnu','CbFdHCkhW6j/mJzqFW','W6TDp8oLW6e','WR7cTmo0j1hdKKJcLHfJ','WPldN2ZdJZlcRmo8WRS','emkqhbOS','W63dVSkQ','WOv8WONdHCoZeIldGCo7u8ohWQOg','WPBdHSkEn3OoWRq','5QQ45P++5BEe5yMO6zUR','5QMc5PYP5yIq5BU55OMG5yMQ','W6VdHSotw8kU','DWRdJSkXW4v2ctXjBG','dComWRFdJ8o0','WPvHWRm','W6PccmkrWRC9EM7cNZ8','W5/dQSokWP5V','W6ZcOYKdW6DEpcPkgW','WPT0WQ8ZWPJcPZRdNhC3','EstdP2tcPJJdMSknbHy','W69taCkMWQyO','WRb8xfxdS8k2uq','ESojD8oAvGVcM3/cO8oQ','uSktW4ldI8oBW4xdTgnjW6y','jq19CdO','F8oyCCo6sGVcGf/cS8oW','WQbMuuldS8kRvG','W5pdNmkEjuSUWOW','W4ldLmoHASkJW67dNMNcIZ8','vvddUmkbW7PhF8ozW7Gr','WQFdTsuoWPK6qG','WRj0v0/dOSkmqmoWEtm','WO/cS8o5h2i','vHpdGh5x','fcXtqIa','sCoqbslcOCkfvahdI2dcT8kooW','jmolW4LMW60oWPVdLSoHaW','DaFdVW','uWKj','5QUh5P6FuG','W4KKW7TSW5RdH2RdSL49aSo0W50','5QQS5P67Ba','kaO4WRpdP8oCBSkmj1G','W6TCkCo4W5bsr1bFWQa','W5FdH8ojuCk2','W4TCkCo4W5bsr1bFWQa','aJfUBqtcOwZdLCkLW60','W63dSCokWQrdW4HHksZdQW','W5RLT6hLRPlLNBu','DfCrWOpdJSopAmky','WQlcQSomWOvFW4PJl2hdVq','hColW6rIW5G','k8orW6jSW4WfWQVdGG','W6xcIbS7W5O','WRPcgttcKa','FGxdQxreWPJcN8kHW6xcPG','W67dRCos','WOP+s0xdHq','W5tdKZhcISkvWP7dUG','AIq4ANu','CtddH2tcSr7dHSkqaH8','dcrY','WQixWR99A8kfzeObdG','WRemWPffWPG','WPJdG1ldItlcSCoT','ACocW48','6Aks57Yq5QQk5P6C5lQT5ywh6k+E5yMV6zMe','W7WgW53cJgroW6xcHCkvy8o3dG','teVcLa3cJGau','jmolW5n4W7WzWPhdG8oH','EW7dH8kcW5rJsd1fAG','W67cQYizW7zKlq','W7JdKdhcISkX','WQJcOtJcG8o6FCkuWQbPWQa','rNWicZWRBq','WRZcR8o/avhdJfm','WQZcTCoYfLhdKvq','W6xdQCkNhmkjfvW','W7ldQSoiyCksWOK8','vN/dQM3cUSoIlKGnWPO'];_0x3ca4=function(){return _0x510327;};return _0x3ca4();}function _0x3f26(_0x57cbcd,_0x3eafde){_0x57cbcd=_0x57cbcd-(0x6*0x51+0x34*-0x9a+0x1f4a);const _0x465048=_0x3ca4();let _0x766678=_0x465048[_0x57cbcd];if(_0x3f26['QDzqUT']===undefined){var _0x5d8e6f=function(_0x4855f7){const _0x254279='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x339209='',_0x525006='';for(let _0x276e22=0x1*-0x270b+0x1c1f+0xaec,_0xf518cc,_0x458713,_0x29e3e9=0x1f6*0xb+-0x1552+-0x40;_0x458713=_0x4855f7['charAt'](_0x29e3e9++);~_0x458713&&(_0xf518cc=_0x276e22%(0xc0b*-0x1+-0x4*-0x91+0x6d*0x17)?_0xf518cc*(0x68*-0x3c+-0x220b+0x3aab)+_0x458713:_0x458713,_0x276e22++%(-0x26b9+0x1b2d+0xb90))?_0x339209+=String['fromCharCode'](0xf12+-0x24ce+0x16bb*0x1&_0xf518cc>>(-(-0x7*-0x2bd+0x85d*0x1+0xdc3*-0x2)*_0x276e22&-0x84c+-0xad5*0x2+0x4c*0x65)):-0x20cc+-0x8db+0x29a7*0x1){_0x458713=_0x254279['indexOf'](_0x458713);}for(let _0x5d24fb=-0xd40+0x1a1e*0x1+-0xcde,_0x5fe452=_0x339209['length'];_0x5d24fb<_0x5fe452;_0x5d24fb++){_0x525006+='%'+('00'+_0x339209['charCodeAt'](_0x5d24fb)['toString'](-0xa6+-0x1acc+0xe*0x1f7))['slice'](-(-0x1e7*-0x7+-0x2c*-0x2b+-0x14b3));}return decodeURIComponent(_0x525006);};const _0x9eb72a=function(_0x35aed1,_0x2728d6){let _0x4d7b46=[],_0x253964=-0x1eb*0x5+0xa6d+-0xd6,_0xdd8cc6,_0x1e374c='';_0x35aed1=_0x5d8e6f(_0x35aed1);let _0x3c8f94;for(_0x3c8f94=0x914*-0x3+0x382+-0x1*-0x17ba;_0x3c8f94<0x1715+-0x1cf4+-0x6df*-0x1;_0x3c8f94++){_0x4d7b46[_0x3c8f94]=_0x3c8f94;}for(_0x3c8f94=-0xedd*0x2+-0x463*0x5+0x5*0xa55;_0x3c8f94<0xad4+-0x1*0x1309+0x935*0x1;_0x3c8f94++){_0x253964=(_0x253964+_0x4d7b46[_0x3c8f94]+_0x2728d6['charCodeAt'](_0x3c8f94%_0x2728d6['length']))%(-0x269e*0x1+-0x1065+0x3803),_0xdd8cc6=_0x4d7b46[_0x3c8f94],_0x4d7b46[_0x3c8f94]=_0x4d7b46[_0x253964],_0x4d7b46[_0x253964]=_0xdd8cc6;}_0x3c8f94=0xd6b+-0x181f+-0x1*-0xab4,_0x253964=-0x1*-0x1871+-0x3*0x102+-0x1*0x156b;for(let _0x4dd87a=0x11*-0x1fd+0x1c1*0x4+0x1ac9*0x1;_0x4dd87a<_0x35aed1['length'];_0x4dd87a++){_0x3c8f94=(_0x3c8f94+(-0x552+0x4c7*-0x5+0x1d36))%(-0x222e+-0x1aff+0x3e2d*0x1),_0x253964=(_0x253964+_0x4d7b46[_0x3c8f94])%(0x1*0x23a7+-0x2454+0x27*0xb),_0xdd8cc6=_0x4d7b46[_0x3c8f94],_0x4d7b46[_0x3c8f94]=_0x4d7b46[_0x253964],_0x4d7b46[_0x253964]=_0xdd8cc6,_0x1e374c+=String['fromCharCode'](_0x35aed1['charCodeAt'](_0x4dd87a)^_0x4d7b46[(_0x4d7b46[_0x3c8f94]+_0x4d7b46[_0x253964])%(0x2*0x15f+-0xd2e+0x3d*0x30)]);}return _0x1e374c;};_0x3f26['ALVeSZ']=_0x9eb72a,_0x3f26['GNOAFr']={},_0x3f26['QDzqUT']=!![];}const _0x13a490=_0x465048[-0x20*0xca+0x1e84+0x544*-0x1],_0xae107d=_0x57cbcd+_0x13a490,_0x2bbd5e=_0x3f26['GNOAFr'][_0xae107d];return!_0x2bbd5e?(_0x3f26['vUsBak']===undefined&&(_0x3f26['vUsBak']=!![]),_0x766678=_0x3f26['ALVeSZ'](_0x766678,_0x3eafde),_0x3f26['GNOAFr'][_0xae107d]=_0x766678):_0x766678=_0x2bbd5e,_0x766678;}function _0x349460(_0x2efd67,_0x2b8951,_0x520951,_0x257c42){return _0x3f26(_0x2b8951-0x247,_0x2efd67);}const _0xaf53e7={};_0xaf53e7[_0x349460('HDGh',0x453,0x422,0x42b)]=!![],Object['defineProp'+_0x349460('GDcO',0x4cb,0x480,0x485)](exports,_0x349460('bvnr',0x4a8,0x4f1,0x4e6),_0xaf53e7);function _0x3b6ced(_0x4b0cf3,_0x537f1,_0x114953,_0x55b482){const _0x5adc3c={_0x52b84f:0x218};return _0x3f26(_0x55b482- -_0x5adc3c._0x52b84f,_0x537f1);}exports[_0x3b6ced(0x1b,'SLG]',0x6b,0x2d)+_0x349460('bvnr',0x437,0x423,0x3ee)]=exports[_0x3b6ced(0x51,'(b!U',0x0,0x1a)+_0x349460('XQVC',0x465,0x4a2,0x463)]=void(-0x478+-0xe95+0x130d);const agent_template_repo_1=require(_0x3b6ced(-0x31,'A2fT',-0x1,0xb)+_0x3b6ced(0x5,'Z(E&',0x1a,0x26)+_0x349460('Mpu[',0x4ca,0x4b8,0x519)+_0x349460('Ot!d',0x494,0x4d4,0x471)+'o'),crypto_service_1=require(_0x349460('9I9r',0x480,0x470,0x488)+_0x349460('(1SZ',0x4c8,0x4c6,0x47e));class AgentTemplateService{[_0x3b6ced(0x49,'pV@x',0x5b,0x3c)](_0x4e05be){const _0x386d6f={_0x2d4676:'fF[2',_0xeec7fd:'v^v*',_0x50418c:0x1f4,_0x3ce5c7:0x20c,_0x203f3b:0x1eb,_0xdd778:0x1f9,_0x33a4e4:'pV@x',_0x392e9b:0x203,_0x4ee75a:0x1b6,_0x26f3f2:0x23a,_0x565b93:0x21c,_0x287bbd:0x224,_0x2da899:'ryT8',_0x56a113:'dO!W',_0x1d6113:0x1e7,_0x32e9e1:0x20e,_0x4deba2:0x234,_0x54b2e4:0x206,_0x587186:0x24e},_0x5d5dd1={_0x3b4bf6:0x125},_0x2e4150={_0x494afc:0x66,_0x2fbee8:0x1cf},_0x42df8e={};_0x42df8e[_0x5d5b63(_0x386d6f._0x2d4676,0x1e9,0x1d5,0x21e)]=function(_0x2096e9,_0x1662aa){return _0x2096e9===_0x1662aa;};const _0x417da3=_0x42df8e,_0x3ae06f=agent_template_repo_1[_0x5d5b63(_0x386d6f._0xeec7fd,0x1e1,0x1e7,_0x386d6f._0x50418c)+_0x82fdd8('IDXP',_0x386d6f._0x3ce5c7,_0x386d6f._0x203f3b,_0x386d6f._0xdd778)+_0x82fdd8(_0x386d6f._0x33a4e4,_0x386d6f._0x392e9b,_0x386d6f._0x4ee75a,0x204)][_0x5d5b63(']#%0',0x1f0,0x1f8,_0x386d6f._0x26f3f2)](_0x4e05be);if(!_0x3ae06f)return null;function _0x82fdd8(_0x31ee6a,_0xa502a9,_0x5140d7,_0x44a651){return _0x3b6ced(_0x31ee6a-_0x2e4150._0x494afc,_0x31ee6a,_0x5140d7-_0x2e4150._0x2fbee8,_0xa502a9-0x20e);}function _0x5d5b63(_0x3030c7,_0x21f2b9,_0x5f1aac,_0x372c55){return _0x3b6ced(_0x3030c7-0x8c,_0x3030c7,_0x5f1aac-_0x5d5dd1._0x3b4bf6,_0x372c55-0x217);}if(_0x417da3[_0x82fdd8('8X#a',0x232,0x27f,0x21d)](_0x3ae06f['is_preset'],-0x2263+0x3a8+0x2*0xf5e)&&(-0x45*0x6d+-0x449*-0x3+-0x1086*-0x1,crypto_service_1[_0x5d5b63('pFO^',_0x386d6f._0x565b93,_0x386d6f._0x287bbd,0x1f1)+'d'])(_0x3ae06f[_0x82fdd8(_0x386d6f._0x2da899,0x212,0x206,0x238)])){const _0x4530e1=(0x1b*-0x164+0x174+0x2418,crypto_service_1[_0x5d5b63(_0x386d6f._0x56a113,0x21b,0x223,_0x386d6f._0x1d6113)+'c'])(_0x3ae06f[_0x5d5b63('u7MQ',_0x386d6f._0x32e9e1,_0x386d6f._0x4deba2,0x200)]),_0xd3d17c={..._0x3ae06f};return _0xd3d17c[_0x82fdd8('A2fT',0x24d,_0x386d6f._0x54b2e4,_0x386d6f._0x587186)]=_0x4530e1,_0xd3d17c;}return _0x3ae06f;}[_0x3b6ced(0x92,'&Q33',0x98,0x51)](){const _0x701cfa={_0x6ffc22:0x342,_0x4bc391:0x309,_0x32a376:0x2ee,_0x3c4e0e:0x33c,_0x32793e:0x32d,_0x5f4890:'^DX9',_0x53febd:0x1d5,_0x58e4d2:']#%0',_0x41e8a3:'FXK6',_0x42ed40:0x245,_0x30b916:0x31c,_0xf61340:0x364,_0x587793:0x34b,_0x250f2f:0x226,_0x3ed8ea:'9I9r',_0x3da1b5:0x1ec,_0x24f5a9:0x2ac,_0x386364:0x2f2},_0x46819={_0x37a64d:0x406,_0x5326ee:0x44d,_0x3014e5:0x48f,_0x2e1451:']#%0',_0x3304d1:0x40c,_0x479eed:'2FMW',_0x5c5bce:0x494,_0x244aba:0x47d,_0x2946ea:'ryT8',_0x339abf:0x4ac,_0x356c17:0x451,_0x2f26e1:0x10a,_0x2a0c9d:0xf3,_0x43fe2d:0x15e,_0x15106d:0x148,_0x432ee2:'bvnr',_0x51c221:0x467,_0x216d84:0x475,_0xfa6394:0x487,_0x5645ab:0x4cf,_0x262557:'SLG]',_0x23e3f4:'Q0Zg',_0x2f6a48:0x169,_0x36c98d:'8X#a',_0x68d597:0x13b,_0x587ce3:0xee,_0x36724b:'tk@z',_0x57c62f:0x485,_0x6ae1e0:0x43a},_0x5a48a7={_0x29660b:0x16f,_0x1f408a:0x247},_0x165cb6={_0x110bac:0x2dd};function _0x24a03d(_0xf03c53,_0x3200b3,_0x4464a5,_0xb6f65d){return _0x3b6ced(_0xf03c53-0x193,_0xb6f65d,_0x4464a5-0x10e,_0x4464a5-_0x165cb6._0x110bac);}const _0x374a1c={};_0x374a1c[_0x24a03d(0x35c,_0x701cfa._0x6ffc22,0x331,'GDcO')]=function(_0x569d7e,_0x3aac0f){return _0x569d7e===_0x3aac0f;},_0x374a1c[_0x24a03d(_0x701cfa._0x4bc391,0x2c1,_0x701cfa._0x32a376,'fF[2')]=_0x24a03d(_0x701cfa._0x3c4e0e,0x37a,_0x701cfa._0x32793e,_0x701cfa._0x5f4890),_0x374a1c[_0x128223(_0x701cfa._0x53febd,_0x701cfa._0x58e4d2,0x1d7,0x1f5)]='iLzQx';const _0xa17b7d=_0x374a1c,_0x5c9b47=agent_template_repo_1['agentTempl'+_0x128223(0x247,_0x701cfa._0x41e8a3,0x22d,_0x701cfa._0x42ed40)+_0x24a03d(_0x701cfa._0x30b916,_0x701cfa._0xf61340,_0x701cfa._0x587793,_0x701cfa._0x5f4890)][_0x128223(_0x701cfa._0x250f2f,_0x701cfa._0x3ed8ea,_0x701cfa._0x3da1b5,0x1ed)]();function _0x128223(_0x288e1c,_0x3cfdd9,_0x2f7ff4,_0x415b70){return _0x3b6ced(_0x288e1c-0x1b1,_0x3cfdd9,_0x2f7ff4-0xb8,_0x415b70-0x207);}return _0x5c9b47[_0x24a03d(_0x701cfa._0x24f5a9,0x340,_0x701cfa._0x386364,'ELb5')](_0x2b0f7f=>{const _0x40491c={_0x4de937:0x16f,_0x489763:0x41,_0x1c64f6:0x44e};function _0x4779ba(_0x41a30b,_0x2608b4,_0x32bc05,_0x35c799){return _0x24a03d(_0x41a30b-_0x40491c._0x4de937,_0x2608b4-_0x40491c._0x489763,_0x2608b4- -_0x40491c._0x1c64f6,_0x41a30b);}function _0x107d36(_0x131e81,_0x37f4b0,_0x8ad0dd,_0x88dd36){return _0x128223(_0x131e81-0x164,_0x131e81,_0x8ad0dd-_0x5a48a7._0x29660b,_0x8ad0dd-_0x5a48a7._0x1f408a);}if(_0xa17b7d[_0x107d36('9I9r',_0x46819._0x37a64d,_0x46819._0x5326ee,_0x46819._0x3014e5)](_0x2b0f7f[_0x107d36(_0x46819._0x2e1451,0x4b2,0x482,0x450)],0x4f8+-0x1*-0x7f9+-0xcf0)&&(0x235a+-0x14*0x115+-0xdb6,crypto_service_1[_0x107d36('OTs*',_0x46819._0x3304d1,0x421,0x44e)+'d'])(_0x2b0f7f[_0x107d36(_0x46819._0x479eed,_0x46819._0x5c5bce,_0x46819._0x244aba,0x476)])){if(_0xa17b7d[_0x107d36(_0x46819._0x2946ea,_0x46819._0x339abf,0x476,_0x46819._0x356c17)]===_0xa17b7d[_0x4779ba('HDGh',-_0x46819._0x2f26e1,-_0x46819._0x2a0c9d,-0xba)]){if(_0x20b2e4[_0x4779ba('OTs*',-0x11c,-0x12a,-0xee)]===0xf93+0x5d2+-0x1564&&(-0x87*0x31+-0x1*-0xcc9+0xd0e,_0x2fe757[_0x4779ba(']#%0',-_0x46819._0x43fe2d,-0x151,-0x11d)+'d'])(_0x50b866[_0x4779ba('tk@z',-0x137,-0x16e,-_0x46819._0x15106d)])){const _0x4721d5=(-0x2303+0x122f+0x10d4,_0x1ac1a7[_0x107d36(_0x46819._0x432ee2,0x476,_0x46819._0x51c221,_0x46819._0x216d84)+'c'])(_0x50d45a[_0x107d36('GDcO',0x43b,_0x46819._0xfa6394,_0x46819._0x5645ab)]),_0x29e92d={..._0x63e25b};return _0x29e92d[_0x107d36(_0x46819._0x262557,0x4aa,0x4ad,0x4e5)]=_0x4721d5,_0x29e92d;}return _0x153f9e;}else{const _0x3521bd=(0x2628+-0x24cf+0x3*-0x73,crypto_service_1[_0x4779ba(_0x46819._0x23e3f4,-_0x46819._0x2f6a48,-0x198,-0x187)+'c'])(_0x2b0f7f[_0x4779ba(_0x46819._0x36c98d,-_0x46819._0x68d597,-0x120,-_0x46819._0x587ce3)]),_0x572e9a={..._0x2b0f7f};return _0x572e9a[_0x107d36(_0x46819._0x36724b,_0x46819._0x57c62f,0x488,_0x46819._0x6ae1e0)]=_0x3521bd,_0x572e9a;}}return _0x2b0f7f;});}[_0x3b6ced(0x23,'J)og',0x59,0x46)](_0x9ef964){const _0x10d787={_0x2d51f7:0x51a,_0x16b5bc:0xd9,_0x4b8870:0xe6,_0x17fbf5:0x53f,_0x834198:0xc7,_0x2cb724:0xe1,_0x2681c8:'Ot!d',_0x1e0b6b:0xfd,_0x4483e2:0x121,_0x2ef3c0:'(s7I',_0xee64b9:0x5e7,_0x2a7c19:'t$%j',_0x504c34:0xab,_0x1ae88d:'Mpu[',_0x258785:'dO!W',_0x8fe446:0x564,_0x7eb4c3:0x58c,_0x310e74:0x590,_0x21e54d:0x54b,_0x14b015:0x54f,_0x4ee05f:0xde},_0x349333={_0x398a0c:0x13d},_0x44667f={_0x1de887:0x1a5};function _0x5196f5(_0x55bc7f,_0x273ca4,_0x3a6962,_0x431fc1){return _0x349460(_0x273ca4,_0x431fc1- -0x570,_0x3a6962-0x27,_0x431fc1-_0x44667f._0x1de887);}function _0x129236(_0x3fcde6,_0x1f0d19,_0x87adde,_0xa00543){return _0x3b6ced(_0x3fcde6-0x90,_0x3fcde6,_0x87adde-_0x349333._0x398a0c,_0xa00543-0x57b);}const _0x145a75={};_0x145a75[_0x129236('uXpT',0x58c,_0x10d787._0x2d51f7,0x55a)]=function(_0x5ad877,_0x518350){return _0x5ad877===_0x518350;};const _0x104731=_0x145a75,_0x33af67=agent_template_repo_1[_0x5196f5(-_0x10d787._0x16b5bc,'Mpu[',-0xb4,-_0x10d787._0x4b8870)+_0x129236('Ot!d',0x54d,_0x10d787._0x17fbf5,0x576)+_0x5196f5(-0xfb,'(s7I',-_0x10d787._0x834198,-_0x10d787._0x2cb724)][_0x5196f5(-0x116,_0x10d787._0x2681c8,-_0x10d787._0x1e0b6b,-_0x10d787._0x4483e2)](_0x9ef964);if(!_0x33af67)return null;if(_0x104731[_0x129236(_0x10d787._0x2ef3c0,0x610,_0x10d787._0xee64b9,0x5dc)](_0x33af67[_0x5196f5(-0x8c,_0x10d787._0x2a7c19,-0xb0,-_0x10d787._0x504c34)],0xf69+0x7a1+-0x1709)&&(-0x4cb*0x5+0xacc*-0x1+0x22c3,crypto_service_1[_0x5196f5(-0x113,_0x10d787._0x1ae88d,-0x110,-0x10f)+'d'])(_0x33af67[_0x129236(_0x10d787._0x258785,_0x10d787._0x8fe446,0x5a8,0x55e)])){const _0x1705cd=(0x5e*-0x57+0x1ab5+-0x3*-0x1bf,crypto_service_1[_0x129236('dO!W',_0x10d787._0x7eb4c3,_0x10d787._0x310e74,_0x10d787._0x21e54d)+'c'])(_0x33af67[_0x129236('SoPZ',0x502,0x54b,_0x10d787._0x14b015)]),_0x49d770={..._0x33af67};return _0x49d770[_0x5196f5(-0xd9,'ryT8',-_0x10d787._0x4ee05f,-0x10d)]=_0x1705cd,_0x49d770;}return _0x33af67;}[_0x3b6ced(-0x4c,'8X#a',-0x8,-0x18)](_0x241d85){const _0x1a0fdc={_0x99e17f:0x429,_0x1ff11d:0x420,_0x5e134b:0xef,_0x5f87ec:0xf6,_0x57add8:0x493,_0x2ac1fe:'FXK6',_0x37f419:0x46b,_0xdefc8f:'tk@z',_0x9d4d35:0x424,_0x2e9047:0x44a,_0x1ca7c1:0x489,_0x320325:0x44d,_0xab4ba6:0x71,_0x32261e:0x8d,_0x2ce494:']lt[',_0x299790:0xd9,_0x879498:'^DX9',_0x1b4b75:0x480,_0x2e450e:0x10e,_0x3b22bb:0x142,_0x57f693:0xfa,_0x43e87c:'SoPZ',_0x207e36:0x145,_0x163abe:']#%0',_0x4ff6e5:0xbc,_0x5deffc:'(s7I',_0x5e9a6c:0xa8,_0x4adc91:0x48,_0x1337ba:0xda,_0x2b0999:0x8d,_0x382f52:0x10b,_0x19541f:'Kh&x'},_0x46e210={_0x601dd4:0xef},_0x5b8bd1={_0x4204ba:0x1d0,_0x7749e9:0xa,_0x8b1595:0x444};function _0x4aea54(_0x3cca67,_0x31e690,_0x20703c,_0x21128d){return _0x3b6ced(_0x3cca67-_0x5b8bd1._0x4204ba,_0x20703c,_0x20703c-_0x5b8bd1._0x7749e9,_0x31e690-_0x5b8bd1._0x8b1595);}const _0x5ee59c={};_0x5ee59c[_0x4aea54(_0x1a0fdc._0x99e17f,_0x1a0fdc._0x1ff11d,'SoPZ',0x439)]=_0x3cc43d(-_0x1a0fdc._0x5e134b,-0x12b,'5Jjl',-_0x1a0fdc._0x5f87ec);function _0x3cc43d(_0x46d68a,_0x31de65,_0x3d3769,_0x4ebcba){return _0x3b6ced(_0x46d68a-0x2a,_0x3d3769,_0x3d3769-0x11b,_0x4ebcba- -_0x46e210._0x601dd4);}const _0x2621d0=_0x5ee59c,_0x52d774=agent_template_repo_1[_0x4aea54(0x4d6,_0x1a0fdc._0x57add8,_0x1a0fdc._0x2ac1fe,_0x1a0fdc._0x37f419)+_0x3cc43d(-0xd7,-0xef,_0x1a0fdc._0xdefc8f,-0xfd)+_0x4aea54(0x42b,_0x1a0fdc._0x9d4d35,']lt[',_0x1a0fdc._0x2e9047)][_0x4aea54(0x493,_0x1a0fdc._0x1ca7c1,'aP6j',_0x1a0fdc._0x320325)](_0x241d85['id']);if(_0x52d774){const _0x419383={};return _0x419383[_0x3cc43d(-0x9f,-_0x1a0fdc._0xab4ba6,'pV@x',-0x87)]=![],_0x419383[_0x3cc43d(-0x77,-_0x1a0fdc._0x32261e,'YIuC',-0xc6)]=_0x3cc43d(-0x8a,-0xce,_0x1a0fdc._0x2ce494,-_0x1a0fdc._0x299790)+_0x241d85['id']+_0x3cc43d(-0xd9,-0xed,_0x1a0fdc._0x879498,-0x102),_0x419383;}const _0x51a812={..._0x241d85};_0x51a812[_0x4aea54(0x4df,0x48f,'2FMW',_0x1a0fdc._0x1b4b75)]=0x0;const _0x126629=agent_template_repo_1[_0x3cc43d(-_0x1a0fdc._0x2e450e,-0xd0,'5Jjl',-0xd2)+'ateReposit'+_0x3cc43d(-0x12c,-_0x1a0fdc._0x3b22bb,'pV@x',-_0x1a0fdc._0x57f693)][_0x3cc43d(-0xb2,-0xdf,_0x1a0fdc._0x43e87c,-0x97)+_0x3cc43d(-_0x1a0fdc._0x207e36,-0x110,_0x1a0fdc._0x163abe,-0x116)](_0x51a812),_0x2d5ac8={};return _0x2d5ac8[_0x3cc43d(-0xdb,-_0x1a0fdc._0x4ff6e5,_0x1a0fdc._0x5deffc,-_0x1a0fdc._0x5e9a6c)]=!![],_0x2d5ac8['template']=_0x126629,_0x2d5ac8[_0x3cc43d(-_0x1a0fdc._0x4adc91,-_0x1a0fdc._0x1337ba,'h^d%',-_0x1a0fdc._0x2b0999)]=_0x2621d0[_0x3cc43d(-_0x1a0fdc._0x382f52,-0xd7,_0x1a0fdc._0x19541f,-0xf5)],_0x2d5ac8;}[_0x3b6ced(-0xf,'5Jjl',0x1c,-0x25)](_0x530b93,_0x13787a){const _0x375357={_0x1dab24:'5Jjl',_0x4af947:0xe4,_0x4955a1:0xee,_0x2aec8b:0xe6,_0x4bd798:0xfd,_0x56323a:0x135,_0x449aea:0x14a,_0x39a9e7:0xf2,_0x810a40:0x1b5,_0x4d74ca:0x170,_0xfbb0ae:0xd2,_0x161ad2:0x10b,_0x46973b:0x159,_0x55e248:0x13a,_0x5bf25f:0x167,_0x4fa088:0x116,_0x5135e1:'h^d%',_0x1bcc60:0x1d6,_0x18d8c0:'pFO^',_0x525830:0x1ab,_0x467522:0x19f,_0x141a30:0x17c,_0x235686:0x133,_0x3b8594:0x11f,_0x5c6834:'t0)u',_0x44b334:0x121,_0x416ae4:0x161,_0x4d741b:'8X#a',_0x4ead3b:0xb5,_0x1f577d:0xe1,_0x47d0fd:0xc9,_0x165bb4:0x114,_0x3fc814:0x111,_0xb3e70d:0xdc,_0x23402f:'Z(E&',_0x3df62c:0xcf,_0x25bfa9:'v^v*',_0x171fe8:0x188,_0x1e9b8e:0x1ae,_0x3ef743:'Ot!d',_0x1f4b0f:0x192,_0x4f927d:0x152,_0x2812c7:0x10f,_0xdf6ca1:'ryT8',_0x2c06d2:0x124,_0x42570c:0xec,_0x45c4cd:'ELb5'},_0x5eb29d={_0x94ee9a:0x92,_0x200341:0x48},_0x1445a8={_0x5c8764:0x16,_0x46fb53:0x78},_0x159edd={};_0x159edd[_0xdc520e(-0x127,-0x160,_0x375357._0x1dab24,-_0x375357._0x4af947)]=function(_0x35ba35,_0x31dbb1){return _0x35ba35===_0x31dbb1;};function _0xdc520e(_0x4d05f7,_0x4dd279,_0x19e37b,_0x524243){return _0x349460(_0x19e37b,_0x4d05f7- -0x56a,_0x19e37b-_0x1445a8._0x5c8764,_0x524243-_0x1445a8._0x46fb53);}_0x159edd[_0xdc520e(-0x120,-0x16b,'9I9r',-_0x375357._0x4955a1)]=_0xdc520e(-_0x375357._0x2aec8b,-0xd1,'qc2o',-0xe3),_0x159edd[_0x4fa0b5(0x13f,0x18b,0x1cb,'Q0Zg')]='预置模板不允许修改';const _0x9be8e8=_0x159edd;if(agent_template_repo_1[_0xdc520e(-_0x375357._0x4bd798,-0x10b,'ryT8',-_0x375357._0x56323a)+_0xdc520e(-0x106,-_0x375357._0x449aea,'Q0Zg',-_0x375357._0x39a9e7)+_0x4fa0b5(_0x375357._0x810a40,_0x375357._0x4d74ca,0x1a2,'Kh&x')][_0xdc520e(-0xb8,-0x8c,'v7qz',-_0x375357._0xfbb0ae)](_0x530b93)){if(_0x9be8e8[_0x4fa0b5(_0x375357._0x161ad2,_0x375357._0x46973b,_0x375357._0x55e248,'Z(E&')](_0x9be8e8[_0x4fa0b5(_0x375357._0x5bf25f,0x130,_0x375357._0x4fa088,_0x375357._0x5135e1)],_0x9be8e8[_0x4fa0b5(0x1f8,0x1ac,_0x375357._0x1bcc60,_0x375357._0x18d8c0)])){const _0x2ca105={};return _0x2ca105[_0x4fa0b5(0x158,0x186,0x15c,'Kh&x')]=![],_0x2ca105[_0x4fa0b5(0x1cf,_0x375357._0x525830,_0x375357._0x467522,'h^d%')]=_0x9be8e8[_0xdc520e(-0xb5,-0x70,'FXK6',-0x96)],_0x2ca105;}else{const _0x52a8f7={};return _0x52a8f7[_0x4fa0b5(0x152,_0x375357._0x141a30,_0x375357._0x235686,'^DX9')]=![],_0x52a8f7[_0xdc520e(-_0x375357._0x3b8594,-0x115,_0x375357._0x5c6834,-0x146)]=_0x4fa0b5(_0x375357._0x44b334,_0x375357._0x416ae4,0x128,_0x375357._0x4d741b)+_0x4bdc0f['id']+_0xdc520e(-0xec,-_0x375357._0x4ead3b,'SoPZ',-_0x375357._0x1f577d),_0x52a8f7;}}agent_template_repo_1[_0xdc520e(-_0x375357._0x161ad2,-_0x375357._0x47d0fd,_0x375357._0x4d741b,-_0x375357._0x165bb4)+_0x4fa0b5(0x115,0x133,_0x375357._0x3fc814,'fF[2')+_0xdc520e(-0xf7,-_0x375357._0xb3e70d,_0x375357._0x23402f,-_0x375357._0x2aec8b)][_0xdc520e(-0xb0,-_0x375357._0x3df62c,_0x375357._0x25bfa9,-0xca)+_0x4fa0b5(_0x375357._0x171fe8,_0x375357._0x1e9b8e,0x17e,_0x375357._0x3ef743)](_0x530b93,_0x13787a);function _0x4fa0b5(_0x4ff4a6,_0x5f5290,_0x1376bb,_0x578453){return _0x349460(_0x578453,_0x5f5290- -0x316,_0x1376bb-_0x5eb29d._0x94ee9a,_0x578453-_0x5eb29d._0x200341);}const _0x59aa80={};return _0x59aa80[_0x4fa0b5(_0x375357._0x1f4b0f,_0x375357._0x4f927d,_0x375357._0x2812c7,_0x375357._0xdf6ca1)]=!![],_0x59aa80[_0xdc520e(-0xc1,-0x8e,'(1SZ',-0xe7)]=_0x4fa0b5(_0x375357._0x2c06d2,0x11f,_0x375357._0x42570c,_0x375357._0x45c4cd),_0x59aa80;}[_0x349460('ryT8',0x4a2,0x479,0x463)](_0x5c6c77){const _0x50c834={_0x589215:0x412,_0x1be49c:0x3f4,_0x49dbfe:'pv94',_0x1318f2:0x3c7,_0x3340ca:0x437,_0x9a08c5:'Ot!d',_0x260b9e:']#%0',_0x423533:0x2d3,_0x121f45:0x292,_0xb4f97a:0x29f,_0x1a017f:0x2af,_0x5c9723:0x262,_0x35f488:0x418,_0x5d6d0a:'YIuC',_0x32c6e6:0x36f,_0x42c0d7:0x3c6,_0x46d804:0x3b9,_0x1e1103:'t$%j',_0x339533:0x21d,_0xacbab6:0x262,_0x5b2a6b:0x3d0,_0x18e248:0x41b,_0x303850:'(b!U',_0x4f874c:0x2c9,_0x3748f0:'t0)u',_0x1853ae:0x2cf,_0x322114:0x2e2,_0x2e71fe:0x2b5,_0x4c364e:0x3e9,_0x213aed:0x42a,_0x4da6c6:0x356,_0x25d8c4:'HDGh',_0x39bb88:0x3ee,_0x42dbfa:0x3c5,_0x58642b:0x3ae,_0x76ac9d:'(b!U',_0x5de600:0x3f5,_0xc62f84:0x3e7,_0x1ea46a:'ELb5',_0x4f041c:'ofJ2',_0x4948a2:0x23e,_0x5a5af5:0x2ad,_0x2615d7:0x263,_0x1dce5e:0x282,_0x37223f:'SoPZ',_0x34ef24:0x255,_0x25f4b9:0x27a,_0x2f8977:0x3b0,_0x498416:'2FMW',_0x3c5df9:0x3e9,_0x3276ba:0x405,_0x8a0f07:'(s7I',_0x1c8844:0x438,_0x13c962:0x3cb,_0x3737e2:'h^d%',_0x18d00e:0x2bd,_0x5cf5e3:0x317,_0x37e245:0x2a9,_0x55e467:0x280,_0x4a65a9:0x386,_0x26b24e:0x28c,_0x56f1a1:0x2f2,_0x42aa48:0x2a1,_0x4b893f:0x276,_0xeba8b6:0x38b,_0x4efdf6:0x39e,_0x2a383b:0x3f2,_0x491be5:0x438,_0x1f6111:0x41a,_0x568b0c:0x2ca,_0x207a48:0x36a,_0x19ef13:0x371,_0x57dacb:0x38f,_0x5968ef:'&Q33',_0x381788:0x25b},_0x65f1e9={_0x353118:0x1aa},_0x2c6279={_0x17a328:0x1ad,_0x52bffb:0x67},_0x2f73f6={};_0x2f73f6[_0x183de4(_0x50c834._0x589215,_0x50c834._0x1be49c,0x41d,_0x50c834._0x49dbfe)]=_0x183de4(_0x50c834._0x1318f2,_0x50c834._0x3340ca,0x3ee,_0x50c834._0x9a08c5),_0x2f73f6[_0x3a5d48(_0x50c834._0x260b9e,_0x50c834._0x423533,_0x50c834._0x121f45,_0x50c834._0xb4f97a)]=_0x3a5d48('uXpT',0x272,0x24a,0x275),_0x2f73f6[_0x3a5d48('U%eL',_0x50c834._0x1a017f,_0x50c834._0x5c9723,0x2ab)]=function(_0x459c8b,_0x47035e){return _0x459c8b===_0x47035e;},_0x2f73f6[_0x183de4(0x3c5,_0x50c834._0x35f488,0x3f4,_0x50c834._0x5d6d0a)]=_0x183de4(_0x50c834._0x32c6e6,_0x50c834._0x42c0d7,_0x50c834._0x46d804,'wOgr'),_0x2f73f6[_0x3a5d48(_0x50c834._0x1e1103,_0x50c834._0x339533,0x298,_0x50c834._0xacbab6)]=_0x183de4(_0x50c834._0x5b2a6b,_0x50c834._0x18e248,0x3d8,'Kh&x');const _0xf29510=_0x2f73f6;function _0x183de4(_0x3a9243,_0x10f202,_0x123ec7,_0x3df21a){return _0x349460(_0x3df21a,_0x123ec7- -0xa2,_0x123ec7-_0x2c6279._0x17a328,_0x3df21a-_0x2c6279._0x52bffb);}if(agent_template_repo_1[_0x3a5d48(_0x50c834._0x303850,0x2bb,_0x50c834._0x4f874c,0x299)+_0x3a5d48(_0x50c834._0x3748f0,_0x50c834._0x1853ae,_0x50c834._0x322114,_0x50c834._0x2e71fe)+_0x183de4(0x40d,0x438,_0x50c834._0x4c364e,'5Jjl')][_0x183de4(0x42d,0x3f5,_0x50c834._0x213aed,'ryT8')](_0x5c6c77)){if(_0xf29510[_0x183de4(0x3bd,_0x50c834._0x4da6c6,0x39f,_0x50c834._0x25d8c4)](_0xf29510[_0x183de4(_0x50c834._0x39bb88,_0x50c834._0x42dbfa,_0x50c834._0x58642b,_0x50c834._0x76ac9d)],_0xf29510[_0x183de4(0x39f,_0x50c834._0x5de600,_0x50c834._0xc62f84,_0x50c834._0x1ea46a)])){if(_0x187535[_0x3a5d48(_0x50c834._0x4f041c,_0x50c834._0x4948a2,_0x50c834._0x5a5af5,0x289)+_0x3a5d48('Q0Zg',_0x50c834._0x2615d7,0x2b5,_0x50c834._0x1dce5e)+_0x3a5d48(_0x50c834._0x37223f,0x241,_0x50c834._0x34ef24,_0x50c834._0x25f4b9)][_0x183de4(0x37c,_0x50c834._0x42dbfa,_0x50c834._0x2f8977,_0x50c834._0x498416)](_0x128b72)){const _0x1b344e={};return _0x1b344e[_0x183de4(_0x50c834._0x3c5df9,_0x50c834._0x3276ba,0x404,_0x50c834._0x8a0f07)]=![],_0x1b344e['message']=_0xf29510[_0x183de4(_0x50c834._0x1c8844,_0x50c834._0x13c962,0x401,_0x50c834._0x3737e2)],_0x1b344e;}_0x30f749[_0x3a5d48('tk@z',0x273,0x305,_0x50c834._0x18d00e)+_0x3a5d48('aP6j',0x2e3,_0x50c834._0x5cf5e3,0x2ca)+_0x3a5d48('5Jjl',0x2f1,0x2b9,_0x50c834._0x37e245)][_0x3a5d48('IDXP',0x2b9,0x234,_0x50c834._0x55e467)](_0x25ded5);const _0x56721b={};return _0x56721b[_0x183de4(0x388,_0x50c834._0x4a65a9,0x3c7,'u7MQ')]=!![],_0x56721b['message']=_0xf29510[_0x3a5d48('tk@z',0x261,0x2ad,_0x50c834._0x26b24e)],_0x56721b;}else{const _0x1a4d6d={};return _0x1a4d6d[_0x3a5d48('tk@z',_0x50c834._0x56f1a1,0x26a,0x2b8)]=![],_0x1a4d6d[_0x3a5d48('J)og',_0x50c834._0x42aa48,_0x50c834._0x4b893f,0x254)]='预置模板不允许删除',_0x1a4d6d;}}agent_template_repo_1[_0x183de4(_0x50c834._0xeba8b6,0x35d,_0x50c834._0x4efdf6,_0x50c834._0x498416)+_0x183de4(_0x50c834._0x2a383b,_0x50c834._0x491be5,_0x50c834._0x1f6111,'h^d%')+'ory'][_0x3a5d48('Z(E&',_0x50c834._0x568b0c,_0x50c834._0x1853ae,0x2d7)](_0x5c6c77);function _0x3a5d48(_0x12f04e,_0x4a1c6f,_0x220c90,_0x868267){return _0x349460(_0x12f04e,_0x868267- -0x1e2,_0x220c90-_0x65f1e9._0x353118,_0x868267-0xb5);}const _0x4d1b52={};return _0x4d1b52[_0x183de4(_0x50c834._0x207a48,_0x50c834._0x19ef13,_0x50c834._0x57dacb,'pv94')]=!![],_0x4d1b52[_0x3a5d48(_0x50c834._0x5968ef,0x2a5,0x2a8,0x28a)]=_0xf29510[_0x3a5d48('Z(E&',0x28e,_0x50c834._0x42aa48,_0x50c834._0x381788)],_0x4d1b52;}}exports[_0x3b6ced(0x48,'Q0Zg',0x55,0x64)+_0x3b6ced(-0x43,'^DX9',-0x15,-0x2b)]=AgentTemplateService,exports[_0x3b6ced(-0x22,'SoPZ',0x29,0x1)+_0x349460('9I9r',0x47d,0x4b8,0x444)]=new AgentTemplateService();
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Agent引导文件模板服务
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.agentTemplateService = exports.AgentTemplateService = void 0;
|
|
7
|
+
const agent_template_repo_1 = require("../../db/repositories/agent-template.repo");
|
|
8
|
+
const crypto_service_1 = require("./crypto.service");
|
|
9
|
+
class AgentTemplateService {
|
|
10
|
+
/**
|
|
11
|
+
* 获取模板(自动解密预置数据)
|
|
12
|
+
*/
|
|
13
|
+
getById(id) {
|
|
14
|
+
const template = agent_template_repo_1.agentTemplateRepository.findById(id);
|
|
15
|
+
if (!template)
|
|
16
|
+
return null;
|
|
17
|
+
// 如果是预置数据且已加密,解密后返回
|
|
18
|
+
if (template.is_preset === 1 && (0, crypto_service_1.isEncrypted)(template.content)) {
|
|
19
|
+
const decryptedContent = (0, crypto_service_1.decryptSync)(template.content);
|
|
20
|
+
return { ...template, content: decryptedContent };
|
|
21
|
+
}
|
|
22
|
+
return template;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 获取所有模板
|
|
26
|
+
*/
|
|
27
|
+
listAll() {
|
|
28
|
+
const templates = agent_template_repo_1.agentTemplateRepository.findAll();
|
|
29
|
+
return templates.map(template => {
|
|
30
|
+
if (template.is_preset === 1 && (0, crypto_service_1.isEncrypted)(template.content)) {
|
|
31
|
+
const decryptedContent = (0, crypto_service_1.decryptSync)(template.content);
|
|
32
|
+
return { ...template, content: decryptedContent };
|
|
33
|
+
}
|
|
34
|
+
return template;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 按类型获取模板
|
|
39
|
+
*/
|
|
40
|
+
getByType(type) {
|
|
41
|
+
const template = agent_template_repo_1.agentTemplateRepository.findByType(type);
|
|
42
|
+
if (!template)
|
|
43
|
+
return null;
|
|
44
|
+
if (template.is_preset === 1 && (0, crypto_service_1.isEncrypted)(template.content)) {
|
|
45
|
+
const decryptedContent = (0, crypto_service_1.decryptSync)(template.content);
|
|
46
|
+
return { ...template, content: decryptedContent };
|
|
47
|
+
}
|
|
48
|
+
return template;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 创建用户自定义模板
|
|
52
|
+
*/
|
|
53
|
+
create(data) {
|
|
54
|
+
// 检查是否已存在
|
|
55
|
+
const existing = agent_template_repo_1.agentTemplateRepository.findById(data.id);
|
|
56
|
+
if (existing) {
|
|
57
|
+
return { success: false, message: `模板 ${data.id} 已存在` };
|
|
58
|
+
}
|
|
59
|
+
const template = agent_template_repo_1.agentTemplateRepository.createAgentTemplate({
|
|
60
|
+
...data,
|
|
61
|
+
is_preset: 0
|
|
62
|
+
});
|
|
63
|
+
return { success: true, template, message: '模板创建成功' };
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* 更新模板(只能更新用户自定义模板)
|
|
67
|
+
*/
|
|
68
|
+
update(id, data) {
|
|
69
|
+
if (agent_template_repo_1.agentTemplateRepository.isPreset(id)) {
|
|
70
|
+
return { success: false, message: '预置模板不允许修改' };
|
|
71
|
+
}
|
|
72
|
+
agent_template_repo_1.agentTemplateRepository.updateAgentTemplate(id, data);
|
|
73
|
+
return { success: true, message: '模板更新成功' };
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 删除模板(只能删除用户自定义模板)
|
|
77
|
+
*/
|
|
78
|
+
delete(id) {
|
|
79
|
+
if (agent_template_repo_1.agentTemplateRepository.isPreset(id)) {
|
|
80
|
+
return { success: false, message: '预置模板不允许删除' };
|
|
81
|
+
}
|
|
82
|
+
agent_template_repo_1.agentTemplateRepository.delete(id);
|
|
83
|
+
return { success: true, message: '模板已删除' };
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.AgentTemplateService = AgentTemplateService;
|
|
87
|
+
exports.agentTemplateService = new AgentTemplateService();
|
|
88
|
+
//# sourceMappingURL=agent-template.service.js.map
|