McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 520

↗ View in doc context
page
520
source
finesse/v12.5/developer-guide/developer-guide.md
chunk_id
finesse::v12.5::developer-guide::developer-guide::504

Method getMedia() Retrieves the associated media object. Returns {finesse.restservices.Media} The Media object. MediaList Class finesse.restservices.MediaList Extends finesse.restservices.RestCollectionBase Represents the list of non-voice media such as chat and email for an agent. The media list available for an agent can be procured from the finesse.restservices.User object, which corresponds to the agent. Individual media channels can be extracted from the media list using their Id. Example mediaList = _user.getMediaList({ onCollectionAdd: _handleMediaAdd, onCollectionDelete: _handleMediaDelete, onLoad: _handleMediaListLoaded }); _mediaCollection = mediaList.getCollection(); for (var mediaId in _mediaCollection) { if (_mediaCollection.hasOwnProperty(mediaId)) { media = _mediaCollection[mediaId]; etc... } } For additional parameters and methods, see RestCollectionBase Common Parameters, on page 452. Method getMedia(options) Retrieves a specific media with the Id passed from the MediaList collection. Example var media = mediaList.getMedia({ id: mediaId, onLoad: _onloadCallback, onChange: _onChangeCallback, onAdd: _onAddCallback, onDelete: _onDeleteCallback, onError: _onErrorCallback, mediaOptions: { maxDialogLimit: _dialogLimit, } }); Parameters Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 504 Cisco Finesse JavaScript APIs MediaList