Include a `type` method that retrieves the object's class
Correctly extract the IDs for `phone_call`, `email` and `note` objects
Merge branch 'api-v2-rewrite' of https://github.com/Talkdesk/desk into api-v2-rewrite