angular.module('EssayApp.services') .factory('UploaderManager', ["$http", "$q", ($http, $q) -> api = {} api.THEMES = DEFAULT: 'default' WEB_ONLY: 'only_web' WEB_FILES: 'web_and_files' api.theme = api.THEMES.DEFAULT api.isCurrent = (theme)-> theme? && (api.theme == theme) api.toggleTheme = (theme)-> api.theme = theme if theme? return api ])