52e706fd13b8f3370660082101b99c71f168e62b
[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 _0x8b48=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','describe','show','post','put','/:id','delete','destroy','exports','multer','util','path'];(function(_0x385eb1,_0x497a94){var _0x5d40eb=function(_0x159029){while(--_0x159029){_0x385eb1['push'](_0x385eb1['shift']());}};_0x5d40eb(++_0x497a94);}(_0x8b48,0x95));var _0x88b4=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8b48[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x88b4('0x0'));var util=require(_0x88b4('0x1'));var path=require(_0x88b4('0x2'));var timeout=require(_0x88b4('0x3'));var express=require('express');var router=express[_0x88b4('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x88b4('0x5'));var interaction=require(_0x88b4('0x6'));var config=require(_0x88b4('0x7'));var controller=require('./voiceDialReport.controller');router['get']('/',auth[_0x88b4('0x8')](),controller[_0x88b4('0x9')]);router[_0x88b4('0xa')]('/describe',auth[_0x88b4('0x8')](),controller[_0x88b4('0xb')]);router[_0x88b4('0xa')]('/:id',auth[_0x88b4('0x8')](),controller[_0x88b4('0xc')]);router[_0x88b4('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x88b4('0xe')](_0x88b4('0xf'),auth[_0x88b4('0x8')](),controller['update']);router[_0x88b4('0x10')](_0x88b4('0xf'),auth[_0x88b4('0x8')](),controller[_0x88b4('0x11')]);module[_0x88b4('0x12')]=router;