Built motion from commit 0c5f406c.|2.6.29
[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 _0x4a87=['../../components/auth/service','../../components/interaction/service','get','/describe','isAuthenticated','describe','create','/:id','delete','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x2b1612,_0x1d52ef){var _0x5ad967=function(_0x38fa64){while(--_0x38fa64){_0x2b1612['push'](_0x2b1612['shift']());}};_0x5ad967(++_0x1d52ef);}(_0x4a87,0x7a));var _0x74a8=function(_0x480fc0,_0x1e22b1){_0x480fc0=_0x480fc0-0x0;var _0x7eba29=_0x4a87[_0x480fc0];return _0x7eba29;};'use strict';var multer=require(_0x74a8('0x0'));var util=require(_0x74a8('0x1'));var path=require(_0x74a8('0x2'));var timeout=require(_0x74a8('0x3'));var express=require(_0x74a8('0x4'));var router=express[_0x74a8('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x74a8('0x6'));var interaction=require(_0x74a8('0x7'));var config=require('../../config/environment');var controller=require('./voiceAgentReport.controller');router[_0x74a8('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x74a8('0x8')](_0x74a8('0x9'),auth[_0x74a8('0xa')](),controller[_0x74a8('0xb')]);router['get']('/:id',auth[_0x74a8('0xa')](),controller['show']);router['post']('/',auth[_0x74a8('0xa')](),controller[_0x74a8('0xc')]);router['put'](_0x74a8('0xd'),auth[_0x74a8('0xa')](),controller['update']);router[_0x74a8('0xe')](_0x74a8('0xd'),auth[_0x74a8('0xa')](),controller['destroy']);module[_0x74a8('0xf')]=router;