7812434e711efd905e0caec6810096c277f59bef
[motion2.git] / server / api / intZendeskField / 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 _0xdcd5=['multer','path','connect-timeout','express','../../components/auth/service','../../config/environment','./intZendeskField.controller','isAuthenticated','index','get','/:id','show','create','update','delete','destroy','exports'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0xdcd5,0x1a9));var _0x5dcd=function(_0x3cd91d,_0x163516){_0x3cd91d=_0x3cd91d-0x0;var _0x3b4fab=_0xdcd5[_0x3cd91d];return _0x3b4fab;};'use strict';var multer=require(_0x5dcd('0x0'));var util=require('util');var path=require(_0x5dcd('0x1'));var timeout=require(_0x5dcd('0x2'));var express=require(_0x5dcd('0x3'));var router=express['Router']();var auth=require(_0x5dcd('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5dcd('0x5'));var controller=require(_0x5dcd('0x6'));router['get']('/',auth[_0x5dcd('0x7')](),controller[_0x5dcd('0x8')]);router[_0x5dcd('0x9')](_0x5dcd('0xa'),auth[_0x5dcd('0x7')](),controller[_0x5dcd('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x5dcd('0xc')]);router['put'](_0x5dcd('0xa'),auth[_0x5dcd('0x7')](),controller[_0x5dcd('0xd')]);router[_0x5dcd('0xe')]('/:id',auth[_0x5dcd('0x7')](),controller[_0x5dcd('0xf')]);module[_0x5dcd('0x10')]=router;