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