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 _0xe224=['./whatsappApplication.controller','isAuthenticated','index','/:id','show','create','put','update','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x49434f,_0x316922){var _0x281a4e=function(_0x3fae4a){while(--_0x3fae4a){_0x49434f['push'](_0x49434f['shift']());}};_0x281a4e(++_0x316922);}(_0xe224,0x1ef));var _0x4e22=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xe224[_0x20a584];return _0x4b41a8;};'use strict';var multer=require(_0x4e22('0x0'));var util=require(_0x4e22('0x1'));var path=require(_0x4e22('0x2'));var timeout=require(_0x4e22('0x3'));var express=require(_0x4e22('0x4'));var router=express[_0x4e22('0x5')]();var auth=require(_0x4e22('0x6'));var interaction=require(_0x4e22('0x7'));var config=require(_0x4e22('0x8'));var controller=require(_0x4e22('0x9'));router['get']('/',auth[_0x4e22('0xa')](),controller[_0x4e22('0xb')]);router['get'](_0x4e22('0xc'),auth[_0x4e22('0xa')](),controller[_0x4e22('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0x4e22('0xe')]);router[_0x4e22('0xf')](_0x4e22('0xc'),auth[_0x4e22('0xa')](),controller[_0x4e22('0x10')]);router['delete'](_0x4e22('0xc'),auth['isAuthenticated'](),controller[_0x4e22('0x11')]);module['exports']=router;