Index
PhoneBar Class
Namespace: Ifm
Script Source:
<script src="https://ifmapi.github.io/hash/phonebar/1.0/phonebar.min.js"></script>
Syntax
Constructors
The PhoneBar object is a singleton.
There is no public constructor for this class.
Get a reference to the current object using:
Static Methods
Static Properties
Constants
Events
- initialized : function(phonebar, e)
- e : Object
- config : Object
- options : Object
- languagechanged : function(phonebar, e)
Call notifications:
- alerting : function(phonebar, e)
- answered : function(phonebar, e)
- assignment : function(phonebar, e)
- booked : function(phonebar, e)
- callfailure : function(phonebar, e)
- e : Object
- callId : Number
- cause : Number
- protocolTerminationCause : Number
- othercall : function(phonebar, e)
- pause : function(phonebar, e)
- e : Object
- reasonId : Number
- reasonText : String
- ready : function(phonebar, e)
- readyfordetach : function(phonebar, e)
- readyfortransfer : function(phonebar, e)
- terminated : function(phonebar, e)
- e : Object
- callId : Number
- postCallWork : Boolean
Recording notifications:
- recordingstarted : function(phonebar, e)
- e : Object
- callId : Number
- fileName : String
- recordingmutechanged : function(phonebar, e)
- e : Object
- callId : Number
- rxChannelMuted : Boolean
- txChannelMuted : Boolean
- recordingstopped : function(phonebar, e)
- e : Object
- callId : Number
- result : Number
State events:
- statechanged : function(phonebar, e)
- statetimechanged : function(phonebar, e)
- e : Object
- stateTime : Date
- startTimer : Boolean
Supervisor messages:
- supervisormessage : function(phonebar, e)
- e : Object
- severity : Number
- message : String
Instance Methods
- calls : function(optional filter)
- filter : Number OR (Boolean) function(call)
- return : Call
- currentState : function()
- currentStateTime : function()
- getAgentList : function(campaignName, mask, callback)
- campaignName : String
- mask : Number
- callback : function(e)
- getAssignedCampaignList : function(callback)
- getCampaignList : function(callId, mediatype, mask, callback)
- callId : Number
- mediatype : Mediatypes
- mask : Number
- callback : function(e)
- getOutboundCampaignList : function(callback)
- getTransferCampaignList : function(callId, callback)
- callId : Number
- callback : function(e)
- getPauseReasons : function(callback)
- getQueueInfo : function(campaignName, callback)
- campaignName : String
- callback : function(e)
- e : Object
- calls : Number
- avgTime : Number
- maxTime : Number
- campaigns : Array
- name : String
- avgTime : Number
- maxTime : Number
- getTransferAgentList : function(campaignName, callback)
- campaignName : String
- callback : function(e)
- initialize : function(config, options)
- config : Object
- options : Object
- isLoggedIn : function()
- language : (String) function (optional lang)
- lang : String [“en”, “it”]
- login : function (firstName, lastName, password, extension, optional callback)
- firstName : String
- lastName : String
- password : String
- extension : String
- optional callback : function(e)
- logout : function (optional callback)
- optional callback : function(e)
- makeCall : function (phoneNumber, campaignName, callingNumber, optional callback) {
- phoneNumber : String
- campaignName : String
- callingNumber : String
- optional callback : function(e)
-
panic : function ()
- pause : function (optional reasonId, optional callback)
- optional reasonId : Number
- optional callback : function(e)
- ready : function (optional callId, optional callback)
- optional callId : Number
- optional callback : function(e)
- transferCall : function (callId, campaignName, optional agentFirstName, optional agentLastName, optional mandatory, optional mode, optional callback)
- callId : Number
- campaignName : String
- optional agentFirstName : String
- optional agentLastName : String
- optional mandatory : Boolean
- optional mode : Number
- optional callback : function(e)
- startRecording : function (callId, optional fileName, optional settings)
- callId : Number
- optional fileName : String
- optional settings : Number
- stopRecording : function (callId)
- muteRecording : function (callId, muteRxChannel, muteTxChannel)
- callId : Number
- muteRxChannel : Boolean
- muteTxChannel : Boolean
- tagRecording : function (callId, tag)
- callId : Number
- tag : String
Instance Properties
- agent : Object
- firstName : String
- lastName : String
- password : String
- extension : String
Examples
Get a reference to the object:
var phonebar = Ifm.PhoneBar.instance;
Set an event handler for a specific event:
Ifm.PhoneBar.events.statechanged = function (phonebar, e) { ... };
See Also
Copyright © IFM Infomaster. All rights reserved.