{I" class:ETI"BundledAsset;FI"logical_path;TI"5social_networking/resources/profiles-resource.js;FI" pathname;TI"v/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/resources/profiles-resource.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+æ#\TI" length;TiÐI" digest;TI"%58696e4762a4b9bae1445bc1c7688e36;FI" source;TI"Ð;(function() { 'use strict'; function Profiles($resource) { var ProfileResource = $resource('/social_networking/profiles/:id', { id: '@id' }, { 'update': {method: 'PUT'} }); var ProfilesResource = $resource('/social_networking/profiles'); function Profile() {} Profile.getAll = function() { return ProfilesResource.query().$promise; }; Profile.getOne = function(id) { return ProfileResource.get({ id: id }).$promise; }; // Update a Goal on the server. Profile.update = function(attributes) { var profile = new ProfileResource(); return profile.$update({ id: attributes.profile.id, icon_name: attributes.iconSrc }); }; return Profile; } angular.module('socialNetworking.services') .service('Profiles', ['$resource', Profiles]); })(); ;TI"required_assets_digest;TI"%490d737b22cc361e8162c2b3cfbcb5b9;FI" _version;TI"%b910479f035fc02c55a3e167aaa8a0b8;F