fe5b21c585bba5f00ca63def4e80b35fa4bc6f1c
[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 _0xf4f2=['create','addUsers','put','/:id','update','delete','destroy','removeUsers','multer','util','connect-timeout','express','fs-extra','./squareProject.controller','index','get','isAuthenticated','show','/:id/users','getUsers','post'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xf4f2,0x12e));var _0x2f4f=function(_0x289467,_0x31fd11){_0x289467=_0x289467-0x0;var _0x28d368=_0xf4f2[_0x289467];return _0x28d368;};'use strict';var multer=require(_0x2f4f('0x0'));var util=require(_0x2f4f('0x1'));var path=require('path');var timeout=require(_0x2f4f('0x2'));var express=require(_0x2f4f('0x3'));var router=express['Router']();var fs_extra=require(_0x2f4f('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x2f4f('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0x2f4f('0x6')]);router[_0x2f4f('0x7')]('/:id',auth[_0x2f4f('0x8')](),controller[_0x2f4f('0x9')]);router[_0x2f4f('0x7')](_0x2f4f('0xa'),auth[_0x2f4f('0x8')](),controller[_0x2f4f('0xb')]);router[_0x2f4f('0xc')]('/',auth[_0x2f4f('0x8')](),controller[_0x2f4f('0xd')]);router[_0x2f4f('0xc')]('/:id/users',auth[_0x2f4f('0x8')](),controller[_0x2f4f('0xe')]);router[_0x2f4f('0xf')](_0x2f4f('0x10'),auth[_0x2f4f('0x8')](),controller[_0x2f4f('0x11')]);router[_0x2f4f('0x12')](_0x2f4f('0x10'),auth[_0x2f4f('0x8')](),controller[_0x2f4f('0x13')]);router[_0x2f4f('0x12')]('/:id/users',auth[_0x2f4f('0x8')](),controller[_0x2f4f('0x14')]);module['exports']=router;