<?php
/**
* The config file of zentaophp.  Don't modify this file directly, copy the item to my.php and change it.
*
* @copyright   Copyright 2009-2017 禅道软件（青岛）有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
* @license     ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author      Chunsheng Wang <chunsheng@cnezsoft.com>
* @package     config
* @version     $Id: zentaopms.php 5068 2017-06-20 15:35:22Z pengjx $
* @link        http://www.zentao.net
*/

/* Product common list. */
$config->productCommonList['zh-cn'][0] = '产品';
$config->productCommonList['zh-cn'][1] = '项目';
$config->productCommonList['zh-tw'][0] = '產品';
$config->productCommonList['zh-tw'][1] = '項目';
$config->productCommonList['en'][0]    = 'Product';
$config->productCommonList['en'][1]    = 'Project';
$config->productCommonList['de'][0]    = 'Produkt';
$config->productCommonList['de'][1]    = 'Projekt';
$config->productCommonList['fr'][0]    = 'Product';
$config->productCommonList['fr'][1]    = 'Project';
$config->productCommonList['vi'][0]    = 'Sản phẩm';
$config->productCommonList['vi'][1]    = 'Project';
$config->productCommonList['ru'][0]    = 'продукт';
$config->productCommonList['ru'][1]    = 'Проект';
$config->productCommonList['ja'][0]    = '製品';
$config->productCommonList['ja'][1]    = 'プロジェクト';
$config->productCommonList['es'][0]    = 'Productos';
$config->productCommonList['es'][1]    = 'Proyecto';
$config->productCommonList['pt'][0]    = 'produto';
$config->productCommonList['pt'][1]    = 'projecto';

/* Project common list. */
$config->projectCommonList['zh-cn'][0] = '项目';
$config->projectCommonList['zh-cn'][1] = '迭代';
$config->projectCommonList['zh-cn'][2] = '冲刺';

$config->projectCommonList['zh-tw'][0] = '項目';
$config->projectCommonList['zh-tw'][1] = '迭代';
$config->projectCommonList['zh-tw'][2] = '冲刺';

$config->projectCommonList['en'][0] = 'Project';
$config->projectCommonList['en'][1] = 'Iteration';
$config->projectCommonList['en'][2] = 'Sprint';

$config->projectCommonList['de'][0] = 'Project';
$config->projectCommonList['de'][1] = 'Iteration';
$config->projectCommonList['de'][2] = 'Sprint';

$config->projectCommonList['fr'][0] = 'Project';
$config->projectCommonList['fr'][1] = 'Iteration';
$config->projectCommonList['fr'][2] = 'Sprint';

$config->projectCommonList['vi'][0] = 'Project';
$config->projectCommonList['vi'][1] = 'Iteration';
$config->projectCommonList['vi'][2] = 'Sprint';

$config->projectCommonList['ru'][0] = 'Проект';
$config->projectCommonList['ru'][1] = 'итерация';
$config->projectCommonList['ru'][2] = 'пробивание';

$config->projectCommonList['ja'][0] = 'プロジェクト';
$config->projectCommonList['ja'][1] = '反復';
$config->projectCommonList['ja'][2] = 'スパート';

$config->projectCommonList['es'][0] = 'Proyecto';
$config->projectCommonList['es'][1] = 'Iteración';
$config->projectCommonList['es'][2] = 'Sprint';

$config->projectCommonList['pt'][0] = 'Projecto';
$config->projectCommonList['pt'][1] = 'Iteração';
$config->projectCommonList['pt'][2] = 'Sprint';

$config->executionCommonList['zh-cn'][0] = '迭代';
$config->executionCommonList['zh-cn'][1] = '冲刺';
$config->executionCommonList['zh-cn'][2] = '阶段';

$config->executionCommonList['zh-tw'][0] = '迭代';
$config->executionCommonList['zh-tw'][1] = '冲刺';
$config->executionCommonList['zh-tw'][2] = '階段';

$config->executionCommonList['en'][0] = 'Iteration';
$config->executionCommonList['en'][1] = 'Sprint';
$config->executionCommonList['en'][2] = 'Stage';

$config->executionCommonList['de'][0] = 'Iteration';
$config->executionCommonList['de'][1] = 'Sprint';
$config->executionCommonList['de'][2] = 'Bühne';

$config->executionCommonList['fr'][0] = 'Iteration';
$config->executionCommonList['fr'][1] = 'Sprint';
$config->executionCommonList['fr'][2] = 'Phase';

