Skip to content

Commit

Permalink
Create rt-html-abs-v2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ledangtrung committed Dec 9, 2024
1 parent e3be715 commit 24570ee
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions js/rt-html-abs-v2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
function callActionSMS(element) {
const actionData = {
actionID: parseInt(element.getAttribute('data-action-id')),
defaultMsg: element.getAttribute('data-msg'),
orderNumber: parseInt(element.getAttribute('data-order')),
phone: act_sms,
type: element.getAttribute('data-type')
};
App.callActionButton(JSON.stringify(actionData));
}

function callActionCP(element) {
const actionData = {
actionID: parseInt(element.getAttribute('data-action-id')),
orderNumber: parseInt(element.getAttribute('data-order')),
isVideoCall: element.getAttribute('data-video') === 'true',
isCallOut: element.getAttribute('data-callout') === 'true',
type: act_call_cloudphone,
phone: element.getAttribute('data-phone')
};
App.callActionButton(JSON.stringify(actionData));
}

function callActionCALL(element) {
const actionData = {
actionID: parseInt(element.getAttribute('data-action-id')),
orderNumber: parseInt(element.getAttribute('data-order')),
type: act_call,
phone: element.getAttribute('data-phone')
};
App.callActionButton(JSON.stringify(actionData));
}

0 comments on commit 24570ee

Please sign in to comment.