"use strict";const e=require("../../../common/vendor.js"),s=require("./message-customer/index.js"),o=require("../../utils/type-check.js");function n(e){var s;const n=o.JSONToObject(null==(s=null==e?void 0:e.payload)?void 0:s.data);if(1===(null==n?void 0:n.businessID)&&(null==n?void 0:n.data)){if("av_call"===o.JSONToObject(n.data).businessID)return!0}return!1}function i(e){var s;const n=o.JSONToObject(null==(s=null==e?void 0:e.payload)?void 0:s.data);return"group_room_message"===(null==n?void 0:n.businessID)}exports.isCallMessage=n,exports.isPluginMessage=function(u){return u.type===e.qt.TYPES.MSG_CUSTOM&&(n(u)||s.isCustomerServicePluginMessage(u)||i(u)||function(e){var s;const n=o.JSONToObject(null==(s=null==e?void 0:e.payload)?void 0:s.data);return"ROOM_INVITE_ACTION"===(null==n?void 0:n.businessID)||"tuikit_engine_room"===(null==n?void 0:n.businessID)}(u))},exports.isRoomCardMessage=i;
