1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x1cb6=['/:id/sounds','getSounds','post','create','addSound','put','delete','/:id/sounds/:id2','removeSound','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show'];(function(_0x57101c,_0x1ab2d3){var _0x525315=function(_0x10cabb){while(--_0x10cabb){_0x57101c['push'](_0x57101c['shift']());}};_0x525315(++_0x1ab2d3);}(_0x1cb6,0x1c2));var _0x61cb=function(_0x3097c3,_0x237e3e){_0x3097c3=_0x3097c3-0x0;var _0x3657d5=_0x1cb6[_0x3097c3];return _0x3657d5;};'use strict';var multer=require(_0x61cb('0x0'));var util=require(_0x61cb('0x1'));var path=require('path');var timeout=require(_0x61cb('0x2'));var express=require(_0x61cb('0x3'));var router=express[_0x61cb('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x61cb('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x61cb('0x6'));var controller=require('./voiceMusicOnHold.controller');router[_0x61cb('0x7')]('/',auth[_0x61cb('0x8')](),controller[_0x61cb('0x9')]);router['get'](_0x61cb('0xa'),auth[_0x61cb('0x8')](),controller[_0x61cb('0xb')]);router[_0x61cb('0x7')](_0x61cb('0xc'),auth[_0x61cb('0x8')](),controller[_0x61cb('0xd')]);router[_0x61cb('0xe')]('/',auth[_0x61cb('0x8')](),controller[_0x61cb('0xf')]);router['post'](_0x61cb('0xc'),auth[_0x61cb('0x8')](),controller[_0x61cb('0x10')]);router[_0x61cb('0x11')]('/:id',auth[_0x61cb('0x8')](),controller['update']);router[_0x61cb('0x12')](_0x61cb('0xa'),auth[_0x61cb('0x8')](),controller['destroy']);router['delete'](_0x61cb('0x13'),auth[_0x61cb('0x8')](),controller[_0x61cb('0x14')]);module[_0x61cb('0x15')]=router;