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