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