@taazkareem/clickup-mcp-server
Version:
ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.
1 lines • 23.6 kB
JavaScript
const a0_0x393b14=a0_0x4adf;function a0_0x4adf(_0x5e2066,_0xb803f7){_0x5e2066=_0x5e2066-0x1c8;const _0x182824=a0_0x1828();let _0x4adf89=_0x182824[_0x5e2066];if(a0_0x4adf['FsnYjg']===undefined){var _0x24bce8=function(_0x2c0486){const _0x383c8e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3803bc='',_0xbcf9af='';for(let _0x1281d9=0x0,_0x336c3a,_0x51b253,_0x52780f=0x0;_0x51b253=_0x2c0486['charAt'](_0x52780f++);~_0x51b253&&(_0x336c3a=_0x1281d9%0x4?_0x336c3a*0x40+_0x51b253:_0x51b253,_0x1281d9++%0x4)?_0x3803bc+=String['fromCharCode'](0xff&_0x336c3a>>(-0x2*_0x1281d9&0x6)):0x0){_0x51b253=_0x383c8e['indexOf'](_0x51b253);}for(let _0x5a8e05=0x0,_0x3312b3=_0x3803bc['length'];_0x5a8e05<_0x3312b3;_0x5a8e05++){_0xbcf9af+='%'+('00'+_0x3803bc['charCodeAt'](_0x5a8e05)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xbcf9af);};a0_0x4adf['AXeuQG']=_0x24bce8,a0_0x4adf['vPYjVl']={},a0_0x4adf['FsnYjg']=!![];}const _0x26b151=_0x182824[0x0],_0x3abae9=_0x5e2066+_0x26b151,_0x2100a5=a0_0x4adf['vPYjVl'][_0x3abae9];return!_0x2100a5?(_0x4adf89=a0_0x4adf['AXeuQG'](_0x4adf89),a0_0x4adf['vPYjVl'][_0x3abae9]=_0x4adf89):_0x4adf89=_0x2100a5,_0x4adf89;}(function(_0x18a1e1,_0x44231e){const _0x20d3c5=a0_0x4adf,_0x41847f=_0x18a1e1();while(!![]){try{const _0x2cd834=parseInt(_0x20d3c5(0x252))/0x1+-parseInt(_0x20d3c5(0x1cf))/0x2+parseInt(_0x20d3c5(0x21b))/0x3+parseInt(_0x20d3c5(0x249))/0x4*(parseInt(_0x20d3c5(0x23a))/0x5)+-parseInt(_0x20d3c5(0x261))/0x6*(-parseInt(_0x20d3c5(0x24d))/0x7)+parseInt(_0x20d3c5(0x1f0))/0x8+parseInt(_0x20d3c5(0x258))/0x9*(-parseInt(_0x20d3c5(0x1fe))/0xa);if(_0x2cd834===_0x44231e)break;else _0x41847f['push'](_0x41847f['shift']());}catch(_0x3f868a){_0x41847f['push'](_0x41847f['shift']());}}}(a0_0x1828,0x6bd55));function a0_0x1828(){const _0x171bd3=['CYbPBIa','BM93','AerrvLu','zhmGzM8','CgfJzq','ig5HBwu','Axnnyxq','zsbLCNi','y2XLyxi','Aw4GzM8','ywnLihm','CufpDha','AwvYyxi','tMfTzq','seLfuKe','zw1HAwW','C3rZsw4','qw4Gzxi','igLZihi','yw1L','l3nWywm','sw5tCge','BgrLCNm','C3rVBuy','CM9Szq','q0fdseu','AgfUzgW','vND5uhK','igL0zw0','l2zVBgq','zcb0BYa','mZe5mJy0mgDMtenAAW','y2XPzw4','DhvYzq','z2v0ihm','zxf1zxm','EhDOsLO','ywXS','zxj2Awm','y3jLyxq','BgvqAwm','z2v0','CMnOEuW','D29YA3m','zMLUze4','mtiYnJq2mZbKEwHfsvm','zgvSzxq','vfrm','zxjYB3i','CMvU','AgfYzwq','CM9VDa','Cg9ZDa','igHPzxi','B2XKzxi','wKLqzgG','Chv0','l2zPzwW','BsbdBgK','DgvHBq','ifDVCMS','ywnL','su5wquW','yM9VBgu','DgvHBxm','CgfJzuG','DxDvzMK','rMfPBgu','Aw4GC3a','tNbwELO','ignHy2G','CgfJzui','DhLWzq','y2vnzw0','otC4odi4wgnsCwTL','zsbZCge','CIbZCge','AgLLCMe','Eu5HBwu','BgLZDhm','igzPzwW','zwf0CW','y2viAwu','z2v0ihC','zMLUzfm','qvbj','rvjst1i','C2nVCMu','C3rYAw4','v29YA3m','ihDPDgG','BgLZDa','D2L0Aca','rej5tMe','zvnWywm','uKfnrvq','zgf0yq','ChjVzMK','t3zwAwi','DxbKyxq','Cgf0Aa','zsbMCM8','BwfRzvi','y2uGAgK','u3bHy2u','nZy1zw9oquv2','z2v0tgK','CgHeD2q','igzVCIa','zwfTCW','zvrLyw0','z2v0rM8','uefdrv8','y2H5','BgrLCG','BgrLCIa','AxrLBq','BwvjBKG','z2v0vgu','Axn0CYa','mJi3otzdqNjWv08','zMLUzca','DgvHBuK','C3rZ','ndi5nJuZC0PMu2zK','CgfJzuK','re5SrNm','y2uGiG','u2vYDMK','nti5ndG5D2PUCezn','ywnLigG','sgTSDgW','l3nLyxq','yxn0rMu','BgrLCMW','ow5nDwPuAW','AwqGCMu','zujXzgS','shjJyMm','ywnLia','Aw5MBW','yMvYCW','Dxn0B20','CM5PBMC','mtj2rgLsDNq','CMTZCge','uxfNtfi','y2HPBgq','DxnLCG','ChvZAa','zwqGAw4','ywnLiha','ieHjvdO','C3bHy2u','l3rLyw0','C2XPy2u','BgvUz3q','BM9Kzq','z2v0u3a','y2n1CNi','AwLwC1G','BgfU','z2v0igm','rM9Szgu','surFuee','C3bVBNm','zMLUzeK','CgfJzxm','ifjLDhu','ieLeigK','CgfJzvm','l3nOyxi','z2v0igW','yxjLzeG','zxiV','zuvYCM8','ywnLq3u','AxH0AeO','zxf1Axi','z2v0v28','CYbYzxe','zMLLBgq','ywnLCW','yxjJAhK','BwfW','BwvTyMu','rKrPCvm','l3bSyw4','CgfJzsa','sw52ywW','BMfTzq','id4G','y2TvCca','DwLYzwq','DgnOzwq','ywnLigm','z2v0igy','z2v0ihq','B2rLqNK','EvfPshe','zxnZtgK','DxnLCM4','BgvZCYa','l2XPC3q','B3jRC3a','zwqGD28','uKniwv8','mte2mJGWnfjuvff1tG','sKX4Bue'];a0_0x1828=function(){return _0x171bd3;};return a0_0x1828();}import{BaseClickUpService,ClickUpServiceError,ErrorCode}from'./base.js';import{isNameMatch,findBestMatchInArray}from'../../utils/resolver-utils.js';import{Logger}from'../../logger.js';const logger=new Logger(a0_0x393b14(0x22a)+a0_0x393b14(0x27b)+a0_0x393b14(0x1f7)+'e');export class WorkspaceService extends BaseClickUpService{constructor(_0x5f3a1c,_0x591bbe,_0x2ae697,_0x498e11){const _0x5e7605=a0_0x393b14,_0x389869={'ixthJ':function(_0x481d34,_0x51fa8f){return _0x481d34*_0x51fa8f;}};super(_0x5f3a1c,_0x591bbe,_0x2ae697,_0x498e11),this[_0x5e7605(0x1fc)+_0x5e7605(0x212)+_0x5e7605(0x1dd)+'chy']=null,this['hiera'+_0x5e7605(0x1fb)+_0x5e7605(0x256)+_0x5e7605(0x293)]=0x0,this['HIERA'+_0x5e7605(0x1ce)+_0x5e7605(0x200)]=_0x389869[_0x5e7605(0x282)](0x5,0x3c)*0x3e8;}[a0_0x393b14(0x234)+'eTeam'+'Id'](_0x4e386c){const _0x49f960=a0_0x393b14,_0xefe0aa={'hDQVU':function(_0x5c7004,_0x4595ab){return _0x5c7004!==_0x4595ab;}};_0xefe0aa[_0x49f960(0x1d3)](this[_0x49f960(0x24b)+'d'],_0x4e386c)&&(this[_0x49f960(0x1d9)+_0x49f960(0x22a)+'paceH'+_0x49f960(0x1dd)+_0x49f960(0x242)](),super[_0x49f960(0x234)+_0x49f960(0x23f)+'Id'](_0x4e386c));}['handl'+a0_0x393b14(0x280)+'r'](_0x450c29,_0x395a32){const _0x2cd6e6=a0_0x393b14,_0x128a7c={'FDiqS':_0x2cd6e6(0x22a)+_0x2cd6e6(0x27b)+_0x2cd6e6(0x1f7)+_0x2cd6e6(0x1d8)+'or:','xwhJZ':function(_0x18ceaf,_0x130213){return _0x18ceaf instanceof _0x130213;},'eBqdk':_0x2cd6e6(0x1e2)+'ror\x20o'+_0x2cd6e6(0x270)+_0x2cd6e6(0x267)+_0x2cd6e6(0x20d)+_0x2cd6e6(0x26a)+_0x2cd6e6(0x251)+'ce'};logger[_0x2cd6e6(0x201)](_0x128a7c[_0x2cd6e6(0x28b)],_0x450c29);if(_0x128a7c[_0x2cd6e6(0x1f5)](_0x450c29,ClickUpServiceError))return _0x450c29;const _0x1e7339=_0x395a32||_0x128a7c[_0x2cd6e6(0x25a)];return new ClickUpServiceError(_0x1e7339,ErrorCode['WORKS'+_0x2cd6e6(0x241)+_0x2cd6e6(0x227)],_0x450c29);}async[a0_0x393b14(0x247)+'ams'](){const _0x256799=a0_0x393b14,_0x4abf24={'yQiHq':_0x256799(0x26b)};try{const _0x1eb134=await this[_0x256799(0x237)+_0x256799(0x1f4)+'t'](async()=>{const _0x4e0fa2=_0x256799,_0x2691f4=await this[_0x4e0fa2(0x1f1)+'t'][_0x4e0fa2(0x1fa)](_0x4abf24[_0x4e0fa2(0x298)]);return _0x2691f4[_0x4e0fa2(0x231)];});return(_0x1eb134[_0x256799(0x211)]||[])[_0x256799(0x289)](_0xc2d180=>({'id':String(_0xc2d180['id']),'name':_0xc2d180[_0x256799(0x28f)]}));}catch(_0xa57462){throw this['handl'+_0x256799(0x280)+'r'](_0xa57462,'Faile'+_0x256799(0x1ef)+_0x256799(0x296)+_0x256799(0x23e));}}async[a0_0x393b14(0x26f)+a0_0x393b14(0x287)](_0x4ed52f,_0x3cc4b7){const _0x3e3ba2=a0_0x393b14,_0x424080={'Hrcbc':function(_0x4db6f4,_0x7caab){return _0x4db6f4!==_0x7caab;},'iiVsX':function(_0x4279cb,_0x1e7e7c){return _0x4279cb===_0x1e7e7c;}},_0x19c64e=_0x424080[_0x3e3ba2(0x271)](typeof _0x4ed52f,_0x3e3ba2(0x210)+'an')?_0x4ed52f:undefined,_0x27fe8f=_0x3cc4b7||(typeof _0x4ed52f===_0x3e3ba2(0x229)+'g'?_0x4ed52f:this['teamI'+'d']);try{const _0x40682f=await this[_0x3e3ba2(0x237)+_0x3e3ba2(0x1f4)+'t'](async()=>{const _0x45b3a1=_0x3e3ba2,_0x4edae9=_0x424080[_0x45b3a1(0x25b)](_0x19c64e,undefined)?{'archived':_0x19c64e}:{},_0x4f696b=await this[_0x45b3a1(0x1f1)+'t'][_0x45b3a1(0x1fa)](_0x45b3a1(0x26b)+'/'+_0x27fe8f+(_0x45b3a1(0x1e5)+'e'),{'params':_0x4edae9});return _0x4f696b[_0x45b3a1(0x231)];});return _0x40682f['space'+'s']||[];}catch(_0x34e489){throw this['handl'+'eErro'+'r'](_0x34e489,'Faile'+_0x3e3ba2(0x1ef)+_0x3e3ba2(0x1f3)+_0x3e3ba2(0x278));}}async['getCu'+a0_0x393b14(0x1e8)+'ields'](_0x2886ed=this[a0_0x393b14(0x24b)+'d']){const _0x2046dd=a0_0x393b14,_0x5bb947={'TUlvq':_0x2046dd(0x214)+_0x2046dd(0x1ef)+_0x2046dd(0x224)+_0x2046dd(0x1cc)+_0x2046dd(0x294)+_0x2046dd(0x25f)+'\x20fiel'+'ds'};try{const _0x55afcb=await this[_0x2046dd(0x237)+_0x2046dd(0x1f4)+'t'](async()=>{const _0x19735e=_0x2046dd;return await this[_0x19735e(0x1f1)+'t'][_0x19735e(0x1fa)](_0x19735e(0x26b)+'/'+_0x2886ed+(_0x19735e(0x20a)+'d'));});return _0x55afcb[_0x2046dd(0x231)]['field'+'s']||[];}catch(_0x438c2a){throw this[_0x2046dd(0x1eb)+_0x2046dd(0x280)+'r'](_0x438c2a,_0x5bb947['TUlvq']);}}async[a0_0x393b14(0x26f)+a0_0x393b14(0x281)+'stomF'+'ields'](_0x2184af){const _0x251e58=a0_0x393b14;try{const _0x55e6be=await this[_0x251e58(0x237)+_0x251e58(0x1f4)+'t'](async()=>{const _0x513ba8=_0x251e58;return await this[_0x513ba8(0x1f1)+'t'][_0x513ba8(0x1fa)](_0x513ba8(0x1e5)+'e/'+_0x2184af+('/fiel'+'d'));});return _0x55e6be[_0x251e58(0x231)][_0x251e58(0x286)+'s']||[];}catch(_0x39ed6f){throw this[_0x251e58(0x1eb)+_0x251e58(0x280)+'r'](_0x39ed6f,_0x251e58(0x214)+_0x251e58(0x1ef)+_0x251e58(0x273)+'ustom'+_0x251e58(0x221)+_0x251e58(0x1d4)+_0x251e58(0x21d)+_0x251e58(0x250)+_0x2184af+'\x22');}}async[a0_0x393b14(0x26f)+a0_0x393b14(0x20e)](_0x310a11){const _0x1721b3=a0_0x393b14,_0x186f44={'DNlFs':'Space'+_0x1721b3(0x27a)+_0x1721b3(0x285)+_0x1721b3(0x292)};try{if(!_0x310a11)throw new ClickUpServiceError(_0x186f44[_0x1721b3(0x24f)],ErrorCode[_0x1721b3(0x20f)+'ID_PA'+_0x1721b3(0x230)+'ER']);return await this[_0x1721b3(0x237)+_0x1721b3(0x1f4)+'t'](async()=>{const _0x57308b=_0x1721b3,_0x7bb4e4=await this[_0x57308b(0x1f1)+'t'][_0x57308b(0x1fa)](_0x57308b(0x1e5)+'e/'+_0x310a11);return _0x7bb4e4[_0x57308b(0x231)];});}catch(_0x469544){throw this[_0x1721b3(0x1eb)+_0x1721b3(0x280)+'r'](_0x469544,'Faile'+'d\x20to\x20'+_0x1721b3(0x1f3)+_0x1721b3(0x28d)+_0x1721b3(0x22d)+'ID\x20'+_0x310a11);}}async[a0_0x393b14(0x1f8)+'eSpac'+'e'](_0x2cddbc,_0x5d7d16={}){const _0x30b0c7=a0_0x393b14;try{if(!_0x2cddbc)throw new ClickUpServiceError(_0x30b0c7(0x239)+_0x30b0c7(0x1d6)+'\x20is\x20r'+_0x30b0c7(0x283)+'ed',ErrorCode[_0x30b0c7(0x20f)+_0x30b0c7(0x275)+_0x30b0c7(0x230)+'ER']);const _0x2f6313={'name':_0x2cddbc,..._0x5d7d16},_0x317fd5=await this['makeR'+_0x30b0c7(0x1f4)+'t'](async()=>{const _0x271c53=_0x30b0c7,_0x418f6f=await this[_0x271c53(0x1f1)+'t'][_0x271c53(0x205)]('/team'+'/'+this['teamI'+'d']+(_0x271c53(0x1e5)+'e'),_0x2f6313);return _0x418f6f['data'];});return this[_0x30b0c7(0x1d9)+'Works'+_0x30b0c7(0x212)+_0x30b0c7(0x1dd)+_0x30b0c7(0x242)](),_0x317fd5;}catch(_0xab5299){throw this['handl'+'eErro'+'r'](_0xab5299,_0x30b0c7(0x214)+_0x30b0c7(0x1ef)+_0x30b0c7(0x1f8)+_0x30b0c7(0x21c)+_0x30b0c7(0x250)+_0x2cddbc+'\x22');}}async[a0_0x393b14(0x234)+a0_0x393b14(0x22f)+'e'](_0x3731ca,_0x14e8d6){const _0x1f3010=a0_0x393b14,_0x2aa001={'QqgLR':_0x1f3010(0x239)+_0x1f3010(0x27a)+'s\x20req'+'uired'};try{if(!_0x3731ca)throw new ClickUpServiceError(_0x2aa001[_0x1f3010(0x263)],ErrorCode[_0x1f3010(0x20f)+'ID_PA'+'RAMET'+'ER']);const _0x4b248c=await this['makeR'+_0x1f3010(0x1f4)+'t'](async()=>{const _0x1873f1=_0x1f3010,_0x26dae5=await this[_0x1873f1(0x1f1)+'t'][_0x1873f1(0x209)](_0x1873f1(0x1e5)+'e/'+_0x3731ca,_0x14e8d6);return _0x26dae5[_0x1873f1(0x231)];});return this[_0x1f3010(0x1d9)+_0x1f3010(0x22a)+_0x1f3010(0x212)+_0x1f3010(0x1dd)+_0x1f3010(0x242)](),_0x4b248c;}catch(_0x35f8d1){throw this['handl'+_0x1f3010(0x280)+'r'](_0x35f8d1,_0x1f3010(0x214)+'d\x20to\x20'+'updat'+_0x1f3010(0x21c)+_0x1f3010(0x250)+_0x3731ca+'\x22');}}async[a0_0x393b14(0x1ff)+a0_0x393b14(0x22f)+'e'](_0x317454){const _0x58f0e3=a0_0x393b14;try{if(!_0x317454)throw new ClickUpServiceError(_0x58f0e3(0x239)+_0x58f0e3(0x27a)+_0x58f0e3(0x285)+_0x58f0e3(0x292),ErrorCode[_0x58f0e3(0x20f)+_0x58f0e3(0x275)+_0x58f0e3(0x230)+'ER']);await this[_0x58f0e3(0x237)+_0x58f0e3(0x1f4)+'t'](async()=>{const _0x402f93=_0x58f0e3;await this['clien'+'t'][_0x402f93(0x1ff)+'e'](_0x402f93(0x1e5)+'e/'+_0x317454);}),this[_0x58f0e3(0x1d9)+_0x58f0e3(0x22a)+_0x58f0e3(0x212)+_0x58f0e3(0x1dd)+_0x58f0e3(0x242)]();}catch(_0x5cb2a2){throw this['handl'+'eErro'+'r'](_0x5cb2a2,_0x58f0e3(0x214)+_0x58f0e3(0x1ef)+_0x58f0e3(0x1ff)+_0x58f0e3(0x21c)+_0x58f0e3(0x250)+_0x317454+'\x22');}}async[a0_0x393b14(0x225)+'paceB'+a0_0x393b14(0x21f)](_0x1727c7){const _0xcb4f36=a0_0x393b14,_0x534255={'qAOtp':_0xcb4f36(0x239)+_0xcb4f36(0x1d6)+_0xcb4f36(0x1e3)+_0xcb4f36(0x283)+'ed','Hkltl':function(_0x1c9839,_0xc90ce3,_0x6b6b2e){return _0x1c9839(_0xc90ce3,_0x6b6b2e);}};try{if(!_0x1727c7)throw new ClickUpServiceError(_0x534255[_0xcb4f36(0x1dc)],ErrorCode['INVAL'+_0xcb4f36(0x275)+_0xcb4f36(0x230)+'ER']);const _0x12f94a=await this[_0xcb4f36(0x26f)+_0xcb4f36(0x287)](),_0x3608b9=_0x534255[_0xcb4f36(0x254)](findBestMatchInArray,_0x12f94a,_0x1727c7);return _0x3608b9?_0x3608b9[_0xcb4f36(0x245)]:null;}catch(_0x57cfa9){throw this['handl'+_0xcb4f36(0x280)+'r'](_0x57cfa9,_0xcb4f36(0x214)+_0xcb4f36(0x1ef)+_0xcb4f36(0x24a)+_0xcb4f36(0x26a)+_0xcb4f36(0x22b)+_0xcb4f36(0x1d6)+'\x20'+_0x1727c7);}}async[a0_0x393b14(0x284)+a0_0x393b14(0x262)+a0_0x393b14(0x223)+'rarch'+'y'](_0x588f92=![],_0x518eba){const _0x211705=a0_0x393b14,_0x1c27b0={'lnvqw':'folde'+'r','ZIPdh':_0x211705(0x26a),'OvVib':function(_0x2822d4,_0x34420f){return _0x2822d4-_0x34420f;},'JLxmA':function(_0x282229,_0x335323){return _0x282229===_0x335323;},'phDwd':function(_0x1d39ca,_0x4d96a2){return _0x1d39ca+_0x4d96a2;}},_0x193a7a=_0x518eba||this['teamI'+'d'];try{const _0x450cf7=Date[_0x211705(0x1d2)](),_0x82da23=_0x1c27b0[_0x211705(0x233)](_0x450cf7,this[_0x211705(0x21e)+_0x211705(0x1fb)+_0x211705(0x256)+_0x211705(0x293)])>this[_0x211705(0x1df)+_0x211705(0x1ce)+'TTL'];if(_0x1c27b0[_0x211705(0x1d0)](_0x193a7a,this['teamI'+'d'])&&this[_0x211705(0x1fc)+_0x211705(0x212)+_0x211705(0x1dd)+_0x211705(0x242)]&&!_0x588f92&&!_0x82da23)return logger[_0x211705(0x25d)](_0x211705(0x1ea)+_0x211705(0x269)+_0x211705(0x279)+_0x211705(0x260)+_0x211705(0x217)+_0x211705(0x1cd)+'rkspa'+_0x211705(0x238)+'erarc'+'hy'),this[_0x211705(0x1fc)+'paceH'+'ierar'+_0x211705(0x242)];const _0x46c0c1={'root':{'id':_0x193a7a,'name':'Works'+'pace','children':[]}},_0x4bc9cf=await this[_0x211705(0x26f)+_0x211705(0x287)](_0x193a7a),_0x3b68bc=0x3,_0x4c5022=[];for(let _0x2e7757=0x0;_0x2e7757<_0x4bc9cf[_0x211705(0x26d)+'h'];_0x2e7757+=_0x3b68bc){const _0x1b08f4=_0x4bc9cf[_0x211705(0x26c)](_0x2e7757,_0x1c27b0[_0x211705(0x23c)](_0x2e7757,_0x3b68bc)),_0x2d3a0b=await Promise[_0x211705(0x1f6)](_0x1b08f4[_0x211705(0x289)](async _0xd6b130=>{const _0x39a6da=_0x211705,_0x2c4950={'id':_0xd6b130['id'],'name':_0xd6b130[_0x39a6da(0x28f)],'type':_0x1c27b0[_0x39a6da(0x208)],'children':[]},[_0x5c5695,_0x5c9e83]=await Promise[_0x39a6da(0x1f6)]([this[_0x39a6da(0x240)+_0x39a6da(0x1e7)+'InSpa'+'ce'](_0xd6b130['id']),this['getLi'+_0x39a6da(0x1e1)+'Space'](_0xd6b130['id'])]);for(let _0x73dbaa=0x0;_0x73dbaa<_0x5c5695[_0x39a6da(0x26d)+'h'];_0x73dbaa+=0x5){const _0x524b13=_0x5c5695['slice'](_0x73dbaa,_0x73dbaa+0x5),_0x1ef3e5=await Promise[_0x39a6da(0x1f6)](_0x524b13[_0x39a6da(0x289)](async _0x54a95b=>{const _0x5d706c=_0x39a6da,_0x1f105a={'id':_0x54a95b['id'],'name':_0x54a95b['name'],'type':_0x1c27b0['lnvqw'],'parentId':_0xd6b130['id'],'children':[]},_0x303de1=await this[_0x5d706c(0x23b)+_0x5d706c(0x1e1)+_0x5d706c(0x274)+'r'](_0x54a95b['id']);return _0x1f105a[_0x5d706c(0x264)+_0x5d706c(0x202)]=_0x303de1['map'](_0x53b0c7=>({'id':_0x53b0c7['id'],'name':_0x53b0c7[_0x5d706c(0x28f)],'type':_0x5d706c(0x22c),'parentId':_0x54a95b['id']})),_0x1f105a;}));_0x2c4950['child'+'ren']?.['push'](..._0x1ef3e5);}const _0x2d5581=_0x5c9e83[_0x39a6da(0x289)](_0x4a65f7=>({'id':_0x4a65f7['id'],'name':_0x4a65f7[_0x39a6da(0x28f)],'type':_0x39a6da(0x22c),'parentId':_0xd6b130['id']}));return _0x2c4950[_0x39a6da(0x264)+'ren']?.['push'](..._0x2d5581),_0x2c4950;}));_0x4c5022[_0x211705(0x266)](..._0x2d3a0b);}return _0x46c0c1[_0x211705(0x204)][_0x211705(0x264)+_0x211705(0x202)][_0x211705(0x266)](..._0x4c5022),_0x193a7a===this['teamI'+'d']&&(this['works'+_0x211705(0x212)+_0x211705(0x1dd)+_0x211705(0x242)]=_0x46c0c1,this[_0x211705(0x21e)+_0x211705(0x1fb)+_0x211705(0x256)+_0x211705(0x293)]=Date[_0x211705(0x1d2)]()),_0x46c0c1;}catch(_0x529193){throw this[_0x211705(0x1eb)+_0x211705(0x280)+'r'](_0x529193,'Faile'+_0x211705(0x1ef)+'get\x20w'+_0x211705(0x1cc)+_0x211705(0x253)+'ierar'+'chy');}}[a0_0x393b14(0x1d9)+a0_0x393b14(0x22a)+'paceH'+a0_0x393b14(0x1dd)+a0_0x393b14(0x242)](){const _0xcc756c=a0_0x393b14;this[_0xcc756c(0x1fc)+_0xcc756c(0x212)+_0xcc756c(0x1dd)+_0xcc756c(0x242)]=null,this['hiera'+_0xcc756c(0x1fb)+_0xcc756c(0x256)+_0xcc756c(0x293)]=0x0;}['findN'+a0_0x393b14(0x297)+'Name'](_0x3a066c,_0x2a657a,_0x12a19b){const _0x5eafc0=a0_0x393b14,_0x4e5328={'NpVzZ':function(_0x42591d,_0x1cba82){return _0x42591d in _0x1cba82;},'vDRWT':function(_0x329b39,_0x4f131f,_0x45cbb7){return _0x329b39(_0x4f131f,_0x45cbb7);},'VwyPy':function(_0x14e040,_0x1c6309){return _0x14e040===_0x1c6309;},'uwUfi':function(_0x7fbdd2,_0x44d77f){return _0x7fbdd2 in _0x44d77f;},'GaADF':_0x5eafc0(0x22a)+_0x5eafc0(0x1d5)};let _0x10e6e0=null;if(_0x4e5328[_0x5eafc0(0x216)](_0x5eafc0(0x219),_0x3a066c)&&_0x3a066c[_0x5eafc0(0x219)]===_0x12a19b){const _0x599b99=_0x4e5328['vDRWT'](isNameMatch,_0x3a066c[_0x5eafc0(0x28f)],_0x2a657a);if(_0x599b99[_0x5eafc0(0x1d7)+'ch']){_0x10e6e0={'node':_0x3a066c,'path':_0x3a066c['name'],'score':_0x599b99[_0x5eafc0(0x228)]};if(_0x4e5328[_0x5eafc0(0x1ec)](_0x599b99['score'],0x64))return _0x10e6e0;}}for(const _0x346c82 of _0x3a066c[_0x5eafc0(0x264)+_0x5eafc0(0x202)]||[]){const _0x1793ae=this[_0x5eafc0(0x1fd)+'odeBy'+_0x5eafc0(0x1de)](_0x346c82,_0x2a657a,_0x12a19b);if(_0x1793ae){const _0x59885e=_0x4e5328[_0x5eafc0(0x213)]('name',_0x3a066c)?_0x3a066c[_0x5eafc0(0x28f)]:_0x4e5328['GaADF'],_0x5323e7=_0x59885e+_0x5eafc0(0x290)+_0x1793ae['path'];if(!_0x10e6e0||_0x1793ae[_0x5eafc0(0x228)]>_0x10e6e0[_0x5eafc0(0x228)]){_0x10e6e0={..._0x1793ae,'path':_0x5323e7};if(_0x10e6e0['score']===0x64)return _0x10e6e0;}}}return _0x10e6e0;}[a0_0x393b14(0x277)+a0_0x393b14(0x22e)+a0_0x393b14(0x246)+a0_0x393b14(0x1dd)+a0_0x393b14(0x242)](_0x505b98,_0x5b769c,_0x426d3e){const _0x5e6a55=a0_0x393b14,_0x10e1b2=this[_0x5e6a55(0x1fd)+_0x5e6a55(0x297)+'Name'](_0x505b98[_0x5e6a55(0x204)],_0x5b769c,_0x426d3e);return _0x10e1b2?{'id':_0x10e1b2[_0x5e6a55(0x26e)]['id'],'path':_0x10e1b2[_0x5e6a55(0x235)]}:null;}async[a0_0x393b14(0x225)+a0_0x393b14(0x24e)+'DByNa'+'me'](_0x5e9c2f){const _0x2bb0f3=a0_0x393b14,_0x219f0d=await this[_0x2bb0f3(0x225)+_0x2bb0f3(0x218)+_0x2bb0f3(0x21f)](_0x5e9c2f);return _0x219f0d?_0x219f0d['id']:null;}async[a0_0x393b14(0x240)+a0_0x393b14(0x257)+a0_0x393b14(0x1c8)+a0_0x393b14(0x24c)](_0x18b819){const _0x155259=a0_0x393b14;try{const _0x59ddc6=await this[_0x155259(0x237)+_0x155259(0x1f4)+'t'](async()=>{const _0x3ec6ae=_0x155259,_0x35d017=await this[_0x3ec6ae(0x1f1)+'t'][_0x3ec6ae(0x1fa)](_0x3ec6ae(0x1e5)+'e/'+_0x18b819+_0x3ec6ae(0x1cb));return _0x35d017[_0x3ec6ae(0x231)];});return _0x59ddc6[_0x155259(0x220)]||[];}catch(_0xe15bba){throw this['handl'+_0x155259(0x280)+'r'](_0xe15bba,'Faile'+'d\x20to\x20'+'get\x20f'+_0x155259(0x207)+_0x155259(0x1ca)+'lists'+_0x155259(0x23d)+'space'+'\x20'+_0x18b819);}}async[a0_0x393b14(0x23b)+a0_0x393b14(0x1e1)+'Space'](_0x15ab10){const _0x52746f=a0_0x393b14;try{const _0x3496f8=await this[_0x52746f(0x240)+_0x52746f(0x257)+_0x52746f(0x1c8)+_0x52746f(0x24c)](_0x15ab10);return _0x3496f8;}catch(_0x315634){throw this['handl'+_0x52746f(0x280)+'r'](_0x315634,_0x52746f(0x214)+_0x52746f(0x1ef)+'get\x20l'+_0x52746f(0x248)+_0x52746f(0x215)+_0x52746f(0x25c)+_0x15ab10);}}async['getFo'+a0_0x393b14(0x1e7)](_0xcc6d4e){const _0x4f4d32=a0_0x393b14;try{const _0x32746d=await this[_0x4f4d32(0x237)+_0x4f4d32(0x1f4)+'t'](async()=>{const _0x522405=_0x4f4d32,_0x4c4626=await this[_0x522405(0x1f1)+'t']['get'](_0x522405(0x1e5)+'e/'+_0xcc6d4e+(_0x522405(0x1ee)+'er'));return _0x4c4626[_0x522405(0x231)];});return _0x32746d['folde'+'rs']||[];}catch(_0x2d9d24){throw this[_0x4f4d32(0x1eb)+_0x4f4d32(0x280)+'r'](_0x2d9d24,_0x4f4d32(0x214)+_0x4f4d32(0x1ef)+_0x4f4d32(0x295)+_0x4f4d32(0x207)+'s\x20for'+'\x20spac'+'e\x20'+_0xcc6d4e);}}async[a0_0x393b14(0x240)+a0_0x393b14(0x243)](_0x156521){const _0x8e6288=a0_0x393b14;try{return await this['makeR'+_0x8e6288(0x1f4)+'t'](async()=>{const _0x1ca2fc=_0x8e6288,_0x207749=await this[_0x1ca2fc(0x1f1)+'t']['get'](_0x1ca2fc(0x1ee)+_0x1ca2fc(0x27f)+_0x156521);return _0x207749[_0x1ca2fc(0x231)];});}catch(_0x59f86f){throw this['handl'+_0x8e6288(0x280)+'r'](_0x59f86f,_0x8e6288(0x214)+_0x8e6288(0x1ef)+_0x8e6288(0x295)+_0x8e6288(0x207)+_0x8e6288(0x22b)+'\x20ID\x20'+_0x156521);}}async[a0_0x393b14(0x240)+a0_0x393b14(0x1e7)+a0_0x393b14(0x1e6)+'ce'](_0x369aa1){const _0x4977e2=a0_0x393b14;try{return await this[_0x4977e2(0x240)+_0x4977e2(0x1e7)](_0x369aa1);}catch(_0x52aa76){throw this[_0x4977e2(0x1eb)+_0x4977e2(0x280)+'r'](_0x52aa76,_0x4977e2(0x214)+_0x4977e2(0x1ef)+_0x4977e2(0x295)+_0x4977e2(0x207)+_0x4977e2(0x1d1)+_0x4977e2(0x26a)+'\x20'+_0x369aa1);}}async[a0_0x393b14(0x23b)+a0_0x393b14(0x1e1)+a0_0x393b14(0x274)+'r'](_0x46fcdd){const _0x15b4ab=a0_0x393b14;try{const _0x2ae7ba=await this['makeR'+_0x15b4ab(0x1f4)+'t'](async()=>{const _0x3faaee=_0x15b4ab,_0x540738=await this[_0x3faaee(0x1f1)+'t']['get'](_0x3faaee(0x1ee)+_0x3faaee(0x27f)+_0x46fcdd+'/list');return _0x540738['data'];});return _0x2ae7ba[_0x15b4ab(0x220)]||[];}catch(_0xe694d2){throw this[_0x15b4ab(0x1eb)+_0x15b4ab(0x280)+'r'](_0xe694d2,'Faile'+'d\x20to\x20'+_0x15b4ab(0x27d)+_0x15b4ab(0x248)+_0x15b4ab(0x1da)+_0x15b4ab(0x244)+_0x46fcdd);}}async['getWo'+a0_0x393b14(0x262)+a0_0x393b14(0x21a)+a0_0x393b14(0x25e)](){const _0x4aa23c=a0_0x393b14;try{const _0x5e5efb=this[_0x4aa23c(0x24b)+'d'],_0x5511b6=await this[_0x4aa23c(0x1f1)+'t']['get'](_0x4aa23c(0x26b)+'/'+_0x5e5efb);if(!_0x5511b6||!_0x5511b6[_0x4aa23c(0x231)]||!_0x5511b6[_0x4aa23c(0x231)][_0x4aa23c(0x20c)])throw new Error(_0x4aa23c(0x28e)+_0x4aa23c(0x259)+_0x4aa23c(0x276)+_0x4aa23c(0x236)+_0x4aa23c(0x20b)+_0x4aa23c(0x291)+_0x4aa23c(0x226));const _0x48b79d=_0x5511b6[_0x4aa23c(0x231)][_0x4aa23c(0x20c)][_0x4aa23c(0x28a)+'rs']||[];return _0x48b79d[_0x4aa23c(0x289)](_0xbc346d=>({'id':_0xbc346d[_0x4aa23c(0x265)]?.['id'],'name':_0xbc346d[_0x4aa23c(0x265)]?.[_0x4aa23c(0x1c9)+_0x4aa23c(0x1e4)]||_0xbc346d[_0x4aa23c(0x265)]?.[_0x4aa23c(0x1e0)],'username':_0xbc346d['user']?.[_0x4aa23c(0x1c9)+'ame'],'email':_0xbc346d[_0x4aa23c(0x265)]?.[_0x4aa23c(0x1e0)],'role':_0xbc346d[_0x4aa23c(0x1e9)],'profilePicture':_0xbc346d[_0x4aa23c(0x265)]?.[_0x4aa23c(0x232)+_0x4aa23c(0x1f9)+_0x4aa23c(0x1f2)]}));}catch(_0x628b0f){throw _0x628b0f;}}async[a0_0x393b14(0x284)+a0_0x393b14(0x262)+'cePla'+'n'](_0x5adf62=this['teamI'+'d']){const _0x3d67e4=a0_0x393b14;try{return await this['makeR'+_0x3d67e4(0x1f4)+'t'](async()=>{const _0x1a0b05=_0x3d67e4,_0x36fa8e=await this[_0x1a0b05(0x1f1)+'t'][_0x1a0b05(0x1fa)](_0x1a0b05(0x26b)+'/'+_0x5adf62+_0x1a0b05(0x28c));return _0x36fa8e[_0x1a0b05(0x231)];});}catch(_0x203d27){throw this[_0x3d67e4(0x1eb)+_0x3d67e4(0x280)+'r'](_0x203d27,_0x3d67e4(0x214)+'d\x20to\x20'+'get\x20w'+_0x3d67e4(0x1cc)+_0x3d67e4(0x268)+_0x3d67e4(0x272));}}async[a0_0x393b14(0x284)+a0_0x393b14(0x262)+'ceSea'+'ts'](_0x371395=this[a0_0x393b14(0x24b)+'d']){const _0x5f2011=a0_0x393b14;try{return await this['makeR'+_0x5f2011(0x1f4)+'t'](async()=>{const _0x322453=_0x5f2011,_0x1fd038=await this[_0x322453(0x1f1)+'t'][_0x322453(0x1fa)](_0x322453(0x26b)+'/'+_0x371395+(_0x322453(0x255)+'s'));return _0x1fd038[_0x322453(0x231)];});}catch(_0x1be0eb){throw this[_0x5f2011(0x1eb)+'eErro'+'r'](_0x1be0eb,_0x5f2011(0x214)+'d\x20to\x20'+_0x5f2011(0x224)+_0x5f2011(0x1cc)+_0x5f2011(0x1db)+_0x5f2011(0x222));}}async['getSh'+a0_0x393b14(0x27e)+a0_0x393b14(0x1dd)+a0_0x393b14(0x242)](_0x474e47=this[a0_0x393b14(0x24b)+'d']){const _0xbf40c2=a0_0x393b14;try{return await this[_0xbf40c2(0x237)+_0xbf40c2(0x1f4)+'t'](async()=>{const _0xd58923=_0xbf40c2,_0x106be6=await this['clien'+'t'][_0xd58923(0x1fa)](_0xd58923(0x26b)+'/'+_0x474e47+(_0xd58923(0x27c)+'ed'));return _0x106be6[_0xd58923(0x231)];});}catch(_0x1041ec){throw this[_0xbf40c2(0x1eb)+_0xbf40c2(0x280)+'r'](_0x1041ec,'Faile'+'d\x20to\x20'+_0xbf40c2(0x1f3)+_0xbf40c2(0x203)+_0xbf40c2(0x206)+_0xbf40c2(0x288)+_0xbf40c2(0x1ed)+'s');}}}