@cleardu/types 1.0.318 → 1.0.319
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/constants/brokerMessages/index.d.ts +6 -2
- package/constants/brokerMessages/index.js +6 -2
- package/constants/brokerMessages/index.ts +6 -2
- package/interfaces/index.d.ts +1 -0
- package/interfaces/index.js +1 -0
- package/interfaces/index.ts +1 -0
- package/interfaces/userActivity/index.d.ts +125 -0
- package/interfaces/userActivity/index.js +40 -0
- package/interfaces/userActivity/index.ts +134 -0
- package/interfaces/userStatus/index.d.ts +0 -43
- package/interfaces/userStatus/index.js +0 -23
- package/interfaces/userStatus/index.ts +4 -51
- package/interfaces/webhook/index.d.ts +1 -0
- package/interfaces/webhook/index.ts +1 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -26,8 +26,11 @@ export declare const BrokerMessages: {
|
|
|
26
26
|
FIND_MANY: string;
|
|
27
27
|
FIND_AND_COUNT_ALL: string;
|
|
28
28
|
UPDATE: string;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
UPDATE_CALL_COUNT: string;
|
|
30
|
+
CREATE_TEMP: string;
|
|
31
|
+
};
|
|
32
|
+
PRODUCTIVITY: {
|
|
33
|
+
FIND_AND_COUNT_ALL: string;
|
|
31
34
|
};
|
|
32
35
|
ROLE: {
|
|
33
36
|
CREATE: string;
|
|
@@ -165,6 +168,7 @@ export declare const BrokerMessages: {
|
|
|
165
168
|
LOAN_MAPPING: {
|
|
166
169
|
CREATE: string;
|
|
167
170
|
UPDATE: string;
|
|
171
|
+
LOAN_COUNT: string;
|
|
168
172
|
};
|
|
169
173
|
BORROWER_DISPOSITION: {
|
|
170
174
|
CREATE: string;
|
|
@@ -29,8 +29,11 @@ exports.BrokerMessages = {
|
|
|
29
29
|
FIND_MANY: 'GET-MANY-USER-ACTIVITY',
|
|
30
30
|
FIND_AND_COUNT_ALL: 'FIND-AND-COUNT-ALL-USER-ACTIVITY',
|
|
31
31
|
UPDATE: 'UPDATE-USER-ACTIVITY',
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
UPDATE_CALL_COUNT: 'UPDATE-USER-ACTIVITY-STAT-CALLS-COUNT',
|
|
33
|
+
CREATE_TEMP: 'CREATE-TEMP-USER-ACTIVITY-RECORDS',
|
|
34
|
+
},
|
|
35
|
+
PRODUCTIVITY: {
|
|
36
|
+
FIND_AND_COUNT_ALL: 'FIND-AND-COUNT-ALL-USER-PRODUCTIVITY',
|
|
34
37
|
},
|
|
35
38
|
ROLE: {
|
|
36
39
|
CREATE: 'CREATE-ROLE',
|
|
@@ -168,6 +171,7 @@ exports.BrokerMessages = {
|
|
|
168
171
|
LOAN_MAPPING: {
|
|
169
172
|
CREATE: 'CREATE_LOAN_MAPPING',
|
|
170
173
|
UPDATE: 'UPDATE-LOAN-MAPPING',
|
|
174
|
+
LOAN_COUNT: 'FIND-LOAN-COUNT',
|
|
171
175
|
},
|
|
172
176
|
BORROWER_DISPOSITION: {
|
|
173
177
|
CREATE: 'CREATE_DISPOSITION',
|
|
@@ -26,8 +26,11 @@ export const BrokerMessages = {
|
|
|
26
26
|
FIND_MANY: 'GET-MANY-USER-ACTIVITY',
|
|
27
27
|
FIND_AND_COUNT_ALL: 'FIND-AND-COUNT-ALL-USER-ACTIVITY',
|
|
28
28
|
UPDATE: 'UPDATE-USER-ACTIVITY',
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
UPDATE_CALL_COUNT: 'UPDATE-USER-ACTIVITY-STAT-CALLS-COUNT',
|
|
30
|
+
CREATE_TEMP: 'CREATE-TEMP-USER-ACTIVITY-RECORDS',
|
|
31
|
+
},
|
|
32
|
+
PRODUCTIVITY: {
|
|
33
|
+
FIND_AND_COUNT_ALL: 'FIND-AND-COUNT-ALL-USER-PRODUCTIVITY',
|
|
31
34
|
},
|
|
32
35
|
ROLE: {
|
|
33
36
|
CREATE: 'CREATE-ROLE',
|
|
@@ -165,6 +168,7 @@ export const BrokerMessages = {
|
|
|
165
168
|
LOAN_MAPPING: {
|
|
166
169
|
CREATE: 'CREATE_LOAN_MAPPING',
|
|
167
170
|
UPDATE: 'UPDATE-LOAN-MAPPING',
|
|
171
|
+
LOAN_COUNT: 'FIND-LOAN-COUNT',
|
|
168
172
|
},
|
|
169
173
|
BORROWER_DISPOSITION: {
|
|
170
174
|
CREATE: 'CREATE_DISPOSITION',
|
package/interfaces/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './usersTarget';
|
|
|
62
62
|
export * from './jobTempCorrectRecords';
|
|
63
63
|
export * from './jobTempIncorrectRecords';
|
|
64
64
|
export * from './agentsPendingCalls';
|
|
65
|
+
export * from './userActivity';
|
|
65
66
|
export * from './DNCNumbers';
|
|
66
67
|
export * from './DNCNumbersHistory';
|
|
67
68
|
import { ConnectionOptions, Dialect, ReplicationOptions } from 'sequelize/types';
|
package/interfaces/index.js
CHANGED
|
@@ -65,5 +65,6 @@ tslib_1.__exportStar(require("./usersTarget"), exports);
|
|
|
65
65
|
tslib_1.__exportStar(require("./jobTempCorrectRecords"), exports);
|
|
66
66
|
tslib_1.__exportStar(require("./jobTempIncorrectRecords"), exports);
|
|
67
67
|
tslib_1.__exportStar(require("./agentsPendingCalls"), exports);
|
|
68
|
+
tslib_1.__exportStar(require("./userActivity"), exports);
|
|
68
69
|
tslib_1.__exportStar(require("./DNCNumbers"), exports);
|
|
69
70
|
tslib_1.__exportStar(require("./DNCNumbersHistory"), exports);
|
package/interfaces/index.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './usersTarget';
|
|
|
62
62
|
export * from './jobTempCorrectRecords';
|
|
63
63
|
export * from './jobTempIncorrectRecords';
|
|
64
64
|
export * from './agentsPendingCalls';
|
|
65
|
+
export * from './userActivity';
|
|
65
66
|
export * from './DNCNumbers';
|
|
66
67
|
export * from './DNCNumbersHistory';
|
|
67
68
|
import {
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { DatabaseObject } from '../baseObject';
|
|
2
|
+
import { IListPayload } from '../payload';
|
|
3
|
+
export interface IUserActivities extends DatabaseObject {
|
|
4
|
+
campaignId?: number;
|
|
5
|
+
status?: string;
|
|
6
|
+
state?: number;
|
|
7
|
+
timestamp?: number;
|
|
8
|
+
duration?: number;
|
|
9
|
+
breakId?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface IUserActivityStats extends DatabaseObject {
|
|
12
|
+
userId: number;
|
|
13
|
+
campaignId: number;
|
|
14
|
+
date: string;
|
|
15
|
+
working?: number;
|
|
16
|
+
available?: number;
|
|
17
|
+
break?: number;
|
|
18
|
+
idle?: number;
|
|
19
|
+
waiting?: number;
|
|
20
|
+
ringing?: number;
|
|
21
|
+
onCall?: number;
|
|
22
|
+
wrapUp?: number;
|
|
23
|
+
logOut?: number;
|
|
24
|
+
actualWorking?: number;
|
|
25
|
+
breakCount?: number;
|
|
26
|
+
loginCount?: number;
|
|
27
|
+
logoutCount?: number;
|
|
28
|
+
connectedCalls?: number;
|
|
29
|
+
notConnectedCalls?: number;
|
|
30
|
+
manualCalls?: number;
|
|
31
|
+
followUps?: number;
|
|
32
|
+
leads?: number;
|
|
33
|
+
dialLeads?: number;
|
|
34
|
+
queueLeads?: number;
|
|
35
|
+
firstLogin?: string;
|
|
36
|
+
lastLogout?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ITempActivity extends DatabaseObject {
|
|
39
|
+
record: JSON;
|
|
40
|
+
}
|
|
41
|
+
export interface IUserActivitiesSearchData {
|
|
42
|
+
page?: number;
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
searchStr?: string;
|
|
45
|
+
export?: boolean;
|
|
46
|
+
filter?: {
|
|
47
|
+
userId?: string;
|
|
48
|
+
fromDate?: string;
|
|
49
|
+
toDate?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export declare enum UserActivityStatuses {
|
|
53
|
+
LOGIN = "LOGIN",
|
|
54
|
+
DIALER_LOGIN = "DIALER-LOGIN",
|
|
55
|
+
DIALER_LOGOUT = "DIALER-LOGOUT",
|
|
56
|
+
BREAK = "BREAK",
|
|
57
|
+
READY = "READY",
|
|
58
|
+
LOGOUT = "LOGOUT",
|
|
59
|
+
PAUSED = "PAUSED",
|
|
60
|
+
SWITCH = "SWITCH"
|
|
61
|
+
}
|
|
62
|
+
export declare enum UserActivityStates {
|
|
63
|
+
AVAILABLE = "Available",
|
|
64
|
+
IDLE = "IDLE",
|
|
65
|
+
READY = "Ready",
|
|
66
|
+
ON_CALL = "On-Call",
|
|
67
|
+
BREAK = "Break",
|
|
68
|
+
RINGING = "RINGING",
|
|
69
|
+
WRAPUP = "wrap-up",
|
|
70
|
+
WAITING = "WAITING",
|
|
71
|
+
LOGOUT = "LOG OUT"
|
|
72
|
+
}
|
|
73
|
+
export declare enum UserActivityStatForUpdate {
|
|
74
|
+
'available' = 1,
|
|
75
|
+
'idle' = 2,
|
|
76
|
+
'ready' = "READY",
|
|
77
|
+
'onCall' = 4,
|
|
78
|
+
'break' = 5,
|
|
79
|
+
'ringing' = 6,
|
|
80
|
+
'wrapUp' = 7,
|
|
81
|
+
'waiting' = 3,
|
|
82
|
+
'logOut' = 8,
|
|
83
|
+
'dialerLogout' = "LOGOUT",
|
|
84
|
+
'login' = "LOGIN"
|
|
85
|
+
}
|
|
86
|
+
export interface IListUserActivityProductivity extends IListPayload {
|
|
87
|
+
campaignIds?: number[];
|
|
88
|
+
userIds?: number[];
|
|
89
|
+
}
|
|
90
|
+
interface IBaseReport {
|
|
91
|
+
date: string;
|
|
92
|
+
userId: number;
|
|
93
|
+
campaignId: number;
|
|
94
|
+
connectedCalls: number;
|
|
95
|
+
notConnectedCalls: number;
|
|
96
|
+
firstLogin: string;
|
|
97
|
+
lastLogout: string;
|
|
98
|
+
user: {
|
|
99
|
+
agentName: string;
|
|
100
|
+
};
|
|
101
|
+
campaign: {
|
|
102
|
+
name: string;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export interface IActivityReport extends IBaseReport {
|
|
106
|
+
manualCalls: number;
|
|
107
|
+
followUps: number;
|
|
108
|
+
leads: number;
|
|
109
|
+
dialLeads: number;
|
|
110
|
+
queueLeads: number;
|
|
111
|
+
}
|
|
112
|
+
export interface IProductivityReport extends IBaseReport {
|
|
113
|
+
idle: string;
|
|
114
|
+
wrapUp: string;
|
|
115
|
+
waiting: string;
|
|
116
|
+
ringing: string;
|
|
117
|
+
onCall: string;
|
|
118
|
+
break: string;
|
|
119
|
+
breakCount: number;
|
|
120
|
+
loginCount: number;
|
|
121
|
+
logoutCount: number;
|
|
122
|
+
actualWorkingHours: string;
|
|
123
|
+
totalWorkingHours: string;
|
|
124
|
+
}
|
|
125
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserActivityStatForUpdate = exports.UserActivityStates = exports.UserActivityStatuses = void 0;
|
|
4
|
+
var UserActivityStatuses;
|
|
5
|
+
(function (UserActivityStatuses) {
|
|
6
|
+
UserActivityStatuses["LOGIN"] = "LOGIN";
|
|
7
|
+
UserActivityStatuses["DIALER_LOGIN"] = "DIALER-LOGIN";
|
|
8
|
+
UserActivityStatuses["DIALER_LOGOUT"] = "DIALER-LOGOUT";
|
|
9
|
+
UserActivityStatuses["BREAK"] = "BREAK";
|
|
10
|
+
UserActivityStatuses["READY"] = "READY";
|
|
11
|
+
UserActivityStatuses["LOGOUT"] = "LOGOUT";
|
|
12
|
+
UserActivityStatuses["PAUSED"] = "PAUSED";
|
|
13
|
+
UserActivityStatuses["SWITCH"] = "SWITCH";
|
|
14
|
+
})(UserActivityStatuses || (exports.UserActivityStatuses = UserActivityStatuses = {}));
|
|
15
|
+
var UserActivityStates;
|
|
16
|
+
(function (UserActivityStates) {
|
|
17
|
+
UserActivityStates["AVAILABLE"] = "Available";
|
|
18
|
+
UserActivityStates["IDLE"] = "IDLE";
|
|
19
|
+
UserActivityStates["READY"] = "Ready";
|
|
20
|
+
UserActivityStates["ON_CALL"] = "On-Call";
|
|
21
|
+
UserActivityStates["BREAK"] = "Break";
|
|
22
|
+
UserActivityStates["RINGING"] = "RINGING";
|
|
23
|
+
UserActivityStates["WRAPUP"] = "wrap-up";
|
|
24
|
+
UserActivityStates["WAITING"] = "WAITING";
|
|
25
|
+
UserActivityStates["LOGOUT"] = "LOG OUT";
|
|
26
|
+
})(UserActivityStates || (exports.UserActivityStates = UserActivityStates = {}));
|
|
27
|
+
var UserActivityStatForUpdate;
|
|
28
|
+
(function (UserActivityStatForUpdate) {
|
|
29
|
+
UserActivityStatForUpdate[UserActivityStatForUpdate["available"] = 1] = "available";
|
|
30
|
+
UserActivityStatForUpdate[UserActivityStatForUpdate["idle"] = 2] = "idle";
|
|
31
|
+
UserActivityStatForUpdate["ready"] = "READY";
|
|
32
|
+
UserActivityStatForUpdate[UserActivityStatForUpdate["onCall"] = 4] = "onCall";
|
|
33
|
+
UserActivityStatForUpdate[UserActivityStatForUpdate["break"] = 5] = "break";
|
|
34
|
+
UserActivityStatForUpdate[UserActivityStatForUpdate["ringing"] = 6] = "ringing";
|
|
35
|
+
UserActivityStatForUpdate[UserActivityStatForUpdate["wrapUp"] = 7] = "wrapUp";
|
|
36
|
+
UserActivityStatForUpdate[UserActivityStatForUpdate["waiting"] = 3] = "waiting";
|
|
37
|
+
UserActivityStatForUpdate[UserActivityStatForUpdate["logOut"] = 8] = "logOut";
|
|
38
|
+
UserActivityStatForUpdate["dialerLogout"] = "LOGOUT";
|
|
39
|
+
UserActivityStatForUpdate["login"] = "LOGIN";
|
|
40
|
+
})(UserActivityStatForUpdate || (exports.UserActivityStatForUpdate = UserActivityStatForUpdate = {}));
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { DatabaseObject } from '../baseObject';
|
|
2
|
+
import { IListPayload } from '../payload';
|
|
3
|
+
|
|
4
|
+
export interface IUserActivities extends DatabaseObject {
|
|
5
|
+
campaignId?: number;
|
|
6
|
+
status?: string;
|
|
7
|
+
state?: number;
|
|
8
|
+
timestamp?: number;
|
|
9
|
+
duration?: number;
|
|
10
|
+
breakId?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface IUserActivityStats extends DatabaseObject {
|
|
13
|
+
userId: number;
|
|
14
|
+
campaignId: number;
|
|
15
|
+
date: string;
|
|
16
|
+
working?: number;
|
|
17
|
+
available?: number;
|
|
18
|
+
break?: number;
|
|
19
|
+
idle?: number;
|
|
20
|
+
waiting?: number;
|
|
21
|
+
ringing?: number;
|
|
22
|
+
onCall?: number;
|
|
23
|
+
wrapUp?: number;
|
|
24
|
+
logOut?: number;
|
|
25
|
+
actualWorking?: number;
|
|
26
|
+
breakCount?: number;
|
|
27
|
+
loginCount?: number;
|
|
28
|
+
logoutCount?: number;
|
|
29
|
+
connectedCalls?: number;
|
|
30
|
+
notConnectedCalls?: number;
|
|
31
|
+
manualCalls?: number;
|
|
32
|
+
followUps?: number;
|
|
33
|
+
leads?: number;
|
|
34
|
+
dialLeads?: number;
|
|
35
|
+
queueLeads?: number;
|
|
36
|
+
firstLogin?: string;
|
|
37
|
+
lastLogout?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface ITempActivity extends DatabaseObject {
|
|
41
|
+
record: JSON;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface IUserActivitiesSearchData {
|
|
45
|
+
page?: number;
|
|
46
|
+
pageSize?: number;
|
|
47
|
+
searchStr?: string;
|
|
48
|
+
export?: boolean;
|
|
49
|
+
filter?: {
|
|
50
|
+
userId?: string;
|
|
51
|
+
fromDate?: string;
|
|
52
|
+
toDate?: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export enum UserActivityStatuses {
|
|
57
|
+
LOGIN = 'LOGIN',
|
|
58
|
+
DIALER_LOGIN = 'DIALER-LOGIN',
|
|
59
|
+
DIALER_LOGOUT = 'DIALER-LOGOUT',
|
|
60
|
+
BREAK = 'BREAK',
|
|
61
|
+
READY = 'READY',
|
|
62
|
+
LOGOUT = 'LOGOUT',
|
|
63
|
+
PAUSED = 'PAUSED',
|
|
64
|
+
SWITCH = 'SWITCH',
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export enum UserActivityStates {
|
|
68
|
+
AVAILABLE = 'Available',
|
|
69
|
+
IDLE = 'IDLE',
|
|
70
|
+
READY = 'Ready',
|
|
71
|
+
ON_CALL = 'On-Call',
|
|
72
|
+
BREAK = 'Break',
|
|
73
|
+
RINGING = 'RINGING',
|
|
74
|
+
WRAPUP = 'wrap-up',
|
|
75
|
+
WAITING = 'WAITING',
|
|
76
|
+
LOGOUT = 'LOG OUT',
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export enum UserActivityStatForUpdate {
|
|
80
|
+
'available' = 1,
|
|
81
|
+
'idle' = 2,
|
|
82
|
+
'ready' = 'READY',
|
|
83
|
+
'onCall' = 4,
|
|
84
|
+
'break' = 5,
|
|
85
|
+
'ringing' = 6,
|
|
86
|
+
'wrapUp' = 7,
|
|
87
|
+
'waiting' = 3,
|
|
88
|
+
'logOut' = 8,
|
|
89
|
+
'dialerLogout' = 'LOGOUT',
|
|
90
|
+
'login' = 'LOGIN',
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface IListUserActivityProductivity extends IListPayload {
|
|
94
|
+
campaignIds?: number[];
|
|
95
|
+
userIds?: number[];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface IBaseReport {
|
|
99
|
+
date: string;
|
|
100
|
+
userId: number;
|
|
101
|
+
campaignId: number;
|
|
102
|
+
connectedCalls: number;
|
|
103
|
+
notConnectedCalls: number;
|
|
104
|
+
firstLogin: string;
|
|
105
|
+
lastLogout: string;
|
|
106
|
+
user: {
|
|
107
|
+
agentName: string;
|
|
108
|
+
};
|
|
109
|
+
campaign: {
|
|
110
|
+
name: string;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface IActivityReport extends IBaseReport {
|
|
115
|
+
manualCalls: number;
|
|
116
|
+
followUps: number;
|
|
117
|
+
leads: number;
|
|
118
|
+
dialLeads: number;
|
|
119
|
+
queueLeads: number;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface IProductivityReport extends IBaseReport {
|
|
123
|
+
idle: string;
|
|
124
|
+
wrapUp: string;
|
|
125
|
+
waiting: string;
|
|
126
|
+
ringing: string;
|
|
127
|
+
onCall: string;
|
|
128
|
+
break: string;
|
|
129
|
+
breakCount: number;
|
|
130
|
+
loginCount: number;
|
|
131
|
+
logoutCount: number;
|
|
132
|
+
actualWorkingHours: string;
|
|
133
|
+
totalWorkingHours: string;
|
|
134
|
+
}
|
|
@@ -1,48 +1,5 @@
|
|
|
1
|
-
import { DatabaseObject } from "../baseObject";
|
|
2
1
|
export interface IUserStatus {
|
|
3
2
|
id?: number;
|
|
4
3
|
userId: string;
|
|
5
4
|
status: string;
|
|
6
5
|
}
|
|
7
|
-
export interface IUserActivities extends DatabaseObject {
|
|
8
|
-
campaignId?: number;
|
|
9
|
-
status?: string;
|
|
10
|
-
state?: number;
|
|
11
|
-
timestamp?: number;
|
|
12
|
-
duration?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface IUserActivitiesSearchData {
|
|
15
|
-
page?: number;
|
|
16
|
-
pageSize?: number;
|
|
17
|
-
searchStr?: string;
|
|
18
|
-
export?: boolean;
|
|
19
|
-
filter?: {
|
|
20
|
-
userId?: string;
|
|
21
|
-
fromDate?: string;
|
|
22
|
-
toDate?: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export interface IUserActivitiesRowsCount {
|
|
26
|
-
count: number;
|
|
27
|
-
rows: IUserActivities[];
|
|
28
|
-
}
|
|
29
|
-
export declare enum UserActivityStatuses {
|
|
30
|
-
LOGIN = "LOGIN",
|
|
31
|
-
DIALER_LOGIN = "DIALER-LOGIN",
|
|
32
|
-
BREAK = "BREAK",
|
|
33
|
-
READY = "READY",
|
|
34
|
-
LOGOUT = "LOGOUT",
|
|
35
|
-
PAUSED = "PAUSED",
|
|
36
|
-
SWITCH = "SWITCH"
|
|
37
|
-
}
|
|
38
|
-
export declare enum UserActivityStates {
|
|
39
|
-
AVAILABLE = "Available",
|
|
40
|
-
IDLE = "IDLE",
|
|
41
|
-
READY = "Ready",
|
|
42
|
-
ON_CALL = "On-Call",
|
|
43
|
-
BREAK = "Break",
|
|
44
|
-
RINGING = "RINGING",
|
|
45
|
-
WRAPUP = "wrap-up",
|
|
46
|
-
WAITING = "WAITING",
|
|
47
|
-
LOGOUT = "LOG OUT"
|
|
48
|
-
}
|
|
@@ -1,25 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserActivityStates = exports.UserActivityStatuses = void 0;
|
|
4
|
-
var UserActivityStatuses;
|
|
5
|
-
(function (UserActivityStatuses) {
|
|
6
|
-
UserActivityStatuses["LOGIN"] = "LOGIN";
|
|
7
|
-
UserActivityStatuses["DIALER_LOGIN"] = "DIALER-LOGIN";
|
|
8
|
-
UserActivityStatuses["BREAK"] = "BREAK";
|
|
9
|
-
UserActivityStatuses["READY"] = "READY";
|
|
10
|
-
UserActivityStatuses["LOGOUT"] = "LOGOUT";
|
|
11
|
-
UserActivityStatuses["PAUSED"] = "PAUSED";
|
|
12
|
-
UserActivityStatuses["SWITCH"] = "SWITCH";
|
|
13
|
-
})(UserActivityStatuses || (exports.UserActivityStatuses = UserActivityStatuses = {}));
|
|
14
|
-
var UserActivityStates;
|
|
15
|
-
(function (UserActivityStates) {
|
|
16
|
-
UserActivityStates["AVAILABLE"] = "Available";
|
|
17
|
-
UserActivityStates["IDLE"] = "IDLE";
|
|
18
|
-
UserActivityStates["READY"] = "Ready";
|
|
19
|
-
UserActivityStates["ON_CALL"] = "On-Call";
|
|
20
|
-
UserActivityStates["BREAK"] = "Break";
|
|
21
|
-
UserActivityStates["RINGING"] = "RINGING";
|
|
22
|
-
UserActivityStates["WRAPUP"] = "wrap-up";
|
|
23
|
-
UserActivityStates["WAITING"] = "WAITING";
|
|
24
|
-
UserActivityStates["LOGOUT"] = "LOG OUT";
|
|
25
|
-
})(UserActivityStates || (exports.UserActivityStates = UserActivityStates = {}));
|
|
@@ -1,52 +1,5 @@
|
|
|
1
|
-
import { DatabaseObject } from "../baseObject";
|
|
2
|
-
|
|
3
1
|
export interface IUserStatus {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export interface IUserActivities extends DatabaseObject {
|
|
9
|
-
campaignId?: number;
|
|
10
|
-
status?: string;
|
|
11
|
-
state?: number;
|
|
12
|
-
timestamp?: number;
|
|
13
|
-
duration?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface IUserActivitiesSearchData {
|
|
16
|
-
page?: number;
|
|
17
|
-
pageSize?: number;
|
|
18
|
-
searchStr?: string;
|
|
19
|
-
export?: boolean;
|
|
20
|
-
filter?: {
|
|
21
|
-
userId?: string;
|
|
22
|
-
fromDate?: string;
|
|
23
|
-
toDate?: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IUserActivitiesRowsCount {
|
|
28
|
-
count: number;
|
|
29
|
-
rows: IUserActivities[];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export enum UserActivityStatuses {
|
|
33
|
-
LOGIN = 'LOGIN',
|
|
34
|
-
DIALER_LOGIN = 'DIALER-LOGIN',
|
|
35
|
-
BREAK = 'BREAK',
|
|
36
|
-
READY = 'READY',
|
|
37
|
-
LOGOUT = 'LOGOUT',
|
|
38
|
-
PAUSED = 'PAUSED',
|
|
39
|
-
SWITCH = 'SWITCH'
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export enum UserActivityStates {
|
|
43
|
-
AVAILABLE = 'Available',
|
|
44
|
-
IDLE = 'IDLE',
|
|
45
|
-
READY = 'Ready',
|
|
46
|
-
ON_CALL = 'On-Call',
|
|
47
|
-
BREAK = 'Break',
|
|
48
|
-
RINGING = 'RINGING',
|
|
49
|
-
WRAPUP = 'wrap-up',
|
|
50
|
-
WAITING = 'WAITING',
|
|
51
|
-
LOGOUT = 'LOG OUT',
|
|
52
|
-
}
|
|
2
|
+
id?: number;
|
|
3
|
+
userId: string;
|
|
4
|
+
status: string;
|
|
5
|
+
}
|
|
@@ -22,6 +22,7 @@ export interface IAgentWebhook extends IWebhookEvent {
|
|
|
22
22
|
agentId: string;
|
|
23
23
|
campaignId?: string; // * Not being used on cleardu / crm
|
|
24
24
|
extension?: string; // * Not being used on cleardu / crm
|
|
25
|
+
timestamp?: string;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export interface ICallWebhook extends IWebhookEvent {
|