rez_core 2.2.224 → 2.2.226

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 (48) hide show
  1. package/dist/app.module.js +4 -0
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/constant/global.constant.d.ts +1 -0
  4. package/dist/constant/global.constant.js +2 -1
  5. package/dist/constant/global.constant.js.map +1 -1
  6. package/dist/module/auth/auth.module.js +5 -1
  7. package/dist/module/auth/auth.module.js.map +1 -1
  8. package/dist/module/auth/controller/auth.controller.d.ts +8 -0
  9. package/dist/module/auth/controller/auth.controller.js +51 -0
  10. package/dist/module/auth/controller/auth.controller.js.map +1 -0
  11. package/dist/module/auth/services/auth.service.d.ts +6 -4
  12. package/dist/module/auth/services/auth.service.js +12 -16
  13. package/dist/module/auth/services/auth.service.js.map +1 -1
  14. package/dist/module/communication/communication.module.js +6 -1
  15. package/dist/module/communication/communication.module.js.map +1 -1
  16. package/dist/module/communication/controller/webhook.controller.d.ts +1 -0
  17. package/dist/module/communication/controller/webhook.controller.js +15 -0
  18. package/dist/module/communication/controller/webhook.controller.js.map +1 -1
  19. package/dist/module/filter/entity/saved-filter-master.entity.d.ts +1 -0
  20. package/dist/module/filter/entity/saved-filter-master.entity.js +4 -0
  21. package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -1
  22. package/dist/module/workflow-automation/controller/workflow-automation.controller.d.ts +5 -0
  23. package/dist/module/workflow-automation/controller/workflow-automation.controller.js +31 -0
  24. package/dist/module/workflow-automation/controller/workflow-automation.controller.js.map +1 -0
  25. package/dist/module/workflow-automation/entity/workflow-automation.entity.d.ts +10 -0
  26. package/dist/module/workflow-automation/entity/workflow-automation.entity.js +51 -0
  27. package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -0
  28. package/dist/module/workflow-automation/service/workflow-automation.service.d.ts +6 -0
  29. package/dist/module/workflow-automation/service/workflow-automation.service.js +27 -0
  30. package/dist/module/workflow-automation/service/workflow-automation.service.js.map +1 -0
  31. package/dist/module/workflow-automation/workflow-automation.module.d.ts +2 -0
  32. package/dist/module/workflow-automation/workflow-automation.module.js +32 -0
  33. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -0
  34. package/dist/tsconfig.build.tsbuildinfo +1 -1
  35. package/docs/modules/communication.md +177 -0
  36. package/package.json +1 -1
  37. package/src/app.module.ts +4 -0
  38. package/src/constant/global.constant.ts +1 -0
  39. package/src/module/auth/auth.module.ts +6 -2
  40. package/src/module/auth/controller/auth.controller.ts +28 -0
  41. package/src/module/auth/services/auth.service.ts +34 -13
  42. package/src/module/communication/communication.module.ts +6 -1
  43. package/src/module/communication/controller/webhook.controller.ts +10 -4
  44. package/src/module/filter/entity/saved-filter-master.entity.ts +3 -0
  45. package/src/module/workflow-automation/controller/workflow-automation.controller.ts +21 -0
  46. package/src/module/workflow-automation/entity/workflow-automation.entity.ts +29 -0
  47. package/src/module/workflow-automation/service/workflow-automation.service.ts +10 -0
  48. package/src/module/workflow-automation/workflow-automation.module.ts +19 -0
@@ -27,6 +27,8 @@ const ics_module_1 = require("./module/ics/ics.module");
27
27
  const dashboard_module_1 = require("./module/dashboard/dashboard.module");
28
28
  const communication_module_1 = require("./module/communication/communication.module");
29
29
  const schedule_1 = require("@nestjs/schedule");
30
+ const auth_module_1 = require("./module/auth/auth.module");
31
+ const workflow_automation_module_1 = require("./module/workflow-automation/workflow-automation.module");
30
32
  let AppModule = class AppModule {
31
33
  };
32
34
  exports.AppModule = AppModule;
@@ -51,6 +53,8 @@ exports.AppModule = AppModule = __decorate([
51
53
  ics_module_1.IcsMeetingModule,
52
54
  dashboard_module_1.DashboardModule,
53
55
  communication_module_1.CommunicationModule,
56
+ auth_module_1.AuthModule,
57
+ workflow_automation_module_1.WorkflowAutomationModule,
54
58
  schedule_1.ScheduleModule.forRoot(),
55
59
  ],
56
60
  })
