fad5d3e386419ab3684347535c6330e94ee56bc7
[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 _0x07ba=['multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/download','download','downloads','downloadTranscribe','create','post','/:id/transcribe','runTranscribe','update','destroy','exports'];(function(_0x1f3d15,_0x5176a8){var _0x48617b=function(_0x5e2eb8){while(--_0x5e2eb8){_0x1f3d15['push'](_0x1f3d15['shift']());}};_0x48617b(++_0x5176a8);}(_0x07ba,0xea));var _0xa07b=function(_0x1bab33,_0x292c46){_0x1bab33=_0x1bab33-0x0;var _0x35bb99=_0x07ba[_0x1bab33];return _0x35bb99;};'use strict';var multer=require(_0xa07b('0x0'));var util=require(_0xa07b('0x1'));var path=require(_0xa07b('0x2'));var timeout=require(_0xa07b('0x3'));var express=require(_0xa07b('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xa07b('0x5'));var interaction=require(_0xa07b('0x6'));var config=require(_0xa07b('0x7'));var controller=require(_0xa07b('0x8'));router[_0xa07b('0x9')]('/',auth[_0xa07b('0xa')](),controller[_0xa07b('0xb')]);router[_0xa07b('0x9')](_0xa07b('0xc'),auth[_0xa07b('0xa')](),controller['describe']);router['get'](_0xa07b('0xd'),auth[_0xa07b('0xa')](),controller[_0xa07b('0xe')]);router['get'](_0xa07b('0xf'),auth['isAuthenticated'](),controller[_0xa07b('0x10')]);router['get']('/:id/downloads',controller[_0xa07b('0x11')]);router[_0xa07b('0x9')]('/:id/transcribe',auth[_0xa07b('0xa')](),controller[_0xa07b('0x12')]);router['post']('/',auth[_0xa07b('0xa')](),controller[_0xa07b('0x13')]);router[_0xa07b('0x14')](_0xa07b('0x15'),auth[_0xa07b('0xa')](),controller[_0xa07b('0x16')]);router['put'](_0xa07b('0xd'),auth['isAuthenticated'](),controller[_0xa07b('0x17')]);router['delete'](_0xa07b('0xd'),auth[_0xa07b('0xa')](),controller[_0xa07b('0x18')]);module[_0xa07b('0x19')]=router;