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