This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | [package] | |
| name = "rust-chat" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] | |
| chrono = "0.4.42" | |
| clap = {version = "4.5.50", features = ["derive"]} | |
| colored = "3.0.0" | |
| crossterm = "0.29.0" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // create-session/index.js | |
| const { DynamoDB } = require("@aws-sdk/client-dynamodb") | |
| const { marshall } = require("@aws-sdk/util-dynamodb") | |
| const { SHA256 } = require("crypto-js") | |
| // Use region specified in environment or default to ap-south-1 | |
| const REGION = process.env.AWS_REGION || "ap-south-1" | |
| const TABLE_NAME = "UserSessions" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const axios = require("axios") | |
| const sendWhatsappMessage = async (number, message) => { | |
| await axios.post( | |
| "https://messages-sandbox.nexmo.com/v0.1/messages", | |
| { | |
| from: { | |
| type: "whatsapp", | |
| number: process.env.VONAGE_NUMBER, | |
| }, | |
| to: { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | set linespace=1 | |
| "moving lines with command key | |
| map <D-j> :m .+1<CR>== | |
| map <D-k> :m .-2<CR>== | |
| "imap <D-/> <Esc>:<Leader>c<space><CR>i | |
| "Font for powerline | |
| set guifont=Meslo\ LG\ S\ DZ\ for\ Powerline:h12 |