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 _0x77f5=['Request','GetTrunk','name','../client'];(function(_0x46698a,_0x8de1e4){var _0x356db0=function(_0x19e83c){while(--_0x19e83c){_0x46698a['push'](_0x46698a['shift']());}};_0x356db0(++_0x8de1e4);}(_0x77f5,0x1eb));var _0x577f=function(_0xd8a8af,_0x1e93f0){_0xd8a8af=_0xd8a8af-0x0;var _0x5b7278=_0x77f5[_0xd8a8af];return _0x5b7278;};'use strict';var client=require(_0x577f('0x0'));exports['getTrunks']=function(_0x54f217){return function(_0x45376b){return client[_0x577f('0x1')](_0x577f('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x577f('0x3'),'registry']},'log':_0x577f('0x2')});};};