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