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