239b438aa2299ceef2e6fd547199897c06088623
[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 _0xb451=['update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','get','isAuthenticated','index','show','post','create','put','/:id'];(function(_0x1b574e,_0x3fbab6){var _0x3b1eb8=function(_0x3b2345){while(--_0x3b2345){_0x1b574e['push'](_0x1b574e['shift']());}};_0x3b1eb8(++_0x3fbab6);}(_0xb451,0x13f));var _0x1b45=function(_0x60286b,_0x3247c1){_0x60286b=_0x60286b-0x0;var _0x5dff69=_0xb451[_0x60286b];return _0x5dff69;};'use strict';var multer=require(_0x1b45('0x0'));var util=require('util');var path=require(_0x1b45('0x1'));var timeout=require(_0x1b45('0x2'));var express=require(_0x1b45('0x3'));var router=express[_0x1b45('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x1b45('0x5'));var interaction=require(_0x1b45('0x6'));var config=require(_0x1b45('0x7'));var controller=require(_0x1b45('0x8'));router[_0x1b45('0x9')]('/',auth[_0x1b45('0xa')](),controller[_0x1b45('0xb')]);router[_0x1b45('0x9')]('/:id',auth[_0x1b45('0xa')](),controller[_0x1b45('0xc')]);router[_0x1b45('0xd')]('/',auth['isAuthenticated'](),controller[_0x1b45('0xe')]);router[_0x1b45('0xf')](_0x1b45('0x10'),auth[_0x1b45('0xa')](),controller[_0x1b45('0x11')]);router[_0x1b45('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x1b45('0x13')]);module[_0x1b45('0x14')]=router;