Built motion from commit (unavailable).|2.5.10
[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 _0x565c=['isAuthenticated','index','/:id','/:id/configurations','getConfigurations','getFields','post','create','addConfiguration','put','update','delete','destroy','exports','path','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x4891da,_0x4d6eec){var _0x14f9cd=function(_0x2bca44){while(--_0x2bca44){_0x4891da['push'](_0x4891da['shift']());}};_0x14f9cd(++_0x4d6eec);}(_0x565c,0xa6));var _0xc565=function(_0x40fb7a,_0x2270ba){_0x40fb7a=_0x40fb7a-0x0;var _0xe111e2=_0x565c[_0x40fb7a];return _0xe111e2;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xc565('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0xc565('0x1'));var interaction=require(_0xc565('0x2'));var config=require(_0xc565('0x3'));var controller=require('./intZohoAccount.controller');router[_0xc565('0x4')]('/',auth[_0xc565('0x5')](),controller[_0xc565('0x6')]);router[_0xc565('0x4')](_0xc565('0x7'),auth[_0xc565('0x5')](),controller['show']);router[_0xc565('0x4')](_0xc565('0x8'),auth[_0xc565('0x5')](),controller[_0xc565('0x9')]);router['get']('/:id/fields',auth[_0xc565('0x5')](),controller[_0xc565('0xa')]);router[_0xc565('0xb')]('/',auth[_0xc565('0x5')](),controller[_0xc565('0xc')]);router['post'](_0xc565('0x8'),auth['isAuthenticated'](),controller[_0xc565('0xd')]);router[_0xc565('0xe')](_0xc565('0x7'),auth[_0xc565('0x5')](),controller[_0xc565('0xf')]);router[_0xc565('0x10')](_0xc565('0x7'),auth[_0xc565('0x5')](),controller[_0xc565('0x11')]);module[_0xc565('0x12')]=router;