85664c852a8fca6585d32e417b11a56ee63e4881
[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 _0xb3ad=['path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get','index','/:id','show','post','isAuthenticated','put','update','delete','destroy','util'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xb3ad,0x120));var _0xdb3a=function(_0x5aa871,_0x2fa35a){_0x5aa871=_0x5aa871-0x0;var _0x565dff=_0xb3ad[_0x5aa871];return _0x565dff;};'use strict';var multer=require('multer');var util=require(_0xdb3a('0x0'));var path=require(_0xdb3a('0x1'));var timeout=require(_0xdb3a('0x2'));var express=require(_0xdb3a('0x3'));var router=express[_0xdb3a('0x4')]();var fs_extra=require(_0xdb3a('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xdb3a('0x6'));var config=require('../../config/environment');var controller=require('./analyticTreeReport.controller');router[_0xdb3a('0x7')]('/',auth['isAuthenticated'](),controller[_0xdb3a('0x8')]);router[_0xdb3a('0x7')](_0xdb3a('0x9'),auth['isAuthenticated'](),controller[_0xdb3a('0xa')]);router[_0xdb3a('0xb')]('/',auth[_0xdb3a('0xc')](),controller['create']);router[_0xdb3a('0xd')](_0xdb3a('0x9'),auth['isAuthenticated'](),controller[_0xdb3a('0xe')]);router[_0xdb3a('0xf')](_0xdb3a('0x9'),auth[_0xdb3a('0xc')](),controller[_0xdb3a('0x10')]);module['exports']=router;