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