$config->executionCommonList['vi'][0] = 'Lặp lại';
$config->executionCommonList['vi'][1] = 'Sprint';
$config->executionCommonList['vi'][2] = 'Giai đoạn';

$config->executionCommonList['ru'][0] = 'итерация';
$config->executionCommonList['ru'][1] = 'пробивание';
$config->executionCommonList['ru'][2] = ' этап';

$config->executionCommonList['ja'][0] = '反復';
$config->executionCommonList['ja'][1] = 'スパート';
$config->executionCommonList['ja'][2] = 'ステージ';

$config->executionCommonList['es'][0] = 'Iteración';
$config->executionCommonList['es'][1] = 'Sprint';
$config->executionCommonList['es'][2] = 'Fase';

$config->executionCommonList['pt'][0] = 'Iteração';
$config->executionCommonList['pt'][1] = 'Sprint';
$config->executionCommonList['pt'][2] = 'Fase';

/* Story common list. */
$config->hourPointCommonList['zh-cn'][0] = '工时';
$config->hourPointCommonList['zh-cn'][1] = '故事点';
$config->hourPointCommonList['zh-cn'][2] = '功能点';

$config->hourPointCommonList['zh-tw'][0] = '工时';
$config->hourPointCommonList['zh-tw'][1] = '故事点';
$config->hourPointCommonList['zh-tw'][2] = '功能点';

$config->hourPointCommonList['en'][0] = 'Hours';
$config->hourPointCommonList['en'][1] = 'story point';
$config->hourPointCommonList['en'][2] = 'function point';

$config->hourPointCommonList['de'][0] = 'Stunde';
$config->hourPointCommonList['de'][1] = 'story point';
$config->hourPointCommonList['de'][2] = 'function point';

$config->hourPointCommonList['fr'][0] = 'Heures';
$config->hourPointCommonList['fr'][1] = 'story point';
$config->hourPointCommonList['fr'][2] = 'function point';

$config->hourPointCommonList['vi'][0] = 'giờ';
$config->hourPointCommonList['vi'][1] = 'điểm';
$config->hourPointCommonList['vi'][2] = 'function point';

$config->hourPointCommonList['ru'][0] = 'продолжительность рабочего времени';
$config->hourPointCommonList['ru'][1] = 'точка повести';
$config->hourPointCommonList['ru'][2] = 'функциональная точка';

$config->hourPointCommonList['ja'][0] = '工数';
$config->hourPointCommonList['ja'][1] = 'ストーリーポイント';
$config->hourPointCommonList['ja'][2] = 'きのうてん';

$config->hourPointCommonList['es'][0] = 'Horas de trabajo';
$config->hourPointCommonList['es'][1] = 'Punto de historia';
$config->hourPointCommonList['es'][2] = 'Punto de función';

$config->hourPointCommonList['pt'][0] = 'horas de trabalho';
$config->hourPointCommonList['pt'][1] = 'Ponto da história';
$config->hourPointCommonList['pt'][2] = 'Ponto de função';

$config->manualUrl['home'] = 'https://www.zentao.net/book/zentaopms/38.html?fullScreen=zentao';
$config->manualUrl['int']  = 'https://www.zentao.pm/book/zentaomanual/zentao-installation-11.html?fullScreen=zentao';

/* Supported charsets. */
$config->charsets['zh-cn']['utf-8'] = 'UTF-8';
$config->charsets['zh-cn']['gbk']   = 'GBK';
$config->charsets['zh-tw']['utf-8'] = 'UTF-8';
$config->charsets['zh-tw']['big5']  = 'BIG5';
$config->charsets['en']['utf-8']    = 'UTF-8';
$config->charsets['en']['GBK']      = 'GBK';
$config->charsets['de']['utf-8']    = 'UTF-8';
$config->charsets['de']['GBK']      = 'GBK';
$config->charsets['fr']['utf-8']    = 'UTF-8';
$config->charsets['fr']['GBK']      = 'GBK';
$config->charsets['vi']['utf-8']    = 'UTF-8';
$config->charsets['vi']['GBK']      = 'GBK';
$config->charsets['ru']['utf-8']    = 'UTF-8';
$config->charsets['ru']['GBK']      = 'GBK';
$config->charsets['ja']['utf-8']    = 'UTF-8';
$config->charsets['ja']['GBK']      = 'GBK';
$config->charsets['es']['utf-8']    = 'UTF-8';
$config->charsets['es']['GBK']      = 'GBK';
$config->charsets['pt']['utf-8']    = 'UTF-8';
$config->charsets['pt']['GBK']      = 'GBK';

