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