Built motion from commit (unavailable).|2.4.4
[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 _0x4ea3=['connect-timeout','Router','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/download','/:id/downloads','downloads','post','create','put','update','delete','destroy','exports','multer','util','path'];(function(_0x3207aa,_0xe86a72){var _0x51758f=function(_0x9ff790){while(--_0x9ff790){_0x3207aa['push'](_0x3207aa['shift']());}};_0x51758f(++_0xe86a72);}(_0x4ea3,0x70));var _0x34ea=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x4ea3[_0x501510];return _0x1e6ee5;};'use strict';var multer=require(_0x34ea('0x0'));var util=require(_0x34ea('0x1'));var path=require(_0x34ea('0x2'));var timeout=require(_0x34ea('0x3'));var express=require('express');var router=express[_0x34ea('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x34ea('0x5'));var config=require('../../config/environment');var controller=require('./voiceRecording.controller');router[_0x34ea('0x6')]('/',auth[_0x34ea('0x7')](),controller[_0x34ea('0x8')]);router[_0x34ea('0x6')](_0x34ea('0x9'),auth[_0x34ea('0x7')](),controller[_0x34ea('0xa')]);router['get'](_0x34ea('0xb'),auth[_0x34ea('0x7')](),controller[_0x34ea('0xc')]);router['get'](_0x34ea('0xd'),auth[_0x34ea('0x7')](),controller['download']);router['get'](_0x34ea('0xe'),controller[_0x34ea('0xf')]);router[_0x34ea('0x10')]('/',auth['isAuthenticated'](),controller[_0x34ea('0x11')]);router[_0x34ea('0x12')](_0x34ea('0xb'),auth[_0x34ea('0x7')](),controller[_0x34ea('0x13')]);router[_0x34ea('0x14')](_0x34ea('0xb'),auth[_0x34ea('0x7')](),controller[_0x34ea('0x15')]);module[_0x34ea('0x16')]=router;