{:uriI"file:///Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/resources/profile-answer-resource.js?type=application/javascript&pipeline=self&id=7ed02d501f8268c222a6557342586dbfcafcef918cc8871ee68c912bcab76b5c:ET:load_pathI"T/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts;T: filenameI"/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/resources/profile-answer-resource.js;T: nameI"8social_networking/resources/profile-answer-resource;T:logical_pathI"@social_networking/resources/profile-answer-resource.self.js;T:content_typeI"application/javascript;T: sourceI";(function() { 'use strict'; function ProfileAnswers($resource) { var ProfileAnswerResource = $resource('/social_networking/profile_answers/:id', { id: '@id' }); function ProfileAnswer() {} ProfileAnswer.getAll = function() { return ProfileAnswerResource.query().$promise; }; ProfileAnswer.getOne = function(profile_id, profile_question_id) { return ProfileAnswerResource.get({ profile_id: profile_id, profile_question_id: profile_question_id }).$promise; }; // Persist a Goal to the server. ProfileAnswer.create = function(attributes) { var answer = new ProfileAnswerResource({ profile_id: attributes.profile_id, profile_question_id: attributes.profile_question_id, answer_text: attributes.answer_text || "" }); return answer.$save(); }; // Update a Goal on the server. ProfileAnswer.update = function(attributes) { var answer = new ProfileAnswerResource({ id: attributes.id, profile_id: attributes.profile_id, profile_question_id: attributes.profile_question_id, answer_text: attributes.answer_text || "" }); return answer.$save(); }; return ProfileAnswer; } angular.module('socialNetworking.services') .service('ProfileAnswers', ['$resource', ProfileAnswers]); })(); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"file-digest:///Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/resources/profile-answer-resource.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%*jA*QMt8~:Al3(+S: lengthi:dependencies_digest"%8_20e?'l_auV:idI"E7ed02d501f8268c222a6557342586dbfcafcef918cc8871ee68c912bcab76b5c;F: mtimel+U