20ba1ab62a51f7b4cb399015cda6cac234233fa3
[motion2.git] / server / api / analyticDefaultReport / 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 _0xe94d=['/:id/run','/:id/query','query','create','put','update','delete','destroy','exports','multer','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticDefaultReport.controller','isAuthenticated','get','/:id','show','preview'];(function(_0xe9de89,_0x1368ae){var _0x39a855=function(_0x53c2ff){while(--_0x53c2ff){_0xe9de89['push'](_0xe9de89['shift']());}};_0x39a855(++_0x1368ae);}(_0xe94d,0x17f));var _0xde94=function(_0x3acb52,_0x28dea1){_0x3acb52=_0x3acb52-0x0;var _0x2c1217=_0xe94d[_0x3acb52];return _0x2c1217;};'use strict';var multer=require(_0xde94('0x0'));var util=require('util');var path=require(_0xde94('0x1'));var timeout=require(_0xde94('0x2'));var express=require(_0xde94('0x3'));var router=express['Router']();var auth=require(_0xde94('0x4'));var interaction=require(_0xde94('0x5'));var config=require(_0xde94('0x6'));var controller=require(_0xde94('0x7'));router['get']('/',auth[_0xde94('0x8')](),controller['index']);router[_0xde94('0x9')](_0xde94('0xa'),auth['isAuthenticated'](),controller[_0xde94('0xb')]);router[_0xde94('0x9')]('/:id/preview',auth[_0xde94('0x8')](),controller[_0xde94('0xc')]);router[_0xde94('0x9')](_0xde94('0xd'),auth[_0xde94('0x8')](),controller['run']);router[_0xde94('0x9')](_0xde94('0xe'),auth[_0xde94('0x8')](),controller[_0xde94('0xf')]);router['post']('/',auth[_0xde94('0x8')](),controller[_0xde94('0x10')]);router[_0xde94('0x11')](_0xde94('0xa'),auth[_0xde94('0x8')](),controller[_0xde94('0x12')]);router[_0xde94('0x13')]('/:id',auth['isAuthenticated'](),controller[_0xde94('0x14')]);module[_0xde94('0x15')]=router;