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