'use strict';

module.exports = exports = function(app) {

    const gt = app.utility.gettext;

    return {
        rights: [
            {
                _id: '577225e3f3c65dd800257bdc',
                special: 'annualleave',
                name: gt.gettext("Paid annual leave"),
                type: '5740adf51cf1a569643cc508',
                quantity: 25,
                rules: [
                    {
                        type: "entry_date",
                        title: gt.gettext("The creation of the request can be made in the period of renewal, with 30 days of tolerance"),
                        min: 30,
                        max: 30
                    },
                    {
                        type: "request_period",
                        title: gt.gettext("The absence must be within the renewal period"),
                        min: 0,
                        max: 0
                    }
                ],
                renewal: {
                    start: {
                        month:5,
                        day:1
                    }
                }
            },
            {
                _id: '5770cad63fccf8da5150e7da',
                type: '5740adf51cf1a569643cc51d',
                special: 'rtt',
                name: "RTT",
                rules: [
                    {
                        type: "entry_date",
                        title: gt.gettext("The creation of the request can be made in the period of renewal, with 30 days of tolerance"),
                        min: 30,
                        max: 30
                    },
                    {
                        type: "request_period",
                        title: gt.gettext("The absence must be within the renewal period"),
                        min: 0,
                        max: 0
                    }
                ],
                renewal: {
                    start: {
                        month:0,
                        day:1
                    }
                }
            },
            {
                name: gt.gettext("Maternity"),
                type: '5740adf51cf1a569643cc50e',
                quantity: 80,
                activeFor: {  account: false }
            }
        ]
    };
};

@@ -2233,16 +2233,306 @@
  false %7D
+,%0A                autoDistribution: false%0A            %7D,%0A            %7B%0A                name: gt.gettext('Sickness absence'),%0A                type: '5740adf51cf1a569643cc50b',%0A                quantity: 0,%0A                activeFor: %7B account: false %7D,%0A                autoDistribution: false
 %0A       

Add sickness leave for default FR