Built motion from commit (unavailable).|2.5.27
[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 _0xfab5=['isAuthenticated','index','/describe','describe','/:id','show','download','downloads','/:id/transcribe','downloadTranscribe','create','destroy','multer','path','express','fs-extra','../../components/auth/service','get'];(function(_0x41930d,_0x478ed3){var _0x455ade=function(_0x24cb07){while(--_0x24cb07){_0x41930d['push'](_0x41930d['shift']());}};_0x455ade(++_0x478ed3);}(_0xfab5,0x78));var _0x5fab=function(_0x5a452e,_0x355a90){_0x5a452e=_0x5a452e-0x0;var _0x2c4c43=_0xfab5[_0x5a452e];return _0x2c4c43;};'use strict';var multer=require(_0x5fab('0x0'));var util=require('util');var path=require(_0x5fab('0x1'));var timeout=require('connect-timeout');var express=require(_0x5fab('0x2'));var router=express['Router']();var fs_extra=require(_0x5fab('0x3'));var auth=require(_0x5fab('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./voiceRecording.controller');router[_0x5fab('0x5')]('/',auth[_0x5fab('0x6')](),controller[_0x5fab('0x7')]);router[_0x5fab('0x5')](_0x5fab('0x8'),auth['isAuthenticated'](),controller[_0x5fab('0x9')]);router['get'](_0x5fab('0xa'),auth[_0x5fab('0x6')](),controller[_0x5fab('0xb')]);router[_0x5fab('0x5')]('/:id/download',auth[_0x5fab('0x6')](),controller[_0x5fab('0xc')]);router[_0x5fab('0x5')]('/:id/downloads',controller[_0x5fab('0xd')]);router['get'](_0x5fab('0xe'),auth[_0x5fab('0x6')](),controller[_0x5fab('0xf')]);router['post']('/',auth[_0x5fab('0x6')](),controller[_0x5fab('0x10')]);router['post']('/:id/transcribe',auth['isAuthenticated'](),controller['runTranscribe']);router['put']('/:id',auth[_0x5fab('0x6')](),controller['update']);router['delete'](_0x5fab('0xa'),auth['isAuthenticated'](),controller[_0x5fab('0x11')]);module['exports']=router;