Built motion from commit 511216ff.|2.6.34
[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 _0xfa62=['removeAgents','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsQueue.controller','isAuthenticated','index','get','/describe','describe','/:id','/:id/members','getMembers','getTeams','/:id/users','getAgents','post','create','/:id/teams','addTeams','addAgents','put','delete','removeTeams'];(function(_0x1628df,_0x4271ac){var _0x5bc36c=function(_0x29f9c2){while(--_0x29f9c2){_0x1628df['push'](_0x1628df['shift']());}};_0x5bc36c(++_0x4271ac);}(_0xfa62,0x1a5));var _0x2fa6=function(_0x3dc653,_0x522183){_0x3dc653=_0x3dc653-0x0;var _0x46bccc=_0xfa62[_0x3dc653];return _0x46bccc;};'use strict';var multer=require(_0x2fa6('0x0'));var util=require(_0x2fa6('0x1'));var path=require(_0x2fa6('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x2fa6('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x2fa6('0x4'));var interaction=require(_0x2fa6('0x5'));var config=require(_0x2fa6('0x6'));var controller=require(_0x2fa6('0x7'));router['get']('/',auth[_0x2fa6('0x8')](),controller[_0x2fa6('0x9')]);router[_0x2fa6('0xa')](_0x2fa6('0xb'),auth[_0x2fa6('0x8')](),controller[_0x2fa6('0xc')]);router[_0x2fa6('0xa')](_0x2fa6('0xd'),auth[_0x2fa6('0x8')](),controller['show']);router[_0x2fa6('0xa')](_0x2fa6('0xe'),auth[_0x2fa6('0x8')](),controller[_0x2fa6('0xf')]);router[_0x2fa6('0xa')]('/:id/teams',auth['isAuthenticated'](),controller[_0x2fa6('0x10')]);router['get'](_0x2fa6('0x11'),auth[_0x2fa6('0x8')](),controller[_0x2fa6('0x12')]);router[_0x2fa6('0x13')]('/',auth['isAuthenticated'](),controller[_0x2fa6('0x14')]);router[_0x2fa6('0x13')](_0x2fa6('0x15'),auth[_0x2fa6('0x8')](),controller[_0x2fa6('0x16')]);router[_0x2fa6('0x13')](_0x2fa6('0x11'),auth[_0x2fa6('0x8')](),controller[_0x2fa6('0x17')]);router[_0x2fa6('0x18')](_0x2fa6('0xd'),auth[_0x2fa6('0x8')](),controller['update']);router[_0x2fa6('0x19')](_0x2fa6('0xd'),auth[_0x2fa6('0x8')](),controller['destroy']);router[_0x2fa6('0x19')]('/:id/teams',auth[_0x2fa6('0x8')](),controller[_0x2fa6('0x1a')]);router[_0x2fa6('0x19')](_0x2fa6('0x11'),auth[_0x2fa6('0x8')](),controller[_0x2fa6('0x1b')]);module['exports']=router;