UNPKG

@gistproduct/web

Version:

Build beautiful in-app flows with no code and deliver them instantly to your app.

17 lines (16 loc) 481 B
import { NetworkInstance } from './analytics-network'; export async function logOrganizationEvent(name, messageId, instanceId, queueId, campaignId) { try { var response = await NetworkInstance().post(`/api/v1/organization/events`, { 'name': name, 'route': messageId, 'instanceId': instanceId, 'queueId': queueId, 'campaignId': campaignId, 'platform': 'web' }); return response; } catch (error) { return error.response; } }