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 _0x782e=['name','defaultuser','GetTrunk'];(function(_0x1bc492,_0x426f3c){var _0x3b4d32=function(_0x2de2c8){while(--_0x2de2c8){_0x1bc492['push'](_0x1bc492['shift']());}};_0x3b4d32(++_0x426f3c);}(_0x782e,0xb9));var _0xe782=function(_0x4a1883,_0x300040){_0x4a1883=_0x4a1883-0x0;var _0x5511b3=_0x782e[_0x4a1883];return _0x5511b3;};'use strict';var client=require('../client');exports['getTrunks']=function(_0x120c31){return function(_0x15b01d){return client['Request'](_0xe782('0x0'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xe782('0x1'),'registry',_0xe782('0x2')]},'log':_0xe782('0x0')});};};