define(['app', "directives/stats-display/amchart3","directives/stats-display/results-list",'authentication'], function() { 'use strict'; //"directives/stats-display/stats-display",

    return ['$scope',  '$http', '$timeout', '$filter',
     function($scope,  $http, $timeout, $filter ) {

        $scope.schema="resourcemobilization";
        $scope.chartData=[];


        $http.get("/api/v2013/thesaurus/domains/countries/terms", {cache: true}).then(function(o) {
            $scope.countries = $filter('orderBy')(o.data, 'title');
          return;
        });
        $timeout(function(){
          $http.get("/api/v2015/rm-stats/chart-data", {cache: true}).then(function(o) {

              $scope.chartData= o.data;
            return;
          });
        });

        $http.get("/api/v2015/rm-stats/source-docs", {cache: true}).then(function(o) {
            $scope.documents= o.data;
          return;
        });

    }];
});

@@ -639,31 +639,16 @@
 rt-data%22
-, %7Bcache: true%7D
 ).then(f
@@ -799,31 +799,16 @@
 ce-docs%22
-, %7Bcache: true%7D
 ).then(f

remove cache on api call for stats