var Route = require('src/common/route');
var IndexView = require('./view');
var GraphView = require('../graph/view');
var SessionsAView = require('../sessions-a/view');
var SessionsBView = require('../sessions-b/view');

module.exports = Route.extend({
  initialize: function(options) {
    this.layout = options.layout;
  },

  render: function() {
    this.indexView = new IndexView();
    this.sessionsAView = new SessionsAView();
    this.sessionsBView = new SessionsBView();
    this.graphView = new GraphView();
    this.layout.mainRegion.show(this.indexView);
    this.layout.sessionsARegion.show(this.sessionsAView);
    this.layout.sessionsBRegion.show(this.sessionsBView);
    this.layout.graphRegion.show(this.graphView);
  }
});