if(!isset($config->openMethods) || !is_array($config->openMethods)) $config->openMethods = array();
$config->openMethods[] = 'gitlab.webhook';
$config->openMethods[] = 'upgrade.ajaxupdatefile';
$config->openMethods[] = 'user.login';
$config->openMethods[] = 'user.logout';
$config->openMethods[] = 'user.deny';
$config->openMethods[] = 'user.reset';
$config->openMethods[] = 'user.forgetpassword';
$config->openMethods[] = 'user.refreshrandom';
$config->openMethods[] = 'user.resetpassword';
$config->openMethods[] = 'api.getsessionid';
$config->openMethods[] = 'misc.checktable';
$config->openMethods[] = 'misc.qrcode';
$config->openMethods[] = 'misc.about';
$config->openMethods[] = 'misc.checkupdate';
$config->openMethods[] = 'misc.ping';
$config->openMethods[] = 'misc.captcha';
$config->openMethods[] = 'misc.features';
$config->openMethods[] = 'misc.getremind';
$config->openMethods[] = 'misc.checknetconnect';
$config->openMethods[] = 'sso.login';
$config->openMethods[] = 'sso.logout';
$config->openMethods[] = 'sso.bind';
$config->openMethods[] = 'sso.gettodolist';
$config->openMethods[] = 'file.read';
$config->openMethods[] = 'index.changelog';
$config->openMethods[] = 'my.preference';
$config->openMethods[] = 'my.changepassword';
$config->openMethods[] = 'my.profile';
$config->openMethods[] = 'my.settutorialconfig';
$config->openMethods[] = 'doc.selectlibtype';
$config->openMethods[] = 'sso.getfeishusso';
$config->openMethods[] = 'sso.feishuauthen';
$config->openMethods[] = 'sso.feishulogin';
$config->openMethods[] = 'kanban.importcard';
$config->openMethods[] = 'kanban.importplan';
$config->openMethods[] = 'kanban.importrelease';
$config->openMethods[] = 'kanban.importexecution';
$config->openMethods[] = 'kanban.importbuild';
$config->openMethods[] = 'kanban.importticket';
$config->openMethods[] = 'kanban.activatecard';
$config->openMethods[] = 'kanban.finishcard';
$config->openMethods[] = 'kanban.deleteobjectcard';
$config->openMethods[] = 'admin.ignore';
$config->openMethods[] = 'personnel.unbindwhitelist';
$config->openMethods[] = 'tree.viewhistory';
$config->openMethods[] = 'doc.createbasicinfo';
$config->openMethods[] = 'project.createguide';
$config->openMethods[] = 'task.editteam';
$config->openMethods[] = 'feedback.mergeproductmodule';
$config->openMethods[] = 'zanode.nodelist';
$config->openMethods[] = 'action.restorestages';
$config->openMethods[] = 'execution.browse';
$config->openMethods[] = 'testcase.showimport';
$config->openMethods[] = 'testsuite.index';
$config->openMethods[] = 'caselib.index';
$config->openMethods[] = 'company.index';
$config->openMethods[] = 'user.cropavatar';
$config->openMethods[] = 'custom.index';
$config->openMethods[] = 'testcase.getxmindimport';
$config->openMethods[] = 'testcase.showxmindimport';
$config->openMethods[] = 'testcase.savexmindimport';
$config->openMethods[] = 'search.buildzinform';
$config->openMethods[] = 'search.buildzinquery';
$config->openMethods[] = 'search.savezinquery';
$config->openMethods[] = 'space.createapplication';
$config->openMethods[] = 'ai.adminindex';
$config->openMethods[] = 'sonarqube.create';
$config->openMethods[] = 'sonarqube.edit';
$config->openMethods[] = 'sonarqube.browseproject';
$config->openMethods[] = 'sonarqube.createproject';
$config->openMethods[] = 'sonarqube.deleteproject';
$config->openMethods[] = 'sonarqube.execjob';
$config->openMethods[] = 'sonarqube.reportview';
$config->openMethods[] = 'sonarqube.browseissue';
$config->openMethods[] = 'gitlab.create';
$config->openMethods[] = 'gitlab.edit';
$config->openMethods[] = 'gitlab.importissue';
$config->openMethods[] = 'gitlab.binduser';
$config->openMethods[] = 'gitlab.browseproject';
$config->openMethods[] = 'gitlab.createproject';
$config->openMethods[] = 'gitlab.editproject';
$config->openMethods[] = 'gitlab.deleteproject';
$config->openMethods[] = 'gitlab.browsegroup';
$config->openMethods[] = 'gitlab.creategroup';
$config->openMethods[] = 'gitlab.editgroup';
$config->openMethods[] = 'gitlab.deletegroup';
$config->openMethods[] = 'gitlab.managegroupmembers';
$config->openMethods[] = 'gitlab.browseuser';
$config->openMethods[] = 'gitlab.createuser';
$config->openMethods[] = 'gitlab.edituser';
$config->openMethods[] = 'gitlab.deleteuser';
$config->openMethods[] = 'gitlab.createbranch';
$config->openMethods[] = 'gitlab.browsebranch';
$config->openMethods[] = 'gitlab.webhook';
$config->openMethods[] = 'gitlab.createwebhook';
$config->openMethods[] = 'gitlab.manageprojectmembers';
$config->openMethods[] = 'gitlab.managebranchpriv';
$config->openMethods[] = 'gitlab.managetagpriv';
$config->openMethods[] = 'gitlab.browsetag';
$config->openMethods[] = 'gitlab.createtag';
$config->openMethods[] = 'gitlab.deletetag';
$config->openMethods[] = 'gogs.create';
$config->openMethods[] = 'gogs.edit';
$config->openMethods[] = 'gogs.binduser';
$config->openMethods[] = 'gitea.create';
$config->openMethods[] = 'gitea.edit';
$config->openMethods[] = 'gitea.binduser';
$config->openMethods[] = 'jenkins.create';
$config->openMethods[] = 'jenkins.edit';
$config->openMethods[] = 'instance.createexternalapp';
$config->openMethods[] = 'instance.editexternalapp';
$config->openMethods[] = 'instance.deleteexternalapp';
$config->openMethods[] = 'instance.setting';
$config->openMethods[] = 'instance.ajaxdbauthurl';
$config->openMethods[] = 'instance.view';
$config->openMethods[] = 'instance.install';
$config->openMethods[] = 'instance.visit';
$config->openMethods[] = 'instance.ajaxstatus';
$config->openMethods[] = 'instance.ajaxstart';
$config->openMethods[] = 'instance.ajaxstop';
$config->openMethods[] = 'instance.upgrade';
$config->openMethods[] = 'instance.ajaxuninstall';
$config->openMethods[] = 'search.deletezinquery';
$config->openMethods[] = 'space.edit';
$config->openMethods[] = 'space.binduser';
$config->openMethods[] = 'space.getstoreappinfo';
$config->openMethods[] = 'store.browse';
$config->openMethods[] = 'store.appview';
$config->openMethods[] = 'system.editdomain';
$config->openMethods[] = 'doc.uploaddocs';
$config->openMethods[] = 'cron.schedule';
$config->openMethods[] = 'cron.consume';
$config->openMethods[] = 'caselib.importfromlib';

