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