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 _0x39c3=['put','/:id','update','delete','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareMessage.controller','get','isAuthenticated','index','show','post','create'];(function(_0x3ae479,_0x1dfedc){var _0x28d04b=function(_0xc5a591){while(--_0xc5a591){_0x3ae479['push'](_0x3ae479['shift']());}};_0x28d04b(++_0x1dfedc);}(_0x39c3,0x10f));var _0x339c=function(_0x28aea5,_0x3bb12e){_0x28aea5=_0x28aea5-0x0;var _0x6a55f9=_0x39c3[_0x28aea5];return _0x6a55f9;};'use strict';var multer=require('multer');var util=require(_0x339c('0x0'));var path=require(_0x339c('0x1'));var timeout=require(_0x339c('0x2'));var express=require(_0x339c('0x3'));var router=express['Router']();var auth=require(_0x339c('0x4'));var interaction=require(_0x339c('0x5'));var config=require(_0x339c('0x6'));var controller=require(_0x339c('0x7'));router[_0x339c('0x8')]('/',auth[_0x339c('0x9')](),controller[_0x339c('0xa')]);router[_0x339c('0x8')]('/:id',auth[_0x339c('0x9')](),controller[_0x339c('0xb')]);router[_0x339c('0xc')]('/',auth[_0x339c('0x9')](),controller[_0x339c('0xd')]);router[_0x339c('0xe')](_0x339c('0xf'),auth[_0x339c('0x9')](),controller[_0x339c('0x10')]);router[_0x339c('0x11')](_0x339c('0xf'),auth[_0x339c('0x9')](),controller['destroy']);module[_0x339c('0x12')]=router;