cd5cd8ba29c1dd50e09f7c5ecf65406a4ffcbb06
[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 _0xa619=['show','/:id/preview','preview','run','/:id/query','query','create','update','delete','destroy','multer','util','path','connect-timeout','fs-extra','../../components/interaction/service','./analyticCustomReport.controller','get','isAuthenticated','index','/:id'];(function(_0x1c0db7,_0x48ab5c){var _0x5f33af=function(_0xfb7d49){while(--_0xfb7d49){_0x1c0db7['push'](_0x1c0db7['shift']());}};_0x5f33af(++_0x48ab5c);}(_0xa619,0x73));var _0x9a61=function(_0x118725,_0x30ef95){_0x118725=_0x118725-0x0;var _0x34466c=_0xa619[_0x118725];return _0x34466c;};'use strict';var multer=require(_0x9a61('0x0'));var util=require(_0x9a61('0x1'));var path=require(_0x9a61('0x2'));var timeout=require(_0x9a61('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x9a61('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x9a61('0x5'));var config=require('../../config/environment');var controller=require(_0x9a61('0x6'));router[_0x9a61('0x7')]('/',auth[_0x9a61('0x8')](),controller[_0x9a61('0x9')]);router[_0x9a61('0x7')](_0x9a61('0xa'),auth[_0x9a61('0x8')](),controller[_0x9a61('0xb')]);router['get'](_0x9a61('0xc'),auth[_0x9a61('0x8')](),controller[_0x9a61('0xd')]);router[_0x9a61('0x7')]('/:id/run',auth[_0x9a61('0x8')](),controller[_0x9a61('0xe')]);router[_0x9a61('0x7')](_0x9a61('0xf'),auth['isAuthenticated'](),controller[_0x9a61('0x10')]);router['post']('/',auth[_0x9a61('0x8')](),controller[_0x9a61('0x11')]);router['put'](_0x9a61('0xa'),auth['isAuthenticated'](),controller[_0x9a61('0x12')]);router[_0x9a61('0x13')](_0x9a61('0xa'),auth[_0x9a61('0x8')](),controller[_0x9a61('0x14')]);module['exports']=router;