@taazkareem/clickup-mcp-server
Version:
ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.
1 lines • 12.5 kB
JavaScript
(function(_0x1a0930,_0x118b02){const _0x49b9c7=a0_0x54c6,_0x4cdfe1=_0x1a0930();while(!![]){try{const _0x54b620=parseInt(_0x49b9c7(0x1de))/0x1*(-parseInt(_0x49b9c7(0x1dd))/0x2)+-parseInt(_0x49b9c7(0x221))/0x3+-parseInt(_0x49b9c7(0x207))/0x4+parseInt(_0x49b9c7(0x228))/0x5+parseInt(_0x49b9c7(0x1f6))/0x6*(parseInt(_0x49b9c7(0x229))/0x7)+-parseInt(_0x49b9c7(0x225))/0x8*(parseInt(_0x49b9c7(0x220))/0x9)+parseInt(_0x49b9c7(0x1fa))/0xa;if(_0x54b620===_0x118b02)break;else _0x4cdfe1['push'](_0x4cdfe1['shift']());}catch(_0x348275){_0x4cdfe1['push'](_0x4cdfe1['shift']());}}}(a0_0x24e7,0x7dc26));function a0_0x24e7(){const _0x246a99=['wwnOt3e','yNvSBgu','zgvWDgG','AM9PBG','y29Kzq','uMvZDwW','ls0TcG','B3jKzxi','zw1HAwW','mNvyAvPduG','oty3nJuXBxbXwhfo','y29KvLe','AxrLBxm','AgvHzgK','DgfIBgu','CgfYywC','r0rYuxm','tw1Hthy','ls0T','uNzfEg0','y1vcrKK','zgvZ','uvHHEhK','ihWG','C2nVCMu','BwLU','yw1L','rwXYuue','CxvVDgu','z3vxu0q','ChvZAa','BK1RzhG','C29YDa','Bwf0y2G','otCWnJC0ELP4tg5S','DgfZAW','CMLUzW','y2HLy2S','otmXotG3meXIB3DKCa','BwvTyMu','CMfWAa','vu9vtvi','AgvHzgu','C3rHCNq','weXdEu8','CgDnBxG','C1DPDgG','DxnLCM4','DhLWzq','tejADxa','AhjLzG','oteZnZaWrundCufd','y2TLza','rgLkuKm','Dw5JAgu','CgfU','Dg9Rzw4','AwXTrLK','Aw5JBhu','BgLUAW','tuX6Bxy','zxLJy3a','zM9Yrwe','AxrLBq','DgvZDa','C3bSAxq','BgvUz3q','A2v5CW','CM93CW','zgvS','yMXVy2S','C3rYB24','BwfW','zNzlCvi','Aw1Hz2u','C3bHy2u','otLPzKjmA2C','ntG4mdzutLrLD3K','BfPXwfe','zxnJyxa','zxjdyxm','mJGXnZuYsezuu2Xh','w0LTywC','Dgv4Da','nteYmJe1nvPtsenzsq','n2PAyNv6zW','C3vIC3q','BgLZDa','vM1YAuC'];a0_0x24e7=function(){return _0x246a99;};return a0_0x24e7();}function a0_0x54c6(_0x3a1f00,_0x2fc70b){_0x3a1f00=_0x3a1f00-0x1d6;const _0x24e7e8=a0_0x24e7();let _0x54c6fd=_0x24e7e8[_0x3a1f00];if(a0_0x54c6['pAmyPN']===undefined){var _0x26c5ba=function(_0x4db127){const _0xb782b6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3806b2='',_0x1edbf0='';for(let _0x2f736e=0x0,_0x3411f3,_0x607681,_0x9fe7d9=0x0;_0x607681=_0x4db127['charAt'](_0x9fe7d9++);~_0x607681&&(_0x3411f3=_0x2f736e%0x4?_0x3411f3*0x40+_0x607681:_0x607681,_0x2f736e++%0x4)?_0x3806b2+=String['fromCharCode'](0xff&_0x3411f3>>(-0x2*_0x2f736e&0x6)):0x0){_0x607681=_0xb782b6['indexOf'](_0x607681);}for(let _0x1206da=0x0,_0x515b4a=_0x3806b2['length'];_0x1206da<_0x515b4a;_0x1206da++){_0x1edbf0+='%'+('00'+_0x3806b2['charCodeAt'](_0x1206da)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1edbf0);};a0_0x54c6['LBUqkK']=_0x26c5ba,a0_0x54c6['RtjuSJ']={},a0_0x54c6['pAmyPN']=!![];}const _0x3c89f5=_0x24e7e8[0x0],_0x279129=_0x3a1f00+_0x3c89f5,_0x2a555c=a0_0x54c6['RtjuSJ'][_0x279129];return!_0x2a555c?(_0x54c6fd=a0_0x54c6['LBUqkK'](_0x54c6fd),a0_0x54c6['RtjuSJ'][_0x279129]=_0x54c6fd):_0x54c6fd=_0x2a555c,_0x54c6fd;}import{marked}from'marked';import{findBestMatchInArray}from'../../utils/resolver-utils.js';export function markdownToClickUpComment(_0x3a76b7,_0x2f4d95=[]){const _0xb3f02e=a0_0x54c6;if(!_0x3a76b7)return[];const _0x46584e=marked['lexer'](_0x3a76b7),_0x320502=[];return _0x46584e[_0xb3f02e(0x212)+'ch'](_0x326cad=>{processToken(_0x326cad,_0x320502,_0x2f4d95);}),_0x320502;}function processToken(_0x48ea70,_0x27b4ef,_0x50aeb1){const _0x52f590=a0_0x54c6,_0x213fb9={'RvExm':function(_0x46c7c4,_0x3647a9){return _0x46c7c4===_0x3647a9;},'DiJRC':_0x52f590(0x227),'ilmFY':function(_0x3bcb9e,_0xafe078,_0x2a092e,_0x1c88db){return _0x3bcb9e(_0xafe078,_0x2a092e,_0x1c88db);},'UOUMR':_0x52f590(0x1e3)+_0x52f590(0x1fc),'lZqXQ':_0x52f590(0x1eb),'pgMmx':_0x52f590(0x1e1)+'ng','MLzmv':_0x52f590(0x21a)+_0x52f590(0x1f0),'codVQ':_0x52f590(0x21f),'MmaLv':_0x52f590(0x1da),'JuwKn':_0x52f590(0x1e2),'nJvwQ':function(_0x54d7a2,_0x54b453){return _0x54d7a2+_0x54b453;},'eyccp':function(_0x3e4c6f,_0x2bf48c){return _0x3e4c6f+_0x2bf48c;}};switch(_0x48ea70[_0x52f590(0x204)]){case _0x213fb9[_0x52f590(0x1fd)]:processInline(_0x48ea70[_0x52f590(0x20c)+'s'],_0x27b4ef,{},_0x50aeb1),_0x27b4ef['push']({'text':'\x0a'});break;case _0x213fb9[_0x52f590(0x201)]:processInline(_0x48ea70[_0x52f590(0x20c)+'s'],_0x27b4ef,{},_0x50aeb1),_0x27b4ef[_0x52f590(0x1f2)]({'text':'\x0a','attributes':{'header':_0x48ea70[_0x52f590(0x1d6)]}});break;case _0x52f590(0x1d8):const _0x9f5400=_0x48ea70[_0x52f590(0x227)]['split']('\x0a');_0x9f5400[_0x52f590(0x212)+'ch']((_0x20bad9,_0x41682d)=>{const _0x375b1d=_0x52f590;_0x20bad9&&_0x27b4ef[_0x375b1d(0x1f2)]({'text':_0x20bad9}),_0x27b4ef[_0x375b1d(0x1f2)]({'text':'\x0a','attributes':{'code-block':!![]}});});break;case _0x52f590(0x22b):_0x48ea70[_0x52f590(0x1e0)][_0x52f590(0x212)+'ch'](_0x421d3f=>{const _0x427394=_0x52f590;_0x421d3f[_0x427394(0x20c)+'s'][_0x427394(0x212)+'ch'](_0xcb27e2=>{const _0x57ace7=_0x427394;_0x213fb9[_0x57ace7(0x1e7)](_0xcb27e2[_0x57ace7(0x204)],_0x213fb9[_0x57ace7(0x209)])?processInline(_0xcb27e2[_0x57ace7(0x20c)+'s']||[],_0x27b4ef,{},_0x50aeb1):_0x213fb9[_0x57ace7(0x20d)](processToken,_0xcb27e2,_0x27b4ef,_0x50aeb1);});let _0x440485=_0x48ea70[_0x427394(0x1db)+'ed']?'order'+'ed':_0x427394(0x22e)+'t';_0x421d3f[_0x427394(0x1f7)]&&(_0x440485=_0x421d3f['check'+'ed']?_0x427394(0x1f9)+'ed':_0x427394(0x20a)+_0x427394(0x208)),_0x27b4ef[_0x427394(0x1f2)]({'text':'\x0a','attributes':{'list':_0x440485}});});break;case _0x213fb9[_0x52f590(0x210)]:_0x48ea70[_0x52f590(0x20c)+'s']&&_0x48ea70['token'+'s'][_0x52f590(0x216)+'h']&&_0x48ea70['token'+'s']['forEa'+'ch'](_0x2aab4e=>{const _0xde720a=_0x52f590;_0x2aab4e[_0xde720a(0x204)]===_0x213fb9['UOUMR']?(processInline(_0x2aab4e[_0xde720a(0x20c)+'s'],_0x27b4ef,{},_0x50aeb1),_0x27b4ef[_0xde720a(0x1f2)]({'text':'\x0a','attributes':{'blockquote':!![]}})):processToken(_0x2aab4e,_0x27b4ef,_0x50aeb1);});break;case _0x213fb9[_0x52f590(0x1df)]:break;case'hr':_0x27b4ef[_0x52f590(0x1f2)]({'text':_0x213fb9[_0x52f590(0x1e5)]});break;case _0x213fb9['JuwKn']:if(_0x48ea70[_0x52f590(0x1fe)+'r']&&_0x48ea70['heade'+'r'][_0x52f590(0x216)+'h']){const _0x2ed41b=_0x48ea70[_0x52f590(0x1fe)+'r'][_0x52f590(0x21c)](_0x5ad01f=>_0x5ad01f['text'])[_0x52f590(0x1d7)](_0x52f590(0x1eb));_0x27b4ef[_0x52f590(0x1f2)]({'text':_0x213fb9['nJvwQ'](_0x2ed41b,'\x0a'),'attributes':{'bold':!![]}}),_0x27b4ef['push']({'text':_0x213fb9[_0x52f590(0x211)](_0x48ea70[_0x52f590(0x1fe)+'r'][_0x52f590(0x21c)](()=>_0x52f590(0x1e6))['join']('|'),'\x0a')});}_0x48ea70[_0x52f590(0x218)]&&_0x48ea70[_0x52f590(0x218)][_0x52f590(0x216)+'h']&&_0x48ea70[_0x52f590(0x218)][_0x52f590(0x212)+'ch'](_0x28a843=>{const _0x18aac7=_0x52f590,_0x21b54e=_0x28a843[_0x18aac7(0x21c)](_0x19eef5=>_0x19eef5[_0x18aac7(0x227)])['join'](_0x213fb9[_0x18aac7(0x222)]);_0x27b4ef[_0x18aac7(0x1f2)]({'text':_0x21b54e+'\x0a'});});break;default:_0x48ea70['text']&&(_0x27b4ef['push']({'text':_0x48ea70[_0x52f590(0x227)]}),_0x27b4ef[_0x52f590(0x1f2)]({'text':'\x0a'}));break;}}function processInline(_0x3da2ed,_0x384c5c,_0x51edb2={},_0x54f7ae=[]){const _0x501cd6=a0_0x54c6,_0x415d9b={'ElrQA':function(_0xad8e8c,_0x1a2e7d){return _0xad8e8c>_0x1a2e7d;},'LBZup':function(_0x2e1306,_0x259a0e){return _0x2e1306+_0x259a0e;},'XLCyO':function(_0x1039c4,_0x1060c4,_0x3fb91a,_0x4b9cfa){return _0x1039c4(_0x1060c4,_0x3fb91a,_0x4b9cfa);},'fvKqR':function(_0x243e73,_0x5475d9){return _0x243e73>_0x5475d9;},'YchOq':function(_0x5df99a,_0x208b1d){return _0x5df99a+_0x208b1d;},'VmriG':function(_0x2767e5,_0x4ae447){return _0x2767e5+_0x4ae447;},'guWSD':function(_0x382709,_0x3ccbae){return _0x382709>_0x3ccbae;},'GDrQs':function(_0x566651,_0x44910d,_0x330569,_0x3f893c,_0x2e1cd6){return _0x566651(_0x44910d,_0x330569,_0x3f893c,_0x2e1cd6);},'QXaxy':function(_0x51158a,_0x28ce2e,_0x4cd62f,_0x5bfe56,_0x5e46ab){return _0x51158a(_0x28ce2e,_0x4cd62f,_0x5bfe56,_0x5e46ab);},'nMkdx':_0x501cd6(0x20f),'cUBFI':_0x501cd6(0x21e)},_0x4c206c=_0x54f7ae[_0x501cd6(0x216)+'h']>0x0?[..._0x54f7ae][_0x501cd6(0x1f4)]((_0x15b80d,_0x3e8e53)=>(_0x3e8e53[_0x501cd6(0x203)+_0x501cd6(0x1ee)]?.[_0x501cd6(0x216)+'h']||0x0)-(_0x15b80d[_0x501cd6(0x203)+_0x501cd6(0x1ee)]?.[_0x501cd6(0x216)+'h']||0x0)):[];_0x3da2ed?.[_0x501cd6(0x212)+'ch'](_0x54c402=>{const _0x43ac73=_0x501cd6;switch(_0x54c402[_0x43ac73(0x204)]){case _0x43ac73(0x227):case _0x43ac73(0x223)+'e':if(_0x4c206c[_0x43ac73(0x216)+'h']>0x0&&_0x54c402['text'][_0x43ac73(0x20e)+_0x43ac73(0x1e9)]('@')){let _0x939521=_0x54c402[_0x43ac73(0x227)];while(_0x415d9b['ElrQA'](_0x939521[_0x43ac73(0x216)+'h'],0x0)){const _0x5b733e=_0x939521['index'+'Of']('@');if(_0x5b733e===-0x1){_0x384c5c[_0x43ac73(0x1f2)]({'text':_0x939521,...Object[_0x43ac73(0x217)](_0x51edb2)[_0x43ac73(0x216)+'h']?{'attributes':{..._0x51edb2}}:{}});break;}_0x415d9b[_0x43ac73(0x1ef)](_0x5b733e,0x0)&&_0x384c5c[_0x43ac73(0x1f2)]({'text':_0x939521[_0x43ac73(0x22a)+'ring'](0x0,_0x5b733e),...Object['keys'](_0x51edb2)[_0x43ac73(0x216)+'h']?{'attributes':{..._0x51edb2}}:{}});const _0x531695=_0x939521[_0x43ac73(0x22a)+_0x43ac73(0x1f8)](_0x5b733e);let _0x231192=null,_0x2f3def=null;const _0x59e8dc=_0x939521[_0x43ac73(0x22a)+_0x43ac73(0x1f8)](_0x415d9b['LBZup'](_0x5b733e,0x1)),_0x45ae84=_0x59e8dc[_0x43ac73(0x215)](/([ ,.!?\n]+)/)['filte'+'r'](_0x294148=>_0x294148);let _0x5ba9fc='',_0x42e59b=0x0;for(let _0xf5c95e=0x0;_0xf5c95e<Math[_0x43ac73(0x1ed)](_0x45ae84[_0x43ac73(0x216)+'h'],0x6);_0xf5c95e++){_0x5ba9fc+=_0x45ae84[_0xf5c95e],_0x42e59b+=_0x45ae84[_0xf5c95e][_0x43ac73(0x216)+'h'];if(/^[ ,.!?\n]/[_0x43ac73(0x214)](_0x45ae84[_0xf5c95e]))continue;const _0x4dfc3f=_0x415d9b[_0x43ac73(0x200)](findBestMatchInArray,_0x54f7ae,_0x5ba9fc['trim'](),_0xc9b780=>_0xc9b780[_0x43ac73(0x203)+_0x43ac73(0x1ee)]||_0xc9b780[_0x43ac73(0x1dc)]);_0x4dfc3f&&_0x4dfc3f[_0x43ac73(0x1f5)+_0x43ac73(0x1d9)+'t']['isMat'+'ch']&&_0x4dfc3f[_0x43ac73(0x1f5)+_0x43ac73(0x1d9)+'t'][_0x43ac73(0x1ec)]>=0x32&&((!_0x2f3def||_0x415d9b[_0x43ac73(0x21d)](_0x4dfc3f['match'+'Resul'+'t']['score'],_0x2f3def['score']))&&(_0x2f3def={'member':_0x4dfc3f[_0x43ac73(0x213)],'score':_0x4dfc3f[_0x43ac73(0x1f5)+'Resul'+'t'][_0x43ac73(0x1ec)],'length':_0x42e59b}));}if(_0x2f3def)_0x231192=_0x2f3def[_0x43ac73(0x1fb)+'r'];else for(const _0xe317af of _0x4c206c){const _0x2fcc89=_0xe317af[_0x43ac73(0x203)+_0x43ac73(0x1ee)]||_0xe317af[_0x43ac73(0x1dc)];if(_0x2fcc89&&_0x531695['toLow'+_0x43ac73(0x224)+'e']()[_0x43ac73(0x1ff)+_0x43ac73(0x202)](_0x415d9b[_0x43ac73(0x22d)]('@',_0x2fcc89['toLow'+_0x43ac73(0x224)+'e']()))){_0x231192=_0xe317af,_0x2f3def={'member':_0xe317af,'score':0x64,'length':_0x415d9b[_0x43ac73(0x205)](0x1,_0x2fcc89[_0x43ac73(0x216)+'h'])};break;}}if(_0x231192){_0x384c5c[_0x43ac73(0x1f2)]({'text':'@'+(_0x231192['usern'+_0x43ac73(0x1ee)]||_0x231192[_0x43ac73(0x1dc)]),'type':'tag','user':{'id':_0x231192['id']}});const _0x3cf0a3=_0x2f3def?_0x2f3def['lengt'+'h']:(_0x231192[_0x43ac73(0x203)+_0x43ac73(0x1ee)]||_0x231192[_0x43ac73(0x1dc)])['lengt'+'h'];_0x939521=_0x939521[_0x43ac73(0x22a)+_0x43ac73(0x1f8)](_0x415d9b[_0x43ac73(0x205)](_0x5b733e+0x1,_0x2f3def?_0x2f3def[_0x43ac73(0x216)+'h']:(_0x231192['usern'+_0x43ac73(0x1ee)]||_0x231192[_0x43ac73(0x1dc)])['lengt'+'h']));}else _0x384c5c[_0x43ac73(0x1f2)]({'text':'@',...Object[_0x43ac73(0x217)](_0x51edb2)[_0x43ac73(0x216)+'h']?{'attributes':{..._0x51edb2}}:{}}),_0x939521=_0x939521[_0x43ac73(0x22a)+_0x43ac73(0x1f8)](_0x415d9b[_0x43ac73(0x22c)](_0x5b733e,0x1));}}else _0x384c5c[_0x43ac73(0x1f2)]({'text':_0x54c402[_0x43ac73(0x227)],..._0x415d9b[_0x43ac73(0x1f1)](Object[_0x43ac73(0x217)](_0x51edb2)[_0x43ac73(0x216)+'h'],0x0)?{'attributes':{..._0x51edb2}}:{}});break;case _0x43ac73(0x21b)+'g':_0x415d9b[_0x43ac73(0x1e4)](processInline,_0x54c402[_0x43ac73(0x20c)+'s'],_0x384c5c,{..._0x51edb2,'bold':!![]},_0x54f7ae);break;case'em':processInline(_0x54c402[_0x43ac73(0x20c)+'s'],_0x384c5c,{..._0x51edb2,'italic':!![]},_0x54f7ae);break;case'codes'+_0x43ac73(0x20b):_0x384c5c[_0x43ac73(0x1f2)]({'text':_0x54c402[_0x43ac73(0x227)],'attributes':{..._0x51edb2,'code':!![]}});break;case'br':_0x384c5c[_0x43ac73(0x1f2)]({'text':'\x0a'});break;case _0x43ac73(0x219):_0x415d9b[_0x43ac73(0x1ea)](processInline,_0x54c402['token'+'s'],_0x384c5c,{..._0x51edb2,'strike':!![]},_0x54f7ae);break;case _0x415d9b['nMkdx']:_0x384c5c['push']({'text':_0x54c402[_0x43ac73(0x227)],'attributes':{..._0x51edb2,'link':_0x54c402[_0x43ac73(0x206)]}});break;case _0x415d9b[_0x43ac73(0x1e8)]:_0x384c5c[_0x43ac73(0x1f2)]({'text':_0x43ac73(0x226)+'e:\x20'+(_0x54c402[_0x43ac73(0x227)]||_0x415d9b[_0x43ac73(0x1f3)])+']','attributes':{..._0x51edb2,'link':_0x54c402[_0x43ac73(0x206)]}});break;default:_0x54c402[_0x43ac73(0x227)]&&_0x384c5c['push']({'text':_0x54c402['text'],..._0x415d9b[_0x43ac73(0x1ef)](Object['keys'](_0x51edb2)[_0x43ac73(0x216)+'h'],0x0)?{'attributes':{..._0x51edb2}}:{}});}});}