Add reorganize attendees service

Signed-off-by: Marco <marcoambrosini@icloud.com>
This commit is contained in:
Marco 2023-02-13 14:24:51 +01:00
Родитель 631db65497
Коммит e834b18a71
1 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -40,6 +40,22 @@ const configureBreakoutRooms = async function(token, mode, amount, attendeeMap)
}) })
} }
/**
* Resets the request assistance
*
* @param token the breakout room token
* @param attendeeMap A json encoded Map of attendeeId => room number (0 based)
* @return {Promise<AxiosResponse<any>>} The array of conversations
*/
const reorganizeAttendees = async function(token, attendeeMap) {
return await axios.post(generateOcsUrl('/apps/spreed/api/v1/breakout-rooms/{token}/attendees', {
token,
}), {
attendeeMap,
}
)
}
/** /**
* Deletes all breakout rooms for a given conversation * Deletes all breakout rooms for a given conversation
* *
@ -133,6 +149,7 @@ const resetRequestAssistance = async function(token) {
export { export {
configureBreakoutRooms, configureBreakoutRooms,
reorganizeAttendees,
deleteBreakoutRooms, deleteBreakoutRooms,
getBreakoutRooms, getBreakoutRooms,
startBreakoutRooms, startBreakoutRooms,