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 _0xc5df=['delete','exports','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','isAuthenticated','index','get','/:id','show','/:id/users','post','addUsers','update'];(function(_0x524ce0,_0x3670b2){var _0x38299f=function(_0x513ef4){while(--_0x513ef4){_0x524ce0['push'](_0x524ce0['shift']());}};_0x38299f(++_0x3670b2);}(_0xc5df,0x80));var _0xfc5d=function(_0x2118a5,_0x113f1e){_0x2118a5=_0x2118a5-0x0;var _0x466c9d=_0xc5df[_0x2118a5];return _0x466c9d;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xfc5d('0x0'));var timeout=require(_0xfc5d('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xfc5d('0x2'));var auth=require(_0xfc5d('0x3'));var interaction=require(_0xfc5d('0x4'));var config=require(_0xfc5d('0x5'));var controller=require(_0xfc5d('0x6'));router['get']('/',auth[_0xfc5d('0x7')](),controller[_0xfc5d('0x8')]);router[_0xfc5d('0x9')](_0xfc5d('0xa'),auth[_0xfc5d('0x7')](),controller[_0xfc5d('0xb')]);router['get'](_0xfc5d('0xc'),auth[_0xfc5d('0x7')](),controller['getUsers']);router[_0xfc5d('0xd')]('/',auth[_0xfc5d('0x7')](),controller['create']);router[_0xfc5d('0xd')](_0xfc5d('0xc'),auth[_0xfc5d('0x7')](),controller[_0xfc5d('0xe')]);router['put'](_0xfc5d('0xa'),auth[_0xfc5d('0x7')](),controller[_0xfc5d('0xf')]);router['delete'](_0xfc5d('0xa'),auth[_0xfc5d('0x7')](),controller['destroy']);router[_0xfc5d('0x10')]('/:id/users',auth[_0xfc5d('0x7')](),controller['removeUsers']);module[_0xfc5d('0x11')]=router;