Built motion from commit e38a297d.|2.6.18
[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 _0x6f0a=['multer','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','/:id','create','put','delete'];(function(_0xff65fd,_0x37cb55){var _0x141172=function(_0x54f62f){while(--_0x54f62f){_0xff65fd['push'](_0xff65fd['shift']());}};_0x141172(++_0x37cb55);}(_0x6f0a,0x186));var _0xa6f0=function(_0x10b7a5,_0xd3f792){_0x10b7a5=_0x10b7a5-0x0;var _0x1764b9=_0x6f0a[_0x10b7a5];return _0x1764b9;};'use strict';var multer=require(_0xa6f0('0x0'));var util=require('util');var path=require(_0xa6f0('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa6f0('0x2')]();var fs_extra=require(_0xa6f0('0x3'));var auth=require(_0xa6f0('0x4'));var interaction=require(_0xa6f0('0x5'));var config=require(_0xa6f0('0x6'));var controller=require('./voiceTransferReport.controller');router[_0xa6f0('0x7')]('/',auth[_0xa6f0('0x8')](),controller[_0xa6f0('0x9')]);router[_0xa6f0('0x7')]('/describe',auth[_0xa6f0('0x8')](),controller[_0xa6f0('0xa')]);router[_0xa6f0('0x7')](_0xa6f0('0xb'),auth[_0xa6f0('0x8')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xa6f0('0xc')]);router[_0xa6f0('0xd')]('/:id',auth[_0xa6f0('0x8')](),controller['update']);router[_0xa6f0('0xe')](_0xa6f0('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;