fixed compatibility with v2 /agents API
Merge pull request #2 from livechat/agents-api-fix

fixed compatibility with v2 /agents API