172bbe5fe4ac39a798785c5b6534c7881e03b223
[motion2.git] / server / api / voicePrefix / 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 _0xd5b4=['post','addAgents','put','delete','destroy','/:id/users','removeAgents','exports','multer','util','connect-timeout','../../components/interaction/service','./voicePrefix.controller','get','isAuthenticated','index','/:id','show','getAgents'];(function(_0x4c9f6a,_0xcb2cb2){var _0x5df5b9=function(_0x303cf2){while(--_0x303cf2){_0x4c9f6a['push'](_0x4c9f6a['shift']());}};_0x5df5b9(++_0xcb2cb2);}(_0xd5b4,0xa0));var _0x4d5b=function(_0x3ef051,_0x49ea91){_0x3ef051=_0x3ef051-0x0;var _0x5679b3=_0xd5b4[_0x3ef051];return _0x5679b3;};'use strict';var multer=require(_0x4d5b('0x0'));var util=require(_0x4d5b('0x1'));var path=require('path');var timeout=require(_0x4d5b('0x2'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x4d5b('0x3'));var config=require('../../config/environment');var controller=require(_0x4d5b('0x4'));router[_0x4d5b('0x5')]('/',auth[_0x4d5b('0x6')](),controller[_0x4d5b('0x7')]);router[_0x4d5b('0x5')]('/describe',auth[_0x4d5b('0x6')](),controller['describe']);router[_0x4d5b('0x5')](_0x4d5b('0x8'),auth['isAuthenticated'](),controller[_0x4d5b('0x9')]);router[_0x4d5b('0x5')]('/:id/users',auth[_0x4d5b('0x6')](),controller[_0x4d5b('0xa')]);router[_0x4d5b('0xb')]('/',auth[_0x4d5b('0x6')](),controller['create']);router[_0x4d5b('0xb')]('/:id/users',auth['isAuthenticated'](),controller[_0x4d5b('0xc')]);router[_0x4d5b('0xd')]('/:id',auth[_0x4d5b('0x6')](),controller['update']);router[_0x4d5b('0xe')](_0x4d5b('0x8'),auth['isAuthenticated'](),controller[_0x4d5b('0xf')]);router['delete'](_0x4d5b('0x10'),auth[_0x4d5b('0x6')](),controller[_0x4d5b('0x11')]);module[_0x4d5b('0x12')]=router;