2bf95c29b749d4b613d9486257d9ee760bc1c06b
[motion2.git] / server / api / smsQueue / 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 _0x19fb=['getAgents','post','create','addTeams','addAgents','put','update','delete','destroy','removeTeams','exports','multer','util','path','connect-timeout','express','Router','../../config/environment','./smsQueue.controller','get','isAuthenticated','index','/describe','describe','/:id','show','getMembers','/:id/teams','getTeams','/:id/users'];(function(_0x4db0f2,_0x5f50f8){var _0x4e02a2=function(_0x332681){while(--_0x332681){_0x4db0f2['push'](_0x4db0f2['shift']());}};_0x4e02a2(++_0x5f50f8);}(_0x19fb,0xdd));var _0xb19f=function(_0x4ab629,_0x41790a){_0x4ab629=_0x4ab629-0x0;var _0x190b65=_0x19fb[_0x4ab629];return _0x190b65;};'use strict';var multer=require(_0xb19f('0x0'));var util=require(_0xb19f('0x1'));var path=require(_0xb19f('0x2'));var timeout=require(_0xb19f('0x3'));var express=require(_0xb19f('0x4'));var router=express[_0xb19f('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xb19f('0x6'));var controller=require(_0xb19f('0x7'));router[_0xb19f('0x8')]('/',auth[_0xb19f('0x9')](),controller[_0xb19f('0xa')]);router['get'](_0xb19f('0xb'),auth[_0xb19f('0x9')](),controller[_0xb19f('0xc')]);router[_0xb19f('0x8')](_0xb19f('0xd'),auth[_0xb19f('0x9')](),controller[_0xb19f('0xe')]);router[_0xb19f('0x8')]('/:id/members',auth[_0xb19f('0x9')](),controller[_0xb19f('0xf')]);router[_0xb19f('0x8')](_0xb19f('0x10'),auth[_0xb19f('0x9')](),controller[_0xb19f('0x11')]);router[_0xb19f('0x8')](_0xb19f('0x12'),auth[_0xb19f('0x9')](),controller[_0xb19f('0x13')]);router[_0xb19f('0x14')]('/',auth[_0xb19f('0x9')](),controller[_0xb19f('0x15')]);router[_0xb19f('0x14')](_0xb19f('0x10'),auth['isAuthenticated'](),controller[_0xb19f('0x16')]);router[_0xb19f('0x14')](_0xb19f('0x12'),auth['isAuthenticated'](),controller[_0xb19f('0x17')]);router[_0xb19f('0x18')](_0xb19f('0xd'),auth['isAuthenticated'](),controller[_0xb19f('0x19')]);router[_0xb19f('0x1a')](_0xb19f('0xd'),auth['isAuthenticated'](),controller[_0xb19f('0x1b')]);router['delete']('/:id/teams',auth['isAuthenticated'](),controller[_0xb19f('0x1c')]);router[_0xb19f('0x1a')](_0xb19f('0x12'),auth[_0xb19f('0x9')](),controller['removeAgents']);module[_0xb19f('0x1d')]=router;