cf99f9238d59ac21e15704a1b8e9dc9c7e97b773
[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 _0xddfd=['/:id','show','/:id/download','download','/:id/downloads','downloads','/:id/transcribe','post','create','runTranscribe','delete','destroy','exports','multer','util','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./voiceRecording.controller','isAuthenticated','index','get','/describe','describe'];(function(_0x519756,_0x288785){var _0x37047e=function(_0x3d64a7){while(--_0x3d64a7){_0x519756['push'](_0x519756['shift']());}};_0x37047e(++_0x288785);}(_0xddfd,0x16b));var _0xdddf=function(_0x2691d0,_0x3de301){_0x2691d0=_0x2691d0-0x0;var _0x467010=_0xddfd[_0x2691d0];return _0x467010;};'use strict';var multer=require(_0xdddf('0x0'));var util=require(_0xdddf('0x1'));var path=require('path');var timeout=require(_0xdddf('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xdddf('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xdddf('0x4'));var config=require(_0xdddf('0x5'));var controller=require(_0xdddf('0x6'));router['get']('/',auth[_0xdddf('0x7')](),controller[_0xdddf('0x8')]);router[_0xdddf('0x9')](_0xdddf('0xa'),auth[_0xdddf('0x7')](),controller[_0xdddf('0xb')]);router[_0xdddf('0x9')](_0xdddf('0xc'),auth[_0xdddf('0x7')](),controller[_0xdddf('0xd')]);router['get'](_0xdddf('0xe'),auth[_0xdddf('0x7')](),controller[_0xdddf('0xf')]);router[_0xdddf('0x9')](_0xdddf('0x10'),controller[_0xdddf('0x11')]);router[_0xdddf('0x9')](_0xdddf('0x12'),auth[_0xdddf('0x7')](),controller['downloadTranscribe']);router[_0xdddf('0x13')]('/',auth['isAuthenticated'](),controller[_0xdddf('0x14')]);router[_0xdddf('0x13')](_0xdddf('0x12'),auth[_0xdddf('0x7')](),controller[_0xdddf('0x15')]);router['put'](_0xdddf('0xc'),auth[_0xdddf('0x7')](),controller['update']);router[_0xdddf('0x16')](_0xdddf('0xc'),auth['isAuthenticated'](),controller[_0xdddf('0x17')]);module[_0xdddf('0x18')]=router;