Built motion from commit e0fa946e.|2.6.5
[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 _0x501e=['/:id','create','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./intZendeskField.controller','get','isAuthenticated','index'];(function(_0x5d65be,_0x233fdb){var _0x27c205=function(_0x15135d){while(--_0x15135d){_0x5d65be['push'](_0x5d65be['shift']());}};_0x27c205(++_0x233fdb);}(_0x501e,0x105));var _0xe501=function(_0x344541,_0x55daa4){_0x344541=_0x344541-0x0;var _0x55ee69=_0x501e[_0x344541];return _0x55ee69;};'use strict';var multer=require(_0xe501('0x0'));var util=require('util');var path=require(_0xe501('0x1'));var timeout=require(_0xe501('0x2'));var express=require('express');var router=express[_0xe501('0x3')]();var fs_extra=require(_0xe501('0x4'));var auth=require(_0xe501('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xe501('0x6'));var controller=require(_0xe501('0x7'));router[_0xe501('0x8')]('/',auth[_0xe501('0x9')](),controller[_0xe501('0xa')]);router['get'](_0xe501('0xb'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xe501('0x9')](),controller[_0xe501('0xc')]);router['put'](_0xe501('0xb'),auth['isAuthenticated'](),controller['update']);router[_0xe501('0xd')](_0xe501('0xb'),auth[_0xe501('0x9')](),controller[_0xe501('0xe')]);module[_0xe501('0xf')]=router;