DELETE FROM `wpjy_report_acl`
WHERE `report_slug` IN (
  'financeiro-recebiveis',
  'financeiro-inadimplencia',
  'financeiro-assinaturas',
  'financeiro-repasses',
  'leads-conversao',
  'tickets-backlog',
  'documentos-pendencias',
  'tarefas-risco',
  'metas-progresso',
  'partners-atendimento',
  'agenda-performance',
  'people-workload'
);

INSERT INTO `wpjy_report_acl` (`report_slug`, `id_grupo`, `rule`, `inherit_mode`) VALUES
('financeiro-recebiveis', 2, 'allow', 'exact'),
('financeiro-recebiveis', 3, 'allow', 'exact'),
('financeiro-recebiveis', 6, 'allow', 'exact'),
('financeiro-recebiveis', 7, 'allow', 'exact'),
('financeiro-recebiveis', 55, 'allow', 'exact'),

('financeiro-inadimplencia', 2, 'allow', 'exact'),
('financeiro-inadimplencia', 3, 'allow', 'exact'),
('financeiro-inadimplencia', 6, 'allow', 'exact'),
('financeiro-inadimplencia', 7, 'allow', 'exact'),
('financeiro-inadimplencia', 55, 'allow', 'exact'),

('financeiro-assinaturas', 2, 'allow', 'exact'),
('financeiro-assinaturas', 3, 'allow', 'exact'),
('financeiro-assinaturas', 6, 'allow', 'exact'),
('financeiro-assinaturas', 55, 'allow', 'exact'),

('financeiro-repasses', 2, 'allow', 'exact'),
('financeiro-repasses', 3, 'allow', 'exact'),
('financeiro-repasses', 6, 'allow', 'exact'),
('financeiro-repasses', 7, 'allow', 'exact'),
('financeiro-repasses', 55, 'allow', 'exact'),

('leads-conversao', 2, 'allow', 'exact'),
('leads-conversao', 3, 'allow', 'exact'),
('leads-conversao', 10, 'allow', 'exact'),
('leads-conversao', 57, 'allow', 'exact'),
('leads-conversao', 58, 'allow', 'exact'),
('leads-conversao', 83, 'allow', 'exact'),
('leads-conversao', 84, 'allow', 'exact'),
('leads-conversao', 85, 'allow', 'exact'),

('tickets-backlog', 2, 'allow', 'exact'),
('tickets-backlog', 3, 'allow', 'exact'),
('tickets-backlog', 4, 'allow', 'exact'),
('tickets-backlog', 9, 'allow', 'exact'),
('tickets-backlog', 16, 'allow', 'exact'),
('tickets-backlog', 61, 'allow', 'exact'),

('documentos-pendencias', 2, 'allow', 'exact'),
('documentos-pendencias', 3, 'allow', 'exact'),
('documentos-pendencias', 4, 'allow', 'exact'),
('documentos-pendencias', 17, 'allow', 'exact'),
('documentos-pendencias', 55, 'allow', 'exact'),

('tarefas-risco', 2, 'allow', 'exact'),
('tarefas-risco', 3, 'allow', 'exact'),
('tarefas-risco', 73, 'allow', 'exact'),
('tarefas-risco', 74, 'allow', 'exact'),
('tarefas-risco', 75, 'allow', 'exact'),
('tarefas-risco', 77, 'allow', 'exact'),

('metas-progresso', 2, 'allow', 'exact'),
('metas-progresso', 3, 'allow', 'exact'),
('metas-progresso', 55, 'allow', 'exact'),
('metas-progresso', 73, 'allow', 'exact'),
('metas-progresso', 74, 'allow', 'exact'),
('metas-progresso', 75, 'allow', 'exact'),
('metas-progresso', 77, 'allow', 'exact'),
('metas-progresso', 78, 'allow', 'exact'),

('partners-atendimento', 2, 'allow', 'exact'),
('partners-atendimento', 3, 'allow', 'exact'),
('partners-atendimento', 11, 'allow', 'exact'),
('partners-atendimento', 16, 'allow', 'exact'),
('partners-atendimento', 61, 'allow', 'exact'),
('partners-atendimento', 68, 'allow', 'exact'),

('agenda-performance', 2, 'allow', 'exact'),
('agenda-performance', 3, 'allow', 'exact'),
('agenda-performance', 17, 'allow', 'exact'),
('agenda-performance', 61, 'allow', 'exact'),
('agenda-performance', 68, 'allow', 'exact'),

('people-workload', 2, 'allow', 'exact'),
('people-workload', 3, 'allow', 'exact'),
('people-workload', 73, 'allow', 'exact'),
('people-workload', 74, 'allow', 'exact'),
('people-workload', 75, 'allow', 'exact'),
('people-workload', 76, 'allow', 'exact'),
('people-workload', 77, 'allow', 'exact');
