Built motion from commit (unavailable).|2.5.11
[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 _0x62ab=['getAgents','post','create','addTeams','destroy','delete','removeTeams','removeAgents','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','/:id/teams','getTeams','/:id/users'];(function(_0x1f46c9,_0x1939c9){var _0x245822=function(_0x4bd1b9){while(--_0x4bd1b9){_0x1f46c9['push'](_0x1f46c9['shift']());}};_0x245822(++_0x1939c9);}(_0x62ab,0x18e));var _0xb62a=function(_0x8aa3f8,_0x5ca090){_0x8aa3f8=_0x8aa3f8-0x0;var _0x428e77=_0x62ab[_0x8aa3f8];return _0x428e77;};'use strict';var multer=require('multer');var util=require(_0xb62a('0x0'));var path=require(_0xb62a('0x1'));var timeout=require('connect-timeout');var express=require(_0xb62a('0x2'));var router=express[_0xb62a('0x3')]();var auth=require(_0xb62a('0x4'));var interaction=require(_0xb62a('0x5'));var config=require(_0xb62a('0x6'));var controller=require('./whatsappQueue.controller');router[_0xb62a('0x7')]('/',auth[_0xb62a('0x8')](),controller[_0xb62a('0x9')]);router[_0xb62a('0x7')](_0xb62a('0xa'),auth[_0xb62a('0x8')](),controller[_0xb62a('0xb')]);router[_0xb62a('0x7')](_0xb62a('0xc'),auth[_0xb62a('0x8')](),controller[_0xb62a('0xd')]);router['get'](_0xb62a('0xe'),auth['isAuthenticated'](),controller['getMembers']);router[_0xb62a('0x7')](_0xb62a('0xf'),auth[_0xb62a('0x8')](),controller[_0xb62a('0x10')]);router[_0xb62a('0x7')](_0xb62a('0x11'),auth[_0xb62a('0x8')](),controller[_0xb62a('0x12')]);router[_0xb62a('0x13')]('/',auth[_0xb62a('0x8')](),controller[_0xb62a('0x14')]);router[_0xb62a('0x13')]('/:id/teams',auth[_0xb62a('0x8')](),controller[_0xb62a('0x15')]);router['post']('/:id/users',auth['isAuthenticated'](),controller['addAgents']);router['put']('/:id',auth[_0xb62a('0x8')](),controller['update']);router['delete'](_0xb62a('0xc'),auth[_0xb62a('0x8')](),controller[_0xb62a('0x16')]);router[_0xb62a('0x17')](_0xb62a('0xf'),auth['isAuthenticated'](),controller[_0xb62a('0x18')]);router[_0xb62a('0x17')](_0xb62a('0x11'),auth[_0xb62a('0x8')](),controller[_0xb62a('0x19')]);module['exports']=router;