Built motion from commit (unavailable).|2.3.92
[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 _0x54f3=['update','delete','destroy','util','path','connect-timeout','express','Router','../../config/environment','./voiceRecording.controller','get','isAuthenticated','describe','/:id','show','/:id/download','/:id/downloads','downloads','create'];(function(_0x2b6600,_0x24c497){var _0x912ee2=function(_0x5d6484){while(--_0x5d6484){_0x2b6600['push'](_0x2b6600['shift']());}};_0x912ee2(++_0x24c497);}(_0x54f3,0x120));var _0x354f=function(_0x199572,_0x33e667){_0x199572=_0x199572-0x0;var _0x13cfa3=_0x54f3[_0x199572];return _0x13cfa3;};'use strict';var multer=require('multer');var util=require(_0x354f('0x0'));var path=require(_0x354f('0x1'));var timeout=require(_0x354f('0x2'));var express=require(_0x354f('0x3'));var router=express[_0x354f('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x354f('0x5'));var controller=require(_0x354f('0x6'));router[_0x354f('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x354f('0x7')]('/describe',auth[_0x354f('0x8')](),controller[_0x354f('0x9')]);router[_0x354f('0x7')](_0x354f('0xa'),auth['isAuthenticated'](),controller[_0x354f('0xb')]);router['get'](_0x354f('0xc'),auth[_0x354f('0x8')](),controller['download']);router['get'](_0x354f('0xd'),controller[_0x354f('0xe')]);router['post']('/',auth[_0x354f('0x8')](),controller[_0x354f('0xf')]);router['put'](_0x354f('0xa'),auth[_0x354f('0x8')](),controller[_0x354f('0x10')]);router[_0x354f('0x11')](_0x354f('0xa'),auth[_0x354f('0x8')](),controller[_0x354f('0x12')]);module['exports']=router;