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