Built motion from commit (unavailable).|2.5.30
[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 _0xf525=['delete','/:id','destroy','exports','multer','util','connect-timeout','express','Router','../../config/environment','get','index','isAuthenticated','post','update'];(function(_0x20f2fe,_0x2ded18){var _0x3e4593=function(_0x3adaae){while(--_0x3adaae){_0x20f2fe['push'](_0x20f2fe['shift']());}};_0x3e4593(++_0x2ded18);}(_0xf525,0x13f));var _0x5f52=function(_0x465781,_0x572265){_0x465781=_0x465781-0x0;var _0x2d2586=_0xf525[_0x465781];return _0x2d2586;};'use strict';var multer=require(_0x5f52('0x0'));var util=require(_0x5f52('0x1'));var path=require('path');var timeout=require(_0x5f52('0x2'));var express=require(_0x5f52('0x3'));var router=express[_0x5f52('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x5f52('0x5'));var controller=require('./analyticTreeReport.controller');router[_0x5f52('0x6')]('/',auth['isAuthenticated'](),controller[_0x5f52('0x7')]);router[_0x5f52('0x6')]('/:id',auth[_0x5f52('0x8')](),controller['show']);router[_0x5f52('0x9')]('/',auth[_0x5f52('0x8')](),controller['create']);router['put']('/:id',auth[_0x5f52('0x8')](),controller[_0x5f52('0xa')]);router[_0x5f52('0xb')](_0x5f52('0xc'),auth[_0x5f52('0x8')](),controller[_0x5f52('0xd')]);module[_0x5f52('0xe')]=router;