P8-ExchangeService/modules/parus_agn_info.js

28 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
Сервис интеграции ПП Парус 8 с WEB API
Дополнительный модуль: тестовый модуль для ПМИ - получение сведений о контрагентах на тестовом стенде
*/
//------------
// Тело модуля
//------------
//Формирование запроса к тестовому стенду на получение сведений о контрагенте
const buildAgentQuery = async prms => {
console.log(`Начал обработку ДО - ${prms.queue.nId}`);
console.log(`Закончил обработку ДО - ${prms.queue.nId}`);
};
//Обработка ответа тестового стенда на запрос сведений о контрагенте
const parseAgentInfo = async prms => {
console.log(`Начал обработку ПОСЛЕ - ${prms.queue.nId}`);
console.log(`Закончил обработку ПОСЛЕ - ${prms.queue.nId}`);
};
//-----------------
// Интерфейс модуля
//-----------------
exports.buildAgentQuery = buildAgentQuery;
exports.parseAgentInfo = parseAgentInfo;