77bd3f5149ead9edda8332d3b2ae977d77b7ef4f
[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 _0x0b59=['runTranscribe','put','update','delete','destroy','multer','util','path','express','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','show','/:id/download','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','create'];(function(_0x5183f7,_0x1dfa0d){var _0x4ba900=function(_0x4f904d){while(--_0x4f904d){_0x5183f7['push'](_0x5183f7['shift']());}};_0x4ba900(++_0x1dfa0d);}(_0x0b59,0x78));var _0x90b5=function(_0x415093,_0xa37d29){_0x415093=_0x415093-0x0;var _0x5bd80b=_0x0b59[_0x415093];return _0x5bd80b;};'use strict';var multer=require(_0x90b5('0x0'));var util=require(_0x90b5('0x1'));var path=require(_0x90b5('0x2'));var timeout=require('connect-timeout');var express=require(_0x90b5('0x3'));var router=express['Router']();var auth=require(_0x90b5('0x4'));var interaction=require(_0x90b5('0x5'));var config=require('../../config/environment');var controller=require('./voiceRecording.controller');router[_0x90b5('0x6')]('/',auth[_0x90b5('0x7')](),controller['index']);router[_0x90b5('0x6')]('/describe',auth[_0x90b5('0x7')](),controller['describe']);router[_0x90b5('0x6')](_0x90b5('0x8'),auth[_0x90b5('0x7')](),controller[_0x90b5('0x9')]);router[_0x90b5('0x6')](_0x90b5('0xa'),auth['isAuthenticated'](),controller[_0x90b5('0xb')]);router['get'](_0x90b5('0xc'),controller[_0x90b5('0xd')]);router['get'](_0x90b5('0xe'),auth['isAuthenticated'](),controller[_0x90b5('0xf')]);router[_0x90b5('0x10')]('/',auth[_0x90b5('0x7')](),controller[_0x90b5('0x11')]);router[_0x90b5('0x10')](_0x90b5('0xe'),auth['isAuthenticated'](),controller[_0x90b5('0x12')]);router[_0x90b5('0x13')](_0x90b5('0x8'),auth['isAuthenticated'](),controller[_0x90b5('0x14')]);router[_0x90b5('0x15')]('/:id',auth[_0x90b5('0x7')](),controller[_0x90b5('0x16')]);module['exports']=router;