40b71a265b3f79aa84459290d9dac796bc70e634
[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 _0xc627=['getAgents','post','create','addTeams','put','delete','/:id','destroy','removeTeams','removeAgents','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','isAuthenticated','index','/describe','describe','show','/:id/members','/:id/teams','getTeams','/:id/users'];(function(_0x478fd2,_0x47e6eb){var _0x313061=function(_0x271a9f){while(--_0x271a9f){_0x478fd2['push'](_0x478fd2['shift']());}};_0x313061(++_0x47e6eb);}(_0xc627,0x14a));var _0x7c62=function(_0x330c31,_0x5e016b){_0x330c31=_0x330c31-0x0;var _0x4b655c=_0xc627[_0x330c31];return _0x4b655c;};'use strict';var multer=require('multer');var util=require(_0x7c62('0x0'));var path=require(_0x7c62('0x1'));var timeout=require(_0x7c62('0x2'));var express=require('express');var router=express[_0x7c62('0x3')]();var auth=require(_0x7c62('0x4'));var interaction=require(_0x7c62('0x5'));var config=require(_0x7c62('0x6'));var controller=require(_0x7c62('0x7'));router[_0x7c62('0x8')]('/',auth[_0x7c62('0x9')](),controller[_0x7c62('0xa')]);router[_0x7c62('0x8')](_0x7c62('0xb'),auth[_0x7c62('0x9')](),controller[_0x7c62('0xc')]);router['get']('/:id',auth[_0x7c62('0x9')](),controller[_0x7c62('0xd')]);router[_0x7c62('0x8')](_0x7c62('0xe'),auth['isAuthenticated'](),controller['getMembers']);router['get'](_0x7c62('0xf'),auth['isAuthenticated'](),controller[_0x7c62('0x10')]);router[_0x7c62('0x8')](_0x7c62('0x11'),auth[_0x7c62('0x9')](),controller[_0x7c62('0x12')]);router[_0x7c62('0x13')]('/',auth[_0x7c62('0x9')](),controller[_0x7c62('0x14')]);router[_0x7c62('0x13')](_0x7c62('0xf'),auth[_0x7c62('0x9')](),controller[_0x7c62('0x15')]);router[_0x7c62('0x13')](_0x7c62('0x11'),auth[_0x7c62('0x9')](),controller['addAgents']);router[_0x7c62('0x16')]('/:id',auth[_0x7c62('0x9')](),controller['update']);router[_0x7c62('0x17')](_0x7c62('0x18'),auth[_0x7c62('0x9')](),controller[_0x7c62('0x19')]);router[_0x7c62('0x17')]('/:id/teams',auth['isAuthenticated'](),controller[_0x7c62('0x1a')]);router['delete'](_0x7c62('0x11'),auth[_0x7c62('0x9')](),controller[_0x7c62('0x1b')]);module[_0x7c62('0x1c')]=router;