Built motion from commit 10af8726.|2.6.34
[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 _0xa0f8=['get','isAuthenticated','index','/:id','show','post','put','update','delete','destroy','exports','util','path','express','Router','fs-extra','../../config/environment','./intZohoField.controller'];(function(_0x67098f,_0x55e2d0){var _0x4cf120=function(_0x3a442f){while(--_0x3a442f){_0x67098f['push'](_0x67098f['shift']());}};_0x4cf120(++_0x55e2d0);}(_0xa0f8,0x1cd));var _0x8a0f=function(_0x119705,_0xba9427){_0x119705=_0x119705-0x0;var _0x2affc2=_0xa0f8[_0x119705];return _0x2affc2;};'use strict';var multer=require('multer');var util=require(_0x8a0f('0x0'));var path=require(_0x8a0f('0x1'));var timeout=require('connect-timeout');var express=require(_0x8a0f('0x2'));var router=express[_0x8a0f('0x3')]();var fs_extra=require(_0x8a0f('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8a0f('0x5'));var controller=require(_0x8a0f('0x6'));router[_0x8a0f('0x7')]('/',auth[_0x8a0f('0x8')](),controller[_0x8a0f('0x9')]);router[_0x8a0f('0x7')](_0x8a0f('0xa'),auth['isAuthenticated'](),controller[_0x8a0f('0xb')]);router[_0x8a0f('0xc')]('/',auth[_0x8a0f('0x8')](),controller['create']);router[_0x8a0f('0xd')]('/:id',auth[_0x8a0f('0x8')](),controller[_0x8a0f('0xe')]);router[_0x8a0f('0xf')](_0x8a0f('0xa'),auth[_0x8a0f('0x8')](),controller[_0x8a0f('0x10')]);module[_0x8a0f('0x11')]=router;