Built motion from commit (unavailable).|2.5.18
[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 _0xdc50=['Router','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','get','/:id','isAuthenticated','show','/:id/sounds','getSounds','post','addSound','put','update','delete','destroy','removeSound','exports','multer','util','path','connect-timeout','express'];(function(_0x100093,_0xca8f3a){var _0x326060=function(_0xd30a6a){while(--_0xd30a6a){_0x100093['push'](_0x100093['shift']());}};_0x326060(++_0xca8f3a);}(_0xdc50,0x154));var _0x0dc5=function(_0x25b8bd,_0x58ba64){_0x25b8bd=_0x25b8bd-0x0;var _0x534e3a=_0xdc50[_0x25b8bd];return _0x534e3a;};'use strict';var multer=require(_0x0dc5('0x0'));var util=require(_0x0dc5('0x1'));var path=require(_0x0dc5('0x2'));var timeout=require(_0x0dc5('0x3'));var express=require(_0x0dc5('0x4'));var router=express[_0x0dc5('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x0dc5('0x6'));var config=require(_0x0dc5('0x7'));var controller=require(_0x0dc5('0x8'));router[_0x0dc5('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x0dc5('0x9')](_0x0dc5('0xa'),auth[_0x0dc5('0xb')](),controller[_0x0dc5('0xc')]);router[_0x0dc5('0x9')](_0x0dc5('0xd'),auth[_0x0dc5('0xb')](),controller[_0x0dc5('0xe')]);router[_0x0dc5('0xf')]('/',auth[_0x0dc5('0xb')](),controller['create']);router[_0x0dc5('0xf')](_0x0dc5('0xd'),auth[_0x0dc5('0xb')](),controller[_0x0dc5('0x10')]);router[_0x0dc5('0x11')](_0x0dc5('0xa'),auth[_0x0dc5('0xb')](),controller[_0x0dc5('0x12')]);router[_0x0dc5('0x13')](_0x0dc5('0xa'),auth[_0x0dc5('0xb')](),controller[_0x0dc5('0x14')]);router[_0x0dc5('0x13')]('/:id/sounds/:id2',auth[_0x0dc5('0xb')](),controller[_0x0dc5('0x15')]);module[_0x0dc5('0x16')]=router;