<?php

$config = array(
    'mandatory'         => false,
    'recommended'       => true,
    'description'       => 'Support management module.',
    'navButtonLabel'    => /*T*/'Support'/*/T*/,
    'versions'          => array(
        '2.8.4'         => array(false, false),
        '3.0.0 alpha1'  => array(true, false),
        '3.0.0 beta1'   => array(false, false),
        '3.0.0 beta2'   => array(false, false),
        '3.0.0 beta3'   => array(false, false),
        '3.0.0 beta4'   => array(false, false),
        '3.0.0 PR1'     => array(false, false),
        '3.0.0 PR2'     => array(false, false),
        '3.0.0'         => array(false, false),
        '3.0.1'         => array(false, false),
        '3.0.2'         => array(false, false),
        '3.1.0 beta1'   => array(true, true),
        '3.1.0 beta2'   => array(true, false),
        '3.1.0 beta3'   => array(true, false),
        '3.1.0 beta4'   => array(true, true),
        '3.1.0 RC1'     => array(true, false),
        '3.1.0'         => array(false, false),
        '3.1.1'         => array(false, false),
    ),
    'dependencies'      => array('newedge' => '3.1.1'),
    'hasSchemaFile'     => true,
    'hasInitialData'    => true,
    'hasUninstallSQLScript' => false,
    'hasUninstallPHPScript' => false,
    'order'             => 5,
    'settingTypes'      => array(8),
    'defaultView'       => 'Overview',
    'defaultView_Mobile' => 'ViewTickets_Mobile',
    'actions'           => array(
        'DeleteAttachment'          => 'support_edit_ticket',
        'GetAttachment'             => 'support_view',
        'SaveNewSupportTicket'      => '',  // permission verified inside the class
        'ReopenTicket'              => 'support_reopen_ticket',
        'SaveNewSupportTicketLog'   => '',  // permission verified inside the class
        'AssignTickets_Async'       => '',  // permission verified inside the class
	    'AddTicketAdditionalNotification_ASync'       => '',  // permission verified inside the class
    	'DeleteTicketAdditionalNotification_ASync'       => '',  // permission verified inside the class
        'DeleteTicketLog_Async'     => 'support_edit_ticket',
        'ReasignTicket_Async'       => 'support_view',
        'SetPriority_Async'         => 'support_edit_ticket',
        'SetStatus_Async'           => 'support_edit_ticket',
        'SetSubject_Async'          => 'support_edit_ticket',
        'SetOwner'                  => 'support_edit_ticket',
        'SetType_Async'             => 'support_edit_ticket',
        'SetDomain_Async'           => 'support_edit_ticket',
        'GetReassignDropdown_Async' =>  '',     // permission verified inside the class
        'GetAssignDropdown_Async' =>  '',     // permission verified inside the class    
        'EditTicketLog_Async'       => 'support_edit_ticket',
        'AddTicketType'             => 'support_edit_ticket_types',
        'DeleteTicketType'          => 'support_edit_ticket_types',
        'UpdateTicketType'          => 'support_edit_ticket_types',
        'UpdateTicketTypesOrder'    => 'support_edit_tickettypes',        
        'UpdateSaturdayTurn'        => 'saturday_shift_edit',
        'TurnsSchedule'             => 'saturday_shift_view',
        'loadUsers'                 => 'saturday_shift_view',
        'sendMailAdvise'            => 'saturday_shift_view',
        'AutoSendEmail'             => 'saturday_shift_view',
        'getSaturdayShift'          => 'saturday_shift_view',
        'delSaturdayShift'          => 'saturday_shift_edit',
        'RateService'               => '',
        'SaveFeedBack'              => '',
        'DeleteTickets_Mobile'      => 'support_delete_trouble_ticket',
        'CloseTickets_Mobile'       => 'support_close_tickets',
        'Assign_TicketFilter'       =>  'support_view',
        'SaveDepartment'            =>  'support_edit_department',
        'DeleteDepartment'          =>  'support_edit_department',
        'SaveEscalation'            =>  'support_edit_escalations',
        'DeleteEscalation'          =>  'support_edit_escalations',
        'SaveEmailRouting'          =>  'support_edit_emailroutings',
        'DeleteRoutingRule'         =>  'support_edit_emailroutings',
        'UpdateEmailRoutingRulesOrder'=>  'support_edit_emailroutings',
        'SaveAutoresponderTemplates'=>  'support_edit_emailroutings',
        'SaveTicketType'            =>  'support_edit_tickettypes',
        'SaveTicketFilter'          =>  'support_view',
        'CreateTicketFilter'        =>  'support_view',
        'DeleteTicketFilter'        =>  'support_view',
        'DeleteTicket'              =>  'support_delete_trouble_ticket',
    ),
    'views'             => array(
    // view                         => array(menuitem)
        'Overview'                  =>  'support_view',
        'ViewTicketDetails'         =>  '',     // permission verified inside the class
        'ViewClosedTickets'         =>  'support_view',
        'ViewSubmitTicketForm'      =>  '',     // permission verified inside the class
        'TableTickets'              =>  'support_view',
        'FilterTickets_Async'       =>  'support_view',
        'CloseTickets_Async'        =>  'support_close_tickets',
        'DeleteTroubleTicket_Async' =>  'support_delete_trouble_ticket',
        'Snapshot_Tickets'          =>  'support_view',
        'TicketTab_Messages'        =>  'support_view',
        'TicketTab_Reply'           =>  'support_view',
        'TicketTab_EventLog'        =>  'support_view',    
        'TicketTypeEditor'          =>  'support_edit_ticket_types',        
        'PublicSection_SearchTicket'=>  '',
        'SaturdayTurns'             =>  'saturday_shift_view',
        'ViewTurnsSchedule'         =>  'saturday_shift_view',
        'AssignementsSaturday'      =>  'saturday_shift_view',
        'consultSpecifiedTurn'      =>  'saturday_shift_view',
        'EditSaturday'              =>  'saturday_shift_edit',
        'DeleteSaturdayShift'       =>  'saturday_shift_edit',
        'ThanksForRating'           =>  '',
        'Support_ViewEventLog'      =>  'support_view_eventlog',
        'TicketFilter'              =>  'support_view',
        'ViewTicketFilter'          =>  'support_view',
        'ViewTickets_Mobile'        =>  'support_view',
        'ViewTicketDetails_Mobile'  =>  '',     // permission verified inside the class
        'GetTicketTabs'             =>  '',     // permission verified inside the class
        'TicketNotes'               =>  'clients_view',
        'HistoryShowComments'       =>  'clients_view_eventlog',
        'ViewDepartments'           =>  'support_show_departments',
        'AddEditDepartment'         =>  'support_edit_departments',
        'ViewEscalations'           =>  'support_show_escalations',
        'AddEditEscalation'         =>  'support_edit_escalations',
        'ViewEmailRoutings'         =>  'support_show_emailroutings',
        'AddEditEmailRouting'       =>  'support_edit_emailroutings',
        'ViewAutoresponderTemplates'=>  'support_show_emailroutings',
        'ViewTicketTypes'           =>  'support_show_tickettypes',
        'AddEditTicketType'         =>  'support_edit_tickettypes',        
    ),
    'hooks'         => array(
        'Menu'                          => 'Support_menu',
        'Settings'                      => array(   'Support_Settings'  => array(
                                                                'internalName'      => 'support',
                                                                'tabLabel'          => /*T*/'Support'/*/T*/,
                                                                'order'             => 6,
                                                                'intSettingsType'   => 8
                                                                ),
                                                        ),
        'Snapshots'                     => array(   'Snapshot_Tickets'  => array(
                                                                            'tabLabel' => /*T*/'Tickets'/*/T*/
                                                                        ),
                                                ),
        'Events'                        => array('PipedEmail' => 'Support_Event_PipedEmail'),
        'EventLogging'                  => array('support'  => array(   'label'     => 'Support',
                                                                        'classes'   => array('Ticket_EventLog')
                                                                    )
                                                ),
    ),
);

?>
