3f987a7b4f21ab5c0e98cef01388fd06634968e4
[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 _0x5e32=['express','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/describe','describe','post','create','/:id','update','delete','destroy','exports','multer'];(function(_0xc469ff,_0x4a2cfa){var _0x579fd7=function(_0x57cd1d){while(--_0x57cd1d){_0xc469ff['push'](_0xc469ff['shift']());}};_0x579fd7(++_0x4a2cfa);}(_0x5e32,0x17f));var _0x25e3=function(_0x96de37,_0x1a0413){_0x96de37=_0x96de37-0x0;var _0x500f75=_0x5e32[_0x96de37];return _0x500f75;};'use strict';var multer=require(_0x25e3('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x25e3('0x1'));var router=express['Router']();var fs_extra=require(_0x25e3('0x2'));var auth=require(_0x25e3('0x3'));var interaction=require(_0x25e3('0x4'));var config=require('../../config/environment');var controller=require('./voiceAgentReport.controller');router[_0x25e3('0x5')]('/',auth[_0x25e3('0x6')](),controller['index']);router[_0x25e3('0x5')](_0x25e3('0x7'),auth['isAuthenticated'](),controller[_0x25e3('0x8')]);router[_0x25e3('0x5')]('/:id',auth[_0x25e3('0x6')](),controller['show']);router[_0x25e3('0x9')]('/',auth[_0x25e3('0x6')](),controller[_0x25e3('0xa')]);router['put'](_0x25e3('0xb'),auth[_0x25e3('0x6')](),controller[_0x25e3('0xc')]);router[_0x25e3('0xd')](_0x25e3('0xb'),auth['isAuthenticated'](),controller[_0x25e3('0xe')]);module[_0x25e3('0xf')]=router;