Built motion from commit fd055180.|2.6.30
[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 _0xb507=['delete','destroy','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/download','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','create','runTranscribe'];(function(_0x1fb86d,_0xc5978a){var _0x3f7334=function(_0x4b74b9){while(--_0x4b74b9){_0x1fb86d['push'](_0x1fb86d['shift']());}};_0x3f7334(++_0xc5978a);}(_0xb507,0xb1));var _0x7b50=function(_0x7fd9e9,_0x1765d0){_0x7fd9e9=_0x7fd9e9-0x0;var _0x285d92=_0xb507[_0x7fd9e9];return _0x285d92;};'use strict';var multer=require('multer');var util=require(_0x7b50('0x0'));var path=require(_0x7b50('0x1'));var timeout=require('connect-timeout');var express=require(_0x7b50('0x2'));var router=express['Router']();var fs_extra=require(_0x7b50('0x3'));var auth=require(_0x7b50('0x4'));var interaction=require(_0x7b50('0x5'));var config=require(_0x7b50('0x6'));var controller=require('./voiceRecording.controller');router[_0x7b50('0x7')]('/',auth[_0x7b50('0x8')](),controller[_0x7b50('0x9')]);router['get'](_0x7b50('0xa'),auth[_0x7b50('0x8')](),controller[_0x7b50('0xb')]);router[_0x7b50('0x7')](_0x7b50('0xc'),auth[_0x7b50('0x8')](),controller[_0x7b50('0xd')]);router['get'](_0x7b50('0xe'),auth[_0x7b50('0x8')](),controller[_0x7b50('0xf')]);router[_0x7b50('0x7')](_0x7b50('0x10'),controller[_0x7b50('0x11')]);router[_0x7b50('0x7')](_0x7b50('0x12'),auth['isAuthenticated'](),controller[_0x7b50('0x13')]);router[_0x7b50('0x14')]('/',auth[_0x7b50('0x8')](),controller[_0x7b50('0x15')]);router[_0x7b50('0x14')]('/:id/transcribe',auth[_0x7b50('0x8')](),controller[_0x7b50('0x16')]);router['put']('/:id',auth[_0x7b50('0x8')](),controller['update']);router[_0x7b50('0x17')](_0x7b50('0xc'),auth[_0x7b50('0x8')](),controller[_0x7b50('0x18')]);module['exports']=router;