| Line 103... |
Line 103... |
| 103 |
int rbmAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_RBM, EscalationType.L1, fofoId);
|
103 |
int rbmAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_RBM, EscalationType.L1, fofoId);
|
| 104 |
if (rbmAuthUserId > 0) {
|
104 |
if (rbmAuthUserId > 0) {
|
| 105 |
AuthUser user = authRepository.selectById(rbmAuthUserId);
|
105 |
AuthUser user = authRepository.selectById(rbmAuthUserId);
|
| 106 |
if (user != null) {
|
106 |
if (user != null) {
|
| 107 |
l1Contacts.add(buildContact(user, "RBM", "#1a7a4c",
|
107 |
l1Contacts.add(buildContact(user, "RBM", "#1a7a4c",
|
| 108 |
"First point of contact for all queries", true, true, false, true));
|
108 |
"First point of contact for all queries", true, true, false, false));
|
| 109 |
}
|
109 |
}
|
| 110 |
}
|
110 |
}
|
| 111 |
} catch (Exception e) {
|
111 |
} catch (Exception e) {
|
| 112 |
LOGGER.warn("Could not fetch RBM for fofoId: {}", fofoId, e);
|
112 |
LOGGER.warn("Could not fetch RBM for fofoId: {}", fofoId, e);
|
| 113 |
}
|
113 |
}
|
| Line 117... |
Line 117... |
| 117 |
int abmAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_SALES, EscalationType.L1, fofoId);
|
117 |
int abmAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_SALES, EscalationType.L1, fofoId);
|
| 118 |
if (abmAuthUserId > 0) {
|
118 |
if (abmAuthUserId > 0) {
|
| 119 |
AuthUser user = authRepository.selectById(abmAuthUserId);
|
119 |
AuthUser user = authRepository.selectById(abmAuthUserId);
|
| 120 |
if (user != null) {
|
120 |
if (user != null) {
|
| 121 |
l1Contacts.add(buildContact(user, "ASM", "#1a7a4c",
|
121 |
l1Contacts.add(buildContact(user, "ASM", "#1a7a4c",
|
| 122 |
"Sales support and regional queries", true, true, false, true));
|
122 |
"Sales support and regional queries", true, true, false, false));
|
| 123 |
}
|
123 |
}
|
| 124 |
}
|
124 |
}
|
| 125 |
} catch (Exception e) {
|
125 |
} catch (Exception e) {
|
| 126 |
LOGGER.warn("Could not fetch ABM for fofoId: {}", fofoId, e);
|
126 |
LOGGER.warn("Could not fetch ABM for fofoId: {}", fofoId, e);
|
| 127 |
}
|
127 |
}
|
| Line 137... |
Line 137... |
| 137 |
try {
|
137 |
try {
|
| 138 |
int rbmManagerAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_RBM, EscalationType.L2, fofoId);
|
138 |
int rbmManagerAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_RBM, EscalationType.L2, fofoId);
|
| 139 |
if (rbmManagerAuthUserId > 0) {
|
139 |
if (rbmManagerAuthUserId > 0) {
|
| 140 |
AuthUser user = authRepository.selectById(rbmManagerAuthUserId);
|
140 |
AuthUser user = authRepository.selectById(rbmManagerAuthUserId);
|
| 141 |
if (user != null) {
|
141 |
if (user != null) {
|
| 142 |
l2Contacts.add(buildContact(user, "RBM MANAGER", "#7c3aed",
|
142 |
l2Contacts.add(buildContact(user, "RBM Manager", "#7c3aed",
|
| 143 |
"For escalated regional matters", true, true, false, true));
|
143 |
"For escalated regional matters", true, true, false, false));
|
| 144 |
}
|
144 |
}
|
| 145 |
}
|
145 |
}
|
| 146 |
} catch (Exception e) {
|
146 |
} catch (Exception e) {
|
| 147 |
LOGGER.warn("Could not fetch RBM Manager for fofoId: {}", fofoId, e);
|
147 |
LOGGER.warn("Could not fetch RBM Manager for fofoId: {}", fofoId, e);
|
| 148 |
}
|
148 |
}
|
| Line 152... |
Line 152... |
| 152 |
int bmAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_SALES, EscalationType.L2, fofoId);
|
152 |
int bmAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_SALES, EscalationType.L2, fofoId);
|
| 153 |
if (bmAuthUserId > 0) {
|
153 |
if (bmAuthUserId > 0) {
|
| 154 |
AuthUser user = authRepository.selectById(bmAuthUserId);
|
154 |
AuthUser user = authRepository.selectById(bmAuthUserId);
|
| 155 |
if (user != null) {
|
155 |
if (user != null) {
|
| 156 |
l2Contacts.add(buildContact(user, "BM", "#1e6091",
|
156 |
l2Contacts.add(buildContact(user, "BM", "#1e6091",
|
| 157 |
"Handles: Orders, Stock, Schemes", true, true, false, true));
|
157 |
"Handles: Orders, Stock, Schemes", true, true, false, false));
|
| 158 |
}
|
158 |
}
|
| 159 |
}
|
159 |
}
|
| 160 |
} catch (Exception e) {
|
160 |
} catch (Exception e) {
|
| 161 |
LOGGER.warn("Could not fetch BM for fofoId: {}", fofoId, e);
|
161 |
LOGGER.warn("Could not fetch BM for fofoId: {}", fofoId, e);
|
| 162 |
}
|
162 |
}
|
| Line 179... |
Line 179... |
| 179 |
try {
|
179 |
try {
|
| 180 |
int brandingAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_DESIGN, EscalationType.L1, fofoId);
|
180 |
int brandingAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_DESIGN, EscalationType.L1, fofoId);
|
| 181 |
if (brandingAuthUserId > 0) {
|
181 |
if (brandingAuthUserId > 0) {
|
| 182 |
AuthUser user = authRepository.selectById(brandingAuthUserId);
|
182 |
AuthUser user = authRepository.selectById(brandingAuthUserId);
|
| 183 |
if (user != null) {
|
183 |
if (user != null) {
|
| 184 |
l2Contacts.add(buildContact(user, "BRANDING", "#1a7a4c",
|
184 |
l2Contacts.add(buildContact(user, "Branding", "#1a7a4c",
|
| 185 |
"Brand guidelines and marketing support", false, false, true, false));
|
185 |
"Brand guidelines and marketing support", false, false, true, false));
|
| 186 |
}
|
186 |
}
|
| 187 |
}
|
187 |
}
|
| 188 |
} catch (Exception e) {
|
188 |
} catch (Exception e) {
|
| 189 |
LOGGER.warn("Could not fetch Branding Manager for fofoId: {}", fofoId, e);
|
189 |
LOGGER.warn("Could not fetch Branding Manager for fofoId: {}", fofoId, e);
|
| Line 201... |
Line 201... |
| 201 |
int grievanceAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_CRM, EscalationType.L1, fofoId);
|
201 |
int grievanceAuthUserId = csService.getAuthUserId(ProfitMandiConstants.TICKET_CATEGORY_CRM, EscalationType.L1, fofoId);
|
| 202 |
if (grievanceAuthUserId > 0) {
|
202 |
if (grievanceAuthUserId > 0) {
|
| 203 |
AuthUser user = authRepository.selectById(grievanceAuthUserId);
|
203 |
AuthUser user = authRepository.selectById(grievanceAuthUserId);
|
| 204 |
if (user != null) {
|
204 |
if (user != null) {
|
| 205 |
l3Contacts.add(buildContact(user, "GRIEVANCE OFFICER", "#dc2626",
|
205 |
l3Contacts.add(buildContact(user, "GRIEVANCE OFFICER", "#dc2626",
|
| 206 |
"For unresolved issues & formal complaints", false, false, true, true));
|
206 |
"For unresolved issues & formal complaints", false, false, true, false));
|
| 207 |
}
|
207 |
}
|
| 208 |
}
|
208 |
}
|
| 209 |
} catch (Exception e) {
|
209 |
} catch (Exception e) {
|
| 210 |
LOGGER.warn("Could not fetch Grievance Manager for fofoId: {}", fofoId, e);
|
210 |
LOGGER.warn("Could not fetch Grievance Manager for fofoId: {}", fofoId, e);
|
| 211 |
}
|
211 |
}
|