@hivegpt/hiveai-angular 0.0.265 → 0.0.267

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.
@@ -819,18 +819,22 @@
819
819
  }, 200);
820
820
  };
821
821
  ChatDrawerComponent.prototype.initializeSocket = function () {
822
+ console.log('YES INIT');
822
823
  var conversation_id = this.conversationService.getKey(this.botId);
823
824
  this.socketService.registerUserSpecificHiveSocket(this.botId, conversation_id);
824
825
  };
825
826
  ChatDrawerComponent.prototype.listenSockets = function () {
826
827
  var _this = this;
827
- if (this.eventSubscription) {
828
- this.eventSubscription.unsubscribe();
829
- }
828
+ // if (this.eventSubscription) {
829
+ // this.eventSubscription.unsubscribe();
830
+ // }
831
+ console.log('Listen Socket');
830
832
  this.eventSubscription = this.conversationService
831
833
  .getUserSpecificNotification()
832
834
  .subscribe(function (res) {
833
835
  var _a, _b, _c;
836
+ console.log('Listen Socket response');
837
+ console.log(res);
834
838
  // Check if OtherFields exists in the response
835
839
  if ((_a = res === null || res === void 0 ? void 0 : res.m) === null || _a === void 0 ? void 0 : _a.OtherFields) {
836
840
  var _e = (_b = res === null || res === void 0 ? void 0 : res.m) === null || _b === void 0 ? void 0 : _b.OtherFields, conversation_id = _e.conversation_id, bot_id = _e.bot_id, message_id_1 = _e.message_id, answer = _e.answer, web_results = _e.web_results, graphs = _e.graphs, execution_graphs = _e.execution_graphs, online_search_terms = _e.online_search_terms, suggestions = _e.suggestions;
@@ -1807,7 +1811,7 @@
1807
1811
  if (res) {
1808
1812
  _this.isDocInEditMode = true;
1809
1813
  _this.documentContent = res;
1810
- console.log('Get API callled');
1814
+ console.log('Get API callled success');
1811
1815
  console.log(res);
1812
1816
  }
1813
1817
  _this.cdr.markForCheck();
@@ -2231,14 +2235,19 @@
2231
2235
  BotHtmlEditorComponent.prototype.ngOnInit = function () {
2232
2236
  this.environment = prod_environment;
2233
2237
  if (this.isDocInEditMode) {
2238
+ console.log('In Edit mode');
2234
2239
  this.filldataInForm();
2235
2240
  }
2241
+ else {
2242
+ console.log('In save mode');
2243
+ }
2236
2244
  };
2237
2245
  BotHtmlEditorComponent.prototype.filldataInForm = function () {
2238
2246
  var _a, _b;
2239
2247
  if (this.documentContent) {
2240
2248
  this.documentName = (_a = this.documentContent) === null || _a === void 0 ? void 0 : _a.name;
2241
2249
  this.editorContent = (_b = this.documentContent) === null || _b === void 0 ? void 0 : _b.content;
2250
+ this.cdr.detectChanges();
2242
2251
  }
2243
2252
  };
2244
2253
  BotHtmlEditorComponent.prototype.saveContent = function () {