e7341008b8fae53401d59f10b034b5c5882f2ccf
[motion2.git] / server / api / intZohoField / 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 _0x36cb=['/:id','update','delete','destroy','exports','multer','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./intZohoField.controller','index','get','isAuthenticated','show','put'];(function(_0x4de663,_0x3796a1){var _0x59e7c0=function(_0x4f6b8e){while(--_0x4f6b8e){_0x4de663['push'](_0x4de663['shift']());}};_0x59e7c0(++_0x3796a1);}(_0x36cb,0x191));var _0xb36c=function(_0x53ccf2,_0x13cb67){_0x53ccf2=_0x53ccf2-0x0;var _0x5a2964=_0x36cb[_0x53ccf2];return _0x5a2964;};'use strict';var multer=require(_0xb36c('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xb36c('0x1'));var express=require(_0xb36c('0x2'));var router=express[_0xb36c('0x3')]();var fs_extra=require(_0xb36c('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xb36c('0x5'));var config=require(_0xb36c('0x6'));var controller=require(_0xb36c('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xb36c('0x8')]);router[_0xb36c('0x9')]('/:id',auth[_0xb36c('0xa')](),controller[_0xb36c('0xb')]);router['post']('/',auth[_0xb36c('0xa')](),controller['create']);router[_0xb36c('0xc')](_0xb36c('0xd'),auth[_0xb36c('0xa')](),controller[_0xb36c('0xe')]);router[_0xb36c('0xf')](_0xb36c('0xd'),auth[_0xb36c('0xa')](),controller[_0xb36c('0x10')]);module[_0xb36c('0x11')]=router;