Built motion from commit a61a4a20.|2.5.46
[motion2.git] / server / services / ami / rpc / trunk.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x453a=['getTrunks','Request','GetTrunk','name','registry','defaultuser','../client'];(function(_0x1e4dd4,_0x4ad022){var _0x239238=function(_0x160deb){while(--_0x160deb){_0x1e4dd4['push'](_0x1e4dd4['shift']());}};_0x239238(++_0x4ad022);}(_0x453a,0x8b));var _0xa453=function(_0x330cc5,_0x147150){_0x330cc5=_0x330cc5-0x0;var _0x5b3ad9=_0x453a[_0x330cc5];return _0x5b3ad9;};'use strict';var client=require(_0xa453('0x0'));exports[_0xa453('0x1')]=function(_0x4eabb8){return function(_0x4ad5c7){return client[_0xa453('0x2')](_0xa453('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xa453('0x4'),_0xa453('0x5'),_0xa453('0x6')]},'log':_0xa453('0x3')});};};