4b395f10bd31bcf15703c4144f3aa79fb44ec5db
[motion2.git] / server / api / intZendeskAccount / 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 _0x0a14=['destroy','exports','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','addConfiguration','put','update','delete'];(function(_0x36524f,_0x12e2d0){var _0x5af16f=function(_0x186bb4){while(--_0x186bb4){_0x36524f['push'](_0x36524f['shift']());}};_0x5af16f(++_0x12e2d0);}(_0x0a14,0x120));var _0x40a1=function(_0x3e9e41,_0x39aa8c){_0x3e9e41=_0x3e9e41-0x0;var _0x328172=_0x0a14[_0x3e9e41];return _0x328172;};'use strict';var multer=require(_0x40a1('0x0'));var util=require(_0x40a1('0x1'));var path=require(_0x40a1('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x40a1('0x3')]();var fs_extra=require(_0x40a1('0x4'));var auth=require(_0x40a1('0x5'));var interaction=require(_0x40a1('0x6'));var config=require(_0x40a1('0x7'));var controller=require('./intZendeskAccount.controller');router[_0x40a1('0x8')]('/',auth[_0x40a1('0x9')](),controller['index']);router[_0x40a1('0x8')](_0x40a1('0xa'),auth[_0x40a1('0x9')](),controller['show']);router[_0x40a1('0x8')](_0x40a1('0xb'),auth[_0x40a1('0x9')](),controller[_0x40a1('0xc')]);router[_0x40a1('0x8')](_0x40a1('0xd'),auth[_0x40a1('0x9')](),controller[_0x40a1('0xe')]);router[_0x40a1('0xf')]('/',auth['isAuthenticated'](),controller['create']);router[_0x40a1('0xf')]('/:id/configurations',auth[_0x40a1('0x9')](),controller[_0x40a1('0x10')]);router[_0x40a1('0x11')](_0x40a1('0xa'),auth['isAuthenticated'](),controller[_0x40a1('0x12')]);router[_0x40a1('0x13')]('/:id',auth['isAuthenticated'](),controller[_0x40a1('0x14')]);module[_0x40a1('0x15')]=router;