959f1ef0f6f9c52868884392cca40bbd2d37f791
[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 _0xdb41=['addTeams','addAgents','put','update','delete','destroy','removeTeams','path','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','getMembers','/:id/teams','/:id/users','getAgents','create','post'];(function(_0x88eed3,_0x1741d7){var _0xf8b3a6=function(_0xb53a90){while(--_0xb53a90){_0x88eed3['push'](_0x88eed3['shift']());}};_0xf8b3a6(++_0x1741d7);}(_0xdb41,0x127));var _0x1db4=function(_0x47a802,_0x424bf1){_0x47a802=_0x47a802-0x0;var _0xb3badc=_0xdb41[_0x47a802];return _0xb3badc;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x1db4('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x1db4('0x1'));var auth=require(_0x1db4('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0x1db4('0x3'));var controller=require('./whatsappQueue.controller');router[_0x1db4('0x4')]('/',auth[_0x1db4('0x5')](),controller[_0x1db4('0x6')]);router[_0x1db4('0x4')](_0x1db4('0x7'),auth['isAuthenticated'](),controller[_0x1db4('0x8')]);router[_0x1db4('0x4')](_0x1db4('0x9'),auth[_0x1db4('0x5')](),controller[_0x1db4('0xa')]);router['get']('/:id/members',auth['isAuthenticated'](),controller[_0x1db4('0xb')]);router['get'](_0x1db4('0xc'),auth[_0x1db4('0x5')](),controller['getTeams']);router[_0x1db4('0x4')](_0x1db4('0xd'),auth[_0x1db4('0x5')](),controller[_0x1db4('0xe')]);router['post']('/',auth[_0x1db4('0x5')](),controller[_0x1db4('0xf')]);router[_0x1db4('0x10')]('/:id/teams',auth[_0x1db4('0x5')](),controller[_0x1db4('0x11')]);router['post'](_0x1db4('0xd'),auth['isAuthenticated'](),controller[_0x1db4('0x12')]);router[_0x1db4('0x13')](_0x1db4('0x9'),auth[_0x1db4('0x5')](),controller[_0x1db4('0x14')]);router[_0x1db4('0x15')](_0x1db4('0x9'),auth[_0x1db4('0x5')](),controller[_0x1db4('0x16')]);router[_0x1db4('0x15')]('/:id/teams',auth[_0x1db4('0x5')](),controller[_0x1db4('0x17')]);router['delete'](_0x1db4('0xd'),auth[_0x1db4('0x5')](),controller['removeAgents']);module['exports']=router;