Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / whatsappQueue / 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 _0x3d9a=['getTeams','/:id/users','getAgents','post','create','addAgents','put','/:id','delete','removeTeams','removeAgents','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','show','/:id/members','/:id/teams'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x3d9a,0x11a));var _0xa3d9=function(_0x1d59d,_0x53eba5){_0x1d59d=_0x1d59d-0x0;var _0x5b5036=_0x3d9a[_0x1d59d];return _0x5b5036;};'use strict';var multer=require(_0xa3d9('0x0'));var util=require(_0xa3d9('0x1'));var path=require('path');var timeout=require(_0xa3d9('0x2'));var express=require(_0xa3d9('0x3'));var router=express[_0xa3d9('0x4')]();var fs_extra=require(_0xa3d9('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xa3d9('0x6'));var config=require(_0xa3d9('0x7'));var controller=require('./whatsappQueue.controller');router[_0xa3d9('0x8')]('/',auth[_0xa3d9('0x9')](),controller[_0xa3d9('0xa')]);router[_0xa3d9('0x8')]('/describe',auth[_0xa3d9('0x9')](),controller[_0xa3d9('0xb')]);router['get']('/:id',auth[_0xa3d9('0x9')](),controller[_0xa3d9('0xc')]);router[_0xa3d9('0x8')](_0xa3d9('0xd'),auth[_0xa3d9('0x9')](),controller['getMembers']);router[_0xa3d9('0x8')](_0xa3d9('0xe'),auth[_0xa3d9('0x9')](),controller[_0xa3d9('0xf')]);router[_0xa3d9('0x8')](_0xa3d9('0x10'),auth[_0xa3d9('0x9')](),controller[_0xa3d9('0x11')]);router[_0xa3d9('0x12')]('/',auth[_0xa3d9('0x9')](),controller[_0xa3d9('0x13')]);router[_0xa3d9('0x12')]('/:id/teams',auth[_0xa3d9('0x9')](),controller['addTeams']);router[_0xa3d9('0x12')]('/:id/users',auth[_0xa3d9('0x9')](),controller[_0xa3d9('0x14')]);router[_0xa3d9('0x15')](_0xa3d9('0x16'),auth[_0xa3d9('0x9')](),controller['update']);router[_0xa3d9('0x17')]('/:id',auth[_0xa3d9('0x9')](),controller['destroy']);router['delete']('/:id/teams',auth[_0xa3d9('0x9')](),controller[_0xa3d9('0x18')]);router['delete'](_0xa3d9('0x10'),auth[_0xa3d9('0x9')](),controller[_0xa3d9('0x19')]);module[_0xa3d9('0x1a')]=router;