define(
    [
        './app',
        './config/rest-config',
        './services/restCollection',
        './directives/configTableDirective',
        './directives/configItemDirective',
        './directives/configAddItemDirective',
        './directives/showEditDirective',
        './directives/showEditNameDirective',
        './directives/configEditGenericDirective',
        './directives/configEditBoxDirective',
        './directives/contenteditableDirective',
        './directives/configTypeSelectDirective',
        './directives/configArrayEditDirective'
    ],
    function(app){

    module.exports = {
        init: function (dom_element) {
            if (typeof angular.element(dom_element).scope() === 'undefined') {
                angular.bootstrap(dom_element, ["cla.core.system.configEditor"]);
            }
        },
        setUrl: function(url) {
            app.value('getUrl', url);
        }
    };
});
