From bd1676374a0b9f970613fd7ceca7fa8e2b217f88 Mon Sep 17 00:00:00 2001 From: Mikhail Chechnev Date: Sun, 16 Dec 2018 02:11:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BE=D1=82?= =?UTF-8?q?=D0=BB=D0=B0=D0=B4=D0=BE=D1=87=D0=BD=D1=8B=D0=B9=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=B4=20=D0=B8=D0=B7=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=B8=D0=BD=D1=82=D0=B5=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20?= =?UTF-8?q?=D1=81=20=D0=AF=D0=BD=D0=B4=D0=B5=D0=BA=D1=81-=D0=94=D0=B8?= =?UTF-8?q?=D0=B0=D0=BB=D0=BE=D0=B3=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/parus_alice.js | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/modules/parus_alice.js b/modules/parus_alice.js index 101af56..fb5123a 100644 --- a/modules/parus_alice.js +++ b/modules/parus_alice.js @@ -8,22 +8,22 @@ //------------ //ДО функции "Алиса/Начало сеанса" -const beforeLogin = async prms => { - const d = `${prms.queue.blMsg.toString()} BEFORE LOGIN`; - return { - blMsg: new Buffer(d) - }; -}; +const beforeLogin = async prms => {}; //ПОСЛЕ функции "Алиса/Начало сеанса" -const afterLogin = async prms => { - let d = ""; - if (prms.queue.blResp) d = `${prms.queue.blResp.toString()} AFTER LOGIN`; - else d = `${prms.queue.blMsg.toString()} AFTER LOGIN`; - return { - blResp: new Buffer(d) - }; -}; +const afterLogin = async prms => {}; + +//ДО функции "Алиса/Поиск контрагента" +const beforeFindAgent = async prms => {}; + +//ПОСЛЕ функции "Алиса/Поиск контрагента" +const afterFindAgent = async prms => {}; + +//ДО функции "Алиса/Поиск договора" +const beforeFindContract = async prms => {}; + +//ПОСЛЕ функции "Алиса/Поиск договора" +const afterFindContract = async prms => {}; //----------------- // Интерфейс модуля @@ -31,3 +31,7 @@ const afterLogin = async prms => { exports.beforeLogin = beforeLogin; exports.afterLogin = afterLogin; +exports.beforeFindAgent = beforeFindAgent; +exports.afterFindAgent = afterFindAgent; +exports.beforeFindContract = beforeFindContract; +exports.afterFindContract = afterFindContract;