533b19140fea7a8cc1520eccbb3691f6d25d49d4
[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 _0x8a19=['show','/:id/download','download','/:id/downloads','/:id/transcribe','downloadTranscribe','post','create','update','exports','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceRecording.controller','get','isAuthenticated','index','/describe','describe','/:id'];(function(_0x55de53,_0x5da3e7){var _0x362fbe=function(_0x3ed4fd){while(--_0x3ed4fd){_0x55de53['push'](_0x55de53['shift']());}};_0x362fbe(++_0x5da3e7);}(_0x8a19,0xfa));var _0x98a1=function(_0x2fa7d8,_0x43fb4d){_0x2fa7d8=_0x2fa7d8-0x0;var _0x1aa7a4=_0x8a19[_0x2fa7d8];return _0x1aa7a4;};'use strict';var multer=require('multer');var util=require(_0x98a1('0x0'));var path=require(_0x98a1('0x1'));var timeout=require(_0x98a1('0x2'));var express=require('express');var router=express[_0x98a1('0x3')]();var fs_extra=require(_0x98a1('0x4'));var auth=require(_0x98a1('0x5'));var interaction=require(_0x98a1('0x6'));var config=require('../../config/environment');var controller=require(_0x98a1('0x7'));router[_0x98a1('0x8')]('/',auth[_0x98a1('0x9')](),controller[_0x98a1('0xa')]);router[_0x98a1('0x8')](_0x98a1('0xb'),auth[_0x98a1('0x9')](),controller[_0x98a1('0xc')]);router['get'](_0x98a1('0xd'),auth[_0x98a1('0x9')](),controller[_0x98a1('0xe')]);router['get'](_0x98a1('0xf'),auth['isAuthenticated'](),controller[_0x98a1('0x10')]);router[_0x98a1('0x8')](_0x98a1('0x11'),controller['downloads']);router[_0x98a1('0x8')](_0x98a1('0x12'),auth[_0x98a1('0x9')](),controller[_0x98a1('0x13')]);router[_0x98a1('0x14')]('/',auth[_0x98a1('0x9')](),controller[_0x98a1('0x15')]);router[_0x98a1('0x14')](_0x98a1('0x12'),auth[_0x98a1('0x9')](),controller['runTranscribe']);router['put'](_0x98a1('0xd'),auth[_0x98a1('0x9')](),controller[_0x98a1('0x16')]);router['delete']('/:id',auth[_0x98a1('0x9')](),controller['destroy']);module[_0x98a1('0x17')]=router;