Giter Site home page Giter Site logo

backend's Introduction

Backend Agent Service

The endpoints ready are:

  • /api/v1/login (Login)

          {
              "username":"duser",
              "password":"letmepass"
          }
    
  • /api/v1/campaign/login

         {
             "username": "duser",
             "campaign": "dcamp"
          }
    
  • /api/v1/logout

          {
              "username": "duser"
          }
    
  • /api/v1/closer/inbound { "username": "duser", "groups": ["option1", "option2", "option3"], "phone": "100", "campaign": "dcamp", "blended": "true" }

  • /api/v1/dial/manual

         {
             "phone_number":"722116291",
             "username": "duser",
             "phone": "100",
             "campaign": "dcamp",
             "list_id": "998"
          }
    
  • /api/v1/dial/deleteCallback

          {
              "username": "duser",
              "phone": "1000",
              "campaign": "dcamp",
              "callbackID": "122323"
          };
    
  • /api/v1/dial/hangup (Hangup a call)

         {
             "username": "duser",
             "phone": "100",
             "campaign": "dcamp",
             "lead_id": "123",
             "callerid": "998",
             "phone_number":"722116291",
          }
    
  • /api/v1/dial/dispose (Dispose a call )

         {
             "username": "duser",
             "phone"   : "100",
             "campaign": "dcamp",
             "lead_id" : "lead_id",
             "status": "sale",
             "call_type":"IN"
          }
    
  • /api/v1/dial/next

  • /api/v1/dial/park

  • /api/v1/dial/grab

  • /api/v1/dial/take

         `{
             "username": "duser",
             "phone":    "100",
             "campaign": "dcamp",
             "lead_id":  "45",
             "call_id": "2344",
             "phone_number": "722116291"
         }`
    
  • /api/v1/dial/dtmf

  • /api/v1/dial/status

  • /api/v1/dial/pause-code-switch

  • /api/v1/dial/logs (See all the logs of an Individual Agent)

         {
             "campaign":99999,
             "user": "duser",
             "phone":"100",
             "date" : "2020-03-22"
          }
    
  • /api/v1/transfer/local

  • /api/v1/transfer/add

  • /api/v1/transfer/park

  • /api/v1/transfer/hangall

  • /api/v1/transfer/hangxfer

  • /api/v1/transfer/hang-customer

  • /api/v1/transfer/blind

Common commands

make build && scp smartdial [email protected]:backend

  • cat storage/logs/smartdial.log

Deployment process

  • In the root directory, change directory by running the command cd /etc/systemd/system

  • Create a file and name it smartdial.service using the command touch smartdial.service

  • Open the smartdial.service file using the command nano smartdial.service

  • Paste the following code

    [Unit] Description=smartdial

    [Service] WorkingDirectory=/root/backend__ Type=simple__ Restart=always__ RestartSec=5s__ ExecStart=/root/backend/smartdial s

    [Install] WantedBy=multi-user.target

  • Enable the service using the command systemctl enable smartdial

  • Start the service using the command sudo service smartdial start

  • If need be,you can stop the service using the command sudo service smartdial stop

  • Check the status of the service using the command sudo service smartdial status

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.