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