11f60fc8b6a01802a30c0a87890086ac9a783adb
[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 _0x1f3c=['show','post','isAuthenticated','create','put','delete','destroy','exports','multer','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','get','index','/:id'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0x1f3c,0xa0));var _0xc1f3=function(_0x465028,_0x4570ac){_0x465028=_0x465028-0x0;var _0xb783d4=_0x1f3c[_0x465028];return _0xb783d4;};'use strict';var multer=require(_0xc1f3('0x0'));var util=require('util');var path=require(_0xc1f3('0x1'));var timeout=require('connect-timeout');var express=require(_0xc1f3('0x2'));var router=express['Router']();var fs_extra=require(_0xc1f3('0x3'));var auth=require(_0xc1f3('0x4'));var interaction=require(_0xc1f3('0x5'));var config=require(_0xc1f3('0x6'));var controller=require(_0xc1f3('0x7'));router[_0xc1f3('0x8')]('/',auth['isAuthenticated'](),controller[_0xc1f3('0x9')]);router[_0xc1f3('0x8')](_0xc1f3('0xa'),auth['isAuthenticated'](),controller[_0xc1f3('0xb')]);router[_0xc1f3('0xc')]('/',auth[_0xc1f3('0xd')](),controller[_0xc1f3('0xe')]);router[_0xc1f3('0xf')](_0xc1f3('0xa'),auth['isAuthenticated'](),controller['update']);router[_0xc1f3('0x10')](_0xc1f3('0xa'),auth[_0xc1f3('0xd')](),controller[_0xc1f3('0x11')]);module[_0xc1f3('0x12')]=router;