Built motion from commit 9d1906d1.|2.5.40
[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 _0x2cd8=['util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./whatsappQueue.controller','get','isAuthenticated','describe','/:id/members','getMembers','/:id/teams','/:id/users','getAgents','post','addTeams','addAgents','put','update','/:id','removeTeams','delete','removeAgents','exports'];(function(_0x16e9f1,_0x28f228){var _0x520f35=function(_0x406ffd){while(--_0x406ffd){_0x16e9f1['push'](_0x16e9f1['shift']());}};_0x520f35(++_0x28f228);}(_0x2cd8,0x1db));var _0x82cd=function(_0x487dcd,_0x24e78c){_0x487dcd=_0x487dcd-0x0;var _0x1cd086=_0x2cd8[_0x487dcd];return _0x1cd086;};'use strict';var multer=require('multer');var util=require(_0x82cd('0x0'));var path=require('path');var timeout=require(_0x82cd('0x1'));var express=require(_0x82cd('0x2'));var router=express[_0x82cd('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x82cd('0x4'));var interaction=require(_0x82cd('0x5'));var config=require('../../config/environment');var controller=require(_0x82cd('0x6'));router[_0x82cd('0x7')]('/',auth[_0x82cd('0x8')](),controller['index']);router['get']('/describe',auth[_0x82cd('0x8')](),controller[_0x82cd('0x9')]);router[_0x82cd('0x7')]('/:id',auth[_0x82cd('0x8')](),controller['show']);router[_0x82cd('0x7')](_0x82cd('0xa'),auth[_0x82cd('0x8')](),controller[_0x82cd('0xb')]);router[_0x82cd('0x7')](_0x82cd('0xc'),auth[_0x82cd('0x8')](),controller['getTeams']);router[_0x82cd('0x7')](_0x82cd('0xd'),auth[_0x82cd('0x8')](),controller[_0x82cd('0xe')]);router[_0x82cd('0xf')]('/',auth[_0x82cd('0x8')](),controller['create']);router[_0x82cd('0xf')]('/:id/teams',auth['isAuthenticated'](),controller[_0x82cd('0x10')]);router[_0x82cd('0xf')]('/:id/users',auth[_0x82cd('0x8')](),controller[_0x82cd('0x11')]);router[_0x82cd('0x12')]('/:id',auth[_0x82cd('0x8')](),controller[_0x82cd('0x13')]);router['delete'](_0x82cd('0x14'),auth[_0x82cd('0x8')](),controller['destroy']);router['delete'](_0x82cd('0xc'),auth[_0x82cd('0x8')](),controller[_0x82cd('0x15')]);router[_0x82cd('0x16')](_0x82cd('0xd'),auth[_0x82cd('0x8')](),controller[_0x82cd('0x17')]);module[_0x82cd('0x18')]=router;