ecc2fc2ab56580b03b5e31f64cf659110a7ce9a6
[motion2.git] / server / api / voiceDialReport / 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 _0xff37=['/describe','describe','/:id','post','put','destroy','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceDialReport.controller','isAuthenticated','index','get'];(function(_0x3d72a2,_0x3d5a71){var _0x33acc6=function(_0x46ca8a){while(--_0x46ca8a){_0x3d72a2['push'](_0x3d72a2['shift']());}};_0x33acc6(++_0x3d5a71);}(_0xff37,0x116));var _0x7ff3=function(_0x3a45e0,_0xb1bb6c){_0x3a45e0=_0x3a45e0-0x0;var _0x2648de=_0xff37[_0x3a45e0];return _0x2648de;};'use strict';var multer=require('multer');var util=require(_0x7ff3('0x0'));var path=require('path');var timeout=require(_0x7ff3('0x1'));var express=require(_0x7ff3('0x2'));var router=express[_0x7ff3('0x3')]();var auth=require(_0x7ff3('0x4'));var interaction=require(_0x7ff3('0x5'));var config=require(_0x7ff3('0x6'));var controller=require(_0x7ff3('0x7'));router['get']('/',auth[_0x7ff3('0x8')](),controller[_0x7ff3('0x9')]);router[_0x7ff3('0xa')](_0x7ff3('0xb'),auth['isAuthenticated'](),controller[_0x7ff3('0xc')]);router[_0x7ff3('0xa')](_0x7ff3('0xd'),auth[_0x7ff3('0x8')](),controller['show']);router[_0x7ff3('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0x7ff3('0xf')]('/:id',auth[_0x7ff3('0x8')](),controller['update']);router['delete']('/:id',auth[_0x7ff3('0x8')](),controller[_0x7ff3('0x10')]);module['exports']=router;