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 _0xf831=['create','put','update','delete','destroy','exports','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','./squareProject.controller','get','isAuthenticated','index','/:id','show','post'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xf831,0x65));var _0x1f83=function(_0x4fed54,_0x5da189){_0x4fed54=_0x4fed54-0x0;var _0x5b3a03=_0xf831[_0x4fed54];return _0x5b3a03;};'use strict';var multer=require('multer');var util=require(_0x1f83('0x0'));var path=require(_0x1f83('0x1'));var timeout=require(_0x1f83('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x1f83('0x3'));var auth=require(_0x1f83('0x4'));var interaction=require(_0x1f83('0x5'));var config=require('../../config/environment');var controller=require(_0x1f83('0x6'));router[_0x1f83('0x7')]('/',auth[_0x1f83('0x8')](),controller[_0x1f83('0x9')]);router[_0x1f83('0x7')](_0x1f83('0xa'),auth[_0x1f83('0x8')](),controller[_0x1f83('0xb')]);router[_0x1f83('0xc')]('/',auth[_0x1f83('0x8')](),controller[_0x1f83('0xd')]);router[_0x1f83('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x1f83('0xf')]);router[_0x1f83('0x10')]('/:id',auth[_0x1f83('0x8')](),controller[_0x1f83('0x11')]);module[_0x1f83('0x12')]=router;