Built motion from commit 0900f080.|2.5.45
[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 _0x4220=['connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/download','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','runTranscribe','put','update','delete','exports','multer','path'];(function(_0x3f7b56,_0x4d5f9a){var _0x1a7e3a=function(_0xd6e76e){while(--_0xd6e76e){_0x3f7b56['push'](_0x3f7b56['shift']());}};_0x1a7e3a(++_0x4d5f9a);}(_0x4220,0xe8));var _0x0422=function(_0x40b1aa,_0x2e04f7){_0x40b1aa=_0x40b1aa-0x0;var _0x3aa4b1=_0x4220[_0x40b1aa];return _0x3aa4b1;};'use strict';var multer=require(_0x0422('0x0'));var util=require('util');var path=require(_0x0422('0x1'));var timeout=require(_0x0422('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x0422('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x0422('0x4'));var config=require(_0x0422('0x5'));var controller=require(_0x0422('0x6'));router[_0x0422('0x7')]('/',auth[_0x0422('0x8')](),controller[_0x0422('0x9')]);router[_0x0422('0x7')](_0x0422('0xa'),auth[_0x0422('0x8')](),controller[_0x0422('0xb')]);router[_0x0422('0x7')](_0x0422('0xc'),auth[_0x0422('0x8')](),controller[_0x0422('0xd')]);router[_0x0422('0x7')](_0x0422('0xe'),auth[_0x0422('0x8')](),controller[_0x0422('0xf')]);router[_0x0422('0x7')](_0x0422('0x10'),controller[_0x0422('0x11')]);router[_0x0422('0x7')](_0x0422('0x12'),auth[_0x0422('0x8')](),controller[_0x0422('0x13')]);router[_0x0422('0x14')]('/',auth[_0x0422('0x8')](),controller['create']);router[_0x0422('0x14')]('/:id/transcribe',auth[_0x0422('0x8')](),controller[_0x0422('0x15')]);router[_0x0422('0x16')]('/:id',auth[_0x0422('0x8')](),controller[_0x0422('0x17')]);router[_0x0422('0x18')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x0422('0x19')]=router;