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