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