@taazkareem/clickup-mcp-server
Version:
ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.
1 lines • 45.1 kB
JavaScript
const a0_0x1d0f15=a0_0x29e1;(function(_0x325f08,_0x240e49){const _0x43b3b4=a0_0x29e1,_0xb998=_0x325f08();while(!![]){try{const _0x50d3a1=-parseInt(_0x43b3b4(0x350))/0x1+-parseInt(_0x43b3b4(0x15b))/0x2+-parseInt(_0x43b3b4(0x232))/0x3+-parseInt(_0x43b3b4(0x1db))/0x4*(-parseInt(_0x43b3b4(0x2ab))/0x5)+-parseInt(_0x43b3b4(0x3a3))/0x6+parseInt(_0x43b3b4(0x363))/0x7+parseInt(_0x43b3b4(0x37e))/0x8;if(_0x50d3a1===_0x240e49)break;else _0xb998['push'](_0xb998['shift']());}catch(_0x23d339){_0xb998['push'](_0xb998['shift']());}}}(a0_0x4a9c,0xeea49));import{getAndFormatMembers}from'../utils/member-utils.js';import{parseDueDate,hasExplicitTime}from'../utils/date-utils.js';import{Logger}from'../logger.js';import a0_0x3fad9d from'../config.js';import{sponsorService}from'../utils/sponsor-service.js';import{findListIDByName,resolveLocation,resolveTemplateId}from'../utils/resolver-utils.js';const logger=new Logger(a0_0x1d0f15(0x1f5)+a0_0x1d0f15(0x301));function buildListUrl(_0x45ed5d,_0x29ed52){const _0x5ac564=a0_0x1d0f15;return a0_0x3fad9d['click'+'upApp'+_0x5ac564(0x28f)]+'/'+_0x29ed52[_0x5ac564(0x22f)+_0x5ac564(0x34e)][_0x5ac564(0x284)+_0x5ac564(0x298)]()+(_0x5ac564(0x2b8)+_0x5ac564(0x23d))+_0x45ed5d;}async function resolveListId(_0x4865a0,_0x5defef,_0xb2f64c){const _0x46a0fe=a0_0x1d0f15,_0x314d0d={'chlsn':_0x46a0fe(0x345)+_0x46a0fe(0x1ce)+_0x46a0fe(0x1d2)+'or\x20li'+'st_na'+_0x46a0fe(0x1ea)+_0x46a0fe(0x36c)+_0x46a0fe(0x26c)+_0x46a0fe(0x397),'kwdhv':function(_0x1d2f4c,_0x662e0a,_0x358bd8){return _0x1d2f4c(_0x662e0a,_0x358bd8);}};if(_0x4865a0)return _0x4865a0;if(!_0x5defef)throw new Error(_0x314d0d['chlsn']);const _0x4c10a4=await _0x314d0d[_0x46a0fe(0x377)](findListIDByName,_0xb2f64c[_0x46a0fe(0x22f)+'pace'],_0x5defef);if(!_0x4c10a4)throw new Error(_0x46a0fe(0x167)+'\x22'+_0x5defef+(_0x46a0fe(0x1cc)+_0x46a0fe(0x1d4)+'d.'));return _0x4c10a4['id'];}async function resolveSpaceId(_0x404774,_0x1cc3d4,_0x2a78f7){const _0x4dfac4=a0_0x1d0f15;if(_0x404774)return _0x404774;if(!_0x1cc3d4)throw new Error(_0x4dfac4(0x345)+_0x4dfac4(0x25c)+'ce_id'+_0x4dfac4(0x3ad)+_0x4dfac4(0x1c5)+_0x4dfac4(0x34f)+_0x4dfac4(0x1a9)+'be\x20pr'+_0x4dfac4(0x3cf)+'d.');const _0x5c6c43=await resolveLocation(_0x4dfac4(0x389),undefined,_0x1cc3d4,_0x2a78f7[_0x4dfac4(0x22f)+'pace']);return _0x5c6c43['id'];}async function resolveFolderId(_0x4780e2,_0xc2d369,_0x4a27af,_0x509caf,_0x17a4b1){const _0x4e6957=a0_0x1d0f15,_0x2c063b={'Hmmxd':function(_0x48f4f0,_0xf6b02f){return _0x48f4f0&&_0xf6b02f;},'ZqIUx':function(_0x2c3a9a,_0x18c0c0,_0x5085ab,_0x1afe4c){return _0x2c3a9a(_0x18c0c0,_0x5085ab,_0x1afe4c);}};if(_0x4780e2)return _0x4780e2;if(!_0xc2d369)throw new Error(_0x4e6957(0x345)+_0x4e6957(0x193)+_0x4e6957(0x3a1)+_0x4e6957(0x161)+_0x4e6957(0x18b)+'r_nam'+_0x4e6957(0x1f1)+_0x4e6957(0x2b7)+_0x4e6957(0x315)+'ded.');if(_0x2c063b[_0x4e6957(0x30a)](!_0x4a27af,!_0x509caf))throw new Error(_0x4e6957(0x18b)+'r_nam'+_0x4e6957(0x206)+_0x4e6957(0x38d)+_0x4e6957(0x320)+_0x4e6957(0x368)+_0x4e6957(0x285)+_0x4e6957(0x199)+_0x4e6957(0x228)+_0x4e6957(0x34a)+_0x4e6957(0x3bb)+_0x4e6957(0x3b7)+_0x4e6957(0x3af)+_0x4e6957(0x19c));const _0x83ad21=await _0x2c063b[_0x4e6957(0x1ef)](resolveSpaceId,_0x4a27af,_0x509caf,_0x17a4b1),_0x50fa21=await _0x17a4b1[_0x4e6957(0x18b)+'r'][_0x4e6957(0x365)+_0x4e6957(0x2fb)+'ByNam'+'e'](_0x83ad21,_0xc2d369);if(!_0x50fa21)throw new Error(_0x4e6957(0x26b)+_0x4e6957(0x209)+_0xc2d369+(_0x4e6957(0x1cc)+_0x4e6957(0x1d4)+_0x4e6957(0x1b2)+'space'+'.'));return _0x50fa21['id'];}export const listListsTool={'name':a0_0x1d0f15(0x1d8)+a0_0x1d0f15(0x235),'description':a0_0x1d0f15(0x1a8)+a0_0x1d0f15(0x2d2)+a0_0x1d0f15(0x326)+a0_0x1d0f15(0x245)+a0_0x1d0f15(0x389)+a0_0x1d0f15(0x316)+a0_0x1d0f15(0x297)+a0_0x1d0f15(0x31c)+a0_0x1d0f15(0x17b)+a0_0x1d0f15(0x268)+a0_0x1d0f15(0x197)+a0_0x1d0f15(0x1bd)+'res\x20s'+a0_0x1d0f15(0x1c5)+a0_0x1d0f15(0x2e8)+a0_0x1d0f15(0x199)+a0_0x1d0f15(0x3be)+a0_0x1d0f15(0x170)+a0_0x1d0f15(0x3a1)+a0_0x1d0f15(0x1c0)+'der_n'+a0_0x1d0f15(0x325),'annotations':{'title':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x300),'readOnlyHint':!![]},'inputSchema':{'type':a0_0x1d0f15(0x18c)+'t','properties':{'space_id':{'type':'strin'+'g','description':a0_0x1d0f15(0x30e)+a0_0x1d0f15(0x1ad)+a0_0x1d0f15(0x30c)+a0_0x1d0f15(0x323)+a0_0x1d0f15(0x2fb)+'less\x20'+a0_0x1d0f15(0x235)+a0_0x1d0f15(0x1bc)+a0_0x1d0f15(0x2d7)+a0_0x1d0f15(0x2d4)},'space_name':{'type':'strin'+'g','description':a0_0x1d0f15(0x30e)+a0_0x1d0f15(0x324)+a0_0x1d0f15(0x1cb)+a0_0x1d0f15(0x2c0)+a0_0x1d0f15(0x33a)+a0_0x1d0f15(0x1c8)+a0_0x1d0f15(0x29a)+').'},'folder_id':{'type':a0_0x1d0f15(0x1ac)+'g','description':'Folde'+a0_0x1d0f15(0x2ed)+a0_0x1d0f15(0x36d)+a0_0x1d0f15(0x28d)+a0_0x1d0f15(0x235)+a0_0x1d0f15(0x256)+a0_0x1d0f15(0x3d4)+a0_0x1d0f15(0x3aa)+a0_0x1d0f15(0x1f8)+a0_0x1d0f15(0x2a5)+a0_0x1d0f15(0x37b)+a0_0x1d0f15(0x3ab)+'\x20fold'+a0_0x1d0f15(0x385)+a0_0x1d0f15(0x27b)},'folder_name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x26b)+a0_0x1d0f15(0x16a)+a0_0x1d0f15(0x2c4)+'terna'+a0_0x1d0f15(0x17f)+a0_0x1d0f15(0x3c5)+a0_0x1d0f15(0x349)+'id;\x20r'+a0_0x1d0f15(0x1ff)+'es\x20sp'+a0_0x1d0f15(0x1de)+a0_0x1d0f15(0x161)+a0_0x1d0f15(0x389)+a0_0x1d0f15(0x260)+a0_0x1d0f15(0x25e)+a0_0x1d0f15(0x1f6)+a0_0x1d0f15(0x293)},'archived':{'type':a0_0x1d0f15(0x35b)+'an','description':a0_0x1d0f15(0x31f)+a0_0x1d0f15(0x380)+a0_0x1d0f15(0x30d)+a0_0x1d0f15(0x282)+a0_0x1d0f15(0x2d6)+a0_0x1d0f15(0x352)+a0_0x1d0f15(0x179)+a0_0x1d0f15(0x1ed)},'detail_level':{'type':'strin'+'g','enum':['names',a0_0x1d0f15(0x2a1)+a0_0x1d0f15(0x207)],'description':a0_0x1d0f15(0x16e)+a0_0x1d0f15(0x1a3)+'espon'+a0_0x1d0f15(0x24f)+'rbosi'+a0_0x1d0f15(0x18d)+a0_0x1d0f15(0x344)+'\x27\x20ret'+'urns\x20'+a0_0x1d0f15(0x3b2)+a0_0x1d0f15(0x393)+a0_0x1d0f15(0x2e9)+a0_0x1d0f15(0x16f)+a0_0x1d0f15(0x2b2)+a0_0x1d0f15(0x1b3)+'igati'+a0_0x1d0f15(0x17c)+a0_0x1d0f15(0x2a1)+a0_0x1d0f15(0x2cd)+'retur'+a0_0x1d0f15(0x20c)+'ll\x20me'+a0_0x1d0f15(0x3a7)+a0_0x1d0f15(0x2a9)+a0_0x1d0f15(0x2ec)+a0_0x1d0f15(0x17e)+a0_0x1d0f15(0x287)+'.'}}}};export const getListTool={'name':a0_0x1d0f15(0x174)+a0_0x1d0f15(0x327),'description':a0_0x1d0f15(0x3c2)+'etail'+a0_0x1d0f15(0x23c)+a0_0x1d0f15(0x1f3)+a0_0x1d0f15(0x3ae)+a0_0x1d0f15(0x26f)+a0_0x1d0f15(0x3cb)+a0_0x1d0f15(0x358)+a0_0x1d0f15(0x33f)+'t.\x20Re'+'quire'+a0_0x1d0f15(0x3c4)+a0_0x1d0f15(0x1d2)+'or\x20li'+a0_0x1d0f15(0x3ac)+'me.','annotations':{'title':a0_0x1d0f15(0x2c3)+'ist','readOnlyHint':!![]},'inputSchema':{'type':a0_0x1d0f15(0x18c)+'t','properties':{'list_id':{'type':'strin'+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x338)+a0_0x1d0f15(0x1f4)+'red).'},'list_name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x167)+'name\x20'+'(alte'+a0_0x1d0f15(0x183)+'ve).'},'include_members':{'type':a0_0x1d0f15(0x35b)+'an','description':a0_0x1d0f15(0x31f)+a0_0x1d0f15(0x1c4)+a0_0x1d0f15(0x1f9)+a0_0x1d0f15(0x218)+a0_0x1d0f15(0x28a)+a0_0x1d0f15(0x2ca)+a0_0x1d0f15(0x2dd)+a0_0x1d0f15(0x342)}}}};export const createListTool={'name':a0_0x1d0f15(0x32a)+a0_0x1d0f15(0x231)+'t','description':a0_0x1d0f15(0x2b4)+a0_0x1d0f15(0x247)+a0_0x1d0f15(0x2e3)+a0_0x1d0f15(0x340)+'\x20a\x20sp'+'ace\x20o'+a0_0x1d0f15(0x193)+a0_0x1d0f15(0x197)+a0_0x1d0f15(0x1bd)+'res\x20n'+'ame\x20+'+a0_0x1d0f15(0x320)+a0_0x1d0f15(0x2c7)+a0_0x1d0f15(0x389)+a0_0x1d0f15(0x260)+a0_0x1d0f15(0x27e)+a0_0x1d0f15(0x2fb)+a0_0x1d0f15(0x166)+a0_0x1d0f15(0x2fb)+a0_0x1d0f15(0x260)+'.','annotations':{'title':'Creat'+'e\x20Lis'+'t','openWorldHint':!![]},'inputSchema':{'type':a0_0x1d0f15(0x18c)+'t','properties':{'name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x29e)+a0_0x1d0f15(0x343)+a0_0x1d0f15(0x3bf)},'space_id':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x30e)+a0_0x1d0f15(0x2cf)+a0_0x1d0f15(0x1d7)+a0_0x1d0f15(0x188)+a0_0x1d0f15(0x36b)+a0_0x1d0f15(0x18b)+'rless'+a0_0x1d0f15(0x3cd)+'.'},'space_name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x30e)+a0_0x1d0f15(0x324)+a0_0x1d0f15(0x1cb)+a0_0x1d0f15(0x2c0)+a0_0x1d0f15(0x33a)+'o\x20spa'+a0_0x1d0f15(0x29a)+').'},'folder_id':{'type':'strin'+'g','description':a0_0x1d0f15(0x26b)+a0_0x1d0f15(0x395)+a0_0x1d0f15(0x388)+a0_0x1d0f15(0x32a)+a0_0x1d0f15(0x266)+a0_0x1d0f15(0x3cd)+a0_0x1d0f15(0x256)+a0_0x1d0f15(0x217)+a0_0x1d0f15(0x18b)+'r.'},'folder_name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x26b)+a0_0x1d0f15(0x16a)+a0_0x1d0f15(0x2c4)+a0_0x1d0f15(0x3a4)+a0_0x1d0f15(0x17f)+a0_0x1d0f15(0x3c5)+a0_0x1d0f15(0x349)+a0_0x1d0f15(0x39a)},'content':{'type':'strin'+'g','description':'List\x20'+a0_0x1d0f15(0x1fd)+a0_0x1d0f15(0x382)+a0_0x1d0f15(0x319)+a0_0x1d0f15(0x212)+a0_0x1d0f15(0x2be)},'markdown_content':{'type':a0_0x1d0f15(0x1ac)+'g','description':'List\x20'+'descr'+'iptio'+'n\x20in\x20'+a0_0x1d0f15(0x392)+a0_0x1d0f15(0x180)+a0_0x1d0f15(0x322)+a0_0x1d0f15(0x289)+a0_0x1d0f15(0x234)+'conte'+a0_0x1d0f15(0x2ee)+a0_0x1d0f15(0x2e5)+a0_0x1d0f15(0x321)+'d\x20tex'+'t.'},'due_date':{'type':a0_0x1d0f15(0x1ac)+'g','description':'Due\x20d'+a0_0x1d0f15(0x22e)+a0_0x1d0f15(0x21d)+a0_0x1d0f15(0x25d)+a0_0x1d0f15(0x181)+a0_0x1d0f15(0x257)+'\x20natu'+'ral\x20l'+a0_0x1d0f15(0x26e)+'ge).'},'due_date_time':{'type':'boole'+'an','description':'Wheth'+a0_0x1d0f15(0x22c)+a0_0x1d0f15(0x210)+a0_0x1d0f15(0x202)+a0_0x1d0f15(0x276)+a0_0x1d0f15(0x1a0)+'a\x20tim'+a0_0x1d0f15(0x27f)+a0_0x1d0f15(0x2a2)+'t.'},'priority':{'type':a0_0x1d0f15(0x3b5)+'r','description':a0_0x1d0f15(0x1eb)+a0_0x1d0f15(0x261)+'\x20(urg'+a0_0x1d0f15(0x230)+a0_0x1d0f15(0x39e)+'low).'},'assignee':{'type':a0_0x1d0f15(0x3b5)+'r','description':'Assig'+'nee\x20u'+a0_0x1d0f15(0x20f)+'D.'},'status':{'type':'strin'+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x339)+a0_0x1d0f15(0x281)+a0_0x1d0f15(0x224)+a0_0x1d0f15(0x269)+a0_0x1d0f15(0x19e)+a0_0x1d0f15(0x304)+a0_0x1d0f15(0x1e0)+a0_0x1d0f15(0x24e)+'\x20List'+a0_0x1d0f15(0x17d)+a0_0x1d0f15(0x2ff)+'t\x20tas'+'k\x20sta'+a0_0x1d0f15(0x200)+'.'}},'required':[a0_0x1d0f15(0x20a)]}};export const updateListTool={'name':a0_0x1d0f15(0x264)+'e_lis'+'t','description':'Updat'+a0_0x1d0f15(0x372)+a0_0x1d0f15(0x3c0)+a0_0x1d0f15(0x20b)+'ist\x27s'+a0_0x1d0f15(0x324)+',\x20con'+a0_0x1d0f15(0x27c)+a0_0x1d0f15(0x31e)+a0_0x1d0f15(0x1d5)+a0_0x1d0f15(0x1bf)+a0_0x1d0f15(0x1fb)+a0_0x1d0f15(0x2fc)+'us/co'+a0_0x1d0f15(0x25a)+'or\x20as'+a0_0x1d0f15(0x375)+a0_0x1d0f15(0x328)+a0_0x1d0f15(0x3ba)+'s\x20lis'+a0_0x1d0f15(0x1d2)+'or\x20li'+a0_0x1d0f15(0x3ac)+a0_0x1d0f15(0x20d),'annotations':{'title':a0_0x1d0f15(0x329)+'e\x20Lis'+'t','openWorldHint':!![]},'inputSchema':{'type':a0_0x1d0f15(0x18c)+'t','properties':{'list_id':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x338)+a0_0x1d0f15(0x1f4)+'red).'},'list_name':{'type':'strin'+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x34f)+'(alte'+a0_0x1d0f15(0x183)+a0_0x1d0f15(0x29d)},'name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x1e2)+a0_0x1d0f15(0x305)+a0_0x1d0f15(0x325)},'content':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x1fd)+'iptio'+a0_0x1d0f15(0x319)+'ain\x20t'+a0_0x1d0f15(0x2be)},'markdown_content':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x1fd)+a0_0x1d0f15(0x382)+a0_0x1d0f15(0x2aa)+a0_0x1d0f15(0x392)+a0_0x1d0f15(0x3a5)},'status':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x339)+a0_0x1d0f15(0x281)+'us\x20(e'+'.g.\x20\x27'+a0_0x1d0f15(0x19e)+a0_0x1d0f15(0x304)+'ers\x20t'+a0_0x1d0f15(0x24e)+a0_0x1d0f15(0x387)+a0_0x1d0f15(0x17d)+'r,\x20no'+a0_0x1d0f15(0x28e)+a0_0x1d0f15(0x379)+'tuses'+'.'},'unset_status':{'type':a0_0x1d0f15(0x35b)+'an','description':a0_0x1d0f15(0x1e3)+a0_0x1d0f15(0x3a9)+a0_0x1d0f15(0x3cd)+a0_0x1d0f15(0x17d)+a0_0x1d0f15(0x1ca)+a0_0x1d0f15(0x2f7)+a0_0x1d0f15(0x35d)+'o\x20tru'+a0_0x1d0f15(0x2a8)+'clear'+a0_0x1d0f15(0x2dd)+a0_0x1d0f15(0x339)+a0_0x1d0f15(0x330)+a0_0x1d0f15(0x2b9)+a0_0x1d0f15(0x27f)+'bined'+a0_0x1d0f15(0x218)+'\x20\x27sta'+a0_0x1d0f15(0x233)},'due_date':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x2f5)+'ate\x20('+'Unix\x20'+'times'+'tamp\x20'+a0_0x1d0f15(0x257)+a0_0x1d0f15(0x399)+'ral\x20l'+a0_0x1d0f15(0x26e)+a0_0x1d0f15(0x394)},'due_date_time':{'type':a0_0x1d0f15(0x35b)+'an','description':'Wheth'+a0_0x1d0f15(0x22c)+a0_0x1d0f15(0x210)+a0_0x1d0f15(0x202)+a0_0x1d0f15(0x276)+a0_0x1d0f15(0x1a0)+'a\x20tim'+a0_0x1d0f15(0x27f)+a0_0x1d0f15(0x2a2)+'t.'},'priority':{'type':a0_0x1d0f15(0x3b5)+'r','description':a0_0x1d0f15(0x1eb)+'ity\x201'+a0_0x1d0f15(0x208)+a0_0x1d0f15(0x230)+a0_0x1d0f15(0x39e)+a0_0x1d0f15(0x15e)},'assignee':{'type':'strin'+'g','description':a0_0x1d0f15(0x391)+a0_0x1d0f15(0x23f)+a0_0x1d0f15(0x20f)+'D\x20or\x20'+a0_0x1d0f15(0x33b)+a0_0x1d0f15(0x16c)+a0_0x1d0f15(0x2eb)+'.'}}}};export const deleteListTool={'name':'delet'+a0_0x1d0f15(0x231)+'t','description':'Perma'+a0_0x1d0f15(0x34d)+a0_0x1d0f15(0x30b)+a0_0x1d0f15(0x290)+a0_0x1d0f15(0x3cd)+'.','annotations':{'title':a0_0x1d0f15(0x38f)+a0_0x1d0f15(0x2bc)+'t','openWorldHint':!![],'destructiveHint':!![]},'inputSchema':{'type':a0_0x1d0f15(0x18c)+'t','properties':{'list_id':{'type':a0_0x1d0f15(0x1ac)+'g','description':'List\x20'+'ID\x20(p'+a0_0x1d0f15(0x1f4)+a0_0x1d0f15(0x176)},'list_name':{'type':'strin'+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x34f)+a0_0x1d0f15(0x31b)+a0_0x1d0f15(0x183)+a0_0x1d0f15(0x29d)}}}};export const moveListTool={'name':a0_0x1d0f15(0x37c)+a0_0x1d0f15(0x38e),'description':'Move\x20'+'a\x20lis'+a0_0x1d0f15(0x331)+a0_0x1d0f15(0x1d9)+a0_0x1d0f15(0x1d6)+'t\x20fol'+a0_0x1d0f15(0x280)+'r\x20spa'+a0_0x1d0f15(0x2bf)+a0_0x1d0f15(0x1ff)+a0_0x1d0f15(0x2e1)+a0_0x1d0f15(0x383)+'\x20or\x20l'+'ist_n'+'ame\x20+'+'\x20dest'+a0_0x1d0f15(0x333)+a0_0x1d0f15(0x21f),'annotations':{'title':a0_0x1d0f15(0x1ee)+a0_0x1d0f15(0x3c1),'openWorldHint':!![]},'inputSchema':{'type':'objec'+'t','properties':{'list_id':{'type':'strin'+'g','description':a0_0x1d0f15(0x222)+a0_0x1d0f15(0x35a)+a0_0x1d0f15(0x262)+a0_0x1d0f15(0x2a5)+a0_0x1d0f15(0x37b)+').'},'list_name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x222)+a0_0x1d0f15(0x35a)+'t\x20nam'+a0_0x1d0f15(0x2c4)+'terna'+a0_0x1d0f15(0x259)+'.'},'folder_id':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x2ba)+'natio'+a0_0x1d0f15(0x32d)+a0_0x1d0f15(0x378)+'D.'},'folder_name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x2ba)+'natio'+a0_0x1d0f15(0x32d)+a0_0x1d0f15(0x26a)+a0_0x1d0f15(0x325)},'space_id':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x2ba)+a0_0x1d0f15(0x1ae)+'n\x20spa'+a0_0x1d0f15(0x2ce)+a0_0x1d0f15(0x1a4)+a0_0x1d0f15(0x2a7)+'erles'+a0_0x1d0f15(0x3bd)+'e).'},'space_name':{'type':'strin'+'g','description':a0_0x1d0f15(0x2ba)+a0_0x1d0f15(0x1ae)+a0_0x1d0f15(0x1a1)+a0_0x1d0f15(0x3c7)+a0_0x1d0f15(0x20d)},'allow_destructive_fallback':{'type':'boole'+'an','description':a0_0x1d0f15(0x30f)+a0_0x1d0f15(0x18a)+a0_0x1d0f15(0x194)+a0_0x1d0f15(0x229)+a0_0x1d0f15(0x2a3)+a0_0x1d0f15(0x2c8)+a0_0x1d0f15(0x2fd)+a0_0x1d0f15(0x2d3)+a0_0x1d0f15(0x2e0)+'ult:\x20'+'false'+'.'}}}};export const setListPermissionsTool={'name':'set_l'+'ist_p'+a0_0x1d0f15(0x246)+a0_0x1d0f15(0x3b9),'description':a0_0x1d0f15(0x21b)+a0_0x1d0f15(0x32e)+a0_0x1d0f15(0x396)+a0_0x1d0f15(0x2f9)+'issio'+a0_0x1d0f15(0x29b)+a0_0x1d0f15(0x346)+'st.\x20R'+a0_0x1d0f15(0x1ff)+'es\x20li'+a0_0x1d0f15(0x383)+a0_0x1d0f15(0x204)+'ist_n'+'ame,\x20'+a0_0x1d0f15(0x376)+'te\x20fl'+a0_0x1d0f15(0x216)+'nd\x20en'+a0_0x1d0f15(0x15f)+a0_0x1d0f15(0x19b)+'y.','annotations':{'title':a0_0x1d0f15(0x334)+a0_0x1d0f15(0x1a7)+a0_0x1d0f15(0x246)+a0_0x1d0f15(0x3b9),'openWorldHint':!![]},'inputSchema':{'type':a0_0x1d0f15(0x18c)+'t','properties':{'list_id':{'type':a0_0x1d0f15(0x1ac)+'g','description':'List\x20'+'ID\x20(p'+'refer'+a0_0x1d0f15(0x176)},'list_name':{'type':'strin'+'g','description':a0_0x1d0f15(0x167)+'name\x20'+a0_0x1d0f15(0x31b)+a0_0x1d0f15(0x183)+a0_0x1d0f15(0x29d)},'private':{'type':'boole'+'an','description':a0_0x1d0f15(0x35d)+a0_0x1d0f15(0x3d1)+a0_0x1d0f15(0x244)+a0_0x1d0f15(0x307)+')\x20or\x20'+a0_0x1d0f15(0x2e4)+a0_0x1d0f15(0x288)+'lse).'+a0_0x1d0f15(0x343)+a0_0x1d0f15(0x3bf)},'entries':{'type':a0_0x1d0f15(0x369),'description':a0_0x1d0f15(0x2ef)+a0_0x1d0f15(0x2f4)+'ermis'+a0_0x1d0f15(0x2c9)+a0_0x1d0f15(0x37a)+a0_0x1d0f15(0x34c)+a0_0x1d0f15(0x275)+a0_0x1d0f15(0x310)+a0_0x1d0f15(0x2d0)+'ssion'+a0_0x1d0f15(0x34b)+a0_0x1d0f15(0x2fe),'items':{'type':a0_0x1d0f15(0x18c)+'t','properties':{'id':{'type':'numbe'+'r'},'type':{'type':a0_0x1d0f15(0x1ac)+'g'},'permission_level':{'type':'strin'+'g'}},'required':['id',a0_0x1d0f15(0x22d)]}}},'required':['entri'+'es']}};function a0_0x29e1(_0x3746bc,_0x1a2c61){_0x3746bc=_0x3746bc-0x159;const _0x4a9c9b=a0_0x4a9c();let _0x29e12a=_0x4a9c9b[_0x3746bc];if(a0_0x29e1['qzvmbr']===undefined){var _0x2ed4d1=function(_0x18359b){const _0x43c43f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x45c377='',_0x12fdc2='';for(let _0x2856cd=0x0,_0x25b07d,_0x27e296,_0x2a4aa1=0x0;_0x27e296=_0x18359b['charAt'](_0x2a4aa1++);~_0x27e296&&(_0x25b07d=_0x2856cd%0x4?_0x25b07d*0x40+_0x27e296:_0x27e296,_0x2856cd++%0x4)?_0x45c377+=String['fromCharCode'](0xff&_0x25b07d>>(-0x2*_0x2856cd&0x6)):0x0){_0x27e296=_0x43c43f['indexOf'](_0x27e296);}for(let _0x591776=0x0,_0x5da59c=_0x45c377['length'];_0x591776<_0x5da59c;_0x591776++){_0x12fdc2+='%'+('00'+_0x45c377['charCodeAt'](_0x591776)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x12fdc2);};a0_0x29e1['RhHtnK']=_0x2ed4d1,a0_0x29e1['BjHHib']={},a0_0x29e1['qzvmbr']=!![];}const _0x1657f5=_0x4a9c9b[0x0],_0x2db460=_0x3746bc+_0x1657f5,_0x31ba3b=a0_0x29e1['BjHHib'][_0x2db460];return!_0x31ba3b?(_0x29e12a=a0_0x29e1['RhHtnK'](_0x29e12a),a0_0x29e1['BjHHib'][_0x2db460]=_0x29e12a):_0x29e12a=_0x31ba3b,_0x29e12a;}export const createListFromTemplateTool={'name':a0_0x1d0f15(0x32a)+a0_0x1d0f15(0x231)+a0_0x1d0f15(0x251)+a0_0x1d0f15(0x3d0)+a0_0x1d0f15(0x2dc),'description':a0_0x1d0f15(0x2b4)+'e\x20a\x20l'+'ist\x20f'+'rom\x20a'+'\x20temp'+a0_0x1d0f15(0x278)+a0_0x1d0f15(0x343)+'ires:'+a0_0x1d0f15(0x324)+a0_0x1d0f15(0x184)+a0_0x1d0f15(0x1f7)+'te_id'+'\x20or\x20t'+a0_0x1d0f15(0x1f7)+a0_0x1d0f15(0x2db)+'me)\x20+'+a0_0x1d0f15(0x1b0)+a0_0x1d0f15(0x29a)+a0_0x1d0f15(0x2df)+a0_0x1d0f15(0x1c2)+a0_0x1d0f15(0x32f)+a0_0x1d0f15(0x18b)+a0_0x1d0f15(0x1e6)+a0_0x1d0f15(0x18b)+a0_0x1d0f15(0x348)+a0_0x1d0f15(0x293),'annotations':{'title':a0_0x1d0f15(0x2b4)+a0_0x1d0f15(0x2bc)+a0_0x1d0f15(0x3b8)+a0_0x1d0f15(0x1b7)+a0_0x1d0f15(0x2dc),'openWorldHint':!![]},'inputSchema':{'type':a0_0x1d0f15(0x18c)+'t','properties':{'name':{'type':'strin'+'g','description':a0_0x1d0f15(0x219)+a0_0x1d0f15(0x168)+a0_0x1d0f15(0x364)+a0_0x1d0f15(0x273)+a0_0x1d0f15(0x2f3)+a0_0x1d0f15(0x3ba)+'d.'},'template_id':{'type':'strin'+'g','description':a0_0x1d0f15(0x167)+a0_0x1d0f15(0x1dd)+a0_0x1d0f15(0x189)+a0_0x1d0f15(0x2a6)+a0_0x1d0f15(0x201)+'ed).'},'template_name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x167)+'templ'+a0_0x1d0f15(0x1da)+a0_0x1d0f15(0x19a)+a0_0x1d0f15(0x3c3)+a0_0x1d0f15(0x31d)+'e\x20to\x20'+a0_0x1d0f15(0x1dd)+a0_0x1d0f15(0x2cc)+a0_0x1d0f15(0x1e5)},'space_id':{'type':a0_0x1d0f15(0x1ac)+'g','description':'Space'+a0_0x1d0f15(0x1e1)+a0_0x1d0f15(0x250)+a0_0x1d0f15(0x2fb)+a0_0x1d0f15(0x240)+'lists'+').'},'space_name':{'type':'strin'+'g','description':a0_0x1d0f15(0x30e)+a0_0x1d0f15(0x324)+a0_0x1d0f15(0x1cb)+a0_0x1d0f15(0x2c0)+a0_0x1d0f15(0x33a)+a0_0x1d0f15(0x1c8)+'ce_id'+').'},'folder_id':{'type':'strin'+'g','description':'Folde'+a0_0x1d0f15(0x2ed)+a0_0x1d0f15(0x1c7)+a0_0x1d0f15(0x235)+a0_0x1d0f15(0x256)+a0_0x1d0f15(0x217)+a0_0x1d0f15(0x18b)+a0_0x1d0f15(0x38b)},'folder_name':{'type':a0_0x1d0f15(0x1ac)+'g','description':a0_0x1d0f15(0x26b)+a0_0x1d0f15(0x16a)+a0_0x1d0f15(0x2c4)+a0_0x1d0f15(0x3a4)+'tive\x20'+a0_0x1d0f15(0x3c5)+a0_0x1d0f15(0x349)+a0_0x1d0f15(0x39a)},'options':{'type':a0_0x1d0f15(0x18c)+'t','properties':{},'description':a0_0x1d0f15(0x253)+a0_0x1d0f15(0x35c)+a0_0x1d0f15(0x24c)+'\x20opti'+'ons.\x20'+a0_0x1d0f15(0x31f)+'des\x20b'+'oolea'+'n\x20fla'+a0_0x1d0f15(0x215)+a0_0x1d0f15(0x25f)+'ks,\x20c'+a0_0x1d0f15(0x1e7)+a0_0x1d0f15(0x317)+a0_0x1d0f15(0x292)+'riori'+a0_0x1d0f15(0x2ad)+'utoma'+'tion,'+a0_0x1d0f15(0x276)+a0_0x1d0f15(0x24d)+a0_0x1d0f15(0x214)+a0_0x1d0f15(0x2f2)+a0_0x1d0f15(0x283)+a0_0x1d0f15(0x303)+'\x20old_'+a0_0x1d0f15(0x2f1)+a0_0x1d0f15(0x15c)+'old_s'+a0_0x1d0f15(0x20e)+a0_0x1d0f15(0x1d5)+a0_0x1d0f15(0x2f2)+a0_0x1d0f15(0x220)+a0_0x1d0f15(0x2f2)+a0_0x1d0f15(0x1a2)+'ses,\x20'+'old_f'+a0_0x1d0f15(0x2bb)+'ers,\x20'+a0_0x1d0f15(0x274)+a0_0x1d0f15(0x1aa)+a0_0x1d0f15(0x318)+'mment'+',\x20com'+'ment_'+a0_0x1d0f15(0x274)+a0_0x1d0f15(0x1aa)+a0_0x1d0f15(0x38c)+a0_0x1d0f15(0x22b)+a0_0x1d0f15(0x351)+a0_0x1d0f15(0x15a)+a0_0x1d0f15(0x1cd)+a0_0x1d0f15(0x3c6)+'sts,\x20'+a0_0x1d0f15(0x236)+a0_0x1d0f15(0x1d3)+a0_0x1d0f15(0x299)+a0_0x1d0f15(0x18e)+'nal_d'+a0_0x1d0f15(0x362)+'encie'+'s,\x20in'+a0_0x1d0f15(0x3a4)+'l_dep'+a0_0x1d0f15(0x2d9)+'cies.'+a0_0x1d0f15(0x249)+a0_0x1d0f15(0x3b6)+a0_0x1d0f15(0x373)+'eturn'+a0_0x1d0f15(0x3a0)+a0_0x1d0f15(0x1d1)+a0_0x1d0f15(0x223)+a0_0x1d0f15(0x336)+a0_0x1d0f15(0x17a)+a0_0x1d0f15(0x2ec)+a0_0x1d0f15(0x16b)+a0_0x1d0f15(0x24a)+a0_0x1d0f15(0x2e6)+'mappi'+a0_0x1d0f15(0x3b1)+a0_0x1d0f15(0x20e)+a0_0x1d0f15(0x1d5)+a0_0x1d0f15(0x2b5)+a0_0x1d0f15(0x205)+'(ISO\x20'+a0_0x1d0f15(0x39f)+a0_0x1d0f15(0x1ac)+a0_0x1d0f15(0x370)+a0_0x1d0f15(0x1fe)+a0_0x1d0f15(0x191)+a0_0x1d0f15(0x302)+a0_0x1d0f15(0x354)+a0_0x1d0f15(0x2c1)+'ekend'+a0_0x1d0f15(0x226)+'olean'+a0_0x1d0f15(0x272)}},'required':[a0_0x1d0f15(0x20a)]}};function a0_0x4a9c(){const _0x3ef866=['zsbKDwu','yMvYCW','ywLUihq','zgvSzxq','Awv3CYW','z3m6ihm','ywCSige','zguGysa','ihDPDgG','tMfTzsa','j3vUC2u','u2v0iha','B3DUx2m','vw5PEca','Bw92zwq','B24U','DgfNCYW','BMfSx2q','u291CMm','BhKGkgi','DxmGkgu','C2v0ige','CYaOyM8','BL9PBw0','yw1Lihq','igLMihq','CIbVy2m','y3vYx3m','zxiGDgG','DhLWzq','yxrLicG','D29YA3m','zw50ksa','zv9SAxm','nJy3odmZugPKA1bw','DhvZjY4','zcbVzIa','BgLZDhm','CMvSyxq','x2LKl3m','vLrty2C','y29UDgu','B2XKx3m','yw1Lig0','zwqGAw4','BgKV','iIbKzwW','BMvLihu','BgvZCYa','x3nLDhq','icDZDge','DxmNihq','DMf0zsa','Aw4Gysa','zxjTAxm','zsbHig4','CM1PC3m','iePVyIa','ks4Grge','qMfcwg8','BxbVCNq','DwrLx3y','BYb0Agu','C2uGDMu','zM9Yigy','Df9MCM8','BwuGkgy','vgvTCgW','BwfW','Bfb3v1i','igLUC2K','BxmGB3i','DguU','DgL2zsK','Bg9Ylca','DxnZyvu','CIbZCge','DgLTzxm','ihrVihi','Dwj0yxm','x25HBwu','Axr5ide','Dcbjrca','B250zw4','DxbKyxq','iIbJCMu','Aw5Nige','BhKGAw4','ysbMB2W','lMCUicC','zgvYig4','rM9Szgu','ihbYB3y','B2XKx2q','yw5NDwe','ywjVDxq','DcaI','zgvYrNi','CYKU','DYbSAxm','yxr0ywm','AwqSihq','igLUy2W','zvjLC3a','Bgf0zs4','B25ZlG','z2v0','BwuPlG','DgvUDcW','s1buCNO','ig9Yigy','zsbJB20','zgvYig8','l3n0yxq','zcbSAxm','yxnZAwC','z2v0vgu','B3iGC3a','BwvTyMu','ywLSzwq','yYaOzMe','BNn0zwe','igfJy2u','yxrPB24','iIb1Cgq','DxjUCYa','Dcb0yxm','vxjS','B3zLige','yxn0ig8','zhmSiha','zsKU','DYbmAxm','DgLTzxO','DxmSihu','zgvYBgu','yw1jza','AxbZlca','y2vFAwq','BNmGB24','Bw92zq','DMuPlG','BMfTzs4','CLjLC3a','zxjFAwq','zgv0ywK','Cg9Uzw4','yxnRig0','AgvJA2W','khbYzwy','rcaOChi','igzVBgq','zsb0BYa','ys4Grgu','BIbPBIa','mZvbtgPjBue','DxjYzwq','DhKSige','z2v0tgK','lcbTB3y','B1v6z28','Aw5JBhu','AwnPzw4','zxrLzca','q3jLyxq','igr1zv8','rfrPzve','DcbIzsa','l3yVBc8','BM90igi','rgvZDgK','B2XSB3C','zsbmAxm','zuvYCM8','zxH0ks4','y2uUifi','zxjUyxq','AxbFD2u','twfUywC','r2v0ieW','zsaOywW','ig9Yige','A2v5CW','zv9Pzc8','AwDYyxq','C2LVBIa','C3mGDg8','DgLUyxq','yxrLx2K','BgvKjYa','y2uGsuq','ieLelIa','CgvYBwK','zgvFDMK','zxzLigW','ywLSCY4','CgfJzs4','C2uGj3m','DhmUieq','AgLZihm','rNjVBvq','zw5Kzw4','AxbZ','DgvFBMe','CgXHDgu','ihrOzsa','DguSigq','l3nWywm','ierLzMe','zxmGBgK','vw5RBM8','zxCGBgK','ChvIBgK','CIbMB3i','DguGCMu','qw4GDw4','AwqVC3a','BhKGzM8','C3nMDwW','Dw5Zzxq','zMf1Bhq','CIbjrca','BNqGzM8','qxjYyxK','qxqGBgu','zhvLx2q','ig9Szf8','Dc4GuMu','ig9Miha','rhvLigq','BNrFyxq','DhvZlIa','CMXLC3m','ihbLCM0','C3nPz24','B2XKzxi','ihn0yxq','Aw9Uigy','Bcb9lG','CIWGBM8','tgLZDhm','B29SCW','Df9Kyxq','BMvLCYW','lIbszwy','Axn0ig4','C3rZigK','khrYDwu','zw5JAwu','C3rHCNq','sg1TEgq','EsbYzw0','ihjLDhu','y2HPDMu','u3bHy2u','qwXSB3C','ExbLlca','yxrL','zwrPyxq','C3rZsw4','Aw5NigG','ChjVDMK','icHMB2W','x2zPzwW','CYWGy28','BIaOCgW','B3b0Aw8','kgfSDgu','C3mPig8','BMf0Axy','igr1zsa','sw5JBhu','ihnWywm','Bwf0Dgu','vxnLigK','CM5Zigy','ig5HBwu','yw1LlG','Axn0CYa','Axn0','zs4GuMu','vxbKyxq','y3jLyxq','B21uzw0','DhvZoIa','BIbMB2W','CML2ywm','zsbVCIa','lIbdyw4','Dcb0BYa','DwnJzxm','Aw5HDgK','u2v0ieW','D24Gywm','B29Szwe','ihn1y2m','suqGkha','y29SB3i','AxzLihq','j25VBMu','C2vZ','C3vJy2u','Aw1L','yYbSAxm','C3qGAw4','BgrZ','BgLZDc4','ifjLCxu','BMfTzxm','rwL0Agu','igeGBgK','Dcb1C2u','CL9Uyw0','BgrLCL8','BYbYzxm','x2XLDMu','zxmGEYa','BMvUDgW','CgfJzq','BMfTzsa','mZGYnJa1z0fUBfzf','zxr0Aw4','zwzHDwW','zxjYB3i','zsWGC2S','z2v0lca','Df9Wzxi','Bg9YlG','zwnPzMK','C2v0ugu','zsbSAxm','yM9VBgu','yxrLigK','u2v0ihq','ywDZ','DMLKzwq','DgLVBNm','Axn0CYW','zxbLBMq','mtmYnJCYnJfTrLLjrfe','AguGBMu','zMLUzey','zxrLCIa','yxjJAgK','zv9Pzca','yxjYyxK','iI4GtMu','BMCGysa','C3qGyMu','4OcuihjLDa','zgf0zq','qK5gExa','z3mPlca','B25L','zsbHBIa','B2W6ihi','y3vZDg8','C2LNBMu','ChjPDMe','A3DKAhy','zgvYieK','AYbZDge','zw50CMK','zxjYzwq','Bw92zv8','lcbJB24','ntC0mtu2mgfdzfrzyW','zwXLDgu','zguGyxi','Dhj1zsC','Axb0Aw8','C3rFAwq','DguNigi','zxjFBMe','CYKGB3i','ieXPC3q','iezVCIa','C3bHy2u','seHNq2C','CIKU','CYWGCMu','DwLYzxm','BgLZDa','rgvSzxq','ugn3Aw4','qxnZAwC','BwfYA2q','BwuGB24','z2uPlG','CIbjrc4','EsbHBMq','AwrLzc4','oIbJCMu','ig5HDhu','AwqPlG','EwfKDeC','z2DWAvG','CMvKigy','4OctidqGka','odyWmsa','x2LTBwu','zgvYx2K','zwX5','mtC1otK5mNrvAhPAAW','DgvYBMe','B3DUlG','Dgf0Dxm','DgfKyxq','igzVCIa','zsb0Agu','AxmGzM8','ig92zxi','C3rFBMe','ig9Yihm','DgLVBIa','AwD1B3u','ihvWzge','BMC6ihm','AwqVBMe','CIbVCIa','zfbqC1q','BNvTyMu','y29UDhi','Dw5HBwi','DcbMCM8','C2LVBNm','CxvPCMu','B2X2zsa','BwvZC2e','CYbTB3y','yw1Lie8','AxjLzc4','zxHPC3q','tgLZDa','r2v0igq','ywX0zxi','CYbSAxm','Dg8GzM8','zwnRBgK','y2uGBMe','yxrLx3q','ugvYBwK','zw1VDMu','igeGC3a','yxrLzca','igXPC3q','sgfUzgW','B3zPzgu','Bv90zw0','BYbWCMK','igLUigG','DgLVBJO','zguGDgG','A25VD24','z3mSig8','mJy0nJe4neHVwuToBW','yxrLlca','sw5gB2W','Bg93ks4','DhjPzxm','zw50CW','zcbVCIa','Eu1PvwO','y291BNq','y29TBwu','yxrLihm','x2LKl2y','tgLZDca','zM9Yihq','zNjVBsa','CIbUyw0','ihrYDwu','jYb0BYa','AxjLCYa','q29UDhi','CIbLzMy','uIbMB2W','yxv0B20','B2XKx2m','C2z1BgW','z2v0x2W','yw5KicC','CMvKks4','zwvZ','zgvY','DdOGzMe','BIWGzgu','CIbPBIa','B24UicC','ignVBg8','oIbKzxq','DgL2zsa','B3DUlIa','DgfTCca','D2vLA2u','CM5HDgK','icSGkhq','ignYzwe','C3nPB24','t3LMDLC','CMvHDgK','yxrLieK','ig1VDMu','zM9Szgu','B2jQzwm','DhKUicC','zxH0zxi','zwuPig0','BMvL','x3n0yxi','DwvFzge','CIbMB2W','igv2zw4','Dxn0igi','BNqGy28','zgvYlIa','CYb1Cgq','ywnLx24','yw1LicG','igfYCMe','C2X5lG','C2TZ','CMvKjYK','CMTKB3C','DwrLCYa','BIbZCge','C3rHDhu','B2XZihi','icHMB3i','Bv9MAwu','q2fUBM8','Axn0ifa','uMv0CMK','BxvZDca','Ag1LBNq','zxjZ','C3rYAw4','ieLeiokaLa','BMf0Aw8','l2zVBgq','icHZCge','vvjiCvu','zcbPBIa','DcbUyxy','zuXPC3q','yw5KBgu','Axn0CW','Bsbuzw0','C2TPCf8','B2XKx2y','yM14B2e','AxmGCMu','igLUihq','uMvXDwK','B2XKx3q','ihbYAw8','zc9MB2W','DhvZjYa','zv9Uyw0','ChjPB3i','zguGBwu','CgfJzv8','BgvUz3q','kgzVCIa','BYbZCge','Axr5','CI9ZDge','icHHBhq','iIbUB3q','BgrFy2G','CIbSAxm','BL9JB24','zxDZ','zgLHDgu','Df9Pzca','Aw9UC2G','igzVDw4','zgf0zsW','zMvYzw4','rM9Yigm','BgLZDf8','ysbKAwy','yxrLig4','mZm0ote2B2L4Exbx','B3iGBgK','DgvTCgW','ywnLx2K','zcbMB3i','zxjZihq','ieLeicG','tMv3igW','uMvTB3y','y0rMr0e','zcKU','CL9Pzc8','Dxn0B20','rxjYB3i','DgfZA18','BwuGBxu','uhjPB3i','zsbWCM8','BhnLlG','tw92zsa','wNfjvxG','B25Zzq','zsbTDxm','x2rHDgu','zM9YBwe','CMvMzxi','tgLZDfq','zxnVBhy','zw1WBge','BgrLCIa','BwjLCNm','ihjLCxu','CML0EsW','Aw9UCW','zgvZy3i','CMvTyxa','zxf1Axi','DhvZzxm','zwzLCNi','igrHDgu','zgvFBwu','ig9YigW','zgf0zsa','zsbYzxe','BgvK','icH1CMC','CIaI','BMfTzq','Aw5NigW','BNmGzNu','BwuU','DgfYDf8','C2vYieK'];a0_0x4a9c=function(){return _0x3ef866;};return a0_0x4a9c();}export async function handleManageLists(_0x5dc281,_0x273018){const _0x2928fc=a0_0x1d0f15,_0x337321={'ggpiX':function(_0x48c513,_0x379b38){return _0x48c513===_0x379b38;},'bmxoa':_0x2928fc(0x34f)+_0x2928fc(0x1bb)+'quire'+_0x2928fc(0x1df)+_0x2928fc(0x185)+_0x2928fc(0x258),'OyfvW':function(_0xfd7e2d,_0x4c5052,_0x4bf672,_0x31a700){return _0xfd7e2d(_0x4c5052,_0x4bf672,_0x31a700);},'URHqU':function(_0x433c53,_0x45b739){return _0x433c53!==_0x45b739;},'cDfGA':function(_0x1ed005,_0x2f4a7a){return _0x1ed005(_0x2f4a7a);},'OCZqO':function(_0x13eadb,_0x1d22f4,_0x1663e7,_0x558f1a,_0x328e35,_0x49cc5d){return _0x13eadb(_0x1d22f4,_0x1663e7,_0x558f1a,_0x328e35,_0x49cc5d);},'xBKYz':function(_0x25d781,_0x33f55f,_0x526667){return _0x25d781(_0x33f55f,_0x526667);},'BaBXo':_0x2928fc(0x353),'uImrx':_0x2928fc(0x2a1)+_0x2928fc(0x207),'ussaU':function(_0x4fe9f5,_0x3bfa0e){return _0x4fe9f5||_0x3bfa0e;},'VTScg':function(_0xb3a04e,_0x1099b5){return _0xb3a04e&&_0x1099b5;},'mJbvz':function(_0x547f11,_0x8a8fa){return _0x547f11===_0x8a8fa;},'KhiZi':_0x2928fc(0x2f0)+_0x2928fc(0x291)+'ne\x20up'+_0x2928fc(0x205)+'param'+_0x2928fc(0x366)+'(name'+_0x2928fc(0x37d)+_0x2928fc(0x27c)+_0x2928fc(0x2fc)+_0x2928fc(0x296)+'nset_'+_0x2928fc(0x1a2)+'s,\x20ma'+_0x2928fc(0x19f)+_0x2928fc(0x1cf)+'tent,'+_0x2928fc(0x2b5)+_0x2928fc(0x1d5)+_0x2928fc(0x1bf)+_0x2928fc(0x1fb)+_0x2928fc(0x2c5)+_0x2928fc(0x2fa)+_0x2928fc(0x18f)+_0x2928fc(0x195)+_0x2928fc(0x1ec)+_0x2928fc(0x35f)+'.','oUzgo':function(_0x508959,_0x304c5b){return _0x508959!==_0x304c5b;},'lBlSh':function(_0x3c5a1f,_0x3c48ce){return _0x3c5a1f(_0x3c48ce);},'JuFiC':_0x2928fc(0x213)+'e','IZmYt':_0x2928fc(0x29c),'errEO':'A\x20des'+_0x2928fc(0x2cb)+'ion\x20f'+_0x2928fc(0x2fb)+_0x2928fc(0x166)+_0x2928fc(0x2fb)+_0x2928fc(0x260)+_0x2928fc(0x3ad)+_0x2928fc(0x1c5)+'id/sp'+_0x2928fc(0x199)+_0x2928fc(0x23b)+_0x2928fc(0x195)+_0x2928fc(0x1ec)+_0x2928fc(0x35f)+_0x2928fc(0x3a8)+'move.','KPTrz':function(_0x3e3576,_0x3c047d){return _0x3e3576||_0x3c047d;},'yMiUj':function(_0x6fb0ed,_0x56551d,_0x2980da,_0x271666,_0x319249,_0x40fef9){return _0x6fb0ed(_0x56551d,_0x2980da,_0x271666,_0x319249,_0x40fef9);},'Pcwin':_0x2928fc(0x389)},{action:_0x538b5b,list_id:_0x3753df,list_name:_0x240503,folder_id:_0x33d173,folder_name:_0x1df0c9,space_id:_0x558cdd,space_name:_0x1d8c00,name:_0x51cba0,content:_0x3d3229,markdown_content:_0x230adc,due_date:_0x3e428b,due_date_time:_0x468613,priority:_0x1135c5,assignee:_0x5e5418,status:_0x45560e,unset_status:_0x1f7688,allow_destructive_fallback:_0x51d088}=_0x5dc281,{list:_0x1e6512}=_0x273018;logger['info'](_0x2928fc(0x3ce)+_0x2928fc(0x314)+_0x2928fc(0x1b5)+_0x2928fc(0x2c2)+'eList'+'s',{'action':_0x538b5b});try{switch(_0x538b5b){case'set_p'+'ermis'+'sions':{const _0x3acf18=await resolveListId(_0x3753df,_0x240503,_0x273018);if(_0x337321['ggpiX'](_0x5dc281['priva'+'te'],undefined))return sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x2bd)+_0x2928fc(0x29f)+'onse']('The\x20\x27'+'priva'+_0x2928fc(0x384)+_0x2928fc(0x336)+'n\x20par'+'amete'+'r\x20is\x20'+'requi'+_0x2928fc(0x39d)+'or\x20se'+_0x2928fc(0x356)+'missi'+_0x2928fc(0x279));return await _0x1e6512[_0x2928fc(0x359)+_0x2928fc(0x248)+_0x2928fc(0x1fc)](_0x2928fc(0x38e),_0x3acf18,{'private':_0x5dc281[_0x2928fc(0x376)+'te'],'entries':_0x5dc281[_0x2928fc(0x37a)+'es']||[]}),sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x277)+_0x2928fc(0x1f0)]({'success':!![],'message':_0x2928fc(0x3c9)+_0x2928fc(0x186)+_0x2928fc(0x198)+_0x2928fc(0x3cc)+_0x2928fc(0x33d)+_0x2928fc(0x2ea)+_0x2928fc(0x2e9)+_0x2928fc(0x1ce)+_0x2928fc(0x270)+(_0x240503||_0x3753df)+'\x22'},!![]);}case'creat'+'e':{if(!_0x51cba0)return sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x2bd)+_0x2928fc(0x29f)+_0x2928fc(0x1f0)](_0x337321[_0x2928fc(0x1ba)]);const _0x3f23e0={'name':_0x51cba0};if(_0x3d3229)_0x3f23e0[_0x2928fc(0x239)+'nt']=_0x3d3229;if(_0x230adc)_0x3f23e0[_0x2928fc(0x392)+_0x2928fc(0x21c)+_0x2928fc(0x263)+'t']=_0x230adc;if(_0x3e428b){const _0x1ebe22=_0x337321[_0x2928fc(0x187)](parseDueDate,String(_0x3e428b),undefined,_0x273018[_0x2928fc(0x295)+_0x2928fc(0x371)]);if(_0x1ebe22)_0x3f23e0[_0x2928fc(0x2f1)+_0x2928fc(0x311)]=_0x1ebe22;_0x3f23e0[_0x2928fc(0x2f1)+'ate_t'+_0x2928fc(0x33e)]=_0x337321[_0x2928fc(0x1b1)](_0x468613,undefined)?_0x468613:_0x337321[_0x2928fc(0x1e4)](hasExplicitTime,String(_0x3e428b));}if(_0x1135c5)_0x3f23e0[_0x2928fc(0x1c3)+_0x2928fc(0x1c9)]=_0x1135c5;if(_0x5e5418)_0x3f23e0['assig'+_0x2928fc(0x190)]=_0x5e5418;if(_0x45560e)_0x3f23e0['statu'+'s']=_0x45560e;if(_0x33d173||_0x1df0c9){const _0x43b4cf=await _0x337321['OCZqO'](resolveFolderId,_0x33d173,_0x1df0c9,_0x558cdd,_0x1d8c00,_0x273018),_0x3605d3=await _0x1e6512[_0x2928fc(0x32a)+_0x2928fc(0x1b4)+_0x2928fc(0x15d)+_0x2928fc(0x178)](_0x43b4cf,_0x3f23e0);return sponsorService['creat'+_0x2928fc(0x277)+_0x2928fc(0x1f0)]({'id':_0x3605d3['id'],'name':_0x3605d3['name'],'content':_0x3605d3[_0x2928fc(0x239)+'nt'],'folder':{'id':_0x3605d3['folde'+'r']['id'],'name':_0x3605d3[_0x2928fc(0x18b)+'r']['name']},'space':{'id':_0x3605d3[_0x2928fc(0x389)]['id'],'name':_0x3605d3[_0x2928fc(0x389)]['name']},'url':buildListUrl(_0x3605d3['id'],_0x273018),'message':_0x2928fc(0x167)+'\x22'+_0x51cba0+(_0x2928fc(0x265)+_0x2928fc(0x3cc)+_0x2928fc(0x33d)+_0x2928fc(0x2ea)+_0x2928fc(0x267)+_0x2928fc(0x2a7)+'er\x20\x22')+_0x3605d3[_0x2928fc(0x18b)+'r'][_0x2928fc(0x20a)]+'\x22'},!![]);}else{const _0x5623f2=await _0x337321[_0x2928fc(0x187)](resolveSpaceId,_0x558cdd,_0x1d8c00,_0x273018),_0x17251c=await _0x1e6512[_0x2928fc(0x32a)+_0x2928fc(0x1b4)](_0x5623f2,_0x3f23e0);return sponsorService[_0x2928fc(0x32a)+'eResp'+_0x2928fc(0x1f0)]({'id':_0x17251c['id'],'name':_0x17251c['name'],'content':_0x17251c[_0x2928fc(0x239)+'nt'],'space':{'id':_0x17251c[_0x2928fc(0x389)]['id'],'name':_0x17251c['space'][_0x2928fc(0x20a)]},'url':buildListUrl(_0x17251c['id'],_0x273018),'message':'List\x20'+'\x22'+_0x51cba0+(_0x2928fc(0x265)+_0x2928fc(0x3cc)+'succe'+_0x2928fc(0x2ea)+'ly')},!![]);}}case _0x2928fc(0x27a):{const _0x247fc5=await resolveListId(_0x3753df,_0x240503,_0x273018),_0x2451f8=await _0x1e6512[_0x2928fc(0x2ae)+'st'](_0x247fc5),_0xedc551={'id':_0x2451f8['id'],'name':_0x2451f8[_0x2928fc(0x20a)],'content':_0x2451f8[_0x2928fc(0x239)+'nt'],'space':{'id':_0x2451f8['space']['id'],'name':_0x2451f8['space'][_0x2928fc(0x20a)]},'statuses':_0x2451f8[_0x2928fc(0x1a2)+_0x2928fc(0x33c)],'url':_0x337321['xBKYz'](buildListUrl,_0x2451f8['id'],_0x273018)};if(_0x5dc281['inclu'+_0x2928fc(0x203)+_0x2928fc(0x1f9)]){const _0x325597=await getAndFormatMembers(()=>_0x1e6512[_0x2928fc(0x2ae)+'stMem'+_0x2928fc(0x211)](_0x247fc5));_0x337321[_0x2928fc(0x24b)]in _0x325597&&_0x325597[_0x2928fc(0x353)]?_0xedc551['membe'+'rs']={'error':_0x325597[_0x2928fc(0x353)]}:_0xedc551[_0x2928fc(0x286)+'rs']=_0x325597;}return sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x277)+_0x2928fc(0x1f0)](_0xedc551,!![]);}case'get_l'+_0x2928fc(0x1b6):{const {detail_level:detail_level=_0x337321['uImrx'],archived:_0x711ca8}=_0x5dc281;if(!_0x33d173&&!_0x1df0c9&&!_0x558cdd&&!_0x1d8c00)return sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x2bd)+_0x2928fc(0x29f)+_0x2928fc(0x1f0)](_0x2928fc(0x1d8)+_0x2928fc(0x235)+_0x2928fc(0x1fa)+_0x2928fc(0x16d)+_0x2928fc(0x389)+_0x2928fc(0x237)+_0x2928fc(0x1c5)+_0x2928fc(0x34f)+'(for\x20'+_0x2928fc(0x18b)+_0x2928fc(0x2f8)+_0x2928fc(0x3cd)+_0x2928fc(0x386)+_0x2928fc(0x2a7)+_0x2928fc(0x2a0)+_0x2928fc(0x1af)+_0x2928fc(0x385)+_0x2928fc(0x252)+_0x2928fc(0x1dc)+_0x2928fc(0x306)+'n\x20a\x20f'+'older'+').');let _0x40d38b;if(_0x337321[_0x2928fc(0x25b)](_0x33d173,_0x1df0c9)){const _0x2796ad=await resolveFolderId(_0x33d173,_0x1df0c9,_0x558cdd,_0x1d8c00,_0x273018);_0x40d38b=await _0x1e6512['getLi'+_0x2928fc(0x313)+_0x2928fc(0x26b)+'r'](_0x2796ad,_0x711ca8);}else{const _0x2d33cf=await resolveSpaceId(_0x558cdd,_0x1d8c00,_0x273018);_0x40d38b=await _0x1e6512[_0x2928fc(0x2ae)+'stsIn'+_0x2928fc(0x30e)](_0x2d33cf,_0x711ca8);}if(_0x337321[_0x2928fc(0x39c)](detail_level,'names'))return sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x277)+_0x2928fc(0x1f0)]({'lists':_0x40d38b[_0x2928fc(0x254)](_0x21d76f=>({'id':_0x21d76f['id'],'name':_0x21d76f[_0x2928fc(0x20a)]})),'count':_0x40d38b[_0x2928fc(0x1c6)+'h']},!![]);return sponsorService[_0x2928fc(0x32a)+'eResp'+_0x2928fc(0x1f0)]({'lists':_0x40d38b['map'](_0x490c90=>({'id':_0x490c90['id'],'name':_0x490c90[_0x2928fc(0x20a)],'content':_0x490c90[_0x2928fc(0x239)+'nt'],'status':_0x490c90[_0x2928fc(0x1a2)+'s'],'task_count':_0x490c90[_0x2928fc(0x1e9)+_0x2928fc(0x163)],'due_date':_0x490c90[_0x2928fc(0x2f1)+'ate'],'start_date':_0x490c90[_0x2928fc(0x309)+_0x2928fc(0x1f2)],'archived':_0x490c90[_0x2928fc(0x367)+'ved']})),'count':_0x40d38b[_0x2928fc(0x1c6)+'h']},!![]);}case _0x2928fc(0x264)+'e':{const _0x509fdf=await resolveListId(_0x3753df,_0x240503,_0x273018);if(_0x337321['VTScg'](!_0x51cba0,!_0x3d3229)&&!_0x45560e&&!_0x1f7688&&!_0x230adc&&!_0x3e428b&&_0x337321['mJbvz'](_0x1135c5,undefined)&&_0x5e5418===undefined)return sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x2bd)+_0x2928fc(0x29f)+_0x2928fc(0x1f0)](_0x337321['KhiZi']);if(_0x337321[_0x2928fc(0x238)](_0x45560e,_0x1f7688))return sponsorService['creat'+_0x2928fc(0x2bd)+_0x2928fc(0x29f)+_0x2928fc(0x1f0)](_0x2928fc(0x1a6)+_0x2928fc(0x347)+_0x2928fc(0x242)+_0x2928fc(0x1c1)+_0x2928fc(0x175)+_0x2928fc(0x2eb)+'_stat'+_0x2928fc(0x243)+'ogeth'+'er.\x20U'+_0x2928fc(0x2d5)+_0x2928fc(0x3a6)+_0x2928fc(0x16c)+_0x2928fc(0x225)+_0x2928fc(0x17d)+_0x2928fc(0x3b3)+_0x2928fc(0x21a)+'t_sta'+_0x2928fc(0x32c)+_0x2928fc(0x381)+'\x20to\x20r'+_0x2928fc(0x3ca)+_0x2928fc(0x2dd)+'curre'+_0x2928fc(0x196)+_0x2928fc(0x357));const _0x5f5971={};if(_0x51cba0)_0x5f5971[_0x2928fc(0x20a)]=_0x51cba0;if(_0x3d3229)_0x5f5971['conte'+'nt']=_0x3d3229;if(_0x45560e)_0x5f5971[_0x2928fc(0x1a2)+'s']=_0x45560e;if(_0x1f7688)_0x5f5971[_0x2928fc(0x2eb)+'_stat'+'us']=_0x1f7688;if(_0x230adc)_0x5f5971[_0x2928fc(0x392)+_0x2928fc(0x21c)+_0x2928fc(0x263)+'t']=_0x230adc;if(_0x3e428b){const _0x4af390=parseDueDate(String(_0x3e428b),undefined,_0x273018[_0x2928fc(0x295)+_0x2928fc(0x371)]);if(_0x4af390)_0x5f5971[_0x2928fc(0x2f1)+'ate']=_0x4af390;_0x5f5971['due_d'+_0x2928fc(0x3c8)+_0x2928fc(0x33e)]=_0x337321[_0x2928fc(0x2b0)](_0x468613,undefined)?_0x468613:_0x337321['cDfGA'](hasExplicitTime,_0x337321['lBlSh'](String,_0x3e428b));}if(_0x337321[_0x2928fc(0x2b0)](_0x1135c5,undefined))_0x5f5971['prior'+'ity']=_0x1135c5;if(_0x5e5418!==undefined)_0x5f5971[_0x2928fc(0x283)+_0x2928fc(0x190)]=_0x5e5418;const _0x29e35d=await _0x1e6512[_0x2928fc(0x264)+_0x2928fc(0x1b4)](_0x509fdf,_0x5f5971);return sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x277)+'onse']({'id':_0x29e35d['id'],'name':_0x29e35d[_0x2928fc(0x20a)],'content':_0x29e35d[_0x2928fc(0x239)+'nt'],'space':{'id':_0x29e35d[_0x2928fc(0x389)]['id'],'name':_0x29e35d[_0x2928fc(0x389)][_0x2928fc(0x20a)]},'url':buildListUrl(_0x29e35d['id'],_0x273018),'message':_0x2928fc(0x167)+'\x22'+_0x29e35d['name']+(_0x2928fc(0x28c)+_0x2928fc(0x3cc)+'succe'+_0x2928fc(0x2ea)+'ly')},!![]);}case _0x337321['JuFiC']:{const _0x111080=await _0x337321[_0x2928fc(0x187)](resolveListId,_0x3753df,_0x240503,_0x273018),_0x4e9788=await _0x1e6512['getLi'+'st'](_0x111080),_0x228c64=_0x4e9788['name'];return await _0x1e6512[_0x2928fc(0x213)+_0x2928fc(0x1b4)](_0x111080),sponsorService['creat'+_0x2928fc(0x277)+'onse']({'success':!![],'message':_0x2928fc(0x167)+'\x22'+_0x228c64+(_0x2928fc(0x23e)+_0x2928fc(0x2b3)+'succe'+_0x2928fc(0x2ea)+'ly')},!![]);}case _0x337321['IZmYt']:{const _0x14cf01=await resolveListId(_0x3753df,_0x240503,_0x273018);if(_0x337321[_0x2928fc(0x238)](!_0x33d173,!_0x1df0c9)&&!_0x558cdd&&!_0x1d8c00)return sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x2bd)+'rResp'+'onse'](_0x337321['errEO']);let _0x2c9db1,_0x396a5f;_0x337321[_0x2928fc(0x27d)](_0x33d173,_0x1df0c9)?(_0x2c9db1=await _0x337321[_0x2928fc(0x162)](resolveFolderId,_0x33d173,_0x1df0c9,_0x558cdd,_0x1d8c00,_0x273018),_0x396a5f='folde'+'r'):(_0x2c9db1=await _0x337321[_0x2928fc(0x187)](resolveSpaceId,_0x558cdd,_0x1d8c00,_0x273018),_0x396a5f=_0x337321[_0x2928fc(0x390)]);const _0x8e7081=await _0x1e6512['moveL'+_0x2928fc(0x327)](_0x14cf01,_0x2c9db1,_0x396a5f,_0x51d088);return sponsorService[_0x2928fc(0x32a)+'eResp'+_0x2928fc(0x1f0)]({'id':_0x8e7081['id'],'name':_0x8e7081[_0x2928fc(0x20a)],'content':_0x8e7081[_0x2928fc(0x239)+'nt'],'space':{'id':_0x8e7081[_0x2928fc(0x389)]['id'],'name':_0x8e7081[_0x2928fc(0x389)][_0x2928fc(0x20a)]},'folder':_0x8e7081[_0x2928fc(0x18b)+'r']?{'id':_0x8e7081[_0x2928fc(0x18b)+'r']['id'],'name':_0x8e7081['folde'+'r'][_0x2928fc(0x20a)]}:undefined,'url':_0x337321['xBKYz'](buildListUrl,_0x8e7081['id'],_0x273018),'message':_0x2928fc(0x167)+_0x2928fc(0x21e)+_0x2928fc(0x337)+'essfu'+'lly\x20t'+'o\x20'+_0x396a5f+'\x20\x22'+(_0x396a5f===_0x2928fc(0x18b)+'r'&&_0x8e7081[_0x2928fc(0x18b)+'r']?_0x8e7081[_0x2928fc(0x18b)+'r'][_0x2928fc(0x20a)]:_0x8e7081[_0x2928fc(0x389)]['name'])+(_0x2928fc(0x36a)+_0x2928fc(0x294)+'t\x20ID:'+'\x20')+_0x8e7081['id']},!![]);}default:return sponsorService[_0x2928fc(0x32a)+_0x2928fc(0x2bd)+_0x2928fc(0x29f)+_0x2928fc(0x1f0)](_0x2928fc(0x2e2)+_0x2928fc(0x335)+_0x2928fc(0x3d3)+'\x20'+_0x538b5b+('.\x20Val'+'id\x20ac'+_0x2928fc(0x360)+_0x2928fc(0x398)+_0x2928fc(0x15c)+_0x2928fc(0x355)+_0x2928fc(0x174)+_0x2928fc(0x361)+_0x2928fc(0x3b0)+_0x2928fc(0x2de)+_0x2928fc(0x37f)+_0x2928fc(0x2af)+'e.'));}}catch(_0x350b56){return logger[_0x2928fc(0x353)](_0x2928fc(0x1e8)+_0x2928fc(0x3d2)+_0x2928fc(0x1b5)+_0x2928fc(0x2c2)+_0x2928fc(0x1b4)+'s',_0x350b56),sponsorService['creat'+_0x2928fc(0x2bd)+_0x2928fc(0x29f)+_0x2928fc(0x1f0)](_0x350b56[_0x2928fc(0x3bc)+'ge']||_0x2928fc(0x2e7)+'known'+'\x20erro'+_0x2928fc(0x22a)+_0x2928fc(0x2ac));}}export async function handleCreateListFromTemplate(_0x4ae633,_0x48ebb3){const _0x53307b=a0_0x1d0f15,_0x1ca0e7={'dPPsT':function(_0x1fbf1b,_0x78e688){return _0x1fbf1b===_0x78e688;},'wBJDN':_0x53307b(0x18c)+'t','yadtG':_0x53307b(0x1b8)+_0x53307b(0x182)+'nds','DTieQ':'old_a'+_0x53307b(0x2fa)+_0x53307b(0x177),'tWCKy':_0x53307b(0x1b9)+_0x53307b(0x2bb)+_0x53307b(0x1ab),'lPwWR':'attac'+_0x53307b(0x1aa)+'s','hbxRo':_0x53307b(0x164)+'nt','BNFyp':_0x53307b(0x172)+_0x53307b(0x2a4)+_0x53307b(0x1b6),'roMkR':function(_0xad9593,_0x4be49a,_0x1e50ca,_0x479700){return _0xad9593(_0x4be49a,_0x1e50ca,_0x479700);},'HHgCg':'An\x20un'+_0x53307b(0x159)+'\x20erro'+_0x53307b(0x22a)+'urred'},{name:_0x56816d,template_id:_0x1c0e4a,template_name:_0x3e83bb,space_id:_0x3e2ff7,space_name:_0x9d85ac,folder_id:_0x3077c5,folder_name:_0x4e9bf8}=_0x4ae633,{list:_0xcce553}=_0x48ebb3;try{if(!_0x56816d)return sponsorService[_0x53307b(0x32a)+_0x53307b(0x2bd)+_0x53307b(0x29f)+_0x53307b(0x1f0)](_0x53307b(0x34f)+_0x53307b(0x1bb)+_0x53307b(0x3ba)+'d.');const _0x19daaf=await resolveTemplateId(_0x1c0e4a,_0x3e83bb,_0x48ebb3);let _0x29f4a6=_0x1ca0e7['dPPsT'](typeof _0x4ae633[_0x53307b(0x31a)+'ns'],_0x1ca0e7['wBJDN'])&&_0x4ae633[_0x53307b(0x31a)+'ns']!==null?{..._0x4ae633[_0x53307b(0x31a)+'ns']}:{};if(_0x1ca0e7[_0x53307b(0x3b4)](Object[_0x53307b(0x2c6)](_0x29f4a6)['lengt'+'h'],0x0)){const _0x50f5e1=['retur'+_0x53307b(0x227)+_0x53307b(0x312)+_0x53307b(0x3a2),_0x53307b(0x309)+_0x53307b(0x1f2),'due_d'+_0x53307b(0x311),_0x53307b(0x1fe)+_0x53307b(0x191)+'t_dat'+'e',_0x1ca0e7[_0x53307b(0x39b)],'subta'+_0x53307b(0x19d),_0x53307b(0x374)+_0x53307b(0x1a5)+_0x53307b(0x341),_0x53307b(0x1c3)+_0x53307b(0x1c9),_0x53307b(0x171)+_0x53307b(0x28b),_0x53307b(0x2b1)+_0x53307b(0x2d1)+_0x53307b(0x1d0),_0x1ca0e7[_0x53307b(0x2b6)],_0x53307b(0x26d)+_0x53307b(0x192)+'te',_0x53307b(0x23a)+_0x53307b(0x20e)+_0x53307b(0x36e),_0x53307b(0x1be)+_0x53307b(0x35e),_0x53307b(0x23a)+_0x53307b(0x3a6)+'es',_0x1ca0e7['tWCKy'],_0x1ca0e7[_0x53307b(0x255)],_0x1ca0e7['hbxRo'],_0x53307b(0x164)+_0x53307b(0x2f6)+'tachm'+_0x53307b(0x160),'recur'+_0x53307b(0x241)+'ings',_0x1ca0e7[_0x53307b(0x36f)],_0x53307b(0x236)+_0x53307b(0x1d3)+_0x53307b(0x2da),_0x53307b(0x18e)+_0x53307b(0x221)+_0x53307b(0x362)+_0x53307b(0x308)+'s','inter'+_0x53307b(0x221)+_0x53307b(0x362)+_0x53307b(0x308)+'s'];for(const _0x34a2c0 of _0x50f5e1){if(_0x4ae633[_0x34a2c0]!==undefined)_0x29f4a6[_0x34a2c0]=_0x4ae633[_0x34a2c0];}}if(_0x3077c5||_0x4e9bf8){const _0x4e1afb=await resolveFolderId(_0x3077c5,_0x4e9bf8,_0x3e2ff7,_0x9d85ac,_0x48ebb3),_0x369734=await _0xcce553[_0x53307b(0x32a)+_0x53307b(0x1b4)+_0x53307b(0x15d)+_0x53307b(0x271)+_0x53307b(0x32b)+_0x53307b(0x2dc)](_0x4e1afb,_0x19daaf,_0x56816d,_0x29f4a6);return sponsorService['creat'+_0x53307b(0x277)+'onse']({'id':_0x369734['id'],'name':_0x369734[_0x53307b(0x20a)],'message':'List\x20'+'\x22'+_0x56816d+(_0x53307b(0x265)+_0x53307b(0x3cc)+'from\x20'+_0x53307b(0x1dd)+'ate\x20i'+_0x53307b(0x32d)+'der\x20s'+'ucces'+'sfull'+'y')},!![]);}else{const _0x3ad812=await _0x1ca0e7['roMkR'](resolveSpaceId,_0x3e2ff7,_0x9d85ac,_0x48ebb3),_0x133924=await _0xcce553[_0x53307b(0x32a)+'eList'+_0x53307b(0x2d8)+'empla'+'te'](_0x3ad812,_0x19daaf,_0x56816d,_0x29f4a6);return sponsorService[_0x53307b(0x32a)+_0x53307b(0x277)+_0x53307b(0x1f0)]({'id':_0x133924['id'],'name':_0x133924['name'],'message':_0x53307b(0x167)+'\x22'+_0x56816d+(_0x53307b(0x265)+_0x53307b(0x3cc)+_0x53307b(0x169)+_0x53307b(0x1dd)+_0x53307b(0x165)+_0x53307b(0x332)+_0x53307b(0x173)+'y')},!![]);}}catch(_0x374f64){return logger[_0x53307b(0x353)]('Error'+_0x53307b(0x3d2)+_0x53307b(0x1b5)+_0x53307b(0x2b4)+'eList'+_0x53307b(0x2d8)+_0x53307b(0x1f7)+'te',_0x374f64),sponsorService[_0x53307b(0x32a)+'eErro'+_0x53307b(0x29f)+_0x53307b(0x1f0)](_0x374f64['messa'+'ge']||_0x1ca0e7[_0x53307b(0x38a)]);}}