3 var Promise
= require('bluebird');
4 var userSettingsService
= require('gitter-web-user-settings');
6 module
.exports
= Promise
.method(function getSnapshotsForPageContext(req
) {
7 if (!req
.user
) return {};
9 return userSettingsService
.getUserSettings(req
.user
._id
, 'userTheme').then(function(result
) {