import { EvCallData } from '../interfaces/EvData.interface' ; import { contactMatchIdentifyEncode } from './contactMatchIdentify' ; export const makeCallsUniqueIdentifies = ( calls ) => { const numbers = calls . map ( ( { ani , callType } ) => { const id = contactMatchIdentifyEncode ( { phoneNumber : ani , callType } ) ; return id ; } ) ; return Array . from ( new Set ( numbers ) ) ; } ;