$config->openModules = array();
$config->openModules[] = 'install';
$config->openModules[] = 'upgrade';
$config->openModules[] = 'im';

/* Define the tables. */
define('TABLE_COMPANY',       '`' . $config->db->prefix . 'company`');
define('TABLE_DEPT',          '`' . $config->db->prefix . 'dept`');
define('TABLE_CONFIG',        '`' . $config->db->prefix . 'config`');
define('TABLE_USER',          '`' . $config->db->prefix . 'user`');
define('TABLE_TODO',          '`' . $config->db->prefix . 'todo`');
define('TABLE_GROUP',         '`' . $config->db->prefix . 'group`');
define('TABLE_GROUPPRIV',     '`' . $config->db->prefix . 'grouppriv`');
define('TABLE_USERGROUP',     '`' . $config->db->prefix . 'usergroup`');
define('TABLE_USERQUERY',     '`' . $config->db->prefix . 'userquery`');
define('TABLE_USERCONTACT',   '`' . $config->db->prefix . 'usercontact`');
define('TABLE_USERVIEW',      '`' . $config->db->prefix . 'userview`');

define('TABLE_BUG',           '`' . $config->db->prefix . 'bug`');
define('TABLE_CASE',          '`' . $config->db->prefix . 'case`');
define('TABLE_CASESTEP',      '`' . $config->db->prefix . 'casestep`');
define('TABLE_TESTTASK',      '`' . $config->db->prefix . 'testtask`');
define('TABLE_TESTRUN',       '`' . $config->db->prefix . 'testrun`');
define('TABLE_TESTRESULT',    '`' . $config->db->prefix . 'testresult`');
define('TABLE_USERTPL',       '`' . $config->db->prefix . 'usertpl`');
define('TABLE_ZAHOST',        '`' . $config->db->prefix . 'host`');
define('TABLE_IMAGE',         '`' . $config->db->prefix . 'image`');
define('TABLE_AUTOMATION',    '`' . $config->db->prefix . 'automation`');

