<?php

/*
 * Your installation or use of this SugarCRM file is subject to the applicable
 * terms available at
 * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
 * If you do not agree to all of the applicable terms or do not have the
 * authority to bind the entity as an authorized representative, then do not
 * install or use this SugarCRM file.
 *
 * Copyright (C) SugarCRM Inc. All rights reserved.
 */

$module_name = 'Messages';
$viewdefs[$module_name]['base']['menu']['header'] = [
    [
        'label' =>'LNK_NEW_MESSAGE',
        'acl_action'=>'create',
        'acl_module'=>$module_name,
        'icon' => 'fa-plus',
        'route'=>'#'.$module_name.'/create',
    ],
    [
        'route'=>'#'.$module_name,
        'label' =>'LNK_MESSAGE_LIST',
        'acl_action'=>'list',
        'acl_module'=>$module_name,
        'icon' => 'fa-bars',
    ],
    [
        'route' => '#Reports?filterModule=' . $module_name,
        'label' =>'LNK_MESSAGE_REPORTS',
        'acl_action'=>'list',
        'acl_module' => 'Reports',
        'icon' => 'fa-bar-chart-o',
    ],
    [
        'route' => '#bwc/index.php?' . http_build_query(
            [
                'module' => 'Import',
                'action' => 'Step1',
                'import_module' => $module_name,
            ]
        ),
        'label' =>'LNK_IMPORT_MESSAGES',
        'acl_action'=>'import',
        'acl_module'=>$module_name,
        'icon' => 'fa-arrow-circle-o-up',
    ],
];
