Advertisement
pikong

app.jss

Apr 17th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var path = require("path");
  2. global.GLOBAL_PATH = path.resolve(__dirname);
  3. global.GLOBAL_CONFIG = require("config");
  4.  
  5. global.LIBRARY = require(`${GLOBAL_PATH}/helper/library`);
  6.  
  7. let currentTime = new Date().toLocaleString('id-Id', {
  8.     timeZone: 'Asia/Jakarta'
  9. });
  10.   let { trxTime } = LIBRARY.function.createStringDateFormat(currentTime);
  11.  
  12.   //Connect TO Jabber Server
  13.   LIBRARY.function.connectXmpp();
  14.   LIBRARY.function.getChat(trxTime);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement