tripstorekrabi-shared 1.12.2 → 1.12.3
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/booking.js +3 -3
- package/package.json +1 -1
package/booking.js
CHANGED
|
@@ -126,13 +126,13 @@ export function addBookingFromInvoice(firestore, admin, invoice, paymentData, co
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
export function getOperatorSignature(agent, operatorName) {
|
|
129
|
+
export function getOperatorSignature(agent, operatorName, contact) {
|
|
130
130
|
let signature =
|
|
131
131
|
'<br><br>Warm regards,<br><br>' + (agent ? agent + ' - ' : "") + operatorName;
|
|
132
132
|
signature +=
|
|
133
|
-
|
|
133
|
+
`<br>WhatsApp chat: <a href='https://wa.me/${contact.respondNumber.replace(/\D/g, '')}'>${contact.respondNumber}</a>`;
|
|
134
134
|
signature +=
|
|
135
|
-
|
|
135
|
+
`<br>WhatsApp call: <a href='https://wa.me/${contact.whatsappNumber.replace(/\D/g, '')}'>${contact.whatsappNumber}</a>`;
|
|
136
136
|
signature +=
|
|
137
137
|
"<br>Telegram chat: <a href='https://t.me/tripstorekrabi_bot'>@tripstorekrabi_bot</a>";
|
|
138
138
|
return signature;
|