Built motion from commit (unavailable).|2.5.26
[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 _0xf3b2=['connect-timeout','express','Router','fs-extra','../../config/environment','./analyticTreeReport.controller','isAuthenticated','index','get','/:id','show','post','create','put','destroy','multer','path'];(function(_0x6e1239,_0x3562ac){var _0x418150=function(_0x279f06){while(--_0x279f06){_0x6e1239['push'](_0x6e1239['shift']());}};_0x418150(++_0x3562ac);}(_0xf3b2,0x152));var _0x2f3b=function(_0x233e6f,_0x4019ac){_0x233e6f=_0x233e6f-0x0;var _0x1deeb0=_0xf3b2[_0x233e6f];return _0x1deeb0;};'use strict';var multer=require(_0x2f3b('0x0'));var util=require('util');var path=require(_0x2f3b('0x1'));var timeout=require(_0x2f3b('0x2'));var express=require(_0x2f3b('0x3'));var router=express[_0x2f3b('0x4')]();var fs_extra=require(_0x2f3b('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x2f3b('0x6'));var controller=require(_0x2f3b('0x7'));router['get']('/',auth[_0x2f3b('0x8')](),controller[_0x2f3b('0x9')]);router[_0x2f3b('0xa')](_0x2f3b('0xb'),auth[_0x2f3b('0x8')](),controller[_0x2f3b('0xc')]);router[_0x2f3b('0xd')]('/',auth[_0x2f3b('0x8')](),controller[_0x2f3b('0xe')]);router[_0x2f3b('0xf')]('/:id',auth[_0x2f3b('0x8')](),controller['update']);router['delete'](_0x2f3b('0xb'),auth[_0x2f3b('0x8')](),controller[_0x2f3b('0x10')]);module['exports']=router;