Built motion from commit 936e8062.|2.5.33
[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 _0x1b13=['/:id/configurations','getConfigurations','post','create','put','update','delete','destroy','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intZohoAccount.controller','index','get','/:id','isAuthenticated','show'];(function(_0x15a3cc,_0x1b31d3){var _0x644834=function(_0x5ad7b1){while(--_0x5ad7b1){_0x15a3cc['push'](_0x15a3cc['shift']());}};_0x644834(++_0x1b31d3);}(_0x1b13,0xc6));var _0x31b1=function(_0x3d4377,_0x7cd0ba){_0x3d4377=_0x3d4377-0x0;var _0x49ede2=_0x1b13[_0x3d4377];return _0x49ede2;};'use strict';var multer=require('multer');var util=require(_0x31b1('0x0'));var path=require('path');var timeout=require(_0x31b1('0x1'));var express=require(_0x31b1('0x2'));var router=express[_0x31b1('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x31b1('0x4'));var interaction=require(_0x31b1('0x5'));var config=require('../../config/environment');var controller=require(_0x31b1('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x31b1('0x7')]);router[_0x31b1('0x8')](_0x31b1('0x9'),auth[_0x31b1('0xa')](),controller[_0x31b1('0xb')]);router[_0x31b1('0x8')](_0x31b1('0xc'),auth[_0x31b1('0xa')](),controller[_0x31b1('0xd')]);router[_0x31b1('0x8')]('/:id/fields',auth['isAuthenticated'](),controller['getFields']);router[_0x31b1('0xe')]('/',auth[_0x31b1('0xa')](),controller[_0x31b1('0xf')]);router[_0x31b1('0xe')](_0x31b1('0xc'),auth[_0x31b1('0xa')](),controller['addConfiguration']);router[_0x31b1('0x10')](_0x31b1('0x9'),auth[_0x31b1('0xa')](),controller[_0x31b1('0x11')]);router[_0x31b1('0x12')](_0x31b1('0x9'),auth[_0x31b1('0xa')](),controller[_0x31b1('0x13')]);module[_0x31b1('0x14')]=router;