Bug 1065140 - Loop Mobile Client needs to report the Call initiation source, network type, login type and call duration. r=jaoo, cjc

You can replace all this if with: 

var direction = isIncoming? "Incoming" : "Outgoing"
var type = (account.id.type === 'fxa' ? "FxA" : "MobileId"
Telemetry["record" + direction + "CallWith" + type] &&
   Telemetry["record" + direction + "CallWith" + type]();

Actually, if the Telemetry methods are named using the account.id.type in their names, you could just do:

var direction = isIncoming? "Incoming" : "Outgoing"
Telemetry["record" + direction + "CallWith" + account.id.type] &&
   Telemetry["record" + direction + "CallWith" + account.id.type]();

And this way you won't need to change this code again if/when a new type is added (just add the right method to Telemetry)