@telia-ace/knowledge-widget-bot-provider 0.0.1-alpha.35 → 0.0.1-alpha.36

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.
@@ -63,13 +63,11 @@ var MiddlewareClient = /** @class */ (function () {
63
63
  console.log('widgetentry', widgetEntry);
64
64
  if (widgetEntry) {
65
65
  agent = ChatHelper.getAgent();
66
- console.log('current agent', agent);
67
66
  if (agent) {
68
67
  agent.update({
69
- name: 'RockstarBot',
70
- avatar: '',
68
+ name: widgetEntry.content.agent.name,
69
+ avatar: widgetEntry.content.agent.avatar,
71
70
  });
72
- console.log('asdf', ChatHelper.getAgent());
73
71
  }
74
72
  }
75
73
  o = this.executeMiddlewares(entries, false, action);
@@ -63,13 +63,11 @@ var MiddlewareClient = /** @class */ (function () {
63
63
  console.log('widgetentry', widgetEntry);
64
64
  if (widgetEntry) {
65
65
  agent = ChatHelper.getAgent();
66
- console.log('current agent', agent);
67
66
  if (agent) {
68
67
  agent.update({
69
- name: 'RockstarBot',
70
- avatar: '',
68
+ name: widgetEntry.content.agent.name,
69
+ avatar: widgetEntry.content.agent.avatar,
71
70
  });
72
- console.log('asdf', ChatHelper.getAgent());
73
71
  }
74
72
  }
75
73
  o = this.executeMiddlewares(entries, false, action);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/knowledge-widget-bot-provider",
3
- "version": "0.0.1-alpha.35",
3
+ "version": "0.0.1-alpha.36",
4
4
  "description": "Bot Provider Plugin ACE Knowledge Widgets.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",