Built motion from commit 85f716e9.|2.6.8
[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 _0xa4ff=['exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoField.controller','get','isAuthenticated','index','/:id','put','delete'];(function(_0x61909f,_0x1afdea){var _0x4ad05e=function(_0x1380a0){while(--_0x1380a0){_0x61909f['push'](_0x61909f['shift']());}};_0x4ad05e(++_0x1afdea);}(_0xa4ff,0x121));var _0xfa4f=function(_0x10509d,_0xfbdfe0){_0x10509d=_0x10509d-0x0;var _0x486be6=_0xa4ff[_0x10509d];return _0x486be6;};'use strict';var multer=require(_0xfa4f('0x0'));var util=require(_0xfa4f('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xfa4f('0x2'));var router=express[_0xfa4f('0x3')]();var fs_extra=require(_0xfa4f('0x4'));var auth=require(_0xfa4f('0x5'));var interaction=require(_0xfa4f('0x6'));var config=require(_0xfa4f('0x7'));var controller=require(_0xfa4f('0x8'));router[_0xfa4f('0x9')]('/',auth[_0xfa4f('0xa')](),controller[_0xfa4f('0xb')]);router[_0xfa4f('0x9')](_0xfa4f('0xc'),auth[_0xfa4f('0xa')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xfa4f('0xd')](_0xfa4f('0xc'),auth[_0xfa4f('0xa')](),controller['update']);router[_0xfa4f('0xe')](_0xfa4f('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0xfa4f('0xf')]=router;