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