397647f3357679dcc1980005bc16aa895f658160
[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 _0x88a3=['index','show','/:id/sounds','post','create','addSound','put','/:id','update','delete','destroy','/:id/sounds/:id2','removeSound','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceMusicOnHold.controller','get','isAuthenticated'];(function(_0x22957a,_0x398c57){var _0x44ff76=function(_0x144fe8){while(--_0x144fe8){_0x22957a['push'](_0x22957a['shift']());}};_0x44ff76(++_0x398c57);}(_0x88a3,0x108));var _0x388a=function(_0x79b649,_0x2115b3){_0x79b649=_0x79b649-0x0;var _0x1af9b1=_0x88a3[_0x79b649];return _0x1af9b1;};'use strict';var multer=require(_0x388a('0x0'));var util=require(_0x388a('0x1'));var path=require(_0x388a('0x2'));var timeout=require(_0x388a('0x3'));var express=require(_0x388a('0x4'));var router=express[_0x388a('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x388a('0x6'));var interaction=require(_0x388a('0x7'));var config=require('../../config/environment');var controller=require(_0x388a('0x8'));router[_0x388a('0x9')]('/',auth[_0x388a('0xa')](),controller[_0x388a('0xb')]);router[_0x388a('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x388a('0xc')]);router[_0x388a('0x9')](_0x388a('0xd'),auth[_0x388a('0xa')](),controller['getSounds']);router[_0x388a('0xe')]('/',auth[_0x388a('0xa')](),controller[_0x388a('0xf')]);router[_0x388a('0xe')]('/:id/sounds',auth[_0x388a('0xa')](),controller[_0x388a('0x10')]);router[_0x388a('0x11')](_0x388a('0x12'),auth[_0x388a('0xa')](),controller[_0x388a('0x13')]);router[_0x388a('0x14')](_0x388a('0x12'),auth[_0x388a('0xa')](),controller[_0x388a('0x15')]);router[_0x388a('0x14')](_0x388a('0x16'),auth[_0x388a('0xa')](),controller[_0x388a('0x17')]);module[_0x388a('0x18')]=router;