Built motion from commit f9526609.|2.6.29
[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 _0x0a06=['multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/:id','post','update','exports'];(function(_0x23f3fe,_0x37a19c){var _0x1b1cb1=function(_0x1a96a7){while(--_0x1a96a7){_0x23f3fe['push'](_0x23f3fe['shift']());}};_0x1b1cb1(++_0x37a19c);}(_0x0a06,0x10a));var _0x60a0=function(_0xcd39c8,_0x2ad166){_0xcd39c8=_0xcd39c8-0x0;var _0x463dfc=_0x0a06[_0xcd39c8];return _0x463dfc;};'use strict';var multer=require(_0x60a0('0x0'));var util=require(_0x60a0('0x1'));var path=require('path');var timeout=require(_0x60a0('0x2'));var express=require('express');var router=express[_0x60a0('0x3')]();var fs_extra=require(_0x60a0('0x4'));var auth=require(_0x60a0('0x5'));var interaction=require(_0x60a0('0x6'));var config=require('../../config/environment');var controller=require('./analyticTreeReport.controller');router['get']('/',auth[_0x60a0('0x7')](),controller[_0x60a0('0x8')]);router[_0x60a0('0x9')](_0x60a0('0xa'),auth[_0x60a0('0x7')](),controller['show']);router[_0x60a0('0xb')]('/',auth[_0x60a0('0x7')](),controller['create']);router['put'](_0x60a0('0xa'),auth['isAuthenticated'](),controller[_0x60a0('0xc')]);router['delete'](_0x60a0('0xa'),auth[_0x60a0('0x7')](),controller['destroy']);module[_0x60a0('0xd')]=router;