8afe57e0b6747dfae5d86060c4b54df5778535ff
[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 _0x82fe=['update','delete','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','index','/describe','describe','get','isAuthenticated','show','create'];(function(_0x424900,_0x5565b8){var _0x32968d=function(_0x1255c9){while(--_0x1255c9){_0x424900['push'](_0x424900['shift']());}};_0x32968d(++_0x5565b8);}(_0x82fe,0x1ef));var _0xe82f=function(_0x4f75b5,_0x4db76d){_0x4f75b5=_0x4f75b5-0x0;var _0x5c263b=_0x82fe[_0x4f75b5];return _0x5c263b;};'use strict';var multer=require(_0xe82f('0x0'));var util=require(_0xe82f('0x1'));var path=require(_0xe82f('0x2'));var timeout=require(_0xe82f('0x3'));var express=require('express');var router=express[_0xe82f('0x4')]();var auth=require(_0xe82f('0x5'));var interaction=require(_0xe82f('0x6'));var config=require(_0xe82f('0x7'));var controller=require('./voiceCallReport.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xe82f('0x8')]);router['get'](_0xe82f('0x9'),auth['isAuthenticated'](),controller[_0xe82f('0xa')]);router[_0xe82f('0xb')]('/:id',auth[_0xe82f('0xc')](),controller[_0xe82f('0xd')]);router['post']('/',auth[_0xe82f('0xc')](),controller[_0xe82f('0xe')]);router['put']('/:id',auth[_0xe82f('0xc')](),controller[_0xe82f('0xf')]);router[_0xe82f('0x10')]('/:id',auth[_0xe82f('0xc')](),controller['destroy']);module['exports']=router;