41c0b69c62409877f18dc08ad1eeaafa3ae9df4f
[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 _0x877b=['preview','/:id/query','post','create','put','delete','destroy','exports','multer','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','get','isAuthenticated','index','/:id','/:id/preview'];(function(_0x2de088,_0x28a7a9){var _0x31309e=function(_0x220f6f){while(--_0x220f6f){_0x2de088['push'](_0x2de088['shift']());}};_0x31309e(++_0x28a7a9);}(_0x877b,0x80));var _0xb877=function(_0x3b89f2,_0x2719e8){_0x3b89f2=_0x3b89f2-0x0;var _0x5da332=_0x877b[_0x3b89f2];return _0x5da332;};'use strict';var multer=require(_0xb877('0x0'));var util=require('util');var path=require(_0xb877('0x1'));var timeout=require(_0xb877('0x2'));var express=require(_0xb877('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xb877('0x4'));var config=require(_0xb877('0x5'));var controller=require(_0xb877('0x6'));router[_0xb877('0x7')]('/',auth[_0xb877('0x8')](),controller[_0xb877('0x9')]);router[_0xb877('0x7')](_0xb877('0xa'),auth[_0xb877('0x8')](),controller['show']);router[_0xb877('0x7')](_0xb877('0xb'),auth[_0xb877('0x8')](),controller[_0xb877('0xc')]);router[_0xb877('0x7')]('/:id/run',auth[_0xb877('0x8')](),controller['run']);router[_0xb877('0x7')](_0xb877('0xd'),auth[_0xb877('0x8')](),controller['query']);router[_0xb877('0xe')]('/',auth['isAuthenticated'](),controller[_0xb877('0xf')]);router[_0xb877('0x10')](_0xb877('0xa'),auth[_0xb877('0x8')](),controller['update']);router[_0xb877('0x11')](_0xb877('0xa'),auth[_0xb877('0x8')](),controller[_0xb877('0x12')]);module[_0xb877('0x13')]=router;