index.ts 709 B

12345678910111213141516171819
  1. import TUICustomerPluginServer from './server';
  2. import { isMessageInvisible } from './utils/index';
  3. const TUICustomerServer = TUICustomerPluginServer.getInstance();
  4. // 判断消息是否为客服号的自定义消息
  5. const isCustomerServicePluginMessage = TUICustomerServer.isCustomerServicePluginMessage.bind(TUICustomerServer);
  6. // 设置客服号
  7. const setCustomerServiceAccounts = TUICustomerServer.setCustomerServiceAccounts.bind(TUICustomerServer);
  8. // 获取客服号
  9. const getCustomerServiceAccounts = TUICustomerServer.getCustomerServiceAccounts.bind(TUICustomerServer);
  10. export {
  11. isCustomerServicePluginMessage,
  12. isMessageInvisible,
  13. setCustomerServiceAccounts,
  14. getCustomerServiceAccounts,
  15. };