c08687af683357df8fc32673b4069a8986ed8226
[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 _0x6ec0=['addSound','put','update','delete','exports','util','path','express','Router','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','get','isAuthenticated','index','/:id','/:id/sounds','getSounds','post','create'];(function(_0x5d4e01,_0xf80214){var _0x45f871=function(_0x510b48){while(--_0x510b48){_0x5d4e01['push'](_0x5d4e01['shift']());}};_0x45f871(++_0xf80214);}(_0x6ec0,0x91));var _0x06ec=function(_0x554db4,_0x4cbe7b){_0x554db4=_0x554db4-0x0;var _0x6b1dd1=_0x6ec0[_0x554db4];return _0x6b1dd1;};'use strict';var multer=require('multer');var util=require(_0x06ec('0x0'));var path=require(_0x06ec('0x1'));var timeout=require('connect-timeout');var express=require(_0x06ec('0x2'));var router=express[_0x06ec('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x06ec('0x4'));var config=require(_0x06ec('0x5'));var controller=require(_0x06ec('0x6'));router[_0x06ec('0x7')]('/',auth[_0x06ec('0x8')](),controller[_0x06ec('0x9')]);router['get'](_0x06ec('0xa'),auth[_0x06ec('0x8')](),controller['show']);router[_0x06ec('0x7')](_0x06ec('0xb'),auth[_0x06ec('0x8')](),controller[_0x06ec('0xc')]);router[_0x06ec('0xd')]('/',auth[_0x06ec('0x8')](),controller[_0x06ec('0xe')]);router[_0x06ec('0xd')](_0x06ec('0xb'),auth['isAuthenticated'](),controller[_0x06ec('0xf')]);router[_0x06ec('0x10')](_0x06ec('0xa'),auth['isAuthenticated'](),controller[_0x06ec('0x11')]);router[_0x06ec('0x12')]('/:id',auth[_0x06ec('0x8')](),controller['destroy']);router[_0x06ec('0x12')]('/:id/sounds/:id2',auth[_0x06ec('0x8')](),controller['removeSound']);module[_0x06ec('0x13')]=router;