_0_xuanxuan.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. $config->minClientVerson = '5.0'; // 最低支持的客户端版本。The min client version of XXB support for
  3. $config->xuanxuan = new stdclass();
  4. $config->xuanxuan->version = '9.6';
  5. $config->xuanxuan->backend = 'zentao';
  6. $config->xuanxuan->backendLang = 'zh-cn';
  7. $config->xuanxuan->key = ''; //Set a 32 byte string as your key.
  8. $config->maps = array();
  9. $config->xxd = new stdclass();
  10. if(!defined('TABLE_IM_CHAT')) define('TABLE_IM_CHAT', '`' . $config->db->prefix . 'im_chat`');
  11. if(!defined('TABLE_IM_CHATUSER')) define('TABLE_IM_CHATUSER', '`' . $config->db->prefix . 'im_chatuser`');
  12. if(!defined('TABLE_IM_CLIENT')) define('TABLE_IM_CLIENT', '`' . $config->db->prefix . 'im_client`');
  13. if(!defined('TABLE_IM_MESSAGE')) define('TABLE_IM_MESSAGE', '`' . $config->db->prefix . 'im_message`');
  14. if(!defined('TABLE_IM_MESSAGESTATUS')) define('TABLE_IM_MESSAGESTATUS', '`' . $config->db->prefix . 'im_messagestatus`');
  15. if(!defined('TABLE_IM_QUEUE')) define('TABLE_IM_QUEUE', '`' . $config->db->prefix . 'im_queue`');
  16. if(!defined('TABLE_IM_CONFERENCE')) define('TABLE_IM_CONFERENCE', '`' . $config->db->prefix . 'im_conference`');
  17. if(!defined('TABLE_IM_CONFERENCEACTION')) define('TABLE_IM_CONFERENCEACTION', '`' . $config->db->prefix . 'im_conferenceaction`');
  18. if(!defined('TABLE_IM_CONFERENCEUSER')) define('TABLE_IM_CONFERENCEUSER', '`' . $config->db->prefix . 'im_conferenceuser`');
  19. if(!defined('TABLE_IM_CONFERENCEINVITE')) define('TABLE_IM_CONFERENCEINVITE', '`' . $config->db->prefix . 'im_conferenceinvite`');
  20. if(!defined('TABLE_IM_USERDEVICE')) define('TABLE_IM_USERDEVICE', '`' . $config->db->prefix . 'im_userdevice`');
  21. if(!defined('TABLE_IM_MESSAGE_BACKUP')) define('TABLE_IM_MESSAGE_BACKUP', '`' . $config->db->prefix . 'im_message_backup`');
  22. if(!defined('TABLE_IM_MESSAGE_INDEX')) define('TABLE_IM_MESSAGE_INDEX', '`' . $config->db->prefix . 'im_message_index`');
  23. if(!defined('TABLE_IM_CHAT_MESSAGE_INDEX')) define('TABLE_IM_CHAT_MESSAGE_INDEX', '`' . $config->db->prefix . 'im_chat_message_index`');
  24. $config->xuanxuan->enabledMethods['im']['sysserverstart'] = 'sysServerStart';
  25. $config->xuanxuan->enabledMethods['im']['sysgetserverinfo'] = 'sysGetServerInfo';
  26. $config->xuanxuan->enabledMethods['im']['sysgetdepts'] = 'sysGetDepts';
  27. $config->xuanxuan->enabledMethods['im']['userlogin'] = 'userLogin';
  28. $config->xuanxuan->enabledMethods['im']['userlogout'] = 'userLogout';
  29. $config->xuanxuan->enabledMethods['im']['usergetlist'] = 'userGetList';
  30. $config->xuanxuan->enabledMethods['im']['usergetlistbydept'] = 'userGetListByDept';
  31. $config->xuanxuan->enabledMethods['im']['usergetdeleted'] = 'userGetDeleted';
  32. $config->xuanxuan->enabledMethods['im']['usersearch'] = 'userSearch';
  33. $config->xuanxuan->enabledMethods['im']['userupdate'] = 'userUpdate';
  34. $config->xuanxuan->enabledMethods['im']['usersyncsettings'] = 'userSyncSettings';
  35. $config->xuanxuan->enabledMethods['im']['usersetdevicetoken'] = 'userSetDeviceToken';
  36. $config->xuanxuan->enabledMethods['im']['usergetauthtoken'] = 'userGetAuthToken';
  37. $config->xuanxuan->enabledMethods['im']['userrenewauthtoken'] = 'userRenewAuthToken';
  38. $config->xuanxuan->enabledMethods['im']['chatgetpubliclist'] = 'chatGetPublicList';
  39. $config->xuanxuan->enabledMethods['im']['chatgetlist'] = 'chatGetList';
  40. $config->xuanxuan->enabledMethods['im']['chatgetmembers'] = 'chatGetMembers';
  41. $config->xuanxuan->enabledMethods['im']['chatgetmemberdetails'] = 'chatGetMemberDetails';
  42. $config->xuanxuan->enabledMethods['im']['chatgetmessageinfo'] = 'chatGetMessageInfo';
  43. $config->xuanxuan->enabledMethods['im']['chatcreate'] = 'chatCreate';
  44. $config->xuanxuan->enabledMethods['im']['chataddadmins'] = 'chatAddAdmins';
  45. $config->xuanxuan->enabledMethods['im']['chatremoveadmins'] = 'chatRemoveAdmins';
  46. $config->xuanxuan->enabledMethods['im']['chatjoin'] = 'chatJoin';
  47. $config->xuanxuan->enabledMethods['im']['chatleave'] = 'chatLeave';
  48. $config->xuanxuan->enabledMethods['im']['chatrename'] = 'chatRename';
  49. $config->xuanxuan->enabledMethods['im']['chatarchive'] = 'chatArchive';
  50. $config->xuanxuan->enabledMethods['im']['chatdismiss'] = 'chatDismiss';
  51. $config->xuanxuan->enabledMethods['im']['chatsetcommitters'] = 'chatSetCommitters';
  52. $config->xuanxuan->enabledMethods['im']['chatsetvisibility'] = 'chatSetVisibility';
  53. $config->xuanxuan->enabledMethods['im']['chatsetconfig'] = 'chatSetConfig';
  54. $config->xuanxuan->enabledMethods['im']['chatsearch'] = 'chatSearch';
  55. $config->xuanxuan->enabledMethods['im']['chatsetavatar'] = 'chatSetAvatar';
  56. $config->xuanxuan->enabledMethods['im']['chatstar'] = 'chatStar';
  57. $config->xuanxuan->enabledMethods['im']['chathide'] = 'chatHide';
  58. $config->xuanxuan->enabledMethods['im']['chatmute'] = 'chatMute';
  59. $config->xuanxuan->enabledMethods['im']['chatfreeze'] = 'chatFreeze';
  60. $config->xuanxuan->enabledMethods['im']['chatsetcategory'] = 'chatSetCategory';
  61. $config->xuanxuan->enabledMethods['im']['chatinvite'] = 'chatInvite';
  62. $config->xuanxuan->enabledMethods['im']['chatkick'] = 'chatKick';
  63. $config->xuanxuan->enabledMethods['im']['chatchangeownership'] = 'chatChangeOwnership';
  64. $config->xuanxuan->enabledMethods['im']['chatpinmessages'] = 'chatPinMessages';
  65. $config->xuanxuan->enabledMethods['im']['chatunpinmessages'] = 'chatUnpinMessages';
  66. $config->xuanxuan->enabledMethods['im']['chatgethistory'] = 'chatGetHistory';
  67. $config->xuanxuan->enabledMethods['im']['chatsetlastreadmessage'] = 'chatSetLastReadMessage';
  68. $config->xuanxuan->enabledMethods['im']['chatsetlastreadmessagebyindex'] = 'chatSetLastReadMessageByIndex';
  69. $config->xuanxuan->enabledMethods['im']['chatmerge'] = 'chatMerge';
  70. $config->xuanxuan->enabledMethods['im']['chatgetbygid'] = 'chatGetByGid';
  71. $config->xuanxuan->enabledMethods['im']['messageretract'] = 'messageRetract';
  72. $config->xuanxuan->enabledMethods['im']['messagesend'] = 'messageSend';
  73. $config->xuanxuan->enabledMethods['im']['conferencegetbychat'] = 'conferenceGetByChat';
  74. $config->xuanxuan->enabledMethods['im']['conferencegetbynumber'] = 'conferenceGetByNumber';
  75. $config->xuanxuan->enabledMethods['im']['conferencegetbycondition'] = 'conferenceGetByCondition';
  76. $config->xuanxuan->enabledMethods['im']['conferencecreate'] = 'conferenceCreate';
  77. $config->xuanxuan->enabledMethods['im']['conferencecreatedetached'] = 'conferenceCreateDetached';
  78. $config->xuanxuan->enabledMethods['im']['conferencejoin'] = 'conferenceJoin';
  79. $config->xuanxuan->enabledMethods['im']['conferenceinvite'] = 'conferenceInvite';
  80. $config->xuanxuan->enabledMethods['im']['conferencereject'] = 'conferenceReject';
  81. $config->xuanxuan->enabledMethods['im']['conferenceleave'] = 'conferenceLeave';
  82. $config->xuanxuan->enabledMethods['im']['conferenceclose'] = 'conferenceClose';
  83. $config->xuanxuan->enabledMethods['im']['conferencehide'] = 'conferenceHide';
  84. $config->xuanxuan->enabledMethods['im']['conferencecancelscheduled'] = 'conferencecancelscheduled';
  85. $config->xuanxuan->enabledMethods['im']['conferenceedit'] = 'conferenceEdit';
  86. $config->xuanxuan->enabledMethods['im']['conferencegrantmoderator'] = 'conferenceGrantModerator';
  87. $config->xuanxuan->enabledMethods['im']['conferencegetlastopenbychat'] = 'conferenceGetLastOpenByChat';
  88. $config->xuanxuan->enabledMethods['im']['extensiongetlist'] = 'extensionGetList';
  89. $config->xuanxuan->enabledMethods['im']['syncofflinemessages'] = 'syncOfflineMessages';
  90. $config->xuanxuan->enabledMethods['im']['syncnotifications'] = 'syncNotifications';
  91. $config->xuanxuan->enabledMethods['im']['getnotification'] = 'getNotification';
  92. $config->xuanxuan->enabledMethods['im']['generalpoll'] = 'generalPoll';
  93. $config->xuanxuan->enabledMethods['im']['syncusers'] = 'syncUsers';
  94. $config->xuanxuan->enabledMethods['im']['syncdepts'] = 'syncDepts';
  95. $config->xuanxuan->enabledMethods['im']['syncconfig'] = 'syncConfig';
  96. $config->xuanxuan->enabledMethods['im']['fileupload'] = 'fileUpload';
  97. $config->xuanxuan->enabledMethods['im']['todoupsert'] = 'todoUpsert';
  98. $config->xuanxuan->enabledMethods['im']['todogetlist'] = 'todoGetList';
  99. $config->xuanxuan->enabledMethods['im']['updatelastpoll'] = 'updateLastPoll';
  100. $config->xuanxuan->enabledMethods['im']['checkpasswordchanges'] = 'checkpasswordchanges';
  101. $config->xuanxuan->enabledMethods['im']['messagesyncsinceoffline'] = 'messageSyncSinceOffline';
  102. $config->xuanxuan->enabledMethods['im']['messagesyncmissed'] = 'messageSyncMissed';
  103. $config->xuanxuan->enabledMethods['im']['chatgetlastmessage'] = 'chatGetLastMessage';
  104. $config->xuanxuan->enabledMethods['im']['messagesync'] = 'messageSync';
  105. $config->xuanxuan->enabledMethods['im']['messagesyncbyindexes'] = 'messageSyncByIndexes';
  106. $config->xuanxuan->enabledMethods['im']['messagegetlist'] = 'messageGetList';
  107. $config->xuanxuan->enabledMethods['im']['messagegetlistbyindexes'] = 'messageGetListByIndexes';
  108. $config->xuanxuan->enabledMethods['im']['maintenance'] = 'maintenance';
  109. $config->xuanxuan->enabledMethods['im']['checkuserstobekicked'] = 'checkUsersToBeKicked';
  110. $config->xuanxuan->enabledMethods['im']['getuser'] = 'getUser';
  111. $config->xuanxuan->enabledMethods['im']['bulletindelete'] = 'bulletinDelete';
  112. $config->xuanxuan->enabledMethods['im']['bulletinedit'] = 'bulletinEdit';
  113. $config->xuanxuan->enabledMethods['im']['voiceread'] = 'voiceRead';
  114. $config->xuanxuan->enabledMethods['entry']['visit'] = 'visit';
  115. $config->xuanxuan->enabledMethods['im']['messagegetreadstatus'] = 'messageGetReadStatus';
  116. // Please use lowercase keys in enabledMethods.
  117. $config->xuanxuan->enabledMethods['im']['getaipermission'] = 'getAiPermission';
  118. $config->xuanxuan->enabledMethods['im']['chatwithai'] = 'chatWithAi';
  119. $config->xuanxuan->enabledMethods['im']['clearaichatcontext'] = 'clearAiChatContext';
  120. $config->xuanxuan->enabledMethods['im']['getaiassistant'] = 'getAiAssistant';
  121. $config->xuanxuan->enabledMethods['im']['getaichat'] = 'getAiChat';