Built motion from commit 52c8a02d.|2.6.29
[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 _0x4db0=['download','downloads','/:id/transcribe','downloadTranscribe','post','create','runTranscribe','put','update','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceRecording.controller','isAuthenticated','index','/describe','describe','get','/:id','show','/:id/download'];(function(_0x45fba4,_0x5ce82a){var _0x3e85fe=function(_0x449d48){while(--_0x449d48){_0x45fba4['push'](_0x45fba4['shift']());}};_0x3e85fe(++_0x5ce82a);}(_0x4db0,0x175));var _0x04db=function(_0x132d9e,_0x4a0839){_0x132d9e=_0x132d9e-0x0;var _0x40b733=_0x4db0[_0x132d9e];return _0x40b733;};'use strict';var multer=require(_0x04db('0x0'));var util=require(_0x04db('0x1'));var path=require(_0x04db('0x2'));var timeout=require(_0x04db('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x04db('0x4'));var auth=require(_0x04db('0x5'));var interaction=require(_0x04db('0x6'));var config=require(_0x04db('0x7'));var controller=require(_0x04db('0x8'));router['get']('/',auth[_0x04db('0x9')](),controller[_0x04db('0xa')]);router['get'](_0x04db('0xb'),auth['isAuthenticated'](),controller[_0x04db('0xc')]);router[_0x04db('0xd')](_0x04db('0xe'),auth['isAuthenticated'](),controller[_0x04db('0xf')]);router['get'](_0x04db('0x10'),auth[_0x04db('0x9')](),controller[_0x04db('0x11')]);router['get']('/:id/downloads',controller[_0x04db('0x12')]);router[_0x04db('0xd')](_0x04db('0x13'),auth[_0x04db('0x9')](),controller[_0x04db('0x14')]);router[_0x04db('0x15')]('/',auth['isAuthenticated'](),controller[_0x04db('0x16')]);router['post'](_0x04db('0x13'),auth[_0x04db('0x9')](),controller[_0x04db('0x17')]);router[_0x04db('0x18')](_0x04db('0xe'),auth[_0x04db('0x9')](),controller[_0x04db('0x19')]);router['delete'](_0x04db('0xe'),auth[_0x04db('0x9')](),controller['destroy']);module['exports']=router;