if(!defined('TABLE_ASSET'))  define('TABLE_ASSET', '`' . $config->db->prefix . 'asset`');

define('TABLE_PRODUCT',       '`' . $config->db->prefix . 'product`');
define('TABLE_BRANCH',        '`' . $config->db->prefix . 'branch`');
define('TABLE_EXPECT',        '`' . $config->db->prefix . 'expect`');
define('TABLE_STAGE',         '`' . $config->db->prefix . 'stage`');
define('TABLE_STAKEHOLDER',   '`' . $config->db->prefix . 'stakeholder`');
define('TABLE_STORY',         '`' . $config->db->prefix . 'story`');
define('TABLE_STORYSPEC',     '`' . $config->db->prefix . 'storyspec`');
define('TABLE_STORYREVIEW',   '`' . $config->db->prefix . 'storyreview`');
define('TABLE_STORYSTAGE',    '`' . $config->db->prefix . 'storystage`');
define('TABLE_STORYESTIMATE', '`' . $config->db->prefix . 'storyestimate`');
define('TABLE_PRODUCTPLAN',   '`' . $config->db->prefix . 'productplan`');
define('TABLE_PLANSTORY',     '`' . $config->db->prefix . 'planstory`');
define('TABLE_RELEASE',       '`' . $config->db->prefix . 'release`');

define('TABLE_PROGRAM',       '`' . $config->db->prefix . 'project`');
define('TABLE_PROJECT',       '`' . $config->db->prefix . 'project`');
define('TABLE_EXECUTION',     '`' . $config->db->prefix . 'project`');
define('TABLE_TASK',          '`' . $config->db->prefix . 'task`');
define('TABLE_TASKSPEC',      '`' . $config->db->prefix . 'taskspec`');
define('TABLE_TASKTEAM',      '`' . $config->db->prefix . 'taskteam`');
define('TABLE_TEAM',          '`' . $config->db->prefix . 'team`');
define('TABLE_PROJECTADMIN',  '`' . $config->db->prefix . 'projectadmin`');
define('TABLE_PROJECTPRODUCT','`' . $config->db->prefix . 'projectproduct`');
define('TABLE_PROJECTSTORY',  '`' . $config->db->prefix . 'projectstory`');
define('TABLE_PROJECTCASE',   '`' . $config->db->prefix . 'projectcase`');
define('TABLE_TASKESTIMATE',  '`' . $config->db->prefix . 'taskestimate`');
define('TABLE_EFFORT',        '`' . $config->db->prefix . 'effort`');
define('TABLE_BURN',          '`' . $config->db->prefix . 'burn`');
define('TABLE_CFD',           '`' . $config->db->prefix . 'cfd`');
define('TABLE_BUILD',         '`' . $config->db->prefix . 'build`');
define('TABLE_ACL',           '`' . $config->db->prefix . 'acl`');

define('TABLE_DESIGN',          '`' . $config->db->prefix . 'design`');
define('TABLE_DESIGNSPEC',      '`' . $config->db->prefix . 'designspec`');
define('TABLE_DOCLIB',          '`' . $config->db->prefix . 'doclib`');
define('TABLE_DOC',             '`' . $config->db->prefix . 'doc`');
define('TABLE_API',             '`' . $config->db->prefix . 'api`');
define('TABLE_API_SPEC',        '`' . $config->db->prefix . 'apispec`');
define('TABLE_APISTRUCT',       '`' . $config->db->prefix . 'apistruct`');
define('TABLE_APISTRUCT_SPEC',  '`' . $config->db->prefix . 'apistruct_spec`');
define('TABLE_API_LIB_RELEASE', '`' . $config->db->prefix . 'api_lib_release`');

