b3ebc8ad64f791eb45347e005ad022785eca57c7
[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 _0x36bd=['addAgents','put','update','destroy','delete','removeTeams','exports','util','connect-timeout','express','Router','../../config/environment','./chatQueue.controller','isAuthenticated','index','get','describe','/:id','/:id/members','getMembers','getTeams','/:id/users','getAgents','post','create','/:id/teams','addTeams'];(function(_0x2cbaf3,_0x4b3a82){var _0x4efa11=function(_0x120642){while(--_0x120642){_0x2cbaf3['push'](_0x2cbaf3['shift']());}};_0x4efa11(++_0x4b3a82);}(_0x36bd,0x1b7));var _0xd36b=function(_0x12f704,_0x44b8ec){_0x12f704=_0x12f704-0x0;var _0x285ebc=_0x36bd[_0x12f704];return _0x285ebc;};'use strict';var multer=require('multer');var util=require(_0xd36b('0x0'));var path=require('path');var timeout=require(_0xd36b('0x1'));var express=require(_0xd36b('0x2'));var router=express[_0xd36b('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xd36b('0x4'));var controller=require(_0xd36b('0x5'));router['get']('/',auth[_0xd36b('0x6')](),controller[_0xd36b('0x7')]);router[_0xd36b('0x8')]('/describe',auth[_0xd36b('0x6')](),controller[_0xd36b('0x9')]);router[_0xd36b('0x8')](_0xd36b('0xa'),auth[_0xd36b('0x6')](),controller['show']);router[_0xd36b('0x8')](_0xd36b('0xb'),auth[_0xd36b('0x6')](),controller[_0xd36b('0xc')]);router[_0xd36b('0x8')]('/:id/teams',auth[_0xd36b('0x6')](),controller[_0xd36b('0xd')]);router['get'](_0xd36b('0xe'),auth[_0xd36b('0x6')](),controller[_0xd36b('0xf')]);router[_0xd36b('0x10')]('/',auth[_0xd36b('0x6')](),controller[_0xd36b('0x11')]);router[_0xd36b('0x10')](_0xd36b('0x12'),auth[_0xd36b('0x6')](),controller[_0xd36b('0x13')]);router[_0xd36b('0x10')](_0xd36b('0xe'),auth[_0xd36b('0x6')](),controller[_0xd36b('0x14')]);router[_0xd36b('0x15')](_0xd36b('0xa'),auth[_0xd36b('0x6')](),controller[_0xd36b('0x16')]);router['delete'](_0xd36b('0xa'),auth[_0xd36b('0x6')](),controller[_0xd36b('0x17')]);router[_0xd36b('0x18')](_0xd36b('0x12'),auth[_0xd36b('0x6')](),controller[_0xd36b('0x19')]);router[_0xd36b('0x18')](_0xd36b('0xe'),auth[_0xd36b('0x6')](),controller['removeAgents']);module[_0xd36b('0x1a')]=router;