a199a26df2ea98f22c81faf306e3cd571b5b41b8
[motion2.git] / server / api / voiceTransferReport / 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 _0x4c60=['connect-timeout','Router','get','isAuthenticated','index','/:id','show','create','put','destroy','exports','multer','util','path'];(function(_0x2a0d9e,_0x2ea46d){var _0x44b562=function(_0x2bb0f4){while(--_0x2bb0f4){_0x2a0d9e['push'](_0x2a0d9e['shift']());}};_0x44b562(++_0x2ea46d);}(_0x4c60,0xc1));var _0x04c6=function(_0x1b7d46,_0x21f455){_0x1b7d46=_0x1b7d46-0x0;var _0x102ae8=_0x4c60[_0x1b7d46];return _0x102ae8;};'use strict';var multer=require(_0x04c6('0x0'));var util=require(_0x04c6('0x1'));var path=require(_0x04c6('0x2'));var timeout=require(_0x04c6('0x3'));var express=require('express');var router=express[_0x04c6('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./voiceTransferReport.controller');router[_0x04c6('0x5')]('/',auth[_0x04c6('0x6')](),controller[_0x04c6('0x7')]);router[_0x04c6('0x5')](_0x04c6('0x8'),auth[_0x04c6('0x6')](),controller[_0x04c6('0x9')]);router['post']('/',auth[_0x04c6('0x6')](),controller[_0x04c6('0xa')]);router[_0x04c6('0xb')](_0x04c6('0x8'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x04c6('0x8'),auth['isAuthenticated'](),controller[_0x04c6('0xc')]);module[_0x04c6('0xd')]=router;