Built motion from commit 598073ad.|2.5.44
[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 _0x496b=['delete','destroy','exports','util','Router','fs-extra','../../components/interaction/service','../../config/environment','./intZohoField.controller','get','isAuthenticated','show','post','put','/:id'];(function(_0x3a9d05,_0x357323){var _0x42b9cc=function(_0x1b18a0){while(--_0x1b18a0){_0x3a9d05['push'](_0x3a9d05['shift']());}};_0x42b9cc(++_0x357323);}(_0x496b,0x13e));var _0xb496=function(_0x10d34b,_0x4fef76){_0x10d34b=_0x10d34b-0x0;var _0x92b0bf=_0x496b[_0x10d34b];return _0x92b0bf;};'use strict';var multer=require('multer');var util=require(_0xb496('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb496('0x1')]();var fs_extra=require(_0xb496('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0xb496('0x3'));var config=require(_0xb496('0x4'));var controller=require(_0xb496('0x5'));router[_0xb496('0x6')]('/',auth[_0xb496('0x7')](),controller['index']);router[_0xb496('0x6')]('/:id',auth[_0xb496('0x7')](),controller[_0xb496('0x8')]);router[_0xb496('0x9')]('/',auth[_0xb496('0x7')](),controller['create']);router[_0xb496('0xa')](_0xb496('0xb'),auth[_0xb496('0x7')](),controller['update']);router[_0xb496('0xc')]('/:id',auth[_0xb496('0x7')](),controller[_0xb496('0xd')]);module[_0xb496('0xe')]=router;