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 _0x0f78=['post','create','put','exports','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','index','/:id','isAuthenticated','show'];(function(_0xf7f907,_0x4e8b37){var _0x4f293d=function(_0x4f606f){while(--_0x4f606f){_0xf7f907['push'](_0xf7f907['shift']());}};_0x4f293d(++_0x4e8b37);}(_0x0f78,0x1e0));var _0x80f7=function(_0x2954aa,_0x3ecbcc){_0x2954aa=_0x2954aa-0x0;var _0x468c95=_0x0f78[_0x2954aa];return _0x468c95;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x80f7('0x0'));var express=require(_0x80f7('0x1'));var router=express[_0x80f7('0x2')]();var auth=require(_0x80f7('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x80f7('0x4'));var controller=require('./squareMessage.controller');router[_0x80f7('0x5')]('/',auth['isAuthenticated'](),controller[_0x80f7('0x6')]);router[_0x80f7('0x5')](_0x80f7('0x7'),auth[_0x80f7('0x8')](),controller[_0x80f7('0x9')]);router[_0x80f7('0xa')]('/',auth['isAuthenticated'](),controller[_0x80f7('0xb')]);router[_0x80f7('0xc')](_0x80f7('0x7'),auth[_0x80f7('0x8')](),controller['update']);router['delete'](_0x80f7('0x7'),auth[_0x80f7('0x8')](),controller['destroy']);module[_0x80f7('0xd')]=router;