opclawtm 1.4.3 → 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/feishu.menu.js.map +1 -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,47 @@
|
|
|
1
|
-
'use strict';(function(_0x1186dc,_0x2f4e0e){const _0x40263a={_0x12f2c8:0x55,_0xb1cbd3:'soO9',_0x4d0d35:0x4e,_0x330f5a:'fZUM',_0x58648a:0x56f,_0x45c46a:0x584,_0x1be28d:'h#%X',_0x33cf04:0x56e,_0x3751ec:0x5bd,_0x46e82e:0x57c,_0x58ad5d:'3Lz0',_0x338b23:0x590,_0x44ea06:0x562,_0x3e4762:0x5b3,_0x16c493:0x592,_0x4d5301:0x575,_0x58b394:0x5a5,_0x4ea4b9:'ogGg',_0x4945b7:'R2JB',_0x50d9a8:0x58f,_0x53be26:'mC8Z'},_0x450c90=_0x1186dc();function _0x200a6a(_0x106705,_0x3b0e70,_0x5ddba5,_0x3e5fad){return _0xe2cf(_0x3b0e70- -0x21e,_0x3e5fad);}function _0x3ed358(_0x5d7402,_0x1f8eea,_0x12c72f,_0x2bda3c){return _0xe2cf(_0x5d7402-0x3b4,_0x2bda3c);}while(!![]){try{const _0x4532d6=parseInt(_0x200a6a(-_0x40263a._0x12f2c8,-0x77,-0x75,_0x40263a._0xb1cbd3))/(0x53e*-0x5+-0x67d*0x2+-0x7f*-0x4f)*(-parseInt(_0x200a6a(-0x6b,-0x7b,-_0x40263a._0x4d0d35,_0x40263a._0x330f5a))/(-0x1*-0xeed+0x6df+-0x15ca))+parseInt(_0x3ed358(_0x40263a._0x58648a,_0x40263a._0x45c46a,0x545,_0x40263a._0x1be28d))/(-0x47d*0x3+-0x1*-0x437+0x943)+-parseInt(_0x3ed358(0x573,0x597,_0x40263a._0x33cf04,'tcHr'))/(0x11*0x3b+-0x135*0x1f+0x27*0xdc)+-parseInt(_0x3ed358(0x594,_0x40263a._0x3751ec,_0x40263a._0x46e82e,'Myo]'))/(-0x1d*-0x9e+-0x1*0x2591+0x28*0x7e)+-parseInt(_0x3ed358(0x57b,0x5a7,0x561,_0x40263a._0x58ad5d))/(-0xc88+-0x1*-0xef9+0x26b*-0x1)+parseInt(_0x3ed358(_0x40263a._0x338b23,_0x40263a._0x44ea06,_0x40263a._0x3e4762,'hBgB'))/(-0x335+-0x7e2+0xb1e)*(-parseInt(_0x3ed358(_0x40263a._0x16c493,_0x40263a._0x4d5301,_0x40263a._0x58b394,_0x40263a._0x4ea4b9))/(0xc77+0x1*0x1226+0x1*-0x1e95))+parseInt(_0x3ed358(0x57d,0x557,0x5ad,_0x40263a._0x4945b7))/(0x16eb*-0x1+0xb42+-0x2*-0x5d9)*(parseInt(_0x3ed358(0x591,0x57e,_0x40263a._0x50d9a8,_0x40263a._0x53be26))/(0xca*0xe+0x1000+-0x1b02));if(_0x4532d6===_0x2f4e0e)break;else _0x450c90['push'](_0x450c90['shift']());}catch(_0x8f5e13){_0x450c90['push'](_0x450c90['shift']());}}}(_0x4298,-0x7fcc*0x7+-0x1d713*-0x4+-0x19da7*-0x2));const _0x48c5f1={};_0x48c5f1[_0x28be0c(0x33f,0x342,']0eg',0x31c)]=!![],Object[_0x28be0c(0x32a,0x306,'HDS4',0x31c)+_0x28be0c(0x324,0x2fc,'OZ4q',0x2eb)](exports,_0x18a74a(-0x37,-0x43,'HDS4',-0x30),_0x48c5f1),exports[_0x18a74a(0x28,-0xb,'nIfY',0x9)+_0x28be0c(0x350,0x340,'^2eQ',0x320)]=exports['RoleFlowSe'+_0x18a74a(-0xa,-0x19,'ei*(',-0x1a)]=void(0x2*0x852+0x20ed*-0x1+0x1049);const role_flow_repo_1=require(_0x28be0c(0x322,0x33c,'^2eQ',0x355)+_0x18a74a(-0x20,0x14,'ezlB',0xc)+_0x18a74a(-0x10,0x24,'!mUB',0x13)+_0x28be0c(0x2f7,0x305,'I@cM',0x2f9));function _0x28be0c(_0x4532df,_0x489e07,_0x620c12,_0x473ff5){return _0xe2cf(_0x489e07-0x17c,_0x620c12);}function _0xe2cf(_0xea85c4,_0xfd7aa7){_0xea85c4=_0xea85c4-(-0xfa*-0xd+0x1b87+-0x26b9);const _0x32b344=_0x4298();let _0x4271fc=_0x32b344[_0xea85c4];if(_0xe2cf['NpPSoq']===undefined){var _0x5500f7=function(_0x23285c){const _0x16715d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c96cb='',_0xa7a139='';for(let _0x369a4b=0x1220+0x718*0x1+-0x1938,_0x17fe00,_0x5de393,_0x5d7203=-0x19f*0xa+0x94e+0x6e8;_0x5de393=_0x23285c['charAt'](_0x5d7203++);~_0x5de393&&(_0x17fe00=_0x369a4b%(-0x5ce+-0xcca+-0x4a7*-0x4)?_0x17fe00*(0x25ad+0x20f7+-0xaa*0x6a)+_0x5de393:_0x5de393,_0x369a4b++%(-0x1*0x13e3+0x6d*0x4f+-0xdbc))?_0x2c96cb+=String['fromCharCode'](0x1*-0xd37+0x23ab+-0x1575&_0x17fe00>>(-(-0x805*-0x1+-0x12cd*0x1+-0x565*-0x2)*_0x369a4b&-0x3*0x2d3+0x1575+-0xcf6)):0x19*-0xab+0x1847+-0x794){_0x5de393=_0x16715d['indexOf'](_0x5de393);}for(let _0x98e59e=0x1420+0x4af*-0x1+-0xf71,_0x223766=_0x2c96cb['length'];_0x98e59e<_0x223766;_0x98e59e++){_0xa7a139+='%'+('00'+_0x2c96cb['charCodeAt'](_0x98e59e)['toString'](-0xada+-0xa6d+0x1557))['slice'](-(0x6*-0xc8+-0x15af+0x1a61));}return decodeURIComponent(_0xa7a139);};const _0x3933be=function(_0x23aa92,_0x5f45b4){let _0x4729cc=[],_0x69f4d=-0x1fcd+-0x1*0x6e2+0x26af,_0x3777d3,_0x15f270='';_0x23aa92=_0x5500f7(_0x23aa92);let _0x235907;for(_0x235907=0xe*-0x1ea+-0x3c4*0x7+-0x798*-0x7;_0x235907<-0x2359*0x1+0x178d+0xccc;_0x235907++){_0x4729cc[_0x235907]=_0x235907;}for(_0x235907=-0xc1b*0x1+0x1*-0x1ca6+-0x28c1*-0x1;_0x235907<0x12de+0x85*-0x1+-0x1159;_0x235907++){_0x69f4d=(_0x69f4d+_0x4729cc[_0x235907]+_0x5f45b4['charCodeAt'](_0x235907%_0x5f45b4['length']))%(0x11c5*-0x2+-0x1517*0x1+-0x39a1*-0x1),_0x3777d3=_0x4729cc[_0x235907],_0x4729cc[_0x235907]=_0x4729cc[_0x69f4d],_0x4729cc[_0x69f4d]=_0x3777d3;}_0x235907=-0x125e+0xadd*0x1+0x1*0x781,_0x69f4d=0x2f9+0x1a3*-0x16+0x2109;for(let _0x53c2c4=-0xca0+-0x37f+-0x1*-0x101f;_0x53c2c4<_0x23aa92['length'];_0x53c2c4++){_0x235907=(_0x235907+(0x6*-0x14b+-0xc63+0x1426*0x1))%(-0x1628+0x1219+0x7*0xb9),_0x69f4d=(_0x69f4d+_0x4729cc[_0x235907])%(-0x8f4+-0x4*0x6d0+0x94d*0x4),_0x3777d3=_0x4729cc[_0x235907],_0x4729cc[_0x235907]=_0x4729cc[_0x69f4d],_0x4729cc[_0x69f4d]=_0x3777d3,_0x15f270+=String['fromCharCode'](_0x23aa92['charCodeAt'](_0x53c2c4)^_0x4729cc[(_0x4729cc[_0x235907]+_0x4729cc[_0x69f4d])%(-0x6*0xcc+0x6*0x34d+-0x5*0x2ce)]);}return _0x15f270;};_0xe2cf['YMFtUf']=_0x3933be,_0xe2cf['zUopJw']={},_0xe2cf['NpPSoq']=!![];}const _0x226def=_0x32b344[-0x823*-0x4+0x2600+-0x468c],_0x53bf3b=_0xea85c4+_0x226def,_0x132442=_0xe2cf['zUopJw'][_0x53bf3b];return!_0x132442?(_0xe2cf['qidhZz']===undefined&&(_0xe2cf['qidhZz']=!![]),_0x4271fc=_0xe2cf['YMFtUf'](_0x4271fc,_0xfd7aa7),_0xe2cf['zUopJw'][_0x53bf3b]=_0x4271fc):_0x4271fc=_0x132442,_0x4271fc;}function _0x4298(){const _0x2c9717=['WQ3dQKiAW4yRWP0BWOjw','z3lcNCkrWOu','W5T9WQ/cUd/dU2TYWQXsDtq','uuVcKSoPuXq+WQFcTa','zNFdKc0fW6ldLMi','setcHCkNWR8','q8k8WRZcRmopfYemWQCUWPNcNwe','WOZdICoBaW','d8ovFmk2gSkakGu','W4/cT8o0WPa7W57dQ8kJWQq','W6RcTN4yW40+WPOrW5G','W6NcSvGIW6O','W7q7WOSjp3xcNLi','mcBdTs41W5JdGfbPgW','ySkSWPz1W7FdHSovWQRdOmkr','p8kJWRBcHmk7crGr','DY7cTCkHWR1l','WOlcUa/cOmkRW480W4uOgW','WORdLmobdI7cRSkl','bSo7WRHEbmkobdRdI2O','fCk2sSowWQW','AxpcMmk0WR9baSoAW58','WRNcGGZcUSkiW4uaW4iRdG','a2/dTw3cNmonWQK','t3FcICkpWRG','de1Ti8kaW4lcMCoUW7ddRmkkxCk5','tamXDSot','hCoNWPfviCkqeJ3dRwO','F8o4WPZcKmk0lXuhW5yk','W6/cOcvYWPJcK8oLn8o9WRC','BMJdRG','n8kGaupdRWaKW4RdR8oZjIW','WOJcQv/dLSoQqxu','rmoDWOBcM8k+','W5uOWPGysNxdICop','WRzctSoMWO3dJeCtW4/cNW','W4FcSmomWPCX','WR/cR8kVWRLIW5fIB0utra','WQ3cH8oZpSoPlsHr','CM/cQ8kHWOTihSoiW7LY','WOKOW4JdHM4','W7hcQK0nW7K3WOydW75a','WP7cJqRdJ1iMWQuE','W6Pzu8oyWOO','Cx/dT8ohW6S','W5m/vIf7','W6Kip8kXW53dIKW1W6JcL8ku','WQ1QCCoCW6hcStW8stS','W7aYWPffCeVcNG','sG8cuCoW','WRXEzCo8WOVdKeO','WRBcSGpcSCk0','zgxcPmk2WRrubCoSW5j5','W6xcG8oUWOKt','WO/cRJNcU8kGW5KbW4m','AsbfF8kEiW','WR7cVIK+W7O','tajDW67cO8ocd8oAW7i','W7ldG0Dtta','WQNcQIFcGSkW','W5CDqJLjj8kH','W4tcQa56WQ4','mtVcRSoJW7JcUcKOxa','CCk3WP1NW4K','WPzXW51fcY/cJSo3W6NdJCoUjrm','z1WMfmkUWR4F','W7ukrd9Oa8kiWPmfWQSZbG','W4xcQ8ofWPqSW5xdRa','W7DqtmoYWQ89zCoOF10','WRJdVx0MW6ZdM8kflmoYWPDiWOddQa','yvFdMSoAW5JcJK4KW7iJW7GMbG','pSoTW5u+WP/cHCoEWR/cNCkg','iaZcN8kdWPRdKa4P','W5mxwb9djCkWrtFdUq','naBcJ8kyWPFdJWGdW6Gi','ySk1WPnZW5q','WQDxhh87vCkV','W7/cQcDJWR8','WQfLW4OhiXhdKIldJu8LW6vJ','wSoSWPHGtclcGCkIWOue','W6ZdMCk1BSkSDMXGWOSHWO0sWQa','W4yOWOufw3tdJW','fmoKgYHfEmoKlmkLpa','eSo7gI9jySo/','CuCTfSk8','c8kPumobWOHRWPy','W7W2BI5E','WRNdNSoPoqK','W6RcPIvIWR/cHmod','hmkNWO9Fc8kzucZdK2a','ESoSWPHGtclcGCkIWOue','WRzxhM4yv8k0WQuBWRS','WOddImoQfcJcSSkgs8oGWRG','uNLrW6RdKgNcLsm0','W7OUWQbbz0dcMrFdRW','WOKKW7BdUMpcRfm','y8ojWP4'];_0x4298=function(){return _0x2c9717;};return _0x4298();}const crypto_service_1=require(_0x18a74a(-0x12,0x48,'csy4',0x1b)+_0x28be0c(0x332,0x32c,'Je6V',0x346));function _0x18a74a(_0x43754e,_0x55f855,_0x8d7aac,_0x1bac1c){const _0x2201b2={_0x303c43:0x1bf};return _0xe2cf(_0x1bac1c- -_0x2201b2._0x303c43,_0x8d7aac);}class RoleFlowService{[_0x28be0c(0x365,0x33e,'fwRI',0x350)+'w'](_0x3143a8){const _0x4f6d97={_0xbd8ec4:0x3a2,_0x5b3bd3:'fwRI',_0x4f305d:0x386,_0x87385c:'HDS4',_0x1d345a:0xfd,_0x280f88:0xb9,_0xcfeec0:0xc1,_0x41fcca:0xca,_0x1684d7:0xd3,_0x1fdbe2:']0eg',_0x3bf07f:0x333,_0x260fe3:0x10d,_0x3b610c:0x127,_0x1b0cd0:0xe0,_0x32f897:0x10e,_0x42ac0c:'h#%X',_0x1a210d:0xec,_0x4357f9:'7hl1',_0x1f57da:'I@cM',_0x9c0b44:0x379,_0x2f0c6e:0x38a,_0x5657de:0x3a5,_0x203154:0xef,_0x2fb4e7:0xbb,_0x292b7a:0xad,_0x4f5cc5:']0eg',_0xa204d1:0x382,_0x136955:0xcd,_0x58688a:'csy4',_0x523e4b:0xf8,_0x2f0584:'tcHr',_0x3ea3e1:0xdf,_0x138090:0x104,_0x3ce606:0xd6},_0x4fefa2={_0x29727a:0x16f},_0x5b36b4={_0x5c6768:0x18a,_0x375590:0x121,_0x133190:0x37c};function _0x16da66(_0x3584a0,_0x162a3b,_0x4b5586,_0xac7d12){return _0x18a74a(_0x3584a0-_0x5b36b4._0x5c6768,_0x162a3b-_0x5b36b4._0x375590,_0x4b5586,_0x3584a0-_0x5b36b4._0x133190);}function _0x2d0401(_0xed28b,_0x35be8d,_0xb169e3,_0x18fbc5){return _0x28be0c(_0xed28b-0xf3,_0xed28b- -0x251,_0x35be8d,_0x18fbc5-_0x4fefa2._0x29727a);}const _0x577b32={};_0x577b32[_0x16da66(0x38c,_0x4f6d97._0xbd8ec4,_0x4f6d97._0x5b3bd3,_0x4f6d97._0x4f305d)]=function(_0x17ed2d,_0x407f2d){return _0x17ed2d===_0x407f2d;},_0x577b32[_0x16da66(0x370,0x378,'%zcc',0x373)]=function(_0x4e31b1,_0xa4dce2){return _0x4e31b1!==_0xa4dce2;},_0x577b32[_0x2d0401(0xdf,_0x4f6d97._0x87385c,_0x4f6d97._0x1d345a,_0x4f6d97._0x280f88)]='twlJE';const _0x35dab3=_0x577b32,_0x1f34a7=role_flow_repo_1[_0x2d0401(0xb2,'^2eQ',_0x4f6d97._0xcfeec0,0x9f)+_0x2d0401(_0x4f6d97._0x41fcca,'R2JB',_0x4f6d97._0x1684d7,0xa0)][_0x16da66(0x353,0x375,_0x4f6d97._0x1fdbe2,_0x4f6d97._0x3bf07f)](_0x3143a8);if(!_0x1f34a7)return null;if(_0x1f34a7[_0x2d0401(0x102,'3Lz0',_0x4f6d97._0x260fe3,_0x4f6d97._0x3b610c)]===0x19b5+-0x1fed+-0x1b*-0x3b&&(0x15*0xb2+0x601*0x3+-0x1*0x209d,crypto_service_1[_0x2d0401(0xe8,'l*pl',_0x4f6d97._0x1b0cd0,_0x4f6d97._0x32f897)+'d'])(_0x1f34a7[_0x2d0401(0xf0,_0x4f6d97._0x42ac0c,0xea,_0x4f6d97._0x1a210d)])){if(_0x35dab3[_0x2d0401(0xc5,_0x4f6d97._0x4357f9,0xdb,0xe1)](_0x35dab3[_0x16da66(0x34e,0x325,_0x4f6d97._0x1f57da,_0x4f6d97._0x9c0b44)],_0x16da66(_0x4f6d97._0x2f0c6e,_0x4f6d97._0x5657de,'6TBN',0x363))){const _0x15faf5=(0x10e2+-0x1bcd+0xaeb,crypto_service_1[_0x2d0401(0xd8,'I@cM',_0x4f6d97._0x203154,0x107)+'c'])(_0x1f34a7[_0x2d0401(_0x4f6d97._0x2fb4e7,'5tYb',_0x4f6d97._0x292b7a,0xd7)]),_0x505bf5={..._0x1f34a7};return _0x505bf5[_0x16da66(0x38e,0x36d,_0x4f6d97._0x4f5cc5,_0x4f6d97._0xa204d1)]=_0x15faf5,_0x505bf5;}else{const _0x2295df={_0x357984:0x490,_0xe0ff7f:'I@cM',_0x1afed7:0xd9,_0x7d3de3:0x45d,_0x1a077c:0x470,_0x5c6ce7:0x121,_0x398d30:'QYr3',_0x4341ba:0x134,_0x2047fe:0x12f,_0x3b9b47:'tcHr',_0x167883:0x446,_0x5781b2:0x444,_0x52cfe2:'OZ4q',_0x5ceaeb:0x43f,_0x252011:0x481,_0x56b09c:'fwRI'},_0x9512f0=_0x58beb8[_0x2d0401(_0x4f6d97._0x136955,_0x4f6d97._0x58688a,0xaa,_0x4f6d97._0x523e4b)+_0x2d0401(_0x4f6d97._0x1a210d,_0x4f6d97._0x2f0584,_0x4f6d97._0x3ea3e1,0xfb)]['findAll']();return _0x9512f0[_0x2d0401(_0x4f6d97._0x138090,'7hl1',_0x4f6d97._0x3ce606,0x128)](_0x47c599=>{const _0x154767={_0x47f1ff:0x84,_0x4f770f:0x134};function _0x43135f(_0x2942be,_0xda8e6,_0x2cf1f1,_0x4b1d04){return _0x16da66(_0xda8e6- -0x251,_0xda8e6-_0x154767._0x47f1ff,_0x4b1d04,_0x4b1d04-_0x154767._0x4f770f);}function _0xdf679a(_0x3eee83,_0x418c51,_0x14e44b,_0x27b444){return _0x16da66(_0x418c51-0xfc,_0x418c51-0x1af,_0x27b444,_0x27b444-0x1e0);}if(_0x35dab3[_0xdf679a(0x4c5,0x498,_0x2295df._0x357984,_0x2295df._0xe0ff7f)](_0x47c599[_0x43135f(_0x2295df._0x1afed7,0xee,0xc3,'QYr3')],0x8d3+-0x4cc+-0x406)&&(0x1*-0x1d25+0x2291+-0x56c,_0x58ef7c[_0xdf679a(_0x2295df._0x7d3de3,0x455,_0x2295df._0x1a077c,'soO9')+'d'])(_0x47c599[_0x43135f(0x132,0x128,_0x2295df._0x5c6ce7,_0x2295df._0x398d30)])){const _0x34f2f7=(0x2a1*0x7+0x63*-0x65+-0x295*-0x8,_0x14328e[_0x43135f(_0x2295df._0x4341ba,_0x2295df._0x2047fe,0x151,_0x2295df._0x3b9b47)+'c'])(_0x47c599[_0xdf679a(_0x2295df._0x167883,_0x2295df._0x5781b2,0x435,_0x2295df._0x52cfe2)]),_0x2710d7={..._0x47c599};return _0x2710d7[_0xdf679a(_0x2295df._0x5ceaeb,0x46e,_0x2295df._0x252011,_0x2295df._0x56b09c)]=_0x34f2f7,_0x2710d7;}return _0x47c599;});}}return _0x1f34a7;}[_0x18a74a(0x1a,0x3,'Da9v',0xf)](){const _0x502dfa={_0x1700bc:0x579,_0x116cea:'#nb)',_0x53ea21:0x568,_0x5d34e9:0x591,_0x4889eb:0x572,_0x85fdd5:0x11,_0x531dfe:0x2c,_0x3d7615:0x3b,_0x46a92e:'I@cM',_0x420083:0x56e,_0x239b55:0x59b,_0x4a6b9d:0x52,_0x409c01:0x4f,_0x2592e4:0x6a,_0x1e9afb:0x13,_0x23bb36:0x2a,_0x246e82:0x5b,_0x4da914:'hBgB',_0x4c10f9:0x4b,_0x419676:0x563,_0x4bd5d7:0x571,_0x1a8529:0x38,_0x12330c:0x81,_0x4ae812:0x53,_0x38c738:'ei*(',_0x14c7cb:0x55},_0x5481a4={_0x1db10d:0x8d,_0x1e3285:0x65,_0x2f0af8:0x80,_0x4e6e67:0x90,_0x16d31e:0x64,_0x48ebd9:0x14f,_0x186259:'csy4',_0x188e05:0x140,_0x4e9911:'6TBN',_0x326b1a:0x126,_0x1efdc4:0x13f,_0x1df515:0xab,_0xacabd0:0xce,_0x3c9b39:'hBgB',_0x1a4571:0x55,_0x31fbac:0x144,_0x43fc38:'I@cM',_0x35e0cc:0x11f,_0x31031a:0x12a,_0x478f15:0x11c,_0x45f8dd:0x13c,_0x2f2897:0x10d,_0x29ab51:0x115,_0x1fd563:0x129,_0x2ce57d:'3Lz0',_0x285036:0x10e,_0x30071f:0x65,_0x2075a0:'ezlB',_0xbc99b6:0x76,_0x490834:0xfe,_0x5c0fe2:'h#%X',_0x4f2fc1:0x110,_0x2560bd:0x151,_0x595d62:0x182,_0x4e0797:']0eg',_0x30f64f:0x12b,_0x2e1341:0x72,_0x3da7e3:'M6))',_0x345c64:0x7a,_0x185bea:0x54,_0x5a96d9:'OZ4q',_0x1e23bb:0x4a,_0x1127b2:'7m6v',_0x47e8b0:0x5f,_0xe8d479:0x10a,_0x492168:0x86,_0x12ff59:0x7b},_0x58be43={_0xca2285:0x105,_0x376211:0xe6},_0x46bde8={_0x52cbae:0x1bd},_0x377765={_0x1796ca:0xad},_0x3dfce4={};_0x3dfce4[_0x586b68(_0x502dfa._0x1700bc,_0x502dfa._0x116cea,_0x502dfa._0x53ea21,_0x502dfa._0x5d34e9)]=function(_0x3baa96,_0x40e411){return _0x3baa96===_0x40e411;},_0x3dfce4[_0x586b68(_0x502dfa._0x4889eb,'$tcz',0x583,0x56c)]=function(_0x50e62c,_0x10b077){return _0x50e62c!==_0x10b077;};function _0x5588a2(_0x444148,_0x2c1f2c,_0x11d060,_0x47f4e1){return _0x28be0c(_0x444148-0x16d,_0x47f4e1- -0x368,_0x11d060,_0x47f4e1-0xf2);}_0x3dfce4['jtyJU']=_0x5588a2(-_0x502dfa._0x85fdd5,-_0x502dfa._0x531dfe,'OZ4q',-0x1c),_0x3dfce4[_0x5588a2(-_0x502dfa._0x3d7615,-0x3d,_0x502dfa._0x46a92e,-0x11)]=_0x586b68(_0x502dfa._0x420083,'fwRI',0x54f,_0x502dfa._0x239b55),_0x3dfce4[_0x5588a2(-_0x502dfa._0x4a6b9d,-_0x502dfa._0x409c01,'QYr3',-_0x502dfa._0x409c01)]=function(_0x580199,_0x4dc3b9){return _0x580199===_0x4dc3b9;},_0x3dfce4['ffmPq']=_0x5588a2(-_0x502dfa._0x2592e4,-_0x502dfa._0x1e9afb,'QYr3',-0x3e),_0x3dfce4[_0x5588a2(-0x54,-_0x502dfa._0x23bb36,'HDS4',-0x40)]=_0x5588a2(-0x52,-_0x502dfa._0x246e82,_0x502dfa._0x4da914,-_0x502dfa._0x4c10f9);const _0x112ea1=_0x3dfce4;function _0x586b68(_0xee7a67,_0x172023,_0x58b8c5,_0x252f23){return _0x18a74a(_0xee7a67-0x1da,_0x172023-_0x377765._0x1796ca,_0x172023,_0xee7a67-0x587);}const _0x12154d=role_flow_repo_1[_0x5588a2(-0x3d,-0x38,'I@cM',-0x4c)+_0x586b68(_0x502dfa._0x419676,'7m6v',_0x502dfa._0x4bd5d7,0x532)][_0x5588a2(-_0x502dfa._0x1a8529,-_0x502dfa._0x12330c,'EKep',-_0x502dfa._0x4ae812)]();return _0x12154d[_0x5588a2(-0x6f,-0x73,_0x502dfa._0x38c738,-_0x502dfa._0x14c7cb)](_0x380802=>{function _0x61b2d9(_0x2bb05e,_0x25dd2e,_0x59d97d,_0x224162){return _0x586b68(_0x2bb05e- -0x5f9,_0x25dd2e,_0x59d97d-0xa1,_0x224162-_0x46bde8._0x52cbae);}function _0x17449b(_0x25d59b,_0x2a63e0,_0xebed04,_0x204fc7){return _0x5588a2(_0x25d59b-0x1e0,_0x2a63e0-_0x58be43._0xca2285,_0x2a63e0,_0x25d59b- -_0x58be43._0x376211);}if(_0x112ea1[_0x61b2d9(-_0x5481a4._0x1db10d,'l*pl',-_0x5481a4._0x1e3285,-_0x5481a4._0x2f0af8)](_0x112ea1[_0x61b2d9(-0xad,'csy4',-0x8a,-_0x5481a4._0x4e6e67)],_0x112ea1['grZUH'])){if(_0x112ea1[_0x61b2d9(-0x79,'^2eQ',-0x9c,-_0x5481a4._0x16d31e)](_0x380802[_0x17449b(-_0x5481a4._0x48ebd9,_0x5481a4._0x186259,-0x134,-_0x5481a4._0x188e05)],0x2*0xe3e+0x1503+0x2*-0x18bf)&&(-0x1c1*0xf+0x1*0x20cf+-0x680,crypto_service_1[_0x61b2d9(-0xa5,'!mUB',-0xcf,-0x88)+'d'])(_0x380802[_0x17449b(-0x118,_0x5481a4._0x4e9911,-_0x5481a4._0x326b1a,-_0x5481a4._0x1efdc4)])){if(_0x112ea1['ffmPq']!==_0x112ea1['Pojxq']){const _0x1986d1=(0x8a5+-0x2f*-0x62+0x3*-0x8e1,crypto_service_1[_0x61b2d9(-_0x5481a4._0x1df515,'ogGg',-_0x5481a4._0xacabd0,-0xa7)+'c'])(_0x380802[_0x61b2d9(-0x59,_0x5481a4._0x3c9b39,-0x7a,-_0x5481a4._0x1a4571)]),_0x5f84ab={..._0x380802};return _0x5f84ab[_0x17449b(-0x11d,'fwRI',-0x142,-0x14b)]=_0x1986d1,_0x5f84ab;}else{if(_0x37c96c[_0x17449b(-_0x5481a4._0x31fbac,_0x5481a4._0x43fc38,-0x166,-_0x5481a4._0x35e0cc)]===-0xaed+0x1*0x7e7+-0x1f*-0x19&&(-0xc77*-0x2+-0x7d4+-0x111a,_0x14a29d[_0x17449b(-_0x5481a4._0x31031a,'wD4S',-_0x5481a4._0x478f15,-_0x5481a4._0x45f8dd)+'d'])(_0x4a80a0[_0x17449b(-_0x5481a4._0x2f2897,'h#%X',-_0x5481a4._0x29ab51,-0x12c)])){const _0x19447c=(0x5*0x247+-0x1b15+-0xe*-0x11f,_0x230b5b['decryptSyn'+'c'])(_0x16d1ba[_0x17449b(-_0x5481a4._0x1fd563,_0x5481a4._0x2ce57d,-_0x5481a4._0x285036,-0x13b)]),_0x481dd7={..._0x2a0a2e};return _0x481dd7[_0x61b2d9(-_0x5481a4._0x30071f,_0x5481a4._0x2075a0,-_0x5481a4._0xbc99b6,-0x43)]=_0x19447c,_0x481dd7;}return _0x31b134;}}return _0x380802;}else{const _0x476cc5=_0x342a9a[_0x17449b(-_0x5481a4._0x490834,_0x5481a4._0x5c0fe2,-_0x5481a4._0x4f2fc1,-0x120)+_0x17449b(-_0x5481a4._0x2560bd,'BGf%',-0x12c,-_0x5481a4._0x595d62)][_0x17449b(-0x13c,_0x5481a4._0x4e0797,-0x133,-_0x5481a4._0x30f64f)](_0xf4c8fb);if(!_0x476cc5)return null;if(_0x112ea1[_0x61b2d9(-0x7b,']0eg',-_0x5481a4._0x1a4571,-_0x5481a4._0x2e1341)](_0x476cc5[_0x61b2d9(-0x5b,_0x5481a4._0x3da7e3,-_0x5481a4._0x345c64,-_0x5481a4._0x185bea)],-0x2e3*-0x2+0xca*-0xc+0x3b3)&&(-0x1d05+0x1*0xa32+0x12d3,_0x1c2054[_0x61b2d9(-0x5c,_0x5481a4._0x5a96d9,-_0x5481a4._0x1e23bb,-0x4d)+'d'])(_0x476cc5[_0x61b2d9(-0x67,_0x5481a4._0x1127b2,-_0x5481a4._0x47e8b0,-0x6f)])){const _0x4a67ae=(0x6a8+0x21d*-0x3+-0x1*0x51,_0x289b10[_0x17449b(-0x125,'I@cM',-_0x5481a4._0xe8d479,-0x105)+'c'])(_0x476cc5['content']),_0x1498cb={..._0x476cc5};return _0x1498cb[_0x61b2d9(-_0x5481a4._0x492168,'soO9',-0x7d,-_0x5481a4._0x12ff59)]=_0x4a67ae,_0x1498cb;}return _0x476cc5;}});}[_0x28be0c(0x343,0x32e,'oDvV',0x348)](_0x37765e){const _0x4e2016={_0x55fd96:0x1ef,_0x1fba18:0x2b,_0x8c9dae:0x26,_0xf5cf58:'!jkj',_0x53e933:'HDS4'},_0x2237cb={_0x202f2d:0x104,_0x3ddaaf:0x184,_0x494f10:0x59},_0x43f85e={_0x105c7a:0xf4};function _0x17ecfe(_0x24a3c4,_0x458be0,_0xf1270,_0x293b61){return _0x28be0c(_0x24a3c4-_0x43f85e._0x105c7a,_0xf1270- -0x4ff,_0x24a3c4,_0x293b61-0xf8);}function _0x46f6ff(_0x3113ce,_0x53c108,_0x109542,_0x243875){return _0x18a74a(_0x3113ce-_0x2237cb._0x202f2d,_0x53c108-_0x2237cb._0x3ddaaf,_0x109542,_0x243875-_0x2237cb._0x494f10);}return!role_flow_repo_1[_0x17ecfe('!mUB',-0x218,-_0x4e2016._0x55fd96,-0x1d8)+_0x46f6ff(_0x4e2016._0x1fba18,_0x4e2016._0x8c9dae,_0x4e2016._0xf5cf58,0x1f)][_0x46f6ff(0x41,0x4c,_0x4e2016._0x53e933,0x49)](_0x37765e);}}exports[_0x18a74a(0x20,0x44,'nIfY',0x14)+_0x28be0c(0x32b,0x309,'Da9v',0x308)]=RoleFlowService,exports[_0x28be0c(0x327,0x311,'8B]]',0x323)+_0x18a74a(-0x11,-0x3c,'$tcz',-0x2c)]=new RoleFlowService();
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* 角色约束流程服务
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.roleFlowService = exports.RoleFlowService = void 0;
|
|
7
|
+
const role_flow_repo_1 = require("../../db/repositories/role-flow.repo");
|
|
8
|
+
const crypto_service_1 = require("./crypto.service");
|
|
9
|
+
class RoleFlowService {
|
|
10
|
+
/**
|
|
11
|
+
* 获取角色流程(自动解密预置数据)
|
|
12
|
+
* v1.1.7: 新增 assistant 支持
|
|
13
|
+
*/
|
|
14
|
+
getRoleFlow(role) {
|
|
15
|
+
const flow = role_flow_repo_1.roleFlowRepository.findByRole(role);
|
|
16
|
+
if (!flow)
|
|
17
|
+
return null;
|
|
18
|
+
// 如果是预置数据且已加密,解密后返回
|
|
19
|
+
if (flow.is_preset === 1 && (0, crypto_service_1.isEncrypted)(flow.content)) {
|
|
20
|
+
const decryptedContent = (0, crypto_service_1.decryptSync)(flow.content);
|
|
21
|
+
return { ...flow, content: decryptedContent };
|
|
22
|
+
}
|
|
23
|
+
return flow;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 获取所有角色流程
|
|
27
|
+
*/
|
|
28
|
+
listAll() {
|
|
29
|
+
const flows = role_flow_repo_1.roleFlowRepository.findAll();
|
|
30
|
+
return flows.map(flow => {
|
|
31
|
+
if (flow.is_preset === 1 && (0, crypto_service_1.isEncrypted)(flow.content)) {
|
|
32
|
+
const decryptedContent = (0, crypto_service_1.decryptSync)(flow.content);
|
|
33
|
+
return { ...flow, content: decryptedContent };
|
|
34
|
+
}
|
|
35
|
+
return flow;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 检查是否可以修改
|
|
40
|
+
*/
|
|
41
|
+
canModify(id) {
|
|
42
|
+
return !role_flow_repo_1.roleFlowRepository.isPreset(id);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.RoleFlowService = RoleFlowService;
|
|
46
|
+
exports.roleFlowService = new RoleFlowService();
|
|
47
|
+
//# sourceMappingURL=role-flow.service.js.map
|