Built motion from commit (unavailable).|2.5.15
[motion2.git] / server / api / intServicenowField / 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 _0x98fa=['multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intServicenowField.controller','get','isAuthenticated','index','/:id','show','create','put','destroy','exports'];(function(_0x387680,_0x419766){var _0x5dab82=function(_0x2bd493){while(--_0x2bd493){_0x387680['push'](_0x387680['shift']());}};_0x5dab82(++_0x419766);}(_0x98fa,0x18c));var _0xa98f=function(_0x2e1207,_0x2620c8){_0x2e1207=_0x2e1207-0x0;var _0x164111=_0x98fa[_0x2e1207];return _0x164111;};'use strict';var multer=require(_0xa98f('0x0'));var util=require(_0xa98f('0x1'));var path=require(_0xa98f('0x2'));var timeout=require(_0xa98f('0x3'));var express=require(_0xa98f('0x4'));var router=express[_0xa98f('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xa98f('0x6'));var config=require(_0xa98f('0x7'));var controller=require(_0xa98f('0x8'));router[_0xa98f('0x9')]('/',auth[_0xa98f('0xa')](),controller[_0xa98f('0xb')]);router['get'](_0xa98f('0xc'),auth[_0xa98f('0xa')](),controller[_0xa98f('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xa98f('0xe')]);router[_0xa98f('0xf')](_0xa98f('0xc'),auth[_0xa98f('0xa')](),controller['update']);router['delete'](_0xa98f('0xc'),auth[_0xa98f('0xa')](),controller[_0xa98f('0x10')]);module[_0xa98f('0x11')]=router;