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 _0x777f=['./webbar.controller','post','/originate','isAuthenticated','canUpdate','/hangup','/answer','answer','/hold','/unhold','unhold','/calls','calls','/transfer','transfer','express','Router','../../components/auth/service'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x777f,0x9f));var _0xf777=function(_0x576e2b,_0x328953){_0x576e2b=_0x576e2b-0x0;var _0x46461a=_0x777f[_0x576e2b];return _0x46461a;};'use strict';var express=require(_0xf777('0x0'));var router=express[_0xf777('0x1')]();var auth=require(_0xf777('0x2'));var controller=require(_0xf777('0x3'));router[_0xf777('0x4')](_0xf777('0x5'),auth[_0xf777('0x6')](),auth[_0xf777('0x7')](),controller['originate']);router[_0xf777('0x4')](_0xf777('0x8'),auth['isAuthenticated'](),auth['canUpdate'](),controller['hangup']);router[_0xf777('0x4')](_0xf777('0x9'),auth[_0xf777('0x6')](),auth[_0xf777('0x7')](),controller[_0xf777('0xa')]);router[_0xf777('0x4')](_0xf777('0xb'),auth[_0xf777('0x6')](),auth['canUpdate'](),controller['hold']);router['post'](_0xf777('0xc'),auth[_0xf777('0x6')](),auth['canUpdate'](),controller[_0xf777('0xd')]);router[_0xf777('0x4')](_0xf777('0xe'),auth['isAuthenticated'](),auth[_0xf777('0x7')](),controller[_0xf777('0xf')]);router[_0xf777('0x4')](_0xf777('0x10'),auth[_0xf777('0x6')](),auth[_0xf777('0x7')](),controller[_0xf777('0x11')]);module['exports']=router;