Built motion from commit (unavailable).|2.5.22
[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 _0x4300=['show','/:id/members','/:id/teams','getTeams','/:id/users','getAgents','create','post','addTeams','addAgents','put','removeTeams','delete','exports','multer','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelQueue.controller','isAuthenticated','get','describe','/:id'];(function(_0x5afcdf,_0x164d88){var _0x108b15=function(_0x476015){while(--_0x476015){_0x5afcdf['push'](_0x5afcdf['shift']());}};_0x108b15(++_0x164d88);}(_0x4300,0x1a6));var _0x0430=function(_0x1e5ddd,_0x531b8b){_0x1e5ddd=_0x1e5ddd-0x0;var _0x10075f=_0x4300[_0x1e5ddd];return _0x10075f;};'use strict';var multer=require(_0x0430('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0430('0x1')]();var auth=require(_0x0430('0x2'));var interaction=require(_0x0430('0x3'));var config=require(_0x0430('0x4'));var controller=require(_0x0430('0x5'));router['get']('/',auth[_0x0430('0x6')](),controller['index']);router[_0x0430('0x7')]('/describe',auth[_0x0430('0x6')](),controller[_0x0430('0x8')]);router[_0x0430('0x7')](_0x0430('0x9'),auth[_0x0430('0x6')](),controller[_0x0430('0xa')]);router[_0x0430('0x7')](_0x0430('0xb'),auth[_0x0430('0x6')](),controller['getMembers']);router[_0x0430('0x7')](_0x0430('0xc'),auth[_0x0430('0x6')](),controller[_0x0430('0xd')]);router[_0x0430('0x7')](_0x0430('0xe'),auth[_0x0430('0x6')](),controller[_0x0430('0xf')]);router['post']('/',auth['isAuthenticated'](),controller[_0x0430('0x10')]);router[_0x0430('0x11')](_0x0430('0xc'),auth[_0x0430('0x6')](),controller[_0x0430('0x12')]);router[_0x0430('0x11')](_0x0430('0xe'),auth['isAuthenticated'](),controller[_0x0430('0x13')]);router[_0x0430('0x14')](_0x0430('0x9'),auth[_0x0430('0x6')](),controller['update']);router['delete']('/:id',auth[_0x0430('0x6')](),controller['destroy']);router['delete'](_0x0430('0xc'),auth[_0x0430('0x6')](),controller[_0x0430('0x15')]);router[_0x0430('0x16')](_0x0430('0xe'),auth['isAuthenticated'](),controller['removeAgents']);module[_0x0430('0x17')]=router;