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 _0x4225=['put','delete','/:id','destroy','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareMessage.controller','get','isAuthenticated','index','show','post','create'];(function(_0x279336,_0x19a13c){var _0x30bfd0=function(_0x1750ea){while(--_0x1750ea){_0x279336['push'](_0x279336['shift']());}};_0x30bfd0(++_0x19a13c);}(_0x4225,0xa6));var _0x5422=function(_0x585379,_0x1ecd07){_0x585379=_0x585379-0x0;var _0x2b0c92=_0x4225[_0x585379];return _0x2b0c92;};'use strict';var multer=require(_0x5422('0x0'));var util=require(_0x5422('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x5422('0x2'));var router=express[_0x5422('0x3')]();var auth=require(_0x5422('0x4'));var interaction=require(_0x5422('0x5'));var config=require(_0x5422('0x6'));var controller=require(_0x5422('0x7'));router[_0x5422('0x8')]('/',auth[_0x5422('0x9')](),controller[_0x5422('0xa')]);router['get']('/:id',auth[_0x5422('0x9')](),controller[_0x5422('0xb')]);router[_0x5422('0xc')]('/',auth[_0x5422('0x9')](),controller[_0x5422('0xd')]);router[_0x5422('0xe')]('/:id',auth[_0x5422('0x9')](),controller['update']);router[_0x5422('0xf')](_0x5422('0x10'),auth[_0x5422('0x9')](),controller[_0x5422('0x11')]);module['exports']=router;