bibot 1.0.33 → 1.0.34

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -3495,33 +3495,17 @@ var AppProvider = function AppProvider(_ref) {
3495
3495
  };
3496
3496
 
3497
3497
  var getRemoteClientChatPredefinedQuestions = function getRemoteClientChatPredefinedQuestions(params) {
3498
- try {
3499
- return Promise.resolve(_catch(function () {
3500
- var path = "" + domain.inference + resources.predefinedQ;
3501
- return Promise.resolve(pluginAxiosInstance.get(path, {
3502
- params: params
3503
- })).then(function (response) {
3504
- console.log(response.data.predefined_questions);
3505
- return response.data.predefined_questions;
3506
- });
3507
- }, function () {
3508
- return [{
3509
- question: 'These are placeholders',
3510
- answer: ''
3511
- }, {
3512
- question: 'They will be removed in production',
3513
- answer: ''
3514
- }, {
3515
- question: 'This will be empty if there are no predefined questions',
3516
- answer: ''
3517
- }, {
3518
- question: 'So hide if there are no predefined questions',
3519
- answer: ''
3520
- }];
3521
- }));
3522
- } catch (e) {
3523
- return Promise.reject(e);
3524
- }
3498
+ return Promise.resolve(_catch(function () {
3499
+ var path = "" + domain.inference + resources.predefinedQ;
3500
+ return Promise.resolve(pluginAxiosInstance.get(path, {
3501
+ params: params
3502
+ })).then(function (response) {
3503
+ console.log(response.data.predefined_questions);
3504
+ return response.data.predefined_questions;
3505
+ });
3506
+ }, function () {
3507
+ return [];
3508
+ }));
3525
3509
  };
3526
3510
  var getRemoteClientChatBubbleConfig = function getRemoteClientChatBubbleConfig(params) {
3527
3511
  try {