12f3336a5bead525d4e0baeeb4bd9b160fa8af3a
[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 _0x6e8b=['put','update','delete','destroy','exports','multer','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoField.controller','get','isAuthenticated','index','/:id','show','create'];(function(_0x14cc68,_0x3fd7fb){var _0x20a0d3=function(_0x6e8232){while(--_0x6e8232){_0x14cc68['push'](_0x14cc68['shift']());}};_0x20a0d3(++_0x3fd7fb);}(_0x6e8b,0x109));var _0xb6e8=function(_0xfaddc9,_0x5c9ad2){_0xfaddc9=_0xfaddc9-0x0;var _0x579846=_0x6e8b[_0xfaddc9];return _0x579846;};'use strict';var multer=require(_0xb6e8('0x0'));var util=require('util');var path=require(_0xb6e8('0x1'));var timeout=require(_0xb6e8('0x2'));var express=require(_0xb6e8('0x3'));var router=express['Router']();var fs_extra=require(_0xb6e8('0x4'));var auth=require(_0xb6e8('0x5'));var interaction=require(_0xb6e8('0x6'));var config=require(_0xb6e8('0x7'));var controller=require(_0xb6e8('0x8'));router[_0xb6e8('0x9')]('/',auth[_0xb6e8('0xa')](),controller[_0xb6e8('0xb')]);router[_0xb6e8('0x9')](_0xb6e8('0xc'),auth[_0xb6e8('0xa')](),controller[_0xb6e8('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb6e8('0xe')]);router[_0xb6e8('0xf')](_0xb6e8('0xc'),auth['isAuthenticated'](),controller[_0xb6e8('0x10')]);router[_0xb6e8('0x11')](_0xb6e8('0xc'),auth[_0xb6e8('0xa')](),controller[_0xb6e8('0x12')]);module[_0xb6e8('0x13')]=router;