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