Built motion from commit bbec7235.|2.6.20
[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 _0x5c58=['getTeams','post','create','addAgents','/:id/teams','addTeams','delete','removeAgents','removeTeams','exports','util','path','Router','fs-extra','../../components/auth/service','../../config/environment','isAuthenticated','get','/:id','show','/:id/users','getAgents'];(function(_0x5b754d,_0x5192ff){var _0x423e2e=function(_0x115138){while(--_0x115138){_0x5b754d['push'](_0x5b754d['shift']());}};_0x423e2e(++_0x5192ff);}(_0x5c58,0x154));var _0x85c5=function(_0x21f33c,_0x150610){_0x21f33c=_0x21f33c-0x0;var _0xc255b5=_0x5c58[_0x21f33c];return _0xc255b5;};'use strict';var multer=require('multer');var util=require(_0x85c5('0x0'));var path=require(_0x85c5('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x85c5('0x2')]();var fs_extra=require(_0x85c5('0x3'));var auth=require(_0x85c5('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x85c5('0x5'));var controller=require('./voicePrefix.controller');router['get']('/',auth[_0x85c5('0x6')](),controller['index']);router[_0x85c5('0x7')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x85c5('0x7')](_0x85c5('0x8'),auth['isAuthenticated'](),controller[_0x85c5('0x9')]);router['get'](_0x85c5('0xa'),auth[_0x85c5('0x6')](),controller[_0x85c5('0xb')]);router[_0x85c5('0x7')]('/:id/teams',auth[_0x85c5('0x6')](),controller[_0x85c5('0xc')]);router[_0x85c5('0xd')]('/',auth[_0x85c5('0x6')](),controller[_0x85c5('0xe')]);router['post'](_0x85c5('0xa'),auth[_0x85c5('0x6')](),controller[_0x85c5('0xf')]);router[_0x85c5('0xd')](_0x85c5('0x10'),auth['isAuthenticated'](),controller[_0x85c5('0x11')]);router['put'](_0x85c5('0x8'),auth[_0x85c5('0x6')](),controller['update']);router[_0x85c5('0x12')](_0x85c5('0x8'),auth['isAuthenticated'](),controller['destroy']);router[_0x85c5('0x12')]('/:id/users',auth[_0x85c5('0x6')](),controller[_0x85c5('0x13')]);router[_0x85c5('0x12')](_0x85c5('0x10'),auth['isAuthenticated'](),controller[_0x85c5('0x14')]);module[_0x85c5('0x15')]=router;