Built motion from commit da617fac.|2.6.6
[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 _0x129f=['addUsers','update','destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','isAuthenticated','index','get','/:id','getUsers','post','create','/:id/users'];(function(_0x5066a5,_0x38eaa4){var _0x290fb2=function(_0x448400){while(--_0x448400){_0x5066a5['push'](_0x5066a5['shift']());}};_0x290fb2(++_0x38eaa4);}(_0x129f,0x13f));var _0xf129=function(_0x15bc81,_0x4d4f77){_0x15bc81=_0x15bc81-0x0;var _0x59440e=_0x129f[_0x15bc81];return _0x59440e;};'use strict';var multer=require(_0xf129('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xf129('0x1'));var express=require(_0xf129('0x2'));var router=express[_0xf129('0x3')]();var fs_extra=require(_0xf129('0x4'));var auth=require(_0xf129('0x5'));var interaction=require(_0xf129('0x6'));var config=require(_0xf129('0x7'));var controller=require(_0xf129('0x8'));router['get']('/',auth[_0xf129('0x9')](),controller[_0xf129('0xa')]);router[_0xf129('0xb')](_0xf129('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xf129('0xb')]('/:id/users',auth[_0xf129('0x9')](),controller[_0xf129('0xd')]);router[_0xf129('0xe')]('/',auth[_0xf129('0x9')](),controller[_0xf129('0xf')]);router['post'](_0xf129('0x10'),auth[_0xf129('0x9')](),controller[_0xf129('0x11')]);router['put'](_0xf129('0xc'),auth[_0xf129('0x9')](),controller[_0xf129('0x12')]);router['delete'](_0xf129('0xc'),auth[_0xf129('0x9')](),controller[_0xf129('0x13')]);router['delete'](_0xf129('0x10'),auth[_0xf129('0x9')](),controller['removeUsers']);module[_0xf129('0x14')]=router;