Built motion from commit (unavailable).|2.4.2
[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 _0x6a24=['util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceRecording.controller','get','index','describe','isAuthenticated','download','/:id/downloads','downloads','post','create','update','/:id','destroy','exports','multer'];(function(_0x1ed39d,_0x56e59b){var _0x44d058=function(_0x4d7d30){while(--_0x4d7d30){_0x1ed39d['push'](_0x1ed39d['shift']());}};_0x44d058(++_0x56e59b);}(_0x6a24,0xd1));var _0x46a2=function(_0x2b4dcb,_0xc2b8d9){_0x2b4dcb=_0x2b4dcb-0x0;var _0x152ea8=_0x6a24[_0x2b4dcb];return _0x152ea8;};'use strict';var multer=require(_0x46a2('0x0'));var util=require(_0x46a2('0x1'));var path=require('path');var timeout=require(_0x46a2('0x2'));var express=require(_0x46a2('0x3'));var router=express[_0x46a2('0x4')]();var auth=require(_0x46a2('0x5'));var interaction=require(_0x46a2('0x6'));var config=require('../../config/environment');var controller=require(_0x46a2('0x7'));router[_0x46a2('0x8')]('/',auth['isAuthenticated'](),controller[_0x46a2('0x9')]);router[_0x46a2('0x8')]('/describe',auth['isAuthenticated'](),controller[_0x46a2('0xa')]);router[_0x46a2('0x8')]('/:id',auth[_0x46a2('0xb')](),controller['show']);router[_0x46a2('0x8')]('/:id/download',auth[_0x46a2('0xb')](),controller[_0x46a2('0xc')]);router[_0x46a2('0x8')](_0x46a2('0xd'),controller[_0x46a2('0xe')]);router[_0x46a2('0xf')]('/',auth[_0x46a2('0xb')](),controller[_0x46a2('0x10')]);router['put']('/:id',auth[_0x46a2('0xb')](),controller[_0x46a2('0x11')]);router['delete'](_0x46a2('0x12'),auth[_0x46a2('0xb')](),controller[_0x46a2('0x13')]);module[_0x46a2('0x14')]=router;