dd5489e096446707bc5d0036c8cde5a73a470ea1
[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 _0xf496=['util','path','connect-timeout','Router','fs-extra','../../config/environment','./voiceAgentReport.controller','isAuthenticated','index','get','describe','create','/:id','update','delete','destroy','exports','multer'];(function(_0x2a2f6e,_0x5f488a){var _0x149fc0=function(_0x330d04){while(--_0x330d04){_0x2a2f6e['push'](_0x2a2f6e['shift']());}};_0x149fc0(++_0x5f488a);}(_0xf496,0x11f));var _0x6f49=function(_0xbb0a93,_0x2ee485){_0xbb0a93=_0xbb0a93-0x0;var _0x29a0de=_0xf496[_0xbb0a93];return _0x29a0de;};'use strict';var multer=require(_0x6f49('0x0'));var util=require(_0x6f49('0x1'));var path=require(_0x6f49('0x2'));var timeout=require(_0x6f49('0x3'));var express=require('express');var router=express[_0x6f49('0x4')]();var fs_extra=require(_0x6f49('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x6f49('0x6'));var controller=require(_0x6f49('0x7'));router['get']('/',auth[_0x6f49('0x8')](),controller[_0x6f49('0x9')]);router[_0x6f49('0xa')]('/describe',auth[_0x6f49('0x8')](),controller[_0x6f49('0xb')]);router[_0x6f49('0xa')]('/:id',auth[_0x6f49('0x8')](),controller['show']);router['post']('/',auth[_0x6f49('0x8')](),controller[_0x6f49('0xc')]);router['put'](_0x6f49('0xd'),auth[_0x6f49('0x8')](),controller[_0x6f49('0xe')]);router[_0x6f49('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x6f49('0x10')]);module[_0x6f49('0x11')]=router;