d43a124e52247d5a1ec94e049b80c18725a3758d
[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 _0x292c=['../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/members','getMembers','/:id/teams','getTeams','/:id/users','getAgents','post','create','addTeams','addAgents','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x2d7a52,_0x28e7fd){var _0x44a578=function(_0x4728f2){while(--_0x4728f2){_0x2d7a52['push'](_0x2d7a52['shift']());}};_0x44a578(++_0x28e7fd);}(_0x292c,0x66));var _0xc292=function(_0x11155f,_0x57b687){_0x11155f=_0x11155f-0x0;var _0xd07e48=_0x292c[_0x11155f];return _0xd07e48;};'use strict';var multer=require(_0xc292('0x0'));var util=require('util');var path=require(_0xc292('0x1'));var timeout=require(_0xc292('0x2'));var express=require(_0xc292('0x3'));var router=express[_0xc292('0x4')]();var auth=require(_0xc292('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xc292('0x6'));var controller=require('./smsQueue.controller');router['get']('/',auth[_0xc292('0x7')](),controller[_0xc292('0x8')]);router[_0xc292('0x9')](_0xc292('0xa'),auth[_0xc292('0x7')](),controller[_0xc292('0xb')]);router[_0xc292('0x9')](_0xc292('0xc'),auth[_0xc292('0x7')](),controller[_0xc292('0xd')]);router['get'](_0xc292('0xe'),auth[_0xc292('0x7')](),controller[_0xc292('0xf')]);router[_0xc292('0x9')](_0xc292('0x10'),auth['isAuthenticated'](),controller[_0xc292('0x11')]);router[_0xc292('0x9')](_0xc292('0x12'),auth[_0xc292('0x7')](),controller[_0xc292('0x13')]);router[_0xc292('0x14')]('/',auth['isAuthenticated'](),controller[_0xc292('0x15')]);router[_0xc292('0x14')](_0xc292('0x10'),auth[_0xc292('0x7')](),controller[_0xc292('0x16')]);router['post']('/:id/users',auth[_0xc292('0x7')](),controller[_0xc292('0x17')]);router['put'](_0xc292('0xc'),auth['isAuthenticated'](),controller['update']);router[_0xc292('0x18')]('/:id',auth[_0xc292('0x7')](),controller[_0xc292('0x19')]);router[_0xc292('0x18')]('/:id/teams',auth[_0xc292('0x7')](),controller['removeTeams']);router['delete'](_0xc292('0x12'),auth[_0xc292('0x7')](),controller['removeAgents']);module[_0xc292('0x1a')]=router;