@@ -1 +1 @@
1
- {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,0DAAwD;AACxD,6EAAyE;AACzE,uDAAmD;AACnD,2DAAuD;AACvD,+DAA2D;AAC3D,iEAA6D;AAC7D,mFAA+E;AAC/E,qEAAuD;AACvD,iEAA6D;AAC7D,6EAAyE;AACzE,uFAAkF;AAClF,iEAA6D;AAC7D,2DAAuD;AACvD,kGAA6F;AAC7F,uEAAmE;AACnE,wDAA2D;AAC3D,0EAAsE;AACtE,sFAAkF;AAClF,+CAAkD;AAyB3C,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAvBrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,4BAAY;YACZ,8BAAc;YACd,oCAAgB;YAChB,0BAAW;YACX,wBAAU;YACV,4BAAY;YACZ,wCAAkB;YAClB,2BAAU;YACV,4BAAY;YACZ,oCAAgB;YAChB,qCAAgB;YAChB,4BAAY;YACZ,wBAAU;YACV,iDAAsB;YACtB,gCAAc;YACd,6BAAgB;YAChB,kCAAe;YACf,0CAAmB;YACnB,yBAAc,CAAC,OAAO,EAAE;SACzB;KACF,CAAC;GACW,SAAS,CAAG"}
1
+ {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,0DAAwD;AACxD,6EAAyE;AACzE,uDAAmD;AACnD,2DAAuD;AACvD,+DAA2D;AAC3D,iEAA6D;AAC7D,mFAA+E;AAC/E,qEAAuD;AACvD,iEAA6D;AAC7D,6EAAyE;AACzE,uFAAkF;AAClF,iEAA6D;AAC7D,2DAAuD;AACvD,kGAA6F;AAC7F,uEAAmE;AACnE,wDAA2D;AAC3D,0EAAsE;AACtE,sFAAkF;AAClF,+CAAkD;AAClD,2DAAuD;AACvD,wGAAmG;AA2B5F,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAzBrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,4BAAY;YACZ,8BAAc;YACd,oCAAgB;YAChB,0BAAW;YACX,wBAAU;YACV,4BAAY;YACZ,wCAAkB;YAClB,2BAAU;YACV,4BAAY;YACZ,oCAAgB;YAChB,qCAAgB;YAChB,4BAAY;YACZ,wBAAU;YACV,iDAAsB;YACtB,gCAAc;YACd,6BAAgB;YAChB,kCAAe;YACf,0CAAmB;YACnB,wBAAU;YACV,qDAAwB;YACxB,yBAAc,CAAC,OAAO,EAAE;SACzB;KACF,CAAC;GACW,SAAS,CAAG"}
@@ -33,6 +33,7 @@ export declare const ACTION = "WFAC";
33
33
  export declare const STAGE = "WFS";
34
34
  export declare const STAGE_GROUP = "WFSG";
35
35
  export declare const ACTION_CATEGORY = "WFAC";
36
+ export declare const WORKFLOW_AUTOMATION = "WFAM";
36
37
  export declare const STAGE_ACTION_MAPPING = "WFSA";
37
38
  export declare const COMM_TEMPLATE = "TEM";
38
39
  export declare const ACTION_TEMPLATE_MAPPING = "WFAT";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FORM_STATUS_ACCEPTED = exports.FORM_STATUS_RESUBMIT_REQUESTED = exports.FORM_STATUS_SUBMITTED = exports.FORM_STATUS_SAVED = exports.FORM_STATUS_SENT = exports.FORM_STATUS_TO_BE_SENT = exports.ACTION_RESOURCES_MAPPING = exports.ENTITY_MODIFICATION = exports.STAGE_MOVEMENT_DATA = exports.WORKFLOW_DATA = exports.ACTION_TEMPLATE_MAPPING = exports.COMM_TEMPLATE = exports.STAGE_ACTION_MAPPING = exports.ACTION_CATEGORY = exports.STAGE_GROUP = exports.STAGE = exports.ACTION = exports.WORKFLOW = exports.DISPLAY_REPORT = exports.DISPLAY_EXPORT = exports.DISPLAY_LIST = exports.ENTITYSTATUS_PUBLISHED = exports.ENTITYSTATUS_TO_BE_PUBLISHED = exports.INVITATION_STATUS_ACCEPTED = exports.INVITATION_STATUS_SENT = exports.STATUS_PENDING = exports.STATUS_INACTIVE = exports.STATUS_ACTIVE = exports.secretKey = exports.STORAGETYPE_COLUMN = exports.STORAGETYPE_SINGLEJSON = exports.ENTITYTYPE_ENTITY_RELATION_DATA = exports.ENTITYTYPE_ENTITY_RELATION = exports.ENTITYTYPE_SAVEDFILTERDETAIL = exports.ENTITYTYPE_SAVEDFILTERMASTER = exports.ENTITYTYPE_USRROLMAP = exports.ENTITYTYPE_FIELDMASTER = exports.ENTITYTYPE_SECTIONMASTER = exports.ENTITYTYPE_LISTMASTERITEMS = exports.ENTITYTYPE_LISTMASTER = exports.ENTITYTYPE_MEDIA = exports.ENTITYTYPE_VIEWMASTER = exports.ENTITYTYPE_PREFERENCEMASTER = exports.ENTITYTYPE_ENTITYTABLECOLUMN = exports.ENTITYTYPE_ENTITYTABLE = exports.ENTITYTYPE_ROLE = exports.ENTITYTYPE_ENTITYMASTER = exports.ENTITYTYPE_USER = void 0;
3
+ exports.FORM_STATUS_ACCEPTED = exports.FORM_STATUS_RESUBMIT_REQUESTED = exports.FORM_STATUS_SUBMITTED = exports.FORM_STATUS_SAVED = exports.FORM_STATUS_SENT = exports.FORM_STATUS_TO_BE_SENT = exports.ACTION_RESOURCES_MAPPING = exports.ENTITY_MODIFICATION = exports.STAGE_MOVEMENT_DATA = exports.WORKFLOW_DATA = exports.ACTION_TEMPLATE_MAPPING = exports.COMM_TEMPLATE = exports.STAGE_ACTION_MAPPING = exports.WORKFLOW_AUTOMATION = exports.ACTION_CATEGORY = exports.STAGE_GROUP = exports.STAGE = exports.ACTION = exports.WORKFLOW = exports.DISPLAY_REPORT = exports.DISPLAY_EXPORT = exports.DISPLAY_LIST = exports.ENTITYSTATUS_PUBLISHED = exports.ENTITYSTATUS_TO_BE_PUBLISHED = exports.INVITATION_STATUS_ACCEPTED = exports.INVITATION_STATUS_SENT = exports.STATUS_PENDING = exports.STATUS_INACTIVE = exports.STATUS_ACTIVE = exports.secretKey = exports.STORAGETYPE_COLUMN = exports.STORAGETYPE_SINGLEJSON = exports.ENTITYTYPE_ENTITY_RELATION_DATA = exports.ENTITYTYPE_ENTITY_RELATION = exports.ENTITYTYPE_SAVEDFILTERDETAIL = exports.ENTITYTYPE_SAVEDFILTERMASTER = exports.ENTITYTYPE_USRROLMAP = exports.ENTITYTYPE_FIELDMASTER = exports.ENTITYTYPE_SECTIONMASTER = exports.ENTITYTYPE_LISTMASTERITEMS = exports.ENTITYTYPE_LISTMASTER = exports.ENTITYTYPE_MEDIA = exports.ENTITYTYPE_VIEWMASTER = exports.ENTITYTYPE_PREFERENCEMASTER = exports.ENTITYTYPE_ENTITYTABLECOLUMN = exports.ENTITYTYPE_ENTITYTABLE = exports.ENTITYTYPE_ROLE = exports.ENTITYTYPE_ENTITYMASTER = exports.ENTITYTYPE_USER = void 0;
4
4
  exports.ENTITYTYPE_USER = 'USR';
5
5
  exports.ENTITYTYPE_ENTITYMASTER = 'EMS';
6
6
  exports.ENTITYTYPE_ROLE = 'ROL';
@@ -36,6 +36,7 @@ exports.ACTION = 'WFAC';
36
36
  exports.STAGE = 'WFS';
37
37
  exports.STAGE_GROUP = 'WFSG';
38
38
  exports.ACTION_CATEGORY = 'WFAC';
39
+ exports.WORKFLOW_AUTOMATION = 'WFAM';
39
40
  exports.STAGE_ACTION_MAPPING = 'WFSA';
40
41
  exports.COMM_TEMPLATE = 'TEM';
41
42
  exports.ACTION_TEMPLATE_MAPPING = 'WFAT';
@@ -1 +1 @@
1
- {"version":3,"file":"global.constant.js","sourceRoot":"","sources":["../../src/constant/global.constant.ts"],"names":[],"mappings":";;;AACa,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,uBAAuB,GAAG,KAAK,CAAC;AAChC,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,sBAAsB,GAAG,KAAK,CAAC;AAC/B,QAAA,4BAA4B,GAAG,KAAK,CAAC;AACrC,QAAA,2BAA2B,GAAG,KAAK,CAAC;AACpC,QAAA,qBAAqB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entity/user-session.entity");
19
19
  const google_strategy_1 = require("./strategies/google.strategy");
20
20
  const role_guard_1 = require("./guards/role.guard");
21
+ const auth_service_1 = require("./services/auth.service");
22
+ const auth_controller_1 = require("./controller/auth.controller");
21
23
  let AuthModule = class AuthModule {
22
24
  };
23
25
  exports.AuthModule = AuthModule;
@@ -40,14 +42,16 @@ exports.AuthModule = AuthModule = __decorate([
40
42
  }),
41
43
  typeorm_1.TypeOrmModule.forFeature([user_session_entity_1.UserSession]),
42
44
  ],
45
+ controllers: [auth_controller_1.AuthController],
43
46
  providers: [
44
47
  jwt_service_1.JwtAuthService,
45
48
  jwt_strategy_1.JwtStrategy,
46
49
  jwt_guard_1.JwtAuthGuard,
47
50
  google_strategy_1.GoogleStrategy,
48
51
  role_guard_1.RolesGuard,
52
+ auth_service_1.AuthService,
49
53
  ],
50
- exports: [jwt_service_1.JwtAuthService, jwt_guard_1.JwtAuthGuard, role_guard_1.RolesGuard],
54
+ exports: [jwt_service_1.JwtAuthService, jwt_guard_1.JwtAuthGuard, role_guard_1.RolesGuard, auth_service_1.AuthService],
51
55
  })
