Built motion from commit (unavailable).|2.5.16
[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 _0x24c3=['index','show','/:id/sounds','getSounds','post','addSound','put','update','/:id','destroy','delete','/:id/sounds/:id2','removeSound','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../config/environment','./voiceMusicOnHold.controller','get','isAuthenticated'];(function(_0x458edc,_0x9baf98){var _0x44af29=function(_0x41929c){while(--_0x41929c){_0x458edc['push'](_0x458edc['shift']());}};_0x44af29(++_0x9baf98);}(_0x24c3,0x139));var _0x324c=function(_0x2fcfae,_0x1049c9){_0x2fcfae=_0x2fcfae-0x0;var _0x7704ce=_0x24c3[_0x2fcfae];return _0x7704ce;};'use strict';var multer=require(_0x324c('0x0'));var util=require(_0x324c('0x1'));var path=require('path');var timeout=require(_0x324c('0x2'));var express=require('express');var router=express[_0x324c('0x3')]();var auth=require(_0x324c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x324c('0x5'));var controller=require(_0x324c('0x6'));router[_0x324c('0x7')]('/',auth[_0x324c('0x8')](),controller[_0x324c('0x9')]);router[_0x324c('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x324c('0xa')]);router[_0x324c('0x7')](_0x324c('0xb'),auth[_0x324c('0x8')](),controller[_0x324c('0xc')]);router['post']('/',auth[_0x324c('0x8')](),controller['create']);router[_0x324c('0xd')](_0x324c('0xb'),auth[_0x324c('0x8')](),controller[_0x324c('0xe')]);router[_0x324c('0xf')]('/:id',auth[_0x324c('0x8')](),controller[_0x324c('0x10')]);router['delete'](_0x324c('0x11'),auth['isAuthenticated'](),controller[_0x324c('0x12')]);router[_0x324c('0x13')](_0x324c('0x14'),auth[_0x324c('0x8')](),controller[_0x324c('0x15')]);module[_0x324c('0x16')]=router;