Built motion from commit (unavailable).|2.4.18
[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 _0xb9f6=['/:id/fields','getFields','post','create','put','update','delete','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations'];(function(_0x241f64,_0x21a5b1){var _0x27dba0=function(_0x287cfd){while(--_0x287cfd){_0x241f64['push'](_0x241f64['shift']());}};_0x27dba0(++_0x21a5b1);}(_0xb9f6,0x1d6));var _0x6b9f=function(_0x2618d2,_0x31ba00){_0x2618d2=_0x2618d2-0x0;var _0x15df6a=_0xb9f6[_0x2618d2];return _0x15df6a;};'use strict';var multer=require(_0x6b9f('0x0'));var util=require('util');var path=require(_0x6b9f('0x1'));var timeout=require(_0x6b9f('0x2'));var express=require(_0x6b9f('0x3'));var router=express[_0x6b9f('0x4')]();var auth=require(_0x6b9f('0x5'));var interaction=require(_0x6b9f('0x6'));var config=require('../../config/environment');var controller=require('./intZohoAccount.controller');router[_0x6b9f('0x7')]('/',auth[_0x6b9f('0x8')](),controller['index']);router['get'](_0x6b9f('0x9'),auth[_0x6b9f('0x8')](),controller[_0x6b9f('0xa')]);router[_0x6b9f('0x7')](_0x6b9f('0xb'),auth[_0x6b9f('0x8')](),controller[_0x6b9f('0xc')]);router[_0x6b9f('0x7')](_0x6b9f('0xd'),auth[_0x6b9f('0x8')](),controller[_0x6b9f('0xe')]);router[_0x6b9f('0xf')]('/',auth[_0x6b9f('0x8')](),controller[_0x6b9f('0x10')]);router[_0x6b9f('0xf')](_0x6b9f('0xb'),auth['isAuthenticated'](),controller['addConfiguration']);router[_0x6b9f('0x11')]('/:id',auth[_0x6b9f('0x8')](),controller[_0x6b9f('0x12')]);router[_0x6b9f('0x13')](_0x6b9f('0x9'),auth[_0x6b9f('0x8')](),controller['destroy']);module[_0x6b9f('0x14')]=router;