Built motion from commit 14588770.|2.5.38
[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 _0x590e=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','get','isAuthenticated','index','show','/:id/sounds','getSounds','post','create','addSound','update','delete','/:id','/:id/sounds/:id2','removeSound','exports','multer','util','path','express'];(function(_0x436849,_0x430b00){var _0x5c5f73=function(_0x5bdf78){while(--_0x5bdf78){_0x436849['push'](_0x436849['shift']());}};_0x5c5f73(++_0x430b00);}(_0x590e,0x1a5));var _0xe590=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x590e[_0x20a584];return _0x4b41a8;};'use strict';var multer=require(_0xe590('0x0'));var util=require(_0xe590('0x1'));var path=require(_0xe590('0x2'));var timeout=require('connect-timeout');var express=require(_0xe590('0x3'));var router=express[_0xe590('0x4')]();var fs_extra=require(_0xe590('0x5'));var auth=require(_0xe590('0x6'));var interaction=require(_0xe590('0x7'));var config=require(_0xe590('0x8'));var controller=require(_0xe590('0x9'));router[_0xe590('0xa')]('/',auth[_0xe590('0xb')](),controller[_0xe590('0xc')]);router[_0xe590('0xa')]('/:id',auth[_0xe590('0xb')](),controller[_0xe590('0xd')]);router[_0xe590('0xa')](_0xe590('0xe'),auth['isAuthenticated'](),controller[_0xe590('0xf')]);router[_0xe590('0x10')]('/',auth[_0xe590('0xb')](),controller[_0xe590('0x11')]);router[_0xe590('0x10')](_0xe590('0xe'),auth[_0xe590('0xb')](),controller[_0xe590('0x12')]);router['put']('/:id',auth[_0xe590('0xb')](),controller[_0xe590('0x13')]);router[_0xe590('0x14')](_0xe590('0x15'),auth[_0xe590('0xb')](),controller['destroy']);router[_0xe590('0x14')](_0xe590('0x16'),auth[_0xe590('0xb')](),controller[_0xe590('0x17')]);module[_0xe590('0x18')]=router;