Built motion from commit 6db1674d.|2.6.23
[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 _0x6b48=['show','/:id/sounds','post','create','addSound','put','delete','destroy','removeSound','exports','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceMusicOnHold.controller','get','isAuthenticated','/:id'];(function(_0x4f2eea,_0x475e90){var _0x163800=function(_0x1eceab){while(--_0x1eceab){_0x4f2eea['push'](_0x4f2eea['shift']());}};_0x163800(++_0x475e90);}(_0x6b48,0x1d2));var _0x86b4=function(_0xda4b4b,_0x5bf81f){_0xda4b4b=_0xda4b4b-0x0;var _0xfc676f=_0x6b48[_0xda4b4b];return _0xfc676f;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x86b4('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x86b4('0x1')]();var fs_extra=require(_0x86b4('0x2'));var auth=require(_0x86b4('0x3'));var interaction=require(_0x86b4('0x4'));var config=require('../../config/environment');var controller=require(_0x86b4('0x5'));router[_0x86b4('0x6')]('/',auth[_0x86b4('0x7')](),controller['index']);router['get'](_0x86b4('0x8'),auth[_0x86b4('0x7')](),controller[_0x86b4('0x9')]);router['get'](_0x86b4('0xa'),auth[_0x86b4('0x7')](),controller['getSounds']);router[_0x86b4('0xb')]('/',auth[_0x86b4('0x7')](),controller[_0x86b4('0xc')]);router[_0x86b4('0xb')](_0x86b4('0xa'),auth['isAuthenticated'](),controller[_0x86b4('0xd')]);router[_0x86b4('0xe')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x86b4('0xf')](_0x86b4('0x8'),auth['isAuthenticated'](),controller[_0x86b4('0x10')]);router[_0x86b4('0xf')]('/:id/sounds/:id2',auth[_0x86b4('0x7')](),controller[_0x86b4('0x11')]);module[_0x86b4('0x12')]=router;