Built motion from commit (unavailable).|2.5.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 _0x7faa=['/:id','update','destroy','multer','util','path','connect-timeout','express','Router','../../config/environment','isAuthenticated','index','get','show','post','put'];(function(_0x39b2a2,_0x1f2d18){var _0x12d79e=function(_0x94a5e8){while(--_0x94a5e8){_0x39b2a2['push'](_0x39b2a2['shift']());}};_0x12d79e(++_0x1f2d18);}(_0x7faa,0x1f3));var _0xa7fa=function(_0x2952a,_0x59bc7d){_0x2952a=_0x2952a-0x0;var _0x2d7908=_0x7faa[_0x2952a];return _0x2d7908;};'use strict';var multer=require(_0xa7fa('0x0'));var util=require(_0xa7fa('0x1'));var path=require(_0xa7fa('0x2'));var timeout=require(_0xa7fa('0x3'));var express=require(_0xa7fa('0x4'));var router=express[_0xa7fa('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa7fa('0x6'));var controller=require('./analyticTreeReport.controller');router['get']('/',auth[_0xa7fa('0x7')](),controller[_0xa7fa('0x8')]);router[_0xa7fa('0x9')]('/:id',auth[_0xa7fa('0x7')](),controller[_0xa7fa('0xa')]);router[_0xa7fa('0xb')]('/',auth[_0xa7fa('0x7')](),controller['create']);router[_0xa7fa('0xc')](_0xa7fa('0xd'),auth['isAuthenticated'](),controller[_0xa7fa('0xe')]);router['delete'](_0xa7fa('0xd'),auth['isAuthenticated'](),controller[_0xa7fa('0xf')]);module['exports']=router;