@taazkareem/clickup-mcp-server 0.14.3 → 0.14.5
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 +211 -120
- 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
package/build/tools/view.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x18493a=a0_0x203b;function a0_0x15b5(){const _0x6624f0=['iIbPBIa','ifjLCxu','DMLLDYa','iIbJCMu','uMv0CMK','D29YA2W','suqGzM8','zxiGDgG','CMvKks4','ihjLCxu','BMvYlG','BIbHBMq','zgf0zv8','yxnRCYa','y3rLza','zuXPC3q','z2v0ihy','Aw5N','CIb3B3i','Dg8GC2u','zgvYswq','y29Wzs4','ieLeigy','vMPLCLG','y3vYCMu','yw1LlG','y2uTBgu','C29YDgK','swqSig8','BMDZlG','BgLZDc4','DvnfwMq','Aw5KzxG','CgvJAwy','BwLUzf8','zgvSzxq','DgLVBJO','y29SDw0','C3rYAw4','zgfY','lcbVCIa','qKLvvu4','EunSyuu','z2v0u3a','mxbSqNbjza','DgfPBMu','CgfJzsa','B3jRC3a','AguGj2C','Aw5JBhu','mJmYmZaYnhb3zLDRuW','z2v0','ueKGy28','zuzVBgq','rMLSDgu','B2XKzxi','igLUige','yw1Lihi','z2v0x3q','zwqGC3u','mZmXmteXou9AqvPRzq','zxnVBhu','zxjYB3i','t3nLEhq','zxCUifi','CK5HBwu','Awv3j3m','zsbwAwu','Axr5','B2jQzwm','zgvZ','DcbHihm','CIbUyw0','DhmGy28','swqSigy','BgLZDf8','q291Bgq','CKLK','zvDVCMS','A2v5CW','Aw9UlG','zcb0BYa','BwvZC2e','ihrVigm','Aw5L','rM9Szgu','DMLLD0K','wujWz2S','CgfNzq','B25Zzq','D24Gz28','D29YA3m','CIbjrca','CIbjrc4','DxjYzw4','zv92Awu','zxf1Axi','otaYmZC5nwzXC2Xuwq','D2L0AgK','zM9Szgu','Aw5Nihy','DgvHBvm','Dgv4DcK','ieLelG','BMfTzsa','DMLZAwi','BYb1Cgq','zsCGAxm','C3vJy2u','vMLLDYa','Aw9Uihm','zuvYCM8','zwfTswq','DxbKyxq','mJCXntm5owz0B1zwyq','AguGj3u','zwXLDgu','AwmGDMK','ig5HBwu','AwD1CMe','ig9Yiee','yxrLzca','vxbKyxq','y3jLyxq','C2nVCgu','ndu4odi2nunYz1vMqW','CMTZCge','DuLiq3i','igLUigG','Awv3x3q','Awv3','zxDZ','u29YDgK','ig9Yihq','CMf0Aw8','zwXKCYa','ysbZCgu','zgf0yq','AxjLzca','mtm5mta1nhbJEvvHyW','DgLTzwW','B250ywK','B3bLlG','suqGkha','zxCSigK','AwrLigW','ignVBMy','CgfYzw4','DcbJB24','CNnVBMe','tMv3ihy','zM9Yihy','zvjLC3a','BMfTzs4','CMvHDgu','B3iGBMe','rMfPBgu','DgLVBIW','CIbJB24','v2TpCfi','BMDZ','BM90zq','j25HBwu','DMLLDW','B3rL','r2v0ify','BgLZDeK','v2HLDgG','BgvK','DgLVBIa','DMvSihy','yMXPyYC','yM9HCMq','icD0Exa','igXPC3q','lcbZCge','C3rwAwu','C3bHy2u','CYaOywm','rgvSzxq','zsbHBIa','ChjPDMe','BgrLCLy','zsbKAxm','Awv3ifq','B3fbuey','mtH4zvPdwxa','AxrLBq','y2vwAwu','BhzLzcK','v29YA3m','uKzowg4','DgvYCYa','z3mU','BMCGAxq','u3bHy2u','CIaNDMK','Ew91CIa','AxnPyMW','ig5VDca','AwrLyMe','yxrLlG','y3rLzf8','r3jVDxa','C2v0DgK','ywWGywm','zcb0Exa','BwHmyuW','mti2otGXt2DZCMTi','sM1iEvu','DgvHBuK','CgfJzq','ihbHz2K','CIbZzxq','tM8GzMK','zvzPzxC','Aw5NigK','zsbPBIa','AguGj2q','z2v0vMK','CLjLC3a','CIbMB3i','ugvYBwe','vgvHBsa','yw5KBgu','ChjVDgu','AwXPDhK','ig9YicC','Aw5Nihm','y3rPB24','zxzLihq','uuvdzg4','BMzPz3u','jYbHy3q','BwfW','B24GC2m','yKfMr0e','yw1L','z2v0tgK','DhrPBMC','DwLYzwq','j3zPzxC','z1fWru8','zMLUzca','DhLWzq','zxHPC3q','y2LMAwm','DMLLD3m','BgvUz3q','swqNig8','z2v0ihq','twfUywC','zsbYzxe','z2v0rM8','vMLLDW','BMfTzq','zxqNige','y3rLze4','ywn0Axy','BNvTyMu','lxjLC28','igfIB3u','tgLZDca','C29SDxq','B3jKzxi','ihDVCMS','q3jLyxq','otm2suLiwwn4','zxjZlG','mtblA3DQC2K','zsbYzxm','lcbMB2W','zxrLzca','BIbJB24','zsb2Awu','rgvZDhi','suqGkhC','kgf1Dg8','zM9Yihq','zxzLBcK','DgHLihm','y2fSzw4','zM9Yig4','Awv3ig4','zxmGBMe','y2vjzca','vgvcBwm','zxr0Aw4','zNvSBhK','lcbYzxm','q29SDw0','BwuGyw4','zxDoyw0','B2X1DgK','se5jq1q','Ee9Vrwq','vgvHBs8','z2v0v28','BgLZDa','AguGDge','zsCGyxi','z2v0x3y','BwuGCMu','y2nLC3m','zwWU','Awv3CYK','tMfTzq','BgLZDca','zMLMqM4','tw9qCgq','zxCU','v29ZCK4','CYbezw4','y3rLzei','B2fK','ihrVihm','CIbZCge','rxjYB3i','yxnRCYC','z3jVDxa','igeGDMK','CMvMzxi','y3zAAMq','AwX0zxi','z2fUDhq','BgLZDe4','B29S','Awv3CW','CJSGB20','zMLSDgu','A3nWywm','DgvHBv8','zM9YicC','C2LKzwi','DhLWzs4','AwvKoIa','BhKU','DgLUz3m','AxjLzc4','C3nMDwW','BgvKigK','BIbZzxq','BMnSDwq','C1HJsuS','jYKGyxi','CM91CgK','ywnLvMK','BMvUDgW','BhzLzca'];a0_0x15b5=function(){return _0x6624f0;};return a0_0x15b5();}(function(_0x567cfd,_0x13fc09){const _0x11f896=a0_0x203b,_0x22bdea=_0x567cfd();while(!![]){try{const _0x55f586=-parseInt(_0x11f896(0x73))/0x1*(-parseInt(_0x11f896(0xd2))/0x2)+parseInt(_0x11f896(0xb9))/0x3+parseInt(_0x11f896(0x79))/0x4+parseInt(_0x11f896(0xc4))/0x5+parseInt(_0x11f896(0x101))/0x6*(-parseInt(_0x11f896(0x83))/0x7)+parseInt(_0x11f896(0x152))/0x8*(-parseInt(_0x11f896(0x117))/0x9)+-parseInt(_0x11f896(0x154))/0xa*(-parseInt(_0x11f896(0xa8))/0xb);if(_0x55f586===_0x13fc09)break;else _0x22bdea['push'](_0x22bdea['shift']());}catch(_0x92e2fd){_0x22bdea['push'](_0x22bdea['shift']());}}}(a0_0x15b5,0xcf6ca));import{Logger}from'../logger.js';import{sponsorService}from'../utils/sponsor-service.js';import{resolveLocation,findBestMatchInArray}from'../utils/resolver-utils.js';function a0_0x203b(_0x362a6a,_0x36a949){_0x362a6a=_0x362a6a-0x69;const _0x15b512=a0_0x15b5();let _0x203b3c=_0x15b512[_0x362a6a];if(a0_0x203b['PdActX']===undefined){var _0x2e77c1=function(_0xbecef2){const _0x39c1e0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x485a61='',_0x4a3e31='';for(let _0x5c41ae=0x0,_0x2725b3,_0x2fcb9,_0x4bc1cb=0x0;_0x2fcb9=_0xbecef2['charAt'](_0x4bc1cb++);~_0x2fcb9&&(_0x2725b3=_0x5c41ae%0x4?_0x2725b3*0x40+_0x2fcb9:_0x2fcb9,_0x5c41ae++%0x4)?_0x485a61+=String['fromCharCode'](0xff&_0x2725b3>>(-0x2*_0x5c41ae&0x6)):0x0){_0x2fcb9=_0x39c1e0['indexOf'](_0x2fcb9);}for(let _0x4a3b16=0x0,_0x5dc010=_0x485a61['length'];_0x4a3b16<_0x5dc010;_0x4a3b16++){_0x4a3e31+='%'+('00'+_0x485a61['charCodeAt'](_0x4a3b16)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4a3e31);};a0_0x203b['CTByYr']=_0x2e77c1,a0_0x203b['rWPWcY']={},a0_0x203b['PdActX']=!![];}const _0x3c4c50=_0x15b512[0x0],_0x5de8b1=_0x362a6a+_0x3c4c50,_0xfba067=a0_0x203b['rWPWcY'][_0x5de8b1];return!_0xfba067?(_0x203b3c=a0_0x203b['CTByYr'](_0x203b3c),a0_0x203b['rWPWcY'][_0x5de8b1]=_0x203b3c):_0x203b3c=_0xfba067,_0x203b3c;}const logger=new Logger('ViewT'+a0_0x18493a(0x18d));export const listViewsTool={'name':a0_0x18493a(0x92)+'views','description':'List\x20'+a0_0x18493a(0x13e)+a0_0x18493a(0x7f)+a0_0x18493a(0x150)+a0_0x18493a(0xf8)+a0_0x18493a(0xf6)+'ce,\x20f'+a0_0x18493a(0x7e)+a0_0x18493a(0x6f)+a0_0x18493a(0x1c2)+'\x20Prov'+a0_0x18493a(0xd8)+'istId'+a0_0x18493a(0x156)+a0_0x18493a(0x1b8)+a0_0x18493a(0xf6)+'ceId,'+a0_0x18493a(0xcc)+a0_0x18493a(0xb7)+a0_0x18493a(0x182)+a0_0x18493a(0x1b9),'annotations':{'title':a0_0x18493a(0x14d)+'Views','readOnlyHint':!![]},'inputSchema':{'type':a0_0x18493a(0x8c)+'t','properties':{'listId':{'type':'strin'+'g','description':a0_0x18493a(0x14d)+'ID.'},'folderId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x9c)+'r\x20ID.'},'spaceId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x10a)+a0_0x18493a(0xae)},'teamId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x16f)+a0_0x18493a(0x105)+a0_0x18493a(0x75)+'ID\x20(f'+'or\x20wo'+a0_0x18493a(0xc5)+a0_0x18493a(0x1be)+a0_0x18493a(0xf1)+a0_0x18493a(0x178)+'.'}}}};export const getViewTool={'name':'get_v'+a0_0x18493a(0xc9),'description':a0_0x18493a(0xb4)+'detai'+a0_0x18493a(0x19b)+'nform'+'ation'+a0_0x18493a(0x14c)+a0_0x18493a(0x8e)+a0_0x18493a(0x1c5)+a0_0x18493a(0xbc)+a0_0x18493a(0xd7)+a0_0x18493a(0x19d)+a0_0x18493a(0x11f)+a0_0x18493a(0x90)+a0_0x18493a(0x12f)+a0_0x18493a(0xcd)+a0_0x18493a(0x1af)+'\x20filt'+a0_0x18493a(0x153),'annotations':{'title':a0_0x18493a(0xec)+a0_0x18493a(0xc9),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x18493a(0x8c)+'t','properties':{'viewId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0xb4)+a0_0x18493a(0xd6)+'refer'+a0_0x18493a(0x1ac)},'viewName':{'type':'strin'+'g','description':a0_0x18493a(0xb4)+'name\x20'+a0_0x18493a(0x15c)+a0_0x18493a(0x14b)+a0_0x18493a(0x1a3)+a0_0x18493a(0xa9)+a0_0x18493a(0x158)+'taine'+a0_0x18493a(0xe5)+a0_0x18493a(0xad)+'.'},'listId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x14d)+a0_0x18493a(0x1aa)+a0_0x18493a(0x8f)+a0_0x18493a(0x155)+a0_0x18493a(0x16c)+a0_0x18493a(0x132)+a0_0x18493a(0xd5)},'folderId':{'type':a0_0x18493a(0x6d)+'g','description':'Folde'+'r\x20ID\x20'+a0_0x18493a(0x161)+a0_0x18493a(0x80)+'esolu'+a0_0x18493a(0xf0)+a0_0x18493a(0xc3)+'.'},'spaceId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x10a)+a0_0x18493a(0x1ba)+'or\x20na'+a0_0x18493a(0x175)+a0_0x18493a(0x14e)+a0_0x18493a(0xb5)+'cope.'}}}};export const createViewTool={'name':a0_0x18493a(0xc2)+a0_0x18493a(0xa6)+'w','description':a0_0x18493a(0x151)+'e\x20a\x20n'+'ew\x20vi'+a0_0x18493a(0x87)+a0_0x18493a(0xa7)+a0_0x18493a(0x163)+a0_0x18493a(0x16a)+a0_0x18493a(0x115)+'e.\x20Pr'+'ovide'+a0_0x18493a(0xf5)+a0_0x18493a(0x91)+'older'+a0_0x18493a(0x1c0)+a0_0x18493a(0x183)+a0_0x18493a(0x164)+a0_0x18493a(0x1b7)+a0_0x18493a(0xdb)+a0_0x18493a(0x74)+a0_0x18493a(0x18f)+'it\x20fo'+a0_0x18493a(0x1b6)+a0_0x18493a(0x191)+'e\x20lev'+a0_0x18493a(0x177),'annotations':{'title':'Creat'+a0_0x18493a(0x8a)+'w'},'inputSchema':{'type':a0_0x18493a(0x8c)+'t','properties':{'name':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0xb4)+a0_0x18493a(0xe0)+'\x20Requ'+a0_0x18493a(0x199)},'type':{'type':'strin'+'g','description':a0_0x18493a(0xb4)+a0_0x18493a(0x195)+a0_0x18493a(0x1a5)+a0_0x18493a(0x199),'enum':[a0_0x18493a(0x171),a0_0x18493a(0xf3),a0_0x18493a(0x160)+a0_0x18493a(0x6e),a0_0x18493a(0x18b),a0_0x18493a(0xd3)+a0_0x18493a(0x9b),'table',a0_0x18493a(0x69)+'map',a0_0x18493a(0x1a9)+a0_0x18493a(0x181),a0_0x18493a(0x149)+a0_0x18493a(0x8b),a0_0x18493a(0x131)]},'listId':{'type':'strin'+'g','description':a0_0x18493a(0x14d)+'ID.'},'folderId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x9c)+a0_0x18493a(0xa4)},'spaceId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x10a)+a0_0x18493a(0xae)},'teamId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x126)+a0_0x18493a(0x15b)+a0_0x18493a(0x76)+'ace-l'+a0_0x18493a(0x15e)+'.'},'grouping':{'type':a0_0x18493a(0x8c)+'t','properties':{},'description':'Group'+'ing\x20s'+a0_0x18493a(0x166)+a0_0x18493a(0x108)},'sorting':{'type':a0_0x18493a(0x8c)+'t','properties':{},'description':'Sorti'+'ng\x20se'+'tting'+'s.'},'filters':{'type':'objec'+'t','properties':{},'description':a0_0x18493a(0x7d)+a0_0x18493a(0x11c)+a0_0x18493a(0x198)+'.'},'columns':{'type':a0_0x18493a(0x8c)+'t','properties':{},'description':a0_0x18493a(0x169)+a0_0x18493a(0x19c)+a0_0x18493a(0x198)+'.'},'settings':{'type':a0_0x18493a(0x8c)+'t','properties':{},'description':'View\x20'+a0_0x18493a(0x113)+a0_0x18493a(0x1c1)}},'required':['name',a0_0x18493a(0x13b)]}};export const updateViewTool={'name':a0_0x18493a(0xb8)+'e_vie'+'w','description':a0_0x18493a(0xc1)+a0_0x18493a(0xfb)+a0_0x18493a(0x13c)+a0_0x18493a(0xab)+a0_0x18493a(0x89)+a0_0x18493a(0xd9)+a0_0x18493a(0xbe)+a0_0x18493a(0xe4)+a0_0x18493a(0xbd)+a0_0x18493a(0x6f)+'visib'+a0_0x18493a(0x129)+'.','annotations':{'title':a0_0x18493a(0xc1)+a0_0x18493a(0x8a)+'w'},'inputSchema':{'type':'objec'+'t','properties':{'viewId':{'type':a0_0x18493a(0x6d)+'g','description':'View\x20'+'ID\x20(p'+a0_0x18493a(0x188)+a0_0x18493a(0x1ac)},'viewName':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0xb4)+a0_0x18493a(0xaf)+'(auto'+a0_0x18493a(0x14b)+a0_0x18493a(0x104)+'.'},'listId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x14d)+a0_0x18493a(0x1aa)+'r\x20nam'+a0_0x18493a(0x155)+a0_0x18493a(0x16c)+a0_0x18493a(0x132)+a0_0x18493a(0xd5)},'folderId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x9c)+a0_0x18493a(0xa3)+a0_0x18493a(0x161)+a0_0x18493a(0x80)+a0_0x18493a(0x84)+a0_0x18493a(0xf0)+a0_0x18493a(0xc3)+'.'},'spaceId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x10a)+a0_0x18493a(0x1ba)+'or\x20na'+'me\x20re'+a0_0x18493a(0x14e)+a0_0x18493a(0xb5)+a0_0x18493a(0x1b9)},'name':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0xdd)+a0_0x18493a(0x162)+a0_0x18493a(0x1bd)},'type':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0xb4)+a0_0x18493a(0x195),'enum':['list',a0_0x18493a(0xf3),a0_0x18493a(0x160)+'dar',a0_0x18493a(0x18b),a0_0x18493a(0xd3)+a0_0x18493a(0x9b),'table',a0_0x18493a(0x69)+a0_0x18493a(0x131),a0_0x18493a(0x1a9)+a0_0x18493a(0x181),a0_0x18493a(0x149)+a0_0x18493a(0x8b),a0_0x18493a(0x131)]},'grouping':{'type':'objec'+'t','properties':{},'description':a0_0x18493a(0x112)+a0_0x18493a(0x12b)+a0_0x18493a(0x166)+'gs.'},'sorting':{'type':'objec'+'t','properties':{},'description':a0_0x18493a(0xcb)+'ng\x20se'+a0_0x18493a(0x136)+'s.'},'filters':{'type':a0_0x18493a(0x8c)+'t','properties':{},'description':a0_0x18493a(0x7d)+a0_0x18493a(0x11c)+a0_0x18493a(0x198)+'.'},'columns':{'type':a0_0x18493a(0x8c)+'t','properties':{},'description':a0_0x18493a(0x169)+a0_0x18493a(0x19c)+'tings'+'.'},'settings':{'type':a0_0x18493a(0x8c)+'t','properties':{},'description':'View\x20'+a0_0x18493a(0x113)+a0_0x18493a(0x1c1)},'visibility':{'type':'strin'+'g','description':'View\x20'+a0_0x18493a(0xb0)+a0_0x18493a(0x129)+'\x20(\x27pu'+a0_0x18493a(0xf2)+a0_0x18493a(0x12a)+a0_0x18493a(0xfc)+'te\x27).'},'protected':{'type':'boole'+'an','description':a0_0x18493a(0xee)+a0_0x18493a(0x1ab)+a0_0x18493a(0x159)+'w\x20is\x20'+'prote'+'cted.'}}}};export const deleteViewTool={'name':a0_0x18493a(0x6a)+a0_0x18493a(0xa6)+'w','description':a0_0x18493a(0x125)+a0_0x18493a(0x1a2)+'y\x20rem'+'ove\x20a'+'\x20view'+'.','annotations':{'title':a0_0x18493a(0xfa)+'e\x20Vie'+'w','destructiveHint':!![]},'inputSchema':{'type':a0_0x18493a(0x8c)+'t','properties':{'viewId':{'type':a0_0x18493a(0x6d)+'g','description':'View\x20'+a0_0x18493a(0xd6)+a0_0x18493a(0x188)+a0_0x18493a(0x1ac)},'viewName':{'type':'strin'+'g','description':a0_0x18493a(0xb4)+a0_0x18493a(0xaf)+a0_0x18493a(0x15c)+'-reso'+a0_0x18493a(0x104)+'.'},'listId':{'type':'strin'+'g','description':a0_0x18493a(0x14d)+a0_0x18493a(0x1aa)+'r\x20nam'+'e\x20res'+a0_0x18493a(0x16c)+a0_0x18493a(0x132)+a0_0x18493a(0xd5)},'folderId':{'type':'strin'+'g','description':'Folde'+a0_0x18493a(0xa3)+a0_0x18493a(0x161)+a0_0x18493a(0x80)+a0_0x18493a(0x84)+a0_0x18493a(0xf0)+a0_0x18493a(0xc3)+'.'},'spaceId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x10a)+a0_0x18493a(0x1ba)+a0_0x18493a(0xe2)+'me\x20re'+a0_0x18493a(0x14e)+a0_0x18493a(0xb5)+a0_0x18493a(0x1b9)}}}};export const getViewTasksTool={'name':a0_0x18493a(0x174)+a0_0x18493a(0xc8)+'asks','description':a0_0x18493a(0x1a8)+a0_0x18493a(0x12d)+a0_0x18493a(0x172)+'sks\x20c'+a0_0x18493a(0xa5)+'tly\x20v'+a0_0x18493a(0x10d)+a0_0x18493a(0x120)+a0_0x18493a(0xcf)+a0_0x18493a(0x13d)+'\x20view'+a0_0x18493a(0x168)+'pecti'+a0_0x18493a(0x109)+'s\x20fil'+a0_0x18493a(0x107)+'and\x20g'+a0_0x18493a(0x1a0)+'ng.','annotations':{'title':a0_0x18493a(0xec)+a0_0x18493a(0xff)+'asks','readOnlyHint':!![]},'inputSchema':{'type':a0_0x18493a(0x8c)+'t','properties':{'viewId':{'type':'strin'+'g','description':a0_0x18493a(0xb4)+'ID\x20(p'+a0_0x18493a(0x188)+'red).'},'viewName':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0xb4)+a0_0x18493a(0xaf)+a0_0x18493a(0x15c)+a0_0x18493a(0x14b)+'lved)'+'.'},'listId':{'type':'strin'+'g','description':'List\x20'+a0_0x18493a(0x1aa)+'r\x20nam'+a0_0x18493a(0x155)+'oluti'+a0_0x18493a(0x132)+a0_0x18493a(0xd5)},'folderId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x9c)+a0_0x18493a(0xa3)+'for\x20n'+a0_0x18493a(0x80)+a0_0x18493a(0x84)+a0_0x18493a(0xf0)+a0_0x18493a(0xc3)+'.'},'spaceId':{'type':a0_0x18493a(0x6d)+'g','description':a0_0x18493a(0x10a)+a0_0x18493a(0x1ba)+'or\x20na'+a0_0x18493a(0x175)+a0_0x18493a(0x14e)+a0_0x18493a(0xb5)+'cope.'},'page':{'type':a0_0x18493a(0x14a)+'r','description':'Page\x20'+a0_0x18493a(0x14a)+a0_0x18493a(0x124)+a0_0x18493a(0x11b)+'natio'+'n.'}}}};export async function handleManageViews(_0x247f88,_0x281cb6){const _0xd23169=a0_0x18493a,_0x1f797b={'lbdeC':_0xd23169(0x6a)+_0xd23169(0xa6)+'w','bAfGA':_0xd23169(0x171),'RFNXn':_0xd23169(0xaa)+'r','fifBn':function(_0x524486,_0x33d219,_0x552c6e,_0x4984f4,_0x36ee77){return _0x524486(_0x33d219,_0x552c6e,_0x4984f4,_0x36ee77);},'TeBmc':_0xd23169(0xf8),'WosrN':function(_0x49ed9e,_0x5347e2){return _0x49ed9e===_0x5347e2;},'HNICT':function(_0x3a92fa,_0x955929,_0x45c9fe){return _0x3a92fa(_0x955929,_0x45c9fe);},'YBpgk':_0xd23169(0xe3)+_0xd23169(0x98)+_0xd23169(0x17a)+_0xd23169(0x13e),'MoPpd':_0xd23169(0x7a),'uIHCr':_0xd23169(0x138)+_0xd23169(0x140)+_0xd23169(0x10b)+_0xd23169(0x16b)+_0xd23169(0xb2)+_0xd23169(0x1ad)+_0xd23169(0xd1)+_0xd23169(0x15d)+_0xd23169(0x77)+_0xd23169(0x147)+_0xd23169(0x12c)+'.','Osext':'Faile'+'d\x20to\x20'+_0xd23169(0x1b4)+'iew','JmHyU':function(_0x1d8826,_0x1cdc83){return _0x1d8826(_0x1cdc83);},'uSEZd':_0xd23169(0xc2)+'e','VjerX':_0xd23169(0xe9)+'\x27\x20and'+_0xd23169(0xf4)+_0xd23169(0x173)+_0xd23169(0x143)+_0xd23169(0x137)+_0xd23169(0x9a)+_0xd23169(0xe1)+_0xd23169(0x187)+_0xd23169(0x17d),'LPvXV':_0xd23169(0xe3)+_0xd23169(0x98)+_0xd23169(0xc2)+_0xd23169(0x159)+'w','sXcIK':_0xd23169(0xb8)+'e','oqAPF':_0xd23169(0x6a)+'e','UGPoy':_0xd23169(0x138)+_0xd23169(0x140)+_0xd23169(0x10b)+_0xd23169(0x16b)+_0xd23169(0xb2)+'\x20requ'+_0xd23169(0xd1)+_0xd23169(0x15d)+_0xd23169(0x121)+_0xd23169(0xbb)+_0xd23169(0x130)+_0xd23169(0x97),'WkOpR':_0xd23169(0xe3)+_0xd23169(0x98)+_0xd23169(0x6a)+_0xd23169(0x159)+'w','yClaE':_0xd23169(0x81)+'asks','QECdn':'Faile'+_0xd23169(0x98)+_0xd23169(0x141)+_0xd23169(0x1b1)+_0xd23169(0xde)+_0xd23169(0xc9),'cvZjd':function(_0x25935b,_0x31fcd4){return _0x25935b(_0x31fcd4);}},{view:_0xd9f8f6,workspace:_0x442c58}=_0x281cb6,{action:_0x4b5efd,viewId:_0x380c32,viewName:_0x96a747,teamId:_0x3a47b5}=_0x247f88;try{const _0x5cd9c6=_0x281cb6['toolF'+_0xd23169(0x18a)]?.['disab'+_0xd23169(0xef)]||[];if(_0x4b5efd===_0xd23169(0x6a)+'e'&&_0x5cd9c6[_0xd23169(0x78)+_0xd23169(0x8d)](_0x1f797b['lbdeC']))return sponsorService[_0xd23169(0xc2)+_0xd23169(0xb6)+_0xd23169(0x123)+_0xd23169(0xa0)]('Acces'+_0xd23169(0x17f)+_0xd23169(0x196)+_0xd23169(0x15a)+'uctiv'+'e\x20act'+'ions\x20'+'(\x27'+_0x4b5efd+(_0xd23169(0x19f)+_0xd23169(0xfe)+'abled'+'\x20for\x20'+_0xd23169(0x10c)+_0xd23169(0x1bc)+'nt\x20pe'+_0xd23169(0xdc)+_0xd23169(0xbf)+_0xd23169(0x7b)+_0xd23169(0x12f)+_0xd23169(0xcd)+'n.'));let _0x210528=_0x380c32;if(!_0x210528&&_0x96a747){let _0x19c55f,_0x30c280=_0xd23169(0xa2)+_0xd23169(0x11a);if(_0x247f88[_0xd23169(0xed)+'d']||_0x247f88[_0xd23169(0x18c)+_0xd23169(0x134)]){const _0x5a77c2=await resolveLocation(_0x1f797b[_0xd23169(0x133)],_0x247f88[_0xd23169(0xed)+'d'],_0x247f88[_0xd23169(0x18c)+_0xd23169(0x134)],_0x442c58);_0x19c55f=_0x5a77c2['id'],_0x30c280=_0xd23169(0x171);}else{if(_0x247f88[_0xd23169(0xaa)+_0xd23169(0x94)]||_0x247f88[_0xd23169(0xaa)+_0xd23169(0x88)]){const _0x489a9f=await resolveLocation(_0x1f797b[_0xd23169(0x106)],_0x247f88[_0xd23169(0xaa)+_0xd23169(0x94)],_0x247f88['folde'+_0xd23169(0x88)],_0x442c58);_0x19c55f=_0x489a9f['id'],_0x30c280=_0x1f797b['RFNXn'];}else{if(_0x247f88[_0xd23169(0xf8)+'Id']||_0x247f88[_0xd23169(0xf8)+_0xd23169(0x179)]){const _0x4d3d02=await _0x1f797b[_0xd23169(0x17b)](resolveLocation,_0x1f797b[_0xd23169(0x165)],_0x247f88[_0xd23169(0xf8)+'Id'],_0x247f88[_0xd23169(0xf8)+_0xd23169(0x179)],_0x442c58);_0x19c55f=_0x4d3d02['id'],_0x30c280=_0xd23169(0xf8);}else _0x19c55f=_0x3a47b5||'';}}let _0x101d16=[];if(_0x30c280===_0x1f797b['bAfGA'])_0x101d16=(await _0xd9f8f6[_0xd23169(0x135)+_0xd23169(0xf7)+'ws'](_0x19c55f))[_0xd23169(0xd0)]?.[_0xd23169(0x13e)]||[];else{if(_0x1f797b[_0xd23169(0x17e)](_0x30c280,_0x1f797b[_0xd23169(0x106)]))_0x101d16=(await _0xd9f8f6['getFo'+_0xd23169(0xfd)+'iews'](_0x19c55f))[_0xd23169(0xd0)]?.[_0xd23169(0x13e)]||[];else _0x30c280===_0xd23169(0xf8)?_0x101d16=(await _0xd9f8f6['getSp'+_0xd23169(0x1a1)+_0xd23169(0xca)](_0x19c55f))[_0xd23169(0xd0)]?.[_0xd23169(0x13e)]||[]:_0x101d16=(await _0xd9f8f6[_0xd23169(0x170)+_0xd23169(0xc5)+_0xd23169(0x103)+'ws'](_0x19c55f))['data']?.[_0xd23169(0x13e)]||[];}const _0x53be6a=_0x1f797b[_0xd23169(0x16d)](findBestMatchInArray,_0x101d16,_0x96a747);if(_0x53be6a)_0x210528=_0x53be6a[_0xd23169(0x102)]['id'];else return sponsorService[_0xd23169(0xc2)+'eErro'+_0xd23169(0x123)+'onse'](_0xd23169(0x93)+_0xd23169(0x10e)+_0xd23169(0x13a)+_0xd23169(0x1a6)+'named'+'\x20\x22'+_0x96a747+(_0xd23169(0x1a4)+_0xd23169(0x15f)+_0xd23169(0x1c5)+'ied\x20c'+_0xd23169(0xd4)+_0xd23169(0x1ae)));}switch(_0x4b5efd){case _0x1f797b[_0xd23169(0x133)]:{let _0xa598f0;if(_0x247f88[_0xd23169(0xed)+'d'])_0xa598f0=await _0xd9f8f6[_0xd23169(0x135)+_0xd23169(0xf7)+'ws'](_0x247f88['listI'+'d']);else{if(_0x247f88[_0xd23169(0xaa)+'rId'])_0xa598f0=await _0xd9f8f6[_0xd23169(0x144)+_0xd23169(0xfd)+_0xd23169(0x18e)](_0x247f88['folde'+_0xd23169(0x94)]);else _0x247f88[_0xd23169(0xf8)+'Id']?_0xa598f0=await _0xd9f8f6[_0xd23169(0x72)+_0xd23169(0x1a1)+_0xd23169(0xca)](_0x247f88[_0xd23169(0xf8)+'Id']):_0xa598f0=await _0xd9f8f6['getWo'+_0xd23169(0xc5)+_0xd23169(0x103)+'ws'](_0x247f88[_0xd23169(0x119)+'d']);}if(!_0xa598f0[_0xd23169(0xb3)+'ss'])return sponsorService[_0xd23169(0xc2)+_0xd23169(0xb6)+'rResp'+'onse'](_0xa598f0[_0xd23169(0x85)]?.[_0xd23169(0x99)+'ge']||_0x1f797b[_0xd23169(0x9e)]);const _0x2c6e08=_0xa598f0['data']?.[_0xd23169(0x13e)]||[];return sponsorService[_0xd23169(0xc2)+_0xd23169(0xdf)+_0xd23169(0xa0)]({'views':_0x2c6e08[_0xd23169(0x131)](formatViewSummary),'count':_0x2c6e08[_0xd23169(0x13f)+'h']},!![]);}case _0x1f797b[_0xd23169(0x17c)]:{if(!_0x210528)return sponsorService[_0xd23169(0xc2)+_0xd23169(0xb6)+_0xd23169(0x123)+_0xd23169(0xa0)](_0x1f797b[_0xd23169(0xc6)]);const _0x5b6afd=await _0xd9f8f6['getVi'+'ew'](_0x210528);if(!_0x5b6afd[_0xd23169(0xb3)+'ss'])return sponsorService[_0xd23169(0xc2)+'eErro'+_0xd23169(0x123)+_0xd23169(0xa0)](_0x5b6afd[_0xd23169(0x85)]?.['messa'+'ge']||_0x1f797b[_0xd23169(0x86)]);const _0x36db61=_0x5b6afd[_0xd23169(0xd0)]?.[_0xd23169(0xea)];return sponsorService[_0xd23169(0xc2)+_0xd23169(0xdf)+'onse'](_0x1f797b[_0xd23169(0x118)](formatViewDetail,_0x36db61),!![]);}case _0x1f797b[_0xd23169(0x1c3)]:{if(!_0x247f88[_0xd23169(0x146)]||!_0x247f88['type'])return sponsorService['creat'+_0xd23169(0xb6)+'rResp'+_0xd23169(0xa0)](_0x1f797b[_0xd23169(0x1bb)]);const _0xd99041=_0x1f797b['JmHyU'](buildViewFields,_0x247f88);let _0x4006f0;if(_0x247f88[_0xd23169(0xed)+'d'])_0x4006f0=await _0xd9f8f6[_0xd23169(0xc2)+_0xd23169(0x1b3)+_0xd23169(0x145)](_0x247f88['listI'+'d'],_0xd99041);else{if(_0x247f88[_0xd23169(0xaa)+_0xd23169(0x94)])_0x4006f0=await _0xd9f8f6['creat'+_0xd23169(0x7c)+'erVie'+'w'](_0x247f88['folde'+_0xd23169(0x94)],_0xd99041);else _0x247f88[_0xd23169(0xf8)+'Id']?_0x4006f0=await _0xd9f8f6[_0xd23169(0xc2)+'eSpac'+'eView'](_0x247f88[_0xd23169(0xf8)+'Id'],_0xd99041):_0x4006f0=await _0xd9f8f6[_0xd23169(0xc2)+_0xd23169(0x95)+_0xd23169(0xf8)+_0xd23169(0x145)](_0x247f88['teamI'+'d'],_0xd99041);}if(!_0x4006f0[_0xd23169(0xb3)+'ss'])return sponsorService[_0xd23169(0xc2)+_0xd23169(0xb6)+_0xd23169(0x123)+'onse'](_0x4006f0[_0xd23169(0x85)]?.[_0xd23169(0x99)+'ge']||_0x1f797b['LPvXV']);const _0x94426b=_0x4006f0[_0xd23169(0xd0)]?.[_0xd23169(0xea)];return sponsorService[_0xd23169(0xc2)+'eResp'+_0xd23169(0xa0)]({..._0x1f797b[_0xd23169(0x118)](formatViewDetail,_0x94426b),'message':_0xd23169(0xb4)+'\x22'+_0x247f88['name']+(_0xd23169(0x1a7)+_0xd23169(0xc0)+_0xd23169(0xb3)+_0xd23169(0x19a)+_0xd23169(0x197))},!![]);}case _0x1f797b[_0xd23169(0x19e)]:{if(!_0x210528)return sponsorService[_0xd23169(0xc2)+_0xd23169(0xb6)+_0xd23169(0x123)+_0xd23169(0xa0)]('\x27view'+_0xd23169(0x140)+_0xd23169(0x10b)+_0xd23169(0x16b)+'e\x27\x20is'+_0xd23169(0x1ad)+'ired\x20'+_0xd23169(0x15d)+_0xd23169(0xba)+'pdate'+_0xd23169(0x130)+_0xd23169(0x97));const _0x5202f8=_0x1f797b[_0xd23169(0x118)](buildViewFields,_0x247f88);if(_0x1f797b['WosrN'](Object[_0xd23169(0x96)](_0x5202f8)[_0xd23169(0x13f)+'h'],0x0))return sponsorService['creat'+_0xd23169(0xb6)+_0xd23169(0x123)+'onse'](_0xd23169(0x11d)+_0xd23169(0xce)+'provi'+'ded\x20t'+_0xd23169(0xb1)+_0xd23169(0x110));const _0xdc6a84=await _0xd9f8f6[_0xd23169(0xb8)+'eView'](_0x210528,_0x5202f8);if(!_0xdc6a84[_0xd23169(0xb3)+'ss'])return sponsorService['creat'+_0xd23169(0xb6)+_0xd23169(0x123)+_0xd23169(0xa0)](_0xdc6a84[_0xd23169(0x85)]?.[_0xd23169(0x99)+'ge']||_0xd23169(0xe3)+_0xd23169(0x98)+_0xd23169(0xb8)+'e\x20vie'+'w');const _0x50f9a5=_0xdc6a84['data']?.[_0xd23169(0xea)];return sponsorService[_0xd23169(0xc2)+_0xd23169(0xdf)+'onse']({...formatViewDetail(_0x50f9a5),'message':_0xd23169(0xb4)+_0xd23169(0xb8)+_0xd23169(0x82)+_0xd23169(0x176)+_0xd23169(0x167)+'.'},!![]);}case _0x1f797b[_0xd23169(0x100)]:{if(!_0x210528)return sponsorService[_0xd23169(0xc2)+'eErro'+_0xd23169(0x123)+_0xd23169(0xa0)](_0x1f797b['UGPoy']);const _0xfb264=await _0xd9f8f6[_0xd23169(0x6a)+'eView'](_0x210528);if(!_0xfb264[_0xd23169(0xb3)+'ss'])return sponsorService[_0xd23169(0xc2)+'eErro'+_0xd23169(0x123)+_0xd23169(0xa0)](_0xfb264[_0xd23169(0x85)]?.[_0xd23169(0x99)+'ge']||_0x1f797b[_0xd23169(0xe6)]);return sponsorService[_0xd23169(0xc2)+_0xd23169(0xdf)+_0xd23169(0xa0)]({'success':!![],'message':_0xd23169(0xb4)+'\x22'+_0x247f88[_0xd23169(0x9d)+'d']+('\x22\x20del'+_0xd23169(0x157)+'succe'+'ssful'+'ly.')},!![]);}case _0x1f797b[_0xd23169(0x71)]:{if(!_0x210528)return sponsorService[_0xd23169(0xc2)+_0xd23169(0xb6)+_0xd23169(0x123)+_0xd23169(0xa0)]('\x27view'+'Id\x27\x20o'+_0xd23169(0x10b)+_0xd23169(0x16b)+_0xd23169(0xb2)+_0xd23169(0x1ad)+_0xd23169(0xd1)+_0xd23169(0x193)+_0xd23169(0x81)+_0xd23169(0x185)+'.');const _0x242721=await _0xd9f8f6[_0xd23169(0x122)+'ewTas'+'ks'](_0x210528,_0x247f88[_0xd23169(0x9f)]);if(!_0x242721[_0xd23169(0xb3)+'ss'])return sponsorService['creat'+_0xd23169(0xb6)+_0xd23169(0x123)+_0xd23169(0xa0)](_0x242721['error']?.['messa'+'ge']||_0x1f797b[_0xd23169(0x12e)]);return sponsorService[_0xd23169(0xc2)+_0xd23169(0xdf)+'onse'](_0x242721['data'],!![]);}default:return sponsorService[_0xd23169(0xc2)+'eErro'+'rResp'+_0xd23169(0xa0)]('Unkno'+_0xd23169(0xa1)+_0xd23169(0x114)+_0xd23169(0x6b)+'\x20'+_0x4b5efd);}}catch(_0x286b2b){return logger[_0xd23169(0x85)](_0xd23169(0x184)+_0xd23169(0xc7)+_0xd23169(0x127)+_0xd23169(0x142)+_0xd23169(0x11e)+_0xd23169(0xf9)+_0xd23169(0x6b)+'\x20'+_0x4b5efd+')',_0x286b2b),sponsorService[_0xd23169(0xc2)+_0xd23169(0xb6)+_0xd23169(0x123)+'onse'](_0x286b2b[_0xd23169(0x99)+'ge']||_0x1f797b[_0xd23169(0x189)](String,_0x286b2b));}}function formatViewSummary(_0x2365cc){const _0x28f2ae=a0_0x18493a;return{'id':_0x2365cc['id'],'name':_0x2365cc[_0x28f2ae(0x146)],'type':_0x2365cc['type'],'visibility':_0x2365cc[_0x28f2ae(0xb0)+_0x28f2ae(0x129)],'protected':_0x2365cc[_0x28f2ae(0x128)+_0x28f2ae(0x1b2)],'orderindex':_0x2365cc[_0x28f2ae(0x14f)+_0x28f2ae(0x1c4)]};}function formatViewDetail(_0x12f8c4){const _0x1b5d6e=a0_0x18493a;if(!_0x12f8c4)return _0x12f8c4;return{'id':_0x12f8c4['id'],'name':_0x12f8c4[_0x1b5d6e(0x146)],'type':_0x12f8c4[_0x1b5d6e(0x13b)],'parent':_0x12f8c4[_0x1b5d6e(0xda)+'t'],'grouping':_0x12f8c4[_0x1b5d6e(0x186)+'ing'],'sorting':_0x12f8c4[_0x1b5d6e(0x1bf)+'ng'],'filters':_0x12f8c4[_0x1b5d6e(0x190)+'rs'],'columns':_0x12f8c4[_0x1b5d6e(0x6c)+'ns'],'team_sidebar':_0x12f8c4[_0x1b5d6e(0x192)+'sideb'+'ar'],'settings':_0x12f8c4['setti'+'ngs'],'visibility':_0x12f8c4['visib'+_0x1b5d6e(0x129)],'protected':_0x12f8c4['prote'+_0x1b5d6e(0x1b2)],'protected_note':_0x12f8c4[_0x1b5d6e(0x128)+_0x1b5d6e(0x111)+'note'],'protected_by':_0x12f8c4[_0x1b5d6e(0x128)+_0x1b5d6e(0x111)+'by'],'date_protected':_0x12f8c4[_0x1b5d6e(0x1b0)+_0x1b5d6e(0x128)+_0x1b5d6e(0x1b2)],'date_created':_0x12f8c4[_0x1b5d6e(0x1b0)+_0x1b5d6e(0xc2)+'ed'],'creator':_0x12f8c4['creat'+'or'],'orderindex':_0x12f8c4[_0x1b5d6e(0x14f)+_0x1b5d6e(0x1c4)]};}function buildViewFields(_0x139a79){const _0x3d0d73=a0_0x18493a,_0x3eb970={'SCjGN':function(_0x5d3db1,_0x31c1a6){return _0x5d3db1!==_0x31c1a6;},'mhLaL':function(_0x4dd9fc,_0x3b9970){return _0x4dd9fc!==_0x3b9970;},'XWBIQ':function(_0x31dfcc,_0x4e7de3){return _0x31dfcc!==_0x4e7de3;},'gQpEO':function(_0x405892,_0xaae889){return _0x405892!==_0xaae889;},'BIUUN':function(_0x305f97,_0x2dd2aa){return _0x305f97!==_0x2dd2aa;},'xOoEd':function(_0x321f3b,_0x2a4185){return _0x321f3b!==_0x2a4185;}},_0x2d4737={};if(_0x139a79[_0x3d0d73(0x146)]!==undefined)_0x2d4737[_0x3d0d73(0x146)]=_0x139a79[_0x3d0d73(0x146)];if(_0x139a79[_0x3d0d73(0x13b)]!==undefined)_0x2d4737['type']=_0x139a79['type'];if(_0x3eb970['SCjGN'](_0x139a79[_0x3d0d73(0x186)+_0x3d0d73(0x1b5)],undefined))_0x2d4737[_0x3d0d73(0x186)+_0x3d0d73(0x1b5)]=_0x139a79[_0x3d0d73(0x186)+_0x3d0d73(0x1b5)];if(_0x139a79[_0x3d0d73(0x1bf)+'ng']!==undefined)_0x2d4737[_0x3d0d73(0x1bf)+'ng']=_0x139a79[_0x3d0d73(0x1bf)+'ng'];if(_0x139a79[_0x3d0d73(0x190)+'rs']!==undefined)_0x2d4737['filte'+'rs']=_0x139a79[_0x3d0d73(0x190)+'rs'];if(_0x3eb970[_0x3d0d73(0x116)](_0x139a79['colum'+'ns'],undefined))_0x2d4737[_0x3d0d73(0x6c)+'ns']=_0x139a79[_0x3d0d73(0x6c)+'ns'];if(_0x3eb970['XWBIQ'](_0x139a79[_0x3d0d73(0xac)+_0x3d0d73(0x10f)+'r'],undefined))_0x2d4737[_0x3d0d73(0x192)+_0x3d0d73(0x194)+'ar']=_0x139a79[_0x3d0d73(0xac)+_0x3d0d73(0x10f)+'r'];if(_0x139a79[_0x3d0d73(0x113)+'ngs']!==undefined)_0x2d4737[_0x3d0d73(0x113)+'ngs']=_0x139a79[_0x3d0d73(0x113)+_0x3d0d73(0xe7)];if(_0x3eb970[_0x3d0d73(0x139)](_0x139a79[_0x3d0d73(0xb0)+_0x3d0d73(0x129)],undefined))_0x2d4737[_0x3d0d73(0xb0)+_0x3d0d73(0x129)]=_0x139a79['visib'+_0x3d0d73(0x129)];if(_0x139a79[_0x3d0d73(0x128)+'cted']!==undefined)_0x2d4737[_0x3d0d73(0x128)+_0x3d0d73(0x1b2)]=_0x139a79[_0x3d0d73(0x128)+'cted'];if(_0x3eb970[_0x3d0d73(0x70)](_0x139a79[_0x3d0d73(0x128)+_0x3d0d73(0x148)+_0x3d0d73(0xeb)],undefined))_0x2d4737[_0x3d0d73(0x128)+'cted_'+_0x3d0d73(0xe8)]=_0x139a79[_0x3d0d73(0x128)+_0x3d0d73(0x148)+_0x3d0d73(0xeb)];if(_0x3eb970[_0x3d0d73(0x16e)](_0x139a79[_0x3d0d73(0x128)+_0x3d0d73(0x180)+'y'],undefined))_0x2d4737['prote'+_0x3d0d73(0x111)+'by']=_0x139a79['prote'+_0x3d0d73(0x180)+'y'];return _0x2d4737;}
|
|
1
|
+
const a0_0x1383af=a0_0x5042;(function(_0x388d18,_0x56fff0){const _0x34edb8=a0_0x5042,_0x449d2f=_0x388d18();while(!![]){try{const _0x4ade8d=parseInt(_0x34edb8(0x2b8))/0x1*(-parseInt(_0x34edb8(0x236))/0x2)+-parseInt(_0x34edb8(0x27b))/0x3*(-parseInt(_0x34edb8(0x290))/0x4)+parseInt(_0x34edb8(0x2cb))/0x5+parseInt(_0x34edb8(0x276))/0x6+parseInt(_0x34edb8(0x1f6))/0x7+parseInt(_0x34edb8(0x2d7))/0x8*(-parseInt(_0x34edb8(0x253))/0x9)+parseInt(_0x34edb8(0x2d5))/0xa*(-parseInt(_0x34edb8(0x254))/0xb);if(_0x4ade8d===_0x56fff0)break;else _0x449d2f['push'](_0x449d2f['shift']());}catch(_0x2a882c){_0x449d2f['push'](_0x449d2f['shift']());}}}(a0_0x1ca0,0xdaa0d));import{Logger}from'../logger.js';import{sponsorService}from'../utils/sponsor-service.js';import{resolveLocation,findBestMatchInArray}from'../utils/resolver-utils.js';const logger=new Logger('ViewT'+a0_0x1383af(0x2b6));export const listViewsTool={'name':a0_0x1383af(0x24e)+a0_0x1383af(0x24d),'description':a0_0x1383af(0x2f0)+a0_0x1383af(0x24d)+a0_0x1383af(0x2e7)+a0_0x1383af(0x204)+a0_0x1383af(0x212)+a0_0x1383af(0x2ee)+'ce,\x20f'+a0_0x1383af(0x225)+a0_0x1383af(0x2ac)+a0_0x1383af(0x2f5)+'\x20Prov'+'ide\x20l'+'istId'+a0_0x1383af(0x206)+a0_0x1383af(0x257)+a0_0x1383af(0x2ee)+a0_0x1383af(0x23f)+'\x20or\x20t'+a0_0x1383af(0x2df)+a0_0x1383af(0x258)+a0_0x1383af(0x20b),'annotations':{'title':a0_0x1383af(0x2f0)+a0_0x1383af(0x227),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x1383af(0x240)+'t','properties':{'listId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x2f0)+'ID.'},'folderId':{'type':'strin'+'g','description':a0_0x1383af(0x2ef)+a0_0x1383af(0x2ec)},'spaceId':{'type':a0_0x1383af(0x294)+'g','description':'Space'+a0_0x1383af(0x20e)},'teamId':{'type':'strin'+'g','description':'Team/'+'Works'+'pace\x20'+a0_0x1383af(0x25d)+a0_0x1383af(0x288)+a0_0x1383af(0x275)+'ce-le'+a0_0x1383af(0x2a2)+a0_0x1383af(0x2be)+'.'}}}};export const getViewTool={'name':a0_0x1383af(0x30a)+a0_0x1383af(0x2c9),'description':a0_0x1383af(0x218)+'detai'+'led\x20i'+'nform'+a0_0x1383af(0x2bc)+'\x20abou'+a0_0x1383af(0x296)+a0_0x1383af(0x28d)+'ic\x20vi'+a0_0x1383af(0x2dc)+a0_0x1383af(0x1f4)+a0_0x1383af(0x247)+a0_0x1383af(0x21f)+a0_0x1383af(0x1f5)+a0_0x1383af(0x266)+a0_0x1383af(0x25f)+'\x20filt'+a0_0x1383af(0x203),'annotations':{'title':a0_0x1383af(0x21e)+a0_0x1383af(0x2c9),'readOnlyHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'viewId':{'type':'strin'+'g','description':a0_0x1383af(0x218)+a0_0x1383af(0x25c)+a0_0x1383af(0x242)+'red).'},'viewName':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x218)+'name\x20'+a0_0x1383af(0x319)+a0_0x1383af(0x202)+a0_0x1383af(0x265)+a0_0x1383af(0x327)+a0_0x1383af(0x31b)+a0_0x1383af(0x1eb)+'r\x20con'+a0_0x1383af(0x316)+'.'},'listId':{'type':a0_0x1383af(0x294)+'g','description':'List\x20'+a0_0x1383af(0x2a5)+a0_0x1383af(0x1fd)+a0_0x1383af(0x272)+a0_0x1383af(0x287)+a0_0x1383af(0x1fa)+a0_0x1383af(0x1fc)},'folderId':{'type':a0_0x1383af(0x294)+'g','description':'Folde'+a0_0x1383af(0x2a1)+a0_0x1383af(0x2d9)+a0_0x1383af(0x30f)+a0_0x1383af(0x244)+'tion\x20'+a0_0x1383af(0x2c8)+'.'},'spaceId':{'type':a0_0x1383af(0x294)+'g','description':'Space'+'\x20ID\x20f'+a0_0x1383af(0x22f)+a0_0x1383af(0x30b)+a0_0x1383af(0x209)+'ion\x20s'+'cope.'}}}};function a0_0x5042(_0x2cc96c,_0xbb17dd){_0x2cc96c=_0x2cc96c-0x1e5;const _0x1ca0c2=a0_0x1ca0();let _0x5042d7=_0x1ca0c2[_0x2cc96c];if(a0_0x5042['PlAEXz']===undefined){var _0x21c153=function(_0x5712bf){const _0x571158='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x478d1d='',_0x4c45c3='';for(let _0x55f4b5=0x0,_0x1de761,_0x44ec3b,_0x127959=0x0;_0x44ec3b=_0x5712bf['charAt'](_0x127959++);~_0x44ec3b&&(_0x1de761=_0x55f4b5%0x4?_0x1de761*0x40+_0x44ec3b:_0x44ec3b,_0x55f4b5++%0x4)?_0x478d1d+=String['fromCharCode'](0xff&_0x1de761>>(-0x2*_0x55f4b5&0x6)):0x0){_0x44ec3b=_0x571158['indexOf'](_0x44ec3b);}for(let _0x278be1=0x0,_0x5868d9=_0x478d1d['length'];_0x278be1<_0x5868d9;_0x278be1++){_0x4c45c3+='%'+('00'+_0x478d1d['charCodeAt'](_0x278be1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c45c3);};a0_0x5042['mcsyZF']=_0x21c153,a0_0x5042['XMPwfo']={},a0_0x5042['PlAEXz']=!![];}const _0x4c0359=_0x1ca0c2[0x0],_0x318f61=_0x2cc96c+_0x4c0359,_0x41b94f=a0_0x5042['XMPwfo'][_0x318f61];return!_0x41b94f?(_0x5042d7=a0_0x5042['mcsyZF'](_0x5042d7),a0_0x5042['XMPwfo'][_0x318f61]=_0x5042d7):_0x5042d7=_0x41b94f,_0x5042d7;}export const createViewTool={'name':'creat'+a0_0x1383af(0x26a)+'w','description':a0_0x1383af(0x30e)+'e\x20a\x20n'+a0_0x1383af(0x309)+'ew.\x20R'+'equir'+a0_0x1383af(0x1f1)+'me\x20an'+'d\x20typ'+a0_0x1383af(0x297)+a0_0x1383af(0x277)+a0_0x1383af(0x306)+'Id,\x20f'+'older'+a0_0x1383af(0x24a)+a0_0x1383af(0x2c5)+a0_0x1383af(0x26f)+'to\x20se'+a0_0x1383af(0x27c)+a0_0x1383af(0x1eb)+a0_0x1383af(0x26c)+a0_0x1383af(0x2f8)+'r\x20wor'+a0_0x1383af(0x31e)+a0_0x1383af(0x29d)+a0_0x1383af(0x2cc),'annotations':{'title':a0_0x1383af(0x30e)+a0_0x1383af(0x246)+'w'},'inputSchema':{'type':a0_0x1383af(0x240)+'t','properties':{'name':{'type':'strin'+'g','description':a0_0x1383af(0x218)+a0_0x1383af(0x283)+a0_0x1383af(0x326)+'ired.'},'type':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x218)+a0_0x1383af(0x2ff)+a0_0x1383af(0x326)+a0_0x1383af(0x308),'enum':[a0_0x1383af(0x31a),'board',a0_0x1383af(0x251)+a0_0x1383af(0x2ba),'gantt',a0_0x1383af(0x2e8)+'ine',a0_0x1383af(0x1ee),'mind_'+'map','workl'+'oad',a0_0x1383af(0x26e)+a0_0x1383af(0x25e),a0_0x1383af(0x1ef)]},'listId':{'type':'strin'+'g','description':a0_0x1383af(0x2f0)+a0_0x1383af(0x2a3)},'folderId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x2ef)+a0_0x1383af(0x2ec)},'spaceId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x20a)+a0_0x1383af(0x20e)},'teamId':{'type':'strin'+'g','description':a0_0x1383af(0x21c)+a0_0x1383af(0x304)+a0_0x1383af(0x2c3)+'ace-l'+'evel)'+'.'},'grouping':{'type':a0_0x1383af(0x240)+'t','properties':{},'description':a0_0x1383af(0x270)+a0_0x1383af(0x20d)+a0_0x1383af(0x28e)+a0_0x1383af(0x2af)},'sorting':{'type':a0_0x1383af(0x240)+'t','properties':{},'description':'Sorti'+a0_0x1383af(0x320)+a0_0x1383af(0x325)+'s.'},'filters':{'type':'objec'+'t','properties':{},'description':a0_0x1383af(0x2fe)+a0_0x1383af(0x208)+a0_0x1383af(0x271)+'.'},'columns':{'type':a0_0x1383af(0x240)+'t','properties':{},'description':a0_0x1383af(0x219)+a0_0x1383af(0x207)+a0_0x1383af(0x271)+'.'},'settings':{'type':a0_0x1383af(0x240)+'t','properties':{},'description':'View\x20'+a0_0x1383af(0x324)+'ngs.'}},'required':[a0_0x1383af(0x21b),a0_0x1383af(0x213)]}};export const updateViewTool={'name':a0_0x1383af(0x2a0)+a0_0x1383af(0x26a)+'w','description':a0_0x1383af(0x235)+a0_0x1383af(0x279)+a0_0x1383af(0x2c6)+a0_0x1383af(0x222)+a0_0x1383af(0x2f2)+'\x20conf'+a0_0x1383af(0x1e6)+a0_0x1383af(0x2bb)+a0_0x1383af(0x263)+a0_0x1383af(0x2ac)+a0_0x1383af(0x273)+'ility'+'.','annotations':{'title':a0_0x1383af(0x235)+a0_0x1383af(0x246)+'w'},'inputSchema':{'type':a0_0x1383af(0x240)+'t','properties':{'viewId':{'type':'strin'+'g','description':'View\x20'+'ID\x20(p'+'refer'+a0_0x1383af(0x2fd)},'viewName':{'type':a0_0x1383af(0x294)+'g','description':'View\x20'+a0_0x1383af(0x27e)+a0_0x1383af(0x319)+a0_0x1383af(0x202)+'lved)'+'.'},'listId':{'type':a0_0x1383af(0x294)+'g','description':'List\x20'+'ID\x20fo'+a0_0x1383af(0x1fd)+a0_0x1383af(0x272)+a0_0x1383af(0x287)+'on\x20sc'+a0_0x1383af(0x1fc)},'folderId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x2ef)+a0_0x1383af(0x2a1)+'for\x20n'+a0_0x1383af(0x30f)+a0_0x1383af(0x244)+a0_0x1383af(0x230)+'scope'+'.'},'spaceId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x20a)+a0_0x1383af(0x2ed)+'or\x20na'+a0_0x1383af(0x30b)+'solut'+a0_0x1383af(0x321)+'cope.'},'name':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x24b)+a0_0x1383af(0x249)+'ame.'},'type':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x218)+'type.','enum':[a0_0x1383af(0x31a),a0_0x1383af(0x280),a0_0x1383af(0x251)+a0_0x1383af(0x2ba),'gantt','timel'+a0_0x1383af(0x282),'table',a0_0x1383af(0x1ed)+a0_0x1383af(0x1ef),'workl'+a0_0x1383af(0x2d8),a0_0x1383af(0x26e)+a0_0x1383af(0x25e),a0_0x1383af(0x1ef)]},'grouping':{'type':'objec'+'t','properties':{},'description':a0_0x1383af(0x270)+a0_0x1383af(0x20d)+'ettin'+a0_0x1383af(0x2af)},'sorting':{'type':a0_0x1383af(0x240)+'t','properties':{},'description':a0_0x1383af(0x23e)+a0_0x1383af(0x320)+'tting'+'s.'},'filters':{'type':'objec'+'t','properties':{},'description':a0_0x1383af(0x2fe)+a0_0x1383af(0x208)+a0_0x1383af(0x271)+'.'},'columns':{'type':a0_0x1383af(0x240)+'t','properties':{},'description':a0_0x1383af(0x219)+a0_0x1383af(0x207)+'tings'+'.'},'settings':{'type':'objec'+'t','properties':{},'description':a0_0x1383af(0x218)+a0_0x1383af(0x324)+'ngs.'},'visibility':{'type':'strin'+'g','description':a0_0x1383af(0x218)+a0_0x1383af(0x273)+'ility'+a0_0x1383af(0x299)+a0_0x1383af(0x22b)+a0_0x1383af(0x252)+a0_0x1383af(0x292)+a0_0x1383af(0x200)},'protected':{'type':a0_0x1383af(0x2e2)+'an','description':a0_0x1383af(0x2bd)+'er\x20th'+a0_0x1383af(0x2a6)+a0_0x1383af(0x2d0)+a0_0x1383af(0x2eb)+a0_0x1383af(0x217)}}}};function a0_0x1ca0(){const _0x3d6f3a=['zuvYCM8','Aw5L','BMfTzs4','B3jKzxi','zsbKAxm','yxrLlG','B2X1DgK','B3iGD28','zcb0BYa','y3rPB24','ihzPzxC','iIbJCMu','CgvJAwy','zxr0Aw4','CgfNzq','mJuXmJG0yuvSDuPH','BgvUz3q','ChjPDMe','BNvTyMu','C3rYAw4','CYbMAwW','DcbHihm','zs4Guhi','zsCGAxm','icGNChu','wvvsy0q','CKLK','tM8GzMK','zsbSzxy','CIbMB3i','ywWGywm','DxbKyxq','CIbjrca','DMvSihy','suqU','igeGDMK','suqGzM8','zsb2Awu','zvnWywm','A2v5CW','CgvJDgK','zxrLzca','Dg9VBey','lcbVCIa','z2v0','AwX0zxi','z3mU','zvjLC3a','y3rLzei','CM91CgK','zxDoyw0','zLbrtM8','y29SDw0','B29S','CIaNDMK','mteWodi1ogntsxHKrW','Awv3ifq','zgfY','DgLVBIW','yxrPB24','v2HLDgG','Awv3CYK','lcbYzxm','zgf0yq','ueKGy28','Aw9UlG','B3jRC3a','BwvZC2e','CIbZCge','zxHPC3q','jYKGyxi','C2nVCgu','Awv3','D29YA3m','nZK2mJa4nw1pzLHlBq','zwWU','zgvZ','y2nkyvy','B3zLige','DYbPCYa','BgLZDca','zuzVBgq','iIbKzwW','zxjYB3i','mJK5nZy0nZbdr3fzquu','DgHLihm','nteXnJa4CLHcyNjO','B2fK','zM9Yig4','DgvHBuK','C3rwAwu','zxCSigK','CgrHDgu','z2v0x3q','zwfTswq','y2nLC3m','AwvKoIa','yM9VBgu','AwrLyMe','tMfTzq','j3zPzxC','BhKU','igLUige','DgLTzwW','BgrLCLy','yw5KigC','ChjVDgu','CIbjrc4','ieLeigy','lcbZCge','rM9Szgu','tgLZDca','CgfJzq','Awv3j3m','zvzPzxC','AxnPyMW','BgLZDc4','u09kyKG','ugvYBwe','AxqGzM8','y2LMAwm','zM9Szgu','Awv3CW','wNDtr0q','CMvKks4','rMLSDgu','DhLWzs4','zgLZywi','AguGDge','zxDZ','zwqGC3u','suqGkhC','EevwwwS','igXPC3q','y0LUwhC','AxjLzc4','zxCGDMK','z2v0x3y','BwuGCMu','ig5VDca','D24Gz28','q3jLyxq','yw1Lihi','u0Txr2K','y2vwAwu','zxzLihq','z2v0ihq','ENvJu0C','EsbYzw0','Dgv4DcK','DMLLDW','AguGj2q','kgf1Dg8','BgLZDa','BIbJB24','z2v0v28','wMj0vfO','A3nWywm','BYb1Cgq','BMCGC2u','Aw9Uihm','AwvKigm','CLjLC3a','C2v0DgK','DhrPBMC','ifjLCxu','D2L0AgK','yxnRCW','CNnVBMe','AwD1CMe','z2v0rM8','BMfTzwq','y3rLza','swqNig8','DgfPBMu','CYaOywm','BwLUzf8','DgfIBgu','BwfW','rgvSzxq','zxmGBMe','Dwn0Axy','DMLLDYa','BMnSDwq','BMzPz3u','mtq1nZm4nNbntK1eua','DMLLD0K','C29YDgK','y3vYCMu','B24GC2m','zNvSBhK','B3bLlG','CIbUyw0','vfDjtKC','BMCU','DguNks4','BLLhq28','lxjLC28','zxjZlG','ihDVCMS','j25HBwu','lcbMB2W','BIbZzxq','CIbZzxq','C29SDxq','u3bHy2u','y29Wzs4','BNqGCgu','Aw5Nihm','ieLelG','z2v0ihy','B250ywK','C2TZigm','C3bHy2u','DhLWzq','BgLZDeK','zgvKihq','AxjLzca','y3rLzc4','vMLLDYa','q29SDw0','BgvK','BMfTzq','vgvHBsa','C3vJy2u','r2v0ify','DhmGy28','B25Zzq','z2v0u3a','Aw5Nihy','ywjSzwq','D3rLwxm','B2XKzxi','Awv3x3q','vMLLD3m','BMDZ','Aw5N','uNvAC0S','yMXPyYC','BgLZDe4','rMfPBgu','zgf0zv8','B3iGBMe','DgLVBIa','zwXKCYa','uMv0CMK','q291Bgq','zsbHy3q','vxbKyxq','mKHXzKfWtW','ihjLCxu','Cgz5vu4','Ew9Jr0q','CMvHDgu','AguGj3u','zM9Yihq','jYbHy3q','u29YDgK','y2vjzcW','B2jQzwm','vMLLDW','CMvMzxi','BhzLzcK','zxnVBhu','zgvSzxq','zsbwAwu','Aw5NigK','BM90zq','Awv3ig4','swqSig8','tMv3ihy','DgvHBv8','DMLLD3m','BgLZDf8','Aw9UCYa','yxrLzca','y2fSzw4','ig9YicC','ovHerfbfsW','mtfwyMT1Cuy','z2v0vMK','CK5HBwu','zgvYswq','ihrVihm','twfUywC','DgLVBJO','y3jLyxq','suqGkha','suqGkgy','Axr5','BIbHBMq','DgvHBvm','ihbHz2K','BK9hyNK','ig5HBwu','zsCGyxi','BhzLzca','CMf0Aw8','Aw5KzxG','ihrVigm','AwXPDhK','zv92Awu','ugfNzsa','CJSGB20','C2LKzwi','ywn0Axy','y2vjzca','r3jVDxa','DgLUz3m','zsbYzxm','DMLZAwi','jYbHBMq','CMTZCge','mta1ndiYmJHIAKTUuKS','B3zPzgu','y3rLzf8','zsbHBIa','zMLSDgu','nZjZu2PZD0y','DcbJB24','z3jVDxa','BMfTzsa','ywnLvMK','yM9HCMq'];a0_0x1ca0=function(){return _0x3d6f3a;};return a0_0x1ca0();}export const deleteViewTool={'name':'delet'+a0_0x1383af(0x26a)+'w','description':a0_0x1383af(0x2f7)+'nentl'+a0_0x1383af(0x315)+a0_0x1383af(0x2cf)+a0_0x1383af(0x28b)+'.','annotations':{'title':a0_0x1383af(0x1f0)+a0_0x1383af(0x246)+'w','destructiveHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'viewId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x218)+'ID\x20(p'+a0_0x1383af(0x242)+a0_0x1383af(0x2fd)},'viewName':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x218)+a0_0x1383af(0x27e)+a0_0x1383af(0x319)+a0_0x1383af(0x202)+a0_0x1383af(0x243)+'.'},'listId':{'type':a0_0x1383af(0x294)+'g','description':'List\x20'+a0_0x1383af(0x2a5)+'r\x20nam'+a0_0x1383af(0x272)+a0_0x1383af(0x287)+a0_0x1383af(0x1fa)+'ope.'},'folderId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x2ef)+a0_0x1383af(0x2a1)+a0_0x1383af(0x2d9)+a0_0x1383af(0x30f)+'esolu'+a0_0x1383af(0x230)+a0_0x1383af(0x2c8)+'.'},'spaceId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x20a)+'\x20ID\x20f'+a0_0x1383af(0x22f)+a0_0x1383af(0x30b)+a0_0x1383af(0x209)+a0_0x1383af(0x321)+a0_0x1383af(0x20b)}}}};export const getViewTasksTool={'name':a0_0x1383af(0x30a)+a0_0x1383af(0x226)+a0_0x1383af(0x328),'description':a0_0x1383af(0x232)+a0_0x1383af(0x312)+a0_0x1383af(0x301)+a0_0x1383af(0x211)+'urren'+'tly\x20v'+a0_0x1383af(0x2f4)+'e\x20in\x20'+'a\x20spe'+a0_0x1383af(0x2f9)+a0_0x1383af(0x28b)+a0_0x1383af(0x2bf)+a0_0x1383af(0x2a9)+'ng\x20it'+a0_0x1383af(0x295)+'ters\x20'+a0_0x1383af(0x2ea)+a0_0x1383af(0x2b2)+a0_0x1383af(0x1ff),'annotations':{'title':'Get\x20V'+a0_0x1383af(0x2b9)+a0_0x1383af(0x328),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x1383af(0x240)+'t','properties':{'viewId':{'type':a0_0x1383af(0x294)+'g','description':'View\x20'+'ID\x20(p'+'refer'+'red).'},'viewName':{'type':'strin'+'g','description':a0_0x1383af(0x218)+a0_0x1383af(0x27e)+a0_0x1383af(0x319)+a0_0x1383af(0x202)+a0_0x1383af(0x243)+'.'},'listId':{'type':'strin'+'g','description':a0_0x1383af(0x2f0)+a0_0x1383af(0x2a5)+a0_0x1383af(0x1fd)+a0_0x1383af(0x272)+'oluti'+a0_0x1383af(0x1fa)+a0_0x1383af(0x1fc)},'folderId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x2ef)+a0_0x1383af(0x2a1)+a0_0x1383af(0x2d9)+a0_0x1383af(0x30f)+'esolu'+a0_0x1383af(0x230)+'scope'+'.'},'spaceId':{'type':a0_0x1383af(0x294)+'g','description':a0_0x1383af(0x20a)+a0_0x1383af(0x2ed)+a0_0x1383af(0x22f)+a0_0x1383af(0x30b)+a0_0x1383af(0x209)+a0_0x1383af(0x321)+'cope.'},'page':{'type':a0_0x1383af(0x293)+'r','description':a0_0x1383af(0x26b)+a0_0x1383af(0x293)+a0_0x1383af(0x29e)+a0_0x1383af(0x261)+'natio'+'n.'}}}};export async function handleManageViews(_0x48c0bf,_0x37fbe4){const _0x3de0dc=a0_0x1383af,_0x3544aa={'TqIMw':'delet'+'e','YURcD':_0x3de0dc(0x245)+'e_vie'+'w','oCwsI':_0x3de0dc(0x2ca)+_0x3de0dc(0x2f1),'cInXw':function(_0x41a0ff,_0x1b1cb9,_0x59e57a,_0x1f1305,_0x2eddc2){return _0x41a0ff(_0x1b1cb9,_0x59e57a,_0x1f1305,_0x2eddc2);},'yocGD':_0x3de0dc(0x2fa)+'r','nOGby':function(_0x3e7f2d,_0x3f4052,_0x1019d3,_0xf4e816,_0x5d2330){return _0x3e7f2d(_0x3f4052,_0x1019d3,_0xf4e816,_0x5d2330);},'CEYdL':'space','SKWGi':function(_0x1e219a,_0x166673){return _0x1e219a===_0x166673;},'SOJbH':_0x3de0dc(0x31a),'xEVYk':_0x3de0dc(0x2ad),'zucSG':_0x3de0dc(0x22d)+_0x3de0dc(0x289)+_0x3de0dc(0x20f)+'iew','ccJaV':function(_0x8c60a4,_0x48780f){return _0x8c60a4(_0x48780f);},'RuZsK':_0x3de0dc(0x22d)+_0x3de0dc(0x289)+'creat'+'e\x20vie'+'w','wteYs':_0x3de0dc(0x2e5)+_0x3de0dc(0x1ea)+_0x3de0dc(0x2b7)+'ewNam'+_0x3de0dc(0x298)+_0x3de0dc(0x237)+_0x3de0dc(0x216)+_0x3de0dc(0x23c)+_0x3de0dc(0x23b)+_0x3de0dc(0x2dd)+'\x27\x20act'+'ion.','nYGCo':_0x3de0dc(0x29c)+_0x3de0dc(0x231)+'provi'+_0x3de0dc(0x215)+_0x3de0dc(0x31f)+_0x3de0dc(0x286),'pfyUN':_0x3de0dc(0x22d)+_0x3de0dc(0x289)+_0x3de0dc(0x2a0)+_0x3de0dc(0x2a6)+'w','ZbtTZ':_0x3de0dc(0x2e5)+_0x3de0dc(0x1ea)+_0x3de0dc(0x2b7)+_0x3de0dc(0x2b3)+_0x3de0dc(0x298)+_0x3de0dc(0x237)+_0x3de0dc(0x216)+_0x3de0dc(0x23c)+_0x3de0dc(0x318)+'elete'+_0x3de0dc(0x23d)+_0x3de0dc(0x2c2),'TWING':'\x27view'+'Id\x27\x20o'+_0x3de0dc(0x2b7)+'ewNam'+_0x3de0dc(0x298)+'\x20requ'+_0x3de0dc(0x216)+'for\x20\x27'+'get_t'+'asks\x27'+'.','WISAK':_0x3de0dc(0x22d)+_0x3de0dc(0x289)+_0x3de0dc(0x313)+'asks\x20'+'for\x20v'+_0x3de0dc(0x2c9)},{view:_0x306180,workspace:_0xcca98d}=_0x37fbe4,{action:_0x22d7cc,viewId:_0x12cd93,viewName:_0xb8eda2,teamId:_0x13a06d}=_0x48c0bf;try{const _0x5c0960=_0x37fbe4[_0x3de0dc(0x2ab)+_0x3de0dc(0x2ae)]?.[_0x3de0dc(0x300)+_0x3de0dc(0x21a)]||[];if(_0x22d7cc===_0x3544aa['TqIMw']&&_0x5c0960['inclu'+_0x3de0dc(0x2cd)](_0x3544aa[_0x3de0dc(0x29a)]))return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x281)+'rResp'+_0x3de0dc(0x220)]('Acces'+'s\x20Den'+_0x3de0dc(0x2e1)+'Destr'+_0x3de0dc(0x1f2)+_0x3de0dc(0x234)+_0x3de0dc(0x24f)+'(\x27'+_0x22d7cc+(_0x3de0dc(0x2c7)+_0x3de0dc(0x285)+_0x3de0dc(0x223)+'\x20for\x20'+'your\x20'+_0x3de0dc(0x1f9)+_0x3de0dc(0x20c)+_0x3de0dc(0x1e5)+'\x20or\x20A'+_0x3de0dc(0x2c1)+_0x3de0dc(0x1f5)+_0x3de0dc(0x266)+'n.'));let _0xb69a9f=_0x12cd93;if(!_0xb69a9f&&_0xb8eda2){let _0x500f5e,_0x4be4f=_0x3544aa['oCwsI'];if(_0x48c0bf[_0x3de0dc(0x214)+'d']||_0x48c0bf[_0x3de0dc(0x22c)+'ame']){const _0x3c6941=await _0x3544aa[_0x3de0dc(0x307)](resolveLocation,_0x3de0dc(0x31a),_0x48c0bf[_0x3de0dc(0x214)+'d'],_0x48c0bf[_0x3de0dc(0x22c)+'ame'],_0xcca98d);_0x500f5e=_0x3c6941['id'],_0x4be4f=_0x3de0dc(0x31a);}else{if(_0x48c0bf[_0x3de0dc(0x2fa)+_0x3de0dc(0x29b)]||_0x48c0bf[_0x3de0dc(0x2fa)+'rName']){const _0x1afc4b=await _0x3544aa[_0x3de0dc(0x307)](resolveLocation,_0x3544aa[_0x3de0dc(0x239)],_0x48c0bf['folde'+'rId'],_0x48c0bf[_0x3de0dc(0x2fa)+_0x3de0dc(0x256)],_0xcca98d);_0x500f5e=_0x1afc4b['id'],_0x4be4f=_0x3544aa[_0x3de0dc(0x239)];}else{if(_0x48c0bf[_0x3de0dc(0x212)+'Id']||_0x48c0bf[_0x3de0dc(0x212)+_0x3de0dc(0x2e4)]){const _0x4709d2=await _0x3544aa[_0x3de0dc(0x262)](resolveLocation,_0x3544aa['CEYdL'],_0x48c0bf[_0x3de0dc(0x212)+'Id'],_0x48c0bf[_0x3de0dc(0x212)+_0x3de0dc(0x2e4)],_0xcca98d);_0x500f5e=_0x4709d2['id'],_0x4be4f=_0x3544aa['CEYdL'];}else _0x500f5e=_0x13a06d||'';}}let _0x325c5e=[];if(_0x4be4f===_0x3de0dc(0x31a))_0x325c5e=(await _0x306180['getLi'+_0x3de0dc(0x2db)+'ws'](_0x500f5e))[_0x3de0dc(0x2c0)]?.['views']||[];else{if(_0x4be4f===_0x3544aa[_0x3de0dc(0x239)])_0x325c5e=(await _0x306180[_0x3de0dc(0x1e7)+_0x3de0dc(0x2e9)+_0x3de0dc(0x2fb)](_0x500f5e))['data']?.[_0x3de0dc(0x24d)]||[];else _0x3544aa[_0x3de0dc(0x310)](_0x4be4f,_0x3de0dc(0x212))?_0x325c5e=(await _0x306180['getSp'+_0x3de0dc(0x27f)+_0x3de0dc(0x302)](_0x500f5e))[_0x3de0dc(0x2c0)]?.[_0x3de0dc(0x24d)]||[]:_0x325c5e=(await _0x306180['getWo'+_0x3de0dc(0x275)+'ceVie'+'ws'](_0x500f5e))[_0x3de0dc(0x2c0)]?.[_0x3de0dc(0x24d)]||[];}const _0x199e4f=findBestMatchInArray(_0x325c5e,_0xb8eda2);if(_0x199e4f)_0xb69a9f=_0x199e4f['item']['id'];else return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x281)+'rResp'+_0x3de0dc(0x220)](_0x3de0dc(0x233)+_0x3de0dc(0x30c)+'find\x20'+_0x3de0dc(0x1f3)+_0x3de0dc(0x1e8)+'\x20\x22'+_0xb8eda2+('\x22\x20in\x20'+_0x3de0dc(0x2d6)+_0x3de0dc(0x28d)+_0x3de0dc(0x322)+_0x3de0dc(0x210)+'ner.'));}switch(_0x22d7cc){case _0x3544aa[_0x3de0dc(0x2f6)]:{let _0x1098af;if(_0x48c0bf[_0x3de0dc(0x214)+'d'])_0x1098af=await _0x306180['getLi'+'stVie'+'ws'](_0x48c0bf['listI'+'d']);else{if(_0x48c0bf[_0x3de0dc(0x2fa)+_0x3de0dc(0x29b)])_0x1098af=await _0x306180[_0x3de0dc(0x1e7)+_0x3de0dc(0x2e9)+_0x3de0dc(0x2fb)](_0x48c0bf['folde'+_0x3de0dc(0x29b)]);else _0x48c0bf[_0x3de0dc(0x212)+'Id']?_0x1098af=await _0x306180[_0x3de0dc(0x221)+'aceVi'+_0x3de0dc(0x302)](_0x48c0bf['space'+'Id']):_0x1098af=await _0x306180[_0x3de0dc(0x31c)+_0x3de0dc(0x275)+_0x3de0dc(0x311)+'ws'](_0x48c0bf[_0x3de0dc(0x2da)+'d']);}if(!_0x1098af[_0x3de0dc(0x21d)+'ss'])return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x281)+_0x3de0dc(0x323)+_0x3de0dc(0x220)](_0x1098af[_0x3de0dc(0x2d4)]?.[_0x3de0dc(0x2c4)+'ge']||_0x3de0dc(0x22d)+_0x3de0dc(0x289)+_0x3de0dc(0x2d1)+_0x3de0dc(0x24d));const _0xf45ef1=_0x1098af[_0x3de0dc(0x2c0)]?.[_0x3de0dc(0x24d)]||[];return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x2b0)+'onse']({'views':_0xf45ef1['map'](formatViewSummary),'count':_0xf45ef1[_0x3de0dc(0x291)+'h']},!![]);}case _0x3544aa[_0x3de0dc(0x305)]:{if(!_0xb69a9f)return sponsorService['creat'+'eErro'+_0x3de0dc(0x323)+_0x3de0dc(0x220)](_0x3de0dc(0x2e5)+_0x3de0dc(0x1ea)+'r\x20\x27vi'+'ewNam'+'e\x27\x20is'+_0x3de0dc(0x237)+'ired\x20'+_0x3de0dc(0x23c)+'he\x20\x27g'+'et\x27\x20a'+_0x3de0dc(0x28a)+'.');const _0x158844=await _0x306180[_0x3de0dc(0x255)+'ew'](_0xb69a9f);if(!_0x158844[_0x3de0dc(0x21d)+'ss'])return sponsorService['creat'+_0x3de0dc(0x281)+_0x3de0dc(0x323)+_0x3de0dc(0x220)](_0x158844['error']?.[_0x3de0dc(0x2c4)+'ge']||_0x3544aa[_0x3de0dc(0x314)]);const _0x522241=_0x158844[_0x3de0dc(0x2c0)]?.['view'];return sponsorService[_0x3de0dc(0x25b)+'eResp'+_0x3de0dc(0x220)](formatViewDetail(_0x522241),!![]);}case _0x3de0dc(0x25b)+'e':{if(!_0x48c0bf['name']||!_0x48c0bf[_0x3de0dc(0x213)])return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x281)+'rResp'+_0x3de0dc(0x220)](_0x3de0dc(0x205)+_0x3de0dc(0x274)+'\x20\x27typ'+_0x3de0dc(0x264)+'e\x20req'+'uired'+_0x3de0dc(0x268)+_0x3de0dc(0x23a)+_0x3de0dc(0x2a4)+'ew.');const _0x2025d2=_0x3544aa[_0x3de0dc(0x2ce)](buildViewFields,_0x48c0bf);let _0x1bd5ea;if(_0x48c0bf[_0x3de0dc(0x214)+'d'])_0x1bd5ea=await _0x306180[_0x3de0dc(0x25b)+'eList'+_0x3de0dc(0x241)](_0x48c0bf[_0x3de0dc(0x214)+'d'],_0x2025d2);else{if(_0x48c0bf[_0x3de0dc(0x2fa)+'rId'])_0x1bd5ea=await _0x306180[_0x3de0dc(0x25b)+_0x3de0dc(0x2d2)+'erVie'+'w'](_0x48c0bf[_0x3de0dc(0x2fa)+_0x3de0dc(0x29b)],_0x2025d2);else _0x48c0bf['space'+'Id']?_0x1bd5ea=await _0x306180['creat'+_0x3de0dc(0x2a7)+_0x3de0dc(0x2f3)](_0x48c0bf[_0x3de0dc(0x212)+'Id'],_0x2025d2):_0x1bd5ea=await _0x306180[_0x3de0dc(0x25b)+'eWork'+_0x3de0dc(0x212)+_0x3de0dc(0x241)](_0x48c0bf[_0x3de0dc(0x2da)+'d'],_0x2025d2);}if(!_0x1bd5ea[_0x3de0dc(0x21d)+'ss'])return sponsorService[_0x3de0dc(0x25b)+'eErro'+'rResp'+_0x3de0dc(0x220)](_0x1bd5ea[_0x3de0dc(0x2d4)]?.[_0x3de0dc(0x2c4)+'ge']||_0x3544aa[_0x3de0dc(0x22a)]);const _0x247273=_0x1bd5ea[_0x3de0dc(0x2c0)]?.[_0x3de0dc(0x317)];return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x2b0)+_0x3de0dc(0x220)]({...formatViewDetail(_0x247273),'message':_0x3de0dc(0x218)+'\x22'+_0x48c0bf['name']+(_0x3de0dc(0x28c)+_0x3de0dc(0x250)+'succe'+'ssful'+'ly.')},!![]);}case _0x3de0dc(0x2a0)+'e':{if(!_0xb69a9f)return sponsorService['creat'+_0x3de0dc(0x281)+_0x3de0dc(0x323)+'onse'](_0x3544aa[_0x3de0dc(0x224)]);const _0x3cffa7=_0x3544aa[_0x3de0dc(0x2ce)](buildViewFields,_0x48c0bf);if(_0x3544aa['SKWGi'](Object[_0x3de0dc(0x2a8)](_0x3cffa7)[_0x3de0dc(0x291)+'h'],0x0))return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x281)+_0x3de0dc(0x323)+_0x3de0dc(0x220)](_0x3544aa[_0x3de0dc(0x201)]);const _0x5d0049=await _0x306180[_0x3de0dc(0x2a0)+_0x3de0dc(0x2f3)](_0xb69a9f,_0x3cffa7);if(!_0x5d0049['succe'+'ss'])return sponsorService[_0x3de0dc(0x25b)+'eErro'+'rResp'+_0x3de0dc(0x220)](_0x5d0049[_0x3de0dc(0x2d4)]?.['messa'+'ge']||_0x3544aa[_0x3de0dc(0x238)]);const _0x208be8=_0x5d0049['data']?.['view'];return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x2b0)+'onse']({..._0x3544aa[_0x3de0dc(0x2ce)](formatViewDetail,_0x208be8),'message':_0x3de0dc(0x218)+_0x3de0dc(0x2a0)+_0x3de0dc(0x303)+_0x3de0dc(0x2e0)+_0x3de0dc(0x1fb)+'.'},!![]);}case'delet'+'e':{if(!_0xb69a9f)return sponsorService[_0x3de0dc(0x25b)+'eErro'+_0x3de0dc(0x323)+'onse'](_0x3544aa[_0x3de0dc(0x31d)]);const _0x814cc3=await _0x306180[_0x3de0dc(0x245)+_0x3de0dc(0x2f3)](_0xb69a9f);if(!_0x814cc3[_0x3de0dc(0x21d)+'ss'])return sponsorService[_0x3de0dc(0x25b)+'eErro'+_0x3de0dc(0x323)+'onse'](_0x814cc3[_0x3de0dc(0x2d4)]?.['messa'+'ge']||_0x3de0dc(0x22d)+_0x3de0dc(0x289)+_0x3de0dc(0x245)+'e\x20vie'+'w');return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x2b0)+_0x3de0dc(0x220)]({'success':!![],'message':_0x3de0dc(0x218)+'\x22'+_0x48c0bf[_0x3de0dc(0x1f7)+'d']+(_0x3de0dc(0x2d3)+_0x3de0dc(0x2aa)+_0x3de0dc(0x21d)+'ssful'+_0x3de0dc(0x2e6))},!![]);}case _0x3de0dc(0x2de)+_0x3de0dc(0x328):{if(!_0xb69a9f)return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x281)+_0x3de0dc(0x323)+_0x3de0dc(0x220)](_0x3544aa[_0x3de0dc(0x1fe)]);const _0x4888b4=await _0x306180[_0x3de0dc(0x255)+'ewTas'+'ks'](_0xb69a9f,_0x48c0bf[_0x3de0dc(0x28f)]);if(!_0x4888b4['succe'+'ss'])return sponsorService['creat'+_0x3de0dc(0x281)+_0x3de0dc(0x323)+'onse'](_0x4888b4['error']?.['messa'+'ge']||_0x3544aa['WISAK']);return sponsorService[_0x3de0dc(0x25b)+'eResp'+_0x3de0dc(0x220)](_0x4888b4[_0x3de0dc(0x2c0)],!![]);}default:return sponsorService[_0x3de0dc(0x25b)+_0x3de0dc(0x281)+_0x3de0dc(0x323)+_0x3de0dc(0x220)]('Unkno'+_0x3de0dc(0x30d)+_0x3de0dc(0x29f)+_0x3de0dc(0x25a)+'\x20'+_0x22d7cc);}}catch(_0x59cd2d){return logger[_0x3de0dc(0x2d4)]('Error'+'\x20in\x20h'+'andle'+_0x3de0dc(0x259)+_0x3de0dc(0x2f3)+_0x3de0dc(0x1ec)+'tion:'+'\x20'+_0x22d7cc+')',_0x59cd2d),sponsorService[_0x3de0dc(0x25b)+'eErro'+_0x3de0dc(0x323)+_0x3de0dc(0x220)](_0x59cd2d[_0x3de0dc(0x2c4)+'ge']||String(_0x59cd2d));}}function formatViewSummary(_0x4a226f){const _0x5353df=a0_0x1383af;return{'id':_0x4a226f['id'],'name':_0x4a226f[_0x5353df(0x21b)],'type':_0x4a226f[_0x5353df(0x213)],'visibility':_0x4a226f[_0x5353df(0x273)+_0x5353df(0x269)],'protected':_0x4a226f[_0x5353df(0x2eb)+_0x5353df(0x1e9)],'orderindex':_0x4a226f[_0x5353df(0x284)+_0x5353df(0x267)]};}function formatViewDetail(_0x11647d){const _0x2efc17=a0_0x1383af;if(!_0x11647d)return _0x11647d;return{'id':_0x11647d['id'],'name':_0x11647d[_0x2efc17(0x21b)],'type':_0x11647d['type'],'parent':_0x11647d['paren'+'t'],'grouping':_0x11647d[_0x2efc17(0x27d)+_0x2efc17(0x229)],'sorting':_0x11647d[_0x2efc17(0x1f8)+'ng'],'filters':_0x11647d[_0x2efc17(0x27a)+'rs'],'columns':_0x11647d[_0x2efc17(0x2b5)+'ns'],'team_sidebar':_0x11647d[_0x2efc17(0x24c)+_0x2efc17(0x26d)+'ar'],'settings':_0x11647d[_0x2efc17(0x324)+_0x2efc17(0x228)],'visibility':_0x11647d[_0x2efc17(0x273)+_0x2efc17(0x269)],'protected':_0x11647d[_0x2efc17(0x2eb)+_0x2efc17(0x1e9)],'protected_note':_0x11647d['prote'+_0x2efc17(0x278)+_0x2efc17(0x248)],'protected_by':_0x11647d[_0x2efc17(0x2eb)+_0x2efc17(0x278)+'by'],'date_protected':_0x11647d['date_'+_0x2efc17(0x2eb)+'cted'],'date_created':_0x11647d[_0x2efc17(0x22e)+_0x2efc17(0x25b)+'ed'],'creator':_0x11647d[_0x2efc17(0x25b)+'or'],'orderindex':_0x11647d['order'+'index']};}function buildViewFields(_0x4aabfd){const _0x3e8210=a0_0x1383af,_0x30c2dd={'fPQNo':function(_0x2e8028,_0x5d3258){return _0x2e8028!==_0x5d3258;},'ZwSGD':function(_0x32c151,_0x1de088){return _0x32c151!==_0x1de088;},'cEIeQ':function(_0x185333,_0x3e1c82){return _0x185333!==_0x3e1c82;}},_0x360061={};if(_0x4aabfd[_0x3e8210(0x21b)]!==undefined)_0x360061[_0x3e8210(0x21b)]=_0x4aabfd[_0x3e8210(0x21b)];if(_0x4aabfd[_0x3e8210(0x213)]!==undefined)_0x360061[_0x3e8210(0x213)]=_0x4aabfd[_0x3e8210(0x213)];if(_0x30c2dd[_0x3e8210(0x2b4)](_0x4aabfd[_0x3e8210(0x27d)+_0x3e8210(0x229)],undefined))_0x360061[_0x3e8210(0x27d)+_0x3e8210(0x229)]=_0x4aabfd[_0x3e8210(0x27d)+_0x3e8210(0x229)];if(_0x4aabfd[_0x3e8210(0x1f8)+'ng']!==undefined)_0x360061[_0x3e8210(0x1f8)+'ng']=_0x4aabfd[_0x3e8210(0x1f8)+'ng'];if(_0x30c2dd['ZwSGD'](_0x4aabfd[_0x3e8210(0x27a)+'rs'],undefined))_0x360061[_0x3e8210(0x27a)+'rs']=_0x4aabfd[_0x3e8210(0x27a)+'rs'];if(_0x30c2dd['cEIeQ'](_0x4aabfd[_0x3e8210(0x2b5)+'ns'],undefined))_0x360061[_0x3e8210(0x2b5)+'ns']=_0x4aabfd['colum'+'ns'];if(_0x4aabfd['teamS'+'ideba'+'r']!==undefined)_0x360061[_0x3e8210(0x24c)+'sideb'+'ar']=_0x4aabfd[_0x3e8210(0x260)+_0x3e8210(0x2e3)+'r'];if(_0x4aabfd[_0x3e8210(0x324)+_0x3e8210(0x228)]!==undefined)_0x360061[_0x3e8210(0x324)+_0x3e8210(0x228)]=_0x4aabfd[_0x3e8210(0x324)+'ngs'];if(_0x4aabfd[_0x3e8210(0x273)+_0x3e8210(0x269)]!==undefined)_0x360061['visib'+_0x3e8210(0x269)]=_0x4aabfd[_0x3e8210(0x273)+_0x3e8210(0x269)];if(_0x30c2dd[_0x3e8210(0x2fc)](_0x4aabfd[_0x3e8210(0x2eb)+_0x3e8210(0x1e9)],undefined))_0x360061[_0x3e8210(0x2eb)+_0x3e8210(0x1e9)]=_0x4aabfd[_0x3e8210(0x2eb)+_0x3e8210(0x1e9)];if(_0x30c2dd['ZwSGD'](_0x4aabfd['prote'+'ctedN'+'ote'],undefined))_0x360061[_0x3e8210(0x2eb)+_0x3e8210(0x278)+_0x3e8210(0x248)]=_0x4aabfd[_0x3e8210(0x2eb)+'ctedN'+'ote'];if(_0x4aabfd[_0x3e8210(0x2eb)+_0x3e8210(0x2b1)+'y']!==undefined)_0x360061[_0x3e8210(0x2eb)+_0x3e8210(0x278)+'by']=_0x4aabfd[_0x3e8210(0x2eb)+_0x3e8210(0x2b1)+'y'];return _0x360061;}
|
package/build/tools/webhook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0_0x564b(_0x3d6c1d,_0x39333a){_0x3d6c1d=_0x3d6c1d-0x87;const _0x4d114a=a0_0x4d11();let _0x564be4=_0x4d114a[_0x3d6c1d];if(a0_0x564b['TOHyZP']===undefined){var _0x4fc700=function(_0x382c86){const _0x303936='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b0000='',_0x20ee58='';for(let _0xc8e0e=0x0,_0x2d7bfa,_0x1962eb,_0x8ac5e1=0x0;_0x1962eb=_0x382c86['charAt'](_0x8ac5e1++);~_0x1962eb&&(_0x2d7bfa=_0xc8e0e%0x4?_0x2d7bfa*0x40+_0x1962eb:_0x1962eb,_0xc8e0e++%0x4)?_0x5b0000+=String['fromCharCode'](0xff&_0x2d7bfa>>(-0x2*_0xc8e0e&0x6)):0x0){_0x1962eb=_0x303936['indexOf'](_0x1962eb);}for(let _0x3b67c4=0x0,_0x10c6bc=_0x5b0000['length'];_0x3b67c4<_0x10c6bc;_0x3b67c4++){_0x20ee58+='%'+('00'+_0x5b0000['charCodeAt'](_0x3b67c4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20ee58);};a0_0x564b['DztQXE']=_0x4fc700,a0_0x564b['LrEQGX']={},a0_0x564b['TOHyZP']=!![];}const _0x295bef=_0x4d114a[0x0],_0x31c17e=_0x3d6c1d+_0x295bef,_0x69231a=a0_0x564b['LrEQGX'][_0x31c17e];return!_0x69231a?(_0x564be4=a0_0x564b['DztQXE'](_0x564be4),a0_0x564b['LrEQGX'][_0x31c17e]=_0x564be4):_0x564be4=_0x69231a,_0x564be4;}const a0_0x2f1a45=a0_0x564b;(function(_0x14a035,_0x2385a6){const _0x3167e3=a0_0x564b,_0x3861e1=_0x14a035();while(!![]){try{const _0x1a9c9d=-parseInt(_0x3167e3(0xed))/0x1*(parseInt(_0x3167e3(0x88))/0x2)+-parseInt(_0x3167e3(0xaf))/0x3*(-parseInt(_0x3167e3(0x12a))/0x4)+-parseInt(_0x3167e3(0x9b))/0x5*(parseInt(_0x3167e3(0x10d))/0x6)+-parseInt(_0x3167e3(0xa4))/0x7+-parseInt(_0x3167e3(0xc0))/0x8*(parseInt(_0x3167e3(0x116))/0x9)+-parseInt(_0x3167e3(0x10c))/0xa*(-parseInt(_0x3167e3(0xe8))/0xb)+parseInt(_0x3167e3(0x139))/0xc;if(_0x1a9c9d===_0x2385a6)break;else _0x3861e1['push'](_0x3861e1['shift']());}catch(_0x1c1f36){_0x3861e1['push'](_0x3861e1['shift']());}}}(a0_0x4d11,0x2443a));import{Logger}from'../logger.js';import{sponsorService}from'../utils/sponsor-service.js';const logger=new Logger(a0_0x2f1a45(0xa9)+'okToo'+'l');export const listWebhooksTool={'name':'list_'+'webho'+a0_0x2f1a45(0xf4),'description':a0_0x2f1a45(0x135)+a0_0x2f1a45(0xa0)+'ebhoo'+a0_0x2f1a45(0xaa)+a0_0x2f1a45(0xa3)+'red\x20i'+a0_0x2f1a45(0xe3)+'\x20work'+'space'+'.','annotations':{'title':a0_0x2f1a45(0x135)+'Webho'+a0_0x2f1a45(0xf4),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x2f1a45(0x11a)+'t','properties':{}}};function a0_0x4d11(){const _0x4da46b=['Aw9UCYa','igzYB20','B2jQzwm','Aw5JBhu','icDLDMu','zuvYCM8','rxzLBNq','ihn1y2m','BMrLza','B2LUDcC','CMvZigu','B29R','j3n1C3a','AwvKoIa','jYKGyxi','x2LK','BNqGvvi','rgvZDgK','ogXMt0HzsG','DhmU','zxiGsuq','B2SGsuq','uhjVDMK','zvjLC3a','BwvZC2e','C3rHDhu','C2z1BgW','Ag9VAW','ihnWywm','tgLZDca','CxvPCMu','j2vUzha','AxjLzca','nZaXmdu4mffftufcvG','DwLYzwq','ig9Yiee','vxbKyxq','CLjLC3a','zw5KCg8','zsbxzwi','zv93zwi','mLf4seDfza','zxjYB3i','BMfSihm','yxrPB24','B29RlG','DhmGyxi','igXLyxm','tMv3igq','zM9Yigq','zcCGAxm','ztOGBgK','DguGysa','DxbKyxq','s2z1t2W','iI4Gvxm','DhLWzxm','C3rYAw4','ienSAwm','zw5Kzwq','otv4yuTkv1a','zsbUB3q','igXPC3q','C3vJy2u','C3bHy2u','ywXSihC','zxHPC3q','zgLZywi','BMzPz3u','mJaYmJmYmuTHvg1jra','lcb1Cgq','ieLelG','vw5RBM8','CNjHEsa','v2vIAg8','A3mGy28','zc4Gvxm','C3vZCgu','tcbHBMq','BMvUDgW','mtaYotyZCNfuBNLx','y3vYCMu','j2v2zw4','igfUzca','DMvUDca','CMvHDgu','zwf0zwq','BgvK','zsbKAxm','igzVCIa','lcbVCIa','ihr5Cgu','zgvSzxq','BgX5lG','ihvWzge','y29WztO','lIbszxe','ohfgDNfgzq','yMHVB2S','wurWrw8','zsbjrc4','ihjLCxu','DcbVBMu','DwnJzxm','B2SGDxa','B29Rx2K','ig9YicC','BMrWB2K','zguGyxq','DMvUDhm','tuj2r0O','ihrVihi','Ew91CIa','zxzLBNq','j10GzM8','B3zLige','EsbYzw0','zsbHBIa','z2v0v2u','DhmNige','BgLZDf8','BMf0Aw8','B2SU','zsbYzwe','DgvKihm','ig9MicC','qwnJzxm','AYDZigu','r0Hey0u','BgLZDa','ihrHC2S','CYaOj2e','BIb0Agu','zwqGDg8','zxnZzNu','CIbHBgW','yxjYyxK','mtCWmtm3C0vMv2vp','j3DLyMG','AwzPy2e','Aw50','uMvXDwK','mJiYmdm1yKfcyvfq','qM90Aca','zsbBjYO','Bc10Aw0','svjhBva','zsbHig4','y3jLyxq','B2TZ','t3b0Aw8','DgfZA18','ugvYBwe','DguU','B24GzMe','ywn0Axy','zvDLyMG','zgvZ','igrLBgu','teH4vwq','zxCGD2u','ihDLyMG','BNqSigu','AxnbCNi','B25Zzq','u3rHDhu','AwXLzdO','zxjHDgK','BIbvuKW','D2vIAg8','BNqGCgu','B3iGzgu','Dg9VBey','mtCWA1nbrxbU','mJeXnJj1v3H6uKW','Aw5NihC','zxf1Axi','CMf5lG','zxn0Aw4','jYbVCIa','Aw50jYW','jYKU','C3qSigm','mtCWmZC2m0PbBurJAW','zgf0yq'];a0_0x4d11=function(){return _0x4da46b;};return a0_0x4d11();}export const createWebhookTool={'name':a0_0x2f1a45(0xf3)+a0_0x2f1a45(0x87)+'hook','description':'Creat'+a0_0x2f1a45(0xf2)+a0_0x2f1a45(0xff)+a0_0x2f1a45(0xc1)+a0_0x2f1a45(0xce)+'eceiv'+a0_0x2f1a45(0xda)+a0_0x2f1a45(0xf0)+a0_0x2f1a45(0x9c)+a0_0x2f1a45(0xea)+'tions'+a0_0x2f1a45(0x119)+a0_0x2f1a45(0x99)+'kUp.\x20'+a0_0x2f1a45(0xec)+a0_0x2f1a45(0x122)+'ndpoi'+a0_0x2f1a45(0x128)+a0_0x2f1a45(0xad)+'\x20even'+a0_0x2f1a45(0x8d)+a0_0x2f1a45(0x110),'annotations':{'title':'Creat'+a0_0x2f1a45(0x13f)+a0_0x2f1a45(0x133)},'inputSchema':{'type':a0_0x2f1a45(0x11a)+'t','properties':{'endpoint':{'type':a0_0x2f1a45(0x98)+'g','description':a0_0x2f1a45(0x129)+a0_0x2f1a45(0xd8)+a0_0x2f1a45(0x107)+a0_0x2f1a45(0xbf)+'uired'+'.'},'events':{'type':a0_0x2f1a45(0xe7),'items':{'type':a0_0x2f1a45(0x98)+'g'},'description':a0_0x2f1a45(0x11e)+a0_0x2f1a45(0xba)+'s.\x20Re'+a0_0x2f1a45(0x136)+a0_0x2f1a45(0xab)+a0_0x2f1a45(0xef)+a0_0x2f1a45(0xd1)+a0_0x2f1a45(0xe6)+'\x20even'+a0_0x2f1a45(0x12b)},'space_id':{'type':'strin'+'g','description':a0_0x2f1a45(0xf5)+'nal\x20s'+a0_0x2f1a45(0xbe)+a0_0x2f1a45(0x134)+a0_0x2f1a45(0xc3)},'folder_id':{'type':a0_0x2f1a45(0x98)+'g','description':a0_0x2f1a45(0xf5)+'nal\x20s'+a0_0x2f1a45(0xbe)+'\x20fold'+a0_0x2f1a45(0x12c)+'.'},'list_id':{'type':'strin'+'g','description':a0_0x2f1a45(0xf5)+'nal\x20s'+'cope:'+a0_0x2f1a45(0x9d)+a0_0x2f1a45(0xa6)},'task_id':{'type':a0_0x2f1a45(0x98)+'g','description':a0_0x2f1a45(0xf5)+a0_0x2f1a45(0x8a)+'cope:'+a0_0x2f1a45(0xe1)+'\x20ID.'}},'required':[a0_0x2f1a45(0x13e)+a0_0x2f1a45(0xeb),a0_0x2f1a45(0xd0)+'s']}};export const updateWebhookTool={'name':'updat'+a0_0x2f1a45(0x87)+'hook','description':a0_0x2f1a45(0x13c)+a0_0x2f1a45(0xd4)+a0_0x2f1a45(0xa1)+a0_0x2f1a45(0x10e)+'ebhoo'+a0_0x2f1a45(0xde)+a0_0x2f1a45(0xca)+a0_0x2f1a45(0x101)+a0_0x2f1a45(0xcc)+a0_0x2f1a45(0xb9)+a0_0x2f1a45(0x131)+'s.','annotations':{'title':'Updat'+a0_0x2f1a45(0x13f)+'hook'},'inputSchema':{'type':a0_0x2f1a45(0x11a)+'t','properties':{'webhook_id':{'type':a0_0x2f1a45(0x98)+'g','description':a0_0x2f1a45(0xa9)+a0_0x2f1a45(0x12d)+a0_0x2f1a45(0xbf)+a0_0x2f1a45(0x13a)+'.'},'endpoint':{'type':a0_0x2f1a45(0x98)+'g','description':a0_0x2f1a45(0x8f)+a0_0x2f1a45(0x111)+a0_0x2f1a45(0x8b)+'\x20URL.'},'events':{'type':'array','items':{'type':a0_0x2f1a45(0x98)+'g'},'description':'New\x20e'+a0_0x2f1a45(0xb3)+a0_0x2f1a45(0x97)+'.'},'status':{'type':a0_0x2f1a45(0x98)+'g','description':a0_0x2f1a45(0x104)+a0_0x2f1a45(0xe2)+'ctive'+a0_0x2f1a45(0x112)+a0_0x2f1a45(0x124)+a0_0x2f1a45(0x9a)+a0_0x2f1a45(0x114),'enum':[a0_0x2f1a45(0xfa)+'e',a0_0x2f1a45(0xac)+a0_0x2f1a45(0x120)]}},'required':['webho'+'ok_id']}};export const deleteWebhookTool={'name':'delet'+a0_0x2f1a45(0x87)+a0_0x2f1a45(0x133),'description':a0_0x2f1a45(0xf7)+a0_0x2f1a45(0xae)+a0_0x2f1a45(0xd3)+a0_0x2f1a45(0xd2)+a0_0x2f1a45(0x100)+a0_0x2f1a45(0x8c),'annotations':{'title':'Delet'+a0_0x2f1a45(0x13f)+a0_0x2f1a45(0x133),'destructiveHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'webhook_id':{'type':a0_0x2f1a45(0x98)+'g','description':a0_0x2f1a45(0xa9)+a0_0x2f1a45(0x12d)+a0_0x2f1a45(0xbf)+a0_0x2f1a45(0x13a)+'.'}},'required':[a0_0x2f1a45(0x108)+'ok_id']}};export async function handleManageWebhooks(_0x27753b,_0x410b9){const _0x37c301=a0_0x2f1a45,_0x17f655={'DUFLm':_0x37c301(0xe0),'YDpEo':_0x37c301(0xf3)+'e','KfuOl':_0x37c301(0xee)+_0x37c301(0x137)+_0x37c301(0x121)+_0x37c301(0xb2)+_0x37c301(0xb1)+_0x37c301(0xd6)+_0x37c301(0xa8)+'are\x20r'+_0x37c301(0x10f)+_0x37c301(0xe4)+'\x20crea'+_0x37c301(0x93)+_0x37c301(0x108)+_0x37c301(0xd9),'IRGmP':_0x37c301(0x94)+'e','VqVzt':_0x37c301(0xe9)+_0x37c301(0xc8)+'d\x27\x20is'+_0x37c301(0xc4)+_0x37c301(0x138)+'for\x20u'+'pdate'+'.','GHDcE':'Webho'+_0x37c301(0xc7)+'dated'+_0x37c301(0x11f)+_0x37c301(0xe5)+_0x37c301(0xbc),'LHxUd':_0x37c301(0xe9)+_0x37c301(0xc8)+_0x37c301(0x91)+'\x20requ'+_0x37c301(0x138)+_0x37c301(0x90)+'elete'+'.','ZrOvX':'delet'+'e_web'+_0x37c301(0x133),'MBvGJ':function(_0x45731e,_0x4709ff){return _0x45731e(_0x4709ff);}},{webhook:_0x32f1fa}=_0x410b9,{action:_0x4aef82,webhook_id:_0x4ad2cc,endpoint:_0x16baf7,events:_0x3b4e0d,space_id:_0x3e7b10,folder_id:_0x34e8b5,list_id:_0x49ef2c,task_id:_0x8fcb5,status:_0x17cfa5,team_id:_0x29ee82}=_0x27753b;try{switch(_0x4aef82){case _0x17f655['DUFLm']:{const _0x1b6eed=await _0x32f1fa[_0x37c301(0xd5)+_0x37c301(0xc1)+'s'](_0x29ee82);if(!_0x1b6eed[_0x37c301(0x9e)+'ss'])throw new Error(_0x1b6eed['error']?.['messa'+'ge']);return sponsorService['creat'+_0x37c301(0x12f)+_0x37c301(0x103)]({'webhooks':_0x1b6eed[_0x37c301(0x117)]?.['webho'+'oks']||[]},!![]);}case _0x17f655[_0x37c301(0xc2)]:{if(!_0x16baf7||!_0x3b4e0d||!Array[_0x37c301(0x102)+'ay'](_0x3b4e0d))return sponsorService[_0x37c301(0xf3)+_0x37c301(0x11d)+_0x37c301(0x13d)+_0x37c301(0x103)](_0x17f655[_0x37c301(0x95)]);const _0x9053ef={'endpoint':_0x16baf7,'events':_0x3b4e0d};if(_0x3e7b10)_0x9053ef[_0x37c301(0x9f)+_0x37c301(0x127)]=_0x3e7b10;if(_0x34e8b5)_0x9053ef['folde'+'r_id']=_0x34e8b5;if(_0x49ef2c)_0x9053ef[_0x37c301(0xd7)+'id']=_0x49ef2c;if(_0x8fcb5)_0x9053ef[_0x37c301(0xf6)+'id']=_0x8fcb5;const _0x4c6441=await _0x32f1fa[_0x37c301(0xf3)+'eWebh'+_0x37c301(0x123)](_0x9053ef,_0x29ee82);if(!_0x4c6441[_0x37c301(0x9e)+'ss'])throw new Error(_0x4c6441[_0x37c301(0x89)]?.['messa'+'ge']);return sponsorService[_0x37c301(0xf3)+'eResp'+_0x37c301(0x103)]({'webhook':_0x4c6441[_0x37c301(0x117)]?.[_0x37c301(0x108)+'ok'],'message':_0x37c301(0xa9)+'ok\x20cr'+_0x37c301(0xb5)+_0x37c301(0x11f)+_0x37c301(0xe5)+_0x37c301(0xbc)},!![]);}case _0x17f655[_0x37c301(0xf1)]:{if(!_0x4ad2cc)return sponsorService[_0x37c301(0xf3)+_0x37c301(0x11d)+_0x37c301(0x13d)+_0x37c301(0x103)](_0x17f655['VqVzt']);const _0x40edcc={};if(_0x16baf7)_0x40edcc['endpo'+'int']=_0x16baf7;if(_0x3b4e0d)_0x40edcc[_0x37c301(0xd0)+'s']=_0x3b4e0d;if(_0x17cfa5)_0x40edcc[_0x37c301(0x131)+'s']=_0x17cfa5;if(Object['keys'](_0x40edcc)['lengt'+'h']===0x0)return sponsorService[_0x37c301(0xf3)+'eErro'+_0x37c301(0x13d)+_0x37c301(0x103)](_0x37c301(0x12e)+_0x37c301(0xcb)+_0x37c301(0x8e)+_0x37c301(0xc5)+_0x37c301(0xdc)+_0x37c301(0x13e)+_0x37c301(0x113)+_0x37c301(0x11c)+'nts\x27,'+_0x37c301(0xc9)+'statu'+'s\x27\x20to'+_0x37c301(0xbd)+_0x37c301(0xf8));const _0x5a714c=await _0x32f1fa[_0x37c301(0x94)+'eWebh'+'ook'](_0x4ad2cc,_0x40edcc);if(!_0x5a714c[_0x37c301(0x9e)+'ss'])throw new Error(_0x5a714c[_0x37c301(0x89)]?.[_0x37c301(0x130)+'ge']);return sponsorService[_0x37c301(0xf3)+_0x37c301(0x12f)+_0x37c301(0x103)]({'webhook':_0x5a714c[_0x37c301(0x117)]?.[_0x37c301(0x108)+'ok'],'message':_0x17f655[_0x37c301(0xdf)]},!![]);}case _0x37c301(0xbb)+'e':{if(!_0x4ad2cc)return sponsorService[_0x37c301(0xf3)+'eErro'+_0x37c301(0x13d)+_0x37c301(0x103)](_0x17f655[_0x37c301(0xfe)]);const _0x239d19=_0x410b9[_0x37c301(0x10b)+'ilter']?.[_0x37c301(0xa2)+_0x37c301(0xb6)]||[];if(_0x239d19[_0x37c301(0x11b)+_0x37c301(0xfc)](_0x17f655['ZrOvX']))return sponsorService['creat'+_0x37c301(0x11d)+_0x37c301(0x13d)+'onse'](_0x37c301(0xdd)+'s\x20Den'+_0x37c301(0x125)+'Destr'+'uctiv'+'e\x20act'+_0x37c301(0x118)+'(\x27'+_0x4aef82+(_0x37c301(0x126)+_0x37c301(0xb7)+'abled'+_0x37c301(0xb8)+_0x37c301(0xcf)+_0x37c301(0xb0)+_0x37c301(0x109)+'rsona'+_0x37c301(0x13b)+'PI\x20co'+_0x37c301(0xa3)+'ratio'+'n.'));const _0x4bfe08=await _0x32f1fa['delet'+_0x37c301(0xfb)+_0x37c301(0x123)](_0x4ad2cc);if(!_0x4bfe08['succe'+'ss'])throw new Error(_0x4bfe08['error']?.['messa'+'ge']);return sponsorService[_0x37c301(0xf3)+_0x37c301(0x12f)+_0x37c301(0x103)]({'message':_0x37c301(0xa9)+'ok\x20'+_0x4ad2cc+(_0x37c301(0xfd)+_0x37c301(0xdb)+_0x37c301(0xc6)+_0x37c301(0x132)+'y.')},!![]);}default:return sponsorService[_0x37c301(0xf3)+_0x37c301(0x11d)+_0x37c301(0x13d)+_0x37c301(0x103)](_0x37c301(0xa7)+'wn\x20ac'+'tion\x20'+'\x22'+_0x4aef82+(_0x37c301(0x96)+_0x37c301(0x92)+_0x37c301(0x115)+_0x37c301(0xb4)+_0x37c301(0xa5)+'ate,\x20'+_0x37c301(0x10a)+'lete.'));}}catch(_0x221951){return logger['error'](_0x37c301(0xa9)+'ok\x20op'+_0x37c301(0x106)+_0x37c301(0xf9)+_0x37c301(0x105)+'\x20'+_0x221951[_0x37c301(0x130)+'ge']),sponsorService[_0x37c301(0xf3)+'eErro'+_0x37c301(0x13d)+'onse'](_0x221951['messa'+'ge']||_0x17f655[_0x37c301(0xcd)](String,_0x221951));}}
|
|
1
|
+
const a0_0x2844f7=a0_0x30b1;(function(_0x242fd4,_0x40069d){const _0x49884f=a0_0x30b1,_0x30ca6a=_0x242fd4();while(!![]){try{const _0x34fcbc=-parseInt(_0x49884f(0x153))/0x1+-parseInt(_0x49884f(0x188))/0x2*(-parseInt(_0x49884f(0x161))/0x3)+-parseInt(_0x49884f(0x163))/0x4+-parseInt(_0x49884f(0x11f))/0x5+-parseInt(_0x49884f(0x15a))/0x6+parseInt(_0x49884f(0xfb))/0x7+parseInt(_0x49884f(0x164))/0x8;if(_0x34fcbc===_0x40069d)break;else _0x30ca6a['push'](_0x30ca6a['shift']());}catch(_0x5a60e1){_0x30ca6a['push'](_0x30ca6a['shift']());}}}(a0_0x23c9,0x2c23e));import{Logger}from'../logger.js';import{sponsorService}from'../utils/sponsor-service.js';const logger=new Logger(a0_0x2844f7(0x180)+'okToo'+'l');export const listWebhooksTool={'name':'list_'+'webho'+a0_0x2844f7(0xfa),'description':a0_0x2844f7(0x14b)+'all\x20w'+a0_0x2844f7(0x17d)+'ks\x20co'+a0_0x2844f7(0xd7)+'red\x20i'+a0_0x2844f7(0x154)+a0_0x2844f7(0x149)+a0_0x2844f7(0x134)+'.','annotations':{'title':a0_0x2844f7(0x14b)+'Webho'+'oks','readOnlyHint':!![]},'inputSchema':{'type':a0_0x2844f7(0xe9)+'t','properties':{}}};export const createWebhookTool={'name':a0_0x2844f7(0x131)+a0_0x2844f7(0xec)+a0_0x2844f7(0xe0),'description':a0_0x2844f7(0x11a)+a0_0x2844f7(0x185)+a0_0x2844f7(0x10e)+a0_0x2844f7(0xda)+a0_0x2844f7(0x150)+a0_0x2844f7(0x18a)+a0_0x2844f7(0x135)+'l-tim'+'e\x20not'+'ifica'+a0_0x2844f7(0x132)+a0_0x2844f7(0x127)+a0_0x2844f7(0x186)+a0_0x2844f7(0x160)+a0_0x2844f7(0x10d)+a0_0x2844f7(0x152)+a0_0x2844f7(0x175)+a0_0x2844f7(0x16f)+a0_0x2844f7(0xf5)+a0_0x2844f7(0x122)+a0_0x2844f7(0x177)+a0_0x2844f7(0x116),'annotations':{'title':a0_0x2844f7(0x11a)+a0_0x2844f7(0x16d)+a0_0x2844f7(0xe0)},'inputSchema':{'type':a0_0x2844f7(0xe9)+'t','properties':{'endpoint':{'type':a0_0x2844f7(0xf2)+'g','description':a0_0x2844f7(0xe6)+a0_0x2844f7(0x13e)+a0_0x2844f7(0x155)+a0_0x2844f7(0x117)+'uired'+'.'},'events':{'type':a0_0x2844f7(0x12e),'items':{'type':a0_0x2844f7(0xf2)+'g'},'description':a0_0x2844f7(0x16c)+a0_0x2844f7(0x166)+a0_0x2844f7(0x162)+'quire'+a0_0x2844f7(0x14a)+a0_0x2844f7(0x13a)+'\x27]\x20fo'+a0_0x2844f7(0x13f)+'\x20even'+a0_0x2844f7(0x10a)},'space_id':{'type':a0_0x2844f7(0xf2)+'g','description':'Optio'+a0_0x2844f7(0x11b)+a0_0x2844f7(0x144)+'\x20spac'+a0_0x2844f7(0x17b)},'folder_id':{'type':'strin'+'g','description':a0_0x2844f7(0x11e)+a0_0x2844f7(0x11b)+a0_0x2844f7(0x144)+a0_0x2844f7(0x141)+a0_0x2844f7(0x143)+'.'},'list_id':{'type':'strin'+'g','description':a0_0x2844f7(0x11e)+a0_0x2844f7(0x11b)+a0_0x2844f7(0x144)+a0_0x2844f7(0x113)+a0_0x2844f7(0x11d)},'task_id':{'type':'strin'+'g','description':a0_0x2844f7(0x11e)+a0_0x2844f7(0x11b)+a0_0x2844f7(0x144)+a0_0x2844f7(0xfd)+a0_0x2844f7(0x11d)}},'required':['endpo'+a0_0x2844f7(0xde),a0_0x2844f7(0x128)+'s']}};export const updateWebhookTool={'name':a0_0x2844f7(0x110)+'e_web'+a0_0x2844f7(0xe0),'description':a0_0x2844f7(0x12a)+a0_0x2844f7(0x133)+'exist'+a0_0x2844f7(0xe1)+a0_0x2844f7(0x17d)+a0_0x2844f7(0xd8)+'ndpoi'+a0_0x2844f7(0x10f)+a0_0x2844f7(0xe4)+a0_0x2844f7(0x119)+a0_0x2844f7(0x169)+'s.','annotations':{'title':a0_0x2844f7(0x12a)+a0_0x2844f7(0x16d)+a0_0x2844f7(0xe0)},'inputSchema':{'type':a0_0x2844f7(0xe9)+'t','properties':{'webhook_id':{'type':a0_0x2844f7(0xf2)+'g','description':a0_0x2844f7(0x180)+a0_0x2844f7(0x107)+a0_0x2844f7(0x117)+a0_0x2844f7(0x138)+'.'},'endpoint':{'type':'strin'+'g','description':'New\x20d'+'estin'+a0_0x2844f7(0x174)+a0_0x2844f7(0x137)},'events':{'type':'array','items':{'type':a0_0x2844f7(0xf2)+'g'},'description':'New\x20e'+a0_0x2844f7(0x189)+a0_0x2844f7(0x13b)+'.'},'status':{'type':a0_0x2844f7(0xf2)+'g','description':a0_0x2844f7(0x14f)+'s\x20(\x27a'+a0_0x2844f7(0xd4)+a0_0x2844f7(0xd5)+a0_0x2844f7(0xed)+'ended'+a0_0x2844f7(0x17a),'enum':['activ'+'e','suspe'+a0_0x2844f7(0xdf)]}},'required':[a0_0x2844f7(0xee)+a0_0x2844f7(0x14d)]}};function a0_0x23c9(){const _0x1ca7ab=['ihr5Cgu','DwnJzxm','yxrLlca','C3rHDhu','B3iGzgu','yxjLihi','rxzLBNq','zsbxzwi','AxnbCNi','BNqGvvi','zguGyxq','B2SGDxa','B2SGB3a','C3vJy2u','yxrPB24','BMrWB2K','iI4Gvxm','DhmGyxi','ztOGBgK','EfbgzKW','jYKU','zsbjrc4','j2vUzha','zwjOB28','Dwn0Axy','igXLyxm','v2vIAg8','igzVCIa','DgvKihm','zgvSzxq','zgf0zwq','zsbHig4','ienSAwm','qwnJzxm','mZzKuvDqwwi','DMvUDca','zwnLAxy','y3rPDMu','jYbVCIa','lcb1Cgq','BMzPz3u','AYDZigu','C2z1BgW','yMHVB2S','Cu9Nwgq','DguU','uhjVDMK','Aw50','BMrLza','Ag9VAW','Aw5NihC','B2LUDcC','u1zZqMu','DMvUDhm','ignYzwe','rgvZDgK','Aw9UCYa','BgLZDa','B2jQzwm','DgfZA18','CYbezw4','zv93zwi','j3n1C3a','D2vIAg8','ig9Yiee','DgLVBIa','zgLZywi','C3rYAw4','C3qSigm','Bgv0zs4','tcbHBMq','zgf0yq','zw5KCg8','DguGysa','ihvWzge','B2TZ','mtiYmJa5nvDmsNzhva','CgrHDgu','ihrHC2S','Dg9VBey','B2SU','igfUzca','CMvHDgu','igrLBgu','DcbVBMu','j3DLyMG','AxjLzca','CYCGDg8','B2SGsuq','AwXLzdO','CNjHEsa','DhmU','zwf0zwq','vw5RBM8','uMvXDwK','zxCGD2u','BNqSigu','DxbKyxq','BgvK','BwvZC2e','igXPC3q','j2v2zw4','zxjYB3i','CMf5lG','lIbszxe','AwX0zxi','lcbVCIa','q3jLyxq','BMfSihm','x2LK','ieLelG','t3b0Aw8','nJK3ntiWtu5tALnW','ihjLCxu','zM9Yigq','igv2zw4','EsbYzw0','ihDLyMG','zsbKAxm','zxnZzNu','igzYB20','zxzLBNq','vvPxDhe','vxbKyxq','CLjLC3a','B3zLige','ufDNDgm','yxjYyxK','ugvYBwe','A2v5CW','y3jLyxq','DgLVBNm','zsbHBIa','C3bHy2u','zsbYzwe','AwvKoIa','ifvstc4','DwLYzwq','zuvYCM8','zsbBjYO','DhLWzxm','zcCGAxm','Ew91CIa','BMf0Aw8','CIbHBgW','B29Rx2K','igzVBgq','ig9YicC','zxiGsuq','y29WztO','ueKGy28','vhDTBLq','zsbHy3q','DhmNige','ihDVCMS','zc4Gvxm','tgLZDca','B29R','B2TFAwq','BNrZjYW','u3rHDhu','ihrVihi','zvjLC3a','CMvZigu','mZm0ntCXDuPkz1HL','BIb0Agu','BIbvuKW','ihn1y2m','rgvSzxq','Aw50jYW','B25Zzq','mtGWndmYDenbvxzb','zxjHDgK','zvDLyMG','qM90Aca','icDLDMu','BgX5lG','A1vWlIa','ndi2ntfzEKHNBwq','CY4GuMu','mti0nda4nfb2uurQsG','nduYmZGWmfrYu1nIBW','D24Gywm'];a0_0x23c9=function(){return _0x1ca7ab;};return a0_0x23c9();}export const deleteWebhookTool={'name':a0_0x2844f7(0x183)+a0_0x2844f7(0xec)+a0_0x2844f7(0xe0),'description':a0_0x2844f7(0x12f)+'nentl'+a0_0x2844f7(0x123)+a0_0x2844f7(0x12c)+a0_0x2844f7(0x124)+'ook.','annotations':{'title':a0_0x2844f7(0x157)+a0_0x2844f7(0x16d)+'hook','destructiveHint':!![]},'inputSchema':{'type':a0_0x2844f7(0xe9)+'t','properties':{'webhook_id':{'type':a0_0x2844f7(0xf2)+'g','description':a0_0x2844f7(0x180)+'ok\x20ID'+a0_0x2844f7(0x117)+a0_0x2844f7(0x138)+'.'}},'required':[a0_0x2844f7(0xee)+a0_0x2844f7(0x14d)]}};function a0_0x30b1(_0x42e1d0,_0x5832f8){_0x42e1d0=_0x42e1d0-0xd4;const _0x23c975=a0_0x23c9();let _0x30b14f=_0x23c975[_0x42e1d0];if(a0_0x30b1['DXpyPt']===undefined){var _0x287790=function(_0x473eb6){const _0x106e75='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x340e3c='',_0x42c8ad='';for(let _0x33d6aa=0x0,_0x4bb706,_0x1b33cc,_0x5634ab=0x0;_0x1b33cc=_0x473eb6['charAt'](_0x5634ab++);~_0x1b33cc&&(_0x4bb706=_0x33d6aa%0x4?_0x4bb706*0x40+_0x1b33cc:_0x1b33cc,_0x33d6aa++%0x4)?_0x340e3c+=String['fromCharCode'](0xff&_0x4bb706>>(-0x2*_0x33d6aa&0x6)):0x0){_0x1b33cc=_0x106e75['indexOf'](_0x1b33cc);}for(let _0x836cf4=0x0,_0x1210b9=_0x340e3c['length'];_0x836cf4<_0x1210b9;_0x836cf4++){_0x42c8ad+='%'+('00'+_0x340e3c['charCodeAt'](_0x836cf4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42c8ad);};a0_0x30b1['EPdZoV']=_0x287790,a0_0x30b1['EtjEcy']={},a0_0x30b1['DXpyPt']=!![];}const _0x2b99ef=_0x23c975[0x0],_0x18937f=_0x42e1d0+_0x2b99ef,_0x59be37=a0_0x30b1['EtjEcy'][_0x18937f];return!_0x59be37?(_0x30b14f=a0_0x30b1['EPdZoV'](_0x30b14f),a0_0x30b1['EtjEcy'][_0x18937f]=_0x30b14f):_0x30b14f=_0x59be37,_0x30b14f;}export async function handleManageWebhooks(_0x3d6162,_0x902daf){const _0x240ad7=a0_0x2844f7,_0x2ed840={'SVsBe':_0x240ad7(0xe8),'UZWtq':'Webho'+'ok\x20cr'+_0x240ad7(0x10b)+_0x240ad7(0x156)+_0x240ad7(0x126)+_0x240ad7(0x15f),'qOgXd':_0x240ad7(0x104)+_0x240ad7(0x140)+_0x240ad7(0x13c)+_0x240ad7(0x120)+_0x240ad7(0x105)+'for\x20u'+_0x240ad7(0xfc)+'.','TwmnT':function(_0x11037c,_0x4bff4e){return _0x11037c===_0x4bff4e;},'xPFfL':_0x240ad7(0x180)+_0x240ad7(0x171)+_0x240ad7(0x184)+_0x240ad7(0x156)+_0x240ad7(0x126)+_0x240ad7(0x15f),'qIdTL':_0x240ad7(0x183)+'e','PWgtc':'delet'+_0x240ad7(0xec)+_0x240ad7(0xe0)},{webhook:_0x571fc0}=_0x902daf,{action:_0x4b54ad,webhook_id:_0x4d8e57,endpoint:_0x473c91,events:_0x14e804,space_id:_0xe20732,folder_id:_0x68680a,list_id:_0x3b06dd,task_id:_0x3066e5,status:_0x981903,team_id:_0x4f2932}=_0x3d6162;try{switch(_0x4b54ad){case _0x2ed840[_0x240ad7(0xe3)]:{const _0x4c9a83=await _0x571fc0['getWe'+'bhook'+'s'](_0x4f2932);if(!_0x4c9a83[_0x240ad7(0x173)+'ss'])throw new Error(_0x4c9a83[_0x240ad7(0x115)]?.[_0x240ad7(0x112)+'ge']);return sponsorService[_0x240ad7(0x131)+_0x240ad7(0x151)+_0x240ad7(0x159)]({'webhooks':_0x4c9a83[_0x240ad7(0xf6)]?.['webho'+_0x240ad7(0xfa)]||[]},!![]);}case'creat'+'e':{if(!_0x473c91||!_0x14e804||!Array[_0x240ad7(0x16e)+'ay'](_0x14e804))return sponsorService['creat'+'eErro'+'rResp'+_0x240ad7(0x159)](_0x240ad7(0x15d)+_0x240ad7(0x17c)+_0x240ad7(0xe2)+_0x240ad7(0x100)+_0x240ad7(0x114)+_0x240ad7(0x148)+_0x240ad7(0x109)+_0x240ad7(0x16b)+'equir'+'ed\x20to'+_0x240ad7(0xe5)+_0x240ad7(0xf8)+_0x240ad7(0xee)+_0x240ad7(0xff));const _0x156857={'endpoint':_0x473c91,'events':_0x14e804};if(_0xe20732)_0x156857[_0x240ad7(0x134)+_0x240ad7(0x11c)]=_0xe20732;if(_0x68680a)_0x156857['folde'+'r_id']=_0x68680a;if(_0x3b06dd)_0x156857['list_'+'id']=_0x3b06dd;if(_0x3066e5)_0x156857[_0x240ad7(0xea)+'id']=_0x3066e5;const _0x155160=await _0x571fc0[_0x240ad7(0x131)+_0x240ad7(0x15c)+'ook'](_0x156857,_0x4f2932);if(!_0x155160[_0x240ad7(0x173)+'ss'])throw new Error(_0x155160[_0x240ad7(0x115)]?.[_0x240ad7(0x112)+'ge']);return sponsorService['creat'+_0x240ad7(0x151)+'onse']({'webhook':_0x155160[_0x240ad7(0xf6)]?.[_0x240ad7(0xee)+'ok'],'message':_0x2ed840[_0x240ad7(0x129)]},!![]);}case _0x240ad7(0x110)+'e':{if(!_0x4d8e57)return sponsorService[_0x240ad7(0x131)+_0x240ad7(0x139)+_0x240ad7(0x12b)+'onse'](_0x2ed840[_0x240ad7(0xdb)]);const _0x39a0c1={};if(_0x473c91)_0x39a0c1[_0x240ad7(0xf7)+_0x240ad7(0xde)]=_0x473c91;if(_0x14e804)_0x39a0c1[_0x240ad7(0x128)+'s']=_0x14e804;if(_0x981903)_0x39a0c1[_0x240ad7(0x169)+'s']=_0x981903;if(_0x2ed840[_0x240ad7(0x146)](Object[_0x240ad7(0x130)](_0x39a0c1)['lengt'+'h'],0x0))return sponsorService[_0x240ad7(0x131)+_0x240ad7(0x139)+_0x240ad7(0x12b)+_0x240ad7(0x159)](_0x240ad7(0xdd)+_0x240ad7(0x170)+_0x240ad7(0x17f)+_0x240ad7(0x103)+'\x20of\x20\x27'+_0x240ad7(0xf7)+_0x240ad7(0x158)+_0x240ad7(0x15e)+_0x240ad7(0x14e)+_0x240ad7(0x142)+_0x240ad7(0x169)+_0x240ad7(0x106)+_0x240ad7(0xf9)+_0x240ad7(0xdc));const _0x1f3689=await _0x571fc0[_0x240ad7(0x110)+_0x240ad7(0x15c)+_0x240ad7(0x14c)](_0x4d8e57,_0x39a0c1);if(!_0x1f3689['succe'+'ss'])throw new Error(_0x1f3689[_0x240ad7(0x115)]?.['messa'+'ge']);return sponsorService['creat'+_0x240ad7(0x151)+_0x240ad7(0x159)]({'webhook':_0x1f3689[_0x240ad7(0xf6)]?.[_0x240ad7(0xee)+'ok'],'message':_0x2ed840[_0x240ad7(0x179)]},!![]);}case _0x2ed840['qIdTL']:{if(!_0x4d8e57)return sponsorService[_0x240ad7(0x131)+_0x240ad7(0x139)+'rResp'+_0x240ad7(0x159)]('\x27webh'+_0x240ad7(0x140)+_0x240ad7(0x13c)+'\x20requ'+'ired\x20'+_0x240ad7(0x121)+'elete'+'.');const _0x592fa6=_0x902daf[_0x240ad7(0xfe)+_0x240ad7(0x118)]?.[_0x240ad7(0xf1)+_0x240ad7(0x111)]||[];if(_0x592fa6['inclu'+'des'](_0x2ed840[_0x240ad7(0x12d)]))return sponsorService[_0x240ad7(0x131)+_0x240ad7(0x139)+_0x240ad7(0x12b)+'onse'](_0x240ad7(0x187)+_0x240ad7(0xeb)+_0x240ad7(0x136)+'Destr'+_0x240ad7(0x17e)+_0x240ad7(0x147)+_0x240ad7(0xe7)+'(\x27'+_0x4b54ad+('\x27)\x20ar'+_0x240ad7(0x125)+'abled'+_0x240ad7(0x181)+_0x240ad7(0x13d)+'curre'+'nt\x20pe'+'rsona'+_0x240ad7(0xef)+_0x240ad7(0x145)+'nfigu'+'ratio'+'n.'));const _0x5d667f=await _0x571fc0['delet'+_0x240ad7(0x15c)+_0x240ad7(0x14c)](_0x4d8e57);if(!_0x5d667f[_0x240ad7(0x173)+'ss'])throw new Error(_0x5d667f['error']?.[_0x240ad7(0x112)+'ge']);return sponsorService[_0x240ad7(0x131)+_0x240ad7(0x151)+'onse']({'message':'Webho'+'ok\x20'+_0x4d8e57+(_0x240ad7(0x102)+_0x240ad7(0x182)+_0x240ad7(0x167)+_0x240ad7(0xd9)+'y.')},!![]);}default:return sponsorService[_0x240ad7(0x131)+_0x240ad7(0x139)+_0x240ad7(0x12b)+_0x240ad7(0x159)](_0x240ad7(0x10c)+_0x240ad7(0x165)+_0x240ad7(0xf0)+'\x22'+_0x4b54ad+(_0x240ad7(0x176)+_0x240ad7(0x178)+_0x240ad7(0xf3)+_0x240ad7(0x101)+_0x240ad7(0xd6)+_0x240ad7(0x168)+_0x240ad7(0x16a)+_0x240ad7(0xf4)));}}catch(_0x1a98ec){return logger[_0x240ad7(0x115)](_0x240ad7(0x180)+_0x240ad7(0x172)+_0x240ad7(0x15b)+'on\x20fa'+_0x240ad7(0x108)+'\x20'+_0x1a98ec['messa'+'ge']),sponsorService[_0x240ad7(0x131)+_0x240ad7(0x139)+_0x240ad7(0x12b)+_0x240ad7(0x159)](_0x1a98ec[_0x240ad7(0x112)+'ge']||String(_0x1a98ec));}}
|
package/build/tools/workspace.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x111c42=a0_0xb540;(function(_0x2823f1,_0x37cc6b){const _0x2ada9c=a0_0xb540,_0x58f19d=_0x2823f1();while(!![]){try{const _0x21b53a=-parseInt(_0x2ada9c(0x2c4))/0x1*(-parseInt(_0x2ada9c(0x232))/0x2)+-parseInt(_0x2ada9c(0x214))/0x3+parseInt(_0x2ada9c(0x24a))/0x4*(-parseInt(_0x2ada9c(0x280))/0x5)+parseInt(_0x2ada9c(0x2c8))/0x6+parseInt(_0x2ada9c(0x271))/0x7*(-parseInt(_0x2ada9c(0x29b))/0x8)+parseInt(_0x2ada9c(0x20c))/0x9+parseInt(_0x2ada9c(0x225))/0xa;if(_0x21b53a===_0x37cc6b)break;else _0x58f19d['push'](_0x58f19d['shift']());}catch(_0x268324){_0x58f19d['push'](_0x58f19d['shift']());}}}(a0_0xf5ea,0x7640b));import{Logger}from'../logger.js';import{sponsorService}from'../utils/sponsor-service.js';function a0_0xb540(_0x55b6d9,_0x364be9){_0x55b6d9=_0x55b6d9-0x1bb;const _0xf5ea4e=a0_0xf5ea();let _0xb5409f=_0xf5ea4e[_0x55b6d9];if(a0_0xb540['BfYNwo']===undefined){var _0x15b881=function(_0x2d3ecf){const _0x164dfc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x9db8fe='',_0x2dd59f='';for(let _0xf91cd6=0x0,_0x2885a9,_0x4fda0e,_0x577c20=0x0;_0x4fda0e=_0x2d3ecf['charAt'](_0x577c20++);~_0x4fda0e&&(_0x2885a9=_0xf91cd6%0x4?_0x2885a9*0x40+_0x4fda0e:_0x4fda0e,_0xf91cd6++%0x4)?_0x9db8fe+=String['fromCharCode'](0xff&_0x2885a9>>(-0x2*_0xf91cd6&0x6)):0x0){_0x4fda0e=_0x164dfc['indexOf'](_0x4fda0e);}for(let _0x216cf8=0x0,_0x19ae79=_0x9db8fe['length'];_0x216cf8<_0x19ae79;_0x216cf8++){_0x2dd59f+='%'+('00'+_0x9db8fe['charCodeAt'](_0x216cf8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2dd59f);};a0_0xb540['WvQNXj']=_0x15b881,a0_0xb540['orkINg']={},a0_0xb540['BfYNwo']=!![];}const _0x1b5d55=_0xf5ea4e[0x0],_0x6b7d1=_0x55b6d9+_0x1b5d55,_0x2e0f6b=a0_0xb540['orkINg'][_0x6b7d1];return!_0x2e0f6b?(_0xb5409f=a0_0xb540['WvQNXj'](_0xb5409f),a0_0xb540['orkINg'][_0x6b7d1]=_0xb5409f):_0xb5409f=_0x2e0f6b,_0xb5409f;}import{isNameMatch}from'../utils/resolver-utils.js';const logger=new Logger(a0_0x111c42(0x26e)+a0_0x111c42(0x212)+'ool');export const getWorkspaceSeatsTool={'name':a0_0x111c42(0x1d1)+a0_0x111c42(0x29f)+a0_0x111c42(0x2b5)+'eats','description':a0_0x111c42(0x2bc)+a0_0x111c42(0x2ba)+'\x20and\x20'+a0_0x111c42(0x236)+'\x20seat'+a0_0x111c42(0x226)+'izati'+a0_0x111c42(0x1fb)+a0_0x111c42(0x259)+'\x20work'+a0_0x111c42(0x229)+a0_0x111c42(0x1d8)+'led,\x20'+a0_0x111c42(0x203)+',\x20emp'+a0_0x111c42(0x278)+'Use\x20t'+a0_0x111c42(0x21d)+a0_0x111c42(0x273)+'at-on'+'ly\x20qu'+a0_0x111c42(0x1f1)+a0_0x111c42(0x27d)+a0_0x111c42(0x2ae)+a0_0x111c42(0x2c9)+a0_0x111c42(0x2b3)+'with\x20'+'inclu'+a0_0x111c42(0x2ad)+a0_0x111c42(0x297)+a0_0x111c42(0x298)+'mbine'+'d\x20wor'+'kspac'+a0_0x111c42(0x1de)+'o.','annotations':{'title':'Get\x20W'+a0_0x111c42(0x29f)+a0_0x111c42(0x28d)+'eats','openWorldHint':!![]},'inputSchema':{'type':a0_0x111c42(0x2a2)+'t','properties':{'team_id':{'type':'strin'+'g','description':a0_0x111c42(0x285)+'nal\x20w'+a0_0x111c42(0x29f)+a0_0x111c42(0x211)+a0_0x111c42(0x1c2)+'de'}}}};export async function handleGetWorkspaceSeats(_0x33e953,_0x1e5a9a){const _0x585830=a0_0x111c42,_0x37375d={'ZvunJ':'get_w'+_0x585830(0x29f)+'ace_s'+_0x585830(0x294)},{workspace:_0x1ecf8e}=_0x1e5a9a;try{const _0x4fb63e=await _0x1ecf8e[_0x585830(0x2a5)+'rkspa'+_0x585830(0x221)+'ts']();return sponsorService[_0x585830(0x265)+_0x585830(0x1d9)+'onse'](_0x4fb63e,!![],{'toolName':_0x37375d['ZvunJ']});}catch(_0x1099b5){return sponsorService[_0x585830(0x265)+_0x585830(0x2b0)+_0x585830(0x1f3)+_0x585830(0x22d)]('Error'+_0x585830(0x1cf)+_0x585830(0x283)+_0x585830(0x29f)+'ace\x20s'+'eats:'+'\x20'+_0x1099b5[_0x585830(0x22e)+'ge']);}}export const getWorkspacePlanTool={'name':a0_0x111c42(0x1d1)+a0_0x111c42(0x29f)+a0_0x111c42(0x1d7)+a0_0x111c42(0x2a0),'description':a0_0x111c42(0x272)+a0_0x111c42(0x289)+a0_0x111c42(0x2a1)+a0_0x111c42(0x1cd)+a0_0x111c42(0x205)+a0_0x111c42(0x2c9)+'pace\x20'+a0_0x111c42(0x216)+a0_0x111c42(0x227)+a0_0x111c42(0x243)+'n_id)'+'.\x20Use'+a0_0x111c42(0x29c)+a0_0x111c42(0x21a)+a0_0x111c42(0x1e8)+a0_0x111c42(0x1cb)+'queri'+'es;\x20u'+a0_0x111c42(0x2a9)+a0_0x111c42(0x1c4)+a0_0x111c42(0x2cc)+'e\x20wit'+a0_0x111c42(0x296)+a0_0x111c42(0x209)+a0_0x111c42(0x28e)+'for\x20c'+a0_0x111c42(0x2b8)+a0_0x111c42(0x282)+a0_0x111c42(0x1eb)+a0_0x111c42(0x1f6)+'fo.','annotations':{'title':a0_0x111c42(0x1d2)+a0_0x111c42(0x29f)+a0_0x111c42(0x1c9)+a0_0x111c42(0x2a0),'openWorldHint':!![]},'inputSchema':{'type':a0_0x111c42(0x2a2)+'t','properties':{'team_id':{'type':'strin'+'g','description':a0_0x111c42(0x285)+a0_0x111c42(0x2af)+a0_0x111c42(0x29f)+a0_0x111c42(0x211)+a0_0x111c42(0x1c2)+'de'}}}};export async function handleGetWorkspacePlan(_0x1a044b,_0x4b83c2){const _0x3536ae=a0_0x111c42,{workspace:_0x33db5e}=_0x4b83c2;try{const _0x59ee4d=await _0x33db5e['getWo'+_0x3536ae(0x1eb)+_0x3536ae(0x1ed)+'n'](),_0x3a24a3={'plan_id':_0x59ee4d[_0x3536ae(0x249)+'id'],'plan_name':_0x59ee4d[_0x3536ae(0x249)+_0x3536ae(0x1fa)],'has_trial':_0x59ee4d[_0x3536ae(0x28b)+'rial']||![]};return sponsorService[_0x3536ae(0x265)+_0x3536ae(0x1d9)+_0x3536ae(0x22d)](_0x3a24a3,!![],{'toolName':_0x3536ae(0x1d1)+_0x3536ae(0x29f)+_0x3536ae(0x1d7)+'lan'});}catch(_0x21d4ae){return sponsorService[_0x3536ae(0x265)+_0x3536ae(0x2b0)+'rResp'+'onse'](_0x3536ae(0x1bc)+_0x3536ae(0x1cf)+_0x3536ae(0x283)+'orksp'+_0x3536ae(0x2a7)+_0x3536ae(0x234)+_0x21d4ae[_0x3536ae(0x22e)+'ge']);}}function a0_0xf5ea(){const _0x3b89df=['AcbTzw0','CYbHCYa','CMTZCge','yxrPB24','y2vqBge','icaGia','CL9Zzwe','zgvFCgW','zxjPzxm','DhmSihm','CLjLC3a','D2LUzYa','zsbTzw0','y2uGAw4','C2XPy2u','yMvYCZO','Bcb3B3i','BMfTzq','B24GzM8','CMnOEsa','ywjSzvq','y2uGBwu','x3nLyxi','vLPQqvC','AgvKici','y3vZDg8','Dg90ywW','Bwf0y2G','ihrOzsa','Df9Zzwe','ChPlvg4','B3rL','BhvKzv8','u2jRsui','zwf0CYa','mtyYmdyZowvbtxH4wa','zxjZl2W','zxjFC2u','C2vHCMm','u1njCwy','ywnLig8','CgfJzvq','Aw5JBhu','mtiWodi2mLvkyxbyyG','oGOk','khbSyw4','zgvFBwu','zsbMDwW','zgvFC2G','igzVCIa','CMfYy2G','DhLWzxm','AgLZigy','lIbvC2u','lcbTzw0','BgLZDhm','y2vtzwe','y2HPBgq','y2vFDge','zxjZoIa','odu1mZe4mhDIEKP4wG','ihv0AwW','x25HBwu','ywnLigG','C3bHy2u','zguGDgG','D2ztA3G','zxrFD28','B25Zzq','BwvZC2e','AhKGkhm','ihbSyw4','C3rVBsa','ngP6B1biBW','ifvZzsa','BgfUoIa','BMP2twm','z3vLC3q','yxjLzca','yMvYCW','yxzHAwW','ywnL','C3rYAw4','z2v0q3u','yM9VBgu','ign1C3q','ie5pvca','C3rVBvq','BgvUz3q','x21LBwi','lcbWBge','AwXZ','cGPtAg8','lcbHBMq','tM8GBwu','zgvFy3u','CgXHBL8','ndiWng1zsfv0ua','Axn0CYK','ChvZAa','A190Exa','zcb0yxm','y3rAEM8','zM9Yrwe','CYb1DgK','zwqGAgK','BwjLCIa','AgLLCMe','BNn0zwe','BYbMAw4','qxzHAwW','zguGD28','CIb0Agu','lcbZzwe','ihnLyxi','y3rPDMu','zMf1Bhq','zgvFAgK','BwvTyMu','A1DkBum','BcbOAwu','zwf0lw8','CgX1CMe','DxnLihq','y3jLyxq','C2HHCMu','CgvZ','yw1Ll2u','iokgKcbHyW','igj5ig4','igL0zw0','AwvYyxi','EsbVzIa','v29YA3m','C3rVBv8','Dg8GzMK','mJm5mJzszNbSCwS','r2v0iha','B3iGC2u','C2nVCMu','zMLSBgu','yxrZ','Dg9vCha','DhKPlIa','zxjHCMm','ihnLyxq','CMvU','vw5RBM8','oYb1C2u','BMfTzv8','Ce5Hqwu','mZqYnxDdCvPdDW','BgrLCNm','zwqGD28','Aw5NihC','ysbMB3i','t3b0Aw8','uxPsrKm','l2zVBgq','DxnLCM4','BgfUigq','C29YDa','AgfZx3q','vhfYD2u','ywnLifm','CgXHBIa','yxjLza','icHjrdO','ygbGcG','BMX5ihe','ytOGAgK','zwf0CW','DgfZA3m','AcbPBMm','yxrZigy','B3iGy28','zM9Yihm','BwjLCNm','mtq4ogvoBuLJyG','ihrOAxm','C3rFC2u','BgL6yxq','B3jRC3a','BgfU','zxrHAwW','B2jQzwm','y2uGC2u','4PscicaG','z2v0v28','yMvYCYW','ywnLiha','Bv90yxm','C2uGz2u','zguGC2G','C3bLy2K','z2v0u2G','zgvFC2u','igDLDf8','BMfSihC','zuvYCM8','EMztB04','zcb0BYa','CgfJzsa','B20GDge','ywnLx3m','quznBLy','zM9Szgu','B21IAw4','Bwf4','zw1Izxi','A3mG4Ocuia','r2v0ig0','DgL2zq','AxrLBxm','rMfPBgu','zguGywW','4PsC4Psa4Psaia','y2GGzM8','zcb0CMu','mtG5nda3D2nxC1n1','Af9Tzw0','C2vHDhm','zf9Tzw0','ndK3mtu4mMrczhLsvG','D29YA3m','y2H5','CMnOx24','A3nWywm','y2HHCKe','rxjYB3i','y2Hty28','zM9Yige','sw5JBhu','zwrFBwu','CYWGzM8','DMvYCMK','AM9PBG','Df93B3i','DgfPBhm','z2v0vgu','zw1HAwW','y2uGCgW','ywnLifa','C2SGDhK','B25SEsa','yw4Gzgu','CYbMB3i','DhLWzq','igDLDhq','DhLgv0W','z2v0x3C','r2v0ifC','CgXHBG','zsaOrgu','Aw9U','DhnJz1u','ywnLx3a','icHMAwW','zvjLC3a','y2vnzw0','BwfW','ieLe','4Psu4Psa4Psaia','zsbPBMy','DgfZAYa','CgfJzxm','yMvY','zwfTCW','ihDVCMS','y2HFBwu','zMv0y2G','zguGy3u','DxnLigC','CgXHBI0'];a0_0xf5ea=function(){return _0x3b89df;};return a0_0xf5ea();}export const workspaceTool={'name':a0_0x111c42(0x1d1)+a0_0x111c42(0x29f)+a0_0x111c42(0x23a),'description':'Retur'+'ns\x20wo'+'rkspa'+a0_0x111c42(0x1fe)+'tadat'+a0_0x111c42(0x293)+a0_0x111c42(0x279)+a0_0x111c42(0x22f)+a0_0x111c42(0x1e0)+a0_0x111c42(0x287)+a0_0x111c42(0x20d)+a0_0x111c42(0x24b)+a0_0x111c42(0x21f)+a0_0x111c42(0x2a6)+'\x20plan'+a0_0x111c42(0x25a)+a0_0x111c42(0x1f2)+'hared'+a0_0x111c42(0x26b)+'s,\x20cu'+'stom\x20'+a0_0x111c42(0x1df)+a0_0x111c42(0x21c)+a0_0x111c42(0x21e)+a0_0x111c42(0x25b)+a0_0x111c42(0x1e4)+a0_0x111c42(0x253)+a0_0x111c42(0x270)+'nd\x20a\x20'+a0_0x111c42(0x2ab)+'fic\x20m'+a0_0x111c42(0x2ba)+a0_0x111c42(0x26a)+a0_0x111c42(0x268)+'mail.'+a0_0x111c42(0x233)+a0_0x111c42(0x1d1)+'orksp'+'ace_s'+a0_0x111c42(0x20b)+a0_0x111c42(0x299)+a0_0x111c42(0x262)+a0_0x111c42(0x292)+'uerie'+'s.\x20DO'+a0_0x111c42(0x23f)+a0_0x111c42(0x264)+a0_0x111c42(0x256)+a0_0x111c42(0x24e)+a0_0x111c42(0x2bb)+a0_0x111c42(0x1e7)+a0_0x111c42(0x22c)+a0_0x111c42(0x1eb)+a0_0x111c42(0x223)+'sks\x20i'+a0_0x111c42(0x255)+'d.','annotations':{'title':a0_0x111c42(0x1d2)+a0_0x111c42(0x29f)+a0_0x111c42(0x23a),'openWorldHint':!![]},'inputSchema':{'type':a0_0x111c42(0x2a2)+'t','properties':{'team_id':{'type':a0_0x111c42(0x23b)+'g','description':'Optio'+a0_0x111c42(0x2af)+a0_0x111c42(0x29f)+a0_0x111c42(0x211)+a0_0x111c42(0x1c2)+'de'},'include_hierarchy':{'type':a0_0x111c42(0x23d)+'an','description':a0_0x111c42(0x1bf)+a0_0x111c42(0x22a)+a0_0x111c42(0x218)+a0_0x111c42(0x261)+a0_0x111c42(0x21b)+a0_0x111c42(0x26d)+'space'+a0_0x111c42(0x1c1)+a0_0x111c42(0x281)+a0_0x111c42(0x246)+'\x20list'+a0_0x111c42(0x1ea)+a0_0x111c42(0x284)+'matte'+a0_0x111c42(0x2c3)+a0_0x111c42(0x1d4)+a0_0x111c42(0x25d)+':\x20tru'+'e)'},'include_plan':{'type':a0_0x111c42(0x23d)+'an','description':a0_0x111c42(0x1bf)+a0_0x111c42(0x258)+'rkspa'+a0_0x111c42(0x1c8)+a0_0x111c42(0x1cc)+a0_0x111c42(0x1c5)},'include_seats':{'type':'boole'+'an','description':a0_0x111c42(0x1bf)+a0_0x111c42(0x258)+a0_0x111c42(0x1eb)+a0_0x111c42(0x2a3)+'ats\x20u'+'tiliz'+a0_0x111c42(0x1ec)},'include_shared':{'type':a0_0x111c42(0x23d)+'an','description':a0_0x111c42(0x1bf)+a0_0x111c42(0x2aa)+a0_0x111c42(0x237)+a0_0x111c42(0x254)+a0_0x111c42(0x1fc)+a0_0x111c42(0x2be)},'include_custom_items':{'type':'boole'+'an','description':'Inclu'+a0_0x111c42(0x1e6)+a0_0x111c42(0x231)+a0_0x111c42(0x1df)+a0_0x111c42(0x21c)},'include_members':{'type':a0_0x111c42(0x23d)+'an','description':'Inclu'+a0_0x111c42(0x2c0)+a0_0x111c42(0x1f9)+a0_0x111c42(0x2cc)+a0_0x111c42(0x1f5)+a0_0x111c42(0x238)},'search_member':{'type':a0_0x111c42(0x23b)+'g','description':'Fuzzy'+'\x20sear'+a0_0x111c42(0x2c2)+'r\x20a\x20m'+'ember'+'\x20by\x20n'+'ame\x20o'+'r\x20ema'+'il'}}}};export async function handleGetWorkspace(_0x60af16,_0x14bbc2){const _0x526ad1=a0_0x111c42,_0xa35213={'SSIqf':function(_0x180819,_0x31bc3a,_0x57af0f){return _0x180819(_0x31bc3a,_0x57af0f);},'AFMnV':function(_0xf3f5d3,_0x104a03,_0x394c5d){return _0xf3f5d3(_0x104a03,_0x394c5d);},'tscgU':function(_0x2481bf,_0x222767){return _0x2481bf(_0x222767);},'wfSkx':function(_0x18e587,_0x224473){return _0x18e587>=_0x224473;},'SbkIB':function(_0x259368,_0x599a73){return _0x259368+_0x599a73;},'kWJmC':_0x526ad1(0x27c)+'wn','zfSoN':'Faile'+_0x526ad1(0x2b2)+_0x526ad1(0x1e5)+_0x526ad1(0x230)+'\x20deta'+_0x526ad1(0x244),'njvMc':_0x526ad1(0x2bf)+_0x526ad1(0x2b2)+_0x526ad1(0x1e5)+'\x20shar'+_0x526ad1(0x252)+_0x526ad1(0x279)+'hy','pNaAe':_0x526ad1(0x2bf)+_0x526ad1(0x2b2)+'fetch'+_0x526ad1(0x23e)+_0x526ad1(0x2b4)+_0x526ad1(0x1ca)+_0x526ad1(0x267),'QzRFC':_0x526ad1(0x1d1)+_0x526ad1(0x29f)+_0x526ad1(0x23a)},{workspace:_0x3aaa59,task:_0x2d8dde}=_0x14bbc2;try{const _0x4cff52=_0x60af16[_0x526ad1(0x213)+_0x526ad1(0x25e)+_0x526ad1(0x279)+'hy']!==![],_0x3e6609={};if(_0x4cff52){const _0x4deaf5=await _0x3aaa59[_0x526ad1(0x2a5)+'rkspa'+'ceHie'+_0x526ad1(0x21b)+'y']();let _0x1fe9b0=_0xa35213[_0x526ad1(0x1d6)](formatTreeOutput,_0x4deaf5);if(_0x14bbc2[_0x526ad1(0x239)+_0x526ad1(0x1fd)+'eams']&&_0xa35213[_0x526ad1(0x22b)](_0x14bbc2[_0x526ad1(0x239)+_0x526ad1(0x1fd)+_0x526ad1(0x1e2)]['lengt'+'h'],0x1)){const _0x5a6411=_0x3aaa59[_0x526ad1(0x1c6)+'amId'](),_0x2ba4ff=_0x14bbc2[_0x526ad1(0x239)+'ableT'+_0x526ad1(0x1e2)]['map'](_0x5145c0=>'\x20\x20-\x20'+_0x5145c0[_0x526ad1(0x1fa)]+(_0x526ad1(0x290)+'\x20')+_0x5145c0['id']+')'+(_0x5145c0['id']===_0x5a6411?_0x526ad1(0x269)+_0x526ad1(0x2bd):''))[_0x526ad1(0x1c3)]('\x0a');_0x1fe9b0=_0xa35213[_0x526ad1(0x20a)](_0x526ad1(0x257)+'able\x20'+_0x526ad1(0x26e)+_0x526ad1(0x1e0)+':\x0a'+_0x2ba4ff+(_0x526ad1(0x245)+_0x526ad1(0x1f4)+_0x526ad1(0x254)+'rchy\x20'+_0x526ad1(0x1be)+_0x526ad1(0x25c)+_0x526ad1(0x1e3)+_0x526ad1(0x229)+_0x526ad1(0x215)),_0x1fe9b0);}_0x3e6609[_0x526ad1(0x254)+'rchy']=_0x1fe9b0;}if(_0x60af16[_0x526ad1(0x213)+_0x526ad1(0x1f0)+'an'])try{const _0x5a3f51=await _0x3aaa59['getWo'+'rkspa'+_0x526ad1(0x1ed)+'n']();_0x3e6609['plan']={'name':_0x5a3f51[_0x526ad1(0x249)+_0x526ad1(0x1fa)]||_0xa35213[_0x526ad1(0x260)],'has_trial':_0x5a3f51[_0x526ad1(0x28b)+'rial']||![]};}catch(_0x20e423){_0x3e6609[_0x526ad1(0x1d3)]={'error':_0xa35213[_0x526ad1(0x2b1)]};}if(_0x60af16[_0x526ad1(0x213)+_0x526ad1(0x2ad)+_0x526ad1(0x276)])try{const _0x4af71a=await _0x3aaa59[_0x526ad1(0x2a5)+'rkspa'+'ceSea'+'ts'](),_0x1b7c51=_0x4af71a['membe'+'rs']||{},_0x3cde6c=_0x4af71a['guest'+'s']||{};_0x3e6609[_0x526ad1(0x2c6)]={'members':{'filled':_0x1b7c51[_0x526ad1(0x275)+_0x526ad1(0x2c7)+'bers_'+_0x526ad1(0x2c6)]||0x0,'total':_0x1b7c51[_0x526ad1(0x203)+_0x526ad1(0x242)+_0x526ad1(0x20e)+_0x526ad1(0x276)]||0x0},'guests':{'filled':_0x3cde6c[_0x526ad1(0x275)+'d_gue'+_0x526ad1(0x29d)+'ats']||0x0,'total':_0x3cde6c[_0x526ad1(0x203)+'_gues'+_0x526ad1(0x206)+'ts']||0x0}};}catch(_0x4e0c1f){_0x3e6609['seats']={'error':'Faile'+_0x526ad1(0x2b2)+_0x526ad1(0x1e5)+_0x526ad1(0x27a)+_0x526ad1(0x251)+_0x526ad1(0x29e)+_0x526ad1(0x1d5)};}if(_0x60af16[_0x526ad1(0x213)+_0x526ad1(0x219)+_0x526ad1(0x28f)])try{const _0x555587=await _0x3aaa59[_0x526ad1(0x2ac)+'aredH'+_0x526ad1(0x26c)+_0x526ad1(0x2ca)](),_0x1b483b=_0x555587[_0x526ad1(0x266)+'d']||{};_0x3e6609[_0x526ad1(0x266)+'d']={'tasks':(_0x1b483b[_0x526ad1(0x295)]||[])[_0x526ad1(0x1db)](_0x304c60=>({'id':_0x304c60['id'],'name':_0x304c60[_0x526ad1(0x1fa)]})),'lists':(_0x1b483b[_0x526ad1(0x220)]||[])[_0x526ad1(0x1db)](_0x409315=>({'id':_0x409315['id'],'name':_0x409315[_0x526ad1(0x1fa)]})),'folders':(_0x1b483b[_0x526ad1(0x2b7)+'rs']||[])[_0x526ad1(0x1db)](_0xc631f4=>({'id':_0xc631f4['id'],'name':_0xc631f4[_0x526ad1(0x1fa)]}))};}catch(_0x426166){_0x3e6609[_0x526ad1(0x266)+'d']={'error':_0xa35213[_0x526ad1(0x235)]};}if(_0x60af16[_0x526ad1(0x213)+_0x526ad1(0x248)+_0x526ad1(0x26f)+_0x526ad1(0x2be)])try{const _0x41b90a=await _0x2d8dde[_0x526ad1(0x23c)+_0x526ad1(0x240)+'askTy'+_0x526ad1(0x267)]();_0x3e6609[_0x526ad1(0x202)+_0x526ad1(0x2a8)+'k_typ'+'es']=_0x41b90a[_0x526ad1(0x1db)](_0x239082=>({'id':_0x239082['id'],'name':_0x239082[_0x526ad1(0x1fa)],'name_plural':_0x239082[_0x526ad1(0x27e)+_0x526ad1(0x263)+'l']}));}catch(_0x7299ba){_0x3e6609[_0x526ad1(0x202)+'m_tas'+_0x526ad1(0x24d)+'es']={'error':_0xa35213[_0x526ad1(0x27f)]};}const _0x53cc75=_0x60af16[_0x526ad1(0x213)+_0x526ad1(0x217)+_0x526ad1(0x29a)]||_0x60af16['searc'+_0x526ad1(0x2c5)+_0x526ad1(0x1e1)];let _0x2dc1fd=null;if(_0x53cc75)try{_0x2dc1fd=await _0x3aaa59['getWo'+'rkspa'+_0x526ad1(0x1da)+_0x526ad1(0x238)]();}catch(_0x285ec2){if(_0x60af16[_0x526ad1(0x213)+_0x526ad1(0x217)+_0x526ad1(0x29a)])_0x3e6609[_0x526ad1(0x25f)+'rs']={'error':_0x526ad1(0x2bf)+_0x526ad1(0x2b2)+_0x526ad1(0x1e5)+'\x20memb'+_0x526ad1(0x224)+_0x285ec2[_0x526ad1(0x22e)+'ge']};if(_0x60af16[_0x526ad1(0x20f)+'h_mem'+_0x526ad1(0x1e1)])_0x3e6609[_0x526ad1(0x204)+_0x526ad1(0x1c0)+_0x526ad1(0x29a)]={'error':'Faile'+_0x526ad1(0x2b2)+_0x526ad1(0x20f)+_0x526ad1(0x1e9)+_0x526ad1(0x1f8)+'\x20'+_0x285ec2['messa'+'ge']};}_0x60af16[_0x526ad1(0x213)+_0x526ad1(0x217)+_0x526ad1(0x29a)]&&_0x2dc1fd&&(_0x3e6609['membe'+'rs']=_0x2dc1fd);if(_0x60af16[_0x526ad1(0x20f)+'h_mem'+_0x526ad1(0x1e1)]&&_0x2dc1fd){const _0x2ca4eb=String(_0x60af16[_0x526ad1(0x20f)+_0x526ad1(0x2c5)+_0x526ad1(0x1e1)]),_0x5a5773=_0x2dc1fd[_0x526ad1(0x1db)](_0x138d04=>{const _0x5e6cc8=_0x526ad1,_0xa30264=_0xa35213[_0x5e6cc8(0x210)](isNameMatch,_0x138d04[_0x5e6cc8(0x1fa)]||'',_0x2ca4eb)[_0x5e6cc8(0x274)],_0x7eedcf=isNameMatch(_0x138d04[_0x5e6cc8(0x288)+'ame']||'',_0x2ca4eb)[_0x5e6cc8(0x274)],_0x156673=_0xa35213[_0x5e6cc8(0x2b6)](isNameMatch,_0x138d04[_0x5e6cc8(0x1c7)]||'',_0x2ca4eb)['score'];return{..._0x138d04,'_searchScore':Math[_0x5e6cc8(0x2b9)](_0xa30264,_0x7eedcf,_0x156673)};}),_0x3dc3d2=_0x5a5773['filte'+'r'](_0x44785b=>_0x44785b[_0x526ad1(0x1ff)+'chSco'+'re']>=0x3c)[_0x526ad1(0x28a)]((_0x176209,_0x41d4ff)=>_0x41d4ff[_0x526ad1(0x1ff)+_0x526ad1(0x1bd)+'re']-_0x176209[_0x526ad1(0x1ff)+'chSco'+'re'])[_0x526ad1(0x1db)](({_searchScore:_0x37b81b,..._0x58fed3})=>_0x58fed3);_0x3e6609[_0x526ad1(0x204)+_0x526ad1(0x1c0)+_0x526ad1(0x29a)]=_0x3dc3d2,_0x3dc3d2[_0x526ad1(0x241)+'h']===0x0&&(_0x3e6609[_0x526ad1(0x25f)+_0x526ad1(0x1ef)+_0x526ad1(0x2cb)+_0x526ad1(0x208)]=_0x526ad1(0x247)+_0x526ad1(0x29a)+'\x20matc'+_0x526ad1(0x201)+_0x2ca4eb+'\x22');}return sponsorService['creat'+_0x526ad1(0x1d9)+_0x526ad1(0x22d)](_0x3e6609,!![],{'toolName':_0xa35213[_0x526ad1(0x286)]});}catch(_0x48b501){return sponsorService[_0x526ad1(0x265)+_0x526ad1(0x2b0)+_0x526ad1(0x1f3)+_0x526ad1(0x22d)](_0x526ad1(0x1bc)+_0x526ad1(0x1cf)+_0x526ad1(0x283)+_0x526ad1(0x29f)+_0x526ad1(0x228)+_0x526ad1(0x26c)+'chy:\x20'+_0x48b501[_0x526ad1(0x22e)+'ge']);}}function formatTreeOutput(_0x3462ad){const _0x12dff0=a0_0x111c42,_0x5a1e0d={'AkrxY':function(_0x20d692,_0x12da0b,_0x4f6ce7,_0x5449c1,_0x6decb8){return _0x20d692(_0x12da0b,_0x4f6ce7,_0x5449c1,_0x6decb8);},'tyFWL':function(_0x535d85,_0x1dc9d2){return _0x535d85+_0x1dc9d2;},'pzKTn':function(_0x32f738,_0x4207ab){return _0x32f738-_0x4207ab;},'ctZzo':function(_0x3f64a7,_0x41b23d){return _0x3f64a7===_0x41b23d;},'VZjAW':function(_0x60aa2a,_0x514e58){return _0x60aa2a in _0x514e58;},'Tqrwe':function(_0x3f1fbb,_0x451895){return _0x3f1fbb+_0x451895;}},_0x381e21=(_0x48f748,_0x49587f=0x0,_0x3c012d=!![],_0x4bbdd3='')=>{const _0xf2c344=a0_0xb540,_0x4e1118=[],_0x219d6a=_0x5a1e0d[_0xf2c344(0x24f)](_0x49587f,0x0)?'':_0x4bbdd3+(_0x3c012d?_0xf2c344(0x1dd):_0xf2c344(0x2c1)),_0x24a4f6=_0x5a1e0d[_0xf2c344(0x200)]('type',_0x48f748)?_0x48f748[_0xf2c344(0x1ce)][_0xf2c344(0x1bb)+'t'](0x0)[_0xf2c344(0x277)+'erCas'+'e']()+_0x48f748[_0xf2c344(0x1ce)][_0xf2c344(0x1f7)](0x1)+_0xf2c344(0x1dc):_0xf2c344(0x26e)+_0xf2c344(0x2b3)+'ID';_0x4e1118[_0xf2c344(0x24c)](''+_0x219d6a+_0x48f748[_0xf2c344(0x1fa)]+'\x20('+_0x24a4f6+':\x20'+_0x48f748['id']+')');const _0x517cd1=_0x49587f===0x0?'':_0x4bbdd3+(_0x3c012d?_0xf2c344(0x1ee):_0xf2c344(0x2a4)),_0x18c982=_0x48f748[_0xf2c344(0x222)+_0xf2c344(0x27b)]||[];return _0x18c982[_0xf2c344(0x250)+'ch']((_0x4f911e,_0x35d4bb)=>{const _0x2f9b70=_0xf2c344,_0x553293=_0x5a1e0d['AkrxY'](_0x381e21,_0x4f911e,_0x5a1e0d[_0x2f9b70(0x1d0)](_0x49587f,0x1),_0x35d4bb===_0x5a1e0d[_0x2f9b70(0x207)](_0x18c982[_0x2f9b70(0x241)+'h'],0x1),_0x517cd1);_0x4e1118[_0x2f9b70(0x24c)](..._0x553293);}),_0x4e1118;},_0x37d547=_0x381e21(_0x3462ad['root']);return _0x5a1e0d[_0x12dff0(0x28c)](_0x5a1e0d['Tqrwe'](_0x12dff0(0x291),_0x37d547[_0x12dff0(0x1c3)]('\x0a')),'\x0a```');}
|
|
1
|
+
const a0_0x53bc1a=a0_0x2af7;(function(_0x2cbbde,_0x15a0d3){const _0x1a3b96=a0_0x2af7,_0x2948cb=_0x2cbbde();while(!![]){try{const _0x5c7778=-parseInt(_0x1a3b96(0x1d8))/0x1*(-parseInt(_0x1a3b96(0x12a))/0x2)+-parseInt(_0x1a3b96(0x188))/0x3*(-parseInt(_0x1a3b96(0x140))/0x4)+parseInt(_0x1a3b96(0x19b))/0x5+parseInt(_0x1a3b96(0x1d2))/0x6+parseInt(_0x1a3b96(0x11f))/0x7*(-parseInt(_0x1a3b96(0x193))/0x8)+-parseInt(_0x1a3b96(0x1df))/0x9+-parseInt(_0x1a3b96(0x10e))/0xa*(parseInt(_0x1a3b96(0x1c3))/0xb);if(_0x5c7778===_0x15a0d3)break;else _0x2948cb['push'](_0x2948cb['shift']());}catch(_0x51cf09){_0x2948cb['push'](_0x2948cb['shift']());}}}(a0_0x2ad3,0x56b19));function a0_0x2af7(_0x430913,_0x25f47e){_0x430913=_0x430913-0x10c;const _0x2ad387=a0_0x2ad3();let _0x2af758=_0x2ad387[_0x430913];if(a0_0x2af7['VBBblI']===undefined){var _0x4786bc=function(_0x18971d){const _0xc0a710='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc46213='',_0x29b477='';for(let _0x3b7a8d=0x0,_0x3898d1,_0xedd473,_0x336d85=0x0;_0xedd473=_0x18971d['charAt'](_0x336d85++);~_0xedd473&&(_0x3898d1=_0x3b7a8d%0x4?_0x3898d1*0x40+_0xedd473:_0xedd473,_0x3b7a8d++%0x4)?_0xc46213+=String['fromCharCode'](0xff&_0x3898d1>>(-0x2*_0x3b7a8d&0x6)):0x0){_0xedd473=_0xc0a710['indexOf'](_0xedd473);}for(let _0x3f4c0f=0x0,_0x48bfd6=_0xc46213['length'];_0x3f4c0f<_0x48bfd6;_0x3f4c0f++){_0x29b477+='%'+('00'+_0xc46213['charCodeAt'](_0x3f4c0f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x29b477);};a0_0x2af7['nuChdn']=_0x4786bc,a0_0x2af7['FuKCVv']={},a0_0x2af7['VBBblI']=!![];}const _0x23d294=_0x2ad387[0x0],_0x2e86cc=_0x430913+_0x23d294,_0x1ce8f4=a0_0x2af7['FuKCVv'][_0x2e86cc];return!_0x1ce8f4?(_0x2af758=a0_0x2af7['nuChdn'](_0x2af758),a0_0x2af7['FuKCVv'][_0x2e86cc]=_0x2af758):_0x2af758=_0x1ce8f4,_0x2af758;}import{Logger}from'../logger.js';function a0_0x2ad3(){const _0x3d235b=['ieLe','yxjLza','ihDVCMS','yw1Ll2u','zM9Yrwe','mJe1nJqYogvsqw10EG','Bwf4','B3rL','CMnOx24','zM9Szgu','y3rPDMu','zgvFC2G','CIb0Agu','EwDgC1m','4Psu4Psa4Psaia','s2LvqMy','lIbvC2u','ywnL','zcb0BYa','zMv0y2G','A0LovK4','oIb0CNu','z2v0v28','zM9Yihm','DhLWzq','t3vyq0q','y2vtzwe','CL9Zzwe','A3nWywm','BwjPBMu','AxrLBxm','r2v0ig0','ihrOzsa','zwqGD28','y2HFBwu','CYWGzM8','ywnLifm','zM9Yige','ihnLyxi','zgvFAgK','C3rVBsa','yMvYC18','x25HBwu','BMfSihC','CMvU','zxjZl2W','CgfJzsa','y2Hty28','iokgKcbHyW','Bcb3B3i','BwvTyMu','Aw9U','CxvLCMK','zgvFCgW','DhmSihm','BwfW','igzVCIa','zvjLC3a','zw1HAwW','Bwf0Dgu','yM9VBgu','ig1LBwi','lcbHBMq','qxzHAwW','zMLSBgu','uMv0Dxi','ysbMB3i','BwjLCNm','AM9PBG','CIbHig0','ywnLx3m','B3jRC3a','D2L0Aca','rhndAve','y3jLyxq','oYb1C2u','y3vZDg8','m1nPDefuBG','yMvY','y2uGC2u','vMTMDuu','DhKPlIa','C2vHDhm','ChvZAa','igL0zw0','ifvZzsa','zguGC2G','Aw5NihC','mtmYndqWthHxtNnO','zgvFC2u','C2nVCMu','A3mG4Ocuia','zcb0CMu','khbSyw4','C2SGDhK','ywnLihm','mJa0oduYnvLfyvfUqG','y2vqBge','y2HPBgq','CMTZCge','B2jQzwm','v29YA3m','DxnLihq','zhLnBxy','cMbGya','BgvUz3q','CMnOEq','zxjHCMm','B3iGy28','zcb3B3i','DhLWzxm','ig1HDgm','zxjPzxm','BhvKzv8','zuvYCM8','zwf0CZO','BvHutue','CgXHBG','zsbMDwW','Df9Zzwe','ihbSyw4','zwqGAgK','y2HHCKe','BYbMAw4','y2GGzM8','CMfYy2G','ywjSzvq','yw1L','BcbOAwu','uNjhs3i','rxjYB3i','B21IAw4','zsb3Axq','y2uGBwu','r255vuC','yxzHAwW','mtG3swLYzMTW','AgLZigy','z2v0x3C','C2HHCMu','icaTia','zM9Yigm','DMvYCMK','B3iGC2u','y2viAwu','yxrZihu','D29YA3m','BgfUigq','yxjLzeG','y2vFDge','yMvYCW','mJy3mtu0mLnuwMPbAG','Af9Tzw0','CgvZ','ywnLigG','BMfTzq','ywnLx3a','ntC1mtLXqwfxDwq','ign1C3q','BgfUoIa','ie5pvca','ihnOyxi','y2uGAw4','Bv90yxm','mZKZmZCXmuPWB2DOzG','zsbPBMy','ytOGAgK','ihv0AwW','BgvKlca','CMLHBa','CMnOEsa','BwvZC2e','CYbMB3i','B20GDge','BNn0zwe','lcbLBxa','A190Exa','Aw5JBhu','4PsC4Psa4Psaia','oGOk','zcb0yxm','zwrFBwu','zwf0CYa','B29S','BMX5ihe','lcbTzw0','CgXHBIa','ihnLyxq','igj5ig4','y2vnzw0','zwf0CW','r2v0ifC','BL9PzcK','l2zVBgq','CgXHBL8','sw5JBhu','x21LBwi','AcbPBMm','zxrHAwW','AwXZ','EsbVzIa','Dg9vCha','zw1Izxi','zguGDgG','B25Zzq','AxPHDgK','DgfZA3m','rMfPBgu','D2LUzYa','zwf0lw8','zxjdyxm','C3rFC2u','igDLDf8','zM8U','yMvYCYW','igXPC3q','zf9NDwu','txDSu2K','CY4Gre8','DxnLCM4','yxrPB24','BMqGysa','igDLDhq','DgfZAYa','zsaOrgu','z3vLC3q','B24GzM8','zxrFD28','BMfTzv8','C3rVBv8','DxnLigC','CgfJzvq','mtyZoteWCKjMt2fK','r2v0iha','C2vHCMm','C3rYAw4','vxnLihq','DgL2zq','ywnLifa','Dg90ywW','yw9VrKS','B25SEsa','icaGia','z2v0q3u','CYWGy3u','zguGD28','x2D1zxm','x3nLyxi','AcbTzw0','mtyXq1nUDe5w','zMXXAM0','zxjZoIa','C29YDa','AgfZx3q','yxnRvhK','zwfTCW','yw1jza','C3bHy2u','zgvFBwu','t3b0Aw8','mLffsLrMBa','AgLLCMe','CLjLC3a','yxrZ','BgfU','yxrZigy','igfUzca','ywnLig8','B3DwqxG','DgLSAxO','icHMAwW','C2XPy2u','tM8GBwu','icHjrdO','rMTHyMu','yMvYCZO','Df93B3i'];a0_0x2ad3=function(){return _0x3d235b;};return a0_0x2ad3();}import{sponsorService}from'../utils/sponsor-service.js';import{isNameMatch}from'../utils/resolver-utils.js';const logger=new Logger(a0_0x53bc1a(0x1a0)+a0_0x53bc1a(0x10d)+a0_0x53bc1a(0x1f2));export const getWorkspaceSeatsTool={'name':a0_0x53bc1a(0x1c5)+a0_0x53bc1a(0x182)+'ace_s'+a0_0x53bc1a(0x1f9),'description':a0_0x53bc1a(0x15a)+a0_0x53bc1a(0x205)+a0_0x53bc1a(0x130)+a0_0x53bc1a(0x21c)+a0_0x53bc1a(0x1f6)+a0_0x53bc1a(0x1e2)+a0_0x53bc1a(0x208)+a0_0x53bc1a(0x21d)+a0_0x53bc1a(0x147)+a0_0x53bc1a(0x13d)+a0_0x53bc1a(0x127)+a0_0x53bc1a(0x134)+a0_0x53bc1a(0x1e3)+a0_0x53bc1a(0x115)+a0_0x53bc1a(0x1ea)+a0_0x53bc1a(0x18c)+a0_0x53bc1a(0x112)+a0_0x53bc1a(0x1c4)+a0_0x53bc1a(0x1ca)+'at-on'+'ly\x20qu'+a0_0x53bc1a(0x1ab)+a0_0x53bc1a(0x186)+a0_0x53bc1a(0x20f)+a0_0x53bc1a(0x1cd)+a0_0x53bc1a(0x169)+a0_0x53bc1a(0x183)+a0_0x53bc1a(0x1ec)+a0_0x53bc1a(0x194)+a0_0x53bc1a(0x12f)+a0_0x53bc1a(0x1a7)+a0_0x53bc1a(0x158)+a0_0x53bc1a(0x1a8)+a0_0x53bc1a(0x157)+a0_0x53bc1a(0x1e0)+'o.','annotations':{'title':a0_0x53bc1a(0x1fa)+'orksp'+a0_0x53bc1a(0x15f)+a0_0x53bc1a(0x1f9),'openWorldHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'team_id':{'type':a0_0x53bc1a(0x111)+'g','description':a0_0x53bc1a(0x129)+a0_0x53bc1a(0x166)+a0_0x53bc1a(0x182)+a0_0x53bc1a(0x131)+a0_0x53bc1a(0x1c9)+'de'}}}};export async function handleGetWorkspaceSeats(_0x2cc627,_0x1bf093){const _0x11b42d=a0_0x53bc1a,_0x52fa68={'OuXCD':_0x11b42d(0x1c5)+_0x11b42d(0x182)+'ace_s'+'eats'},{workspace:_0x3dcf0a}=_0x1bf093;try{const _0x2668cd=await _0x3dcf0a[_0x11b42d(0x151)+_0x11b42d(0x19e)+_0x11b42d(0x155)+'ts']();return sponsorService[_0x11b42d(0x185)+_0x11b42d(0x174)+_0x11b42d(0x207)](_0x2668cd,!![],{'toolName':_0x52fa68[_0x11b42d(0x154)]});}catch(_0x52bb61){return sponsorService[_0x11b42d(0x185)+_0x11b42d(0x1ad)+'rResp'+_0x11b42d(0x207)](_0x11b42d(0x1bd)+'\x20gett'+_0x11b42d(0x192)+'orksp'+_0x11b42d(0x19a)+_0x11b42d(0x1ae)+'\x20'+_0x52bb61[_0x11b42d(0x1e6)+'ge']);}}export const getWorkspacePlanTool={'name':a0_0x53bc1a(0x1c5)+a0_0x53bc1a(0x182)+a0_0x53bc1a(0x1d7)+a0_0x53bc1a(0x12e),'description':a0_0x53bc1a(0x10f)+a0_0x53bc1a(0x1ce)+a0_0x53bc1a(0x201)+a0_0x53bc1a(0x1e7)+a0_0x53bc1a(0x15b)+'works'+'pace\x20'+a0_0x53bc1a(0x198)+a0_0x53bc1a(0x165)+',\x20pla'+a0_0x53bc1a(0x1fb)+a0_0x53bc1a(0x14b)+'\x20this'+a0_0x53bc1a(0x173)+'plan-'+a0_0x53bc1a(0x117)+a0_0x53bc1a(0x16f)+'es;\x20u'+'se\x20ge'+a0_0x53bc1a(0x13a)+'kspac'+a0_0x53bc1a(0x1bf)+a0_0x53bc1a(0x200)+a0_0x53bc1a(0x1ac)+a0_0x53bc1a(0x1f5)+a0_0x53bc1a(0x1c8)+a0_0x53bc1a(0x1be)+a0_0x53bc1a(0x15c)+a0_0x53bc1a(0x19e)+a0_0x53bc1a(0x1dd)+a0_0x53bc1a(0x210),'annotations':{'title':'Get\x20W'+a0_0x53bc1a(0x182)+a0_0x53bc1a(0x114)+a0_0x53bc1a(0x12e),'openWorldHint':!![]},'inputSchema':{'type':a0_0x53bc1a(0x19f)+'t','properties':{'team_id':{'type':a0_0x53bc1a(0x111)+'g','description':'Optio'+a0_0x53bc1a(0x166)+a0_0x53bc1a(0x182)+'ace\x20o'+a0_0x53bc1a(0x1c9)+'de'}}}};export async function handleGetWorkspacePlan(_0x4bb054,_0x196c96){const _0x559d74=a0_0x53bc1a,{workspace:_0x34aa84}=_0x196c96;try{const _0x475c8f=await _0x34aa84[_0x559d74(0x151)+_0x559d74(0x19e)+'cePla'+'n'](),_0x30ebef={'plan_id':_0x475c8f['plan_'+'id'],'plan_name':_0x475c8f['plan_'+_0x559d74(0x1d6)],'has_trial':_0x475c8f[_0x559d74(0x123)+'rial']||![]};return sponsorService[_0x559d74(0x185)+_0x559d74(0x174)+'onse'](_0x30ebef,!![],{'toolName':_0x559d74(0x1c5)+_0x559d74(0x182)+_0x559d74(0x1d7)+_0x559d74(0x12e)});}catch(_0x3f978a){return sponsorService[_0x559d74(0x185)+'eErro'+_0x559d74(0x12c)+_0x559d74(0x207)](_0x559d74(0x1bd)+_0x559d74(0x219)+_0x559d74(0x192)+_0x559d74(0x182)+'ace\x20p'+_0x559d74(0x1da)+_0x3f978a[_0x559d74(0x1e6)+'ge']);}}export const workspaceTool={'name':a0_0x53bc1a(0x1c5)+a0_0x53bc1a(0x182)+a0_0x53bc1a(0x14c),'description':a0_0x53bc1a(0x17c)+'ns\x20wo'+'rkspa'+a0_0x53bc1a(0x1c0)+'tadat'+a0_0x53bc1a(0x1e1)+'erarc'+'hy\x20(s'+'paces'+a0_0x53bc1a(0x1fc)+a0_0x53bc1a(0x168)+'ists)'+a0_0x53bc1a(0x1f4)+a0_0x53bc1a(0x211)+a0_0x53bc1a(0x1b3)+',\x20sea'+a0_0x53bc1a(0x171)+'hared'+a0_0x53bc1a(0x18f)+a0_0x53bc1a(0x11a)+a0_0x53bc1a(0x163)+a0_0x53bc1a(0x21a)+a0_0x53bc1a(0x1a9)+'.\x20Use'+'\x20sear'+a0_0x53bc1a(0x15d)+'mber\x20'+'to\x20fi'+a0_0x53bc1a(0x218)+'speci'+'fic\x20m'+a0_0x53bc1a(0x205)+a0_0x53bc1a(0x1f7)+a0_0x53bc1a(0x13e)+'mail.'+a0_0x53bc1a(0x190)+a0_0x53bc1a(0x1c5)+a0_0x53bc1a(0x182)+a0_0x53bc1a(0x181)+a0_0x53bc1a(0x1f1)+a0_0x53bc1a(0x152)+a0_0x53bc1a(0x20c)+a0_0x53bc1a(0x1f3)+'uerie'+a0_0x53bc1a(0x215)+a0_0x53bc1a(0x1db)+a0_0x53bc1a(0x1a1)+a0_0x53bc1a(0x1b6)+a0_0x53bc1a(0x1ef)+a0_0x53bc1a(0x196)+a0_0x53bc1a(0x10c)+a0_0x53bc1a(0x21e)+'rkspa'+a0_0x53bc1a(0x1d0)+'sks\x20i'+a0_0x53bc1a(0x1e9)+'d.','annotations':{'title':a0_0x53bc1a(0x1fa)+a0_0x53bc1a(0x182)+a0_0x53bc1a(0x14c),'openWorldHint':!![]},'inputSchema':{'type':a0_0x53bc1a(0x19f)+'t','properties':{'team_id':{'type':a0_0x53bc1a(0x111)+'g','description':'Optio'+a0_0x53bc1a(0x166)+a0_0x53bc1a(0x182)+a0_0x53bc1a(0x131)+a0_0x53bc1a(0x1c9)+'de'},'include_hierarchy':{'type':'boole'+'an','description':a0_0x53bc1a(0x1fe)+a0_0x53bc1a(0x206)+a0_0x53bc1a(0x1b1)+a0_0x53bc1a(0x1bb)+'rarch'+a0_0x53bc1a(0x203)+a0_0x53bc1a(0x127)+a0_0x53bc1a(0x15e)+'lders'+a0_0x53bc1a(0x179)+a0_0x53bc1a(0x212)+'s\x20as\x20'+a0_0x53bc1a(0x17d)+a0_0x53bc1a(0x176)+a0_0x53bc1a(0x197)+a0_0x53bc1a(0x21b)+'fault'+a0_0x53bc1a(0x150)+'e)'},'include_plan':{'type':a0_0x53bc1a(0x177)+'an','description':'Inclu'+a0_0x53bc1a(0x11b)+'rkspa'+'ce\x20pl'+'an\x20de'+'tails'},'include_seats':{'type':a0_0x53bc1a(0x177)+'an','description':a0_0x53bc1a(0x1fe)+'de\x20wo'+'rkspa'+a0_0x53bc1a(0x18a)+a0_0x53bc1a(0x1cc)+a0_0x53bc1a(0x133)+a0_0x53bc1a(0x217)},'include_shared':{'type':'boole'+'an','description':a0_0x53bc1a(0x1fe)+a0_0x53bc1a(0x191)+'ared\x20'+a0_0x53bc1a(0x12b)+a0_0x53bc1a(0x1e5)+a0_0x53bc1a(0x159)},'include_custom_items':{'type':'boole'+'an','description':a0_0x53bc1a(0x1fe)+'de\x20cu'+a0_0x53bc1a(0x163)+'task\x20'+a0_0x53bc1a(0x1a9)},'include_members':{'type':a0_0x53bc1a(0x177)+'an','description':a0_0x53bc1a(0x1fe)+'de\x20al'+a0_0x53bc1a(0x16c)+a0_0x53bc1a(0x157)+'e\x20mem'+a0_0x53bc1a(0x1d1)},'search_member':{'type':a0_0x53bc1a(0x111)+'g','description':'Fuzzy'+a0_0x53bc1a(0x161)+a0_0x53bc1a(0x1b7)+a0_0x53bc1a(0x180)+a0_0x53bc1a(0x205)+a0_0x53bc1a(0x1f7)+'ame\x20o'+'r\x20ema'+'il'}}}};export async function handleGetWorkspace(_0x3a083d,_0x1f83da){const _0x41b74b=a0_0x53bc1a,_0x5c0d45={'MwlSi':function(_0xa0b91e,_0x71743f,_0x423583){return _0xa0b91e(_0x71743f,_0x423583);},'JxybD':function(_0x3e843b,_0x151055){return _0x3e843b(_0x151055);},'ygFsS':function(_0x4a5e20,_0x208194){return _0x4a5e20+_0x208194;},'owVAx':_0x41b74b(0x20a)+_0x41b74b(0x14d)+_0x41b74b(0x14e)+_0x41b74b(0x1dc)+_0x41b74b(0x1b4)+'erarc'+'hy','kINVN':'Faile'+'d\x20to\x20'+_0x41b74b(0x14e)+_0x41b74b(0x1d9)+_0x41b74b(0x1e8)+_0x41b74b(0x199)+_0x41b74b(0x1d4),'aooFK':function(_0x360ad4,_0x4ea78f){return _0x360ad4===_0x4ea78f;}},{workspace:_0x485dce,task:_0x479f7e}=_0x1f83da;try{const _0x1603d1=_0x3a083d[_0x41b74b(0x1ec)+_0x41b74b(0x162)+_0x41b74b(0x1a6)+'hy']!==![],_0x4b72f0={};if(_0x1603d1){const _0x577a36=await _0x485dce['getWo'+_0x41b74b(0x19e)+_0x41b74b(0x1cb)+_0x41b74b(0x1b8)+'y']();let _0x50df97=_0x5c0d45['JxybD'](formatTreeOutput,_0x577a36);if(_0x1f83da['avail'+_0x41b74b(0x1b9)+_0x41b74b(0x125)]&&_0x1f83da['avail'+_0x41b74b(0x1b9)+_0x41b74b(0x125)][_0x41b74b(0x1a4)+'h']>=0x1){const _0x314518=_0x485dce['getTe'+_0x41b74b(0x126)](),_0x294ab6=_0x1f83da[_0x41b74b(0x1c2)+_0x41b74b(0x1b9)+_0x41b74b(0x125)][_0x41b74b(0x172)](_0x2fe0c2=>_0x41b74b(0x1c7)+_0x2fe0c2[_0x41b74b(0x1d6)]+(_0x41b74b(0x137)+'\x20')+_0x2fe0c2['id']+')'+(_0x2fe0c2['id']===_0x314518?_0x41b74b(0x16b)+_0x41b74b(0x113):''))[_0x41b74b(0x17f)]('\x0a');_0x50df97=_0x5c0d45[_0x41b74b(0x148)](_0x41b74b(0x17a)+'able\x20'+_0x41b74b(0x1a0)+'paces'+':\x0a'+_0x294ab6+('\x0a\x0aSho'+_0x41b74b(0x20b)+_0x41b74b(0x12b)+'rchy\x20'+_0x41b74b(0x160)+_0x41b74b(0x145)+'\x20work'+_0x41b74b(0x127)+_0x41b74b(0x1ee)),_0x50df97);}_0x4b72f0['hiera'+_0x41b74b(0x1a5)]=_0x50df97;}if(_0x3a083d[_0x41b74b(0x1ec)+_0x41b74b(0x170)+'an'])try{const _0x54d0b8=await _0x485dce[_0x41b74b(0x151)+_0x41b74b(0x19e)+_0x41b74b(0x19c)+'n']();_0x4b72f0['plan']={'name':_0x54d0b8[_0x41b74b(0x1fd)+_0x41b74b(0x1d6)]||'Unkno'+'wn','has_trial':_0x54d0b8[_0x41b74b(0x123)+_0x41b74b(0x1e4)]||![]};}catch(_0x1758f8){_0x4b72f0[_0x41b74b(0x1b0)]={'error':_0x41b74b(0x20a)+_0x41b74b(0x14d)+'fetch'+'\x20plan'+'\x20deta'+_0x41b74b(0x202)};}if(_0x3a083d[_0x41b74b(0x1ec)+_0x41b74b(0x194)+_0x41b74b(0x12d)])try{const _0x5d99fe=await _0x485dce[_0x41b74b(0x151)+_0x41b74b(0x19e)+_0x41b74b(0x155)+'ts'](),_0x5d5126=_0x5d99fe[_0x41b74b(0x16d)+'rs']||{},_0x1709ab=_0x5d99fe['guest'+'s']||{};_0x4b72f0['seats']={'members':{'filled':_0x5d5126['fille'+'d_mem'+_0x41b74b(0x164)+'seats']||0x0,'total':_0x5d5126[_0x41b74b(0x115)+_0x41b74b(0x1ff)+'er_se'+_0x41b74b(0x12d)]||0x0},'guests':{'filled':_0x1709ab[_0x41b74b(0x17b)+_0x41b74b(0x213)+_0x41b74b(0x20e)+_0x41b74b(0x12d)]||0x0,'total':_0x1709ab['total'+_0x41b74b(0x11c)+_0x41b74b(0x1b2)+'ts']||0x0}};}catch(_0x40dba1){_0x4b72f0[_0x41b74b(0x18d)]={'error':_0x41b74b(0x20a)+_0x41b74b(0x14d)+'fetch'+_0x41b74b(0x1f6)+'s\x20uti'+'lizat'+_0x41b74b(0x16e)};}if(_0x3a083d['inclu'+_0x41b74b(0x146)+_0x41b74b(0x13c)])try{const _0x2e2307=await _0x485dce['getSh'+_0x41b74b(0x1cf)+'ierar'+'chy'](),_0x3bec04=_0x2e2307[_0x41b74b(0x1c6)+'d']||{};_0x4b72f0[_0x41b74b(0x1c6)+'d']={'tasks':(_0x3bec04[_0x41b74b(0x209)]||[])[_0x41b74b(0x172)](_0x39fc5d=>({'id':_0x39fc5d['id'],'name':_0x39fc5d[_0x41b74b(0x1d6)]})),'lists':(_0x3bec04['lists']||[])[_0x41b74b(0x172)](_0xb62e9=>({'id':_0xb62e9['id'],'name':_0xb62e9['name']})),'folders':(_0x3bec04[_0x41b74b(0x144)+'rs']||[])['map'](_0x457a4a=>({'id':_0x457a4a['id'],'name':_0x457a4a[_0x41b74b(0x1d6)]}))};}catch(_0x42dcac){_0x4b72f0[_0x41b74b(0x1c6)+'d']={'error':_0x5c0d45[_0x41b74b(0x132)]};}if(_0x3a083d[_0x41b74b(0x1ec)+'de_cu'+_0x41b74b(0x220)+_0x41b74b(0x159)])try{const _0x4e9de6=await _0x479f7e[_0x41b74b(0x119)+'stomT'+_0x41b74b(0x124)+_0x41b74b(0x1d4)]();_0x4b72f0['custo'+'m_tas'+'k_typ'+'es']=_0x4e9de6['map'](_0x1eb4b2=>({'id':_0x1eb4b2['id'],'name':_0x1eb4b2[_0x41b74b(0x1d6)],'name_plural':_0x1eb4b2[_0x41b74b(0x21f)+'plura'+'l']}));}catch(_0x36bbe7){_0x4b72f0[_0x41b74b(0x187)+_0x41b74b(0x1de)+_0x41b74b(0x1eb)+'es']={'error':_0x5c0d45[_0x41b74b(0x14f)]};}const _0x2cbbda=_0x3a083d[_0x41b74b(0x1ec)+_0x41b74b(0x128)+'mbers']||_0x3a083d[_0x41b74b(0x110)+'h_mem'+_0x41b74b(0x189)];let _0x3809ca=null;if(_0x2cbbda)try{_0x3809ca=await _0x485dce['getWo'+_0x41b74b(0x19e)+_0x41b74b(0x1f8)+_0x41b74b(0x1d1)]();}catch(_0x280a5c){if(_0x3a083d['inclu'+_0x41b74b(0x128)+_0x41b74b(0x17e)])_0x4b72f0[_0x41b74b(0x16d)+'rs']={'error':'Faile'+'d\x20to\x20'+_0x41b74b(0x14e)+_0x41b74b(0x178)+_0x41b74b(0x121)+_0x280a5c[_0x41b74b(0x1e6)+'ge']};if(_0x3a083d[_0x41b74b(0x110)+'h_mem'+'ber'])_0x4b72f0['match'+'ed_me'+_0x41b74b(0x17e)]={'error':_0x41b74b(0x20a)+_0x41b74b(0x14d)+_0x41b74b(0x110)+_0x41b74b(0x11e)+_0x41b74b(0x139)+'\x20'+_0x280a5c[_0x41b74b(0x1e6)+'ge']};}_0x3a083d['inclu'+'de_me'+'mbers']&&_0x3809ca&&(_0x4b72f0[_0x41b74b(0x16d)+'rs']=_0x3809ca);if(_0x3a083d[_0x41b74b(0x110)+_0x41b74b(0x1d3)+_0x41b74b(0x189)]&&_0x3809ca){const _0xb1cd4=String(_0x3a083d[_0x41b74b(0x110)+'h_mem'+_0x41b74b(0x189)]),_0x17b15b=_0x3809ca[_0x41b74b(0x172)](_0x94f365=>{const _0xdf86c9=_0x41b74b,_0x11843c=_0x5c0d45[_0xdf86c9(0x214)](isNameMatch,_0x94f365[_0xdf86c9(0x1d6)]||'',_0xb1cd4)['score'],_0x56e7b9=isNameMatch(_0x94f365[_0xdf86c9(0x216)+_0xdf86c9(0x1ba)]||'',_0xb1cd4)[_0xdf86c9(0x195)],_0x2a5eb3=isNameMatch(_0x94f365[_0xdf86c9(0x175)]||'',_0xb1cd4)[_0xdf86c9(0x195)];return{..._0x94f365,'_searchScore':Math[_0xdf86c9(0x141)](_0x11843c,_0x56e7b9,_0x2a5eb3)};}),_0x572d30=_0x17b15b['filte'+'r'](_0x4facdc=>_0x4facdc[_0x41b74b(0x11d)+_0x41b74b(0x16a)+'re']>=0x3c)[_0x41b74b(0x122)]((_0x1fd664,_0x48a603)=>_0x48a603[_0x41b74b(0x11d)+_0x41b74b(0x16a)+'re']-_0x1fd664['_sear'+'chSco'+'re'])[_0x41b74b(0x172)](({_searchScore:_0x3253bb,..._0x1f8e9c})=>_0x1f8e9c);_0x4b72f0['match'+_0x41b74b(0x1f0)+'mbers']=_0x572d30,_0x5c0d45[_0x41b74b(0x116)](_0x572d30[_0x41b74b(0x1a4)+'h'],0x0)&&(_0x4b72f0['membe'+_0x41b74b(0x156)+_0x41b74b(0x143)+_0x41b74b(0x142)]=_0x41b74b(0x136)+_0x41b74b(0x17e)+_0x41b74b(0x1aa)+'hed\x20\x22'+_0xb1cd4+'\x22');}return sponsorService[_0x41b74b(0x185)+_0x41b74b(0x174)+_0x41b74b(0x207)](_0x4b72f0,!![],{'toolName':_0x41b74b(0x1c5)+_0x41b74b(0x182)+'ace'});}catch(_0x235ca1){return sponsorService[_0x41b74b(0x185)+_0x41b74b(0x1ad)+_0x41b74b(0x12c)+_0x41b74b(0x207)](_0x41b74b(0x1bd)+_0x41b74b(0x219)+'ing\x20w'+_0x41b74b(0x182)+_0x41b74b(0x1d5)+'ierar'+'chy:\x20'+_0x235ca1['messa'+'ge']);}}function formatTreeOutput(_0x5c0b10){const _0x3397ab=a0_0x53bc1a,_0x402f98={'KiUBf':function(_0xb3c429,_0x454c0f){return _0xb3c429===_0x454c0f;},'VkfuE':function(_0xf4ee,_0x1d8e44){return _0xf4ee+_0x1d8e44;},'dyMmv':_0x3397ab(0x1ed),'DsCiQ':_0x3397ab(0x153),'RrGKr':function(_0x1ae969,_0x107fe4){return _0x1ae969+_0x107fe4;},'GnyUG':function(_0x327144,_0x35e92c){return _0x327144(_0x35e92c);},'flqjm':function(_0x478f6a,_0x5d50fa){return _0x478f6a+_0x5d50fa;}},_0x3a8284=(_0xc284d2,_0x5f441a=0x0,_0x5e2ddf=!![],_0x41769c='')=>{const _0xae81d7=_0x3397ab,_0x3f6816={'mXTMA':function(_0x388660,_0x4c83fa){return _0x388660+_0x4c83fa;},'Fkabe':function(_0x523a23,_0x3e5b1f){const _0x382987=a0_0x2af7;return _0x402f98[_0x382987(0x14a)](_0x523a23,_0x3e5b1f);}},_0x584896=[],_0x2213a7=_0x5f441a===0x0?'':_0x402f98[_0xae81d7(0x18b)](_0x41769c,_0x5e2ddf?_0xae81d7(0x149):_0x402f98[_0xae81d7(0x1a2)]),_0x4bb5fd=_0x402f98[_0xae81d7(0x184)]in _0xc284d2?_0xc284d2['type'][_0xae81d7(0x1b5)+'t'](0x0)[_0xae81d7(0x204)+_0xae81d7(0x20d)+'e']()+_0xc284d2[_0xae81d7(0x153)][_0xae81d7(0x135)](0x1)+_0xae81d7(0x13b):'Works'+_0xae81d7(0x169)+'ID';_0x584896[_0xae81d7(0x18e)](''+_0x2213a7+_0xc284d2[_0xae81d7(0x1d6)]+'\x20('+_0x4bb5fd+':\x20'+_0xc284d2['id']+')');const _0x432fa9=_0x5f441a===0x0?'':_0x402f98[_0xae81d7(0x1bc)](_0x41769c,_0x5e2ddf?_0xae81d7(0x118):'│\x20\x20\x20'),_0x39964b=_0xc284d2[_0xae81d7(0x19d)+_0xae81d7(0x167)]||[];return _0x39964b[_0xae81d7(0x13f)+'ch']((_0x1ab97f,_0x54270f)=>{const _0x5f0e0c=_0xae81d7,_0x31d953=_0x3a8284(_0x1ab97f,_0x3f6816[_0x5f0e0c(0x1af)](_0x5f441a,0x1),_0x3f6816[_0x5f0e0c(0x138)](_0x54270f,_0x39964b[_0x5f0e0c(0x1a4)+'h']-0x1),_0x432fa9);_0x584896[_0x5f0e0c(0x18e)](..._0x31d953);}),_0x584896;},_0x87d5e3=_0x402f98[_0x3397ab(0x1c1)](_0x3a8284,_0x5c0b10['root']);return _0x402f98[_0x3397ab(0x120)](_0x402f98[_0x3397ab(0x18b)]('```\x0a',_0x87d5e3[_0x3397ab(0x17f)]('\x0a')),_0x3397ab(0x1a3));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x9b312d=a0_0x4a6d;function a0_0x2b33(){const _0x184c2d=['Bg93lG','uhvezxa','AwfSAxO','Aw9UywW','Ec1Zyw4','qxbPs2u','zKjXvxy','qKXAr3a','DhjLyw0','B25L','C2LUzYa','y29UDgu','yw0TAwq','AgvUDgK','Cc1Zyw4','A25VD24','Aw5Nigy','B25F','zgvIDwC','Aw5Nihm','CM90zwm','D24VB2e','C2vJCMu','ywDL','zwDHy3K','r0vu','Dw5HDxq','C2v0','DxnLihq','tunqsge','tLfvvLu','Ac9YzwC','C3nL','qMfKifi','CxvLC3q','zwPcC3i','AguGt0e','CYaOwc0','zwq6ie0','DgvKihq','BgvZCW','CNHusw0','ucbtzxi','yKLotui','ChjVDMK','B25JBg8','suzesxG','zwfTCW','DxrOlxa','AxPLzcW','CMvPEeO','AxrPywW','zYbdBgK','BwfW','CY9ZAge','rNLNvei','CMvTAxu','ihzHBgK','mteYnJaZn0D6uMftwa','B2f1DgG','DgvHBs0','BwnWlxm','lxrVB2W','Egf3Ehi','vxnJshK','B25jza','oIbnAxm','BsaTifm','suqGyxm','B3zLCNK','ihjLCxu','DxaTyxa','y29UBMu','igrPCMu','vxbNCMe','zcbZzxm','Aw9UihC','sw50zxi','DxbFBwm','ywnJzxa','ue9tva','ig5Vige','rNjZB0u','CNzLCI4','zwfKzxi','ndaXihq','l21JCa','AxrOie8','Axn0zxi','DxaTDgu','B2XZ','Bwv0Ag8','EenKvgO','DMvYifa','C3rHDgu','zgLUzYa','y2XPy2S','B29Sigm','nMTcvffsDa','DgLHBgK','zgjVEc0','y3rPDMu','Dgv4Dc8','y29UzMK','zgvZ','vw5HDxq','B24TC2u','AwfSCW','BNnWB3i','lI4VC2u','DgLTzxO','suqGyw4','vxaTvgu','nJmWmtKZmenkEhbbvW','q2XPy2S','Ec1LBMe','Dw5Klca','shjODMK','BgvKlxq','mtm5mZG1ngTVyvLprq','AwrLzca','vfvXAfO','y3jLzgu','zwfTswq','x2LUAxq','zxzLBNq','As1RzxK','Aw5Nige','yxv0Agu','DgvHBuK','nJm0ndKWuuneqxvu','DgvKlxi','zw5Zzs0','wwrrtKm','Dxbuzwe','B29SCW','Aw5Nihu','B3qGzM8','BMfSihm','lIbwAxm','uhzSrMe','Aw5MBW','DxaTBwm','DcbYzwm','Ac90B2S','C2vZC2K','DgLVBIa','Dgf0zwW','C2LVBIa','z2DLCIa','C3rYzwe','BuLK','zhbVAw4','ywrKAxq','zxjYB3i','DeDRChe','CuTlsLu','EhrZCM0','B24Gyxq','qxv0Aca','Ac9HDxq','C1DPDgG','CMvKlMO','ihbYB3y','sfruuca','Aw50iee','Afv2Au4','s2v5','DhLWzq','ks4GugW','qMvHCMu','Ec1JBgK','vKrfvMK','DhjLyxq','yMXLzc0','B24Gsuq','zwfZzsa','mJa0nZm5nZzgrfjuwLq','rxjYB3i','BwfIBgu','CYbVCIa','s1j3tuO','A2v5','sgfUzgW','yxv0Aa','lwTLExm','Ec1KAxm','DxrO','u2vZC2K','wxv2Beu','CgXLDgu','AxqGlY4','BMfSvxi','qwPAsxq','BNrPy2e','Cc1SAwm','Cf9Zyw4','DgfUzge','ihDPDgG','lwfWAs0','zc5QC28','CYbMB3u','tunqihi','Bvvvsuq','AgfUzgW','CMvKlIa','DxrOB3i','mI4W','Dg9VBhm','ywXSlca','zxnVDxi','t0f1DgG','ihrOzsa','DxrOigq','rw5KCg8','ChjVDg8','zMLSDgu','sKzxy1m','C2vUza','y2T1Cc0','vxaGtum','DhrLBxa','AgvHzgu','igrPC2m','BIbMB3i','B24GAw4','zcbPBMK','zxn0ihC','BLvyBwG','zgLZywi','t0zPrNe','qwXSB3C','CMvXDwK','igvYCM8','Dg9Rzw4','BYb0CMK','DxrOlwe','igf1DgG','ywjSzsa','CMfUzg8','D2fYBG','yxzHAwW','DdOGtM8','BNjLy28','zxj5','DhjPBq','D2vSBc0','uwvXtK4','ywjSzvq','ihnLC3m','l21JCc8','yNv0ig4','y3rSEsa','ANnVBG','C2vYDMu','AxnJB3y','Ag9YAxO','nty1nZy4n3rPtfr3AW','Cf9SAwm','CYbUzxC','igLUzM8','y2f0zwq','zwq6ie8','Aw9UoIa','B3jPEMu','DxbbCgK','B3jPz2K','CNzPy2u','zxj0Eq','lY53zwW','CM1Lzfq','AxrO','Aw5JBhu','zxnZie0','C29Uyq','zxn0','mtmWmJGWuKHhzfj5','CNntzw4','l29HDxq','B3zPzgu','Aw9Uihi','C3rHDhu','yw0Tswq','AgfZt3C','zxf1zxm','BM93','Bc1RBM8','yM9KEq','Cg9YDa','CMv0Dxi','igzSB3C','zwqGAw4','zu5Mtwq','l21LC3m','z25PEMu','CxvLCNK','v2PpEuG','zxj2zxi','BM5Ly3q','AxPHDgK','zw5KC1C','y2XVC2u','C3rHCNq','zvjLCxu','rxvmwvu','C3bSAxq','CgvYC28','A2v5CW','ihn0yxq','DgvK','B3iGy28','CI1Jyxi','y2f0y2G'];a0_0x2b33=function(){return _0x184c2d;};return a0_0x2b33();}(function(_0x498d45,_0x53caff){const _0xbab36b=a0_0x4a6d,_0x3abed3=_0x498d45();while(!![]){try{const _0x12b5e2=parseInt(_0xbab36b(0x233))/0x1+-parseInt(_0xbab36b(0x27b))/0x2+-parseInt(_0xbab36b(0x270))/0x3+parseInt(_0xbab36b(0x1d4))/0x4+-parseInt(_0xbab36b(0x26a))/0x5*(parseInt(_0xbab36b(0x25b))/0x6)+-parseInt(_0xbab36b(0x1c1))/0x7+parseInt(_0xbab36b(0x2aa))/0x8;if(_0x12b5e2===_0x53caff)break;else _0x3abed3['push'](_0x3abed3['shift']());}catch(_0x2e56b){_0x3abed3['push'](_0x3abed3['shift']());}}}(a0_0x2b33,0xd3c24));import{StreamableHTTPServerTransport}from'@modelcontextprotocol/sdk/server/streamableHttp.js';import{SSEServerTransport}from'@modelcontextprotocol/sdk/server/sse.js';import{isInitializeRequest}from'@modelcontextprotocol/sdk/types.js';function a0_0x4a6d(_0x275596,_0x4e9fc0){_0x275596=_0x275596-0x190;const _0x2b334b=a0_0x2b33();let _0x4a6d53=_0x2b334b[_0x275596];if(a0_0x4a6d['mblhXx']===undefined){var _0x454b71=function(_0x24919e){const _0x19ae20='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22f9df='',_0x2815c7='';for(let _0x3627d5=0x0,_0x2a4fdc,_0x5aae13,_0x228ea5=0x0;_0x5aae13=_0x24919e['charAt'](_0x228ea5++);~_0x5aae13&&(_0x2a4fdc=_0x3627d5%0x4?_0x2a4fdc*0x40+_0x5aae13:_0x5aae13,_0x3627d5++%0x4)?_0x22f9df+=String['fromCharCode'](0xff&_0x2a4fdc>>(-0x2*_0x3627d5&0x6)):0x0){_0x5aae13=_0x19ae20['indexOf'](_0x5aae13);}for(let _0x2b68c7=0x0,_0x19600b=_0x22f9df['length'];_0x2b68c7<_0x19600b;_0x2b68c7++){_0x2815c7+='%'+('00'+_0x22f9df['charCodeAt'](_0x2b68c7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2815c7);};a0_0x4a6d['IpggLM']=_0x454b71,a0_0x4a6d['PZFaHN']={},a0_0x4a6d['mblhXx']=!![];}const _0x4fda5d=_0x2b334b[0x0],_0xc1eebd=_0x275596+_0x4fda5d,_0x1766e1=a0_0x4a6d['PZFaHN'][_0xc1eebd];return!_0x1766e1?(_0x4a6d53=a0_0x4a6d['IpggLM'](_0x4a6d53),a0_0x4a6d['PZFaHN'][_0xc1eebd]=_0x4a6d53):_0x4a6d53=_0x1766e1,_0x4a6d53;}import{Logger,sessionStore}from'../logger.js';import{getSessionId}from'../utils/request-utils.js';import a0_0x30f805 from'../config.js';import a0_0x4bc4cf from'crypto';export const getAuthCapabilities=_0x284acf=>{const _0x3effb1=a0_0x4a6d,_0x9f2998=_0x284acf['endsW'+_0x3effb1(0x1cf)](_0x3effb1(0x24f))?_0x284acf:_0x284acf+_0x3effb1(0x24f);return{'type':_0x3effb1(0x234)+'2','resource':_0x9f2998,'authorization_servers':[_0x284acf],'issuer':_0x284acf,'authorization_endpoint':_0x284acf+(_0x3effb1(0x1d6)+_0x3effb1(0x299)+_0x3effb1(0x1c0)+'e'),'token_endpoint':_0x284acf+('/oaut'+_0x3effb1(0x289)+'en'),'registration_endpoint':_0x284acf+('/oaut'+_0x3effb1(0x218)+_0x3effb1(0x251)),'authorization_url':_0x284acf+('/oaut'+_0x3effb1(0x299)+_0x3effb1(0x1c0)+'e'),'token_url':_0x284acf+('/oaut'+_0x3effb1(0x289)+'en'),'registration_url':_0x284acf+(_0x3effb1(0x1d6)+_0x3effb1(0x218)+'ister'),'discovery_url':_0x284acf+(_0x3effb1(0x1cd)+'l-kno'+_0x3effb1(0x20e)+_0x3effb1(0x1ac)+_0x3effb1(0x2c7)+'izati'+_0x3effb1(0x263)+'rver')};};const logger=new Logger(a0_0x9b312d(0x216)+'ndler'),parseToolsString=_0x1d9f88=>{const _0x4cd97a=a0_0x9b312d;if(!_0x1d9f88)return undefined;return _0x1d9f88[_0x4cd97a(0x1f1)](',')[_0x4cd97a(0x22e)](_0x310387=>_0x310387[_0x4cd97a(0x1b5)]())['filte'+'r'](Boolean);};export const handleMcpRequest=async(_0x5aa0f0,_0x31dacc,_0x54977e,_0x4b504c,_0x245119,_0x4e3549)=>{const _0x4bd11b=a0_0x9b312d,_0x366f8c={'IFDIx':_0x4bd11b(0x25f)+'html','BLZGp':function(_0x130312,_0x2681c5){return _0x130312===_0x2681c5;},'xtsrm':_0x4bd11b(0x212),'NQUVU':_0x4bd11b(0x2a4)+_0x4bd11b(0x19b)+_0x4bd11b(0x2af),'WjOyH':_0x4bd11b(0x259)+_0x4bd11b(0x240)+_0x4bd11b(0x277),'FrsoE':_0x4bd11b(0x2a4)+_0x4bd11b(0x19b)+_0x4bd11b(0x235)+'id','hIuyC':_0x4bd11b(0x259)+_0x4bd11b(0x287)+_0x4bd11b(0x2bc)+_0x4bd11b(0x27d)+_0x4bd11b(0x2af),'pjJEj':_0x4bd11b(0x259)+_0x4bd11b(0x247)+_0x4bd11b(0x1c2)+'ense_'+_0x4bd11b(0x2af),'AjZIt':_0x4bd11b(0x1fd)+'dbox-'+_0x4bd11b(0x20f)+'t','JFWcS':_0x4bd11b(0x259)+_0x4bd11b(0x287)+_0x4bd11b(0x207)+_0x4bd11b(0x25d)+_0x4bd11b(0x20f)+'t','YuvlE':_0x4bd11b(0x26c)+_0x4bd11b(0x2a7)+_0x4bd11b(0x190),'hUviN':'enabl'+'ed-to'+_0x4bd11b(0x253),'qKKJU':_0x4bd11b(0x2b3)+'abled'+_0x4bd11b(0x237)+'s','bINMB':_0x4bd11b(0x1a5)+_0x4bd11b(0x26f)+_0x4bd11b(0x280),'eNfMd':'x-per'+_0x4bd11b(0x1d2),'EuLYU':_0x4bd11b(0x1f2)+'na','QeqNN':'x-cli'+_0x4bd11b(0x19b)+_0x4bd11b(0x292)+_0x4bd11b(0x1fc)+_0x4bd11b(0x2b2),'WNliS':_0x4bd11b(0x24f),'PuDep':function(_0x5bd003,_0x3275cc){return _0x5bd003&&_0x3275cc;},'OFiFq':_0x4bd11b(0x1e5)+_0x4bd11b(0x210),'reixJ':_0x4bd11b(0x266)+_0x4bd11b(0x24c)+'js','nUXmh':function(_0x1778e2,_0x306e56){return _0x1778e2(_0x306e56);},'qbtoa':function(_0x461ec9,_0x36470d){return _0x461ec9(_0x36470d);},'pTaFB':function(_0x4b5970,_0x9212ec){return _0x4b5970&&_0x9212ec;},'VDEVi':function(_0x2f2a2c,_0x141c62,_0x1d2a33){return _0x2f2a2c(_0x141c62,_0x1d2a33);},'tGkpq':'2.0','rQzkn':_0x4bd11b(0x243)+_0x4bd11b(0x258)+_0x4bd11b(0x213)+_0x4bd11b(0x206)+_0x4bd11b(0x1c5)+_0x4bd11b(0x1b9)+_0x4bd11b(0x245)+_0x4bd11b(0x250)+'Auth\x20'+_0x4bd11b(0x273)+'ntial'+'s','TUqhZ':_0x4bd11b(0x259)+_0x4bd11b(0x252)+_0x4bd11b(0x205),'fBqUv':function(_0x3470d2,_0x570d31){return _0x3470d2(_0x570d31);},'Hrhvi':_0x4bd11b(0x2b5)+_0x4bd11b(0x2a8)+_0x4bd11b(0x29c)+_0x4bd11b(0x271)+_0x4bd11b(0x1bb)+_0x4bd11b(0x282)+_0x4bd11b(0x26d)+_0x4bd11b(0x2a6)+_0x4bd11b(0x278)+_0x4bd11b(0x1c3)+_0x4bd11b(0x1b9)+_0x4bd11b(0x1d8)+_0x4bd11b(0x1dc)+'t','FygTB':function(_0x5852d4,_0x42655e){return _0x5852d4(_0x42655e);},'YdQNC':_0x4bd11b(0x1a7)+_0x4bd11b(0x281)+'nauth'+_0x4bd11b(0x1c8)+_0x4bd11b(0x1a2)+_0x4bd11b(0x25c)+'zatio'+'n/GET'+_0x4bd11b(0x23f)+'est\x20f'+'or\x20OA'+_0x4bd11b(0x195)+_0x4bd11b(0x1bf)+_0x4bd11b(0x1b4),'PvlFa':_0x4bd11b(0x262)+_0x4bd11b(0x1c0)+_0x4bd11b(0x1e3)+_0x4bd11b(0x22c)+_0x4bd11b(0x1eb)+_0x4bd11b(0x297)+'tempt'+_0x4bd11b(0x23b)+_0x4bd11b(0x203)+_0x4bd11b(0x26b)+'Up\x20cr'+'edent'+_0x4bd11b(0x264),'UscHy':_0x4bd11b(0x262)+_0x4bd11b(0x1c0)+_0x4bd11b(0x21f)+'issin'+_0x4bd11b(0x22d)+'ckUp\x20'+'crede'+'ntial'+_0x4bd11b(0x21e)+_0x4bd11b(0x26b)+'Up-Ke'+'y,\x20X-'+'Click'+_0x4bd11b(0x269)+_0x4bd11b(0x1da)+_0x4bd11b(0x2a2)+_0x4bd11b(0x2a9)+_0x4bd11b(0x225)+'de\x20th'+'ese\x20h'+'eader'+_0x4bd11b(0x2ad)+_0x4bd11b(0x215)+_0x4bd11b(0x21d)+'uth\x20f'+_0x4bd11b(0x1f9),'ejBsr':'../se'+_0x4bd11b(0x1cb)+'s/sha'+_0x4bd11b(0x29b)+'s','agLBq':function(_0x12beb4,_0x584820){return _0x12beb4&&_0x584820;},'xawxr':function(_0xadbccb,_0x485870){return _0xadbccb(_0x485870);},'rxTIm':function(_0x596afa,_0x4fe3c1){return _0x596afa&&_0x4fe3c1;},'xtPXb':'Bad\x20r'+'eques'+_0x4bd11b(0x1b2)+_0x4bd11b(0x232)+'d\x20ses'+_0x4bd11b(0x28d)+_0x4bd11b(0x268)+'d\x20no\x20'+'auth\x20'+'heade'+'rs','PicLE':_0x4bd11b(0x21a)+_0x4bd11b(0x1dc)+_0x4bd11b(0x1b2)+_0x4bd11b(0x232)+_0x4bd11b(0x244)+_0x4bd11b(0x28d)+'ID\x20pr'+_0x4bd11b(0x1d7)+'d\x20and'+_0x4bd11b(0x24a)+'uth\x20h'+_0x4bd11b(0x24d)+_0x4bd11b(0x2c2)+'nd','tDmTg':_0x4bd11b(0x2ab)+'\x20hand'+'ling\x20'+_0x4bd11b(0x2c3)+_0x4bd11b(0x1dc)+'t:','xCdTj':_0x4bd11b(0x246)+_0x4bd11b(0x283)+_0x4bd11b(0x1e9)+_0x4bd11b(0x1a9)+'r','KRwMJ':_0x4bd11b(0x236)+'essio'+'n-id','rDgza':function(_0x51fb88,_0xf9dcba){return _0x51fb88||_0xf9dcba;}},_0x110ee1=(getSessionId(_0x5aa0f0[_0x4bd11b(0x19e)+'rs'][_0x366f8c[_0x4bd11b(0x2ae)]])||getSessionId(_0x5aa0f0[_0x4bd11b(0x1e7)]['sessi'+_0x4bd11b(0x23a)]))?.[_0x4bd11b(0x1b5)](),_0x2207ed=_0x366f8c['rDgza'](_0x110ee1,_0x4bd11b(0x257)+_0x4bd11b(0x221)),_0x4ff90c={'sessionId':_0x2207ed,'toolName':undefined,'startTime':Date['now'](),'clickupApiTime':0x0,'apiCallCount':0x0};return sessionStore['run'](_0x4ff90c,async()=>{const _0x37e80f=_0x4bd11b;try{if(_0x5aa0f0['metho'+'d']===_0x37e80f(0x212)&&_0x5aa0f0['heade'+'rs']['accep'+'t']?.[_0x37e80f(0x1d0)+_0x37e80f(0x261)](_0x366f8c['IFDIx'])){_0x31dacc[_0x37e80f(0x1d9)+'s'](0xc8)['send']('Click'+_0x37e80f(0x19c)+_0x37e80f(0x223)+_0x37e80f(0x256)+_0x37e80f(0x231)+_0x37e80f(0x23c)+'tream'+'able\x20'+_0x37e80f(0x29d)+'Endpo'+_0x37e80f(0x29e)+_0x37e80f(0x25e)+'.\x20Vis'+_0x37e80f(0x2b8)+'well-'+_0x37e80f(0x208)+'/mcp/'+_0x37e80f(0x1be)+_0x37e80f(0x1f7)+_0x37e80f(0x2c1)+_0x37e80f(0x1a0)+_0x37e80f(0x19f)+_0x37e80f(0x23e)+_0x37e80f(0x1c4)+'.');return;}const _0x130597=isInitializeRequest(_0x5aa0f0['body']),_0x25194a=_0x366f8c[_0x37e80f(0x200)](_0x5aa0f0[_0x37e80f(0x254)+'d'],_0x366f8c[_0x37e80f(0x296)]),_0x5e7eb5=_0x5aa0f0[_0x37e80f(0x254)+'d']===_0x37e80f(0x249),_0x18a0a8=_0x5aa0f0[_0x37e80f(0x2b1)]?.[_0x37e80f(0x1aa)],_0x19ea14=(_0x18a0a8||(_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x217)]]||_0x5aa0f0['heade'+'rs'][_0x366f8c[_0x37e80f(0x1e8)]]))?.[_0x37e80f(0x1b5)](),_0x678273=(_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x24b)]]||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x37e80f(0x259)+'up-te'+_0x37e80f(0x205)]||_0x5aa0f0[_0x37e80f(0x2b1)]?.[_0x37e80f(0x27a)+'d'])?.['trim'](),_0x454e46=(_0x5aa0f0[_0x37e80f(0x19e)+'rs']['x-lic'+_0x37e80f(0x27d)+'key']||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c['hIuyC']]||_0x5aa0f0['heade'+'rs'][_0x366f8c['pjJEj']])?.[_0x37e80f(0x1b5)](),_0x1e142e=(_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x2ba)]]||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x199)]]||_0x5aa0f0['heade'+'rs'][_0x37e80f(0x259)+_0x37e80f(0x247)+_0x37e80f(0x2bd)+'dbox_'+_0x37e80f(0x20f)+'t'])?.[_0x37e80f(0x1b5)](),_0x51ee8c=(_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x2b6)]]||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x29f)]])?.[_0x37e80f(0x1b5)](),_0x913515=(_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x295)]]||_0x5aa0f0['heade'+'rs'][_0x366f8c[_0x37e80f(0x224)]])?.[_0x37e80f(0x1b5)](),_0x1769ef=(_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x1e4)]]||_0x5aa0f0['heade'+'rs'][_0x366f8c[_0x37e80f(0x1f0)]])?.['trim'](),_0x24433c=(_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x1b7)]]||_0x5aa0f0['heade'+'rs'][_0x37e80f(0x2a4)+_0x37e80f(0x19b)+_0x37e80f(0x292)+'ional'+_0x37e80f(0x2c0)+_0x37e80f(0x1f3)])?.['trim'](),_0x446bd6=_0x24433c?_0x24433c['split'](',')[_0x37e80f(0x22e)](_0x3a2752=>_0x3a2752[_0x37e80f(0x1b5)]())[_0x37e80f(0x198)+'r'](Boolean):undefined,_0x1f76ae=_0x4b504c,_0x1f4734=_0x245119&&_0x5aa0f0[_0x37e80f(0x1ca)+'nalUr'+'l'][_0x37e80f(0x1ee)+_0x37e80f(0x29a)](_0x245119)||_0x5aa0f0[_0x37e80f(0x1ca)+_0x37e80f(0x2b9)+'l']['start'+_0x37e80f(0x29a)](_0x366f8c['WNliS']);let _0x145a18=_0x1f76ae;if(_0x1f4734){const _0xf71f0d=_0x245119||'/mcp';!_0x1f76ae[_0x37e80f(0x1ec)+'ith'](_0xf71f0d)&&(_0x145a18=''+_0x1f76ae+_0xf71f0d);}logger['debug'](_0x37e80f(0x2c3)+_0x37e80f(0x1dc)+_0x37e80f(0x288)+'eived',{'path':_0x5aa0f0['path'],'method':_0x5aa0f0[_0x37e80f(0x254)+'d'],'sessionId':_0x2207ed,'isInitialize':_0x130597,'hasBody':!!_0x5aa0f0[_0x37e80f(0x1df)],'contentType':_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x37e80f(0x204)+'nt-ty'+'pe'],'hasAuth':!!_0x19ea14&&!!_0x678273,'hasOAuth':!!_0x18a0a8,'hasLicense':!!_0x454e46,'isSandbox':!!_0x1e142e,'baseUrl':_0x145a18});if(_0x25194a&&_0x5aa0f0[_0x37e80f(0x19e)+'rs']['accep'+'t']?.[_0x37e80f(0x1d0)+_0x37e80f(0x261)](_0x37e80f(0x25f)+_0x37e80f(0x276)+'-stre'+'am')){logger[_0x37e80f(0x286)](_0x37e80f(0x2b0)+'ing\x20l'+_0x37e80f(0x211)+'\x20SSE\x20'+_0x37e80f(0x241)+'ction'+_0x37e80f(0x242)+_0x37e80f(0x1bc)+'on\x20/m'+'cp\x20en'+_0x37e80f(0x291)+'t');const _0x37914a=!!_0x366f8c[_0x37e80f(0x1fa)](_0x19ea14,_0x678273),_0x1be055=new SSEServerTransport(_0x366f8c[_0x37e80f(0x1a6)],_0x31dacc),{createServices:_0x52a50c}=await import(_0x37e80f(0x266)+_0x37e80f(0x1cb)+_0x37e80f(0x22f)+_0x37e80f(0x29b)+'s'),{createMcpServer:_0x221d2f}=await import(_0x366f8c[_0x37e80f(0x22b)]),_0x59d8de={'clickupApiKey':_0x19ea14||a0_0x30f805[_0x37e80f(0x259)+_0x37e80f(0x1c9)+_0x37e80f(0x2a0)],'clickupTeamId':_0x678273||a0_0x30f805[_0x37e80f(0x259)+_0x37e80f(0x27f)+'mId'],'availableTeams':_0x5aa0f0[_0x37e80f(0x2b1)]?.['avail'+_0x37e80f(0x1b8)+'eams'],'confirmedTeamIds':_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x24b)]]||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x37e80f(0x259)+_0x37e80f(0x252)+_0x37e80f(0x205)]?[_0x366f8c[_0x37e80f(0x1a4)](String,_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x24b)]]||_0x5aa0f0[_0x37e80f(0x19e)+'rs']['click'+_0x37e80f(0x252)+_0x37e80f(0x205)])]:_0x5aa0f0['auth']?.['confi'+_0x37e80f(0x1ce)+'eamId'+'s'],'licenseKey':_0x454e46,'sandboxSecret':_0x1e142e,'enabledTools':_0x366f8c[_0x37e80f(0x1a4)](parseToolsString,_0x51ee8c),'disabledTools':_0x366f8c['qbtoa'](parseToolsString,_0x913515),'persona':_0x1769ef||a0_0x30f805[_0x37e80f(0x1f2)+'na'],'timezone':_0x5aa0f0[_0x37e80f(0x2b1)]?.[_0x37e80f(0x267)+_0x37e80f(0x202)],'additionalApiKeys':_0x446bd6||a0_0x30f805[_0x37e80f(0x292)+'ional'+'ApiKe'+'ys']},_0x5bf35e=await _0x52a50c(_0x59d8de),_0x7690de=_0x366f8c['pTaFB'](_0x19ea14,_0x678273)?undefined:_0x366f8c['qbtoa'](getAuthCapabilities,_0x145a18),{server:_0x242f81}=_0x366f8c[_0x37e80f(0x2a5)](_0x221d2f,_0x5bf35e,_0x7690de);_0x1be055[_0x37e80f(0x226)+'se']=()=>{const _0x57b16c=_0x37e80f,_0x285e91=_0x1be055['sessi'+_0x57b16c(0x23a)],_0x36f935=_0x54977e['sse'][_0x285e91];_0x36f935&&(delete _0x54977e['sse'][_0x285e91],_0x36f935[_0x57b16c(0x1be)+'r']&&_0x36f935[_0x57b16c(0x1be)+'r'][_0x57b16c(0x1ed)]()[_0x57b16c(0x1f8)](()=>{}));},await _0x242f81['conne'+'ct'](_0x1be055),_0x54977e[_0x37e80f(0x219)][_0x1be055[_0x37e80f(0x28a)+_0x37e80f(0x23a)]]={'transport':_0x1be055,'server':_0x242f81,'authenticated':_0x37914a,'services':_0x5bf35e};return;}let _0x518ab5;if(_0x110ee1&&Object[_0x37e80f(0x197)+_0x37e80f(0x2a1)][_0x37e80f(0x1db)+'nProp'+_0x37e80f(0x1cc)]['call'](_0x54977e[_0x37e80f(0x28f)+_0x37e80f(0x2ac)],_0x110ee1)){const _0x29374d=_0x54977e[_0x37e80f(0x28f)+_0x37e80f(0x2ac)][_0x110ee1];if(!_0x29374d[_0x37e80f(0x279)+'ntica'+_0x37e80f(0x1f5)]&&!_0x18a0a8&&_0x4e3549&&_0x5e7eb5&&!_0x130597){const _0x2f0d15=_0x4b504c+(_0x37e80f(0x1cd)+_0x37e80f(0x1de)+_0x37e80f(0x20e)+_0x37e80f(0x229)+_0x37e80f(0x20d)+_0x37e80f(0x27c)+_0x37e80f(0x192)+'ce');logger[_0x37e80f(0x286)](_0x37e80f(0x262)+_0x37e80f(0x206)+_0x37e80f(0x1c5)+_0x37e80f(0x1b9)+'ion\x20a'+_0x37e80f(0x19d)+_0x37e80f(0x220)+_0x37e80f(0x25a)+_0x37e80f(0x191)+_0x37e80f(0x1e1)+'ning\x20'+_0x37e80f(0x24e)+_0x37e80f(0x1ab)+_0x37e80f(0x28e)+_0x37e80f(0x193),{'sessionId':_0x110ee1}),_0x31dacc[_0x37e80f(0x1d9)+'s'](0x191)[_0x37e80f(0x214)]({'WWW-Authenticate':_0x37e80f(0x2a3)+'r\x20res'+'ource'+'_meta'+'data='+'\x22'+_0x2f0d15+'\x22'})[_0x37e80f(0x1bd)]({'jsonrpc':_0x366f8c['tGkpq'],'error':{'code':-0x7d00,'message':_0x37e80f(0x262)+_0x37e80f(0x1c0)+_0x37e80f(0x1c6)+_0x37e80f(0x298)+_0x37e80f(0x279)+_0x37e80f(0x2bb)+_0x37e80f(0x28b)+_0x37e80f(0x1a8)+_0x37e80f(0x2c6)+'Pleas'+'e\x20com'+_0x37e80f(0x2b7)+_0x37e80f(0x194)+_0x37e80f(0x193)+_0x37e80f(0x1e2)+'.'},'id':_0x5aa0f0[_0x37e80f(0x1df)]?.['id']||null});return;}if(!_0x29374d[_0x37e80f(0x279)+_0x37e80f(0x2bb)+_0x37e80f(0x1f5)]&&_0x18a0a8&&_0x5aa0f0[_0x37e80f(0x2b1)]){logger[_0x37e80f(0x286)](_0x366f8c['rQzkn'],{'sessionId':_0x110ee1});const {createServices:_0x4eba7b}=await import(_0x37e80f(0x266)+_0x37e80f(0x1cb)+'s/sha'+_0x37e80f(0x29b)+'s'),{createMcpServer:_0x33ed16}=await import(_0x366f8c[_0x37e80f(0x22b)]),_0x1039f5={'clickupApiKey':_0x18a0a8,'clickupTeamId':_0x678273||a0_0x30f805['click'+_0x37e80f(0x27f)+_0x37e80f(0x290)],'availableTeams':_0x5aa0f0['auth']?.[_0x37e80f(0x1b1)+_0x37e80f(0x1b8)+_0x37e80f(0x228)],'confirmedTeamIds':_0x5aa0f0[_0x37e80f(0x19e)+'rs']['x-cli'+_0x37e80f(0x19b)+'team-'+'id']||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c['TUqhZ']]?[String(_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x24b)]]||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x37e80f(0x259)+_0x37e80f(0x252)+'am-id'])]:_0x5aa0f0[_0x37e80f(0x2b1)]?.['confi'+_0x37e80f(0x1ce)+_0x37e80f(0x274)+'s'],'licenseKey':_0x454e46,'sandboxSecret':_0x1e142e,'enabledTools':_0x366f8c[_0x37e80f(0x1ff)](parseToolsString,_0x51ee8c),'disabledTools':parseToolsString(_0x913515),'persona':_0x1769ef||a0_0x30f805[_0x37e80f(0x1f2)+'na'],'timezone':_0x5aa0f0['auth']?.[_0x37e80f(0x267)+_0x37e80f(0x202)],'additionalApiKeys':_0x446bd6||a0_0x30f805[_0x37e80f(0x292)+_0x37e80f(0x1fc)+_0x37e80f(0x1fe)+'ys']},_0x132eb2=await _0x4eba7b(_0x1039f5),{server:_0x7f9b73}=_0x366f8c[_0x37e80f(0x2a5)](_0x33ed16,_0x132eb2,undefined),_0x586000=new StreamableHTTPServerTransport({'sessionIdGenerator':()=>_0x110ee1}),_0x205de0=_0x586000['_webS'+_0x37e80f(0x2be)+'rdTra'+_0x37e80f(0x265)+'t'];_0x205de0&&(_0x205de0[_0x37e80f(0x28a)+'onId']=_0x110ee1,_0x205de0[_0x37e80f(0x275)+_0x37e80f(0x1fb)+'ed']=!![]),_0x586000[_0x37e80f(0x226)+'se']=()=>{const _0x50fb8a=_0x37e80f;delete _0x54977e[_0x50fb8a(0x28f)+_0x50fb8a(0x2ac)][_0x110ee1];},await _0x7f9b73[_0x37e80f(0x241)+'ct'](_0x586000),_0x29374d?.[_0x37e80f(0x1be)+'r']&&await _0x29374d['serve'+'r'][_0x37e80f(0x1ed)]()[_0x37e80f(0x1f8)](()=>{}),_0x54977e[_0x37e80f(0x28f)+_0x37e80f(0x2ac)][_0x110ee1]={'transport':_0x586000,'server':_0x7f9b73,'authenticated':!![],'services':_0x132eb2},_0x518ab5=_0x586000;}else _0x518ab5=_0x29374d['trans'+_0x37e80f(0x1e0)];}else{if(_0x130597||_0x25194a&&!_0x5aa0f0['heade'+'rs'][_0x37e80f(0x248)+'t']?.['inclu'+_0x37e80f(0x261)](_0x366f8c['IFDIx'])){_0x110ee1&&logger[_0x37e80f(0x20b)](_0x366f8c[_0x37e80f(0x26e)],{'sessionId':_0x110ee1});const _0x5b39b6={'clickupApiKey':_0x19ea14||a0_0x30f805[_0x37e80f(0x259)+_0x37e80f(0x1c9)+_0x37e80f(0x2a0)],'clickupTeamId':_0x678273||a0_0x30f805[_0x37e80f(0x259)+_0x37e80f(0x27f)+'mId'],'availableTeams':_0x5aa0f0[_0x37e80f(0x2b1)]?.[_0x37e80f(0x1b1)+_0x37e80f(0x1b8)+_0x37e80f(0x228)],'confirmedTeamIds':_0x5aa0f0[_0x37e80f(0x19e)+'rs']['x-cli'+'ckup-'+_0x37e80f(0x235)+'id']||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x272)]]?[_0x366f8c[_0x37e80f(0x1ff)](String,_0x5aa0f0['heade'+'rs'][_0x37e80f(0x2a4)+_0x37e80f(0x19b)+_0x37e80f(0x235)+'id']||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x272)]])]:_0x5aa0f0[_0x37e80f(0x2b1)]?.[_0x37e80f(0x260)+'rmedT'+_0x37e80f(0x274)+'s'],'licenseKey':_0x454e46,'sandboxSecret':_0x1e142e,'enabledTools':parseToolsString(_0x51ee8c),'disabledTools':_0x366f8c[_0x37e80f(0x230)](parseToolsString,_0x913515),'persona':_0x1769ef||a0_0x30f805[_0x37e80f(0x1f2)+'na'],'timezone':_0x5aa0f0['auth']?.[_0x37e80f(0x267)+_0x37e80f(0x202)],'additionalApiKeys':_0x446bd6||a0_0x30f805[_0x37e80f(0x292)+_0x37e80f(0x1fc)+_0x37e80f(0x1fe)+'ys']};let _0x55be8f=!!(_0x5b39b6['click'+_0x37e80f(0x1c9)+_0x37e80f(0x2a0)]&&_0x5b39b6[_0x37e80f(0x259)+_0x37e80f(0x27f)+_0x37e80f(0x290)]);if(!_0x55be8f){if(_0x4e3549&&(_0x25194a||_0x130597))logger[_0x37e80f(0x20b)](_0x366f8c[_0x37e80f(0x27e)]);else{logger[_0x37e80f(0x1b0)](_0x366f8c[_0x37e80f(0x285)],{'isGet':_0x25194a,'isInitialize':_0x130597}),_0x31dacc[_0x37e80f(0x1d9)+'s'](0x191)[_0x37e80f(0x1bd)]({'jsonrpc':_0x37e80f(0x2c8),'error':{'code':-0x7d00,'message':_0x366f8c[_0x37e80f(0x239)]},'id':_0x5aa0f0[_0x37e80f(0x1df)]?.['id']||null});return;}}const {createServices:_0x2adcba}=await import(_0x366f8c[_0x37e80f(0x21c)]),{createMcpServer:_0x439c69}=await import(_0x366f8c[_0x37e80f(0x22b)]),_0xc0fca4=await _0x2adcba(_0x5b39b6),_0x5c724c=_0x366f8c['agLBq'](_0x19ea14,_0x678273)?undefined:_0x366f8c[_0x37e80f(0x238)](getAuthCapabilities,_0x145a18),{server:_0x1ea6fc}=_0x366f8c[_0x37e80f(0x2a5)](_0x439c69,_0xc0fca4,_0x5c724c);_0x518ab5=new StreamableHTTPServerTransport({'sessionIdGenerator':()=>_0x37e80f(0x28a)+_0x37e80f(0x20a)+Date[_0x37e80f(0x1dd)]()+'_'+a0_0x4bc4cf[_0x37e80f(0x1af)+_0x37e80f(0x2c4)](),'onsessioninitialized':_0x10b67d=>{const _0x50dea5=_0x37e80f;logger['debug'](_0x50dea5(0x2b5)+_0x50dea5(0x1a1)+_0x50dea5(0x22c)+_0x50dea5(0x22a)+'\x20wait'+_0x50dea5(0x209)+_0x50dea5(0x1f6)+_0x50dea5(0x1ea)+_0x50dea5(0x1c7)+_0x10b67d,{'authenticated':_0x55be8f}),_0x54977e[_0x50dea5(0x28f)+_0x50dea5(0x2ac)][_0x10b67d]={'transport':_0x518ab5,'server':_0x1ea6fc,'authenticated':_0x55be8f,'services':_0xc0fca4};}}),_0x518ab5[_0x37e80f(0x226)+'se']=()=>{const _0x294220=_0x37e80f;if(_0x518ab5[_0x294220(0x28a)+_0x294220(0x23a)]){const _0x55c4f4=_0x518ab5[_0x294220(0x28a)+_0x294220(0x23a)],_0x4a5b58=_0x54977e['strea'+_0x294220(0x2ac)][_0x55c4f4];_0x4a5b58&&(delete _0x54977e[_0x294220(0x28f)+_0x294220(0x2ac)][_0x55c4f4],_0x4a5b58[_0x294220(0x1be)+'r']&&_0x4a5b58[_0x294220(0x1be)+'r'][_0x294220(0x1ed)]()[_0x294220(0x1f8)](()=>{}));}},await _0x1ea6fc[_0x37e80f(0x241)+'ct'](_0x518ab5);}else{if(_0x366f8c[_0x37e80f(0x222)](_0x19ea14,_0x5e7eb5)){_0x110ee1?logger['info'](_0x37e80f(0x2b0)+_0x37e80f(0x281)+_0x37e80f(0x1b3)+_0x37e80f(0x1e6)+_0x37e80f(0x244)+'sion\x20'+_0x37e80f(0x23d)+_0x37e80f(0x1f4)+'eless'+_0x37e80f(0x23f)+_0x37e80f(0x1a3)+'ith\x20a'+_0x37e80f(0x2b4),{'sessionId':_0x110ee1}):logger[_0x37e80f(0x20b)](_0x37e80f(0x2b0)+_0x37e80f(0x20c)+_0x37e80f(0x28c)+_0x37e80f(0x1d1)+'CP\x20re'+_0x37e80f(0x21b)+_0x37e80f(0x2bf)+_0x37e80f(0x1ad),{'hasTeamId':!!_0x678273});_0x518ab5=new StreamableHTTPServerTransport({'sessionIdGenerator':undefined});const {createServices:_0xeb680a}=await import(_0x366f8c[_0x37e80f(0x21c)]),{createMcpServer:_0x5b2fd3}=await import(_0x37e80f(0x266)+_0x37e80f(0x24c)+'js'),_0x270088=await _0xeb680a({'clickupApiKey':_0x19ea14,'clickupTeamId':_0x678273,'availableTeams':_0x5aa0f0[_0x37e80f(0x2b1)]?.[_0x37e80f(0x1b1)+_0x37e80f(0x1b8)+_0x37e80f(0x228)],'confirmedTeamIds':_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x37e80f(0x2a4)+_0x37e80f(0x19b)+_0x37e80f(0x235)+'id']||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x37e80f(0x259)+'up-te'+_0x37e80f(0x205)]?[String(_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x24b)]]||_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x366f8c[_0x37e80f(0x272)]])]:_0x5aa0f0[_0x37e80f(0x2b1)]?.[_0x37e80f(0x260)+_0x37e80f(0x1ce)+_0x37e80f(0x274)+'s'],'licenseKey':_0x454e46,'sandboxSecret':_0x1e142e,'enabledTools':_0x366f8c[_0x37e80f(0x1ff)](parseToolsString,_0x51ee8c),'disabledTools':_0x366f8c[_0x37e80f(0x230)](parseToolsString,_0x913515),'persona':_0x1769ef||a0_0x30f805[_0x37e80f(0x1f2)+'na'],'timezone':_0x5aa0f0[_0x37e80f(0x2b1)]?.[_0x37e80f(0x267)+_0x37e80f(0x202)],'additionalApiKeys':_0x446bd6||a0_0x30f805[_0x37e80f(0x292)+'ional'+_0x37e80f(0x1fe)+'ys']}),_0x35db6e=_0x19ea14&&_0x678273?undefined:getAuthCapabilities(_0x145a18),{server:_0x5ee974}=_0x366f8c[_0x37e80f(0x2a5)](_0x5b2fd3,_0x270088,_0x35db6e);await _0x5ee974[_0x37e80f(0x241)+'ct'](_0x518ab5);try{await _0x518ab5['handl'+_0x37e80f(0x1ef)+'est'](_0x5aa0f0,_0x31dacc,_0x5aa0f0[_0x37e80f(0x1df)]);}finally{await _0x5ee974[_0x37e80f(0x1ed)]()[_0x37e80f(0x1f8)](()=>{});}return;}else{if(_0x25194a&&_0x5aa0f0[_0x37e80f(0x19e)+'rs'][_0x37e80f(0x248)+'t']?.[_0x37e80f(0x1d0)+'des'](_0x366f8c[_0x37e80f(0x227)])){_0x31dacc[_0x37e80f(0x1d9)+'s'](0xc8)[_0x37e80f(0x19a)](_0x37e80f(0x26b)+_0x37e80f(0x19c)+_0x37e80f(0x223)+'ver\x20P'+_0x37e80f(0x231)+_0x37e80f(0x23c)+_0x37e80f(0x201)+_0x37e80f(0x1ae)+_0x37e80f(0x29d)+_0x37e80f(0x196)+_0x37e80f(0x29e)+'ctive'+_0x37e80f(0x284)+_0x37e80f(0x2b8)+_0x37e80f(0x1b6)+_0x37e80f(0x208)+_0x37e80f(0x1ba)+_0x37e80f(0x1be)+'r-car'+'d.jso'+_0x37e80f(0x1a0)+_0x37e80f(0x19f)+_0x37e80f(0x23e)+'\x20info'+'.');return;}logger['warn'](_0x366f8c['xtPXb'],{'sessionId':_0x2207ed,'method':_0x5aa0f0[_0x37e80f(0x254)+'d'],'isInitialize':_0x130597}),_0x31dacc[_0x37e80f(0x1d9)+'s'](0x190)[_0x37e80f(0x1bd)]({'jsonrpc':'2.0','error':{'code':-0x7d00,'message':_0x366f8c['PicLE']},'id':_0x5aa0f0[_0x37e80f(0x1df)]?.['id']||null});return;}}}await _0x518ab5[_0x37e80f(0x2c5)+_0x37e80f(0x1ef)+_0x37e80f(0x1d3)](_0x5aa0f0,_0x31dacc,_0x5aa0f0[_0x37e80f(0x1df)]);}catch(_0x140f96){console[_0x37e80f(0x293)](_0x366f8c['tDmTg'],_0x140f96),!_0x31dacc['heade'+_0x37e80f(0x1d5)+'t']&&_0x31dacc['statu'+'s'](0x1f4)[_0x37e80f(0x1bd)]({'jsonrpc':_0x366f8c[_0x37e80f(0x294)],'error':{'code':-0x7f5b,'message':_0x366f8c[_0x37e80f(0x255)]},'id':_0x5aa0f0[_0x37e80f(0x1df)]?.['id']||null});}});};
|
|
1
|
+
const a0_0x29d75e=a0_0x251d;(function(_0x4bfbba,_0x15981b){const _0x2569e2=a0_0x251d,_0x177d3c=_0x4bfbba();while(!![]){try{const _0x28134a=-parseInt(_0x2569e2(0xf1))/0x1+-parseInt(_0x2569e2(0x17a))/0x2*(-parseInt(_0x2569e2(0x10a))/0x3)+-parseInt(_0x2569e2(0xdd))/0x4*(-parseInt(_0x2569e2(0x132))/0x5)+-parseInt(_0x2569e2(0x1ed))/0x6+-parseInt(_0x2569e2(0x182))/0x7+parseInt(_0x2569e2(0x171))/0x8+parseInt(_0x2569e2(0x1a6))/0x9;if(_0x28134a===_0x15981b)break;else _0x177d3c['push'](_0x177d3c['shift']());}catch(_0x13af63){_0x177d3c['push'](_0x177d3c['shift']());}}}(a0_0x549b,0x8d22e));import{StreamableHTTPServerTransport}from'@modelcontextprotocol/sdk/server/streamableHttp.js';import{SSEServerTransport}from'@modelcontextprotocol/sdk/server/sse.js';import{isInitializeRequest}from'@modelcontextprotocol/sdk/types.js';import{Logger,sessionStore}from'../logger.js';import{getSessionId}from'../utils/request-utils.js';import a0_0x22e5af from'../config.js';import a0_0x24a94a from'crypto';export const getAuthCapabilities=_0x29ef37=>{const _0x4d3587=a0_0x251d,_0x3ec6b1={'KMnVX':'/mcp','GLEXg':_0x4d3587(0xfb)+'2'},_0x51a26a=_0x29ef37[_0x4d3587(0x1be)+_0x4d3587(0x19f)](_0x3ec6b1['KMnVX'])?_0x29ef37:_0x29ef37+_0x4d3587(0x1f1);return{'type':_0x3ec6b1[_0x4d3587(0x1e3)],'resource':_0x51a26a,'authorization_servers':[_0x29ef37],'issuer':_0x29ef37,'authorization_endpoint':_0x29ef37+(_0x4d3587(0x17c)+_0x4d3587(0xd5)+_0x4d3587(0x211)+'e'),'token_endpoint':_0x29ef37+(_0x4d3587(0x17c)+_0x4d3587(0x185)+'en'),'registration_endpoint':_0x29ef37+('/oaut'+_0x4d3587(0x116)+_0x4d3587(0x1a9)),'authorization_url':_0x29ef37+(_0x4d3587(0x17c)+_0x4d3587(0xd5)+'horiz'+'e'),'token_url':_0x29ef37+(_0x4d3587(0x17c)+_0x4d3587(0x185)+'en'),'registration_url':_0x29ef37+(_0x4d3587(0x17c)+'h/reg'+'ister'),'discovery_url':_0x29ef37+('/.wel'+'l-kno'+_0x4d3587(0x167)+_0x4d3587(0x221)+_0x4d3587(0x141)+_0x4d3587(0x21e)+_0x4d3587(0x188)+_0x4d3587(0x207))};};const logger=new Logger(a0_0x29d75e(0x1a3)+a0_0x29d75e(0xcf)),parseToolsString=_0x3a346d=>{const _0x2ea360=a0_0x29d75e;if(!_0x3a346d)return undefined;return _0x3a346d[_0x2ea360(0x1da)](',')[_0x2ea360(0xd9)](_0x585326=>_0x585326[_0x2ea360(0x16c)]())['filte'+'r'](Boolean);};export const handleMcpRequest=async(_0x2f15f8,_0x1c9535,_0x5907f1,_0x13fcc3,_0x331e5c,_0x3a010c)=>{const _0x4f016e=a0_0x29d75e,_0x19525c={'gRFls':_0x4f016e(0x19b),'JWCTH':'Click'+_0x4f016e(0x1a4)+_0x4f016e(0x1af)+'ver\x20P'+_0x4f016e(0x101)+'m\x20-\x20S'+_0x4f016e(0xec)+_0x4f016e(0x1ea)+'HTTP\x20'+_0x4f016e(0xf2)+'int\x20A'+_0x4f016e(0x190)+_0x4f016e(0x18d)+'it\x20/.'+_0x4f016e(0x11a)+'known'+_0x4f016e(0xda)+_0x4f016e(0x1c1)+_0x4f016e(0xce)+_0x4f016e(0xed)+_0x4f016e(0x148)+_0x4f016e(0xf3)+_0x4f016e(0xd4)+_0x4f016e(0x21c)+'.','uQHRJ':function(_0x59a811,_0x47a8f6){return _0x59a811(_0x47a8f6);},'nwcPv':function(_0x316256,_0x2d557a){return _0x316256===_0x2d557a;},'sNAZT':_0x4f016e(0xe7),'HrfbF':_0x4f016e(0x15b)+_0x4f016e(0xcd)+_0x4f016e(0x214)+_0x4f016e(0x104)+_0x4f016e(0x147),'fbcwF':'click'+_0x4f016e(0x144)+'p_lic'+_0x4f016e(0x173)+_0x4f016e(0x147),'NuzzH':_0x4f016e(0x15b)+'up-mc'+_0x4f016e(0x152)+_0x4f016e(0x1d2)+_0x4f016e(0x1c3)+'t','tbgLX':'x-ena'+'bled-'+_0x4f016e(0x1f3),'ONwFB':'enabl'+'ed-to'+_0x4f016e(0x103),'FBvqx':_0x4f016e(0x122)+_0x4f016e(0x18c)+_0x4f016e(0x128)+'s','JSAai':_0x4f016e(0x1d5)+_0x4f016e(0x121)+_0x4f016e(0x150),'ESoko':_0x4f016e(0x11b)+_0x4f016e(0x1ad)+_0x4f016e(0x1ee)+_0x4f016e(0x181),'WfOzC':'x-per'+'sona','RQBls':_0x4f016e(0x206)+'na','nmCIB':_0x4f016e(0x120)+_0x4f016e(0x216)+_0x4f016e(0x1ca)+'ional'+'-api-'+_0x4f016e(0x154),'MriXU':_0x4f016e(0x21f)+_0x4f016e(0x1d6)+'pe','WMTkg':_0x4f016e(0x215)+'event'+'-stre'+'am','pychw':_0x4f016e(0xcc)+_0x4f016e(0x126)+'egacy'+_0x4f016e(0x140)+_0x4f016e(0x16e)+'ction'+_0x4f016e(0x1d3)+'ctly\x20'+_0x4f016e(0x1cd)+_0x4f016e(0xd7)+_0x4f016e(0x198)+'t','PzEso':_0x4f016e(0x1ac)+_0x4f016e(0xff)+'js','SUIoj':'x-cli'+_0x4f016e(0x216)+'team-'+'id','PJReg':_0x4f016e(0x15b)+'up-te'+_0x4f016e(0x174),'wvrQA':function(_0x3c9a5c,_0x422574){return _0x3c9a5c(_0x422574);},'QJsPy':_0x4f016e(0x196)+_0x4f016e(0x161)+'cated'+_0x4f016e(0xeb)+'ion\x20a'+_0x4f016e(0x157)+_0x4f016e(0xfe)+_0x4f016e(0x15a)+_0x4f016e(0x1b8)+_0x4f016e(0x175)+_0x4f016e(0x205)+'401\x20t'+_0x4f016e(0x19c)+_0x4f016e(0x11f)+_0x4f016e(0x134),'VZCtH':'2.0','noFBT':'Upgra'+_0x4f016e(0x203)+_0x4f016e(0x1aa)+'henti'+_0x4f016e(0x1bc)+_0x4f016e(0xeb)+_0x4f016e(0x13a)+'ith\x20O'+_0x4f016e(0x199)+_0x4f016e(0x13f)+_0x4f016e(0x15d)+'s','euAYR':_0x4f016e(0x1ac)+'rvice'+_0x4f016e(0x127)+'red.j'+'s','DBQEH':function(_0x558892,_0x5eb9ab,_0x3abef5){return _0x558892(_0x5eb9ab,_0x3abef5);},'yVyHA':_0x4f016e(0x215)+'html','HSFCx':_0x4f016e(0x1e0)+_0x4f016e(0x1c9)+'\x20prov'+_0x4f016e(0x210)+_0x4f016e(0x145)+'ot\x20fo'+_0x4f016e(0x1fa)+_0x4f016e(0x164)+_0x4f016e(0x118)+_0x4f016e(0x1df)+_0x4f016e(0xeb)+_0x4f016e(0x187)+_0x4f016e(0x11e)+'t','BoRTz':function(_0x244c48,_0x3ba7e6){return _0x244c48||_0x3ba7e6;},'rMmAT':function(_0x527619,_0x134afb){return _0x527619(_0x134afb);},'CJbkd':function(_0x45a8a3,_0x414db3){return _0x45a8a3&&_0x414db3;},'naFyh':'Allow'+_0x4f016e(0x18e)+_0x4f016e(0x131)+'orize'+_0x4f016e(0x194)+_0x4f016e(0x1fe)+_0x4f016e(0x1c2)+'or\x20OA'+_0x4f016e(0xc8)+'iscov'+_0x4f016e(0x191),'kFUfi':function(_0x247daf,_0x311480){return _0x247daf+_0x311480;},'xVGnv':_0x4f016e(0x1b2)+'l-kno'+_0x4f016e(0x167)+_0x4f016e(0xd6)+_0x4f016e(0xfc)+'ted-r'+'esour'+'ce','ImhXY':_0x4f016e(0x196)+'horiz'+_0x4f016e(0x139)+_0x4f016e(0x199)+_0x4f016e(0x1ce)+_0x4f016e(0x192)+_0x4f016e(0x1e9)+_0x4f016e(0xef)+'red.\x20'+_0x4f016e(0xc7)+'e\x20com'+_0x4f016e(0x202)+_0x4f016e(0x1d8)+_0x4f016e(0x134)+_0x4f016e(0x113)+'.','JOqjD':_0x4f016e(0x196)+_0x4f016e(0x211)+_0x4f016e(0x1d1)+'issin'+_0x4f016e(0xd8)+_0x4f016e(0x18b)+_0x4f016e(0x1e7)+_0x4f016e(0x177)+_0x4f016e(0x1ec)+_0x4f016e(0x17b)+_0x4f016e(0xdf),'RPxCD':function(_0x269758,_0x22d8a0){return _0x269758(_0x22d8a0);},'PuBFh':'Error'+_0x4f016e(0x106)+_0x4f016e(0x1cc)+'MCP\x20r'+_0x4f016e(0x11e)+'t:','ylvji':function(_0x1f2f1d,_0x112514){return _0x1f2f1d(_0x112514);},'XSjwC':function(_0x4434cc,_0xd9938d){return _0x4434cc(_0xd9938d);},'catRY':_0x4f016e(0x213)+_0x4f016e(0x218)},_0x36d7d6=(_0x19525c[_0x4f016e(0x100)](getSessionId,_0x2f15f8[_0x4f016e(0x105)+'rs'][_0x4f016e(0xde)+'essio'+'n-id'])||_0x19525c[_0x4f016e(0x119)](getSessionId,_0x2f15f8[_0x4f016e(0xd2)]['sessi'+_0x4f016e(0x153)]))?.[_0x4f016e(0x16c)](),_0xc2d9da=_0x36d7d6||_0x19525c[_0x4f016e(0x11d)],_0x460196={'sessionId':_0xc2d9da,'toolName':undefined,'startTime':Date[_0x4f016e(0x197)](),'clickupApiTime':0x0,'apiCallCount':0x0};return sessionStore['run'](_0x460196,async()=>{const _0x829aa3=_0x4f016e;try{if(_0x2f15f8['metho'+'d']===_0x19525c[_0x829aa3(0x1c8)]&&_0x2f15f8['heade'+'rs'][_0x829aa3(0x176)+'t']?.['inclu'+_0x829aa3(0x1a8)](_0x829aa3(0x215)+_0x829aa3(0x1bd))){_0x1c9535[_0x829aa3(0x117)+'s'](0xc8)[_0x829aa3(0x1b0)](_0x19525c[_0x829aa3(0x201)]);return;}const _0x1c3288=_0x19525c[_0x829aa3(0x19e)](isInitializeRequest,_0x2f15f8['body']),_0x4c1cc5=_0x2f15f8[_0x829aa3(0x111)+'d']===_0x19525c[_0x829aa3(0x1c8)],_0x324940=_0x19525c['nwcPv'](_0x2f15f8[_0x829aa3(0x111)+'d'],_0x19525c[_0x829aa3(0x1db)]),_0x11c5d4=_0x2f15f8['auth']?.['token'],_0x4c10f7=(_0x11c5d4||(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x120)+_0x829aa3(0x216)+'key']||_0x2f15f8[_0x829aa3(0x105)+'rs']['click'+_0x829aa3(0xe4)+'i-key']))?.[_0x829aa3(0x16c)](),_0x5d3fe6=(_0x2f15f8['heade'+'rs'][_0x829aa3(0x120)+_0x829aa3(0x216)+'team-'+'id']||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x15b)+_0x829aa3(0x19d)+_0x829aa3(0x174)]||_0x2f15f8[_0x829aa3(0x1f2)]?.[_0x829aa3(0xd3)+'d'])?.[_0x829aa3(0x16c)](),_0x54d782=(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x1ae)+_0x829aa3(0x104)+'key']||_0x2f15f8['heade'+'rs'][_0x19525c[_0x829aa3(0x1ff)]]||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x133)]])?.[_0x829aa3(0x16c)](),_0x1d4ea0=(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x21d)+_0x829aa3(0x1d2)+'secre'+'t']||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x155)]]||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x15b)+'up_mc'+_0x829aa3(0x136)+_0x829aa3(0x1f5)+_0x829aa3(0x1c3)+'t'])?.[_0x829aa3(0x16c)](),_0x4c141a=(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x1f7)]]||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0xf4)]])?.[_0x829aa3(0x16c)](),_0x2d5cde=(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x1e8)]]||_0x2f15f8['heade'+'rs'][_0x19525c[_0x829aa3(0x179)]])?.[_0x829aa3(0x16c)](),_0xa4bef3=(_0x2f15f8[_0x829aa3(0x105)+'rs']['x-ena'+_0x829aa3(0x1c4)+'categ'+_0x829aa3(0x102)]||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c['ESoko']])?.['trim'](),_0xd5f1dd=(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x122)+_0x829aa3(0x18c)+_0x829aa3(0x1d7)+_0x829aa3(0x13b)+'s']||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x1d5)+_0x829aa3(0x1c0)+_0x829aa3(0x114)+_0x829aa3(0x1b5)])?.['trim'](),_0x327686=(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x219)]]||_0x2f15f8['heade'+'rs'][_0x19525c[_0x829aa3(0x204)]])?.[_0x829aa3(0x16c)](),_0x571467=(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x120)+_0x829aa3(0x216)+_0x829aa3(0x1ca)+'ional'+_0x829aa3(0x115)]||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x1a0)]])?.[_0x829aa3(0x16c)](),_0x1dbc5e=_0x571467?_0x571467['split'](',')[_0x829aa3(0xd9)](_0x58b738=>_0x58b738[_0x829aa3(0x16c)]())[_0x829aa3(0x14b)+'r'](Boolean):undefined,_0x3586e8={'enabledTools':parseToolsString(_0x4c141a),'disabledTools':parseToolsString(_0x2d5cde),'enabledCategories':parseToolsString(_0xa4bef3),'disabledCategories':parseToolsString(_0xd5f1dd),'persona':_0x327686||a0_0x22e5af[_0x829aa3(0x206)+'na'],'timezone':_0x2f15f8[_0x829aa3(0x1f2)]?.[_0x829aa3(0x195)+_0x829aa3(0x1b1)],'additionalApiKeys':_0x1dbc5e||a0_0x22e5af[_0x829aa3(0x1ca)+_0x829aa3(0x1c7)+'ApiKe'+'ys']},_0x31313d=_0x13fcc3,_0x4b21c1=_0x331e5c&&_0x2f15f8['origi'+'nalUr'+'l'][_0x829aa3(0x159)+_0x829aa3(0x10f)](_0x331e5c)||_0x2f15f8[_0x829aa3(0x17d)+_0x829aa3(0x1e6)+'l'][_0x829aa3(0x159)+_0x829aa3(0x10f)](_0x829aa3(0x1f1));let _0x5d1645=_0x31313d;if(_0x4b21c1){const _0x1cf024=_0x331e5c||_0x829aa3(0x1f1);!_0x31313d[_0x829aa3(0x1be)+_0x829aa3(0x19f)](_0x1cf024)&&(_0x5d1645=''+_0x31313d+_0x1cf024);}logger[_0x829aa3(0x15f)]('MCP\x20r'+_0x829aa3(0x11e)+_0x829aa3(0x12c)+'eived',{'path':_0x2f15f8[_0x829aa3(0x1fd)],'method':_0x2f15f8['metho'+'d'],'sessionId':_0xc2d9da,'isInitialize':_0x1c3288,'hasBody':!!_0x2f15f8[_0x829aa3(0x10e)],'contentType':_0x2f15f8['heade'+'rs'][_0x19525c[_0x829aa3(0x180)]],'hasAuth':!!_0x4c10f7&&!!_0x5d3fe6,'hasOAuth':!!_0x11c5d4,'hasLicense':!!_0x54d782,'isSandbox':!!_0x1d4ea0,'baseUrl':_0x5d1645});if(_0x4c1cc5&&_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x176)+'t']?.[_0x829aa3(0xdb)+'des'](_0x19525c[_0x829aa3(0xe3)])){logger[_0x829aa3(0xcb)](_0x19525c[_0x829aa3(0x163)]);const _0x256db8=!!(_0x4c10f7&&_0x5d3fe6),_0x2acaf1=new SSEServerTransport(_0x829aa3(0x1b6)+_0x829aa3(0x13e),_0x1c9535),{createServices:_0x465b19}=await import(_0x829aa3(0x1ac)+_0x829aa3(0x1ab)+_0x829aa3(0x127)+_0x829aa3(0x18f)+'s'),{createMcpServer:_0x4d0e52}=await import(_0x19525c[_0x829aa3(0x1f4)]),_0x26f6b4={'clickupApiKey':_0x4c10f7||a0_0x22e5af[_0x829aa3(0x15b)+_0x829aa3(0xf7)+'Key'],'clickupTeamId':_0x5d3fe6||a0_0x22e5af[_0x829aa3(0x15b)+_0x829aa3(0x14a)+'mId'],'availableTeams':_0x2f15f8['auth']?.['avail'+_0x829aa3(0x13c)+'eams'],'confirmedTeamIds':_0x2f15f8['heade'+'rs'][_0x19525c[_0x829aa3(0xf0)]]||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x15b)+_0x829aa3(0x19d)+'am-id']?[String(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x120)+_0x829aa3(0x216)+_0x829aa3(0x1f8)+'id']||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c['PJReg']])]:_0x2f15f8[_0x829aa3(0x1f2)]?.['confi'+_0x829aa3(0x1fc)+_0x829aa3(0x1bf)+'s'],'licenseKey':_0x54d782,'sandboxSecret':_0x1d4ea0,..._0x3586e8},_0xf7192d=await _0x19525c['wvrQA'](_0x465b19,_0x26f6b4),_0x182027=_0x4c10f7&&_0x5d3fe6?undefined:getAuthCapabilities(_0x5d1645),{server:_0x57f1c4}=_0x4d0e52(_0xf7192d,_0x182027);_0x2acaf1[_0x829aa3(0x11c)+'se']=()=>{const _0x3e7f4a=_0x829aa3,_0x55b216=_0x2acaf1['sessi'+_0x3e7f4a(0x153)],_0x106268=_0x5907f1[_0x3e7f4a(0x162)][_0x55b216];_0x106268&&(delete _0x5907f1['sse'][_0x55b216],_0x106268[_0x3e7f4a(0x1c1)+'r']&&_0x106268[_0x3e7f4a(0x1c1)+'r'][_0x3e7f4a(0x1dd)]()[_0x3e7f4a(0x169)](()=>{}));},await _0x57f1c4[_0x829aa3(0x16e)+'ct'](_0x2acaf1),_0x5907f1[_0x829aa3(0x162)][_0x2acaf1[_0x829aa3(0x1e5)+'onId']]={'transport':_0x2acaf1,'server':_0x57f1c4,'authenticated':_0x256db8,'services':_0xf7192d};return;}let _0xa33119;if(_0x36d7d6&&Object[_0x829aa3(0xd1)+'type'][_0x829aa3(0x112)+'nProp'+_0x829aa3(0xe6)][_0x829aa3(0x186)](_0x5907f1['strea'+_0x829aa3(0x212)],_0x36d7d6)){const _0x2dd16b=_0x5907f1[_0x829aa3(0x142)+_0x829aa3(0x212)][_0x36d7d6];if(!_0x2dd16b['authe'+'ntica'+_0x829aa3(0x1f9)]&&!_0x11c5d4&&_0x3a010c&&_0x324940&&!_0x1c3288){const _0x1d1037=_0x13fcc3+(_0x829aa3(0x1b2)+_0x829aa3(0x13d)+_0x829aa3(0x167)+'uth-p'+_0x829aa3(0xfc)+_0x829aa3(0xf8)+'esour'+'ce');logger[_0x829aa3(0xcb)](_0x19525c[_0x829aa3(0x1c6)],{'sessionId':_0x36d7d6}),_0x1c9535[_0x829aa3(0x117)+'s'](0x191)[_0x829aa3(0x217)]({'WWW-Authenticate':_0x829aa3(0x10c)+_0x829aa3(0x12d)+_0x829aa3(0x21b)+_0x829aa3(0x1a5)+_0x829aa3(0x12f)+'\x22'+_0x1d1037+'\x22'})['json']({'jsonrpc':_0x19525c[_0x829aa3(0x1eb)],'error':{'code':-0x7d00,'message':_0x829aa3(0x196)+_0x829aa3(0x211)+_0x829aa3(0x139)+_0x829aa3(0x199)+'authe'+_0x829aa3(0x192)+'tion\x20'+_0x829aa3(0xef)+_0x829aa3(0x17e)+'Pleas'+_0x829aa3(0xfd)+_0x829aa3(0x202)+_0x829aa3(0x1d8)+'OAuth'+_0x829aa3(0x113)+'.'},'id':_0x2f15f8[_0x829aa3(0x10e)]?.['id']??null});return;}if(!_0x2dd16b[_0x829aa3(0x1ce)+'ntica'+_0x829aa3(0x1f9)]&&_0x11c5d4&&_0x2f15f8[_0x829aa3(0x1f2)]){logger['info'](_0x19525c[_0x829aa3(0x110)],{'sessionId':_0x36d7d6});const {createServices:_0x19670f}=await import(_0x19525c[_0x829aa3(0x12a)]),{createMcpServer:_0x3dccbd}=await import('../se'+_0x829aa3(0xff)+'js'),_0x426741={'clickupApiKey':_0x11c5d4,'clickupTeamId':_0x5d3fe6||a0_0x22e5af['click'+_0x829aa3(0x14a)+_0x829aa3(0x123)],'availableTeams':_0x2f15f8[_0x829aa3(0x1f2)]?.[_0x829aa3(0x158)+_0x829aa3(0x13c)+_0x829aa3(0x1f6)],'confirmedTeamIds':_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x120)+_0x829aa3(0x216)+_0x829aa3(0x1f8)+'id']||_0x2f15f8['heade'+'rs'][_0x19525c[_0x829aa3(0x12b)]]?[String(_0x2f15f8[_0x829aa3(0x105)+'rs']['x-cli'+'ckup-'+'team-'+'id']||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x12b)]])]:_0x2f15f8[_0x829aa3(0x1f2)]?.['confi'+'rmedT'+'eamId'+'s'],'licenseKey':_0x54d782,'sandboxSecret':_0x1d4ea0,..._0x3586e8},_0x39b47a=await _0x19670f(_0x426741),{server:_0x4b0f46}=_0x19525c[_0x829aa3(0x172)](_0x3dccbd,_0x39b47a,undefined),_0x42c243=new StreamableHTTPServerTransport({'sessionIdGenerator':()=>_0x36d7d6}),_0x14db06=_0x42c243['_webS'+'tanda'+'rdTra'+_0x829aa3(0x1de)+'t'];_0x14db06&&(_0x14db06[_0x829aa3(0x1e5)+_0x829aa3(0x153)]=_0x36d7d6,_0x14db06[_0x829aa3(0x20a)+_0x829aa3(0x16a)+'ed']=!![]),_0x42c243['onclo'+'se']=()=>{const _0x5a0b47=_0x829aa3;delete _0x5907f1[_0x5a0b47(0x142)+_0x5a0b47(0x212)][_0x36d7d6];},await _0x4b0f46[_0x829aa3(0x16e)+'ct'](_0x42c243),_0x2dd16b?.['serve'+'r']&&await _0x2dd16b[_0x829aa3(0x1c1)+'r']['close']()[_0x829aa3(0x169)](()=>{}),_0x5907f1[_0x829aa3(0x142)+'mable'][_0x36d7d6]={'transport':_0x42c243,'server':_0x4b0f46,'authenticated':!![],'services':_0x39b47a},_0xa33119=_0x42c243;}else _0xa33119=_0x2dd16b[_0x829aa3(0x178)+_0x829aa3(0x16b)];}else{if(_0x1c3288||_0x4c1cc5&&!_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x176)+'t']?.[_0x829aa3(0xdb)+_0x829aa3(0x1a8)](_0x19525c[_0x829aa3(0x1e1)])){_0x36d7d6&&logger[_0x829aa3(0x15f)](_0x19525c[_0x829aa3(0x1d4)],{'sessionId':_0x36d7d6});const _0x37921b={...a0_0x22e5af,'clickupApiKey':_0x19525c[_0x829aa3(0x146)](_0x4c10f7,_0x11c5d4)||a0_0x22e5af['click'+_0x829aa3(0xf7)+_0x829aa3(0x168)],'clickupTeamId':_0x5d3fe6||a0_0x22e5af[_0x829aa3(0x15b)+'upTea'+'mId'],'availableTeams':_0x2f15f8['auth']?.['avail'+_0x829aa3(0x13c)+_0x829aa3(0x1f6)],'confirmedTeamIds':_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0xf0)]]||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x12b)]]?[_0x19525c[_0x829aa3(0x1cb)](String,_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x829aa3(0x120)+_0x829aa3(0x216)+_0x829aa3(0x1f8)+'id']||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x12b)]])]:_0x2f15f8[_0x829aa3(0x1f2)]?.[_0x829aa3(0x135)+_0x829aa3(0x1fc)+'eamId'+'s'],'licenseKey':_0x54d782,'sandboxSecret':_0x1d4ea0,..._0x3586e8};let _0x1656be=!!(_0x37921b[_0x829aa3(0x15b)+'upApi'+_0x829aa3(0x168)]&&_0x37921b[_0x829aa3(0x15b)+_0x829aa3(0x14a)+_0x829aa3(0x123)]);const _0x20adcb=!!_0x37921b[_0x829aa3(0x15b)+_0x829aa3(0xf7)+'Key'];!_0x1656be&&_0x20adcb&&_0x37921b[_0x829aa3(0x15b)+_0x829aa3(0x14a)+'mId']&&(_0x1656be=!![]);if(!_0x1656be){if(_0x19525c[_0x829aa3(0x222)](_0x3a010c,_0x4c1cc5))logger[_0x829aa3(0x15f)](_0x19525c[_0x829aa3(0x10b)]);else{if(_0x3a010c&&!_0x20adcb){const _0x117bed=_0x13fcc3['endsW'+_0x829aa3(0x19f)]('/')?_0x13fcc3['slice'](0x0,-0x1):_0x13fcc3,_0x439d42=_0x19525c[_0x829aa3(0x1b9)](_0x117bed,_0x19525c[_0x829aa3(0xee)]);logger['info'](_0x829aa3(0x137)+_0x829aa3(0x205)+'401\x20c'+_0x829aa3(0x12e)+_0x829aa3(0x16f)+_0x829aa3(0x19c)+_0x829aa3(0x11f)+'OAuth'+'\x20flow',{'sessionId':_0xc2d9da,'isInitialize':_0x1c3288}),_0x1c9535[_0x829aa3(0x117)+'s'](0x191)[_0x829aa3(0x217)]({'WWW-Authenticate':'Beare'+_0x829aa3(0x12d)+_0x829aa3(0x21b)+_0x829aa3(0x1a5)+_0x829aa3(0x12f)+'\x22'+_0x439d42+'\x22'})['json']({'jsonrpc':_0x829aa3(0x14f),'error':{'code':-0x7d00,'message':_0x19525c[_0x829aa3(0x200)]},'id':_0x2f15f8[_0x829aa3(0x10e)]?.['id']??null});return;}else{if(!_0x20adcb){logger['warn'](_0x829aa3(0x196)+_0x829aa3(0x211)+_0x829aa3(0x1dc)+_0x829aa3(0x1d9)+_0x829aa3(0x21e)+'on\x20at'+_0x829aa3(0x20d)+_0x829aa3(0x1ef)+_0x829aa3(0xe8)+_0x829aa3(0xdc)+_0x829aa3(0x160)+_0x829aa3(0xca)+_0x829aa3(0xe0),{'isGet':_0x4c1cc5,'isInitialize':_0x1c3288}),_0x1c9535['statu'+'s'](0x191)[_0x829aa3(0x15c)]({'jsonrpc':_0x19525c[_0x829aa3(0x1eb)],'error':{'code':-0x7d00,'message':_0x19525c[_0x829aa3(0x1f0)]},'id':_0x2f15f8[_0x829aa3(0x10e)]?.['id']??null});return;}else{if(!_0x37921b[_0x829aa3(0x15b)+'upTea'+_0x829aa3(0x123)]){logger[_0x829aa3(0x170)](_0x829aa3(0x196)+_0x829aa3(0x211)+_0x829aa3(0x1b3)+_0x829aa3(0x20d)+_0x829aa3(0x1ef)+_0x829aa3(0xe8)+_0x829aa3(0x1b4)+_0x829aa3(0x165)+_0x829aa3(0x16d)+_0x829aa3(0x209)+_0x829aa3(0xea)+_0x829aa3(0xc9),{'sessionId':_0xc2d9da}),_0x1c9535['statu'+'s'](0x191)[_0x829aa3(0x15c)]({'jsonrpc':_0x19525c['VZCtH'],'error':{'code':-0x7d00,'message':_0x829aa3(0x196)+_0x829aa3(0x211)+_0x829aa3(0x1d1)+_0x829aa3(0xf9)+_0x829aa3(0xd8)+_0x829aa3(0x18b)+_0x829aa3(0x1b4)+_0x829aa3(0x1cf)+_0x829aa3(0x14d)+_0x829aa3(0x108)+'eam-I'+_0x829aa3(0x17f)+_0x829aa3(0x1a1)+_0x829aa3(0x20f)+_0x829aa3(0x1ba)+_0x829aa3(0x151)+_0x829aa3(0x1e4)+'o\x20use'+_0x829aa3(0x1d3)+'ct\x20AP'+_0x829aa3(0x1e2)+'h.'},'id':_0x2f15f8[_0x829aa3(0x10e)]?.['id']??null});return;}}}}}const {createServices:_0x55ffd6}=await import(_0x19525c[_0x829aa3(0x12a)]),{createMcpServer:_0x346254}=await import(_0x19525c[_0x829aa3(0x1f4)]),_0x5b962c=await _0x19525c[_0x829aa3(0x208)](_0x55ffd6,_0x37921b),_0x5d9889=_0x4c10f7&&_0x5d3fe6?undefined:getAuthCapabilities(_0x5d1645),{server:_0x162419}=_0x19525c['DBQEH'](_0x346254,_0x5b962c,_0x5d9889);_0xa33119=new StreamableHTTPServerTransport({'sessionIdGenerator':()=>_0x829aa3(0x1e5)+_0x829aa3(0x149)+Date[_0x829aa3(0x197)]()+'_'+a0_0x24a94a[_0x829aa3(0xfa)+_0x829aa3(0x1fb)](),'onsessioninitialized':_0x8844cb=>{const _0x17431f=_0x829aa3;logger['debug'](_0x17431f(0x1e0)+_0x17431f(0x109)+_0x17431f(0x1d9)+_0x17431f(0x14e)+_0x17431f(0x20c)+_0x17431f(0xe9)+_0x17431f(0x193)+_0x17431f(0x1bb)+'ion:\x20'+_0x8844cb,{'authenticated':_0x1656be}),_0x5907f1[_0x17431f(0x142)+'mable'][_0x8844cb]={'transport':_0xa33119,'server':_0x162419,'authenticated':_0x1656be,'services':_0x5b962c};}}),_0xa33119[_0x829aa3(0x11c)+'se']=()=>{const _0x120518=_0x829aa3;if(_0xa33119[_0x120518(0x1e5)+'onId']){const _0x469db0=_0xa33119[_0x120518(0x1e5)+_0x120518(0x153)],_0x1f43a8=_0x5907f1['strea'+'mable'][_0x469db0];_0x1f43a8&&(delete _0x5907f1[_0x120518(0x142)+_0x120518(0x212)][_0x469db0],_0x1f43a8[_0x120518(0x1c1)+'r']&&_0x1f43a8[_0x120518(0x1c1)+'r'][_0x120518(0x1dd)]()['catch'](()=>{}));}},await _0x162419['conne'+'ct'](_0xa33119);}else{if(_0x19525c[_0x829aa3(0x222)](_0x4c10f7,_0x324940)){_0x36d7d6?logger[_0x829aa3(0xcb)](_0x829aa3(0xcc)+_0x829aa3(0x18e)+_0x829aa3(0x138)+'gnize'+_0x829aa3(0x1b7)+_0x829aa3(0x130)+'ID\x20as'+'\x20stat'+_0x829aa3(0x1a7)+'\x20requ'+_0x829aa3(0x184)+_0x829aa3(0x125)+_0x829aa3(0x183),{'sessionId':_0x36d7d6}):logger[_0x829aa3(0x15f)]('Handl'+_0x829aa3(0x10d)+_0x829aa3(0x166)+'ess\x20M'+_0x829aa3(0xd0)+_0x829aa3(0x21a)+_0x829aa3(0x18a)+_0x829aa3(0x156),{'hasTeamId':!!_0x5d3fe6});_0xa33119=new StreamableHTTPServerTransport({'sessionIdGenerator':undefined});const {createServices:_0x1538be}=await import(_0x829aa3(0x1ac)+_0x829aa3(0x1ab)+_0x829aa3(0x127)+_0x829aa3(0x18f)+'s'),{createMcpServer:_0x465fa0}=await import(_0x19525c[_0x829aa3(0x1f4)]),_0x12c198=await _0x1538be({'clickupApiKey':_0x4c10f7,'clickupTeamId':_0x5d3fe6,'availableTeams':_0x2f15f8[_0x829aa3(0x1f2)]?.[_0x829aa3(0x158)+'ableT'+_0x829aa3(0x1f6)],'confirmedTeamIds':_0x2f15f8[_0x829aa3(0x105)+'rs']['x-cli'+_0x829aa3(0x216)+_0x829aa3(0x1f8)+'id']||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c['PJReg']]?[String(_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0xf0)]]||_0x2f15f8[_0x829aa3(0x105)+'rs'][_0x19525c[_0x829aa3(0x12b)]])]:_0x2f15f8[_0x829aa3(0x1f2)]?.[_0x829aa3(0x135)+_0x829aa3(0x1fc)+_0x829aa3(0x1bf)+'s'],'licenseKey':_0x54d782,'sandboxSecret':_0x1d4ea0,..._0x3586e8}),_0x4cb124=_0x19525c[_0x829aa3(0x222)](_0x4c10f7,_0x5d3fe6)?undefined:getAuthCapabilities(_0x5d1645),{server:_0x1e320d}=_0x19525c[_0x829aa3(0x172)](_0x465fa0,_0x12c198,_0x4cb124);await _0x1e320d[_0x829aa3(0x16e)+'ct'](_0xa33119);try{await _0xa33119[_0x829aa3(0x20b)+_0x829aa3(0xe5)+'est'](_0x2f15f8,_0x1c9535,_0x2f15f8[_0x829aa3(0x10e)]);}finally{await _0x1e320d['close']()[_0x829aa3(0x169)](()=>{});}return;}else{if(_0x4c1cc5&&_0x2f15f8[_0x829aa3(0x105)+'rs']['accep'+'t']?.[_0x829aa3(0xdb)+'des']('text/'+_0x829aa3(0x1bd))){_0x1c9535['statu'+'s'](0xc8)[_0x829aa3(0x1b0)](_0x829aa3(0xdc)+_0x829aa3(0x1a4)+_0x829aa3(0x1af)+'ver\x20P'+_0x829aa3(0x101)+_0x829aa3(0x129)+_0x829aa3(0xec)+_0x829aa3(0x1ea)+'HTTP\x20'+_0x829aa3(0xf2)+'int\x20A'+_0x829aa3(0x190)+_0x829aa3(0x18d)+_0x829aa3(0x20e)+_0x829aa3(0x11a)+'known'+_0x829aa3(0xda)+_0x829aa3(0x1c1)+_0x829aa3(0xce)+_0x829aa3(0xed)+'n\x20for'+_0x829aa3(0xf3)+_0x829aa3(0xd4)+'\x20info'+'.');return;}logger[_0x829aa3(0x170)](_0x829aa3(0x1a2)+_0x829aa3(0x11e)+_0x829aa3(0x143)+_0x829aa3(0x107)+_0x829aa3(0x1b7)+_0x829aa3(0x130)+'ID\x20an'+_0x829aa3(0x19a)+_0x829aa3(0xf6)+_0x829aa3(0x105)+'rs',{'sessionId':_0xc2d9da,'method':_0x2f15f8[_0x829aa3(0x111)+'d'],'isInitialize':_0x1c3288}),_0x1c9535[_0x829aa3(0x117)+'s'](0x190)[_0x829aa3(0x15c)]({'jsonrpc':_0x19525c[_0x829aa3(0x1eb)],'error':{'code':-0x7d00,'message':_0x829aa3(0x220)+_0x829aa3(0x11e)+'t:\x20No'+_0x829aa3(0x107)+_0x829aa3(0x1b7)+_0x829aa3(0x130)+_0x829aa3(0x124)+'ovide'+_0x829aa3(0xf5)+'\x20no\x20a'+_0x829aa3(0xe1)+_0x829aa3(0x189)+_0x829aa3(0x15e)+'nd'},'id':_0x2f15f8[_0x829aa3(0x10e)]?.['id']??null});return;}}}await _0xa33119[_0x829aa3(0x20b)+_0x829aa3(0xe5)+_0x829aa3(0x1d0)](_0x2f15f8,_0x1c9535,_0x2f15f8[_0x829aa3(0x10e)]);}catch(_0x3253fe){console['error'](_0x19525c['PuBFh'],_0x3253fe),!_0x1c9535[_0x829aa3(0x105)+'rsSen'+'t']&&_0x1c9535[_0x829aa3(0x117)+'s'](0x1f4)['json']({'jsonrpc':_0x19525c[_0x829aa3(0x1eb)],'error':{'code':-0x7f5b,'message':_0x829aa3(0x1c5)+'nal\x20s'+_0x829aa3(0x14c)+_0x829aa3(0xe2)+'r'},'id':_0x2f15f8['body']?.['id']??null});}});};function a0_0x251d(_0x19f8f2,_0x142386){_0x19f8f2=_0x19f8f2-0xc7;const _0x549b6f=a0_0x549b();let _0x251dd6=_0x549b6f[_0x19f8f2];if(a0_0x251d['PYXacJ']===undefined){var _0x2fb178=function(_0x3f0994){const _0xe266ef='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4566b9='',_0x2ae886='';for(let _0x28f84b=0x0,_0x450c67,_0x59c452,_0x5ea6bb=0x0;_0x59c452=_0x3f0994['charAt'](_0x5ea6bb++);~_0x59c452&&(_0x450c67=_0x28f84b%0x4?_0x450c67*0x40+_0x59c452:_0x59c452,_0x28f84b++%0x4)?_0x4566b9+=String['fromCharCode'](0xff&_0x450c67>>(-0x2*_0x28f84b&0x6)):0x0){_0x59c452=_0xe266ef['indexOf'](_0x59c452);}for(let _0x552d5b=0x0,_0x538872=_0x4566b9['length'];_0x552d5b<_0x538872;_0x552d5b++){_0x2ae886+='%'+('00'+_0x4566b9['charCodeAt'](_0x552d5b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ae886);};a0_0x251d['qVecLS']=_0x2fb178,a0_0x251d['TsEfOO']={},a0_0x251d['PYXacJ']=!![];}const _0xa7f603=_0x549b6f[0x0],_0x1806df=_0x19f8f2+_0xa7f603,_0x2d77c4=a0_0x251d['TsEfOO'][_0x1806df];return!_0x2d77c4?(_0x251dd6=a0_0x251d['qVecLS'](_0x251dd6),a0_0x251d['TsEfOO'][_0x1806df]=_0x251dd6):_0x251dd6=_0x2d77c4,_0x251dd6;}function a0_0x549b(){const _0x296d74=['AxrO','BM1dsui','BgvHC2u','qMfKihi','tunqsge','vxaGtum','x21LDge','nZi0mda1mgPruuPKCW','zwXLC3m','zgvZ','Axn0zxi','Dw5HDxq','CNzPy2u','lI4VC2u','zwqTy2e','Ec1SAwm','ucbtzxi','C2vUza','B25L','lY53zwW','zwqGyxq','vgvHBsa','CMLLCW','l21LC3m','zcbZzxm','ywXSlca','A0zvzMK','AwrLige','BM5Ly3q','y2f0zwq','AhrTBa','zw5KC1C','zwfTswq','BgvKlwm','C2vYDMu','zxn0igy','C2vJCMu','yMXLzc0','sw50zxi','uuPZuhK','Aw9UywW','z1jgBhm','B24Gsuq','ywrKAxq','CK1Tqvq','BgLUzYa','B24Gl20','yxv0Agu','suqGkfG','zxn0','zwq6ie0','zgjVEc0','igrPCMu','sfngq3G','zgLZywi','BNqTDhK','lwnHDgu','ihrOzsa','AxrPywW','C3bSAxq','C05bwLq','zwqGAw4','y2XVC2u','BNnWB3i','CYbUzxC','u2vZC2K','Evz5see','ssbHDxq','r0XfwgC','ieLeihq','C2vZC2K','BMfSvxi','qvbjigS','rKj2CxG','DgLVBIa','ywjSzsa','vLPdDeG','ie9bDxq','nJe1ndK5mKzuBLvQyG','DgvNB3i','oIbnAxm','sK9XAKq','l21JCa','yxv0Aa','Dg9VBhm','uhPfC28','zgjVEf8','zwfTCW','DgjNtfG','DgvHBs0','DgvK','Dw5Klca','Bvvvsuq','CM1Lzfq','Cgf0Aa','ihjLCxu','shjMyKy','sw1OwfK','sLDdveG','CgXLDgu','zgLUzYa','uLfcBhm','BMLUzYa','CgvYC28','CNzLCG','uLb4q0q','zwn0lwS','x2LUAxq','AgfUzgW','ihDHAxq','DgvTChq','AxqGlY4','ihbYB3y','AwrLzca','Ag9YAxO','BwfIBgu','C3rHDgu','Cc1SAwm','Dgv4Dc8','y2T1Cc0','C2v0','BgvZCW','v2zpEKm','CxvLC3q','B3vYy2u','igLUzM8','Ec1Zyw4','AxPHDgK','y29UDgu','qMfKifi','DxrOlwe','q0PIA2q','ugXLyxm','DxrOigq','C3nPB24','zwrLBNq','Aw5MBW','sgfUzgW','DxaTBwm','CI1Jyxi','BMrSzxi','q1aGCMu','ChjVDg8','CxvLCNK','DgvHBuK','B3zLCNK','Ac9HDxq','DxrOlxa','y3aGzw4','zYbdBgK','BwfW','l21JCc8','Aw5JBhu','q2XPy2S','ndbVAKTTuK0','BwnWlxm','zw4U','AwfSCW','DxrOigG','igvYCM8','v01uA2C','DxaTyxa','zvjLCxu','zxj0Eq','ue9tva','C2LUzYa','Aw5Nigy','zxKGC2u','ihnLC3m','DhjLyw0','zc5QC28','EfzhBNy','CMvXDwK','u1vjB2O','mZe2ote3v2Diz2Dr','rw5KCg8','igrPC2m','t053rKi','zcbHBMq','yxv0Aca','DxbbCgK','DgvKlxi','AxnZAw4','CMfUzg8','B2f1DgG','CM90zwm','zsbJB20','DgvKihq','CNzLCI4','EwX2AMK','CMvTAxu','B3jPzxm','B2XZ','zw5Zzs0','AgvHzgu','igHHBMq','ihzHBgK','A1vWlvq','B24GAw4','m2fIDgLOAW','BMfgEwG','qMvHCMu','Aw5Nihm','yM9KEq','C1DPDgG','BM9gqLq','Bwv0Ag8','AgfZt3C','igzSB3C','yxrLz28','lwTLExm','Ac9YzwC','C3rHDhu','Aw5Nige','wfnQD0m','D2vSBc0','zw5HyMW','B25JBg8','y2f0uLK','zxf1zxm','z2DLCIa','Ec1JBgK','BgvKlxq','Ec1KAxm','BuLK','suqGChi','AxrOige','Aw5NigW','CY9ZAge','lxrVB2W','BsaTifm','zxvbwvi','uePszwC','DcbYzwm','CIbYzxm','AgfSBgu','zgf0yt0','C2LVBIa','BMf1DgG','mJi3mZGWt0TquNPN','zMjJD0y','t0f1DgG','y29UzMK','Cf9Zyw4','uMv0Dxi','BNjLy28','zwq6ie8','Aw9UihC','z29YAwu','ywjSzvq','Bc1RBM8','ywDL','y3jLzgu','ifntrsa','DxrOB3i','C3rYzwe','DdOGtM8','DxbFBwm','yNv0ig4','qM9svhO','A2v5','BIbMB3i','B25F','Dxbuzwe','zMLSDgu','zxj2zxi','lunSAwm','AxPLzcW','mI4W','B29SCW','ifrLyw0','Cc1Zyw4','B25jza','A2v5CW','tNv6EKG','igf1DgG','DhrLBxa','yxzHAwW','C3rHCNq','B29Sigm','y2XPy2S','ANnVBG','BNrPywW','CYbMB3u','zgvIDwC','vxaGy3i','AgvUDgK','C3nL','ChLJAhC','DhjLyxq','suqGzM8','Dgf0zwW','D24VB2e','s2v5','y2f0y2G','AwfSAxO','Cg9YDa','DhjPBq','CIbKAxi','y29UBMu','BMDLihq','D2fYBG','ode3nde2ogTOtgPdyW','rejrruG','zw5Zzv8','yw0TAwq','CMv0Dxi','ywnJzxa','zxKGB3i','DhjHBNm','sLnbywK','nZu2ndy0u2HTEKrp','Acb0B2S','l29HDxq','B3jPz2K','CMvKlIa','zcKUifa','txjPwfu','AwvZ','nte2odu5mfr4tLPJDq','DxrO','zxn0ihC','Ac90B2S','y2fSBa','Aw9Uihi','B24TC2u','zwfKzxi','ihDPDgG','y2TvCca','ywjSzwq','lIbwAxm','Aw5Nihu','CMvKlMO','y3rPDMu','zxj5','BNrPy2e','B3iGy28','zcbhrvq','DgLTzxO','vw5HDxq','BM93','zhbVAw4','qxv0Aca','zcbUBYa','r0vu','BYb0CMK','DxaTDgu','DvfiuKO'];a0_0x549b=function(){return _0x296d74;};return a0_0x549b();}
|