Built motion from commit d5e4af8c.|2.6.23
[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 _0x168d=['/:id','update','delete','destroy','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./squareProject.controller','get','isAuthenticated','index','post','create','put'];(function(_0x5280f4,_0x3c36d0){var _0xba93e7=function(_0x14d63a){while(--_0x14d63a){_0x5280f4['push'](_0x5280f4['shift']());}};_0xba93e7(++_0x3c36d0);}(_0x168d,0x82));var _0xd168=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0x168d[_0x46698a];return _0x356db0;};'use strict';var multer=require('multer');var util=require(_0xd168('0x0'));var path=require(_0xd168('0x1'));var timeout=require('connect-timeout');var express=require(_0xd168('0x2'));var router=express[_0xd168('0x3')]();var fs_extra=require(_0xd168('0x4'));var auth=require(_0xd168('0x5'));var interaction=require(_0xd168('0x6'));var config=require('../../config/environment');var controller=require(_0xd168('0x7'));router[_0xd168('0x8')]('/',auth[_0xd168('0x9')](),controller[_0xd168('0xa')]);router[_0xd168('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xd168('0xb')]('/',auth[_0xd168('0x9')](),controller[_0xd168('0xc')]);router[_0xd168('0xd')](_0xd168('0xe'),auth[_0xd168('0x9')](),controller[_0xd168('0xf')]);router[_0xd168('0x10')]('/:id',auth[_0xd168('0x9')](),controller[_0xd168('0x11')]);module['exports']=router;