Commit 21b45111 authored by Juorder Gonzalez's avatar Juorder Gonzalez Committed by GitHub

Merge pull request #287 from ZBoxApp/manager_performance

Manager performance
parents 914fed4c a1127cde
This diff is collapsed.
...@@ -75,7 +75,7 @@ function initZimbra() { ...@@ -75,7 +75,7 @@ function initZimbra() {
export function getClientConfig(success, error) { export function getClientConfig(success, error) {
return $.ajax({ return $.ajax({
url: 'https://manager-api.zboxapp.com/parse/functions/getConfigManager', url: 'https://manager.zboxapp.com/ventas_api/parse/functions/getConfigManager',
//url: './config/config.json', //url: './config/config.json',
dataType: 'json', dataType: 'json',
method: 'POST', method: 'POST',
...@@ -845,6 +845,30 @@ export function getPrices(data, success, error) { ...@@ -845,6 +845,30 @@ export function getPrices(data, success, error) {
}); });
} }
export function requestMailboxes(data, success, error) {
const appId = window.manager_config.salesAPI.appId;
const endpoints = window.manager_config.salesAPI;
const url = endpoints.base + endpoints.requestSale;
$.ajax({
url: url,
method: 'POST',
data: data,
contentType: 'application/json',
headers: {
'X-Parse-Application-Id': appId,
'X-Parse-REST-API-Key': 'master'
},
dataType: 'json',
success: function onSuccess(response) {
success(response);
},
error: function onError(err) {
error(err.responseJSON || err);
}
});
}
export function makeSale(data, success, error) { export function makeSale(data, success, error) {
const appId = window.manager_config.salesAPI.appId; const appId = window.manager_config.salesAPI.appId;
const endpoints = window.manager_config.salesAPI; const endpoints = window.manager_config.salesAPI;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment