21492a0fd5abda03129dbed5ba3abb2837ad5a75
[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 _0x4822=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','get','isAuthenticated','/:id','show','/:id/sounds','create','addSound','put','update','delete','destroy','/:id/sounds/:id2','removeSound','exports','util'];(function(_0x7b41ca,_0x140d09){var _0x2ca93a=function(_0x2bb227){while(--_0x2bb227){_0x7b41ca['push'](_0x7b41ca['shift']());}};_0x2ca93a(++_0x140d09);}(_0x4822,0x12a));var _0x2482=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0x4822[_0x46698a];return _0x356db0;};'use strict';var multer=require('multer');var util=require(_0x2482('0x0'));var path=require('path');var timeout=require(_0x2482('0x1'));var express=require(_0x2482('0x2'));var router=express[_0x2482('0x3')]();var fs_extra=require(_0x2482('0x4'));var auth=require(_0x2482('0x5'));var interaction=require(_0x2482('0x6'));var config=require(_0x2482('0x7'));var controller=require(_0x2482('0x8'));router[_0x2482('0x9')]('/',auth[_0x2482('0xa')](),controller['index']);router[_0x2482('0x9')](_0x2482('0xb'),auth['isAuthenticated'](),controller[_0x2482('0xc')]);router[_0x2482('0x9')](_0x2482('0xd'),auth[_0x2482('0xa')](),controller['getSounds']);router['post']('/',auth[_0x2482('0xa')](),controller[_0x2482('0xe')]);router['post'](_0x2482('0xd'),auth[_0x2482('0xa')](),controller[_0x2482('0xf')]);router[_0x2482('0x10')](_0x2482('0xb'),auth[_0x2482('0xa')](),controller[_0x2482('0x11')]);router[_0x2482('0x12')](_0x2482('0xb'),auth['isAuthenticated'](),controller[_0x2482('0x13')]);router['delete'](_0x2482('0x14'),auth[_0x2482('0xa')](),controller[_0x2482('0x15')]);module[_0x2482('0x16')]=router;