@taazkareem/clickup-mcp-server 0.14.3 → 0.14.4
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/Dockerfile +3 -0
- package/README.md +7 -5
- 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/categories.js +1 -0
- 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 -1
- 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 +3 -2
- package/public/favicon.ico +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3d58ce,_0x54b08e){const _0x479def=a0_0x2044,_0x435eb0=_0x3d58ce();while(!![]){try{const _0x3469b1=parseInt(_0x479def(0xdc))/0x1*(parseInt(_0x479def(0xe6))/0x2)+parseInt(_0x479def(0x11f))/0x3+parseInt(_0x479def(0x120))/0x4+-parseInt(_0x479def(0xf5))/0x5*(parseInt(_0x479def(0x100))/0x6)+-parseInt(_0x479def(0xe0))/0x7+parseInt(_0x479def(0x109))/0x8+parseInt(_0x479def(0xe3))/0x9*(-parseInt(_0x479def(0xe1))/0xa);if(_0x3469b1===_0x54b08e)break;else _0x435eb0['push'](_0x435eb0['shift']());}catch(_0x22c24e){_0x435eb0['push'](_0x435eb0['shift']());}}}(a0_0xe937,0x3927a));function a0_0x2044(_0x1ada89,_0x25330e){_0x1ada89=_0x1ada89-0xd8;const _0xe93738=a0_0xe937();let _0x2044de=_0xe93738[_0x1ada89];if(a0_0x2044['wsOCsj']===undefined){var _0x206197=function(_0xb8a5e){const _0x599116='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x367367='',_0x317b3c='';for(let _0x59d1bf=0x0,_0x198d50,_0x375b51,_0x2b1f46=0x0;_0x375b51=_0xb8a5e['charAt'](_0x2b1f46++);~_0x375b51&&(_0x198d50=_0x59d1bf%0x4?_0x198d50*0x40+_0x375b51:_0x375b51,_0x59d1bf++%0x4)?_0x367367+=String['fromCharCode'](0xff&_0x198d50>>(-0x2*_0x59d1bf&0x6)):0x0){_0x375b51=_0x599116['indexOf'](_0x375b51);}for(let _0x7a1706=0x0,_0x54ef69=_0x367367['length'];_0x7a1706<_0x54ef69;_0x7a1706++){_0x317b3c+='%'+('00'+_0x367367['charCodeAt'](_0x7a1706)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x317b3c);};a0_0x2044['PVlGhp']=_0x206197,a0_0x2044['mfkqtN']={},a0_0x2044['wsOCsj']=!![];}const _0x2e7032=_0xe93738[0x0],_0x3ec2db=_0x1ada89+_0x2e7032,_0x20870c=a0_0x2044['mfkqtN'][_0x3ec2db];return!_0x20870c?(_0x2044de=a0_0x2044['PVlGhp'](_0x2044de),a0_0x2044['mfkqtN'][_0x3ec2db]=_0x2044de):_0x2044de=_0x20870c,_0x2044de;}function a0_0xe937(){const _0x1c63ed=['zgvZ','sgjHA0S','Aw5KzxG','Bwf0y2G','mJiXmJi0tKD3uKDf','DgfZAW','zxjdyxm','ze1eDxq','w0LTywC','BeLMywi','BgLZDa','y2HLy2S','y29Kzxm','Aw1Hz2u','sxnAB1m','EurYEK4','A2v5CW','CgfU','Dg9Rzw4','AwPwDuS','BgLUAW','BNvurKK','DhjPBq','sgHRqvi','y2TLza','ls0T','odG1odC5yvnMsMjc','mti0ntCWohLjv2jyua','DgfN','ChvZAa','ztOG','C2nVCMu','CxvVDgu','DgfIBgu','CMfWAa','AejxwfO','AxrLBq','CM93CW','AhjLzG','txb3uvO','Axnnyxq','DxnLCM4','Dg9mB3C','CMLUzW','C3bHy2u','sxH4DgW','DgvZDa','zxnJyxa','mZG3ndm4q1vTrhzP','CMH5Cu8','BgvUz3q','C3rYB24','mJaXmdC3mujlAwDOvW','mJK1mdu5merZtMzHwa','AM9PBG','ovruDvfOsq','wNDRC3e','BwLU','mLzQCxLTsW','AgvHzgK','C3vIC3q','ihWG','DhLWzq','Aw5JBhu','BwfW','C3rHCNq','uvndr1C','zMLSDgu','Dgv4Da','tLvvtfm','C1DPDgG','CgfYywC','EKz0vvC','mZuWnwDfzMPXDq','AgvHzgu','Bgv4zxi','B3jKzxi','Dw5JAgu','uMvZDwW','AxrLBxm','yw1L','B05tDgG','zgvS','rg90vwO','mtC1oerOv0nXsa','zw1HAwW','ALfMvhq','zM9Yrwe','C3bSAxq'];a0_0xe937=function(){return _0x1c63ed;};return a0_0xe937();}import{marked}from'marked';import{findBestMatchInArray}from'../../utils/resolver-utils.js';export function markdownToClickUpComment(_0x110cd2,_0x928682=[]){const _0x16b9ed=a0_0x2044;if(!_0x110cd2)return[];const _0x5e7981=marked[_0x16b9ed(0xf7)](_0x110cd2),_0xc15507=[];return _0x5e7981[_0x16b9ed(0x103)+'ch'](_0x5a6dce=>{processToken(_0x5a6dce,_0xc15507,_0x928682);}),_0xc15507;}function processToken(_0x2faf2a,_0x1e63eb,_0x4c82ce){const _0x3b6f52=a0_0x2044,_0x90ea3a={'zFtUW':function(_0xa560c,_0x4dd985){return _0xa560c===_0x4dd985;},'HhkAR':function(_0x1a2857,_0x2eb426,_0x5b93ec,_0x52cd54,_0x87d281){return _0x1a2857(_0x2eb426,_0x5b93ec,_0x52cd54,_0x87d281);},'hBWXZ':_0x3b6f52(0xf3)+_0x3b6f52(0x127),'QDilQ':_0x3b6f52(0xe7)+'ng','IsZoS':_0x3b6f52(0x10f),'oNSth':'block'+_0x3b6f52(0x125),'Mppcs':'---\x0a','lIfab':_0x3b6f52(0x126),'dMDut':_0x3b6f52(0xe9),'gjzPl':function(_0x337e1c,_0x1b7f08){return _0x337e1c+_0x1b7f08;}};switch(_0x2faf2a['type']){case'parag'+_0x3b6f52(0x127):_0x90ea3a[_0x3b6f52(0x11c)](processInline,_0x2faf2a[_0x3b6f52(0x117)+'s'],_0x1e63eb,{},_0x4c82ce),_0x1e63eb['push']({'text':'\x0a'});break;case _0x90ea3a['QDilQ']:_0x90ea3a[_0x3b6f52(0x11c)](processInline,_0x2faf2a['token'+'s'],_0x1e63eb,{},_0x4c82ce),_0x1e63eb['push']({'text':'\x0a','attributes':{'header':_0x2faf2a['depth']}});break;case'code':const _0x2ac731=_0x2faf2a[_0x3b6f52(0xf0)][_0x3b6f52(0x104)]('\x0a');_0x2ac731[_0x3b6f52(0x103)+'ch']((_0x430673,_0x1e83f7)=>{const _0x376486=_0x3b6f52;_0x430673&&_0x1e63eb[_0x376486(0x122)]({'text':_0x430673}),_0x1e63eb[_0x376486(0x122)]({'text':'\x0a','attributes':{'code-block':!![]}});});break;case _0x90ea3a[_0x3b6f52(0x113)]:_0x2faf2a[_0x3b6f52(0xfb)]['forEa'+'ch'](_0x1d3cec=>{const _0x3e6752=_0x3b6f52;_0x1d3cec['token'+'s'][_0x3e6752(0x103)+'ch'](_0x10efdb=>{const _0x3535c0=_0x3e6752;_0x90ea3a[_0x3535c0(0xf4)](_0x10efdb[_0x3535c0(0xea)],'text')?_0x90ea3a[_0x3535c0(0x11c)](processInline,_0x10efdb[_0x3535c0(0x117)+'s']||[],_0x1e63eb,{},_0x4c82ce):processToken(_0x10efdb,_0x1e63eb,_0x4c82ce);});let _0x2ebc88=_0x2faf2a[_0x3e6752(0xf8)+'ed']?_0x3e6752(0xf8)+'ed':'bulle'+'t';_0x1d3cec[_0x3e6752(0x10a)]&&(_0x2ebc88=_0x1d3cec['check'+'ed']?_0x3e6752(0x110)+'ed':_0x3e6752(0xf9)+_0x3e6752(0x11d)),_0x1e63eb[_0x3e6752(0x122)]({'text':'\x0a','attributes':{'list':_0x2ebc88}});});break;case _0x90ea3a[_0x3b6f52(0xfd)]:_0x2faf2a[_0x3b6f52(0x117)+'s']&&_0x2faf2a[_0x3b6f52(0x117)+'s']['lengt'+'h']&&_0x2faf2a['token'+'s'][_0x3b6f52(0x103)+'ch'](_0x312373=>{const _0x1568e0=_0x3b6f52;_0x312373[_0x1568e0(0xea)]===_0x90ea3a[_0x1568e0(0x128)]?(processInline(_0x312373[_0x1568e0(0x117)+'s'],_0x1e63eb,{},_0x4c82ce),_0x1e63eb[_0x1568e0(0x122)]({'text':'\x0a','attributes':{'blockquote':!![]}})):processToken(_0x312373,_0x1e63eb,_0x4c82ce);});break;case _0x3b6f52(0xd8):break;case'hr':_0x1e63eb[_0x3b6f52(0x122)]({'text':_0x90ea3a['Mppcs']});break;case _0x90ea3a[_0x3b6f52(0x10e)]:if(_0x2faf2a[_0x3b6f52(0xf6)+'r']&&_0x2faf2a[_0x3b6f52(0xf6)+'r'][_0x3b6f52(0xde)+'h']){const _0x58cb31=_0x2faf2a[_0x3b6f52(0xf6)+'r'][_0x3b6f52(0xec)](_0x594097=>_0x594097[_0x3b6f52(0xf0)])['join'](_0x90ea3a[_0x3b6f52(0x10c)]);_0x1e63eb['push']({'text':_0x90ea3a['gjzPl'](_0x58cb31,'\x0a'),'attributes':{'bold':!![]}}),_0x1e63eb['push']({'text':_0x2faf2a[_0x3b6f52(0xf6)+'r'][_0x3b6f52(0xec)](()=>_0x3b6f52(0x11e))[_0x3b6f52(0xe2)]('|')+'\x0a'});}_0x2faf2a[_0x3b6f52(0x12a)]&&_0x2faf2a[_0x3b6f52(0x12a)][_0x3b6f52(0xde)+'h']&&_0x2faf2a[_0x3b6f52(0x12a)][_0x3b6f52(0x103)+'ch'](_0x97cd11=>{const _0x4bfc7d=_0x3b6f52,_0x48d405=_0x97cd11[_0x4bfc7d(0xec)](_0x194ae7=>_0x194ae7['text'])['join'](_0x4bfc7d(0xe9));_0x1e63eb['push']({'text':_0x48d405+'\x0a'});});break;default:_0x2faf2a[_0x3b6f52(0xf0)]&&(_0x1e63eb[_0x3b6f52(0x122)]({'text':_0x2faf2a[_0x3b6f52(0xf0)]}),_0x1e63eb['push']({'text':'\x0a'}));break;}}function processInline(_0xc578e9,_0x226de6,_0x497b2c={},_0x5335bc=[]){const _0x19066c=a0_0x2044,_0x40cbe8={'YOCct':_0x19066c(0xdb)+'e','yDrzN':function(_0x386ea6,_0x475515){return _0x386ea6>_0x475515;},'QSCGW':function(_0x5203a9,_0x21c5f5){return _0x5203a9===_0x21c5f5;},'VmWoB':function(_0x251d7a,_0x1f87b4){return _0x251d7a+_0x1f87b4;},'ijVuK':function(_0x4dcdf8,_0x213b8d){return _0x4dcdf8<_0x213b8d;},'Ixxtl':function(_0x55dfd1,_0x308c83){return _0x55dfd1>=_0x308c83;},'rhyqO':function(_0x3ccce5,_0x413699){return _0x3ccce5+_0x413699;},'HbakK':_0x19066c(0x121),'MpwQZ':function(_0x3c6ae4,_0xc0dc6a){return _0x3c6ae4+_0xc0dc6a;},'Zwksq':_0x19066c(0x111)+_0x19066c(0x116),'nuTFI':_0x19066c(0xfe),'DotUj':function(_0x24f90d,_0x389624,_0x1e417d,_0x45e5aa,_0x3b8c52){return _0x24f90d(_0x389624,_0x1e417d,_0x45e5aa,_0x3b8c52);},'NUULS':_0x19066c(0x119),'jQfTt':function(_0x11d0f4,_0x22f842){return _0x11d0f4>_0x22f842;}},_0x4bcefc=_0x5335bc['lengt'+'h']>0x0?[..._0x5335bc]['sort']((_0xca3e0b,_0x4d9067)=>(_0x4d9067[_0x19066c(0x12e)+_0x19066c(0xfc)]?.[_0x19066c(0xde)+'h']||0x0)-(_0xca3e0b[_0x19066c(0x12e)+_0x19066c(0xfc)]?.[_0x19066c(0xde)+'h']||0x0)):[];_0xc578e9?.[_0x19066c(0x103)+'ch'](_0x3998f3=>{const _0x3d544c=_0x19066c;switch(_0x3998f3[_0x3d544c(0xea)]){case _0x3d544c(0xf0):case _0x40cbe8['YOCct']:if(_0x40cbe8[_0x3d544c(0x114)](_0x4bcefc[_0x3d544c(0xde)+'h'],0x0)&&_0x3998f3[_0x3d544c(0xf0)][_0x3d544c(0xeb)+_0x3d544c(0x105)]('@')){let _0x519350=_0x3998f3[_0x3d544c(0xf0)];while(_0x519350['lengt'+'h']>0x0){const _0x4453c3=_0x519350[_0x3d544c(0x107)+'Of']('@');if(_0x40cbe8[_0x3d544c(0xee)](_0x4453c3,-0x1)){_0x226de6['push']({'text':_0x519350,...Object['keys'](_0x497b2c)[_0x3d544c(0xde)+'h']?{'attributes':{..._0x497b2c}}:{}});break;}_0x40cbe8[_0x3d544c(0x114)](_0x4453c3,0x0)&&_0x226de6['push']({'text':_0x519350[_0x3d544c(0xe8)+_0x3d544c(0x130)](0x0,_0x4453c3),...Object[_0x3d544c(0x115)](_0x497b2c)['lengt'+'h']?{'attributes':{..._0x497b2c}}:{}});const _0x58192d=_0x519350[_0x3d544c(0xe8)+_0x3d544c(0x130)](_0x4453c3);let _0x3cc1b5=null,_0x25d8eb=null;const _0x177325=_0x519350['subst'+_0x3d544c(0x130)](_0x40cbe8['VmWoB'](_0x4453c3,0x1)),_0x2faab0=_0x177325[_0x3d544c(0x104)](/([ ,.!?\n]+)/)[_0x3d544c(0xef)+'r'](_0x11c9a4=>_0x11c9a4);let _0x120b17='',_0x2bcb60=0x0;for(let _0xe5de3f=0x0;_0x40cbe8[_0x3d544c(0x118)](_0xe5de3f,Math[_0x3d544c(0xe5)](_0x2faab0[_0x3d544c(0xde)+'h'],0x6));_0xe5de3f++){_0x120b17+=_0x2faab0[_0xe5de3f],_0x2bcb60+=_0x2faab0[_0xe5de3f][_0x3d544c(0xde)+'h'];if(/^[ ,.!?\n]/[_0x3d544c(0xda)](_0x2faab0[_0xe5de3f]))continue;const _0x4da2ed=findBestMatchInArray(_0x5335bc,_0x120b17[_0x3d544c(0x11b)](),_0x17fde8=>_0x17fde8[_0x3d544c(0x12e)+_0x3d544c(0xfc)]||_0x17fde8['email']);_0x4da2ed&&_0x4da2ed[_0x3d544c(0x108)+_0x3d544c(0xfa)+'t'][_0x3d544c(0x12d)+'ch']&&_0x40cbe8[_0x3d544c(0xd9)](_0x4da2ed[_0x3d544c(0x108)+_0x3d544c(0xfa)+'t']['score'],0x32)&&((!_0x25d8eb||_0x40cbe8['yDrzN'](_0x4da2ed['match'+'Resul'+'t'][_0x3d544c(0x124)],_0x25d8eb[_0x3d544c(0x124)]))&&(_0x25d8eb={'member':_0x4da2ed[_0x3d544c(0x129)],'score':_0x4da2ed[_0x3d544c(0x108)+'Resul'+'t'][_0x3d544c(0x124)],'length':_0x2bcb60}));}if(_0x25d8eb)_0x3cc1b5=_0x25d8eb['membe'+'r'];else for(const _0x44edd4 of _0x4bcefc){const _0x521f86=_0x44edd4[_0x3d544c(0x12e)+_0x3d544c(0xfc)]||_0x44edd4['email'];if(_0x521f86&&_0x58192d[_0x3d544c(0x12f)+_0x3d544c(0x10b)+'e']()[_0x3d544c(0xed)+_0x3d544c(0xf2)](_0x40cbe8[_0x3d544c(0xdd)]('@',_0x521f86[_0x3d544c(0x12f)+_0x3d544c(0x10b)+'e']()))){_0x3cc1b5=_0x44edd4,_0x25d8eb={'member':_0x44edd4,'score':0x64,'length':0x1+_0x521f86[_0x3d544c(0xde)+'h']};break;}}if(_0x3cc1b5){_0x226de6[_0x3d544c(0x122)]({'text':'@'+(_0x3cc1b5[_0x3d544c(0x12e)+_0x3d544c(0xfc)]||_0x3cc1b5[_0x3d544c(0x101)]),'type':_0x40cbe8[_0x3d544c(0x106)],'user':{'id':_0x3cc1b5['id']}});const _0x48e66f=_0x25d8eb?_0x25d8eb[_0x3d544c(0xde)+'h']:(_0x3cc1b5[_0x3d544c(0x12e)+_0x3d544c(0xfc)]||_0x3cc1b5['email'])[_0x3d544c(0xde)+'h'];_0x519350=_0x519350[_0x3d544c(0xe8)+_0x3d544c(0x130)](_0x40cbe8[_0x3d544c(0x12c)](_0x4453c3+0x1,_0x25d8eb?_0x25d8eb[_0x3d544c(0xde)+'h']:(_0x3cc1b5[_0x3d544c(0x12e)+'ame']||_0x3cc1b5[_0x3d544c(0x101)])[_0x3d544c(0xde)+'h']));}else _0x226de6[_0x3d544c(0x122)]({'text':'@',...Object[_0x3d544c(0x115)](_0x497b2c)[_0x3d544c(0xde)+'h']?{'attributes':{..._0x497b2c}}:{}}),_0x519350=_0x519350[_0x3d544c(0xe8)+_0x3d544c(0x130)](_0x40cbe8[_0x3d544c(0x12c)](_0x4453c3,0x1));}}else _0x226de6[_0x3d544c(0x122)]({'text':_0x3998f3[_0x3d544c(0xf0)],...Object[_0x3d544c(0x115)](_0x497b2c)[_0x3d544c(0xde)+'h']>0x0?{'attributes':{..._0x497b2c}}:{}});break;case _0x3d544c(0xdf)+'g':processInline(_0x3998f3[_0x3d544c(0x117)+'s'],_0x226de6,{..._0x497b2c,'bold':!![]},_0x5335bc);break;case'em':processInline(_0x3998f3[_0x3d544c(0x117)+'s'],_0x226de6,{..._0x497b2c,'italic':!![]},_0x5335bc);break;case _0x40cbe8[_0x3d544c(0xe4)]:_0x226de6[_0x3d544c(0x122)]({'text':_0x3998f3[_0x3d544c(0xf0)],'attributes':{..._0x497b2c,'code':!![]}});break;case'br':_0x226de6[_0x3d544c(0x122)]({'text':'\x0a'});break;case _0x40cbe8[_0x3d544c(0x11a)]:_0x40cbe8[_0x3d544c(0xff)](processInline,_0x3998f3[_0x3d544c(0x117)+'s'],_0x226de6,{..._0x497b2c,'strike':!![]},_0x5335bc);break;case _0x40cbe8[_0x3d544c(0xf1)]:_0x226de6['push']({'text':_0x3998f3[_0x3d544c(0xf0)],'attributes':{..._0x497b2c,'link':_0x3998f3[_0x3d544c(0x12b)]}});break;case _0x3d544c(0x112):_0x226de6['push']({'text':_0x3d544c(0x10d)+_0x3d544c(0x123)+(_0x3998f3[_0x3d544c(0xf0)]||_0x3d544c(0x119))+']','attributes':{..._0x497b2c,'link':_0x3998f3['href']}});break;default:_0x3998f3[_0x3d544c(0xf0)]&&_0x226de6['push']({'text':_0x3998f3[_0x3d544c(0xf0)],..._0x40cbe8[_0x3d544c(0x102)](Object['keys'](_0x497b2c)[_0x3d544c(0xde)+'h'],0x0)?{'attributes':{..._0x497b2c}}:{}});}});}
|
|
1
|
+
(function(_0x1a0930,_0x118b02){const _0x49b9c7=a0_0x54c6,_0x4cdfe1=_0x1a0930();while(!![]){try{const _0x54b620=parseInt(_0x49b9c7(0x1de))/0x1*(-parseInt(_0x49b9c7(0x1dd))/0x2)+-parseInt(_0x49b9c7(0x221))/0x3+-parseInt(_0x49b9c7(0x207))/0x4+parseInt(_0x49b9c7(0x228))/0x5+parseInt(_0x49b9c7(0x1f6))/0x6*(parseInt(_0x49b9c7(0x229))/0x7)+-parseInt(_0x49b9c7(0x225))/0x8*(parseInt(_0x49b9c7(0x220))/0x9)+parseInt(_0x49b9c7(0x1fa))/0xa;if(_0x54b620===_0x118b02)break;else _0x4cdfe1['push'](_0x4cdfe1['shift']());}catch(_0x348275){_0x4cdfe1['push'](_0x4cdfe1['shift']());}}}(a0_0x24e7,0x7dc26));function a0_0x24e7(){const _0x246a99=['wwnOt3e','yNvSBgu','zgvWDgG','AM9PBG','y29Kzq','uMvZDwW','ls0TcG','B3jKzxi','zw1HAwW','mNvyAvPduG','oty3nJuXBxbXwhfo','y29KvLe','AxrLBxm','AgvHzgK','DgfIBgu','CgfYywC','r0rYuxm','tw1Hthy','ls0T','uNzfEg0','y1vcrKK','zgvZ','uvHHEhK','ihWG','C2nVCMu','BwLU','yw1L','rwXYuue','CxvVDgu','z3vxu0q','ChvZAa','BK1RzhG','C29YDa','Bwf0y2G','otCWnJC0ELP4tg5S','DgfZAW','CMLUzW','y2HLy2S','otmXotG3meXIB3DKCa','BwvTyMu','CMfWAa','vu9vtvi','AgvHzgu','C3rHCNq','weXdEu8','CgDnBxG','C1DPDgG','DxnLCM4','DhLWzq','tejADxa','AhjLzG','oteZnZaWrundCufd','y2TLza','rgLkuKm','Dw5JAgu','CgfU','Dg9Rzw4','AwXTrLK','Aw5JBhu','BgLUAW','tuX6Bxy','zxLJy3a','zM9Yrwe','AxrLBq','DgvZDa','C3bSAxq','BgvUz3q','A2v5CW','CM93CW','zgvS','yMXVy2S','C3rYB24','BwfW','zNzlCvi','Aw1Hz2u','C3bHy2u','otLPzKjmA2C','ntG4mdzutLrLD3K','BfPXwfe','zxnJyxa','zxjdyxm','mJGXnZuYsezuu2Xh','w0LTywC','Dgv4Da','nteYmJe1nvPtsenzsq','n2PAyNv6zW','C3vIC3q','BgLZDa','vM1YAuC'];a0_0x24e7=function(){return _0x246a99;};return a0_0x24e7();}function a0_0x54c6(_0x3a1f00,_0x2fc70b){_0x3a1f00=_0x3a1f00-0x1d6;const _0x24e7e8=a0_0x24e7();let _0x54c6fd=_0x24e7e8[_0x3a1f00];if(a0_0x54c6['pAmyPN']===undefined){var _0x26c5ba=function(_0x4db127){const _0xb782b6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3806b2='',_0x1edbf0='';for(let _0x2f736e=0x0,_0x3411f3,_0x607681,_0x9fe7d9=0x0;_0x607681=_0x4db127['charAt'](_0x9fe7d9++);~_0x607681&&(_0x3411f3=_0x2f736e%0x4?_0x3411f3*0x40+_0x607681:_0x607681,_0x2f736e++%0x4)?_0x3806b2+=String['fromCharCode'](0xff&_0x3411f3>>(-0x2*_0x2f736e&0x6)):0x0){_0x607681=_0xb782b6['indexOf'](_0x607681);}for(let _0x1206da=0x0,_0x515b4a=_0x3806b2['length'];_0x1206da<_0x515b4a;_0x1206da++){_0x1edbf0+='%'+('00'+_0x3806b2['charCodeAt'](_0x1206da)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1edbf0);};a0_0x54c6['LBUqkK']=_0x26c5ba,a0_0x54c6['RtjuSJ']={},a0_0x54c6['pAmyPN']=!![];}const _0x3c89f5=_0x24e7e8[0x0],_0x279129=_0x3a1f00+_0x3c89f5,_0x2a555c=a0_0x54c6['RtjuSJ'][_0x279129];return!_0x2a555c?(_0x54c6fd=a0_0x54c6['LBUqkK'](_0x54c6fd),a0_0x54c6['RtjuSJ'][_0x279129]=_0x54c6fd):_0x54c6fd=_0x2a555c,_0x54c6fd;}import{marked}from'marked';import{findBestMatchInArray}from'../../utils/resolver-utils.js';export function markdownToClickUpComment(_0x3a76b7,_0x2f4d95=[]){const _0xb3f02e=a0_0x54c6;if(!_0x3a76b7)return[];const _0x46584e=marked['lexer'](_0x3a76b7),_0x320502=[];return _0x46584e[_0xb3f02e(0x212)+'ch'](_0x326cad=>{processToken(_0x326cad,_0x320502,_0x2f4d95);}),_0x320502;}function processToken(_0x48ea70,_0x27b4ef,_0x50aeb1){const _0x52f590=a0_0x54c6,_0x213fb9={'RvExm':function(_0x46c7c4,_0x3647a9){return _0x46c7c4===_0x3647a9;},'DiJRC':_0x52f590(0x227),'ilmFY':function(_0x3bcb9e,_0xafe078,_0x2a092e,_0x1c88db){return _0x3bcb9e(_0xafe078,_0x2a092e,_0x1c88db);},'UOUMR':_0x52f590(0x1e3)+_0x52f590(0x1fc),'lZqXQ':_0x52f590(0x1eb),'pgMmx':_0x52f590(0x1e1)+'ng','MLzmv':_0x52f590(0x21a)+_0x52f590(0x1f0),'codVQ':_0x52f590(0x21f),'MmaLv':_0x52f590(0x1da),'JuwKn':_0x52f590(0x1e2),'nJvwQ':function(_0x54d7a2,_0x54b453){return _0x54d7a2+_0x54b453;},'eyccp':function(_0x3e4c6f,_0x2bf48c){return _0x3e4c6f+_0x2bf48c;}};switch(_0x48ea70[_0x52f590(0x204)]){case _0x213fb9[_0x52f590(0x1fd)]:processInline(_0x48ea70[_0x52f590(0x20c)+'s'],_0x27b4ef,{},_0x50aeb1),_0x27b4ef['push']({'text':'\x0a'});break;case _0x213fb9[_0x52f590(0x201)]:processInline(_0x48ea70[_0x52f590(0x20c)+'s'],_0x27b4ef,{},_0x50aeb1),_0x27b4ef[_0x52f590(0x1f2)]({'text':'\x0a','attributes':{'header':_0x48ea70[_0x52f590(0x1d6)]}});break;case _0x52f590(0x1d8):const _0x9f5400=_0x48ea70[_0x52f590(0x227)]['split']('\x0a');_0x9f5400[_0x52f590(0x212)+'ch']((_0x20bad9,_0x41682d)=>{const _0x375b1d=_0x52f590;_0x20bad9&&_0x27b4ef[_0x375b1d(0x1f2)]({'text':_0x20bad9}),_0x27b4ef[_0x375b1d(0x1f2)]({'text':'\x0a','attributes':{'code-block':!![]}});});break;case _0x52f590(0x22b):_0x48ea70[_0x52f590(0x1e0)][_0x52f590(0x212)+'ch'](_0x421d3f=>{const _0x427394=_0x52f590;_0x421d3f[_0x427394(0x20c)+'s'][_0x427394(0x212)+'ch'](_0xcb27e2=>{const _0x57ace7=_0x427394;_0x213fb9[_0x57ace7(0x1e7)](_0xcb27e2[_0x57ace7(0x204)],_0x213fb9[_0x57ace7(0x209)])?processInline(_0xcb27e2[_0x57ace7(0x20c)+'s']||[],_0x27b4ef,{},_0x50aeb1):_0x213fb9[_0x57ace7(0x20d)](processToken,_0xcb27e2,_0x27b4ef,_0x50aeb1);});let _0x440485=_0x48ea70[_0x427394(0x1db)+'ed']?'order'+'ed':_0x427394(0x22e)+'t';_0x421d3f[_0x427394(0x1f7)]&&(_0x440485=_0x421d3f['check'+'ed']?_0x427394(0x1f9)+'ed':_0x427394(0x20a)+_0x427394(0x208)),_0x27b4ef[_0x427394(0x1f2)]({'text':'\x0a','attributes':{'list':_0x440485}});});break;case _0x213fb9[_0x52f590(0x210)]:_0x48ea70[_0x52f590(0x20c)+'s']&&_0x48ea70['token'+'s'][_0x52f590(0x216)+'h']&&_0x48ea70['token'+'s']['forEa'+'ch'](_0x2aab4e=>{const _0xde720a=_0x52f590;_0x2aab4e[_0xde720a(0x204)]===_0x213fb9['UOUMR']?(processInline(_0x2aab4e[_0xde720a(0x20c)+'s'],_0x27b4ef,{},_0x50aeb1),_0x27b4ef[_0xde720a(0x1f2)]({'text':'\x0a','attributes':{'blockquote':!![]}})):processToken(_0x2aab4e,_0x27b4ef,_0x50aeb1);});break;case _0x213fb9[_0x52f590(0x1df)]:break;case'hr':_0x27b4ef[_0x52f590(0x1f2)]({'text':_0x213fb9[_0x52f590(0x1e5)]});break;case _0x213fb9['JuwKn']:if(_0x48ea70[_0x52f590(0x1fe)+'r']&&_0x48ea70['heade'+'r'][_0x52f590(0x216)+'h']){const _0x2ed41b=_0x48ea70[_0x52f590(0x1fe)+'r'][_0x52f590(0x21c)](_0x5ad01f=>_0x5ad01f['text'])[_0x52f590(0x1d7)](_0x52f590(0x1eb));_0x27b4ef[_0x52f590(0x1f2)]({'text':_0x213fb9['nJvwQ'](_0x2ed41b,'\x0a'),'attributes':{'bold':!![]}}),_0x27b4ef['push']({'text':_0x213fb9[_0x52f590(0x211)](_0x48ea70[_0x52f590(0x1fe)+'r'][_0x52f590(0x21c)](()=>_0x52f590(0x1e6))['join']('|'),'\x0a')});}_0x48ea70[_0x52f590(0x218)]&&_0x48ea70[_0x52f590(0x218)][_0x52f590(0x216)+'h']&&_0x48ea70[_0x52f590(0x218)][_0x52f590(0x212)+'ch'](_0x28a843=>{const _0x18aac7=_0x52f590,_0x21b54e=_0x28a843[_0x18aac7(0x21c)](_0x19eef5=>_0x19eef5[_0x18aac7(0x227)])['join'](_0x213fb9[_0x18aac7(0x222)]);_0x27b4ef[_0x18aac7(0x1f2)]({'text':_0x21b54e+'\x0a'});});break;default:_0x48ea70['text']&&(_0x27b4ef['push']({'text':_0x48ea70[_0x52f590(0x227)]}),_0x27b4ef[_0x52f590(0x1f2)]({'text':'\x0a'}));break;}}function processInline(_0x3da2ed,_0x384c5c,_0x51edb2={},_0x54f7ae=[]){const _0x501cd6=a0_0x54c6,_0x415d9b={'ElrQA':function(_0xad8e8c,_0x1a2e7d){return _0xad8e8c>_0x1a2e7d;},'LBZup':function(_0x2e1306,_0x259a0e){return _0x2e1306+_0x259a0e;},'XLCyO':function(_0x1039c4,_0x1060c4,_0x3fb91a,_0x4b9cfa){return _0x1039c4(_0x1060c4,_0x3fb91a,_0x4b9cfa);},'fvKqR':function(_0x243e73,_0x5475d9){return _0x243e73>_0x5475d9;},'YchOq':function(_0x5df99a,_0x208b1d){return _0x5df99a+_0x208b1d;},'VmriG':function(_0x2767e5,_0x4ae447){return _0x2767e5+_0x4ae447;},'guWSD':function(_0x382709,_0x3ccbae){return _0x382709>_0x3ccbae;},'GDrQs':function(_0x566651,_0x44910d,_0x330569,_0x3f893c,_0x2e1cd6){return _0x566651(_0x44910d,_0x330569,_0x3f893c,_0x2e1cd6);},'QXaxy':function(_0x51158a,_0x28ce2e,_0x4cd62f,_0x5bfe56,_0x5e46ab){return _0x51158a(_0x28ce2e,_0x4cd62f,_0x5bfe56,_0x5e46ab);},'nMkdx':_0x501cd6(0x20f),'cUBFI':_0x501cd6(0x21e)},_0x4c206c=_0x54f7ae[_0x501cd6(0x216)+'h']>0x0?[..._0x54f7ae][_0x501cd6(0x1f4)]((_0x15b80d,_0x3e8e53)=>(_0x3e8e53[_0x501cd6(0x203)+_0x501cd6(0x1ee)]?.[_0x501cd6(0x216)+'h']||0x0)-(_0x15b80d[_0x501cd6(0x203)+_0x501cd6(0x1ee)]?.[_0x501cd6(0x216)+'h']||0x0)):[];_0x3da2ed?.[_0x501cd6(0x212)+'ch'](_0x54c402=>{const _0x43ac73=_0x501cd6;switch(_0x54c402[_0x43ac73(0x204)]){case _0x43ac73(0x227):case _0x43ac73(0x223)+'e':if(_0x4c206c[_0x43ac73(0x216)+'h']>0x0&&_0x54c402['text'][_0x43ac73(0x20e)+_0x43ac73(0x1e9)]('@')){let _0x939521=_0x54c402[_0x43ac73(0x227)];while(_0x415d9b['ElrQA'](_0x939521[_0x43ac73(0x216)+'h'],0x0)){const _0x5b733e=_0x939521['index'+'Of']('@');if(_0x5b733e===-0x1){_0x384c5c[_0x43ac73(0x1f2)]({'text':_0x939521,...Object[_0x43ac73(0x217)](_0x51edb2)[_0x43ac73(0x216)+'h']?{'attributes':{..._0x51edb2}}:{}});break;}_0x415d9b[_0x43ac73(0x1ef)](_0x5b733e,0x0)&&_0x384c5c[_0x43ac73(0x1f2)]({'text':_0x939521[_0x43ac73(0x22a)+'ring'](0x0,_0x5b733e),...Object['keys'](_0x51edb2)[_0x43ac73(0x216)+'h']?{'attributes':{..._0x51edb2}}:{}});const _0x531695=_0x939521[_0x43ac73(0x22a)+_0x43ac73(0x1f8)](_0x5b733e);let _0x231192=null,_0x2f3def=null;const _0x59e8dc=_0x939521[_0x43ac73(0x22a)+_0x43ac73(0x1f8)](_0x415d9b['LBZup'](_0x5b733e,0x1)),_0x45ae84=_0x59e8dc[_0x43ac73(0x215)](/([ ,.!?\n]+)/)['filte'+'r'](_0x294148=>_0x294148);let _0x5ba9fc='',_0x42e59b=0x0;for(let _0xf5c95e=0x0;_0xf5c95e<Math[_0x43ac73(0x1ed)](_0x45ae84[_0x43ac73(0x216)+'h'],0x6);_0xf5c95e++){_0x5ba9fc+=_0x45ae84[_0xf5c95e],_0x42e59b+=_0x45ae84[_0xf5c95e][_0x43ac73(0x216)+'h'];if(/^[ ,.!?\n]/[_0x43ac73(0x214)](_0x45ae84[_0xf5c95e]))continue;const _0x4dfc3f=_0x415d9b[_0x43ac73(0x200)](findBestMatchInArray,_0x54f7ae,_0x5ba9fc['trim'](),_0xc9b780=>_0xc9b780[_0x43ac73(0x203)+_0x43ac73(0x1ee)]||_0xc9b780[_0x43ac73(0x1dc)]);_0x4dfc3f&&_0x4dfc3f[_0x43ac73(0x1f5)+_0x43ac73(0x1d9)+'t']['isMat'+'ch']&&_0x4dfc3f[_0x43ac73(0x1f5)+_0x43ac73(0x1d9)+'t'][_0x43ac73(0x1ec)]>=0x32&&((!_0x2f3def||_0x415d9b[_0x43ac73(0x21d)](_0x4dfc3f['match'+'Resul'+'t']['score'],_0x2f3def['score']))&&(_0x2f3def={'member':_0x4dfc3f[_0x43ac73(0x213)],'score':_0x4dfc3f[_0x43ac73(0x1f5)+'Resul'+'t'][_0x43ac73(0x1ec)],'length':_0x42e59b}));}if(_0x2f3def)_0x231192=_0x2f3def[_0x43ac73(0x1fb)+'r'];else for(const _0xe317af of _0x4c206c){const _0x2fcc89=_0xe317af[_0x43ac73(0x203)+_0x43ac73(0x1ee)]||_0xe317af[_0x43ac73(0x1dc)];if(_0x2fcc89&&_0x531695['toLow'+_0x43ac73(0x224)+'e']()[_0x43ac73(0x1ff)+_0x43ac73(0x202)](_0x415d9b[_0x43ac73(0x22d)]('@',_0x2fcc89['toLow'+_0x43ac73(0x224)+'e']()))){_0x231192=_0xe317af,_0x2f3def={'member':_0xe317af,'score':0x64,'length':_0x415d9b[_0x43ac73(0x205)](0x1,_0x2fcc89[_0x43ac73(0x216)+'h'])};break;}}if(_0x231192){_0x384c5c[_0x43ac73(0x1f2)]({'text':'@'+(_0x231192['usern'+_0x43ac73(0x1ee)]||_0x231192[_0x43ac73(0x1dc)]),'type':'tag','user':{'id':_0x231192['id']}});const _0x3cf0a3=_0x2f3def?_0x2f3def['lengt'+'h']:(_0x231192[_0x43ac73(0x203)+_0x43ac73(0x1ee)]||_0x231192[_0x43ac73(0x1dc)])['lengt'+'h'];_0x939521=_0x939521[_0x43ac73(0x22a)+_0x43ac73(0x1f8)](_0x415d9b[_0x43ac73(0x205)](_0x5b733e+0x1,_0x2f3def?_0x2f3def[_0x43ac73(0x216)+'h']:(_0x231192['usern'+_0x43ac73(0x1ee)]||_0x231192[_0x43ac73(0x1dc)])['lengt'+'h']));}else _0x384c5c[_0x43ac73(0x1f2)]({'text':'@',...Object[_0x43ac73(0x217)](_0x51edb2)[_0x43ac73(0x216)+'h']?{'attributes':{..._0x51edb2}}:{}}),_0x939521=_0x939521[_0x43ac73(0x22a)+_0x43ac73(0x1f8)](_0x415d9b[_0x43ac73(0x22c)](_0x5b733e,0x1));}}else _0x384c5c[_0x43ac73(0x1f2)]({'text':_0x54c402[_0x43ac73(0x227)],..._0x415d9b[_0x43ac73(0x1f1)](Object[_0x43ac73(0x217)](_0x51edb2)[_0x43ac73(0x216)+'h'],0x0)?{'attributes':{..._0x51edb2}}:{}});break;case _0x43ac73(0x21b)+'g':_0x415d9b[_0x43ac73(0x1e4)](processInline,_0x54c402[_0x43ac73(0x20c)+'s'],_0x384c5c,{..._0x51edb2,'bold':!![]},_0x54f7ae);break;case'em':processInline(_0x54c402[_0x43ac73(0x20c)+'s'],_0x384c5c,{..._0x51edb2,'italic':!![]},_0x54f7ae);break;case'codes'+_0x43ac73(0x20b):_0x384c5c[_0x43ac73(0x1f2)]({'text':_0x54c402[_0x43ac73(0x227)],'attributes':{..._0x51edb2,'code':!![]}});break;case'br':_0x384c5c[_0x43ac73(0x1f2)]({'text':'\x0a'});break;case _0x43ac73(0x219):_0x415d9b[_0x43ac73(0x1ea)](processInline,_0x54c402['token'+'s'],_0x384c5c,{..._0x51edb2,'strike':!![]},_0x54f7ae);break;case _0x415d9b['nMkdx']:_0x384c5c['push']({'text':_0x54c402[_0x43ac73(0x227)],'attributes':{..._0x51edb2,'link':_0x54c402[_0x43ac73(0x206)]}});break;case _0x415d9b[_0x43ac73(0x1e8)]:_0x384c5c[_0x43ac73(0x1f2)]({'text':_0x43ac73(0x226)+'e:\x20'+(_0x54c402[_0x43ac73(0x227)]||_0x415d9b[_0x43ac73(0x1f3)])+']','attributes':{..._0x51edb2,'link':_0x54c402[_0x43ac73(0x206)]}});break;default:_0x54c402[_0x43ac73(0x227)]&&_0x384c5c['push']({'text':_0x54c402['text'],..._0x415d9b[_0x43ac73(0x1ef)](Object['keys'](_0x51edb2)[_0x43ac73(0x216)+'h'],0x0)?{'attributes':{..._0x51edb2}}:{}});}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x27bd73=a0_0x1abd;(function(_0xf3d8cd,_0x2da788){const _0x1430ff=a0_0x1abd,_0x3584a3=_0xf3d8cd();while(!![]){try{const _0x165022=-parseInt(_0x1430ff(0xcc))/0x1*(parseInt(_0x1430ff(0xcd))/0x2)+-parseInt(_0x1430ff(0xca))/0x3*(-parseInt(_0x1430ff(0xa5))/0x4)+parseInt(_0x1430ff(0x7a))/0x5+parseInt(_0x1430ff(0xe1))/0x6*(-parseInt(_0x1430ff(0xd3))/0x7)+-parseInt(_0x1430ff(0xbd))/0x8*(-parseInt(_0x1430ff(0xf0))/0x9)+-parseInt(_0x1430ff(0xe0))/0xa*(parseInt(_0x1430ff(0x92))/0xb)+parseInt(_0x1430ff(0xb1))/0xc;if(_0x165022===_0x2da788)break;else _0x3584a3['push'](_0x3584a3['shift']());}catch(_0x562482){_0x3584a3['push'](_0x3584a3['shift']());}}}(a0_0x2567,0x4d53b));import{toTaskPriority}from'../../services/clickup/types.js';import{parseDueDate,parseFilterDate,hasExplicitTime}from'../utils.js';export{parseDueDate,parseFilterDate,hasExplicitTime};import{validateListIdentification,resolveListIdWithValidation,getTaskId}from'./utilities.js';import{resolveMember}from'../../utils/resolver-utils.js';function a0_0x1abd(_0x48ee7a,_0x236d22){_0x48ee7a=_0x48ee7a-0x76;const _0x25673c=a0_0x2567();let _0x1abd29=_0x25673c[_0x48ee7a];if(a0_0x1abd['oNhBvT']===undefined){var _0x5e3803=function(_0x52846a){const _0x336293='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xb9db61='',_0x43d730='';for(let _0x3cb874=0x0,_0x2cfff,_0x351f39,_0x19b147=0x0;_0x351f39=_0x52846a['charAt'](_0x19b147++);~_0x351f39&&(_0x2cfff=_0x3cb874%0x4?_0x2cfff*0x40+_0x351f39:_0x351f39,_0x3cb874++%0x4)?_0xb9db61+=String['fromCharCode'](0xff&_0x2cfff>>(-0x2*_0x3cb874&0x6)):0x0){_0x351f39=_0x336293['indexOf'](_0x351f39);}for(let _0x574e1a=0x0,_0x45ba7c=_0xb9db61['length'];_0x574e1a<_0x45ba7c;_0x574e1a++){_0x43d730+='%'+('00'+_0xb9db61['charCodeAt'](_0x574e1a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x43d730);};a0_0x1abd['FqVpwQ']=_0x5e3803,a0_0x1abd['zsPRJD']={},a0_0x1abd['oNhBvT']=!![];}const _0xa7cbdf=_0x25673c[0x0],_0x4c904b=_0x48ee7a+_0xa7cbdf,_0x5854ba=a0_0x1abd['zsPRJD'][_0x4c904b];return!_0x5854ba?(_0x1abd29=a0_0x1abd['FqVpwQ'](_0x1abd29),a0_0x1abd['zsPRJD'][_0x4c904b]=_0x1abd29):_0x1abd29=_0x5854ba,_0x1abd29;}import{Logger}from'../../logger.js';const logger=new Logger(a0_0x27bd73(0xa4)+a0_0x27bd73(0xd5));function unescapeString(_0x550cdb){const _0xe7e122=a0_0x27bd73;return _0x550cdb?_0x550cdb[_0xe7e122(0x8e)+'ce'](/\\n/g,'\x0a')[_0xe7e122(0x8e)+'ce'](/\\t/g,'\x09')[_0xe7e122(0x8e)+'ce'](/\\r/g,'\x0d'):_0x550cdb;}export const WORKSPACE_TASKS_TOKEN_LIMIT=0xc350;export function parseTimeEstimate(_0x2ee0c0){const _0x5e2354=a0_0x27bd73,_0x5a7380={'kAvze':function(_0x47b876,_0x12161e){return _0x47b876===_0x12161e;},'vuZKg':_0x5e2354(0x83),'yxBlz':_0x5e2354(0xc3)+'r','Gfrpb':function(_0x42b5cc,_0x1e5b94){return _0x42b5cc*_0x1e5b94;},'tBPtd':function(_0x764b56,_0x4e8926){return _0x764b56===_0x4e8926;},'DEZXr':function(_0x2f9bf4,_0x393bba){return _0x2f9bf4(_0x393bba);},'bNVkx':function(_0x2c45f0,_0x4d5d44,_0x3dbcc2){return _0x2c45f0(_0x4d5d44,_0x3dbcc2);},'zgLGy':function(_0x25b104,_0x37fc47){return _0x25b104*_0x37fc47;}};if(_0x2ee0c0===undefined)return undefined;if(_0x5a7380[_0x5e2354(0x9a)](_0x2ee0c0,null)||_0x2ee0c0===_0x5a7380[_0x5e2354(0x77)])return null;if(_0x5a7380[_0x5e2354(0x9a)](typeof _0x2ee0c0,_0x5a7380[_0x5e2354(0xe2)]))return _0x5a7380[_0x5e2354(0xee)](_0x2ee0c0*0x3c,0x3e8);const _0x30535e=_0x2ee0c0[_0x5e2354(0xc4)]();if(_0x5a7380[_0x5e2354(0x8a)](_0x30535e,''))return undefined;if(/^\d+(\.\d+)?$/[_0x5e2354(0x93)](_0x30535e))return Math[_0x5e2354(0xf1)](_0x5a7380[_0x5e2354(0xee)](_0x5a7380[_0x5e2354(0xd7)](parseFloat,_0x30535e)*0x3c,0x3e8));let _0x184633=0x0;const _0xd741c0=_0x30535e['match'](/(\d+\.?\d*)h/);_0xd741c0&&(_0x184633+=_0x5a7380[_0x5e2354(0xee)](_0x5a7380[_0x5e2354(0xd7)](parseFloat,_0xd741c0[0x1]),0x3c));const _0x1b2563=_0x30535e[_0x5e2354(0xd0)](/(\d+)m/);_0x1b2563&&(_0x184633+=_0x5a7380[_0x5e2354(0x9f)](parseInt,_0x1b2563[0x1],0xa));if(!_0xd741c0&&!_0x1b2563)return undefined;return Math[_0x5e2354(0xf1)](_0x5a7380[_0x5e2354(0xb5)](_0x184633*0x3c,0x3e8));}function a0_0x2567(){const _0x519cff=['mZa5nZyZmNPOwfzbCq','DKr5B0u','BMvLCW','zcb0BYa','EMDmr3K','ChrPB24','CgfYC2u','ywXS','DhDcD0m','BgrZ','DvrJCNG','BwuGyxm','mtzxwgH3rwu','BwfYA2q','De5HBwu','A190Exa','rvL0Bxe','CgfNzq','BNvTyMu','DhjPBq','B250zw4','DgfZA3m','D29YA3m','C2LNBMu','B25L','mtv0BhjZCLu','B3jKzxi','mta5n3nluvLqqq','otu2ugLYzxni','rMfPBgu','C3vIDge','Bwf0y2G','x2rHDgu','z25Lzxm','mtG5mZaXA3fwChv4','Axr5','yxjHBxm','zxnJCMK','revAwhi','DgLTzxO','yvrTv2u','zhvLx2q','Bv90yxm','x3rPBwu','sgjuDMy','Aw5N','ChjPB3i','mtbZwg1Ou1a','nMjvqwrRvq','ExHcBhO','ChvZAa','AxnbCNi','vgfZAYa','Bv9MAwu','CMvZB2W','y2vPBa','y3vZDg8','zhvLrge','zxn0Aw0','t2PAy0G','zgvZy3i','r2zYCgi','Dgv4Df8','mJi3otG1m1zmAu9nsG','CM91BMq','C3rHDhu','DNvAs2C','yxrL','rgf0zq','mJC5ndaWnvPQuwzNra','Dg9tDhi','AxmGCMu','yxnZAwC','ihn0CMK','CM9Muxm','AeDez1i','whjdtNO','DfLztgi','BNvSBa','thD5uNe','AuXgzum','CgfYzw4','zgDlDeu','C3rHCNq','DgLTzv8','DejqDgq','DeXPC3q','BwvZC2e','D2fYBG','CMvWBge','y0zLBeG','Aw1L','BvLmC2C','nJm1mJeYnNrqExvoCa','DgvZDa','BgvUz3q','BMfTzq','yxrLx3q','serrz1e','DMuGC28','B3DUx2q','A0f2EMu','CgfJzq','vhvsD3q','C3rYAw4','BwfW','yK5wA3G','uxngwhu','igfZC2K','Axb0Aw8','CMvKDwm','vgfZA1a','otC2mJHlAgTlrfq','CxvPCMu','twT6re0','DfHsAgS','AfPoA2K','C2TZ','y29UDgu','BMfTzsa','t1D1tMy','vLnPuge','wg1ksxC','B3DUx2m'];a0_0x2567=function(){return _0x519cff;};return a0_0x2567();}export async function resolveAssignees(_0x14baa1,_0x39e006){const _0x4a1aed=a0_0x27bd73,_0x113097={'tXRhk':function(_0x8bf312,_0x5042f5,_0x3e4ddc){return _0x8bf312(_0x5042f5,_0x3e4ddc);},'QsFXu':function(_0x227c29,_0x147fd6){return _0x227c29===_0x147fd6;},'rofQs':function(_0x5e7008,_0x8d789c){return _0x5e7008===_0x8d789c;},'MkzDM':function(_0x286bec,_0x4fabd6,_0x33692a){return _0x286bec(_0x4fabd6,_0x33692a);},'HbTvf':function(_0x22bc9a,_0x3622ee){return _0x22bc9a(_0x3622ee);},'OWuNf':function(_0x3ebc3d,_0xc38472){return _0x3ebc3d>_0xc38472;},'aTmWe':function(_0x16cecb,_0x47c26b){return _0x16cecb!==_0x47c26b;},'tYYLb':_0x4a1aed(0xce)+'d\x20to\x20'+_0x4a1aed(0xe7)+_0x4a1aed(0x98)+_0x4a1aed(0xbc)+_0x4a1aed(0xc8)+'es'};if(!_0x14baa1||!Array[_0x4a1aed(0xe4)+'ay'](_0x14baa1)||_0x113097[_0x4a1aed(0xa0)](_0x14baa1[_0x4a1aed(0x94)+'h'],0x0))return[];const _0x1921b6=[],_0x51155=[];for(const _0xe109a3 of _0x14baa1){if(_0x113097[_0x4a1aed(0x7f)](typeof _0xe109a3,_0x4a1aed(0xc3)+'r'))_0x1921b6[_0x4a1aed(0xe3)](_0xe109a3);else{if(_0x113097[_0x4a1aed(0x7f)](typeof _0xe109a3,_0x4a1aed(0x9d)+'g')){const _0x2562c3=_0x113097[_0x4a1aed(0xa7)](parseInt,_0xe109a3,0xa);!_0x113097[_0x4a1aed(0xdd)](isNaN,_0x2562c3)&&_0x2562c3[_0x4a1aed(0x7b)+_0x4a1aed(0xde)]()===_0xe109a3?_0x1921b6['push'](_0x2562c3):_0x51155[_0x4a1aed(0xe3)](_0xe109a3);}}}if(_0x113097[_0x4a1aed(0xad)](_0x51155[_0x4a1aed(0x94)+'h'],0x0))try{const _0x1af0e9=await Promise[_0x4a1aed(0xb8)](_0x51155[_0x4a1aed(0x9e)](async _0x341d89=>{const _0x446c71=_0x4a1aed;try{const _0x579dd9=await _0x113097[_0x446c71(0xa8)](resolveMember,_0x341d89,_0x39e006[_0x446c71(0xc7)+_0x446c71(0x9b)]);return Number(_0x579dd9['id']);}catch(_0x52770f){return null;}}));for(const _0x29f88a of _0x1af0e9){_0x113097[_0x4a1aed(0xd9)](_0x29f88a,null)&&!isNaN(_0x29f88a)&&_0x1921b6[_0x4a1aed(0xe3)](_0x29f88a);}}catch(_0x46f26c){logger[_0x4a1aed(0x8d)](_0x113097[_0x4a1aed(0x82)],{'error':_0x46f26c['messa'+'ge']});}return _0x1921b6;}export async function prepareCreateTaskData(_0x360d92,_0x388428){const _0x1b89b8=a0_0x27bd73,_0x3baccf={'XrCNz':_0x1b89b8(0xe5)+_0x1b89b8(0xac)+_0x1b89b8(0x7c)+_0x1b89b8(0xa6)+'d','VSiPa':function(_0x1da9ba,_0x1c5ca2){return _0x1da9ba&&_0x1c5ca2;},'mhPoJ':function(_0x4e80f8,_0x423c72,_0x8a33ad,_0x53452d,_0x24181a,_0x4504a8,_0x4d0637,_0xa137e2){return _0x4e80f8(_0x423c72,_0x8a33ad,_0x53452d,_0x24181a,_0x4504a8,_0x4d0637,_0xa137e2);},'KvObv':function(_0x2d7c6b,_0x282263){return _0x2d7c6b===_0x282263;},'LwyRq':function(_0x2e980c,_0x596043,_0x400818){return _0x2e980c(_0x596043,_0x400818);},'hZNki':function(_0x90a0d9,_0x4eff6c){return _0x90a0d9(_0x4eff6c);},'iLFeC':function(_0x15c70b,_0x96413){return _0x15c70b(_0x96413);},'vDyoE':function(_0x4fb327,_0x7a14b3){return _0x4fb327(_0x7a14b3);}},{name:_0x432f51,description:_0x5eccc6,markdown_description:_0x47c6f0,status:_0x1d83f0,dueDate:_0x37aefb,startDate:_0x5cb35a,time_estimate:_0x1e812a,parent:_0x3aea08,parentName:_0x369535,parentListName:_0x423ea5,tags:_0x3f9987,custom_fields:_0xb9edc1,check_required_custom_fields:_0x2480e9,assignees:_0x2a3ce7,custom_task_type:_0x16cc9c,subtasks:_0x523ea0}=_0x360d92;if(!_0x432f51)throw new Error(_0x3baccf[_0x1b89b8(0x81)]);let _0x3798b3=_0x3aea08;_0x3baccf[_0x1b89b8(0xae)](!_0x3798b3,_0x369535)&&(_0x3798b3=await _0x3baccf['mhPoJ'](getTaskId,undefined,undefined,_0x369535,_0x423ea5,undefined,![],_0x388428));let _0x2b8a65=undefined;if(_0x2a3ce7){let _0x502074=_0x2a3ce7;if(_0x3baccf['KvObv'](typeof _0x2a3ce7,'strin'+'g'))try{_0x502074=JSON[_0x1b89b8(0xb7)](_0x2a3ce7);}catch(_0x8457fd){logger['warn'](_0x1b89b8(0xce)+'d\x20to\x20'+_0x1b89b8(0xb7)+_0x1b89b8(0xa1)+'gnees'+_0x1b89b8(0x7e)+'ng',{'assignees':_0x2a3ce7,'error':_0x8457fd[_0x1b89b8(0x8c)+'ge']}),_0x502074=[];}_0x2b8a65=await _0x3baccf[_0x1b89b8(0x84)](resolveAssignees,_0x502074,_0x388428);}const _0x43a230={'name':_0x432f51,'description':unescapeString(_0x5eccc6),'markdown_description':_0x3baccf[_0x1b89b8(0xa9)](unescapeString,_0x47c6f0),'status':_0x1d83f0,'parent':_0x3798b3,'tags':_0x3f9987,'custom_fields':_0xb9edc1,'check_required_custom_fields':_0x2480e9,'assignees':_0x2b8a65,'custom_task_type':_0x16cc9c},_0x5923f1=toTaskPriority(_0x360d92[_0x1b89b8(0xdf)+'ity']);return _0x5923f1!==undefined&&(_0x43a230['prior'+_0x1b89b8(0xd4)]=_0x5923f1),_0x37aefb&&(_0x43a230[_0x1b89b8(0xda)+_0x1b89b8(0x78)]=parseDueDate(_0x3baccf[_0x1b89b8(0x85)](String,_0x37aefb),undefined,_0x388428['timez'+_0x1b89b8(0xc9)]),_0x43a230[_0x1b89b8(0xda)+_0x1b89b8(0x96)+_0x1b89b8(0x90)]=hasExplicitTime(_0x3baccf[_0x1b89b8(0x85)](String,_0x37aefb))),_0x5cb35a&&(_0x43a230[_0x1b89b8(0x88)+_0x1b89b8(0xd1)]=parseDueDate(_0x3baccf[_0x1b89b8(0xa9)](String,_0x5cb35a),undefined,_0x388428[_0x1b89b8(0xd8)+_0x1b89b8(0xc9)]),_0x43a230[_0x1b89b8(0x88)+_0x1b89b8(0xd1)+_0x1b89b8(0xdc)]=_0x3baccf['vDyoE'](hasExplicitTime,_0x3baccf[_0x1b89b8(0xb2)](String,_0x5cb35a))),_0x1e812a!==undefined&&(_0x43a230[_0x1b89b8(0x89)+_0x1b89b8(0xeb)+_0x1b89b8(0x78)]=parseTimeEstimate(_0x1e812a)),_0x523ea0&&Array['isArr'+'ay'](_0x523ea0)&&_0x523ea0[_0x1b89b8(0x94)+'h']>0x0&&(_0x43a230[_0x1b89b8(0xcf)+'sks']=await Promise[_0x1b89b8(0xb8)](_0x523ea0['map'](_0x10c414=>prepareCreateTaskData(_0x10c414,_0x388428)))),_0x43a230;}export async function buildUpdateData(_0x16ccb1,_0x128b2f){const _0x5be32c=a0_0x27bd73,_0x2dc728={'twBwC':function(_0x2e5afc,_0x188237){return _0x2e5afc!==_0x188237;},'hGDgR':function(_0x5c1bd5,_0x2f0d02){return _0x5c1bd5!==_0x2f0d02;},'cFelH':function(_0x237e45,_0x141749){return _0x237e45(_0x141749);},'mYLsg':function(_0x541308,_0x50085){return _0x541308(_0x50085);},'qWwdl':function(_0x14f706,_0x58b224,_0x47e07a,_0x459b5f){return _0x14f706(_0x58b224,_0x47e07a,_0x459b5f);},'cSxMr':function(_0x1a91f4,_0x4693c8){return _0x1a91f4(_0x4693c8);},'dgKtE':function(_0x37597d,_0x1b2ff2){return _0x37597d(_0x1b2ff2);},'CklHt':function(_0x1a4386,_0x2c6e7a){return _0x1a4386!==_0x2c6e7a;},'OjZcH':_0x5be32c(0x9d)+'g','TuRwt':function(_0x33207a,_0x2a6f17){return _0x33207a!==_0x2a6f17;},'wokHH':function(_0x36030a,_0x4fa968){return _0x36030a!==_0x4fa968;}},_0x9cfa17={};if(_0x16ccb1[_0x5be32c(0x95)]!==undefined)_0x9cfa17[_0x5be32c(0x95)]=_0x16ccb1[_0x5be32c(0x95)];if(_0x2dc728[_0x5be32c(0xb9)](_0x16ccb1[_0x5be32c(0xed)+'iptio'+'n'],undefined)){const _0xc4c53b=unescapeString(_0x16ccb1[_0x5be32c(0xed)+_0x5be32c(0xa2)+'n']);_0x9cfa17['descr'+_0x5be32c(0xa2)+'n']=_0xc4c53b,_0x9cfa17[_0x5be32c(0xbe)+'own_c'+'onten'+'t']=_0xc4c53b,_0x9cfa17['markd'+_0x5be32c(0x99)+_0x5be32c(0xd6)+'ption']=_0xc4c53b;}if(_0x2dc728[_0x5be32c(0xb9)](_0x16ccb1['markd'+_0x5be32c(0x99)+_0x5be32c(0xd6)+_0x5be32c(0xb6)],undefined))_0x9cfa17[_0x5be32c(0xbe)+'own_d'+'escri'+_0x5be32c(0xb6)]=unescapeString(_0x16ccb1[_0x5be32c(0xbe)+'own_d'+_0x5be32c(0xd6)+_0x5be32c(0xb6)]);if(_0x16ccb1['markd'+_0x5be32c(0xb0)+_0x5be32c(0xc5)+'t']!==undefined)_0x9cfa17['markd'+_0x5be32c(0xb0)+_0x5be32c(0xc5)+'t']=_0x16ccb1[_0x5be32c(0xbe)+_0x5be32c(0xb0)+'onten'+'t'];if(_0x16ccb1[_0x5be32c(0x76)+'s']!==undefined)_0x9cfa17['statu'+'s']=_0x16ccb1['statu'+'s'];if(_0x16ccb1[_0x5be32c(0xe9)+_0x5be32c(0xdb)+_0x5be32c(0xc0)+'e']!==undefined)_0x9cfa17[_0x5be32c(0xe9)+_0x5be32c(0xdb)+_0x5be32c(0xc0)+'e']=_0x16ccb1['custo'+_0x5be32c(0xdb)+_0x5be32c(0xc0)+'e'];_0x2dc728[_0x5be32c(0x80)](_0x16ccb1[_0x5be32c(0xdf)+_0x5be32c(0xd4)],undefined)&&(_0x9cfa17['prior'+_0x5be32c(0xd4)]=toTaskPriority(_0x16ccb1[_0x5be32c(0xdf)+_0x5be32c(0xd4)]));if(_0x16ccb1['dueDa'+'te']!==undefined){const _0x8beb3a=parseDueDate(_0x2dc728[_0x5be32c(0x8f)](String,_0x16ccb1[_0x5be32c(0xea)+'te']),undefined,_0x128b2f['timez'+_0x5be32c(0xc9)]);_0x8beb3a!==undefined?(_0x9cfa17[_0x5be32c(0xda)+_0x5be32c(0x78)]=_0x8beb3a,_0x9cfa17[_0x5be32c(0xda)+'ate_t'+_0x5be32c(0x90)]=_0x2dc728[_0x5be32c(0x91)](hasExplicitTime,_0x2dc728['mYLsg'](String,_0x16ccb1[_0x5be32c(0xea)+'te']))):(_0x9cfa17['due_d'+_0x5be32c(0x78)]=null,_0x9cfa17[_0x5be32c(0xda)+_0x5be32c(0x96)+_0x5be32c(0x90)]=![]);}if(_0x16ccb1[_0x5be32c(0x88)+_0x5be32c(0x79)]!==undefined){const _0x521fad=_0x2dc728['qWwdl'](parseDueDate,String(_0x16ccb1['start'+_0x5be32c(0x79)]),undefined,_0x128b2f[_0x5be32c(0xd8)+'one']);_0x2dc728[_0x5be32c(0xb9)](_0x521fad,undefined)?(_0x9cfa17[_0x5be32c(0x88)+_0x5be32c(0xd1)]=_0x521fad,_0x9cfa17[_0x5be32c(0x88)+_0x5be32c(0xd1)+_0x5be32c(0xdc)]=_0x2dc728['cSxMr'](hasExplicitTime,_0x2dc728[_0x5be32c(0x87)](String,_0x16ccb1[_0x5be32c(0x88)+'Date']))):(_0x9cfa17[_0x5be32c(0x88)+_0x5be32c(0xd1)]=null,_0x9cfa17['start'+'_date'+_0x5be32c(0xdc)]=![]);}if(_0x16ccb1[_0x5be32c(0x89)+'estim'+'ate']!==undefined){const _0x37c7aa=parseTimeEstimate(_0x16ccb1[_0x5be32c(0x89)+_0x5be32c(0xeb)+_0x5be32c(0x78)]);_0x9cfa17[_0x5be32c(0x89)+_0x5be32c(0xeb)+'ate']=_0x37c7aa;}_0x2dc728['CklHt'](_0x16ccb1['custo'+'m_fie'+'lds'],undefined)&&(_0x9cfa17[_0x5be32c(0xe9)+'m_fie'+_0x5be32c(0xba)]=_0x16ccb1['custo'+_0x5be32c(0xe6)+_0x5be32c(0xba)]);if(_0x16ccb1[_0x5be32c(0x7d)+_0x5be32c(0xb3)]!==undefined){let _0x25df08=_0x16ccb1['assig'+_0x5be32c(0xb3)];if(typeof _0x16ccb1[_0x5be32c(0x7d)+_0x5be32c(0xb3)]===_0x2dc728[_0x5be32c(0xec)])try{_0x25df08=JSON[_0x5be32c(0xb7)](_0x16ccb1[_0x5be32c(0x7d)+_0x5be32c(0xb3)]);}catch(_0x4bdb51){logger[_0x5be32c(0x8d)](_0x5be32c(0xce)+_0x5be32c(0xb4)+_0x5be32c(0xb7)+_0x5be32c(0xa1)+_0x5be32c(0xd2)+'\x20stri'+'ng',{'assignees':_0x16ccb1[_0x5be32c(0x7d)+'nees'],'error':_0x4bdb51['messa'+'ge']}),_0x25df08=[];}const _0x31116b=await resolveAssignees(_0x25df08,_0x128b2f);_0x9cfa17[_0x5be32c(0x7d)+_0x5be32c(0xb3)]=_0x31116b;}if(_0x2dc728[_0x5be32c(0x9c)](_0x16ccb1[_0x5be32c(0x86)+'t'],undefined))_0x9cfa17['paren'+'t']=_0x16ccb1['paren'+'t'];else{if(_0x2dc728['wokHH'](_0x16ccb1[_0x5be32c(0x86)+'tName'],undefined)){const _0xe6bc72=await getTaskId(undefined,undefined,_0x16ccb1[_0x5be32c(0x86)+_0x5be32c(0xbf)],_0x16ccb1['paren'+_0x5be32c(0x8b)+'Name'],undefined,![],_0x128b2f);_0x9cfa17['paren'+'t']=_0xe6bc72;}}return _0x9cfa17;}export async function getListId(_0x5ee086,_0x5d8994,_0x5bca84){return validateListIdentification(_0x5ee086,_0x5d8994),await resolveListIdWithValidation(_0x5ee086,_0x5d8994,_0x5bca84);}export function buildTaskFilters(_0x5ac3e7){const _0x4c713b=a0_0x27bd73,_0x4ab75a={'uTcrx':function(_0x1be60c,_0x3a2df3){return _0x1be60c!==_0x3a2df3;},'HDQgQ':function(_0x3f1a61,_0x3ea215){return _0x3f1a61!==_0x3ea215;},'EYtmq':function(_0x55e936,_0x104125){return _0x55e936!==_0x104125;}},{subtasks:_0x4a5daa,statuses:_0x2658e4,page:_0x32993c,order_by:_0x28d4c0,reverse:_0x1ca656,custom_task_types:_0x217ad6}=_0x5ac3e7,_0x104d4e={};if(_0x4ab75a[_0x4c713b(0xbb)](_0x4a5daa,undefined))_0x104d4e[_0x4c713b(0xcf)+_0x4c713b(0xaa)]=_0x4a5daa;if(_0x4ab75a[_0x4c713b(0xbb)](_0x2658e4,undefined))_0x104d4e[_0x4c713b(0x76)+'ses']=_0x2658e4;if(_0x32993c!==undefined)_0x104d4e[_0x4c713b(0xc2)]=_0x32993c;if(_0x4ab75a[_0x4c713b(0x97)](_0x28d4c0,undefined))_0x104d4e[_0x4c713b(0xcb)+'_by']=_0x28d4c0;if(_0x1ca656!==undefined)_0x104d4e['rever'+'se']=_0x1ca656;if(_0x4ab75a[_0x4c713b(0xc1)](_0x217ad6,undefined))_0x104d4e[_0x4c713b(0xe9)+_0x4c713b(0xdb)+'k_typ'+'es']=_0x217ad6;return _0x104d4e;}export function estimateTaskResponseTokens(_0xbc406e){const _0x17af0f=a0_0x27bd73,_0x411e0e={'XmJIw':function(_0x3cfa49,_0x368e79){return _0x3cfa49/_0x368e79;}};let _0x3fed30=0x0;return _0x3fed30+=(_0xbc406e[_0x17af0f(0x95)]?.['lengt'+'h']||0x0)/0x4,_0x3fed30+=(_0xbc406e[_0x17af0f(0xed)+_0x17af0f(0xa2)+'n']?.[_0x17af0f(0x94)+'h']||0x0)/0x4,_0x3fed30+=_0x411e0e[_0x17af0f(0xaf)](_0xbc406e[_0x17af0f(0xef)+_0x17af0f(0xab)+'nt']?.[_0x17af0f(0x94)+'h']||0x0,0x4),_0x3fed30+=0x5,_0xbc406e[_0x17af0f(0xe9)+_0x17af0f(0xe6)+_0x17af0f(0xba)]&&(_0x3fed30+=Object['keys'](_0xbc406e[_0x17af0f(0xe9)+_0x17af0f(0xe6)+_0x17af0f(0xba)])[_0x17af0f(0x94)+'h']*0xa),_0x3fed30*=1.1,Math[_0x17af0f(0xe8)](_0x3fed30);}export function wouldExceedTokenLimit(_0x5667a4){const _0x2cdc4f=a0_0x27bd73;if(!_0x5667a4[_0x2cdc4f(0xc6)]?.[_0x2cdc4f(0x94)+'h'])return![];const _0x359241=_0x5667a4[_0x2cdc4f(0xc6)][_0x2cdc4f(0xa3)+'e']((_0x5b7497,_0x301e98)=>_0x5b7497+estimateTaskResponseTokens(_0x301e98),0x0),_0x146974=_0x359241*1.1;return _0x146974>WORKSPACE_TASKS_TOKEN_LIMIT;}
|
|
1
|
+
function a0_0x2f09(_0x1d4c3a,_0x4cb678){_0x1d4c3a=_0x1d4c3a-0xbd;const _0x3e1af4=a0_0x3e1a();let _0x2f09ba=_0x3e1af4[_0x1d4c3a];if(a0_0x2f09['FPDbxP']===undefined){var _0x1d3587=function(_0x52ad79){const _0x2a7c56='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x205b34='',_0x23840e='';for(let _0x18ec6a=0x0,_0x3f8573,_0x7297bd,_0x1e3a66=0x0;_0x7297bd=_0x52ad79['charAt'](_0x1e3a66++);~_0x7297bd&&(_0x3f8573=_0x18ec6a%0x4?_0x3f8573*0x40+_0x7297bd:_0x7297bd,_0x18ec6a++%0x4)?_0x205b34+=String['fromCharCode'](0xff&_0x3f8573>>(-0x2*_0x18ec6a&0x6)):0x0){_0x7297bd=_0x2a7c56['indexOf'](_0x7297bd);}for(let _0x296912=0x0,_0x533314=_0x205b34['length'];_0x296912<_0x533314;_0x296912++){_0x23840e+='%'+('00'+_0x205b34['charCodeAt'](_0x296912)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23840e);};a0_0x2f09['NIaBCi']=_0x1d3587,a0_0x2f09['ptDFMK']={},a0_0x2f09['FPDbxP']=!![];}const _0x3e145f=_0x3e1af4[0x0],_0x2d6ea7=_0x1d4c3a+_0x3e145f,_0x3a0a7c=a0_0x2f09['ptDFMK'][_0x2d6ea7];return!_0x3a0a7c?(_0x2f09ba=a0_0x2f09['NIaBCi'](_0x2f09ba),a0_0x2f09['ptDFMK'][_0x2d6ea7]=_0x2f09ba):_0x2f09ba=_0x3a0a7c,_0x2f09ba;}const a0_0x4341db=a0_0x2f09;(function(_0x39a772,_0x37931f){const _0xbaeb04=a0_0x2f09,_0x232683=_0x39a772();while(!![]){try{const _0x5e6568=-parseInt(_0xbaeb04(0x100))/0x1*(parseInt(_0xbaeb04(0xe9))/0x2)+-parseInt(_0xbaeb04(0x122))/0x3+parseInt(_0xbaeb04(0xf1))/0x4*(parseInt(_0xbaeb04(0x10a))/0x5)+-parseInt(_0xbaeb04(0x110))/0x6+parseInt(_0xbaeb04(0x126))/0x7+parseInt(_0xbaeb04(0xf2))/0x8+parseInt(_0xbaeb04(0xd0))/0x9;if(_0x5e6568===_0x37931f)break;else _0x232683['push'](_0x232683['shift']());}catch(_0x19b8cb){_0x232683['push'](_0x232683['shift']());}}}(a0_0x3e1a,0x5aac6));import{toTaskPriority}from'../../services/clickup/types.js';import{parseDueDate,parseFilterDate,hasExplicitTime}from'../utils.js';function a0_0x3e1a(){const _0x30ea8a=['A190Exa','Dgv4Df8','C3rYAw4','x3rPBwu','AxnbCNi','Aw5N','mtuWodyWnxLMug5Ira','De5HBwu','CgfJzq','BMfTzsa','CMvKDwm','DxfSs0u','mti4nZG3menewKPyAq','vgfZA1a','Axr5','yxjHBxm','x2rHDgu','Aw1L','BMfTzq','we9WCLO','C3rHCNq','ChjPB3i','BNvTyMu','DhL4v3a','C2TZ','Ag96Aei','AxmGCMu','zxnJCMK','B25L','BvvMBM8','mte5nZm4nhP5sKLAuq','BMvLCW','yxnZAwC','Awv6r3q','mJa1nZKWmM5osMj6rW','Axb0Aw8','Bv9MAwu','BgvUz3q','yKj6CeW','zcb0BYa','BNfMBxC','igfZC2K','C2LNBMu','A2v5CW','zxn0Aw0','Dg9tDhi','s0HhrxO','B3DUx2q','tKXwwNq','yMrStfy','zhvLx2q','tgnfrxG','yuLzC3i','DgfZA3m','DfvJyu0','Bwf0y2G','yxrL','D2fYBG','DejVDLK','v1rwD2W','DgLTzv8','mtq0nJG0ovvuCePkAa','qKvdCxK','BwfW','ChvZAa','q3PSqMe','ihn0CMK','tMfTzq','B3jKzxi','CMvWBge','rgf0zq','zhvLrge','z25Lzxm','zgvZy3i','BwvZC2e','C3rHDhu','EePzwgy','CM91BMq','Bv90yxm','ywXS','sMHSCgC','B3DUx2m','C3vIDge','z3z6Dw4','CMvZB2W','CgfYzw4','ngzzCvfywq','zxfmr0C','wK1vv1i','ug5mzu0','CgfYC2u','BwuGyxm','CxvPCMu','DgPztxm','nfvNu0DMBG','ndm3mZiWoer1uM5ABG','DgvZDa','y29UDgu','y2vPBa','B250zw4','yxrLx3q','v2fuy0u','BwfYA2q','x2j5','CMv2zxi','DgLTzxO','ChrPB24','BgrZ','yNPuAgC','mtu4otC0rgPXyM1W','y3vZDg8','BNDoBM0','rMfPBgu'];a0_0x3e1a=function(){return _0x30ea8a;};return a0_0x3e1a();}export{parseDueDate,parseFilterDate,hasExplicitTime};import{validateListIdentification,resolveListIdWithValidation,getTaskId}from'./utilities.js';import{resolveMember}from'../../utils/resolver-utils.js';import{Logger}from'../../logger.js';const logger=new Logger(a0_0x4341db(0x111)+a0_0x4341db(0x113));function unescapeString(_0x1a9011){const _0x4f4893=a0_0x4341db;return _0x1a9011?_0x1a9011[_0x4f4893(0xd8)+'ce'](/\\n/g,'\x0a')[_0x4f4893(0xd8)+'ce'](/\\t/g,'\x09')['repla'+'ce'](/\\r/g,'\x0d'):_0x1a9011;}export const WORKSPACE_TASKS_TOKEN_LIMIT=0xc350;export function parseTimeEstimate(_0x31840f){const _0x566d48=a0_0x4341db,_0x58c92a={'nqfmw':function(_0x57e30b,_0x51cbe7){return _0x57e30b===_0x51cbe7;},'XOprZ':'numbe'+'r','uqlKE':function(_0x24ed71,_0x4a20db){return _0x24ed71*_0x4a20db;},'Jhlpg':function(_0x52e00c,_0x33470e){return _0x52e00c(_0x33470e);},'tjYMs':function(_0x40778f,_0x223ebb){return _0x40778f&&_0x223ebb;},'bdlLV':function(_0x561b00,_0x35e050){return _0x561b00*_0x35e050;}};if(_0x31840f===undefined)return undefined;if(_0x31840f===null||_0x31840f==='null')return null;if(_0x58c92a[_0x566d48(0x12c)](typeof _0x31840f,_0x58c92a[_0x566d48(0x117)]))return _0x58c92a[_0x566d48(0x10f)](_0x31840f,0x3c)*0x3e8;const _0x21f21a=_0x31840f['trim']();if(_0x21f21a==='')return undefined;if(/^\d+(\.\d+)?$/[_0x566d48(0xf3)](_0x21f21a))return Math[_0x566d48(0xe0)](_0x58c92a[_0x566d48(0x10f)](parseFloat(_0x21f21a),0x3c)*0x3e8);let _0x38b2ee=0x0;const _0x113181=_0x21f21a[_0x566d48(0xca)](/(\d+\.?\d*)h/);_0x113181&&(_0x38b2ee+=_0x58c92a[_0x566d48(0xe3)](parseFloat,_0x113181[0x1])*0x3c);const _0x5d0e3c=_0x21f21a['match'](/(\d+)m/);_0x5d0e3c&&(_0x38b2ee+=parseInt(_0x5d0e3c[0x1],0xa));if(_0x58c92a[_0x566d48(0xf0)](!_0x113181,!_0x5d0e3c))return undefined;return Math['round'](_0x58c92a[_0x566d48(0xc4)](_0x38b2ee,0x3c)*0x3e8);}export async function resolveAssignees(_0x556358,_0x24c559){const _0x4bd3c6=a0_0x4341db,_0x29f9af={'PnLeM':function(_0x2bc112,_0x3aa0f4){return _0x2bc112===_0x3aa0f4;},'ZMUWR':_0x4bd3c6(0x106)+'g','nwNnm':function(_0x49eb96,_0x505f31){return _0x49eb96>_0x505f31;},'WMtkT':function(_0x4506c0,_0xda7185){return _0x4506c0!==_0xda7185;},'tBovY':function(_0x3d0b8e,_0x1807f3){return _0x3d0b8e(_0x1807f3);},'bBzpL':_0x4bd3c6(0x103)+_0x4bd3c6(0x12b)+_0x4bd3c6(0xe7)+'ve\x20so'+_0x4bd3c6(0xee)+_0x4bd3c6(0xbd)+'es'};if(!_0x556358||!Array[_0x4bd3c6(0x108)+'ay'](_0x556358)||_0x29f9af[_0x4bd3c6(0xec)](_0x556358[_0x4bd3c6(0x129)+'h'],0x0))return[];const _0x3ed3a0=[],_0x38cdaf=[];for(const _0x50e95b of _0x556358){if(typeof _0x50e95b===_0x4bd3c6(0x11a)+'r')_0x3ed3a0[_0x4bd3c6(0xd3)](_0x50e95b);else{if(typeof _0x50e95b===_0x29f9af[_0x4bd3c6(0xeb)]){const _0x4e8910=parseInt(_0x50e95b,0xa);!isNaN(_0x4e8910)&&_0x4e8910[_0x4bd3c6(0xc0)+_0x4bd3c6(0x109)]()===_0x50e95b?_0x3ed3a0['push'](_0x4e8910):_0x38cdaf[_0x4bd3c6(0xd3)](_0x50e95b);}}}if(_0x29f9af[_0x4bd3c6(0x102)](_0x38cdaf[_0x4bd3c6(0x129)+'h'],0x0))try{const _0x5c82ed=await Promise[_0x4bd3c6(0xe2)](_0x38cdaf['map'](async _0xf14d58=>{const _0x1fbd49=_0x4bd3c6;try{const _0x261ede=await resolveMember(_0xf14d58,_0x24c559['works'+_0x1fbd49(0x10c)]);return Number(_0x261ede['id']);}catch(_0x419718){return null;}}));for(const _0x34e864 of _0x5c82ed){_0x29f9af['WMtkT'](_0x34e864,null)&&!_0x29f9af[_0x4bd3c6(0xcd)](isNaN,_0x34e864)&&_0x3ed3a0[_0x4bd3c6(0xd3)](_0x34e864);}}catch(_0x14ded5){logger[_0x4bd3c6(0xcc)](_0x29f9af[_0x4bd3c6(0x12a)],{'error':_0x14ded5['messa'+'ge']});}return _0x3ed3a0;}export async function prepareCreateTaskData(_0x4ed2cc,_0x299cd5){const _0x2b60d1=a0_0x4341db,_0x22e06b={'CzlBa':'Task\x20'+_0x2b60d1(0x10d)+_0x2b60d1(0x11e)+_0x2b60d1(0xef)+'d','NLVZt':function(_0x1caf08,_0x174eeb){return _0x1caf08&&_0x174eeb;},'KvLwS':function(_0x5f493f,_0x1b9edf){return _0x5f493f===_0x1b9edf;},'YkejG':_0x2b60d1(0x103)+'d\x20to\x20'+'parse'+'\x20assi'+_0x2b60d1(0xdb)+_0x2b60d1(0xd5)+'ng','KHGEz':function(_0x1b1120,_0x59f98c){return _0x1b1120(_0x59f98c);},'sGPjK':function(_0x4fcc23,_0x1b0c6f){return _0x4fcc23(_0x1b0c6f);},'sSEtU':function(_0x586009,_0x1940ab){return _0x586009!==_0x1940ab;}},{name:_0x204138,description:_0x5cdc07,markdown_description:_0x263ef0,status:_0x39ce1d,dueDate:_0x19192e,startDate:_0x5eab09,time_estimate:_0x2105c9,parent:_0x198743,parentName:_0x46e79b,parentListName:_0x4103cb,tags:_0x56712f,custom_fields:_0x267c5c,check_required_custom_fields:_0x5c0e52,assignees:_0xbef7b9,custom_task_type:_0x39bbce,subtasks:_0x23c2f5}=_0x4ed2cc;if(!_0x204138)throw new Error(_0x22e06b[_0x2b60d1(0xd4)]);let _0x2d480d=_0x198743;_0x22e06b[_0x2b60d1(0xc3)](!_0x2d480d,_0x46e79b)&&(_0x2d480d=await getTaskId(undefined,undefined,_0x46e79b,_0x4103cb,undefined,![],_0x299cd5));let _0xc75537=undefined;if(_0xbef7b9){let _0x3c2702=_0xbef7b9;if(_0x22e06b['KvLwS'](typeof _0xbef7b9,_0x2b60d1(0x106)+'g'))try{_0x3c2702=JSON[_0x2b60d1(0xed)](_0xbef7b9);}catch(_0x18db06){logger[_0x2b60d1(0xcc)](_0x22e06b['YkejG'],{'assignees':_0xbef7b9,'error':_0x18db06[_0x2b60d1(0xdd)+'ge']}),_0x3c2702=[];}_0xc75537=await resolveAssignees(_0x3c2702,_0x299cd5);}const _0x4af7f0={'name':_0x204138,'description':unescapeString(_0x5cdc07),'markdown_description':_0x22e06b[_0x2b60d1(0xc1)](unescapeString,_0x263ef0),'status':_0x39ce1d,'parent':_0x2d480d,'tags':_0x56712f,'custom_fields':_0x267c5c,'check_required_custom_fields':_0x5c0e52,'assignees':_0xc75537,'custom_task_type':_0x39bbce},_0x493063=toTaskPriority(_0x4ed2cc[_0x2b60d1(0x119)+'ity']);return _0x493063!==undefined&&(_0x4af7f0[_0x2b60d1(0x119)+'ity']=_0x493063),_0x19192e&&(_0x4af7f0[_0x2b60d1(0xc5)+_0x2b60d1(0xcb)]=parseDueDate(_0x22e06b[_0x2b60d1(0xc1)](String,_0x19192e),undefined,_0x299cd5[_0x2b60d1(0xfc)+_0x2b60d1(0x120)]),_0x4af7f0[_0x2b60d1(0xc5)+'ate_t'+_0x2b60d1(0x115)]=hasExplicitTime(_0x22e06b['sGPjK'](String,_0x19192e))),_0x5eab09&&(_0x4af7f0[_0x2b60d1(0x118)+_0x2b60d1(0x114)]=parseDueDate(String(_0x5eab09),undefined,_0x299cd5[_0x2b60d1(0xfc)+'one']),_0x4af7f0[_0x2b60d1(0x118)+_0x2b60d1(0x114)+_0x2b60d1(0x107)]=hasExplicitTime(String(_0x5eab09))),_0x22e06b['sSEtU'](_0x2105c9,undefined)&&(_0x4af7f0['time_'+_0x2b60d1(0xbf)+_0x2b60d1(0xcb)]=parseTimeEstimate(_0x2105c9)),_0x23c2f5&&Array[_0x2b60d1(0x108)+'ay'](_0x23c2f5)&&_0x23c2f5[_0x2b60d1(0x129)+'h']>0x0&&(_0x4af7f0[_0x2b60d1(0xe5)+_0x2b60d1(0x11c)]=await Promise[_0x2b60d1(0xe2)](_0x23c2f5[_0x2b60d1(0xd2)](_0x4f97e7=>prepareCreateTaskData(_0x4f97e7,_0x299cd5)))),_0x4af7f0;}export async function buildUpdateData(_0x526c06,_0x3d4e9c){const _0x49aebf=a0_0x4341db,_0xe7f59c={'xJYXf':function(_0x4dc218,_0xf086cc){return _0x4dc218!==_0xf086cc;},'mUfno':function(_0x3552b6,_0x41823f){return _0x3552b6(_0x41823f);},'LcEEx':function(_0x3c1c17,_0x5af618){return _0x3c1c17(_0x5af618);},'WaTcE':function(_0x46e40c,_0x4c0a89){return _0x46e40c!==_0x4c0a89;},'eqLGG':function(_0x18e48e,_0x2fc127){return _0x18e48e!==_0x2fc127;},'tUcaM':function(_0x4b95d,_0x5f4d4e){return _0x4b95d!==_0x5f4d4e;},'WTVwl':function(_0xef845d,_0x155431){return _0xef845d(_0x155431);},'gvzun':function(_0x4be809,_0x33d7db){return _0x4be809===_0x33d7db;},'iezGt':function(_0x5ca5ff,_0x49e006,_0x3d07e8){return _0x5ca5ff(_0x49e006,_0x3d07e8);},'Arnkv':function(_0x1fb1a3,_0x641585){return _0x1fb1a3!==_0x641585;}},_0x4b0d45={};if(_0x526c06[_0x49aebf(0x116)]!==undefined)_0x4b0d45['name']=_0x526c06[_0x49aebf(0x116)];if(_0x526c06[_0x49aebf(0xdc)+'iptio'+'n']!==undefined){const _0x334a2e=unescapeString(_0x526c06[_0x49aebf(0xdc)+'iptio'+'n']);_0x4b0d45[_0x49aebf(0xdc)+_0x49aebf(0x127)+'n']=_0x334a2e,_0x4b0d45[_0x49aebf(0xf9)+_0x49aebf(0xe4)+_0x49aebf(0xf6)+'t']=_0x334a2e,_0x4b0d45[_0x49aebf(0xf9)+'own_d'+'escri'+_0x49aebf(0xfd)]=_0x334a2e;}if(_0xe7f59c['xJYXf'](_0x526c06[_0x49aebf(0xf9)+'own_d'+'escri'+_0x49aebf(0xfd)],undefined))_0x4b0d45[_0x49aebf(0xf9)+_0x49aebf(0xc2)+_0x49aebf(0x11f)+_0x49aebf(0xfd)]=unescapeString(_0x526c06[_0x49aebf(0xf9)+'own_d'+_0x49aebf(0x11f)+_0x49aebf(0xfd)]);if(_0xe7f59c['xJYXf'](_0x526c06['markd'+_0x49aebf(0xe4)+_0x49aebf(0xf6)+'t'],undefined))_0x4b0d45[_0x49aebf(0xf9)+_0x49aebf(0xe4)+_0x49aebf(0xf6)+'t']=_0x526c06[_0x49aebf(0xf9)+'own_c'+_0x49aebf(0xf6)+'t'];if(_0xe7f59c[_0x49aebf(0xdf)](_0x526c06['statu'+'s'],undefined))_0x4b0d45[_0x49aebf(0xde)+'s']=_0x526c06[_0x49aebf(0xde)+'s'];if(_0x526c06['custo'+_0x49aebf(0xe1)+'k_typ'+'e']!==undefined)_0x4b0d45[_0x49aebf(0x101)+_0x49aebf(0xe1)+_0x49aebf(0x104)+'e']=_0x526c06[_0x49aebf(0x101)+_0x49aebf(0xe1)+_0x49aebf(0x104)+'e'];_0xe7f59c[_0x49aebf(0xdf)](_0x526c06[_0x49aebf(0x119)+_0x49aebf(0x112)],undefined)&&(_0x4b0d45['prior'+'ity']=_0xe7f59c[_0x49aebf(0x121)](toTaskPriority,_0x526c06[_0x49aebf(0x119)+_0x49aebf(0x112)]));if(_0x526c06[_0x49aebf(0xda)+'te']!==undefined){const _0x305025=parseDueDate(_0xe7f59c[_0x49aebf(0xc6)](String,_0x526c06[_0x49aebf(0xda)+'te']),undefined,_0x3d4e9c['timez'+_0x49aebf(0x120)]);_0x305025!==undefined?(_0x4b0d45[_0x49aebf(0xc5)+_0x49aebf(0xcb)]=_0x305025,_0x4b0d45[_0x49aebf(0xc5)+_0x49aebf(0xf7)+'ime']=_0xe7f59c[_0x49aebf(0x121)](hasExplicitTime,_0xe7f59c[_0x49aebf(0x121)](String,_0x526c06['dueDa'+'te']))):(_0x4b0d45[_0x49aebf(0xc5)+_0x49aebf(0xcb)]=null,_0x4b0d45[_0x49aebf(0xc5)+_0x49aebf(0xf7)+_0x49aebf(0x115)]=![]);}if(_0xe7f59c[_0x49aebf(0xf8)](_0x526c06[_0x49aebf(0x118)+'Date'],undefined)){const _0x22485f=parseDueDate(String(_0x526c06[_0x49aebf(0x118)+_0x49aebf(0xd9)]),undefined,_0x3d4e9c[_0x49aebf(0xfc)+_0x49aebf(0x120)]);_0xe7f59c[_0x49aebf(0xea)](_0x22485f,undefined)?(_0x4b0d45[_0x49aebf(0x118)+_0x49aebf(0x114)]=_0x22485f,_0x4b0d45['start'+_0x49aebf(0x114)+_0x49aebf(0x107)]=_0xe7f59c['mUfno'](hasExplicitTime,_0xe7f59c[_0x49aebf(0xc6)](String,_0x526c06[_0x49aebf(0x118)+'Date']))):(_0x4b0d45[_0x49aebf(0x118)+'_date']=null,_0x4b0d45[_0x49aebf(0x118)+_0x49aebf(0x114)+_0x49aebf(0x107)]=![]);}if(_0xe7f59c[_0x49aebf(0xc9)](_0x526c06[_0x49aebf(0xcf)+_0x49aebf(0xbf)+_0x49aebf(0xcb)],undefined)){const _0x5baab4=_0xe7f59c[_0x49aebf(0xce)](parseTimeEstimate,_0x526c06[_0x49aebf(0xcf)+_0x49aebf(0xbf)+'ate']);_0x4b0d45[_0x49aebf(0xcf)+'estim'+_0x49aebf(0xcb)]=_0x5baab4;}_0xe7f59c[_0x49aebf(0xdf)](_0x526c06['custo'+'m_fie'+'lds'],undefined)&&(_0x4b0d45[_0x49aebf(0x101)+_0x49aebf(0x128)+_0x49aebf(0xfe)]=_0x526c06[_0x49aebf(0x101)+_0x49aebf(0x128)+_0x49aebf(0xfe)]);if(_0x526c06[_0x49aebf(0x124)+_0x49aebf(0x123)]!==undefined){let _0x5cae79=_0x526c06[_0x49aebf(0x124)+_0x49aebf(0x123)];if(_0xe7f59c[_0x49aebf(0xe6)](typeof _0x526c06['assig'+'nees'],_0x49aebf(0x106)+'g'))try{_0x5cae79=JSON[_0x49aebf(0xed)](_0x526c06['assig'+_0x49aebf(0x123)]);}catch(_0x54e247){logger['warn'](_0x49aebf(0x103)+'d\x20to\x20'+'parse'+_0x49aebf(0x12d)+_0x49aebf(0xdb)+'\x20stri'+'ng',{'assignees':_0x526c06['assig'+_0x49aebf(0x123)],'error':_0x54e247[_0x49aebf(0xdd)+'ge']}),_0x5cae79=[];}const _0x3d35fb=await _0xe7f59c[_0x49aebf(0x125)](resolveAssignees,_0x5cae79,_0x3d4e9c);_0x4b0d45[_0x49aebf(0x124)+_0x49aebf(0x123)]=_0x3d35fb;}if(_0xe7f59c['Arnkv'](_0x526c06[_0x49aebf(0xe8)+'t'],undefined))_0x4b0d45[_0x49aebf(0xe8)+'t']=_0x526c06[_0x49aebf(0xe8)+'t'];else{if(_0x526c06[_0x49aebf(0xe8)+_0x49aebf(0x10b)]!==undefined){const _0x154dbf=await getTaskId(undefined,undefined,_0x526c06[_0x49aebf(0xe8)+_0x49aebf(0x10b)],_0x526c06['paren'+'tList'+_0x49aebf(0xd6)],undefined,![],_0x3d4e9c);_0x4b0d45[_0x49aebf(0xe8)+'t']=_0x154dbf;}}return _0x4b0d45;}export async function getListId(_0x468274,_0x466246,_0x4ce757){const _0x55ab4d=a0_0x4341db,_0x44a41c={'bzThg':function(_0x3e59f0,_0x2dce3a,_0x313f03){return _0x3e59f0(_0x2dce3a,_0x313f03);},'aIYsr':function(_0x45db51,_0x7afb7b,_0x12b6d0,_0xb54af8){return _0x45db51(_0x7afb7b,_0x12b6d0,_0xb54af8);}};return _0x44a41c[_0x55ab4d(0xff)](validateListIdentification,_0x468274,_0x466246),await _0x44a41c[_0x55ab4d(0xc7)](resolveListIdWithValidation,_0x468274,_0x466246,_0x4ce757);}export function buildTaskFilters(_0x444db3){const _0xcf49c0=a0_0x4341db,_0x53c328={'hozhB':function(_0x4e4e59,_0x3ae9fc){return _0x4e4e59!==_0x3ae9fc;},'Bilzz':function(_0x5c4e5b,_0x326363){return _0x5c4e5b!==_0x326363;}},{subtasks:_0x1dfe4f,statuses:_0x4a2624,page:_0x4b95d7,order_by:_0x231822,reverse:_0x58dabc,custom_task_types:_0x2a0541}=_0x444db3,_0x3b2fe8={};if(_0x1dfe4f!==undefined)_0x3b2fe8[_0xcf49c0(0xe5)+_0xcf49c0(0x11c)]=_0x1dfe4f;if(_0x53c328['hozhB'](_0x4a2624,undefined))_0x3b2fe8[_0xcf49c0(0xde)+'ses']=_0x4a2624;if(_0x4b95d7!==undefined)_0x3b2fe8['page']=_0x4b95d7;if(_0x53c328[_0xcf49c0(0x11d)](_0x231822,undefined))_0x3b2fe8[_0xcf49c0(0xd7)+_0xcf49c0(0xfa)]=_0x231822;if(_0x53c328['hozhB'](_0x58dabc,undefined))_0x3b2fe8[_0xcf49c0(0xfb)+'se']=_0x58dabc;if(_0x53c328['Bilzz'](_0x2a0541,undefined))_0x3b2fe8[_0xcf49c0(0x101)+_0xcf49c0(0xe1)+_0xcf49c0(0x104)+'es']=_0x2a0541;return _0x3b2fe8;}export function estimateTaskResponseTokens(_0x24fb1b){const _0x106bf1=a0_0x4341db,_0x4efc8a={'BECqy':function(_0x3dd1fd,_0x48e534){return _0x3dd1fd/_0x48e534;},'tyxWp':function(_0x40d239,_0x5cf9a5){return _0x40d239*_0x5cf9a5;}};let _0x175f10=0x0;return _0x175f10+=(_0x24fb1b['name']?.[_0x106bf1(0x129)+'h']||0x0)/0x4,_0x175f10+=_0x4efc8a[_0x106bf1(0xd1)](_0x24fb1b['descr'+_0x106bf1(0x127)+'n']?.['lengt'+'h']||0x0,0x4),_0x175f10+=(_0x24fb1b[_0x106bf1(0x105)+_0x106bf1(0xf4)+'nt']?.['lengt'+'h']||0x0)/0x4,_0x175f10+=0x5,_0x24fb1b['custo'+_0x106bf1(0x128)+'lds']&&(_0x175f10+=_0x4efc8a[_0x106bf1(0x11b)](Object[_0x106bf1(0xbe)](_0x24fb1b[_0x106bf1(0x101)+_0x106bf1(0x128)+_0x106bf1(0xfe)])[_0x106bf1(0x129)+'h'],0xa)),_0x175f10*=1.1,Math[_0x106bf1(0xf5)](_0x175f10);}export function wouldExceedTokenLimit(_0x6069df){const _0x232df3=a0_0x4341db;if(!_0x6069df[_0x232df3(0xc8)]?.[_0x232df3(0x129)+'h'])return![];const _0x4125a5=_0x6069df['tasks'][_0x232df3(0x10e)+'e']((_0x3395e2,_0x526198)=>_0x3395e2+estimateTaskResponseTokens(_0x526198),0x0),_0x26fb6e=_0x4125a5*1.1;return _0x26fb6e>WORKSPACE_TASKS_TOKEN_LIMIT;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x259aa1=a0_0x2d75;(function(_0x49315d,_0x43940b){const _0x1c6b8e=a0_0x2d75,_0x478f27=_0x49315d();while(!![]){try{const _0x122b83=-parseInt(_0x1c6b8e(0x241))/0x1+-parseInt(_0x1c6b8e(0x1d5))/0x2*(parseInt(_0x1c6b8e(0x1fb))/0x3)+parseInt(_0x1c6b8e(0x1dc))/0x4*(parseInt(_0x1c6b8e(0x15d))/0x5)+parseInt(_0x1c6b8e(0x14d))/0x6+-parseInt(_0x1c6b8e(0x183))/0x7+parseInt(_0x1c6b8e(0x1d3))/0x8+-parseInt(_0x1c6b8e(0x15e))/0x9;if(_0x122b83===_0x43940b)break;else _0x478f27['push'](_0x478f27['shift']());}catch(_0x36ae78){_0x478f27['push'](_0x478f27['shift']());}}}(a0_0x3003,0x490f1));import{getTaskId}from'./utilities.js';import{Logger}from'../../logger.js';import{sponsorService}from'../../utils/sponsor-service.js';const logger=new Logger(a0_0x259aa1(0x1f6)+'ionsh'+a0_0x259aa1(0x250)+'ls');export const addTaskLinkTool={'name':a0_0x259aa1(0x18a)+a0_0x259aa1(0x225)+a0_0x259aa1(0x192),'description':a0_0x259aa1(0x1ad)+a0_0x259aa1(0x1ae)+a0_0x259aa1(0x212)+'\x20Requ'+a0_0x259aa1(0x229)+a0_0x259aa1(0x1f5)+a0_0x259aa1(0x1e7)+'eferr'+a0_0x259aa1(0x217)+a0_0x259aa1(0x20a)+'kName'+a0_0x259aa1(0x25f)+a0_0x259aa1(0x15f)+a0_0x259aa1(0x188)+'e\x20and'+a0_0x259aa1(0x257)+a0_0x259aa1(0x1e5),'annotations':{'title':'Add\x20T'+a0_0x259aa1(0x1ba)+a0_0x259aa1(0x192),'openWorldHint':!![]},'inputSchema':{'type':a0_0x259aa1(0x177)+'t','properties':{'task':{'type':'strin'+'g','description':a0_0x259aa1(0x179)+a0_0x259aa1(0x232)+a0_0x259aa1(0x1eb)+a0_0x259aa1(0x24c)+a0_0x259aa1(0x1b7)},'listName':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x179)+a0_0x259aa1(0x1b5)+'t\x20nam'+a0_0x259aa1(0x26a)+a0_0x259aa1(0x16e)+'nded\x20'+a0_0x259aa1(0x228)+a0_0x259aa1(0x1a4)+a0_0x259aa1(0x1e1)+').'},'targetTask':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1bd)+a0_0x259aa1(0x208)+a0_0x259aa1(0x1eb)+a0_0x259aa1(0x24c)+a0_0x259aa1(0x1b7)},'targetListName':{'type':a0_0x259aa1(0x17a)+'g','description':'Targe'+a0_0x259aa1(0x202)+'t\x20nam'+'e.'}},'required':[a0_0x259aa1(0x18c),a0_0x259aa1(0x193)+'tTask']}};export const getTaskLinksTool={'name':'get_t'+a0_0x259aa1(0x225)+a0_0x259aa1(0x185),'description':a0_0x259aa1(0x15a)+a0_0x259aa1(0x16d)+'encie'+a0_0x259aa1(0x14c)+a0_0x259aa1(0x18e)+a0_0x259aa1(0x147)+a0_0x259aa1(0x1c2)+'Requi'+a0_0x259aa1(0x1c6)+a0_0x259aa1(0x1f9)+a0_0x259aa1(0x1ac)+'ferre'+a0_0x259aa1(0x21b)+a0_0x259aa1(0x17b)+'Name.','annotations':{'title':'Get\x20T'+a0_0x259aa1(0x1ba)+a0_0x259aa1(0x185),'openWorldHint':!![]},'inputSchema':{'type':a0_0x259aa1(0x177)+'t','properties':{'task':{'type':'strin'+'g','description':a0_0x259aa1(0x1b4)+a0_0x259aa1(0x1e9)+a0_0x259aa1(0x1da)+'.'},'listName':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1b6)+a0_0x259aa1(0x22f)}},'required':[a0_0x259aa1(0x18c)]}};export const deleteTaskLinkTool={'name':'delet'+a0_0x259aa1(0x1ed)+'k_lin'+'k','description':'Remov'+a0_0x259aa1(0x215)+a0_0x259aa1(0x1e2)+'ween\x20'+a0_0x259aa1(0x187)+'.\x20Req'+a0_0x259aa1(0x1d2)+a0_0x259aa1(0x17b)+a0_0x259aa1(0x251)+a0_0x259aa1(0x16c)+a0_0x259aa1(0x246)+a0_0x259aa1(0x156)+a0_0x259aa1(0x244)+a0_0x259aa1(0x168)+a0_0x259aa1(0x201)+a0_0x259aa1(0x26b)+a0_0x259aa1(0x1bc),'annotations':{'title':a0_0x259aa1(0x158)+'e\x20Tas'+a0_0x259aa1(0x254)+'k','destructiveHint':!![],'openWorldHint':!![]},'inputSchema':{'type':a0_0x259aa1(0x177)+'t','properties':{'task':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x179)+a0_0x259aa1(0x232)+'k\x20Nam'+a0_0x259aa1(0x24c)+a0_0x259aa1(0x1b7)},'listName':{'type':'strin'+'g','description':'Sourc'+'e\x20lis'+a0_0x259aa1(0x19c)+'e.'},'linkId':{'type':'strin'+'g','description':a0_0x259aa1(0x1c9)+'\x20the\x20'+'targe'+'t\x20tas'+a0_0x259aa1(0x151)+'unlin'+a0_0x259aa1(0x219)+a0_0x259aa1(0x259)+a0_0x259aa1(0x25a)+'.'},'targetListName':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1bd)+a0_0x259aa1(0x202)+a0_0x259aa1(0x19c)+'e.'}},'required':[a0_0x259aa1(0x18c),'linkI'+'d']}};export async function handleAddTaskLink(_0x3f9626,_0x321728){const _0x3d9374=a0_0x259aa1,_0x39a8ef={'HSrdt':_0x3d9374(0x24b)+_0x3d9374(0x20e)+_0x3d9374(0x163)+'t\x20to\x20'+'add\x20t'+'ask\x20l'+_0x3d9374(0x192),'ryJGf':function(_0x31a036,_0x2f20e3,_0x13563b,_0x11a7f2,_0x172410,_0x5dea00,_0x1d67b6,_0x428a9a){return _0x31a036(_0x2f20e3,_0x13563b,_0x11a7f2,_0x172410,_0x5dea00,_0x1d67b6,_0x428a9a);},'FhaeB':function(_0x583577,_0x56f9cd,_0x46292f,_0x2fc5ca,_0x2f1175,_0x14437f,_0x6e089d,_0x36d614){return _0x583577(_0x56f9cd,_0x46292f,_0x2fc5ca,_0x2f1175,_0x14437f,_0x6e089d,_0x36d614);},'uHmte':'Targe'+'t\x20tas'+'k\x20not'+_0x3d9374(0x268)+'d.','dXEGr':_0x3d9374(0x1a7)+_0x3d9374(0x171)+_0x3d9374(0x1ce)+_0x3d9374(0x1a5)+_0x3d9374(0x192),'tvtHU':_0x3d9374(0x243)+_0x3d9374(0x18f)+'\x20erro'+_0x3d9374(0x1b9)+'urred'},{task:_0x26ac16}=_0x321728;logger[_0x3d9374(0x157)](_0x39a8ef[_0x3d9374(0x197)],_0x3f9626);try{const _0x475cdb=await _0x39a8ef[_0x3d9374(0x213)](getTaskId,_0x3f9626['task'],_0x3f9626[_0x3d9374(0x1f5)+'d'],_0x3f9626[_0x3d9374(0x1cc)+_0x3d9374(0x1a8)],_0x3f9626[_0x3d9374(0x24d)+_0x3d9374(0x1a8)],_0x3f9626[_0x3d9374(0x194)+_0x3d9374(0x17d)+'Id'],!![],_0x321728);if(!_0x475cdb)return sponsorService[_0x3d9374(0x17f)+_0x3d9374(0x1d4)+_0x3d9374(0x1f3)+_0x3d9374(0x149)](_0x3d9374(0x179)+_0x3d9374(0x232)+'k\x20not'+_0x3d9374(0x268)+'d.');const _0x330427=await _0x39a8ef['FhaeB'](getTaskId,_0x3f9626[_0x3d9374(0x193)+_0x3d9374(0x172)],_0x3f9626[_0x3d9374(0x193)+_0x3d9374(0x172)+'Id']||_0x3f9626[_0x3d9374(0x25c)+'d'],_0x3f9626['targe'+_0x3d9374(0x172)+_0x3d9374(0x242)],_0x3f9626[_0x3d9374(0x193)+_0x3d9374(0x159)+'Name'],_0x3f9626['targe'+_0x3d9374(0x26c)+'omTas'+'kId'],!![],_0x321728);if(!_0x330427)return sponsorService['creat'+_0x3d9374(0x1d4)+_0x3d9374(0x1f3)+_0x3d9374(0x149)](_0x39a8ef['uHmte']);const _0xb065c8=await _0x26ac16['relat'+_0x3d9374(0x224)+'ips']['addTa'+'skLin'+'k'](_0x475cdb,_0x330427);if(!_0xb065c8[_0x3d9374(0x169)+'ss'])return sponsorService[_0x3d9374(0x17f)+'eErro'+_0x3d9374(0x1f3)+'onse'](_0xb065c8['error']?.[_0x3d9374(0x18b)+'ge']||_0x39a8ef[_0x3d9374(0x23d)]);return sponsorService[_0x3d9374(0x17f)+'eResp'+_0x3d9374(0x149)]({'success':!![],'message':_0x3d9374(0x1b4)+_0x3d9374(0x200)+_0x3d9374(0x1df)+'\x20succ'+_0x3d9374(0x24a)+'lly','link':_0xb065c8[_0x3d9374(0x255)]},!![]);}catch(_0x44aa4a){return logger[_0x3d9374(0x173)](_0x3d9374(0x230)+_0x3d9374(0x1b3)+_0x3d9374(0x20d)+'sk\x20li'+'nk',_0x44aa4a),sponsorService[_0x3d9374(0x17f)+_0x3d9374(0x1d4)+_0x3d9374(0x1f3)+_0x3d9374(0x149)](_0x44aa4a[_0x3d9374(0x18b)+'ge']||_0x39a8ef['tvtHU']);}}export async function handleGetTaskLinks(_0x5703f7,_0x5da8f7){const _0x271bd7=a0_0x259aa1,_0x2d85a8={'OJuiG':function(_0xa7c21b,_0x15e0d4,_0x2a7414,_0x4d11d5,_0x2c98ca,_0x37a388,_0x3342d7,_0x40baff){return _0xa7c21b(_0x15e0d4,_0x2a7414,_0x4d11d5,_0x2c98ca,_0x37a388,_0x3342d7,_0x40baff);},'QzQIC':'Error'+'\x20gett'+'ing\x20t'+_0x271bd7(0x1a5)+'inks'},{task:_0xa568d4}=_0x5da8f7;logger[_0x271bd7(0x157)]('Handl'+_0x271bd7(0x20e)+_0x271bd7(0x163)+'t\x20to\x20'+_0x271bd7(0x201)+_0x271bd7(0x1a5)+_0x271bd7(0x185),_0x5703f7);try{const _0xa51f80=await _0x2d85a8[_0x271bd7(0x1c5)](getTaskId,_0x5703f7[_0x271bd7(0x18c)],_0x5703f7[_0x271bd7(0x1f5)+'d'],_0x5703f7['taskN'+_0x271bd7(0x1a8)],_0x5703f7[_0x271bd7(0x24d)+_0x271bd7(0x1a8)],_0x5703f7[_0x271bd7(0x194)+_0x271bd7(0x17d)+'Id'],!![],_0x5da8f7);if(!_0xa51f80)return sponsorService[_0x271bd7(0x17f)+'eErro'+_0x271bd7(0x1f3)+_0x271bd7(0x149)](_0x271bd7(0x1b4)+'not\x20f'+_0x271bd7(0x204));const _0x3847c3=await _0xa568d4[_0x271bd7(0x227)+_0x271bd7(0x224)+_0x271bd7(0x1fe)]['getTa'+'skLin'+'ks'](_0xa51f80);if(!_0x3847c3['succe'+'ss'])return sponsorService['creat'+_0x271bd7(0x1d4)+_0x271bd7(0x1f3)+_0x271bd7(0x149)](_0x3847c3[_0x271bd7(0x173)]?.['messa'+'ge']||_0x271bd7(0x1a7)+_0x271bd7(0x171)+_0x271bd7(0x201)+_0x271bd7(0x1a5)+_0x271bd7(0x185));return sponsorService['creat'+_0x271bd7(0x267)+_0x271bd7(0x149)]({'success':!![],'count':_0x3847c3[_0x271bd7(0x255)]?_0x3847c3[_0x271bd7(0x255)][_0x271bd7(0x1e8)+'h']:0x0,'links':_0x3847c3['data']},!![]);}catch(_0x425a6b){return logger[_0x271bd7(0x173)](_0x2d85a8['QzQIC'],_0x425a6b),sponsorService[_0x271bd7(0x17f)+_0x271bd7(0x1d4)+'rResp'+_0x271bd7(0x149)](_0x425a6b[_0x271bd7(0x18b)+'ge']||_0x271bd7(0x243)+'known'+_0x271bd7(0x152)+_0x271bd7(0x1b9)+_0x271bd7(0x21d));}}export const addTaskDependencyTool={'name':a0_0x259aa1(0x18a)+a0_0x259aa1(0x226)+a0_0x259aa1(0x16d)+a0_0x259aa1(0x17e),'description':a0_0x259aa1(0x234)+'\x20depe'+a0_0x259aa1(0x166)+'y\x20bet'+a0_0x259aa1(0x23f)+a0_0x259aa1(0x187)+'.\x20Req'+a0_0x259aa1(0x1d2)+a0_0x259aa1(0x17b)+a0_0x259aa1(0x1aa)+'actly'+a0_0x259aa1(0x1cb)+a0_0x259aa1(0x265)+a0_0x259aa1(0x16d)+a0_0x259aa1(0x1a1)+'(task'+'\x20is\x20b'+a0_0x259aa1(0x1e4)+a0_0x259aa1(0x165)+a0_0x259aa1(0x258)+'er)\x20o'+a0_0x259aa1(0x1fc)+'enden'+a0_0x259aa1(0x207)+a0_0x259aa1(0x1f2)+a0_0x259aa1(0x1db)+'block'+a0_0x259aa1(0x16f)+a0_0x259aa1(0x174)+a0_0x259aa1(0x1ff)+a0_0x259aa1(0x261)+a0_0x259aa1(0x19b)+a0_0x259aa1(0x148)+a0_0x259aa1(0x209)+a0_0x259aa1(0x235)+a0_0x259aa1(0x205)+a0_0x259aa1(0x16b),'annotations':{'title':a0_0x259aa1(0x1dd)+a0_0x259aa1(0x245)+'epend'+a0_0x259aa1(0x17e),'openWorldHint':!![]},'inputSchema':{'type':a0_0x259aa1(0x177)+'t','properties':{'task':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1b4)+'name\x20'+'or\x20ID'+a0_0x259aa1(0x196)+a0_0x259aa1(0x266)+a0_0x259aa1(0x153)+a0_0x259aa1(0x20b)+a0_0x259aa1(0x240)+a0_0x259aa1(0x222)+a0_0x259aa1(0x249)+'.'},'listName':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1b6)+a0_0x259aa1(0x237)+a0_0x259aa1(0x1c0)+'esolv'+a0_0x259aa1(0x154)+a0_0x259aa1(0x190)+a0_0x259aa1(0x178)+'e.'},'depends_on':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1b4)+a0_0x259aa1(0x237)+a0_0x259aa1(0x1da)+a0_0x259aa1(0x198)+a0_0x259aa1(0x1b0)+a0_0x259aa1(0x1c8)+'pends'+a0_0x259aa1(0x1a0)+'i.e.,'+a0_0x259aa1(0x17b)+a0_0x259aa1(0x1ea)+a0_0x259aa1(0x1e4)+a0_0x259aa1(0x165)+a0_0x259aa1(0x1ab)+a0_0x259aa1(0x19a)+a0_0x259aa1(0x195)+a0_0x259aa1(0x1c1)+a0_0x259aa1(0x1d9)+'pende'+a0_0x259aa1(0x184)+a0_0x259aa1(0x21e)+a0_0x259aa1(0x1d1)+'h.'},'depends_on_list':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1b6)+a0_0x259aa1(0x237)+'for\x20r'+a0_0x259aa1(0x150)+'ing\x20d'+'epend'+'s_on\x20'+a0_0x259aa1(0x262)+a0_0x259aa1(0x206)+'me.'},'dependency_of':{'type':'strin'+'g','description':a0_0x259aa1(0x1b4)+a0_0x259aa1(0x237)+'or\x20ID'+'\x20that'+a0_0x259aa1(0x1b8)+a0_0x259aa1(0x269)+'n\x20\x27ta'+a0_0x259aa1(0x182)+a0_0x259aa1(0x25b)+'\x20task'+a0_0x259aa1(0x1ea)+'locki'+'ng\x20th'+a0_0x259aa1(0x186)+a0_0x259aa1(0x1d6)+'de\x20th'+'is\x20OR'+a0_0x259aa1(0x1b8)+a0_0x259aa1(0x20f)+a0_0x259aa1(0x1b1)+a0_0x259aa1(0x1d1)+'h.'},'dependency_of_list':{'type':a0_0x259aa1(0x17a)+'g','description':'List\x20'+a0_0x259aa1(0x237)+'for\x20r'+a0_0x259aa1(0x150)+a0_0x259aa1(0x263)+'epend'+a0_0x259aa1(0x21f)+a0_0x259aa1(0x1bb)+'sk\x20by'+a0_0x259aa1(0x1f7)+'.'}},'required':[a0_0x259aa1(0x18c)]}};export const deleteTaskDependencyTool={'name':'delet'+a0_0x259aa1(0x1ed)+'k_dep'+a0_0x259aa1(0x20b)+'cy','description':a0_0x259aa1(0x14f)+a0_0x259aa1(0x1fa)+a0_0x259aa1(0x16d)+a0_0x259aa1(0x248)+a0_0x259aa1(0x25e)+a0_0x259aa1(0x181)+a0_0x259aa1(0x253)+a0_0x259aa1(0x22b)+a0_0x259aa1(0x1c6)+'ask\x20+'+a0_0x259aa1(0x1d8)+'tly\x20o'+a0_0x259aa1(0x180)+a0_0x259aa1(0x170)+a0_0x259aa1(0x260)+'on\x20or'+a0_0x259aa1(0x1b8)+'ndenc'+'y_of\x20'+'match'+a0_0x259aa1(0x154)+a0_0x259aa1(0x155)+'istin'+a0_0x259aa1(0x1de)+'enden'+'cy.\x20S'+a0_0x259aa1(0x261)+a0_0x259aa1(0x19b)+'me\x20or'+a0_0x259aa1(0x209)+'or\x20al'+'l\x20tas'+a0_0x259aa1(0x16b),'annotations':{'title':a0_0x259aa1(0x158)+a0_0x259aa1(0x167)+a0_0x259aa1(0x23e)+a0_0x259aa1(0x20b)+'cy','destructiveHint':!![],'openWorldHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'task':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1b4)+a0_0x259aa1(0x237)+a0_0x259aa1(0x1da)+a0_0x259aa1(0x220)+a0_0x259aa1(0x189)+'\x20the\x20'+a0_0x259aa1(0x23c)+a0_0x259aa1(0x19d)+'\x20from'+'.\x20REQ'+'UIRED'+'.'},'listName':{'type':'strin'+'g','description':a0_0x259aa1(0x1b6)+'name\x20'+'for\x20r'+a0_0x259aa1(0x150)+a0_0x259aa1(0x154)+a0_0x259aa1(0x190)+a0_0x259aa1(0x178)+'e.'},'depends_on':{'type':a0_0x259aa1(0x17a)+'g','description':'Task\x20'+a0_0x259aa1(0x237)+a0_0x259aa1(0x1da)+a0_0x259aa1(0x1ee)+a0_0x259aa1(0x1c4)+a0_0x259aa1(0x176)+a0_0x259aa1(0x1a6)+a0_0x259aa1(0x1d0)+a0_0x259aa1(0x1a3)+a0_0x259aa1(0x1b2)+a0_0x259aa1(0x22a)+'hat\x20\x27'+a0_0x259aa1(0x20c)+a0_0x259aa1(0x21c)+'block'+a0_0x259aa1(0x1a2)+a0_0x259aa1(0x216)+a0_0x259aa1(0x211)+a0_0x259aa1(0x175)+a0_0x259aa1(0x236)+a0_0x259aa1(0x16d)+a0_0x259aa1(0x21f)+a0_0x259aa1(0x1cd)},'depends_on_list':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1b6)+a0_0x259aa1(0x237)+a0_0x259aa1(0x1c0)+a0_0x259aa1(0x150)+a0_0x259aa1(0x263)+'epend'+a0_0x259aa1(0x1a1)+a0_0x259aa1(0x262)+a0_0x259aa1(0x206)+a0_0x259aa1(0x1a9)},'dependency_of':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1b4)+'name\x20'+a0_0x259aa1(0x1da)+a0_0x259aa1(0x1ee)+a0_0x259aa1(0x1c4)+a0_0x259aa1(0x176)+a0_0x259aa1(0x1a6)+a0_0x259aa1(0x1d0)+a0_0x259aa1(0x1a3)+'the\x20t'+a0_0x259aa1(0x22a)+a0_0x259aa1(0x1f1)+a0_0x259aa1(0x264)+'ocked'+'\x20by\x20\x27'+a0_0x259aa1(0x20c)+a0_0x259aa1(0x216)+a0_0x259aa1(0x211)+'\x20this'+a0_0x259aa1(0x236)+a0_0x259aa1(0x16d)+a0_0x259aa1(0x24f)},'dependency_of_list':{'type':a0_0x259aa1(0x17a)+'g','description':a0_0x259aa1(0x1b6)+'name\x20'+a0_0x259aa1(0x1c0)+a0_0x259aa1(0x150)+'ing\x20d'+a0_0x259aa1(0x16d)+a0_0x259aa1(0x21f)+a0_0x259aa1(0x1bb)+'sk\x20by'+'\x20name'+'.'}},'required':[a0_0x259aa1(0x18c)]}};async function resolveDependencyTasks(_0x20f244,_0x407718){const _0x459d4b=a0_0x259aa1,_0x551347={'BTkFM':function(_0x27d0bc,_0x3bb384,_0x3b00bc,_0x52fb32,_0x24e36a,_0x444732,_0x5f38c6,_0x56b0b2){return _0x27d0bc(_0x3bb384,_0x3b00bc,_0x52fb32,_0x24e36a,_0x444732,_0x5f38c6,_0x56b0b2);},'VjLNu':_0x459d4b(0x23c)+_0x459d4b(0x252)+'\x20task'+_0x459d4b(0x1cf)+'found'+'.'};if(!_0x20f244['depen'+_0x459d4b(0x252)]&&!_0x20f244['depen'+_0x459d4b(0x19d)+_0x459d4b(0x22e)])throw new Error(_0x459d4b(0x247)+_0x459d4b(0x1fc)+_0x459d4b(0x260)+_0x459d4b(0x1fd)+_0x459d4b(0x1b8)+_0x459d4b(0x166)+'y_of\x20'+_0x459d4b(0x25d)+_0x459d4b(0x14e)+_0x459d4b(0x211)+'d.');if(_0x20f244['depen'+_0x459d4b(0x252)]&&_0x20f244[_0x459d4b(0x23c)+_0x459d4b(0x19d)+'_of'])throw new Error(_0x459d4b(0x1d6)+_0x459d4b(0x233)+'ly\x20on'+_0x459d4b(0x161)+'depen'+'ds_on'+'\x20or\x20d'+_0x459d4b(0x16d)+_0x459d4b(0x21f)+_0x459d4b(0x164)+_0x459d4b(0x203)+_0x459d4b(0x16a));const _0x190367=await _0x551347[_0x459d4b(0x1f8)](getTaskId,_0x20f244[_0x459d4b(0x18c)],undefined,undefined,_0x20f244[_0x459d4b(0x24d)+_0x459d4b(0x1a8)],undefined,!![],_0x407718);if(!_0x190367)throw new Error('Task\x20'+_0x459d4b(0x1be)+_0x459d4b(0x204));let _0x5275e3;if(_0x20f244[_0x459d4b(0x23c)+_0x459d4b(0x252)]){_0x5275e3=await _0x551347['BTkFM'](getTaskId,_0x20f244['depen'+_0x459d4b(0x252)],undefined,undefined,_0x20f244[_0x459d4b(0x23c)+_0x459d4b(0x252)+_0x459d4b(0x199)],undefined,!![],_0x407718);if(!_0x5275e3)throw new Error(_0x551347[_0x459d4b(0x256)]);}let _0x4ef71b;if(_0x20f244[_0x459d4b(0x23c)+_0x459d4b(0x19d)+_0x459d4b(0x22e)]){_0x4ef71b=await getTaskId(_0x20f244['depen'+'dency'+'_of'],undefined,undefined,_0x20f244['depen'+_0x459d4b(0x19d)+'_of_l'+_0x459d4b(0x221)],undefined,!![],_0x407718);if(!_0x4ef71b)throw new Error(_0x459d4b(0x23c)+_0x459d4b(0x19d)+'_of\x20t'+_0x459d4b(0x22c)+'ot\x20fo'+_0x459d4b(0x218));}return{'taskId':_0x190367,'dependsOnId':_0x5275e3,'dependencyOfId':_0x4ef71b};}function a0_0x2d75(_0x6b1b32,_0x29e1a8){_0x6b1b32=_0x6b1b32-0x147;const _0x300394=a0_0x3003();let _0x2d7500=_0x300394[_0x6b1b32];if(a0_0x2d75['RBuAPf']===undefined){var _0x843dc0=function(_0x4b8152){const _0x190602='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ce5f7='',_0x2cd4d8='';for(let _0x44b830=0x0,_0x37165c,_0x6d7686,_0x1eac6f=0x0;_0x6d7686=_0x4b8152['charAt'](_0x1eac6f++);~_0x6d7686&&(_0x37165c=_0x44b830%0x4?_0x37165c*0x40+_0x6d7686:_0x6d7686,_0x44b830++%0x4)?_0x4ce5f7+=String['fromCharCode'](0xff&_0x37165c>>(-0x2*_0x44b830&0x6)):0x0){_0x6d7686=_0x190602['indexOf'](_0x6d7686);}for(let _0x564b7f=0x0,_0x1d8857=_0x4ce5f7['length'];_0x564b7f<_0x1d8857;_0x564b7f++){_0x2cd4d8+='%'+('00'+_0x4ce5f7['charCodeAt'](_0x564b7f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2cd4d8);};a0_0x2d75['dYYuuH']=_0x843dc0,a0_0x2d75['Bwvybw']={},a0_0x2d75['RBuAPf']=!![];}const _0x4b4ad8=_0x300394[0x0],_0x162934=_0x6b1b32+_0x4b4ad8,_0x289055=a0_0x2d75['Bwvybw'][_0x162934];return!_0x289055?(_0x2d7500=a0_0x2d75['dYYuuH'](_0x2d7500),a0_0x2d75['Bwvybw'][_0x162934]=_0x2d7500):_0x2d7500=_0x289055,_0x2d7500;}function a0_0x3003(){const _0x1575ff=['DxbWB3i','DgfZAYa','Aw5Nigq','yxmGyMW','B2y6igq','zxqGDgG','zvjLC3a','igzVDw4','BMrZig8','zsaOCMu','yxnRieK','Den1C3q','CIbHihq','BwuGB3i','B25Zzq','Dcb0BYa','DMvKihm','CY9SAw4','nti0nJiYyMDYEwrO','yMuGChi','uMvTB3y','zxnVBhy','AYb0BYa','igvYCM8','zsbKzxa','Aw5Nihq','AguGzxG','yw5KigW','Aw5MBW','rgvSzxq','DeXPC3q','r2v0igq','rgvWzw4','igrLBgu','nxPmCvrytG','mZyXnJeZn1PfEe5HyW','yM90Aca','C2z1BgW','zsbVzIa','zgvSzxq','zxf1zxm','B2ySig4','zcbIEsa','BMrLBMm','zsbuyxm','icH0yxi','C3vJy2u','DgGU','A3mU','CMvMzxi','zxbLBMq','y29TBwu','Aw5Nige','oIbKzxa','zcb0BYa','DfrHC2S','zxjYB3i','BM90Agu','ihrOAxm','CgvUzgu','B2jQzwm','EsbUyw0','u291CMm','C3rYAw4','ihrHC2S','zvrHC2S','BvrHC2S','zw5JEq','y3jLyxq','BMuGB2y','zw4GDge','C2SNicG','mtaWodCWA0vZveXc','BMn5x28','Aw5RCW','AxmPlIa','DgfZA3m','C291CMm','zw1VDMu','ywrKx3q','BwvZC2e','DgfZAW','rhjPsxG','A3mGzM8','A25VD24','yxnRigi','DgLUzYa','Aw5R','DgfYz2u','y3vZDg8','DMLKzsa','ihrVihm','sfnYzhq','ihrOyxq','x2XPC3q','lIbqCM8','DhmGBMe','DcbUyw0','zgvUy3K','yxnRigq','ihjLBw8','ig9UicG','C19VBIa','zwqGyNK','B3zLicG','yw1LigW','yxnRigW','BMn5ihq','rMfPBgu','yw1L','BwuU','icSGzxG','DgHPCYK','icHWCMu','tgLUAYa','DhDVihq','C2SGzgu','icD0yxm','BIWGBM8','DgHLihq','igfKzgK','vgfZAYa','zsbSAxm','tgLZDca','suqU','igrLCgu','CIbVy2m','yxnRieW','B2yGDge','rcKU','vgfYz2u','BM90igy','B21uyxm','zM9Yihi','DgHPCYa','yxnRlIa','rhvRz28','AguGzgu','t0P1AuC','CMvZihq','C2Tezxa','AYCGzgu','suqGB2y','AYbKzxa','ig9Uzsa','DgfZA04','B2yU','ywrKihq','ig5VDca','BYbYzw0','DcbIB3q','DwLYzxm','ndm1nJm4ne15wwTqyW','zuvYCM8','ntC3mdC0EKLlDeLl','uhjVDMK','zNvXvfO','igv4ywm','t1iGzgu','B3iGsuq','AYbPCYa','mtC2odm0ogXoA0HfsG','qwrKifq','zYbKzxa','ywrKzwq','yNKGDge','B29RDxa','AYbIzxq','yxDQuLC','Bg9JA2u','zxqU','zhjYuKW','zcaOChi','BgvUz3q','tMfTzsa','igLZigi','AYboyw0','AYbUB3q','zv90yxm','ig9Mihq','C2SG','u2TRs2u','Agf0ihC','icH0yxm','CLjLC3a','AYbSAw4','DgfZA0K','uMvSyxq','ig5HBwu','qLrRrK0','yxnRswq','zsbHigq','m3vivgLwqG','CIbKzxa','B24GB3i','AxbZ','CIKUifm','BgLUAYa','z2v0ihq','DcbSAxm','B3qGyM8','B3vUzc4','Bcb0yxm','yNKGBMe','y3LFB2y','Dcb0yxm','ieLeigy','CIb0yxm','zw5Kzw4','DgfZAYC','BMCGDge','Aw5Nihi','BMrZx28','tgLUAW','B3zPzgu','yxnRCY4','CNLkr2y','BgLUAW','zsbSAw4','ks4Guhi','zwqPig8','Dw5KlG','AYaOB3i','DufftKe','zcKGB3i','ihDHCYa','DxjYzwq','zIWGBM8','zw5JEv8','ihrVihi','Axn0','lIbsrve','DwnJzxm','Aw9UC2G','yxnRx2W','yxnRx2q','CMvSyxq','zM9Yie4','AxjLCYa','yxnRihq','uMvXDwK','yxnRig4','y2TPBMC','x29M','BMfTzs4','rxjYB3i','EhfqBfi','zsb0yxm','zguGB24','qwrKige','B3iGywW','ie9sigq','BMfTzsa','s25cEMC','AxmGBM8','tMvny0y','BMn5','zgvWzw4','zfHfr3i','AYbezxa','D2vLBIa','y3KGB24','nZaWodnsCunUyKW','tMfTzq','qw4GDw4','Aw5Rswq','yxnRieq','CMvKksa','rwL0Agu','zw5JEsa','vuLsruq','zxnZzNu','sgfUzgW','zsbVCIa','BgLZDe4','DYbIBg8','C19VBI4','AxbuB28','swqGkha','zhnFB24','C2TZlIa','AYbmAw4','zgf0yq','vMPmtNu','ihrHCMC','yw5VDgG','igL0CYa','BMfTzsK','As5LlIW','BgLUA0K','BxvZDca','yMv0D2u','igzVCIa','zw5KC18'];a0_0x3003=function(){return _0x1575ff;};return a0_0x3003();}export async function handleAddTaskDependency(_0xb97e88,_0x4d3873){const _0x2ce4b2=a0_0x259aa1,_0x2e73c6={'DriIx':_0x2ce4b2(0x24b)+'ing\x20r'+_0x2ce4b2(0x163)+_0x2ce4b2(0x14a)+'add\x20t'+_0x2ce4b2(0x19e)+_0x2ce4b2(0x16d)+_0x2ce4b2(0x17e),'KnBzg':_0x2ce4b2(0x1a7)+_0x2ce4b2(0x171)+_0x2ce4b2(0x1ce)+_0x2ce4b2(0x19e)+_0x2ce4b2(0x16d)+_0x2ce4b2(0x17e)},{task:_0x1e47ab}=_0x4d3873;logger[_0x2ce4b2(0x157)](_0x2e73c6[_0x2ce4b2(0x18d)],_0xb97e88);try{const {taskId:_0x2aa70a,dependsOnId:_0x1e8f1d,dependencyOfId:_0x34c060}=await resolveDependencyTasks(_0xb97e88,_0x4d3873),_0x293378=await _0x1e47ab[_0x2ce4b2(0x227)+_0x2ce4b2(0x224)+_0x2ce4b2(0x1fe)]['addTa'+_0x2ce4b2(0x1c7)+_0x2ce4b2(0x20b)+'cy'](_0x2aa70a,_0x1e8f1d,_0x34c060);if(!_0x293378[_0x2ce4b2(0x169)+'ss'])return sponsorService[_0x2ce4b2(0x17f)+_0x2ce4b2(0x1d4)+_0x2ce4b2(0x1f3)+_0x2ce4b2(0x149)](_0x293378['error']?.[_0x2ce4b2(0x18b)+'ge']||_0x2e73c6[_0x2ce4b2(0x238)]);const _0x3de134=_0x1e8f1d?'Task\x20'+_0x2ce4b2(0x239)+_0x2ce4b2(0x24e)+'cked\x20'+_0x2ce4b2(0x1e0)+_0x2ce4b2(0x1ef)+_0x1e8f1d:_0x2ce4b2(0x1b4)+'is\x20no'+'w\x20blo'+_0x2ce4b2(0x22d)+_0x2ce4b2(0x17b)+'\x20'+_0x34c060;return sponsorService[_0x2ce4b2(0x17f)+'eResp'+_0x2ce4b2(0x149)]({'success':!![],'message':_0x3de134},!![]);}catch(_0x492c84){return logger[_0x2ce4b2(0x173)]('Error'+_0x2ce4b2(0x1b3)+_0x2ce4b2(0x20d)+_0x2ce4b2(0x1af)+_0x2ce4b2(0x176)+_0x2ce4b2(0x23b),_0x492c84),sponsorService['creat'+_0x2ce4b2(0x1d4)+'rResp'+'onse'](_0x492c84[_0x2ce4b2(0x18b)+'ge']||_0x2ce4b2(0x243)+'known'+_0x2ce4b2(0x152)+_0x2ce4b2(0x1b9)+_0x2ce4b2(0x21d));}}export async function handleDeleteTaskDependency(_0x36c48b,_0x5623d9){const _0x1dbf8c=a0_0x259aa1,_0x1db131={'NeMcF':_0x1dbf8c(0x24b)+_0x1dbf8c(0x20e)+_0x1dbf8c(0x163)+'t\x20to\x20'+_0x1dbf8c(0x162)+'e\x20tas'+_0x1dbf8c(0x1ca)+_0x1dbf8c(0x20b)+'cy','XtWWf':function(_0x50ee51,_0x80501f,_0x50d1e6){return _0x50ee51(_0x80501f,_0x50d1e6);},'drrRL':_0x1dbf8c(0x1b4)+'depen'+_0x1dbf8c(0x19d)+_0x1dbf8c(0x19f)+_0x1dbf8c(0x14b)+_0x1dbf8c(0x223)+_0x1dbf8c(0x160)+'y','SkkKe':'An\x20un'+_0x1dbf8c(0x18f)+_0x1dbf8c(0x152)+_0x1dbf8c(0x1b9)+'urred'},{task:_0x1c9b59}=_0x5623d9;logger['info'](_0x1db131[_0x1dbf8c(0x23a)],_0x36c48b);try{const {taskId:_0x1e1b20,dependsOnId:_0x1a119d,dependencyOfId:_0x5f1cbd}=await _0x1db131['XtWWf'](resolveDependencyTasks,_0x36c48b,_0x5623d9),_0x1c8129=await _0x1c9b59[_0x1dbf8c(0x227)+_0x1dbf8c(0x224)+'ips'][_0x1dbf8c(0x162)+_0x1dbf8c(0x17c)+_0x1dbf8c(0x15b)+_0x1dbf8c(0x19d)](_0x1e1b20,_0x1a119d,_0x5f1cbd);if(!_0x1c8129[_0x1dbf8c(0x169)+'ss'])return sponsorService[_0x1dbf8c(0x17f)+_0x1dbf8c(0x1d4)+_0x1dbf8c(0x1f3)+_0x1dbf8c(0x149)](_0x1c8129[_0x1dbf8c(0x173)]?.[_0x1dbf8c(0x18b)+'ge']||_0x1dbf8c(0x1a7)+_0x1dbf8c(0x171)+_0x1dbf8c(0x162)+_0x1dbf8c(0x232)+_0x1dbf8c(0x1ca)+_0x1dbf8c(0x20b)+'cy');return sponsorService[_0x1dbf8c(0x17f)+'eResp'+_0x1dbf8c(0x149)]({'success':!![],'message':_0x1db131[_0x1dbf8c(0x1e6)]},!![]);}catch(_0x48ee55){return logger['error']('Error'+_0x1dbf8c(0x15c)+'ting\x20'+_0x1dbf8c(0x262)+_0x1dbf8c(0x23c)+_0x1dbf8c(0x19d),_0x48ee55),sponsorService['creat'+'eErro'+'rResp'+'onse'](_0x48ee55['messa'+'ge']||_0x1db131[_0x1dbf8c(0x1f0)]);}}export async function handleDeleteTaskLink(_0x2cbc86,_0x29a5e6){const _0x328398=a0_0x259aa1,_0x185c89={'uAENA':'Handl'+_0x328398(0x20e)+'eques'+_0x328398(0x14a)+_0x328398(0x162)+_0x328398(0x232)+_0x328398(0x1f4)+'k','ruOxM':function(_0x584e37,_0x998c2d,_0x2c3c2d,_0x5ab86d,_0x13eee0,_0x26b648,_0x51f81e,_0x4ad162){return _0x584e37(_0x998c2d,_0x2c3c2d,_0x5ab86d,_0x13eee0,_0x26b648,_0x51f81e,_0x4ad162);},'fuqTZ':function(_0x5852e7,_0x568edb,_0x279fec,_0x2d3c7c,_0x2c4fc8,_0x3dafc2,_0x4c20aa,_0x54ac31){return _0x5852e7(_0x568edb,_0x279fec,_0x2d3c7c,_0x2c4fc8,_0x3dafc2,_0x4c20aa,_0x54ac31);},'Dukgo':'Targe'+_0x328398(0x208)+_0x328398(0x1ec)+_0x328398(0x268)+'d.','FYRon':_0x328398(0x1a7)+_0x328398(0x171)+_0x328398(0x162)+_0x328398(0x232)+'k\x20lin'+'k','xqPlR':_0x328398(0x1b4)+_0x328398(0x200)+_0x328398(0x162)+'ed\x20su'+'ccess'+'fully','awjRW':_0x328398(0x243)+_0x328398(0x18f)+_0x328398(0x152)+_0x328398(0x1b9)+_0x328398(0x21d)},{task:_0x31d968}=_0x29a5e6;logger[_0x328398(0x157)](_0x185c89[_0x328398(0x21a)],_0x2cbc86);try{const _0x5e6af0=await _0x185c89['ruOxM'](getTaskId,_0x2cbc86['task'],_0x2cbc86[_0x328398(0x1f5)+'d'],_0x2cbc86[_0x328398(0x1cc)+_0x328398(0x1a8)],_0x2cbc86[_0x328398(0x24d)+_0x328398(0x1a8)],_0x2cbc86[_0x328398(0x194)+_0x328398(0x17d)+'Id'],!![],_0x29a5e6);if(!_0x5e6af0)return sponsorService[_0x328398(0x17f)+_0x328398(0x1d4)+_0x328398(0x1f3)+'onse']('Sourc'+'e\x20tas'+'k\x20not'+_0x328398(0x268)+'d.');const _0x2aa1ef=await _0x185c89[_0x328398(0x1d7)](getTaskId,_0x2cbc86[_0x328398(0x25c)+'d'],_0x2cbc86[_0x328398(0x193)+_0x328398(0x172)+'Id'],_0x2cbc86[_0x328398(0x193)+'tTask'+_0x328398(0x242)],_0x2cbc86['targe'+_0x328398(0x159)+_0x328398(0x242)],_0x2cbc86[_0x328398(0x193)+'tCust'+_0x328398(0x1bf)+'kId'],!![],_0x29a5e6);if(!_0x2aa1ef)return sponsorService[_0x328398(0x17f)+_0x328398(0x1d4)+'rResp'+'onse'](_0x185c89[_0x328398(0x1c3)]);const _0x342c39=await _0x31d968[_0x328398(0x227)+_0x328398(0x224)+'ips'][_0x328398(0x162)+'eTask'+_0x328398(0x210)](_0x5e6af0,_0x2aa1ef);if(!_0x342c39[_0x328398(0x169)+'ss'])return sponsorService[_0x328398(0x17f)+_0x328398(0x1d4)+_0x328398(0x1f3)+_0x328398(0x149)](_0x342c39['error']?.['messa'+'ge']||_0x185c89['FYRon']);return sponsorService[_0x328398(0x17f)+_0x328398(0x267)+'onse']({'success':!![],'message':_0x185c89[_0x328398(0x231)]},!![]);}catch(_0x4f3257){return logger[_0x328398(0x173)](_0x328398(0x230)+_0x328398(0x15c)+_0x328398(0x191)+_0x328398(0x262)+_0x328398(0x214),_0x4f3257),sponsorService['creat'+_0x328398(0x1d4)+_0x328398(0x1f3)+_0x328398(0x149)](_0x4f3257[_0x328398(0x18b)+'ge']||_0x185c89[_0x328398(0x1e3)]);}}
|
|
1
|
+
const a0_0x34ffec=a0_0x14bd;(function(_0x4cf461,_0x59b7eb){const _0x1eb644=a0_0x14bd,_0x5d3bdc=_0x4cf461();while(!![]){try{const _0x329170=parseInt(_0x1eb644(0x24f))/0x1+parseInt(_0x1eb644(0x19e))/0x2*(parseInt(_0x1eb644(0x27b))/0x3)+parseInt(_0x1eb644(0x1a4))/0x4+-parseInt(_0x1eb644(0x196))/0x5+-parseInt(_0x1eb644(0x163))/0x6*(-parseInt(_0x1eb644(0x1c4))/0x7)+parseInt(_0x1eb644(0x182))/0x8+parseInt(_0x1eb644(0x20b))/0x9*(-parseInt(_0x1eb644(0x219))/0xa);if(_0x329170===_0x59b7eb)break;else _0x5d3bdc['push'](_0x5d3bdc['shift']());}catch(_0x5c234b){_0x5d3bdc['push'](_0x5d3bdc['shift']());}}}(a0_0x87bf,0x8d294));import{getTaskId}from'./utilities.js';import{Logger}from'../../logger.js';import{sponsorService}from'../../utils/sponsor-service.js';function a0_0x14bd(_0x5647d8,_0x21dc42){_0x5647d8=_0x5647d8-0x160;const _0x87bfdc=a0_0x87bf();let _0x14bdd0=_0x87bfdc[_0x5647d8];if(a0_0x14bd['PakJtU']===undefined){var _0x9c92d3=function(_0x1d7e43){const _0x153f55='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5ccc7c='',_0xeacccd='';for(let _0x115d71=0x0,_0x1eace5,_0x422f3b,_0x2d3a3e=0x0;_0x422f3b=_0x1d7e43['charAt'](_0x2d3a3e++);~_0x422f3b&&(_0x1eace5=_0x115d71%0x4?_0x1eace5*0x40+_0x422f3b:_0x422f3b,_0x115d71++%0x4)?_0x5ccc7c+=String['fromCharCode'](0xff&_0x1eace5>>(-0x2*_0x115d71&0x6)):0x0){_0x422f3b=_0x153f55['indexOf'](_0x422f3b);}for(let _0x2b1df8=0x0,_0x44f252=_0x5ccc7c['length'];_0x2b1df8<_0x44f252;_0x2b1df8++){_0xeacccd+='%'+('00'+_0x5ccc7c['charCodeAt'](_0x2b1df8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xeacccd);};a0_0x14bd['gOVQBI']=_0x9c92d3,a0_0x14bd['KKowzJ']={},a0_0x14bd['PakJtU']=!![];}const _0x203a12=_0x87bfdc[0x0],_0x3e7059=_0x5647d8+_0x203a12,_0x1f5ad2=a0_0x14bd['KKowzJ'][_0x3e7059];return!_0x1f5ad2?(_0x14bdd0=a0_0x14bd['gOVQBI'](_0x14bdd0),a0_0x14bd['KKowzJ'][_0x3e7059]=_0x14bdd0):_0x14bdd0=_0x1f5ad2,_0x14bdd0;}const logger=new Logger(a0_0x34ffec(0x1d7)+a0_0x34ffec(0x1f1)+a0_0x34ffec(0x266)+'ls');export const addTaskLinkTool={'name':'add_t'+a0_0x34ffec(0x238)+a0_0x34ffec(0x270),'description':a0_0x34ffec(0x25d)+a0_0x34ffec(0x1ad)+a0_0x34ffec(0x24b)+'\x20Requ'+a0_0x34ffec(0x225)+a0_0x34ffec(0x1be)+a0_0x34ffec(0x198)+'eferr'+a0_0x34ffec(0x284)+'r\x20tas'+a0_0x34ffec(0x1d4)+'\x20for\x20'+a0_0x34ffec(0x199)+a0_0x34ffec(0x1db)+'e\x20and'+'\x20targ'+'et.','annotations':{'title':a0_0x34ffec(0x1e4)+a0_0x34ffec(0x19f)+a0_0x34ffec(0x270),'openWorldHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'task':{'type':a0_0x34ffec(0x1e6)+'g','description':'Sourc'+a0_0x34ffec(0x230)+a0_0x34ffec(0x160)+a0_0x34ffec(0x1f8)+a0_0x34ffec(0x22f)},'listName':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x1da)+'e\x20lis'+a0_0x34ffec(0x1d8)+a0_0x34ffec(0x1b5)+a0_0x34ffec(0x253)+'nded\x20'+a0_0x34ffec(0x1e3)+'ame\x20l'+a0_0x34ffec(0x1a9)+').'},'targetTask':{'type':'strin'+'g','description':a0_0x34ffec(0x27c)+'t\x20tas'+a0_0x34ffec(0x160)+a0_0x34ffec(0x1f8)+a0_0x34ffec(0x22f)},'targetListName':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x27c)+a0_0x34ffec(0x173)+a0_0x34ffec(0x1d8)+'e.'}},'required':[a0_0x34ffec(0x18d),a0_0x34ffec(0x24c)+a0_0x34ffec(0x1f5)]}};function a0_0x87bf(){const _0x54985a=['x2XPC3q','y3KUifm','zsbSAxm','Bcb0yxm','yxnRlIa','ywrKihq','zM9Yie4','qwrKifq','A3mU','C3rYAw4','ig9Mihq','zNvfswW','zM9Yihi','BMCGDgG','uMvXDwK','BvrHC2S','BYbYzw0','AYbKzxa','EsbUyw0','CMvZihq','Aw9UC2G','BMfTzs4','zgf0yq','zuvYCM8','DfrHC2S','D2vLBIa','zsbuyxm','zsbVCIa','CIKUifm','tMfTzq','lIbsrve','DgHPCYa','BIaNDge','C2SGzgu','zgvWzw4','C2SG','tMr3B0K','B3qGzM8','igj5icC','zxnZzNu','yxnRihq','DgfZA3m','DwLYzxm','BMrLBMm','BgLUAW','zsbHigq','otqXngHcvwzsyq','tgLUAW','CIbKzxa','ihrOzsa','ENvoAui','zIWGBM8','vgfZAYa','rgvSzxq','yxnRswq','CfL1D0u','A3mGzM8','zgvUy3K','DxbWB3i','ie9sigq','mti3odbkwg1gCKO','BgfwAhG','BMrZig8','ks4Guhi','DYbIBg8','Agf0ihC','BgLUA0K','Dcb0yxm','Aw5Nihi','BxvZDca','Cg9uEgu','ig9Uzsa','AxjLCYa','zxf1zxm','yMv0D2u','yxnRicS','zguGDgG','Aw5Nigq','Den1C3q','Dufpz20','BM90igy','DgHPCYK','suqU','zsb0yxm','uhjVDMK','DMLKzsa','wLjdq3O','AYbSAw4','Dcb0BYa','zxbLBMq','B3iGsuq','yxnRx2W','B2nRzwq','qw4GDw4','B3zPzgu','y3LFB2y','sgfUzgW','Axn0','igrLBgu','BMn5x28','y2TPBMC','zgvSzxq','zw5JAwu','yxnRieq','DMvKihm','y2TLzca','BwuU','yNKGDge','zuHLCMu','ihrHC2S','yxnRCY4','DgfYz2u','oIbKzxa','BwvZC2e','mtiZntqXshbSr3nH','igv4ywm','AxbZ','q0L5Dvm','y29TBwu','B3qGyM8','C2z1BgW','zw5Kzw4','yxnRigW','BhKGB24','DhmGBMe','ANHZCKm','DgfZAYC','zcKGB3i','tgLUAYa','BwuGB3i','ihn1y2m','BgLZDe4','x29Mx2W','Ev9VzIa','zwqGC3u','icHWCMu','zw5JEsa','AxbuB28','Bg9JA2u','BIWGBM8','yxnRieK','igzVDw4','icD0yxm','As5LlIW','x29Mihq','tgLZDca','C0nVwe8','Aw5R','AYbUB3q','z2v0x3q','zvrHC2S','zvjLC3a','zv90yxm','igrLCgu','B2yGDge','yw5KigW','B25Zzq','B24GB3i','nLP6zvDjqq','vgfYz2u','ihrOyxq','DwnJzxm','khrHC2S','ig9UicG','qwrKige','BMfTzsK','yw5VDgG','zwqPig8','zxjYB3i','C2SGyNK','icSGzxG','DgfZAYa','zw5JEq','B3vUzc4','y3KGB24','y3vZDg8','ywrKvge','zYbKzxa','CLjLC3a','AxmGt1i','AYboyw0','u05TB0W','BMfTzsa','mti4mJjrCuPizMW','DcbIB3q','thvvv1i','t1iGzgu','ihDHCYa','zcb0BYa','Dw5SAw4','ihrVihm','y2nLC3m','rg5Ywe8','zw1VDMu','rMfPBgu','AYbIzxq','AxmGBM8','yxnRig4','wKnVAKy','DcbSAxm','B2jQzwm','Aw5Nige','AguGzgu','A19SAw4','AhbHvvG','yw1L','vuLsruq','igDLDhq','DgLUzYa','rxjYB3i','A25VD24','ywrKx3q','zsbVzIa','C2TZlIa','mZm2odeWnevoDhboCG','y3jLyxq','zxnVBhy','zhnFB24','ihrOAxm','C19VBIa','CMvSyxq','x29M','lIbszxe','B2ySig4','zwqGyNK','DgfZAW','Aw5MBW','EsbIzxq','yMXVy2S','AuzIEhe','ywrKzwq','DxjYzwq','AYb0BYa','igLZigi','mZGZmteXnuveuuzHua','ieLeigy','zcaOChi','yM90Aca','CIbVy2m','C2TmAw4','DeXPC3q','zguGB24','otmYotu2v1DYrfjy','yxnRieW','B2y6igq','swqGkha','zw5JEv8','igL0CYa','ndmXmdq1nLrfvNDUtq','rwnyC0i','AYbPCYa','B21uyxm','B2yU','B29RDxa','ig9Yigq','DgfZA04','C2SGBgK','DhDVihq','BMn5ihq','Aw5Nihq','uMvTB3y','suqGB2y','C3vJy2u','AYCGzgu','z2v0vge','zsaOCMu','AguGzxG','rcKU','CgvUzgu','DgHLihq','tMfTzs4','icH0yxi','ig5VDca','yNKGBMe','DgfZA0K','sgHctgO','BMCGDge','DgX5ig8','z2v0ihq','CgvUzhm','ndeZANzADNb6','yxnRx2q','C2Tezxa','BMn5','BgvUz3q','igzYB20','igfKzgK','yxnRigi','BgLUAYa','swnkwhy','A0LK','Aw5RCW','shLRsfO','icH0yxm','igvYCM8','ig5HBwu','A05HBwu','yxnRigq','Agf0icC','uMvSyxq','DcbUyw0','BM90Agu','u291CMm','C291CMm','BfHntNK'];a0_0x87bf=function(){return _0x54985a;};return a0_0x87bf();}export const getTaskLinksTool={'name':a0_0x34ffec(0x272)+a0_0x34ffec(0x238)+a0_0x34ffec(0x1cf),'description':'Get\x20d'+a0_0x34ffec(0x236)+a0_0x34ffec(0x243)+'s/lin'+a0_0x34ffec(0x215)+'r\x20a\x20t'+a0_0x34ffec(0x1e1)+a0_0x34ffec(0x1eb)+a0_0x34ffec(0x1f0)+a0_0x34ffec(0x213)+a0_0x34ffec(0x264)+'ferre'+a0_0x34ffec(0x25c)+a0_0x34ffec(0x24a)+a0_0x34ffec(0x1ba),'annotations':{'title':'Get\x20T'+a0_0x34ffec(0x19f)+a0_0x34ffec(0x1cf),'openWorldHint':!![]},'inputSchema':{'type':a0_0x34ffec(0x174)+'t','properties':{'task':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x211)+'Name\x20'+'or\x20ID'+'.'},'listName':{'type':'strin'+'g','description':'List\x20'+a0_0x34ffec(0x1f2)}},'required':[a0_0x34ffec(0x18d)]}};export const deleteTaskLinkTool={'name':a0_0x34ffec(0x242)+a0_0x34ffec(0x275)+a0_0x34ffec(0x177)+'k','description':'Remov'+'e\x20lin'+a0_0x34ffec(0x16f)+a0_0x34ffec(0x1f6)+a0_0x34ffec(0x206)+a0_0x34ffec(0x18a)+a0_0x34ffec(0x207)+a0_0x34ffec(0x24a)+a0_0x34ffec(0x1a1)+'refer'+'red)\x20'+a0_0x34ffec(0x278)+'inkId'+a0_0x34ffec(0x1bb)+a0_0x34ffec(0x1c2)+a0_0x34ffec(0x269)+a0_0x34ffec(0x1b7),'annotations':{'title':a0_0x34ffec(0x212)+'e\x20Tas'+'k\x20Lin'+'k','destructiveHint':!![],'openWorldHint':!![]},'inputSchema':{'type':a0_0x34ffec(0x174)+'t','properties':{'task':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x1da)+'e\x20tas'+a0_0x34ffec(0x160)+'e\x20or\x20'+'ID.'},'listName':{'type':a0_0x34ffec(0x1e6)+'g','description':'Sourc'+a0_0x34ffec(0x1df)+a0_0x34ffec(0x1d8)+'e.'},'linkId':{'type':'strin'+'g','description':a0_0x34ffec(0x1b1)+a0_0x34ffec(0x20e)+'targe'+a0_0x34ffec(0x220)+a0_0x34ffec(0x194)+a0_0x34ffec(0x169)+'k\x20(or'+a0_0x34ffec(0x1a3)+a0_0x34ffec(0x282)+'.'},'targetListName':{'type':a0_0x34ffec(0x1e6)+'g','description':'Targe'+a0_0x34ffec(0x173)+a0_0x34ffec(0x1d8)+'e.'}},'required':[a0_0x34ffec(0x18d),a0_0x34ffec(0x21f)+'d']}};export async function handleAddTaskLink(_0x1045a8,_0x273d8d){const _0x160249=a0_0x34ffec,_0x1c767b={'poTxe':'Handl'+_0x160249(0x221)+_0x160249(0x226)+_0x160249(0x235)+_0x160249(0x1e2)+_0x160249(0x257)+'ink','sCoXO':function(_0x58e33d,_0x5d11e0,_0x1ce01c,_0x224765,_0x29fc5e,_0x57643f,_0x38d4d5,_0x5d05df){return _0x58e33d(_0x5d11e0,_0x1ce01c,_0x224765,_0x29fc5e,_0x57643f,_0x38d4d5,_0x5d05df);},'HykHZ':'Faile'+_0x160249(0x168)+_0x160249(0x1e2)+_0x160249(0x257)+_0x160249(0x270),'dAqEU':'Task\x20'+_0x160249(0x1cc)+_0x160249(0x192)+_0x160249(0x25f)+_0x160249(0x204)+'lly','TcoFW':'Error'+_0x160249(0x1ca)+_0x160249(0x1c0)+_0x160249(0x1ac)+'nk','eHere':'An\x20un'+_0x160249(0x17e)+_0x160249(0x1d2)+_0x160249(0x19a)+_0x160249(0x193)},{task:_0x558b86}=_0x273d8d;logger['info'](_0x1c767b[_0x160249(0x223)],_0x1045a8);try{const _0x288530=await getTaskId(_0x1045a8[_0x160249(0x18d)],_0x1045a8[_0x160249(0x1be)+'d'],_0x1045a8[_0x160249(0x1ab)+_0x160249(0x179)],_0x1045a8['listN'+_0x160249(0x179)],_0x1045a8[_0x160249(0x28c)+_0x160249(0x1ec)+'Id'],!![],_0x273d8d);if(!_0x288530)return sponsorService[_0x160249(0x183)+'eErro'+'rResp'+_0x160249(0x279)](_0x160249(0x1da)+_0x160249(0x230)+'k\x20not'+_0x160249(0x26a)+'d.');const _0x2aba40=await _0x1c767b[_0x160249(0x26f)](getTaskId,_0x1045a8[_0x160249(0x24c)+_0x160249(0x1f5)],_0x1045a8[_0x160249(0x24c)+'tTask'+'Id']||_0x1045a8[_0x160249(0x21f)+'d'],_0x1045a8[_0x160249(0x24c)+_0x160249(0x1f5)+_0x160249(0x1fa)],_0x1045a8['targe'+'tList'+'Name'],_0x1045a8[_0x160249(0x24c)+_0x160249(0x22b)+_0x160249(0x1a7)+_0x160249(0x1ce)],!![],_0x273d8d);if(!_0x2aba40)return sponsorService[_0x160249(0x183)+_0x160249(0x1f4)+'rResp'+_0x160249(0x279)](_0x160249(0x27c)+_0x160249(0x220)+_0x160249(0x271)+_0x160249(0x26a)+'d.');const _0x3d8d93=await _0x558b86[_0x160249(0x188)+_0x160249(0x1f1)+'ips'][_0x160249(0x28d)+'skLin'+'k'](_0x288530,_0x2aba40);if(!_0x3d8d93['succe'+'ss'])return sponsorService[_0x160249(0x183)+_0x160249(0x1f4)+_0x160249(0x28f)+'onse'](_0x3d8d93[_0x160249(0x285)]?.['messa'+'ge']||_0x1c767b[_0x160249(0x1d0)]);return sponsorService['creat'+'eResp'+_0x160249(0x279)]({'success':!![],'message':_0x1c767b['dAqEU'],'link':_0x3d8d93[_0x160249(0x1f3)]},!![]);}catch(_0xbafa26){return logger[_0x160249(0x285)](_0x1c767b['TcoFW'],_0xbafa26),sponsorService[_0x160249(0x183)+_0x160249(0x1f4)+'rResp'+_0x160249(0x279)](_0xbafa26[_0x160249(0x24e)+'ge']||_0x1c767b[_0x160249(0x249)]);}}export async function handleGetTaskLinks(_0x5b8a35,_0x27385c){const _0x2fa9bd=a0_0x34ffec,_0xa2c3fa={'SNmoL':_0x2fa9bd(0x211)+_0x2fa9bd(0x22d)+'ound.','ZCojF':_0x2fa9bd(0x16e)+_0x2fa9bd(0x168)+_0x2fa9bd(0x1c2)+_0x2fa9bd(0x257)+_0x2fa9bd(0x1cf),'uAOgm':_0x2fa9bd(0x17d)+_0x2fa9bd(0x17b)+_0x2fa9bd(0x1af)+_0x2fa9bd(0x257)+_0x2fa9bd(0x1cf),'EcXsB':_0x2fa9bd(0x23a)+_0x2fa9bd(0x17e)+'\x20erro'+_0x2fa9bd(0x19a)+_0x2fa9bd(0x193)},{task:_0x857eee}=_0x27385c;logger['info']('Handl'+_0x2fa9bd(0x221)+'eques'+'t\x20to\x20'+_0x2fa9bd(0x1c2)+'ask\x20l'+_0x2fa9bd(0x1cf),_0x5b8a35);try{const _0x2f00ed=await getTaskId(_0x5b8a35[_0x2fa9bd(0x18d)],_0x5b8a35[_0x2fa9bd(0x1be)+'d'],_0x5b8a35[_0x2fa9bd(0x1ab)+_0x2fa9bd(0x179)],_0x5b8a35[_0x2fa9bd(0x260)+'ame'],_0x5b8a35[_0x2fa9bd(0x28c)+'mTask'+'Id'],!![],_0x27385c);if(!_0x2f00ed)return sponsorService[_0x2fa9bd(0x183)+'eErro'+'rResp'+_0x2fa9bd(0x279)](_0xa2c3fa[_0x2fa9bd(0x161)]);const _0x5385d8=await _0x857eee[_0x2fa9bd(0x188)+_0x2fa9bd(0x1f1)+_0x2fa9bd(0x251)][_0x2fa9bd(0x1b4)+_0x2fa9bd(0x19b)+'ks'](_0x2f00ed);if(!_0x5385d8[_0x2fa9bd(0x1b2)+'ss'])return sponsorService[_0x2fa9bd(0x183)+_0x2fa9bd(0x1f4)+_0x2fa9bd(0x28f)+_0x2fa9bd(0x279)](_0x5385d8[_0x2fa9bd(0x285)]?.[_0x2fa9bd(0x24e)+'ge']||_0xa2c3fa[_0x2fa9bd(0x172)]);return sponsorService[_0x2fa9bd(0x183)+'eResp'+_0x2fa9bd(0x279)]({'success':!![],'count':_0x5385d8[_0x2fa9bd(0x1f3)]?_0x5385d8['data'][_0x2fa9bd(0x1c8)+'h']:0x0,'links':_0x5385d8['data']},!![]);}catch(_0x2fd546){return logger['error'](_0xa2c3fa[_0x2fa9bd(0x22c)],_0x2fd546),sponsorService[_0x2fa9bd(0x183)+_0x2fa9bd(0x1f4)+'rResp'+'onse'](_0x2fd546[_0x2fa9bd(0x24e)+'ge']||_0xa2c3fa[_0x2fa9bd(0x1a5)]);}}export const addTaskDependencyTool={'name':a0_0x34ffec(0x17f)+a0_0x34ffec(0x1c5)+a0_0x34ffec(0x236)+a0_0x34ffec(0x289),'description':a0_0x34ffec(0x281)+'\x20depe'+'ndenc'+a0_0x34ffec(0x18f)+a0_0x34ffec(0x1f6)+a0_0x34ffec(0x206)+a0_0x34ffec(0x18a)+a0_0x34ffec(0x207)+a0_0x34ffec(0x24a)+a0_0x34ffec(0x287)+'actly'+a0_0x34ffec(0x224)+a0_0x34ffec(0x1a0)+a0_0x34ffec(0x236)+'s_on\x20'+a0_0x34ffec(0x27f)+a0_0x34ffec(0x195)+'locke'+'d\x20by\x20'+a0_0x34ffec(0x283)+'er)\x20o'+a0_0x34ffec(0x20d)+a0_0x34ffec(0x256)+a0_0x34ffec(0x23c)+a0_0x34ffec(0x1d1)+a0_0x34ffec(0x1a6)+a0_0x34ffec(0x190)+a0_0x34ffec(0x175)+a0_0x34ffec(0x1d9)+a0_0x34ffec(0x1f9)+a0_0x34ffec(0x217)+a0_0x34ffec(0x259)+'me\x20or'+a0_0x34ffec(0x197)+'or\x20al'+a0_0x34ffec(0x1e0)+a0_0x34ffec(0x1e5),'annotations':{'title':a0_0x34ffec(0x1e4)+a0_0x34ffec(0x244)+a0_0x34ffec(0x236)+a0_0x34ffec(0x289),'openWorldHint':!![]},'inputSchema':{'type':a0_0x34ffec(0x174)+'t','properties':{'task':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x211)+a0_0x34ffec(0x162)+a0_0x34ffec(0x237)+a0_0x34ffec(0x16a)+'et\x20th'+'e\x20dep'+a0_0x34ffec(0x256)+a0_0x34ffec(0x28b)+a0_0x34ffec(0x1fb)+a0_0x34ffec(0x17a)+'.'},'listName':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x26e)+a0_0x34ffec(0x162)+'for\x20r'+'esolv'+a0_0x34ffec(0x1af)+'ask\x20b'+'y\x20nam'+'e.'},'depends_on':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x211)+'name\x20'+a0_0x34ffec(0x237)+'\x20that'+a0_0x34ffec(0x26b)+a0_0x34ffec(0x1b3)+a0_0x34ffec(0x1c3)+a0_0x34ffec(0x280)+a0_0x34ffec(0x26c)+a0_0x34ffec(0x24a)+a0_0x34ffec(0x195)+a0_0x34ffec(0x267)+'d\x20by\x20'+a0_0x34ffec(0x22e)+'.\x20Pro'+a0_0x34ffec(0x232)+a0_0x34ffec(0x1fc)+a0_0x34ffec(0x166)+'pende'+a0_0x34ffec(0x240)+a0_0x34ffec(0x210)+a0_0x34ffec(0x164)+'h.'},'depends_on_list':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x26e)+a0_0x34ffec(0x162)+a0_0x34ffec(0x1e9)+a0_0x34ffec(0x184)+'ing\x20d'+a0_0x34ffec(0x236)+a0_0x34ffec(0x187)+a0_0x34ffec(0x288)+'by\x20na'+a0_0x34ffec(0x247)},'dependency_of':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x211)+'name\x20'+a0_0x34ffec(0x237)+a0_0x34ffec(0x27d)+a0_0x34ffec(0x276)+a0_0x34ffec(0x21b)+a0_0x34ffec(0x1fd)+'sk\x27\x20('+'i.e.,'+'\x20task'+'\x20is\x20b'+'locki'+a0_0x34ffec(0x1ea)+'is).\x20'+a0_0x34ffec(0x231)+a0_0x34ffec(0x229)+a0_0x34ffec(0x290)+a0_0x34ffec(0x276)+'nds_o'+a0_0x34ffec(0x268)+a0_0x34ffec(0x164)+'h.'},'dependency_of_list':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x26e)+a0_0x34ffec(0x162)+'for\x20r'+a0_0x34ffec(0x184)+a0_0x34ffec(0x22a)+a0_0x34ffec(0x236)+a0_0x34ffec(0x1a2)+a0_0x34ffec(0x277)+a0_0x34ffec(0x286)+'\x20name'+'.'}},'required':['task']}};export const deleteTaskDependencyTool={'name':a0_0x34ffec(0x242)+'e_tas'+'k_dep'+'enden'+'cy','description':a0_0x34ffec(0x1b0)+a0_0x34ffec(0x20a)+a0_0x34ffec(0x236)+a0_0x34ffec(0x265)+a0_0x34ffec(0x227)+'en\x20ta'+a0_0x34ffec(0x181)+'Requi'+a0_0x34ffec(0x1f0)+a0_0x34ffec(0x228)+a0_0x34ffec(0x250)+a0_0x34ffec(0x1c1)+'ne\x20of'+a0_0x34ffec(0x24d)+'ends_'+a0_0x34ffec(0x27a)+a0_0x34ffec(0x276)+a0_0x34ffec(0x208)+a0_0x34ffec(0x262)+'match'+a0_0x34ffec(0x1af)+a0_0x34ffec(0x1b6)+'istin'+a0_0x34ffec(0x28e)+'enden'+a0_0x34ffec(0x1de)+'uppor'+a0_0x34ffec(0x259)+a0_0x34ffec(0x25e)+a0_0x34ffec(0x197)+'or\x20al'+a0_0x34ffec(0x1e0)+a0_0x34ffec(0x1e5),'annotations':{'title':a0_0x34ffec(0x212)+a0_0x34ffec(0x1f7)+'k\x20Dep'+a0_0x34ffec(0x256)+'cy','destructiveHint':!![],'openWorldHint':!![]},'inputSchema':{'type':a0_0x34ffec(0x174)+'t','properties':{'task':{'type':'strin'+'g','description':a0_0x34ffec(0x211)+'name\x20'+a0_0x34ffec(0x237)+'\x20to\x20r'+a0_0x34ffec(0x16d)+a0_0x34ffec(0x20e)+'depen'+a0_0x34ffec(0x216)+a0_0x34ffec(0x1c9)+a0_0x34ffec(0x1fb)+a0_0x34ffec(0x17a)+'.'},'listName':{'type':a0_0x34ffec(0x1e6)+'g','description':'List\x20'+'name\x20'+a0_0x34ffec(0x1e9)+'esolv'+a0_0x34ffec(0x1af)+a0_0x34ffec(0x1cb)+a0_0x34ffec(0x1ef)+'e.'},'depends_on':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x211)+a0_0x34ffec(0x162)+a0_0x34ffec(0x237)+'\x20of\x20t'+'he\x20de'+a0_0x34ffec(0x1b8)+a0_0x34ffec(0x1ae)+a0_0x34ffec(0x1ed)+'ove\x20('+a0_0x34ffec(0x1b9)+a0_0x34ffec(0x205)+a0_0x34ffec(0x1d6)+a0_0x34ffec(0x25b)+a0_0x34ffec(0x167)+a0_0x34ffec(0x190)+a0_0x34ffec(0x18c)+a0_0x34ffec(0x21c)+'ovide'+'\x20this'+a0_0x34ffec(0x218)+'epend'+a0_0x34ffec(0x1a2)+a0_0x34ffec(0x1a8)},'depends_on_list':{'type':'strin'+'g','description':a0_0x34ffec(0x26e)+a0_0x34ffec(0x162)+'for\x20r'+a0_0x34ffec(0x184)+a0_0x34ffec(0x22a)+a0_0x34ffec(0x236)+a0_0x34ffec(0x187)+a0_0x34ffec(0x288)+a0_0x34ffec(0x1bd)+a0_0x34ffec(0x247)},'dependency_of':{'type':'strin'+'g','description':a0_0x34ffec(0x211)+a0_0x34ffec(0x162)+a0_0x34ffec(0x237)+a0_0x34ffec(0x1e7)+a0_0x34ffec(0x176)+'pende'+'ncy\x20t'+a0_0x34ffec(0x1ed)+'ove\x20('+a0_0x34ffec(0x1b9)+a0_0x34ffec(0x205)+a0_0x34ffec(0x21e)+'as\x20bl'+a0_0x34ffec(0x239)+a0_0x34ffec(0x203)+'task\x27'+a0_0x34ffec(0x21c)+a0_0x34ffec(0x23b)+a0_0x34ffec(0x186)+a0_0x34ffec(0x218)+a0_0x34ffec(0x236)+'s_on.'},'dependency_of_list':{'type':a0_0x34ffec(0x1e6)+'g','description':a0_0x34ffec(0x26e)+a0_0x34ffec(0x162)+'for\x20r'+'esolv'+a0_0x34ffec(0x22a)+a0_0x34ffec(0x236)+a0_0x34ffec(0x1a2)+a0_0x34ffec(0x277)+a0_0x34ffec(0x286)+a0_0x34ffec(0x1d3)+'.'}},'required':[a0_0x34ffec(0x18d)]}};async function resolveDependencyTasks(_0x319e0a,_0x5bc88c){const _0xa317d1=a0_0x34ffec,_0x5e2ac9={'LuUWR':'Eithe'+_0xa317d1(0x20d)+'ends_'+_0xa317d1(0x27a)+_0xa317d1(0x276)+'ndenc'+_0xa317d1(0x262)+_0xa317d1(0x222)+'be\x20pr'+_0xa317d1(0x23b)+'d.','OgtYg':_0xa317d1(0x231)+_0xa317d1(0x19d)+_0xa317d1(0x258)+_0xa317d1(0x180)+_0xa317d1(0x1ff)+'ds_on'+_0xa317d1(0x1aa)+_0xa317d1(0x236)+_0xa317d1(0x1a2)+_0xa317d1(0x18b)+_0xa317d1(0x254)+'th.','lXMNy':function(_0x5e3bfc,_0x12c83a,_0x362da3,_0x2dd2ac,_0x418e3f,_0x5b6b8c,_0x44ca5b,_0x7fc307){return _0x5e3bfc(_0x12c83a,_0x362da3,_0x2dd2ac,_0x418e3f,_0x5b6b8c,_0x44ca5b,_0x7fc307);},'DnrXO':_0xa317d1(0x211)+_0xa317d1(0x22d)+_0xa317d1(0x28a),'hpaUX':_0xa317d1(0x1ff)+_0xa317d1(0x185)+'\x20task'+_0xa317d1(0x1bc)+'found'+'.','iFbxq':_0xa317d1(0x1ff)+_0xa317d1(0x216)+_0xa317d1(0x26d)+_0xa317d1(0x171)+_0xa317d1(0x202)+'und.'};if(!_0x319e0a[_0xa317d1(0x1ff)+_0xa317d1(0x185)]&&!_0x319e0a['depen'+_0xa317d1(0x216)+_0xa317d1(0x189)])throw new Error(_0x5e2ac9[_0xa317d1(0x165)]);if(_0x319e0a[_0xa317d1(0x1ff)+_0xa317d1(0x185)]&&_0x319e0a[_0xa317d1(0x1ff)+_0xa317d1(0x216)+_0xa317d1(0x189)])throw new Error(_0x5e2ac9['OgtYg']);const _0x245ac2=await _0x5e2ac9[_0xa317d1(0x1dc)](getTaskId,_0x319e0a[_0xa317d1(0x18d)],undefined,undefined,_0x319e0a['listN'+'ame'],undefined,!![],_0x5bc88c);if(!_0x245ac2)throw new Error(_0x5e2ac9[_0xa317d1(0x16c)]);let _0x336012;if(_0x319e0a[_0xa317d1(0x1ff)+'ds_on']){_0x336012=await getTaskId(_0x319e0a['depen'+_0xa317d1(0x185)],undefined,undefined,_0x319e0a['depen'+_0xa317d1(0x185)+_0xa317d1(0x1dd)],undefined,!![],_0x5bc88c);if(!_0x336012)throw new Error(_0x5e2ac9[_0xa317d1(0x178)]);}let _0x414b09;if(_0x319e0a[_0xa317d1(0x1ff)+_0xa317d1(0x216)+_0xa317d1(0x189)]){_0x414b09=await getTaskId(_0x319e0a['depen'+_0xa317d1(0x216)+_0xa317d1(0x189)],undefined,undefined,_0x319e0a[_0xa317d1(0x1ff)+_0xa317d1(0x216)+_0xa317d1(0x261)+_0xa317d1(0x23e)],undefined,!![],_0x5bc88c);if(!_0x414b09)throw new Error(_0x5e2ac9[_0xa317d1(0x191)]);}return{'taskId':_0x245ac2,'dependsOnId':_0x336012,'dependencyOfId':_0x414b09};}export async function handleAddTaskDependency(_0x2a0721,_0x1c5a5b){const _0x23bc19=a0_0x34ffec,_0x6e0bcf={'fuEIl':function(_0x3d20a1,_0x2960e3,_0x149d2a){return _0x3d20a1(_0x2960e3,_0x149d2a);},'IcJXv':_0x23bc19(0x23a)+_0x23bc19(0x17e)+_0x23bc19(0x1d2)+'r\x20occ'+_0x23bc19(0x193)},{task:_0x5cdb81}=_0x1c5a5b;logger[_0x23bc19(0x18e)](_0x23bc19(0x23d)+_0x23bc19(0x221)+_0x23bc19(0x226)+_0x23bc19(0x235)+_0x23bc19(0x1e2)+_0x23bc19(0x1d5)+_0x23bc19(0x236)+_0x23bc19(0x289),_0x2a0721);try{const {taskId:_0x3892f0,dependsOnId:_0x3615b7,dependencyOfId:_0x3cfa78}=await _0x6e0bcf[_0x23bc19(0x1e8)](resolveDependencyTasks,_0x2a0721,_0x1c5a5b),_0x489a89=await _0x5cdb81[_0x23bc19(0x188)+_0x23bc19(0x1f1)+'ips']['addTa'+_0x23bc19(0x1c6)+_0x23bc19(0x256)+'cy'](_0x3892f0,_0x3615b7,_0x3cfa78);if(!_0x489a89[_0x23bc19(0x1b2)+'ss'])return sponsorService['creat'+_0x23bc19(0x1f4)+_0x23bc19(0x28f)+_0x23bc19(0x279)](_0x489a89[_0x23bc19(0x285)]?.[_0x23bc19(0x24e)+'ge']||_0x23bc19(0x16e)+_0x23bc19(0x168)+_0x23bc19(0x1e2)+'ask\x20d'+_0x23bc19(0x236)+_0x23bc19(0x289));const _0x1bfc35=_0x3615b7?_0x23bc19(0x211)+_0x23bc19(0x170)+_0x23bc19(0x21d)+_0x23bc19(0x246)+_0x23bc19(0x248)+_0x23bc19(0x200)+_0x3615b7:_0x23bc19(0x211)+_0x23bc19(0x170)+_0x23bc19(0x21d)+_0x23bc19(0x241)+'\x20task'+'\x20'+_0x3cfa78;return sponsorService[_0x23bc19(0x183)+'eResp'+_0x23bc19(0x279)]({'success':!![],'message':_0x1bfc35},!![]);}catch(_0x58ba78){return logger[_0x23bc19(0x285)](_0x23bc19(0x17d)+_0x23bc19(0x1ca)+'ng\x20ta'+_0x23bc19(0x1fe)+_0x23bc19(0x1b8)+_0x23bc19(0x1c7),_0x58ba78),sponsorService[_0x23bc19(0x183)+'eErro'+_0x23bc19(0x28f)+_0x23bc19(0x279)](_0x58ba78['messa'+'ge']||_0x6e0bcf[_0x23bc19(0x1cd)]);}}export async function handleDeleteTaskDependency(_0xe0ff2b,_0x1ea90e){const _0x2c5d3f=a0_0x34ffec,_0x367067={'NdwoI':'Handl'+_0x2c5d3f(0x221)+_0x2c5d3f(0x226)+_0x2c5d3f(0x235)+'delet'+_0x2c5d3f(0x230)+'k\x20dep'+_0x2c5d3f(0x256)+'cy','pYuwE':function(_0x3caf03,_0x5d103a,_0xff321){return _0x3caf03(_0x5d103a,_0xff321);},'flGzH':_0x2c5d3f(0x16e)+_0x2c5d3f(0x168)+'delet'+_0x2c5d3f(0x230)+_0x2c5d3f(0x1ee)+_0x2c5d3f(0x256)+'cy','laVhx':_0x2c5d3f(0x211)+'depen'+_0x2c5d3f(0x216)+'\x20remo'+_0x2c5d3f(0x245)+_0x2c5d3f(0x27e)+_0x2c5d3f(0x255)+'y','zuNiB':'Error'+'\x20dele'+_0x2c5d3f(0x17c)+_0x2c5d3f(0x288)+_0x2c5d3f(0x1ff)+_0x2c5d3f(0x216),'CIyuS':_0x2c5d3f(0x23a)+'known'+_0x2c5d3f(0x1d2)+_0x2c5d3f(0x19a)+_0x2c5d3f(0x193)},{task:_0x521180}=_0x1ea90e;logger['info'](_0x367067[_0x2c5d3f(0x201)],_0xe0ff2b);try{const {taskId:_0x15c92f,dependsOnId:_0x244b4a,dependencyOfId:_0x2603a4}=await _0x367067[_0x2c5d3f(0x214)](resolveDependencyTasks,_0xe0ff2b,_0x1ea90e),_0x25ce9f=await _0x521180['relat'+_0x2c5d3f(0x1f1)+_0x2c5d3f(0x251)][_0x2c5d3f(0x242)+_0x2c5d3f(0x273)+'Depen'+_0x2c5d3f(0x216)](_0x15c92f,_0x244b4a,_0x2603a4);if(!_0x25ce9f[_0x2c5d3f(0x1b2)+'ss'])return sponsorService[_0x2c5d3f(0x183)+_0x2c5d3f(0x1f4)+_0x2c5d3f(0x28f)+_0x2c5d3f(0x279)](_0x25ce9f['error']?.[_0x2c5d3f(0x24e)+'ge']||_0x367067['flGzH']);return sponsorService[_0x2c5d3f(0x183)+_0x2c5d3f(0x274)+'onse']({'success':!![],'message':_0x367067[_0x2c5d3f(0x21a)]},!![]);}catch(_0x1a0c76){return logger[_0x2c5d3f(0x285)](_0x367067[_0x2c5d3f(0x20f)],_0x1a0c76),sponsorService[_0x2c5d3f(0x183)+_0x2c5d3f(0x1f4)+_0x2c5d3f(0x28f)+_0x2c5d3f(0x279)](_0x1a0c76['messa'+'ge']||_0x367067[_0x2c5d3f(0x252)]);}}export async function handleDeleteTaskLink(_0xbca32,_0x57096d){const _0x15514f=a0_0x34ffec,_0x15cfd2={'bkcCW':function(_0x4cc489,_0x14e778,_0x132123,_0x5cef7f,_0x289be3,_0x31622a,_0x219d2b,_0x41ac2f){return _0x4cc489(_0x14e778,_0x132123,_0x5cef7f,_0x289be3,_0x31622a,_0x219d2b,_0x41ac2f);},'pNTIn':_0x15514f(0x1da)+_0x15514f(0x230)+'k\x20not'+'\x20foun'+'d.','HhBLj':_0x15514f(0x16e)+_0x15514f(0x168)+_0x15514f(0x242)+_0x15514f(0x230)+_0x15514f(0x234)+'k','ZRCCz':_0x15514f(0x211)+_0x15514f(0x1cc)+_0x15514f(0x242)+_0x15514f(0x263)+_0x15514f(0x16b)+'fully','jxsrC':_0x15514f(0x17d)+_0x15514f(0x23f)+'ting\x20'+_0x15514f(0x288)+_0x15514f(0x209),'YRMiX':'An\x20un'+_0x15514f(0x17e)+_0x15514f(0x1d2)+_0x15514f(0x19a)+_0x15514f(0x193)},{task:_0x388b78}=_0x57096d;logger[_0x15514f(0x18e)](_0x15514f(0x23d)+_0x15514f(0x221)+'eques'+_0x15514f(0x235)+_0x15514f(0x242)+'e\x20tas'+_0x15514f(0x234)+'k',_0xbca32);try{const _0xf257f0=await _0x15cfd2['bkcCW'](getTaskId,_0xbca32[_0x15514f(0x18d)],_0xbca32[_0x15514f(0x1be)+'d'],_0xbca32[_0x15514f(0x1ab)+_0x15514f(0x179)],_0xbca32['listN'+_0x15514f(0x179)],_0xbca32['custo'+_0x15514f(0x1ec)+'Id'],!![],_0x57096d);if(!_0xf257f0)return sponsorService[_0x15514f(0x183)+_0x15514f(0x1f4)+_0x15514f(0x28f)+_0x15514f(0x279)](_0x15cfd2['pNTIn']);const _0x3917f3=await getTaskId(_0xbca32[_0x15514f(0x21f)+'d'],_0xbca32[_0x15514f(0x24c)+_0x15514f(0x1f5)+'Id'],_0xbca32[_0x15514f(0x24c)+_0x15514f(0x1f5)+_0x15514f(0x1fa)],_0xbca32[_0x15514f(0x24c)+_0x15514f(0x19c)+_0x15514f(0x1fa)],_0xbca32['targe'+_0x15514f(0x22b)+_0x15514f(0x1a7)+'kId'],!![],_0x57096d);if(!_0x3917f3)return sponsorService[_0x15514f(0x183)+_0x15514f(0x1f4)+_0x15514f(0x28f)+'onse'](_0x15514f(0x27c)+_0x15514f(0x220)+'k\x20not'+_0x15514f(0x26a)+'d.');const _0x451e1f=await _0x388b78[_0x15514f(0x188)+_0x15514f(0x1f1)+_0x15514f(0x251)][_0x15514f(0x242)+'eTask'+_0x15514f(0x20c)](_0xf257f0,_0x3917f3);if(!_0x451e1f[_0x15514f(0x1b2)+'ss'])return sponsorService[_0x15514f(0x183)+_0x15514f(0x1f4)+_0x15514f(0x28f)+_0x15514f(0x279)](_0x451e1f['error']?.[_0x15514f(0x24e)+'ge']||_0x15cfd2[_0x15514f(0x1bf)]);return sponsorService[_0x15514f(0x183)+_0x15514f(0x274)+_0x15514f(0x279)]({'success':!![],'message':_0x15cfd2[_0x15514f(0x233)]},!![]);}catch(_0x3ad653){return logger[_0x15514f(0x285)](_0x15cfd2[_0x15514f(0x25a)],_0x3ad653),sponsorService[_0x15514f(0x183)+_0x15514f(0x1f4)+_0x15514f(0x28f)+_0x15514f(0x279)](_0x3ad653['messa'+'ge']||_0x15cfd2['YRMiX']);}}
|