Built motion from commit d5e4af8c.|2.6.23
[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 _0x7461=['util','path','connect-timeout','express','Router','fs-extra','../../config/environment','./analyticTreeReport.controller','isAuthenticated','index','/:id','show','post','create','put','delete'];(function(_0x8319e4,_0x1d1ec8){var _0x37ca5d=function(_0x2536a0){while(--_0x2536a0){_0x8319e4['push'](_0x8319e4['shift']());}};_0x37ca5d(++_0x1d1ec8);}(_0x7461,0x170));var _0x1746=function(_0x443e9e,_0x3c1baf){_0x443e9e=_0x443e9e-0x0;var _0x5db340=_0x7461[_0x443e9e];return _0x5db340;};'use strict';var multer=require('multer');var util=require(_0x1746('0x0'));var path=require(_0x1746('0x1'));var timeout=require(_0x1746('0x2'));var express=require(_0x1746('0x3'));var router=express[_0x1746('0x4')]();var fs_extra=require(_0x1746('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1746('0x6'));var controller=require(_0x1746('0x7'));router['get']('/',auth[_0x1746('0x8')](),controller[_0x1746('0x9')]);router['get'](_0x1746('0xa'),auth[_0x1746('0x8')](),controller[_0x1746('0xb')]);router[_0x1746('0xc')]('/',auth['isAuthenticated'](),controller[_0x1746('0xd')]);router[_0x1746('0xe')]('/:id',auth[_0x1746('0x8')](),controller['update']);router[_0x1746('0xf')]('/:id',auth[_0x1746('0x8')](),controller['destroy']);module['exports']=router;