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