Built motion from commit (unavailable).|2.4.18
[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 _0xa686=['delete','destroy','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','/describe','describe','/:id','show','download','/:id/downloads','downloads','create','update'];(function(_0x44d9ab,_0x76bc69){var _0x31485e=function(_0x1e44ce){while(--_0x1e44ce){_0x44d9ab['push'](_0x44d9ab['shift']());}};_0x31485e(++_0x76bc69);}(_0xa686,0x15c));var _0x6a68=function(_0x2a58c8,_0x33b456){_0x2a58c8=_0x2a58c8-0x0;var _0x41b4e8=_0xa686[_0x2a58c8];return _0x41b4e8;};'use strict';var multer=require(_0x6a68('0x0'));var util=require(_0x6a68('0x1'));var path=require(_0x6a68('0x2'));var timeout=require('connect-timeout');var express=require(_0x6a68('0x3'));var router=express[_0x6a68('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x6a68('0x5'));var config=require(_0x6a68('0x6'));var controller=require(_0x6a68('0x7'));router[_0x6a68('0x8')]('/',auth[_0x6a68('0x9')](),controller[_0x6a68('0xa')]);router[_0x6a68('0x8')](_0x6a68('0xb'),auth[_0x6a68('0x9')](),controller[_0x6a68('0xc')]);router['get'](_0x6a68('0xd'),auth['isAuthenticated'](),controller[_0x6a68('0xe')]);router[_0x6a68('0x8')]('/:id/download',auth['isAuthenticated'](),controller[_0x6a68('0xf')]);router[_0x6a68('0x8')](_0x6a68('0x10'),controller[_0x6a68('0x11')]);router['post']('/',auth[_0x6a68('0x9')](),controller[_0x6a68('0x12')]);router['put'](_0x6a68('0xd'),auth['isAuthenticated'](),controller[_0x6a68('0x13')]);router[_0x6a68('0x14')]('/:id',auth[_0x6a68('0x9')](),controller[_0x6a68('0x15')]);module[_0x6a68('0x16')]=router;