1867be890ffed2a95a597cb0f144e5d98843c8c2
[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 _0xe444=['delete','destroy','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoField.controller','get','isAuthenticated','index','/:id','show','post','create','put','update'];(function(_0x40a722,_0x3aab57){var _0x3c483a=function(_0x35fdc1){while(--_0x35fdc1){_0x40a722['push'](_0x40a722['shift']());}};_0x3c483a(++_0x3aab57);}(_0xe444,0x12f));var _0x4e44=function(_0x1fd0bc,_0x1bdd69){_0x1fd0bc=_0x1fd0bc-0x0;var _0x477512=_0xe444[_0x1fd0bc];return _0x477512;};'use strict';var multer=require(_0x4e44('0x0'));var util=require(_0x4e44('0x1'));var path=require(_0x4e44('0x2'));var timeout=require('connect-timeout');var express=require(_0x4e44('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x4e44('0x4'));var interaction=require(_0x4e44('0x5'));var config=require(_0x4e44('0x6'));var controller=require(_0x4e44('0x7'));router[_0x4e44('0x8')]('/',auth[_0x4e44('0x9')](),controller[_0x4e44('0xa')]);router['get'](_0x4e44('0xb'),auth[_0x4e44('0x9')](),controller[_0x4e44('0xc')]);router[_0x4e44('0xd')]('/',auth[_0x4e44('0x9')](),controller[_0x4e44('0xe')]);router[_0x4e44('0xf')](_0x4e44('0xb'),auth['isAuthenticated'](),controller[_0x4e44('0x10')]);router[_0x4e44('0x11')](_0x4e44('0xb'),auth[_0x4e44('0x9')](),controller[_0x4e44('0x12')]);module[_0x4e44('0x13')]=router;