1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x944b=['get','index','isAuthenticated','describe','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','addAgents','update','delete','destroy','removeTeams','removeAgents','exports','util','path','connect-timeout','express','Router','../../config/environment','./chatQueue.controller'];(function(_0x363085,_0xd65cdd){var _0x6f1e21=function(_0x3f8972){while(--_0x3f8972){_0x363085['push'](_0x363085['shift']());}};_0x6f1e21(++_0xd65cdd);}(_0x944b,0x158));var _0xb944=function(_0x2bd687,_0x1cacd8){_0x2bd687=_0x2bd687-0x0;var _0x5d08c1=_0x944b[_0x2bd687];return _0x5d08c1;};'use strict';var multer=require('multer');var util=require(_0xb944('0x0'));var path=require(_0xb944('0x1'));var timeout=require(_0xb944('0x2'));var express=require(_0xb944('0x3'));var router=express[_0xb944('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xb944('0x5'));var controller=require(_0xb944('0x6'));router[_0xb944('0x7')]('/',auth['isAuthenticated'](),controller[_0xb944('0x8')]);router[_0xb944('0x7')]('/describe',auth[_0xb944('0x9')](),controller[_0xb944('0xa')]);router['get'](_0xb944('0xb'),auth[_0xb944('0x9')](),controller[_0xb944('0xc')]);router[_0xb944('0x7')](_0xb944('0xd'),auth[_0xb944('0x9')](),controller[_0xb944('0xe')]);router[_0xb944('0x7')](_0xb944('0xf'),auth[_0xb944('0x9')](),controller[_0xb944('0x10')]);router[_0xb944('0x7')](_0xb944('0x11'),auth[_0xb944('0x9')](),controller[_0xb944('0x12')]);router[_0xb944('0x13')]('/',auth[_0xb944('0x9')](),controller['create']);router[_0xb944('0x13')]('/:id/teams',auth[_0xb944('0x9')](),controller['addTeams']);router[_0xb944('0x13')](_0xb944('0x11'),auth[_0xb944('0x9')](),controller[_0xb944('0x14')]);router['put'](_0xb944('0xb'),auth[_0xb944('0x9')](),controller[_0xb944('0x15')]);router[_0xb944('0x16')](_0xb944('0xb'),auth[_0xb944('0x9')](),controller[_0xb944('0x17')]);router[_0xb944('0x16')](_0xb944('0xf'),auth[_0xb944('0x9')](),controller[_0xb944('0x18')]);router['delete'](_0xb944('0x11'),auth[_0xb944('0x9')](),controller[_0xb944('0x19')]);module[_0xb944('0x1a')]=router;