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