64d3c2239903f1d0c51ca2dbf953307df066f6e8
[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 _0x0ab1=['update','/:id','destroy','exports','util','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./intZohoField.controller','get','isAuthenticated','index','post','create','put'];(function(_0x257642,_0x270a80){var _0x3d813b=function(_0x2a1c8a){while(--_0x2a1c8a){_0x257642['push'](_0x257642['shift']());}};_0x3d813b(++_0x270a80);}(_0x0ab1,0x84));var _0x10ab=function(_0x58c18a,_0x57fbec){_0x58c18a=_0x58c18a-0x0;var _0xcc4b10=_0x0ab1[_0x58c18a];return _0xcc4b10;};'use strict';var multer=require('multer');var util=require(_0x10ab('0x0'));var path=require('path');var timeout=require(_0x10ab('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x10ab('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0x10ab('0x3'));var config=require(_0x10ab('0x4'));var controller=require(_0x10ab('0x5'));router[_0x10ab('0x6')]('/',auth[_0x10ab('0x7')](),controller[_0x10ab('0x8')]);router[_0x10ab('0x6')]('/:id',auth[_0x10ab('0x7')](),controller['show']);router[_0x10ab('0x9')]('/',auth['isAuthenticated'](),controller[_0x10ab('0xa')]);router[_0x10ab('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x10ab('0xc')]);router['delete'](_0x10ab('0xd'),auth[_0x10ab('0x7')](),controller[_0x10ab('0xe')]);module[_0x10ab('0xf')]=router;