660188bf1bcc30129e1107d52290f4b8601deabe
[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 _0xc99f=['Router','fs-extra','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','isAuthenticated','/:id','create','put','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x21da75,_0x5c12f5){var _0x5ce5d6=function(_0xfcbd00){while(--_0xfcbd00){_0x21da75['push'](_0x21da75['shift']());}};_0x5ce5d6(++_0x5c12f5);}(_0xc99f,0x15b));var _0xfc99=function(_0x4cefbc,_0x3ffa6c){_0x4cefbc=_0x4cefbc-0x0;var _0x423c86=_0xc99f[_0x4cefbc];return _0x423c86;};'use strict';var multer=require(_0xfc99('0x0'));var util=require(_0xfc99('0x1'));var path=require(_0xfc99('0x2'));var timeout=require(_0xfc99('0x3'));var express=require(_0xfc99('0x4'));var router=express[_0xfc99('0x5')]();var fs_extra=require(_0xfc99('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xfc99('0x7'));var config=require(_0xfc99('0x8'));var controller=require(_0xfc99('0x9'));router['get']('/',auth[_0xfc99('0xa')](),controller['index']);router['get'](_0xfc99('0xb'),auth[_0xfc99('0xa')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xfc99('0xc')]);router[_0xfc99('0xd')](_0xfc99('0xb'),auth[_0xfc99('0xa')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xfc99('0xe')]);module[_0xfc99('0xf')]=router;