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 +11 -27
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -3492,33 +3492,17 @@ var AppProvider = function AppProvider(_ref) {
|
|
3492
3492
|
};
|
3493
3493
|
|
3494
3494
|
var getRemoteClientChatPredefinedQuestions = function getRemoteClientChatPredefinedQuestions(params) {
|
3495
|
-
|
3496
|
-
|
3497
|
-
|
3498
|
-
|
3499
|
-
|
3500
|
-
|
3501
|
-
|
3502
|
-
|
3503
|
-
|
3504
|
-
|
3505
|
-
|
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 {
|