Built motion from commit 85328c08.|2.5.50
[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 _0x723e=['destroy','delete','removeAgents','removeTeams','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voicePrefix.controller','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/users','getAgents','/:id/teams','getTeams','post','create','addTeams','put','update'];(function(_0x3f7454,_0x343109){var _0x12a8e7=function(_0x1aacaf){while(--_0x1aacaf){_0x3f7454['push'](_0x3f7454['shift']());}};_0x12a8e7(++_0x343109);}(_0x723e,0x179));var _0xe723=function(_0x4624c4,_0x2620c9){_0x4624c4=_0x4624c4-0x0;var _0x3c0d60=_0x723e[_0x4624c4];return _0x3c0d60;};'use strict';var multer=require('multer');var util=require(_0xe723('0x0'));var path=require(_0xe723('0x1'));var timeout=require(_0xe723('0x2'));var express=require(_0xe723('0x3'));var router=express[_0xe723('0x4')]();var fs_extra=require(_0xe723('0x5'));var auth=require(_0xe723('0x6'));var interaction=require(_0xe723('0x7'));var config=require(_0xe723('0x8'));var controller=require(_0xe723('0x9'));router['get']('/',auth[_0xe723('0xa')](),controller[_0xe723('0xb')]);router[_0xe723('0xc')](_0xe723('0xd'),auth[_0xe723('0xa')](),controller[_0xe723('0xe')]);router[_0xe723('0xc')](_0xe723('0xf'),auth['isAuthenticated'](),controller[_0xe723('0x10')]);router[_0xe723('0xc')](_0xe723('0x11'),auth['isAuthenticated'](),controller[_0xe723('0x12')]);router[_0xe723('0xc')](_0xe723('0x13'),auth['isAuthenticated'](),controller[_0xe723('0x14')]);router[_0xe723('0x15')]('/',auth[_0xe723('0xa')](),controller[_0xe723('0x16')]);router[_0xe723('0x15')]('/:id/users',auth[_0xe723('0xa')](),controller['addAgents']);router['post']('/:id/teams',auth['isAuthenticated'](),controller[_0xe723('0x17')]);router[_0xe723('0x18')](_0xe723('0xf'),auth[_0xe723('0xa')](),controller[_0xe723('0x19')]);router['delete'](_0xe723('0xf'),auth[_0xe723('0xa')](),controller[_0xe723('0x1a')]);router[_0xe723('0x1b')](_0xe723('0x11'),auth[_0xe723('0xa')](),controller[_0xe723('0x1c')]);router[_0xe723('0x1b')](_0xe723('0x13'),auth[_0xe723('0xa')](),controller[_0xe723('0x1d')]);module[_0xe723('0x1e')]=router;