4eabf0e0ed785e36b22559d80dfcc15805c0110d
[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 _0x0b97=['util','path','connect-timeout','express','../../components/interaction/service','./intZohoField.controller','get','index','isAuthenticated','post','put','/:id','update','delete','exports','multer'];(function(_0x2f54ff,_0x1d6724){var _0x1d4244=function(_0x15c4c7){while(--_0x15c4c7){_0x2f54ff['push'](_0x2f54ff['shift']());}};_0x1d4244(++_0x1d6724);}(_0x0b97,0x13f));var _0x70b9=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0x0b97[_0x3947c9];return _0x2e7871;};'use strict';var multer=require(_0x70b9('0x0'));var util=require(_0x70b9('0x1'));var path=require(_0x70b9('0x2'));var timeout=require(_0x70b9('0x3'));var express=require(_0x70b9('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x70b9('0x5'));var config=require('../../config/environment');var controller=require(_0x70b9('0x6'));router[_0x70b9('0x7')]('/',auth['isAuthenticated'](),controller[_0x70b9('0x8')]);router[_0x70b9('0x7')]('/:id',auth[_0x70b9('0x9')](),controller['show']);router[_0x70b9('0xa')]('/',auth[_0x70b9('0x9')](),controller['create']);router[_0x70b9('0xb')](_0x70b9('0xc'),auth[_0x70b9('0x9')](),controller[_0x70b9('0xd')]);router[_0x70b9('0xe')](_0x70b9('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0x70b9('0xf')]=router;