Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / voiceAgentReport / 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 _0x112b=['create','/:id','destroy','util','path','Router','../../components/auth/service','index','get','/describe','isAuthenticated','describe','show','post'];(function(_0x58af0b,_0x52fbf5){var _0x210c68=function(_0x136bdc){while(--_0x136bdc){_0x58af0b['push'](_0x58af0b['shift']());}};_0x210c68(++_0x52fbf5);}(_0x112b,0x1d1));var _0xb112=function(_0x5bd626,_0xdbf46d){_0x5bd626=_0x5bd626-0x0;var _0x2661ca=_0x112b[_0x5bd626];return _0x2661ca;};'use strict';var multer=require('multer');var util=require(_0xb112('0x0'));var path=require(_0xb112('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb112('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xb112('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./voiceAgentReport.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xb112('0x4')]);router[_0xb112('0x5')](_0xb112('0x6'),auth[_0xb112('0x7')](),controller[_0xb112('0x8')]);router[_0xb112('0x5')]('/:id',auth['isAuthenticated'](),controller[_0xb112('0x9')]);router[_0xb112('0xa')]('/',auth['isAuthenticated'](),controller[_0xb112('0xb')]);router['put']('/:id',auth[_0xb112('0x7')](),controller['update']);router['delete'](_0xb112('0xc'),auth[_0xb112('0x7')](),controller[_0xb112('0xd')]);module['exports']=router;