{"size": 763, "ext": "js", "max_stars_repo_path": "@raptorjs-production/orm/DevPanel.js", "max_stars_repo_name": "williamamed/Raptor.js", "max_stars_repo_stars_event_min_datetime": "2017-05-04T16:25:35.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-09T23:00:54.000Z", "max_issues_repo_path": "@raptorjs-production/orm/DevPanel.js", "max_issues_repo_name": "williamamed/Raptor.js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "@raptorjs-production/orm/DevPanel.js", "max_forks_repo_name": "williamamed/Raptor.js", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.4411764706, "max_line_length": 118, "alphanum_fraction": 0.5491480996}
const path=require('path')
class DevPanel{

    constructor(){
        
        this.configure()
        var Model=require('./Services/ModelV2');
        new Model()
        .init()
        var config=require('./Services/Config');
        new config()
        .init();
        
    }

    /**
     * @Injectable
     */
    configure(router){
        router.use(function(req,res,next){
            req.viewPlugin.set('raptorpanel_sidebar_main',R.template(path.join(__dirname,'Views/sidebar.ejs')))
            next()
        })
    }

    /**
     * @Event("artefacts:ready",type="once")
     */
    onReady(){
        R.bundles['templates-gen'].manifest.technologies['Sequelize-ORM'] = require(path.join(__dirname, 'Artefacts'))
    }

}
module.exports=DevPanel;