<?php
$config->dev->group['index']           = 'my';
$config->dev->group['my']              = 'my';
$config->dev->group['todo']            = 'my';
$config->dev->group['program']         = 'program';
$config->dev->group['personnel']       = 'program';
$config->dev->group['stakeholder']     = 'program';
$config->dev->group['expect']          = 'program';
$config->dev->group['product']         = 'product';
$config->dev->group['story']           = 'product';
$config->dev->group['storyspec']       = 'product';
$config->dev->group['storyestimate']   = 'product';
$config->dev->group['storyreview']     = 'product';
$config->dev->group['storystage']      = 'product';
$config->dev->group['branch']          = 'product';
$config->dev->group['productplan']     = 'product';
$config->dev->group['planstory']       = 'product';
$config->dev->group['design']          = 'product';
$config->dev->group['designspec']      = 'product';
$config->dev->group['release']         = 'product';
$config->dev->group['project']         = 'project';
$config->dev->group['projectproduct']  = 'project';
$config->dev->group['projectstory']    = 'project';
$config->dev->group['projectcase']     = 'project';
$config->dev->group['projectspec']     = 'project';
$config->dev->group['projectplan']     = 'project';
$config->dev->group['programplan']     = 'project';
$config->dev->group['stage']           = 'project';
$config->dev->group['weekly']          = 'project';
$config->dev->group['weeklyreport']    = 'project';
$config->dev->group['projectbuild']    = 'project';
$config->dev->group['projectrelease']  = 'project';
$config->dev->group['execution']       = 'execution';
$config->dev->group['task']            = 'execution';
$config->dev->group['taskestimate']    = 'execution';
$config->dev->group['taskspec']        = 'execution';
$config->dev->group['team']            = 'execution';
$config->dev->group['build']           = 'execution';
$config->dev->group['burn']            = 'execution';
$config->dev->group['kanban']          = 'kanban';
$config->dev->group['kanbancard']      = 'kanban';
$config->dev->group['kanbancell']      = 'kanban';
$config->dev->group['kanbancolumn']    = 'kanban';
$config->dev->group['kanbangroup']     = 'kanban';
$config->dev->group['kanbanlane']      = 'kanban';
$config->dev->group['kanbanregion']    = 'kanban';
$config->dev->group['kanbanspace']     = 'kanban';
$config->dev->group['qa']              = 'qa';
$config->dev->group['bug']             = 'qa';
$config->dev->group['case']            = 'qa';
$config->dev->group['testcase']        = 'qa';
$config->dev->group['casestep']        = 'qa';
$config->dev->group['testtask']        = 'qa';
$config->dev->group['testreport']      = 'qa';
$config->dev->group['testsuite']       = 'qa';
$config->dev->group['caselib']         = 'qa';
$config->dev->group['testresult']      = 'qa';
$config->dev->group['testrun']         = 'qa';
$config->dev->group['suitecase']       = 'qa';
$config->dev->group['automation']      = 'qa';
$config->dev->group['doc']             = 'doc';
$config->dev->group['doccontent']      = 'doc';
$config->dev->group['doclib']          = 'doc';
$config->dev->group['api_lib_release'] = 'doc';
$config->dev->group['apispec']         = 'doc';
$config->dev->group['apistruct']       = 'doc';
$config->dev->group['apistruct_spec']  = 'doc';
$config->dev->group['report']          = 'report';
$config->dev->group['datatable']       = 'report';
$config->dev->group['company']         = 'company';
$config->dev->group['dept']            = 'company';
$config->dev->group['group']           = 'company';
$config->dev->group['grouppriv']       = 'company';
$config->dev->group['user']            = 'company';
$config->dev->group['usercontact']     = 'company';
$config->dev->group['usergroup']       = 'company';
$config->dev->group['userquery']       = 'company';
$config->dev->group['usertpl']         = 'company';
$config->dev->group['userview']        = 'company';
$config->dev->group['admin']           = 'admin';
$config->dev->group['extension']       = 'admin';
$config->dev->group['lang']            = 'admin';
$config->dev->group['convert']         = 'admin';
$config->dev->group['action']          = 'admin';
$config->dev->group['history']         = 'admin';
$config->dev->group['mail']            = 'admin';
$config->dev->group['backup']          = 'admin';
$config->dev->group['cron']            = 'admin';
$config->dev->group['dev']             = 'admin';
$config->dev->group['editor']          = 'admin';
$config->dev->group['custom']          = 'admin';
$config->dev->group['score']           = 'admin';
$config->dev->group['config']          = 'admin';
$config->dev->group['svn']             = 'repo';
$config->dev->group['git']             = 'repo';
$config->dev->group['gitlab']          = 'repo';
$config->dev->group['gitea']           = 'repo';
$config->dev->group['gogs']            = 'repo';
$config->dev->group['oauth']           = 'repo';
$config->dev->group['mr']              = 'repo';
$config->dev->group['mrapproval']      = 'repo';
$config->dev->group['pipeline']        = 'repo';
$config->dev->group['ci']              = 'repo';
$config->dev->group['compile']         = 'repo';
$config->dev->group['jenkins']         = 'repo';
$config->dev->group['job']             = 'repo';
$config->dev->group['sonarqube']       = 'repo';
$config->dev->group['assetlib']        = 'assetlib';
$config->dev->group['api']             = 'api';
$config->dev->group['entry']           = 'api';
$config->dev->group['log']             = 'api';
$config->dev->group['install']         = 'system';
$config->dev->group['upgrade']         = 'system';
$config->dev->group['sso']             = 'system';
$config->dev->group['search']          = 'system';
$config->dev->group['block']           = 'system';
$config->dev->group['file']            = 'system';
$config->dev->group['tree']            = 'system';
$config->dev->group['module']          = 'system';
$config->dev->group['tutorial']        = 'system';
$config->dev->group['message']         = 'message';
$config->dev->group['mail']            = 'message';
$config->dev->group['webhook']         = 'message';
$config->dev->group['notify']          = 'message';
$config->dev->group['repo']            = 'repo';
$config->dev->group['repofiles']       = 'repo';
$config->dev->group['repohistory']     = 'repo';
$config->dev->group['repobranch']      = 'repo';
$config->dev->group['searchindex']     = 'search';
$config->dev->group['searchdict']      = 'search';

