Built motion from commit (unavailable).|2.5.31
[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 _0x3f72=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','create','put','update','destroy','multer','util','path','Router','fs-extra'];(function(_0x464f5d,_0x163475){var _0x2605a8=function(_0x46be95){while(--_0x46be95){_0x464f5d['push'](_0x464f5d['shift']());}};_0x2605a8(++_0x163475);}(_0x3f72,0xaf));var _0x23f7=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3f72[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x23f7('0x0'));var util=require(_0x23f7('0x1'));var path=require(_0x23f7('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x23f7('0x3')]();var fs_extra=require(_0x23f7('0x4'));var auth=require(_0x23f7('0x5'));var interaction=require(_0x23f7('0x6'));var config=require(_0x23f7('0x7'));var controller=require('./intZohoField.controller');router[_0x23f7('0x8')]('/',auth['isAuthenticated'](),controller[_0x23f7('0x9')]);router['get'](_0x23f7('0xa'),auth[_0x23f7('0xb')](),controller[_0x23f7('0xc')]);router[_0x23f7('0xd')]('/',auth[_0x23f7('0xb')](),controller[_0x23f7('0xe')]);router[_0x23f7('0xf')](_0x23f7('0xa'),auth[_0x23f7('0xb')](),controller[_0x23f7('0x10')]);router['delete'](_0x23f7('0xa'),auth[_0x23f7('0xb')](),controller[_0x23f7('0x11')]);module['exports']=router;