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 _0x567a=['../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','show','download','downloads','post','create','/:id','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x3e2708,_0x29ea9c){var _0x1ad64a=function(_0xa38717){while(--_0xa38717){_0x3e2708['push'](_0x3e2708['shift']());}};_0x1ad64a(++_0x29ea9c);}(_0x567a,0xbe));var _0xa567=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x567a[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xa567('0x0'));var util=require(_0xa567('0x1'));var path=require(_0xa567('0x2'));var timeout=require(_0xa567('0x3'));var express=require(_0xa567('0x4'));var router=express[_0xa567('0x5')]();var auth=require(_0xa567('0x6'));var interaction=require(_0xa567('0x7'));var config=require(_0xa567('0x8'));var controller=require(_0xa567('0x9'));router[_0xa567('0xa')]('/',auth[_0xa567('0xb')](),controller[_0xa567('0xc')]);router[_0xa567('0xa')]('/describe',auth['isAuthenticated'](),controller['describe']);router['get']('/:id',auth[_0xa567('0xb')](),controller[_0xa567('0xd')]);router['get']('/:id/download',auth[_0xa567('0xb')](),controller[_0xa567('0xe')]);router[_0xa567('0xa')]('/:id/downloads',controller[_0xa567('0xf')]);router[_0xa567('0x10')]('/',auth[_0xa567('0xb')](),controller[_0xa567('0x11')]);router['put'](_0xa567('0x12'),auth[_0xa567('0xb')](),controller['update']);router[_0xa567('0x13')](_0xa567('0x12'),auth[_0xa567('0xb')](),controller[_0xa567('0x14')]);module[_0xa567('0x15')]=router;