<?php

// This array must always start on index 1.
$permissions = array(
// index=> array(permission, dependency, customer_allowed, description)
    1   => array('support_view',                                    0, true,   /*T*/'View open tickets'/*/T*/),
    2   => array('support_view_assigned_department_tickets',        1, false,  /*T*/'View tickets assigned to their departments'/*/T*/),
    3   => array('support_view_assigned_otherdepartment_tickets',   1, false,  /*T*/'View tickets assigned to other departments'/*/T*/),

    4   => array('support_reply_any_open_ticket',                   1, false,  /*T*/'Reply to any assigned ticket'/*/T*/),
    28  => array('support_view_closed_tickets',                     1, true,   /*T*/'View closed tickets'/*/T*/),
    5   => array('support_view_all_closed_tickets',                 1, false,  /*T*/'View all closed tickets'/*/T*/),
    6   => array('support_submit_ticket',                           1, true,   /*T*/'Submit ticket'/*/T*/),
    7   => array('support_reopen_ticket',                           1, true,   /*T*/'Reopen ticket'/*/T*/),
    8   => array('support_edit_ticket',                             1, false,  /*T*/'Edit ticket'/*/T*/),
    9   => array('support_delete_trouble_ticket',                   1, false,  /*T*/'Delete ticket'/*/T*/),

   10   => array('support_assign_tickets',                          1, false,  /*T*/'Assign unassigned tickets to any department'/*/T*/),
   11   => array('support_assign_tickets_from_unassigned',          1, false,  /*T*/'Assign themselves unassigned tickets'/*/T*/),
   12   => array('support_reassign_tickets_from_inside_dept',       1, false,  /*T*/'Assign themselves tickets in their departments'/*/T*/),
   13   => array('support_reassign_tickets_from_other_depts',       1, false,  /*T*/'Assign themselves tickets from other departments'/*/T*/),
   14   => array('support_reassign_tickets_to_own_depts',           1, false,  /*T*/'Assign their tickets to departments they are members in'/*/T*/),
   15   => array('support_reassign_tickets_to_other_depts',         1, false,  /*T*/'Assign their tickets to other departments they are not a member of'/*/T*/),
   16   => array('support_reassign_tickets_from_others_to_others',  1, false,  /*T*/'Assign tickets they don\'t own to any department'/*/T*/),


   17   => array('support_show_departments',                        1, false,   /*T*/'Show departments'/*/T*/),
   18   => array('support_edit_departments',                        17, false,  /*T*/'Manage departments'/*/T*/),
   19   => array('support_show_escalations',                        1, false,   /*T*/'Show escalation rules'/*/T*/),
   20   => array('support_edit_escalations',                        19, false,  /*T*/'Manage escalation rules'/*/T*/),
   21   => array('support_show_emailroutings',                      1, false,  /*T*/'Show e-mail routing rules'/*/T*/),
   22   => array('support_edit_emailroutings',                      21, false, /*T*/'Manage e-mail routing rules'/*/T*/),
   23   => array('support_show_tickettypes',                        1, false,  /*T*/'View ticket types'/*/T*/),
   24   => array('support_edit_tickettypes',                        23, false, /*T*/'Manage ticket types'/*/T*/),

   25   => array('support_close_tickets',                           1, true,   /*T*/'Close tickets'/*/T*/),
   26   => array('support_view_rates',                              1, false,  /*T*/'View closed tickets service rates'/*/T*/),
   27   => array('support_view_eventlog',                           1, true,   /*T*/'View Event Log for Ticket events'/*/T*/),
   
   
);
?>
