007f2036279d591e48904717b47ab3f91f1fd97e
[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 _0xf996=['/:id/descriptions','getDescriptions','update','delete','destroy','exports','multer','util','path','express','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/subjects','getSubjects'];(function(_0x5b8310,_0x77ea6f){var _0xd3ebc1=function(_0x9dfb29){while(--_0x9dfb29){_0x5b8310['push'](_0x5b8310['shift']());}};_0xd3ebc1(++_0x77ea6f);}(_0xf996,0x74));var _0x6f99=function(_0x1549bb,_0xfbc05){_0x1549bb=_0x1549bb-0x0;var _0x3b6c57=_0xf996[_0x1549bb];return _0x3b6c57;};'use strict';var multer=require(_0x6f99('0x0'));var util=require(_0x6f99('0x1'));var path=require(_0x6f99('0x2'));var timeout=require('connect-timeout');var express=require(_0x6f99('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x6f99('0x4'));var config=require(_0x6f99('0x5'));var controller=require(_0x6f99('0x6'));router[_0x6f99('0x7')]('/',auth[_0x6f99('0x8')](),controller[_0x6f99('0x9')]);router[_0x6f99('0x7')](_0x6f99('0xa'),auth[_0x6f99('0x8')](),controller[_0x6f99('0xb')]);router['get'](_0x6f99('0xc'),auth['isAuthenticated'](),controller[_0x6f99('0xd')]);router[_0x6f99('0x7')](_0x6f99('0xe'),auth[_0x6f99('0x8')](),controller[_0x6f99('0xf')]);router[_0x6f99('0x7')](_0x6f99('0x10'),auth[_0x6f99('0x8')](),controller[_0x6f99('0x11')]);router['post']('/',auth[_0x6f99('0x8')](),controller['create']);router['put']('/:id',auth[_0x6f99('0x8')](),controller[_0x6f99('0x12')]);router[_0x6f99('0x13')](_0x6f99('0xa'),auth[_0x6f99('0x8')](),controller[_0x6f99('0x14')]);module[_0x6f99('0x15')]=router;