@telia-ace/knowledge-widget-bot-provider 0.0.1-alpha.32 → 0.0.1-alpha.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -51,9 +51,12 @@ var HttpClient = /** @class */ (function () {
|
|
|
51
51
|
this.clientId = this.options.clientId;
|
|
52
52
|
this.middlewareClient = new MiddlewareClient(container);
|
|
53
53
|
this.chatClient = new ChatClient(container);
|
|
54
|
+
this.container = container;
|
|
54
55
|
}
|
|
55
56
|
HttpClient.prototype.firstHit = function () {
|
|
56
57
|
var _this = this;
|
|
58
|
+
MiddlewareHelper.setContainer(this.container);
|
|
59
|
+
MiddlewareHelper.setWidget(this.container.get('$widget'));
|
|
57
60
|
// On first hit if there are entries stored in the storage, use them
|
|
58
61
|
// Otherwise start a new session
|
|
59
62
|
return MiddlewareHelper.getEntrySessionStorage().then(function (o) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -51,9 +51,12 @@ var HttpClient = /** @class */ (function () {
|
|
|
51
51
|
this.clientId = this.options.clientId;
|
|
52
52
|
this.middlewareClient = new MiddlewareClient(container);
|
|
53
53
|
this.chatClient = new ChatClient(container);
|
|
54
|
+
this.container = container;
|
|
54
55
|
}
|
|
55
56
|
HttpClient.prototype.firstHit = function () {
|
|
56
57
|
var _this = this;
|
|
58
|
+
MiddlewareHelper.setContainer(this.container);
|
|
59
|
+
MiddlewareHelper.setWidget(this.container.get('$widget'));
|
|
57
60
|
// On first hit if there are entries stored in the storage, use them
|
|
58
61
|
// Otherwise start a new session
|
|
59
62
|
return MiddlewareHelper.getEntrySessionStorage().then(function (o) { return __awaiter(_this, void 0, void 0, function () {
|
package/package.json
CHANGED