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 _0xe8f7=['Request','GetTrunk','name','registry','defaultuser','../client'];(function(_0x5e98c2,_0x49675b){var _0xd987d8=function(_0x815cab){while(--_0x815cab){_0x5e98c2['push'](_0x5e98c2['shift']());}};_0xd987d8(++_0x49675b);}(_0xe8f7,0x137));var _0x7e8f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe8f7[_0x3dd15e];return _0x231fd0;};'use strict';var client=require(_0x7e8f('0x0'));exports['getTrunks']=function(_0x357eeb){return function(_0x1e09e3){return client[_0x7e8f('0x1')](_0x7e8f('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x7e8f('0x3'),_0x7e8f('0x4'),_0x7e8f('0x5')]},'log':'GetTrunk'});};};