76df7f367ddcb325d9198acc14af70e938afa321
[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 _0xaec7=['exports','multer','path','connect-timeout','express','fs-extra','../../components/interaction/service','./intZendeskAccount.controller','get','isAuthenticated','index','show','/:id/configurations','/:id/fields','getFields','post','create','addConfiguration','put','/:id','update','delete','destroy'];(function(_0x381695,_0x3e46cd){var _0x1e56e2=function(_0x490a41){while(--_0x490a41){_0x381695['push'](_0x381695['shift']());}};_0x1e56e2(++_0x3e46cd);}(_0xaec7,0x8b));var _0x7aec=function(_0x3d42d8,_0x4cffaa){_0x3d42d8=_0x3d42d8-0x0;var _0x27fc41=_0xaec7[_0x3d42d8];return _0x27fc41;};'use strict';var multer=require(_0x7aec('0x0'));var util=require('util');var path=require(_0x7aec('0x1'));var timeout=require(_0x7aec('0x2'));var express=require(_0x7aec('0x3'));var router=express['Router']();var fs_extra=require(_0x7aec('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x7aec('0x5'));var config=require('../../config/environment');var controller=require(_0x7aec('0x6'));router[_0x7aec('0x7')]('/',auth[_0x7aec('0x8')](),controller[_0x7aec('0x9')]);router[_0x7aec('0x7')]('/:id',auth[_0x7aec('0x8')](),controller[_0x7aec('0xa')]);router[_0x7aec('0x7')](_0x7aec('0xb'),auth[_0x7aec('0x8')](),controller['getConfigurations']);router[_0x7aec('0x7')](_0x7aec('0xc'),auth[_0x7aec('0x8')](),controller[_0x7aec('0xd')]);router[_0x7aec('0xe')]('/',auth[_0x7aec('0x8')](),controller[_0x7aec('0xf')]);router[_0x7aec('0xe')](_0x7aec('0xb'),auth[_0x7aec('0x8')](),controller[_0x7aec('0x10')]);router[_0x7aec('0x11')](_0x7aec('0x12'),auth['isAuthenticated'](),controller[_0x7aec('0x13')]);router[_0x7aec('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x7aec('0x15')]);module[_0x7aec('0x16')]=router;