$config->dev->tableMap['designspec']      = 'design';
$config->dev->tableMap['storyspec']       = 'story';
$config->dev->tableMap['storyestimate']   = 'story';
$config->dev->tableMap['storyreview']     = 'story';
$config->dev->tableMap['storystage']      = 'story';
$config->dev->tableMap['burn']            = 'task';
$config->dev->tableMap['projectproduct']  = 'project';
$config->dev->tableMap['projectstory']    = 'story';
$config->dev->tableMap['planstory']       = 'story';
$config->dev->tableMap['projectcase']     = 'project';
$config->dev->tableMap['projectspec']     = 'project';
$config->dev->tableMap['taskestimate']    = 'task';
$config->dev->tableMap['taskspec']        = 'task';
$config->dev->tableMap['team']            = 'execution';
$config->dev->tableMap['case']            = 'testcase';
$config->dev->tableMap['casestep']        = 'testcase';
$config->dev->tableMap['testresult']      = 'testtask';
$config->dev->tableMap['testrun']         = 'testtask';
$config->dev->tableMap['doccontent']      = 'doc';
$config->dev->tableMap['doclib']          = 'doc';
$config->dev->tableMap['grouppriv']       = 'group';
$config->dev->tableMap['usercontact']     = 'user-contacts';
$config->dev->tableMap['usergroup']       = 'user';
$config->dev->tableMap['userview']        = 'user';
$config->dev->tableMap['userquery']       = 'search';
$config->dev->tableMap['usertpl']         = 'user-tpl';
$config->dev->tableMap['history']         = 'action-history';
$config->dev->tableMap['lang']            = 'custom';
$config->dev->tableMap['config']          = 'custom';
$config->dev->tableMap['module']          = 'tree';
$config->dev->tableMap['suitecase']       = 'testcase';
$config->dev->tableMap['repofiles']       = 'repo';
$config->dev->tableMap['repohistory']     = 'repo';
$config->dev->tableMap['repobranch']      = 'repo';
$config->dev->tableMap['log']             = 'action';
$config->dev->tableMap['searchindex']     = 'search';
$config->dev->tableMap['searchdict']      = 'search';
$config->dev->tableMap['testtask']        = 'testreport';
$config->dev->tableMap['kanbancard']      = 'kanban';
$config->dev->tableMap['kanbancell']      = 'kanban';
$config->dev->tableMap['kanbancolumn']    = 'kanban';
$config->dev->tableMap['kanbangroup']     = 'kanban';
$config->dev->tableMap['kanbanlane']      = 'kanban';
$config->dev->tableMap['kanbanregion']    = 'kanban';
$config->dev->tableMap['kanbanspace']     = 'kanban';
$config->dev->tableMap['mrapproval']      = 'mr';
$config->dev->tableMap['weeklyreport']    = 'weekly';
$config->dev->tableMap['oauth']           = 'gitlab';
$config->dev->tableMap['api_lib_release'] = 'api';
$config->dev->tableMap['apispec']         = 'api';
$config->dev->tableMap['apistruct']       = 'api';
$config->dev->tableMap['apistruct_spec']  = 'api';
$config->dev->tableMap['expect']          = 'stakeholder';

