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