bibot 1.0.32 → 1.0.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -3627,7 +3627,7 @@ var useBiBotChatBot = function useBiBotChatBot(_ref) {
3627
3627
  return Promise.resolve(askBiBot({
3628
3628
  client_id: clientId,
3629
3629
  q: input,
3630
- session_id: state.sessionId,
3630
+ session_id: client_session_id ? client_session_id : state.sessionId,
3631
3631
  chat_id: v4()
3632
3632
  })).then(function (response) {
3633
3633
  setMessages(function (messages) {
@@ -3680,7 +3680,8 @@ var useBiBotChatBot = function useBiBotChatBot(_ref) {
3680
3680
  return Promise.reject(e);
3681
3681
  }
3682
3682
  };
3683
- var clientId = _ref.clientId;
3683
+ var clientId = _ref.clientId,
3684
+ client_session_id = _ref.client_session_id;
3684
3685
  var _useState = useState([]),
3685
3686
  predefinedQuestions = _useState[0],
3686
3687
  setPredefinedQuestions = _useState[1];
@@ -4128,9 +4129,13 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4128
4129
  };
4129
4130
  var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4130
4131
  var _chatBubbleConfig$col2, _chatBubbleConfig$col3;
4131
- var clientId = _ref2.clientId;
4132
+ var clientId = _ref2.clientId,
4133
+ client_session_id = _ref2.client_session_id,
4134
+ redirect_notice = _ref2.redirect_notice;
4132
4135
  var _useBiBotChatBot2 = useBiBotChatBot({
4133
- clientId: clientId
4136
+ clientId: clientId,
4137
+ client_session_id: client_session_id,
4138
+ redirect_notice: redirect_notice
4134
4139
  }),
4135
4140
  chatIsOpen = _useBiBotChatBot2.chatIsOpen,
4136
4141
  messages = _useBiBotChatBot2.messages,
@@ -4338,9 +4343,12 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4338
4343
  };
4339
4344
 
4340
4345
  var BiBot = function BiBot(_ref) {
4341
- var clientId = _ref.clientId;
4346
+ var clientId = _ref.clientId,
4347
+ client_session_id = _ref.client_session_id;
4342
4348
  return createElement(AppProvider, null, createElement(ChatBubbleBiBot, {
4343
- clientId: clientId
4349
+ clientId: clientId,
4350
+ client_session_id: client_session_id,
4351
+ redirect_notice: false
4344
4352
  }));
4345
4353
  };
4346
4354