Built motion from commit (unavailable).|2.5.0
[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 _0xb263=['get','getSounds','post','create','addSound','put','update','delete','destroy','/:id/sounds/:id2','exports','util','path','express','Router','../../config/environment','./voiceMusicOnHold.controller','isAuthenticated','index','show'];(function(_0x2b9fee,_0x4baa8b){var _0x581d2f=function(_0x1ddce4){while(--_0x1ddce4){_0x2b9fee['push'](_0x2b9fee['shift']());}};_0x581d2f(++_0x4baa8b);}(_0xb263,0x1eb));var _0x3b26=function(_0x487d39,_0x44c583){_0x487d39=_0x487d39-0x0;var _0x541829=_0xb263[_0x487d39];return _0x541829;};'use strict';var multer=require('multer');var util=require(_0x3b26('0x0'));var path=require(_0x3b26('0x1'));var timeout=require('connect-timeout');var express=require(_0x3b26('0x2'));var router=express[_0x3b26('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3b26('0x4'));var controller=require(_0x3b26('0x5'));router['get']('/',auth[_0x3b26('0x6')](),controller[_0x3b26('0x7')]);router['get']('/:id',auth[_0x3b26('0x6')](),controller[_0x3b26('0x8')]);router[_0x3b26('0x9')]('/:id/sounds',auth[_0x3b26('0x6')](),controller[_0x3b26('0xa')]);router[_0x3b26('0xb')]('/',auth['isAuthenticated'](),controller[_0x3b26('0xc')]);router['post']('/:id/sounds',auth[_0x3b26('0x6')](),controller[_0x3b26('0xd')]);router[_0x3b26('0xe')]('/:id',auth[_0x3b26('0x6')](),controller[_0x3b26('0xf')]);router[_0x3b26('0x10')]('/:id',auth[_0x3b26('0x6')](),controller[_0x3b26('0x11')]);router[_0x3b26('0x10')](_0x3b26('0x12'),auth['isAuthenticated'](),controller['removeSound']);module[_0x3b26('0x13')]=router;