c524ac5d2708961c84adffd15e9551f68d0d24c7
[motion2.git] / server / services / routing / server / applications / noop.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe692=['./utils','../../../../config/logger','routing','next','error','[%s][NOOP]\x20%s'];(function(_0x4209e4,_0x5b6243){var _0x36b9a9=function(_0x2655b8){while(--_0x2655b8){_0x4209e4['push'](_0x4209e4['shift']());}};_0x36b9a9(++_0x5b6243);}(_0xe692,0x1b0));var _0x2e69=function(_0x2064e5,_0x4f6fa2){_0x2064e5=_0x2064e5-0x0;var _0x21a233=_0xe692[_0x2064e5];return _0x21a233;};'use strict';var utils=require(_0x2e69('0x0'));var logger=require(_0x2e69('0x1'))(_0x2e69('0x2'));exports['consequence']=function(_0x25f396,_0xee63b7){return function(_0x27d56b){try{logger['info']('[%s][NOOP]\x20%s',_0x25f396,utils['getMustacheRender'](_0xee63b7[0x0],this));_0x27d56b[_0x2e69('0x3')]();}catch(_0x33defe){logger[_0x2e69('0x4')](_0x2e69('0x5'),_0x25f396,JSON['stringify'](_0x33defe));_0x27d56b['stop']();}};};