686e0ee094d54d01ca72cb5539b1058c9494d442
[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 _0x8a34=['/:id/teams','post','/:id/users','addAgents','update','delete','destroy','removeTeams','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatQueue.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/members','getTeams','getAgents'];(function(_0x784f8d,_0x1d61c9){var _0x59760e=function(_0x20c916){while(--_0x20c916){_0x784f8d['push'](_0x784f8d['shift']());}};_0x59760e(++_0x1d61c9);}(_0x8a34,0x127));var _0x48a3=function(_0x21c504,_0x3e00c6){_0x21c504=_0x21c504-0x0;var _0x51b5c3=_0x8a34[_0x21c504];return _0x51b5c3;};'use strict';var multer=require(_0x48a3('0x0'));var util=require(_0x48a3('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x48a3('0x2'));var router=express[_0x48a3('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x48a3('0x4'));var interaction=require(_0x48a3('0x5'));var config=require(_0x48a3('0x6'));var controller=require(_0x48a3('0x7'));router[_0x48a3('0x8')]('/',auth[_0x48a3('0x9')](),controller['index']);router[_0x48a3('0x8')](_0x48a3('0xa'),auth[_0x48a3('0x9')](),controller[_0x48a3('0xb')]);router[_0x48a3('0x8')](_0x48a3('0xc'),auth['isAuthenticated'](),controller[_0x48a3('0xd')]);router['get'](_0x48a3('0xe'),auth['isAuthenticated'](),controller['getMembers']);router[_0x48a3('0x8')]('/:id/teams',auth['isAuthenticated'](),controller[_0x48a3('0xf')]);router[_0x48a3('0x8')]('/:id/users',auth[_0x48a3('0x9')](),controller[_0x48a3('0x10')]);router['post']('/',auth[_0x48a3('0x9')](),controller['create']);router['post'](_0x48a3('0x11'),auth['isAuthenticated'](),controller['addTeams']);router[_0x48a3('0x12')](_0x48a3('0x13'),auth[_0x48a3('0x9')](),controller[_0x48a3('0x14')]);router['put'](_0x48a3('0xc'),auth[_0x48a3('0x9')](),controller[_0x48a3('0x15')]);router[_0x48a3('0x16')](_0x48a3('0xc'),auth[_0x48a3('0x9')](),controller[_0x48a3('0x17')]);router[_0x48a3('0x16')]('/:id/teams',auth[_0x48a3('0x9')](),controller[_0x48a3('0x18')]);router[_0x48a3('0x16')](_0x48a3('0x13'),auth['isAuthenticated'](),controller['removeAgents']);module[_0x48a3('0x19')]=router;