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