Built motion from commit 3c2ce842.|2.6.31
[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 _0x2a02=['update','delete','destroy','exports','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','index','/describe','isAuthenticated','show','/:id/download','/:id/downloads','/:id/transcribe','downloadTranscribe','post','create','runTranscribe','put','/:id'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x2a02,0xa0));var _0x22a0=function(_0x28f32c,_0x4cc342){_0x28f32c=_0x28f32c-0x0;var _0x355402=_0x2a02[_0x28f32c];return _0x355402;};'use strict';var multer=require('multer');var util=require(_0x22a0('0x0'));var path=require(_0x22a0('0x1'));var timeout=require('connect-timeout');var express=require(_0x22a0('0x2'));var router=express[_0x22a0('0x3')]();var fs_extra=require(_0x22a0('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x22a0('0x5'));var config=require(_0x22a0('0x6'));var controller=require(_0x22a0('0x7'));router[_0x22a0('0x8')]('/',auth['isAuthenticated'](),controller[_0x22a0('0x9')]);router[_0x22a0('0x8')](_0x22a0('0xa'),auth[_0x22a0('0xb')](),controller['describe']);router[_0x22a0('0x8')]('/:id',auth[_0x22a0('0xb')](),controller[_0x22a0('0xc')]);router['get'](_0x22a0('0xd'),auth[_0x22a0('0xb')](),controller['download']);router[_0x22a0('0x8')](_0x22a0('0xe'),controller['downloads']);router[_0x22a0('0x8')](_0x22a0('0xf'),auth[_0x22a0('0xb')](),controller[_0x22a0('0x10')]);router[_0x22a0('0x11')]('/',auth[_0x22a0('0xb')](),controller[_0x22a0('0x12')]);router[_0x22a0('0x11')](_0x22a0('0xf'),auth[_0x22a0('0xb')](),controller[_0x22a0('0x13')]);router[_0x22a0('0x14')](_0x22a0('0x15'),auth[_0x22a0('0xb')](),controller[_0x22a0('0x16')]);router[_0x22a0('0x17')](_0x22a0('0x15'),auth[_0x22a0('0xb')](),controller[_0x22a0('0x18')]);module[_0x22a0('0x19')]=router;