c485897e352918275c37307186ba32fba521c55c
[motion2.git] / server / api / intZohoAccount / 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 _0xc57d=['destroy','exports','util','path','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','put','/:id','update','delete'];(function(_0x406d68,_0x39f3ee){var _0x321efe=function(_0x5f553b){while(--_0x5f553b){_0x406d68['push'](_0x406d68['shift']());}};_0x321efe(++_0x39f3ee);}(_0xc57d,0x1e6));var _0xdc57=function(_0xa350e4,_0x77dd8e){_0xa350e4=_0xa350e4-0x0;var _0x1b9b49=_0xc57d[_0xa350e4];return _0x1b9b49;};'use strict';var multer=require('multer');var util=require(_0xdc57('0x0'));var path=require(_0xdc57('0x1'));var timeout=require('connect-timeout');var express=require(_0xdc57('0x2'));var router=express[_0xdc57('0x3')]();var auth=require(_0xdc57('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xdc57('0x5'));var controller=require('./intZohoAccount.controller');router[_0xdc57('0x6')]('/',auth[_0xdc57('0x7')](),controller[_0xdc57('0x8')]);router[_0xdc57('0x6')]('/:id',auth[_0xdc57('0x7')](),controller[_0xdc57('0x9')]);router[_0xdc57('0x6')](_0xdc57('0xa'),auth[_0xdc57('0x7')](),controller[_0xdc57('0xb')]);router[_0xdc57('0x6')](_0xdc57('0xc'),auth[_0xdc57('0x7')](),controller[_0xdc57('0xd')]);router[_0xdc57('0xe')]('/',auth['isAuthenticated'](),controller[_0xdc57('0xf')]);router[_0xdc57('0xe')](_0xdc57('0xa'),auth[_0xdc57('0x7')](),controller['addConfiguration']);router[_0xdc57('0x10')](_0xdc57('0x11'),auth[_0xdc57('0x7')](),controller[_0xdc57('0x12')]);router[_0xdc57('0x13')](_0xdc57('0x11'),auth[_0xdc57('0x7')](),controller[_0xdc57('0x14')]);module[_0xdc57('0x15')]=router;