Built motion from commit (unavailable).|2.5.9
[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 _0x766b=['/:id','show','/:id/preview','run','/:id/query','query','post','create','put','update','delete','destroy','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','get','isAuthenticated'];(function(_0x1f3e88,_0x583f45){var _0x419b01=function(_0x21deae){while(--_0x21deae){_0x1f3e88['push'](_0x1f3e88['shift']());}};_0x419b01(++_0x583f45);}(_0x766b,0x140));var _0xb766=function(_0x176d41,_0x23e580){_0x176d41=_0x176d41-0x0;var _0x3163c3=_0x766b[_0x176d41];return _0x3163c3;};'use strict';var multer=require(_0xb766('0x0'));var util=require(_0xb766('0x1'));var path=require(_0xb766('0x2'));var timeout=require('connect-timeout');var express=require(_0xb766('0x3'));var router=express['Router']();var auth=require(_0xb766('0x4'));var interaction=require(_0xb766('0x5'));var config=require(_0xb766('0x6'));var controller=require(_0xb766('0x7'));router[_0xb766('0x8')]('/',auth[_0xb766('0x9')](),controller['index']);router[_0xb766('0x8')](_0xb766('0xa'),auth['isAuthenticated'](),controller[_0xb766('0xb')]);router[_0xb766('0x8')](_0xb766('0xc'),auth['isAuthenticated'](),controller['preview']);router['get']('/:id/run',auth['isAuthenticated'](),controller[_0xb766('0xd')]);router['get'](_0xb766('0xe'),auth['isAuthenticated'](),controller[_0xb766('0xf')]);router[_0xb766('0x10')]('/',auth[_0xb766('0x9')](),controller[_0xb766('0x11')]);router[_0xb766('0x12')](_0xb766('0xa'),auth[_0xb766('0x9')](),controller[_0xb766('0x13')]);router[_0xb766('0x14')]('/:id',auth[_0xb766('0x9')](),controller[_0xb766('0x15')]);module['exports']=router;