NTP-36408 |Calling type removed| aman singh (#1377)

This commit is contained in:
Aman Singh
2025-02-07 17:30:36 +05:30
committed by GitHub
parent 21247415ba
commit 9080581fbc
3 changed files with 14 additions and 16 deletions

View File

@@ -231,7 +231,8 @@ export const ExcludedRedirectionEndPointsList = [COSMOS_PATH];
export const REVAMPED_CALLING_TYPES = [
{
value: ECallingType.AMEYO,
label: 'Ameyo'
label: 'Ameyo',
isHiddenForExternal: true
},
{
value: ECallingType.SLASH,
@@ -239,26 +240,26 @@ export const REVAMPED_CALLING_TYPES = [
},
{
value: ECallingType.SELF_CALL,
label: 'Self call'
},
{
value: ECallingType.WHATSAPP_CALL,
label: 'Whatsapp Call'
label: 'Self call',
isHiddenForExternal: true
},
{
value: ECallingType.WHATSAPP_TEXT,
label: 'Whatsapp Text'
label: 'Whatsapp Text',
isHiddenForExternal: true
},
{
value: ECallingType.SKIP_TRACING,
label: 'Customer Outreach'
label: 'Customer Outreach',
isHiddenForExternal: true
}
];
export const OLD_CALLING_TYPES = [
{
value: ECallingType.AMEYO,
label: 'Ameyo'
label: 'Ameyo',
isHiddenForExternal: true
},
{
value: ECallingType.SLASH,
@@ -266,7 +267,8 @@ export const OLD_CALLING_TYPES = [
},
{
value: ECallingType.SELF_CALL,
label: 'Self call'
label: 'Self call',
isHiddenForExternal: true
}
];

View File

@@ -23,12 +23,6 @@ export const SKIP_TRACING_TYPES_LABEL = {
};
export const SKIP_TRACING_TYPES_OPTIONS = [
{
id: SKIP_TRACING_TYPES.SKIP_TRACING_CALL,
label: 'Call',
value: SKIP_TRACING_TYPES.SKIP_TRACING_CALL,
checked: false
},
{
id: SKIP_TRACING_TYPES.SKIP_TRACING_TEXT,
label: 'Text',

View File

@@ -117,6 +117,7 @@ const FeedbackFrom = (props: FeedbackFromProps) => {
(state: RootState) =>
state?.caseDetail?.pageData?.[createKey(loanId, customerId)]?.details?.data?.editAccessFlag
);
const isExternal = !user?.naviUser;
const navigate = useNavigate();
const airtelSelfCallRecordingEnabled = useSelector(
(store: RootState) => store.common.featureFlags.airtelSelfCallRecordingEnabled
@@ -765,6 +766,7 @@ const FeedbackFrom = (props: FeedbackFromProps) => {
</div>
<div key={currentCallType} className={styles.questions}>
{fetchedCallingTypes.map(callingType => {
if (isExternal && callingType.isHiddenForExternal) return null;
return (
<>
<Tooltip placement="top">