o2g-node-sdk 2.5.5 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/o2g-node-sdk.js +813 -697
- package/dist/o2g-node-sdk.js.map +1 -1
- package/dist/types/services/o2g-analytics.d.ts +40 -31
- package/dist/types/services/o2g-analytics.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-agent.d.ts +11 -7
- package/dist/types/services/o2g-cc-agent.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-mngt.d.ts +61 -40
- package/dist/types/services/o2g-cc-mngt.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-pilot.d.ts +7 -5
- package/dist/types/services/o2g-cc-pilot.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-rt.d.ts +4 -3
- package/dist/types/services/o2g-cc-rt.d.ts.map +1 -1
- package/dist/types/services/o2g-cc-stat.d.ts +160 -163
- package/dist/types/services/o2g-cc-stat.d.ts.map +1 -1
- package/dist/types/services/o2g-comlog.d.ts +68 -67
- package/dist/types/services/o2g-comlog.d.ts.map +1 -1
- package/dist/types/services/o2g-directory.d.ts +35 -40
- package/dist/types/services/o2g-directory.d.ts.map +1 -1
- package/dist/types/services/o2g-eventSummary.d.ts +7 -8
- package/dist/types/services/o2g-eventSummary.d.ts.map +1 -1
- package/dist/types/services/o2g-maint.d.ts +10 -10
- package/dist/types/services/o2g-messaging.d.ts +3 -2
- package/dist/types/services/o2g-messaging.d.ts.map +1 -1
- package/dist/types/services/o2g-routing.d.ts +37 -19
- package/dist/types/services/o2g-routing.d.ts.map +1 -1
- package/dist/types/services/o2g-rsi.d.ts +62 -54
- package/dist/types/services/o2g-rsi.d.ts.map +1 -1
- package/dist/types/services/o2g-telephony.d.ts +255 -224
- package/dist/types/services/o2g-telephony.d.ts.map +1 -1
- package/dist/types/services/o2g-users-mngt.d.ts +21 -13
- package/dist/types/services/o2g-users-mngt.d.ts.map +1 -1
- package/dist/types/services/o2g-users.d.ts +8 -5
- package/dist/types/services/o2g-users.d.ts.map +1 -1
- package/dist/types/types/telephony/call/ccd/call-profile.d.ts.map +1 -1
- package/dist/types/types/users/user.d.ts +6 -0
- package/dist/types/types/users/user.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/o2g-node-sdk.js
CHANGED
|
@@ -8300,7 +8300,7 @@ class TelephonyRest extends rest_service_1.RestService {
|
|
|
8300
8300
|
}
|
|
8301
8301
|
async getPilotInfo(nodeId, pilotNumber, pilotTransferQueryParam = null, loginName = null) {
|
|
8302
8302
|
__classPrivateFieldGet(this, _TelephonyRest_logger, "f").info(`getPilotInfo nodeId={}, pilotNumber={}, loginName={}`, nodeId, pilotNumber, loginName);
|
|
8303
|
-
let uriPost = util_uri_1.default.appendPath(this._uri, 'pilots', assert_1.AssertUtil.notNullOrEmpty(pilotNumber, 'pilotNumber'), 'transferInfo');
|
|
8303
|
+
let uriPost = util_uri_1.default.appendPath(this._uri, 'pilots', assert_1.AssertUtil.positive(nodeId, "nodeId").toString(), assert_1.AssertUtil.notNullOrEmpty(pilotNumber, 'pilotNumber'), 'transferInfo');
|
|
8304
8304
|
if (loginName) {
|
|
8305
8305
|
uriPost = util_uri_1.default.appendQuery(uriPost, 'loginName', loginName);
|
|
8306
8306
|
}
|
|
@@ -8394,7 +8394,7 @@ class UsersManagementRest extends rest_service_1.RestService {
|
|
|
8394
8394
|
if (__classPrivateFieldGet(this, _UsersManagementRest_logger, "f").isLevelEnabled(log_level_1.LogLevel.INFO)) {
|
|
8395
8395
|
__classPrivateFieldGet(this, _UsersManagementRest_logger, "f").info(`getByDeviceNumber deviceNumber=${deviceNumber}`);
|
|
8396
8396
|
}
|
|
8397
|
-
const uriGet = util_uri_1.default.appendQuery(this._uri, 'deviceNumber
|
|
8397
|
+
const uriGet = util_uri_1.default.appendQuery(this._uri, 'deviceNumber', assert_1.AssertUtil.notNullOrEmpty(deviceNumber, 'deviceNumber'));
|
|
8398
8398
|
const logins = this.getResult(await this._httpClient.get(uriGet));
|
|
8399
8399
|
if (__classPrivateFieldGet(this, _UsersManagementRest_logger, "f").isLevelEnabled(log_level_1.LogLevel.DEBUG)) {
|
|
8400
8400
|
__classPrivateFieldGet(this, _UsersManagementRest_logger, "f").debug(`getByDeviceNumber result={}`, logins);
|
|
@@ -8422,8 +8422,16 @@ class UsersManagementRest extends rest_service_1.RestService {
|
|
|
8422
8422
|
if (__classPrivateFieldGet(this, _UsersManagementRest_logger, "f").isLevelEnabled(log_level_1.LogLevel.DEBUG)) {
|
|
8423
8423
|
__classPrivateFieldGet(this, _UsersManagementRest_logger, "f").debug(`createUsers request={}`, req);
|
|
8424
8424
|
}
|
|
8425
|
-
|
|
8426
|
-
|
|
8425
|
+
const _json = this.getResult(await this._httpClient.post(uriPost, new http_content_1.HttpContent(JSON.stringify(req))));
|
|
8426
|
+
if (__classPrivateFieldGet(this, _UsersManagementRest_logger, "f").isLevelEnabled(log_level_1.LogLevel.DEBUG)) {
|
|
8427
|
+
__classPrivateFieldGet(this, _UsersManagementRest_logger, "f").debug(`createUsers result={}`, _json);
|
|
8428
|
+
}
|
|
8429
|
+
if (_json && Array.isArray(_json.users)) {
|
|
8430
|
+
return _json.users.map(user_1.User.fromJson);
|
|
8431
|
+
}
|
|
8432
|
+
else {
|
|
8433
|
+
return null;
|
|
8434
|
+
}
|
|
8427
8435
|
}
|
|
8428
8436
|
async getByLoginName(loginName) {
|
|
8429
8437
|
if (__classPrivateFieldGet(this, _UsersManagementRest_logger, "f").isLevelEnabled(log_level_1.LogLevel.INFO)) {
|
|
@@ -11902,12 +11910,11 @@ var _Analytics_analyticsRest;
|
|
|
11902
11910
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
11903
11911
|
exports.Analytics = void 0;
|
|
11904
11912
|
/**
|
|
11905
|
-
* The Analytics service
|
|
11906
|
-
* <p>Using this service requires having a <b>ANALYTICS</b> license. This service requires an administrative login.
|
|
11913
|
+
* The Analytics service provides access to OmniPCX Enterprise charging information and incident reports.
|
|
11907
11914
|
* <p>
|
|
11908
|
-
*
|
|
11909
|
-
*
|
|
11910
|
-
*
|
|
11915
|
+
* Using this service requires an <b>ANALYTICS</b> license and an administrative login.
|
|
11916
|
+
* O2G uses SSH to collect information from an OmniPCX Enterprise node, so
|
|
11917
|
+
* <b>SSH must be enabled</b> on the node.
|
|
11911
11918
|
*/
|
|
11912
11919
|
class Analytics {
|
|
11913
11920
|
/**
|
|
@@ -11919,54 +11926,64 @@ class Analytics {
|
|
|
11919
11926
|
__classPrivateFieldSet(this, _Analytics_analyticsRest, analyticsRest, "f");
|
|
11920
11927
|
}
|
|
11921
11928
|
/**
|
|
11922
|
-
*
|
|
11923
|
-
*
|
|
11924
|
-
* @param
|
|
11929
|
+
* Retrieves a list of incidents from the specified OmniPCX Enterprise node.
|
|
11930
|
+
*
|
|
11931
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
11932
|
+
* @param last the maximum number of incidents to retrieve; pass `0` to retrieve all incidents currently in progress
|
|
11933
|
+
* @returns an array of {@link Incident} objects, or `null` if the request fails
|
|
11925
11934
|
*/
|
|
11926
11935
|
async getIncidents(nodeId, last = 0) {
|
|
11927
11936
|
return await __classPrivateFieldGet(this, _Analytics_analyticsRest, "f").getIncidents(nodeId, last);
|
|
11928
11937
|
}
|
|
11929
11938
|
/**
|
|
11930
|
-
*
|
|
11931
|
-
*
|
|
11932
|
-
* @param
|
|
11939
|
+
* Retrieves the list of charging files available on the specified node.
|
|
11940
|
+
*
|
|
11941
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
11942
|
+
* @param filter an optional date range filter; when omitted, all available charging files are returned
|
|
11943
|
+
* @returns an array of {@link ChargingFile} objects, or `null` if the request fails
|
|
11933
11944
|
* @see {@link getChargingsFromFiles}
|
|
11934
11945
|
*/
|
|
11935
11946
|
async getChargingFiles(nodeId, filter = null) {
|
|
11936
11947
|
return await __classPrivateFieldGet(this, _Analytics_analyticsRest, "f").getChargingFiles(nodeId, filter);
|
|
11937
11948
|
}
|
|
11938
11949
|
/**
|
|
11939
|
-
*
|
|
11950
|
+
* Queries the charging information for the specified node using a date range filter and the given options.
|
|
11940
11951
|
* <p>
|
|
11941
|
-
* If
|
|
11942
|
-
* set to
|
|
11952
|
+
* If `all` is set to `true`, all tickets are returned, including zero-cost tickets and the called party.
|
|
11953
|
+
* If `all` is set to `false`, the total charging information is returned per user, with the call count
|
|
11954
|
+
* reflecting only calls that have a non-null charging cost.
|
|
11943
11955
|
* <p>
|
|
11944
|
-
*
|
|
11945
|
-
*
|
|
11946
|
-
* range must be specified.
|
|
11956
|
+
* Processing is limited to a maximum of 100 charging files for performance reasons. If the date range filter
|
|
11957
|
+
* is too wide and the number of files to process exceeds 100, the method fails and returns `null`. In that
|
|
11958
|
+
* case, a narrower date range must be specified.
|
|
11947
11959
|
*
|
|
11948
|
-
* @param nodeId
|
|
11949
|
-
* @param filter
|
|
11950
|
-
* @param topResults
|
|
11951
|
-
* @param all
|
|
11960
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
11961
|
+
* @param filter an optional date range filter
|
|
11962
|
+
* @param topResults an optional limit to return only the top N tickets
|
|
11963
|
+
* @param all `true` to include tickets with a 0 cost
|
|
11964
|
+
* @returns a {@link ChargingResult} object, or `null` in case of error or if the filter yields no results
|
|
11952
11965
|
*/
|
|
11953
11966
|
async getChargingsFromFilter(nodeId, filter = null, topResults = null, all = false) {
|
|
11954
11967
|
return await __classPrivateFieldGet(this, _Analytics_analyticsRest, "f").getChargingsFromFilter(nodeId, filter, topResults, all);
|
|
11955
11968
|
}
|
|
11956
11969
|
/**
|
|
11957
|
-
*
|
|
11970
|
+
* Queries the charging information for the specified node, processing the given charging files with the specified options.
|
|
11971
|
+
* <p>
|
|
11972
|
+
* This method gives finer control over the request by letting the caller specify the exact list of charging files to
|
|
11973
|
+
* process. The list can be obtained via {@link getChargingFiles}.
|
|
11958
11974
|
* <p>
|
|
11959
|
-
* If
|
|
11960
|
-
* set to
|
|
11975
|
+
* If `all` is set to `true`, all tickets are returned, including zero-cost tickets and the called party.
|
|
11976
|
+
* If `all` is set to `false`, the total charging information is returned per user, with the call count
|
|
11977
|
+
* reflecting only calls that have a non-null charging cost.
|
|
11961
11978
|
* <p>
|
|
11962
|
-
*
|
|
11963
|
-
* the
|
|
11964
|
-
* range must be specified.
|
|
11979
|
+
* Processing is limited to a maximum of 100 files for performance reasons. If the number of files exceeds 100,
|
|
11980
|
+
* the method fails and returns `null`.
|
|
11965
11981
|
*
|
|
11966
|
-
* @param nodeId
|
|
11967
|
-
* @param files
|
|
11968
|
-
* @param topResults
|
|
11969
|
-
* @param all
|
|
11982
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
11983
|
+
* @param files the list of charging files to process
|
|
11984
|
+
* @param topResults an optional limit to return only the top N tickets
|
|
11985
|
+
* @param all `true` to include tickets with a 0 cost
|
|
11986
|
+
* @returns a {@link ChargingResult} object, or `null` in case of error or if the specified files yield no results
|
|
11970
11987
|
*/
|
|
11971
11988
|
async getChargingsFromFiles(nodeId, files, topResults = null, all = false) {
|
|
11972
11989
|
return await __classPrivateFieldGet(this, _Analytics_analyticsRest, "f").getChargingsFromFiles(nodeId, files, topResults, all);
|
|
@@ -12025,8 +12042,10 @@ const intrusion_mode_1 = __webpack_require__(/*! ../types/cc-agent/intrusion-mod
|
|
|
12025
12042
|
const events_1 = __importDefault(__webpack_require__(/*! events */ "events"));
|
|
12026
12043
|
const cc_agent_events_1 = __webpack_require__(/*! ../types/cc-agent/cc-agent-events */ "./src/types/cc-agent/cc-agent-events.ts");
|
|
12027
12044
|
/**
|
|
12028
|
-
* CallCenterAgent provides
|
|
12029
|
-
*
|
|
12045
|
+
* `CallCenterAgent` provides access to Contact Center features for CCD operators.
|
|
12046
|
+
* A CCD operator can be either a CCD agent or a CCD supervisor.
|
|
12047
|
+
* <p>
|
|
12048
|
+
* Using this service requires having a <b>CONTACTCENTER_AGENT</b> license.
|
|
12030
12049
|
*/
|
|
12031
12050
|
class CallCenterAgent extends events_1.default {
|
|
12032
12051
|
/**
|
|
@@ -12061,6 +12080,7 @@ class CallCenterAgent extends events_1.default {
|
|
|
12061
12080
|
*
|
|
12062
12081
|
* @param loginName the operator login name
|
|
12063
12082
|
* @returns the {@link OperatorState} on success; `null` otherwise.
|
|
12083
|
+
* @see requestSnapshot
|
|
12064
12084
|
*/
|
|
12065
12085
|
async getState(loginName = null) {
|
|
12066
12086
|
return await __classPrivateFieldGet(this, _CallCenterAgent_ccAgentRest, "f").getState(loginName);
|
|
@@ -12168,7 +12188,7 @@ class CallCenterAgent extends events_1.default {
|
|
|
12168
12188
|
return await __classPrivateFieldGet(this, _CallCenterAgent_ccAgentRest, "f").setReady(loginName);
|
|
12169
12189
|
}
|
|
12170
12190
|
/**
|
|
12171
|
-
* Puts the specified agent in pause
|
|
12191
|
+
* Puts the specified agent in pause.
|
|
12172
12192
|
* <p>
|
|
12173
12193
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
12174
12194
|
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
@@ -12180,7 +12200,7 @@ class CallCenterAgent extends events_1.default {
|
|
|
12180
12200
|
return await __classPrivateFieldGet(this, _CallCenterAgent_ccAgentRest, "f").setPause(loginName);
|
|
12181
12201
|
}
|
|
12182
12202
|
/**
|
|
12183
|
-
* Requests a supervisor to listen to the specified agent.
|
|
12203
|
+
* Requests a supervisor to listen to the specified agent (permanent listening).
|
|
12184
12204
|
* <p>
|
|
12185
12205
|
* On success, an {@link ON_SUPERVISOR_HELP_REQUESTED} event is raised for both the agent and the supervisor.
|
|
12186
12206
|
* <p>
|
|
@@ -12225,7 +12245,7 @@ class CallCenterAgent extends events_1.default {
|
|
|
12225
12245
|
return await __classPrivateFieldGet(this, _CallCenterAgent_ccAgentRest, "f").cancelPermanentListening(loginName);
|
|
12226
12246
|
}
|
|
12227
12247
|
/**
|
|
12228
|
-
* Requests
|
|
12248
|
+
* Requests intrusion in a CCD call.
|
|
12229
12249
|
* <p>
|
|
12230
12250
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
12231
12251
|
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
@@ -12245,7 +12265,7 @@ class CallCenterAgent extends events_1.default {
|
|
|
12245
12265
|
* await O2G.callCenterAgent.changeIntrusionMode(IntrusionMode.NORMAL);
|
|
12246
12266
|
* ```
|
|
12247
12267
|
*
|
|
12248
|
-
* @param agentNumber the extension number of the CCD agent
|
|
12268
|
+
* @param agentNumber the extension number of the CCD agent who answers the CCD call
|
|
12249
12269
|
* @param intrusionMode the intrusion mode
|
|
12250
12270
|
* @param loginName the supervisor login name
|
|
12251
12271
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
@@ -12295,7 +12315,7 @@ class CallCenterAgent extends events_1.default {
|
|
|
12295
12315
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
12296
12316
|
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
12297
12317
|
*
|
|
12298
|
-
* @param agentNumber the extension number of the agent who requested help
|
|
12318
|
+
* @param agentNumber the extension number of the agent who has requested help
|
|
12299
12319
|
* @param loginName the supervisor login name
|
|
12300
12320
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
12301
12321
|
* @see cancelSupervisorHelpRequest
|
|
@@ -12332,6 +12352,7 @@ class CallCenterAgent extends events_1.default {
|
|
|
12332
12352
|
*
|
|
12333
12353
|
* @param loginName the agent login name
|
|
12334
12354
|
* @returns `true` if the request was successfully submitted; `false` otherwise.
|
|
12355
|
+
* @see getState
|
|
12335
12356
|
*/
|
|
12336
12357
|
async requestSnapshot(loginName = null) {
|
|
12337
12358
|
return await __classPrivateFieldGet(this, _CallCenterAgent_ccAgentRest, "f").requestSnapshot(loginName);
|
|
@@ -12494,9 +12515,22 @@ var _CallCenterManagement_ccManagementRest;
|
|
|
12494
12515
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
12495
12516
|
exports.CallCenterManagement = void 0;
|
|
12496
12517
|
/**
|
|
12497
|
-
*
|
|
12518
|
+
* `CallCenterManagement` provides operations to configure and manage CCD pilots
|
|
12519
|
+
* and their associated calendars.
|
|
12520
|
+
* <p>
|
|
12521
|
+
* Each CCD pilot has two types of calendars:
|
|
12522
|
+
* <ul>
|
|
12523
|
+
* <li><b>Normal calendar</b> — defines standard pilot behaviour for each day of the
|
|
12524
|
+
* week. Each day can have up to 10 transitions (time slots).</li>
|
|
12525
|
+
* <li><b>Exception calendar</b> — defines special days that override the normal
|
|
12526
|
+
* calendar (e.g. holidays). Each exceptional day can also have up to 10
|
|
12527
|
+
* transitions.</li>
|
|
12528
|
+
* </ul>
|
|
12529
|
+
* A {@link Transition} represents a time slot in a calendar, including the start
|
|
12530
|
+
* time, the pilot rule to apply, and the pilot operating mode.
|
|
12498
12531
|
* <p>
|
|
12499
|
-
*
|
|
12532
|
+
* Using this service requires having a <b>CONTACTCENTER_SERVICE</b> license in
|
|
12533
|
+
* CAPEX mode, or 40 api-tel-f subscriptions in OPEX mode (Purple On Demand).
|
|
12500
12534
|
*/
|
|
12501
12535
|
class CallCenterManagement {
|
|
12502
12536
|
/**
|
|
@@ -12508,10 +12542,10 @@ class CallCenterManagement {
|
|
|
12508
12542
|
__classPrivateFieldSet(this, _CallCenterManagement_ccManagementRest, ccManagementRest, "f");
|
|
12509
12543
|
}
|
|
12510
12544
|
/**
|
|
12511
|
-
*
|
|
12545
|
+
* Returns all CCD pilots configured on the specified OmniPCX Enterprise node.
|
|
12512
12546
|
*
|
|
12513
|
-
* @param nodeId the
|
|
12514
|
-
* @returns the list of {@link Pilot} objects
|
|
12547
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12548
|
+
* @returns the list of {@link Pilot} objects, or `null` if no pilots are configured.
|
|
12515
12549
|
*/
|
|
12516
12550
|
async getPilots(nodeId) {
|
|
12517
12551
|
return __classPrivateFieldGet(this, _CallCenterManagement_ccManagementRest, "f").getPilots(nodeId);
|
|
@@ -12540,13 +12574,13 @@ class CallCenterManagement {
|
|
|
12540
12574
|
* const pilotAdvanced = await O2G.callCenterManagement.getPilot(1, "60141", queryParam);
|
|
12541
12575
|
* ```
|
|
12542
12576
|
*
|
|
12543
|
-
* @param nodeId the
|
|
12577
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12544
12578
|
* @param pilotNumber the pilot number
|
|
12545
12579
|
* @param pilotTransferQueryParam optional call profile context. When provided,
|
|
12546
12580
|
* the pilot information is evaluated against the
|
|
12547
12581
|
* specified agent number, skills and transfer type.
|
|
12548
12582
|
* Requires O2G >= 2.7.4.
|
|
12549
|
-
* @returns the {@link Pilot} information
|
|
12583
|
+
* @returns the {@link Pilot} information, or `null` if not found.
|
|
12550
12584
|
*/
|
|
12551
12585
|
async getPilot(nodeId, pilotNumber, pilotTransferQueryParam = null) {
|
|
12552
12586
|
if (pilotTransferQueryParam) {
|
|
@@ -12557,27 +12591,27 @@ class CallCenterManagement {
|
|
|
12557
12591
|
}
|
|
12558
12592
|
}
|
|
12559
12593
|
/**
|
|
12560
|
-
*
|
|
12594
|
+
* Returns the calendar associated with the specified CCD pilot.
|
|
12561
12595
|
* <p>
|
|
12562
|
-
* The calendar
|
|
12596
|
+
* The calendar combines the normal and exception schedules that govern
|
|
12563
12597
|
* the pilot's open/closed state over time.
|
|
12564
12598
|
*
|
|
12565
|
-
* @param nodeId the
|
|
12599
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12566
12600
|
* @param pilotNumber the pilot number
|
|
12567
|
-
* @returns the {@link Calendar}
|
|
12601
|
+
* @returns the {@link Calendar} of the pilot, or `null` if not found.
|
|
12568
12602
|
*/
|
|
12569
12603
|
async getCalendar(nodeId, pilotNumber) {
|
|
12570
12604
|
return __classPrivateFieldGet(this, _CallCenterManagement_ccManagementRest, "f").getCalendar(nodeId, pilotNumber);
|
|
12571
12605
|
}
|
|
12572
12606
|
/**
|
|
12573
|
-
*
|
|
12607
|
+
* Returns the exception calendar for the specified CCD pilot.
|
|
12574
12608
|
* <p>
|
|
12575
12609
|
* The exception calendar contains date-specific transitions that override
|
|
12576
12610
|
* the normal weekly schedule.
|
|
12577
12611
|
*
|
|
12578
|
-
* @param nodeId the
|
|
12612
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12579
12613
|
* @param pilotNumber the pilot number
|
|
12580
|
-
* @returns the {@link ExceptionCalendar}
|
|
12614
|
+
* @returns the {@link ExceptionCalendar}, or `null` if not found.
|
|
12581
12615
|
*/
|
|
12582
12616
|
async getExceptionCalendar(nodeId, pilotNumber) {
|
|
12583
12617
|
return __classPrivateFieldGet(this, _CallCenterManagement_ccManagementRest, "f").getExceptionCalendar(nodeId, pilotNumber);
|
|
@@ -12600,10 +12634,10 @@ class CallCenterManagement {
|
|
|
12600
12634
|
* await O2G.callCenterManagement.deleteExceptionTransition(1, "60141", christmas, 0);
|
|
12601
12635
|
* ```
|
|
12602
12636
|
*
|
|
12603
|
-
* @param nodeId the
|
|
12637
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12604
12638
|
* @param pilotNumber the pilot number
|
|
12605
|
-
* @param dateTransition the
|
|
12606
|
-
* @param transition the
|
|
12639
|
+
* @param dateTransition the exceptional day to which the transition applies
|
|
12640
|
+
* @param transition the {@link Transition} to add
|
|
12607
12641
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
12608
12642
|
*/
|
|
12609
12643
|
async addExceptionTransition(nodeId, pilotNumber, dateTransition, transition) {
|
|
@@ -12611,38 +12645,42 @@ class CallCenterManagement {
|
|
|
12611
12645
|
}
|
|
12612
12646
|
/**
|
|
12613
12647
|
* Deletes a transition from the exception calendar of the specified CCD pilot.
|
|
12648
|
+
* <p>
|
|
12649
|
+
* The transition is identified by its zero-based index in the list of transitions for the day.
|
|
12614
12650
|
*
|
|
12615
|
-
* @param nodeId the
|
|
12651
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12616
12652
|
* @param pilotNumber the pilot number
|
|
12617
|
-
* @param dateTransition the
|
|
12618
|
-
* @param index the index of the transition to delete
|
|
12653
|
+
* @param dateTransition the exceptional day from which to remove the transition
|
|
12654
|
+
* @param index the zero-based index of the transition to delete
|
|
12619
12655
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
12620
12656
|
*/
|
|
12621
12657
|
async deleteExceptionTransition(nodeId, pilotNumber, dateTransition, index) {
|
|
12622
12658
|
return __classPrivateFieldGet(this, _CallCenterManagement_ccManagementRest, "f").deleteExceptionTransition(nodeId, pilotNumber, dateTransition, index);
|
|
12623
12659
|
}
|
|
12624
12660
|
/**
|
|
12625
|
-
*
|
|
12661
|
+
* Modifies a transition in the exception calendar of the specified CCD pilot.
|
|
12662
|
+
* <p>
|
|
12663
|
+
* The transition is identified by its zero-based index in the list of transitions for the day.
|
|
12626
12664
|
*
|
|
12627
|
-
* @param nodeId the
|
|
12665
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12628
12666
|
* @param pilotNumber the pilot number
|
|
12629
|
-
* @param dateTransition the
|
|
12630
|
-
* @param index the index of the transition to
|
|
12631
|
-
* @param transition the new
|
|
12667
|
+
* @param dateTransition the exceptional day containing the transition to modify
|
|
12668
|
+
* @param index the zero-based index of the transition to modify
|
|
12669
|
+
* @param transition the new {@link Transition} value
|
|
12632
12670
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
12633
12671
|
*/
|
|
12634
12672
|
async setExceptionTransition(nodeId, pilotNumber, dateTransition, index, transition) {
|
|
12635
12673
|
return __classPrivateFieldGet(this, _CallCenterManagement_ccManagementRest, "f").setExceptionTransition(nodeId, pilotNumber, dateTransition, index, transition);
|
|
12636
12674
|
}
|
|
12637
12675
|
/**
|
|
12638
|
-
*
|
|
12676
|
+
* Returns the normal (weekly) calendar of the specified CCD pilot.
|
|
12639
12677
|
* <p>
|
|
12640
12678
|
* The normal calendar defines the recurring weekly schedule of open/closed
|
|
12641
12679
|
* transitions for each day of the week.
|
|
12642
12680
|
*
|
|
12643
|
-
* @param nodeId the
|
|
12681
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12644
12682
|
* @param pilotNumber the pilot number
|
|
12645
|
-
* @returns the {@link NormalCalendar}
|
|
12683
|
+
* @returns the {@link NormalCalendar}, or `null` if not found.
|
|
12646
12684
|
*/
|
|
12647
12685
|
async getNormalCalendar(nodeId, pilotNumber) {
|
|
12648
12686
|
return __classPrivateFieldGet(this, _CallCenterManagement_ccManagementRest, "f").getNormalCalendar(nodeId, pilotNumber);
|
|
@@ -12668,10 +12706,10 @@ class CallCenterManagement {
|
|
|
12668
12706
|
* await O2G.callCenterManagement.deleteNormalTransition(1, "60141", DayOfWeek.MONDAY, 1);
|
|
12669
12707
|
* ```
|
|
12670
12708
|
*
|
|
12671
|
-
* @param nodeId the
|
|
12709
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12672
12710
|
* @param pilotNumber the pilot number
|
|
12673
12711
|
* @param day the day of the week to which the transition applies
|
|
12674
|
-
* @param transition the
|
|
12712
|
+
* @param transition the {@link Transition} to add
|
|
12675
12713
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
12676
12714
|
*/
|
|
12677
12715
|
async addNormalTransition(nodeId, pilotNumber, day, transition) {
|
|
@@ -12679,24 +12717,28 @@ class CallCenterManagement {
|
|
|
12679
12717
|
}
|
|
12680
12718
|
/**
|
|
12681
12719
|
* Deletes a transition from the normal calendar of the specified CCD pilot.
|
|
12720
|
+
* <p>
|
|
12721
|
+
* The transition is identified by its zero-based index in the list of transitions for the day.
|
|
12682
12722
|
*
|
|
12683
|
-
* @param nodeId the
|
|
12723
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12684
12724
|
* @param pilotNumber the pilot number
|
|
12685
|
-
* @param day the day of the week from which the transition
|
|
12686
|
-
* @param index the index of the transition to delete
|
|
12725
|
+
* @param day the day of the week from which to remove the transition
|
|
12726
|
+
* @param index the zero-based index of the transition to delete
|
|
12687
12727
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
12688
12728
|
*/
|
|
12689
12729
|
async deleteNormalTransition(nodeId, pilotNumber, day, index) {
|
|
12690
12730
|
return __classPrivateFieldGet(this, _CallCenterManagement_ccManagementRest, "f").deleteNormalTransition(nodeId, pilotNumber, day, index);
|
|
12691
12731
|
}
|
|
12692
12732
|
/**
|
|
12693
|
-
*
|
|
12733
|
+
* Modifies a transition in the normal calendar of the specified CCD pilot.
|
|
12734
|
+
* <p>
|
|
12735
|
+
* The transition is identified by its zero-based index in the list of transitions for the day.
|
|
12694
12736
|
*
|
|
12695
|
-
* @param nodeId the
|
|
12737
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12696
12738
|
* @param pilotNumber the pilot number
|
|
12697
|
-
* @param day the day of the week containing the transition to
|
|
12698
|
-
* @param index the index of the transition to
|
|
12699
|
-
* @param transition the new
|
|
12739
|
+
* @param day the day of the week containing the transition to modify
|
|
12740
|
+
* @param index the zero-based index of the transition to modify
|
|
12741
|
+
* @param transition the new {@link Transition} value
|
|
12700
12742
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
12701
12743
|
*/
|
|
12702
12744
|
async setNormalTransition(nodeId, pilotNumber, day, index, transition) {
|
|
@@ -12718,7 +12760,7 @@ class CallCenterManagement {
|
|
|
12718
12760
|
* // scheduled calendar transition occurs.
|
|
12719
12761
|
* ```
|
|
12720
12762
|
*
|
|
12721
|
-
* @param nodeId the
|
|
12763
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12722
12764
|
* @param pilotNumber the pilot number
|
|
12723
12765
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
12724
12766
|
*/
|
|
@@ -12728,7 +12770,7 @@ class CallCenterManagement {
|
|
|
12728
12770
|
/**
|
|
12729
12771
|
* Forces the specified CCD pilot into the closed state, regardless of its calendar schedule.
|
|
12730
12772
|
*
|
|
12731
|
-
* @param nodeId the
|
|
12773
|
+
* @param nodeId the OmniPCX Enterprise node identifier
|
|
12732
12774
|
* @param pilotNumber the pilot number
|
|
12733
12775
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
12734
12776
|
*/
|
|
@@ -12788,12 +12830,14 @@ exports.CallCenterPilot = void 0;
|
|
|
12788
12830
|
const events_1 = __importDefault(__webpack_require__(/*! events */ "events"));
|
|
12789
12831
|
const cc_pilot_events_1 = __webpack_require__(/*! ../types/cc-pilot/cc-pilot-events */ "./src/types/cc-pilot/cc-pilot-events.ts");
|
|
12790
12832
|
/**
|
|
12791
|
-
* CallCenterPilot allows an administrator to monitor
|
|
12792
|
-
* service requires having a <b>CONTACTCENTER_SRV</b> license.
|
|
12833
|
+
* `CallCenterPilot` allows an administrator to monitor CCD pilots.
|
|
12793
12834
|
* <p>
|
|
12794
12835
|
* Monitoring a pilot consists of starting the monitoring with {@link monitorStart},
|
|
12795
12836
|
* then listening to events to track call activity on the pilot. When monitoring
|
|
12796
12837
|
* is no longer needed, stop it with {@link monitorStop}.
|
|
12838
|
+
* <p>
|
|
12839
|
+
* Using this service requires having a <b>CONTACTCENTER_SERVICE</b> license in
|
|
12840
|
+
* CAPEX mode, or 40 api-tel-f subscriptions in OPEX mode (Purple On Demand).
|
|
12797
12841
|
*
|
|
12798
12842
|
* @example
|
|
12799
12843
|
* ```typescript
|
|
@@ -12859,17 +12903,17 @@ class CallCenterPilot extends events_1.default {
|
|
|
12859
12903
|
exports.CallCenterPilot = CallCenterPilot;
|
|
12860
12904
|
_CallCenterPilot_ccPilotRest = new WeakMap();
|
|
12861
12905
|
/**
|
|
12862
|
-
* Occurs when a new call arrives on a pilot.
|
|
12906
|
+
* Occurs when a new call arrives on a CCD pilot.
|
|
12863
12907
|
* @event
|
|
12864
12908
|
*/
|
|
12865
12909
|
CallCenterPilot.ON_PILOT_CALL_CREATED = 'OnPilotCallCreated';
|
|
12866
12910
|
/**
|
|
12867
|
-
* Occurs when
|
|
12911
|
+
* Occurs when a CCD call is routed into a queue.
|
|
12868
12912
|
* @event
|
|
12869
12913
|
*/
|
|
12870
12914
|
CallCenterPilot.ON_PILOT_CALL_QUEUED = 'OnPilotCallQueued';
|
|
12871
12915
|
/**
|
|
12872
|
-
* Occurs when a call has been removed from the
|
|
12916
|
+
* Occurs when a CCD call has been removed from the queue, either by distribution, cancellation, or overflow.
|
|
12873
12917
|
* @event
|
|
12874
12918
|
*/
|
|
12875
12919
|
CallCenterPilot.ON_PILOT_CALL_REMOVED = 'OnPilotCallRemoved';
|
|
@@ -12993,11 +13037,12 @@ class CallCenterRealtime extends events_1.default {
|
|
|
12993
13037
|
}
|
|
12994
13038
|
/**
|
|
12995
13039
|
* Retrieves all CCD objects that currently provide real-time information.
|
|
12996
|
-
*
|
|
13040
|
+
* <p>
|
|
12997
13041
|
* The returned {@link RtiObjects} includes collections of agents, pilots,
|
|
12998
13042
|
* queues, and processing groups that can be monitored.
|
|
12999
13043
|
*
|
|
13000
|
-
*
|
|
13044
|
+
* @returns The {@link RtiObjects} containing the CCD objects, or `null` if no objects
|
|
13045
|
+
* are available or an error occurs.
|
|
13001
13046
|
*/
|
|
13002
13047
|
async getRtiObjects() {
|
|
13003
13048
|
return __classPrivateFieldGet(this, _CallCenterRealtime_ccRealtimeRest, "f").getRtiObjects();
|
|
@@ -13006,7 +13051,7 @@ class CallCenterRealtime extends events_1.default {
|
|
|
13006
13051
|
* Returns all CCD agents that provide real-time information.
|
|
13007
13052
|
*
|
|
13008
13053
|
* @returns An array of {@link RtiObjectIdentifier} representing agents,
|
|
13009
|
-
* or an empty array if none exist.
|
|
13054
|
+
* or an empty array if none exist, or `null` if an error occurs.
|
|
13010
13055
|
*/
|
|
13011
13056
|
async getAgents() {
|
|
13012
13057
|
return __classPrivateFieldGet(this, _CallCenterRealtime_ccRealtimeRest, "f").getAgents();
|
|
@@ -13160,8 +13205,18 @@ var _CallCenterStatistics_ccStatisticsRest;
|
|
|
13160
13205
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
13161
13206
|
exports.CallCenterStatistics = void 0;
|
|
13162
13207
|
/**
|
|
13163
|
-
*
|
|
13164
|
-
*
|
|
13208
|
+
* Provides access to historical ACD statistics and reporting for CCD agents and pilots.
|
|
13209
|
+
* <p>
|
|
13210
|
+
* Using this service requires a <b>CONTACTCENTER_SERVICE</b> license in CAPEX mode, or a
|
|
13211
|
+
* <b>40 api-tel-f</b> subscription in OPEX mode (Purple On Demand).
|
|
13212
|
+
* <p>
|
|
13213
|
+
* This service supports two modes of data retrieval:
|
|
13214
|
+
* <ul>
|
|
13215
|
+
* <li><b>Immediate reports</b> — statistics retrieved on demand, returned as in-memory data
|
|
13216
|
+
* or exported as CSV or Excel files.</li>
|
|
13217
|
+
* <li><b>Scheduled reports</b> — recurring statistics delivered as email attachments to
|
|
13218
|
+
* predefined recipients.</li>
|
|
13219
|
+
* </ul>
|
|
13165
13220
|
* <p>
|
|
13166
13221
|
* Statistics are accessed through a two-level hierarchy:
|
|
13167
13222
|
* <ul>
|
|
@@ -13221,24 +13276,24 @@ class CallCenterStatistics {
|
|
|
13221
13276
|
__classPrivateFieldSet(this, _CallCenterStatistics_ccStatisticsRest, ccStatisticsRest, "f");
|
|
13222
13277
|
}
|
|
13223
13278
|
/**
|
|
13224
|
-
* Returns whether
|
|
13225
|
-
*
|
|
13226
|
-
*
|
|
13227
|
-
* since both methods enforce that only one request can
|
|
13279
|
+
* Returns whether an asynchronous statistics report generation request is currently in progress.
|
|
13280
|
+
* <p>
|
|
13281
|
+
* Use this method to check before calling {@link getDayFileData} or {@link getDaysFileData},
|
|
13282
|
+
* since both methods enforce that only one request can be active at a time.
|
|
13228
13283
|
*
|
|
13229
|
-
* @returns `true` if a statistics request is currently active
|
|
13284
|
+
* @returns `true` if a statistics request is currently active; `false` otherwise
|
|
13230
13285
|
*/
|
|
13231
13286
|
hasAsyncRequestInProgress() {
|
|
13232
13287
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").hasAsyncRequestInProgress();
|
|
13233
13288
|
}
|
|
13234
13289
|
/**
|
|
13235
|
-
* Creates a new
|
|
13236
|
-
* and establishes the statistics scope defining which agents' data the requester
|
|
13237
|
-
*
|
|
13238
|
-
*
|
|
13239
|
-
*
|
|
13240
|
-
*
|
|
13241
|
-
*
|
|
13290
|
+
* Creates a new {@link Requester} with the specified identifier, language, and time zone,
|
|
13291
|
+
* and establishes the statistics scope defining which agents' data the requester is
|
|
13292
|
+
* authorized to access.
|
|
13293
|
+
* <p>
|
|
13294
|
+
* The agent scope determines which agents' statistics can be retrieved by the requester.
|
|
13295
|
+
* Once created, the requester can query individual or aggregated statistics for those
|
|
13296
|
+
* agents through the reporting services.
|
|
13242
13297
|
*
|
|
13243
13298
|
* @example
|
|
13244
13299
|
* ```typescript
|
|
@@ -13259,164 +13314,151 @@ class CallCenterStatistics {
|
|
|
13259
13314
|
* );
|
|
13260
13315
|
* ```
|
|
13261
13316
|
*
|
|
13262
|
-
* @param id the unique identifier of the requester
|
|
13317
|
+
* @param id the unique identifier of the requester (e.g., a supervisor ID)
|
|
13263
13318
|
* @param language the requester's preferred {@link Language}
|
|
13264
13319
|
* @param timezone the requester's time zone (e.g. `"Europe/Paris"`)
|
|
13265
|
-
* @param agents the agent
|
|
13266
|
-
* @returns the newly created {@link Requester} on success; `null` otherwise
|
|
13320
|
+
* @param agents the agent directory numbers that define the scope of accessible statistics
|
|
13321
|
+
* @returns the newly created {@link Requester} on success; `null` otherwise
|
|
13267
13322
|
* @see deleteRequester
|
|
13268
13323
|
*/
|
|
13269
13324
|
async createRequester(id, language, timezone, ...agents) {
|
|
13270
13325
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").createRequester(id, language, timezone, agents);
|
|
13271
13326
|
}
|
|
13272
13327
|
/**
|
|
13273
|
-
* Removes the requester and all its associated contexts.
|
|
13274
|
-
*
|
|
13275
|
-
* After
|
|
13276
|
-
*
|
|
13328
|
+
* Removes the specified requester and all its associated contexts.
|
|
13329
|
+
* <p>
|
|
13330
|
+
* After this call, the requester no longer has access to any agent statistics defined
|
|
13331
|
+
* under its scope.
|
|
13277
13332
|
*
|
|
13278
|
-
* @param requester
|
|
13279
|
-
* @returns `true` if the requester was successfully removed;
|
|
13333
|
+
* @param requester the requester to remove
|
|
13334
|
+
* @returns `true` if the requester was successfully removed; `false` otherwise
|
|
13280
13335
|
*/
|
|
13281
13336
|
async deleteRequester(requester) {
|
|
13282
13337
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").deleteRequester(requester);
|
|
13283
13338
|
}
|
|
13284
13339
|
/**
|
|
13285
13340
|
* Retrieves the requester associated with the specified identifier.
|
|
13341
|
+
* <p>
|
|
13342
|
+
* The returned requester represents the scope of agents for which statistics can be
|
|
13343
|
+
* accessed. If no requester exists with the given ID, this method returns `null`.
|
|
13286
13344
|
*
|
|
13287
|
-
*
|
|
13288
|
-
*
|
|
13289
|
-
*
|
|
13290
|
-
*
|
|
13291
|
-
* @param id - The unique identifier of the requester.
|
|
13292
|
-
* @returns The `Requester` object corresponding to the ID, or `null`
|
|
13293
|
-
* if no matching requester is found.
|
|
13345
|
+
* @param id the unique identifier of the requester
|
|
13346
|
+
* @returns the {@link Requester} object corresponding to the ID, or `null` if no matching
|
|
13347
|
+
* requester is found
|
|
13294
13348
|
*/
|
|
13295
13349
|
async getRequester(id) {
|
|
13296
13350
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").getRequester(id);
|
|
13297
13351
|
}
|
|
13298
13352
|
/**
|
|
13299
|
-
* Creates a new
|
|
13353
|
+
* Creates a new statistics context with the specified label, description, and filter
|
|
13300
13354
|
* for the given requester.
|
|
13355
|
+
* <p>
|
|
13356
|
+
* A context defines the filter criteria (pilots, agents, queues) for which call-center
|
|
13357
|
+
* statistics are collected and analyzed.
|
|
13301
13358
|
*
|
|
13302
|
-
*
|
|
13303
|
-
*
|
|
13304
|
-
*
|
|
13305
|
-
* @param
|
|
13306
|
-
* @
|
|
13307
|
-
* @param description - a detailed description of the context
|
|
13308
|
-
* @param filter - the filter defining the selection criteria for the context
|
|
13309
|
-
* @returns the created `StatContext` if successful; `null` otherwise
|
|
13359
|
+
* @param requester the requester for whom the context is created
|
|
13360
|
+
* @param label a short label identifying this context
|
|
13361
|
+
* @param description a detailed description of the context
|
|
13362
|
+
* @param filter the filter defining the selection criteria for the context
|
|
13363
|
+
* @returns the created {@link StatsContext} if successful; `null` otherwise
|
|
13310
13364
|
*/
|
|
13311
13365
|
async createContext(requester, label, description, filter) {
|
|
13312
13366
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").createContext(requester, label, description, filter);
|
|
13313
13367
|
}
|
|
13314
13368
|
/**
|
|
13315
|
-
* Deletes all
|
|
13316
|
-
*
|
|
13317
|
-
* A context defines a scope for collecting and analyzing call center statistics
|
|
13318
|
-
* according to its associated filter criteria.
|
|
13319
|
-
*
|
|
13320
|
-
* @param requester - The requester whose contexts should be deleted.
|
|
13321
|
-
* @returns `true` if all contexts were successfully deleted; `false`
|
|
13322
|
-
* if an error occurred or no contexts were deleted.
|
|
13369
|
+
* Deletes all statistics contexts associated with the specified requester.
|
|
13323
13370
|
*
|
|
13371
|
+
* @param requester the requester whose contexts should be deleted
|
|
13372
|
+
* @returns `true` if all contexts were successfully deleted; `false` if an error occurred
|
|
13373
|
+
* or no contexts were deleted
|
|
13324
13374
|
* @see createContext
|
|
13325
13375
|
*/
|
|
13326
13376
|
async deleteContexts(requester) {
|
|
13327
13377
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").deleteContexts(requester);
|
|
13328
13378
|
}
|
|
13329
13379
|
/**
|
|
13330
|
-
* Retrieves
|
|
13331
|
-
*
|
|
13332
|
-
* Each context defines a scope for collecting and analyzing call center statistics
|
|
13333
|
-
* according to its associated filter criteria.
|
|
13380
|
+
* Retrieves all statistics contexts created for the specified requester.
|
|
13334
13381
|
*
|
|
13335
|
-
* @param requester
|
|
13336
|
-
* @returns
|
|
13337
|
-
*
|
|
13382
|
+
* @param requester the requester whose contexts are retrieved
|
|
13383
|
+
* @returns an array of {@link StatsContext} objects if successful; `null` if there is an
|
|
13384
|
+
* error or if no contexts exist for this requester
|
|
13338
13385
|
* @see createContext
|
|
13339
13386
|
*/
|
|
13340
13387
|
async getContexts(requester) {
|
|
13341
13388
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").getContexts(requester);
|
|
13342
13389
|
}
|
|
13343
13390
|
/**
|
|
13344
|
-
* Retrieves a
|
|
13391
|
+
* Retrieves a statistics context by its identifier for the specified requester.
|
|
13345
13392
|
*
|
|
13346
|
-
*
|
|
13347
|
-
*
|
|
13348
|
-
*
|
|
13349
|
-
*
|
|
13350
|
-
* @param contextId - The unique identifier of the context.
|
|
13351
|
-
* @returns The {@link StatsContext} if found and retrieval is successful; `null`
|
|
13352
|
-
* if there is an error or if no context exists with the specified identifier.
|
|
13393
|
+
* @param requester the requester who owns the context
|
|
13394
|
+
* @param contextId the unique identifier of the context
|
|
13395
|
+
* @returns the {@link StatsContext} if found; `null` if no context exists with the
|
|
13396
|
+
* specified identifier or if an error occurred
|
|
13353
13397
|
*/
|
|
13354
13398
|
async getContext(requester, contextId) {
|
|
13355
13399
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").getContext(requester, contextId);
|
|
13356
13400
|
}
|
|
13357
13401
|
/**
|
|
13358
|
-
* Deletes the specified
|
|
13359
|
-
*
|
|
13360
|
-
* A context defines a scope for collecting and analyzing call center statistics
|
|
13361
|
-
* according to its associated filter criteria.
|
|
13402
|
+
* Deletes the specified statistics context.
|
|
13362
13403
|
*
|
|
13363
|
-
* @param context
|
|
13364
|
-
* @returns `true` if the context was successfully deleted; `false`
|
|
13365
|
-
*
|
|
13366
|
-
* @see createContext
|
|
13404
|
+
* @param context the context to delete
|
|
13405
|
+
* @returns `true` if the context was successfully deleted; `false` if an error occurred or
|
|
13406
|
+
* the context could not be deleted
|
|
13407
|
+
* @see createContext
|
|
13367
13408
|
*/
|
|
13368
13409
|
async deleteContext(context) {
|
|
13369
13410
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").deleteContext(context);
|
|
13370
13411
|
}
|
|
13371
13412
|
/**
|
|
13372
|
-
*
|
|
13373
|
-
*
|
|
13374
|
-
*
|
|
13375
|
-
*
|
|
13376
|
-
*
|
|
13377
|
-
*
|
|
13378
|
-
* The returned {@link StatisticsData} object contains the aggregated data,
|
|
13379
|
-
* suitable for further processing or integration.
|
|
13413
|
+
* Returns aggregated statistics for a range of days.
|
|
13414
|
+
* <p>
|
|
13415
|
+
* Multi-day reports provide one row of aggregated data per agent or pilot per day.
|
|
13416
|
+
* The range can cover up to 31 consecutive days within the last 12 months and may span
|
|
13417
|
+
* month boundaries.
|
|
13380
13418
|
*
|
|
13381
|
-
* @param context
|
|
13382
|
-
* @param range
|
|
13383
|
-
* @param shortHeader
|
|
13384
|
-
* @returns
|
|
13385
|
-
*
|
|
13419
|
+
* @param context the context defining the scope and filters for the statistics
|
|
13420
|
+
* @param range the date range over which to collect statistics
|
|
13421
|
+
* @param shortHeader `true` to return only a limited number of headers in the response
|
|
13422
|
+
* @returns a {@link StatisticsData} object containing the aggregated data, or `null` if the
|
|
13423
|
+
* data could not be retrieved
|
|
13386
13424
|
*/
|
|
13387
13425
|
async getDaysData(context, range, shortHeader = false) {
|
|
13388
13426
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").getDaysData(context, shortHeader, range);
|
|
13389
13427
|
}
|
|
13390
13428
|
/**
|
|
13391
|
-
*
|
|
13392
|
-
*
|
|
13393
|
-
*
|
|
13394
|
-
*
|
|
13395
|
-
*
|
|
13396
|
-
*
|
|
13397
|
-
*
|
|
13429
|
+
* Returns statistics for a single day.
|
|
13430
|
+
* <p>
|
|
13431
|
+
* Statistics are provided in time slots according to the `timeInterval` parameter,
|
|
13432
|
+
* spanning from 00:00 until the last completed interval of the specified day.
|
|
13433
|
+
* <p>
|
|
13434
|
+
* If `date` is not provided, the current day is used. If `timeInterval` is not provided,
|
|
13435
|
+
* `TimeInterval.QUARTE_HOUR` (15-minute slots) is used as the default.
|
|
13398
13436
|
*
|
|
13399
|
-
* @param context
|
|
13400
|
-
* @param date
|
|
13401
|
-
* @param timeInterval
|
|
13402
|
-
*
|
|
13403
|
-
* @param shortHeader
|
|
13404
|
-
* @returns
|
|
13437
|
+
* @param context the context defining the scope and filters for the statistics
|
|
13438
|
+
* @param date (optional) the day for which to collect statistics; defaults to today
|
|
13439
|
+
* @param timeInterval (optional) the time slot interval for reporting (e.g., 15 or 30 minutes);
|
|
13440
|
+
* defaults to `TimeInterval.QUARTE_HOUR`
|
|
13441
|
+
* @param shortHeader `true` to return only a limited number of headers in the response
|
|
13442
|
+
* @returns a {@link StatisticsData} object containing the data, or `null` if the data could
|
|
13443
|
+
* not be retrieved
|
|
13405
13444
|
*/
|
|
13406
13445
|
async getDayData(context, date, timeInterval, shortHeader = false) {
|
|
13407
13446
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").getDayData(context, shortHeader, date, timeInterval);
|
|
13408
13447
|
}
|
|
13409
13448
|
/**
|
|
13410
|
-
* Asynchronously
|
|
13411
|
-
*
|
|
13449
|
+
* Asynchronously downloads statistics for a single day as a report file.
|
|
13450
|
+
* <p>
|
|
13451
|
+
* The server generates the file asynchronously. The result is delivered as a ZIP archive
|
|
13452
|
+
* whose single entry is extracted and saved into the specified directory. The returned
|
|
13453
|
+
* `Promise` resolves when the extracted file has been saved to disk.
|
|
13412
13454
|
* <p>
|
|
13413
|
-
*
|
|
13455
|
+
* Statistics are reported in time slots defined by the `timeInterval` parameter,
|
|
13414
13456
|
* spanning from 00:00 until the last completed interval of the specified day.
|
|
13415
13457
|
* <p>
|
|
13416
13458
|
* Only one report generation request can be active at a time. Use
|
|
13417
|
-
* {@link hasAsyncRequestInProgress} to check before calling this method. Any attempt
|
|
13418
|
-
*
|
|
13419
|
-
*
|
|
13459
|
+
* {@link hasAsyncRequestInProgress} to check before calling this method. Any attempt to
|
|
13460
|
+
* start another request while one is already in progress will reject the returned `Promise`
|
|
13461
|
+
* with an `Error`.
|
|
13420
13462
|
*
|
|
13421
13463
|
* @example
|
|
13422
13464
|
* ```typescript
|
|
@@ -13439,14 +13481,14 @@ class CallCenterStatistics {
|
|
|
13439
13481
|
*
|
|
13440
13482
|
* @param context the context defining the scope and filters for the statistics
|
|
13441
13483
|
* @param date the date for which to generate the report
|
|
13442
|
-
* @param timeInterval the length of each reporting
|
|
13484
|
+
* @param timeInterval the length of each reporting time slot within the day
|
|
13443
13485
|
* @param format the output format for the report file
|
|
13444
|
-
* @param shortHeader true to return only limited number of headers in response
|
|
13486
|
+
* @param shortHeader `true` to return only a limited number of headers in the response
|
|
13445
13487
|
* @param directory the directory in which to save the generated report file
|
|
13446
13488
|
* @param progressCallback optional callback invoked to report progress of the operation
|
|
13447
|
-
* @returns a `Promise` that resolves with the path to the generated report file,
|
|
13448
|
-
*
|
|
13449
|
-
*
|
|
13489
|
+
* @returns a `Promise` that resolves with the path to the generated report file, or rejects
|
|
13490
|
+
* if an error occurs, the operation is cancelled, or another request is already in
|
|
13491
|
+
* progress
|
|
13450
13492
|
* @see getDaysFileData
|
|
13451
13493
|
* @see hasAsyncRequestInProgress
|
|
13452
13494
|
* @see cancelRequest
|
|
@@ -13455,13 +13497,19 @@ class CallCenterStatistics {
|
|
|
13455
13497
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").getDayFileData(context, shortHeader, date, timeInterval, format, directory, progressCallback);
|
|
13456
13498
|
}
|
|
13457
13499
|
/**
|
|
13458
|
-
* Asynchronously
|
|
13459
|
-
*
|
|
13500
|
+
* Asynchronously downloads statistics for a range of days as a report file.
|
|
13501
|
+
* <p>
|
|
13502
|
+
* The server generates the file asynchronously. The result is delivered as a ZIP archive
|
|
13503
|
+
* whose single entry is extracted and saved into the specified directory. The returned
|
|
13504
|
+
* `Promise` resolves when the extracted file has been saved to disk.
|
|
13505
|
+
* <p>
|
|
13506
|
+
* Multi-day reports provide one row of aggregated data per agent or pilot per day. The range
|
|
13507
|
+
* can cover up to 31 consecutive days within the last 12 months and may span month boundaries.
|
|
13460
13508
|
* <p>
|
|
13461
13509
|
* Only one report generation request can be active at a time. Use
|
|
13462
|
-
* {@link hasAsyncRequestInProgress} to check before calling this method. Any attempt
|
|
13463
|
-
*
|
|
13464
|
-
*
|
|
13510
|
+
* {@link hasAsyncRequestInProgress} to check before calling this method. Any attempt to
|
|
13511
|
+
* start another request while one is already in progress will reject the returned `Promise`
|
|
13512
|
+
* with an `Error`.
|
|
13465
13513
|
*
|
|
13466
13514
|
* @example
|
|
13467
13515
|
* ```typescript
|
|
@@ -13488,12 +13536,12 @@ class CallCenterStatistics {
|
|
|
13488
13536
|
* @param context the context defining the scope and filters for the statistics
|
|
13489
13537
|
* @param range the date range over which to collect statistics
|
|
13490
13538
|
* @param format the output format for the report file
|
|
13491
|
-
* @param shortHeader true to return only limited number of headers in response
|
|
13539
|
+
* @param shortHeader `true` to return only a limited number of headers in the response
|
|
13492
13540
|
* @param directory the directory in which to save the generated report file
|
|
13493
13541
|
* @param progressCallback optional callback invoked to report progress of the operation
|
|
13494
|
-
* @returns a `Promise` that resolves with the path to the generated report file,
|
|
13495
|
-
*
|
|
13496
|
-
*
|
|
13542
|
+
* @returns a `Promise` that resolves with the path to the generated report file, or rejects
|
|
13543
|
+
* if an error occurs, the operation is cancelled, or another request is already in
|
|
13544
|
+
* progress
|
|
13497
13545
|
* @see getDayFileData
|
|
13498
13546
|
* @see hasAsyncRequestInProgress
|
|
13499
13547
|
* @see cancelRequest
|
|
@@ -13502,27 +13550,26 @@ class CallCenterStatistics {
|
|
|
13502
13550
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").getDaysFileData(context, shortHeader, range, format, directory, progressCallback);
|
|
13503
13551
|
}
|
|
13504
13552
|
/**
|
|
13505
|
-
* Attempts to cancel an ongoing statistics report generation for the
|
|
13506
|
-
*
|
|
13507
|
-
*
|
|
13508
|
-
*
|
|
13509
|
-
* has not already completed.
|
|
13510
|
-
*
|
|
13553
|
+
* Attempts to cancel an ongoing asynchronous statistics report generation for the
|
|
13554
|
+
* specified context.
|
|
13555
|
+
* <p>
|
|
13556
|
+
* Cancellation may succeed only if the server-side process has not already completed.
|
|
13511
13557
|
* The method returns immediately and does not block until the process is fully terminated.
|
|
13512
13558
|
*
|
|
13513
|
-
* @param context
|
|
13514
|
-
* @returns `true` if a running
|
|
13515
|
-
* `false` if there was no running process for the specified context or if it could
|
|
13559
|
+
* @param context the context identifying the report generation process to cancel
|
|
13560
|
+
* @returns `true` if a running request was found and cancellation was successfully requested;
|
|
13561
|
+
* `false` if there was no running process for the specified context or if it could
|
|
13562
|
+
* not be cancelled
|
|
13516
13563
|
*/
|
|
13517
13564
|
async cancelRequest(context) {
|
|
13518
13565
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").cancelRequest(context);
|
|
13519
13566
|
}
|
|
13520
13567
|
/**
|
|
13521
|
-
* Creates a new
|
|
13568
|
+
* Creates a new recurring scheduled report with the specified configuration.
|
|
13522
13569
|
* <p>
|
|
13523
|
-
* The report
|
|
13524
|
-
*
|
|
13525
|
-
*
|
|
13570
|
+
* The report is generated repeatedly according to the given `recurrence` pattern and
|
|
13571
|
+
* `observationPeriod`, formatted in the specified output format, and sent as a ZIP file
|
|
13572
|
+
* attachment to the provided recipients.
|
|
13526
13573
|
*
|
|
13527
13574
|
* @example
|
|
13528
13575
|
* ```typescript
|
|
@@ -13547,11 +13594,11 @@ class CallCenterStatistics {
|
|
|
13547
13594
|
* @param context the context defining which data and counters to include
|
|
13548
13595
|
* @param id a unique identifier for the scheduled report
|
|
13549
13596
|
* @param description a human-readable description of the report
|
|
13550
|
-
* @param observationPeriod the period over which statistics are collected
|
|
13597
|
+
* @param observationPeriod the observation period over which statistics are collected
|
|
13551
13598
|
* @param recurrence the recurrence pattern for generating the report
|
|
13552
13599
|
* @param format the output format of the report
|
|
13553
13600
|
* @param recipients the list of email addresses to receive the report
|
|
13554
|
-
* @returns the newly created {@link ScheduledReport} on success; `null` otherwise
|
|
13601
|
+
* @returns the newly created {@link ScheduledReport} on success; `null` otherwise
|
|
13555
13602
|
* @see createOneTimeScheduledReport
|
|
13556
13603
|
* @see deleteScheduledReport
|
|
13557
13604
|
* @see setScheduledReportEnabled
|
|
@@ -13562,8 +13609,8 @@ class CallCenterStatistics {
|
|
|
13562
13609
|
/**
|
|
13563
13610
|
* Creates a new one-time scheduled report with the specified configuration.
|
|
13564
13611
|
* <p>
|
|
13565
|
-
* Unlike {@link createRecurrentScheduledReport}, this report is generated only
|
|
13566
|
-
*
|
|
13612
|
+
* Unlike {@link createRecurrentScheduledReport}, this report is generated only once for
|
|
13613
|
+
* the specified `observationPeriod` and is no longer active afterwards.
|
|
13567
13614
|
*
|
|
13568
13615
|
* @example
|
|
13569
13616
|
* ```typescript
|
|
@@ -13581,10 +13628,10 @@ class CallCenterStatistics {
|
|
|
13581
13628
|
* @param context the context defining which data and counters to include
|
|
13582
13629
|
* @param id a unique identifier for the scheduled report
|
|
13583
13630
|
* @param description a human-readable description of the report
|
|
13584
|
-
* @param observationPeriod the period over which statistics are collected
|
|
13631
|
+
* @param observationPeriod the observation period over which statistics are collected
|
|
13585
13632
|
* @param format the output format of the report
|
|
13586
13633
|
* @param recipients the list of email addresses to receive the report
|
|
13587
|
-
* @returns the newly created {@link ScheduledReport} on success; `null` otherwise
|
|
13634
|
+
* @returns the newly created {@link ScheduledReport} on success; `null` otherwise
|
|
13588
13635
|
* @see createRecurrentScheduledReport
|
|
13589
13636
|
* @see deleteScheduledReport
|
|
13590
13637
|
*/
|
|
@@ -13592,11 +13639,10 @@ class CallCenterStatistics {
|
|
|
13592
13639
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").createOneTimeScheduledReport(context, id, description, observationPeriod, format, recipients);
|
|
13593
13640
|
}
|
|
13594
13641
|
/**
|
|
13595
|
-
* Returns all scheduled reports associated with the
|
|
13642
|
+
* Returns all scheduled reports associated with the specified context.
|
|
13596
13643
|
*
|
|
13597
|
-
* @param context
|
|
13598
|
-
* @returns
|
|
13599
|
-
* may be empty if no reports exist
|
|
13644
|
+
* @param context the context whose reports are retrieved
|
|
13645
|
+
* @returns an array of {@link ScheduledReport} objects, or `null` on failure
|
|
13600
13646
|
*/
|
|
13601
13647
|
async getScheduledReports(context) {
|
|
13602
13648
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").getScheduledReports(context);
|
|
@@ -13604,8 +13650,8 @@ class CallCenterStatistics {
|
|
|
13604
13650
|
/**
|
|
13605
13651
|
* Deletes the specified scheduled report.
|
|
13606
13652
|
*
|
|
13607
|
-
* @param report
|
|
13608
|
-
* @returns `true` if the report was successfully deleted
|
|
13653
|
+
* @param report the scheduled report to delete
|
|
13654
|
+
* @returns `true` if the report was successfully deleted; `false` otherwise
|
|
13609
13655
|
*/
|
|
13610
13656
|
async deleteScheduledReport(report) {
|
|
13611
13657
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").deleteScheduledReport(report);
|
|
@@ -13613,37 +13659,33 @@ class CallCenterStatistics {
|
|
|
13613
13659
|
/**
|
|
13614
13660
|
* Enables or disables the specified scheduled report.
|
|
13615
13661
|
*
|
|
13616
|
-
* @param report
|
|
13617
|
-
* @param enabled
|
|
13618
|
-
* @returns `true` if the report state was successfully updated
|
|
13662
|
+
* @param report the scheduled report to update
|
|
13663
|
+
* @param enabled `true` to enable the report; `false` to disable it
|
|
13664
|
+
* @returns `true` if the report state was successfully updated; `false` otherwise
|
|
13619
13665
|
*/
|
|
13620
13666
|
async setScheduledReportEnabled(report, enabled) {
|
|
13621
13667
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").setScheduledReportEnabled(report, enabled);
|
|
13622
13668
|
}
|
|
13623
13669
|
/**
|
|
13624
|
-
*
|
|
13625
|
-
*
|
|
13626
|
-
* This method requires a valid `StatsContext` to perform the retrieval operation.
|
|
13627
|
-
* The `scheduleReportId` must correspond to an existing scheduled report.
|
|
13670
|
+
* Returns the scheduled report with the specified identifier.
|
|
13628
13671
|
*
|
|
13629
|
-
* @param context
|
|
13630
|
-
* @param scheduleReportId
|
|
13631
|
-
* @returns
|
|
13632
|
-
*
|
|
13672
|
+
* @param context the statistics context that owns the report
|
|
13673
|
+
* @param scheduleReportId the unique identifier of the scheduled report to retrieve
|
|
13674
|
+
* @returns the {@link ScheduledReport} corresponding to the specified ID, or `null` if no
|
|
13675
|
+
* report exists with that ID
|
|
13633
13676
|
*/
|
|
13634
13677
|
async getScheduledReport(context, scheduleReportId) {
|
|
13635
13678
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").getScheduledReport(context, scheduleReportId);
|
|
13636
13679
|
}
|
|
13637
13680
|
/**
|
|
13638
|
-
*
|
|
13639
|
-
*
|
|
13640
|
-
*
|
|
13641
|
-
*
|
|
13642
|
-
* Implementations should ensure that the report exists and that the updates are valid.
|
|
13681
|
+
* Persists any changes made to the specified scheduled report.
|
|
13682
|
+
* <p>
|
|
13683
|
+
* Fields that can be updated include the description, observation period, recurrence
|
|
13684
|
+
* pattern, output format, and recipient list.
|
|
13643
13685
|
*
|
|
13644
|
-
* @param report
|
|
13645
|
-
* @returns `true` if the update was successful; `false` if the report does not exist
|
|
13646
|
-
*
|
|
13686
|
+
* @param report the {@link ScheduledReport} instance containing the updated fields
|
|
13687
|
+
* @returns `true` if the update was successful; `false` if the report does not exist or
|
|
13688
|
+
* the update could not be applied
|
|
13647
13689
|
*/
|
|
13648
13690
|
async updateScheduledReport(report) {
|
|
13649
13691
|
return __classPrivateFieldGet(this, _CallCenterStatistics_ccStatisticsRest, "f").updateScheduledReport(report);
|
|
@@ -13701,9 +13743,17 @@ exports.CommunicationLog = void 0;
|
|
|
13701
13743
|
const events_1 = __importDefault(__webpack_require__(/*! events */ "events"));
|
|
13702
13744
|
const comlog_events_1 = __webpack_require__(/*! ../types/comlog/comlog-events */ "./src/types/comlog/comlog-events.ts");
|
|
13703
13745
|
/**
|
|
13704
|
-
* The CommunicationLog service
|
|
13705
|
-
*
|
|
13746
|
+
* The CommunicationLog service provides operations to retrieve, manage, and manipulate
|
|
13747
|
+
* a user's communication log (com records). Using this service requires having a
|
|
13706
13748
|
* <b>TELEPHONY_ADVANCED</b> license.
|
|
13749
|
+
* <p>
|
|
13750
|
+
* Communication records are generated by the O2G server and provide detailed information
|
|
13751
|
+
* about calls, participants, call outcomes, and durations. The communication log has a
|
|
13752
|
+
* depth of 100 records maximum per user; when the limit is reached, the oldest records
|
|
13753
|
+
* are removed.
|
|
13754
|
+
* <p>
|
|
13755
|
+
* Acknowledgement and unacknowledgement of an incoming missed call using O2G is
|
|
13756
|
+
* <b>NOT synchronized</b> with the OmniPCX Enterprise.
|
|
13707
13757
|
*
|
|
13708
13758
|
* @example
|
|
13709
13759
|
* ```typescript
|
|
@@ -13741,20 +13791,19 @@ class CommunicationLog extends events_1.default {
|
|
|
13741
13791
|
eventRegistry.register(this, CommunicationLog.ON_COM_RECORDS_UNACK, comlog_events_1.OnComRecordsUnAck);
|
|
13742
13792
|
}
|
|
13743
13793
|
/**
|
|
13744
|
-
*
|
|
13745
|
-
*
|
|
13794
|
+
* Retrieves communication records based on the specified filter, with pagination
|
|
13795
|
+
* support and optional optimization.
|
|
13746
13796
|
* <p>
|
|
13747
|
-
* If `optimized` is set to `true`, the
|
|
13748
|
-
*
|
|
13749
|
-
*
|
|
13797
|
+
* If `optimized` is set to `true`, the full identity of a participant is returned
|
|
13798
|
+
* only the first time it appears in the records. Subsequent occurrences of the same
|
|
13799
|
+
* participant will only include minimal identification (e.g., phone number).
|
|
13750
13800
|
* <p>
|
|
13751
|
-
* The `page` parameter allows querying the communication log by page. The
|
|
13752
|
-
* {@link QueryResult}
|
|
13753
|
-
*
|
|
13801
|
+
* The `page` parameter allows querying the communication log page by page. The
|
|
13802
|
+
* {@link QueryResult} includes the records, paging information, and the total number
|
|
13803
|
+
* of matching records.
|
|
13754
13804
|
* <p>
|
|
13755
|
-
* If the session has been opened for a user, the `loginName` parameter is
|
|
13756
|
-
*
|
|
13757
|
-
* administrator.
|
|
13805
|
+
* If the session has been opened for a user, the `loginName` parameter is ignored,
|
|
13806
|
+
* but it is mandatory if the session has been opened by an administrator.
|
|
13758
13807
|
*
|
|
13759
13808
|
* @example
|
|
13760
13809
|
* ```typescript
|
|
@@ -13773,36 +13822,36 @@ class CommunicationLog extends events_1.default {
|
|
|
13773
13822
|
*
|
|
13774
13823
|
* @param filter the filter describing the query criteria
|
|
13775
13824
|
* @param page the page description
|
|
13776
|
-
* @param optimized `true` to
|
|
13777
|
-
* @param loginName the user login name
|
|
13825
|
+
* @param optimized `true` to enable optimization
|
|
13826
|
+
* @param loginName the target user's login name
|
|
13778
13827
|
* @returns the {@link QueryResult} on success; `null` otherwise.
|
|
13779
13828
|
*/
|
|
13780
13829
|
async getComRecords(filter = null, page = null, optimized = false, loginName = null) {
|
|
13781
13830
|
return await __classPrivateFieldGet(this, _CommunicationLog_comLogRest, "f").getComRecords(filter, page, optimized, loginName);
|
|
13782
13831
|
}
|
|
13783
13832
|
/**
|
|
13784
|
-
*
|
|
13833
|
+
* Retrieves the communication record with the specified identifier.
|
|
13785
13834
|
* <p>
|
|
13786
|
-
* If the session has been opened for a user, the `loginName` parameter is
|
|
13787
|
-
*
|
|
13788
|
-
* administrator.
|
|
13835
|
+
* If the session has been opened for a user, the `loginName` parameter is ignored,
|
|
13836
|
+
* but it is mandatory if the session has been opened by an administrator.
|
|
13789
13837
|
*
|
|
13790
13838
|
* @param recordId the com record identifier
|
|
13791
|
-
* @param loginName the user login name
|
|
13839
|
+
* @param loginName the target user's login name
|
|
13792
13840
|
* @returns the {@link ComRecord} on success; `null` otherwise.
|
|
13793
13841
|
*/
|
|
13794
13842
|
async getComRecord(recordId, loginName = null) {
|
|
13795
13843
|
return await __classPrivateFieldGet(this, _CommunicationLog_comLogRest, "f").getComRecord(recordId, loginName);
|
|
13796
13844
|
}
|
|
13797
13845
|
/**
|
|
13798
|
-
* Deletes the specified
|
|
13846
|
+
* Deletes the communication record with the specified identifier.
|
|
13799
13847
|
* <p>
|
|
13800
|
-
*
|
|
13801
|
-
*
|
|
13802
|
-
*
|
|
13848
|
+
* An {@link ON_COM_RECORDS_DELETED} event is raised when the deletion succeeds.
|
|
13849
|
+
* <p>
|
|
13850
|
+
* If the session has been opened for a user, the `loginName` parameter is ignored,
|
|
13851
|
+
* but it is mandatory if the session has been opened by an administrator.
|
|
13803
13852
|
*
|
|
13804
13853
|
* @param recordId the com record identifier
|
|
13805
|
-
* @param loginName the user login name
|
|
13854
|
+
* @param loginName the target user's login name
|
|
13806
13855
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
13807
13856
|
* @see deleteComRecordsById
|
|
13808
13857
|
* @see deleteComRecords
|
|
@@ -13811,17 +13860,16 @@ class CommunicationLog extends events_1.default {
|
|
|
13811
13860
|
return await __classPrivateFieldGet(this, _CommunicationLog_comLogRest, "f").deleteComRecord(recordId, loginName);
|
|
13812
13861
|
}
|
|
13813
13862
|
/**
|
|
13814
|
-
* Deletes the
|
|
13863
|
+
* Deletes the communication records with the specified identifiers.
|
|
13815
13864
|
* <p>
|
|
13816
|
-
* An {@link ON_COM_RECORDS_DELETED} event is raised
|
|
13817
|
-
*
|
|
13865
|
+
* An {@link ON_COM_RECORDS_DELETED} event is raised listing the com records that
|
|
13866
|
+
* have been deleted.
|
|
13818
13867
|
* <p>
|
|
13819
|
-
* If the session has been opened for a user, the `loginName` parameter is
|
|
13820
|
-
*
|
|
13821
|
-
* administrator.
|
|
13868
|
+
* If the session has been opened for a user, the `loginName` parameter is ignored,
|
|
13869
|
+
* but it is mandatory if the session has been opened by an administrator.
|
|
13822
13870
|
*
|
|
13823
13871
|
* @param recordIds the list of com record identifiers to delete
|
|
13824
|
-
* @param loginName the user login name
|
|
13872
|
+
* @param loginName the target user's login name
|
|
13825
13873
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
13826
13874
|
* @see deleteComRecord
|
|
13827
13875
|
* @see deleteComRecords
|
|
@@ -13830,16 +13878,15 @@ class CommunicationLog extends events_1.default {
|
|
|
13830
13878
|
return await __classPrivateFieldGet(this, _CommunicationLog_comLogRest, "f").deleteComRecordsById(recordIds, loginName);
|
|
13831
13879
|
}
|
|
13832
13880
|
/**
|
|
13833
|
-
* Deletes the
|
|
13881
|
+
* Deletes the communication records matching the specified filter.
|
|
13834
13882
|
* <p>
|
|
13835
13883
|
* The `filter` parameter defines the search criteria for the delete operation.
|
|
13836
13884
|
* <p>
|
|
13837
|
-
* An {@link ON_COM_RECORDS_DELETED} event is raised
|
|
13838
|
-
*
|
|
13885
|
+
* An {@link ON_COM_RECORDS_DELETED} event is raised listing the com records that
|
|
13886
|
+
* have been deleted.
|
|
13839
13887
|
* <p>
|
|
13840
|
-
* If the session has been opened for a user, the `loginName` parameter is
|
|
13841
|
-
*
|
|
13842
|
-
* administrator.
|
|
13888
|
+
* If the session has been opened for a user, the `loginName` parameter is ignored,
|
|
13889
|
+
* but it is mandatory if the session has been opened by an administrator.
|
|
13843
13890
|
*
|
|
13844
13891
|
* @example
|
|
13845
13892
|
* ```typescript
|
|
@@ -13856,7 +13903,7 @@ class CommunicationLog extends events_1.default {
|
|
|
13856
13903
|
* ```
|
|
13857
13904
|
*
|
|
13858
13905
|
* @param filter the filter describing the query criteria
|
|
13859
|
-
* @param loginName the user login name
|
|
13906
|
+
* @param loginName the target user's login name
|
|
13860
13907
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
13861
13908
|
* @see deleteComRecord
|
|
13862
13909
|
* @see deleteComRecordsById
|
|
@@ -13865,17 +13912,16 @@ class CommunicationLog extends events_1.default {
|
|
|
13865
13912
|
return await __classPrivateFieldGet(this, _CommunicationLog_comLogRest, "f").deleteComRecords(filter, loginName);
|
|
13866
13913
|
}
|
|
13867
13914
|
/**
|
|
13868
|
-
* Acknowledges the
|
|
13915
|
+
* Acknowledges the communication records with the specified identifiers.
|
|
13869
13916
|
* <p>
|
|
13870
|
-
* An {@link ON_COM_RECORDS_ACK} event is raised
|
|
13871
|
-
*
|
|
13917
|
+
* An {@link ON_COM_RECORDS_ACK} event is raised listing the com records that
|
|
13918
|
+
* have been acknowledged.
|
|
13872
13919
|
* <p>
|
|
13873
|
-
* If the session has been opened for a user, the `loginName` parameter is
|
|
13874
|
-
*
|
|
13875
|
-
* administrator.
|
|
13920
|
+
* If the session has been opened for a user, the `loginName` parameter is ignored,
|
|
13921
|
+
* but it is mandatory if the session has been opened by an administrator.
|
|
13876
13922
|
*
|
|
13877
13923
|
* @param recordIds the list of com record identifiers to acknowledge
|
|
13878
|
-
* @param loginName the user login name
|
|
13924
|
+
* @param loginName the target user's login name
|
|
13879
13925
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
13880
13926
|
* @see acknowledgeComRecord
|
|
13881
13927
|
*/
|
|
@@ -13883,17 +13929,16 @@ class CommunicationLog extends events_1.default {
|
|
|
13883
13929
|
return await __classPrivateFieldGet(this, _CommunicationLog_comLogRest, "f").acknowledgeComRecords(recordIds, loginName);
|
|
13884
13930
|
}
|
|
13885
13931
|
/**
|
|
13886
|
-
* Acknowledges the specified
|
|
13932
|
+
* Acknowledges the communication record with the specified identifier.
|
|
13887
13933
|
* <p>
|
|
13888
|
-
* An {@link ON_COM_RECORDS_ACK} event is raised
|
|
13889
|
-
*
|
|
13934
|
+
* An {@link ON_COM_RECORDS_ACK} event is raised listing the com records that
|
|
13935
|
+
* have been acknowledged.
|
|
13890
13936
|
* <p>
|
|
13891
|
-
* If the session has been opened for a user, the `loginName` parameter is
|
|
13892
|
-
*
|
|
13893
|
-
* administrator.
|
|
13937
|
+
* If the session has been opened for a user, the `loginName` parameter is ignored,
|
|
13938
|
+
* but it is mandatory if the session has been opened by an administrator.
|
|
13894
13939
|
*
|
|
13895
13940
|
* @param recordId the com record identifier
|
|
13896
|
-
* @param loginName the user login name
|
|
13941
|
+
* @param loginName the target user's login name
|
|
13897
13942
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
13898
13943
|
* @see acknowledgeComRecords
|
|
13899
13944
|
*/
|
|
@@ -13901,17 +13946,16 @@ class CommunicationLog extends events_1.default {
|
|
|
13901
13946
|
return await __classPrivateFieldGet(this, _CommunicationLog_comLogRest, "f").acknowledgeComRecord(recordId, loginName);
|
|
13902
13947
|
}
|
|
13903
13948
|
/**
|
|
13904
|
-
* Unacknowledges the
|
|
13949
|
+
* Unacknowledges the communication records with the specified identifiers.
|
|
13905
13950
|
* <p>
|
|
13906
|
-
* An {@link ON_COM_RECORDS_UNACK} event is raised
|
|
13907
|
-
*
|
|
13951
|
+
* An {@link ON_COM_RECORDS_UNACK} event is raised listing the com records that
|
|
13952
|
+
* have been unacknowledged.
|
|
13908
13953
|
* <p>
|
|
13909
|
-
* If the session has been opened for a user, the `loginName` parameter is
|
|
13910
|
-
*
|
|
13911
|
-
* administrator.
|
|
13954
|
+
* If the session has been opened for a user, the `loginName` parameter is ignored,
|
|
13955
|
+
* but it is mandatory if the session has been opened by an administrator.
|
|
13912
13956
|
*
|
|
13913
13957
|
* @param recordIds the list of com record identifiers to unacknowledge
|
|
13914
|
-
* @param loginName the user login name
|
|
13958
|
+
* @param loginName the target user's login name
|
|
13915
13959
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
13916
13960
|
* @see unacknowledgeComRecord
|
|
13917
13961
|
*/
|
|
@@ -13919,17 +13963,16 @@ class CommunicationLog extends events_1.default {
|
|
|
13919
13963
|
return await __classPrivateFieldGet(this, _CommunicationLog_comLogRest, "f").unacknowledgeComRecords(recordIds, loginName);
|
|
13920
13964
|
}
|
|
13921
13965
|
/**
|
|
13922
|
-
* Unacknowledges the specified
|
|
13966
|
+
* Unacknowledges the communication record with the specified identifier.
|
|
13923
13967
|
* <p>
|
|
13924
|
-
* An {@link ON_COM_RECORDS_UNACK} event is raised
|
|
13925
|
-
*
|
|
13968
|
+
* An {@link ON_COM_RECORDS_UNACK} event is raised listing the com records that
|
|
13969
|
+
* have been unacknowledged.
|
|
13926
13970
|
* <p>
|
|
13927
|
-
* If the session has been opened for a user, the `loginName` parameter is
|
|
13928
|
-
*
|
|
13929
|
-
* administrator.
|
|
13971
|
+
* If the session has been opened for a user, the `loginName` parameter is ignored,
|
|
13972
|
+
* but it is mandatory if the session has been opened by an administrator.
|
|
13930
13973
|
*
|
|
13931
13974
|
* @param recordId the com record identifier
|
|
13932
|
-
* @param loginName the user login name
|
|
13975
|
+
* @param loginName the target user's login name
|
|
13933
13976
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
13934
13977
|
* @see unacknowledgeComRecords
|
|
13935
13978
|
*/
|
|
@@ -14016,36 +14059,36 @@ var _Directory_directoryRest;
|
|
|
14016
14059
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14017
14060
|
exports.Directory = void 0;
|
|
14018
14061
|
/**
|
|
14019
|
-
* The
|
|
14020
|
-
*
|
|
14021
|
-
* <b>TELEPHONY_ADVANCED</b> license.
|
|
14062
|
+
* The Directory service allows searching for contacts in the OmniPCX Enterprise
|
|
14063
|
+
* phone book. Using this service requires having a <b>TELEPHONY_ADVANCED</b> license.
|
|
14022
14064
|
* <p>
|
|
14023
|
-
* A directory search
|
|
14065
|
+
* A directory search involves a sequence of operations:
|
|
14024
14066
|
* <ol>
|
|
14025
|
-
* <li>
|
|
14026
|
-
* <li>
|
|
14067
|
+
* <li>Initiate the search with a set of criteria.</li>
|
|
14068
|
+
* <li>Retrieve results using one or more subsequent calls to {@link getResults}.</li>
|
|
14027
14069
|
* </ol>
|
|
14028
14070
|
* <p>
|
|
14029
|
-
* Note: For each session (user or administrator), only 5 concurrent searches
|
|
14030
|
-
*
|
|
14071
|
+
* Note: For each session (user or administrator), only 5 concurrent searches are
|
|
14072
|
+
* allowed. An unused search context is automatically freed after 1 minute.
|
|
14031
14073
|
*
|
|
14032
14074
|
* @example
|
|
14033
14075
|
* ```typescript
|
|
14034
|
-
*
|
|
14035
|
-
*
|
|
14036
|
-
*
|
|
14037
|
-
*
|
|
14038
|
-
*
|
|
14039
|
-
*
|
|
14040
|
-
*
|
|
14041
|
-
*
|
|
14042
|
-
*
|
|
14043
|
-
*
|
|
14044
|
-
*
|
|
14045
|
-
*
|
|
14046
|
-
* //
|
|
14047
|
-
*
|
|
14048
|
-
*
|
|
14076
|
+
* await O2G.directory.search(myCriteria);
|
|
14077
|
+
*
|
|
14078
|
+
* let finished = false;
|
|
14079
|
+
* while (!finished) {
|
|
14080
|
+
* const result = await O2G.directory.getResults();
|
|
14081
|
+
* if (result?.resultCode === SearchResult.ResultCode.NOK) {
|
|
14082
|
+
* // Search still in progress, wait before retrying
|
|
14083
|
+
* await new Promise(resolve => setTimeout(resolve, 500));
|
|
14084
|
+
* } else if (result?.resultCode === SearchResult.ResultCode.OK) {
|
|
14085
|
+
* // Process available results
|
|
14086
|
+
* result.items.forEach(item => console.log(item.firstName, item.lastName));
|
|
14087
|
+
* } else {
|
|
14088
|
+
* // FINISH or TIMEOUT — search is complete
|
|
14089
|
+
* finished = true;
|
|
14090
|
+
* }
|
|
14091
|
+
* }
|
|
14049
14092
|
* ```
|
|
14050
14093
|
*/
|
|
14051
14094
|
class Directory {
|
|
@@ -14061,12 +14104,11 @@ class Directory {
|
|
|
14061
14104
|
* specified number of results.
|
|
14062
14105
|
* <p>
|
|
14063
14106
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
14064
|
-
* ignored, but it is mandatory if the session has been opened by an
|
|
14065
|
-
* administrator.
|
|
14107
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
14066
14108
|
*
|
|
14067
14109
|
* @param filter the search filter
|
|
14068
|
-
* @param limit maximum number of results, in the range [1..100]
|
|
14069
|
-
* @param loginName the user login name
|
|
14110
|
+
* @param limit the maximum number of results, in the range [1..100]
|
|
14111
|
+
* @param loginName the target user's login name
|
|
14070
14112
|
* @returns `true` if the search was successfully initiated; `false` otherwise.
|
|
14071
14113
|
* @see getResults
|
|
14072
14114
|
* @see cancel
|
|
@@ -14078,30 +14120,28 @@ class Directory {
|
|
|
14078
14120
|
* Cancels the current search query for the specified user.
|
|
14079
14121
|
* <p>
|
|
14080
14122
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
14081
|
-
* ignored, but it is mandatory if the session has been opened by an
|
|
14082
|
-
* administrator.
|
|
14123
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
14083
14124
|
*
|
|
14084
|
-
* @param loginName the user login name
|
|
14085
|
-
* @returns `true` if the
|
|
14125
|
+
* @param loginName the target user's login name
|
|
14126
|
+
* @returns `true` if the search was successfully cancelled; `false` otherwise.
|
|
14086
14127
|
* @see search
|
|
14087
14128
|
*/
|
|
14088
14129
|
async cancel(loginName = null) {
|
|
14089
14130
|
return await __classPrivateFieldGet(this, _Directory_directoryRest, "f").cancel(loginName);
|
|
14090
14131
|
}
|
|
14091
14132
|
/**
|
|
14092
|
-
*
|
|
14133
|
+
* Retrieves the next available results for the current search.
|
|
14093
14134
|
* <p>
|
|
14094
14135
|
* `getResults` is generally called in a loop. For each iteration:
|
|
14095
14136
|
* <ul>
|
|
14096
14137
|
* <li>if the result code is `NOK`, the search is in progress but no results are
|
|
14097
|
-
* available — it is recommended to wait before the next iteration (e.g
|
|
14138
|
+
* available yet — it is recommended to wait before the next iteration (e.g., 500ms)</li>
|
|
14098
14139
|
* <li>if the result code is `OK`, results are available and can be processed</li>
|
|
14099
14140
|
* <li>if the result code is `FINISH` or `TIMEOUT`, the search has ended — exit the loop</li>
|
|
14100
14141
|
* </ul>
|
|
14101
14142
|
* <p>
|
|
14102
14143
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
14103
|
-
* ignored, but it is mandatory if the session has been opened by an
|
|
14104
|
-
* administrator.
|
|
14144
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
14105
14145
|
*
|
|
14106
14146
|
* @example
|
|
14107
14147
|
* ```typescript
|
|
@@ -14113,19 +14153,17 @@ class Directory {
|
|
|
14113
14153
|
* if (result?.resultCode === SearchResult.ResultCode.NOK) {
|
|
14114
14154
|
* // Search still in progress, wait before retrying
|
|
14115
14155
|
* await new Promise(resolve => setTimeout(resolve, 500));
|
|
14116
|
-
* }
|
|
14117
|
-
* else if (result?.resultCode === SearchResult.ResultCode.OK) {
|
|
14156
|
+
* } else if (result?.resultCode === SearchResult.ResultCode.OK) {
|
|
14118
14157
|
* // Process available results
|
|
14119
14158
|
* result.items.forEach(item => console.log(item.firstName, item.lastName));
|
|
14120
|
-
* }
|
|
14121
|
-
* else {
|
|
14159
|
+
* } else {
|
|
14122
14160
|
* // FINISH or TIMEOUT — search is complete
|
|
14123
14161
|
* finished = true;
|
|
14124
14162
|
* }
|
|
14125
14163
|
* }
|
|
14126
14164
|
* ```
|
|
14127
14165
|
*
|
|
14128
|
-
* @param loginName the user login name
|
|
14166
|
+
* @param loginName the target user's login name
|
|
14129
14167
|
* @returns the {@link SearchResult} on success; `null` otherwise.
|
|
14130
14168
|
* @see search
|
|
14131
14169
|
*/
|
|
@@ -14182,10 +14220,10 @@ exports.EventSummary = void 0;
|
|
|
14182
14220
|
const events_1 = __webpack_require__(/*! events */ "events");
|
|
14183
14221
|
const event_summary_events_1 = __webpack_require__(/*! ../types/eventsummary/event-summary-events */ "./src/types/eventsummary/event-summary-events.ts");
|
|
14184
14222
|
/**
|
|
14185
|
-
* The
|
|
14186
|
-
*
|
|
14223
|
+
* The EventSummary service allows a user to retrieve new message indicators
|
|
14224
|
+
* such as missed calls, voice mails, callback requests, and faxes.
|
|
14187
14225
|
* <p>
|
|
14188
|
-
* Using this service requires
|
|
14226
|
+
* Using this service requires a <b>TELEPHONY_ADVANCED</b> license.
|
|
14189
14227
|
*
|
|
14190
14228
|
* @example
|
|
14191
14229
|
* ```typescript
|
|
@@ -14215,14 +14253,13 @@ class EventSummary extends events_1.EventEmitter {
|
|
|
14215
14253
|
eventRegistry.register(this, EventSummary.ON_EVENT_SUMMARY_UPDATED, event_summary_events_1.OnEventSummaryUpdated);
|
|
14216
14254
|
}
|
|
14217
14255
|
/**
|
|
14218
|
-
* Retrieves main counters for the specified user.
|
|
14256
|
+
* Retrieves the main event counters for the specified user.
|
|
14219
14257
|
* <p>
|
|
14220
14258
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
14221
|
-
* ignored, but it is mandatory if the session has been opened by an
|
|
14222
|
-
* administrator.
|
|
14259
|
+
* ignored, but it is mandatory if the session has been opened by an administrator.
|
|
14223
14260
|
*
|
|
14224
14261
|
* @param loginName the user login name
|
|
14225
|
-
* @returns the {@link EventSummaryCounters} on success; `null` otherwise
|
|
14262
|
+
* @returns the {@link EventSummaryCounters} containing the event counters on success; `null` otherwise
|
|
14226
14263
|
*/
|
|
14227
14264
|
get(loginName = null) {
|
|
14228
14265
|
return __classPrivateFieldGet(this, _EventSummary_eventSummaryRest, "f").get(loginName);
|
|
@@ -14231,7 +14268,7 @@ class EventSummary extends events_1.EventEmitter {
|
|
|
14231
14268
|
exports.EventSummary = EventSummary;
|
|
14232
14269
|
_EventSummary_eventSummaryRest = new WeakMap();
|
|
14233
14270
|
/**
|
|
14234
|
-
*
|
|
14271
|
+
* Occurs each time the user's event counters have changed.
|
|
14235
14272
|
* @event
|
|
14236
14273
|
*/
|
|
14237
14274
|
EventSummary.ON_EVENT_SUMMARY_UPDATED = 'OnEventSummaryUpdated';
|
|
@@ -14285,12 +14322,12 @@ exports.Maintenance = void 0;
|
|
|
14285
14322
|
const events_1 = __importDefault(__webpack_require__(/*! events */ "events"));
|
|
14286
14323
|
const maint_events_1 = __webpack_require__(/*! ../types/maint/maint-events */ "./src/types/maint/maint-events.ts");
|
|
14287
14324
|
/**
|
|
14288
|
-
* The
|
|
14289
|
-
* in particular information on the
|
|
14325
|
+
* The Maintenance service provides information about the system state,
|
|
14326
|
+
* in particular information on the OmniPCX Enterprise nodes and their connection state.
|
|
14290
14327
|
* Information about licenses is also provided per item: total allocated licenses,
|
|
14291
14328
|
* number currently in use, and expiration date.
|
|
14292
14329
|
* <p>
|
|
14293
|
-
* This service
|
|
14330
|
+
* This service does not require any specific license on the O2G server.
|
|
14294
14331
|
*
|
|
14295
14332
|
* @example
|
|
14296
14333
|
* ```typescript
|
|
@@ -14340,7 +14377,7 @@ class Maintenance extends events_1.default {
|
|
|
14340
14377
|
* <p>
|
|
14341
14378
|
* This operation is restricted to an administrator session only.
|
|
14342
14379
|
*
|
|
14343
|
-
* @returns the {@link SystemStatus} on success; `null` otherwise
|
|
14380
|
+
* @returns the {@link SystemStatus} on success; `null` otherwise
|
|
14344
14381
|
*/
|
|
14345
14382
|
async getSystemStatus() {
|
|
14346
14383
|
return await __classPrivateFieldGet(this, _Maintenance_maintenanceRest, "f").getSystemStatus();
|
|
@@ -14349,12 +14386,12 @@ class Maintenance extends events_1.default {
|
|
|
14349
14386
|
exports.Maintenance = Maintenance;
|
|
14350
14387
|
_Maintenance_maintenanceRest = new WeakMap();
|
|
14351
14388
|
/**
|
|
14352
|
-
* Occurs when connection to remote twin server is lost.
|
|
14389
|
+
* Occurs when the connection to the remote twin O2G server is lost.
|
|
14353
14390
|
* @event
|
|
14354
14391
|
*/
|
|
14355
14392
|
Maintenance.ON_REMOTE_SERVER_LINK_DOWN = 'OnRemoteServerLinkDown';
|
|
14356
14393
|
/**
|
|
14357
|
-
* Occurs when connection to remote twin server is recovered.
|
|
14394
|
+
* Occurs when the connection to the remote twin O2G server is recovered.
|
|
14358
14395
|
* @event
|
|
14359
14396
|
*/
|
|
14360
14397
|
Maintenance.ON_REMOTE_SERVER_LINK_UP = 'OnRemoteServerLinkUp';
|
|
@@ -14369,12 +14406,12 @@ Maintenance.ON_CTI_LINK_DOWN = 'OnCtiLinkDown';
|
|
|
14369
14406
|
*/
|
|
14370
14407
|
Maintenance.ON_CTI_LINK_UP = 'OnCtiLinkUp';
|
|
14371
14408
|
/**
|
|
14372
|
-
* Occurs when
|
|
14409
|
+
* Occurs when the CMIS link to an OmniPCX Enterprise node goes down.
|
|
14373
14410
|
* @event
|
|
14374
14411
|
*/
|
|
14375
14412
|
Maintenance.ON_PBX_LINK_DOWN = 'OnPbxLinkDown';
|
|
14376
14413
|
/**
|
|
14377
|
-
* Occurs when
|
|
14414
|
+
* Occurs when the CMIS link to an OmniPCX Enterprise node is re-established.
|
|
14378
14415
|
* @event
|
|
14379
14416
|
*/
|
|
14380
14417
|
Maintenance.ON_PBX_LINK_UP = 'OnPbxLinkUp';
|
|
@@ -14384,12 +14421,12 @@ Maintenance.ON_PBX_LINK_UP = 'OnPbxLinkUp';
|
|
|
14384
14421
|
*/
|
|
14385
14422
|
Maintenance.ON_PBX_LOADED = 'OnPbxLoaded';
|
|
14386
14423
|
/**
|
|
14387
|
-
* Occurs when
|
|
14424
|
+
* Occurs when a license is about to expire or has expired.
|
|
14388
14425
|
* @event
|
|
14389
14426
|
*/
|
|
14390
14427
|
Maintenance.ON_LICENSE_EXPIRATION = 'OnLicenseExpiration';
|
|
14391
14428
|
/**
|
|
14392
|
-
* Occurs when O2G
|
|
14429
|
+
* Occurs when the O2G server has started (all OmniPCX Enterprise nodes are connected and loaded).
|
|
14393
14430
|
* @event
|
|
14394
14431
|
*/
|
|
14395
14432
|
Maintenance.ON_SERVER_STARTED = 'OnServerStart';
|
|
@@ -14443,7 +14480,8 @@ exports.Messaging = void 0;
|
|
|
14443
14480
|
* the information and the list of voice mails, and manage the mail box. Using
|
|
14444
14481
|
* this service requires having a <b>TELEPHONY_ADVANCED</b> license.
|
|
14445
14482
|
* <p>
|
|
14446
|
-
* It is possible to download a voice mail as a wav file
|
|
14483
|
+
* It is possible to download a voice mail as a wav file, acknowledge (mark as
|
|
14484
|
+
* read) a voice mail, and delete existing messages.
|
|
14447
14485
|
*/
|
|
14448
14486
|
class Messaging {
|
|
14449
14487
|
/**
|
|
@@ -14531,7 +14569,7 @@ class Messaging {
|
|
|
14531
14569
|
return __classPrivateFieldGet(this, _Messaging_messagingRest, "f").deleteVoiceMessage(mailboxId, voicemailId, loginName);
|
|
14532
14570
|
}
|
|
14533
14571
|
/**
|
|
14534
|
-
* Acknowledges the specified voice message.
|
|
14572
|
+
* Acknowledges the specified voice message, marking it as read.
|
|
14535
14573
|
* <p>
|
|
14536
14574
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
14537
14575
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -15386,8 +15424,8 @@ class Routing extends events_1.default {
|
|
|
15386
15424
|
/**
|
|
15387
15425
|
* Activates the Do Not Disturb for the specified user.
|
|
15388
15426
|
* <p>
|
|
15389
|
-
*
|
|
15390
|
-
* already activated.
|
|
15427
|
+
* When active, no calls are presented to the user. This method does nothing and
|
|
15428
|
+
* returns `true` if the Do Not Disturb is already activated.
|
|
15391
15429
|
* <p>
|
|
15392
15430
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
15393
15431
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -15431,7 +15469,7 @@ class Routing extends events_1.default {
|
|
|
15431
15469
|
return await __classPrivateFieldGet(this, _Routing_routingRest, "f").getDndState(loginName);
|
|
15432
15470
|
}
|
|
15433
15471
|
/**
|
|
15434
|
-
* Returns the routing capabilities
|
|
15472
|
+
* Returns the routing capabilities available to the specified user.
|
|
15435
15473
|
* <p>
|
|
15436
15474
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
15437
15475
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -15446,8 +15484,9 @@ class Routing extends events_1.default {
|
|
|
15446
15484
|
/**
|
|
15447
15485
|
* Activates the remote extension device for the specified user.
|
|
15448
15486
|
* <p>
|
|
15449
|
-
* When the remote extension
|
|
15450
|
-
*
|
|
15487
|
+
* When activated, the remote extension rings on incoming calls on the user's
|
|
15488
|
+
* company phone. If it is already activated, this method does nothing and
|
|
15489
|
+
* returns `true`.
|
|
15451
15490
|
* <p>
|
|
15452
15491
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
15453
15492
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -15463,8 +15502,8 @@ class Routing extends events_1.default {
|
|
|
15463
15502
|
/**
|
|
15464
15503
|
* Deactivates the remote extension device for the specified user.
|
|
15465
15504
|
* <p>
|
|
15466
|
-
* When deactivated,
|
|
15467
|
-
*
|
|
15505
|
+
* When deactivated, the remote extension does not ring on incoming calls,
|
|
15506
|
+
* but can still be used to place outgoing calls.
|
|
15468
15507
|
* <p>
|
|
15469
15508
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
15470
15509
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -15491,10 +15530,9 @@ class Routing extends events_1.default {
|
|
|
15491
15530
|
return await __classPrivateFieldGet(this, _Routing_routingRest, "f").getForward(loginName);
|
|
15492
15531
|
}
|
|
15493
15532
|
/**
|
|
15494
|
-
* Cancels the forward for the specified user.
|
|
15533
|
+
* Cancels the active forward for the specified user.
|
|
15495
15534
|
* <p>
|
|
15496
|
-
* This method does nothing and returns `true` if there is no forward
|
|
15497
|
-
* activated.
|
|
15535
|
+
* This method does nothing and returns `true` if there is no forward activated.
|
|
15498
15536
|
* <p>
|
|
15499
15537
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
15500
15538
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -15502,14 +15540,17 @@ class Routing extends events_1.default {
|
|
|
15502
15540
|
*
|
|
15503
15541
|
* @param loginName the user login name
|
|
15504
15542
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
15543
|
+
* @see forwardOnNumber
|
|
15544
|
+
* @see forwardOnVoiceMail
|
|
15505
15545
|
*/
|
|
15506
15546
|
async cancelForward(loginName = null) {
|
|
15507
15547
|
return await __classPrivateFieldGet(this, _Routing_routingRest, "f").cancelForward(loginName);
|
|
15508
15548
|
}
|
|
15509
15549
|
/**
|
|
15510
|
-
*
|
|
15550
|
+
* Activates a forward to the voice mail with the specified condition, for the specified user.
|
|
15511
15551
|
* <p>
|
|
15512
15552
|
* This method will fail and return `false` if the user does not have a voice mail.
|
|
15553
|
+
* If a forward is already active, it is replaced by the new one.
|
|
15513
15554
|
* <p>
|
|
15514
15555
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
15515
15556
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -15519,14 +15560,18 @@ class Routing extends events_1.default {
|
|
|
15519
15560
|
* @param loginName the user login name
|
|
15520
15561
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
15521
15562
|
* @see forwardOnNumber
|
|
15563
|
+
* @see cancelForward
|
|
15522
15564
|
*/
|
|
15523
15565
|
async forwardOnVoiceMail(condition, loginName = null) {
|
|
15524
15566
|
return await __classPrivateFieldGet(this, _Routing_routingRest, "f").forwardOnVoiceMail(condition, loginName);
|
|
15525
15567
|
}
|
|
15526
15568
|
/**
|
|
15527
|
-
*
|
|
15569
|
+
* Activates a forward to the specified number, with the specified condition, for the
|
|
15528
15570
|
* specified user.
|
|
15529
15571
|
* <p>
|
|
15572
|
+
* The number must be authorized by the OmniPCX Enterprise numbering policy.
|
|
15573
|
+
* If a forward is already active, it is replaced by the new one.
|
|
15574
|
+
* <p>
|
|
15530
15575
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
15531
15576
|
* ignored, but it is mandatory if the session has been opened by an
|
|
15532
15577
|
* administrator.
|
|
@@ -15557,7 +15602,7 @@ class Routing extends events_1.default {
|
|
|
15557
15602
|
return await __classPrivateFieldGet(this, _Routing_routingRest, "f").forwardOnNumber(number, condition, loginName);
|
|
15558
15603
|
}
|
|
15559
15604
|
/**
|
|
15560
|
-
* Cancels the overflow for the specified user.
|
|
15605
|
+
* Cancels the active overflow for the specified user.
|
|
15561
15606
|
* <p>
|
|
15562
15607
|
* This method does nothing and returns `true` if there is no overflow activated.
|
|
15563
15608
|
* <p>
|
|
@@ -15567,6 +15612,7 @@ class Routing extends events_1.default {
|
|
|
15567
15612
|
*
|
|
15568
15613
|
* @param loginName the user login name
|
|
15569
15614
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
15615
|
+
* @see overflowOnVoiceMail
|
|
15570
15616
|
*/
|
|
15571
15617
|
async cancelOverflow(loginName = null) {
|
|
15572
15618
|
return await __classPrivateFieldGet(this, _Routing_routingRest, "f").cancelOverflow(loginName);
|
|
@@ -15585,9 +15631,12 @@ class Routing extends events_1.default {
|
|
|
15585
15631
|
return await __classPrivateFieldGet(this, _Routing_routingRest, "f").getOverflow(loginName);
|
|
15586
15632
|
}
|
|
15587
15633
|
/**
|
|
15588
|
-
* Activates an overflow
|
|
15634
|
+
* Activates an overflow to the voice mail with the specified condition, for the
|
|
15589
15635
|
* specified user.
|
|
15590
15636
|
* <p>
|
|
15637
|
+
* The overflow only applies when no forward is active. If an overflow is already
|
|
15638
|
+
* active, it is replaced by the new one.
|
|
15639
|
+
* <p>
|
|
15591
15640
|
* This method will fail and return `false` if the user does not have a voice mail.
|
|
15592
15641
|
* <p>
|
|
15593
15642
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
@@ -15603,7 +15652,10 @@ class Routing extends events_1.default {
|
|
|
15603
15652
|
return await __classPrivateFieldGet(this, _Routing_routingRest, "f").overflowOnVoiceMail(condition, loginName);
|
|
15604
15653
|
}
|
|
15605
15654
|
/**
|
|
15606
|
-
* Gets the routing state of the specified user.
|
|
15655
|
+
* Gets the complete routing state of the specified user.
|
|
15656
|
+
* <p>
|
|
15657
|
+
* The routing state includes the forward, overflow, Do Not Disturb and remote
|
|
15658
|
+
* extension activation status in a single call.
|
|
15607
15659
|
* <p>
|
|
15608
15660
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
15609
15661
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -15616,11 +15668,15 @@ class Routing extends events_1.default {
|
|
|
15616
15668
|
return await __classPrivateFieldGet(this, _Routing_routingRest, "f").getRoutingState(loginName);
|
|
15617
15669
|
}
|
|
15618
15670
|
/**
|
|
15619
|
-
*
|
|
15671
|
+
* Requests a snapshot event to be fired with the current routing state of the specified user.
|
|
15672
|
+
* <p>
|
|
15673
|
+
* The {@link ON_ROUTING_STATE_CHANGED} event will contain the {@link RoutingState}
|
|
15674
|
+
* (forward/overflow/DND state). If a second request is made while the previous one is still
|
|
15675
|
+
* in progress, it has no effect.
|
|
15620
15676
|
* <p>
|
|
15621
|
-
*
|
|
15622
|
-
*
|
|
15623
|
-
*
|
|
15677
|
+
* If the session has been opened by an administrator and `loginName` is `null`, the snapshot
|
|
15678
|
+
* is requested for all users. The request is immediately acknowledged but processing may take
|
|
15679
|
+
* a long time if the number of users is large.
|
|
15624
15680
|
* <p>
|
|
15625
15681
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
15626
15682
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -15704,8 +15760,7 @@ exports.Rsi = void 0;
|
|
|
15704
15760
|
const events_1 = __importDefault(__webpack_require__(/*! events */ "events"));
|
|
15705
15761
|
const rsi_events_1 = __webpack_require__(/*! ../types/rsi/rsi-events */ "./src/types/rsi/rsi-events.ts");
|
|
15706
15762
|
/**
|
|
15707
|
-
*
|
|
15708
|
-
* points features:
|
|
15763
|
+
* `Rsi` provides access to the RSI (Routing Service Intelligence) point features:
|
|
15709
15764
|
* <ul>
|
|
15710
15765
|
* <li>Makes route selection.</li>
|
|
15711
15766
|
* <li>Makes digits collection.</li>
|
|
@@ -15713,9 +15768,8 @@ const rsi_events_1 = __webpack_require__(/*! ../types/rsi/rsi-events */ "./src/t
|
|
|
15713
15768
|
* <li>Plays announcements (prompts and/or digits).</li>
|
|
15714
15769
|
* </ul>
|
|
15715
15770
|
* <p>
|
|
15716
|
-
* To be able to receive
|
|
15717
|
-
*
|
|
15718
|
-
* point.
|
|
15771
|
+
* To be able to receive route requests from the OmniPCX Enterprise, the application
|
|
15772
|
+
* must first subscribe to RSI events and then enable the RSI point.
|
|
15719
15773
|
* <p>
|
|
15720
15774
|
* Using this service requires having a <b>CONTACTCENTER_RSI</b> license.
|
|
15721
15775
|
*/
|
|
@@ -15735,41 +15789,42 @@ class Rsi extends events_1.default {
|
|
|
15735
15789
|
eventRegistry.register(this, Rsi.ON_ROUTE_REQUEST, rsi_events_1.OnRouteRequest);
|
|
15736
15790
|
}
|
|
15737
15791
|
/**
|
|
15738
|
-
* Gets the configured
|
|
15792
|
+
* Gets the configured RSI points.
|
|
15793
|
+
*
|
|
15794
|
+
* @returns the list of {@link RsiPoint} objects representing all declared RSI points, or `null` in case of error.
|
|
15739
15795
|
*/
|
|
15740
15796
|
async getRsiPoints() {
|
|
15741
15797
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").getRsiPoints();
|
|
15742
15798
|
}
|
|
15743
15799
|
/**
|
|
15744
|
-
* Enables the specified
|
|
15800
|
+
* Enables the specified RSI point.
|
|
15745
15801
|
*
|
|
15746
|
-
* @param rsiNumber the
|
|
15747
|
-
* @param
|
|
15802
|
+
* @param rsiNumber the RSI point extension number
|
|
15803
|
+
* @param backup `true` to enable the RSI point in backup mode
|
|
15804
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
15748
15805
|
*/
|
|
15749
15806
|
async enableRsiPoint(rsiNumber, backup = false) {
|
|
15750
15807
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").enableRsiPoint(rsiNumber, backup);
|
|
15751
15808
|
}
|
|
15752
15809
|
/**
|
|
15753
|
-
* Disables the specified
|
|
15810
|
+
* Disables the specified RSI point.
|
|
15754
15811
|
*
|
|
15755
|
-
* @param rsiNumber the
|
|
15812
|
+
* @param rsiNumber the RSI point extension number
|
|
15813
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
15756
15814
|
*/
|
|
15757
15815
|
async disableRsiPoint(rsiNumber) {
|
|
15758
15816
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").disableRsiPoint(rsiNumber);
|
|
15759
15817
|
}
|
|
15760
15818
|
/**
|
|
15761
|
-
* Starts a digits collection
|
|
15819
|
+
* Starts a digits collection on the specified RSI point, for the specified call.
|
|
15762
15820
|
*
|
|
15763
|
-
* @param rsiNumber the
|
|
15821
|
+
* @param rsiNumber the RSI point extension number
|
|
15764
15822
|
* @param callRef the call reference
|
|
15765
|
-
* @param numChars the
|
|
15766
|
-
*
|
|
15767
|
-
*
|
|
15768
|
-
* @param flushChar the optional character used to stop the digit
|
|
15769
|
-
* collection when pressed.
|
|
15770
|
-
* @param timeout optional timeout in second. Stop the digit
|
|
15771
|
-
* collection after this time elapses.
|
|
15823
|
+
* @param numChars the optional number of digits to collect; the digit collection stops when this number is reached
|
|
15824
|
+
* @param flushChar the optional character that stops the digit collection when pressed
|
|
15825
|
+
* @param timeout the optional timeout in seconds; the digit collection stops when this delay elapses
|
|
15772
15826
|
* @param additionalCriteria extension criteria used to collect digits
|
|
15827
|
+
* @returns a unique identifier (Crid) for this digit collection session, or `null` in case of error.
|
|
15773
15828
|
* @see {@link ON_DIGIT_COLLECTED} event
|
|
15774
15829
|
* @see {@link stopCollectDigits}
|
|
15775
15830
|
*/
|
|
@@ -15777,11 +15832,12 @@ class Rsi extends events_1.default {
|
|
|
15777
15832
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").startCollectDigits(rsiNumber, callRef, numChars, flushChar, timeout, additionalCriteria);
|
|
15778
15833
|
}
|
|
15779
15834
|
/**
|
|
15780
|
-
* Stops the specified digits collection.
|
|
15835
|
+
* Stops the specified digits collection on the specified RSI point.
|
|
15781
15836
|
*
|
|
15782
|
-
* @param rsiNumber the
|
|
15783
|
-
* @param
|
|
15784
|
-
* @
|
|
15837
|
+
* @param rsiNumber the RSI point extension number
|
|
15838
|
+
* @param collCrid the digit collection identifier returned by {@link startCollectDigits}
|
|
15839
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
15840
|
+
* @see {@link startCollectDigits}
|
|
15785
15841
|
*/
|
|
15786
15842
|
async stopCollectDigits(rsiNumber, collCrid) {
|
|
15787
15843
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").stopCollectDigits(rsiNumber, collCrid);
|
|
@@ -15789,22 +15845,24 @@ class Rsi extends events_1.default {
|
|
|
15789
15845
|
/**
|
|
15790
15846
|
* Plays the specified tone on the specified call.
|
|
15791
15847
|
*
|
|
15792
|
-
* @param rsiNumber the
|
|
15848
|
+
* @param rsiNumber the RSI point extension number
|
|
15793
15849
|
* @param callRef the call reference
|
|
15794
15850
|
* @param tone the tone to play
|
|
15795
|
-
* @param duration the duration the tone is played
|
|
15796
|
-
* @
|
|
15797
|
-
* @see {@link
|
|
15851
|
+
* @param duration the duration the tone is played, in seconds
|
|
15852
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
15853
|
+
* @see {@link ON_TONE_GENERATED_START} event
|
|
15854
|
+
* @see {@link cancelTone}
|
|
15798
15855
|
*/
|
|
15799
15856
|
async playTone(rsiNumber, callRef, tone, duration) {
|
|
15800
15857
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").playTone(rsiNumber, callRef, tone, duration);
|
|
15801
15858
|
}
|
|
15802
15859
|
/**
|
|
15803
|
-
* Cancels
|
|
15860
|
+
* Cancels the tone currently playing on the specified call.
|
|
15804
15861
|
*
|
|
15805
|
-
* @param rsiNumber the
|
|
15862
|
+
* @param rsiNumber the RSI point extension number
|
|
15806
15863
|
* @param callRef the call reference
|
|
15807
|
-
* @
|
|
15864
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
15865
|
+
* @see {@link ON_TONE_GENERATED_STOP} event
|
|
15808
15866
|
* @see {@link playTone}
|
|
15809
15867
|
*/
|
|
15810
15868
|
async cancelTone(rsiNumber, callRef) {
|
|
@@ -15813,53 +15871,59 @@ class Rsi extends events_1.default {
|
|
|
15813
15871
|
/**
|
|
15814
15872
|
* Plays the specified voice guide on the specified call.
|
|
15815
15873
|
*
|
|
15816
|
-
* @param rsiNumber the
|
|
15874
|
+
* @param rsiNumber the RSI point extension number
|
|
15817
15875
|
* @param callRef the call reference
|
|
15818
|
-
* @param guideNumber the voice guide number as defined in the
|
|
15819
|
-
*
|
|
15820
|
-
* @
|
|
15876
|
+
* @param guideNumber the voice guide number as defined in the OmniPCX Enterprise
|
|
15877
|
+
* @param duration an optional duration for the voice guide, in seconds
|
|
15878
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
15821
15879
|
* @see {@link ON_TONE_GENERATED_START}
|
|
15822
15880
|
*/
|
|
15823
15881
|
async playVoiceGuide(rsiNumber, callRef, guideNumber, duration = null) {
|
|
15824
15882
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").playVoiceGuide(rsiNumber, callRef, guideNumber, duration);
|
|
15825
15883
|
}
|
|
15826
15884
|
/**
|
|
15827
|
-
* Ends a route session.
|
|
15885
|
+
* Ends a route session, indicating that no route will be selected.
|
|
15828
15886
|
*
|
|
15829
|
-
* @param rsiNumber the
|
|
15887
|
+
* @param rsiNumber the RSI point extension number
|
|
15830
15888
|
* @param routeCrid the routing session unique identifier
|
|
15831
|
-
* @
|
|
15889
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
15890
|
+
* @see {@link ON_ROUTE_REQUEST} event
|
|
15832
15891
|
*/
|
|
15833
15892
|
async routeEnd(rsiNumber, routeCrid) {
|
|
15834
15893
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").routeEnd(rsiNumber, routeCrid);
|
|
15835
15894
|
}
|
|
15836
15895
|
/**
|
|
15837
|
-
* Selects a route
|
|
15838
|
-
*
|
|
15896
|
+
* Selects a route as a response to a route request.
|
|
15897
|
+
* <p>
|
|
15898
|
+
* `callingLine` can be used to change the identity of the calling number presented to the called party.
|
|
15899
|
+
*
|
|
15900
|
+
* @param rsiNumber the RSI point extension number
|
|
15839
15901
|
* @param routeCrid the routing session unique identifier
|
|
15840
15902
|
* @param selectedRoute the selected route number
|
|
15841
|
-
* @param callingLine an optional calling line
|
|
15842
|
-
*
|
|
15843
|
-
* @param
|
|
15844
|
-
* @
|
|
15845
|
-
* @see {@link ON_ROUTE_REQUEST} event
|
|
15903
|
+
* @param callingLine an optional calling line number that will be presented to the selected route
|
|
15904
|
+
* @param associatedData optional correlator data to attach to the call
|
|
15905
|
+
* @param routeToVoiceMail `true` if the selected route is the voice mail; `false` otherwise
|
|
15906
|
+
* @returns `true` in case of success; `false` otherwise.
|
|
15907
|
+
* @see {@link ON_ROUTE_REQUEST} event
|
|
15846
15908
|
*/
|
|
15847
15909
|
async routeSelect(rsiNumber, routeCrid, selectedRoute, callingLine = null, associatedData = null, routeToVoiceMail = null) {
|
|
15848
15910
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").routeSelect(rsiNumber, routeCrid, selectedRoute, callingLine, associatedData, routeToVoiceMail);
|
|
15849
15911
|
}
|
|
15850
15912
|
/**
|
|
15851
|
-
* Gets the list of existing route sessions for the specified
|
|
15913
|
+
* Gets the list of existing route sessions for the specified RSI point.
|
|
15852
15914
|
*
|
|
15853
|
-
* @param rsiNumber the
|
|
15915
|
+
* @param rsiNumber the RSI point extension number
|
|
15916
|
+
* @returns the list of {@link RouteSession} objects representing the route sessions in progress, or `null` in case of error.
|
|
15854
15917
|
*/
|
|
15855
15918
|
async getRouteSessions(rsiNumber) {
|
|
15856
15919
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").getRouteSessions(rsiNumber);
|
|
15857
15920
|
}
|
|
15858
15921
|
/**
|
|
15859
|
-
*
|
|
15922
|
+
* Returns the specified route session.
|
|
15860
15923
|
*
|
|
15861
|
-
* @param rsiNumber the
|
|
15924
|
+
* @param rsiNumber the RSI point extension number
|
|
15862
15925
|
* @param routeCrid the routing session unique identifier
|
|
15926
|
+
* @returns the {@link RouteSession} object on success; `null` in case of error or if no such route session exists.
|
|
15863
15927
|
*/
|
|
15864
15928
|
async getRouteSession(rsiNumber, routeCrid) {
|
|
15865
15929
|
return __classPrivateFieldGet(this, _Rsi_rsiRest, "f").getRouteSession(rsiNumber, routeCrid);
|
|
@@ -15868,27 +15932,27 @@ class Rsi extends events_1.default {
|
|
|
15868
15932
|
exports.Rsi = Rsi;
|
|
15869
15933
|
_Rsi_rsiRest = new WeakMap();
|
|
15870
15934
|
/**
|
|
15871
|
-
*
|
|
15935
|
+
* Raised when a digit collection session has ended.
|
|
15872
15936
|
* @event
|
|
15873
15937
|
*/
|
|
15874
15938
|
Rsi.ON_DIGIT_COLLECTED = 'OnDigitCollected';
|
|
15875
15939
|
/**
|
|
15876
|
-
* Raised from
|
|
15940
|
+
* Raised from an RSI point when a tone generation starts.
|
|
15877
15941
|
* @event
|
|
15878
15942
|
*/
|
|
15879
15943
|
Rsi.ON_TONE_GENERATED_START = 'OnToneGeneratedStart';
|
|
15880
15944
|
/**
|
|
15881
|
-
* Raised from
|
|
15945
|
+
* Raised from an RSI point when a tone generation stops.
|
|
15882
15946
|
* @event
|
|
15883
15947
|
*/
|
|
15884
15948
|
Rsi.ON_TONE_GENERATED_STOP = 'OnToneGeneratedStop';
|
|
15885
15949
|
/**
|
|
15886
|
-
* Raised from a
|
|
15950
|
+
* Raised from a routing point to close a route session (the routing Crid is no longer valid).
|
|
15887
15951
|
* @event
|
|
15888
15952
|
*/
|
|
15889
15953
|
Rsi.ON_ROUTE_END = 'OnRouteEnd';
|
|
15890
15954
|
/**
|
|
15891
|
-
* Raised from a
|
|
15955
|
+
* Raised from a routing point to request a route selection.
|
|
15892
15956
|
* @event
|
|
15893
15957
|
*/
|
|
15894
15958
|
Rsi.ON_ROUTE_REQUEST = 'OnRouteRequest';
|
|
@@ -15942,13 +16006,12 @@ exports.Telephony = void 0;
|
|
|
15942
16006
|
const events_1 = __importDefault(__webpack_require__(/*! events */ "events"));
|
|
15943
16007
|
const telephony_events_1 = __webpack_require__(/*! ../types/telephony/telephony-events */ "./src/types/telephony/telephony-events.ts");
|
|
15944
16008
|
/**
|
|
15945
|
-
* The TelephonyService allows a user to initiate
|
|
16009
|
+
* The TelephonyService allows a user to initiate calls and activate
|
|
15946
16010
|
* any kind of OmniPCX Enterprise telephony services.
|
|
15947
16011
|
* <p>
|
|
15948
|
-
* Using this service requires
|
|
15949
|
-
*
|
|
15950
|
-
* {@link
|
|
15951
|
-
* license.
|
|
16012
|
+
* Using this service requires a <b>TELEPHONY_ADVANCED</b> license, except for
|
|
16013
|
+
* the three basic services {@link basicMakeCall}, {@link basicAnswerCall} and
|
|
16014
|
+
* {@link basicDropMe}, which are available without any license.
|
|
15952
16015
|
*/
|
|
15953
16016
|
class Telephony extends events_1.default {
|
|
15954
16017
|
/**
|
|
@@ -15967,17 +16030,20 @@ class Telephony extends events_1.default {
|
|
|
15967
16030
|
eventRegistry.register(this, Telephony.ON_DYNAMIC_STATE_CHANGED, telephony_events_1.OnDynamicStateChanged);
|
|
15968
16031
|
}
|
|
15969
16032
|
/**
|
|
15970
|
-
* Initiates a call from the specified device to the specified called number.
|
|
16033
|
+
* Initiates a basic call from the specified device to the specified called number.
|
|
16034
|
+
* <p>
|
|
16035
|
+
* This method does not require a license.
|
|
15971
16036
|
* <p>
|
|
15972
16037
|
* If the session is opened by a user, the device phone number must be one of
|
|
15973
16038
|
* the user's devices.
|
|
15974
16039
|
* <p>
|
|
15975
|
-
* If `autoAnswer` is set to `false`, the
|
|
15976
|
-
* the call to the callee; otherwise the callee is called immediately.
|
|
16040
|
+
* If `autoAnswer` is set to `false`, the user's device is called first before
|
|
16041
|
+
* placing the call to the callee; otherwise the callee is called immediately.
|
|
15977
16042
|
*
|
|
15978
|
-
* @param deviceId the device phone number
|
|
15979
|
-
* @param callee the called number
|
|
15980
|
-
* @param autoAnswer
|
|
16043
|
+
* @param deviceId the device phone number used to place the call
|
|
16044
|
+
* @param callee the called phone number
|
|
16045
|
+
* @param autoAnswer if `true`, the callee is called immediately; if `false`,
|
|
16046
|
+
* the user's device is called first before placing the call to the callee
|
|
15981
16047
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
15982
16048
|
*/
|
|
15983
16049
|
async basicMakeCall(deviceId, callee, autoAnswer = true) {
|
|
@@ -15986,24 +16052,28 @@ class Telephony extends events_1.default {
|
|
|
15986
16052
|
/**
|
|
15987
16053
|
* Answers an incoming ringing call on the specified device.
|
|
15988
16054
|
* <p>
|
|
16055
|
+
* This method does not require a license.
|
|
16056
|
+
* <p>
|
|
15989
16057
|
* If the session is opened by a user, the device phone number must be one of
|
|
15990
16058
|
* the user's devices.
|
|
15991
16059
|
*
|
|
15992
|
-
* @param deviceId the device phone number
|
|
16060
|
+
* @param deviceId the device phone number on which to answer
|
|
15993
16061
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
15994
16062
|
*/
|
|
15995
16063
|
async basicAnswerCall(deviceId) {
|
|
15996
16064
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").basicAnswerCall(deviceId);
|
|
15997
16065
|
}
|
|
15998
16066
|
/**
|
|
15999
|
-
* Exits from the call for the specified user.
|
|
16067
|
+
* Exits from the current call for the specified user.
|
|
16000
16068
|
* <p>
|
|
16001
|
-
*
|
|
16002
|
-
* ignored, but it is mandatory if the session has been opened by an
|
|
16003
|
-
* administrator.
|
|
16069
|
+
* This method does not require a license.
|
|
16004
16070
|
* <p>
|
|
16005
16071
|
* If the call is a single call, it is released; if it is a conference, the call
|
|
16006
16072
|
* carries on without the user.
|
|
16073
|
+
* <p>
|
|
16074
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
16075
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
16076
|
+
* administrator.
|
|
16007
16077
|
*
|
|
16008
16078
|
* @param loginName the login name for whom the drop is done
|
|
16009
16079
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
@@ -16012,7 +16082,7 @@ class Telephony extends events_1.default {
|
|
|
16012
16082
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").basicDropMe(loginName);
|
|
16013
16083
|
}
|
|
16014
16084
|
/**
|
|
16015
|
-
* Retrieves the calls in progress for the specified user.
|
|
16085
|
+
* Retrieves the calls currently in progress for the specified user.
|
|
16016
16086
|
* <p>
|
|
16017
16087
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16018
16088
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16020,20 +16090,21 @@ class Telephony extends events_1.default {
|
|
|
16020
16090
|
*
|
|
16021
16091
|
* @param loginName the login name
|
|
16022
16092
|
* @returns the list of active {@link Call} objects on success; `null` otherwise.
|
|
16093
|
+
* @see getCall
|
|
16023
16094
|
*/
|
|
16024
16095
|
async getCalls(loginName = null) {
|
|
16025
16096
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getCalls(loginName);
|
|
16026
16097
|
}
|
|
16027
16098
|
/**
|
|
16028
|
-
* Returns the call
|
|
16099
|
+
* Returns the call identified by the specified reference for the specified user.
|
|
16029
16100
|
* <p>
|
|
16030
16101
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16031
16102
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16032
16103
|
* administrator.
|
|
16033
16104
|
*
|
|
16034
|
-
* @param callRef the call reference
|
|
16105
|
+
* @param callRef the unique call reference
|
|
16035
16106
|
* @param loginName the login name
|
|
16036
|
-
* @returns the {@link Call} on success; `null`
|
|
16107
|
+
* @returns the {@link Call} on success; `null` if not found.
|
|
16037
16108
|
*/
|
|
16038
16109
|
async getCall(callRef, loginName = null) {
|
|
16039
16110
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getCall(callRef, loginName);
|
|
@@ -16046,12 +16117,14 @@ class Telephony extends events_1.default {
|
|
|
16046
16117
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16047
16118
|
* administrator.
|
|
16048
16119
|
* <p>
|
|
16049
|
-
* If `autoAnswer` is set to `false`, the
|
|
16050
|
-
* the call to the callee; otherwise the callee is called immediately.
|
|
16051
|
-
*
|
|
16052
|
-
* @param deviceId the device phone number
|
|
16053
|
-
*
|
|
16054
|
-
* @param
|
|
16120
|
+
* If `autoAnswer` is set to `false`, the user's device is called first before
|
|
16121
|
+
* placing the call to the callee; otherwise the callee is called immediately.
|
|
16122
|
+
*
|
|
16123
|
+
* @param deviceId the device phone number from which the call is placed; if the
|
|
16124
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16125
|
+
* @param callee the called phone number
|
|
16126
|
+
* @param autoAnswer if `true`, the callee is called immediately; if `false`,
|
|
16127
|
+
* the user's device is called first before placing the call to the callee
|
|
16055
16128
|
* @param loginName the login name
|
|
16056
16129
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16057
16130
|
*/
|
|
@@ -16059,43 +16132,28 @@ class Telephony extends events_1.default {
|
|
|
16059
16132
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").makeCall(deviceId, callee, autoAnswer, loginName);
|
|
16060
16133
|
}
|
|
16061
16134
|
/**
|
|
16062
|
-
* Initiates a
|
|
16135
|
+
* Initiates a call from the specified device to the specified called number,
|
|
16136
|
+
* with extended options.
|
|
16063
16137
|
* <p>
|
|
16064
16138
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16065
16139
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16066
16140
|
* administrator.
|
|
16067
16141
|
* <p>
|
|
16068
|
-
*
|
|
16069
|
-
*
|
|
16070
|
-
* {@link ON_CALL_CREATED} event is raised.
|
|
16071
|
-
* <p>
|
|
16072
|
-
* If `inhibitProgressTone` is `true`, the progress tone is inhibited on the outbound call.
|
|
16142
|
+
* If `autoAnswer` is set to `false`, the user's device is called first before
|
|
16143
|
+
* placing the call to the callee; otherwise the callee is called immediately.
|
|
16073
16144
|
* <p>
|
|
16074
|
-
* The `callingNumber` can be used to present a different calling number on the
|
|
16075
|
-
* network in order to
|
|
16076
|
-
*
|
|
16077
|
-
*
|
|
16078
|
-
*
|
|
16079
|
-
*
|
|
16080
|
-
*
|
|
16081
|
-
*
|
|
16082
|
-
*
|
|
16083
|
-
*
|
|
16084
|
-
*
|
|
16085
|
-
*
|
|
16086
|
-
* const correlatorData = new CorrelatorData("transactionId=abc123");
|
|
16087
|
-
* await O2G.telephony.makeCallEx("1234", "5678", true, false, correlatorData);
|
|
16088
|
-
*
|
|
16089
|
-
* // Administrator making a call on behalf of a user
|
|
16090
|
-
* await O2G.telephony.makeCallEx("1234", "5678", true, false, null, null, "jdoe");
|
|
16091
|
-
* ```
|
|
16092
|
-
*
|
|
16093
|
-
* @param deviceId the device phone number for which the call is made
|
|
16094
|
-
* @param callee the called number
|
|
16095
|
-
* @param autoAnswer automatic answer on make call
|
|
16096
|
-
* @param inhibitProgressTone allows to inhibit the progress tone on the current external call
|
|
16097
|
-
* @param correlatorData correlator data to add to the call
|
|
16098
|
-
* @param callingNumber calling number to present to the public network
|
|
16145
|
+
* The `callingNumber` can be used to present a different calling number on the
|
|
16146
|
+
* public network in order to mask the real calling extension number.
|
|
16147
|
+
*
|
|
16148
|
+
* @param deviceId the device phone number from which the call is placed; if the
|
|
16149
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16150
|
+
* @param callee the called phone number
|
|
16151
|
+
* @param autoAnswer if `true`, the callee is called immediately; if `false`,
|
|
16152
|
+
* the user's device is called first before placing the call to the callee
|
|
16153
|
+
* @param inhibitProgressTone `true` to inhibit the progress tone on the outbound call
|
|
16154
|
+
* @param correlatorData correlator data to attach to the call
|
|
16155
|
+
* @param callingNumber optional calling number to present to the public network, used to mask
|
|
16156
|
+
* the real calling extension number
|
|
16099
16157
|
* @param loginName the login name
|
|
16100
16158
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16101
16159
|
*/
|
|
@@ -16103,23 +16161,19 @@ class Telephony extends events_1.default {
|
|
|
16103
16161
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").makeCallEx(deviceId, callee, autoAnswer, inhibitProgressTone, correlatorData, callingNumber, loginName);
|
|
16104
16162
|
}
|
|
16105
16163
|
/**
|
|
16106
|
-
* Initiates a
|
|
16164
|
+
* Initiates a private call to the specified callee, identified by a PIN code.
|
|
16165
|
+
* <p>
|
|
16166
|
+
* A private call allows the user to flag a call as personal rather than
|
|
16167
|
+
* professional, enabling specific charging processing.
|
|
16107
16168
|
* <p>
|
|
16108
16169
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16109
16170
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16110
16171
|
* administrator.
|
|
16111
|
-
* <p>
|
|
16112
|
-
* The private call service allows a user to specify that an external call is personal
|
|
16113
|
-
* rather than professional. The charging for this type of call can then be given
|
|
16114
|
-
* specific processing.
|
|
16115
|
-
* <p>
|
|
16116
|
-
* First, the call server initiates a call on the user's `deviceId`. Then when the
|
|
16117
|
-
* call is answered the call server starts the call to the `callee`, and an
|
|
16118
|
-
* {@link ON_CALL_CREATED} event is raised.
|
|
16119
16172
|
*
|
|
16120
|
-
* @param deviceId the device phone number
|
|
16121
|
-
*
|
|
16122
|
-
* @param
|
|
16173
|
+
* @param deviceId the device phone number from which the call is placed; if the
|
|
16174
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16175
|
+
* @param callee the called phone number
|
|
16176
|
+
* @param pin the PIN code identifying the caller
|
|
16123
16177
|
* @param secretCode the optional secret code used to confirm the PIN code
|
|
16124
16178
|
* @param loginName the login name
|
|
16125
16179
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
@@ -16128,19 +16182,17 @@ class Telephony extends events_1.default {
|
|
|
16128
16182
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").makePrivateCall(deviceId, callee, pin, secretCode, loginName);
|
|
16129
16183
|
}
|
|
16130
16184
|
/**
|
|
16131
|
-
* Initiates a
|
|
16185
|
+
* Initiates a business call to the specified callee, charged to the specified
|
|
16186
|
+
* cost center.
|
|
16132
16187
|
* <p>
|
|
16133
16188
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16134
16189
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16135
16190
|
* administrator.
|
|
16136
|
-
* <p>
|
|
16137
|
-
* First, the call server initiates a call on the user's `deviceId`. Then when the
|
|
16138
|
-
* call is answered the call server starts the call to the `callee`, and an
|
|
16139
|
-
* {@link ON_CALL_CREATED} event is raised.
|
|
16140
16191
|
*
|
|
16141
|
-
* @param deviceId the device phone number
|
|
16142
|
-
*
|
|
16143
|
-
* @param
|
|
16192
|
+
* @param deviceId the device phone number from which the call is placed; if the
|
|
16193
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16194
|
+
* @param callee the called phone number
|
|
16195
|
+
* @param businessCode the cost center code to charge the call to
|
|
16144
16196
|
* @param loginName the login name
|
|
16145
16197
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16146
16198
|
*/
|
|
@@ -16148,18 +16200,16 @@ class Telephony extends events_1.default {
|
|
|
16148
16200
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").makeBusinessCall(deviceId, callee, businessCode, loginName);
|
|
16149
16201
|
}
|
|
16150
16202
|
/**
|
|
16151
|
-
* Initiates a call from a CCD agent to
|
|
16203
|
+
* Initiates a call from a CCD agent to their supervisor.
|
|
16152
16204
|
* <p>
|
|
16153
16205
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16154
16206
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16155
16207
|
* administrator.
|
|
16156
|
-
* <p>
|
|
16157
|
-
* First, the call server initiates a call on the agent's `deviceId`. Then when
|
|
16158
|
-
* the call is answered the call server calls the supervisor, and an
|
|
16159
|
-
* {@link ON_CALL_CREATED} event is raised.
|
|
16160
16208
|
*
|
|
16161
|
-
* @param deviceId the device phone number
|
|
16162
|
-
*
|
|
16209
|
+
* @param deviceId the device phone number from which the call is placed; if the
|
|
16210
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16211
|
+
* @param autoAnswer if `true`, the supervisor is called immediately; if `false`,
|
|
16212
|
+
* the agent's device is called first
|
|
16163
16213
|
* @param loginName the login name
|
|
16164
16214
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16165
16215
|
*/
|
|
@@ -16167,20 +16217,23 @@ class Telephony extends events_1.default {
|
|
|
16167
16217
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").makeSupervisorCall(deviceId, autoAnswer, loginName);
|
|
16168
16218
|
}
|
|
16169
16219
|
/**
|
|
16170
|
-
* Initiates
|
|
16220
|
+
* Initiates a supervised transfer enquiry call from a CCD agent to a pilot or
|
|
16221
|
+
* a RSI point.
|
|
16222
|
+
* <p>
|
|
16223
|
+
* The CCD pilot or the RSI point performs call distribution to select an agent
|
|
16224
|
+
* that will be alerted. The `callProfile` is mandatory when the
|
|
16225
|
+
* <em>Advanced Call Routing</em> distribution strategy is configured.
|
|
16171
16226
|
* <p>
|
|
16172
16227
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16173
16228
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16174
16229
|
* administrator.
|
|
16175
|
-
* <p>
|
|
16176
|
-
* The CCD pilot or the RSI point performs a call distribution to select an agent
|
|
16177
|
-
* that will be alerted by this call. The `callProfile` is mandatory in case of
|
|
16178
|
-
* "Advanced Call Routing" call distribution strategy.
|
|
16179
16230
|
*
|
|
16180
|
-
* @param deviceId the device phone number
|
|
16181
|
-
*
|
|
16182
|
-
* @param
|
|
16183
|
-
* @param
|
|
16231
|
+
* @param deviceId the device phone number from which the call is placed; if the
|
|
16232
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16233
|
+
* @param pilot the CCD pilot or RSI point number to call
|
|
16234
|
+
* @param correlatorData optional correlator data to attach to the call
|
|
16235
|
+
* @param callProfile the call profile associated to this call; mandatory when the
|
|
16236
|
+
* <em>Advanced Call Routing</em> distribution strategy is in use
|
|
16184
16237
|
* @param loginName the login name
|
|
16185
16238
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16186
16239
|
*/
|
|
@@ -16190,19 +16243,22 @@ class Telephony extends events_1.default {
|
|
|
16190
16243
|
/**
|
|
16191
16244
|
* Initiates a local call to a CCD pilot or a RSI point.
|
|
16192
16245
|
* <p>
|
|
16246
|
+
* The CCD pilot or the RSI point performs call distribution to select an agent
|
|
16247
|
+
* that will be alerted. The `callProfile` is mandatory when the
|
|
16248
|
+
* <em>Advanced Call Routing</em> distribution strategy is configured.
|
|
16249
|
+
* <p>
|
|
16193
16250
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16194
16251
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16195
16252
|
* administrator.
|
|
16196
|
-
* <p>
|
|
16197
|
-
* The CCD pilot or the RSI point performs a call distribution to select an agent
|
|
16198
|
-
* that will be alerted by this call. The `callProfile` is mandatory in case of
|
|
16199
|
-
* "Advanced Call Routing" call distribution strategy.
|
|
16200
16253
|
*
|
|
16201
|
-
* @param deviceId the device phone number
|
|
16202
|
-
*
|
|
16203
|
-
* @param
|
|
16204
|
-
* @param
|
|
16205
|
-
*
|
|
16254
|
+
* @param deviceId the device phone number from which the call is placed; if the
|
|
16255
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16256
|
+
* @param pilot the CCD pilot or RSI point number to call
|
|
16257
|
+
* @param autoAnswer if `true`, the pilot is called immediately; if `false`,
|
|
16258
|
+
* the user's device is called first
|
|
16259
|
+
* @param correlatorData optional correlator data to attach to the call
|
|
16260
|
+
* @param callProfile the call profile associated to this call; mandatory when the
|
|
16261
|
+
* <em>Advanced Call Routing</em> distribution strategy is in use
|
|
16206
16262
|
* @param loginName the login name
|
|
16207
16263
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16208
16264
|
*/
|
|
@@ -16210,15 +16266,16 @@ class Telephony extends events_1.default {
|
|
|
16210
16266
|
return null;
|
|
16211
16267
|
}
|
|
16212
16268
|
/**
|
|
16213
|
-
*
|
|
16269
|
+
* Releases the specified call; all parties are disconnected.
|
|
16214
16270
|
* <p>
|
|
16215
16271
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16216
16272
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16217
16273
|
* administrator.
|
|
16218
16274
|
*
|
|
16219
|
-
* @param callRef the call reference
|
|
16275
|
+
* @param callRef the call reference
|
|
16220
16276
|
* @param loginName the login name
|
|
16221
16277
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16278
|
+
* @see dropme
|
|
16222
16279
|
*/
|
|
16223
16280
|
async release(callRef, loginName = null) {
|
|
16224
16281
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").release(callRef, loginName);
|
|
@@ -16230,8 +16287,8 @@ class Telephony extends events_1.default {
|
|
|
16230
16287
|
* If the session is opened by a user, the device phone number must be one of
|
|
16231
16288
|
* the user's devices.
|
|
16232
16289
|
*
|
|
16233
|
-
* @param callRef the call reference of the call
|
|
16234
|
-
* @param deviceId the device phone number for which the operation is
|
|
16290
|
+
* @param callRef the call reference of the active call
|
|
16291
|
+
* @param deviceId the device phone number for which the operation is performed
|
|
16235
16292
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16236
16293
|
*/
|
|
16237
16294
|
async alternate(callRef, deviceId) {
|
|
@@ -16248,7 +16305,7 @@ class Telephony extends events_1.default {
|
|
|
16248
16305
|
* checking the capabilities of the involved leg (answer capability on the leg).
|
|
16249
16306
|
*
|
|
16250
16307
|
* @param callRef the call reference of the ringing call
|
|
16251
|
-
* @param deviceId the device phone number for which the operation is
|
|
16308
|
+
* @param deviceId the device phone number for which the operation is performed
|
|
16252
16309
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16253
16310
|
*/
|
|
16254
16311
|
async answer(callRef, deviceId) {
|
|
@@ -16258,11 +16315,12 @@ class Telephony extends events_1.default {
|
|
|
16258
16315
|
* Attaches the specified correlator data to the specified call.
|
|
16259
16316
|
* <p>
|
|
16260
16317
|
* This is used by the application to provide application-related information
|
|
16261
|
-
* (limited to 32 bytes). In general, it is used to
|
|
16262
|
-
*
|
|
16318
|
+
* (limited to 32 bytes). In general, it is used to convey context from a
|
|
16319
|
+
* previously established call to the party of a second call.
|
|
16263
16320
|
*
|
|
16264
16321
|
* @param callRef the call reference
|
|
16265
|
-
* @param deviceId the device phone number for which the operation is
|
|
16322
|
+
* @param deviceId the device phone number for which the operation is performed;
|
|
16323
|
+
* if the session is opened by a user, this must be one of the user's devices
|
|
16266
16324
|
* @param correlatorData the correlator data to attach
|
|
16267
16325
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16268
16326
|
*/
|
|
@@ -16270,15 +16328,15 @@ class Telephony extends events_1.default {
|
|
|
16270
16328
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").attachData(callRef, deviceId, correlatorData);
|
|
16271
16329
|
}
|
|
16272
16330
|
/**
|
|
16273
|
-
* Transfers the active call to another
|
|
16331
|
+
* Transfers the active call to another party without keeping control of the call.
|
|
16274
16332
|
* <p>
|
|
16275
16333
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16276
16334
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16277
16335
|
* administrator.
|
|
16278
16336
|
*
|
|
16279
16337
|
* @param callRef the reference of the active call
|
|
16280
|
-
* @param transferTo the phone number to
|
|
16281
|
-
* @param anonymous if `true`, the call
|
|
16338
|
+
* @param transferTo the phone number to transfer the call to
|
|
16339
|
+
* @param anonymous if `true`, the call is transferred anonymously
|
|
16282
16340
|
* @param loginName the login name
|
|
16283
16341
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16284
16342
|
*/
|
|
@@ -16286,8 +16344,7 @@ class Telephony extends events_1.default {
|
|
|
16286
16344
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").blindTransfer(callRef, transferTo, anonymous, loginName);
|
|
16287
16345
|
}
|
|
16288
16346
|
/**
|
|
16289
|
-
* Requests a callback on the
|
|
16290
|
-
* specified user.
|
|
16347
|
+
* Requests a callback on the specified call.
|
|
16291
16348
|
* <p>
|
|
16292
16349
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16293
16350
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16301,8 +16358,7 @@ class Telephony extends events_1.default {
|
|
|
16301
16358
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").callback(callRef, loginName);
|
|
16302
16359
|
}
|
|
16303
16360
|
/**
|
|
16304
|
-
* Returns the legs
|
|
16305
|
-
* specified user.
|
|
16361
|
+
* Returns the legs associated to the specified call.
|
|
16306
16362
|
* <p>
|
|
16307
16363
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16308
16364
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16311,13 +16367,13 @@ class Telephony extends events_1.default {
|
|
|
16311
16367
|
* @param callRef the call reference
|
|
16312
16368
|
* @param loginName the login name
|
|
16313
16369
|
* @returns the list of {@link Leg} objects on success; `null` otherwise.
|
|
16370
|
+
* @see getLeg
|
|
16314
16371
|
*/
|
|
16315
16372
|
async getLegs(callRef, loginName = null) {
|
|
16316
16373
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getLegs(callRef, loginName);
|
|
16317
16374
|
}
|
|
16318
16375
|
/**
|
|
16319
|
-
* Returns the
|
|
16320
|
-
* call reference for the specified user.
|
|
16376
|
+
* Returns the specified leg of the specified call.
|
|
16321
16377
|
* <p>
|
|
16322
16378
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16323
16379
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16326,20 +16382,21 @@ class Telephony extends events_1.default {
|
|
|
16326
16382
|
* @param callRef the call reference
|
|
16327
16383
|
* @param legId the leg identifier
|
|
16328
16384
|
* @param loginName the login name
|
|
16329
|
-
* @returns the {@link Leg} on success; `null`
|
|
16385
|
+
* @returns the {@link Leg} with the given identifier on success; `null` if not found.
|
|
16386
|
+
* @see getLegs
|
|
16330
16387
|
*/
|
|
16331
16388
|
async getLeg(callRef, legId, loginName = null) {
|
|
16332
16389
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getLeg(callRef, legId, loginName);
|
|
16333
16390
|
}
|
|
16334
16391
|
/**
|
|
16335
|
-
* Exits from the
|
|
16392
|
+
* Exits from the specified call for the specified user.
|
|
16393
|
+
* <p>
|
|
16394
|
+
* If the call is a single call, it is released; if it is a conference, the call
|
|
16395
|
+
* carries on without the user.
|
|
16336
16396
|
* <p>
|
|
16337
16397
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16338
16398
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16339
16399
|
* administrator.
|
|
16340
|
-
* <p>
|
|
16341
|
-
* If the call is a single call, it is released; if it is a conference, the call
|
|
16342
|
-
* carries on without the user.
|
|
16343
16400
|
*
|
|
16344
16401
|
* @param callRef the call reference
|
|
16345
16402
|
* @param loginName the login name for whom the drop is done
|
|
@@ -16349,24 +16406,24 @@ class Telephony extends events_1.default {
|
|
|
16349
16406
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").dropme(callRef, loginName);
|
|
16350
16407
|
}
|
|
16351
16408
|
/**
|
|
16352
|
-
* Puts
|
|
16353
|
-
* for the specified user.
|
|
16409
|
+
* Puts the specified call on hold on the specified device.
|
|
16354
16410
|
* <p>
|
|
16355
16411
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16356
16412
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16357
16413
|
* administrator.
|
|
16358
16414
|
*
|
|
16359
16415
|
* @param callRef the call reference
|
|
16360
|
-
* @param deviceId the device phone number from which the
|
|
16416
|
+
* @param deviceId the device phone number from which the hold is requested; if the
|
|
16417
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16361
16418
|
* @param loginName the login name
|
|
16362
16419
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16420
|
+
* @see retrieve
|
|
16363
16421
|
*/
|
|
16364
16422
|
async hold(callRef, deviceId, loginName = null) {
|
|
16365
16423
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").hold(callRef, deviceId, loginName);
|
|
16366
16424
|
}
|
|
16367
16425
|
/**
|
|
16368
|
-
*
|
|
16369
|
-
* call for the specified user.
|
|
16426
|
+
* Creates a 3-party conference from the specified active call and a held call.
|
|
16370
16427
|
* <p>
|
|
16371
16428
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16372
16429
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16381,8 +16438,7 @@ class Telephony extends events_1.default {
|
|
|
16381
16438
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").merge(callRef, heldCallRef, loginName);
|
|
16382
16439
|
}
|
|
16383
16440
|
/**
|
|
16384
|
-
* Redirects an outgoing ringing call
|
|
16385
|
-
* mail of the called user.
|
|
16441
|
+
* Redirects an outgoing ringing call to the voice mail of the called user.
|
|
16386
16442
|
* <p>
|
|
16387
16443
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16388
16444
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16396,7 +16452,11 @@ class Telephony extends events_1.default {
|
|
|
16396
16452
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").overflowToVoiceMail(callRef, loginName);
|
|
16397
16453
|
}
|
|
16398
16454
|
/**
|
|
16399
|
-
*
|
|
16455
|
+
* Returns a snapshot of the current telephonic state for the specified user.
|
|
16456
|
+
* <p>
|
|
16457
|
+
* This method performs a synchronous REST query. For an event-driven approach,
|
|
16458
|
+
* use {@link requestSnapshot} instead, which raises an {@link ON_TELEPHONY_STATE}
|
|
16459
|
+
* event asynchronously.
|
|
16400
16460
|
* <p>
|
|
16401
16461
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16402
16462
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16404,29 +16464,32 @@ class Telephony extends events_1.default {
|
|
|
16404
16464
|
*
|
|
16405
16465
|
* @param loginName the login name
|
|
16406
16466
|
* @returns the {@link TelephonicState} on success; `null` otherwise.
|
|
16467
|
+
* @see requestSnapshot
|
|
16407
16468
|
*/
|
|
16408
16469
|
async getState(loginName = null) {
|
|
16409
16470
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getState(loginName);
|
|
16410
16471
|
}
|
|
16411
16472
|
/**
|
|
16412
|
-
* Parks the specified active call
|
|
16473
|
+
* Parks the specified active call on a target device.
|
|
16413
16474
|
* <p>
|
|
16414
|
-
* If
|
|
16475
|
+
* If `parkTo` is not provided, the call is parked on the current device.
|
|
16415
16476
|
* <p>
|
|
16416
16477
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16417
16478
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16418
16479
|
* administrator.
|
|
16419
16480
|
*
|
|
16420
16481
|
* @param callRef the active call reference
|
|
16421
|
-
* @param parkTo the target device, or `null` to park on the
|
|
16482
|
+
* @param parkTo the target device extension number, or `null` to park on the
|
|
16483
|
+
* current device
|
|
16422
16484
|
* @param loginName the login name
|
|
16423
16485
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16486
|
+
* @see unPark
|
|
16424
16487
|
*/
|
|
16425
16488
|
async park(callRef, parkTo = null, loginName = null) {
|
|
16426
16489
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").park(callRef, parkTo, loginName);
|
|
16427
16490
|
}
|
|
16428
16491
|
/**
|
|
16429
|
-
* Returns the
|
|
16492
|
+
* Returns the participants of the specified call.
|
|
16430
16493
|
* <p>
|
|
16431
16494
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16432
16495
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16435,12 +16498,13 @@ class Telephony extends events_1.default {
|
|
|
16435
16498
|
* @param callRef the call reference
|
|
16436
16499
|
* @param loginName the login name
|
|
16437
16500
|
* @returns the list of {@link Participant} objects on success; `null` otherwise.
|
|
16501
|
+
* @see getParticipant
|
|
16438
16502
|
*/
|
|
16439
16503
|
async getParticipants(callRef, loginName = null) {
|
|
16440
16504
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getParticipants(callRef, loginName);
|
|
16441
16505
|
}
|
|
16442
16506
|
/**
|
|
16443
|
-
* Returns the specified participant
|
|
16507
|
+
* Returns the specified participant of the specified call.
|
|
16444
16508
|
* <p>
|
|
16445
16509
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16446
16510
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16449,7 +16513,8 @@ class Telephony extends events_1.default {
|
|
|
16449
16513
|
* @param callRef the call reference
|
|
16450
16514
|
* @param participantId the participant identifier
|
|
16451
16515
|
* @param loginName the login name
|
|
16452
|
-
* @returns the {@link Participant} on success; `null`
|
|
16516
|
+
* @returns the {@link Participant} with the given identifier on success; `null` if not found.
|
|
16517
|
+
* @see getParticipants
|
|
16453
16518
|
*/
|
|
16454
16519
|
async getParticipant(callRef, participantId, loginName = null) {
|
|
16455
16520
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getParticipant(callRef, participantId, loginName);
|
|
@@ -16473,15 +16538,15 @@ class Telephony extends events_1.default {
|
|
|
16473
16538
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").dropParticipant(callRef, participantId, loginName);
|
|
16474
16539
|
}
|
|
16475
16540
|
/**
|
|
16476
|
-
* Releases the current call
|
|
16477
|
-
* hold call, cancelling a consultation call.
|
|
16541
|
+
* Releases the current call to retrieve a previously held call (cancels a consultation call).
|
|
16478
16542
|
* <p>
|
|
16479
16543
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16480
16544
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16481
16545
|
* administrator.
|
|
16482
16546
|
*
|
|
16483
16547
|
* @param callRef the held call reference
|
|
16484
|
-
* @param deviceId the device phone number for which the operation is
|
|
16548
|
+
* @param deviceId the device phone number for which the operation is performed; if the
|
|
16549
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16485
16550
|
* @param enquiryCallRef the reference of the enquiry call to cancel
|
|
16486
16551
|
* @param loginName the login name
|
|
16487
16552
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
@@ -16490,7 +16555,7 @@ class Telephony extends events_1.default {
|
|
|
16490
16555
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").reconnect(callRef, deviceId, enquiryCallRef, loginName);
|
|
16491
16556
|
}
|
|
16492
16557
|
/**
|
|
16493
|
-
* Starts, stops, pauses or resumes the recording of the specified call.
|
|
16558
|
+
* Starts, stops, pauses, or resumes the recording of the specified call.
|
|
16494
16559
|
* <p>
|
|
16495
16560
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16496
16561
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16505,8 +16570,7 @@ class Telephony extends events_1.default {
|
|
|
16505
16570
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").doRecordAction(callRef, action, loginName);
|
|
16506
16571
|
}
|
|
16507
16572
|
/**
|
|
16508
|
-
* Redirects an incoming ringing call to another
|
|
16509
|
-
* responding to it.
|
|
16573
|
+
* Redirects an incoming ringing call to another number or to voice mail.
|
|
16510
16574
|
* <p>
|
|
16511
16575
|
* If `redirectTo` is equal to `"VOICEMAIL"`, the incoming ringing call is
|
|
16512
16576
|
* redirected to the user's voice mail.
|
|
@@ -16516,8 +16580,9 @@ class Telephony extends events_1.default {
|
|
|
16516
16580
|
* administrator.
|
|
16517
16581
|
*
|
|
16518
16582
|
* @param callRef the incoming ringing call reference
|
|
16519
|
-
* @param redirectTo the phone number of the redirection, or `"VOICEMAIL"`
|
|
16520
|
-
*
|
|
16583
|
+
* @param redirectTo the phone number of the redirection, or `"VOICEMAIL"` to redirect
|
|
16584
|
+
* to the user's voice mail
|
|
16585
|
+
* @param anonymous if `true`, the redirect is anonymous and the caller identity is hidden
|
|
16521
16586
|
* @param loginName the login name
|
|
16522
16587
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16523
16588
|
*/
|
|
@@ -16527,12 +16592,16 @@ class Telephony extends events_1.default {
|
|
|
16527
16592
|
/**
|
|
16528
16593
|
* Retrieves a call that has been previously put on hold.
|
|
16529
16594
|
* <p>
|
|
16530
|
-
*
|
|
16531
|
-
* by an
|
|
16595
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
16596
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
16597
|
+
* administrator.
|
|
16532
16598
|
*
|
|
16533
|
-
* @param callRef
|
|
16534
|
-
* @param deviceId
|
|
16599
|
+
* @param callRef the held call reference
|
|
16600
|
+
* @param deviceId the device phone number for which the operation is performed; if the
|
|
16601
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16602
|
+
* @param loginName the login name
|
|
16535
16603
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16604
|
+
* @see hold
|
|
16536
16605
|
*/
|
|
16537
16606
|
async retrieve(callRef, deviceId, loginName = null) {
|
|
16538
16607
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").retrieve(callRef, deviceId, loginName);
|
|
@@ -16541,7 +16610,8 @@ class Telephony extends events_1.default {
|
|
|
16541
16610
|
* Sends DTMF codes on the specified active call.
|
|
16542
16611
|
*
|
|
16543
16612
|
* @param callRef the active call reference
|
|
16544
|
-
* @param deviceId the device phone number for which the operation is
|
|
16613
|
+
* @param deviceId the device phone number for which the operation is performed; if the
|
|
16614
|
+
* session is opened by a user, this must be one of the user's devices
|
|
16545
16615
|
* @param number the DTMF codes to send
|
|
16546
16616
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16547
16617
|
*/
|
|
@@ -16549,22 +16619,22 @@ class Telephony extends events_1.default {
|
|
|
16549
16619
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").sendDtmf(callRef, deviceId, number);
|
|
16550
16620
|
}
|
|
16551
16621
|
/**
|
|
16552
|
-
* Sends the
|
|
16622
|
+
* Sends the transaction code for the specified call on the specified device.
|
|
16553
16623
|
* <p>
|
|
16554
|
-
*
|
|
16555
|
-
*
|
|
16556
|
-
*
|
|
16624
|
+
* Used by a CCD agent to send the transaction code at the end of a call.
|
|
16625
|
+
* The value must comply with the OmniPCX Enterprise transaction code format
|
|
16626
|
+
* (numeric values only).
|
|
16557
16627
|
*
|
|
16558
16628
|
* @param callRef the call reference
|
|
16559
16629
|
* @param deviceId the device phone number for which the operation is done
|
|
16560
|
-
* @param accountInfo the transaction code
|
|
16630
|
+
* @param accountInfo the transaction code (numeric values only)
|
|
16561
16631
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16562
16632
|
*/
|
|
16563
16633
|
async sendAccountInfo(callRef, deviceId, accountInfo) {
|
|
16564
16634
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").sendAccountInfo(callRef, deviceId, accountInfo);
|
|
16565
16635
|
}
|
|
16566
16636
|
/**
|
|
16567
|
-
* Transfers
|
|
16637
|
+
* Transfers the specified active call to the specified held call.
|
|
16568
16638
|
* <p>
|
|
16569
16639
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16570
16640
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16579,7 +16649,7 @@ class Telephony extends events_1.default {
|
|
|
16579
16649
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").transfer(callRef, heldCallRef, loginName);
|
|
16580
16650
|
}
|
|
16581
16651
|
/**
|
|
16582
|
-
* Logs the specified user
|
|
16652
|
+
* Logs the specified user onto a desk sharing set.
|
|
16583
16653
|
* <p>
|
|
16584
16654
|
* The user must be configured as a desk sharing user.
|
|
16585
16655
|
* <p>
|
|
@@ -16587,7 +16657,7 @@ class Telephony extends events_1.default {
|
|
|
16587
16657
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16588
16658
|
* administrator.
|
|
16589
16659
|
*
|
|
16590
|
-
* @param dssDeviceNumber the desk sharing set phone number
|
|
16660
|
+
* @param dssDeviceNumber the desk sharing set phone number to log on to
|
|
16591
16661
|
* @param loginName the login name
|
|
16592
16662
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16593
16663
|
* @see deskSharingLogOff
|
|
@@ -16596,7 +16666,7 @@ class Telephony extends events_1.default {
|
|
|
16596
16666
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").deskSharingLogOn(dssDeviceNumber, loginName);
|
|
16597
16667
|
}
|
|
16598
16668
|
/**
|
|
16599
|
-
* Logs
|
|
16669
|
+
* Logs the specified user off from their desk sharing set.
|
|
16600
16670
|
* <p>
|
|
16601
16671
|
* The user must be configured as a desk sharing user.
|
|
16602
16672
|
* <p>
|
|
@@ -16612,7 +16682,7 @@ class Telephony extends events_1.default {
|
|
|
16612
16682
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").deskSharingLogOff(loginName);
|
|
16613
16683
|
}
|
|
16614
16684
|
/**
|
|
16615
|
-
*
|
|
16685
|
+
* Returns the operational state of all devices belonging to the specified user.
|
|
16616
16686
|
* <p>
|
|
16617
16687
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16618
16688
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16620,47 +16690,50 @@ class Telephony extends events_1.default {
|
|
|
16620
16690
|
*
|
|
16621
16691
|
* @param loginName the login name
|
|
16622
16692
|
* @returns the list of {@link DeviceState} objects on success; `null` otherwise.
|
|
16693
|
+
* @see getDeviceState
|
|
16623
16694
|
*/
|
|
16624
16695
|
async getDevicesState(loginName = null) {
|
|
16625
16696
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getDevicesState(loginName);
|
|
16626
16697
|
}
|
|
16627
16698
|
/**
|
|
16628
|
-
*
|
|
16699
|
+
* Returns the operational state of the specified device.
|
|
16629
16700
|
* <p>
|
|
16630
16701
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16631
16702
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16632
16703
|
* administrator.
|
|
16633
16704
|
*
|
|
16634
|
-
* @param deviceId the device phone number
|
|
16705
|
+
* @param deviceId the device phone number
|
|
16635
16706
|
* @param loginName the login name
|
|
16636
|
-
* @returns the {@link DeviceState} on success; `null`
|
|
16707
|
+
* @returns the {@link DeviceState} for the requested device on success; `null` on error
|
|
16708
|
+
* or if the device does not belong to the user.
|
|
16709
|
+
* @see getDevicesState
|
|
16637
16710
|
*/
|
|
16638
16711
|
async getDeviceState(deviceId, loginName = null) {
|
|
16639
16712
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getDeviceState(deviceId, loginName);
|
|
16640
16713
|
}
|
|
16641
16714
|
/**
|
|
16642
|
-
* Picks up
|
|
16715
|
+
* Picks up an incoming call ringing on another user's device.
|
|
16643
16716
|
*
|
|
16644
|
-
* @param deviceId the device phone number
|
|
16645
|
-
*
|
|
16717
|
+
* @param deviceId the device phone number from which the pickup is performed;
|
|
16718
|
+
* if the session is opened by a user, this must be one of the user's devices
|
|
16719
|
+
* @param otherCallRef the reference of the call to pick up on the remote user
|
|
16646
16720
|
* @param otherPhoneNumber the phone number on which the call is ringing
|
|
16647
|
-
* @param autoAnswer if `true`,
|
|
16721
|
+
* @param autoAnswer if `true`, the call is automatically answered after pickup
|
|
16648
16722
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16649
16723
|
*/
|
|
16650
16724
|
async pickUp(deviceId, otherCallRef, otherPhoneNumber, autoAnswer = false) {
|
|
16651
16725
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").pickUp(deviceId, otherCallRef, otherPhoneNumber, autoAnswer);
|
|
16652
16726
|
}
|
|
16653
16727
|
/**
|
|
16654
|
-
*
|
|
16728
|
+
* Intrudes into the active call of a busy user.
|
|
16655
16729
|
* <p>
|
|
16656
|
-
*
|
|
16657
|
-
*
|
|
16658
|
-
*
|
|
16659
|
-
*
|
|
16660
|
-
*
|
|
16661
|
-
* intrusion.
|
|
16730
|
+
* Intrusion requires that the current device is in releasing state while calling
|
|
16731
|
+
* a user who is engaged in a call, and that both the current device and the
|
|
16732
|
+
* engaged users have the intrusion capability configured.
|
|
16733
|
+
* <p>
|
|
16734
|
+
* Available from O2G 2.4.
|
|
16662
16735
|
*
|
|
16663
|
-
* @param deviceId the device from which the intrusion is
|
|
16736
|
+
* @param deviceId the device phone number from which the intrusion is initiated
|
|
16664
16737
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16665
16738
|
* @since O2G 2.4
|
|
16666
16739
|
*/
|
|
@@ -16668,32 +16741,37 @@ class Telephony extends events_1.default {
|
|
|
16668
16741
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").intrusion(deviceId);
|
|
16669
16742
|
}
|
|
16670
16743
|
/**
|
|
16671
|
-
* Unparks a call
|
|
16744
|
+
* Unparks a previously parked call onto the specified device.
|
|
16672
16745
|
*
|
|
16673
|
-
* @param deviceId the device from which the unpark
|
|
16674
|
-
* @param heldCallRef the reference of the
|
|
16746
|
+
* @param deviceId the device from which the unpark is requested
|
|
16747
|
+
* @param heldCallRef the reference of the parked call
|
|
16675
16748
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16749
|
+
* @see park
|
|
16676
16750
|
*/
|
|
16677
16751
|
async unPark(deviceId, heldCallRef) {
|
|
16678
16752
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").unPark(deviceId, heldCallRef);
|
|
16679
16753
|
}
|
|
16680
16754
|
/**
|
|
16681
|
-
*
|
|
16755
|
+
* Returns the hunting group login status of the specified user.
|
|
16682
16756
|
* <p>
|
|
16683
16757
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16684
16758
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16685
16759
|
* administrator.
|
|
16686
16760
|
*
|
|
16687
16761
|
* @param loginName the login name
|
|
16688
|
-
* @returns the {@link HuntingGroupStatus}
|
|
16762
|
+
* @returns the {@link HuntingGroupStatus} indicating whether the user is logged into
|
|
16763
|
+
* their hunting group on success; `null` otherwise.
|
|
16764
|
+
* @see huntingGroupLogOn
|
|
16765
|
+
* @see huntingGroupLogOff
|
|
16689
16766
|
*/
|
|
16690
16767
|
async getHuntingGroupStatus(loginName = null) {
|
|
16691
16768
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getHuntingGroupStatus(loginName);
|
|
16692
16769
|
}
|
|
16693
16770
|
/**
|
|
16694
|
-
* Logs
|
|
16771
|
+
* Logs the specified user into their current hunting group.
|
|
16695
16772
|
* <p>
|
|
16696
16773
|
* The user must be configured as a member of a hunting group.
|
|
16774
|
+
* Has no effect and returns `true` if the user is already logged in.
|
|
16697
16775
|
* <p>
|
|
16698
16776
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16699
16777
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16707,9 +16785,10 @@ class Telephony extends events_1.default {
|
|
|
16707
16785
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").huntingGroupLogOn(loginName);
|
|
16708
16786
|
}
|
|
16709
16787
|
/**
|
|
16710
|
-
* Logs
|
|
16788
|
+
* Logs the specified user off from their current hunting group.
|
|
16711
16789
|
* <p>
|
|
16712
16790
|
* The user must be configured as a member of a hunting group.
|
|
16791
|
+
* Has no effect and returns `true` if the user is already logged off.
|
|
16713
16792
|
* <p>
|
|
16714
16793
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16715
16794
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16723,7 +16802,7 @@ class Telephony extends events_1.default {
|
|
|
16723
16802
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").huntingGroupLogOff(loginName);
|
|
16724
16803
|
}
|
|
16725
16804
|
/**
|
|
16726
|
-
*
|
|
16805
|
+
* Adds the specified user as a member of an existing hunting group.
|
|
16727
16806
|
* <p>
|
|
16728
16807
|
* The request will fail if the hunting group does not exist. If the user
|
|
16729
16808
|
* already belongs to the group, nothing is done and `true` is returned.
|
|
@@ -16741,7 +16820,7 @@ class Telephony extends events_1.default {
|
|
|
16741
16820
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").addMeToHuntingGroup(hgNumber, loginName);
|
|
16742
16821
|
}
|
|
16743
16822
|
/**
|
|
16744
|
-
* Removes the specified user from
|
|
16823
|
+
* Removes the specified user from an existing hunting group.
|
|
16745
16824
|
* <p>
|
|
16746
16825
|
* The request will fail if the hunting group does not exist. If the user does
|
|
16747
16826
|
* not belong to the group, nothing is done and `true` is returned.
|
|
@@ -16759,33 +16838,40 @@ class Telephony extends events_1.default {
|
|
|
16759
16838
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").removeMeFromHuntingGroup(hgNumber, loginName);
|
|
16760
16839
|
}
|
|
16761
16840
|
/**
|
|
16762
|
-
*
|
|
16841
|
+
* Returns the hunting groups available on the OmniPCX Enterprise node the
|
|
16842
|
+
* specified user belongs to.
|
|
16763
16843
|
* <p>
|
|
16764
16844
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16765
16845
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16766
16846
|
* administrator.
|
|
16767
16847
|
*
|
|
16768
16848
|
* @param loginName the login name
|
|
16769
|
-
* @returns the {@link HuntingGroups}
|
|
16849
|
+
* @returns the {@link HuntingGroups} listing available hunting groups and the user's
|
|
16850
|
+
* current membership on success; `null` otherwise.
|
|
16851
|
+
* @see getHuntingGroupStatus
|
|
16852
|
+
* @see addMeToHuntingGroup
|
|
16853
|
+
* @see removeMeFromHuntingGroup
|
|
16770
16854
|
*/
|
|
16771
16855
|
async queryHuntingGroups(loginName = null) {
|
|
16772
16856
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").queryHuntingGroups(loginName);
|
|
16773
16857
|
}
|
|
16774
16858
|
/**
|
|
16775
|
-
* Returns the
|
|
16859
|
+
* Returns the pending callback requests for the specified user.
|
|
16776
16860
|
* <p>
|
|
16777
16861
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16778
16862
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16779
16863
|
* administrator.
|
|
16780
16864
|
*
|
|
16781
16865
|
* @param loginName the login name
|
|
16782
|
-
* @returns the list of {@link Callback} objects on success; `null` otherwise.
|
|
16866
|
+
* @returns the list of pending {@link Callback} objects on success; `null` otherwise.
|
|
16867
|
+
* @see deleteCallbacks
|
|
16868
|
+
* @see deleteCallback
|
|
16783
16869
|
*/
|
|
16784
16870
|
async getCallbacks(loginName = null) {
|
|
16785
16871
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getCallbacks(loginName);
|
|
16786
16872
|
}
|
|
16787
16873
|
/**
|
|
16788
|
-
* Deletes all callback requests for the specified user.
|
|
16874
|
+
* Deletes all pending callback requests for the specified user.
|
|
16789
16875
|
* <p>
|
|
16790
16876
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16791
16877
|
* ignored, but it is mandatory if the session has been opened by an
|
|
@@ -16793,122 +16879,131 @@ class Telephony extends events_1.default {
|
|
|
16793
16879
|
*
|
|
16794
16880
|
* @param loginName the login name
|
|
16795
16881
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16882
|
+
* @see getCallbacks
|
|
16796
16883
|
*/
|
|
16797
16884
|
async deleteCallbacks(loginName = null) {
|
|
16798
16885
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").deleteCallbacks(loginName);
|
|
16799
16886
|
}
|
|
16800
16887
|
/**
|
|
16801
|
-
* Deletes the specified callback request
|
|
16888
|
+
* Deletes the specified callback request.
|
|
16802
16889
|
* <p>
|
|
16803
16890
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16804
16891
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16805
16892
|
* administrator.
|
|
16806
16893
|
*
|
|
16807
|
-
* @param callbackId the callback identifier
|
|
16894
|
+
* @param callbackId the callback identifier as returned by {@link getCallbacks}
|
|
16808
16895
|
* @param loginName the login name
|
|
16809
16896
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16897
|
+
* @see getCallbacks
|
|
16898
|
+
* @see deleteCallbacks
|
|
16810
16899
|
*/
|
|
16811
16900
|
async deleteCallback(callbackId, loginName = null) {
|
|
16812
16901
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").deleteCallback(callbackId, loginName);
|
|
16813
16902
|
}
|
|
16814
16903
|
/**
|
|
16815
|
-
* Returns the
|
|
16904
|
+
* Returns the next unread mini message for the specified user.
|
|
16816
16905
|
* <p>
|
|
16817
|
-
*
|
|
16818
|
-
* Messages are
|
|
16819
|
-
*
|
|
16820
|
-
* This method will return `null` if all messages have been retrieved.
|
|
16906
|
+
* Messages are consumed on read — once retrieved, a message is deleted from the
|
|
16907
|
+
* OXE and cannot be read again. Messages are returned in Last In First Out order.
|
|
16908
|
+
* Returns `null` when there are no more unread messages.
|
|
16821
16909
|
* <p>
|
|
16822
16910
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16823
16911
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16824
16912
|
* administrator.
|
|
16825
16913
|
*
|
|
16826
16914
|
* @param loginName the login name
|
|
16827
|
-
* @returns the {@link MiniMessage} on success; `null`
|
|
16915
|
+
* @returns the {@link MiniMessage} on success; `null` if there are no unread
|
|
16916
|
+
* messages or on error.
|
|
16828
16917
|
*/
|
|
16829
16918
|
async getMiniMessage(loginName = null) {
|
|
16830
16919
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").getMiniMessage(loginName);
|
|
16831
16920
|
}
|
|
16832
16921
|
/**
|
|
16833
|
-
* Sends
|
|
16922
|
+
* Sends a mini message to the specified recipient.
|
|
16834
16923
|
* <p>
|
|
16835
16924
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16836
16925
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16837
16926
|
* administrator.
|
|
16838
16927
|
*
|
|
16839
|
-
* @param recipient the phone number of the
|
|
16840
|
-
* @param message the
|
|
16928
|
+
* @param recipient the phone number of the message recipient
|
|
16929
|
+
* @param message the message text
|
|
16841
16930
|
* @param loginName the login name
|
|
16842
16931
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16932
|
+
* @see getMiniMessage
|
|
16843
16933
|
*/
|
|
16844
16934
|
async sendMiniMessage(recipient, message, loginName = null) {
|
|
16845
16935
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").sendMiniMessage(recipient, message, loginName);
|
|
16846
16936
|
}
|
|
16847
16937
|
/**
|
|
16848
|
-
* Requests a callback from an idle device
|
|
16938
|
+
* Requests a callback from an idle device.
|
|
16849
16939
|
* <p>
|
|
16850
16940
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16851
16941
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16852
16942
|
* administrator.
|
|
16853
16943
|
*
|
|
16854
|
-
* @param callee the phone number of the
|
|
16944
|
+
* @param callee the phone number of the party to request a callback from
|
|
16855
16945
|
* @param loginName the login name
|
|
16856
16946
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16947
|
+
* @see getCallbacks
|
|
16948
|
+
* @see deleteCallbacks
|
|
16857
16949
|
*/
|
|
16858
16950
|
async requestCallback(callee, loginName = null) {
|
|
16859
16951
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").requestCallback(callee, loginName);
|
|
16860
16952
|
}
|
|
16861
16953
|
/**
|
|
16862
|
-
*
|
|
16954
|
+
* Requests a snapshot event to receive the current telephonic state via an
|
|
16955
|
+
* {@link ON_TELEPHONY_STATE} event.
|
|
16956
|
+
* <p>
|
|
16957
|
+
* The resulting event will contain the full {@link TelephonicState} including
|
|
16958
|
+
* active calls and device capabilities. If a second request is issued while the
|
|
16959
|
+
* first is still in progress, it has no effect.
|
|
16863
16960
|
* <p>
|
|
16864
|
-
*
|
|
16865
|
-
*
|
|
16866
|
-
* previous one is still in progress, it has no effect.
|
|
16961
|
+
* If an administrator calls this with a `null` `loginName`, the snapshot is
|
|
16962
|
+
* requested for all users, which may take time depending on the number of users.
|
|
16867
16963
|
* <p>
|
|
16868
16964
|
* If the session has been opened for a user, the `loginName` parameter is
|
|
16869
16965
|
* ignored, but it is mandatory if the session has been opened by an
|
|
16870
16966
|
* administrator.
|
|
16871
16967
|
*
|
|
16872
16968
|
* @param loginName the login name
|
|
16873
|
-
* @returns `true` if the
|
|
16969
|
+
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16970
|
+
* @see getState
|
|
16874
16971
|
*/
|
|
16875
16972
|
async requestSnapshot(loginName = null) {
|
|
16876
16973
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").requestSnapshot(loginName);
|
|
16877
16974
|
}
|
|
16878
16975
|
/**
|
|
16879
|
-
* Toggles
|
|
16880
|
-
* <p>
|
|
16881
|
-
* This action acts as a flip/flop and has the same effect as pressing the key:
|
|
16976
|
+
* Toggles interphony or hands-free mode on the specified device.
|
|
16882
16977
|
* <ul>
|
|
16883
|
-
* <li>activates or deactivates the microphone if the device has an
|
|
16978
|
+
* <li>activates or deactivates the microphone if the device has an active call</li>
|
|
16884
16979
|
* <li>activates or deactivates the interphony if the device is idle</li>
|
|
16885
16980
|
* <li>has no effect if the device is ringing on an incoming call</li>
|
|
16886
16981
|
* </ul>
|
|
16887
16982
|
* <p>
|
|
16888
|
-
* This operation is done in blind mode: no state event is
|
|
16889
|
-
* but when the device returns to idle after a call, the microphone comes back
|
|
16890
|
-
* the active state.
|
|
16983
|
+
* This operation is done in blind mode: no state event is raised on the push,
|
|
16984
|
+
* but when the device returns to idle after a call, the microphone comes back
|
|
16985
|
+
* to the active state.
|
|
16891
16986
|
*
|
|
16892
|
-
* @param deviceId the device phone number for which the operation is
|
|
16987
|
+
* @param deviceId the device phone number for which the operation is performed
|
|
16893
16988
|
* @returns `true` if the operation succeeded; `false` otherwise.
|
|
16894
16989
|
*/
|
|
16895
16990
|
async toggleInterphony(deviceId) {
|
|
16896
16991
|
return await __classPrivateFieldGet(this, _Telephony_telephonyRest, "f").toggleInterphony(deviceId);
|
|
16897
16992
|
}
|
|
16898
16993
|
/**
|
|
16899
|
-
*
|
|
16900
|
-
* <p>
|
|
16901
|
-
* This method is used to get various information on the CCD pilot routing
|
|
16902
|
-
* capabilities.
|
|
16994
|
+
* Returns transfer possibilities for the specified CCD pilot.
|
|
16903
16995
|
* <p>
|
|
16904
|
-
*
|
|
16905
|
-
* by an
|
|
16996
|
+
* If the session has been opened for a user, the `loginName` parameter is
|
|
16997
|
+
* ignored, but it is mandatory if the session has been opened by an
|
|
16998
|
+
* administrator.
|
|
16906
16999
|
*
|
|
16907
|
-
* @param nodeId the
|
|
16908
|
-
* @param pilotNumber the pilot number
|
|
16909
|
-
* @param pilotTransferQueryParam optional
|
|
17000
|
+
* @param nodeId the OmniPCX Enterprise node ID
|
|
17001
|
+
* @param pilotNumber the CCD pilot directory number
|
|
17002
|
+
* @param pilotTransferQueryParam optional query criteria to filter results by agent number,
|
|
17003
|
+
* priority transfer, supervised transfer, or call profile
|
|
16910
17004
|
* @param loginName the login name
|
|
16911
|
-
* @returns the {@link PilotInfo}
|
|
17005
|
+
* @returns the {@link PilotInfo} describing the pilot's queue state and transfer possibilities
|
|
17006
|
+
* on success; `null` otherwise.
|
|
16912
17007
|
* @since 2.7
|
|
16913
17008
|
*/
|
|
16914
17009
|
async getPilotInfo(nodeId, pilotNumber, pilotTransferQueryParam = null, loginName = null) {
|
|
@@ -16997,9 +17092,17 @@ var _UsersManagement_usersManagementRest;
|
|
|
16997
17092
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16998
17093
|
exports.UsersManagement = void 0;
|
|
16999
17094
|
/**
|
|
17000
|
-
* The Users Management service allows an administrator to create, delete and retrieve O2G users.
|
|
17095
|
+
* The Users Management service allows an administrator to create, delete, and retrieve O2G users.
|
|
17001
17096
|
* <p>
|
|
17002
|
-
*
|
|
17097
|
+
* O2G allows users to be created according to different methods:
|
|
17098
|
+
* <ul>
|
|
17099
|
+
* <li>Automatically when O2G starts, according to the automatic user creation mode.</li>
|
|
17100
|
+
* <li>Through provisioning files.</li>
|
|
17101
|
+
* <li>On demand through this service, which allows creating one user, a list of users,
|
|
17102
|
+
* or all users on a given OmniPCX Enterprise node.</li>
|
|
17103
|
+
* </ul>
|
|
17104
|
+
* Using this service does not require any specific license. This service requires an
|
|
17105
|
+
* administrator session.
|
|
17003
17106
|
*
|
|
17004
17107
|
* @example
|
|
17005
17108
|
* ```typescript
|
|
@@ -17032,22 +17135,21 @@ class UsersManagement {
|
|
|
17032
17135
|
__classPrivateFieldSet(this, _UsersManagement_usersManagementRest, usersManagementRest, "f");
|
|
17033
17136
|
}
|
|
17034
17137
|
/**
|
|
17035
|
-
* Retrieves
|
|
17138
|
+
* Retrieves a list of user login names from the connected OmniPCX Enterprise nodes.
|
|
17036
17139
|
* <p>
|
|
17037
17140
|
* If `nodeIds` is `null`, retrieves the login names from all connected nodes.
|
|
17038
17141
|
*
|
|
17039
17142
|
* @param nodeIds optional list of OXE node ids to restrict the query to.
|
|
17040
|
-
* Only valid for an administrator session.
|
|
17041
17143
|
* @returns the list of user login names on success; `null` otherwise.
|
|
17042
17144
|
*/
|
|
17043
17145
|
async getLogins(nodeIds = null) {
|
|
17044
17146
|
return await __classPrivateFieldGet(this, _UsersManagement_usersManagementRest, "f").getLogins(nodeIds);
|
|
17045
17147
|
}
|
|
17046
17148
|
/**
|
|
17047
|
-
* Retrieves the login name of a user identified by one of their
|
|
17149
|
+
* Retrieves the login name of a user identified by one of their device directory numbers.
|
|
17048
17150
|
*
|
|
17049
|
-
* @param deviceNumber
|
|
17050
|
-
* @returns the
|
|
17151
|
+
* @param deviceNumber a directory number of a device belonging to the user being searched for.
|
|
17152
|
+
* @returns the login name of the user on success; `null` otherwise.
|
|
17051
17153
|
*/
|
|
17052
17154
|
async getByDeviceNumber(deviceNumber) {
|
|
17053
17155
|
return await __classPrivateFieldGet(this, _UsersManagement_usersManagementRest, "f").getByDeviceNumber(deviceNumber);
|
|
@@ -17055,21 +17157,22 @@ class UsersManagement {
|
|
|
17055
17157
|
/**
|
|
17056
17158
|
* Creates O2G users on the specified OmniPCX Enterprise node.
|
|
17057
17159
|
* <p>
|
|
17058
|
-
* If `deviceNumbers` is `null` or empty, all users on the specified node
|
|
17160
|
+
* If `deviceNumbers` is `null` or empty, all users configured on the specified node
|
|
17161
|
+
* are created.
|
|
17059
17162
|
*
|
|
17060
17163
|
* @example
|
|
17061
17164
|
* ```typescript
|
|
17062
17165
|
* // Create specific users by device number
|
|
17063
|
-
* await O2G.usersManagement.createUsers(1, ["60200", "60201"]);
|
|
17166
|
+
* const users = await O2G.usersManagement.createUsers(1, ["60200", "60201"]);
|
|
17064
17167
|
*
|
|
17065
17168
|
* // Create all users on the node
|
|
17066
|
-
* await O2G.usersManagement.createUsers(1, null);
|
|
17169
|
+
* const allUsers = await O2G.usersManagement.createUsers(1, null);
|
|
17067
17170
|
* ```
|
|
17068
17171
|
*
|
|
17069
17172
|
* @param nodeId the OXE node number
|
|
17070
|
-
* @param deviceNumbers optional list of device
|
|
17173
|
+
* @param deviceNumbers optional list of device directory numbers identifying the users to create.
|
|
17071
17174
|
* Pass `null` or an empty array to create all users on the node.
|
|
17072
|
-
* @returns
|
|
17175
|
+
* @returns the list of created {@link User} objects on success; `null` otherwise.
|
|
17073
17176
|
*/
|
|
17074
17177
|
async createUsers(nodeId, deviceNumbers) {
|
|
17075
17178
|
return await __classPrivateFieldGet(this, _UsersManagement_usersManagementRest, "f").createUsers(nodeId, deviceNumbers);
|
|
@@ -17145,12 +17248,13 @@ exports.Users = void 0;
|
|
|
17145
17248
|
const events_1 = __importDefault(__webpack_require__(/*! events */ "events"));
|
|
17146
17249
|
const users_events_1 = __webpack_require__(/*! ../types/users/users-events */ "./src/types/users/users-events.ts");
|
|
17147
17250
|
/**
|
|
17148
|
-
* The
|
|
17251
|
+
* The Users service allows:
|
|
17149
17252
|
* <ul>
|
|
17150
17253
|
* <li>an administrator to retrieve the list of O2G users.</li>
|
|
17151
17254
|
* <li>a user to get information on another user account.</li>
|
|
17152
|
-
* <li>a user to change their password or
|
|
17255
|
+
* <li>a user to change their password or get parameters such as supported languages.</li>
|
|
17153
17256
|
* </ul>
|
|
17257
|
+
* Using this service does not require any specific license.
|
|
17154
17258
|
*
|
|
17155
17259
|
* @example
|
|
17156
17260
|
* ```typescript
|
|
@@ -17237,7 +17341,7 @@ class Users extends events_1.default {
|
|
|
17237
17341
|
/**
|
|
17238
17342
|
* Retrieves the information of a user identified by their company extension number.
|
|
17239
17343
|
*
|
|
17240
|
-
* @param companyPhone the user extension number
|
|
17344
|
+
* @param companyPhone the user company extension number
|
|
17241
17345
|
* @returns the {@link User} information on success; `null` otherwise.
|
|
17242
17346
|
*/
|
|
17243
17347
|
async getByCompanyPhone(companyPhone) {
|
|
@@ -17263,6 +17367,8 @@ class Users extends events_1.default {
|
|
|
17263
17367
|
}
|
|
17264
17368
|
/**
|
|
17265
17369
|
* Changes the specified user's password.
|
|
17370
|
+
* <p>
|
|
17371
|
+
* This operation will fail if authentication is delegated to an external LDAP server.
|
|
17266
17372
|
*
|
|
17267
17373
|
* @param loginName the user login name
|
|
17268
17374
|
* @param oldPassword the current password
|
|
@@ -17276,7 +17382,7 @@ class Users extends events_1.default {
|
|
|
17276
17382
|
exports.Users = Users;
|
|
17277
17383
|
_Users_usersRest = new WeakMap();
|
|
17278
17384
|
/**
|
|
17279
|
-
* Raised
|
|
17385
|
+
* Raised when a user is created.
|
|
17280
17386
|
* @event
|
|
17281
17387
|
*/
|
|
17282
17388
|
Users.ON_USER_CREATED = 'OnUserCreated';
|
|
@@ -17286,7 +17392,7 @@ Users.ON_USER_CREATED = 'OnUserCreated';
|
|
|
17286
17392
|
*/
|
|
17287
17393
|
Users.ON_USER_DELETED = 'OnUserDeleted';
|
|
17288
17394
|
/**
|
|
17289
|
-
* Raised on any change on
|
|
17395
|
+
* Raised on any change on a user's data.
|
|
17290
17396
|
* @event
|
|
17291
17397
|
*/
|
|
17292
17398
|
Users.ON_USER_INFO_CHANGED = 'OnUserInfoChanged';
|
|
@@ -39740,7 +39846,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
39740
39846
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
39741
39847
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
39742
39848
|
};
|
|
39743
|
-
var _User_companyPhone, _User_firstName, _User_lastName, _User_loginName, _User_voicemail, _User_devices, _User_nodeId, _User_externalLogin;
|
|
39849
|
+
var _User_companyPhone, _User_firstName, _User_lastName, _User_loginName, _User_voicemail, _User_devices, _User_nodeId, _User_externalLogin, _User_emailaddress;
|
|
39744
39850
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
39745
39851
|
exports.User = void 0;
|
|
39746
39852
|
const device_1 = __webpack_require__(/*! ../common/device */ "./src/types/common/device.ts");
|
|
@@ -39763,9 +39869,10 @@ class User {
|
|
|
39763
39869
|
* @param devices - The user's devices, or undefined if none
|
|
39764
39870
|
* @param nodeId - The OmniPCX Enterprise node ID
|
|
39765
39871
|
* @param externalLogin - The user's external login, or undefined if none
|
|
39872
|
+
* @param emailAddress - The user's email address, or undefined if none
|
|
39766
39873
|
* @private
|
|
39767
39874
|
*/
|
|
39768
|
-
constructor(companyPhone, firstName, lastName, loginName, voicemail, devices, nodeId, externalLogin) {
|
|
39875
|
+
constructor(companyPhone, firstName, lastName, loginName, voicemail, devices, nodeId, externalLogin, emailAddess) {
|
|
39769
39876
|
_User_companyPhone.set(this, void 0);
|
|
39770
39877
|
_User_firstName.set(this, void 0);
|
|
39771
39878
|
_User_lastName.set(this, void 0);
|
|
@@ -39774,6 +39881,7 @@ class User {
|
|
|
39774
39881
|
_User_devices.set(this, void 0);
|
|
39775
39882
|
_User_nodeId.set(this, void 0);
|
|
39776
39883
|
_User_externalLogin.set(this, void 0);
|
|
39884
|
+
_User_emailaddress.set(this, void 0);
|
|
39777
39885
|
__classPrivateFieldSet(this, _User_companyPhone, companyPhone, "f");
|
|
39778
39886
|
__classPrivateFieldSet(this, _User_firstName, firstName, "f");
|
|
39779
39887
|
__classPrivateFieldSet(this, _User_lastName, lastName, "f");
|
|
@@ -39782,6 +39890,7 @@ class User {
|
|
|
39782
39890
|
__classPrivateFieldSet(this, _User_devices, devices, "f");
|
|
39783
39891
|
__classPrivateFieldSet(this, _User_nodeId, nodeId, "f");
|
|
39784
39892
|
__classPrivateFieldSet(this, _User_externalLogin, externalLogin, "f");
|
|
39893
|
+
__classPrivateFieldSet(this, _User_emailaddress, emailAddess, "f");
|
|
39785
39894
|
}
|
|
39786
39895
|
/**
|
|
39787
39896
|
* Returns the user's company phone number.
|
|
@@ -39840,6 +39949,13 @@ class User {
|
|
|
39840
39949
|
get externalLogin() {
|
|
39841
39950
|
return __classPrivateFieldGet(this, _User_externalLogin, "f") ?? null;
|
|
39842
39951
|
}
|
|
39952
|
+
/**
|
|
39953
|
+
* Returns the user's email address.
|
|
39954
|
+
* @returns The email address, or null if none
|
|
39955
|
+
*/
|
|
39956
|
+
get emailAddress() {
|
|
39957
|
+
return __classPrivateFieldGet(this, _User_emailaddress, "f") ?? null;
|
|
39958
|
+
}
|
|
39843
39959
|
/**
|
|
39844
39960
|
* Creates a new {@link User} instance from JSON data.
|
|
39845
39961
|
*
|
|
@@ -39851,11 +39967,11 @@ class User {
|
|
|
39851
39967
|
*/
|
|
39852
39968
|
/** @internal */
|
|
39853
39969
|
static fromJson(json) {
|
|
39854
|
-
return new User(json.companyPhone, json.firstName, json.lastName, json.loginName, json.voicemail ? voicemail_1.Voicemail.fromJson(json.voicemail) : null, json.devices?.map((d) => device_1.Device.fromJson(d)), Number(json.nodeId), json.externalLogin);
|
|
39970
|
+
return new User(json.companyPhone, json.firstName, json.lastName, json.loginName, json.voicemail ? voicemail_1.Voicemail.fromJson(json.voicemail) : null, json.devices?.map((d) => device_1.Device.fromJson(d)), Number(json.nodeId), json.externalLogin, json.eMailAddress);
|
|
39855
39971
|
}
|
|
39856
39972
|
}
|
|
39857
39973
|
exports.User = User;
|
|
39858
|
-
_User_companyPhone = new WeakMap(), _User_firstName = new WeakMap(), _User_lastName = new WeakMap(), _User_loginName = new WeakMap(), _User_voicemail = new WeakMap(), _User_devices = new WeakMap(), _User_nodeId = new WeakMap(), _User_externalLogin = new WeakMap();
|
|
39974
|
+
_User_companyPhone = new WeakMap(), _User_firstName = new WeakMap(), _User_lastName = new WeakMap(), _User_loginName = new WeakMap(), _User_voicemail = new WeakMap(), _User_devices = new WeakMap(), _User_nodeId = new WeakMap(), _User_externalLogin = new WeakMap(), _User_emailaddress = new WeakMap();
|
|
39859
39975
|
|
|
39860
39976
|
|
|
39861
39977
|
/***/ },
|