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