{:uriI"file://app/assets/javascripts/services/SurveyService.js?type=application/javascript&pipeline=self&id=037e9a467e82d1870c7a3ea5727b0fd1e7251839c812677c4e4391d93772d770:ET:load_pathI"app/assets/javascripts;T: filenameI"5app/assets/javascripts/services/SurveyService.js;T: nameI"services/SurveyService;T:logical_pathI"#services/SurveyService.self.js;T:content_typeI"application/javascript;T: sourceI" testApp.constant('SURVEY_EVENTS', { create: 'create', update: 'update', destroy: 'destroy', }) testApp.factory('Survey', ['$rootScope', 'SURVEY_EVENTS', 'ApiAdapter', function($rootScope, SURVEY_EVENTS, ApiAdapter) { ApiAdapter.addRoute( "get_surveys", "/surveys" ); ApiAdapter.addRoute( "get_survey", "/surveys/{surveyId}" ); ApiAdapter.addRoute( "create_survey", "/surveys", { "type": "POST", "processData": false, "contentType": "application/json", "success": function(result) { $rootScope.$broadcast(SURVEY_EVENTS.create, result.response); } } ); ApiAdapter.addRoute( "update_survey", "/surveys/{surveyId}", { "type": "PUT", "processData": false, "contentType": "application/json", "success": function(result) { $rootScope.$broadcast(SURVEY_EVENTS.update, result.response); } } ); ApiAdapter.addRoute( "delete_survey", "/surveys/{surveyId}", { "type": "DELETE", "success": function(result) { $rootScope.$broadcast(SURVEY_EVENTS.destroy, result); } } ); return { get: function(params, args, noCache) { return ApiAdapter.execute("get_survey", params, args, ((typeof(noCache) != "boolean")? true : noCache)); }, index: function(params, args, noCache) { return ApiAdapter.execute("get_surveys", params, args, ((typeof(noCache) != "boolean")? true : noCache)); }, create: function(params, args, noCache) { return ApiAdapter.execute("create_survey", params, args, ((typeof(noCache) != "boolean")? true : noCache)); }, update: function(params, args, noCache) { return ApiAdapter.execute("update_survey", params, args, ((typeof(noCache) != "boolean")? true : noCache)); }, destroy: function(params, args, noCache) { return ApiAdapter.execute("delete_survey", params, args, ((typeof(noCache) != "boolean")? true : noCache)); } }; } ]); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"Cfile-digest://app/assets/javascripts/services/SurveyService.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%+شiǢTTȷsI/>62ØUsO`?: lengthi:dependencies_digest"%QShq9RJs |l{s:idI"E037e9a467e82d1870c7a3ea5727b0fd1e7251839c812677c4e4391d93772d770;F: mtimel+THV