Built motion from commit 013e4bb4.|2.6.18
[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 _0xab3d=['/:id','show','post','create','update','delete','exports','multer','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index'];(function(_0x3f97fd,_0x3474c7){var _0x5a2aa1=function(_0xe407b3){while(--_0xe407b3){_0x3f97fd['push'](_0x3f97fd['shift']());}};_0x5a2aa1(++_0x3474c7);}(_0xab3d,0x8e));var _0xdab3=function(_0x1dd167,_0x54b2cf){_0x1dd167=_0x1dd167-0x0;var _0x4bb1c3=_0xab3d[_0x1dd167];return _0x4bb1c3;};'use strict';var multer=require(_0xdab3('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xdab3('0x1')]();var fs_extra=require(_0xdab3('0x2'));var auth=require(_0xdab3('0x3'));var interaction=require(_0xdab3('0x4'));var config=require('../../config/environment');var controller=require('./analyticTreeReport.controller');router[_0xdab3('0x5')]('/',auth[_0xdab3('0x6')](),controller[_0xdab3('0x7')]);router[_0xdab3('0x5')](_0xdab3('0x8'),auth[_0xdab3('0x6')](),controller[_0xdab3('0x9')]);router[_0xdab3('0xa')]('/',auth['isAuthenticated'](),controller[_0xdab3('0xb')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xdab3('0xc')]);router[_0xdab3('0xd')](_0xdab3('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0xdab3('0xe')]=router;