Built motion from commit 994c64e1.|2.6.1
[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 _0xfab7=['next','stringify','stop','./utils','../../../../config/logger','routing','getMustacheRender'];(function(_0x469e3f,_0x3fbb2f){var _0x10d75e=function(_0xb920e3){while(--_0xb920e3){_0x469e3f['push'](_0x469e3f['shift']());}};_0x10d75e(++_0x3fbb2f);}(_0xfab7,0x13e));var _0x7fab=function(_0x449af9,_0x5f201c){_0x449af9=_0x449af9-0x0;var _0xc38934=_0xfab7[_0x449af9];return _0xc38934;};'use strict';var utils=require(_0x7fab('0x0'));var logger=require(_0x7fab('0x1'))(_0x7fab('0x2'));exports['consequence']=function(_0x346777,_0xc02223){return function(_0x50dacc){try{logger['info']('[%s][NOOP]\x20%s',_0x346777,utils[_0x7fab('0x3')](_0xc02223[0x0],this));_0x50dacc[_0x7fab('0x4')]();}catch(_0xac48f7){logger['error']('[%s][NOOP]\x20%s',_0x346777,JSON[_0x7fab('0x5')](_0xac48f7));_0x50dacc[_0x7fab('0x6')]();}};};