Built motion from commit (unavailable).|2.4.20
[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 _0xfb64=['show','preview','/:id/run','run','/:id/query','post','create','put','/:id','update','delete','destroy','util','express','Router','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','get','isAuthenticated','index'];(function(_0xf3f6af,_0x4d52d4){var _0x2e9133=function(_0x266c6e){while(--_0x266c6e){_0xf3f6af['push'](_0xf3f6af['shift']());}};_0x2e9133(++_0x4d52d4);}(_0xfb64,0x132));var _0x4fb6=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xfb64[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require('multer');var util=require(_0x4fb6('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x4fb6('0x1'));var router=express[_0x4fb6('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x4fb6('0x3'));var config=require(_0x4fb6('0x4'));var controller=require(_0x4fb6('0x5'));router[_0x4fb6('0x6')]('/',auth[_0x4fb6('0x7')](),controller[_0x4fb6('0x8')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x4fb6('0x9')]);router[_0x4fb6('0x6')]('/:id/preview',auth[_0x4fb6('0x7')](),controller[_0x4fb6('0xa')]);router['get'](_0x4fb6('0xb'),auth[_0x4fb6('0x7')](),controller[_0x4fb6('0xc')]);router['get'](_0x4fb6('0xd'),auth['isAuthenticated'](),controller['query']);router[_0x4fb6('0xe')]('/',auth[_0x4fb6('0x7')](),controller[_0x4fb6('0xf')]);router[_0x4fb6('0x10')](_0x4fb6('0x11'),auth[_0x4fb6('0x7')](),controller[_0x4fb6('0x12')]);router[_0x4fb6('0x13')](_0x4fb6('0x11'),auth['isAuthenticated'](),controller[_0x4fb6('0x14')]);module['exports']=router;