Upon executing the following code:
let desiredFields = ['display_name','phone','thumbnail','email','organization'];
console.log('Loading contacts...');
let timer = new Date().getTime();
Contacts.getContactsWorker(desiredFields).then((result) => {
console.log(`Loading contacts completed in ${(new Date().getTime() - timer)} ms.`);
console.log(`Found ${result.length} contacts.`);
console.dir(result);
}, (e) => { console.dir(e); });
The output received is as follows:
JS: Loading contacts completed in 2704 ms.
JS: Found 2 contacts.
JS: ==== object dump start ====
JS: 0: {
JS: "contact_id": 2,
JS: "display_name": "example example ",
JS: "phone": [
JS: {
JS: "account_name": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="395c41585449555c795e54585055175a5654">[email protected]</a>",
JS: "type": "mobile",
JS: "number": "05364125322"
JS: }
JS: ]
JS: }
JS: 1: {
JS: "contact_id": 1,
JS: "display_name": "enes ozturk",
JS: "phone": [
JS: {
JS: "account_name": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="89ecf1e8e4f9e5ecc9eee4e8e0e5a7eae6e4">[email protected]</a>",
JS: "type": "mobile",
JS: "number": "05364618553"
JS: }
JS: ]
JS: }
JS: ==== object dump end ====
How can the phone number be extracted from this code?