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 _0x718a=['post','create','/:id/tags','tracked','whatsapp','whatsappinteraction:addtags','addTags','put','/:id','update','delete','whatsappinteraction:destroy','destroy','removeTags','exports','multer','connect-timeout','express','Router','../../components/interaction/service','./whatsappInteraction.controller','get','isAuthenticated','index','describe','show','/:id/messages','getMessages','/:id/download'];(function(_0x5cf608,_0x3ed79a){var _0x1e1560=function(_0xaf6e8f){while(--_0xaf6e8f){_0x5cf608['push'](_0x5cf608['shift']());}};_0x1e1560(++_0x3ed79a);}(_0x718a,0xda));var _0xa718=function(_0x5a7635,_0x3315a0){_0x5a7635=_0x5a7635-0x0;var _0x31f6d5=_0x718a[_0x5a7635];return _0x31f6d5;};'use strict';var multer=require(_0xa718('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xa718('0x1'));var express=require(_0xa718('0x2'));var router=express[_0xa718('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xa718('0x4'));var config=require('../../config/environment');var controller=require(_0xa718('0x5'));router[_0xa718('0x6')]('/',auth[_0xa718('0x7')](),controller[_0xa718('0x8')]);router[_0xa718('0x6')]('/describe',auth[_0xa718('0x7')](),controller[_0xa718('0x9')]);router[_0xa718('0x6')]('/:id',auth[_0xa718('0x7')](),controller[_0xa718('0xa')]);router['get'](_0xa718('0xb'),auth[_0xa718('0x7')](),controller[_0xa718('0xc')]);router[_0xa718('0x6')](_0xa718('0xd'),auth[_0xa718('0x7')](),controller['download']);router[_0xa718('0xe')]('/',auth['isAuthenticated'](),controller[_0xa718('0xf')]);router[_0xa718('0xe')](_0xa718('0xb'),auth[_0xa718('0x7')](),controller['addMessage']);router[_0xa718('0xe')](_0xa718('0x10'),auth[_0xa718('0x7')](),interaction[_0xa718('0x11')](_0xa718('0x12'),_0xa718('0x13')),controller[_0xa718('0x14')]);router[_0xa718('0x15')](_0xa718('0x16'),auth[_0xa718('0x7')](),interaction[_0xa718('0x11')](_0xa718('0x12'),'whatsappinteraction:update'),controller[_0xa718('0x17')]);router[_0xa718('0x18')]('/:id',auth[_0xa718('0x7')](),interaction['tracked']('whatsapp',_0xa718('0x19')),controller[_0xa718('0x1a')]);router[_0xa718('0x18')](_0xa718('0x10'),auth[_0xa718('0x7')](),controller[_0xa718('0x1b')]);module[_0xa718('0x1c')]=router;