| 35679 |
ranu |
1 |
package com.spice.profitmandi.dao.entity.cs;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.time.LocalDate;
|
|
|
5 |
import java.time.LocalTime;
|
|
|
6 |
import java.util.Objects;
|
|
|
7 |
|
|
|
8 |
@Entity
|
|
|
9 |
@Table(name = "cs.agent_call_log", uniqueConstraints = {@UniqueConstraint(columnNames = "call_uuid")})
|
| 35686 |
ranu |
10 |
|
|
|
11 |
@NamedQueries({
|
|
|
12 |
@NamedQuery(
|
|
|
13 |
name = "AgentCallLog.findLatest",
|
|
|
14 |
query = "SELECT a FROM AgentCallLog a " +
|
|
|
15 |
"WHERE a.customerNumber = :customerNumber " +
|
|
|
16 |
"AND a.agentNumber = :agentNumber " +
|
|
|
17 |
"AND a.callDate = :callDate " +
|
|
|
18 |
"AND a.callUuid IS NULL " +
|
|
|
19 |
"ORDER BY a.id DESC"
|
| 35724 |
ranu |
20 |
),
|
|
|
21 |
@NamedQuery(
|
|
|
22 |
name = "AgentCallLog.findLatestByAuthId",
|
|
|
23 |
query = "SELECT a FROM AgentCallLog a " +
|
|
|
24 |
"WHERE a.customerNumber = :customerNumber " +
|
|
|
25 |
"AND a.authId = :authId " +
|
|
|
26 |
"AND a.callDate = :callDate " +
|
|
|
27 |
"AND a.callUuid IS NULL " +
|
|
|
28 |
"ORDER BY a.id DESC"
|
| 35686 |
ranu |
29 |
)
|
|
|
30 |
})
|
| 35679 |
ranu |
31 |
public class AgentCallLog {
|
|
|
32 |
|
|
|
33 |
@Id
|
|
|
34 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
35 |
private Long id;
|
|
|
36 |
|
|
|
37 |
@Column(name = "call_date")
|
|
|
38 |
private LocalDate callDate;
|
|
|
39 |
|
|
|
40 |
@Column(name = "call_time")
|
|
|
41 |
private LocalTime callTime;
|
|
|
42 |
|
|
|
43 |
@Column(name = "call_status")
|
|
|
44 |
private String callStatus;
|
|
|
45 |
|
|
|
46 |
@Column(name = "call_duration")
|
|
|
47 |
private String callDuration;
|
|
|
48 |
|
|
|
49 |
@Column(name = "caller_id")
|
|
|
50 |
private String callerId;
|
|
|
51 |
|
|
|
52 |
@Column(name = "customer_number")
|
|
|
53 |
private String customerNumber;
|
|
|
54 |
|
|
|
55 |
@Column(name = "agent_number")
|
|
|
56 |
private String agentNumber;
|
|
|
57 |
|
| 35724 |
ranu |
58 |
@Column(name = "auth_id")
|
|
|
59 |
private long authId;
|
|
|
60 |
|
| 35679 |
ranu |
61 |
@Column(name = "call_uuid", unique = true)
|
|
|
62 |
private String callUuid;
|
|
|
63 |
|
|
|
64 |
@Column(name = "recording_url")
|
|
|
65 |
private String recordingUrl;
|
|
|
66 |
|
|
|
67 |
@Column(name = "call_transfer_duration")
|
|
|
68 |
private String callTransferDuration;
|
|
|
69 |
|
|
|
70 |
@Column(name = "customer_status")
|
|
|
71 |
private String customerStatus;
|
|
|
72 |
|
|
|
73 |
@Column(name = "sip_id")
|
|
|
74 |
private String sipId;
|
|
|
75 |
|
|
|
76 |
public Long getId() {
|
|
|
77 |
return id;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
public void setId(Long id) {
|
|
|
81 |
this.id = id;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
public LocalDate getCallDate() {
|
|
|
85 |
return callDate;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
public void setCallDate(LocalDate callDate) {
|
|
|
89 |
this.callDate = callDate;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
public LocalTime getCallTime() {
|
|
|
93 |
return callTime;
|
|
|
94 |
}
|
|
|
95 |
|
|
|
96 |
public void setCallTime(LocalTime callTime) {
|
|
|
97 |
this.callTime = callTime;
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
public String getCallStatus() {
|
|
|
101 |
return callStatus;
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
public void setCallStatus(String callStatus) {
|
|
|
105 |
this.callStatus = callStatus;
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
public String getCallDuration() {
|
|
|
109 |
return callDuration;
|
|
|
110 |
}
|
|
|
111 |
|
|
|
112 |
public void setCallDuration(String callDuration) {
|
|
|
113 |
this.callDuration = callDuration;
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
public String getCallerId() {
|
|
|
117 |
return callerId;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
public void setCallerId(String callerId) {
|
|
|
121 |
this.callerId = callerId;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public String getCustomerNumber() {
|
|
|
125 |
return customerNumber;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
public void setCustomerNumber(String customerNumber) {
|
|
|
129 |
this.customerNumber = customerNumber;
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
public String getAgentNumber() {
|
|
|
133 |
return agentNumber;
|
|
|
134 |
}
|
|
|
135 |
|
|
|
136 |
public void setAgentNumber(String agentNumber) {
|
|
|
137 |
this.agentNumber = agentNumber;
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
public String getCallUuid() {
|
|
|
141 |
return callUuid;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
public void setCallUuid(String callUuid) {
|
|
|
145 |
this.callUuid = callUuid;
|
|
|
146 |
}
|
|
|
147 |
|
|
|
148 |
public String getRecordingUrl() {
|
|
|
149 |
return recordingUrl;
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
public void setRecordingUrl(String recordingUrl) {
|
|
|
153 |
this.recordingUrl = recordingUrl;
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
public String getCallTransferDuration() {
|
|
|
157 |
return callTransferDuration;
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
public void setCallTransferDuration(String callTransferDuration) {
|
|
|
161 |
this.callTransferDuration = callTransferDuration;
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
public String getCustomerStatus() {
|
|
|
165 |
return customerStatus;
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
public void setCustomerStatus(String customerStatus) {
|
|
|
169 |
this.customerStatus = customerStatus;
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
public String getSipId() {
|
|
|
173 |
return sipId;
|
|
|
174 |
}
|
|
|
175 |
|
|
|
176 |
public void setSipId(String sipId) {
|
|
|
177 |
this.sipId = sipId;
|
|
|
178 |
}
|
|
|
179 |
|
| 35724 |
ranu |
180 |
public long getAuthId() {
|
|
|
181 |
return authId;
|
|
|
182 |
}
|
|
|
183 |
|
|
|
184 |
public void setAuthId(long authId) {
|
|
|
185 |
this.authId = authId;
|
|
|
186 |
}
|
|
|
187 |
|
| 35679 |
ranu |
188 |
@Override
|
| 35724 |
ranu |
189 |
public boolean equals(Object o) {
|
|
|
190 |
if (this == o) return true;
|
|
|
191 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
192 |
AgentCallLog that = (AgentCallLog) o;
|
|
|
193 |
return authId == that.authId && Objects.equals(id, that.id) && Objects.equals(callDate, that.callDate) && Objects.equals(callTime, that.callTime) && Objects.equals(callStatus, that.callStatus) && Objects.equals(callDuration, that.callDuration) && Objects.equals(callerId, that.callerId) && Objects.equals(customerNumber, that.customerNumber) && Objects.equals(agentNumber, that.agentNumber) && Objects.equals(callUuid, that.callUuid) && Objects.equals(recordingUrl, that.recordingUrl) && Objects.equals(callTransferDuration, that.callTransferDuration) && Objects.equals(customerStatus, that.customerStatus) && Objects.equals(sipId, that.sipId);
|
|
|
194 |
}
|
|
|
195 |
|
|
|
196 |
@Override
|
| 35679 |
ranu |
197 |
public String toString() {
|
|
|
198 |
return "AgentCallLog{" +
|
|
|
199 |
"id=" + id +
|
|
|
200 |
", callDate=" + callDate +
|
|
|
201 |
", callTime=" + callTime +
|
|
|
202 |
", callStatus='" + callStatus + '\'' +
|
|
|
203 |
", callDuration='" + callDuration + '\'' +
|
|
|
204 |
", callerId='" + callerId + '\'' +
|
|
|
205 |
", customerNumber='" + customerNumber + '\'' +
|
|
|
206 |
", agentNumber='" + agentNumber + '\'' +
|
| 35724 |
ranu |
207 |
", authId=" + authId +
|
| 35679 |
ranu |
208 |
", callUuid='" + callUuid + '\'' +
|
|
|
209 |
", recordingUrl='" + recordingUrl + '\'' +
|
|
|
210 |
", callTransferDuration='" + callTransferDuration + '\'' +
|
|
|
211 |
", customerStatus='" + customerStatus + '\'' +
|
|
|
212 |
", sipId='" + sipId + '\'' +
|
|
|
213 |
'}';
|
|
|
214 |
}
|
|
|
215 |
|
|
|
216 |
@Override
|
| 35724 |
ranu |
217 |
public int hashCode() {
|
|
|
218 |
return Objects.hash(id, callDate, callTime, callStatus, callDuration, callerId, customerNumber, agentNumber, authId, callUuid, recordingUrl, callTransferDuration, customerStatus, sipId);
|
| 35679 |
ranu |
219 |
}
|
|
|
220 |
|
|
|
221 |
}
|