aa85acc992bc6b2a02bfc81e937ea66bae3c5d69
[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 _0x7510=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./analyticTreeReport.controller','get','isAuthenticated','index','show','post','create','/:id','update','exports','multer'];(function(_0x3af492,_0x3a8820){var _0x54749d=function(_0x561990){while(--_0x561990){_0x3af492['push'](_0x3af492['shift']());}};_0x54749d(++_0x3a8820);}(_0x7510,0x1e5));var _0x0751=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0x7510[_0x3947c9];return _0x2e7871;};'use strict';var multer=require(_0x0751('0x0'));var util=require('util');var path=require(_0x0751('0x1'));var timeout=require(_0x0751('0x2'));var express=require(_0x0751('0x3'));var router=express[_0x0751('0x4')]();var fs_extra=require(_0x0751('0x5'));var auth=require(_0x0751('0x6'));var interaction=require(_0x0751('0x7'));var config=require('../../config/environment');var controller=require(_0x0751('0x8'));router[_0x0751('0x9')]('/',auth[_0x0751('0xa')](),controller[_0x0751('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x0751('0xc')]);router[_0x0751('0xd')]('/',auth[_0x0751('0xa')](),controller[_0x0751('0xe')]);router['put'](_0x0751('0xf'),auth[_0x0751('0xa')](),controller[_0x0751('0x10')]);router['delete']('/:id',auth[_0x0751('0xa')](),controller['destroy']);module[_0x0751('0x11')]=router;