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 _0xd1cf=['unhold','/transfer','transfer','exports','express','Router','../../components/auth/service','./webbar.controller','post','/originate','canUpdate','originate','/hangup','hangup','/answer','isAuthenticated','answer','/hold','hold','/unhold'];(function(_0x4aea7f,_0xdae0a5){var _0x57ae7d=function(_0x3965c5){while(--_0x3965c5){_0x4aea7f['push'](_0x4aea7f['shift']());}};_0x57ae7d(++_0xdae0a5);}(_0xd1cf,0x7c));var _0xfd1c=function(_0x54d52,_0x2473ba){_0x54d52=_0x54d52-0x0;var _0x968345=_0xd1cf[_0x54d52];return _0x968345;};'use strict';var express=require(_0xfd1c('0x0'));var router=express[_0xfd1c('0x1')]();var auth=require(_0xfd1c('0x2'));var controller=require(_0xfd1c('0x3'));router[_0xfd1c('0x4')](_0xfd1c('0x5'),auth['isAuthenticated'](),auth[_0xfd1c('0x6')](),controller[_0xfd1c('0x7')]);router[_0xfd1c('0x4')](_0xfd1c('0x8'),auth['isAuthenticated'](),auth[_0xfd1c('0x6')](),controller[_0xfd1c('0x9')]);router[_0xfd1c('0x4')](_0xfd1c('0xa'),auth[_0xfd1c('0xb')](),auth[_0xfd1c('0x6')](),controller[_0xfd1c('0xc')]);router[_0xfd1c('0x4')](_0xfd1c('0xd'),auth[_0xfd1c('0xb')](),auth['canUpdate'](),controller[_0xfd1c('0xe')]);router[_0xfd1c('0x4')](_0xfd1c('0xf'),auth['isAuthenticated'](),auth[_0xfd1c('0x6')](),controller[_0xfd1c('0x10')]);router[_0xfd1c('0x4')]('/calls',auth['isAuthenticated'](),auth[_0xfd1c('0x6')](),controller['calls']);router['post'](_0xfd1c('0x11'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xfd1c('0x12')]);module[_0xfd1c('0x13')]=router;