We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d907507 commit 2af35a2Copy full SHA for 2af35a2
packages/core/src/components/BrandConcierge/createConversationServiceRequest.js
@@ -11,15 +11,18 @@ governing permissions and limitations under the License.
11
*/
12
import { createRequest } from "../../utils/request/index.js";
13
14
+const BRAND_CONCIERGE_PATH = "/brand-concierge";
15
+const VOICE_BRAND_CONCIERGE_PATH = "/brand-concierge-voice";
16
+
17
export default ({
18
payload,
19
action = "conversations",
20
sessionId,
21
voiceEnabled = false,
22
}) => {
23
const edgeSubPath = voiceEnabled
- ? "/brand-concierge-voice"
- : "/brand-concierge";
24
+ ? VOICE_BRAND_CONCIERGE_PATH
25
+ : BRAND_CONCIERGE_PATH;
26
27
return createRequest({
28
payload: payload,
0 commit comments