12f6a241c3b0f15e8d76691f10c7230fc1af7218
[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 _0x222c=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','post','create','update','delete','destroy','exports','multer','util','path'];(function(_0x38b817,_0x14f0c3){var _0x207922=function(_0x4d8515){while(--_0x4d8515){_0x38b817['push'](_0x38b817['shift']());}};_0x207922(++_0x14f0c3);}(_0x222c,0x1d8));var _0xc222=function(_0x4af77a,_0xfebfbd){_0x4af77a=_0x4af77a-0x0;var _0x4137de=_0x222c[_0x4af77a];return _0x4137de;};'use strict';var multer=require(_0xc222('0x0'));var util=require(_0xc222('0x1'));var path=require(_0xc222('0x2'));var timeout=require(_0xc222('0x3'));var express=require(_0xc222('0x4'));var router=express[_0xc222('0x5')]();var fs_extra=require(_0xc222('0x6'));var auth=require(_0xc222('0x7'));var interaction=require(_0xc222('0x8'));var config=require(_0xc222('0x9'));var controller=require('./intZohoField.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xc222('0xa')](_0xc222('0xb'),auth[_0xc222('0xc')](),controller['show']);router[_0xc222('0xd')]('/',auth[_0xc222('0xc')](),controller[_0xc222('0xe')]);router['put'](_0xc222('0xb'),auth[_0xc222('0xc')](),controller[_0xc222('0xf')]);router[_0xc222('0x10')](_0xc222('0xb'),auth[_0xc222('0xc')](),controller[_0xc222('0x11')]);module[_0xc222('0x12')]=router;