Built motion from commit (unavailable).|2.5.9
[motion2.git] / server / api / chatQueue / 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 _0x21fd=['addTeams','update','delete','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','create','post'];(function(_0x13e1fc,_0x32443b){var _0x4e0314=function(_0x48b86b){while(--_0x48b86b){_0x13e1fc['push'](_0x13e1fc['shift']());}};_0x4e0314(++_0x32443b);}(_0x21fd,0x1e2));var _0xd21f=function(_0x4b7f7c,_0x309f90){_0x4b7f7c=_0x4b7f7c-0x0;var _0x301ef2=_0x21fd[_0x4b7f7c];return _0x301ef2;};'use strict';var multer=require(_0xd21f('0x0'));var util=require(_0xd21f('0x1'));var path=require(_0xd21f('0x2'));var timeout=require(_0xd21f('0x3'));var express=require(_0xd21f('0x4'));var router=express[_0xd21f('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xd21f('0x6'));var config=require(_0xd21f('0x7'));var controller=require('./chatQueue.controller');router[_0xd21f('0x8')]('/',auth[_0xd21f('0x9')](),controller[_0xd21f('0xa')]);router['get'](_0xd21f('0xb'),auth[_0xd21f('0x9')](),controller[_0xd21f('0xc')]);router[_0xd21f('0x8')](_0xd21f('0xd'),auth[_0xd21f('0x9')](),controller[_0xd21f('0xe')]);router[_0xd21f('0x8')](_0xd21f('0xf'),auth[_0xd21f('0x9')](),controller[_0xd21f('0x10')]);router[_0xd21f('0x8')](_0xd21f('0x11'),auth[_0xd21f('0x9')](),controller[_0xd21f('0x12')]);router[_0xd21f('0x8')](_0xd21f('0x13'),auth['isAuthenticated'](),controller['getAgents']);router['post']('/',auth[_0xd21f('0x9')](),controller[_0xd21f('0x14')]);router[_0xd21f('0x15')]('/:id/teams',auth[_0xd21f('0x9')](),controller[_0xd21f('0x16')]);router[_0xd21f('0x15')]('/:id/users',auth[_0xd21f('0x9')](),controller['addAgents']);router['put'](_0xd21f('0xd'),auth[_0xd21f('0x9')](),controller[_0xd21f('0x17')]);router[_0xd21f('0x18')](_0xd21f('0xd'),auth[_0xd21f('0x9')](),controller['destroy']);router[_0xd21f('0x18')]('/:id/teams',auth[_0xd21f('0x9')](),controller[_0xd21f('0x19')]);router[_0xd21f('0x18')](_0xd21f('0x13'),auth['isAuthenticated'](),controller[_0xd21f('0x1a')]);module[_0xd21f('0x1b')]=router;