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 _0x2851=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','create','update','destroy','multer','Router','fs-extra'];(function(_0x355cac,_0xc13ea1){var _0x4d6d62=function(_0x3fbff1){while(--_0x3fbff1){_0x355cac['push'](_0x355cac['shift']());}};_0x4d6d62(++_0xc13ea1);}(_0x2851,0x7f));var _0x1285=function(_0x502c7d,_0x2f1285){_0x502c7d=_0x502c7d-0x0;var _0x30b7ed=_0x2851[_0x502c7d];return _0x30b7ed;};'use strict';var multer=require(_0x1285('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x1285('0x1')]();var fs_extra=require(_0x1285('0x2'));var auth=require(_0x1285('0x3'));var interaction=require(_0x1285('0x4'));var config=require(_0x1285('0x5'));var controller=require('./squareProject.controller');router[_0x1285('0x6')]('/',auth[_0x1285('0x7')](),controller['index']);router['get'](_0x1285('0x8'),auth[_0x1285('0x7')](),controller[_0x1285('0x9')]);router['post']('/',auth[_0x1285('0x7')](),controller[_0x1285('0xa')]);router['put'](_0x1285('0x8'),auth['isAuthenticated'](),controller[_0x1285('0xb')]);router['delete']('/:id',auth[_0x1285('0x7')](),controller[_0x1285('0xc')]);module['exports']=router;