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