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 _0xb205=['name','registry','GetTrunk','../client'];(function(_0x4c4965,_0xc6bdc6){var _0x541394=function(_0x391a24){while(--_0x391a24){_0x4c4965['push'](_0x4c4965['shift']());}};_0x541394(++_0xc6bdc6);}(_0xb205,0x183));var _0x5b20=function(_0x1dcabc,_0x4be05a){_0x1dcabc=_0x1dcabc-0x0;var _0x460fb1=_0xb205[_0x1dcabc];return _0x460fb1;};'use strict';var client=require(_0x5b20('0x0'));exports['getTrunks']=function(_0x35c2b6){return function(_0x5a7851){return client['Request']('GetTrunk',{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x5b20('0x1'),_0x5b20('0x2'),'defaultuser']},'log':_0x5b20('0x3')});};};