Built motion from commit 3e059bc2.|2.5.32
[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 _0x6e8a=['util','path','connect-timeout','express','../../components/interaction/service','./analyticTreeReport.controller','isAuthenticated','post','create','put','/:id','multer'];(function(_0x3429bc,_0x32636d){var _0x5f2b6e=function(_0x10decf){while(--_0x10decf){_0x3429bc['push'](_0x3429bc['shift']());}};_0x5f2b6e(++_0x32636d);}(_0x6e8a,0x173));var _0xa6e8=function(_0x9df060,_0x253d33){_0x9df060=_0x9df060-0x0;var _0x338dfe=_0x6e8a[_0x9df060];return _0x338dfe;};'use strict';var multer=require(_0xa6e8('0x0'));var util=require(_0xa6e8('0x1'));var path=require(_0xa6e8('0x2'));var timeout=require(_0xa6e8('0x3'));var express=require(_0xa6e8('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xa6e8('0x5'));var config=require('../../config/environment');var controller=require(_0xa6e8('0x6'));router['get']('/',auth[_0xa6e8('0x7')](),controller['index']);router['get']('/:id',auth[_0xa6e8('0x7')](),controller['show']);router[_0xa6e8('0x8')]('/',auth[_0xa6e8('0x7')](),controller[_0xa6e8('0x9')]);router[_0xa6e8('0xa')](_0xa6e8('0xb'),auth[_0xa6e8('0x7')](),controller['update']);router['delete'](_0xa6e8('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;