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