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