Built motion from commit ab870f9e.|2.5.44
[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 _0xf1f2=['delete','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/describe','describe','show','post','isAuthenticated','create','put','/:id','update'];(function(_0x1da20b,_0x315507){var _0x1a002a=function(_0x2af118){while(--_0x2af118){_0x1da20b['push'](_0x1da20b['shift']());}};_0x1a002a(++_0x315507);}(_0xf1f2,0x145));var _0x2f1f=function(_0x5280f4,_0x3c36d0){_0x5280f4=_0x5280f4-0x0;var _0xba93e7=_0xf1f2[_0x5280f4];return _0xba93e7;};'use strict';var multer=require('multer');var util=require(_0x2f1f('0x0'));var path=require(_0x2f1f('0x1'));var timeout=require(_0x2f1f('0x2'));var express=require('express');var router=express[_0x2f1f('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x2f1f('0x4'));var interaction=require(_0x2f1f('0x5'));var config=require(_0x2f1f('0x6'));var controller=require('./voiceAgentReport.controller');router[_0x2f1f('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x2f1f('0x7')](_0x2f1f('0x8'),auth['isAuthenticated'](),controller[_0x2f1f('0x9')]);router[_0x2f1f('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x2f1f('0xa')]);router[_0x2f1f('0xb')]('/',auth[_0x2f1f('0xc')](),controller[_0x2f1f('0xd')]);router[_0x2f1f('0xe')](_0x2f1f('0xf'),auth[_0x2f1f('0xc')](),controller[_0x2f1f('0x10')]);router[_0x2f1f('0x11')](_0x2f1f('0xf'),auth[_0x2f1f('0xc')](),controller['destroy']);module[_0x2f1f('0x12')]=router;