1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x67df=['../../components/interaction/service','../../config/environment','./intZendeskField.controller','get','index','/:id','show','isAuthenticated','create','put','update','destroy','exports','util','path','express','Router'];(function(_0x330414,_0x4f3207){var _0x99dbff=function(_0x166f85){while(--_0x166f85){_0x330414['push'](_0x330414['shift']());}};_0x99dbff(++_0x4f3207);}(_0x67df,0x10c));var _0xf67d=function(_0x2a97bb,_0x224a33){_0x2a97bb=_0x2a97bb-0x0;var _0x85ea62=_0x67df[_0x2a97bb];return _0x85ea62;};'use strict';var multer=require('multer');var util=require(_0xf67d('0x0'));var path=require(_0xf67d('0x1'));var express=require(_0xf67d('0x2'));var router=express[_0xf67d('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xf67d('0x4'));var config=require(_0xf67d('0x5'));var controller=require(_0xf67d('0x6'));router[_0xf67d('0x7')]('/',auth['isAuthenticated'](),controller[_0xf67d('0x8')]);router[_0xf67d('0x7')](_0xf67d('0x9'),auth['isAuthenticated'](),controller[_0xf67d('0xa')]);router['post']('/',auth[_0xf67d('0xb')](),controller[_0xf67d('0xc')]);router[_0xf67d('0xd')](_0xf67d('0x9'),auth[_0xf67d('0xb')](),controller[_0xf67d('0xe')]);router['delete'](_0xf67d('0x9'),auth[_0xf67d('0xb')](),controller[_0xf67d('0xf')]);module[_0xf67d('0x10')]=router;