16f0672bd122add0ff2eff0b593495fb15f273af
[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 _0x090a=['GetTrunk','name','registry','getTrunks'];(function(_0x1723d3,_0x2c8ae7){var _0x559979=function(_0x191a57){while(--_0x191a57){_0x1723d3['push'](_0x1723d3['shift']());}};_0x559979(++_0x2c8ae7);}(_0x090a,0xf3));var _0xa090=function(_0x1e72a4,_0x4374cf){_0x1e72a4=_0x1e72a4-0x0;var _0x221306=_0x090a[_0x1e72a4];return _0x221306;};'use strict';var client=require('../client');exports[_0xa090('0x0')]=function(_0x269acb){return function(_0x4cc624){return client['Request'](_0xa090('0x1'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xa090('0x2'),_0xa090('0x3'),'defaultuser']},'log':_0xa090('0x1')});};};