cb063eedce8c38d503bbf7b3cd6c01164ab2701c
[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 _0xf014=['/:id/users','getAgents','post','create','/:id/teams','addAgents','put','/:id','update','delete','destroy','removeAgents','exports','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','get','isAuthenticated','describe','/:id/members','getMembers'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0xf014,0xd5));var _0x4f01=function(_0x480eff,_0x541555){_0x480eff=_0x480eff-0x0;var _0x5c8aeb=_0xf014[_0x480eff];return _0x5c8aeb;};'use strict';var multer=require('multer');var util=require(_0x4f01('0x0'));var path=require(_0x4f01('0x1'));var timeout=require('connect-timeout');var express=require(_0x4f01('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x4f01('0x3'));var interaction=require(_0x4f01('0x4'));var config=require(_0x4f01('0x5'));var controller=require(_0x4f01('0x6'));router[_0x4f01('0x7')]('/',auth[_0x4f01('0x8')](),controller['index']);router[_0x4f01('0x7')]('/describe',auth['isAuthenticated'](),controller[_0x4f01('0x9')]);router[_0x4f01('0x7')]('/:id',auth[_0x4f01('0x8')](),controller['show']);router[_0x4f01('0x7')](_0x4f01('0xa'),auth[_0x4f01('0x8')](),controller[_0x4f01('0xb')]);router[_0x4f01('0x7')]('/:id/teams',auth[_0x4f01('0x8')](),controller['getTeams']);router[_0x4f01('0x7')](_0x4f01('0xc'),auth['isAuthenticated'](),controller[_0x4f01('0xd')]);router[_0x4f01('0xe')]('/',auth[_0x4f01('0x8')](),controller[_0x4f01('0xf')]);router['post'](_0x4f01('0x10'),auth[_0x4f01('0x8')](),controller['addTeams']);router['post'](_0x4f01('0xc'),auth[_0x4f01('0x8')](),controller[_0x4f01('0x11')]);router[_0x4f01('0x12')](_0x4f01('0x13'),auth[_0x4f01('0x8')](),controller[_0x4f01('0x14')]);router[_0x4f01('0x15')](_0x4f01('0x13'),auth[_0x4f01('0x8')](),controller[_0x4f01('0x16')]);router[_0x4f01('0x15')](_0x4f01('0x10'),auth['isAuthenticated'](),controller['removeTeams']);router[_0x4f01('0x15')]('/:id/users',auth[_0x4f01('0x8')](),controller[_0x4f01('0x17')]);module[_0x4f01('0x18')]=router;