Built motion from commit (unavailable).|2.5.24
[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 _0xa23f=['util','express','Router','../../components/auth/service','../../components/interaction/service','./smsQueue.controller','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/members','/:id/users','post','create','addTeams','addAgents','put','delete','destroy','removeAgents','exports','multer'];(function(_0x13fc38,_0x1e45b5){var _0xcf8110=function(_0x1724ef){while(--_0x1724ef){_0x13fc38['push'](_0x13fc38['shift']());}};_0xcf8110(++_0x1e45b5);}(_0xa23f,0x7c));var _0xfa23=function(_0x589201,_0x4fcdf6){_0x589201=_0x589201-0x0;var _0x269e0e=_0xa23f[_0x589201];return _0x269e0e;};'use strict';var multer=require(_0xfa23('0x0'));var util=require(_0xfa23('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xfa23('0x2'));var router=express[_0xfa23('0x3')]();var auth=require(_0xfa23('0x4'));var interaction=require(_0xfa23('0x5'));var config=require('../../config/environment');var controller=require(_0xfa23('0x6'));router['get']('/',auth[_0xfa23('0x7')](),controller[_0xfa23('0x8')]);router[_0xfa23('0x9')](_0xfa23('0xa'),auth['isAuthenticated'](),controller[_0xfa23('0xb')]);router['get'](_0xfa23('0xc'),auth[_0xfa23('0x7')](),controller[_0xfa23('0xd')]);router[_0xfa23('0x9')](_0xfa23('0xe'),auth['isAuthenticated'](),controller['getMembers']);router[_0xfa23('0x9')]('/:id/teams',auth[_0xfa23('0x7')](),controller['getTeams']);router[_0xfa23('0x9')](_0xfa23('0xf'),auth[_0xfa23('0x7')](),controller['getAgents']);router[_0xfa23('0x10')]('/',auth[_0xfa23('0x7')](),controller[_0xfa23('0x11')]);router['post']('/:id/teams',auth[_0xfa23('0x7')](),controller[_0xfa23('0x12')]);router[_0xfa23('0x10')](_0xfa23('0xf'),auth['isAuthenticated'](),controller[_0xfa23('0x13')]);router[_0xfa23('0x14')](_0xfa23('0xc'),auth[_0xfa23('0x7')](),controller['update']);router[_0xfa23('0x15')](_0xfa23('0xc'),auth[_0xfa23('0x7')](),controller[_0xfa23('0x16')]);router[_0xfa23('0x15')]('/:id/teams',auth['isAuthenticated'](),controller['removeTeams']);router[_0xfa23('0x15')](_0xfa23('0xf'),auth['isAuthenticated'](),controller[_0xfa23('0x17')]);module[_0xfa23('0x18')]=router;