rez_core 3.1.58 → 3.1.61

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.
Files changed (66) hide show
  1. package/dist/module/enterprise/repository/school.repository.js +0 -1
  2. package/dist/module/enterprise/repository/school.repository.js.map +1 -1
  3. package/dist/module/filter/repository/saved-filter.repository.js +0 -1
  4. package/dist/module/filter/repository/saved-filter.repository.js.map +1 -1
  5. package/dist/module/filter/service/filter.service.js +0 -1
  6. package/dist/module/filter/service/filter.service.js.map +1 -1
  7. package/dist/module/integration/integration.module.js +4 -0
  8. package/dist/module/integration/integration.module.js.map +1 -1
  9. package/dist/module/integration/service/integration.service.d.ts +8 -1
  10. package/dist/module/integration/service/integration.service.js +65 -17
  11. package/dist/module/integration/service/integration.service.js.map +1 -1
  12. package/dist/module/integration/strategies/email/gmail-api.strategy.js +2 -2
  13. package/dist/module/integration/strategies/email/gmail-api.strategy.js.map +1 -1
  14. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js +4 -4
  15. package/dist/module/integration/strategies/email/sendgrid-api.strategy.js.map +1 -1
  16. package/dist/module/layout_preference/service/layout_preference.service.js +0 -2
  17. package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -1
  18. package/dist/module/mapper/mapper.module.js +3 -0
  19. package/dist/module/mapper/mapper.module.js.map +1 -1
  20. package/dist/module/master/service/master.service.js +0 -2
  21. package/dist/module/master/service/master.service.js.map +1 -1
  22. package/dist/module/meta/repository/entity-table.repository.js +0 -1
  23. package/dist/module/meta/repository/entity-table.repository.js.map +1 -1
  24. package/dist/module/meta/service/entity-dynamic.service.js +0 -2
  25. package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
  26. package/dist/module/meta/service/entity-table.service.js +0 -2
  27. package/dist/module/meta/service/entity-table.service.js.map +1 -1
  28. package/dist/module/meta/service/field-group.service.js +0 -2
  29. package/dist/module/meta/service/field-group.service.js.map +1 -1
  30. package/dist/module/notification/controller/otp.controller.js.map +1 -1
  31. package/dist/module/user/service/login.service.js +0 -1
  32. package/dist/module/user/service/login.service.js.map +1 -1
  33. package/dist/module/workflow/entity/comm-template.entity.d.ts +1 -0
  34. package/dist/module/workflow/entity/comm-template.entity.js +4 -0
  35. package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
  36. package/dist/module/workflow/repository/stage.repository.js +0 -1
  37. package/dist/module/workflow/repository/stage.repository.js.map +1 -1
  38. package/dist/module/workflow/service/action.service.js +0 -1
  39. package/dist/module/workflow/service/action.service.js.map +1 -1
  40. package/dist/module/workflow/service/comm-template.service.js +0 -1
  41. package/dist/module/workflow/service/comm-template.service.js.map +1 -1
  42. package/dist/module/workflow/service/task.service.js +0 -1
  43. package/dist/module/workflow/service/task.service.js.map +1 -1
  44. package/dist/tsconfig.build.tsbuildinfo +1 -1
  45. package/package.json +1 -1
  46. package/src/module/enterprise/repository/school.repository.ts +0 -1
  47. package/src/module/filter/repository/saved-filter.repository.ts +0 -1
  48. package/src/module/filter/service/filter.service.ts +0 -1
  49. package/src/module/integration/integration.module.ts +6 -1
  50. package/src/module/integration/service/integration.service.ts +101 -33
  51. package/src/module/integration/strategies/email/gmail-api.strategy.ts +16 -14
  52. package/src/module/integration/strategies/email/sendgrid-api.strategy.ts +6 -5
  53. package/src/module/layout_preference/service/layout_preference.service.ts +0 -2
  54. package/src/module/mapper/mapper.module.ts +3 -0
  55. package/src/module/master/service/master.service.ts +0 -2
  56. package/src/module/meta/repository/entity-table.repository.ts +0 -1
  57. package/src/module/meta/service/entity-dynamic.service.ts +0 -2
  58. package/src/module/meta/service/entity-table.service.ts +0 -2
  59. package/src/module/meta/service/field-group.service.ts +0 -2
  60. package/src/module/notification/controller/otp.controller.ts +0 -1
  61. package/src/module/user/service/login.service.ts +0 -1
  62. package/src/module/workflow/entity/comm-template.entity.ts +3 -0
  63. package/src/module/workflow/repository/stage.repository.ts +0 -1
  64. package/src/module/workflow/service/action.service.ts +0 -1
  65. package/src/module/workflow/service/comm-template.service.ts +0 -3
  66. package/src/module/workflow/service/task.service.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "3.1.58",
