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 _0xae94=['../../config/environment','./squareProject.controller','isAuthenticated','index','get','/:id','show','/:id/users','getUsers','post','create','addUsers','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x3ff4a3,_0xa5bfa6){var _0x38676f=function(_0x3ab2b1){while(--_0x3ab2b1){_0x3ff4a3['push'](_0x3ff4a3['shift']());}};_0x38676f(++_0xa5bfa6);}(_0xae94,0x89));var _0x4ae9=function(_0x433bf1,_0x5e342d){_0x433bf1=_0x433bf1-0x0;var _0x1b32f4=_0xae94[_0x433bf1];return _0x1b32f4;};'use strict';var multer=require(_0x4ae9('0x0'));var util=require(_0x4ae9('0x1'));var path=require(_0x4ae9('0x2'));var timeout=require(_0x4ae9('0x3'));var express=require(_0x4ae9('0x4'));var router=express[_0x4ae9('0x5')]();var auth=require(_0x4ae9('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x4ae9('0x7'));var controller=require(_0x4ae9('0x8'));router['get']('/',auth[_0x4ae9('0x9')](),controller[_0x4ae9('0xa')]);router[_0x4ae9('0xb')](_0x4ae9('0xc'),auth['isAuthenticated'](),controller[_0x4ae9('0xd')]);router[_0x4ae9('0xb')](_0x4ae9('0xe'),auth[_0x4ae9('0x9')](),controller[_0x4ae9('0xf')]);router[_0x4ae9('0x10')]('/',auth[_0x4ae9('0x9')](),controller[_0x4ae9('0x11')]);router[_0x4ae9('0x10')](_0x4ae9('0xe'),auth[_0x4ae9('0x9')](),controller[_0x4ae9('0x12')]);router[_0x4ae9('0x13')]('/:id',auth[_0x4ae9('0x9')](),controller[_0x4ae9('0x14')]);router[_0x4ae9('0x15')](_0x4ae9('0xc'),auth['isAuthenticated'](),controller[_0x4ae9('0x16')]);router[_0x4ae9('0x15')](_0x4ae9('0xe'),auth[_0x4ae9('0x9')](),controller['removeUsers']);module[_0x4ae9('0x17')]=router;