INSERT INTO account.`role` (name,description,hasLogin)
	VALUES ('deliveryFreelancer','Repartidor autónomo',1);

INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
	VALUES
		('Route', 'getTickets', 'READ', 'ALLOW', 'ROLE', 'deliveryFreelancer'),
		('AgencyTerm', 'filter', 'READ', 'ALLOW', 'ROLE', 'deliveryFreelancer'),
		('Route', 'summary', 'READ', 'ALLOW', 'ROLE', 'deliveryFreelancer'),
		('Route', 'getRouteByAgency', 'WRITE', 'ALLOW', 'ROLE', 'deliveryFreelancer'),
		('Route','filter','READ','ALLOW','ROLE','deliveryFreelancer'),
		('UserConfig','getUserConfig','*','ALLOW','ROLE','deliveryFreelancer'),
		('Route', 'getTickets', 'READ', 'ALLOW', 'ROLE', 'deliveryFreelancer'),
		('Route','guessPriority','WRITE','ALLOW','ROLE','deliveryFreelancer'),
		('Route','getDeliveryPoint','READ','ALLOW','ROLE','deliveryFreelancer'),
        ('Route', 'findById', 'READ', 'ALLOW', 'ROLE', 'deliveryFreelancer'),
		('Route','sendSms','WRITE','ALLOW','ROLE','deliveryFreelancer'),
		('Ticket','updateAttributes','WRITE','ALLOW','ROLE','deliveryFreelancer'),
		('Client','findById','READ','ALLOW','ROLE','deliveryFreelancer');
;
