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