Built motion from commit ab870f9e.|2.5.44
[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 _0xb1a2=['exports','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getMembers','/:id/teams','getAgents','post','create','addTeams','/:id/users','addAgents','update','delete','destroy','removeTeams','removeAgents'];(function(_0x18a441,_0x584b98){var _0x411a12=function(_0xbf97cb){while(--_0xbf97cb){_0x18a441['push'](_0x18a441['shift']());}};_0x411a12(++_0x584b98);}(_0xb1a2,0x106));var _0x2b1a=function(_0x3e9539,_0x5d9632){_0x3e9539=_0x3e9539-0x0;var _0x13e0ba=_0xb1a2[_0x3e9539];return _0x13e0ba;};'use strict';var multer=require('multer');var util=require(_0x2b1a('0x0'));var path=require(_0x2b1a('0x1'));var timeout=require('connect-timeout');var express=require(_0x2b1a('0x2'));var router=express[_0x2b1a('0x3')]();var fs_extra=require(_0x2b1a('0x4'));var auth=require(_0x2b1a('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x2b1a('0x6'));var controller=require('./whatsappQueue.controller');router[_0x2b1a('0x7')]('/',auth[_0x2b1a('0x8')](),controller[_0x2b1a('0x9')]);router[_0x2b1a('0x7')](_0x2b1a('0xa'),auth[_0x2b1a('0x8')](),controller[_0x2b1a('0xb')]);router[_0x2b1a('0x7')](_0x2b1a('0xc'),auth[_0x2b1a('0x8')](),controller[_0x2b1a('0xd')]);router['get'](_0x2b1a('0xe'),auth[_0x2b1a('0x8')](),controller[_0x2b1a('0xf')]);router[_0x2b1a('0x7')](_0x2b1a('0x10'),auth[_0x2b1a('0x8')](),controller['getTeams']);router[_0x2b1a('0x7')]('/:id/users',auth[_0x2b1a('0x8')](),controller[_0x2b1a('0x11')]);router[_0x2b1a('0x12')]('/',auth['isAuthenticated'](),controller[_0x2b1a('0x13')]);router[_0x2b1a('0x12')](_0x2b1a('0x10'),auth[_0x2b1a('0x8')](),controller[_0x2b1a('0x14')]);router[_0x2b1a('0x12')](_0x2b1a('0x15'),auth[_0x2b1a('0x8')](),controller[_0x2b1a('0x16')]);router['put'](_0x2b1a('0xc'),auth[_0x2b1a('0x8')](),controller[_0x2b1a('0x17')]);router[_0x2b1a('0x18')](_0x2b1a('0xc'),auth['isAuthenticated'](),controller[_0x2b1a('0x19')]);router[_0x2b1a('0x18')]('/:id/teams',auth[_0x2b1a('0x8')](),controller[_0x2b1a('0x1a')]);router['delete'](_0x2b1a('0x15'),auth['isAuthenticated'](),controller[_0x2b1a('0x1b')]);module[_0x2b1a('0x1c')]=router;