Built motion from commit (unavailable).|2.5.29
[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 _0xf603=['/:id/users','post','create','addTeams','put','/:id','update','delete','destroy','removeTeams','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./chatQueue.controller','index','get','/describe','isAuthenticated','describe','show','/:id/members','/:id/teams'];(function(_0x52812f,_0x202f07){var _0x33c362=function(_0x242bfe){while(--_0x242bfe){_0x52812f['push'](_0x52812f['shift']());}};_0x33c362(++_0x202f07);}(_0xf603,0xeb));var _0x3f60=function(_0x1265a9,_0x32cc90){_0x1265a9=_0x1265a9-0x0;var _0x321865=_0xf603[_0x1265a9];return _0x321865;};'use strict';var multer=require(_0x3f60('0x0'));var util=require(_0x3f60('0x1'));var path=require(_0x3f60('0x2'));var timeout=require('connect-timeout');var express=require(_0x3f60('0x3'));var router=express[_0x3f60('0x4')]();var fs_extra=require(_0x3f60('0x5'));var auth=require(_0x3f60('0x6'));var interaction=require(_0x3f60('0x7'));var config=require('../../config/environment');var controller=require(_0x3f60('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x3f60('0x9')]);router[_0x3f60('0xa')](_0x3f60('0xb'),auth[_0x3f60('0xc')](),controller[_0x3f60('0xd')]);router[_0x3f60('0xa')]('/:id',auth[_0x3f60('0xc')](),controller[_0x3f60('0xe')]);router[_0x3f60('0xa')](_0x3f60('0xf'),auth['isAuthenticated'](),controller['getMembers']);router[_0x3f60('0xa')](_0x3f60('0x10'),auth[_0x3f60('0xc')](),controller['getTeams']);router[_0x3f60('0xa')](_0x3f60('0x11'),auth[_0x3f60('0xc')](),controller['getAgents']);router[_0x3f60('0x12')]('/',auth[_0x3f60('0xc')](),controller[_0x3f60('0x13')]);router[_0x3f60('0x12')](_0x3f60('0x10'),auth[_0x3f60('0xc')](),controller[_0x3f60('0x14')]);router[_0x3f60('0x12')]('/:id/users',auth['isAuthenticated'](),controller['addAgents']);router[_0x3f60('0x15')](_0x3f60('0x16'),auth[_0x3f60('0xc')](),controller[_0x3f60('0x17')]);router[_0x3f60('0x18')](_0x3f60('0x16'),auth[_0x3f60('0xc')](),controller[_0x3f60('0x19')]);router[_0x3f60('0x18')]('/:id/teams',auth[_0x3f60('0xc')](),controller[_0x3f60('0x1a')]);router[_0x3f60('0x18')](_0x3f60('0x11'),auth['isAuthenticated'](),controller['removeAgents']);module[_0x3f60('0x1b')]=router;