40ae749fd9900073f2d93bd0203241de57f7f88d
[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 _0x80d5=['getSounds','post','create','put','delete','destroy','/:id/sounds/:id2','removeSound','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./voiceMusicOnHold.controller','get','index','/:id','isAuthenticated','show','/:id/sounds'];(function(_0xf71e78,_0x5a4184){var _0x5bfc4c=function(_0x5f1999){while(--_0x5f1999){_0xf71e78['push'](_0xf71e78['shift']());}};_0x5bfc4c(++_0x5a4184);}(_0x80d5,0x14b));var _0x580d=function(_0x2783c3,_0x1cad62){_0x2783c3=_0x2783c3-0x0;var _0x19957d=_0x80d5[_0x2783c3];return _0x19957d;};'use strict';var multer=require(_0x580d('0x0'));var util=require('util');var path=require(_0x580d('0x1'));var timeout=require(_0x580d('0x2'));var express=require(_0x580d('0x3'));var router=express[_0x580d('0x4')]();var auth=require(_0x580d('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x580d('0x6'));var controller=require(_0x580d('0x7'));router[_0x580d('0x8')]('/',auth['isAuthenticated'](),controller[_0x580d('0x9')]);router[_0x580d('0x8')](_0x580d('0xa'),auth[_0x580d('0xb')](),controller[_0x580d('0xc')]);router[_0x580d('0x8')](_0x580d('0xd'),auth[_0x580d('0xb')](),controller[_0x580d('0xe')]);router[_0x580d('0xf')]('/',auth[_0x580d('0xb')](),controller[_0x580d('0x10')]);router[_0x580d('0xf')](_0x580d('0xd'),auth['isAuthenticated'](),controller['addSound']);router[_0x580d('0x11')](_0x580d('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x580d('0x12')](_0x580d('0xa'),auth[_0x580d('0xb')](),controller[_0x580d('0x13')]);router['delete'](_0x580d('0x14'),auth[_0x580d('0xb')](),controller[_0x580d('0x15')]);module[_0x580d('0x16')]=router;