e160d1c420775a1cca02aa0359f6bb7c9387ea7f
[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 _0x5a80=['create','put','delete','exports','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post'];(function(_0x4fabb6,_0xa8c4cc){var _0xf3874c=function(_0x201770){while(--_0x201770){_0x4fabb6['push'](_0x4fabb6['shift']());}};_0xf3874c(++_0xa8c4cc);}(_0x5a80,0x1b4));var _0x05a8=function(_0xc070a5,_0x176419){_0xc070a5=_0xc070a5-0x0;var _0x47b439=_0x5a80[_0xc070a5];return _0x47b439;};'use strict';var multer=require('multer');var util=require(_0x05a8('0x0'));var path=require('path');var timeout=require(_0x05a8('0x1'));var express=require(_0x05a8('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x05a8('0x3'));var interaction=require(_0x05a8('0x4'));var config=require(_0x05a8('0x5'));var controller=require('./squareProject.controller');router[_0x05a8('0x6')]('/',auth[_0x05a8('0x7')](),controller[_0x05a8('0x8')]);router[_0x05a8('0x6')](_0x05a8('0x9'),auth[_0x05a8('0x7')](),controller[_0x05a8('0xa')]);router[_0x05a8('0xb')]('/',auth[_0x05a8('0x7')](),controller[_0x05a8('0xc')]);router[_0x05a8('0xd')](_0x05a8('0x9'),auth['isAuthenticated'](),controller['update']);router[_0x05a8('0xe')](_0x05a8('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0x05a8('0xf')]=router;