crisp-api 5.0.3 → 5.0.4

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.
@@ -639,12 +639,18 @@ function WebsiteConversation(service, crisp) {
639
639
  * @return Promise
640
640
  */
641
641
  service.initiateNewCallSessionForConversation = function(
642
- websiteID, sessionID
642
+ websiteID, sessionID, mode
643
643
  ) {
644
644
  return crisp.post(
645
645
  crisp._prepareRestUrl([
646
646
  "website", websiteID, "conversation", sessionID, "call"
647
- ])
647
+ ]),
648
+
649
+ null,
650
+
651
+ {
652
+ mode : (mode || "audio")
653
+ }
648
654
  );
649
655
  };
650
656
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "crisp-api",
3
3
  "description": "Crisp API wrapper for Node - official, maintained by Crisp",
4
- "version": "5.0.3",
4
+ "version": "5.0.4",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {