@taazkareem/clickup-mcp-server
Version:
ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.
1 lines • 23.9 kB
JavaScript
const a0_0x51b9c3=a0_0x1b72;(function(_0xc2429c,_0x2afecf){const _0x408b96=a0_0x1b72,_0x1f4b2e=_0xc2429c();while(!![]){try{const _0x39e3c7=-parseInt(_0x408b96(0x1de))/0x1*(parseInt(_0x408b96(0x1e1))/0x2)+parseInt(_0x408b96(0x1f0))/0x3+parseInt(_0x408b96(0x1b1))/0x4*(parseInt(_0x408b96(0x1cd))/0x5)+parseInt(_0x408b96(0x1d9))/0x6*(parseInt(_0x408b96(0x25f))/0x7)+-parseInt(_0x408b96(0x242))/0x8+-parseInt(_0x408b96(0x1df))/0x9+parseInt(_0x408b96(0x262))/0xa*(parseInt(_0x408b96(0x1c7))/0xb);if(_0x39e3c7===_0x2afecf)break;else _0x1f4b2e['push'](_0x1f4b2e['shift']());}catch(_0x1cff9d){_0x1f4b2e['push'](_0x1f4b2e['shift']());}}}(a0_0x2db5,0xa01e6));import{BaseClickUpService,ErrorCode,ClickUpServiceError}from'./base.js';function a0_0x1b72(_0x4d0609,_0x268eae){_0x4d0609=_0x4d0609-0x198;const _0x2db5fe=a0_0x2db5();let _0x1b72c2=_0x2db5fe[_0x4d0609];if(a0_0x1b72['vuhUZl']===undefined){var _0x2828e5=function(_0x373a34){const _0x581b73='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x320b2d='',_0x27920e='';for(let _0x272c3e=0x0,_0x53cb7e,_0x172031,_0xfaffa6=0x0;_0x172031=_0x373a34['charAt'](_0xfaffa6++);~_0x172031&&(_0x53cb7e=_0x272c3e%0x4?_0x53cb7e*0x40+_0x172031:_0x172031,_0x272c3e++%0x4)?_0x320b2d+=String['fromCharCode'](0xff&_0x53cb7e>>(-0x2*_0x272c3e&0x6)):0x0){_0x172031=_0x581b73['indexOf'](_0x172031);}for(let _0x58db7e=0x0,_0x4cf0a4=_0x320b2d['length'];_0x58db7e<_0x4cf0a4;_0x58db7e++){_0x27920e+='%'+('00'+_0x320b2d['charCodeAt'](_0x58db7e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x27920e);};a0_0x1b72['gGogMh']=_0x2828e5,a0_0x1b72['IycKLC']={},a0_0x1b72['vuhUZl']=!![];}const _0x2eed58=_0x2db5fe[0x0],_0x1c3241=_0x4d0609+_0x2eed58,_0x7612bc=a0_0x1b72['IycKLC'][_0x1c3241];return!_0x7612bc?(_0x1b72c2=a0_0x1b72['gGogMh'](_0x1b72c2),a0_0x1b72['IycKLC'][_0x1c3241]=_0x1b72c2):_0x1b72c2=_0x7612bc,_0x1b72c2;}export class ListService extends BaseClickUpService{constructor(_0x37794c,_0x5eb0aa,_0x462858,_0x27e9fd,_0x101d3e){const _0x16f5a7=a0_0x1b72,_0x566cda={'jSmfY':function(_0x4fd9ea,_0x5eaa5f){return _0x4fd9ea||_0x5eaa5f;}};super(_0x37794c,_0x5eb0aa,_0x462858,_0x101d3e),this[_0x16f5a7(0x1c6)+'paceS'+_0x16f5a7(0x240)+'e']=null,this[_0x16f5a7(0x1c6)+_0x16f5a7(0x1e2)+_0x16f5a7(0x240)+'e']=_0x566cda[_0x16f5a7(0x1fd)](_0x27e9fd,null);}[a0_0x51b9c3(0x1db)+a0_0x51b9c3(0x238)+'Id'](_0xc560ff){const _0x1422f1=a0_0x51b9c3,_0x1c9295={'xRELL':function(_0x1d56a2,_0x9c1329){return _0x1d56a2!==_0x9c1329;}};_0x1c9295[_0x1422f1(0x23b)](this[_0x1422f1(0x229)+'d'],_0xc560ff)&&(super[_0x1422f1(0x1db)+'eTeam'+'Id'](_0xc560ff),this[_0x1422f1(0x1c6)+_0x1422f1(0x1e2)+'ervic'+'e']?.[_0x1422f1(0x1db)+_0x1422f1(0x238)+'Id'](_0xc560ff));}[a0_0x51b9c3(0x1af)+a0_0x51b9c3(0x26a)+'r'](_0x4c1a6b,_0xb39fa4){const _0x5b4997=a0_0x51b9c3;if(_0x4c1a6b instanceof ClickUpServiceError)return _0x4c1a6b;return new ClickUpServiceError(_0xb39fa4||_0x5b4997(0x258)+_0x5b4997(0x252)+_0x5b4997(0x257)+_0x5b4997(0x1f4)+_0x4c1a6b[_0x5b4997(0x23c)+'ge'],ErrorCode[_0x5b4997(0x1a8)+'WN'],_0x4c1a6b);}async[a0_0x51b9c3(0x210)+a0_0x51b9c3(0x1cf)](_0xfc058b,_0x57342a){const _0x7aa500=a0_0x51b9c3;this[_0x7aa500(0x1e6)+_0x7aa500(0x23d)+'on']('creat'+_0x7aa500(0x1cf),{'spaceId':_0xfc058b,..._0x57342a});try{return await this[_0x7aa500(0x1a3)+'eques'+'t'](async()=>{const _0x482aff=_0x7aa500,_0x1e737b=await this[_0x482aff(0x228)+'t']['post'](_0x482aff(0x249)+'e/'+_0xfc058b+_0x482aff(0x213),_0x57342a);return this[_0x482aff(0x24e)+'r'][_0x482aff(0x201)]('Inval'+_0x482aff(0x223)+_0x482aff(0x212)+'rkspa'+_0x482aff(0x217)+'erarc'+_0x482aff(0x19b)+'che\x20d'+_0x482aff(0x1ff)+_0x482aff(0x20e)+'\x20crea'+_0x482aff(0x1cc)+'in\x20sp'+'ace',{'spaceId':_0xfc058b}),this[_0x482aff(0x1c6)+'paceS'+_0x482aff(0x240)+'e']?.[_0x482aff(0x1b7)+'Works'+_0x482aff(0x1ef)+_0x482aff(0x1e0)+_0x482aff(0x1f3)](),_0x1e737b[_0x482aff(0x230)];});}catch(_0x184d92){throw this[_0x7aa500(0x1af)+_0x7aa500(0x26a)+'r'](_0x184d92,'Faile'+_0x7aa500(0x206)+_0x7aa500(0x210)+_0x7aa500(0x1f7)+_0x7aa500(0x19f)+'space'+'\x20'+_0xfc058b);}}async[a0_0x51b9c3(0x210)+a0_0x51b9c3(0x1cf)+a0_0x51b9c3(0x216)+a0_0x51b9c3(0x1b2)](_0x270b93,_0x1da2ce){const _0x17ce68=a0_0x51b9c3,_0x49c71e={'EJoVe':'Inval'+'idati'+'ng\x20wo'+_0x17ce68(0x251)+_0x17ce68(0x217)+'erarc'+_0x17ce68(0x19b)+_0x17ce68(0x263)+_0x17ce68(0x1ff)+'\x20list'+_0x17ce68(0x19e)+_0x17ce68(0x1cc)+'in\x20fo'+_0x17ce68(0x1c5)};this[_0x17ce68(0x1e6)+_0x17ce68(0x23d)+'on'](_0x17ce68(0x210)+_0x17ce68(0x1cf)+_0x17ce68(0x216)+_0x17ce68(0x1b2),{'folderId':_0x270b93,..._0x1da2ce});try{return await this['makeR'+_0x17ce68(0x243)+'t'](async()=>{const _0x368bb9=_0x17ce68,_0x2b5816=await this[_0x368bb9(0x228)+'t']['post']('/fold'+'er/'+_0x270b93+_0x368bb9(0x213),_0x1da2ce);return this[_0x368bb9(0x24e)+'r'][_0x368bb9(0x201)](_0x49c71e[_0x368bb9(0x245)],{'folderId':_0x270b93}),this[_0x368bb9(0x1c6)+_0x368bb9(0x1e2)+_0x368bb9(0x240)+'e']?.[_0x368bb9(0x1b7)+_0x368bb9(0x1ea)+'paceH'+_0x368bb9(0x1e0)+_0x368bb9(0x1f3)](),_0x2b5816[_0x368bb9(0x230)];});}catch(_0x2afee0){throw this[_0x17ce68(0x1af)+'eErro'+'r'](_0x2afee0,'Faile'+_0x17ce68(0x206)+_0x17ce68(0x210)+_0x17ce68(0x1f7)+_0x17ce68(0x19f)+_0x17ce68(0x244)+'r\x20'+_0x270b93);}}async[a0_0x51b9c3(0x1a6)+'st'](_0x466dbf){const _0x34e27b=a0_0x51b9c3;this[_0x34e27b(0x1e6)+_0x34e27b(0x23d)+'on']('getLi'+'st',{'listId':_0x466dbf});try{const _0x22b4f9=await this['makeR'+_0x34e27b(0x243)+'t'](async()=>{const _0x3a132d=_0x34e27b;return await this[_0x3a132d(0x228)+'t'][_0x3a132d(0x1c3)]('/list'+'/'+_0x466dbf);});return _0x22b4f9[_0x34e27b(0x230)];}catch(_0xe86252){throw this[_0x34e27b(0x1af)+_0x34e27b(0x26a)+'r'](_0xe86252,_0x34e27b(0x1d1)+'d\x20to\x20'+'retri'+_0x34e27b(0x218)+_0x34e27b(0x1d7)+_0x466dbf+'\x22');}}async['getCu'+a0_0x51b9c3(0x260)+a0_0x51b9c3(0x19a)](_0x205b7b){const _0x34ff99=a0_0x51b9c3,_0x326759={'CYYHb':'getCu'+_0x34ff99(0x260)+_0x34ff99(0x19a)};this[_0x34ff99(0x1e6)+_0x34ff99(0x23d)+'on'](_0x326759[_0x34ff99(0x22d)],{'listId':_0x205b7b});try{const _0x5f59c2=await this[_0x34ff99(0x1a3)+_0x34ff99(0x243)+'t'](async()=>{const _0x43d3cb=_0x34ff99;return await this[_0x43d3cb(0x228)+'t'][_0x43d3cb(0x1c3)]('/list'+'/'+_0x205b7b+(_0x43d3cb(0x1e7)+'d'));});return _0x5f59c2[_0x34ff99(0x230)][_0x34ff99(0x246)+'s']||[];}catch(_0x478402){throw this[_0x34ff99(0x1af)+'eErro'+'r'](_0x478402,'Faile'+_0x34ff99(0x206)+_0x34ff99(0x21c)+_0x34ff99(0x1a5)+_0x34ff99(0x1e5)+_0x34ff99(0x1c4)+_0x34ff99(0x1d5)+_0x34ff99(0x1ce)+'t\x20\x22'+_0x205b7b+'\x22');}}async[a0_0x51b9c3(0x1db)+a0_0x51b9c3(0x1cf)](_0x3f4eae,_0x23ed71){const _0x251cfe=a0_0x51b9c3,_0x53aa76={'JjJOK':_0x251cfe(0x1c2)+_0x251cfe(0x223)+_0x251cfe(0x212)+'rkspa'+_0x251cfe(0x217)+_0x251cfe(0x1b5)+_0x251cfe(0x19b)+_0x251cfe(0x263)+'ue\x20to'+_0x251cfe(0x20e)+'\x20upda'+'te','XFocx':_0x251cfe(0x1db)+_0x251cfe(0x1cf)};this[_0x251cfe(0x1e6)+'erati'+'on'](_0x53aa76[_0x251cfe(0x231)],{'listId':_0x3f4eae,..._0x23ed71});try{return await this['makeR'+'eques'+'t'](async()=>{const _0x17ff06=_0x251cfe,_0x1110da=await this['clien'+'t']['put'](_0x17ff06(0x213)+'/'+_0x3f4eae,_0x23ed71);return this[_0x17ff06(0x24e)+'r'][_0x17ff06(0x201)](_0x53aa76[_0x17ff06(0x1c9)],{'listId':_0x3f4eae}),this[_0x17ff06(0x1c6)+_0x17ff06(0x1e2)+_0x17ff06(0x240)+'e']?.['clear'+_0x17ff06(0x1ea)+_0x17ff06(0x1ef)+_0x17ff06(0x1e0)+_0x17ff06(0x1f3)](),_0x1110da[_0x17ff06(0x230)];});}catch(_0x2c28dd){throw this['handl'+_0x251cfe(0x26a)+'r'](_0x2c28dd,_0x251cfe(0x1d1)+_0x251cfe(0x206)+'updat'+_0x251cfe(0x1f7)+'t\x20'+_0x3f4eae);}}async[a0_0x51b9c3(0x255)+a0_0x51b9c3(0x1cf)](_0xd23029){const _0x1f3b58=a0_0x51b9c3,_0x2f8feb={'NVzbb':'delet'+'eList'};this[_0x1f3b58(0x1e6)+_0x1f3b58(0x23d)+'on'](_0x2f8feb[_0x1f3b58(0x220)],{'listId':_0xd23029});try{return await this[_0x1f3b58(0x1a3)+_0x1f3b58(0x243)+'t'](async()=>{const _0x11399b=_0x1f3b58;await this[_0x11399b(0x228)+'t']['delet'+'e'](_0x11399b(0x213)+'/'+_0xd23029),this['logge'+'r'][_0x11399b(0x201)](_0x11399b(0x1c2)+_0x11399b(0x223)+_0x11399b(0x212)+_0x11399b(0x251)+_0x11399b(0x217)+_0x11399b(0x1b5)+_0x11399b(0x19b)+_0x11399b(0x263)+_0x11399b(0x1ff)+'\x20list'+_0x11399b(0x22f)+_0x11399b(0x214),{'listId':_0xd23029}),this[_0x11399b(0x1c6)+_0x11399b(0x1e2)+_0x11399b(0x240)+'e']?.['clear'+_0x11399b(0x1ea)+_0x11399b(0x1ef)+'ierar'+_0x11399b(0x1f3)]();}),{'success':!![]};}catch(_0x23d2f0){throw this[_0x1f3b58(0x1af)+_0x1f3b58(0x26a)+'r'](_0x23d2f0,_0x1f3b58(0x1d1)+_0x1f3b58(0x206)+_0x1f3b58(0x255)+_0x1f3b58(0x1f7)+'t\x20'+_0xd23029);}}async[a0_0x51b9c3(0x1a6)+a0_0x51b9c3(0x1a2)+a0_0x51b9c3(0x241)](_0x1e91a6,_0x30e07a){const _0x22f585=a0_0x51b9c3,_0x1fb38={'OHcmX':function(_0x3b46d8,_0x4704a0){return _0x3b46d8!==_0x4704a0;}};this[_0x22f585(0x1e6)+_0x22f585(0x23d)+'on'](_0x22f585(0x1a6)+'stsIn'+'Space',{'spaceId':_0x1e91a6,'archived':_0x30e07a});try{return await this['makeR'+_0x22f585(0x243)+'t'](async()=>{const _0x13ffe8=_0x22f585,_0x3900da=await this[_0x13ffe8(0x228)+'t'][_0x13ffe8(0x1c3)](_0x13ffe8(0x249)+'e/'+_0x1e91a6+_0x13ffe8(0x213),{'params':_0x1fb38[_0x13ffe8(0x1c8)](_0x30e07a,undefined)?{'archived':_0x30e07a}:{}});return _0x3900da['data'][_0x13ffe8(0x198)];});}catch(_0x22c370){throw this['handl'+_0x22f585(0x26a)+'r'](_0x22c370,_0x22f585(0x1d1)+_0x22f585(0x206)+_0x22f585(0x21b)+_0x22f585(0x1b0)+'in\x20sp'+_0x22f585(0x265)+_0x1e91a6);}}async[a0_0x51b9c3(0x1a6)+'stsIn'+a0_0x51b9c3(0x26e)+'r'](_0x5cee11,_0x544366){const _0x4643ca=a0_0x51b9c3,_0x552989={'kgjol':_0x4643ca(0x1a6)+'stsIn'+_0x4643ca(0x26e)+'r'};this[_0x4643ca(0x1e6)+'erati'+'on'](_0x552989[_0x4643ca(0x26f)],{'folderId':_0x5cee11,'archived':_0x544366});try{return await this[_0x4643ca(0x1a3)+_0x4643ca(0x243)+'t'](async()=>{const _0x3d5a68=_0x4643ca,_0x3719bb=await this['clien'+'t']['get'](_0x3d5a68(0x19d)+'er/'+_0x5cee11+_0x3d5a68(0x213),{'params':_0x544366!==undefined?{'archived':_0x544366}:{}});return _0x3719bb[_0x3d5a68(0x230)]['lists'];});}catch(_0x3b25a4){throw this[_0x4643ca(0x1af)+_0x4643ca(0x26a)+'r'](_0x3b25a4,_0x4643ca(0x1d1)+'d\x20to\x20'+_0x4643ca(0x21b)+_0x4643ca(0x1b0)+_0x4643ca(0x203)+_0x4643ca(0x254)+_0x5cee11);}}async[a0_0x51b9c3(0x1f9)+a0_0x51b9c3(0x1bf)+a0_0x51b9c3(0x26b)+'nSpac'+'e'](_0x5e79b4,_0x2aaba3){const _0x2d1d7c=a0_0x51b9c3,_0x500296={'jPDWO':function(_0x40a813,_0x2620e7){return _0x40a813||_0x2620e7;}};this[_0x2d1d7c(0x1e6)+_0x2d1d7c(0x23d)+'on'](_0x2d1d7c(0x1f9)+_0x2d1d7c(0x1bf)+_0x2d1d7c(0x26b)+_0x2d1d7c(0x1fe)+'e',{'spaceId':_0x5e79b4,'listName':_0x2aaba3});try{const _0x29ad44=await this['getLi'+_0x2d1d7c(0x1a2)+_0x2d1d7c(0x241)](_0x5e79b4),_0x3c5651=_0x29ad44[_0x2d1d7c(0x1f5)](_0x32fe54=>_0x32fe54[_0x2d1d7c(0x266)]['toLow'+_0x2d1d7c(0x1b3)+'e']()===_0x2aaba3[_0x2d1d7c(0x21e)+_0x2d1d7c(0x1b3)+'e']());return _0x500296[_0x2d1d7c(0x264)](_0x3c5651,null);}catch(_0x182ef5){throw this[_0x2d1d7c(0x1af)+_0x2d1d7c(0x26a)+'r'](_0x182ef5,_0x2d1d7c(0x1d1)+_0x2d1d7c(0x206)+_0x2d1d7c(0x199)+_0x2d1d7c(0x24a)+_0x2d1d7c(0x227)+_0x2d1d7c(0x1be)+_0x2d1d7c(0x24c)+'e\x20'+_0x5e79b4);}}async[a0_0x51b9c3(0x1f9)+a0_0x51b9c3(0x1bf)+'NameI'+a0_0x51b9c3(0x1fc)+'er'](_0x57efc2,_0x440603){const _0x5900f5=a0_0x51b9c3,_0x19fd3c={'qlgeM':_0x5900f5(0x1f9)+_0x5900f5(0x1bf)+_0x5900f5(0x26b)+'nFold'+'er'};this[_0x5900f5(0x1e6)+_0x5900f5(0x23d)+'on'](_0x19fd3c['qlgeM'],{'folderId':_0x57efc2,'listName':_0x440603});try{const _0x3b26fd=await this[_0x5900f5(0x1a6)+_0x5900f5(0x1a2)+_0x5900f5(0x26e)+'r'](_0x57efc2),_0x2e23ce=_0x3b26fd[_0x5900f5(0x1f5)](_0x119474=>_0x119474['name'][_0x5900f5(0x21e)+_0x5900f5(0x1b3)+'e']()===_0x440603[_0x5900f5(0x21e)+_0x5900f5(0x1b3)+'e']());return _0x2e23ce||null;}catch(_0x40102b){throw this[_0x5900f5(0x1af)+'eErro'+'r'](_0x40102b,'Faile'+_0x5900f5(0x206)+'find\x20'+_0x5900f5(0x24a)+_0x5900f5(0x227)+_0x5900f5(0x1be)+_0x5900f5(0x267)+_0x5900f5(0x19c)+_0x57efc2);}}async[a0_0x51b9c3(0x1a6)+a0_0x51b9c3(0x253)+a0_0x51b9c3(0x215)](_0x15a724){const _0x588d02=a0_0x51b9c3;this['logOp'+_0x588d02(0x23d)+'on'](_0x588d02(0x1a6)+_0x588d02(0x253)+_0x588d02(0x215),{'listId':_0x15a724});try{return await this[_0x588d02(0x1a3)+_0x588d02(0x243)+'t'](async()=>{const _0x3845e0=_0x588d02,_0x21db94=await this[_0x3845e0(0x228)+'t'][_0x3845e0(0x1c3)]('/list'+'/'+_0x15a724+(_0x3845e0(0x204)+'er'));return _0x21db94['data'];});}catch(_0x57b5b){throw this[_0x588d02(0x1af)+_0x588d02(0x26a)+'r'](_0x57b5b,'Faile'+_0x588d02(0x206)+_0x588d02(0x209)+'ember'+'s\x20for'+_0x588d02(0x20e)+'\x20'+_0x15a724);}}async['getLi'+'stCom'+a0_0x51b9c3(0x22c)](_0x2249ef){const _0x106354=a0_0x51b9c3;this[_0x106354(0x1e6)+_0x106354(0x23d)+'on'](_0x106354(0x1a6)+_0x106354(0x25e)+_0x106354(0x22c),{'listId':_0x2249ef});try{return await this[_0x106354(0x1a3)+_0x106354(0x243)+'t'](async()=>{const _0x2e4361=_0x106354,_0x2293e8=await this[_0x2e4361(0x228)+'t']['get'](_0x2e4361(0x213)+'/'+_0x2249ef+(_0x2e4361(0x1da)+_0x2e4361(0x1f1)));return _0x2293e8[_0x2e4361(0x230)][_0x2e4361(0x1d3)+_0x2e4361(0x205)]||[];});}catch(_0xbc7d87){throw this[_0x106354(0x1af)+'eErro'+'r'](_0xbc7d87,_0x106354(0x1d1)+_0x106354(0x206)+'get\x20c'+_0x106354(0x250)+_0x106354(0x239)+_0x106354(0x1ce)+'t\x20'+_0x2249ef);}}async['creat'+a0_0x51b9c3(0x1cf)+a0_0x51b9c3(0x23f)+'nt'](_0x3b2f05,_0x136eb2,_0x1bbd2e=![],_0x1c178a,_0x51ad48){const _0x2f7b7f=a0_0x51b9c3,_0x47c77c={'bxYEs':_0x2f7b7f(0x210)+_0x2f7b7f(0x1cf)+'Comme'+'nt','ctuST':function(_0x325bca,_0x44cf95){return _0x325bca===_0x44cf95;},'keniI':_0x2f7b7f(0x270)+'wn'};this[_0x2f7b7f(0x1e6)+_0x2f7b7f(0x23d)+'on'](_0x47c77c[_0x2f7b7f(0x22b)],{'listId':_0x3b2f05,'commentText':_0x136eb2,'notifyAll':_0x1bbd2e,'assignee':_0x1c178a});try{const _0x48ed0d={'notify_all':_0x1bbd2e};if(_0x1c178a)_0x48ed0d[_0x2f7b7f(0x24b)+_0x2f7b7f(0x259)]=_0x1c178a;if(_0x51ad48)_0x48ed0d[_0x2f7b7f(0x1d3)+'nt']=_0x51ad48;else _0x136eb2&&(_0x48ed0d[_0x2f7b7f(0x1d3)+'nt_te'+'xt']=_0x136eb2);const _0x2ebae9=await this[_0x2f7b7f(0x228)+'t'][_0x2f7b7f(0x1b8)](_0x2f7b7f(0x213)+'/'+_0x3b2f05+('/comm'+_0x2f7b7f(0x1f1)),_0x48ed0d),_0x362461=_0x2ebae9['data'];if(_0x362461[_0x2f7b7f(0x1d3)+'nt']&&_0x47c77c[_0x2f7b7f(0x232)](typeof _0x362461[_0x2f7b7f(0x1d3)+'nt'],_0x2f7b7f(0x1c0)+'t')&&_0x362461[_0x2f7b7f(0x1d3)+'nt']['id'])return _0x362461[_0x2f7b7f(0x1d3)+'nt'];if(_0x362461['id'])return _0x362461;return{'id':_0x2f7b7f(0x261)+_0x2f7b7f(0x1bc)+Date[_0x2f7b7f(0x1b4)](),'comment':_0x136eb2,'comment_text':_0x136eb2,'user':{'id':0x0,'username':_0x47c77c[_0x2f7b7f(0x22e)],'email':'','color':''},'date':new Date()[_0x2f7b7f(0x211)+_0x2f7b7f(0x236)+'g'](),'resolved':![]};}catch(_0x32b38c){throw this[_0x2f7b7f(0x1af)+_0x2f7b7f(0x26a)+'r'](_0x32b38c,_0x2f7b7f(0x1d1)+'d\x20to\x20'+'creat'+_0x2f7b7f(0x25d)+_0x2f7b7f(0x1ad)+'on\x20li'+_0x2f7b7f(0x202)+_0x3b2f05);}}async['creat'+'eList'+a0_0x51b9c3(0x20b)+'empla'+'te'](_0x33719d,_0x34d9fe,_0x117fe6,_0x1c513a){const _0x49a1c1=a0_0x51b9c3,_0x34289f={'LafUH':'creat'+_0x49a1c1(0x1cf)+_0x49a1c1(0x20b)+_0x49a1c1(0x24f)+'te','RFxXT':function(_0x5027a2,_0x117363){return _0x5027a2>_0x117363;}};this[_0x49a1c1(0x1e6)+'erati'+'on'](_0x34289f[_0x49a1c1(0x219)],{'spaceId':_0x33719d,'templateId':_0x34d9fe,'name':_0x117fe6});try{const _0x23fa32={'name':_0x117fe6};_0x1c513a&&_0x34289f[_0x49a1c1(0x1b9)](Object[_0x49a1c1(0x1ed)](_0x1c513a)[_0x49a1c1(0x207)+'h'],0x0)&&(_0x23fa32['optio'+'ns']=_0x1c513a);const _0x167222=await this[_0x49a1c1(0x228)+'t']['post'](_0x49a1c1(0x249)+'e/'+_0x33719d+('/list'+_0x49a1c1(0x1ae)+_0x49a1c1(0x224))+_0x34d9fe,_0x23fa32);return this['works'+_0x49a1c1(0x1e2)+_0x49a1c1(0x240)+'e']?.[_0x49a1c1(0x1b7)+_0x49a1c1(0x1ea)+_0x49a1c1(0x1ef)+_0x49a1c1(0x1e0)+_0x49a1c1(0x1f3)](),_0x167222[_0x49a1c1(0x230)];}catch(_0x29600c){throw this['handl'+_0x49a1c1(0x26a)+'r'](_0x29600c,_0x49a1c1(0x1d1)+_0x49a1c1(0x206)+'creat'+_0x49a1c1(0x1f7)+_0x49a1c1(0x1bd)+_0x49a1c1(0x1a4)+_0x49a1c1(0x1a0)+'\x20'+_0x34d9fe+('\x20in\x20s'+_0x49a1c1(0x23e))+_0x33719d);}}async[a0_0x51b9c3(0x210)+'eList'+'InFol'+a0_0x51b9c3(0x234)+'omTem'+a0_0x51b9c3(0x1a0)](_0x29968e,_0x29d3cb,_0x497fc0,_0x162624){const _0x1d4390=a0_0x51b9c3,_0x3edba8={'buDlq':_0x1d4390(0x210)+'eList'+_0x1d4390(0x216)+_0x1d4390(0x234)+'omTem'+'plate','QBZaz':function(_0x269250,_0x2d0adb){return _0x269250>_0x2d0adb;}};this['logOp'+_0x1d4390(0x23d)+'on'](_0x3edba8[_0x1d4390(0x1a7)],{'folderId':_0x29968e,'templateId':_0x29d3cb,'name':_0x497fc0});try{const _0x3b92cf={'name':_0x497fc0};_0x162624&&_0x3edba8[_0x1d4390(0x25b)](Object[_0x1d4390(0x1ed)](_0x162624)[_0x1d4390(0x207)+'h'],0x0)&&(_0x3b92cf[_0x1d4390(0x248)+'ns']=_0x162624);const _0x3671ed=await this[_0x1d4390(0x228)+'t'][_0x1d4390(0x1b8)](_0x1d4390(0x19d)+_0x1d4390(0x225)+_0x29968e+(_0x1d4390(0x213)+'_temp'+'late/')+_0x29d3cb,_0x3b92cf);return this['works'+_0x1d4390(0x1e2)+_0x1d4390(0x240)+'e']?.['clear'+'Works'+_0x1d4390(0x1ef)+'ierar'+'chy'](),_0x3671ed[_0x1d4390(0x230)];}catch(_0x5ca5ac){throw this[_0x1d4390(0x1af)+'eErro'+'r'](_0x5ca5ac,'Faile'+'d\x20to\x20'+_0x1d4390(0x210)+_0x1d4390(0x1f7)+'t\x20fro'+_0x1d4390(0x1a4)+_0x1d4390(0x1a0)+'\x20'+_0x29d3cb+(_0x1d4390(0x1ca)+_0x1d4390(0x1ab)+'\x20')+_0x29968e);}}async['moveL'+a0_0x51b9c3(0x221)](_0x46bfc4,_0x3bf0c9,_0xb41e9e,_0x45b60a=![]){const _0x29dd72=a0_0x51b9c3,_0x59bd39={'ceKnn':'./typ'+_0x29dd72(0x24d),'UcgzK':_0x29dd72(0x1ac)+'ist','VBXpp':_0x29dd72(0x210)+_0x29dd72(0x233)+'w_lis'+'t','bgczO':function(_0x2ad674,_0x4a2c03){return _0x2ad674===_0x4a2c03;},'ATlJU':function(_0x53e68b,_0x508754){return _0x53e68b===_0x508754;},'wujJV':function(_0x53087b,_0x4640c3){return _0x53087b-_0x4640c3;},'Zaiyd':_0x29dd72(0x270)+_0x29dd72(0x1e8)+_0x29dd72(0x21a),'ZVtPB':'clean'+_0x29dd72(0x256)+_0x29dd72(0x1fb)+_0x29dd72(0x233)+_0x29dd72(0x1b6),'szsAc':function(_0x12fb04,_0x300aa1){return _0x12fb04 instanceof _0x300aa1;}};this[_0x29dd72(0x1e6)+_0x29dd72(0x23d)+'on']('moveL'+_0x29dd72(0x221),{'listId':_0x46bfc4,'destinationId':_0x3bf0c9,'destinationType':_0xb41e9e,'allowDestructiveFallback':_0x45b60a});try{const _0x3fc060=await this['getLi'+'st'](_0x46bfc4),_0x68c883={'urgent':0x1,'high':0x2,'normal':0x3,'low':0x4},_0x19c64c=_0x3fc060[_0x29dd72(0x1e9)+'ity']?.['prior'+'ity']?_0x68c883[_0x3fc060['prior'+_0x29dd72(0x1f2)]['prior'+_0x29dd72(0x1f2)][_0x29dd72(0x21e)+_0x29dd72(0x1b3)+'e']()]:undefined,{toTaskPriority:_0x682613}=await import(_0x59bd39[_0x29dd72(0x247)]),_0x3d7523={'name':_0x3fc060['name'],'content':_0x3fc060[_0x29dd72(0x20d)+'nt'],'due_date':_0x3fc060['due_d'+'ate']?parseInt(_0x3fc060[_0x29dd72(0x1eb)+_0x29dd72(0x1ee)]):undefined,'priority':_0x682613(_0x19c64c),'assignee':_0x3fc060['assig'+_0x29dd72(0x259)]?.['id'],'status':_0x3fc060['statu'+'s']?.[_0x29dd72(0x1f8)+'s']};let _0x48f05a;_0xb41e9e===_0x29dd72(0x1d0)?_0x48f05a=await this[_0x29dd72(0x210)+_0x29dd72(0x1cf)](_0x3bf0c9,_0x3d7523):_0x48f05a=await this[_0x29dd72(0x210)+_0x29dd72(0x1cf)+_0x29dd72(0x216)+'der'](_0x3bf0c9,_0x3d7523);this['logOp'+_0x29dd72(0x23d)+'on'](_0x59bd39[_0x29dd72(0x208)],{'step':_0x59bd39[_0x29dd72(0x1c1)],'newListId':_0x48f05a['id']});const _0x1e784c=[];let _0x21c8d1=0x0,_0x39481=!![];while(_0x39481){const _0x41ed56=await this[_0x29dd72(0x1a3)+_0x29dd72(0x243)+'t'](async()=>this[_0x29dd72(0x228)+'t']['get'](_0x29dd72(0x213)+'/'+_0x46bfc4+_0x29dd72(0x21d),{'params':{'include_closed':!![],'page':_0x21c8d1}})),_0x1a8641=_0x41ed56[_0x29dd72(0x230)]['tasks']||[];_0x1e784c['push'](..._0x1a8641),_0x39481=_0x59bd39[_0x29dd72(0x1e3)](_0x1a8641[_0x29dd72(0x207)+'h'],0x64),_0x21c8d1++;}this[_0x29dd72(0x1e6)+_0x29dd72(0x23d)+'on']('moveL'+_0x29dd72(0x221),{'step':_0x29dd72(0x237)+_0x29dd72(0x21f)+_0x29dd72(0x20f),'count':_0x1e784c[_0x29dd72(0x207)+'h']});let _0x3e7fc8=0x0,_0x23d7cc=null;for(const _0x4cc052 of _0x1e784c){try{await this[_0x29dd72(0x1a3)+_0x29dd72(0x243)+'t'](()=>this[_0x29dd72(0x228)+'t']['put'](this[_0x29dd72(0x222)+'eUrl']+(_0x29dd72(0x1ec)+'space'+'s/')+this[_0x29dd72(0x229)+'d']+(_0x29dd72(0x21d)+'s/')+_0x4cc052['id']+('/home'+_0x29dd72(0x235)+'/')+_0x48f05a['id'])),_0x3e7fc8++;}catch(_0x3bf7b5){if(!_0x23d7cc)_0x23d7cc=_0x3bf7b5;this[_0x29dd72(0x24e)+'r'][_0x29dd72(0x200)](_0x29dd72(0x1d1)+_0x29dd72(0x206)+'move\x20'+_0x29dd72(0x1dd)+_0x4cc052['id']+(_0x29dd72(0x20a)+_0x29dd72(0x1cb)+'st'),_0x3bf7b5);if(_0x3bf7b5 instanceof ClickUpServiceError&&_0x59bd39[_0x29dd72(0x20c)](_0x3bf7b5[_0x29dd72(0x1d4)],ErrorCode[_0x29dd72(0x1aa)+_0x29dd72(0x1a1)])&&!_0x45b60a)break;}}const _0x51c5d6=_0x59bd39[_0x29dd72(0x226)](_0x1e784c[_0x29dd72(0x207)+'h'],_0x3e7fc8);if(_0x51c5d6===0x0)return await this['delet'+_0x29dd72(0x1cf)](_0x46bfc4),this[_0x29dd72(0x1e6)+_0x29dd72(0x23d)+'on'](_0x29dd72(0x1ac)+_0x29dd72(0x221),{'step':'delet'+_0x29dd72(0x25a)+_0x29dd72(0x26d)+_0x29dd72(0x23a)}),_0x48f05a;else{const _0x180abe=_0x29dd72(0x1dc)+'parti'+_0x29dd72(0x1a9)+'ilure'+':\x20'+_0x3e7fc8+(_0x29dd72(0x22a)+_0x29dd72(0x1d6)+'ed,\x20')+_0x51c5d6+(_0x29dd72(0x22a)+_0x29dd72(0x1fa)+_0x29dd72(0x1bb)+'Error'+':\x20')+(_0x23d7cc?.[_0x29dd72(0x23c)+'ge']||_0x59bd39[_0x29dd72(0x268)]);this['logge'+'r'][_0x29dd72(0x1d2)](_0x180abe,{'success':_0x3e7fc8,'failed':_0x51c5d6});if(_0x3e7fc8===0x0)try{await this['delet'+'eList'](_0x48f05a['id']),this[_0x29dd72(0x1e6)+_0x29dd72(0x23d)+'on']('moveL'+_0x29dd72(0x221),{'step':_0x59bd39['ZVtPB'],'newListId':_0x48f05a['id']});}catch(_0x42904d){this[_0x29dd72(0x24e)+'r'][_0x29dd72(0x200)](_0x29dd72(0x1d1)+_0x29dd72(0x206)+'clean'+_0x29dd72(0x25c)+_0x29dd72(0x26c)+'desti'+_0x29dd72(0x1e4)+_0x29dd72(0x1f6)+'t',_0x42904d);}throw _0x23d7cc||new ClickUpServiceError(_0x180abe,ErrorCode[_0x29dd72(0x1a8)+'WN']);}}catch(_0x588a3e){if(_0x59bd39[_0x29dd72(0x269)](_0x588a3e,ClickUpServiceError))throw _0x588a3e;throw this[_0x29dd72(0x1af)+_0x29dd72(0x26a)+'r'](_0x588a3e,_0x29dd72(0x1d1)+_0x29dd72(0x206)+_0x29dd72(0x1ba)+_0x29dd72(0x24a)+_0x46bfc4+_0x29dd72(0x1d8)+_0xb41e9e+'\x20'+_0x3bf0c9);}}}function a0_0x2db5(){const _0xefbf2e=['DgLVBIa','mtaWA1PLvhfU','CIbSAxm','zuXPC3q','C3bHy2u','rMfPBgu','D2fYBG','y29TBwu','y29Kzq','zhmGzM8','CYbTB3y','Axn0ici','ihrVia','nZC5ntKZogfeyxH1ua','l2nVBw0','DxbKyxq','tw92zsa','DgfZAYa','mtbrAKXJChu','nJGXnty2neXhtMjOCW','AwvYyxi','mJaXnJK0z2PQvvrW','CgfJzvm','yMDJEK8','BMf0Aw8','Dxn0B20','Bg9Nt3a','l2zPzwW','D24Gzxi','ChjPB3i','v29YA3m','zhvLx2q','l3DVCMS','A2v5CW','yxrL','CgfJzuG','ndCWmJuZvu9tuM1n','zw50','Axr5','y2H5','CM9YoIa','zMLUza','BIbSAxm','zsbSAxm','C3rHDhu','zMLUzeW','CYbMywK','x2zHAwW','BKzVBgq','ALnTzLK','BLnWywm','DwuGDg8','zxjYB3i','Aw5MBW','C3qG','Aw4GzM8','l21LBwi','BNrZ','zcb0BYa','BgvUz3q','vwnNEKS','z2v0ig0','ihrVig4','rNjVBvq','qvrSsLu','y29UDgu','igXPC3q','yxnRCW','y3jLyxq','Dg9ju08','BMCGD28','l2XPC3q','DgLVBG','yMvYCW','sw5gB2W','y2uGAgK','zxzLigW','tgfMvuG','CM9Y','z2v0igW','CMv0CMK','l3rHC2S','Dg9mB3C','Aw5Nx3q','tLz6yMi','Axn0','DJncyxm','AwrHDgK','Bgf0zs8','zxiV','D3vQsLy','yNKGBMe','y2XPzw4','DgvHBuK','ihrHC2S','yNHzrxm','BwvUDhm','q1Lzsgi','A2vUAuK','igrLBgu','zgf0yq','wezVy3G','y3r1u1q','zwrFBMu','zgvYrNi','x2XPC3q','u3rYAw4','zMv0y2G','zvrLyw0','DhmGzM8','BgLZDa','EfjfteW','BwvZC2e','zxjHDgK','CgfJzsa','q29TBwu','zxj2Awm','u3bHy2u','mtaYnZaWmJrRu3DxC3u','zxf1zxm','zM9Szgu','ruPVvMu','zMLLBgq','y2vlBM4','B3b0Aw8','l3nWywm','BgLZDca','yxnZAwC','ihnWywm','zxmUANm','Bg9Nz2u','zw1WBge','B21Tzw4','CMTZCge','C2vYDMK','C3rnzw0','BgrLCIa','zgvSzxq','zwrFDxa','y2uGzxi','tgLZDca','BMvL','zwrFC28','uujAyxO','ihvWigu','zsbJB20','C3rdB20','n21gCvn3yq','C3rVBuy','zMfSBgi','mtbTteLduwS','y2HLigq','ALbev08','ywnLia','BMfTzq','igzVBgq','wMfPEwq','C3PZqwm','zuvYCM8','tMfTzuK','Bxb0Esa','DxjJzv8','rM9Szgu','A2DQB2W','vw5RBM8','BgLZDhm','zMLUzca','AwvSzhm','AhKGy2e','zxiG','l2zVBgq','ignYzwe','DcbPBIa','CgXHDgu','rerftG','C3rZsw4','BwfRzvi','Bsb0zw0','zxzLigm','z2v0tgK','yNveBhe','vu5ltK8','ywWGzMe','rK9sqKK','B2XKzxi','Bw92zuW','BwvUDca','x3rLBxa','AgfUzgW','Axn0CYa','nZa5mtzRrw5qEuK','zgvY','zxjdyxm','BM93','zxjHCMm','D0XPC3q','y2XLyxi','Cg9ZDa','uKz4wfq','Bw92zsa','BgvKlIa','ywnRlq','DcbMCM8','BwuGAw4','Axn0qNK','B2jQzwm','vKjyCha','sw52ywW','z2v0','igzPzwW','BgrLCG','D29YA3m','mJa4nde4mJfjs2X3sgK','t0HJBvG','sMPkt0S','igLUigy','zxCGBgK'];a0_0x2db5=function(){return _0xefbf2e;};return a0_0x2db5();}