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,256 @@
|
|
|
1
|
-
'use strict';(function(_0x4542e1,_0x113ca2){const _0x2ec708={_0x5ed5a3:0x3c1,_0x27671d:0x3bb,_0x257bb7:0x35f,_0x12440f:0x3e1,_0x2a81ec:0x3f3,_0x207611:'KP1^',_0x427435:0x4f0,_0x3d4f15:0x40b,_0x16cbc0:0x450,_0x499d59:'39#7',_0x18f104:0x3c1,_0x226af5:0x448,_0x2f4d7f:0x4a4,_0x6e5b33:0x42d,_0x48c098:0x582,_0x4e38c4:0x526,_0x56fcf6:'5hL#',_0x54fa78:0x3d3,_0x45f0b0:0x357,_0x1d7cb6:0x37a,_0x5a67b0:0x45e},_0x364cbf={_0x5ecdbc:0x172};function _0x437b8f(_0xa87d16,_0x286074,_0x4e8832,_0x40e53e){return _0x3b7d(_0xa87d16-_0x364cbf._0x5ecdbc,_0x4e8832);}const _0x4ab8e6=_0x4542e1();function _0x4c66c1(_0xb06af4,_0x3aa03d,_0x299648,_0x108950){return _0x3b7d(_0x299648-0x225,_0x108950);}while(!![]){try{const _0x391ce4=-parseInt(_0x437b8f(0x3bf,_0x2ec708._0x5ed5a3,'FVJm',_0x2ec708._0x27671d))/(0xb*0x39+0x1*0x10e5+-0x1357)*(parseInt(_0x4c66c1(_0x2ec708._0x257bb7,_0x2ec708._0x12440f,_0x2ec708._0x2a81ec,_0x2ec708._0x207611))/(-0x2d6*-0xb+0x1*0x78d+-0x26bd))+-parseInt(_0x4c66c1(0x4ff,0x4aa,0x4b4,'4Rm^'))/(-0x58e*-0x2+-0x9*-0x2c5+0x1d*-0x13e)+parseInt(_0x4c66c1(0x503,_0x2ec708._0x427435,0x4d7,'jQn*'))/(0x255a+-0x1b20+-0xa36)*(parseInt(_0x437b8f(_0x2ec708._0x3d4f15,_0x2ec708._0x16cbc0,'4OL3',0x3cf))/(-0x1c2+0x1*0x537+0x8*-0x6e))+parseInt(_0x437b8f(0x3a6,0x42c,_0x2ec708._0x499d59,_0x2ec708._0x18f104))/(-0xf*-0x81+0x1*0x89+-0x812)*(parseInt(_0x437b8f(_0x2ec708._0x226af5,0x4d3,'$[e3',0x4c0))/(-0xa*-0x1db+-0x1*-0x3b4+-0x32d*0x7))+-parseInt(_0x4c66c1(0x4eb,_0x2ec708._0x2f4d7f,0x525,'24ET'))/(0x1*0xb19+0x1e53+-0x2964)*(parseInt(_0x437b8f(0x3d9,_0x2ec708._0x6e5b33,_0x2ec708._0x499d59,0x43c))/(-0xb*0x1bf+0x21c6+-0x78*0x1f))+-parseInt(_0x4c66c1(0x56f,_0x2ec708._0x48c098,_0x2ec708._0x4e38c4,_0x2ec708._0x56fcf6))/(-0x1*-0x7c3+-0x1eb7+0x16fe)+-parseInt(_0x437b8f(_0x2ec708._0x54fa78,_0x2ec708._0x45f0b0,'!1Ri',_0x2ec708._0x1d7cb6))/(-0x24d5+0x1e46+-0x1a*-0x41)*(-parseInt(_0x4c66c1(0x442,0x481,_0x2ec708._0x5a67b0,']kgN'))/(-0xd5*0x8+0x11*0xdf+-0x81b));if(_0x391ce4===_0x113ca2)break;else _0x4ab8e6['push'](_0x4ab8e6['shift']());}catch(_0x5578e2){_0x4ab8e6['push'](_0x4ab8e6['shift']());}}}(_0x21c3,-0x21d68+-0x8de0b+0x1e2*0x892));var __createBinding=this&&this[_0x43509b('KP1^',0x2de,0x310,0x373)+_0x43509b('tKA[',0x488,0x3e9,0x423)]||(Object[_0x1cd153(0x2bf,0x2ee,'6Ov[',0x2e9)]?function(_0x4a4e5f,_0x4b640a,_0x396365,_0x20448e){const _0x57d23a={_0x228c8c:0x27a,_0x1c4dfb:0x2f7,_0x5b2f64:'cUW7',_0x5137b9:0x16a,_0xb7a5f8:0x31a,_0x368984:'KP1^',_0x20bd62:0x37d,_0x2675e5:0x38f,_0x350d60:'WaxN',_0x3af752:0x58,_0x290189:'4OL3',_0x4bae4c:0x2e2,_0x23a31c:'WaxN',_0x36f694:0xad,_0x4ea760:0x1f,_0x5258a8:'KP1^',_0x16cd21:0x3a3,_0x5aad23:0x30b,_0x9e9ba4:0x371,_0x36b3fb:'jQn*',_0x148810:0x3dc,_0x3d7248:0x36e,_0x426570:0xa1,_0x2602f7:'CV^a',_0x42fe32:0x6d,_0x555c61:0xe9,_0x1b4171:0x271,_0x42f4d8:0x25b,_0x462050:'myqs'},_0x31b7f8={_0x2857c1:0x43},_0x1a67bd={_0x32ce27:0x93},_0x21ca55={};_0x21ca55[_0x329ae4('fA3H',_0x57d23a._0x228c8c,_0x57d23a._0x1c4dfb,0x2ed)]=function(_0x184638,_0x4b6e83){return _0x184638===_0x4b6e83;};function _0x2224c9(_0x4d68d5,_0x4db3df,_0x56a9e9,_0x13e780){return _0x1cd153(_0x4d68d5-0x198,_0x56a9e9- -0x282,_0x4db3df,_0x13e780-_0x1a67bd._0x32ce27);}_0x21ca55[_0x2224c9(0x90,_0x57d23a._0x5b2f64,0x107,_0x57d23a._0x5137b9)]='get';function _0x329ae4(_0x4008f7,_0xc45ee5,_0x2b2d34,_0x4389c3){return _0x43509b(_0x4008f7,_0xc45ee5-0x15d,_0x2b2d34- -0x5b,_0x4389c3-_0x31b7f8._0x2857c1);}const _0x1594a5=_0x21ca55;if(_0x1594a5['MSHEB'](_0x20448e,undefined))_0x20448e=_0x396365;var _0x314fd4=Object[_0x329ae4('u(2q',0x2c9,_0x57d23a._0xb7a5f8,0x2b5)+_0x329ae4(_0x57d23a._0x368984,0x344,_0x57d23a._0x20bd62,_0x57d23a._0x2675e5)+_0x2224c9(0x7a,_0x57d23a._0x350d60,_0x57d23a._0x3af752,0x9f)](_0x4b640a,_0x396365);if(!_0x314fd4||(_0x1594a5[_0x329ae4(_0x57d23a._0x290189,0x2c7,_0x57d23a._0x4bae4c,0x23c)]in _0x314fd4?!_0x4b640a[_0x2224c9(0x78,_0x57d23a._0x23a31c,_0x57d23a._0x36f694,_0x57d23a._0x4ea760)]:_0x314fd4[_0x329ae4(_0x57d23a._0x5258a8,_0x57d23a._0x16cd21,_0x57d23a._0x5aad23,_0x57d23a._0x9e9ba4)]||_0x314fd4[_0x329ae4(_0x57d23a._0x36b3fb,0x357,0x334,_0x57d23a._0x148810)+'le'])){const _0x3b4c3d={};_0x3b4c3d[_0x329ae4('QcXb',0x30e,_0x57d23a._0x3d7248,0x2dd)]=!![],_0x3b4c3d[_0x2224c9(_0x57d23a._0x426570,_0x57d23a._0x2602f7,_0x57d23a._0x42fe32,_0x57d23a._0x555c61)]=function(){return _0x4b640a[_0x396365];},_0x314fd4=_0x3b4c3d;}Object[_0x329ae4('4cn3',_0x57d23a._0x1b4171,_0x57d23a._0x42f4d8,0x1cb)+_0x2224c9(-0x26,_0x57d23a._0x462050,0x26,-0x30)](_0x4a4e5f,_0x20448e,_0x314fd4);}:function(_0x503cf5,_0x15b661,_0x2727f3,_0x5b53a9){const _0x1f1e67={_0xe9d6f5:'Zwcj',_0x48e294:0x33f,_0x27223c:0x322},_0x4959b5={_0x1b3cf0:0x197,_0x5dd202:0x3f0,_0x537eb9:0x1d1},_0x2b28c6={_0x356820:0x86},_0x311404={};function _0x1e8d1c(_0x32b353,_0x2da29f,_0x577f65,_0x572244){return _0x43509b(_0x32b353,_0x2da29f-0x34,_0x577f65-_0x2b28c6._0x356820,_0x572244-0xf3);}function _0x5c902d(_0x1582c8,_0x21cf79,_0x237260,_0x1e0ab0){return _0x43509b(_0x1582c8,_0x21cf79-_0x4959b5._0x1b3cf0,_0x237260- -_0x4959b5._0x5dd202,_0x1e0ab0-_0x4959b5._0x537eb9);}_0x311404[_0x1e8d1c(_0x1f1e67._0xe9d6f5,_0x1f1e67._0x48e294,0x3e7,0x372)]=function(_0x1c6007,_0x48d213){return _0x1c6007===_0x48d213;};const _0x3519b7=_0x311404;if(_0x3519b7[_0x1e8d1c('nRu3',0x2c0,_0x1f1e67._0x27223c,0x2dd)](_0x5b53a9,undefined))_0x5b53a9=_0x2727f3;_0x503cf5[_0x5b53a9]=_0x15b661[_0x2727f3];}),__setModuleDefault=this&&this[_0x43509b('&!]^',0x28e,0x328,0x3b8)+_0x43509b('4cn3',0x31d,0x35b,0x393)]||(Object[_0x43509b('39#7',0x448,0x3cc,0x417)]?function(_0x1feba1,_0x41ecc8){const _0x27080b={_0x154406:0x235,_0x130804:0x1c9,_0x3fbb4b:'[kx*',_0x76cd5a:'gpqE',_0x2f57e9:0x253,_0x5844e1:0x2d4,_0x34d633:0x353,_0x40e177:0x160,_0x502f37:0x230,_0x451c2a:'nRu3',_0x34bdb2:0x1fb,_0x4600f6:0x28c,_0x47adbf:'jG7$',_0x43dcfe:0x20b},_0x59e606={_0x1529d6:0x133,_0x4a0aa4:0x17},_0x30fa31={_0x20fdc8:0x1ec},_0xa50d81={};_0xa50d81[_0x4f5935(_0x27080b._0x154406,_0x27080b._0x130804,_0x27080b._0x3fbb4b,0x21d)]=!![];function _0x9f9e3d(_0x37d0a7,_0x547eb9,_0x3b0c7e,_0x2a49c2){return _0x43509b(_0x37d0a7,_0x547eb9-_0x30fa31._0x20fdc8,_0x3b0c7e- -0x13,_0x2a49c2-0x3a);}_0xa50d81[_0x9f9e3d(_0x27080b._0x76cd5a,_0x27080b._0x2f57e9,_0x27080b._0x5844e1,_0x27080b._0x34d633)]=_0x41ecc8;function _0x4f5935(_0x4c7255,_0x15a922,_0x5b8afc,_0x5330b0){return _0x1cd153(_0x4c7255-_0x59e606._0x1529d6,_0x5330b0- -0x15e,_0x5b8afc,_0x5330b0-_0x59e606._0x4a0aa4);}Object[_0x4f5935(0x1f6,0xf7,'WaxN',0x199)+_0x4f5935(_0x27080b._0x40e177,_0x27080b._0x502f37,_0x27080b._0x451c2a,_0x27080b._0x34bdb2)](_0x1feba1,_0x4f5935(0x1e8,_0x27080b._0x4600f6,_0x27080b._0x47adbf,_0x27080b._0x43dcfe),_0xa50d81);}:function(_0x29699f,_0x1d1956){const _0x2d9a38={_0x5f1640:0x17,_0x1b83d8:0x22,_0x440893:'jQn*',_0x37ebd2:0xbd,_0x14aaba:'C4aM',_0x213a92:0x24},_0x3a4bb7={_0x25bb41:0x371},_0x1f4542={_0x17aaba:0x5f,_0x423853:0xdc};function _0x57f5ed(_0x5d915c,_0x52e653,_0x59c41a,_0x34eab5){return _0x43509b(_0x59c41a,_0x52e653-0x167,_0x5d915c-_0x1f4542._0x17aaba,_0x34eab5-_0x1f4542._0x423853);}const _0x5e56b7={};_0x5e56b7[_0x568aac(0x77,_0x2d9a38._0x5f1640,_0x2d9a38._0x1b83d8,_0x2d9a38._0x440893)]=_0x568aac(-0xd5,-0x51,-_0x2d9a38._0x37ebd2,_0x2d9a38._0x14aaba);function _0x568aac(_0x57fd5d,_0x3417e0,_0x217006,_0x2df18b){return _0x43509b(_0x2df18b,_0x3417e0-0x171,_0x217006- -_0x3a4bb7._0x25bb41,_0x2df18b-0x46);}const _0x430f19=_0x5e56b7;_0x29699f[_0x430f19[_0x568aac(-_0x2d9a38._0x213a92,0x54,0x63,'C4aM')]]=_0x1d1956;}),__importStar=this&&this[_0x1cd153(0x26e,0x304,'OEMe',0x392)+'ar']||(function(){const _0x12ad2f={_0x960910:0x197,_0x341fb0:0x18f,_0x2ee451:'jQn*'},_0x44b1cf={_0x2bbcdf:'J)xr',_0x44dff8:0x1d5,_0x30652f:0x122,_0x5d1c58:0x3c4,_0x2a0156:0x3ce,_0x2f7e51:'&SYH',_0x3f2cb7:0x3a1,_0x1e6343:0x431,_0x519aef:0x408,_0x16538b:'4OL3',_0x48a5e8:0x1ba,_0x4e3725:0x16a,_0x3c85dd:0x1a6,_0x3f9cf6:0x83,_0x36cb61:0x45b,_0x4e77e2:'4cn3',_0x56c31b:0x3f1},_0x57006e={_0x4e2e1d:0x121,_0x248a6e:0x317,_0x195b18:0x26},_0x3501fc={_0x49a906:0x22f,_0x320636:0xce},_0x3b839b={_0x411cd2:'QcXb'},_0x905a84={_0x24537a:0x60,_0x5d8593:0x1b},_0x555e8c={_0x463789:0x21,_0x59b943:0x80,_0xf8ecea:0x11e,_0x1488c8:0x90,_0x4b51fa:'*hjh',_0x1314bc:0x661,_0x27921d:0x695,_0x5df408:'gpqE',_0x5d3f44:'4V]H',_0x44c123:0x59a,_0x477d15:'39#7',_0xba4091:0x4f,_0x1e6f36:0x26,_0x2880bc:0x23,_0x14b741:']kgN',_0x6debff:0x0,_0x2c5052:'u(2q',_0x105ae8:0x58f,_0x585ea5:0x57e,_0x321b6c:'4cn3',_0xf0a1e5:0x5b8,_0x37b8ba:0x59f,_0x4d54de:'^Zly',_0x1d93bc:0x5f0,_0xd5f1f1:0x64e,_0x50ec41:'nRu3',_0x487c5c:0x69c},_0x3be559={_0x1dcf3f:0x13d};function _0x276729(_0x21f887,_0x29e048,_0x390f6f,_0x4ea412){return _0x1cd153(_0x21f887-0x167,_0x390f6f- -0x194,_0x21f887,_0x4ea412-_0x3be559._0x1dcf3f);}const _0x3906a3={'hhxPd':function(_0x31647f,_0x23239c){return _0x31647f===_0x23239c;},'hfpbN':_0x3e4e37(0xec,0x101,'24ET',_0x12ad2f._0x960910),'qTeXo':function(_0x3f1766,_0x65e833){return _0x3f1766(_0x65e833);},'LcCAr':function(_0x229d16,_0x1a1c8e){return _0x229d16(_0x1a1c8e);},'wqcFb':function(_0x1a459d,_0x3a21cb){return _0x1a459d!=_0x3a21cb;},'eyvbC':function(_0x5a4788,_0x15a1e2){return _0x5a4788<_0x15a1e2;},'KmClQ':function(_0x3c9a9f,_0x501c6b){return _0x3c9a9f!==_0x501c6b;},'aBpIW':_0x3e4e37(_0x12ad2f._0x341fb0,0x194,_0x12ad2f._0x2ee451,0x108),'wZNaX':function(_0x6cfaa8,_0x528a27,_0x3b00d8,_0x339467){return _0x6cfaa8(_0x528a27,_0x3b00d8,_0x339467);}};var _0x4369fa=function(_0x5c7829){const _0x1dad89={_0x385e8c:0x1ac},_0x1b24eb={_0x2ba963:0x16},_0x656ca8={_0x31c3a3:0x6b4},_0x3ebbf6={_0x404805:0x1f0,_0x33f015:0x243},_0x129257={_0x2bbc70:0x56},_0x1758a6={'TFBBS':function(_0x5cb536,_0x143793){function _0x120426(_0x1c4c20,_0x3fe9a5,_0x42c2fc,_0x2dc557){return _0x3b7d(_0x2dc557- -_0x129257._0x2bbc70,_0x3fe9a5);}return _0x3906a3[_0x120426(_0x3ebbf6._0x404805,'myqs',_0x3ebbf6._0x33f015,0x28d)](_0x5cb536,_0x143793);}};_0x4369fa=Object[_0x3408b1(_0x3b839b._0x411cd2,0x71,-0x25,-0xb1)+'ertyNames']||function(_0x10c70f){function _0x572b08(_0x5ef82f,_0x243128,_0x4fb144,_0x17bf90){return _0x3408b1(_0x243128,_0x243128-0x65,_0x5ef82f-_0x656ca8._0x31c3a3,_0x17bf90-0x104);}function _0x10f6b6(_0x27152b,_0x491df9,_0x57cadb,_0x5adc5f){return _0x3408b1(_0x57cadb,_0x491df9-0x89,_0x491df9-0x4b,_0x5adc5f-_0x1b24eb._0x2ba963);}if(_0x3906a3[_0x10f6b6(-_0x555e8c._0x463789,-_0x555e8c._0x59b943,'jQn*',-_0x555e8c._0xf8ecea)](_0x3906a3[_0x10f6b6(-_0x555e8c._0x1488c8,-0x90,_0x555e8c._0x4b51fa,-0xff)],_0x3906a3[_0x572b08(_0x555e8c._0x1314bc,'nRu3',_0x555e8c._0x27921d,0x6af)])){var _0x49cf27=[];for(var _0xe1565c in _0x10c70f)if(Object[_0x10f6b6(-0x78,-0x8d,_0x555e8c._0x5df408,-0x90)][_0x572b08(0x599,_0x555e8c._0x5d3f44,_0x555e8c._0x44c123,0x5b5)+'erty']['call'](_0x10c70f,_0xe1565c))_0x49cf27[_0x49cf27[_0x10f6b6(0x5f,-0xd,_0x555e8c._0x477d15,_0x555e8c._0xba4091)]]=_0xe1565c;return _0x49cf27;}else{const _0x57cd36=_0x1758a6[_0x10f6b6(-_0x555e8c._0x1e6f36,_0x555e8c._0x2880bc,_0x555e8c._0x14b741,_0x555e8c._0x6debff)](_0x419d00,_0x2b71c0);_0x51c39d[_0x572b08(0x628,_0x555e8c._0x2c5052,_0x555e8c._0x105ae8,0x69c)](..._0x57cd36[_0x572b08(_0x555e8c._0x585ea5,_0x555e8c._0x321b6c,0x518,_0x555e8c._0xf0a1e5)]),_0x4773ef[_0x572b08(_0x555e8c._0x37b8ba,_0x555e8c._0x4d54de,_0x555e8c._0x1d93bc,0x58c)](..._0x57cd36[_0x572b08(_0x555e8c._0xd5f1f1,_0x555e8c._0x50ec41,0x5f9,_0x555e8c._0x487c5c)]);}};function _0x123371(_0x44acac,_0x5555de,_0xa9beb1,_0x4724c0){return _0x3e4e37(_0x5555de-0xfb,_0x5555de-_0x905a84._0x24537a,_0x44acac,_0x4724c0-_0x905a84._0x5d8593);}function _0x3408b1(_0x441d3a,_0x39a3be,_0x675e79,_0x23089a){return _0x3e4e37(_0x675e79- -_0x1dad89._0x385e8c,_0x39a3be-0x1a8,_0x441d3a,_0x23089a-0x12c);}return _0x3906a3[_0x123371('4Rm^',0x23e,0x264,0x1dd)](_0x4369fa,_0x5c7829);};function _0x3e4e37(_0x2ac81e,_0x1756ad,_0x31cdf2,_0x399b14){return _0x1cd153(_0x2ac81e-0x90,_0x2ac81e- -_0x3501fc._0x49a906,_0x31cdf2,_0x399b14-_0x3501fc._0x320636);}return function(_0x1358c6){const _0xcdd8a3={_0x57c3ff:0x74};if(_0x1358c6&&_0x1358c6[_0x1cf119(-0x140,_0x44b1cf._0x2bbcdf,-_0x44b1cf._0x44dff8,-_0x44b1cf._0x30652f)])return _0x1358c6;function _0x21dd4b(_0x405a03,_0x2097d4,_0x3ac5e3,_0x5e0886){return _0x276729(_0x3ac5e3,_0x2097d4-_0xcdd8a3._0x57c3ff,_0x5e0886-0x20d,_0x5e0886-0x16e);}var _0x3b32e8={};if(_0x3906a3[_0x21dd4b(_0x44b1cf._0x5d1c58,_0x44b1cf._0x2a0156,_0x44b1cf._0x2f7e51,_0x44b1cf._0x3f2cb7)](_0x1358c6,null)){for(var _0xd776f4=_0x4369fa(_0x1358c6),_0x513a5d=0x9d6*-0x1+-0x466+0x1*0xe3c;_0x3906a3[_0x21dd4b(_0x44b1cf._0x1e6343,0x42b,'hj9Q',_0x44b1cf._0x519aef)](_0x513a5d,_0xd776f4[_0x1cf119(-0x173,_0x44b1cf._0x16538b,-0x128,-_0x44b1cf._0x48a5e8)]);_0x513a5d++)if(_0x3906a3[_0x1cf119(-0x20b,'jHfv',-_0x44b1cf._0x4e3725,-_0x44b1cf._0x3c85dd)](_0xd776f4[_0x513a5d],_0x3906a3[_0x1cf119(-0xec,'^Zly',-0xae,-_0x44b1cf._0x3f9cf6)]))_0x3906a3[_0x21dd4b(_0x44b1cf._0x36cb61,0x491,_0x44b1cf._0x4e77e2,_0x44b1cf._0x56c31b)](__createBinding,_0x3b32e8,_0x1358c6,_0xd776f4[_0x513a5d]);}function _0x1cf119(_0x5ba559,_0x5413da,_0x14dd90,_0x2e76bf){return _0x276729(_0x5413da,_0x5413da-_0x57006e._0x4e2e1d,_0x5ba559- -_0x57006e._0x248a6e,_0x2e76bf-_0x57006e._0x195b18);}return __setModuleDefault(_0x3b32e8,_0x1358c6),_0x3b32e8;};}());const _0x57f576={};_0x57f576[_0x43509b('hj9Q',0x2ec,0x327,0x34c)]=!![],Object[_0x1cd153(0x342,0x2a2,'I1!c',0x24f)+_0x1cd153(0x2a9,0x2ba,'jHfv',0x25a)](exports,_0x43509b('QcXb',0x3a7,0x39e,0x413),_0x57f576),exports[_0x1cd153(0x392,0x2fd,'gpqE',0x2cc)+_0x43509b('&SYH',0x33c,0x371,0x301)]=getCredentialsDir,exports[_0x1cd153(0x405,0x394,'C3wm',0x406)+_0x43509b('Zwcj',0x2fc,0x2e1,0x36b)]=getFeishuDedupDir,exports[_0x1cd153(0x334,0x393,'Z@P&',0x409)+_0x1cd153(0x32f,0x318,'jQn*',0x3a9)+_0x1cd153(0x266,0x2ff,'cUW7',0x258)]=cleanupFeishuDedupForAgent,exports[_0x43509b('$ev(',0x3e1,0x385,0x37f)+_0x1cd153(0x3a0,0x3bb,'Zwcj',0x3e9)+_0x1cd153(0x32e,0x283,'Z@P&',0x200)+'nt']=cleanupFeishuCredentialsForAgent,exports[_0x1cd153(0x348,0x397,'fA3H',0x360)+_0x43509b('rJlr',0x479,0x3ea,0x386)+'ialsForGro'+'up']=cleanupFeishuCredentialsForGroup;function _0x43509b(_0x4a4b37,_0x5b2f2a,_0x1ef026,_0x44c6d0){return _0x3b7d(_0x1ef026-0xe5,_0x4a4b37);}function _0x3b7d(_0x5e8fae,_0x518dff){_0x5e8fae=_0x5e8fae-(0x139f+0x1*0x1729+-0x2912);const _0x23c4cc=_0x21c3();let _0xaa866f=_0x23c4cc[_0x5e8fae];if(_0x3b7d['eTolxK']===undefined){var _0x1f35e4=function(_0x56f225){const _0x41c80c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x102297='',_0x14b9f2='';for(let _0x286ff9=0x1a13+0x1e18+0x3*-0x12b9,_0x3ca41f,_0x5858ce,_0x1266c8=-0x1e93+-0x192e+0x37c1;_0x5858ce=_0x56f225['charAt'](_0x1266c8++);~_0x5858ce&&(_0x3ca41f=_0x286ff9%(-0x254f+-0x1307+-0x1c2d*-0x2)?_0x3ca41f*(0xc95*-0x3+0x166c+0xf93)+_0x5858ce:_0x5858ce,_0x286ff9++%(0x7c3+-0x1*-0x1f5b+-0x271a))?_0x102297+=String['fromCharCode'](0x85d*0x1+0x1*-0x1b1f+-0x13c1*-0x1&_0x3ca41f>>(-(0x4*0x7cf+0x1de4+-0x2*0x1e8f)*_0x286ff9&0x2*-0x20+-0x22b7*0x1+-0x1*-0x22fd)):0x2*0x11ab+0x1*0x26ef+-0x4a45){_0x5858ce=_0x41c80c['indexOf'](_0x5858ce);}for(let _0x5da58f=-0xe9*-0xb+-0x1*-0x7cd+-0x11d0,_0x14b9c8=_0x102297['length'];_0x5da58f<_0x14b9c8;_0x5da58f++){_0x14b9f2+='%'+('00'+_0x102297['charCodeAt'](_0x5da58f)['toString'](0xd63+0x15ef+-0x2342))['slice'](-(-0x19+0x1a3f+-0x1a24));}return decodeURIComponent(_0x14b9f2);};const _0x1d3c9c=function(_0x566a6b,_0x1acca1){let _0x2abd6d=[],_0x5a6863=-0x1521+-0xb4c+-0x206d*-0x1,_0x175c92,_0x4e3946='';_0x566a6b=_0x1f35e4(_0x566a6b);let _0x31b609;for(_0x31b609=-0x72*-0x34+0x6f9+0x359*-0x9;_0x31b609<-0xec1+-0x5*-0x791+-0x1614;_0x31b609++){_0x2abd6d[_0x31b609]=_0x31b609;}for(_0x31b609=0x846+-0x14b4+-0x4a*-0x2b;_0x31b609<-0x66a+0x80d+-0xa3;_0x31b609++){_0x5a6863=(_0x5a6863+_0x2abd6d[_0x31b609]+_0x1acca1['charCodeAt'](_0x31b609%_0x1acca1['length']))%(-0x2*-0x10f7+-0x1*0x233b+0x24d),_0x175c92=_0x2abd6d[_0x31b609],_0x2abd6d[_0x31b609]=_0x2abd6d[_0x5a6863],_0x2abd6d[_0x5a6863]=_0x175c92;}_0x31b609=0x3*-0x470+0x209*-0xa+0x21aa,_0x5a6863=-0x3*0xb5+0x225e+-0x203f;for(let _0xe3fb67=-0x821+0x1*-0x1543+0x1d64;_0xe3fb67<_0x566a6b['length'];_0xe3fb67++){_0x31b609=(_0x31b609+(-0x23d1+-0x3*-0x3a9+0x18d7))%(-0x1*-0x4f6+-0x9*-0x1e5+0x701*-0x3),_0x5a6863=(_0x5a6863+_0x2abd6d[_0x31b609])%(-0x22*-0xa6+-0x13*-0x10d+-0x2903),_0x175c92=_0x2abd6d[_0x31b609],_0x2abd6d[_0x31b609]=_0x2abd6d[_0x5a6863],_0x2abd6d[_0x5a6863]=_0x175c92,_0x4e3946+=String['fromCharCode'](_0x566a6b['charCodeAt'](_0xe3fb67)^_0x2abd6d[(_0x2abd6d[_0x31b609]+_0x2abd6d[_0x5a6863])%(-0x1fd*-0xb+-0x31c*-0xb+0x3713*-0x1)]);}return _0x4e3946;};_0x3b7d['oQbpRJ']=_0x1d3c9c,_0x3b7d['xjePbd']={},_0x3b7d['eTolxK']=!![];}const _0x5c4ce3=_0x23c4cc[-0x1*0x25aa+0x1d11+0x899],_0x461ea4=_0x5e8fae+_0x5c4ce3,_0x1766fb=_0x3b7d['xjePbd'][_0x461ea4];return!_0x1766fb?(_0x3b7d['vEGptX']===undefined&&(_0x3b7d['vEGptX']=!![]),_0xaa866f=_0x3b7d['oQbpRJ'](_0xaa866f,_0x518dff),_0x3b7d['xjePbd'][_0x461ea4]=_0xaa866f):_0xaa866f=_0x1766fb,_0xaa866f;}exports[_0x1cd153(0x38f,0x396,'qGpW',0x350)+_0x1cd153(0x385,0x32e,'!1Ri',0x308)+_0x43509b('cUW7',0x26e,0x300,0x359)]=cleanupAllFeishuCredentials,exports['cleanupFei'+_0x43509b('[kx*',0x31b,0x3a7,0x3f7)+_0x1cd153(0x439,0x3ae,'J)xr',0x38f)+_0x43509b('WaxN',0x3e6,0x37a,0x2d2)]=cleanupFeishuCredentialsForAgents;const fs=__importStar(require('fs')),path=__importStar(require(_0x43509b('qWa#',0x278,0x2bb,0x33f))),os=__importStar(require('os')),index_1=require(_0x43509b('$ev(',0x2f8,0x342,0x334));function _0x1cd153(_0x43f18c,_0xff287d,_0x8a0bbb,_0x2543df){const _0x261474={_0x6ff1bc:0xc5};return _0x3b7d(_0xff287d-_0x261474._0x6ff1bc,_0x8a0bbb);}function getCredentialsDir(){const _0x48799c={_0x3997b6:0xf6,_0x53cce7:'C4aM',_0x198c58:0x8b,_0x345340:0x3ea,_0x2172d1:'hj9Q',_0x3bb44f:0x423,_0x2ee0aa:'CV^a',_0x21aee7:0x3ae,_0x2daa4b:0x97,_0x2d0b7a:'tKA[',_0x53eee2:0x80,_0x2a9174:0xea,_0x20f568:0xb4,_0x596298:0x14a,_0x5d9903:'24ET',_0x336be2:0x3b2,_0x132b0c:0x74,_0x4e2f90:'jQn*',_0x3cb15c:0x156,_0x26f539:'5hL#',_0x546b0c:0x378,_0x30c942:'I1!c',_0x1ebe27:0x354,_0x2c5431:0x360,_0x587131:0x48e},_0x1e6528={_0x3bc8c8:0x210},_0xe99201={_0x3c593d:0xaf,_0x38e52c:0x15},_0x53244c={};_0x53244c[_0x20a2d6(_0x48799c._0x3997b6,_0x48799c._0x53cce7,_0x48799c._0x198c58,0x195)]=_0x20a2d6(0xcc,'u(2q',0xa3,0x13a),_0x53244c[_0x577591(_0x48799c._0x345340,_0x48799c._0x2172d1,0x47f,0x3ed)]=_0x577591(_0x48799c._0x3bb44f,_0x48799c._0x2ee0aa,0x325,_0x48799c._0x21aee7)+'s';function _0x577591(_0x189d8b,_0x1320e0,_0xb63168,_0x35f074){return _0x43509b(_0x1320e0,_0x1320e0-0x4c,_0x35f074-_0xe99201._0x3c593d,_0x35f074-_0xe99201._0x38e52c);}const _0x23fb47=_0x53244c,_0x5c279e=(0x237c+0xbbf+0x1*-0x2f3b,index_1[_0x20a2d6(_0x48799c._0x2daa4b,_0x48799c._0x2d0b7a,_0x48799c._0x53eee2,_0x48799c._0x2a9174)+_0x20a2d6(_0x48799c._0x20f568,'jG7$',_0x48799c._0x596298,0x137)])();if(_0x5c279e)return path[_0x20a2d6(0x192,_0x48799c._0x5d9903,0x201,0x14c)](_0x5c279e,_0x577591(_0x48799c._0x336be2,'%aYr',0x46f,0x431)+'s');function _0x20a2d6(_0xfad131,_0x40d942,_0x593c34,_0x3f6f8d){return _0x1cd153(_0xfad131-0x3e,_0xfad131- -_0x1e6528._0x3bc8c8,_0x40d942,_0x3f6f8d-0x10d);}return path[_0x20a2d6(_0x48799c._0x132b0c,_0x48799c._0x4e2f90,0x46,0x112)](os[_0x20a2d6(_0x48799c._0x3cb15c,_0x48799c._0x26f539,0xbe,0x1c4)](),_0x23fb47[_0x577591(_0x48799c._0x546b0c,_0x48799c._0x30c942,_0x48799c._0x1ebe27,_0x48799c._0x2c5431)],_0x23fb47[_0x577591(_0x48799c._0x587131,_0x48799c._0x2d0b7a,_0x48799c._0x587131,0x41a)]);}function getFeishuDedupDir(){const _0x231f77={_0x444ee0:0x5d3,_0x363002:0x67b,_0x280990:0x708,_0x539dc0:0x61c,_0x15b921:0x19c,_0x23b9f8:0x115,_0xf1a7c1:'u(2q',_0x5c7456:0x61d,_0x4a8e74:0x5a4,_0x28cc30:0x584,_0x22c0d7:0x56a,_0x26898e:0x97,_0x54d29d:0x101,_0x51a96c:0x36,_0x90aafc:0x192,_0xe5c985:0x239,_0x187db2:'6Ov[',_0x33d4ef:0xae,_0x4f7a41:0x6f,_0xb55517:0x20,_0x249bca:'I1!c',_0x53b45c:0xb8,_0x23d575:0x156,_0x4c23fb:0x600,_0x1e7e7d:0x5c0,_0x5ee0d6:0x610,_0x112958:'36KA',_0x4e272a:0x58f,_0x3375e6:'myqs',_0x293f08:0xab,_0x355701:0x595,_0x3961b3:0x535,_0x5365fc:0x638,_0x56fa81:0x562,_0x45a3f7:0x69d,_0x506603:0x69a,_0x3131bd:'OEMe',_0x23bdaf:0x637,_0x4842a8:0x6b4,_0xb9180c:'C3wm',_0x4fa7c9:0x580,_0x5f0205:0x556,_0x1ac73e:'J)xr',_0x77fce:0xde,_0x15612c:'hj9Q'},_0x35633b={_0x144a57:0x50,_0x1c5d09:0xa8},_0x4eaf5d={};_0x4eaf5d[_0x5ed302(0x628,_0x231f77._0x444ee0,0x5e8,'cUW7')]=function(_0x3f7097,_0x2d4215){return _0x3f7097===_0x2d4215;},_0x4eaf5d['TgRbq']=_0x5ed302(_0x231f77._0x363002,_0x231f77._0x280990,_0x231f77._0x539dc0,'QcXb'),_0x4eaf5d[_0x20b3b4(-_0x231f77._0x15b921,-0x158,-_0x231f77._0x23b9f8,_0x231f77._0xf1a7c1)]=_0x5ed302(_0x231f77._0x5c7456,_0x231f77._0x4a8e74,0x5c9,'myqs'),_0x4eaf5d[_0x5ed302(0x619,0x665,_0x231f77._0x28cc30,'uNK^')]=_0x5ed302(0x54f,_0x231f77._0x22c0d7,0x4ad,'qGpW'),_0x4eaf5d[_0x20b3b4(-_0x231f77._0x26898e,-_0x231f77._0x54d29d,-_0x231f77._0x51a96c,'KP1^')]=_0x20b3b4(-_0x231f77._0x90aafc,-_0x231f77._0xe5c985,-0x122,_0x231f77._0x187db2);function _0x5ed302(_0x3d58e2,_0x39ca7d,_0x1017ec,_0x4f2506){return _0x43509b(_0x4f2506,_0x39ca7d-_0x35633b._0x144a57,_0x3d58e2-0x2b0,_0x4f2506-_0x35633b._0x1c5d09);}const _0x5102f8=_0x4eaf5d;function _0x20b3b4(_0x184e53,_0x17f21c,_0x1d225c,_0x523b5d){return _0x1cd153(_0x184e53-0x1b3,_0x184e53- -0x448,_0x523b5d,_0x523b5d-0x154);}const _0x10fd24=(0xd*0x1f1+0x11f*-0x11+0x2*-0x317,index_1[_0x20b3b4(-_0x231f77._0x33d4ef,-0x50,-0x5d,'FVJm')+_0x20b3b4(-0x86,-_0x231f77._0x4f7a41,-_0x231f77._0xb55517,_0x231f77._0x249bca)])();if(_0x10fd24){if(_0x5102f8[_0x20b3b4(-_0x231f77._0x53b45c,-0x19,-_0x231f77._0x23d575,'4zBT')](_0x5102f8[_0x5ed302(_0x231f77._0x4c23fb,_0x231f77._0x1e7e7d,0x697,'OEMe')],_0x5102f8['TgRbq']))return path[_0x5ed302(0x65b,_0x231f77._0x5ee0d6,0x6d0,_0x231f77._0x112958)](_0x10fd24,_0x5102f8[_0x5ed302(_0x231f77._0x4e272a,0x4f6,0x50c,_0x231f77._0x3375e6)],_0x5102f8['UtfXy']);else{const _0x7ab0d={};return _0x7ab0d[_0x20b3b4(-_0x231f77._0x293f08,-0x13a,-0x17,'36KA')]=_0x78ee30,_0x7ab0d[_0x5ed302(_0x231f77._0x355701,_0x231f77._0x3961b3,0x564,'&!]^')]=_0xbfc44,_0x7ab0d;}}return path[_0x5ed302(_0x231f77._0x4a8e74,_0x231f77._0x5365fc,_0x231f77._0x56fa81,'FVJm')](os[_0x5ed302(_0x231f77._0x45a3f7,0x6e1,_0x231f77._0x506603,_0x231f77._0x3131bd)](),_0x5102f8[_0x5ed302(_0x231f77._0x23bdaf,0x5a9,_0x231f77._0x4842a8,_0x231f77._0xb9180c)],_0x5102f8[_0x5ed302(_0x231f77._0x4fa7c9,0x50a,_0x231f77._0x5f0205,_0x231f77._0x1ac73e)],_0x5102f8[_0x20b3b4(-0x143,-_0x231f77._0x77fce,-0x1a1,_0x231f77._0x15612c)]);}function cleanupFeishuDedupForAgent(_0x5528b5){const _0x3647d8={_0x2ff254:0x44f,_0x46f14d:0x444,_0xa43e4d:0x50d,_0x587e9a:'WaxN',_0x2daaa5:0x47e,_0x37ba03:'!1Ri',_0x3be06b:0x3bb,_0x3bf2e4:0x399,_0x6f46db:0x436,_0x3e223e:0x392,_0x2c0da5:'tKA[',_0x2b5eda:0x42e,_0x5f31e8:0x4c5,_0x59b2d9:0x452,_0x5bf4db:0x482,_0x5d7f66:0x469,_0x256cec:'QcXb',_0x4eac0e:0x3db,_0x65d38f:'4OL3',_0x8c72c0:0x3c8,_0x3a26fa:0x3db,_0x6a7752:0x46f,_0x34ff87:0x3a2,_0x34728f:0x40d,_0x151c35:0x46b,_0x31963d:'36KA',_0x4d651b:0x4a2,_0x143853:0x413,_0x3e6dbd:0x419,_0x5e527d:'fA3H',_0x4936fe:0x4b4,_0x4ba325:0x501,_0x29780b:'qWa#',_0x24e26d:0x2ee,_0x2e10e6:0x372,_0x234211:0x2fd,_0x2ad85b:'cUW7',_0x256e7e:0x397,_0x53668a:0x3b6,_0x246859:0x404,_0x447912:0x415,_0x2e2cb6:0x451,_0xf43bfc:'^Zly',_0x4a3ad7:0x377,_0x54a2eb:'Zwcj',_0x240c37:0x42a,_0x399e81:0x3f3,_0x4e711b:0x398,_0xf12850:0x3c0,_0x217980:0x36a,_0x5d49ff:0x46c,_0x4afc08:0x41a,_0x585261:'rJlr',_0x4282fa:0x408,_0x4c065d:0x388,_0x76a7ec:'FVJm',_0x1310c8:0x417,_0x2077f5:0x3cb,_0x3bc524:0x50c,_0x4e7e66:0x456,_0x2e48e6:'OEMe',_0x36fd81:0x3f2,_0x48b23e:0x42c,_0x11a315:0x4b2,_0x22cc55:0x4d5,_0x93242b:'$[e3'},_0xaaccc6={_0x1a4676:0x10a},_0xdcdf20={_0x3b4c56:0xde,_0x406647:0x2d},_0x459629={'sDPPo':function(_0x22808e){return _0x22808e();},'tYuMG':function(_0x5e7c1b,_0x226522){return _0x5e7c1b===_0x226522;},'EkoSt':_0x14c837(_0x3647d8._0x2ff254,_0x3647d8._0x46f14d,0x43c,'^Zly'),'UKxaY':_0x14c837(0x485,_0x3647d8._0xa43e4d,0x415,_0x3647d8._0x587e9a)},_0x4a40bc=_0x459629[_0x20bed8(_0x3647d8._0x2daaa5,0x4b3,0x40b,_0x3647d8._0x37ba03)](getFeishuDedupDir),_0x5b2115=[],_0xa7716e=[];if(!fs[_0x14c837(_0x3647d8._0x3be06b,0x3b9,_0x3647d8._0x3bf2e4,'fA3H')](_0x4a40bc)){if(_0x459629[_0x14c837(0x38c,_0x3647d8._0x6f46db,_0x3647d8._0x3e223e,_0x3647d8._0x2c0da5)](_0x14c837(_0x3647d8._0x2b5eda,0x41e,0x3f6,'4cn3'),_0x20bed8(_0x3647d8._0x5f31e8,_0x3647d8._0x59b2d9,0x4bb,'6Ov['))){const _0x433f6f={};return _0x433f6f[_0x14c837(_0x3647d8._0x5bf4db,0x4fa,_0x3647d8._0x5d7f66,_0x3647d8._0x256cec)]=_0x5b2115,_0x433f6f['failed']=_0xa7716e,_0x433f6f;}else{const _0x371578=_0x4d1482[_0x20bed8(_0x3647d8._0x4eac0e,0x369,0x348,_0x3647d8._0x65d38f)](_0x29a0e6,_0x4d7804);try{_0x46c422[_0x20bed8(0x407,0x3bf,_0x3647d8._0x8c72c0,'Zwcj')](_0x371578),_0x2cb662[_0x20bed8(_0x3647d8._0x3a26fa,0x3e0,_0x3647d8._0x6a7752,'&!]^')](_0x45e5f9),_0x7ce601[_0x20bed8(_0x3647d8._0x34ff87,0x3c6,_0x3647d8._0x34728f,'CV^a')](_0x14c837(_0x3647d8._0x151c35,0x41a,0x482,_0x3647d8._0x31963d)+_0x3e1d24);}catch(_0x4105a4){_0x3d5b5a[_0x20bed8(_0x3647d8._0x4d651b,_0x3647d8._0x143853,_0x3647d8._0x3e6dbd,_0x3647d8._0x5e527d)](_0xd58fa1),_0x49724c[_0x20bed8(0x4a8,_0x3647d8._0x4936fe,_0x3647d8._0x4ba325,_0x3647d8._0x29780b)](_0x20bed8(_0x3647d8._0x24e26d,_0x3647d8._0x2e10e6,_0x3647d8._0x234211,_0x3647d8._0x2ad85b)+'\x20'+_0x152064,_0x4105a4);}}}const _0x1f8a1e=_0x5528b5+_0x20bed8(_0x3647d8._0x256e7e,_0x3647d8._0x53668a,_0x3647d8._0x246859,']kgN'),_0xb47aa=path[_0x20bed8(0x48f,_0x3647d8._0x447912,_0x3647d8._0x2e2cb6,_0x3647d8._0xf43bfc)](_0x4a40bc,_0x1f8a1e);function _0x14c837(_0x3d489f,_0x4a9ff7,_0xf24730,_0x139054){return _0x1cd153(_0x3d489f-0xaf,_0x3d489f-_0xdcdf20._0x3b4c56,_0x139054,_0x139054-_0xdcdf20._0x406647);}if(fs[_0x20bed8(0x30d,_0x3647d8._0x4a3ad7,0x304,_0x3647d8._0x54a2eb)](_0xb47aa)){if(_0x459629[_0x20bed8(0x4b5,_0x3647d8._0x240c37,_0x3647d8._0x143853,'4OL3')](_0x459629[_0x20bed8(0x40a,0x455,0x489,_0x3647d8._0x587e9a)],_0x459629['UKxaY']))_0x5987c8[_0x14c837(_0x3647d8._0x399e81,0x474,0x352,_0x3647d8._0x2ad85b)](_0x20bed8(_0x3647d8._0x4e711b,_0x3647d8._0xf12850,_0x3647d8._0x217980,'^Zly')+_0x14c837(_0x3647d8._0x5d49ff,_0x3647d8._0x4afc08,0x454,_0x3647d8._0x585261),_0x4d3eab);else try{fs[_0x14c837(0x3d0,0x330,_0x3647d8._0x4282fa,'FVJm')](_0xb47aa),_0x5b2115[_0x14c837(0x3c1,0x40b,_0x3647d8._0x4c065d,_0x3647d8._0x76a7ec)](_0x1f8a1e),console[_0x14c837(_0x3647d8._0x1310c8,0x38f,0x37a,'4OL3')](_0x14c837(_0x3647d8._0x2077f5,0x428,0x344,'%aYr')+_0x20bed8(0x527,0x488,_0x3647d8._0x3bc524,'qWa#')+_0x1f8a1e);}catch(_0x2f6e44){_0xa7716e['push'](_0x1f8a1e),console[_0x20bed8(_0x3647d8._0x4e7e66,0x449,0x4f5,_0x3647d8._0x2e48e6)](_0x14c837(_0x3647d8._0x36fd81,0x35a,_0x3647d8._0x48b23e,_0x3647d8._0x2c0da5)+_0x20bed8(_0x3647d8._0x11a315,0x49d,_0x3647d8._0x22cc55,'cUW7')+_0x1f8a1e,_0x2f6e44);}}function _0x20bed8(_0x121a11,_0x2fc6c9,_0x43f160,_0x177c0b){return _0x43509b(_0x177c0b,_0x2fc6c9-0x39,_0x2fc6c9-0xc8,_0x177c0b-_0xaaccc6._0x1a4676);}const _0x560f72={};return _0x560f72[_0x20bed8(0x3bf,0x3db,0x379,_0x3647d8._0x93242b)]=_0x5b2115,_0x560f72['failed']=_0xa7716e,_0x560f72;}function cleanupFeishuCredentialsForAgent(_0x4eb205){const _0x2666d5={_0x3ac6d4:0x1f5,_0xdb08b3:'fA3H',_0x21fcb1:0x487,_0x4d31d8:'Z@P&',_0x567c4a:0x562,_0x185bca:0x271,_0x4485d6:'24ET',_0x3cff4f:0x327,_0x148d00:0x1f3,_0x303516:0x396,_0x21c816:0x329,_0x4eb7b9:'C3wm',_0x591256:0x189,_0x5971fb:']kgN',_0x5010c3:'tKA[',_0x1a5a1b:0x405,_0x463dcf:0x1d8,_0x571967:0x448,_0x1047f5:0x3f8,_0x336652:0x41b,_0x4598e3:0x409,_0x4d8148:0x497,_0x7d9aec:'jHfv',_0xfdf608:0x45f,_0x510636:'I*pt',_0x473eac:0x4f8,_0x11b32f:0x36f,_0x50f815:0x354,_0x296e66:0x311,_0xf713d1:'!1Ri',_0x567ced:0x41d,_0x8b950f:'$[e3',_0x39d83b:0x2c4,_0x105737:'4V]H',_0x853c67:0x39a,_0x3fbdbc:0x3e9,_0x1c1685:0x3bf,_0x122276:0x232,_0x148892:0x2c7,_0x41c277:0x2b3,_0x464179:0x1ae,_0x4d9a2d:0x252,_0x402239:0x376,_0x43df19:0x2be,_0x2f1603:0x3bd,_0x3c7989:'rJlr',_0x1f46d2:0x401,_0x436cb2:0x35a,_0x3a0778:0x24b,_0x8f7c86:'qGpW',_0x20d03f:0x33b,_0x5cd840:'&SYH',_0x2bcd11:0x423,_0x425851:0x482,_0x299245:'^Zly',_0x1e61b7:0x3d2,_0x203e22:0x269,_0x1733a3:0x1e1,_0x51056f:0x42e,_0x54937f:'[kx*',_0x2e8bae:0x21e,_0x23cc9d:0x307,_0x4c6fd2:0x290,_0x4b4a18:'4Rm^',_0xe75272:0x386,_0x55a16d:0x318,_0x22baba:'39#7',_0x18f682:0x3e3,_0x23f7d9:0x3ae,_0x194a03:'5hL#',_0x189830:0x394,_0x2a0610:0x1e3,_0x4fc52e:0x1dc,_0x531e3c:0x233,_0x24dca3:'u(2q',_0x124a09:0x4ac,_0xacbac3:0x402,_0x121271:'gpqE',_0x2f3cb3:0x4c3,_0x242f6e:0x3e1,_0x1efd8b:0x480,_0x274ed4:0x279,_0x2d1fee:'*hjh',_0x20269e:0x4cf,_0x1c6613:'$ev(',_0x4a58ef:0x43a,_0x4b20e6:0x45d,_0x45f174:0x14c,_0x362f68:0x349,_0x9fc02a:'4OL3',_0x21aa2d:0x2c7,_0x1a95dd:0x22c,_0x37f7e8:0x462,_0x2a39a4:0x505,_0x4b48fa:'cUW7',_0x43280a:0x3de,_0x485b78:0x41f,_0x34a48e:0x130,_0x2e0e2b:0x1da,_0x5a2aec:'WaxN',_0x1944c7:0x283,_0x4205fe:0x39c},_0x2a1b08={_0x325474:0x1e6},_0xb6fe77={_0x5923dc:0xcf},_0x46ef3e={'tlqiP':function(_0x28327f,_0x2b9860){return _0x28327f===_0x2b9860;},'CdgmQ':_0x5e4bd3(0x263,0x1ed,_0x2666d5._0x3ac6d4,_0x2666d5._0xdb08b3),'YlhUu':function(_0x5aabe8){return _0x5aabe8();},'Siufv':function(_0x35c802,_0x252733){return _0x35c802!==_0x252733;},'EEarY':_0x6af80c(0x4c4,_0x2666d5._0x21fcb1,_0x2666d5._0x4d31d8,_0x2666d5._0x567c4a),'fXyxR':_0x5e4bd3(0x24a,_0x2666d5._0x185bca,0x26a,_0x2666d5._0x4485d6),'wbAIs':function(_0x4bff5b,_0x528897){return _0x4bff5b(_0x528897);}},_0x5e90a8=_0x46ef3e[_0x6af80c(0x3b0,0x41e,'u(2q',0x400)](getCredentialsDir),_0x5a6dd9=[];function _0x5e4bd3(_0x363396,_0x5958c6,_0x551e46,_0x2e0733){return _0x43509b(_0x2e0733,_0x5958c6-0x17e,_0x551e46- -_0xb6fe77._0x5923dc,_0x2e0733-0x8d);}const _0x37f609=[];if(!fs[_0x6af80c(0x39f,0x3f3,'C4aM',_0x2666d5._0x3cff4f)](_0x5e90a8)){if(_0x46ef3e[_0x5e4bd3(0x242,_0x2666d5._0x148d00,0x298,'jHfv')](_0x6af80c(_0x2666d5._0x303516,_0x2666d5._0x21c816,_0x2666d5._0x4eb7b9,0x332),_0x46ef3e['EEarY'])){const _0x329e52=_0x2b24d9[_0x5e4bd3(_0x2666d5._0x591256,0x285,0x223,_0x2666d5._0x5971fb)](_0x2d9957,_0x5e8311);if(_0xb98a4f[_0x6af80c(0x3c6,0x38c,_0x2666d5._0x5010c3,_0x2666d5._0x1a5a1b)](_0x329e52))try{_0x34a52f[_0x5e4bd3(0x1bd,0x12e,_0x2666d5._0x463dcf,_0x2666d5._0x5971fb)](_0x329e52),_0x195595[_0x6af80c(_0x2666d5._0x571967,0x442,'QcXb',0x47f)](_0x3b5316),_0x4e1394[_0x6af80c(0x471,_0x2666d5._0x1047f5,'$[e3',_0x2666d5._0x336652)](_0x6af80c(_0x2666d5._0x4598e3,_0x2666d5._0x4d8148,_0x2666d5._0x7d9aec,_0x2666d5._0xfdf608)+_0x5659f8);}catch(_0xaf429f){_0x53eb0d[_0x6af80c(0x4d8,0x4eb,_0x2666d5._0x510636,_0x2666d5._0x473eac)](_0x550105),_0x2c08e4[_0x5e4bd3(_0x2666d5._0x11b32f,_0x2666d5._0x50f815,_0x2666d5._0x296e66,_0x2666d5._0xf713d1)](_0x6af80c(_0x2666d5._0x567ced,0x4ba,_0x2666d5._0x8b950f,0x43a)+'\x20'+_0x405dcb,_0xaf429f);}}else{const _0x3a0bf1={};return _0x3a0bf1[_0x5e4bd3(_0x2666d5._0x39d83b,0x3b1,0x30b,_0x2666d5._0x105737)]=_0x5a6dd9,_0x3a0bf1[_0x6af80c(_0x2666d5._0x853c67,_0x2666d5._0x3fbdbc,_0x2666d5._0x7d9aec,_0x2666d5._0x1c1685)]=_0x37f609,_0x3a0bf1;}}const _0x53a9a=[_0x5e4bd3(_0x2666d5._0x122276,0x31d,_0x2666d5._0x148892,'*hjh')+_0x4eb205+(_0x5e4bd3(_0x2666d5._0x41c277,_0x2666d5._0x464179,_0x2666d5._0x4d9a2d,'jQn*')+_0x5e4bd3(_0x2666d5._0x402239,_0x2666d5._0x43df19,0x2f4,'gpqE'))];for(const _0x10e933 of _0x53a9a){if(_0x46ef3e[_0x6af80c(_0x2666d5._0x2f1603,0x3b7,_0x2666d5._0x3c7989,_0x2666d5._0x1f46d2)](_0x46ef3e[_0x6af80c(0x3cf,0x453,'WaxN',0x3b7)],_0x46ef3e[_0x6af80c(0x3ad,_0x2666d5._0x436cb2,'$[e3',0x361)])){const _0xcfd6e9=path[_0x5e4bd3(0x1cd,0x290,_0x2666d5._0x3a0778,_0x2666d5._0x8f7c86)](_0x5e90a8,_0x10e933);if(fs[_0x6af80c(0x392,_0x2666d5._0x20d03f,_0x2666d5._0x5cd840,0x42f)](_0xcfd6e9))try{fs[_0x6af80c(_0x2666d5._0x2bcd11,_0x2666d5._0x425851,_0x2666d5._0x299245,_0x2666d5._0x1e61b7)](_0xcfd6e9),_0x5a6dd9[_0x5e4bd3(_0x2666d5._0x203e22,0x1f7,_0x2666d5._0x1733a3,_0x2666d5._0xf713d1)](_0x10e933),console[_0x6af80c(0x454,_0x2666d5._0x51056f,_0x2666d5._0x54937f,0x3ac)](_0x5e4bd3(_0x2666d5._0x2e8bae,_0x2666d5._0x23cc9d,_0x2666d5._0x4c6fd2,_0x2666d5._0x4b4a18)+_0x10e933);}catch(_0x135f2e){_0x37f609[_0x5e4bd3(0x324,_0x2666d5._0xe75272,_0x2666d5._0x55a16d,_0x2666d5._0x22baba)](_0x10e933),console[_0x6af80c(_0x2666d5._0x18f682,_0x2666d5._0x23f7d9,_0x2666d5._0x194a03,_0x2666d5._0x189830)](_0x5e4bd3(_0x2666d5._0x2a0610,_0x2666d5._0x4fc52e,_0x2666d5._0x531e3c,_0x2666d5._0x24dca3)+'\x20'+_0x10e933,_0x135f2e);}}else{if(_0x46ef3e[_0x6af80c(_0x2666d5._0x124a09,_0x2666d5._0xacbac3,_0x2666d5._0x121271,_0x2666d5._0x2f3cb3)](typeof _0x38f4ee,_0x46ef3e[_0x6af80c(_0x2666d5._0x242f6e,_0x2666d5._0x1efd8b,_0x2666d5._0xdb08b3,0x44d)]))return _0x46ef3e[_0x5e4bd3(0x1ad,_0x2666d5._0x274ed4,0x222,_0x2666d5._0x2d1fee)](_0x569919,_0x424cc7);return _0x4ff7e6[_0x6af80c(0x4c1,_0x2666d5._0x20269e,_0x2666d5._0x1c6613,_0x2666d5._0x4a58ef)](_0x24873f);}}const _0x5dbd7b=_0x46ef3e[_0x6af80c(_0x2666d5._0x2f3cb3,0x4eb,'&!]^',_0x2666d5._0x4b20e6)](cleanupFeishuDedupForAgent,_0x4eb205);_0x5a6dd9[_0x5e4bd3(0x20a,_0x2666d5._0x45f174,0x1e1,_0x2666d5._0xf713d1)](..._0x5dbd7b[_0x6af80c(0x394,_0x2666d5._0x362f68,_0x2666d5._0x9fc02a,0x375)][_0x5e4bd3(0x1a3,_0x2666d5._0x21aa2d,_0x2666d5._0x1a95dd,'hj9Q')](_0x593765=>_0x6af80c(0x3ea,0x34f,'C3wm',0x444)+_0x593765)),_0x37f609[_0x6af80c(_0x2666d5._0x37f7e8,_0x2666d5._0x2a39a4,_0x2666d5._0x4b48fa,0x48b)](..._0x5dbd7b[_0x6af80c(_0x2666d5._0x43280a,0x418,_0x2666d5._0x105737,_0x2666d5._0x485b78)][_0x5e4bd3(0x1bc,_0x2666d5._0x34a48e,_0x2666d5._0x2e0e2b,_0x2666d5._0x5a2aec)](_0x5e8f29=>_0x6af80c(0x3c8,0x470,'4V]H',0x372)+_0x5e8f29));const _0x46f2f1={};_0x46f2f1[_0x5e4bd3(0x2bf,_0x2666d5._0x1944c7,0x2ac,'u(2q')]=_0x5a6dd9;function _0x6af80c(_0x57a77a,_0x4988f3,_0x58b7af,_0x5737af){return _0x1cd153(_0x57a77a-_0x2a1b08._0x325474,_0x57a77a-0x114,_0x58b7af,_0x5737af-0xea);}return _0x46f2f1[_0x6af80c(_0x2666d5._0x4205fe,0x354,'tKA[',0x2fb)]=_0x37f609,_0x46f2f1;}function cleanupFeishuCredentialsForGroup(_0x41ba35){const _0x58e331={_0x129461:0x183,_0x1c7ce9:0xfd,_0x257be2:'C3wm',_0x817154:0x133,_0x475873:'myqs'},_0x5db775={_0x27c0c7:0x6d,_0x237e51:0x53},_0x576518={_0x28c202:0x4f,_0x5ca8ac:0x1f7,_0x306cb4:0x61},_0x4ef64f={'mDJcu':function(_0x2d7a11){return _0x2d7a11();}},_0x30ceb1=_0x4ef64f['mDJcu'](getCredentialsDir),_0x44e00f=[];function _0x54d719(_0x465a0d,_0x13852a,_0x4f16df,_0x4ac69c){return _0x1cd153(_0x465a0d-_0x576518._0x28c202,_0x465a0d- -_0x576518._0x5ca8ac,_0x13852a,_0x4ac69c-_0x576518._0x306cb4);}function _0x5475c1(_0x41b121,_0x686a6e,_0x21d244,_0x544379){return _0x43509b(_0x21d244,_0x686a6e-_0x5db775._0x27c0c7,_0x686a6e- -0x4a9,_0x544379-_0x5db775._0x237e51);}const _0x458490=[],_0x1dbdef={};return _0x1dbdef[_0x5475c1(-_0x58e331._0x129461,-_0x58e331._0x1c7ce9,_0x58e331._0x257be2,-0x118)]=_0x44e00f,_0x1dbdef[_0x5475c1(-0xc5,-_0x58e331._0x817154,_0x58e331._0x475873,-0x17e)]=_0x458490,_0x1dbdef;}function cleanupAllFeishuCredentials(){const _0x4deaaf={_0x1113d3:0x186,_0xbf2c6d:'pMUT',_0x5c5724:0x203,_0x509701:']kgN',_0x2e7128:0xc9,_0x2e607d:'6Ov[',_0x35b0c6:0x150,_0xcaac22:0xa,_0x575a18:'jG7$',_0x1cde99:0x58,_0x3167e3:0x28,_0x43e222:0x1ca,_0x3a8f29:'J)xr',_0x28877d:0x149,_0x10da4c:0xf7,_0x51c10b:0x2e,_0xe0e7a3:0x7,_0x44e950:0x37,_0x5f3ade:0x41,_0x2d14a8:0x1b6,_0x321c7f:0x208,_0xab6ab6:0x132,_0x1f10ac:0xcf,_0x29b247:'36KA',_0x4a2bcb:0x7a,_0x9718f6:0x6f,_0x38a436:0x2b0,_0x3099fd:0x178,_0xf40ef1:'qGpW',_0x454b6a:0x31,_0x592337:0x1ae,_0x515245:0x22a,_0x241590:0x224,_0x4929c8:0x18f,_0x342ddd:0x3e,_0x2a5c02:'d90e',_0x13a3fc:0x82,_0xdbecee:'$ev(',_0x2e9dc1:0x2ca,_0x211b6f:'OEMe',_0x4e2f29:0x24e,_0xb45593:0x16a,_0x4beb67:0x20b,_0x46bf61:'qWa#',_0x28fdc3:0x22e,_0x248bc0:'%aYr',_0xc4eb16:'&SYH',_0x85f981:0xdd,_0x69e73c:'fA3H',_0x1de6e8:0x173,_0x38507d:0x195,_0x2e4253:'uNK^',_0x34d3d7:0x118,_0x3f4159:0x13b,_0x3e90ff:0x18b,_0x41e839:0x70,_0x3716dd:0x14,_0xb0554e:0x80,_0xbcc303:0x8a,_0x1d21ea:0x168,_0x42b6d4:0xac,_0x323047:0x11e,_0xe26df1:0x100,_0x2b2ba0:0x12f,_0xe2c5b4:0x1cb,_0x5fab2d:0x1cb,_0x1ef935:0x1f,_0x1333fe:0x24,_0x2123cc:0x118,_0x22e0b9:0x1d0,_0x339430:0x13a,_0x5f54e8:0x76,_0x4f4cfa:0x2a,_0x401c25:0x15f,_0x23abb3:0xf3,_0x2070bd:0x20d,_0x533b62:0x1af,_0x27b6f9:'gpqE',_0x26085e:0x1fc,_0x18d466:0x56,_0x5b46fe:0x44,_0x3c9d2a:0x47,_0x567f50:0x143,_0x1fa448:0x162,_0x4671a0:'myqs',_0x5f3b0f:0x1ca,_0x270f18:0xd8,_0x34b77c:'24ET',_0x4a70a5:0x59,_0x2dd55c:0x75,_0x1cf992:0x26,_0x4ec825:0x1de,_0x17b3f1:0x219,_0xef74f5:0x144,_0x51b53b:0xb,_0x382be3:0x21a,_0x3a5788:0x226,_0x27be90:'*hjh',_0x2971fe:0x90,_0x217e38:0x5e,_0x33ab76:0x39,_0x5bd109:0x1f,_0x4536bc:'^Zly',_0x2e06fc:0x2d,_0x34bca6:0x7c,_0xf19090:0x139,_0x2c66d3:'[kx*',_0x13fe72:'4V]H',_0x20d457:0x20e,_0x17f316:0x198,_0x147cf1:0x7e,_0x2f3d35:'OEMe',_0x5465a8:0x104,_0x55df43:0x17e,_0x536b4c:0x1fc,_0x5190a6:'^Zly',_0x35cce2:0x194,_0x56299c:0x14c,_0x34df64:0xff,_0x237d3a:0x290,_0x4ffb04:'6Ov[',_0x443578:0x17e,_0x28eec7:'cUW7',_0x29ec40:0xe4,_0x397383:'I1!c',_0x266fce:0x116,_0x3a9a13:'jQn*',_0x44f041:0x223,_0x1c61ce:0x23f,_0x41fcf9:'C4aM',_0x2f91e0:'qWa#',_0x12daf1:0x40,_0x5ee1b4:0x64,_0x1074d9:0x279,_0x44d079:0x1ec,_0x822b43:'C3wm',_0x282880:0x163,_0x47e530:'rJlr',_0x1fae0d:0x69,_0x1e5f48:0x3c,_0x230a51:'KP1^',_0x5322c2:0xba,_0x78b094:0x95,_0x3fb6eb:0x14,_0x5dfe8f:0x138,_0x3d96dd:0xb8,_0xe12dfd:'$ev(',_0x50c375:'I1!c',_0x5f59f1:'QcXb',_0x12125c:0x175,_0x3dd02a:0x101,_0xb826c9:0xeb,_0x3ddfe2:'Zwcj',_0x20987b:0x242,_0x329df1:0x26c,_0x356f1d:'rJlr',_0xd3ab01:0x211,_0x1cb87d:0x56,_0x1e1bca:'cUW7',_0xc0371c:0x6c,_0x509c86:0x153,_0x4bd998:0xd2,_0x29bb31:0x2f,_0x19f250:0xea,_0x34577c:0xb7,_0x593bba:0x85,_0x41397a:0x1a4,_0x6a2291:'uNK^',_0x4380b5:0x132,_0x3d4154:0x158,_0x353af1:0x84,_0x44e529:0x29f,_0x1ff0ee:0x117,_0x27ec8c:0x19f,_0x16ada3:0x1e1,_0x1cf772:0x1f0,_0x399941:0x1d5,_0x550ab4:0xb0,_0x571155:0x3d},_0x318f19={_0x541410:0x1c6,_0x1f1c5c:0x31d,_0x1026d5:0x164},_0x5b5d42={_0x49fdf1:0x3a,_0xb9b9a8:'gpqE',_0x1b847e:0xc1,_0x5ee416:0xa3,_0x2e4b61:0x2e7},_0x58a8ae={_0x5a7b82:0xaa,_0x177b00:0x119},_0x989ae9={_0x42e2ce:0x339,_0x23ab9e:'C3wm'},_0x286fb0={_0x327574:'cUW7'},_0x385561={_0x35434a:0x3fa,_0x41b469:0x3eb,_0x451004:'5hL#',_0x3e71b6:0xb8,_0x4ff30d:'4cn3',_0x3e6c77:0x113,_0x1224f9:0x50,_0x29d2a9:0xbd,_0x2db11d:'$ev(',_0x140698:0x9e,_0x499474:0x1a,_0x327de5:'^Zly',_0x1a1fb8:0x97,_0x95730c:0x15,_0x1e7227:0x499,_0x1d01ba:0x49d,_0x3d6aed:0x27,_0x412434:'^Zly',_0x66c608:0x7f,_0x3d197f:0x8c,_0x44412a:0x6d,_0x1ac9ee:0x4b6,_0x2f651c:0x27,_0xaf00c5:'^Zly',_0x296fbf:0x70,_0x16f34e:0x96,_0x314de2:0x45c,_0x45c121:'u(2q',_0x2bd42e:0x451,_0x536cdb:'jQn*',_0x47d1e4:0x46d,_0x42d236:'J)xr',_0x1103e4:0x478,_0x37cb43:0xb4,_0x24d6d0:0x71},_0x5da1f8={_0x59ad2a:0x138,_0x1868b4:0x2b2},_0x3f9dce={_0x40ac0a:0x162,_0x5c558b:0x1b9};function _0x143e44(_0x14be7a,_0x3338c9,_0xc5d8da,_0x448d65){return _0x43509b(_0xc5d8da,_0x3338c9-_0x3f9dce._0x40ac0a,_0x448d65- -_0x3f9dce._0x5c558b,_0x448d65-0x195);}const _0x3458f3={'ukPDv':_0x143e44(0x2ab,_0x4deaaf._0x1113d3,_0x4deaaf._0xbf2c6d,_0x4deaaf._0x5c5724),'IRfnk':function(_0x108090,_0xb111b1){return _0x108090!==_0xb111b1;},'jLYuu':_0x143e44(0xe6,0x1a3,_0x4deaaf._0x509701,0x105),'ZwJHi':'UfqwS','LnNdf':function(_0x5df902,_0x2d4e81){return _0x5df902===_0x2d4e81;},'NXSSw':function(_0x1b642b,_0x2aa32d){return _0x1b642b(_0x2aa32d);},'hefeB':function(_0x51765e,_0x5aac7c){return _0x51765e!=_0x5aac7c;},'ayYmR':function(_0x4821ba,_0x15fb71){return _0x4821ba(_0x15fb71);},'tNGXh':function(_0x1eccfc,_0x3c2834){return _0x1eccfc<_0x3c2834;},'jLWaA':_0x143e44(0x101,_0x4deaaf._0x2e7128,_0x4deaaf._0x2e607d,_0x4deaaf._0x35b0c6),'ILOHK':function(_0x340a0b,_0x50b636,_0x32ac55){return _0x340a0b(_0x50b636,_0x32ac55);},'usBJV':_0x295d56(0x16,'%aYr',0x3,-0x3b),'VjEcb':function(_0x5c9721){return _0x5c9721();},'nnYtx':function(_0x2078ca,_0xf550f3){return _0x2078ca!==_0xf550f3;},'VPwNL':_0x295d56(-_0x4deaaf._0xcaac22,_0x4deaaf._0x575a18,_0x4deaaf._0x1cde99,-_0x4deaaf._0x3167e3),'VcKMZ':_0x143e44(_0x4deaaf._0x43e222,0xd5,_0x4deaaf._0x3a8f29,0x152)+_0x143e44(_0x4deaaf._0x28877d,_0x4deaaf._0x10da4c,'myqs',0x125),'VwcvA':function(_0x424cb0,_0x2a78a6){return _0x424cb0!==_0x2a78a6;},'RaxrD':_0x295d56(-0x53,'pMUT',_0x4deaaf._0x51c10b,-_0x4deaaf._0xe0e7a3),'SryYY':_0x295d56(-0x12,'C3wm',-_0x4deaaf._0x44e950,_0x4deaaf._0x5f3ade),'PWMZi':function(_0x58ac5e){return _0x58ac5e();},'iqkfD':function(_0x505ce1,_0x557240){return _0x505ce1!==_0x557240;},'NBfmi':_0x143e44(_0x4deaaf._0x2d14a8,0x278,'myqs',_0x4deaaf._0x321c7f),'paphn':_0x143e44(_0x4deaaf._0xab6ab6,0x113,'d90e',0xfc),'hdYYL':_0x295d56(-_0x4deaaf._0x1f10ac,_0x4deaaf._0x29b247,-_0x4deaaf._0x4a2bcb,-_0x4deaaf._0x9718f6),'vYoBD':_0x143e44(_0x4deaaf._0x38a436,_0x4deaaf._0x3099fd,_0x4deaaf._0xf40ef1,0x205),'AUObA':_0x295d56(0x8e,'u(2q',_0x4deaaf._0x454b6a,0x63),'hnPqz':function(_0x5b53b4,_0x221882){return _0x5b53b4!==_0x221882;},'kkOQb':_0x143e44(_0x4deaaf._0x592337,_0x4deaaf._0x515245,_0x4deaaf._0x509701,_0x4deaaf._0x241590)},_0xc93613=_0x3458f3[_0x143e44(_0x4deaaf._0x4929c8,0x24c,'tKA[',0x1e6)](getCredentialsDir),_0x14a4be=[],_0x5f02a2=[];if(fs[_0x295d56(-_0x4deaaf._0x342ddd,_0x4deaaf._0x2a5c02,-0xbd,-_0x4deaaf._0x13a3fc)](_0xc93613)){if(_0x3458f3[_0x295d56(0x8b,_0x4deaaf._0xdbecee,0x129,0xd3)](_0x3458f3[_0x295d56(0x79,_0x4deaaf._0x2e607d,0xfa,0x7f)],_0x3458f3['VPwNL']))_0x16cb56[_0x143e44(_0x4deaaf._0x2e9dc1,0x282,_0x4deaaf._0x211b6f,_0x4deaaf._0x515245)](_0x338307),_0x29ffcc[_0x143e44(_0x4deaaf._0x4e2f29,_0x4deaaf._0xb45593,'4V]H',0x1b1)](_0x2c5348),_0x4e2993[_0x143e44(0x22d,_0x4deaaf._0x4beb67,_0x4deaaf._0x46bf61,0x235)](_0x143e44(_0x4deaaf._0x28fdc3,0x260,_0x4deaaf._0x248bc0,0x200)+_0x5505b8);else{const _0x49cd90=[_0x3458f3[_0x143e44(0x199,0x15f,_0x4deaaf._0xc4eb16,0x181)],/^feishu-.*-allowFrom\.json$/,/^feishu-allowFrom\.json$/];try{const _0x2c8c85=fs[_0x143e44(_0x4deaaf._0x85f981,0xf2,_0x4deaaf._0x69e73c,_0x4deaaf._0x1de6e8)+'c'](_0xc93613);for(const _0x242b25 of _0x2c8c85){if(_0x3458f3[_0x143e44(_0x4deaaf._0x38507d,0xa5,_0x4deaaf._0x2e4253,0x130)](_0x3458f3[_0x295d56(-0x49,'*hjh',0x9d,0x46)],_0x3458f3[_0x143e44(_0x4deaaf._0x34d3d7,_0x4deaaf._0x3f4159,'pMUT',_0x4deaaf._0x3e90ff)])){var _0x2ab9d7=[];for(var _0x34094c in _0x26ef54)if(_0x1f7131['prototype'][_0x295d56(_0x4deaaf._0x41e839,'fA3H',-_0x4deaaf._0x3716dd,_0x4deaaf._0xb0554e)+_0x295d56(-0x77,_0x4deaaf._0xbf2c6d,-_0x4deaaf._0xbcc303,-_0x4deaaf._0x41e839)]['call'](_0x16d98a,_0x34094c))_0x2ab9d7[_0x2ab9d7['length']]=_0x34094c;return _0x2ab9d7;}else{const _0x1f7204=_0x49cd90[_0x143e44(_0x4deaaf._0x1d21ea,_0x4deaaf._0x42b6d4,_0x4deaaf._0xbf2c6d,_0x4deaaf._0x323047)](_0x47d171=>{if(typeof _0x47d171===_0x3458f3[_0x22efc1(_0x385561._0x35434a,_0x385561._0x41b469,_0x385561._0x451004,0x41b)]){if(_0x3458f3[_0x4dc84a(_0x385561._0x3e71b6,_0x385561._0x4ff30d,_0x385561._0x3e6c77,_0x385561._0x1224f9)](_0x3458f3[_0x4dc84a(_0x385561._0x29d2a9,_0x385561._0x2db11d,0xfb,_0x385561._0x140698)],_0x3458f3[_0x4dc84a(_0x385561._0x499474,_0x385561._0x327de5,_0x385561._0x1a1fb8,_0x385561._0x95730c)]))return _0x3458f3['LnNdf'](_0x242b25,_0x47d171);else try{_0x31b609[_0x22efc1(_0x385561._0x1e7227,0x543,'24ET',_0x385561._0x1d01ba)](_0xe3fb67),_0x2595eb[_0x4dc84a(_0x385561._0x3d6aed,_0x385561._0x412434,-0xa,-_0x385561._0x66c608)](_0x575c46),_0x392e0e[_0x4dc84a(0xd1,'u(2q',0x131,0x8c)](_0x4dc84a(0x7,'u(2q',-_0x385561._0x3d197f,-_0x385561._0x44412a)+_0x22efc1(0x44f,_0x385561._0x1ac9ee,'hj9Q',0x426)+_0x400377);}catch(_0x27a235){_0x28cdd6[_0x4dc84a(_0x385561._0x2f651c,_0x385561._0xaf00c5,-_0x385561._0x296fbf,_0x385561._0x16f34e)](_0x5f22a2),_0x39e431[_0x22efc1(0x3cb,_0x385561._0x314de2,_0x385561._0x45c121,0x44e)](_0x22efc1(_0x385561._0x2bd42e,0x4e6,_0x385561._0x536cdb,0x49f)+_0x22efc1(0x409,_0x385561._0x47d1e4,_0x385561._0x42d236,_0x385561._0x1103e4)+_0xcd7f0c,_0x27a235);}}function _0x22efc1(_0x9f9615,_0x283263,_0x1f9f6f,_0x5136b3){return _0x143e44(_0x9f9615-0x1c4,_0x283263-_0x5da1f8._0x59ad2a,_0x1f9f6f,_0x5136b3-_0x5da1f8._0x1868b4);}function _0x4dc84a(_0x344689,_0x1fea32,_0x9fbda9,_0x3138ae){return _0x295d56(_0x344689-0x83,_0x1fea32,_0x9fbda9-0xf7,_0x344689-0x5e);}return _0x47d171[_0x4dc84a(_0x385561._0x37cb43,'&SYH',_0x385561._0x24d6d0,0x11c)](_0x242b25);});if(_0x1f7204){const _0x169e58=path[_0x143e44(_0x4deaaf._0xe26df1,0xe0,'FVJm',0x13b)](_0xc93613,_0x242b25);try{fs[_0x143e44(_0x4deaaf._0x2b2ba0,0x24f,'I1!c',_0x4deaaf._0xe2c5b4)](_0x169e58),_0x14a4be[_0x143e44(0x220,_0x4deaaf._0x5fab2d,'jQn*',0x1a4)](_0x242b25),console[_0x295d56(_0x4deaaf._0x1ef935,']kgN',0x53,_0x4deaaf._0x1333fe)](_0x143e44(_0x4deaaf._0x2d14a8,_0x4deaaf._0x2e7128,'tKA[',_0x4deaaf._0x2123cc)+_0x242b25);}catch(_0xe4a75a){if(_0x3458f3[_0x143e44(0xc0,_0x4deaaf._0x22e0b9,'cUW7',_0x4deaaf._0x339430)](_0x3458f3[_0x295d56(-0x38,'*hjh',-_0x4deaaf._0x5f54e8,_0x4deaaf._0x4f4cfa)],_0x3458f3[_0x143e44(0xdf,_0x4deaaf._0x401c25,'rJlr',_0x4deaaf._0x23abb3)])){const _0x4c2a7e={_0x18a7cd:0x239,_0x47f2fe:'24ET',_0x564807:0x332,_0x45a716:0x418,_0x18127a:0x351,_0x544f82:0x302,_0x3cc005:0x395,_0x44798c:0x188,_0x13afaa:'$[e3',_0x4c94cb:0x10b,_0x1448cd:'&!]^',_0x2a2295:0xaa,_0x3dd45e:0x78,_0x5a7692:0x2b3,_0x58533b:0x2c1,_0x55de8f:0x169,_0xcec4b0:'FVJm',_0x39e675:0x145},_0x28e3c7={_0x2451f7:0x1f,_0x409fcb:0x183},_0x35085b={_0x4d0403:0x1ab,_0x458da5:0x209,_0x1ac482:'myqs',_0x5c3284:0x154,_0x5a7dec:0x1a3,_0x5983d6:'C4aM',_0x238859:0x171,_0x22eb14:0x175,_0xadf506:0x1d2,_0x1dcef6:'hj9Q'},_0x4e0e4e={_0x29dabc:0x1c8,_0x2b2282:0xc9},_0x2c289c={_0x20c25c:0x1aa,_0x3f6100:0x38a},_0x4ef52b={_0x13b4cc:0x526,_0x8df96a:'Zwcj'},_0x34f096={_0x2fdff4:0x2c7,_0x8264be:0x31a,_0x6ec139:'36KA',_0x444e85:0x3a1},_0x2c39b6={'qllIp':function(_0x53ecba,_0x5b1c41){const _0x24d46f={_0x27ce80:0x1ca,_0x350d27:0x3d1};function _0x60fb32(_0x9e49d8,_0x157db9,_0x5a3a55,_0x50dfa2){return _0x295d56(_0x9e49d8-0x101,_0x9e49d8,_0x5a3a55-_0x24d46f._0x27ce80,_0x5a3a55-_0x24d46f._0x350d27);}return _0x3458f3[_0x60fb32(_0x286fb0._0x327574,0x493,0x440,0x465)](_0x53ecba,_0x5b1c41);},'zlDGd':function(_0x5b26bf,_0x3fd52b){const _0x1e1e6d={_0x468602:0x11f};function _0x77973c(_0x58af88,_0x2e03d1,_0x51766f,_0x1e9a50){return _0x143e44(_0x58af88-_0x1e1e6d._0x468602,_0x2e03d1-0x160,_0x51766f,_0x2e03d1-0x1b8);}return _0x3458f3[_0x77973c(_0x34f096._0x2fdff4,_0x34f096._0x8264be,_0x34f096._0x6ec139,_0x34f096._0x444e85)](_0x5b26bf,_0x3fd52b);},'YkLkj':function(_0x239438,_0x4a5de0){const _0x39b42b={_0x2ee1fa:0x1ac};function _0x13542b(_0x42dbfe,_0x38c37b,_0x6cfbc6,_0x6b7c11){return _0x295d56(_0x42dbfe-_0x39b42b._0x2ee1fa,_0x6cfbc6,_0x6cfbc6-0x13c,_0x38c37b-0x5c8);}return _0x3458f3[_0x13542b(_0x4ef52b._0x13b4cc,0x5b5,_0x4ef52b._0x8df96a,0x537)](_0x239438,_0x4a5de0);},'gzSIe':function(_0x11c530,_0x5d74bc){function _0x50fcee(_0x4c58c2,_0x4fd1ee,_0x531404,_0x378224){return _0x295d56(_0x4c58c2-_0x2c289c._0x20c25c,_0x378224,_0x531404-0xb4,_0x4c58c2-_0x2c289c._0x3f6100);}return _0x3458f3[_0x50fcee(0x36e,0x415,_0x989ae9._0x42e2ce,_0x989ae9._0x23ab9e)](_0x11c530,_0x5d74bc);},'BnXVX':_0x3458f3[_0x143e44(0x29d,0x18a,'J)xr',_0x4deaaf._0x2070bd)],'QMXia':function(_0x588d54,_0x569d53,_0x48cbea){function _0x434366(_0x3f4ad6,_0x44d8ec,_0xa0b07b,_0x478b28){return _0x295d56(_0x3f4ad6-0x2,_0x478b28,_0xa0b07b-_0x4e0e4e._0x29dabc,_0x44d8ec- -_0x4e0e4e._0x2b2282);}return _0x3458f3[_0x434366(-0x104,-_0x58a8ae._0x5a7b82,-_0x58a8ae._0x177b00,'qWa#')](_0x588d54,_0x569d53,_0x48cbea);}};var _0x58c82c=function(_0x1b2497){const _0xc1ae56={_0x127e4e:0x1c3,_0x129425:0x10},_0x140404={_0x260cc5:0x89},_0x5bc8fe={_0xfc5e83:0xc6};_0x58c82c=_0x1c3cce[_0x4db154(-_0x5b5d42._0x49fdf1,-0x10,_0x5b5d42._0xb9b9a8,-_0x5b5d42._0x1b847e)+_0x4db154(-0x5b,-_0x5b5d42._0x5ee416,'$ev(',0x32)]||function(_0x508bf5){function _0x50e079(_0x4a06a3,_0x43000d,_0x38cbc5,_0x2b9008){return _0x4db154(_0x4a06a3- -0x1a3,_0x43000d-0x15a,_0x2b9008,_0x2b9008-_0x5bc8fe._0xfc5e83);}var _0x93d390=[];for(var _0x141b5e in _0x508bf5)if(_0x383377[_0x50e079(-_0x35085b._0x4d0403,-0x229,-_0x35085b._0x458da5,_0x35085b._0x1ac482)][_0x50e079(-_0x35085b._0x5c3284,-_0x35085b._0x5a7dec,-0x15d,_0x35085b._0x5983d6)+_0x50e079(-_0x35085b._0x238859,-_0x35085b._0x22eb14,-0x10a,'WaxN')][_0x50e079(-0x1f9,-_0x35085b._0xadf506,-0x28f,'36KA')](_0x508bf5,_0x141b5e))_0x93d390[_0x93d390[_0x50e079(-0x159,-0x147,-0x167,_0x35085b._0x1dcef6)]]=_0x141b5e;function _0x2d2bb3(_0x3c53cc,_0x538b56,_0x251d23,_0x29009f){return _0x4db154(_0x29009f- -0xb9,_0x538b56-0x1e0,_0x251d23,_0x29009f-0x1a0);}return _0x93d390;};function _0x31ba12(_0xdee410,_0x5e147a,_0x5b8129,_0x568d91){return _0x295d56(_0xdee410-0x115,_0xdee410,_0x5b8129-_0x140404._0x260cc5,_0x568d91-0x2ff);}function _0x4db154(_0x446776,_0x24ac0e,_0x74fcca,_0x49f24c){return _0x295d56(_0x446776-_0xc1ae56._0x127e4e,_0x74fcca,_0x74fcca-0x32,_0x446776-_0xc1ae56._0x129425);}return _0x3458f3[_0x31ba12('FVJm',_0x5b5d42._0x2e4b61,0x315,0x287)](_0x58c82c,_0x1b2497);};return function(_0x2d238d){const _0x337629={_0x52950d:0x2};if(_0x2d238d&&_0x2d238d[_0x30389a(_0x4c2a7e._0x18a7cd,_0x4c2a7e._0x47f2fe,_0x4c2a7e._0x564807,0x2a2)])return _0x2d238d;function _0x30389a(_0x1b8a1d,_0x5ccd4d,_0x5569e5,_0x45c282){return _0x143e44(_0x1b8a1d-_0x28e3c7._0x2451f7,_0x5ccd4d-_0x28e3c7._0x409fcb,_0x5ccd4d,_0x45c282-0x1a1);}var _0x4a2f75={};if(_0x2c39b6[_0x30389a(_0x4c2a7e._0x45a716,'pMUT',_0x4c2a7e._0x18127a,0x3c9)](_0x2d238d,null)){for(var _0x4ad482=_0x2c39b6[_0x30389a(_0x4c2a7e._0x544f82,'jG7$',_0x4c2a7e._0x3cc005,0x399)](_0x58c82c,_0x2d238d),_0x4abc5b=0x2cc*-0x1+0x217d+-0x1eb1;_0x2c39b6[_0x438b39(-_0x4c2a7e._0x44798c,_0x4c2a7e._0x13afaa,-0x18c,-0x107)](_0x4abc5b,_0x4ad482['length']);_0x4abc5b++)if(_0x2c39b6[_0x438b39(-_0x4c2a7e._0x4c94cb,_0x4c2a7e._0x1448cd,-_0x4c2a7e._0x2a2295,-_0x4c2a7e._0x3dd45e)](_0x4ad482[_0x4abc5b],_0x2c39b6[_0x30389a(_0x4c2a7e._0x5a7692,'qGpW',_0x4c2a7e._0x58533b,0x31e)]))_0x38eefb(_0x4a2f75,_0x2d238d,_0x4ad482[_0x4abc5b]);}_0x2c39b6[_0x438b39(-_0x4c2a7e._0x55de8f,_0x4c2a7e._0xcec4b0,-_0x4c2a7e._0x39e675,-0xd3)](_0x137588,_0x4a2f75,_0x2d238d);function _0x438b39(_0x1b58c2,_0x36ef44,_0x10ce1a,_0x4724a4){return _0x143e44(_0x1b58c2-0x154,_0x36ef44-_0x337629._0x52950d,_0x36ef44,_0x10ce1a- -0x292);}return _0x4a2f75;};}else _0x5f02a2[_0x143e44(_0x4deaaf._0x533b62,0x1b8,_0x4deaaf._0x27b6f9,_0x4deaaf._0x26085e)](_0x242b25),console['warn'](_0x295d56(_0x4deaaf._0x18d466,'hj9Q',_0x4deaaf._0x5b46fe,_0x4deaaf._0x3c9d2a)+'\x20'+_0x242b25,_0xe4a75a);}}}}}catch(_0x4eeff0){console[_0x143e44(_0x4deaaf._0x567f50,_0x4deaaf._0x1fa448,_0x4deaaf._0x4671a0,_0x4deaaf._0x5f3b0f)](_0x295d56(_0x4deaaf._0x270f18,_0x4deaaf._0x34b77c,0xaa,0x36)+_0x295d56(-_0x4deaaf._0x4a70a5,_0x4deaaf._0x2a5c02,_0x4deaaf._0x2dd55c,_0x4deaaf._0x1cf992),_0x4eeff0);}}}const _0x26b9ed=_0x3458f3[_0x143e44(_0x4deaaf._0x4ec825,0x18e,'I1!c',_0x4deaaf._0x17b3f1)](getFeishuDedupDir);if(fs[_0x143e44(0xbb,0x15e,'fA3H',_0x4deaaf._0xef74f5)](_0x26b9ed)){if(_0x3458f3[_0x295d56(0x1c,'&!]^',_0x4deaaf._0x51b53b,0x28)](_0x3458f3[_0x143e44(_0x4deaaf._0x382be3,_0x4deaaf._0x3a5788,_0x4deaaf._0x27be90,0x223)],_0x3458f3[_0x295d56(_0x4deaaf._0x2971fe,'J)xr',-_0x4deaaf._0x217e38,_0x4deaaf._0x33ab76)]))try{const _0x1a2369=fs[_0x295d56(_0x4deaaf._0x5bd109,_0x4deaaf._0x4536bc,_0x4deaaf._0x2e06fc,_0x4deaaf._0x34bca6)+'c'](_0x26b9ed);for(const _0xa78c4f of _0x1a2369){if(_0xa78c4f[_0x143e44(0xe0,_0x4deaaf._0xf19090,_0x4deaaf._0x2c66d3,0x187)](_0x3458f3[_0x143e44(0x144,0x1a3,_0x4deaaf._0x13fe72,0x190)])){if(_0x3458f3[_0x143e44(0xf0,_0x4deaaf._0x20d457,'39#7',_0x4deaaf._0x17f316)]===_0x3458f3[_0x143e44(_0x4deaaf._0x147cf1,0x78,_0x4deaaf._0x2f3d35,_0x4deaaf._0x5465a8)]){const _0x589161=path[_0x143e44(_0x4deaaf._0x55df43,_0x4deaaf._0x536b4c,_0x4deaaf._0x5190a6,_0x4deaaf._0x35cce2)](_0x26b9ed,_0xa78c4f);try{fs[_0x143e44(0x16a,_0x4deaaf._0x56299c,'uNK^',_0x4deaaf._0x34df64)](_0x589161),_0x14a4be[_0x143e44(_0x4deaaf._0x237d3a,0x161,_0x4deaaf._0x4ffb04,0x1e7)](_0x143e44(_0x4deaaf._0x443578,0x15c,_0x4deaaf._0x28eec7,_0x4deaaf._0x29ec40)+_0xa78c4f),console[_0x143e44(0x230,0x1f2,'J)xr',0x206)](_0x143e44(0xd5,0xe7,_0x4deaaf._0x397383,_0x4deaaf._0x55df43)+'文件:\x20'+_0xa78c4f);}catch(_0x3e5d74){if(_0x3458f3[_0x143e44(0xe2,0x80,'^Zly',_0x4deaaf._0x266fce)](_0x3458f3[_0x295d56(-0x42,_0x4deaaf._0x3a9a13,-0x34,-0x19)],_0x3458f3[_0x143e44(_0x4deaaf._0x44f041,_0x4deaaf._0x1c61ce,_0x4deaaf._0x41fcf9,0x1b9)])){if(_0x10c87f[_0x295d56(-0xc7,_0x4deaaf._0x2f91e0,_0x4deaaf._0x3167e3,-_0x4deaaf._0x12daf1)](_0x3458f3[_0x295d56(_0x4deaaf._0x5ee1b4,_0x4deaaf._0xdbecee,-0x2c,0x77)])){const _0x596a96=_0x456696[_0x143e44(_0x4deaaf._0x1074d9,0x219,'Z@P&',_0x4deaaf._0x44d079)](_0x5e2df0,_0x3f1e14);try{_0x52b63b[_0x143e44(0xdc,0x1c1,_0x4deaaf._0x822b43,_0x4deaaf._0x282880)](_0x596a96),_0x586c3f[_0x295d56(_0x4deaaf._0x12daf1,_0x4deaaf._0x47e530,_0x4deaaf._0x1fae0d,0xad)](_0x295d56(0x1,_0x4deaaf._0x47e530,-_0x4deaaf._0x1e5f48,-0x5a)+_0x36e3bd),_0x4395e9[_0x295d56(0x116,_0x4deaaf._0x230a51,_0x4deaaf._0x5322c2,_0x4deaaf._0x78b094)](_0x295d56(0x5e,'jG7$',-0x5d,_0x4deaaf._0x3fb6eb)+_0x143e44(0x123,_0x4deaaf._0x5dfe8f,'5hL#',0x158)+_0x2f1ea5);}catch(_0x4e8035){_0x58888b[_0x143e44(0xc1,_0x4deaaf._0x3d96dd,_0x4deaaf._0xe12dfd,0x140)]('dedup/'+_0x3f61a0),_0x368eca[_0x143e44(0xae,0x101,_0x4deaaf._0x50c375,0x123)](_0x143e44(0x131,0x1bd,_0x4deaaf._0x5f59f1,_0x4deaaf._0x12125c)+_0x143e44(_0x4deaaf._0x3dd02a,_0x4deaaf._0xb826c9,_0x4deaaf._0x3ddfe2,0x114)+_0x19b30d,_0x4e8035);}}}else _0x5f02a2[_0x143e44(_0x4deaaf._0x20987b,_0x4deaaf._0x329df1,_0x4deaaf._0x356f1d,_0x4deaaf._0xd3ab01)](_0x143e44(_0x4deaaf._0x1cb87d,0x7d,_0x4deaaf._0x1e1bca,0xe4)+_0xa78c4f),console[_0x295d56(-_0x4deaaf._0xcaac22,_0x4deaaf._0x1e1bca,_0x4deaaf._0xc0371c,-0x16)]('[清理]\x20删除去重文'+_0x295d56(0x135,'%aYr',_0x4deaaf._0x509c86,_0x4deaaf._0x4bd998)+_0xa78c4f,_0x3e5d74);}}else _0x2f91c9[_0x3458f3[_0x295d56(-_0x4deaaf._0x29bb31,_0x4deaaf._0x2f3d35,-0x3,0xd)]]=_0x4fb8a6;}}}catch(_0xe4fcef){if(_0x3458f3[_0x295d56(_0x4deaaf._0x19f250,_0x4deaaf._0x29b247,_0x4deaaf._0x34577c,_0x4deaaf._0x593bba)](_0x3458f3[_0x143e44(0xc7,_0x4deaaf._0x401c25,_0x4deaaf._0x2e607d,0x172)],_0x3458f3['kkOQb']))return _0x3458f3['LnNdf'](_0x4ca87b,_0x288eb2);else console[_0x143e44(0x154,_0x4deaaf._0x41397a,_0x4deaaf._0x6a2291,_0x4deaaf._0x4380b5)](_0x143e44(_0x4deaaf._0x3d4154,_0x4deaaf._0x353af1,_0x4deaaf._0x211b6f,0x12f)+_0x143e44(0x25c,_0x4deaaf._0x44e529,_0x4deaaf._0x356f1d,0x1f5),_0xe4fcef);}else _0x44c1f8[_0x295d56(0x5f,'*hjh',_0x4deaaf._0x1ff0ee,_0x4deaaf._0x5322c2)](_0x30be0c),_0x1e4e8e[_0x143e44(_0x4deaaf._0x27ec8c,0x245,'%aYr',_0x4deaaf._0x16ada3)](_0x1f17a3),_0x5f4f98['log'](_0x143e44(_0x4deaaf._0x1cf772,0x14d,'4OL3',_0x4deaaf._0x399941)+_0x512585);}const _0x1d312f={};function _0x295d56(_0x123bf9,_0x1e33e9,_0x5578b7,_0x5810a5){return _0x43509b(_0x1e33e9,_0x1e33e9-_0x318f19._0x541410,_0x5810a5- -_0x318f19._0x1f1c5c,_0x5810a5-_0x318f19._0x1026d5);}return _0x1d312f['deleted']=_0x14a4be,_0x1d312f[_0x295d56(0x6d,'rJlr',_0x4deaaf._0x550ab4,_0x4deaaf._0x571155)]=_0x5f02a2,_0x1d312f;}function cleanupFeishuCredentialsForAgents(_0x3797a7){const _0x1a5fda={_0x3e6cfe:'39#7',_0x25ff97:0x452,_0x14dd15:0x675,_0x19b4bf:'qWa#',_0x6fa44e:0x469,_0x2125f0:0x46a,_0x28c691:'I1!c',_0x34b35b:0x498,_0x303df2:0x5da,_0x2784f7:0x5ba,_0x1b2549:'WaxN',_0x3c985a:0x60d,_0x2cdd03:'KP1^',_0x185b13:0x528,_0x4704ca:0x591,_0xcfc17a:'jQn*',_0x3c8a81:0x5f9,_0x50ee7d:0x696,_0x196050:'Z@P&',_0x4a7919:0x5ee,_0x494ace:'tKA[',_0x531a27:0x43f,_0x1d444f:'jHfv',_0x5ecd9a:0x52d,_0x26c8e5:0x4b3,_0x3860a4:0x53b,_0x1cdf41:0x4e9,_0x1f0bd5:'*hjh',_0x21b74c:0x4b9},_0x216864={_0x2a0714:0x87,_0x1e3d54:0x7f},_0x56d745={_0x472d12:0x9c,_0xe0f7bc:0x19e,_0x315243:0x181},_0x268f8f={'gkCri':_0x13fd57(0x507,_0x1a5fda._0x3e6cfe,_0x1a5fda._0x25ff97,0x46e),'tMXVV':_0x202d99(0x632,_0x1a5fda._0x14dd15,_0x1a5fda._0x19b4bf,0x5c4),'tHMgM':'fiKlp','ggpPX':function(_0x481964,_0x23238a){return _0x481964(_0x23238a);}};function _0x13fd57(_0x102c43,_0x1dc9a6,_0x3237c3,_0x83adbc){return _0x1cd153(_0x102c43-_0x56d745._0x472d12,_0x83adbc-_0x56d745._0xe0f7bc,_0x1dc9a6,_0x83adbc-_0x56d745._0x315243);}const _0x45115c=[],_0x381afb=[];for(const _0x1eb116 of _0x3797a7){if(_0x268f8f[_0x13fd57(_0x1a5fda._0x6fa44e,'^Zly',0x472,_0x1a5fda._0x2125f0)]===_0x13fd57(0x45b,_0x1a5fda._0x28c691,_0x1a5fda._0x34b35b,0x4c8))return _0x2c8067[_0x202d99(_0x1a5fda._0x303df2,_0x1a5fda._0x2784f7,_0x1a5fda._0x1b2549,_0x1a5fda._0x3c985a)](_0x5e8fae,_0x268f8f[_0x13fd57(0x524,_0x1a5fda._0x2cdd03,0x4b9,_0x1a5fda._0x185b13)],_0x268f8f[_0x13fd57(0x58b,'uNK^',0x5ba,0x566)]);else{const _0x3d956f=_0x268f8f[_0x202d99(_0x1a5fda._0x4704ca,0x543,_0x1a5fda._0xcfc17a,0x50b)](cleanupFeishuCredentialsForAgent,_0x1eb116);_0x45115c[_0x202d99(_0x1a5fda._0x3c8a81,_0x1a5fda._0x50ee7d,_0x1a5fda._0x196050,_0x1a5fda._0x4a7919)](..._0x3d956f[_0x13fd57(0x43f,_0x1a5fda._0x494ace,0x3ae,_0x1a5fda._0x531a27)]),_0x381afb['push'](..._0x3d956f[_0x13fd57(0x3ef,_0x1a5fda._0x1d444f,0x43b,0x424)]);}}function _0x202d99(_0x1cb0fa,_0x5e4beb,_0x1cab58,_0x1a72ad){return _0x1cd153(_0x1cb0fa-_0x216864._0x2a0714,_0x1cb0fa-0x2e6,_0x1cab58,_0x1a72ad-_0x216864._0x1e3d54);}const _0x298cf8={};return _0x298cf8[_0x13fd57(_0x1a5fda._0x5ecd9a,'36KA',_0x1a5fda._0x26c8e5,_0x1a5fda._0x3860a4)]=_0x45115c,_0x298cf8[_0x13fd57(_0x1a5fda._0x1cdf41,_0x1a5fda._0x1f0bd5,_0x1a5fda._0x21b74c,0x543)]=_0x381afb,_0x298cf8;}function _0x21c3(){const _0x471b13=['j1pdT8kLCtut','uLCqiCkh','W4lcP8o+W7/dN3CfWR5rWRK','W5ddUWrWhq','lCoAlLdcPa','W6NMUjFNK7iSWQBLTA3LIR7PM5dcScu','WRbuW5Lmlmo1D8oiW4vA','W5pdNWq','i3q0WQj/','qCkiWO8nWRS','WRHQW7fziW','otddTc5u','W5LqoSobDbu','CfZdPqjmvXG','W6ijW5zFiSoiB8oX','W5tcQ8oag8k5','p3S4WQLPkSomWPyhva','WQyeCCkh','iGiBWQ0ZW4BcJYVcVNO','vLimh8kL','vCo+kmobz0BcRSofgmkJ','W6hdHSkwc8kmdSkaBrddLa','W4BdL3FcT2O','ChCioq','WOralmo3ra','vY8lkse','W7O7WOBcQ8kSWPi','rSoeWPCtqLqOWReYgq','pSoLw20','WOJMUl7NKRf3zEwkSUMzPUwmGEMfQEAwVW','naqBWOmKW5hcIIZcVgS','W5Dxi8opxW','W6JdHaLzla','FCkuWRZcGwO','vs4YnG','D1tdRmkHsCkevG','zoA5HoErNqv75BAZ5yQ76zMeW48h','5BYI5AAL6lwmWQu','ba9wtCkX','WOnPW4LjW7m','ovRdLCkdya','DSkqWPG','n8oMv2lcRr3cLHxdLCkb','DftdTmkcwmkiqs8CW6W','BSodhhe','WRStgua0W7RcV3WDW5W','xSoZpSoVFL3cJSoXeSk6','ASoAhNddOG','WO3MUBtNKitcSSky5BAV5yMm6zUFW4VcPa','hCoxW58noY08WPr4WP8','W5JdO1LHiNi6WOzRhtW','W7yFW4JdQSkQW4G','wYq3ps8KW78','WOiokumd','W7hcL8o8','5Psi5lISaJq','oWJcMZdcTG','wCofWPiu','mmoChhBdNa','W5RdVmkFhCk1bmka','CfJdPr1brG','W7FcTmomW63dKW','eSotm2JcOa','dHhcMqBcIW','W5VdT8kgfCkKe8kfEHddLa','b8oHgSo3','W7VdOmkxh8kV','W7uSWO3cRCkSWP8','ocBdHra','W7tcMCo3W7/dLhCtWOPAWRK','WPrypSo3uG','fCoeu0NcHG','smkLWRBcQKK','W79sWOhcVCku','WQVdLmoxxCko','WP7dPSkKW4Su','5lMo5AAV6lwhl38','W5NdVmkhn8k2d8k0AHpdGq','y1FdObHkswBdSNPq','F8knWOVcIKFdJ8k3vapcQq','lmkgwYNcISk5AL7dMCokWQC','WRujjtGOFCkL','W4ZcG8oRsuvoW58oxdK','whVdQHXn','WRRdHmo+xSkh','WRDEW5flmmo+DG','lfWPWOrA','ffqqiG','W7qhW5BdISk0','W5HxWQpcImkj','W4WAWQhdH1tdKN7dKCk4WO0','W7/dMaNdNW','aCkAW49kfeWwWQyPe8ke','WQKjmsbUWP3dM8koW5GzgCoc','W6yRWPVcPa','WRRcICkbWOldHa','W77dMvVcUM8','bmo8hmoCWQ03W4PGW69I','eheYhmkb','W7JcU0P6','W5eBWQddI17dKf8','W6pcTv8','5lIG5Awa6lsNW5xcMa','iI3dRXb6','rSkKw8oTWRO8W6vHW5G','WPjcqsJdPSkKWOWqAmoL','W4DjbmocFa','W5ZdUWzGl8ku','C1tdHZBdIYddMSkFW4NdLa','WRWAgfqQ','W5z3WPGuW7ldUSo6','W5H9WP0F','uN/dOCkoEa','pCoRxNdcHqFcLbldL8kn','WRLuW55e','nmoQW7Grpa','zYVdMCkUhMe','WORdVmo5DSkZWP7cVmk6W5lcSa','W7BdNfVcUg1w','bCoqmq','W6pMUPVNKAriF+wkM+MBOowMRoI0Gce','WPddJ8klW4SgW47dIYzWW5C','jmoMemogWOy','W6azW47dUG','scy8eYm','W5RcK8o3EunyW6Gsxc4','e0arja','W5X9WP/cLSk/','kthdGH1mE8oxW7Wv','lCohWPpcQKFdMmkczW','WPhdKSkeW5KhW5hdRa','WQnXzZBdOW','W4FcLmoOe8kpW4WKeCk6W6W','xca3na','WRVcQSk1WR3dVhPSmcjn','WOVcJriSqG','Bmo1WP4jyvaFWR0WhW','W7/cU0X8','W6BdNaTOW5G','W5eqWPtdT3y','WQBdL8ogrCkt','WRtcVIC/EG','sIFdS8kUkG','W7tdMf7cSxXxBq','W4TGWQRcJSktcSofW7FdP8o3','e8oXdCoQWQ99','tSoRkCoNFK8','W4FcLmoIh8kvW4Wq','W6tMURxNKAvGWO3LTP7LIPdPMAJLJ7BPH4C','W7FdMeBcM3HxzZldQmkU','gJFcIcC','a8o4gmo2WO8','cSkNn8oxvfRcUmoN','WRrCW4D6hq','W4RdLa1oW54','5lMj5AEA6lA7mbC','W6tdPeFcMu8','axaxWQLR','W6JcNmo1W7/dOq','W4VMURJNKltcIsJLT4dLIkNPMjxcVSoV','W7xdHvVcP3XbwGJdQSkS','ECotg1BdHCkKv0ldG8ot','WRujlsGSnW','WQhcIGpdRxbQBIJdGSkJ','lM0lnmkhW6WcWQ0G','W7yeW5FdPG','dxbIygTZW5buWRr1kdG','f2KtWOvK','zdJdHmk7','dSoPohVcGG','W5HKWR7cIq','W6RcTfXNg8kccb0','dsZcKJNdISoxW5RdKw4','cIhcKI3cLW','WRKnoHiRDSkrjSkpW50','W5RcJ8oRENncW4K','W7GBCCkaW5y','WQxcIWddOtP8yYBdTmkHWQi','ngtdVSkRCa','WOvBfSosrmkV','pwSQWQu','Amoxa2ZdLW','W6lMUBhNK4VdSXRORylLJ7VLJjpPHjVNMia','WPJcS8k6WQldKW','WRCnide5Fa','WQVcTSkRWRVdOa','ovyuWQPa','FSo7pmoJqq','W5hdUmoMCmkZ','W6HqENG','W7a7WOhcV8kWWO8','yLxdVrH0','WPxdVCo8Cq','W67dQqfJhG','emoDW4iS','oxxdMmkoAa','D1tdPmkXtCoo','W4RcHCoYy1LaW6Gsxc4','fUA4M+ErN8kqlEIUUownQownVUMgS+EBLa','pdBdHqW','gmoflNe','dbDq','WPhdNXnyW4mpW5XToG','wmoNmSo9zfVcRCoogCkW','raJcLq','sXxcL8k7W73cPYbuWPTI','W53dSbz8pSoxW7C','wMpdPSkQvG','W6tMURxNKAvGWO3LIyZPM5tLPl3OTAGW','cSohW5GQ','WQvIW5HOaq','dZFcKYRcI8ojW5ddJMu','k8o/W7mRkG','W4/dVXb7','aCkzW41jB3S/WPKMlG','zgCDmmkCW6mA','W4VcPCozuL8','W7VcNCoYW7/dUM1mWRTCWRu','CvrxW7zKWOtcGqhcG15rW5u','WO3MUBtNKitcSSky5BAV5yMm6zUF5y2k6ywj','y3aEmmkDW6O','tWlcHG','rCkGWPZcGwBdI8kWuJpcQq','5Psy5lUhmJy','d8oCW4CRjsmbWQ56WP0','WONcSaCXzfK0','aSoEkg0','wUA5J+EsTSkFw+w3T+wjQUMBJX7dQq','W4mbW4NdKmk3','dmouj2RcVLvMtmoOW5G','WPnpdmow','WQDUW5RcVSk9WPtcTdPE','WRiqfu8','xJGcnqK','zL/dRmkTu8kkyt4hW4S','ECotg1RdGmkVy1xdGSox','W4NcQSkHxCk6WPNcT8kwW6q','W4RdNWvWmCop','FL/dVbnQ','W75AW5TgkSoLrmoiW4Tv','W6PAwfiQ','BSoeag3dNCk+FKddIq','W6yRWQtdG0RdLL/dNmkfWPO','najgD8kl','WOBdJ8kXW4KW','fXDmwSkx','WRXLdmoBvCkgrSokFtW','WRBMU5dNKA0jmowiNoMyTowNOoI0VKK','W5m4WPRdJ3S','A2K0amkl','t8o6oSoQDehcJmoKdSk9','5PEM5lQagG8','W6xMUPZNK7uLW6hLIyhPMOdLJQpPHRhMLly','oha1WQrJkmoTWRWqwq','WRTtW496iq','goA4S+EsL8kzjow2Q+wjH+MAOUwmTUMgLa','smkbWP1XcaWwWOzUWQO','jmo/qwS','W4VMURJNKltcIsJLIjlPMA3LJ4RPHyNMLyG','W53dRbb6lq','WPOrjhCc','W7tMUidNK4RcUSoD5BAD5yQ16zUH5yYZ6ywk','WQbtW4jUimo2D8okW6jx','umoqWQiWFG','qe/dPqJdPq','FCooWO8kxG','W4BcLNDCbW','W6jiWP89W7u','kWXuBSk7','dCodnxO','iGikWRmbW53cMIe','WPpdVCoY','yMZdNWPMF8oc','5B6I5Asl6lsnyq','W5CkW4ldSCka','WOPlfmoyzq','uqrBDmoEwbBdQJNdR8kFoW','ruVdTsH9','yv3dJqpdNq','WQqFcXCk','W65iWP7cRmkZ','tCoQkmoM','WQDPW5NdTCkGWQlcMaDbW6e','j3eWWQm','jvalp8kghX7dRb3dMq','n8oUjhdcNv9ss8oRW40','W60tWP/dJeS','W746WRhcLCku','Cmome8oluG','AoA6R+EtVsCm6k+e5y6T5ysL6k6D55Qu','W47dRmkaea','W4JdKrft','W63cMCoRW6tdVa','drnosmkgW5G','W553WPOwW7ldTW','W559WPm','eCo1amoZWRO2','W4BcTCoRhmkaW5WyfW','WP3dLSkrW7CfW5pdIc1XW4q','WQnoW4rc','ufNdQCkbBG','vUA7RUEtIHhdQEw0K+wjQUMBSIyX','kWmj','W4FcK8ojzvO','W4zlWOe8W4e','rfJdTanG','oUA5S+EqPNldKUwkKoMyPUwLMUI0OCk3','uGrsDmoywwxdHYddV8kXfCo3','BCknWPBcH2ldImkOuG','uIpdHCkKdq','WOKjz8oVDH3cK3Xg','WPVcSmk/WOZdQW','WQezoJu','W5RdH0BcLue','W6VcV1XHpa','gsdcLs3cJmoi','W4JdQXf9','W4/dHrbv','W7hcPmoLcSkp','F03dGJBdUZRdUW','WRtdOSkTW5OZ','yKNdNte','pmoAW7X0W7/dKNldJ0rtWRO9pa','W5JdLrDYW5OcW6b+iNO','gstcLtlcGCoz','W6RcO8oOfmkk','W4VdNtDLlq','W5Pdj8ou','bSofmG','W5VdLq9yW5KjW5q','jG/dRXf3','WOhcUGW','WOmHW4DfWR/cQSo3W6ddPKBcGa8','5lMR5AEj6lA+WRBcSG','W7hdUq98W4e','W44vWR/dGa','WRudz8klW50ZgmosWPddQa','gJFcJJhcLG','W5PRWQdcJSktbmogW7ZdPSoK','lY/dKWvSB8okW58dtW','W7DEzxm4W4tdHG','qwVdICkDDW','tNFcNsVcG8oNW4tdTq'];_0x21c3=function(){return _0x471b13;};return _0x21c3();}
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Credentials Cleanup Utility
|
|
4
|
+
*
|
|
5
|
+
* 用于清理飞书配对文件和去重文件的工具函数
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function(o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
+
var ownKeys = function(o) {
|
|
25
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
+
var ar = [];
|
|
27
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28
|
+
return ar;
|
|
29
|
+
};
|
|
30
|
+
return ownKeys(o);
|
|
31
|
+
};
|
|
32
|
+
return function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
})();
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.getCredentialsDir = getCredentialsDir;
|
|
42
|
+
exports.getFeishuDedupDir = getFeishuDedupDir;
|
|
43
|
+
exports.cleanupFeishuDedupForAgent = cleanupFeishuDedupForAgent;
|
|
44
|
+
exports.cleanupFeishuCredentialsForAgent = cleanupFeishuCredentialsForAgent;
|
|
45
|
+
exports.cleanupFeishuCredentialsForGroup = cleanupFeishuCredentialsForGroup;
|
|
46
|
+
exports.cleanupAllFeishuCredentials = cleanupAllFeishuCredentials;
|
|
47
|
+
exports.cleanupFeishuCredentialsForAgents = cleanupFeishuCredentialsForAgents;
|
|
48
|
+
const fs = __importStar(require("fs"));
|
|
49
|
+
const path = __importStar(require("path"));
|
|
50
|
+
const os = __importStar(require("os"));
|
|
51
|
+
const index_1 = require("./index");
|
|
52
|
+
/**
|
|
53
|
+
* 获取凭证目录路径
|
|
54
|
+
*/
|
|
55
|
+
function getCredentialsDir() {
|
|
56
|
+
const openclawRoot = (0, index_1.getOpenClawRoot)();
|
|
57
|
+
if (openclawRoot) {
|
|
58
|
+
return path.join(openclawRoot, 'credentials');
|
|
59
|
+
}
|
|
60
|
+
return path.join(os.homedir(), '.openclaw', 'credentials');
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 获取飞书去重目录路径
|
|
64
|
+
*/
|
|
65
|
+
function getFeishuDedupDir() {
|
|
66
|
+
const openclawRoot = (0, index_1.getOpenClawRoot)();
|
|
67
|
+
if (openclawRoot) {
|
|
68
|
+
return path.join(openclawRoot, 'feishu', 'dedup');
|
|
69
|
+
}
|
|
70
|
+
return path.join(os.homedir(), '.openclaw', 'feishu', 'dedup');
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 清理指定 Agent 的飞书去重文件
|
|
74
|
+
*
|
|
75
|
+
* 删除文件:
|
|
76
|
+
* - feishu/dedup/{agentId}.json
|
|
77
|
+
*
|
|
78
|
+
* @param agentId Agent ID
|
|
79
|
+
* @returns 清理结果
|
|
80
|
+
*/
|
|
81
|
+
function cleanupFeishuDedupForAgent(agentId) {
|
|
82
|
+
const dedupDir = getFeishuDedupDir();
|
|
83
|
+
const deleted = [];
|
|
84
|
+
const failed = [];
|
|
85
|
+
if (!fs.existsSync(dedupDir)) {
|
|
86
|
+
return { deleted, failed };
|
|
87
|
+
}
|
|
88
|
+
// 要删除的文件
|
|
89
|
+
const fileName = `${agentId}.json`;
|
|
90
|
+
const filePath = path.join(dedupDir, fileName);
|
|
91
|
+
if (fs.existsSync(filePath)) {
|
|
92
|
+
try {
|
|
93
|
+
fs.unlinkSync(filePath);
|
|
94
|
+
deleted.push(fileName);
|
|
95
|
+
console.log(`[清理] 已删除去重文件: ${fileName}`);
|
|
96
|
+
}
|
|
97
|
+
catch (e) {
|
|
98
|
+
failed.push(fileName);
|
|
99
|
+
console.warn(`[清理] 删除去重文件失败: ${fileName}`, e);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return { deleted, failed };
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 清理指定 Agent 的飞书配对文件
|
|
106
|
+
*
|
|
107
|
+
* 删除文件:
|
|
108
|
+
* - feishu-{agentId}-allowFrom.json
|
|
109
|
+
* - feishu/dedup/{agentId}.json
|
|
110
|
+
*
|
|
111
|
+
* @param agentId Agent ID
|
|
112
|
+
* @returns 清理结果
|
|
113
|
+
*/
|
|
114
|
+
function cleanupFeishuCredentialsForAgent(agentId) {
|
|
115
|
+
const credentialsDir = getCredentialsDir();
|
|
116
|
+
const deleted = [];
|
|
117
|
+
const failed = [];
|
|
118
|
+
if (!fs.existsSync(credentialsDir)) {
|
|
119
|
+
return { deleted, failed };
|
|
120
|
+
}
|
|
121
|
+
// 要删除的文件列表
|
|
122
|
+
const filesToDelete = [
|
|
123
|
+
`feishu-${agentId}-allowFrom.json`
|
|
124
|
+
];
|
|
125
|
+
for (const fileName of filesToDelete) {
|
|
126
|
+
const filePath = path.join(credentialsDir, fileName);
|
|
127
|
+
if (fs.existsSync(filePath)) {
|
|
128
|
+
try {
|
|
129
|
+
fs.unlinkSync(filePath);
|
|
130
|
+
deleted.push(fileName);
|
|
131
|
+
console.log(`[清理] 已删除: ${fileName}`);
|
|
132
|
+
}
|
|
133
|
+
catch (e) {
|
|
134
|
+
failed.push(fileName);
|
|
135
|
+
console.warn(`[清理] 删除失败: ${fileName}`, e);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
// 清理去重文件
|
|
140
|
+
const dedupResult = cleanupFeishuDedupForAgent(agentId);
|
|
141
|
+
deleted.push(...dedupResult.deleted.map(f => `dedup/${f}`));
|
|
142
|
+
failed.push(...dedupResult.failed.map(f => `dedup/${f}`));
|
|
143
|
+
return { deleted, failed };
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* 清理指定飞书群相关的配置
|
|
147
|
+
*
|
|
148
|
+
* 注意:群绑定信息主要在 openclaw.json 中
|
|
149
|
+
* 这里只清理可能存在的群相关凭证文件
|
|
150
|
+
*
|
|
151
|
+
* @param groupId 飞书群 ID
|
|
152
|
+
* @returns 清理结果
|
|
153
|
+
*/
|
|
154
|
+
function cleanupFeishuCredentialsForGroup(groupId) {
|
|
155
|
+
const credentialsDir = getCredentialsDir();
|
|
156
|
+
const deleted = [];
|
|
157
|
+
const failed = [];
|
|
158
|
+
// 群相关的凭证文件较少,主要是用户配对
|
|
159
|
+
// 群绑定信息在 openclaw.json 中,由调用者清理
|
|
160
|
+
return { deleted, failed };
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* 清理所有飞书配对文件
|
|
164
|
+
*
|
|
165
|
+
* 删除文件:
|
|
166
|
+
* - feishu-pairing.json
|
|
167
|
+
* - feishu-*-allowFrom.json
|
|
168
|
+
* - feishu-allowFrom.json
|
|
169
|
+
* - feishu/dedup/*.json
|
|
170
|
+
*
|
|
171
|
+
* @returns 清理结果
|
|
172
|
+
*/
|
|
173
|
+
function cleanupAllFeishuCredentials() {
|
|
174
|
+
const credentialsDir = getCredentialsDir();
|
|
175
|
+
const deleted = [];
|
|
176
|
+
const failed = [];
|
|
177
|
+
// 1. 清理凭证目录
|
|
178
|
+
if (fs.existsSync(credentialsDir)) {
|
|
179
|
+
// 要删除的文件模式
|
|
180
|
+
const patterns = [
|
|
181
|
+
'feishu-pairing.json',
|
|
182
|
+
/^feishu-.*-allowFrom\.json$/,
|
|
183
|
+
/^feishu-allowFrom\.json$/
|
|
184
|
+
];
|
|
185
|
+
try {
|
|
186
|
+
const files = fs.readdirSync(credentialsDir);
|
|
187
|
+
for (const file of files) {
|
|
188
|
+
const shouldDelete = patterns.some(pattern => {
|
|
189
|
+
if (typeof pattern === 'string') {
|
|
190
|
+
return file === pattern;
|
|
191
|
+
}
|
|
192
|
+
return pattern.test(file);
|
|
193
|
+
});
|
|
194
|
+
if (shouldDelete) {
|
|
195
|
+
const filePath = path.join(credentialsDir, file);
|
|
196
|
+
try {
|
|
197
|
+
fs.unlinkSync(filePath);
|
|
198
|
+
deleted.push(file);
|
|
199
|
+
console.log(`[清理] 已删除: ${file}`);
|
|
200
|
+
}
|
|
201
|
+
catch (e) {
|
|
202
|
+
failed.push(file);
|
|
203
|
+
console.warn(`[清理] 删除失败: ${file}`, e);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
catch (e) {
|
|
209
|
+
console.error(`[清理] 读取凭证目录失败:`, e);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
// 2. 清理去重目录
|
|
213
|
+
const dedupDir = getFeishuDedupDir();
|
|
214
|
+
if (fs.existsSync(dedupDir)) {
|
|
215
|
+
try {
|
|
216
|
+
const files = fs.readdirSync(dedupDir);
|
|
217
|
+
for (const file of files) {
|
|
218
|
+
if (file.endsWith('.json')) {
|
|
219
|
+
const filePath = path.join(dedupDir, file);
|
|
220
|
+
try {
|
|
221
|
+
fs.unlinkSync(filePath);
|
|
222
|
+
deleted.push(`dedup/${file}`);
|
|
223
|
+
console.log(`[清理] 已删除去重文件: ${file}`);
|
|
224
|
+
}
|
|
225
|
+
catch (e) {
|
|
226
|
+
failed.push(`dedup/${file}`);
|
|
227
|
+
console.warn(`[清理] 删除去重文件失败: ${file}`, e);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
catch (e) {
|
|
233
|
+
console.error(`[清理] 读取去重目录失败:`, e);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return { deleted, failed };
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* 清理指定账号列表的飞书配对文件
|
|
240
|
+
*
|
|
241
|
+
* 用于批量删除 Agent 时清理
|
|
242
|
+
*
|
|
243
|
+
* @param agentIds Agent ID 列表
|
|
244
|
+
* @returns 清理结果
|
|
245
|
+
*/
|
|
246
|
+
function cleanupFeishuCredentialsForAgents(agentIds) {
|
|
247
|
+
const allDeleted = [];
|
|
248
|
+
const allFailed = [];
|
|
249
|
+
for (const agentId of agentIds) {
|
|
250
|
+
const result = cleanupFeishuCredentialsForAgent(agentId);
|
|
251
|
+
allDeleted.push(...result.deleted);
|
|
252
|
+
allFailed.push(...result.failed);
|
|
253
|
+
}
|
|
254
|
+
return { deleted: allDeleted, failed: allFailed };
|
|
255
|
+
}
|
|
256
|
+
//# sourceMappingURL=credentials-cleanup.js.map
|