bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/methods.js
2017-03-10 18:33:46 +00:00

20 lines
642 B
JavaScript

import { Meteor } from 'meteor/meteor';
import kickUser from './methods/kickUser';
import listenOnlyToggle from './methods/listenOnlyToggle';
import userLogout from './methods/userLogout';
import assignPresenter from './methods/assignPresenter';
import muteToggle from './methods/muteToggle';
import setEmojiStatus from './methods/setEmojiStatus';
import validateAuthToken from './methods/validateAuthToken';
Meteor.methods({
kickUser,
listenOnlyToggle,
userLogout,
assignPresenter,
setEmojiStatus,
validateAuthToken,
muteUser: (...args) => muteToggle(...args, true),
unmuteUser: (...args) => muteToggle(...args, false),
});