4f9d370a87a8a74054fec95fc0ac94dbb7aa0a47
[motion2.git] / server / api / voiceCallReport / 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 _0x52d2=['Router','../../components/interaction/service','./voiceCallReport.controller','isAuthenticated','index','get','/describe','describe','/:id','show','post','create','update','destroy','multer','util','path','connect-timeout','express'];(function(_0x1c1d7a,_0x3476b6){var _0x4e077c=function(_0x35ad83){while(--_0x35ad83){_0x1c1d7a['push'](_0x1c1d7a['shift']());}};_0x4e077c(++_0x3476b6);}(_0x52d2,0x13e));var _0x252d=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x52d2[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x252d('0x0'));var util=require(_0x252d('0x1'));var path=require(_0x252d('0x2'));var timeout=require(_0x252d('0x3'));var express=require(_0x252d('0x4'));var router=express[_0x252d('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x252d('0x6'));var config=require('../../config/environment');var controller=require(_0x252d('0x7'));router['get']('/',auth[_0x252d('0x8')](),controller[_0x252d('0x9')]);router[_0x252d('0xa')](_0x252d('0xb'),auth[_0x252d('0x8')](),controller[_0x252d('0xc')]);router[_0x252d('0xa')](_0x252d('0xd'),auth[_0x252d('0x8')](),controller[_0x252d('0xe')]);router[_0x252d('0xf')]('/',auth['isAuthenticated'](),controller[_0x252d('0x10')]);router['put'](_0x252d('0xd'),auth[_0x252d('0x8')](),controller[_0x252d('0x11')]);router['delete'](_0x252d('0xd'),auth[_0x252d('0x8')](),controller[_0x252d('0x12')]);module['exports']=router;