Built motion from commit 5293bb2a.|2.6.30
[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 _0xd5ad=['delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','download','downloads','/:id/transcribe','downloadTranscribe','post','create','runTranscribe','put'];(function(_0x569d3d,_0x746e94){var _0x20d13=function(_0x52bd3a){while(--_0x52bd3a){_0x569d3d['push'](_0x569d3d['shift']());}};_0x20d13(++_0x746e94);}(_0xd5ad,0xa5));var _0xdd5a=function(_0x10b64e,_0x3cb8bb){_0x10b64e=_0x10b64e-0x0;var _0x35ff06=_0xd5ad[_0x10b64e];return _0x35ff06;};'use strict';var multer=require(_0xdd5a('0x0'));var util=require(_0xdd5a('0x1'));var path=require(_0xdd5a('0x2'));var timeout=require(_0xdd5a('0x3'));var express=require(_0xdd5a('0x4'));var router=express[_0xdd5a('0x5')]();var fs_extra=require(_0xdd5a('0x6'));var auth=require(_0xdd5a('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xdd5a('0x8'));var controller=require('./voiceRecording.controller');router[_0xdd5a('0x9')]('/',auth[_0xdd5a('0xa')](),controller[_0xdd5a('0xb')]);router[_0xdd5a('0x9')](_0xdd5a('0xc'),auth[_0xdd5a('0xa')](),controller[_0xdd5a('0xd')]);router[_0xdd5a('0x9')](_0xdd5a('0xe'),auth['isAuthenticated'](),controller[_0xdd5a('0xf')]);router[_0xdd5a('0x9')]('/:id/download',auth['isAuthenticated'](),controller[_0xdd5a('0x10')]);router[_0xdd5a('0x9')]('/:id/downloads',controller[_0xdd5a('0x11')]);router[_0xdd5a('0x9')](_0xdd5a('0x12'),auth[_0xdd5a('0xa')](),controller[_0xdd5a('0x13')]);router[_0xdd5a('0x14')]('/',auth['isAuthenticated'](),controller[_0xdd5a('0x15')]);router[_0xdd5a('0x14')](_0xdd5a('0x12'),auth['isAuthenticated'](),controller[_0xdd5a('0x16')]);router[_0xdd5a('0x17')]('/:id',auth[_0xdd5a('0xa')](),controller['update']);router[_0xdd5a('0x18')]('/:id',auth['isAuthenticated'](),controller[_0xdd5a('0x19')]);module[_0xdd5a('0x1a')]=router;