Built motion from commit 1fa89557.|2.6.10
[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 _0x0ec5=['destroy','multer','path','Router','fs-extra','../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','describe','show','/:id/download','download','downloads','downloadTranscribe','post','create','/:id/transcribe','runTranscribe','put','/:id','update','delete'];(function(_0x149a22,_0x34daff){var _0x56cd18=function(_0x1db82c){while(--_0x1db82c){_0x149a22['push'](_0x149a22['shift']());}};_0x56cd18(++_0x34daff);}(_0x0ec5,0x199));var _0x50ec=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x0ec5[_0x2641f9];return _0x585741;};'use strict';var multer=require(_0x50ec('0x0'));var util=require('util');var path=require(_0x50ec('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x50ec('0x2')]();var fs_extra=require(_0x50ec('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x50ec('0x4'));var controller=require(_0x50ec('0x5'));router[_0x50ec('0x6')]('/',auth[_0x50ec('0x7')](),controller[_0x50ec('0x8')]);router['get']('/describe',auth[_0x50ec('0x7')](),controller[_0x50ec('0x9')]);router[_0x50ec('0x6')]('/:id',auth[_0x50ec('0x7')](),controller[_0x50ec('0xa')]);router[_0x50ec('0x6')](_0x50ec('0xb'),auth['isAuthenticated'](),controller[_0x50ec('0xc')]);router[_0x50ec('0x6')]('/:id/downloads',controller[_0x50ec('0xd')]);router['get']('/:id/transcribe',auth[_0x50ec('0x7')](),controller[_0x50ec('0xe')]);router[_0x50ec('0xf')]('/',auth['isAuthenticated'](),controller[_0x50ec('0x10')]);router[_0x50ec('0xf')](_0x50ec('0x11'),auth['isAuthenticated'](),controller[_0x50ec('0x12')]);router[_0x50ec('0x13')](_0x50ec('0x14'),auth['isAuthenticated'](),controller[_0x50ec('0x15')]);router[_0x50ec('0x16')](_0x50ec('0x14'),auth[_0x50ec('0x7')](),controller[_0x50ec('0x17')]);module['exports']=router;