Integrate segment.io API with Nuxeo Event system