UNPKG

@taazkareem/clickup-mcp-server

Version:

ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.

1 lines 12 kB
const a0_0x81c312=a0_0x5661;(function(_0x4433f0,_0x297a13){const _0x3f0bf4=a0_0x5661,_0x3d4298=_0x4433f0();while(!![]){try{const _0xd44f=-parseInt(_0x3f0bf4(0x11c))/0x1*(-parseInt(_0x3f0bf4(0x10e))/0x2)+parseInt(_0x3f0bf4(0x10b))/0x3+-parseInt(_0x3f0bf4(0x150))/0x4*(-parseInt(_0x3f0bf4(0x12a))/0x5)+-parseInt(_0x3f0bf4(0x159))/0x6*(-parseInt(_0x3f0bf4(0x16e))/0x7)+-parseInt(_0x3f0bf4(0x122))/0x8+-parseInt(_0x3f0bf4(0x135))/0x9*(-parseInt(_0x3f0bf4(0x13e))/0xa)+-parseInt(_0x3f0bf4(0x11b))/0xb;if(_0xd44f===_0x297a13)break;else _0x3d4298['push'](_0x3d4298['shift']());}catch(_0x990c60){_0x3d4298['push'](_0x3d4298['shift']());}}}(a0_0x40a3,0x3da66));import{BaseClickUpService}from'./base.js';function a0_0x5661(_0x2994fb,_0xadd10f){_0x2994fb=_0x2994fb-0x109;const _0x40a361=a0_0x40a3();let _0x56617e=_0x40a361[_0x2994fb];if(a0_0x5661['PPEVaa']===undefined){var _0x1963fa=function(_0xa0d4ae){const _0x6fcb65='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x172ea9='',_0x2baab='';for(let _0x162348=0x0,_0x3d5e37,_0x8e8aa7,_0xf5fb51=0x0;_0x8e8aa7=_0xa0d4ae['charAt'](_0xf5fb51++);~_0x8e8aa7&&(_0x3d5e37=_0x162348%0x4?_0x3d5e37*0x40+_0x8e8aa7:_0x8e8aa7,_0x162348++%0x4)?_0x172ea9+=String['fromCharCode'](0xff&_0x3d5e37>>(-0x2*_0x162348&0x6)):0x0){_0x8e8aa7=_0x6fcb65['indexOf'](_0x8e8aa7);}for(let _0x2ea4ab=0x0,_0x4356b9=_0x172ea9['length'];_0x2ea4ab<_0x4356b9;_0x2ea4ab++){_0x2baab+='%'+('00'+_0x172ea9['charCodeAt'](_0x2ea4ab)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2baab);};a0_0x5661['UPNWuI']=_0x1963fa,a0_0x5661['pmWsTT']={},a0_0x5661['PPEVaa']=!![];}const _0x414ff8=_0x40a361[0x0],_0x5433b1=_0x2994fb+_0x414ff8,_0x50c7bd=a0_0x5661['pmWsTT'][_0x5433b1];return!_0x50c7bd?(_0x56617e=a0_0x5661['UPNWuI'](_0x56617e),a0_0x5661['pmWsTT'][_0x5433b1]=_0x56617e):_0x56617e=_0x50c7bd,_0x56617e;}export class ViewService extends BaseClickUpService{async[a0_0x81c312(0x120)+a0_0x81c312(0x157)+a0_0x81c312(0x12b)+'ws'](_0x1e001a){const _0x35b4ec=a0_0x81c312,_0x4f8eda={'WLiVP':_0x35b4ec(0x162)},_0x2d1406=_0x1e001a||this['teamI'+'d'];return this['trace'+'Reque'+'st'](_0x4f8eda[_0x35b4ec(0x117)],_0x35b4ec(0x15e)+'/'+_0x2d1406+_0x35b4ec(0x12c)),this[_0x35b4ec(0x130)+_0x35b4ec(0x169)+'est'](_0x2d1406,()=>this[_0x35b4ec(0x15d)+'t'][_0x35b4ec(0x125)](_0x35b4ec(0x15e)+'/'+_0x2d1406+_0x35b4ec(0x12c)),_0x35b4ec(0x15c)+_0x35b4ec(0x131)+_0x35b4ec(0x124)+_0x35b4ec(0x146)+_0x35b4ec(0x161)+_0x35b4ec(0x16c));}async['creat'+'eWork'+a0_0x81c312(0x149)+a0_0x81c312(0x145)](_0x4324d0,_0x3dfe05){const _0x3bc2fb=a0_0x81c312,_0x5ae874={'HGKFt':'POST','gAyGE':'Faile'+_0x3bc2fb(0x131)+_0x3bc2fb(0x126)+_0x3bc2fb(0x132)+_0x3bc2fb(0x14e)+'e\x20vie'+'w'},_0x149fd4=_0x4324d0||this[_0x3bc2fb(0x163)+'d'];return this[_0x3bc2fb(0x168)+'Reque'+'st'](_0x5ae874[_0x3bc2fb(0x15f)],_0x3bc2fb(0x15e)+'/'+_0x149fd4+_0x3bc2fb(0x12c),_0x3dfe05),this[_0x3bc2fb(0x130)+_0x3bc2fb(0x169)+_0x3bc2fb(0x11d)](_0x149fd4,()=>this[_0x3bc2fb(0x15d)+'t'][_0x3bc2fb(0x15a)](_0x3bc2fb(0x15e)+'/'+_0x149fd4+_0x3bc2fb(0x12c),_0x3dfe05),_0x5ae874['gAyGE']);}async['getSp'+a0_0x81c312(0x11e)+a0_0x81c312(0x136)](_0x205a52){const _0x6038f6=a0_0x81c312,_0x24eac4={'Jbgpx':_0x6038f6(0x15c)+'d\x20to\x20'+'get\x20s'+'pace\x20'+_0x6038f6(0x13b)};return this[_0x6038f6(0x168)+_0x6038f6(0x16b)+'st']('GET',_0x6038f6(0x116)+'e/'+_0x205a52+_0x6038f6(0x12c)),this['handl'+_0x6038f6(0x169)+'est'](_0x205a52,()=>this['clien'+'t'][_0x6038f6(0x125)](_0x6038f6(0x116)+'e/'+_0x205a52+_0x6038f6(0x12c)),_0x24eac4['Jbgpx']);}async['creat'+a0_0x81c312(0x172)+a0_0x81c312(0x143)](_0x4e7f84,_0x28fcda){const _0xcd89f3=a0_0x81c312,_0x34f6ee={'oKEwb':_0xcd89f3(0x12d),'VddIf':'Faile'+_0xcd89f3(0x131)+'creat'+'e\x20spa'+_0xcd89f3(0x14b)+'ew'};return this[_0xcd89f3(0x168)+_0xcd89f3(0x16b)+'st'](_0x34f6ee['oKEwb'],_0xcd89f3(0x116)+'e/'+_0x4e7f84+_0xcd89f3(0x12c),_0x28fcda),this[_0xcd89f3(0x130)+_0xcd89f3(0x169)+_0xcd89f3(0x11d)](_0x4e7f84,()=>this[_0xcd89f3(0x15d)+'t'][_0xcd89f3(0x15a)](_0xcd89f3(0x116)+'e/'+_0x4e7f84+'/view',_0x28fcda),_0x34f6ee['VddIf']);}async[a0_0x81c312(0x14d)+a0_0x81c312(0x147)+a0_0x81c312(0x16c)](_0x1bb8c5){const _0x1aefeb=a0_0x81c312;return this['trace'+_0x1aefeb(0x16b)+'st']('GET',_0x1aefeb(0x160)+_0x1aefeb(0x123)+_0x1bb8c5+_0x1aefeb(0x12c)),this['handl'+_0x1aefeb(0x169)+'est'](_0x1bb8c5,()=>this[_0x1aefeb(0x15d)+'t'][_0x1aefeb(0x125)]('/fold'+_0x1aefeb(0x123)+_0x1bb8c5+_0x1aefeb(0x12c)),_0x1aefeb(0x15c)+'d\x20to\x20'+'get\x20f'+'older'+_0x1aefeb(0x156)+'s');}async['creat'+a0_0x81c312(0x170)+a0_0x81c312(0x127)+'w'](_0x4645a7,_0x15ca82){const _0x153a9b=a0_0x81c312;return this[_0x153a9b(0x168)+_0x153a9b(0x16b)+'st'](_0x153a9b(0x12d),_0x153a9b(0x160)+'er/'+_0x4645a7+'/view',_0x15ca82),this[_0x153a9b(0x130)+'eRequ'+_0x153a9b(0x11d)](_0x4645a7,()=>this['clien'+'t']['post'](_0x153a9b(0x160)+_0x153a9b(0x123)+_0x4645a7+_0x153a9b(0x12c),_0x15ca82),'Faile'+_0x153a9b(0x131)+_0x153a9b(0x126)+_0x153a9b(0x13d)+_0x153a9b(0x12e)+'iew');}async[a0_0x81c312(0x140)+'stVie'+'ws'](_0x35b605){const _0x1e09df=a0_0x81c312,_0x3fb085={'aJwoD':_0x1e09df(0x15c)+'d\x20to\x20'+_0x1e09df(0x10d)+_0x1e09df(0x139)+_0x1e09df(0x16c)};return this[_0x1e09df(0x168)+'Reque'+'st'](_0x1e09df(0x162),_0x1e09df(0x153)+'/'+_0x35b605+'/view'),this[_0x1e09df(0x130)+_0x1e09df(0x169)+'est'](_0x35b605,()=>this[_0x1e09df(0x15d)+'t'][_0x1e09df(0x125)]('/list'+'/'+_0x35b605+'/view'),_0x3fb085[_0x1e09df(0x141)]);}async[a0_0x81c312(0x126)+a0_0x81c312(0x164)+a0_0x81c312(0x145)](_0x271d75,_0x2a8665){const _0x30c196=a0_0x81c312,_0x56b30b={'MGDWu':'POST'};return this['trace'+_0x30c196(0x16b)+'st'](_0x56b30b[_0x30c196(0x13a)],_0x30c196(0x153)+'/'+_0x271d75+'/view',_0x2a8665),this[_0x30c196(0x130)+_0x30c196(0x169)+_0x30c196(0x11d)](_0x271d75,()=>this[_0x30c196(0x15d)+'t'][_0x30c196(0x15a)](_0x30c196(0x153)+'/'+_0x271d75+_0x30c196(0x12c),_0x2a8665),_0x30c196(0x15c)+_0x30c196(0x131)+_0x30c196(0x126)+'e\x20lis'+'t\x20vie'+'w');}async[a0_0x81c312(0x171)+'ew'](_0x534b25){const _0x12ea7c=a0_0x81c312,_0x142433={'JNiGT':'Faile'+_0x12ea7c(0x131)+'get\x20v'+_0x12ea7c(0x13f)};this[_0x12ea7c(0x168)+_0x12ea7c(0x16b)+'st'](_0x12ea7c(0x162),_0x12ea7c(0x12c)+'/'+_0x534b25);try{const _0x68ef4a=await this[_0x12ea7c(0x148)+'eques'+'t'](()=>this['clien'+'t'][_0x12ea7c(0x125)](_0x12ea7c(0x12c)+'/'+_0x534b25)),_0x5bca2f=_0x68ef4a[_0x12ea7c(0x14f)]?.[_0x12ea7c(0x121)]||_0x68ef4a[_0x12ea7c(0x14f)];return{'success':!![],'data':{'view':_0x5bca2f}};}catch(_0x54935d){return this[_0x12ea7c(0x14c)+'r'][_0x12ea7c(0x144)](_0x12ea7c(0x15c)+'d\x20to\x20'+_0x12ea7c(0x142)+_0x12ea7c(0x134)+_0x534b25,_0x54935d),{'success':![],'error':{'message':_0x54935d[_0x12ea7c(0x12f)+'ge']||_0x142433[_0x12ea7c(0x152)],'code':_0x54935d[_0x12ea7c(0x14a)],'details':_0x54935d['data']}};}}async[a0_0x81c312(0x114)+a0_0x81c312(0x143)](_0x235102,_0x2e07c7){const _0x17cf55=a0_0x81c312;this[_0x17cf55(0x168)+_0x17cf55(0x16b)+'st'](_0x17cf55(0x119),_0x17cf55(0x12c)+'/'+_0x235102,_0x2e07c7);try{const _0x1d6fcb=await this[_0x17cf55(0x148)+_0x17cf55(0x10f)+'t'](()=>this[_0x17cf55(0x15d)+'t'][_0x17cf55(0x137)](_0x17cf55(0x12c)+'/'+_0x235102,_0x2e07c7)),_0x5bbbdc=_0x1d6fcb[_0x17cf55(0x14f)]?.['view']||_0x1d6fcb['data'];return{'success':!![],'data':{'view':_0x5bbbdc}};}catch(_0x12c7da){return this[_0x17cf55(0x14c)+'r'][_0x17cf55(0x144)](_0x17cf55(0x15c)+_0x17cf55(0x131)+_0x17cf55(0x114)+'e\x20vie'+_0x17cf55(0x16d)+_0x235102,_0x12c7da),{'success':![],'error':{'message':_0x12c7da[_0x17cf55(0x12f)+'ge']||_0x17cf55(0x15c)+'d\x20to\x20'+_0x17cf55(0x114)+_0x17cf55(0x10c)+'w','code':_0x12c7da[_0x17cf55(0x14a)],'details':_0x12c7da[_0x17cf55(0x14f)]}};}}async[a0_0x81c312(0x129)+a0_0x81c312(0x143)](_0x94c0e){const _0x30ecef=a0_0x81c312;this[_0x30ecef(0x168)+'Reque'+'st']('DELET'+'E',_0x30ecef(0x12c)+'/'+_0x94c0e);try{return await this[_0x30ecef(0x148)+_0x30ecef(0x10f)+'t'](()=>this[_0x30ecef(0x15d)+'t']['delet'+'e'](_0x30ecef(0x12c)+'/'+_0x94c0e)),{'success':!![]};}catch(_0x2a55f8){return this[_0x30ecef(0x14c)+'r'][_0x30ecef(0x144)]('Faile'+_0x30ecef(0x131)+_0x30ecef(0x129)+_0x30ecef(0x10c)+'w:\x20'+_0x94c0e,_0x2a55f8),{'success':![],'error':{'message':_0x2a55f8[_0x30ecef(0x12f)+'ge']||'Faile'+_0x30ecef(0x131)+_0x30ecef(0x129)+'e\x20vie'+'w','code':_0x2a55f8[_0x30ecef(0x14a)],'details':_0x2a55f8[_0x30ecef(0x14f)]}};}}async['getVi'+a0_0x81c312(0x151)+a0_0x81c312(0x128)](_0x39896b){const _0x133604=a0_0x81c312;this[_0x133604(0x168)+_0x133604(0x16b)+'st'](_0x133604(0x162),_0x133604(0x12c)+'/'+_0x39896b+('/comm'+_0x133604(0x154)));try{const _0x51f5b0=await this['makeR'+_0x133604(0x10f)+'t'](()=>this[_0x133604(0x15d)+'t']['get'](_0x133604(0x12c)+'/'+_0x39896b+(_0x133604(0x166)+_0x133604(0x154))));return _0x51f5b0[_0x133604(0x14f)][_0x133604(0x10a)+'nts']||[];}catch(_0x13a6bd){throw _0x13a6bd;}}async['creat'+'eView'+'Comme'+'nt'](_0x18d24a,_0x28bbf7,_0x49727c=![],_0x303520,_0x1ee1dd){const _0xa8c94f=a0_0x81c312,_0x162a29={'TLwVY':_0xa8c94f(0x12d),'obuaI':function(_0x3716df,_0x398042){return _0x3716df===_0x398042;},'VSEeF':_0xa8c94f(0x11f)+'t','IMYFu':_0xa8c94f(0x167)+'wn'};this['trace'+_0xa8c94f(0x16b)+'st'](_0x162a29[_0xa8c94f(0x15b)],'/view'+'/'+_0x18d24a+(_0xa8c94f(0x166)+_0xa8c94f(0x154)));try{const _0x4c980a={'notify_all':_0x49727c};if(_0x303520)_0x4c980a[_0xa8c94f(0x115)+_0xa8c94f(0x165)]=_0x303520;if(_0x1ee1dd)_0x4c980a[_0xa8c94f(0x10a)+'nt']=_0x1ee1dd;else _0x28bbf7&&(_0x4c980a[_0xa8c94f(0x10a)+'nt_te'+'xt']=_0x28bbf7);const _0x2075f4=await this['makeR'+_0xa8c94f(0x10f)+'t'](()=>this[_0xa8c94f(0x15d)+'t']['post'](_0xa8c94f(0x12c)+'/'+_0x18d24a+('/comm'+_0xa8c94f(0x154)),_0x4c980a)),_0x24c719=_0x2075f4[_0xa8c94f(0x14f)];if(_0x24c719[_0xa8c94f(0x10a)+'nt']&&_0x162a29[_0xa8c94f(0x155)](typeof _0x24c719[_0xa8c94f(0x10a)+'nt'],_0x162a29[_0xa8c94f(0x113)])&&_0x24c719[_0xa8c94f(0x10a)+'nt']['id'])return _0x24c719['comme'+'nt'];if(_0x24c719['id'])return _0x24c719;return{'id':_0xa8c94f(0x133)+'ack-'+Date[_0xa8c94f(0x11a)](),'comment':_0x28bbf7,'comment_text':_0x28bbf7,'user':{'id':0x0,'username':_0x162a29[_0xa8c94f(0x110)],'email':'','color':''},'date':new Date()[_0xa8c94f(0x109)+_0xa8c94f(0x13c)+'g'](),'resolved':![]};}catch(_0xe1a50d){throw _0xe1a50d;}}async[a0_0x81c312(0x171)+a0_0x81c312(0x16f)+'ks'](_0x489fc5,_0x3a9bbd){const _0x901d81=a0_0x81c312,_0x43125a={'hUdBr':_0x901d81(0x162),'vUpFb':function(_0x2c7930,_0x31224a){return _0x2c7930!==_0x31224a;}};this[_0x901d81(0x168)+_0x901d81(0x16b)+'st'](_0x43125a[_0x901d81(0x158)],_0x901d81(0x12c)+'/'+_0x489fc5+_0x901d81(0x138));const _0x3ba850={};return _0x43125a[_0x901d81(0x16a)](_0x3a9bbd,undefined)&&(_0x3ba850[_0x901d81(0x112)]=_0x3a9bbd),this[_0x901d81(0x130)+_0x901d81(0x169)+'est'](_0x489fc5,()=>this[_0x901d81(0x15d)+'t']['get']('/view'+'/'+_0x489fc5+'/task',{'params':_0x3ba850}),_0x901d81(0x15c)+_0x901d81(0x131)+_0x901d81(0x118)+'asks\x20'+_0x901d81(0x111)+_0x901d81(0x13f));}}function a0_0x40a3(){const _0x449ea4=['y2uGDMK','Bg9Nz2u','z2v0rM8','A3nWywm','zgf0yq','nfziwKnisG','zxDdB20','sK5Pr1q','l2XPC3q','zw50','B2j1yuK','ihzPzxC','CMTZCge','AfvKqNi','mJyXmgvrt29uBa','Cg9ZDa','veX3vLK','rMfPBgu','y2XPzw4','l3rLyw0','seDlrNq','l2zVBgq','ywnLihy','r0vu','DgvHBuK','zuXPC3q','BMvL','l2nVBw0','vw5RBM8','DhjHy2u','zvjLCxu','DLvWrMi','uMvXDwu','Awv3CW','DZOG','otaZqKz5CgLJ','zxDuyxm','zuzVBgq','z2v0vMK','zvnWywm','Dg9ju08','y29TBwu','ndy4ntu1rKjJCuDI','zsb2Awu','z2v0igW','mtjbtxHPwNy','zxf1zxm','su1zrNu','zM9Yihy','CgfNzq','vLnfzuy','DxbKyxq','yxnZAwC','l3nWywm','v0XPvLa','z2v0ihq','ufvu','BM93','nZK1mdHyy3v1EgO','mZCXodzRrLzsteG','zxn0','ywnLvMK','B2jQzwm','z2v0v28','DMLLDW','mZGYnZaZmLPrDLzTwa','zxiV','z2v0ihC','z2v0','y3jLyxq','zxjwAwu','BwvUDhm','zgvSzxq','mte3nJC4nwnTserdzW','y2vwAwu','l3zPzxC','ue9tva','zgvYihy','BwvZC2e','AgfUzgW','zcb0BYa','zsb3B3i','zMfSBgi','Awv3oIa','mZaZmdG0ANfgB0rW','zxDZ','Chv0','l3rHC2S','Axn0ihy','tuDev3u','DMLLD3m','u3rYAw4','zsbMB2W','mJbJvurUD3K','Awv3','z2v0tgK','yuP3B0q','z2v0ihy','zvzPzxC','zxjYB3i','vMLLDW','B3jRC3a','BgrLCLy','BwfRzvi','C3bHy2u','y29Kzq'];a0_0x40a3=function(){return _0x449ea4;};return a0_0x40a3();}