b54f8db654d2b523c968e8ea64d3f7e6535fc5db
[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 _0x3d1f=['connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','create','update','delete','destroy','exports','multer','util','path'];(function(_0x5afd0c,_0xc78bfe){var _0x13f95f=function(_0x3b91bf){while(--_0x3b91bf){_0x5afd0c['push'](_0x5afd0c['shift']());}};_0x13f95f(++_0xc78bfe);}(_0x3d1f,0x12f));var _0xf3d1=function(_0x410484,_0x57244a){_0x410484=_0x410484-0x0;var _0x3c8009=_0x3d1f[_0x410484];return _0x3c8009;};'use strict';var multer=require(_0xf3d1('0x0'));var util=require(_0xf3d1('0x1'));var path=require(_0xf3d1('0x2'));var timeout=require(_0xf3d1('0x3'));var express=require(_0xf3d1('0x4'));var router=express[_0xf3d1('0x5')]();var fs_extra=require(_0xf3d1('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xf3d1('0x7'));var config=require(_0xf3d1('0x8'));var controller=require('./analyticTreeReport.controller');router['get']('/',auth[_0xf3d1('0x9')](),controller[_0xf3d1('0xa')]);router['get'](_0xf3d1('0xb'),auth[_0xf3d1('0x9')](),controller['show']);router['post']('/',auth[_0xf3d1('0x9')](),controller[_0xf3d1('0xc')]);router['put'](_0xf3d1('0xb'),auth['isAuthenticated'](),controller[_0xf3d1('0xd')]);router[_0xf3d1('0xe')]('/:id',auth[_0xf3d1('0x9')](),controller[_0xf3d1('0xf')]);module[_0xf3d1('0x10')]=router;