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