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