$config->dev->postParams['story']['create']['product']       = 'int';
$config->dev->postParams['story']['create']['title']         = 'string';
$config->dev->postParams['story']['create']['module']        = 'int';
$config->dev->postParams['story']['create']['plan']          = 'int';
$config->dev->postParams['story']['create']['source']        = 'string';
$config->dev->postParams['story']['create']['sourceNote']    = 'string';
$config->dev->postParams['story']['create']['reviewer']      = 'array';
$config->dev->postParams['story']['create']['needNotReview'] = 'string';
$config->dev->postParams['story']['create']['pri']           = 'string';
$config->dev->postParams['story']['create']['estimate']      = 'date';
$config->dev->postParams['story']['create']['spec']          = 'string';
$config->dev->postParams['story']['create']['verify']        = 'string';
$config->dev->postParams['story']['create']['color']         = 'string';
$config->dev->postParams['story']['create']['mailto']        = 'string';
$config->dev->postParams['story']['create']['keywords']      = 'string';

$config->dev->postParams['bug']['create']['product']     = 'int';
$config->dev->postParams['bug']['create']['title']       = 'string';
$config->dev->postParams['bug']['create']['openedBuild'] = 'int|trunk';
$config->dev->postParams['bug']['create']['branch']      = 'int';
$config->dev->postParams['bug']['create']['module']      = 'int';
$config->dev->postParams['bug']['create']['execution']   = 'int';
$config->dev->postParams['bug']['create']['assignedTo']  = 'string';
$config->dev->postParams['bug']['create']['deadline']    = 'date';
$config->dev->postParams['bug']['create']['type']        = 'string';
$config->dev->postParams['bug']['create']['os']          = 'string';
$config->dev->postParams['bug']['create']['browser']     = 'string';
$config->dev->postParams['bug']['create']['color']       = 'string';
$config->dev->postParams['bug']['create']['severity']    = 'int';
$config->dev->postParams['bug']['create']['pri']         = 'int';
$config->dev->postParams['bug']['create']['steps']       = 'string';
$config->dev->postParams['bug']['create']['mailto']      = 'string';
$config->dev->postParams['bug']['create']['keywords']    = 'string';

$config->dev->postParams['task']['create']['execution']  = 'int';
$config->dev->postParams['task']['create']['type']       = 'string';
$config->dev->postParams['task']['create']['name']       = 'string';
$config->dev->postParams['task']['create']['module']     = 'int';
$config->dev->postParams['task']['create']['assignedTo'] = 'string';
$config->dev->postParams['task']['create']['story']      = 'int';
$config->dev->postParams['task']['create']['pri']        = 'int';
$config->dev->postParams['task']['create']['color']      = 'string';
$config->dev->postParams['task']['create']['desc']       = 'string';
$config->dev->postParams['task']['create']['mailto']     = 'string';

$config->dev->postParams['testcase']['create']['product']      = 'int';
$config->dev->postParams['testcase']['create']['title']        = 'string';
$config->dev->postParams['testcase']['create']['type']         = 'string';
$config->dev->postParams['testcase']['create']['module']       = 'int';
$config->dev->postParams['testcase']['create']['story']        = 'int';
$config->dev->postParams['testcase']['create']['stage']        = 'string';
$config->dev->postParams['testcase']['create']['pri']          = 'int';
$config->dev->postParams['testcase']['create']['color']        = 'string';
$config->dev->postParams['testcase']['create']['precondition'] = 'string';
$config->dev->postParams['testcase']['create']['steps']        = 'string';
$config->dev->postParams['testcase']['create']['expect']       = 'string';
$config->dev->postParams['testcase']['create']['mailto']       = 'string';
$config->dev->postParams['testcase']['create']['keywords']     = 'string';

$config->dev->navTypes = array('second', 'third', 'tag');

$config->disableFeature = array();
if(!helper::hasFeature('waterfall')) $config->disableFeature = array('design', 'stage', 'programplan', 'weekly', 'researchplan', 'researchreport', 'gapanalysis');

$config->dev->projectMenus    = array('project', 'scrum', 'waterfall', 'kanbanProject');
$config->dev->hideMainMenu    = array('admin', 'kanban');
if($config->vision == 'lite')
{
    $config->dev->projectMenus = array('project', 'kanbanProject');
    $config->dev->hideMainMenu = array('execution', 'kanban', 'admin');
}

$config->dev->linkMethods['my']['my-calendar'] = array('my', 'todo');

