define([], function(){

    return function(app){
        app.value('getUrl', '/api/sysadmin/languages');
        app.value('primaryKey', 'code');
        app.value('valueAttribute', 'title');
        app.value('restSortFunction', function(a, b){
            if(a.builtin && !b.builtin)
                return -1;
            else if(!a.builtin && b.builtin)
                return 1;
            else
                return (a.code < b.code ? -1 : (a.code > b.code ? 1 : 0));
        });
    };
});

