Built motion from commit 85328c08.|2.5.50
[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 _0xf960=['delete','destroy','removeUsers','exports','multer','path','express','Router','../../components/auth/service','./squareProject.controller','get','isAuthenticated','index','show','/:id/users','getUsers','post','create','addUsers','put','/:id'];(function(_0x32a884,_0x183853){var _0x242f9b=function(_0x556c63){while(--_0x556c63){_0x32a884['push'](_0x32a884['shift']());}};_0x242f9b(++_0x183853);}(_0xf960,0x193));var _0x0f96=function(_0x5235a6,_0x680b76){_0x5235a6=_0x5235a6-0x0;var _0x1cf37e=_0xf960[_0x5235a6];return _0x1cf37e;};'use strict';var multer=require(_0x0f96('0x0'));var util=require('util');var path=require(_0x0f96('0x1'));var timeout=require('connect-timeout');var express=require(_0x0f96('0x2'));var router=express[_0x0f96('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x0f96('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x0f96('0x5'));router[_0x0f96('0x6')]('/',auth[_0x0f96('0x7')](),controller[_0x0f96('0x8')]);router[_0x0f96('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x0f96('0x9')]);router[_0x0f96('0x6')](_0x0f96('0xa'),auth[_0x0f96('0x7')](),controller[_0x0f96('0xb')]);router[_0x0f96('0xc')]('/',auth['isAuthenticated'](),controller[_0x0f96('0xd')]);router['post'](_0x0f96('0xa'),auth['isAuthenticated'](),controller[_0x0f96('0xe')]);router[_0x0f96('0xf')](_0x0f96('0x10'),auth[_0x0f96('0x7')](),controller['update']);router[_0x0f96('0x11')](_0x0f96('0x10'),auth[_0x0f96('0x7')](),controller[_0x0f96('0x12')]);router['delete'](_0x0f96('0xa'),auth[_0x0f96('0x7')](),controller[_0x0f96('0x13')]);module[_0x0f96('0x14')]=router;