"use strict";
/*************************************************************************
 *
 * Troven CONFIDENTIAL
 * __________________
 *
 *  (c) 2017-2020 Troven Pty Ltd
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Troven Pty Ltd and its licensors,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Troven Pty Ltd
 * and its suppliers and may be covered by International and Regional Patents,
 * patents in process, and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Troven Pty Ltd.
 */
Object.defineProperty(exports, "__esModule", { value: true });
const api_service_core_1 = require("api-service-core");
const _ = require("lodash");
// import * as handlebars from 'express-handlebars'
class Markdown {
    constructor() {
        this.name = "api.mdd";
        this.title = "Data Dictionary";
    }
    fn(operation, _options) {
        let options = _.extend({ request: {} }, _options);
        let context = operation.context;
        return function (req, res, _next) {
            try {
                api_service_core_1.APIs.request(context, "", options.request).then(results => {
                    false && results;
                });
            }
            catch (err) {
                context.error({ code: "plugin:mdd:failed", message: err.message, path: req.path, params: req.params });
                res.status(500);
                res.send({ code: "plugin:mdd:failed", message: err.message, path: req.path, params: req.params });
            }
        };
    }
}
exports.default = Markdown;
;
//# sourceMappingURL=MDD.js.map