3
+ "version": "3.1.61",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -37,7 +37,6 @@ export class SchoolRepository {
37
37
  .andWhere('urm.level_type = :levelType', { levelType: 'ORG' })
38
38
  .getRawMany();
39
39
 
40
- console.log('hasOrgAccess', hasOrgAccess);
41
40
 
42
41
  let currentORGLevel_id = hasOrgAccess[0]?.urm_level_id;
43
42
  if (hasOrgAccess[0]?.urm_level_id == 1) {
@@ -39,7 +39,6 @@ export class SavedFilterRepositoryService {
39
39
  }
40
40
 
41
41
  async getDetailsByCode(code: string) {
42
- console.log("IN GET DETAILS BY CODE", code);
43
42
  let data = await this.savedFilterDetailRepo.find({
44
43
  where: { mapped_filter_code: code },
45
44
  });
@@ -686,7 +686,6 @@ export class FilterService {
686
686
  filter: any,
687
687
  meta: any,
688
688
  ): { query: string; params: any } | null {
689
- console.log(filter, meta, 'FILTER AND META');
690
689
  if (!meta) return null;
691
690
 
692
691
  let attr = filter.filter_attribute;
@@ -45,6 +45,8 @@ import { IntegrationSource } from './entity/integration-source.entity';
45
45
  import { UserIntegration } from './entity/user-integration.entity';
46
46
  import { IntegrationEntityMapper } from './entity/integration-entity-mapper.entity';
47
47
  import { IntegrationEntityMapperService } from './service/integration-entity-mapper.service';
48
+ import { MapperModule } from '../mapper/mapper.module';
49
+ import { EntityModule } from '../meta/entity.module';
48
50
 
49
51
  @Module({
50
52
  imports: [
@@ -55,6 +57,8 @@ import { IntegrationEntityMapperService } from './service/integration-entity-map
55
57
  IntegrationEntityMapper,
56
58
  ]),
57
59
  IcsMeetingModule,
60
+ MapperModule,
61
+ EntityModule
58
62
  ],
59
63
  controllers: [IntegrationController, GoogleController, WrapperController],
60
64
  providers: [
@@ -102,4 +106,5 @@ import { IntegrationEntityMapperService } from './service/integration-entity-map
102
106
  IntegrationEntityMapperService,
103
107
  ],
104
108
  })
105
- export class IntegrationModule {}
109
+ export class IntegrationModule {
110
+ }
@@ -17,6 +17,9 @@ import {
17
17
  CreateUserIntegrationDto,
18
18
  UpdateUserIntegrationDto,
19
19
  } from '../dto/create-config.dto';
20
+ import { FieldMapperService } from '../../mapper/service/field-mapper.service';
21
+ import { COMM_TEMPLATE } from '../../../constant/global.constant';
22
+ import { EntityServiceImpl } from '../../meta/service/entity-service-impl.service';
20
23
 
21
24
  export interface SendMessageDto {
22
25
  levelId: number;
@@ -46,6 +49,8 @@ export interface GenericMessageDto {
46
49
  templateId?: string;
47
50
  variables?: Record<string, any>;
48
51
  user_id?: number;
52
+ entity_type?: string;
53
+ entity_id?: number;
49
54
  }
50
55
 
51
56
  export interface IntegrationConfigWithConfig extends IntegrationConfig {
@@ -77,15 +82,17 @@ export class IntegrationService {
77
82
  private readonly userIntegrationRepository: Repository<UserIntegration>,
78
83
  @InjectRepository(IntegrationEntityMapper)
79
84
  private readonly entityMapperRepository: Repository<IntegrationEntityMapper>,
80
-
81
85
  private readonly dataSource: DataSource,
82
86
  private readonly integrationFactory: IntegrationFactory,
83
87
  private readonly gmailApiStrategy: GmailApiStrategy,
84
88
  private readonly sendGridApiStrategy: SendGridApiStrategy,
85
89
  private readonly configService: ConfigService,
90
+ @Inject('FieldMapperService') private readonly fieldMapperService: FieldMapperService,
91
+ private readonly entityService: EntityServiceImpl,
86
92
  @Inject(forwardRef(() => IntegrationQueueService))
87
93
  private readonly queueService?: IntegrationQueueService,
88
- ) {}
94
+ ) {
95
+ }
89
96
 
90
97
  private deriveServiceType(
91
98
  integration_type: string,
@@ -97,15 +104,15 @@ export class IntegrationService {
97
104
  }
98
105
 
99
106
  async sendMessage({
100
- levelId,
101
- levelType,
102
- app_code,
103
- to,
104
- message,
105
- mode,
106
- priority = 1,
107
- user_id,
108
- }: SendMessageDto): Promise<IntegrationResult> {
107
+ levelId,
108
+ levelType,
109
+ app_code,
110
+ to,
111
+ message,
112
+ mode,
113
+ priority = 1,
114
+ user_id,
115
+ }: SendMessageDto): Promise<IntegrationResult> {
109
116
  try {
110
117
  // Get active communication configs for the level
111
118
  const configs = await this.getActiveConfigs(
@@ -201,7 +208,8 @@ export class IntegrationService {
201
208
  ): Promise<any[]> {
202
209
  try {
203
210
  const allIntegrationData = await this.dataSource.query(
204
- `SELECT * FROM cr_integration_master`,
211
+ `SELECT *
212
+ FROM cr_integration_master`,
205
213
  );
206
214
 
207
215
  // if entityType is provided, filter the results
@@ -695,7 +703,7 @@ export class IntegrationService {
695
703
  if (configJson?.[field]) {
696
704
  safeConfig[
697
705
  `has${field.charAt(0).toUpperCase() + field.slice(1)}`
698
- ] = true;
706
+ ] = true;
699
707
  }
700
708
  });
701
709
 
@@ -839,8 +847,9 @@ export class IntegrationService {
839
847
  attachments,
840
848
  mediaUrl,
841
849
  templateId,
842
- variables,
843
850
  user_id,
851
+ entity_id,
852
+ entity_type,
844
853
  } = messageDto;
845
854
 
846
855
  // Auto-detect communication type if not specified
@@ -899,17 +908,27 @@ export class IntegrationService {
899
908
  );
900
909
 
901
910
  // Process template if provided
902
- let processedMessage = message;
903
- if (templateId && variables) {
904
- processedMessage = this.processTemplate(message, variables);
911
+ let variables;
912
+ let richText;
913
+ let externalTemplateId: string | undefined = undefined;
914
+ if (templateId && entity_type && entity_id) {
915
+ const templateData = await this.processTemplate(
916
+ parseInt(templateId, 10),
917
+ entity_type,
918
+ entity_id,
919
+ );
920
+ variables = templateData.variables;
921
+ externalTemplateId = templateData.externalTemplateId;
922
+ richText = templateData.rich_text;
905
923
  }
906
924
 
907
925
  // Merge config with enhanced parameters
908
926
  let finalConfig = {
909
927
  ...hub.config_json,
910
928
  ...enhancedConfig,
911
- templateId,
929
+ templateId: externalTemplateId,
912
930
  variables,
931
+ richText,
913
932
  };
914
933
 
915
934
  // Handle user integration if user_id provided
@@ -927,7 +946,7 @@ export class IntegrationService {
927
946
 
928
947
  const result = await strategy.sendMessage(
929
948
  recipient,
930
- processedMessage,
949
+ message,
931
950
  finalConfig,
932
951
  );
933
952
 
@@ -978,20 +997,27 @@ export class IntegrationService {
978
997
  );
979
998
 
980
999
  // Process template if provided
981
- let processedMessage = message;
982
- if (html && variables) {
983
- processedMessage = this.processTemplate(
984
- html ? html : message,
985
- variables,
1000
+ let variables;
1001
+ let externalTemplateId: string | undefined = undefined;
1002
+ let richText;
1003
+ if (templateId && entity_type && entity_id) {
1004
+ const templateData = await this.processTemplate(
1005
+ parseInt(templateId, 10),
1006
+ entity_type,
1007
+ entity_id,
986
1008
  );
1009
+ variables = templateData.variables;
1010
+ externalTemplateId = templateData.externalTemplateId;
1011
+ richText = templateData.rich_text;
987
1012
  }
988
1013
 
989
1014
  // Merge config with enhanced parameters
990
1015
  let finalConfig = {
991
1016
  ...hub.config_json,
992
1017
  ...enhancedConfig,
993
- templateId,
1018
+ templateId: externalTemplateId,
994
1019
  variables,
1020
+ richText
995
1021
  };
996
1022
 
997
1023
  // Handle user integration if user_id provided
@@ -1009,7 +1035,7 @@ export class IntegrationService {
1009
1035
 
1010
1036
  const result = await strategy.sendMessage(
1011
1037
  to,
1012
- processedMessage,
1038
+ message,
1013
1039
  finalConfig,
1014
1040
  );
1015
1041
 
@@ -1157,12 +1183,12 @@ export class IntegrationService {
1157
1183
  // Get template content (integrate with your template system)
1158
1184
  const template = await this.getTemplate(templateDto.templateId);
1159
1185
 
1160
- const processedMessage = this.processTemplate(
1186
+ const processedMessage = this.replaceTemplateVariables(
1161
1187
  template.content,
1162
1188
  templateDto.variables,
1163
1189
  );
1164
1190
  const processedSubject = template.subject
1165
- ? this.processTemplate(template.subject, templateDto.variables)
1191
+ ? this.replaceTemplateVariables(template.subject, templateDto.variables)
1166
1192
  : undefined;
1167
1193
 
1168
1194
  const messageDto: GenericMessageDto = {
@@ -1227,7 +1253,49 @@ export class IntegrationService {
1227
1253
  });
1228
1254
  }
1229
1255
 
1230
- private processTemplate(
1256
+ private async processTemplate(
1257
+ templateId: number,
1258
+ entity_type: string,
1259
+ entity_id: number,
1260
+ ): Promise<{ variables?: Record<string, any>; externalTemplateId?: string; rich_text?: string }> {
1261
+ const commTemplate: any = await this.entityService.getEntityData(COMM_TEMPLATE, templateId, {} as any);
1262
+ if (!commTemplate) {
1263
+ return {
1264
+ variables: {},
1265
+ externalTemplateId: undefined,
1266
+ };
1267
+ }
1268
+
1269
+ let variables = {};
1270
+ if (commTemplate.mapper_id) {
1271
+ variables = await this.fieldMapperService.resolveData(
1272
+ commTemplate.mapper_id,
1273
+ entity_type,
1274
+ entity_id,
1275
+ {} as any,
1276
+ );
1277
+ }
1278
+
1279
+ if (!commTemplate.template_id) {
1280
+ let richText = commTemplate.rich_text;
1281
+
1282
+ richText.replace(/\{\{(\w+)\}\}/g, (match, key) => {
1283
+ const value = variables[key];
1284
+ return value !== undefined ? String(value) : match;
1285
+ });
1286
+
1287
+ return {
1288
+ rich_text: richText,
1289
+ };
1290
+ }
1291
+
1292
+ return {
1293
+ variables,
1294
+ externalTemplateId: commTemplate.template_id,
1295
+ };
1296
+ }
1297
+
1298
+ private replaceTemplateVariables(
1231
1299
  template: string,
1232
1300
  variables: Record<string, any>,
1233
1301
  ): string {
@@ -1905,10 +1973,10 @@ export class IntegrationService {
1905
1973
 
1906
1974
  async getIntegrationConfigById(hubId: number): Promise<
1907
1975
  | (IntegrationConfig & {
1908
- config: IntegrationConfig;
1909
- linkedSource?: string;
1910
- configDetails?: any;
1911
- })
1976
+ config: IntegrationConfig;
1977
+ linkedSource?: string;
1978
+ configDetails?: any;
1979
+ })
1912
1980
  | null
1913
1981
  > {
1914
1982
  try {
@@ -10,7 +10,9 @@ import {
10
10
 
11
11
  @Injectable()
12
12
  export class GmailApiStrategy implements IntegrationStrategy {
13
- constructor(private readonly configService: ConfigService) {}
13
+ constructor(private readonly configService: ConfigService) {
14
+ }
15
+
14
16
  async sendMessage(
15
17
  to: string | string[],
16
18
  message: string,
@@ -54,20 +56,20 @@ export class GmailApiStrategy implements IntegrationStrategy {
54
56
  const emailContent =
55
57
  attachments && attachments.length > 0
56
58
  ? this.buildMultipartEmail(
57
- toRecipients,
58
- ccRecipients,
59
- bccRecipients,
60
- subject,
61
- message,
62
- attachments,
63
- )
59
+ toRecipients,
60
+ ccRecipients,
61
+ bccRecipients,
62
+ subject,
63
+ config.rich_text || message,
64
+ attachments,
65
+ )
64
66
  : this.buildSimpleEmail(
65
- toRecipients,
66
- ccRecipients,
67
- bccRecipients,
68
- subject,
69
- message,
70
- );
67
+ toRecipients,
68
+ ccRecipients,
69
+ bccRecipients,
70
+ subject,
71
+ config.rich_text || message,
72
+ );
71
73
 
72
74
  const encodedMessage = Buffer.from(emailContent)
73
75
  .toString('base64')
@@ -19,9 +19,10 @@ export class SendGridApiStrategy implements IntegrationStrategy {
19
19
  apiKey,
20
20
  fromEmail,
21
21
  templateId,
22
- dynamicTemplateData,
23
22
  subject,
24
- html,
23
+ richText,
24
+ variables
25
+
25
26
  } = config;
26
27
 
27
28
  if (!apiKey || !fromEmail) {
@@ -42,12 +43,12 @@ export class SendGridApiStrategy implements IntegrationStrategy {
42
43
  // Handle template emails
43
44
  if (templateId) {
44
45
  mailData.templateId = templateId;
45
- if (dynamicTemplateData) {
46
- mailData.dynamicTemplateData = dynamicTemplateData;
46
+ if (variables) {
47
+ mailData.dynamicTemplateData = variables;
47
48
  }
48
49
  } else {
49
50
  // Regular email content
50
- mailData.html = message || 'Hello from SendGrid!';
51
+ mailData.html = richText || message;
51
52
  }
52
53
 
53
54
  // Add CC/BCC if provided
@@ -22,7 +22,6 @@ export class LayoutPreferenceService extends EntityServiceImpl {
22
22
  throw new Error('User ID is required to create layout preference.');
23
23
  }
24
24
 
25
- console.log(mapped_entity_type, loggedInUser, userId);
26
25
  const existingLayoutPreference =
27
26
  await this.layoutPreferenceRepository.findByEntityUserId(
28
27
  mapped_entity_type,
@@ -32,7 +31,6 @@ export class LayoutPreferenceService extends EntityServiceImpl {
32
31
  type,
33
32
  );
34
33
 
35
- console.log(existingLayoutPreference, 'existingLayoutPreference');
36
34
  if (existingLayoutPreference) {
37
35
  return await super.updateEntity(
38
36
  { ...entityData, id: existingLayoutPreference.id },
@@ -24,6 +24,9 @@ import { MapperController } from './controller/mapper.controller';
24
24
  FieldMapperRepository,
25
25
  FieldLovsRepository,
26
26
  ],
27
+ exports: [
28
+ { provide: 'FieldMapperService', useClass: FieldMapperService },
29
+ ],
27
30
  controllers: [FieldMapperController,MapperController],
28
31
  })
29
32
  export class MapperModule {
@@ -229,12 +229,10 @@ export class MasterService {
229
229
  loggedInUser,
230
230
  );
231
231
 
232
- console.log(attributes, 'attributes');
233
232
  const uniqueFields = attributes
234
233
  .filter((attr) => attr.is_unique)
235
234
  .map((attr) => attr.attribute_key);
236
235
 
237
- console.log(uniqueFields, 'uniqueFields');
238
236
 
239
237
  if (uniqueFields.length === 0) {
240
238
  throw new Error(`No unique fields found for entityType: ${entityType}`);
@@ -36,7 +36,6 @@ export class EntityTableRepository {
36
36
  displayType: string,
37
37
  organization_id: number,
38
38
  ) {
39
- console.log(entityType, listType, displayType, organization_id);
40
39
 
41
40
  const whereCondition: any = {
42
41
  mapped_entity_type: entityType,
@@ -335,7 +335,6 @@ export class EntityDynamicService {
335
335
  let targetEntityId;
336
336
  let entityData;
337
337
 
338
- console.log(id, 'id=============');
339
338
 
340
339
  if (item.id) {
341
340
  // Update existing entity
@@ -412,7 +411,6 @@ export class EntityDynamicService {
412
411
  ): Promise<any> {
413
412
  const organizationId = loggedInUser.organization_id;
414
413
 
415
- console.log('mainID', mainID);
416
414
 
417
415
  const tableName = await this.getTableName(entityType, organizationId);
418
416
  const validAttributes = await this.getAttributeCodes(
@@ -79,14 +79,12 @@ export class EntityTableService {
79
79
  displayType: string,
80
80
  loggedInUser: any,
81
81
  ) {
82
- console.log(entityType, listType, displayType, loggedInUser);
83
82
  const entityTable = await this.findByEntityTypeAndListTypeAndDisplayType(
84
83
  entityType,
85
84
  listType,
86
85
  displayType,
87
86
  loggedInUser?.organization_id,
88
87
  );
89
- console.log(entityTable, 'entityTable');
90
88
  const entityTableDto = entityTable as EntityTableDto;
91
89
  if (entityTable) {
92
90
  entityTableDto.column_list =
@@ -53,10 +53,8 @@ export class FieldGroupService extends EntityServiceImpl {
53
53
 
54
54
  if (layoutJson?.form?.children && Array.isArray(layoutJson.form.children)) {
55
55
  const firstChild = layoutJson.form.children[0];
56
- console.log('First Child:', firstChild);
57
56
 
58
57
  if (firstChild.type === 'wizard' && Array.isArray(firstChild.steps)) {
59
- console.log('Wizard Steps:', firstChild.steps);
60
58
  let i = 0;
61
59
  for (const step of firstChild.steps) {
62
60
  if (step.type === 'step') {
@@ -90,7 +90,6 @@ export class OtpController {
90
90
  payload: any;
91
91
  },
92
92
  ) {
93
- // console.log('result', result);
94
93
  return await this.emailService.sendEmailWithDynamicTemplate(
95
94
  body.to,
96
95
  body.subject,
@@ -43,7 +43,6 @@ export class LoginService {
43
43
 
44
44
  let organization;
45
45
 
46
- console.log('data', data);
47
46
 
48
47
  // 🔹 Step 2: Find the user by email + organization check
49
48
  const user = await this.userService.findByEmailId(email);
@@ -37,4 +37,7 @@ export class CommTemplate extends BaseEntity {
37
37
 
38
38
  @Column({ type: 'varchar', nullable: true })
39
39
  template_id: string;
40
+
41
+ @Column({ type: 'int', nullable: true })
42
+ mapper_id: number;
40
43
  }
@@ -107,7 +107,6 @@ export class StageRepository {
107
107
  // [stageGroup.workflow_id, organization_id],
108
108
  // );
109
109
 
110
- console.log(rows, '-----------LEFT JOIN----------');
111
110
  // console.log(rows2, '-----------INNER JOIN----------');
112
111
 
113
112
  if (!rows || rows.length === 0) {
@@ -122,7 +122,6 @@ export class ActionService extends EntityServiceImpl {
122
122
  entityData: BaseEntity,
123
123
  loggedInUser: UserData,
124
124
  ): Promise<any> {
125
- console.log('entityData', entityData);
126
125
 
127
126
  // Extract template from entityData, keep the rest for ActionEntity
128
127
  const { template, stage_id, form, ...actionData } =
@@ -39,9 +39,6 @@ export class CommTemplateService extends EntityServiceImpl {
39
39
 
40
40
  async updateEntity(entityData: any, loggedInUser: UserData): Promise<any> {
41
41
  const { attachments, ...templateData } = entityData;
42
-
43
- console.log('update for template hit', entityData, loggedInUser);
44
-
45
42
  if (
46
43
  loggedInUser.level_type === 'SCH' &&
47
44
  templateData.level_type === 'ORG'
@@ -498,7 +498,6 @@ export class TaskService extends EntityServiceImpl {
498
498
  stage_group_id: entity.stage_group_id,
499
499
  } as any;
500
500
 
501
- console.log(notePayload);
502
501
  return await super.createEntity(notePayload, loggedInUser);
503
502
  }
504
503
  }