Built motion from commit c738b9ac.|2.6.25
[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 _0x734c=['/:id/download','download','/:id/downloads','downloads','downloadTranscribe','post','create','/:id/transcribe','runTranscribe','put','update','delete','exports','multer','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','describe','/:id','isAuthenticated'];(function(_0x2296e,_0x2af897){var _0x122382=function(_0x534bd9){while(--_0x534bd9){_0x2296e['push'](_0x2296e['shift']());}};_0x122382(++_0x2af897);}(_0x734c,0x175));var _0xc734=function(_0x19e06b,_0x251f9b){_0x19e06b=_0x19e06b-0x0;var _0x4fc2bf=_0x734c[_0x19e06b];return _0x4fc2bf;};'use strict';var multer=require(_0xc734('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0xc734('0x1'));var auth=require(_0xc734('0x2'));var interaction=require(_0xc734('0x3'));var config=require(_0xc734('0x4'));var controller=require('./voiceRecording.controller');router[_0xc734('0x5')]('/',auth['isAuthenticated'](),controller[_0xc734('0x6')]);router[_0xc734('0x5')](_0xc734('0x7'),auth['isAuthenticated'](),controller[_0xc734('0x8')]);router['get'](_0xc734('0x9'),auth[_0xc734('0xa')](),controller['show']);router['get'](_0xc734('0xb'),auth[_0xc734('0xa')](),controller[_0xc734('0xc')]);router['get'](_0xc734('0xd'),controller[_0xc734('0xe')]);router[_0xc734('0x5')]('/:id/transcribe',auth[_0xc734('0xa')](),controller[_0xc734('0xf')]);router[_0xc734('0x10')]('/',auth[_0xc734('0xa')](),controller[_0xc734('0x11')]);router['post'](_0xc734('0x12'),auth[_0xc734('0xa')](),controller[_0xc734('0x13')]);router[_0xc734('0x14')](_0xc734('0x9'),auth[_0xc734('0xa')](),controller[_0xc734('0x15')]);router[_0xc734('0x16')](_0xc734('0x9'),auth[_0xc734('0xa')](),controller['destroy']);module[_0xc734('0x17')]=router;