Built motion from commit (unavailable).|2.6.0
[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 _0xdb49=['download','/:id/downloads','downloads','/:id/transcribe','post','create','runTranscribe','update','destroy','exports','util','path','express','fs-extra','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/download'];(function(_0x46d01e,_0x1c6977){var _0x48dd33=function(_0x4054d0){while(--_0x4054d0){_0x46d01e['push'](_0x46d01e['shift']());}};_0x48dd33(++_0x1c6977);}(_0xdb49,0x15a));var _0x9db4=function(_0x1952db,_0x39b73){_0x1952db=_0x1952db-0x0;var _0x3e0e51=_0xdb49[_0x1952db];return _0x3e0e51;};'use strict';var multer=require('multer');var util=require(_0x9db4('0x0'));var path=require(_0x9db4('0x1'));var timeout=require('connect-timeout');var express=require(_0x9db4('0x2'));var router=express['Router']();var fs_extra=require(_0x9db4('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x9db4('0x4'));var config=require(_0x9db4('0x5'));var controller=require(_0x9db4('0x6'));router[_0x9db4('0x7')]('/',auth[_0x9db4('0x8')](),controller[_0x9db4('0x9')]);router[_0x9db4('0x7')](_0x9db4('0xa'),auth[_0x9db4('0x8')](),controller['describe']);router[_0x9db4('0x7')](_0x9db4('0xb'),auth['isAuthenticated'](),controller[_0x9db4('0xc')]);router[_0x9db4('0x7')](_0x9db4('0xd'),auth[_0x9db4('0x8')](),controller[_0x9db4('0xe')]);router[_0x9db4('0x7')](_0x9db4('0xf'),controller[_0x9db4('0x10')]);router['get'](_0x9db4('0x11'),auth['isAuthenticated'](),controller['downloadTranscribe']);router[_0x9db4('0x12')]('/',auth[_0x9db4('0x8')](),controller[_0x9db4('0x13')]);router['post'](_0x9db4('0x11'),auth[_0x9db4('0x8')](),controller[_0x9db4('0x14')]);router['put'](_0x9db4('0xb'),auth[_0x9db4('0x8')](),controller[_0x9db4('0x15')]);router['delete'](_0x9db4('0xb'),auth[_0x9db4('0x8')](),controller[_0x9db4('0x16')]);module[_0x9db4('0x17')]=router;