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