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