Built motion from commit (unavailable).|2.5.14
[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 _0xb44a=['update','exports','path','express','../../components/interaction/service','./intZohoField.controller','get','isAuthenticated','index','/:id','show','post','create','put'];(function(_0x58c2f7,_0x30828a){var _0x585139=function(_0x41b96f){while(--_0x41b96f){_0x58c2f7['push'](_0x58c2f7['shift']());}};_0x585139(++_0x30828a);}(_0xb44a,0x1c2));var _0xab44=function(_0x158f01,_0x12af3e){_0x158f01=_0x158f01-0x0;var _0x5ef74e=_0xb44a[_0x158f01];return _0x5ef74e;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xab44('0x0'));var timeout=require('connect-timeout');var express=require(_0xab44('0x1'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xab44('0x2'));var config=require('../../config/environment');var controller=require(_0xab44('0x3'));router[_0xab44('0x4')]('/',auth[_0xab44('0x5')](),controller[_0xab44('0x6')]);router[_0xab44('0x4')](_0xab44('0x7'),auth[_0xab44('0x5')](),controller[_0xab44('0x8')]);router[_0xab44('0x9')]('/',auth[_0xab44('0x5')](),controller[_0xab44('0xa')]);router[_0xab44('0xb')](_0xab44('0x7'),auth['isAuthenticated'](),controller[_0xab44('0xc')]);router['delete'](_0xab44('0x7'),auth['isAuthenticated'](),controller['destroy']);module[_0xab44('0xd')]=router;