a09b9921252ad088a930a58cdf4e53bcdc297f4d
[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 _0x2340=['./intZohoField.controller','get','isAuthenticated','index','/:id','show','post','put','delete','destroy','exports','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x2f7ed6,_0x32d850){var _0x27fbf6=function(_0x4810fb){while(--_0x4810fb){_0x2f7ed6['push'](_0x2f7ed6['shift']());}};_0x27fbf6(++_0x32d850);}(_0x2340,0xf5));var _0x0234=function(_0x4e1abb,_0x290f95){_0x4e1abb=_0x4e1abb-0x0;var _0x1b26a7=_0x2340[_0x4e1abb];return _0x1b26a7;};'use strict';var multer=require('multer');var util=require(_0x0234('0x0'));var path=require(_0x0234('0x1'));var timeout=require('connect-timeout');var express=require(_0x0234('0x2'));var router=express[_0x0234('0x3')]();var fs_extra=require(_0x0234('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x0234('0x5'));var config=require(_0x0234('0x6'));var controller=require(_0x0234('0x7'));router[_0x0234('0x8')]('/',auth[_0x0234('0x9')](),controller[_0x0234('0xa')]);router['get'](_0x0234('0xb'),auth['isAuthenticated'](),controller[_0x0234('0xc')]);router[_0x0234('0xd')]('/',auth[_0x0234('0x9')](),controller['create']);router[_0x0234('0xe')](_0x0234('0xb'),auth['isAuthenticated'](),controller['update']);router[_0x0234('0xf')](_0x0234('0xb'),auth[_0x0234('0x9')](),controller[_0x0234('0x10')]);module[_0x0234('0x11')]=router;