@taazkareem/clickup-mcp-server 0.14.2 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +3 -0
- package/README.md +255 -190
- 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/folder.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x587ff7=a0_0x396c;(function(_0x506388,_0x3ccbcf){const _0x12c42a=a0_0x396c,_0x2c98ba=_0x506388();while(!![]){try{const _0x53ee1e=-parseInt(_0x12c42a(0xbd))/0x1*(parseInt(_0x12c42a(0x14c))/0x2)+-parseInt(_0x12c42a(0x1f1))/0x3+parseInt(_0x12c42a(0x8d))/0x4*(-parseInt(_0x12c42a(0xeb))/0x5)+-parseInt(_0x12c42a(0x14f))/0x6*(parseInt(_0x12c42a(0x1f8))/0x7)+-parseInt(_0x12c42a(0x1aa))/0x8+parseInt(_0x12c42a(0xa1))/0x9+parseInt(_0x12c42a(0xec))/0xa;if(_0x53ee1e===_0x3ccbcf)break;else _0x2c98ba['push'](_0x2c98ba['shift']());}catch(_0x22bd81){_0x2c98ba['push'](_0x2c98ba['shift']());}}}(a0_0x4092,0xdd488));import{Logger}from'../logger.js';import a0_0x1a1b60 from'../config.js';import{resolveLocation,resolveTemplateId}from'../utils/resolver-utils.js';import{sponsorService}from'../utils/sponsor-service.js';const logger=new Logger(a0_0x587ff7(0x1c2)+'rTool'+'s');export const listFoldersTool={'name':'list_'+a0_0x587ff7(0x99)+'rs','description':a0_0x587ff7(0x140)+a0_0x587ff7(0x9b)+'older'+a0_0x587ff7(0xcc)+a0_0x587ff7(0xfb)+a0_0x587ff7(0x16e)+a0_0x587ff7(0x14e)+'es\x20sp'+'ace_i'+a0_0x587ff7(0x1de)+a0_0x587ff7(0x17a)+a0_0x587ff7(0x219)+a0_0x587ff7(0xe9)+a0_0x587ff7(0x94)+a0_0x587ff7(0xf0)+a0_0x587ff7(0xb7)+a0_0x587ff7(0x195)+'clude'+a0_0x587ff7(0x94)+a0_0x587ff7(0x118)+a0_0x587ff7(0x99)+a0_0x587ff7(0x1e1),'annotations':{'title':a0_0x587ff7(0x140)+a0_0x587ff7(0x1c2)+'rs','readOnlyHint':!![]},'inputSchema':{'type':a0_0x587ff7(0x89)+'t','properties':{'space_id':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1dc)+'\x20ID\x20('+a0_0x587ff7(0x103)+a0_0x587ff7(0x160)+'.'},'space_name':{'type':a0_0x587ff7(0x191)+'g','description':'Space'+'\x20name'+a0_0x587ff7(0x1be)+'ernat'+a0_0x587ff7(0xbf)},'archived':{'type':'boole'+'an','description':'Inclu'+'de\x20ar'+a0_0x587ff7(0x1e4)+a0_0x587ff7(0x8a)+a0_0x587ff7(0x102)+'\x20Defa'+a0_0x587ff7(0xde)+a0_0x587ff7(0xb0)+'.'},'detail_level':{'type':a0_0x587ff7(0x191)+'g','enum':[a0_0x587ff7(0x6c),a0_0x587ff7(0x12f)+a0_0x587ff7(0x20a)],'description':a0_0x587ff7(0x1c8)+'ols\x20r'+a0_0x587ff7(0x17f)+a0_0x587ff7(0x161)+a0_0x587ff7(0x143)+a0_0x587ff7(0x70)+a0_0x587ff7(0x6c)+a0_0x587ff7(0x82)+a0_0x587ff7(0x194)+a0_0x587ff7(0x1d6)+'me/ta'+a0_0x587ff7(0xbb)+a0_0x587ff7(0x98)+a0_0x587ff7(0x215)+a0_0x587ff7(0x124)+'ficie'+a0_0x587ff7(0x10b)+a0_0x587ff7(0xa2)+'ion.\x20'+a0_0x587ff7(0xc9)+a0_0x587ff7(0x14b)+a0_0x587ff7(0x1e7)+a0_0x587ff7(0xe0)+a0_0x587ff7(0x9e)+a0_0x587ff7(0x100)+'ta.\x20D'+a0_0x587ff7(0x189)+a0_0x587ff7(0x241)+a0_0x587ff7(0xd5)+'d.'}}}};export const getFolderTool={'name':a0_0x587ff7(0x205)+a0_0x587ff7(0x1a9),'description':a0_0x587ff7(0x1e3)+a0_0x587ff7(0x90)+a0_0x587ff7(0xfa)+a0_0x587ff7(0xc7)+a0_0x587ff7(0xac)+a0_0x587ff7(0x170)+'quire'+a0_0x587ff7(0x18a)+a0_0x587ff7(0x6b)+a0_0x587ff7(0x1de)+a0_0x587ff7(0x99)+a0_0x587ff7(0xd7)+'e.','annotations':{'title':'Get\x20F'+a0_0x587ff7(0x1a9),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x587ff7(0x89)+'t','properties':{'folder_id':{'type':a0_0x587ff7(0x191)+'g','description':'Folde'+a0_0x587ff7(0xdc)+a0_0x587ff7(0x1bb)+a0_0x587ff7(0xa4)+').'},'folder_name':{'type':'strin'+'g','description':a0_0x587ff7(0x1c2)+a0_0x587ff7(0x196)+'e\x20(al'+a0_0x587ff7(0x243)+a0_0x587ff7(0x222)+'.'},'space_id':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1dc)+'\x20ID\x20t'+a0_0x587ff7(0x1c4)+'pe\x20na'+a0_0x587ff7(0x12a)+a0_0x587ff7(0x169)},'space_name':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1dc)+a0_0x587ff7(0xee)+a0_0x587ff7(0x1fa)+'cope\x20'+a0_0x587ff7(0xff)+a0_0x587ff7(0xc6)+'p.'}}}};export const createFolderTool={'name':a0_0x587ff7(0x116)+a0_0x587ff7(0x1b6)+a0_0x587ff7(0x75),'description':'Creat'+a0_0x587ff7(0x21e)+a0_0x587ff7(0x139)+a0_0x587ff7(0x95)+a0_0x587ff7(0xc1)+a0_0x587ff7(0x17a)+'.\x20Req'+a0_0x587ff7(0x1fc)+a0_0x587ff7(0xee)+a0_0x587ff7(0x21b)+a0_0x587ff7(0x21a)+a0_0x587ff7(0x1de)+a0_0x587ff7(0x17a)+a0_0x587ff7(0x219)+'.','annotations':{'title':a0_0x587ff7(0x230)+a0_0x587ff7(0xbe)+a0_0x587ff7(0x75),'openWorldHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'name':{'type':'strin'+'g','description':a0_0x587ff7(0x1c2)+'r\x20nam'+'e.\x20Re'+'quire'+'d.'},'space_id':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1dc)+a0_0x587ff7(0x13e)+a0_0x587ff7(0x103)+a0_0x587ff7(0x160)+'.'},'space_name':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1dc)+'\x20name'+'\x20(alt'+'ernat'+a0_0x587ff7(0xbf)},'override_statuses':{'type':a0_0x587ff7(0xe4)+'an','description':'Overr'+a0_0x587ff7(0x11b)+a0_0x587ff7(0x24a)+a0_0x587ff7(0x157)+a0_0x587ff7(0x127)}},'required':[a0_0x587ff7(0x15b)]}};export const updateFolderTool={'name':'updat'+'e_fol'+a0_0x587ff7(0x75),'description':a0_0x587ff7(0x96)+a0_0x587ff7(0x209)+a0_0x587ff7(0x1a9)+a0_0x587ff7(0x1f2)+'me\x20or'+a0_0x587ff7(0x218)+a0_0x587ff7(0x247)+a0_0x587ff7(0x8c)+a0_0x587ff7(0xce)+a0_0x587ff7(0x1fb)+a0_0x587ff7(0x197),'annotations':{'title':a0_0x587ff7(0x96)+a0_0x587ff7(0xbe)+a0_0x587ff7(0x75),'openWorldHint':!![]},'inputSchema':{'type':a0_0x587ff7(0x89)+'t','properties':{'folder_id':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1c2)+a0_0x587ff7(0xdc)+a0_0x587ff7(0x1bb)+a0_0x587ff7(0xa4)+').'},'folder_name':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1c2)+a0_0x587ff7(0x196)+a0_0x587ff7(0x15c)+a0_0x587ff7(0x243)+a0_0x587ff7(0x222)+'.'},'space_id':{'type':'strin'+'g','description':'Space'+'\x20ID\x20t'+a0_0x587ff7(0x1c4)+a0_0x587ff7(0xd1)+a0_0x587ff7(0x12a)+a0_0x587ff7(0x169)},'space_name':{'type':a0_0x587ff7(0x191)+'g','description':'Space'+a0_0x587ff7(0xee)+'\x20to\x20s'+a0_0x587ff7(0x1a5)+'name\x20'+a0_0x587ff7(0xc6)+'p.'},'name':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x182)+a0_0x587ff7(0x1a9)+a0_0x587ff7(0xee)+'.'},'override_statuses':{'type':a0_0x587ff7(0xe4)+'an','description':'Overr'+a0_0x587ff7(0x11b)+a0_0x587ff7(0x24a)+a0_0x587ff7(0x157)+a0_0x587ff7(0x127)}}}};export const deleteFolderTool={'name':a0_0x587ff7(0x24c)+'e_fol'+a0_0x587ff7(0x75),'description':a0_0x587ff7(0x229)+'nentl'+'y\x20rem'+'ove\x20a'+a0_0x587ff7(0x90)+a0_0x587ff7(0x154),'annotations':{'title':'Delet'+a0_0x587ff7(0xbe)+a0_0x587ff7(0x75),'openWorldHint':!![],'destructiveHint':!![]},'inputSchema':{'type':a0_0x587ff7(0x89)+'t','properties':{'folder_id':{'type':a0_0x587ff7(0x191)+'g','description':'Folde'+a0_0x587ff7(0xdc)+a0_0x587ff7(0x1bb)+a0_0x587ff7(0xa4)+').'},'folder_name':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1c2)+a0_0x587ff7(0x196)+'e\x20(al'+a0_0x587ff7(0x243)+a0_0x587ff7(0x222)+'.'},'space_id':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1dc)+'\x20ID\x20t'+a0_0x587ff7(0x1c4)+a0_0x587ff7(0xd1)+a0_0x587ff7(0x12a)+a0_0x587ff7(0x169)},'space_name':{'type':'strin'+'g','description':a0_0x587ff7(0x1dc)+a0_0x587ff7(0xee)+'\x20to\x20s'+'cope\x20'+a0_0x587ff7(0xff)+a0_0x587ff7(0xc6)+'p.'}}}};export const moveFolderTool={'name':a0_0x587ff7(0x15f)+a0_0x587ff7(0x99)+'r','description':a0_0x587ff7(0x20d)+'a\x20fol'+a0_0x587ff7(0xef)+a0_0x587ff7(0x1c1)+'iffer'+a0_0x587ff7(0x23e)+a0_0x587ff7(0xfd)+'\x20Requ'+a0_0x587ff7(0x122)+a0_0x587ff7(0x99)+a0_0x587ff7(0x14d)+a0_0x587ff7(0x217)+'lder_'+a0_0x587ff7(0xff)+a0_0x587ff7(0x136)+'tinat'+'ion\x20s'+a0_0x587ff7(0xa5)+a0_0x587ff7(0x1ec)+a0_0x587ff7(0xca)+a0_0x587ff7(0x162)+'e.','annotations':{'title':a0_0x587ff7(0x20d)+'Folde'+'r','openWorldHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'folder_id':{'type':'strin'+'g','description':'Sourc'+a0_0x587ff7(0xe2)+a0_0x587ff7(0xe7)+a0_0x587ff7(0x168)+a0_0x587ff7(0x18e)+'ed).'},'folder_name':{'type':'strin'+'g','description':a0_0x587ff7(0x68)+a0_0x587ff7(0xe2)+a0_0x587ff7(0x13a)+a0_0x587ff7(0x1bc)+a0_0x587ff7(0xf4)+a0_0x587ff7(0x231)+a0_0x587ff7(0x13f)},'space_id':{'type':a0_0x587ff7(0x191)+'g','description':'Desti'+a0_0x587ff7(0x125)+a0_0x587ff7(0x1b2)+'ce\x20ID'+a0_0x587ff7(0xfc)+a0_0x587ff7(0xdb)+a0_0x587ff7(0x180)},'space_name':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x117)+'natio'+a0_0x587ff7(0x1b2)+a0_0x587ff7(0x1db)+a0_0x587ff7(0x20e)+'ltern'+a0_0x587ff7(0x23c)+').'},'allow_destructive_fallback':{'type':a0_0x587ff7(0xe4)+'an','description':a0_0x587ff7(0x130)+a0_0x587ff7(0x126)+a0_0x587ff7(0x11f)+'\x20if\x20n'+a0_0x587ff7(0xea)+a0_0x587ff7(0xf8)+a0_0x587ff7(0x176)+a0_0x587ff7(0x1cd)+a0_0x587ff7(0x1a4)+a0_0x587ff7(0xbc)+a0_0x587ff7(0x189)+a0_0x587ff7(0x9d)+a0_0x587ff7(0xaf)}}}};function a0_0x396c(_0x266829,_0x50f692){_0x266829=_0x266829-0x68;const _0x409277=a0_0x4092();let _0x396cea=_0x409277[_0x266829];if(a0_0x396c['IQVIuo']===undefined){var _0x4a2383=function(_0x5af9a7){const _0x2a5abc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x173b7a='',_0x915689='';for(let _0x23dff2=0x0,_0x2f40e6,_0x565bb3,_0x927400=0x0;_0x565bb3=_0x5af9a7['charAt'](_0x927400++);~_0x565bb3&&(_0x2f40e6=_0x23dff2%0x4?_0x2f40e6*0x40+_0x565bb3:_0x565bb3,_0x23dff2++%0x4)?_0x173b7a+=String['fromCharCode'](0xff&_0x2f40e6>>(-0x2*_0x23dff2&0x6)):0x0){_0x565bb3=_0x2a5abc['indexOf'](_0x565bb3);}for(let _0x2e9923=0x0,_0x332f20=_0x173b7a['length'];_0x2e9923<_0x332f20;_0x2e9923++){_0x915689+='%'+('00'+_0x173b7a['charCodeAt'](_0x2e9923)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x915689);};a0_0x396c['uzBuKH']=_0x4a2383,a0_0x396c['CMLFUK']={},a0_0x396c['IQVIuo']=!![];}const _0x4746b6=_0x409277[0x0],_0x162ad1=_0x266829+_0x4746b6,_0x26495a=a0_0x396c['CMLFUK'][_0x162ad1];return!_0x26495a?(_0x396cea=a0_0x396c['uzBuKH'](_0x396cea),a0_0x396c['CMLFUK'][_0x162ad1]=_0x396cea):_0x396cea=_0x26495a,_0x396cea;}export const setFolderPermissionsTool={'name':a0_0x587ff7(0x20b)+a0_0x587ff7(0x1a9)+a0_0x587ff7(0x15d)+a0_0x587ff7(0x91)+'ns','description':a0_0x587ff7(0x22a)+a0_0x587ff7(0x22d)+a0_0x587ff7(0x107)+a0_0x587ff7(0x1d7)+a0_0x587ff7(0x91)+a0_0x587ff7(0x246)+a0_0x587ff7(0x1e8)+a0_0x587ff7(0xe6)+a0_0x587ff7(0x174)+a0_0x587ff7(0x122)+a0_0x587ff7(0x99)+a0_0x587ff7(0x14d)+a0_0x587ff7(0x217)+a0_0x587ff7(0x1b9)+a0_0x587ff7(0x19c)+'\x20priv'+'ate\x20f'+a0_0x587ff7(0xc4)+a0_0x587ff7(0x19d)+'ntrie'+'s\x20arr'+'ay.','annotations':{'title':a0_0x587ff7(0x104)+'older'+'\x20Perm'+'issio'+'ns','openWorldHint':!![]},'inputSchema':{'type':a0_0x587ff7(0x89)+'t','properties':{'folder_id':{'type':'strin'+'g','description':a0_0x587ff7(0x1c2)+a0_0x587ff7(0xdc)+a0_0x587ff7(0x1bb)+a0_0x587ff7(0xa4)+').'},'folder_name':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1c2)+a0_0x587ff7(0x196)+a0_0x587ff7(0x15c)+a0_0x587ff7(0x243)+a0_0x587ff7(0x222)+'.'},'space_id':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1dc)+a0_0x587ff7(0x144)+a0_0x587ff7(0x1c4)+'pe\x20na'+a0_0x587ff7(0x12a)+a0_0x587ff7(0x169)},'space_name':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1dc)+a0_0x587ff7(0xee)+a0_0x587ff7(0x1fa)+'cope\x20'+'name\x20'+'looku'+'p.'},'private':{'type':a0_0x587ff7(0xe4)+'an','description':a0_0x587ff7(0x18d)+a0_0x587ff7(0x1a3)+a0_0x587ff7(0x193)+a0_0x587ff7(0x1d9)+a0_0x587ff7(0xb8)+a0_0x587ff7(0x1b1)+'c\x20(fa'+a0_0x587ff7(0x17e)+a0_0x587ff7(0x174)+a0_0x587ff7(0x165)},'entries':{'type':a0_0x587ff7(0x1f9),'description':a0_0x587ff7(0x9c)+a0_0x587ff7(0xe3)+'ermis'+a0_0x587ff7(0xd8)+a0_0x587ff7(0x12d)+a0_0x587ff7(0x1a6)+a0_0x587ff7(0x17c)+a0_0x587ff7(0x115)+'permi'+a0_0x587ff7(0x93)+'_leve'+a0_0x587ff7(0x22b),'items':{'type':a0_0x587ff7(0x89)+'t','properties':{'id':{'type':a0_0x587ff7(0x88)+'r'},'type':{'type':a0_0x587ff7(0x191)+'g'},'permission_level':{'type':'strin'+'g'}},'required':['id',a0_0x587ff7(0x1ed)]}}},'required':['entri'+'es']}};export const createFolderFromTemplateTool={'name':a0_0x587ff7(0x116)+'e_fol'+a0_0x587ff7(0xf7)+a0_0x587ff7(0x155)+a0_0x587ff7(0x188)+'te','description':a0_0x587ff7(0x230)+a0_0x587ff7(0x209)+a0_0x587ff7(0x1a9)+a0_0x587ff7(0x1ff)+'\x20a\x20te'+a0_0x587ff7(0x17b)+a0_0x587ff7(0x1e9)+a0_0x587ff7(0xfb)+a0_0x587ff7(0x16e)+'equir'+a0_0x587ff7(0xae)+a0_0x587ff7(0x202)+a0_0x587ff7(0x199)+a0_0x587ff7(0x181)+a0_0x587ff7(0x113)+a0_0x587ff7(0x79)+'e_id\x20'+'or\x20sp'+a0_0x587ff7(0x175)+a0_0x587ff7(0x173)+a0_0x587ff7(0x22c)+a0_0x587ff7(0x9a)+a0_0x587ff7(0xb1)+a0_0x587ff7(0x1c9)+a0_0x587ff7(0x16b)+a0_0x587ff7(0xf2)+a0_0x587ff7(0x1ad)+a0_0x587ff7(0x23d)+'r\x20ful'+'l\x20cre'+'ation'+a0_0x587ff7(0x1df)+a0_0x587ff7(0x23b)+a0_0x587ff7(0x186)+a0_0x587ff7(0x87)+a0_0x587ff7(0x214)+a0_0x587ff7(0xda)+a0_0x587ff7(0xa6)+'tive\x20'+a0_0x587ff7(0x1d5)+'nt\x20im'+'port.','annotations':{'title':a0_0x587ff7(0x230)+a0_0x587ff7(0xbe)+a0_0x587ff7(0x146)+'rom\x20T'+a0_0x587ff7(0x188)+'te','openWorldHint':!![]},'inputSchema':{'type':a0_0x587ff7(0x89)+'t','properties':{'name':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x183)+a0_0x587ff7(0x149)+a0_0x587ff7(0x16c)+a0_0x587ff7(0x22e)+'der.\x20'+a0_0x587ff7(0x24b)+a0_0x587ff7(0x18f)},'template_id':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1c2)+'r\x20tem'+a0_0x587ff7(0x20c)+a0_0x587ff7(0x13e)+'prefe'+a0_0x587ff7(0x160)+'.'},'template_name':{'type':'strin'+'g','description':a0_0x587ff7(0x1c2)+a0_0x587ff7(0x1f3)+a0_0x587ff7(0x20c)+a0_0x587ff7(0xee)+a0_0x587ff7(0x1be)+'ernat'+a0_0x587ff7(0x109)+a0_0x587ff7(0xa7)+a0_0x587ff7(0x20c)+'_id).'},'space_id':{'type':a0_0x587ff7(0x191)+'g','description':a0_0x587ff7(0x1dc)+'\x20ID\x20('+a0_0x587ff7(0x103)+a0_0x587ff7(0x160)+'.'},'space_name':{'type':a0_0x587ff7(0x191)+'g','description':'Space'+a0_0x587ff7(0xee)+a0_0x587ff7(0x1be)+a0_0x587ff7(0x86)+a0_0x587ff7(0xbf)},'options':{'type':a0_0x587ff7(0x89)+'t','description':'Templ'+'ate\x20i'+a0_0x587ff7(0x1d3)+a0_0x587ff7(0x1f4)+a0_0x587ff7(0x7e)+a0_0x587ff7(0xcb)+'des\x20b'+a0_0x587ff7(0x121)+a0_0x587ff7(0x19a)+a0_0x587ff7(0x185)+'ubtas'+a0_0x587ff7(0x10d)+a0_0x587ff7(0xf5)+'_fiel'+a0_0x587ff7(0x9f)+'riori'+a0_0x587ff7(0x237)+'utoma'+a0_0x587ff7(0x1eb)+a0_0x587ff7(0xaa)+a0_0x587ff7(0x225)+a0_0x587ff7(0x164)+a0_0x587ff7(0x21f)+a0_0x587ff7(0x21c)+a0_0x587ff7(0x13c)+a0_0x587ff7(0x21f)+a0_0x587ff7(0x8f)+a0_0x587ff7(0x206)+a0_0x587ff7(0x114)+a0_0x587ff7(0x133)+a0_0x587ff7(0x1ac)+a0_0x587ff7(0x21f)+'tags,'+'\x20old_'+a0_0x587ff7(0x157)+a0_0x587ff7(0x238)+'old_f'+a0_0x587ff7(0x11d)+a0_0x587ff7(0x22f)+a0_0x587ff7(0xe5)+'hment'+'s,\x20co'+a0_0x587ff7(0xad)+a0_0x587ff7(0x131)+a0_0x587ff7(0xc8)+a0_0x587ff7(0xe5)+a0_0x587ff7(0xc0)+a0_0x587ff7(0x212)+a0_0x587ff7(0x226)+a0_0x587ff7(0x1fb)+a0_0x587ff7(0x77)+a0_0x587ff7(0x167)+a0_0x587ff7(0xb6)+a0_0x587ff7(0x216)+'relat'+a0_0x587ff7(0x10f)+a0_0x587ff7(0x1f6)+a0_0x587ff7(0x137)+a0_0x587ff7(0x240)+a0_0x587ff7(0x200)+a0_0x587ff7(0x204)+a0_0x587ff7(0xd6)+a0_0x587ff7(0x243)+a0_0x587ff7(0x17d)+a0_0x587ff7(0x18b)+a0_0x587ff7(0x1d4)+'\x20Job\x20'+'contr'+a0_0x587ff7(0x172)+a0_0x587ff7(0x213)+a0_0x587ff7(0x20f)+a0_0x587ff7(0xc3)+'ly\x20(b'+a0_0x587ff7(0x121)+'n,\x20de'+'fault'+a0_0x587ff7(0xcf)+').\x20Da'+a0_0x587ff7(0x6f)+'mappi'+a0_0x587ff7(0x7a)+a0_0x587ff7(0x133)+a0_0x587ff7(0x1ac)+a0_0x587ff7(0xd0)+a0_0x587ff7(0x163)+'(ISO\x20'+a0_0x587ff7(0xb2)+a0_0x587ff7(0x191)+a0_0x587ff7(0x1b7)+a0_0x587ff7(0x141)+'_star'+'t_dat'+a0_0x587ff7(0x105)+a0_0x587ff7(0x6e)+a0_0x587ff7(0x1cb)+a0_0x587ff7(0x1c0)+a0_0x587ff7(0x108)+'s).'}},'required':[a0_0x587ff7(0x15b)]}};async function resolveFolderId(_0x2616ed,_0x2c17ca,_0x6b93e7,_0x3296cb,_0x3b6083){const _0x433c83=a0_0x587ff7,_0x32c671={'PpcfR':_0x433c83(0x99)+'r'};if(_0x2616ed)return _0x2616ed;if(!_0x2c17ca)throw new Error('Eithe'+_0x433c83(0x92)+_0x433c83(0x6b)+_0x433c83(0x1de)+_0x433c83(0x99)+_0x433c83(0xd7)+_0x433c83(0xd4)+_0x433c83(0x134)+_0x433c83(0xa9)+_0x433c83(0x236));const {folder:_0x1be241,workspace:_0x36b716}=_0x3b6083;let _0x224d9f=_0x6b93e7;if(!_0x224d9f&&_0x3296cb){const _0x4627d3=await _0x36b716[_0x433c83(0x1e6)+_0x433c83(0x13d)+_0x433c83(0x1c6)](_0x3296cb);if(!_0x4627d3)throw new Error(_0x433c83(0x1dc)+'\x20\x22'+_0x3296cb+(_0x433c83(0x1af)+'\x20foun'+'d.'));_0x224d9f=_0x4627d3['id'];}if(_0x224d9f){const _0x16cfcc=await _0x1be241[_0x433c83(0x8b)+'older'+_0x433c83(0x150)+'e'](_0x224d9f,_0x2c17ca);if(!_0x16cfcc)throw new Error('Folde'+_0x433c83(0x178)+_0x2c17ca+('\x22\x20not'+_0x433c83(0xdf)+_0x433c83(0x1d8)+_0x433c83(0x17a)+'.'));return _0x16cfcc['id'];}const _0xe5cff8=await resolveLocation(_0x32c671[_0x433c83(0x145)],undefined,_0x2c17ca,_0x36b716);return _0xe5cff8['id'];}async function resolveSpaceId(_0x7f2dc9,_0x12c4f5,_0x2aadc7){const _0x16ab9a=a0_0x587ff7,_0x46e4dc={'PTgil':'Eithe'+_0x16ab9a(0x1fd)+_0x16ab9a(0x19e)+_0x16ab9a(0x123)+_0x16ab9a(0xa5)+_0x16ab9a(0xff)+_0x16ab9a(0x224)+_0x16ab9a(0x245)+_0x16ab9a(0x84)+'d.'};if(_0x7f2dc9)return _0x7f2dc9;if(!_0x12c4f5)throw new Error(_0x46e4dc[_0x16ab9a(0x156)]);const _0x4761dd=await _0x2aadc7[_0x16ab9a(0x10a)+_0x16ab9a(0x76)][_0x16ab9a(0x1e6)+_0x16ab9a(0x13d)+_0x16ab9a(0x1c6)](_0x12c4f5);if(!_0x4761dd)throw new Error('Space'+'\x20\x22'+_0x12c4f5+(_0x16ab9a(0x1af)+'\x20foun'+'d.'));return _0x4761dd['id'];}export async function handleManageFolders(_0x3f88ea,_0x4bf809){const _0x115719=a0_0x587ff7,_0x47d993={'dgViF':function(_0xf86a89,_0x457682,_0x1e760e,_0x349811,_0x8fd8c0,_0x59ffa4){return _0xf86a89(_0x457682,_0x1e760e,_0x349811,_0x8fd8c0,_0x59ffa4);},'vblHB':function(_0x44020a,_0x48313e){return _0x44020a===_0x48313e;},'qhBVV':'The\x20\x27'+_0x115719(0x1da)+_0x115719(0x151)+_0x115719(0x121)+_0x115719(0x1f7)+_0x115719(0x207)+_0x115719(0x106)+_0x115719(0x1b4)+_0x115719(0x15e)+'or\x20se'+'t_per'+_0x115719(0x120)+_0x115719(0x147),'ZWAbs':function(_0x55116d,_0x30ab63){return _0x55116d!==_0x30ab63;},'JGJHN':_0x115719(0x16a),'WvMTL':function(_0x23278a,_0x2db3c8,_0x175d7a,_0x1c300b,_0x59b648,_0x133afd){return _0x23278a(_0x2db3c8,_0x175d7a,_0x1c300b,_0x59b648,_0x133afd);},'BCzUF':'updat'+'e','EftWf':function(_0x4751ea,_0x990157){return _0x4751ea===_0x990157;},'vATFq':'At\x20le'+_0x115719(0x1ab)+_0x115719(0x112)+'\x20name'+_0x115719(0x6d)+'verri'+_0x115719(0x18c)+_0x115719(0x8e)+_0x115719(0x1ef)+_0x115719(0x134)+_0x115719(0xa9)+_0x115719(0x211)+_0x115719(0x1b8)+'date.','YTqJw':'move','diMhz':function(_0x62534a,_0x1be448,_0x34b086,_0x48c348,_0x2f888a,_0x4caac6){return _0x62534a(_0x1be448,_0x34b086,_0x48c348,_0x2f888a,_0x4caac6);},'ScLfG':'Error'+_0x115719(0x1ce)+_0x115719(0x1b5)+_0x115719(0x101)+_0x115719(0x10e)+_0x115719(0x12e),'jJipG':'An\x20un'+_0x115719(0xb9)+_0x115719(0x111)+_0x115719(0x7c)+_0x115719(0x7f)},{action:_0x3f6ec0,folder_id:_0x182018,folder_name:_0x2b0d16,space_id:_0x9d508d,space_name:_0x2e219b,name:_0x22bf55,override_statuses:_0x818c90,allow_destructive_fallback:_0x20ddd1}=_0x3f88ea,{folder:_0xb44e79}=_0x4bf809;logger['info'](_0x115719(0x11a)+_0x115719(0x1b0)+_0x115719(0x1b5)+'Manag'+_0x115719(0x10e)+_0x115719(0x12e),{'action':_0x3f6ec0});try{switch(_0x3f6ec0){case _0x115719(0x16f)+_0x115719(0x69)+_0x115719(0x119):{const _0x1a7c36=await _0x47d993['dgViF'](resolveFolderId,_0x182018,_0x2b0d16,_0x9d508d,_0x2e219b,_0x4bf809);if(_0x47d993['vblHB'](_0x3f88ea['priva'+'te'],undefined))return sponsorService[_0x115719(0x116)+'eErro'+_0x115719(0x1e0)+_0x115719(0x192)](_0x47d993[_0x115719(0x152)]);return await _0xb44e79[_0x115719(0x242)+_0x115719(0x13b)+_0x115719(0x6a)](_0x115719(0x99)+'r',_0x1a7c36,{'private':_0x3f88ea[_0x115719(0x1da)+'te'],'entries':_0x3f88ea[_0x115719(0x12d)+'es']||[]}),sponsorService['creat'+_0x115719(0x1a1)+_0x115719(0x192)]({'success':!![],'message':_0x115719(0xd3)+_0x115719(0x93)+'s\x20upd'+'ated\x20'+_0x115719(0x97)+'ssful'+'ly\x20fo'+_0x115719(0x92)+'der\x20\x22'+(_0x2b0d16||_0x182018)+'\x22'},!![]);}case _0x115719(0x116)+'e':{if(!_0x22bf55)return sponsorService[_0x115719(0x116)+_0x115719(0xe8)+_0x115719(0x1e0)+_0x115719(0x192)]('name\x20'+'is\x20re'+'quire'+_0x115719(0xba)+_0x115719(0x1bf)+_0x115719(0x148));const _0x15671a=await resolveSpaceId(_0x9d508d,_0x2e219b,_0x4bf809),_0x17584e={'name':_0x22bf55};if(_0x47d993[_0x115719(0xed)](_0x818c90,undefined))_0x17584e[_0x115719(0x234)+_0x115719(0x1a7)+_0x115719(0x110)+'es']=_0x818c90;const _0x36a9c8=await _0xb44e79[_0x115719(0x116)+_0x115719(0x10e)+'er'](_0x15671a,_0x17584e);return sponsorService[_0x115719(0x116)+_0x115719(0x1a1)+_0x115719(0x192)]({'id':_0x36a9c8['id'],'name':_0x36a9c8[_0x115719(0x15b)],'space':{'id':_0x36a9c8[_0x115719(0x17a)]['id'],'name':_0x36a9c8[_0x115719(0x17a)][_0x115719(0x15b)]},'message':_0x115719(0x1c2)+_0x115719(0x178)+_0x36a9c8[_0x115719(0x15b)]+(_0x115719(0x129)+_0x115719(0x83)+_0x115719(0x97)+'ssful'+'ly')},!![]);}case _0x47d993[_0x115719(0xcd)]:{const _0x26f419=await _0x47d993[_0x115719(0xd9)](resolveFolderId,_0x182018,_0x2b0d16,_0x9d508d,_0x2e219b,_0x4bf809),_0x160231=await _0xb44e79[_0x115719(0xc5)+_0x115719(0x177)](_0x26f419);return sponsorService[_0x115719(0x116)+'eResp'+'onse']({'id':_0x160231['id'],'name':_0x160231[_0x115719(0x15b)],'orderindex':_0x160231[_0x115719(0x248)+'index'],'override_statuses':_0x160231[_0x115719(0x234)+_0x115719(0x1a7)+_0x115719(0x110)+'es'],'hidden':_0x160231['hidde'+'n'],'task_count':_0x160231[_0x115719(0x1dd)+'count'],'space':{'id':_0x160231[_0x115719(0x17a)]['id'],'name':_0x160231[_0x115719(0x17a)][_0x115719(0x15b)]},'statuses':_0x160231[_0x115719(0x157)+_0x115719(0x201)],'lists':_0x160231[_0x115719(0xb4)]?.[_0x115719(0x223)](_0x24634c=>({'id':_0x24634c['id'],'name':_0x24634c[_0x115719(0x15b)],'task_count':_0x24634c[_0x115719(0x1dd)+'count'],'orderindex':_0x24634c[_0x115719(0x248)+_0x115719(0x1b3)]}))},!![]);}case _0x47d993[_0x115719(0x179)]:{const _0x593571=await _0x47d993[_0x115719(0x19f)](resolveFolderId,_0x182018,_0x2b0d16,_0x9d508d,_0x2e219b,_0x4bf809);if(!_0x22bf55&&_0x47d993[_0x115719(0x208)](_0x818c90,undefined))return sponsorService[_0x115719(0x116)+'eErro'+'rResp'+'onse'](_0x47d993[_0x115719(0x1d1)]);const _0x216b84={};if(_0x22bf55)_0x216b84['name']=_0x22bf55;if(_0x818c90!==undefined)_0x216b84[_0x115719(0x234)+_0x115719(0x1a7)+'tatus'+'es']=_0x818c90;const _0x1e5ca9=await _0xb44e79[_0x115719(0xa3)+'eFold'+'er'](_0x593571,_0x216b84);return sponsorService[_0x115719(0x116)+_0x115719(0x1a1)+'onse']({'id':_0x1e5ca9['id'],'name':_0x1e5ca9[_0x115719(0x15b)],'orderindex':_0x1e5ca9[_0x115719(0x248)+_0x115719(0x1b3)],'override_statuses':_0x1e5ca9[_0x115719(0x234)+_0x115719(0x1a7)+_0x115719(0x110)+'es'],'hidden':_0x1e5ca9[_0x115719(0x1f5)+'n'],'task_count':_0x1e5ca9[_0x115719(0x1dd)+_0x115719(0xb3)],'space':{'id':_0x1e5ca9[_0x115719(0x17a)]['id'],'name':_0x1e5ca9[_0x115719(0x17a)][_0x115719(0x15b)]},'message':'Folde'+_0x115719(0x178)+_0x1e5ca9[_0x115719(0x15b)]+('\x22\x20upd'+_0x115719(0x83)+'succe'+_0x115719(0x187)+'ly')},!![]);}case _0x115719(0x24c)+'e':{const _0x264a41=await resolveFolderId(_0x182018,_0x2b0d16,_0x9d508d,_0x2e219b,_0x4bf809),_0x1130f6=await _0xb44e79[_0x115719(0xc5)+_0x115719(0x177)](_0x264a41),_0x83e14f=_0x1130f6[_0x115719(0x15b)];return await _0xb44e79['delet'+'eFold'+'er'](_0x264a41),sponsorService[_0x115719(0x116)+_0x115719(0x1a1)+_0x115719(0x192)]({'success':!![],'message':_0x115719(0x1c2)+_0x115719(0x178)+_0x83e14f+(_0x115719(0x78)+'eted\x20'+_0x115719(0x97)+_0x115719(0x187)+'ly')},!![]);}case _0x47d993[_0x115719(0x80)]:{const _0xd93dd5=await _0x47d993['diMhz'](resolveFolderId,_0x182018,_0x2b0d16,undefined,undefined,_0x4bf809),_0x1cb9d5=await resolveSpaceId(_0x9d508d,_0x2e219b,_0x4bf809),_0x3e5f80=await _0xb44e79[_0x115719(0xdd)+_0x115719(0x1a9)](_0xd93dd5,_0x1cb9d5,_0x20ddd1);return sponsorService[_0x115719(0x116)+_0x115719(0x1a1)+_0x115719(0x192)]({'id':_0x3e5f80['id'],'name':_0x3e5f80['name'],'space':{'id':_0x3e5f80[_0x115719(0x17a)]['id'],'name':_0x3e5f80['space'][_0x115719(0x15b)]},'url':a0_0x1a1b60[_0x115719(0x233)+_0x115719(0x184)+'Url']+'/'+a0_0x1a1b60[_0x115719(0x233)+_0x115719(0x14a)+_0x115719(0x23a)]+_0x115719(0x244)+_0x3e5f80['id'],'message':_0x115719(0x1c2)+_0x115719(0xe1)+_0x115719(0x1f0)+_0x115719(0x249)+'fully'+'\x20to\x20s'+'pace\x20'+'\x22'+_0x3e5f80[_0x115719(0x17a)][_0x115719(0x15b)]+(_0x115719(0xf1)+'w\x20Fol'+_0x115719(0xe7)+_0x115719(0x24d))+_0x3e5f80['id']},!![]);}default:return sponsorService['creat'+'eErro'+_0x115719(0x1e0)+_0x115719(0x192)](_0x115719(0x1ee)+'wn\x20ac'+_0x115719(0xf6)+'\x20'+_0x3f6ec0+(_0x115719(0x1a2)+_0x115719(0x190)+_0x115719(0x85)+_0x115719(0x220)+_0x115719(0x206)+'get,\x20'+_0x115719(0xa3)+_0x115719(0x138)+_0x115719(0x159)+'\x20move'+'.'));}}catch(_0x111a2c){return logger[_0x115719(0x7d)](_0x47d993[_0x115719(0x221)],_0x111a2c),sponsorService[_0x115719(0x116)+_0x115719(0xe8)+_0x115719(0x1e0)+_0x115719(0x192)](_0x111a2c['messa'+'ge']||_0x47d993['jJipG']);}}export async function handleCreateFolderFromTemplate(_0x5627d9,_0x28eb11){const _0x214b96=a0_0x587ff7,_0x59bb4d={'InDhT':'name\x20'+_0x214b96(0x12b)+_0x214b96(0x227)+'d.','zMAvU':function(_0x371177,_0x261186,_0x521ada,_0x5e1944){return _0x371177(_0x261186,_0x521ada,_0x5e1944);},'EwqjX':function(_0x76fa80,_0x10492b){return _0x76fa80===_0x10492b;},'MVYDo':function(_0x6cbf64,_0x245205){return _0x6cbf64!==_0x245205;},'PTEWd':_0x214b96(0x9a)+_0x214b96(0xb1)+'ediat'+_0x214b96(0x128),'XJGao':_0x214b96(0x8f)+_0x214b96(0x1d0),'CpGQP':_0x214b96(0x1ea)+_0x214b96(0x12c)+'nds','mLtcD':_0x214b96(0x10c)+_0x214b96(0x74),'TOyCk':_0x214b96(0x232)+_0x214b96(0x210)+'te','pMdpd':_0x214b96(0x7b)+'ollow'+_0x214b96(0x12e),'IOMaI':_0x214b96(0xe5)+_0x214b96(0xc0)+'s','uGXPy':_0x214b96(0x228)+'nt','CREpt':_0x214b96(0x158)+'known'+'\x20erro'+_0x214b96(0x7c)+_0x214b96(0x7f)},{name:_0x373e4b,template_id:_0x35a94c,template_name:_0x4e7c29,space_id:_0x305361,space_name:_0x502007}=_0x5627d9;try{if(!_0x373e4b)return sponsorService[_0x214b96(0x116)+_0x214b96(0xe8)+_0x214b96(0x1e0)+'onse'](_0x59bb4d['InDhT']);const _0x7493f5=await _0x59bb4d[_0x214b96(0x1fe)](resolveTemplateId,_0x35a94c,_0x4e7c29,_0x28eb11),_0x4c5fc0=await resolveSpaceId(_0x305361,_0x502007,_0x28eb11);let _0xb7ba3e=_0x59bb4d['EwqjX'](typeof _0x5627d9['optio'+'ns'],_0x214b96(0x89)+'t')&&_0x59bb4d['MVYDo'](_0x5627d9[_0x214b96(0x71)+'ns'],null)?{..._0x5627d9[_0x214b96(0x71)+'ns']}:{};if(Object[_0x214b96(0x72)](_0xb7ba3e)['lengt'+'h']===0x0){const _0x46de02=[_0x59bb4d['PTEWd'],_0x214b96(0x1cf)+_0x214b96(0x171),_0x59bb4d['XJGao'],_0x214b96(0x141)+'_star'+_0x214b96(0xc2)+'e',_0x59bb4d['CpGQP'],_0x214b96(0x142)+_0x214b96(0xf3),_0x214b96(0x73)+'m_fie'+'lds','prior'+_0x214b96(0x1bd),_0x59bb4d[_0x214b96(0x23f)],_0x214b96(0x235)+_0x214b96(0xfe)+_0x214b96(0x16d),'old_a'+_0x214b96(0x239)+_0x214b96(0x1e5),_0x59bb4d[_0x214b96(0x11c)],_0x214b96(0x114)+'tart_'+'date',_0x214b96(0x11e)+_0x214b96(0x1a8),'old_s'+_0x214b96(0x110)+'es',_0x59bb4d[_0x214b96(0x1ae)],_0x59bb4d['IOMaI'],_0x59bb4d['uGXPy'],_0x214b96(0x228)+_0x214b96(0x1c7)+'tachm'+_0x214b96(0x1cc),_0x214b96(0x1ba)+_0x214b96(0xa8)+'ings',_0x214b96(0x198)+'heckl'+_0x214b96(0x135),_0x214b96(0x1ca)+_0x214b96(0x10f)+_0x214b96(0x1d2),_0x214b96(0x137)+_0x214b96(0x240)+'epend'+_0x214b96(0x204)+'s',_0x214b96(0xab)+_0x214b96(0x240)+'epend'+_0x214b96(0x204)+'s'];for(const _0x2b5729 of _0x46de02){if(_0x59bb4d[_0x214b96(0xf9)](_0x5627d9[_0x2b5729],undefined))_0xb7ba3e[_0x2b5729]=_0x5627d9[_0x2b5729];}}const _0x28b967=await _0x28eb11[_0x214b96(0x99)+'r'][_0x214b96(0x116)+'eFold'+_0x214b96(0x1c3)+_0x214b96(0x15a)+_0x214b96(0x21d)](_0x4c5fc0,_0x7493f5,_0x373e4b,_0xb7ba3e),_0x46187c=_0x28b967?.[_0x214b96(0x99)+'r']||_0x28b967;return sponsorService[_0x214b96(0x116)+'eResp'+_0x214b96(0x192)]({'id':_0x46187c['id']||_0x28b967['id'],'name':_0x46187c['name'],'space':_0x46187c[_0x214b96(0x17a)]?{'id':_0x46187c[_0x214b96(0x17a)]['id'],'name':_0x46187c[_0x214b96(0x17a)][_0x214b96(0x15b)]}:undefined,'message':_0x214b96(0x1c2)+_0x214b96(0x178)+_0x373e4b+(_0x214b96(0x129)+_0x214b96(0x83)+_0x214b96(0x19b)+_0x214b96(0xa0)+_0x214b96(0xd2)+_0x214b96(0x1a0)+'sfull'+'y')},!![]);}catch(_0x5bd591){return logger[_0x214b96(0x7d)]('Error'+_0x214b96(0x1ce)+_0x214b96(0x1b5)+'Creat'+_0x214b96(0x10e)+_0x214b96(0x1c3)+_0x214b96(0x15a)+_0x214b96(0x21d),_0x5bd591),sponsorService['creat'+_0x214b96(0xe8)+_0x214b96(0x1e0)+_0x214b96(0x192)](_0x5bd591[_0x214b96(0xb5)+'ge']||_0x59bb4d[_0x214b96(0x166)]);}}function a0_0x4092(){const _0x4d0102=['zhvLx2q','igzVBgq','AxnZAw8','CIbMB2W','C3nPB24','igfYy2G','BgrLCIa','vxbKyxq','C3vJy2u','Dw50ig8','zM9Szgu','CMv0Dxi','ywXSigy','qxjYyxK','DdOGzMe','DwXSig0','zhmSiha','DgvTCgW','ody1mZK1ovjvEMTbza','DMLNyxq','DxbKyxq','zxjYzwq','CgfJzv8','C2vSzwm','BYb0zw0','x3nLDhq','ChjVDMK','igLUy2W','Aw50zxi','igXPC3q','Bw1LBNq','zxm6ig4','BhnLlG','zMfSC2u','BL9PBw0','odyWmsa','y291BNq','BgLZDhm','BwvZC2e','zwnRBgK','Dhj1zsa','ksbVCIa','A25VD24','zcbMB3i','C2TFy28','AwWUieq','mtaYoduZmuvnD2rPEG','zsbgB2W','AxzLks4','Ag1LBNq','Aw4Gysa','Df9Kyxq','zgLHDgu','BgfNlca','z2v0rM8','Bg9VA3u','zcbPDhm','BwvUDf8','j2rLDge','ihnWywm','sw5JBhu','CYbPBIa','sKDkse4','Aw9Uihm','ihrYDwu','igr1zv8','CguGBMe','yxrLihm','ugvYBwK','zsbTDxm','DgfPBgu','CYWGAw4','CL9Uyw0','C2LVBIa','v3znveW','igfUzca','zMvYCMu','CIbjrca','Bw92zuy','DwX0oIa','igzVDw4','CM5Zigy','CIbTB3y','zsbMB2W','ig9Miha','yM9VBgu','yxr0ywm','BgrLCI4','zgvYieK','zuvYCM8','lIbvC2u','B24Tzgu','mJCXnvzyue5LvW','mZCXmJq5ntbWww1rzfy','wLDbyNm','ig5HBwu','zgvYihq','AxzLzd0','iI4GtMu','ywXZzsa','C2TZ','ywX0zxi','Dxn0B20','DgLVBJO','zgvYx2y','C3rYDwm','tvzzrg8','zxiGyw4','ysbZCge','icHWCMu','CgfJzs4','zgvFDMK','BMfTzsa','zxrHzge','twfUywC','zgvYCY4','ChjLzMu','u2v0iey','zsWGC2S','CIbPCYa','EsbHBMq','B2XLyw4','AxzLihq','D29YA3m','BNqGBMe','yxv0B20','A3mSigm','zuzVBgq','Aw9UC2G','Dgf0Dxm','igvYCM8','BMuGB2y','AwqGkYa','B2XKx3m','ExbLlca','y3jLyxq','rgvZDgK','AxzLzca','C2LVBNm','sgfUzgW','AwrLihm','ve95q2S','B2XSB3C','B2XKx3q','igv2zw4','BwLZC2K','B29Szwe','AxjLCYa','ig9Yihm','B3iGzwy','BMf0Aw8','ig1VDMu','C2vZlG','zwX5','iIbJCMu','BwuGBg8','AxmGCMu','D2vLA2u','zw50CMK','zxjZ','zgv0ywK','qwXSB3C','lcbJB20','sezstxC','DgfYDf8','DcbIzsa','Axn0CW','kYbKzxm','zxH0zxi','zsWGzgu','zxCGzM8','zgvYig4','CM1PC3m','BMvLCYW','CgfJzui','ieLeicG','zsKU','tgLZDca','CMvTyxa','C3vIDge','CMjVC2K','ieLeihq','uhbJzLi','zgvYigy','B25ZlG','DguU','zM9Yihq','Dxbuzwe','AwXLzcC','mMzqqM9Vsq','CL9Pzca','zxf1Axi','ndG2otC2mKjAuwXNCG','qNLoyw0','DguNigi','CwHcvLy','tgLZDey','zxiU','CM9Tx3q','ufrNAwW','C3rHDhu','qw4GDw4','Bgv0zsW','BvrLBxa','BMfTzq','zsaOywW','x3bLCM0','CMvKigy','Bw92zv8','CNjLzcK','C2uGDMu','zv9Uyw0','zgf0zsa','Awv3CYW','AxjLzc4','q1jfChq','BgrFy2G','rcaOChi','B2T1Cc4','z2v0','zwX5pwy','AguGBMu','zxDZ','y2uUifi','C2v0x3a','CY4GuMu','x2rHDgu','B2W6ihi','yw1Lks4','ifjLCxu','ywnLx24','DgL2zsa','BgrLCG','CIaI','qKn6vuy','C3bHy2u','BxbSyxq','AwqSihq','Bf9Kzxa','BhnLks4','zxnWB24','zcKU','Bgf0zv8','tMv3igy','tMfTzsa','DxbbCha','z3m6ihm','igrHDgu','C3nMDwW','zw1WBge','zwzHDwW','CYbMB2W','zw5Kzw4','zgvFC3q','u2v0ihq','zwzLCNi','CMvKlG','AwqGywm','C3rYAw4','B25Zzq','DMf0zsa','DxjUCYa','Dg8GAw4','CIbUyw0','z3mU','B2XKx2m','ihrLBxa','BIbMBge','zNjVBsa','BMfTzsW','yw5Kigu','y2vFAwq','zgDwAuy','DwnJzxm','zvjLC3a','lIbwywW','BYbWCMK','zhmGzMe','y29Wzsa','zxmGEYa','AwrLx3m','ywDZ','B2XKzxi','mJK3mdCZnLjpCKj4za','yxn0ig8','zgf0zsW','Dg8GD2e','Ce1KCgq','iIbUB3q','Aw5NigG','ChvIBgK','BIbZCge','Aw5KzxG','CMvXDwK','yw5KBgu','zv9MB2W','z3mPlca','B3iGDxa','BgrLCL8','CMvJDxi','khbYzwy','yw1LicG','Axr5','icHHBhq','ignYzwe','CYaOyM8','BYbHigq','rM9Szgu','zxjgCM8','BYbZy28','BgrLCNm','Eu5HBwu','BNrFyxq','q29UDhi','zwrPyxq','CMvSyxq','zwTLBMq','zw50CW','Bwv0Ag8','igLUigG','C3rHCNq','yxrL','DKfurNe','AxbZ','BxbVCNq','y2LLCY4','y29UDgu','AwqVBMe','ihbLCM0','zcbPBIa','khrYDwu','ChjPDMe','y2uGBMe','u3bHy2u','DgfZA18','zcbVCIa','lIbtDxa','CLjLC3a','CNmU','rxjYB3i','r2v0ige','y2HPDMu','zwvZ','zMLUzfm','ihjLDhu','igeGzM8','zsbPBIa','C2TPCf8','DgLVBIW','AwqGB3i','DhLWzq','vw5RBM8','CYbTDxm','zwqGC3u','mtKWmdGZovfXAhjAzq','j3mGBMe','CIb0zw0','ig9WDgK','AgLKzgu','AxbZlca','BIbWyxi','n0vqChrQAG','yxjYyxK','ihrVihm','zxr0Aw4','DwLYzxm','CIbZCge','EK1bDLu','igzYB20','zxbLBMq','C2vZ','yw1LicS','zwrlzeK','zw5JAwu','z2v0x2y','yxrLlca','yw1LDgu','rwz0v2y','zsbHigy','BgvK','C2v0x2y','CgXHDgu','tw92zsa','BwuGkge','x2LTBwu','DwvFzge','zgvKigy','CYWGCMu','zxr1CM4','ChbPBMC','BMX5igy','C3rZlca','B3iGzM8','igL0CYa','x25HBwu','ywnLx2K','icSGC3a','yxnZAwC','Bgf0zq','zsbHig4','ig9Szf8','oIbJCMu','u2nmzKC','DgL2zsK','BwfW','BxvZDca','DwrLx3y','y3vYx3m','CxvPCMu','y29TBwu','ugvYBwe','u2v0iha','Bcb9lG','ifvZzsa','CML2ywm','DYbMB2W','zxjZlca','q3jLyxq','BMf0Axy','B2XKx2q','y2XPy2S','B3zLCNi','Aw5JBhu','zgvKlG','DhKSige','C2vZlca','C3nPz24','BuLK','Cg9YDhm','yxrPDMu','AxqGzM8','zw50ihm','BuX0y0q','BMfSx2q','DdOGzgu','C2v0ugu','DgvYBMe','l3yVzI8','yMuGChi','BNmGB24','y29UzMK','B3jKzxi','y2nLC3m','CgfJzsa','uMvXDwK','zgvSzxq','rdOG','u291CMm','zxjTAxm','Aw9UCW','zgvYx2K','BMfTzxm','ig9Yig8','AxbFD2u','DguGCMu','DhKUicC','B3b0Aw8','A2v5CW','y3vZDg8','yxrPB24','zgvY','CgfJzq','z3mSig8','iIbKzwW','khnWywm','BMC6ihm','B2XKx2y','CIbVy2m','zxjYB3i','B25ZlIa','DxjYzwq','wvrXsNC','sw5tCge','jYbYzxq','yxrLzca','B3zPzgu','DgLVBNm','zxjUyxq','ihjLBwe','BNvTyMu','B2jQzwm','zcbMB2W','zMLUzey','z3vYyxq','nJC5nNLPz21KrW','yxr1C2u'];a0_0x4092=function(){return _0x4d0102;};return a0_0x4092();}export async function handleListFolders(_0x17cfa8,_0x24d6e0){const _0xcb12f1=a0_0x587ff7,_0x1534f6={'HFRMw':function(_0x33323d,_0x1ec638){return _0x33323d===_0x1ec638;},'SsmEY':_0xcb12f1(0x6c),'edKdI':_0xcb12f1(0x1e2)+_0xcb12f1(0x1ce)+_0xcb12f1(0x1b5)+_0xcb12f1(0x153)+_0xcb12f1(0x1a9)+'s','ejpSG':_0xcb12f1(0x158)+'known'+'\x20erro'+_0xcb12f1(0x7c)+_0xcb12f1(0x7f)},{space_id:_0x542d3b,space_name:_0x3e482b,archived:_0x4a9fb3,detail_level:detail_level=_0xcb12f1(0x12f)+_0xcb12f1(0x20a)}=_0x17cfa8,{folder:_0x2fd1ae}=_0x24d6e0;try{const _0x22379f=await resolveSpaceId(_0x542d3b,_0x3e482b,_0x24d6e0),_0x485d5d=await _0x2fd1ae[_0xcb12f1(0xc5)+_0xcb12f1(0x1c5)+_0xcb12f1(0x81)+'ce'](_0x22379f,_0x4a9fb3);if(_0x1534f6[_0xcb12f1(0x132)](detail_level,_0x1534f6['SsmEY']))return sponsorService['creat'+_0xcb12f1(0x1a1)+_0xcb12f1(0x192)]({'folders':_0x485d5d[_0xcb12f1(0x223)](_0x3ce00c=>({'id':_0x3ce00c['id'],'name':_0x3ce00c[_0xcb12f1(0x15b)],'task_count':_0x3ce00c[_0xcb12f1(0x1dd)+_0xcb12f1(0xb3)]}))},!![]);return sponsorService['creat'+'eResp'+_0xcb12f1(0x192)]({'folders':_0x485d5d[_0xcb12f1(0x223)](_0x2267fb=>({'id':_0x2267fb['id'],'name':_0x2267fb['name'],'task_count':_0x2267fb[_0xcb12f1(0x1dd)+_0xcb12f1(0xb3)],'hidden':_0x2267fb[_0xcb12f1(0x1f5)+'n'],'space':{'id':_0x2267fb['space']['id'],'name':_0x2267fb['space'][_0xcb12f1(0x15b)]}}))},!![]);}catch(_0x1f7937){return logger['error'](_0x1534f6[_0xcb12f1(0x203)],_0x1f7937),sponsorService[_0xcb12f1(0x116)+_0xcb12f1(0xe8)+_0xcb12f1(0x1e0)+_0xcb12f1(0x192)](_0x1f7937['messa'+'ge']||_0x1534f6['ejpSG']);}}
|
|
1
|
+
const a0_0x5c7808=a0_0x4ea6;(function(_0x477590,_0x21ff15){const _0x17c09e=a0_0x4ea6,_0x19e0d8=_0x477590();while(!![]){try{const _0x6d88a=parseInt(_0x17c09e(0x168))/0x1+parseInt(_0x17c09e(0x179))/0x2+-parseInt(_0x17c09e(0x1ee))/0x3+parseInt(_0x17c09e(0x176))/0x4*(-parseInt(_0x17c09e(0x273))/0x5)+-parseInt(_0x17c09e(0x263))/0x6+-parseInt(_0x17c09e(0x203))/0x7+parseInt(_0x17c09e(0x251))/0x8;if(_0x6d88a===_0x21ff15)break;else _0x19e0d8['push'](_0x19e0d8['shift']());}catch(_0x5f9422){_0x19e0d8['push'](_0x19e0d8['shift']());}}}(a0_0x595c,0x9dc09));import{Logger}from'../logger.js';import a0_0x35c426 from'../config.js';import{resolveLocation,resolveTemplateId}from'../utils/resolver-utils.js';import{sponsorService}from'../utils/sponsor-service.js';function a0_0x4ea6(_0x12873f,_0x56752f){_0x12873f=_0x12873f-0x158;const _0x595c6d=a0_0x595c();let _0x4ea612=_0x595c6d[_0x12873f];if(a0_0x4ea6['sMcMDz']===undefined){var _0x175033=function(_0x45cd2d){const _0x214259='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x20887b='',_0x3a2a6a='';for(let _0x14cd4f=0x0,_0x4a46cb,_0x14e04f,_0x4fbb80=0x0;_0x14e04f=_0x45cd2d['charAt'](_0x4fbb80++);~_0x14e04f&&(_0x4a46cb=_0x14cd4f%0x4?_0x4a46cb*0x40+_0x14e04f:_0x14e04f,_0x14cd4f++%0x4)?_0x20887b+=String['fromCharCode'](0xff&_0x4a46cb>>(-0x2*_0x14cd4f&0x6)):0x0){_0x14e04f=_0x214259['indexOf'](_0x14e04f);}for(let _0x17b0e3=0x0,_0x2d2cb0=_0x20887b['length'];_0x17b0e3<_0x2d2cb0;_0x17b0e3++){_0x3a2a6a+='%'+('00'+_0x20887b['charCodeAt'](_0x17b0e3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a2a6a);};a0_0x4ea6['XxLbCt']=_0x175033,a0_0x4ea6['QiMKUl']={},a0_0x4ea6['sMcMDz']=!![];}const _0x44bb6e=_0x595c6d[0x0],_0x5b709b=_0x12873f+_0x44bb6e,_0x9889ce=a0_0x4ea6['QiMKUl'][_0x5b709b];return!_0x9889ce?(_0x4ea612=a0_0x4ea6['XxLbCt'](_0x4ea612),a0_0x4ea6['QiMKUl'][_0x5b709b]=_0x4ea612):_0x4ea612=_0x9889ce,_0x4ea612;}const logger=new Logger(a0_0x5c7808(0x221)+'rTool'+'s');function a0_0x595c(){const _0x44044c=['tw92zsa','iI4GtMu','ksbVCIa','B25Zzq','C3rZlca','igzVBgq','igfYy2G','l3yVBY8','z3mPlca','zxjgCM8','D2vLA2u','yxv0B20','DcbIzsa','DgLVBNm','BxbSyxq','y2uUifi','mJy3mdeZnu5nDND3qG','BMfSx2q','C2LVBNm','ifjLCxu','B2XSB3C','zxH0zxi','zgvSzxq','y29Wzsa','zxjZlca','lIbwywW','AwrLihm','zgvFDMK','igXPC3q','D24Gywm','ChvIBgK','z3mSig8','zMf1Bhq','B2XKx3q','B2XZihi','vxbKyxq','Dgf0Dxm','nta2mdCXm3b0zfDerq','C2TZ','sgfUzgW','BgLZDhm','u291CMm','zgvYx2K','CgfJzui','BMrZ','u2v0iha','BIbWyxi','igLUigG','AxbZlca','ywnLx24','zxrHzge','AxzLzd0','BgrZ','DgfYDf8','zvjLC3a','CYb1Cgq','BNmGB24','tgLZDca','igvYCM8','r2v0ige','yxrLigK','zcbMB2W','BMX5igy','ig9Szf8','BwLZC2K','zwzLCNi','y29UDhi','rM9Szgu','BwvZC2e','zxrLzca','ks4Grge','BMvLCYW','igL0CYa','yw1jza','CgfJzq','y291BNq','DxbKyxq','CMvTyxa','CYbPBIa','C2vZ','DxrVBwe','lIbtDxa','BhrLCM4','BwvUDf8','CxvPCMu','icHHBhq','y2LLCY4','iIb1Cgq','Bw1LBNq','C3rHCNq','C2TFy28','zw5Kzw4','AxjLCYa','zwvZ','BIbZCge','y2XPy2S','zguGyxi','AfnsB3u','ihnWywm','yxrPDMu','CvrTsLi','rdOG','zgvYieK','z3vYyxq','icHWCMu','vxjS','uMvXDwK','zgvYigy','CLjLC3a','zM9Szgu','DgvYBMe','yM9VBgu','u2v0iey','iePVyIa','zxr0Aw4','nZK3mdCYmgrwshb6sa','kYbKzxm','ugvYBwe','C3nMDwW','yMuGChi','zxDZ','AxbZ','z2v0lca','tgLZDey','ifbLCM0','BNqGBMe','B29Szwe','CgfJzv8','zgf0zsW','Aw4Gysa','B3iGC2u','CL9Uyw0','zgf0zq','mZiZnZK0ohzszgDmDG','CNjLzcK','zwrPyxq','CIbVy2m','j3mGBMe','B3iGzwy','zMLUzey','CMvKlG','EsbHBMq','zxjYzwq','C3rYAw4','B2XKzxi','iIbUB3q','zxf1Axi','A2v5CW','rgvSzxq','nJuYnJC1AMLotKjY','C2LVBIa','qvHdyM4','igzYB20','igrHDgu','C3vIDge','CMv0Dxi','BhKGzM8','C2v0ugu','zxmGEYa','C3rYDwm','BMf0Aw8','y2uGsuq','B3iGzM8','zgf0zsa','AxzLzca','u2v0ihq','DguGCMu','q3jLyxq','zxm6ig4','CY4GuMu','AxqGzM8','yxn0ig8','DwrLx3y','DdOGzgu','C3nPB24','BgrFy2G','DdOGzMe','zgvYihq','DgLVBJO','B3zLCNi','ChbPBMC','CYWGAw4','AxjLzc4','BYbHigq','y2uGBMe','x2rHDgu','BYb0zw0','CIbPCYa','Bgf0zq','C2v0x2y','Aw5JBhu','B2XLyw4','DwvVqLa','zv9Pzca','zuvYCM8','zxiU','B3jKzxi','Ag1LBNq','zsbgB2W','AgvJA2W','rgvZDgK','zxjUyxq','DgfNCYW','zxmGC3a','zs4GuMu','ANzsDxu','AwrLx3m','B2XKx2y','DgLVBIW','vgHLicC','Aw9UCW','AwXRrg4','Bg9VA3u','C2TPCf8','BgvK','AxzLks4','zhvLx2q','Eu5HBwu','CguGBMe','zw5JAwu','CYWGCMu','B24Tzgu','z2v0vgu','ihrVihm','BwfWCgK','yxrLigy','zcbPBIa','Bv9MAwu','DwXSig0','yxrLzca','yxrLihm','Dwj0yxm','yxrLlca','B3b0Aw8','Aw5NigG','Dhj1zsa','x2LTBwu','CIaI','B25ZlIa','yxjYyxK','lIbvC2u','ysbZCge','x3n0yxi','C2vSzwm','BMfTzxm','zwqGC3u','iIbKzwW','DwnJzxm','y3jLyxq','CIbjrca','BIbMBge','BNvTyMu','DYbgB2W','Dxn0B20','zw50CW','BgrLCG','Dg8GD2e','BgfNlca','ihbYAxy','qNLoyw0','C3rHDhu','AxmGCMu','BxvZDca','svvxt3y','y2nLC3m','zgvYx2y','CYaOyM8','zgvKigy','qw4GDw4','CM9Tifq','Aw9UlIa','yxrL','BNrFyxq','CgvYBwK','zgvYig4','qwXSB3C','u3bHy2u','khnWywm','zML5Cu0','BvrLBxa','ihjLDhu','Bgv0zsW','ieLeicG','B2T1Cc4','DguU','CM9Tx3q','igeGzM8','yxrPB24','igr1zv8','z2v0rM8','zxiGyw4','zxbLBMq','y3vYx3m','yxr1C2u','BMf0Axy','lcbJB20','BhfSyKi','Axr5','CMLVCMK','Cg9YDhm','zMfSC2u','AeH6te8','zgvY','DgfJAg0','khbYzwy','ywnLx2K','CIbTB3y','yvbvt0O','zMvYCMu','CIb0zw0','q29UDhi','keLttYa','B25ZlG','zv9MB2W','BMC6ihm','zgvYCY4','Bw92zq','ig5HBwu','Axn0CW','C2uGDMu','ChjPDMe','AwqVBMe','zM9Yihq','yxKU','BgvUz3q','zv9Uyw0','zMLUzfm','A25VD24','y2vFAwq','igzVDw4','CIbUyw0','tMfTzsa','BMuGB2y','zcbPDhm','ChjPB3i','zgvYici','CgfJzs4','zsbHig4','t3zLCNi','DgLUyxq','DgL2zsK','ihbLCM0','DxjYzwq','BhnLks4','zsaOywW','BwfW','zgv0ywK','B2XKx3m','Bw92zuy','zgvKlG','ChjVDMK','zhmSiha','zxjZ','B3iGC3a','B2XKx2q','BhKGkgi','zhmGzMe','BgrLCL8','B2jQzwm','CMvJDxi','yw5KBgu','ig1VDMu','DwLYzxm','zcKU','u3nrwKO','CYWGy28','zxjYB3i','y2X1zgu','mteWnJu0nxfUq2nyvq','CMjVC2K','khrYDwu','AwWUieq','zNjVBsa','DYbMB2W','zcbVCIa','AwqSihq','y29UzMK','ywXSigy','DgL2zsa','y3vZDg8','C2v0x3a','zw50ihm','nePWuuLwDW','u1nVCg4','ig9Yihm','mty1mJKZmhnrshPUEG','wLLJt3G','CIbMDwW','ChjLzMu','Aw9Uihm','t1DjtM4','zwzHDwW','BNrYAwu','BKjvDgq','x2LKks4','AgLKzgu','CNmU','DMf0zsa','ierLzMe','zw50CMK','DgfZA18','C2z1BgW','igLMig4','zwX5pwy','C3bHy2u','ywX0zxi','Dw50ig8','zsWGC2S','AxnZAw8','sw5tCge','zwX5','yxr0ywm','AwqGkYa','BMfTzq','Aw9UC2G','CgfJzsa','yYaOzMe','x3bLCM0','rcaOChi','BwuGBg8','ysbMB2W','Cuz1C3m','EsbYzw0','zwTLBMq','CYKU','Aw5KzxG','igfUzca','DguNigi','BgrLCI4','AguGBMu','yw1LicS','CMvKigy','y29TBwu','lIbszxe','Df9Wzxi','zxjTAxm','ieLeihq','BIWGzgu','D29YA3m','BMfTzsW','twfUywC','C2vZlG','C3vJy2u','DhKSige','yw1LDgu','txHpuhu','DwvFzge','z2v0','igeGDgu','BgrLCIa','BMfTzsa','CgXHDgu','sw5JBhu','BwuGB3i','B2XKx2m','CMvSyxq','vgvTCgW','y29UDgu','x25HBwu','AezIqw0','Bw92zv8','zsbMB2W','AxzLihq','DMLNyxq','BhnLlG','j2rLDge','CMvXDwK','zgf0zs4','Df9Kyxq','t1PSv1y','zuzVBgq','AwqGB3i','B3iGDxa','rxjYB3i','zsKU','r2v0iey','CL9Pzca','DhKUicC','CIbZCge','ExbLlca','z2v0x2y','ignYzwe','icSGC3a','zsbTDxm','BYbZy28','tMv3igy'];a0_0x595c=function(){return _0x44044c;};return a0_0x595c();}function buildFolderUrl(_0x3585a4,_0x519589){const _0x250893=a0_0x5c7808;return a0_0x35c426[_0x250893(0x23d)+'upApp'+_0x250893(0x247)]+'/'+_0x519589[_0x250893(0x1ae)+_0x250893(0x228)][_0x250893(0x2bc)+_0x250893(0x227)]()+(_0x250893(0x1e5)+'f/')+_0x3585a4;}export const listFoldersTool={'name':'list_'+a0_0x5c7808(0x24b)+'rs','description':a0_0x5c7808(0x217)+a0_0x5c7808(0x171)+a0_0x5c7808(0x26e)+a0_0x5c7808(0x22c)+a0_0x5c7808(0x2cf)+a0_0x5c7808(0x1ed)+a0_0x5c7808(0x270)+a0_0x5c7808(0x2a9)+a0_0x5c7808(0x30f)+a0_0x5c7808(0x16e)+a0_0x5c7808(0x18c)+a0_0x5c7808(0x1c2)+a0_0x5c7808(0x2ce)+a0_0x5c7808(0x1e4)+a0_0x5c7808(0x211)+a0_0x5c7808(0x2c9)+'to\x20in'+a0_0x5c7808(0x167)+a0_0x5c7808(0x1e4)+a0_0x5c7808(0x282)+a0_0x5c7808(0x24b)+a0_0x5c7808(0x184),'annotations':{'title':a0_0x5c7808(0x217)+a0_0x5c7808(0x221)+'rs','readOnlyHint':!![]},'inputSchema':{'type':a0_0x5c7808(0x15e)+'t','properties':{'space_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x2f8)+a0_0x5c7808(0x17c)+a0_0x5c7808(0x264)+'.'},'space_name':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x31b)+a0_0x5c7808(0x233)+a0_0x5c7808(0x2a7)+a0_0x5c7808(0x2b5)},'archived':{'type':a0_0x5c7808(0x24d)+'an','description':a0_0x5c7808(0x1bc)+a0_0x5c7808(0x23e)+'chive'+a0_0x5c7808(0x21b)+a0_0x5c7808(0x319)+a0_0x5c7808(0x186)+'ult:\x20'+a0_0x5c7808(0x30a)+'.'},'detail_level':{'type':a0_0x5c7808(0x26d)+'g','enum':[a0_0x5c7808(0x2d2),a0_0x5c7808(0x338)+a0_0x5c7808(0x2b4)],'description':a0_0x5c7808(0x314)+a0_0x5c7808(0x200)+'espon'+a0_0x5c7808(0x31d)+a0_0x5c7808(0x169)+a0_0x5c7808(0x1d5)+'names'+'\x27\x20ret'+'urns\x20'+a0_0x5c7808(0x31f)+'me/ta'+a0_0x5c7808(0x238)+a0_0x5c7808(0x18e)+a0_0x5c7808(0x21c)+a0_0x5c7808(0x268)+'ficie'+a0_0x5c7808(0x25b)+a0_0x5c7808(0x1c7)+a0_0x5c7808(0x2ec)+a0_0x5c7808(0x1c9)+'iled\x27'+a0_0x5c7808(0x2f6)+'rns\x20f'+a0_0x5c7808(0x2c2)+a0_0x5c7808(0x210)+'ta.\x20D'+a0_0x5c7808(0x17f)+a0_0x5c7808(0x28b)+'taile'+'d.'}}}};export const getFolderTool={'name':a0_0x5c7808(0x1d8)+a0_0x5c7808(0x26e),'description':a0_0x5c7808(0x219)+a0_0x5c7808(0x1e3)+a0_0x5c7808(0x300)+a0_0x5c7808(0x32b)+a0_0x5c7808(0x1fa)+a0_0x5c7808(0x287)+'quire'+'s\x20fol'+a0_0x5c7808(0x208)+a0_0x5c7808(0x16e)+'folde'+a0_0x5c7808(0x261)+'e.','annotations':{'title':a0_0x5c7808(0x1d3)+a0_0x5c7808(0x26e),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x5c7808(0x15e)+'t','properties':{'folder_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x221)+a0_0x5c7808(0x2d7)+a0_0x5c7808(0x30e)+a0_0x5c7808(0x26c)+').'},'folder_name':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x221)+a0_0x5c7808(0x328)+'e\x20(al'+a0_0x5c7808(0x24c)+a0_0x5c7808(0x332)+'.'},'space_id':{'type':'strin'+'g','description':a0_0x5c7808(0x2f2)+'\x20ID\x20t'+'o\x20sco'+a0_0x5c7808(0x2b8)+a0_0x5c7808(0x19b)+a0_0x5c7808(0x2f9)},'space_name':{'type':a0_0x5c7808(0x26d)+'g','description':'Space'+a0_0x5c7808(0x31b)+a0_0x5c7808(0x2bd)+'cope\x20'+'name\x20'+a0_0x5c7808(0x2b2)+'p.'}}}};export const createFolderTool={'name':a0_0x5c7808(0x2d6)+a0_0x5c7808(0x317)+'der','description':a0_0x5c7808(0x285)+a0_0x5c7808(0x32f)+'ew\x20fo'+a0_0x5c7808(0x1b9)+a0_0x5c7808(0x25f)+'space'+a0_0x5c7808(0x1a9)+a0_0x5c7808(0x162)+a0_0x5c7808(0x31b)+a0_0x5c7808(0x1da)+'ace_i'+a0_0x5c7808(0x16e)+a0_0x5c7808(0x18c)+'_name'+'.','annotations':{'title':a0_0x5c7808(0x285)+a0_0x5c7808(0x2a4)+'der','openWorldHint':!![]},'inputSchema':{'type':a0_0x5c7808(0x15e)+'t','properties':{'name':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x221)+'r\x20nam'+a0_0x5c7808(0x2aa)+a0_0x5c7808(0x232)+'d.'},'space_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x2f8)+'prefe'+a0_0x5c7808(0x264)+'.'},'space_name':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x31b)+a0_0x5c7808(0x233)+'ernat'+a0_0x5c7808(0x2b5)},'override_statuses':{'type':a0_0x5c7808(0x24d)+'an','description':a0_0x5c7808(0x330)+a0_0x5c7808(0x1f8)+a0_0x5c7808(0x197)+a0_0x5c7808(0x2e2)+'ses.'}},'required':[a0_0x5c7808(0x195)]}};export const updateFolderTool={'name':a0_0x5c7808(0x22a)+a0_0x5c7808(0x317)+'der','description':'Updat'+'e\x20a\x20f'+a0_0x5c7808(0x26e)+a0_0x5c7808(0x267)+a0_0x5c7808(0x1bd)+a0_0x5c7808(0x226)+a0_0x5c7808(0x170)+a0_0x5c7808(0x245)+a0_0x5c7808(0x17d)+a0_0x5c7808(0x250)+'gs.','annotations':{'title':a0_0x5c7808(0x201)+'e\x20Fol'+a0_0x5c7808(0x30c),'openWorldHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'folder_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x221)+a0_0x5c7808(0x2d7)+a0_0x5c7808(0x30e)+a0_0x5c7808(0x26c)+').'},'folder_name':{'type':'strin'+'g','description':a0_0x5c7808(0x221)+a0_0x5c7808(0x328)+a0_0x5c7808(0x336)+'terna'+a0_0x5c7808(0x332)+'.'},'space_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x1ac)+'o\x20sco'+a0_0x5c7808(0x2b8)+'me\x20lo'+a0_0x5c7808(0x2f9)},'space_name':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x31b)+a0_0x5c7808(0x2bd)+a0_0x5c7808(0x1f5)+a0_0x5c7808(0x1ba)+a0_0x5c7808(0x2b2)+'p.'},'name':{'type':'strin'+'g','description':a0_0x5c7808(0x1dd)+a0_0x5c7808(0x26e)+'\x20name'+'.'},'override_statuses':{'type':a0_0x5c7808(0x24d)+'an','description':a0_0x5c7808(0x330)+a0_0x5c7808(0x1f8)+'pace\x20'+a0_0x5c7808(0x2e2)+a0_0x5c7808(0x1b1)}}}};export const deleteFolderTool={'name':'delet'+a0_0x5c7808(0x317)+a0_0x5c7808(0x30c),'description':a0_0x5c7808(0x253)+'nentl'+a0_0x5c7808(0x19e)+'ove\x20a'+a0_0x5c7808(0x1e3)+a0_0x5c7808(0x2a1),'annotations':{'title':a0_0x5c7808(0x272)+a0_0x5c7808(0x2a4)+a0_0x5c7808(0x30c),'openWorldHint':!![],'destructiveHint':!![]},'inputSchema':{'type':a0_0x5c7808(0x15e)+'t','properties':{'folder_id':{'type':'strin'+'g','description':a0_0x5c7808(0x221)+a0_0x5c7808(0x2d7)+'(pref'+'erred'+').'},'folder_name':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x221)+'r\x20nam'+'e\x20(al'+'terna'+a0_0x5c7808(0x332)+'.'},'space_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x1ac)+a0_0x5c7808(0x1dc)+a0_0x5c7808(0x2b8)+a0_0x5c7808(0x19b)+a0_0x5c7808(0x2f9)},'space_name':{'type':'strin'+'g','description':a0_0x5c7808(0x2f2)+'\x20name'+'\x20to\x20s'+a0_0x5c7808(0x1f5)+a0_0x5c7808(0x1ba)+a0_0x5c7808(0x2b2)+'p.'}}}};export const moveFolderTool={'name':a0_0x5c7808(0x1c4)+a0_0x5c7808(0x24b)+'r','description':'Move\x20'+a0_0x5c7808(0x19c)+a0_0x5c7808(0x28f)+a0_0x5c7808(0x295)+'iffer'+a0_0x5c7808(0x175)+a0_0x5c7808(0x32e)+a0_0x5c7808(0x1f1)+a0_0x5c7808(0x23a)+a0_0x5c7808(0x24b)+a0_0x5c7808(0x1d4)+a0_0x5c7808(0x280)+a0_0x5c7808(0x15d)+a0_0x5c7808(0x1ba)+a0_0x5c7808(0x252)+a0_0x5c7808(0x331)+a0_0x5c7808(0x17d)+a0_0x5c7808(0x25d)+a0_0x5c7808(0x1cf)+a0_0x5c7808(0x240)+a0_0x5c7808(0x323)+'e.','annotations':{'title':a0_0x5c7808(0x1de)+a0_0x5c7808(0x221)+'r','openWorldHint':!![]},'inputSchema':{'type':a0_0x5c7808(0x15e)+'t','properties':{'folder_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x207)+'e\x20fol'+a0_0x5c7808(0x244)+a0_0x5c7808(0x19a)+a0_0x5c7808(0x21f)+'ed).'},'folder_name':{'type':'strin'+'g','description':a0_0x5c7808(0x207)+a0_0x5c7808(0x1c5)+a0_0x5c7808(0x2f0)+'ame\x20('+a0_0x5c7808(0x18d)+a0_0x5c7808(0x304)+a0_0x5c7808(0x1d2)},'space_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2a6)+'natio'+a0_0x5c7808(0x23c)+a0_0x5c7808(0x27f)+a0_0x5c7808(0x246)+a0_0x5c7808(0x312)+a0_0x5c7808(0x163)},'space_name':{'type':'strin'+'g','description':a0_0x5c7808(0x2a6)+a0_0x5c7808(0x27e)+'n\x20spa'+a0_0x5c7808(0x296)+'me\x20(a'+a0_0x5c7808(0x230)+a0_0x5c7808(0x241)+').'},'allow_destructive_fallback':{'type':a0_0x5c7808(0x24d)+'an','description':a0_0x5c7808(0x2f1)+a0_0x5c7808(0x161)+'\x20even'+a0_0x5c7808(0x18a)+a0_0x5c7808(0x2bb)+a0_0x5c7808(0x27d)+a0_0x5c7808(0x172)+'metho'+a0_0x5c7808(0x15c)+a0_0x5c7808(0x16b)+a0_0x5c7808(0x17f)+a0_0x5c7808(0x28e)+a0_0x5c7808(0x1c8)}}}};export const setFolderPermissionsTool={'name':a0_0x5c7808(0x29b)+a0_0x5c7808(0x26e)+a0_0x5c7808(0x199)+a0_0x5c7808(0x190)+'ns','description':a0_0x5c7808(0x20b)+'rivac'+a0_0x5c7808(0x26b)+a0_0x5c7808(0x333)+'issio'+a0_0x5c7808(0x216)+a0_0x5c7808(0x2fc)+a0_0x5c7808(0x1a4)+a0_0x5c7808(0x1f1)+a0_0x5c7808(0x23a)+a0_0x5c7808(0x24b)+a0_0x5c7808(0x1d4)+a0_0x5c7808(0x280)+a0_0x5c7808(0x15d)+a0_0x5c7808(0x1af)+a0_0x5c7808(0x2e0)+a0_0x5c7808(0x2bf)+a0_0x5c7808(0x2df)+'and\x20e'+a0_0x5c7808(0x180)+'s\x20arr'+a0_0x5c7808(0x321),'annotations':{'title':a0_0x5c7808(0x24e)+'older'+a0_0x5c7808(0x25a)+a0_0x5c7808(0x190)+'ns','openWorldHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'folder_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x221)+a0_0x5c7808(0x2d7)+a0_0x5c7808(0x30e)+a0_0x5c7808(0x26c)+').'},'folder_name':{'type':'strin'+'g','description':a0_0x5c7808(0x221)+'r\x20nam'+a0_0x5c7808(0x336)+'terna'+a0_0x5c7808(0x332)+'.'},'space_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x1ac)+a0_0x5c7808(0x1dc)+'pe\x20na'+a0_0x5c7808(0x19b)+a0_0x5c7808(0x2f9)},'space_name':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x31b)+a0_0x5c7808(0x2bd)+a0_0x5c7808(0x1f5)+a0_0x5c7808(0x1ba)+a0_0x5c7808(0x2b2)+'p.'},'private':{'type':a0_0x5c7808(0x24d)+'an','description':a0_0x5c7808(0x283)+'o\x20pri'+a0_0x5c7808(0x185)+a0_0x5c7808(0x16a)+a0_0x5c7808(0x1e0)+a0_0x5c7808(0x1fc)+a0_0x5c7808(0x198)+a0_0x5c7808(0x335)+a0_0x5c7808(0x1f1)+a0_0x5c7808(0x294)},'entries':{'type':a0_0x5c7808(0x2cd),'description':'Array'+'\x20of\x20p'+a0_0x5c7808(0x1ab)+a0_0x5c7808(0x274)+'entri'+a0_0x5c7808(0x27c)+a0_0x5c7808(0x16f)+a0_0x5c7808(0x1d7)+a0_0x5c7808(0x2ef)+a0_0x5c7808(0x28c)+'_leve'+'l\x20}.','items':{'type':a0_0x5c7808(0x15e)+'t','properties':{'id':{'type':a0_0x5c7808(0x2d9)+'r'},'type':{'type':a0_0x5c7808(0x26d)+'g'},'permission_level':{'type':a0_0x5c7808(0x26d)+'g'}},'required':['id','type']}}},'required':[a0_0x5c7808(0x187)+'es']}};export const createFolderFromTemplateTool={'name':a0_0x5c7808(0x2d6)+'e_fol'+a0_0x5c7808(0x2e7)+a0_0x5c7808(0x2fb)+'empla'+'te','description':a0_0x5c7808(0x285)+'e\x20a\x20f'+'older'+a0_0x5c7808(0x276)+a0_0x5c7808(0x1b8)+a0_0x5c7808(0x1ec)+'e\x20in\x20'+a0_0x5c7808(0x2cf)+a0_0x5c7808(0x1ed)+a0_0x5c7808(0x270)+a0_0x5c7808(0x286)+a0_0x5c7808(0x1a6)+'\x20temp'+'late_'+a0_0x5c7808(0x194)+a0_0x5c7808(0x2f3)+a0_0x5c7808(0x29f)+a0_0x5c7808(0x159)+a0_0x5c7808(0x20f)+'ame).'+'\x20Use\x20'+a0_0x5c7808(0x279)+'n_imm'+a0_0x5c7808(0x265)+a0_0x5c7808(0x18b)+'alse\x20'+a0_0x5c7808(0x2de)+a0_0x5c7808(0x288)+a0_0x5c7808(0x17b)+'l\x20cre'+'ation'+a0_0x5c7808(0x22f)+a0_0x5c7808(0x309)+a0_0x5c7808(0x277)+'\x20rema'+a0_0x5c7808(0x292)+a0_0x5c7808(0x1a2)+a0_0x5c7808(0x2d1)+a0_0x5c7808(0x172)+a0_0x5c7808(0x1c1)+'nt\x20im'+'port.','annotations':{'title':a0_0x5c7808(0x285)+a0_0x5c7808(0x2a4)+a0_0x5c7808(0x249)+a0_0x5c7808(0x2eb)+'empla'+'te','openWorldHint':!![]},'inputSchema':{'type':a0_0x5c7808(0x15e)+'t','properties':{'name':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x329)+a0_0x5c7808(0x320)+a0_0x5c7808(0x1a5)+a0_0x5c7808(0x16d)+'der.\x20'+a0_0x5c7808(0x248)+a0_0x5c7808(0x26a)},'template_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x221)+a0_0x5c7808(0x313)+'plate'+a0_0x5c7808(0x2f8)+a0_0x5c7808(0x17c)+a0_0x5c7808(0x264)+'.'},'template_name':{'type':'strin'+'g','description':a0_0x5c7808(0x221)+a0_0x5c7808(0x313)+a0_0x5c7808(0x1bb)+a0_0x5c7808(0x31b)+a0_0x5c7808(0x233)+a0_0x5c7808(0x2a7)+a0_0x5c7808(0x1c6)+a0_0x5c7808(0x298)+a0_0x5c7808(0x1bb)+a0_0x5c7808(0x182)},'space_id':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x2f8)+a0_0x5c7808(0x17c)+a0_0x5c7808(0x264)+'.'},'space_name':{'type':a0_0x5c7808(0x26d)+'g','description':a0_0x5c7808(0x2f2)+a0_0x5c7808(0x31b)+a0_0x5c7808(0x233)+a0_0x5c7808(0x2a7)+a0_0x5c7808(0x2b5)},'options':{'type':a0_0x5c7808(0x15e)+'t','description':a0_0x5c7808(0x1c0)+a0_0x5c7808(0x21a)+'mport'+'\x20opti'+a0_0x5c7808(0x2cc)+'Inclu'+'des\x20b'+a0_0x5c7808(0x25c)+a0_0x5c7808(0x2d8)+'gs:\x20s'+a0_0x5c7808(0x2c5)+'ks,\x20c'+a0_0x5c7808(0x2db)+'_fiel'+a0_0x5c7808(0x33d)+a0_0x5c7808(0x308)+a0_0x5c7808(0x1b3)+a0_0x5c7808(0x22e)+a0_0x5c7808(0x2ae)+'\x20incl'+a0_0x5c7808(0x28a)+'iews,'+'\x20old_'+'assig'+a0_0x5c7808(0x225)+'\x20old_'+a0_0x5c7808(0x2b6)+a0_0x5c7808(0x2c6)+a0_0x5c7808(0x339)+a0_0x5c7808(0x213)+'date,'+a0_0x5c7808(0x21d)+a0_0x5c7808(0x2a8)+a0_0x5c7808(0x21d)+'statu'+'ses,\x20'+'old_f'+a0_0x5c7808(0x1f2)+a0_0x5c7808(0x1f6)+a0_0x5c7808(0x193)+a0_0x5c7808(0x2a3)+a0_0x5c7808(0x165)+a0_0x5c7808(0x236)+a0_0x5c7808(0x305)+a0_0x5c7808(0x231)+a0_0x5c7808(0x193)+a0_0x5c7808(0x2a3)+a0_0x5c7808(0x2ba)+a0_0x5c7808(0x302)+a0_0x5c7808(0x250)+a0_0x5c7808(0x1fd)+a0_0x5c7808(0x28d)+'eckli'+a0_0x5c7808(0x1e2)+a0_0x5c7808(0x1bf)+a0_0x5c7808(0x196)+a0_0x5c7808(0x20e)+'exter'+'nal_d'+a0_0x5c7808(0x301)+a0_0x5c7808(0x2b9)+a0_0x5c7808(0x293)+a0_0x5c7808(0x24c)+'l_dep'+a0_0x5c7808(0x239)+a0_0x5c7808(0x234)+a0_0x5c7808(0x24f)+a0_0x5c7808(0x220)+'ol:\x20r'+'eturn'+a0_0x5c7808(0x2ca)+'diate'+a0_0x5c7808(0x15b)+a0_0x5c7808(0x25c)+a0_0x5c7808(0x1ad)+a0_0x5c7808(0x1fe)+'\x20true'+a0_0x5c7808(0x224)+a0_0x5c7808(0x284)+a0_0x5c7808(0x2be)+a0_0x5c7808(0x318)+a0_0x5c7808(0x213)+a0_0x5c7808(0x25e)+a0_0x5c7808(0x2fe)+a0_0x5c7808(0x281)+a0_0x5c7808(0x315)+'8601\x20'+'strin'+a0_0x5c7808(0x1e6)+'remap'+a0_0x5c7808(0x2d0)+a0_0x5c7808(0x1cc)+a0_0x5c7808(0x18f)+'ip_we'+a0_0x5c7808(0x19f)+a0_0x5c7808(0x2e8)+a0_0x5c7808(0x29d)+a0_0x5c7808(0x1a0)}},'required':[a0_0x5c7808(0x195)]}};async function resolveFolderId(_0x481501,_0x15b0c7,_0x298954,_0x108d3f,_0x50ac3e){const _0x23c415=a0_0x5c7808,_0x1f90c5={'lqlbB':function(_0x115017,_0x2d57ee){return _0x115017&&_0x2d57ee;},'ZKMBX':function(_0x5f509a,_0x5356a9,_0x3d93ae,_0x3cf0a8,_0xd55cfd){return _0x5f509a(_0x5356a9,_0x3d93ae,_0x3cf0a8,_0xd55cfd);},'SsQZJ':_0x23c415(0x24b)+'r'};if(_0x481501)return _0x481501;if(!_0x15b0c7)throw new Error('Eithe'+'r\x20fol'+'der_i'+_0x23c415(0x16e)+_0x23c415(0x24b)+_0x23c415(0x261)+_0x23c415(0x1db)+_0x23c415(0x1ea)+_0x23c415(0x33c)+_0x23c415(0x33b));const {folder:_0x8a4d35,workspace:_0x7e9d}=_0x50ac3e;let _0x215527=_0x298954;if(_0x1f90c5[_0x23c415(0x306)](!_0x215527,_0x108d3f)){const _0x9e5252=await _0x7e9d[_0x23c415(0x324)+_0x23c415(0x209)+_0x23c415(0x2b7)](_0x108d3f);if(!_0x9e5252)throw new Error(_0x23c415(0x2f2)+'\x20\x22'+_0x108d3f+(_0x23c415(0x26f)+_0x23c415(0x327)+'d.'));_0x215527=_0x9e5252['id'];}if(_0x215527){const _0x5dbe81=await _0x8a4d35[_0x23c415(0x269)+'older'+_0x23c415(0x2e1)+'e'](_0x215527,_0x15b0c7);if(!_0x5dbe81)throw new Error(_0x23c415(0x221)+_0x23c415(0x2cb)+_0x15b0c7+(_0x23c415(0x26f)+_0x23c415(0x327)+_0x23c415(0x2c0)+'space'+'.'));return _0x5dbe81['id'];}const _0x149b20=await _0x1f90c5['ZKMBX'](resolveLocation,_0x1f90c5[_0x23c415(0x164)],undefined,_0x15b0c7,_0x7e9d);return _0x149b20['id'];}async function resolveSpaceId(_0x5e1c76,_0x1d68ef,_0x250aeb){const _0x452159=a0_0x5c7808;if(_0x5e1c76)return _0x5e1c76;if(!_0x1d68ef)throw new Error('Eithe'+_0x452159(0x1d6)+_0x452159(0x326)+_0x452159(0x178)+'pace_'+'name\x20'+_0x452159(0x2e4)+_0x452159(0x255)+'ovide'+'d.');const _0x4adc6f=await _0x250aeb[_0x452159(0x1ae)+_0x452159(0x228)][_0x452159(0x324)+_0x452159(0x209)+_0x452159(0x2b7)](_0x1d68ef);if(!_0x4adc6f)throw new Error(_0x452159(0x2f2)+'\x20\x22'+_0x1d68ef+(_0x452159(0x26f)+_0x452159(0x327)+'d.'));return _0x4adc6f['id'];}export async function handleManageFolders(_0x47e618,_0x1d40ed){const _0x13ac38=a0_0x5c7808,_0x52a8ae={'OWINn':_0x13ac38(0x174)+_0x13ac38(0x1ab)+_0x13ac38(0x1f0),'heEuA':_0x13ac38(0x24b)+'r','XLqFh':function(_0x5c55c,_0x31ee5f){return _0x5c55c||_0x31ee5f;},'qFuss':function(_0x4d1775,_0x6b318c){return _0x4d1775!==_0x6b318c;},'zLrbg':_0x13ac38(0x31a),'IUWOv':function(_0x4495f0,_0x571d57,_0x4d03f9,_0x1eeeea,_0xf9b6fe,_0x5b7a72){return _0x4495f0(_0x571d57,_0x4d03f9,_0x1eeeea,_0xf9b6fe,_0x5b7a72);},'ZYcOx':function(_0x52efb0,_0x2fd556,_0x26ed6e,_0x12c2c8){return _0x52efb0(_0x2fd556,_0x26ed6e,_0x12c2c8);},'SAEGr':'Error'+'\x20in\x20h'+_0x13ac38(0x160)+'Manag'+'eFold'+_0x13ac38(0x158),'hFbAm':_0x13ac38(0x2ea)+_0x13ac38(0x325)+_0x13ac38(0x218)+_0x13ac38(0x266)+_0x13ac38(0x334)},{action:_0x1658de,folder_id:_0x23ee67,folder_name:_0x4622c2,space_id:_0x5dc8a6,space_name:_0x4c0004,name:_0x4bc2c9,override_statuses:_0x5f1456,allow_destructive_fallback:_0x13dafc}=_0x47e618,{folder:_0x5c7d75}=_0x1d40ed;logger['info'](_0x13ac38(0x205)+_0x13ac38(0x2c8)+_0x13ac38(0x160)+_0x13ac38(0x1b0)+_0x13ac38(0x1ce)+_0x13ac38(0x158),{'action':_0x1658de});try{switch(_0x1658de){case _0x52a8ae[_0x13ac38(0x17e)]:{const _0x1518f5=await resolveFolderId(_0x23ee67,_0x4622c2,_0x5dc8a6,_0x4c0004,_0x1d40ed);if(_0x47e618['priva'+'te']===undefined)return sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x2a0)+'rResp'+_0x13ac38(0x1e1)](_0x13ac38(0x2af)+_0x13ac38(0x31e)+_0x13ac38(0x1a3)+_0x13ac38(0x25c)+_0x13ac38(0x20c)+_0x13ac38(0x1b4)+_0x13ac38(0x299)+_0x13ac38(0x1ca)+_0x13ac38(0x1a7)+_0x13ac38(0x260)+_0x13ac38(0x1aa)+_0x13ac38(0x21e)+_0x13ac38(0x316));return await _0x5c7d75[_0x13ac38(0x27b)+'rmiss'+_0x13ac38(0x2b0)](_0x52a8ae['heEuA'],_0x1518f5,{'private':_0x47e618[_0x13ac38(0x31e)+'te'],'entries':_0x47e618['entri'+'es']||[]}),sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x214)+_0x13ac38(0x1e1)]({'success':!![],'message':'Permi'+_0x13ac38(0x28c)+_0x13ac38(0x215)+'ated\x20'+'succe'+_0x13ac38(0x254)+_0x13ac38(0x27a)+'r\x20fol'+_0x13ac38(0x32d)+_0x52a8ae['XLqFh'](_0x4622c2,_0x23ee67)+'\x22'},!![]);}case _0x13ac38(0x2d6)+'e':{if(!_0x4bc2c9)return sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x2a0)+'rResp'+'onse'](_0x13ac38(0x1ba)+_0x13ac38(0x2e3)+_0x13ac38(0x232)+'d\x20for'+_0x13ac38(0x1d9)+_0x13ac38(0x2fa));const _0x43a667=await resolveSpaceId(_0x5dc8a6,_0x4c0004,_0x1d40ed),_0x1ea0de={'name':_0x4bc2c9};if(_0x5f1456!==undefined)_0x1ea0de[_0x13ac38(0x291)+'ide_s'+_0x13ac38(0x202)+'es']=_0x5f1456;const _0x4d96f3=await _0x5c7d75['creat'+_0x13ac38(0x1ce)+'er'](_0x43a667,_0x1ea0de);return sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x214)+_0x13ac38(0x1e1)]({'id':_0x4d96f3['id'],'name':_0x4d96f3[_0x13ac38(0x195)],'space':{'id':_0x4d96f3[_0x13ac38(0x18c)]['id'],'name':_0x4d96f3[_0x13ac38(0x18c)][_0x13ac38(0x195)]},'message':_0x13ac38(0x221)+_0x13ac38(0x2cb)+_0x4d96f3[_0x13ac38(0x195)]+('\x22\x20cre'+_0x13ac38(0x2c3)+_0x13ac38(0x1b2)+'ssful'+'ly')},!![]);}case _0x13ac38(0x1b7):{const _0x5c4d4d=await resolveFolderId(_0x23ee67,_0x4622c2,_0x5dc8a6,_0x4c0004,_0x1d40ed),_0x4e8274=await _0x5c7d75[_0x13ac38(0x2ff)+'lder'](_0x5c4d4d);return sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x214)+_0x13ac38(0x1e1)]({'id':_0x4e8274['id'],'name':_0x4e8274[_0x13ac38(0x195)],'orderindex':_0x4e8274[_0x13ac38(0x2a2)+_0x13ac38(0x1a1)],'override_statuses':_0x4e8274['overr'+_0x13ac38(0x2ac)+'tatus'+'es'],'hidden':_0x4e8274[_0x13ac38(0x183)+'n'],'task_count':_0x4e8274['task_'+'count'],'space':{'id':_0x4e8274['space']['id'],'name':_0x4e8274['space'][_0x13ac38(0x195)]},'statuses':_0x4e8274[_0x13ac38(0x2e2)+_0x13ac38(0x22d)],'lists':_0x4e8274[_0x13ac38(0x206)]?.[_0x13ac38(0x337)](_0x5b4e73=>({'id':_0x5b4e73['id'],'name':_0x5b4e73[_0x13ac38(0x195)],'task_count':_0x5b4e73[_0x13ac38(0x188)+'count'],'orderindex':_0x5b4e73[_0x13ac38(0x2a2)+'index']}))},!![]);}case'updat'+'e':{const _0x1b1093=await resolveFolderId(_0x23ee67,_0x4622c2,_0x5dc8a6,_0x4c0004,_0x1d40ed);if(!_0x4bc2c9&&_0x5f1456===undefined)return sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x2a0)+_0x13ac38(0x24a)+_0x13ac38(0x1e1)]('At\x20le'+_0x13ac38(0x289)+_0x13ac38(0x32a)+_0x13ac38(0x31b)+'\x20or\x20o'+'verri'+'de_st'+_0x13ac38(0x303)+'s\x20mus'+_0x13ac38(0x1ea)+'provi'+_0x13ac38(0x2e9)+_0x13ac38(0x1d0)+_0x13ac38(0x1cb));const _0x439d39={};if(_0x4bc2c9)_0x439d39[_0x13ac38(0x195)]=_0x4bc2c9;if(_0x52a8ae[_0x13ac38(0x19d)](_0x5f1456,undefined))_0x439d39[_0x13ac38(0x291)+_0x13ac38(0x2ac)+_0x13ac38(0x202)+'es']=_0x5f1456;const _0x2f25d2=await _0x5c7d75['updat'+_0x13ac38(0x1ce)+'er'](_0x1b1093,_0x439d39);return sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x214)+_0x13ac38(0x1e1)]({'id':_0x2f25d2['id'],'name':_0x2f25d2[_0x13ac38(0x195)],'orderindex':_0x2f25d2[_0x13ac38(0x2a2)+_0x13ac38(0x1a1)],'override_statuses':_0x2f25d2[_0x13ac38(0x291)+_0x13ac38(0x2ac)+'tatus'+'es'],'hidden':_0x2f25d2[_0x13ac38(0x183)+'n'],'task_count':_0x2f25d2[_0x13ac38(0x188)+'count'],'space':{'id':_0x2f25d2[_0x13ac38(0x18c)]['id'],'name':_0x2f25d2[_0x13ac38(0x18c)][_0x13ac38(0x195)]},'message':_0x13ac38(0x221)+_0x13ac38(0x2cb)+_0x2f25d2[_0x13ac38(0x195)]+(_0x13ac38(0x235)+_0x13ac38(0x2c3)+'succe'+_0x13ac38(0x254)+'ly')},!![]);}case _0x13ac38(0x1f4)+'e':{const _0x3cd51c=await resolveFolderId(_0x23ee67,_0x4622c2,_0x5dc8a6,_0x4c0004,_0x1d40ed),_0x17b01f=await _0x5c7d75['getFo'+_0x13ac38(0x2dd)](_0x3cd51c),_0x1f3c6d=_0x17b01f['name'];return await _0x5c7d75['delet'+_0x13ac38(0x1ce)+'er'](_0x3cd51c),sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x214)+'onse']({'success':!![],'message':'Folde'+_0x13ac38(0x2cb)+_0x1f3c6d+(_0x13ac38(0x2d4)+_0x13ac38(0x223)+'succe'+_0x13ac38(0x254)+'ly')},!![]);}case _0x52a8ae['zLrbg']:{const _0x14abe6=await _0x52a8ae[_0x13ac38(0x2e5)](resolveFolderId,_0x23ee67,_0x4622c2,undefined,undefined,_0x1d40ed),_0x453f0c=await _0x52a8ae[_0x13ac38(0x17a)](resolveSpaceId,_0x5dc8a6,_0x4c0004,_0x1d40ed),_0x58d349=await _0x5c7d75[_0x13ac38(0x33a)+_0x13ac38(0x26e)](_0x14abe6,_0x453f0c,_0x13dafc);return sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x214)+_0x13ac38(0x1e1)]({'id':_0x58d349['id'],'name':_0x58d349[_0x13ac38(0x195)],'space':{'id':_0x58d349[_0x13ac38(0x18c)]['id'],'name':_0x58d349[_0x13ac38(0x18c)]['name']},'url':buildFolderUrl(_0x58d349['id'],_0x1d40ed),'message':_0x13ac38(0x221)+_0x13ac38(0x310)+_0x13ac38(0x2d3)+_0x13ac38(0x2e6)+'fully'+'\x20to\x20s'+_0x13ac38(0x197)+'\x22'+_0x58d349[_0x13ac38(0x18c)]['name']+(_0x13ac38(0x1df)+_0x13ac38(0x2da)+_0x13ac38(0x244)+_0x13ac38(0x243))+_0x58d349['id']},!![]);}default:return sponsorService[_0x13ac38(0x2d6)+_0x13ac38(0x2a0)+_0x13ac38(0x24a)+_0x13ac38(0x1e1)]('Unkno'+_0x13ac38(0x1fb)+_0x13ac38(0x290)+'\x20'+_0x1658de+(_0x13ac38(0x1f7)+'id\x20ac'+_0x13ac38(0x1eb)+':\x20cre'+_0x13ac38(0x2c6)+_0x13ac38(0x258)+_0x13ac38(0x22a)+'e,\x20de'+_0x13ac38(0x2f7)+'\x20move'+'.'));}}catch(_0x7bc9c){return logger[_0x13ac38(0x166)](_0x52a8ae['SAEGr'],_0x7bc9c),sponsorService['creat'+_0x13ac38(0x2a0)+_0x13ac38(0x24a)+_0x13ac38(0x1e1)](_0x7bc9c[_0x13ac38(0x222)+'ge']||_0x52a8ae[_0x13ac38(0x1c3)]);}}export async function handleCreateFolderFromTemplate(_0x38c87e,_0x4363d4){const _0x320c84=a0_0x5c7808,_0x24ba1a={'OZlWV':function(_0x2dc181,_0x55e51f){return _0x2dc181===_0x55e51f;},'fiyqM':_0x320c84(0x279)+'n_imm'+_0x320c84(0x265)+_0x320c84(0x192),'qTmJR':_0x320c84(0x237)+_0x320c84(0x297),'nBUtd':'due_d'+_0x320c84(0x2ed),'MxOPu':_0x320c84(0x22b)+_0x320c84(0x2d0)+_0x320c84(0x1cc)+'e','jvRuu':_0x320c84(0x2b3)+_0x320c84(0x1e8)+_0x320c84(0x20a),'cqXym':_0x320c84(0x278)+_0x320c84(0x204),'aPUOJ':_0x320c84(0x15a)+_0x320c84(0x1b6)+'te','hSRou':_0x320c84(0x339)+_0x320c84(0x213)+_0x320c84(0x262),'lpZTy':_0x320c84(0x2ad)+_0x320c84(0x1f2)+_0x320c84(0x158),'AXCbn':_0x320c84(0x193)+_0x320c84(0x2a3)+'s','Pvzto':_0x320c84(0x1a8)+'nt','Tcqcz':_0x320c84(0x15f)+'_sett'+'ings','ueoBP':_0x320c84(0x1be)+_0x320c84(0x2a5)+_0x320c84(0x31c),'ilkDn':_0x320c84(0x1d1)+_0x320c84(0x20d)+_0x320c84(0x160)+_0x320c84(0x285)+_0x320c84(0x1ce)+_0x320c84(0x1e7)+'mTemp'+_0x320c84(0x29a)},{name:_0xc20be5,template_id:_0xce270a,template_name:_0xafad86,space_id:_0x356cfc,space_name:_0x2608d7}=_0x38c87e;try{if(!_0xc20be5)return sponsorService['creat'+_0x320c84(0x2a0)+_0x320c84(0x24a)+_0x320c84(0x1e1)](_0x320c84(0x1ba)+_0x320c84(0x2e3)+_0x320c84(0x232)+'d.');const _0x3479dc=await resolveTemplateId(_0xce270a,_0xafad86,_0x4363d4),_0x2e0861=await resolveSpaceId(_0x356cfc,_0x2608d7,_0x4363d4);let _0x3a449d=typeof _0x38c87e[_0x320c84(0x2c7)+'ns']===_0x320c84(0x15e)+'t'&&_0x38c87e[_0x320c84(0x2c7)+'ns']!==null?{..._0x38c87e[_0x320c84(0x2c7)+'ns']}:{};if(_0x24ba1a[_0x320c84(0x1cd)](Object[_0x320c84(0x271)](_0x3a449d)[_0x320c84(0x322)+'h'],0x0)){const _0xd3d258=[_0x24ba1a[_0x320c84(0x2f4)],_0x24ba1a[_0x320c84(0x242)],_0x24ba1a[_0x320c84(0x181)],_0x24ba1a[_0x320c84(0x1b5)],_0x24ba1a[_0x320c84(0x2ab)],_0x24ba1a['cqXym'],_0x320c84(0x173)+_0x320c84(0x2c1)+_0x320c84(0x212),_0x320c84(0x32c)+_0x320c84(0x307),_0x320c84(0x1e9)+_0x320c84(0x2fd),_0x320c84(0x29c)+_0x320c84(0x1f9)+_0x320c84(0x256),'old_a'+'ssign'+_0x320c84(0x23b),_0x24ba1a[_0x320c84(0x311)],_0x24ba1a[_0x320c84(0x23f)],_0x320c84(0x1ff)+'ags',_0x320c84(0x339)+_0x320c84(0x202)+'es',_0x24ba1a['lpZTy'],_0x24ba1a[_0x320c84(0x275)],_0x24ba1a['Pvzto'],_0x320c84(0x1a8)+_0x320c84(0x2ee)+_0x320c84(0x30d)+_0x320c84(0x2dc),_0x24ba1a['Tcqcz'],_0x24ba1a[_0x320c84(0x29e)],'relat'+_0x320c84(0x196)+_0x320c84(0x257),_0x320c84(0x1f3)+_0x320c84(0x1ef)+_0x320c84(0x301)+_0x320c84(0x2b9)+'s','inter'+_0x320c84(0x1ef)+_0x320c84(0x301)+_0x320c84(0x2b9)+'s'];for(const _0x31607a of _0xd3d258){if(_0x38c87e[_0x31607a]!==undefined)_0x3a449d[_0x31607a]=_0x38c87e[_0x31607a];}}const _0x43c020=await _0x4363d4[_0x320c84(0x24b)+'r']['creat'+'eFold'+_0x320c84(0x1e7)+_0x320c84(0x2f5)+'late'](_0x2e0861,_0x3479dc,_0xc20be5,_0x3a449d),_0x2f073a=_0x43c020?.[_0x320c84(0x24b)+'r']||_0x43c020;return sponsorService['creat'+_0x320c84(0x214)+_0x320c84(0x1e1)]({'id':_0x2f073a['id']||_0x43c020['id'],'name':_0x2f073a['name'],'space':_0x2f073a[_0x320c84(0x18c)]?{'id':_0x2f073a['space']['id'],'name':_0x2f073a['space'][_0x320c84(0x195)]}:undefined,'message':_0x320c84(0x221)+'r\x20\x22'+_0xc20be5+('\x22\x20cre'+_0x320c84(0x2c3)+_0x320c84(0x16c)+'templ'+_0x320c84(0x2c4)+_0x320c84(0x2d5)+_0x320c84(0x189)+'y')},!![]);}catch(_0xe76ccf){return logger[_0x320c84(0x166)](_0x24ba1a[_0x320c84(0x2b1)],_0xe76ccf),sponsorService['creat'+_0x320c84(0x2a0)+_0x320c84(0x24a)+_0x320c84(0x1e1)](_0xe76ccf[_0x320c84(0x222)+'ge']||_0x320c84(0x2ea)+_0x320c84(0x325)+_0x320c84(0x218)+_0x320c84(0x266)+_0x320c84(0x334));}}export async function handleListFolders(_0x4aa89c,_0x1437e0){const _0x3e33b2=a0_0x5c7808,_0x2151eb={'JCVlU':function(_0x20623f,_0x2f998c){return _0x20623f===_0x2f998c;},'hHzLO':_0x3e33b2(0x2d2),'HQSWM':'Error'+_0x3e33b2(0x20d)+_0x3e33b2(0x160)+_0x3e33b2(0x259)+_0x3e33b2(0x26e)+'s','SSopn':'An\x20un'+_0x3e33b2(0x325)+_0x3e33b2(0x218)+'r\x20occ'+'urred'},{space_id:_0x30cf07,space_name:_0x2d3367,archived:_0x75bbb0,detail_level:detail_level=_0x3e33b2(0x338)+'led'}=_0x4aa89c,{folder:_0x52543c}=_0x1437e0;try{const _0x293321=await resolveSpaceId(_0x30cf07,_0x2d3367,_0x1437e0),_0x30ada7=await _0x52543c[_0x3e33b2(0x2ff)+'lders'+_0x3e33b2(0x191)+'ce'](_0x293321,_0x75bbb0);if(_0x2151eb['JCVlU'](detail_level,_0x2151eb[_0x3e33b2(0x30b)]))return sponsorService[_0x3e33b2(0x2d6)+_0x3e33b2(0x214)+_0x3e33b2(0x1e1)]({'folders':_0x30ada7[_0x3e33b2(0x337)](_0x54831f=>({'id':_0x54831f['id'],'name':_0x54831f[_0x3e33b2(0x195)],'task_count':_0x54831f[_0x3e33b2(0x188)+_0x3e33b2(0x229)]}))},!![]);return sponsorService['creat'+_0x3e33b2(0x214)+_0x3e33b2(0x1e1)]({'folders':_0x30ada7[_0x3e33b2(0x337)](_0x27c913=>({'id':_0x27c913['id'],'name':_0x27c913[_0x3e33b2(0x195)],'task_count':_0x27c913[_0x3e33b2(0x188)+_0x3e33b2(0x229)],'hidden':_0x27c913['hidde'+'n'],'space':{'id':_0x27c913[_0x3e33b2(0x18c)]['id'],'name':_0x27c913[_0x3e33b2(0x18c)][_0x3e33b2(0x195)]}}))},!![]);}catch(_0xe81380){return logger[_0x3e33b2(0x166)](_0x2151eb['HQSWM'],_0xe81380),sponsorService['creat'+_0x3e33b2(0x2a0)+'rResp'+'onse'](_0xe81380['messa'+'ge']||_0x2151eb[_0x3e33b2(0x177)]);}}
|
package/build/tools/goal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x32361f=a0_0x111e;(function(_0x256628,_0x16dbe4){const _0x4f01e3=a0_0x111e,_0x49d93a=_0x256628();while(!![]){try{const _0x339fe8=parseInt(_0x4f01e3(0x184))/0x1*(-parseInt(_0x4f01e3(0x26d))/0x2)+-parseInt(_0x4f01e3(0x285))/0x3+-parseInt(_0x4f01e3(0x147))/0x4+parseInt(_0x4f01e3(0x28c))/0x5*(-parseInt(_0x4f01e3(0x213))/0x6)+-parseInt(_0x4f01e3(0x1ec))/0x7+parseInt(_0x4f01e3(0x259))/0x8+parseInt(_0x4f01e3(0x2bc))/0x9*(parseInt(_0x4f01e3(0x20a))/0xa);if(_0x339fe8===_0x16dbe4)break;else _0x49d93a['push'](_0x49d93a['shift']());}catch(_0x1d05fd){_0x49d93a['push'](_0x49d93a['shift']());}}}(a0_0x58eb,0xc6ca2));import{sponsorService}from'../utils/sponsor-service.js';import{findBestMatchInArray}from'../utils/resolver-utils.js';import{parseDueDate}from'../utils/date-utils.js';import{Logger}from'../logger.js';const logger=new Logger('GoalT'+'ool');export const listGoalsTool={'name':'list_'+a0_0x32361f(0x257),'description':'View\x20'+'Goals'+'\x20avai'+'lable'+a0_0x32361f(0x15b)+'\x20Work'+a0_0x32361f(0x27c)+a0_0x32361f(0x238)+'urns\x20'+a0_0x32361f(0x175)+a0_0x32361f(0x20d)+a0_0x32361f(0x257)+a0_0x32361f(0x199)+a0_0x32361f(0x257)+a0_0x32361f(0x170)+a0_0x32361f(0x183)+a0_0x32361f(0x13e)+'older'+'s.','annotations':{'title':a0_0x32361f(0x194)+'Goals','readOnlyHint':!![]},'inputSchema':{'type':a0_0x32361f(0x24a)+'t','properties':{'includeCompleted':{'type':'boole'+'an','description':a0_0x32361f(0x161)+a0_0x32361f(0x17a)+a0_0x32361f(0x18c)+a0_0x32361f(0x262)+a0_0x32361f(0x298)+a0_0x32361f(0x19c)+a0_0x32361f(0x222)+a0_0x32361f(0x28a)+a0_0x32361f(0x144)+a0_0x32361f(0x2a5)+a0_0x32361f(0x169)+a0_0x32361f(0x1f5)+a0_0x32361f(0x23c)+a0_0x32361f(0x1dc)+'.'}}}};export const getGoalTool={'name':a0_0x32361f(0x22a)+'oal','description':a0_0x32361f(0x1e1)+a0_0x32361f(0x174)+a0_0x32361f(0x1b4)+'nform'+'ation'+a0_0x32361f(0x289)+'t\x20a\x20s'+a0_0x32361f(0x163)+a0_0x32361f(0x235)+'al,\x20i'+a0_0x32361f(0x16f)+a0_0x32361f(0x143)+'ts\x20Ke'+a0_0x32361f(0x17c)+a0_0x32361f(0x1cb),'annotations':{'title':a0_0x32361f(0x2b3)+a0_0x32361f(0x25d),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x32361f(0x24a)+'t','properties':{'goalId':{'type':a0_0x32361f(0x1d5)+'g','description':a0_0x32361f(0x1c6)+a0_0x32361f(0x1ae)+a0_0x32361f(0x153)+a0_0x32361f(0x1b1)+a0_0x32361f(0x1c1)+a0_0x32361f(0x185)+a0_0x32361f(0x200)+a0_0x32361f(0x1c2)+'rovid'+'ed.'},'goalName':{'type':a0_0x32361f(0x1d5)+'g','description':'Goal\x20'+a0_0x32361f(0x217)+a0_0x32361f(0x25a)+a0_0x32361f(0x1e3)+a0_0x32361f(0x157)+a0_0x32361f(0x18e)+a0_0x32361f(0x276)}}}};export const createGoalTool={'name':a0_0x32361f(0x1aa)+a0_0x32361f(0x1a8)+'l','description':a0_0x32361f(0x209)+'e\x20a\x20n'+a0_0x32361f(0x221)+a0_0x32361f(0x1c4)+a0_0x32361f(0x20e)+a0_0x32361f(0x248)+'ce.','annotations':{'title':'Creat'+'e\x20Goa'+'l'},'inputSchema':{'type':a0_0x32361f(0x24a)+'t','properties':{'name':{'type':a0_0x32361f(0x1d5)+'g','description':'Name\x20'+a0_0x32361f(0x28e)+'e\x20goa'+'l.'},'description':{'type':'strin'+'g','description':a0_0x32361f(0x168)+a0_0x32361f(0x1c9)+a0_0x32361f(0x164)+a0_0x32361f(0x2a4)+'oal.'},'dueDate':{'type':['strin'+'g','numbe'+'r'],'description':a0_0x32361f(0x180)+'ate\x20('+a0_0x32361f(0x178)+a0_0x32361f(0x13f)+a0_0x32361f(0x2ae)+a0_0x32361f(0x19e)+a0_0x32361f(0x14e)+a0_0x32361f(0x1a7)+'guage'+').'},'color':{'type':a0_0x32361f(0x1d5)+'g','description':a0_0x32361f(0x218)+'olor\x20'+'code.'},'multipleOwners':{'type':a0_0x32361f(0x207)+'an','description':'Allow'+a0_0x32361f(0x260)+a0_0x32361f(0x2b8)+a0_0x32361f(0x1ed)+'s.'},'owners':{'type':a0_0x32361f(0x192),'items':{'type':a0_0x32361f(0x14c)+'er'},'description':a0_0x32361f(0x272)+a0_0x32361f(0x146)+'f\x20own'+a0_0x32361f(0x29a)}},'required':['name']}};export const updateGoalTool={'name':a0_0x32361f(0x1f3)+a0_0x32361f(0x1a8)+'l','description':a0_0x32361f(0x29b)+a0_0x32361f(0x1f6)+'exist'+'ing\x20G'+a0_0x32361f(0x237)+a0_0x32361f(0x1f9)+'ils.\x20'+'Requi'+a0_0x32361f(0x179)+'oalId'+a0_0x32361f(0x172)+a0_0x32361f(0x1f8)+a0_0x32361f(0x1ba),'annotations':{'title':a0_0x32361f(0x29b)+a0_0x32361f(0x2c0)+'l'},'inputSchema':{'type':a0_0x32361f(0x24a)+'t','properties':{'goalId':{'type':a0_0x32361f(0x1d5)+'g','description':a0_0x32361f(0x1c6)+a0_0x32361f(0x1ae)},'goalName':{'type':a0_0x32361f(0x1d5)+'g','description':'Goal\x20'+'name\x20'+a0_0x32361f(0x1fe)+a0_0x32361f(0x18e)+a0_0x32361f(0x276)},'name':{'type':'strin'+'g','description':'New\x20n'+a0_0x32361f(0x1b5)},'description':{'type':a0_0x32361f(0x1d5)+'g','description':'New\x20d'+'escri'+a0_0x32361f(0x189)+'.'},'dueDate':{'type':[a0_0x32361f(0x1d5)+'g',a0_0x32361f(0x1b8)+'r'],'description':a0_0x32361f(0x1e0)+a0_0x32361f(0x243)+a0_0x32361f(0x26b)},'color':{'type':'strin'+'g','description':a0_0x32361f(0x16a)+'olor.'},'addOwners':{'type':a0_0x32361f(0x192),'items':{'type':a0_0x32361f(0x14c)+'er'},'description':a0_0x32361f(0x272)+'IDs\x20t'+a0_0x32361f(0x253)+'.'},'remOwners':{'type':a0_0x32361f(0x192),'items':{'type':a0_0x32361f(0x14c)+'er'},'description':a0_0x32361f(0x272)+a0_0x32361f(0x22f)+'o\x20rem'+a0_0x32361f(0x181)}}}};export const deleteGoalTool={'name':a0_0x32361f(0x2b5)+a0_0x32361f(0x1a8)+'l','description':a0_0x32361f(0x14d)+a0_0x32361f(0x1ab)+'y\x20rem'+a0_0x32361f(0x13d)+'\x20Goal'+a0_0x32361f(0x199)+a0_0x32361f(0x202)+a0_0x32361f(0x242)+a0_0x32361f(0x27e)+a0_0x32361f(0x258)+a0_0x32361f(0x1d6)+a0_0x32361f(0x158)+a0_0x32361f(0x1c3)+a0_0x32361f(0x158)+'Name.','annotations':{'title':'Delet'+a0_0x32361f(0x2c0)+'l','destructiveHint':!![]},'inputSchema':{'type':a0_0x32361f(0x24a)+'t','properties':{'goalId':{'type':a0_0x32361f(0x1d5)+'g','description':'Goal\x20'+'UUID.'},'goalName':{'type':a0_0x32361f(0x1d5)+'g','description':'Goal\x20'+a0_0x32361f(0x217)+'for\x20r'+a0_0x32361f(0x18e)+a0_0x32361f(0x276)}}}};export const createKeyResultTool={'name':a0_0x32361f(0x1aa)+a0_0x32361f(0x16d)+a0_0x32361f(0x236)+'lt','description':a0_0x32361f(0x29e)+a0_0x32361f(0x154)+'Key\x20R'+a0_0x32361f(0x226)+a0_0x32361f(0x191)+a0_0x32361f(0x1f1)+a0_0x32361f(0x1db)+a0_0x32361f(0x177)+'.','annotations':{'title':a0_0x32361f(0x209)+a0_0x32361f(0x160)+a0_0x32361f(0x278)+'lt'},'inputSchema':{'type':a0_0x32361f(0x24a)+'t','properties':{'goalId':{'type':a0_0x32361f(0x1d5)+'g','description':a0_0x32361f(0x255)+a0_0x32361f(0x1ff)+a0_0x32361f(0x201)+'D.'},'goalName':{'type':'strin'+'g','description':a0_0x32361f(0x255)+a0_0x32361f(0x1ff)+a0_0x32361f(0x22c)+'e.'},'name':{'type':a0_0x32361f(0x1d5)+'g','description':a0_0x32361f(0x17e)+a0_0x32361f(0x28e)+a0_0x32361f(0x1dd)+a0_0x32361f(0x1d0)+a0_0x32361f(0x266)},'type':{'type':'strin'+'g','enum':[a0_0x32361f(0x1b8)+'r',a0_0x32361f(0x205)+a0_0x32361f(0x211),a0_0x32361f(0x280)+a0_0x32361f(0x155),a0_0x32361f(0x207)+'an','curre'+a0_0x32361f(0x24d)]},'stepsStart':{'type':'numbe'+'r','description':a0_0x32361f(0x151)+'ing\x20v'+'alue.'},'stepsEnd':{'type':a0_0x32361f(0x1b8)+'r','description':a0_0x32361f(0x24f)+a0_0x32361f(0x270)+a0_0x32361f(0x1bc)},'unit':{'type':a0_0x32361f(0x1d5)+'g','description':a0_0x32361f(0x208)+a0_0x32361f(0x1d7)+a0_0x32361f(0x1e5)+a0_0x32361f(0x166)+a0_0x32361f(0x19b)+a0_0x32361f(0x27d)+'.'},'taskIds':{'type':a0_0x32361f(0x192),'items':{'type':a0_0x32361f(0x1d5)+'g'},'description':a0_0x32361f(0x1ce)+a0_0x32361f(0x22f)+a0_0x32361f(0x1ef)+a0_0x32361f(0x28f)+a0_0x32361f(0x1e7)+a0_0x32361f(0x27b)+a0_0x32361f(0x162)+'e).'},'listIds':{'type':a0_0x32361f(0x192),'items':{'type':a0_0x32361f(0x1d5)+'g'},'description':a0_0x32361f(0x194)+'IDs\x20t'+a0_0x32361f(0x1ef)+a0_0x32361f(0x28f)+a0_0x32361f(0x1e7)+a0_0x32361f(0x27b)+'c\x20typ'+'e).'}},'required':[a0_0x32361f(0x2bf),a0_0x32361f(0x250)]}};export const updateKeyResultTool={'name':a0_0x32361f(0x1f3)+'e_key'+a0_0x32361f(0x236)+'lt','description':a0_0x32361f(0x29b)+a0_0x32361f(0x1f6)+a0_0x32361f(0x288)+'ing\x20K'+'ey\x20Re'+'sult\x27'+a0_0x32361f(0x198)+a0_0x32361f(0x1a4)+'\x20or\x20c'+a0_0x32361f(0x1d4)+'urati'+'on.\x20R'+a0_0x32361f(0x241)+a0_0x32361f(0x171)+'yResu'+a0_0x32361f(0x1c5)+a0_0x32361f(0x219)+'yResu'+a0_0x32361f(0x156)+'e.','annotations':{'title':a0_0x32361f(0x29b)+a0_0x32361f(0x160)+a0_0x32361f(0x278)+'lt'},'inputSchema':{'type':a0_0x32361f(0x24a)+'t','properties':{'keyResultId':{'type':a0_0x32361f(0x1d5)+'g','description':a0_0x32361f(0x244)+a0_0x32361f(0x226)+a0_0x32361f(0x15e)+'.'},'keyResultName':{'type':'strin'+'g','description':a0_0x32361f(0x244)+'esult'+a0_0x32361f(0x1d9)+'.'},'goalId':{'type':a0_0x32361f(0x1d5)+'g','description':a0_0x32361f(0x255)+'t\x20Goa'+'l\x20UUI'+'D\x20(re'+'quire'+a0_0x32361f(0x197)+'\x20name'+a0_0x32361f(0x29d)+a0_0x32361f(0x25b)+a0_0x32361f(0x25f)},'goalName':{'type':'strin'+'g','description':a0_0x32361f(0x255)+a0_0x32361f(0x1ff)+a0_0x32361f(0x22c)+'e.'},'name':{'type':a0_0x32361f(0x1d5)+'g'},'stepsStart':{'type':'numbe'+'r'},'stepsEnd':{'type':a0_0x32361f(0x1b8)+'r'},'unit':{'type':a0_0x32361f(0x1d5)+'g'},'taskIds':{'type':a0_0x32361f(0x192),'items':{'type':'strin'+'g'}},'listIds':{'type':a0_0x32361f(0x192),'items':{'type':a0_0x32361f(0x1d5)+'g'}}}}};function a0_0x58eb(){const _0x4f7837=['DcbhB2e','zsbPCYa','BcbvvuK','AxrZieS','DgvKihm','C3nMDwW','CgvYy2u','BhKU','yM9VBgu','vw5PDca','q3jLyxq','mZbqqKHSqKy','vfvnAfe','CgXLx28','zxzLBca','igeGv28','wMndsxu','DcWGC3q','BNrHz2u','y3rPB24','mtHZEvnkrei','x2n1CNi','igrLC2m','BMvYCYW','BMfTzsa','sgv4igm','B3iGA2u','DgLVBIa','Dwveyxq','zNvSBhK','AxnbCNi','CMLWDgK','uhjVDMK','DwX0lG','zxCGr28','B2fSCYa','zcWGDw4','EvjLC3u','x2vUza','zxn1Bhq','z2v0igC','CMvHDgu','wNfxBhq','z2v0x2C','BgLZDeK','BcbUyw0','rgvSzxq','zuDVywW','surZihq','B25L','zw1HAwW','DgfZA0K','y29TCgW','DwLYzwq','AwmGr28','x3jLC3u','B2fSj3m','lIbszxq','CxvPCMu','C3vSDca','zsCGAxm','ihrVigy','zxrLza','A2v5ihi','DgHLihC','C3rjzhm','zxf1Axi','zxKGuMu','DwuGzge','s2v5ifi','tK9fyNa','igLUigG','BMfTzsW','CMTZCge','B3jRC3a','B2jQzwm','D25LCNm','DxnLCM4','BMn5','zwXKCYa','vgfYz2u','DhLWzq','zwf0zsa','uLHiEui','BYbHzgq','Aw5JBhu','ugfYzw4','qvrYEuq','z29HBhm','lIbszxe','ote4otGWmgzkvLzVuq','zM9Yige','Bhv0Aw8','zwqGC3u','B2fS','DgHLihm','BIKU','ig11Bhq','DgLVBJO','DwrLigm','rgT3Bxi','yxrLzca','C3rLChm','BhqU','CgrHDgu','D24Gz28','y29SB3i','Aw9UlG','DguU','BwfW','mta0mtrNuxDWuwC','D1rHy1q','zguGj2C','Dcb2ywW','tun0BuS','vxnLCIa','zgf0zv8','zvjLC3a','ChjLDhq','DgLVBI4','DcCGywm','ifjLC3u','CMvTt3C','ysbhB2e','B21HDgK','C3bHy2u','iciKiIK','C3vSDhm','C2z1BgW','yxv0B20','zguGyxq','Ev9Pza','BxbSzxq','igXLyxm','mZC0nJe0mLzbzeL3DG','tM8GzMK','B24Sigq','zxHPC3q','igfIB3u','Aw4GDgG','igeGA2u','mta3nZi0nwvwBefbsa','B3bLCMe','B2yGDgG','AYaOzM8','x3n0yxi','CL9Pza','yxnRswq','CgXLDgu','u2fcAee','sg9Kq2q','ysbRzxK','CYbRzxK','B21WBgu','zM9Szgu','zxjZlG','vxbKyxq','BYbJCMu','ihjLC28','qwrKige','ihrVigm','B25Zzq','igrLBgu','AxrLBq','C3vJy2u','DgHLigC','Cg9UC2u','BxvSDgK','zcb0BYa','BYb1Cgq','DcbVBMu','iIbPBIa','sLzYuhO','CIaNA2u','CgLUBMu','ieLttYW','A2v5x3i','ywrKx28','ywXZ','zgvZy3i','r2v0ieC','zwXLDgu','zgvSzxq','CgXLt3C','z29HBf8','AxbSzsa','uMvZDwW','s2v5ihi','CIaNz28','mtmZmtm1mZHsrwrACvi','CMvKDwm','swqNig8','BMfTzq','zsbhB2e','BNrFy28','zxbZrw4','B3zLige','igLUigy','DgfTCcW','CIbRzxK','rw5K','Bc4GuMu','Aw5NigK','zsbYzxm','x2TLEv8','surZig8','ndGYoti0y0DiuLfM','zhvLrge','tMfTzsC','CgTOyvq','zgf0yq','Aw50zwC','ugvYBwe','yxr1CMe','AguGj2q','B2fSlG','u3rHCNq','ig9MoIa','ifjLCxu','ig5LDYa','yxrPyW','Bhroyw0','DgLJihi','igDVywW','y2nLC3m','zsCGyxi','igLUige','DeLKig8','z2v0','ifvvsuq','ihjLCxu','zsblzxK','v2HLDgG','yYb0Exa','CgvJAwy','BIbVzIa','DwnJzxm','lIaIDge','BgLZDf8','rgvZy3i','icHKzwy','tMv3igm','CMvKihq','yxrL','zv9RzxK','zhvLx2q','BMnSDwq','ig9Yz2e','zxmGA2u','ig9YigC','ChjVDMK','zgv0ywK','Dg9WlwW','zNjVBsa','ieDVywW','DgLTzxm','CMvZigC','zxiGDg8','CMvXDwK','Esbszxm','vuvpA2u','tMfTzsa','ywnLlG','rhvLigq','B3zLlG','zsCU','BML6zwq','mJy2yvrUwwH5','ywXoyw0','zw50','ywWGywm','AwTPCuO','ChrPB24','sfHryxu','iIbJCMu','igLUy2W','zMXHDe0','zxnVBhu','q291Bgq','yw5KBgu','ihrVige','yxjYyxK','zxjYB3i','tgLZDca','yNL2ALe','zsaNA2u','zcbMB3i','CYbWCM8','igfUzca','yw1L','C2TZiIW','DgvKigC','A2v5CW','ig9Yig4','zMLUzca','De5HBwu','zMTeswu','ihn0zxa','z29HBa','z3jLC3m','zuvYCM8','BgLZDca','BcbSyw4','zv9NB2e','ig5VDca','y3jLyxq','BMvUDgW','uMvTB3y','y291BNq','vvvjrc4','ruvlzKS','jYbHBMq','AxjLzca','BwvZC2e','zdOG','BgvKigK','yw1LlG','zgvdB20','ywrKt3C','BNvTyMu','z2v0r28','BwuU','jYbHy3q','DwuU','zuTLEvi','j25HBwu','DgfZA18','yxrLige','AwyGz28','BM90iha','swqGB3i','ywWGAw4','Bhrjzca','r29HBca','yxrLlIa','wK9JC00','Axb0Aw8','twfUywC','DwX0CY4','zgvKihq','AwrZ','vgfZAYa','jYbVCIa','ihjLC3u','BgvUz3q','vMT0Ce8','EsbYzxm','B25MAwC','C3rYAw4','DwLYzxm','BgfIzwW','j2DVywW','ig5HBwu','zsbYzxe','C3rPBMC','ywXZzsK','zsbRzxK','zM9Yrwe','BMvYCW','tMv3igq','vMLLDYa','ihvWzge','DxrVBwe','zsbNB2e','icHLlMC','zsWGy28','CIbHDxq','CMvTx28','rMfPBgu','AguGj3u','x2nVDw4','otyWmdmYnufdt3fMtG','B3DUzxi','CLjLC3a','BYbSAw4','AxqSihq','BIbLEgK','j2TLEvi','DxbKyxq','jYbPCYa','yxvSDhm','zsbHBIa','u2T4vxe','B2fStMe','igrLDge','zM9Yihq','Dw5PDa','zMfPBgu','suXWv28','zM9Yihi'];a0_0x58eb=function(){return _0x4f7837;};return a0_0x58eb();}export const deleteKeyResultTool={'name':a0_0x32361f(0x2b5)+a0_0x32361f(0x16d)+a0_0x32361f(0x236)+'lt','description':a0_0x32361f(0x1ac)+'e\x20a\x20K'+'ey\x20Re'+a0_0x32361f(0x23a)+a0_0x32361f(0x176)+a0_0x32361f(0x27a)+a0_0x32361f(0x142)+a0_0x32361f(0x239)+a0_0x32361f(0x297)+a0_0x32361f(0x2b9)+a0_0x32361f(0x15c)+a0_0x32361f(0x140)+a0_0x32361f(0x2b9)+a0_0x32361f(0x1a0)+'.','annotations':{'title':a0_0x32361f(0x22d)+a0_0x32361f(0x160)+a0_0x32361f(0x278)+'lt','destructiveHint':!![]},'inputSchema':{'type':a0_0x32361f(0x24a)+'t','properties':{'keyResultId':{'type':a0_0x32361f(0x1d5)+'g'},'keyResultName':{'type':a0_0x32361f(0x1d5)+'g'},'goalId':{'type':a0_0x32361f(0x1d5)+'g'},'goalName':{'type':a0_0x32361f(0x1d5)+'g'}}}};export async function handleManageGoals(_0x6a8ec1,_0x338a95){const _0x463da8=a0_0x32361f,_0x20cbff={'jgmFg':function(_0x58b380,_0x2f8180,_0x2f812b){return _0x58b380(_0x2f8180,_0x2f812b);},'ZOcsM':'Provi'+_0x463da8(0x26f)+'oalId'+_0x463da8(0x1cf)+'\x27goal'+_0x463da8(0x149)+'\x20to\x20r'+'esolv'+_0x463da8(0x196)+_0x463da8(0x224)+_0x463da8(0x156)+_0x463da8(0x182),'RXHyB':function(_0x1be34c,_0x2eb6a1,_0x37ad6e){return _0x1be34c(_0x2eb6a1,_0x37ad6e);},'ZqWlt':_0x463da8(0x1d8)+'Id\x27\x20o'+_0x463da8(0x2bb)+'alNam'+'e\x27\x20is'+'\x20requ'+_0x463da8(0x1b1)+_0x463da8(0x1fa)+'he\x20\x27g'+'et\x27\x20a'+_0x463da8(0x212)+'.','OUcaE':_0x463da8(0x1e9)+_0x463da8(0x2a7)+_0x463da8(0x227)+_0x463da8(0x25d),'EEKfK':function(_0x18f5f2,_0x442f95){return _0x18f5f2(_0x442f95);},'UEOke':_0x463da8(0x1aa)+'e','NOEbp':'\x27name'+_0x463da8(0x1f4)+_0x463da8(0x17b)+_0x463da8(0x16b)+_0x463da8(0x29c)+_0x463da8(0x1c0)+_0x463da8(0x158)+'.','HodCd':function(_0xf6ed92,_0x1f4731){return _0xf6ed92(_0x1f4731);},'ZcCIu':_0x463da8(0x1f3)+'e','MCtmK':_0x463da8(0x1d8)+_0x463da8(0x2be)+_0x463da8(0x2bb)+_0x463da8(0x185)+_0x463da8(0x23b)+_0x463da8(0x15f)+_0x463da8(0x1b1)+'for\x20t'+_0x463da8(0x1ea)+_0x463da8(0x267)+_0x463da8(0x1bb)+_0x463da8(0x26a),'wTacT':function(_0x142a07,_0x25a9ed,_0x5c2b72,_0x55af17){return _0x142a07(_0x25a9ed,_0x5c2b72,_0x55af17);},'SkxUq':_0x463da8(0x1e9)+_0x463da8(0x2a7)+'updat'+'e\x20goa'+'l','HXQau':function(_0x38ab06,_0x1d93d8){return _0x38ab06(_0x1d93d8);},'ATryD':'delet'+'e','Dkwmr':function(_0x109684,_0x405007){return _0x109684(_0x405007);},'JVrPz':_0x463da8(0x1e9)+_0x463da8(0x2a7)+_0x463da8(0x1aa)+_0x463da8(0x1dd)+'\x20resu'+'lt','ikiqJ':_0x463da8(0x1f3)+_0x463da8(0x16d)+_0x463da8(0x236)+'lt','fkDIe':_0x463da8(0x2b5)+_0x463da8(0x16d)+_0x463da8(0x236)+'lt'},{goal:_0x2fbb3c}=_0x338a95,{action:_0x46e4a4,goalId:_0x3c075d,goalName:_0x130430,keyResultId:_0x15dbc3,keyResultName:_0x2a1af4,teamId:_0x186c0e}=_0x6a8ec1;try{let _0x14f025=_0x3c075d;if(!_0x14f025&&_0x130430){const _0x44b9d1=await _0x2fbb3c['getGo'+_0x463da8(0x2b1)](_0x6a8ec1[_0x463da8(0x254)+_0x463da8(0x1b6)+'plete'+'d'],_0x186c0e);if(_0x44b9d1[_0x463da8(0x2a3)+'ss']){const _0x4d4da9=[..._0x44b9d1[_0x463da8(0x14b)]?.[_0x463da8(0x257)]||[],...(_0x44b9d1[_0x463da8(0x14b)]?.['folde'+'rs']||[])[_0x463da8(0x18d)+'ap'](_0x142f64=>_0x142f64[_0x463da8(0x257)]||[])],_0x4b2881=_0x20cbff['jgmFg'](findBestMatchInArray,_0x4d4da9,_0x130430);if(_0x4b2881)_0x14f025=_0x4b2881[_0x463da8(0x2a2)]['id'];}if(!_0x14f025)return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+_0x463da8(0x2a0)](_0x463da8(0x18f)+_0x463da8(0x1a9)+_0x463da8(0x19f)+'goal\x20'+'named'+'\x20\x22'+_0x130430+(_0x463da8(0x2aa)+_0x463da8(0x23f)+_0x463da8(0x249)+_0x463da8(0x17f)));}let _0x51438c=_0x15dbc3;if(!_0x51438c&&_0x2a1af4){if(!_0x14f025)return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+'onse'](_0x20cbff[_0x463da8(0x1c8)]);const _0x51c71a=await _0x2fbb3c['getGo'+'al'](_0x14f025);if(_0x51c71a[_0x463da8(0x2a3)+'ss']){const _0x39d416=_0x20cbff[_0x463da8(0x252)](findBestMatchInArray,_0x51c71a[_0x463da8(0x14b)]?.['goal']?.['key_r'+_0x463da8(0x226)+'s']||[],_0x2a1af4);if(_0x39d416)_0x51438c=_0x39d416[_0x463da8(0x2a2)]['id'];}if(!_0x51438c)return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+_0x463da8(0x2a0)](_0x463da8(0x18f)+_0x463da8(0x1a9)+_0x463da8(0x19f)+_0x463da8(0x23e)+'esult'+_0x463da8(0x1d9)+'d\x20\x22'+_0x2a1af4+(_0x463da8(0x2aa)+_0x463da8(0x25e)+'pecif'+'ied\x20g'+_0x463da8(0x150)));}switch(_0x46e4a4){case'list':{const _0x38b815=await _0x2fbb3c[_0x463da8(0x1b9)+_0x463da8(0x2b1)](_0x6a8ec1[_0x463da8(0x254)+_0x463da8(0x1b6)+_0x463da8(0x293)+'d'],_0x186c0e);if(!_0x38b815[_0x463da8(0x2a3)+'ss'])return sponsorService['creat'+_0x463da8(0x1a5)+_0x463da8(0x1ee)+_0x463da8(0x2a0)](_0x38b815[_0x463da8(0x193)]?.[_0x463da8(0x1b2)+'ge']||_0x463da8(0x1e9)+'d\x20to\x20'+_0x463da8(0x1a6)+_0x463da8(0x257));const _0x23d2f1=(_0x38b815[_0x463da8(0x14b)]?.[_0x463da8(0x257)]||[])[_0x463da8(0x26c)](formatGoalSummary),_0x2bec1d=(_0x38b815[_0x463da8(0x14b)]?.[_0x463da8(0x299)+'rs']||[])['map'](_0x569f24=>({'id':_0x569f24['id'],'name':_0x569f24[_0x463da8(0x2bf)],'goal_count':_0x569f24[_0x463da8(0x2b7)+_0x463da8(0x1ad)],'goals':(_0x569f24[_0x463da8(0x257)]||[])[_0x463da8(0x26c)](formatGoalSummary)})),_0x2f7b1d=_0x23d2f1[_0x463da8(0x1d1)+'h']+_0x2bec1d[_0x463da8(0x2bd)+'e']((_0x2f0748,_0x3a1674)=>_0x2f0748+_0x3a1674[_0x463da8(0x257)][_0x463da8(0x1d1)+'h'],0x0);return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x274)+_0x463da8(0x2a0)]({'goals':_0x23d2f1,'folders':_0x2bec1d,'total_count':_0x2f7b1d},!![]);}case _0x463da8(0x15d):{if(!_0x14f025)return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+_0x463da8(0x2a0)](_0x20cbff[_0x463da8(0x229)]);const _0x400508=await _0x2fbb3c[_0x463da8(0x1b9)+'al'](_0x14f025);if(!_0x400508[_0x463da8(0x2a3)+'ss'])return sponsorService['creat'+_0x463da8(0x1a5)+_0x463da8(0x1ee)+_0x463da8(0x2a0)](_0x400508['error']?.['messa'+'ge']||_0x20cbff['OUcaE']);const _0x49a6a8=_0x400508[_0x463da8(0x14b)]?.[_0x463da8(0x1a3)]||_0x400508['data'];return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x274)+_0x463da8(0x2a0)](_0x20cbff[_0x463da8(0x1af)](formatGoalDetail,_0x49a6a8),!![]);}case _0x20cbff[_0x463da8(0x17d)]:{if(!_0x6a8ec1[_0x463da8(0x2bf)])return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+'rResp'+_0x463da8(0x2a0)](_0x20cbff[_0x463da8(0x245)]);const _0x298f01=buildGoalFields(_0x6a8ec1,_0x463da8(0x1aa)+'e',_0x338a95['timez'+_0x463da8(0x230)]),_0x152b2b=await _0x2fbb3c[_0x463da8(0x1aa)+_0x463da8(0x22e)](_0x298f01);if(!_0x152b2b[_0x463da8(0x2a3)+'ss'])return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+_0x463da8(0x2a0)](_0x152b2b['error']?.[_0x463da8(0x1b2)+'ge']||_0x463da8(0x1e9)+'d\x20to\x20'+_0x463da8(0x1aa)+_0x463da8(0x1e4)+'l');const _0x2c73db=_0x152b2b[_0x463da8(0x14b)]?.[_0x463da8(0x1a3)]||_0x152b2b['data'];return sponsorService['creat'+_0x463da8(0x274)+_0x463da8(0x2a0)]({..._0x20cbff[_0x463da8(0x295)](formatGoalDetail,_0x2c73db),'message':_0x463da8(0x1c6)+'\x22'+_0x6a8ec1[_0x463da8(0x2bf)]+('\x22\x20cre'+_0x463da8(0x264)+_0x463da8(0x2a3)+_0x463da8(0x204)+'ly.')},!![]);}case _0x20cbff[_0x463da8(0x20f)]:{if(!_0x14f025)return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+_0x463da8(0x2a0)](_0x20cbff[_0x463da8(0x271)]);const _0x5ad72a=_0x20cbff[_0x463da8(0x26e)](buildGoalFields,_0x6a8ec1,_0x20cbff[_0x463da8(0x20f)],_0x338a95['timez'+_0x463da8(0x230)]);if(Object[_0x463da8(0x19d)](_0x5ad72a)['lengt'+'h']===0x0)return sponsorService['creat'+_0x463da8(0x1a5)+'rResp'+_0x463da8(0x2a0)](_0x463da8(0x286)+_0x463da8(0x24e)+_0x463da8(0x173)+_0x463da8(0x1cc)+'o\x20upd'+_0x463da8(0x1c7)+_0x463da8(0x21f)+_0x463da8(0x281)+_0x463da8(0x284)+_0x463da8(0x2a9)+_0x463da8(0x152)+_0x463da8(0x247)+_0x463da8(0x215)+_0x463da8(0x21e)+_0x463da8(0x287)+_0x463da8(0x21b)+_0x463da8(0x1e6)+'lor,\x20'+'addOw'+_0x463da8(0x216)+'\x20remO'+_0x463da8(0x24b)+'.');const _0x27ce2e=await _0x2fbb3c[_0x463da8(0x1f3)+_0x463da8(0x22e)](_0x14f025,_0x5ad72a);if(!_0x27ce2e[_0x463da8(0x2a3)+'ss'])return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+'onse'](_0x27ce2e['error']?.['messa'+'ge']||_0x20cbff[_0x463da8(0x1f7)]);const _0x3c52d2=_0x27ce2e[_0x463da8(0x14b)]?.[_0x463da8(0x1a3)]||_0x27ce2e[_0x463da8(0x14b)];return sponsorService[_0x463da8(0x1aa)+'eResp'+_0x463da8(0x2a0)]({..._0x20cbff['HXQau'](formatGoalDetail,_0x3c52d2),'message':'Goal\x20'+_0x463da8(0x1f3)+_0x463da8(0x25c)+_0x463da8(0x159)+_0x463da8(0x21c)+'.'},!![]);}case _0x20cbff[_0x463da8(0x256)]:{if(!_0x14f025)return sponsorService[_0x463da8(0x1aa)+'eErro'+_0x463da8(0x1ee)+_0x463da8(0x2a0)](_0x463da8(0x1d8)+'Id\x27\x20o'+'r\x20\x27go'+'alNam'+_0x463da8(0x23b)+_0x463da8(0x15f)+_0x463da8(0x1b1)+_0x463da8(0x1fa)+_0x463da8(0x14f)+_0x463da8(0x2b4)+'\x27\x20act'+_0x463da8(0x26a));const _0x167ae3=await _0x2fbb3c[_0x463da8(0x2b5)+_0x463da8(0x22e)](_0x14f025);if(!_0x167ae3[_0x463da8(0x2a3)+'ss'])return sponsorService[_0x463da8(0x1aa)+'eErro'+'rResp'+_0x463da8(0x2a0)](_0x167ae3['error']?.['messa'+'ge']||_0x463da8(0x1e9)+_0x463da8(0x2a7)+_0x463da8(0x2b5)+_0x463da8(0x1e4)+'l');return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x274)+_0x463da8(0x2a0)]({'success':!![],'message':_0x463da8(0x1c6)+'delet'+_0x463da8(0x25c)+_0x463da8(0x159)+'fully'+'.'},!![]);}case _0x463da8(0x1aa)+'e_key'+_0x463da8(0x236)+'lt':{if(!_0x14f025)return sponsorService[_0x463da8(0x1aa)+'eErro'+_0x463da8(0x1ee)+_0x463da8(0x2a0)](_0x463da8(0x1d8)+'Id\x27\x20o'+'r\x20\x27go'+_0x463da8(0x185)+'e\x27\x20is'+_0x463da8(0x15f)+'ired\x20'+'to\x20cr'+_0x463da8(0x251)+_0x463da8(0x296)+_0x463da8(0x1d0)+'lt.');if(!_0x6a8ec1[_0x463da8(0x2bf)]||!_0x6a8ec1[_0x463da8(0x250)])return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+'onse'](_0x463da8(0x1be)+_0x463da8(0x1b0)+'\x20\x27typ'+_0x463da8(0x15a)+_0x463da8(0x1da)+_0x463da8(0x234)+_0x463da8(0x29f)+_0x463da8(0x228)+_0x463da8(0x28b)+_0x463da8(0x1d3)+_0x463da8(0x220));const _0x27abc5=_0x20cbff[_0x463da8(0x263)](buildKeyResultFields,_0x6a8ec1),_0x1a9ad4=await _0x2fbb3c[_0x463da8(0x1aa)+_0x463da8(0x1bd)+_0x463da8(0x226)](_0x14f025,_0x27abc5);if(!_0x1a9ad4['succe'+'ss'])return sponsorService['creat'+_0x463da8(0x1a5)+'rResp'+_0x463da8(0x2a0)](_0x1a9ad4[_0x463da8(0x193)]?.[_0x463da8(0x1b2)+'ge']||_0x20cbff[_0x463da8(0x2ab)]);const _0x48c68b=_0x1a9ad4[_0x463da8(0x14b)]?.[_0x463da8(0x2af)+_0x463da8(0x226)]||_0x1a9ad4[_0x463da8(0x14b)];return sponsorService['creat'+_0x463da8(0x274)+_0x463da8(0x2a0)]({'key_result':formatKeyResult(_0x48c68b),'message':_0x463da8(0x2ba)+_0x463da8(0x226)+'\x20\x22'+_0x6a8ec1[_0x463da8(0x2bf)]+(_0x463da8(0x18b)+'ated\x20'+_0x463da8(0x2a3)+'ssful'+_0x463da8(0x206))},!![]);}case _0x20cbff[_0x463da8(0x188)]:{if(!_0x51438c)return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+'onse'](_0x463da8(0x1f2)+_0x463da8(0x226)+'Id\x27\x20o'+_0x463da8(0x2ac)+_0x463da8(0x224)+_0x463da8(0x156)+_0x463da8(0x23b)+_0x463da8(0x15f)+_0x463da8(0x1b1)+_0x463da8(0x1fa)+'he\x20\x27u'+_0x463da8(0x267)+_0x463da8(0x145)+'resul'+_0x463da8(0x277)+'tion.');const _0x21d3fa=_0x20cbff[_0x463da8(0x18a)](buildKeyResultFields,_0x6a8ec1);if(Object[_0x463da8(0x19d)](_0x21d3fa)[_0x463da8(0x1d1)+'h']===0x0)return sponsorService['creat'+_0x463da8(0x1a5)+'rResp'+_0x463da8(0x2a0)](_0x463da8(0x286)+_0x463da8(0x24e)+'provi'+_0x463da8(0x1cc)+_0x463da8(0x2a8)+_0x463da8(0x1c7)+_0x463da8(0x21f)+_0x463da8(0x281)+'\x20leas'+_0x463da8(0x2a9)+_0x463da8(0x152)+_0x463da8(0x247)+_0x463da8(0x1a2)+'sStar'+_0x463da8(0x210)+_0x463da8(0x2c2)+_0x463da8(0x223)+_0x463da8(0x1f0)+_0x463da8(0x292)+'s,\x20li'+_0x463da8(0x240)+'.');const _0x2a4abf=await _0x2fbb3c['updat'+'eKeyR'+_0x463da8(0x226)](_0x51438c,_0x21d3fa);if(!_0x2a4abf[_0x463da8(0x2a3)+'ss'])return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+'onse'](_0x2a4abf[_0x463da8(0x193)]?.[_0x463da8(0x1b2)+'ge']||_0x463da8(0x1e9)+_0x463da8(0x2a7)+_0x463da8(0x1f3)+_0x463da8(0x1dd)+_0x463da8(0x1d0)+'lt');const _0x5e3a32=_0x2a4abf[_0x463da8(0x14b)]?.[_0x463da8(0x2af)+_0x463da8(0x226)]||_0x2a4abf[_0x463da8(0x14b)];return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x274)+_0x463da8(0x2a0)]({'key_result':_0x20cbff[_0x463da8(0x18a)](formatKeyResult,_0x5e3a32),'message':'Key\x20r'+'esult'+_0x463da8(0x1e2)+_0x463da8(0x203)+'ucces'+_0x463da8(0x27f)+'y.'},!![]);}case _0x20cbff[_0x463da8(0x1a1)]:{if(!_0x51438c)return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+'onse'](_0x463da8(0x1f2)+'esult'+_0x463da8(0x2be)+_0x463da8(0x2ac)+_0x463da8(0x224)+'ltNam'+'e\x27\x20is'+_0x463da8(0x15f)+'ired\x20'+_0x463da8(0x1fa)+_0x463da8(0x14f)+'elete'+_0x463da8(0x145)+'resul'+'t\x27\x20ac'+'tion.');const _0x40993e=await _0x2fbb3c[_0x463da8(0x2b5)+_0x463da8(0x1bd)+_0x463da8(0x226)](_0x51438c);if(!_0x40993e[_0x463da8(0x2a3)+'ss'])return sponsorService[_0x463da8(0x1aa)+'eErro'+'rResp'+_0x463da8(0x2a0)](_0x40993e[_0x463da8(0x193)]?.['messa'+'ge']||'Faile'+_0x463da8(0x2a7)+_0x463da8(0x2b5)+'e\x20key'+'\x20resu'+'lt');return sponsorService['creat'+'eResp'+_0x463da8(0x2a0)]({'success':!![],'message':_0x463da8(0x2ba)+_0x463da8(0x226)+_0x463da8(0x2a1)+_0x463da8(0x203)+_0x463da8(0x165)+_0x463da8(0x27f)+'y.'},!![]);}default:return sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+_0x463da8(0x1ee)+_0x463da8(0x2a0)]('Unkno'+_0x463da8(0x268)+_0x463da8(0x187)+_0x463da8(0x261)+'\x20'+_0x46e4a4);}}catch(_0x508fa0){return logger[_0x463da8(0x193)]('Error'+_0x463da8(0x246)+_0x463da8(0x190)+_0x463da8(0x1ca)+_0x463da8(0x22e)+'s\x20(ac'+_0x463da8(0x261)+'\x20'+_0x46e4a4+')',_0x508fa0),sponsorService[_0x463da8(0x1aa)+_0x463da8(0x1a5)+'rResp'+_0x463da8(0x2a0)]('Goal\x20'+_0x463da8(0x28d)+_0x463da8(0x21a)+_0x463da8(0x1fc)+_0x463da8(0x1b3)+_0x508fa0[_0x463da8(0x1b2)+'ge']);}}function formatGoalSummary(_0x2318ab){const _0x3fb1e9=a0_0x32361f;return{'id':_0x2318ab['id'],'pretty_id':_0x2318ab[_0x3fb1e9(0x275)+_0x3fb1e9(0x282)],'name':_0x2318ab[_0x3fb1e9(0x2bf)],'description':_0x2318ab[_0x3fb1e9(0x2b2)+_0x3fb1e9(0x1c9)+'n']||null,'color':_0x2318ab[_0x3fb1e9(0x269)]||null,'due_date':_0x2318ab[_0x3fb1e9(0x16e)+_0x3fb1e9(0x16c)]||null,'percent_completed':_0x2318ab[_0x3fb1e9(0x205)+_0x3fb1e9(0x2c1)+_0x3fb1e9(0x283)+'ed']??null,'completed':_0x2318ab[_0x3fb1e9(0x233)+_0x3fb1e9(0x23d)]??![],'pinned':_0x2318ab[_0x3fb1e9(0x2ad)+'d']??![],'owner_count':Array[_0x3fb1e9(0x21d)+'ay'](_0x2318ab[_0x3fb1e9(0x1ed)+'s'])?_0x2318ab['owner'+'s'][_0x3fb1e9(0x1d1)+'h']:0x0,'key_result_count':_0x2318ab[_0x3fb1e9(0x2af)+_0x3fb1e9(0x226)+_0x3fb1e9(0x1eb)+'t']??(Array[_0x3fb1e9(0x21d)+'ay'](_0x2318ab['key_r'+_0x3fb1e9(0x226)+'s'])?_0x2318ab[_0x3fb1e9(0x2af)+_0x3fb1e9(0x226)+'s'][_0x3fb1e9(0x1d1)+'h']:0x0)};}function formatGoalDetail(_0x35ab8d){const _0x48fceb=a0_0x32361f;if(!_0x35ab8d)return _0x35ab8d;const _0x2e50a1=new Map();return Array['isArr'+'ay'](_0x35ab8d['membe'+'rs'])&&_0x35ab8d['membe'+'rs'][_0x48fceb(0x1de)+'ch'](_0x1caea7=>_0x2e50a1['set'](String(_0x1caea7['id']),_0x1caea7)),{'id':_0x35ab8d['id'],'pretty_id':_0x35ab8d[_0x48fceb(0x275)+_0x48fceb(0x282)],'name':_0x35ab8d[_0x48fceb(0x2bf)],'description':_0x35ab8d[_0x48fceb(0x2b2)+_0x48fceb(0x1c9)+'n']||null,'color':_0x35ab8d[_0x48fceb(0x269)]||null,'due_date':_0x35ab8d['due_d'+_0x48fceb(0x16c)]||null,'percent_completed':_0x35ab8d['perce'+_0x48fceb(0x2c1)+_0x48fceb(0x283)+'ed']??null,'completed':_0x35ab8d[_0x48fceb(0x233)+_0x48fceb(0x23d)]??![],'pinned':_0x35ab8d[_0x48fceb(0x2ad)+'d']??![],'multiple_owners':_0x35ab8d[_0x48fceb(0x2a6)+_0x48fceb(0x20c)+_0x48fceb(0x24b)]??![],'folder_id':_0x35ab8d[_0x48fceb(0x299)+_0x48fceb(0x291)]||null,'owners':(_0x35ab8d[_0x48fceb(0x1ed)+'s']||[])[_0x48fceb(0x26c)](_0x5379ac=>{const _0x5d483f=_0x48fceb,_0xc4e125=_0x2e50a1[_0x5d483f(0x15d)](String(_0x5379ac));return _0xc4e125?{'id':_0xc4e125['id'],'username':_0xc4e125['usern'+_0x5d483f(0x19a)],'email':_0xc4e125[_0x5d483f(0x231)]}:{'id':_0x5379ac};}),'key_results':(_0x35ab8d[_0x48fceb(0x2af)+'esult'+'s']||[])[_0x48fceb(0x26c)](formatKeyResult),'date_created':_0x35ab8d[_0x48fceb(0x273)+_0x48fceb(0x1aa)+'ed']||null,'creator':_0x35ab8d['creat'+'or']?{'id':_0x35ab8d[_0x48fceb(0x1aa)+'or']['id'],'username':_0x35ab8d[_0x48fceb(0x1aa)+'or'][_0x48fceb(0x24c)+_0x48fceb(0x19a)]}:null};}function a0_0x111e(_0x478934,_0x57f462){_0x478934=_0x478934-0x13d;const _0x58eb61=a0_0x58eb();let _0x111e81=_0x58eb61[_0x478934];if(a0_0x111e['TCLMad']===undefined){var _0x2d7934=function(_0x306108){const _0x4dac56='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e0f2d='',_0x188c2e='';for(let _0x346225=0x0,_0x28fd0c,_0x5d5928,_0x5b2920=0x0;_0x5d5928=_0x306108['charAt'](_0x5b2920++);~_0x5d5928&&(_0x28fd0c=_0x346225%0x4?_0x28fd0c*0x40+_0x5d5928:_0x5d5928,_0x346225++%0x4)?_0x5e0f2d+=String['fromCharCode'](0xff&_0x28fd0c>>(-0x2*_0x346225&0x6)):0x0){_0x5d5928=_0x4dac56['indexOf'](_0x5d5928);}for(let _0x2c550b=0x0,_0xcc3b7f=_0x5e0f2d['length'];_0x2c550b<_0xcc3b7f;_0x2c550b++){_0x188c2e+='%'+('00'+_0x5e0f2d['charCodeAt'](_0x2c550b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x188c2e);};a0_0x111e['KlPkuz']=_0x2d7934,a0_0x111e['APeAZb']={},a0_0x111e['TCLMad']=!![];}const _0x3cbbb7=_0x58eb61[0x0],_0x17b730=_0x478934+_0x3cbbb7,_0x221712=a0_0x111e['APeAZb'][_0x17b730];return!_0x221712?(_0x111e81=a0_0x111e['KlPkuz'](_0x111e81),a0_0x111e['APeAZb'][_0x17b730]=_0x111e81):_0x111e81=_0x221712,_0x111e81;}function formatKeyResult(_0x523d9b){const _0x4db6fe=a0_0x32361f;if(!_0x523d9b)return _0x523d9b;return{'id':_0x523d9b['id'],'name':_0x523d9b['name'],'type':_0x523d9b['type'],'unit':_0x523d9b['unit']||null,'steps_start':_0x523d9b[_0x4db6fe(0x265)+_0x4db6fe(0x290)+'t']??null,'steps_current':_0x523d9b[_0x4db6fe(0x265)+_0x4db6fe(0x214)+_0x4db6fe(0x186)]??null,'steps_end':_0x523d9b[_0x4db6fe(0x265)+_0x4db6fe(0x225)]??null,'percent_completed':_0x523d9b[_0x4db6fe(0x205)+_0x4db6fe(0x2c1)+'mplet'+'ed']??null,'completed':_0x523d9b['compl'+_0x4db6fe(0x23d)]??![],'task_ids':_0x523d9b[_0x4db6fe(0x1bf)+'ids']||[],'list_ids':_0x523d9b['list_'+_0x4db6fe(0x1cd)]||[]};}function buildGoalFields(_0x38801d,_0x368a72,_0x1b64ec){const _0x170c26=a0_0x32361f,_0x2a1a6d={'VktpO':function(_0x2b39da,_0x43d302){return _0x2b39da!==_0x43d302;},'ILpWo':function(_0x3d5c12,_0x494395){return _0x3d5c12(_0x494395);},'SaBhA':_0x170c26(0x1aa)+'e','pkhaT':function(_0xb75495,_0x21a8b8){return _0xb75495!==_0x21a8b8;},'byvjQ':function(_0x59c95b,_0xd0b094){return _0x59c95b!==_0xd0b094;}},_0x3af80a={};if(_0x2a1a6d[_0x170c26(0x1d2)](_0x38801d[_0x170c26(0x2bf)],undefined))_0x3af80a[_0x170c26(0x2bf)]=_0x38801d[_0x170c26(0x2bf)];if(_0x38801d[_0x170c26(0x2b2)+_0x170c26(0x1c9)+'n']!==undefined)_0x3af80a['descr'+_0x170c26(0x1c9)+'n']=_0x38801d['descr'+'iptio'+'n'];if(_0x2a1a6d[_0x170c26(0x1d2)](_0x38801d[_0x170c26(0x269)],undefined))_0x3af80a[_0x170c26(0x269)]=_0x38801d[_0x170c26(0x269)];if(_0x2a1a6d[_0x170c26(0x1d2)](_0x38801d[_0x170c26(0x148)+'te'],undefined)){const _0x56f25c=parseDueDate(_0x2a1a6d[_0x170c26(0x1fd)](String,_0x38801d['dueDa'+'te']),undefined,_0x1b64ec);if(_0x56f25c!==undefined)_0x3af80a['due_d'+_0x170c26(0x16c)]=_0x56f25c;}if(_0x368a72===_0x2a1a6d[_0x170c26(0x294)]){if(_0x38801d['multi'+_0x170c26(0x2b6)+'ners']!==undefined)_0x3af80a[_0x170c26(0x2a6)+'ple_o'+_0x170c26(0x24b)]=_0x38801d['multi'+_0x170c26(0x2b6)+_0x170c26(0x1df)];if(_0x38801d['owner'+'s']!==undefined)_0x3af80a[_0x170c26(0x1ed)+'s']=_0x38801d['owner'+'s'];}else{if(_0x2a1a6d[_0x170c26(0x14a)](_0x38801d[_0x170c26(0x1b7)+_0x170c26(0x1df)],undefined))_0x3af80a[_0x170c26(0x2b0)+'wners']=_0x38801d[_0x170c26(0x1b7)+'ners'];if(_0x2a1a6d[_0x170c26(0x195)](_0x38801d[_0x170c26(0x279)+_0x170c26(0x1df)],undefined))_0x3af80a[_0x170c26(0x1e8)+'wners']=_0x38801d[_0x170c26(0x279)+_0x170c26(0x1df)];}return _0x3af80a;}function buildKeyResultFields(_0x5073c9){const _0xb7dca9=a0_0x32361f,_0x57305b={'TUMhQ':function(_0x4b62e8,_0x2ef653){return _0x4b62e8!==_0x2ef653;}},_0x11fb0a={};if(_0x57305b[_0xb7dca9(0x20b)](_0x5073c9[_0xb7dca9(0x2bf)],undefined))_0x11fb0a[_0xb7dca9(0x2bf)]=_0x5073c9[_0xb7dca9(0x2bf)];if(_0x5073c9[_0xb7dca9(0x250)]!==undefined)_0x11fb0a[_0xb7dca9(0x250)]=_0x5073c9[_0xb7dca9(0x250)];if(_0x5073c9['steps'+'Start']!==undefined)_0x11fb0a[_0xb7dca9(0x265)+_0xb7dca9(0x290)+'t']=_0x5073c9[_0xb7dca9(0x265)+'Start'];if(_0x57305b['TUMhQ'](_0x5073c9[_0xb7dca9(0x265)+_0xb7dca9(0x141)],undefined))_0x11fb0a[_0xb7dca9(0x265)+_0xb7dca9(0x225)]=_0x5073c9[_0xb7dca9(0x265)+_0xb7dca9(0x141)];if(_0x57305b[_0xb7dca9(0x20b)](_0x5073c9[_0xb7dca9(0x1fb)],undefined))_0x11fb0a[_0xb7dca9(0x1fb)]=_0x5073c9['unit'];if(_0x5073c9[_0xb7dca9(0x232)+'ds']!==undefined)_0x11fb0a[_0xb7dca9(0x1bf)+_0xb7dca9(0x1cd)]=_0x5073c9[_0xb7dca9(0x232)+'ds'];if(_0x57305b['TUMhQ'](_0x5073c9[_0xb7dca9(0x22b)+'ds'],undefined))_0x11fb0a[_0xb7dca9(0x167)+_0xb7dca9(0x1cd)]=_0x5073c9[_0xb7dca9(0x22b)+'ds'];return _0x11fb0a;}
|
|
1
|
+
const a0_0x1d5cee=a0_0x3df0;(function(_0x1f93cc,_0x28f8f4){const _0x4d98f2=a0_0x3df0,_0xca7f72=_0x1f93cc();while(!![]){try{const _0x3bea60=parseInt(_0x4d98f2(0x20e))/0x1*(-parseInt(_0x4d98f2(0x17a))/0x2)+-parseInt(_0x4d98f2(0x106))/0x3+parseInt(_0x4d98f2(0x1b4))/0x4*(-parseInt(_0x4d98f2(0x13f))/0x5)+-parseInt(_0x4d98f2(0x1cd))/0x6+parseInt(_0x4d98f2(0x19f))/0x7*(parseInt(_0x4d98f2(0x190))/0x8)+parseInt(_0x4d98f2(0x218))/0x9*(parseInt(_0x4d98f2(0x1bb))/0xa)+-parseInt(_0x4d98f2(0xf5))/0xb*(-parseInt(_0x4d98f2(0x240))/0xc);if(_0x3bea60===_0x28f8f4)break;else _0xca7f72['push'](_0xca7f72['shift']());}catch(_0x551905){_0xca7f72['push'](_0xca7f72['shift']());}}}(a0_0x58ca,0x82bf5));import{sponsorService}from'../utils/sponsor-service.js';import{findBestMatchInArray}from'../utils/resolver-utils.js';import{parseDueDate}from'../utils/date-utils.js';import{Logger}from'../logger.js';const logger=new Logger('GoalT'+a0_0x1d5cee(0x191));export const listGoalsTool={'name':a0_0x1d5cee(0x126)+a0_0x1d5cee(0x206),'description':a0_0x1d5cee(0x250)+a0_0x1d5cee(0x201)+a0_0x1d5cee(0x1be)+'lable'+a0_0x1d5cee(0x18d)+'\x20Work'+a0_0x1d5cee(0x10c)+a0_0x1d5cee(0x231)+a0_0x1d5cee(0x216)+'top-l'+a0_0x1d5cee(0x22c)+'goals'+a0_0x1d5cee(0x12e)+a0_0x1d5cee(0x206)+'\x20orga'+a0_0x1d5cee(0x1b3)+a0_0x1d5cee(0x142)+'older'+'s.','annotations':{'title':'List\x20'+a0_0x1d5cee(0x201),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x1d5cee(0x1fb)+'t','properties':{'includeCompleted':{'type':a0_0x1d5cee(0x1c9)+'an','description':a0_0x1d5cee(0x116)+'er\x20to'+a0_0x1d5cee(0x232)+a0_0x1d5cee(0x13e)+a0_0x1d5cee(0x229)+a0_0x1d5cee(0x1dc)+a0_0x1d5cee(0x1d9)+a0_0x1d5cee(0x156)+a0_0x1d5cee(0x122)+a0_0x1d5cee(0x1c1)+'\x20(def'+a0_0x1d5cee(0xfa)+a0_0x1d5cee(0x1c3)+a0_0x1d5cee(0x1f0)+'.'}}}};export const getGoalTool={'name':a0_0x1d5cee(0x16e)+a0_0x1d5cee(0x11e),'description':'View\x20'+'detai'+a0_0x1d5cee(0x244)+a0_0x1d5cee(0x241)+'ation'+'\x20abou'+a0_0x1d5cee(0x194)+'pecif'+a0_0x1d5cee(0x100)+a0_0x1d5cee(0x1e0)+'nclud'+a0_0x1d5cee(0x11a)+a0_0x1d5cee(0x150)+a0_0x1d5cee(0x1b2)+a0_0x1d5cee(0x165),'annotations':{'title':a0_0x1d5cee(0x175)+a0_0x1d5cee(0x11e),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x1d5cee(0x1fb)+'t','properties':{'goalId':{'type':'strin'+'g','description':a0_0x1d5cee(0x1b8)+a0_0x1d5cee(0x163)+'\x20Requ'+a0_0x1d5cee(0x12a)+a0_0x1d5cee(0x103)+a0_0x1d5cee(0x151)+'e\x20is\x20'+a0_0x1d5cee(0x128)+a0_0x1d5cee(0x18a)+'ed.'},'goalName':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x1b8)+a0_0x1d5cee(0x20d)+a0_0x1d5cee(0x153)+'utoma'+'tic\x20r'+a0_0x1d5cee(0x137)+a0_0x1d5cee(0x14d)}}}};export const createGoalTool={'name':a0_0x1d5cee(0x154)+a0_0x1d5cee(0x212)+'l','description':'Creat'+'e\x20a\x20n'+a0_0x1d5cee(0x16c)+'al\x20in'+a0_0x1d5cee(0x101)+a0_0x1d5cee(0x261)+'ce.','annotations':{'title':a0_0x1d5cee(0x1ad)+a0_0x1d5cee(0x1fc)+'l'},'inputSchema':{'type':a0_0x1d5cee(0x1fb)+'t','properties':{'name':{'type':a0_0x1d5cee(0x1b5)+'g','description':'Name\x20'+a0_0x1d5cee(0x10e)+a0_0x1d5cee(0x238)+'l.'},'description':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x1e9)+a0_0x1d5cee(0x1bd)+a0_0x1d5cee(0x1d3)+a0_0x1d5cee(0x10b)+a0_0x1d5cee(0x1dd)},'dueDate':{'type':[a0_0x1d5cee(0x1b5)+'g',a0_0x1d5cee(0x19a)+'r'],'description':'Due\x20d'+a0_0x1d5cee(0x207)+'times'+'tamp,'+a0_0x1d5cee(0x1a8)+a0_0x1d5cee(0x24f)+'atura'+a0_0x1d5cee(0x168)+a0_0x1d5cee(0x210)+').'},'color':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x257)+a0_0x1d5cee(0x233)+a0_0x1d5cee(0x170)},'multipleOwners':{'type':a0_0x1d5cee(0x1c9)+'an','description':'Allow'+a0_0x1d5cee(0x15f)+a0_0x1d5cee(0x1e6)+a0_0x1d5cee(0x1c2)+'s.'},'owners':{'type':'array','items':{'type':a0_0x1d5cee(0x234)+'er'},'description':a0_0x1d5cee(0x21a)+'IDs\x20o'+a0_0x1d5cee(0x134)+'ers.'}},'required':[a0_0x1d5cee(0x18e)]}};export const updateGoalTool={'name':'updat'+'e_goa'+'l','description':a0_0x1d5cee(0xfe)+'e\x20an\x20'+a0_0x1d5cee(0x19e)+'ing\x20G'+a0_0x1d5cee(0x1c5)+a0_0x1d5cee(0x133)+'ils.\x20'+a0_0x1d5cee(0x1e5)+a0_0x1d5cee(0x13a)+'oalId'+a0_0x1d5cee(0x1a9)+a0_0x1d5cee(0x172)+a0_0x1d5cee(0x141),'annotations':{'title':a0_0x1d5cee(0xfe)+a0_0x1d5cee(0x1fc)+'l'},'inputSchema':{'type':a0_0x1d5cee(0x1fb)+'t','properties':{'goalId':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x1b8)+'UUID.'},'goalName':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x1b8)+a0_0x1d5cee(0x20d)+a0_0x1d5cee(0x118)+'esolu'+'tion.'},'name':{'type':a0_0x1d5cee(0x1b5)+'g','description':'New\x20n'+a0_0x1d5cee(0x1b1)},'description':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x182)+a0_0x1d5cee(0x104)+a0_0x1d5cee(0x18f)+'.'},'dueDate':{'type':['strin'+'g','numbe'+'r'],'description':a0_0x1d5cee(0x182)+'ue\x20da'+a0_0x1d5cee(0x1d4)},'color':{'type':'strin'+'g','description':'New\x20c'+a0_0x1d5cee(0x213)},'addOwners':{'type':a0_0x1d5cee(0x158),'items':{'type':a0_0x1d5cee(0x234)+'er'},'description':a0_0x1d5cee(0x21a)+a0_0x1d5cee(0x1a6)+'o\x20add'+'.'},'remOwners':{'type':a0_0x1d5cee(0x158),'items':{'type':a0_0x1d5cee(0x234)+'er'},'description':'User\x20'+a0_0x1d5cee(0x1a6)+a0_0x1d5cee(0x23a)+'ove.'}}}};export const deleteGoalTool={'name':'delet'+a0_0x1d5cee(0x212)+'l','description':a0_0x1d5cee(0x174)+a0_0x1d5cee(0x11b)+'y\x20rem'+a0_0x1d5cee(0x258)+a0_0x1d5cee(0x12f)+a0_0x1d5cee(0x12e)+'its\x20K'+a0_0x1d5cee(0xf8)+'sults'+a0_0x1d5cee(0x1ba)+'uires'+a0_0x1d5cee(0x20f)+a0_0x1d5cee(0x226)+a0_0x1d5cee(0x20f)+'Name.','annotations':{'title':a0_0x1d5cee(0x24b)+a0_0x1d5cee(0x1fc)+'l','destructiveHint':!![]},'inputSchema':{'type':a0_0x1d5cee(0x1fb)+'t','properties':{'goalId':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x1b8)+'UUID.'},'goalName':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x1b8)+a0_0x1d5cee(0x20d)+a0_0x1d5cee(0x118)+a0_0x1d5cee(0x137)+'tion.'}}}};export const createKeyResultTool={'name':a0_0x1d5cee(0x154)+a0_0x1d5cee(0x25a)+a0_0x1d5cee(0x203)+'lt','description':'Add\x20a'+a0_0x1d5cee(0x135)+'Key\x20R'+a0_0x1d5cee(0x25c)+a0_0x1d5cee(0x167)+'n\x20exi'+a0_0x1d5cee(0x23c)+a0_0x1d5cee(0x12f)+'.','annotations':{'title':a0_0x1d5cee(0x1ad)+a0_0x1d5cee(0x149)+'\x20Resu'+'lt'},'inputSchema':{'type':'objec'+'t','properties':{'goalId':{'type':'strin'+'g','description':a0_0x1d5cee(0x130)+a0_0x1d5cee(0x1e7)+a0_0x1d5cee(0x227)+'D.'},'goalName':{'type':a0_0x1d5cee(0x1b5)+'g','description':'Paren'+'t\x20Goa'+'l\x20nam'+'e.'},'name':{'type':a0_0x1d5cee(0x1b5)+'g','description':'Name\x20'+a0_0x1d5cee(0x10e)+a0_0x1d5cee(0x228)+a0_0x1d5cee(0x251)+a0_0x1d5cee(0x12c)},'type':{'type':'strin'+'g','enum':[a0_0x1d5cee(0x19a)+'r','perce'+a0_0x1d5cee(0x1f1),'autom'+a0_0x1d5cee(0x15b),'boole'+'an',a0_0x1d5cee(0x1d1)+'ncy']},'stepsStart':{'type':a0_0x1d5cee(0x19a)+'r','description':a0_0x1d5cee(0x236)+'ing\x20v'+a0_0x1d5cee(0x160)},'stepsEnd':{'type':a0_0x1d5cee(0x19a)+'r','description':'Targe'+a0_0x1d5cee(0x25b)+a0_0x1d5cee(0x14b)},'unit':{'type':a0_0x1d5cee(0x1b5)+'g','description':'Unit\x20'+a0_0x1d5cee(0x260)+a0_0x1d5cee(0x20a)+a0_0x1d5cee(0x10d)+a0_0x1d5cee(0x198)+a0_0x1d5cee(0x225)+'.'},'taskIds':{'type':a0_0x1d5cee(0x158),'items':{'type':a0_0x1d5cee(0x1b5)+'g'},'description':a0_0x1d5cee(0x155)+a0_0x1d5cee(0x1a6)+a0_0x1d5cee(0x113)+a0_0x1d5cee(0x1e8)+a0_0x1d5cee(0x180)+a0_0x1d5cee(0x192)+'c\x20typ'+a0_0x1d5cee(0x1e2)},'listIds':{'type':a0_0x1d5cee(0x158),'items':{'type':a0_0x1d5cee(0x1b5)+'g'},'description':a0_0x1d5cee(0x242)+'IDs\x20t'+a0_0x1d5cee(0x113)+'k\x20(fo'+a0_0x1d5cee(0x180)+'omati'+a0_0x1d5cee(0x1f5)+a0_0x1d5cee(0x1e2)}},'required':[a0_0x1d5cee(0x18e),a0_0x1d5cee(0x21b)]}};export const updateKeyResultTool={'name':'updat'+'e_key'+a0_0x1d5cee(0x203)+'lt','description':a0_0x1d5cee(0xfe)+a0_0x1d5cee(0x14f)+'exist'+a0_0x1d5cee(0x1b7)+a0_0x1d5cee(0xf8)+a0_0x1d5cee(0x1db)+a0_0x1d5cee(0x1c6)+a0_0x1d5cee(0x11f)+a0_0x1d5cee(0x16a)+a0_0x1d5cee(0x1f8)+a0_0x1d5cee(0x1c8)+a0_0x1d5cee(0x215)+'equir'+a0_0x1d5cee(0xf7)+'yResu'+a0_0x1d5cee(0x109)+a0_0x1d5cee(0x224)+a0_0x1d5cee(0x12d)+a0_0x1d5cee(0x1ed)+'e.','annotations':{'title':'Updat'+'e\x20Key'+a0_0x1d5cee(0x1c0)+'lt'},'inputSchema':{'type':a0_0x1d5cee(0x1fb)+'t','properties':{'keyResultId':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x176)+a0_0x1d5cee(0x25c)+'\x20UUID'+'.'},'keyResultName':{'type':a0_0x1d5cee(0x1b5)+'g','description':'Key\x20R'+a0_0x1d5cee(0x25c)+a0_0x1d5cee(0xf9)+'.'},'goalId':{'type':a0_0x1d5cee(0x1b5)+'g','description':a0_0x1d5cee(0x130)+a0_0x1d5cee(0x1e7)+'l\x20UUI'+a0_0x1d5cee(0x20b)+a0_0x1d5cee(0x166)+a0_0x1d5cee(0x10f)+a0_0x1d5cee(0xf9)+a0_0x1d5cee(0x17f)+a0_0x1d5cee(0x24e)+a0_0x1d5cee(0x1f7)},'goalName':{'type':a0_0x1d5cee(0x1b5)+'g','description':'Paren'+a0_0x1d5cee(0x1e7)+a0_0x1d5cee(0x144)+'e.'},'name':{'type':a0_0x1d5cee(0x1b5)+'g'},'stepsStart':{'type':a0_0x1d5cee(0x19a)+'r'},'stepsEnd':{'type':a0_0x1d5cee(0x19a)+'r'},'unit':{'type':a0_0x1d5cee(0x1b5)+'g'},'taskIds':{'type':a0_0x1d5cee(0x158),'items':{'type':a0_0x1d5cee(0x1b5)+'g'}},'listIds':{'type':a0_0x1d5cee(0x158),'items':{'type':'strin'+'g'}}}}};export const deleteKeyResultTool={'name':'delet'+a0_0x1d5cee(0x25a)+a0_0x1d5cee(0x203)+'lt','description':a0_0x1d5cee(0x202)+a0_0x1d5cee(0x16d)+a0_0x1d5cee(0xf8)+a0_0x1d5cee(0x162)+a0_0x1d5cee(0x15d)+'a\x20Goa'+a0_0x1d5cee(0x1c7)+'quire'+a0_0x1d5cee(0x254)+'Resul'+'tId\x20o'+a0_0x1d5cee(0x1cb)+'Resul'+a0_0x1d5cee(0x132)+'.','annotations':{'title':'Delet'+a0_0x1d5cee(0x149)+a0_0x1d5cee(0x1c0)+'lt','destructiveHint':!![]},'inputSchema':{'type':a0_0x1d5cee(0x1fb)+'t','properties':{'keyResultId':{'type':'strin'+'g'},'keyResultName':{'type':a0_0x1d5cee(0x1b5)+'g'},'goalId':{'type':a0_0x1d5cee(0x1b5)+'g'},'goalName':{'type':a0_0x1d5cee(0x1b5)+'g'}}}};function a0_0x3df0(_0x4debff,_0x590c92){_0x4debff=_0x4debff-0xf3;const _0x58ca30=a0_0x58ca();let _0x3df018=_0x58ca30[_0x4debff];if(a0_0x3df0['yafBCe']===undefined){var _0x1ac1ad=function(_0x13f00d){const _0x4e8a51='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ab0fd='',_0x2ec69e='';for(let _0x2cf84e=0x0,_0xd057c3,_0x57c006,_0xf26cc=0x0;_0x57c006=_0x13f00d['charAt'](_0xf26cc++);~_0x57c006&&(_0xd057c3=_0x2cf84e%0x4?_0xd057c3*0x40+_0x57c006:_0x57c006,_0x2cf84e++%0x4)?_0x3ab0fd+=String['fromCharCode'](0xff&_0xd057c3>>(-0x2*_0x2cf84e&0x6)):0x0){_0x57c006=_0x4e8a51['indexOf'](_0x57c006);}for(let _0x2a0218=0x0,_0x3936d9=_0x3ab0fd['length'];_0x2a0218<_0x3936d9;_0x2a0218++){_0x2ec69e+='%'+('00'+_0x3ab0fd['charCodeAt'](_0x2a0218)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ec69e);};a0_0x3df0['RQaFje']=_0x1ac1ad,a0_0x3df0['MKVuLZ']={},a0_0x3df0['yafBCe']=!![];}const _0x2e3ef6=_0x58ca30[0x0],_0x4537d3=_0x4debff+_0x2e3ef6,_0x57f76f=a0_0x3df0['MKVuLZ'][_0x4537d3];return!_0x57f76f?(_0x3df018=a0_0x3df0['RQaFje'](_0x3df018),a0_0x3df0['MKVuLZ'][_0x4537d3]=_0x3df018):_0x3df018=_0x57f76f,_0x3df018;}export async function handleManageGoals(_0x4d399e,_0x169eaa){const _0x2e9b31=a0_0x1d5cee,_0x5506f5={'gnwip':function(_0x50e246,_0x128be3,_0x22b85d){return _0x50e246(_0x128be3,_0x22b85d);},'VSQpR':function(_0x2244f3,_0x35e079){return _0x2244f3&&_0x35e079;},'rIuvD':_0x2e9b31(0x1eb)+_0x2e9b31(0x117)+_0x2e9b31(0x249)+_0x2e9b31(0x19b)+_0x2e9b31(0x1ae)+'Name\x27'+'\x20to\x20r'+_0x2e9b31(0x217)+'e\x20\x27ke'+_0x2e9b31(0x12d)+_0x2e9b31(0x1ed)+_0x2e9b31(0x169),'ygLDv':function(_0x257e1a,_0x4bd24e,_0x5c1037){return _0x257e1a(_0x4bd24e,_0x5c1037);},'IUTAi':'list','PhVKn':function(_0x42a8b0,_0x4b6107){return _0x42a8b0+_0x4b6107;},'DdMZu':_0x2e9b31(0x1ff),'nUcOc':_0x2e9b31(0xfc)+_0x2e9b31(0x1f3)+_0x2e9b31(0x1a0)+_0x2e9b31(0x11e),'tgooI':function(_0x8845d0,_0x2a67c5){return _0x8845d0(_0x2a67c5);},'JuZYP':'creat'+'e','JWgwn':_0x2e9b31(0x1ae)+_0x2e9b31(0x246)+_0x2e9b31(0x120)+_0x2e9b31(0x151)+_0x2e9b31(0x21d)+_0x2e9b31(0x18c)+'ired\x20'+'for\x20t'+'he\x20\x27u'+'pdate'+'\x27\x20act'+_0x2e9b31(0x23d),'PLUEO':function(_0x43f5c,_0x1b5c02,_0x37d969,_0x290d13){return _0x43f5c(_0x1b5c02,_0x37d969,_0x290d13);},'RiaWs':function(_0x336956,_0xe8da8c){return _0x336956===_0xe8da8c;},'KWUav':function(_0x2ad584,_0x1c6397){return _0x2ad584(_0x1c6397);},'orfKB':_0x2e9b31(0x146)+'e','uugAM':_0x2e9b31(0x1ae)+'Id\x27\x20o'+'r\x20\x27go'+_0x2e9b31(0x151)+'e\x27\x20is'+_0x2e9b31(0x18c)+'ired\x20'+'for\x20t'+_0x2e9b31(0x220)+'elete'+_0x2e9b31(0x253)+_0x2e9b31(0x23d),'iUwdM':_0x2e9b31(0x1ae)+_0x2e9b31(0x246)+_0x2e9b31(0x120)+_0x2e9b31(0x151)+_0x2e9b31(0x21d)+_0x2e9b31(0x18c)+_0x2e9b31(0x12a)+'to\x20cr'+'eate\x20'+_0x2e9b31(0x1bf)+'\x20resu'+_0x2e9b31(0x12c),'Avjll':_0x2e9b31(0x10a)+'\x27\x20and'+_0x2e9b31(0x25f)+_0x2e9b31(0xfb)+_0x2e9b31(0x178)+'uired'+_0x2e9b31(0x121)+_0x2e9b31(0x12b)+_0x2e9b31(0x195)+'y\x20res'+_0x2e9b31(0x1cf),'MoAgd':function(_0xbd7c5e,_0x55b9d1){return _0xbd7c5e(_0x55b9d1);},'CNUcu':_0x2e9b31(0x196)+_0x2e9b31(0x25c)+'Id\x27\x20o'+'r\x20\x27ke'+_0x2e9b31(0x12d)+_0x2e9b31(0x1ed)+_0x2e9b31(0x21d)+_0x2e9b31(0x18c)+'ired\x20'+_0x2e9b31(0x115)+'he\x20\x27u'+_0x2e9b31(0x214)+_0x2e9b31(0x22a)+_0x2e9b31(0x199)+'t\x27\x20ac'+'tion.','HTAan':function(_0x875c79,_0x11b721){return _0x875c79(_0x11b721);},'vTHgd':function(_0x5bb0c8,_0x527be5){return _0x5bb0c8===_0x527be5;},'yRUJn':_0x2e9b31(0xfc)+'d\x20to\x20'+_0x2e9b31(0x146)+_0x2e9b31(0x228)+_0x2e9b31(0x251)+'lt'},{goal:_0x360059}=_0x169eaa,{action:_0x47ffc9,goalId:_0x344d56,goalName:_0x5bb9af,keyResultId:_0x5330d1,keyResultName:_0x5efbb3,teamId:_0x151ad5}=_0x4d399e;try{let _0x53d407=_0x344d56;if(!_0x53d407&&_0x5bb9af){const _0x4d9664=await _0x360059[_0x2e9b31(0x1b0)+_0x2e9b31(0x256)](_0x4d399e['inclu'+_0x2e9b31(0x110)+_0x2e9b31(0xf6)+'d'],_0x151ad5);if(_0x4d9664[_0x2e9b31(0x108)+'ss']){const _0x2961fb=[..._0x4d9664[_0x2e9b31(0x211)]?.[_0x2e9b31(0x206)]||[],...(_0x4d9664[_0x2e9b31(0x211)]?.[_0x2e9b31(0x1ca)+'rs']||[])[_0x2e9b31(0x18b)+'ap'](_0x3008e3=>_0x3008e3[_0x2e9b31(0x206)]||[])],_0x290142=_0x5506f5[_0x2e9b31(0x164)](findBestMatchInArray,_0x2961fb,_0x5bb9af);if(_0x290142)_0x53d407=_0x290142[_0x2e9b31(0x237)]['id'];}if(!_0x53d407)return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x2e9b31(0x1c4)+_0x2e9b31(0x205)+_0x2e9b31(0x1ef)+'goal\x20'+'named'+'\x20\x22'+_0x5bb9af+(_0x2e9b31(0x25e)+_0x2e9b31(0x21c)+'orksp'+_0x2e9b31(0x17d)));}let _0x48bda0=_0x5330d1;if(_0x5506f5['VSQpR'](!_0x48bda0,_0x5efbb3)){if(!_0x53d407)return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+'onse'](_0x5506f5['rIuvD']);const _0x5e8221=await _0x360059[_0x2e9b31(0x1b0)+'al'](_0x53d407);if(_0x5e8221[_0x2e9b31(0x108)+'ss']){const _0x291888=_0x5506f5[_0x2e9b31(0x111)](findBestMatchInArray,_0x5e8221[_0x2e9b31(0x211)]?.[_0x2e9b31(0x1d6)]?.[_0x2e9b31(0x235)+_0x2e9b31(0x25c)+'s']||[],_0x5efbb3);if(_0x291888)_0x48bda0=_0x291888[_0x2e9b31(0x237)]['id'];}if(!_0x48bda0)return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x2e9b31(0x1c4)+_0x2e9b31(0x205)+_0x2e9b31(0x1ef)+_0x2e9b31(0x1a2)+_0x2e9b31(0x25c)+'\x20name'+'d\x20\x22'+_0x5efbb3+(_0x2e9b31(0x25e)+_0x2e9b31(0x197)+_0x2e9b31(0x105)+_0x2e9b31(0x21f)+_0x2e9b31(0x1dd)));}switch(_0x47ffc9){case _0x5506f5['IUTAi']:{const _0x1ddd38=await _0x360059[_0x2e9b31(0x1b0)+_0x2e9b31(0x256)](_0x4d399e[_0x2e9b31(0x181)+_0x2e9b31(0x110)+_0x2e9b31(0xf6)+'d'],_0x151ad5);if(!_0x1ddd38[_0x2e9b31(0x108)+'ss'])return sponsorService['creat'+'eErro'+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x1ddd38[_0x2e9b31(0x187)]?.[_0x2e9b31(0x193)+'ge']||_0x2e9b31(0xfc)+_0x2e9b31(0x1f3)+_0x2e9b31(0x1a1)+_0x2e9b31(0x206));const _0x41d45b=(_0x1ddd38['data']?.[_0x2e9b31(0x206)]||[])[_0x2e9b31(0x1a5)](formatGoalSummary),_0xbd77d4=(_0x1ddd38[_0x2e9b31(0x211)]?.[_0x2e9b31(0x1ca)+'rs']||[])[_0x2e9b31(0x1a5)](_0x5ac253=>({'id':_0x5ac253['id'],'name':_0x5ac253[_0x2e9b31(0x18e)],'goal_count':_0x5ac253['goal_'+_0x2e9b31(0x1d8)],'goals':(_0x5ac253[_0x2e9b31(0x206)]||[])[_0x2e9b31(0x1a5)](formatGoalSummary)})),_0x331055=_0x5506f5[_0x2e9b31(0x1da)](_0x41d45b[_0x2e9b31(0x1d5)+'h'],_0xbd77d4[_0x2e9b31(0x102)+'e']((_0x1504b6,_0x56687f)=>_0x1504b6+_0x56687f['goals'][_0x2e9b31(0x1d5)+'h'],0x0));return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x1fe)+_0x2e9b31(0x20c)]({'goals':_0x41d45b,'folders':_0xbd77d4,'total_count':_0x331055},!![]);}case _0x5506f5['DdMZu']:{if(!_0x53d407)return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)]('\x27goal'+_0x2e9b31(0x246)+_0x2e9b31(0x120)+_0x2e9b31(0x151)+'e\x27\x20is'+'\x20requ'+_0x2e9b31(0x12a)+_0x2e9b31(0x115)+'he\x20\x27g'+_0x2e9b31(0x1f4)+_0x2e9b31(0x1ec)+'.');const _0x39354b=await _0x360059['getGo'+'al'](_0x53d407);if(!_0x39354b[_0x2e9b31(0x108)+'ss'])return sponsorService['creat'+_0x2e9b31(0x161)+_0x2e9b31(0x139)+'onse'](_0x39354b[_0x2e9b31(0x187)]?.['messa'+'ge']||_0x5506f5[_0x2e9b31(0x21e)]);const _0x2f743c=_0x39354b[_0x2e9b31(0x211)]?.[_0x2e9b31(0x1d6)]||_0x39354b[_0x2e9b31(0x211)];return sponsorService['creat'+'eResp'+_0x2e9b31(0x20c)](_0x5506f5[_0x2e9b31(0x179)](formatGoalDetail,_0x2f743c),!![]);}case _0x5506f5['JuZYP']:{if(!_0x4d399e[_0x2e9b31(0x18e)])return sponsorService[_0x2e9b31(0x154)+'eErro'+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x2e9b31(0x10a)+_0x2e9b31(0x16b)+_0x2e9b31(0x230)+_0x2e9b31(0x1ac)+_0x2e9b31(0x24a)+_0x2e9b31(0x1f6)+_0x2e9b31(0x20f)+'.');const _0x428a5c=buildGoalFields(_0x4d399e,_0x5506f5[_0x2e9b31(0x11c)],_0x169eaa[_0x2e9b31(0x255)+'one']),_0x4c18fa=await _0x360059[_0x2e9b31(0x154)+_0x2e9b31(0x189)](_0x428a5c);if(!_0x4c18fa['succe'+'ss'])return sponsorService['creat'+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x4c18fa['error']?.[_0x2e9b31(0x193)+'ge']||_0x2e9b31(0xfc)+_0x2e9b31(0x1f3)+_0x2e9b31(0x154)+'e\x20goa'+'l');const _0x1deb9c=_0x4c18fa[_0x2e9b31(0x211)]?.[_0x2e9b31(0x1d6)]||_0x4c18fa[_0x2e9b31(0x211)];return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x1fe)+_0x2e9b31(0x20c)]({...formatGoalDetail(_0x1deb9c),'message':'Goal\x20'+'\x22'+_0x4d399e['name']+(_0x2e9b31(0x200)+_0x2e9b31(0x208)+_0x2e9b31(0x108)+'ssful'+'ly.')},!![]);}case _0x2e9b31(0x171)+'e':{if(!_0x53d407)return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+'rResp'+_0x2e9b31(0x20c)](_0x5506f5[_0x2e9b31(0x112)]);const _0x19dd13=_0x5506f5['PLUEO'](buildGoalFields,_0x4d399e,_0x2e9b31(0x171)+'e',_0x169eaa[_0x2e9b31(0x255)+_0x2e9b31(0x138)]);if(_0x5506f5[_0x2e9b31(0x13b)](Object[_0x2e9b31(0x15c)](_0x19dd13)[_0x2e9b31(0x1d5)+'h'],0x0))return sponsorService['creat'+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)]('No\x20fi'+'elds\x20'+_0x2e9b31(0x259)+_0x2e9b31(0x1fd)+_0x2e9b31(0x243)+'ate.\x20'+_0x2e9b31(0x1eb)+_0x2e9b31(0x145)+'\x20leas'+'t\x20one'+_0x2e9b31(0x13c)+'name,'+_0x2e9b31(0x1e3)+'ripti'+_0x2e9b31(0x17e)+_0x2e9b31(0x114)+_0x2e9b31(0x143)+_0x2e9b31(0x1f9)+_0x2e9b31(0x252)+_0x2e9b31(0x16f)+'\x20remO'+_0x2e9b31(0x23e)+'.');const _0x339c74=await _0x360059[_0x2e9b31(0x171)+'eGoal'](_0x53d407,_0x19dd13);if(!_0x339c74[_0x2e9b31(0x108)+'ss'])return sponsorService[_0x2e9b31(0x154)+'eErro'+'rResp'+'onse'](_0x339c74['error']?.[_0x2e9b31(0x193)+'ge']||_0x2e9b31(0xfc)+_0x2e9b31(0x1f3)+_0x2e9b31(0x171)+'e\x20goa'+'l');const _0x43247f=_0x339c74[_0x2e9b31(0x211)]?.['goal']||_0x339c74[_0x2e9b31(0x211)];return sponsorService['creat'+_0x2e9b31(0x1fe)+_0x2e9b31(0x20c)]({..._0x5506f5[_0x2e9b31(0x177)](formatGoalDetail,_0x43247f),'message':_0x2e9b31(0x1b8)+'updat'+_0x2e9b31(0x124)+_0x2e9b31(0xf3)+'fully'+'.'},!![]);}case _0x5506f5['orfKB']:{if(!_0x53d407)return sponsorService['creat'+_0x2e9b31(0x161)+_0x2e9b31(0x139)+'onse'](_0x5506f5['uugAM']);const _0x1539bd=await _0x360059[_0x2e9b31(0x146)+_0x2e9b31(0x189)](_0x53d407);if(!_0x1539bd[_0x2e9b31(0x108)+'ss'])return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x1539bd[_0x2e9b31(0x187)]?.[_0x2e9b31(0x193)+'ge']||'Faile'+_0x2e9b31(0x1f3)+_0x2e9b31(0x146)+_0x2e9b31(0x238)+'l');return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x1fe)+'onse']({'success':!![],'message':_0x2e9b31(0x1b8)+'delet'+'ed\x20su'+_0x2e9b31(0xf3)+'fully'+'.'},!![]);}case _0x2e9b31(0x154)+_0x2e9b31(0x25a)+_0x2e9b31(0x203)+'lt':{if(!_0x53d407)return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+'rResp'+'onse'](_0x5506f5['iUwdM']);if(!_0x4d399e[_0x2e9b31(0x18e)]||!_0x4d399e['type'])return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+'onse'](_0x5506f5[_0x2e9b31(0xf4)]);const _0x198576=_0x5506f5['MoAgd'](buildKeyResultFields,_0x4d399e),_0x331ae5=await _0x360059[_0x2e9b31(0x154)+_0x2e9b31(0x125)+'esult'](_0x53d407,_0x198576);if(!_0x331ae5[_0x2e9b31(0x108)+'ss'])return sponsorService['creat'+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x331ae5[_0x2e9b31(0x187)]?.['messa'+'ge']||_0x2e9b31(0xfc)+_0x2e9b31(0x1f3)+_0x2e9b31(0x154)+_0x2e9b31(0x228)+'\x20resu'+'lt');const _0xc2c826=_0x331ae5[_0x2e9b31(0x211)]?.[_0x2e9b31(0x235)+_0x2e9b31(0x25c)]||_0x331ae5[_0x2e9b31(0x211)];return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x1fe)+_0x2e9b31(0x20c)]({'key_result':formatKeyResult(_0xc2c826),'message':_0x2e9b31(0x107)+_0x2e9b31(0x25c)+'\x20\x22'+_0x4d399e[_0x2e9b31(0x18e)]+(_0x2e9b31(0x200)+_0x2e9b31(0x208)+'succe'+_0x2e9b31(0x1b9)+'ly.')},!![]);}case _0x2e9b31(0x171)+_0x2e9b31(0x25a)+_0x2e9b31(0x203)+'lt':{if(!_0x48bda0)return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x5506f5[_0x2e9b31(0x185)]);const _0x38adfb=_0x5506f5['HTAan'](buildKeyResultFields,_0x4d399e);if(_0x5506f5[_0x2e9b31(0x1d2)](Object['keys'](_0x38adfb)['lengt'+'h'],0x0))return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)]('No\x20fi'+_0x2e9b31(0x1a3)+'provi'+'ded\x20t'+_0x2e9b31(0x243)+_0x2e9b31(0x222)+_0x2e9b31(0x1eb)+_0x2e9b31(0x145)+_0x2e9b31(0x22f)+_0x2e9b31(0x1de)+_0x2e9b31(0x13c)+_0x2e9b31(0x152)+_0x2e9b31(0x15a)+'sStar'+'t,\x20st'+'epsEn'+_0x2e9b31(0x19d)+'it,\x20t'+_0x2e9b31(0x239)+'s,\x20li'+'stIds'+'.');const _0x57c836=await _0x360059[_0x2e9b31(0x171)+_0x2e9b31(0x125)+_0x2e9b31(0x25c)](_0x48bda0,_0x38adfb);if(!_0x57c836[_0x2e9b31(0x108)+'ss'])return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x57c836['error']?.[_0x2e9b31(0x193)+'ge']||_0x2e9b31(0xfc)+_0x2e9b31(0x1f3)+_0x2e9b31(0x171)+_0x2e9b31(0x228)+_0x2e9b31(0x251)+'lt');const _0x5cf45c=_0x57c836[_0x2e9b31(0x211)]?.['key_r'+_0x2e9b31(0x25c)]||_0x57c836['data'];return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x1fe)+_0x2e9b31(0x20c)]({'key_result':formatKeyResult(_0x5cf45c),'message':_0x2e9b31(0x107)+_0x2e9b31(0x25c)+_0x2e9b31(0x1aa)+_0x2e9b31(0x223)+'ucces'+'sfull'+'y.'},!![]);}case _0x2e9b31(0x146)+'e_key'+_0x2e9b31(0x203)+'lt':{if(!_0x48bda0)return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+'onse'](_0x2e9b31(0x196)+_0x2e9b31(0x25c)+_0x2e9b31(0x246)+_0x2e9b31(0x22e)+_0x2e9b31(0x12d)+_0x2e9b31(0x1ed)+'e\x27\x20is'+'\x20requ'+_0x2e9b31(0x12a)+_0x2e9b31(0x115)+'he\x20\x27d'+_0x2e9b31(0x248)+_0x2e9b31(0x22a)+_0x2e9b31(0x199)+'t\x27\x20ac'+_0x2e9b31(0x14d));const _0x412a40=await _0x360059['delet'+'eKeyR'+'esult'](_0x48bda0);if(!_0x412a40[_0x2e9b31(0x108)+'ss'])return sponsorService[_0x2e9b31(0x154)+'eErro'+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x412a40[_0x2e9b31(0x187)]?.['messa'+'ge']||_0x5506f5[_0x2e9b31(0x1a7)]);return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x1fe)+_0x2e9b31(0x20c)]({'success':!![],'message':_0x2e9b31(0x107)+_0x2e9b31(0x25c)+_0x2e9b31(0x221)+'ted\x20s'+_0x2e9b31(0x173)+_0x2e9b31(0x14a)+'y.'},!![]);}default:return sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+_0x2e9b31(0x139)+_0x2e9b31(0x20c)](_0x2e9b31(0x19c)+_0x2e9b31(0x1a4)+'al\x20ac'+_0x2e9b31(0x1e1)+'\x20'+_0x47ffc9);}}catch(_0x471c85){return logger['error'](_0x2e9b31(0x183)+'\x20in\x20h'+_0x2e9b31(0x17c)+_0x2e9b31(0x209)+_0x2e9b31(0x189)+_0x2e9b31(0x1fa)+_0x2e9b31(0x1e1)+'\x20'+_0x47ffc9+')',_0x471c85),sponsorService[_0x2e9b31(0x154)+_0x2e9b31(0x161)+'rResp'+_0x2e9b31(0x20c)](_0x2e9b31(0x1b8)+_0x2e9b31(0x13d)+_0x2e9b31(0x1af)+'faile'+_0x2e9b31(0x1f2)+_0x471c85[_0x2e9b31(0x193)+'ge']);}}function formatGoalSummary(_0x5c48fc){const _0x5f2a47=a0_0x1d5cee;return{'id':_0x5c48fc['id'],'pretty_id':_0x5c48fc['prett'+_0x5f2a47(0x15e)],'name':_0x5c48fc[_0x5f2a47(0x18e)],'description':_0x5c48fc[_0x5f2a47(0x25d)+_0x5f2a47(0x1bd)+'n']||null,'color':_0x5c48fc[_0x5f2a47(0x14c)]||null,'due_date':_0x5c48fc[_0x5f2a47(0xfd)+_0x5f2a47(0x136)]||null,'percent_completed':_0x5c48fc[_0x5f2a47(0x127)+_0x5f2a47(0x129)+_0x5f2a47(0x1b6)+'ed']??null,'completed':_0x5c48fc[_0x5f2a47(0x1ee)+_0x5f2a47(0x1d0)]??![],'pinned':_0x5c48fc[_0x5f2a47(0x1df)+'d']??![],'owner_count':Array[_0x5f2a47(0x17b)+'ay'](_0x5c48fc[_0x5f2a47(0x1c2)+'s'])?_0x5c48fc['owner'+'s']['lengt'+'h']:0x0,'key_result_count':_0x5c48fc[_0x5f2a47(0x235)+_0x5f2a47(0x25c)+_0x5f2a47(0x1d7)+'t']??(Array[_0x5f2a47(0x17b)+'ay'](_0x5c48fc[_0x5f2a47(0x235)+_0x5f2a47(0x25c)+'s'])?_0x5c48fc[_0x5f2a47(0x235)+_0x5f2a47(0x25c)+'s']['lengt'+'h']:0x0)};}function a0_0x58ca(){const _0x1c8058=['BgLZDf8','CgvYy2u','BM90iha','BNrFy28','AxjLzca','CMvHDgu','BhqU','EvjLC3u','igfUzca','ieDVywW','ugfYzw4','CvneufO','De5HBwu','igrLDge','zIbVD24','ig5LDYa','yxrL','zxnVBhu','B25L','CLjLC3a','CMvZigC','uMLHv3m','ig9MoIa','B3bLCMe','DwrLigm','ntvzyNLrv0K','x2n1CNi','BwuU','igLUigy','zsWGy28','BcbUyw0','zguGyxq','zgvSzxq','BMvYCW','qLHVC2e','zsblzxK','C2z1BgW','DwuU','y29SB3i','DgLVBI4','DgfZA18','zsbHBIa','DhmGs2u','ywXoyw0','BMfTzsW','zM9Yige','y3jLyxq','vgfZAYa','Aw4GDgG','x3n0yxi','yxjYyxK','AwrZ','ihn0zxa','yxrPyW','A2v5CW','zNjVBsa','Ev9Pza','ig11Bhq','ywX1zs4','zuvYCM8','C3vSDca','vvvjrc4','z253Axa','DwX0CY4','CxvPCMu','ihrVige','BcbSyw4','zsCU','ig9Yigm','jYbPCYa','zxCGr28','zsbHieS','z2v0x2C','BMvYCYW','y29Kzs4','DxbKyxq','B2fStMe','DwnJzxm','ugvYBwe','r2v0ieC','s2v5ifi','s1Dvyxy','zsbYzxe','DgDVB0K','mZiYnM56sePurq','AxnbCNi','yw5KBgu','ywnLlG','B24Sigq','ihjLC28','CIbHDxq','Aw5JBhu','tMv3igq','rxjYB3i','Dw5PDa','q05vy3u','C3rLChm','zxjYB3i','BwvTyMu','zuDVywW','CM92Awq','zMXHDe0','ihjLCxu','igLUige','BMfTzq','ChrPB24','oe1xELP5yW','B29S','B21HDgK','BwvZC2e','DcbHihm','igeGA2u','j2TLEvi','DgHLihm','C2TZiIW','CMvZDwW','BNvTyMu','jYbVCIa','vw5RBM8','zcWGDw4','zxHPC3q','mtC3ndy2mxf3veXgwq','z2v0igC','BgLZDca','A2v5ihi','zwXKCYa','D24Gz28','BwfW','surZihq','EvjvsM4','ieLttYW','ig9YigC','ihvWzge','DgfZA0K','CMvKihq','q3jLyxq','j2DVywW','DgLVBIa','z2v0r28','yw1LlG','Esbszxm','BML6zwq','mJa0nZK2zKDRDfDk','C3rYAw4','BxbSzxq','Aw5NieS','r29HBca','C3nMDwW','lIbszxe','ntbTEML3zKW','ywrKx28','Axb0Aw8','igf2ywK','ysbRzxK','ifjLC3u','Cg9UC2u','B3DUzxi','ihrVigy','q291Bgq','B2fSj3m','CYbWCM8','Bc4GuMu','DxjHDgK','yM9VBgu','zM9Szgu','CIbRzxK','zhvLrge','mZa2odeXofzLzwz3qG','CL9Pza','DwX0lG','zxrLza','y3vYCMu','DLriz2q','BIbVzIa','DguU','BgvUz3q','z29HBa','x2nVDw4','y291BNq','B2fSCYa','ugHws24','C3vSDcC','DgvKigC','B2fSlG','DcbVBMu','CgLUBMu','ywWSigK','DgLVBJO','zsKU','igrLC2m','CgXLt3C','uMvXDwK','AxbSzsa','DcbhB2e','AYaOzM8','rgvZy3i','zM9Yrwe','uhjVDMK','y3rPB24','Bhroyw0','y29TCgW','zMLUzca','ywXZzsK','BNrHz2u','zdOG','zcb0BYa','zxqNige','yYb0Exa','yxrLige','BIKU','B25MAwC','Bg9Ylca','CYaOywm','B2jQzwm','zsbhB2e','zgvKihq','zvjLC3a','z2v0','iIbJCMu','r29HBhm','uMvTB3y','x3jLC3u','CgXLx28','ig5VDca','z29HBhm','yxrLicG','yxrLzca','twfUywC','icHLlMC','rcaOCMu','B25Zzq','BMfTzsa','ntu3ANfvqvbg','igDVywW','z3vHz2u','zgf0yq','zv9NB2e','B2XVCI4','CgrHDgu','B24Uifi','DxjUCYa','zxnVBhy','oti1ntuXtMz4CuDf','C2v0','vxnLCIa','DhLWzq','DgHLihC','zsCGAxm','BLvJt2m','AwvKigC','AguGj2q','igrLBgu','yxrLlIa','DgvKihm','B3iGA2u','iciKiIK','swqGB3i','BcbvvuK','zsbRzxK','B21WBgu','x2TLEv8','DxnLCM4','zxzLBca','teTHwNG','CIaNA2u','igXLyxm','CMvXDwK','lIbszxq','igLUy2W','B2XVCIa','Aw50zwC','A2v5x3i','u3rHCNq','AxrLBq','zsbNB2e','yxnRswq','BYbYzw0','CMvTx28','C3rPBMC','Aw9UlG','D25LCNm','zw1HAwW','ndHitwTAuLG','BMzVCM0','tgLZDca','BYb1Cgq','BgvKigK','ChjLDhq','swqNig8','veDuwe0','zwXLDgu','B2fSswq','BYbJCMu','rgvSzxq','yw1L','BxvSDgK','Bhv0Aw8','ig9Yig4','vMLLDYa','ihjLC3u','ywrKt3C','jYbHy3q','CYbRzxK','DgLTzxO','ywXZ','sgv4igm','B3zLige','ChjVDMK','zv9RzxK','Dcb2ywW','zxn1Bhq','zgvZy3i','iIbPBIa','icD0Exa','BgfIzwW','CMTZCge','y2nLC3m','qxzQBgW','nZa5ota0ofvPzfLSyW','CgXLDgu','zxmGA2u','zxKGuMu','ig5HBwu','yxvSDhm','zsCGyxi','rMfPBgu','zhvLx2q','vxbKyxq','CMvTt3C','AwmGr28','igeGv28','CMvKDwm','AwyGz28','zxnJCMK','CgvJAwy','mJuYmtK5ogL2rgvvwa','s2v5ihi','C3vJy2u','Bhrjzca','j25HBwu','DgHLigC','C3bHy2u','lIaIDge','B2yGDgG','zcbMB3i','zgvdB20','EwDmrhy','sLDND24','BYbSAw4','Dwveyxq','zM9Yihq','v2HLDgG','zguGj2C','zM9Yihi','wNHOywm','Aw5NigK','BMvUDgW','sNvAwva','BgLZDeK','B2fS','z3jLC3m','CIaNz28','ihrVigm','zsbYzxm','rw5K','zwqGC3u','zuTLEvi'];a0_0x58ca=function(){return _0x1c8058;};return a0_0x58ca();}function formatGoalDetail(_0x416e6a){const _0x59c9e1=a0_0x1d5cee,_0x50014f={'LKaZx':function(_0x34c64b,_0x4c0d74){return _0x34c64b(_0x4c0d74);}};if(!_0x416e6a)return _0x416e6a;const _0x1570bd=new Map();return Array[_0x59c9e1(0x17b)+'ay'](_0x416e6a['membe'+'rs'])&&_0x416e6a[_0x59c9e1(0x188)+'rs'][_0x59c9e1(0x1ea)+'ch'](_0x5265f4=>_0x1570bd[_0x59c9e1(0x219)](String(_0x5265f4['id']),_0x5265f4)),{'id':_0x416e6a['id'],'pretty_id':_0x416e6a[_0x59c9e1(0x245)+_0x59c9e1(0x15e)],'name':_0x416e6a['name'],'description':_0x416e6a[_0x59c9e1(0x25d)+_0x59c9e1(0x1bd)+'n']||null,'color':_0x416e6a[_0x59c9e1(0x14c)]||null,'due_date':_0x416e6a[_0x59c9e1(0xfd)+_0x59c9e1(0x136)]||null,'percent_completed':_0x416e6a['perce'+_0x59c9e1(0x129)+'mplet'+'ed']??null,'completed':_0x416e6a[_0x59c9e1(0x1ee)+_0x59c9e1(0x1d0)]??![],'pinned':_0x416e6a[_0x59c9e1(0x1df)+'d']??![],'multiple_owners':_0x416e6a[_0x59c9e1(0x24d)+_0x59c9e1(0x204)+'wners']??![],'folder_id':_0x416e6a[_0x59c9e1(0x1ca)+_0x59c9e1(0x1ce)]||null,'owners':(_0x416e6a[_0x59c9e1(0x1c2)+'s']||[])[_0x59c9e1(0x1a5)](_0x187798=>{const _0x51d7d0=_0x59c9e1,_0x43f59e=_0x1570bd[_0x51d7d0(0x1ff)](_0x50014f[_0x51d7d0(0x22d)](String,_0x187798));return _0x43f59e?{'id':_0x43f59e['id'],'username':_0x43f59e[_0x51d7d0(0x22b)+'ame'],'email':_0x43f59e[_0x51d7d0(0x23f)]}:{'id':_0x187798};}),'key_results':(_0x416e6a['key_r'+_0x59c9e1(0x25c)+'s']||[])['map'](formatKeyResult),'date_created':_0x416e6a['date_'+_0x59c9e1(0x154)+'ed']||null,'creator':_0x416e6a[_0x59c9e1(0x154)+'or']?{'id':_0x416e6a[_0x59c9e1(0x154)+'or']['id'],'username':_0x416e6a[_0x59c9e1(0x154)+'or'][_0x59c9e1(0x22b)+_0x59c9e1(0x24c)]}:null};}function formatKeyResult(_0x1ae178){const _0x15b3b6=a0_0x1d5cee;if(!_0x1ae178)return _0x1ae178;return{'id':_0x1ae178['id'],'name':_0x1ae178['name'],'type':_0x1ae178[_0x15b3b6(0x21b)],'unit':_0x1ae178[_0x15b3b6(0x184)]||null,'steps_start':_0x1ae178[_0x15b3b6(0x186)+_0x15b3b6(0x157)+'t']??null,'steps_current':_0x1ae178['steps'+_0x15b3b6(0x140)+'ent']??null,'steps_end':_0x1ae178['steps'+'_end']??null,'percent_completed':_0x1ae178[_0x15b3b6(0x127)+'nt_co'+_0x15b3b6(0x1b6)+'ed']??null,'completed':_0x1ae178[_0x15b3b6(0x1ee)+_0x15b3b6(0x1d0)]??![],'task_ids':_0x1ae178[_0x15b3b6(0x14e)+_0x15b3b6(0x159)]||[],'list_ids':_0x1ae178[_0x15b3b6(0x126)+_0x15b3b6(0x159)]||[]};}function buildGoalFields(_0x1ad41a,_0x34471c,_0x200acf){const _0x4343e5=a0_0x1d5cee,_0x4a2314={'TGTXM':function(_0x324b05,_0xd50ac7){return _0x324b05(_0xd50ac7);},'Zxhac':function(_0x2bdd54,_0x3b59bb){return _0x2bdd54!==_0x3b59bb;},'qSDPZ':_0x4343e5(0x154)+'e'},_0x31efa7={};if(_0x1ad41a[_0x4343e5(0x18e)]!==undefined)_0x31efa7[_0x4343e5(0x18e)]=_0x1ad41a[_0x4343e5(0x18e)];if(_0x1ad41a['descr'+_0x4343e5(0x1bd)+'n']!==undefined)_0x31efa7[_0x4343e5(0x25d)+'iptio'+'n']=_0x1ad41a[_0x4343e5(0x25d)+_0x4343e5(0x1bd)+'n'];if(_0x1ad41a[_0x4343e5(0x14c)]!==undefined)_0x31efa7[_0x4343e5(0x14c)]=_0x1ad41a['color'];if(_0x1ad41a[_0x4343e5(0x1cc)+'te']!==undefined){const _0x1aa3a1=parseDueDate(_0x4a2314[_0x4343e5(0x247)](String,_0x1ad41a[_0x4343e5(0x1cc)+'te']),undefined,_0x200acf);if(_0x4a2314[_0x4343e5(0x119)](_0x1aa3a1,undefined))_0x31efa7[_0x4343e5(0xfd)+_0x4343e5(0x136)]=_0x1aa3a1;}if(_0x34471c===_0x4a2314[_0x4343e5(0x131)]){if(_0x1ad41a[_0x4343e5(0x24d)+_0x4343e5(0x1e4)+_0x4343e5(0x147)]!==undefined)_0x31efa7[_0x4343e5(0x24d)+'ple_o'+_0x4343e5(0x23e)]=_0x1ad41a[_0x4343e5(0x24d)+_0x4343e5(0x1e4)+_0x4343e5(0x147)];if(_0x1ad41a['owner'+'s']!==undefined)_0x31efa7[_0x4343e5(0x1c2)+'s']=_0x1ad41a[_0x4343e5(0x1c2)+'s'];}else{if(_0x4a2314[_0x4343e5(0x119)](_0x1ad41a[_0x4343e5(0x252)+'ners'],undefined))_0x31efa7[_0x4343e5(0x1bc)+'wners']=_0x1ad41a[_0x4343e5(0x252)+_0x4343e5(0x147)];if(_0x1ad41a[_0x4343e5(0xff)+_0x4343e5(0x147)]!==undefined)_0x31efa7[_0x4343e5(0x23b)+_0x4343e5(0x23e)]=_0x1ad41a['remOw'+_0x4343e5(0x147)];}return _0x31efa7;}function buildKeyResultFields(_0x24e713){const _0x527baa=a0_0x1d5cee,_0xce54eb={'BXosa':function(_0x28f844,_0x19b826){return _0x28f844!==_0x19b826;},'DMDiW':function(_0x30130e,_0x80b888){return _0x30130e!==_0x80b888;}},_0x187264={};if(_0xce54eb[_0x527baa(0x148)](_0x24e713[_0x527baa(0x18e)],undefined))_0x187264['name']=_0x24e713[_0x527baa(0x18e)];if(_0x24e713[_0x527baa(0x21b)]!==undefined)_0x187264[_0x527baa(0x21b)]=_0x24e713['type'];if(_0xce54eb['DMDiW'](_0x24e713[_0x527baa(0x186)+_0x527baa(0x236)],undefined))_0x187264['steps'+'_star'+'t']=_0x24e713[_0x527baa(0x186)+_0x527baa(0x236)];if(_0x24e713[_0x527baa(0x186)+_0x527baa(0x123)]!==undefined)_0x187264[_0x527baa(0x186)+'_end']=_0x24e713[_0x527baa(0x186)+_0x527baa(0x123)];if(_0x24e713['unit']!==undefined)_0x187264['unit']=_0x24e713[_0x527baa(0x184)];if(_0xce54eb['BXosa'](_0x24e713['taskI'+'ds'],undefined))_0x187264[_0x527baa(0x14e)+'ids']=_0x24e713[_0x527baa(0x1ab)+'ds'];if(_0xce54eb[_0x527baa(0x148)](_0x24e713[_0x527baa(0x11d)+'ds'],undefined))_0x187264['list_'+_0x527baa(0x159)]=_0x24e713[_0x527baa(0x11d)+'ds'];return _0x187264;}
|