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