@futdevpro/nts-dynamo 1.14.12 → 1.14.14
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.
- package/.vscode/settings.json +11 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.js +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.js.map +1 -1
- package/build/_modules/bot/_enums/bot-provider.enum.d.ts +1 -0
- package/build/_modules/bot/_enums/bot-provider.enum.d.ts.map +1 -1
- package/build/_modules/bot/_enums/bot-provider.enum.js +1 -0
- package/build/_modules/bot/_enums/bot-provider.enum.js.map +1 -1
- package/build/_modules/bot/_models/bot-provider.interface.d.ts +5 -0
- package/build/_modules/bot/_models/bot-provider.interface.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts +17 -0
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js +43 -0
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts +5 -0
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js +26 -0
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts +10 -0
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.js +3 -0
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.js.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-provider.service.d.ts +54 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-provider.service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-provider.service.js +310 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-provider.service.js.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts +5 -0
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/index.js +17 -0
- package/build/_modules/bot/_modules/dynamo-bot/index.js.map +1 -0
- package/build/_modules/bot/_services/bot-provider-factory.service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-provider-factory.service.js +3 -0
- package/build/_modules/bot/_services/bot-provider-factory.service.js.map +1 -1
- package/build/_modules/bot/index.d.ts +1 -0
- package/build/_modules/bot/index.d.ts.map +1 -1
- package/build/_modules/bot/index.js +1 -0
- package/build/_modules/bot/index.js.map +1 -1
- package/build/_modules/messaging/_services/msg.controller.js.map +1 -1
- package/build/_services/base/data.service.js +4 -4
- package/build/_services/base/data.service.js.map +1 -1
- package/eslint.config.js +3 -0
- package/package.json +16 -4
- package/src/_modules/ai/_modules/open-ai/_services/oai-document.data-service.ts +1 -1
- package/src/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.ts +1 -1
- package/src/_modules/bot/_enums/bot-provider.enum.ts +1 -0
- package/src/_modules/bot/_models/bot-provider.interface.ts +5 -0
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts +52 -0
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.ts +26 -0
- package/src/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.ts +15 -0
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-provider.service.ts +399 -0
- package/src/_modules/bot/_modules/dynamo-bot/index.ts +16 -0
- package/src/_modules/bot/_services/bot-provider-factory.service.ts +4 -0
- package/src/_modules/bot/index.ts +1 -0
- package/src/_modules/messaging/_services/msg.controller.ts +1 -1
- package/src/_services/base/data.service.ts +4 -4
- package/.eslintrc.json +0 -186
- package/build/_modules/messaging/get-messaging-routing-module.util.d.ts +0 -8
- package/build/_modules/messaging/get-messaging-routing-module.util.d.ts.map +0 -1
- package/build/_modules/messaging/get-messaging-routing-module.util.js +0 -21
- package/build/_modules/messaging/get-messaging-routing-module.util.js.map +0 -1
- package/build/_modules/messaging/messaging.controller.d.ts +0 -13
- package/build/_modules/messaging/messaging.controller.d.ts.map +0 -1
- package/build/_modules/messaging/messaging.controller.js +0 -257
- package/build/_modules/messaging/messaging.controller.js.map +0 -1
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DyNTS_getMessagingRoutingModule = DyNTS_getMessagingRoutingModule;
|
|
4
|
-
const messaging_1 = require("@futdevpro/fsm-dynamo/messaging");
|
|
5
|
-
const routing_module_service_1 = require("../../_services/route/routing-module.service");
|
|
6
|
-
const messaging_controller_1 = require("./messaging.controller");
|
|
7
|
-
/**
|
|
8
|
-
* Get messaging routing module
|
|
9
|
-
* Creates and configures the messaging module routes
|
|
10
|
-
*/
|
|
11
|
-
function DyNTS_getMessagingRoutingModule(securityOverride) {
|
|
12
|
-
const set = {
|
|
13
|
-
route: messaging_1.DyFM_msgModule_settings.mainRoute,
|
|
14
|
-
controllers: [messaging_controller_1.DyNTS_Messaging_Controller.getInstance()],
|
|
15
|
-
};
|
|
16
|
-
if (securityOverride) {
|
|
17
|
-
set.securityOverride = securityOverride;
|
|
18
|
-
}
|
|
19
|
-
return new routing_module_service_1.DyNTS_RoutingModule(set);
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=get-messaging-routing-module.util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-messaging-routing-module.util.js","sourceRoot":"","sources":["../../../src/_modules/messaging/get-messaging-routing-module.util.ts"],"names":[],"mappings":";;AAYA,0EAaC;AAzBD,+DAA0E;AAK1E,yFAAmF;AACnF,iEAAoE;AAEpE;;;GAGG;AACH,SAAgB,+BAA+B,CAC7C,gBAAsC;IAEtC,MAAM,GAAG,GAAiC;QACxC,KAAK,EAAE,mCAAuB,CAAC,SAAS;QACxC,WAAW,EAAE,CAAC,iDAA0B,CAAC,WAAW,EAAE,CAAC;KACxD,CAAC;IAEF,IAAI,gBAAgB,EAAE,CAAC;QACrB,GAAG,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC1C,CAAC;IAED,OAAO,IAAI,4CAAmB,CAAC,GAAG,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DyNTS_Controller } from '../../_services/route/controller.service';
|
|
2
|
-
/**
|
|
3
|
-
* Messaging Controller
|
|
4
|
-
* Handles HTTP endpoints for messaging operations
|
|
5
|
-
*/
|
|
6
|
-
export declare class DyNTS_Messaging_Controller extends DyNTS_Controller {
|
|
7
|
-
static getInstance(): DyNTS_Messaging_Controller;
|
|
8
|
-
private authService;
|
|
9
|
-
private eventsService;
|
|
10
|
-
private msgControlService;
|
|
11
|
-
setupEndpoints(): void;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=messaging.controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.controller.d.ts","sourceRoot":"","sources":["../../../src/_modules/messaging/messaging.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAM5E;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,gBAAgB;IAE9D,MAAM,CAAC,WAAW,IAAI,0BAA0B;IAIhD,OAAO,CAAC,WAAW,CAAoB;IACvC,OAAO,CAAC,aAAa,CAA0C;IAC/D,OAAO,CAAC,iBAAiB,CAA+C;IAExE,cAAc,IAAI,IAAI;CAgVvB"}
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DyNTS_Messaging_Controller = void 0;
|
|
4
|
-
const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
|
|
5
|
-
const messaging_1 = require("@futdevpro/fsm-dynamo/messaging");
|
|
6
|
-
const endpoint_params_control_model_1 = require("../../_models/control-models/endpoint-params.control-model");
|
|
7
|
-
const global_service_1 = require("../../_services/core/global.service");
|
|
8
|
-
const controller_service_1 = require("../../_services/route/controller.service");
|
|
9
|
-
const msg_message_data_service_1 = require("./_services/msg-message.data-service");
|
|
10
|
-
const msg_conversation_data_service_1 = require("./_services/msg-conversation.data-service");
|
|
11
|
-
const msg_events_service_1 = require("./_services/msg-events.service");
|
|
12
|
-
const msg_main_control_service_1 = require("./_services/msg-main.control-service");
|
|
13
|
-
/**
|
|
14
|
-
* Messaging Controller
|
|
15
|
-
* Handles HTTP endpoints for messaging operations
|
|
16
|
-
*/
|
|
17
|
-
class DyNTS_Messaging_Controller extends controller_service_1.DyNTS_Controller {
|
|
18
|
-
static getInstance() {
|
|
19
|
-
return DyNTS_Messaging_Controller.getSingletonInstance();
|
|
20
|
-
}
|
|
21
|
-
authService;
|
|
22
|
-
eventsService = msg_events_service_1.DyNTS_Msg_Events_Service.getInstance();
|
|
23
|
-
msgControlService = msg_main_control_service_1.DyNTS_Msg_Main_ControlService.getInstance();
|
|
24
|
-
setupEndpoints() {
|
|
25
|
-
try {
|
|
26
|
-
this.authService = global_service_1.DyNTS_GlobalService.getAuthService();
|
|
27
|
-
}
|
|
28
|
-
catch (error) {
|
|
29
|
-
// Auth service not available - use default auth service
|
|
30
|
-
const { DyNTS_Default_AuthService } = require('../defaults/_services/default-auth.service');
|
|
31
|
-
this.authService = DyNTS_Default_AuthService.getInstance();
|
|
32
|
-
}
|
|
33
|
-
this.endpoints = [
|
|
34
|
-
// Get user's conversations
|
|
35
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
36
|
-
name: 'getConversations',
|
|
37
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.get,
|
|
38
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.getConversations,
|
|
39
|
-
tasks: [
|
|
40
|
-
async (req, res, issuer) => {
|
|
41
|
-
const userId = this.authService.getIssuerFromRequest(req);
|
|
42
|
-
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
43
|
-
issuer,
|
|
44
|
-
});
|
|
45
|
-
const conversations = await conversationService.getUserConversations(userId);
|
|
46
|
-
res.send(conversations);
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
}),
|
|
50
|
-
// Get single conversation
|
|
51
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
52
|
-
name: 'getConversation',
|
|
53
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.get,
|
|
54
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.getConversation,
|
|
55
|
-
tasks: [
|
|
56
|
-
async (req, res, issuer) => {
|
|
57
|
-
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
58
|
-
issuer,
|
|
59
|
-
});
|
|
60
|
-
await conversationService.getDataById(req.params.conversationId);
|
|
61
|
-
res.send(conversationService.data);
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
}),
|
|
65
|
-
// Create conversation
|
|
66
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
67
|
-
name: 'createConversation',
|
|
68
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.post,
|
|
69
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.createConversation,
|
|
70
|
-
tasks: [
|
|
71
|
-
async (req, res, issuer) => {
|
|
72
|
-
const creatorId = this.authService.getIssuerFromRequest(req);
|
|
73
|
-
const conversation = await this.msgControlService.createConversation(req.body, creatorId, issuer);
|
|
74
|
-
res.status(201).send(conversation);
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
}),
|
|
78
|
-
// Get messages for conversation
|
|
79
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
80
|
-
name: 'getMessages',
|
|
81
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.get,
|
|
82
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.getMessages,
|
|
83
|
-
tasks: [
|
|
84
|
-
async (req, res, issuer) => {
|
|
85
|
-
const conversationId = req.params.conversationId;
|
|
86
|
-
const limit = req.query.limit ? parseInt(req.query.limit) : undefined;
|
|
87
|
-
const skip = req.query.skip ? parseInt(req.query.skip) : undefined;
|
|
88
|
-
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
89
|
-
issuer,
|
|
90
|
-
});
|
|
91
|
-
const messages = await messageService.getConversationMessages(conversationId, limit, skip);
|
|
92
|
-
res.send(messages);
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
}),
|
|
96
|
-
// Send message
|
|
97
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
98
|
-
name: 'sendMessage',
|
|
99
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.post,
|
|
100
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.sendMessage,
|
|
101
|
-
tasks: [
|
|
102
|
-
async (req, res, issuer) => {
|
|
103
|
-
const conversationId = req.params.conversationId;
|
|
104
|
-
const senderId = this.authService.getIssuerFromRequest(req);
|
|
105
|
-
const message = await this.msgControlService.sendMessage(conversationId, req.body, senderId, issuer);
|
|
106
|
-
res.status(201).send(message);
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
|
-
}),
|
|
110
|
-
// Edit message
|
|
111
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
112
|
-
name: 'editMessage',
|
|
113
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.patch,
|
|
114
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.editMessage,
|
|
115
|
-
tasks: [
|
|
116
|
-
async (req, res, issuer) => {
|
|
117
|
-
const messageId = req.params.messageId;
|
|
118
|
-
const userId = this.authService.getIssuerFromRequest(req);
|
|
119
|
-
const message = await this.msgControlService.editMessage(messageId, req.body.content, userId, issuer);
|
|
120
|
-
res.send(message);
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
}),
|
|
124
|
-
// Delete message
|
|
125
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
126
|
-
name: 'deleteMessage',
|
|
127
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.delete,
|
|
128
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.deleteMessage,
|
|
129
|
-
tasks: [
|
|
130
|
-
async (req, res, issuer) => {
|
|
131
|
-
const messageId = req.params.messageId;
|
|
132
|
-
const userId = this.authService.getIssuerFromRequest(req);
|
|
133
|
-
await this.msgControlService.deleteMessage(messageId, userId, issuer);
|
|
134
|
-
res.send({ success: true });
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
}),
|
|
138
|
-
// Mark messages as read
|
|
139
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
140
|
-
name: 'markAsRead',
|
|
141
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.post,
|
|
142
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.markAsRead,
|
|
143
|
-
tasks: [
|
|
144
|
-
async (req, res, issuer) => {
|
|
145
|
-
const userId = this.authService.getIssuerFromRequest(req);
|
|
146
|
-
const messageIds = req.body.messageIds || [];
|
|
147
|
-
const result = await this.msgControlService.markMessagesAsRead(messageIds, userId, issuer);
|
|
148
|
-
res.send(result);
|
|
149
|
-
},
|
|
150
|
-
],
|
|
151
|
-
}),
|
|
152
|
-
// Add reaction
|
|
153
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
154
|
-
name: 'addReaction',
|
|
155
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.post,
|
|
156
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.addReaction,
|
|
157
|
-
tasks: [
|
|
158
|
-
async (req, res, issuer) => {
|
|
159
|
-
const messageId = req.params.messageId;
|
|
160
|
-
const { emoji } = req.body;
|
|
161
|
-
const userId = this.authService.getIssuerFromRequest(req);
|
|
162
|
-
const message = await this.msgControlService.addReaction(messageId, emoji, userId, issuer);
|
|
163
|
-
res.send(message);
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
}),
|
|
167
|
-
// Remove reaction
|
|
168
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
169
|
-
name: 'removeReaction',
|
|
170
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.delete,
|
|
171
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.removeReaction,
|
|
172
|
-
tasks: [
|
|
173
|
-
async (req, res, issuer) => {
|
|
174
|
-
const messageId = req.params.messageId;
|
|
175
|
-
const { emoji } = req.params;
|
|
176
|
-
const userId = this.authService.getIssuerFromRequest(req);
|
|
177
|
-
const message = await this.msgControlService.removeReaction(messageId, emoji, userId, issuer);
|
|
178
|
-
res.send(message);
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
}),
|
|
182
|
-
// Update conversation
|
|
183
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
184
|
-
name: 'updateConversation',
|
|
185
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.patch,
|
|
186
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.updateConversation,
|
|
187
|
-
tasks: [
|
|
188
|
-
async (req, res, issuer) => {
|
|
189
|
-
const conversationId = req.params.conversationId;
|
|
190
|
-
const userId = this.authService.getIssuerFromRequest(req);
|
|
191
|
-
const conversation = await this.msgControlService.updateConversation(conversationId, req.body, userId, issuer);
|
|
192
|
-
res.send(conversation);
|
|
193
|
-
},
|
|
194
|
-
],
|
|
195
|
-
}),
|
|
196
|
-
// Delete conversation
|
|
197
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
198
|
-
name: 'deleteConversation',
|
|
199
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.delete,
|
|
200
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.deleteConversation,
|
|
201
|
-
tasks: [
|
|
202
|
-
async (req, res, issuer) => {
|
|
203
|
-
const conversationId = req.params.conversationId;
|
|
204
|
-
const userId = this.authService.getIssuerFromRequest(req);
|
|
205
|
-
await this.msgControlService.deleteConversation(conversationId, userId, issuer);
|
|
206
|
-
res.send({ success: true });
|
|
207
|
-
},
|
|
208
|
-
],
|
|
209
|
-
}),
|
|
210
|
-
// Add participant
|
|
211
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
212
|
-
name: 'addParticipant',
|
|
213
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.post,
|
|
214
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.addParticipant,
|
|
215
|
-
tasks: [
|
|
216
|
-
async (req, res, issuer) => {
|
|
217
|
-
const conversationId = req.params.conversationId;
|
|
218
|
-
const { userId: newUserId, role = 'member' } = req.body;
|
|
219
|
-
const requesterId = this.authService.getIssuerFromRequest(req);
|
|
220
|
-
await this.msgControlService.addParticipant(conversationId, newUserId, role, requesterId, issuer);
|
|
221
|
-
res.send({ success: true });
|
|
222
|
-
},
|
|
223
|
-
],
|
|
224
|
-
}),
|
|
225
|
-
// Remove participant
|
|
226
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
227
|
-
name: 'removeParticipant',
|
|
228
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.delete,
|
|
229
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.removeParticipant,
|
|
230
|
-
tasks: [
|
|
231
|
-
async (req, res, issuer) => {
|
|
232
|
-
const conversationId = req.params.conversationId;
|
|
233
|
-
const userIdToRemove = req.params.userId;
|
|
234
|
-
const requesterId = this.authService.getIssuerFromRequest(req);
|
|
235
|
-
await this.msgControlService.removeParticipant(conversationId, userIdToRemove, requesterId, issuer);
|
|
236
|
-
res.send({ success: true });
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
}),
|
|
240
|
-
// Get agent process
|
|
241
|
-
new endpoint_params_control_model_1.DyNTS_Endpoint_Params({
|
|
242
|
-
name: 'getAgentProcess',
|
|
243
|
-
type: fsm_dynamo_1.DyFM_HttpCallType.get,
|
|
244
|
-
endpoint: messaging_1.DyFM_msgModule_settings.endPoints.getAgentProcess,
|
|
245
|
-
tasks: [
|
|
246
|
-
async (req, res, issuer) => {
|
|
247
|
-
const messageId = req.params.messageId;
|
|
248
|
-
const agentProcessSteps = await this.msgControlService.getAgentProcessSteps(messageId, issuer);
|
|
249
|
-
res.send(agentProcessSteps);
|
|
250
|
-
},
|
|
251
|
-
],
|
|
252
|
-
}),
|
|
253
|
-
];
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
exports.DyNTS_Messaging_Controller = DyNTS_Messaging_Controller;
|
|
257
|
-
//# sourceMappingURL=messaging.controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.controller.js","sourceRoot":"","sources":["../../../src/_modules/messaging/messaging.controller.ts"],"names":[],"mappings":";;;AACA,sDAA0D;AAC1D,+DAMyC;AAEzC,8GAAmG;AAEnG,wEAA0E;AAC1E,iFAA4E;AAC5E,mFAAqF;AACrF,6FAA+F;AAC/F,uEAA0E;AAC1E,mFAAqF;AAErF;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,qCAAgB;IAE9D,MAAM,CAAC,WAAW;QAChB,OAAO,0BAA0B,CAAC,oBAAoB,EAAE,CAAC;IAC3D,CAAC;IAEO,WAAW,CAAoB;IAC/B,aAAa,GAAG,6CAAwB,CAAC,WAAW,EAAE,CAAC;IACvD,iBAAiB,GAAG,wDAA6B,CAAC,WAAW,EAAE,CAAC;IAExE,cAAc;Q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