$config->dev->skipMenus['first']  = array('project', 'product');
$config->dev->skipMenus['second'] = array('menu_storyGroup', 'menu_story', 'menu_other', 'menu_more');
$config->dev->skipMenus['third']  = array('bysearch');
if($config->vision == 'lite')
{
    $config->dev->skipMenus['first'][] = 'execution';
    $config->dev->skipMenus['second']  = array('menu_other', 'menu_more');
}

$config->dev->skipMenus['scrum'] = array();
if(!helper::hasFeature('scrum_issue')      and !helper::hasFeature('agileplus_issue'))      $config->dev->skipMenus['scrum']['issue']      = 'otherDropMenu_issue';
if(!helper::hasFeature('scrum_risk')       and !helper::hasFeature('agileplus_risk'))       $config->dev->skipMenus['scrum']['risk']       = 'otherDropMenu_risk';
if(!helper::hasFeature('scrum_meeting')    and !helper::hasFeature('agileplus_meeting'))    $config->dev->skipMenus['scrum']['meeting']    = 'otherDropMenu_meeting';
if(!helper::hasFeature('scrum_measrecord') and !helper::hasFeature('agileplus_measrecord')) $config->dev->skipMenus['scrum']['measrecord'] = 'otherDropMenu_report';

$config->dev->skipMenus['waterfall'] = array();
if(!helper::hasFeature('waterfall_track')        and !helper::hasFeature('waterfallplus_track'))        $config->dev->skipMenus['waterfall']['track']        = 'menu_track';
if(!helper::hasFeature('waterfall_researchplan') and !helper::hasFeature('waterfallplus_researchplan')) $config->dev->skipMenus['waterfall']['researchplan'] = 'otherDropMenu_research';
if(!helper::hasFeature('waterfall_issue')        and !helper::hasFeature('waterfallplus_issue'))        $config->dev->skipMenus['waterfall']['issue']        = 'otherDropMenu_issue';
if(!helper::hasFeature('waterfall_risk')         and !helper::hasFeature('waterfallplus_risk'))         $config->dev->skipMenus['waterfall']['risk']         = 'otherDropMenu_risk';
if(!helper::hasFeature('waterfall_opportunity')  and !helper::hasFeature('waterfallplus_opportunity'))  $config->dev->skipMenus['waterfall']['opportunity']  = 'otherDropMenu_opportunity';
if(!helper::hasFeature('waterfall_process')      and !helper::hasFeature('waterfallplus_process'))      $config->dev->skipMenus['waterfall']['process']      = 'otherDropMenu_pssp';
if(!helper::hasFeature('waterfall_measrecord')   and !helper::hasFeature('waterfallplus_measrecord'))   $config->dev->skipMenus['waterfall']['measrecord']   = 'otherDropMenu_report';
if(!helper::hasFeature('waterfall_auditplan')    and !helper::hasFeature('waterfallplus_auditplan'))    $config->dev->skipMenus['waterfall']['auditplan']    = 'otherDropMenu_auditplan';
if(!helper::hasFeature('waterfall_meeting')      and !helper::hasFeature('waterfallplus_meeting'))      $config->dev->skipMenus['waterfall']['meeting']      = 'otherDropMenu_meeting';
if(!helper::hasFeature('waterfall_gapanalysis')  and !helper::hasFeature('waterfallplus_gapanalysis'))  $config->dev->skipMenus['waterfall']['gapanalysis']  = 'otherDropMenu_gapanalysis';

$config->dev->skipMenus['execution'] = array();
if(!helper::hasFeature('issue'))        $config->dev->skipMenus['execution']['issue']        = 'otherDropMenu_issue';
if(!helper::hasFeature('risk'))         $config->dev->skipMenus['execution']['risk']         = 'otherDropMenu_risk';
if(!helper::hasFeature('opportunity'))  $config->dev->skipMenus['execution']['opportunity']  = 'otherDropMenu_opportunity';
if(!helper::hasFeature('process'))      $config->dev->skipMenus['execution']['process']      = 'otherDropMenu_pssp';
if(!helper::hasFeature('auditplan'))    $config->dev->skipMenus['execution']['auditplan']    = 'otherDropMenu_auditplan';
if(!helper::hasFeature('meeting'))      $config->dev->skipMenus['execution']['meeting']      = 'otherDropMenu_meeting';

$config->dev->liteTagMethod['my-contribute'] = 'contribute_task';

$config->dev->onlyMainMenu = array('kanban');

$config->dev->skipTags['project-testcase'] = array('suite', 'autocase');
$config->dev->skipTags['testcase-browse']  = array('casetype', 'suite', 'autocase');
