e34f3fd34226f1187e16d6a90cde7a855226c7f2
[motion2.git] / server / api / analyticTreeReport / 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 _0x767e=['put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','post','create'];(function(_0x2de398,_0x21ca1f){var _0x1b49a5=function(_0x38286c){while(--_0x38286c){_0x2de398['push'](_0x2de398['shift']());}};_0x1b49a5(++_0x21ca1f);}(_0x767e,0x190));var _0xe767=function(_0x3df692,_0x28f68e){_0x3df692=_0x3df692-0x0;var _0x40f4ea=_0x767e[_0x3df692];return _0x40f4ea;};'use strict';var multer=require(_0xe767('0x0'));var util=require(_0xe767('0x1'));var path=require(_0xe767('0x2'));var timeout=require(_0xe767('0x3'));var express=require(_0xe767('0x4'));var router=express[_0xe767('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xe767('0x6'));var config=require(_0xe767('0x7'));var controller=require('./analyticTreeReport.controller');router[_0xe767('0x8')]('/',auth[_0xe767('0x9')](),controller['index']);router[_0xe767('0x8')](_0xe767('0xa'),auth['isAuthenticated'](),controller[_0xe767('0xb')]);router[_0xe767('0xc')]('/',auth[_0xe767('0x9')](),controller[_0xe767('0xd')]);router[_0xe767('0xe')](_0xe767('0xa'),auth[_0xe767('0x9')](),controller['update']);router[_0xe767('0xf')](_0xe767('0xa'),auth[_0xe767('0x9')](),controller[_0xe767('0x10')]);module[_0xe767('0x11')]=router;