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 _0x2b64=['util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./squareProject.controller','get','isAuthenticated','index','show','post','create','put','/:id','update','delete','destroy','multer'];(function(_0x4d4c4f,_0x2428fc){var _0x141c93=function(_0x9d2db5){while(--_0x9d2db5){_0x4d4c4f['push'](_0x4d4c4f['shift']());}};_0x141c93(++_0x2428fc);}(_0x2b64,0x167));var _0x42b6=function(_0x1cfba1,_0xceafc){_0x1cfba1=_0x1cfba1-0x0;var _0x4fd6aa=_0x2b64[_0x1cfba1];return _0x4fd6aa;};'use strict';var multer=require(_0x42b6('0x0'));var util=require(_0x42b6('0x1'));var path=require(_0x42b6('0x2'));var timeout=require(_0x42b6('0x3'));var express=require(_0x42b6('0x4'));var router=express[_0x42b6('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x42b6('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x42b6('0x7'));var controller=require(_0x42b6('0x8'));router[_0x42b6('0x9')]('/',auth[_0x42b6('0xa')](),controller[_0x42b6('0xb')]);router['get']('/:id',auth[_0x42b6('0xa')](),controller[_0x42b6('0xc')]);router[_0x42b6('0xd')]('/',auth[_0x42b6('0xa')](),controller[_0x42b6('0xe')]);router[_0x42b6('0xf')](_0x42b6('0x10'),auth['isAuthenticated'](),controller[_0x42b6('0x11')]);router[_0x42b6('0x12')]('/:id',auth[_0x42b6('0xa')](),controller[_0x42b6('0x13')]);module['exports']=router;