afa427b79da06597ebf79277e249d4f5448757e2
[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 _0xfccd=['/:id/fields','getFields','post','create','addConfiguration','put','update','delete','destroy','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','getConfigurations'];(function(_0x427d3a,_0x23724c){var _0xe5c521=function(_0x77b277){while(--_0x77b277){_0x427d3a['push'](_0x427d3a['shift']());}};_0xe5c521(++_0x23724c);}(_0xfccd,0xc2));var _0xdfcc=function(_0x305551,_0x868339){_0x305551=_0x305551-0x0;var _0x115ce2=_0xfccd[_0x305551];return _0x115ce2;};'use strict';var multer=require(_0xdfcc('0x0'));var util=require(_0xdfcc('0x1'));var path=require(_0xdfcc('0x2'));var timeout=require('connect-timeout');var express=require(_0xdfcc('0x3'));var router=express[_0xdfcc('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xdfcc('0x5'));var config=require(_0xdfcc('0x6'));var controller=require('./intZendeskAccount.controller');router[_0xdfcc('0x7')]('/',auth[_0xdfcc('0x8')](),controller[_0xdfcc('0x9')]);router[_0xdfcc('0x7')](_0xdfcc('0xa'),auth[_0xdfcc('0x8')](),controller[_0xdfcc('0xb')]);router['get']('/:id/configurations',auth[_0xdfcc('0x8')](),controller[_0xdfcc('0xc')]);router[_0xdfcc('0x7')](_0xdfcc('0xd'),auth[_0xdfcc('0x8')](),controller[_0xdfcc('0xe')]);router[_0xdfcc('0xf')]('/',auth[_0xdfcc('0x8')](),controller[_0xdfcc('0x10')]);router['post']('/:id/configurations',auth[_0xdfcc('0x8')](),controller[_0xdfcc('0x11')]);router[_0xdfcc('0x12')](_0xdfcc('0xa'),auth[_0xdfcc('0x8')](),controller[_0xdfcc('0x13')]);router[_0xdfcc('0x14')](_0xdfcc('0xa'),auth[_0xdfcc('0x8')](),controller[_0xdfcc('0x15')]);module[_0xdfcc('0x16')]=router;