Built motion from commit ddca4d0d.|2.5.47
[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 _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')});};};