Linking multiple contact informations to the same person using primary and secondary contacts
go build -o bitespeed
./bitespeed
{
"email": "[email protected]",
"phoneNumber": "898991"
}
{
"primaryContatctId": 46,
"emails": [
"[email protected]"
],
"phoneNumbers": [
"898991"
],
"secondaryContactIds": []
}
{
"email": "[email protected]",
"phoneNumber": "898991"
}
{
"primaryContatctId": 51,
"emails": [
"[email protected]",
"[email protected]"
],
"phoneNumbers": [
"898991",
"898991"
],
"secondaryContactIds": [
52
]
}
{
"email": "[email protected]",
"phoneNumber": "123456"
}
{
"primaryContatctId": 52,
"emails": [
"[email protected]",
"[email protected]"
],
"phoneNumbers": [
"898991",
"123456"
],
"secondaryContactIds": [
52,
53
]
}
{
"phoneNumber": "123456"
}
{
"primaryContatctId": 53,
"emails": [
"[email protected]"
],
"phoneNumbers": [
"123456"
],
"secondaryContactIds": [
53
]
}
{
"email": "[email protected]"
}
{
"primaryContatctId": 51,
"emails": [
"[email protected]",
"[email protected]"
],
"phoneNumbers": [
"898991",
"898991"
],
"secondaryContactIds": [
52
]
}