29ac85dac067e989c22c98f82f4d6a27cf9a1f75
[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 _0x54aa=['destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','./analyticCustomReport.controller','get','isAuthenticated','/:id','show','preview','run','query','create','update'];(function(_0x2451ae,_0x2ff3a4){var _0x5d6db9=function(_0x1b0200){while(--_0x1b0200){_0x2451ae['push'](_0x2451ae['shift']());}};_0x5d6db9(++_0x2ff3a4);}(_0x54aa,0x1c4));var _0xa54a=function(_0x613e48,_0x498bb8){_0x613e48=_0x613e48-0x0;var _0xe4a3fd=_0x54aa[_0x613e48];return _0xe4a3fd;};'use strict';var multer=require(_0xa54a('0x0'));var util=require(_0xa54a('0x1'));var path=require('path');var timeout=require(_0xa54a('0x2'));var express=require(_0xa54a('0x3'));var router=express[_0xa54a('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xa54a('0x5'));var config=require('../../config/environment');var controller=require(_0xa54a('0x6'));router[_0xa54a('0x7')]('/',auth[_0xa54a('0x8')](),controller['index']);router[_0xa54a('0x7')](_0xa54a('0x9'),auth[_0xa54a('0x8')](),controller[_0xa54a('0xa')]);router['get']('/:id/preview',auth[_0xa54a('0x8')](),controller[_0xa54a('0xb')]);router[_0xa54a('0x7')]('/:id/run',auth[_0xa54a('0x8')](),controller[_0xa54a('0xc')]);router[_0xa54a('0x7')]('/:id/query',auth['isAuthenticated'](),controller[_0xa54a('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xa54a('0xe')]);router['put'](_0xa54a('0x9'),auth[_0xa54a('0x8')](),controller[_0xa54a('0xf')]);router['delete'](_0xa54a('0x9'),auth[_0xa54a('0x8')](),controller[_0xa54a('0x10')]);module[_0xa54a('0x11')]=router;