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