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 _0x4cb6=['../../config/environment','./voiceMusicOnHold.controller','get','isAuthenticated','index','/:id','show','/:id/sounds','getSounds','post','addSound','put','update','delete','destroy','removeSound','exports','multer','path','connect-timeout','Router','../../components/auth/service'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x4cb6,0x1df));var _0x64cb=function(_0xb489d4,_0x4a6d21){_0xb489d4=_0xb489d4-0x0;var _0x4b9034=_0x4cb6[_0xb489d4];return _0x4b9034;};'use strict';var multer=require(_0x64cb('0x0'));var util=require('util');var path=require(_0x64cb('0x1'));var timeout=require(_0x64cb('0x2'));var express=require('express');var router=express[_0x64cb('0x3')]();var auth=require(_0x64cb('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x64cb('0x5'));var controller=require(_0x64cb('0x6'));router[_0x64cb('0x7')]('/',auth[_0x64cb('0x8')](),controller[_0x64cb('0x9')]);router[_0x64cb('0x7')](_0x64cb('0xa'),auth[_0x64cb('0x8')](),controller[_0x64cb('0xb')]);router[_0x64cb('0x7')](_0x64cb('0xc'),auth['isAuthenticated'](),controller[_0x64cb('0xd')]);router['post']('/',auth[_0x64cb('0x8')](),controller['create']);router[_0x64cb('0xe')](_0x64cb('0xc'),auth[_0x64cb('0x8')](),controller[_0x64cb('0xf')]);router[_0x64cb('0x10')](_0x64cb('0xa'),auth[_0x64cb('0x8')](),controller[_0x64cb('0x11')]);router[_0x64cb('0x12')](_0x64cb('0xa'),auth[_0x64cb('0x8')](),controller[_0x64cb('0x13')]);router[_0x64cb('0x12')]('/:id/sounds/:id2',auth[_0x64cb('0x8')](),controller[_0x64cb('0x14')]);module[_0x64cb('0x15')]=router;