Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / voiceMusicOnHold / 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 _0x02c3=['update','delete','/:id','destroy','/:id/sounds/:id2','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id/sounds','getSounds','post','addSound','put'];(function(_0x3b08f6,_0x287d40){var _0x24dcfc=function(_0x25e57f){while(--_0x25e57f){_0x3b08f6['push'](_0x3b08f6['shift']());}};_0x24dcfc(++_0x287d40);}(_0x02c3,0x8a));var _0x302c=function(_0x2f7bbc,_0x24cedb){_0x2f7bbc=_0x2f7bbc-0x0;var _0x4bd860=_0x02c3[_0x2f7bbc];return _0x4bd860;};'use strict';var multer=require(_0x302c('0x0'));var util=require('util');var path=require(_0x302c('0x1'));var timeout=require(_0x302c('0x2'));var express=require(_0x302c('0x3'));var router=express[_0x302c('0x4')]();var fs_extra=require(_0x302c('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x302c('0x6'));var config=require(_0x302c('0x7'));var controller=require('./voiceMusicOnHold.controller');router[_0x302c('0x8')]('/',auth[_0x302c('0x9')](),controller[_0x302c('0xa')]);router[_0x302c('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x302c('0x8')](_0x302c('0xb'),auth[_0x302c('0x9')](),controller[_0x302c('0xc')]);router[_0x302c('0xd')]('/',auth[_0x302c('0x9')](),controller['create']);router[_0x302c('0xd')](_0x302c('0xb'),auth['isAuthenticated'](),controller[_0x302c('0xe')]);router[_0x302c('0xf')]('/:id',auth[_0x302c('0x9')](),controller[_0x302c('0x10')]);router[_0x302c('0x11')](_0x302c('0x12'),auth[_0x302c('0x9')](),controller[_0x302c('0x13')]);router[_0x302c('0x11')](_0x302c('0x14'),auth[_0x302c('0x9')](),controller['removeSound']);module[_0x302c('0x15')]=router;