POST-/auth/login- Body:
{
"email": "[email protected]",
"password": "Test1234"
}
| var moment = require('moment'); | |
| // Add here the result for the customer info from the API get customer endpoint (as an array) | |
| const [data] = []; | |
| const [policy] = data.policies; | |
| if (!data.policies.length || data.policies.length > 1) throw new Error('Check policies number') | |
| const formatDate = (date) => moment(date).format('MMM DD, YYYY, LTS Z'); |
| #!/bin/bash | |
| STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$") | |
| ESLINT="$(git rev-parse --show-toplevel)/node_modules/.bin/eslint" | |
| if [[ "$STAGED_FILES" = "" ]]; then | |
| exit 0 | |
| fi | |
| PASS=true |
POST - /auth/login{
"email": "[email protected]",
"password": "Test1234"
}
| // https://172.27.4.76/ws/callin/search?order_id=0497439 | |
| [ | |
| { | |
| "__type": "callin", | |
| "company_id": "TMS", | |
| "call_date_time": "20190102111800-0500", | |
| "city_id": 7115340, | |
| "city_name": "CHICAGO", | |
| "entered_by": "PATRICKF", | |
| "id": "zz1d07lo32h143s-VMTS66", |
| const axios = require('axios'); | |
| const https = require('https'); | |
| const httpsAgent = new https.Agent({ | |
| rejectUnauthorized: false, | |
| }); | |
| const makeReq = req => | |
| axios({ | |
| method: req.type, |
| const switchcase = cases => defaultCase => key => | |
| cases.hasOwnProperty(key) ? cases[key] : defaultCase; | |
| const executeIfFunction = f => | |
| f instanceof Function ? f() : f; | |
| const switchcaseF = cases => defaultCase => key => | |
| executeIfFunction(switchcase(cases)(defaultCase)(key)); | |
| const counter = (state = 0, action) => |