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 _0xd3d1=['getSounds','post','create','addSound','update','delete','destroy','/:id/sounds/:id2','removeSound','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./voiceMusicOnHold.controller','get','/:id','isAuthenticated'];(function(_0x32bce8,_0x54f965){var _0x38badc=function(_0x1ed1ee){while(--_0x1ed1ee){_0x32bce8['push'](_0x32bce8['shift']());}};_0x38badc(++_0x54f965);}(_0xd3d1,0x1d5));var _0x1d3d=function(_0x5f0089,_0x227e2c){_0x5f0089=_0x5f0089-0x0;var _0x193892=_0xd3d1[_0x5f0089];return _0x193892;};'use strict';var multer=require('multer');var util=require(_0x1d3d('0x0'));var path=require(_0x1d3d('0x1'));var timeout=require(_0x1d3d('0x2'));var express=require(_0x1d3d('0x3'));var router=express[_0x1d3d('0x4')]();var fs_extra=require(_0x1d3d('0x5'));var auth=require(_0x1d3d('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1d3d('0x7'));router[_0x1d3d('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x1d3d('0x8')](_0x1d3d('0x9'),auth[_0x1d3d('0xa')](),controller['show']);router[_0x1d3d('0x8')]('/:id/sounds',auth[_0x1d3d('0xa')](),controller[_0x1d3d('0xb')]);router[_0x1d3d('0xc')]('/',auth[_0x1d3d('0xa')](),controller[_0x1d3d('0xd')]);router['post']('/:id/sounds',auth[_0x1d3d('0xa')](),controller[_0x1d3d('0xe')]);router['put']('/:id',auth[_0x1d3d('0xa')](),controller[_0x1d3d('0xf')]);router[_0x1d3d('0x10')](_0x1d3d('0x9'),auth['isAuthenticated'](),controller[_0x1d3d('0x11')]);router[_0x1d3d('0x10')](_0x1d3d('0x12'),auth[_0x1d3d('0xa')](),controller[_0x1d3d('0x13')]);module['exports']=router;