028d93e69d3e81cefd965a9402e35c2e7a338652
[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 _0x7e47=['isAuthenticated','/:id','show','getConfigurations','/:id/fields','getFields','create','/:id/configurations','addConfiguration','put','delete','destroy','exports','util','path','connect-timeout','express','Router','../../config/environment','get'];(function(_0x1cf9c3,_0x134961){var _0x2fa596=function(_0x1b8c4c){while(--_0x1b8c4c){_0x1cf9c3['push'](_0x1cf9c3['shift']());}};_0x2fa596(++_0x134961);}(_0x7e47,0x19d));var _0x77e4=function(_0x14a197,_0x1356d1){_0x14a197=_0x14a197-0x0;var _0x7dd648=_0x7e47[_0x14a197];return _0x7dd648;};'use strict';var multer=require('multer');var util=require(_0x77e4('0x0'));var path=require(_0x77e4('0x1'));var timeout=require(_0x77e4('0x2'));var express=require(_0x77e4('0x3'));var router=express[_0x77e4('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x77e4('0x5'));var controller=require('./intZendeskAccount.controller');router[_0x77e4('0x6')]('/',auth[_0x77e4('0x7')](),controller['index']);router['get'](_0x77e4('0x8'),auth[_0x77e4('0x7')](),controller[_0x77e4('0x9')]);router[_0x77e4('0x6')]('/:id/configurations',auth[_0x77e4('0x7')](),controller[_0x77e4('0xa')]);router['get'](_0x77e4('0xb'),auth[_0x77e4('0x7')](),controller[_0x77e4('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x77e4('0xd')]);router['post'](_0x77e4('0xe'),auth[_0x77e4('0x7')](),controller[_0x77e4('0xf')]);router[_0x77e4('0x10')](_0x77e4('0x8'),auth[_0x77e4('0x7')](),controller['update']);router[_0x77e4('0x11')](_0x77e4('0x8'),auth['isAuthenticated'](),controller[_0x77e4('0x12')]);module[_0x77e4('0x13')]=router;