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 _0x3ad0=['../client','GetTrunk','name','registry'];(function(_0x2fc012,_0x503e5b){var _0x2891f9=function(_0x295f5e){while(--_0x295f5e){_0x2fc012['push'](_0x2fc012['shift']());}};_0x2891f9(++_0x503e5b);}(_0x3ad0,0xfc));var _0x03ad=function(_0x3a3e25,_0x46c198){_0x3a3e25=_0x3a3e25-0x0;var _0x2f6f6f=_0x3ad0[_0x3a3e25];return _0x2f6f6f;};'use strict';var client=require(_0x03ad('0x0'));exports['getTrunks']=function(_0x592a6d){return function(_0x58ea32){return client['Request'](_0x03ad('0x1'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x03ad('0x2'),_0x03ad('0x3')]},'log':'GetTrunk'});};};