8f18ca9153fc69a77dab59e39c3f20013d139b0d
[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 _0x203b=['express','Router','fs-extra','../../components/auth/service','../../config/environment','./voiceRecording.controller','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/downloads','/:id/transcribe','downloadTranscribe','post','create','runTranscribe','put','update','delete','exports','multer','util','path'];(function(_0x55c485,_0x3fe77e){var _0x6bb521=function(_0x466a3d){while(--_0x466a3d){_0x55c485['push'](_0x55c485['shift']());}};_0x6bb521(++_0x3fe77e);}(_0x203b,0xcd));var _0xb203=function(_0x4800ad,_0x1337e1){_0x4800ad=_0x4800ad-0x0;var _0x14c2b2=_0x203b[_0x4800ad];return _0x14c2b2;};'use strict';var multer=require(_0xb203('0x0'));var util=require(_0xb203('0x1'));var path=require(_0xb203('0x2'));var timeout=require('connect-timeout');var express=require(_0xb203('0x3'));var router=express[_0xb203('0x4')]();var fs_extra=require(_0xb203('0x5'));var auth=require(_0xb203('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xb203('0x7'));var controller=require(_0xb203('0x8'));router['get']('/',auth[_0xb203('0x9')](),controller[_0xb203('0xa')]);router[_0xb203('0xb')](_0xb203('0xc'),auth[_0xb203('0x9')](),controller[_0xb203('0xd')]);router[_0xb203('0xb')](_0xb203('0xe'),auth[_0xb203('0x9')](),controller[_0xb203('0xf')]);router[_0xb203('0xb')]('/:id/download',auth[_0xb203('0x9')](),controller['download']);router['get'](_0xb203('0x10'),controller['downloads']);router[_0xb203('0xb')](_0xb203('0x11'),auth[_0xb203('0x9')](),controller[_0xb203('0x12')]);router[_0xb203('0x13')]('/',auth[_0xb203('0x9')](),controller[_0xb203('0x14')]);router[_0xb203('0x13')](_0xb203('0x11'),auth[_0xb203('0x9')](),controller[_0xb203('0x15')]);router[_0xb203('0x16')](_0xb203('0xe'),auth[_0xb203('0x9')](),controller[_0xb203('0x17')]);router[_0xb203('0x18')](_0xb203('0xe'),auth[_0xb203('0x9')](),controller['destroy']);module[_0xb203('0x19')]=router;