Built motion from commit fa4c4286.|2.6.29
[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 _0x0738=['../../components/auth/service','../../components/interaction/service','../../config/environment','./voicePrefix.controller','get','isAuthenticated','/describe','describe','/:id','show','getAgents','/:id/teams','post','addAgents','addTeams','put','update','delete','destroy','/:id/users','removeAgents','removeTeams','exports','multer','path','connect-timeout','express','Router','fs-extra'];(function(_0x13c625,_0xc65b8e){var _0x1f2506=function(_0x318ccc){while(--_0x318ccc){_0x13c625['push'](_0x13c625['shift']());}};_0x1f2506(++_0xc65b8e);}(_0x0738,0x6e));var _0x8073=function(_0x86c6cb,_0x30bb53){_0x86c6cb=_0x86c6cb-0x0;var _0x1b1592=_0x0738[_0x86c6cb];return _0x1b1592;};'use strict';var multer=require(_0x8073('0x0'));var util=require('util');var path=require(_0x8073('0x1'));var timeout=require(_0x8073('0x2'));var express=require(_0x8073('0x3'));var router=express[_0x8073('0x4')]();var fs_extra=require(_0x8073('0x5'));var auth=require(_0x8073('0x6'));var interaction=require(_0x8073('0x7'));var config=require(_0x8073('0x8'));var controller=require(_0x8073('0x9'));router[_0x8073('0xa')]('/',auth[_0x8073('0xb')](),controller['index']);router[_0x8073('0xa')](_0x8073('0xc'),auth[_0x8073('0xb')](),controller[_0x8073('0xd')]);router[_0x8073('0xa')](_0x8073('0xe'),auth[_0x8073('0xb')](),controller[_0x8073('0xf')]);router[_0x8073('0xa')]('/:id/users',auth['isAuthenticated'](),controller[_0x8073('0x10')]);router[_0x8073('0xa')](_0x8073('0x11'),auth[_0x8073('0xb')](),controller['getTeams']);router[_0x8073('0x12')]('/',auth[_0x8073('0xb')](),controller['create']);router[_0x8073('0x12')]('/:id/users',auth[_0x8073('0xb')](),controller[_0x8073('0x13')]);router[_0x8073('0x12')](_0x8073('0x11'),auth['isAuthenticated'](),controller[_0x8073('0x14')]);router[_0x8073('0x15')](_0x8073('0xe'),auth[_0x8073('0xb')](),controller[_0x8073('0x16')]);router[_0x8073('0x17')](_0x8073('0xe'),auth['isAuthenticated'](),controller[_0x8073('0x18')]);router['delete'](_0x8073('0x19'),auth[_0x8073('0xb')](),controller[_0x8073('0x1a')]);router[_0x8073('0x17')](_0x8073('0x11'),auth[_0x8073('0xb')](),controller[_0x8073('0x1b')]);module[_0x8073('0x1c')]=router;