140e1926870d7c9b1b11691da309815632d6b25d
[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 _0xe072=['put','delete','destroy','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./analyticCustomReport.controller','get','isAuthenticated','/:id','show','/:id/preview','preview','/:id/run','run','/:id/query','create'];(function(_0x53263b,_0x299c08){var _0x3fd94b=function(_0x489939){while(--_0x489939){_0x53263b['push'](_0x53263b['shift']());}};_0x3fd94b(++_0x299c08);}(_0xe072,0x17d));var _0x2e07=function(_0x36221a,_0x37c5b5){_0x36221a=_0x36221a-0x0;var _0x233141=_0xe072[_0x36221a];return _0x233141;};'use strict';var multer=require(_0x2e07('0x0'));var util=require('util');var path=require(_0x2e07('0x1'));var timeout=require(_0x2e07('0x2'));var express=require('express');var router=express[_0x2e07('0x3')]();var fs_extra=require(_0x2e07('0x4'));var auth=require(_0x2e07('0x5'));var interaction=require(_0x2e07('0x6'));var config=require('../../config/environment');var controller=require(_0x2e07('0x7'));router[_0x2e07('0x8')]('/',auth[_0x2e07('0x9')](),controller['index']);router[_0x2e07('0x8')](_0x2e07('0xa'),auth[_0x2e07('0x9')](),controller[_0x2e07('0xb')]);router[_0x2e07('0x8')](_0x2e07('0xc'),auth[_0x2e07('0x9')](),controller[_0x2e07('0xd')]);router[_0x2e07('0x8')](_0x2e07('0xe'),auth[_0x2e07('0x9')](),controller[_0x2e07('0xf')]);router[_0x2e07('0x8')](_0x2e07('0x10'),auth[_0x2e07('0x9')](),controller['query']);router['post']('/',auth[_0x2e07('0x9')](),controller[_0x2e07('0x11')]);router[_0x2e07('0x12')](_0x2e07('0xa'),auth[_0x2e07('0x9')](),controller['update']);router[_0x2e07('0x13')](_0x2e07('0xa'),auth[_0x2e07('0x9')](),controller[_0x2e07('0x14')]);module['exports']=router;