Built motion from commit 5b761a7b.|2.5.36
[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 _0xda98=['path','connect-timeout','express','fs-extra','../../components/interaction/service','./intZohoField.controller','get','isAuthenticated','index','post','create','put','/:id','delete','destroy','exports','multer'];(function(_0x107136,_0x3f11fa){var _0x4c3f50=function(_0x5ab847){while(--_0x5ab847){_0x107136['push'](_0x107136['shift']());}};_0x4c3f50(++_0x3f11fa);}(_0xda98,0x186));var _0x8da9=function(_0x70fd53,_0x2a95a6){_0x70fd53=_0x70fd53-0x0;var _0x4b71c5=_0xda98[_0x70fd53];return _0x4b71c5;};'use strict';var multer=require(_0x8da9('0x0'));var util=require('util');var path=require(_0x8da9('0x1'));var timeout=require(_0x8da9('0x2'));var express=require(_0x8da9('0x3'));var router=express['Router']();var fs_extra=require(_0x8da9('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x8da9('0x5'));var config=require('../../config/environment');var controller=require(_0x8da9('0x6'));router[_0x8da9('0x7')]('/',auth[_0x8da9('0x8')](),controller[_0x8da9('0x9')]);router[_0x8da9('0x7')]('/:id',auth[_0x8da9('0x8')](),controller['show']);router[_0x8da9('0xa')]('/',auth[_0x8da9('0x8')](),controller[_0x8da9('0xb')]);router[_0x8da9('0xc')](_0x8da9('0xd'),auth[_0x8da9('0x8')](),controller['update']);router[_0x8da9('0xe')]('/:id',auth[_0x8da9('0x8')](),controller[_0x8da9('0xf')]);module[_0x8da9('0x10')]=router;