ddd20e20061296cedc7016fea6c390718a8e360e
[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 _0xa1ab=['Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','post','put','/:id','update','exports','path','express'];(function(_0x527824,_0xc824a9){var _0xc8b8ed=function(_0x1b0e19){while(--_0x1b0e19){_0x527824['push'](_0x527824['shift']());}};_0xc8b8ed(++_0xc824a9);}(_0xa1ab,0x1ae));var _0xba1a=function(_0x59369f,_0x51c98b){_0x59369f=_0x59369f-0x0;var _0x91e247=_0xa1ab[_0x59369f];return _0x91e247;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xba1a('0x0'));var timeout=require('connect-timeout');var express=require(_0xba1a('0x1'));var router=express[_0xba1a('0x2')]();var fs_extra=require(_0xba1a('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xba1a('0x4'));var config=require(_0xba1a('0x5'));var controller=require('./voiceAgentReport.controller');router[_0xba1a('0x6')]('/',auth[_0xba1a('0x7')](),controller[_0xba1a('0x8')]);router[_0xba1a('0x6')](_0xba1a('0x9'),auth[_0xba1a('0x7')](),controller[_0xba1a('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0xba1a('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0xba1a('0xc')](_0xba1a('0xd'),auth[_0xba1a('0x7')](),controller[_0xba1a('0xe')]);router['delete'](_0xba1a('0xd'),auth[_0xba1a('0x7')](),controller['destroy']);module[_0xba1a('0xf')]=router;