(function () { angular.module('piwikApp.config', []); if ('undefined' === (typeof piwik) || !piwik) { return; } var piwikAppConfig = angular.module('piwikApp.config'); // we probably want this later as a separate config file, till then it serves as a "bridge" for (var index in piwik.config) { piwikAppConfig.constant(index.toUpperCase(), piwik.config[index]); } })();