UNPKG

@taazkareem/clickup-mcp-server

Version:

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

1 lines 7.5 kB
function a0_0x5b40(){const _0x284982=['ogXqt1HfDG','zM9YBs0','BM93','zxf1zxm','l3rHC2S','u2vZC2K','y2HTzw4','y3jLyxq','mte1B2HhrhLg','zunODw4','zgvMyxu','BgvUz3q','DxbSB2e','ndGWmdKWyKj5DKDx','BI9Vy3q','B25Z','rMfPBgu','zNjVBq','DxbfEha','yNvMzMu','lwzPBgu','rNjVBvu','z2v0q2G','BwfRzvi','y2XPzw4','zxnZAw8','l2f0Dge','yxbWBgK','zxqTC3q','ihrHC2S','zfrHC2S','Cg9W','z2v0sgu','Aw9U','ywrLCNm','DgnWvuu','y29Yzq','nJiYogrLs1fcBq','ndKYvKTJs0ff','nJG5mtbNu3zdtgG','CML6yxq','mJi4nJG0mg1sCxzUrq','Ag1LBNq','su9gBu0','zcb0BYa','mJyYndq1zfjVq3vd','y2XLyw4','DgLTzxm','CMvHBq','Bg9Nt3a','z09PsLK','sur1t2y','qxr0ywm','r3z5zui','B2fKzwq','BNqGDg8','wfLIDgO','zcbHDhq','yxHPB3m','nty5mZi0sxrTruHu','BNqGzNi','zgf0yq','zuvYCM8','yxjYyxK','AxjLzfm','DgfZAYa','zxjHDgK','C2v0','AgfUzgW','y2f0Aw8','A1nLC3m','zg93BMW','zgvSzxq','yxbPs2u','mJiYmJaXrfPwrxPr','B20Gvvi','yxr0ywm','yxbWzw4','EejoEe0','y2H1BMS'];a0_0x5b40=function(){return _0x284982;};return a0_0x5b40();}const a0_0x5d7263=a0_0x1b27;function a0_0x1b27(_0x5bf9f2,_0x252819){_0x5bf9f2=_0x5bf9f2-0x1ce;const _0x5b405c=a0_0x5b40();let _0x1b27dc=_0x5b405c[_0x5bf9f2];if(a0_0x1b27['PBmOLU']===undefined){var _0x152c21=function(_0x1b6756){const _0x4308c6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b4622='',_0x2bb3cd='';for(let _0x303b2e=0x0,_0x10495c,_0x751a43,_0x2fd460=0x0;_0x751a43=_0x1b6756['charAt'](_0x2fd460++);~_0x751a43&&(_0x10495c=_0x303b2e%0x4?_0x10495c*0x40+_0x751a43:_0x751a43,_0x303b2e++%0x4)?_0x3b4622+=String['fromCharCode'](0xff&_0x10495c>>(-0x2*_0x303b2e&0x6)):0x0){_0x751a43=_0x4308c6['indexOf'](_0x751a43);}for(let _0x45b4b6=0x0,_0x4bae10=_0x3b4622['length'];_0x45b4b6<_0x4bae10;_0x45b4b6++){_0x2bb3cd+='%'+('00'+_0x3b4622['charCodeAt'](_0x45b4b6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2bb3cd);};a0_0x1b27['jcGxFo']=_0x152c21,a0_0x1b27['jtSoIM']={},a0_0x1b27['PBmOLU']=!![];}const _0x5d4a3d=_0x5b405c[0x0],_0x1c62e5=_0x5bf9f2+_0x5d4a3d,_0x5b904b=a0_0x1b27['jtSoIM'][_0x1c62e5];return!_0x5b904b?(_0x1b27dc=a0_0x1b27['jcGxFo'](_0x1b27dc),a0_0x1b27['jtSoIM'][_0x1c62e5]=_0x1b27dc):_0x1b27dc=_0x5b904b,_0x1b27dc;}(function(_0x12a22d,_0x536c7b){const _0x423043=a0_0x1b27,_0x49f614=_0x12a22d();while(!![]){try{const _0x9bdf18=parseInt(_0x423043(0x208))/0x1+parseInt(_0x423043(0x1e8))/0x2+-parseInt(_0x423043(0x201))/0x3*(parseInt(_0x423043(0x200))/0x4)+parseInt(_0x423043(0x1e3))/0x5*(parseInt(_0x423043(0x202))/0x6)+parseInt(_0x423043(0x216))/0x7*(-parseInt(_0x423043(0x1db))/0x8)+-parseInt(_0x423043(0x1d5))/0x9+-parseInt(_0x423043(0x204))/0xa;if(_0x9bdf18===_0x536c7b)break;else _0x49f614['push'](_0x49f614['shift']());}catch(_0x1f82bb){_0x49f614['push'](_0x49f614['shift']());}}}(a0_0x5b40,0x2b1d0));export class TaskServiceAttachments{constructor(_0x1eb438){const _0x4a7901=a0_0x1b27;this[_0x4a7901(0x1ff)]=_0x1eb438,this[_0x4a7901(0x1da)+_0x4a7901(0x1e0)+_0x4a7901(0x1ea)]=new Map();}[a0_0x5d7263(0x209)+a0_0x5d7263(0x1ed)+a0_0x5d7263(0x21b)+'essio'+'ns'](){const _0x5c2a79=a0_0x5d7263,_0x1abea4={'tcpUE':function(_0x2c5ee0,_0x8c457d){return _0x2c5ee0*_0x8c457d;},'gOiJY':function(_0xa68f20,_0x522b03){return _0xa68f20-_0x522b03;}},_0x2906bb=Date[_0x5c2a79(0x1dd)](),_0x580816=_0x1abea4[_0x5c2a79(0x1fe)](0x18*0x3c,0x3c)*0x3e8;for(const [_0xe7bc9f,_0x41fe47]of this['chunk'+_0x5c2a79(0x1e0)+'ons']['entri'+'es']()){_0x1abea4[_0x5c2a79(0x20d)](_0x2906bb,_0x41fe47[_0x5c2a79(0x20a)+'tamp'])>_0x580816&&this[_0x5c2a79(0x1da)+_0x5c2a79(0x1e0)+_0x5c2a79(0x1ea)][_0x5c2a79(0x1d3)+'e'](_0xe7bc9f);}}[a0_0x5d7263(0x1f1)+'unkSe'+'ssion'](_0x38a574){const _0x248226=a0_0x5d7263;return this[_0x248226(0x209)+'upExp'+'iredS'+_0x248226(0x1f4)+'ns'](),this[_0x248226(0x1da)+_0x248226(0x1e0)+'ons']['get'](_0x38a574);}[a0_0x5d7263(0x1e2)+'eChun'+a0_0x5d7263(0x1d1)+a0_0x5d7263(0x1fc)](_0x13f3b9,_0x340851){const _0x59b3e0=a0_0x5d7263;this[_0x59b3e0(0x209)+_0x59b3e0(0x1ed)+_0x59b3e0(0x21b)+_0x59b3e0(0x1f4)+'ns'](),this[_0x59b3e0(0x1da)+'Sessi'+_0x59b3e0(0x1ea)][_0x59b3e0(0x1ce)](_0x13f3b9,{..._0x340851,'timestamp':Date['now']()});}[a0_0x5d7263(0x1d3)+a0_0x5d7263(0x1e4)+a0_0x5d7263(0x1d1)+a0_0x5d7263(0x1fc)](_0x3c3441){const _0x3cf1f9=a0_0x5d7263;this['chunk'+'Sessi'+'ons'][_0x3cf1f9(0x1d3)+'e'](_0x3c3441);}async[a0_0x5d7263(0x1e7)+a0_0x5d7263(0x1f9)+a0_0x5d7263(0x20f)+a0_0x5d7263(0x205)](_0x54bc4d,_0x1bdd8b,_0x2b9202){const _0x120abf=a0_0x5d7263,_0x185a64={'XYbtj':_0x120abf(0x1dc)+_0x120abf(0x218),'IDuOf':_0x120abf(0x1d7)+_0x120abf(0x205),'IOFmM':_0x120abf(0x1f6)+_0x120abf(0x1d0)+'n/oct'+_0x120abf(0x1f7)+'ream'};this[_0x120abf(0x1ff)][_0x120abf(0x20c)+_0x120abf(0x21d)+'on'](_0x120abf(0x1e7)+'dTask'+'Attac'+_0x120abf(0x205),{'taskId':_0x54bc4d,'fileName':_0x2b9202,'fileSize':_0x1bdd8b[_0x120abf(0x1e6)+'h']});try{return await this[_0x120abf(0x1ff)][_0x120abf(0x1f2)+_0x120abf(0x1de)+'t'](async()=>{const _0x2c84d5=_0x120abf,_0x26d2f6=(await import(_0x185a64[_0x2c84d5(0x213)]))[_0x2c84d5(0x1e5)+'lt'],_0x46709f=new _0x26d2f6();_0x46709f[_0x2c84d5(0x1d8)+'d'](_0x185a64[_0x2c84d5(0x20e)],_0x1bdd8b,{'filename':_0x2b9202,'contentType':_0x185a64[_0x2c84d5(0x206)]});const _0x90173b=await this[_0x2c84d5(0x1ff)][_0x2c84d5(0x1f3)+'t']['post'](_0x2c84d5(0x1df)+'/'+_0x54bc4d+(_0x2c84d5(0x1f5)+'chmen'+'t'),_0x46709f,{'headers':{..._0x46709f[_0x2c84d5(0x1fb)+_0x2c84d5(0x1fd)](),'Authorization':this[_0x2c84d5(0x1ff)][_0x2c84d5(0x1d4)+'y']}});return _0x90173b['data'];});}catch(_0x1985c5){throw this[_0x120abf(0x1ff)][_0x120abf(0x1cf)+_0x120abf(0x219)+'r'](_0x1985c5,_0x120abf(0x1eb)+_0x120abf(0x207)+_0x120abf(0x1e7)+'d\x20att'+'achme'+_0x120abf(0x212)+_0x120abf(0x1f8)+'\x20'+_0x54bc4d);}}async[a0_0x5d7263(0x1e7)+a0_0x5d7263(0x1f9)+'Attac'+a0_0x5d7263(0x205)+a0_0x5d7263(0x1f0)+'rl'](_0x4720e1,_0x1ee50e,_0x596ff6,_0x54d302){const _0x59933a=a0_0x5d7263,_0x5eeeca={'xBNxM':_0x59933a(0x215),'GvyeB':_0x59933a(0x1d2)+_0x59933a(0x211)+_0x59933a(0x1ef),'reRUd':_0x59933a(0x1d7)+_0x59933a(0x205),'nBHPk':'uploa'+_0x59933a(0x1f9)+_0x59933a(0x20f)+_0x59933a(0x205)+'FromU'+'rl'};this['core']['logOp'+_0x59933a(0x21d)+'on'](_0x5eeeca['nBHPk'],{'taskId':_0x4720e1,'fileUrl':_0x1ee50e,'fileName':_0x596ff6});try{return await this[_0x59933a(0x1ff)][_0x59933a(0x1f2)+_0x59933a(0x1de)+'t'](async()=>{const _0x50f45f=_0x59933a,_0x355450=(await import(_0x5eeeca[_0x50f45f(0x1d9)]))[_0x50f45f(0x1e5)+'lt'],_0x318b80=(await import('form-'+_0x50f45f(0x218)))[_0x50f45f(0x1e5)+'lt'],_0x3f0651={};_0x54d302&&(_0x3f0651['Autho'+_0x50f45f(0x203)+_0x50f45f(0x1fc)]=_0x54d302);const _0x58a9d0=await _0x355450['get'](_0x1ee50e,{'responseType':_0x50f45f(0x21a)+_0x50f45f(0x1ee)+'r','headers':_0x3f0651}),_0x1674c5=_0x596ff6||_0x1ee50e['split']('/')[_0x50f45f(0x1fa)]()||_0x5eeeca[_0x50f45f(0x210)],_0x4a9df3=new _0x318b80();_0x4a9df3[_0x50f45f(0x1d8)+'d'](_0x5eeeca['reRUd'],Buffer[_0x50f45f(0x1ec)](_0x58a9d0[_0x50f45f(0x218)]),{'filename':_0x1674c5,'contentType':_0x50f45f(0x1f6)+_0x50f45f(0x1d0)+_0x50f45f(0x1e9)+_0x50f45f(0x1f7)+_0x50f45f(0x20b)});const _0x6366c7=await this[_0x50f45f(0x1ff)][_0x50f45f(0x1f3)+'t']['post'](_0x50f45f(0x1df)+'/'+_0x4720e1+(_0x50f45f(0x1f5)+_0x50f45f(0x1e1)+'t'),_0x4a9df3,{'headers':{..._0x4a9df3[_0x50f45f(0x1fb)+_0x50f45f(0x1fd)](),'Authorization':this[_0x50f45f(0x1ff)][_0x50f45f(0x1d4)+'y']}});return _0x6366c7[_0x50f45f(0x218)];});}catch(_0x4901fa){throw this[_0x59933a(0x1ff)][_0x59933a(0x1cf)+'eErro'+'r'](_0x4901fa,_0x59933a(0x1eb)+'d\x20to\x20'+_0x59933a(0x1e7)+_0x59933a(0x214)+'achme'+_0x59933a(0x217)+_0x59933a(0x1d6)+'L\x20to\x20'+_0x59933a(0x21c)+_0x4720e1);}}}