42f05f5a02387950ebc7cd05a6a9ec80eff84f0c
[motion2.git] / server / api / whatsappInteraction / 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 _0xc093=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./whatsappInteraction.controller','get','isAuthenticated','/describe','describe','/:id','/:id/messages','/:id/download','post','create','/:id/tags','whatsapp','whatsappinteraction:addtags','addTags','delete','tracked','whatsappinteraction:destroy','removeTags','multer'];(function(_0x10f401,_0x398fbc){var _0x352c44=function(_0x90d179){while(--_0x90d179){_0x10f401['push'](_0x10f401['shift']());}};_0x352c44(++_0x398fbc);}(_0xc093,0x10d));var _0x3c09=function(_0x3a42fa,_0x55e471){_0x3a42fa=_0x3a42fa-0x0;var _0x30dcba=_0xc093[_0x3a42fa];return _0x30dcba;};'use strict';var multer=require(_0x3c09('0x0'));var util=require(_0x3c09('0x1'));var path=require(_0x3c09('0x2'));var timeout=require(_0x3c09('0x3'));var express=require(_0x3c09('0x4'));var router=express[_0x3c09('0x5')]();var auth=require(_0x3c09('0x6'));var interaction=require(_0x3c09('0x7'));var config=require(_0x3c09('0x8'));var controller=require(_0x3c09('0x9'));router[_0x3c09('0xa')]('/',auth[_0x3c09('0xb')](),controller['index']);router['get'](_0x3c09('0xc'),auth[_0x3c09('0xb')](),controller[_0x3c09('0xd')]);router[_0x3c09('0xa')](_0x3c09('0xe'),auth[_0x3c09('0xb')](),controller['show']);router[_0x3c09('0xa')](_0x3c09('0xf'),auth[_0x3c09('0xb')](),controller['getMessages']);router[_0x3c09('0xa')](_0x3c09('0x10'),auth[_0x3c09('0xb')](),controller['download']);router[_0x3c09('0x11')]('/',auth['isAuthenticated'](),controller[_0x3c09('0x12')]);router[_0x3c09('0x11')](_0x3c09('0xf'),auth[_0x3c09('0xb')](),controller['addMessage']);router[_0x3c09('0x11')](_0x3c09('0x13'),auth[_0x3c09('0xb')](),interaction['tracked'](_0x3c09('0x14'),_0x3c09('0x15')),controller[_0x3c09('0x16')]);router['put'](_0x3c09('0xe'),auth[_0x3c09('0xb')](),interaction['tracked'](_0x3c09('0x14'),'whatsappinteraction:update'),controller['update']);router[_0x3c09('0x17')](_0x3c09('0xe'),auth['isAuthenticated'](),interaction[_0x3c09('0x18')](_0x3c09('0x14'),_0x3c09('0x19')),controller['destroy']);router[_0x3c09('0x17')](_0x3c09('0x13'),auth['isAuthenticated'](),controller[_0x3c09('0x1a')]);module['exports']=router;