Built motion from commit 9d7072cc.|2.5.39
[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 _0x01b5=['path','connect-timeout','express','Router','../../components/interaction/service','./intZohoField.controller','get','isAuthenticated','index','/:id','show','post','update','delete','destroy','exports','multer','util'];(function(_0x41a806,_0x2b91a2){var _0x1c4117=function(_0x3d11fa){while(--_0x3d11fa){_0x41a806['push'](_0x41a806['shift']());}};_0x1c4117(++_0x2b91a2);}(_0x01b5,0xa0));var _0x501b=function(_0x45bfbc,_0x1ff15e){_0x45bfbc=_0x45bfbc-0x0;var _0x407018=_0x01b5[_0x45bfbc];return _0x407018;};'use strict';var multer=require(_0x501b('0x0'));var util=require(_0x501b('0x1'));var path=require(_0x501b('0x2'));var timeout=require(_0x501b('0x3'));var express=require(_0x501b('0x4'));var router=express[_0x501b('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x501b('0x6'));var config=require('../../config/environment');var controller=require(_0x501b('0x7'));router[_0x501b('0x8')]('/',auth[_0x501b('0x9')](),controller[_0x501b('0xa')]);router['get'](_0x501b('0xb'),auth[_0x501b('0x9')](),controller[_0x501b('0xc')]);router[_0x501b('0xd')]('/',auth[_0x501b('0x9')](),controller['create']);router['put'](_0x501b('0xb'),auth[_0x501b('0x9')](),controller[_0x501b('0xe')]);router[_0x501b('0xf')]('/:id',auth[_0x501b('0x9')](),controller[_0x501b('0x10')]);module[_0x501b('0x11')]=router;