920c7b1a2a84482cb6f84cc16f18d875066066f8
[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 _0xdd27=['create','put','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../config/environment','./intZohoField.controller','isAuthenticated','get','/:id','show','post'];(function(_0xfbe06e,_0x2fb7ab){var _0x24e5b6=function(_0x48569f){while(--_0x48569f){_0xfbe06e['push'](_0xfbe06e['shift']());}};_0x24e5b6(++_0x2fb7ab);}(_0xdd27,0x114));var _0x7dd2=function(_0x5c8827,_0x5bc5d7){_0x5c8827=_0x5c8827-0x0;var _0x50ffd5=_0xdd27[_0x5c8827];return _0x50ffd5;};'use strict';var multer=require(_0x7dd2('0x0'));var util=require(_0x7dd2('0x1'));var path=require('path');var timeout=require(_0x7dd2('0x2'));var express=require(_0x7dd2('0x3'));var router=express[_0x7dd2('0x4')]();var fs_extra=require(_0x7dd2('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7dd2('0x6'));var controller=require(_0x7dd2('0x7'));router['get']('/',auth[_0x7dd2('0x8')](),controller['index']);router[_0x7dd2('0x9')](_0x7dd2('0xa'),auth[_0x7dd2('0x8')](),controller[_0x7dd2('0xb')]);router[_0x7dd2('0xc')]('/',auth[_0x7dd2('0x8')](),controller[_0x7dd2('0xd')]);router[_0x7dd2('0xe')](_0x7dd2('0xa'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x7dd2('0xf')]);module[_0x7dd2('0x10')]=router;