define('TABLE_MODULE',        '`' . $config->db->prefix . 'module`');
define('TABLE_ACTION',        '`' . $config->db->prefix . 'action`');
define('TABLE_ACTIONRECENT',  '`' . $config->db->prefix . 'actionrecent`');
define('TABLE_FILE',          '`' . $config->db->prefix . 'file`');
define('TABLE_HOLIDAY',       '`' . $config->db->prefix . 'holiday`');
define('TABLE_HISTORY',       '`' . $config->db->prefix . 'history`');
define('TABLE_EXTENSION',     '`' . $config->db->prefix . 'extension`');
define('TABLE_CRON',          '`' . $config->db->prefix . 'cron`');
define('TABLE_QUEUE',         '`' . $config->db->prefix . 'queue`');
define('TABLE_BLOCK',         '`' . $config->db->prefix . 'block`');
define('TABLE_DOCACTION',     '`' . $config->db->prefix . 'docaction`');
define('TABLE_DOCCONTENT',    '`' . $config->db->prefix . 'doccontent`');
define('TABLE_TESTSUITE',     '`' . $config->db->prefix . 'testsuite`');
define('TABLE_SUITECASE',     '`' . $config->db->prefix . 'suitecase`');
define('TABLE_TESTREPORT',    '`' . $config->db->prefix . 'testreport`');

define('TABLE_ENTRY',         '`' . $config->db->prefix . 'entry`');
define('TABLE_WEEKLYREPORT',  '`' . $config->db->prefix . 'weeklyreport`');
define('TABLE_WEBHOOK',       '`' . $config->db->prefix . 'webhook`');
define('TABLE_LOG',           '`' . $config->db->prefix . 'log`');
define('TABLE_SCORE',         '`' . $config->db->prefix . 'score`');
define('TABLE_NOTIFY',        '`' . $config->db->prefix . 'notify`');
define('TABLE_OAUTH',         '`' . $config->db->prefix . 'oauth`');
define('TABLE_PIPELINE',      '`' . $config->db->prefix . 'pipeline`');
define('TABLE_JOB',           '`' . $config->db->prefix . 'job`');
define('TABLE_COMPILE',       '`' . $config->db->prefix . 'compile`');
define('TABLE_MR',            '`' . $config->db->prefix . 'mr`');
define('TABLE_MRAPPROVAL',    '`' . $config->db->prefix . 'mrapproval`');

define('TABLE_SERVERROOM',   '`' . $config->db->prefix . 'serverroom`');
define('TABLE_ACCOUNT',      '`' . $config->db->prefix . 'account`');
define('TABLE_HOST',         '`' . $config->db->prefix . 'host`');
define('TABLE_REPO',         '`' . $config->db->prefix . 'repo`');
define('TABLE_RELATION',     '`' . $config->db->prefix . 'relation`');
define('TABLE_REPOHISTORY',  '`' . $config->db->prefix . 'repohistory`');
define('TABLE_REPOFILES',    '`' . $config->db->prefix . 'repofiles`');
define('TABLE_REPOBRANCH',   '`' . $config->db->prefix . 'repobranch`');
define('TABLE_KANBAN',       '`' . $config->db->prefix . 'kanban`');
define('TABLE_KANBANSPACE',  '`' . $config->db->prefix . 'kanbanspace`');
define('TABLE_KANBANREGION', '`' . $config->db->prefix . 'kanbanregion`');
define('TABLE_KANBANLANE',   '`' . $config->db->prefix . 'kanbanlane`');
define('TABLE_KANBANCOLUMN', '`' . $config->db->prefix . 'kanbancolumn`');
define('TABLE_KANBANORDER',  '`' . $config->db->prefix . 'kanbanorder`');
define('TABLE_KANBANGROUP',  '`' . $config->db->prefix . 'kanbangroup`');
define('TABLE_KANBANCARD',   '`' . $config->db->prefix . 'kanbancard`');
define('TABLE_KANBANCELL',   '`' . $config->db->prefix . 'kanbancell`');
if(!defined('TABLE_LANG'))        define('TABLE_LANG', '`' . $config->db->prefix . 'lang`');
if(!defined('TABLE_PROJECTSPEC')) define('TABLE_PROJECTSPEC', '`' . $config->db->prefix . 'projectspec`');

if(!defined('TABLE_SEARCHINDEX')) define('TABLE_SEARCHINDEX', $config->db->prefix . 'searchindex');
if(!defined('TABLE_SEARCHDICT'))  define('TABLE_SEARCHDICT',  $config->db->prefix . 'searchdict');

define('TABLE_SCREEN',    '`' . $config->db->prefix . 'screen`');
define('TABLE_CHART',     '`' . $config->db->prefix . 'chart`');
define('TABLE_PIVOT',     '`' . $config->db->prefix . 'pivot`');
define('TABLE_DASHBOARD', '`' . $config->db->prefix . 'dashboard`');
define('TABLE_DATASET',   '`' . $config->db->prefix . 'dataset`');
define('TABLE_DATAVIEW',  '`' . $config->db->prefix . 'dataview`');
define('TABLE_DIMENSION', '`' . $config->db->prefix . 'dimension`');
define('TABLE_SCENE',     '`' . $config->db->prefix . 'scene`');

