37974136fb8b4dee87501ee1d32e9f304f5d56be
[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 _0xbd50=['addTeams','delete','destroy','removeAgents','removeTeams','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/describe','/:id','show','/:id/users','/:id/teams','getTeams','post','addAgents'];(function(_0x4d9be2,_0x318c88){var _0x1d51a7=function(_0xd2fd8e){while(--_0xd2fd8e){_0x4d9be2['push'](_0x4d9be2['shift']());}};_0x1d51a7(++_0x318c88);}(_0xbd50,0x196));var _0x0bd5=function(_0x339d6c,_0x3ffdc2){_0x339d6c=_0x339d6c-0x0;var _0x556648=_0xbd50[_0x339d6c];return _0x556648;};'use strict';var multer=require(_0x0bd5('0x0'));var util=require(_0x0bd5('0x1'));var path=require(_0x0bd5('0x2'));var timeout=require('connect-timeout');var express=require(_0x0bd5('0x3'));var router=express[_0x0bd5('0x4')]();var fs_extra=require(_0x0bd5('0x5'));var auth=require(_0x0bd5('0x6'));var interaction=require(_0x0bd5('0x7'));var config=require('../../config/environment');var controller=require('./voicePrefix.controller');router['get']('/',auth[_0x0bd5('0x8')](),controller[_0x0bd5('0x9')]);router[_0x0bd5('0xa')](_0x0bd5('0xb'),auth[_0x0bd5('0x8')](),controller['describe']);router['get'](_0x0bd5('0xc'),auth[_0x0bd5('0x8')](),controller[_0x0bd5('0xd')]);router['get'](_0x0bd5('0xe'),auth[_0x0bd5('0x8')](),controller['getAgents']);router[_0x0bd5('0xa')](_0x0bd5('0xf'),auth['isAuthenticated'](),controller[_0x0bd5('0x10')]);router[_0x0bd5('0x11')]('/',auth[_0x0bd5('0x8')](),controller['create']);router[_0x0bd5('0x11')](_0x0bd5('0xe'),auth[_0x0bd5('0x8')](),controller[_0x0bd5('0x12')]);router[_0x0bd5('0x11')](_0x0bd5('0xf'),auth[_0x0bd5('0x8')](),controller[_0x0bd5('0x13')]);router['put'](_0x0bd5('0xc'),auth[_0x0bd5('0x8')](),controller['update']);router[_0x0bd5('0x14')](_0x0bd5('0xc'),auth[_0x0bd5('0x8')](),controller[_0x0bd5('0x15')]);router['delete'](_0x0bd5('0xe'),auth[_0x0bd5('0x8')](),controller[_0x0bd5('0x16')]);router[_0x0bd5('0x14')](_0x0bd5('0xf'),auth[_0x0bd5('0x8')](),controller[_0x0bd5('0x17')]);module[_0x0bd5('0x18')]=router;