3dfb8dd1f7672ad101127eab86dbeec34ad33ded
[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 _0xca27=['/:id','update','destroy','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./voiceDialReport.controller','isAuthenticated','index','get','describe','post','create'];(function(_0x2384bb,_0x12f81b){var _0x3f2bac=function(_0x337ece){while(--_0x337ece){_0x2384bb['push'](_0x2384bb['shift']());}};_0x3f2bac(++_0x12f81b);}(_0xca27,0xbe));var _0x7ca2=function(_0x26cb9b,_0x1eb4da){_0x26cb9b=_0x26cb9b-0x0;var _0x2f94b5=_0xca27[_0x26cb9b];return _0x2f94b5;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x7ca2('0x0'));var timeout=require(_0x7ca2('0x1'));var express=require(_0x7ca2('0x2'));var router=express[_0x7ca2('0x3')]();var fs_extra=require(_0x7ca2('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x7ca2('0x5'));var config=require(_0x7ca2('0x6'));var controller=require(_0x7ca2('0x7'));router['get']('/',auth[_0x7ca2('0x8')](),controller[_0x7ca2('0x9')]);router[_0x7ca2('0xa')]('/describe',auth[_0x7ca2('0x8')](),controller[_0x7ca2('0xb')]);router[_0x7ca2('0xa')]('/:id',auth[_0x7ca2('0x8')](),controller['show']);router[_0x7ca2('0xc')]('/',auth[_0x7ca2('0x8')](),controller[_0x7ca2('0xd')]);router['put'](_0x7ca2('0xe'),auth[_0x7ca2('0x8')](),controller[_0x7ca2('0xf')]);router['delete'](_0x7ca2('0xe'),auth[_0x7ca2('0x8')](),controller[_0x7ca2('0x10')]);module['exports']=router;