define(["app"],function(a){"use strict";return a.factory("activityService",["$http","$log",function(a,b){function c(c){a.get("api/activities/activity.json").success(function(a){c(a)}).error(function(){b.log("Error"),c([])})}function d(c,d){a.get("api/activities/activity-"+c+".json").success(function(a){d(a)}).error(function(){b.log("Error"),d([])})}return{get:function(a){c(a)},getbytype:function(a,b){d(a,b)}}}])});