Built motion from commit (unavailable).|2.5.15
[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 _0x377b=['query','put','update','exports','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./analyticCustomReport.controller','isAuthenticated','index','get','/:id','/:id/preview','preview','run','/:id/query'];(function(_0x2a29fe,_0x25ba2c){var _0x3a0db0=function(_0x36daae){while(--_0x36daae){_0x2a29fe['push'](_0x2a29fe['shift']());}};_0x3a0db0(++_0x25ba2c);}(_0x377b,0xe0));var _0xb377=function(_0x4e9f62,_0x490acf){_0x4e9f62=_0x4e9f62-0x0;var _0x597fbc=_0x377b[_0x4e9f62];return _0x597fbc;};'use strict';var multer=require(_0xb377('0x0'));var util=require(_0xb377('0x1'));var path=require(_0xb377('0x2'));var timeout=require(_0xb377('0x3'));var express=require(_0xb377('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xb377('0x5'));var config=require(_0xb377('0x6'));var controller=require(_0xb377('0x7'));router['get']('/',auth[_0xb377('0x8')](),controller[_0xb377('0x9')]);router[_0xb377('0xa')](_0xb377('0xb'),auth['isAuthenticated'](),controller['show']);router['get'](_0xb377('0xc'),auth['isAuthenticated'](),controller[_0xb377('0xd')]);router['get']('/:id/run',auth[_0xb377('0x8')](),controller[_0xb377('0xe')]);router[_0xb377('0xa')](_0xb377('0xf'),auth['isAuthenticated'](),controller[_0xb377('0x10')]);router['post']('/',auth[_0xb377('0x8')](),controller['create']);router[_0xb377('0x11')](_0xb377('0xb'),auth[_0xb377('0x8')](),controller[_0xb377('0x12')]);router['delete'](_0xb377('0xb'),auth[_0xb377('0x8')](),controller['destroy']);module[_0xb377('0x13')]=router;