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 _0xce78=['../../components/interaction/service','../../config/environment','./squareProject.controller','index','get','/:id','isAuthenticated','/:id/users','post','create','addUsers','put','update','delete','removeUsers','exports','multer','connect-timeout','express','Router','../../components/auth/service'];(function(_0x3b527d,_0x503403){var _0x251d5c=function(_0x392af7){while(--_0x392af7){_0x3b527d['push'](_0x3b527d['shift']());}};_0x251d5c(++_0x503403);}(_0xce78,0xa3));var _0x8ce7=function(_0x110df9,_0x2b9801){_0x110df9=_0x110df9-0x0;var _0x54fbc2=_0xce78[_0x110df9];return _0x54fbc2;};'use strict';var multer=require(_0x8ce7('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x8ce7('0x1'));var express=require(_0x8ce7('0x2'));var router=express[_0x8ce7('0x3')]();var auth=require(_0x8ce7('0x4'));var interaction=require(_0x8ce7('0x5'));var config=require(_0x8ce7('0x6'));var controller=require(_0x8ce7('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x8ce7('0x8')]);router[_0x8ce7('0x9')](_0x8ce7('0xa'),auth[_0x8ce7('0xb')](),controller['show']);router[_0x8ce7('0x9')](_0x8ce7('0xc'),auth[_0x8ce7('0xb')](),controller['getUsers']);router[_0x8ce7('0xd')]('/',auth[_0x8ce7('0xb')](),controller[_0x8ce7('0xe')]);router[_0x8ce7('0xd')](_0x8ce7('0xc'),auth[_0x8ce7('0xb')](),controller[_0x8ce7('0xf')]);router[_0x8ce7('0x10')](_0x8ce7('0xa'),auth[_0x8ce7('0xb')](),controller[_0x8ce7('0x11')]);router[_0x8ce7('0x12')](_0x8ce7('0xa'),auth[_0x8ce7('0xb')](),controller['destroy']);router[_0x8ce7('0x12')](_0x8ce7('0xc'),auth['isAuthenticated'](),controller[_0x8ce7('0x13')]);module[_0x8ce7('0x14')]=router;