Built motion from commit 43538d75.|2.5.35
[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 _0xaf79=['/:id','isAuthenticated','show','/:id/users','getUsers','create','addUsers','put','delete','destroy','removeUsers','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','index','get'];(function(_0x340cf3,_0x4b8de7){var _0xe1c777=function(_0x2615aa){while(--_0x2615aa){_0x340cf3['push'](_0x340cf3['shift']());}};_0xe1c777(++_0x4b8de7);}(_0xaf79,0xe4));var _0x9af7=function(_0x4c5f2e,_0x1fb14d){_0x4c5f2e=_0x4c5f2e-0x0;var _0x2de143=_0xaf79[_0x4c5f2e];return _0x2de143;};'use strict';var multer=require(_0x9af7('0x0'));var util=require(_0x9af7('0x1'));var path=require(_0x9af7('0x2'));var timeout=require(_0x9af7('0x3'));var express=require(_0x9af7('0x4'));var router=express[_0x9af7('0x5')]();var fs_extra=require(_0x9af7('0x6'));var auth=require(_0x9af7('0x7'));var interaction=require(_0x9af7('0x8'));var config=require(_0x9af7('0x9'));var controller=require('./squareProject.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x9af7('0xa')]);router[_0x9af7('0xb')](_0x9af7('0xc'),auth[_0x9af7('0xd')](),controller[_0x9af7('0xe')]);router[_0x9af7('0xb')](_0x9af7('0xf'),auth[_0x9af7('0xd')](),controller[_0x9af7('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0x9af7('0x11')]);router['post'](_0x9af7('0xf'),auth[_0x9af7('0xd')](),controller[_0x9af7('0x12')]);router[_0x9af7('0x13')](_0x9af7('0xc'),auth[_0x9af7('0xd')](),controller['update']);router[_0x9af7('0x14')](_0x9af7('0xc'),auth[_0x9af7('0xd')](),controller[_0x9af7('0x15')]);router[_0x9af7('0x14')](_0x9af7('0xf'),auth[_0x9af7('0xd')](),controller[_0x9af7('0x16')]);module[_0x9af7('0x17')]=router;