Built motion from commit b0a9a629.|2.6.33
[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 _0x6f6f=['destroy','exports','multer','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','get','isAuthenticated','index','show','create','put','/:id','update'];(function(_0x2995d1,_0x3fcca3){var _0x43fab8=function(_0x2eae52){while(--_0x2eae52){_0x2995d1['push'](_0x2995d1['shift']());}};_0x43fab8(++_0x3fcca3);}(_0x6f6f,0x122));var _0xf6f6=function(_0xd1d08c,_0x300f41){_0xd1d08c=_0xd1d08c-0x0;var _0x5263cf=_0x6f6f[_0xd1d08c];return _0x5263cf;};'use strict';var multer=require(_0xf6f6('0x0'));var util=require(_0xf6f6('0x1'));var path=require(_0xf6f6('0x2'));var timeout=require(_0xf6f6('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xf6f6('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xf6f6('0x5'));var config=require(_0xf6f6('0x6'));var controller=require(_0xf6f6('0x7'));router[_0xf6f6('0x8')]('/',auth[_0xf6f6('0x9')](),controller[_0xf6f6('0xa')]);router[_0xf6f6('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xf6f6('0xb')]);router['post']('/',auth[_0xf6f6('0x9')](),controller[_0xf6f6('0xc')]);router[_0xf6f6('0xd')](_0xf6f6('0xe'),auth[_0xf6f6('0x9')](),controller[_0xf6f6('0xf')]);router['delete'](_0xf6f6('0xe'),auth[_0xf6f6('0x9')](),controller[_0xf6f6('0x10')]);module[_0xf6f6('0x11')]=router;