define('TABLE_PRIV',         '`' . $config->db->prefix . 'priv`');
define('TABLE_PRIVLANG',     '`' . $config->db->prefix . 'privlang`');
define('TABLE_PRIVMANAGER',  '`' . $config->db->prefix . 'privmanager`');
define('TABLE_PRIVRELATION', '`' . $config->db->prefix . 'privrelation`');

define('TABLE_SPACE',    '`' . $config->db->prefix . 'space`');
define('TABLE_INSTANCE', '`' . $config->db->prefix . 'instance`');
define('TABLE_SOLUTION', '`' . $config->db->prefix . 'solution`');
define('TABLE_ARTIFACTREPO', '`' . $config->db->prefix . 'artifactrepo`');
define('TABLE_PROMPT', '`' . $config->db->prefix . 'prompt`');
define('TABLE_PROMPTROLE', '`' . $config->db->prefix . 'promptrole`');

define('TABLE_METRIC', '' . $config->db->prefix . 'metric');
define('TABLE_METRICLIB', '' . $config->db->prefix . 'metriclib');
define('TABLE_METRICRECORDS', '' . $config->db->prefix . 'metricrecords');
define('TABLE_BASICMEAS', '' . $config->db->prefix . 'basicmeas');

$config->objectTables['product']      = TABLE_PRODUCT;
$config->objectTables['productplan']  = TABLE_PRODUCTPLAN;
$config->objectTables['story']        = TABLE_STORY;
$config->objectTables['requirement']  = TABLE_STORY;
$config->objectTables['release']      = TABLE_RELEASE;
$config->objectTables['program']      = TABLE_PROJECT;
$config->objectTables['project']      = TABLE_PROJECT;
$config->objectTables['execution']    = TABLE_PROJECT;
$config->objectTables['task']         = TABLE_TASK;
$config->objectTables['build']        = TABLE_BUILD;
$config->objectTables['bug']          = TABLE_BUG;
$config->objectTables['case']         = TABLE_CASE;
$config->objectTables['testcase']     = TABLE_CASE;
$config->objectTables['testtask']     = TABLE_TESTTASK;
$config->objectTables['testsuite']    = TABLE_TESTSUITE;
$config->objectTables['testreport']   = TABLE_TESTREPORT;
$config->objectTables['user']         = TABLE_USER;
$config->objectTables['api']          = TABLE_API;
$config->objectTables['doc']          = TABLE_DOC;
$config->objectTables['doclib']       = TABLE_DOCLIB;
$config->objectTables['todo']         = TABLE_TODO;
$config->objectTables['custom']       = TABLE_LANG;
$config->objectTables['branch']       = TABLE_BRANCH;
$config->objectTables['module']       = TABLE_MODULE;
$config->objectTables['caselib']      = TABLE_TESTSUITE;
$config->objectTables['entry']        = TABLE_ENTRY;
$config->objectTables['webhook']      = TABLE_WEBHOOK;
$config->objectTables['stakeholder']  = TABLE_STAKEHOLDER;
$config->objectTables['job']          = TABLE_JOB;
$config->objectTables['team']         = TABLE_TEAM;
$config->objectTables['pipeline']     = TABLE_PIPELINE;
$config->objectTables['mr']           = TABLE_MR;
$config->objectTables['kanban']       = TABLE_KANBAN;
$config->objectTables['kanbanspace']  = TABLE_KANBANSPACE;
$config->objectTables['kanbanregion'] = TABLE_KANBANREGION;
$config->objectTables['kanbancolumn'] = TABLE_KANBANCOLUMN;
$config->objectTables['kanbanlane']   = TABLE_KANBANLANE;
$config->objectTables['kanbanorder']  = TABLE_KANBANORDER;
$config->objectTables['kanbangroup']  = TABLE_KANBANGROUP;
$config->objectTables['kanbancard']   = TABLE_KANBANCARD;
$config->objectTables['sonarqube']    = TABLE_PIPELINE;
$config->objectTables['gitea']        = TABLE_PIPELINE;
$config->objectTables['gogs']         = TABLE_PIPELINE;
$config->objectTables['gitlab']       = TABLE_PIPELINE;
$config->objectTables['jebkins']      = TABLE_PIPELINE;
$config->objectTables['stage']        = TABLE_STAGE;
$config->objectTables['apistruct']    = TABLE_APISTRUCT;
$config->objectTables['repo']         = TABLE_REPO;
$config->objectTables['dataview']     = TABLE_DATAVIEW;
$config->objectTables['zahost']       = TABLE_ZAHOST;
$config->objectTables['zanode']       = TABLE_ZAHOST;
$config->objectTables['automation']   = TABLE_AUTOMATION;
$config->objectTables['stepResult']   = TABLE_TESTRUN;
$config->objectTables['priv']         = TABLE_PRIV;
$config->objectTables['privlang']     = TABLE_PRIVLANG;
$config->objectTables['privmanager']  = TABLE_PRIVMANAGER;
$config->objectTables['privrelation'] = TABLE_PRIVRELATION;
$config->objectTables['scene']        = TABLE_SCENE;
$config->objectTables['account']      = TABLE_ACCOUNT;
$config->objectTables['serverroom']   = TABLE_SERVERROOM;
$config->objectTables['host']         = TABLE_ZAHOST;
$config->objectTables['instance']     = TABLE_INSTANCE;
$config->objectTables['space']        = TABLE_SPACE;
$config->objectTables['solution']     = TABLE_SOLUTION;
$config->objectTables['artifactrepo'] = TABLE_ARTIFACTREPO;
$config->objectTables['prompt']       = TABLE_PROMPT;
$config->objectTables['metric']       = TABLE_METRIC;

