Built motion from commit 497d3d92.|2.5.43
[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 _0xcdc9=['post','create','put','update','destroy','exports','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoField.controller','get','index','/:id','isAuthenticated','show'];(function(_0x5a2d95,_0xb362e5){var _0x2c3986=function(_0x5cce7c){while(--_0x5cce7c){_0x5a2d95['push'](_0x5a2d95['shift']());}};_0x2c3986(++_0xb362e5);}(_0xcdc9,0xc6));var _0x9cdc=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0xcdc9[_0xfae23b];return _0x200640;};'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['Router']();var fs_extra=require(_0x9cdc('0x0'));var auth=require(_0x9cdc('0x1'));var interaction=require(_0x9cdc('0x2'));var config=require(_0x9cdc('0x3'));var controller=require(_0x9cdc('0x4'));router[_0x9cdc('0x5')]('/',auth['isAuthenticated'](),controller[_0x9cdc('0x6')]);router[_0x9cdc('0x5')](_0x9cdc('0x7'),auth[_0x9cdc('0x8')](),controller[_0x9cdc('0x9')]);router[_0x9cdc('0xa')]('/',auth[_0x9cdc('0x8')](),controller[_0x9cdc('0xb')]);router[_0x9cdc('0xc')](_0x9cdc('0x7'),auth[_0x9cdc('0x8')](),controller[_0x9cdc('0xd')]);router['delete'](_0x9cdc('0x7'),auth[_0x9cdc('0x8')](),controller[_0x9cdc('0xe')]);module[_0x9cdc('0xf')]=router;