Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / intZohoConfiguration / 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 _0x076f=['put','delete','destroy','exports','multer','express','fs-extra','../../components/auth/service','./intZohoConfiguration.controller','get','isAuthenticated','/:id','show','/:id/fields','getFields','getDescriptions','post','create'];(function(_0x205921,_0x5607e7){var _0x50f162=function(_0x5c4d64){while(--_0x5c4d64){_0x205921['push'](_0x205921['shift']());}};_0x50f162(++_0x5607e7);}(_0x076f,0x16c));var _0xf076=function(_0x5d082a,_0x4aa33f){_0x5d082a=_0x5d082a-0x0;var _0xebd7f4=_0x076f[_0x5d082a];return _0xebd7f4;};'use strict';var multer=require(_0xf076('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xf076('0x1'));var router=express['Router']();var fs_extra=require(_0xf076('0x2'));var auth=require(_0xf076('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xf076('0x4'));router[_0xf076('0x5')]('/',auth[_0xf076('0x6')](),controller['index']);router[_0xf076('0x5')](_0xf076('0x7'),auth[_0xf076('0x6')](),controller[_0xf076('0x8')]);router[_0xf076('0x5')](_0xf076('0x9'),auth[_0xf076('0x6')](),controller[_0xf076('0xa')]);router[_0xf076('0x5')]('/:id/subjects',auth[_0xf076('0x6')](),controller['getSubjects']);router[_0xf076('0x5')]('/:id/descriptions',auth[_0xf076('0x6')](),controller[_0xf076('0xb')]);router[_0xf076('0xc')]('/',auth[_0xf076('0x6')](),controller[_0xf076('0xd')]);router[_0xf076('0xe')](_0xf076('0x7'),auth[_0xf076('0x6')](),controller['update']);router[_0xf076('0xf')](_0xf076('0x7'),auth[_0xf076('0x6')](),controller[_0xf076('0x10')]);module[_0xf076('0x11')]=router;