- Home [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Getting started
- Use cases
-
API
- Object types
- Data types
- Global constants
- Work with apps
- Web requests
- Access permissions
- Document flow
-
Live Chats
- LineChannelState
- LineChannelType
- LineClientBlockedStatus
- LineMessageType
- LineMetricType
- LineSessionPriority
- LineSessionState
- OperatorStatusType
- LineApplicationRef
- LineBindingApplication
- LineChannelData
- LineChannelItem
- LineChannelItemRef
- LineChannelSearch
- LineChannels
- LineClientData
- LineClientExtraData
- LineClientItem
- LineClientItemRef
- LineClientSearch
- LineClients
- LineData
- LineItem
- LineItemRef
- LineMessageData
- LineMessageItem
- LineMetricData
- LineMetricItem
- LineMetrics
- LineSearch
- LineSessionData
- LineSessionItem
- LineSessionItemRef
- LineSessionSearch
- LineSessions
- Lines
- LinesCollections
- SessionChangedPayload
- SessionFieldChange
- SessionReassignedPayload
- LineSessionPriorityEnumBase
- LineSessionStateEnumBase
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Live Chat object
Type parameters
I: Item<ItemData>
I: Item<ItemData>
Hierarchy
Properties
Readonly code
App code of the URL’s target (the app’s code).
Readonly data
Values of object’s fields.
Readonly fields
Description of the object’s fields.
Readonly id
ID of the URL’s target.
Readonly namespace
Namespace of the URL target (the code of the workspace that the app belongs to).
Methods
fetch
Request complete data of a reference object.
Returns Promise<LineItem>
normalize
Delete duplicate data in arrays.
The method deletes duplicates in fields that store arrays of links to system objects (users, files, app items, or documents). For example, you can call this method after bulk editing data within an object.
const app1 = await Context.data.app1.fetch(); const app2 = await Context.data.app2 .fetch(); app1.data.executors.push(app2.data.executors); app1.normalize(); // Now we need to go over the elements in the new array app1.data.executors .forEach( ... );
Returns void
Properties
Methods