320d12c514f5e8c96b55497b5189dd86b97b6889
[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 _0x4c60=['exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get','isAuthenticated','index','/describe','/:id','show','download','downloads','/:id/transcribe','downloadTranscribe','create','runTranscribe','put','update','delete','destroy'];(function(_0x59683e,_0x436b66){var _0xa25c28=function(_0x24f9fc){while(--_0x24f9fc){_0x59683e['push'](_0x59683e['shift']());}};_0xa25c28(++_0x436b66);}(_0x4c60,0x109));var _0x04c6=function(_0xa64936,_0x26f405){_0xa64936=_0xa64936-0x0;var _0x38e376=_0x4c60[_0xa64936];return _0x38e376;};'use strict';var multer=require(_0x04c6('0x0'));var util=require(_0x04c6('0x1'));var path=require('path');var timeout=require(_0x04c6('0x2'));var express=require(_0x04c6('0x3'));var router=express[_0x04c6('0x4')]();var fs_extra=require(_0x04c6('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x04c6('0x6'));var config=require('../../config/environment');var controller=require('./voiceRecording.controller');router[_0x04c6('0x7')]('/',auth[_0x04c6('0x8')](),controller[_0x04c6('0x9')]);router[_0x04c6('0x7')](_0x04c6('0xa'),auth['isAuthenticated'](),controller['describe']);router[_0x04c6('0x7')](_0x04c6('0xb'),auth[_0x04c6('0x8')](),controller[_0x04c6('0xc')]);router[_0x04c6('0x7')]('/:id/download',auth['isAuthenticated'](),controller[_0x04c6('0xd')]);router[_0x04c6('0x7')]('/:id/downloads',controller[_0x04c6('0xe')]);router['get'](_0x04c6('0xf'),auth['isAuthenticated'](),controller[_0x04c6('0x10')]);router['post']('/',auth[_0x04c6('0x8')](),controller[_0x04c6('0x11')]);router['post'](_0x04c6('0xf'),auth[_0x04c6('0x8')](),controller[_0x04c6('0x12')]);router[_0x04c6('0x13')](_0x04c6('0xb'),auth['isAuthenticated'](),controller[_0x04c6('0x14')]);router[_0x04c6('0x15')](_0x04c6('0xb'),auth[_0x04c6('0x8')](),controller[_0x04c6('0x16')]);module[_0x04c6('0x17')]=router;