ab1d915bbf709a5655a1e801196044a1a800bf89
[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 _0x120d=['create','delete','destroy','exports','express','../../config/environment','get','isAuthenticated','index','/:id','post'];(function(_0x49052b,_0x3ba709){var _0x48c045=function(_0x41ac38){while(--_0x41ac38){_0x49052b['push'](_0x49052b['shift']());}};_0x48c045(++_0x3ba709);}(_0x120d,0x1a6));var _0xd120=function(_0x28b4cd,_0x573ff1){_0x28b4cd=_0x28b4cd-0x0;var _0x4229cc=_0x120d[_0x28b4cd];return _0x4229cc;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xd120('0x0'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xd120('0x1'));var controller=require('./analyticTreeReport.controller');router[_0xd120('0x2')]('/',auth[_0xd120('0x3')](),controller[_0xd120('0x4')]);router[_0xd120('0x2')](_0xd120('0x5'),auth[_0xd120('0x3')](),controller['show']);router[_0xd120('0x6')]('/',auth[_0xd120('0x3')](),controller[_0xd120('0x7')]);router['put'](_0xd120('0x5'),auth[_0xd120('0x3')](),controller['update']);router[_0xd120('0x8')](_0xd120('0x5'),auth['isAuthenticated'](),controller[_0xd120('0x9')]);module[_0xd120('0xa')]=router;