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 _0x9d5b=['getOpenContacts','show','create','post','/preview','getPreview','put','/:id','update','delete','destroy','util','path','connect-timeout','express','Router','../../components/interaction/service','./cmHopper.controller','get','isAuthenticated','index','describe','/opencontacts'];(function(_0x280f4a,_0x2ed8d6){var _0x1bb157=function(_0x37de94){while(--_0x37de94){_0x280f4a['push'](_0x280f4a['shift']());}};_0x1bb157(++_0x2ed8d6);}(_0x9d5b,0x14d));var _0xb9d5=function(_0x3f7154,_0x57def0){_0x3f7154=_0x3f7154-0x0;var _0x2baa0=_0x9d5b[_0x3f7154];return _0x2baa0;};'use strict';var multer=require('multer');var util=require(_0xb9d5('0x0'));var path=require(_0xb9d5('0x1'));var timeout=require(_0xb9d5('0x2'));var express=require(_0xb9d5('0x3'));var router=express[_0xb9d5('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xb9d5('0x5'));var config=require('../../config/environment');var controller=require(_0xb9d5('0x6'));router[_0xb9d5('0x7')]('/',auth[_0xb9d5('0x8')](),controller[_0xb9d5('0x9')]);router[_0xb9d5('0x7')]('/describe',auth[_0xb9d5('0x8')](),controller[_0xb9d5('0xa')]);router['get'](_0xb9d5('0xb'),auth[_0xb9d5('0x8')](),controller[_0xb9d5('0xc')]);router[_0xb9d5('0x7')]('/:id',auth[_0xb9d5('0x8')](),controller[_0xb9d5('0xd')]);router['post']('/',auth[_0xb9d5('0x8')](),controller[_0xb9d5('0xe')]);router[_0xb9d5('0xf')](_0xb9d5('0x10'),auth[_0xb9d5('0x8')](),controller[_0xb9d5('0x11')]);router[_0xb9d5('0x12')](_0xb9d5('0x13'),auth[_0xb9d5('0x8')](),controller[_0xb9d5('0x14')]);router[_0xb9d5('0x15')]('/:id',auth[_0xb9d5('0x8')](),controller[_0xb9d5('0x16')]);module['exports']=router;