29641127c8edc8af53a3ceae491f724632d34767
[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 _0x1f36=['download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','create','post','runTranscribe','update','delete','destroy','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/download'];(function(_0x74547d,_0x5ca07d){var _0x136571=function(_0x48cfb8){while(--_0x48cfb8){_0x74547d['push'](_0x74547d['shift']());}};_0x136571(++_0x5ca07d);}(_0x1f36,0x98));var _0x61f3=function(_0x42d2af,_0x3961b5){_0x42d2af=_0x42d2af-0x0;var _0x1d6d63=_0x1f36[_0x42d2af];return _0x1d6d63;};'use strict';var multer=require('multer');var util=require(_0x61f3('0x0'));var path=require(_0x61f3('0x1'));var timeout=require('connect-timeout');var express=require(_0x61f3('0x2'));var router=express[_0x61f3('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x61f3('0x4'));var interaction=require(_0x61f3('0x5'));var config=require(_0x61f3('0x6'));var controller=require(_0x61f3('0x7'));router[_0x61f3('0x8')]('/',auth[_0x61f3('0x9')](),controller[_0x61f3('0xa')]);router[_0x61f3('0x8')](_0x61f3('0xb'),auth['isAuthenticated'](),controller[_0x61f3('0xc')]);router['get'](_0x61f3('0xd'),auth[_0x61f3('0x9')](),controller[_0x61f3('0xe')]);router[_0x61f3('0x8')](_0x61f3('0xf'),auth[_0x61f3('0x9')](),controller[_0x61f3('0x10')]);router[_0x61f3('0x8')](_0x61f3('0x11'),controller[_0x61f3('0x12')]);router[_0x61f3('0x8')](_0x61f3('0x13'),auth[_0x61f3('0x9')](),controller[_0x61f3('0x14')]);router['post']('/',auth[_0x61f3('0x9')](),controller[_0x61f3('0x15')]);router[_0x61f3('0x16')](_0x61f3('0x13'),auth[_0x61f3('0x9')](),controller[_0x61f3('0x17')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x61f3('0x18')]);router[_0x61f3('0x19')](_0x61f3('0xd'),auth['isAuthenticated'](),controller[_0x61f3('0x1a')]);module[_0x61f3('0x1b')]=router;