Built motion from commit (unavailable).|2.5.23
[motion2.git] / server / api / analyticCustomReport / index.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 _0x5e19=['put','update','delete','destroy','multer','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','get','isAuthenticated','/:id','show','/:id/preview','/:id/run','run','query','create'];(function(_0x4a34e0,_0x29ff2f){var _0xb5ce1d=function(_0x225c39){while(--_0x225c39){_0x4a34e0['push'](_0x4a34e0['shift']());}};_0xb5ce1d(++_0x29ff2f);}(_0x5e19,0xf4));var _0x95e1=function(_0x5d5e14,_0x181119){_0x5d5e14=_0x5d5e14-0x0;var _0x2c04b4=_0x5e19[_0x5d5e14];return _0x2c04b4;};'use strict';var multer=require(_0x95e1('0x0'));var util=require('util');var path=require(_0x95e1('0x1'));var timeout=require('connect-timeout');var express=require(_0x95e1('0x2'));var router=express['Router']();var auth=require(_0x95e1('0x3'));var interaction=require(_0x95e1('0x4'));var config=require(_0x95e1('0x5'));var controller=require(_0x95e1('0x6'));router[_0x95e1('0x7')]('/',auth[_0x95e1('0x8')](),controller['index']);router[_0x95e1('0x7')](_0x95e1('0x9'),auth['isAuthenticated'](),controller[_0x95e1('0xa')]);router[_0x95e1('0x7')](_0x95e1('0xb'),auth[_0x95e1('0x8')](),controller['preview']);router['get'](_0x95e1('0xc'),auth['isAuthenticated'](),controller[_0x95e1('0xd')]);router['get']('/:id/query',auth['isAuthenticated'](),controller[_0x95e1('0xe')]);router['post']('/',auth[_0x95e1('0x8')](),controller[_0x95e1('0xf')]);router[_0x95e1('0x10')](_0x95e1('0x9'),auth['isAuthenticated'](),controller[_0x95e1('0x11')]);router[_0x95e1('0x12')](_0x95e1('0x9'),auth[_0x95e1('0x8')](),controller[_0x95e1('0x13')]);module['exports']=router;