9ec80ddb6de15412b87e2c1e4b319069f19a16b7
[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 _0x9cbd=['index','/describe','describe','show','/:id/download','download','downloads','/:id/transcribe','downloadTranscribe','post','runTranscribe','put','/:id','update','delete','destroy','exports','multer','util','path','express','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated'];(function(_0x19a5d8,_0x347207){var _0x30104a=function(_0x292695){while(--_0x292695){_0x19a5d8['push'](_0x19a5d8['shift']());}};_0x30104a(++_0x347207);}(_0x9cbd,0x93));var _0xd9cb=function(_0xed3162,_0x2e6637){_0xed3162=_0xed3162-0x0;var _0x17aa90=_0x9cbd[_0xed3162];return _0x17aa90;};'use strict';var multer=require(_0xd9cb('0x0'));var util=require(_0xd9cb('0x1'));var path=require(_0xd9cb('0x2'));var timeout=require('connect-timeout');var express=require(_0xd9cb('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xd9cb('0x4'));var config=require(_0xd9cb('0x5'));var controller=require(_0xd9cb('0x6'));router[_0xd9cb('0x7')]('/',auth[_0xd9cb('0x8')](),controller[_0xd9cb('0x9')]);router[_0xd9cb('0x7')](_0xd9cb('0xa'),auth[_0xd9cb('0x8')](),controller[_0xd9cb('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xd9cb('0xc')]);router['get'](_0xd9cb('0xd'),auth[_0xd9cb('0x8')](),controller[_0xd9cb('0xe')]);router[_0xd9cb('0x7')]('/:id/downloads',controller[_0xd9cb('0xf')]);router[_0xd9cb('0x7')](_0xd9cb('0x10'),auth['isAuthenticated'](),controller[_0xd9cb('0x11')]);router[_0xd9cb('0x12')]('/',auth['isAuthenticated'](),controller['create']);router[_0xd9cb('0x12')](_0xd9cb('0x10'),auth['isAuthenticated'](),controller[_0xd9cb('0x13')]);router[_0xd9cb('0x14')](_0xd9cb('0x15'),auth[_0xd9cb('0x8')](),controller[_0xd9cb('0x16')]);router[_0xd9cb('0x17')](_0xd9cb('0x15'),auth[_0xd9cb('0x8')](),controller[_0xd9cb('0x18')]);module[_0xd9cb('0x19')]=router;