Built motion from commit f74363e9.|2.6.34
[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 _0xb9d5=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','isAuthenticated','index','get','/:id','show','post','create','put','update','exports','multer','util','path','express'];(function(_0x14ede3,_0xe4d3b5){var _0x1c9db3=function(_0x9fb4c8){while(--_0x9fb4c8){_0x14ede3['push'](_0x14ede3['shift']());}};_0x1c9db3(++_0xe4d3b5);}(_0xb9d5,0x152));var _0x5b9d=function(_0x35b70a,_0x185f60){_0x35b70a=_0x35b70a-0x0;var _0x41eced=_0xb9d5[_0x35b70a];return _0x41eced;};'use strict';var multer=require(_0x5b9d('0x0'));var util=require(_0x5b9d('0x1'));var path=require(_0x5b9d('0x2'));var timeout=require('connect-timeout');var express=require(_0x5b9d('0x3'));var router=express['Router']();var fs_extra=require(_0x5b9d('0x4'));var auth=require(_0x5b9d('0x5'));var interaction=require(_0x5b9d('0x6'));var config=require(_0x5b9d('0x7'));var controller=require(_0x5b9d('0x8'));router['get']('/',auth[_0x5b9d('0x9')](),controller[_0x5b9d('0xa')]);router[_0x5b9d('0xb')](_0x5b9d('0xc'),auth[_0x5b9d('0x9')](),controller[_0x5b9d('0xd')]);router[_0x5b9d('0xe')]('/',auth[_0x5b9d('0x9')](),controller[_0x5b9d('0xf')]);router[_0x5b9d('0x10')]('/:id',auth[_0x5b9d('0x9')](),controller[_0x5b9d('0x11')]);router['delete'](_0x5b9d('0xc'),auth[_0x5b9d('0x9')](),controller['destroy']);module[_0x5b9d('0x12')]=router;