Built motion from commit (unavailable).|2.5.31
[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 _0xf1c8=['/:id','show','/:id/users','getUsers','post','create','addUsers','update','delete','destroy','removeUsers','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index'];(function(_0x17c912,_0x348693){var _0x4bd3bd=function(_0x354b55){while(--_0x354b55){_0x17c912['push'](_0x17c912['shift']());}};_0x4bd3bd(++_0x348693);}(_0xf1c8,0x1ae));var _0x8f1c=function(_0x23e829,_0x113af6){_0x23e829=_0x23e829-0x0;var _0x3de672=_0xf1c8[_0x23e829];return _0x3de672;};'use strict';var multer=require(_0x8f1c('0x0'));var util=require('util');var path=require(_0x8f1c('0x1'));var timeout=require('connect-timeout');var express=require(_0x8f1c('0x2'));var router=express[_0x8f1c('0x3')]();var fs_extra=require(_0x8f1c('0x4'));var auth=require(_0x8f1c('0x5'));var interaction=require(_0x8f1c('0x6'));var config=require('../../config/environment');var controller=require('./squareProject.controller');router[_0x8f1c('0x7')]('/',auth[_0x8f1c('0x8')](),controller[_0x8f1c('0x9')]);router['get'](_0x8f1c('0xa'),auth[_0x8f1c('0x8')](),controller[_0x8f1c('0xb')]);router[_0x8f1c('0x7')](_0x8f1c('0xc'),auth[_0x8f1c('0x8')](),controller[_0x8f1c('0xd')]);router[_0x8f1c('0xe')]('/',auth[_0x8f1c('0x8')](),controller[_0x8f1c('0xf')]);router[_0x8f1c('0xe')](_0x8f1c('0xc'),auth[_0x8f1c('0x8')](),controller[_0x8f1c('0x10')]);router['put'](_0x8f1c('0xa'),auth[_0x8f1c('0x8')](),controller[_0x8f1c('0x11')]);router[_0x8f1c('0x12')](_0x8f1c('0xa'),auth['isAuthenticated'](),controller[_0x8f1c('0x13')]);router[_0x8f1c('0x12')](_0x8f1c('0xc'),auth[_0x8f1c('0x8')](),controller[_0x8f1c('0x14')]);module[_0x8f1c('0x15')]=router;