Built motion from commit 753c950e.|2.5.42
[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 _0x965d=['isAuthenticated','/:id','show','post','create','update','destroy','exports','multer','util','path','express','Router','../../components/auth/service','./analyticTreeReport.controller','get'];(function(_0x4f35f4,_0x51a8c3){var _0x2e9a70=function(_0x110aca){while(--_0x110aca){_0x4f35f4['push'](_0x4f35f4['shift']());}};_0x2e9a70(++_0x51a8c3);}(_0x965d,0xa8));var _0xd965=function(_0x3d347c,_0x110b23){_0x3d347c=_0x3d347c-0x0;var _0x3b8632=_0x965d[_0x3d347c];return _0x3b8632;};'use strict';var multer=require(_0xd965('0x0'));var util=require(_0xd965('0x1'));var path=require(_0xd965('0x2'));var timeout=require('connect-timeout');var express=require(_0xd965('0x3'));var router=express[_0xd965('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xd965('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xd965('0x6'));router[_0xd965('0x7')]('/',auth[_0xd965('0x8')](),controller['index']);router[_0xd965('0x7')](_0xd965('0x9'),auth[_0xd965('0x8')](),controller[_0xd965('0xa')]);router[_0xd965('0xb')]('/',auth['isAuthenticated'](),controller[_0xd965('0xc')]);router['put'](_0xd965('0x9'),auth[_0xd965('0x8')](),controller[_0xd965('0xd')]);router['delete'](_0xd965('0x9'),auth['isAuthenticated'](),controller[_0xd965('0xe')]);module[_0xd965('0xf')]=router;