Built motion from commit 3c2ce842.|2.6.31
[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 _0x49f5=['/:id/transcribe','downloadTranscribe','post','create','runTranscribe','update','exports','multer','util','path','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/download','/:id/downloads','downloads'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x49f5,0x157));var _0x549f=function(_0x2d1228,_0x2e5f69){_0x2d1228=_0x2d1228-0x0;var _0x460b5c=_0x49f5[_0x2d1228];return _0x460b5c;};'use strict';var multer=require(_0x549f('0x0'));var util=require(_0x549f('0x1'));var path=require(_0x549f('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x549f('0x3'));var auth=require(_0x549f('0x4'));var interaction=require(_0x549f('0x5'));var config=require(_0x549f('0x6'));var controller=require('./voiceRecording.controller');router['get']('/',auth[_0x549f('0x7')](),controller[_0x549f('0x8')]);router[_0x549f('0x9')](_0x549f('0xa'),auth[_0x549f('0x7')](),controller[_0x549f('0xb')]);router[_0x549f('0x9')](_0x549f('0xc'),auth[_0x549f('0x7')](),controller[_0x549f('0xd')]);router[_0x549f('0x9')](_0x549f('0xe'),auth['isAuthenticated'](),controller['download']);router[_0x549f('0x9')](_0x549f('0xf'),controller[_0x549f('0x10')]);router[_0x549f('0x9')](_0x549f('0x11'),auth[_0x549f('0x7')](),controller[_0x549f('0x12')]);router[_0x549f('0x13')]('/',auth[_0x549f('0x7')](),controller[_0x549f('0x14')]);router['post'](_0x549f('0x11'),auth[_0x549f('0x7')](),controller[_0x549f('0x15')]);router['put'](_0x549f('0xc'),auth[_0x549f('0x7')](),controller[_0x549f('0x16')]);router['delete'](_0x549f('0xc'),auth[_0x549f('0x7')](),controller['destroy']);module[_0x549f('0x17')]=router;