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.
- package/CHANGELOG.md +6 -0
- package/EXAMPLES.md +1584 -0
- package/README.md +1844 -1
- package/lib/resources/WebsiteConversation.js +8 -2
- package/package.json +1 -1
|
@@ -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