b824090ee58724aa4c4ad471fe6e66f103b107dd
[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 _0x49e5=['fs-extra','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/members','getTeams','/:id/users','getAgents','create','post','addTeams','put','update','destroy','/:id/teams','removeTeams','delete','removeAgents','exports','multer','path','Router'];(function(_0x35bad0,_0x21927d){var _0x4fe50f=function(_0x1873df){while(--_0x1873df){_0x35bad0['push'](_0x35bad0['shift']());}};_0x4fe50f(++_0x21927d);}(_0x49e5,0x15c));var _0x549e=function(_0x414d02,_0xf25ab3){_0x414d02=_0x414d02-0x0;var _0x19db72=_0x49e5[_0x414d02];return _0x19db72;};'use strict';var multer=require(_0x549e('0x0'));var util=require('util');var path=require(_0x549e('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x549e('0x2')]();var fs_extra=require(_0x549e('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x549e('0x4'));var controller=require('./whatsappQueue.controller');router[_0x549e('0x5')]('/',auth[_0x549e('0x6')](),controller[_0x549e('0x7')]);router[_0x549e('0x5')](_0x549e('0x8'),auth[_0x549e('0x6')](),controller[_0x549e('0x9')]);router[_0x549e('0x5')](_0x549e('0xa'),auth[_0x549e('0x6')](),controller[_0x549e('0xb')]);router[_0x549e('0x5')](_0x549e('0xc'),auth[_0x549e('0x6')](),controller['getMembers']);router[_0x549e('0x5')]('/:id/teams',auth['isAuthenticated'](),controller[_0x549e('0xd')]);router[_0x549e('0x5')](_0x549e('0xe'),auth['isAuthenticated'](),controller[_0x549e('0xf')]);router['post']('/',auth[_0x549e('0x6')](),controller[_0x549e('0x10')]);router[_0x549e('0x11')]('/:id/teams',auth[_0x549e('0x6')](),controller[_0x549e('0x12')]);router['post']('/:id/users',auth[_0x549e('0x6')](),controller['addAgents']);router[_0x549e('0x13')](_0x549e('0xa'),auth[_0x549e('0x6')](),controller[_0x549e('0x14')]);router['delete']('/:id',auth[_0x549e('0x6')](),controller[_0x549e('0x15')]);router['delete'](_0x549e('0x16'),auth[_0x549e('0x6')](),controller[_0x549e('0x17')]);router[_0x549e('0x18')](_0x549e('0xe'),auth[_0x549e('0x6')](),controller[_0x549e('0x19')]);module[_0x549e('0x1a')]=router;