8188d27a83eaf0f321baf12bfd47f8f59348f319
[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 _0x6988=['create','put','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./analyticTreeReport.controller','get','isAuthenticated','index','/:id','post'];(function(_0x4c260a,_0x148241){var _0x17bbdd=function(_0x4f3e9f){while(--_0x4f3e9f){_0x4c260a['push'](_0x4c260a['shift']());}};_0x17bbdd(++_0x148241);}(_0x6988,0x83));var _0x8698=function(_0x42be16,_0x1e5151){_0x42be16=_0x42be16-0x0;var _0x15a16f=_0x6988[_0x42be16];return _0x15a16f;};'use strict';var multer=require(_0x8698('0x0'));var util=require(_0x8698('0x1'));var path=require(_0x8698('0x2'));var timeout=require(_0x8698('0x3'));var express=require('express');var router=express[_0x8698('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x8698('0x5'));var interaction=require(_0x8698('0x6'));var config=require('../../config/environment');var controller=require(_0x8698('0x7'));router[_0x8698('0x8')]('/',auth[_0x8698('0x9')](),controller[_0x8698('0xa')]);router[_0x8698('0x8')](_0x8698('0xb'),auth[_0x8698('0x9')](),controller['show']);router[_0x8698('0xc')]('/',auth[_0x8698('0x9')](),controller[_0x8698('0xd')]);router[_0x8698('0xe')](_0x8698('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x8698('0xf')](_0x8698('0xb'),auth['isAuthenticated'](),controller[_0x8698('0x10')]);module[_0x8698('0x11')]=router;