bbcca7d573c922f05a7cf4071ad2f65f2f49832a
[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 _0xe962=['multer','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','show','/:id/download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','put','update','delete','/:id','destroy','exports'];(function(_0x3926ba,_0x237901){var _0x18756e=function(_0x5ca849){while(--_0x5ca849){_0x3926ba['push'](_0x3926ba['shift']());}};_0x18756e(++_0x237901);}(_0xe962,0x19e));var _0x2e96=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xe962[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0x2e96('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x2e96('0x1'));var express=require(_0x2e96('0x2'));var router=express['Router']();var fs_extra=require(_0x2e96('0x3'));var auth=require(_0x2e96('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x2e96('0x5'));var controller=require('./voiceRecording.controller');router[_0x2e96('0x6')]('/',auth[_0x2e96('0x7')](),controller[_0x2e96('0x8')]);router[_0x2e96('0x6')](_0x2e96('0x9'),auth[_0x2e96('0x7')](),controller['describe']);router[_0x2e96('0x6')]('/:id',auth[_0x2e96('0x7')](),controller[_0x2e96('0xa')]);router[_0x2e96('0x6')](_0x2e96('0xb'),auth['isAuthenticated'](),controller['download']);router['get'](_0x2e96('0xc'),controller[_0x2e96('0xd')]);router[_0x2e96('0x6')](_0x2e96('0xe'),auth[_0x2e96('0x7')](),controller[_0x2e96('0xf')]);router[_0x2e96('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0x2e96('0x10')](_0x2e96('0xe'),auth['isAuthenticated'](),controller['runTranscribe']);router[_0x2e96('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x2e96('0x12')]);router[_0x2e96('0x13')](_0x2e96('0x14'),auth[_0x2e96('0x7')](),controller[_0x2e96('0x15')]);module[_0x2e96('0x16')]=router;