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 _0x28cd=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','get','/:id','isAuthenticated','show','/:id/users','post','create','addUsers','put','update','removeUsers','exports','path','connect-timeout','express'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x28cd,0x177));var _0xd28c=function(_0x9ab9f6,_0x2becb2){_0x9ab9f6=_0x9ab9f6-0x0;var _0x5452b9=_0x28cd[_0x9ab9f6];return _0x5452b9;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xd28c('0x0'));var timeout=require(_0xd28c('0x1'));var express=require(_0xd28c('0x2'));var router=express[_0xd28c('0x3')]();var fs_extra=require(_0xd28c('0x4'));var auth=require(_0xd28c('0x5'));var interaction=require(_0xd28c('0x6'));var config=require(_0xd28c('0x7'));var controller=require(_0xd28c('0x8'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xd28c('0x9')](_0xd28c('0xa'),auth[_0xd28c('0xb')](),controller[_0xd28c('0xc')]);router[_0xd28c('0x9')](_0xd28c('0xd'),auth['isAuthenticated'](),controller['getUsers']);router[_0xd28c('0xe')]('/',auth[_0xd28c('0xb')](),controller[_0xd28c('0xf')]);router[_0xd28c('0xe')]('/:id/users',auth[_0xd28c('0xb')](),controller[_0xd28c('0x10')]);router[_0xd28c('0x11')](_0xd28c('0xa'),auth[_0xd28c('0xb')](),controller[_0xd28c('0x12')]);router['delete'](_0xd28c('0xa'),auth[_0xd28c('0xb')](),controller['destroy']);router['delete'](_0xd28c('0xd'),auth['isAuthenticated'](),controller[_0xd28c('0x13')]);module[_0xd28c('0x14')]=router;