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