// This is Generated Source. import GetUserBusinessHoursResponse from "../definitions/GetUserBusinessHoursResponse"; import UserBusinessHoursUpdate from "../definitions/UserBusinessHoursUpdate"; import UserBusinessHoursUpdateRequest from "../definitions/UserBusinessHoursUpdateRequest"; import PathSegment from "../PathSegment"; export default class BusinessHours extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("business-hours", id, prv, service); } /** *

Since 1.0.15 (Release 7.0)

Returns the extension user hours when answering rules are to be applied.

Usage Plan Group

Light

*/ get(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.15 (Release 7.0)

Returns the extension user hours when answering rules are to be applied.

Usage Plan Group

Light

* return {ApiResponse} */ getRaw(): Promise { return this._send({ body: undefined, ignoreId: true, method: "get", query: undefined, }); } /** *

Since 1.0.28 (Release 8.4)

Updates the extension user hours when answering rules are to be applied.

Required Permissions

PermissionDescription
EditExtensionsViewing and updating user extension info (includes extension name, number, email and phone number, assigned phone numbers, devices and other extension settings)

API Group

Medium

*/ put(body: UserBusinessHoursUpdateRequest): Promise { return this._send({ body: body, ignoreId: true, method: "put", query: undefined, }).then((res) => { return res.json(); }); } /** *

Since 1.0.28 (Release 8.4)

Updates the extension user hours when answering rules are to be applied.

Required Permissions

PermissionDescription
EditExtensionsViewing and updating user extension info (includes extension name, number, email and phone number, assigned phone numbers, devices and other extension settings)

API Group

Medium

* return {ApiResponse} */ putRaw(body: UserBusinessHoursUpdateRequest): Promise { return this._send({ body: body, ignoreId: true, method: "put", query: undefined, }); } }