Built motion from commit 9e1399f3.|2.5.37
[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 _0x8d2f=['destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','get','index','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','post','create','put','update','delete','/:id'];(function(_0x363b81,_0x81e6ca){var _0x1d92fb=function(_0x129644){while(--_0x129644){_0x363b81['push'](_0x363b81['shift']());}};_0x1d92fb(++_0x81e6ca);}(_0x8d2f,0x8c));var _0xf8d2=function(_0x50bc27,_0x2b4f1b){_0x50bc27=_0x50bc27-0x0;var _0xb75d73=_0x8d2f[_0x50bc27];return _0xb75d73;};'use strict';var multer=require(_0xf8d2('0x0'));var util=require(_0xf8d2('0x1'));var path=require('path');var timeout=require(_0xf8d2('0x2'));var express=require(_0xf8d2('0x3'));var router=express[_0xf8d2('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xf8d2('0x5'));var config=require(_0xf8d2('0x6'));var controller=require(_0xf8d2('0x7'));router[_0xf8d2('0x8')]('/',auth['isAuthenticated'](),controller[_0xf8d2('0x9')]);router[_0xf8d2('0x8')]('/:id',auth[_0xf8d2('0xa')](),controller[_0xf8d2('0xb')]);router[_0xf8d2('0x8')](_0xf8d2('0xc'),auth[_0xf8d2('0xa')](),controller[_0xf8d2('0xd')]);router[_0xf8d2('0x8')](_0xf8d2('0xe'),auth[_0xf8d2('0xa')](),controller['getFields']);router[_0xf8d2('0xf')]('/',auth[_0xf8d2('0xa')](),controller[_0xf8d2('0x10')]);router[_0xf8d2('0xf')](_0xf8d2('0xc'),auth[_0xf8d2('0xa')](),controller['addConfiguration']);router[_0xf8d2('0x11')]('/:id',auth[_0xf8d2('0xa')](),controller[_0xf8d2('0x12')]);router[_0xf8d2('0x13')](_0xf8d2('0x14'),auth[_0xf8d2('0xa')](),controller[_0xf8d2('0x15')]);module[_0xf8d2('0x16')]=router;