$config->newFeatures      = array('aiChat', 'aiPrompts');
$config->disabledFeatures = '';
$config->closedFeatures   = '';

$config->pipelineTypeList = array('gitlab', 'gogs', 'gitea', 'jenkins', 'sonarqube');

/* Program privs.*/
$config->programPriv = new stdclass();
$config->programPriv->noSprint      = array('task', 'story', 'tree', 'project', 'execution', 'projectbuild', 'bug', 'testcase', 'testreport', 'doc', 'repo', 'stakeholder', 'projectrelease', 'requirement');
$config->programPriv->scrum         = array('story', 'requirement', 'productplan', 'tree', 'projectplan', 'projectstory', 'projectrelease', 'project', 'execution', 'projectbuild', 'bug', 'testcase', 'testreport', 'doc', 'repo', 'meeting', 'stakeholder', 'testtask');
$config->programPriv->waterfall     = array_merge($config->programPriv->scrum, array('workestimation', 'durationestimation', 'budget', 'programplan', 'review', 'reviewissue', 'weekly', 'cm', 'milestone', 'design', 'issue', 'risk', 'opportunity', 'measrecord', 'auditplan', 'trainplan', 'gapanalysis', 'pssp', 'researchplan', 'researchreport'));
$config->programPriv->agileplus     = $config->programPriv->scrum;
$config->programPriv->waterfallplus = $config->programPriv->waterfall;
$config->programPriv->ipd           = $config->programPriv->waterfall;

$config->safeFileTimeout  = 3600;
$config->waterfallModules = array('workestimation', 'durationestimation', 'budget', 'programplan', 'review', 'reviewissue', 'weekly', 'cm', 'milestone', 'design', 'opportunity', 'auditplan', 'trainplan', 'gapanalysis', 'pssp', 'researchplan', 'researchreport');

$config->showMainMenu = true;
$config->maxPriValue  = '256';

$config->importWhiteList = array('user', 'task', 'story', 'bug', 'testcase', 'feedback', 'ticket');

$config->featureGroup = new stdclass();
$config->featureGroup->my            = array('score');
$config->featureGroup->product       = array('roadmap', 'track', 'UR');
$config->featureGroup->scrum         = array();
$config->featureGroup->waterfall     = array();
$config->featureGroup->agileplus     = array();
$config->featureGroup->waterfallplus = array();
$config->featureGroup->assetlib      = array();
$config->featureGroup->other         = array('devops', 'kanban');

$config->bi = new stdclass();
$config->bi->pickerHeight = 150;

$config->hasDropmenuApps      = array('program', 'project', 'product', 'execution', 'qa', 'admin');
$config->hasBranchMenuModules = array('product', 'story', 'release', 'bug', 'testcase');
$config->excludeDropmenuList  = array('program-browse', 'product-all', 'product-index', 'execution-all', 'project-browse', 'product-batchedit', 'admin-index', 'product-create', 'project-create', 'execution-create', 'program-create', 'execution-batchedit');
$config->hasSwitcherModules   = array('design');
$config->excludeSwitcherList  = array();
$config->hasMainNavBar        = array();
