Built motion from commit (unavailable).|2.5.21
[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 _0xaf38=['describe','/:id','show','download','/:id/downloads','downloads','/:id/transcribe','downloadTranscribe','post','create','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','get','isAuthenticated'];(function(_0xd747d9,_0x53e805){var _0x3fc4b0=function(_0xae736a){while(--_0xae736a){_0xd747d9['push'](_0xd747d9['shift']());}};_0x3fc4b0(++_0x53e805);}(_0xaf38,0x1f1));var _0x8af3=function(_0x2e57c9,_0x1dc33c){_0x2e57c9=_0x2e57c9-0x0;var _0x2a65ab=_0xaf38[_0x2e57c9];return _0x2a65ab;};'use strict';var multer=require(_0x8af3('0x0'));var util=require(_0x8af3('0x1'));var path=require(_0x8af3('0x2'));var timeout=require(_0x8af3('0x3'));var express=require(_0x8af3('0x4'));var router=express['Router']();var auth=require(_0x8af3('0x5'));var interaction=require(_0x8af3('0x6'));var config=require('../../config/environment');var controller=require('./voiceRecording.controller');router[_0x8af3('0x7')]('/',auth[_0x8af3('0x8')](),controller['index']);router[_0x8af3('0x7')]('/describe',auth[_0x8af3('0x8')](),controller[_0x8af3('0x9')]);router[_0x8af3('0x7')](_0x8af3('0xa'),auth[_0x8af3('0x8')](),controller[_0x8af3('0xb')]);router[_0x8af3('0x7')]('/:id/download',auth[_0x8af3('0x8')](),controller[_0x8af3('0xc')]);router['get'](_0x8af3('0xd'),controller[_0x8af3('0xe')]);router[_0x8af3('0x7')](_0x8af3('0xf'),auth[_0x8af3('0x8')](),controller[_0x8af3('0x10')]);router[_0x8af3('0x11')]('/',auth[_0x8af3('0x8')](),controller[_0x8af3('0x12')]);router[_0x8af3('0x11')](_0x8af3('0xf'),auth[_0x8af3('0x8')](),controller['runTranscribe']);router['put'](_0x8af3('0xa'),auth[_0x8af3('0x8')](),controller['update']);router[_0x8af3('0x13')](_0x8af3('0xa'),auth['isAuthenticated'](),controller[_0x8af3('0x14')]);module[_0x8af3('0x15')]=router;