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 _0x0d22=['name','registry','defaultuser','../client','Request','GetTrunk'];(function(_0x480120,_0x301136){var _0x55ce18=function(_0x3c34c5){while(--_0x3c34c5){_0x480120['push'](_0x480120['shift']());}};_0x55ce18(++_0x301136);}(_0x0d22,0x1d7));var _0x20d2=function(_0x10df1e,_0xf56f85){_0x10df1e=_0x10df1e-0x0;var _0x3e24fb=_0x0d22[_0x10df1e];return _0x3e24fb;};'use strict';var client=require(_0x20d2('0x0'));exports['getTrunks']=function(_0x1e55f1){return function(_0x5434af){return client[_0x20d2('0x1')](_0x20d2('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x20d2('0x3'),_0x20d2('0x4'),_0x20d2('0x5')]},'log':'GetTrunk'});};};