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 _0xab1d=['post','addUsers','put','update','delete','destroy','multer','path','connect-timeout','express','../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','/:id/users','getUsers'];(function(_0x38cf13,_0x5f31af){var _0x3fbf11=function(_0x6b89e8){while(--_0x6b89e8){_0x38cf13['push'](_0x38cf13['shift']());}};_0x3fbf11(++_0x5f31af);}(_0xab1d,0x116));var _0xdab1=function(_0x45119b,_0x2faf89){_0x45119b=_0x45119b-0x0;var _0x411936=_0xab1d[_0x45119b];return _0x411936;};'use strict';var multer=require(_0xdab1('0x0'));var util=require('util');var path=require(_0xdab1('0x1'));var timeout=require(_0xdab1('0x2'));var express=require(_0xdab1('0x3'));var router=express['Router']();var auth=require(_0xdab1('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xdab1('0x5'));var controller=require('./squareProject.controller');router[_0xdab1('0x6')]('/',auth[_0xdab1('0x7')](),controller['index']);router[_0xdab1('0x6')](_0xdab1('0x8'),auth['isAuthenticated'](),controller['show']);router[_0xdab1('0x6')](_0xdab1('0x9'),auth[_0xdab1('0x7')](),controller[_0xdab1('0xa')]);router[_0xdab1('0xb')]('/',auth[_0xdab1('0x7')](),controller['create']);router['post'](_0xdab1('0x9'),auth['isAuthenticated'](),controller[_0xdab1('0xc')]);router[_0xdab1('0xd')](_0xdab1('0x8'),auth[_0xdab1('0x7')](),controller[_0xdab1('0xe')]);router[_0xdab1('0xf')](_0xdab1('0x8'),auth[_0xdab1('0x7')](),controller[_0xdab1('0x10')]);router[_0xdab1('0xf')](_0xdab1('0x9'),auth[_0xdab1('0x7')](),controller['removeUsers']);module['exports']=router;