Built motion from commit 4e7c323b.|2.5.34
[motion2.git] / server / api / openchannelQueue / 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 _0xa8cb=['../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','isAuthenticated','index','/describe','describe','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','post','create','addTeams','addAgents','put','/:id','update','delete','destroy','removeTeams','removeAgents','exports','util','path','connect-timeout','Router','../../components/auth/service'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xa8cb,0xcd));var _0xba8c=function(_0x4bbc6d,_0x33a171){_0x4bbc6d=_0x4bbc6d-0x0;var _0x3ae109=_0xa8cb[_0x4bbc6d];return _0x3ae109;};'use strict';var multer=require('multer');var util=require(_0xba8c('0x0'));var path=require(_0xba8c('0x1'));var timeout=require(_0xba8c('0x2'));var express=require('express');var router=express[_0xba8c('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xba8c('0x4'));var interaction=require(_0xba8c('0x5'));var config=require(_0xba8c('0x6'));var controller=require(_0xba8c('0x7'));router[_0xba8c('0x8')]('/',auth[_0xba8c('0x9')](),controller[_0xba8c('0xa')]);router['get'](_0xba8c('0xb'),auth[_0xba8c('0x9')](),controller[_0xba8c('0xc')]);router['get']('/:id',auth[_0xba8c('0x9')](),controller['show']);router[_0xba8c('0x8')](_0xba8c('0xd'),auth['isAuthenticated'](),controller[_0xba8c('0xe')]);router[_0xba8c('0x8')](_0xba8c('0xf'),auth['isAuthenticated'](),controller[_0xba8c('0x10')]);router[_0xba8c('0x8')](_0xba8c('0x11'),auth['isAuthenticated'](),controller['getAgents']);router[_0xba8c('0x12')]('/',auth['isAuthenticated'](),controller[_0xba8c('0x13')]);router[_0xba8c('0x12')](_0xba8c('0xf'),auth[_0xba8c('0x9')](),controller[_0xba8c('0x14')]);router[_0xba8c('0x12')](_0xba8c('0x11'),auth['isAuthenticated'](),controller[_0xba8c('0x15')]);router[_0xba8c('0x16')](_0xba8c('0x17'),auth[_0xba8c('0x9')](),controller[_0xba8c('0x18')]);router[_0xba8c('0x19')](_0xba8c('0x17'),auth[_0xba8c('0x9')](),controller[_0xba8c('0x1a')]);router[_0xba8c('0x19')](_0xba8c('0xf'),auth[_0xba8c('0x9')](),controller[_0xba8c('0x1b')]);router[_0xba8c('0x19')](_0xba8c('0x11'),auth['isAuthenticated'](),controller[_0xba8c('0x1c')]);module[_0xba8c('0x1d')]=router;