6917c9f01dbf4d788f992c6f1f02a9e222644e1a
[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 _0x30a9=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','get','index','isAuthenticated','show','create','put','/:id','update','destroy','exports','util','path'];(function(_0xda127b,_0x3792b4){var _0x4f9ddb=function(_0x37bc76){while(--_0x37bc76){_0xda127b['push'](_0xda127b['shift']());}};_0x4f9ddb(++_0x3792b4);}(_0x30a9,0x70));var _0x930a=function(_0x10ddc6,_0x3133d7){_0x10ddc6=_0x10ddc6-0x0;var _0x39e226=_0x30a9[_0x10ddc6];return _0x39e226;};'use strict';var multer=require('multer');var util=require(_0x930a('0x0'));var path=require(_0x930a('0x1'));var timeout=require(_0x930a('0x2'));var express=require(_0x930a('0x3'));var router=express[_0x930a('0x4')]();var auth=require(_0x930a('0x5'));var interaction=require(_0x930a('0x6'));var config=require(_0x930a('0x7'));var controller=require(_0x930a('0x8'));router[_0x930a('0x9')]('/',auth['isAuthenticated'](),controller[_0x930a('0xa')]);router['get']('/:id',auth[_0x930a('0xb')](),controller[_0x930a('0xc')]);router['post']('/',auth[_0x930a('0xb')](),controller[_0x930a('0xd')]);router[_0x930a('0xe')](_0x930a('0xf'),auth[_0x930a('0xb')](),controller[_0x930a('0x10')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x930a('0x11')]);module[_0x930a('0x12')]=router;