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