88d7773ec5d9f2125b0bdc4ed234da3f82b235c8
[motion2.git] / server / api / squareProject / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x66c5=['update','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','get','index','/:id','isAuthenticated','show','post','create','put'];(function(_0x40df4f,_0x12b287){var _0x42d529=function(_0x340bcf){while(--_0x340bcf){_0x40df4f['push'](_0x40df4f['shift']());}};_0x42d529(++_0x12b287);}(_0x66c5,0xa4));var _0x566c=function(_0x2b35ca,_0x4943ce){_0x2b35ca=_0x2b35ca-0x0;var _0x68389e=_0x66c5[_0x2b35ca];return _0x68389e;};'use strict';var multer=require(_0x566c('0x0'));var util=require('util');var path=require(_0x566c('0x1'));var timeout=require(_0x566c('0x2'));var express=require('express');var router=express[_0x566c('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x566c('0x4'));var interaction=require(_0x566c('0x5'));var config=require(_0x566c('0x6'));var controller=require(_0x566c('0x7'));router[_0x566c('0x8')]('/',auth['isAuthenticated'](),controller[_0x566c('0x9')]);router[_0x566c('0x8')](_0x566c('0xa'),auth[_0x566c('0xb')](),controller[_0x566c('0xc')]);router[_0x566c('0xd')]('/',auth[_0x566c('0xb')](),controller[_0x566c('0xe')]);router[_0x566c('0xf')](_0x566c('0xa'),auth[_0x566c('0xb')](),controller[_0x566c('0x10')]);router['delete'](_0x566c('0xa'),auth[_0x566c('0xb')](),controller['destroy']);module[_0x566c('0x11')]=router;