bibot 1.0.33 → 1.0.34

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