Built motion from commit (unavailable).|2.5.12
[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 _0x6343=['./intZohoField.controller','isAuthenticated','index','/:id','create','put','update','destroy','path','connect-timeout','../../config/environment'];(function(_0xc15ff7,_0x35381a){var _0x5330de=function(_0x4fa7b3){while(--_0x4fa7b3){_0xc15ff7['push'](_0xc15ff7['shift']());}};_0x5330de(++_0x35381a);}(_0x6343,0x168));var _0x3634=function(_0x543701,_0x6c8dc0){_0x543701=_0x543701-0x0;var _0x1775da=_0x6343[_0x543701];return _0x1775da;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x3634('0x0'));var timeout=require(_0x3634('0x1'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3634('0x2'));var controller=require(_0x3634('0x3'));router['get']('/',auth[_0x3634('0x4')](),controller[_0x3634('0x5')]);router['get'](_0x3634('0x6'),auth[_0x3634('0x4')](),controller['show']);router['post']('/',auth[_0x3634('0x4')](),controller[_0x3634('0x7')]);router[_0x3634('0x8')](_0x3634('0x6'),auth[_0x3634('0x4')](),controller[_0x3634('0x9')]);router['delete']('/:id',auth[_0x3634('0x4')](),controller[_0x3634('0xa')]);module['exports']=router;