52
56
  ], AuthModule);
53
57
  //# sourceMappingURL=auth.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../src/module/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA6D;AAC7D,qCAAwC;AACxC,6CAAgD;AAChD,4DAAwD;AACxD,wDAAwD;AACxD,kDAAkD;AAElD,+CAAkD;AAClD,4EAAiE;AACjE,kEAA8D;AAC9D,oDAAiD;AAiC1C,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IA/BtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY;YACZ,yBAAc,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;YACnD,eAAS,CAAC,aAAa,CAAC;gBACtB,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,KAAK,EAAE,aAA4B,EAAE,EAAE;oBACjD,MAAM,aAAa,GAAG,UAAU,CAC9B,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,GAAG,CACzC,CAAC;oBACF,MAAM,eAAe,GAAG,aAAa,GAAG,EAAE,GAAG,EAAE,CAAC;oBAEhD,OAAO;wBACL,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;wBACvC,WAAW,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE;qBAC5C,CAAC;gBACJ,CAAC;aACF,CAAC;YAEF,uBAAa,CAAC,UAAU,CAAC,CAAC,iCAAW,CAAC,CAAC;SACxC;QACD,SAAS,EAAE;YACT,4BAAc;YACd,0BAAW;YACX,wBAAY;YACZ,gCAAc;YACd,uBAAU;SACX;QACD,OAAO,EAAE,CAAC,4BAAc,EAAE,wBAAY,EAAE,uBAAU,CAAC;KACpD,CAAC;GACW,UAAU,CAAG"}
