#include "script_component.hpp" if (isNil QGVAR(CADRepository)) then { call FUNC(initRepository); }; if (isNil QGVAR(CADUIBridge)) then { call FUNC(initUIBridge); }; [QGVAR(openCAD), { call FUNC(openUI); }] call CFUNC(addEventHandler); [QGVAR(responseTaskCatalog), { params [["_entries", [], [[]]]]; if !(isNil QGVAR(CADRepository)) then { GVAR(CADRepository) call ["setTaskCatalog", [_entries]]; }; GVAR(CADUIBridge) call ["refreshTaskCatalog", []]; }] call CFUNC(addEventHandler); [QGVAR(responseTaskAccept), { params [["_result", createHashMap, [createHashMap]]]; GVAR(CADUIBridge) call ["handleTaskAcceptResponse", [_result]]; }] call CFUNC(addEventHandler);