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 _0x7ad7=['delete','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','show','post','create','put','/:id'];(function(_0x506aef,_0xb1161c){var _0x579eea=function(_0x162add){while(--_0x162add){_0x506aef['push'](_0x506aef['shift']());}};_0x579eea(++_0xb1161c);}(_0x7ad7,0x1d2));var _0x77ad=function(_0x21b8a4,_0x57d8ec){_0x21b8a4=_0x21b8a4-0x0;var _0x246f52=_0x7ad7[_0x21b8a4];return _0x246f52;};'use strict';var multer=require(_0x77ad('0x0'));var util=require('util');var path=require(_0x77ad('0x1'));var timeout=require(_0x77ad('0x2'));var express=require('express');var router=express[_0x77ad('0x3')]();var auth=require(_0x77ad('0x4'));var interaction=require(_0x77ad('0x5'));var config=require(_0x77ad('0x6'));var controller=require('./squareMessage.controller');router['get']('/',auth[_0x77ad('0x7')](),controller['index']);router[_0x77ad('0x8')]('/:id',auth[_0x77ad('0x7')](),controller[_0x77ad('0x9')]);router[_0x77ad('0xa')]('/',auth[_0x77ad('0x7')](),controller[_0x77ad('0xb')]);router[_0x77ad('0xc')](_0x77ad('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x77ad('0xe')](_0x77ad('0xd'),auth[_0x77ad('0x7')](),controller['destroy']);module[_0x77ad('0xf')]=router;