73c01edd72c31a5c6dad0d4e9ce25d1026e39a65
[motion2.git] / server / api / analyticDefaultReport / 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 _0x9b44=['preview','/:id/run','run','/:id/query','query','put','/:id','update','delete','exports','multer','util','express','fs-extra','../../components/auth/service','../../components/interaction/service','./analyticDefaultReport.controller','get','isAuthenticated','index','/:id/preview'];(function(_0x467db8,_0x41f547){var _0x26afff=function(_0x35cfe8){while(--_0x35cfe8){_0x467db8['push'](_0x467db8['shift']());}};_0x26afff(++_0x41f547);}(_0x9b44,0xb2));var _0x49b4=function(_0x2ff238,_0x1811d2){_0x2ff238=_0x2ff238-0x0;var _0x204a56=_0x9b44[_0x2ff238];return _0x204a56;};'use strict';var multer=require(_0x49b4('0x0'));var util=require(_0x49b4('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x49b4('0x2'));var router=express['Router']();var fs_extra=require(_0x49b4('0x3'));var auth=require(_0x49b4('0x4'));var interaction=require(_0x49b4('0x5'));var config=require('../../config/environment');var controller=require(_0x49b4('0x6'));router[_0x49b4('0x7')]('/',auth[_0x49b4('0x8')](),controller[_0x49b4('0x9')]);router[_0x49b4('0x7')]('/:id',auth[_0x49b4('0x8')](),controller['show']);router[_0x49b4('0x7')](_0x49b4('0xa'),auth['isAuthenticated'](),controller[_0x49b4('0xb')]);router['get'](_0x49b4('0xc'),auth[_0x49b4('0x8')](),controller[_0x49b4('0xd')]);router[_0x49b4('0x7')](_0x49b4('0xe'),auth[_0x49b4('0x8')](),controller[_0x49b4('0xf')]);router['post']('/',auth[_0x49b4('0x8')](),controller['create']);router[_0x49b4('0x10')](_0x49b4('0x11'),auth[_0x49b4('0x8')](),controller[_0x49b4('0x12')]);router[_0x49b4('0x13')]('/:id',auth[_0x49b4('0x8')](),controller['destroy']);module[_0x49b4('0x14')]=router;