1
+ {"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../src/module/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA6D;AAC7D,qCAAwC;AACxC,6CAAgD;AAChD,4DAAwD;AACxD,wDAAwD;AACxD,kDAAkD;AAElD,+CAAkD;AAClD,4EAAiE;AACjE,kEAA8D;AAC9D,oDAAiD;AACjD,0DAAsD;AACtD,kEAA8D;AAmCvD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAhCtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY;YACZ,yBAAc,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;YACnD,eAAS,CAAC,aAAa,CAAC;gBACtB,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,KAAK,EAAE,aAA4B,EAAE,EAAE;oBACjD,MAAM,aAAa,GAAG,UAAU,CAC9B,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,GAAG,CACzC,CAAC;oBACF,MAAM,eAAe,GAAG,aAAa,GAAG,EAAE,GAAG,EAAE,CAAC;oBAEhD,OAAO;wBACL,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;wBACvC,WAAW,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE;qBAC5C,CAAC;gBACJ,CAAC;aACF,CAAC;YACF,uBAAa,CAAC,UAAU,CAAC,CAAC,iCAAW,CAAC,CAAC;SACxC;QACD,WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE;YACT,4BAAc;YACd,0BAAW;YACX,wBAAY;YACZ,gCAAc;YACd,uBAAU;YACV,0BAAW;SACZ;QACD,OAAO,EAAE,CAAC,4BAAc,EAAE,wBAAY,EAAE,uBAAU,EAAE,0BAAW,CAAC;KACjE,CAAC;GACW,UAAU,CAAG"}
@@ -0,0 +1,8 @@
1
+ import { AuthService } from '../services/auth.service';
2
+ export declare class AuthController {
3
+ private readonly authService;
4
+ constructor(authService: AuthService);
5
+ getDashboard(req: any, fcmtoken: string): Promise<{
6
+ message: string;
7
+ }>;
8
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AuthController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const jwt_guard_1 = require("../guards/jwt.guard");
18
+ const auth_service_1 = require("../services/auth.service");
19
+ const ua_parser_js_1 = require("ua-parser-js");
20
+ let AuthController = class AuthController {
21
+ constructor(authService) {
22
+ this.authService = authService;
23
+ }
24
+ async getDashboard(req, fcmtoken) {
25
+ const loggedInUser = req.user.userData;
26
+ const ip = req.headers['x-forwarded-for']?.split(',')[0].trim() ||
27
+ req.socket.remoteAddress ||
28
+ req.ip ||
29
+ '';
30
+ const userAgent = req.headers['user-agent'] || '';
31
+ const parser = new ua_parser_js_1.UAParser(userAgent);
32
+ const browser = parser.getBrowser().name || 'Unknown';
33
+ const os = parser.getOS().name || 'Unknown';
34
+ return this.authService.fcmtoken(fcmtoken, loggedInUser, ip, browser, os);
35
+ }
36
+ };
37
+ exports.AuthController = AuthController;
38
+ __decorate([
39
+ (0, common_1.Post)('fcmtoken'),
40
+ (0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
41
+ __param(0, (0, common_1.Req)()),
42
+ __param(1, (0, common_1.Body)('fcmtoken')),
43
+ __metadata("design:type", Function),
44
+ __metadata("design:paramtypes", [Object, String]),
45
+ __metadata("design:returntype", Promise)
46
+ ], AuthController.prototype, "getDashboard", null);
47
+ exports.AuthController = AuthController = __decorate([
48
+ (0, common_1.Controller)('auth'),
49
+ __metadata("design:paramtypes", [auth_service_1.AuthService])
50
+ ], AuthController);
51
+ //# sourceMappingURL=auth.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../src/module/auth/controller/auth.controller.ts"],"names":[],"mappings":";;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+1,14 @@
1
- import { UserService } from '../../user/service/user.service';
2
1
  import { JwtService } from '@nestjs/jwt';
3
2
  import { UserData } from '../../user/entity/user.entity';
3
+ import { DataSource } from 'typeorm';
4
4
  export declare class AuthService {
5
- private userService;
6
5
  private jwtService;
7
- constructor(userService: UserService, jwtService: JwtService);
8
- validateUser(email: string, password: string): Promise<UserData>;
6
+ private dataSource;
7
+ constructor(jwtService: JwtService, dataSource: DataSource);
9
8
  login(user: UserData): Promise<{
10
9
  access_token: string;
11
10
  }>;
11
+ fcmtoken(fcmtoken: string, loggedInUser: any, ip: string, browser: string, os: string): Promise<{
12
+ message: string;
13
+ }>;
12
14
  }
@@ -11,33 +11,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AuthService = void 0;
13
13
  const common_1 = require("@nestjs/common");
14
- const user_service_1 = require("../../user/service/user.service");
15
14
  const jwt_1 = require("@nestjs/jwt");
15
+ const typeorm_1 = require("typeorm");
16
16
  let AuthService = class AuthService {
17
- constructor(userService, jwtService) {
18
- this.userService = userService;
17
+ constructor(jwtService, dataSource) {
19
18
  this.jwtService = jwtService;
20
- }
21
- async validateUser(email, password) {
22
- const user = await this.userService.findByEmailId(email);
23
- if (!user) {
24
- throw new common_1.BadRequestException('User not found');
25
- }
26
- const isMatch = password === user.password;
27
- if (!isMatch) {
28
- throw new common_1.BadRequestException('Password does not match');
29
- }
30
- return user;
19
+ this.dataSource = dataSource;
31
20
  }
32
21
  async login(user) {
33
22
  const payload = { email: user.email_id, id: user.id };
34
23
  return { access_token: this.jwtService.sign(payload) };
35
24
  }
25
+ async fcmtoken(fcmtoken, loggedInUser, ip, browser, os) {
26
+ const { id: userId, organization_id } = loggedInUser;
27
+ await this.dataSource.query(`UPDATE cr_user
28
+ SET fcm_token = ?, ip = ?, browser = ?, os = ?
29
+ WHERE id = ? AND organization_id = ?`, [fcmtoken, ip, browser, os, userId, organization_id]);
30
+ return { message: 'FCM token updated successfully' };
31
+ }
36
32
  };
37
33
  exports.AuthService = AuthService;
38
34
  exports.AuthService = AuthService = __decorate([
39
35
  (0, common_1.Injectable)(),
40
- __metadata("design:paramtypes", [user_service_1.UserService,
41
- jwt_1.JwtService])
36
+ __metadata("design:paramtypes", [jwt_1.JwtService,
37
+ typeorm_1.DataSource])
42
38
  ], AuthService);
43
39
  //# sourceMappingURL=auth.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/module/auth/services/auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiE;AACjE,kEAA8D;AAC9D,qCAAyC;AAIlC,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YACU,WAAwB,EACxB,UAAsB;QADtB,gBAAW,GAAX,WAAW,CAAa;QACxB,eAAU,GAAV,UAAU,CAAY;IAC7B,CAAC;IAEJ,KAAK,CAAC,YAAY,CAAC,KAAa,EAAE,QAAgB;QAChD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAC;QAClD,CAAC;QACD,MAAM,OAAO,GAAY,QAAQ,KAAK,IAAI,CAAC,QAAQ,CAAC;QACpD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,4BAAmB,CAAC,yBAAyB,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,IAAc;QACxB,MAAM,OAAO,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;QACtD,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;IACzD,CAAC;CACF,CAAA;AAtBY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAGY,0BAAW;QACZ,gBAAU;GAHrB,WAAW,CAsBvB"}
1
+ {"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/module/auth/services/auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyE;AAEzE,qCAAyC;AAEzC,qCAAqC;AAG9B,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YACU,UAAsB,EACtB,UAAsB;QADtB,eAAU,GAAV,UAAU,CAAY;QACtB,eAAU,GAAV,UAAU,CAAY;IAC7B,CAAC;IAcJ,KAAK,CAAC,KAAK,CAAC,IAAc;QACxB,MAAM,OAAO,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;QACtD,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,QAAgB,EAChB,YAAiB,EACjB,EAAU,EACV,OAAe,EACf,EAAU;QAEV,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,YAAY,CAAC;QAGrD,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACzB;;4CAEsC,EACtC,CAAC,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,eAAe,CAAC,CACrD,CAAC;QAEF,OAAO,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACvD,CAAC;CACF,CAAA;AA1CY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;qCAGW,gBAAU;QACV,oBAAU;GAHrB,WAAW,CA0CvB"}
@@ -50,7 +50,12 @@ exports.CommunicationModule = CommunicationModule = __decorate([
50
50
  typeorm_1.TypeOrmModule.forFeature([communication_config_entity_1.CommunicationConfig, communication_hub_entity_1.CommunicationHub]),
51
51
  ics_module_1.IcsMeetingModule,
52
52
  ],
53
- controllers: [communication_controller_1.CommunicationController, calender_event_controller_1.GoogleController, wrapper_controller_1.WrapperController, webhook_controller_1.WebhookController],
53
+ controllers: [
54
+ communication_controller_1.CommunicationController,
55
+ calender_event_controller_1.GoogleController,
56
+ wrapper_controller_1.WrapperController,
57
+ webhook_controller_1.WebhookController,
58
+ ],
54
59
  providers: [
55
60
  communication_service_1.CommunicationService,
56
61
  communication_queue_service_1.CommunicationQueueService,
@@ -1 +1 @@
1
- {"version":3,"file":"communication.module.js","sourceRoot":"","sources":["../../../src/module/communication/communication.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAGhD,sFAA2E;AAC3E,gFAAqE;AAGrE,2EAAuE;AACvE,uFAAkF;AAGlF,oFAAgF;AAGhF,8EAAyE;AACzE,gFAA2E;AAC3E,kFAA6E;AAC7E,oFAA+E;AAC/E,sEAAkE;AAClE,8EAAmG;AACnG,2FAAsF;AACtF,gGAA2F;AAG3F,0EAAsE;AACtE,sFAA8E;AAC9E,oFAA+E;AAC/E,4EAAkE;AAClE,0FAA2G;AAC3G,gGAAqH;AACrH,+EAA2E;AAC3E,2DAAuD;AAGvD,6DAAyD;AACzD,yDAAqD;AACrD,mEAA+D;AAC/D,qEAAiE;AACjE,6EAAyE;AACzE,sFAA0E;AAC1E,6EAAiE;AACjE,+DAA2D;AAC3D,wEAAoE;AACpE,kDAAqD;AACrD,wEAAoE;AAoD7D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAlD/B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,iDAAmB,EAAE,2CAAgB,CAAC,CAAC;YACjE,6BAAgB;SACjB;QACD,WAAW,EAAE,CAAC,kDAAuB,EAAE,4CAAgB,EAAE,sCAAiB,EAAE,sCAAiB,CAAC;QAC9F,SAAS,EAAE;YAET,4CAAoB;YACpB,uDAAyB;YACzB,4BAAY;YAGZ,qCAAgB;YAChB,uCAAiB;YACjB,yCAAkB;YAClB,2CAAmB;YAGnB,gCAAc;YACd,wCAAqB;YACrB,+CAAqB;YACrB,mDAAuB;YAGvB,kCAAe;YACf,0CAAiB;YACjB,2CAAmB;YACnB,gCAAW;YACX,8CAAuB;YACvB,8CAA2B;YAC3B,oCAAgB;YAGhB,4BAAY;YACZ,wBAAU;YACV,kCAAe;YACf,oCAAgB;YAChB,4CAAoB;YAEpB,sCAAa;YACb,gCAAc;SACf;QACD,OAAO,EAAE;YACP,4CAAoB;YACpB,4CAAoB;YACpB,uDAAyB;YACzB,gCAAc;SACf;KACF,CAAC;GACW,mBAAmB,CAAG"}
1
+ {"version":3,"file":"communication.module.js","sourceRoot":"","sources":["../../../src/module/communication/communication.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAGhD,sFAA2E;AAC3E,gFAAqE;AAGrE,2EAAuE;AACvE,uFAAkF;AAGlF,oFAAgF;AAGhF,8EAAyE;AACzE,gFAA2E;AAC3E,kFAA6E;AAC7E,oFAA+E;AAC/E,sEAAkE;AAClE,8EAAmG;AACnG,2FAAsF;AACtF,gGAA2F;AAG3F,0EAAsE;AACtE,sFAA8E;AAC9E,oFAA+E;AAC/E,4EAAkE;AAClE,0FAA2G;AAC3G,gGAAqH;AACrH,+EAA2E;AAC3E,2DAAuD;AAGvD,6DAAyD;AACzD,yDAAqD;AACrD,mEAA+D;AAC/D,qEAAiE;AACjE,6EAAyE;AACzE,sFAA0E;AAC1E,6EAAiE;AACjE,+DAA2D;AAC3D,wEAAoE;AACpE,kDAAqD;AACrD,wEAAoE;AAyD7D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAvD/B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,iDAAmB,EAAE,2CAAgB,CAAC,CAAC;YACjE,6BAAgB;SACjB;QACD,WAAW,EAAE;YACX,kDAAuB;YACvB,4CAAgB;YAChB,sCAAiB;YACjB,sCAAiB;SAClB;QACD,SAAS,EAAE;YAET,4CAAoB;YACpB,uDAAyB;YACzB,4BAAY;YAGZ,qCAAgB;YAChB,uCAAiB;YACjB,yCAAkB;YAClB,2CAAmB;YAGnB,gCAAc;YACd,wCAAqB;YACrB,+CAAqB;YACrB,mDAAuB;YAGvB,kCAAe;YACf,0CAAiB;YACjB,2CAAmB;YACnB,gCAAW;YACX,8CAAuB;YACvB,8CAA2B;YAC3B,oCAAgB;YAGhB,4BAAY;YACZ,wBAAU;YACV,kCAAe;YACf,oCAAgB;YAChB,4CAAoB;YAEpB,sCAAa;YACb,gCAAc;SACf;QACD,OAAO,EAAE;YACP,4CAAoB;YACpB,4CAAoB;YACpB,uDAAyB;YACzB,gCAAc;SACf;KACF,CAAC;GACW,mBAAmB,CAAG"}
@@ -1,4 +1,5 @@
1
1
  import { Response } from 'express';
2
2
  export declare class WebhookController {
3
3
  handleTubelightWebhook(req: any, res: Response): void;
4
+ handleOzonetelWebhook(req: any, res: Response): void;
4
5
  }
@@ -22,6 +22,13 @@ let WebhookController = class WebhookController {
22
22
  console.log(req);
23
23
  res.status(200).send('Webhook received');
24
24
  }
25
+ handleOzonetelWebhook(req, res) {
26
+ const apiKey = req.headers['x-api-key'];
27
+ console.log('API Key:', apiKey);
28
+ console.log('handleOzonetelWebhook: START');
29
+ console.log(req);
30
+ res.status(200).send('Webhook received');
31
+ }
25
32
  };
26
33
  exports.WebhookController = WebhookController;
27
34
  __decorate([
@@ -32,6 +39,14 @@ __decorate([
32
39
  __metadata("design:paramtypes", [Object, Object]),
33
40
  __metadata("design:returntype", void 0)
34
41
  ], WebhookController.prototype, "handleTubelightWebhook", null);
42
+ __decorate([
43
+ (0, common_1.Post)('ozonetel'),
44
+ __param(0, (0, common_1.Req)()),
45
+ __param(1, (0, common_1.Res)()),
46
+ __metadata("design:type", Function),
47
+ __metadata("design:paramtypes", [Object, Object]),
48
+ __metadata("design:returntype", void 0)
49
+ ], WebhookController.prototype, "handleOzonetelWebhook", null);
35
50
  exports.WebhookController = WebhookController = __decorate([
36
51
  (0, common_1.Controller)('webhook')
37
52
  ], WebhookController);
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.controller.js","sourceRoot":"","sources":["../../../../src/module/communication/controller/webhook.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4D;AAIrD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,sBAAsB,CACb,GAAQ,EACR,GAAa;QAEpB,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAChC,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AAZY,8CAAiB;AAE5B;IADC,IAAA,aAAI,EAAC,WAAW,CAAC;IAEf,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+DAOP;4BAXU,iBAAiB;IAD7B,IAAA,mBAAU,EAAC,SAAS,CAAC;GACT,iBAAiB,CAY7B"}
1
+ {"version":3,"file":"webhook.controller.js","sourceRoot":"","sources":["../../../../src/module/communication/controller/webhook.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4D;AAIrD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,sBAAsB,CAAQ,GAAQ,EAAS,GAAa;QAC1D,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAChC,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC3C,CAAC;IAGD,qBAAqB,CAAQ,GAAQ,EAAS,GAAa;QACzD,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAChC,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AAlBY,8CAAiB;AAE5B;IADC,IAAA,aAAI,EAAC,WAAW,CAAC;IACM,WAAA,IAAA,YAAG,GAAE,CAAA;IAAY,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+DAM7C;AAGD;IADC,IAAA,aAAI,EAAC,UAAU,CAAC;IACM,WAAA,IAAA,YAAG,GAAE,CAAA;IAAY,WAAA,IAAA,YAAG,GAAE,CAAA;;;;8DAM5C;4BAjBU,iBAAiB;IAD7B,IAAA,mBAAU,EAAC,SAAS,CAAC;GACT,iBAAiB,CAkB7B"}
@@ -4,4 +4,5 @@ export declare class SavedFilterMaster extends BaseEntity {
4
4
  mapped_entity_type: string;
5
5
  user_id: number;
6
6
  is_default: boolean;
7
+ filter_scope: 'FILTER' | 'RULE';
7
8
  }
@@ -32,6 +32,10 @@ __decorate([
32
32
  (0, typeorm_1.Column)({ type: 'boolean', default: false }),
33
33
  __metadata("design:type", Boolean)
34
34
  ], SavedFilterMaster.prototype, "is_default", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'varchar', length: 20, default: 'FILTER' }),
37
+ __metadata("design:type", String)
38
+ ], SavedFilterMaster.prototype, "filter_scope", void 0);
35
39
  exports.SavedFilterMaster = SavedFilterMaster = __decorate([
36
40
  (0, typeorm_1.Entity)({ name: 'cr_saved_filter_master' }),
37
41
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":"saved-filter-master.entity.js","sourceRoot":"","sources":["../../../../src/module/filter/entity/saved-filter-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAA4E;AAC5E,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+BAAU;IAC/C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,8CAA4B,CAAC;IAClD,CAAC;CAUF,CAAA;AAdY,8CAAiB;AAO5B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DAC7B;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACxB;4BAbT,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;;GAC9B,iBAAiB,CAc7B"}
1
+ {"version":3,"file":"saved-filter-master.entity.js","sourceRoot":"","sources":["../../../../src/module/filter/entity/saved-filter-master.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAA4E;AAC5E,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+BAAU;IAC/C;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,8CAA4B,CAAC;IAClD,CAAC;CAaF,CAAA;AAjBY,8CAAiB;AAO5B;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DAC7B;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACxB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;uDAC3B;4BAhBrB,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;;GAC9B,iBAAiB,CAiB7B"}
@@ -0,0 +1,5 @@
1
+ import { WorkflowAutomationService } from '../service/workflow-automation.service';
2
+ export declare class WorkflowAutomationController {
3
+ private readonly workflowAutomationService;
4
+ constructor(workflowAutomationService: WorkflowAutomationService);
5
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.WorkflowAutomationController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const jwt_guard_1 = require("../../auth/guards/jwt.guard");
18
+ const workflow_automation_service_1 = require("../service/workflow-automation.service");
19
+ let WorkflowAutomationController = class WorkflowAutomationController {
20
+ constructor(workflowAutomationService) {
21
+ this.workflowAutomationService = workflowAutomationService;
22
+ }
23
+ };
24
+ exports.WorkflowAutomationController = WorkflowAutomationController;
25
+ exports.WorkflowAutomationController = WorkflowAutomationController = __decorate([
26
+ (0, common_1.Controller)('/workflow-automation'),
27
+ (0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
28
+ __param(0, (0, common_1.Inject)('WorkflowAutomationService')),
29
+ __metadata("design:paramtypes", [workflow_automation_service_1.WorkflowAutomationService])
30
+ ], WorkflowAutomationController);
31
+ //# sourceMappingURL=workflow-automation.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow-automation/controller/workflow-automation.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,wFAAmF;AAI5E,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACvC,YAEmB,yBAAoD;QAApD,8BAAyB,GAAzB,yBAAyB,CAA2B;IACpE,CAAC;CACL,CAAA;AALY,oEAA4B;uCAA5B,4BAA4B;IAFxC,IAAA,mBAAU,EAAC,sBAAsB,CAAC;IAClC,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,2BAA2B,CAAC,CAAA;qCACQ,uDAAyB;GAH5D,4BAA4B,CAKxC"}
@@ -0,0 +1,10 @@
1
+ import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
2
+ export declare class WorkflowAutomation extends BaseEntity {
3
+ constructor();
4
+ description: string;
5
+ mapped_entity_type: string;
6
+ trigger_event: string;
7
+ condition_filter_code: string;
8
+ criteria_filter_code: string;
9
+ is_active: boolean;
10
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.WorkflowAutomation = void 0;
13
+ const global_constant_1 = require("../../../constant/global.constant");
14
+ const base_entity_entity_1 = require("../../meta/entity/base-entity.entity");
15
+ const typeorm_1 = require("typeorm");
16
+ let WorkflowAutomation = class WorkflowAutomation extends base_entity_entity_1.BaseEntity {
17
+ constructor() {
18
+ super();
19
+ this.entity_type = global_constant_1.WORKFLOW_AUTOMATION;
20
+ }
21
+ };
22
+ exports.WorkflowAutomation = WorkflowAutomation;
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
25
+ __metadata("design:type", String)
26
+ ], WorkflowAutomation.prototype, "description", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
29
+ __metadata("design:type", String)
30
+ ], WorkflowAutomation.prototype, "mapped_entity_type", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], WorkflowAutomation.prototype, "trigger_event", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
37
+ __metadata("design:type", String)
38
+ ], WorkflowAutomation.prototype, "condition_filter_code", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
41
+ __metadata("design:type", String)
42
+ ], WorkflowAutomation.prototype, "criteria_filter_code", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ nullable: true }),
45
+ __metadata("design:type", Boolean)
46
+ ], WorkflowAutomation.prototype, "is_active", void 0);
47
+ exports.WorkflowAutomation = WorkflowAutomation = __decorate([
48
+ (0, typeorm_1.Entity)({ name: 'cr_workflow_automation' }),
49
+ __metadata("design:paramtypes", [])
50
+ ], WorkflowAutomation);
51
+ //# sourceMappingURL=workflow-automation.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow-automation/entity/workflow-automation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,+BAAU;IAChD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,qCAAmB,CAAC;IACzC,CAAC;CAmBF,CAAA;AAvBY,gDAAkB;AAO7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACjB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACtB;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACd;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACf;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACR;6BAtBR,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;;GAC9B,kBAAkB,CAuB9B"}
@@ -0,0 +1,6 @@
1
+ import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
2
+ import { DataSource } from 'typeorm';
3
+ export declare class WorkflowAutomationService extends EntityServiceImpl {
4
+ private readonly dataSource;
5
+ constructor(dataSource: DataSource);
6
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.WorkflowAutomationService = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
15
+ const typeorm_1 = require("typeorm");
16
+ let WorkflowAutomationService = class WorkflowAutomationService extends entity_service_impl_service_1.EntityServiceImpl {
17
+ constructor(dataSource) {
18
+ super();
19
+ this.dataSource = dataSource;
20
+ }
21
+ };
22
+ exports.WorkflowAutomationService = WorkflowAutomationService;
23
+ exports.WorkflowAutomationService = WorkflowAutomationService = __decorate([
24
+ (0, common_1.Injectable)(),
25
+ __metadata("design:paramtypes", [typeorm_1.DataSource])
26
+ ], WorkflowAutomationService);
27
+ //# sourceMappingURL=workflow-automation.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.service.js","sourceRoot":"","sources":["../../../../src/module/workflow-automation/service/workflow-automation.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AACxF,qCAAqC;AAG9B,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,+CAAiB;IAC9D,YAA6B,UAAsB;QACjD,KAAK,EAAE,CAAC;QADmB,eAAU,GAAV,UAAU,CAAY;IAEnD,CAAC;CACF,CAAA;AAJY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;qCAE8B,oBAAU;GADxC,yBAAyB,CAIrC"}
@@ -0,0 +1,2 @@
1
+ export declare class WorkflowAutomationModule {
2
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.WorkflowAutomationModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const typeorm_1 = require("@nestjs/typeorm");
12
+ const workflow_automation_entity_1 = require("./entity/workflow-automation.entity");
13
+ const workflow_automation_controller_1 = require("./controller/workflow-automation.controller");
14
+ const workflow_automation_service_1 = require("./service/workflow-automation.service");
15
+ const entity_module_1 = require("../meta/entity.module");
16
+ let WorkflowAutomationModule = class WorkflowAutomationModule {
17
+ };
18
+ exports.WorkflowAutomationModule = WorkflowAutomationModule;
19
+ exports.WorkflowAutomationModule = WorkflowAutomationModule = __decorate([
20
+ (0, common_1.Module)({
21
+ imports: [typeorm_1.TypeOrmModule.forFeature([workflow_automation_entity_1.WorkflowAutomation]), entity_module_1.EntityModule],
22
+ providers: [
23
+ {
24
+ provide: 'WorkflowAutomationService',
25
+ useClass: workflow_automation_service_1.WorkflowAutomationService,
26
+ },
27
+ ],
28
+ exports: [],
29
+ controllers: [workflow_automation_controller_1.WorkflowAutomationController],
30
+ })
31
+ ], WorkflowAutomationModule);
32
+ //# sourceMappingURL=workflow-automation.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-automation.module.js","sourceRoot":"","sources":["../../../src/module/workflow-automation/workflow-automation.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,oFAAyE;AACzE,gGAA2F;AAC3F,uFAAkF;AAClF,yDAAqD;AAa9C,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,4DAAwB;mCAAxB,wBAAwB;IAXpC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,+CAAkB,CAAC,CAAC,EAAE,4BAAY,CAAC;QACvE,SAAS,EAAE;YACT;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,uDAAyB;aACpC;SACF;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,CAAC,6DAA4B,CAAC;KAC5C,CAAC;GACW,wBAAwB,CAAG"}