@taazkareem/clickup-mcp-server 0.14.0 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -23
- package/build/auth/routes.js +1 -1
- package/build/config.js +1 -1
- package/build/index.js +1 -1
- package/build/license.js +1 -1
- package/build/logger.js +1 -1
- package/build/middleware/auth.js +1 -1
- package/build/middleware/security.js +1 -1
- package/build/personas.js +1 -1
- package/build/prompts.js +1 -1
- package/build/server.js +1 -1
- package/build/services/clickup/audit-logs.js +1 -1
- package/build/services/clickup/base.js +1 -1
- package/build/services/clickup/bulk.js +1 -1
- package/build/services/clickup/chat.js +1 -1
- package/build/services/clickup/custom-field.js +1 -1
- package/build/services/clickup/document.js +1 -1
- package/build/services/clickup/errors.js +1 -1
- package/build/services/clickup/folder.js +1 -1
- package/build/services/clickup/goal.js +1 -1
- package/build/services/clickup/guest.js +1 -1
- package/build/services/clickup/index.js +1 -1
- package/build/services/clickup/list.js +1 -1
- package/build/services/clickup/rate-limiter.js +1 -1
- package/build/services/clickup/sprint.js +1 -1
- package/build/services/clickup/tag.js +1 -1
- package/build/services/clickup/task/index.js +1 -1
- package/build/services/clickup/task/task-attachments.js +1 -1
- package/build/services/clickup/task/task-checklists.js +1 -1
- package/build/services/clickup/task/task-comments.js +1 -1
- package/build/services/clickup/task/task-core.js +1 -1
- package/build/services/clickup/task/task-relationships.js +1 -1
- package/build/services/clickup/task/task-search.js +1 -1
- package/build/services/clickup/task/task-service.js +1 -1
- package/build/services/clickup/task/task-tags.js +1 -1
- package/build/services/clickup/task-templates.js +1 -1
- package/build/services/clickup/time.js +1 -1
- package/build/services/clickup/types.js +1 -1
- package/build/services/clickup/user-group.js +1 -1
- package/build/services/clickup/view.js +1 -1
- package/build/services/clickup/webhook.js +1 -1
- package/build/services/clickup/workspace.js +1 -1
- package/build/services/oauth.js +1 -1
- package/build/services/shared.js +1 -1
- package/build/sse_server.js +1 -1
- package/build/tools/attachment.js +1 -1
- package/build/tools/audit-logs.js +1 -1
- package/build/tools/chat/handlers.js +1 -1
- package/build/tools/chat/index.js +1 -1
- package/build/tools/chat/utils.js +1 -1
- package/build/tools/custom-field.js +1 -1
- package/build/tools/documents.js +1 -1
- package/build/tools/feedback.js +1 -1
- package/build/tools/folder.js +1 -1
- package/build/tools/goal.js +1 -1
- package/build/tools/guest.js +1 -1
- package/build/tools/index.js +1 -1
- package/build/tools/list.js +1 -1
- package/build/tools/registry.js +1 -1
- package/build/tools/space.js +1 -1
- package/build/tools/sprint.js +1 -1
- package/build/tools/tag.js +1 -1
- package/build/tools/task/bulk-operations.js +1 -1
- package/build/tools/task/checklists.js +1 -1
- package/build/tools/task/handlers.js +1 -1
- package/build/tools/task/index.js +1 -1
- package/build/tools/task/main.js +1 -1
- package/build/tools/task/markdown-converter.js +1 -1
- package/build/tools/task/params.js +1 -1
- package/build/tools/task/relationships.js +1 -1
- package/build/tools/task/single-operations.js +1 -1
- package/build/tools/task/utilities.js +1 -1
- package/build/tools/task/workspace-operations.js +1 -1
- package/build/tools/task-templates.js +1 -1
- package/build/tools/time_entries.js +1 -1
- package/build/tools/user-group.js +1 -1
- package/build/tools/utils.js +1 -1
- package/build/tools/view.js +1 -1
- package/build/tools/webhook.js +1 -1
- package/build/tools/workspace.js +1 -1
- package/build/transport/mcp-handler.js +1 -1
- package/build/utils/cache.js +1 -1
- package/build/utils/color-processor.js +1 -1
- package/build/utils/concurrency-utils.js +1 -1
- package/build/utils/context-utils.js +1 -0
- package/build/utils/date-utils.js +1 -1
- package/build/utils/log-sanitizer.js +1 -1
- package/build/utils/member-utils.js +1 -1
- package/build/utils/request-utils.js +1 -1
- package/build/utils/resolver-utils.js +1 -1
- package/build/utils/sponsor-service.js +1 -1
- package/build/utils/token-utils.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x560744=a0_0x13b7;(function(_0x5036e5,_0x2c8944){const _0x53037f=a0_0x13b7,_0x410961=_0x5036e5();while(!![]){try{const _0x18589b=-parseInt(_0x53037f(0xcb))/0x1*(parseInt(_0x53037f(0xbc))/0x2)+parseInt(_0x53037f(0xdc))/0x3*(-parseInt(_0x53037f(0xcc))/0x4)+parseInt(_0x53037f(0xdf))/0x5+parseInt(_0x53037f(0x101))/0x6+-parseInt(_0x53037f(0xd7))/0x7*(parseInt(_0x53037f(0x100))/0x8)+parseInt(_0x53037f(0xd4))/0x9*(parseInt(_0x53037f(0xe7))/0xa)+-parseInt(_0x53037f(0xc9))/0xb*(-parseInt(_0x53037f(0xbd))/0xc);if(_0x18589b===_0x2c8944)break;else _0x410961['push'](_0x410961['shift']());}catch(_0x3fc769){_0x410961['push'](_0x410961['shift']());}}}(a0_0x1257,0xbcfc9));export class TaskServiceAttachments{constructor(_0x27b4b8){const _0x6ed2a0=a0_0x13b7,_0xa2f36d={'kCvti':function(_0x289df1,_0x5382f8){return _0x289df1*_0x5382f8;},'jkxHL':function(_0x159f7b,_0x4be291){return _0x159f7b-_0x4be291;}};this[_0x6ed2a0(0xd6)]=_0x27b4b8,this[_0x6ed2a0(0xcd)+'Sessi'+_0x6ed2a0(0x106)]=new Map();const _0x7b1f4=setInterval(()=>{const _0x553a57=_0x6ed2a0,_0x21d63e=Date['now'](),_0x38ed76=_0xa2f36d[_0x553a57(0xf5)](0x18*0x3c,0x3c)*0x3e8;for(const [_0x26d78a,_0x2c30dd]of this['chunk'+'Sessi'+'ons']['entri'+'es']()){_0xa2f36d['jkxHL'](_0x21d63e,_0x2c30dd[_0x553a57(0xdd)+_0x553a57(0xc6)])>_0x38ed76&&this['chunk'+_0x553a57(0xbb)+_0x553a57(0x106)][_0x553a57(0xc3)+'e'](_0x26d78a);}},0xe10*0x3e8);}[a0_0x560744(0xbf)+a0_0x560744(0xfd)+a0_0x560744(0xfc)](_0x338d22){const _0x4bd12c=a0_0x560744;return this[_0x4bd12c(0xcd)+_0x4bd12c(0xbb)+_0x4bd12c(0x106)][_0x4bd12c(0xcf)](_0x338d22);}['creat'+a0_0x560744(0xc7)+'kSess'+'ion'](_0x557d5c,_0x4b8873){const _0x24a2c2=a0_0x560744;this[_0x24a2c2(0xcd)+'Sessi'+_0x24a2c2(0x106)][_0x24a2c2(0xed)](_0x557d5c,{..._0x4b8873,'timestamp':Date[_0x24a2c2(0xd2)]()});}[a0_0x560744(0xc3)+a0_0x560744(0xc7)+'kSess'+a0_0x560744(0xe9)](_0x2b7c3b){const _0x517bd8=a0_0x560744;this['chunk'+_0x517bd8(0xbb)+_0x517bd8(0x106)][_0x517bd8(0xc3)+'e'](_0x2b7c3b);}async[a0_0x560744(0xc4)+a0_0x560744(0xd3)+a0_0x560744(0xff)+a0_0x560744(0xc0)](_0x383111,_0x1df927,_0x20ecc0){const _0x4c2100=a0_0x560744,_0x27d76d={'WdOiF':_0x4c2100(0xf6)+'data','iBLOh':_0x4c2100(0xe0)+_0x4c2100(0xc0),'VdFTD':_0x4c2100(0xc4)+_0x4c2100(0xd3)+_0x4c2100(0xff)+_0x4c2100(0xc0)};this[_0x4c2100(0xd6)][_0x4c2100(0x104)+'erati'+'on'](_0x27d76d[_0x4c2100(0xf9)],{'taskId':_0x383111,'fileName':_0x20ecc0,'fileSize':_0x1df927[_0x4c2100(0xe3)+'h']});try{return await this[_0x4c2100(0xd6)][_0x4c2100(0xde)+_0x4c2100(0xba)+'t'](async()=>{const _0x1f9419=_0x4c2100,_0x1f4a51=(await import(_0x27d76d[_0x1f9419(0xe2)]))[_0x1f9419(0xf2)+'lt'],_0x174953=new _0x1f4a51();_0x174953[_0x1f9419(0xf8)+'d'](_0x27d76d[_0x1f9419(0xc2)],_0x1df927,{'filename':_0x20ecc0,'contentType':'appli'+_0x1f9419(0xdb)+_0x1f9419(0xf7)+_0x1f9419(0x103)+'ream'});const _0x5a3766=await this[_0x1f9419(0xd6)][_0x1f9419(0xb9)+'t'][_0x1f9419(0xec)]('/task'+'/'+_0x383111+('/atta'+_0x1f9419(0xc5)+'t'),_0x174953,{'headers':{..._0x174953[_0x1f9419(0xd5)+_0x1f9419(0xf3)](),'Authorization':this[_0x1f9419(0xd6)][_0x1f9419(0xd1)+'y']}});return _0x5a3766['data'];});}catch(_0x25acb7){throw this[_0x4c2100(0xd6)]['handl'+_0x4c2100(0xe1)+'r'](_0x25acb7,_0x4c2100(0xbe)+_0x4c2100(0xc1)+_0x4c2100(0xc4)+_0x4c2100(0xd8)+_0x4c2100(0xda)+_0x4c2100(0x105)+_0x4c2100(0xfb)+'\x20'+_0x383111);}}async[a0_0x560744(0xc4)+a0_0x560744(0xd3)+a0_0x560744(0xff)+a0_0x560744(0xc0)+a0_0x560744(0xf1)+'rl'](_0x487b05,_0x3bbe97,_0x5c6a46,_0x3e5788){const _0x3d72e6=a0_0x560744,_0x21d1cd={'PfPbZ':_0x3d72e6(0xd9),'ZCegi':'Autho'+'rizat'+_0x3d72e6(0xe9),'wYDLC':_0x3d72e6(0xe5)+_0x3d72e6(0xe6)+'r','usXXN':_0x3d72e6(0xe0)+_0x3d72e6(0xc0)};this['core'][_0x3d72e6(0x104)+'erati'+'on']('uploa'+_0x3d72e6(0xd3)+'Attac'+_0x3d72e6(0xc0)+_0x3d72e6(0xf1)+'rl',{'taskId':_0x487b05,'fileUrl':_0x3bbe97,'fileName':_0x5c6a46});try{return await this[_0x3d72e6(0xd6)][_0x3d72e6(0xde)+'eques'+'t'](async()=>{const _0x4b753f=_0x3d72e6,_0x3b1e34=(await import(_0x21d1cd[_0x4b753f(0xfe)]))[_0x4b753f(0xf2)+'lt'],_0x518d2a=(await import(_0x4b753f(0xf6)+_0x4b753f(0xf0)))[_0x4b753f(0xf2)+'lt'],_0x4f5901={};_0x3e5788&&(_0x4f5901[_0x21d1cd[_0x4b753f(0xce)]]=_0x3e5788);const _0x400f95=await _0x3b1e34['get'](_0x3bbe97,{'responseType':_0x21d1cd['wYDLC'],'headers':_0x4f5901}),_0x23b6ae=_0x5c6a46||_0x3bbe97[_0x4b753f(0xca)]('/')[_0x4b753f(0xef)]()||_0x4b753f(0xee)+_0x4b753f(0xd0)+'-file',_0x7fedb1=new _0x518d2a();_0x7fedb1[_0x4b753f(0xf8)+'d'](_0x21d1cd[_0x4b753f(0x102)],Buffer[_0x4b753f(0xeb)](_0x400f95['data']),{'filename':_0x23b6ae,'contentType':'appli'+'catio'+_0x4b753f(0xf7)+_0x4b753f(0x103)+'ream'});const _0x330f88=await this[_0x4b753f(0xd6)][_0x4b753f(0xb9)+'t'][_0x4b753f(0xec)](_0x4b753f(0xe8)+'/'+_0x487b05+(_0x4b753f(0xfa)+_0x4b753f(0xc5)+'t'),_0x7fedb1,{'headers':{..._0x7fedb1[_0x4b753f(0xd5)+'aders'](),'Authorization':this['core'][_0x4b753f(0xd1)+'y']}});return _0x330f88['data'];});}catch(_0x418203){throw this[_0x3d72e6(0xd6)]['handl'+_0x3d72e6(0xe1)+'r'](_0x418203,'Faile'+'d\x20to\x20'+_0x3d72e6(0xc4)+_0x3d72e6(0xd8)+'achme'+_0x3d72e6(0xc8)+_0x3d72e6(0xe4)+_0x3d72e6(0xea)+_0x3d72e6(0xf4)+_0x487b05);}}}function a0_0x13b7(_0xeece41,_0x26ec42){_0xeece41=_0xeece41-0xb9;const _0x125708=a0_0x1257();let _0x13b797=_0x125708[_0xeece41];if(a0_0x13b7['NYgcHP']===undefined){var _0x4e7481=function(_0xcc5b79){const _0x245224='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x50672f='',_0x48626f='';for(let _0x4694da=0x0,_0x3ff35f,_0x45c686,_0x39a854=0x0;_0x45c686=_0xcc5b79['charAt'](_0x39a854++);~_0x45c686&&(_0x3ff35f=_0x4694da%0x4?_0x3ff35f*0x40+_0x45c686:_0x45c686,_0x4694da++%0x4)?_0x50672f+=String['fromCharCode'](0xff&_0x3ff35f>>(-0x2*_0x4694da&0x6)):0x0){_0x45c686=_0x245224['indexOf'](_0x45c686);}for(let _0x53b7ab=0x0,_0x592c8f=_0x50672f['length'];_0x53b7ab<_0x592c8f;_0x53b7ab++){_0x48626f+='%'+('00'+_0x50672f['charCodeAt'](_0x53b7ab)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x48626f);};a0_0x13b7['wUWeXS']=_0x4e7481,a0_0x13b7['LzmctO']={},a0_0x13b7['NYgcHP']=!![];}const _0x2e80da=_0x125708[0x0],_0x67d500=_0xeece41+_0x2e80da,_0x249779=a0_0x13b7['LzmctO'][_0x67d500];return!_0x249779?(_0x13b797=a0_0x13b7['wUWeXS'](_0x13b797),a0_0x13b7['LzmctO'][_0x67d500]=_0x13b797):_0x13b797=_0x249779,_0x13b797;}function a0_0x1257(){const _0x2c6f5d=['Cg9W','zgf0yq','rNjVBvu','zgvMyxu','ywrLCNm','DgfZAYa','A0n2DgK','zM9YBs0','BI9Vy3q','yxbWzw4','vMrgveq','l2f0Dge','ihrHC2S','C3nPB24','Dw5Ru2u','ugzqyLO','qxr0ywm','nduXmdr2rMjyCxC','odG5mteZmgf6C3Dssq','Dxnywe4','zxqTC3q','Bg9Nt3a','BNqGDg8','B25Z','y2XPzw4','zxf1zxm','u2vZC2K','mtrlyuHdvg4','mtyXntq0zg1ZwKLQ','rMfPBgu','z2v0q2G','Ag1LBNq','zcb0BYa','Aujmt2G','zgvSzxq','DxbSB2e','y2HTzw4','DgfTCa','zunODw4','BNqGzNi','mtm1m1LOCxDmDq','C3bSAxq','mty5mZyXDLbIBfnw','neXisxvfwa','y2H1BMS','wKnLz2K','z2v0','B2fKzwq','yxbPs2u','BM93','zfrHC2S','mJeYotm3m0rqC0XRtW','z2v0sgu','y29Yzq','mta5ovDStKjhsW','zcbHDhq','yxHPB3m','ywnOBwu','y2f0Aw8','ndi5mdaXnxH4z3n6tq','DgLTzxm','BwfRzvi','nduWmJu0nwzowwLXzq','yxr0ywm','zuvYCM8','v2rpAuy','BgvUz3q','B20Gvvi','yxjYyxK','yNvMzMu','mtblAwXMzMy','l3rHC2S','Aw9U','tcb0BYa','zNjVBq','Cg9ZDa','C2v0','zg93BMW'];a0_0x1257=function(){return _0x2c6f5d;};return a0_0x1257();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4ce8af=a0_0x51c7;function a0_0x51c7(_0x5a91e2,_0x8f1e88){_0x5a91e2=_0x5a91e2-0x1bc;const _0x1ede10=a0_0x1ede();let _0x51c79e=_0x1ede10[_0x5a91e2];if(a0_0x51c7['QtecYr']===undefined){var _0x60ba87=function(_0x1765ef){const _0x23c912='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21bf07='',_0x331875='';for(let _0x242805=0x0,_0x25448e,_0x461854,_0x33139b=0x0;_0x461854=_0x1765ef['charAt'](_0x33139b++);~_0x461854&&(_0x25448e=_0x242805%0x4?_0x25448e*0x40+_0x461854:_0x461854,_0x242805++%0x4)?_0x21bf07+=String['fromCharCode'](0xff&_0x25448e>>(-0x2*_0x242805&0x6)):0x0){_0x461854=_0x23c912['indexOf'](_0x461854);}for(let _0x1f13cc=0x0,_0x514b06=_0x21bf07['length'];_0x1f13cc<_0x514b06;_0x1f13cc++){_0x331875+='%'+('00'+_0x21bf07['charCodeAt'](_0x1f13cc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x331875);};a0_0x51c7['MJhTyQ']=_0x60ba87,a0_0x51c7['jsVvdM']={},a0_0x51c7['QtecYr']=!![];}const _0x5be732=_0x1ede10[0x0],_0x3e2263=_0x5a91e2+_0x5be732,_0x39a50a=a0_0x51c7['jsVvdM'][_0x3e2263];return!_0x39a50a?(_0x51c79e=a0_0x51c7['MJhTyQ'](_0x51c79e),a0_0x51c7['jsVvdM'][_0x3e2263]=_0x51c79e):_0x51c79e=_0x39a50a,_0x51c79e;}function a0_0x1ede(){const _0x3a7119=['nZe2n0PtBhHAwG','Bwv2qKO','mJa2otCWA0jfyMPJ','zunOzwm','mZe3mMrLuKDnvW','n1PHquXKBa','y2HLy2S','sxrLBq','mta5ndC2A3LLwhr2','DcaI','y2XPzw4','DxbKyxq','iIbVBIa','zgf0yq','yxnZAwC','A2XPC3q','Chv0','Axn0ia','nZK4nZqYn09stwPVsG','zxf1zxm','igL0zw0','BhKGy3i','l3rHC2S','zuvYCM8','AgfUzgW','zwrPDem','zwf0zwq','zsbJAgu','iIbPBIa','BhKGDxa','z25vuMW','Aw9U','AgvJA2W','igzYB20','Bg9Nt3a','Bgv0zwq','y3jLyxq','l2nOzwm','BgLZDca','nMPcuhDLAW','mZCWmJeWDfntturR','oevJv2rqBq','DgfZAYa','BMfTzq','mJiYmezXtuDprG','x2L0zw0','zxjHDgK','nZG2ntm5nKLQEvHNCa','BgLZDa','zcb0BYa','BhKGzgu','y2TSAxm','zgvSzxq','ignOzwm','y2jMzvO','C3nMDwW','BwfRzvi','DcbPDgu','Axn0','mtm5ntb6r1PszMm','mJi2oeTZtgrsyG','u3vJy2u','y29Yzq','rMfPBgu'];a0_0x1ede=function(){return _0x3a7119;};return a0_0x1ede();}(function(_0x14217b,_0xc99f13){const _0x46256e=a0_0x51c7,_0x235f5b=_0x14217b();while(!![]){try{const _0x18f484=parseInt(_0x46256e(0x1c2))/0x1*(-parseInt(_0x46256e(0x1bf))/0x2)+-parseInt(_0x46256e(0x1bd))/0x3*(-parseInt(_0x46256e(0x1f9))/0x4)+parseInt(_0x46256e(0x1e5))/0x5*(parseInt(_0x46256e(0x1e4))/0x6)+-parseInt(_0x46256e(0x1cf))/0x7*(parseInt(_0x46256e(0x1e6))/0x8)+parseInt(_0x46256e(0x1f8))/0x9*(-parseInt(_0x46256e(0x1e9))/0xa)+-parseInt(_0x46256e(0x1ec))/0xb+-parseInt(_0x46256e(0x1c5))/0xc*(-parseInt(_0x46256e(0x1c1))/0xd);if(_0x18f484===_0xc99f13)break;else _0x235f5b['push'](_0x235f5b['shift']());}catch(_0x3e2caa){_0x235f5b['push'](_0x235f5b['shift']());}}}(a0_0x1ede,0xb23a9));export class TaskChecklistsService{constructor(_0x1a982c){const _0x35e23d=a0_0x51c7;this[_0x35e23d(0x1fb)]=_0x1a982c;}async[a0_0x4ce8af(0x1e1)+a0_0x4ce8af(0x1c0)+'klist'](_0x1bcf86,_0x4b8505){const _0x592952=a0_0x4ce8af;this[_0x592952(0x1fb)][_0x592952(0x1df)+_0x592952(0x1eb)+'on'](_0x592952(0x1e1)+_0x592952(0x1c0)+_0x592952(0x1cc),{'taskId':_0x1bcf86,'name':_0x4b8505});try{return await this[_0x592952(0x1fb)]['makeR'+'eques'+'t'](async()=>{const _0x58f5c6=_0x592952,_0x1e7d61=await this['core']['clien'+'t']['post'](_0x58f5c6(0x1d3)+'/'+_0x1bcf86+(_0x58f5c6(0x1e2)+_0x58f5c6(0x1cc)),{'name':_0x4b8505});return{'success':!![],'data':_0x1e7d61['data']['check'+_0x58f5c6(0x1ed)],'message':'Succe'+_0x58f5c6(0x1f4)+_0x58f5c6(0x1d2)+_0x58f5c6(0x1d7)+_0x58f5c6(0x1f2)+_0x58f5c6(0x1cc)+'\x20\x22'+_0x4b8505+(_0x58f5c6(0x1c9)+'task\x20')+_0x1bcf86};});}catch(_0x25720b){throw this[_0x592952(0x1fb)]['handl'+_0x592952(0x1d4)+'r'](_0x25720b,_0x592952(0x1bc)+'d\x20to\x20'+_0x592952(0x1e1)+_0x592952(0x1d8)+_0x592952(0x1f0)+_0x592952(0x1c6)+_0x4b8505+(_0x592952(0x1c9)+_0x592952(0x1e7))+_0x1bcf86);}}async[a0_0x4ce8af(0x1d6)+a0_0x4ce8af(0x1dd)+a0_0x4ce8af(0x1f7)](_0x13056e,_0x29fa19,_0x36ff40){const _0x2293a8=a0_0x4ce8af,_0x39d38d={'cbfeZ':function(_0x3c5371,_0x383053){return _0x3c5371!==_0x383053;},'TFOnz':_0x2293a8(0x1d6)+'heckl'+_0x2293a8(0x1f7)};this[_0x2293a8(0x1fb)][_0x2293a8(0x1df)+'erati'+'on'](_0x39d38d['TFOnz'],{'checklistId':_0x13056e,'name':_0x29fa19,'position':_0x36ff40});try{return await this[_0x2293a8(0x1fb)][_0x2293a8(0x1f5)+_0x2293a8(0x1d0)+'t'](async()=>{const _0x26345c=_0x2293a8,_0x59f1b6={};if(_0x39d38d[_0x26345c(0x1f3)](_0x29fa19,undefined))_0x59f1b6[_0x26345c(0x1e8)]=_0x29fa19;if(_0x36ff40!==undefined)_0x59f1b6['posit'+_0x26345c(0x1dc)]=_0x36ff40;const _0xee269e=await this[_0x26345c(0x1fb)][_0x26345c(0x1c7)+'t']['put']('/chec'+_0x26345c(0x1cc)+'/'+_0x13056e,_0x59f1b6);return{'success':!![],'data':_0xee269e[_0x26345c(0x1ca)][_0x26345c(0x1c3)+_0x26345c(0x1ed)],'message':_0x26345c(0x1fa)+_0x26345c(0x1f4)+'ly\x20up'+'dated'+_0x26345c(0x1f2)+_0x26345c(0x1cc)+'\x20'+_0x13056e};});}catch(_0x26c55a){throw this[_0x2293a8(0x1fb)][_0x2293a8(0x1d5)+_0x2293a8(0x1d4)+'r'](_0x26c55a,_0x2293a8(0x1bc)+_0x2293a8(0x1ee)+'updat'+_0x2293a8(0x1d8)+_0x2293a8(0x1f0)+'t\x20'+_0x13056e);}}async[a0_0x4ce8af(0x1f1)+a0_0x4ce8af(0x1c0)+'klist'](_0x29be8a){const _0x248822=a0_0x4ce8af,_0x2c812d={'gnURl':_0x248822(0x1f1)+_0x248822(0x1c0)+'klist'};this[_0x248822(0x1fb)]['logOp'+_0x248822(0x1eb)+'on'](_0x2c812d[_0x248822(0x1db)],{'checklistId':_0x29be8a});try{return await this[_0x248822(0x1fb)][_0x248822(0x1f5)+_0x248822(0x1d0)+'t'](async()=>{const _0x51dcbc=_0x248822;return await this[_0x51dcbc(0x1fb)][_0x51dcbc(0x1c7)+'t'][_0x51dcbc(0x1f1)+'e'](_0x51dcbc(0x1e2)+_0x51dcbc(0x1cc)+'/'+_0x29be8a),{'success':!![],'data':undefined,'message':_0x51dcbc(0x1fa)+_0x51dcbc(0x1f4)+_0x51dcbc(0x1ef)+_0x51dcbc(0x1e0)+_0x51dcbc(0x1f2)+_0x51dcbc(0x1cc)+'\x20'+_0x29be8a};});}catch(_0x2486f7){throw this[_0x248822(0x1fb)][_0x248822(0x1d5)+_0x248822(0x1d4)+'r'](_0x2486f7,_0x248822(0x1bc)+'d\x20to\x20'+_0x248822(0x1f1)+_0x248822(0x1d8)+_0x248822(0x1f0)+'t\x20'+_0x29be8a);}}async[a0_0x4ce8af(0x1e1)+a0_0x4ce8af(0x1c0)+a0_0x4ce8af(0x1cc)+a0_0x4ce8af(0x1c4)](_0x417795,_0x352d2e,_0x48941f){const _0x2cdab4=a0_0x4ce8af;this[_0x2cdab4(0x1fb)]['logOp'+_0x2cdab4(0x1eb)+'on'](_0x2cdab4(0x1e1)+_0x2cdab4(0x1c0)+'klist'+_0x2cdab4(0x1c4),{'checklistId':_0x417795,'name':_0x352d2e,'assignee':_0x48941f});try{return await this[_0x2cdab4(0x1fb)][_0x2cdab4(0x1f5)+_0x2cdab4(0x1d0)+'t'](async()=>{const _0x55b850=_0x2cdab4,_0x3f4e8a={'name':_0x352d2e};if(_0x48941f!==undefined)_0x3f4e8a[_0x55b850(0x1cb)+'nee']=_0x48941f;const _0x43087c=await this[_0x55b850(0x1fb)][_0x55b850(0x1c7)+'t']['post'](_0x55b850(0x1e2)+_0x55b850(0x1cc)+'/'+_0x417795+(_0x55b850(0x1e2)+_0x55b850(0x1cc)+_0x55b850(0x1ea)),_0x3f4e8a);return{'success':!![],'data':_0x43087c['data'][_0x55b850(0x1c3)+_0x55b850(0x1ed)],'message':_0x55b850(0x1fa)+'ssful'+_0x55b850(0x1d2)+'eated'+'\x20chec'+_0x55b850(0x1cc)+_0x55b850(0x1d1)+'\x20\x22'+_0x352d2e+(_0x55b850(0x1d9)+_0x55b850(0x1c3)+_0x55b850(0x1e3))+_0x417795};});}catch(_0x3a2524){throw this[_0x2cdab4(0x1fb)][_0x2cdab4(0x1d5)+_0x2cdab4(0x1d4)+'r'](_0x3a2524,'Faile'+'d\x20to\x20'+_0x2cdab4(0x1e1)+_0x2cdab4(0x1d8)+_0x2cdab4(0x1f0)+_0x2cdab4(0x1f6)+'m\x20\x22'+_0x352d2e+('\x22\x20in\x20'+_0x2cdab4(0x1c3)+_0x2cdab4(0x1e3))+_0x417795);}}async['editC'+'heckl'+'istIt'+'em'](_0x39d2e4,_0x3a94df,_0x4a9d55){const _0x52684a=a0_0x4ce8af;this[_0x52684a(0x1fb)][_0x52684a(0x1df)+'erati'+'on'](_0x52684a(0x1d6)+_0x52684a(0x1dd)+'istIt'+'em',{'checklistId':_0x39d2e4,'itemId':_0x3a94df,..._0x4a9d55});try{return await this['core']['makeR'+_0x52684a(0x1d0)+'t'](async()=>{const _0x3399c4=_0x52684a,_0x2493fd=await this[_0x3399c4(0x1fb)][_0x3399c4(0x1c7)+'t'][_0x3399c4(0x1cd)](_0x3399c4(0x1e2)+'klist'+'/'+_0x39d2e4+(_0x3399c4(0x1e2)+_0x3399c4(0x1cc)+_0x3399c4(0x1ea)+'/')+_0x3a94df,_0x4a9d55);return{'success':!![],'data':_0x2493fd[_0x3399c4(0x1ca)][_0x3399c4(0x1c3)+_0x3399c4(0x1ed)],'message':_0x3399c4(0x1fa)+_0x3399c4(0x1f4)+_0x3399c4(0x1da)+'dated'+_0x3399c4(0x1f2)+'klist'+'\x20item'+'\x20'+_0x3a94df};});}catch(_0x2de2a0){throw this[_0x52684a(0x1fb)][_0x52684a(0x1d5)+_0x52684a(0x1d4)+'r'](_0x2de2a0,_0x52684a(0x1bc)+_0x52684a(0x1ee)+_0x52684a(0x1c8)+_0x52684a(0x1d8)+_0x52684a(0x1f0)+_0x52684a(0x1f6)+'m\x20'+_0x3a94df+('\x20in\x20c'+'heckl'+_0x52684a(0x1ce))+_0x39d2e4);}}async[a0_0x4ce8af(0x1f1)+'eChec'+a0_0x4ce8af(0x1cc)+a0_0x4ce8af(0x1c4)](_0x4e9fef,_0x26e80e){const _0xf06377=a0_0x4ce8af,_0x31aabf={'mevBJ':'delet'+_0xf06377(0x1c0)+_0xf06377(0x1cc)+_0xf06377(0x1c4)};this[_0xf06377(0x1fb)][_0xf06377(0x1df)+_0xf06377(0x1eb)+'on'](_0x31aabf[_0xf06377(0x1be)],{'checklistId':_0x4e9fef,'itemId':_0x26e80e});try{return await this[_0xf06377(0x1fb)][_0xf06377(0x1f5)+_0xf06377(0x1d0)+'t'](async()=>{const _0x42e2c2=_0xf06377;return await this[_0x42e2c2(0x1fb)][_0x42e2c2(0x1c7)+'t'][_0x42e2c2(0x1f1)+'e'](_0x42e2c2(0x1e2)+_0x42e2c2(0x1cc)+'/'+_0x4e9fef+(_0x42e2c2(0x1e2)+_0x42e2c2(0x1cc)+_0x42e2c2(0x1ea)+'/')+_0x26e80e),{'success':!![],'data':undefined,'message':_0x42e2c2(0x1fa)+_0x42e2c2(0x1f4)+_0x42e2c2(0x1ef)+'leted'+_0x42e2c2(0x1f2)+'klist'+'\x20item'+'\x20'+_0x26e80e+(_0x42e2c2(0x1de)+_0x42e2c2(0x1f2)+_0x42e2c2(0x1cc)+'\x20')+_0x4e9fef};});}catch(_0x1f7b71){throw this['core'][_0xf06377(0x1d5)+_0xf06377(0x1d4)+'r'](_0x1f7b71,_0xf06377(0x1bc)+_0xf06377(0x1ee)+'delet'+_0xf06377(0x1d8)+_0xf06377(0x1f0)+_0xf06377(0x1f6)+'m\x20'+_0x26e80e+('\x20from'+_0xf06377(0x1f2)+'klist'+'\x20')+_0x4e9fef);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x5a26(){const _0x506f47=['BNrFDgu','z2v0ihq','z2v0vge','B2jQzwm','B21Tzw4','y29TBwu','CKDPCNa','z2v0igm','l21LC3m','BNnL','zgvSzxq','l3jLCgW','mJCWodGYsunTuMHQ','zvrHC2S','C3bHy2u','CMvZB2W','zcb0BYa','rMfPBgu','BwfW','zsbJB20','zuvYCM8','nJaYmtrZz2v6DhO','uMvWBgK','BwvUDa','y3jLyxq','CgX5','ndbUvezWzxi','ywrKihi','ruzUEvq','q29TBwu','C0jjv3u','nKD6CK1SvG','ntK2nte3vvLlyKvY','BNrszxm','zsb0yxm','ignVBw0','mZjryNzyshm','uhPPu0K','ywnRlq','rezZCwe','qvbj','CMvTB3y','BgLLCW','vxv3y0y','vw5RBM8','zw50CW','zw50uMu','C3rHDhu','r0jtB2q','Dg9ju08','l3DVCMS','ExDuwfa','BNrZ','zwfJDgK','A2n2y2C','z2v0','mte1nJGYmhP0DLD4rW','zgf0zq','ywrKq28','y3vZDg8','C3rHCNq','zvvYBa','Chv0','C3bVBNm','y29Yzq','BMvL','ywXS','yxnZAwC','l2nVBw0','ywn0Aw8','A3Pit2u','igzYB20','ywDLCY8','DJncyxm','CMvZCg8','BsbdBgK','mtK4tuPzDeDW','DxnLCG','l3rHC2S','DMvK','CMvWBhK','BwvUDca','BfzwCwC','AgfUzgW','l2nOyxq','B24GDg8','zw50','uMvHy3q','DgLVBNm','zunVBw0','Cg9UC2u','BwfRzvi','DgvHBuK','Dg9tDhi','ntq5mZDbq2jAALq','BM93','Cg9ZDa','Aw9U','zxj2Awm','nfLIEunKBa','yxnRigm','zxjHDgK','Bg9Nt3a','Awjlt0m','zsbMCM8','mJa4mZKWoeLQrxfMDW','yxbWzw4','Aw5N','AYbJB20','zxf1zxm','zMfSBgi','z2v0q28','zgf0yq','BgvUz3q','AwvZigy','CgfYC2u','DcbYzxa','sw52ywW','C2TdB20','zMv0y2G','A2zNyKm','D1nqreK','Bw1LBNq','B3iGy28','DxbKyxq','y2XPzw4','wLvsug8','ihjLCgW','u3rYAw4','zw50lW','l3jLywm','zsbYzwe','oti0mZe5y3LrvhDT','D2fYBG','x2LK'];a0_0x5a26=function(){return _0x506f47;};return a0_0x5a26();}const a0_0x4f0f67=a0_0x35c2;(function(_0x245a9d,_0x4d934a){const _0x3a5131=a0_0x35c2,_0xee86f=_0x245a9d();while(!![]){try{const _0x45d241=-parseInt(_0x3a5131(0x18f))/0x1*(parseInt(_0x3a5131(0x1d7))/0x2)+-parseInt(_0x3a5131(0x1d8))/0x3+-parseInt(_0x3a5131(0x194))/0x4*(-parseInt(_0x3a5131(0x1f0))/0x5)+-parseInt(_0x3a5131(0x17d))/0x6*(parseInt(_0x3a5131(0x1cd))/0x7)+-parseInt(_0x3a5131(0x1dc))/0x8*(-parseInt(_0x3a5131(0x1c4))/0x9)+parseInt(_0x3a5131(0x1d2))/0xa*(parseInt(_0x3a5131(0x1b5))/0xb)+parseInt(_0x3a5131(0x19a))/0xc;if(_0x45d241===_0x4d934a)break;else _0xee86f['push'](_0xee86f['shift']());}catch(_0x5ec7f2){_0xee86f['push'](_0xee86f['shift']());}}}(a0_0x5a26,0x343ff));function a0_0x35c2(_0x507cd5,_0x116031){_0x507cd5=_0x507cd5-0x17b;const _0x5a2657=a0_0x5a26();let _0x35c23d=_0x5a2657[_0x507cd5];if(a0_0x35c2['MuiTxF']===undefined){var _0x48fba6=function(_0x57faa3){const _0x2d2cb3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x37775c='',_0x1e894e='';for(let _0x442941=0x0,_0x38ab34,_0x40725a,_0x5c9ac6=0x0;_0x40725a=_0x57faa3['charAt'](_0x5c9ac6++);~_0x40725a&&(_0x38ab34=_0x442941%0x4?_0x38ab34*0x40+_0x40725a:_0x40725a,_0x442941++%0x4)?_0x37775c+=String['fromCharCode'](0xff&_0x38ab34>>(-0x2*_0x442941&0x6)):0x0){_0x40725a=_0x2d2cb3['indexOf'](_0x40725a);}for(let _0x41026c=0x0,_0x39f093=_0x37775c['length'];_0x41026c<_0x39f093;_0x41026c++){_0x1e894e+='%'+('00'+_0x37775c['charCodeAt'](_0x41026c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e894e);};a0_0x35c2['SjGMnC']=_0x48fba6,a0_0x35c2['LraPpL']={},a0_0x35c2['MuiTxF']=!![];}const _0x3065db=_0x5a2657[0x0],_0x20ea7b=_0x507cd5+_0x3065db,_0xfb1a1=a0_0x35c2['LraPpL'][_0x20ea7b];return!_0xfb1a1?(_0x35c23d=a0_0x35c2['SjGMnC'](_0x35c23d),a0_0x35c2['LraPpL'][_0x20ea7b]=_0x35c23d):_0x35c23d=_0xfb1a1,_0x35c23d;}import{Logger}from'../../../logger.js';const logger=new Logger('TaskS'+a0_0x4f0f67(0x193)+a0_0x4f0f67(0x18a)+a0_0x4f0f67(0x1e5));export class TaskServiceComments{constructor(_0x5b86b5){const _0x2ad6fd=a0_0x4f0f67;this[_0x2ad6fd(0x1f8)]=_0x5b86b5;}[a0_0x4f0f67(0x1a4)+a0_0x4f0f67(0x1d5)+a0_0x4f0f67(0x1d9)+a0_0x4f0f67(0x18b)](_0x29f700,_0x3055f7){const _0x4d1750=a0_0x4f0f67;if(_0x29f700['comme'+'nt']&&typeof _0x29f700[_0x4d1750(0x1bd)+'nt']===_0x4d1750(0x1bb)+'t'&&_0x29f700[_0x4d1750(0x1bd)+'nt']['id'])return _0x29f700['comme'+'nt'];if(_0x29f700['id']&&(_0x29f700[_0x4d1750(0x1bd)+_0x4d1750(0x1b8)+'xt']!==undefined||_0x29f700[_0x4d1750(0x1bd)+'nt']!==undefined))return _0x29f700;return{'id':_0x29f700['id']||_0x4d1750(0x1f3)+'m-'+Date[_0x4d1750(0x190)](),'comment':_0x29f700[_0x4d1750(0x1bd)+'nt']||_0x3055f7,'comment_text':_0x29f700[_0x4d1750(0x1bd)+_0x4d1750(0x1b8)+'xt']||_0x3055f7,'user':_0x29f700[_0x4d1750(0x17e)]||{'id':0x0,'username':_0x4d1750(0x1e4)+'wn','email':'','color':''},'date':_0x29f700[_0x4d1750(0x1f1)]||new Date()['toISO'+_0x4d1750(0x1b1)+'g'](),'resolved':![]};}async[a0_0x4f0f67(0x1ba)+a0_0x4f0f67(0x1a7)+'ments'](_0xc868c7,_0x50a150,_0x54dbf7,_0x130292=![]){const _0x2dc197=a0_0x4f0f67,_0x4dbe12={'sBIWu':function(_0x22700e,_0x52492e){return _0x22700e>_0x52492e;},'ywTXP':'getTa'+_0x2dc197(0x1a7)+'ments','ZYcWl':function(_0x4c4c8d,_0x208303){return _0x4c4c8d!==_0x208303;},'kzHOe':_0x2dc197(0x1f4)+_0x2dc197(0x1b7),'wSPDI':_0x2dc197(0x1c9)+'d\x20to\x20'+_0x2dc197(0x1b9)+_0x2dc197(0x195)+_0x2dc197(0x1bc)+'ts'};this[_0x2dc197(0x1f8)]['logOp'+_0x2dc197(0x196)+'on'](_0x4dbe12[_0x2dc197(0x1eb)],{'taskId':_0xc868c7,'start':_0x50a150,'startId':_0x54dbf7,'includeReplies':_0x130292});try{const _0x1cffe5=new URLSearchParams();_0x4dbe12['ZYcWl'](_0x50a150,undefined)&&_0x1cffe5[_0x2dc197(0x19b)+'d'](_0x2dc197(0x1f4),_0x50a150[_0x2dc197(0x18e)+_0x2dc197(0x19c)]());_0x54dbf7&&_0x1cffe5['appen'+'d'](_0x4dbe12[_0x2dc197(0x1fe)],_0x54dbf7);const _0x5cf93f=_0x1cffe5[_0x2dc197(0x18e)+_0x2dc197(0x19c)]()?'?'+_0x1cffe5[_0x2dc197(0x18e)+_0x2dc197(0x19c)]():'';return await this[_0x2dc197(0x1f8)][_0x2dc197(0x18c)+'eques'+'t'](async()=>{const _0x554d4d=_0x2dc197,_0xd5499c=await this[_0x554d4d(0x1f8)][_0x554d4d(0x1ae)+'t']['get'](_0x554d4d(0x17f)+'/'+_0xc868c7+(_0x554d4d(0x1fc)+_0x554d4d(0x187))+_0x5cf93f),_0x294208=_0xd5499c[_0x554d4d(0x1a1)]['comme'+_0x554d4d(0x1ec)]||[];if(_0x130292&&_0x4dbe12[_0x554d4d(0x1d6)](_0x294208[_0x554d4d(0x1a2)+'h'],0x0)){const _0x41ed06=await Promise[_0x554d4d(0x1fa)](_0x294208[_0x554d4d(0x1ca)](async _0x3fd358=>{const _0x5502f1=_0x554d4d;if(_0x3fd358['id'])try{const _0x3c938e=await this[_0x5502f1(0x1f8)][_0x5502f1(0x1ae)+'t'][_0x5502f1(0x1ef)](_0x5502f1(0x1fc)+_0x5502f1(0x1b2)+_0x3fd358['id']+(_0x5502f1(0x1c3)+'y')),_0x393a17=_0x3c938e[_0x5502f1(0x1a1)][_0x5502f1(0x1bd)+_0x5502f1(0x1ec)]||[];return{..._0x3fd358,'replies':_0x393a17};}catch(_0x529ada){return logger[_0x5502f1(0x1b6)](_0x5502f1(0x1c9)+_0x5502f1(0x1c8)+_0x5502f1(0x1a8)+_0x5502f1(0x1b0)+_0x5502f1(0x1a3)+_0x5502f1(0x1ac)+_0x5502f1(0x1ab)+'\x20'+_0x3fd358['id'],{'error':_0x529ada}),_0x3fd358;}return _0x3fd358;}));return _0x41ed06;}return _0x294208;});}catch(_0x1017c7){throw this[_0x2dc197(0x1f8)][_0x2dc197(0x184)+'eErro'+'r'](_0x1017c7,_0x4dbe12[_0x2dc197(0x1aa)]);}}async[a0_0x4f0f67(0x1d0)+'eTask'+'Comme'+'nt'](_0x15a17e,_0x16a23e,_0x360d3d=![],_0x4313f4,_0xb32f24){const _0xf512b4=a0_0x4f0f67,_0x590658={'UPzar':function(_0x211361,_0x27dc5a){return _0x211361===_0x27dc5a;},'PziSI':_0xf512b4(0x1e4)+'wn','rGirp':'Faile'+_0xf512b4(0x1c8)+'creat'+_0xf512b4(0x1da)+_0xf512b4(0x19d)+_0xf512b4(0x1cf)};this[_0xf512b4(0x1f8)][_0xf512b4(0x197)+_0xf512b4(0x196)+'on'](_0xf512b4(0x1d0)+_0xf512b4(0x1c5)+'Comme'+'nt',{'taskId':_0x15a17e,'commentText':_0x16a23e,'notifyAll':_0x360d3d,'assignee':_0x4313f4,'hasFormattedComment':!!_0xb32f24});try{const _0x2e5eb1={'notify_all':_0x360d3d};if(_0x4313f4)_0x2e5eb1['assig'+'nee']=_0x4313f4;if(_0xb32f24)_0x2e5eb1[_0xf512b4(0x1bd)+'nt']=_0xb32f24;else _0x16a23e&&(_0x2e5eb1[_0xf512b4(0x1bd)+'nt_te'+'xt']=_0x16a23e);const _0xa90c8c=await this['core']['clien'+'t'][_0xf512b4(0x191)]('/task'+'/'+_0x15a17e+(_0xf512b4(0x1fc)+_0xf512b4(0x187)),_0x2e5eb1);if(_0xa90c8c[_0xf512b4(0x1a1)])return this[_0xf512b4(0x1a4)+'Comme'+_0xf512b4(0x1d9)+_0xf512b4(0x18b)](_0xa90c8c[_0xf512b4(0x1a1)],_0x16a23e);throw new Error(_0xf512b4(0x1a6)+'id\x20re'+'spons'+_0xf512b4(0x199)+_0xf512b4(0x17c)+'ckUp\x20'+_0xf512b4(0x1e0));}catch(_0xbd96a3){if(_0x590658['UPzar'](_0xbd96a3[_0xf512b4(0x17b)+_0xf512b4(0x1c1)]?.[_0xf512b4(0x1e7)+'s'],0xc8)||_0xbd96a3[_0xf512b4(0x17b)+_0xf512b4(0x1c1)]?.[_0xf512b4(0x1e7)+'s']===0xc9)return{'id':_0xf512b4(0x19f)+'ack-'+Date[_0xf512b4(0x190)](),'comment':_0x16a23e,'comment_text':_0x16a23e,'user':{'id':0x0,'username':_0x590658[_0xf512b4(0x1dd)],'email':'','color':''},'date':new Date()['toISO'+_0xf512b4(0x1b1)+'g'](),'resolved':![]};throw this[_0xf512b4(0x1f8)][_0xf512b4(0x184)+'eErro'+'r'](_0xbd96a3,_0x590658[_0xf512b4(0x1be)]);}}async['getCo'+'mment'+a0_0x4f0f67(0x1ce)+'es'](_0xd55ff3){const _0xc0d9c2=a0_0x4f0f67,_0x387418={'MKhQP':_0xc0d9c2(0x1a0)+_0xc0d9c2(0x1ab)+'Repli'+'es','lVVqg':_0xc0d9c2(0x1c9)+_0xc0d9c2(0x1c8)+_0xc0d9c2(0x1bf)+_0xc0d9c2(0x1bc)+_0xc0d9c2(0x1a5)+_0xc0d9c2(0x1e2)};this['core']['logOp'+_0xc0d9c2(0x196)+'on'](_0x387418['MKhQP'],{'commentId':_0xd55ff3});try{return await this[_0xc0d9c2(0x1f8)][_0xc0d9c2(0x18c)+_0xc0d9c2(0x19e)+'t'](async()=>{const _0x3a2e10=_0xc0d9c2,_0x4281a7=await this['core'][_0x3a2e10(0x1ae)+'t']['get'](_0x3a2e10(0x1fc)+_0x3a2e10(0x1b2)+_0xd55ff3+(_0x3a2e10(0x1c3)+'y'));return _0x4281a7[_0x3a2e10(0x1a1)][_0x3a2e10(0x1bd)+_0x3a2e10(0x1ec)]||[];});}catch(_0x676ff8){throw this[_0xc0d9c2(0x1f8)][_0xc0d9c2(0x184)+'eErro'+'r'](_0x676ff8,_0x387418[_0xc0d9c2(0x183)]);}}async['updat'+a0_0x4f0f67(0x1c5)+a0_0x4f0f67(0x1d5)+'nt'](_0xdff478,_0x12e05c,_0x2df93e,_0x1b777b){const _0x33feb7=a0_0x4f0f67,_0x5605d5={'DFsqa':_0x33feb7(0x1ad)+_0x33feb7(0x1c5)+'Comme'+'nt','EFnyT':function(_0x53b078,_0x196ad7){return _0x53b078!==_0x196ad7;},'UuwcF':'Faile'+'d\x20to\x20'+_0x33feb7(0x1ad)+_0x33feb7(0x1cb)+'ment'};this[_0x33feb7(0x1f8)][_0x33feb7(0x197)+_0x33feb7(0x196)+'on'](_0x5605d5[_0x33feb7(0x1df)],{'commentId':_0xdff478,'commentText':_0x12e05c,'resolved':_0x2df93e});try{const _0x46c4a4={};if(_0x5605d5[_0x33feb7(0x1d4)](_0x2df93e,undefined))_0x46c4a4[_0x33feb7(0x1c7)+_0x33feb7(0x180)]=_0x2df93e;if(_0x5605d5[_0x33feb7(0x1d4)](_0x1b777b,undefined))_0x46c4a4['comme'+'nt']=_0x1b777b;else _0x12e05c!==undefined&&(_0x46c4a4['comme'+_0x33feb7(0x1b8)+'xt']=_0x12e05c);await this['core'][_0x33feb7(0x1ae)+'t'][_0x33feb7(0x1f6)](_0x33feb7(0x1fc)+_0x33feb7(0x1b2)+_0xdff478,_0x46c4a4);}catch(_0x9a00a5){throw this['core'][_0x33feb7(0x184)+_0x33feb7(0x1cc)+'r'](_0x9a00a5,_0x5605d5[_0x33feb7(0x1e3)]);}}async[a0_0x4f0f67(0x1c2)+a0_0x4f0f67(0x1c5)+a0_0x4f0f67(0x1d5)+'nt'](_0x4c26e8){const _0x310422=a0_0x4f0f67;this[_0x310422(0x1f8)][_0x310422(0x197)+_0x310422(0x196)+'on'](_0x310422(0x1c2)+'eTask'+_0x310422(0x1d5)+'nt',{'commentId':_0x4c26e8});try{await this[_0x310422(0x1f8)][_0x310422(0x1ae)+'t'][_0x310422(0x1c2)+'e'](_0x310422(0x1fc)+'ent/'+_0x4c26e8);}catch(_0x42916a){throw this[_0x310422(0x1f8)]['handl'+_0x310422(0x1cc)+'r'](_0x42916a,_0x310422(0x1c9)+'d\x20to\x20'+'delet'+_0x310422(0x1cb)+_0x310422(0x1cf));}}async[a0_0x4f0f67(0x1d0)+a0_0x4f0f67(0x18a)+a0_0x4f0f67(0x1e6)+'ply'](_0x5db5fa,_0x4c70e0,_0x26f868=![],_0x56a300,_0xd20abb){const _0x277be0=a0_0x4f0f67,_0x2814ff={'ZURPo':function(_0xd0fbea,_0xf04fa4){return _0xd0fbea===_0xf04fa4;},'GBSod':_0x277be0(0x1e4)+'wn','kfgbC':_0x277be0(0x1c9)+'d\x20to\x20'+_0x277be0(0x1d0)+_0x277be0(0x1cb)+_0x277be0(0x182)+_0x277be0(0x181)};this[_0x277be0(0x1f8)][_0x277be0(0x197)+_0x277be0(0x196)+'on'](_0x277be0(0x1d0)+'eComm'+_0x277be0(0x1e6)+_0x277be0(0x1d1),{'commentId':_0x5db5fa,'commentText':_0x4c70e0,'notifyAll':_0x26f868,'assignee':_0x56a300});try{const _0x21943d={'notify_all':_0x26f868};if(_0x56a300)_0x21943d[_0x277be0(0x1fb)+_0x277be0(0x1f9)]=_0x56a300;if(_0xd20abb)_0x21943d['comme'+'nt']=_0xd20abb;else _0x4c70e0&&(_0x21943d['comme'+'nt_te'+'xt']=_0x4c70e0);const _0x23bd09=await this[_0x277be0(0x1f8)]['clien'+'t']['post'](_0x277be0(0x1fc)+_0x277be0(0x1b2)+_0x5db5fa+(_0x277be0(0x1c3)+'y'),_0x21943d);if(_0x23bd09[_0x277be0(0x1a1)])return this[_0x277be0(0x1a4)+_0x277be0(0x1d5)+_0x277be0(0x1d9)+'ponse'](_0x23bd09[_0x277be0(0x1a1)],_0x4c70e0);throw new Error(_0x277be0(0x1a6)+'id\x20re'+_0x277be0(0x1f7)+_0x277be0(0x199)+_0x277be0(0x17c)+'ckUp\x20'+_0x277be0(0x1e0));}catch(_0x1faf57){if(_0x1faf57[_0x277be0(0x17b)+'nse']?.[_0x277be0(0x1e7)+'s']===0xc8||_0x2814ff[_0x277be0(0x1af)](_0x1faf57[_0x277be0(0x17b)+_0x277be0(0x1c1)]?.[_0x277be0(0x1e7)+'s'],0xc9))return{'id':_0x277be0(0x19f)+_0x277be0(0x1de)+Date[_0x277be0(0x190)](),'comment':_0x4c70e0,'comment_text':_0x4c70e0,'user':{'id':0x0,'username':_0x2814ff[_0x277be0(0x1e8)],'email':'','color':''},'date':new Date()[_0x277be0(0x1e9)+_0x277be0(0x1b1)+'g'](),'resolved':![]};throw this[_0x277be0(0x1f8)][_0x277be0(0x184)+_0x277be0(0x1cc)+'r'](_0x1faf57,_0x2814ff[_0x277be0(0x1a9)]);}}async[a0_0x4f0f67(0x1f2)+a0_0x4f0f67(0x1ab)+a0_0x4f0f67(0x188)+a0_0x4f0f67(0x192)](_0x4c826f,_0x3884f3){const _0x5ca9f8=a0_0x4f0f67,_0x28c0d0={'ibKOC':_0x5ca9f8(0x1f2)+_0x5ca9f8(0x1ab)+_0x5ca9f8(0x188)+_0x5ca9f8(0x192)};this['core'][_0x5ca9f8(0x197)+'erati'+'on'](_0x28c0d0[_0x5ca9f8(0x198)],{'commentId':_0x4c826f,'reaction':_0x3884f3});try{const _0x24ccac=this[_0x5ca9f8(0x1f8)][_0x5ca9f8(0x18d)+'d'],_0x577ffb=this[_0x5ca9f8(0x1f8)][_0x5ca9f8(0x201)+_0x5ca9f8(0x1f5)]+('/work'+'space'+'s/')+_0x24ccac+(_0x5ca9f8(0x185)+_0x5ca9f8(0x1c0)+_0x5ca9f8(0x200))+_0x4c826f+(_0x5ca9f8(0x1b3)+_0x5ca9f8(0x189));await this[_0x5ca9f8(0x1f8)]['makeR'+_0x5ca9f8(0x19e)+'t'](async()=>{const _0x4aa194=_0x5ca9f8;await this['core']['clien'+'t'][_0x4aa194(0x191)](_0x577ffb,{'reaction':_0x3884f3});});}catch(_0x2c375d){throw this[_0x5ca9f8(0x1f8)][_0x5ca9f8(0x184)+_0x5ca9f8(0x1cc)+'r'](_0x2c375d,_0x5ca9f8(0x1c9)+_0x5ca9f8(0x1c8)+_0x5ca9f8(0x1d3)+_0x5ca9f8(0x1ed)+_0x5ca9f8(0x186)+_0x5ca9f8(0x1db)+_0x5ca9f8(0x187));}}async['remov'+'eComm'+a0_0x4f0f67(0x1e6)+a0_0x4f0f67(0x1fd)+'n'](_0xf6d666,_0x1bfe3b){const _0xed2a8f=a0_0x4f0f67,_0x1b85ed={'kcvcg':_0xed2a8f(0x1e1)+_0xed2a8f(0x18a)+'entRe'+_0xed2a8f(0x1fd)+'n'};this[_0xed2a8f(0x1f8)]['logOp'+_0xed2a8f(0x196)+'on'](_0x1b85ed[_0xed2a8f(0x1ee)],{'commentId':_0xf6d666,'reaction':_0x1bfe3b});try{const _0x3a7c46=this['core'][_0xed2a8f(0x18d)+'d'],_0x45386e=encodeURIComponent(_0x1bfe3b),_0x56cbfd=this[_0xed2a8f(0x1f8)][_0xed2a8f(0x201)+_0xed2a8f(0x1f5)]+(_0xed2a8f(0x1ea)+_0xed2a8f(0x1c6)+'s/')+_0x3a7c46+(_0xed2a8f(0x185)+_0xed2a8f(0x1c0)+'ages/')+_0xf6d666+(_0xed2a8f(0x1b3)+_0xed2a8f(0x189)+'/')+_0x45386e;await this['core']['makeR'+_0xed2a8f(0x19e)+'t'](async()=>{const _0x4399e6=_0xed2a8f;await this[_0x4399e6(0x1f8)][_0x4399e6(0x1ae)+'t'][_0x4399e6(0x1c2)+'e'](_0x56cbfd);});}catch(_0x14bf2b){throw this[_0xed2a8f(0x1f8)][_0xed2a8f(0x184)+_0xed2a8f(0x1cc)+'r'](_0x14bf2b,_0xed2a8f(0x1c9)+'d\x20to\x20'+_0xed2a8f(0x1e1)+_0xed2a8f(0x1b4)+'ction'+_0xed2a8f(0x1ff)+_0xed2a8f(0x1db)+_0xed2a8f(0x187));}}}
|
|
1
|
+
function a0_0x4118(){const _0x436c1b=['vw5RBM8','AuP4CMi','sw52ywW','y29Yzq','CgfYC2u','zgvSzxq','y3vZDg8','zgf0yq','y3rPB24','Dwrwr24','l3jLCgW','ywn0Aw8','mJuYr3zlugX6','BwvUDa','z2v0vge','y2XPzw4','BgvUz3q','EffHwxe','EwfoEhq','DKjpB3e','CgX5','rMfPBgu','mZC0mZGZsgzZCwDV','zsb0yxm','DxbKyxq','BM93','BKTzsNq','u3rYAw4','nNjzDNbJtq','zsbMCM8','B3iGy28','AwvZigy','C3bVBNm','BwfW','DxnLCG','AYbJB20','D2Huy3q','mtaWody2otLkq1bpDeC','q29TBwu','l2nVBw0','yxbWzw4','zgf0zq','yxnZAwC','ywnRlq','CMvZB2W','BwfRzvi','Dg9tDhi','y29TBwu','ywrKihi','DgTUC0i','zxjHDgK','B24GDg8','ywrKq28','AwqGCMu','zunVBw0','x2LK','igzYB20','zvvYBa','DgLVBNm','rhrACg0','zMv0y2G','D2fYBG','C3rHCNq','uMvWBgK','CMvTB3y','Aw5N','qvbj','u2DrB1G','tLLQsKe','CMvWBhK','zw50uMu','z2v0q28','B21Tzw4','zw50','r0TyuKG','ywDLCY8','zvrHC2S','C3rHDhu','l3jLywm','BNrszxm','BNrZ','BNrFDgu','zw50CW','Cg9UC2u','z2v0','Aw9U','AgfUzgW','DMviAwu','nJC5oti4nxreCMPtBa','z2v0ihq','ywXS','zxf1zxm','CMvZCg8','BwvUDca','zcb0BYa','Chv0','ody0otCXmhzky0LLtq','zMfSBgi','mZy2mhHOwg13sq','y2TvCca','mZyZm3DzueDlCa','zsbYzwe','zwfJDgK','BgLLCW','Bw1LBNq','BMvL','tLz6vxe','Cg9ZDa','nZGYnZCXsfnQsvzH','yKD4Efu','yxnRigm','B2jQzwm','zsbJB20','C2TdB20','BwvUDhm','zxj2Awm','z2v0igm','DgvHBuK','ouDItfD5sW','Dg9ju08','C3bHy2u','BsbdBgK','C3rWBuC','vgfZA1m','BLDSzvy','DJncyxm','zw50lW','y3jLyxq','DMvK','BNnL','uMvHy3q','l3rHC2S','zuvYCM8','mti5ndC1ne5xqvfnwq','Bg9Nt3a','oefprwD3DW','BgHmBwC'];a0_0x4118=function(){return _0x436c1b;};return a0_0x4118();}const a0_0x22d16a=a0_0x391a;(function(_0x47b3aa,_0x47286f){const _0x561766=a0_0x391a,_0x3a5e33=_0x47b3aa();while(!![]){try{const _0x4ebbc8=-parseInt(_0x561766(0xdd))/0x1+-parseInt(_0x561766(0x14c))/0x2+parseInt(_0x561766(0x12b))/0x3*(parseInt(_0x561766(0x129))/0x4)+-parseInt(_0x561766(0x11f))/0x5*(parseInt(_0x561766(0xe3))/0x6)+parseInt(_0x561766(0xec))/0x7*(parseInt(_0x561766(0x14e))/0x8)+parseInt(_0x561766(0x13d))/0x9*(-parseInt(_0x561766(0x127))/0xa)+parseInt(_0x561766(0x133))/0xb*(parseInt(_0x561766(0xd3))/0xc);if(_0x4ebbc8===_0x47286f)break;else _0x3a5e33['push'](_0x3a5e33['shift']());}catch(_0x393ee8){_0x3a5e33['push'](_0x3a5e33['shift']());}}}(a0_0x4118,0xc288f));function a0_0x391a(_0x4d8829,_0x1c935c){_0x4d8829=_0x4d8829-0xce;const _0x4118f2=a0_0x4118();let _0x391aca=_0x4118f2[_0x4d8829];if(a0_0x391a['jliESB']===undefined){var _0x404ac4=function(_0x1b5a5e){const _0x210e74='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b5ad8='',_0x33cd9e='';for(let _0x18c92c=0x0,_0x33d289,_0x559930,_0x1644d4=0x0;_0x559930=_0x1b5a5e['charAt'](_0x1644d4++);~_0x559930&&(_0x33d289=_0x18c92c%0x4?_0x33d289*0x40+_0x559930:_0x559930,_0x18c92c++%0x4)?_0x4b5ad8+=String['fromCharCode'](0xff&_0x33d289>>(-0x2*_0x18c92c&0x6)):0x0){_0x559930=_0x210e74['indexOf'](_0x559930);}for(let _0x27434d=0x0,_0xaa739c=_0x4b5ad8['length'];_0x27434d<_0xaa739c;_0x27434d++){_0x33cd9e+='%'+('00'+_0x4b5ad8['charCodeAt'](_0x27434d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x33cd9e);};a0_0x391a['ellrDE']=_0x404ac4,a0_0x391a['cDTozi']={},a0_0x391a['jliESB']=!![];}const _0x21c609=_0x4118f2[0x0],_0x3ddeda=_0x4d8829+_0x21c609,_0x25437b=a0_0x391a['cDTozi'][_0x3ddeda];return!_0x25437b?(_0x391aca=a0_0x391a['ellrDE'](_0x391aca),a0_0x391a['cDTozi'][_0x3ddeda]=_0x391aca):_0x391aca=_0x25437b,_0x391aca;}import{Logger}from'../../../logger.js';const logger=new Logger(a0_0x22d16a(0x142)+a0_0x22d16a(0x13a)+a0_0x22d16a(0xfd)+a0_0x22d16a(0x119));export class TaskServiceComments{constructor(_0x1d3f14){this['core']=_0x1d3f14;}[a0_0x22d16a(0x154)+a0_0x22d16a(0xed)+a0_0x22d16a(0x116)+a0_0x22d16a(0x11a)](_0x12b740,_0x1f30a3){const _0xf24de5=a0_0x22d16a,_0x4ed59f={'tknsB':function(_0x49b762,_0x1a8b5e){return _0x49b762===_0x1a8b5e;},'lhLmg':function(_0x21892a,_0x2cc137){return _0x21892a!==_0x2cc137;},'veHie':'Unkno'+'wn'};if(_0x12b740['comme'+'nt']&&_0x4ed59f[_0xf24de5(0xf8)](typeof _0x12b740['comme'+'nt'],_0xf24de5(0x136)+'t')&&_0x12b740[_0xf24de5(0xf6)+'nt']['id'])return _0x12b740['comme'+'nt'];if(_0x12b740['id']&&(_0x4ed59f[_0xf24de5(0x14f)](_0x12b740[_0xf24de5(0xf6)+'nt_te'+'xt'],undefined)||_0x4ed59f['lhLmg'](_0x12b740[_0xf24de5(0xf6)+'nt'],undefined)))return _0x12b740;return{'id':_0x12b740['id']||_0xf24de5(0x156)+'m-'+Date[_0xf24de5(0xe0)](),'comment':_0x12b740[_0xf24de5(0xf6)+'nt']||_0x1f30a3,'comment_text':_0x12b740[_0xf24de5(0xf6)+'nt_te'+'xt']||_0x1f30a3,'user':_0x12b740[_0xf24de5(0xe9)]||{'id':0x0,'username':_0x4ed59f[_0xf24de5(0x11e)],'email':'','color':''},'date':_0x12b740[_0xf24de5(0xf0)]||new Date()[_0xf24de5(0x13e)+_0xf24de5(0xe2)+'g'](),'resolved':![]};}async[a0_0x22d16a(0xd5)+'skCom'+a0_0x22d16a(0x139)](_0x529954,_0x8ceaf3,_0x3cc014,_0x323b53=![]){const _0x1f6aba=a0_0x22d16a,_0x48b508={'DtZpm':function(_0x20f320,_0x17ac56){return _0x20f320>_0x17ac56;},'iJxrb':_0x1f6aba(0xd5)+_0x1f6aba(0x138)+_0x1f6aba(0x139),'NYjJA':function(_0x401b46,_0x599d99){return _0x401b46!==_0x599d99;},'nWleV':_0x1f6aba(0x105)+_0x1f6aba(0xfe),'GKXRH':'Faile'+_0x1f6aba(0x125)+_0x1f6aba(0x120)+_0x1f6aba(0x135)+_0x1f6aba(0x10f)+'ts'};this[_0x1f6aba(0x153)][_0x1f6aba(0x14d)+_0x1f6aba(0xf9)+'on'](_0x48b508[_0x1f6aba(0x151)],{'taskId':_0x529954,'start':_0x8ceaf3,'startId':_0x3cc014,'includeReplies':_0x323b53});try{const _0x168878=new URLSearchParams();_0x48b508[_0x1f6aba(0x10b)](_0x8ceaf3,undefined)&&_0x168878[_0x1f6aba(0xef)+'d'](_0x1f6aba(0x105),_0x8ceaf3[_0x1f6aba(0xf5)+_0x1f6aba(0x108)]());_0x3cc014&&_0x168878[_0x1f6aba(0xef)+'d'](_0x48b508[_0x1f6aba(0x143)],_0x3cc014);const _0x3f796c=_0x168878[_0x1f6aba(0xf5)+_0x1f6aba(0x108)]()?'?'+_0x168878['toStr'+_0x1f6aba(0x108)]():'';return await this[_0x1f6aba(0x153)][_0x1f6aba(0xf4)+_0x1f6aba(0x122)+'t'](async()=>{const _0xdfce33=_0x1f6aba,_0x38be23=await this[_0xdfce33(0x153)][_0xdfce33(0xd6)+'t'][_0xdfce33(0x11b)](_0xdfce33(0x14a)+'/'+_0x529954+('/comm'+_0xdfce33(0x110))+_0x3f796c),_0x592bd3=_0x38be23['data'][_0xdfce33(0xf6)+_0xdfce33(0x117)]||[];if(_0x323b53&&_0x48b508[_0xdfce33(0x102)](_0x592bd3[_0xdfce33(0xd7)+'h'],0x0)){const _0x4c6339=await Promise[_0xdfce33(0x121)](_0x592bd3[_0xdfce33(0xe8)](async _0x159a02=>{const _0x4460cb=_0xdfce33;if(_0x159a02['id'])try{const _0x5ce304=await this['core'][_0x4460cb(0xd6)+'t'][_0x4460cb(0x11b)](_0x4460cb(0xee)+_0x4460cb(0x145)+_0x159a02['id']+(_0x4460cb(0xd1)+'y')),_0x3c9fc6=_0x5ce304[_0x4460cb(0xce)][_0x4460cb(0xf6)+_0x4460cb(0x117)]||[];return{..._0x159a02,'replies':_0x3c9fc6};}catch(_0x2d37f7){return logger[_0x4460cb(0x104)]('Faile'+_0x4460cb(0x125)+_0x4460cb(0x103)+'\x20repl'+_0x4460cb(0xe6)+_0x4460cb(0xe5)+_0x4460cb(0x12f)+'\x20'+_0x159a02['id'],{'error':_0x2d37f7}),_0x159a02;}return _0x159a02;}));return _0x4c6339;}return _0x592bd3;});}catch(_0x239dee){throw this[_0x1f6aba(0x153)][_0x1f6aba(0x11d)+_0x1f6aba(0x14b)+'r'](_0x239dee,_0x48b508[_0x1f6aba(0x111)]);}}async['creat'+a0_0x22d16a(0x113)+a0_0x22d16a(0xed)+'nt'](_0x18c335,_0x30e12e,_0x4c0b86=![],_0x190dfd,_0x1fb8c9){const _0xe66a05=a0_0x22d16a,_0x31ca43={'xQaYq':_0xe66a05(0x146)+_0xe66a05(0x113)+_0xe66a05(0xed)+'nt'};this[_0xe66a05(0x153)]['logOp'+_0xe66a05(0xf9)+'on'](_0x31ca43[_0xe66a05(0xd8)],{'taskId':_0x18c335,'commentText':_0x30e12e,'notifyAll':_0x4c0b86,'assignee':_0x190dfd,'hasFormattedComment':!!_0x1fb8c9});try{const _0x42f00c={'notify_all':_0x4c0b86};if(_0x190dfd)_0x42f00c[_0xe66a05(0xf1)+_0xe66a05(0x130)]=_0x190dfd;if(_0x1fb8c9)_0x42f00c[_0xe66a05(0xf6)+'nt']=_0x1fb8c9;else _0x30e12e&&(_0x42f00c[_0xe66a05(0xf6)+_0xe66a05(0x118)+'xt']=_0x30e12e);const _0x475504=await this[_0xe66a05(0x153)]['clien'+'t']['post'](_0xe66a05(0x14a)+'/'+_0x18c335+(_0xe66a05(0xee)+_0xe66a05(0x110)),_0x42f00c);if(_0x475504[_0xe66a05(0xce)])return this['parse'+_0xe66a05(0xed)+'ntRes'+'ponse'](_0x475504[_0xe66a05(0xce)],_0x30e12e);throw new Error(_0xe66a05(0x152)+_0xe66a05(0xfc)+_0xe66a05(0xe7)+_0xe66a05(0xe4)+_0xe66a05(0x140)+_0xe66a05(0x12a)+_0xe66a05(0x109));}catch(_0x189365){if(_0x189365['respo'+_0xe66a05(0x148)]?.['statu'+'s']===0xc8||_0x189365[_0xe66a05(0x123)+'nse']?.[_0xe66a05(0x114)+'s']===0xc9)return{'id':_0xe66a05(0x128)+_0xe66a05(0xf2)+Date['now'](),'comment':_0x30e12e,'comment_text':_0x30e12e,'user':{'id':0x0,'username':_0xe66a05(0x150)+'wn','email':'','color':''},'date':new Date()[_0xe66a05(0x13e)+_0xe66a05(0xe2)+'g'](),'resolved':![]};throw this[_0xe66a05(0x153)][_0xe66a05(0x11d)+'eErro'+'r'](_0x189365,_0xe66a05(0xdc)+_0xe66a05(0x125)+_0xe66a05(0x146)+_0xe66a05(0xde)+_0xe66a05(0xea)+'ment');}}async[a0_0x22d16a(0x10e)+a0_0x22d16a(0x12f)+a0_0x22d16a(0x106)+'es'](_0x4fe9ff){const _0x4402cd=a0_0x22d16a,_0x254ba0={'yaNxt':_0x4402cd(0x10e)+_0x4402cd(0x12f)+_0x4402cd(0x106)+'es','SgQoX':_0x4402cd(0xdc)+_0x4402cd(0x125)+_0x4402cd(0x13b)+_0x4402cd(0x10f)+'t\x20rep'+_0x4402cd(0x12e)};this[_0x4402cd(0x153)][_0x4402cd(0x14d)+_0x4402cd(0xf9)+'on'](_0x254ba0[_0x4402cd(0xd9)],{'commentId':_0x4fe9ff});try{return await this[_0x4402cd(0x153)]['makeR'+_0x4402cd(0x122)+'t'](async()=>{const _0x1d32b7=_0x4402cd,_0x299c27=await this[_0x1d32b7(0x153)][_0x1d32b7(0xd6)+'t'][_0x1d32b7(0x11b)](_0x1d32b7(0xee)+_0x1d32b7(0x145)+_0x4fe9ff+(_0x1d32b7(0xd1)+'y'));return _0x299c27[_0x1d32b7(0xce)][_0x1d32b7(0xf6)+_0x1d32b7(0x117)]||[];});}catch(_0x3e3f53){throw this[_0x4402cd(0x153)][_0x4402cd(0x11d)+'eErro'+'r'](_0x3e3f53,_0x254ba0[_0x4402cd(0x10a)]);}}async['updat'+a0_0x22d16a(0x113)+a0_0x22d16a(0xed)+'nt'](_0x5d3b4f,_0x260019,_0x2d6933,_0x52ef1f){const _0x2aa431=a0_0x22d16a,_0x455b8b={'whTct':function(_0xd054ac,_0x39f97a){return _0xd054ac!==_0x39f97a;},'NVzUq':_0x2aa431(0xdc)+'d\x20to\x20'+_0x2aa431(0xdf)+_0x2aa431(0x137)+_0x2aa431(0xd4)};this[_0x2aa431(0x153)][_0x2aa431(0x14d)+_0x2aa431(0xf9)+'on'](_0x2aa431(0xdf)+'eTask'+_0x2aa431(0xed)+'nt',{'commentId':_0x5d3b4f,'commentText':_0x260019,'resolved':_0x2d6933});try{const _0xf38849={};if(_0x455b8b[_0x2aa431(0xeb)](_0x2d6933,undefined))_0xf38849[_0x2aa431(0xf3)+_0x2aa431(0x147)]=_0x2d6933;if(_0x455b8b[_0x2aa431(0xeb)](_0x52ef1f,undefined))_0xf38849['comme'+'nt']=_0x52ef1f;else _0x260019!==undefined&&(_0xf38849[_0x2aa431(0xf6)+_0x2aa431(0x118)+'xt']=_0x260019);await this['core'][_0x2aa431(0xd6)+'t'][_0x2aa431(0x126)](_0x2aa431(0xee)+_0x2aa431(0x145)+_0x5d3b4f,_0xf38849);}catch(_0x135902){throw this[_0x2aa431(0x153)][_0x2aa431(0x11d)+'eErro'+'r'](_0x135902,_0x455b8b[_0x2aa431(0x131)]);}}async[a0_0x22d16a(0x155)+'eTask'+a0_0x22d16a(0xed)+'nt'](_0x1ab549){const _0x3e4893=a0_0x22d16a,_0x9fd880={'stpmG':'Faile'+_0x3e4893(0x125)+_0x3e4893(0x155)+_0x3e4893(0x137)+_0x3e4893(0xd4)};this[_0x3e4893(0x153)][_0x3e4893(0x14d)+_0x3e4893(0xf9)+'on']('delet'+_0x3e4893(0x113)+'Comme'+'nt',{'commentId':_0x1ab549});try{await this[_0x3e4893(0x153)][_0x3e4893(0xd6)+'t'][_0x3e4893(0x155)+'e'](_0x3e4893(0xee)+_0x3e4893(0x145)+_0x1ab549);}catch(_0x2bf6f3){throw this[_0x3e4893(0x153)][_0x3e4893(0x11d)+_0x3e4893(0x14b)+'r'](_0x2bf6f3,_0x9fd880[_0x3e4893(0x141)]);}}async[a0_0x22d16a(0x146)+a0_0x22d16a(0xfd)+a0_0x22d16a(0x10d)+'ply'](_0x3c3f69,_0x11435e,_0x5712c7=![],_0x1f9f08,_0x5e44c8){const _0x55e00d=a0_0x22d16a,_0x1b3621={'dCoZj':_0x55e00d(0x146)+_0x55e00d(0xfd)+'entRe'+_0x55e00d(0xdb),'bGxxU':function(_0x525164,_0x329a71){return _0x525164===_0x329a71;},'udVGn':function(_0x11d4f5,_0x405397){return _0x11d4f5===_0x405397;},'nKYJt':'Unkno'+'wn','vBOoq':'Faile'+_0x55e00d(0x125)+_0x55e00d(0x146)+_0x55e00d(0x137)+_0x55e00d(0x124)+_0x55e00d(0x10c)};this[_0x55e00d(0x153)]['logOp'+'erati'+'on'](_0x1b3621['dCoZj'],{'commentId':_0x3c3f69,'commentText':_0x11435e,'notifyAll':_0x5712c7,'assignee':_0x1f9f08});try{const _0x2d8522={'notify_all':_0x5712c7};if(_0x1f9f08)_0x2d8522['assig'+_0x55e00d(0x130)]=_0x1f9f08;if(_0x5e44c8)_0x2d8522[_0x55e00d(0xf6)+'nt']=_0x5e44c8;else _0x11435e&&(_0x2d8522['comme'+_0x55e00d(0x118)+'xt']=_0x11435e);const _0x54f581=await this['core'][_0x55e00d(0xd6)+'t'][_0x55e00d(0x132)]('/comm'+_0x55e00d(0x145)+_0x3c3f69+(_0x55e00d(0xd1)+'y'),_0x2d8522);if(_0x54f581['data'])return this['parse'+_0x55e00d(0xed)+_0x55e00d(0x116)+'ponse'](_0x54f581[_0x55e00d(0xce)],_0x11435e);throw new Error('Inval'+_0x55e00d(0xfc)+'spons'+_0x55e00d(0xe4)+_0x55e00d(0x140)+'ckUp\x20'+_0x55e00d(0x109));}catch(_0x99e78d){if(_0x1b3621[_0x55e00d(0x134)](_0x99e78d[_0x55e00d(0x123)+_0x55e00d(0x148)]?.[_0x55e00d(0x114)+'s'],0xc8)||_0x1b3621[_0x55e00d(0xd0)](_0x99e78d[_0x55e00d(0x123)+_0x55e00d(0x148)]?.['statu'+'s'],0xc9))return{'id':_0x55e00d(0x128)+_0x55e00d(0xf2)+Date[_0x55e00d(0xe0)](),'comment':_0x11435e,'comment_text':_0x11435e,'user':{'id':0x0,'username':_0x1b3621[_0x55e00d(0xe1)],'email':'','color':''},'date':new Date()[_0x55e00d(0x13e)+'Strin'+'g'](),'resolved':![]};throw this[_0x55e00d(0x153)]['handl'+'eErro'+'r'](_0x99e78d,_0x1b3621[_0x55e00d(0xda)]);}}async[a0_0x22d16a(0xfb)+a0_0x22d16a(0x12f)+a0_0x22d16a(0x149)+a0_0x22d16a(0x11c)](_0x5f5790,_0x41688d){const _0x32da3e=a0_0x22d16a;this['core']['logOp'+'erati'+'on'](_0x32da3e(0xfb)+'mment'+_0x32da3e(0x149)+_0x32da3e(0x11c),{'commentId':_0x5f5790,'reaction':_0x41688d});try{const _0x3eed91=this['core'][_0x32da3e(0x13c)+'d'],_0x329be8=this[_0x32da3e(0x153)][_0x32da3e(0x144)+'eUrl']+('/work'+_0x32da3e(0x13f)+'s/')+_0x3eed91+('/chat'+'/mess'+'ages/')+_0x5f5790+(_0x32da3e(0x115)+_0x32da3e(0x101));await this[_0x32da3e(0x153)][_0x32da3e(0xf4)+_0x32da3e(0x122)+'t'](async()=>{const _0x130ce6=_0x32da3e;await this[_0x130ce6(0x153)][_0x130ce6(0xd6)+'t'][_0x130ce6(0x132)](_0x329be8,{'reaction':_0x41688d});});}catch(_0x187bdc){throw this[_0x32da3e(0x153)][_0x32da3e(0x11d)+_0x32da3e(0x14b)+'r'](_0x187bdc,_0x32da3e(0xdc)+_0x32da3e(0x125)+_0x32da3e(0xf7)+_0x32da3e(0x12d)+_0x32da3e(0xfa)+'\x20comm'+_0x32da3e(0x110));}}async[a0_0x22d16a(0x107)+a0_0x22d16a(0xfd)+'entRe'+a0_0x22d16a(0xd2)+'n'](_0x5d35e9,_0x24cffd){const _0x45070c=a0_0x22d16a;this[_0x45070c(0x153)][_0x45070c(0x14d)+_0x45070c(0xf9)+'on'](_0x45070c(0x107)+_0x45070c(0xfd)+_0x45070c(0x10d)+_0x45070c(0xd2)+'n',{'commentId':_0x5d35e9,'reaction':_0x24cffd});try{const _0x2900d9=this['core'][_0x45070c(0x13c)+'d'],_0x1974e0=encodeURIComponent(_0x24cffd),_0x206166=this[_0x45070c(0x153)][_0x45070c(0x144)+_0x45070c(0x100)]+('/work'+_0x45070c(0x13f)+'s/')+_0x2900d9+('/chat'+'/mess'+_0x45070c(0x112))+_0x5d35e9+(_0x45070c(0x115)+_0x45070c(0x101)+'/')+_0x1974e0;await this[_0x45070c(0x153)][_0x45070c(0xf4)+_0x45070c(0x122)+'t'](async()=>{const _0x24345c=_0x45070c;await this[_0x24345c(0x153)][_0x24345c(0xd6)+'t']['delet'+'e'](_0x206166);});}catch(_0x59b77a){throw this['core'][_0x45070c(0x11d)+_0x45070c(0x14b)+'r'](_0x59b77a,'Faile'+_0x45070c(0x125)+_0x45070c(0x107)+_0x45070c(0x12c)+_0x45070c(0xcf)+_0x45070c(0xff)+'\x20comm'+'ent');}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x23da(_0x4f8e43,_0x1bb3d8){_0x4f8e43=_0x4f8e43-0x15b;const _0xc2b9e9=a0_0xc2b9();let _0x23da63=_0xc2b9e9[_0x4f8e43];if(a0_0x23da['JXOVfB']===undefined){var _0x3a50a4=function(_0x5a7de9){const _0x41fa87='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44e459='',_0x33730c='';for(let _0xf5dad0=0x0,_0x4469a8,_0x3295bd,_0x77c166=0x0;_0x3295bd=_0x5a7de9['charAt'](_0x77c166++);~_0x3295bd&&(_0x4469a8=_0xf5dad0%0x4?_0x4469a8*0x40+_0x3295bd:_0x3295bd,_0xf5dad0++%0x4)?_0x44e459+=String['fromCharCode'](0xff&_0x4469a8>>(-0x2*_0xf5dad0&0x6)):0x0){_0x3295bd=_0x41fa87['indexOf'](_0x3295bd);}for(let _0x4b77af=0x0,_0x5038cc=_0x44e459['length'];_0x4b77af<_0x5038cc;_0x4b77af++){_0x33730c+='%'+('00'+_0x44e459['charCodeAt'](_0x4b77af)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x33730c);};a0_0x23da['xwfnxx']=_0x3a50a4,a0_0x23da['tjSCNs']={},a0_0x23da['JXOVfB']=!![];}const _0x1ce803=_0xc2b9e9[0x0],_0x47d3ea=_0x4f8e43+_0x1ce803,_0x5db384=a0_0x23da['tjSCNs'][_0x47d3ea];return!_0x5db384?(_0x23da63=a0_0x23da['xwfnxx'](_0x23da63),a0_0x23da['tjSCNs'][_0x47d3ea]=_0x23da63):_0x23da63=_0x5db384,_0x23da63;}const a0_0x36b231=a0_0x23da;(function(_0x2bd457,_0xbe383f){const _0x29cfe4=a0_0x23da,_0x102c8b=_0x2bd457();while(!![]){try{const _0x429c98=parseInt(_0x29cfe4(0x202))/0x1+-parseInt(_0x29cfe4(0x36d))/0x2+parseInt(_0x29cfe4(0x227))/0x3+-parseInt(_0x29cfe4(0x21b))/0x4+-parseInt(_0x29cfe4(0x161))/0x5+parseInt(_0x29cfe4(0x1e0))/0x6*(-parseInt(_0x29cfe4(0x245))/0x7)+parseInt(_0x29cfe4(0x18d))/0x8*(parseInt(_0x29cfe4(0x2c2))/0x9);if(_0x429c98===_0xbe383f)break;else _0x102c8b['push'](_0x102c8b['shift']());}catch(_0x1f62af){_0x102c8b['push'](_0x102c8b['shift']());}}}(a0_0xc2b9,0x89fc0));import{BaseClickUpService,ErrorCode,ClickUpServiceError}from'../base.js';function a0_0xc2b9(){const _0x26cd0a=['EMf0Aw8','C2XPy2u','ihrHC2S','vfbRswm','yxbWzw4','iIb0BYa','C2TcEum','zwqGDge','y3jLyxq','zxj2Awm','DguGC3q','Dhj1zsy','ihrVigW','BgXVD0q','vxnPBMC','ihr5Cgu','rerftG','DgvHBuK','C3rYAw4','CuH4sLm','l2XPC3q','zwrFBhq','Dcb1C2u','B3nLza','zxjHDgK','Dgv4Dca','ENjZu0y','CZ10CNu','CMvZCg8','B3jPDhK','suqGDxa','zhKGAw4','yxnZAwC','zwq6ifK','z2v0q3u','yxrLzee','B29SCY8','DgvKihi','Dwj0yxm','ywrKvge','zxf1zxm','ieLelca','BIbSAw0','Dg9mB3C','ign1C3q','BguGtgK','DgvKigm','lwrLBgu','q3vZDg8','vu5ltK8','ugP0zxG','Bg9N','y2uGzxi','DhvZ','zM9Yiha','AwvSzfy','CcbWBge','nJe5mdm4ovDvyKrNsW','DMuGy3u','AhqGBM8','Bsbjra','y29UC3q','ChbPBMC','B3vYy2u','yxrLtgK','Chv0','C2Tnzw0','Aw4Gz2u','zuLK','ChjPB3i','DhLWzsa','ienVChK','DgfZA0K','sfPXz2W','BgLZDeK','icHdBgK','AYbUyw0','ihrVihq','A3mU','yxnR','DguGkhC','C2SGsuq','y2fJAgu','DgfZAW','zxjYB3i','yw0G','CM9Tiee','wMXgy1m','ienSAwm','DLDsv3G','DgLTzv8','x2LKCW','wuTJywi','zvrLyw0','Bv90yxm','ihn1Cha','CgfNzq','y2f0zvq','z2v0ig0','CM1HBgK','D2fYBG','lIbjzIa','x2j5','zgvIDwC','zM91BMq','yw1Lvg8','zf9SAxm','C2nOtue','A1vWiee','u1DYyKu','Axn0ia','yw4Gsuq','wvjYz1e','BgLZDa','y2HL','BwfRzvi','DMfSAwq','BxnBxq','DcbIzsa','x2rHDgu','z2v0qwW','CMvXDwu','Dcb0Agu','ihbHCMu','ig5VDca','quzorgm','q2fJAgu','q3jLyxq','y2fSBhK','DefSBfq','Axr5','Aw9U','qxf6rxi','ieLeia','D29YA3m','zw4Plca','DhvZigy','z09JDhK','C3rVBuK','zgv0zwm','vgfZA10','yMvYCW','Bw92zsa','zYbJDxm','C2TZrxG','CYbUB3q','Axn0CW','CMf0zwC','CMTKB3C','y2HLzfq','B0LKq2e','Aw5HDgK','B3b5Aw4','y2f0zum','A3mGzM8','ysbHigq','BMvLC1S','igDLDfq','CMTZCge','zxrL','q291Bgq','ywnRlwm','zgvFyxi','DxrPBgK','C2TZ','zM9Yihq','BwfW','y2f0zwq','BMrHCMq','rvnJAxi','C3bHy2u','DgfZA3m','CYbOAxm','Dhj1zq','DgLVBIa','BM93','zuvYCM8','zhvWBgK','zw1Izxi','zsbZDwi','EtSGyxm','tg9wy3a','Bsb0yxm','ihjLBw8','q21Oq2S','Agv5ige','nNWYFdm','zgf0zv8','x2vUDhi','DfLTz3i','BgLZDfm','B21HDgK','kdeWmca','zhbVAw4','C2vYDMK','yxr1CW','AxnbCNi','DxbZlG','BNqG','CIbJB24','rM9KAxe','y3rqCMK','AxrLBq','EMn6DhG','ks4Gu3q','zgvFBwe','C3vIDge','rhvWBgK','ignHy2G','C0jpzLG','DgHLEsa','yxrLx2C','ChjLlwm','D3jeuhC','CwPktNq','uMvJzwK','ExbLCW','BgLZDhm','z2v0','yMXLigy','CMvTB3y','BM9YBwe','q0fdseu','Cg9YDca','AwXLza','AxrLBsa','BK9It3m','ywX1zxm','mZyZnJmYuePswNHJ','DhLWzxm','u25fufK','D2L0Aca','DcHZksa','zvrHC2S','iefjoIa','C2SU','CL9Pzhm','Bwf0y2G','BgLZDf8','CYbJDxm','zgvFy28','BeTNse0','y3ruyxm','ywXS','yKTxEu8','yxnRia','C2v0q3u','zcWGyNu','DcbYzwe','ihn1yNq','igLUie0','z2LMEq','ywDYzwu','C3rHDhu','veLnta','DwXRihq','yNrHC2S','tgDoBLK','C2vNEgu','lcbYzxq','B20Gsuq','DMvKigm','CMvZDwW','t2HpDhO','BMvLCW','AwvZ','C2TuExa','ChvZAa','y29Kzq','AYbOyxm','B3b5lwq','zMfPBgu','C3rVBvq','lcb0yxm','qMzvqLi','mtm5nZm1nxvWrhHeyG','z2v0vge','yxrPBMC','BIbPBIa','B3bWAw4','sMforxe','BfrHC2S','u3rHDhu','B3jKzxi','DcbTAwC','Bsbjrca','Aw4GzxG','z2v0ihm','rNjVBuW','BgLZDca','A190Exa','B3iGDge','uMvZB2W','CIb0yxm','AxrZici','z2v0igm','Aw5JBhu','Dxn0B20','z2v0ihq','Dhj1zsC','z2v0q2e','DxiGD28','zgvFy2W','BgrlDey','x3rPBwu','AgLJAca','ig9IDge','CMv2zxi','l3rLyw0','Bv9Pza','AYbjrcW','A0rHDge','Dg9tDhi','tLvirhu','vgvHBsa','khmPihq','Dg9Tihq','y2f0zsa','BMfTzq','oenUtNzwsW','zxH0CMe','y2f0zvm','r1zvC3i','y3rLzca','A1rPBwu','ihvZAw4','y3jPChq','C3rHCNq','BgTuyxm','y3vZDg8','lurLBgu','z2v0ig4','C3qGDMe','ifrOzsa','y2HLy2S','twfRAw4','Aw1LigK','rMfSBgi','vLnqsKu','igfUzca','Aw5MBW','z2v0qNu','x2LUx3m','C3rVBsa','y2XPzw4','Cwfzr2i','yxnRvhK','z2DMsKG','yxrLx2W','yw5Nzsa','ig9Yig4','u3fdAeS','yxrLvge','BwvZC2e','zcbWCM8','DMuGC3u','yxrLzc4','DMvK','yxrPB24','DMfSDwu','zgvFC3u','BL9Kzxm','y2fUBM8','zhvLx2q','DgGGj2e','B3qGywm','Bw92zvq','AxrOigm','yxjJAgK','Aw5Nia','uKLXD1q','A0j5q3u','zxCGy2G','Bg9Nz2u','AguGDge','yxnRCYa','wxDlteG','AwrZ','zLDPrKq','yNvPBgq','z2v0u3u','turgyvG','zwqGBgK','zYbHDhq','CxfxsuS','ywnOBwu','yNztExi','CgvZ','Bg9Nt3a','A2XPC3q','AxrLBxm','y2HLzca','x3DHCM4','uKHhCeG','yxrL','BMv4Cgu','C2TfEgK','DcbZDxa','C2TuAw0','B3iGBM8','DgnOAw4','Dg9YEsK','mtC3nMLoEfrYCW','Axn0','zgf0zwq','zxn0Aw0','zgf0yq','yxnRieK','BMvL','Efvgv2S','y3rPDMu','CgfYzw4','z2v0igi','vgfZAYa','yxnRihC','Bg93','qNDqDxO','y2f0y2G','C3rfEgK','zwXLDgu','DgHHDca','CMvZB2W','zgvZy3i','rMfPBgu','zsb0yxm','zMLSDgu','x1ruta','x2LKC1S','zM9Szgu','zgvZ','BMCGDg8','Dgf0Dxm','vMfSDwu','Aw5N','DgLLCY4','B3iGDgu','mJy5mtCYBNbytvvv','BNnLigy','C2vZ','CgXPy2K','igzVCIa','rK9sqKK','zYbZDge','B21FAxq','zuLUu3q','zwnRBgK','l2nOzwm','veLntca','C3rZ','DxbKyxq','ugfYyw0','zMfSBgK','BgLKyxq','Bv9PDgu','AxmGysa','sw5tDge','Bv9MAwu','CM9YoIa','CM91DgK','CMvJDgW','zxr3zwu','mtC4nJe2suLwuhrs','DgfZA1q','zNjVBsa','uLnkEeS','zwrFz3q','y2nLChq','CgfJzvm','igvUC3u','AYb0Agu','z2v0tgK','ig11C3q','C2TuB0W','mJqWnZG4nfrzquHnzq','AYbJywm','BxbHy3q','ssbKB2u','BgvUz3q','CYbMB3i','Aw4Gvge','BLnTBvu','ihvZzxi','rMLYC2W','zw4GzMu','CNKGD2K','DgfNCW','wMXHzeO','ueKGzw4','y2f0Aw4','AgfUzgW','C2vZigy','AwX0zxi','CMuGEw8','AgvJA2W','ywjSzwq','zcbUB3q','BgrZ','l21LBwi','l3rHC2S','DgHPCYa','vgfZA0y','y2HTzw4','igjLigq','mtyYodjstNLIy1K','l2j1BgS','zM9Yrwe','ihjLDhi','y2nLC3m','ywXYzwe','yxnRqNK','tK9ux0y','Axb0Aw8','t1vora','y2SGDg8','zgvFDgK','B3nLzf8','yxr0ywm','BIb0yxm','DMvKihu','Fdf8n3W','DgfZAY8','yxnRswq','ihjLCxu','w21VDMu','vxaGqva','igXVB2S','y2XLyxi','r1rvB0q','rg8GtK8','BMfTzvq','DwX0Axa','zcaOrM8','DgfZAYa','CgfNzxm','tvDgvuS','y2HPDMu','zM9YigW','s0HWChG','A3PXtgO','CIbJCMu','y2uGAge','Dxn6vvy','q2XPy2S','ywrKihq','l3rPBwu','ywnOzsa','rhnVqxi','zxmGvge','ruvbyLe','C2SGDMK','y2HHBMC','BIbZDge','AYbjrca','B3j0igm','C2v0','lY4Ul3q','Cg9ZDa','BgvHCMu','AwrZw10','ignOzwm','zcb0BYa','ifrjtuW','igrVzxm','zxn0CNu','CgrHDgu','ihrVigC','zgvSzxq','zxjdyxm','BgL6zvm','A19Pzhm','Ew91igG'];a0_0xc2b9=function(){return _0x26cd0a;};return a0_0xc2b9();}import{ListService}from'../list.js';import{findBestMatchInArray}from'../../../utils/resolver-utils.js';export class TaskServiceCore extends BaseClickUpService{constructor(_0xf9ed3,_0x373c76,_0x12d234,_0x2bcab4,_0x35109d){const _0x381def=a0_0x23da,_0x52e09c={'NUHDu':_0x381def(0x2c6)+'ructo'+'r','KHppx':function(_0x3d7a13,_0x54ce7c){return _0x3d7a13*_0x54ce7c;}},_0x1015dd=(_0x381def(0x343)+_0x381def(0x255)+'4|8|5'+'|0')['split']('|');let _0xdb0683=0x0;while(!![]){switch(_0x1015dd[_0xdb0683++]){case'0':this[_0x381def(0x1d2)+_0x381def(0x2a1)+'on'](_0x52e09c[_0x381def(0x187)],{'initialized':!![]});continue;case'1':this[_0x381def(0x25f)+'oIdCa'+_0x381def(0x2fb)]=new Map();continue;case'2':this[_0x381def(0x30f)+_0x381def(0x221)+_0x381def(0x292)+'e']=null;continue;case'3':this[_0x381def(0x2fd)+_0x381def(0x1b4)+'Cache']={'tasks':new Map(),'lists':new Map(),'taskTypes':new Map()};continue;case'4':_0x2bcab4&&(this[_0x381def(0x30f)+'paceS'+_0x381def(0x292)+'e']=_0x2bcab4,this[_0x381def(0x1d2)+_0x381def(0x2a1)+'on'](_0x52e09c['NUHDu'],{'usingSharedWorkspaceService':!![]}));continue;case'5':_0x35109d&&this[_0x381def(0x1d2)+_0x381def(0x2a1)+'on'](_0x52e09c[_0x381def(0x187)],{'usingSharedListService':!![]});continue;case'6':super(_0xf9ed3,_0x373c76,_0x12d234);continue;case'7':this[_0x381def(0x367)+_0x381def(0x1f8)]=_0x52e09c[_0x381def(0x267)](0x5,0x3c)*0x3e8;continue;case'8':this[_0x381def(0x347)+'ervic'+'e']=_0x35109d||new ListService(_0xf9ed3,_0x373c76,_0x12d234,this[_0x381def(0x30f)+_0x381def(0x221)+'ervic'+'e']);continue;}break;}}[a0_0x36b231(0x20f)+a0_0x36b231(0x2e6)+'Id'](_0x2d79a1){const _0x28190a=a0_0x36b231;super[_0x28190a(0x20f)+_0x28190a(0x2e6)+'Id'](_0x2d79a1),this[_0x28190a(0x2fd)+_0x28190a(0x1b4)+'Cache'][_0x28190a(0x334)][_0x28190a(0x25c)](),this['valid'+_0x28190a(0x1b4)+_0x28190a(0x307)][_0x28190a(0x362)][_0x28190a(0x25c)](),this[_0x28190a(0x25f)+'oIdCa'+'che'][_0x28190a(0x25c)](),this[_0x28190a(0x1c3)+'r'][_0x28190a(0x1a2)](_0x28190a(0x188)+_0x28190a(0x2a7)+_0x28190a(0x1e2)+_0x28190a(0x15f)+_0x28190a(0x228)+'hes\x20c'+_0x28190a(0x27b)+'d',{'teamId':_0x2d79a1});}[a0_0x36b231(0x237)+a0_0x36b231(0x339)+'r'](_0x29baec,_0x1dae14){const _0x111c22=a0_0x36b231;if(_0x29baec instanceof ClickUpServiceError)return _0x29baec;return new ClickUpServiceError(_0x1dae14||'Task\x20'+_0x111c22(0x34b)+_0x111c22(0x2bd)+_0x111c22(0x217)+_0x29baec[_0x111c22(0x1af)+'ge'],ErrorCode['UNKNO'+'WN'],_0x29baec);}[a0_0x36b231(0x1c9)+a0_0x36b231(0x242)+a0_0x36b231(0x239)+a0_0x36b231(0x210)+'s'](_0x1d6bec){const _0x31ec20=a0_0x36b231,_0x124320={'ggfJH':_0x31ec20(0x176)+_0x31ec20(0x17c)+_0x31ec20(0x2a0),'Xahnn':_0x31ec20(0x357)+_0x31ec20(0x32d),'YRrgQ':_0x31ec20(0x176)+'de_su'+_0x31ec20(0x389)+'s','qHxJS':function(_0x48563a,_0x353d3e){return _0x48563a(_0x353d3e);},'zrsSF':function(_0x26118e,_0xfc808a){return _0x26118e>_0xfc808a;},'nObOs':function(_0x481636,_0x33be6f){return _0x481636!==_0x33be6f;},'BfUBR':_0x31ec20(0x176)+_0x31ec20(0x17c)+_0x31ec20(0x251)+_0x31ec20(0x362),'qidcy':_0x31ec20(0x176)+'de_ar'+_0x31ec20(0x265)+_0x31ec20(0x2f3)+'ts','QLAhl':function(_0x300ba6,_0x3294c2){return _0x300ba6!==_0x3294c2;},'SqChK':function(_0x22a8e2,_0x197d8e){return _0x22a8e2(_0x197d8e);},'uszUV':_0x31ec20(0x176)+_0x31ec20(0x356)+_0x31ec20(0x31d)+_0x31ec20(0x1b7)+'cript'+'ion','tYmgr':function(_0x54471e,_0x6b0339){return _0x54471e!==_0x6b0339;},'JaNEq':'inclu'+'de_ti'+'ml','nAhcV':_0x31ec20(0x1b9)+'ate_g'+'t','ZlFcS':function(_0xbe849b,_0x58bfdb){return _0xbe849b(_0x58bfdb);},'wrDPw':function(_0x530f72,_0x397bbc){return _0x530f72(_0x397bbc);},'GVUsr':_0x31ec20(0x344)+_0x31ec20(0x20f)+_0x31ec20(0x21f),'bKWyO':function(_0x30ec05,_0x3e9884){return _0x30ec05(_0x3e9884);},'HIvfI':_0x31ec20(0x197)+_0x31ec20(0x216)+_0x31ec20(0x23e)},_0x7b507=new URLSearchParams();if(_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x17c)+'osed'])_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320[_0x31ec20(0x1a9)],String(_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x17c)+_0x31ec20(0x2a0)]));if(_0x1d6bec[_0x31ec20(0x357)+_0x31ec20(0x32d)])_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320['Xahnn'],String(_0x1d6bec[_0x31ec20(0x357)+_0x31ec20(0x32d)]));if(_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x1b6)+_0x31ec20(0x389)+'s'])_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320[_0x31ec20(0x2f9)],_0x124320[_0x31ec20(0x29c)](String,_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x1b6)+_0x31ec20(0x389)+'s']));if(_0x1d6bec[_0x31ec20(0x2e9)])_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x2e9),_0x124320['qHxJS'](String,_0x1d6bec[_0x31ec20(0x2e9)]));if(_0x1d6bec[_0x31ec20(0x169)+_0x31ec20(0x2ef)])_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x169)+_0x31ec20(0x2ef),_0x1d6bec[_0x31ec20(0x169)+_0x31ec20(0x2ef)]);if(_0x1d6bec[_0x31ec20(0x181)+'se'])_0x7b507['appen'+'d'](_0x31ec20(0x181)+'se',_0x124320['qHxJS'](String,_0x1d6bec[_0x31ec20(0x181)+'se']));_0x1d6bec[_0x31ec20(0x386)+'ses']&&_0x1d6bec[_0x31ec20(0x386)+_0x31ec20(0x204)]['lengt'+'h']>0x0&&_0x1d6bec['statu'+_0x31ec20(0x204)]['forEa'+'ch'](_0x5f158d=>_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x386)+'ses[]',_0x5f158d));_0x1d6bec[_0x31ec20(0x2a9)+'nees']&&_0x1d6bec[_0x31ec20(0x2a9)+_0x31ec20(0x391)]['lengt'+'h']>0x0&&_0x1d6bec[_0x31ec20(0x2a9)+_0x31ec20(0x391)][_0x31ec20(0x247)+'ch'](_0x501bde=>_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x2a9)+_0x31ec20(0x325)+']',_0x501bde));_0x1d6bec[_0x31ec20(0x233)]&&_0x124320[_0x31ec20(0x2a3)](_0x1d6bec[_0x31ec20(0x233)][_0x31ec20(0x22b)+'h'],0x0)&&_0x1d6bec[_0x31ec20(0x233)][_0x31ec20(0x247)+'ch'](_0x56b313=>_0x7b507['appen'+'d']('tags['+']',_0x56b313));_0x1d6bec['list_'+_0x31ec20(0x1c7)]&&_0x124320['zrsSF'](_0x1d6bec['list_'+'ids']['lengt'+'h'],0x0)&&_0x1d6bec[_0x31ec20(0x377)+_0x31ec20(0x1c7)]['forEa'+'ch'](_0x52ce22=>_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x377)+_0x31ec20(0x27c),_0x52ce22));_0x1d6bec[_0x31ec20(0x1fa)+_0x31ec20(0x375)]&&_0x1d6bec[_0x31ec20(0x1fa)+'r_ids']['lengt'+'h']>0x0&&_0x1d6bec[_0x31ec20(0x1fa)+_0x31ec20(0x375)]['forEa'+'ch'](_0x20a354=>_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x1fa)+_0x31ec20(0x375)+'[]',_0x20a354));_0x1d6bec[_0x31ec20(0x333)+_0x31ec20(0x2e4)]&&_0x124320['zrsSF'](_0x1d6bec[_0x31ec20(0x333)+_0x31ec20(0x2e4)]['lengt'+'h'],0x0)&&_0x1d6bec[_0x31ec20(0x333)+'_ids']['forEa'+'ch'](_0x34ef40=>_0x7b507['appen'+'d']('space'+_0x31ec20(0x1f9)+']',_0x34ef40));if(_0x124320[_0x31ec20(0x36b)](_0x1d6bec[_0x31ec20(0x1be)+_0x31ec20(0x1b3)],undefined))_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x1be)+_0x31ec20(0x1b3),String(_0x1d6bec['archi'+_0x31ec20(0x1b3)]));if(_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x17c)+'osed_'+_0x31ec20(0x362)]!==undefined)_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320[_0x31ec20(0x160)],String(_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x17c)+_0x31ec20(0x251)+_0x31ec20(0x362)]));if(_0x124320[_0x31ec20(0x36b)](_0x1d6bec['inclu'+'de_ar'+_0x31ec20(0x265)+_0x31ec20(0x2f3)+'ts'],undefined))_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320['qidcy'],String(_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x32b)+'chive'+_0x31ec20(0x2f3)+'ts']));if(_0x124320['QLAhl'](_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x379)+_0x31ec20(0x229)+_0x31ec20(0x17e)+_0x31ec20(0x345)+_0x31ec20(0x392)],undefined))_0x7b507['appen'+'d']('inclu'+'de_co'+_0x31ec20(0x229)+_0x31ec20(0x17e)+_0x31ec20(0x345)+_0x31ec20(0x392),_0x124320[_0x31ec20(0x1ad)](String,_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x379)+_0x31ec20(0x229)+_0x31ec20(0x17e)+_0x31ec20(0x345)+_0x31ec20(0x392)]));if(_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x356)+_0x31ec20(0x31d)+_0x31ec20(0x1b7)+_0x31ec20(0x194)+_0x31ec20(0x30c)])_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320[_0x31ec20(0x26b)],String(_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x356)+_0x31ec20(0x31d)+_0x31ec20(0x1b7)+_0x31ec20(0x194)+'ion']));if(_0x124320[_0x31ec20(0x346)](_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x250)+'ml'],undefined))_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320[_0x31ec20(0x166)],String(_0x1d6bec[_0x31ec20(0x176)+_0x31ec20(0x250)+'ml']));if(_0x1d6bec[_0x31ec20(0x1b9)+_0x31ec20(0x35c)+'t'])_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320['nAhcV'],_0x124320[_0x31ec20(0x2e0)](String,_0x1d6bec['due_d'+_0x31ec20(0x35c)+'t']));if(_0x1d6bec[_0x31ec20(0x1b9)+_0x31ec20(0x1aa)+'t'])_0x7b507[_0x31ec20(0x28d)+'d']('due_d'+_0x31ec20(0x1aa)+'t',_0x124320[_0x31ec20(0x35e)](String,_0x1d6bec[_0x31ec20(0x1b9)+_0x31ec20(0x1aa)+'t']));if(_0x1d6bec[_0x31ec20(0x344)+_0x31ec20(0x291)+'ed_gt'])_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x344)+_0x31ec20(0x291)+_0x31ec20(0x21f),_0x124320['qHxJS'](String,_0x1d6bec['date_'+_0x31ec20(0x291)+_0x31ec20(0x21f)]));if(_0x1d6bec[_0x31ec20(0x344)+_0x31ec20(0x291)+'ed_lt'])_0x7b507[_0x31ec20(0x28d)+'d']('date_'+_0x31ec20(0x291)+_0x31ec20(0x29e),_0x124320[_0x31ec20(0x29c)](String,_0x1d6bec[_0x31ec20(0x344)+_0x31ec20(0x291)+_0x31ec20(0x29e)]));if(_0x1d6bec['date_'+'updat'+_0x31ec20(0x21f)])_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320[_0x31ec20(0x190)],_0x124320[_0x31ec20(0x37d)](String,_0x1d6bec[_0x31ec20(0x344)+_0x31ec20(0x20f)+'ed_gt']));if(_0x1d6bec['date_'+'updat'+_0x31ec20(0x29e)])_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x344)+_0x31ec20(0x20f)+'ed_lt',String(_0x1d6bec[_0x31ec20(0x344)+'updat'+_0x31ec20(0x29e)]));_0x1d6bec[_0x31ec20(0x197)+_0x31ec20(0x213)+'ms']&&_0x1d6bec[_0x31ec20(0x197)+_0x31ec20(0x213)+'ms'][_0x31ec20(0x22b)+'h']>0x0&&_0x1d6bec[_0x31ec20(0x197)+_0x31ec20(0x213)+'ms'][_0x31ec20(0x247)+'ch'](_0x4df22c=>_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x197)+_0x31ec20(0x213)+_0x31ec20(0x2fe),String(_0x4df22c)));if(_0x1d6bec['custo'+_0x31ec20(0x216)+_0x31ec20(0x23e)]){if(Array['isArr'+'ay'](_0x1d6bec['custo'+_0x31ec20(0x216)+_0x31ec20(0x23e)]))_0x7b507[_0x31ec20(0x28d)+'d'](_0x124320['HIvfI'],JSON['strin'+_0x31ec20(0x384)](_0x1d6bec[_0x31ec20(0x197)+_0x31ec20(0x216)+_0x31ec20(0x23e)]));else{const _0x3cdec1=Object['entri'+'es'](_0x1d6bec[_0x31ec20(0x197)+_0x31ec20(0x216)+_0x31ec20(0x23e)])[_0x31ec20(0x32f)](([_0x26ac15,_0x2492d3])=>({'field_id':_0x26ac15,'operator':'=','value':_0x2492d3}));_0x7b507[_0x31ec20(0x28d)+'d'](_0x31ec20(0x197)+'m_fie'+_0x31ec20(0x23e),JSON[_0x31ec20(0x29b)+_0x31ec20(0x384)](_0x3cdec1));}}return _0x7b507;}[a0_0x36b231(0x18e)+a0_0x36b231(0x352)+a0_0x36b231(0x2a6)+a0_0x36b231(0x1fe)](_0x56432d){const _0x452fb2=a0_0x36b231,_0x411883={'TPkIc':function(_0x1b9b9d,_0x476671){return _0x1b9b9d(_0x476671);},'GTUoD':function(_0x2bf988,_0xf34136){return _0x2bf988(_0xf34136);},'bvSyr':function(_0x3aca14,_0x530b23){return _0x3aca14<_0x530b23;}};if(!_0x56432d['prior'+_0x452fb2(0x30b)]||!_0x56432d[_0x452fb2(0x2ce)+'ity']['id'])return null;const _0x548fb4=_0x411883[_0x452fb2(0x28c)](parseInt,_0x56432d[_0x452fb2(0x2ce)+'ity']['id']);if(_0x411883[_0x452fb2(0x25d)](isNaN,_0x548fb4)||_0x411883[_0x452fb2(0x1d0)](_0x548fb4,0x1)||_0x548fb4>0x4)return null;return _0x548fb4;}['extra'+a0_0x36b231(0x37b)+a0_0x36b231(0x185)](_0x2c9947,_0xa715ce){const _0x444bb7=a0_0x36b231,_0x594e8e={'CmhCk':function(_0x591562,_0x478cc2){return _0x591562(_0x478cc2);},'HvIHH':function(_0x140e95,_0x5204c4){return _0x140e95>_0x5204c4;}},_0x154c98={'name':_0xa715ce||_0x2c9947['name'],'description':_0x2c9947[_0x444bb7(0x1f4)+_0x444bb7(0x24d)+'n']||'','status':_0x2c9947[_0x444bb7(0x386)+'s']?.[_0x444bb7(0x386)+'s'],'priority':this['extra'+_0x444bb7(0x352)+_0x444bb7(0x2a6)+_0x444bb7(0x1fe)](_0x2c9947),'due_date':_0x2c9947[_0x444bb7(0x1b9)+_0x444bb7(0x1d8)]?_0x594e8e[_0x444bb7(0x341)](Number,_0x2c9947[_0x444bb7(0x1b9)+_0x444bb7(0x1d8)]):undefined,'assignees':_0x2c9947[_0x444bb7(0x2a9)+'nees']?.[_0x444bb7(0x32f)](_0x2d5973=>_0x2d5973['id'])||[],'tags':_0x2c9947[_0x444bb7(0x233)]?.[_0x444bb7(0x32f)](_0x36b02e=>_0x36b02e[_0x444bb7(0x18c)])||[],'time_estimate':_0x2c9947[_0x444bb7(0x2e3)+_0x444bb7(0x1e3)+_0x444bb7(0x1d8)]||undefined,'start_date':_0x2c9947[_0x444bb7(0x195)+_0x444bb7(0x300)]?Number(_0x2c9947[_0x444bb7(0x195)+_0x444bb7(0x300)]):undefined};if(Array[_0x444bb7(0x34d)+'ay'](_0x2c9947[_0x444bb7(0x197)+_0x444bb7(0x216)+_0x444bb7(0x23e)])){const _0x507bae=_0x2c9947[_0x444bb7(0x197)+_0x444bb7(0x216)+_0x444bb7(0x23e)][_0x444bb7(0x1f7)+'r'](_0x28dd96=>_0x28dd96[_0x444bb7(0x1b5)]!==undefined&&_0x28dd96[_0x444bb7(0x1b5)]!==null)[_0x444bb7(0x32f)](_0x495a40=>({'id':_0x495a40['id'],'value':_0x495a40[_0x444bb7(0x1b5)]}));_0x594e8e['HvIHH'](_0x507bae[_0x444bb7(0x22b)+'h'],0x0)&&(_0x154c98['custo'+_0x444bb7(0x216)+_0x444bb7(0x23e)]=_0x507bae);}return _0x154c98;}async[a0_0x36b231(0x2ab)+a0_0x36b231(0x15e)+a0_0x36b231(0x1a8)+a0_0x36b231(0x1d1)](_0x5ceb3c=this[a0_0x36b231(0x29a)+'d']){const _0x117b07=a0_0x36b231,_0xeb9588={'yCBbM':function(_0x15bda4,_0x4bbe7a){return _0x15bda4<_0x4bbe7a;}},_0x3c82ae=this['valid'+'ation'+_0x117b07(0x307)][_0x117b07(0x21c)+_0x117b07(0x361)][_0x117b07(0x363)](_0x5ceb3c);if(_0x3c82ae&&_0xeb9588['yCBbM'](Date[_0x117b07(0x338)]()-_0x3c82ae['valid'+_0x117b07(0x2ac)+'t'],this['CACHE'+_0x117b07(0x1f8)]))return this[_0x117b07(0x1c3)+'r']['debug']('Using'+'\x20cach'+'ed\x20cu'+_0x117b07(0x1a5)+_0x117b07(0x262)+_0x117b07(0x36e),{'teamId':_0x5ceb3c}),_0x3c82ae[_0x117b07(0x36e)];try{return await this[_0x117b07(0x2fc)+_0x117b07(0x2b1)+'t'](async()=>{const _0x54ce0f=_0x117b07,_0x10632a=await this['clien'+'t'][_0x54ce0f(0x363)](_0x54ce0f(0x182)+'/'+_0x5ceb3c+('/cust'+_0x54ce0f(0x209)+'em')),_0x3b1ab9=_0x10632a[_0x54ce0f(0x1e4)][_0x54ce0f(0x197)+_0x54ce0f(0x213)+'ms']||[];return this['valid'+'ation'+_0x54ce0f(0x307)][_0x54ce0f(0x21c)+_0x54ce0f(0x361)]['set'](_0x5ceb3c,{'validatedAt':Date[_0x54ce0f(0x338)](),'types':_0x3b1ab9}),_0x3b1ab9;});}catch(_0x13dfa3){throw this['handl'+_0x117b07(0x339)+'r'](_0x13dfa3,_0x117b07(0x1f5)+_0x117b07(0x27e)+_0x117b07(0x175)+_0x117b07(0x177)+_0x117b07(0x28b)+_0x117b07(0x298)+'s');}}async['getTa'+'skTyp'+a0_0x36b231(0x2cd)](_0x84b1b0){const _0x5b682f=a0_0x36b231,_0x111d9e={'RSJxK':function(_0xa7b2ad,_0x241bdd,_0x166366){return _0xa7b2ad(_0x241bdd,_0x166366);}},_0x415a81=await this[_0x5b682f(0x2ab)+_0x5b682f(0x15e)+_0x5b682f(0x1a8)+'pes'](),_0xf388f0=_0x415a81['find'](_0x182765=>_0x182765[_0x5b682f(0x18c)][_0x5b682f(0x2b4)+_0x5b682f(0x285)+'e']()===_0x84b1b0[_0x5b682f(0x2b4)+_0x5b682f(0x285)+'e']());if(_0xf388f0)return _0xf388f0['id'];const _0x5b1163=_0x111d9e[_0x5b682f(0x21e)](findBestMatchInArray,_0x415a81,_0x84b1b0);if(_0x5b1163)return _0x5b1163[_0x5b682f(0x353)]['id'];return null;}async[a0_0x36b231(0x291)+a0_0x36b231(0x372)](_0x46341b,_0x401a42){const _0x5e15d6=a0_0x36b231,_0x1cc644={'segxe':function(_0x1cdb20,_0x569b52){return _0x1cdb20===_0x569b52;},'BwPuz':_0x5e15d6(0x291)+_0x5e15d6(0x372),'AFNDc':function(_0x3572d0,_0x3441ac){return _0x3572d0!==_0x3441ac;},'DKTrS':'Could'+'\x20not\x20'+_0x5e15d6(0x1f3)+_0x5e15d6(0x2c3)+_0x5e15d6(0x1a5)+_0x5e15d6(0x262)+'type','RtSMM':function(_0xdc51a,_0x15fb20){return _0xdc51a>_0x15fb20;}};this['logOp'+_0x5e15d6(0x2a1)+'on'](_0x1cc644[_0x5e15d6(0x1ee)],{'listId':_0x46341b,..._0x401a42});const {subtasks:_0x34f5f8,..._0x4c89fc}=_0x401a42;if(_0x4c89fc[_0x5e15d6(0x197)+_0x5e15d6(0x2e7)+_0x5e15d6(0x170)+'e']&&!_0x4c89fc[_0x5e15d6(0x197)+_0x5e15d6(0x213)+'m_id']){const _0x4851a2=await this[_0x5e15d6(0x162)+_0x5e15d6(0x393)+_0x5e15d6(0x2cd)](_0x4c89fc[_0x5e15d6(0x197)+_0x5e15d6(0x2e7)+_0x5e15d6(0x170)+'e']);_0x1cc644[_0x5e15d6(0x306)](_0x4851a2,null)?(_0x4c89fc[_0x5e15d6(0x197)+_0x5e15d6(0x213)+_0x5e15d6(0x183)]=_0x4851a2,this[_0x5e15d6(0x1c3)+'r']['debug'](_0x5e15d6(0x172)+_0x5e15d6(0x38e)+_0x5e15d6(0x177)+_0x5e15d6(0x28b)+_0x5e15d6(0x298),{'name':_0x4c89fc[_0x5e15d6(0x197)+_0x5e15d6(0x2e7)+_0x5e15d6(0x170)+'e'],'id':_0x4851a2})):this['logge'+'r'][_0x5e15d6(0x2ed)](_0x1cc644['DKTrS'],{'name':_0x4c89fc[_0x5e15d6(0x197)+'m_tas'+_0x5e15d6(0x170)+'e']});}if(_0x4c89fc[_0x5e15d6(0x386)+'s']){await this[_0x5e15d6(0x2fd)+_0x5e15d6(0x2c9)+_0x5e15d6(0x1f0)+_0x5e15d6(0x20e)](_0x46341b)['catch'](_0x119000=>{const _0x1f6e72=_0x5e15d6;this[_0x1f6e72(0x1c3)+'r'][_0x1f6e72(0x2ed)](_0x1f6e72(0x1f5)+_0x1f6e72(0x27e)+_0x1f6e72(0x35d)+_0x1f6e72(0x26f)+'list\x20'+_0x1f6e72(0x386)+_0x1f6e72(0x238)+_0x1f6e72(0x1dd)+_0x1f6e72(0x2ec)+_0x1f6e72(0x289)+'n',{'listId':_0x46341b,'error':_0x119000[_0x1f6e72(0x1af)+'ge']});});const _0x4cb7a1=this[_0x5e15d6(0x2fd)+_0x5e15d6(0x1b4)+_0x5e15d6(0x307)]['lists'][_0x5e15d6(0x363)](_0x46341b),_0x5acc29=_0x4cb7a1?.[_0x5e15d6(0x2fd)]?_0x4cb7a1[_0x5e15d6(0x386)+_0x5e15d6(0x204)]:[];_0x4c89fc['statu'+'s']=this[_0x5e15d6(0x366)+_0x5e15d6(0x286)+_0x5e15d6(0x1fd)](_0x4c89fc[_0x5e15d6(0x386)+'s'],_0x5acc29);}try{const _0x527a8f=await this[_0x5e15d6(0x2fc)+'eques'+'t'](async()=>{const _0x3126f2=_0x5e15d6,{custom_task_type:_0xde56f7,..._0x1ecdc8}=_0x4c89fc,_0x2ccbac=await this[_0x3126f2(0x1a6)+'t'][_0x3126f2(0x27a)](_0x3126f2(0x29d)+'/'+_0x46341b+_0x3126f2(0x240),_0x1ecdc8),_0x24f0bb=_0x2ccbac[_0x3126f2(0x1e4)];if(_0x1cc644[_0x3126f2(0x38b)](typeof _0x24f0bb,_0x3126f2(0x29b)+'g')){const _0x5ecdc6=_0x24f0bb[_0x3126f2(0x376)](/task.*?(\w{9})/i);if(_0x5ecdc6)return await this[_0x3126f2(0x162)+'sk'](_0x5ecdc6[0x1]);throw new ClickUpServiceError('Recei'+_0x3126f2(0x254)+_0x3126f2(0x1d9)+_0x3126f2(0x191)+_0x3126f2(0x2a2)+_0x3126f2(0x2a5)+_0x3126f2(0x203)+_0x3126f2(0x2df)+'PI',ErrorCode['UNKNO'+'WN'],_0x24f0bb);}if(_0x24f0bb&&_0x24f0bb[_0x3126f2(0x386)+'s']&&_0x24f0bb[_0x3126f2(0x2fa)]&&_0x24f0bb[_0x3126f2(0x2fa)]['id']){const _0x46241a=_0x24f0bb[_0x3126f2(0x2fa)]['id'];this[_0x3126f2(0x2db)+_0x3126f2(0x168)+'s'](_0x46241a,_0x24f0bb[_0x3126f2(0x386)+'s'][_0x3126f2(0x386)+'s']);}return _0x24f0bb;});if(_0x34f5f8&&Array[_0x5e15d6(0x34d)+'ay'](_0x34f5f8)&&_0x1cc644['RtSMM'](_0x34f5f8[_0x5e15d6(0x22b)+'h'],0x0)){this[_0x5e15d6(0x1c3)+'r'][_0x5e15d6(0x1a2)](_0x5e15d6(0x308)+_0x5e15d6(0x1bf)+_0x34f5f8[_0x5e15d6(0x22b)+'h']+(_0x5e15d6(0x382)+_0x5e15d6(0x1c5)+_0x5e15d6(0x2bf)+'arent'+'\x20task'+'\x20')+_0x527a8f['id']);const _0x538661=[];for(const _0x67ed1e of _0x34f5f8){try{const _0x31f3c8=await this[_0x5e15d6(0x291)+_0x5e15d6(0x372)](_0x46341b,{..._0x67ed1e,'parent':_0x527a8f['id']});_0x538661[_0x5e15d6(0x394)](_0x31f3c8);}catch(_0x286153){this[_0x5e15d6(0x1c3)+'r']['error'](_0x5e15d6(0x1f5)+_0x5e15d6(0x27e)+'creat'+_0x5e15d6(0x33c)+_0x5e15d6(0x262)+'\x22'+_0x67ed1e[_0x5e15d6(0x18c)]+('\x22\x20for'+_0x5e15d6(0x304)+_0x5e15d6(0x34f))+_0x527a8f['id'],_0x286153);}}_0x527a8f[_0x5e15d6(0x357)+_0x5e15d6(0x32d)]=_0x538661;}return _0x527a8f;}catch(_0x17fd1a){throw this[_0x5e15d6(0x237)+'eErro'+'r'](_0x17fd1a,_0x5e15d6(0x1f5)+_0x5e15d6(0x27e)+_0x5e15d6(0x291)+_0x5e15d6(0x1f6)+'k');}}async[a0_0x36b231(0x162)+'sk'](_0x459ccd,_0x5e5999=![]){const _0x590232=a0_0x36b231,_0x5d1b58={'Fodiq':_0x590232(0x176)+_0x590232(0x356)+_0x590232(0x31d)+_0x590232(0x1b7)+_0x590232(0x194)+_0x590232(0x30c),'schMA':function(_0x3b0e7d,_0x1c1a0c){return _0x3b0e7d===_0x1c1a0c;},'EEAbQ':_0x590232(0x162)+'sk','lKgHM':'../..'+_0x590232(0x279)+_0x590232(0x2ad)+_0x590232(0x256)+_0x590232(0x32c)+_0x590232(0x200)+'js','OTKlc':function(_0x1fdacc,_0x162d16){return _0x1fdacc(_0x162d16);},'NxHAU':'Custo'+_0x590232(0x33f)+_0x590232(0x276)+_0x590232(0x314)+_0x590232(0x337)+_0x590232(0x38f)+'t','RfkiU':'Detec'+_0x590232(0x2b7)+_0x590232(0x177)+'\x20task'+_0x590232(0x2b2)+_0x590232(0x218)+_0x590232(0x1fc)+_0x590232(0x326)+_0x590232(0x24b)+'Custo'+'mId','zcztx':function(_0x51077c,_0x133d40){return _0x51077c instanceof _0x133d40;}};this[_0x590232(0x1d2)+_0x590232(0x2a1)+'on'](_0x5d1b58[_0x590232(0x272)],{'taskId':_0x459ccd,'includeMarkdownDescription':_0x5e5999});const {isCustomTaskId:_0x45709c}=await import(_0x5d1b58['lKgHM']),_0x41cee7=_0x5d1b58['OTKlc'](_0x45709c,_0x459ccd);this[_0x590232(0x1c3)+'r']['debug'](_0x5d1b58['NxHAU'],{'taskId':_0x459ccd,'isCustom':_0x41cee7,'taskIdLength':_0x459ccd[_0x590232(0x22b)+'h'],'containsHyphen':_0x459ccd['inclu'+_0x590232(0x1fb)]('-'),'containsUnderscore':_0x459ccd['inclu'+_0x590232(0x1fb)]('_')});if(_0x41cee7)return this['logge'+'r']['debug'](_0x5d1b58['RfkiU'],{'taskId':_0x459ccd}),this[_0x590232(0x162)+_0x590232(0x28f)+_0x590232(0x177)+'Id'](_0x459ccd,undefined,_0x5e5999);this[_0x590232(0x1c3)+'r'][_0x590232(0x2f0)]('Detec'+_0x590232(0x2ae)+'egula'+_0x590232(0x173)+_0x590232(0x184)+_0x590232(0x193)+_0x590232(0x208)+_0x590232(0x331)+'\x20getT'+'ask\x20f'+_0x590232(0x1ed),{'taskId':_0x459ccd});try{return await this[_0x590232(0x2fc)+_0x590232(0x2b1)+'t'](async()=>{const _0x9d92fc=_0x590232,_0x485851='/task'+'/'+_0x459ccd,_0x5ad119=new URLSearchParams();_0x5e5999&&_0x5ad119['appen'+'d'](_0x5d1b58[_0x9d92fc(0x351)],_0x9d92fc(0x336));const _0x51e3ea=await this['clien'+'t'][_0x9d92fc(0x363)](_0x485851,{'params':_0x5ad119}),_0x59eba8=_0x51e3ea[_0x9d92fc(0x1e4)];if(_0x5d1b58[_0x9d92fc(0x2f4)](typeof _0x59eba8,'strin'+'g'))throw new ClickUpServiceError(_0x9d92fc(0x360)+_0x9d92fc(0x254)+'nexpe'+_0x9d92fc(0x191)+_0x9d92fc(0x2a2)+_0x9d92fc(0x2a5)+_0x9d92fc(0x203)+_0x9d92fc(0x2df)+'PI',ErrorCode[_0x9d92fc(0x2ba)+'WN'],_0x59eba8);if(_0x59eba8&&_0x59eba8[_0x9d92fc(0x386)+'s']&&_0x59eba8[_0x9d92fc(0x2fa)]&&_0x59eba8[_0x9d92fc(0x2fa)]['id']){const _0x179df5=_0x59eba8['list']['id'];this['cache'+'Statu'+'s'](_0x179df5,_0x59eba8['statu'+'s'][_0x9d92fc(0x386)+'s']);}return _0x59eba8;});}catch(_0x58b966){if(_0x5d1b58[_0x590232(0x354)](_0x58b966,ClickUpServiceError)&&_0x58b966[_0x590232(0x395)]===ErrorCode[_0x590232(0x24c)+_0x590232(0x24e)]){const {isCustomTaskId:_0x175fe8}=await import(_0x5d1b58[_0x590232(0x37a)]);if(!_0x175fe8(_0x459ccd)&&(_0x459ccd[_0x590232(0x176)+_0x590232(0x1fb)]('-')||_0x459ccd['inclu'+'des']('_')))throw new ClickUpServiceError(_0x590232(0x1eb)+_0x459ccd+(_0x590232(0x305)+_0x590232(0x2f1)+_0x590232(0x2ee)+_0x590232(0x241)+_0x590232(0x214)+_0x590232(0x197)+_0x590232(0x33f)+_0x590232(0x184)+_0x590232(0x222)+_0x590232(0x23a)+_0x590232(0x17b)+_0x590232(0x327)+_0x590232(0x26a)+_0x590232(0x378)+_0x590232(0x18a)+_0x590232(0x1e5)+'Ds\x20en'+_0x590232(0x23c)+_0x590232(0x1a1)+_0x590232(0x288)+'ave\x20a'+_0x590232(0x249)+_0x590232(0x2d6)+_0x590232(0x1c4)+_0x590232(0x374)),ErrorCode[_0x590232(0x24c)+_0x590232(0x24e)],_0x58b966[_0x590232(0x1e4)]);}throw this[_0x590232(0x237)+_0x590232(0x339)+'r'](_0x58b966,_0x590232(0x1f5)+_0x590232(0x27e)+_0x590232(0x178)+_0x590232(0x37e)+_0x459ccd);}}async[a0_0x36b231(0x162)+'sks'](_0x529cf9,_0xdaeb1e={}){const _0x331074=a0_0x36b231,_0x3f3e4d={'MWFUK':function(_0x5b88a5,_0x4dfcd2){return _0x5b88a5===_0x4dfcd2;},'xUFWk':_0x331074(0x29b)+'g','ZladJ':_0x331074(0x162)+_0x331074(0x32d),'LoVcp':function(_0x5d40ee,_0x562ec9){return _0x5d40ee>_0x562ec9;},'Firsl':function(_0x5af137,_0x1225bd){return _0x5af137>_0x1225bd;}};this[_0x331074(0x1d2)+_0x331074(0x2a1)+'on'](_0x3f3e4d[_0x331074(0x234)],{'listId':_0x529cf9,'filters':_0xdaeb1e});try{if(_0xdaeb1e[_0x331074(0x386)+_0x331074(0x204)]&&_0xdaeb1e[_0x331074(0x386)+'ses'][_0x331074(0x22b)+'h']>0x0){const _0x32eebb=this['valid'+_0x331074(0x1b4)+_0x331074(0x307)][_0x331074(0x362)][_0x331074(0x363)](_0x529cf9),_0x3b2db2=_0x32eebb?.['valid']?_0x32eebb[_0x331074(0x386)+_0x331074(0x204)]:[];_0xdaeb1e[_0x331074(0x386)+_0x331074(0x204)]=_0xdaeb1e[_0x331074(0x386)+_0x331074(0x204)]['map'](_0x1d69e6=>this[_0x331074(0x366)+_0x331074(0x286)+_0x331074(0x1fd)](_0x1d69e6,_0x3b2db2));}if(_0xdaeb1e[_0x331074(0x197)+_0x331074(0x2e7)+_0x331074(0x170)+'es']&&_0x3f3e4d[_0x331074(0x33e)](_0xdaeb1e[_0x331074(0x197)+'m_tas'+'k_typ'+'es'][_0x331074(0x22b)+'h'],0x0)){const _0x52fc03=_0xdaeb1e[_0x331074(0x197)+_0x331074(0x213)+'ms']||[];for(const _0x5b520d of _0xdaeb1e[_0x331074(0x197)+_0x331074(0x2e7)+'k_typ'+'es']){const _0x5a95a2=await this[_0x331074(0x162)+_0x331074(0x393)+_0x331074(0x2cd)](_0x5b520d);_0x5a95a2!==null?_0x52fc03[_0x331074(0x394)](_0x5a95a2):this[_0x331074(0x1c3)+'r'][_0x331074(0x2ed)](_0x331074(0x329)+_0x331074(0x305)+'resol'+_0x331074(0x2c3)+_0x331074(0x1a5)+_0x331074(0x262)+_0x331074(0x2cf)+'\x22'+_0x5b520d+(_0x331074(0x28e)+_0x331074(0x2f8)),{'listId':_0x529cf9});}_0x3f3e4d[_0x331074(0x230)](_0x52fc03[_0x331074(0x22b)+'h'],0x0)&&(_0xdaeb1e[_0x331074(0x197)+_0x331074(0x213)+'ms']=_0x52fc03);}return await this[_0x331074(0x2fc)+_0x331074(0x2b1)+'t'](async()=>{const _0x234f55=_0x331074,_0x2ae449=this[_0x234f55(0x1c9)+_0x234f55(0x242)+_0x234f55(0x239)+_0x234f55(0x210)+'s'](_0xdaeb1e),_0x1e7fc1=await this['clien'+'t'][_0x234f55(0x363)]('/list'+'/'+_0x529cf9+_0x234f55(0x240),{'params':_0x2ae449}),_0xfe936c=_0x1e7fc1['data'];if(_0x3f3e4d[_0x234f55(0x264)](typeof _0xfe936c,_0x3f3e4d[_0x234f55(0x1e7)]))throw new ClickUpServiceError(_0x234f55(0x360)+_0x234f55(0x254)+_0x234f55(0x1d9)+_0x234f55(0x191)+_0x234f55(0x2a2)+'respo'+'nse\x20f'+_0x234f55(0x2df)+'PI',ErrorCode[_0x234f55(0x2ba)+'WN'],_0xfe936c);if(_0xfe936c&&_0xfe936c[_0x234f55(0x386)+_0x234f55(0x204)]){const _0x525975=this[_0x234f55(0x2fd)+_0x234f55(0x1b4)+_0x234f55(0x307)][_0x234f55(0x362)]['get'](_0x529cf9);this[_0x234f55(0x2fd)+'ation'+_0x234f55(0x307)]['lists'][_0x234f55(0x278)](_0x529cf9,{'validatedAt':Date[_0x234f55(0x338)](),'valid':!![],'statuses':_0xfe936c[_0x234f55(0x386)+_0x234f55(0x204)],..._0x525975});}return Array['isArr'+'ay'](_0xfe936c)?_0xfe936c:_0xfe936c[_0x234f55(0x334)]||[];});}catch(_0x3ea348){throw this[_0x331074(0x237)+'eErro'+'r'](_0x3ea348,_0x331074(0x1f5)+_0x331074(0x27e)+'get\x20t'+'asks\x20'+_0x331074(0x266)+_0x331074(0x2f7)+_0x529cf9);}}async['getAl'+a0_0x36b231(0x167)+'s'](_0x293339,_0x44ebaf={}){const _0x19d16a=a0_0x36b231,_0x1405fc={'LgNnY':_0x19d16a(0x301)+'lTask'+'s','VoiJc':function(_0x4deb2c,_0x2aab1e){return _0x4deb2c>_0x2aab1e;}};this['logOp'+'erati'+'on'](_0x1405fc[_0x19d16a(0x38a)],{'listId':_0x293339,'filters':_0x44ebaf});const _0x4adc8c=[];let _0x74d26d=0x0,_0x3ce967=!![];while(_0x3ce967){const _0x5975e7=await this[_0x19d16a(0x162)+_0x19d16a(0x32d)](_0x293339,{..._0x44ebaf,'page':_0x74d26d});_0x5975e7[_0x19d16a(0x22b)+'h']===0x0?_0x3ce967=![]:(_0x4adc8c[_0x19d16a(0x394)](..._0x5975e7),_0x74d26d++,_0x1405fc['VoiJc'](_0x74d26d,0x64)&&(this[_0x19d16a(0x1c3)+'r'][_0x19d16a(0x2ed)]('Pagin'+_0x19d16a(0x1b4)+'\x20limi'+_0x19d16a(0x381)+_0x19d16a(0x1d5)+_0x19d16a(0x2cc)+_0x19d16a(0x30a)+_0x19d16a(0x1c5)+_0x19d16a(0x349)+_0x19d16a(0x263)+_0x19d16a(0x355)+_0x19d16a(0x165)+'g.',{'listId':_0x293339}),_0x3ce967=![]));}return this[_0x19d16a(0x1d2)+_0x19d16a(0x2a1)+'on'](_0x19d16a(0x301)+_0x19d16a(0x167)+'s',{'listId':_0x293339,'total':_0x4adc8c[_0x19d16a(0x22b)+'h'],'pages':_0x74d26d}),_0x4adc8c;}async[a0_0x36b231(0x1ca)+a0_0x36b231(0x389)+'s'](_0xa1d373){const _0x211d95=a0_0x36b231,_0x2d3b6b={'VoOxx':_0x211d95(0x1ca)+'btask'+'s'};this[_0x211d95(0x1d2)+'erati'+'on'](_0x2d3b6b['VoOxx'],{'taskId':_0xa1d373});try{return await this[_0x211d95(0x2fc)+_0x211d95(0x2b1)+'t'](async()=>{const _0x13f2b9=_0x211d95,_0x3a91e5=await this['clien'+'t']['get'](_0x13f2b9(0x240)+'/'+_0xa1d373+('?subt'+'asks='+_0x13f2b9(0x294)+_0x13f2b9(0x176)+_0x13f2b9(0x1b6)+'btask'+_0x13f2b9(0x2a4)+'e'));return _0x3a91e5[_0x13f2b9(0x1e4)][_0x13f2b9(0x357)+_0x13f2b9(0x32d)]||[];});}catch(_0x360f07){throw this[_0x211d95(0x237)+_0x211d95(0x339)+'r'](_0x360f07,_0x211d95(0x1f5)+'d\x20to\x20'+_0x211d95(0x16d)+_0x211d95(0x2af)+_0x211d95(0x323)+_0x211d95(0x173)+'k\x20'+_0xa1d373);}}async['getTa'+'skByC'+a0_0x36b231(0x177)+'Id'](_0xc20f64,_0x5ee89f,_0x1c4ddf=![]){const _0x56d3a9=a0_0x36b231,_0x38495d={'gOcty':_0x56d3a9(0x336),'YwKLH':_0x56d3a9(0x2d3)+_0x56d3a9(0x1b0)+'vided'+_0x56d3a9(0x283)+'etTas'+_0x56d3a9(0x1c1)+_0x56d3a9(0x313)+_0x56d3a9(0x380)+_0x56d3a9(0x303)+_0x56d3a9(0x2e1)+_0x56d3a9(0x2f5)+_0x56d3a9(0x235)+_0x56d3a9(0x34a)+_0x56d3a9(0x16a)+_0x56d3a9(0x2c4)+_0x56d3a9(0x1db)+_0x56d3a9(0x368)+'it\x20di'+_0x56d3a9(0x219)+'y\x20for'+_0x56d3a9(0x2b5)+_0x56d3a9(0x38d)+_0x56d3a9(0x25b)+_0x56d3a9(0x34e),'sBOfX':'Recei'+'ved\x20u'+_0x56d3a9(0x1d9)+_0x56d3a9(0x191)+_0x56d3a9(0x2a2)+_0x56d3a9(0x2a5)+_0x56d3a9(0x203)+_0x56d3a9(0x2df)+'PI\x20wh'+_0x56d3a9(0x231)+_0x56d3a9(0x1de)+'g\x20by\x20'+_0x56d3a9(0x197)+_0x56d3a9(0x2c5),'AqzEr':'getTa'+_0x56d3a9(0x28f)+'ustom'+'Id','Pjtex':function(_0x21b52c,_0x515a56){return _0x21b52c instanceof _0x515a56;}};this[_0x56d3a9(0x1d2)+_0x56d3a9(0x2a1)+'on'](_0x38495d[_0x56d3a9(0x30d)],{'customTaskId':_0xc20f64,'listId':_0x5ee89f,'includeMarkdownDescription':_0x1c4ddf});try{return await this[_0x56d3a9(0x2fc)+_0x56d3a9(0x2b1)+'t'](async()=>{const _0x57953f=_0x56d3a9,_0x5104e1=_0x57953f(0x240)+'/'+encodeURIComponent(_0xc20f64),_0x37c045=new URLSearchParams({'custom_task_ids':_0x57953f(0x336),'team_id':this['teamI'+'d']});_0x1c4ddf&&_0x37c045[_0x57953f(0x28d)+'d'](_0x57953f(0x176)+_0x57953f(0x356)+_0x57953f(0x31d)+'n_des'+_0x57953f(0x194)+'ion',_0x38495d[_0x57953f(0x312)]);this[_0x57953f(0x1c3)+'r'][_0x57953f(0x2f0)](_0x57953f(0x19d)+_0x57953f(0x318)+_0x57953f(0x18a)+_0x57953f(0x1e5)+'D\x20API'+_0x57953f(0x258)+'est',{'customTaskId':_0xc20f64,'url':_0x5104e1,'teamId':this['teamI'+'d'],'params':_0x37c045[_0x57953f(0x186)+_0x57953f(0x1ff)](),'fullUrl':_0x5104e1+'?'+_0x37c045[_0x57953f(0x186)+_0x57953f(0x1ff)]()});_0x5ee89f&&this[_0x57953f(0x1c3)+'r'][_0x57953f(0x2ed)](_0x38495d[_0x57953f(0x1c6)],{'customTaskId':_0xc20f64,'listId':_0x5ee89f});const _0x2dffb9=await this[_0x57953f(0x1a6)+'t'][_0x57953f(0x363)](_0x5104e1,{'params':_0x37c045}),_0x581152=_0x2dffb9[_0x57953f(0x1e4)];if(typeof _0x581152===_0x57953f(0x29b)+'g')throw new ClickUpServiceError(_0x38495d[_0x57953f(0x35a)],ErrorCode['UNKNO'+'WN'],_0x581152);return _0x581152;});}catch(_0x4b1be1){this[_0x56d3a9(0x1c3)+'r'][_0x56d3a9(0x2dd)](_0x56d3a9(0x2b9)+_0x56d3a9(0x33f)+_0x56d3a9(0x276)+_0x56d3a9(0x302)+'st\x20fa'+_0x56d3a9(0x369),{'customTaskId':_0xc20f64,'teamId':this[_0x56d3a9(0x29a)+'d'],'error':_0x38495d[_0x56d3a9(0x2bb)](_0x4b1be1,Error)?_0x4b1be1['messa'+'ge']:String(_0x4b1be1),'errorDetails':_0x4b1be1});if(_0x4b1be1 instanceof ClickUpServiceError&&_0x4b1be1[_0x56d3a9(0x395)]===ErrorCode[_0x56d3a9(0x24c)+_0x56d3a9(0x24e)])throw new ClickUpServiceError(_0x56d3a9(0x1eb)+_0x56d3a9(0x370)+_0x56d3a9(0x197)+_0x56d3a9(0x16b)+_0xc20f64+(_0x56d3a9(0x305)+_0x56d3a9(0x2f1)+_0x56d3a9(0x1ac)+_0x56d3a9(0x1bb)+'cessi'+_0x56d3a9(0x364)+_0x56d3a9(0x201)+_0x56d3a9(0x2de))+this[_0x56d3a9(0x29a)+'d']+'.',ErrorCode[_0x56d3a9(0x24c)+_0x56d3a9(0x24e)],_0x4b1be1[_0x56d3a9(0x1e4)]);throw this[_0x56d3a9(0x237)+'eErro'+'r'](_0x4b1be1,_0x56d3a9(0x1f5)+_0x56d3a9(0x27e)+_0x56d3a9(0x178)+_0x56d3a9(0x1ec)+_0x56d3a9(0x1bd)+_0x56d3a9(0x177)+_0x56d3a9(0x30e)+_0xc20f64);}}async[a0_0x36b231(0x20f)+a0_0x36b231(0x372)](_0x53810f,_0x1f519c){const _0x301fff=a0_0x36b231,_0x353c63={'vWRWx':_0x301fff(0x29b)+'g','VSPJE':'Recei'+'ved\x20u'+'nexpe'+_0x301fff(0x191)+_0x301fff(0x2a2)+_0x301fff(0x2a5)+'nse\x20f'+_0x301fff(0x2df)+'PI','YKcab':function(_0x3daa5a,_0x4f0d40){return _0x3daa5a!==_0x4f0d40;},'EcqKQ':_0x301fff(0x172)+_0x301fff(0x38e)+_0x301fff(0x177)+'\x20task'+_0x301fff(0x298)+'\x20for\x20'+_0x301fff(0x20f)+'e','DaAyV':_0x301fff(0x329)+_0x301fff(0x305)+_0x301fff(0x1f3)+'ve\x20cu'+'stom\x20'+_0x301fff(0x262)+_0x301fff(0x2cf)+'for\x20u'+_0x301fff(0x282),'fWiFD':function(_0x2ced6f,_0x8d6f3a){return _0x2ced6f>_0x8d6f3a;}};this[_0x301fff(0x1d2)+_0x301fff(0x2a1)+'on'](_0x301fff(0x20f)+_0x301fff(0x372),{'taskId':_0x53810f,..._0x1f519c});if(_0x1f519c['custo'+_0x301fff(0x2e7)+_0x301fff(0x170)+'e']&&!_0x1f519c[_0x301fff(0x197)+_0x301fff(0x213)+'m_id']){const _0x1a92f6=await this[_0x301fff(0x162)+'skTyp'+'eId'](_0x1f519c[_0x301fff(0x197)+_0x301fff(0x2e7)+_0x301fff(0x170)+'e']);_0x353c63[_0x301fff(0x2e5)](_0x1a92f6,null)?(_0x1f519c[_0x301fff(0x197)+'m_ite'+_0x301fff(0x183)]=_0x1a92f6,this[_0x301fff(0x1c3)+'r']['debug'](_0x353c63['EcqKQ'],{'name':_0x1f519c[_0x301fff(0x197)+_0x301fff(0x2e7)+'k_typ'+'e'],'id':_0x1a92f6})):this[_0x301fff(0x1c3)+'r'][_0x301fff(0x2ed)](_0x353c63['DaAyV'],{'name':_0x1f519c[_0x301fff(0x197)+_0x301fff(0x2e7)+_0x301fff(0x170)+'e']});}try{const {custom_fields:_0x15358d,assignees:_0xa3af57,custom_task_type:_0xdc2ffe,..._0x3baf50}=_0x1f519c;if(_0x3baf50[_0x301fff(0x386)+'s']){const _0x2b0bab=await this[_0x301fff(0x162)+'sk'](_0x53810f),_0x2bedc0=_0x2b0bab['list']['id'];await this[_0x301fff(0x2fd)+_0x301fff(0x2c9)+'stExi'+_0x301fff(0x20e)](_0x2bedc0)[_0x301fff(0x1ef)](_0x3a7649=>{const _0x583adc=_0x301fff;this[_0x583adc(0x1c3)+'r'][_0x583adc(0x2ed)](_0x583adc(0x1f5)+_0x583adc(0x27e)+_0x583adc(0x35d)+_0x583adc(0x26f)+_0x583adc(0x16f)+'statu'+_0x583adc(0x238)+_0x583adc(0x1dd)+_0x583adc(0x2ec)+_0x583adc(0x289)+_0x583adc(0x164)+_0x583adc(0x20f)+_0x583adc(0x372),{'listId':_0x2bedc0,'error':_0x3a7649[_0x583adc(0x1af)+'ge']});});const _0x3529d8=this[_0x301fff(0x2fd)+_0x301fff(0x1b4)+_0x301fff(0x307)]['lists']['get'](_0x2bedc0);let _0x1062be=_0x3529d8?.[_0x301fff(0x2fd)]?_0x3529d8[_0x301fff(0x386)+_0x301fff(0x204)]:undefined;_0x3baf50[_0x301fff(0x386)+'s']=this[_0x301fff(0x366)+'lizeS'+_0x301fff(0x1fd)](_0x3baf50['statu'+'s'],_0x1062be);}let _0x8e3ef8={..._0x3baf50};if(_0xa3af57!==undefined){const _0x4a44aa=await this[_0x301fff(0x162)+'sk'](_0x53810f),_0x5e0092=_0x4a44aa['assig'+'nees'][_0x301fff(0x32f)](_0x288af7=>_0x288af7['id']);let _0xec8f57;if(Array['isArr'+'ay'](_0xa3af57)){const _0x78d6b5=_0xa3af57;_0xec8f57={'add':_0x78d6b5[_0x301fff(0x1f7)+'r'](_0x142fed=>!_0x5e0092[_0x301fff(0x176)+_0x301fff(0x1fb)](_0x142fed)),'rem':_0x5e0092['filte'+'r'](_0x3dedba=>!_0x78d6b5[_0x301fff(0x176)+'des'](_0x3dedba))};}else _0xec8f57=_0xa3af57;_0x8e3ef8[_0x301fff(0x2a9)+_0x301fff(0x391)]=_0xec8f57;}const _0x17b591=await this[_0x301fff(0x2fc)+_0x301fff(0x2b1)+'t'](async()=>{const _0x1fa364=_0x301fff,_0x51ae35=await this[_0x1fa364(0x1a6)+'t'][_0x1fa364(0x2ca)](_0x1fa364(0x240)+'/'+_0x53810f,_0x8e3ef8),_0x5df05c=_0x51ae35[_0x1fa364(0x1e4)];if(typeof _0x5df05c===_0x353c63[_0x1fa364(0x2e2)]){const _0x57aa63=_0x5df05c[_0x1fa364(0x376)](/task.*?(\w{9})/i);if(_0x57aa63)return await this['getTa'+'sk'](_0x57aa63[0x1]);throw new ClickUpServiceError(_0x353c63[_0x1fa364(0x1a0)],ErrorCode[_0x1fa364(0x2ba)+'WN'],_0x5df05c);}return _0x5df05c;});if(_0x15358d&&Array[_0x301fff(0x34d)+'ay'](_0x15358d)&&_0x353c63[_0x301fff(0x1c8)](_0x15358d['lengt'+'h'],0x0))return await this[_0x301fff(0x37f)+'stomF'+_0x301fff(0x2c0)+_0x301fff(0x36c)](_0x53810f,_0x15358d),await this[_0x301fff(0x162)+'sk'](_0x53810f);return _0x17b591;}catch(_0x42b0cf){throw this[_0x301fff(0x237)+_0x301fff(0x339)+'r'](_0x42b0cf,'Faile'+_0x301fff(0x27e)+_0x301fff(0x20f)+_0x301fff(0x1f6)+'k\x20'+_0x53810f);}}async[a0_0x36b231(0x162)+'skTim'+a0_0x36b231(0x20a)+a0_0x36b231(0x34c)](_0x178c3d){const _0x5808f9=a0_0x36b231,_0x1145e8={'BRRLt':_0x5808f9(0x162)+_0x5808f9(0x1dc)+_0x5808f9(0x20a)+_0x5808f9(0x34c)};this[_0x5808f9(0x1d2)+_0x5808f9(0x2a1)+'on'](_0x1145e8['BRRLt'],{'taskId':_0x178c3d});try{return await this[_0x5808f9(0x2fc)+_0x5808f9(0x2b1)+'t'](async()=>{const _0x47c493=_0x5808f9,_0x2f6846=await this[_0x47c493(0x1a6)+'t'][_0x47c493(0x363)]('/task'+'/'+_0x178c3d+(_0x47c493(0x26e)+_0x47c493(0x1a4)+_0x47c493(0x1fd)));return _0x2f6846[_0x47c493(0x1e4)];});}catch(_0x4d63b4){throw this[_0x5808f9(0x237)+_0x5808f9(0x339)+'r'](_0x4d63b4,_0x5808f9(0x1f5)+_0x5808f9(0x27e)+_0x5808f9(0x178)+_0x5808f9(0x19e)+_0x5808f9(0x275)+_0x5808f9(0x311)+_0x5808f9(0x171)+'sk\x20'+_0x178c3d);}}async[a0_0x36b231(0x1a3)+a0_0x36b231(0x196)+a0_0x36b231(0x192)+a0_0x36b231(0x215)+a0_0x36b231(0x2be)](_0x398aa0,_0x233934){const _0x40d28c=a0_0x36b231;this[_0x40d28c(0x1d2)+_0x40d28c(0x2a1)+'on'](_0x40d28c(0x1a3)+'lkTas'+_0x40d28c(0x192)+_0x40d28c(0x215)+_0x40d28c(0x2be),{'taskIds':_0x398aa0,'useCustomTaskIds':_0x233934});try{return await this[_0x40d28c(0x2fc)+_0x40d28c(0x2b1)+'t'](async()=>{const _0x47f24c=_0x40d28c,_0x416efd={'task_ids':_0x398aa0};if(_0x233934)_0x416efd[_0x47f24c(0x197)+_0x47f24c(0x2e7)+_0x47f24c(0x287)]=!![];const _0x3f10c8=await this[_0x47f24c(0x1a6)+'t'][_0x47f24c(0x363)](_0x47f24c(0x240)+_0x47f24c(0x246)+_0x47f24c(0x17e)+_0x47f24c(0x1a4)+_0x47f24c(0x1fd),{'params':_0x416efd});return _0x3f10c8['data'];});}catch(_0x193e99){throw this[_0x40d28c(0x237)+_0x40d28c(0x339)+'r'](_0x193e99,_0x40d28c(0x1f5)+_0x40d28c(0x27e)+_0x40d28c(0x1ea)+_0x40d28c(0x388)+_0x40d28c(0x19e)+_0x40d28c(0x275)+_0x40d28c(0x2be));}}async[a0_0x36b231(0x162)+'skMem'+a0_0x36b231(0x316)](_0x188857){const _0x4d12a6=a0_0x36b231;this[_0x4d12a6(0x1d2)+_0x4d12a6(0x2a1)+'on'](_0x4d12a6(0x162)+_0x4d12a6(0x2cb)+_0x4d12a6(0x316),{'taskId':_0x188857});try{return await this[_0x4d12a6(0x2fc)+_0x4d12a6(0x2b1)+'t'](async()=>{const _0x312cfa=_0x4d12a6,_0x1a8ff1=await this[_0x312cfa(0x1a6)+'t']['get'](_0x312cfa(0x240)+'/'+_0x188857+(_0x312cfa(0x23f)+'er'));return _0x1a8ff1['data'];});}catch(_0x1e2590){throw this[_0x4d12a6(0x237)+_0x4d12a6(0x339)+'r'](_0x1e2590,_0x4d12a6(0x1f5)+_0x4d12a6(0x27e)+_0x4d12a6(0x2eb)+_0x4d12a6(0x33b)+_0x4d12a6(0x22c)+_0x4d12a6(0x28b)+'\x20'+_0x188857);}}async[a0_0x36b231(0x284)+a0_0x36b231(0x372)](_0x27db0e){const _0x4cd42e=a0_0x36b231,_0x35f844={'ZerkI':'delet'+_0x4cd42e(0x372)};this['logOp'+'erati'+'on'](_0x35f844['ZerkI'],{'taskId':_0x27db0e});try{return await this['makeR'+_0x4cd42e(0x2b1)+'t'](async()=>{const _0x274d0f=_0x4cd42e;await this[_0x274d0f(0x1a6)+'t'][_0x274d0f(0x284)+'e'](_0x274d0f(0x240)+'/'+_0x27db0e);}),{'success':!![],'data':undefined,'error':undefined};}catch(_0xa0e647){throw this['handl'+'eErro'+'r'](_0xa0e647,'Faile'+_0x4cd42e(0x27e)+_0x4cd42e(0x284)+'e\x20tas'+'k\x20'+_0x27db0e);}}async[a0_0x36b231(0x1bc)+a0_0x36b231(0x2d8)](_0x414496,_0x53072d,_0x75237=![]){const _0x4f144a=a0_0x36b231,_0x59cb21={'RHGpH':function(_0x2413ed,_0x52d9f1){return _0x2413ed===_0x52d9f1;},'qjJNt':_0x4f144a(0x1eb)+_0x4f144a(0x24a)+_0x4f144a(0x2a8)+'\x20dest'+_0x4f144a(0x320)+'on\x20li'+'st','DsoAr':function(_0x3666b7,_0x316023){return _0x3666b7-_0x316023;},'nSmmU':'compl'+_0x4f144a(0x328),'kzqLj':function(_0x13505e,_0x4ca1d9){return _0x13505e===_0x4ca1d9;},'OhOtz':_0x4f144a(0x20d)+_0x4f144a(0x317)+_0x4f144a(0x15d)+_0x4f144a(0x261)+'rbidd'+_0x4f144a(0x310)+_0x4f144a(0x211)+'ng\x20ba'+_0x4f144a(0x24f)+'\x20copy'+_0x4f144a(0x2b8)+_0x4f144a(0x293)+_0x4f144a(0x31c)+'y','iZlGU':'moveT'+_0x4f144a(0x2d8),'ldKtF':function(_0x20b1a6,_0x10d026){return _0x20b1a6 instanceof _0x10d026;},'SWrbE':function(_0x3682ac,_0x233427){return _0x3682ac(_0x233427);},'hvUkx':'Faile'+_0x4f144a(0x27e)+'move\x20'+_0x4f144a(0x2dc)},_0x475e4b=Date[_0x4f144a(0x338)]();this[_0x4f144a(0x1d2)+_0x4f144a(0x2a1)+'on'](_0x4f144a(0x1bc)+_0x4f144a(0x2d8),{'taskId':_0x414496,'destinationListId':_0x53072d,'operation':'start'});try{const [_0x10206f,_0x408ae8]=await Promise[_0x4f144a(0x37c)]([this[_0x4f144a(0x2fd)+_0x4f144a(0x1ae)+_0x4f144a(0x1da)+_0x4f144a(0x20e)](_0x414496),this[_0x4f144a(0x2fd)+_0x4f144a(0x2c9)+_0x4f144a(0x1f0)+_0x4f144a(0x20e)](_0x53072d)]),_0x1b4bd3=_0x10206f[_0x4f144a(0x2fa)]['id'];if(_0x59cb21[_0x4f144a(0x1d7)](_0x1b4bd3,_0x53072d))return this[_0x4f144a(0x1c3)+'r'][_0x4f144a(0x1a2)](_0x59cb21[_0x4f144a(0x35f)],{'taskId':_0x414496,'destinationListId':_0x53072d}),_0x10206f;try{await this[_0x4f144a(0x2b0)+_0x4f144a(0x226)+'ist'](_0x414496,_0x53072d);const _0x1f7f11=await this[_0x4f144a(0x365)+_0x4f144a(0x372)+'FromL'+'ist'](_0x414496,_0x1b4bd3);console[_0x4f144a(0x2bc)](_0x4f144a(0x259)+_0x4f144a(0x315)+_0x4f144a(0x27f)+_0x4f144a(0x340)+_0x4f144a(0x1b1)+_0x4f144a(0x249)+'ful.');const _0x38591d=_0x59cb21[_0x4f144a(0x270)](Date[_0x4f144a(0x338)](),_0x475e4b);return this[_0x4f144a(0x1d2)+_0x4f144a(0x2a1)+'on'](_0x4f144a(0x1bc)+'ask',{'taskId':_0x414496,'destinationListId':_0x53072d,'operation':_0x59cb21[_0x4f144a(0x22e)],'strategy':_0x4f144a(0x387),'timing':{'totalTime':_0x38591d}}),_0x1f7f11;}catch(_0x171d05){if(_0x171d05 instanceof ClickUpServiceError&&_0x59cb21[_0x4f144a(0x268)](_0x171d05['code'],ErrorCode['FORBI'+_0x4f144a(0x299)])){if(!_0x75237)throw new ClickUpServiceError('Non-d'+_0x4f144a(0x281)+_0x4f144a(0x1e8)+'\x20move'+'\x20fail'+_0x4f144a(0x2aa)+'our\x20C'+'lickU'+_0x4f144a(0x2c1)+_0x4f144a(0x2b3)+_0x4f144a(0x174)+'Tasks'+_0x4f144a(0x383)+_0x4f144a(0x260)+_0x4f144a(0x2b6)+'sts\x22.'+'\x20To\x20m'+'ove\x20t'+_0x4f144a(0x1c4)+_0x4f144a(0x273)+_0x4f144a(0x324)+_0x4f144a(0x281)+_0x4f144a(0x1e8)+_0x4f144a(0x2d0)+_0x4f144a(0x198)+_0x4f144a(0x2d9)+_0x4f144a(0x17f)+_0x4f144a(0x274)+_0x4f144a(0x271)+'sk\x20ID'+_0x4f144a(0x1a1)+'reset'+_0x4f144a(0x335)+_0x4f144a(0x1df)+',\x20you'+_0x4f144a(0x225)+_0x4f144a(0x180)+_0x4f144a(0x16c)+_0x4f144a(0x205)+_0x4f144a(0x29f)+_0x4f144a(0x350)+'sent.'+_0x4f144a(0x373)+_0x4f144a(0x25e)+'T\x20aut'+_0x4f144a(0x348)+_0x4f144a(0x309)+_0x4f144a(0x248)+_0x4f144a(0x33d)+_0x4f144a(0x223)+_0x4f144a(0x22f)+'\x20if\x20t'+_0x4f144a(0x342)+_0x4f144a(0x220)+'\x20a\x20ch'+_0x4f144a(0x1ab)+_0x4f144a(0x22d)+_0x4f144a(0x2da)+_0x4f144a(0x2ee)+_0x4f144a(0x35b)+_0x4f144a(0x385)+_0x4f144a(0x38c)+_0x4f144a(0x232)+_0x4f144a(0x1ba)+_0x4f144a(0x296)+_0x4f144a(0x281)+_0x4f144a(0x1e8)+_0x4f144a(0x19f)+'ack:\x20'+_0x4f144a(0x179)+'.',ErrorCode[_0x4f144a(0x207)+_0x4f144a(0x299)]);this['logge'+'r'][_0x4f144a(0x2ed)](_0x59cb21[_0x4f144a(0x390)],{'taskId':_0x414496,'destinationListId':_0x53072d,'error':_0x171d05['messa'+'ge']});const _0x1ef8dd=this[_0x4f144a(0x18e)+_0x4f144a(0x37b)+_0x4f144a(0x185)](_0x10206f),_0x4ab1e1=await this[_0x4f144a(0x291)+_0x4f144a(0x372)](_0x53072d,_0x1ef8dd);await this['delet'+_0x4f144a(0x372)](_0x414496);const _0x276174=_0x59cb21[_0x4f144a(0x270)](Date[_0x4f144a(0x338)](),_0x475e4b);return this[_0x4f144a(0x1d2)+_0x4f144a(0x2a1)+'on'](_0x4f144a(0x1bc)+_0x4f144a(0x2d8),{'taskId':_0x414496,'destinationListId':_0x53072d,'operation':'compl'+_0x4f144a(0x328),'strategy':'fallb'+_0x4f144a(0x32a)+_0x4f144a(0x15c)+_0x4f144a(0x1f1),'newTaskId':_0x4ab1e1['id'],'timing':{'totalTime':_0x276174}}),_0x4ab1e1;}throw _0x171d05;}}catch(_0x2180fc){this[_0x4f144a(0x1d2)+_0x4f144a(0x2a1)+'on'](_0x59cb21['iZlGU'],{'taskId':_0x414496,'destinationListId':_0x53072d,'operation':_0x4f144a(0x15d)+'d','error':_0x59cb21[_0x4f144a(0x17d)](_0x2180fc,Error)?_0x2180fc['messa'+'ge']:_0x59cb21[_0x4f144a(0x2f6)](String,_0x2180fc),'timing':{'totalTime':Date[_0x4f144a(0x338)]()-_0x475e4b}});throw this[_0x4f144a(0x237)+_0x4f144a(0x339)+'r'](_0x2180fc,_0x59cb21['hvUkx']);}}async[a0_0x36b231(0x2b0)+a0_0x36b231(0x226)+a0_0x36b231(0x1e1)](_0x2052eb,_0x537ecd){const _0x519c43=a0_0x36b231,_0x5f4cfd={'HZqgl':_0x519c43(0x2b0)+_0x519c43(0x226)+_0x519c43(0x1e1)};this[_0x519c43(0x1d2)+_0x519c43(0x2a1)+'on'](_0x5f4cfd[_0x519c43(0x2d2)],{'taskId':_0x2052eb,'listId':_0x537ecd});try{return await Promise[_0x519c43(0x37c)]([this[_0x519c43(0x2fd)+_0x519c43(0x1ae)+_0x519c43(0x1da)+'sts'](_0x2052eb),this['valid'+_0x519c43(0x2c9)+_0x519c43(0x1f0)+_0x519c43(0x20e)](_0x537ecd)]),await this[_0x519c43(0x2fc)+_0x519c43(0x2b1)+'t'](async()=>{const _0x3e475f=_0x519c43;await this['clien'+'t'][_0x3e475f(0x27a)](_0x3e475f(0x29d)+'/'+_0x537ecd+(_0x3e475f(0x240)+'/')+_0x2052eb);}),this[_0x519c43(0x2fd)+_0x519c43(0x1b4)+'Cache'][_0x519c43(0x334)][_0x519c43(0x284)+'e'](_0x2052eb),await this[_0x519c43(0x162)+'sk'](_0x2052eb);}catch(_0x3b1b5d){throw this[_0x519c43(0x237)+'eErro'+'r'](_0x3b1b5d,_0x519c43(0x1f5)+'d\x20to\x20'+_0x519c43(0x26d)+_0x519c43(0x37e)+_0x2052eb+(_0x519c43(0x295)+_0x519c43(0x2f7))+_0x537ecd);}}async[a0_0x36b231(0x365)+a0_0x36b231(0x372)+a0_0x36b231(0x16e)+'ist'](_0x1d9e88,_0x23fc0a){const _0x38e476=a0_0x36b231,_0x1cb20a={'EScir':'remov'+_0x38e476(0x372)+_0x38e476(0x16e)+_0x38e476(0x1e1)};this[_0x38e476(0x1d2)+_0x38e476(0x2a1)+'on'](_0x1cb20a[_0x38e476(0x332)],{'taskId':_0x1d9e88,'listId':_0x23fc0a});try{return await Promise[_0x38e476(0x37c)]([this['valid'+'ateTa'+_0x38e476(0x1da)+_0x38e476(0x20e)](_0x1d9e88),this[_0x38e476(0x2fd)+_0x38e476(0x2c9)+_0x38e476(0x1f0)+'sts'](_0x23fc0a)]),await this[_0x38e476(0x2fc)+_0x38e476(0x2b1)+'t'](async()=>{const _0x3cd81c=_0x38e476;await this[_0x3cd81c(0x1a6)+'t']['delet'+'e'](_0x3cd81c(0x29d)+'/'+_0x23fc0a+(_0x3cd81c(0x240)+'/')+_0x1d9e88);}),this['valid'+_0x38e476(0x1b4)+'Cache'][_0x38e476(0x334)]['delet'+'e'](_0x1d9e88),await this['getTa'+'sk'](_0x1d9e88);}catch(_0x511912){throw this[_0x38e476(0x237)+'eErro'+'r'](_0x511912,_0x38e476(0x1f5)+_0x38e476(0x27e)+_0x38e476(0x365)+'e\x20tas'+'k\x20'+_0x1d9e88+('\x20from'+'\x20list'+'\x20')+_0x23fc0a);}}async[a0_0x36b231(0x33a)+a0_0x36b231(0x2ea)+'ask'](_0x7ce593,_0x3f64bc){const _0x2420e5=a0_0x36b231,_0x4d2cd4={'qqWIK':function(_0x16c920,_0x41b971){return _0x16c920>_0x41b971;}};this[_0x2420e5(0x1d2)+_0x2420e5(0x2a1)+'on'](_0x2420e5(0x33a)+_0x2420e5(0x2ea)+'ask',{'taskId':_0x7ce593,'listId':_0x3f64bc});try{const [_0x320029,_0x2968eb,_0x562ce4]=await Promise[_0x2420e5(0x37c)]([this['getTa'+'sk'](_0x7ce593),this[_0x2420e5(0x1ca)+_0x2420e5(0x389)+'s'](_0x7ce593),_0x3f64bc?this[_0x2420e5(0x2fd)+_0x2420e5(0x2c9)+'stExi'+_0x2420e5(0x20e)](_0x3f64bc):Promise[_0x2420e5(0x1f3)+'ve']()]),_0x4a84b4=_0x3f64bc||_0x320029['list']['id'],_0x52e2c4=this['extra'+_0x2420e5(0x37b)+_0x2420e5(0x185)](_0x320029),_0x28246b=await this[_0x2420e5(0x291)+_0x2420e5(0x372)](_0x4a84b4,_0x52e2c4);await this[_0x2420e5(0x33a)+'cateC'+_0x2420e5(0x23b)+_0x2420e5(0x31b)](_0x320029,_0x28246b['id']);_0x2968eb&&_0x4d2cd4[_0x2420e5(0x1ce)](_0x2968eb[_0x2420e5(0x22b)+'h'],0x0)&&(this['logge'+'r']['info'](_0x2420e5(0x358)+_0x2420e5(0x236)+'g\x20'+_0x2968eb['lengt'+'h']+(_0x2420e5(0x382)+_0x2420e5(0x1c5)+_0x2420e5(0x32e)+_0x2420e5(0x37e))+_0x28246b['id']),await this[_0x2420e5(0x33a)+_0x2420e5(0x18f)+'ubtas'+'ks'](_0x2968eb,_0x4a84b4,_0x28246b['id']));const _0x5434a5=_0x320029[_0x2420e5(0x252)+'hment'+'s']?.[_0x2420e5(0x22b)+'h']||0x0;_0x5434a5>0x0&&this[_0x2420e5(0x1c3)+'r']['warn']('Sourc'+_0x2420e5(0x1f6)+_0x2420e5(0x15b)+'\x20'+_0x5434a5+('\x20atta'+'chmen'+_0x2420e5(0x371)+_0x2420e5(0x1f2)+_0x2420e5(0x1b8)+_0x2420e5(0x2ff)+_0x2420e5(0x33a)+_0x2420e5(0x330)+_0x2420e5(0x2d4)+'ckUp\x20'+'API\x20l'+'imita'+'tion)'),{'sourceTaskId':_0x7ce593,'newTaskId':_0x28246b['id']});const _0x3a216c=await this['getTa'+'sk'](_0x28246b['id']);return _0x5434a5>0x0&&(_0x3a216c[_0x2420e5(0x1d6)+'ings']=[_0x5434a5+('\x20atta'+_0x2420e5(0x243)+_0x2420e5(0x371)+_0x2420e5(0x21d)+'the\x20s'+_0x2420e5(0x2c8)+_0x2420e5(0x28b)+'\x20coul'+_0x2420e5(0x23d)+_0x2420e5(0x244)+'uplic'+_0x2420e5(0x1b2)+_0x2420e5(0x19b)+_0x2420e5(0x26c)+_0x2420e5(0x25a)+_0x2420e5(0x22a)+_0x2420e5(0x31a)+_0x2420e5(0x2e8)+_0x2420e5(0x277)+_0x2420e5(0x321)+_0x2420e5(0x1cd)+_0x2420e5(0x1cf)+'nts\x20b'+_0x2420e5(0x21a)+_0x2420e5(0x253)+_0x2420e5(0x2d7))]),_0x3a216c;}catch(_0x3e73e4){throw this[_0x2420e5(0x237)+'eErro'+'r'](_0x3e73e4,_0x2420e5(0x1f5)+_0x2420e5(0x27e)+_0x2420e5(0x33a)+_0x2420e5(0x18b)+'task\x20'+_0x7ce593);}}async[a0_0x36b231(0x33a)+a0_0x36b231(0x322)+a0_0x36b231(0x23b)+'ists'](_0x5a0b87,_0x25cf8b){const _0x12a5d1=a0_0x36b231,_0x122f90=_0x5a0b87[_0x12a5d1(0x19c)+_0x12a5d1(0x362)];if(!_0x122f90||_0x122f90[_0x12a5d1(0x22b)+'h']===0x0)return;this[_0x12a5d1(0x1c3)+'r']['info'](_0x12a5d1(0x358)+'catin'+'g\x20'+_0x122f90[_0x12a5d1(0x22b)+'h']+(_0x12a5d1(0x27d)+_0x12a5d1(0x1d3)+_0x12a5d1(0x189)+'o\x20tas'+'k\x20')+_0x25cf8b);for(const _0x356a2d of _0x122f90){try{const _0x1a08bb=await this[_0x12a5d1(0x2fc)+_0x12a5d1(0x2b1)+'t'](async()=>{const _0x344340=_0x12a5d1,_0xbf1bcc=await this[_0x344340(0x1a6)+'t']['post'](_0x344340(0x240)+'/'+_0x25cf8b+(_0x344340(0x20c)+_0x344340(0x1d3)),{'name':_0x356a2d['name']});return _0xbf1bcc[_0x344340(0x1e4)];}),_0x29948f=_0x1a08bb?.[_0x12a5d1(0x19c)+_0x12a5d1(0x2fa)]?.['id'];if(!_0x29948f){this[_0x12a5d1(0x1c3)+'r'][_0x12a5d1(0x2ed)](_0x12a5d1(0x1f5)+_0x12a5d1(0x27e)+_0x12a5d1(0x199)+_0x12a5d1(0x1c2)+_0x12a5d1(0x20b)+'st\x20ID'+'\x20afte'+_0x12a5d1(0x269)+_0x12a5d1(0x163)+'\x20\x22'+_0x356a2d['name']+'\x22');continue;}const _0x2f0241=_0x356a2d[_0x12a5d1(0x1d4)]||[];for(const _0x32888a of _0x2f0241){try{const _0x3ae6a4={'name':_0x32888a[_0x12a5d1(0x18c)]};if(_0x32888a[_0x12a5d1(0x2a9)+_0x12a5d1(0x1e6)])_0x3ae6a4[_0x12a5d1(0x2a9)+_0x12a5d1(0x1e6)]=_0x32888a[_0x12a5d1(0x2a9)+'nee']['id']||_0x32888a['assig'+_0x12a5d1(0x1e6)];await this[_0x12a5d1(0x2fc)+'eques'+'t'](async()=>{const _0x5ce15f=_0x12a5d1;await this['clien'+'t'][_0x5ce15f(0x27a)](_0x5ce15f(0x20c)+_0x5ce15f(0x1d3)+'/'+_0x29948f+(_0x5ce15f(0x20c)+'klist'+'_item'),_0x3ae6a4);});}catch(_0x46a4e0){this[_0x12a5d1(0x1c3)+'r']['warn'](_0x12a5d1(0x1f5)+'d\x20to\x20'+'dupli'+_0x12a5d1(0x18b)+_0x12a5d1(0x19c)+_0x12a5d1(0x16f)+_0x12a5d1(0x36a)+'\x22'+_0x32888a[_0x12a5d1(0x18c)]+'\x22',{'error':_0x46a4e0});}}}catch(_0xb2a199){this['logge'+'r'][_0x12a5d1(0x2ed)](_0x12a5d1(0x1f5)+_0x12a5d1(0x27e)+_0x12a5d1(0x33a)+'cate\x20'+_0x12a5d1(0x19c)+_0x12a5d1(0x16f)+'\x22'+_0x356a2d[_0x12a5d1(0x18c)]+'\x22',{'error':_0xb2a199});}}}async['dupli'+a0_0x36b231(0x18f)+a0_0x36b231(0x2af)+'ks'](_0x40ff7a,_0x381851,_0x1116aa){const _0x33cbb0=a0_0x36b231;for(const _0x1731a9 of _0x40ff7a){try{const _0x2d8cf5=this[_0x33cbb0(0x18e)+_0x33cbb0(0x37b)+_0x33cbb0(0x185)](_0x1731a9);_0x2d8cf5[_0x33cbb0(0x1e9)+'t']=_0x1116aa,await this[_0x33cbb0(0x291)+'eTask'](_0x381851,_0x2d8cf5);}catch(_0x15fe91){this['logge'+'r'][_0x33cbb0(0x2ed)](_0x33cbb0(0x1f5)+_0x33cbb0(0x27e)+_0x33cbb0(0x33a)+_0x33cbb0(0x18b)+'subta'+'sk\x20\x22'+_0x1731a9[_0x33cbb0(0x18c)]+'\x22',{'error':_0x15fe91});}}}async['valid'+'ateTa'+a0_0x36b231(0x1da)+a0_0x36b231(0x20e)](_0x10f2b3){const _0x7db728=a0_0x36b231,_0x1b0b6f={'RIqwT':function(_0x11ae67,_0x5ed82d){return _0x11ae67-_0x5ed82d;}},_0x1d4326=this['valid'+_0x7db728(0x1b4)+_0x7db728(0x307)][_0x7db728(0x334)][_0x7db728(0x363)](_0x10f2b3);if(_0x1d4326&&_0x1b0b6f[_0x7db728(0x1c0)](Date[_0x7db728(0x338)](),_0x1d4326[_0x7db728(0x2fd)+'atedA'+'t'])<this[_0x7db728(0x367)+'_TTL'])return this[_0x7db728(0x1c3)+'r'][_0x7db728(0x2f0)]('Using'+'\x20cach'+_0x7db728(0x290)+'sk\x20va'+_0x7db728(0x212)+_0x7db728(0x30c),{'taskId':_0x10f2b3}),_0x1d4326[_0x7db728(0x2dc)];const _0x4d8f96=await this[_0x7db728(0x162)+'sk'](_0x10f2b3);return this['valid'+_0x7db728(0x1b4)+_0x7db728(0x307)][_0x7db728(0x334)][_0x7db728(0x278)](_0x10f2b3,{'validatedAt':Date[_0x7db728(0x338)](),'task':_0x4d8f96}),_0x4d8f96;}async[a0_0x36b231(0x2fd)+a0_0x36b231(0x1ae)+a0_0x36b231(0x319)+'ist'](_0x549b95){const _0x348c79=a0_0x36b231,_0x468cf5={'qaYGb':function(_0x2cb8de,_0x25fb9f){return _0x2cb8de<_0x25fb9f;}},_0x164b56=new Map(),_0x4d6e23=[];for(const _0x3482be of _0x549b95){const _0x3b1ad2=this[_0x348c79(0x2fd)+_0x348c79(0x1b4)+_0x348c79(0x307)][_0x348c79(0x334)]['get'](_0x3482be);_0x3b1ad2&&Date['now']()-_0x3b1ad2['valid'+_0x348c79(0x2ac)+'t']<this[_0x348c79(0x367)+'_TTL']?_0x164b56['set'](_0x3482be,_0x3b1ad2[_0x348c79(0x2dc)]):_0x4d6e23[_0x348c79(0x394)](_0x3482be);}if(_0x4d6e23['lengt'+'h']>0x0){const _0x323778=0x5;for(let _0x3a8a0d=0x0;_0x468cf5[_0x348c79(0x1a7)](_0x3a8a0d,_0x4d6e23['lengt'+'h']);_0x3a8a0d+=_0x323778){const _0x216a90=_0x4d6e23[_0x348c79(0x28a)](_0x3a8a0d,_0x3a8a0d+_0x323778),_0x34fec4=await Promise['all'](_0x216a90[_0x348c79(0x32f)](_0x7bf602=>this['getTa'+'sk'](_0x7bf602)));_0x34fec4[_0x348c79(0x247)+'ch']((_0x3d4f8d,_0x1223a0)=>{const _0x4fb0d3=_0x348c79,_0x4e96c8=_0x216a90[_0x1223a0];this[_0x4fb0d3(0x2fd)+'ation'+_0x4fb0d3(0x307)][_0x4fb0d3(0x334)][_0x4fb0d3(0x278)](_0x4e96c8,{'validatedAt':Date['now'](),'task':_0x3d4f8d}),_0x164b56[_0x4fb0d3(0x278)](_0x4e96c8,_0x3d4f8d);});}}return _0x164b56;}async[a0_0x36b231(0x2fd)+'ateLi'+a0_0x36b231(0x1f0)+a0_0x36b231(0x20e)](_0x58168c){const _0x414452=a0_0x36b231,_0x12f59b={'SnEPY':function(_0x17bf52,_0x1b9368){return _0x17bf52<_0x1b9368;},'MDFaX':function(_0x473b04,_0x2a3a8c){return _0x473b04-_0x2a3a8c;}},_0x5b4aca=this[_0x414452(0x2fd)+_0x414452(0x1b4)+_0x414452(0x307)][_0x414452(0x362)][_0x414452(0x363)](_0x58168c);if(_0x5b4aca&&_0x12f59b[_0x414452(0x36f)](_0x12f59b[_0x414452(0x1cb)](Date[_0x414452(0x338)](),_0x5b4aca['valid'+_0x414452(0x2ac)+'t']),this[_0x414452(0x367)+'_TTL'])){this[_0x414452(0x1c3)+'r']['debug'](_0x414452(0x297)+_0x414452(0x359)+_0x414452(0x1cc)+_0x414452(0x19a)+_0x414452(0x212)+_0x414452(0x30c),{'listId':_0x58168c});if(!_0x5b4aca[_0x414452(0x2fd)])throw new ClickUpServiceError('List\x20'+_0x58168c+(_0x414452(0x280)+_0x414452(0x305)+'exist'),ErrorCode['NOT_F'+_0x414452(0x24e)]);return;}try{const _0x4e48ff=await this[_0x414452(0x347)+'ervic'+'e'][_0x414452(0x224)+'st'](_0x58168c),_0x2c3d54=_0x4e48ff[_0x414452(0x386)+_0x414452(0x204)]?.[_0x414452(0x32f)](_0x437499=>_0x437499[_0x414452(0x386)+'s'])||[];this[_0x414452(0x2fd)+_0x414452(0x1b4)+_0x414452(0x307)][_0x414452(0x362)][_0x414452(0x278)](_0x58168c,{'validatedAt':Date[_0x414452(0x338)](),'valid':!![],'statuses':_0x2c3d54});}catch(_0x122082){this['valid'+_0x414452(0x1b4)+_0x414452(0x307)][_0x414452(0x362)][_0x414452(0x278)](_0x58168c,{'validatedAt':Date['now'](),'valid':![]});throw _0x122082;}}[a0_0x36b231(0x17a)+a0_0x36b231(0x31e)+a0_0x36b231(0x257)](_0x5e5422,_0x3ba9c4){const _0x29bda5=a0_0x36b231,_0x121ba0={'oGBYg':function(_0x6559d2,_0x31822e){return _0x6559d2<_0x31822e;}},_0x34addc=this[_0x29bda5(0x25f)+_0x29bda5(0x31f)+_0x29bda5(0x2fb)][_0x29bda5(0x363)](_0x5e5422);if(_0x34addc&&_0x121ba0['oGBYg'](Date[_0x29bda5(0x338)]()-_0x34addc['valid'+_0x29bda5(0x2ac)+'t'],this[_0x29bda5(0x367)+'_TTL'])){if(!_0x3ba9c4||_0x34addc[_0x29bda5(0x2d3)+'d']===_0x3ba9c4)return this['logge'+'r'][_0x29bda5(0x2f0)](_0x29bda5(0x297)+_0x29bda5(0x359)+'ed\x20ta'+_0x29bda5(0x2da)+_0x29bda5(0x206)+_0x29bda5(0x18c),{'taskName':_0x5e5422,'cachedId':_0x34addc['taskI'+'d']}),_0x34addc[_0x29bda5(0x2d1)+'d'];}return null;}[a0_0x36b231(0x2db)+'TaskN'+a0_0x36b231(0x2f2)+'Id'](_0x1af5f4,_0x396ed8,_0x4617b5){const _0x1c4c7f=a0_0x36b231;this[_0x1c4c7f(0x25f)+'oIdCa'+_0x1c4c7f(0x2fb)]['set'](_0x1af5f4,{'taskId':_0x396ed8,'validatedAt':Date[_0x1c4c7f(0x338)](),'listId':_0x4617b5}),this[_0x1c4c7f(0x1c3)+'r'][_0x1c4c7f(0x2f0)](_0x1c4c7f(0x307)+'d\x20tas'+_0x1c4c7f(0x2d5)+'e\x20to\x20'+'ID\x20ma'+_0x1c4c7f(0x2c7),{'taskName':_0x1af5f4,'taskId':_0x396ed8,'listId':_0x4617b5});}[a0_0x36b231(0x2db)+'Statu'+'s'](_0x515c57,_0x286230){const _0x48bc80=a0_0x36b231,_0x6c94d=this[_0x48bc80(0x2fd)+'ation'+_0x48bc80(0x307)]['lists'][_0x48bc80(0x363)](_0x515c57),_0x3f05cc=_0x6c94d?.[_0x48bc80(0x386)+'ses']||[];!_0x3f05cc[_0x48bc80(0x176)+'des'](_0x286230)&&this[_0x48bc80(0x2fd)+_0x48bc80(0x1b4)+_0x48bc80(0x307)][_0x48bc80(0x362)][_0x48bc80(0x278)](_0x515c57,{'validatedAt':Date[_0x48bc80(0x338)](),'valid':!![],'statuses':[..._0x3f05cc,_0x286230],..._0x6c94d});}}
|
|
1
|
+
const a0_0x320b6f=a0_0x5a84;(function(_0x43288d,_0x3c49a9){const _0x8c933=a0_0x5a84,_0x3e9d1e=_0x43288d();while(!![]){try{const _0xaf3a3f=parseInt(_0x8c933(0xbf))/0x1*(-parseInt(_0x8c933(0xe6))/0x2)+parseInt(_0x8c933(0x131))/0x3*(parseInt(_0x8c933(0x18b))/0x4)+-parseInt(_0x8c933(0x182))/0x5+-parseInt(_0x8c933(0xbe))/0x6+-parseInt(_0x8c933(0x1a8))/0x7+parseInt(_0x8c933(0xd8))/0x8+parseInt(_0x8c933(0xd0))/0x9*(parseInt(_0x8c933(0xf7))/0xa);if(_0xaf3a3f===_0x3c49a9)break;else _0x3e9d1e['push'](_0x3e9d1e['shift']());}catch(_0x406265){_0x3e9d1e['push'](_0x3e9d1e['shift']());}}}(a0_0x2c6d,0x899ed));import{BaseClickUpService,ErrorCode,ClickUpServiceError}from'../base.js';function a0_0x2c6d(){const _0x166969=['B0LKq2e','Cg9ZDa','y2HL','zxH0CMe','DgfZAY8','BMvL','ihrLEhq','x1ruta','t1vora','yxnRCZ0','zMLSDgu','Dhj1y3q','igzYB20','zvrLyw0','BgfUigW','DMfSDwu','D29YA3m','C2TcEum','DgLTzv8','DgfZAYa','B25Zzq','zgf0yq','zgvFBwe','DgL0Bgu','l2n1C3q','B25Zzsa','B29SCY8','C2TuExa','Chv0','Esb3Axq','zwXKvMe','ChjPB3i','C3rHDhu','DgvHBuK','l21LBwi','AcbHBgW','rMfPBgu','zuvYCM8','lIbby2m','CMvTB3y','C3vIDge','AY1HDhq','B3jPDhK','z2v0ige','DgfZA3m','Axn0ia','yMfZzvu','lY4Ul3q','yxnRvhK','zwn0zwq','mJKYnJu1mgH1qLHfua','C3vJy2u','CgfJzvm','BwfW','y2f0y2G','yw1Lvg8','uuL5vw8','yNjHy2S','B0XQA1K','mJq5nJy4BMTYq3re','z2v0','y3rezwu','zgH6D2i','BNrZlMO','Bv9MAwu','lMPZ','Dxn0B20','AxrOigm','zhvLx2q','ug90zw4','yxnRia','Axb0Aw8','vMfSDwu','C2v0','BIbZDge','C3vvrLi','AYbJywm','igf0Dge','AgvJA2W','yNrHC2S','yxrLzee','yxr1CW','B3iGDge','lcb0yxm','Axr5','BL9Kzxm','vMXdww8','vw5LEha','ndeYnZq4vgjAzeHW','DgLLCY4','yxr0ywm','C2SG','DMfSAwq','Aw1LigK','ChvZAa','ywrKvge','y2HLy2S','z2v0vge','uLHgvLm','z2v0tgK','ExbLCW','zMLUza','CfrHC2S','yxnRihC','Bv9PDgu','tM9Ulwq','y29Kzq','y2fJAgu','C2TuAw0','vgvHBsa','DgLHBca','yxrL','Bg9Nz2u','DhrHy2G','BgLZDhm','zxf1zxm','zxjYB3i','Axn0sxq','y3vZDg8','l2XPC3q','BwfRzvi','zunOzwm','DgHLBG','lI90yxm','DhvZ','Aw1PDcK','zM9YigW','B25L','Aw9U','B21FAxq','DxbSB2e','ihrVigW','AcbUyw0','vu5ltK8','BNrZ','C2TZ','BMfTzvq','Dw5Yzxm','AgfUz2u','y3rqCMK','CMTKB3C','Dwj0yxm','zxj2Awm','yxrPB24','q0fdseu','BgLZDeK','z2v0u3u','C3rfEgK','rgf0yq','rK9sqKK','C3rYAw4','B3bLCMe','BgLZDfm','zsaI','y3rPDMu','ig5VDca','yw1IAwC','z2v0qwW','DwL0EtO','tgLZDca','z2v0q2e','BgXIywm','C2TbDhq','vNPTzxe','AxrLBq','Dgf0Dxm','zgvSzxq','ihr5Cgu','ihjLC3a','zvjLCxu','x2LUx3m','zwrPDem','y2XPzw4','z2v0qNu','ugPNr1m','zgvFC3u','BM9YBwe','p3n1yNq','sxrLBq','BMvLCW','A3mGzM8','yxrLvge','ywnOBwu','ntGZmda4me9lCuLxBa','mJG5wNfvufnR','z2LMEq','zsb0yxm','DwuU','B3Dezxm','Ag1LBNq','yxrLtgK','z2v0ig0','Aw5MBW','l3rHC2S','Axn0ici','DgLTzxO','sKDtCLu','BgLZDa','sKvMCMm','CgvZ','l2f0Dge','mtHqwxv4sNC','uKDbrxa','y2TSAxm','EK1sCNC','AgvZigm','DMvK','Dg9mB3C','yxbWzw4','nJG3ntm2mg9PugfuCq','AM9cu20','C3rZ','C2vZ','DgDHt00','zvrHC2S','BgL6zvm','l3rLyw0','t3vjB3q','CIb0yxm','zuLK','l3rPBwu','qxr0ywm','vLjMzeG','ndaZnhnvu3jjAq','y2XLyxi','zxn0Aw0','q2fJAgu','zxjHDgK','C2TfEgK','AZOGDhi','AgfUzgW','x2rHDgu','vhrquwy','Axn0','uxfLDM0','DxjS','qvbj','Dhj1zsy','C3rHCNq','yxnRswq','odG5mtuZme54qK9WzW','AwX0zxi','A190Exa','yxrLigm','igXPC3q','rNjVBvu','yxnZAwC','u3rHDhu','BwvZC2e','A2XPC3q','yNvPBgq','BhvL','rNjVBuW','C2TZrxG','y2HTzw4','igL0zw0','rLfqBe0','z2v0ihq','BMfTzq','C2TuB0W','B2X2zwq','zhvWBgK','Dhj1zq','ihrHC2S','vgfZA0y','ig1VDMu','ieLeia','lI4Vy3u','Bw92zsa','BfrHC2S','C3rVBvq','BM93','Aw5JBhu','z2v0ihm','y3jLyxq','Dg9Y','yxnR','zcb0BYa','DhLWzxm','Bv90yxm','tMjsvM4','BgTuyxm','CYb3Axq','y2f0zvq','uMTov08','DgfZA1q','DwXRihq','zsbZDwi','BgvUz3q','ugfYyw0','ywXS','CZ10CNu','zgvZ','ie11Bhq','BMqGAw4','rerftG','x2LK','suqGDxa','nLj2D0HHDq','zxb0igm','AxnbCNi','ChDZCLq','yMTYDw4','Axn0igK','zxjdyxm','zxrZ','D1z5ufG','DxbKyxq','z2v0q3u','rcbHBMq','z1frC1y','BgrZ','zMLLBgq','CMvZB2W','y3jPChq','DhmUANm','zxn0','igzHAwW','z2v0igi','DcaI','ignOzwm','DgfZA0K','CuT1qwm','y3ruyxm','Bwf0y2G','lI4VlI4','zwqGkfa','Bv9Pza','ExDTsLe'];a0_0x2c6d=function(){return _0x166969;};return a0_0x2c6d();}import{ListService}from'../list.js';function a0_0x5a84(_0x62da37,_0x3eef1){_0x62da37=_0x62da37-0x9d;const _0x2c6de8=a0_0x2c6d();let _0x5a8462=_0x2c6de8[_0x62da37];if(a0_0x5a84['GenhAe']===undefined){var _0x5751c8=function(_0x22ba6d){const _0x186f93='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc8ec6b='',_0x54ad52='';for(let _0x26b683=0x0,_0x40d9cb,_0x370dbc,_0x476508=0x0;_0x370dbc=_0x22ba6d['charAt'](_0x476508++);~_0x370dbc&&(_0x40d9cb=_0x26b683%0x4?_0x40d9cb*0x40+_0x370dbc:_0x370dbc,_0x26b683++%0x4)?_0xc8ec6b+=String['fromCharCode'](0xff&_0x40d9cb>>(-0x2*_0x26b683&0x6)):0x0){_0x370dbc=_0x186f93['indexOf'](_0x370dbc);}for(let _0x4365bf=0x0,_0x1dcbb0=_0xc8ec6b['length'];_0x4365bf<_0x1dcbb0;_0x4365bf++){_0x54ad52+='%'+('00'+_0xc8ec6b['charCodeAt'](_0x4365bf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54ad52);};a0_0x5a84['sOzmxy']=_0x5751c8,a0_0x5a84['VgoOhX']={},a0_0x5a84['GenhAe']=!![];}const _0x36a404=_0x2c6de8[0x0],_0x230847=_0x62da37+_0x36a404,_0x5c1025=a0_0x5a84['VgoOhX'][_0x230847];return!_0x5c1025?(_0x5a8462=a0_0x5a84['sOzmxy'](_0x5a8462),a0_0x5a84['VgoOhX'][_0x230847]=_0x5a8462):_0x5a8462=_0x5c1025,_0x5a8462;}import{findBestMatchInArray}from'../../../utils/resolver-utils.js';import a0_0x30d50a from'qs';export class TaskServiceCore extends BaseClickUpService{constructor(_0xdd6ff1,_0x4e69b5,_0x43e187,_0x1211c3,_0x1ed93c,_0x245fd1){const _0x3b92a6=a0_0x5a84,_0x3102df={'opOXR':function(_0x2fe46c,_0x2dae0c){return _0x2fe46c*_0x2dae0c;}};super(_0xdd6ff1,_0x4e69b5,_0x43e187,_0x245fd1),this[_0x3b92a6(0x160)+_0x3b92a6(0x184)+'ervic'+'e']=null,this[_0x3b92a6(0x1ac)+'ation'+_0x3b92a6(0xe9)]={'tasks':new Map(),'lists':new Map(),'taskTypes':new Map()},this['nameT'+_0x3b92a6(0x150)+_0x3b92a6(0x152)]=new Map(),this[_0x3b92a6(0x1e0)+_0x3b92a6(0x157)]=_0x3102df['opOXR'](0x5,0x3c)*0x3e8,_0x1211c3&&(this['works'+'paceS'+'ervic'+'e']=_0x1211c3),this[_0x3b92a6(0x9f)+_0x3b92a6(0x1de)+'e']=_0x1ed93c||new ListService(_0xdd6ff1,_0x4e69b5,_0x43e187,this[_0x3b92a6(0x160)+_0x3b92a6(0x184)+_0x3b92a6(0x1de)+'e']);}[a0_0x320b6f(0x13a)+a0_0x320b6f(0x15d)+'Id'](_0x877923){const _0x272b08=a0_0x320b6f;super['updat'+_0x272b08(0x15d)+'Id'](_0x877923),this[_0x272b08(0x1ac)+_0x272b08(0x1df)+_0x272b08(0xe9)]['tasks'][_0x272b08(0xe7)](),this[_0x272b08(0x1ac)+_0x272b08(0x1df)+_0x272b08(0xe9)]['lists'][_0x272b08(0xe7)](),this[_0x272b08(0x1d8)+_0x272b08(0x150)+_0x272b08(0x152)]['clear'](),this[_0x272b08(0x1c0)+'r'][_0x272b08(0xc7)](_0x272b08(0x1bd)+_0x272b08(0x130)+'dated'+_0x272b08(0x1a3)+_0x272b08(0x19c)+_0x272b08(0xd4)+'leare'+'d',{'teamId':_0x877923});}[a0_0x320b6f(0x101)+a0_0x320b6f(0x10f)+'ilter'+a0_0x320b6f(0x128)+'s'](_0x3d593d){const _0x23a4be=a0_0x320b6f,_0x1724c9={'dhzwb':function(_0x182ff5,_0x470812){return _0x182ff5!==_0x470812;},'wVyPX':'RANGE','rNXFZ':function(_0x26554e,_0x2dbffb){return _0x26554e===_0x2dbffb;}},_0x32f405={};for(const [_0x2a8fb4,_0x21da26]of Object['entri'+'es'](_0x3d593d)){_0x1724c9[_0x23a4be(0x18e)](_0x21da26,undefined)&&_0x1724c9[_0x23a4be(0x18e)](_0x21da26,null)&&(_0x32f405[_0x2a8fb4]=_0x21da26);}_0x32f405[_0x23a4be(0x117)+_0x23a4be(0x166)+_0x23a4be(0x1dc)+_0x23a4be(0x1a5)+_0x23a4be(0x141)+_0x23a4be(0x1d0)]&&(_0x32f405['inclu'+_0x23a4be(0x166)+_0x23a4be(0x1dc)+_0x23a4be(0x1a5)+_0x23a4be(0x141)+_0x23a4be(0x1d0)]=_0x23a4be(0x10d));const _0x15a85e=_0x32f405[_0x23a4be(0x1c6)+'m_fie'+_0x23a4be(0x13e)];delete _0x32f405[_0x23a4be(0x1c6)+_0x23a4be(0x190)+_0x23a4be(0x13e)];const _0x11771c=a0_0x30d50a[_0x23a4be(0x9d)+_0x23a4be(0xc0)](_0x32f405,{'arrayFormat':_0x23a4be(0x189)+_0x23a4be(0x138),'skipNulls':!![]}),_0x5dd500=new URLSearchParams(_0x11771c);if(Array[_0x23a4be(0x133)+'ay'](_0x15a85e)&&_0x15a85e[_0x23a4be(0x127)+'h']>0x0){const _0x22cdc8=[];for(const _0x2c2248 of _0x15a85e){_0x2c2248[_0x23a4be(0x9e)+_0x23a4be(0x11a)]===_0x1724c9[_0x23a4be(0x139)]&&Array[_0x23a4be(0x133)+'ay'](_0x2c2248['value'])&&_0x1724c9['rNXFZ'](_0x2c2248[_0x23a4be(0x15f)][_0x23a4be(0x127)+'h'],0x2)?(_0x22cdc8[_0x23a4be(0x1ae)]({'field_id':_0x2c2248['field'+_0x23a4be(0x12f)],'operator':'>=','value':_0x2c2248[_0x23a4be(0x15f)][0x0]}),_0x22cdc8['push']({'field_id':_0x2c2248[_0x23a4be(0x13f)+_0x23a4be(0x12f)],'operator':'<=','value':_0x2c2248[_0x23a4be(0x15f)][0x1]})):_0x22cdc8[_0x23a4be(0x1ae)](_0x2c2248);}_0x5dd500[_0x23a4be(0xd7)+'d'](_0x23a4be(0x1c6)+_0x23a4be(0x190)+_0x23a4be(0x13e),JSON[_0x23a4be(0x9d)+_0x23a4be(0xc0)](_0x22cdc8));}return _0x5dd500;}async['extra'+a0_0x320b6f(0x18d)+a0_0x320b6f(0x1b6)+a0_0x320b6f(0x1e4)](_0x313682){const _0x5e5711=a0_0x320b6f,_0x57ea09=await this['getTa'+'sk'](_0x313682),_0x34c325=this[_0x5e5711(0x153)+'ctTas'+'kData'](_0x57ea09),_0x39d571=await this[_0x5e5711(0x1e2)+_0x5e5711(0x19f)+'s'](_0x313682);_0x39d571[_0x5e5711(0x127)+'h']>0x0&&(_0x34c325[_0x5e5711(0x178)+_0x5e5711(0x1d7)]=await Promise[_0x5e5711(0x129)](_0x39d571['map'](_0x5e96fb=>this[_0x5e5711(0x153)+_0x5e5711(0x18d)+_0x5e5711(0x1b6)+_0x5e5711(0x1e4)](_0x5e96fb['id']))));_0x57ea09[_0x5e5711(0x1b0)+_0x5e5711(0x1c2)]?.[_0x5e5711(0x127)+'h']&&(_0x34c325['check'+'lists']=_0x57ea09[_0x5e5711(0x1b0)+_0x5e5711(0x1c2)][_0x5e5711(0x185)](_0x36b8db=>({'name':_0x36b8db['name'],'items':_0x36b8db['items'][_0x5e5711(0x185)](_0xf467fe=>({'name':_0xf467fe[_0x5e5711(0x109)],'resolved':_0xf467fe[_0x5e5711(0x140)+_0x5e5711(0xd5)],'assignee':_0xf467fe[_0x5e5711(0xfd)+_0x5e5711(0x155)]?.['id']}))})));const _0x2d6aa8=await this[_0x5e5711(0x1b1)+_0x5e5711(0xa9)+_0x5e5711(0xbd)+_0x5e5711(0x1d6)](_0x313682);return _0x2d6aa8['lengt'+'h']>0x0&&(_0x34c325[_0x5e5711(0x1aa)+_0x5e5711(0xc4)+'s']=_0x2d6aa8[_0x5e5711(0x185)](_0x50188d=>({'url':_0x50188d[_0x5e5711(0xf2)],'title':_0x50188d[_0x5e5711(0x167)]}))),_0x34c325;}async['getTa'+'skAtt'+a0_0x320b6f(0xbd)+a0_0x320b6f(0x1d6)](_0x5aa009){const _0xcc74f7=a0_0x320b6f;return this['makeR'+'eques'+'t'](async()=>{const _0x292b9a=a0_0x5a84,_0x2839b2=await this[_0x292b9a(0xb3)+'t'][_0x292b9a(0x18c)](_0x292b9a(0xc8)+'/'+_0x5aa009+(_0x292b9a(0xcf)+_0x292b9a(0x105)+'t')),_0x13e28c=_0x2839b2[_0x292b9a(0x165)];return _0x13e28c[_0x292b9a(0x1aa)+'hment'+'s']||[];})[_0xcc74f7(0x186)](_0x327a94=>{const _0x5917bc=_0xcc74f7;return this[_0x5917bc(0x1c0)+'r']['error'](_0x5917bc(0x174)+_0x5917bc(0x11c)+_0x5917bc(0x17b)+_0x5917bc(0x1c1)+'ments'+'\x20for\x20'+'task\x20'+_0x5aa009,_0x327a94),[];});}[a0_0x320b6f(0x153)+a0_0x320b6f(0x14a)+'kData'](_0x99f80b,_0xbe1d5a){const _0x59cf4e=a0_0x320b6f,_0x1e2ce6={'Qqevm':function(_0x4207f3,_0x57ac4a){return _0x4207f3(_0x57ac4a);},'pwsrT':function(_0x17c69e,_0x5bbc41){return _0x17c69e>_0x5bbc41;}},_0x15d334={'name':_0xbe1d5a||_0x99f80b[_0x59cf4e(0x109)],'description':_0x99f80b['descr'+_0x59cf4e(0x197)+'n']||'','status':_0x99f80b[_0x59cf4e(0x170)+'s']?.['statu'+'s'],'priority':this[_0x59cf4e(0x153)+'ctPri'+_0x59cf4e(0x17a)+_0x59cf4e(0x198)](_0x99f80b),'due_date':_0x99f80b['due_d'+_0x59cf4e(0x1bf)]?Number(_0x99f80b[_0x59cf4e(0x194)+_0x59cf4e(0x1bf)]):undefined,'assignees':_0x99f80b[_0x59cf4e(0xfd)+'nees']?.[_0x59cf4e(0x185)](_0x43d272=>_0x43d272['id'])||[],'tags':_0x99f80b['tags']?.[_0x59cf4e(0x185)](_0x171c4d=>_0x171c4d[_0x59cf4e(0x109)])||[],'time_estimate':_0x99f80b[_0x59cf4e(0x162)+_0x59cf4e(0xe8)+_0x59cf4e(0x1bf)]||undefined,'start_date':_0x99f80b[_0x59cf4e(0xf5)+_0x59cf4e(0xee)]?_0x1e2ce6[_0x59cf4e(0xf1)](Number,_0x99f80b[_0x59cf4e(0xf5)+_0x59cf4e(0xee)]):undefined};if(Array[_0x59cf4e(0x133)+'ay'](_0x99f80b[_0x59cf4e(0x1c6)+'m_fie'+_0x59cf4e(0x13e)])){const _0x4f3cae=_0x99f80b[_0x59cf4e(0x1c6)+'m_fie'+_0x59cf4e(0x13e)][_0x59cf4e(0x15a)+'r'](_0x179b7e=>_0x179b7e[_0x59cf4e(0x15f)]!==undefined&&_0x179b7e[_0x59cf4e(0x15f)]!==null)[_0x59cf4e(0x185)](_0x41932f=>({'id':_0x41932f['id'],'value':_0x41932f[_0x59cf4e(0x15f)]}));_0x1e2ce6[_0x59cf4e(0x134)](_0x4f3cae[_0x59cf4e(0x127)+'h'],0x0)&&(_0x15d334[_0x59cf4e(0x1c6)+'m_fie'+_0x59cf4e(0x13e)]=_0x4f3cae);}return _0x15d334;}['extra'+a0_0x320b6f(0x1db)+a0_0x320b6f(0x17a)+a0_0x320b6f(0x198)](_0x977250){const _0x10526e=a0_0x320b6f,_0x5b51e1={'RXFVS':function(_0x1eb84e,_0x1d81c1){return _0x1eb84e(_0x1d81c1);},'suUFR':function(_0x1f1efc,_0x27e05a){return _0x1f1efc(_0x27e05a);}};if(!_0x977250[_0x10526e(0x16f)+'ity']||!_0x977250['prior'+'ity']['id'])return null;const _0x4f3a9e=_0x5b51e1[_0x10526e(0x1b2)](parseInt,_0x977250[_0x10526e(0x16f)+_0x10526e(0x1a4)]['id']);return _0x5b51e1[_0x10526e(0x19b)](isNaN,_0x4f3a9e)||_0x4f3a9e<0x1||_0x4f3a9e>0x4?null:_0x4f3a9e;}async[a0_0x320b6f(0x13b)+a0_0x320b6f(0x115)+a0_0x320b6f(0x180)+a0_0x320b6f(0xce)](_0x22f461=this['teamI'+'d']){const _0x13d2b7=a0_0x320b6f,_0x55775b={'ywmJQ':_0x13d2b7(0x174)+_0x13d2b7(0x11c)+'get\x20c'+_0x13d2b7(0x192)+_0x13d2b7(0x10e)+_0x13d2b7(0xae)+'s','NbRVn':function(_0x51c9fb,_0x3d7cc0){return _0x51c9fb<_0x3d7cc0;}},_0x2094be=this[_0x13d2b7(0x1ac)+_0x13d2b7(0x1df)+_0x13d2b7(0xe9)][_0x13d2b7(0x124)+_0x13d2b7(0x1b4)][_0x13d2b7(0x18c)](_0x22f461);if(_0x2094be&&_0x55775b[_0x13d2b7(0x11f)](Date[_0x13d2b7(0x116)]()-_0x2094be['valid'+_0x13d2b7(0x1a0)+'t'],this['CACHE'+'_TTL']))return _0x2094be[_0x13d2b7(0x11d)];return this['makeR'+_0x13d2b7(0x1c3)+'t'](async()=>{const _0x52a55a=_0x13d2b7,_0x4f474c=await this[_0x52a55a(0xb3)+'t'][_0x52a55a(0x18c)](_0x52a55a(0xdf)+'/'+_0x22f461+(_0x52a55a(0x168)+_0x52a55a(0x1d1)+'em')),_0x4491e6=_0x4f474c[_0x52a55a(0x165)][_0x52a55a(0x1c6)+_0x52a55a(0x1b8)+'ms']||[];return this[_0x52a55a(0x1ac)+_0x52a55a(0x1df)+'Cache'][_0x52a55a(0x124)+'ypes'][_0x52a55a(0x199)](_0x22f461,{'types':_0x4491e6,'validatedAt':Date['now']()}),_0x4491e6;})[_0x13d2b7(0x186)](_0xff1bac=>{const _0x4a6c1d=_0x13d2b7;throw this[_0x4a6c1d(0xed)+_0x4a6c1d(0x175)+'r'](_0xff1bac,_0x55775b[_0x4a6c1d(0x14f)]);});}async['getTa'+a0_0x320b6f(0x16b)+a0_0x320b6f(0xe2)](_0x56d71b){const _0x4c30ca=a0_0x320b6f,_0x37b3fa=await this[_0x4c30ca(0x13b)+_0x4c30ca(0x115)+'askTy'+'pes'](),_0x581f2c=_0x37b3fa[_0x4c30ca(0x1b5)](_0x3cff4e=>_0x3cff4e['name']['toLow'+_0x4c30ca(0x137)+'e']()===_0x56d71b[_0x4c30ca(0xd6)+_0x4c30ca(0x137)+'e']());if(_0x581f2c)return _0x581f2c['id'];const _0x5becc8=findBestMatchInArray(_0x37b3fa,_0x56d71b);return _0x5becc8?_0x5becc8['item']['id']:null;}async['creat'+'eTask'](_0xe26f71,_0x14c8d5){const _0x40d855=a0_0x320b6f,_0x2f291f={'Vzmeq':function(_0x42c303,_0xae4c3){return _0x42c303!==_0xae4c3;},'tgaOM':function(_0x508a29,_0x17ab8d){return _0x508a29 instanceof _0x17ab8d;},'RkNWO':_0x40d855(0x174)+'d\x20to\x20'+_0x40d855(0x119)+_0x40d855(0xc1)+'k'};this['logOp'+_0x40d855(0xea)+'on'](_0x40d855(0x119)+_0x40d855(0xdd),{'listId':_0xe26f71,..._0x14c8d5});const {subtasks:_0x3f8938,checklists:_0x5b39e4,attachments:_0x13f061,..._0x272db5}=_0x14c8d5;if(_0x272db5['custo'+'m_tas'+_0x40d855(0xf9)+'e']&&!_0x272db5[_0x40d855(0x1c6)+'m_ite'+_0x40d855(0x14e)]){const _0x250f48=await this['getTa'+'skTyp'+_0x40d855(0xe2)](_0x272db5[_0x40d855(0x1c6)+_0x40d855(0x11e)+_0x40d855(0xf9)+'e']);if(_0x2f291f[_0x40d855(0xaa)](_0x250f48,null))_0x272db5[_0x40d855(0x1c6)+_0x40d855(0x1b8)+_0x40d855(0x14e)]=_0x250f48;}if(_0x272db5['statu'+'s']){await this['valid'+'ateLi'+'stExi'+_0x40d855(0xda)](_0xe26f71)[_0x40d855(0x186)](()=>{});const _0x3240de=this[_0x40d855(0x1ac)+_0x40d855(0x1df)+'Cache']['lists']['get'](_0xe26f71);_0x272db5['statu'+'s']=this[_0x40d855(0xb7)+'lizeS'+_0x40d855(0xac)](_0x272db5[_0x40d855(0x170)+'s'],_0x3240de?.[_0x40d855(0x170)+_0x40d855(0xdb)]);}try{const _0x4c003f=await this[_0x40d855(0x1c8)+'eques'+'t'](async()=>{const _0x2b1dbb=_0x40d855,{custom_task_type:_0x3e1b9a,..._0x214487}=_0x272db5,_0x22e043=await this[_0x2b1dbb(0xb3)+'t'][_0x2b1dbb(0x151)](_0x2b1dbb(0x1c7)+'/'+_0xe26f71+_0x2b1dbb(0xc8),_0x214487),_0x4c8014=_0x22e043[_0x2b1dbb(0x165)];if(typeof _0x4c8014===_0x2b1dbb(0x9d)+'g'){const _0x889f36=_0x4c8014[_0x2b1dbb(0x14b)](/task.*?(\w{9,10})/i);if(_0x889f36)return await this[_0x2b1dbb(0x1b1)+'sk'](_0x889f36[0x1]);throw new ClickUpServiceError('Unexp'+_0x2b1dbb(0x181)+_0x2b1dbb(0x156)+_0x2b1dbb(0xaf)+_0x2b1dbb(0x169)+'from\x20'+_0x2b1dbb(0xf3),ErrorCode[_0x2b1dbb(0x1d5)+'WN'],_0x4c8014);}if(_0x4c8014?.[_0x2b1dbb(0x170)+'s']&&_0x4c8014[_0x2b1dbb(0xcc)]?.['id'])this[_0x2b1dbb(0x1bb)+_0x2b1dbb(0xfe)+'s'](_0x4c8014[_0x2b1dbb(0xcc)]['id'],_0x4c8014[_0x2b1dbb(0x170)+'s']['statu'+'s']);return _0x4c8014;});if(_0x5b39e4?.[_0x40d855(0x127)+'h']){const {TaskChecklistsService:_0x5d2555}=await import(_0x40d855(0x1cb)+'k-che'+_0x40d855(0xd2)+_0x40d855(0x142)),_0x326b1a=new _0x5d2555(this);for(const _0x43e0ff of _0x5b39e4){try{const _0x557435=await _0x326b1a[_0x40d855(0x119)+'eChec'+_0x40d855(0x100)](_0x4c003f['id'],_0x43e0ff[_0x40d855(0x109)]);if(_0x557435[_0x40d855(0x183)+'ss']&&_0x557435[_0x40d855(0x165)]){const _0xc88366=_0x557435['data']['id'];for(const _0x43fdee of _0x43e0ff['items']){try{const _0x5759ec=await _0x326b1a[_0x40d855(0x119)+_0x40d855(0x1c9)+_0x40d855(0x100)+_0x40d855(0xb9)](_0xc88366,_0x43fdee['name'],_0x43fdee[_0x40d855(0xfd)+_0x40d855(0x155)]);if(_0x5759ec[_0x40d855(0x183)+'ss']&&_0x5759ec['data']&&_0x43fdee[_0x40d855(0x140)+_0x40d855(0xd5)]){const _0x2afd49=_0x5759ec[_0x40d855(0x165)]['items'][_0x40d855(0x15a)+'r'](_0x686072=>_0x686072[_0x40d855(0x109)]===_0x43fdee[_0x40d855(0x109)]&&!_0x686072[_0x40d855(0x140)+_0x40d855(0xd5)]);_0x2afd49['lengt'+'h']>0x1&&this[_0x40d855(0x1c0)+'r']['warn'](_0x40d855(0x195)+_0x40d855(0x1be)+_0x40d855(0xa3)+_0x40d855(0xa5)+_0x40d855(0x12c)+'iple\x20'+_0x40d855(0x1d9)+_0x40d855(0x10b)+'\x20chec'+'klist'+_0x40d855(0x106)+_0x40d855(0x121)+_0x40d855(0x1d4)+_0x40d855(0xa0)+_0x43fdee[_0x40d855(0x109)]+('\x22\x20fou'+_0x40d855(0x12d)+_0x40d855(0x147)+'klist'+'\x20\x22')+_0x43e0ff[_0x40d855(0x109)]+'\x22.',{'checklistId':_0xc88366,'itemName':_0x43fdee[_0x40d855(0x109)],'matchCount':_0x2afd49[_0x40d855(0x127)+'h']});const _0xc5f212=_0x2afd49[0x0];_0xc5f212&&await _0x326b1a[_0x40d855(0xb2)+_0x40d855(0x19e)+_0x40d855(0x1c5)+'em'](_0xc88366,_0xc5f212['id'],{'resolved':!![]});}}catch(_0x93e3e){this[_0x40d855(0x1c0)+'r'][_0x40d855(0x1c4)]('Faile'+'d\x20to\x20'+'recre'+'ate\x20c'+_0x40d855(0x19e)+_0x40d855(0x136)+'tem\x20\x22'+_0x43fdee[_0x40d855(0x109)]+('\x22\x20for'+_0x40d855(0x147)+_0x40d855(0x100)+'\x20\x22')+_0x43e0ff[_0x40d855(0x109)]+'\x22',{'error':_0x2f291f[_0x40d855(0xdc)](_0x93e3e,Error)?_0x93e3e['messa'+'ge']:String(_0x93e3e),'checklistId':_0xc88366});}}}}catch(_0x390d17){this[_0x40d855(0x1c0)+'r'][_0x40d855(0x1c4)](_0x40d855(0x174)+_0x40d855(0x11c)+'recre'+_0x40d855(0xfa)+'heckl'+_0x40d855(0xc9)+_0x43e0ff[_0x40d855(0x109)]+'\x22',{'error':_0x390d17 instanceof Error?_0x390d17[_0x40d855(0xff)+'ge']:String(_0x390d17),'taskId':_0x4c003f['id']});}}}if(_0x13f061?.[_0x40d855(0x127)+'h']){const {TaskServiceAttachments:_0xfa14c6}=await import(_0x40d855(0x1cb)+_0x40d855(0x179)+'achme'+_0x40d855(0x18f)+'s'),_0x231e86=new _0xfa14c6(this);for(const _0x5dc930 of _0x13f061){try{await _0x231e86[_0x40d855(0x1d2)+'dTask'+_0x40d855(0xe4)+_0x40d855(0xc4)+_0x40d855(0xfc)+'rl'](_0x4c003f['id'],_0x5dc930['url'],_0x5dc930[_0x40d855(0x167)]);}catch(_0x295d32){this[_0x40d855(0x1c0)+'r'][_0x40d855(0x1c4)]('Faile'+_0x40d855(0x11c)+'proxy'+_0x40d855(0x19d)+'chmen'+_0x40d855(0x146)+_0x5dc930[_0x40d855(0x167)]+'\x22',_0x295d32);}}}if(_0x3f8938?.[_0x40d855(0x127)+'h']){_0x4c003f[_0x40d855(0x178)+_0x40d855(0x1d7)]=[];for(const _0x1a495d of _0x3f8938){try{const _0x5a00b=await this[_0x40d855(0x119)+_0x40d855(0xdd)](_0xe26f71,{..._0x1a495d,'parent':_0x4c003f['id']});_0x4c003f[_0x40d855(0x178)+_0x40d855(0x1d7)]['push'](_0x5a00b);}catch(_0x8e6dcc){this[_0x40d855(0x1c0)+'r']['error'](_0x40d855(0x174)+_0x40d855(0x11c)+'creat'+_0x40d855(0x126)+_0x40d855(0x163)+'\x22'+_0x1a495d[_0x40d855(0x109)]+'\x22',_0x8e6dcc);}}}return _0x4c003f;}catch(_0x5ae4fd){throw this['handl'+_0x40d855(0x175)+'r'](_0x5ae4fd,_0x2f291f[_0x40d855(0x123)]);}}async['getTa'+'sk'](_0x3a875b,_0x36b08b=![]){const _0x5454aa=a0_0x320b6f,_0x1d6cf5={'RGAEp':function(_0x178d80,_0x397bae){return _0x178d80===_0x397bae;},'joBSm':_0x5454aa(0x1a7)+_0x5454aa(0x181)+_0x5454aa(0x156)+_0x5454aa(0xaf)+_0x5454aa(0x164),'LvEDz':function(_0x2409f8,_0x29f142){return _0x2409f8(_0x29f142);}},{isCustomTaskId:_0x4ec89b}=await import(_0x5454aa(0x14c)+_0x5454aa(0x17f)+_0x5454aa(0x16a)+_0x5454aa(0x154)+'utili'+_0x5454aa(0x1a9)+'js');if(_0x1d6cf5['LvEDz'](_0x4ec89b,_0x3a875b))return this['getTa'+_0x5454aa(0x161)+'ustom'+'Id'](_0x3a875b,undefined,_0x36b08b);try{return await this['makeR'+'eques'+'t'](async()=>{const _0x16ffd8=_0x5454aa,_0x5f2cdf=await this[_0x16ffd8(0xb3)+'t'][_0x16ffd8(0x18c)](_0x16ffd8(0xc8)+'/'+_0x3a875b,{'params':_0x36b08b?{'include_markdown_description':_0x16ffd8(0x10d)}:{}}),_0x7f5873=_0x5f2cdf['data'];if(_0x1d6cf5[_0x16ffd8(0xd1)](typeof _0x7f5873,_0x16ffd8(0x9d)+'g'))throw new ClickUpServiceError(_0x1d6cf5[_0x16ffd8(0xd9)],ErrorCode[_0x16ffd8(0x1d5)+'WN'],_0x7f5873);if(_0x7f5873?.[_0x16ffd8(0x170)+'s']&&_0x7f5873[_0x16ffd8(0xcc)]?.['id'])this[_0x16ffd8(0x1bb)+_0x16ffd8(0xfe)+'s'](_0x7f5873['list']['id'],_0x7f5873[_0x16ffd8(0x170)+'s'][_0x16ffd8(0x170)+'s']);return _0x7f5873;});}catch(_0x298176){throw this[_0x5454aa(0xed)+'eErro'+'r'](_0x298176,'Faile'+'d\x20to\x20'+_0x5454aa(0x108)+_0x5454aa(0x196)+_0x3a875b);}}async[a0_0x320b6f(0x1b1)+a0_0x320b6f(0x1d7)](_0x44cbef,_0x19593f={},_0x3f7624){const _0x45a77d=a0_0x320b6f,_0x3d5262={'VRfdH':function(_0x3817aa,_0x8cc4f0){return _0x3817aa===_0x8cc4f0;},'QIyUo':function(_0x48b76f,_0xe916cb){return _0x48b76f!==_0xe916cb;}};try{if(_0x19593f[_0x45a77d(0x170)+_0x45a77d(0xdb)]?.['lengt'+'h']){const _0x498eef=this[_0x45a77d(0x1ac)+_0x45a77d(0x1df)+_0x45a77d(0xe9)][_0x45a77d(0x1c2)][_0x45a77d(0x18c)](_0x44cbef);_0x19593f['statu'+_0x45a77d(0xdb)]=_0x19593f[_0x45a77d(0x170)+_0x45a77d(0xdb)][_0x45a77d(0x185)](_0x371448=>this['norma'+_0x45a77d(0xde)+_0x45a77d(0xac)](_0x371448,_0x498eef?.[_0x45a77d(0x170)+'ses']));}if(_0x19593f[_0x45a77d(0x1c6)+_0x45a77d(0x11e)+_0x45a77d(0xf9)+'es']?.[_0x45a77d(0x127)+'h']){const _0x27b656=_0x19593f[_0x45a77d(0x1c6)+_0x45a77d(0x1b8)+'ms']||[];for(const _0x90bce5 of _0x19593f[_0x45a77d(0x1c6)+_0x45a77d(0x11e)+_0x45a77d(0xf9)+'es']){const _0x17ca97=await this[_0x45a77d(0x1b1)+_0x45a77d(0x16b)+_0x45a77d(0xe2)](_0x90bce5);if(_0x3d5262[_0x45a77d(0x188)](_0x17ca97,null))_0x27b656[_0x45a77d(0x1ae)](_0x17ca97);}_0x19593f[_0x45a77d(0x1c6)+_0x45a77d(0x1b8)+'ms']=_0x27b656;}return await this[_0x45a77d(0x1c8)+_0x45a77d(0x1c3)+'t'](async()=>{const _0xddca97=_0x45a77d,_0x5b5d9f=this[_0xddca97(0x101)+_0xddca97(0x10f)+_0xddca97(0xf8)+_0xddca97(0x128)+'s'](_0x19593f),_0x471043=_0x3f7624||this[_0xddca97(0x171)+'d'],_0x533e0b=await this[_0xddca97(0xb3)+'t'][_0xddca97(0x18c)](_0xddca97(0x1c7)+'/'+_0x44cbef+_0xddca97(0xc8),{'params':_0x5b5d9f}),_0x10e871=_0x533e0b[_0xddca97(0x165)];if(_0x3d5262[_0xddca97(0xe5)](typeof _0x10e871,_0xddca97(0x9d)+'g'))throw new ClickUpServiceError(_0xddca97(0x1a7)+'ected'+_0xddca97(0x156)+_0xddca97(0xaf)+_0xddca97(0x164),ErrorCode['UNKNO'+'WN'],_0x10e871);if(_0x10e871?.[_0xddca97(0x170)+'ses']){const _0x2b4b0d=this[_0xddca97(0x1ac)+_0xddca97(0x1df)+_0xddca97(0xe9)][_0xddca97(0x1c2)]['get'](_0x44cbef);this[_0xddca97(0x1ac)+_0xddca97(0x1df)+_0xddca97(0xe9)][_0xddca97(0x1c2)][_0xddca97(0x199)](_0x44cbef,{'validatedAt':Date['now'](),'valid':!![],'statuses':_0x10e871[_0xddca97(0x170)+_0xddca97(0xdb)],..._0x2b4b0d});}return Array[_0xddca97(0x133)+'ay'](_0x10e871)?_0x10e871:_0x10e871[_0xddca97(0x17c)]||[];});}catch(_0x380ea6){throw this[_0x45a77d(0xed)+_0x45a77d(0x175)+'r'](_0x380ea6,_0x45a77d(0x174)+_0x45a77d(0x11c)+_0x45a77d(0x108)+'asks\x20'+_0x45a77d(0x1ce)+_0x45a77d(0x17d)+_0x44cbef);}}async[a0_0x320b6f(0xa4)+a0_0x320b6f(0x114)+'s'](_0x19410d,_0x5c93b5={}){const _0x5811aa=a0_0x320b6f,_0x2596a6={'oLjkY':function(_0x3d5b48,_0x4a8b36){return _0x3d5b48===_0x4a8b36;}},_0x2f899b=[];for(let _0x78a1dc=0x0;_0x78a1dc<0x64;_0x78a1dc++){const _0x43ef6e=await this['getTa'+_0x5811aa(0x1d7)](_0x19410d,{..._0x5c93b5,'page':_0x78a1dc});if(_0x2596a6[_0x5811aa(0x18a)](_0x43ef6e[_0x5811aa(0x127)+'h'],0x0))break;_0x2f899b[_0x5811aa(0x1ae)](..._0x43ef6e);if(_0x43ef6e['lengt'+'h']<0x64)break;}return _0x2f899b;}async[a0_0x320b6f(0x1e2)+'btask'+'s'](_0x453a9d){const _0x5a1cc0=a0_0x320b6f;return this[_0x5a1cc0(0x1c8)+'eques'+'t'](async()=>{const _0x54feac=_0x5a1cc0,_0x46689=await this[_0x54feac(0xb3)+'t']['get'](_0x54feac(0xc8)+'/'+_0x453a9d+(_0x54feac(0xb8)+_0x54feac(0x159)+_0x54feac(0xf4)+_0x54feac(0x117)+_0x54feac(0xb6)+'btask'+_0x54feac(0x12a)+'e')),_0x28812c=_0x46689[_0x54feac(0x165)];return _0x28812c[_0x54feac(0x178)+_0x54feac(0x1d7)]||[];})[_0x5a1cc0(0x186)](_0x2637a6=>{const _0x2d58c2=_0x5a1cc0;throw this[_0x2d58c2(0xed)+'eErro'+'r'](_0x2637a6,_0x2d58c2(0x174)+_0x2d58c2(0x11c)+_0x2d58c2(0x118)+_0x2d58c2(0x1dd)+_0x2d58c2(0xbb)+_0x2d58c2(0xe1)+'k\x20'+_0x453a9d);});}async[a0_0x320b6f(0x1b1)+a0_0x320b6f(0x161)+a0_0x320b6f(0x192)+'Id'](_0x240058,_0x6a0399,_0x5acb5c=![]){const _0x57662b=a0_0x320b6f,_0xb20348={'bkrun':_0x57662b(0x117)+_0x57662b(0x166)+_0x57662b(0x1dc)+'n_des'+_0x57662b(0x141)+_0x57662b(0x1d0),'OuIot':function(_0x2a50af,_0x385ee7){return _0x2a50af===_0x385ee7;}};try{return await this[_0x57662b(0x1c8)+_0x57662b(0x1c3)+'t'](async()=>{const _0x560062=_0x57662b,_0x1586cb=new URLSearchParams({'custom_task_ids':_0x560062(0x10d),'team_id':this[_0x560062(0x171)+'d']});if(_0x5acb5c)_0x1586cb[_0x560062(0xd7)+'d'](_0xb20348[_0x560062(0x135)],'true');const _0x2eb64f=await this['clien'+'t'][_0x560062(0x18c)]('/task'+'/'+encodeURIComponent(_0x240058),{'params':_0x1586cb});if(_0xb20348[_0x560062(0xe0)](typeof _0x2eb64f[_0x560062(0x165)],_0x560062(0x9d)+'g'))throw new ClickUpServiceError(_0x560062(0x1a7)+'ected'+_0x560062(0x156)+'\x20resp'+_0x560062(0x164),ErrorCode['UNKNO'+'WN'],_0x2eb64f['data']);return _0x2eb64f[_0x560062(0x165)];});}catch(_0x580f0b){throw this[_0x57662b(0xed)+_0x57662b(0x175)+'r'](_0x580f0b,_0x57662b(0x174)+_0x57662b(0x11c)+_0x57662b(0x108)+_0x57662b(0x1b7)+_0x57662b(0x193)+_0x57662b(0x192)+_0x57662b(0x111)+_0x240058);}}async['updat'+a0_0x320b6f(0xdd)](_0x3e9e48,_0x19f4ce){const _0x327f2a=a0_0x320b6f,_0x367020={'zMRrw':function(_0x40c955,_0x4628ab){return _0x40c955===_0x4628ab;},'rrwHQ':_0x327f2a(0x1a7)+'ected'+'\x20text'+_0x327f2a(0xaf)+'onse','OlYCg':_0x327f2a(0x112)+'stom-'+'field'+_0x327f2a(0x191)};if(_0x19f4ce['custo'+_0x327f2a(0x11e)+_0x327f2a(0xf9)+'e']&&!_0x19f4ce[_0x327f2a(0x1c6)+_0x327f2a(0x1b8)+_0x327f2a(0x14e)]){const _0x646a72=await this['getTa'+'skTyp'+_0x327f2a(0xe2)](_0x19f4ce[_0x327f2a(0x1c6)+_0x327f2a(0x11e)+_0x327f2a(0xf9)+'e']);if(_0x646a72!==null)_0x19f4ce[_0x327f2a(0x1c6)+_0x327f2a(0x1b8)+'m_id']=_0x646a72;}try{const {custom_fields:_0x2eb82a,assignees:_0x4dec34,custom_task_type:_0x4aa8ad,..._0x556850}=_0x19f4ce;if(_0x556850['statu'+'s']){const _0x26d3d7=await this['getTa'+'sk'](_0x3e9e48),_0x2128ab=this[_0x327f2a(0x1ac)+_0x327f2a(0x1df)+_0x327f2a(0xe9)][_0x327f2a(0x1c2)][_0x327f2a(0x18c)](_0x26d3d7[_0x327f2a(0xcc)]['id']);_0x556850[_0x327f2a(0x170)+'s']=this[_0x327f2a(0xb7)+_0x327f2a(0xde)+_0x327f2a(0xac)](_0x556850[_0x327f2a(0x170)+'s'],_0x2128ab?.['statu'+'ses']);}if(_0x4dec34!==undefined){const _0x36c940=await this[_0x327f2a(0x1b1)+'sk'](_0x3e9e48),_0x544250=_0x36c940[_0x327f2a(0xfd)+_0x327f2a(0xba)][_0x327f2a(0x185)](_0x2b36e2=>_0x2b36e2['id']);_0x556850[_0x327f2a(0xfd)+'nees']=Array[_0x327f2a(0x133)+'ay'](_0x4dec34)?{'add':_0x4dec34['filte'+'r'](_0x26abfe=>!_0x544250[_0x327f2a(0x117)+_0x327f2a(0x12b)](_0x26abfe)),'rem':_0x544250[_0x327f2a(0x15a)+'r'](_0x3e657d=>!_0x4dec34[_0x327f2a(0x117)+'des'](_0x3e657d))}:_0x4dec34;}const _0x172725=await this[_0x327f2a(0x1c8)+_0x327f2a(0x1c3)+'t'](async()=>{const _0x156181=_0x327f2a,_0x266dc0=await this['clien'+'t'][_0x156181(0x16c)](_0x156181(0xc8)+'/'+_0x3e9e48,_0x556850),_0x5ab396=_0x266dc0[_0x156181(0x165)];if(_0x367020[_0x156181(0xd3)](typeof _0x5ab396,_0x156181(0x9d)+'g')){const _0xa20e71=_0x5ab396[_0x156181(0x14b)](/task.*?(\w{9,10})/i);if(_0xa20e71)return await this['getTa'+'sk'](_0xa20e71[0x1]);throw new ClickUpServiceError(_0x367020['rrwHQ'],ErrorCode[_0x156181(0x1d5)+'WN'],_0x5ab396);}return _0x5ab396;});if(_0x2eb82a?.['lengt'+'h']){const {CustomFieldService:_0x6fe37}=await import(_0x367020['OlYCg']),_0x3e135f=new _0x6fe37(this['apiKe'+'y'],this[_0x327f2a(0x171)+'d'],this[_0x327f2a(0x17e)+'rl'],this[_0x327f2a(0xca)+_0x327f2a(0x1cf)]);for(const _0x506959 of _0x2eb82a){await _0x3e135f['setFi'+_0x327f2a(0x16e)+_0x327f2a(0x102)](_0x3e9e48,_0x506959['id'],_0x506959[_0x327f2a(0x15f)]);}}return _0x172725;}catch(_0x211e2){throw this['handl'+_0x327f2a(0x175)+'r'](_0x211e2,_0x327f2a(0x174)+_0x327f2a(0x11c)+_0x327f2a(0x13a)+'e\x20tas'+'k\x20'+_0x3e9e48);}}async[a0_0x320b6f(0x1b1)+a0_0x320b6f(0x1bc)+'eInSt'+a0_0x320b6f(0x1a1)](_0x458a64){const _0x1e8dca=a0_0x320b6f;return this[_0x1e8dca(0x1c8)+_0x1e8dca(0x1c3)+'t'](()=>this[_0x1e8dca(0xb3)+'t'][_0x1e8dca(0x18c)](_0x1e8dca(0xc8)+'/'+_0x458a64+(_0x1e8dca(0xe3)+_0x1e8dca(0xb1)+_0x1e8dca(0xac))))[_0x1e8dca(0x1ca)](_0x48001d=>_0x48001d[_0x1e8dca(0x165)])[_0x1e8dca(0x186)](_0x1263c2=>{const _0x4dd573=_0x1e8dca;throw this['handl'+_0x4dd573(0x175)+'r'](_0x1263c2,'Faile'+'d\x20to\x20'+'get\x20t'+_0x4dd573(0x1ad)+'n\x20sta'+'tus\x20f'+_0x4dd573(0x1a2)+_0x4dd573(0x1ab)+_0x458a64);});}async[a0_0x320b6f(0xb4)+a0_0x320b6f(0x120)+'kTime'+'InSta'+a0_0x320b6f(0x1cc)](_0x478ea8,_0x3fa2ba){const _0x45754a=a0_0x320b6f,_0x40d9f9={'PjgGS':_0x45754a(0x174)+_0x45754a(0x11c)+_0x45754a(0x145)+_0x45754a(0x125)+_0x45754a(0x1ad)+_0x45754a(0x19a)+_0x45754a(0x1cc)};return this[_0x45754a(0x1c8)+_0x45754a(0x1c3)+'t'](()=>this[_0x45754a(0xb3)+'t'][_0x45754a(0x18c)](_0x45754a(0xc8)+'/bulk'+'_time'+_0x45754a(0xb1)+_0x45754a(0xac),{'params':{'task_ids':_0x478ea8,'custom_task_ids':_0x3fa2ba}}))[_0x45754a(0x1ca)](_0x247551=>_0x247551[_0x45754a(0x165)])[_0x45754a(0x186)](_0xfb7dd2=>{const _0xb0661d=_0x45754a;throw this[_0xb0661d(0xed)+'eErro'+'r'](_0xfb7dd2,_0x40d9f9[_0xb0661d(0xb5)]);});}async[a0_0x320b6f(0x1b1)+'skMem'+'bers'](_0x4fed17){const _0x535f54=a0_0x320b6f;return this[_0x535f54(0x1c8)+'eques'+'t'](()=>this['clien'+'t']['get'](_0x535f54(0xc8)+'/'+_0x4fed17+(_0x535f54(0x172)+'er')))[_0x535f54(0x1ca)](_0x26f311=>_0x26f311['data'])[_0x535f54(0x186)](_0x27dbf1=>{const _0x175952=_0x535f54;throw this[_0x175952(0xed)+_0x175952(0x175)+'r'](_0x27dbf1,'Faile'+_0x175952(0x11c)+_0x175952(0xc6)+'ember'+'s\x20for'+_0x175952(0x10e)+'\x20'+_0x4fed17);});}async[a0_0x320b6f(0xad)+a0_0x320b6f(0xdd)](_0x166c23){const _0x5675d0=a0_0x320b6f,_0x5166de={'TtPQf':_0x5675d0(0xad)+'eTask'};return this['handl'+_0x5675d0(0xb0)+_0x5675d0(0x143)](_0x5166de[_0x5675d0(0xef)],()=>this[_0x5675d0(0xb3)+'t'][_0x5675d0(0xad)+'e'](_0x5675d0(0xc8)+'/'+_0x166c23),_0x5675d0(0x174)+_0x5675d0(0x11c)+'delet'+'e\x20tas'+'k\x20'+_0x166c23);}async['moveT'+'ask'](_0x69a6d2,_0x446397,_0x5c7f86=![]){const _0x8c4826=a0_0x320b6f,_0x4a761e={'JEfrc':function(_0x873d36,_0x1c5b55){return _0x873d36===_0x1c5b55;},'VlCYo':function(_0xa4a25a,_0x12474b){return _0xa4a25a instanceof _0x12474b;}};try{const [_0x382a1a]=await Promise[_0x8c4826(0x129)]([this[_0x8c4826(0x1ac)+'ateTa'+_0x8c4826(0xeb)+_0x8c4826(0xda)](_0x69a6d2),this['valid'+_0x8c4826(0xc5)+_0x8c4826(0x1e3)+_0x8c4826(0xda)](_0x446397)]),_0x32c458=_0x382a1a[_0x8c4826(0xcc)]['id'];if(_0x4a761e[_0x8c4826(0xcd)](_0x32c458,_0x446397))return _0x382a1a;try{return await this[_0x8c4826(0x1af)+_0x8c4826(0x10a)+_0x8c4826(0xf0)](_0x69a6d2,_0x446397),await this[_0x8c4826(0x177)+_0x8c4826(0xdd)+_0x8c4826(0x103)+'ist'](_0x69a6d2,_0x32c458);}catch(_0x5e1f42){if(_0x4a761e[_0x8c4826(0x1a6)](_0x5e1f42,ClickUpServiceError)&&_0x4a761e[_0x8c4826(0xcd)](_0x5e1f42[_0x8c4826(0x1ba)],ErrorCode[_0x8c4826(0x1e5)+_0x8c4826(0x12e)])){if(!_0x5c7f86)throw new ClickUpServiceError(_0x8c4826(0x1b9)+'estru'+_0x8c4826(0xa1)+_0x8c4826(0x110)+_0x8c4826(0x144)+_0x8c4826(0x14d)+_0x8c4826(0x15e)+_0x8c4826(0x1cd)+_0x8c4826(0x176)+_0x8c4826(0x132)+_0x8c4826(0x1da)+'\x20in\x20T'+'ask\x20I'+_0x8c4826(0x13c)+'\x20retr'+_0x8c4826(0x16d)+_0x8c4826(0x173)+_0x8c4826(0xc3)+_0x8c4826(0x15b)+'iveFa'+_0x8c4826(0xa8)+_0x8c4826(0xec)+_0x8c4826(0xc2),ErrorCode[_0x8c4826(0x1e5)+'DDEN']);const _0x411ecd=await this[_0x8c4826(0x153)+_0x8c4826(0x18d)+_0x8c4826(0x1b6)+_0x8c4826(0x1e4)](_0x69a6d2),_0x43a6bd=await this[_0x8c4826(0x119)+_0x8c4826(0xdd)](_0x446397,_0x411ecd);return await this[_0x8c4826(0xad)+_0x8c4826(0xdd)](_0x69a6d2),_0x43a6bd;}throw _0x5e1f42;}}catch(_0x3be03c){throw this['handl'+'eErro'+'r'](_0x3be03c,_0x8c4826(0x174)+_0x8c4826(0x11c)+_0x8c4826(0x113)+'task');}}async[a0_0x320b6f(0x1af)+a0_0x320b6f(0x10a)+'ist'](_0x10d04a,_0x356a66){const _0x11c20e=a0_0x320b6f;return this[_0x11c20e(0x1c8)+_0x11c20e(0x1c3)+'t'](async()=>{const _0x5cbe50=_0x11c20e;return await Promise[_0x5cbe50(0x129)]([this[_0x5cbe50(0x1ac)+_0x5cbe50(0xbc)+_0x5cbe50(0xeb)+'sts'](_0x10d04a),this['valid'+_0x5cbe50(0xc5)+'stExi'+'sts'](_0x356a66)]),await this['clien'+'t'][_0x5cbe50(0x151)](_0x5cbe50(0x1c7)+'/'+_0x356a66+(_0x5cbe50(0xc8)+'/')+_0x10d04a),this['valid'+_0x5cbe50(0x1df)+'Cache']['tasks'][_0x5cbe50(0xad)+'e'](_0x10d04a),await this[_0x5cbe50(0x1b1)+'sk'](_0x10d04a);})[_0x11c20e(0x186)](_0x85b782=>{const _0x308973=_0x11c20e;throw this['handl'+'eErro'+'r'](_0x85b782,'Faile'+_0x308973(0x11c)+'add\x20t'+_0x308973(0x196)+_0x10d04a+(_0x308973(0x1d3)+_0x308973(0x17d))+_0x356a66);});}async[a0_0x320b6f(0x177)+a0_0x320b6f(0xdd)+a0_0x320b6f(0x103)+a0_0x320b6f(0xf0)](_0x572b6a,_0x1b74e8){const _0xc2850d=a0_0x320b6f;return this[_0xc2850d(0x1c8)+_0xc2850d(0x1c3)+'t'](async()=>{const _0xaa9199=_0xc2850d;return await Promise[_0xaa9199(0x129)]([this[_0xaa9199(0x1ac)+_0xaa9199(0xbc)+_0xaa9199(0xeb)+_0xaa9199(0xda)](_0x572b6a),this[_0xaa9199(0x1ac)+'ateLi'+'stExi'+_0xaa9199(0xda)](_0x1b74e8)]),await this[_0xaa9199(0xb3)+'t'][_0xaa9199(0xad)+'e']('/list'+'/'+_0x1b74e8+(_0xaa9199(0xc8)+'/')+_0x572b6a),this[_0xaa9199(0x1ac)+_0xaa9199(0x1df)+'Cache']['tasks'][_0xaa9199(0xad)+'e'](_0x572b6a),await this[_0xaa9199(0x1b1)+'sk'](_0x572b6a);})[_0xc2850d(0x186)](_0x493f16=>{const _0x110187=_0xc2850d;throw this[_0x110187(0xed)+_0x110187(0x175)+'r'](_0x493f16,'Faile'+_0x110187(0x11c)+_0x110187(0x177)+'e\x20tas'+'k\x20'+_0x572b6a+(_0x110187(0x15c)+_0x110187(0xfb)+'\x20')+_0x1b74e8);});}async[a0_0x320b6f(0x10c)+a0_0x320b6f(0x122)+a0_0x320b6f(0x11b)](_0x4a4082,_0x480d6d){const _0x5616af=a0_0x320b6f;try{const _0x3cf758=await this[_0x5616af(0x1b1)+'sk'](_0x4a4082),_0x468885=_0x480d6d||_0x3cf758[_0x5616af(0xcc)]['id'],_0x371d63=await this['extra'+_0x5616af(0x18d)+'pTask'+'Data'](_0x4a4082),_0x15fe32=await this[_0x5616af(0x119)+_0x5616af(0xdd)](_0x468885,_0x371d63);return _0x15fe32;}catch(_0x27037d){throw this[_0x5616af(0xed)+'eErro'+'r'](_0x27037d,_0x5616af(0x174)+_0x5616af(0x11c)+_0x5616af(0x10c)+'cate\x20'+'task\x20'+_0x4a4082);}}async[a0_0x320b6f(0x1ac)+'ateTa'+a0_0x320b6f(0xeb)+'sts'](_0x27810b){const _0x29bd88=a0_0x320b6f,_0xd20f2=this[_0x29bd88(0x1ac)+'ation'+'Cache']['tasks'][_0x29bd88(0x18c)](_0x27810b);if(_0xd20f2&&Date[_0x29bd88(0x116)]()-_0xd20f2[_0x29bd88(0x1ac)+'atedA'+'t']<this[_0x29bd88(0x1e0)+_0x29bd88(0x157)])return _0xd20f2['task'];const _0x199303=await this[_0x29bd88(0x1b1)+'sk'](_0x27810b);return this[_0x29bd88(0x1ac)+_0x29bd88(0x1df)+'Cache'][_0x29bd88(0x17c)][_0x29bd88(0x199)](_0x27810b,{'validatedAt':Date[_0x29bd88(0x116)](),'task':_0x199303}),_0x199303;}async[a0_0x320b6f(0x1ac)+a0_0x320b6f(0xc5)+a0_0x320b6f(0x1e3)+a0_0x320b6f(0xda)](_0x1a6792){const _0x57cd51=a0_0x320b6f,_0x55ad98={'kcQYU':function(_0x31b076,_0x21d36f){return _0x31b076<_0x21d36f;},'JGSrU':function(_0x2c7670,_0x59c342){return _0x2c7670-_0x59c342;}},_0x31b7a9=this[_0x57cd51(0x1ac)+_0x57cd51(0x1df)+'Cache'][_0x57cd51(0x1c2)][_0x57cd51(0x18c)](_0x1a6792);if(_0x31b7a9&&_0x55ad98['kcQYU'](_0x55ad98[_0x57cd51(0xcb)](Date[_0x57cd51(0x116)](),_0x31b7a9[_0x57cd51(0x1ac)+_0x57cd51(0x1a0)+'t']),this['CACHE'+_0x57cd51(0x157)])){if(!_0x31b7a9[_0x57cd51(0x1ac)])throw new ClickUpServiceError(_0x57cd51(0xa6)+_0x1a6792+(_0x57cd51(0xa2)+'found'),ErrorCode['NOT_F'+_0x57cd51(0x158)]);return;}try{const _0x2cdbe0=await this[_0x57cd51(0x9f)+_0x57cd51(0x1de)+'e'][_0x57cd51(0x1b3)+'st'](_0x1a6792);this[_0x57cd51(0x1ac)+_0x57cd51(0x1df)+_0x57cd51(0xe9)]['lists'][_0x57cd51(0x199)](_0x1a6792,{'validatedAt':Date[_0x57cd51(0x116)](),'valid':!![],'statuses':_0x2cdbe0[_0x57cd51(0x170)+_0x57cd51(0xdb)]?.[_0x57cd51(0x185)](_0x15bc6f=>_0x15bc6f[_0x57cd51(0x170)+'s'])});}catch(_0x3e90cb){this[_0x57cd51(0x1ac)+_0x57cd51(0x1df)+'Cache'][_0x57cd51(0x1c2)][_0x57cd51(0x199)](_0x1a6792,{'validatedAt':Date[_0x57cd51(0x116)](),'valid':![]});throw _0x3e90cb;}}['norma'+a0_0x320b6f(0xde)+'tatus'](_0x1f3a00,_0x358e3e){const _0x116b84=a0_0x320b6f,_0x47d465={'XUgsZ':function(_0x493fd8,_0x26fa2e){return _0x493fd8===_0x26fa2e;}};if(!_0x358e3e||_0x47d465['XUgsZ'](_0x358e3e[_0x116b84(0x127)+'h'],0x0))return _0x1f3a00[_0x116b84(0xd6)+_0x116b84(0x137)+'e']();const _0x490329=_0x1f3a00[_0x116b84(0xd6)+_0x116b84(0x137)+'e'](),_0x378c65=_0x358e3e['find'](_0x38366b=>_0x38366b['toLow'+_0x116b84(0x137)+'e']()===_0x490329);if(_0x378c65)return _0x378c65;const _0x5478cd=findBestMatchInArray(_0x358e3e['map'](_0x6484b8=>({'name':_0x6484b8})),_0x1f3a00);return _0x5478cd?_0x5478cd[_0x116b84(0xab)][_0x116b84(0x109)]:_0x1f3a00['toLow'+_0x116b84(0x137)+'e']();}[a0_0x320b6f(0x1bb)+'Statu'+'s'](_0x4a3b41,_0x15fbae){const _0x31d71e=a0_0x320b6f,_0x4a15d1=this['valid'+'ation'+_0x31d71e(0xe9)][_0x31d71e(0x1c2)][_0x31d71e(0x18c)](_0x4a3b41),_0x2da99c=_0x4a15d1?.['statu'+_0x31d71e(0xdb)]||[];!_0x2da99c[_0x31d71e(0x117)+_0x31d71e(0x12b)](_0x15fbae)&&this[_0x31d71e(0x1ac)+_0x31d71e(0x1df)+_0x31d71e(0xe9)][_0x31d71e(0x1c2)][_0x31d71e(0x199)](_0x4a3b41,{'validatedAt':Date[_0x31d71e(0x116)](),'valid':!![],'statuses':[..._0x2da99c,_0x15fbae]});}[a0_0x320b6f(0xa7)+'chedT'+a0_0x320b6f(0xf6)](_0x360a7e,_0x443fda,_0x2072fd){const _0xb711e1=a0_0x320b6f,_0x475dd3={'qKuAc':function(_0x520e05,_0x4f866f){return _0x520e05<_0x4f866f;},'Fitze':function(_0x47e9b3,_0x472dfe){return _0x47e9b3-_0x472dfe;}},_0x47d870=_0x2072fd||this[_0xb711e1(0x171)+'d'],_0x555cb7=_0x47d870+':'+_0x360a7e,_0x2a30a9=this[_0xb711e1(0x1d8)+_0xb711e1(0x150)+_0xb711e1(0x152)][_0xb711e1(0x18c)](_0x555cb7);return _0x2a30a9&&_0x475dd3[_0xb711e1(0x149)](_0x475dd3['Fitze'](Date[_0xb711e1(0x116)](),_0x2a30a9[_0xb711e1(0x1ac)+'atedA'+'t']),this['CACHE'+_0xb711e1(0x157)])&&(!_0x443fda||_0x2a30a9[_0xb711e1(0x1e1)+'d']===_0x443fda)?_0x2a30a9[_0xb711e1(0x148)+'d']:null;}[a0_0x320b6f(0x1bb)+'TaskN'+a0_0x320b6f(0x187)+'Id'](_0x4254c3,_0x46f323,_0x4a60fd,_0x41c0f9){const _0x2a9f21=a0_0x320b6f,_0x51b973=_0x41c0f9||this[_0x2a9f21(0x171)+'d'],_0x876d3a=_0x51b973+':'+_0x4254c3;this[_0x2a9f21(0x1d8)+'oIdCa'+'che'][_0x2a9f21(0x199)](_0x876d3a,{'taskId':_0x46f323,'validatedAt':Date[_0x2a9f21(0x116)](),'listId':_0x4a60fd});}async[a0_0x320b6f(0x1ac)+'ateTa'+a0_0x320b6f(0x104)+a0_0x320b6f(0xf0)](_0x27e46f){const _0x4bc325=a0_0x320b6f,_0x538608={'gQQsV':function(_0x302ee1,_0x474ae9){return _0x302ee1<_0x474ae9;},'FQPlM':function(_0x10bb3e,_0x4e8c6f){return _0x10bb3e+_0x4e8c6f;}},_0x1776a9=new Map(),_0x21b270=_0x27e46f[_0x4bc325(0x15a)+'r'](_0x5a9bae=>{const _0x5a6a62=_0x4bc325,_0x707d3e=this[_0x5a6a62(0x1ac)+_0x5a6a62(0x1df)+_0x5a6a62(0xe9)][_0x5a6a62(0x17c)]['get'](_0x5a9bae);if(_0x707d3e&&Date['now']()-_0x707d3e[_0x5a6a62(0x1ac)+'atedA'+'t']<this['CACHE'+_0x5a6a62(0x157)])return _0x1776a9[_0x5a6a62(0x199)](_0x5a9bae,_0x707d3e['task']),![];return!![];});if(_0x21b270[_0x4bc325(0x127)+'h'])for(let _0x59e0cb=0x0;_0x538608[_0x4bc325(0x13d)](_0x59e0cb,_0x21b270[_0x4bc325(0x127)+'h']);_0x59e0cb+=0x5){const _0xf8984c=_0x21b270['slice'](_0x59e0cb,_0x538608[_0x4bc325(0x107)](_0x59e0cb,0x5)),_0x434aac=await Promise['all'](_0xf8984c['map'](_0x37e984=>this[_0x4bc325(0x1b1)+'sk'](_0x37e984)));_0x434aac['forEa'+'ch']((_0x4bcc89,_0x2f4e7d)=>{const _0x4c8d7a=_0x4bc325;this[_0x4c8d7a(0x1ac)+_0x4c8d7a(0x1df)+_0x4c8d7a(0xe9)][_0x4c8d7a(0x17c)]['set'](_0xf8984c[_0x2f4e7d],{'validatedAt':Date[_0x4c8d7a(0x116)](),'task':_0x4bcc89}),_0x1776a9[_0x4c8d7a(0x199)](_0xf8984c[_0x2f4e7d],_0x4bcc89);});}return _0x1776a9;}}
|