1406a93ed79a03af2576f008cecb5f982b127ae4
[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 _0x2e30=['delete','destroy','exports','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoField.controller','isAuthenticated','get','post','create','put','/:id','update'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0x2e30,0x1e3));var _0x02e3=function(_0x5203e7,_0x432573){_0x5203e7=_0x5203e7-0x0;var _0x4f715e=_0x2e30[_0x5203e7];return _0x4f715e;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x02e3('0x0')]();var auth=require(_0x02e3('0x1'));var interaction=require(_0x02e3('0x2'));var config=require(_0x02e3('0x3'));var controller=require(_0x02e3('0x4'));router['get']('/',auth[_0x02e3('0x5')](),controller['index']);router[_0x02e3('0x6')]('/:id',auth[_0x02e3('0x5')](),controller['show']);router[_0x02e3('0x7')]('/',auth['isAuthenticated'](),controller[_0x02e3('0x8')]);router[_0x02e3('0x9')](_0x02e3('0xa'),auth[_0x02e3('0x5')](),controller[_0x02e3('0xb')]);router[_0x02e3('0xc')](_0x02e3('0xa'),auth[_0x02e3('0x5')](),controller[_0x02e3('0xd')]);module[_0x02e3('0xe')]=router;