1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xdc93=['../../config/environment','get','isAuthenticated','index','/describe','/:id','show','/:id/messages','getMessages','/:id/download','download','create','post','addMessage','/:id/tags','tracked','whatsappinteraction:addtags','update','delete','destroy','removeTags','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x48ec87,_0x34a878){var _0x526bca=function(_0x3073c1){while(--_0x3073c1){_0x48ec87['push'](_0x48ec87['shift']());}};_0x526bca(++_0x34a878);}(_0xdc93,0x1c8));var _0x3dc9=function(_0x3a6e4b,_0x118cd9){_0x3a6e4b=_0x3a6e4b-0x0;var _0x36572d=_0xdc93[_0x3a6e4b];return _0x36572d;};'use strict';var multer=require(_0x3dc9('0x0'));var util=require(_0x3dc9('0x1'));var path=require(_0x3dc9('0x2'));var timeout=require(_0x3dc9('0x3'));var express=require(_0x3dc9('0x4'));var router=express['Router']();var fs_extra=require(_0x3dc9('0x5'));var auth=require(_0x3dc9('0x6'));var interaction=require(_0x3dc9('0x7'));var config=require(_0x3dc9('0x8'));var controller=require('./whatsappInteraction.controller');router[_0x3dc9('0x9')]('/',auth[_0x3dc9('0xa')](),controller[_0x3dc9('0xb')]);router[_0x3dc9('0x9')](_0x3dc9('0xc'),auth['isAuthenticated'](),controller['describe']);router['get'](_0x3dc9('0xd'),auth[_0x3dc9('0xa')](),controller[_0x3dc9('0xe')]);router[_0x3dc9('0x9')](_0x3dc9('0xf'),auth[_0x3dc9('0xa')](),controller[_0x3dc9('0x10')]);router[_0x3dc9('0x9')](_0x3dc9('0x11'),auth[_0x3dc9('0xa')](),controller[_0x3dc9('0x12')]);router['post']('/',auth[_0x3dc9('0xa')](),controller[_0x3dc9('0x13')]);router[_0x3dc9('0x14')](_0x3dc9('0xf'),auth[_0x3dc9('0xa')](),controller[_0x3dc9('0x15')]);router[_0x3dc9('0x14')](_0x3dc9('0x16'),auth[_0x3dc9('0xa')](),interaction[_0x3dc9('0x17')]('whatsapp',_0x3dc9('0x18')),controller['addTags']);router['put'](_0x3dc9('0xd'),auth['isAuthenticated'](),interaction[_0x3dc9('0x17')]('whatsapp','whatsappinteraction:update'),controller[_0x3dc9('0x19')]);router[_0x3dc9('0x1a')](_0x3dc9('0xd'),auth[_0x3dc9('0xa')](),interaction[_0x3dc9('0x17')]('whatsapp','whatsappinteraction:destroy'),controller[_0x3dc9('0x1b')]);router[_0x3dc9('0x1a')](_0x3dc9('0x16'),auth[_0x3dc9('0xa')](),controller[_0x3dc9('0x1c')]);module['exports']=router;