DELETE FROM `salix`.`ACL`
    WHERE
        model = 'Route'
        AND property = '*'
        AND accessType = 'READ';

INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
    VALUES
        ('Route', 'find', 'READ', 'ALLOW', 'ROLE', 'employee'),
        ('Route', 'findById', 'READ', 'ALLOW', 'ROLE', 'employee'),
        ('Route', 'findOne', 'READ', 'ALLOW', 'ROLE', 'employee'),
        ('Route', 'getRoutesByWorker', 'READ', 'ALLOW', 'ROLE', 'employee'),
        ('Route', 'canViewAllRoute', 'READ', 'ALLOW', 'ROLE', 'deliveryBoss'),
        ('Route', 'filter', 'READ', 'ALLOW', 'ROLE', 'employee'),
        ('Route', 'getSuggestedTickets', 'READ', 'ALLOW', 'ROLE', 'employee'),
        ('Route', 'getTickets', 'READ', 'ALLOW', 'ROLE', 'employee'),
        ('Route', 'guessPriority', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
        ('Route', 'insertTicket', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
        ('Route', 'getDeliveryPoint', 'READ', 'ALLOW', 'ROLE', 'deliveryBoss'),
        ('Route', 'summary', 'READ', 'ALLOW', 'ROLE', 'employee');
