Built motion from commit 47436d59.|2.6.7
[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 _0x80e6=['connect-timeout','express','Router','../../components/interaction/service','./analyticTreeReport.controller','get','/:id','isAuthenticated','put','update','delete','destroy','exports','util','path'];(function(_0xb353d,_0x264034){var _0x321e2a=function(_0x369ac9){while(--_0x369ac9){_0xb353d['push'](_0xb353d['shift']());}};_0x321e2a(++_0x264034);}(_0x80e6,0x139));var _0x680e=function(_0x4fc6a0,_0x5934ae){_0x4fc6a0=_0x4fc6a0-0x0;var _0x467a5e=_0x80e6[_0x4fc6a0];return _0x467a5e;};'use strict';var multer=require('multer');var util=require(_0x680e('0x0'));var path=require(_0x680e('0x1'));var timeout=require(_0x680e('0x2'));var express=require(_0x680e('0x3'));var router=express[_0x680e('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x680e('0x5'));var config=require('../../config/environment');var controller=require(_0x680e('0x6'));router[_0x680e('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x680e('0x7')](_0x680e('0x8'),auth[_0x680e('0x9')](),controller['show']);router['post']('/',auth[_0x680e('0x9')](),controller['create']);router[_0x680e('0xa')]('/:id',auth[_0x680e('0x9')](),controller[_0x680e('0xb')]);router[_0x680e('0xc')](_0x680e('0x8'),auth[_0x680e('0x9')](),controller[_0x680e('0xd')]);module[_0x680e('0xe')]=router;