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