Built motion from commit 19a84241.|2.5.34
[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 _0xb5ad=['/:id','destroy','exports','multer','path','connect-timeout','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','show','/:id/preview','preview','/:id/run','run','/:id/query','query','post','create','update','delete'];(function(_0x47ac6b,_0x11f220){var _0x2ae571=function(_0x5e6700){while(--_0x5e6700){_0x47ac6b['push'](_0x47ac6b['shift']());}};_0x2ae571(++_0x11f220);}(_0xb5ad,0xc9));var _0xdb5a=function(_0x5b78e8,_0x55096b){_0x5b78e8=_0x5b78e8-0x0;var _0xf2c321=_0xb5ad[_0x5b78e8];return _0xf2c321;};'use strict';var multer=require(_0xdb5a('0x0'));var util=require('util');var path=require(_0xdb5a('0x1'));var timeout=require(_0xdb5a('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xdb5a('0x3'));var config=require(_0xdb5a('0x4'));var controller=require('./analyticCustomReport.controller');router['get']('/',auth[_0xdb5a('0x5')](),controller[_0xdb5a('0x6')]);router[_0xdb5a('0x7')]('/:id',auth['isAuthenticated'](),controller[_0xdb5a('0x8')]);router[_0xdb5a('0x7')](_0xdb5a('0x9'),auth[_0xdb5a('0x5')](),controller[_0xdb5a('0xa')]);router[_0xdb5a('0x7')](_0xdb5a('0xb'),auth[_0xdb5a('0x5')](),controller[_0xdb5a('0xc')]);router[_0xdb5a('0x7')](_0xdb5a('0xd'),auth[_0xdb5a('0x5')](),controller[_0xdb5a('0xe')]);router[_0xdb5a('0xf')]('/',auth['isAuthenticated'](),controller[_0xdb5a('0x10')]);router['put']('/:id',auth[_0xdb5a('0x5')](),controller[_0xdb5a('0x11')]);router[_0xdb5a('0x12')](_0xdb5a('0x13'),auth['isAuthenticated'](),controller[_0xdb5a('0x14')]);module[_0xdb5a('0x15')]=router;