Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/wataxi.picotech.app/public_html/public/custom/js/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
"use strict";
$(document).ready(function() {
// Enable pusher logging - don't include this in production
if(PUSHER_APP_KEY){
var audio = new Audio('https://soundbible.com/mp3/old-fashioned-door-bell-daniel_simon.mp3');
Pusher.logToConsole = true;
var pusher = new Pusher(PUSHER_APP_KEY, {
cluster: PUSHER_APP_CLUSTER
});
var channel = pusher.subscribe('user.'+USER_ID);
channel.bind('callwaiter-event', function(data) {
js.notify(data.msg + " " + data.table.restoarea.name+" "+data.table.name,"primary");
audio.play();
});
channel.bind('neworder-event', function(data) {
js.notify(data.msg + " #" + data.order.id,"primary");
audio.play();
});
}
function subscribePerOrder(orderID){
var audio = new Audio('https://soundbible.com/mp3/old-fashioned-door-bell-daniel_simon.mp3');
Pusher.logToConsole = true;
var pusherForOrder = new Pusher(PUSHER_APP_KEY, {
cluster: PUSHER_APP_CLUSTER
});
var channelForOrder = pusherForOrder.subscribe('order.'+orderID);
channelForOrder.bind('updateorder-event', function(data) {
js.notify(data.msg + " #" + data.order.id,"primary");
audio.play();
});
}
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0037 ]-- |