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 _0x06ab=['Router','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','create','update','delete','destroy','exports','multer','util','path'];(function(_0x4c8370,_0x35621a){var _0x52ffc0=function(_0x4fc490){while(--_0x4fc490){_0x4c8370['push'](_0x4c8370['shift']());}};_0x52ffc0(++_0x35621a);}(_0x06ab,0x7d));var _0xb06a=function(_0x54fe52,_0x2234fb){_0x54fe52=_0x54fe52-0x0;var _0x2a35fa=_0x06ab[_0x54fe52];return _0x2a35fa;};'use strict';var multer=require(_0xb06a('0x0'));var util=require(_0xb06a('0x1'));var path=require(_0xb06a('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb06a('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xb06a('0x4'));var config=require('../../config/environment');var controller=require('./squareMessage.controller');router[_0xb06a('0x5')]('/',auth[_0xb06a('0x6')](),controller[_0xb06a('0x7')]);router[_0xb06a('0x5')](_0xb06a('0x8'),auth[_0xb06a('0x6')](),controller[_0xb06a('0x9')]);router[_0xb06a('0xa')]('/',auth['isAuthenticated'](),controller[_0xb06a('0xb')]);router['put']('/:id',auth[_0xb06a('0x6')](),controller[_0xb06a('0xc')]);router[_0xb06a('0xd')](_0xb06a('0x8'),auth[_0xb06a('0x6')](),controller[_0xb06a('0xe')]);module[_0xb06a('0xf')]=router;