Object.defineProperty(exports, "__esModule", { value: true });
var axios_1 = require("axios");
module.exports = function (api) {
    api.registerAction('startStopVideo', require('./actions/startStopVideo'));
    api.registerAction('muteUnmuteAudio', require('./actions/muteUnmuteAudio'));
    api.registerAction('startStopScreenshare', require('./actions/startStopScreenshare'));
    api.registerAction('enterExitFullscreen', require('./actions/enterExitFullscreen'));
    api.registerAction('switchToSpeakerView', require('./actions/switchToSpeakerView'));
    api.registerAction('switchToGalleryView', require('./actions/switchToGalleryView'));
    api.registerAction('muteEveryoneExceptSelf', require('./actions/muteEveryoneExceptSelf'));
    api.registerAction('screenshot', require('./actions/screenshot'));
    api.registerConnectionValidator('zoom-bridge', function (validatorAPI) {
        if (validatorAPI.properties.ip != undefined && validatorAPI.properties.port != undefined) {
            axios_1.default
                .get("http://".concat(validatorAPI.properties.ip, ":").concat(validatorAPI.properties.port, "/v1/ping"))
                .then(function () {
                validatorAPI.callback(true);
            })
                .catch(function () {
                validatorAPI.callback(false, 'Unable to reach Zoom-Bridge');
            });
        }
        else
            validatorAPI.callback(false, 'No ip or port specified');
    });
};
//# sourceMappingURL=zoom.js.map