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 _0x50c0=['express','Router','../../components/auth/service','../../config/environment','./squareProject.controller','get','/:id','isAuthenticated','show','post','create','put','update','destroy','path','connect-timeout'];(function(_0x5466e0,_0x586206){var _0xf32c89=function(_0x68e0e9){while(--_0x68e0e9){_0x5466e0['push'](_0x5466e0['shift']());}};_0xf32c89(++_0x586206);}(_0x50c0,0x1be));var _0x050c=function(_0x205b46,_0x3ca65b){_0x205b46=_0x205b46-0x0;var _0x2b6ae8=_0x50c0[_0x205b46];return _0x2b6ae8;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x050c('0x0'));var timeout=require(_0x050c('0x1'));var express=require(_0x050c('0x2'));var router=express[_0x050c('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x050c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x050c('0x5'));var controller=require(_0x050c('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x050c('0x7')](_0x050c('0x8'),auth[_0x050c('0x9')](),controller[_0x050c('0xa')]);router[_0x050c('0xb')]('/',auth[_0x050c('0x9')](),controller[_0x050c('0xc')]);router[_0x050c('0xd')](_0x050c('0x8'),auth[_0x050c('0x9')](),controller[_0x050c('0xe')]);router['delete']('/:id',auth[_0x050c('0x9')](),controller[_0x050c('0xf')]);module['exports']=router;