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 _0xd226=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','post','put','update','delete','destroy','exports','multer','util','connect-timeout','express'];(function(_0x50696d,_0xa93340){var _0x2449c2=function(_0x29ce03){while(--_0x29ce03){_0x50696d['push'](_0x50696d['shift']());}};_0x2449c2(++_0xa93340);}(_0xd226,0x1ac));var _0x6d22=function(_0x4f7588,_0x399e6b){_0x4f7588=_0x4f7588-0x0;var _0x535c70=_0xd226[_0x4f7588];return _0x535c70;};'use strict';var multer=require(_0x6d22('0x0'));var util=require(_0x6d22('0x1'));var path=require('path');var timeout=require(_0x6d22('0x2'));var express=require(_0x6d22('0x3'));var router=express[_0x6d22('0x4')]();var auth=require(_0x6d22('0x5'));var interaction=require(_0x6d22('0x6'));var config=require(_0x6d22('0x7'));var controller=require('./squareMessage.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x6d22('0x8')](_0x6d22('0x9'),auth[_0x6d22('0xa')](),controller[_0x6d22('0xb')]);router[_0x6d22('0xc')]('/',auth[_0x6d22('0xa')](),controller['create']);router[_0x6d22('0xd')](_0x6d22('0x9'),auth['isAuthenticated'](),controller[_0x6d22('0xe')]);router[_0x6d22('0xf')]('/:id',auth[_0x6d22('0xa')](),controller[_0x6d22('0x10')]);module[_0x6d22('0x11')]=router;