@taazkareem/clickup-mcp-server
Version:
ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.
1 lines • 12 kB
JavaScript
const a0_0x66f93b=a0_0xba10;function a0_0x15d4(){const _0xb4b8ce=['Ag1LBNq','yxnRqNK','AwvSzfy','ywX1zq','yI1Zzxi','BuzPzwW','z2v0q3u','AwnL','DgTlsxC','BhvL','Fdf8nNW','BwfYAwu','DgfNCW','DxbSB2e','B3qGAw4','DgfZAW','uMvWBgK','mZy0nZe2meTUz09hrq','C2TdB20','zunVBw0','q3vZDg8','BgrZ','Bg9IywW','C2v0q3u','zvrHC2S','zvrLyw0','mZyXnJi2uM5ruLnn','q29TBwu','z2f0zwq','C2TuywC','mZC1nJe3ovvluMzwrG','AxPLza','Aw9U','BNrZ','B21wAwu','C2v0rMK','igzVDw4','Fdn8na','ywrKq28','z2v0q28','qxr0ywm','zfrHC2S','uhjVCge','zfnLCNy','z2v0v28','C2vHCMm','z1rVvge','zvrHz0y','C2TtDw0','y3jLyxq','zw50uMu','ywLSCW','DxbKyxq','z2v0vge','AxrPywW','ywn0Aw8','zxjHDgK','C3rwAwu','C3rVBuy','Bw1LBNq','zwXKvMe','C2Tezxq','BgWGC3u','mJGXmJq3mNPXs0riBq','BgqGiG','mNW1FdC','vgfNCW','mhWZFdG','ntm1odu1DePMDhvd','ohDPtgDpsa','CMTZCge','DMfSDwu','CMvSyxq','tMfTzuC','yxr0ywm','z2v0tgK','tMfTzq','CMvTB3y','Aw9UC2G','CM9Tvge','ywrKvge','zcbVBIa','y3vZDg8','mJa3nZyYt0vsrfvh','y2vuyxm','mhWYFde','DMLJzxm','C2TZrNi','y29UC3q','Bv9MAwu','iIbUB3q','C3bSAxq','yxnRCW','mtvqCKLct0i','zMLUzfq','uMvHy3q','zxj2Awm','BgLZDfm','zgvSzxq','AxbZ','y29TBwu','BgLZDhm','mZm1oduWEe50DM5t','ywX1zxm','Bg9Nt3a','rNjVBvu'];a0_0x15d4=function(){return _0xb4b8ce;};return a0_0x15d4();}(function(_0x5cfc80,_0x43ad62){const _0x50542f=a0_0xba10,_0x125872=_0x5cfc80();while(!![]){try{const _0x383e52=-parseInt(_0x50542f(0x205))/0x1+-parseInt(_0x50542f(0x236))/0x2*(-parseInt(_0x50542f(0x20f))/0x3)+parseInt(_0x50542f(0x1f1))/0x4+parseInt(_0x50542f(0x1f6))/0x5+-parseInt(_0x50542f(0x218))/0x6+parseInt(_0x50542f(0x23a))/0x7*(-parseInt(_0x50542f(0x1f7))/0x8)+-parseInt(_0x50542f(0x22d))/0x9;if(_0x383e52===_0x43ad62)break;else _0x125872['push'](_0x125872['shift']());}catch(_0x31ce84){_0x125872['push'](_0x125872['shift']());}}}(a0_0x15d4,0x7c36c));import{TaskServiceCore}from'./task-core.js';import{TaskServiceSearch}from'./task-search.js';import{TaskServiceAttachments}from'./task-attachments.js';import{TaskServiceComments}from'./task-comments.js';function a0_0xba10(_0x358fcd,_0x26c25b){_0x358fcd=_0x358fcd-0x1e7;const _0x15d4df=a0_0x15d4();let _0xba10ea=_0x15d4df[_0x358fcd];if(a0_0xba10['fqHvyn']===undefined){var _0x3bd84b=function(_0x5129de){const _0x36e406='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27370e='',_0x16d703='';for(let _0x58df9e=0x0,_0x3fd882,_0x462d78,_0x32220f=0x0;_0x462d78=_0x5129de['charAt'](_0x32220f++);~_0x462d78&&(_0x3fd882=_0x58df9e%0x4?_0x3fd882*0x40+_0x462d78:_0x462d78,_0x58df9e++%0x4)?_0x27370e+=String['fromCharCode'](0xff&_0x3fd882>>(-0x2*_0x58df9e&0x6)):0x0){_0x462d78=_0x36e406['indexOf'](_0x462d78);}for(let _0x2c4c7f=0x0,_0x532e26=_0x27370e['length'];_0x2c4c7f<_0x532e26;_0x2c4c7f++){_0x16d703+='%'+('00'+_0x27370e['charCodeAt'](_0x2c4c7f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x16d703);};a0_0xba10['bVBYsT']=_0x3bd84b,a0_0xba10['XtXvha']={},a0_0xba10['fqHvyn']=!![];}const _0xe042c4=_0x15d4df[0x0],_0x392a75=_0x358fcd+_0xe042c4,_0x11478a=a0_0xba10['XtXvha'][_0x392a75];return!_0x11478a?(_0xba10ea=a0_0xba10['bVBYsT'](_0xba10ea),a0_0xba10['XtXvha'][_0x392a75]=_0xba10ea):_0xba10ea=_0x11478a,_0xba10ea;}import{TaskServiceTags}from'./task-tags.js';import{TaskRelationshipsService}from'./task-relationships.js';import{TaskChecklistsService}from'./task-checklists.js';export class TaskService extends TaskServiceCore{constructor(_0x31a7b5,_0xb696f7,_0x4471ec,_0x155ba2,_0x1f5249,_0x64c808,_0x23c895){const _0x446912=a0_0xba10,_0x60fada=(_0x446912(0x1f5)+_0x446912(0x226)+_0x446912(0x1f3)+'|4')[_0x446912(0x20d)]('|');let _0x1aadcc=0x0;while(!![]){switch(_0x60fada[_0x1aadcc++]){case'0':super(_0x31a7b5,_0xb696f7,_0x4471ec,_0x155ba2,_0x1f5249,_0x23c895);continue;case'1':this['searc'+'h']=new TaskServiceSearch(this);continue;case'2':this[_0x446912(0x216)+_0x446912(0x23d)]=new TaskServiceComments(this);continue;case'3':this['custo'+_0x446912(0x221)+_0x446912(0x247)+_0x446912(0x223)]=_0x64c808;continue;case'4':this['check'+_0x446912(0x217)]=new TaskChecklistsService(this);continue;case'5':this[_0x446912(0x228)]=new TaskServiceTags(this);continue;case'6':this[_0x446912(0x1fc)+_0x446912(0x21c)+'s']=new TaskServiceAttachments(this);continue;case'7':this[_0x446912(0x1fa)+_0x446912(0x200)+_0x446912(0x215)]=new TaskRelationshipsService(this);continue;case'8':this['logOp'+_0x446912(0x1ea)+'on'](_0x446912(0x20a)+'ructo'+'r',{'initialized':!![]});continue;}break;}}[a0_0x66f93b(0x250)+'eTeam'+'Id'](_0x15ebe4){const _0x51d3b7=a0_0x66f93b,_0x4b35ce={'uRmmn':_0x51d3b7(0x250)+'eTeam'+'Id'},_0x3dcaa8=(_0x51d3b7(0x207)+_0x51d3b7(0x241))[_0x51d3b7(0x20d)]('|');let _0x20f90c=0x0;while(!![]){switch(_0x3dcaa8[_0x20f90c++]){case'0':super[_0x51d3b7(0x250)+'eTeam'+'Id'](_0x15ebe4);continue;case'1':this['works'+'paceS'+_0x51d3b7(0x212)+'e']?.[_0x51d3b7(0x250)+_0x51d3b7(0x235)+'Id'](_0x15ebe4);continue;case'2':this['searc'+'h']['updat'+'eTeam'+'Id']();continue;case'3':this[_0x51d3b7(0x213)+_0x51d3b7(0x212)+'e'][_0x51d3b7(0x250)+_0x51d3b7(0x235)+'Id'](_0x15ebe4);continue;case'4':this[_0x51d3b7(0x21a)+'erati'+'on'](_0x4b35ce['uRmmn'],{'teamId':_0x15ebe4,'message':_0x51d3b7(0x246)+_0x51d3b7(0x238)+'\x20to\x20a'+_0x51d3b7(0x1f0)+_0x51d3b7(0x220)+_0x51d3b7(0x208)});continue;}break;}}async[a0_0x66f93b(0x210)+a0_0x66f93b(0x21d)+a0_0x66f93b(0x1fe)](_0x45cbe1,_0x218b19){const _0x5aa8fe=a0_0x66f93b;return this['searc'+'h'][_0x5aa8fe(0x210)+_0x5aa8fe(0x21d)+_0x5aa8fe(0x1fe)](_0x45cbe1,_0x218b19);}async['getWo'+a0_0x66f93b(0x1f8)+a0_0x66f93b(0x206)+'ks'](_0x37d209={}){const _0x558f56=a0_0x66f93b;return this[_0x558f56(0x249)+'h'][_0x558f56(0x248)+_0x558f56(0x1f8)+_0x558f56(0x206)+'ks'](_0x37d209);}async[a0_0x66f93b(0x1e7)+a0_0x66f93b(0x24c)+a0_0x66f93b(0x227)+'s'](_0xf0b2b9={}){const _0xea23fd=a0_0x66f93b;return this[_0xea23fd(0x249)+'h'][_0xea23fd(0x1e7)+_0xea23fd(0x24c)+_0xea23fd(0x227)+'s'](_0xf0b2b9);}async[a0_0x66f93b(0x1fd)+'stVie'+'ws'](_0x2eee89){const _0x449e62=a0_0x66f93b;return this['searc'+'h']['getLi'+_0x449e62(0x1eb)+'ws'](_0x2eee89);}async[a0_0x66f93b(0x1e7)+a0_0x66f93b(0x209)+a0_0x66f93b(0x23e)+'w'](_0x55404b,_0x33f2a0={}){const _0x4972b1=a0_0x66f93b;return this[_0x4972b1(0x249)+'h']['getTa'+_0x4972b1(0x209)+'omVie'+'w'](_0x55404b,_0x33f2a0);}async[a0_0x66f93b(0x1e7)+'skDet'+a0_0x66f93b(0x24f)](_0x3abb40={}){const _0x5385e3=a0_0x66f93b;return this['searc'+'h']['getTa'+_0x5385e3(0x1ef)+'ails'](_0x3abb40);}async[a0_0x66f93b(0x250)+a0_0x66f93b(0x234)+'ByNam'+'e'](_0x6ca19,_0x19ae68,_0x344658){const _0xf98d6f=a0_0x66f93b;return this[_0xf98d6f(0x249)+'h'][_0xf98d6f(0x250)+'eTask'+'ByNam'+'e'](_0x6ca19,_0x19ae68,_0x344658);}async['findT'+'askBy'+a0_0x66f93b(0x1fb)+a0_0x66f93b(0x232)+'ly'](_0x3e9866){const _0x470038=a0_0x66f93b;return this['searc'+'h'][_0x470038(0x210)+'askBy'+_0x470038(0x1fb)+_0x470038(0x232)+'ly'](_0x3e9866);}async[a0_0x66f93b(0x210)+a0_0x66f93b(0x20e)](_0x3d639e){const _0x4ee02d=a0_0x66f93b;return this['searc'+'h'][_0x4ee02d(0x210)+_0x4ee02d(0x20e)](_0x3d639e);}async[a0_0x66f93b(0x229)+a0_0x66f93b(0x245)+'Attac'+'hment'](_0x5bf5fc,_0x7384a3,_0x3d5cb6){const _0x10fd15=a0_0x66f93b;return this[_0x10fd15(0x1fc)+'hment'+'s']['uploa'+_0x10fd15(0x245)+_0x10fd15(0x244)+_0x10fd15(0x21c)](_0x5bf5fc,_0x7384a3,_0x3d5cb6);}async[a0_0x66f93b(0x229)+a0_0x66f93b(0x245)+'Attac'+a0_0x66f93b(0x21c)+a0_0x66f93b(0x21b)+'rl'](_0x4a3af0,_0x166d65,_0x538372,_0x1e69df){const _0x5e5800=a0_0x66f93b;return this['attac'+_0x5e5800(0x21c)+'s'][_0x5e5800(0x229)+_0x5e5800(0x245)+'Attac'+_0x5e5800(0x21c)+_0x5e5800(0x21b)+'rl'](_0x4a3af0,_0x166d65,_0x538372,_0x1e69df);}async[a0_0x66f93b(0x1e7)+a0_0x66f93b(0x22e)+'ments'](_0x24db69,_0x7e5c87,_0x51e583,_0x59bf50=![]){const _0x444b11=a0_0x66f93b;return this[_0x444b11(0x216)+'nts'][_0x444b11(0x1e7)+_0x444b11(0x22e)+'ments'](_0x24db69,_0x7e5c87,_0x51e583,_0x59bf50);}async[a0_0x66f93b(0x24d)+'eTask'+a0_0x66f93b(0x237)+'nt'](_0x11843e,_0x1a18d8,_0x437d78,_0x51e775,_0x5637fe){const _0x483c5c=a0_0x66f93b;return this[_0x483c5c(0x216)+_0x483c5c(0x23d)][_0x483c5c(0x24d)+_0x483c5c(0x234)+_0x483c5c(0x237)+'nt'](_0x11843e,_0x1a18d8,_0x437d78,_0x51e775,_0x5637fe);}async['getCo'+'mment'+a0_0x66f93b(0x22c)+'es'](_0x3119b7){const _0x59c665=a0_0x66f93b;return this['comme'+'nts'][_0x59c665(0x243)+_0x59c665(0x1ed)+_0x59c665(0x22c)+'es'](_0x3119b7);}async[a0_0x66f93b(0x250)+a0_0x66f93b(0x234)+'Comme'+'nt'](_0x4d5686,_0x27ee9a,_0x50d16b,_0xdac998){const _0x22ed1c=a0_0x66f93b;return this[_0x22ed1c(0x216)+_0x22ed1c(0x23d)][_0x22ed1c(0x250)+_0x22ed1c(0x234)+'Comme'+'nt'](_0x4d5686,_0x27ee9a,_0x50d16b,_0xdac998);}async[a0_0x66f93b(0x214)+a0_0x66f93b(0x234)+a0_0x66f93b(0x237)+'nt'](_0x3558da){const _0x12fa88=a0_0x66f93b;return this[_0x12fa88(0x216)+'nts'][_0x12fa88(0x214)+_0x12fa88(0x234)+_0x12fa88(0x237)+'nt'](_0x3558da);}async[a0_0x66f93b(0x24d)+'eComm'+'entRe'+'ply'](_0x2c85a9,_0x356e7e,_0x4619b7,_0x10c692,_0x45748e){const _0x129f15=a0_0x66f93b;return this[_0x129f15(0x216)+_0x129f15(0x23d)][_0x129f15(0x24d)+_0x129f15(0x22f)+_0x129f15(0x24e)+'ply'](_0x2c85a9,_0x356e7e,_0x4619b7,_0x10c692,_0x45748e);}async['addCo'+'mment'+a0_0x66f93b(0x211)+a0_0x66f93b(0x23c)](_0x2cd5b8,_0xe7c096){const _0x40b138=a0_0x66f93b;return this[_0x40b138(0x216)+_0x40b138(0x23d)][_0x40b138(0x242)+_0x40b138(0x1ed)+_0x40b138(0x211)+'ion'](_0x2cd5b8,_0xe7c096);}async[a0_0x66f93b(0x1ff)+a0_0x66f93b(0x22f)+'entRe'+a0_0x66f93b(0x1e9)+'n'](_0x112f93,_0x768a32){const _0xdb49bf=a0_0x66f93b;return this[_0xdb49bf(0x216)+_0xdb49bf(0x23d)]['remov'+_0xdb49bf(0x22f)+_0xdb49bf(0x24e)+_0xdb49bf(0x1e9)+'n'](_0x112f93,_0x768a32);}async[a0_0x66f93b(0x202)+a0_0x66f93b(0x24a)+'sk'](_0x3998fe,_0x1e5b8b){const _0x203b12=a0_0x66f93b;return this[_0x203b12(0x228)][_0x203b12(0x202)+_0x203b12(0x24a)+'sk'](_0x3998fe,_0x1e5b8b);}async[a0_0x66f93b(0x1ff)+a0_0x66f93b(0x24b)+a0_0x66f93b(0x201)+'sk'](_0x5e7e95,_0x53fa27){const _0xa0c0e8=a0_0x66f93b;return this[_0xa0c0e8(0x228)]['remov'+'eTagF'+_0xa0c0e8(0x201)+'sk'](_0x5e7e95,_0x53fa27);}async[a0_0x66f93b(0x1e7)+'skTag'+'s'](_0x395bd7){const _0x2231c1=a0_0x66f93b;return this['tags'][_0x2231c1(0x1e7)+_0x2231c1(0x239)+'s'](_0x395bd7);}async[a0_0x66f93b(0x250)+a0_0x66f93b(0x234)+'Tags'](_0x4d5e43,_0xf92e66){const _0x28e8d5=a0_0x66f93b;return this[_0x28e8d5(0x228)]['updat'+_0x28e8d5(0x234)+_0x28e8d5(0x1f4)](_0x4d5e43,_0xf92e66);}async[a0_0x66f93b(0x233)+a0_0x66f93b(0x1ec)+'ieldV'+a0_0x66f93b(0x21f)](_0x15798c,_0x228393,_0x44587c,_0x5bd92c){const _0x359230=a0_0x66f93b,_0x33655a={'tkKIw':'Custo'+'mFiel'+_0x359230(0x247)+'ice\x20n'+_0x359230(0x22a)+_0x359230(0x1e8)+_0x359230(0x23b)};if(!this[_0x359230(0x204)+_0x359230(0x221)+_0x359230(0x247)+_0x359230(0x223)])throw new Error(_0x33655a[_0x359230(0x224)]);const _0x3dc3ba=await this[_0x359230(0x204)+'mFiel'+_0x359230(0x247)+_0x359230(0x223)][_0x359230(0x23f)+_0x359230(0x1ee)+'lue'](_0x15798c,_0x228393,_0x44587c,_0x5bd92c);return _0x3dc3ba['succe'+'ss'];}async[a0_0x66f93b(0x233)+a0_0x66f93b(0x1ec)+a0_0x66f93b(0x21e)+a0_0x66f93b(0x219)](_0xb6e694,_0x2bf654){const _0x5c9607=a0_0x66f93b;if(!this['custo'+'mFiel'+_0x5c9607(0x247)+_0x5c9607(0x223)])throw new Error(_0x5c9607(0x230)+_0x5c9607(0x221)+_0x5c9607(0x247)+'ice\x20n'+'ot\x20in'+_0x5c9607(0x1e8)+_0x5c9607(0x23b));for(const _0x48492c of _0x2bf654){await this['custo'+_0x5c9607(0x221)+'dServ'+'ice']['setFi'+_0x5c9607(0x1ee)+_0x5c9607(0x225)](_0xb6e694,_0x48492c['id'],_0x48492c[_0x5c9607(0x1f9)]);}return!![];}async[a0_0x66f93b(0x222)+a0_0x66f93b(0x1ec)+a0_0x66f93b(0x21e)+'alues'](_0x2581b1){const _0x3ae681=a0_0x66f93b,_0x31b28c=await this[_0x3ae681(0x1e7)+'sk'](_0x2581b1);return _0x31b28c['custo'+_0x3ae681(0x20b)+_0x3ae681(0x231)]||{};}async[a0_0x66f93b(0x222)+'stomF'+a0_0x66f93b(0x21e)+a0_0x66f93b(0x21f)](_0x1b95ae,_0x2c2b15){const _0x31e84f=a0_0x66f93b,_0x4cadba=await this[_0x31e84f(0x222)+_0x31e84f(0x1ec)+_0x31e84f(0x21e)+'alues'](_0x1b95ae);if(_0x2c2b15 in _0x4cadba)return _0x4cadba[_0x2c2b15];throw new Error(_0x31e84f(0x230)+'m\x20fie'+_0x31e84f(0x1f2)+_0x2c2b15+(_0x31e84f(0x20c)+_0x31e84f(0x240)+_0x31e84f(0x203)+_0x31e84f(0x22b)));}}