4a99320c5e82c52fd426a5eb52b54685f9e4cbeb
[motion2.git] / server / api / voiceRecording / 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 _0xf6c3=['put','destroy','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceRecording.controller','get','isAuthenticated','index','/describe','describe','/:id','download','/:id/downloads','downloads','post'];(function(_0x411a0d,_0x211f07){var _0x4a2405=function(_0x21d145){while(--_0x21d145){_0x411a0d['push'](_0x411a0d['shift']());}};_0x4a2405(++_0x211f07);}(_0xf6c3,0x10c));var _0x3f6c=function(_0x45e2fc,_0x5df76b){_0x45e2fc=_0x45e2fc-0x0;var _0x217eae=_0xf6c3[_0x45e2fc];return _0x217eae;};'use strict';var multer=require('multer');var util=require(_0x3f6c('0x0'));var path=require('path');var timeout=require(_0x3f6c('0x1'));var express=require(_0x3f6c('0x2'));var router=express[_0x3f6c('0x3')]();var auth=require(_0x3f6c('0x4'));var interaction=require(_0x3f6c('0x5'));var config=require('../../config/environment');var controller=require(_0x3f6c('0x6'));router[_0x3f6c('0x7')]('/',auth[_0x3f6c('0x8')](),controller[_0x3f6c('0x9')]);router[_0x3f6c('0x7')](_0x3f6c('0xa'),auth[_0x3f6c('0x8')](),controller[_0x3f6c('0xb')]);router[_0x3f6c('0x7')](_0x3f6c('0xc'),auth[_0x3f6c('0x8')](),controller['show']);router[_0x3f6c('0x7')]('/:id/download',auth[_0x3f6c('0x8')](),controller[_0x3f6c('0xd')]);router['get'](_0x3f6c('0xe'),controller[_0x3f6c('0xf')]);router[_0x3f6c('0x10')]('/',auth[_0x3f6c('0x8')](),controller['create']);router[_0x3f6c('0x11')]('/:id',auth[_0x3f6c('0x8')](),controller['update']);router['delete'](_0x3f6c('0xc'),auth[_0x3f6c('0x8')](),controller[_0x3f6c('0x12')]);module['exports']=router;