@taazkareem/clickup-mcp-server
Version:
ClickUp MCP Server - Powering AI Agents with full ClickUp task, document, and chat management capabilities.
1 lines • 16.9 kB
JavaScript
function a0_0x2f09(_0x1d4c3a,_0x4cb678){_0x1d4c3a=_0x1d4c3a-0xbd;const _0x3e1af4=a0_0x3e1a();let _0x2f09ba=_0x3e1af4[_0x1d4c3a];if(a0_0x2f09['FPDbxP']===undefined){var _0x1d3587=function(_0x52ad79){const _0x2a7c56='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x205b34='',_0x23840e='';for(let _0x18ec6a=0x0,_0x3f8573,_0x7297bd,_0x1e3a66=0x0;_0x7297bd=_0x52ad79['charAt'](_0x1e3a66++);~_0x7297bd&&(_0x3f8573=_0x18ec6a%0x4?_0x3f8573*0x40+_0x7297bd:_0x7297bd,_0x18ec6a++%0x4)?_0x205b34+=String['fromCharCode'](0xff&_0x3f8573>>(-0x2*_0x18ec6a&0x6)):0x0){_0x7297bd=_0x2a7c56['indexOf'](_0x7297bd);}for(let _0x296912=0x0,_0x533314=_0x205b34['length'];_0x296912<_0x533314;_0x296912++){_0x23840e+='%'+('00'+_0x205b34['charCodeAt'](_0x296912)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23840e);};a0_0x2f09['NIaBCi']=_0x1d3587,a0_0x2f09['ptDFMK']={},a0_0x2f09['FPDbxP']=!![];}const _0x3e145f=_0x3e1af4[0x0],_0x2d6ea7=_0x1d4c3a+_0x3e145f,_0x3a0a7c=a0_0x2f09['ptDFMK'][_0x2d6ea7];return!_0x3a0a7c?(_0x2f09ba=a0_0x2f09['NIaBCi'](_0x2f09ba),a0_0x2f09['ptDFMK'][_0x2d6ea7]=_0x2f09ba):_0x2f09ba=_0x3a0a7c,_0x2f09ba;}const a0_0x4341db=a0_0x2f09;(function(_0x39a772,_0x37931f){const _0xbaeb04=a0_0x2f09,_0x232683=_0x39a772();while(!![]){try{const _0x5e6568=-parseInt(_0xbaeb04(0x100))/0x1*(parseInt(_0xbaeb04(0xe9))/0x2)+-parseInt(_0xbaeb04(0x122))/0x3+parseInt(_0xbaeb04(0xf1))/0x4*(parseInt(_0xbaeb04(0x10a))/0x5)+-parseInt(_0xbaeb04(0x110))/0x6+parseInt(_0xbaeb04(0x126))/0x7+parseInt(_0xbaeb04(0xf2))/0x8+parseInt(_0xbaeb04(0xd0))/0x9;if(_0x5e6568===_0x37931f)break;else _0x232683['push'](_0x232683['shift']());}catch(_0x19b8cb){_0x232683['push'](_0x232683['shift']());}}}(a0_0x3e1a,0x5aac6));import{toTaskPriority}from'../../services/clickup/types.js';import{parseDueDate,parseFilterDate,hasExplicitTime}from'../utils.js';function a0_0x3e1a(){const _0x30ea8a=['A190Exa','Dgv4Df8','C3rYAw4','x3rPBwu','AxnbCNi','Aw5N','mtuWodyWnxLMug5Ira','De5HBwu','CgfJzq','BMfTzsa','CMvKDwm','DxfSs0u','mti4nZG3menewKPyAq','vgfZA1a','Axr5','yxjHBxm','x2rHDgu','Aw1L','BMfTzq','we9WCLO','C3rHCNq','ChjPB3i','BNvTyMu','DhL4v3a','C2TZ','Ag96Aei','AxmGCMu','zxnJCMK','B25L','BvvMBM8','mte5nZm4nhP5sKLAuq','BMvLCW','yxnZAwC','Awv6r3q','mJa1nZKWmM5osMj6rW','Axb0Aw8','Bv9MAwu','BgvUz3q','yKj6CeW','zcb0BYa','BNfMBxC','igfZC2K','C2LNBMu','A2v5CW','zxn0Aw0','Dg9tDhi','s0HhrxO','B3DUx2q','tKXwwNq','yMrStfy','zhvLx2q','tgnfrxG','yuLzC3i','DgfZA3m','DfvJyu0','Bwf0y2G','yxrL','D2fYBG','DejVDLK','v1rwD2W','DgLTzv8','mtq0nJG0ovvuCePkAa','qKvdCxK','BwfW','ChvZAa','q3PSqMe','ihn0CMK','tMfTzq','B3jKzxi','CMvWBge','rgf0zq','zhvLrge','z25Lzxm','zgvZy3i','BwvZC2e','C3rHDhu','EePzwgy','CM91BMq','Bv90yxm','ywXS','sMHSCgC','B3DUx2m','C3vIDge','z3z6Dw4','CMvZB2W','CgfYzw4','ngzzCvfywq','zxfmr0C','wK1vv1i','ug5mzu0','CgfYC2u','BwuGyxm','CxvPCMu','DgPztxm','nfvNu0DMBG','ndm3mZiWoer1uM5ABG','DgvZDa','y29UDgu','y2vPBa','B250zw4','yxrLx3q','v2fuy0u','BwfYA2q','x2j5','CMv2zxi','DgLTzxO','ChrPB24','BgrZ','yNPuAgC','mtu4otC0rgPXyM1W','y3vZDg8','BNDoBM0','rMfPBgu'];a0_0x3e1a=function(){return _0x30ea8a;};return a0_0x3e1a();}export{parseDueDate,parseFilterDate,hasExplicitTime};import{validateListIdentification,resolveListIdWithValidation,getTaskId}from'./utilities.js';import{resolveMember}from'../../utils/resolver-utils.js';import{Logger}from'../../logger.js';const logger=new Logger(a0_0x4341db(0x111)+a0_0x4341db(0x113));function unescapeString(_0x1a9011){const _0x4f4893=a0_0x4341db;return _0x1a9011?_0x1a9011[_0x4f4893(0xd8)+'ce'](/\\n/g,'\x0a')[_0x4f4893(0xd8)+'ce'](/\\t/g,'\x09')['repla'+'ce'](/\\r/g,'\x0d'):_0x1a9011;}export const WORKSPACE_TASKS_TOKEN_LIMIT=0xc350;export function parseTimeEstimate(_0x31840f){const _0x566d48=a0_0x4341db,_0x58c92a={'nqfmw':function(_0x57e30b,_0x51cbe7){return _0x57e30b===_0x51cbe7;},'XOprZ':'numbe'+'r','uqlKE':function(_0x24ed71,_0x4a20db){return _0x24ed71*_0x4a20db;},'Jhlpg':function(_0x52e00c,_0x33470e){return _0x52e00c(_0x33470e);},'tjYMs':function(_0x40778f,_0x223ebb){return _0x40778f&&_0x223ebb;},'bdlLV':function(_0x561b00,_0x35e050){return _0x561b00*_0x35e050;}};if(_0x31840f===undefined)return undefined;if(_0x31840f===null||_0x31840f==='null')return null;if(_0x58c92a[_0x566d48(0x12c)](typeof _0x31840f,_0x58c92a[_0x566d48(0x117)]))return _0x58c92a[_0x566d48(0x10f)](_0x31840f,0x3c)*0x3e8;const _0x21f21a=_0x31840f['trim']();if(_0x21f21a==='')return undefined;if(/^\d+(\.\d+)?$/[_0x566d48(0xf3)](_0x21f21a))return Math[_0x566d48(0xe0)](_0x58c92a[_0x566d48(0x10f)](parseFloat(_0x21f21a),0x3c)*0x3e8);let _0x38b2ee=0x0;const _0x113181=_0x21f21a[_0x566d48(0xca)](/(\d+\.?\d*)h/);_0x113181&&(_0x38b2ee+=_0x58c92a[_0x566d48(0xe3)](parseFloat,_0x113181[0x1])*0x3c);const _0x5d0e3c=_0x21f21a['match'](/(\d+)m/);_0x5d0e3c&&(_0x38b2ee+=parseInt(_0x5d0e3c[0x1],0xa));if(_0x58c92a[_0x566d48(0xf0)](!_0x113181,!_0x5d0e3c))return undefined;return Math['round'](_0x58c92a[_0x566d48(0xc4)](_0x38b2ee,0x3c)*0x3e8);}export async function resolveAssignees(_0x556358,_0x24c559){const _0x4bd3c6=a0_0x4341db,_0x29f9af={'PnLeM':function(_0x2bc112,_0x3aa0f4){return _0x2bc112===_0x3aa0f4;},'ZMUWR':_0x4bd3c6(0x106)+'g','nwNnm':function(_0x49eb96,_0x505f31){return _0x49eb96>_0x505f31;},'WMtkT':function(_0x4506c0,_0xda7185){return _0x4506c0!==_0xda7185;},'tBovY':function(_0x3d0b8e,_0x1807f3){return _0x3d0b8e(_0x1807f3);},'bBzpL':_0x4bd3c6(0x103)+_0x4bd3c6(0x12b)+_0x4bd3c6(0xe7)+'ve\x20so'+_0x4bd3c6(0xee)+_0x4bd3c6(0xbd)+'es'};if(!_0x556358||!Array[_0x4bd3c6(0x108)+'ay'](_0x556358)||_0x29f9af[_0x4bd3c6(0xec)](_0x556358[_0x4bd3c6(0x129)+'h'],0x0))return[];const _0x3ed3a0=[],_0x38cdaf=[];for(const _0x50e95b of _0x556358){if(typeof _0x50e95b===_0x4bd3c6(0x11a)+'r')_0x3ed3a0[_0x4bd3c6(0xd3)](_0x50e95b);else{if(typeof _0x50e95b===_0x29f9af[_0x4bd3c6(0xeb)]){const _0x4e8910=parseInt(_0x50e95b,0xa);!isNaN(_0x4e8910)&&_0x4e8910[_0x4bd3c6(0xc0)+_0x4bd3c6(0x109)]()===_0x50e95b?_0x3ed3a0['push'](_0x4e8910):_0x38cdaf[_0x4bd3c6(0xd3)](_0x50e95b);}}}if(_0x29f9af[_0x4bd3c6(0x102)](_0x38cdaf[_0x4bd3c6(0x129)+'h'],0x0))try{const _0x5c82ed=await Promise[_0x4bd3c6(0xe2)](_0x38cdaf['map'](async _0xf14d58=>{const _0x1fbd49=_0x4bd3c6;try{const _0x261ede=await resolveMember(_0xf14d58,_0x24c559['works'+_0x1fbd49(0x10c)]);return Number(_0x261ede['id']);}catch(_0x419718){return null;}}));for(const _0x34e864 of _0x5c82ed){_0x29f9af['WMtkT'](_0x34e864,null)&&!_0x29f9af[_0x4bd3c6(0xcd)](isNaN,_0x34e864)&&_0x3ed3a0[_0x4bd3c6(0xd3)](_0x34e864);}}catch(_0x14ded5){logger[_0x4bd3c6(0xcc)](_0x29f9af[_0x4bd3c6(0x12a)],{'error':_0x14ded5['messa'+'ge']});}return _0x3ed3a0;}export async function prepareCreateTaskData(_0x4ed2cc,_0x299cd5){const _0x2b60d1=a0_0x4341db,_0x22e06b={'CzlBa':'Task\x20'+_0x2b60d1(0x10d)+_0x2b60d1(0x11e)+_0x2b60d1(0xef)+'d','NLVZt':function(_0x1caf08,_0x174eeb){return _0x1caf08&&_0x174eeb;},'KvLwS':function(_0x5f493f,_0x1b9edf){return _0x5f493f===_0x1b9edf;},'YkejG':_0x2b60d1(0x103)+'d\x20to\x20'+'parse'+'\x20assi'+_0x2b60d1(0xdb)+_0x2b60d1(0xd5)+'ng','KHGEz':function(_0x1b1120,_0x59f98c){return _0x1b1120(_0x59f98c);},'sGPjK':function(_0x4fcc23,_0x1b0c6f){return _0x4fcc23(_0x1b0c6f);},'sSEtU':function(_0x586009,_0x1940ab){return _0x586009!==_0x1940ab;}},{name:_0x204138,description:_0x5cdc07,markdown_description:_0x263ef0,status:_0x39ce1d,dueDate:_0x19192e,startDate:_0x5eab09,time_estimate:_0x2105c9,parent:_0x198743,parentName:_0x46e79b,parentListName:_0x4103cb,tags:_0x56712f,custom_fields:_0x267c5c,check_required_custom_fields:_0x5c0e52,assignees:_0xbef7b9,custom_task_type:_0x39bbce,subtasks:_0x23c2f5}=_0x4ed2cc;if(!_0x204138)throw new Error(_0x22e06b[_0x2b60d1(0xd4)]);let _0x2d480d=_0x198743;_0x22e06b[_0x2b60d1(0xc3)](!_0x2d480d,_0x46e79b)&&(_0x2d480d=await getTaskId(undefined,undefined,_0x46e79b,_0x4103cb,undefined,![],_0x299cd5));let _0xc75537=undefined;if(_0xbef7b9){let _0x3c2702=_0xbef7b9;if(_0x22e06b['KvLwS'](typeof _0xbef7b9,_0x2b60d1(0x106)+'g'))try{_0x3c2702=JSON[_0x2b60d1(0xed)](_0xbef7b9);}catch(_0x18db06){logger[_0x2b60d1(0xcc)](_0x22e06b['YkejG'],{'assignees':_0xbef7b9,'error':_0x18db06[_0x2b60d1(0xdd)+'ge']}),_0x3c2702=[];}_0xc75537=await resolveAssignees(_0x3c2702,_0x299cd5);}const _0x4af7f0={'name':_0x204138,'description':unescapeString(_0x5cdc07),'markdown_description':_0x22e06b[_0x2b60d1(0xc1)](unescapeString,_0x263ef0),'status':_0x39ce1d,'parent':_0x2d480d,'tags':_0x56712f,'custom_fields':_0x267c5c,'check_required_custom_fields':_0x5c0e52,'assignees':_0xc75537,'custom_task_type':_0x39bbce},_0x493063=toTaskPriority(_0x4ed2cc[_0x2b60d1(0x119)+'ity']);return _0x493063!==undefined&&(_0x4af7f0[_0x2b60d1(0x119)+'ity']=_0x493063),_0x19192e&&(_0x4af7f0[_0x2b60d1(0xc5)+_0x2b60d1(0xcb)]=parseDueDate(_0x22e06b[_0x2b60d1(0xc1)](String,_0x19192e),undefined,_0x299cd5[_0x2b60d1(0xfc)+_0x2b60d1(0x120)]),_0x4af7f0[_0x2b60d1(0xc5)+'ate_t'+_0x2b60d1(0x115)]=hasExplicitTime(_0x22e06b['sGPjK'](String,_0x19192e))),_0x5eab09&&(_0x4af7f0[_0x2b60d1(0x118)+_0x2b60d1(0x114)]=parseDueDate(String(_0x5eab09),undefined,_0x299cd5[_0x2b60d1(0xfc)+'one']),_0x4af7f0[_0x2b60d1(0x118)+_0x2b60d1(0x114)+_0x2b60d1(0x107)]=hasExplicitTime(String(_0x5eab09))),_0x22e06b['sSEtU'](_0x2105c9,undefined)&&(_0x4af7f0['time_'+_0x2b60d1(0xbf)+_0x2b60d1(0xcb)]=parseTimeEstimate(_0x2105c9)),_0x23c2f5&&Array[_0x2b60d1(0x108)+'ay'](_0x23c2f5)&&_0x23c2f5[_0x2b60d1(0x129)+'h']>0x0&&(_0x4af7f0[_0x2b60d1(0xe5)+_0x2b60d1(0x11c)]=await Promise[_0x2b60d1(0xe2)](_0x23c2f5[_0x2b60d1(0xd2)](_0x4f97e7=>prepareCreateTaskData(_0x4f97e7,_0x299cd5)))),_0x4af7f0;}export async function buildUpdateData(_0x526c06,_0x3d4e9c){const _0x49aebf=a0_0x4341db,_0xe7f59c={'xJYXf':function(_0x4dc218,_0xf086cc){return _0x4dc218!==_0xf086cc;},'mUfno':function(_0x3552b6,_0x41823f){return _0x3552b6(_0x41823f);},'LcEEx':function(_0x3c1c17,_0x5af618){return _0x3c1c17(_0x5af618);},'WaTcE':function(_0x46e40c,_0x4c0a89){return _0x46e40c!==_0x4c0a89;},'eqLGG':function(_0x18e48e,_0x2fc127){return _0x18e48e!==_0x2fc127;},'tUcaM':function(_0x4b95d,_0x5f4d4e){return _0x4b95d!==_0x5f4d4e;},'WTVwl':function(_0xef845d,_0x155431){return _0xef845d(_0x155431);},'gvzun':function(_0x4be809,_0x33d7db){return _0x4be809===_0x33d7db;},'iezGt':function(_0x5ca5ff,_0x49e006,_0x3d07e8){return _0x5ca5ff(_0x49e006,_0x3d07e8);},'Arnkv':function(_0x1fb1a3,_0x641585){return _0x1fb1a3!==_0x641585;}},_0x4b0d45={};if(_0x526c06[_0x49aebf(0x116)]!==undefined)_0x4b0d45['name']=_0x526c06[_0x49aebf(0x116)];if(_0x526c06[_0x49aebf(0xdc)+'iptio'+'n']!==undefined){const _0x334a2e=unescapeString(_0x526c06[_0x49aebf(0xdc)+'iptio'+'n']);_0x4b0d45[_0x49aebf(0xdc)+_0x49aebf(0x127)+'n']=_0x334a2e,_0x4b0d45[_0x49aebf(0xf9)+_0x49aebf(0xe4)+_0x49aebf(0xf6)+'t']=_0x334a2e,_0x4b0d45[_0x49aebf(0xf9)+'own_d'+'escri'+_0x49aebf(0xfd)]=_0x334a2e;}if(_0xe7f59c['xJYXf'](_0x526c06[_0x49aebf(0xf9)+'own_d'+'escri'+_0x49aebf(0xfd)],undefined))_0x4b0d45[_0x49aebf(0xf9)+_0x49aebf(0xc2)+_0x49aebf(0x11f)+_0x49aebf(0xfd)]=unescapeString(_0x526c06[_0x49aebf(0xf9)+'own_d'+_0x49aebf(0x11f)+_0x49aebf(0xfd)]);if(_0xe7f59c['xJYXf'](_0x526c06['markd'+_0x49aebf(0xe4)+_0x49aebf(0xf6)+'t'],undefined))_0x4b0d45[_0x49aebf(0xf9)+_0x49aebf(0xe4)+_0x49aebf(0xf6)+'t']=_0x526c06[_0x49aebf(0xf9)+'own_c'+_0x49aebf(0xf6)+'t'];if(_0xe7f59c[_0x49aebf(0xdf)](_0x526c06['statu'+'s'],undefined))_0x4b0d45[_0x49aebf(0xde)+'s']=_0x526c06[_0x49aebf(0xde)+'s'];if(_0x526c06['custo'+_0x49aebf(0xe1)+'k_typ'+'e']!==undefined)_0x4b0d45[_0x49aebf(0x101)+_0x49aebf(0xe1)+_0x49aebf(0x104)+'e']=_0x526c06[_0x49aebf(0x101)+_0x49aebf(0xe1)+_0x49aebf(0x104)+'e'];_0xe7f59c[_0x49aebf(0xdf)](_0x526c06[_0x49aebf(0x119)+_0x49aebf(0x112)],undefined)&&(_0x4b0d45['prior'+'ity']=_0xe7f59c[_0x49aebf(0x121)](toTaskPriority,_0x526c06[_0x49aebf(0x119)+_0x49aebf(0x112)]));if(_0x526c06[_0x49aebf(0xda)+'te']!==undefined){const _0x305025=parseDueDate(_0xe7f59c[_0x49aebf(0xc6)](String,_0x526c06[_0x49aebf(0xda)+'te']),undefined,_0x3d4e9c['timez'+_0x49aebf(0x120)]);_0x305025!==undefined?(_0x4b0d45[_0x49aebf(0xc5)+_0x49aebf(0xcb)]=_0x305025,_0x4b0d45[_0x49aebf(0xc5)+_0x49aebf(0xf7)+'ime']=_0xe7f59c[_0x49aebf(0x121)](hasExplicitTime,_0xe7f59c[_0x49aebf(0x121)](String,_0x526c06['dueDa'+'te']))):(_0x4b0d45[_0x49aebf(0xc5)+_0x49aebf(0xcb)]=null,_0x4b0d45[_0x49aebf(0xc5)+_0x49aebf(0xf7)+_0x49aebf(0x115)]=![]);}if(_0xe7f59c[_0x49aebf(0xf8)](_0x526c06[_0x49aebf(0x118)+'Date'],undefined)){const _0x22485f=parseDueDate(String(_0x526c06[_0x49aebf(0x118)+_0x49aebf(0xd9)]),undefined,_0x3d4e9c[_0x49aebf(0xfc)+_0x49aebf(0x120)]);_0xe7f59c[_0x49aebf(0xea)](_0x22485f,undefined)?(_0x4b0d45[_0x49aebf(0x118)+_0x49aebf(0x114)]=_0x22485f,_0x4b0d45['start'+_0x49aebf(0x114)+_0x49aebf(0x107)]=_0xe7f59c['mUfno'](hasExplicitTime,_0xe7f59c[_0x49aebf(0xc6)](String,_0x526c06[_0x49aebf(0x118)+'Date']))):(_0x4b0d45[_0x49aebf(0x118)+'_date']=null,_0x4b0d45[_0x49aebf(0x118)+_0x49aebf(0x114)+_0x49aebf(0x107)]=![]);}if(_0xe7f59c[_0x49aebf(0xc9)](_0x526c06[_0x49aebf(0xcf)+_0x49aebf(0xbf)+_0x49aebf(0xcb)],undefined)){const _0x5baab4=_0xe7f59c[_0x49aebf(0xce)](parseTimeEstimate,_0x526c06[_0x49aebf(0xcf)+_0x49aebf(0xbf)+'ate']);_0x4b0d45[_0x49aebf(0xcf)+'estim'+_0x49aebf(0xcb)]=_0x5baab4;}_0xe7f59c[_0x49aebf(0xdf)](_0x526c06['custo'+'m_fie'+'lds'],undefined)&&(_0x4b0d45[_0x49aebf(0x101)+_0x49aebf(0x128)+_0x49aebf(0xfe)]=_0x526c06[_0x49aebf(0x101)+_0x49aebf(0x128)+_0x49aebf(0xfe)]);if(_0x526c06[_0x49aebf(0x124)+_0x49aebf(0x123)]!==undefined){let _0x5cae79=_0x526c06[_0x49aebf(0x124)+_0x49aebf(0x123)];if(_0xe7f59c[_0x49aebf(0xe6)](typeof _0x526c06['assig'+'nees'],_0x49aebf(0x106)+'g'))try{_0x5cae79=JSON[_0x49aebf(0xed)](_0x526c06['assig'+_0x49aebf(0x123)]);}catch(_0x54e247){logger['warn'](_0x49aebf(0x103)+'d\x20to\x20'+'parse'+_0x49aebf(0x12d)+_0x49aebf(0xdb)+'\x20stri'+'ng',{'assignees':_0x526c06['assig'+_0x49aebf(0x123)],'error':_0x54e247[_0x49aebf(0xdd)+'ge']}),_0x5cae79=[];}const _0x3d35fb=await _0xe7f59c[_0x49aebf(0x125)](resolveAssignees,_0x5cae79,_0x3d4e9c);_0x4b0d45[_0x49aebf(0x124)+_0x49aebf(0x123)]=_0x3d35fb;}if(_0xe7f59c['Arnkv'](_0x526c06[_0x49aebf(0xe8)+'t'],undefined))_0x4b0d45[_0x49aebf(0xe8)+'t']=_0x526c06[_0x49aebf(0xe8)+'t'];else{if(_0x526c06[_0x49aebf(0xe8)+_0x49aebf(0x10b)]!==undefined){const _0x154dbf=await getTaskId(undefined,undefined,_0x526c06[_0x49aebf(0xe8)+_0x49aebf(0x10b)],_0x526c06['paren'+'tList'+_0x49aebf(0xd6)],undefined,![],_0x3d4e9c);_0x4b0d45[_0x49aebf(0xe8)+'t']=_0x154dbf;}}return _0x4b0d45;}export async function getListId(_0x468274,_0x466246,_0x4ce757){const _0x55ab4d=a0_0x4341db,_0x44a41c={'bzThg':function(_0x3e59f0,_0x2dce3a,_0x313f03){return _0x3e59f0(_0x2dce3a,_0x313f03);},'aIYsr':function(_0x45db51,_0x7afb7b,_0x12b6d0,_0xb54af8){return _0x45db51(_0x7afb7b,_0x12b6d0,_0xb54af8);}};return _0x44a41c[_0x55ab4d(0xff)](validateListIdentification,_0x468274,_0x466246),await _0x44a41c[_0x55ab4d(0xc7)](resolveListIdWithValidation,_0x468274,_0x466246,_0x4ce757);}export function buildTaskFilters(_0x444db3){const _0xcf49c0=a0_0x4341db,_0x53c328={'hozhB':function(_0x4e4e59,_0x3ae9fc){return _0x4e4e59!==_0x3ae9fc;},'Bilzz':function(_0x5c4e5b,_0x326363){return _0x5c4e5b!==_0x326363;}},{subtasks:_0x1dfe4f,statuses:_0x4a2624,page:_0x4b95d7,order_by:_0x231822,reverse:_0x58dabc,custom_task_types:_0x2a0541}=_0x444db3,_0x3b2fe8={};if(_0x1dfe4f!==undefined)_0x3b2fe8[_0xcf49c0(0xe5)+_0xcf49c0(0x11c)]=_0x1dfe4f;if(_0x53c328['hozhB'](_0x4a2624,undefined))_0x3b2fe8[_0xcf49c0(0xde)+'ses']=_0x4a2624;if(_0x4b95d7!==undefined)_0x3b2fe8['page']=_0x4b95d7;if(_0x53c328[_0xcf49c0(0x11d)](_0x231822,undefined))_0x3b2fe8[_0xcf49c0(0xd7)+_0xcf49c0(0xfa)]=_0x231822;if(_0x53c328['hozhB'](_0x58dabc,undefined))_0x3b2fe8[_0xcf49c0(0xfb)+'se']=_0x58dabc;if(_0x53c328['Bilzz'](_0x2a0541,undefined))_0x3b2fe8[_0xcf49c0(0x101)+_0xcf49c0(0xe1)+_0xcf49c0(0x104)+'es']=_0x2a0541;return _0x3b2fe8;}export function estimateTaskResponseTokens(_0x24fb1b){const _0x106bf1=a0_0x4341db,_0x4efc8a={'BECqy':function(_0x3dd1fd,_0x48e534){return _0x3dd1fd/_0x48e534;},'tyxWp':function(_0x40d239,_0x5cf9a5){return _0x40d239*_0x5cf9a5;}};let _0x175f10=0x0;return _0x175f10+=(_0x24fb1b['name']?.[_0x106bf1(0x129)+'h']||0x0)/0x4,_0x175f10+=_0x4efc8a[_0x106bf1(0xd1)](_0x24fb1b['descr'+_0x106bf1(0x127)+'n']?.['lengt'+'h']||0x0,0x4),_0x175f10+=(_0x24fb1b[_0x106bf1(0x105)+_0x106bf1(0xf4)+'nt']?.['lengt'+'h']||0x0)/0x4,_0x175f10+=0x5,_0x24fb1b['custo'+_0x106bf1(0x128)+'lds']&&(_0x175f10+=_0x4efc8a[_0x106bf1(0x11b)](Object[_0x106bf1(0xbe)](_0x24fb1b[_0x106bf1(0x101)+_0x106bf1(0x128)+_0x106bf1(0xfe)])[_0x106bf1(0x129)+'h'],0xa)),_0x175f10*=1.1,Math[_0x106bf1(0xf5)](_0x175f10);}export function wouldExceedTokenLimit(_0x6069df){const _0x232df3=a0_0x4341db;if(!_0x6069df[_0x232df3(0xc8)]?.[_0x232df3(0x129)+'h'])return![];const _0x4125a5=_0x6069df['tasks'][_0x232df3(0x10e)+'e']((_0x3395e2,_0x526198)=>_0x3395e2+estimateTaskResponseTokens(_0x526198),0x0),_0x26fb6e=_0x4125a5*1.1;return _0x26fb6e>WORKSPACE_TASKS_TOKEN_LIMIT;}