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 _0x2ea3=['Request','GetTrunk','registry','../client'];(function(_0x57a96f,_0x5dd550){var _0x56f4f1=function(_0x68eb12){while(--_0x68eb12){_0x57a96f['push'](_0x57a96f['shift']());}};_0x56f4f1(++_0x5dd550);}(_0x2ea3,0xdb));var _0x32ea=function(_0x6c9d9f,_0x160ce2){_0x6c9d9f=_0x6c9d9f-0x0;var _0x18103e=_0x2ea3[_0x6c9d9f];return _0x18103e;};'use strict';var client=require(_0x32ea('0x0'));exports['getTrunks']=function(_0x3e2d41){return function(_0x84b241){return client[_0x32ea('0x1')](_0x32ea('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x32ea('0x3')]},'log':_0x32ea('0x2')});};};