UNPKG

@taazkareem/clickup-mcp-server

Version:

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

1 lines 9.74 kB
const a0_0x562345=a0_0x54f8;function a0_0x54f8(_0x1d9469,_0x4ca68d){_0x1d9469=_0x1d9469-0x1cc;const _0x245655=a0_0x2456();let _0x54f803=_0x245655[_0x1d9469];if(a0_0x54f8['EVuULe']===undefined){var _0x1d8db8=function(_0x37f886){const _0x23e076='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ba723='',_0x180128='';for(let _0x5b9138=0x0,_0x219f91,_0x470d69,_0xaaf1a3=0x0;_0x470d69=_0x37f886['charAt'](_0xaaf1a3++);~_0x470d69&&(_0x219f91=_0x5b9138%0x4?_0x219f91*0x40+_0x470d69:_0x470d69,_0x5b9138++%0x4)?_0x4ba723+=String['fromCharCode'](0xff&_0x219f91>>(-0x2*_0x5b9138&0x6)):0x0){_0x470d69=_0x23e076['indexOf'](_0x470d69);}for(let _0x4e0352=0x0,_0x481ef9=_0x4ba723['length'];_0x4e0352<_0x481ef9;_0x4e0352++){_0x180128+='%'+('00'+_0x4ba723['charCodeAt'](_0x4e0352)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x180128);};a0_0x54f8['nuYMyw']=_0x1d8db8,a0_0x54f8['VHuZhl']={},a0_0x54f8['EVuULe']=!![];}const _0x5768b1=_0x245655[0x0],_0x43a8e3=_0x1d9469+_0x5768b1,_0x400ddf=a0_0x54f8['VHuZhl'][_0x43a8e3];return!_0x400ddf?(_0x54f803=a0_0x54f8['nuYMyw'](_0x54f803),a0_0x54f8['VHuZhl'][_0x43a8e3]=_0x54f803):_0x54f803=_0x400ddf,_0x54f803;}(function(_0x1464ec,_0x5b67ab){const _0x146676=a0_0x54f8,_0x3217cd=_0x1464ec();while(!![]){try{const _0x55f533=parseInt(_0x146676(0x1cc))/0x1*(-parseInt(_0x146676(0x212))/0x2)+-parseInt(_0x146676(0x1dc))/0x3*(parseInt(_0x146676(0x1da))/0x4)+parseInt(_0x146676(0x208))/0x5+-parseInt(_0x146676(0x1dd))/0x6*(parseInt(_0x146676(0x1ee))/0x7)+parseInt(_0x146676(0x1f4))/0x8*(-parseInt(_0x146676(0x1f1))/0x9)+parseInt(_0x146676(0x21f))/0xa+parseInt(_0x146676(0x1fb))/0xb*(parseInt(_0x146676(0x1ec))/0xc);if(_0x55f533===_0x5b67ab)break;else _0x3217cd['push'](_0x3217cd['shift']());}catch(_0x59c12d){_0x3217cd['push'](_0x3217cd['shift']());}}}(a0_0x2456,0xdf1bc));import{Logger}from'../../logger.js';import{processBatch}from'../../utils/concurrency-utils.js';import{ClickUpServiceError,ErrorCode}from'./base.js';function a0_0x2456(){const _0x2fef10=['zsb0yxm','BgLZDe4','y2f0zsa','odyXntzfEKP5sxq','DMfSAwq','mJa0ELroCvvj','mtHOsMLtEfO','igzVDw4','qNvSA1m','t1vora','CgrHDgu','BuvSExC','BvrHC2S','zuvYCM8','yxnRCW','yxrLtgK','BeHSs0O','DgfZAW','vgfYz2u','BgLZDca','EMvK','mtjoEuTcCM8','rKXLD1K','mtK5ntDdwhr3t28','y2f0zvq','zxj2Awm','ovnXy3PHva','zsbPBMK','DwXRihu','mtaXmJa3ndrOD0DXrhu','C3rfEgK','yxrLig8','zvrHC2S','yw1L','igj1BgS','zsbMywK','mZe5mZiZmJLHB25Uu0W','zMfPBgu','y2f0y2G','z2v0vge','AgfUzgW','CMvZB2W','tezHuu4','yxrPB24','DwXRig0','Aw5MBW','DxbKyxq','BgvK','DwXRigq','ndC0ndeYnvf5ALzuvW','Aw5Nigi','CgvYyxq','tK9ux0y','DcbSAxm','qKvmuvm','DgfZA1m','CgfJzvm','zhvWBgK','zcb0BYa','mtHJB3n2wfq','DgvZDa','DMvjza','D29YA3m','C3rZ','zKL1Eva','zgvSzxq','DgfZA0K','DgLHBgK','A3mGAw4','Aw9U','A2LSqxO','Bw92zvq','nZqZmZqZmeDwCNLMsq','y3vZDg8','yxnR','mta0nZCZzLnHrxH0','BgvUz3q','rKnTzhG','DgfZA04','BMfTzq','qNvSAYa','y3jLyxq','u3rHCNq','DcaI','iIbUB3q','ig9Wzxi'];a0_0x2456=function(){return _0x2fef10;};return a0_0x2456();}import{findListIDByName}from'../../utils/resolver-utils.js';import{getTaskId}from'../../tools/task/utilities.js';const logger=new Logger(a0_0x562345(0x1df)+'ervic'+'e');export class BulkService{constructor(_0x54d631,_0x4630a5){const _0x11d3de=a0_0x562345;this['taskS'+'ervic'+'e']=_0x54d631,this[_0x11d3de(0x215)+_0x11d3de(0x20f)+_0x11d3de(0x1f0)+'e']=_0x4630a5,logger[_0x11d3de(0x204)](_0x11d3de(0x1df)+_0x11d3de(0x1f0)+_0x11d3de(0x1f2)+_0x11d3de(0x21a)+_0x11d3de(0x1eb));}async[a0_0x562345(0x1d2)+a0_0x562345(0x1f7)+'s'](_0x7421e9,_0x13fd00,_0x5d516d){const _0x3359f9=a0_0x562345,_0xf180a0={'kilAz':function(_0x1cdf54,_0xb2b90c,_0x3a2231,_0x189619){return _0x1cdf54(_0xb2b90c,_0x3a2231,_0x189619);}};logger[_0x3359f9(0x204)]('Creat'+'ing\x20'+_0x13fd00[_0x3359f9(0x1cd)+'h']+('\x20task'+'s\x20in\x20'+_0x3359f9(0x1ea))+_0x7421e9);try{return await this['taskS'+_0x3359f9(0x1f0)+'e'][_0x3359f9(0x1db)+_0x3359f9(0x1e6)+_0x3359f9(0x1f5)+'sts'](_0x7421e9),await _0xf180a0[_0x3359f9(0x21d)](processBatch,_0x13fd00,_0x2ed40b=>this[_0x3359f9(0x20e)+_0x3359f9(0x1f0)+'e']['creat'+'eTask'](_0x7421e9,_0x2ed40b),_0x5d516d);}catch(_0x2bfbb5){throw this[_0x3359f9(0x20e)+_0x3359f9(0x1f0)+'e'][_0x3359f9(0x1ff)+_0x3359f9(0x1e4)+'r'](_0x2bfbb5,'Faile'+_0x3359f9(0x211)+_0x3359f9(0x1d2)+_0x3359f9(0x1d7)+_0x3359f9(0x21b)+_0x3359f9(0x1f9));}}async['resol'+'veId'](_0x307d6e){const _0x117f5a=a0_0x562345,_0x1a86f7={'fIuyP':function(_0x37ec54,_0x4c376f,_0x1344ca,_0xd22453,_0xc1ce27,_0x442b36,_0x26c681,_0x2c4a12){return _0x37ec54(_0x4c376f,_0x1344ca,_0xd22453,_0xc1ce27,_0x442b36,_0x26c681,_0x2c4a12);}};return _0x1a86f7[_0x117f5a(0x217)](getTaskId,_0x307d6e[_0x117f5a(0x1e8)],_0x307d6e[_0x117f5a(0x219)+'d'],_0x307d6e[_0x117f5a(0x1cf)+_0x117f5a(0x1f8)],_0x307d6e[_0x117f5a(0x1d8)+_0x117f5a(0x1f8)],_0x307d6e[_0x117f5a(0x220)+_0x117f5a(0x1e3)+'Id'],!![],{'task':this[_0x117f5a(0x20e)+'ervic'+'e'],'workspace':this[_0x117f5a(0x215)+_0x117f5a(0x20f)+'ervic'+'e']});}async['updat'+a0_0x562345(0x1f7)+'s'](_0x59f598,_0x126169){const _0x5e87b7=a0_0x562345,_0x4c18fb={'FLewY':_0x5e87b7(0x1d1)+_0x5e87b7(0x205)+_0x5e87b7(0x1fa)+_0x5e87b7(0x206),'LFaQN':function(_0x21a82d,_0x262f02,_0x39e774,_0x134b19){return _0x21a82d(_0x262f02,_0x39e774,_0x134b19);}};return logger[_0x5e87b7(0x204)]('Start'+_0x5e87b7(0x209)+_0x5e87b7(0x1f3)+_0x5e87b7(0x1e1)+'\x20oper'+_0x5e87b7(0x202),{'count':_0x59f598[_0x5e87b7(0x1cd)+'h']}),_0x4c18fb[_0x5e87b7(0x201)](processBatch,_0x59f598,async _0x27c8e8=>{const _0x2bee5c=_0x5e87b7,_0x10639c=await this[_0x2bee5c(0x200)+_0x2bee5c(0x214)](_0x27c8e8),{task:_0x232c2f,taskId:_0x5d75c6,taskName:_0x10b784,listName:_0x47ec7d,customTaskId:_0x4970ad,..._0xd19abd}=_0x27c8e8;return this['taskS'+'ervic'+'e'][_0x2bee5c(0x205)+_0x2bee5c(0x1f7)](_0x10639c,_0xd19abd);},_0x126169)[_0x5e87b7(0x1fd)](_0x4fa69f=>{const _0x46b58d=_0x5e87b7;throw this[_0x46b58d(0x20e)+_0x46b58d(0x1f0)+'e'][_0x46b58d(0x1ff)+_0x46b58d(0x1e4)+'r'](_0x4fa69f,_0x4c18fb[_0x46b58d(0x1ed)]);});}async[a0_0x562345(0x21e)+a0_0x562345(0x1e5)](_0xf3934f,_0x56a530,_0x356b1b,_0x4b5123=![]){const _0x4fc7aa=a0_0x562345;logger['info'](_0x4fc7aa(0x1d3)+_0x4fc7aa(0x209)+_0x4fc7aa(0x203)+'ove\x20o'+'perat'+_0x4fc7aa(0x21c),{'count':_0xf3934f[_0x4fc7aa(0x1cd)+'h'],'target':_0x56a530});try{let _0x3c2176=_0x56a530;if(!/^\d+$/[_0x4fc7aa(0x213)](_0x56a530)){const _0x13cee3=await findListIDByName(this['works'+_0x4fc7aa(0x20f)+_0x4fc7aa(0x1f0)+'e'],_0x56a530);if(!_0x13cee3)throw new ClickUpServiceError(_0x4fc7aa(0x1e9)+_0x4fc7aa(0x20c)+_0x4fc7aa(0x1d4)+_0x56a530+(_0x4fc7aa(0x1d5)+_0x4fc7aa(0x1de)+'d'),ErrorCode[_0x4fc7aa(0x20b)+_0x4fc7aa(0x1e0)]);_0x3c2176=_0x13cee3['id'];}return await this['taskS'+_0x4fc7aa(0x1f0)+'e'][_0x4fc7aa(0x1db)+_0x4fc7aa(0x1e6)+_0x4fc7aa(0x1f5)+_0x4fc7aa(0x216)](_0x3c2176),await processBatch(_0xf3934f,async _0x4fcfc7=>{const _0x2641c1=_0x4fc7aa,_0x64d80b=await this['resol'+_0x2641c1(0x214)](_0x4fcfc7);return this[_0x2641c1(0x20e)+'ervic'+'e'][_0x2641c1(0x21e)+'ask'](_0x64d80b,_0x3c2176,_0x4b5123);},_0x356b1b);}catch(_0x5e4f4a){throw this[_0x4fc7aa(0x20e)+_0x4fc7aa(0x1f0)+'e'][_0x4fc7aa(0x1ff)+_0x4fc7aa(0x1e4)+'r'](_0x5e4f4a,_0x4fc7aa(0x1d1)+'move\x20'+_0x4fc7aa(0x1fc)+'d');}}async[a0_0x562345(0x210)+a0_0x562345(0x1ef)+a0_0x562345(0x1e5)](_0x543130,_0x1f0c7b,_0xbfdab){const _0x47e263=a0_0x562345,_0x4ba5c1={'lHlKJ':'Start'+'ing\x20b'+_0x47e263(0x207)+'uplic'+_0x47e263(0x1f6)+_0x47e263(0x20a)+_0x47e263(0x21c),'FCmdx':_0x47e263(0x1d1)+_0x47e263(0x210)+_0x47e263(0x1d9)+_0x47e263(0x1fc)+'d'};logger[_0x47e263(0x204)](_0x4ba5c1[_0x47e263(0x1e7)],{'count':_0x543130['lengt'+'h'],'target':_0x1f0c7b});try{let _0x57e30f=_0x1f0c7b;if(_0x1f0c7b&&!/^\d+$/[_0x47e263(0x213)](_0x1f0c7b)){const _0x71ff73=await findListIDByName(this[_0x47e263(0x215)+_0x47e263(0x20f)+'ervic'+'e'],_0x1f0c7b);if(!_0x71ff73)throw new ClickUpServiceError('Targe'+_0x47e263(0x20c)+_0x47e263(0x1d4)+_0x1f0c7b+(_0x47e263(0x1d5)+_0x47e263(0x1de)+'d'),ErrorCode[_0x47e263(0x20b)+_0x47e263(0x1e0)]);_0x57e30f=_0x71ff73['id'];}return _0x57e30f&&await this[_0x47e263(0x20e)+_0x47e263(0x1f0)+'e'][_0x47e263(0x1db)+_0x47e263(0x1e6)+_0x47e263(0x1f5)+_0x47e263(0x216)](_0x57e30f),await processBatch(_0x543130,async _0x2457e5=>{const _0x446d32=_0x47e263,_0x48d2b3=await this['resol'+_0x446d32(0x214)](_0x2457e5);return this[_0x446d32(0x20e)+_0x446d32(0x1f0)+'e'][_0x446d32(0x210)+'cateT'+_0x446d32(0x221)](_0x48d2b3,_0x57e30f);},_0xbfdab);}catch(_0x351277){throw this[_0x47e263(0x20e)+_0x47e263(0x1f0)+'e'][_0x47e263(0x1ff)+_0x47e263(0x1e4)+'r'](_0x351277,_0x4ba5c1[_0x47e263(0x1ce)]);}}async[a0_0x562345(0x218)+a0_0x562345(0x1f7)+'s'](_0x2f39fc,_0x310f81){const _0x255775=a0_0x562345,_0x3b4954={'mElyw':_0x255775(0x1d3)+_0x255775(0x209)+_0x255775(0x207)+'elete'+_0x255775(0x1d6)+'ation','BELQS':function(_0x46131f,_0x4d473d,_0x1bd8c5,_0x5599c8){return _0x46131f(_0x4d473d,_0x1bd8c5,_0x5599c8);}};return logger[_0x255775(0x204)](_0x3b4954[_0x255775(0x1e2)],{'count':_0x2f39fc['lengt'+'h']}),_0x3b4954[_0x255775(0x20d)](processBatch,_0x2f39fc,async _0x212af4=>{const _0x4683a1=_0x255775,_0x25b07c=await this[_0x4683a1(0x200)+'veId'](_0x212af4);let _0x471598=_0x212af4['taskN'+'ame']||_0x212af4[_0x4683a1(0x1e8)]||_0x25b07c;try{const _0x26e3e1=await this[_0x4683a1(0x20e)+_0x4683a1(0x1f0)+'e'][_0x4683a1(0x1fe)+'sk'](_0x25b07c);if(_0x26e3e1?.[_0x4683a1(0x1d0)])_0x471598=_0x26e3e1[_0x4683a1(0x1d0)];}catch{}return await this[_0x4683a1(0x20e)+_0x4683a1(0x1f0)+'e'][_0x4683a1(0x218)+_0x4683a1(0x1f7)](_0x25b07c),{'taskId':_0x25b07c,'name':_0x471598};},_0x310f81)[_0x255775(0x1fd)](_0x519be9=>{const _0x1f2c33=_0x255775;throw this[_0x1f2c33(0x20e)+_0x1f2c33(0x1f0)+'e'][_0x1f2c33(0x1ff)+_0x1f2c33(0x1e4)+'r'](_0x519be9,_0x1f2c33(0x1d1)+_0x1f2c33(0x218)+_0x1f2c33(0x1fa)+_0x1f2c33(0x206));});}}