define(["app"],function(a){"use strict";return a.factory("Language",["$http",function(a){function b(b,c){a.get("api/langs/"+b+".json").success(function(a){c(a)}).error(function(){$log.log("Error"),c([])})}function c(b){a.get("api/languages.json").success(function(a){b(a)}).error(function(){$log.log("Error"),b([])})}return{getLang:function(a,c){b(a,c)},getLanguages:function(a){c(a)}}}])});