33934141453888c5ee8906d68aaa00defe556375
[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 _0x428b=['update','delete','/:id/sounds/:id2','exports','multer','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceMusicOnHold.controller','get','isAuthenticated','index','/:id','show','/:id/sounds','getSounds','post'];(function(_0x49e734,_0xc04f4f){var _0x2a2d42=function(_0x564e55){while(--_0x564e55){_0x49e734['push'](_0x49e734['shift']());}};_0x2a2d42(++_0xc04f4f);}(_0x428b,0x76));var _0xb428=function(_0x5f09c5,_0x2bfca0){_0x5f09c5=_0x5f09c5-0x0;var _0x426ad9=_0x428b[_0x5f09c5];return _0x426ad9;};'use strict';var multer=require(_0xb428('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xb428('0x1'));var express=require('express');var router=express[_0xb428('0x2')]();var fs_extra=require(_0xb428('0x3'));var auth=require(_0xb428('0x4'));var interaction=require(_0xb428('0x5'));var config=require('../../config/environment');var controller=require(_0xb428('0x6'));router[_0xb428('0x7')]('/',auth[_0xb428('0x8')](),controller[_0xb428('0x9')]);router[_0xb428('0x7')](_0xb428('0xa'),auth[_0xb428('0x8')](),controller[_0xb428('0xb')]);router[_0xb428('0x7')](_0xb428('0xc'),auth[_0xb428('0x8')](),controller[_0xb428('0xd')]);router['post']('/',auth[_0xb428('0x8')](),controller['create']);router[_0xb428('0xe')](_0xb428('0xc'),auth[_0xb428('0x8')](),controller['addSound']);router['put']('/:id',auth[_0xb428('0x8')](),controller[_0xb428('0xf')]);router[_0xb428('0x10')](_0xb428('0xa'),auth[_0xb428('0x8')](),controller['destroy']);router[_0xb428('0x10')](_0xb428('0x11'),auth['isAuthenticated'](),controller['removeSound']);module[_0xb428('0x12')]=router;