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 _0x0b6a=['update','/:id/accept','accept','/:id/reject','destroy','exports','multer','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','tracked','whatsapp','whatsappmessage:create','post','/:id/status','put'];(function(_0x13b02f,_0x462a53){var _0x12e9a6=function(_0x187d57){while(--_0x187d57){_0x13b02f['push'](_0x13b02f['shift']());}};_0x12e9a6(++_0x462a53);}(_0x0b6a,0x1e1));var _0xa0b6=function(_0x5e939d,_0xe7599f){_0x5e939d=_0x5e939d-0x0;var _0x23643f=_0x0b6a[_0x5e939d];return _0x23643f;};'use strict';var multer=require(_0xa0b6('0x0'));var util=require('util');var path=require(_0xa0b6('0x1'));var timeout=require('connect-timeout');var express=require(_0xa0b6('0x2'));var router=express[_0xa0b6('0x3')]();var fs_extra=require(_0xa0b6('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xa0b6('0x5'));var config=require(_0xa0b6('0x6'));var controller=require('./whatsappMessage.controller');router[_0xa0b6('0x7')]('/',auth[_0xa0b6('0x8')](),controller[_0xa0b6('0x9')]);router['get'](_0xa0b6('0xa'),auth['isAuthenticated'](),controller[_0xa0b6('0xb')]);router[_0xa0b6('0x7')](_0xa0b6('0xc'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xa0b6('0x8')](),interaction[_0xa0b6('0xd')](_0xa0b6('0xe'),_0xa0b6('0xf')),controller['create']);router[_0xa0b6('0x10')](_0xa0b6('0x11'),controller['status']);router[_0xa0b6('0x12')](_0xa0b6('0xc'),auth[_0xa0b6('0x8')](),controller[_0xa0b6('0x13')]);router[_0xa0b6('0x12')](_0xa0b6('0x14'),auth[_0xa0b6('0x8')](),controller[_0xa0b6('0x15')]);router[_0xa0b6('0x12')](_0xa0b6('0x16'),auth['isAuthenticated'](),controller['reject']);router['delete'](_0xa0b6('0xc'),auth[_0xa0b6('0x8')](),controller[_0xa0b6('0x17')]);module[_0xa0b6('0x18')]=router;