@taazkareem/clickup-mcp-server
Version:
ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.
1 lines • 11.8 kB
JavaScript
const a0_0xdb6b3b=a0_0x3014;function a0_0x3014(_0x5935e3,_0x50ee96){_0x5935e3=_0x5935e3-0x14d;const _0x47fb51=a0_0x47fb();let _0x3014fc=_0x47fb51[_0x5935e3];if(a0_0x3014['bKRKlj']===undefined){var _0x552584=function(_0x89edd9){const _0xf8acf6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x564b76='',_0x25f436='';for(let _0x2eaee3=0x0,_0x17e671,_0x33492d,_0x57d989=0x0;_0x33492d=_0x89edd9['charAt'](_0x57d989++);~_0x33492d&&(_0x17e671=_0x2eaee3%0x4?_0x17e671*0x40+_0x33492d:_0x33492d,_0x2eaee3++%0x4)?_0x564b76+=String['fromCharCode'](0xff&_0x17e671>>(-0x2*_0x2eaee3&0x6)):0x0){_0x33492d=_0xf8acf6['indexOf'](_0x33492d);}for(let _0x597ed9=0x0,_0x521534=_0x564b76['length'];_0x597ed9<_0x521534;_0x597ed9++){_0x25f436+='%'+('00'+_0x564b76['charCodeAt'](_0x597ed9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25f436);};a0_0x3014['nzCUMI']=_0x552584,a0_0x3014['YvKKPM']={},a0_0x3014['bKRKlj']=!![];}const _0x1c8913=_0x47fb51[0x0],_0x4d65f2=_0x5935e3+_0x1c8913,_0x172f54=a0_0x3014['YvKKPM'][_0x4d65f2];return!_0x172f54?(_0x3014fc=a0_0x3014['nzCUMI'](_0x3014fc),a0_0x3014['YvKKPM'][_0x4d65f2]=_0x3014fc):_0x3014fc=_0x172f54,_0x3014fc;}function a0_0x47fb(){const _0x3d9ea7=['vgfNCW','BwvUDhm','yxnRqNK','BwfYAwu','DxbSB2e','yxr0ywm','odu1otC2mNrfqMTTzG','y3jLyxq','ywrKvge','mZaWzuvus0jN','z2v0vge','AwvSzfy','ihrVige','yI1Zzxi','ywX1zxm','zfnLCNy','DMLJzxm','qNLoyw0','z2v0q3u','zvrHz0y','CMTZCge','AwnLig4','zvrLyw0','ywX1zq','qxr0ywm','q3vZDg8','BgqGiG','odu3nJrTAMT2wLy','z1rVvge','BuzPzwW','mtbjAuDuALe','z2Hgu20','zgvSzxq','zvrHC2S','tMfTzq','BNrZ','CMvTB3y','mta0s1L2B2H3','Bg9Nt3a','ywrKq28','BhvL','C2TtDw0','AwnL','zxjHDgK','BgLZDfm','C2Tezxq','CgfJzvm','BsbMAwu','Bw1LBNq','mZeXmtaXohrXtunRBG','C2v0rMK','C3rVBuy','DxbKyxq','ywLSCW','CMvSyxq','AxrPywW','BgrZ','mteYnta0ndfdD0LYrwm','zw50uMu','ywn0Aw8','C2TZrNi','zwXKvMe','mNHLCKvcyq','rNjVBvu','Bg9IywW','z2v0tgK','z2v0v28','Aw9U','BgLZDhm','y29TBwu','mtqZnte3qKXmB3fX','uMvWBgK','C2TuywC','uMvHy3q','y2vuyxm','CM9Tvge','zunVBw0','DMfSDwu','C3vJy2u','uhjVCge','DgfNCW','z2v0q28','C3rwAwu','AxPLza','B3qGAw4','mtyWohvss2XhwG','CgX5','C2vHCMm','zMLUzfq','B21wAwu','C2TdB20','q29TBwu','y3vZDg8','tMfTzuC','DgfZAW','mta2nde0m2LAB21tta','zcbVBIa','yxnRCW','nta2ndG1ELD3DMHv','Ag1LBNq','y29UC3q','AxbZ','C2v0q3u','zxj2Awm','zfrHC2S'];a0_0x47fb=function(){return _0x3d9ea7;};return a0_0x47fb();}(function(_0x3c46c9,_0x5f0dc3){const _0x44a706=a0_0x3014,_0x1b99c9=_0x3c46c9();while(!![]){try{const _0x39a322=-parseInt(_0x44a706(0x1a8))/0x1*(-parseInt(_0x44a706(0x187))/0x2)+parseInt(_0x44a706(0x17a))/0x3+-parseInt(_0x44a706(0x164))/0x4*(-parseInt(_0x44a706(0x152))/0x5)+parseInt(_0x44a706(0x14f))/0x6+parseInt(_0x44a706(0x1ab))/0x7*(-parseInt(_0x44a706(0x16e))/0x8)+-parseInt(_0x44a706(0x182))/0x9*(parseInt(_0x44a706(0x167))/0xa)+parseInt(_0x44a706(0x18f))/0xb*(-parseInt(_0x44a706(0x19e))/0xc);if(_0x39a322===_0x5f0dc3)break;else _0x1b99c9['push'](_0x1b99c9['shift']());}catch(_0x27e5ad){_0x1b99c9['push'](_0x1b99c9['shift']());}}}(a0_0x47fb,0xd5b0a));import{TaskServiceCore}from'./task-core.js';import{TaskServiceSearch}from'./task-search.js';import{TaskServiceAttachments}from'./task-attachments.js';import{TaskServiceComments}from'./task-comments.js';import{TaskServiceTags}from'./task-tags.js';import{TaskRelationshipsService}from'./task-relationships.js';import{TaskChecklistsService}from'./task-checklists.js';export class TaskService extends TaskServiceCore{constructor(_0x5ddffa,_0x503bbd,_0x331d57,_0x108485,_0x3482c5,_0x1869ea,_0x272bd0){const _0x3220f8=a0_0x3014;super(_0x5ddffa,_0x503bbd,_0x331d57,_0x108485,_0x3482c5,_0x272bd0),this['custo'+'mFiel'+_0x3220f8(0x158)+_0x3220f8(0x173)]=_0x1869ea,this[_0x3220f8(0x16f)+_0x3220f8(0x174)+'on'](_0x3220f8(0x1ad)+'ructo'+'r',{'initialized':!![]}),this[_0x3220f8(0x1a0)+'h']=new TaskServiceSearch(this),this[_0x3220f8(0x14e)+_0x3220f8(0x1ac)+'s']=new TaskServiceAttachments(this),this[_0x3220f8(0x18e)+_0x3220f8(0x16c)]=new TaskServiceComments(this),this[_0x3220f8(0x199)]=new TaskServiceTags(this),this[_0x3220f8(0x17f)+'ionsh'+_0x3220f8(0x1ae)]=new TaskRelationshipsService(this),this['check'+_0x3220f8(0x18d)]=new TaskChecklistsService(this);}[a0_0xdb6b3b(0x17d)+a0_0xdb6b3b(0x15f)+'Id'](_0x48578c){const _0x4092b6=a0_0xdb6b3b,_0x4fb534={'MoSrb':'updat'+'eTeam'+'Id','ghFSm':_0x4092b6(0x198)+'gated'+_0x4092b6(0x155)+'ll\x20su'+_0x4092b6(0x156)+_0x4092b6(0x159)};super[_0x4092b6(0x17d)+_0x4092b6(0x15f)+'Id'](_0x48578c),this[_0x4092b6(0x1a0)+'h'][_0x4092b6(0x17d)+'eTeam'+'Id'](),this['works'+_0x4092b6(0x177)+_0x4092b6(0x1b0)+'e']?.[_0x4092b6(0x17d)+_0x4092b6(0x15f)+'Id'](_0x48578c),this[_0x4092b6(0x175)+'ervic'+'e'][_0x4092b6(0x17d)+_0x4092b6(0x15f)+'Id'](_0x48578c),this['logOp'+_0x4092b6(0x174)+'on'](_0x4fb534['MoSrb'],{'teamId':_0x48578c,'message':_0x4fb534[_0x4092b6(0x168)]});}async[a0_0xdb6b3b(0x1a1)+'askBy'+a0_0xdb6b3b(0x16b)](_0x207b9f,_0x3c2676){const _0x4deab8=a0_0xdb6b3b;return this['searc'+'h'][_0x4deab8(0x1a1)+_0x4deab8(0x1b4)+_0x4deab8(0x16b)](_0x207b9f,_0x3c2676);}async['getWo'+a0_0xdb6b3b(0x15d)+a0_0xdb6b3b(0x193)+'ks'](_0x242c84={}){const _0x5f0244=a0_0xdb6b3b;return this['searc'+'h'][_0x5f0244(0x18b)+_0x5f0244(0x15d)+_0x5f0244(0x193)+'ks'](_0x242c84);}async[a0_0xdb6b3b(0x153)+a0_0xdb6b3b(0x172)+a0_0xdb6b3b(0x1b5)+'s'](_0x213db5={}){const _0x3e5559=a0_0xdb6b3b;return this[_0x3e5559(0x1a0)+'h'][_0x3e5559(0x153)+_0x3e5559(0x172)+_0x3e5559(0x1b5)+'s'](_0x213db5);}async[a0_0xdb6b3b(0x18a)+'stVie'+'ws'](_0x474b23){const _0x4f8d30=a0_0xdb6b3b;return this[_0x4f8d30(0x1a0)+'h'][_0x4f8d30(0x18a)+_0x4f8d30(0x19b)+'ws'](_0x474b23);}async['getTa'+a0_0xdb6b3b(0x185)+a0_0xdb6b3b(0x1a2)+'w'](_0x114b32,_0x2ec61e={}){const _0x24674b=a0_0xdb6b3b;return this[_0x24674b(0x1a0)+'h'][_0x24674b(0x153)+_0x24674b(0x185)+'omVie'+'w'](_0x114b32,_0x2ec61e);}async[a0_0xdb6b3b(0x153)+a0_0xdb6b3b(0x176)+a0_0xdb6b3b(0x17e)](_0x2e52c6={}){const _0x119d1a=a0_0xdb6b3b;return this[_0x119d1a(0x1a0)+'h']['getTa'+_0x119d1a(0x176)+_0x119d1a(0x17e)](_0x2e52c6);}async[a0_0xdb6b3b(0x17d)+'eTask'+a0_0xdb6b3b(0x15a)+'e'](_0x295e11,_0x302010,_0x3b2780){const _0xf4302c=a0_0xdb6b3b;return this[_0xf4302c(0x1a0)+'h'][_0xf4302c(0x17d)+_0xf4302c(0x16a)+_0xf4302c(0x15a)+'e'](_0x295e11,_0x302010,_0x3b2780);}async[a0_0xdb6b3b(0x1a1)+a0_0xdb6b3b(0x1b4)+'NameG'+a0_0xdb6b3b(0x189)+'ly'](_0x4262b0){const _0x102c29=a0_0xdb6b3b;return this[_0x102c29(0x1a0)+'h']['findT'+_0x102c29(0x1b4)+_0x102c29(0x1a6)+_0x102c29(0x189)+'ly'](_0x4262b0);}async[a0_0xdb6b3b(0x1a1)+a0_0xdb6b3b(0x1aa)](_0x21d542){const _0xf62d52=a0_0xdb6b3b;return this[_0xf62d52(0x1a0)+'h'][_0xf62d52(0x1a1)+_0xf62d52(0x1aa)](_0x21d542);}async[a0_0xdb6b3b(0x14d)+a0_0xdb6b3b(0x1b1)+'Attac'+a0_0xdb6b3b(0x1ac)](_0x479a2f,_0x445cd6,_0x561d0c){const _0x190f53=a0_0xdb6b3b;return this[_0x190f53(0x14e)+_0x190f53(0x1ac)+'s'][_0x190f53(0x14d)+_0x190f53(0x1b1)+_0x190f53(0x161)+_0x190f53(0x1ac)](_0x479a2f,_0x445cd6,_0x561d0c);}async['uploa'+a0_0xdb6b3b(0x1b1)+a0_0xdb6b3b(0x161)+a0_0xdb6b3b(0x1ac)+a0_0xdb6b3b(0x188)+'rl'](_0x52cf70,_0x341867,_0x24e1ea,_0x34f05a){const _0x36b392=a0_0xdb6b3b;return this[_0x36b392(0x14e)+'hment'+'s'][_0x36b392(0x14d)+_0x36b392(0x1b1)+_0x36b392(0x161)+'hment'+_0x36b392(0x188)+'rl'](_0x52cf70,_0x341867,_0x24e1ea,_0x34f05a);}async[a0_0xdb6b3b(0x153)+a0_0xdb6b3b(0x1a3)+a0_0xdb6b3b(0x1b3)](_0x2bd69b,_0x3d424f,_0x34c59b,_0xd79d5e=![]){const _0x568a3d=a0_0xdb6b3b;return this[_0x568a3d(0x18e)+_0x568a3d(0x16c)][_0x568a3d(0x153)+_0x568a3d(0x1a3)+_0x568a3d(0x1b3)](_0x2bd69b,_0x3d424f,_0x34c59b,_0xd79d5e);}async[a0_0xdb6b3b(0x150)+a0_0xdb6b3b(0x16a)+a0_0xdb6b3b(0x1a4)+'nt'](_0x4472e4,_0x58e7d5,_0x25ad47,_0x2d1ea9,_0x393d18){const _0x50dfdc=a0_0xdb6b3b;return this[_0x50dfdc(0x18e)+_0x50dfdc(0x16c)][_0x50dfdc(0x150)+_0x50dfdc(0x16a)+_0x50dfdc(0x1a4)+'nt'](_0x4472e4,_0x58e7d5,_0x25ad47,_0x2d1ea9,_0x393d18);}async[a0_0xdb6b3b(0x19a)+a0_0xdb6b3b(0x179)+a0_0xdb6b3b(0x190)+'es'](_0x2ca740){const _0x51e78e=a0_0xdb6b3b;return this[_0x51e78e(0x18e)+_0x51e78e(0x16c)][_0x51e78e(0x19a)+_0x51e78e(0x179)+_0x51e78e(0x190)+'es'](_0x2ca740);}async[a0_0xdb6b3b(0x17d)+'eTask'+a0_0xdb6b3b(0x1a4)+'nt'](_0x1c435a,_0x66e322,_0x5e8977,_0x3605e9){const _0x198da9=a0_0xdb6b3b;return this['comme'+_0x198da9(0x16c)][_0x198da9(0x17d)+'eTask'+_0x198da9(0x1a4)+'nt'](_0x1c435a,_0x66e322,_0x5e8977,_0x3605e9);}async[a0_0xdb6b3b(0x169)+a0_0xdb6b3b(0x16a)+a0_0xdb6b3b(0x1a4)+'nt'](_0x37bdff){const _0x4fcd7e=a0_0xdb6b3b;return this['comme'+_0x4fcd7e(0x16c)][_0x4fcd7e(0x169)+_0x4fcd7e(0x16a)+_0x4fcd7e(0x1a4)+'nt'](_0x37bdff);}async['creat'+a0_0xdb6b3b(0x195)+a0_0xdb6b3b(0x183)+a0_0xdb6b3b(0x19f)](_0x43e759,_0x33a6ef,_0x2ec28e,_0x153c2f,_0x2aa025){const _0x15c462=a0_0xdb6b3b;return this[_0x15c462(0x18e)+_0x15c462(0x16c)]['creat'+_0x15c462(0x195)+_0x15c462(0x183)+'ply'](_0x43e759,_0x33a6ef,_0x2ec28e,_0x153c2f,_0x2aa025);}async[a0_0xdb6b3b(0x170)+a0_0xdb6b3b(0x179)+a0_0xdb6b3b(0x192)+a0_0xdb6b3b(0x18c)](_0x54a47d,_0x2f7e33){const _0x1cdf3e=a0_0xdb6b3b;return this['comme'+_0x1cdf3e(0x16c)]['addCo'+_0x1cdf3e(0x179)+_0x1cdf3e(0x192)+'ion'](_0x54a47d,_0x2f7e33);}async['remov'+a0_0xdb6b3b(0x195)+a0_0xdb6b3b(0x183)+a0_0xdb6b3b(0x184)+'n'](_0x16b9ce,_0x4b5908){const _0x515e7f=a0_0xdb6b3b;return this[_0x515e7f(0x18e)+_0x515e7f(0x16c)]['remov'+_0x515e7f(0x195)+_0x515e7f(0x183)+_0x515e7f(0x184)+'n'](_0x16b9ce,_0x4b5908);}async['addTa'+a0_0xdb6b3b(0x165)+'sk'](_0x556f4b,_0x382f2b){const _0x1caf67=a0_0xdb6b3b;return this[_0x1caf67(0x199)][_0x1caf67(0x151)+_0x1caf67(0x165)+'sk'](_0x556f4b,_0x382f2b);}async[a0_0xdb6b3b(0x16d)+a0_0xdb6b3b(0x15c)+a0_0xdb6b3b(0x194)+'sk'](_0x4122a9,_0x386a0a){const _0x7457ef=a0_0xdb6b3b;return this[_0x7457ef(0x199)][_0x7457ef(0x16d)+_0x7457ef(0x15c)+'romTa'+'sk'](_0x4122a9,_0x386a0a);}async[a0_0xdb6b3b(0x153)+a0_0xdb6b3b(0x191)+'s'](_0x264eb9){const _0x1ba742=a0_0xdb6b3b;return this['tags']['getTa'+_0x1ba742(0x191)+'s'](_0x264eb9);}async[a0_0xdb6b3b(0x17d)+a0_0xdb6b3b(0x16a)+a0_0xdb6b3b(0x1b2)](_0x28d0cb,_0xc48169){const _0x380a08=a0_0xdb6b3b;return this[_0x380a08(0x199)][_0x380a08(0x17d)+'eTask'+_0x380a08(0x1b2)](_0x28d0cb,_0xc48169);}async[a0_0xdb6b3b(0x1af)+a0_0xdb6b3b(0x17c)+a0_0xdb6b3b(0x154)+a0_0xdb6b3b(0x160)](_0x2eee45,_0x4f5bc7,_0x594eaf,_0x561eb8){const _0x481136=a0_0xdb6b3b;if(!this['custo'+_0x481136(0x166)+_0x481136(0x158)+'ice'])throw new Error(_0x481136(0x162)+'mFiel'+_0x481136(0x158)+_0x481136(0x15e)+_0x481136(0x19d)+_0x481136(0x180)+_0x481136(0x19c));const _0x1d397f=await this[_0x481136(0x1a5)+_0x481136(0x166)+'dServ'+'ice'][_0x481136(0x17b)+'eldVa'+_0x481136(0x171)](_0x2eee45,_0x4f5bc7,_0x594eaf,_0x561eb8);return _0x1d397f[_0x481136(0x197)+'ss'];}async['setCu'+a0_0xdb6b3b(0x17c)+a0_0xdb6b3b(0x154)+a0_0xdb6b3b(0x157)](_0x4435b1,_0x42493e){const _0x1e9b22=a0_0xdb6b3b;if(!this[_0x1e9b22(0x1a5)+_0x1e9b22(0x166)+_0x1e9b22(0x158)+_0x1e9b22(0x173)])throw new Error(_0x1e9b22(0x162)+_0x1e9b22(0x166)+_0x1e9b22(0x158)+'ice\x20n'+'ot\x20in'+_0x1e9b22(0x180)+_0x1e9b22(0x19c));for(const _0x393d90 of _0x42493e){await this[_0x1e9b22(0x1a5)+_0x1e9b22(0x166)+_0x1e9b22(0x158)+'ice']['setFi'+_0x1e9b22(0x186)+'lue'](_0x4435b1,_0x393d90['id'],_0x393d90[_0x1e9b22(0x196)]);}return!![];}async[a0_0xdb6b3b(0x15b)+'stomF'+a0_0xdb6b3b(0x154)+'alues'](_0x551818){const _0x3edbfd=a0_0xdb6b3b,_0x529c86=await this[_0x3edbfd(0x153)+'sk'](_0x551818);return _0x529c86['custo'+'m_fie'+_0x3edbfd(0x181)]||{};}async['getCu'+a0_0xdb6b3b(0x17c)+a0_0xdb6b3b(0x154)+'alue'](_0x228b84,_0x23e7d6){const _0x3bee79=a0_0xdb6b3b,_0x501919=await this[_0x3bee79(0x15b)+'stomF'+'ieldV'+_0x3bee79(0x157)](_0x228b84);if(_0x23e7d6 in _0x501919)return _0x501919[_0x23e7d6];throw new Error(_0x3bee79(0x162)+_0x3bee79(0x178)+_0x3bee79(0x163)+_0x23e7d6+('\x22\x20not'+'\x20foun'+_0x3bee79(0x1a9)+_0x3bee79(0x1a7)));}}