eab601c84554b38dcf5a80b62c31f73475c9469b
[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 _0x1c2f=['exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZendeskAccount.controller','isAuthenticated','get','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','update','delete','destroy'];(function(_0x255d5b,_0x4f6f35){var _0x3e141a=function(_0x249ee2){while(--_0x249ee2){_0x255d5b['push'](_0x255d5b['shift']());}};_0x3e141a(++_0x4f6f35);}(_0x1c2f,0x1c3));var _0xf1c2=function(_0x454607,_0x54e146){_0x454607=_0x454607-0x0;var _0x2c82=_0x1c2f[_0x454607];return _0x2c82;};'use strict';var multer=require(_0xf1c2('0x0'));var util=require(_0xf1c2('0x1'));var path=require(_0xf1c2('0x2'));var timeout=require(_0xf1c2('0x3'));var express=require(_0xf1c2('0x4'));var router=express[_0xf1c2('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xf1c2('0x6'));var interaction=require(_0xf1c2('0x7'));var config=require(_0xf1c2('0x8'));var controller=require(_0xf1c2('0x9'));router['get']('/',auth[_0xf1c2('0xa')](),controller['index']);router[_0xf1c2('0xb')](_0xf1c2('0xc'),auth[_0xf1c2('0xa')](),controller['show']);router[_0xf1c2('0xb')](_0xf1c2('0xd'),auth['isAuthenticated'](),controller[_0xf1c2('0xe')]);router[_0xf1c2('0xb')](_0xf1c2('0xf'),auth[_0xf1c2('0xa')](),controller[_0xf1c2('0x10')]);router[_0xf1c2('0x11')]('/',auth[_0xf1c2('0xa')](),controller[_0xf1c2('0x12')]);router[_0xf1c2('0x11')]('/:id/configurations',auth[_0xf1c2('0xa')](),controller[_0xf1c2('0x13')]);router[_0xf1c2('0x14')](_0xf1c2('0xc'),auth[_0xf1c2('0xa')](),controller[_0xf1c2('0x15')]);router[_0xf1c2('0x16')](_0xf1c2('0xc'),auth[_0xf1c2('0xa')](),controller[_0xf1c2('0x17')]);module[_0xf1c2('0x18')]=router;