c22e3fad55de13295fb7aa3b644acaed0928dce4
[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 _0x7c61=['isAuthenticated','index','get','/:id','show','post','create','update','delete','destroy','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./intZohoField.controller'];(function(_0x23154d,_0x4d195f){var _0x300430=function(_0x38300b){while(--_0x38300b){_0x23154d['push'](_0x23154d['shift']());}};_0x300430(++_0x4d195f);}(_0x7c61,0x14e));var _0x17c6=function(_0x1e752d,_0x4c6de7){_0x1e752d=_0x1e752d-0x0;var _0x1bb8ab=_0x7c61[_0x1e752d];return _0x1bb8ab;};'use strict';var multer=require(_0x17c6('0x0'));var util=require(_0x17c6('0x1'));var path=require(_0x17c6('0x2'));var timeout=require(_0x17c6('0x3'));var express=require(_0x17c6('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x17c6('0x5'));var interaction=require(_0x17c6('0x6'));var config=require('../../config/environment');var controller=require(_0x17c6('0x7'));router['get']('/',auth[_0x17c6('0x8')](),controller[_0x17c6('0x9')]);router[_0x17c6('0xa')](_0x17c6('0xb'),auth[_0x17c6('0x8')](),controller[_0x17c6('0xc')]);router[_0x17c6('0xd')]('/',auth['isAuthenticated'](),controller[_0x17c6('0xe')]);router['put']('/:id',auth[_0x17c6('0x8')](),controller[_0x17c6('0xf')]);router[_0x17c6('0x10')](_0x17c6('0xb'),auth[_0x17c6('0x8')](),controller[_0x17c6('0x11')]);module['exports']=router;