Built motion from commit (unavailable).|2.5.26
[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 _0xa846=['../../config/environment','get','isAuthenticated','index','post','create','/:id','update','delete','destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service'];(function(_0x589248,_0x31dea3){var _0x486750=function(_0x3e7c21){while(--_0x3e7c21){_0x589248['push'](_0x589248['shift']());}};_0x486750(++_0x31dea3);}(_0xa846,0x70));var _0x6a84=function(_0x11dc88,_0x2416fe){_0x11dc88=_0x11dc88-0x0;var _0x5c8870=_0xa846[_0x11dc88];return _0x5c8870;};'use strict';var multer=require('multer');var util=require(_0x6a84('0x0'));var path=require(_0x6a84('0x1'));var timeout=require(_0x6a84('0x2'));var express=require(_0x6a84('0x3'));var router=express[_0x6a84('0x4')]();var fs_extra=require(_0x6a84('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x6a84('0x6'));var config=require(_0x6a84('0x7'));var controller=require('./intZohoField.controller');router[_0x6a84('0x8')]('/',auth[_0x6a84('0x9')](),controller[_0x6a84('0xa')]);router[_0x6a84('0x8')]('/:id',auth[_0x6a84('0x9')](),controller['show']);router[_0x6a84('0xb')]('/',auth['isAuthenticated'](),controller[_0x6a84('0xc')]);router['put'](_0x6a84('0xd'),auth[_0x6a84('0x9')](),controller[_0x6a84('0xe')]);router[_0x6a84('0xf')](_0x6a84('0xd'),auth[_0x6a84('0x9')](),controller[_0x6a84('0x10')]);module['exports']=router;