52a2664fa4fe87835a801a54e92e7a7a53a34245
[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 _0x9a21=['update','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intZohoField.controller','get','isAuthenticated','index','/:id','post','create'];(function(_0x79cd47,_0x16102d){var _0x3b9484=function(_0x23db95){while(--_0x23db95){_0x79cd47['push'](_0x79cd47['shift']());}};_0x3b9484(++_0x16102d);}(_0x9a21,0x151));var _0x19a2=function(_0x3c40f4,_0x500b8a){_0x3c40f4=_0x3c40f4-0x0;var _0x1209d=_0x9a21[_0x3c40f4];return _0x1209d;};'use strict';var multer=require('multer');var util=require(_0x19a2('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x19a2('0x1'));var router=express[_0x19a2('0x2')]();var fs_extra=require(_0x19a2('0x3'));var auth=require(_0x19a2('0x4'));var interaction=require(_0x19a2('0x5'));var config=require('../../config/environment');var controller=require(_0x19a2('0x6'));router[_0x19a2('0x7')]('/',auth[_0x19a2('0x8')](),controller[_0x19a2('0x9')]);router[_0x19a2('0x7')](_0x19a2('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x19a2('0xb')]('/',auth['isAuthenticated'](),controller[_0x19a2('0xc')]);router['put'](_0x19a2('0xa'),auth[_0x19a2('0x8')](),controller[_0x19a2('0xd')]);router['delete'](_0x19a2('0xa'),auth[_0x19a2('0x8')](),controller['destroy']);module['exports']=router;