4d1e01d79f9dcec74715ed7008b774f0ba43c03b
[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 _0xc657=['runTranscribe','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','/describe','describe','/:id','show','download','/:id/downloads','downloads','downloadTranscribe','post','create'];(function(_0x385571,_0x23b65a){var _0x107c01=function(_0x394db2){while(--_0x394db2){_0x385571['push'](_0x385571['shift']());}};_0x107c01(++_0x23b65a);}(_0xc657,0x1eb));var _0x7c65=function(_0x3fb317,_0x10fc02){_0x3fb317=_0x3fb317-0x0;var _0x30a817=_0xc657[_0x3fb317];return _0x30a817;};'use strict';var multer=require(_0x7c65('0x0'));var util=require(_0x7c65('0x1'));var path=require(_0x7c65('0x2'));var timeout=require(_0x7c65('0x3'));var express=require(_0x7c65('0x4'));var router=express[_0x7c65('0x5')]();var fs_extra=require(_0x7c65('0x6'));var auth=require(_0x7c65('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x7c65('0x8'));var controller=require(_0x7c65('0x9'));router[_0x7c65('0xa')]('/',auth[_0x7c65('0xb')](),controller['index']);router[_0x7c65('0xa')](_0x7c65('0xc'),auth[_0x7c65('0xb')](),controller[_0x7c65('0xd')]);router['get'](_0x7c65('0xe'),auth[_0x7c65('0xb')](),controller[_0x7c65('0xf')]);router[_0x7c65('0xa')]('/:id/download',auth['isAuthenticated'](),controller[_0x7c65('0x10')]);router['get'](_0x7c65('0x11'),controller[_0x7c65('0x12')]);router[_0x7c65('0xa')]('/:id/transcribe',auth['isAuthenticated'](),controller[_0x7c65('0x13')]);router[_0x7c65('0x14')]('/',auth[_0x7c65('0xb')](),controller[_0x7c65('0x15')]);router[_0x7c65('0x14')]('/:id/transcribe',auth[_0x7c65('0xb')](),controller[_0x7c65('0x16')]);router[_0x7c65('0x17')]('/:id',auth[_0x7c65('0xb')](),controller[_0x7c65('0x18')]);router[_0x7c65('0x19')](_0x7c65('0xe'),auth[_0x7c65('0xb')](),controller[_0x7c65('0x1a')]);module['exports']=router;