{I" class:ETI"BundledAsset;FI"logical_path;TI";social_networking/resources/profile-answer-resource.js;FI" pathname;TI"†/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/resources/profile-answer-resource.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+¢¿UI" length;TiÙI" digest;TI"%1c016c9258fddf265b8a2a2095063657;FI" source;TI"Ù;(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]); })(); ;TI"required_assets_digest;TI"%439e90c72823260e36ee9c2894409bff;FI" _version;TI"%069e88c06b889877799890854d7f4c40;F