Table of Contents

New Be360 creation

Access the server

Access the Be360Whatsapp machine:

Copy an existing folder

Copy an existing folder AND REMEMEBR WHICH YOU USED, YOU WILL NEED THAT LATER.

Delete files

Now that you have copied the directory, you have to move in it, running this command:

 cd be360customername/ 


With

 ls -l 

you can see the folder's content. You have to delete all the files except:

sudo rm wab.log
 
sudo rm *.log.gz 
 
sudo rm -rf node_modules/
 
sudo rm package.json
 
rm -f files/*
 
rm -f filesIn/* 

Install Json Packages

After deleting files you will have to install the packages in this directory. To do so run the following command:

npm i 

To check if it worked you should see a new file named package.json

Modify files

In this part you will have to edit the content of the remaining files in the directory.
The first file we'll be edit is constants.json and it will be like that:

{
    "bpdomain":"*tenantname*.beincontact.becloudsolutions.com",
    "bptenant":"*tenantname*.beincontact.becloudsolutions.com",
    "bpappid":"see point 1",
    "type":"WHATSAPP",
    "from":"vedi punto 5",
    "basicauth":"vedi punto 6",
    "url":"https://*vedi punto 7*.api.infobip.com/whatsapp/1/message/text",
    "localFilePath":"http://wab*nometenant*.ccaas.becloudsolutions.com/files/"
}
  1. bpappid
    • Go on the admin portal and instert in the URL the correct tenant at the start of the domain.
    • On the menu on the left click on the Scenarios drop bar and then on the Chat option.
    • Selevt the scenario name called WhatsApp.
    • In the Scenario Entries part you will have to copy the value of the unique identyfier.
    • Paste the value in the Json.
  2. from
    • Login into Infobip with the credential of the tenant's account.
    • On the menu on the left click on the Channels and Numbers voice and then on the Numbers options.
    • There you will find a number. Copy it and pu it in the Json field.
  3. basichauth
    • Search on the internet a Basic Authenticator Generator.
    • Insert the username and password where the website tells you to and generate the “token”.
    • Copy it and put it in the Json.
  4. url
    • Login into Infobip with the credential of the tenant's account.
    • On the menu on the left click on the Developer Tools voice and then on the API Keys options.
    • In the section that you will have just opened, there will be a Documentation sectopn in the middle part of the screen. Click on it.
    • Here you will find an URL. Copy only the value before the first dot.
    • paste in in the Json.
  5. localFilePath
    • Go on AWS Dashboard and log into it.
    • Open Amazon Route 53 and then on the Hosted Zones.and the ccaas.becloudsolutions.com THE PUBLIC ONE.
    • You will now have to copy the IP address of the record name whose name corrispond to the initial direcotry from where you copied the files at the beginning.
    • Click on Create record and in the record name field insert “wab+tenantname” and in the Value field paste the IP address or the domani you copied in the last point.
    • Click on Create record.

The second file to edit will be the app.js file.

The third file will be main.js.

The fourth file will be server.config.js

IT Billing

The purchased numbers must be entered in the shared file in IT Billing for technical supplier costs.
Depending on the carrier you are using, you will need to add a row to the table or add a unit in the quantity column.

The customer's name must be added to the Traffico Telefonico file.
Add a new sheet, copy an existing one and delete the data inside of it.