fc5d46ca442f80ff0734935e17ba0a3f251e7f97
[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 _0x0a35=['util','path','connect-timeout','express','Router','fs-extra','../../config/environment','get','isAuthenticated','index','show','post','create','put','/:id','delete','exports','multer'];(function(_0x2727bb,_0x1a204c){var _0xbb44af=function(_0x34ff74){while(--_0x34ff74){_0x2727bb['push'](_0x2727bb['shift']());}};_0xbb44af(++_0x1a204c);}(_0x0a35,0x18b));var _0x50a3=function(_0xd204b0,_0x4c7d1d){_0xd204b0=_0xd204b0-0x0;var _0xfc8310=_0x0a35[_0xd204b0];return _0xfc8310;};'use strict';var multer=require(_0x50a3('0x0'));var util=require(_0x50a3('0x1'));var path=require(_0x50a3('0x2'));var timeout=require(_0x50a3('0x3'));var express=require(_0x50a3('0x4'));var router=express[_0x50a3('0x5')]();var fs_extra=require(_0x50a3('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x50a3('0x7'));var controller=require('./intZohoField.controller');router[_0x50a3('0x8')]('/',auth[_0x50a3('0x9')](),controller[_0x50a3('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x50a3('0xb')]);router[_0x50a3('0xc')]('/',auth[_0x50a3('0x9')](),controller[_0x50a3('0xd')]);router[_0x50a3('0xe')](_0x50a3('0xf'),auth[_0x50a3('0x9')](),controller['update']);router[_0x50a3('0x10')]('/:id',auth[_0x50a3('0x9')](),controller['destroy']);module[_0x50a3('0x11')]=router;