730f38644b611109c8cfddfd81400c1ee73767dc
[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 _0xfd68=['express','../../components/auth/service','./intZohoConfiguration.controller','get','isAuthenticated','index','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','/:id','delete','destroy','util','path','connect-timeout'];(function(_0x5d7a55,_0x1b8d3f){var _0x2f3c27=function(_0x4f9c8a){while(--_0x4f9c8a){_0x5d7a55['push'](_0x5d7a55['shift']());}};_0x2f3c27(++_0x1b8d3f);}(_0xfd68,0xd9));var _0x8fd6=function(_0xee06c6,_0x544866){_0xee06c6=_0xee06c6-0x0;var _0x2dbf78=_0xfd68[_0xee06c6];return _0x2dbf78;};'use strict';var multer=require('multer');var util=require(_0x8fd6('0x0'));var path=require(_0x8fd6('0x1'));var timeout=require(_0x8fd6('0x2'));var express=require(_0x8fd6('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x8fd6('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x8fd6('0x5'));router[_0x8fd6('0x6')]('/',auth[_0x8fd6('0x7')](),controller[_0x8fd6('0x8')]);router[_0x8fd6('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x8fd6('0x9')]);router[_0x8fd6('0x6')](_0x8fd6('0xa'),auth[_0x8fd6('0x7')](),controller[_0x8fd6('0xb')]);router['get'](_0x8fd6('0xc'),auth['isAuthenticated'](),controller[_0x8fd6('0xd')]);router[_0x8fd6('0x6')](_0x8fd6('0xe'),auth[_0x8fd6('0x7')](),controller[_0x8fd6('0xf')]);router[_0x8fd6('0x10')]('/',auth[_0x8fd6('0x7')](),controller[_0x8fd6('0x11')]);router[_0x8fd6('0x12')](_0x8fd6('0x13'),auth['isAuthenticated'](),controller['update']);router[_0x8fd6('0x14')](_0x8fd6('0x13'),auth[_0x8fd6('0x7')](),controller[_0x8fd6('0x15')]);module['exports']=router;