eecfadabbbef94de484ec7a2b0f327473ba5c8df
[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 _0x9bd3=['path','connect-timeout','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','get','isAuthenticated','index','/:id','show','create','put','destroy'];(function(_0x262f0d,_0x51e151){var _0x21dc30=function(_0x49857c){while(--_0x49857c){_0x262f0d['push'](_0x262f0d['shift']());}};_0x21dc30(++_0x51e151);}(_0x9bd3,0x1d4));var _0x39bd=function(_0x1c9219,_0x46a66b){_0x1c9219=_0x1c9219-0x0;var _0x112897=_0x9bd3[_0x1c9219];return _0x112897;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x39bd('0x0'));var timeout=require(_0x39bd('0x1'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x39bd('0x2'));var config=require(_0x39bd('0x3'));var controller=require(_0x39bd('0x4'));router[_0x39bd('0x5')]('/',auth[_0x39bd('0x6')](),controller[_0x39bd('0x7')]);router[_0x39bd('0x5')](_0x39bd('0x8'),auth[_0x39bd('0x6')](),controller[_0x39bd('0x9')]);router['post']('/',auth[_0x39bd('0x6')](),controller[_0x39bd('0xa')]);router[_0x39bd('0xb')](_0x39bd('0x8'),auth[_0x39bd('0x6')](),controller['update']);router['delete'](_0x39bd('0x8'),auth[_0x39bd('0x6')](),controller[_0x39bd('0xc')]);module['exports']=router;