99c32b151f6771a665e0581f9c3df3ccdcb814f3
[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 _0x3475=['index','/:id','show','/:id/configurations','getConfigurations','getFields','post','create','addConfiguration','update','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x4d5258,_0x714f9a){var _0x56243f=function(_0x1bce0c){while(--_0x1bce0c){_0x4d5258['push'](_0x4d5258['shift']());}};_0x56243f(++_0x714f9a);}(_0x3475,0xbc));var _0x5347=function(_0x1d525f,_0x11f83a){_0x1d525f=_0x1d525f-0x0;var _0x1983c5=_0x3475[_0x1d525f];return _0x1983c5;};'use strict';var multer=require(_0x5347('0x0'));var util=require(_0x5347('0x1'));var path=require(_0x5347('0x2'));var timeout=require(_0x5347('0x3'));var express=require('express');var router=express[_0x5347('0x4')]();var fs_extra=require(_0x5347('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x5347('0x6'));var config=require(_0x5347('0x7'));var controller=require('./intZendeskAccount.controller');router[_0x5347('0x8')]('/',auth[_0x5347('0x9')](),controller[_0x5347('0xa')]);router[_0x5347('0x8')](_0x5347('0xb'),auth['isAuthenticated'](),controller[_0x5347('0xc')]);router[_0x5347('0x8')](_0x5347('0xd'),auth[_0x5347('0x9')](),controller[_0x5347('0xe')]);router['get']('/:id/fields',auth[_0x5347('0x9')](),controller[_0x5347('0xf')]);router[_0x5347('0x10')]('/',auth[_0x5347('0x9')](),controller[_0x5347('0x11')]);router['post'](_0x5347('0xd'),auth['isAuthenticated'](),controller[_0x5347('0x12')]);router['put']('/:id',auth[_0x5347('0x9')](),controller[_0x5347('0x13')]);router['delete'](_0x5347('0xb'),auth[_0x5347('0x9')](),controller[_0x5347('0x14')]);module[_0x5347('0x15')]=router;