Built motion from commit fe909640.|2.6.8
[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 _0x313a=['util','connect-timeout','express','Router','fs-extra','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/download','/:id/downloads','/:id/transcribe','downloadTranscribe','post','runTranscribe','put','update','delete','destroy','exports'];(function(_0x38a244,_0x48006f){var _0x3b0237=function(_0x2b0456){while(--_0x2b0456){_0x38a244['push'](_0x38a244['shift']());}};_0x3b0237(++_0x48006f);}(_0x313a,0xd8));var _0xa313=function(_0xf0bcac,_0x531755){_0xf0bcac=_0xf0bcac-0x0;var _0x4e4c65=_0x313a[_0xf0bcac];return _0x4e4c65;};'use strict';var multer=require('multer');var util=require(_0xa313('0x0'));var path=require('path');var timeout=require(_0xa313('0x1'));var express=require(_0xa313('0x2'));var router=express[_0xa313('0x3')]();var fs_extra=require(_0xa313('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa313('0x5'));var controller=require('./voiceRecording.controller');router['get']('/',auth[_0xa313('0x6')](),controller[_0xa313('0x7')]);router[_0xa313('0x8')](_0xa313('0x9'),auth[_0xa313('0x6')](),controller[_0xa313('0xa')]);router['get'](_0xa313('0xb'),auth[_0xa313('0x6')](),controller[_0xa313('0xc')]);router['get'](_0xa313('0xd'),auth['isAuthenticated'](),controller['download']);router[_0xa313('0x8')](_0xa313('0xe'),controller['downloads']);router['get'](_0xa313('0xf'),auth['isAuthenticated'](),controller[_0xa313('0x10')]);router[_0xa313('0x11')]('/',auth[_0xa313('0x6')](),controller['create']);router[_0xa313('0x11')](_0xa313('0xf'),auth[_0xa313('0x6')](),controller[_0xa313('0x12')]);router[_0xa313('0x13')](_0xa313('0xb'),auth['isAuthenticated'](),controller[_0xa313('0x14')]);router[_0xa313('0x15')](_0xa313('0xb'),auth[_0xa313('0x6')](),controller[_0xa313('0x16')]);module[_0xa313('0x17')]=router;