94ae5378170ea90152ffe51036d8220390115aa2
[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 _0xa566=['/:id/teams','getTeams','/:id/users','post','create','addTeams','addAgents','put','/:id','update','delete','destroy','removeTeams','removeAgents','util','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','isAuthenticated','index','/describe','describe','show','/:id/members','getMembers'];(function(_0x28c89b,_0x2510b3){var _0x176500=function(_0x3dfee2){while(--_0x3dfee2){_0x28c89b['push'](_0x28c89b['shift']());}};_0x176500(++_0x2510b3);}(_0xa566,0x9f));var _0x6a56=function(_0x43c1f3,_0xefe627){_0x43c1f3=_0x43c1f3-0x0;var _0x157f0c=_0xa566[_0x43c1f3];return _0x157f0c;};'use strict';var multer=require('multer');var util=require(_0x6a56('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x6a56('0x1')]();var fs_extra=require(_0x6a56('0x2'));var auth=require(_0x6a56('0x3'));var interaction=require(_0x6a56('0x4'));var config=require(_0x6a56('0x5'));var controller=require(_0x6a56('0x6'));router[_0x6a56('0x7')]('/',auth[_0x6a56('0x8')](),controller[_0x6a56('0x9')]);router[_0x6a56('0x7')](_0x6a56('0xa'),auth[_0x6a56('0x8')](),controller[_0x6a56('0xb')]);router[_0x6a56('0x7')]('/:id',auth[_0x6a56('0x8')](),controller[_0x6a56('0xc')]);router['get'](_0x6a56('0xd'),auth[_0x6a56('0x8')](),controller[_0x6a56('0xe')]);router[_0x6a56('0x7')](_0x6a56('0xf'),auth[_0x6a56('0x8')](),controller[_0x6a56('0x10')]);router[_0x6a56('0x7')](_0x6a56('0x11'),auth[_0x6a56('0x8')](),controller['getAgents']);router[_0x6a56('0x12')]('/',auth[_0x6a56('0x8')](),controller[_0x6a56('0x13')]);router[_0x6a56('0x12')](_0x6a56('0xf'),auth[_0x6a56('0x8')](),controller[_0x6a56('0x14')]);router[_0x6a56('0x12')](_0x6a56('0x11'),auth['isAuthenticated'](),controller[_0x6a56('0x15')]);router[_0x6a56('0x16')](_0x6a56('0x17'),auth[_0x6a56('0x8')](),controller[_0x6a56('0x18')]);router[_0x6a56('0x19')](_0x6a56('0x17'),auth[_0x6a56('0x8')](),controller[_0x6a56('0x1a')]);router[_0x6a56('0x19')](_0x6a56('0xf'),auth[_0x6a56('0x8')](),controller[_0x6a56('0x1b')]);router[_0x6a56('0x19')](_0x6a56('0x11'),auth['isAuthenticated'](),controller[_0x6a56('0x1c')]);module['exports']=router;