Built motion from commit c116dc8b.|2.6.30
[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 _0xf987=['update','delete','removeTeams','exports','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voicePrefix.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/teams','getTeams','post','create','/:id/users','addAgents','addTeams','put'];(function(_0x1abb09,_0x18ee91){var _0xea1c07=function(_0x38f42c){while(--_0x38f42c){_0x1abb09['push'](_0x1abb09['shift']());}};_0xea1c07(++_0x18ee91);}(_0xf987,0x18a));var _0x7f98=function(_0x13b6d7,_0x406cc5){_0x13b6d7=_0x13b6d7-0x0;var _0x159b23=_0xf987[_0x13b6d7];return _0x159b23;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x7f98('0x0'));var timeout=require(_0x7f98('0x1'));var express=require('express');var router=express[_0x7f98('0x2')]();var fs_extra=require(_0x7f98('0x3'));var auth=require(_0x7f98('0x4'));var interaction=require(_0x7f98('0x5'));var config=require(_0x7f98('0x6'));var controller=require(_0x7f98('0x7'));router[_0x7f98('0x8')]('/',auth[_0x7f98('0x9')](),controller[_0x7f98('0xa')]);router[_0x7f98('0x8')](_0x7f98('0xb'),auth[_0x7f98('0x9')](),controller['describe']);router[_0x7f98('0x8')](_0x7f98('0xc'),auth[_0x7f98('0x9')](),controller[_0x7f98('0xd')]);router[_0x7f98('0x8')]('/:id/users',auth[_0x7f98('0x9')](),controller['getAgents']);router['get'](_0x7f98('0xe'),auth[_0x7f98('0x9')](),controller[_0x7f98('0xf')]);router[_0x7f98('0x10')]('/',auth['isAuthenticated'](),controller[_0x7f98('0x11')]);router['post'](_0x7f98('0x12'),auth[_0x7f98('0x9')](),controller[_0x7f98('0x13')]);router[_0x7f98('0x10')](_0x7f98('0xe'),auth[_0x7f98('0x9')](),controller[_0x7f98('0x14')]);router[_0x7f98('0x15')](_0x7f98('0xc'),auth[_0x7f98('0x9')](),controller[_0x7f98('0x16')]);router[_0x7f98('0x17')]('/:id',auth[_0x7f98('0x9')](),controller['destroy']);router['delete'](_0x7f98('0x12'),auth[_0x7f98('0x9')](),controller['removeAgents']);router['delete']('/:id/teams',auth['isAuthenticated'](),controller[_0x7f98('0x18')]);module[_0x7f98('0x19')]=router;