Built motion from commit e6806ed6.|2.6.0
[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 _0x8f1a=['getUsers','post','create','put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./squareProject.controller','isAuthenticated','index','/:id','show','get','/:id/users'];(function(_0x493a0c,_0x120ebd){var _0x36bb15=function(_0x431af6){while(--_0x431af6){_0x493a0c['push'](_0x493a0c['shift']());}};_0x36bb15(++_0x120ebd);}(_0x8f1a,0xcd));var _0xa8f1=function(_0x3acc22,_0xa325d0){_0x3acc22=_0x3acc22-0x0;var _0x1eb500=_0x8f1a[_0x3acc22];return _0x1eb500;};'use strict';var multer=require(_0xa8f1('0x0'));var util=require(_0xa8f1('0x1'));var path=require(_0xa8f1('0x2'));var timeout=require(_0xa8f1('0x3'));var express=require(_0xa8f1('0x4'));var router=express[_0xa8f1('0x5')]();var fs_extra=require(_0xa8f1('0x6'));var auth=require(_0xa8f1('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xa8f1('0x8'));router['get']('/',auth[_0xa8f1('0x9')](),controller[_0xa8f1('0xa')]);router['get'](_0xa8f1('0xb'),auth[_0xa8f1('0x9')](),controller[_0xa8f1('0xc')]);router[_0xa8f1('0xd')](_0xa8f1('0xe'),auth[_0xa8f1('0x9')](),controller[_0xa8f1('0xf')]);router[_0xa8f1('0x10')]('/',auth['isAuthenticated'](),controller[_0xa8f1('0x11')]);router[_0xa8f1('0x10')]('/:id/users',auth[_0xa8f1('0x9')](),controller['addUsers']);router[_0xa8f1('0x12')](_0xa8f1('0xb'),auth[_0xa8f1('0x9')](),controller['update']);router[_0xa8f1('0x13')](_0xa8f1('0xb'),auth[_0xa8f1('0x9')](),controller[_0xa8f1('0x14')]);router[_0xa8f1('0x13')]('/:id/users',auth[_0xa8f1('0x9')](),controller['removeUsers']);module[_0xa8f1('0x15')]=router;