Built motion from commit (unavailable).|2.5.31
[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 _0xa9b7=['Router','fs-extra','../../config/environment','get','isAuthenticated','show','getSounds','post','create','/:id/sounds','addSound','put','/:id','update','delete','destroy','/:id/sounds/:id2','removeSound','exports','multer','util','path','connect-timeout'];(function(_0x25f832,_0x551439){var _0x54d18e=function(_0x67b501){while(--_0x67b501){_0x25f832['push'](_0x25f832['shift']());}};_0x54d18e(++_0x551439);}(_0xa9b7,0x19a));var _0x7a9b=function(_0x34ae7d,_0x42ab96){_0x34ae7d=_0x34ae7d-0x0;var _0x5592f8=_0xa9b7[_0x34ae7d];return _0x5592f8;};'use strict';var multer=require(_0x7a9b('0x0'));var util=require(_0x7a9b('0x1'));var path=require(_0x7a9b('0x2'));var timeout=require(_0x7a9b('0x3'));var express=require('express');var router=express[_0x7a9b('0x4')]();var fs_extra=require(_0x7a9b('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7a9b('0x6'));var controller=require('./voiceMusicOnHold.controller');router[_0x7a9b('0x7')]('/',auth[_0x7a9b('0x8')](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller[_0x7a9b('0x9')]);router[_0x7a9b('0x7')]('/:id/sounds',auth[_0x7a9b('0x8')](),controller[_0x7a9b('0xa')]);router[_0x7a9b('0xb')]('/',auth[_0x7a9b('0x8')](),controller[_0x7a9b('0xc')]);router[_0x7a9b('0xb')](_0x7a9b('0xd'),auth[_0x7a9b('0x8')](),controller[_0x7a9b('0xe')]);router[_0x7a9b('0xf')](_0x7a9b('0x10'),auth[_0x7a9b('0x8')](),controller[_0x7a9b('0x11')]);router[_0x7a9b('0x12')](_0x7a9b('0x10'),auth[_0x7a9b('0x8')](),controller[_0x7a9b('0x13')]);router['delete'](_0x7a9b('0x14'),auth['isAuthenticated'](),controller[_0x7a9b('0x15')]);module[_0x7a9b('0x16')]=router;