c4eaba8f62be5340c1be9ed88e5aca7247e051e8
[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 _0x28ff=['destroy','exports','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./intZendeskAccount.controller','index','get','/:id','show','/:id/configurations','isAuthenticated','getConfigurations','post','put','update'];(function(_0x54ca51,_0x450937){var _0x5da6e5=function(_0x1e0f2a){while(--_0x1e0f2a){_0x54ca51['push'](_0x54ca51['shift']());}};_0x5da6e5(++_0x450937);}(_0x28ff,0x7a));var _0xf28f=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0x28ff[_0x3ab51d];return _0x29a04e;};'use strict';var multer=require('multer');var util=require(_0xf28f('0x0'));var path=require(_0xf28f('0x1'));var timeout=require(_0xf28f('0x2'));var express=require('express');var router=express[_0xf28f('0x3')]();var fs_extra=require(_0xf28f('0x4'));var auth=require(_0xf28f('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xf28f('0x6'));var controller=require(_0xf28f('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xf28f('0x8')]);router[_0xf28f('0x9')](_0xf28f('0xa'),auth['isAuthenticated'](),controller[_0xf28f('0xb')]);router['get'](_0xf28f('0xc'),auth[_0xf28f('0xd')](),controller[_0xf28f('0xe')]);router['get']('/:id/fields',auth[_0xf28f('0xd')](),controller['getFields']);router[_0xf28f('0xf')]('/',auth[_0xf28f('0xd')](),controller['create']);router[_0xf28f('0xf')]('/:id/configurations',auth[_0xf28f('0xd')](),controller['addConfiguration']);router[_0xf28f('0x10')](_0xf28f('0xa'),auth[_0xf28f('0xd')](),controller[_0xf28f('0x11')]);router['delete'](_0xf28f('0xa'),auth[_0xf28f('0xd')](),controller[_0xf28f('0x12')]);module[_0xf28f('0x13')]=router;