Built motion from commit d5e4af8c.|2.6.23
[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 _0x3ef4=['/:id/downloads','downloads','downloadTranscribe','post','/:id/transcribe','update','delete','destroy','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceRecording.controller','get','isAuthenticated','describe','/:id','show','/:id/download','download'];(function(_0x37ae26,_0x2ecd70){var _0x1b1902=function(_0x5a6ae0){while(--_0x5a6ae0){_0x37ae26['push'](_0x37ae26['shift']());}};_0x1b1902(++_0x2ecd70);}(_0x3ef4,0x170));var _0x43ef=function(_0x34b6aa,_0x5ddd29){_0x34b6aa=_0x34b6aa-0x0;var _0x3ead29=_0x3ef4[_0x34b6aa];return _0x3ead29;};'use strict';var multer=require(_0x43ef('0x0'));var util=require(_0x43ef('0x1'));var path=require(_0x43ef('0x2'));var timeout=require(_0x43ef('0x3'));var express=require(_0x43ef('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x43ef('0x5'));var interaction=require(_0x43ef('0x6'));var config=require(_0x43ef('0x7'));var controller=require(_0x43ef('0x8'));router[_0x43ef('0x9')]('/',auth[_0x43ef('0xa')](),controller['index']);router[_0x43ef('0x9')]('/describe',auth[_0x43ef('0xa')](),controller[_0x43ef('0xb')]);router[_0x43ef('0x9')](_0x43ef('0xc'),auth['isAuthenticated'](),controller[_0x43ef('0xd')]);router['get'](_0x43ef('0xe'),auth['isAuthenticated'](),controller[_0x43ef('0xf')]);router[_0x43ef('0x9')](_0x43ef('0x10'),controller[_0x43ef('0x11')]);router['get']('/:id/transcribe',auth[_0x43ef('0xa')](),controller[_0x43ef('0x12')]);router['post']('/',auth[_0x43ef('0xa')](),controller['create']);router[_0x43ef('0x13')](_0x43ef('0x14'),auth[_0x43ef('0xa')](),controller['runTranscribe']);router['put'](_0x43ef('0xc'),auth[_0x43ef('0xa')](),controller[_0x43ef('0x15')]);router[_0x43ef('0x16')]('/:id',auth[_0x43ef('0xa')](),controller[_0x43ef('0x17')]);module['exports']=router;