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