UNPKG

@taazkareem/clickup-mcp-server

Version:

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

1 lines 12.1 kB
function a0_0x4c76(){const _0x36d8ee=['D3zICNa','zcb0BYa','ywnLihy','Awv3CW','sgHtqu4','zxDdB20','Cg9ZDa','C3rwAwu','z2v0tgK','DxbKyxq','ue9tva','y3jLyxq','BNrZ','l2nVBw0','z2v0ihq','Chv0','CgfJzsa','mty1mM5Vt2Pcta','BM93','mtbXr2nxANi','y29TBwu','zuzVBgq','zKLzsuq','y2vwAwu','odv1zKjNu1i','BwvZC2e','B3jRC3a','zxDuyxm','ufvu','Bhb6zuO','uMXwwhy','revmrvq','uMvXDwu','DhjHy2u','zM9Yihy','BMvL','ywnRlq','nJu1mLjJtNHyDa','nZyWndyXmxfgAKvQuq','weHOwgG','vMLLDW','zMfSBgi','D2fnuvi','zxf1zxm','zsb2Awu','vgDJveS','ihzPzxC','l3nWywm','y2XPzw4','Axn0ihy','z2v0ihy','AgfUzgW','BNrFDgu','yLPgCLC','odG1nZm0mxn4EvPSEa','mta2nJyXmMDYsw5TrW','ode3mtruvK5cyNa','zxjYB3i','zvzPzxC','zgvYihy','Dcb2Awu','Dg9ju08','zxiV','l3zPzxC','B2XKzxi','zxjwAwu','Eurwv0G','z2v0','z2v0vMK','A3nWywm','t2DWswK','zxn0','mZC4nJK3BvDXt2Hc','ywnLvMK','zsbMB2W','mK1tuLb1Bq','B2jQzwm','wKTVyK8','u3rYAw4','zw50','zsbSAxm','DMLLD3m','zgvSzxq','l3rHC2S','CgfNzq','DZOG','zsbZCge','l2XPC3q','z2v0ihm','DMLLDW','z2v0igW','z2v0rM8','y29Kzq','EMPTAMS','otC0ntK5mNPdr1b4CW','l2zVBgq','rMfPBgu','Awv3oIa','z2v0ihC','Bg9Nz2u','CMTZCge','DgvHBuK','z2v0v28','z2v0u3a','BwfRzvi','Awv3','zgf0yq','r0vu','l3rLyw0','odrfuwTcBwO','zvjLCxu','AK1nCg4','yxnRCYa'];a0_0x4c76=function(){return _0x36d8ee;};return a0_0x4c76();}function a0_0x160e(_0xe52241,_0x2a07fc){_0xe52241=_0xe52241-0xa5;const _0x4c76af=a0_0x4c76();let _0x160ee6=_0x4c76af[_0xe52241];if(a0_0x160e['AnwOIh']===undefined){var _0xf01173=function(_0x3f8c5d){const _0x557b15='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4db9f0='',_0x1de10d='';for(let _0x2f7fc3=0x0,_0xed87fa,_0x15828f,_0x59c3fd=0x0;_0x15828f=_0x3f8c5d['charAt'](_0x59c3fd++);~_0x15828f&&(_0xed87fa=_0x2f7fc3%0x4?_0xed87fa*0x40+_0x15828f:_0x15828f,_0x2f7fc3++%0x4)?_0x4db9f0+=String['fromCharCode'](0xff&_0xed87fa>>(-0x2*_0x2f7fc3&0x6)):0x0){_0x15828f=_0x557b15['indexOf'](_0x15828f);}for(let _0x2c9a14=0x0,_0x4175cc=_0x4db9f0['length'];_0x2c9a14<_0x4175cc;_0x2c9a14++){_0x1de10d+='%'+('00'+_0x4db9f0['charCodeAt'](_0x2c9a14)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1de10d);};a0_0x160e['gVAJvU']=_0xf01173,a0_0x160e['GnlmoL']={},a0_0x160e['AnwOIh']=!![];}const _0x44b73f=_0x4c76af[0x0],_0x3eb700=_0xe52241+_0x44b73f,_0x42a4f7=a0_0x160e['GnlmoL'][_0x3eb700];return!_0x42a4f7?(_0x160ee6=a0_0x160e['gVAJvU'](_0x160ee6),a0_0x160e['GnlmoL'][_0x3eb700]=_0x160ee6):_0x160ee6=_0x42a4f7,_0x160ee6;}const a0_0xd85d55=a0_0x160e;(function(_0xcd7f5c,_0x4f75b9){const _0x1803a8=a0_0x160e,_0x514bd1=_0xcd7f5c();while(!![]){try{const _0x35461d=parseInt(_0x1803a8(0xc7))/0x1*(parseInt(_0x1803a8(0xdb))/0x2)+-parseInt(_0x1803a8(0xb5))/0x3*(-parseInt(_0x1803a8(0x112))/0x4)+parseInt(_0x1803a8(0xa8))/0x5*(parseInt(_0x1803a8(0xc8))/0x6)+-parseInt(_0x1803a8(0xb6))/0x7+-parseInt(_0x1803a8(0xee))/0x8+parseInt(_0x1803a8(0xc6))/0x9*(parseInt(_0x1803a8(0x114))/0xa)+parseInt(_0x1803a8(0xd8))/0xb*(-parseInt(_0x1803a8(0xfd))/0xc);if(_0x35461d===_0x4f75b9)break;else _0x514bd1['push'](_0x514bd1['shift']());}catch(_0x2f8c3c){_0x514bd1['push'](_0x514bd1['shift']());}}}(a0_0x4c76,0x9bec9));import{BaseClickUpService}from'./base.js';export class ViewService extends BaseClickUpService{async[a0_0xd85d55(0xf6)+a0_0xd85d55(0xf4)+a0_0xd85d55(0xa7)+'ws'](_0x55e29e){const _0x5b9f1c=a0_0xd85d55,_0x2ab4d0={'HhSAN':_0x5b9f1c(0xf0)+_0x5b9f1c(0x102)+_0x5b9f1c(0xf2)+_0x5b9f1c(0xaa)+_0x5b9f1c(0x103)+_0x5b9f1c(0x104)},_0x5e0342=_0x55e29e||this[_0x5b9f1c(0xf5)+'d'];return this['trace'+_0x5b9f1c(0xb0)+'st'](_0x5b9f1c(0xfb),'/team'+'/'+_0x5e0342+_0x5b9f1c(0xcf)),this[_0x5b9f1c(0xc3)+_0x5b9f1c(0xfe)+'est'](_0x5e0342,()=>this['clien'+'t']['get']('/team'+'/'+_0x5e0342+'/view'),_0x2ab4d0[_0x5b9f1c(0x105)]);}async[a0_0xd85d55(0x10c)+'eWork'+'space'+a0_0xd85d55(0xb8)](_0x1e5a29,_0x71b5fa){const _0x2f1009=a0_0xd85d55,_0x1e3540={'wvbrp':_0x2f1009(0x10b),'RlVXv':_0x2f1009(0xf0)+'d\x20to\x20'+_0x2f1009(0x10c)+'e\x20wor'+_0x2f1009(0xd5)+'e\x20vie'+'w'},_0x5527e8=_0x1e5a29||this[_0x2f1009(0xf5)+'d'];return this[_0x2f1009(0xb1)+_0x2f1009(0xb0)+'st'](_0x1e3540[_0x2f1009(0x101)],_0x2f1009(0xfc)+'/'+_0x5527e8+_0x2f1009(0xcf),_0x71b5fa),this[_0x2f1009(0xc3)+'eRequ'+_0x2f1009(0xd7)](_0x5527e8,()=>this[_0x2f1009(0xc0)+'t'][_0x2f1009(0x107)](_0x2f1009(0xfc)+'/'+_0x5527e8+_0x2f1009(0xcf),_0x71b5fa),_0x1e3540[_0x2f1009(0xae)]);}async[a0_0xd85d55(0xf7)+a0_0xd85d55(0xd9)+'ews'](_0x2f7922){const _0x4f4499=a0_0xd85d55;return this['trace'+_0x4f4499(0xb0)+'st'](_0x4f4499(0xfb),_0x4f4499(0xbf)+'e/'+_0x2f7922+_0x4f4499(0xcf)),this[_0x4f4499(0xc3)+_0x4f4499(0xfe)+_0x4f4499(0xd7)](_0x2f7922,()=>this['clien'+'t'][_0x4f4499(0xd3)](_0x4f4499(0xbf)+'e/'+_0x2f7922+'/view'),'Faile'+_0x4f4499(0x102)+_0x4f4499(0xe8)+_0x4f4499(0x111)+_0x4f4499(0xe1));}async[a0_0xd85d55(0x10c)+'eSpac'+a0_0xd85d55(0xca)](_0x18db25,_0x314a66){const _0xee94f4=a0_0xd85d55,_0xe8fd58={'bZFrW':_0xee94f4(0x10b)};return this[_0xee94f4(0xb1)+_0xee94f4(0xb0)+'st'](_0xe8fd58[_0xee94f4(0xc5)],_0xee94f4(0xbf)+'e/'+_0x18db25+'/view',_0x314a66),this[_0xee94f4(0xc3)+_0xee94f4(0xfe)+_0xee94f4(0xd7)](_0x18db25,()=>this[_0xee94f4(0xc0)+'t'][_0xee94f4(0x107)](_0xee94f4(0xbf)+'e/'+_0x18db25+_0xee94f4(0xcf),_0x314a66),_0xee94f4(0xf0)+_0xee94f4(0x102)+'creat'+_0xee94f4(0xe6)+'ce\x20vi'+'ew');}async[a0_0xd85d55(0xeb)+'lderV'+a0_0xd85d55(0x104)](_0x2aee4e){const _0x10978d=a0_0xd85d55,_0x315e72={'fIYID':_0x10978d(0xf0)+_0x10978d(0x102)+'get\x20f'+_0x10978d(0xd0)+_0x10978d(0xbe)+'s'};return this['trace'+_0x10978d(0xb0)+'st']('GET',_0x10978d(0xef)+'er/'+_0x2aee4e+_0x10978d(0xcf)),this[_0x10978d(0xc3)+_0x10978d(0xfe)+_0x10978d(0xd7)](_0x2aee4e,()=>this[_0x10978d(0xc0)+'t'][_0x10978d(0xd3)](_0x10978d(0xef)+_0x10978d(0xce)+_0x2aee4e+_0x10978d(0xcf)),_0x315e72[_0x10978d(0xa6)]);}async[a0_0xd85d55(0x10c)+a0_0xd85d55(0xa5)+a0_0xd85d55(0xd1)+'w'](_0x1b2436,_0x20566e){const _0x3034c9=a0_0xd85d55,_0x3a951e={'TgcTK':_0x3034c9(0x10b)};return this[_0x3034c9(0xb1)+'Reque'+'st'](_0x3a951e[_0x3034c9(0xbd)],'/fold'+_0x3034c9(0xce)+_0x1b2436+_0x3034c9(0xcf),_0x20566e),this[_0x3034c9(0xc3)+'eRequ'+_0x3034c9(0xd7)](_0x1b2436,()=>this['clien'+'t'][_0x3034c9(0x107)](_0x3034c9(0xef)+_0x3034c9(0xce)+_0x1b2436+_0x3034c9(0xcf),_0x20566e),_0x3034c9(0xf0)+_0x3034c9(0x102)+_0x3034c9(0x10c)+_0x3034c9(0xda)+_0x3034c9(0xcb)+_0x3034c9(0xf9));}async[a0_0xd85d55(0x109)+a0_0xd85d55(0x108)+'ws'](_0x24c3ed){const _0x59709f=a0_0xd85d55,_0x12f802={'ZKobO':_0x59709f(0xf0)+_0x59709f(0x102)+_0x59709f(0xea)+_0x59709f(0xc1)+_0x59709f(0x104)};return this['trace'+'Reque'+'st'](_0x59709f(0xfb),_0x59709f(0xe7)+'/'+_0x24c3ed+_0x59709f(0xcf)),this[_0x59709f(0xc3)+_0x59709f(0xfe)+'est'](_0x24c3ed,()=>this[_0x59709f(0xc0)+'t'][_0x59709f(0xd3)](_0x59709f(0xe7)+'/'+_0x24c3ed+_0x59709f(0xcf)),_0x12f802[_0x59709f(0xdd)]);}async[a0_0xd85d55(0x10c)+'eList'+'View'](_0x4d9330,_0x53927a){const _0x113439=a0_0xd85d55,_0x4d17ed={'jMMpn':_0x113439(0x10b)};return this[_0x113439(0xb1)+_0x113439(0xb0)+'st'](_0x4d17ed[_0x113439(0xff)],'/list'+'/'+_0x4d9330+_0x113439(0xcf),_0x53927a),this[_0x113439(0xc3)+'eRequ'+'est'](_0x4d9330,()=>this['clien'+'t'][_0x113439(0x107)](_0x113439(0xe7)+'/'+_0x4d9330+'/view',_0x53927a),'Faile'+_0x113439(0x102)+_0x113439(0x10c)+_0x113439(0xe0)+_0x113439(0xcc)+'w');}async['getVi'+'ew'](_0x23c773){const _0x411a82=a0_0xd85d55,_0x1d15b1={'LWfBX':_0x411a82(0xfb)};this[_0x411a82(0xb1)+_0x411a82(0xb0)+'st'](_0x1d15b1['LWfBX'],_0x411a82(0xcf)+'/'+_0x23c773);try{const _0x4889af=await this[_0x411a82(0xf8)+'eques'+'t'](()=>this[_0x411a82(0xc0)+'t'][_0x411a82(0xd3)]('/view'+'/'+_0x23c773)),_0x326874=_0x4889af[_0x411a82(0xfa)]?.[_0x411a82(0xe9)]||_0x4889af[_0x411a82(0xfa)];return{'success':!![],'data':{'view':_0x326874}};}catch(_0x21fcbc){return this[_0x411a82(0xf3)+'r'][_0x411a82(0xc9)](_0x411a82(0xf0)+_0x411a82(0x102)+'get\x20v'+_0x411a82(0xf1)+_0x23c773,_0x21fcbc),{'success':![],'error':{'message':_0x21fcbc['messa'+'ge']||_0x411a82(0xf0)+_0x411a82(0x102)+_0x411a82(0xc2)+_0x411a82(0xf9),'code':_0x21fcbc['code'],'details':_0x21fcbc[_0x411a82(0xfa)]}};}}async[a0_0xd85d55(0x10a)+'eView'](_0x3bf2f1,_0x29b33c){const _0x10ae3c=a0_0xd85d55;this[_0x10ae3c(0xb1)+_0x10ae3c(0xb0)+'st'](_0x10ae3c(0xac),_0x10ae3c(0xcf)+'/'+_0x3bf2f1,_0x29b33c);try{const _0x555a89=await this[_0x10ae3c(0xf8)+'eques'+'t'](()=>this[_0x10ae3c(0xc0)+'t'][_0x10ae3c(0x110)](_0x10ae3c(0xcf)+'/'+_0x3bf2f1,_0x29b33c)),_0x1022f3=_0x555a89[_0x10ae3c(0xfa)]?.[_0x10ae3c(0xe9)]||_0x555a89['data'];return{'success':!![],'data':{'view':_0x1022f3}};}catch(_0x3ec048){return this['logge'+'r']['error'](_0x10ae3c(0xf0)+_0x10ae3c(0x102)+_0x10ae3c(0x10a)+_0x10ae3c(0xbc)+_0x10ae3c(0xe5)+_0x3bf2f1,_0x3ec048),{'success':![],'error':{'message':_0x3ec048['messa'+'ge']||'Faile'+_0x10ae3c(0x102)+_0x10ae3c(0x10a)+'e\x20vie'+'w','code':_0x3ec048[_0x10ae3c(0xec)],'details':_0x3ec048[_0x10ae3c(0xfa)]}};}}async['delet'+a0_0xd85d55(0xca)](_0x31f2c2){const _0x100bd6=a0_0xd85d55;this[_0x100bd6(0xb1)+_0x100bd6(0xb0)+'st'](_0x100bd6(0xaf)+'E',_0x100bd6(0xcf)+'/'+_0x31f2c2);try{return await this[_0x100bd6(0xf8)+_0x100bd6(0xbb)+'t'](()=>this[_0x100bd6(0xc0)+'t'][_0x100bd6(0xe2)+'e'](_0x100bd6(0xcf)+'/'+_0x31f2c2)),{'success':!![]};}catch(_0x1fb7a2){return this[_0x100bd6(0xf3)+'r'][_0x100bd6(0xc9)](_0x100bd6(0xf0)+_0x100bd6(0x102)+'delet'+_0x100bd6(0xbc)+_0x100bd6(0xe5)+_0x31f2c2,_0x1fb7a2),{'success':![],'error':{'message':_0x1fb7a2[_0x100bd6(0xa9)+'ge']||'Faile'+_0x100bd6(0x102)+_0x100bd6(0xe2)+_0x100bd6(0xbc)+'w','code':_0x1fb7a2[_0x100bd6(0xec)],'details':_0x1fb7a2[_0x100bd6(0xfa)]}};}}async['getVi'+a0_0xd85d55(0x106)+'ments'](_0x1cfe79){const _0x5db79f=a0_0xd85d55,_0x20077a={'zjmjk':_0x5db79f(0xfb)};this[_0x5db79f(0xb1)+_0x5db79f(0xb0)+'st'](_0x20077a[_0x5db79f(0xed)],'/view'+'/'+_0x1cfe79+(_0x5db79f(0x10e)+_0x5db79f(0xdf)));try{const _0x12f396=await this[_0x5db79f(0xf8)+_0x5db79f(0xbb)+'t'](()=>this[_0x5db79f(0xc0)+'t'][_0x5db79f(0xd3)](_0x5db79f(0xcf)+'/'+_0x1cfe79+(_0x5db79f(0x10e)+'ent')));return _0x12f396[_0x5db79f(0xfa)]['comme'+_0x5db79f(0x10d)]||[];}catch(_0x279eca){throw _0x279eca;}}async[a0_0xd85d55(0x10c)+a0_0xd85d55(0xca)+'Comme'+'nt'](_0x503a18,_0x94047b,_0x2d5145=![],_0x254984,_0x573c53){const _0xf3483f=a0_0xd85d55,_0xd55791={'lpzeJ':_0xf3483f(0x10b),'waMQR':function(_0x12c702,_0x18062c){return _0x12c702===_0x18062c;},'OgpIi':_0xf3483f(0xdc)+'t'};this[_0xf3483f(0xb1)+_0xf3483f(0xb0)+'st'](_0xd55791[_0xf3483f(0xad)],_0xf3483f(0xcf)+'/'+_0x503a18+('/comm'+_0xf3483f(0xdf)));try{const _0x3ce72d={'notify_all':_0x2d5145};if(_0x254984)_0x3ce72d['assig'+_0xf3483f(0xb3)]=_0x254984;if(_0x573c53)_0x3ce72d[_0xf3483f(0x115)+'nt']=_0x573c53;else _0x94047b&&(_0x3ce72d[_0xf3483f(0x115)+_0xf3483f(0xc4)+'xt']=_0x94047b);const _0x2ccf0a=await this[_0xf3483f(0xf8)+_0xf3483f(0xbb)+'t'](()=>this['clien'+'t'][_0xf3483f(0x107)](_0xf3483f(0xcf)+'/'+_0x503a18+(_0xf3483f(0x10e)+_0xf3483f(0xdf)),_0x3ce72d)),_0x3c80bc=_0x2ccf0a['data'];if(_0x3c80bc[_0xf3483f(0x115)+'nt']&&_0xd55791[_0xf3483f(0xba)](typeof _0x3c80bc[_0xf3483f(0x115)+'nt'],_0xd55791[_0xf3483f(0xd6)])&&_0x3c80bc[_0xf3483f(0x115)+'nt']['id'])return _0x3c80bc[_0xf3483f(0x115)+'nt'];if(_0x3c80bc['id'])return _0x3c80bc;return{'id':_0xf3483f(0xb9)+_0xf3483f(0xb4)+Date[_0xf3483f(0x113)](),'comment':_0x94047b,'comment_text':_0x94047b,'user':{'id':0x0,'username':'Unkno'+'wn','email':'','color':''},'date':new Date()[_0xf3483f(0xcd)+_0xf3483f(0xde)+'g'](),'resolved':![]};}catch(_0x31dbfc){throw _0x31dbfc;}}async[a0_0xd85d55(0xd4)+a0_0xd85d55(0xab)+'ks'](_0xe05017,_0x49cb81){const _0x24fb80=a0_0xd85d55,_0x3149eb={'yDVWH':function(_0x1ae8b6,_0x31db4a){return _0x1ae8b6!==_0x31db4a;},'XHhXh':_0x24fb80(0xf0)+_0x24fb80(0x102)+_0x24fb80(0x10f)+_0x24fb80(0x100)+_0x24fb80(0xb2)+_0x24fb80(0xf9)};this[_0x24fb80(0xb1)+_0x24fb80(0xb0)+'st']('GET',_0x24fb80(0xcf)+'/'+_0xe05017+_0x24fb80(0xe3));const _0x431843={};return _0x3149eb[_0x24fb80(0xd2)](_0x49cb81,undefined)&&(_0x431843[_0x24fb80(0xe4)]=_0x49cb81),this[_0x24fb80(0xc3)+'eRequ'+'est'](_0xe05017,()=>this[_0x24fb80(0xc0)+'t'][_0x24fb80(0xd3)](_0x24fb80(0xcf)+'/'+_0xe05017+_0x24fb80(0xe3),{'params':_0x431843}),_0x3149eb[_0x24fb80(0xb7)]);}}