3 var onready = require('./utils/onready');
4 var context = require('gitter-web-client-context');
5 var chatCollection = require('./collections/instances/chats');
6 var EmbedLayout = require('./views/layouts/chat-embed');
7 var Backbone = require('backbone');
8 var Router = require('./routes/router');
9 var roomRoutes = require('./routes/room-routes');
10 var notificationRoutes = require('./routes/notification-routes');
12 /* Set the timezone cookie */
13 require('./components/timezone-cookie');
15 require('./components/statsc');
16 require('./views/widgets/preload');
17 require('./components/dozy');
18 require('./template/helpers/all');
19 require('./components/bug-reporting');
20 require('./components/ping');
23 require('./views/widgets/avatar');
26 var appView = new EmbedLayout({
28 model: context.troupe(),
30 chatCollection: chatCollection
35 dialogRegion: appView.dialogRegion,
39 rosterCollection: null,
40 // TODO: remove these two options:
41 // https://github.com/troupe/gitter-webapp/issues/2211
48 Backbone.history.start();